diff --git a/AWS_SERVICES_SUPPORTED.md b/AWS_SERVICES_SUPPORTED.md index 24e81af813d1..f7b57f38067c 100644 --- a/AWS_SERVICES_SUPPORTED.md +++ b/AWS_SERVICES_SUPPORTED.md @@ -31,6 +31,9 @@ The alpha SDK for Rust currently supports the checked services below. If you wan - [x] [Amazon Ec2](https://github.com/awslabs/aws-sdk-rust/issues/18) - [x] [Amazon SES v2](https://github.com/awslabs/aws-sdk-rust/issues/27) - [x] [Amazon Cloudwatch Logs](https://github.com/awslabs/aws-sdk-rust/issues/30) +- [x] [Amazon ECR](https://github.com/awslabs/aws-sdk-rust/issues/34) +- [x] Amazon EKS +- [x] Cloudwatch (metrics) ------ - [ ] Amazon Access Analyzer @@ -63,7 +66,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan - [ ] Amazon Cloudhsmv2 - [ ] Amazon Cloudsearch - [ ] Amazon Cloudsearchdomain -- [ ] Amazon Cloudwatch - [ ] Amazon Cloud Trail - [ ] Amazon Code Artifact - [ ] Amazon Code Build @@ -100,8 +102,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan - [ ] Amazon DS - [ ] Amazon Ebs - [ ] Amazon Ec2-Instance-Connect -- [ ] [Amazon ECR](https://github.com/awslabs/aws-sdk-rust/issues/34) -- [ ] Amazon Eks - [ ] Amazon Elasticache - [ ] Amazon Elastic Beanstalk - [ ] Amazon Elastic Filesystem diff --git a/README.md b/README.md index a9ef3c0f93f2..6c6bbf6063b5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The new AWS SDK for Rust is built with one crate per AWS service. [Tokio](https: ```toml [dependencies] -dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.9-alpha", package = "aws-sdk-dynamodb" } +dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.10-alpha", package = "aws-sdk-dynamodb" } tokio = { version = "1", features = ["full"] } ``` 3. Provide your AWS credentials as environment variables: diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 8347cac949c5..0f1a93b7bb61 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,4 +1,4 @@ [workspace] members = [ - "sqs","sns","kinesis","route53","ecs","secretsmanager","batch","ec2","mediapackage","sagemaker","qldb","sesv2","rds","medialive","sagemakera2iruntime","sagemakerruntime","sagemakeredge","dynamodb","kms","s3","lambda","polly","sts","qldbsession","cloudformation","rdsdata","apigateway","sagemakerfeaturestoreruntime","ssm","iam","cloudwatchlogs","smithy-types","smithy-json","smithy-query","smithy-xml","smithy-http","smithy-http-tower","smithy-client","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/sns","examples/ec2","examples/secretsmanager","examples/ssm","examples/kinesis","examples/rdsdata","examples/sts","examples/lambda","examples/dynamo-delete-item","examples/iam","examples/qldb","examples/ses","examples/dynamo-add-item","examples/sagemaker","examples/cloudwatchlogs","examples/kms","examples/ecs","examples/dynamo-movies","examples/dynamo-delete-table","examples/sqs","examples/dynamo-create-table","examples/mediapackage","examples/route53","examples/dynamo-list-items","examples/batch-helloworld","examples/dynamo-helloworld","examples/s3","examples/medialive","examples/polly","examples/dynamo-list-tables","examples/cloudformation","examples/rds" + "cloudwatchlogs","sesv2","route53","sagemaker","ec2","sagemakerfeaturestoreruntime","eks","secretsmanager","polly","apigateway","lambda","cloudformation","rds","batch","s3","dynamodb","ssm","qldbsession","sagemakera2iruntime","ecs","sns","sts","medialive","ecr","iam","mediapackage","sagemakeredge","qldb","kinesis","cloudwatch","kms","sqs","rdsdata","smithy-types","smithy-json","smithy-query","smithy-xml","smithy-http","smithy-http-tower","smithy-client","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/dynamo-list-tables","examples/dynamo-movies","examples/medialive","examples/secretsmanager","examples/cloudformation","examples/ecs","examples/dynamo-delete-item","examples/iam","examples/dynamo-create-table","examples/batch","examples/dynamo-delete-table","examples/ec2","examples/mediapackage","examples/sqs","examples/sns","examples/kinesis","examples/sts","examples/eks","examples/lambda","examples/rds","examples/s3","examples/sagemaker","examples/polly","examples/ses","examples/qldb","examples/rdsdata","examples/dynamo-list-items","examples/ssm","examples/ecr","examples/cloudwatch","examples/dynamo-helloworld","examples/cloudwatchlogs","examples/route53","examples/kms","examples/dynamo-add-item" ] \ No newline at end of file diff --git a/sdk/apigateway/Cargo.toml b/sdk/apigateway/Cargo.toml index 2568361f1d0f..490d44e7e665 100644 --- a/sdk/apigateway/Cargo.toml +++ b/sdk/apigateway/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-apigateway" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon API Gateway\n

Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.

" authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.http] version = "0.2" [dependencies.aws-http] @@ -31,9 +28,6 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/apigateway/src/aws_json_errors.rs b/sdk/apigateway/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/apigateway/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/apigateway/src/error.rs b/sdk/apigateway/src/error.rs index 70d6ac8682b8..aa5247534af8 100644 --- a/sdk/apigateway/src/error.rs +++ b/sdk/apigateway/src/error.rs @@ -8,24 +8,24 @@ pub struct CreateApiKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateApiKeyErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateApiKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateApiKeyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateApiKeyErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateApiKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateApiKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateApiKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateApiKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateApiKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateApiKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -74,34 +74,37 @@ impl CreateApiKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateApiKeyErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateApiKeyErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateApiKeyErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateApiKeyErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateApiKeyErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateApiKeyErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, CreateApiKeyErrorKind::UnauthorizedException(_)) } } impl std::error::Error for CreateApiKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateApiKeyErrorKind::BadRequestError(_inner) => Some(_inner), - CreateApiKeyErrorKind::ConflictError(_inner) => Some(_inner), - CreateApiKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateApiKeyErrorKind::NotFoundError(_inner) => Some(_inner), - CreateApiKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateApiKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateApiKeyErrorKind::BadRequestException(_inner) => Some(_inner), + CreateApiKeyErrorKind::ConflictException(_inner) => Some(_inner), + CreateApiKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateApiKeyErrorKind::NotFoundException(_inner) => Some(_inner), + CreateApiKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateApiKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateApiKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -116,22 +119,22 @@ pub struct CreateAuthorizerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateAuthorizerErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateAuthorizerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateAuthorizerErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateAuthorizerErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateAuthorizerErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateAuthorizerErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateAuthorizerErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateAuthorizerErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateAuthorizerErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateAuthorizerErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateAuthorizerErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateAuthorizerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateAuthorizerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -180,33 +183,42 @@ impl CreateAuthorizerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateAuthorizerErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateAuthorizerErrorKind::BadRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateAuthorizerErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateAuthorizerErrorKind::LimitExceededException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateAuthorizerErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateAuthorizerErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateAuthorizerErrorKind::TooManyRequestsError(_) + CreateAuthorizerErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateAuthorizerErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + CreateAuthorizerErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for CreateAuthorizerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateAuthorizerErrorKind::BadRequestError(_inner) => Some(_inner), - CreateAuthorizerErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateAuthorizerErrorKind::NotFoundError(_inner) => Some(_inner), - CreateAuthorizerErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateAuthorizerErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateAuthorizerErrorKind::BadRequestException(_inner) => Some(_inner), + CreateAuthorizerErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateAuthorizerErrorKind::NotFoundException(_inner) => Some(_inner), + CreateAuthorizerErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateAuthorizerErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateAuthorizerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -221,22 +233,22 @@ pub struct CreateBasePathMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateBasePathMappingErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateBasePathMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateBasePathMappingErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateBasePathMappingErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateBasePathMappingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateBasePathMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateBasePathMappingErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateBasePathMappingErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateBasePathMappingErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateBasePathMappingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateBasePathMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateBasePathMappingErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateBasePathMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -285,39 +297,45 @@ impl CreateBasePathMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateBasePathMappingErrorKind::BadRequestError(_) + CreateBasePathMappingErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateBasePathMappingErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + CreateBasePathMappingErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateBasePathMappingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateBasePathMappingErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateBasePathMappingErrorKind::TooManyRequestsError(_) + CreateBasePathMappingErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - CreateBasePathMappingErrorKind::UnauthorizedError(_) + CreateBasePathMappingErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for CreateBasePathMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateBasePathMappingErrorKind::BadRequestError(_inner) => Some(_inner), - CreateBasePathMappingErrorKind::ConflictError(_inner) => Some(_inner), - CreateBasePathMappingErrorKind::NotFoundError(_inner) => Some(_inner), - CreateBasePathMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateBasePathMappingErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateBasePathMappingErrorKind::BadRequestException(_inner) => Some(_inner), + CreateBasePathMappingErrorKind::ConflictException(_inner) => Some(_inner), + CreateBasePathMappingErrorKind::NotFoundException(_inner) => Some(_inner), + CreateBasePathMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateBasePathMappingErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateBasePathMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -332,26 +350,26 @@ pub struct CreateDeploymentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDeploymentErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDeploymentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDeploymentErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateDeploymentErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -400,44 +418,53 @@ impl CreateDeploymentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateDeploymentErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateDeploymentErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateDeploymentErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateDeploymentErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateDeploymentErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateDeploymentErrorKind::LimitExceededException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateDeploymentErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateDeploymentErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateDeploymentErrorKind::ServiceUnavailableError(_) + CreateDeploymentErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDeploymentErrorKind::TooManyRequestsError(_) + CreateDeploymentErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateDeploymentErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + CreateDeploymentErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for CreateDeploymentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDeploymentErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDeploymentErrorKind::ConflictError(_inner) => Some(_inner), - CreateDeploymentErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateDeploymentErrorKind::NotFoundError(_inner) => Some(_inner), - CreateDeploymentErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - CreateDeploymentErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateDeploymentErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateDeploymentErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDeploymentErrorKind::ConflictException(_inner) => Some(_inner), + CreateDeploymentErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateDeploymentErrorKind::NotFoundException(_inner) => Some(_inner), + CreateDeploymentErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateDeploymentErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateDeploymentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -452,24 +479,24 @@ pub struct CreateDocumentationPartError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDocumentationPartErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDocumentationPartError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDocumentationPartErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDocumentationPartErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateDocumentationPartErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateDocumentationPartErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateDocumentationPartErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateDocumentationPartErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateDocumentationPartErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateDocumentationPartErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -518,52 +545,52 @@ impl CreateDocumentationPartError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::BadRequestError(_) + CreateDocumentationPartErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::ConflictError(_) + CreateDocumentationPartErrorKind::ConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::LimitExceededError(_) + CreateDocumentationPartErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::NotFoundError(_) + CreateDocumentationPartErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::TooManyRequestsError(_) + CreateDocumentationPartErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationPartErrorKind::UnauthorizedError(_) + CreateDocumentationPartErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for CreateDocumentationPartError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDocumentationPartErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDocumentationPartErrorKind::ConflictError(_inner) => Some(_inner), - CreateDocumentationPartErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateDocumentationPartErrorKind::NotFoundError(_inner) => Some(_inner), - CreateDocumentationPartErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateDocumentationPartErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::ConflictException(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::NotFoundException(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateDocumentationPartErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateDocumentationPartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -578,24 +605,24 @@ pub struct CreateDocumentationVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDocumentationVersionErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDocumentationVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDocumentationVersionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDocumentationVersionErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateDocumentationVersionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateDocumentationVersionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateDocumentationVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateDocumentationVersionErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateDocumentationVersionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateDocumentationVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -644,52 +671,52 @@ impl CreateDocumentationVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::BadRequestError(_) + CreateDocumentationVersionErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::ConflictError(_) + CreateDocumentationVersionErrorKind::ConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::LimitExceededError(_) + CreateDocumentationVersionErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::NotFoundError(_) + CreateDocumentationVersionErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::TooManyRequestsError(_) + CreateDocumentationVersionErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - CreateDocumentationVersionErrorKind::UnauthorizedError(_) + CreateDocumentationVersionErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for CreateDocumentationVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDocumentationVersionErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDocumentationVersionErrorKind::ConflictError(_inner) => Some(_inner), - CreateDocumentationVersionErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateDocumentationVersionErrorKind::NotFoundError(_inner) => Some(_inner), - CreateDocumentationVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateDocumentationVersionErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::ConflictException(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::NotFoundException(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateDocumentationVersionErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateDocumentationVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -704,20 +731,20 @@ pub struct CreateDomainNameError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDomainNameErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDomainNameError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDomainNameErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDomainNameErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateDomainNameErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateDomainNameErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateDomainNameErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDomainNameErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateDomainNameErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateDomainNameErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateDomainNameErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -766,29 +793,35 @@ impl CreateDomainNameError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateDomainNameErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateDomainNameErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateDomainNameErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateDomainNameErrorKind::ConflictException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDomainNameErrorKind::TooManyRequestsError(_) + CreateDomainNameErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateDomainNameErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + CreateDomainNameErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for CreateDomainNameError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDomainNameErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDomainNameErrorKind::ConflictError(_inner) => Some(_inner), - CreateDomainNameErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateDomainNameErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateDomainNameErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDomainNameErrorKind::ConflictException(_inner) => Some(_inner), + CreateDomainNameErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateDomainNameErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateDomainNameErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -803,24 +836,24 @@ pub struct CreateModelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateModelErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateModelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateModelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateModelErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateModelErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateModelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateModelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateModelErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateModelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateModelErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateModelErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateModelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateModelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateModelErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateModelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -869,34 +902,37 @@ impl CreateModelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateModelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateModelErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateModelErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateModelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateModelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateModelErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, CreateModelErrorKind::UnauthorizedException(_)) } } impl std::error::Error for CreateModelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateModelErrorKind::BadRequestError(_inner) => Some(_inner), - CreateModelErrorKind::ConflictError(_inner) => Some(_inner), - CreateModelErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateModelErrorKind::NotFoundError(_inner) => Some(_inner), - CreateModelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateModelErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateModelErrorKind::BadRequestException(_inner) => Some(_inner), + CreateModelErrorKind::ConflictException(_inner) => Some(_inner), + CreateModelErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateModelErrorKind::NotFoundException(_inner) => Some(_inner), + CreateModelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateModelErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateModelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -911,22 +947,22 @@ pub struct CreateRequestValidatorError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateRequestValidatorErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateRequestValidatorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateRequestValidatorErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateRequestValidatorErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateRequestValidatorErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateRequestValidatorErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateRequestValidatorErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateRequestValidatorErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateRequestValidatorErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateRequestValidatorErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateRequestValidatorErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateRequestValidatorErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateRequestValidatorErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -975,45 +1011,45 @@ impl CreateRequestValidatorError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateRequestValidatorErrorKind::BadRequestError(_) + CreateRequestValidatorErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateRequestValidatorErrorKind::LimitExceededError(_) + CreateRequestValidatorErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateRequestValidatorErrorKind::NotFoundError(_) + CreateRequestValidatorErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateRequestValidatorErrorKind::TooManyRequestsError(_) + CreateRequestValidatorErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - CreateRequestValidatorErrorKind::UnauthorizedError(_) + CreateRequestValidatorErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for CreateRequestValidatorError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateRequestValidatorErrorKind::BadRequestError(_inner) => Some(_inner), - CreateRequestValidatorErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateRequestValidatorErrorKind::NotFoundError(_inner) => Some(_inner), - CreateRequestValidatorErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateRequestValidatorErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateRequestValidatorErrorKind::BadRequestException(_inner) => Some(_inner), + CreateRequestValidatorErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateRequestValidatorErrorKind::NotFoundException(_inner) => Some(_inner), + CreateRequestValidatorErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateRequestValidatorErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateRequestValidatorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1028,24 +1064,24 @@ pub struct CreateResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateResourceErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateResourceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateResourceErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1094,34 +1130,43 @@ impl CreateResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateResourceErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateResourceErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateResourceErrorKind::LimitExceededException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + CreateResourceErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for CreateResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateResourceErrorKind::BadRequestError(_inner) => Some(_inner), - CreateResourceErrorKind::ConflictError(_inner) => Some(_inner), - CreateResourceErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateResourceErrorKind::NotFoundError(_inner) => Some(_inner), - CreateResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateResourceErrorKind::BadRequestException(_inner) => Some(_inner), + CreateResourceErrorKind::ConflictException(_inner) => Some(_inner), + CreateResourceErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateResourceErrorKind::NotFoundException(_inner) => Some(_inner), + CreateResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1136,20 +1181,20 @@ pub struct CreateRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateRestApiErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateRestApiErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateRestApiErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateRestApiErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateRestApiErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1198,26 +1243,32 @@ impl CreateRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateRestApiErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateRestApiErrorKind::BadRequestException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateRestApiErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateRestApiErrorKind::LimitExceededException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateRestApiErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, CreateRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for CreateRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateRestApiErrorKind::BadRequestError(_inner) => Some(_inner), - CreateRestApiErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateRestApiErrorKind::BadRequestException(_inner) => Some(_inner), + CreateRestApiErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1232,24 +1283,24 @@ pub struct CreateStageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateStageErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateStageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateStageErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateStageErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateStageErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateStageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateStageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateStageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateStageErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateStageErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateStageErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateStageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateStageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateStageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateStageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1298,34 +1349,37 @@ impl CreateStageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateStageErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateStageErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateStageErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateStageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateStageErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateStageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, CreateStageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for CreateStageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateStageErrorKind::BadRequestError(_inner) => Some(_inner), - CreateStageErrorKind::ConflictError(_inner) => Some(_inner), - CreateStageErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateStageErrorKind::NotFoundError(_inner) => Some(_inner), - CreateStageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateStageErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateStageErrorKind::BadRequestException(_inner) => Some(_inner), + CreateStageErrorKind::ConflictException(_inner) => Some(_inner), + CreateStageErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateStageErrorKind::NotFoundException(_inner) => Some(_inner), + CreateStageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateStageErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateStageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1340,24 +1394,24 @@ pub struct CreateUsagePlanError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateUsagePlanErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateUsagePlanError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateUsagePlanErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateUsagePlanErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateUsagePlanErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateUsagePlanErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateUsagePlanErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateUsagePlanErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateUsagePlanErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateUsagePlanErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1406,37 +1460,43 @@ impl CreateUsagePlanError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateUsagePlanErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateUsagePlanErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateUsagePlanErrorKind::LimitExceededException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateUsagePlanErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateUsagePlanErrorKind::TooManyRequestsError(_) + CreateUsagePlanErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + CreateUsagePlanErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for CreateUsagePlanError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateUsagePlanErrorKind::BadRequestError(_inner) => Some(_inner), - CreateUsagePlanErrorKind::ConflictError(_inner) => Some(_inner), - CreateUsagePlanErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateUsagePlanErrorKind::NotFoundError(_inner) => Some(_inner), - CreateUsagePlanErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateUsagePlanErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateUsagePlanErrorKind::BadRequestException(_inner) => Some(_inner), + CreateUsagePlanErrorKind::ConflictException(_inner) => Some(_inner), + CreateUsagePlanErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateUsagePlanErrorKind::NotFoundException(_inner) => Some(_inner), + CreateUsagePlanErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateUsagePlanErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateUsagePlanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1451,22 +1511,22 @@ pub struct CreateUsagePlanKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateUsagePlanKeyErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateUsagePlanKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateUsagePlanKeyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateUsagePlanKeyErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateUsagePlanKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateUsagePlanKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateUsagePlanKeyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateUsagePlanKeyErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateUsagePlanKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateUsagePlanKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateUsagePlanKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1515,36 +1575,45 @@ impl CreateUsagePlanKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanKeyErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateUsagePlanKeyErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanKeyErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + CreateUsagePlanKeyErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateUsagePlanKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateUsagePlanKeyErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateUsagePlanKeyErrorKind::TooManyRequestsError(_) + CreateUsagePlanKeyErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - CreateUsagePlanKeyErrorKind::UnauthorizedError(_) + CreateUsagePlanKeyErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for CreateUsagePlanKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateUsagePlanKeyErrorKind::BadRequestError(_inner) => Some(_inner), - CreateUsagePlanKeyErrorKind::ConflictError(_inner) => Some(_inner), - CreateUsagePlanKeyErrorKind::NotFoundError(_inner) => Some(_inner), - CreateUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateUsagePlanKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateUsagePlanKeyErrorKind::BadRequestException(_inner) => Some(_inner), + CreateUsagePlanKeyErrorKind::ConflictException(_inner) => Some(_inner), + CreateUsagePlanKeyErrorKind::NotFoundException(_inner) => Some(_inner), + CreateUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateUsagePlanKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateUsagePlanKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1559,18 +1628,18 @@ pub struct CreateVpcLinkError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateVpcLinkErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateVpcLinkError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateVpcLinkErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateVpcLinkErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateVpcLinkErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + CreateVpcLinkErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateVpcLinkErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateVpcLinkErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), CreateVpcLinkErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1619,22 +1688,25 @@ impl CreateVpcLinkError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateVpcLinkErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateVpcLinkErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateVpcLinkErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateVpcLinkErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, CreateVpcLinkErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, CreateVpcLinkErrorKind::UnauthorizedException(_)) } } impl std::error::Error for CreateVpcLinkError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateVpcLinkErrorKind::BadRequestError(_inner) => Some(_inner), - CreateVpcLinkErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateVpcLinkErrorKind::UnauthorizedError(_inner) => Some(_inner), + CreateVpcLinkErrorKind::BadRequestException(_inner) => Some(_inner), + CreateVpcLinkErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateVpcLinkErrorKind::UnauthorizedException(_inner) => Some(_inner), CreateVpcLinkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1649,18 +1721,18 @@ pub struct DeleteApiKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteApiKeyErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteApiKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteApiKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteApiKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteApiKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteApiKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteApiKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteApiKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteApiKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1709,22 +1781,25 @@ impl DeleteApiKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteApiKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteApiKeyErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteApiKeyErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteApiKeyErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteApiKeyErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteApiKeyErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteApiKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteApiKeyErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteApiKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteApiKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteApiKeyErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteApiKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteApiKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteApiKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1739,22 +1814,22 @@ pub struct DeleteAuthorizerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAuthorizerErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAuthorizerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAuthorizerErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteAuthorizerErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteAuthorizerErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteAuthorizerErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteAuthorizerErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteAuthorizerErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteAuthorizerErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteAuthorizerErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteAuthorizerErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteAuthorizerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteAuthorizerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1803,33 +1878,39 @@ impl DeleteAuthorizerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteAuthorizerErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAuthorizerErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteAuthorizerErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteAuthorizerErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteAuthorizerErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteAuthorizerErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteAuthorizerErrorKind::TooManyRequestsError(_) + DeleteAuthorizerErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteAuthorizerErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAuthorizerErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteAuthorizerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAuthorizerErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteAuthorizerErrorKind::ConflictError(_inner) => Some(_inner), - DeleteAuthorizerErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteAuthorizerErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteAuthorizerErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteAuthorizerErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteAuthorizerErrorKind::ConflictException(_inner) => Some(_inner), + DeleteAuthorizerErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteAuthorizerErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteAuthorizerErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteAuthorizerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1844,22 +1925,22 @@ pub struct DeleteBasePathMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteBasePathMappingErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteBasePathMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteBasePathMappingErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteBasePathMappingErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteBasePathMappingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteBasePathMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteBasePathMappingErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteBasePathMappingErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteBasePathMappingErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteBasePathMappingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteBasePathMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteBasePathMappingErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteBasePathMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1908,39 +1989,45 @@ impl DeleteBasePathMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteBasePathMappingErrorKind::BadRequestError(_) + DeleteBasePathMappingErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteBasePathMappingErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteBasePathMappingErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteBasePathMappingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteBasePathMappingErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteBasePathMappingErrorKind::TooManyRequestsError(_) + DeleteBasePathMappingErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteBasePathMappingErrorKind::UnauthorizedError(_) + DeleteBasePathMappingErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteBasePathMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteBasePathMappingErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteBasePathMappingErrorKind::ConflictError(_inner) => Some(_inner), - DeleteBasePathMappingErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteBasePathMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteBasePathMappingErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteBasePathMappingErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteBasePathMappingErrorKind::ConflictException(_inner) => Some(_inner), + DeleteBasePathMappingErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteBasePathMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteBasePathMappingErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteBasePathMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1955,20 +2042,20 @@ pub struct DeleteClientCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteClientCertificateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteClientCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteClientCertificateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteClientCertificateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteClientCertificateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteClientCertificateErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteClientCertificateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteClientCertificateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteClientCertificateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteClientCertificateErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteClientCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2017,38 +2104,38 @@ impl DeleteClientCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteClientCertificateErrorKind::BadRequestError(_) + DeleteClientCertificateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteClientCertificateErrorKind::NotFoundError(_) + DeleteClientCertificateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteClientCertificateErrorKind::TooManyRequestsError(_) + DeleteClientCertificateErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteClientCertificateErrorKind::UnauthorizedError(_) + DeleteClientCertificateErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteClientCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteClientCertificateErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteClientCertificateErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteClientCertificateErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteClientCertificateErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteClientCertificateErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteClientCertificateErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteClientCertificateErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteClientCertificateErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteClientCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2063,20 +2150,20 @@ pub struct DeleteDeploymentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDeploymentErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDeploymentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDeploymentErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteDeploymentErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteDeploymentErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteDeploymentErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteDeploymentErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteDeploymentErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteDeploymentErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2125,29 +2212,35 @@ impl DeleteDeploymentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteDeploymentErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDeploymentErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteDeploymentErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteDeploymentErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteDeploymentErrorKind::TooManyRequestsError(_) + DeleteDeploymentErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteDeploymentErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDeploymentErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteDeploymentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDeploymentErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteDeploymentErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteDeploymentErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteDeploymentErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteDeploymentErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteDeploymentErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteDeploymentErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteDeploymentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2162,22 +2255,22 @@ pub struct DeleteDocumentationPartError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDocumentationPartErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDocumentationPartError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDocumentationPartErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteDocumentationPartErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteDocumentationPartErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteDocumentationPartErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteDocumentationPartErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteDocumentationPartErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteDocumentationPartErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteDocumentationPartErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteDocumentationPartErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteDocumentationPartErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteDocumentationPartErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2226,45 +2319,45 @@ impl DeleteDocumentationPartError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationPartErrorKind::BadRequestError(_) + DeleteDocumentationPartErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationPartErrorKind::ConflictError(_) + DeleteDocumentationPartErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationPartErrorKind::NotFoundError(_) + DeleteDocumentationPartErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationPartErrorKind::TooManyRequestsError(_) + DeleteDocumentationPartErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationPartErrorKind::UnauthorizedError(_) + DeleteDocumentationPartErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteDocumentationPartError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDocumentationPartErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteDocumentationPartErrorKind::ConflictError(_inner) => Some(_inner), - DeleteDocumentationPartErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteDocumentationPartErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteDocumentationPartErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteDocumentationPartErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteDocumentationPartErrorKind::ConflictException(_inner) => Some(_inner), + DeleteDocumentationPartErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteDocumentationPartErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteDocumentationPartErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteDocumentationPartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2279,22 +2372,22 @@ pub struct DeleteDocumentationVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDocumentationVersionErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDocumentationVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDocumentationVersionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteDocumentationVersionErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteDocumentationVersionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteDocumentationVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteDocumentationVersionErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteDocumentationVersionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteDocumentationVersionErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteDocumentationVersionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteDocumentationVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteDocumentationVersionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteDocumentationVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2343,45 +2436,45 @@ impl DeleteDocumentationVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationVersionErrorKind::BadRequestError(_) + DeleteDocumentationVersionErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationVersionErrorKind::ConflictError(_) + DeleteDocumentationVersionErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationVersionErrorKind::NotFoundError(_) + DeleteDocumentationVersionErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationVersionErrorKind::TooManyRequestsError(_) + DeleteDocumentationVersionErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteDocumentationVersionErrorKind::UnauthorizedError(_) + DeleteDocumentationVersionErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteDocumentationVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDocumentationVersionErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteDocumentationVersionErrorKind::ConflictError(_inner) => Some(_inner), - DeleteDocumentationVersionErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteDocumentationVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteDocumentationVersionErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteDocumentationVersionErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteDocumentationVersionErrorKind::ConflictException(_inner) => Some(_inner), + DeleteDocumentationVersionErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteDocumentationVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteDocumentationVersionErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteDocumentationVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2396,20 +2489,20 @@ pub struct DeleteDomainNameError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDomainNameErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDomainNameError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDomainNameErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteDomainNameErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteDomainNameErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteDomainNameErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteDomainNameErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteDomainNameErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteDomainNameErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteDomainNameErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteDomainNameErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2458,29 +2551,35 @@ impl DeleteDomainNameError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteDomainNameErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDomainNameErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteDomainNameErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteDomainNameErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteDomainNameErrorKind::TooManyRequestsError(_) + DeleteDomainNameErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteDomainNameErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDomainNameErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteDomainNameError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDomainNameErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteDomainNameErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteDomainNameErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteDomainNameErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteDomainNameErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteDomainNameErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteDomainNameErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteDomainNameErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteDomainNameErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2495,22 +2594,22 @@ pub struct DeleteGatewayResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteGatewayResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteGatewayResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteGatewayResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteGatewayResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteGatewayResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteGatewayResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteGatewayResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteGatewayResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteGatewayResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteGatewayResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteGatewayResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteGatewayResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteGatewayResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2559,39 +2658,45 @@ impl DeleteGatewayResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteGatewayResponseErrorKind::BadRequestError(_) + DeleteGatewayResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteGatewayResponseErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteGatewayResponseErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteGatewayResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteGatewayResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteGatewayResponseErrorKind::TooManyRequestsError(_) + DeleteGatewayResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteGatewayResponseErrorKind::UnauthorizedError(_) + DeleteGatewayResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteGatewayResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteGatewayResponseErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteGatewayResponseErrorKind::ConflictError(_inner) => Some(_inner), - DeleteGatewayResponseErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteGatewayResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteGatewayResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteGatewayResponseErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteGatewayResponseErrorKind::ConflictException(_inner) => Some(_inner), + DeleteGatewayResponseErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteGatewayResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteGatewayResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteGatewayResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2606,20 +2711,20 @@ pub struct DeleteIntegrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteIntegrationErrorKind { - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteIntegrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteIntegrationErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteIntegrationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteIntegrationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteIntegrationErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteIntegrationErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteIntegrationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteIntegrationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteIntegrationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteIntegrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2668,29 +2773,32 @@ impl DeleteIntegrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteIntegrationErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteIntegrationErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteIntegrationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteIntegrationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationErrorKind::TooManyRequestsError(_) + DeleteIntegrationErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteIntegrationErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteIntegrationErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteIntegrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteIntegrationErrorKind::ConflictError(_inner) => Some(_inner), - DeleteIntegrationErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteIntegrationErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteIntegrationErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteIntegrationErrorKind::ConflictException(_inner) => Some(_inner), + DeleteIntegrationErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteIntegrationErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteIntegrationErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteIntegrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2705,22 +2813,22 @@ pub struct DeleteIntegrationResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteIntegrationResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteIntegrationResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteIntegrationResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteIntegrationResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteIntegrationResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteIntegrationResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteIntegrationResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteIntegrationResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteIntegrationResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteIntegrationResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteIntegrationResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteIntegrationResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteIntegrationResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2769,45 +2877,45 @@ impl DeleteIntegrationResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationResponseErrorKind::BadRequestError(_) + DeleteIntegrationResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationResponseErrorKind::ConflictError(_) + DeleteIntegrationResponseErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationResponseErrorKind::NotFoundError(_) + DeleteIntegrationResponseErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationResponseErrorKind::TooManyRequestsError(_) + DeleteIntegrationResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteIntegrationResponseErrorKind::UnauthorizedError(_) + DeleteIntegrationResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteIntegrationResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteIntegrationResponseErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteIntegrationResponseErrorKind::ConflictError(_inner) => Some(_inner), - DeleteIntegrationResponseErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteIntegrationResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteIntegrationResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteIntegrationResponseErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteIntegrationResponseErrorKind::ConflictException(_inner) => Some(_inner), + DeleteIntegrationResponseErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteIntegrationResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteIntegrationResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteIntegrationResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2822,20 +2930,20 @@ pub struct DeleteMethodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteMethodErrorKind { - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteMethodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteMethodErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteMethodErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteMethodErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteMethodErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteMethodErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteMethodErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteMethodErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteMethodErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteMethodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2884,26 +2992,29 @@ impl DeleteMethodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteMethodErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteMethodErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteMethodErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteMethodErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteMethodErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMethodErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteMethodErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteMethodErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteMethodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteMethodErrorKind::ConflictError(_inner) => Some(_inner), - DeleteMethodErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteMethodErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteMethodErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteMethodErrorKind::ConflictException(_inner) => Some(_inner), + DeleteMethodErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteMethodErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteMethodErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteMethodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2918,22 +3029,22 @@ pub struct DeleteMethodResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteMethodResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteMethodResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteMethodResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteMethodResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteMethodResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteMethodResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteMethodResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteMethodResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteMethodResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteMethodResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteMethodResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteMethodResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteMethodResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2982,39 +3093,45 @@ impl DeleteMethodResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteMethodResponseErrorKind::BadRequestError(_) + DeleteMethodResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteMethodResponseErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMethodResponseErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteMethodResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMethodResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteMethodResponseErrorKind::TooManyRequestsError(_) + DeleteMethodResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteMethodResponseErrorKind::UnauthorizedError(_) + DeleteMethodResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteMethodResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteMethodResponseErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteMethodResponseErrorKind::ConflictError(_inner) => Some(_inner), - DeleteMethodResponseErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteMethodResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteMethodResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteMethodResponseErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteMethodResponseErrorKind::ConflictException(_inner) => Some(_inner), + DeleteMethodResponseErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteMethodResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteMethodResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteMethodResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3029,22 +3146,22 @@ pub struct DeleteModelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteModelErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteModelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteModelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteModelErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteModelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteModelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteModelErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteModelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteModelErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteModelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteModelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteModelErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteModelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3093,30 +3210,33 @@ impl DeleteModelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteModelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteModelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteModelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteModelErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteModelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteModelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteModelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteModelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteModelErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteModelErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteModelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteModelErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteModelErrorKind::ConflictError(_inner) => Some(_inner), - DeleteModelErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteModelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteModelErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteModelErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteModelErrorKind::ConflictException(_inner) => Some(_inner), + DeleteModelErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteModelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteModelErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteModelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3131,22 +3251,22 @@ pub struct DeleteRequestValidatorError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRequestValidatorErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRequestValidatorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRequestValidatorErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteRequestValidatorErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteRequestValidatorErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteRequestValidatorErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteRequestValidatorErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteRequestValidatorErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteRequestValidatorErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteRequestValidatorErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteRequestValidatorErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteRequestValidatorErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteRequestValidatorErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3195,45 +3315,45 @@ impl DeleteRequestValidatorError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteRequestValidatorErrorKind::BadRequestError(_) + DeleteRequestValidatorErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteRequestValidatorErrorKind::ConflictError(_) + DeleteRequestValidatorErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteRequestValidatorErrorKind::NotFoundError(_) + DeleteRequestValidatorErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteRequestValidatorErrorKind::TooManyRequestsError(_) + DeleteRequestValidatorErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteRequestValidatorErrorKind::UnauthorizedError(_) + DeleteRequestValidatorErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteRequestValidatorError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRequestValidatorErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteRequestValidatorErrorKind::ConflictError(_inner) => Some(_inner), - DeleteRequestValidatorErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteRequestValidatorErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteRequestValidatorErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteRequestValidatorErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteRequestValidatorErrorKind::ConflictException(_inner) => Some(_inner), + DeleteRequestValidatorErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteRequestValidatorErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteRequestValidatorErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteRequestValidatorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3248,22 +3368,22 @@ pub struct DeleteResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteResourceErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteResourceErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3312,30 +3432,36 @@ impl DeleteResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteResourceErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteResourceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteResourceErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteResourceErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteResourceErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteResourceErrorKind::ConflictError(_inner) => Some(_inner), - DeleteResourceErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteResourceErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteResourceErrorKind::ConflictException(_inner) => Some(_inner), + DeleteResourceErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3350,20 +3476,20 @@ pub struct DeleteRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRestApiErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRestApiErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteRestApiErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteRestApiErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteRestApiErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3412,26 +3538,29 @@ impl DeleteRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteRestApiErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteRestApiErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteRestApiErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteRestApiErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRestApiErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRestApiErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteRestApiErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteRestApiErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteRestApiErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3446,20 +3575,20 @@ pub struct DeleteStageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteStageErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteStageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteStageErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteStageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteStageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteStageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteStageErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteStageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteStageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteStageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteStageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3508,26 +3637,29 @@ impl DeleteStageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteStageErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteStageErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteStageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteStageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteStageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteStageErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteStageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteStageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteStageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteStageErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteStageErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteStageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteStageErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteStageErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteStageErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteStageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteStageErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteStageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3542,20 +3674,20 @@ pub struct DeleteUsagePlanError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteUsagePlanErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteUsagePlanError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteUsagePlanErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteUsagePlanErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteUsagePlanErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteUsagePlanErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteUsagePlanErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteUsagePlanErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteUsagePlanErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteUsagePlanErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteUsagePlanErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3604,29 +3736,32 @@ impl DeleteUsagePlanError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteUsagePlanErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteUsagePlanErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteUsagePlanErrorKind::TooManyRequestsError(_) + DeleteUsagePlanErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUsagePlanErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for DeleteUsagePlanError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteUsagePlanErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteUsagePlanErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteUsagePlanErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteUsagePlanErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteUsagePlanErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteUsagePlanErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteUsagePlanErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteUsagePlanErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteUsagePlanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3641,22 +3776,22 @@ pub struct DeleteUsagePlanKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteUsagePlanKeyErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteUsagePlanKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteUsagePlanKeyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteUsagePlanKeyErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteUsagePlanKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteUsagePlanKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteUsagePlanKeyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteUsagePlanKeyErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteUsagePlanKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteUsagePlanKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteUsagePlanKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3705,36 +3840,45 @@ impl DeleteUsagePlanKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanKeyErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUsagePlanKeyErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanKeyErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUsagePlanKeyErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteUsagePlanKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUsagePlanKeyErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteUsagePlanKeyErrorKind::TooManyRequestsError(_) + DeleteUsagePlanKeyErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - DeleteUsagePlanKeyErrorKind::UnauthorizedError(_) + DeleteUsagePlanKeyErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for DeleteUsagePlanKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteUsagePlanKeyErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteUsagePlanKeyErrorKind::ConflictError(_inner) => Some(_inner), - DeleteUsagePlanKeyErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteUsagePlanKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteUsagePlanKeyErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteUsagePlanKeyErrorKind::ConflictException(_inner) => Some(_inner), + DeleteUsagePlanKeyErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteUsagePlanKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteUsagePlanKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3749,20 +3893,20 @@ pub struct DeleteVpcLinkError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteVpcLinkErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteVpcLinkError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteVpcLinkErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteVpcLinkErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteVpcLinkErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteVpcLinkErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + DeleteVpcLinkErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteVpcLinkErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteVpcLinkErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteVpcLinkErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), DeleteVpcLinkErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3811,26 +3955,29 @@ impl DeleteVpcLinkError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteVpcLinkErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteVpcLinkErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteVpcLinkErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteVpcLinkErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteVpcLinkErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteVpcLinkErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, DeleteVpcLinkErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, DeleteVpcLinkErrorKind::UnauthorizedException(_)) } } impl std::error::Error for DeleteVpcLinkError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteVpcLinkErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteVpcLinkErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteVpcLinkErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteVpcLinkErrorKind::UnauthorizedError(_inner) => Some(_inner), + DeleteVpcLinkErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteVpcLinkErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteVpcLinkErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteVpcLinkErrorKind::UnauthorizedException(_inner) => Some(_inner), DeleteVpcLinkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3845,20 +3992,20 @@ pub struct FlushStageAuthorizersCacheError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum FlushStageAuthorizersCacheErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for FlushStageAuthorizersCacheError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - FlushStageAuthorizersCacheErrorKind::BadRequestError(_inner) => _inner.fmt(f), - FlushStageAuthorizersCacheErrorKind::NotFoundError(_inner) => _inner.fmt(f), - FlushStageAuthorizersCacheErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - FlushStageAuthorizersCacheErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + FlushStageAuthorizersCacheErrorKind::BadRequestException(_inner) => _inner.fmt(f), + FlushStageAuthorizersCacheErrorKind::NotFoundException(_inner) => _inner.fmt(f), + FlushStageAuthorizersCacheErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + FlushStageAuthorizersCacheErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), FlushStageAuthorizersCacheErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3907,38 +4054,38 @@ impl FlushStageAuthorizersCacheError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - FlushStageAuthorizersCacheErrorKind::BadRequestError(_) + FlushStageAuthorizersCacheErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - FlushStageAuthorizersCacheErrorKind::NotFoundError(_) + FlushStageAuthorizersCacheErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - FlushStageAuthorizersCacheErrorKind::TooManyRequestsError(_) + FlushStageAuthorizersCacheErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - FlushStageAuthorizersCacheErrorKind::UnauthorizedError(_) + FlushStageAuthorizersCacheErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for FlushStageAuthorizersCacheError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - FlushStageAuthorizersCacheErrorKind::BadRequestError(_inner) => Some(_inner), - FlushStageAuthorizersCacheErrorKind::NotFoundError(_inner) => Some(_inner), - FlushStageAuthorizersCacheErrorKind::TooManyRequestsError(_inner) => Some(_inner), - FlushStageAuthorizersCacheErrorKind::UnauthorizedError(_inner) => Some(_inner), + FlushStageAuthorizersCacheErrorKind::BadRequestException(_inner) => Some(_inner), + FlushStageAuthorizersCacheErrorKind::NotFoundException(_inner) => Some(_inner), + FlushStageAuthorizersCacheErrorKind::TooManyRequestsException(_inner) => Some(_inner), + FlushStageAuthorizersCacheErrorKind::UnauthorizedException(_inner) => Some(_inner), FlushStageAuthorizersCacheErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3953,20 +4100,20 @@ pub struct FlushStageCacheError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum FlushStageCacheErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for FlushStageCacheError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - FlushStageCacheErrorKind::BadRequestError(_inner) => _inner.fmt(f), - FlushStageCacheErrorKind::NotFoundError(_inner) => _inner.fmt(f), - FlushStageCacheErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - FlushStageCacheErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + FlushStageCacheErrorKind::BadRequestException(_inner) => _inner.fmt(f), + FlushStageCacheErrorKind::NotFoundException(_inner) => _inner.fmt(f), + FlushStageCacheErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + FlushStageCacheErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), FlushStageCacheErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4015,29 +4162,32 @@ impl FlushStageCacheError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, FlushStageCacheErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, FlushStageCacheErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, FlushStageCacheErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, FlushStageCacheErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - FlushStageCacheErrorKind::TooManyRequestsError(_) + FlushStageCacheErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, FlushStageCacheErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + FlushStageCacheErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for FlushStageCacheError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - FlushStageCacheErrorKind::BadRequestError(_inner) => Some(_inner), - FlushStageCacheErrorKind::NotFoundError(_inner) => Some(_inner), - FlushStageCacheErrorKind::TooManyRequestsError(_inner) => Some(_inner), - FlushStageCacheErrorKind::UnauthorizedError(_inner) => Some(_inner), + FlushStageCacheErrorKind::BadRequestException(_inner) => Some(_inner), + FlushStageCacheErrorKind::NotFoundException(_inner) => Some(_inner), + FlushStageCacheErrorKind::TooManyRequestsException(_inner) => Some(_inner), + FlushStageCacheErrorKind::UnauthorizedException(_inner) => Some(_inner), FlushStageCacheErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4052,18 +4202,18 @@ pub struct GenerateClientCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateClientCertificateErrorKind { - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateClientCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateClientCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GenerateClientCertificateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GenerateClientCertificateErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GenerateClientCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + GenerateClientCertificateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GenerateClientCertificateErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GenerateClientCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4112,31 +4262,31 @@ impl GenerateClientCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - GenerateClientCertificateErrorKind::LimitExceededError(_) + GenerateClientCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GenerateClientCertificateErrorKind::TooManyRequestsError(_) + GenerateClientCertificateErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GenerateClientCertificateErrorKind::UnauthorizedError(_) + GenerateClientCertificateErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GenerateClientCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateClientCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - GenerateClientCertificateErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GenerateClientCertificateErrorKind::UnauthorizedError(_inner) => Some(_inner), + GenerateClientCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + GenerateClientCertificateErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GenerateClientCertificateErrorKind::UnauthorizedException(_inner) => Some(_inner), GenerateClientCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4151,18 +4301,18 @@ pub struct GetAccountError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetAccountErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetAccountErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetAccountErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetAccountErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetAccountErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetAccountErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4211,22 +4361,22 @@ impl GetAccountError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetAccountErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetAccountErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetAccountErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetAccountErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetAccountErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetAccountErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetAccountError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountErrorKind::NotFoundError(_inner) => Some(_inner), - GetAccountErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetAccountErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetAccountErrorKind::NotFoundException(_inner) => Some(_inner), + GetAccountErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetAccountErrorKind::UnauthorizedException(_inner) => Some(_inner), GetAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4241,18 +4391,18 @@ pub struct GetApiKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetApiKeyErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetApiKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetApiKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetApiKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetApiKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetApiKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetApiKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetApiKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetApiKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4301,22 +4451,22 @@ impl GetApiKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetApiKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetApiKeyErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetApiKeyErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetApiKeyErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetApiKeyErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetApiKeyErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetApiKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetApiKeyErrorKind::NotFoundError(_inner) => Some(_inner), - GetApiKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetApiKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetApiKeyErrorKind::NotFoundException(_inner) => Some(_inner), + GetApiKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetApiKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), GetApiKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4331,18 +4481,18 @@ pub struct GetApiKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetApiKeysErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetApiKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetApiKeysErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetApiKeysErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetApiKeysErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetApiKeysErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetApiKeysErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetApiKeysErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetApiKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4391,22 +4541,22 @@ impl GetApiKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetApiKeysErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetApiKeysErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetApiKeysErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetApiKeysErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetApiKeysErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetApiKeysErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetApiKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetApiKeysErrorKind::BadRequestError(_inner) => Some(_inner), - GetApiKeysErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetApiKeysErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetApiKeysErrorKind::BadRequestException(_inner) => Some(_inner), + GetApiKeysErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetApiKeysErrorKind::UnauthorizedException(_inner) => Some(_inner), GetApiKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4421,18 +4571,18 @@ pub struct GetAuthorizerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAuthorizerErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAuthorizerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAuthorizerErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetAuthorizerErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetAuthorizerErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetAuthorizerErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetAuthorizerErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetAuthorizerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetAuthorizerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4481,22 +4631,25 @@ impl GetAuthorizerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetAuthorizerErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetAuthorizerErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetAuthorizerErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetAuthorizerErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetAuthorizerErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetAuthorizerErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetAuthorizerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAuthorizerErrorKind::NotFoundError(_inner) => Some(_inner), - GetAuthorizerErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetAuthorizerErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetAuthorizerErrorKind::NotFoundException(_inner) => Some(_inner), + GetAuthorizerErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetAuthorizerErrorKind::UnauthorizedException(_inner) => Some(_inner), GetAuthorizerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4511,20 +4664,20 @@ pub struct GetAuthorizersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAuthorizersErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAuthorizersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAuthorizersErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetAuthorizersErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetAuthorizersErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetAuthorizersErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetAuthorizersErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetAuthorizersErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetAuthorizersErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetAuthorizersErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetAuthorizersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4573,26 +4726,32 @@ impl GetAuthorizersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetAuthorizersErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetAuthorizersErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetAuthorizersErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetAuthorizersErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetAuthorizersErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetAuthorizersErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetAuthorizersErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetAuthorizersErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetAuthorizersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAuthorizersErrorKind::BadRequestError(_inner) => Some(_inner), - GetAuthorizersErrorKind::NotFoundError(_inner) => Some(_inner), - GetAuthorizersErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetAuthorizersErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetAuthorizersErrorKind::BadRequestException(_inner) => Some(_inner), + GetAuthorizersErrorKind::NotFoundException(_inner) => Some(_inner), + GetAuthorizersErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetAuthorizersErrorKind::UnauthorizedException(_inner) => Some(_inner), GetAuthorizersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4607,18 +4766,18 @@ pub struct GetBasePathMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetBasePathMappingErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetBasePathMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetBasePathMappingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetBasePathMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetBasePathMappingErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetBasePathMappingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetBasePathMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetBasePathMappingErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetBasePathMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4667,28 +4826,31 @@ impl GetBasePathMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetBasePathMappingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetBasePathMappingErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetBasePathMappingErrorKind::TooManyRequestsError(_) + GetBasePathMappingErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetBasePathMappingErrorKind::UnauthorizedError(_) + GetBasePathMappingErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetBasePathMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetBasePathMappingErrorKind::NotFoundError(_inner) => Some(_inner), - GetBasePathMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetBasePathMappingErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetBasePathMappingErrorKind::NotFoundException(_inner) => Some(_inner), + GetBasePathMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetBasePathMappingErrorKind::UnauthorizedException(_inner) => Some(_inner), GetBasePathMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4703,18 +4865,18 @@ pub struct GetBasePathMappingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetBasePathMappingsErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetBasePathMappingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetBasePathMappingsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetBasePathMappingsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetBasePathMappingsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetBasePathMappingsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetBasePathMappingsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetBasePathMappingsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetBasePathMappingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4763,28 +4925,31 @@ impl GetBasePathMappingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetBasePathMappingsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetBasePathMappingsErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetBasePathMappingsErrorKind::TooManyRequestsError(_) + GetBasePathMappingsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetBasePathMappingsErrorKind::UnauthorizedError(_) + GetBasePathMappingsErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetBasePathMappingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetBasePathMappingsErrorKind::NotFoundError(_inner) => Some(_inner), - GetBasePathMappingsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetBasePathMappingsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetBasePathMappingsErrorKind::NotFoundException(_inner) => Some(_inner), + GetBasePathMappingsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetBasePathMappingsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetBasePathMappingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4799,18 +4964,18 @@ pub struct GetClientCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetClientCertificateErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetClientCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetClientCertificateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetClientCertificateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetClientCertificateErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetClientCertificateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetClientCertificateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetClientCertificateErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetClientCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4859,28 +5024,31 @@ impl GetClientCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetClientCertificateErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetClientCertificateErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetClientCertificateErrorKind::TooManyRequestsError(_) + GetClientCertificateErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetClientCertificateErrorKind::UnauthorizedError(_) + GetClientCertificateErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetClientCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetClientCertificateErrorKind::NotFoundError(_inner) => Some(_inner), - GetClientCertificateErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetClientCertificateErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetClientCertificateErrorKind::NotFoundException(_inner) => Some(_inner), + GetClientCertificateErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetClientCertificateErrorKind::UnauthorizedException(_inner) => Some(_inner), GetClientCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4895,18 +5063,18 @@ pub struct GetClientCertificatesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetClientCertificatesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetClientCertificatesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetClientCertificatesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetClientCertificatesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetClientCertificatesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetClientCertificatesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetClientCertificatesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetClientCertificatesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetClientCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4955,31 +5123,31 @@ impl GetClientCertificatesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetClientCertificatesErrorKind::BadRequestError(_) + GetClientCertificatesErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetClientCertificatesErrorKind::TooManyRequestsError(_) + GetClientCertificatesErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetClientCertificatesErrorKind::UnauthorizedError(_) + GetClientCertificatesErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetClientCertificatesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetClientCertificatesErrorKind::BadRequestError(_inner) => Some(_inner), - GetClientCertificatesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetClientCertificatesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetClientCertificatesErrorKind::BadRequestException(_inner) => Some(_inner), + GetClientCertificatesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetClientCertificatesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetClientCertificatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4994,20 +5162,20 @@ pub struct GetDeploymentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDeploymentErrorKind { - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDeploymentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDeploymentErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDeploymentErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - GetDeploymentErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDeploymentErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDeploymentErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDeploymentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + GetDeploymentErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5056,29 +5224,32 @@ impl GetDeploymentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDeploymentErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDeploymentErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetDeploymentErrorKind::ServiceUnavailableError(_) + GetDeploymentErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetDeploymentErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetDeploymentErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetDeploymentErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetDeploymentErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetDeploymentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDeploymentErrorKind::NotFoundError(_inner) => Some(_inner), - GetDeploymentErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - GetDeploymentErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDeploymentErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDeploymentErrorKind::NotFoundException(_inner) => Some(_inner), + GetDeploymentErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + GetDeploymentErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDeploymentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5093,22 +5264,22 @@ pub struct GetDeploymentsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDeploymentsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDeploymentsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDeploymentsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDeploymentsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDeploymentsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - GetDeploymentsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDeploymentsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDeploymentsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDeploymentsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDeploymentsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + GetDeploymentsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDeploymentsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDeploymentsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5157,33 +5328,39 @@ impl GetDeploymentsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetDeploymentsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetDeploymentsErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDeploymentsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDeploymentsErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetDeploymentsErrorKind::ServiceUnavailableError(_) + GetDeploymentsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetDeploymentsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetDeploymentsErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetDeploymentsErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetDeploymentsErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetDeploymentsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDeploymentsErrorKind::BadRequestError(_inner) => Some(_inner), - GetDeploymentsErrorKind::NotFoundError(_inner) => Some(_inner), - GetDeploymentsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - GetDeploymentsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDeploymentsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDeploymentsErrorKind::BadRequestException(_inner) => Some(_inner), + GetDeploymentsErrorKind::NotFoundException(_inner) => Some(_inner), + GetDeploymentsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + GetDeploymentsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDeploymentsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDeploymentsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5198,18 +5375,18 @@ pub struct GetDocumentationPartError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDocumentationPartErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDocumentationPartError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDocumentationPartErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDocumentationPartErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDocumentationPartErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDocumentationPartErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDocumentationPartErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDocumentationPartErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDocumentationPartErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5258,28 +5435,31 @@ impl GetDocumentationPartError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDocumentationPartErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetDocumentationPartErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationPartErrorKind::TooManyRequestsError(_) + GetDocumentationPartErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationPartErrorKind::UnauthorizedError(_) + GetDocumentationPartErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetDocumentationPartError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDocumentationPartErrorKind::NotFoundError(_inner) => Some(_inner), - GetDocumentationPartErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDocumentationPartErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDocumentationPartErrorKind::NotFoundException(_inner) => Some(_inner), + GetDocumentationPartErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDocumentationPartErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDocumentationPartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5294,20 +5474,20 @@ pub struct GetDocumentationPartsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDocumentationPartsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDocumentationPartsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDocumentationPartsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDocumentationPartsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDocumentationPartsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDocumentationPartsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDocumentationPartsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDocumentationPartsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDocumentationPartsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDocumentationPartsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDocumentationPartsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5356,35 +5536,38 @@ impl GetDocumentationPartsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationPartsErrorKind::BadRequestError(_) + GetDocumentationPartsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDocumentationPartsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetDocumentationPartsErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationPartsErrorKind::TooManyRequestsError(_) + GetDocumentationPartsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationPartsErrorKind::UnauthorizedError(_) + GetDocumentationPartsErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetDocumentationPartsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDocumentationPartsErrorKind::BadRequestError(_inner) => Some(_inner), - GetDocumentationPartsErrorKind::NotFoundError(_inner) => Some(_inner), - GetDocumentationPartsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDocumentationPartsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDocumentationPartsErrorKind::BadRequestException(_inner) => Some(_inner), + GetDocumentationPartsErrorKind::NotFoundException(_inner) => Some(_inner), + GetDocumentationPartsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDocumentationPartsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDocumentationPartsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5399,18 +5582,18 @@ pub struct GetDocumentationVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDocumentationVersionErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDocumentationVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDocumentationVersionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDocumentationVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDocumentationVersionErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDocumentationVersionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDocumentationVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDocumentationVersionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDocumentationVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5459,31 +5642,31 @@ impl GetDocumentationVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionErrorKind::NotFoundError(_) + GetDocumentationVersionErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionErrorKind::TooManyRequestsError(_) + GetDocumentationVersionErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionErrorKind::UnauthorizedError(_) + GetDocumentationVersionErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetDocumentationVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDocumentationVersionErrorKind::NotFoundError(_inner) => Some(_inner), - GetDocumentationVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDocumentationVersionErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDocumentationVersionErrorKind::NotFoundException(_inner) => Some(_inner), + GetDocumentationVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDocumentationVersionErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDocumentationVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5498,20 +5681,20 @@ pub struct GetDocumentationVersionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDocumentationVersionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDocumentationVersionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDocumentationVersionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDocumentationVersionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDocumentationVersionsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDocumentationVersionsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDocumentationVersionsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDocumentationVersionsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDocumentationVersionsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDocumentationVersionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDocumentationVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5560,38 +5743,38 @@ impl GetDocumentationVersionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionsErrorKind::BadRequestError(_) + GetDocumentationVersionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionsErrorKind::NotFoundError(_) + GetDocumentationVersionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionsErrorKind::TooManyRequestsError(_) + GetDocumentationVersionsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetDocumentationVersionsErrorKind::UnauthorizedError(_) + GetDocumentationVersionsErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetDocumentationVersionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDocumentationVersionsErrorKind::BadRequestError(_inner) => Some(_inner), - GetDocumentationVersionsErrorKind::NotFoundError(_inner) => Some(_inner), - GetDocumentationVersionsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDocumentationVersionsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDocumentationVersionsErrorKind::BadRequestException(_inner) => Some(_inner), + GetDocumentationVersionsErrorKind::NotFoundException(_inner) => Some(_inner), + GetDocumentationVersionsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDocumentationVersionsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDocumentationVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5606,20 +5789,20 @@ pub struct GetDomainNameError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDomainNameErrorKind { - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDomainNameError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDomainNameErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDomainNameErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - GetDomainNameErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDomainNameErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDomainNameErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDomainNameErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + GetDomainNameErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDomainNameErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDomainNameErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5668,29 +5851,32 @@ impl GetDomainNameError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDomainNameErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDomainNameErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetDomainNameErrorKind::ServiceUnavailableError(_) + GetDomainNameErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetDomainNameErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetDomainNameErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetDomainNameErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetDomainNameErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetDomainNameError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDomainNameErrorKind::NotFoundError(_inner) => Some(_inner), - GetDomainNameErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - GetDomainNameErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDomainNameErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDomainNameErrorKind::NotFoundException(_inner) => Some(_inner), + GetDomainNameErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + GetDomainNameErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDomainNameErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDomainNameErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5705,18 +5891,18 @@ pub struct GetDomainNamesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDomainNamesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDomainNamesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDomainNamesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDomainNamesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetDomainNamesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetDomainNamesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDomainNamesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetDomainNamesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetDomainNamesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5765,22 +5951,28 @@ impl GetDomainNamesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetDomainNamesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetDomainNamesErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetDomainNamesErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetDomainNamesErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetDomainNamesErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetDomainNamesErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetDomainNamesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDomainNamesErrorKind::BadRequestError(_inner) => Some(_inner), - GetDomainNamesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetDomainNamesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetDomainNamesErrorKind::BadRequestException(_inner) => Some(_inner), + GetDomainNamesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetDomainNamesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetDomainNamesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5795,22 +5987,22 @@ pub struct GetExportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetExportErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetExportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetExportErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetExportErrorKind::ConflictError(_inner) => _inner.fmt(f), - GetExportErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetExportErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetExportErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetExportErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetExportErrorKind::ConflictException(_inner) => _inner.fmt(f), + GetExportErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetExportErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetExportErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetExportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5859,30 +6051,30 @@ impl GetExportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetExportErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetExportErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, GetExportErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, GetExportErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetExportErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetExportErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetExportErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetExportErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetExportErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetExportErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetExportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetExportErrorKind::BadRequestError(_inner) => Some(_inner), - GetExportErrorKind::ConflictError(_inner) => Some(_inner), - GetExportErrorKind::NotFoundError(_inner) => Some(_inner), - GetExportErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetExportErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetExportErrorKind::BadRequestException(_inner) => Some(_inner), + GetExportErrorKind::ConflictException(_inner) => Some(_inner), + GetExportErrorKind::NotFoundException(_inner) => Some(_inner), + GetExportErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetExportErrorKind::UnauthorizedException(_inner) => Some(_inner), GetExportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5897,18 +6089,18 @@ pub struct GetGatewayResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetGatewayResponseErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetGatewayResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetGatewayResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetGatewayResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetGatewayResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetGatewayResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetGatewayResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetGatewayResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetGatewayResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5957,28 +6149,31 @@ impl GetGatewayResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetGatewayResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetGatewayResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetGatewayResponseErrorKind::TooManyRequestsError(_) + GetGatewayResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetGatewayResponseErrorKind::UnauthorizedError(_) + GetGatewayResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetGatewayResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetGatewayResponseErrorKind::NotFoundError(_inner) => Some(_inner), - GetGatewayResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetGatewayResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetGatewayResponseErrorKind::NotFoundException(_inner) => Some(_inner), + GetGatewayResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetGatewayResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), GetGatewayResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5993,20 +6188,20 @@ pub struct GetGatewayResponsesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetGatewayResponsesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetGatewayResponsesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetGatewayResponsesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetGatewayResponsesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetGatewayResponsesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetGatewayResponsesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetGatewayResponsesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetGatewayResponsesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetGatewayResponsesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetGatewayResponsesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetGatewayResponsesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6055,32 +6250,38 @@ impl GetGatewayResponsesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetGatewayResponsesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetGatewayResponsesErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetGatewayResponsesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetGatewayResponsesErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetGatewayResponsesErrorKind::TooManyRequestsError(_) + GetGatewayResponsesErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetGatewayResponsesErrorKind::UnauthorizedError(_) + GetGatewayResponsesErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetGatewayResponsesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetGatewayResponsesErrorKind::BadRequestError(_inner) => Some(_inner), - GetGatewayResponsesErrorKind::NotFoundError(_inner) => Some(_inner), - GetGatewayResponsesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetGatewayResponsesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetGatewayResponsesErrorKind::BadRequestException(_inner) => Some(_inner), + GetGatewayResponsesErrorKind::NotFoundException(_inner) => Some(_inner), + GetGatewayResponsesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetGatewayResponsesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetGatewayResponsesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6095,18 +6296,18 @@ pub struct GetIntegrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetIntegrationErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetIntegrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetIntegrationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetIntegrationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetIntegrationErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetIntegrationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetIntegrationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetIntegrationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetIntegrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6155,22 +6356,28 @@ impl GetIntegrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetIntegrationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetIntegrationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetIntegrationErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetIntegrationErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetIntegrationErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetIntegrationErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetIntegrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetIntegrationErrorKind::NotFoundError(_inner) => Some(_inner), - GetIntegrationErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetIntegrationErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetIntegrationErrorKind::NotFoundException(_inner) => Some(_inner), + GetIntegrationErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetIntegrationErrorKind::UnauthorizedException(_inner) => Some(_inner), GetIntegrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6185,18 +6392,18 @@ pub struct GetIntegrationResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetIntegrationResponseErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetIntegrationResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetIntegrationResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetIntegrationResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetIntegrationResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetIntegrationResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetIntegrationResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetIntegrationResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetIntegrationResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6245,31 +6452,31 @@ impl GetIntegrationResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetIntegrationResponseErrorKind::NotFoundError(_) + GetIntegrationResponseErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetIntegrationResponseErrorKind::TooManyRequestsError(_) + GetIntegrationResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetIntegrationResponseErrorKind::UnauthorizedError(_) + GetIntegrationResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetIntegrationResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetIntegrationResponseErrorKind::NotFoundError(_inner) => Some(_inner), - GetIntegrationResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetIntegrationResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetIntegrationResponseErrorKind::NotFoundException(_inner) => Some(_inner), + GetIntegrationResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetIntegrationResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), GetIntegrationResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6284,18 +6491,18 @@ pub struct GetMethodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMethodErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetMethodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMethodErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetMethodErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetMethodErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetMethodErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetMethodErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetMethodErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetMethodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6344,22 +6551,22 @@ impl GetMethodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetMethodErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetMethodErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetMethodErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetMethodErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetMethodErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetMethodErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetMethodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMethodErrorKind::NotFoundError(_inner) => Some(_inner), - GetMethodErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetMethodErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetMethodErrorKind::NotFoundException(_inner) => Some(_inner), + GetMethodErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetMethodErrorKind::UnauthorizedException(_inner) => Some(_inner), GetMethodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6374,18 +6581,18 @@ pub struct GetMethodResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMethodResponseErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetMethodResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMethodResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetMethodResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetMethodResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetMethodResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetMethodResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetMethodResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetMethodResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6434,25 +6641,28 @@ impl GetMethodResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetMethodResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetMethodResponseErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetMethodResponseErrorKind::TooManyRequestsError(_) + GetMethodResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetMethodResponseErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetMethodResponseErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetMethodResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMethodResponseErrorKind::NotFoundError(_inner) => Some(_inner), - GetMethodResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetMethodResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetMethodResponseErrorKind::NotFoundException(_inner) => Some(_inner), + GetMethodResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetMethodResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), GetMethodResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6467,18 +6677,18 @@ pub struct GetModelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetModelErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetModelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetModelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetModelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetModelErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetModelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetModelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetModelErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetModelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6527,22 +6737,22 @@ impl GetModelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetModelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetModelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetModelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetModelErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetModelErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetModelErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetModelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetModelErrorKind::NotFoundError(_inner) => Some(_inner), - GetModelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetModelErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetModelErrorKind::NotFoundException(_inner) => Some(_inner), + GetModelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetModelErrorKind::UnauthorizedException(_inner) => Some(_inner), GetModelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6557,20 +6767,20 @@ pub struct GetModelsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetModelsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetModelsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetModelsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetModelsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetModelsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetModelsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetModelsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetModelsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetModelsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetModelsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetModelsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6619,26 +6829,26 @@ impl GetModelsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetModelsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetModelsErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetModelsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetModelsErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetModelsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetModelsErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetModelsErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetModelsErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetModelsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetModelsErrorKind::BadRequestError(_inner) => Some(_inner), - GetModelsErrorKind::NotFoundError(_inner) => Some(_inner), - GetModelsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetModelsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetModelsErrorKind::BadRequestException(_inner) => Some(_inner), + GetModelsErrorKind::NotFoundException(_inner) => Some(_inner), + GetModelsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetModelsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetModelsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6653,20 +6863,20 @@ pub struct GetModelTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetModelTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetModelTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetModelTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetModelTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetModelTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetModelTemplateErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetModelTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetModelTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetModelTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetModelTemplateErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetModelTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6715,29 +6925,35 @@ impl GetModelTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetModelTemplateErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetModelTemplateErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetModelTemplateErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetModelTemplateErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetModelTemplateErrorKind::TooManyRequestsError(_) + GetModelTemplateErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetModelTemplateErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetModelTemplateErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetModelTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetModelTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - GetModelTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - GetModelTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetModelTemplateErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetModelTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + GetModelTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + GetModelTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetModelTemplateErrorKind::UnauthorizedException(_inner) => Some(_inner), GetModelTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6752,18 +6968,18 @@ pub struct GetRequestValidatorError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRequestValidatorErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRequestValidatorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRequestValidatorErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetRequestValidatorErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetRequestValidatorErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetRequestValidatorErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetRequestValidatorErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetRequestValidatorErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetRequestValidatorErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6812,28 +7028,31 @@ impl GetRequestValidatorError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetRequestValidatorErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRequestValidatorErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetRequestValidatorErrorKind::TooManyRequestsError(_) + GetRequestValidatorErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetRequestValidatorErrorKind::UnauthorizedError(_) + GetRequestValidatorErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetRequestValidatorError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRequestValidatorErrorKind::NotFoundError(_inner) => Some(_inner), - GetRequestValidatorErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetRequestValidatorErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetRequestValidatorErrorKind::NotFoundException(_inner) => Some(_inner), + GetRequestValidatorErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetRequestValidatorErrorKind::UnauthorizedException(_inner) => Some(_inner), GetRequestValidatorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6848,20 +7067,20 @@ pub struct GetRequestValidatorsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRequestValidatorsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRequestValidatorsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRequestValidatorsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetRequestValidatorsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetRequestValidatorsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetRequestValidatorsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetRequestValidatorsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetRequestValidatorsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetRequestValidatorsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetRequestValidatorsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetRequestValidatorsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6910,35 +7129,38 @@ impl GetRequestValidatorsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetRequestValidatorsErrorKind::BadRequestError(_) + GetRequestValidatorsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetRequestValidatorsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRequestValidatorsErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetRequestValidatorsErrorKind::TooManyRequestsError(_) + GetRequestValidatorsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - GetRequestValidatorsErrorKind::UnauthorizedError(_) + GetRequestValidatorsErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for GetRequestValidatorsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRequestValidatorsErrorKind::BadRequestError(_inner) => Some(_inner), - GetRequestValidatorsErrorKind::NotFoundError(_inner) => Some(_inner), - GetRequestValidatorsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetRequestValidatorsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetRequestValidatorsErrorKind::BadRequestException(_inner) => Some(_inner), + GetRequestValidatorsErrorKind::NotFoundException(_inner) => Some(_inner), + GetRequestValidatorsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetRequestValidatorsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetRequestValidatorsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6953,18 +7175,18 @@ pub struct GetResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetResourceErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7013,22 +7235,25 @@ impl GetResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetResourceErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetResourceErrorKind::NotFoundError(_inner) => Some(_inner), - GetResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetResourceErrorKind::NotFoundException(_inner) => Some(_inner), + GetResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), GetResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7043,20 +7268,20 @@ pub struct GetResourcesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetResourcesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetResourcesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetResourcesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetResourcesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetResourcesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetResourcesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetResourcesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetResourcesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetResourcesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetResourcesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7105,26 +7330,29 @@ impl GetResourcesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetResourcesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetResourcesErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetResourcesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetResourcesErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetResourcesErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetResourcesErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetResourcesErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetResourcesErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetResourcesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetResourcesErrorKind::BadRequestError(_inner) => Some(_inner), - GetResourcesErrorKind::NotFoundError(_inner) => Some(_inner), - GetResourcesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetResourcesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetResourcesErrorKind::BadRequestException(_inner) => Some(_inner), + GetResourcesErrorKind::NotFoundException(_inner) => Some(_inner), + GetResourcesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetResourcesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7139,18 +7367,18 @@ pub struct GetRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRestApiErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRestApiErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetRestApiErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7199,22 +7427,22 @@ impl GetRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetRestApiErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetRestApiErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetRestApiErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRestApiErrorKind::NotFoundError(_inner) => Some(_inner), - GetRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetRestApiErrorKind::NotFoundException(_inner) => Some(_inner), + GetRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), GetRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7229,18 +7457,18 @@ pub struct GetRestApisError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRestApisErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRestApisError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRestApisErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetRestApisErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetRestApisErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetRestApisErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetRestApisErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetRestApisErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetRestApisErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7289,22 +7517,25 @@ impl GetRestApisError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetRestApisErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetRestApisErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetRestApisErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetRestApisErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetRestApisErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetRestApisErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetRestApisError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRestApisErrorKind::BadRequestError(_inner) => Some(_inner), - GetRestApisErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetRestApisErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetRestApisErrorKind::BadRequestException(_inner) => Some(_inner), + GetRestApisErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetRestApisErrorKind::UnauthorizedException(_inner) => Some(_inner), GetRestApisErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7319,22 +7550,22 @@ pub struct GetSdkError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSdkErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSdkError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSdkErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetSdkErrorKind::ConflictError(_inner) => _inner.fmt(f), - GetSdkErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetSdkErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetSdkErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetSdkErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetSdkErrorKind::ConflictException(_inner) => _inner.fmt(f), + GetSdkErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetSdkErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetSdkErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetSdkErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7383,30 +7614,30 @@ impl GetSdkError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetSdkErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetSdkErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, GetSdkErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, GetSdkErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetSdkErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetSdkErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetSdkErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetSdkErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetSdkErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetSdkErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetSdkError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSdkErrorKind::BadRequestError(_inner) => Some(_inner), - GetSdkErrorKind::ConflictError(_inner) => Some(_inner), - GetSdkErrorKind::NotFoundError(_inner) => Some(_inner), - GetSdkErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetSdkErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetSdkErrorKind::BadRequestException(_inner) => Some(_inner), + GetSdkErrorKind::ConflictException(_inner) => Some(_inner), + GetSdkErrorKind::NotFoundException(_inner) => Some(_inner), + GetSdkErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetSdkErrorKind::UnauthorizedException(_inner) => Some(_inner), GetSdkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7421,18 +7652,18 @@ pub struct GetSdkTypeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSdkTypeErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSdkTypeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSdkTypeErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetSdkTypeErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetSdkTypeErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetSdkTypeErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetSdkTypeErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetSdkTypeErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetSdkTypeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7481,22 +7712,22 @@ impl GetSdkTypeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetSdkTypeErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetSdkTypeErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetSdkTypeErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetSdkTypeErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetSdkTypeErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetSdkTypeErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetSdkTypeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSdkTypeErrorKind::NotFoundError(_inner) => Some(_inner), - GetSdkTypeErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetSdkTypeErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetSdkTypeErrorKind::NotFoundException(_inner) => Some(_inner), + GetSdkTypeErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetSdkTypeErrorKind::UnauthorizedException(_inner) => Some(_inner), GetSdkTypeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7511,16 +7742,16 @@ pub struct GetSdkTypesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSdkTypesErrorKind { - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSdkTypesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSdkTypesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetSdkTypesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetSdkTypesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetSdkTypesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetSdkTypesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7569,18 +7800,21 @@ impl GetSdkTypesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetSdkTypesErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetSdkTypesErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetSdkTypesErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetSdkTypesErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetSdkTypesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSdkTypesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetSdkTypesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetSdkTypesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetSdkTypesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetSdkTypesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7595,18 +7829,18 @@ pub struct GetStageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetStageErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetStageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetStageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetStageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetStageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetStageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetStageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetStageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetStageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7655,22 +7889,22 @@ impl GetStageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetStageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetStageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetStageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetStageErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetStageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetStageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetStageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetStageErrorKind::NotFoundError(_inner) => Some(_inner), - GetStageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetStageErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetStageErrorKind::NotFoundException(_inner) => Some(_inner), + GetStageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetStageErrorKind::UnauthorizedException(_inner) => Some(_inner), GetStageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7685,18 +7919,18 @@ pub struct GetStagesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetStagesErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetStagesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetStagesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetStagesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetStagesErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetStagesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetStagesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetStagesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetStagesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7745,22 +7979,22 @@ impl GetStagesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetStagesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetStagesErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetStagesErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetStagesErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetStagesErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetStagesErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetStagesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetStagesErrorKind::NotFoundError(_inner) => Some(_inner), - GetStagesErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetStagesErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetStagesErrorKind::NotFoundException(_inner) => Some(_inner), + GetStagesErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetStagesErrorKind::UnauthorizedException(_inner) => Some(_inner), GetStagesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7775,22 +8009,22 @@ pub struct GetTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetTagsErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetTagsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetTagsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GetTagsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetTagsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetTagsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetTagsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetTagsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + GetTagsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetTagsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetTagsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7839,30 +8073,30 @@ impl GetTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetTagsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetTagsErrorKind::BadRequestException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, GetTagsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, GetTagsErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetTagsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetTagsErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetTagsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetTagsErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetTagsErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetTagsErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetTagsErrorKind::BadRequestError(_inner) => Some(_inner), - GetTagsErrorKind::LimitExceededError(_inner) => Some(_inner), - GetTagsErrorKind::NotFoundError(_inner) => Some(_inner), - GetTagsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetTagsErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetTagsErrorKind::BadRequestException(_inner) => Some(_inner), + GetTagsErrorKind::LimitExceededException(_inner) => Some(_inner), + GetTagsErrorKind::NotFoundException(_inner) => Some(_inner), + GetTagsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetTagsErrorKind::UnauthorizedException(_inner) => Some(_inner), GetTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7877,20 +8111,20 @@ pub struct GetUsageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUsageErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUsageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUsageErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetUsageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetUsageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetUsageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetUsageErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetUsageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetUsageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetUsageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetUsageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7939,26 +8173,26 @@ impl GetUsageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetUsageErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetUsageErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetUsageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetUsageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetUsageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetUsageErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetUsageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetUsageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetUsageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUsageErrorKind::BadRequestError(_inner) => Some(_inner), - GetUsageErrorKind::NotFoundError(_inner) => Some(_inner), - GetUsageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetUsageErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetUsageErrorKind::BadRequestException(_inner) => Some(_inner), + GetUsageErrorKind::NotFoundException(_inner) => Some(_inner), + GetUsageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetUsageErrorKind::UnauthorizedException(_inner) => Some(_inner), GetUsageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7973,20 +8207,20 @@ pub struct GetUsagePlanError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUsagePlanErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUsagePlanError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUsagePlanErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetUsagePlanErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetUsagePlanErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetUsagePlanErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetUsagePlanErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetUsagePlanErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetUsagePlanErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetUsagePlanErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetUsagePlanErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8035,26 +8269,29 @@ impl GetUsagePlanError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetUsagePlanErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetUsagePlanError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUsagePlanErrorKind::BadRequestError(_inner) => Some(_inner), - GetUsagePlanErrorKind::NotFoundError(_inner) => Some(_inner), - GetUsagePlanErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetUsagePlanErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetUsagePlanErrorKind::BadRequestException(_inner) => Some(_inner), + GetUsagePlanErrorKind::NotFoundException(_inner) => Some(_inner), + GetUsagePlanErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetUsagePlanErrorKind::UnauthorizedException(_inner) => Some(_inner), GetUsagePlanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8069,20 +8306,20 @@ pub struct GetUsagePlanKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUsagePlanKeyErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUsagePlanKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUsagePlanKeyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetUsagePlanKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetUsagePlanKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetUsagePlanKeyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetUsagePlanKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetUsagePlanKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetUsagePlanKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8131,29 +8368,32 @@ impl GetUsagePlanKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeyErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanKeyErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanKeyErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetUsagePlanKeyErrorKind::TooManyRequestsError(_) + GetUsagePlanKeyErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeyErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetUsagePlanKeyErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetUsagePlanKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUsagePlanKeyErrorKind::BadRequestError(_inner) => Some(_inner), - GetUsagePlanKeyErrorKind::NotFoundError(_inner) => Some(_inner), - GetUsagePlanKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetUsagePlanKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetUsagePlanKeyErrorKind::BadRequestException(_inner) => Some(_inner), + GetUsagePlanKeyErrorKind::NotFoundException(_inner) => Some(_inner), + GetUsagePlanKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetUsagePlanKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), GetUsagePlanKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8168,20 +8408,20 @@ pub struct GetUsagePlanKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUsagePlanKeysErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUsagePlanKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUsagePlanKeysErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetUsagePlanKeysErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetUsagePlanKeysErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetUsagePlanKeysErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetUsagePlanKeysErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetUsagePlanKeysErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetUsagePlanKeysErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetUsagePlanKeysErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetUsagePlanKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8230,29 +8470,35 @@ impl GetUsagePlanKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeysErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetUsagePlanKeysErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeysErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlanKeysErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetUsagePlanKeysErrorKind::TooManyRequestsError(_) + GetUsagePlanKeysErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetUsagePlanKeysErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + GetUsagePlanKeysErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for GetUsagePlanKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUsagePlanKeysErrorKind::BadRequestError(_inner) => Some(_inner), - GetUsagePlanKeysErrorKind::NotFoundError(_inner) => Some(_inner), - GetUsagePlanKeysErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetUsagePlanKeysErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetUsagePlanKeysErrorKind::BadRequestException(_inner) => Some(_inner), + GetUsagePlanKeysErrorKind::NotFoundException(_inner) => Some(_inner), + GetUsagePlanKeysErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetUsagePlanKeysErrorKind::UnauthorizedException(_inner) => Some(_inner), GetUsagePlanKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8267,22 +8513,22 @@ pub struct GetUsagePlansError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUsagePlansErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUsagePlansError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUsagePlansErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetUsagePlansErrorKind::ConflictError(_inner) => _inner.fmt(f), - GetUsagePlansErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetUsagePlansErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetUsagePlansErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetUsagePlansErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetUsagePlansErrorKind::ConflictException(_inner) => _inner.fmt(f), + GetUsagePlansErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetUsagePlansErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetUsagePlansErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetUsagePlansErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8331,30 +8577,33 @@ impl GetUsagePlansError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetUsagePlansErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlansErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, GetUsagePlansErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlansErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetUsagePlansErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlansErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetUsagePlansErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetUsagePlansErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetUsagePlansErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetUsagePlansErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetUsagePlansError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUsagePlansErrorKind::BadRequestError(_inner) => Some(_inner), - GetUsagePlansErrorKind::ConflictError(_inner) => Some(_inner), - GetUsagePlansErrorKind::NotFoundError(_inner) => Some(_inner), - GetUsagePlansErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetUsagePlansErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetUsagePlansErrorKind::BadRequestException(_inner) => Some(_inner), + GetUsagePlansErrorKind::ConflictException(_inner) => Some(_inner), + GetUsagePlansErrorKind::NotFoundException(_inner) => Some(_inner), + GetUsagePlansErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetUsagePlansErrorKind::UnauthorizedException(_inner) => Some(_inner), GetUsagePlansErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8369,18 +8618,18 @@ pub struct GetVpcLinkError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetVpcLinkErrorKind { - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetVpcLinkError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetVpcLinkErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetVpcLinkErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetVpcLinkErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetVpcLinkErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetVpcLinkErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetVpcLinkErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetVpcLinkErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8429,22 +8678,22 @@ impl GetVpcLinkError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetVpcLinkErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetVpcLinkErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetVpcLinkErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetVpcLinkErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetVpcLinkErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetVpcLinkErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetVpcLinkError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetVpcLinkErrorKind::NotFoundError(_inner) => Some(_inner), - GetVpcLinkErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetVpcLinkErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetVpcLinkErrorKind::NotFoundException(_inner) => Some(_inner), + GetVpcLinkErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetVpcLinkErrorKind::UnauthorizedException(_inner) => Some(_inner), GetVpcLinkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8459,18 +8708,18 @@ pub struct GetVpcLinksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetVpcLinksErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetVpcLinksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetVpcLinksErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetVpcLinksErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetVpcLinksErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + GetVpcLinksErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetVpcLinksErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + GetVpcLinksErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), GetVpcLinksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8519,22 +8768,25 @@ impl GetVpcLinksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetVpcLinksErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetVpcLinksErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetVpcLinksErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetVpcLinksErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, GetVpcLinksErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, GetVpcLinksErrorKind::UnauthorizedException(_)) } } impl std::error::Error for GetVpcLinksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetVpcLinksErrorKind::BadRequestError(_inner) => Some(_inner), - GetVpcLinksErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetVpcLinksErrorKind::UnauthorizedError(_inner) => Some(_inner), + GetVpcLinksErrorKind::BadRequestException(_inner) => Some(_inner), + GetVpcLinksErrorKind::TooManyRequestsException(_inner) => Some(_inner), + GetVpcLinksErrorKind::UnauthorizedException(_inner) => Some(_inner), GetVpcLinksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8549,24 +8801,24 @@ pub struct ImportApiKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ImportApiKeysErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ImportApiKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ImportApiKeysErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ImportApiKeysErrorKind::ConflictError(_inner) => _inner.fmt(f), - ImportApiKeysErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ImportApiKeysErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ImportApiKeysErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ImportApiKeysErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::ConflictException(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ImportApiKeysErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), ImportApiKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8615,34 +8867,40 @@ impl ImportApiKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ImportApiKeysErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, ImportApiKeysErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + ImportApiKeysErrorKind::LimitExceededException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ImportApiKeysErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ImportApiKeysErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, ImportApiKeysErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, ImportApiKeysErrorKind::UnauthorizedException(_)) } } impl std::error::Error for ImportApiKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ImportApiKeysErrorKind::BadRequestError(_inner) => Some(_inner), - ImportApiKeysErrorKind::ConflictError(_inner) => Some(_inner), - ImportApiKeysErrorKind::LimitExceededError(_inner) => Some(_inner), - ImportApiKeysErrorKind::NotFoundError(_inner) => Some(_inner), - ImportApiKeysErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ImportApiKeysErrorKind::UnauthorizedError(_inner) => Some(_inner), + ImportApiKeysErrorKind::BadRequestException(_inner) => Some(_inner), + ImportApiKeysErrorKind::ConflictException(_inner) => Some(_inner), + ImportApiKeysErrorKind::LimitExceededException(_inner) => Some(_inner), + ImportApiKeysErrorKind::NotFoundException(_inner) => Some(_inner), + ImportApiKeysErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ImportApiKeysErrorKind::UnauthorizedException(_inner) => Some(_inner), ImportApiKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8657,22 +8915,22 @@ pub struct ImportDocumentationPartsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ImportDocumentationPartsErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ImportDocumentationPartsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ImportDocumentationPartsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ImportDocumentationPartsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ImportDocumentationPartsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ImportDocumentationPartsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ImportDocumentationPartsErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + ImportDocumentationPartsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ImportDocumentationPartsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ImportDocumentationPartsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ImportDocumentationPartsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ImportDocumentationPartsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), ImportDocumentationPartsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8721,45 +8979,45 @@ impl ImportDocumentationPartsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ImportDocumentationPartsErrorKind::BadRequestError(_) + ImportDocumentationPartsErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ImportDocumentationPartsErrorKind::LimitExceededError(_) + ImportDocumentationPartsErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - ImportDocumentationPartsErrorKind::NotFoundError(_) + ImportDocumentationPartsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ImportDocumentationPartsErrorKind::TooManyRequestsError(_) + ImportDocumentationPartsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - ImportDocumentationPartsErrorKind::UnauthorizedError(_) + ImportDocumentationPartsErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for ImportDocumentationPartsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ImportDocumentationPartsErrorKind::BadRequestError(_inner) => Some(_inner), - ImportDocumentationPartsErrorKind::LimitExceededError(_inner) => Some(_inner), - ImportDocumentationPartsErrorKind::NotFoundError(_inner) => Some(_inner), - ImportDocumentationPartsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ImportDocumentationPartsErrorKind::UnauthorizedError(_inner) => Some(_inner), + ImportDocumentationPartsErrorKind::BadRequestException(_inner) => Some(_inner), + ImportDocumentationPartsErrorKind::LimitExceededException(_inner) => Some(_inner), + ImportDocumentationPartsErrorKind::NotFoundException(_inner) => Some(_inner), + ImportDocumentationPartsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ImportDocumentationPartsErrorKind::UnauthorizedException(_inner) => Some(_inner), ImportDocumentationPartsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8774,22 +9032,22 @@ pub struct ImportRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ImportRestApiErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ImportRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ImportRestApiErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ImportRestApiErrorKind::ConflictError(_inner) => _inner.fmt(f), - ImportRestApiErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ImportRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ImportRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + ImportRestApiErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ImportRestApiErrorKind::ConflictException(_inner) => _inner.fmt(f), + ImportRestApiErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ImportRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ImportRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), ImportRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8838,30 +9096,36 @@ impl ImportRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ImportRestApiErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ImportRestApiErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, ImportRestApiErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, ImportRestApiErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ImportRestApiErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + ImportRestApiErrorKind::LimitExceededException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ImportRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ImportRestApiErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, ImportRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, ImportRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for ImportRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ImportRestApiErrorKind::BadRequestError(_inner) => Some(_inner), - ImportRestApiErrorKind::ConflictError(_inner) => Some(_inner), - ImportRestApiErrorKind::LimitExceededError(_inner) => Some(_inner), - ImportRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ImportRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + ImportRestApiErrorKind::BadRequestException(_inner) => Some(_inner), + ImportRestApiErrorKind::ConflictException(_inner) => Some(_inner), + ImportRestApiErrorKind::LimitExceededException(_inner) => Some(_inner), + ImportRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ImportRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), ImportRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8876,22 +9140,22 @@ pub struct PutGatewayResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutGatewayResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutGatewayResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutGatewayResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutGatewayResponseErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutGatewayResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutGatewayResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutGatewayResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutGatewayResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutGatewayResponseErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutGatewayResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutGatewayResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutGatewayResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutGatewayResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8940,39 +9204,45 @@ impl PutGatewayResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutGatewayResponseErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + PutGatewayResponseErrorKind::BadRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutGatewayResponseErrorKind::LimitExceededError(_) + PutGatewayResponseErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutGatewayResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutGatewayResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutGatewayResponseErrorKind::TooManyRequestsError(_) + PutGatewayResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - PutGatewayResponseErrorKind::UnauthorizedError(_) + PutGatewayResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for PutGatewayResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutGatewayResponseErrorKind::BadRequestError(_inner) => Some(_inner), - PutGatewayResponseErrorKind::LimitExceededError(_inner) => Some(_inner), - PutGatewayResponseErrorKind::NotFoundError(_inner) => Some(_inner), - PutGatewayResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutGatewayResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutGatewayResponseErrorKind::BadRequestException(_inner) => Some(_inner), + PutGatewayResponseErrorKind::LimitExceededException(_inner) => Some(_inner), + PutGatewayResponseErrorKind::NotFoundException(_inner) => Some(_inner), + PutGatewayResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutGatewayResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), PutGatewayResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8987,22 +9257,22 @@ pub struct PutIntegrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutIntegrationErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutIntegrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutIntegrationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutIntegrationErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutIntegrationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutIntegrationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutIntegrationErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutIntegrationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutIntegrationErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutIntegrationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutIntegrationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutIntegrationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutIntegrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9051,30 +9321,36 @@ impl PutIntegrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutIntegrationErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, PutIntegrationErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PutIntegrationErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PutIntegrationErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutIntegrationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PutIntegrationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, PutIntegrationErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + PutIntegrationErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, PutIntegrationErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + PutIntegrationErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for PutIntegrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutIntegrationErrorKind::BadRequestError(_inner) => Some(_inner), - PutIntegrationErrorKind::ConflictError(_inner) => Some(_inner), - PutIntegrationErrorKind::NotFoundError(_inner) => Some(_inner), - PutIntegrationErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutIntegrationErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutIntegrationErrorKind::BadRequestException(_inner) => Some(_inner), + PutIntegrationErrorKind::ConflictException(_inner) => Some(_inner), + PutIntegrationErrorKind::NotFoundException(_inner) => Some(_inner), + PutIntegrationErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutIntegrationErrorKind::UnauthorizedException(_inner) => Some(_inner), PutIntegrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9089,24 +9365,24 @@ pub struct PutIntegrationResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutIntegrationResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutIntegrationResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutIntegrationResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutIntegrationResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutIntegrationResponseErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutIntegrationResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutIntegrationResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutIntegrationResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutIntegrationResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutIntegrationResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9155,52 +9431,52 @@ impl PutIntegrationResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::BadRequestError(_) + PutIntegrationResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::ConflictError(_) + PutIntegrationResponseErrorKind::ConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::LimitExceededError(_) + PutIntegrationResponseErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::NotFoundError(_) + PutIntegrationResponseErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::TooManyRequestsError(_) + PutIntegrationResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - PutIntegrationResponseErrorKind::UnauthorizedError(_) + PutIntegrationResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for PutIntegrationResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutIntegrationResponseErrorKind::BadRequestError(_inner) => Some(_inner), - PutIntegrationResponseErrorKind::ConflictError(_inner) => Some(_inner), - PutIntegrationResponseErrorKind::LimitExceededError(_inner) => Some(_inner), - PutIntegrationResponseErrorKind::NotFoundError(_inner) => Some(_inner), - PutIntegrationResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutIntegrationResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::BadRequestException(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::ConflictException(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::LimitExceededException(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::NotFoundException(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutIntegrationResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), PutIntegrationResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9215,24 +9491,24 @@ pub struct PutMethodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutMethodErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutMethodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutMethodErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutMethodErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutMethodErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutMethodErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutMethodErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutMethodErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutMethodErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutMethodErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutMethodErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutMethodErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutMethodErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutMethodErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutMethodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9281,34 +9557,34 @@ impl PutMethodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, PutMethodErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, PutMethodErrorKind::UnauthorizedException(_)) } } impl std::error::Error for PutMethodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutMethodErrorKind::BadRequestError(_inner) => Some(_inner), - PutMethodErrorKind::ConflictError(_inner) => Some(_inner), - PutMethodErrorKind::LimitExceededError(_inner) => Some(_inner), - PutMethodErrorKind::NotFoundError(_inner) => Some(_inner), - PutMethodErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutMethodErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutMethodErrorKind::BadRequestException(_inner) => Some(_inner), + PutMethodErrorKind::ConflictException(_inner) => Some(_inner), + PutMethodErrorKind::LimitExceededException(_inner) => Some(_inner), + PutMethodErrorKind::NotFoundException(_inner) => Some(_inner), + PutMethodErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutMethodErrorKind::UnauthorizedException(_inner) => Some(_inner), PutMethodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9323,24 +9599,24 @@ pub struct PutMethodResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutMethodResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutMethodResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutMethodResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutMethodResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutMethodResponseErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutMethodResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutMethodResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutMethodResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutMethodResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutMethodResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9389,40 +9665,46 @@ impl PutMethodResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutMethodResponseErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + PutMethodResponseErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PutMethodResponseErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PutMethodResponseErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutMethodResponseErrorKind::LimitExceededError(_) + PutMethodResponseErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutMethodResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PutMethodResponseErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutMethodResponseErrorKind::TooManyRequestsError(_) + PutMethodResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, PutMethodResponseErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + PutMethodResponseErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for PutMethodResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutMethodResponseErrorKind::BadRequestError(_inner) => Some(_inner), - PutMethodResponseErrorKind::ConflictError(_inner) => Some(_inner), - PutMethodResponseErrorKind::LimitExceededError(_inner) => Some(_inner), - PutMethodResponseErrorKind::NotFoundError(_inner) => Some(_inner), - PutMethodResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutMethodResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutMethodResponseErrorKind::BadRequestException(_inner) => Some(_inner), + PutMethodResponseErrorKind::ConflictException(_inner) => Some(_inner), + PutMethodResponseErrorKind::LimitExceededException(_inner) => Some(_inner), + PutMethodResponseErrorKind::NotFoundException(_inner) => Some(_inner), + PutMethodResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutMethodResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), PutMethodResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9437,24 +9719,24 @@ pub struct PutRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRestApiErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRestApiErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutRestApiErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutRestApiErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutRestApiErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - PutRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + PutRestApiErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutRestApiErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutRestApiErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutRestApiErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + PutRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), PutRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9503,34 +9785,34 @@ impl PutRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::TooManyRequestsException(_)) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, PutRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, PutRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for PutRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRestApiErrorKind::BadRequestError(_inner) => Some(_inner), - PutRestApiErrorKind::ConflictError(_inner) => Some(_inner), - PutRestApiErrorKind::LimitExceededError(_inner) => Some(_inner), - PutRestApiErrorKind::NotFoundError(_inner) => Some(_inner), - PutRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - PutRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + PutRestApiErrorKind::BadRequestException(_inner) => Some(_inner), + PutRestApiErrorKind::ConflictException(_inner) => Some(_inner), + PutRestApiErrorKind::LimitExceededException(_inner) => Some(_inner), + PutRestApiErrorKind::NotFoundException(_inner) => Some(_inner), + PutRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + PutRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), PutRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9545,24 +9827,24 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ConflictError(_inner) => _inner.fmt(f), - TagResourceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - TagResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + TagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ConflictException(_inner) => _inner.fmt(f), + TagResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + TagResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9611,34 +9893,37 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::UnauthorizedException(_)) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::BadRequestError(_inner) => Some(_inner), - TagResourceErrorKind::ConflictError(_inner) => Some(_inner), - TagResourceErrorKind::LimitExceededError(_inner) => Some(_inner), - TagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - TagResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + TagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + TagResourceErrorKind::ConflictException(_inner) => Some(_inner), + TagResourceErrorKind::LimitExceededException(_inner) => Some(_inner), + TagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + TagResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9653,20 +9938,20 @@ pub struct TestInvokeAuthorizerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TestInvokeAuthorizerErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TestInvokeAuthorizerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TestInvokeAuthorizerErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TestInvokeAuthorizerErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TestInvokeAuthorizerErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - TestInvokeAuthorizerErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + TestInvokeAuthorizerErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TestInvokeAuthorizerErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TestInvokeAuthorizerErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + TestInvokeAuthorizerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), TestInvokeAuthorizerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9715,35 +10000,38 @@ impl TestInvokeAuthorizerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - TestInvokeAuthorizerErrorKind::BadRequestError(_) + TestInvokeAuthorizerErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TestInvokeAuthorizerErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TestInvokeAuthorizerErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - TestInvokeAuthorizerErrorKind::TooManyRequestsError(_) + TestInvokeAuthorizerErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - TestInvokeAuthorizerErrorKind::UnauthorizedError(_) + TestInvokeAuthorizerErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for TestInvokeAuthorizerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TestInvokeAuthorizerErrorKind::BadRequestError(_inner) => Some(_inner), - TestInvokeAuthorizerErrorKind::NotFoundError(_inner) => Some(_inner), - TestInvokeAuthorizerErrorKind::TooManyRequestsError(_inner) => Some(_inner), - TestInvokeAuthorizerErrorKind::UnauthorizedError(_inner) => Some(_inner), + TestInvokeAuthorizerErrorKind::BadRequestException(_inner) => Some(_inner), + TestInvokeAuthorizerErrorKind::NotFoundException(_inner) => Some(_inner), + TestInvokeAuthorizerErrorKind::TooManyRequestsException(_inner) => Some(_inner), + TestInvokeAuthorizerErrorKind::UnauthorizedException(_inner) => Some(_inner), TestInvokeAuthorizerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9758,20 +10046,20 @@ pub struct TestInvokeMethodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TestInvokeMethodErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TestInvokeMethodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TestInvokeMethodErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TestInvokeMethodErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TestInvokeMethodErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - TestInvokeMethodErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + TestInvokeMethodErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TestInvokeMethodErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TestInvokeMethodErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + TestInvokeMethodErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), TestInvokeMethodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9820,29 +10108,35 @@ impl TestInvokeMethodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, TestInvokeMethodErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + TestInvokeMethodErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TestInvokeMethodErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, TestInvokeMethodErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - TestInvokeMethodErrorKind::TooManyRequestsError(_) + TestInvokeMethodErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, TestInvokeMethodErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + TestInvokeMethodErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for TestInvokeMethodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TestInvokeMethodErrorKind::BadRequestError(_inner) => Some(_inner), - TestInvokeMethodErrorKind::NotFoundError(_inner) => Some(_inner), - TestInvokeMethodErrorKind::TooManyRequestsError(_inner) => Some(_inner), - TestInvokeMethodErrorKind::UnauthorizedError(_inner) => Some(_inner), + TestInvokeMethodErrorKind::BadRequestException(_inner) => Some(_inner), + TestInvokeMethodErrorKind::NotFoundException(_inner) => Some(_inner), + TestInvokeMethodErrorKind::TooManyRequestsException(_inner) => Some(_inner), + TestInvokeMethodErrorKind::UnauthorizedException(_inner) => Some(_inner), TestInvokeMethodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9857,22 +10151,22 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ConflictError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ConflictException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9921,30 +10215,33 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::BadRequestError(_inner) => Some(_inner), - UntagResourceErrorKind::ConflictError(_inner) => Some(_inner), - UntagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UntagResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + UntagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + UntagResourceErrorKind::ConflictException(_inner) => Some(_inner), + UntagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UntagResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9959,20 +10256,20 @@ pub struct UpdateAccountError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAccountErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAccountError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAccountErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateAccountErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateAccountErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateAccountErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateAccountErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateAccountErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateAccountErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateAccountErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateAccountErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10021,26 +10318,29 @@ impl UpdateAccountError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateAccountErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateAccountErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateAccountErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateAccountErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateAccountErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAccountErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateAccountErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateAccountErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateAccountError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAccountErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateAccountErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateAccountErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateAccountErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateAccountErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateAccountErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateAccountErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateAccountErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10055,22 +10355,22 @@ pub struct UpdateApiKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateApiKeyErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateApiKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateApiKeyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateApiKeyErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateApiKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateApiKeyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateApiKeyErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateApiKeyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateApiKeyErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateApiKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateApiKeyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateApiKeyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateApiKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10119,30 +10419,33 @@ impl UpdateApiKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateApiKeyErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateApiKeyErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateApiKeyErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateApiKeyErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateApiKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateApiKeyErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateApiKeyErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateApiKeyErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateApiKeyErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateApiKeyErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateApiKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateApiKeyErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateApiKeyErrorKind::ConflictError(_inner) => Some(_inner), - UpdateApiKeyErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateApiKeyErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateApiKeyErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateApiKeyErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateApiKeyErrorKind::ConflictException(_inner) => Some(_inner), + UpdateApiKeyErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateApiKeyErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateApiKeyErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateApiKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10157,20 +10460,20 @@ pub struct UpdateAuthorizerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAuthorizerErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAuthorizerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAuthorizerErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateAuthorizerErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateAuthorizerErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateAuthorizerErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateAuthorizerErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateAuthorizerErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateAuthorizerErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateAuthorizerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateAuthorizerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10219,29 +10522,35 @@ impl UpdateAuthorizerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateAuthorizerErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAuthorizerErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateAuthorizerErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateAuthorizerErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateAuthorizerErrorKind::TooManyRequestsError(_) + UpdateAuthorizerErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateAuthorizerErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAuthorizerErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateAuthorizerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAuthorizerErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateAuthorizerErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateAuthorizerErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateAuthorizerErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateAuthorizerErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateAuthorizerErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateAuthorizerErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateAuthorizerErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateAuthorizerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10256,22 +10565,22 @@ pub struct UpdateBasePathMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateBasePathMappingErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateBasePathMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateBasePathMappingErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateBasePathMappingErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateBasePathMappingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateBasePathMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateBasePathMappingErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateBasePathMappingErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateBasePathMappingErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateBasePathMappingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateBasePathMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateBasePathMappingErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateBasePathMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10320,39 +10629,45 @@ impl UpdateBasePathMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateBasePathMappingErrorKind::BadRequestError(_) + UpdateBasePathMappingErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateBasePathMappingErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateBasePathMappingErrorKind::ConflictException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateBasePathMappingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateBasePathMappingErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateBasePathMappingErrorKind::TooManyRequestsError(_) + UpdateBasePathMappingErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateBasePathMappingErrorKind::UnauthorizedError(_) + UpdateBasePathMappingErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateBasePathMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateBasePathMappingErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateBasePathMappingErrorKind::ConflictError(_inner) => Some(_inner), - UpdateBasePathMappingErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateBasePathMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateBasePathMappingErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateBasePathMappingErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateBasePathMappingErrorKind::ConflictException(_inner) => Some(_inner), + UpdateBasePathMappingErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateBasePathMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateBasePathMappingErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateBasePathMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10367,20 +10682,20 @@ pub struct UpdateClientCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateClientCertificateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateClientCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateClientCertificateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateClientCertificateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateClientCertificateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateClientCertificateErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateClientCertificateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateClientCertificateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateClientCertificateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateClientCertificateErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateClientCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10429,38 +10744,38 @@ impl UpdateClientCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateClientCertificateErrorKind::BadRequestError(_) + UpdateClientCertificateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateClientCertificateErrorKind::NotFoundError(_) + UpdateClientCertificateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateClientCertificateErrorKind::TooManyRequestsError(_) + UpdateClientCertificateErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateClientCertificateErrorKind::UnauthorizedError(_) + UpdateClientCertificateErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateClientCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateClientCertificateErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateClientCertificateErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateClientCertificateErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateClientCertificateErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateClientCertificateErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateClientCertificateErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateClientCertificateErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateClientCertificateErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateClientCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10475,22 +10790,22 @@ pub struct UpdateDeploymentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateDeploymentErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateDeploymentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateDeploymentErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateDeploymentErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateDeploymentErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - UpdateDeploymentErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateDeploymentErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateDeploymentErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateDeploymentErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateDeploymentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + UpdateDeploymentErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10539,36 +10854,42 @@ impl UpdateDeploymentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateDeploymentErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateDeploymentErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateDeploymentErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateDeploymentErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - UpdateDeploymentErrorKind::ServiceUnavailableError(_) + UpdateDeploymentErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateDeploymentErrorKind::TooManyRequestsError(_) + UpdateDeploymentErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateDeploymentErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateDeploymentErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateDeploymentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateDeploymentErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateDeploymentErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateDeploymentErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - UpdateDeploymentErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateDeploymentErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateDeploymentErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateDeploymentErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateDeploymentErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + UpdateDeploymentErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateDeploymentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10583,24 +10904,24 @@ pub struct UpdateDocumentationPartError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateDocumentationPartErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateDocumentationPartError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateDocumentationPartErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateDocumentationPartErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateDocumentationPartErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateDocumentationPartErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateDocumentationPartErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateDocumentationPartErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateDocumentationPartErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateDocumentationPartErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10649,52 +10970,52 @@ impl UpdateDocumentationPartError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::BadRequestError(_) + UpdateDocumentationPartErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::ConflictError(_) + UpdateDocumentationPartErrorKind::ConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::LimitExceededError(_) + UpdateDocumentationPartErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::NotFoundError(_) + UpdateDocumentationPartErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::TooManyRequestsError(_) + UpdateDocumentationPartErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationPartErrorKind::UnauthorizedError(_) + UpdateDocumentationPartErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateDocumentationPartError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateDocumentationPartErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateDocumentationPartErrorKind::ConflictError(_inner) => Some(_inner), - UpdateDocumentationPartErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateDocumentationPartErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateDocumentationPartErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateDocumentationPartErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::ConflictException(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateDocumentationPartErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateDocumentationPartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10709,22 +11030,22 @@ pub struct UpdateDocumentationVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateDocumentationVersionErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateDocumentationVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateDocumentationVersionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateDocumentationVersionErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateDocumentationVersionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateDocumentationVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateDocumentationVersionErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateDocumentationVersionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateDocumentationVersionErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateDocumentationVersionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateDocumentationVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateDocumentationVersionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateDocumentationVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10773,45 +11094,45 @@ impl UpdateDocumentationVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationVersionErrorKind::BadRequestError(_) + UpdateDocumentationVersionErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationVersionErrorKind::ConflictError(_) + UpdateDocumentationVersionErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationVersionErrorKind::NotFoundError(_) + UpdateDocumentationVersionErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationVersionErrorKind::TooManyRequestsError(_) + UpdateDocumentationVersionErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateDocumentationVersionErrorKind::UnauthorizedError(_) + UpdateDocumentationVersionErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateDocumentationVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateDocumentationVersionErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateDocumentationVersionErrorKind::ConflictError(_inner) => Some(_inner), - UpdateDocumentationVersionErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateDocumentationVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateDocumentationVersionErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateDocumentationVersionErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateDocumentationVersionErrorKind::ConflictException(_inner) => Some(_inner), + UpdateDocumentationVersionErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateDocumentationVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateDocumentationVersionErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateDocumentationVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10826,22 +11147,22 @@ pub struct UpdateDomainNameError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateDomainNameErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateDomainNameError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateDomainNameErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateDomainNameErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateDomainNameErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateDomainNameErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateDomainNameErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateDomainNameErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateDomainNameErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateDomainNameErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateDomainNameErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateDomainNameErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateDomainNameErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10890,33 +11211,39 @@ impl UpdateDomainNameError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateDomainNameErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateDomainNameErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateDomainNameErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateDomainNameErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateDomainNameErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateDomainNameErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateDomainNameErrorKind::TooManyRequestsError(_) + UpdateDomainNameErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateDomainNameErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateDomainNameErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateDomainNameError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateDomainNameErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateDomainNameErrorKind::ConflictError(_inner) => Some(_inner), - UpdateDomainNameErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateDomainNameErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateDomainNameErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateDomainNameErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateDomainNameErrorKind::ConflictException(_inner) => Some(_inner), + UpdateDomainNameErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateDomainNameErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateDomainNameErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateDomainNameErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10931,20 +11258,20 @@ pub struct UpdateGatewayResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateGatewayResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateGatewayResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateGatewayResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateGatewayResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateGatewayResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateGatewayResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateGatewayResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateGatewayResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateGatewayResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateGatewayResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateGatewayResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10993,35 +11320,38 @@ impl UpdateGatewayResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateGatewayResponseErrorKind::BadRequestError(_) + UpdateGatewayResponseErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateGatewayResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateGatewayResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateGatewayResponseErrorKind::TooManyRequestsError(_) + UpdateGatewayResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateGatewayResponseErrorKind::UnauthorizedError(_) + UpdateGatewayResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateGatewayResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateGatewayResponseErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateGatewayResponseErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateGatewayResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateGatewayResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateGatewayResponseErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateGatewayResponseErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateGatewayResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateGatewayResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateGatewayResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11036,22 +11366,22 @@ pub struct UpdateIntegrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateIntegrationErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateIntegrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateIntegrationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateIntegrationErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateIntegrationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateIntegrationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateIntegrationErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateIntegrationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateIntegrationErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateIntegrationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateIntegrationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateIntegrationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateIntegrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11100,33 +11430,39 @@ impl UpdateIntegrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateIntegrationErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateIntegrationErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateIntegrationErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateIntegrationErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateIntegrationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateIntegrationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationErrorKind::TooManyRequestsError(_) + UpdateIntegrationErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateIntegrationErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateIntegrationErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateIntegrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateIntegrationErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateIntegrationErrorKind::ConflictError(_inner) => Some(_inner), - UpdateIntegrationErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateIntegrationErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateIntegrationErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateIntegrationErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateIntegrationErrorKind::ConflictException(_inner) => Some(_inner), + UpdateIntegrationErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateIntegrationErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateIntegrationErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateIntegrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11141,22 +11477,22 @@ pub struct UpdateIntegrationResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateIntegrationResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateIntegrationResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateIntegrationResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateIntegrationResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateIntegrationResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateIntegrationResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateIntegrationResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateIntegrationResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateIntegrationResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateIntegrationResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateIntegrationResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateIntegrationResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateIntegrationResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11205,45 +11541,45 @@ impl UpdateIntegrationResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationResponseErrorKind::BadRequestError(_) + UpdateIntegrationResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationResponseErrorKind::ConflictError(_) + UpdateIntegrationResponseErrorKind::ConflictException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationResponseErrorKind::NotFoundError(_) + UpdateIntegrationResponseErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationResponseErrorKind::TooManyRequestsError(_) + UpdateIntegrationResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateIntegrationResponseErrorKind::UnauthorizedError(_) + UpdateIntegrationResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateIntegrationResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateIntegrationResponseErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateIntegrationResponseErrorKind::ConflictError(_inner) => Some(_inner), - UpdateIntegrationResponseErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateIntegrationResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateIntegrationResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateIntegrationResponseErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateIntegrationResponseErrorKind::ConflictException(_inner) => Some(_inner), + UpdateIntegrationResponseErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateIntegrationResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateIntegrationResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateIntegrationResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11258,22 +11594,22 @@ pub struct UpdateMethodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMethodErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateMethodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMethodErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateMethodErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateMethodErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateMethodErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateMethodErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateMethodErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateMethodErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateMethodErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateMethodErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateMethodErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateMethodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11322,30 +11658,33 @@ impl UpdateMethodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateMethodErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateMethodErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateMethodErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateMethodErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateMethodErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateMethodErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateMethodErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateMethodErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateMethodErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateMethodErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateMethodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMethodErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateMethodErrorKind::ConflictError(_inner) => Some(_inner), - UpdateMethodErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateMethodErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateMethodErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateMethodErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateMethodErrorKind::ConflictException(_inner) => Some(_inner), + UpdateMethodErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateMethodErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateMethodErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateMethodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11360,24 +11699,24 @@ pub struct UpdateMethodResponseError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMethodResponseErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateMethodResponseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMethodResponseErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateMethodResponseErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateMethodResponseErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateMethodResponseErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateMethodResponseErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateMethodResponseErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateMethodResponseErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateMethodResponseErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11426,46 +11765,52 @@ impl UpdateMethodResponseError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateMethodResponseErrorKind::BadRequestError(_) + UpdateMethodResponseErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateMethodResponseErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateMethodResponseErrorKind::ConflictException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateMethodResponseErrorKind::LimitExceededError(_) + UpdateMethodResponseErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateMethodResponseErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateMethodResponseErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateMethodResponseErrorKind::TooManyRequestsError(_) + UpdateMethodResponseErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateMethodResponseErrorKind::UnauthorizedError(_) + UpdateMethodResponseErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateMethodResponseError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMethodResponseErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateMethodResponseErrorKind::ConflictError(_inner) => Some(_inner), - UpdateMethodResponseErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateMethodResponseErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateMethodResponseErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateMethodResponseErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::ConflictException(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateMethodResponseErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateMethodResponseErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11480,22 +11825,22 @@ pub struct UpdateModelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateModelErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateModelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateModelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateModelErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateModelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateModelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateModelErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateModelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateModelErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateModelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateModelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateModelErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateModelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11544,30 +11889,33 @@ impl UpdateModelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateModelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateModelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateModelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateModelErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateModelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateModelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateModelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateModelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateModelErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateModelErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateModelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateModelErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateModelErrorKind::ConflictError(_inner) => Some(_inner), - UpdateModelErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateModelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateModelErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateModelErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateModelErrorKind::ConflictException(_inner) => Some(_inner), + UpdateModelErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateModelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateModelErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateModelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11582,20 +11930,20 @@ pub struct UpdateRequestValidatorError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateRequestValidatorErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateRequestValidatorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateRequestValidatorErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateRequestValidatorErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateRequestValidatorErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateRequestValidatorErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateRequestValidatorErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateRequestValidatorErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateRequestValidatorErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateRequestValidatorErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateRequestValidatorErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11644,38 +11992,38 @@ impl UpdateRequestValidatorError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateRequestValidatorErrorKind::BadRequestError(_) + UpdateRequestValidatorErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateRequestValidatorErrorKind::NotFoundError(_) + UpdateRequestValidatorErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateRequestValidatorErrorKind::TooManyRequestsError(_) + UpdateRequestValidatorErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { + pub fn is_unauthorized_exception(&self) -> bool { matches!( &self.kind, - UpdateRequestValidatorErrorKind::UnauthorizedError(_) + UpdateRequestValidatorErrorKind::UnauthorizedException(_) ) } } impl std::error::Error for UpdateRequestValidatorError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateRequestValidatorErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateRequestValidatorErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateRequestValidatorErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateRequestValidatorErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateRequestValidatorErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateRequestValidatorErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateRequestValidatorErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateRequestValidatorErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateRequestValidatorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11690,22 +12038,22 @@ pub struct UpdateResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateResourceErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateResourceErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateResourceErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateResourceErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11754,30 +12102,36 @@ impl UpdateResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateResourceErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateResourceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateResourceErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateResourceErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateResourceErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateResourceErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateResourceErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateResourceErrorKind::ConflictError(_inner) => Some(_inner), - UpdateResourceErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateResourceErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateResourceErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateResourceErrorKind::ConflictException(_inner) => Some(_inner), + UpdateResourceErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateResourceErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11792,22 +12146,22 @@ pub struct UpdateRestApiError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateRestApiErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateRestApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateRestApiErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateRestApiErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateRestApiErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateRestApiErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateRestApiErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateRestApiErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateRestApiErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateRestApiErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateRestApiErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateRestApiErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateRestApiErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11856,30 +12210,33 @@ impl UpdateRestApiError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateRestApiErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateRestApiErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateRestApiErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateRestApiErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateRestApiErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateRestApiErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateRestApiErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateRestApiErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateRestApiErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateRestApiErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateRestApiError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateRestApiErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateRestApiErrorKind::ConflictError(_inner) => Some(_inner), - UpdateRestApiErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateRestApiErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateRestApiErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateRestApiErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateRestApiErrorKind::ConflictException(_inner) => Some(_inner), + UpdateRestApiErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateRestApiErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateRestApiErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateRestApiErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11894,22 +12251,22 @@ pub struct UpdateStageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateStageErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateStageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateStageErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateStageErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateStageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateStageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateStageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateStageErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateStageErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateStageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateStageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateStageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateStageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11958,30 +12315,33 @@ impl UpdateStageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateStageErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateStageErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateStageErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateStageErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateStageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateStageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateStageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateStageErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateStageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateStageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateStageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateStageErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateStageErrorKind::ConflictError(_inner) => Some(_inner), - UpdateStageErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateStageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateStageErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateStageErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateStageErrorKind::ConflictException(_inner) => Some(_inner), + UpdateStageErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateStageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateStageErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateStageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11996,20 +12356,20 @@ pub struct UpdateUsageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateUsageErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateUsageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateUsageErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateUsageErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateUsageErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateUsageErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateUsageErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateUsageErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateUsageErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateUsageErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateUsageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12058,26 +12418,29 @@ impl UpdateUsageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateUsageErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateUsageErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateUsageErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateUsageErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateUsageErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateUsageErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateUsageErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateUsageErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateUsageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateUsageErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateUsageErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateUsageErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateUsageErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateUsageErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateUsageErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateUsageErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateUsageErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateUsageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12092,22 +12455,22 @@ pub struct UpdateUsagePlanError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateUsagePlanErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateUsagePlanError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateUsagePlanErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateUsagePlanErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateUsagePlanErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateUsagePlanErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateUsagePlanErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateUsagePlanErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateUsagePlanErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateUsagePlanErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateUsagePlanErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateUsagePlanErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateUsagePlanErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12156,33 +12519,36 @@ impl UpdateUsagePlanError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateUsagePlanErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateUsagePlanErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateUsagePlanErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateUsagePlanErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateUsagePlanErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateUsagePlanErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateUsagePlanErrorKind::TooManyRequestsError(_) + UpdateUsagePlanErrorKind::TooManyRequestsException(_) ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateUsagePlanErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!( + &self.kind, + UpdateUsagePlanErrorKind::UnauthorizedException(_) + ) } } impl std::error::Error for UpdateUsagePlanError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateUsagePlanErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateUsagePlanErrorKind::ConflictError(_inner) => Some(_inner), - UpdateUsagePlanErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateUsagePlanErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateUsagePlanErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateUsagePlanErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateUsagePlanErrorKind::ConflictException(_inner) => Some(_inner), + UpdateUsagePlanErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateUsagePlanErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateUsagePlanErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateUsagePlanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12197,22 +12563,22 @@ pub struct UpdateVpcLinkError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateVpcLinkErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateVpcLinkError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateVpcLinkErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateVpcLinkErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateVpcLinkErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateVpcLinkErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateVpcLinkErrorKind::UnauthorizedError(_inner) => _inner.fmt(f), + UpdateVpcLinkErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateVpcLinkErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateVpcLinkErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateVpcLinkErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateVpcLinkErrorKind::UnauthorizedException(_inner) => _inner.fmt(f), UpdateVpcLinkErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12261,30 +12627,33 @@ impl UpdateVpcLinkError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateVpcLinkErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateVpcLinkErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateVpcLinkErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateVpcLinkErrorKind::ConflictException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateVpcLinkErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateVpcLinkErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateVpcLinkErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateVpcLinkErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unauthorized_error(&self) -> bool { - matches!(&self.kind, UpdateVpcLinkErrorKind::UnauthorizedError(_)) + pub fn is_unauthorized_exception(&self) -> bool { + matches!(&self.kind, UpdateVpcLinkErrorKind::UnauthorizedException(_)) } } impl std::error::Error for UpdateVpcLinkError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateVpcLinkErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateVpcLinkErrorKind::ConflictError(_inner) => Some(_inner), - UpdateVpcLinkErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateVpcLinkErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateVpcLinkErrorKind::UnauthorizedError(_inner) => Some(_inner), + UpdateVpcLinkErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateVpcLinkErrorKind::ConflictException(_inner) => Some(_inner), + UpdateVpcLinkErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateVpcLinkErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateVpcLinkErrorKind::UnauthorizedException(_inner) => Some(_inner), UpdateVpcLinkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12292,37 +12661,35 @@ impl std::error::Error for UpdateVpcLinkError { ///

The request is denied because the caller has insufficient permissions.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnauthorizedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnauthorizedException { pub message: std::option::Option, } -impl std::fmt::Debug for UnauthorizedError { +impl std::fmt::Debug for UnauthorizedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnauthorizedError"); + let mut formatter = f.debug_struct("UnauthorizedException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnauthorizedError { +impl UnauthorizedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnauthorizedError { +impl std::fmt::Display for UnauthorizedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnauthorizedError [UnauthorizedException]")?; + write!(f, "UnauthorizedException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for UnauthorizedError {} -/// See [`UnauthorizedError`](crate::error::UnauthorizedError) -pub mod unauthorized_error { - /// A builder for [`UnauthorizedError`](crate::error::UnauthorizedError) +impl std::error::Error for UnauthorizedException {} +/// See [`UnauthorizedException`](crate::error::UnauthorizedException) +pub mod unauthorized_exception { + /// A builder for [`UnauthorizedException`](crate::error::UnauthorizedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12337,58 +12704,54 @@ pub mod unauthorized_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnauthorizedError`](crate::error::UnauthorizedError) - pub fn build(self) -> crate::error::UnauthorizedError { - crate::error::UnauthorizedError { + /// Consumes the builder and constructs a [`UnauthorizedException`](crate::error::UnauthorizedException) + pub fn build(self) -> crate::error::UnauthorizedException { + crate::error::UnauthorizedException { message: self.message, } } } } -impl UnauthorizedError { - /// Creates a new builder-style object to manufacture [`UnauthorizedError`](crate::error::UnauthorizedError) - pub fn builder() -> crate::error::unauthorized_error::Builder { - crate::error::unauthorized_error::Builder::default() +impl UnauthorizedException { + /// Creates a new builder-style object to manufacture [`UnauthorizedException`](crate::error::UnauthorizedException) + pub fn builder() -> crate::error::unauthorized_exception::Builder { + crate::error::unauthorized_exception::Builder::default() } } ///

The request has reached its throttling limit. Retry after the specified time period.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyRequestsError { - #[serde(rename = "retryAfterSeconds")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyRequestsException { pub retry_after_seconds: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for TooManyRequestsError { +impl std::fmt::Debug for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyRequestsError"); + let mut formatter = f.debug_struct("TooManyRequestsException"); formatter.field("retry_after_seconds", &self.retry_after_seconds); formatter.field("message", &self.message); formatter.finish() } } -impl TooManyRequestsError { +impl TooManyRequestsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyRequestsError { +impl std::fmt::Display for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyRequestsError [TooManyRequestsException]")?; + write!(f, "TooManyRequestsException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for TooManyRequestsError {} -/// See [`TooManyRequestsError`](crate::error::TooManyRequestsError) -pub mod too_many_requests_error { - /// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError) +impl std::error::Error for TooManyRequestsException {} +/// See [`TooManyRequestsException`](crate::error::TooManyRequestsException) +pub mod too_many_requests_exception { + /// A builder for [`TooManyRequestsException`](crate::error::TooManyRequestsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12415,55 +12778,53 @@ pub mod too_many_requests_error { self.message = input; self } - /// Consumes the builder and constructs a [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn build(self) -> crate::error::TooManyRequestsError { - crate::error::TooManyRequestsError { + /// Consumes the builder and constructs a [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn build(self) -> crate::error::TooManyRequestsException { + crate::error::TooManyRequestsException { retry_after_seconds: self.retry_after_seconds, message: self.message, } } } } -impl TooManyRequestsError { - /// Creates a new builder-style object to manufacture [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn builder() -> crate::error::too_many_requests_error::Builder { - crate::error::too_many_requests_error::Builder::default() +impl TooManyRequestsException { + /// Creates a new builder-style object to manufacture [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn builder() -> crate::error::too_many_requests_exception::Builder { + crate::error::too_many_requests_exception::Builder::default() } } ///

The requested resource is not found. Make sure that the request URI is correct.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12478,54 +12839,52 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } ///

The request configuration has conflicts. For details, see the accompanying error message.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConflictError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ConflictError { +impl std::fmt::Debug for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConflictError"); + let mut formatter = f.debug_struct("ConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConflictError { +impl ConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConflictError { +impl std::fmt::Display for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConflictError [ConflictException]")?; + write!(f, "ConflictException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ConflictError {} -/// See [`ConflictError`](crate::error::ConflictError) -pub mod conflict_error { - /// A builder for [`ConflictError`](crate::error::ConflictError) +impl std::error::Error for ConflictException {} +/// See [`ConflictException`](crate::error::ConflictException) +pub mod conflict_exception { + /// A builder for [`ConflictException`](crate::error::ConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12540,54 +12899,52 @@ pub mod conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConflictError`](crate::error::ConflictError) - pub fn build(self) -> crate::error::ConflictError { - crate::error::ConflictError { + /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException) + pub fn build(self) -> crate::error::ConflictException { + crate::error::ConflictException { message: self.message, } } } } -impl ConflictError { - /// Creates a new builder-style object to manufacture [`ConflictError`](crate::error::ConflictError) - pub fn builder() -> crate::error::conflict_error::Builder { - crate::error::conflict_error::Builder::default() +impl ConflictException { + /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException) + pub fn builder() -> crate::error::conflict_exception::Builder { + crate::error::conflict_exception::Builder::default() } } ///

The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadRequestError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { pub message: std::option::Option, } -impl std::fmt::Debug for BadRequestError { +impl std::fmt::Debug for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadRequestError"); + let mut formatter = f.debug_struct("BadRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl BadRequestError { +impl BadRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadRequestError { +impl std::fmt::Display for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadRequestError [BadRequestException]")?; + write!(f, "BadRequestException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for BadRequestError {} -/// See [`BadRequestError`](crate::error::BadRequestError) -pub mod bad_request_error { - /// A builder for [`BadRequestError`](crate::error::BadRequestError) +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12602,58 +12959,54 @@ pub mod bad_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`BadRequestError`](crate::error::BadRequestError) - pub fn build(self) -> crate::error::BadRequestError { - crate::error::BadRequestError { + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { message: self.message, } } } } -impl BadRequestError { - /// Creates a new builder-style object to manufacture [`BadRequestError`](crate::error::BadRequestError) - pub fn builder() -> crate::error::bad_request_error::Builder { - crate::error::bad_request_error::Builder::default() +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() } } ///

The request exceeded the rate limit. Retry after the specified time period.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "retryAfterSeconds")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub retry_after_seconds: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("retry_after_seconds", &self.retry_after_seconds); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12680,59 +13033,55 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { retry_after_seconds: self.retry_after_seconds, message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

The requested service is not available. For details see the accompanying error message. Retry after the specified time period.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceUnavailableError { - #[serde(rename = "retryAfterSeconds")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceUnavailableException { pub retry_after_seconds: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ServiceUnavailableError { +impl std::fmt::Debug for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceUnavailableError"); + let mut formatter = f.debug_struct("ServiceUnavailableException"); formatter.field("retry_after_seconds", &self.retry_after_seconds); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceUnavailableError { +impl ServiceUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceUnavailableError { +impl std::fmt::Display for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceUnavailableError [ServiceUnavailableException]")?; + write!(f, "ServiceUnavailableException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for ServiceUnavailableError {} -/// See [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) -pub mod service_unavailable_error { - /// A builder for [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) +impl std::error::Error for ServiceUnavailableException {} +/// See [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) +pub mod service_unavailable_exception { + /// A builder for [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12759,18 +13108,18 @@ pub mod service_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn build(self) -> crate::error::ServiceUnavailableError { - crate::error::ServiceUnavailableError { + /// Consumes the builder and constructs a [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn build(self) -> crate::error::ServiceUnavailableException { + crate::error::ServiceUnavailableException { retry_after_seconds: self.retry_after_seconds, message: self.message, } } } } -impl ServiceUnavailableError { - /// Creates a new builder-style object to manufacture [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn builder() -> crate::error::service_unavailable_error::Builder { - crate::error::service_unavailable_error::Builder::default() +impl ServiceUnavailableException { + /// Creates a new builder-style object to manufacture [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn builder() -> crate::error::service_unavailable_exception::Builder { + crate::error::service_unavailable_exception::Builder::default() } } diff --git a/sdk/apigateway/src/error_meta.rs b/sdk/apigateway/src/error_meta.rs index c46adab9968c..7805528101c0 100644 --- a/sdk/apigateway/src/error_meta.rs +++ b/sdk/apigateway/src/error_meta.rs @@ -2,25 +2,25 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnauthorizedError(crate::error::UnauthorizedError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnauthorizedException(crate::error::UnauthorizedException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::BadRequestError(inner) => inner.fmt(f), - Error::ConflictError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::ServiceUnavailableError(inner) => inner.fmt(f), - Error::TooManyRequestsError(inner) => inner.fmt(f), - Error::UnauthorizedError(inner) => inner.fmt(f), + Error::BadRequestException(inner) => inner.fmt(f), + Error::ConflictException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::ServiceUnavailableException(inner) => inner.fmt(f), + Error::TooManyRequestsException(inner) => inner.fmt(f), + Error::UnauthorizedException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -29,23 +29,23 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateApiKeyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateApiKeyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateApiKeyErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateApiKeyErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateApiKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateApiKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateApiKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateApiKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateApiKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateApiKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateApiKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateApiKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -57,20 +57,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateAuthorizerErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateAuthorizerErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateAuthorizerErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateAuthorizerErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateAuthorizerErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateAuthorizerErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateAuthorizerErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateAuthorizerErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateAuthorizerErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateAuthorizerErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateAuthorizerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -84,20 +84,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateBasePathMappingErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateBasePathMappingErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateBasePathMappingErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateBasePathMappingErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateBasePathMappingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateBasePathMappingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateBasePathMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateBasePathMappingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateBasePathMappingErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateBasePathMappingErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateBasePathMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -111,26 +111,26 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDeploymentErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateDeploymentErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateDeploymentErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateDeploymentErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateDeploymentErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateDeploymentErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateDeploymentErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateDeploymentErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateDeploymentErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateDeploymentErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::CreateDeploymentErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateDeploymentErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateDeploymentErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateDeploymentErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateDeploymentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -146,23 +146,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDocumentationPartErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateDocumentationPartErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateDocumentationPartErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateDocumentationPartErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateDocumentationPartErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateDocumentationPartErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateDocumentationPartErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateDocumentationPartErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateDocumentationPartErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateDocumentationPartErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateDocumentationPartErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateDocumentationPartErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateDocumentationPartErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -178,23 +178,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDocumentationVersionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateDocumentationVersionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateDocumentationVersionErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateDocumentationVersionErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateDocumentationVersionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateDocumentationVersionErrorKind::LimitExceededException( + inner, + ) => Error::LimitExceededException(inner), + crate::error::CreateDocumentationVersionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateDocumentationVersionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::CreateDocumentationVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::CreateDocumentationVersionErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateDocumentationVersionErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::CreateDocumentationVersionErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateDocumentationVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -208,17 +208,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDomainNameErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateDomainNameErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateDomainNameErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateDomainNameErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateDomainNameErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateDomainNameErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateDomainNameErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateDomainNameErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateDomainNameErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -232,23 +232,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateModelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateModelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateModelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateModelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateModelErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateModelErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateModelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateModelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateModelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateModelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateModelErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateModelErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateModelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -260,20 +260,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateRequestValidatorErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateRequestValidatorErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateRequestValidatorErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateRequestValidatorErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateRequestValidatorErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateRequestValidatorErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateRequestValidatorErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateRequestValidatorErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateRequestValidatorErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateRequestValidatorErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateRequestValidatorErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -287,23 +287,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateResourceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateResourceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateResourceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateResourceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -315,17 +315,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateRestApiErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateRestApiErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateRestApiErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateRestApiErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -337,23 +337,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateStageErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateStageErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateStageErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateStageErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateStageErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateStageErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateStageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateStageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateStageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateStageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateStageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateStageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateStageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -365,23 +365,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateUsagePlanErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateUsagePlanErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateUsagePlanErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateUsagePlanErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateUsagePlanErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateUsagePlanErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateUsagePlanErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateUsagePlanErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateUsagePlanErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateUsagePlanErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateUsagePlanErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateUsagePlanErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateUsagePlanErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -393,20 +393,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateUsagePlanKeyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateUsagePlanKeyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateUsagePlanKeyErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateUsagePlanKeyErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateUsagePlanKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateUsagePlanKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateUsagePlanKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateUsagePlanKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateUsagePlanKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateUsagePlanKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateUsagePlanKeyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -420,14 +420,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateVpcLinkErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateVpcLinkErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateVpcLinkErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateVpcLinkErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateVpcLinkErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::CreateVpcLinkErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::CreateVpcLinkErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -439,14 +439,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteApiKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteApiKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteApiKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteApiKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteApiKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteApiKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -458,20 +458,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAuthorizerErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteAuthorizerErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteAuthorizerErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteAuthorizerErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteAuthorizerErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteAuthorizerErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteAuthorizerErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteAuthorizerErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteAuthorizerErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteAuthorizerErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteAuthorizerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -485,20 +485,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteBasePathMappingErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteBasePathMappingErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteBasePathMappingErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteBasePathMappingErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteBasePathMappingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteBasePathMappingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteBasePathMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteBasePathMappingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteBasePathMappingErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteBasePathMappingErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteBasePathMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -514,17 +514,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteClientCertificateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteClientCertificateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteClientCertificateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteClientCertificateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteClientCertificateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteClientCertificateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteClientCertificateErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteClientCertificateErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteClientCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -538,17 +538,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDeploymentErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteDeploymentErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteDeploymentErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteDeploymentErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteDeploymentErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteDeploymentErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteDeploymentErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteDeploymentErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteDeploymentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -564,20 +564,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDocumentationPartErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteDocumentationPartErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteDocumentationPartErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteDocumentationPartErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteDocumentationPartErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteDocumentationPartErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteDocumentationPartErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteDocumentationPartErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteDocumentationPartErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteDocumentationPartErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteDocumentationPartErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -593,20 +593,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDocumentationVersionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteDocumentationVersionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteDocumentationVersionErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteDocumentationVersionErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteDocumentationVersionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteDocumentationVersionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteDocumentationVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::DeleteDocumentationVersionErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteDocumentationVersionErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::DeleteDocumentationVersionErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteDocumentationVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -620,17 +620,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDomainNameErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteDomainNameErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteDomainNameErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteDomainNameErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteDomainNameErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteDomainNameErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteDomainNameErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteDomainNameErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteDomainNameErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -644,20 +644,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteGatewayResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteGatewayResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteGatewayResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteGatewayResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteGatewayResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteGatewayResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteGatewayResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteGatewayResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteGatewayResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteGatewayResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteGatewayResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -671,17 +671,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteIntegrationErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteIntegrationErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteIntegrationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteIntegrationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteIntegrationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteIntegrationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteIntegrationErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteIntegrationErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteIntegrationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -697,20 +697,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteIntegrationResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DeleteIntegrationResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteIntegrationResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteIntegrationResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteIntegrationResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteIntegrationResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteIntegrationResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteIntegrationResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteIntegrationResponseErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::DeleteIntegrationResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteIntegrationResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -724,17 +724,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteMethodErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteMethodErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteMethodErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteMethodErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteMethodErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteMethodErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteMethodErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteMethodErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteMethodErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -746,20 +746,20 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteMethodResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteMethodResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteMethodResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteMethodResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteMethodResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteMethodResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteMethodResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteMethodResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteMethodResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteMethodResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteMethodResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -773,20 +773,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteModelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteModelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteModelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteModelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteModelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteModelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteModelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteModelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteModelErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteModelErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteModelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -798,20 +798,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRequestValidatorErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteRequestValidatorErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteRequestValidatorErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteRequestValidatorErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteRequestValidatorErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteRequestValidatorErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteRequestValidatorErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteRequestValidatorErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteRequestValidatorErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteRequestValidatorErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteRequestValidatorErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -825,20 +825,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteResourceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteResourceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -850,17 +850,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRestApiErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteRestApiErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteRestApiErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteRestApiErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -872,17 +872,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteStageErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteStageErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteStageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteStageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteStageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteStageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteStageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteStageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteStageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -894,17 +894,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteUsagePlanErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteUsagePlanErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteUsagePlanErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteUsagePlanErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteUsagePlanErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteUsagePlanErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteUsagePlanErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteUsagePlanErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteUsagePlanErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -916,20 +916,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteUsagePlanKeyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteUsagePlanKeyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteUsagePlanKeyErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteUsagePlanKeyErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteUsagePlanKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteUsagePlanKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteUsagePlanKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteUsagePlanKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteUsagePlanKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteUsagePlanKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteUsagePlanKeyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -943,17 +943,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteVpcLinkErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteVpcLinkErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteVpcLinkErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteVpcLinkErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteVpcLinkErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteVpcLinkErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteVpcLinkErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::DeleteVpcLinkErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::DeleteVpcLinkErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -967,17 +967,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::FlushStageAuthorizersCacheErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::FlushStageAuthorizersCacheErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::FlushStageAuthorizersCacheErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::FlushStageAuthorizersCacheErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::FlushStageAuthorizersCacheErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::FlushStageAuthorizersCacheErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::FlushStageAuthorizersCacheErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::FlushStageAuthorizersCacheErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::FlushStageAuthorizersCacheErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -991,17 +991,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::FlushStageCacheErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::FlushStageCacheErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::FlushStageCacheErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::FlushStageCacheErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::FlushStageCacheErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::FlushStageCacheErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::FlushStageCacheErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::FlushStageCacheErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::FlushStageCacheErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1015,14 +1015,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateClientCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::GenerateClientCertificateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GenerateClientCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::GenerateClientCertificateErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GenerateClientCertificateErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::GenerateClientCertificateErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GenerateClientCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1036,14 +1036,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetAccountErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetAccountErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAccountErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetAccountErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetAccountErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetAccountErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1055,14 +1055,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetApiKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetApiKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetApiKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetApiKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetApiKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetApiKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1074,14 +1074,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetApiKeysErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetApiKeysErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetApiKeysErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetApiKeysErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetApiKeysErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetApiKeysErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetApiKeysErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1093,14 +1093,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAuthorizerErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetAuthorizerErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetAuthorizerErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAuthorizerErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetAuthorizerErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetAuthorizerErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetAuthorizerErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1112,17 +1112,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAuthorizersErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetAuthorizersErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetAuthorizersErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetAuthorizersErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetAuthorizersErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAuthorizersErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetAuthorizersErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetAuthorizersErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetAuthorizersErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1134,14 +1134,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetBasePathMappingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetBasePathMappingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetBasePathMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetBasePathMappingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetBasePathMappingErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetBasePathMappingErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetBasePathMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1155,14 +1155,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetBasePathMappingsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetBasePathMappingsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetBasePathMappingsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetBasePathMappingsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetBasePathMappingsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetBasePathMappingsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetBasePathMappingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1176,14 +1176,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetClientCertificateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetClientCertificateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetClientCertificateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetClientCertificateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetClientCertificateErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetClientCertificateErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetClientCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1197,14 +1197,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetClientCertificatesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetClientCertificatesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetClientCertificatesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetClientCertificatesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetClientCertificatesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetClientCertificatesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetClientCertificatesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1218,17 +1218,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDeploymentErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDeploymentErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDeploymentErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetDeploymentErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::GetDeploymentErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDeploymentErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDeploymentErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDeploymentErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDeploymentErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1240,20 +1240,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDeploymentsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetDeploymentsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDeploymentsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDeploymentsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDeploymentsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetDeploymentsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::GetDeploymentsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDeploymentsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDeploymentsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDeploymentsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDeploymentsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1265,14 +1265,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDocumentationPartErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDocumentationPartErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDocumentationPartErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDocumentationPartErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDocumentationPartErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDocumentationPartErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDocumentationPartErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1286,17 +1286,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDocumentationPartsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetDocumentationPartsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDocumentationPartsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDocumentationPartsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDocumentationPartsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDocumentationPartsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDocumentationPartsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDocumentationPartsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDocumentationPartsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1312,14 +1312,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDocumentationVersionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDocumentationVersionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDocumentationVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDocumentationVersionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDocumentationVersionErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDocumentationVersionErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDocumentationVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1335,17 +1335,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDocumentationVersionsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetDocumentationVersionsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDocumentationVersionsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDocumentationVersionsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDocumentationVersionsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDocumentationVersionsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDocumentationVersionsErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::GetDocumentationVersionsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDocumentationVersionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1359,17 +1359,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDomainNameErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDomainNameErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDomainNameErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetDomainNameErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::GetDomainNameErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDomainNameErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDomainNameErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDomainNameErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDomainNameErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1381,14 +1381,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDomainNamesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetDomainNamesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDomainNamesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDomainNamesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetDomainNamesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetDomainNamesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetDomainNamesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1400,20 +1400,20 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetExportErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetExportErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetExportErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::GetExportErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::GetExportErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetExportErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetExportErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetExportErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetExportErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetExportErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetExportErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1425,14 +1425,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetGatewayResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetGatewayResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetGatewayResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetGatewayResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetGatewayResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetGatewayResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetGatewayResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1446,17 +1446,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetGatewayResponsesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetGatewayResponsesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetGatewayResponsesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetGatewayResponsesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetGatewayResponsesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetGatewayResponsesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetGatewayResponsesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetGatewayResponsesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetGatewayResponsesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1470,14 +1470,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetIntegrationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetIntegrationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetIntegrationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetIntegrationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetIntegrationErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetIntegrationErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetIntegrationErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1489,14 +1489,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetIntegrationResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetIntegrationResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetIntegrationResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetIntegrationResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetIntegrationResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetIntegrationResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetIntegrationResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1510,14 +1510,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMethodErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetMethodErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetMethodErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetMethodErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetMethodErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetMethodErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetMethodErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1529,14 +1529,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMethodResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetMethodResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetMethodResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetMethodResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetMethodResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetMethodResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetMethodResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1550,14 +1550,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetModelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetModelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetModelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetModelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetModelErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetModelErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetModelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1569,17 +1569,17 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetModelsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetModelsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetModelsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetModelsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetModelsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetModelsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetModelsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetModelsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetModelsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1591,17 +1591,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetModelTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetModelTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetModelTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetModelTemplateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetModelTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetModelTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetModelTemplateErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetModelTemplateErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetModelTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1615,14 +1615,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRequestValidatorErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetRequestValidatorErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetRequestValidatorErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetRequestValidatorErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetRequestValidatorErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetRequestValidatorErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetRequestValidatorErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1636,17 +1636,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRequestValidatorsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetRequestValidatorsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetRequestValidatorsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetRequestValidatorsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetRequestValidatorsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetRequestValidatorsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetRequestValidatorsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetRequestValidatorsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetRequestValidatorsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1660,14 +1660,14 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1679,17 +1679,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetResourcesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetResourcesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetResourcesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetResourcesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetResourcesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetResourcesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetResourcesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetResourcesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetResourcesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1701,14 +1701,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRestApiErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetRestApiErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1720,14 +1720,14 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRestApisErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetRestApisErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetRestApisErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetRestApisErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetRestApisErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetRestApisErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetRestApisErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1739,16 +1739,20 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSdkErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetSdkErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetSdkErrorKind::ConflictError(inner) => Error::ConflictError(inner), - crate::error::GetSdkErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::GetSdkErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetSdkErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::GetSdkErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetSdkErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) + } + crate::error::GetSdkErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) + } + crate::error::GetSdkErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetSdkErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1760,14 +1764,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSdkTypeErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetSdkTypeErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetSdkTypeErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetSdkTypeErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetSdkTypeErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetSdkTypeErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetSdkTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1779,11 +1783,11 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSdkTypesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetSdkTypesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetSdkTypesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetSdkTypesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetSdkTypesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1795,14 +1799,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetStageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetStageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetStageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetStageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetStageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetStageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetStageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1814,14 +1818,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetStagesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetStagesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetStagesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetStagesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetStagesErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetStagesErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetStagesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1833,18 +1837,20 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetTagsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetTagsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) + } + crate::error::GetTagsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::GetTagsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::GetTagsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetTagsErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::GetTagsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetTagsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetTagsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetTagsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1856,17 +1862,17 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUsageErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetUsageErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetUsageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetUsageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetUsageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetUsageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetUsageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetUsageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetUsageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1878,17 +1884,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUsagePlanErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetUsagePlanErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetUsagePlanErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetUsagePlanErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetUsagePlanErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetUsagePlanErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetUsagePlanErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetUsagePlanErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetUsagePlanErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1900,17 +1906,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUsagePlanKeyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetUsagePlanKeyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetUsagePlanKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetUsagePlanKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetUsagePlanKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetUsagePlanKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetUsagePlanKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetUsagePlanKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetUsagePlanKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1922,17 +1928,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUsagePlanKeysErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetUsagePlanKeysErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetUsagePlanKeysErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetUsagePlanKeysErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetUsagePlanKeysErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetUsagePlanKeysErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetUsagePlanKeysErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetUsagePlanKeysErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetUsagePlanKeysErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1946,20 +1952,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUsagePlansErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetUsagePlansErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetUsagePlansErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::GetUsagePlansErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::GetUsagePlansErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetUsagePlansErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetUsagePlansErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetUsagePlansErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetUsagePlansErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetUsagePlansErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetUsagePlansErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1971,14 +1977,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetVpcLinkErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetVpcLinkErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetVpcLinkErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetVpcLinkErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetVpcLinkErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetVpcLinkErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetVpcLinkErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1990,14 +1996,14 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetVpcLinksErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetVpcLinksErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetVpcLinksErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetVpcLinksErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::GetVpcLinksErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::GetVpcLinksErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::GetVpcLinksErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2009,23 +2015,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ImportApiKeysErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ImportApiKeysErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ImportApiKeysErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::ImportApiKeysErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::ImportApiKeysErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ImportApiKeysErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ImportApiKeysErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ImportApiKeysErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ImportApiKeysErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ImportApiKeysErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ImportApiKeysErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::ImportApiKeysErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::ImportApiKeysErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2039,20 +2045,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ImportDocumentationPartsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ImportDocumentationPartsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ImportDocumentationPartsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ImportDocumentationPartsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ImportDocumentationPartsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ImportDocumentationPartsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ImportDocumentationPartsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::ImportDocumentationPartsErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::ImportDocumentationPartsErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::ImportDocumentationPartsErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::ImportDocumentationPartsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2066,20 +2072,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ImportRestApiErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ImportRestApiErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ImportRestApiErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::ImportRestApiErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::ImportRestApiErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ImportRestApiErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ImportRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ImportRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ImportRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::ImportRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::ImportRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2091,20 +2097,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutGatewayResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutGatewayResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutGatewayResponseErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutGatewayResponseErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutGatewayResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutGatewayResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutGatewayResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutGatewayResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutGatewayResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutGatewayResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutGatewayResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2118,20 +2124,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutIntegrationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutIntegrationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutIntegrationErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutIntegrationErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutIntegrationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutIntegrationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutIntegrationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutIntegrationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutIntegrationErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutIntegrationErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutIntegrationErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2143,23 +2149,23 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutIntegrationResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutIntegrationResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutIntegrationResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutIntegrationResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutIntegrationResponseErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutIntegrationResponseErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutIntegrationResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutIntegrationResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutIntegrationResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutIntegrationResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutIntegrationResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutIntegrationResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutIntegrationResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2173,23 +2179,23 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutMethodErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutMethodErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutMethodErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutMethodErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutMethodErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutMethodErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutMethodErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutMethodErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutMethodErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutMethodErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutMethodErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutMethodErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutMethodErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2201,23 +2207,23 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutMethodResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutMethodResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutMethodResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutMethodResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutMethodResponseErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutMethodResponseErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutMethodResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutMethodResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutMethodResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutMethodResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutMethodResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutMethodResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutMethodResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2231,23 +2237,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRestApiErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutRestApiErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutRestApiErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutRestApiErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutRestApiErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutRestApiErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutRestApiErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutRestApiErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::PutRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::PutRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::PutRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2259,23 +2265,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TagResourceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::TagResourceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::TagResourceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagResourceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::TagResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::TagResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2287,17 +2293,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TestInvokeAuthorizerErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TestInvokeAuthorizerErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TestInvokeAuthorizerErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TestInvokeAuthorizerErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TestInvokeAuthorizerErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TestInvokeAuthorizerErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::TestInvokeAuthorizerErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::TestInvokeAuthorizerErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::TestInvokeAuthorizerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2311,17 +2317,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TestInvokeMethodErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TestInvokeMethodErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TestInvokeMethodErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TestInvokeMethodErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TestInvokeMethodErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TestInvokeMethodErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::TestInvokeMethodErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::TestInvokeMethodErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::TestInvokeMethodErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2335,20 +2341,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UntagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UntagResourceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UntagResourceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UntagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UntagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UntagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UntagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UntagResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UntagResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2360,17 +2366,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAccountErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateAccountErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateAccountErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateAccountErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateAccountErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateAccountErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateAccountErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateAccountErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateAccountErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2382,20 +2388,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateApiKeyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateApiKeyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateApiKeyErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateApiKeyErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateApiKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateApiKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateApiKeyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateApiKeyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateApiKeyErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateApiKeyErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateApiKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2407,17 +2413,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAuthorizerErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateAuthorizerErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateAuthorizerErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateAuthorizerErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateAuthorizerErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateAuthorizerErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateAuthorizerErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateAuthorizerErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateAuthorizerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2431,20 +2437,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateBasePathMappingErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateBasePathMappingErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateBasePathMappingErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateBasePathMappingErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateBasePathMappingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateBasePathMappingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateBasePathMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateBasePathMappingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateBasePathMappingErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateBasePathMappingErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateBasePathMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2460,17 +2466,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateClientCertificateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateClientCertificateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateClientCertificateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateClientCertificateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateClientCertificateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateClientCertificateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateClientCertificateErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateClientCertificateErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateClientCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2484,20 +2490,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateDeploymentErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateDeploymentErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateDeploymentErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateDeploymentErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateDeploymentErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::UpdateDeploymentErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::UpdateDeploymentErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateDeploymentErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateDeploymentErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateDeploymentErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateDeploymentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2513,23 +2519,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateDocumentationPartErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateDocumentationPartErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateDocumentationPartErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateDocumentationPartErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateDocumentationPartErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateDocumentationPartErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateDocumentationPartErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateDocumentationPartErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateDocumentationPartErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateDocumentationPartErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateDocumentationPartErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateDocumentationPartErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateDocumentationPartErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2545,20 +2551,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateDocumentationVersionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::UpdateDocumentationVersionErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateDocumentationVersionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateDocumentationVersionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateDocumentationVersionErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateDocumentationVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateDocumentationVersionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateDocumentationVersionErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateDocumentationVersionErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::UpdateDocumentationVersionErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateDocumentationVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2572,20 +2578,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateDomainNameErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateDomainNameErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateDomainNameErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateDomainNameErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateDomainNameErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateDomainNameErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateDomainNameErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateDomainNameErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateDomainNameErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateDomainNameErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateDomainNameErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2599,17 +2605,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateGatewayResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateGatewayResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateGatewayResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateGatewayResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateGatewayResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateGatewayResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateGatewayResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateGatewayResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateGatewayResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2623,20 +2629,20 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateIntegrationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateIntegrationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateIntegrationErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateIntegrationErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateIntegrationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateIntegrationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateIntegrationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateIntegrationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateIntegrationErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateIntegrationErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateIntegrationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2652,20 +2658,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateIntegrationResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::UpdateIntegrationResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateIntegrationResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateIntegrationResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateIntegrationResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateIntegrationResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateIntegrationResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateIntegrationResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateIntegrationResponseErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::UpdateIntegrationResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateIntegrationResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2679,20 +2685,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMethodErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateMethodErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateMethodErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateMethodErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateMethodErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateMethodErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateMethodErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateMethodErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateMethodErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateMethodErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateMethodErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2704,23 +2710,23 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMethodResponseErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateMethodResponseErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateMethodResponseErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateMethodResponseErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateMethodResponseErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateMethodResponseErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateMethodResponseErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateMethodResponseErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateMethodResponseErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateMethodResponseErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateMethodResponseErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateMethodResponseErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateMethodResponseErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2734,20 +2740,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateModelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateModelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateModelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateModelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateModelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateModelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateModelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateModelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateModelErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateModelErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateModelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2759,17 +2765,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateRequestValidatorErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateRequestValidatorErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateRequestValidatorErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateRequestValidatorErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateRequestValidatorErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateRequestValidatorErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateRequestValidatorErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateRequestValidatorErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateRequestValidatorErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2783,20 +2789,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateResourceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateResourceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateResourceErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateResourceErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2808,20 +2814,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateRestApiErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateRestApiErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateRestApiErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateRestApiErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateRestApiErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateRestApiErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateRestApiErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateRestApiErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateRestApiErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateRestApiErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateRestApiErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2833,20 +2839,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateStageErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateStageErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateStageErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateStageErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateStageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateStageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateStageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateStageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateStageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateStageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateStageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2858,17 +2864,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateUsageErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateUsageErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateUsageErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateUsageErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateUsageErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateUsageErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateUsageErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateUsageErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateUsageErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2880,20 +2886,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateUsagePlanErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateUsagePlanErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateUsagePlanErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateUsagePlanErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateUsagePlanErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateUsagePlanErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateUsagePlanErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateUsagePlanErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateUsagePlanErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateUsagePlanErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateUsagePlanErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2905,20 +2911,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateVpcLinkErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateVpcLinkErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateVpcLinkErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateVpcLinkErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateVpcLinkErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateVpcLinkErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateVpcLinkErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateVpcLinkErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateVpcLinkErrorKind::UnauthorizedError(inner) => { - Error::UnauthorizedError(inner) + crate::error::UpdateVpcLinkErrorKind::UnauthorizedException(inner) => { + Error::UnauthorizedException(inner) } crate::error::UpdateVpcLinkErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/apigateway/src/http_serde.rs b/sdk/apigateway/src/http_serde.rs index 2e84bcf12db9..5a7881ed27a4 100644 --- a/sdk/apigateway/src/http_serde.rs +++ b/sdk/apigateway/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_header_create_api_key_retry_after_seconds( +pub fn deser_header_create_api_key_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -7,7 +7,7 @@ pub fn deser_header_create_api_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_authorizer_retry_after_seconds( +pub fn deser_header_create_api_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -15,7 +15,7 @@ pub fn deser_header_create_authorizer_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_base_path_mapping_retry_after_seconds( +pub fn deser_header_create_authorizer_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -23,7 +23,7 @@ pub fn deser_header_create_base_path_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_deployment_retry_after_seconds( +pub fn deser_header_create_authorizer_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -31,7 +31,7 @@ pub fn deser_header_create_deployment_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_documentation_part_retry_after_seconds( +pub fn deser_header_create_base_path_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -39,7 +39,7 @@ pub fn deser_header_create_documentation_part_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_documentation_version_retry_after_seconds( +pub fn deser_header_create_deployment_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -47,7 +47,7 @@ pub fn deser_header_create_documentation_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_domain_name_retry_after_seconds( +pub fn deser_header_create_deployment_service_unavailable_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -55,7 +55,7 @@ pub fn deser_header_create_domain_name_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_model_retry_after_seconds( +pub fn deser_header_create_deployment_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -63,7 +63,7 @@ pub fn deser_header_create_model_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_request_validator_retry_after_seconds( +pub fn deser_header_create_documentation_part_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -71,7 +71,7 @@ pub fn deser_header_create_request_validator_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_resource_retry_after_seconds( +pub fn deser_header_create_documentation_part_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -79,7 +79,7 @@ pub fn deser_header_create_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_rest_api_retry_after_seconds( +pub fn deser_header_create_documentation_version_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -87,7 +87,7 @@ pub fn deser_header_create_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_stage_retry_after_seconds( +pub fn deser_header_create_documentation_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -95,7 +95,7 @@ pub fn deser_header_create_stage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_usage_plan_retry_after_seconds( +pub fn deser_header_create_domain_name_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -103,7 +103,7 @@ pub fn deser_header_create_usage_plan_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_usage_plan_key_retry_after_seconds( +pub fn deser_header_create_model_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -111,7 +111,7 @@ pub fn deser_header_create_usage_plan_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_vpc_link_retry_after_seconds( +pub fn deser_header_create_model_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -119,7 +119,7 @@ pub fn deser_header_create_vpc_link_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_api_key_retry_after_seconds( +pub fn deser_header_create_request_validator_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -127,7 +127,7 @@ pub fn deser_header_delete_api_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_authorizer_retry_after_seconds( +pub fn deser_header_create_request_validator_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -135,7 +135,7 @@ pub fn deser_header_delete_authorizer_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_base_path_mapping_retry_after_seconds( +pub fn deser_header_create_resource_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -143,7 +143,7 @@ pub fn deser_header_delete_base_path_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_client_certificate_retry_after_seconds( +pub fn deser_header_create_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -151,7 +151,7 @@ pub fn deser_header_delete_client_certificate_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_deployment_retry_after_seconds( +pub fn deser_header_create_rest_api_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -159,7 +159,7 @@ pub fn deser_header_delete_deployment_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_documentation_part_retry_after_seconds( +pub fn deser_header_create_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -167,7 +167,7 @@ pub fn deser_header_delete_documentation_part_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_documentation_version_retry_after_seconds( +pub fn deser_header_create_stage_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -175,7 +175,7 @@ pub fn deser_header_delete_documentation_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_domain_name_retry_after_seconds( +pub fn deser_header_create_stage_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -183,7 +183,7 @@ pub fn deser_header_delete_domain_name_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_gateway_response_retry_after_seconds( +pub fn deser_header_create_usage_plan_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -191,7 +191,7 @@ pub fn deser_header_delete_gateway_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_integration_retry_after_seconds( +pub fn deser_header_create_usage_plan_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -199,7 +199,7 @@ pub fn deser_header_delete_integration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_integration_response_retry_after_seconds( +pub fn deser_header_create_usage_plan_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -207,7 +207,7 @@ pub fn deser_header_delete_integration_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_method_retry_after_seconds( +pub fn deser_header_create_vpc_link_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -215,7 +215,7 @@ pub fn deser_header_delete_method_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_method_response_retry_after_seconds( +pub fn deser_header_delete_api_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -223,7 +223,7 @@ pub fn deser_header_delete_method_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_model_retry_after_seconds( +pub fn deser_header_delete_authorizer_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -231,7 +231,7 @@ pub fn deser_header_delete_model_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_request_validator_retry_after_seconds( +pub fn deser_header_delete_base_path_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -239,7 +239,7 @@ pub fn deser_header_delete_request_validator_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_resource_retry_after_seconds( +pub fn deser_header_delete_client_certificate_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -247,7 +247,7 @@ pub fn deser_header_delete_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_rest_api_retry_after_seconds( +pub fn deser_header_delete_deployment_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -255,7 +255,7 @@ pub fn deser_header_delete_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_stage_retry_after_seconds( +pub fn deser_header_delete_documentation_part_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -263,7 +263,7 @@ pub fn deser_header_delete_stage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_usage_plan_retry_after_seconds( +pub fn deser_header_delete_documentation_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -271,7 +271,7 @@ pub fn deser_header_delete_usage_plan_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_usage_plan_key_retry_after_seconds( +pub fn deser_header_delete_domain_name_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -279,7 +279,7 @@ pub fn deser_header_delete_usage_plan_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_vpc_link_retry_after_seconds( +pub fn deser_header_delete_gateway_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -287,7 +287,7 @@ pub fn deser_header_delete_vpc_link_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_flush_stage_authorizers_cache_retry_after_seconds( +pub fn deser_header_delete_integration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -295,7 +295,7 @@ pub fn deser_header_flush_stage_authorizers_cache_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_flush_stage_cache_retry_after_seconds( +pub fn deser_header_delete_integration_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -303,7 +303,7 @@ pub fn deser_header_flush_stage_cache_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_generate_client_certificate_retry_after_seconds( +pub fn deser_header_delete_method_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -311,7 +311,7 @@ pub fn deser_header_generate_client_certificate_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_account_retry_after_seconds( +pub fn deser_header_delete_method_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -319,7 +319,7 @@ pub fn deser_header_get_account_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_api_key_retry_after_seconds( +pub fn deser_header_delete_model_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -327,7 +327,7 @@ pub fn deser_header_get_api_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_api_keys_retry_after_seconds( +pub fn deser_header_delete_request_validator_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -335,7 +335,7 @@ pub fn deser_header_get_api_keys_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_authorizer_retry_after_seconds( +pub fn deser_header_delete_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -343,7 +343,7 @@ pub fn deser_header_get_authorizer_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_authorizers_retry_after_seconds( +pub fn deser_header_delete_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -351,7 +351,7 @@ pub fn deser_header_get_authorizers_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_base_path_mapping_retry_after_seconds( +pub fn deser_header_delete_stage_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -359,7 +359,7 @@ pub fn deser_header_get_base_path_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_base_path_mappings_retry_after_seconds( +pub fn deser_header_delete_usage_plan_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -367,7 +367,7 @@ pub fn deser_header_get_base_path_mappings_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_client_certificate_retry_after_seconds( +pub fn deser_header_delete_usage_plan_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -375,7 +375,7 @@ pub fn deser_header_get_client_certificate_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_client_certificates_retry_after_seconds( +pub fn deser_header_delete_vpc_link_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -383,7 +383,7 @@ pub fn deser_header_get_client_certificates_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_deployment_retry_after_seconds( +pub fn deser_header_flush_stage_authorizers_cache_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -391,7 +391,7 @@ pub fn deser_header_get_deployment_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_deployments_retry_after_seconds( +pub fn deser_header_flush_stage_cache_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -399,7 +399,7 @@ pub fn deser_header_get_deployments_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_documentation_part_retry_after_seconds( +pub fn deser_header_generate_client_certificate_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -407,7 +407,7 @@ pub fn deser_header_get_documentation_part_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_documentation_parts_retry_after_seconds( +pub fn deser_header_generate_client_certificate_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -415,7 +415,7 @@ pub fn deser_header_get_documentation_parts_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_documentation_version_retry_after_seconds( +pub fn deser_header_get_account_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -423,7 +423,7 @@ pub fn deser_header_get_documentation_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_documentation_versions_retry_after_seconds( +pub fn deser_header_get_api_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -431,7 +431,7 @@ pub fn deser_header_get_documentation_versions_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_domain_name_retry_after_seconds( +pub fn deser_header_get_api_keys_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -439,7 +439,7 @@ pub fn deser_header_get_domain_name_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_domain_names_retry_after_seconds( +pub fn deser_header_get_authorizer_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -447,7 +447,7 @@ pub fn deser_header_get_domain_names_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_export_retry_after_seconds( +pub fn deser_header_get_authorizers_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -455,7 +455,135 @@ pub fn deser_header_get_export_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_export_body( +pub fn deser_header_get_base_path_mapping_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_base_path_mappings_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_client_certificate_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_client_certificates_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_deployment_service_unavailable_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_deployment_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_deployments_service_unavailable_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_deployments_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_documentation_part_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_documentation_parts_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_documentation_version_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_documentation_versions_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_domain_name_service_unavailable_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_domain_name_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_domain_names_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_export_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_payload_get_export_get_export_output_body( body: &[u8], ) -> std::result::Result, crate::error::GetExportError> { (!body.is_empty()) @@ -463,7 +591,7 @@ pub fn deser_payload_get_export_body( .transpose() } -pub fn deser_header_get_export_content_disposition( +pub fn deser_header_get_export_get_export_output_content_disposition( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -471,7 +599,7 @@ pub fn deser_header_get_export_content_disposition( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_export_content_type( +pub fn deser_header_get_export_get_export_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -479,7 +607,7 @@ pub fn deser_header_get_export_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_gateway_response_retry_after_seconds( +pub fn deser_header_get_gateway_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -487,7 +615,7 @@ pub fn deser_header_get_gateway_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_gateway_responses_retry_after_seconds( +pub fn deser_header_get_gateway_responses_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -495,7 +623,7 @@ pub fn deser_header_get_gateway_responses_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_integration_retry_after_seconds( +pub fn deser_header_get_integration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -503,7 +631,7 @@ pub fn deser_header_get_integration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_integration_response_retry_after_seconds( +pub fn deser_header_get_integration_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -511,7 +639,7 @@ pub fn deser_header_get_integration_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_method_retry_after_seconds( +pub fn deser_header_get_method_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -519,7 +647,7 @@ pub fn deser_header_get_method_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_method_response_retry_after_seconds( +pub fn deser_header_get_method_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -527,7 +655,7 @@ pub fn deser_header_get_method_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_model_retry_after_seconds( +pub fn deser_header_get_model_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -535,7 +663,7 @@ pub fn deser_header_get_model_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_models_retry_after_seconds( +pub fn deser_header_get_models_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -543,7 +671,7 @@ pub fn deser_header_get_models_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_model_template_retry_after_seconds( +pub fn deser_header_get_model_template_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -551,7 +679,7 @@ pub fn deser_header_get_model_template_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_request_validator_retry_after_seconds( +pub fn deser_header_get_request_validator_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -559,7 +687,7 @@ pub fn deser_header_get_request_validator_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_request_validators_retry_after_seconds( +pub fn deser_header_get_request_validators_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -567,7 +695,7 @@ pub fn deser_header_get_request_validators_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_resource_retry_after_seconds( +pub fn deser_header_get_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -575,7 +703,7 @@ pub fn deser_header_get_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_resources_retry_after_seconds( +pub fn deser_header_get_resources_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -583,7 +711,7 @@ pub fn deser_header_get_resources_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_rest_api_retry_after_seconds( +pub fn deser_header_get_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -591,7 +719,7 @@ pub fn deser_header_get_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_rest_apis_retry_after_seconds( +pub fn deser_header_get_rest_apis_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -599,7 +727,7 @@ pub fn deser_header_get_rest_apis_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_sdk_retry_after_seconds( +pub fn deser_header_get_sdk_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -607,7 +735,7 @@ pub fn deser_header_get_sdk_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_sdk_body( +pub fn deser_payload_get_sdk_get_sdk_output_body( body: &[u8], ) -> std::result::Result, crate::error::GetSdkError> { (!body.is_empty()) @@ -615,7 +743,7 @@ pub fn deser_payload_get_sdk_body( .transpose() } -pub fn deser_header_get_sdk_content_disposition( +pub fn deser_header_get_sdk_get_sdk_output_content_disposition( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -623,7 +751,7 @@ pub fn deser_header_get_sdk_content_disposition( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_sdk_content_type( +pub fn deser_header_get_sdk_get_sdk_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -631,7 +759,111 @@ pub fn deser_header_get_sdk_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_sdk_type_retry_after_seconds( +pub fn deser_header_get_sdk_type_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_sdk_types_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_stage_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_stages_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_tags_limit_exceeded_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_tags_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_usage_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_usage_plan_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_usage_plan_key_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_usage_plan_keys_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_usage_plans_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_vpc_link_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_get_vpc_links_too_many_requests_exception_retry_after_seconds( + header_map: &http::HeaderMap, +) -> std::result::Result, smithy_http::header::ParseError> +{ + let headers = header_map.get_all("Retry-After").iter(); + smithy_http::header::one_or_none(headers) +} + +pub fn deser_header_import_api_keys_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -639,7 +871,7 @@ pub fn deser_header_get_sdk_type_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_sdk_types_retry_after_seconds( +pub fn deser_header_import_api_keys_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -647,7 +879,7 @@ pub fn deser_header_get_sdk_types_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_stage_retry_after_seconds( +pub fn deser_header_import_documentation_parts_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -655,7 +887,7 @@ pub fn deser_header_get_stage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_stages_retry_after_seconds( +pub fn deser_header_import_documentation_parts_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -663,7 +895,7 @@ pub fn deser_header_get_stages_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_tags_retry_after_seconds( +pub fn deser_header_import_rest_api_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -671,7 +903,7 @@ pub fn deser_header_get_tags_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_usage_retry_after_seconds( +pub fn deser_header_import_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -679,7 +911,7 @@ pub fn deser_header_get_usage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_usage_plan_retry_after_seconds( +pub fn deser_header_put_gateway_response_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -687,7 +919,7 @@ pub fn deser_header_get_usage_plan_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_usage_plan_key_retry_after_seconds( +pub fn deser_header_put_gateway_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -695,7 +927,7 @@ pub fn deser_header_get_usage_plan_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_usage_plan_keys_retry_after_seconds( +pub fn deser_header_put_integration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -703,7 +935,7 @@ pub fn deser_header_get_usage_plan_keys_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_usage_plans_retry_after_seconds( +pub fn deser_header_put_integration_response_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -711,7 +943,7 @@ pub fn deser_header_get_usage_plans_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_vpc_link_retry_after_seconds( +pub fn deser_header_put_integration_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -719,7 +951,7 @@ pub fn deser_header_get_vpc_link_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_vpc_links_retry_after_seconds( +pub fn deser_header_put_method_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -727,7 +959,7 @@ pub fn deser_header_get_vpc_links_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_import_api_keys_retry_after_seconds( +pub fn deser_header_put_method_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -735,7 +967,7 @@ pub fn deser_header_import_api_keys_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_import_documentation_parts_retry_after_seconds( +pub fn deser_header_put_method_response_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -743,7 +975,7 @@ pub fn deser_header_import_documentation_parts_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_import_rest_api_retry_after_seconds( +pub fn deser_header_put_method_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -751,7 +983,7 @@ pub fn deser_header_import_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_gateway_response_retry_after_seconds( +pub fn deser_header_put_rest_api_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -759,7 +991,7 @@ pub fn deser_header_put_gateway_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_integration_retry_after_seconds( +pub fn deser_header_put_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -767,7 +999,7 @@ pub fn deser_header_put_integration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_integration_response_retry_after_seconds( +pub fn deser_header_tag_resource_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -775,7 +1007,7 @@ pub fn deser_header_put_integration_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_method_retry_after_seconds( +pub fn deser_header_tag_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -783,7 +1015,7 @@ pub fn deser_header_put_method_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_method_response_retry_after_seconds( +pub fn deser_header_test_invoke_authorizer_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -791,7 +1023,7 @@ pub fn deser_header_put_method_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_rest_api_retry_after_seconds( +pub fn deser_header_test_invoke_method_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -799,7 +1031,7 @@ pub fn deser_header_put_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_tag_resource_retry_after_seconds( +pub fn deser_header_untag_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -807,7 +1039,7 @@ pub fn deser_header_tag_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_test_invoke_authorizer_retry_after_seconds( +pub fn deser_header_update_account_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -815,7 +1047,7 @@ pub fn deser_header_test_invoke_authorizer_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_test_invoke_method_retry_after_seconds( +pub fn deser_header_update_api_key_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -823,7 +1055,7 @@ pub fn deser_header_test_invoke_method_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_untag_resource_retry_after_seconds( +pub fn deser_header_update_authorizer_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -831,7 +1063,7 @@ pub fn deser_header_untag_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_account_retry_after_seconds( +pub fn deser_header_update_base_path_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -839,7 +1071,7 @@ pub fn deser_header_update_account_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_api_key_retry_after_seconds( +pub fn deser_header_update_client_certificate_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -847,7 +1079,7 @@ pub fn deser_header_update_api_key_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_authorizer_retry_after_seconds( +pub fn deser_header_update_deployment_service_unavailable_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -855,7 +1087,7 @@ pub fn deser_header_update_authorizer_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_base_path_mapping_retry_after_seconds( +pub fn deser_header_update_deployment_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -863,7 +1095,7 @@ pub fn deser_header_update_base_path_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_client_certificate_retry_after_seconds( +pub fn deser_header_update_documentation_part_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -871,7 +1103,7 @@ pub fn deser_header_update_client_certificate_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_deployment_retry_after_seconds( +pub fn deser_header_update_documentation_part_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -879,7 +1111,7 @@ pub fn deser_header_update_deployment_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_documentation_part_retry_after_seconds( +pub fn deser_header_update_documentation_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -887,7 +1119,7 @@ pub fn deser_header_update_documentation_part_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_documentation_version_retry_after_seconds( +pub fn deser_header_update_domain_name_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -895,7 +1127,7 @@ pub fn deser_header_update_documentation_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_domain_name_retry_after_seconds( +pub fn deser_header_update_gateway_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -903,7 +1135,7 @@ pub fn deser_header_update_domain_name_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_gateway_response_retry_after_seconds( +pub fn deser_header_update_integration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -911,7 +1143,7 @@ pub fn deser_header_update_gateway_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_integration_retry_after_seconds( +pub fn deser_header_update_integration_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -919,7 +1151,7 @@ pub fn deser_header_update_integration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_integration_response_retry_after_seconds( +pub fn deser_header_update_method_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -927,7 +1159,7 @@ pub fn deser_header_update_integration_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_method_retry_after_seconds( +pub fn deser_header_update_method_response_limit_exceeded_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -935,7 +1167,7 @@ pub fn deser_header_update_method_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_method_response_retry_after_seconds( +pub fn deser_header_update_method_response_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -943,7 +1175,7 @@ pub fn deser_header_update_method_response_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_model_retry_after_seconds( +pub fn deser_header_update_model_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -951,7 +1183,7 @@ pub fn deser_header_update_model_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_request_validator_retry_after_seconds( +pub fn deser_header_update_request_validator_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -959,7 +1191,7 @@ pub fn deser_header_update_request_validator_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_resource_retry_after_seconds( +pub fn deser_header_update_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -967,7 +1199,7 @@ pub fn deser_header_update_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_rest_api_retry_after_seconds( +pub fn deser_header_update_rest_api_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -975,7 +1207,7 @@ pub fn deser_header_update_rest_api_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_stage_retry_after_seconds( +pub fn deser_header_update_stage_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -983,7 +1215,7 @@ pub fn deser_header_update_stage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_usage_retry_after_seconds( +pub fn deser_header_update_usage_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -991,7 +1223,7 @@ pub fn deser_header_update_usage_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_usage_plan_retry_after_seconds( +pub fn deser_header_update_usage_plan_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -999,7 +1231,7 @@ pub fn deser_header_update_usage_plan_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_vpc_link_retry_after_seconds( +pub fn deser_header_update_vpc_link_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { diff --git a/sdk/apigateway/src/input.rs b/sdk/apigateway/src/input.rs index c6143fc57815..0a73502c4629 100644 --- a/sdk/apigateway/src/input.rs +++ b/sdk/apigateway/src/input.rs @@ -189,8 +189,9 @@ impl CreateApiKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/apikeys").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/apikeys").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -198,7 +199,7 @@ impl CreateApiKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -365,7 +366,7 @@ pub mod create_authorizer_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateAuthorizerInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, name: self.name, r#type: self.r#type, provider_ar_ns: self.provider_ar_ns, @@ -445,13 +446,31 @@ impl CreateAuthorizerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -459,7 +478,7 @@ impl CreateAuthorizerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -541,7 +560,7 @@ pub mod create_base_path_mapping_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateBasePathMappingInput { - domain_name: self.domain_name.unwrap_or_default(), + domain_name: self.domain_name, base_path: self.base_path, rest_api_id: self.rest_api_id, stage: self.stage, @@ -616,13 +635,31 @@ impl CreateBasePathMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}/basepathmappings", - domainName = smithy_http::label::fmt_string(&self.domain_name, false) + domainName = domain_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -630,7 +667,7 @@ impl CreateBasePathMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -783,7 +820,7 @@ pub mod create_deployment_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateDeploymentInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, stage_name: self.stage_name, stage_description: self.stage_description, description: self.description, @@ -862,13 +899,31 @@ impl CreateDeploymentInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/deployments", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -876,7 +931,7 @@ impl CreateDeploymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -951,7 +1006,7 @@ pub mod create_documentation_part_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateDocumentationPartInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, location: self.location, properties: self.properties, }) @@ -1026,13 +1081,31 @@ impl CreateDocumentationPartInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1040,7 +1113,7 @@ impl CreateDocumentationPartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1125,7 +1198,7 @@ pub mod create_documentation_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateDocumentationVersionInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, documentation_version: self.documentation_version, stage_name: self.stage_name, description: self.description, @@ -1202,13 +1275,31 @@ impl CreateDocumentationVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/versions", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1216,7 +1307,7 @@ impl CreateDocumentationVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1510,8 +1601,9 @@ impl CreateDomainNameInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/domainnames").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/domainnames").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1519,7 +1611,7 @@ impl CreateDomainNameInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1609,7 +1701,7 @@ pub mod create_model_input { ) -> std::result::Result { Ok(crate::input::CreateModelInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, name: self.name, description: self.description, schema: self.schema, @@ -1685,13 +1777,31 @@ impl CreateModelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1699,7 +1809,7 @@ impl CreateModelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1781,7 +1891,7 @@ pub mod create_request_validator_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateRequestValidatorInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, name: self.name, validate_request_body: self.validate_request_body.unwrap_or_default(), validate_request_parameters: self.validate_request_parameters.unwrap_or_default(), @@ -1856,13 +1966,31 @@ impl CreateRequestValidatorInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/requestvalidators", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1870,7 +1998,7 @@ impl CreateRequestValidatorInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1942,8 +2070,8 @@ pub mod create_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateResourceInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - parent_id: self.parent_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + parent_id: self.parent_id, path_part: self.path_part, }) } @@ -2015,14 +2143,49 @@ impl CreateResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let parent_id = { + let input = &self.parent_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "parent_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "parent_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{parentId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - parentId = smithy_http::label::fmt_string(&self.parent_id, false) + restApiId = rest_api_id, + parentId = parent_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2030,7 +2193,7 @@ impl CreateResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2289,8 +2452,9 @@ impl CreateRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/restapis").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2298,7 +2462,7 @@ impl CreateRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2484,7 +2648,7 @@ pub mod create_stage_input { ) -> std::result::Result { Ok(crate::input::CreateStageInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, stage_name: self.stage_name, deployment_id: self.deployment_id, description: self.description, @@ -2566,13 +2730,31 @@ impl CreateStageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2580,7 +2762,7 @@ impl CreateStageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2780,8 +2962,9 @@ impl CreateUsagePlanInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/usageplans").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/usageplans").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2789,7 +2972,7 @@ impl CreateUsagePlanInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2864,7 +3047,7 @@ pub mod create_usage_plan_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateUsagePlanKeyInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, key_id: self.key_id, key_type: self.key_type, }) @@ -2938,13 +3121,31 @@ impl CreateUsagePlanKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/keys", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2952,7 +3153,7 @@ impl CreateUsagePlanKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3122,8 +3323,9 @@ impl CreateVpcLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/vpclinks").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/vpclinks").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3131,7 +3333,7 @@ impl CreateVpcLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3181,7 +3383,7 @@ pub mod delete_api_key_input { ) -> std::result::Result { Ok(crate::input::DeleteApiKeyInput { - api_key: self.api_key.unwrap_or_default(), + api_key: self.api_key, }) } } @@ -3250,13 +3452,26 @@ impl DeleteApiKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/apikeys/{apiKey}", - apiKey = smithy_http::label::fmt_string(&self.api_key, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let api_key = { + let input = &self.api_key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/apikeys/{apiKey}", apiKey = api_key).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3264,7 +3479,7 @@ impl DeleteApiKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3329,8 +3544,8 @@ pub mod delete_authorizer_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteAuthorizerInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - authorizer_id: self.authorizer_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + authorizer_id: self.authorizer_id, }) } } @@ -3399,14 +3614,49 @@ impl DeleteAuthorizerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let authorizer_id = { + let input = &self.authorizer_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers/{authorizerId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - authorizerId = smithy_http::label::fmt_string(&self.authorizer_id, false) + restApiId = rest_api_id, + authorizerId = authorizer_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3414,7 +3664,7 @@ impl DeleteAuthorizerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3477,8 +3727,8 @@ pub mod delete_base_path_mapping_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBasePathMappingInput { - domain_name: self.domain_name.unwrap_or_default(), - base_path: self.base_path.unwrap_or_default(), + domain_name: self.domain_name, + base_path: self.base_path, }) } } @@ -3547,14 +3797,49 @@ impl DeleteBasePathMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let base_path = { + let input = &self.base_path; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}/basepathmappings/{basePath}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false), - basePath = smithy_http::label::fmt_string(&self.base_path, false) + domainName = domain_name, + basePath = base_path ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3562,7 +3847,7 @@ impl DeleteBasePathMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3617,7 +3902,7 @@ pub mod delete_client_certificate_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteClientCertificateInput { - client_certificate_id: self.client_certificate_id.unwrap_or_default(), + client_certificate_id: self.client_certificate_id, }) } } @@ -3687,14 +3972,31 @@ impl DeleteClientCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let client_certificate_id = { + let input = &self.client_certificate_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/clientcertificates/{clientCertificateId}", - clientCertificateId = - smithy_http::label::fmt_string(&self.client_certificate_id, false) + clientCertificateId = client_certificate_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3702,7 +4004,7 @@ impl DeleteClientCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3767,8 +4069,8 @@ pub mod delete_deployment_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteDeploymentInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - deployment_id: self.deployment_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + deployment_id: self.deployment_id, }) } } @@ -3837,14 +4139,49 @@ impl DeleteDeploymentInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let deployment_id = { + let input = &self.deployment_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/deployments/{deploymentId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - deploymentId = smithy_http::label::fmt_string(&self.deployment_id, false) + restApiId = rest_api_id, + deploymentId = deployment_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3852,7 +4189,7 @@ impl DeleteDeploymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3917,8 +4254,8 @@ pub mod delete_documentation_part_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteDocumentationPartInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_part_id: self.documentation_part_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_part_id: self.documentation_part_id, }) } } @@ -3988,15 +4325,49 @@ impl DeleteDocumentationPartInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_part_id = { + let input = &self.documentation_part_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts/{documentationPartId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationPartId = - smithy_http::label::fmt_string(&self.documentation_part_id, false) + restApiId = rest_api_id, + documentationPartId = documentation_part_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4004,7 +4375,7 @@ impl DeleteDocumentationPartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4069,8 +4440,8 @@ pub mod delete_documentation_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteDocumentationVersionInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_version: self.documentation_version.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_version: self.documentation_version, }) } } @@ -4140,15 +4511,49 @@ impl DeleteDocumentationVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_version = { + let input = &self.documentation_version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/versions/{documentationVersion}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationVersion = - smithy_http::label::fmt_string(&self.documentation_version, false) + restApiId = rest_api_id, + documentationVersion = documentation_version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4156,7 +4561,7 @@ impl DeleteDocumentationVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4208,7 +4613,7 @@ pub mod delete_domain_name_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteDomainNameInput { - domain_name: self.domain_name.unwrap_or_default(), + domain_name: self.domain_name, }) } } @@ -4277,13 +4682,31 @@ impl DeleteDomainNameInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false) + domainName = domain_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4291,7 +4714,7 @@ impl DeleteDomainNameInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4355,18 +4778,10 @@ pub mod delete_gateway_response_input { crate::input::DeleteGatewayResponseInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::DeleteGatewayResponseInput { - rest_api_id: self.rest_api_id - .unwrap_or_default() - , - response_type: self.response_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "response_type", details: "response_type was not specified but it is required when building DeleteGatewayResponseInput"} - )? - , - } - ) + Ok(crate::input::DeleteGatewayResponseInput { + rest_api_id: self.rest_api_id, + response_type: self.response_type, + }) } } } @@ -4434,14 +4849,49 @@ impl DeleteGatewayResponseInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let response_type = { + let input = &self.response_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/gatewayresponses/{responseType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - responseType = smithy_http::label::fmt_string(&self.response_type, false) + restApiId = rest_api_id, + responseType = response_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4449,7 +4899,7 @@ impl DeleteGatewayResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4521,9 +4971,9 @@ pub mod delete_integration_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteIntegrationInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, }) } } @@ -4592,15 +5042,67 @@ impl DeleteIntegrationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4608,7 +5110,7 @@ impl DeleteIntegrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4690,10 +5192,10 @@ pub mod delete_integration_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteIntegrationResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, }) } } @@ -4763,8 +5265,77 @@ impl DeleteIntegrationResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4772,7 +5343,7 @@ impl DeleteIntegrationResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4842,9 +5413,9 @@ pub mod delete_method_input { ) -> std::result::Result { Ok(crate::input::DeleteMethodInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, }) } } @@ -4913,15 +5484,67 @@ impl DeleteMethodInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4929,7 +5552,7 @@ impl DeleteMethodInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5011,10 +5634,10 @@ pub mod delete_method_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteMethodResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, }) } } @@ -5083,8 +5706,77 @@ impl DeleteMethodResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5092,7 +5784,7 @@ impl DeleteMethodResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5152,8 +5844,8 @@ pub mod delete_model_input { ) -> std::result::Result { Ok(crate::input::DeleteModelInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - model_name: self.model_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + model_name: self.model_name, }) } } @@ -5222,14 +5914,49 @@ impl DeleteModelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let model_name = { + let input = &self.model_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models/{modelName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - modelName = smithy_http::label::fmt_string(&self.model_name, false) + restApiId = rest_api_id, + modelName = model_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5237,7 +5964,7 @@ impl DeleteModelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5302,8 +6029,8 @@ pub mod delete_request_validator_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteRequestValidatorInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - request_validator_id: self.request_validator_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + request_validator_id: self.request_validator_id, }) } } @@ -5372,14 +6099,49 @@ impl DeleteRequestValidatorInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let request_validator_id = { + let input = &self.request_validator_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - requestValidatorId = smithy_http::label::fmt_string(&self.request_validator_id, false) + restApiId = rest_api_id, + requestValidatorId = request_validator_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5387,7 +6149,7 @@ impl DeleteRequestValidatorInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5449,8 +6211,8 @@ pub mod delete_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteResourceInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, }) } } @@ -5519,14 +6281,49 @@ impl DeleteResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false) + restApiId = rest_api_id, + resourceId = resource_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5534,7 +6331,7 @@ impl DeleteResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5584,7 +6381,7 @@ pub mod delete_rest_api_input { ) -> std::result::Result { Ok(crate::input::DeleteRestApiInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, }) } } @@ -5653,13 +6450,27 @@ impl DeleteRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/restapis/{restApiId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}", restApiId = rest_api_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5667,7 +6478,7 @@ impl DeleteRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5727,8 +6538,8 @@ pub mod delete_stage_input { ) -> std::result::Result { Ok(crate::input::DeleteStageInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, }) } } @@ -5797,14 +6608,49 @@ impl DeleteStageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false) + restApiId = rest_api_id, + stageName = stage_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5812,7 +6658,7 @@ impl DeleteStageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5867,7 +6713,7 @@ pub mod delete_usage_plan_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteUsagePlanInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, }) } } @@ -5936,13 +6782,31 @@ impl DeleteUsagePlanInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5950,7 +6814,7 @@ impl DeleteUsagePlanInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6015,8 +6879,8 @@ pub mod delete_usage_plan_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteUsagePlanKeyInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), - key_id: self.key_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, + key_id: self.key_id, }) } } @@ -6085,14 +6949,49 @@ impl DeleteUsagePlanKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key_id = { + let input = &self.key_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/keys/{keyId}", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false), - keyId = smithy_http::label::fmt_string(&self.key_id, false) + usagePlanId = usage_plan_id, + keyId = key_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6100,7 +6999,7 @@ impl DeleteUsagePlanKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6150,7 +7049,7 @@ pub mod delete_vpc_link_input { ) -> std::result::Result { Ok(crate::input::DeleteVpcLinkInput { - vpc_link_id: self.vpc_link_id.unwrap_or_default(), + vpc_link_id: self.vpc_link_id, }) } } @@ -6219,13 +7118,27 @@ impl DeleteVpcLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/vpclinks/{vpcLinkId}", - vpcLinkId = smithy_http::label::fmt_string(&self.vpc_link_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let vpc_link_id = { + let input = &self.vpc_link_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/vpclinks/{vpcLinkId}", vpcLinkId = vpc_link_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6233,7 +7146,7 @@ impl DeleteVpcLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6295,8 +7208,8 @@ pub mod flush_stage_authorizers_cache_input { smithy_http::operation::BuildError, > { Ok(crate::input::FlushStageAuthorizersCacheInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, }) } } @@ -6366,14 +7279,49 @@ impl FlushStageAuthorizersCacheInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}/cache/authorizers", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false) + restApiId = rest_api_id, + stageName = stage_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6381,7 +7329,7 @@ impl FlushStageAuthorizersCacheInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6443,8 +7391,8 @@ pub mod flush_stage_cache_input { smithy_http::operation::BuildError, > { Ok(crate::input::FlushStageCacheInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, }) } } @@ -6513,14 +7461,49 @@ impl FlushStageCacheInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}/cache/data", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false) + restApiId = rest_api_id, + stageName = stage_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6528,7 +7511,7 @@ impl FlushStageCacheInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6676,8 +7659,9 @@ impl GenerateClientCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/clientcertificates").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/clientcertificates").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6685,7 +7669,7 @@ impl GenerateClientCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6791,8 +7775,9 @@ impl GetAccountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/account").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/account").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6800,7 +7785,7 @@ impl GetAccountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6860,7 +7845,7 @@ pub mod get_api_key_input { ) -> std::result::Result { Ok(crate::input::GetApiKeyInput { - api_key: self.api_key.unwrap_or_default(), + api_key: self.api_key, include_value: self.include_value, }) } @@ -6928,13 +7913,26 @@ impl GetApiKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/apikeys/{apiKey}", - apiKey = smithy_http::label::fmt_string(&self.api_key, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let api_key = { + let input = &self.api_key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/apikeys/{apiKey}", apiKey = api_key).expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6948,7 +7946,7 @@ impl GetApiKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7112,8 +8110,9 @@ impl GetApiKeysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/apikeys").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/apikeys").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7139,7 +8138,7 @@ impl GetApiKeysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7203,8 +8202,8 @@ pub mod get_authorizer_input { ) -> std::result::Result { Ok(crate::input::GetAuthorizerInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - authorizer_id: self.authorizer_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + authorizer_id: self.authorizer_id, }) } } @@ -7273,14 +8272,49 @@ impl GetAuthorizerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let authorizer_id = { + let input = &self.authorizer_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers/{authorizerId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - authorizerId = smithy_http::label::fmt_string(&self.authorizer_id, false) + restApiId = rest_api_id, + authorizerId = authorizer_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7288,7 +8322,7 @@ impl GetAuthorizerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7360,7 +8394,7 @@ pub mod get_authorizers_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetAuthorizersInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -7431,13 +8465,31 @@ impl GetAuthorizersInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7454,7 +8506,7 @@ impl GetAuthorizersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7517,8 +8569,8 @@ pub mod get_base_path_mapping_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBasePathMappingInput { - domain_name: self.domain_name.unwrap_or_default(), - base_path: self.base_path.unwrap_or_default(), + domain_name: self.domain_name, + base_path: self.base_path, }) } } @@ -7587,14 +8639,49 @@ impl GetBasePathMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let base_path = { + let input = &self.base_path; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}/basepathmappings/{basePath}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false), - basePath = smithy_http::label::fmt_string(&self.base_path, false) + domainName = domain_name, + basePath = base_path ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7602,7 +8689,7 @@ impl GetBasePathMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7674,7 +8761,7 @@ pub mod get_base_path_mappings_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBasePathMappingsInput { - domain_name: self.domain_name.unwrap_or_default(), + domain_name: self.domain_name, position: self.position, limit: self.limit, }) @@ -7745,13 +8832,31 @@ impl GetBasePathMappingsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}/basepathmappings", - domainName = smithy_http::label::fmt_string(&self.domain_name, false) + domainName = domain_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7768,7 +8873,7 @@ impl GetBasePathMappingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7824,7 +8929,7 @@ pub mod get_client_certificate_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetClientCertificateInput { - client_certificate_id: self.client_certificate_id.unwrap_or_default(), + client_certificate_id: self.client_certificate_id, }) } } @@ -7893,14 +8998,31 @@ impl GetClientCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let client_certificate_id = { + let input = &self.client_certificate_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/clientcertificates/{clientCertificateId}", - clientCertificateId = - smithy_http::label::fmt_string(&self.client_certificate_id, false) + clientCertificateId = client_certificate_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7908,7 +9030,7 @@ impl GetClientCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8040,8 +9162,9 @@ impl GetClientCertificatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/clientcertificates").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/clientcertificates").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8058,7 +9181,7 @@ impl GetClientCertificatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8136,8 +9259,8 @@ pub mod get_deployment_input { ) -> std::result::Result { Ok(crate::input::GetDeploymentInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - deployment_id: self.deployment_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + deployment_id: self.deployment_id, embed: self.embed, }) } @@ -8207,14 +9330,49 @@ impl GetDeploymentInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let deployment_id = { + let input = &self.deployment_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/deployments/{deploymentId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - deploymentId = smithy_http::label::fmt_string(&self.deployment_id, false) + restApiId = rest_api_id, + deploymentId = deployment_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8230,7 +9388,7 @@ impl GetDeploymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8303,7 +9461,7 @@ pub mod get_deployments_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDeploymentsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -8374,13 +9532,31 @@ impl GetDeploymentsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/deployments", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8397,7 +9573,7 @@ impl GetDeploymentsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8463,8 +9639,8 @@ pub mod get_documentation_part_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDocumentationPartInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_part_id: self.documentation_part_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_part_id: self.documentation_part_id, }) } } @@ -8533,15 +9709,49 @@ impl GetDocumentationPartInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_part_id = { + let input = &self.documentation_part_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts/{documentationPartId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationPartId = - smithy_http::label::fmt_string(&self.documentation_part_id, false) + restApiId = rest_api_id, + documentationPartId = documentation_part_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8549,7 +9759,7 @@ impl GetDocumentationPartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8667,7 +9877,7 @@ pub mod get_documentation_parts_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDocumentationPartsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, r#type: self.r#type, name_query: self.name_query, path: self.path, @@ -8742,13 +9952,31 @@ impl GetDocumentationPartsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8777,7 +10005,7 @@ impl GetDocumentationPartsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8843,8 +10071,8 @@ pub mod get_documentation_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDocumentationVersionInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_version: self.documentation_version.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_version: self.documentation_version, }) } } @@ -8914,15 +10142,49 @@ impl GetDocumentationVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_version = { + let input = &self.documentation_version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/versions/{documentationVersion}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationVersion = - smithy_http::label::fmt_string(&self.documentation_version, false) + restApiId = rest_api_id, + documentationVersion = documentation_version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8930,7 +10192,7 @@ impl GetDocumentationVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9002,7 +10264,7 @@ pub mod get_documentation_versions_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDocumentationVersionsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -9074,13 +10336,31 @@ impl GetDocumentationVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/versions", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9097,7 +10377,7 @@ impl GetDocumentationVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9148,7 +10428,7 @@ pub mod get_domain_name_input { ) -> std::result::Result { Ok(crate::input::GetDomainNameInput { - domain_name: self.domain_name.unwrap_or_default(), + domain_name: self.domain_name, }) } } @@ -9217,13 +10497,31 @@ impl GetDomainNameInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false) + domainName = domain_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9231,7 +10529,7 @@ impl GetDomainNameInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9363,8 +10661,9 @@ impl GetDomainNamesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/domainnames").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/domainnames").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9381,7 +10680,7 @@ impl GetDomainNamesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9484,9 +10783,9 @@ pub mod get_export_input { ) -> std::result::Result { Ok(crate::input::GetExportInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), - export_type: self.export_type.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, + export_type: self.export_type, parameters: self.parameters, accepts: self.accepts, }) @@ -9555,15 +10854,67 @@ impl GetExportInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let export_type = { + let input = &self.export_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "export_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "export_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}/exports/{exportType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false), - exportType = smithy_http::label::fmt_string(&self.export_type, false) + restApiId = rest_api_id, + stageName = stage_name, + exportType = export_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9595,7 +10946,7 @@ impl GetExportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) } @@ -9660,18 +11011,10 @@ pub mod get_gateway_response_input { crate::input::GetGatewayResponseInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::GetGatewayResponseInput { - rest_api_id: self.rest_api_id - .unwrap_or_default() - , - response_type: self.response_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "response_type", details: "response_type was not specified but it is required when building GetGatewayResponseInput"} - )? - , - } - ) + Ok(crate::input::GetGatewayResponseInput { + rest_api_id: self.rest_api_id, + response_type: self.response_type, + }) } } } @@ -9739,14 +11082,49 @@ impl GetGatewayResponseInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let response_type = { + let input = &self.response_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/gatewayresponses/{responseType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - responseType = smithy_http::label::fmt_string(&self.response_type, false) + restApiId = rest_api_id, + responseType = response_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9754,7 +11132,7 @@ impl GetGatewayResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9826,7 +11204,7 @@ pub mod get_gateway_responses_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetGatewayResponsesInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -9897,13 +11275,31 @@ impl GetGatewayResponsesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/gatewayresponses", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9920,7 +11316,7 @@ impl GetGatewayResponsesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9993,9 +11389,9 @@ pub mod get_integration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetIntegrationInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, }) } } @@ -10064,15 +11460,67 @@ impl GetIntegrationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10080,7 +11528,7 @@ impl GetIntegrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10162,10 +11610,10 @@ pub mod get_integration_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetIntegrationResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, }) } } @@ -10234,8 +11682,77 @@ impl GetIntegrationResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10243,7 +11760,7 @@ impl GetIntegrationResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10313,9 +11830,9 @@ pub mod get_method_input { ) -> std::result::Result { Ok(crate::input::GetMethodInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, }) } } @@ -10382,15 +11899,67 @@ impl GetMethodInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10398,7 +11967,7 @@ impl GetMethodInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10480,10 +12049,10 @@ pub mod get_method_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetMethodResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, }) } } @@ -10552,8 +12121,77 @@ impl GetMethodResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10561,7 +12199,7 @@ impl GetMethodResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10631,8 +12269,8 @@ pub mod get_model_input { ) -> std::result::Result { Ok(crate::input::GetModelInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - model_name: self.model_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + model_name: self.model_name, flatten: self.flatten.unwrap_or_default(), }) } @@ -10700,14 +12338,49 @@ impl GetModelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let model_name = { + let input = &self.model_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models/{modelName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - modelName = smithy_http::label::fmt_string(&self.model_name, false) + restApiId = rest_api_id, + modelName = model_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -10721,7 +12394,7 @@ impl GetModelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -10792,7 +12465,7 @@ pub mod get_models_input { ) -> std::result::Result { Ok(crate::input::GetModelsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -10861,13 +12534,31 @@ impl GetModelsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -10884,7 +12575,7 @@ impl GetModelsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -10947,8 +12638,8 @@ pub mod get_model_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetModelTemplateInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - model_name: self.model_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + model_name: self.model_name, }) } } @@ -11017,14 +12708,49 @@ impl GetModelTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let model_name = { + let input = &self.model_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models/{modelName}/default_template", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - modelName = smithy_http::label::fmt_string(&self.model_name, false) + restApiId = rest_api_id, + modelName = model_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11032,7 +12758,7 @@ impl GetModelTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11097,8 +12823,8 @@ pub mod get_request_validator_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetRequestValidatorInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - request_validator_id: self.request_validator_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + request_validator_id: self.request_validator_id, }) } } @@ -11167,14 +12893,49 @@ impl GetRequestValidatorInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let request_validator_id = { + let input = &self.request_validator_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - requestValidatorId = smithy_http::label::fmt_string(&self.request_validator_id, false) + restApiId = rest_api_id, + requestValidatorId = request_validator_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11182,7 +12943,7 @@ impl GetRequestValidatorInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11254,7 +13015,7 @@ pub mod get_request_validators_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetRequestValidatorsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, }) @@ -11325,13 +13086,31 @@ impl GetRequestValidatorsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/requestvalidators", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11348,7 +13127,7 @@ impl GetRequestValidatorsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -11423,8 +13202,8 @@ pub mod get_resource_input { ) -> std::result::Result { Ok(crate::input::GetResourceInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, embed: self.embed, }) } @@ -11494,14 +13273,49 @@ impl GetResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false) + restApiId = rest_api_id, + resourceId = resource_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11517,7 +13331,7 @@ impl GetResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -11602,7 +13416,7 @@ pub mod get_resources_input { ) -> std::result::Result { Ok(crate::input::GetResourcesInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, position: self.position, limit: self.limit, embed: self.embed, @@ -11674,13 +13488,31 @@ impl GetResourcesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11702,7 +13534,7 @@ impl GetResourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -11753,7 +13585,7 @@ pub mod get_rest_api_input { ) -> std::result::Result { Ok(crate::input::GetRestApiInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, }) } } @@ -11822,13 +13654,27 @@ impl GetRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/restapis/{restApiId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}", restApiId = rest_api_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11836,7 +13682,7 @@ impl GetRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11966,8 +13812,9 @@ impl GetRestApisInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/restapis").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11984,7 +13831,7 @@ impl GetRestApisInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -12077,9 +13924,9 @@ pub mod get_sdk_input { ) -> std::result::Result { Ok(crate::input::GetSdkInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), - sdk_type: self.sdk_type.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, + sdk_type: self.sdk_type, parameters: self.parameters, }) } @@ -12144,15 +13991,67 @@ impl GetSdkInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let sdk_type = { + let input = &self.sdk_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "sdk_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "sdk_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false), - sdkType = smithy_http::label::fmt_string(&self.sdk_type, false) + restApiId = rest_api_id, + stageName = stage_name, + sdkType = sdk_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12160,7 +14059,7 @@ impl GetSdkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12209,9 +14108,7 @@ pub mod get_sdk_type_input { self, ) -> std::result::Result { - Ok(crate::input::GetSdkTypeInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetSdkTypeInput { id: self.id }) } } } @@ -12279,13 +14176,26 @@ impl GetSdkTypeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/sdktypes/{id}", - id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/sdktypes/{id}", id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12293,7 +14203,7 @@ impl GetSdkTypeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12423,8 +14333,9 @@ impl GetSdkTypesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/sdktypes").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/sdktypes").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -12441,7 +14352,7 @@ impl GetSdkTypesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -12502,8 +14413,8 @@ pub mod get_stage_input { ) -> std::result::Result { Ok(crate::input::GetStageInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, }) } } @@ -12570,14 +14481,49 @@ impl GetStageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false) + restApiId = rest_api_id, + stageName = stage_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12585,7 +14531,7 @@ impl GetStageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12648,7 +14594,7 @@ pub mod get_stages_input { ) -> std::result::Result { Ok(crate::input::GetStagesInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, deployment_id: self.deployment_id, }) } @@ -12716,13 +14662,31 @@ impl GetStagesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -12736,7 +14700,7 @@ impl GetStagesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -12807,7 +14771,7 @@ pub mod get_tags_input { ) -> std::result::Result { Ok(crate::input::GetTagsInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, position: self.position, limit: self.limit, }) @@ -12873,13 +14837,27 @@ impl GetTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -12896,7 +14874,7 @@ impl GetTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -13000,7 +14978,7 @@ pub mod get_usage_input { ) -> std::result::Result { Ok(crate::input::GetUsageInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, key_id: self.key_id, start_date: self.start_date, end_date: self.end_date, @@ -13072,13 +15050,31 @@ impl GetUsageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/usage", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -13104,7 +15100,7 @@ impl GetUsageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -13158,7 +15154,7 @@ pub mod get_usage_plan_input { ) -> std::result::Result { Ok(crate::input::GetUsagePlanInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, }) } } @@ -13227,13 +15223,31 @@ impl GetUsagePlanInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13241,7 +15255,7 @@ impl GetUsagePlanInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13306,8 +15320,8 @@ pub mod get_usage_plan_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetUsagePlanKeyInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), - key_id: self.key_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, + key_id: self.key_id, }) } } @@ -13376,14 +15390,49 @@ impl GetUsagePlanKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key_id = { + let input = &self.key_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/keys/{keyId}", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false), - keyId = smithy_http::label::fmt_string(&self.key_id, false) + usagePlanId = usage_plan_id, + keyId = key_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13391,7 +15440,7 @@ impl GetUsagePlanKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13476,7 +15525,7 @@ pub mod get_usage_plan_keys_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetUsagePlanKeysInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, position: self.position, limit: self.limit, name_query: self.name_query, @@ -13548,13 +15597,31 @@ impl GetUsagePlanKeysInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/keys", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -13574,7 +15641,7 @@ impl GetUsagePlanKeysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -13716,8 +15783,9 @@ impl GetUsagePlansInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/usageplans").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/usageplans").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -13737,7 +15805,7 @@ impl GetUsagePlansInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -13788,7 +15856,7 @@ pub mod get_vpc_link_input { ) -> std::result::Result { Ok(crate::input::GetVpcLinkInput { - vpc_link_id: self.vpc_link_id.unwrap_or_default(), + vpc_link_id: self.vpc_link_id, }) } } @@ -13857,13 +15925,27 @@ impl GetVpcLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/vpclinks/{vpcLinkId}", - vpcLinkId = smithy_http::label::fmt_string(&self.vpc_link_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let vpc_link_id = { + let input = &self.vpc_link_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/vpclinks/{vpcLinkId}", vpcLinkId = vpc_link_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13871,7 +15953,7 @@ impl GetVpcLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14001,8 +16083,9 @@ impl GetVpcLinksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/vpclinks").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/vpclinks").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -14019,7 +16102,7 @@ impl GetVpcLinksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -14164,8 +16247,9 @@ impl ImportApiKeysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/apikeys").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/apikeys").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -14186,7 +16270,7 @@ impl ImportApiKeysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("POST").uri(uri)) } @@ -14269,7 +16353,7 @@ pub mod import_documentation_parts_input { smithy_http::operation::BuildError, > { Ok(crate::input::ImportDocumentationPartsInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, mode: self.mode, fail_on_warnings: self.fail_on_warnings.unwrap_or_default(), body: self.body, @@ -14343,13 +16427,31 @@ impl ImportDocumentationPartsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) + restApiId = rest_api_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -14369,7 +16471,7 @@ impl ImportDocumentationPartsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("PUT").uri(uri)) } @@ -14524,8 +16626,9 @@ impl ImportRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/restapis").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -14554,7 +16657,7 @@ impl ImportRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("POST").uri(uri)) } @@ -14673,24 +16776,13 @@ pub mod put_gateway_response_input { crate::input::PutGatewayResponseInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::PutGatewayResponseInput { - rest_api_id: self.rest_api_id - .unwrap_or_default() - , - response_type: self.response_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "response_type", details: "response_type was not specified but it is required when building PutGatewayResponseInput"} - )? - , - status_code: self.status_code - , - response_parameters: self.response_parameters - , - response_templates: self.response_templates - , - } - ) + Ok(crate::input::PutGatewayResponseInput { + rest_api_id: self.rest_api_id, + response_type: self.response_type, + status_code: self.status_code, + response_parameters: self.response_parameters, + response_templates: self.response_templates, + }) } } } @@ -14761,14 +16853,49 @@ impl PutGatewayResponseInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let response_type = { + let input = &self.response_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/gatewayresponses/{responseType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - responseType = smithy_http::label::fmt_string(&self.response_type, false) + restApiId = rest_api_id, + responseType = response_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14776,7 +16903,7 @@ impl PutGatewayResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15055,9 +17182,9 @@ pub mod put_integration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutIntegrationInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, r#type: self.r#type, integration_http_method: self.integration_http_method, uri: self.uri, @@ -15142,15 +17269,67 @@ impl PutIntegrationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15158,7 +17337,7 @@ impl PutIntegrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15315,10 +17494,10 @@ pub mod put_integration_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutIntegrationResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, selection_pattern: self.selection_pattern, response_parameters: self.response_parameters, response_templates: self.response_templates, @@ -15394,8 +17573,77 @@ impl PutIntegrationResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15403,7 +17651,7 @@ impl PutIntegrationResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15590,9 +17838,9 @@ pub mod put_method_input { ) -> std::result::Result { Ok(crate::input::PutMethodInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, authorization_type: self.authorization_type, authorizer_id: self.authorizer_id, api_key_required: self.api_key_required.unwrap_or_default(), @@ -15670,15 +17918,67 @@ impl PutMethodInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15686,7 +17986,7 @@ impl PutMethodInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15809,10 +18109,10 @@ pub mod put_method_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutMethodResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, response_parameters: self.response_parameters, response_models: self.response_models, }) @@ -15886,8 +18186,77 @@ impl PutMethodResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15895,7 +18264,7 @@ impl PutMethodResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15999,7 +18368,7 @@ pub mod put_rest_api_input { ) -> std::result::Result { Ok(crate::input::PutRestApiInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, mode: self.mode, fail_on_warnings: self.fail_on_warnings.unwrap_or_default(), parameters: self.parameters, @@ -16072,13 +18441,27 @@ impl PutRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/restapis/{restApiId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}", restApiId = rest_api_id) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -16109,7 +18492,7 @@ impl PutRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("PUT").uri(uri)) } @@ -16182,7 +18565,7 @@ pub mod tag_resource_input { ) -> std::result::Result { Ok(crate::input::TagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tags: self.tags, }) } @@ -16255,13 +18638,27 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16269,7 +18666,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16445,8 +18842,8 @@ pub mod test_invoke_authorizer_input { smithy_http::operation::BuildError, > { Ok(crate::input::TestInvokeAuthorizerInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - authorizer_id: self.authorizer_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + authorizer_id: self.authorizer_id, headers: self.headers, multi_value_headers: self.multi_value_headers, path_with_query_string: self.path_with_query_string, @@ -16524,14 +18921,49 @@ impl TestInvokeAuthorizerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let authorizer_id = { + let input = &self.authorizer_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers/{authorizerId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - authorizerId = smithy_http::label::fmt_string(&self.authorizer_id, false) + restApiId = rest_api_id, + authorizerId = authorizer_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16539,7 +18971,7 @@ impl TestInvokeAuthorizerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16713,9 +19145,9 @@ pub mod test_invoke_method_input { smithy_http::operation::BuildError, > { Ok(crate::input::TestInvokeMethodInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, path_with_query_string: self.path_with_query_string, body: self.body, headers: self.headers, @@ -16793,15 +19225,67 @@ impl TestInvokeMethodInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16809,7 +19293,7 @@ impl TestInvokeMethodInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16873,7 +19357,7 @@ pub mod untag_resource_input { ) -> std::result::Result { Ok(crate::input::UntagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tag_keys: self.tag_keys, }) } @@ -16943,13 +19427,27 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -16965,7 +19463,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -17093,8 +19591,9 @@ impl UpdateAccountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/account").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/account").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17102,7 +19601,7 @@ impl UpdateAccountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17167,7 +19666,7 @@ pub mod update_api_key_input { ) -> std::result::Result { Ok(crate::input::UpdateApiKeyInput { - api_key: self.api_key.unwrap_or_default(), + api_key: self.api_key, patch_operations: self.patch_operations, }) } @@ -17240,13 +19739,26 @@ impl UpdateApiKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/apikeys/{apiKey}", - apiKey = smithy_http::label::fmt_string(&self.api_key, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let api_key = { + let input = &self.api_key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "api_key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/apikeys/{apiKey}", apiKey = api_key).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17254,7 +19766,7 @@ impl UpdateApiKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17334,8 +19846,8 @@ pub mod update_authorizer_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateAuthorizerInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - authorizer_id: self.authorizer_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + authorizer_id: self.authorizer_id, patch_operations: self.patch_operations, }) } @@ -17407,14 +19919,49 @@ impl UpdateAuthorizerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let authorizer_id = { + let input = &self.authorizer_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "authorizer_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/authorizers/{authorizerId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - authorizerId = smithy_http::label::fmt_string(&self.authorizer_id, false) + restApiId = rest_api_id, + authorizerId = authorizer_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17422,7 +19969,7 @@ impl UpdateAuthorizerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17500,8 +20047,8 @@ pub mod update_base_path_mapping_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateBasePathMappingInput { - domain_name: self.domain_name.unwrap_or_default(), - base_path: self.base_path.unwrap_or_default(), + domain_name: self.domain_name, + base_path: self.base_path, patch_operations: self.patch_operations, }) } @@ -17574,14 +20121,49 @@ impl UpdateBasePathMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let base_path = { + let input = &self.base_path; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "base_path", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}/basepathmappings/{basePath}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false), - basePath = smithy_http::label::fmt_string(&self.base_path, false) + domainName = domain_name, + basePath = base_path ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17589,7 +20171,7 @@ impl UpdateBasePathMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17659,7 +20241,7 @@ pub mod update_client_certificate_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateClientCertificateInput { - client_certificate_id: self.client_certificate_id.unwrap_or_default(), + client_certificate_id: self.client_certificate_id, patch_operations: self.patch_operations, }) } @@ -17733,14 +20315,31 @@ impl UpdateClientCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let client_certificate_id = { + let input = &self.client_certificate_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "client_certificate_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/clientcertificates/{clientCertificateId}", - clientCertificateId = - smithy_http::label::fmt_string(&self.client_certificate_id, false) + clientCertificateId = client_certificate_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17748,7 +20347,7 @@ impl UpdateClientCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17828,8 +20427,8 @@ pub mod update_deployment_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateDeploymentInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - deployment_id: self.deployment_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + deployment_id: self.deployment_id, patch_operations: self.patch_operations, }) } @@ -17901,14 +20500,49 @@ impl UpdateDeploymentInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let deployment_id = { + let input = &self.deployment_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "deployment_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/deployments/{deploymentId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - deploymentId = smithy_http::label::fmt_string(&self.deployment_id, false) + restApiId = rest_api_id, + deploymentId = deployment_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17916,7 +20550,7 @@ impl UpdateDeploymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17996,8 +20630,8 @@ pub mod update_documentation_part_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateDocumentationPartInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_part_id: self.documentation_part_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_part_id: self.documentation_part_id, patch_operations: self.patch_operations, }) } @@ -18071,15 +20705,49 @@ impl UpdateDocumentationPartInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_part_id = { + let input = &self.documentation_part_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_part_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/parts/{documentationPartId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationPartId = - smithy_http::label::fmt_string(&self.documentation_part_id, false) + restApiId = rest_api_id, + documentationPartId = documentation_part_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18087,7 +20755,7 @@ impl UpdateDocumentationPartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18167,8 +20835,8 @@ pub mod update_documentation_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateDocumentationVersionInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - documentation_version: self.documentation_version.unwrap_or_default(), + rest_api_id: self.rest_api_id, + documentation_version: self.documentation_version, patch_operations: self.patch_operations, }) } @@ -18243,15 +20911,49 @@ impl UpdateDocumentationVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let documentation_version = { + let input = &self.documentation_version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "documentation_version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/documentation/versions/{documentationVersion}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - documentationVersion = - smithy_http::label::fmt_string(&self.documentation_version, false) + restApiId = rest_api_id, + documentationVersion = documentation_version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18259,7 +20961,7 @@ impl UpdateDocumentationVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18326,7 +21028,7 @@ pub mod update_domain_name_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateDomainNameInput { - domain_name: self.domain_name.unwrap_or_default(), + domain_name: self.domain_name, patch_operations: self.patch_operations, }) } @@ -18399,13 +21101,31 @@ impl UpdateDomainNameInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain_name = { + let input = &self.domain_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/domainnames/{domainName}", - domainName = smithy_http::label::fmt_string(&self.domain_name, false) + domainName = domain_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18413,7 +21133,7 @@ impl UpdateDomainNameInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18492,20 +21212,11 @@ pub mod update_gateway_response_input { crate::input::UpdateGatewayResponseInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::UpdateGatewayResponseInput { - rest_api_id: self.rest_api_id - .unwrap_or_default() - , - response_type: self.response_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "response_type", details: "response_type was not specified but it is required when building UpdateGatewayResponseInput"} - )? - , - patch_operations: self.patch_operations - , - } - ) + Ok(crate::input::UpdateGatewayResponseInput { + rest_api_id: self.rest_api_id, + response_type: self.response_type, + patch_operations: self.patch_operations, + }) } } } @@ -18576,14 +21287,49 @@ impl UpdateGatewayResponseInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let response_type = { + let input = &self.response_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "response_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/gatewayresponses/{responseType}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - responseType = smithy_http::label::fmt_string(&self.response_type, false) + restApiId = rest_api_id, + responseType = response_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18591,7 +21337,7 @@ impl UpdateGatewayResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18678,9 +21424,9 @@ pub mod update_integration_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateIntegrationInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, patch_operations: self.patch_operations, }) } @@ -18753,15 +21499,67 @@ impl UpdateIntegrationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18769,7 +21567,7 @@ impl UpdateIntegrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18866,10 +21664,10 @@ pub mod update_integration_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateIntegrationResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, patch_operations: self.patch_operations, }) } @@ -18943,8 +21741,77 @@ impl UpdateIntegrationResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18952,7 +21819,7 @@ impl UpdateIntegrationResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19037,9 +21904,9 @@ pub mod update_method_input { ) -> std::result::Result { Ok(crate::input::UpdateMethodInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, patch_operations: self.patch_operations, }) } @@ -19112,15 +21979,67 @@ impl UpdateMethodInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false), - httpMethod = smithy_http::label::fmt_string(&self.http_method, false) + restApiId = rest_api_id, + resourceId = resource_id, + httpMethod = http_method ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19128,7 +22047,7 @@ impl UpdateMethodInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19225,10 +22144,10 @@ pub mod update_method_response_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateMethodResponseInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), - http_method: self.http_method.unwrap_or_default(), - status_code: self.status_code.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, + http_method: self.http_method, + status_code: self.status_code, patch_operations: self.patch_operations, }) } @@ -19301,8 +22220,77 @@ impl UpdateMethodResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), resourceId = smithy_http::label::fmt_string(&self.resource_id, false), httpMethod = smithy_http::label::fmt_string(&self.http_method, false), statusCode = smithy_http::label::fmt_string(&self.status_code, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let http_method = { + let input = &self.http_method; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "http_method", + details: "cannot be empty or unset", + }); + } + formatted + }; + let status_code = { + let input = &self.status_code; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "status_code", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", restApiId = rest_api_id, resourceId = resource_id, httpMethod = http_method, statusCode = status_code).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19310,7 +22298,7 @@ impl UpdateMethodResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19385,8 +22373,8 @@ pub mod update_model_input { ) -> std::result::Result { Ok(crate::input::UpdateModelInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - model_name: self.model_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + model_name: self.model_name, patch_operations: self.patch_operations, }) } @@ -19459,14 +22447,49 @@ impl UpdateModelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let model_name = { + let input = &self.model_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "model_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/models/{modelName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - modelName = smithy_http::label::fmt_string(&self.model_name, false) + restApiId = rest_api_id, + modelName = model_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19474,7 +22497,7 @@ impl UpdateModelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19554,8 +22577,8 @@ pub mod update_request_validator_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateRequestValidatorInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - request_validator_id: self.request_validator_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + request_validator_id: self.request_validator_id, patch_operations: self.patch_operations, }) } @@ -19628,14 +22651,49 @@ impl UpdateRequestValidatorInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let request_validator_id = { + let input = &self.request_validator_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "request_validator_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - requestValidatorId = smithy_http::label::fmt_string(&self.request_validator_id, false) + restApiId = rest_api_id, + requestValidatorId = request_validator_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19643,7 +22701,7 @@ impl UpdateRequestValidatorInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19720,8 +22778,8 @@ pub mod update_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateResourceInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - resource_id: self.resource_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, + resource_id: self.resource_id, patch_operations: self.patch_operations, }) } @@ -19793,14 +22851,49 @@ impl UpdateResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/resources/{resourceId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - resourceId = smithy_http::label::fmt_string(&self.resource_id, false) + restApiId = rest_api_id, + resourceId = resource_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19808,7 +22901,7 @@ impl UpdateResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19873,7 +22966,7 @@ pub mod update_rest_api_input { ) -> std::result::Result { Ok(crate::input::UpdateRestApiInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), + rest_api_id: self.rest_api_id, patch_operations: self.patch_operations, }) } @@ -19945,13 +23038,27 @@ impl UpdateRestApiInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/restapis/{restApiId}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/restapis/{restApiId}", restApiId = rest_api_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19959,7 +23066,7 @@ impl UpdateRestApiInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20034,8 +23141,8 @@ pub mod update_stage_input { ) -> std::result::Result { Ok(crate::input::UpdateStageInput { - rest_api_id: self.rest_api_id.unwrap_or_default(), - stage_name: self.stage_name.unwrap_or_default(), + rest_api_id: self.rest_api_id, + stage_name: self.stage_name, patch_operations: self.patch_operations, }) } @@ -20108,14 +23215,49 @@ impl UpdateStageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let rest_api_id = { + let input = &self.rest_api_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "rest_api_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stage_name = { + let input = &self.stage_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stage_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/restapis/{restApiId}/stages/{stageName}", - restApiId = smithy_http::label::fmt_string(&self.rest_api_id, false), - stageName = smithy_http::label::fmt_string(&self.stage_name, false) + restApiId = rest_api_id, + stageName = stage_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20123,7 +23265,7 @@ impl UpdateStageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20201,8 +23343,8 @@ pub mod update_usage_input { ) -> std::result::Result { Ok(crate::input::UpdateUsageInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), - key_id: self.key_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, + key_id: self.key_id, patch_operations: self.patch_operations, }) } @@ -20275,14 +23417,49 @@ impl UpdateUsageInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key_id = { + let input = &self.key_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}/keys/{keyId}/usage", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false), - keyId = smithy_http::label::fmt_string(&self.key_id, false) + usagePlanId = usage_plan_id, + keyId = key_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20290,7 +23467,7 @@ impl UpdateUsageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20360,7 +23537,7 @@ pub mod update_usage_plan_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateUsagePlanInput { - usage_plan_id: self.usage_plan_id.unwrap_or_default(), + usage_plan_id: self.usage_plan_id, patch_operations: self.patch_operations, }) } @@ -20432,13 +23609,31 @@ impl UpdateUsagePlanInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let usage_plan_id = { + let input = &self.usage_plan_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "usage_plan_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/usageplans/{usagePlanId}", - usagePlanId = smithy_http::label::fmt_string(&self.usage_plan_id, false) + usagePlanId = usage_plan_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20446,7 +23641,7 @@ impl UpdateUsagePlanInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20511,7 +23706,7 @@ pub mod update_vpc_link_input { ) -> std::result::Result { Ok(crate::input::UpdateVpcLinkInput { - vpc_link_id: self.vpc_link_id.unwrap_or_default(), + vpc_link_id: self.vpc_link_id, patch_operations: self.patch_operations, }) } @@ -20583,13 +23778,27 @@ impl UpdateVpcLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/vpclinks/{vpcLinkId}", - vpcLinkId = smithy_http::label::fmt_string(&self.vpc_link_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let vpc_link_id = { + let input = &self.vpc_link_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "vpc_link_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/vpclinks/{vpcLinkId}", vpcLinkId = vpc_link_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20597,7 +23806,7 @@ impl UpdateVpcLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20628,7 +23837,7 @@ impl UpdateVpcLinkInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateVpcLinkInput { ///

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

- pub vpc_link_id: std::string::String, + pub vpc_link_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20646,7 +23855,7 @@ impl std::fmt::Debug for UpdateVpcLinkInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateUsagePlanInput { ///

[Required] The Id of the to-be-updated usage plan.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20664,9 +23873,9 @@ impl std::fmt::Debug for UpdateUsagePlanInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateUsageInput { ///

[Required] The Id of the usage plan associated with the usage data.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

[Required] The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.

- pub key_id: std::string::String, + pub key_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20685,9 +23894,9 @@ impl std::fmt::Debug for UpdateUsageInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateStageInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the Stage resource to change information about.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20706,7 +23915,7 @@ impl std::fmt::Debug for UpdateStageInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateRestApiInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20724,9 +23933,9 @@ impl std::fmt::Debug for UpdateRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateResourceInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Resource resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20745,9 +23954,9 @@ impl std::fmt::Debug for UpdateResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateRequestValidatorInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of RequestValidator to be updated.

- pub request_validator_id: std::string::String, + pub request_validator_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20766,9 +23975,9 @@ impl std::fmt::Debug for UpdateRequestValidatorInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateModelInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the model to update.

- pub model_name: std::string::String, + pub model_name: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20787,13 +23996,13 @@ impl std::fmt::Debug for UpdateModelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateMethodResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the MethodResponse resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] The status code for the MethodResponse resource.

- pub status_code: std::string::String, + pub status_code: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20814,11 +24023,11 @@ impl std::fmt::Debug for UpdateMethodResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateMethodInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the Method resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20838,13 +24047,13 @@ impl std::fmt::Debug for UpdateMethodInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateIntegrationResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies an update integration response request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies an update integration response request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] Specifies an update integration response request's status code.

- pub status_code: std::string::String, + pub status_code: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20865,11 +24074,11 @@ impl std::fmt::Debug for UpdateIntegrationResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateIntegrationInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Represents an update integration request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Represents an update integration request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20889,9 +24098,9 @@ impl std::fmt::Debug for UpdateIntegrationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateGatewayResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

- pub response_type: crate::model::GatewayResponseType, + pub response_type: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20910,7 +24119,7 @@ impl std::fmt::Debug for UpdateGatewayResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateDomainNameInput { ///

[Required] The name of the DomainName resource to be changed.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20928,9 +24137,9 @@ impl std::fmt::Debug for UpdateDomainNameInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateDocumentationVersionInput { ///

[Required] The string identifier of the associated RestApi..

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The version identifier of the to-be-updated documentation version.

- pub documentation_version: std::string::String, + pub documentation_version: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20949,9 +24158,9 @@ impl std::fmt::Debug for UpdateDocumentationVersionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateDocumentationPartInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the to-be-updated documentation part.

- pub documentation_part_id: std::string::String, + pub documentation_part_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20970,9 +24179,9 @@ impl std::fmt::Debug for UpdateDocumentationPartInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateDeploymentInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The replacement identifier for the Deployment resource to change information about.

- pub deployment_id: std::string::String, + pub deployment_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -20991,7 +24200,7 @@ impl std::fmt::Debug for UpdateDeploymentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateClientCertificateInput { ///

[Required] The identifier of the ClientCertificate resource to be updated.

- pub client_certificate_id: std::string::String, + pub client_certificate_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -21009,10 +24218,10 @@ impl std::fmt::Debug for UpdateClientCertificateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateBasePathMappingInput { ///

[Required] The domain name of the BasePathMapping resource to change.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

[Required] The base path of the BasePathMapping resource to change.

///

To specify an empty base path, set this parameter to '(none)'.

- pub base_path: std::string::String, + pub base_path: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -21031,9 +24240,9 @@ impl std::fmt::Debug for UpdateBasePathMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateAuthorizerInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Authorizer resource.

- pub authorizer_id: std::string::String, + pub authorizer_id: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -21052,7 +24261,7 @@ impl std::fmt::Debug for UpdateAuthorizerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateApiKeyInput { ///

[Required] The identifier of the ApiKey resource to be updated.

- pub api_key: std::string::String, + pub api_key: std::option::Option, ///

A list of update operations to be applied to the specified resource and in the order specified in this list.

pub patch_operations: std::option::Option>, } @@ -21085,7 +24294,7 @@ impl std::fmt::Debug for UpdateAccountInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UntagResourceInput { ///

[Required] The ARN of a resource that can be tagged.

- pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

[Required] The Tag keys to delete.

pub tag_keys: std::option::Option>, } @@ -21103,11 +24312,11 @@ impl std::fmt::Debug for UntagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TestInvokeMethodInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a test invoke method request's resource ID.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a test invoke method request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

pub path_with_query_string: std::option::Option, ///

The simulated request body of an incoming invocation request.

@@ -21146,9 +24355,9 @@ impl std::fmt::Debug for TestInvokeMethodInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TestInvokeAuthorizerInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a test invoke authorizer request's Authorizer ID.

- pub authorizer_id: std::string::String, + pub authorizer_id: std::option::Option, ///

[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

pub headers: std::option::Option>, @@ -21187,7 +24396,7 @@ impl std::fmt::Debug for TestInvokeAuthorizerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TagResourceInput { ///

[Required] The ARN of a resource that can be tagged.

- pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

[Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

pub tags: std::option::Option>, @@ -21206,7 +24415,7 @@ impl std::fmt::Debug for TagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutRestApiInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The mode query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, /// the update mode is "merge".

pub mode: std::option::Option, @@ -21236,13 +24445,13 @@ impl std::fmt::Debug for PutRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutMethodResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the Method resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] The method response's status code.

- pub status_code: std::string::String, + pub status_code: std::option::Option, ///

A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

pub response_parameters: std::option::Option>, @@ -21268,11 +24477,11 @@ impl std::fmt::Debug for PutMethodResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutMethodInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the new Method resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies the method request's HTTP method type.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

pub authorization_type: std::option::Option, ///

Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when you created the authorizer.

@@ -21315,13 +24524,13 @@ impl std::fmt::Debug for PutMethodInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutIntegrationResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a put integration response request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a put integration response request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] Specifies the status code that is used to map the integration response to an existing MethodResponse.

- pub status_code: std::string::String, + pub status_code: std::option::Option, ///

Specifies the selection pattern of a put integration response.

pub selection_pattern: std::option::Option, ///

A key-value map specifying response parameters that are passed to the method response from the back end. @@ -21359,11 +24568,11 @@ impl std::fmt::Debug for PutIntegrationResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutIntegrationInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a put integration request's resource ID.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a put integration request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] Specifies a put integration input's type.

pub r#type: std::option::Option, ///

Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.

@@ -21439,9 +24648,9 @@ impl std::fmt::Debug for PutIntegrationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutGatewayResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

- pub response_type: crate::model::GatewayResponseType, + pub response_type: std::option::Option, /// The HTTP status code of the GatewayResponse. pub status_code: std::option::Option, ///

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

@@ -21498,7 +24707,7 @@ impl std::fmt::Debug for ImportRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImportDocumentationPartsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

pub mode: std::option::Option, ///

A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

@@ -21561,7 +24770,7 @@ impl std::fmt::Debug for GetVpcLinksInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetVpcLinkInput { ///

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

- pub vpc_link_id: std::string::String, + pub vpc_link_id: std::option::Option, } impl std::fmt::Debug for GetVpcLinkInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21597,7 +24806,7 @@ impl std::fmt::Debug for GetUsagePlansInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetUsagePlanKeysInput { ///

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -21621,9 +24830,9 @@ impl std::fmt::Debug for GetUsagePlanKeysInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetUsagePlanKeyInput { ///

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

[Required] The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.

- pub key_id: std::string::String, + pub key_id: std::option::Option, } impl std::fmt::Debug for GetUsagePlanKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21639,7 +24848,7 @@ impl std::fmt::Debug for GetUsagePlanKeyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetUsagePlanInput { ///

[Required] The identifier of the UsagePlan resource to be retrieved.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, } impl std::fmt::Debug for GetUsagePlanInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21654,7 +24863,7 @@ impl std::fmt::Debug for GetUsagePlanInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetUsageInput { ///

[Required] The Id of the usage plan associated with the usage data.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

The Id of the API key associated with the resultant usage data.

pub key_id: std::option::Option, ///

[Required] The starting date (e.g., 2016-01-01) of the usage data.

@@ -21684,7 +24893,7 @@ impl std::fmt::Debug for GetUsageInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetTagsInput { ///

[Required] The ARN of a resource that can be tagged.

- pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

(Not currently supported) The current pagination position in the paged result set.

pub position: std::option::Option, ///

(Not currently supported) The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -21705,7 +24914,7 @@ impl std::fmt::Debug for GetTagsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetStagesInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The stages' deployment identifiers.

pub deployment_id: std::option::Option, } @@ -21723,9 +24932,9 @@ impl std::fmt::Debug for GetStagesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetStageInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the Stage resource to get information about.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, } impl std::fmt::Debug for GetStageInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21759,7 +24968,7 @@ impl std::fmt::Debug for GetSdkTypesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetSdkTypeInput { ///

[Required] The identifier of the queried SdkType instance.

- pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetSdkTypeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21774,11 +24983,11 @@ impl std::fmt::Debug for GetSdkTypeInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetSdkInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the Stage that the SDK will use.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, ///

[Required] The language for the generated SDK. Currently java, javascript, android, objectivec (for iOS), swift (for iOS), and ruby are supported.

- pub sdk_type: std::string::String, + pub sdk_type: std::option::Option, ///

A string-to-string key-value map of query parameters sdkType-dependent properties of the SDK. For sdkType of objectivec or swift, a parameter named classPrefix is required. For sdkType of android, parameters named groupId, artifactId, artifactVersion, and invokerPackage are required. For sdkType of java, parameters named serviceName and javaPackageName are required.

pub parameters: std::option::Option>, @@ -21817,7 +25026,7 @@ impl std::fmt::Debug for GetRestApisInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetRestApiInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, } impl std::fmt::Debug for GetRestApiInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21832,7 +25041,7 @@ impl std::fmt::Debug for GetRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetResourcesInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -21856,9 +25065,9 @@ impl std::fmt::Debug for GetResourcesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetResourceInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier for the Resource resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.

pub embed: std::option::Option>, } @@ -21877,7 +25086,7 @@ impl std::fmt::Debug for GetResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetRequestValidatorsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -21898,9 +25107,9 @@ impl std::fmt::Debug for GetRequestValidatorsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetRequestValidatorInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the RequestValidator to be retrieved.

- pub request_validator_id: std::string::String, + pub request_validator_id: std::option::Option, } impl std::fmt::Debug for GetRequestValidatorInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21916,9 +25125,9 @@ impl std::fmt::Debug for GetRequestValidatorInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetModelTemplateInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the model for which to generate a template.

- pub model_name: std::string::String, + pub model_name: std::option::Option, } impl std::fmt::Debug for GetModelTemplateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21934,7 +25143,7 @@ impl std::fmt::Debug for GetModelTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetModelsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -21955,9 +25164,9 @@ impl std::fmt::Debug for GetModelsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetModelInput { ///

[Required] The RestApi identifier under which the Model exists.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the model as an identifier.

- pub model_name: std::string::String, + pub model_name: std::option::Option, ///

A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.

pub flatten: bool, } @@ -21976,13 +25185,13 @@ impl std::fmt::Debug for GetModelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetMethodResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the MethodResponse resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] The status code for the MethodResponse resource.

- pub status_code: std::string::String, + pub status_code: std::option::Option, } impl std::fmt::Debug for GetMethodResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22000,11 +25209,11 @@ impl std::fmt::Debug for GetMethodResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetMethodInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the Method resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies the method request's HTTP method type.

- pub http_method: std::string::String, + pub http_method: std::option::Option, } impl std::fmt::Debug for GetMethodInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22021,13 +25230,13 @@ impl std::fmt::Debug for GetMethodInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetIntegrationResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a get integration response request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a get integration response request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] Specifies a get integration response request's status code.

- pub status_code: std::string::String, + pub status_code: std::option::Option, } impl std::fmt::Debug for GetIntegrationResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22045,11 +25254,11 @@ impl std::fmt::Debug for GetIntegrationResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetIntegrationInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a get integration request's resource identifier

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a get integration request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, } impl std::fmt::Debug for GetIntegrationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22066,7 +25275,7 @@ impl std::fmt::Debug for GetIntegrationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetGatewayResponsesInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500. The GatewayResponses collection does not support pagination and the limit does not apply here.

@@ -22087,9 +25296,9 @@ impl std::fmt::Debug for GetGatewayResponsesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetGatewayResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

- pub response_type: crate::model::GatewayResponseType, + pub response_type: std::option::Option, } impl std::fmt::Debug for GetGatewayResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22105,11 +25314,11 @@ impl std::fmt::Debug for GetGatewayResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetExportInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the Stage that will be exported.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, ///

[Required] The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.

- pub export_type: std::string::String, + pub export_type: std::option::Option, ///

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool

pub parameters: std::option::Option>, @@ -22151,7 +25360,7 @@ impl std::fmt::Debug for GetDomainNamesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDomainNameInput { ///

[Required] The name of the DomainName resource.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, } impl std::fmt::Debug for GetDomainNameInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22166,7 +25375,7 @@ impl std::fmt::Debug for GetDomainNameInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDocumentationVersionsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -22187,9 +25396,9 @@ impl std::fmt::Debug for GetDocumentationVersionsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDocumentationVersionInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The version identifier of the to-be-retrieved documentation snapshot.

- pub documentation_version: std::string::String, + pub documentation_version: std::option::Option, } impl std::fmt::Debug for GetDocumentationVersionInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22205,7 +25414,7 @@ impl std::fmt::Debug for GetDocumentationVersionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDocumentationPartsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The type of API entities of the to-be-retrieved documentation parts.

pub r#type: std::option::Option, ///

The name of API entities of the to-be-retrieved documentation parts.

@@ -22238,9 +25447,9 @@ impl std::fmt::Debug for GetDocumentationPartsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDocumentationPartInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The string identifier of the associated RestApi.

- pub documentation_part_id: std::string::String, + pub documentation_part_id: std::option::Option, } impl std::fmt::Debug for GetDocumentationPartInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22256,7 +25465,7 @@ impl std::fmt::Debug for GetDocumentationPartInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDeploymentsInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -22277,9 +25486,9 @@ impl std::fmt::Debug for GetDeploymentsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDeploymentInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Deployment resource to get information about.

- pub deployment_id: std::string::String, + pub deployment_id: std::option::Option, ///

A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this embed parameter value is a list of comma-separated strings, as in GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the "apisummary" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.

pub embed: std::option::Option>, } @@ -22316,7 +25525,7 @@ impl std::fmt::Debug for GetClientCertificatesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetClientCertificateInput { ///

[Required] The identifier of the ClientCertificate resource to be described.

- pub client_certificate_id: std::string::String, + pub client_certificate_id: std::option::Option, } impl std::fmt::Debug for GetClientCertificateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22331,7 +25540,7 @@ impl std::fmt::Debug for GetClientCertificateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBasePathMappingsInput { ///

[Required] The domain name of a BasePathMapping resource.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -22352,9 +25561,9 @@ impl std::fmt::Debug for GetBasePathMappingsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBasePathMappingInput { ///

[Required] The domain name of the BasePathMapping resource to be described.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

[Required] The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify any base path name after the domain name.

- pub base_path: std::string::String, + pub base_path: std::option::Option, } impl std::fmt::Debug for GetBasePathMappingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22370,7 +25579,7 @@ impl std::fmt::Debug for GetBasePathMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetAuthorizersInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The current pagination position in the paged result set.

pub position: std::option::Option, ///

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

@@ -22391,9 +25600,9 @@ impl std::fmt::Debug for GetAuthorizersInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetAuthorizerInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Authorizer resource.

- pub authorizer_id: std::string::String, + pub authorizer_id: std::option::Option, } impl std::fmt::Debug for GetAuthorizerInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22436,7 +25645,7 @@ impl std::fmt::Debug for GetApiKeysInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetApiKeyInput { ///

[Required] The identifier of the ApiKey resource.

- pub api_key: std::string::String, + pub api_key: std::option::Option, ///

A boolean flag to specify whether (true) or not (false) the result contains the key value.

pub include_value: std::option::Option, } @@ -22484,9 +25693,9 @@ impl std::fmt::Debug for GenerateClientCertificateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FlushStageCacheInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the stage to flush its cache.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, } impl std::fmt::Debug for FlushStageCacheInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22502,9 +25711,9 @@ impl std::fmt::Debug for FlushStageCacheInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FlushStageAuthorizersCacheInput { ///

The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The name of the stage to flush.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, } impl std::fmt::Debug for FlushStageAuthorizersCacheInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22520,7 +25729,7 @@ impl std::fmt::Debug for FlushStageAuthorizersCacheInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteVpcLinkInput { ///

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

- pub vpc_link_id: std::string::String, + pub vpc_link_id: std::option::Option, } impl std::fmt::Debug for DeleteVpcLinkInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22535,9 +25744,9 @@ impl std::fmt::Debug for DeleteVpcLinkInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteUsagePlanKeyInput { ///

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

[Required] The Id of the UsagePlanKey resource to be deleted.

- pub key_id: std::string::String, + pub key_id: std::option::Option, } impl std::fmt::Debug for DeleteUsagePlanKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22553,7 +25762,7 @@ impl std::fmt::Debug for DeleteUsagePlanKeyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteUsagePlanInput { ///

[Required] The Id of the to-be-deleted usage plan.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, } impl std::fmt::Debug for DeleteUsagePlanInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22568,9 +25777,9 @@ impl std::fmt::Debug for DeleteUsagePlanInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteStageInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the Stage resource to delete.

- pub stage_name: std::string::String, + pub stage_name: std::option::Option, } impl std::fmt::Debug for DeleteStageInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22586,7 +25795,7 @@ impl std::fmt::Debug for DeleteStageInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteRestApiInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, } impl std::fmt::Debug for DeleteRestApiInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22601,9 +25810,9 @@ impl std::fmt::Debug for DeleteRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteResourceInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Resource resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, } impl std::fmt::Debug for DeleteResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22619,9 +25828,9 @@ impl std::fmt::Debug for DeleteResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteRequestValidatorInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the RequestValidator to be deleted.

- pub request_validator_id: std::string::String, + pub request_validator_id: std::option::Option, } impl std::fmt::Debug for DeleteRequestValidatorInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22637,9 +25846,9 @@ impl std::fmt::Debug for DeleteRequestValidatorInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteModelInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the model to delete.

- pub model_name: std::string::String, + pub model_name: std::option::Option, } impl std::fmt::Debug for DeleteModelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22655,13 +25864,13 @@ impl std::fmt::Debug for DeleteModelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteMethodResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the MethodResponse resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] The status code identifier for the MethodResponse resource.

- pub status_code: std::string::String, + pub status_code: std::option::Option, } impl std::fmt::Debug for DeleteMethodResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22679,11 +25888,11 @@ impl std::fmt::Debug for DeleteMethodResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteMethodInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The Resource identifier for the Method resource.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] The HTTP verb of the Method resource.

- pub http_method: std::string::String, + pub http_method: std::option::Option, } impl std::fmt::Debug for DeleteMethodInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22700,13 +25909,13 @@ impl std::fmt::Debug for DeleteMethodInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteIntegrationResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a delete integration response request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a delete integration response request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, ///

[Required] Specifies a delete integration response request's status code.

- pub status_code: std::string::String, + pub status_code: std::option::Option, } impl std::fmt::Debug for DeleteIntegrationResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22724,11 +25933,11 @@ impl std::fmt::Debug for DeleteIntegrationResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteIntegrationInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] Specifies a delete integration request's resource identifier.

- pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

[Required] Specifies a delete integration request's HTTP method.

- pub http_method: std::string::String, + pub http_method: std::option::Option, } impl std::fmt::Debug for DeleteIntegrationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22745,9 +25954,9 @@ impl std::fmt::Debug for DeleteIntegrationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteGatewayResponseInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

- pub response_type: crate::model::GatewayResponseType, + pub response_type: std::option::Option, } impl std::fmt::Debug for DeleteGatewayResponseInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22763,7 +25972,7 @@ impl std::fmt::Debug for DeleteGatewayResponseInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteDomainNameInput { ///

[Required] The name of the DomainName resource to be deleted.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, } impl std::fmt::Debug for DeleteDomainNameInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22778,9 +25987,9 @@ impl std::fmt::Debug for DeleteDomainNameInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteDocumentationVersionInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The version identifier of a to-be-deleted documentation snapshot.

- pub documentation_version: std::string::String, + pub documentation_version: std::option::Option, } impl std::fmt::Debug for DeleteDocumentationVersionInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22796,9 +26005,9 @@ impl std::fmt::Debug for DeleteDocumentationVersionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteDocumentationPartInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the to-be-deleted documentation part.

- pub documentation_part_id: std::string::String, + pub documentation_part_id: std::option::Option, } impl std::fmt::Debug for DeleteDocumentationPartInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22814,9 +26023,9 @@ impl std::fmt::Debug for DeleteDocumentationPartInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteDeploymentInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Deployment resource to delete.

- pub deployment_id: std::string::String, + pub deployment_id: std::option::Option, } impl std::fmt::Debug for DeleteDeploymentInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22832,7 +26041,7 @@ impl std::fmt::Debug for DeleteDeploymentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteClientCertificateInput { ///

[Required] The identifier of the ClientCertificate resource to be deleted.

- pub client_certificate_id: std::string::String, + pub client_certificate_id: std::option::Option, } impl std::fmt::Debug for DeleteClientCertificateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22847,10 +26056,10 @@ impl std::fmt::Debug for DeleteClientCertificateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBasePathMappingInput { ///

[Required] The domain name of the BasePathMapping resource to delete.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

[Required] The base path name of the BasePathMapping resource to delete.

///

To specify an empty base path, set this parameter to '(none)'.

- pub base_path: std::string::String, + pub base_path: std::option::Option, } impl std::fmt::Debug for DeleteBasePathMappingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22866,9 +26075,9 @@ impl std::fmt::Debug for DeleteBasePathMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteAuthorizerInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The identifier of the Authorizer resource.

- pub authorizer_id: std::string::String, + pub authorizer_id: std::option::Option, } impl std::fmt::Debug for DeleteAuthorizerInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22884,7 +26093,7 @@ impl std::fmt::Debug for DeleteAuthorizerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteApiKeyInput { ///

[Required] The identifier of the ApiKey resource to be deleted.

- pub api_key: std::string::String, + pub api_key: std::option::Option, } impl std::fmt::Debug for DeleteApiKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -22924,7 +26133,7 @@ impl std::fmt::Debug for CreateVpcLinkInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateUsagePlanKeyInput { ///

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.

- pub usage_plan_id: std::string::String, + pub usage_plan_id: std::option::Option, ///

[Required] The identifier of a UsagePlanKey resource for a plan customer.

pub key_id: std::option::Option, ///

[Required] The type of a UsagePlanKey resource for a plan customer.

@@ -22976,7 +26185,7 @@ impl std::fmt::Debug for CreateUsagePlanInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateStageInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

pub stage_name: std::option::Option, ///

[Required] The identifier of the Deployment resource for the Stage resource.

@@ -23074,9 +26283,9 @@ impl std::fmt::Debug for CreateRestApiInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateResourceInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The parent resource's identifier.

- pub parent_id: std::string::String, + pub parent_id: std::option::Option, ///

The last path segment for this resource.

pub path_part: std::option::Option, } @@ -23095,7 +26304,7 @@ impl std::fmt::Debug for CreateResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateRequestValidatorInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The name of the to-be-created RequestValidator.

pub name: std::option::Option, ///

A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).

@@ -23122,7 +26331,7 @@ impl std::fmt::Debug for CreateRequestValidatorInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateModelInput { ///

[Required] The RestApi identifier under which the Model will be created.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the model. Must be alphanumeric.

pub name: std::option::Option, ///

The description of the model.

@@ -23198,7 +26407,7 @@ impl std::fmt::Debug for CreateDomainNameInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateDocumentationVersionInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The version identifier of the new snapshot.

pub documentation_version: std::option::Option, ///

The stage name to be associated with the new documentation snapshot.

@@ -23222,7 +26431,7 @@ impl std::fmt::Debug for CreateDocumentationVersionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateDocumentationPartInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The location of the targeted API entity of the to-be-created documentation part.

pub location: std::option::Option, ///

[Required] The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.

@@ -23243,7 +26452,7 @@ impl std::fmt::Debug for CreateDocumentationPartInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateDeploymentInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

The name of the Stage resource for the Deployment resource to create.

pub stage_name: std::option::Option, ///

The description of the Stage resource for the Deployment resource to create.

@@ -23285,7 +26494,7 @@ impl std::fmt::Debug for CreateDeploymentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateBasePathMappingInput { ///

[Required] The domain name of the BasePathMapping resource to create.

- pub domain_name: std::string::String, + pub domain_name: std::option::Option, ///

The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.

pub base_path: std::option::Option, ///

[Required] The string identifier of the associated RestApi.

@@ -23309,7 +26518,7 @@ impl std::fmt::Debug for CreateBasePathMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateAuthorizerInput { ///

[Required] The string identifier of the associated RestApi.

- pub rest_api_id: std::string::String, + pub rest_api_id: std::option::Option, ///

[Required] The name of the authorizer.

pub name: std::option::Option, ///

[Required] The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

diff --git a/sdk/apigateway/src/instant_epoch.rs b/sdk/apigateway/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/apigateway/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/apigateway/src/json_deser.rs b/sdk/apigateway/src/json_deser.rs index e7fe002d8d6f..359592b407fe 100644 --- a/sdk/apigateway/src/json_deser.rs +++ b/sdk/apigateway/src/json_deser.rs @@ -1,2130 +1,11255 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) -} - -pub fn bad_request_exception( - input: &[u8], - mut builder: crate::error::bad_request_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::BadRequestError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_bad_request_exceptionjson_err( + input: &[u8], + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn conflict_exception( +pub fn deser_structure_conflict_exceptionjson_err( input: &[u8], - mut builder: crate::error::conflict_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ConflictError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn limit_exceeded_exception( +pub fn deser_structure_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::limit_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LimitExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_retry_after_seconds(parsed_body.retry_after_seconds); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "retryAfterSeconds" => { + builder = builder.set_retry_after_seconds( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn not_found_exception( +pub fn deser_structure_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::NotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn too_many_requests_exception( +pub fn deser_structure_too_many_requests_exceptionjson_err( input: &[u8], - mut builder: crate::error::too_many_requests_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TooManyRequestsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_retry_after_seconds(parsed_body.retry_after_seconds); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::too_many_requests_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "retryAfterSeconds" => { + builder = builder.set_retry_after_seconds( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unauthorized_exception( +pub fn deser_structure_unauthorized_exceptionjson_err( input: &[u8], - mut builder: crate::error::unauthorized_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnauthorizedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::unauthorized_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_api_key_deser_operation( +pub fn deser_operation_create_api_key( input: &[u8], mut builder: crate::output::create_api_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateApiKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_value(parsed_body.value); - builder = builder.set_name(parsed_body.name); - builder = builder.set_customer_id(parsed_body.customer_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_enabled(Some(parsed_body.enabled)); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - builder = builder.set_stage_keys(parsed_body.stage_keys); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "customerId" => { + builder = builder.set_customer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stageKeys" => { + builder = builder + .set_stage_keys(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_authorizer_deser_operation( +pub fn deser_operation_create_authorizer( input: &[u8], mut builder: crate::output::create_authorizer_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAuthorizerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_provider_ar_ns(parsed_body.provider_ar_ns); - builder = builder.set_auth_type(parsed_body.auth_type); - builder = builder.set_authorizer_uri(parsed_body.authorizer_uri); - builder = builder.set_authorizer_credentials(parsed_body.authorizer_credentials); - builder = builder.set_identity_source(parsed_body.identity_source); - builder = - builder.set_identity_validation_expression(parsed_body.identity_validation_expression); - builder = - builder.set_authorizer_result_ttl_in_seconds(parsed_body.authorizer_result_ttl_in_seconds); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authType" => { + builder = builder.set_auth_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerCredentials" => { + builder = builder.set_authorizer_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerResultTtlInSeconds" => { + builder = builder.set_authorizer_result_ttl_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "authorizerUri" => { + builder = builder.set_authorizer_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identitySource" => { + builder = builder.set_identity_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identityValidationExpression" => { + builder = builder.set_identity_validation_expression( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "providerARNs" => { + builder = builder.set_provider_ar_ns( + crate::json_deser::deser_list_list_of_ar_ns(tokens)?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AuthorizerType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_base_path_mapping_deser_operation( +pub fn deser_operation_create_base_path_mapping( input: &[u8], mut builder: crate::output::create_base_path_mapping_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateBasePathMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_base_path(parsed_body.base_path); - builder = builder.set_rest_api_id(parsed_body.rest_api_id); - builder = builder.set_stage(parsed_body.stage); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "basePath" => { + builder = builder.set_base_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "restApiId" => { + builder = builder.set_rest_api_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stage" => { + builder = builder.set_stage( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_unavailable_exception( +pub fn deser_structure_service_unavailable_exceptionjson_err( input: &[u8], - mut builder: crate::error::service_unavailable_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceUnavailableError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_retry_after_seconds(parsed_body.retry_after_seconds); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::service_unavailable_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "retryAfterSeconds" => { + builder = builder.set_retry_after_seconds( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_deployment_deser_operation( +pub fn deser_operation_create_deployment( input: &[u8], mut builder: crate::output::create_deployment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateDeploymentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_api_summary(parsed_body.api_summary); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiSummary" => { + builder = builder.set_api_summary( + crate::json_deser::deser_map_path_to_map_of_method_snapshot(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_documentation_part_deser_operation( +pub fn deser_operation_create_documentation_part( input: &[u8], mut builder: crate::output::create_documentation_part_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateDocumentationPartOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_location(parsed_body.location); - builder = builder.set_properties(parsed_body.properties); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "location" => { + builder = builder.set_location( + crate::json_deser::deser_structure_documentation_part_location(tokens)?, + ); + } + "properties" => { + builder = builder.set_properties( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_documentation_version_deser_operation( +pub fn deser_operation_create_documentation_version( input: &[u8], mut builder: crate::output::create_documentation_version_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_documentation_version_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateDocumentationVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_version(parsed_body.version); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_description(parsed_body.description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_domain_name_deser_operation( +pub fn deser_operation_create_domain_name( input: &[u8], mut builder: crate::output::create_domain_name_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateDomainNameOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_name(parsed_body.domain_name); - builder = builder.set_certificate_name(parsed_body.certificate_name); - builder = builder.set_certificate_arn(parsed_body.certificate_arn); - builder = builder.set_certificate_upload_date(parsed_body.certificate_upload_date); - builder = builder.set_regional_domain_name(parsed_body.regional_domain_name); - builder = builder.set_regional_hosted_zone_id(parsed_body.regional_hosted_zone_id); - builder = builder.set_regional_certificate_name(parsed_body.regional_certificate_name); - builder = builder.set_regional_certificate_arn(parsed_body.regional_certificate_arn); - builder = builder.set_distribution_domain_name(parsed_body.distribution_domain_name); - builder = builder.set_distribution_hosted_zone_id(parsed_body.distribution_hosted_zone_id); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_domain_name_status(parsed_body.domain_name_status); - builder = builder.set_domain_name_status_message(parsed_body.domain_name_status_message); - builder = builder.set_security_policy(parsed_body.security_policy); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_mutual_tls_authentication(parsed_body.mutual_tls_authentication); - Ok(builder) -} - -pub fn create_model_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "certificateArn" => { + builder = builder.set_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateName" => { + builder = builder.set_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateUploadDate" => { + builder = builder.set_certificate_upload_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "distributionDomainName" => { + builder = builder.set_distribution_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distributionHostedZoneId" => { + builder = builder.set_distribution_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainNameStatus" => { + builder = builder.set_domain_name_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DomainNameStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "domainNameStatusMessage" => { + builder = builder.set_domain_name_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "mutualTlsAuthentication" => { + builder = builder.set_mutual_tls_authentication( + crate::json_deser::deser_structure_mutual_tls_authentication(tokens)?, + ); + } + "regionalCertificateArn" => { + builder = builder.set_regional_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalCertificateName" => { + builder = builder.set_regional_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalDomainName" => { + builder = builder.set_regional_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalHostedZoneId" => { + builder = builder.set_regional_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityPolicy" => { + builder = builder.set_security_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SecurityPolicy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_model( input: &[u8], mut builder: crate::output::create_model_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateModelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_schema(parsed_body.schema); - builder = builder.set_content_type(parsed_body.content_type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "schema" => { + builder = builder.set_schema( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_request_validator_deser_operation( +pub fn deser_operation_create_request_validator( input: &[u8], mut builder: crate::output::create_request_validator_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateRequestValidatorOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_validate_request_body(Some(parsed_body.validate_request_body)); - builder = - builder.set_validate_request_parameters(Some(parsed_body.validate_request_parameters)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validateRequestBody" => { + builder = builder.set_validate_request_body( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "validateRequestParameters" => { + builder = builder.set_validate_request_parameters( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_resource_deser_operation( +pub fn deser_operation_create_resource( input: &[u8], mut builder: crate::output::create_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_parent_id(parsed_body.parent_id); - builder = builder.set_path_part(parsed_body.path_part); - builder = builder.set_path(parsed_body.path); - builder = builder.set_resource_methods(parsed_body.resource_methods); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parentId" => { + builder = builder.set_parent_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "path" => { + builder = builder.set_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pathPart" => { + builder = builder.set_path_part( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceMethods" => { + builder = builder.set_resource_methods( + crate::json_deser::deser_map_map_of_method(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_rest_api_deser_operation( +pub fn deser_operation_create_rest_api( input: &[u8], mut builder: crate::output::create_rest_api_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateRestApiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(parsed_body.version); - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_binary_media_types(parsed_body.binary_media_types); - builder = builder.set_minimum_compression_size(parsed_body.minimum_compression_size); - builder = builder.set_api_key_source(parsed_body.api_key_source); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_tags(parsed_body.tags); - builder = - builder.set_disable_execute_api_endpoint(Some(parsed_body.disable_execute_api_endpoint)); - Ok(builder) -} - -pub fn create_stage_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ApiKeySourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_stage( input: &[u8], mut builder: crate::output::create_stage_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateStageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deployment_id(parsed_body.deployment_id); - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_stage_name(parsed_body.stage_name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_cache_cluster_enabled(Some(parsed_body.cache_cluster_enabled)); - builder = builder.set_cache_cluster_size(parsed_body.cache_cluster_size); - builder = builder.set_cache_cluster_status(parsed_body.cache_cluster_status); - builder = builder.set_method_settings(parsed_body.method_settings); - builder = builder.set_variables(parsed_body.variables); - builder = builder.set_documentation_version(parsed_body.documentation_version); - builder = builder.set_access_log_settings(parsed_body.access_log_settings); - builder = builder.set_canary_settings(parsed_body.canary_settings); - builder = builder.set_tracing_enabled(Some(parsed_body.tracing_enabled)); - builder = builder.set_web_acl_arn(parsed_body.web_acl_arn); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - Ok(builder) -} - -pub fn create_usage_plan_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "accessLogSettings" => { + builder = builder.set_access_log_settings( + crate::json_deser::deser_structure_access_log_settings(tokens)?, + ); + } + "cacheClusterEnabled" => { + builder = builder.set_cache_cluster_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "cacheClusterSize" => { + builder = builder.set_cache_cluster_size( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterSize::from(u.as_ref())) + }) + .transpose()?, + ); + } + "cacheClusterStatus" => { + builder = builder.set_cache_cluster_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "canarySettings" => { + builder = builder.set_canary_settings( + crate::json_deser::deser_structure_canary_settings(tokens)?, + ); + } + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "deploymentId" => { + builder = builder.set_deployment_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "documentationVersion" => { + builder = builder.set_documentation_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "methodSettings" => { + builder = builder.set_method_settings( + crate::json_deser::deser_map_map_of_method_settings(tokens)?, + ); + } + "stageName" => { + builder = builder.set_stage_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "tracingEnabled" => { + builder = builder.set_tracing_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "variables" => { + builder = builder.set_variables( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "webAclArn" => { + builder = builder.set_web_acl_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_usage_plan( input: &[u8], mut builder: crate::output::create_usage_plan_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateUsagePlanOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_api_stages(parsed_body.api_stages); - builder = builder.set_throttle(parsed_body.throttle); - builder = builder.set_quota(parsed_body.quota); - builder = builder.set_product_code(parsed_body.product_code); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiStages" => { + builder = builder.set_api_stages( + crate::json_deser::deser_list_list_of_api_stage(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "productCode" => { + builder = builder.set_product_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "quota" => { + builder = builder + .set_quota(crate::json_deser::deser_structure_quota_settings(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "throttle" => { + builder = builder.set_throttle( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_usage_plan_key_deser_operation( +pub fn deser_operation_create_usage_plan_key( input: &[u8], mut builder: crate::output::create_usage_plan_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateUsagePlanKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_value(parsed_body.value); - builder = builder.set_name(parsed_body.name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_vpc_link_deser_operation( +pub fn deser_operation_create_vpc_link( input: &[u8], mut builder: crate::output::create_vpc_link_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateVpcLinkOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_target_arns(parsed_body.target_arns); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_message(parsed_body.status_message); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VpcLinkStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "targetArns" => { + builder = builder + .set_target_arns(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_client_certificate_deser_operation( +pub fn deser_operation_generate_client_certificate( input: &[u8], mut builder: crate::output::generate_client_certificate_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::generate_client_certificate_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GenerateClientCertificateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_pem_encoded_certificate(parsed_body.pem_encoded_certificate); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_expiration_date(parsed_body.expiration_date); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "expirationDate" => { + builder = builder.set_expiration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "pemEncodedCertificate" => { + builder = builder.set_pem_encoded_certificate( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_account_deser_operation( +pub fn deser_operation_get_account( input: &[u8], mut builder: crate::output::get_account_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAccountOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cloudwatch_role_arn(parsed_body.cloudwatch_role_arn); - builder = builder.set_throttle_settings(parsed_body.throttle_settings); - builder = builder.set_features(parsed_body.features); - builder = builder.set_api_key_version(parsed_body.api_key_version); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeyVersion" => { + builder = builder.set_api_key_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cloudwatchRoleArn" => { + builder = builder.set_cloudwatch_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "features" => { + builder = builder + .set_features(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "throttleSettings" => { + builder = builder.set_throttle_settings( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_api_key_deser_operation( +pub fn deser_operation_get_api_key( input: &[u8], mut builder: crate::output::get_api_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetApiKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_value(parsed_body.value); - builder = builder.set_name(parsed_body.name); - builder = builder.set_customer_id(parsed_body.customer_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_enabled(Some(parsed_body.enabled)); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - builder = builder.set_stage_keys(parsed_body.stage_keys); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "customerId" => { + builder = builder.set_customer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stageKeys" => { + builder = builder + .set_stage_keys(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_api_keys_deser_operation( +pub fn deser_operation_get_api_keys( input: &[u8], mut builder: crate::output::get_api_keys_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetApiKeysOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_api_key(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_authorizer_deser_operation( +pub fn deser_operation_get_authorizer( input: &[u8], mut builder: crate::output::get_authorizer_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAuthorizerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_provider_ar_ns(parsed_body.provider_ar_ns); - builder = builder.set_auth_type(parsed_body.auth_type); - builder = builder.set_authorizer_uri(parsed_body.authorizer_uri); - builder = builder.set_authorizer_credentials(parsed_body.authorizer_credentials); - builder = builder.set_identity_source(parsed_body.identity_source); - builder = - builder.set_identity_validation_expression(parsed_body.identity_validation_expression); - builder = - builder.set_authorizer_result_ttl_in_seconds(parsed_body.authorizer_result_ttl_in_seconds); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authType" => { + builder = builder.set_auth_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerCredentials" => { + builder = builder.set_authorizer_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerResultTtlInSeconds" => { + builder = builder.set_authorizer_result_ttl_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "authorizerUri" => { + builder = builder.set_authorizer_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identitySource" => { + builder = builder.set_identity_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identityValidationExpression" => { + builder = builder.set_identity_validation_expression( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "providerARNs" => { + builder = builder.set_provider_ar_ns( + crate::json_deser::deser_list_list_of_ar_ns(tokens)?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AuthorizerType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_authorizers_deser_operation( +pub fn deser_operation_get_authorizers( input: &[u8], mut builder: crate::output::get_authorizers_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAuthorizersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_authorizer(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_base_path_mapping_deser_operation( +pub fn deser_operation_get_base_path_mapping( input: &[u8], mut builder: crate::output::get_base_path_mapping_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetBasePathMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_base_path(parsed_body.base_path); - builder = builder.set_rest_api_id(parsed_body.rest_api_id); - builder = builder.set_stage(parsed_body.stage); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "basePath" => { + builder = builder.set_base_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "restApiId" => { + builder = builder.set_rest_api_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stage" => { + builder = builder.set_stage( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_base_path_mappings_deser_operation( +pub fn deser_operation_get_base_path_mappings( input: &[u8], mut builder: crate::output::get_base_path_mappings_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetBasePathMappingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_base_path_mapping(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_client_certificate_deser_operation( +pub fn deser_operation_get_client_certificate( input: &[u8], mut builder: crate::output::get_client_certificate_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetClientCertificateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_pem_encoded_certificate(parsed_body.pem_encoded_certificate); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_expiration_date(parsed_body.expiration_date); - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "expirationDate" => { + builder = builder.set_expiration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "pemEncodedCertificate" => { + builder = builder.set_pem_encoded_certificate( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_client_certificates_deser_operation( +pub fn deser_operation_get_client_certificates( input: &[u8], mut builder: crate::output::get_client_certificates_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetClientCertificatesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_client_certificate(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_deployment_deser_operation( +pub fn deser_operation_get_deployment( input: &[u8], mut builder: crate::output::get_deployment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDeploymentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_api_summary(parsed_body.api_summary); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiSummary" => { + builder = builder.set_api_summary( + crate::json_deser::deser_map_path_to_map_of_method_snapshot(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_deployments_deser_operation( +pub fn deser_operation_get_deployments( input: &[u8], mut builder: crate::output::get_deployments_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDeploymentsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_deployment(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_documentation_part_deser_operation( +pub fn deser_operation_get_documentation_part( input: &[u8], mut builder: crate::output::get_documentation_part_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDocumentationPartOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_location(parsed_body.location); - builder = builder.set_properties(parsed_body.properties); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "location" => { + builder = builder.set_location( + crate::json_deser::deser_structure_documentation_part_location(tokens)?, + ); + } + "properties" => { + builder = builder.set_properties( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_documentation_parts_deser_operation( +pub fn deser_operation_get_documentation_parts( input: &[u8], mut builder: crate::output::get_documentation_parts_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetDocumentationPartsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_documentation_part(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_documentation_version_deser_operation( +pub fn deser_operation_get_documentation_version( input: &[u8], mut builder: crate::output::get_documentation_version_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetDocumentationVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_version(parsed_body.version); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_description(parsed_body.description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_documentation_versions_deser_operation( +pub fn deser_operation_get_documentation_versions( input: &[u8], mut builder: crate::output::get_documentation_versions_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::GetDocumentationVersionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result< + crate::output::get_documentation_versions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_documentation_version(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_domain_name_deser_operation( +pub fn deser_operation_get_domain_name( input: &[u8], mut builder: crate::output::get_domain_name_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDomainNameOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_name(parsed_body.domain_name); - builder = builder.set_certificate_name(parsed_body.certificate_name); - builder = builder.set_certificate_arn(parsed_body.certificate_arn); - builder = builder.set_certificate_upload_date(parsed_body.certificate_upload_date); - builder = builder.set_regional_domain_name(parsed_body.regional_domain_name); - builder = builder.set_regional_hosted_zone_id(parsed_body.regional_hosted_zone_id); - builder = builder.set_regional_certificate_name(parsed_body.regional_certificate_name); - builder = builder.set_regional_certificate_arn(parsed_body.regional_certificate_arn); - builder = builder.set_distribution_domain_name(parsed_body.distribution_domain_name); - builder = builder.set_distribution_hosted_zone_id(parsed_body.distribution_hosted_zone_id); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_domain_name_status(parsed_body.domain_name_status); - builder = builder.set_domain_name_status_message(parsed_body.domain_name_status_message); - builder = builder.set_security_policy(parsed_body.security_policy); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_mutual_tls_authentication(parsed_body.mutual_tls_authentication); - Ok(builder) -} - -pub fn get_domain_names_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "certificateArn" => { + builder = builder.set_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateName" => { + builder = builder.set_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateUploadDate" => { + builder = builder.set_certificate_upload_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "distributionDomainName" => { + builder = builder.set_distribution_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distributionHostedZoneId" => { + builder = builder.set_distribution_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainNameStatus" => { + builder = builder.set_domain_name_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DomainNameStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "domainNameStatusMessage" => { + builder = builder.set_domain_name_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "mutualTlsAuthentication" => { + builder = builder.set_mutual_tls_authentication( + crate::json_deser::deser_structure_mutual_tls_authentication(tokens)?, + ); + } + "regionalCertificateArn" => { + builder = builder.set_regional_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalCertificateName" => { + builder = builder.set_regional_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalDomainName" => { + builder = builder.set_regional_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalHostedZoneId" => { + builder = builder.set_regional_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityPolicy" => { + builder = builder.set_security_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SecurityPolicy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_domain_names( input: &[u8], mut builder: crate::output::get_domain_names_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDomainNamesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_domain_name(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_gateway_response_deser_operation( +pub fn deser_operation_get_gateway_response( input: &[u8], mut builder: crate::output::get_gateway_response_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetGatewayResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_response_type(parsed_body.response_type); - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_default_response(Some(parsed_body.default_response)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "defaultResponse" => { + builder = builder.set_default_response( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseType" => { + builder = builder.set_response_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GatewayResponseType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_gateway_responses_deser_operation( +pub fn deser_operation_get_gateway_responses( input: &[u8], mut builder: crate::output::get_gateway_responses_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetGatewayResponsesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_gateway_response(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_integration_deser_operation( +pub fn deser_operation_get_integration( input: &[u8], mut builder: crate::output::get_integration_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetIntegrationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_uri(parsed_body.uri); - builder = builder.set_connection_type(parsed_body.connection_type); - builder = builder.set_connection_id(parsed_body.connection_id); - builder = builder.set_credentials(parsed_body.credentials); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_templates(parsed_body.request_templates); - builder = builder.set_passthrough_behavior(parsed_body.passthrough_behavior); - builder = builder.set_content_handling(parsed_body.content_handling); - builder = builder.set_timeout_in_millis(Some(parsed_body.timeout_in_millis)); - builder = builder.set_cache_namespace(parsed_body.cache_namespace); - builder = builder.set_cache_key_parameters(parsed_body.cache_key_parameters); - builder = builder.set_integration_responses(parsed_body.integration_responses); - builder = builder.set_tls_config(parsed_body.tls_config); - Ok(builder) -} - -pub fn get_integration_response_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cacheKeyParameters" => { + builder = builder.set_cache_key_parameters( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "cacheNamespace" => { + builder = builder.set_cache_namespace( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionId" => { + builder = builder.set_connection_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionType" => { + builder = builder.set_connection_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConnectionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "credentials" => { + builder = builder.set_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "integrationResponses" => { + builder = builder.set_integration_responses( + crate::json_deser::deser_map_map_of_integration_response(tokens)?, + ); + } + "passthroughBehavior" => { + builder = builder.set_passthrough_behavior( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestTemplates" => { + builder = builder.set_request_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "timeoutInMillis" => { + builder = builder.set_timeout_in_millis( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tlsConfig" => { + builder = builder + .set_tls_config(crate::json_deser::deser_structure_tls_config(tokens)?); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IntegrationType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_integration_response( input: &[u8], mut builder: crate::output::get_integration_response_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetIntegrationResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_selection_pattern(parsed_body.selection_pattern); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_content_handling(parsed_body.content_handling); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "selectionPattern" => { + builder = builder.set_selection_pattern( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_method_deser_operation( +pub fn deser_operation_get_method( input: &[u8], mut builder: crate::output::get_method_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetMethodOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_authorization_type(parsed_body.authorization_type); - builder = builder.set_authorizer_id(parsed_body.authorizer_id); - builder = builder.set_api_key_required(parsed_body.api_key_required); - builder = builder.set_request_validator_id(parsed_body.request_validator_id); - builder = builder.set_operation_name(parsed_body.operation_name); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_models(parsed_body.request_models); - builder = builder.set_method_responses(parsed_body.method_responses); - builder = builder.set_method_integration(parsed_body.method_integration); - builder = builder.set_authorization_scopes(parsed_body.authorization_scopes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeyRequired" => { + builder = builder.set_api_key_required( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "authorizationScopes" => { + builder = builder.set_authorization_scopes( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "authorizationType" => { + builder = builder.set_authorization_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerId" => { + builder = builder.set_authorizer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "methodIntegration" => { + builder = builder.set_method_integration( + crate::json_deser::deser_structure_integration(tokens)?, + ); + } + "methodResponses" => { + builder = builder.set_method_responses( + crate::json_deser::deser_map_map_of_method_response(tokens)?, + ); + } + "operationName" => { + builder = builder.set_operation_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestModels" => { + builder = builder.set_request_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "requestValidatorId" => { + builder = builder.set_request_validator_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_method_response_deser_operation( +pub fn deser_operation_get_method_response( input: &[u8], mut builder: crate::output::get_method_response_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetMethodResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_models(parsed_body.response_models); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "responseModels" => { + builder = builder.set_response_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_model_deser_operation( +pub fn deser_operation_get_model( input: &[u8], mut builder: crate::output::get_model_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetModelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_schema(parsed_body.schema); - builder = builder.set_content_type(parsed_body.content_type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "schema" => { + builder = builder.set_schema( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_models_deser_operation( +pub fn deser_operation_get_models( input: &[u8], mut builder: crate::output::get_models_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetModelsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = + builder.set_items(crate::json_deser::deser_list_list_of_model(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_model_template_deser_operation( +pub fn deser_operation_get_model_template( input: &[u8], mut builder: crate::output::get_model_template_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetModelTemplateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_value(parsed_body.value); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_request_validator_deser_operation( +pub fn deser_operation_get_request_validator( input: &[u8], mut builder: crate::output::get_request_validator_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRequestValidatorOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_validate_request_body(Some(parsed_body.validate_request_body)); - builder = - builder.set_validate_request_parameters(Some(parsed_body.validate_request_parameters)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validateRequestBody" => { + builder = builder.set_validate_request_body( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "validateRequestParameters" => { + builder = builder.set_validate_request_parameters( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_request_validators_deser_operation( +pub fn deser_operation_get_request_validators( input: &[u8], mut builder: crate::output::get_request_validators_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRequestValidatorsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_request_validator(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_resource_deser_operation( +pub fn deser_operation_get_resource( input: &[u8], mut builder: crate::output::get_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_parent_id(parsed_body.parent_id); - builder = builder.set_path_part(parsed_body.path_part); - builder = builder.set_path(parsed_body.path); - builder = builder.set_resource_methods(parsed_body.resource_methods); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parentId" => { + builder = builder.set_parent_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "path" => { + builder = builder.set_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pathPart" => { + builder = builder.set_path_part( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceMethods" => { + builder = builder.set_resource_methods( + crate::json_deser::deser_map_map_of_method(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_resources_deser_operation( +pub fn deser_operation_get_resources( input: &[u8], mut builder: crate::output::get_resources_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetResourcesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_resource(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_rest_api_deser_operation( +pub fn deser_operation_get_rest_api( input: &[u8], mut builder: crate::output::get_rest_api_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRestApiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(parsed_body.version); - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_binary_media_types(parsed_body.binary_media_types); - builder = builder.set_minimum_compression_size(parsed_body.minimum_compression_size); - builder = builder.set_api_key_source(parsed_body.api_key_source); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_tags(parsed_body.tags); - builder = - builder.set_disable_execute_api_endpoint(Some(parsed_body.disable_execute_api_endpoint)); - Ok(builder) -} - -pub fn get_rest_apis_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ApiKeySourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_rest_apis( input: &[u8], mut builder: crate::output::get_rest_apis_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRestApisOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_rest_api(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_sdk_type_deser_operation( +pub fn deser_operation_get_sdk_type( input: &[u8], mut builder: crate::output::get_sdk_type_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetSdkTypeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_friendly_name(parsed_body.friendly_name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_configuration_properties(parsed_body.configuration_properties); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "configurationProperties" => { + builder = builder.set_configuration_properties( + crate::json_deser::deser_list_list_of_sdk_configuration_property( + tokens, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "friendlyName" => { + builder = builder.set_friendly_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_sdk_types_deser_operation( +pub fn deser_operation_get_sdk_types( input: &[u8], mut builder: crate::output::get_sdk_types_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetSdkTypesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_sdk_type(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_stage_deser_operation( +pub fn deser_operation_get_stage( input: &[u8], mut builder: crate::output::get_stage_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetStageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deployment_id(parsed_body.deployment_id); - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_stage_name(parsed_body.stage_name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_cache_cluster_enabled(Some(parsed_body.cache_cluster_enabled)); - builder = builder.set_cache_cluster_size(parsed_body.cache_cluster_size); - builder = builder.set_cache_cluster_status(parsed_body.cache_cluster_status); - builder = builder.set_method_settings(parsed_body.method_settings); - builder = builder.set_variables(parsed_body.variables); - builder = builder.set_documentation_version(parsed_body.documentation_version); - builder = builder.set_access_log_settings(parsed_body.access_log_settings); - builder = builder.set_canary_settings(parsed_body.canary_settings); - builder = builder.set_tracing_enabled(Some(parsed_body.tracing_enabled)); - builder = builder.set_web_acl_arn(parsed_body.web_acl_arn); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - Ok(builder) -} - -pub fn get_stages_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "accessLogSettings" => { + builder = builder.set_access_log_settings( + crate::json_deser::deser_structure_access_log_settings(tokens)?, + ); + } + "cacheClusterEnabled" => { + builder = builder.set_cache_cluster_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "cacheClusterSize" => { + builder = builder.set_cache_cluster_size( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterSize::from(u.as_ref())) + }) + .transpose()?, + ); + } + "cacheClusterStatus" => { + builder = builder.set_cache_cluster_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "canarySettings" => { + builder = builder.set_canary_settings( + crate::json_deser::deser_structure_canary_settings(tokens)?, + ); + } + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "deploymentId" => { + builder = builder.set_deployment_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "documentationVersion" => { + builder = builder.set_documentation_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "methodSettings" => { + builder = builder.set_method_settings( + crate::json_deser::deser_map_map_of_method_settings(tokens)?, + ); + } + "stageName" => { + builder = builder.set_stage_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "tracingEnabled" => { + builder = builder.set_tracing_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "variables" => { + builder = builder.set_variables( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "webAclArn" => { + builder = builder.set_web_acl_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_stages( input: &[u8], mut builder: crate::output::get_stages_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetStagesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_item(parsed_body.item); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = + builder.set_item(crate::json_deser::deser_list_list_of_stage(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_tags_deser_operation( +pub fn deser_operation_get_tags( input: &[u8], mut builder: crate::output::get_tags_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetTagsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_usage_deser_operation( +pub fn deser_operation_get_usage( input: &[u8], mut builder: crate::output::get_usage_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetUsageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_usage_plan_id(parsed_body.usage_plan_id); - builder = builder.set_start_date(parsed_body.start_date); - builder = builder.set_end_date(parsed_body.end_date); - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "endDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "values" => { + builder = builder + .set_items(crate::json_deser::deser_map_map_of_key_usages(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "startDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "usagePlanId" => { + builder = builder.set_usage_plan_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_usage_plan_deser_operation( +pub fn deser_operation_get_usage_plan( input: &[u8], mut builder: crate::output::get_usage_plan_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetUsagePlanOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_api_stages(parsed_body.api_stages); - builder = builder.set_throttle(parsed_body.throttle); - builder = builder.set_quota(parsed_body.quota); - builder = builder.set_product_code(parsed_body.product_code); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiStages" => { + builder = builder.set_api_stages( + crate::json_deser::deser_list_list_of_api_stage(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "productCode" => { + builder = builder.set_product_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "quota" => { + builder = builder + .set_quota(crate::json_deser::deser_structure_quota_settings(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "throttle" => { + builder = builder.set_throttle( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_usage_plan_key_deser_operation( +pub fn deser_operation_get_usage_plan_key( input: &[u8], mut builder: crate::output::get_usage_plan_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetUsagePlanKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_value(parsed_body.value); - builder = builder.set_name(parsed_body.name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_usage_plan_keys_deser_operation( +pub fn deser_operation_get_usage_plan_keys( input: &[u8], mut builder: crate::output::get_usage_plan_keys_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetUsagePlanKeysOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder.set_items( + crate::json_deser::deser_list_list_of_usage_plan_key(tokens)?, + ); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_usage_plans_deser_operation( +pub fn deser_operation_get_usage_plans( input: &[u8], mut builder: crate::output::get_usage_plans_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetUsagePlansOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_usage_plan(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_vpc_link_deser_operation( +pub fn deser_operation_get_vpc_link( input: &[u8], mut builder: crate::output::get_vpc_link_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetVpcLinkOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_target_arns(parsed_body.target_arns); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_message(parsed_body.status_message); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VpcLinkStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "targetArns" => { + builder = builder + .set_target_arns(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_vpc_links_deser_operation( +pub fn deser_operation_get_vpc_links( input: &[u8], mut builder: crate::output::get_vpc_links_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetVpcLinksOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "item" => { + builder = builder + .set_items(crate::json_deser::deser_list_list_of_vpc_link(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn import_api_keys_deser_operation( +pub fn deser_operation_import_api_keys( input: &[u8], mut builder: crate::output::import_api_keys_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ImportApiKeysOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ids(parsed_body.ids); - builder = builder.set_warnings(parsed_body.warnings); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ids" => { + builder = + builder.set_ids(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn import_documentation_parts_deser_operation( +pub fn deser_operation_import_documentation_parts( input: &[u8], mut builder: crate::output::import_documentation_parts_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ImportDocumentationPartsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ids(parsed_body.ids); - builder = builder.set_warnings(parsed_body.warnings); +) -> Result< + crate::output::import_documentation_parts_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ids" => { + builder = + builder.set_ids(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn import_rest_api_deser_operation( +pub fn deser_operation_import_rest_api( input: &[u8], mut builder: crate::output::import_rest_api_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ImportRestApiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(parsed_body.version); - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_binary_media_types(parsed_body.binary_media_types); - builder = builder.set_minimum_compression_size(parsed_body.minimum_compression_size); - builder = builder.set_api_key_source(parsed_body.api_key_source); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_tags(parsed_body.tags); - builder = - builder.set_disable_execute_api_endpoint(Some(parsed_body.disable_execute_api_endpoint)); - Ok(builder) -} - -pub fn put_gateway_response_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ApiKeySourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_gateway_response( input: &[u8], mut builder: crate::output::put_gateway_response_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutGatewayResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_response_type(parsed_body.response_type); - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_default_response(Some(parsed_body.default_response)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "defaultResponse" => { + builder = builder.set_default_response( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseType" => { + builder = builder.set_response_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GatewayResponseType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_integration_deser_operation( +pub fn deser_operation_put_integration( input: &[u8], mut builder: crate::output::put_integration_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutIntegrationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_uri(parsed_body.uri); - builder = builder.set_connection_type(parsed_body.connection_type); - builder = builder.set_connection_id(parsed_body.connection_id); - builder = builder.set_credentials(parsed_body.credentials); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_templates(parsed_body.request_templates); - builder = builder.set_passthrough_behavior(parsed_body.passthrough_behavior); - builder = builder.set_content_handling(parsed_body.content_handling); - builder = builder.set_timeout_in_millis(Some(parsed_body.timeout_in_millis)); - builder = builder.set_cache_namespace(parsed_body.cache_namespace); - builder = builder.set_cache_key_parameters(parsed_body.cache_key_parameters); - builder = builder.set_integration_responses(parsed_body.integration_responses); - builder = builder.set_tls_config(parsed_body.tls_config); - Ok(builder) -} - -pub fn put_integration_response_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cacheKeyParameters" => { + builder = builder.set_cache_key_parameters( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "cacheNamespace" => { + builder = builder.set_cache_namespace( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionId" => { + builder = builder.set_connection_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionType" => { + builder = builder.set_connection_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConnectionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "credentials" => { + builder = builder.set_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "integrationResponses" => { + builder = builder.set_integration_responses( + crate::json_deser::deser_map_map_of_integration_response(tokens)?, + ); + } + "passthroughBehavior" => { + builder = builder.set_passthrough_behavior( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestTemplates" => { + builder = builder.set_request_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "timeoutInMillis" => { + builder = builder.set_timeout_in_millis( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tlsConfig" => { + builder = builder + .set_tls_config(crate::json_deser::deser_structure_tls_config(tokens)?); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IntegrationType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_integration_response( input: &[u8], mut builder: crate::output::put_integration_response_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::PutIntegrationResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_selection_pattern(parsed_body.selection_pattern); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_content_handling(parsed_body.content_handling); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "selectionPattern" => { + builder = builder.set_selection_pattern( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_method_deser_operation( +pub fn deser_operation_put_method( input: &[u8], mut builder: crate::output::put_method_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutMethodOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_authorization_type(parsed_body.authorization_type); - builder = builder.set_authorizer_id(parsed_body.authorizer_id); - builder = builder.set_api_key_required(parsed_body.api_key_required); - builder = builder.set_request_validator_id(parsed_body.request_validator_id); - builder = builder.set_operation_name(parsed_body.operation_name); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_models(parsed_body.request_models); - builder = builder.set_method_responses(parsed_body.method_responses); - builder = builder.set_method_integration(parsed_body.method_integration); - builder = builder.set_authorization_scopes(parsed_body.authorization_scopes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeyRequired" => { + builder = builder.set_api_key_required( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "authorizationScopes" => { + builder = builder.set_authorization_scopes( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "authorizationType" => { + builder = builder.set_authorization_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerId" => { + builder = builder.set_authorizer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "methodIntegration" => { + builder = builder.set_method_integration( + crate::json_deser::deser_structure_integration(tokens)?, + ); + } + "methodResponses" => { + builder = builder.set_method_responses( + crate::json_deser::deser_map_map_of_method_response(tokens)?, + ); + } + "operationName" => { + builder = builder.set_operation_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestModels" => { + builder = builder.set_request_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "requestValidatorId" => { + builder = builder.set_request_validator_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_method_response_deser_operation( +pub fn deser_operation_put_method_response( input: &[u8], mut builder: crate::output::put_method_response_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutMethodResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_models(parsed_body.response_models); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "responseModels" => { + builder = builder.set_response_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_rest_api_deser_operation( +pub fn deser_operation_put_rest_api( input: &[u8], mut builder: crate::output::put_rest_api_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutRestApiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(parsed_body.version); - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_binary_media_types(parsed_body.binary_media_types); - builder = builder.set_minimum_compression_size(parsed_body.minimum_compression_size); - builder = builder.set_api_key_source(parsed_body.api_key_source); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_tags(parsed_body.tags); - builder = - builder.set_disable_execute_api_endpoint(Some(parsed_body.disable_execute_api_endpoint)); - Ok(builder) -} - -pub fn test_invoke_authorizer_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ApiKeySourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_test_invoke_authorizer( input: &[u8], mut builder: crate::output::test_invoke_authorizer_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TestInvokeAuthorizerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_client_status(Some(parsed_body.client_status)); - builder = builder.set_log(parsed_body.log); - builder = builder.set_latency(Some(parsed_body.latency)); - builder = builder.set_principal_id(parsed_body.principal_id); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_authorization(parsed_body.authorization); - builder = builder.set_claims(parsed_body.claims); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authorization" => { + builder = builder.set_authorization( + crate::json_deser::deser_map_map_of_string_to_list(tokens)?, + ); + } + "claims" => { + builder = builder.set_claims( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "clientStatus" => { + builder = builder.set_client_status( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "latency" => { + builder = builder.set_latency( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "log" => { + builder = builder.set_log( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "principalId" => { + builder = builder.set_principal_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn test_invoke_method_deser_operation( +pub fn deser_operation_test_invoke_method( input: &[u8], mut builder: crate::output::test_invoke_method_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TestInvokeMethodOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status(Some(parsed_body.status)); - builder = builder.set_body(parsed_body.body); - builder = builder.set_headers(parsed_body.headers); - builder = builder.set_multi_value_headers(parsed_body.multi_value_headers); - builder = builder.set_log(parsed_body.log); - builder = builder.set_latency(Some(parsed_body.latency)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "body" => { + builder = builder.set_body( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "headers" => { + builder = builder.set_headers( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "latency" => { + builder = builder.set_latency( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "log" => { + builder = builder.set_log( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiValueHeaders" => { + builder = builder.set_multi_value_headers( + crate::json_deser::deser_map_map_of_string_to_list(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_account_deser_operation( +pub fn deser_operation_update_account( input: &[u8], mut builder: crate::output::update_account_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateAccountOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cloudwatch_role_arn(parsed_body.cloudwatch_role_arn); - builder = builder.set_throttle_settings(parsed_body.throttle_settings); - builder = builder.set_features(parsed_body.features); - builder = builder.set_api_key_version(parsed_body.api_key_version); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeyVersion" => { + builder = builder.set_api_key_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cloudwatchRoleArn" => { + builder = builder.set_cloudwatch_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "features" => { + builder = builder + .set_features(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "throttleSettings" => { + builder = builder.set_throttle_settings( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_api_key_deser_operation( +pub fn deser_operation_update_api_key( input: &[u8], mut builder: crate::output::update_api_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateApiKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_value(parsed_body.value); - builder = builder.set_name(parsed_body.name); - builder = builder.set_customer_id(parsed_body.customer_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_enabled(Some(parsed_body.enabled)); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - builder = builder.set_stage_keys(parsed_body.stage_keys); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "customerId" => { + builder = builder.set_customer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stageKeys" => { + builder = builder + .set_stage_keys(crate::json_deser::deser_list_list_of_string(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_authorizer_deser_operation( +pub fn deser_operation_update_authorizer( input: &[u8], mut builder: crate::output::update_authorizer_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateAuthorizerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_provider_ar_ns(parsed_body.provider_ar_ns); - builder = builder.set_auth_type(parsed_body.auth_type); - builder = builder.set_authorizer_uri(parsed_body.authorizer_uri); - builder = builder.set_authorizer_credentials(parsed_body.authorizer_credentials); - builder = builder.set_identity_source(parsed_body.identity_source); - builder = - builder.set_identity_validation_expression(parsed_body.identity_validation_expression); - builder = - builder.set_authorizer_result_ttl_in_seconds(parsed_body.authorizer_result_ttl_in_seconds); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authType" => { + builder = builder.set_auth_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerCredentials" => { + builder = builder.set_authorizer_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerResultTtlInSeconds" => { + builder = builder.set_authorizer_result_ttl_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "authorizerUri" => { + builder = builder.set_authorizer_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identitySource" => { + builder = builder.set_identity_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identityValidationExpression" => { + builder = builder.set_identity_validation_expression( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "providerARNs" => { + builder = builder.set_provider_ar_ns( + crate::json_deser::deser_list_list_of_ar_ns(tokens)?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AuthorizerType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_base_path_mapping_deser_operation( +pub fn deser_operation_update_base_path_mapping( input: &[u8], mut builder: crate::output::update_base_path_mapping_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateBasePathMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_base_path(parsed_body.base_path); - builder = builder.set_rest_api_id(parsed_body.rest_api_id); - builder = builder.set_stage(parsed_body.stage); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "basePath" => { + builder = builder.set_base_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "restApiId" => { + builder = builder.set_rest_api_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stage" => { + builder = builder.set_stage( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_client_certificate_deser_operation( +pub fn deser_operation_update_client_certificate( input: &[u8], mut builder: crate::output::update_client_certificate_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateClientCertificateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_pem_encoded_certificate(parsed_body.pem_encoded_certificate); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_expiration_date(parsed_body.expiration_date); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "expirationDate" => { + builder = builder.set_expiration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "pemEncodedCertificate" => { + builder = builder.set_pem_encoded_certificate( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_deployment_deser_operation( +pub fn deser_operation_update_deployment( input: &[u8], mut builder: crate::output::update_deployment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateDeploymentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_api_summary(parsed_body.api_summary); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiSummary" => { + builder = builder.set_api_summary( + crate::json_deser::deser_map_path_to_map_of_method_snapshot(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_documentation_part_deser_operation( +pub fn deser_operation_update_documentation_part( input: &[u8], mut builder: crate::output::update_documentation_part_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateDocumentationPartOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_location(parsed_body.location); - builder = builder.set_properties(parsed_body.properties); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "location" => { + builder = builder.set_location( + crate::json_deser::deser_structure_documentation_part_location(tokens)?, + ); + } + "properties" => { + builder = builder.set_properties( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_documentation_version_deser_operation( +pub fn deser_operation_update_documentation_version( input: &[u8], mut builder: crate::output::update_documentation_version_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_documentation_version_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateDocumentationVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_version(parsed_body.version); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_description(parsed_body.description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_domain_name_deser_operation( +pub fn deser_operation_update_domain_name( input: &[u8], mut builder: crate::output::update_domain_name_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateDomainNameOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_name(parsed_body.domain_name); - builder = builder.set_certificate_name(parsed_body.certificate_name); - builder = builder.set_certificate_arn(parsed_body.certificate_arn); - builder = builder.set_certificate_upload_date(parsed_body.certificate_upload_date); - builder = builder.set_regional_domain_name(parsed_body.regional_domain_name); - builder = builder.set_regional_hosted_zone_id(parsed_body.regional_hosted_zone_id); - builder = builder.set_regional_certificate_name(parsed_body.regional_certificate_name); - builder = builder.set_regional_certificate_arn(parsed_body.regional_certificate_arn); - builder = builder.set_distribution_domain_name(parsed_body.distribution_domain_name); - builder = builder.set_distribution_hosted_zone_id(parsed_body.distribution_hosted_zone_id); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_domain_name_status(parsed_body.domain_name_status); - builder = builder.set_domain_name_status_message(parsed_body.domain_name_status_message); - builder = builder.set_security_policy(parsed_body.security_policy); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_mutual_tls_authentication(parsed_body.mutual_tls_authentication); - Ok(builder) -} - -pub fn update_gateway_response_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "certificateArn" => { + builder = builder.set_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateName" => { + builder = builder.set_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateUploadDate" => { + builder = builder.set_certificate_upload_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "distributionDomainName" => { + builder = builder.set_distribution_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distributionHostedZoneId" => { + builder = builder.set_distribution_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domainNameStatus" => { + builder = builder.set_domain_name_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DomainNameStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "domainNameStatusMessage" => { + builder = builder.set_domain_name_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "mutualTlsAuthentication" => { + builder = builder.set_mutual_tls_authentication( + crate::json_deser::deser_structure_mutual_tls_authentication(tokens)?, + ); + } + "regionalCertificateArn" => { + builder = builder.set_regional_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalCertificateName" => { + builder = builder.set_regional_certificate_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalDomainName" => { + builder = builder.set_regional_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalHostedZoneId" => { + builder = builder.set_regional_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityPolicy" => { + builder = builder.set_security_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SecurityPolicy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_gateway_response( input: &[u8], mut builder: crate::output::update_gateway_response_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateGatewayResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_response_type(parsed_body.response_type); - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_default_response(Some(parsed_body.default_response)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "defaultResponse" => { + builder = builder.set_default_response( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseType" => { + builder = builder.set_response_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GatewayResponseType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_integration_deser_operation( +pub fn deser_operation_update_integration( input: &[u8], mut builder: crate::output::update_integration_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateIntegrationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_uri(parsed_body.uri); - builder = builder.set_connection_type(parsed_body.connection_type); - builder = builder.set_connection_id(parsed_body.connection_id); - builder = builder.set_credentials(parsed_body.credentials); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_templates(parsed_body.request_templates); - builder = builder.set_passthrough_behavior(parsed_body.passthrough_behavior); - builder = builder.set_content_handling(parsed_body.content_handling); - builder = builder.set_timeout_in_millis(Some(parsed_body.timeout_in_millis)); - builder = builder.set_cache_namespace(parsed_body.cache_namespace); - builder = builder.set_cache_key_parameters(parsed_body.cache_key_parameters); - builder = builder.set_integration_responses(parsed_body.integration_responses); - builder = builder.set_tls_config(parsed_body.tls_config); - Ok(builder) -} - -pub fn update_integration_response_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cacheKeyParameters" => { + builder = builder.set_cache_key_parameters( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "cacheNamespace" => { + builder = builder.set_cache_namespace( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionId" => { + builder = builder.set_connection_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionType" => { + builder = builder.set_connection_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConnectionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "credentials" => { + builder = builder.set_credentials( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "integrationResponses" => { + builder = builder.set_integration_responses( + crate::json_deser::deser_map_map_of_integration_response(tokens)?, + ); + } + "passthroughBehavior" => { + builder = builder.set_passthrough_behavior( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestTemplates" => { + builder = builder.set_request_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "timeoutInMillis" => { + builder = builder.set_timeout_in_millis( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tlsConfig" => { + builder = builder + .set_tls_config(crate::json_deser::deser_structure_tls_config(tokens)?); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IntegrationType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_integration_response( input: &[u8], mut builder: crate::output::update_integration_response_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_integration_response_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateIntegrationResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_selection_pattern(parsed_body.selection_pattern); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_templates(parsed_body.response_templates); - builder = builder.set_content_handling(parsed_body.content_handling); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "selectionPattern" => { + builder = builder.set_selection_pattern( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_method_deser_operation( +pub fn deser_operation_update_method( input: &[u8], mut builder: crate::output::update_method_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateMethodOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_http_method(parsed_body.http_method); - builder = builder.set_authorization_type(parsed_body.authorization_type); - builder = builder.set_authorizer_id(parsed_body.authorizer_id); - builder = builder.set_api_key_required(parsed_body.api_key_required); - builder = builder.set_request_validator_id(parsed_body.request_validator_id); - builder = builder.set_operation_name(parsed_body.operation_name); - builder = builder.set_request_parameters(parsed_body.request_parameters); - builder = builder.set_request_models(parsed_body.request_models); - builder = builder.set_method_responses(parsed_body.method_responses); - builder = builder.set_method_integration(parsed_body.method_integration); - builder = builder.set_authorization_scopes(parsed_body.authorization_scopes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeyRequired" => { + builder = builder.set_api_key_required( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "authorizationScopes" => { + builder = builder.set_authorization_scopes( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "authorizationType" => { + builder = builder.set_authorization_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerId" => { + builder = builder.set_authorizer_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "methodIntegration" => { + builder = builder.set_method_integration( + crate::json_deser::deser_structure_integration(tokens)?, + ); + } + "methodResponses" => { + builder = builder.set_method_responses( + crate::json_deser::deser_map_map_of_method_response(tokens)?, + ); + } + "operationName" => { + builder = builder.set_operation_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestModels" => { + builder = builder.set_request_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "requestValidatorId" => { + builder = builder.set_request_validator_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_method_response_deser_operation( +pub fn deser_operation_update_method_response( input: &[u8], mut builder: crate::output::update_method_response_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateMethodResponseOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status_code(parsed_body.status_code); - builder = builder.set_response_parameters(parsed_body.response_parameters); - builder = builder.set_response_models(parsed_body.response_models); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "responseModels" => { + builder = builder.set_response_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_model_deser_operation( +pub fn deser_operation_update_model( input: &[u8], mut builder: crate::output::update_model_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateModelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_schema(parsed_body.schema); - builder = builder.set_content_type(parsed_body.content_type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "contentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "schema" => { + builder = builder.set_schema( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_request_validator_deser_operation( +pub fn deser_operation_update_request_validator( input: &[u8], mut builder: crate::output::update_request_validator_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateRequestValidatorOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_validate_request_body(Some(parsed_body.validate_request_body)); - builder = - builder.set_validate_request_parameters(Some(parsed_body.validate_request_parameters)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validateRequestBody" => { + builder = builder.set_validate_request_body( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "validateRequestParameters" => { + builder = builder.set_validate_request_parameters( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_resource_deser_operation( +pub fn deser_operation_update_resource( input: &[u8], mut builder: crate::output::update_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_parent_id(parsed_body.parent_id); - builder = builder.set_path_part(parsed_body.path_part); - builder = builder.set_path(parsed_body.path); - builder = builder.set_resource_methods(parsed_body.resource_methods); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parentId" => { + builder = builder.set_parent_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "path" => { + builder = builder.set_path( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pathPart" => { + builder = builder.set_path_part( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceMethods" => { + builder = builder.set_resource_methods( + crate::json_deser::deser_map_map_of_method(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_rest_api_deser_operation( +pub fn deser_operation_update_rest_api( input: &[u8], mut builder: crate::output::update_rest_api_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateRestApiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(parsed_body.version); - builder = builder.set_warnings(parsed_body.warnings); - builder = builder.set_binary_media_types(parsed_body.binary_media_types); - builder = builder.set_minimum_compression_size(parsed_body.minimum_compression_size); - builder = builder.set_api_key_source(parsed_body.api_key_source); - builder = builder.set_endpoint_configuration(parsed_body.endpoint_configuration); - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_tags(parsed_body.tags); - builder = - builder.set_disable_execute_api_endpoint(Some(parsed_body.disable_execute_api_endpoint)); - Ok(builder) -} - -pub fn update_stage_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ApiKeySourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder + .set_warnings(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_stage( input: &[u8], mut builder: crate::output::update_stage_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateStageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deployment_id(parsed_body.deployment_id); - builder = builder.set_client_certificate_id(parsed_body.client_certificate_id); - builder = builder.set_stage_name(parsed_body.stage_name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_cache_cluster_enabled(Some(parsed_body.cache_cluster_enabled)); - builder = builder.set_cache_cluster_size(parsed_body.cache_cluster_size); - builder = builder.set_cache_cluster_status(parsed_body.cache_cluster_status); - builder = builder.set_method_settings(parsed_body.method_settings); - builder = builder.set_variables(parsed_body.variables); - builder = builder.set_documentation_version(parsed_body.documentation_version); - builder = builder.set_access_log_settings(parsed_body.access_log_settings); - builder = builder.set_canary_settings(parsed_body.canary_settings); - builder = builder.set_tracing_enabled(Some(parsed_body.tracing_enabled)); - builder = builder.set_web_acl_arn(parsed_body.web_acl_arn); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_last_updated_date(parsed_body.last_updated_date); - Ok(builder) -} - -pub fn update_usage_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "accessLogSettings" => { + builder = builder.set_access_log_settings( + crate::json_deser::deser_structure_access_log_settings(tokens)?, + ); + } + "cacheClusterEnabled" => { + builder = builder.set_cache_cluster_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "cacheClusterSize" => { + builder = builder.set_cache_cluster_size( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterSize::from(u.as_ref())) + }) + .transpose()?, + ); + } + "cacheClusterStatus" => { + builder = builder.set_cache_cluster_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CacheClusterStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "canarySettings" => { + builder = builder.set_canary_settings( + crate::json_deser::deser_structure_canary_settings(tokens)?, + ); + } + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "deploymentId" => { + builder = builder.set_deployment_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "documentationVersion" => { + builder = builder.set_documentation_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "methodSettings" => { + builder = builder.set_method_settings( + crate::json_deser::deser_map_map_of_method_settings(tokens)?, + ); + } + "stageName" => { + builder = builder.set_stage_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "tracingEnabled" => { + builder = builder.set_tracing_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "variables" => { + builder = builder.set_variables( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "webAclArn" => { + builder = builder.set_web_acl_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_usage( input: &[u8], mut builder: crate::output::update_usage_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateUsageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_usage_plan_id(parsed_body.usage_plan_id); - builder = builder.set_start_date(parsed_body.start_date); - builder = builder.set_end_date(parsed_body.end_date); - builder = builder.set_items(parsed_body.items); - builder = builder.set_position(parsed_body.position); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "endDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "values" => { + builder = builder + .set_items(crate::json_deser::deser_map_map_of_key_usages(tokens)?); + } + "position" => { + builder = builder.set_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "startDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "usagePlanId" => { + builder = builder.set_usage_plan_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_usage_plan_deser_operation( +pub fn deser_operation_update_usage_plan( input: &[u8], mut builder: crate::output::update_usage_plan_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateUsagePlanOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_api_stages(parsed_body.api_stages); - builder = builder.set_throttle(parsed_body.throttle); - builder = builder.set_quota(parsed_body.quota); - builder = builder.set_product_code(parsed_body.product_code); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiStages" => { + builder = builder.set_api_stages( + crate::json_deser::deser_list_list_of_api_stage(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "productCode" => { + builder = builder.set_product_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "quota" => { + builder = builder + .set_quota(crate::json_deser::deser_structure_quota_settings(tokens)?); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "throttle" => { + builder = builder.set_throttle( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_vpc_link_deser_operation( +pub fn deser_operation_update_vpc_link( input: &[u8], mut builder: crate::output::update_vpc_link_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateVpcLinkOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_id(parsed_body.id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_target_arns(parsed_body.target_arns); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_message(parsed_body.status_message); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VpcLinkStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "targetArns" => { + builder = builder + .set_target_arns(crate::json_deser::deser_list_list_of_string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_string<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_string_to_string<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_ar_ns<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_path_to_map_of_method_snapshot<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap< + std::string::String, + std::collections::HashMap, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_map_map_of_method_snapshot(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_documentation_part_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentationPartLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DocumentationPartType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "path" => { + builder = builder.set_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "method" => { + builder = builder.set_method( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EndpointConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "types" => { + builder = builder.set_types( + crate::json_deser::deser_list_list_of_endpoint_type(tokens)?, + ); + } + "vpcEndpointIds" => { + builder = builder.set_vpc_endpoint_ids( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mutual_tls_authentication<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MutualTlsAuthentication::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "truststoreUri" => { + builder = builder.set_truststore_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "truststoreVersion" => { + builder = builder.set_truststore_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "truststoreWarnings" => { + builder = builder.set_truststore_warnings( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_method<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_method(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_access_log_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AccessLogSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "format" => { + builder = builder.set_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "destinationArn" => { + builder = builder.set_destination_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_canary_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CanarySettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "percentTraffic" => { + builder = builder.set_percent_traffic( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "deploymentId" => { + builder = builder.set_deployment_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stageVariableOverrides" => { + builder = builder.set_stage_variable_overrides( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "useStageCache" => { + builder = builder.set_use_stage_cache( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_method_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_method_setting(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_api_stage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_api_stage(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_quota_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QuotaSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "limit" => { + builder = builder.set_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "offset" => { + builder = builder.set_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "period" => { + builder = builder.set_period( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::QuotaPeriodType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_throttle_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ThrottleSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "burstLimit" => { + builder = builder.set_burst_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "rateLimit" => { + builder = builder.set_rate_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_api_key<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_api_key(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_authorizer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_authorizer(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_base_path_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_base_path_mapping(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_client_certificate<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_client_certificate(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_deployment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_deployment(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_documentation_part<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_documentation_part(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_documentation_version<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_documentation_version(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_domain_name<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_domain_name(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_gateway_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_gateway_response(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_integration_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_structure_integration_response(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tls_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TlsConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "insecureSkipVerification" => { + builder = builder.set_insecure_skip_verification( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_integration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Integration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::IntegrationType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionType" => { + builder = builder.set_connection_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConnectionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "connectionId" => { + builder = builder.set_connection_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "credentials" => { + builder = builder.set_credentials( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "requestTemplates" => { + builder = builder.set_request_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "passthroughBehavior" => { + builder = builder.set_passthrough_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timeoutInMillis" => { + builder = builder.set_timeout_in_millis( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "cacheNamespace" => { + builder = builder.set_cache_namespace( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cacheKeyParameters" => { + builder = builder.set_cache_key_parameters( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "integrationResponses" => { + builder = builder.set_integration_responses( + crate::json_deser::deser_map_map_of_integration_response( + tokens, + )?, + ); + } + "tlsConfig" => { + builder = builder.set_tls_config( + crate::json_deser::deser_structure_tls_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_method_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_method_response(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_string_to_boolean<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_model(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_request_validator<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_request_validator(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_resource(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_rest_api<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_rest_api(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_sdk_configuration_property<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_sdk_configuration_property(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_sdk_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_sdk_type(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_stage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_stage(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_key_usages<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_list_of_usage(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_usage_plan_key<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_usage_plan_key(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_usage_plan<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_usage_plan(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_vpc_link<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_vpc_link(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_string_to_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_list_of_string(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_method_snapshot<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_method_snapshot(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_endpoint_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EndpointType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_method<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Method::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "httpMethod" => { + builder = builder.set_http_method( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizationType" => { + builder = builder.set_authorization_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerId" => { + builder = builder.set_authorizer_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "apiKeyRequired" => { + builder = builder.set_api_key_required( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "requestValidatorId" => { + builder = builder.set_request_validator_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "operationName" => { + builder = builder.set_operation_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requestParameters" => { + builder = builder.set_request_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "requestModels" => { + builder = builder.set_request_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "methodResponses" => { + builder = builder.set_method_responses( + crate::json_deser::deser_map_map_of_method_response(tokens)?, + ); + } + "methodIntegration" => { + builder = builder.set_method_integration( + crate::json_deser::deser_structure_integration(tokens)?, + ); + } + "authorizationScopes" => { + builder = builder.set_authorization_scopes( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_method_setting<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MethodSetting::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "metricsEnabled" => { + builder = builder.set_metrics_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "loggingLevel" => { + builder = builder.set_logging_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "dataTraceEnabled" => { + builder = builder.set_data_trace_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "throttlingBurstLimit" => { + builder = builder.set_throttling_burst_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "throttlingRateLimit" => { + builder = builder.set_throttling_rate_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "cachingEnabled" => { + builder = builder.set_caching_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "cacheTtlInSeconds" => { + builder = builder.set_cache_ttl_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "cacheDataEncrypted" => { + builder = builder.set_cache_data_encrypted( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "requireAuthorizationForCacheControl" => { + builder = builder.set_require_authorization_for_cache_control( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "unauthorizedCacheControlHeaderStrategy" => { + builder = builder.set_unauthorized_cache_control_header_strategy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::UnauthorizedCacheControlHeaderStrategy::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_api_stage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ApiStage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "apiId" => { + builder = builder.set_api_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stage" => { + builder = builder.set_stage( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "throttle" => { + builder = builder.set_throttle( + crate::json_deser::deser_map_map_of_api_stage_throttle_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_api_key<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ApiKey::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "customerId" => { + builder = builder.set_customer_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "stageKeys" => { + builder = builder.set_stage_keys( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_authorizer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Authorizer::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AuthorizerType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "providerARNs" => { + builder = builder.set_provider_ar_ns( + crate::json_deser::deser_list_list_of_ar_ns(tokens)?, + ); + } + "authType" => { + builder = builder.set_auth_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerUri" => { + builder = builder.set_authorizer_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerCredentials" => { + builder = builder.set_authorizer_credentials( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identitySource" => { + builder = builder.set_identity_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identityValidationExpression" => { + builder = builder.set_identity_validation_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizerResultTtlInSeconds" => { + builder = builder.set_authorizer_result_ttl_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_base_path_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BasePathMapping::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "basePath" => { + builder = builder.set_base_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "restApiId" => { + builder = builder.set_rest_api_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stage" => { + builder = builder.set_stage( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_client_certificate<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ClientCertificate::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pemEncodedCertificate" => { + builder = builder.set_pem_encoded_certificate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "expirationDate" => { + builder = builder.set_expiration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Deployment::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "apiSummary" => { + builder = builder.set_api_summary( + crate::json_deser::deser_map_path_to_map_of_method_snapshot( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_documentation_part<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentationPart::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "location" => { + builder = builder.set_location( + crate::json_deser::deser_structure_documentation_part_location( + tokens, + )?, + ); + } + "properties" => { + builder = builder.set_properties( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_documentation_version<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentationVersion::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_domain_name<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DomainName::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "domainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateName" => { + builder = builder.set_certificate_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateArn" => { + builder = builder.set_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "certificateUploadDate" => { + builder = builder.set_certificate_upload_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "regionalDomainName" => { + builder = builder.set_regional_domain_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalHostedZoneId" => { + builder = builder.set_regional_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalCertificateName" => { + builder = builder.set_regional_certificate_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "regionalCertificateArn" => { + builder = builder.set_regional_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distributionDomainName" => { + builder = builder.set_distribution_domain_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distributionHostedZoneId" => { + builder = builder.set_distribution_hosted_zone_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration( + tokens, + )?, + ); + } + "domainNameStatus" => { + builder = builder.set_domain_name_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DomainNameStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "domainNameStatusMessage" => { + builder = builder.set_domain_name_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityPolicy" => { + builder = builder.set_security_policy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SecurityPolicy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "mutualTlsAuthentication" => { + builder = builder.set_mutual_tls_authentication( + crate::json_deser::deser_structure_mutual_tls_authentication( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_gateway_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GatewayResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "responseType" => { + builder = builder.set_response_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GatewayResponseType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "defaultResponse" => { + builder = builder.set_default_response( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_integration_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IntegrationResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "selectionPattern" => { + builder = builder.set_selection_pattern( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "responseTemplates" => { + builder = builder.set_response_templates( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "contentHandling" => { + builder = builder.set_content_handling( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContentHandlingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_method_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MethodResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "statusCode" => { + builder = builder.set_status_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "responseParameters" => { + builder = builder.set_response_parameters( + crate::json_deser::deser_map_map_of_string_to_boolean(tokens)?, + ); + } + "responseModels" => { + builder = builder.set_response_models( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Model::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "schema" => { + builder = builder.set_schema( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "contentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_request_validator<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RequestValidator::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validateRequestBody" => { + builder = builder.set_validate_request_body( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "validateRequestParameters" => { + builder = builder.set_validate_request_parameters( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Resource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parentId" => { + builder = builder.set_parent_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pathPart" => { + builder = builder.set_path_part( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "path" => { + builder = builder.set_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceMethods" => { + builder = builder.set_resource_methods( + crate::json_deser::deser_map_map_of_method(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rest_api<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RestApi::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "warnings" => { + builder = builder.set_warnings( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "binaryMediaTypes" => { + builder = builder.set_binary_media_types( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "minimumCompressionSize" => { + builder = builder.set_minimum_compression_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "apiKeySource" => { + builder = builder.set_api_key_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ApiKeySourceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "endpointConfiguration" => { + builder = builder.set_endpoint_configuration( + crate::json_deser::deser_structure_endpoint_configuration( + tokens, + )?, + ); + } + "policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "disableExecuteApiEndpoint" => { + builder = builder.set_disable_execute_api_endpoint( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sdk_configuration_property<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SdkConfigurationProperty::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "friendlyName" => { + builder = builder.set_friendly_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "required" => { + builder = builder.set_required( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "defaultValue" => { + builder = builder.set_default_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sdk_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SdkType::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "friendlyName" => { + builder = builder.set_friendly_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "configurationProperties" => { + builder = builder.set_configuration_properties( + crate::json_deser::deser_list_list_of_sdk_configuration_property(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_stage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Stage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "deploymentId" => { + builder = builder.set_deployment_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clientCertificateId" => { + builder = builder.set_client_certificate_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stageName" => { + builder = builder.set_stage_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cacheClusterEnabled" => { + builder = builder.set_cache_cluster_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "cacheClusterSize" => { + builder = builder.set_cache_cluster_size( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CacheClusterSize::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "cacheClusterStatus" => { + builder = builder.set_cache_cluster_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CacheClusterStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "methodSettings" => { + builder = builder.set_method_settings( + crate::json_deser::deser_map_map_of_method_settings(tokens)?, + ); + } + "variables" => { + builder = builder.set_variables( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "documentationVersion" => { + builder = builder.set_documentation_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "accessLogSettings" => { + builder = builder.set_access_log_settings( + crate::json_deser::deser_structure_access_log_settings(tokens)?, + ); + } + "canarySettings" => { + builder = builder.set_canary_settings( + crate::json_deser::deser_structure_canary_settings(tokens)?, + ); + } + "tracingEnabled" => { + builder = builder.set_tracing_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "webAclArn" => { + builder = builder.set_web_acl_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + "createdDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "lastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_usage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_list_list_of_long(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_usage_plan_key<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UsagePlanKey::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_usage_plan<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UsagePlan::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "apiStages" => { + builder = builder.set_api_stages( + crate::json_deser::deser_list_list_of_api_stage(tokens)?, + ); + } + "throttle" => { + builder = builder.set_throttle( + crate::json_deser::deser_structure_throttle_settings(tokens)?, + ); + } + "quota" => { + builder = builder.set_quota( + crate::json_deser::deser_structure_quota_settings(tokens)?, + ); + } + "productCode" => { + builder = builder.set_product_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_vpc_link<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VpcLink::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "targetArns" => { + builder = builder.set_target_arns( + crate::json_deser::deser_list_list_of_string(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VpcLinkStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_map_of_string_to_string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_method_snapshot<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MethodSnapshot::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authorizationType" => { + builder = builder.set_authorization_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "apiKeyRequired" => { + builder = builder.set_api_key_required( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_of_api_stage_throttle_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_throttle_settings(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_long<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()); + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/apigateway/src/json_errors.rs b/sdk/apigateway/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/apigateway/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/apigateway/src/lib.rs b/sdk/apigateway/src/lib.rs index a1101b05f183..1d22ca9008d0 100644 --- a/sdk/apigateway/src/lib.rs +++ b/sdk/apigateway/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon API Gateway //!

Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.

@@ -12,7 +13,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -20,16 +20,14 @@ pub mod error; mod error_meta; mod http_serde; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/apigateway/src/model.rs b/sdk/apigateway/src/model.rs index 5dafc161c252..6c3c9133520c 100644 --- a/sdk/apigateway/src/model.rs +++ b/sdk/apigateway/src/model.rs @@ -31,7 +31,7 @@ impl std::convert::From<&str> for VpcLinkStatus { impl std::str::FromStr for VpcLinkStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcLinkStatus::from(s)) } } @@ -51,36 +51,19 @@ impl AsRef for VpcLinkStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcLinkStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A single patch operation to apply to the specified resource. Please refer to /// http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchOperation { ///

An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.

- #[serde(rename = "op")] - #[serde(default)] pub op: std::option::Option, ///

The op operation's target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated with it.

- #[serde(rename = "path")] - #[serde(default)] pub path: std::option::Option, ///

The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see Using JSON for Parameters.

- #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId".

- #[serde(rename = "from")] - #[serde(default)] pub from: std::option::Option, } impl std::fmt::Debug for PatchOperation { @@ -195,7 +178,7 @@ impl std::convert::From<&str> for Op { impl std::str::FromStr for Op { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Op::from(s)) } } @@ -217,31 +200,16 @@ impl AsRef for Op { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Op { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

Quotas configured for a usage plan.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QuotaSettings { ///

The maximum number of requests that can be made in a given time period.

- #[serde(rename = "limit")] - #[serde(default)] pub limit: i32, ///

The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

- #[serde(rename = "offset")] - #[serde(default)] pub offset: i32, ///

The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

- #[serde(rename = "period")] - #[serde(default)] pub period: std::option::Option, } impl std::fmt::Debug for QuotaSettings { @@ -341,7 +309,7 @@ impl std::convert::From<&str> for QuotaPeriodType { impl std::str::FromStr for QuotaPeriodType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(QuotaPeriodType::from(s)) } } @@ -360,27 +328,14 @@ impl AsRef for QuotaPeriodType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for QuotaPeriodType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

The API request rate limits.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ThrottleSettings { ///

The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.

- #[serde(rename = "burstLimit")] - #[serde(default)] pub burst_limit: i32, ///

The API request steady-state rate limit.

- #[serde(rename = "rateLimit")] - #[serde(default)] pub rate_limit: f64, } impl std::fmt::Debug for ThrottleSettings { @@ -437,19 +392,13 @@ impl ThrottleSettings { ///

API stage name of the associated API stage in a usage plan.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ApiStage { ///

API Id of the associated API stage in a usage plan.

- #[serde(rename = "apiId")] - #[serde(default)] pub api_id: std::option::Option, ///

API stage name of the associated API stage in a usage plan.

- #[serde(rename = "stage")] - #[serde(default)] pub stage: std::option::Option, ///

Map containing method level throttling information for API stage in a usage plan.

- #[serde(rename = "throttle")] - #[serde(default)] pub throttle: std::option::Option< std::collections::HashMap, >, @@ -532,24 +481,16 @@ impl ApiStage { ///

Configuration settings of a canary deployment.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CanarySettings { ///

The percent (0-100) of traffic diverted to a canary deployment.

- #[serde(rename = "percentTraffic")] - #[serde(default)] pub percent_traffic: f64, ///

The ID of the canary deployment.

- #[serde(rename = "deploymentId")] - #[serde(default)] pub deployment_id: std::option::Option, ///

Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.

- #[serde(rename = "stageVariableOverrides")] - #[serde(default)] pub stage_variable_overrides: std::option::Option>, ///

A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

- #[serde(rename = "useStageCache")] - #[serde(default)] pub use_stage_cache: bool, } impl std::fmt::Debug for CanarySettings { @@ -645,15 +586,11 @@ impl CanarySettings { ///

Access log settings, including the access log format and access log destination ARN.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccessLogSettings { ///

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

- #[serde(rename = "format")] - #[serde(default)] pub format: std::option::Option, ///

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.

- #[serde(rename = "destinationArn")] - #[serde(default)] pub destination_arn: std::option::Option, } impl std::fmt::Debug for AccessLogSettings { @@ -713,47 +650,27 @@ impl AccessLogSettings { ///

Specifies the method setting properties.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MethodSetting { ///

Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

- #[serde(rename = "metricsEnabled")] - #[serde(default)] pub metrics_enabled: bool, ///

Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

- #[serde(rename = "loggingLevel")] - #[serde(default)] pub logging_level: std::option::Option, ///

Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

- #[serde(rename = "dataTraceEnabled")] - #[serde(default)] pub data_trace_enabled: bool, ///

Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

- #[serde(rename = "throttlingBurstLimit")] - #[serde(default)] pub throttling_burst_limit: i32, ///

Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

- #[serde(rename = "throttlingRateLimit")] - #[serde(default)] pub throttling_rate_limit: f64, ///

Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.

- #[serde(rename = "cachingEnabled")] - #[serde(default)] pub caching_enabled: bool, ///

Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

- #[serde(rename = "cacheTtlInSeconds")] - #[serde(default)] pub cache_ttl_in_seconds: i32, ///

Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.

- #[serde(rename = "cacheDataEncrypted")] - #[serde(default)] pub cache_data_encrypted: bool, ///

Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.

- #[serde(rename = "requireAuthorizationForCacheControl")] - #[serde(default)] pub require_authorization_for_cache_control: bool, ///

Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

- #[serde(rename = "unauthorizedCacheControlHeaderStrategy")] - #[serde(default)] pub unauthorized_cache_control_header_strategy: std::option::Option, } @@ -961,7 +878,7 @@ impl std::convert::From<&str> for UnauthorizedCacheControlHeaderStrategy { impl std::str::FromStr for UnauthorizedCacheControlHeaderStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UnauthorizedCacheControlHeaderStrategy::from(s)) } } @@ -984,15 +901,6 @@ impl AsRef for UnauthorizedCacheControlHeaderStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UnauthorizedCacheControlHeaderStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

Returns the status of the CacheCluster.

#[non_exhaustive] @@ -1029,7 +937,7 @@ impl std::convert::From<&str> for CacheClusterStatus { impl std::str::FromStr for CacheClusterStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CacheClusterStatus::from(s)) } } @@ -1050,15 +958,6 @@ impl AsRef for CacheClusterStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CacheClusterStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

Returns the size of the CacheCluster.

#[non_exhaustive] @@ -1101,7 +1000,7 @@ impl std::convert::From<&str> for CacheClusterSize { impl std::str::FromStr for CacheClusterSize { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CacheClusterSize::from(s)) } } @@ -1125,27 +1024,14 @@ impl AsRef for CacheClusterSize { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CacheClusterSize { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.

#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndpointConfiguration { ///

A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE". For a regional API and its custom domain name, the endpoint type is REGIONAL. For a private API, the endpoint type is PRIVATE.

- #[serde(rename = "types")] - #[serde(default)] pub types: std::option::Option>, ///

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.

- #[serde(rename = "vpcEndpointIds")] - #[serde(default)] pub vpc_endpoint_ids: std::option::Option>, } impl std::fmt::Debug for EndpointConfiguration { @@ -1239,7 +1125,7 @@ impl std::convert::From<&str> for EndpointType { impl std::str::FromStr for EndpointType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndpointType::from(s)) } } @@ -1258,15 +1144,6 @@ impl AsRef for EndpointType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndpointType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1296,7 +1173,7 @@ impl std::convert::From<&str> for ApiKeySourceType { impl std::str::FromStr for ApiKeySourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ApiKeySourceType::from(s)) } } @@ -1314,15 +1191,6 @@ impl AsRef for ApiKeySourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ApiKeySourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

/// Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is @@ -1489,40 +1357,24 @@ impl<'de> serde::Deserialize<'de> for ApiKeySourceType { /// Set up an API's method /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Method { ///

The method's HTTP verb.

- #[serde(rename = "httpMethod")] - #[serde(default)] pub http_method: std::option::Option, ///

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

- #[serde(rename = "authorizationType")] - #[serde(default)] pub authorization_type: std::option::Option, ///

The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

- #[serde(rename = "authorizerId")] - #[serde(default)] pub authorizer_id: std::option::Option, ///

A boolean flag specifying whether a valid ApiKey is required to invoke this method.

- #[serde(rename = "apiKeyRequired")] - #[serde(default)] pub api_key_required: std::option::Option, ///

The identifier of a RequestValidator for request validation.

- #[serde(rename = "requestValidatorId")] - #[serde(default)] pub request_validator_id: std::option::Option, ///

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

- #[serde(rename = "operationName")] - #[serde(default)] pub operation_name: std::option::Option, ///

A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

- #[serde(rename = "requestParameters")] - #[serde(default)] pub request_parameters: std::option::Option>, ///

A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

- #[serde(rename = "requestModels")] - #[serde(default)] pub request_models: std::option::Option>, ///

Gets a method response associated with a given HTTP status code.

@@ -1572,8 +1424,6 @@ pub struct Method { ///
/// AWS CLI ///
- #[serde(rename = "methodResponses")] - #[serde(default)] pub method_responses: std::option::Option< std::collections::HashMap, >, @@ -1667,12 +1517,8 @@ pub struct Method { ///
/// AWS CLI ///
- #[serde(rename = "methodIntegration")] - #[serde(default)] pub method_integration: std::option::Option, ///

A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

- #[serde(rename = "authorizationScopes")] - #[serde(default)] pub authorization_scopes: std::option::Option>, } impl std::fmt::Debug for Method { @@ -1982,7 +1828,7 @@ impl Method { /// Creating an API /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Integration { ///

Specifies an API method integration type. The valid value is one of the following:

///
    @@ -1993,12 +1839,8 @@ pub struct Integration { ///
  • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.
  • ///
///

For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

- #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

Specifies the integration's HTTP method type.

- #[serde(rename = "httpMethod")] - #[serde(default)] pub http_method: std::option::Option, ///

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

///
    @@ -2006,29 +1848,17 @@ pub struct Integration { /// ///
  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

    ///
- #[serde(rename = "uri")] - #[serde(default)] pub uri: std::option::Option, ///

The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

- #[serde(rename = "connectionType")] - #[serde(default)] pub connection_type: std::option::Option, ///

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

- #[serde(rename = "connectionId")] - #[serde(default)] pub connection_id: std::option::Option, ///

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

- #[serde(rename = "credentials")] - #[serde(default)] pub credentials: std::option::Option, ///

A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

- #[serde(rename = "requestParameters")] - #[serde(default)] pub request_parameters: std::option::Option>, ///

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

- #[serde(rename = "requestTemplates")] - #[serde(default)] pub request_templates: std::option::Option>, ///
@@ -2055,8 +1885,6 @@ pub struct Integration { /// /// ///
- #[serde(rename = "passthroughBehavior")] - #[serde(default)] pub passthrough_behavior: std::option::Option, ///

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

///
    @@ -2064,20 +1892,12 @@ pub struct Integration { ///
  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

  • ///
///

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

- #[serde(rename = "contentHandling")] - #[serde(default)] pub content_handling: std::option::Option, ///

Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

- #[serde(rename = "timeoutInMillis")] - #[serde(default)] pub timeout_in_millis: i32, ///

Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

- #[serde(rename = "cacheNamespace")] - #[serde(default)] pub cache_namespace: std::option::Option, ///

A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

- #[serde(rename = "cacheKeyParameters")] - #[serde(default)] pub cache_key_parameters: std::option::Option>, ///

Specifies the integration's responses.

///
@@ -2124,14 +1944,10 @@ pub struct Integration { ///
/// Creating an API ///
- #[serde(rename = "integrationResponses")] - #[serde(default)] pub integration_responses: std::option::Option< std::collections::HashMap, >, ///

Specifies the TLS configuration for an integration.

- #[serde(rename = "tlsConfig")] - #[serde(default)] pub tls_config: std::option::Option, } impl std::fmt::Debug for Integration { @@ -2445,7 +2261,7 @@ impl Integration { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TlsConfig { ///

Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is /// issued by a supported certificate authority. This isn’t recommended, but it enables you to @@ -2454,8 +2270,6 @@ pub struct TlsConfig { /// validation, which includes checking the certificate's expiration date, hostname, and /// presence of a root certificate authority. Supported only for HTTP and /// HTTP_PROXY integrations.

- #[serde(rename = "insecureSkipVerification")] - #[serde(default)] pub insecure_skip_verification: bool, } impl std::fmt::Debug for TlsConfig { @@ -2512,25 +2326,17 @@ impl TlsConfig { /// Creating an API ///
#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IntegrationResponse { ///

Specifies the status code that is used to map the integration response to an existing MethodResponse.

- #[serde(rename = "statusCode")] - #[serde(default)] pub status_code: std::option::Option, ///

Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

- #[serde(rename = "selectionPattern")] - #[serde(default)] pub selection_pattern: std::option::Option, ///

A key-value map specifying response parameters that are passed to the method response from the back end. /// The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

- #[serde(rename = "responseParameters")] - #[serde(default)] pub response_parameters: std::option::Option>, ///

Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

- #[serde(rename = "responseTemplates")] - #[serde(default)] pub response_templates: std::option::Option>, ///

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

@@ -2539,8 +2345,6 @@ pub struct IntegrationResponse { ///
  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

  • /// ///

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

    - #[serde(rename = "contentHandling")] - #[serde(default)] pub content_handling: std::option::Option, } impl std::fmt::Debug for IntegrationResponse { @@ -2694,7 +2498,7 @@ impl std::convert::From<&str> for ContentHandlingStrategy { impl std::str::FromStr for ContentHandlingStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContentHandlingStrategy::from(s)) } } @@ -2712,15 +2516,6 @@ impl AsRef for ContentHandlingStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContentHandlingStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2750,7 +2545,7 @@ impl std::convert::From<&str> for ConnectionType { impl std::str::FromStr for ConnectionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionType::from(s)) } } @@ -2768,15 +2563,6 @@ impl AsRef for ConnectionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The integration type. The valid value is HTTP for integrating an API method with an HTTP backend; AWS with any AWS service endpoints; MOCK for testing without actually invoking the backend; HTTP_PROXY for integrating with the HTTP proxy integration; AWS_PROXY for integrating with the Lambda proxy integration.

    #[non_exhaustive] @@ -2813,7 +2599,7 @@ impl std::convert::From<&str> for IntegrationType { impl std::str::FromStr for IntegrationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IntegrationType::from(s)) } } @@ -2834,15 +2620,6 @@ impl AsRef for IntegrationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IntegrationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

    ///
    @@ -2890,20 +2667,14 @@ impl<'de> serde::Deserialize<'de> for IntegrationType { /// Creating an API ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MethodResponse { ///

    The method response's status code.

    - #[serde(rename = "statusCode")] - #[serde(default)] pub status_code: std::option::Option, ///

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

    - #[serde(rename = "responseParameters")] - #[serde(default)] pub response_parameters: std::option::Option>, ///

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

    - #[serde(rename = "responseModels")] - #[serde(default)] pub response_models: std::option::Option>, } @@ -3056,7 +2827,7 @@ impl std::convert::From<&str> for GatewayResponseType { impl std::str::FromStr for GatewayResponseType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GatewayResponseType::from(s)) } } @@ -3092,19 +2863,10 @@ impl AsRef for GatewayResponseType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GatewayResponseType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MutualTlsAuthentication { ///

    An Amazon S3 URL that specifies the truststore for mutual TLS authentication, /// for example s3://bucket-name/key-name. @@ -3112,20 +2874,14 @@ pub struct MutualTlsAuthentication { /// To update the truststore, upload a new version to S3, and then update your custom domain /// name to use the new version. To update the truststore, you must have permissions to /// access the S3 object.

    - #[serde(rename = "truststoreUri")] - #[serde(default)] pub truststore_uri: std::option::Option, ///

    The version of the S3 object that contains your truststore. To /// specify a version, you must have versioning enabled for the S3 bucket.

    - #[serde(rename = "truststoreVersion")] - #[serde(default)] pub truststore_version: std::option::Option, ///

    A list of warnings that API Gateway returns while processing your truststore. Invalid /// certificates produce warnings. Mutual TLS is still enabled, but some clients might not /// be able to access your API. To resolve warnings, upload a new truststore to S3, and then /// update you domain name to use the new version.

    - #[serde(rename = "truststoreWarnings")] - #[serde(default)] pub truststore_warnings: std::option::Option>, } impl std::fmt::Debug for MutualTlsAuthentication { @@ -3236,7 +2992,7 @@ impl std::convert::From<&str> for SecurityPolicy { impl std::str::FromStr for SecurityPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SecurityPolicy::from(s)) } } @@ -3254,15 +3010,6 @@ impl AsRef for SecurityPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SecurityPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3294,7 +3041,7 @@ impl std::convert::From<&str> for DomainNameStatus { impl std::str::FromStr for DomainNameStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DomainNameStatus::from(s)) } } @@ -3313,39 +3060,20 @@ impl AsRef for DomainNameStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DomainNameStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies the target API entity to which the documentation applies.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentationPartLocation { ///

    [Required] The type of API entity to which the documentation content applies. Valid values are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

    - #[serde(rename = "path")] - #[serde(default)] pub path: std::option::Option, ///

    The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

    - #[serde(rename = "method")] - #[serde(default)] pub method: std::option::Option, ///

    The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

    - #[serde(rename = "statusCode")] - #[serde(default)] pub status_code: std::option::Option, ///

    The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for DocumentationPartLocation { @@ -3487,7 +3215,7 @@ impl std::convert::From<&str> for DocumentationPartType { impl std::str::FromStr for DocumentationPartType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentationPartType::from(s)) } } @@ -3515,27 +3243,14 @@ impl AsRef for DocumentationPartType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentationPartType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents a summary of a Method resource, given a particular date and time.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MethodSnapshot { ///

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

    - #[serde(rename = "authorizationType")] - #[serde(default)] pub authorization_type: std::option::Option, ///

    Specifies whether the method requires a valid ApiKey.

    - #[serde(rename = "apiKeyRequired")] - #[serde(default)] pub api_key_required: bool, } impl std::fmt::Debug for MethodSnapshot { @@ -3624,7 +3339,7 @@ impl std::convert::From<&str> for AuthorizerType { impl std::str::FromStr for AuthorizerType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AuthorizerType::from(s)) } } @@ -3643,15 +3358,6 @@ impl AsRef for AuthorizerType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AuthorizerType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3681,7 +3387,7 @@ impl std::convert::From<&str> for PutMode { impl std::str::FromStr for PutMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PutMode::from(s)) } } @@ -3699,15 +3405,6 @@ impl AsRef for PutMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PutMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3735,7 +3432,7 @@ impl std::convert::From<&str> for ApiKeysFormat { impl std::str::FromStr for ApiKeysFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ApiKeysFormat::from(s)) } } @@ -3752,50 +3449,27 @@ impl AsRef for ApiKeysFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ApiKeysFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

    ///
    ///

    To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcLink { ///

    The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The name used to label and identify the VPC link.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The description of the VPC link.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

    - #[serde(rename = "targetArns")] - #[serde(default)] pub target_arns: std::option::Option>, ///

    The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    A description about the VPC link status.

    - #[serde(rename = "statusMessage")] - #[serde(default)] pub status_message: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -3941,39 +3615,23 @@ impl VpcLink { /// Create and Use Usage Plans /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UsagePlan { ///

    The identifier of a UsagePlan resource.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The name of a usage plan.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The description of a usage plan.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The associated API stages of a usage plan.

    - #[serde(rename = "apiStages")] - #[serde(default)] pub api_stages: std::option::Option>, ///

    The request throttle limits of a usage plan.

    - #[serde(rename = "throttle")] - #[serde(default)] pub throttle: std::option::Option, ///

    The maximum number of permitted requests per a given unit time interval.

    - #[serde(rename = "quota")] - #[serde(default)] pub quota: std::option::Option, ///

    The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

    - #[serde(rename = "productCode")] - #[serde(default)] pub product_code: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -4131,23 +3789,15 @@ impl UsagePlan { /// Create and Use Usage Plans /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UsagePlanKey { ///

    The Id of a usage plan key.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The type of a usage plan key. Currently, the valid key type is API_KEY.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The value of a usage plan key.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The name of a usage plan key.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for UsagePlanKey { @@ -4231,86 +3881,46 @@ impl UsagePlanKey { /// Deploy an API /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Stage { ///

    The identifier of the Deployment that the stage points to.

    - #[serde(rename = "deploymentId")] - #[serde(default)] pub deployment_id: std::option::Option, ///

    The identifier of a client certificate for an API stage.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] pub client_certificate_id: std::option::Option, ///

    The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

    - #[serde(rename = "stageName")] - #[serde(default)] pub stage_name: std::option::Option, ///

    The stage's description.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    Specifies whether a cache cluster is enabled for the stage.

    - #[serde(rename = "cacheClusterEnabled")] - #[serde(default)] pub cache_cluster_enabled: bool, ///

    The size of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterSize")] - #[serde(default)] pub cache_cluster_size: std::option::Option, ///

    The status of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterStatus")] - #[serde(default)] pub cache_cluster_status: std::option::Option, ///

    A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

    - #[serde(rename = "methodSettings")] - #[serde(default)] pub method_settings: std::option::Option< std::collections::HashMap, >, ///

    A map that defines the stage variables for a Stage resource. Variable names can /// have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    - #[serde(rename = "variables")] - #[serde(default)] pub variables: std::option::Option>, ///

    The version of the associated API documentation.

    - #[serde(rename = "documentationVersion")] - #[serde(default)] pub documentation_version: std::option::Option, ///

    Settings for logging access in this stage.

    - #[serde(rename = "accessLogSettings")] - #[serde(default)] pub access_log_settings: std::option::Option, ///

    Settings for the canary deployment in this stage.

    - #[serde(rename = "canarySettings")] - #[serde(default)] pub canary_settings: std::option::Option, ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - #[serde(rename = "tracingEnabled")] - #[serde(default)] pub tracing_enabled: bool, ///

    The ARN of the WebAcl associated with the Stage.

    - #[serde(rename = "webAclArn")] - #[serde(default)] pub web_acl_arn: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The timestamp when the stage was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The timestamp when the stage last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_date: std::option::Option, } impl std::fmt::Debug for Stage { @@ -4610,23 +4220,15 @@ impl Stage { ///

    A type of SDK that API Gateway can generate.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SdkType { ///

    The identifier of an SdkType instance.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The user-friendly name of an SdkType instance.

    - #[serde(rename = "friendlyName")] - #[serde(default)] pub friendly_name: std::option::Option, ///

    The description of an SdkType.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    A list of configuration properties of an SdkType.

    - #[serde(rename = "configurationProperties")] - #[serde(default)] pub configuration_properties: std::option::Option>, } @@ -4719,27 +4321,17 @@ impl SdkType { ///

    A configuration property of an SDK type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SdkConfigurationProperty { ///

    The name of a an SdkType configuration property.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The user-friendly name of an SdkType configuration property.

    - #[serde(rename = "friendlyName")] - #[serde(default)] pub friendly_name: std::option::Option, ///

    The description of an SdkType configuration property.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

    - #[serde(rename = "required")] - #[serde(default)] pub required: bool, ///

    The default value of an SdkType configuration property.

    - #[serde(rename = "defaultValue")] - #[serde(default)] pub default_value: std::option::Option, } impl std::fmt::Debug for SdkConfigurationProperty { @@ -4841,63 +4433,34 @@ impl SdkConfigurationProperty { /// Create an API /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RestApi { ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] pub version: std::option::Option, ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] pub warnings: std::option::Option>, ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] pub binary_media_types: std::option::Option>, ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] pub minimum_compression_size: std::option::Option, ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] pub api_key_source: std::option::Option, ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] pub endpoint_configuration: std::option::Option, ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] pub policy: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] pub disable_execute_api_endpoint: bool, } impl std::fmt::Debug for RestApi { @@ -5127,23 +4690,15 @@ impl RestApi { /// Create an API /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Resource { ///

    The resource's identifier.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The parent resource's identifier.

    - #[serde(rename = "parentId")] - #[serde(default)] pub parent_id: std::option::Option, ///

    The last path segment for this resource.

    - #[serde(rename = "pathPart")] - #[serde(default)] pub path_part: std::option::Option, ///

    The full path for this resource.

    - #[serde(rename = "path")] - #[serde(default)] pub path: std::option::Option, ///

    Gets an API resource's method of a given HTTP verb.

    ///
    @@ -5298,8 +4853,6 @@ pub struct Resource { ///
    ///
    ///
    - #[serde(rename = "resourceMethods")] - #[serde(default)] pub resource_methods: std::option::Option>, } @@ -5409,23 +4962,15 @@ impl Resource { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RequestValidator { ///

    The identifier of this RequestValidator.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The name of this RequestValidator

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

    - #[serde(rename = "validateRequestBody")] - #[serde(default)] pub validate_request_body: bool, ///

    A Boolean flag to indicate whether to validate request parameters (true) or not (false).

    - #[serde(rename = "validateRequestParameters")] - #[serde(default)] pub validate_request_parameters: bool, } impl std::fmt::Debug for RequestValidator { @@ -5516,27 +5061,17 @@ impl RequestValidator { /// Method, MethodResponse, Models and Mappings /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Model { ///

    The identifier for the model resource.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The name of the model. Must be an alphanumeric string.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The description of the model.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

    - #[serde(rename = "schema")] - #[serde(default)] pub schema: std::option::Option, ///

    The content-type for the model.

    - #[serde(rename = "contentType")] - #[serde(default)] pub content_type: std::option::Option, } impl std::fmt::Debug for Model { @@ -5686,29 +5221,19 @@ impl Model { /// Customize Gateway Responses /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GatewayResponse { ///

    The response type of the associated GatewayResponse. Valid values are

    • ACCESS_DENIED
    • API_CONFIGURATION_ERROR
    • AUTHORIZER_FAILURE
    • AUTHORIZER_CONFIGURATION_ERROR
    • BAD_REQUEST_PARAMETERS
    • BAD_REQUEST_BODY
    • DEFAULT_4XX
    • DEFAULT_5XX
    • EXPIRED_TOKEN
    • INVALID_SIGNATURE
    • INTEGRATION_FAILURE
    • INTEGRATION_TIMEOUT
    • INVALID_API_KEY
    • MISSING_AUTHENTICATION_TOKEN
    • QUOTA_EXCEEDED
    • REQUEST_TOO_LARGE
    • RESOURCE_NOT_FOUND
    • THROTTLED
    • UNAUTHORIZED
    • UNSUPPORTED_MEDIA_TYPE

    - #[serde(rename = "responseType")] - #[serde(default)] pub response_type: std::option::Option, ///

    The HTTP status code for this GatewayResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] pub status_code: std::option::Option, ///

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseParameters")] - #[serde(default)] pub response_parameters: std::option::Option>, ///

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] pub response_templates: std::option::Option>, ///

    A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

    - #[serde(rename = "defaultResponse")] - #[serde(default)] pub default_response: bool, } impl std::fmt::Debug for GatewayResponse { @@ -5835,75 +5360,40 @@ impl GatewayResponse { /// Set a Custom Host Name for an API /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DomainName { ///

    The custom domain name as an API host name, for example, my-api.example.com.

    - #[serde(rename = "domainName")] - #[serde(default)] pub domain_name: std::option::Option, ///

    The name of the certificate that will be used by edge-optimized endpoint for this domain name.

    - #[serde(rename = "certificateName")] - #[serde(default)] pub certificate_name: std::option::Option, ///

    The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "certificateArn")] - #[serde(default)] pub certificate_arn: std::option::Option, ///

    The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

    - #[serde(rename = "certificateUploadDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub certificate_upload_date: std::option::Option, ///

    The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

    - #[serde(rename = "regionalDomainName")] - #[serde(default)] pub regional_domain_name: std::option::Option, ///

    The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "regionalHostedZoneId")] - #[serde(default)] pub regional_hosted_zone_id: std::option::Option, ///

    The name of the certificate that will be used for validating the regional domain name.

    - #[serde(rename = "regionalCertificateName")] - #[serde(default)] pub regional_certificate_name: std::option::Option, ///

    The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "regionalCertificateArn")] - #[serde(default)] pub regional_certificate_arn: std::option::Option, ///

    The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

    - #[serde(rename = "distributionDomainName")] - #[serde(default)] pub distribution_domain_name: std::option::Option, ///

    The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "distributionHostedZoneId")] - #[serde(default)] pub distribution_hosted_zone_id: std::option::Option, ///

    The endpoint configuration of this DomainName showing the endpoint types of the domain name.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] pub endpoint_configuration: std::option::Option, ///

    The status of the DomainName migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

    - #[serde(rename = "domainNameStatus")] - #[serde(default)] pub domain_name_status: std::option::Option, ///

    An optional text message containing detailed information about status of the DomainName migration.

    - #[serde(rename = "domainNameStatusMessage")] - #[serde(default)] pub domain_name_status_message: std::option::Option, ///

    The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

    - #[serde(rename = "securityPolicy")] - #[serde(default)] pub security_policy: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

    - #[serde(rename = "mutualTlsAuthentication")] - #[serde(default)] pub mutual_tls_authentication: std::option::Option, } impl std::fmt::Debug for DomainName { @@ -6202,22 +5692,13 @@ impl DomainName { /// Documenting an API, DocumentationPart, DocumentationVersions /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentationVersion { ///

    The version identifier of the API documentation snapshot.

    - #[serde(rename = "version")] - #[serde(default)] pub version: std::option::Option, ///

    The date when the API documentation snapshot is created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The description of the API documentation snapshot.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, } impl std::fmt::Debug for DocumentationVersion { @@ -6295,19 +5776,13 @@ impl DocumentationVersion { /// Documenting an API, DocumentationParts /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentationPart { ///

    The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

    - #[serde(rename = "location")] - #[serde(default)] pub location: std::option::Option, ///

    A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

    - #[serde(rename = "properties")] - #[serde(default)] pub properties: std::option::Option, } impl std::fmt::Debug for DocumentationPart { @@ -6405,7 +5880,7 @@ impl std::convert::From<&str> for LocationStatusType { impl std::str::FromStr for LocationStatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LocationStatusType::from(s)) } } @@ -6423,15 +5898,6 @@ impl AsRef for LocationStatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LocationStatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

    ///
    To create a deployment, call POST on the Deployments resource of a RestApi. @@ -6441,26 +5907,15 @@ impl<'de> serde::Deserialize<'de> for LocationStatusType { /// AWS SDKs ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Deployment { ///

    The identifier for the deployment resource.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The description for the deployment resource.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The date and time that the deployment resource was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    A summary of the RestApi at the date and time that the deployment resource was created.

    - #[serde(rename = "apiSummary")] - #[serde(default)] pub api_summary: std::option::Option< std::collections::HashMap< std::string::String, @@ -6571,37 +6026,19 @@ impl Deployment { /// Use Client-Side Certificate /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ClientCertificate { ///

    The identifier of the client certificate.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] pub client_certificate_id: std::option::Option, ///

    The description of the client certificate.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

    - #[serde(rename = "pemEncodedCertificate")] - #[serde(default)] pub pem_encoded_certificate: std::option::Option, ///

    The timestamp when the client certificate was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The timestamp when the client certificate will expire.

    - #[serde(rename = "expirationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub expiration_date: std::option::Option, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -6735,19 +6172,13 @@ impl ClientCertificate { /// Use Custom Domain Names /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BasePathMapping { ///

    The base path name that callers of the API must provide as part of the URL after the domain name.

    - #[serde(rename = "basePath")] - #[serde(default)] pub base_path: std::option::Option, ///

    The string identifier of the associated RestApi.

    - #[serde(rename = "restApiId")] - #[serde(default)] pub rest_api_id: std::option::Option, ///

    The name of the associated stage.

    - #[serde(rename = "stage")] - #[serde(default)] pub stage: std::option::Option, } impl std::fmt::Debug for BasePathMapping { @@ -6820,47 +6251,27 @@ impl BasePathMapping { /// Use Cognito User Pool as Authorizer /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Authorizer { ///

    The identifier for the authorizer resource.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    [Required] The name of the authorizer.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

    - #[serde(rename = "providerARNs")] - #[serde(default)] pub provider_ar_ns: std::option::Option>, ///

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

    - #[serde(rename = "authType")] - #[serde(default)] pub auth_type: std::option::Option, ///

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

    - #[serde(rename = "authorizerUri")] - #[serde(default)] pub authorizer_uri: std::option::Option, ///

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    - #[serde(rename = "authorizerCredentials")] - #[serde(default)] pub authorizer_credentials: std::option::Option, ///

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

    - #[serde(rename = "identitySource")] - #[serde(default)] pub identity_source: std::option::Option, ///

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

    - #[serde(rename = "identityValidationExpression")] - #[serde(default)] pub identity_validation_expression: std::option::Option, ///

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    - #[serde(rename = "authorizerResultTtlInSeconds")] - #[serde(default)] pub authorizer_result_ttl_in_seconds: std::option::Option, } impl std::fmt::Debug for Authorizer { @@ -7047,53 +6458,27 @@ impl Authorizer { /// Use API Keys /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ApiKey { ///

    The identifier of the API Key.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The value of the API Key.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The name of the API Key.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

    - #[serde(rename = "customerId")] - #[serde(default)] pub customer_id: std::option::Option, ///

    The description of the API Key.

    - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, ///

    Specifies whether the API Key can be used by callers.

    - #[serde(rename = "enabled")] - #[serde(default)] pub enabled: bool, ///

    The timestamp when the API Key was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The timestamp when the API Key was last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_date: std::option::Option, ///

    A list of Stage resources that are associated with the ApiKey resource.

    - #[serde(rename = "stageKeys")] - #[serde(default)] pub stage_keys: std::option::Option>, ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -7269,7 +6654,7 @@ impl ApiKey { ///

    If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MutualTlsAuthenticationInput { ///

    An Amazon S3 resource ARN that specifies the truststore for mutual TLS authentication, /// for example, @@ -7278,13 +6663,9 @@ pub struct MutualTlsAuthenticationInput { /// To update the truststore, upload a new version to S3, and then update your custom domain /// name to use the new version. To update the truststore, you must have permissions to /// access the S3 object.

    - #[serde(rename = "truststoreUri")] - #[serde(default)] pub truststore_uri: std::option::Option, ///

    The version of the S3 object that contains your truststore. To /// specify a version, you must have versioning enabled for the S3 bucket.

    - #[serde(rename = "truststoreVersion")] - #[serde(default)] pub truststore_version: std::option::Option, } impl std::fmt::Debug for MutualTlsAuthenticationInput { @@ -7354,20 +6735,14 @@ impl MutualTlsAuthenticationInput { ///

    The input configuration for a canary deployment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeploymentCanarySettings { ///

    The percentage (0.0-100.0) of traffic routed to the canary deployment.

    - #[serde(rename = "percentTraffic")] - #[serde(default)] pub percent_traffic: f64, ///

    A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

    - #[serde(rename = "stageVariableOverrides")] - #[serde(default)] pub stage_variable_overrides: std::option::Option>, ///

    A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

    - #[serde(rename = "useStageCache")] - #[serde(default)] pub use_stage_cache: bool, } impl std::fmt::Debug for DeploymentCanarySettings { @@ -7448,15 +6823,11 @@ impl DeploymentCanarySettings { ///

    A reference to a unique stage identified in the format {restApiId}/{stage}.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StageKey { ///

    The string identifier of the associated RestApi.

    - #[serde(rename = "restApiId")] - #[serde(default)] pub rest_api_id: std::option::Option, ///

    The stage name associated with the stage key.

    - #[serde(rename = "stageName")] - #[serde(default)] pub stage_name: std::option::Option, } impl std::fmt::Debug for StageKey { diff --git a/sdk/apigateway/src/operation_deser.rs b/sdk/apigateway/src/operation_deser.rs index d3828a2493e1..8777c51522bb 100644 --- a/sdk/apigateway/src/operation_deser.rs +++ b/sdk/apigateway/src/operation_deser.rs @@ -12,92 +12,93 @@ pub fn parse_create_api_key_error( Err(match error_code { "BadRequestException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::BadRequestError({ + kind: crate::error::CreateApiKeyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateApiKeyError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::ConflictError({ + kind: crate::error::CreateApiKeyErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateApiKeyError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::LimitExceededError({ + kind: crate::error::CreateApiKeyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateApiKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_api_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateApiKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_api_key_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateApiKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::NotFoundError({ + kind: crate::error::CreateApiKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateApiKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::TooManyRequestsError({ + kind: crate::error::CreateApiKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateApiKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_api_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateApiKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_api_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateApiKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateApiKeyError { meta: generic, - kind: crate::error::CreateApiKeyErrorKind::UnauthorizedError({ + kind: crate::error::CreateApiKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateApiKeyError::unhandled)?; output.build() }), }, @@ -114,7 +115,7 @@ pub fn parse_create_api_key_response( let mut output = crate::output::create_api_key_output::Builder::default(); let _ = response; output = - crate::json_deser::create_api_key_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_api_key(response.body().as_ref(), output) .map_err(crate::error::CreateApiKeyError::unhandled)?; output.build() }) @@ -134,81 +135,79 @@ pub fn parse_create_authorizer_error( Err(match error_code { "BadRequestException" => crate::error::CreateAuthorizerError { meta: generic, - kind: crate::error::CreateAuthorizerErrorKind::BadRequestError({ + kind: crate::error::CreateAuthorizerErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAuthorizerError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateAuthorizerError { meta: generic, - kind: crate::error::CreateAuthorizerErrorKind::LimitExceededError({ + kind: crate::error::CreateAuthorizerErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_authorizer_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateAuthorizerError { meta: generic, - kind: crate::error::CreateAuthorizerErrorKind::NotFoundError({ + kind: crate::error::CreateAuthorizerErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAuthorizerError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateAuthorizerError { meta: generic, - kind: crate::error::CreateAuthorizerErrorKind::TooManyRequestsError({ + kind: crate::error::CreateAuthorizerErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_authorizer_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateAuthorizerError { meta: generic, - kind: crate::error::CreateAuthorizerErrorKind::UnauthorizedError({ + kind: crate::error::CreateAuthorizerErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAuthorizerError::unhandled)?; output.build() }), }, @@ -226,7 +225,7 @@ pub fn parse_create_authorizer_response( let mut output = crate::output::create_authorizer_output::Builder::default(); let _ = response; output = - crate::json_deser::create_authorizer_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_authorizer(response.body().as_ref(), output) .map_err(crate::error::CreateAuthorizerError::unhandled)?; output.build() }) @@ -248,66 +247,75 @@ pub fn parse_create_base_path_mapping_error( Err(match error_code { "BadRequestException" => crate::error::CreateBasePathMappingError { meta: generic, - kind: crate::error::CreateBasePathMappingErrorKind::BadRequestError({ + kind: crate::error::CreateBasePathMappingErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBasePathMappingError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateBasePathMappingError { meta: generic, - kind: crate::error::CreateBasePathMappingErrorKind::ConflictError({ + kind: crate::error::CreateBasePathMappingErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBasePathMappingError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateBasePathMappingError { meta: generic, - kind: crate::error::CreateBasePathMappingErrorKind::NotFoundError({ + kind: crate::error::CreateBasePathMappingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBasePathMappingError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::CreateBasePathMappingError { - meta: generic, - kind: crate::error::CreateBasePathMappingErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateBasePathMappingError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_base_path_mapping_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::CreateBasePathMappingError { + meta: generic, + kind: crate::error::CreateBasePathMappingErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBasePathMappingError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_create_base_path_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateBasePathMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::CreateBasePathMappingError { meta: generic, - kind: crate::error::CreateBasePathMappingErrorKind::UnauthorizedError({ + kind: crate::error::CreateBasePathMappingErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBasePathMappingError::unhandled)?; output.build() }), }, @@ -326,7 +334,7 @@ pub fn parse_create_base_path_mapping_response( #[allow(unused_mut)] let mut output = crate::output::create_base_path_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::create_base_path_mapping_deser_operation( + output = crate::json_deser::deser_operation_create_base_path_mapping( response.body().as_ref(), output, ) @@ -349,116 +357,111 @@ pub fn parse_create_deployment_error( Err(match error_code { "BadRequestException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::BadRequestError({ + kind: crate::error::CreateDeploymentErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeploymentError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::ConflictError({ + kind: crate::error::CreateDeploymentErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeploymentError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::LimitExceededError({ + kind: crate::error::CreateDeploymentErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_deployment_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::NotFoundError({ + kind: crate::error::CreateDeploymentErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeploymentError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::ServiceUnavailableError({ + kind: crate::error::CreateDeploymentErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_deployment_service_unavailable_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::TooManyRequestsError({ + kind: crate::error::CreateDeploymentErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_deployment_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateDeploymentError { meta: generic, - kind: crate::error::CreateDeploymentErrorKind::UnauthorizedError({ + kind: crate::error::CreateDeploymentErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeploymentError::unhandled)?; output.build() }), }, @@ -476,7 +479,7 @@ pub fn parse_create_deployment_response( let mut output = crate::output::create_deployment_output::Builder::default(); let _ = response; output = - crate::json_deser::create_deployment_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_deployment(response.body().as_ref(), output) .map_err(crate::error::CreateDeploymentError::unhandled)?; output.build() }) @@ -502,86 +505,93 @@ pub fn parse_create_documentation_part_error( Err(match error_code { "BadRequestException" => crate::error::CreateDocumentationPartError { meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::BadRequestError({ + kind: crate::error::CreateDocumentationPartErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateDocumentationPartError { meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::ConflictError({ + kind: crate::error::CreateDocumentationPartErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; output.build() }), }, - "LimitExceededException" => { - crate::error::CreateDocumentationPartError { - meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_documentation_part_retry_after_seconds(response.headers()) + "LimitExceededException" => crate::error::CreateDocumentationPartError { + meta: generic, + kind: crate::error::CreateDocumentationPartErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_create_documentation_part_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "NotFoundException" => crate::error::CreateDocumentationPartError { meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::NotFoundError({ + kind: crate::error::CreateDocumentationPartErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::CreateDocumentationPartError { - meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_documentation_part_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::CreateDocumentationPartError { + meta: generic, + kind: crate::error::CreateDocumentationPartErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_create_documentation_part_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::CreateDocumentationPartError { meta: generic, - kind: crate::error::CreateDocumentationPartErrorKind::UnauthorizedError({ + kind: crate::error::CreateDocumentationPartErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationPartError::unhandled)?; output.build() }), }, @@ -600,7 +610,7 @@ pub fn parse_create_documentation_part_response( #[allow(unused_mut)] let mut output = crate::output::create_documentation_part_output::Builder::default(); let _ = response; - output = crate::json_deser::create_documentation_part_deser_operation( + output = crate::json_deser::deser_operation_create_documentation_part( response.body().as_ref(), output, ) @@ -629,37 +639,45 @@ pub fn parse_create_documentation_version_error( Err(match error_code { "BadRequestException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::BadRequestError({ + kind: crate::error::CreateDocumentationVersionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::ConflictError({ + kind: crate::error::CreateDocumentationVersionErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::LimitExceededError({ + kind: crate::error::CreateDocumentationVersionErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_documentation_version_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_create_documentation_version_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateDocumentationVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -667,28 +685,31 @@ pub fn parse_create_documentation_version_error( }, "NotFoundException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::NotFoundError({ + kind: crate::error::CreateDocumentationVersionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::TooManyRequestsError({ + kind: crate::error::CreateDocumentationVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_documentation_version_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_create_documentation_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateDocumentationVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -696,13 +717,15 @@ pub fn parse_create_documentation_version_error( }, "UnauthorizedException" => crate::error::CreateDocumentationVersionError { meta: generic, - kind: crate::error::CreateDocumentationVersionErrorKind::UnauthorizedError({ + kind: crate::error::CreateDocumentationVersionErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentationVersionError::unhandled)?; output.build() }), }, @@ -721,7 +744,7 @@ pub fn parse_create_documentation_version_response( #[allow(unused_mut)] let mut output = crate::output::create_documentation_version_output::Builder::default(); let _ = response; - output = crate::json_deser::create_documentation_version_deser_operation( + output = crate::json_deser::deser_operation_create_documentation_version( response.body().as_ref(), output, ) @@ -744,59 +767,61 @@ pub fn parse_create_domain_name_error( Err(match error_code { "BadRequestException" => crate::error::CreateDomainNameError { meta: generic, - kind: crate::error::CreateDomainNameErrorKind::BadRequestError({ + kind: crate::error::CreateDomainNameErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDomainNameError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateDomainNameError { meta: generic, - kind: crate::error::CreateDomainNameErrorKind::ConflictError({ + kind: crate::error::CreateDomainNameErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDomainNameError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateDomainNameError { meta: generic, - kind: crate::error::CreateDomainNameErrorKind::TooManyRequestsError({ + kind: crate::error::CreateDomainNameErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateDomainNameError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_domain_name_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateDomainNameError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_domain_name_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateDomainNameError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateDomainNameError { meta: generic, - kind: crate::error::CreateDomainNameErrorKind::UnauthorizedError({ + kind: crate::error::CreateDomainNameErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDomainNameError::unhandled)?; output.build() }), }, @@ -814,7 +839,7 @@ pub fn parse_create_domain_name_response( let mut output = crate::output::create_domain_name_output::Builder::default(); let _ = response; output = - crate::json_deser::create_domain_name_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_domain_name(response.body().as_ref(), output) .map_err(crate::error::CreateDomainNameError::unhandled)?; output.build() }) @@ -833,92 +858,93 @@ pub fn parse_create_model_error( Err(match error_code { "BadRequestException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::BadRequestError({ + kind: crate::error::CreateModelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateModelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::ConflictError({ + kind: crate::error::CreateModelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateModelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::LimitExceededError({ + kind: crate::error::CreateModelErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateModelError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_model_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateModelError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_model_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateModelError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::NotFoundError({ + kind: crate::error::CreateModelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateModelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::TooManyRequestsError({ + kind: crate::error::CreateModelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateModelError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_model_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateModelError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_model_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateModelError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateModelError { meta: generic, - kind: crate::error::CreateModelErrorKind::UnauthorizedError({ + kind: crate::error::CreateModelErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateModelError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; output.build() }), }, @@ -934,7 +960,7 @@ pub fn parse_create_model_response( #[allow(unused_mut)] let mut output = crate::output::create_model_output::Builder::default(); let _ = response; - output = crate::json_deser::create_model_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_create_model(response.body().as_ref(), output) .map_err(crate::error::CreateModelError::unhandled)?; output.build() }) @@ -960,75 +986,79 @@ pub fn parse_create_request_validator_error( Err(match error_code { "BadRequestException" => crate::error::CreateRequestValidatorError { meta: generic, - kind: crate::error::CreateRequestValidatorErrorKind::BadRequestError({ + kind: crate::error::CreateRequestValidatorErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRequestValidatorError::unhandled)?; output.build() }), }, - "LimitExceededException" => { - crate::error::CreateRequestValidatorError { - meta: generic, - kind: crate::error::CreateRequestValidatorErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateRequestValidatorError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_request_validator_retry_after_seconds(response.headers()) + "LimitExceededException" => crate::error::CreateRequestValidatorError { + meta: generic, + kind: crate::error::CreateRequestValidatorErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRequestValidatorError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_create_request_validator_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateRequestValidatorError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "NotFoundException" => crate::error::CreateRequestValidatorError { meta: generic, - kind: crate::error::CreateRequestValidatorErrorKind::NotFoundError({ + kind: crate::error::CreateRequestValidatorErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRequestValidatorError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::CreateRequestValidatorError { - meta: generic, - kind: crate::error::CreateRequestValidatorErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateRequestValidatorError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_request_validator_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::CreateRequestValidatorError { + meta: generic, + kind: crate::error::CreateRequestValidatorErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRequestValidatorError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_create_request_validator_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateRequestValidatorError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::CreateRequestValidatorError { meta: generic, - kind: crate::error::CreateRequestValidatorErrorKind::UnauthorizedError({ + kind: crate::error::CreateRequestValidatorErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRequestValidatorError::unhandled)?; output.build() }), }, @@ -1047,7 +1077,7 @@ pub fn parse_create_request_validator_response( #[allow(unused_mut)] let mut output = crate::output::create_request_validator_output::Builder::default(); let _ = response; - output = crate::json_deser::create_request_validator_deser_operation( + output = crate::json_deser::deser_operation_create_request_validator( response.body().as_ref(), output, ) @@ -1069,92 +1099,93 @@ pub fn parse_create_resource_error( Err(match error_code { "BadRequestException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::BadRequestError({ + kind: crate::error::CreateResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateResourceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::ConflictError({ + kind: crate::error::CreateResourceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateResourceError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::LimitExceededError({ + kind: crate::error::CreateResourceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_resource_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::NotFoundError({ + kind: crate::error::CreateResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::TooManyRequestsError({ + kind: crate::error::CreateResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateResourceError { meta: generic, - kind: crate::error::CreateResourceErrorKind::UnauthorizedError({ + kind: crate::error::CreateResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateResourceError::unhandled)?; output.build() }), }, @@ -1171,7 +1202,7 @@ pub fn parse_create_resource_response( let mut output = crate::output::create_resource_output::Builder::default(); let _ = response; output = - crate::json_deser::create_resource_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_resource(response.body().as_ref(), output) .map_err(crate::error::CreateResourceError::unhandled)?; output.build() }) @@ -1190,70 +1221,65 @@ pub fn parse_create_rest_api_error( Err(match error_code { "BadRequestException" => crate::error::CreateRestApiError { meta: generic, - kind: crate::error::CreateRestApiErrorKind::BadRequestError({ + kind: crate::error::CreateRestApiErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRestApiError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateRestApiError { meta: generic, - kind: crate::error::CreateRestApiErrorKind::LimitExceededError({ + kind: crate::error::CreateRestApiErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_rest_api_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::CreateRestApiError { meta: generic, - kind: crate::error::CreateRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::CreateRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateRestApiError { meta: generic, - kind: crate::error::CreateRestApiErrorKind::UnauthorizedError({ + kind: crate::error::CreateRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRestApiError::unhandled)?; output.build() }), }, @@ -1270,7 +1296,7 @@ pub fn parse_create_rest_api_response( let mut output = crate::output::create_rest_api_output::Builder::default(); let _ = response; output = - crate::json_deser::create_rest_api_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_rest_api(response.body().as_ref(), output) .map_err(crate::error::CreateRestApiError::unhandled)?; output.build() }) @@ -1289,92 +1315,93 @@ pub fn parse_create_stage_error( Err(match error_code { "BadRequestException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::BadRequestError({ + kind: crate::error::CreateStageErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateStageError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStageError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::ConflictError({ + kind: crate::error::CreateStageErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateStageError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStageError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::LimitExceededError({ + kind: crate::error::CreateStageErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateStageError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_stage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateStageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_stage_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateStageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::NotFoundError({ + kind: crate::error::CreateStageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateStageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::TooManyRequestsError({ + kind: crate::error::CreateStageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateStageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_stage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateStageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_stage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateStageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateStageError { meta: generic, - kind: crate::error::CreateStageErrorKind::UnauthorizedError({ + kind: crate::error::CreateStageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateStageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStageError::unhandled)?; output.build() }), }, @@ -1390,7 +1417,7 @@ pub fn parse_create_stage_response( #[allow(unused_mut)] let mut output = crate::output::create_stage_output::Builder::default(); let _ = response; - output = crate::json_deser::create_stage_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_create_stage(response.body().as_ref(), output) .map_err(crate::error::CreateStageError::unhandled)?; output.build() }) @@ -1409,92 +1436,93 @@ pub fn parse_create_usage_plan_error( Err(match error_code { "BadRequestException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::BadRequestError({ + kind: crate::error::CreateUsagePlanErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::ConflictError({ + kind: crate::error::CreateUsagePlanErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::LimitExceededError({ + kind: crate::error::CreateUsagePlanErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_usage_plan_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateUsagePlanError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_usage_plan_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateUsagePlanError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::NotFoundError({ + kind: crate::error::CreateUsagePlanErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::TooManyRequestsError({ + kind: crate::error::CreateUsagePlanErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateUsagePlanError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_usage_plan_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateUsagePlanError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_usage_plan_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateUsagePlanError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateUsagePlanError { meta: generic, - kind: crate::error::CreateUsagePlanErrorKind::UnauthorizedError({ + kind: crate::error::CreateUsagePlanErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanError::unhandled)?; output.build() }), }, @@ -1511,7 +1539,7 @@ pub fn parse_create_usage_plan_response( let mut output = crate::output::create_usage_plan_output::Builder::default(); let _ = response; output = - crate::json_deser::create_usage_plan_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_usage_plan(response.body().as_ref(), output) .map_err(crate::error::CreateUsagePlanError::unhandled)?; output.build() }) @@ -1533,70 +1561,75 @@ pub fn parse_create_usage_plan_key_error( Err(match error_code { "BadRequestException" => crate::error::CreateUsagePlanKeyError { meta: generic, - kind: crate::error::CreateUsagePlanKeyErrorKind::BadRequestError({ + kind: crate::error::CreateUsagePlanKeyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateUsagePlanKeyError { meta: generic, - kind: crate::error::CreateUsagePlanKeyErrorKind::ConflictError({ + kind: crate::error::CreateUsagePlanKeyErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateUsagePlanKeyError { meta: generic, - kind: crate::error::CreateUsagePlanKeyErrorKind::NotFoundError({ + kind: crate::error::CreateUsagePlanKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateUsagePlanKeyError { meta: generic, - kind: crate::error::CreateUsagePlanKeyErrorKind::TooManyRequestsError({ + kind: crate::error::CreateUsagePlanKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_usage_plan_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateUsagePlanKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_usage_plan_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateUsagePlanKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateUsagePlanKeyError { meta: generic, - kind: crate::error::CreateUsagePlanKeyErrorKind::UnauthorizedError({ + kind: crate::error::CreateUsagePlanKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUsagePlanKeyError::unhandled)?; output.build() }), }, @@ -1615,7 +1648,7 @@ pub fn parse_create_usage_plan_key_response( #[allow(unused_mut)] let mut output = crate::output::create_usage_plan_key_output::Builder::default(); let _ = response; - output = crate::json_deser::create_usage_plan_key_deser_operation( + output = crate::json_deser::deser_operation_create_usage_plan_key( response.body().as_ref(), output, ) @@ -1637,48 +1670,47 @@ pub fn parse_create_vpc_link_error( Err(match error_code { "BadRequestException" => crate::error::CreateVpcLinkError { meta: generic, - kind: crate::error::CreateVpcLinkErrorKind::BadRequestError({ + kind: crate::error::CreateVpcLinkErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateVpcLinkError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateVpcLinkError { meta: generic, - kind: crate::error::CreateVpcLinkErrorKind::TooManyRequestsError({ + kind: crate::error::CreateVpcLinkErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateVpcLinkError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_vpc_link_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateVpcLinkError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_vpc_link_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateVpcLinkError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::CreateVpcLinkError { meta: generic, - kind: crate::error::CreateVpcLinkErrorKind::UnauthorizedError({ + kind: crate::error::CreateVpcLinkErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateVpcLinkError::unhandled)?; output.build() }), }, @@ -1695,7 +1727,7 @@ pub fn parse_create_vpc_link_response( let mut output = crate::output::create_vpc_link_output::Builder::default(); let _ = response; output = - crate::json_deser::create_vpc_link_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_vpc_link(response.body().as_ref(), output) .map_err(crate::error::CreateVpcLinkError::unhandled)?; output.build() }) @@ -1714,48 +1746,47 @@ pub fn parse_delete_api_key_error( Err(match error_code { "NotFoundException" => crate::error::DeleteApiKeyError { meta: generic, - kind: crate::error::DeleteApiKeyErrorKind::NotFoundError({ + kind: crate::error::DeleteApiKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteApiKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteApiKeyError { meta: generic, - kind: crate::error::DeleteApiKeyErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteApiKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteApiKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_api_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteApiKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_api_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteApiKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteApiKeyError { meta: generic, - kind: crate::error::DeleteApiKeyErrorKind::UnauthorizedError({ + kind: crate::error::DeleteApiKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteApiKeyError::unhandled)?; output.build() }), }, @@ -1789,70 +1820,75 @@ pub fn parse_delete_authorizer_error( Err(match error_code { "BadRequestException" => crate::error::DeleteAuthorizerError { meta: generic, - kind: crate::error::DeleteAuthorizerErrorKind::BadRequestError({ + kind: crate::error::DeleteAuthorizerErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAuthorizerError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteAuthorizerError { meta: generic, - kind: crate::error::DeleteAuthorizerErrorKind::ConflictError({ + kind: crate::error::DeleteAuthorizerErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAuthorizerError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteAuthorizerError { meta: generic, - kind: crate::error::DeleteAuthorizerErrorKind::NotFoundError({ + kind: crate::error::DeleteAuthorizerErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAuthorizerError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteAuthorizerError { meta: generic, - kind: crate::error::DeleteAuthorizerErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteAuthorizerErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_authorizer_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteAuthorizerError { meta: generic, - kind: crate::error::DeleteAuthorizerErrorKind::UnauthorizedError({ + kind: crate::error::DeleteAuthorizerErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAuthorizerError::unhandled)?; output.build() }), }, @@ -1889,66 +1925,75 @@ pub fn parse_delete_base_path_mapping_error( Err(match error_code { "BadRequestException" => crate::error::DeleteBasePathMappingError { meta: generic, - kind: crate::error::DeleteBasePathMappingErrorKind::BadRequestError({ + kind: crate::error::DeleteBasePathMappingErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteBasePathMappingError { meta: generic, - kind: crate::error::DeleteBasePathMappingErrorKind::ConflictError({ + kind: crate::error::DeleteBasePathMappingErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteBasePathMappingError { meta: generic, - kind: crate::error::DeleteBasePathMappingErrorKind::NotFoundError({ + kind: crate::error::DeleteBasePathMappingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::DeleteBasePathMappingError { - meta: generic, - kind: crate::error::DeleteBasePathMappingErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_base_path_mapping_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::DeleteBasePathMappingError { + meta: generic, + kind: crate::error::DeleteBasePathMappingErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_base_path_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteBasePathMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::DeleteBasePathMappingError { meta: generic, - kind: crate::error::DeleteBasePathMappingErrorKind::UnauthorizedError({ + kind: crate::error::DeleteBasePathMappingErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBasePathMappingError::unhandled)?; output.build() }), }, @@ -1991,55 +2036,61 @@ pub fn parse_delete_client_certificate_error( Err(match error_code { "BadRequestException" => crate::error::DeleteClientCertificateError { meta: generic, - kind: crate::error::DeleteClientCertificateErrorKind::BadRequestError({ + kind: crate::error::DeleteClientCertificateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClientCertificateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteClientCertificateError { meta: generic, - kind: crate::error::DeleteClientCertificateErrorKind::NotFoundError({ + kind: crate::error::DeleteClientCertificateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClientCertificateError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::DeleteClientCertificateError { - meta: generic, - kind: crate::error::DeleteClientCertificateErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteClientCertificateError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_client_certificate_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::DeleteClientCertificateError { + meta: generic, + kind: crate::error::DeleteClientCertificateErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClientCertificateError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_client_certificate_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteClientCertificateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::DeleteClientCertificateError { meta: generic, - kind: crate::error::DeleteClientCertificateErrorKind::UnauthorizedError({ + kind: crate::error::DeleteClientCertificateErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClientCertificateError::unhandled)?; output.build() }), }, @@ -2076,59 +2127,61 @@ pub fn parse_delete_deployment_error( Err(match error_code { "BadRequestException" => crate::error::DeleteDeploymentError { meta: generic, - kind: crate::error::DeleteDeploymentErrorKind::BadRequestError({ + kind: crate::error::DeleteDeploymentErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDeploymentError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteDeploymentError { meta: generic, - kind: crate::error::DeleteDeploymentErrorKind::NotFoundError({ + kind: crate::error::DeleteDeploymentErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDeploymentError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteDeploymentError { meta: generic, - kind: crate::error::DeleteDeploymentErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteDeploymentErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_deployment_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteDeploymentError { meta: generic, - kind: crate::error::DeleteDeploymentErrorKind::UnauthorizedError({ + kind: crate::error::DeleteDeploymentErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDeploymentError::unhandled)?; output.build() }), }, @@ -2169,66 +2222,75 @@ pub fn parse_delete_documentation_part_error( Err(match error_code { "BadRequestException" => crate::error::DeleteDocumentationPartError { meta: generic, - kind: crate::error::DeleteDocumentationPartErrorKind::BadRequestError({ + kind: crate::error::DeleteDocumentationPartErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteDocumentationPartError { meta: generic, - kind: crate::error::DeleteDocumentationPartErrorKind::ConflictError({ + kind: crate::error::DeleteDocumentationPartErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteDocumentationPartError { meta: generic, - kind: crate::error::DeleteDocumentationPartErrorKind::NotFoundError({ + kind: crate::error::DeleteDocumentationPartErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::DeleteDocumentationPartError { - meta: generic, - kind: crate::error::DeleteDocumentationPartErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_documentation_part_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::DeleteDocumentationPartError { + meta: generic, + kind: crate::error::DeleteDocumentationPartErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_documentation_part_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::DeleteDocumentationPartError { meta: generic, - kind: crate::error::DeleteDocumentationPartErrorKind::UnauthorizedError({ + kind: crate::error::DeleteDocumentationPartErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationPartError::unhandled)?; output.build() }), }, @@ -2271,50 +2333,59 @@ pub fn parse_delete_documentation_version_error( Err(match error_code { "BadRequestException" => crate::error::DeleteDocumentationVersionError { meta: generic, - kind: crate::error::DeleteDocumentationVersionErrorKind::BadRequestError({ + kind: crate::error::DeleteDocumentationVersionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteDocumentationVersionError { meta: generic, - kind: crate::error::DeleteDocumentationVersionErrorKind::ConflictError({ + kind: crate::error::DeleteDocumentationVersionErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteDocumentationVersionError { meta: generic, - kind: crate::error::DeleteDocumentationVersionErrorKind::NotFoundError({ + kind: crate::error::DeleteDocumentationVersionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteDocumentationVersionError { meta: generic, - kind: crate::error::DeleteDocumentationVersionErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteDocumentationVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_documentation_version_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_documentation_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteDocumentationVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -2322,13 +2393,15 @@ pub fn parse_delete_documentation_version_error( }, "UnauthorizedException" => crate::error::DeleteDocumentationVersionError { meta: generic, - kind: crate::error::DeleteDocumentationVersionErrorKind::UnauthorizedError({ + kind: crate::error::DeleteDocumentationVersionErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentationVersionError::unhandled)?; output.build() }), }, @@ -2365,59 +2438,61 @@ pub fn parse_delete_domain_name_error( Err(match error_code { "BadRequestException" => crate::error::DeleteDomainNameError { meta: generic, - kind: crate::error::DeleteDomainNameErrorKind::BadRequestError({ + kind: crate::error::DeleteDomainNameErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDomainNameError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteDomainNameError { meta: generic, - kind: crate::error::DeleteDomainNameErrorKind::NotFoundError({ + kind: crate::error::DeleteDomainNameErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDomainNameError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteDomainNameError { meta: generic, - kind: crate::error::DeleteDomainNameErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteDomainNameErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteDomainNameError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_domain_name_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteDomainNameError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_domain_name_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteDomainNameError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteDomainNameError { meta: generic, - kind: crate::error::DeleteDomainNameErrorKind::UnauthorizedError({ + kind: crate::error::DeleteDomainNameErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDomainNameError::unhandled)?; output.build() }), }, @@ -2454,66 +2529,75 @@ pub fn parse_delete_gateway_response_error( Err(match error_code { "BadRequestException" => crate::error::DeleteGatewayResponseError { meta: generic, - kind: crate::error::DeleteGatewayResponseErrorKind::BadRequestError({ + kind: crate::error::DeleteGatewayResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteGatewayResponseError { meta: generic, - kind: crate::error::DeleteGatewayResponseErrorKind::ConflictError({ + kind: crate::error::DeleteGatewayResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteGatewayResponseError { meta: generic, - kind: crate::error::DeleteGatewayResponseErrorKind::NotFoundError({ + kind: crate::error::DeleteGatewayResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::DeleteGatewayResponseError { - meta: generic, - kind: crate::error::DeleteGatewayResponseErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_gateway_response_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::DeleteGatewayResponseError { + meta: generic, + kind: crate::error::DeleteGatewayResponseErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_gateway_response_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteGatewayResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::DeleteGatewayResponseError { meta: generic, - kind: crate::error::DeleteGatewayResponseErrorKind::UnauthorizedError({ + kind: crate::error::DeleteGatewayResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteGatewayResponseError::unhandled)?; output.build() }), }, @@ -2550,59 +2634,61 @@ pub fn parse_delete_integration_error( Err(match error_code { "ConflictException" => crate::error::DeleteIntegrationError { meta: generic, - kind: crate::error::DeleteIntegrationErrorKind::ConflictError({ + kind: crate::error::DeleteIntegrationErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteIntegrationError { meta: generic, - kind: crate::error::DeleteIntegrationErrorKind::NotFoundError({ + kind: crate::error::DeleteIntegrationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteIntegrationError { meta: generic, - kind: crate::error::DeleteIntegrationErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteIntegrationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteIntegrationError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_integration_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteIntegrationError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_integration_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteIntegrationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteIntegrationError { meta: generic, - kind: crate::error::DeleteIntegrationErrorKind::UnauthorizedError({ + kind: crate::error::DeleteIntegrationErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationError::unhandled)?; output.build() }), }, @@ -2643,50 +2729,59 @@ pub fn parse_delete_integration_response_error( Err(match error_code { "BadRequestException" => crate::error::DeleteIntegrationResponseError { meta: generic, - kind: crate::error::DeleteIntegrationResponseErrorKind::BadRequestError({ + kind: crate::error::DeleteIntegrationResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteIntegrationResponseError { meta: generic, - kind: crate::error::DeleteIntegrationResponseErrorKind::ConflictError({ + kind: crate::error::DeleteIntegrationResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteIntegrationResponseError { meta: generic, - kind: crate::error::DeleteIntegrationResponseErrorKind::NotFoundError({ + kind: crate::error::DeleteIntegrationResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteIntegrationResponseError { meta: generic, - kind: crate::error::DeleteIntegrationResponseErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteIntegrationResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_integration_response_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_integration_response_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -2694,13 +2789,15 @@ pub fn parse_delete_integration_response_error( }, "UnauthorizedException" => crate::error::DeleteIntegrationResponseError { meta: generic, - kind: crate::error::DeleteIntegrationResponseErrorKind::UnauthorizedError({ + kind: crate::error::DeleteIntegrationResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteIntegrationResponseError::unhandled)?; output.build() }), }, @@ -2736,59 +2833,61 @@ pub fn parse_delete_method_error( Err(match error_code { "ConflictException" => crate::error::DeleteMethodError { meta: generic, - kind: crate::error::DeleteMethodErrorKind::ConflictError({ + kind: crate::error::DeleteMethodErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteMethodError { meta: generic, - kind: crate::error::DeleteMethodErrorKind::NotFoundError({ + kind: crate::error::DeleteMethodErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteMethodError { meta: generic, - kind: crate::error::DeleteMethodErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteMethodErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_method_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteMethodError { meta: generic, - kind: crate::error::DeleteMethodErrorKind::UnauthorizedError({ + kind: crate::error::DeleteMethodErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodError::unhandled)?; output.build() }), }, @@ -2824,70 +2923,75 @@ pub fn parse_delete_method_response_error( Err(match error_code { "BadRequestException" => crate::error::DeleteMethodResponseError { meta: generic, - kind: crate::error::DeleteMethodResponseErrorKind::BadRequestError({ + kind: crate::error::DeleteMethodResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteMethodResponseError { meta: generic, - kind: crate::error::DeleteMethodResponseErrorKind::ConflictError({ + kind: crate::error::DeleteMethodResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodResponseError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteMethodResponseError { meta: generic, - kind: crate::error::DeleteMethodResponseErrorKind::NotFoundError({ + kind: crate::error::DeleteMethodResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteMethodResponseError { meta: generic, - kind: crate::error::DeleteMethodResponseErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteMethodResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_method_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteMethodResponseError { meta: generic, - kind: crate::error::DeleteMethodResponseErrorKind::UnauthorizedError({ + kind: crate::error::DeleteMethodResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMethodResponseError::unhandled)?; output.build() }), }, @@ -2923,70 +3027,75 @@ pub fn parse_delete_model_error( Err(match error_code { "BadRequestException" => crate::error::DeleteModelError { meta: generic, - kind: crate::error::DeleteModelErrorKind::BadRequestError({ + kind: crate::error::DeleteModelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteModelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteModelError { meta: generic, - kind: crate::error::DeleteModelErrorKind::ConflictError({ + kind: crate::error::DeleteModelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteModelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteModelError { meta: generic, - kind: crate::error::DeleteModelErrorKind::NotFoundError({ + kind: crate::error::DeleteModelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteModelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteModelError { meta: generic, - kind: crate::error::DeleteModelErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteModelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteModelError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_model_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteModelError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_model_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteModelError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteModelError { meta: generic, - kind: crate::error::DeleteModelErrorKind::UnauthorizedError({ + kind: crate::error::DeleteModelErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteModelError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelError::unhandled)?; output.build() }), }, @@ -3026,66 +3135,75 @@ pub fn parse_delete_request_validator_error( Err(match error_code { "BadRequestException" => crate::error::DeleteRequestValidatorError { meta: generic, - kind: crate::error::DeleteRequestValidatorErrorKind::BadRequestError({ + kind: crate::error::DeleteRequestValidatorErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteRequestValidatorError { meta: generic, - kind: crate::error::DeleteRequestValidatorErrorKind::ConflictError({ + kind: crate::error::DeleteRequestValidatorErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteRequestValidatorError { meta: generic, - kind: crate::error::DeleteRequestValidatorErrorKind::NotFoundError({ + kind: crate::error::DeleteRequestValidatorErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::DeleteRequestValidatorError { - meta: generic, - kind: crate::error::DeleteRequestValidatorErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_request_validator_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::DeleteRequestValidatorError { + meta: generic, + kind: crate::error::DeleteRequestValidatorErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_request_validator_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteRequestValidatorError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::DeleteRequestValidatorError { meta: generic, - kind: crate::error::DeleteRequestValidatorErrorKind::UnauthorizedError({ + kind: crate::error::DeleteRequestValidatorErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRequestValidatorError::unhandled)?; output.build() }), }, @@ -3121,70 +3239,75 @@ pub fn parse_delete_resource_error( Err(match error_code { "BadRequestException" => crate::error::DeleteResourceError { meta: generic, - kind: crate::error::DeleteResourceErrorKind::BadRequestError({ + kind: crate::error::DeleteResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteResourceError { meta: generic, - kind: crate::error::DeleteResourceErrorKind::ConflictError({ + kind: crate::error::DeleteResourceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteResourceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteResourceError { meta: generic, - kind: crate::error::DeleteResourceErrorKind::NotFoundError({ + kind: crate::error::DeleteResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteResourceError { meta: generic, - kind: crate::error::DeleteResourceErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteResourceError { meta: generic, - kind: crate::error::DeleteResourceErrorKind::UnauthorizedError({ + kind: crate::error::DeleteResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourceError::unhandled)?; output.build() }), }, @@ -3217,59 +3340,61 @@ pub fn parse_delete_rest_api_error( Err(match error_code { "BadRequestException" => crate::error::DeleteRestApiError { meta: generic, - kind: crate::error::DeleteRestApiErrorKind::BadRequestError({ + kind: crate::error::DeleteRestApiErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRestApiError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteRestApiError { meta: generic, - kind: crate::error::DeleteRestApiErrorKind::NotFoundError({ + kind: crate::error::DeleteRestApiErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRestApiError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteRestApiError { meta: generic, - kind: crate::error::DeleteRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteRestApiError { meta: generic, - kind: crate::error::DeleteRestApiErrorKind::UnauthorizedError({ + kind: crate::error::DeleteRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRestApiError::unhandled)?; output.build() }), }, @@ -3302,59 +3427,61 @@ pub fn parse_delete_stage_error( Err(match error_code { "BadRequestException" => crate::error::DeleteStageError { meta: generic, - kind: crate::error::DeleteStageErrorKind::BadRequestError({ + kind: crate::error::DeleteStageErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteStageError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStageError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteStageError { meta: generic, - kind: crate::error::DeleteStageErrorKind::NotFoundError({ + kind: crate::error::DeleteStageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteStageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteStageError { meta: generic, - kind: crate::error::DeleteStageErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteStageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteStageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_stage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteStageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_stage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteStageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteStageError { meta: generic, - kind: crate::error::DeleteStageErrorKind::UnauthorizedError({ + kind: crate::error::DeleteStageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteStageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStageError::unhandled)?; output.build() }), }, @@ -3387,59 +3514,61 @@ pub fn parse_delete_usage_plan_error( Err(match error_code { "BadRequestException" => crate::error::DeleteUsagePlanError { meta: generic, - kind: crate::error::DeleteUsagePlanErrorKind::BadRequestError({ + kind: crate::error::DeleteUsagePlanErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteUsagePlanError { meta: generic, - kind: crate::error::DeleteUsagePlanErrorKind::NotFoundError({ + kind: crate::error::DeleteUsagePlanErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteUsagePlanError { meta: generic, - kind: crate::error::DeleteUsagePlanErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteUsagePlanErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteUsagePlanError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_usage_plan_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteUsagePlanError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_usage_plan_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteUsagePlanError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteUsagePlanError { meta: generic, - kind: crate::error::DeleteUsagePlanErrorKind::UnauthorizedError({ + kind: crate::error::DeleteUsagePlanErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanError::unhandled)?; output.build() }), }, @@ -3475,70 +3604,75 @@ pub fn parse_delete_usage_plan_key_error( Err(match error_code { "BadRequestException" => crate::error::DeleteUsagePlanKeyError { meta: generic, - kind: crate::error::DeleteUsagePlanKeyErrorKind::BadRequestError({ + kind: crate::error::DeleteUsagePlanKeyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteUsagePlanKeyError { meta: generic, - kind: crate::error::DeleteUsagePlanKeyErrorKind::ConflictError({ + kind: crate::error::DeleteUsagePlanKeyErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteUsagePlanKeyError { meta: generic, - kind: crate::error::DeleteUsagePlanKeyErrorKind::NotFoundError({ + kind: crate::error::DeleteUsagePlanKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteUsagePlanKeyError { meta: generic, - kind: crate::error::DeleteUsagePlanKeyErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteUsagePlanKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_usage_plan_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteUsagePlanKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_usage_plan_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteUsagePlanKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteUsagePlanKeyError { meta: generic, - kind: crate::error::DeleteUsagePlanKeyErrorKind::UnauthorizedError({ + kind: crate::error::DeleteUsagePlanKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUsagePlanKeyError::unhandled)?; output.build() }), }, @@ -3574,59 +3708,61 @@ pub fn parse_delete_vpc_link_error( Err(match error_code { "BadRequestException" => crate::error::DeleteVpcLinkError { meta: generic, - kind: crate::error::DeleteVpcLinkErrorKind::BadRequestError({ + kind: crate::error::DeleteVpcLinkErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteVpcLinkError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteVpcLinkError { meta: generic, - kind: crate::error::DeleteVpcLinkErrorKind::NotFoundError({ + kind: crate::error::DeleteVpcLinkErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteVpcLinkError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteVpcLinkError { meta: generic, - kind: crate::error::DeleteVpcLinkErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteVpcLinkErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteVpcLinkError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_vpc_link_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteVpcLinkError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_vpc_link_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteVpcLinkError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::DeleteVpcLinkError { meta: generic, - kind: crate::error::DeleteVpcLinkErrorKind::UnauthorizedError({ + kind: crate::error::DeleteVpcLinkErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteVpcLinkError::unhandled)?; output.build() }), }, @@ -3666,39 +3802,45 @@ pub fn parse_flush_stage_authorizers_cache_error( Err(match error_code { "BadRequestException" => crate::error::FlushStageAuthorizersCacheError { meta: generic, - kind: crate::error::FlushStageAuthorizersCacheErrorKind::BadRequestError({ + kind: crate::error::FlushStageAuthorizersCacheErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::FlushStageAuthorizersCacheError { meta: generic, - kind: crate::error::FlushStageAuthorizersCacheErrorKind::NotFoundError({ + kind: crate::error::FlushStageAuthorizersCacheErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::FlushStageAuthorizersCacheError { meta: generic, - kind: crate::error::FlushStageAuthorizersCacheErrorKind::TooManyRequestsError({ + kind: crate::error::FlushStageAuthorizersCacheErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_flush_stage_authorizers_cache_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_flush_stage_authorizers_cache_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::FlushStageAuthorizersCacheError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -3706,13 +3848,15 @@ pub fn parse_flush_stage_authorizers_cache_error( }, "UnauthorizedException" => crate::error::FlushStageAuthorizersCacheError { meta: generic, - kind: crate::error::FlushStageAuthorizersCacheErrorKind::UnauthorizedError({ + kind: crate::error::FlushStageAuthorizersCacheErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageAuthorizersCacheError::unhandled)?; output.build() }), }, @@ -3748,59 +3892,61 @@ pub fn parse_flush_stage_cache_error( Err(match error_code { "BadRequestException" => crate::error::FlushStageCacheError { meta: generic, - kind: crate::error::FlushStageCacheErrorKind::BadRequestError({ + kind: crate::error::FlushStageCacheErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageCacheError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageCacheError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::FlushStageCacheError { meta: generic, - kind: crate::error::FlushStageCacheErrorKind::NotFoundError({ + kind: crate::error::FlushStageCacheErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageCacheError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageCacheError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::FlushStageCacheError { meta: generic, - kind: crate::error::FlushStageCacheErrorKind::TooManyRequestsError({ + kind: crate::error::FlushStageCacheErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::FlushStageCacheError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_flush_stage_cache_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::FlushStageCacheError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_flush_stage_cache_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::FlushStageCacheError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::FlushStageCacheError { meta: generic, - kind: crate::error::FlushStageCacheErrorKind::UnauthorizedError({ + kind: crate::error::FlushStageCacheErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::FlushStageCacheError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FlushStageCacheError::unhandled)?; output.build() }), }, @@ -3840,15 +3986,17 @@ pub fn parse_generate_client_certificate_error( Err(match error_code { "LimitExceededException" => crate::error::GenerateClientCertificateError { meta: generic, - kind: crate::error::GenerateClientCertificateErrorKind::LimitExceededError({ + kind: crate::error::GenerateClientCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::GenerateClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateClientCertificateError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_generate_client_certificate_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_generate_client_certificate_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GenerateClientCertificateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -3856,17 +4004,17 @@ pub fn parse_generate_client_certificate_error( }, "TooManyRequestsException" => crate::error::GenerateClientCertificateError { meta: generic, - kind: crate::error::GenerateClientCertificateErrorKind::TooManyRequestsError({ + kind: crate::error::GenerateClientCertificateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GenerateClientCertificateError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_generate_client_certificate_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_generate_client_certificate_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GenerateClientCertificateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -3874,13 +4022,15 @@ pub fn parse_generate_client_certificate_error( }, "UnauthorizedException" => crate::error::GenerateClientCertificateError { meta: generic, - kind: crate::error::GenerateClientCertificateErrorKind::UnauthorizedError({ + kind: crate::error::GenerateClientCertificateErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GenerateClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateClientCertificateError::unhandled)?; output.build() }), }, @@ -3899,7 +4049,7 @@ pub fn parse_generate_client_certificate_response( #[allow(unused_mut)] let mut output = crate::output::generate_client_certificate_output::Builder::default(); let _ = response; - output = crate::json_deser::generate_client_certificate_deser_operation( + output = crate::json_deser::deser_operation_generate_client_certificate( response.body().as_ref(), output, ) @@ -3921,48 +4071,47 @@ pub fn parse_get_account_error( Err(match error_code { "NotFoundException" => crate::error::GetAccountError { meta: generic, - kind: crate::error::GetAccountErrorKind::NotFoundError({ + kind: crate::error::GetAccountErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAccountError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAccountError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetAccountError { meta: generic, - kind: crate::error::GetAccountErrorKind::TooManyRequestsError({ + kind: crate::error::GetAccountErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAccountError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_account_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetAccountError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_account_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetAccountError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetAccountError { meta: generic, - kind: crate::error::GetAccountErrorKind::UnauthorizedError({ + kind: crate::error::GetAccountErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAccountError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAccountError::unhandled)?; output.build() }), }, @@ -3978,7 +4127,7 @@ pub fn parse_get_account_response( #[allow(unused_mut)] let mut output = crate::output::get_account_output::Builder::default(); let _ = response; - output = crate::json_deser::get_account_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_account(response.body().as_ref(), output) .map_err(crate::error::GetAccountError::unhandled)?; output.build() }) @@ -3997,48 +4146,47 @@ pub fn parse_get_api_key_error( Err(match error_code { "NotFoundException" => crate::error::GetApiKeyError { meta: generic, - kind: crate::error::GetApiKeyErrorKind::NotFoundError({ + kind: crate::error::GetApiKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetApiKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetApiKeyError { meta: generic, - kind: crate::error::GetApiKeyErrorKind::TooManyRequestsError({ + kind: crate::error::GetApiKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetApiKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_api_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetApiKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_api_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetApiKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetApiKeyError { meta: generic, - kind: crate::error::GetApiKeyErrorKind::UnauthorizedError({ + kind: crate::error::GetApiKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetApiKeyError::unhandled)?; output.build() }), }, @@ -4054,7 +4202,7 @@ pub fn parse_get_api_key_response( #[allow(unused_mut)] let mut output = crate::output::get_api_key_output::Builder::default(); let _ = response; - output = crate::json_deser::get_api_key_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_api_key(response.body().as_ref(), output) .map_err(crate::error::GetApiKeyError::unhandled)?; output.build() }) @@ -4073,48 +4221,47 @@ pub fn parse_get_api_keys_error( Err(match error_code { "BadRequestException" => crate::error::GetApiKeysError { meta: generic, - kind: crate::error::GetApiKeysErrorKind::BadRequestError({ + kind: crate::error::GetApiKeysErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetApiKeysError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetApiKeysError { meta: generic, - kind: crate::error::GetApiKeysErrorKind::TooManyRequestsError({ + kind: crate::error::GetApiKeysErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetApiKeysError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_api_keys_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetApiKeysError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_api_keys_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetApiKeysError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetApiKeysError { meta: generic, - kind: crate::error::GetApiKeysErrorKind::UnauthorizedError({ + kind: crate::error::GetApiKeysErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetApiKeysError::unhandled)?; output.build() }), }, @@ -4130,7 +4277,7 @@ pub fn parse_get_api_keys_response( #[allow(unused_mut)] let mut output = crate::output::get_api_keys_output::Builder::default(); let _ = response; - output = crate::json_deser::get_api_keys_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_api_keys(response.body().as_ref(), output) .map_err(crate::error::GetApiKeysError::unhandled)?; output.build() }) @@ -4149,48 +4296,47 @@ pub fn parse_get_authorizer_error( Err(match error_code { "NotFoundException" => crate::error::GetAuthorizerError { meta: generic, - kind: crate::error::GetAuthorizerErrorKind::NotFoundError({ + kind: crate::error::GetAuthorizerErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizerError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetAuthorizerError { meta: generic, - kind: crate::error::GetAuthorizerErrorKind::TooManyRequestsError({ + kind: crate::error::GetAuthorizerErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_authorizer_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetAuthorizerError { meta: generic, - kind: crate::error::GetAuthorizerErrorKind::UnauthorizedError({ + kind: crate::error::GetAuthorizerErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizerError::unhandled)?; output.build() }), }, @@ -4207,7 +4353,7 @@ pub fn parse_get_authorizer_response( let mut output = crate::output::get_authorizer_output::Builder::default(); let _ = response; output = - crate::json_deser::get_authorizer_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_authorizer(response.body().as_ref(), output) .map_err(crate::error::GetAuthorizerError::unhandled)?; output.build() }) @@ -4226,59 +4372,61 @@ pub fn parse_get_authorizers_error( Err(match error_code { "BadRequestException" => crate::error::GetAuthorizersError { meta: generic, - kind: crate::error::GetAuthorizersErrorKind::BadRequestError({ + kind: crate::error::GetAuthorizersErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAuthorizersError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizersError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetAuthorizersError { meta: generic, - kind: crate::error::GetAuthorizersErrorKind::NotFoundError({ + kind: crate::error::GetAuthorizersErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAuthorizersError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizersError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetAuthorizersError { meta: generic, - kind: crate::error::GetAuthorizersErrorKind::TooManyRequestsError({ + kind: crate::error::GetAuthorizersErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAuthorizersError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_authorizers_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetAuthorizersError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_authorizers_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetAuthorizersError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetAuthorizersError { meta: generic, - kind: crate::error::GetAuthorizersErrorKind::UnauthorizedError({ + kind: crate::error::GetAuthorizersErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAuthorizersError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizersError::unhandled)?; output.build() }), }, @@ -4295,7 +4443,7 @@ pub fn parse_get_authorizers_response( let mut output = crate::output::get_authorizers_output::Builder::default(); let _ = response; output = - crate::json_deser::get_authorizers_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_authorizers(response.body().as_ref(), output) .map_err(crate::error::GetAuthorizersError::unhandled)?; output.build() }) @@ -4317,48 +4465,47 @@ pub fn parse_get_base_path_mapping_error( Err(match error_code { "NotFoundException" => crate::error::GetBasePathMappingError { meta: generic, - kind: crate::error::GetBasePathMappingErrorKind::NotFoundError({ + kind: crate::error::GetBasePathMappingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBasePathMappingError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetBasePathMappingError { meta: generic, - kind: crate::error::GetBasePathMappingErrorKind::TooManyRequestsError({ + kind: crate::error::GetBasePathMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetBasePathMappingError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_base_path_mapping_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetBasePathMappingError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_base_path_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetBasePathMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetBasePathMappingError { meta: generic, - kind: crate::error::GetBasePathMappingErrorKind::UnauthorizedError({ + kind: crate::error::GetBasePathMappingErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBasePathMappingError::unhandled)?; output.build() }), }, @@ -4377,7 +4524,7 @@ pub fn parse_get_base_path_mapping_response( #[allow(unused_mut)] let mut output = crate::output::get_base_path_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::get_base_path_mapping_deser_operation( + output = crate::json_deser::deser_operation_get_base_path_mapping( response.body().as_ref(), output, ) @@ -4402,48 +4549,47 @@ pub fn parse_get_base_path_mappings_error( Err(match error_code { "NotFoundException" => crate::error::GetBasePathMappingsError { meta: generic, - kind: crate::error::GetBasePathMappingsErrorKind::NotFoundError({ + kind: crate::error::GetBasePathMappingsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBasePathMappingsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBasePathMappingsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetBasePathMappingsError { meta: generic, - kind: crate::error::GetBasePathMappingsErrorKind::TooManyRequestsError({ + kind: crate::error::GetBasePathMappingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetBasePathMappingsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_base_path_mappings_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetBasePathMappingsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_base_path_mappings_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetBasePathMappingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetBasePathMappingsError { meta: generic, - kind: crate::error::GetBasePathMappingsErrorKind::UnauthorizedError({ + kind: crate::error::GetBasePathMappingsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBasePathMappingsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBasePathMappingsError::unhandled)?; output.build() }), }, @@ -4462,7 +4608,7 @@ pub fn parse_get_base_path_mappings_response( #[allow(unused_mut)] let mut output = crate::output::get_base_path_mappings_output::Builder::default(); let _ = response; - output = crate::json_deser::get_base_path_mappings_deser_operation( + output = crate::json_deser::deser_operation_get_base_path_mappings( response.body().as_ref(), output, ) @@ -4487,48 +4633,47 @@ pub fn parse_get_client_certificate_error( Err(match error_code { "NotFoundException" => crate::error::GetClientCertificateError { meta: generic, - kind: crate::error::GetClientCertificateErrorKind::NotFoundError({ + kind: crate::error::GetClientCertificateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetClientCertificateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetClientCertificateError { meta: generic, - kind: crate::error::GetClientCertificateErrorKind::TooManyRequestsError({ + kind: crate::error::GetClientCertificateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetClientCertificateError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_client_certificate_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetClientCertificateError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_client_certificate_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetClientCertificateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetClientCertificateError { meta: generic, - kind: crate::error::GetClientCertificateErrorKind::UnauthorizedError({ + kind: crate::error::GetClientCertificateErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetClientCertificateError::unhandled)?; output.build() }), }, @@ -4547,7 +4692,7 @@ pub fn parse_get_client_certificate_response( #[allow(unused_mut)] let mut output = crate::output::get_client_certificate_output::Builder::default(); let _ = response; - output = crate::json_deser::get_client_certificate_deser_operation( + output = crate::json_deser::deser_operation_get_client_certificate( response.body().as_ref(), output, ) @@ -4572,44 +4717,47 @@ pub fn parse_get_client_certificates_error( Err(match error_code { "BadRequestException" => crate::error::GetClientCertificatesError { meta: generic, - kind: crate::error::GetClientCertificatesErrorKind::BadRequestError({ + kind: crate::error::GetClientCertificatesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetClientCertificatesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetClientCertificatesError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetClientCertificatesError { - meta: generic, - kind: crate::error::GetClientCertificatesErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetClientCertificatesError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_client_certificates_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::GetClientCertificatesError { + meta: generic, + kind: crate::error::GetClientCertificatesErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetClientCertificatesError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_client_certificates_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetClientCertificatesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::GetClientCertificatesError { meta: generic, - kind: crate::error::GetClientCertificatesErrorKind::UnauthorizedError({ + kind: crate::error::GetClientCertificatesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetClientCertificatesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetClientCertificatesError::unhandled)?; output.build() }), }, @@ -4628,7 +4776,7 @@ pub fn parse_get_client_certificates_response( #[allow(unused_mut)] let mut output = crate::output::get_client_certificates_output::Builder::default(); let _ = response; - output = crate::json_deser::get_client_certificates_deser_operation( + output = crate::json_deser::deser_operation_get_client_certificates( response.body().as_ref(), output, ) @@ -4650,72 +4798,65 @@ pub fn parse_get_deployment_error( Err(match error_code { "NotFoundException" => crate::error::GetDeploymentError { meta: generic, - kind: crate::error::GetDeploymentErrorKind::NotFoundError({ + kind: crate::error::GetDeploymentErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeploymentError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::GetDeploymentError { meta: generic, - kind: crate::error::GetDeploymentErrorKind::ServiceUnavailableError({ + kind: crate::error::GetDeploymentErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_deployment_service_unavailable_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::GetDeploymentError { meta: generic, - kind: crate::error::GetDeploymentErrorKind::TooManyRequestsError({ + kind: crate::error::GetDeploymentErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_deployment_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetDeploymentError { meta: generic, - kind: crate::error::GetDeploymentErrorKind::UnauthorizedError({ + kind: crate::error::GetDeploymentErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeploymentError::unhandled)?; output.build() }), }, @@ -4732,7 +4873,7 @@ pub fn parse_get_deployment_response( let mut output = crate::output::get_deployment_output::Builder::default(); let _ = response; output = - crate::json_deser::get_deployment_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_deployment(response.body().as_ref(), output) .map_err(crate::error::GetDeploymentError::unhandled)?; output.build() }) @@ -4751,83 +4892,79 @@ pub fn parse_get_deployments_error( Err(match error_code { "BadRequestException" => crate::error::GetDeploymentsError { meta: generic, - kind: crate::error::GetDeploymentsErrorKind::BadRequestError({ + kind: crate::error::GetDeploymentsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeploymentsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeploymentsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDeploymentsError { meta: generic, - kind: crate::error::GetDeploymentsErrorKind::NotFoundError({ + kind: crate::error::GetDeploymentsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeploymentsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeploymentsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::GetDeploymentsError { meta: generic, - kind: crate::error::GetDeploymentsErrorKind::ServiceUnavailableError({ + kind: crate::error::GetDeploymentsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDeploymentsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_deployments_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDeploymentsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_deployments_service_unavailable_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDeploymentsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::GetDeploymentsError { meta: generic, - kind: crate::error::GetDeploymentsErrorKind::TooManyRequestsError({ + kind: crate::error::GetDeploymentsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDeploymentsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_deployments_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDeploymentsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_deployments_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDeploymentsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetDeploymentsError { meta: generic, - kind: crate::error::GetDeploymentsErrorKind::UnauthorizedError({ + kind: crate::error::GetDeploymentsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeploymentsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeploymentsError::unhandled)?; output.build() }), }, @@ -4844,7 +4981,7 @@ pub fn parse_get_deployments_response( let mut output = crate::output::get_deployments_output::Builder::default(); let _ = response; output = - crate::json_deser::get_deployments_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_deployments(response.body().as_ref(), output) .map_err(crate::error::GetDeploymentsError::unhandled)?; output.build() }) @@ -4866,48 +5003,47 @@ pub fn parse_get_documentation_part_error( Err(match error_code { "NotFoundException" => crate::error::GetDocumentationPartError { meta: generic, - kind: crate::error::GetDocumentationPartErrorKind::NotFoundError({ + kind: crate::error::GetDocumentationPartErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDocumentationPartError { meta: generic, - kind: crate::error::GetDocumentationPartErrorKind::TooManyRequestsError({ + kind: crate::error::GetDocumentationPartErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDocumentationPartError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_documentation_part_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDocumentationPartError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_documentation_part_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetDocumentationPartError { meta: generic, - kind: crate::error::GetDocumentationPartErrorKind::UnauthorizedError({ + kind: crate::error::GetDocumentationPartErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartError::unhandled)?; output.build() }), }, @@ -4926,7 +5062,7 @@ pub fn parse_get_documentation_part_response( #[allow(unused_mut)] let mut output = crate::output::get_documentation_part_output::Builder::default(); let _ = response; - output = crate::json_deser::get_documentation_part_deser_operation( + output = crate::json_deser::deser_operation_get_documentation_part( response.body().as_ref(), output, ) @@ -4951,55 +5087,61 @@ pub fn parse_get_documentation_parts_error( Err(match error_code { "BadRequestException" => crate::error::GetDocumentationPartsError { meta: generic, - kind: crate::error::GetDocumentationPartsErrorKind::BadRequestError({ + kind: crate::error::GetDocumentationPartsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDocumentationPartsError { meta: generic, - kind: crate::error::GetDocumentationPartsErrorKind::NotFoundError({ + kind: crate::error::GetDocumentationPartsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartsError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetDocumentationPartsError { - meta: generic, - kind: crate::error::GetDocumentationPartsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetDocumentationPartsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_documentation_parts_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::GetDocumentationPartsError { + meta: generic, + kind: crate::error::GetDocumentationPartsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_documentation_parts_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetDocumentationPartsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::GetDocumentationPartsError { meta: generic, - kind: crate::error::GetDocumentationPartsErrorKind::UnauthorizedError({ + kind: crate::error::GetDocumentationPartsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationPartsError::unhandled)?; output.build() }), }, @@ -5018,7 +5160,7 @@ pub fn parse_get_documentation_parts_response( #[allow(unused_mut)] let mut output = crate::output::get_documentation_parts_output::Builder::default(); let _ = response; - output = crate::json_deser::get_documentation_parts_deser_operation( + output = crate::json_deser::deser_operation_get_documentation_parts( response.body().as_ref(), output, ) @@ -5047,44 +5189,47 @@ pub fn parse_get_documentation_version_error( Err(match error_code { "NotFoundException" => crate::error::GetDocumentationVersionError { meta: generic, - kind: crate::error::GetDocumentationVersionErrorKind::NotFoundError({ + kind: crate::error::GetDocumentationVersionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetDocumentationVersionError { - meta: generic, - kind: crate::error::GetDocumentationVersionErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetDocumentationVersionError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_documentation_version_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::GetDocumentationVersionError { + meta: generic, + kind: crate::error::GetDocumentationVersionErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_documentation_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetDocumentationVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::GetDocumentationVersionError { meta: generic, - kind: crate::error::GetDocumentationVersionErrorKind::UnauthorizedError({ + kind: crate::error::GetDocumentationVersionErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionError::unhandled)?; output.build() }), }, @@ -5103,7 +5248,7 @@ pub fn parse_get_documentation_version_response( #[allow(unused_mut)] let mut output = crate::output::get_documentation_version_output::Builder::default(); let _ = response; - output = crate::json_deser::get_documentation_version_deser_operation( + output = crate::json_deser::deser_operation_get_documentation_version( response.body().as_ref(), output, ) @@ -5132,55 +5277,61 @@ pub fn parse_get_documentation_versions_error( Err(match error_code { "BadRequestException" => crate::error::GetDocumentationVersionsError { meta: generic, - kind: crate::error::GetDocumentationVersionsErrorKind::BadRequestError({ + kind: crate::error::GetDocumentationVersionsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDocumentationVersionsError { meta: generic, - kind: crate::error::GetDocumentationVersionsErrorKind::NotFoundError({ + kind: crate::error::GetDocumentationVersionsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetDocumentationVersionsError { - meta: generic, - kind: crate::error::GetDocumentationVersionsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_documentation_versions_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::GetDocumentationVersionsError { + meta: generic, + kind: crate::error::GetDocumentationVersionsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_documentation_versions_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetDocumentationVersionsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::GetDocumentationVersionsError { meta: generic, - kind: crate::error::GetDocumentationVersionsErrorKind::UnauthorizedError({ + kind: crate::error::GetDocumentationVersionsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentationVersionsError::unhandled)?; output.build() }), }, @@ -5199,7 +5350,7 @@ pub fn parse_get_documentation_versions_response( #[allow(unused_mut)] let mut output = crate::output::get_documentation_versions_output::Builder::default(); let _ = response; - output = crate::json_deser::get_documentation_versions_deser_operation( + output = crate::json_deser::deser_operation_get_documentation_versions( response.body().as_ref(), output, ) @@ -5221,72 +5372,65 @@ pub fn parse_get_domain_name_error( Err(match error_code { "NotFoundException" => crate::error::GetDomainNameError { meta: generic, - kind: crate::error::GetDomainNameErrorKind::NotFoundError({ + kind: crate::error::GetDomainNameErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainNameError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::GetDomainNameError { meta: generic, - kind: crate::error::GetDomainNameErrorKind::ServiceUnavailableError({ + kind: crate::error::GetDomainNameErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDomainNameError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_domain_name_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDomainNameError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_domain_name_service_unavailable_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDomainNameError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::GetDomainNameError { meta: generic, - kind: crate::error::GetDomainNameErrorKind::TooManyRequestsError({ + kind: crate::error::GetDomainNameErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDomainNameError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_domain_name_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDomainNameError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_domain_name_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDomainNameError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetDomainNameError { meta: generic, - kind: crate::error::GetDomainNameErrorKind::UnauthorizedError({ + kind: crate::error::GetDomainNameErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainNameError::unhandled)?; output.build() }), }, @@ -5303,7 +5447,7 @@ pub fn parse_get_domain_name_response( let mut output = crate::output::get_domain_name_output::Builder::default(); let _ = response; output = - crate::json_deser::get_domain_name_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_domain_name(response.body().as_ref(), output) .map_err(crate::error::GetDomainNameError::unhandled)?; output.build() }) @@ -5322,48 +5466,47 @@ pub fn parse_get_domain_names_error( Err(match error_code { "BadRequestException" => crate::error::GetDomainNamesError { meta: generic, - kind: crate::error::GetDomainNamesErrorKind::BadRequestError({ + kind: crate::error::GetDomainNamesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainNamesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainNamesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDomainNamesError { meta: generic, - kind: crate::error::GetDomainNamesErrorKind::TooManyRequestsError({ + kind: crate::error::GetDomainNamesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetDomainNamesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_domain_names_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetDomainNamesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_domain_names_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetDomainNamesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetDomainNamesError { meta: generic, - kind: crate::error::GetDomainNamesErrorKind::UnauthorizedError({ + kind: crate::error::GetDomainNamesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainNamesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainNamesError::unhandled)?; output.build() }), }, @@ -5380,7 +5523,7 @@ pub fn parse_get_domain_names_response( let mut output = crate::output::get_domain_names_output::Builder::default(); let _ = response; output = - crate::json_deser::get_domain_names_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_domain_names(response.body().as_ref(), output) .map_err(crate::error::GetDomainNamesError::unhandled)?; output.build() }) @@ -5399,70 +5542,75 @@ pub fn parse_get_export_error( Err(match error_code { "BadRequestException" => crate::error::GetExportError { meta: generic, - kind: crate::error::GetExportErrorKind::BadRequestError({ + kind: crate::error::GetExportErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetExportError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetExportError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::GetExportError { meta: generic, - kind: crate::error::GetExportErrorKind::ConflictError({ + kind: crate::error::GetExportErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::GetExportError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetExportError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetExportError { meta: generic, - kind: crate::error::GetExportErrorKind::NotFoundError({ + kind: crate::error::GetExportErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetExportError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetExportError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetExportError { meta: generic, - kind: crate::error::GetExportErrorKind::TooManyRequestsError({ + kind: crate::error::GetExportErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetExportError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_export_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetExportError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_export_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetExportError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetExportError { meta: generic, - kind: crate::error::GetExportErrorKind::UnauthorizedError({ + kind: crate::error::GetExportErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetExportError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetExportError::unhandled)?; output.build() }), }, @@ -5478,25 +5626,30 @@ pub fn parse_get_export_response( #[allow(unused_mut)] let mut output = crate::output::get_export_output::Builder::default(); let _ = response; - output = output.set_body(crate::http_serde::deser_payload_get_export_body( - response.body().as_ref(), - )?); + output = output.set_body( + crate::http_serde::deser_payload_get_export_get_export_output_body( + response.body().as_ref(), + )?, + ); output = output.set_content_disposition( - crate::http_serde::deser_header_get_export_content_disposition(response.headers()) - .map_err(|_| { - crate::error::GetExportError::unhandled( - "Failed to parse contentDisposition from header `Content-Disposition", - ) - })?, + crate::http_serde::deser_header_get_export_get_export_output_content_disposition( + response.headers(), + ) + .map_err(|_| { + crate::error::GetExportError::unhandled( + "Failed to parse contentDisposition from header `Content-Disposition", + ) + })?, ); output = output.set_content_type( - crate::http_serde::deser_header_get_export_content_type(response.headers()).map_err( - |_| { - crate::error::GetExportError::unhandled( - "Failed to parse contentType from header `Content-Type", - ) - }, - )?, + crate::http_serde::deser_header_get_export_get_export_output_content_type( + response.headers(), + ) + .map_err(|_| { + crate::error::GetExportError::unhandled( + "Failed to parse contentType from header `Content-Type", + ) + })?, ); output.build() }) @@ -5518,48 +5671,47 @@ pub fn parse_get_gateway_response_error( Err(match error_code { "NotFoundException" => crate::error::GetGatewayResponseError { meta: generic, - kind: crate::error::GetGatewayResponseErrorKind::NotFoundError({ + kind: crate::error::GetGatewayResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetGatewayResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetGatewayResponseError { meta: generic, - kind: crate::error::GetGatewayResponseErrorKind::TooManyRequestsError({ + kind: crate::error::GetGatewayResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetGatewayResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_gateway_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetGatewayResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_gateway_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetGatewayResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetGatewayResponseError { meta: generic, - kind: crate::error::GetGatewayResponseErrorKind::UnauthorizedError({ + kind: crate::error::GetGatewayResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetGatewayResponseError::unhandled)?; output.build() }), }, @@ -5578,7 +5730,7 @@ pub fn parse_get_gateway_response_response( #[allow(unused_mut)] let mut output = crate::output::get_gateway_response_output::Builder::default(); let _ = response; - output = crate::json_deser::get_gateway_response_deser_operation( + output = crate::json_deser::deser_operation_get_gateway_response( response.body().as_ref(), output, ) @@ -5603,59 +5755,61 @@ pub fn parse_get_gateway_responses_error( Err(match error_code { "BadRequestException" => crate::error::GetGatewayResponsesError { meta: generic, - kind: crate::error::GetGatewayResponsesErrorKind::BadRequestError({ + kind: crate::error::GetGatewayResponsesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetGatewayResponsesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetGatewayResponsesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetGatewayResponsesError { meta: generic, - kind: crate::error::GetGatewayResponsesErrorKind::NotFoundError({ + kind: crate::error::GetGatewayResponsesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetGatewayResponsesError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetGatewayResponsesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetGatewayResponsesError { meta: generic, - kind: crate::error::GetGatewayResponsesErrorKind::TooManyRequestsError({ + kind: crate::error::GetGatewayResponsesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetGatewayResponsesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_gateway_responses_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetGatewayResponsesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_gateway_responses_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetGatewayResponsesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetGatewayResponsesError { meta: generic, - kind: crate::error::GetGatewayResponsesErrorKind::UnauthorizedError({ + kind: crate::error::GetGatewayResponsesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetGatewayResponsesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetGatewayResponsesError::unhandled)?; output.build() }), }, @@ -5674,7 +5828,7 @@ pub fn parse_get_gateway_responses_response( #[allow(unused_mut)] let mut output = crate::output::get_gateway_responses_output::Builder::default(); let _ = response; - output = crate::json_deser::get_gateway_responses_deser_operation( + output = crate::json_deser::deser_operation_get_gateway_responses( response.body().as_ref(), output, ) @@ -5696,48 +5850,47 @@ pub fn parse_get_integration_error( Err(match error_code { "NotFoundException" => crate::error::GetIntegrationError { meta: generic, - kind: crate::error::GetIntegrationErrorKind::NotFoundError({ + kind: crate::error::GetIntegrationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetIntegrationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetIntegrationError { meta: generic, - kind: crate::error::GetIntegrationErrorKind::TooManyRequestsError({ + kind: crate::error::GetIntegrationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetIntegrationError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_integration_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetIntegrationError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_integration_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetIntegrationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetIntegrationError { meta: generic, - kind: crate::error::GetIntegrationErrorKind::UnauthorizedError({ + kind: crate::error::GetIntegrationErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetIntegrationError::unhandled)?; output.build() }), }, @@ -5754,7 +5907,7 @@ pub fn parse_get_integration_response( let mut output = crate::output::get_integration_output::Builder::default(); let _ = response; output = - crate::json_deser::get_integration_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_integration(response.body().as_ref(), output) .map_err(crate::error::GetIntegrationError::unhandled)?; output.build() }) @@ -5780,44 +5933,47 @@ pub fn parse_get_integration_response_error( Err(match error_code { "NotFoundException" => crate::error::GetIntegrationResponseError { meta: generic, - kind: crate::error::GetIntegrationResponseErrorKind::NotFoundError({ + kind: crate::error::GetIntegrationResponseErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetIntegrationResponseError::unhandled)?; + output.build() + }), + }, + "TooManyRequestsException" => crate::error::GetIntegrationResponseError { + meta: generic, + kind: crate::error::GetIntegrationResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetIntegrationResponseError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_integration_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetIntegrationResponseError { - meta: generic, - kind: crate::error::GetIntegrationResponseErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetIntegrationResponseError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_integration_response_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } "UnauthorizedException" => crate::error::GetIntegrationResponseError { meta: generic, - kind: crate::error::GetIntegrationResponseErrorKind::UnauthorizedError({ + kind: crate::error::GetIntegrationResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetIntegrationResponseError::unhandled)?; output.build() }), }, @@ -5836,7 +5992,7 @@ pub fn parse_get_integration_response_response( #[allow(unused_mut)] let mut output = crate::output::get_integration_response_output::Builder::default(); let _ = response; - output = crate::json_deser::get_integration_response_deser_operation( + output = crate::json_deser::deser_operation_get_integration_response( response.body().as_ref(), output, ) @@ -5858,48 +6014,47 @@ pub fn parse_get_method_error( Err(match error_code { "NotFoundException" => crate::error::GetMethodError { meta: generic, - kind: crate::error::GetMethodErrorKind::NotFoundError({ + kind: crate::error::GetMethodErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetMethodError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMethodError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetMethodError { meta: generic, - kind: crate::error::GetMethodErrorKind::TooManyRequestsError({ + kind: crate::error::GetMethodErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_method_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetMethodError { meta: generic, - kind: crate::error::GetMethodErrorKind::UnauthorizedError({ + kind: crate::error::GetMethodErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetMethodError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMethodError::unhandled)?; output.build() }), }, @@ -5915,7 +6070,7 @@ pub fn parse_get_method_response( #[allow(unused_mut)] let mut output = crate::output::get_method_output::Builder::default(); let _ = response; - output = crate::json_deser::get_method_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_method(response.body().as_ref(), output) .map_err(crate::error::GetMethodError::unhandled)?; output.build() }) @@ -5935,48 +6090,47 @@ pub fn parse_get_method_response_error( Err(match error_code { "NotFoundException" => crate::error::GetMethodResponseError { meta: generic, - kind: crate::error::GetMethodResponseErrorKind::NotFoundError({ + kind: crate::error::GetMethodResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMethodResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetMethodResponseError { meta: generic, - kind: crate::error::GetMethodResponseErrorKind::TooManyRequestsError({ + kind: crate::error::GetMethodResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_method_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetMethodResponseError { meta: generic, - kind: crate::error::GetMethodResponseErrorKind::UnauthorizedError({ + kind: crate::error::GetMethodResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMethodResponseError::unhandled)?; output.build() }), }, @@ -5993,7 +6147,7 @@ pub fn parse_get_method_response_response( #[allow(unused_mut)] let mut output = crate::output::get_method_response_output::Builder::default(); let _ = response; - output = crate::json_deser::get_method_response_deser_operation( + output = crate::json_deser::deser_operation_get_method_response( response.body().as_ref(), output, ) @@ -6015,48 +6169,47 @@ pub fn parse_get_model_error( Err(match error_code { "NotFoundException" => crate::error::GetModelError { meta: generic, - kind: crate::error::GetModelErrorKind::NotFoundError({ + kind: crate::error::GetModelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetModelError { meta: generic, - kind: crate::error::GetModelErrorKind::TooManyRequestsError({ + kind: crate::error::GetModelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetModelError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_model_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetModelError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_model_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetModelError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetModelError { meta: generic, - kind: crate::error::GetModelErrorKind::UnauthorizedError({ + kind: crate::error::GetModelErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelError::unhandled)?; output.build() }), }, @@ -6072,7 +6225,7 @@ pub fn parse_get_model_response( #[allow(unused_mut)] let mut output = crate::output::get_model_output::Builder::default(); let _ = response; - output = crate::json_deser::get_model_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_model(response.body().as_ref(), output) .map_err(crate::error::GetModelError::unhandled)?; output.build() }) @@ -6091,59 +6244,61 @@ pub fn parse_get_models_error( Err(match error_code { "BadRequestException" => crate::error::GetModelsError { meta: generic, - kind: crate::error::GetModelsErrorKind::BadRequestError({ + kind: crate::error::GetModelsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetModelsError { meta: generic, - kind: crate::error::GetModelsErrorKind::NotFoundError({ + kind: crate::error::GetModelsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetModelsError { meta: generic, - kind: crate::error::GetModelsErrorKind::TooManyRequestsError({ + kind: crate::error::GetModelsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetModelsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_models_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetModelsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_models_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetModelsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetModelsError { meta: generic, - kind: crate::error::GetModelsErrorKind::UnauthorizedError({ + kind: crate::error::GetModelsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelsError::unhandled)?; output.build() }), }, @@ -6159,7 +6314,7 @@ pub fn parse_get_models_response( #[allow(unused_mut)] let mut output = crate::output::get_models_output::Builder::default(); let _ = response; - output = crate::json_deser::get_models_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_models(response.body().as_ref(), output) .map_err(crate::error::GetModelsError::unhandled)?; output.build() }) @@ -6179,59 +6334,61 @@ pub fn parse_get_model_template_error( Err(match error_code { "BadRequestException" => crate::error::GetModelTemplateError { meta: generic, - kind: crate::error::GetModelTemplateErrorKind::BadRequestError({ + kind: crate::error::GetModelTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetModelTemplateError { meta: generic, - kind: crate::error::GetModelTemplateErrorKind::NotFoundError({ + kind: crate::error::GetModelTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetModelTemplateError { meta: generic, - kind: crate::error::GetModelTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::GetModelTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetModelTemplateError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_model_template_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetModelTemplateError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_model_template_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetModelTemplateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetModelTemplateError { meta: generic, - kind: crate::error::GetModelTemplateErrorKind::UnauthorizedError({ + kind: crate::error::GetModelTemplateErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetModelTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelTemplateError::unhandled)?; output.build() }), }, @@ -6249,7 +6406,7 @@ pub fn parse_get_model_template_response( let mut output = crate::output::get_model_template_output::Builder::default(); let _ = response; output = - crate::json_deser::get_model_template_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_model_template(response.body().as_ref(), output) .map_err(crate::error::GetModelTemplateError::unhandled)?; output.build() }) @@ -6271,48 +6428,47 @@ pub fn parse_get_request_validator_error( Err(match error_code { "NotFoundException" => crate::error::GetRequestValidatorError { meta: generic, - kind: crate::error::GetRequestValidatorErrorKind::NotFoundError({ + kind: crate::error::GetRequestValidatorErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRequestValidatorError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetRequestValidatorError { meta: generic, - kind: crate::error::GetRequestValidatorErrorKind::TooManyRequestsError({ + kind: crate::error::GetRequestValidatorErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetRequestValidatorError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_request_validator_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetRequestValidatorError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_request_validator_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetRequestValidatorError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetRequestValidatorError { meta: generic, - kind: crate::error::GetRequestValidatorErrorKind::UnauthorizedError({ + kind: crate::error::GetRequestValidatorErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRequestValidatorError::unhandled)?; output.build() }), }, @@ -6331,7 +6487,7 @@ pub fn parse_get_request_validator_response( #[allow(unused_mut)] let mut output = crate::output::get_request_validator_output::Builder::default(); let _ = response; - output = crate::json_deser::get_request_validator_deser_operation( + output = crate::json_deser::deser_operation_get_request_validator( response.body().as_ref(), output, ) @@ -6356,59 +6512,61 @@ pub fn parse_get_request_validators_error( Err(match error_code { "BadRequestException" => crate::error::GetRequestValidatorsError { meta: generic, - kind: crate::error::GetRequestValidatorsErrorKind::BadRequestError({ + kind: crate::error::GetRequestValidatorsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRequestValidatorsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRequestValidatorsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetRequestValidatorsError { meta: generic, - kind: crate::error::GetRequestValidatorsErrorKind::NotFoundError({ + kind: crate::error::GetRequestValidatorsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRequestValidatorsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRequestValidatorsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetRequestValidatorsError { meta: generic, - kind: crate::error::GetRequestValidatorsErrorKind::TooManyRequestsError({ + kind: crate::error::GetRequestValidatorsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetRequestValidatorsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_request_validators_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetRequestValidatorsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_request_validators_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetRequestValidatorsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetRequestValidatorsError { meta: generic, - kind: crate::error::GetRequestValidatorsErrorKind::UnauthorizedError({ + kind: crate::error::GetRequestValidatorsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRequestValidatorsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRequestValidatorsError::unhandled)?; output.build() }), }, @@ -6427,7 +6585,7 @@ pub fn parse_get_request_validators_response( #[allow(unused_mut)] let mut output = crate::output::get_request_validators_output::Builder::default(); let _ = response; - output = crate::json_deser::get_request_validators_deser_operation( + output = crate::json_deser::deser_operation_get_request_validators( response.body().as_ref(), output, ) @@ -6449,48 +6607,47 @@ pub fn parse_get_resource_error( Err(match error_code { "NotFoundException" => crate::error::GetResourceError { meta: generic, - kind: crate::error::GetResourceErrorKind::NotFoundError({ + kind: crate::error::GetResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetResourceError { meta: generic, - kind: crate::error::GetResourceErrorKind::TooManyRequestsError({ + kind: crate::error::GetResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetResourceError { meta: generic, - kind: crate::error::GetResourceErrorKind::UnauthorizedError({ + kind: crate::error::GetResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourceError::unhandled)?; output.build() }), }, @@ -6506,7 +6663,7 @@ pub fn parse_get_resource_response( #[allow(unused_mut)] let mut output = crate::output::get_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::get_resource_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_resource(response.body().as_ref(), output) .map_err(crate::error::GetResourceError::unhandled)?; output.build() }) @@ -6525,59 +6682,61 @@ pub fn parse_get_resources_error( Err(match error_code { "BadRequestException" => crate::error::GetResourcesError { meta: generic, - kind: crate::error::GetResourcesErrorKind::BadRequestError({ + kind: crate::error::GetResourcesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetResourcesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetResourcesError { meta: generic, - kind: crate::error::GetResourcesErrorKind::NotFoundError({ + kind: crate::error::GetResourcesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetResourcesError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetResourcesError { meta: generic, - kind: crate::error::GetResourcesErrorKind::TooManyRequestsError({ + kind: crate::error::GetResourcesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetResourcesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_resources_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetResourcesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_resources_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetResourcesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetResourcesError { meta: generic, - kind: crate::error::GetResourcesErrorKind::UnauthorizedError({ + kind: crate::error::GetResourcesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetResourcesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcesError::unhandled)?; output.build() }), }, @@ -6593,7 +6752,7 @@ pub fn parse_get_resources_response( #[allow(unused_mut)] let mut output = crate::output::get_resources_output::Builder::default(); let _ = response; - output = crate::json_deser::get_resources_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_resources(response.body().as_ref(), output) .map_err(crate::error::GetResourcesError::unhandled)?; output.build() }) @@ -6612,48 +6771,47 @@ pub fn parse_get_rest_api_error( Err(match error_code { "NotFoundException" => crate::error::GetRestApiError { meta: generic, - kind: crate::error::GetRestApiErrorKind::NotFoundError({ + kind: crate::error::GetRestApiErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRestApiError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetRestApiError { meta: generic, - kind: crate::error::GetRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::GetRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetRestApiError { meta: generic, - kind: crate::error::GetRestApiErrorKind::UnauthorizedError({ + kind: crate::error::GetRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRestApiError::unhandled)?; output.build() }), }, @@ -6669,7 +6827,7 @@ pub fn parse_get_rest_api_response( #[allow(unused_mut)] let mut output = crate::output::get_rest_api_output::Builder::default(); let _ = response; - output = crate::json_deser::get_rest_api_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_rest_api(response.body().as_ref(), output) .map_err(crate::error::GetRestApiError::unhandled)?; output.build() }) @@ -6688,48 +6846,47 @@ pub fn parse_get_rest_apis_error( Err(match error_code { "BadRequestException" => crate::error::GetRestApisError { meta: generic, - kind: crate::error::GetRestApisErrorKind::BadRequestError({ + kind: crate::error::GetRestApisErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRestApisError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRestApisError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetRestApisError { meta: generic, - kind: crate::error::GetRestApisErrorKind::TooManyRequestsError({ + kind: crate::error::GetRestApisErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetRestApisError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_rest_apis_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetRestApisError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_rest_apis_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetRestApisError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetRestApisError { meta: generic, - kind: crate::error::GetRestApisErrorKind::UnauthorizedError({ + kind: crate::error::GetRestApisErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetRestApisError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRestApisError::unhandled)?; output.build() }), }, @@ -6745,7 +6902,7 @@ pub fn parse_get_rest_apis_response( #[allow(unused_mut)] let mut output = crate::output::get_rest_apis_output::Builder::default(); let _ = response; - output = crate::json_deser::get_rest_apis_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_rest_apis(response.body().as_ref(), output) .map_err(crate::error::GetRestApisError::unhandled)?; output.build() }) @@ -6764,68 +6921,75 @@ pub fn parse_get_sdk_error( Err(match error_code { "BadRequestException" => crate::error::GetSdkError { meta: generic, - kind: crate::error::GetSdkErrorKind::BadRequestError({ + kind: crate::error::GetSdkErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::GetSdkError { meta: generic, - kind: crate::error::GetSdkErrorKind::ConflictError({ + kind: crate::error::GetSdkErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetSdkError { meta: generic, - kind: crate::error::GetSdkErrorKind::NotFoundError({ + kind: crate::error::GetSdkErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetSdkError { meta: generic, - kind: crate::error::GetSdkErrorKind::TooManyRequestsError({ + kind: crate::error::GetSdkErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetSdkError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_sdk_retry_after_seconds(response.headers()) - .map_err(|_| { - crate::error::GetSdkError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_sdk_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetSdkError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetSdkError { meta: generic, - kind: crate::error::GetSdkErrorKind::UnauthorizedError({ + kind: crate::error::GetSdkErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkError::unhandled)?; output.build() }), }, @@ -6841,25 +7005,26 @@ pub fn parse_get_sdk_response( #[allow(unused_mut)] let mut output = crate::output::get_sdk_output::Builder::default(); let _ = response; - output = output.set_body(crate::http_serde::deser_payload_get_sdk_body( - response.body().as_ref(), - )?); + output = output.set_body( + crate::http_serde::deser_payload_get_sdk_get_sdk_output_body(response.body().as_ref())?, + ); output = output.set_content_disposition( - crate::http_serde::deser_header_get_sdk_content_disposition(response.headers()) - .map_err(|_| { - crate::error::GetSdkError::unhandled( - "Failed to parse contentDisposition from header `Content-Disposition", - ) - })?, + crate::http_serde::deser_header_get_sdk_get_sdk_output_content_disposition( + response.headers(), + ) + .map_err(|_| { + crate::error::GetSdkError::unhandled( + "Failed to parse contentDisposition from header `Content-Disposition", + ) + })?, ); output = output.set_content_type( - crate::http_serde::deser_header_get_sdk_content_type(response.headers()).map_err( - |_| { + crate::http_serde::deser_header_get_sdk_get_sdk_output_content_type(response.headers()) + .map_err(|_| { crate::error::GetSdkError::unhandled( "Failed to parse contentType from header `Content-Type", ) - }, - )?, + })?, ); output.build() }) @@ -6878,48 +7043,47 @@ pub fn parse_get_sdk_type_error( Err(match error_code { "NotFoundException" => crate::error::GetSdkTypeError { meta: generic, - kind: crate::error::GetSdkTypeErrorKind::NotFoundError({ + kind: crate::error::GetSdkTypeErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkTypeError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkTypeError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetSdkTypeError { meta: generic, - kind: crate::error::GetSdkTypeErrorKind::TooManyRequestsError({ + kind: crate::error::GetSdkTypeErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetSdkTypeError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_sdk_type_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetSdkTypeError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_sdk_type_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetSdkTypeError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetSdkTypeError { meta: generic, - kind: crate::error::GetSdkTypeErrorKind::UnauthorizedError({ + kind: crate::error::GetSdkTypeErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkTypeError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkTypeError::unhandled)?; output.build() }), }, @@ -6935,7 +7099,7 @@ pub fn parse_get_sdk_type_response( #[allow(unused_mut)] let mut output = crate::output::get_sdk_type_output::Builder::default(); let _ = response; - output = crate::json_deser::get_sdk_type_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_sdk_type(response.body().as_ref(), output) .map_err(crate::error::GetSdkTypeError::unhandled)?; output.build() }) @@ -6954,37 +7118,33 @@ pub fn parse_get_sdk_types_error( Err(match error_code { "TooManyRequestsException" => crate::error::GetSdkTypesError { meta: generic, - kind: crate::error::GetSdkTypesErrorKind::TooManyRequestsError({ + kind: crate::error::GetSdkTypesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetSdkTypesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_sdk_types_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetSdkTypesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_sdk_types_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetSdkTypesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetSdkTypesError { meta: generic, - kind: crate::error::GetSdkTypesErrorKind::UnauthorizedError({ + kind: crate::error::GetSdkTypesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSdkTypesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSdkTypesError::unhandled)?; output.build() }), }, @@ -7000,7 +7160,7 @@ pub fn parse_get_sdk_types_response( #[allow(unused_mut)] let mut output = crate::output::get_sdk_types_output::Builder::default(); let _ = response; - output = crate::json_deser::get_sdk_types_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_sdk_types(response.body().as_ref(), output) .map_err(crate::error::GetSdkTypesError::unhandled)?; output.build() }) @@ -7019,48 +7179,47 @@ pub fn parse_get_stage_error( Err(match error_code { "NotFoundException" => crate::error::GetStageError { meta: generic, - kind: crate::error::GetStageErrorKind::NotFoundError({ + kind: crate::error::GetStageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetStageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetStageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetStageError { meta: generic, - kind: crate::error::GetStageErrorKind::TooManyRequestsError({ + kind: crate::error::GetStageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetStageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_stage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetStageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_stage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetStageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetStageError { meta: generic, - kind: crate::error::GetStageErrorKind::UnauthorizedError({ + kind: crate::error::GetStageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetStageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetStageError::unhandled)?; output.build() }), }, @@ -7076,7 +7235,7 @@ pub fn parse_get_stage_response( #[allow(unused_mut)] let mut output = crate::output::get_stage_output::Builder::default(); let _ = response; - output = crate::json_deser::get_stage_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_stage(response.body().as_ref(), output) .map_err(crate::error::GetStageError::unhandled)?; output.build() }) @@ -7095,48 +7254,47 @@ pub fn parse_get_stages_error( Err(match error_code { "NotFoundException" => crate::error::GetStagesError { meta: generic, - kind: crate::error::GetStagesErrorKind::NotFoundError({ + kind: crate::error::GetStagesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetStagesError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetStagesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetStagesError { meta: generic, - kind: crate::error::GetStagesErrorKind::TooManyRequestsError({ + kind: crate::error::GetStagesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetStagesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_stages_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetStagesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_stages_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetStagesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetStagesError { meta: generic, - kind: crate::error::GetStagesErrorKind::UnauthorizedError({ + kind: crate::error::GetStagesErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetStagesError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetStagesError::unhandled)?; output.build() }), }, @@ -7152,7 +7310,7 @@ pub fn parse_get_stages_response( #[allow(unused_mut)] let mut output = crate::output::get_stages_output::Builder::default(); let _ = response; - output = crate::json_deser::get_stages_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_stages(response.body().as_ref(), output) .map_err(crate::error::GetStagesError::unhandled)?; output.build() }) @@ -7171,81 +7329,79 @@ pub fn parse_get_tags_error( Err(match error_code { "BadRequestException" => crate::error::GetTagsError { meta: generic, - kind: crate::error::GetTagsErrorKind::BadRequestError({ + kind: crate::error::GetTagsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetTagsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetTagsError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::GetTagsError { meta: generic, - kind: crate::error::GetTagsErrorKind::LimitExceededError({ + kind: crate::error::GetTagsErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::GetTagsError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetTagsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_tags_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetTagsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_tags_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetTagsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::GetTagsError { meta: generic, - kind: crate::error::GetTagsErrorKind::NotFoundError({ + kind: crate::error::GetTagsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetTagsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetTagsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetTagsError { meta: generic, - kind: crate::error::GetTagsErrorKind::TooManyRequestsError({ + kind: crate::error::GetTagsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetTagsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_tags_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetTagsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_tags_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetTagsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetTagsError { meta: generic, - kind: crate::error::GetTagsErrorKind::UnauthorizedError({ + kind: crate::error::GetTagsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetTagsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetTagsError::unhandled)?; output.build() }), }, @@ -7261,7 +7417,7 @@ pub fn parse_get_tags_response( #[allow(unused_mut)] let mut output = crate::output::get_tags_output::Builder::default(); let _ = response; - output = crate::json_deser::get_tags_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_tags(response.body().as_ref(), output) .map_err(crate::error::GetTagsError::unhandled)?; output.build() }) @@ -7280,59 +7436,61 @@ pub fn parse_get_usage_error( Err(match error_code { "BadRequestException" => crate::error::GetUsageError { meta: generic, - kind: crate::error::GetUsageErrorKind::BadRequestError({ + kind: crate::error::GetUsageErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsageError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsageError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetUsageError { meta: generic, - kind: crate::error::GetUsageErrorKind::NotFoundError({ + kind: crate::error::GetUsageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetUsageError { meta: generic, - kind: crate::error::GetUsageErrorKind::TooManyRequestsError({ + kind: crate::error::GetUsageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetUsageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_usage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetUsageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_usage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetUsageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetUsageError { meta: generic, - kind: crate::error::GetUsageErrorKind::UnauthorizedError({ + kind: crate::error::GetUsageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsageError::unhandled)?; output.build() }), }, @@ -7348,7 +7506,7 @@ pub fn parse_get_usage_response( #[allow(unused_mut)] let mut output = crate::output::get_usage_output::Builder::default(); let _ = response; - output = crate::json_deser::get_usage_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_usage(response.body().as_ref(), output) .map_err(crate::error::GetUsageError::unhandled)?; output.build() }) @@ -7367,59 +7525,61 @@ pub fn parse_get_usage_plan_error( Err(match error_code { "BadRequestException" => crate::error::GetUsagePlanError { meta: generic, - kind: crate::error::GetUsagePlanErrorKind::BadRequestError({ + kind: crate::error::GetUsagePlanErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetUsagePlanError { meta: generic, - kind: crate::error::GetUsagePlanErrorKind::NotFoundError({ + kind: crate::error::GetUsagePlanErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetUsagePlanError { meta: generic, - kind: crate::error::GetUsagePlanErrorKind::TooManyRequestsError({ + kind: crate::error::GetUsagePlanErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetUsagePlanError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_usage_plan_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetUsagePlanError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_usage_plan_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetUsagePlanError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetUsagePlanError { meta: generic, - kind: crate::error::GetUsagePlanErrorKind::UnauthorizedError({ + kind: crate::error::GetUsagePlanErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanError::unhandled)?; output.build() }), }, @@ -7436,7 +7596,7 @@ pub fn parse_get_usage_plan_response( let mut output = crate::output::get_usage_plan_output::Builder::default(); let _ = response; output = - crate::json_deser::get_usage_plan_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_usage_plan(response.body().as_ref(), output) .map_err(crate::error::GetUsagePlanError::unhandled)?; output.build() }) @@ -7455,59 +7615,61 @@ pub fn parse_get_usage_plan_key_error( Err(match error_code { "BadRequestException" => crate::error::GetUsagePlanKeyError { meta: generic, - kind: crate::error::GetUsagePlanKeyErrorKind::BadRequestError({ + kind: crate::error::GetUsagePlanKeyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetUsagePlanKeyError { meta: generic, - kind: crate::error::GetUsagePlanKeyErrorKind::NotFoundError({ + kind: crate::error::GetUsagePlanKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetUsagePlanKeyError { meta: generic, - kind: crate::error::GetUsagePlanKeyErrorKind::TooManyRequestsError({ + kind: crate::error::GetUsagePlanKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_usage_plan_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetUsagePlanKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_usage_plan_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetUsagePlanKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetUsagePlanKeyError { meta: generic, - kind: crate::error::GetUsagePlanKeyErrorKind::UnauthorizedError({ + kind: crate::error::GetUsagePlanKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; output.build() }), }, @@ -7524,7 +7686,7 @@ pub fn parse_get_usage_plan_key_response( let mut output = crate::output::get_usage_plan_key_output::Builder::default(); let _ = response; output = - crate::json_deser::get_usage_plan_key_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_usage_plan_key(response.body().as_ref(), output) .map_err(crate::error::GetUsagePlanKeyError::unhandled)?; output.build() }) @@ -7544,59 +7706,61 @@ pub fn parse_get_usage_plan_keys_error( Err(match error_code { "BadRequestException" => crate::error::GetUsagePlanKeysError { meta: generic, - kind: crate::error::GetUsagePlanKeysErrorKind::BadRequestError({ + kind: crate::error::GetUsagePlanKeysErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetUsagePlanKeysError { meta: generic, - kind: crate::error::GetUsagePlanKeysErrorKind::NotFoundError({ + kind: crate::error::GetUsagePlanKeysErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetUsagePlanKeysError { meta: generic, - kind: crate::error::GetUsagePlanKeysErrorKind::TooManyRequestsError({ + kind: crate::error::GetUsagePlanKeysErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_usage_plan_keys_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetUsagePlanKeysError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_usage_plan_keys_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetUsagePlanKeysError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetUsagePlanKeysError { meta: generic, - kind: crate::error::GetUsagePlanKeysErrorKind::UnauthorizedError({ + kind: crate::error::GetUsagePlanKeysErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlanKeysError::unhandled)?; output.build() }), }, @@ -7613,7 +7777,7 @@ pub fn parse_get_usage_plan_keys_response( #[allow(unused_mut)] let mut output = crate::output::get_usage_plan_keys_output::Builder::default(); let _ = response; - output = crate::json_deser::get_usage_plan_keys_deser_operation( + output = crate::json_deser::deser_operation_get_usage_plan_keys( response.body().as_ref(), output, ) @@ -7635,70 +7799,75 @@ pub fn parse_get_usage_plans_error( Err(match error_code { "BadRequestException" => crate::error::GetUsagePlansError { meta: generic, - kind: crate::error::GetUsagePlansErrorKind::BadRequestError({ + kind: crate::error::GetUsagePlansErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlansError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlansError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::GetUsagePlansError { meta: generic, - kind: crate::error::GetUsagePlansErrorKind::ConflictError({ + kind: crate::error::GetUsagePlansErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlansError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlansError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetUsagePlansError { meta: generic, - kind: crate::error::GetUsagePlansErrorKind::NotFoundError({ + kind: crate::error::GetUsagePlansErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlansError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlansError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetUsagePlansError { meta: generic, - kind: crate::error::GetUsagePlansErrorKind::TooManyRequestsError({ + kind: crate::error::GetUsagePlansErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetUsagePlansError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_usage_plans_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetUsagePlansError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_usage_plans_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetUsagePlansError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetUsagePlansError { meta: generic, - kind: crate::error::GetUsagePlansErrorKind::UnauthorizedError({ + kind: crate::error::GetUsagePlansErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetUsagePlansError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetUsagePlansError::unhandled)?; output.build() }), }, @@ -7715,7 +7884,7 @@ pub fn parse_get_usage_plans_response( let mut output = crate::output::get_usage_plans_output::Builder::default(); let _ = response; output = - crate::json_deser::get_usage_plans_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_usage_plans(response.body().as_ref(), output) .map_err(crate::error::GetUsagePlansError::unhandled)?; output.build() }) @@ -7734,48 +7903,47 @@ pub fn parse_get_vpc_link_error( Err(match error_code { "NotFoundException" => crate::error::GetVpcLinkError { meta: generic, - kind: crate::error::GetVpcLinkErrorKind::NotFoundError({ + kind: crate::error::GetVpcLinkErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetVpcLinkError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetVpcLinkError { meta: generic, - kind: crate::error::GetVpcLinkErrorKind::TooManyRequestsError({ + kind: crate::error::GetVpcLinkErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetVpcLinkError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_vpc_link_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetVpcLinkError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_vpc_link_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetVpcLinkError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetVpcLinkError { meta: generic, - kind: crate::error::GetVpcLinkErrorKind::UnauthorizedError({ + kind: crate::error::GetVpcLinkErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetVpcLinkError::unhandled)?; output.build() }), }, @@ -7791,7 +7959,7 @@ pub fn parse_get_vpc_link_response( #[allow(unused_mut)] let mut output = crate::output::get_vpc_link_output::Builder::default(); let _ = response; - output = crate::json_deser::get_vpc_link_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_vpc_link(response.body().as_ref(), output) .map_err(crate::error::GetVpcLinkError::unhandled)?; output.build() }) @@ -7810,48 +7978,47 @@ pub fn parse_get_vpc_links_error( Err(match error_code { "BadRequestException" => crate::error::GetVpcLinksError { meta: generic, - kind: crate::error::GetVpcLinksErrorKind::BadRequestError({ + kind: crate::error::GetVpcLinksErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetVpcLinksError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetVpcLinksError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetVpcLinksError { meta: generic, - kind: crate::error::GetVpcLinksErrorKind::TooManyRequestsError({ + kind: crate::error::GetVpcLinksErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetVpcLinksError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_vpc_links_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetVpcLinksError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_vpc_links_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetVpcLinksError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::GetVpcLinksError { meta: generic, - kind: crate::error::GetVpcLinksErrorKind::UnauthorizedError({ + kind: crate::error::GetVpcLinksErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::GetVpcLinksError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetVpcLinksError::unhandled)?; output.build() }), }, @@ -7867,7 +8034,7 @@ pub fn parse_get_vpc_links_response( #[allow(unused_mut)] let mut output = crate::output::get_vpc_links_output::Builder::default(); let _ = response; - output = crate::json_deser::get_vpc_links_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_vpc_links(response.body().as_ref(), output) .map_err(crate::error::GetVpcLinksError::unhandled)?; output.build() }) @@ -7886,92 +8053,93 @@ pub fn parse_import_api_keys_error( Err(match error_code { "BadRequestException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::BadRequestError({ + kind: crate::error::ImportApiKeysErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportApiKeysError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::ConflictError({ + kind: crate::error::ImportApiKeysErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportApiKeysError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::LimitExceededError({ + kind: crate::error::ImportApiKeysErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportApiKeysError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_api_keys_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ImportApiKeysError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_import_api_keys_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ImportApiKeysError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::NotFoundError({ + kind: crate::error::ImportApiKeysErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportApiKeysError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::TooManyRequestsError({ + kind: crate::error::ImportApiKeysErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ImportApiKeysError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_api_keys_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ImportApiKeysError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_import_api_keys_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ImportApiKeysError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::ImportApiKeysError { meta: generic, - kind: crate::error::ImportApiKeysErrorKind::UnauthorizedError({ + kind: crate::error::ImportApiKeysErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportApiKeysError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportApiKeysError::unhandled)?; output.build() }), }, @@ -7988,7 +8156,7 @@ pub fn parse_import_api_keys_response( let mut output = crate::output::import_api_keys_output::Builder::default(); let _ = response; output = - crate::json_deser::import_api_keys_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_import_api_keys(response.body().as_ref(), output) .map_err(crate::error::ImportApiKeysError::unhandled)?; output.build() }) @@ -8014,75 +8182,79 @@ pub fn parse_import_documentation_parts_error( Err(match error_code { "BadRequestException" => crate::error::ImportDocumentationPartsError { meta: generic, - kind: crate::error::ImportDocumentationPartsErrorKind::BadRequestError({ + kind: crate::error::ImportDocumentationPartsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; output.build() }), }, - "LimitExceededException" => { - crate::error::ImportDocumentationPartsError { - meta: generic, - kind: crate::error::ImportDocumentationPartsErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_documentation_parts_retry_after_seconds(response.headers()) + "LimitExceededException" => crate::error::ImportDocumentationPartsError { + meta: generic, + kind: crate::error::ImportDocumentationPartsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_import_documentation_parts_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ImportDocumentationPartsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "NotFoundException" => crate::error::ImportDocumentationPartsError { meta: generic, - kind: crate::error::ImportDocumentationPartsErrorKind::NotFoundError({ + kind: crate::error::ImportDocumentationPartsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::ImportDocumentationPartsError { - meta: generic, - kind: crate::error::ImportDocumentationPartsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_documentation_parts_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::ImportDocumentationPartsError { + meta: generic, + kind: crate::error::ImportDocumentationPartsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_import_documentation_parts_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ImportDocumentationPartsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::ImportDocumentationPartsError { meta: generic, - kind: crate::error::ImportDocumentationPartsErrorKind::UnauthorizedError({ + kind: crate::error::ImportDocumentationPartsErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportDocumentationPartsError::unhandled)?; output.build() }), }, @@ -8101,7 +8273,7 @@ pub fn parse_import_documentation_parts_response( #[allow(unused_mut)] let mut output = crate::output::import_documentation_parts_output::Builder::default(); let _ = response; - output = crate::json_deser::import_documentation_parts_deser_operation( + output = crate::json_deser::deser_operation_import_documentation_parts( response.body().as_ref(), output, ) @@ -8123,81 +8295,79 @@ pub fn parse_import_rest_api_error( Err(match error_code { "BadRequestException" => crate::error::ImportRestApiError { meta: generic, - kind: crate::error::ImportRestApiErrorKind::BadRequestError({ + kind: crate::error::ImportRestApiErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportRestApiError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::ImportRestApiError { meta: generic, - kind: crate::error::ImportRestApiErrorKind::ConflictError({ + kind: crate::error::ImportRestApiErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportRestApiError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::ImportRestApiError { meta: generic, - kind: crate::error::ImportRestApiErrorKind::LimitExceededError({ + kind: crate::error::ImportRestApiErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ImportRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_import_rest_api_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ImportRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::ImportRestApiError { meta: generic, - kind: crate::error::ImportRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::ImportRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ImportRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_import_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ImportRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_import_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ImportRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::ImportRestApiError { meta: generic, - kind: crate::error::ImportRestApiErrorKind::UnauthorizedError({ + kind: crate::error::ImportRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::ImportRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportRestApiError::unhandled)?; output.build() }), }, @@ -8214,7 +8384,7 @@ pub fn parse_import_rest_api_response( let mut output = crate::output::import_rest_api_output::Builder::default(); let _ = response; output = - crate::json_deser::import_rest_api_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_import_rest_api(response.body().as_ref(), output) .map_err(crate::error::ImportRestApiError::unhandled)?; output.build() }) @@ -8236,81 +8406,79 @@ pub fn parse_put_gateway_response_error( Err(match error_code { "BadRequestException" => crate::error::PutGatewayResponseError { meta: generic, - kind: crate::error::PutGatewayResponseErrorKind::BadRequestError({ + kind: crate::error::PutGatewayResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutGatewayResponseError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::PutGatewayResponseError { meta: generic, - kind: crate::error::PutGatewayResponseErrorKind::LimitExceededError({ + kind: crate::error::PutGatewayResponseErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::PutGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutGatewayResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_gateway_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutGatewayResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_gateway_response_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutGatewayResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::PutGatewayResponseError { meta: generic, - kind: crate::error::PutGatewayResponseErrorKind::NotFoundError({ + kind: crate::error::PutGatewayResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutGatewayResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutGatewayResponseError { meta: generic, - kind: crate::error::PutGatewayResponseErrorKind::TooManyRequestsError({ + kind: crate::error::PutGatewayResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutGatewayResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_gateway_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutGatewayResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_gateway_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutGatewayResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::PutGatewayResponseError { meta: generic, - kind: crate::error::PutGatewayResponseErrorKind::UnauthorizedError({ + kind: crate::error::PutGatewayResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutGatewayResponseError::unhandled)?; output.build() }), }, @@ -8329,7 +8497,7 @@ pub fn parse_put_gateway_response_response( #[allow(unused_mut)] let mut output = crate::output::put_gateway_response_output::Builder::default(); let _ = response; - output = crate::json_deser::put_gateway_response_deser_operation( + output = crate::json_deser::deser_operation_put_gateway_response( response.body().as_ref(), output, ) @@ -8351,70 +8519,75 @@ pub fn parse_put_integration_error( Err(match error_code { "BadRequestException" => crate::error::PutIntegrationError { meta: generic, - kind: crate::error::PutIntegrationErrorKind::BadRequestError({ + kind: crate::error::PutIntegrationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutIntegrationError { meta: generic, - kind: crate::error::PutIntegrationErrorKind::ConflictError({ + kind: crate::error::PutIntegrationErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutIntegrationError { meta: generic, - kind: crate::error::PutIntegrationErrorKind::NotFoundError({ + kind: crate::error::PutIntegrationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutIntegrationError { meta: generic, - kind: crate::error::PutIntegrationErrorKind::TooManyRequestsError({ + kind: crate::error::PutIntegrationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutIntegrationError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_integration_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutIntegrationError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_integration_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutIntegrationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::PutIntegrationError { meta: generic, - kind: crate::error::PutIntegrationErrorKind::UnauthorizedError({ + kind: crate::error::PutIntegrationErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationError::unhandled)?; output.build() }), }, @@ -8431,7 +8604,7 @@ pub fn parse_put_integration_response( let mut output = crate::output::put_integration_output::Builder::default(); let _ = response; output = - crate::json_deser::put_integration_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_put_integration(response.body().as_ref(), output) .map_err(crate::error::PutIntegrationError::unhandled)?; output.build() }) @@ -8457,86 +8630,93 @@ pub fn parse_put_integration_response_error( Err(match error_code { "BadRequestException" => crate::error::PutIntegrationResponseError { meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::BadRequestError({ + kind: crate::error::PutIntegrationResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutIntegrationResponseError { meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::ConflictError({ + kind: crate::error::PutIntegrationResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; output.build() }), }, - "LimitExceededException" => { - crate::error::PutIntegrationResponseError { - meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_integration_response_retry_after_seconds(response.headers()) + "LimitExceededException" => crate::error::PutIntegrationResponseError { + meta: generic, + kind: crate::error::PutIntegrationResponseErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_put_integration_response_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "NotFoundException" => crate::error::PutIntegrationResponseError { meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::NotFoundError({ + kind: crate::error::PutIntegrationResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::PutIntegrationResponseError { - meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_integration_response_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::PutIntegrationResponseError { + meta: generic, + kind: crate::error::PutIntegrationResponseErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_put_integration_response_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::PutIntegrationResponseError { meta: generic, - kind: crate::error::PutIntegrationResponseErrorKind::UnauthorizedError({ + kind: crate::error::PutIntegrationResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutIntegrationResponseError::unhandled)?; output.build() }), }, @@ -8555,7 +8735,7 @@ pub fn parse_put_integration_response_response( #[allow(unused_mut)] let mut output = crate::output::put_integration_response_output::Builder::default(); let _ = response; - output = crate::json_deser::put_integration_response_deser_operation( + output = crate::json_deser::deser_operation_put_integration_response( response.body().as_ref(), output, ) @@ -8577,92 +8757,93 @@ pub fn parse_put_method_error( Err(match error_code { "BadRequestException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::BadRequestError({ + kind: crate::error::PutMethodErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::ConflictError({ + kind: crate::error::PutMethodErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::LimitExceededError({ + kind: crate::error::PutMethodErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_method_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::NotFoundError({ + kind: crate::error::PutMethodErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::TooManyRequestsError({ + kind: crate::error::PutMethodErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_method_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::PutMethodError { meta: generic, - kind: crate::error::PutMethodErrorKind::UnauthorizedError({ + kind: crate::error::PutMethodErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodError::unhandled)?; output.build() }), }, @@ -8678,7 +8859,7 @@ pub fn parse_put_method_response( #[allow(unused_mut)] let mut output = crate::output::put_method_output::Builder::default(); let _ = response; - output = crate::json_deser::put_method_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_put_method(response.body().as_ref(), output) .map_err(crate::error::PutMethodError::unhandled)?; output.build() }) @@ -8698,92 +8879,93 @@ pub fn parse_put_method_response_error( Err(match error_code { "BadRequestException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::BadRequestError({ + kind: crate::error::PutMethodResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::ConflictError({ + kind: crate::error::PutMethodResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodResponseError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::LimitExceededError({ + kind: crate::error::PutMethodResponseErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_method_response_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::NotFoundError({ + kind: crate::error::PutMethodResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::TooManyRequestsError({ + kind: crate::error::PutMethodResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_method_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::PutMethodResponseError { meta: generic, - kind: crate::error::PutMethodResponseErrorKind::UnauthorizedError({ + kind: crate::error::PutMethodResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMethodResponseError::unhandled)?; output.build() }), }, @@ -8800,7 +8982,7 @@ pub fn parse_put_method_response_response( #[allow(unused_mut)] let mut output = crate::output::put_method_response_output::Builder::default(); let _ = response; - output = crate::json_deser::put_method_response_deser_operation( + output = crate::json_deser::deser_operation_put_method_response( response.body().as_ref(), output, ) @@ -8822,92 +9004,93 @@ pub fn parse_put_rest_api_error( Err(match error_code { "BadRequestException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::BadRequestError({ + kind: crate::error::PutRestApiErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRestApiError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::ConflictError({ + kind: crate::error::PutRestApiErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRestApiError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::LimitExceededError({ + kind: crate::error::PutRestApiErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::PutRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_rest_api_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::NotFoundError({ + kind: crate::error::PutRestApiErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRestApiError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::PutRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PutRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_put_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PutRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::PutRestApiError { meta: generic, - kind: crate::error::PutRestApiErrorKind::UnauthorizedError({ + kind: crate::error::PutRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::PutRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRestApiError::unhandled)?; output.build() }), }, @@ -8923,7 +9106,7 @@ pub fn parse_put_rest_api_response( #[allow(unused_mut)] let mut output = crate::output::put_rest_api_output::Builder::default(); let _ = response; - output = crate::json_deser::put_rest_api_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_put_rest_api(response.body().as_ref(), output) .map_err(crate::error::PutRestApiError::unhandled)?; output.build() }) @@ -8942,92 +9125,93 @@ pub fn parse_tag_resource_error( Err(match error_code { "BadRequestException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::BadRequestError({ + kind: crate::error::TagResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ConflictError({ + kind: crate::error::TagResourceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::LimitExceededError({ + kind: crate::error::TagResourceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_tag_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::TagResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_tag_resource_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::TagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::NotFoundError({ + kind: crate::error::TagResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::TagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TagResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_tag_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::TagResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_tag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::TagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::UnauthorizedError({ + kind: crate::error::TagResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, @@ -9063,59 +9247,61 @@ pub fn parse_test_invoke_authorizer_error( Err(match error_code { "BadRequestException" => crate::error::TestInvokeAuthorizerError { meta: generic, - kind: crate::error::TestInvokeAuthorizerErrorKind::BadRequestError({ + kind: crate::error::TestInvokeAuthorizerErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::TestInvokeAuthorizerError { meta: generic, - kind: crate::error::TestInvokeAuthorizerErrorKind::NotFoundError({ + kind: crate::error::TestInvokeAuthorizerErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TestInvokeAuthorizerError { meta: generic, - kind: crate::error::TestInvokeAuthorizerErrorKind::TooManyRequestsError({ + kind: crate::error::TestInvokeAuthorizerErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_test_invoke_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::TestInvokeAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_test_invoke_authorizer_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::TestInvokeAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::TestInvokeAuthorizerError { meta: generic, - kind: crate::error::TestInvokeAuthorizerErrorKind::UnauthorizedError({ + kind: crate::error::TestInvokeAuthorizerErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeAuthorizerError::unhandled)?; output.build() }), }, @@ -9134,7 +9320,7 @@ pub fn parse_test_invoke_authorizer_response( #[allow(unused_mut)] let mut output = crate::output::test_invoke_authorizer_output::Builder::default(); let _ = response; - output = crate::json_deser::test_invoke_authorizer_deser_operation( + output = crate::json_deser::deser_operation_test_invoke_authorizer( response.body().as_ref(), output, ) @@ -9157,59 +9343,61 @@ pub fn parse_test_invoke_method_error( Err(match error_code { "BadRequestException" => crate::error::TestInvokeMethodError { meta: generic, - kind: crate::error::TestInvokeMethodErrorKind::BadRequestError({ + kind: crate::error::TestInvokeMethodErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeMethodError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeMethodError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::TestInvokeMethodError { meta: generic, - kind: crate::error::TestInvokeMethodErrorKind::NotFoundError({ + kind: crate::error::TestInvokeMethodErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeMethodError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeMethodError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TestInvokeMethodError { meta: generic, - kind: crate::error::TestInvokeMethodErrorKind::TooManyRequestsError({ + kind: crate::error::TestInvokeMethodErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TestInvokeMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_test_invoke_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::TestInvokeMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_test_invoke_method_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::TestInvokeMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::TestInvokeMethodError { meta: generic, - kind: crate::error::TestInvokeMethodErrorKind::UnauthorizedError({ + kind: crate::error::TestInvokeMethodErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::TestInvokeMethodError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestInvokeMethodError::unhandled)?; output.build() }), }, @@ -9227,7 +9415,7 @@ pub fn parse_test_invoke_method_response( let mut output = crate::output::test_invoke_method_output::Builder::default(); let _ = response; output = - crate::json_deser::test_invoke_method_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_test_invoke_method(response.body().as_ref(), output) .map_err(crate::error::TestInvokeMethodError::unhandled)?; output.build() }) @@ -9246,70 +9434,75 @@ pub fn parse_untag_resource_error( Err(match error_code { "BadRequestException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::BadRequestError({ + kind: crate::error::UntagResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ConflictError({ + kind: crate::error::UntagResourceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::NotFoundError({ + kind: crate::error::UntagResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::UntagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UntagResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_untag_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UntagResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_untag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UntagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::UnauthorizedError({ + kind: crate::error::UntagResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, @@ -9342,59 +9535,61 @@ pub fn parse_update_account_error( Err(match error_code { "BadRequestException" => crate::error::UpdateAccountError { meta: generic, - kind: crate::error::UpdateAccountErrorKind::BadRequestError({ + kind: crate::error::UpdateAccountErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAccountError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAccountError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateAccountError { meta: generic, - kind: crate::error::UpdateAccountErrorKind::NotFoundError({ + kind: crate::error::UpdateAccountErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAccountError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAccountError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateAccountError { meta: generic, - kind: crate::error::UpdateAccountErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateAccountErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAccountError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_account_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateAccountError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_account_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateAccountError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateAccountError { meta: generic, - kind: crate::error::UpdateAccountErrorKind::UnauthorizedError({ + kind: crate::error::UpdateAccountErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAccountError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAccountError::unhandled)?; output.build() }), }, @@ -9411,7 +9606,7 @@ pub fn parse_update_account_response( let mut output = crate::output::update_account_output::Builder::default(); let _ = response; output = - crate::json_deser::update_account_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_account(response.body().as_ref(), output) .map_err(crate::error::UpdateAccountError::unhandled)?; output.build() }) @@ -9430,70 +9625,75 @@ pub fn parse_update_api_key_error( Err(match error_code { "BadRequestException" => crate::error::UpdateApiKeyError { meta: generic, - kind: crate::error::UpdateApiKeyErrorKind::BadRequestError({ + kind: crate::error::UpdateApiKeyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateApiKeyError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateApiKeyError { meta: generic, - kind: crate::error::UpdateApiKeyErrorKind::ConflictError({ + kind: crate::error::UpdateApiKeyErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateApiKeyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateApiKeyError { meta: generic, - kind: crate::error::UpdateApiKeyErrorKind::NotFoundError({ + kind: crate::error::UpdateApiKeyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateApiKeyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateApiKeyError { meta: generic, - kind: crate::error::UpdateApiKeyErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateApiKeyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateApiKeyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_api_key_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateApiKeyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_api_key_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateApiKeyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateApiKeyError { meta: generic, - kind: crate::error::UpdateApiKeyErrorKind::UnauthorizedError({ + kind: crate::error::UpdateApiKeyErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateApiKeyError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateApiKeyError::unhandled)?; output.build() }), }, @@ -9510,7 +9710,7 @@ pub fn parse_update_api_key_response( let mut output = crate::output::update_api_key_output::Builder::default(); let _ = response; output = - crate::json_deser::update_api_key_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_api_key(response.body().as_ref(), output) .map_err(crate::error::UpdateApiKeyError::unhandled)?; output.build() }) @@ -9530,59 +9730,61 @@ pub fn parse_update_authorizer_error( Err(match error_code { "BadRequestException" => crate::error::UpdateAuthorizerError { meta: generic, - kind: crate::error::UpdateAuthorizerErrorKind::BadRequestError({ + kind: crate::error::UpdateAuthorizerErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAuthorizerError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateAuthorizerError { meta: generic, - kind: crate::error::UpdateAuthorizerErrorKind::NotFoundError({ + kind: crate::error::UpdateAuthorizerErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAuthorizerError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateAuthorizerError { meta: generic, - kind: crate::error::UpdateAuthorizerErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateAuthorizerErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAuthorizerError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_authorizer_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateAuthorizerError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_authorizer_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateAuthorizerError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateAuthorizerError { meta: generic, - kind: crate::error::UpdateAuthorizerErrorKind::UnauthorizedError({ + kind: crate::error::UpdateAuthorizerErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAuthorizerError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAuthorizerError::unhandled)?; output.build() }), }, @@ -9600,7 +9802,7 @@ pub fn parse_update_authorizer_response( let mut output = crate::output::update_authorizer_output::Builder::default(); let _ = response; output = - crate::json_deser::update_authorizer_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_authorizer(response.body().as_ref(), output) .map_err(crate::error::UpdateAuthorizerError::unhandled)?; output.build() }) @@ -9622,66 +9824,75 @@ pub fn parse_update_base_path_mapping_error( Err(match error_code { "BadRequestException" => crate::error::UpdateBasePathMappingError { meta: generic, - kind: crate::error::UpdateBasePathMappingErrorKind::BadRequestError({ + kind: crate::error::UpdateBasePathMappingErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateBasePathMappingError { meta: generic, - kind: crate::error::UpdateBasePathMappingErrorKind::ConflictError({ + kind: crate::error::UpdateBasePathMappingErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateBasePathMappingError { meta: generic, - kind: crate::error::UpdateBasePathMappingErrorKind::NotFoundError({ + kind: crate::error::UpdateBasePathMappingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::UpdateBasePathMappingError { - meta: generic, - kind: crate::error::UpdateBasePathMappingErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_base_path_mapping_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::UpdateBasePathMappingError { + meta: generic, + kind: crate::error::UpdateBasePathMappingErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_base_path_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateBasePathMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::UpdateBasePathMappingError { meta: generic, - kind: crate::error::UpdateBasePathMappingErrorKind::UnauthorizedError({ + kind: crate::error::UpdateBasePathMappingErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateBasePathMappingError::unhandled)?; output.build() }), }, @@ -9700,7 +9911,7 @@ pub fn parse_update_base_path_mapping_response( #[allow(unused_mut)] let mut output = crate::output::update_base_path_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::update_base_path_mapping_deser_operation( + output = crate::json_deser::deser_operation_update_base_path_mapping( response.body().as_ref(), output, ) @@ -9729,55 +9940,61 @@ pub fn parse_update_client_certificate_error( Err(match error_code { "BadRequestException" => crate::error::UpdateClientCertificateError { meta: generic, - kind: crate::error::UpdateClientCertificateErrorKind::BadRequestError({ + kind: crate::error::UpdateClientCertificateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClientCertificateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateClientCertificateError { meta: generic, - kind: crate::error::UpdateClientCertificateErrorKind::NotFoundError({ + kind: crate::error::UpdateClientCertificateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClientCertificateError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::UpdateClientCertificateError { - meta: generic, - kind: crate::error::UpdateClientCertificateErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateClientCertificateError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_client_certificate_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::UpdateClientCertificateError { + meta: generic, + kind: crate::error::UpdateClientCertificateErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClientCertificateError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_client_certificate_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateClientCertificateError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::UpdateClientCertificateError { meta: generic, - kind: crate::error::UpdateClientCertificateErrorKind::UnauthorizedError({ + kind: crate::error::UpdateClientCertificateErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateClientCertificateError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClientCertificateError::unhandled)?; output.build() }), }, @@ -9796,7 +10013,7 @@ pub fn parse_update_client_certificate_response( #[allow(unused_mut)] let mut output = crate::output::update_client_certificate_output::Builder::default(); let _ = response; - output = crate::json_deser::update_client_certificate_deser_operation( + output = crate::json_deser::deser_operation_update_client_certificate( response.body().as_ref(), output, ) @@ -9819,83 +10036,79 @@ pub fn parse_update_deployment_error( Err(match error_code { "BadRequestException" => crate::error::UpdateDeploymentError { meta: generic, - kind: crate::error::UpdateDeploymentErrorKind::BadRequestError({ + kind: crate::error::UpdateDeploymentErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDeploymentError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateDeploymentError { meta: generic, - kind: crate::error::UpdateDeploymentErrorKind::NotFoundError({ + kind: crate::error::UpdateDeploymentErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDeploymentError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::UpdateDeploymentError { meta: generic, - kind: crate::error::UpdateDeploymentErrorKind::ServiceUnavailableError({ + kind: crate::error::UpdateDeploymentErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_deployment_service_unavailable_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "TooManyRequestsException" => crate::error::UpdateDeploymentError { meta: generic, - kind: crate::error::UpdateDeploymentErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateDeploymentErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateDeploymentError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_deployment_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateDeploymentError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_deployment_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateDeploymentError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateDeploymentError { meta: generic, - kind: crate::error::UpdateDeploymentErrorKind::UnauthorizedError({ + kind: crate::error::UpdateDeploymentErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDeploymentError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDeploymentError::unhandled)?; output.build() }), }, @@ -9913,7 +10126,7 @@ pub fn parse_update_deployment_response( let mut output = crate::output::update_deployment_output::Builder::default(); let _ = response; output = - crate::json_deser::update_deployment_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_deployment(response.body().as_ref(), output) .map_err(crate::error::UpdateDeploymentError::unhandled)?; output.build() }) @@ -9939,86 +10152,93 @@ pub fn parse_update_documentation_part_error( Err(match error_code { "BadRequestException" => crate::error::UpdateDocumentationPartError { meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::BadRequestError({ + kind: crate::error::UpdateDocumentationPartErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateDocumentationPartError { meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::ConflictError({ + kind: crate::error::UpdateDocumentationPartErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; output.build() }), }, - "LimitExceededException" => { - crate::error::UpdateDocumentationPartError { - meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_documentation_part_retry_after_seconds(response.headers()) + "LimitExceededException" => crate::error::UpdateDocumentationPartError { + meta: generic, + kind: crate::error::UpdateDocumentationPartErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_documentation_part_limit_exceeded_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "NotFoundException" => crate::error::UpdateDocumentationPartError { meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::NotFoundError({ + kind: crate::error::UpdateDocumentationPartErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::UpdateDocumentationPartError { - meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_documentation_part_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::UpdateDocumentationPartError { + meta: generic, + kind: crate::error::UpdateDocumentationPartErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_documentation_part_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateDocumentationPartError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::UpdateDocumentationPartError { meta: generic, - kind: crate::error::UpdateDocumentationPartErrorKind::UnauthorizedError({ + kind: crate::error::UpdateDocumentationPartErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationPartError::unhandled)?; output.build() }), }, @@ -10037,7 +10257,7 @@ pub fn parse_update_documentation_part_response( #[allow(unused_mut)] let mut output = crate::output::update_documentation_part_output::Builder::default(); let _ = response; - output = crate::json_deser::update_documentation_part_deser_operation( + output = crate::json_deser::deser_operation_update_documentation_part( response.body().as_ref(), output, ) @@ -10066,50 +10286,59 @@ pub fn parse_update_documentation_version_error( Err(match error_code { "BadRequestException" => crate::error::UpdateDocumentationVersionError { meta: generic, - kind: crate::error::UpdateDocumentationVersionErrorKind::BadRequestError({ + kind: crate::error::UpdateDocumentationVersionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateDocumentationVersionError { meta: generic, - kind: crate::error::UpdateDocumentationVersionErrorKind::ConflictError({ + kind: crate::error::UpdateDocumentationVersionErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateDocumentationVersionError { meta: generic, - kind: crate::error::UpdateDocumentationVersionErrorKind::NotFoundError({ + kind: crate::error::UpdateDocumentationVersionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateDocumentationVersionError { meta: generic, - kind: crate::error::UpdateDocumentationVersionErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateDocumentationVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_documentation_version_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_update_documentation_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateDocumentationVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -10117,13 +10346,15 @@ pub fn parse_update_documentation_version_error( }, "UnauthorizedException" => crate::error::UpdateDocumentationVersionError { meta: generic, - kind: crate::error::UpdateDocumentationVersionErrorKind::UnauthorizedError({ + kind: crate::error::UpdateDocumentationVersionErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentationVersionError::unhandled)?; output.build() }), }, @@ -10142,7 +10373,7 @@ pub fn parse_update_documentation_version_response( #[allow(unused_mut)] let mut output = crate::output::update_documentation_version_output::Builder::default(); let _ = response; - output = crate::json_deser::update_documentation_version_deser_operation( + output = crate::json_deser::deser_operation_update_documentation_version( response.body().as_ref(), output, ) @@ -10165,70 +10396,75 @@ pub fn parse_update_domain_name_error( Err(match error_code { "BadRequestException" => crate::error::UpdateDomainNameError { meta: generic, - kind: crate::error::UpdateDomainNameErrorKind::BadRequestError({ + kind: crate::error::UpdateDomainNameErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainNameError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateDomainNameError { meta: generic, - kind: crate::error::UpdateDomainNameErrorKind::ConflictError({ + kind: crate::error::UpdateDomainNameErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainNameError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateDomainNameError { meta: generic, - kind: crate::error::UpdateDomainNameErrorKind::NotFoundError({ + kind: crate::error::UpdateDomainNameErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainNameError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateDomainNameError { meta: generic, - kind: crate::error::UpdateDomainNameErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateDomainNameErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateDomainNameError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_domain_name_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateDomainNameError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_domain_name_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateDomainNameError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateDomainNameError { meta: generic, - kind: crate::error::UpdateDomainNameErrorKind::UnauthorizedError({ + kind: crate::error::UpdateDomainNameErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateDomainNameError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainNameError::unhandled)?; output.build() }), }, @@ -10246,7 +10482,7 @@ pub fn parse_update_domain_name_response( let mut output = crate::output::update_domain_name_output::Builder::default(); let _ = response; output = - crate::json_deser::update_domain_name_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_domain_name(response.body().as_ref(), output) .map_err(crate::error::UpdateDomainNameError::unhandled)?; output.build() }) @@ -10268,55 +10504,61 @@ pub fn parse_update_gateway_response_error( Err(match error_code { "BadRequestException" => crate::error::UpdateGatewayResponseError { meta: generic, - kind: crate::error::UpdateGatewayResponseErrorKind::BadRequestError({ + kind: crate::error::UpdateGatewayResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateGatewayResponseError { meta: generic, - kind: crate::error::UpdateGatewayResponseErrorKind::NotFoundError({ + kind: crate::error::UpdateGatewayResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::UpdateGatewayResponseError { - meta: generic, - kind: crate::error::UpdateGatewayResponseErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_gateway_response_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::UpdateGatewayResponseError { + meta: generic, + kind: crate::error::UpdateGatewayResponseErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_gateway_response_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateGatewayResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::UpdateGatewayResponseError { meta: generic, - kind: crate::error::UpdateGatewayResponseErrorKind::UnauthorizedError({ + kind: crate::error::UpdateGatewayResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGatewayResponseError::unhandled)?; output.build() }), }, @@ -10335,7 +10577,7 @@ pub fn parse_update_gateway_response_response( #[allow(unused_mut)] let mut output = crate::output::update_gateway_response_output::Builder::default(); let _ = response; - output = crate::json_deser::update_gateway_response_deser_operation( + output = crate::json_deser::deser_operation_update_gateway_response( response.body().as_ref(), output, ) @@ -10358,70 +10600,75 @@ pub fn parse_update_integration_error( Err(match error_code { "BadRequestException" => crate::error::UpdateIntegrationError { meta: generic, - kind: crate::error::UpdateIntegrationErrorKind::BadRequestError({ + kind: crate::error::UpdateIntegrationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateIntegrationError { meta: generic, - kind: crate::error::UpdateIntegrationErrorKind::ConflictError({ + kind: crate::error::UpdateIntegrationErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateIntegrationError { meta: generic, - kind: crate::error::UpdateIntegrationErrorKind::NotFoundError({ + kind: crate::error::UpdateIntegrationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateIntegrationError { meta: generic, - kind: crate::error::UpdateIntegrationErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateIntegrationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateIntegrationError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_integration_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateIntegrationError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_integration_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateIntegrationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateIntegrationError { meta: generic, - kind: crate::error::UpdateIntegrationErrorKind::UnauthorizedError({ + kind: crate::error::UpdateIntegrationErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationError::unhandled)?; output.build() }), }, @@ -10439,7 +10686,7 @@ pub fn parse_update_integration_response( let mut output = crate::output::update_integration_output::Builder::default(); let _ = response; output = - crate::json_deser::update_integration_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_integration(response.body().as_ref(), output) .map_err(crate::error::UpdateIntegrationError::unhandled)?; output.build() }) @@ -10465,50 +10712,59 @@ pub fn parse_update_integration_response_error( Err(match error_code { "BadRequestException" => crate::error::UpdateIntegrationResponseError { meta: generic, - kind: crate::error::UpdateIntegrationResponseErrorKind::BadRequestError({ + kind: crate::error::UpdateIntegrationResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateIntegrationResponseError { meta: generic, - kind: crate::error::UpdateIntegrationResponseErrorKind::ConflictError({ + kind: crate::error::UpdateIntegrationResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateIntegrationResponseError { meta: generic, - kind: crate::error::UpdateIntegrationResponseErrorKind::NotFoundError({ + kind: crate::error::UpdateIntegrationResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateIntegrationResponseError { meta: generic, - kind: crate::error::UpdateIntegrationResponseErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateIntegrationResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_integration_response_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_update_integration_response_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateIntegrationResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -10516,13 +10772,15 @@ pub fn parse_update_integration_response_error( }, "UnauthorizedException" => crate::error::UpdateIntegrationResponseError { meta: generic, - kind: crate::error::UpdateIntegrationResponseErrorKind::UnauthorizedError({ + kind: crate::error::UpdateIntegrationResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateIntegrationResponseError::unhandled)?; output.build() }), }, @@ -10541,7 +10799,7 @@ pub fn parse_update_integration_response_response( #[allow(unused_mut)] let mut output = crate::output::update_integration_response_output::Builder::default(); let _ = response; - output = crate::json_deser::update_integration_response_deser_operation( + output = crate::json_deser::deser_operation_update_integration_response( response.body().as_ref(), output, ) @@ -10563,70 +10821,75 @@ pub fn parse_update_method_error( Err(match error_code { "BadRequestException" => crate::error::UpdateMethodError { meta: generic, - kind: crate::error::UpdateMethodErrorKind::BadRequestError({ + kind: crate::error::UpdateMethodErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateMethodError { meta: generic, - kind: crate::error::UpdateMethodErrorKind::ConflictError({ + kind: crate::error::UpdateMethodErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateMethodError { meta: generic, - kind: crate::error::UpdateMethodErrorKind::NotFoundError({ + kind: crate::error::UpdateMethodErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateMethodError { meta: generic, - kind: crate::error::UpdateMethodErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateMethodErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateMethodError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_method_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateMethodError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_method_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateMethodError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateMethodError { meta: generic, - kind: crate::error::UpdateMethodErrorKind::UnauthorizedError({ + kind: crate::error::UpdateMethodErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodError::unhandled)?; output.build() }), }, @@ -10642,7 +10905,7 @@ pub fn parse_update_method_response( #[allow(unused_mut)] let mut output = crate::output::update_method_output::Builder::default(); let _ = response; - output = crate::json_deser::update_method_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_method(response.body().as_ref(), output) .map_err(crate::error::UpdateMethodError::unhandled)?; output.build() }) @@ -10664,92 +10927,93 @@ pub fn parse_update_method_response_error( Err(match error_code { "BadRequestException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::BadRequestError({ + kind: crate::error::UpdateMethodResponseErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::ConflictError({ + kind: crate::error::UpdateMethodResponseErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::LimitExceededError({ + kind: crate::error::UpdateMethodResponseErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_method_response_limit_exceeded_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "NotFoundException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::NotFoundError({ + kind: crate::error::UpdateMethodResponseErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateMethodResponseErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_method_response_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateMethodResponseError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_method_response_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateMethodResponseError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateMethodResponseError { meta: generic, - kind: crate::error::UpdateMethodResponseErrorKind::UnauthorizedError({ + kind: crate::error::UpdateMethodResponseErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMethodResponseError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMethodResponseError::unhandled)?; output.build() }), }, @@ -10768,7 +11032,7 @@ pub fn parse_update_method_response_response( #[allow(unused_mut)] let mut output = crate::output::update_method_response_output::Builder::default(); let _ = response; - output = crate::json_deser::update_method_response_deser_operation( + output = crate::json_deser::deser_operation_update_method_response( response.body().as_ref(), output, ) @@ -10790,70 +11054,75 @@ pub fn parse_update_model_error( Err(match error_code { "BadRequestException" => crate::error::UpdateModelError { meta: generic, - kind: crate::error::UpdateModelErrorKind::BadRequestError({ + kind: crate::error::UpdateModelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateModelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateModelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateModelError { meta: generic, - kind: crate::error::UpdateModelErrorKind::ConflictError({ + kind: crate::error::UpdateModelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateModelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateModelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateModelError { meta: generic, - kind: crate::error::UpdateModelErrorKind::NotFoundError({ + kind: crate::error::UpdateModelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateModelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateModelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateModelError { meta: generic, - kind: crate::error::UpdateModelErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateModelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateModelError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_model_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateModelError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_model_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateModelError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateModelError { meta: generic, - kind: crate::error::UpdateModelErrorKind::UnauthorizedError({ + kind: crate::error::UpdateModelErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateModelError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateModelError::unhandled)?; output.build() }), }, @@ -10869,7 +11138,7 @@ pub fn parse_update_model_response( #[allow(unused_mut)] let mut output = crate::output::update_model_output::Builder::default(); let _ = response; - output = crate::json_deser::update_model_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_model(response.body().as_ref(), output) .map_err(crate::error::UpdateModelError::unhandled)?; output.build() }) @@ -10895,55 +11164,61 @@ pub fn parse_update_request_validator_error( Err(match error_code { "BadRequestException" => crate::error::UpdateRequestValidatorError { meta: generic, - kind: crate::error::UpdateRequestValidatorErrorKind::BadRequestError({ + kind: crate::error::UpdateRequestValidatorErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateRequestValidatorError { meta: generic, - kind: crate::error::UpdateRequestValidatorErrorKind::NotFoundError({ + kind: crate::error::UpdateRequestValidatorErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::UpdateRequestValidatorError { - meta: generic, - kind: crate::error::UpdateRequestValidatorErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_request_validator_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::UpdateRequestValidatorError { + meta: generic, + kind: crate::error::UpdateRequestValidatorErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_request_validator_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateRequestValidatorError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, "UnauthorizedException" => crate::error::UpdateRequestValidatorError { meta: generic, - kind: crate::error::UpdateRequestValidatorErrorKind::UnauthorizedError({ + kind: crate::error::UpdateRequestValidatorErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRequestValidatorError::unhandled)?; output.build() }), }, @@ -10962,7 +11237,7 @@ pub fn parse_update_request_validator_response( #[allow(unused_mut)] let mut output = crate::output::update_request_validator_output::Builder::default(); let _ = response; - output = crate::json_deser::update_request_validator_deser_operation( + output = crate::json_deser::deser_operation_update_request_validator( response.body().as_ref(), output, ) @@ -10984,70 +11259,75 @@ pub fn parse_update_resource_error( Err(match error_code { "BadRequestException" => crate::error::UpdateResourceError { meta: generic, - kind: crate::error::UpdateResourceErrorKind::BadRequestError({ + kind: crate::error::UpdateResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateResourceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateResourceError { meta: generic, - kind: crate::error::UpdateResourceErrorKind::ConflictError({ + kind: crate::error::UpdateResourceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateResourceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateResourceError { meta: generic, - kind: crate::error::UpdateResourceErrorKind::NotFoundError({ + kind: crate::error::UpdateResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateResourceError { meta: generic, - kind: crate::error::UpdateResourceErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateResourceError { meta: generic, - kind: crate::error::UpdateResourceErrorKind::UnauthorizedError({ + kind: crate::error::UpdateResourceErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateResourceError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateResourceError::unhandled)?; output.build() }), }, @@ -11064,7 +11344,7 @@ pub fn parse_update_resource_response( let mut output = crate::output::update_resource_output::Builder::default(); let _ = response; output = - crate::json_deser::update_resource_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_resource(response.body().as_ref(), output) .map_err(crate::error::UpdateResourceError::unhandled)?; output.build() }) @@ -11083,70 +11363,75 @@ pub fn parse_update_rest_api_error( Err(match error_code { "BadRequestException" => crate::error::UpdateRestApiError { meta: generic, - kind: crate::error::UpdateRestApiErrorKind::BadRequestError({ + kind: crate::error::UpdateRestApiErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRestApiError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateRestApiError { meta: generic, - kind: crate::error::UpdateRestApiErrorKind::ConflictError({ + kind: crate::error::UpdateRestApiErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRestApiError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateRestApiError { meta: generic, - kind: crate::error::UpdateRestApiErrorKind::NotFoundError({ + kind: crate::error::UpdateRestApiErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRestApiError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateRestApiError { meta: generic, - kind: crate::error::UpdateRestApiErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateRestApiErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateRestApiError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_rest_api_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateRestApiError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_rest_api_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateRestApiError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateRestApiError { meta: generic, - kind: crate::error::UpdateRestApiErrorKind::UnauthorizedError({ + kind: crate::error::UpdateRestApiErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateRestApiError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateRestApiError::unhandled)?; output.build() }), }, @@ -11163,7 +11448,7 @@ pub fn parse_update_rest_api_response( let mut output = crate::output::update_rest_api_output::Builder::default(); let _ = response; output = - crate::json_deser::update_rest_api_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_rest_api(response.body().as_ref(), output) .map_err(crate::error::UpdateRestApiError::unhandled)?; output.build() }) @@ -11182,70 +11467,75 @@ pub fn parse_update_stage_error( Err(match error_code { "BadRequestException" => crate::error::UpdateStageError { meta: generic, - kind: crate::error::UpdateStageErrorKind::BadRequestError({ + kind: crate::error::UpdateStageErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateStageError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateStageError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateStageError { meta: generic, - kind: crate::error::UpdateStageErrorKind::ConflictError({ + kind: crate::error::UpdateStageErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateStageError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateStageError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateStageError { meta: generic, - kind: crate::error::UpdateStageErrorKind::NotFoundError({ + kind: crate::error::UpdateStageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateStageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateStageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateStageError { meta: generic, - kind: crate::error::UpdateStageErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateStageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateStageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_stage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateStageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_stage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateStageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateStageError { meta: generic, - kind: crate::error::UpdateStageErrorKind::UnauthorizedError({ + kind: crate::error::UpdateStageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateStageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateStageError::unhandled)?; output.build() }), }, @@ -11261,7 +11551,7 @@ pub fn parse_update_stage_response( #[allow(unused_mut)] let mut output = crate::output::update_stage_output::Builder::default(); let _ = response; - output = crate::json_deser::update_stage_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_stage(response.body().as_ref(), output) .map_err(crate::error::UpdateStageError::unhandled)?; output.build() }) @@ -11280,59 +11570,61 @@ pub fn parse_update_usage_error( Err(match error_code { "BadRequestException" => crate::error::UpdateUsageError { meta: generic, - kind: crate::error::UpdateUsageErrorKind::BadRequestError({ + kind: crate::error::UpdateUsageErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsageError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsageError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateUsageError { meta: generic, - kind: crate::error::UpdateUsageErrorKind::NotFoundError({ + kind: crate::error::UpdateUsageErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsageError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsageError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateUsageError { meta: generic, - kind: crate::error::UpdateUsageErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateUsageErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateUsageError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_usage_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateUsageError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_usage_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateUsageError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateUsageError { meta: generic, - kind: crate::error::UpdateUsageErrorKind::UnauthorizedError({ + kind: crate::error::UpdateUsageErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsageError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsageError::unhandled)?; output.build() }), }, @@ -11348,7 +11640,7 @@ pub fn parse_update_usage_response( #[allow(unused_mut)] let mut output = crate::output::update_usage_output::Builder::default(); let _ = response; - output = crate::json_deser::update_usage_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_usage(response.body().as_ref(), output) .map_err(crate::error::UpdateUsageError::unhandled)?; output.build() }) @@ -11367,70 +11659,75 @@ pub fn parse_update_usage_plan_error( Err(match error_code { "BadRequestException" => crate::error::UpdateUsagePlanError { meta: generic, - kind: crate::error::UpdateUsagePlanErrorKind::BadRequestError({ + kind: crate::error::UpdateUsagePlanErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateUsagePlanError { meta: generic, - kind: crate::error::UpdateUsagePlanErrorKind::ConflictError({ + kind: crate::error::UpdateUsagePlanErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateUsagePlanError { meta: generic, - kind: crate::error::UpdateUsagePlanErrorKind::NotFoundError({ + kind: crate::error::UpdateUsagePlanErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateUsagePlanError { meta: generic, - kind: crate::error::UpdateUsagePlanErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateUsagePlanErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_usage_plan_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateUsagePlanError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_usage_plan_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateUsagePlanError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateUsagePlanError { meta: generic, - kind: crate::error::UpdateUsagePlanErrorKind::UnauthorizedError({ + kind: crate::error::UpdateUsagePlanErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateUsagePlanError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output.build() }), }, @@ -11447,7 +11744,7 @@ pub fn parse_update_usage_plan_response( let mut output = crate::output::update_usage_plan_output::Builder::default(); let _ = response; output = - crate::json_deser::update_usage_plan_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_usage_plan(response.body().as_ref(), output) .map_err(crate::error::UpdateUsagePlanError::unhandled)?; output.build() }) @@ -11466,70 +11763,75 @@ pub fn parse_update_vpc_link_error( Err(match error_code { "BadRequestException" => crate::error::UpdateVpcLinkError { meta: generic, - kind: crate::error::UpdateVpcLinkErrorKind::BadRequestError({ + kind: crate::error::UpdateVpcLinkErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateVpcLinkError { meta: generic, - kind: crate::error::UpdateVpcLinkErrorKind::ConflictError({ + kind: crate::error::UpdateVpcLinkErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateVpcLinkError { meta: generic, - kind: crate::error::UpdateVpcLinkErrorKind::NotFoundError({ + kind: crate::error::UpdateVpcLinkErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateVpcLinkError { meta: generic, - kind: crate::error::UpdateVpcLinkErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateVpcLinkErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_vpc_link_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateVpcLinkError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_vpc_link_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateVpcLinkError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, "UnauthorizedException" => crate::error::UpdateVpcLinkError { meta: generic, - kind: crate::error::UpdateVpcLinkErrorKind::UnauthorizedError({ + kind: crate::error::UpdateVpcLinkErrorKind::UnauthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::unauthorized_error::Builder::default(); + let mut output = crate::error::unauthorized_exception::Builder::default(); let _ = response; - output = - crate::json_deser::unauthorized_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateVpcLinkError::unhandled)?; + output = crate::json_deser::deser_structure_unauthorized_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output.build() }), }, @@ -11546,7 +11848,7 @@ pub fn parse_update_vpc_link_response( let mut output = crate::output::update_vpc_link_output::Builder::default(); let _ = response; output = - crate::json_deser::update_vpc_link_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_vpc_link(response.body().as_ref(), output) .map_err(crate::error::UpdateVpcLinkError::unhandled)?; output.build() }) diff --git a/sdk/apigateway/src/operation_ser.rs b/sdk/apigateway/src/operation_ser.rs index 42ac63551f8e..fa586e376114 100644 --- a/sdk/apigateway/src/operation_ser.rs +++ b/sdk/apigateway/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_create_api_key( input: &crate::input::CreateApiKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_api_key_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_create_api_key( pub fn serialize_operation_create_authorizer( input: &crate::input::CreateAuthorizerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_authorizer_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_authorizer( pub fn serialize_operation_create_base_path_mapping( input: &crate::input::CreateBasePathMappingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_base_path_mapping_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_base_path_mapping( pub fn serialize_operation_create_deployment( input: &crate::input::CreateDeploymentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_deployment_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_deployment( pub fn serialize_operation_create_documentation_part( input: &crate::input::CreateDocumentationPartInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_documentation_part_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_documentation_part( pub fn serialize_operation_create_documentation_version( input: &crate::input::CreateDocumentationVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_documentation_version_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_create_documentation_version( pub fn serialize_operation_create_domain_name( input: &crate::input::CreateDomainNameInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_domain_name_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_create_domain_name( pub fn serialize_operation_create_model( input: &crate::input::CreateModelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_create_model( pub fn serialize_operation_create_request_validator( input: &crate::input::CreateRequestValidatorInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_request_validator_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_create_request_validator( pub fn serialize_operation_create_resource( input: &crate::input::CreateResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_resource_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_create_resource( pub fn serialize_operation_create_rest_api( input: &crate::input::CreateRestApiInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_rest_api_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_create_rest_api( pub fn serialize_operation_create_stage( input: &crate::input::CreateStageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_stage_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_create_stage( pub fn serialize_operation_create_usage_plan( input: &crate::input::CreateUsagePlanInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_usage_plan_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_create_usage_plan( pub fn serialize_operation_create_usage_plan_key( input: &crate::input::CreateUsagePlanKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_usage_plan_key_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_create_usage_plan_key( pub fn serialize_operation_create_vpc_link( input: &crate::input::CreateVpcLinkInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_vpc_link_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_create_vpc_link( pub fn serialize_operation_generate_client_certificate( input: &crate::input::GenerateClientCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_client_certificate_input(&mut object, input); @@ -194,7 +194,7 @@ pub fn ser_payload_import_rest_api_input( pub fn serialize_operation_put_gateway_response( input: &crate::input::PutGatewayResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_gateway_response_input(&mut object, input); @@ -204,7 +204,7 @@ pub fn serialize_operation_put_gateway_response( pub fn serialize_operation_put_integration( input: &crate::input::PutIntegrationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_integration_input(&mut object, input); @@ -214,7 +214,7 @@ pub fn serialize_operation_put_integration( pub fn serialize_operation_put_integration_response( input: &crate::input::PutIntegrationResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_integration_response_input(&mut object, input); @@ -224,7 +224,7 @@ pub fn serialize_operation_put_integration_response( pub fn serialize_operation_put_method( input: &crate::input::PutMethodInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_method_input(&mut object, input); @@ -234,7 +234,7 @@ pub fn serialize_operation_put_method( pub fn serialize_operation_put_method_response( input: &crate::input::PutMethodResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_method_response_input(&mut object, input); @@ -255,7 +255,7 @@ pub fn ser_payload_put_rest_api_input( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -265,7 +265,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_test_invoke_authorizer( input: &crate::input::TestInvokeAuthorizerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_test_invoke_authorizer_input(&mut object, input); @@ -275,7 +275,7 @@ pub fn serialize_operation_test_invoke_authorizer( pub fn serialize_operation_test_invoke_method( input: &crate::input::TestInvokeMethodInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_test_invoke_method_input(&mut object, input); @@ -285,7 +285,7 @@ pub fn serialize_operation_test_invoke_method( pub fn serialize_operation_update_account( input: &crate::input::UpdateAccountInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_account_input(&mut object, input); @@ -295,7 +295,7 @@ pub fn serialize_operation_update_account( pub fn serialize_operation_update_api_key( input: &crate::input::UpdateApiKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_api_key_input(&mut object, input); @@ -305,7 +305,7 @@ pub fn serialize_operation_update_api_key( pub fn serialize_operation_update_authorizer( input: &crate::input::UpdateAuthorizerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_authorizer_input(&mut object, input); @@ -315,7 +315,7 @@ pub fn serialize_operation_update_authorizer( pub fn serialize_operation_update_base_path_mapping( input: &crate::input::UpdateBasePathMappingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_base_path_mapping_input(&mut object, input); @@ -325,7 +325,7 @@ pub fn serialize_operation_update_base_path_mapping( pub fn serialize_operation_update_client_certificate( input: &crate::input::UpdateClientCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_client_certificate_input(&mut object, input); @@ -335,7 +335,7 @@ pub fn serialize_operation_update_client_certificate( pub fn serialize_operation_update_deployment( input: &crate::input::UpdateDeploymentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_deployment_input(&mut object, input); @@ -345,7 +345,7 @@ pub fn serialize_operation_update_deployment( pub fn serialize_operation_update_documentation_part( input: &crate::input::UpdateDocumentationPartInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_documentation_part_input(&mut object, input); @@ -355,7 +355,7 @@ pub fn serialize_operation_update_documentation_part( pub fn serialize_operation_update_documentation_version( input: &crate::input::UpdateDocumentationVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_documentation_version_input(&mut object, input); @@ -365,7 +365,7 @@ pub fn serialize_operation_update_documentation_version( pub fn serialize_operation_update_domain_name( input: &crate::input::UpdateDomainNameInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_domain_name_input(&mut object, input); @@ -375,7 +375,7 @@ pub fn serialize_operation_update_domain_name( pub fn serialize_operation_update_gateway_response( input: &crate::input::UpdateGatewayResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_gateway_response_input(&mut object, input); @@ -385,7 +385,7 @@ pub fn serialize_operation_update_gateway_response( pub fn serialize_operation_update_integration( input: &crate::input::UpdateIntegrationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_integration_input(&mut object, input); @@ -395,7 +395,7 @@ pub fn serialize_operation_update_integration( pub fn serialize_operation_update_integration_response( input: &crate::input::UpdateIntegrationResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_integration_response_input(&mut object, input); @@ -405,7 +405,7 @@ pub fn serialize_operation_update_integration_response( pub fn serialize_operation_update_method( input: &crate::input::UpdateMethodInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_method_input(&mut object, input); @@ -415,7 +415,7 @@ pub fn serialize_operation_update_method( pub fn serialize_operation_update_method_response( input: &crate::input::UpdateMethodResponseInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_method_response_input(&mut object, input); @@ -425,7 +425,7 @@ pub fn serialize_operation_update_method_response( pub fn serialize_operation_update_model( input: &crate::input::UpdateModelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_model_input(&mut object, input); @@ -435,7 +435,7 @@ pub fn serialize_operation_update_model( pub fn serialize_operation_update_request_validator( input: &crate::input::UpdateRequestValidatorInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_request_validator_input(&mut object, input); @@ -445,7 +445,7 @@ pub fn serialize_operation_update_request_validator( pub fn serialize_operation_update_resource( input: &crate::input::UpdateResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_resource_input(&mut object, input); @@ -455,7 +455,7 @@ pub fn serialize_operation_update_resource( pub fn serialize_operation_update_rest_api( input: &crate::input::UpdateRestApiInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_rest_api_input(&mut object, input); @@ -465,7 +465,7 @@ pub fn serialize_operation_update_rest_api( pub fn serialize_operation_update_stage( input: &crate::input::UpdateStageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_stage_input(&mut object, input); @@ -475,7 +475,7 @@ pub fn serialize_operation_update_stage( pub fn serialize_operation_update_usage( input: &crate::input::UpdateUsageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_usage_input(&mut object, input); @@ -485,7 +485,7 @@ pub fn serialize_operation_update_usage( pub fn serialize_operation_update_usage_plan( input: &crate::input::UpdateUsagePlanInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_usage_plan_input(&mut object, input); @@ -495,7 +495,7 @@ pub fn serialize_operation_update_usage_plan( pub fn serialize_operation_update_vpc_link( input: &crate::input::UpdateVpcLinkInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_vpc_link_input(&mut object, input); diff --git a/sdk/apigateway/src/serde_util.rs b/sdk/apigateway/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/apigateway/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/apigateway/src/serializer.rs b/sdk/apigateway/src/serializer.rs deleted file mode 100644 index 308170863568..000000000000 --- a/sdk/apigateway/src/serializer.rs +++ /dev/null @@ -1,8190 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

    Request to create an ApiKey resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateApiKeyInputBody<'a> { - ///

    The name of the ApiKey.

    - pub name: &'a std::option::Option, - ///

    The description of the ApiKey.

    - pub description: &'a std::option::Option, - ///

    Specifies whether the ApiKey can be used by callers.

    - pub enabled: &'a bool, - ///

    Specifies whether (true) or not (false) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.

    - pub generate_distinct_id: &'a bool, - ///

    Specifies a value of the API key.

    - pub value: &'a std::option::Option, - ///

    DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.

    - pub stage_keys: &'a std::option::Option>, - ///

    An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

    - pub customer_id: &'a std::option::Option, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateApiKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateApiKeyInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("enabled", &self.enabled); - formatter.field("generate_distinct_id", &self.generate_distinct_id); - formatter.field("value", &self.value); - formatter.field("stage_keys", &self.stage_keys); - formatter.field("customer_id", &self.customer_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Request to add a new Authorizer to an existing RestApi resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAuthorizerInputBody<'a> { - ///

    [Required] The name of the authorizer.

    - pub name: &'a std::option::Option, - ///

    [Required] The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

    - pub r#type: &'a std::option::Option, - ///

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

    - pub provider_ar_ns: &'a std::option::Option>, - ///

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

    - pub auth_type: &'a std::option::Option, - ///

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

    - pub authorizer_uri: &'a std::option::Option, - ///

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    - pub authorizer_credentials: &'a std::option::Option, - ///

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

    - pub identity_source: &'a std::option::Option, - ///

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

    - pub identity_validation_expression: &'a std::option::Option, - ///

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    - pub authorizer_result_ttl_in_seconds: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAuthorizerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAuthorizerInputBody"); - formatter.field("name", &self.name); - formatter.field("r#type", &self.r#type); - formatter.field("provider_ar_ns", &self.provider_ar_ns); - formatter.field("auth_type", &self.auth_type); - formatter.field("authorizer_uri", &self.authorizer_uri); - formatter.field("authorizer_credentials", &self.authorizer_credentials); - formatter.field("identity_source", &self.identity_source); - formatter.field( - "identity_validation_expression", - &self.identity_validation_expression, - ); - formatter.field( - "authorizer_result_ttl_in_seconds", - &self.authorizer_result_ttl_in_seconds, - ); - formatter.finish() - } -} - -///

    Requests API Gateway to create a new BasePathMapping resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateBasePathMappingInputBody<'a> { - ///

    The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.

    - pub base_path: &'a std::option::Option, - ///

    [Required] The string identifier of the associated RestApi.

    - pub rest_api_id: &'a std::option::Option, - ///

    The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.

    - pub stage: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateBasePathMappingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateBasePathMappingInputBody"); - formatter.field("base_path", &self.base_path); - formatter.field("rest_api_id", &self.rest_api_id); - formatter.field("stage", &self.stage); - formatter.finish() - } -} - -///

    Requests API Gateway to create a Deployment resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDeploymentInputBody<'a> { - ///

    The name of the Stage resource for the Deployment resource to create.

    - pub stage_name: &'a std::option::Option, - ///

    The description of the Stage resource for the Deployment resource to create.

    - pub stage_description: &'a std::option::Option, - ///

    The description for the Deployment resource to create.

    - pub description: &'a std::option::Option, - ///

    Enables a cache cluster for the Stage resource specified in the input.

    - pub cache_cluster_enabled: &'a std::option::Option, - ///

    Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.

    - pub cache_cluster_size: &'a std::option::Option, - ///

    A map that defines the stage variables for the Stage resource that is associated - /// with the new deployment. Variable names can have alphanumeric and underscore characters, and the values - /// must match [A-Za-z0-9-._~:/?#&=,]+.

    - pub variables: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The input configuration for the canary deployment when the deployment is a canary release deployment.

    - pub canary_settings: &'a std::option::Option, - ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - pub tracing_enabled: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDeploymentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDeploymentInputBody"); - formatter.field("stage_name", &self.stage_name); - formatter.field("stage_description", &self.stage_description); - formatter.field("description", &self.description); - formatter.field("cache_cluster_enabled", &self.cache_cluster_enabled); - formatter.field("cache_cluster_size", &self.cache_cluster_size); - formatter.field("variables", &self.variables); - formatter.field("canary_settings", &self.canary_settings); - formatter.field("tracing_enabled", &self.tracing_enabled); - formatter.finish() - } -} - -///

    Creates a new documentation part of a given API.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentationPartInputBody<'a> { - ///

    [Required] The location of the targeted API entity of the to-be-created documentation part.

    - pub location: &'a std::option::Option, - ///

    [Required] The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.

    - pub properties: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDocumentationPartInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentationPartInputBody"); - formatter.field("location", &self.location); - formatter.field("properties", &self.properties); - formatter.finish() - } -} - -///

    Creates a new documentation version of a given API.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentationVersionInputBody<'a> { - ///

    [Required] The version identifier of the new snapshot.

    - pub documentation_version: &'a std::option::Option, - ///

    The stage name to be associated with the new documentation snapshot.

    - pub stage_name: &'a std::option::Option, - ///

    A description about the new documentation snapshot.

    - pub description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDocumentationVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentationVersionInputBody"); - formatter.field("documentation_version", &self.documentation_version); - formatter.field("stage_name", &self.stage_name); - formatter.field("description", &self.description); - formatter.finish() - } -} - -///

    A request to create a new domain name.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDomainNameInputBody<'a> { - ///

    [Required] The name of the DomainName resource.

    - pub domain_name: &'a std::option::Option, - ///

    The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.

    - pub certificate_name: &'a std::option::Option, - ///

    [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.

    - pub certificate_body: &'a std::option::Option, - ///

    [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.

    - pub certificate_private_key: &'a std::option::Option, - ///

    [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.

    - pub certificate_chain: &'a std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - pub certificate_arn: &'a std::option::Option, - ///

    The user-friendly name of the certificate that will be used by regional endpoint for this domain name.

    - pub regional_certificate_name: &'a std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - pub regional_certificate_arn: &'a std::option::Option, - ///

    The endpoint configuration of this DomainName showing the endpoint types of the domain name.

    - pub endpoint_configuration: &'a std::option::Option, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

    - pub security_policy: &'a std::option::Option, - ///

    If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

    - pub mutual_tls_authentication: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDomainNameInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDomainNameInputBody"); - formatter.field("domain_name", &self.domain_name); - formatter.field("certificate_name", &self.certificate_name); - formatter.field("certificate_body", &self.certificate_body); - formatter.field("certificate_private_key", &self.certificate_private_key); - formatter.field("certificate_chain", &self.certificate_chain); - formatter.field("certificate_arn", &self.certificate_arn); - formatter.field("regional_certificate_name", &self.regional_certificate_name); - formatter.field("regional_certificate_arn", &self.regional_certificate_arn); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("tags", &self.tags); - formatter.field("security_policy", &self.security_policy); - formatter.field("mutual_tls_authentication", &self.mutual_tls_authentication); - formatter.finish() - } -} - -///

    Request to add a new Model to an existing RestApi resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelInputBody<'a> { - ///

    [Required] The name of the model. Must be alphanumeric.

    - pub name: &'a std::option::Option, - ///

    The description of the model.

    - pub description: &'a std::option::Option, - ///

    The schema for the model. For application/json models, this should be JSON schema draft 4 model.

    - pub schema: &'a std::option::Option, - ///

    [Required] The content-type for the model.

    - pub content_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateModelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("schema", &self.schema); - formatter.field("content_type", &self.content_type); - formatter.finish() - } -} - -///

    Creates a RequestValidator of a given RestApi.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateRequestValidatorInputBody<'a> { - ///

    The name of the to-be-created RequestValidator.

    - pub name: &'a std::option::Option, - ///

    A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).

    - pub validate_request_body: &'a bool, - ///

    A Boolean flag to indicate whether to validate request parameters, true, or not false.

    - pub validate_request_parameters: &'a bool, -} -impl<'a> std::fmt::Debug for CreateRequestValidatorInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateRequestValidatorInputBody"); - formatter.field("name", &self.name); - formatter.field("validate_request_body", &self.validate_request_body); - formatter.field( - "validate_request_parameters", - &self.validate_request_parameters, - ); - formatter.finish() - } -} - -///

    Requests API Gateway to create a Resource resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateResourceInputBody<'a> { - ///

    The last path segment for this resource.

    - pub path_part: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateResourceInputBody"); - formatter.field("path_part", &self.path_part); - formatter.finish() - } -} - -///

    The POST Request to add a new RestApi resource to your collection.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateRestApiInputBody<'a> { - ///

    [Required] The name of the RestApi.

    - pub name: &'a std::option::Option, - ///

    The description of the RestApi.

    - pub description: &'a std::option::Option, - ///

    A version identifier for the API.

    - pub version: &'a std::option::Option, - ///

    The ID of the RestApi that you want to clone from.

    - pub clone_from: &'a std::option::Option, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - pub binary_media_types: &'a std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - pub minimum_compression_size: &'a std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - pub api_key_source: &'a std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - pub endpoint_configuration: &'a std::option::Option, - /// A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration. - pub policy: &'a std::option::Option, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - pub disable_execute_api_endpoint: &'a bool, -} -impl<'a> std::fmt::Debug for CreateRestApiInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateRestApiInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("version", &self.version); - formatter.field("clone_from", &self.clone_from); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    Requests API Gateway to create a Stage resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateStageInputBody<'a> { - ///

    [Required] The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

    - pub stage_name: &'a std::option::Option, - ///

    [Required] The identifier of the Deployment resource for the Stage resource.

    - pub deployment_id: &'a std::option::Option, - ///

    The description of the Stage resource.

    - pub description: &'a std::option::Option, - ///

    Whether cache clustering is enabled for the stage.

    - pub cache_cluster_enabled: &'a bool, - ///

    The stage's cache cluster size.

    - pub cache_cluster_size: &'a std::option::Option, - ///

    A map that defines the stage variables for the new Stage resource. Variable names - /// can have alphanumeric and underscore characters, and the values must match - /// [A-Za-z0-9-._~:/?#&=,]+.

    - pub variables: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The version of the associated API documentation.

    - pub documentation_version: &'a std::option::Option, - ///

    The canary deployment settings of this stage.

    - pub canary_settings: &'a std::option::Option, - ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - pub tracing_enabled: &'a bool, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateStageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateStageInputBody"); - formatter.field("stage_name", &self.stage_name); - formatter.field("deployment_id", &self.deployment_id); - formatter.field("description", &self.description); - formatter.field("cache_cluster_enabled", &self.cache_cluster_enabled); - formatter.field("cache_cluster_size", &self.cache_cluster_size); - formatter.field("variables", &self.variables); - formatter.field("documentation_version", &self.documentation_version); - formatter.field("canary_settings", &self.canary_settings); - formatter.field("tracing_enabled", &self.tracing_enabled); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUsagePlanInputBody<'a> { - ///

    [Required] The name of the usage plan.

    - pub name: &'a std::option::Option, - ///

    The description of the usage plan.

    - pub description: &'a std::option::Option, - ///

    The associated API stages of the usage plan.

    - pub api_stages: &'a std::option::Option>, - ///

    The throttling limits of the usage plan.

    - pub throttle: &'a std::option::Option, - ///

    The quota of the usage plan.

    - pub quota: &'a std::option::Option, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateUsagePlanInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUsagePlanInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("api_stages", &self.api_stages); - formatter.field("throttle", &self.throttle); - formatter.field("quota", &self.quota); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    The POST request to create a usage plan key for adding an existing API key to a usage plan.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUsagePlanKeyInputBody<'a> { - ///

    [Required] The identifier of a UsagePlanKey resource for a plan customer.

    - pub key_id: &'a std::option::Option, - ///

    [Required] The type of a UsagePlanKey resource for a plan customer.

    - pub key_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateUsagePlanKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUsagePlanKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("key_type", &self.key_type); - formatter.finish() - } -} - -///

    Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVpcLinkInputBody<'a> { - ///

    [Required] The name used to label and identify the VPC link.

    - pub name: &'a std::option::Option, - ///

    The description of the VPC link.

    - pub description: &'a std::option::Option, - ///

    [Required] The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

    - pub target_arns: &'a std::option::Option>, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateVpcLinkInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVpcLinkInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("target_arns", &self.target_arns); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    A request to generate a ClientCertificate resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateClientCertificateInputBody<'a> { - ///

    The description of the ClientCertificate.

    - pub description: &'a std::option::Option, - ///

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for GenerateClientCertificateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateClientCertificateInputBody"); - formatter.field("description", &self.description); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutGatewayResponseInputBody<'a> { - /// The HTTP status code of the GatewayResponse. - pub status_code: &'a std::option::Option, - ///

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    - pub response_parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    - pub response_templates: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for PutGatewayResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutGatewayResponseInputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.finish() - } -} - -///

    Sets up a method's integration.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutIntegrationInputBody<'a> { - ///

    [Required] Specifies a put integration input's type.

    - pub r#type: &'a std::option::Option, - ///

    Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.

    - pub integration_http_method: &'a std::option::Option, - ///

    Specifies Uniform Resource Identifier (URI) of the integration endpoint.

    - ///
      - ///
    • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

      - ///
    • - ///
    • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

      - ///
    - pub uri: &'a std::option::Option, - ///

    The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

    - pub connection_type: &'a std::option::Option, - ///

    The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

    - pub connection_id: &'a std::option::Option, - ///

    Specifies whether credentials are required for a put integration.

    - pub credentials: &'a std::option::Option, - ///

    A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

    - pub request_parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    - pub request_templates: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. - ///

    - ///
      - ///
    • WHEN_NO_MATCH passes the request body for unmapped content types through to the integration back end without transformation.

    • - ///
    • NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.

    • - ///
    • WHEN_NO_TEMPLATES allows pass-through when the integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.

    • - ///
    - pub passthrough_behavior: &'a std::option::Option, - ///

    Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

    - pub cache_namespace: &'a std::option::Option, - ///

    A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

    - pub cache_key_parameters: &'a std::option::Option>, - ///

    Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

    - pub content_handling: &'a std::option::Option, - ///

    Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

    - pub timeout_in_millis: &'a std::option::Option, - pub tls_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutIntegrationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutIntegrationInputBody"); - formatter.field("r#type", &self.r#type); - formatter.field("integration_http_method", &self.integration_http_method); - formatter.field("uri", &self.uri); - formatter.field("connection_type", &self.connection_type); - formatter.field("connection_id", &self.connection_id); - formatter.field("credentials", &self.credentials); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_templates", &self.request_templates); - formatter.field("passthrough_behavior", &self.passthrough_behavior); - formatter.field("cache_namespace", &self.cache_namespace); - formatter.field("cache_key_parameters", &self.cache_key_parameters); - formatter.field("content_handling", &self.content_handling); - formatter.field("timeout_in_millis", &self.timeout_in_millis); - formatter.field("tls_config", &self.tls_config); - formatter.finish() - } -} - -///

    Represents a put integration response request.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutIntegrationResponseInputBody<'a> { - ///

    Specifies the selection pattern of a put integration response.

    - pub selection_pattern: &'a std::option::Option, - ///

    A key-value map specifying response parameters that are passed to the method response from the back end. - /// The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name must be a valid and unique response header name and JSON-expression a valid JSON expression without the $ prefix.

    - pub response_parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies a put integration response's templates.

    - pub response_templates: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

    - pub content_handling: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutIntegrationResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutIntegrationResponseInputBody"); - formatter.field("selection_pattern", &self.selection_pattern); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("content_handling", &self.content_handling); - formatter.finish() - } -} - -///

    Request to add a method to an existing Resource resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutMethodInputBody<'a> { - ///

    [Required] The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

    - pub authorization_type: &'a std::option::Option, - ///

    Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when you created the authorizer.

    - pub authorizer_id: &'a std::option::Option, - ///

    Specifies whether the method required a valid ApiKey.

    - pub api_key_required: &'a bool, - ///

    A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

    - pub operation_name: &'a std::option::Option, - ///

    A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key defines a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or body-mapping templates.

    - pub request_parameters: - &'a std::option::Option>, - ///

    Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.

    - pub request_models: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The identifier of a RequestValidator for validating the method request.

    - pub request_validator_id: &'a std::option::Option, - ///

    A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

    - pub authorization_scopes: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutMethodInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutMethodInputBody"); - formatter.field("authorization_type", &self.authorization_type); - formatter.field("authorizer_id", &self.authorizer_id); - formatter.field("api_key_required", &self.api_key_required); - formatter.field("operation_name", &self.operation_name); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_models", &self.request_models); - formatter.field("request_validator_id", &self.request_validator_id); - formatter.field("authorization_scopes", &self.authorization_scopes); - formatter.finish() - } -} - -///

    Request to add a MethodResponse to an existing Method resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutMethodResponseInputBody<'a> { - ///

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

    - pub response_parameters: - &'a std::option::Option>, - ///

    Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.

    - pub response_models: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for PutMethodResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutMethodResponseInputBody"); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_models", &self.response_models); - formatter.finish() - } -} - -///

    Adds or updates a tag on a given resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    [Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Make a request to simulate the execution of an Authorizer.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestInvokeAuthorizerInputBody<'a> { - ///

    [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

    - pub headers: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    [Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

    - pub multi_value_headers: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    - pub path_with_query_string: &'a std::option::Option, - ///

    [Optional] The simulated request body of an incoming invocation request.

    - pub body: &'a std::option::Option, - ///

    A key-value map of stage variables to simulate an invocation on a deployed Stage.

    - pub stage_variables: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    [Optional] A key-value map of additional context variables.

    - pub additional_context: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TestInvokeAuthorizerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestInvokeAuthorizerInputBody"); - formatter.field("headers", &self.headers); - formatter.field("multi_value_headers", &self.multi_value_headers); - formatter.field("path_with_query_string", &self.path_with_query_string); - formatter.field("body", &self.body); - formatter.field("stage_variables", &self.stage_variables); - formatter.field("additional_context", &self.additional_context); - formatter.finish() - } -} - -///

    Make a request to simulate the execution of a Method.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestInvokeMethodInputBody<'a> { - ///

    The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    - pub path_with_query_string: &'a std::option::Option, - ///

    The simulated request body of an incoming invocation request.

    - pub body: &'a std::option::Option, - ///

    A key-value map of headers to simulate an incoming invocation request.

    - pub headers: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The headers as a map from string to list of values to simulate an incoming invocation request.

    - pub multi_value_headers: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

    - pub client_certificate_id: &'a std::option::Option, - ///

    A key-value map of stage variables to simulate an invocation on a deployed Stage.

    - pub stage_variables: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TestInvokeMethodInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestInvokeMethodInputBody"); - formatter.field("path_with_query_string", &self.path_with_query_string); - formatter.field("body", &self.body); - formatter.field("headers", &self.headers); - formatter.field("multi_value_headers", &self.multi_value_headers); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("stage_variables", &self.stage_variables); - formatter.finish() - } -} - -///

    Requests API Gateway to change information about the current Account resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAccountInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateAccountInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAccountInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A request to change information about an ApiKey resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateApiKeyInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateApiKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateApiKeyInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Request to update an existing Authorizer resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAuthorizerInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateAuthorizerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAuthorizerInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A request to change information about the BasePathMapping resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateBasePathMappingInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateBasePathMappingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateBasePathMappingInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A request to change information about an ClientCertificate resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClientCertificateInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateClientCertificateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClientCertificateInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Requests API Gateway to change information about a Deployment resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDeploymentInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateDeploymentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDeploymentInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Updates an existing documentation part of a given API.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentationPartInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateDocumentationPartInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentationPartInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Updates an existing documentation version of an API.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentationVersionInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateDocumentationVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentationVersionInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A request to change information about the DomainName resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDomainNameInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateDomainNameInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDomainNameInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Updates a GatewayResponse of a specified response type on the given RestApi.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGatewayResponseInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateGatewayResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGatewayResponseInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Represents an update integration request.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateIntegrationInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateIntegrationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateIntegrationInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Represents an update integration response request.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateIntegrationResponseInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateIntegrationResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateIntegrationResponseInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Request to update an existing Method resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMethodInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateMethodInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMethodInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A request to update an existing MethodResponse resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMethodResponseInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateMethodResponseInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMethodResponseInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Request to update an existing model in an existing RestApi resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateModelInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateModelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateModelInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Updates a RequestValidator of a given RestApi.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateRequestValidatorInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateRequestValidatorInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateRequestValidatorInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Request to change information about a Resource resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateResourceInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateResourceInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Request to update an existing RestApi resource in your collection.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateRestApiInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateRestApiInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateRestApiInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Requests API Gateway to change information about a Stage resource.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateStageInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateStageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateStageInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUsageInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateUsageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUsageInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    The PATCH request to update a usage plan of a given plan Id.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUsagePlanInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateUsagePlanInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUsagePlanInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    Updates an existing VpcLink of a specified identifier.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateVpcLinkInputBody<'a> { - ///

    A list of update operations to be applied to the specified resource and in the order specified in this list.

    - pub patch_operations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateVpcLinkInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateVpcLinkInputBody"); - formatter.field("patch_operations", &self.patch_operations); - formatter.finish() - } -} - -///

    A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

    -///
    -/// Use API Keys -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateApiKeyOutputBody { - ///

    The identifier of the API Key.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The value of the API Key.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, - ///

    The name of the API Key.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

    - #[serde(rename = "customerId")] - #[serde(default)] - pub customer_id: std::option::Option, - ///

    The description of the API Key.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether the API Key can be used by callers.

    - #[serde(rename = "enabled")] - #[serde(default)] - pub enabled: bool, - ///

    The timestamp when the API Key was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the API Key was last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, - ///

    A list of Stage resources that are associated with the ApiKey resource.

    - #[serde(rename = "stageKeys")] - #[serde(default)] - pub stage_keys: std::option::Option>, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for CreateApiKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateApiKeyOutputBody"); - formatter.field("id", &self.id); - formatter.field("value", &self.value); - formatter.field("name", &self.name); - formatter.field("customer_id", &self.customer_id); - formatter.field("description", &self.description); - formatter.field("enabled", &self.enabled); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.field("stage_keys", &self.stage_keys); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAuthorizerOutputBody { - ///

    The identifier for the authorizer resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    [Required] The name of the authorizer.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

    - #[serde(rename = "providerARNs")] - #[serde(default)] - pub provider_ar_ns: std::option::Option>, - ///

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

    - #[serde(rename = "authType")] - #[serde(default)] - pub auth_type: std::option::Option, - ///

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

    - #[serde(rename = "authorizerUri")] - #[serde(default)] - pub authorizer_uri: std::option::Option, - ///

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    - #[serde(rename = "authorizerCredentials")] - #[serde(default)] - pub authorizer_credentials: std::option::Option, - ///

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

    - #[serde(rename = "identitySource")] - #[serde(default)] - pub identity_source: std::option::Option, - ///

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

    - #[serde(rename = "identityValidationExpression")] - #[serde(default)] - pub identity_validation_expression: std::option::Option, - ///

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    - #[serde(rename = "authorizerResultTtlInSeconds")] - #[serde(default)] - pub authorizer_result_ttl_in_seconds: std::option::Option, -} -impl std::fmt::Debug for CreateAuthorizerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAuthorizerOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("r#type", &self.r#type); - formatter.field("provider_ar_ns", &self.provider_ar_ns); - formatter.field("auth_type", &self.auth_type); - formatter.field("authorizer_uri", &self.authorizer_uri); - formatter.field("authorizer_credentials", &self.authorizer_credentials); - formatter.field("identity_source", &self.identity_source); - formatter.field( - "identity_validation_expression", - &self.identity_validation_expression, - ); - formatter.field( - "authorizer_result_ttl_in_seconds", - &self.authorizer_result_ttl_in_seconds, - ); - formatter.finish() - } -} - -///

    Represents the base path that callers of the API must provide as part of the URL after the domain name.

    -///
    A custom domain name plus a BasePathMapping specification identifies a deployed RestApi in a given stage of the owner Account.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateBasePathMappingOutputBody { - ///

    The base path name that callers of the API must provide as part of the URL after the domain name.

    - #[serde(rename = "basePath")] - #[serde(default)] - pub base_path: std::option::Option, - ///

    The string identifier of the associated RestApi.

    - #[serde(rename = "restApiId")] - #[serde(default)] - pub rest_api_id: std::option::Option, - ///

    The name of the associated stage.

    - #[serde(rename = "stage")] - #[serde(default)] - pub stage: std::option::Option, -} -impl std::fmt::Debug for CreateBasePathMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateBasePathMappingOutputBody"); - formatter.field("base_path", &self.base_path); - formatter.field("rest_api_id", &self.rest_api_id); - formatter.field("stage", &self.stage); - formatter.finish() - } -} - -///

    An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

    -///
    To create a deployment, call POST on the Deployments resource of a RestApi. -/// To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDeploymentOutputBody { - ///

    The identifier for the deployment resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The description for the deployment resource.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date and time that the deployment resource was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A summary of the RestApi at the date and time that the deployment resource was created.

    - #[serde(rename = "apiSummary")] - #[serde(default)] - pub api_summary: std::option::Option< - std::collections::HashMap< - std::string::String, - std::collections::HashMap, - >, - >, -} -impl std::fmt::Debug for CreateDeploymentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDeploymentOutputBody"); - formatter.field("id", &self.id); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("api_summary", &self.api_summary); - formatter.finish() - } -} - -///

    A documentation part for a targeted API entity.

    -///
    -///

    A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

    -///

    The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI definition file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentationPartOutputBody { - ///

    The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

    - #[serde(rename = "location")] - #[serde(default)] - pub location: std::option::Option, - ///

    A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

    - #[serde(rename = "properties")] - #[serde(default)] - pub properties: std::option::Option, -} -impl std::fmt::Debug for CreateDocumentationPartOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentationPartOutputBody"); - formatter.field("id", &self.id); - formatter.field("location", &self.location); - formatter.field("properties", &self.properties); - formatter.finish() - } -} - -///

    A snapshot of the documentation of an API.

    -///

    Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentationVersionOutputBody { - ///

    The version identifier of the API documentation snapshot.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The date when the API documentation snapshot is created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The description of the API documentation snapshot.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for CreateDocumentationVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentationVersionOutputBody"); - formatter.field("version", &self.version); - formatter.field("created_date", &self.created_date); - formatter.field("description", &self.description); - formatter.finish() - } -} - -///

    Represents a custom domain name as a user-friendly host name of an API (RestApi).

    -///
    -///

    When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name. -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDomainNameOutputBody { - ///

    The custom domain name as an API host name, for example, my-api.example.com.

    - #[serde(rename = "domainName")] - #[serde(default)] - pub domain_name: std::option::Option, - ///

    The name of the certificate that will be used by edge-optimized endpoint for this domain name.

    - #[serde(rename = "certificateName")] - #[serde(default)] - pub certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "certificateArn")] - #[serde(default)] - pub certificate_arn: std::option::Option, - ///

    The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

    - #[serde(rename = "certificateUploadDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub certificate_upload_date: std::option::Option, - ///

    The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

    - #[serde(rename = "regionalDomainName")] - #[serde(default)] - pub regional_domain_name: std::option::Option, - ///

    The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "regionalHostedZoneId")] - #[serde(default)] - pub regional_hosted_zone_id: std::option::Option, - ///

    The name of the certificate that will be used for validating the regional domain name.

    - #[serde(rename = "regionalCertificateName")] - #[serde(default)] - pub regional_certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "regionalCertificateArn")] - #[serde(default)] - pub regional_certificate_arn: std::option::Option, - ///

    The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

    - #[serde(rename = "distributionDomainName")] - #[serde(default)] - pub distribution_domain_name: std::option::Option, - ///

    The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "distributionHostedZoneId")] - #[serde(default)] - pub distribution_hosted_zone_id: std::option::Option, - ///

    The endpoint configuration of this DomainName showing the endpoint types of the domain name.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    The status of the DomainName migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

    - #[serde(rename = "domainNameStatus")] - #[serde(default)] - pub domain_name_status: std::option::Option, - ///

    An optional text message containing detailed information about status of the DomainName migration.

    - #[serde(rename = "domainNameStatusMessage")] - #[serde(default)] - pub domain_name_status_message: std::option::Option, - ///

    The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

    - #[serde(rename = "securityPolicy")] - #[serde(default)] - pub security_policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

    - #[serde(rename = "mutualTlsAuthentication")] - #[serde(default)] - pub mutual_tls_authentication: std::option::Option, -} -impl std::fmt::Debug for CreateDomainNameOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDomainNameOutputBody"); - formatter.field("domain_name", &self.domain_name); - formatter.field("certificate_name", &self.certificate_name); - formatter.field("certificate_arn", &self.certificate_arn); - formatter.field("certificate_upload_date", &self.certificate_upload_date); - formatter.field("regional_domain_name", &self.regional_domain_name); - formatter.field("regional_hosted_zone_id", &self.regional_hosted_zone_id); - formatter.field("regional_certificate_name", &self.regional_certificate_name); - formatter.field("regional_certificate_arn", &self.regional_certificate_arn); - formatter.field("distribution_domain_name", &self.distribution_domain_name); - formatter.field( - "distribution_hosted_zone_id", - &self.distribution_hosted_zone_id, - ); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("domain_name_status", &self.domain_name_status); - formatter.field( - "domain_name_status_message", - &self.domain_name_status_message, - ); - formatter.field("security_policy", &self.security_policy); - formatter.field("tags", &self.tags); - formatter.field("mutual_tls_authentication", &self.mutual_tls_authentication); - formatter.finish() - } -} - -///

    Represents the data structure of a method's request or response payload.

    -///
    -///

    A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.

    -///

    A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelOutputBody { - ///

    The identifier for the model resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of the model. Must be an alphanumeric string.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the model.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

    - #[serde(rename = "schema")] - #[serde(default)] - pub schema: std::option::Option, - ///

    The content-type for the model.

    - #[serde(rename = "contentType")] - #[serde(default)] - pub content_type: std::option::Option, -} -impl std::fmt::Debug for CreateModelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("schema", &self.schema); - formatter.field("content_type", &self.content_type); - formatter.finish() - } -} - -///

    A set of validation rules for incoming Method requests.

    -///
    -///

    In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateRequestValidatorOutputBody { - ///

    The identifier of this RequestValidator.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of this RequestValidator

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

    - #[serde(rename = "validateRequestBody")] - #[serde(default)] - pub validate_request_body: bool, - ///

    A Boolean flag to indicate whether to validate request parameters (true) or not (false).

    - #[serde(rename = "validateRequestParameters")] - #[serde(default)] - pub validate_request_parameters: bool, -} -impl std::fmt::Debug for CreateRequestValidatorOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateRequestValidatorOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("validate_request_body", &self.validate_request_body); - formatter.field( - "validate_request_parameters", - &self.validate_request_parameters, - ); - formatter.finish() - } -} - -///

    Represents an API resource.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateResourceOutputBody { - ///

    The resource's identifier.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The parent resource's identifier.

    - #[serde(rename = "parentId")] - #[serde(default)] - pub parent_id: std::option::Option, - ///

    The last path segment for this resource.

    - #[serde(rename = "pathPart")] - #[serde(default)] - pub path_part: std::option::Option, - ///

    The full path for this resource.

    - #[serde(rename = "path")] - #[serde(default)] - pub path: std::option::Option, - ///

    Gets an API resource's method of a given HTTP verb.

    - ///
    - ///

    The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

    - ///

    Example: Get the GET method of an API resource

    - ///
    Request
    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20170223T031827Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -    /// "name": "method",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -    /// "name": "GET",
    -    /// "title": "GET"
    -    /// },
    -    /// "integration:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "method:integration": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "method:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "methodresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "apiKeyRequired": false,
    -    /// "authorizationType": "NONE",
    -    /// "httpMethod": "GET",
    -    /// "_embedded": {
    -    /// "method:integration": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "3kzxbg5sa2",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestParameters": {
    -    /// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -    /// },
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// },
    -    /// "method:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

    - ///
    - ///
    - ///
    - #[serde(rename = "resourceMethods")] - #[serde(default)] - pub resource_methods: - std::option::Option>, -} -impl std::fmt::Debug for CreateResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateResourceOutputBody"); - formatter.field("id", &self.id); - formatter.field("parent_id", &self.parent_id); - formatter.field("path_part", &self.path_part); - formatter.field("path", &self.path); - formatter.field("resource_methods", &self.resource_methods); - formatter.finish() - } -} - -///

    Represents a REST API.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateRestApiOutputBody { - ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] - pub binary_media_types: std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] - pub minimum_compression_size: std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] - pub api_key_source: std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] - pub disable_execute_api_endpoint: bool, -} -impl std::fmt::Debug for CreateRestApiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateRestApiOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("warnings", &self.warnings); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    Represents a unique identifier for a version of a deployed RestApi that is callable by users.

    -///
    -/// Deploy an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateStageOutputBody { - ///

    The identifier of the Deployment that the stage points to.

    - #[serde(rename = "deploymentId")] - #[serde(default)] - pub deployment_id: std::option::Option, - ///

    The identifier of a client certificate for an API stage.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

    - #[serde(rename = "stageName")] - #[serde(default)] - pub stage_name: std::option::Option, - ///

    The stage's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether a cache cluster is enabled for the stage.

    - #[serde(rename = "cacheClusterEnabled")] - #[serde(default)] - pub cache_cluster_enabled: bool, - ///

    The size of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterSize")] - #[serde(default)] - pub cache_cluster_size: std::option::Option, - ///

    The status of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterStatus")] - #[serde(default)] - pub cache_cluster_status: std::option::Option, - ///

    A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

    - #[serde(rename = "methodSettings")] - #[serde(default)] - pub method_settings: std::option::Option< - std::collections::HashMap, - >, - ///

    A map that defines the stage variables for a Stage resource. Variable names can - /// have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    - #[serde(rename = "variables")] - #[serde(default)] - pub variables: - std::option::Option>, - ///

    The version of the associated API documentation.

    - #[serde(rename = "documentationVersion")] - #[serde(default)] - pub documentation_version: std::option::Option, - ///

    Settings for logging access in this stage.

    - #[serde(rename = "accessLogSettings")] - #[serde(default)] - pub access_log_settings: std::option::Option, - ///

    Settings for the canary deployment in this stage.

    - #[serde(rename = "canarySettings")] - #[serde(default)] - pub canary_settings: std::option::Option, - ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - #[serde(rename = "tracingEnabled")] - #[serde(default)] - pub tracing_enabled: bool, - ///

    The ARN of the WebAcl associated with the Stage.

    - #[serde(rename = "webAclArn")] - #[serde(default)] - pub web_acl_arn: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The timestamp when the stage was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the stage last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, -} -impl std::fmt::Debug for CreateStageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateStageOutputBody"); - formatter.field("deployment_id", &self.deployment_id); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("stage_name", &self.stage_name); - formatter.field("description", &self.description); - formatter.field("cache_cluster_enabled", &self.cache_cluster_enabled); - formatter.field("cache_cluster_size", &self.cache_cluster_size); - formatter.field("cache_cluster_status", &self.cache_cluster_status); - formatter.field("method_settings", &self.method_settings); - formatter.field("variables", &self.variables); - formatter.field("documentation_version", &self.documentation_version); - formatter.field("access_log_settings", &self.access_log_settings); - formatter.field("canary_settings", &self.canary_settings); - formatter.field("tracing_enabled", &self.tracing_enabled); - formatter.field("web_acl_arn", &self.web_acl_arn); - formatter.field("tags", &self.tags); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.finish() - } -} - -///

    Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

    -///
    -///

    In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUsagePlanOutputBody { - ///

    The identifier of a UsagePlan resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of a usage plan.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of a usage plan.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The associated API stages of a usage plan.

    - #[serde(rename = "apiStages")] - #[serde(default)] - pub api_stages: std::option::Option>, - ///

    The request throttle limits of a usage plan.

    - #[serde(rename = "throttle")] - #[serde(default)] - pub throttle: std::option::Option, - ///

    The maximum number of permitted requests per a given unit time interval.

    - #[serde(rename = "quota")] - #[serde(default)] - pub quota: std::option::Option, - ///

    The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

    - #[serde(rename = "productCode")] - #[serde(default)] - pub product_code: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for CreateUsagePlanOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUsagePlanOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("api_stages", &self.api_stages); - formatter.field("throttle", &self.throttle); - formatter.field("quota", &self.quota); - formatter.field("product_code", &self.product_code); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a usage plan key to identify a plan customer.

    -///
    -///

    To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.

    -///
    " -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUsagePlanKeyOutputBody { - ///

    The Id of a usage plan key.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The type of a usage plan key. Currently, the valid key type is API_KEY.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    The value of a usage plan key.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, - ///

    The name of a usage plan key.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for CreateUsagePlanKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUsagePlanKeyOutputBody"); - formatter.field("id", &self.id); - formatter.field("r#type", &self.r#type); - formatter.field("value", &self.value); - formatter.field("name", &self.name); - formatter.finish() - } -} - -///

    An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

    -///
    -///

    To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

    -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVpcLinkOutputBody { - ///

    The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name used to label and identify the VPC link.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the VPC link.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

    - #[serde(rename = "targetArns")] - #[serde(default)] - pub target_arns: std::option::Option>, - ///

    The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

    - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A description about the VPC link status.

    - #[serde(rename = "statusMessage")] - #[serde(default)] - pub status_message: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for CreateVpcLinkOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVpcLinkOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("target_arns", &self.target_arns); - formatter.field("status", &self.status); - formatter.field("status_message", &self.status_message); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

    -///
    Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateClientCertificateOutputBody { - ///

    The identifier of the client certificate.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The description of the client certificate.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

    - #[serde(rename = "pemEncodedCertificate")] - #[serde(default)] - pub pem_encoded_certificate: std::option::Option, - ///

    The timestamp when the client certificate was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the client certificate will expire.

    - #[serde(rename = "expirationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub expiration_date: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GenerateClientCertificateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateClientCertificateOutputBody"); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("description", &self.description); - formatter.field("pem_encoded_certificate", &self.pem_encoded_certificate); - formatter.field("created_date", &self.created_date); - formatter.field("expiration_date", &self.expiration_date); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents an AWS account that is associated with API Gateway.

    -///
    -///

    To view the account info, call GET on this resource.

    -///

    Error Codes

    -///

    The following exception may be thrown when the request fails.

    -///
      -///
    • UnauthorizedException
    • -///
    • NotFoundException
    • -///
    • TooManyRequestsException
    • -///
    -///

    For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

    -///

    Example: Get the information about an account.

    -///
    Request
    -///
    GET /account HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160531T184618Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -/// 
    -///
    Response
    -///

    The successful response returns a 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html",
    -/// "name": "account",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/account"
    -/// },
    -/// "account:update": {
    -/// "href": "/account"
    -/// }
    -/// },
    -/// "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -/// "throttleSettings": {
    -/// "rateLimit": 500,
    -/// "burstLimit": 1000
    -/// }
    -/// }
    -/// 
    -///

    In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAccountOutputBody { - ///

    The ARN of an Amazon CloudWatch role for the current Account.

    - #[serde(rename = "cloudwatchRoleArn")] - #[serde(default)] - pub cloudwatch_role_arn: std::option::Option, - ///

    Specifies the API request limits configured for the current Account.

    - #[serde(rename = "throttleSettings")] - #[serde(default)] - pub throttle_settings: std::option::Option, - ///

    A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

    - #[serde(rename = "features")] - #[serde(default)] - pub features: std::option::Option>, - ///

    The version of the API keys used for the account.

    - #[serde(rename = "apiKeyVersion")] - #[serde(default)] - pub api_key_version: std::option::Option, -} -impl std::fmt::Debug for GetAccountOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAccountOutputBody"); - formatter.field("cloudwatch_role_arn", &self.cloudwatch_role_arn); - formatter.field("throttle_settings", &self.throttle_settings); - formatter.field("features", &self.features); - formatter.field("api_key_version", &self.api_key_version); - formatter.finish() - } -} - -///

    A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

    -///
    -/// Use API Keys -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetApiKeyOutputBody { - ///

    The identifier of the API Key.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The value of the API Key.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, - ///

    The name of the API Key.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

    - #[serde(rename = "customerId")] - #[serde(default)] - pub customer_id: std::option::Option, - ///

    The description of the API Key.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether the API Key can be used by callers.

    - #[serde(rename = "enabled")] - #[serde(default)] - pub enabled: bool, - ///

    The timestamp when the API Key was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the API Key was last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, - ///

    A list of Stage resources that are associated with the ApiKey resource.

    - #[serde(rename = "stageKeys")] - #[serde(default)] - pub stage_keys: std::option::Option>, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GetApiKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetApiKeyOutputBody"); - formatter.field("id", &self.id); - formatter.field("value", &self.value); - formatter.field("name", &self.name); - formatter.field("customer_id", &self.customer_id); - formatter.field("description", &self.description); - formatter.field("enabled", &self.enabled); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.field("stage_keys", &self.stage_keys); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a collection of API keys as represented by an ApiKeys resource.

    -///
    -/// Use API Keys -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetApiKeysOutputBody { - ///

    A list of warning messages logged during the import of API keys when the failOnWarnings option is set to true.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetApiKeysOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetApiKeysOutputBody"); - formatter.field("warnings", &self.warnings); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAuthorizerOutputBody { - ///

    The identifier for the authorizer resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    [Required] The name of the authorizer.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

    - #[serde(rename = "providerARNs")] - #[serde(default)] - pub provider_ar_ns: std::option::Option>, - ///

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

    - #[serde(rename = "authType")] - #[serde(default)] - pub auth_type: std::option::Option, - ///

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

    - #[serde(rename = "authorizerUri")] - #[serde(default)] - pub authorizer_uri: std::option::Option, - ///

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    - #[serde(rename = "authorizerCredentials")] - #[serde(default)] - pub authorizer_credentials: std::option::Option, - ///

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

    - #[serde(rename = "identitySource")] - #[serde(default)] - pub identity_source: std::option::Option, - ///

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

    - #[serde(rename = "identityValidationExpression")] - #[serde(default)] - pub identity_validation_expression: std::option::Option, - ///

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    - #[serde(rename = "authorizerResultTtlInSeconds")] - #[serde(default)] - pub authorizer_result_ttl_in_seconds: std::option::Option, -} -impl std::fmt::Debug for GetAuthorizerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAuthorizerOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("r#type", &self.r#type); - formatter.field("provider_ar_ns", &self.provider_ar_ns); - formatter.field("auth_type", &self.auth_type); - formatter.field("authorizer_uri", &self.authorizer_uri); - formatter.field("authorizer_credentials", &self.authorizer_credentials); - formatter.field("identity_source", &self.identity_source); - formatter.field( - "identity_validation_expression", - &self.identity_validation_expression, - ); - formatter.field( - "authorizer_result_ttl_in_seconds", - &self.authorizer_result_ttl_in_seconds, - ); - formatter.finish() - } -} - -///

    Represents a collection of Authorizer resources.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAuthorizersOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetAuthorizersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAuthorizersOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents the base path that callers of the API must provide as part of the URL after the domain name.

    -///
    A custom domain name plus a BasePathMapping specification identifies a deployed RestApi in a given stage of the owner Account.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetBasePathMappingOutputBody { - ///

    The base path name that callers of the API must provide as part of the URL after the domain name.

    - #[serde(rename = "basePath")] - #[serde(default)] - pub base_path: std::option::Option, - ///

    The string identifier of the associated RestApi.

    - #[serde(rename = "restApiId")] - #[serde(default)] - pub rest_api_id: std::option::Option, - ///

    The name of the associated stage.

    - #[serde(rename = "stage")] - #[serde(default)] - pub stage: std::option::Option, -} -impl std::fmt::Debug for GetBasePathMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetBasePathMappingOutputBody"); - formatter.field("base_path", &self.base_path); - formatter.field("rest_api_id", &self.rest_api_id); - formatter.field("stage", &self.stage); - formatter.finish() - } -} - -///

    Represents a collection of BasePathMapping resources.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetBasePathMappingsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetBasePathMappingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetBasePathMappingsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

    -///
    Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetClientCertificateOutputBody { - ///

    The identifier of the client certificate.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The description of the client certificate.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

    - #[serde(rename = "pemEncodedCertificate")] - #[serde(default)] - pub pem_encoded_certificate: std::option::Option, - ///

    The timestamp when the client certificate was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the client certificate will expire.

    - #[serde(rename = "expirationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub expiration_date: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GetClientCertificateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetClientCertificateOutputBody"); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("description", &self.description); - formatter.field("pem_encoded_certificate", &self.pem_encoded_certificate); - formatter.field("created_date", &self.created_date); - formatter.field("expiration_date", &self.expiration_date); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a collection of ClientCertificate resources.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetClientCertificatesOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetClientCertificatesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetClientCertificatesOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

    -///
    To create a deployment, call POST on the Deployments resource of a RestApi. -/// To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeploymentOutputBody { - ///

    The identifier for the deployment resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The description for the deployment resource.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date and time that the deployment resource was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A summary of the RestApi at the date and time that the deployment resource was created.

    - #[serde(rename = "apiSummary")] - #[serde(default)] - pub api_summary: std::option::Option< - std::collections::HashMap< - std::string::String, - std::collections::HashMap, - >, - >, -} -impl std::fmt::Debug for GetDeploymentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeploymentOutputBody"); - formatter.field("id", &self.id); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("api_summary", &self.api_summary); - formatter.finish() - } -} - -///

    Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on how to interact with your collection. The collection offers a paginated view of the contained deployments.

    -///
    To create a new deployment of a RestApi, make a POST request against this resource. To view, update, or delete an existing -/// deployment, make a GET, PATCH, or DELETE request, respectively, on a specified Deployment resource.
    -///
    -/// Deploying an API, -/// AWS CLI, -/// AWS SDKs -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeploymentsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetDeploymentsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeploymentsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    A documentation part for a targeted API entity.

    -///
    -///

    A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

    -///

    The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI definition file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentationPartOutputBody { - ///

    The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

    - #[serde(rename = "location")] - #[serde(default)] - pub location: std::option::Option, - ///

    A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

    - #[serde(rename = "properties")] - #[serde(default)] - pub properties: std::option::Option, -} -impl std::fmt::Debug for GetDocumentationPartOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentationPartOutputBody"); - formatter.field("id", &self.id); - formatter.field("location", &self.location); - formatter.field("properties", &self.properties); - formatter.finish() - } -} - -///

    The collection of documentation parts of an API.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentationPartsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetDocumentationPartsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentationPartsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    A snapshot of the documentation of an API.

    -///

    Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentationVersionOutputBody { - ///

    The version identifier of the API documentation snapshot.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The date when the API documentation snapshot is created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The description of the API documentation snapshot.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for GetDocumentationVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentationVersionOutputBody"); - formatter.field("version", &self.version); - formatter.field("created_date", &self.created_date); - formatter.field("description", &self.description); - formatter.finish() - } -} - -///

    The collection of documentation snapshots of an API.

    -///

    Use the DocumentationVersions to manage documentation snapshots associated with various API stages.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentationVersionsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetDocumentationVersionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentationVersionsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a custom domain name as a user-friendly host name of an API (RestApi).

    -///
    -///

    When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name. -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDomainNameOutputBody { - ///

    The custom domain name as an API host name, for example, my-api.example.com.

    - #[serde(rename = "domainName")] - #[serde(default)] - pub domain_name: std::option::Option, - ///

    The name of the certificate that will be used by edge-optimized endpoint for this domain name.

    - #[serde(rename = "certificateName")] - #[serde(default)] - pub certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "certificateArn")] - #[serde(default)] - pub certificate_arn: std::option::Option, - ///

    The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

    - #[serde(rename = "certificateUploadDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub certificate_upload_date: std::option::Option, - ///

    The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

    - #[serde(rename = "regionalDomainName")] - #[serde(default)] - pub regional_domain_name: std::option::Option, - ///

    The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "regionalHostedZoneId")] - #[serde(default)] - pub regional_hosted_zone_id: std::option::Option, - ///

    The name of the certificate that will be used for validating the regional domain name.

    - #[serde(rename = "regionalCertificateName")] - #[serde(default)] - pub regional_certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "regionalCertificateArn")] - #[serde(default)] - pub regional_certificate_arn: std::option::Option, - ///

    The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

    - #[serde(rename = "distributionDomainName")] - #[serde(default)] - pub distribution_domain_name: std::option::Option, - ///

    The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "distributionHostedZoneId")] - #[serde(default)] - pub distribution_hosted_zone_id: std::option::Option, - ///

    The endpoint configuration of this DomainName showing the endpoint types of the domain name.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    The status of the DomainName migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

    - #[serde(rename = "domainNameStatus")] - #[serde(default)] - pub domain_name_status: std::option::Option, - ///

    An optional text message containing detailed information about status of the DomainName migration.

    - #[serde(rename = "domainNameStatusMessage")] - #[serde(default)] - pub domain_name_status_message: std::option::Option, - ///

    The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

    - #[serde(rename = "securityPolicy")] - #[serde(default)] - pub security_policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

    - #[serde(rename = "mutualTlsAuthentication")] - #[serde(default)] - pub mutual_tls_authentication: std::option::Option, -} -impl std::fmt::Debug for GetDomainNameOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDomainNameOutputBody"); - formatter.field("domain_name", &self.domain_name); - formatter.field("certificate_name", &self.certificate_name); - formatter.field("certificate_arn", &self.certificate_arn); - formatter.field("certificate_upload_date", &self.certificate_upload_date); - formatter.field("regional_domain_name", &self.regional_domain_name); - formatter.field("regional_hosted_zone_id", &self.regional_hosted_zone_id); - formatter.field("regional_certificate_name", &self.regional_certificate_name); - formatter.field("regional_certificate_arn", &self.regional_certificate_arn); - formatter.field("distribution_domain_name", &self.distribution_domain_name); - formatter.field( - "distribution_hosted_zone_id", - &self.distribution_hosted_zone_id, - ); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("domain_name_status", &self.domain_name_status); - formatter.field( - "domain_name_status_message", - &self.domain_name_status_message, - ); - formatter.field("security_policy", &self.security_policy); - formatter.field("tags", &self.tags); - formatter.field("mutual_tls_authentication", &self.mutual_tls_authentication); - formatter.finish() - } -} - -///

    Represents a collection of DomainName resources.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDomainNamesOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetDomainNamesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDomainNamesOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    A gateway response of a given response type and status code, with optional response parameters and mapping templates.

    -///
    -/// For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway -///
    -///

    Example: Get a Gateway Response of a given response type

    -///
    Request
    -///

    This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

    -///
    GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1
    -/// Host: beta-apigateway.us-east-1.amazonaws.com
    -/// Content-Type: application/json
    -/// X-Amz-Date: 20170503T202516Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a
    -/// Cache-Control: no-cache
    -/// Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45
    -/// 
    -///

    The response type is specified as a URL path.

    -///
    Response
    -///

    The successful operation returns the 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html",
    -/// "name": "gatewayresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:delete": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// }
    -/// },
    -/// "defaultResponse": false,
    -/// "responseParameters": {
    -/// "gatewayresponse.header.x-request-path": "method.request.path.petId",
    -/// "gatewayresponse.header.Access-Control-Allow-Origin": "'a.b.c'",
    -/// "gatewayresponse.header.x-request-query": "method.request.querystring.q",
    -/// "gatewayresponse.header.x-request-header": "method.request.header.Accept"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "{\n     \"message\": $context.error.messageString,\n     \"type\":  \"$context.error.responseType\",\n     \"stage\":  \"$context.stage\",\n     \"resourcePath\":  \"$context.resourcePath\",\n     \"stageVariables.a\":  \"$stageVariables.a\",\n     \"statusCode\": \"'404'\"\n}"
    -/// },
    -/// "responseType": "MISSING_AUTHENTICATION_TOKEN",
    -/// "statusCode": "404"
    -/// }
    -///

    -///
    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetGatewayResponseOutputBody { - ///

    The response type of the associated GatewayResponse. Valid values are

    • ACCESS_DENIED
    • API_CONFIGURATION_ERROR
    • AUTHORIZER_FAILURE
    • AUTHORIZER_CONFIGURATION_ERROR
    • BAD_REQUEST_PARAMETERS
    • BAD_REQUEST_BODY
    • DEFAULT_4XX
    • DEFAULT_5XX
    • EXPIRED_TOKEN
    • INVALID_SIGNATURE
    • INTEGRATION_FAILURE
    • INTEGRATION_TIMEOUT
    • INVALID_API_KEY
    • MISSING_AUTHENTICATION_TOKEN
    • QUOTA_EXCEEDED
    • REQUEST_TOO_LARGE
    • RESOURCE_NOT_FOUND
    • THROTTLED
    • UNAUTHORIZED
    • UNSUPPORTED_MEDIA_TYPE

    - #[serde(rename = "responseType")] - #[serde(default)] - pub response_type: std::option::Option, - ///

    The HTTP status code for this GatewayResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

    - #[serde(rename = "defaultResponse")] - #[serde(default)] - pub default_response: bool, -} -impl std::fmt::Debug for GetGatewayResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetGatewayResponseOutputBody"); - formatter.field("response_type", &self.response_type); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("default_response", &self.default_response); - formatter.finish() - } -} - -///

    The collection of the GatewayResponse instances of a RestApi as a responseType-to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.

    -///
    -/// For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway -///
    -///

    Example: Get the collection of gateway responses of an API

    -///
    Request
    -///

    This example request shows how to retrieve the GatewayResponses collection from an API.

    -///
    GET /restapis/o81lxisefl/gatewayresponses HTTP/1.1
    -/// Host: beta-apigateway.us-east-1.amazonaws.com
    -/// Content-Type: application/json
    -/// X-Amz-Date: 20170503T220604Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=59b42fe54a76a5de8adf2c67baa6d39206f8e9ad49a1d77ccc6a5da3103a398a
    -/// Cache-Control: no-cache
    -/// Postman-Token: 5637af27-dc29-fc5c-9dfe-0645d52cb515
    -/// 
    -///

    -///
    Response
    -///

    The successful operation returns the 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html",
    -/// "name": "gatewayresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses"
    -/// },
    -/// "first": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses"
    -/// },
    -/// "gatewayresponse:by-type": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "item": [
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE"
    -/// },
    -/// {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE"
    -/// }
    -/// ]
    -/// },
    -/// "_embedded": {
    -/// "item": [
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "INTEGRATION_FAILURE",
    -/// "statusCode": "504"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "RESOURCE_NOT_FOUND",
    -/// "statusCode": "404"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "REQUEST_TOO_LARGE",
    -/// "statusCode": "413"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "THROTTLED",
    -/// "statusCode": "429"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "UNSUPPORTED_MEDIA_TYPE",
    -/// "statusCode": "415"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "AUTHORIZER_CONFIGURATION_ERROR",
    -/// "statusCode": "500"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "DEFAULT_5XX"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "DEFAULT_4XX"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "BAD_REQUEST_PARAMETERS",
    -/// "statusCode": "400"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "BAD_REQUEST_BODY",
    -/// "statusCode": "400"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "EXPIRED_TOKEN",
    -/// "statusCode": "403"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "ACCESS_DENIED",
    -/// "statusCode": "403"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "INVALID_API_KEY",
    -/// "statusCode": "403"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "UNAUTHORIZED",
    -/// "statusCode": "401"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "API_CONFIGURATION_ERROR",
    -/// "statusCode": "500"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "QUOTA_EXCEEDED",
    -/// "statusCode": "429"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "INTEGRATION_TIMEOUT",
    -/// "statusCode": "504"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "MISSING_AUTHENTICATION_TOKEN",
    -/// "statusCode": "403"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "INVALID_SIGNATURE",
    -/// "statusCode": "403"
    -/// },
    -/// {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE"
    -/// }
    -/// },
    -/// "defaultResponse": true,
    -/// "responseParameters": {},
    -/// "responseTemplates": {
    -/// "application/json": "{\"message\":$context.error.messageString}"
    -/// },
    -/// "responseType": "AUTHORIZER_FAILURE",
    -/// "statusCode": "500"
    -/// }
    -/// ]
    -/// }
    -/// }
    -///

    -///
    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetGatewayResponsesOutputBody { - ///

    Returns the entire collection, because of no pagination support.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetGatewayResponsesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetGatewayResponsesOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

    -///
    In the API Gateway console, the built-in Lambda integration is an AWS integration.
    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetIntegrationOutputBody { - ///

    Specifies an API method integration type. The valid value is one of the following:

    - ///
      - ///
    • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
    • - ///
    • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
    • - ///
    • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
    • - ///
    • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
    • - ///
    • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.
    • - ///
    - ///

    For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    Specifies the integration's HTTP method type.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    Specifies Uniform Resource Identifier (URI) of the integration endpoint.

    - ///
      - ///
    • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

      - ///
    • - ///
    • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

      - ///
    - #[serde(rename = "uri")] - #[serde(default)] - pub uri: std::option::Option, - ///

    The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

    - #[serde(rename = "connectionType")] - #[serde(default)] - pub connection_type: std::option::Option, - ///

    The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

    - #[serde(rename = "connectionId")] - #[serde(default)] - pub connection_id: std::option::Option, - ///

    Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

    - #[serde(rename = "credentials")] - #[serde(default)] - pub credentials: std::option::Option, - ///

    A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    - #[serde(rename = "requestTemplates")] - #[serde(default)] - pub request_templates: - std::option::Option>, - ///
    - ///

    - /// Specifies how the method request body of an unmapped content type will be passed through the integration request - /// to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration - /// or the content type does not match any of the mapped content types, as specified in requestTemplates. - /// The valid value is one of the following: - ///

    - ///
      - ///
    • - /// WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation - /// when the method request content type does not match any content type associated with the mapping templates defined in the integration request. - ///
    • - ///
    • - /// WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation - /// when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request - /// of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. - ///
    • - ///
    • - /// NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method - /// request content type does not match any content type associated with the mapping templates defined in the integration request or - /// no mapping template is defined in the integration request. - ///
    • - ///
    - ///
    - #[serde(rename = "passthroughBehavior")] - #[serde(default)] - pub passthrough_behavior: std::option::Option, - ///

    Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, - ///

    Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

    - #[serde(rename = "timeoutInMillis")] - #[serde(default)] - pub timeout_in_millis: i32, - ///

    Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

    - #[serde(rename = "cacheNamespace")] - #[serde(default)] - pub cache_namespace: std::option::Option, - ///

    A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

    - #[serde(rename = "cacheKeyParameters")] - #[serde(default)] - pub cache_key_parameters: std::option::Option>, - ///

    Specifies the integration's responses.

    - ///
    - ///

    - ///

    Example: Get integration responses of a method

    - ///
    Request
    - ///

    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20160607T191449Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -    /// 
    - ///
    Response
    - ///

    The successful response returns 200 OK status and a payload as follows:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// Creating an API - ///
    - #[serde(rename = "integrationResponses")] - #[serde(default)] - pub integration_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the TLS configuration for an integration.

    - #[serde(rename = "tlsConfig")] - #[serde(default)] - pub tls_config: std::option::Option, -} -impl std::fmt::Debug for GetIntegrationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetIntegrationOutputBody"); - formatter.field("r#type", &self.r#type); - formatter.field("http_method", &self.http_method); - formatter.field("uri", &self.uri); - formatter.field("connection_type", &self.connection_type); - formatter.field("connection_id", &self.connection_id); - formatter.field("credentials", &self.credentials); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_templates", &self.request_templates); - formatter.field("passthrough_behavior", &self.passthrough_behavior); - formatter.field("content_handling", &self.content_handling); - formatter.field("timeout_in_millis", &self.timeout_in_millis); - formatter.field("cache_namespace", &self.cache_namespace); - formatter.field("cache_key_parameters", &self.cache_key_parameters); - formatter.field("integration_responses", &self.integration_responses); - formatter.field("tls_config", &self.tls_config); - formatter.finish() - } -} - -///

    Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.

    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetIntegrationResponseOutputBody { - ///

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

    - #[serde(rename = "selectionPattern")] - #[serde(default)] - pub selection_pattern: std::option::Option, - ///

    A key-value map specifying response parameters that are passed to the method response from the back end. - /// The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, -} -impl std::fmt::Debug for GetIntegrationResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetIntegrationResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("selection_pattern", &self.selection_pattern); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("content_handling", &self.content_handling); - formatter.finish() - } -} - -///

    -/// Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is -/// integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes -/// the client input that is passed to the back end through the integration request. A method response returns the output from -/// the back end to the client through an integration response. A method request is embodied in a Method resource, whereas -/// an integration request is embodied in an Integration resource. On the other hand, a method response is represented -/// by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource. -///

    -///
    -///

    -///

    Example: Retrive the GET method on a specified resource

    -///
    Request
    -///

    The following example request retrieves the information about the GET method on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T210259Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns a 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": [
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -/// "name": "integration",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -/// "name": "integrationresponse",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -/// "name": "method",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// }
    -/// ],
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -/// "name": "GET",
    -/// "title": "GET"
    -/// },
    -/// "integration:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "method:integration": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "method:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "methodresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "apiKeyRequired": true,
    -/// "authorizationType": "NONE",
    -/// "httpMethod": "GET",
    -/// "_embedded": {
    -/// "method:integration": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integration:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integrationresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "cacheKeyParameters": [],
    -/// "cacheNamespace": "3kzxbg5sa2",
    -/// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -/// "httpMethod": "POST",
    -/// "passthroughBehavior": "WHEN_NO_MATCH",
    -/// "requestParameters": {
    -/// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -/// },
    -/// "requestTemplates": {
    -/// "application/json": "{\n}"
    -/// },
    -/// "type": "AWS",
    -/// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -/// "_embedded": {
    -/// "integration:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integrationresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// },
    -/// "integrationresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// }
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": "'application/xml'"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")"
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// },
    -/// "method:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// }
    -///

    In the example above, the response template for the 200 OK response maps the JSON output from the ListStreams action in the back end to an XML output. The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E and the output is decoded using the $util.urlDecode() helper function.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMethodOutputBody { - ///

    The method's HTTP verb.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

    - #[serde(rename = "authorizationType")] - #[serde(default)] - pub authorization_type: std::option::Option, - ///

    The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

    - #[serde(rename = "authorizerId")] - #[serde(default)] - pub authorizer_id: std::option::Option, - ///

    A boolean flag specifying whether a valid ApiKey is required to invoke this method.

    - #[serde(rename = "apiKeyRequired")] - #[serde(default)] - pub api_key_required: std::option::Option, - ///

    The identifier of a RequestValidator for request validation.

    - #[serde(rename = "requestValidatorId")] - #[serde(default)] - pub request_validator_id: std::option::Option, - ///

    A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

    - #[serde(rename = "operationName")] - #[serde(default)] - pub operation_name: std::option::Option, - ///

    A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

    - #[serde(rename = "requestModels")] - #[serde(default)] - pub request_models: - std::option::Option>, - ///

    Gets a method response associated with a given HTTP status code.

    - ///
    - ///

    The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

    - ///

    Example: Get a 200 OK response of a GET method

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T215008Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": false,
    -    /// "method.response.header.operand_2": false,
    -    /// "method.response.header.operand_1": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodResponses")] - #[serde(default)] - pub method_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

    - ///
    - ///

    - ///

    Example:

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T213210Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "0cjtch",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n    \"a\":  \"$input.params('operand1')\",\n    \"b\":  \"$input.params('operand2')\", \n    \"op\": \"$input.params('operator')\"   \n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": "integration.response.body.op",
    -    /// "method.response.header.operand_2": "integration.response.body.b",
    -    /// "method.response.header.operand_1": "integration.response.body.a"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "#set($res = $input.path('$'))\n{\n    \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n  \"a\" : \"$res.a\",\n  \"b\" : \"$res.b\",\n  \"op\" : \"$res.op\",\n  \"c\" : \"$res.c\"\n}"
    -    /// },
    -    /// "selectionPattern": "",
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodIntegration")] - #[serde(default)] - pub method_integration: std::option::Option, - ///

    A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

    - #[serde(rename = "authorizationScopes")] - #[serde(default)] - pub authorization_scopes: std::option::Option>, -} -impl std::fmt::Debug for GetMethodOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMethodOutputBody"); - formatter.field("http_method", &self.http_method); - formatter.field("authorization_type", &self.authorization_type); - formatter.field("authorizer_id", &self.authorizer_id); - formatter.field("api_key_required", &self.api_key_required); - formatter.field("request_validator_id", &self.request_validator_id); - formatter.field("operation_name", &self.operation_name); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_models", &self.request_models); - formatter.field("method_responses", &self.method_responses); - formatter.field("method_integration", &self.method_integration); - formatter.field("authorization_scopes", &self.authorization_scopes); - formatter.finish() - } -} - -///

    Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

    -///
    -///

    -///

    Example: A MethodResponse instance of an API

    -///
    Request
    -///

    The example request retrieves a MethodResponse of the 200 status code.

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T222952Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns 200 OK status and a payload as follows:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMethodResponseOutputBody { - ///

    The method response's status code.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

    - #[serde(rename = "responseModels")] - #[serde(default)] - pub response_models: - std::option::Option>, -} -impl std::fmt::Debug for GetMethodResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMethodResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_models", &self.response_models); - formatter.finish() - } -} - -///

    Represents the data structure of a method's request or response payload.

    -///
    -///

    A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.

    -///

    A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetModelOutputBody { - ///

    The identifier for the model resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of the model. Must be an alphanumeric string.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the model.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

    - #[serde(rename = "schema")] - #[serde(default)] - pub schema: std::option::Option, - ///

    The content-type for the model.

    - #[serde(rename = "contentType")] - #[serde(default)] - pub content_type: std::option::Option, -} -impl std::fmt::Debug for GetModelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetModelOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("schema", &self.schema); - formatter.field("content_type", &self.content_type); - formatter.finish() - } -} - -///

    Represents a collection of Model resources.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetModelsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetModelsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetModelsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a mapping template used to transform a payload.

    -///
    -/// Mapping Templates -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetModelTemplateOutputBody { - ///

    The Apache Velocity Template Language (VTL) template content used for the template resource.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, -} -impl std::fmt::Debug for GetModelTemplateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetModelTemplateOutputBody"); - formatter.field("value", &self.value); - formatter.finish() - } -} - -///

    A set of validation rules for incoming Method requests.

    -///
    -///

    In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRequestValidatorOutputBody { - ///

    The identifier of this RequestValidator.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of this RequestValidator

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

    - #[serde(rename = "validateRequestBody")] - #[serde(default)] - pub validate_request_body: bool, - ///

    A Boolean flag to indicate whether to validate request parameters (true) or not (false).

    - #[serde(rename = "validateRequestParameters")] - #[serde(default)] - pub validate_request_parameters: bool, -} -impl std::fmt::Debug for GetRequestValidatorOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRequestValidatorOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("validate_request_body", &self.validate_request_body); - formatter.field( - "validate_request_parameters", - &self.validate_request_parameters, - ); - formatter.finish() - } -} - -///

    A collection of RequestValidator resources of a given RestApi.

    -///
    -///

    In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRequestValidatorsOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetRequestValidatorsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRequestValidatorsOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents an API resource.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetResourceOutputBody { - ///

    The resource's identifier.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The parent resource's identifier.

    - #[serde(rename = "parentId")] - #[serde(default)] - pub parent_id: std::option::Option, - ///

    The last path segment for this resource.

    - #[serde(rename = "pathPart")] - #[serde(default)] - pub path_part: std::option::Option, - ///

    The full path for this resource.

    - #[serde(rename = "path")] - #[serde(default)] - pub path: std::option::Option, - ///

    Gets an API resource's method of a given HTTP verb.

    - ///
    - ///

    The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

    - ///

    Example: Get the GET method of an API resource

    - ///
    Request
    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20170223T031827Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -    /// "name": "method",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -    /// "name": "GET",
    -    /// "title": "GET"
    -    /// },
    -    /// "integration:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "method:integration": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "method:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "methodresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "apiKeyRequired": false,
    -    /// "authorizationType": "NONE",
    -    /// "httpMethod": "GET",
    -    /// "_embedded": {
    -    /// "method:integration": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "3kzxbg5sa2",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestParameters": {
    -    /// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -    /// },
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// },
    -    /// "method:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

    - ///
    - ///
    - ///
    - #[serde(rename = "resourceMethods")] - #[serde(default)] - pub resource_methods: - std::option::Option>, -} -impl std::fmt::Debug for GetResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetResourceOutputBody"); - formatter.field("id", &self.id); - formatter.field("parent_id", &self.parent_id); - formatter.field("path_part", &self.path_part); - formatter.field("path", &self.path); - formatter.field("resource_methods", &self.resource_methods); - formatter.finish() - } -} - -///

    Represents a collection of Resource resources.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetResourcesOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetResourcesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetResourcesOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a REST API.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRestApiOutputBody { - ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] - pub binary_media_types: std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] - pub minimum_compression_size: std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] - pub api_key_source: std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] - pub disable_execute_api_endpoint: bool, -} -impl std::fmt::Debug for GetRestApiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRestApiOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("warnings", &self.warnings); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    Contains references to your APIs and links that guide you in how to interact with your collection. A collection offers a paginated view of your APIs.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRestApisOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetRestApisOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRestApisOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    A type of SDK that API Gateway can generate.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSdkTypeOutputBody { - ///

    The identifier of an SdkType instance.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The user-friendly name of an SdkType instance.

    - #[serde(rename = "friendlyName")] - #[serde(default)] - pub friendly_name: std::option::Option, - ///

    The description of an SdkType.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    A list of configuration properties of an SdkType.

    - #[serde(rename = "configurationProperties")] - #[serde(default)] - pub configuration_properties: - std::option::Option>, -} -impl std::fmt::Debug for GetSdkTypeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSdkTypeOutputBody"); - formatter.field("id", &self.id); - formatter.field("friendly_name", &self.friendly_name); - formatter.field("description", &self.description); - formatter.field("configuration_properties", &self.configuration_properties); - formatter.finish() - } -} - -///

    The collection of SdkType instances.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSdkTypesOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, -} -impl std::fmt::Debug for GetSdkTypesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSdkTypesOutputBody"); - formatter.field("items", &self.items); - formatter.finish() - } -} - -///

    Represents a unique identifier for a version of a deployed RestApi that is callable by users.

    -///
    -/// Deploy an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetStageOutputBody { - ///

    The identifier of the Deployment that the stage points to.

    - #[serde(rename = "deploymentId")] - #[serde(default)] - pub deployment_id: std::option::Option, - ///

    The identifier of a client certificate for an API stage.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

    - #[serde(rename = "stageName")] - #[serde(default)] - pub stage_name: std::option::Option, - ///

    The stage's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether a cache cluster is enabled for the stage.

    - #[serde(rename = "cacheClusterEnabled")] - #[serde(default)] - pub cache_cluster_enabled: bool, - ///

    The size of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterSize")] - #[serde(default)] - pub cache_cluster_size: std::option::Option, - ///

    The status of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterStatus")] - #[serde(default)] - pub cache_cluster_status: std::option::Option, - ///

    A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

    - #[serde(rename = "methodSettings")] - #[serde(default)] - pub method_settings: std::option::Option< - std::collections::HashMap, - >, - ///

    A map that defines the stage variables for a Stage resource. Variable names can - /// have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    - #[serde(rename = "variables")] - #[serde(default)] - pub variables: - std::option::Option>, - ///

    The version of the associated API documentation.

    - #[serde(rename = "documentationVersion")] - #[serde(default)] - pub documentation_version: std::option::Option, - ///

    Settings for logging access in this stage.

    - #[serde(rename = "accessLogSettings")] - #[serde(default)] - pub access_log_settings: std::option::Option, - ///

    Settings for the canary deployment in this stage.

    - #[serde(rename = "canarySettings")] - #[serde(default)] - pub canary_settings: std::option::Option, - ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - #[serde(rename = "tracingEnabled")] - #[serde(default)] - pub tracing_enabled: bool, - ///

    The ARN of the WebAcl associated with the Stage.

    - #[serde(rename = "webAclArn")] - #[serde(default)] - pub web_acl_arn: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The timestamp when the stage was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the stage last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, -} -impl std::fmt::Debug for GetStageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetStageOutputBody"); - formatter.field("deployment_id", &self.deployment_id); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("stage_name", &self.stage_name); - formatter.field("description", &self.description); - formatter.field("cache_cluster_enabled", &self.cache_cluster_enabled); - formatter.field("cache_cluster_size", &self.cache_cluster_size); - formatter.field("cache_cluster_status", &self.cache_cluster_status); - formatter.field("method_settings", &self.method_settings); - formatter.field("variables", &self.variables); - formatter.field("documentation_version", &self.documentation_version); - formatter.field("access_log_settings", &self.access_log_settings); - formatter.field("canary_settings", &self.canary_settings); - formatter.field("tracing_enabled", &self.tracing_enabled); - formatter.field("web_acl_arn", &self.web_acl_arn); - formatter.field("tags", &self.tags); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.finish() - } -} - -///

    A list of Stage resources that are associated with the ApiKey resource.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetStagesOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub item: std::option::Option>, -} -impl std::fmt::Debug for GetStagesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetStagesOutputBody"); - formatter.field("item", &self.item); - formatter.finish() - } -} - -///

    The collection of tags. Each tag element is associated with a given resource.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetTagsOutputBody { - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GetTagsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetTagsOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents the usage data of a usage plan.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetUsageOutputBody { - ///

    The plan Id associated with this usage data.

    - #[serde(rename = "usagePlanId")] - #[serde(default)] - pub usage_plan_id: std::option::Option, - ///

    The starting date of the usage data.

    - #[serde(rename = "startDate")] - #[serde(default)] - pub start_date: std::option::Option, - ///

    The ending date of the usage data.

    - #[serde(rename = "endDate")] - #[serde(default)] - pub end_date: std::option::Option, - ///

    The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

    - #[serde(rename = "values")] - #[serde(default)] - pub items: std::option::Option< - std::collections::HashMap>>, - >, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetUsageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetUsageOutputBody"); - formatter.field("usage_plan_id", &self.usage_plan_id); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

    -///
    -///

    In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetUsagePlanOutputBody { - ///

    The identifier of a UsagePlan resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of a usage plan.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of a usage plan.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The associated API stages of a usage plan.

    - #[serde(rename = "apiStages")] - #[serde(default)] - pub api_stages: std::option::Option>, - ///

    The request throttle limits of a usage plan.

    - #[serde(rename = "throttle")] - #[serde(default)] - pub throttle: std::option::Option, - ///

    The maximum number of permitted requests per a given unit time interval.

    - #[serde(rename = "quota")] - #[serde(default)] - pub quota: std::option::Option, - ///

    The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

    - #[serde(rename = "productCode")] - #[serde(default)] - pub product_code: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GetUsagePlanOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetUsagePlanOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("api_stages", &self.api_stages); - formatter.field("throttle", &self.throttle); - formatter.field("quota", &self.quota); - formatter.field("product_code", &self.product_code); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a usage plan key to identify a plan customer.

    -///
    -///

    To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.

    -///
    " -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetUsagePlanKeyOutputBody { - ///

    The Id of a usage plan key.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The type of a usage plan key. Currently, the valid key type is API_KEY.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    The value of a usage plan key.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, - ///

    The name of a usage plan key.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for GetUsagePlanKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetUsagePlanKeyOutputBody"); - formatter.field("id", &self.id); - formatter.field("r#type", &self.r#type); - formatter.field("value", &self.value); - formatter.field("name", &self.name); - formatter.finish() - } -} - -///

    Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetUsagePlanKeysOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetUsagePlanKeysOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetUsagePlanKeysOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a collection of usage plans for an AWS account.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetUsagePlansOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetUsagePlansOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetUsagePlansOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

    -///
    -///

    To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

    -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetVpcLinkOutputBody { - ///

    The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name used to label and identify the VPC link.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the VPC link.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

    - #[serde(rename = "targetArns")] - #[serde(default)] - pub target_arns: std::option::Option>, - ///

    The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

    - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A description about the VPC link status.

    - #[serde(rename = "statusMessage")] - #[serde(default)] - pub status_message: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for GetVpcLinkOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetVpcLinkOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("target_arns", &self.target_arns); - formatter.field("status", &self.status); - formatter.field("status_message", &self.status_message); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    The collection of VPC links under the caller's account in a region.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetVpcLinksOutputBody { - ///

    The current page of elements from this collection.

    - #[serde(rename = "item")] - #[serde(default)] - pub items: std::option::Option>, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for GetVpcLinksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetVpcLinksOutputBody"); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    The identifier of an ApiKey used in a UsagePlan.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ImportApiKeysOutputBody { - ///

    A list of all the ApiKey identifiers.

    - #[serde(rename = "ids")] - #[serde(default)] - pub ids: std::option::Option>, - ///

    A list of warning messages.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, -} -impl std::fmt::Debug for ImportApiKeysOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ImportApiKeysOutputBody"); - formatter.field("ids", &self.ids); - formatter.field("warnings", &self.warnings); - formatter.finish() - } -} - -///

    A collection of the imported DocumentationPart identifiers.

    -///
    This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ImportDocumentationPartsOutputBody { - ///

    A list of the returned documentation part identifiers.

    - #[serde(rename = "ids")] - #[serde(default)] - pub ids: std::option::Option>, - ///

    A list of warning messages reported during import of documentation parts.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, -} -impl std::fmt::Debug for ImportDocumentationPartsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ImportDocumentationPartsOutputBody"); - formatter.field("ids", &self.ids); - formatter.field("warnings", &self.warnings); - formatter.finish() - } -} - -///

    Represents a REST API.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ImportRestApiOutputBody { - ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] - pub binary_media_types: std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] - pub minimum_compression_size: std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] - pub api_key_source: std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] - pub disable_execute_api_endpoint: bool, -} -impl std::fmt::Debug for ImportRestApiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ImportRestApiOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("warnings", &self.warnings); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    A gateway response of a given response type and status code, with optional response parameters and mapping templates.

    -///
    -/// For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway -///
    -///

    Example: Get a Gateway Response of a given response type

    -///
    Request
    -///

    This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

    -///
    GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1
    -/// Host: beta-apigateway.us-east-1.amazonaws.com
    -/// Content-Type: application/json
    -/// X-Amz-Date: 20170503T202516Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a
    -/// Cache-Control: no-cache
    -/// Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45
    -/// 
    -///

    The response type is specified as a URL path.

    -///
    Response
    -///

    The successful operation returns the 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html",
    -/// "name": "gatewayresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:delete": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// }
    -/// },
    -/// "defaultResponse": false,
    -/// "responseParameters": {
    -/// "gatewayresponse.header.x-request-path": "method.request.path.petId",
    -/// "gatewayresponse.header.Access-Control-Allow-Origin": "'a.b.c'",
    -/// "gatewayresponse.header.x-request-query": "method.request.querystring.q",
    -/// "gatewayresponse.header.x-request-header": "method.request.header.Accept"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "{\n     \"message\": $context.error.messageString,\n     \"type\":  \"$context.error.responseType\",\n     \"stage\":  \"$context.stage\",\n     \"resourcePath\":  \"$context.resourcePath\",\n     \"stageVariables.a\":  \"$stageVariables.a\",\n     \"statusCode\": \"'404'\"\n}"
    -/// },
    -/// "responseType": "MISSING_AUTHENTICATION_TOKEN",
    -/// "statusCode": "404"
    -/// }
    -///

    -///
    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutGatewayResponseOutputBody { - ///

    The response type of the associated GatewayResponse. Valid values are

    • ACCESS_DENIED
    • API_CONFIGURATION_ERROR
    • AUTHORIZER_FAILURE
    • AUTHORIZER_CONFIGURATION_ERROR
    • BAD_REQUEST_PARAMETERS
    • BAD_REQUEST_BODY
    • DEFAULT_4XX
    • DEFAULT_5XX
    • EXPIRED_TOKEN
    • INVALID_SIGNATURE
    • INTEGRATION_FAILURE
    • INTEGRATION_TIMEOUT
    • INVALID_API_KEY
    • MISSING_AUTHENTICATION_TOKEN
    • QUOTA_EXCEEDED
    • REQUEST_TOO_LARGE
    • RESOURCE_NOT_FOUND
    • THROTTLED
    • UNAUTHORIZED
    • UNSUPPORTED_MEDIA_TYPE

    - #[serde(rename = "responseType")] - #[serde(default)] - pub response_type: std::option::Option, - ///

    The HTTP status code for this GatewayResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

    - #[serde(rename = "defaultResponse")] - #[serde(default)] - pub default_response: bool, -} -impl std::fmt::Debug for PutGatewayResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutGatewayResponseOutputBody"); - formatter.field("response_type", &self.response_type); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("default_response", &self.default_response); - formatter.finish() - } -} - -///

    Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

    -///
    In the API Gateway console, the built-in Lambda integration is an AWS integration.
    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutIntegrationOutputBody { - ///

    Specifies an API method integration type. The valid value is one of the following:

    - ///
      - ///
    • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
    • - ///
    • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
    • - ///
    • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
    • - ///
    • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
    • - ///
    • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.
    • - ///
    - ///

    For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    Specifies the integration's HTTP method type.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    Specifies Uniform Resource Identifier (URI) of the integration endpoint.

    - ///
      - ///
    • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

      - ///
    • - ///
    • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

      - ///
    - #[serde(rename = "uri")] - #[serde(default)] - pub uri: std::option::Option, - ///

    The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

    - #[serde(rename = "connectionType")] - #[serde(default)] - pub connection_type: std::option::Option, - ///

    The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

    - #[serde(rename = "connectionId")] - #[serde(default)] - pub connection_id: std::option::Option, - ///

    Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

    - #[serde(rename = "credentials")] - #[serde(default)] - pub credentials: std::option::Option, - ///

    A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    - #[serde(rename = "requestTemplates")] - #[serde(default)] - pub request_templates: - std::option::Option>, - ///
    - ///

    - /// Specifies how the method request body of an unmapped content type will be passed through the integration request - /// to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration - /// or the content type does not match any of the mapped content types, as specified in requestTemplates. - /// The valid value is one of the following: - ///

    - ///
      - ///
    • - /// WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation - /// when the method request content type does not match any content type associated with the mapping templates defined in the integration request. - ///
    • - ///
    • - /// WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation - /// when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request - /// of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. - ///
    • - ///
    • - /// NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method - /// request content type does not match any content type associated with the mapping templates defined in the integration request or - /// no mapping template is defined in the integration request. - ///
    • - ///
    - ///
    - #[serde(rename = "passthroughBehavior")] - #[serde(default)] - pub passthrough_behavior: std::option::Option, - ///

    Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, - ///

    Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

    - #[serde(rename = "timeoutInMillis")] - #[serde(default)] - pub timeout_in_millis: i32, - ///

    Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

    - #[serde(rename = "cacheNamespace")] - #[serde(default)] - pub cache_namespace: std::option::Option, - ///

    A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

    - #[serde(rename = "cacheKeyParameters")] - #[serde(default)] - pub cache_key_parameters: std::option::Option>, - ///

    Specifies the integration's responses.

    - ///
    - ///

    - ///

    Example: Get integration responses of a method

    - ///
    Request
    - ///

    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20160607T191449Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -    /// 
    - ///
    Response
    - ///

    The successful response returns 200 OK status and a payload as follows:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// Creating an API - ///
    - #[serde(rename = "integrationResponses")] - #[serde(default)] - pub integration_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the TLS configuration for an integration.

    - #[serde(rename = "tlsConfig")] - #[serde(default)] - pub tls_config: std::option::Option, -} -impl std::fmt::Debug for PutIntegrationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutIntegrationOutputBody"); - formatter.field("r#type", &self.r#type); - formatter.field("http_method", &self.http_method); - formatter.field("uri", &self.uri); - formatter.field("connection_type", &self.connection_type); - formatter.field("connection_id", &self.connection_id); - formatter.field("credentials", &self.credentials); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_templates", &self.request_templates); - formatter.field("passthrough_behavior", &self.passthrough_behavior); - formatter.field("content_handling", &self.content_handling); - formatter.field("timeout_in_millis", &self.timeout_in_millis); - formatter.field("cache_namespace", &self.cache_namespace); - formatter.field("cache_key_parameters", &self.cache_key_parameters); - formatter.field("integration_responses", &self.integration_responses); - formatter.field("tls_config", &self.tls_config); - formatter.finish() - } -} - -///

    Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.

    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutIntegrationResponseOutputBody { - ///

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

    - #[serde(rename = "selectionPattern")] - #[serde(default)] - pub selection_pattern: std::option::Option, - ///

    A key-value map specifying response parameters that are passed to the method response from the back end. - /// The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, -} -impl std::fmt::Debug for PutIntegrationResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutIntegrationResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("selection_pattern", &self.selection_pattern); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("content_handling", &self.content_handling); - formatter.finish() - } -} - -///

    -/// Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is -/// integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes -/// the client input that is passed to the back end through the integration request. A method response returns the output from -/// the back end to the client through an integration response. A method request is embodied in a Method resource, whereas -/// an integration request is embodied in an Integration resource. On the other hand, a method response is represented -/// by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource. -///

    -///
    -///

    -///

    Example: Retrive the GET method on a specified resource

    -///
    Request
    -///

    The following example request retrieves the information about the GET method on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T210259Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns a 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": [
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -/// "name": "integration",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -/// "name": "integrationresponse",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -/// "name": "method",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// }
    -/// ],
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -/// "name": "GET",
    -/// "title": "GET"
    -/// },
    -/// "integration:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "method:integration": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "method:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "methodresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "apiKeyRequired": true,
    -/// "authorizationType": "NONE",
    -/// "httpMethod": "GET",
    -/// "_embedded": {
    -/// "method:integration": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integration:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integrationresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "cacheKeyParameters": [],
    -/// "cacheNamespace": "3kzxbg5sa2",
    -/// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -/// "httpMethod": "POST",
    -/// "passthroughBehavior": "WHEN_NO_MATCH",
    -/// "requestParameters": {
    -/// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -/// },
    -/// "requestTemplates": {
    -/// "application/json": "{\n}"
    -/// },
    -/// "type": "AWS",
    -/// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -/// "_embedded": {
    -/// "integration:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integrationresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// },
    -/// "integrationresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// }
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": "'application/xml'"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")"
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// },
    -/// "method:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// }
    -///

    In the example above, the response template for the 200 OK response maps the JSON output from the ListStreams action in the back end to an XML output. The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E and the output is decoded using the $util.urlDecode() helper function.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutMethodOutputBody { - ///

    The method's HTTP verb.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

    - #[serde(rename = "authorizationType")] - #[serde(default)] - pub authorization_type: std::option::Option, - ///

    The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

    - #[serde(rename = "authorizerId")] - #[serde(default)] - pub authorizer_id: std::option::Option, - ///

    A boolean flag specifying whether a valid ApiKey is required to invoke this method.

    - #[serde(rename = "apiKeyRequired")] - #[serde(default)] - pub api_key_required: std::option::Option, - ///

    The identifier of a RequestValidator for request validation.

    - #[serde(rename = "requestValidatorId")] - #[serde(default)] - pub request_validator_id: std::option::Option, - ///

    A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

    - #[serde(rename = "operationName")] - #[serde(default)] - pub operation_name: std::option::Option, - ///

    A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

    - #[serde(rename = "requestModels")] - #[serde(default)] - pub request_models: - std::option::Option>, - ///

    Gets a method response associated with a given HTTP status code.

    - ///
    - ///

    The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

    - ///

    Example: Get a 200 OK response of a GET method

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T215008Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": false,
    -    /// "method.response.header.operand_2": false,
    -    /// "method.response.header.operand_1": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodResponses")] - #[serde(default)] - pub method_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

    - ///
    - ///

    - ///

    Example:

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T213210Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "0cjtch",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n    \"a\":  \"$input.params('operand1')\",\n    \"b\":  \"$input.params('operand2')\", \n    \"op\": \"$input.params('operator')\"   \n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": "integration.response.body.op",
    -    /// "method.response.header.operand_2": "integration.response.body.b",
    -    /// "method.response.header.operand_1": "integration.response.body.a"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "#set($res = $input.path('$'))\n{\n    \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n  \"a\" : \"$res.a\",\n  \"b\" : \"$res.b\",\n  \"op\" : \"$res.op\",\n  \"c\" : \"$res.c\"\n}"
    -    /// },
    -    /// "selectionPattern": "",
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodIntegration")] - #[serde(default)] - pub method_integration: std::option::Option, - ///

    A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

    - #[serde(rename = "authorizationScopes")] - #[serde(default)] - pub authorization_scopes: std::option::Option>, -} -impl std::fmt::Debug for PutMethodOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutMethodOutputBody"); - formatter.field("http_method", &self.http_method); - formatter.field("authorization_type", &self.authorization_type); - formatter.field("authorizer_id", &self.authorizer_id); - formatter.field("api_key_required", &self.api_key_required); - formatter.field("request_validator_id", &self.request_validator_id); - formatter.field("operation_name", &self.operation_name); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_models", &self.request_models); - formatter.field("method_responses", &self.method_responses); - formatter.field("method_integration", &self.method_integration); - formatter.field("authorization_scopes", &self.authorization_scopes); - formatter.finish() - } -} - -///

    Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

    -///
    -///

    -///

    Example: A MethodResponse instance of an API

    -///
    Request
    -///

    The example request retrieves a MethodResponse of the 200 status code.

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T222952Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns 200 OK status and a payload as follows:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutMethodResponseOutputBody { - ///

    The method response's status code.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

    - #[serde(rename = "responseModels")] - #[serde(default)] - pub response_models: - std::option::Option>, -} -impl std::fmt::Debug for PutMethodResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutMethodResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_models", &self.response_models); - formatter.finish() - } -} - -///

    Represents a REST API.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRestApiOutputBody { - ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] - pub binary_media_types: std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] - pub minimum_compression_size: std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] - pub api_key_source: std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] - pub disable_execute_api_endpoint: bool, -} -impl std::fmt::Debug for PutRestApiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRestApiOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("warnings", &self.warnings); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    Represents the response of the test invoke request for a custom Authorizer

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TestInvokeAuthorizerOutputBody { - ///

    The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

    - #[serde(rename = "clientStatus")] - #[serde(default)] - pub client_status: i32, - ///

    The API Gateway execution log for the test authorizer request.

    - #[serde(rename = "log")] - #[serde(default)] - pub log: std::option::Option, - ///

    The execution latency of the test authorizer request.

    - #[serde(rename = "latency")] - #[serde(default)] - pub latency: i64, - ///

    The principal identity returned by the Authorizer

    - #[serde(rename = "principalId")] - #[serde(default)] - pub principal_id: std::option::Option, - ///

    The JSON policy document returned by the Authorizer

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - #[serde(rename = "authorization")] - #[serde(default)] - pub authorization: std::option::Option< - std::collections::HashMap>, - >, - ///

    The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

    - #[serde(rename = "claims")] - #[serde(default)] - pub claims: - std::option::Option>, -} -impl std::fmt::Debug for TestInvokeAuthorizerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestInvokeAuthorizerOutputBody"); - formatter.field("client_status", &self.client_status); - formatter.field("log", &self.log); - formatter.field("latency", &self.latency); - formatter.field("principal_id", &self.principal_id); - formatter.field("policy", &self.policy); - formatter.field("authorization", &self.authorization); - formatter.field("claims", &self.claims); - formatter.finish() - } -} - -///

    Represents the response of the test invoke request in the HTTP method.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TestInvokeMethodOutputBody { - ///

    The HTTP status code.

    - #[serde(rename = "status")] - #[serde(default)] - pub status: i32, - ///

    The body of the HTTP response.

    - #[serde(rename = "body")] - #[serde(default)] - pub body: std::option::Option, - ///

    The headers of the HTTP response.

    - #[serde(rename = "headers")] - #[serde(default)] - pub headers: - std::option::Option>, - ///

    The headers of the HTTP response as a map from string to list of values.

    - #[serde(rename = "multiValueHeaders")] - #[serde(default)] - pub multi_value_headers: std::option::Option< - std::collections::HashMap>, - >, - ///

    The API Gateway execution log for the test invoke request.

    - #[serde(rename = "log")] - #[serde(default)] - pub log: std::option::Option, - ///

    The execution latency of the test invoke request.

    - #[serde(rename = "latency")] - #[serde(default)] - pub latency: i64, -} -impl std::fmt::Debug for TestInvokeMethodOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestInvokeMethodOutputBody"); - formatter.field("status", &self.status); - formatter.field("body", &self.body); - formatter.field("headers", &self.headers); - formatter.field("multi_value_headers", &self.multi_value_headers); - formatter.field("log", &self.log); - formatter.field("latency", &self.latency); - formatter.finish() - } -} - -///

    Represents an AWS account that is associated with API Gateway.

    -///
    -///

    To view the account info, call GET on this resource.

    -///

    Error Codes

    -///

    The following exception may be thrown when the request fails.

    -///
      -///
    • UnauthorizedException
    • -///
    • NotFoundException
    • -///
    • TooManyRequestsException
    • -///
    -///

    For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

    -///

    Example: Get the information about an account.

    -///
    Request
    -///
    GET /account HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160531T184618Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -/// 
    -///
    Response
    -///

    The successful response returns a 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html",
    -/// "name": "account",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/account"
    -/// },
    -/// "account:update": {
    -/// "href": "/account"
    -/// }
    -/// },
    -/// "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -/// "throttleSettings": {
    -/// "rateLimit": 500,
    -/// "burstLimit": 1000
    -/// }
    -/// }
    -/// 
    -///

    In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAccountOutputBody { - ///

    The ARN of an Amazon CloudWatch role for the current Account.

    - #[serde(rename = "cloudwatchRoleArn")] - #[serde(default)] - pub cloudwatch_role_arn: std::option::Option, - ///

    Specifies the API request limits configured for the current Account.

    - #[serde(rename = "throttleSettings")] - #[serde(default)] - pub throttle_settings: std::option::Option, - ///

    A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

    - #[serde(rename = "features")] - #[serde(default)] - pub features: std::option::Option>, - ///

    The version of the API keys used for the account.

    - #[serde(rename = "apiKeyVersion")] - #[serde(default)] - pub api_key_version: std::option::Option, -} -impl std::fmt::Debug for UpdateAccountOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAccountOutputBody"); - formatter.field("cloudwatch_role_arn", &self.cloudwatch_role_arn); - formatter.field("throttle_settings", &self.throttle_settings); - formatter.field("features", &self.features); - formatter.field("api_key_version", &self.api_key_version); - formatter.finish() - } -} - -///

    A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

    -///
    -/// Use API Keys -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateApiKeyOutputBody { - ///

    The identifier of the API Key.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The value of the API Key.

    - #[serde(rename = "value")] - #[serde(default)] - pub value: std::option::Option, - ///

    The name of the API Key.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

    - #[serde(rename = "customerId")] - #[serde(default)] - pub customer_id: std::option::Option, - ///

    The description of the API Key.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether the API Key can be used by callers.

    - #[serde(rename = "enabled")] - #[serde(default)] - pub enabled: bool, - ///

    The timestamp when the API Key was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the API Key was last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, - ///

    A list of Stage resources that are associated with the ApiKey resource.

    - #[serde(rename = "stageKeys")] - #[serde(default)] - pub stage_keys: std::option::Option>, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for UpdateApiKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateApiKeyOutputBody"); - formatter.field("id", &self.id); - formatter.field("value", &self.value); - formatter.field("name", &self.name); - formatter.field("customer_id", &self.customer_id); - formatter.field("description", &self.description); - formatter.field("enabled", &self.enabled); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.field("stage_keys", &self.stage_keys); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAuthorizerOutputBody { - ///

    The identifier for the authorizer resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    [Required] The name of the authorizer.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

    - #[serde(rename = "providerARNs")] - #[serde(default)] - pub provider_ar_ns: std::option::Option>, - ///

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

    - #[serde(rename = "authType")] - #[serde(default)] - pub auth_type: std::option::Option, - ///

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

    - #[serde(rename = "authorizerUri")] - #[serde(default)] - pub authorizer_uri: std::option::Option, - ///

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    - #[serde(rename = "authorizerCredentials")] - #[serde(default)] - pub authorizer_credentials: std::option::Option, - ///

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

    - #[serde(rename = "identitySource")] - #[serde(default)] - pub identity_source: std::option::Option, - ///

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

    - #[serde(rename = "identityValidationExpression")] - #[serde(default)] - pub identity_validation_expression: std::option::Option, - ///

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    - #[serde(rename = "authorizerResultTtlInSeconds")] - #[serde(default)] - pub authorizer_result_ttl_in_seconds: std::option::Option, -} -impl std::fmt::Debug for UpdateAuthorizerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAuthorizerOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("r#type", &self.r#type); - formatter.field("provider_ar_ns", &self.provider_ar_ns); - formatter.field("auth_type", &self.auth_type); - formatter.field("authorizer_uri", &self.authorizer_uri); - formatter.field("authorizer_credentials", &self.authorizer_credentials); - formatter.field("identity_source", &self.identity_source); - formatter.field( - "identity_validation_expression", - &self.identity_validation_expression, - ); - formatter.field( - "authorizer_result_ttl_in_seconds", - &self.authorizer_result_ttl_in_seconds, - ); - formatter.finish() - } -} - -///

    Represents the base path that callers of the API must provide as part of the URL after the domain name.

    -///
    A custom domain name plus a BasePathMapping specification identifies a deployed RestApi in a given stage of the owner Account.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateBasePathMappingOutputBody { - ///

    The base path name that callers of the API must provide as part of the URL after the domain name.

    - #[serde(rename = "basePath")] - #[serde(default)] - pub base_path: std::option::Option, - ///

    The string identifier of the associated RestApi.

    - #[serde(rename = "restApiId")] - #[serde(default)] - pub rest_api_id: std::option::Option, - ///

    The name of the associated stage.

    - #[serde(rename = "stage")] - #[serde(default)] - pub stage: std::option::Option, -} -impl std::fmt::Debug for UpdateBasePathMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateBasePathMappingOutputBody"); - formatter.field("base_path", &self.base_path); - formatter.field("rest_api_id", &self.rest_api_id); - formatter.field("stage", &self.stage); - formatter.finish() - } -} - -///

    Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

    -///
    Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClientCertificateOutputBody { - ///

    The identifier of the client certificate.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The description of the client certificate.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

    - #[serde(rename = "pemEncodedCertificate")] - #[serde(default)] - pub pem_encoded_certificate: std::option::Option, - ///

    The timestamp when the client certificate was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the client certificate will expire.

    - #[serde(rename = "expirationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub expiration_date: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for UpdateClientCertificateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClientCertificateOutputBody"); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("description", &self.description); - formatter.field("pem_encoded_certificate", &self.pem_encoded_certificate); - formatter.field("created_date", &self.created_date); - formatter.field("expiration_date", &self.expiration_date); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

    -///
    To create a deployment, call POST on the Deployments resource of a RestApi. -/// To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDeploymentOutputBody { - ///

    The identifier for the deployment resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The description for the deployment resource.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date and time that the deployment resource was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A summary of the RestApi at the date and time that the deployment resource was created.

    - #[serde(rename = "apiSummary")] - #[serde(default)] - pub api_summary: std::option::Option< - std::collections::HashMap< - std::string::String, - std::collections::HashMap, - >, - >, -} -impl std::fmt::Debug for UpdateDeploymentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDeploymentOutputBody"); - formatter.field("id", &self.id); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("api_summary", &self.api_summary); - formatter.finish() - } -} - -///

    A documentation part for a targeted API entity.

    -///
    -///

    A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

    -///

    The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI definition file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentationPartOutputBody { - ///

    The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

    - #[serde(rename = "location")] - #[serde(default)] - pub location: std::option::Option, - ///

    A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

    - #[serde(rename = "properties")] - #[serde(default)] - pub properties: std::option::Option, -} -impl std::fmt::Debug for UpdateDocumentationPartOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentationPartOutputBody"); - formatter.field("id", &self.id); - formatter.field("location", &self.location); - formatter.field("properties", &self.properties); - formatter.finish() - } -} - -///

    A snapshot of the documentation of an API.

    -///

    Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.

    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentationVersionOutputBody { - ///

    The version identifier of the API documentation snapshot.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The date when the API documentation snapshot is created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The description of the API documentation snapshot.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for UpdateDocumentationVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentationVersionOutputBody"); - formatter.field("version", &self.version); - formatter.field("created_date", &self.created_date); - formatter.field("description", &self.description); - formatter.finish() - } -} - -///

    Represents a custom domain name as a user-friendly host name of an API (RestApi).

    -///
    -///

    When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name. -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDomainNameOutputBody { - ///

    The custom domain name as an API host name, for example, my-api.example.com.

    - #[serde(rename = "domainName")] - #[serde(default)] - pub domain_name: std::option::Option, - ///

    The name of the certificate that will be used by edge-optimized endpoint for this domain name.

    - #[serde(rename = "certificateName")] - #[serde(default)] - pub certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "certificateArn")] - #[serde(default)] - pub certificate_arn: std::option::Option, - ///

    The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

    - #[serde(rename = "certificateUploadDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub certificate_upload_date: std::option::Option, - ///

    The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

    - #[serde(rename = "regionalDomainName")] - #[serde(default)] - pub regional_domain_name: std::option::Option, - ///

    The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "regionalHostedZoneId")] - #[serde(default)] - pub regional_hosted_zone_id: std::option::Option, - ///

    The name of the certificate that will be used for validating the regional domain name.

    - #[serde(rename = "regionalCertificateName")] - #[serde(default)] - pub regional_certificate_name: std::option::Option, - ///

    The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

    - #[serde(rename = "regionalCertificateArn")] - #[serde(default)] - pub regional_certificate_arn: std::option::Option, - ///

    The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

    - #[serde(rename = "distributionDomainName")] - #[serde(default)] - pub distribution_domain_name: std::option::Option, - ///

    The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

    - #[serde(rename = "distributionHostedZoneId")] - #[serde(default)] - pub distribution_hosted_zone_id: std::option::Option, - ///

    The endpoint configuration of this DomainName showing the endpoint types of the domain name.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    The status of the DomainName migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

    - #[serde(rename = "domainNameStatus")] - #[serde(default)] - pub domain_name_status: std::option::Option, - ///

    An optional text message containing detailed information about status of the DomainName migration.

    - #[serde(rename = "domainNameStatusMessage")] - #[serde(default)] - pub domain_name_status_message: std::option::Option, - ///

    The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

    - #[serde(rename = "securityPolicy")] - #[serde(default)] - pub security_policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

    - #[serde(rename = "mutualTlsAuthentication")] - #[serde(default)] - pub mutual_tls_authentication: std::option::Option, -} -impl std::fmt::Debug for UpdateDomainNameOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDomainNameOutputBody"); - formatter.field("domain_name", &self.domain_name); - formatter.field("certificate_name", &self.certificate_name); - formatter.field("certificate_arn", &self.certificate_arn); - formatter.field("certificate_upload_date", &self.certificate_upload_date); - formatter.field("regional_domain_name", &self.regional_domain_name); - formatter.field("regional_hosted_zone_id", &self.regional_hosted_zone_id); - formatter.field("regional_certificate_name", &self.regional_certificate_name); - formatter.field("regional_certificate_arn", &self.regional_certificate_arn); - formatter.field("distribution_domain_name", &self.distribution_domain_name); - formatter.field( - "distribution_hosted_zone_id", - &self.distribution_hosted_zone_id, - ); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("domain_name_status", &self.domain_name_status); - formatter.field( - "domain_name_status_message", - &self.domain_name_status_message, - ); - formatter.field("security_policy", &self.security_policy); - formatter.field("tags", &self.tags); - formatter.field("mutual_tls_authentication", &self.mutual_tls_authentication); - formatter.finish() - } -} - -///

    A gateway response of a given response type and status code, with optional response parameters and mapping templates.

    -///
    -/// For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway -///
    -///

    Example: Get a Gateway Response of a given response type

    -///
    Request
    -///

    This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

    -///
    GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1
    -/// Host: beta-apigateway.us-east-1.amazonaws.com
    -/// Content-Type: application/json
    -/// X-Amz-Date: 20170503T202516Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a
    -/// Cache-Control: no-cache
    -/// Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45
    -/// 
    -///

    The response type is specified as a URL path.

    -///
    Response
    -///

    The successful operation returns the 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html",
    -/// "name": "gatewayresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:delete": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// },
    -/// "gatewayresponse:put": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}",
    -/// "templated": true
    -/// },
    -/// "gatewayresponse:update": {
    -/// "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN"
    -/// }
    -/// },
    -/// "defaultResponse": false,
    -/// "responseParameters": {
    -/// "gatewayresponse.header.x-request-path": "method.request.path.petId",
    -/// "gatewayresponse.header.Access-Control-Allow-Origin": "'a.b.c'",
    -/// "gatewayresponse.header.x-request-query": "method.request.querystring.q",
    -/// "gatewayresponse.header.x-request-header": "method.request.header.Accept"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "{\n     \"message\": $context.error.messageString,\n     \"type\":  \"$context.error.responseType\",\n     \"stage\":  \"$context.stage\",\n     \"resourcePath\":  \"$context.resourcePath\",\n     \"stageVariables.a\":  \"$stageVariables.a\",\n     \"statusCode\": \"'404'\"\n}"
    -/// },
    -/// "responseType": "MISSING_AUTHENTICATION_TOKEN",
    -/// "statusCode": "404"
    -/// }
    -///

    -///
    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGatewayResponseOutputBody { - ///

    The response type of the associated GatewayResponse. Valid values are

    • ACCESS_DENIED
    • API_CONFIGURATION_ERROR
    • AUTHORIZER_FAILURE
    • AUTHORIZER_CONFIGURATION_ERROR
    • BAD_REQUEST_PARAMETERS
    • BAD_REQUEST_BODY
    • DEFAULT_4XX
    • DEFAULT_5XX
    • EXPIRED_TOKEN
    • INVALID_SIGNATURE
    • INTEGRATION_FAILURE
    • INTEGRATION_TIMEOUT
    • INVALID_API_KEY
    • MISSING_AUTHENTICATION_TOKEN
    • QUOTA_EXCEEDED
    • REQUEST_TOO_LARGE
    • RESOURCE_NOT_FOUND
    • THROTTLED
    • UNAUTHORIZED
    • UNSUPPORTED_MEDIA_TYPE

    - #[serde(rename = "responseType")] - #[serde(default)] - pub response_type: std::option::Option, - ///

    The HTTP status code for this GatewayResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

    - #[serde(rename = "defaultResponse")] - #[serde(default)] - pub default_response: bool, -} -impl std::fmt::Debug for UpdateGatewayResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGatewayResponseOutputBody"); - formatter.field("response_type", &self.response_type); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("default_response", &self.default_response); - formatter.finish() - } -} - -///

    Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

    -///
    In the API Gateway console, the built-in Lambda integration is an AWS integration.
    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateIntegrationOutputBody { - ///

    Specifies an API method integration type. The valid value is one of the following:

    - ///
      - ///
    • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
    • - ///
    • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
    • - ///
    • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
    • - ///
    • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
    • - ///
    • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.
    • - ///
    - ///

    For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

    - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    Specifies the integration's HTTP method type.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    Specifies Uniform Resource Identifier (URI) of the integration endpoint.

    - ///
      - ///
    • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

      - ///
    • - ///
    • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

      - ///
    - #[serde(rename = "uri")] - #[serde(default)] - pub uri: std::option::Option, - ///

    The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

    - #[serde(rename = "connectionType")] - #[serde(default)] - pub connection_type: std::option::Option, - ///

    The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

    - #[serde(rename = "connectionId")] - #[serde(default)] - pub connection_id: std::option::Option, - ///

    Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

    - #[serde(rename = "credentials")] - #[serde(default)] - pub credentials: std::option::Option, - ///

    A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    - #[serde(rename = "requestTemplates")] - #[serde(default)] - pub request_templates: - std::option::Option>, - ///
    - ///

    - /// Specifies how the method request body of an unmapped content type will be passed through the integration request - /// to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration - /// or the content type does not match any of the mapped content types, as specified in requestTemplates. - /// The valid value is one of the following: - ///

    - ///
      - ///
    • - /// WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation - /// when the method request content type does not match any content type associated with the mapping templates defined in the integration request. - ///
    • - ///
    • - /// WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation - /// when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request - /// of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. - ///
    • - ///
    • - /// NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method - /// request content type does not match any content type associated with the mapping templates defined in the integration request or - /// no mapping template is defined in the integration request. - ///
    • - ///
    - ///
    - #[serde(rename = "passthroughBehavior")] - #[serde(default)] - pub passthrough_behavior: std::option::Option, - ///

    Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, - ///

    Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

    - #[serde(rename = "timeoutInMillis")] - #[serde(default)] - pub timeout_in_millis: i32, - ///

    Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

    - #[serde(rename = "cacheNamespace")] - #[serde(default)] - pub cache_namespace: std::option::Option, - ///

    A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

    - #[serde(rename = "cacheKeyParameters")] - #[serde(default)] - pub cache_key_parameters: std::option::Option>, - ///

    Specifies the integration's responses.

    - ///
    - ///

    - ///

    Example: Get integration responses of a method

    - ///
    Request
    - ///

    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20160607T191449Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -    /// 
    - ///
    Response
    - ///

    The successful response returns 200 OK status and a payload as follows:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// Creating an API - ///
    - #[serde(rename = "integrationResponses")] - #[serde(default)] - pub integration_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the TLS configuration for an integration.

    - #[serde(rename = "tlsConfig")] - #[serde(default)] - pub tls_config: std::option::Option, -} -impl std::fmt::Debug for UpdateIntegrationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateIntegrationOutputBody"); - formatter.field("r#type", &self.r#type); - formatter.field("http_method", &self.http_method); - formatter.field("uri", &self.uri); - formatter.field("connection_type", &self.connection_type); - formatter.field("connection_id", &self.connection_id); - formatter.field("credentials", &self.credentials); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_templates", &self.request_templates); - formatter.field("passthrough_behavior", &self.passthrough_behavior); - formatter.field("content_handling", &self.content_handling); - formatter.field("timeout_in_millis", &self.timeout_in_millis); - formatter.field("cache_namespace", &self.cache_namespace); - formatter.field("cache_key_parameters", &self.cache_key_parameters); - formatter.field("integration_responses", &self.integration_responses); - formatter.field("tls_config", &self.tls_config); - formatter.finish() - } -} - -///

    Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.

    -///
    -/// Creating an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateIntegrationResponseOutputBody { - ///

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

    - #[serde(rename = "selectionPattern")] - #[serde(default)] - pub selection_pattern: std::option::Option, - ///

    A key-value map specifying response parameters that are passed to the method response from the back end. - /// The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

    - #[serde(rename = "responseTemplates")] - #[serde(default)] - pub response_templates: - std::option::Option>, - ///

    Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    - ///
      - ///
    • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

    • - ///
    • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

    • - ///
    - ///

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

    - #[serde(rename = "contentHandling")] - #[serde(default)] - pub content_handling: std::option::Option, -} -impl std::fmt::Debug for UpdateIntegrationResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateIntegrationResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("selection_pattern", &self.selection_pattern); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_templates", &self.response_templates); - formatter.field("content_handling", &self.content_handling); - formatter.finish() - } -} - -///

    -/// Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is -/// integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes -/// the client input that is passed to the back end through the integration request. A method response returns the output from -/// the back end to the client through an integration response. A method request is embodied in a Method resource, whereas -/// an integration request is embodied in an Integration resource. On the other hand, a method response is represented -/// by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource. -///

    -///
    -///

    -///

    Example: Retrive the GET method on a specified resource

    -///
    Request
    -///

    The following example request retrieves the information about the GET method on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T210259Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns a 200 OK status code and a payload similar to the following:

    -///
    {
    -/// "_links": {
    -/// "curies": [
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -/// "name": "integration",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -/// "name": "integrationresponse",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -/// "name": "method",
    -/// "templated": true
    -/// },
    -/// {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// }
    -/// ],
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -/// "name": "GET",
    -/// "title": "GET"
    -/// },
    -/// "integration:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "method:integration": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "method:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "method:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -/// },
    -/// "methodresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "apiKeyRequired": true,
    -/// "authorizationType": "NONE",
    -/// "httpMethod": "GET",
    -/// "_embedded": {
    -/// "method:integration": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integration:responses": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integration:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -/// },
    -/// "integrationresponse:put": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -/// "templated": true
    -/// }
    -/// },
    -/// "cacheKeyParameters": [],
    -/// "cacheNamespace": "3kzxbg5sa2",
    -/// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -/// "httpMethod": "POST",
    -/// "passthroughBehavior": "WHEN_NO_MATCH",
    -/// "requestParameters": {
    -/// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -/// },
    -/// "requestTemplates": {
    -/// "application/json": "{\n}"
    -/// },
    -/// "type": "AWS",
    -/// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -/// "_embedded": {
    -/// "integration:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "integrationresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// },
    -/// "integrationresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -/// }
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": "'application/xml'"
    -/// },
    -/// "responseTemplates": {
    -/// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")"
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// },
    -/// "method:responses": {
    -/// "_links": {
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "name": "200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -/// }
    -/// }
    -///

    In the example above, the response template for the 200 OK response maps the JSON output from the ListStreams action in the back end to an XML output. The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E and the output is decoded using the $util.urlDecode() helper function.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMethodOutputBody { - ///

    The method's HTTP verb.

    - #[serde(rename = "httpMethod")] - #[serde(default)] - pub http_method: std::option::Option, - ///

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

    - #[serde(rename = "authorizationType")] - #[serde(default)] - pub authorization_type: std::option::Option, - ///

    The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

    - #[serde(rename = "authorizerId")] - #[serde(default)] - pub authorizer_id: std::option::Option, - ///

    A boolean flag specifying whether a valid ApiKey is required to invoke this method.

    - #[serde(rename = "apiKeyRequired")] - #[serde(default)] - pub api_key_required: std::option::Option, - ///

    The identifier of a RequestValidator for request validation.

    - #[serde(rename = "requestValidatorId")] - #[serde(default)] - pub request_validator_id: std::option::Option, - ///

    A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

    - #[serde(rename = "operationName")] - #[serde(default)] - pub operation_name: std::option::Option, - ///

    A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

    - #[serde(rename = "requestParameters")] - #[serde(default)] - pub request_parameters: - std::option::Option>, - ///

    A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

    - #[serde(rename = "requestModels")] - #[serde(default)] - pub request_models: - std::option::Option>, - ///

    Gets a method response associated with a given HTTP status code.

    - ///
    - ///

    The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

    - ///

    Example: Get a 200 OK response of a GET method

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T215008Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// },
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": false,
    -    /// "method.response.header.operand_2": false,
    -    /// "method.response.header.operand_1": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodResponses")] - #[serde(default)] - pub method_responses: std::option::Option< - std::collections::HashMap, - >, - ///

    Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

    - ///
    - ///

    - ///

    Example:

    - ///
    Request
    - ///

    - ///
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// Content-Length: 117
    -    /// X-Amz-Date: 20160613T213210Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///

    The successful response returns a 200 OK status code and a payload similar to the following:

    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "0cjtch",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n    \"a\":  \"$input.params('operand1')\",\n    \"b\":  \"$input.params('operand2')\", \n    \"op\": \"$input.params('operator')\"   \n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.operator": "integration.response.body.op",
    -    /// "method.response.header.operand_2": "integration.response.body.b",
    -    /// "method.response.header.operand_1": "integration.response.body.a"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "#set($res = $input.path('$'))\n{\n    \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n  \"a\" : \"$res.a\",\n  \"b\" : \"$res.b\",\n  \"op\" : \"$res.op\",\n  \"c\" : \"$res.c\"\n}"
    -    /// },
    -    /// "selectionPattern": "",
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    - ///
    - ///
    - /// AWS CLI - ///
    - #[serde(rename = "methodIntegration")] - #[serde(default)] - pub method_integration: std::option::Option, - ///

    A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

    - #[serde(rename = "authorizationScopes")] - #[serde(default)] - pub authorization_scopes: std::option::Option>, -} -impl std::fmt::Debug for UpdateMethodOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMethodOutputBody"); - formatter.field("http_method", &self.http_method); - formatter.field("authorization_type", &self.authorization_type); - formatter.field("authorizer_id", &self.authorizer_id); - formatter.field("api_key_required", &self.api_key_required); - formatter.field("request_validator_id", &self.request_validator_id); - formatter.field("operation_name", &self.operation_name); - formatter.field("request_parameters", &self.request_parameters); - formatter.field("request_models", &self.request_models); - formatter.field("method_responses", &self.method_responses); - formatter.field("method_integration", &self.method_integration); - formatter.field("authorization_scopes", &self.authorization_scopes); - formatter.finish() - } -} - -///

    Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

    -///
    -///

    -///

    Example: A MethodResponse instance of an API

    -///
    Request
    -///

    The example request retrieves a MethodResponse of the 200 status code.

    -///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 HTTP/1.1
    -/// Content-Type: application/json
    -/// Host: apigateway.us-east-1.amazonaws.com
    -/// X-Amz-Date: 20160603T222952Z
    -/// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    -///
    Response
    -///

    The successful response returns 200 OK status and a payload as follows:

    -///
    {
    -/// "_links": {
    -/// "curies": {
    -/// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -/// "name": "methodresponse",
    -/// "templated": true
    -/// },
    -/// "self": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -/// "title": "200"
    -/// },
    -/// "methodresponse:delete": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// },
    -/// "methodresponse:update": {
    -/// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -/// }
    -/// },
    -/// "responseModels": {
    -/// "application/json": "Empty"
    -/// },
    -/// "responseParameters": {
    -/// "method.response.header.Content-Type": false
    -/// },
    -/// "statusCode": "200"
    -/// }
    -///

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMethodResponseOutputBody { - ///

    The method response's status code.

    - #[serde(rename = "statusCode")] - #[serde(default)] - pub status_code: std::option::Option, - ///

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

    - #[serde(rename = "responseParameters")] - #[serde(default)] - pub response_parameters: - std::option::Option>, - ///

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

    - #[serde(rename = "responseModels")] - #[serde(default)] - pub response_models: - std::option::Option>, -} -impl std::fmt::Debug for UpdateMethodResponseOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMethodResponseOutputBody"); - formatter.field("status_code", &self.status_code); - formatter.field("response_parameters", &self.response_parameters); - formatter.field("response_models", &self.response_models); - formatter.finish() - } -} - -///

    Represents the data structure of a method's request or response payload.

    -///
    -///

    A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.

    -///

    A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateModelOutputBody { - ///

    The identifier for the model resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of the model. Must be an alphanumeric string.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the model.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

    - #[serde(rename = "schema")] - #[serde(default)] - pub schema: std::option::Option, - ///

    The content-type for the model.

    - #[serde(rename = "contentType")] - #[serde(default)] - pub content_type: std::option::Option, -} -impl std::fmt::Debug for UpdateModelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateModelOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("schema", &self.schema); - formatter.field("content_type", &self.content_type); - formatter.finish() - } -} - -///

    A set of validation rules for incoming Method requests.

    -///
    -///

    In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateRequestValidatorOutputBody { - ///

    The identifier of this RequestValidator.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of this RequestValidator

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

    - #[serde(rename = "validateRequestBody")] - #[serde(default)] - pub validate_request_body: bool, - ///

    A Boolean flag to indicate whether to validate request parameters (true) or not (false).

    - #[serde(rename = "validateRequestParameters")] - #[serde(default)] - pub validate_request_parameters: bool, -} -impl std::fmt::Debug for UpdateRequestValidatorOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateRequestValidatorOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("validate_request_body", &self.validate_request_body); - formatter.field( - "validate_request_parameters", - &self.validate_request_parameters, - ); - formatter.finish() - } -} - -///

    Represents an API resource.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateResourceOutputBody { - ///

    The resource's identifier.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The parent resource's identifier.

    - #[serde(rename = "parentId")] - #[serde(default)] - pub parent_id: std::option::Option, - ///

    The last path segment for this resource.

    - #[serde(rename = "pathPart")] - #[serde(default)] - pub path_part: std::option::Option, - ///

    The full path for this resource.

    - #[serde(rename = "path")] - #[serde(default)] - pub path: std::option::Option, - ///

    Gets an API resource's method of a given HTTP verb.

    - ///
    - ///

    The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

    - ///

    Example: Get the GET method of an API resource

    - ///
    Request
    - ///
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1
    -    /// Content-Type: application/json
    -    /// Host: apigateway.us-east-1.amazonaws.com
    -    /// X-Amz-Date: 20170223T031827Z
    -    /// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    - ///
    Response
    - ///
    {
    -    /// "_links": {
    -    /// "curies": [
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
    -    /// "name": "integration",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
    -    /// "name": "integrationresponse",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
    -    /// "name": "method",
    -    /// "templated": true
    -    /// },
    -    /// {
    -    /// "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
    -    /// "name": "methodresponse",
    -    /// "templated": true
    -    /// }
    -    /// ],
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
    -    /// "name": "GET",
    -    /// "title": "GET"
    -    /// },
    -    /// "integration:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "method:integration": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "method:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "method:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
    -    /// },
    -    /// "methodresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "apiKeyRequired": false,
    -    /// "authorizationType": "NONE",
    -    /// "httpMethod": "GET",
    -    /// "_embedded": {
    -    /// "method:integration": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integration:responses": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integration:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
    -    /// },
    -    /// "integrationresponse:put": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
    -    /// "templated": true
    -    /// }
    -    /// },
    -    /// "cacheKeyParameters": [],
    -    /// "cacheNamespace": "3kzxbg5sa2",
    -    /// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
    -    /// "httpMethod": "POST",
    -    /// "passthroughBehavior": "WHEN_NO_MATCH",
    -    /// "requestParameters": {
    -    /// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
    -    /// },
    -    /// "requestTemplates": {
    -    /// "application/json": "{\n}"
    -    /// },
    -    /// "type": "AWS",
    -    /// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
    -    /// "_embedded": {
    -    /// "integration:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "integrationresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// },
    -    /// "integrationresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
    -    /// }
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": "'application/xml'"
    -    /// },
    -    /// "responseTemplates": {
    -    /// "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// },
    -    /// "method:responses": {
    -    /// "_links": {
    -    /// "self": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
    -    /// "name": "200",
    -    /// "title": "200"
    -    /// },
    -    /// "methodresponse:delete": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// },
    -    /// "methodresponse:update": {
    -    /// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
    -    /// }
    -    /// },
    -    /// "responseModels": {
    -    /// "application/json": "Empty"
    -    /// },
    -    /// "responseParameters": {
    -    /// "method.response.header.Content-Type": false
    -    /// },
    -    /// "statusCode": "200"
    -    /// }
    -    /// }
    -    /// }
    - ///

    If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

    - ///
    - ///
    - ///
    - #[serde(rename = "resourceMethods")] - #[serde(default)] - pub resource_methods: - std::option::Option>, -} -impl std::fmt::Debug for UpdateResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateResourceOutputBody"); - formatter.field("id", &self.id); - formatter.field("parent_id", &self.parent_id); - formatter.field("path_part", &self.path_part); - formatter.field("path", &self.path); - formatter.field("resource_methods", &self.resource_methods); - formatter.finish() - } -} - -///

    Represents a REST API.

    -///
    -/// Create an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateRestApiOutputBody { - ///

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The API's name.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The API's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The timestamp when the API was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    A version identifier for the API.

    - #[serde(rename = "version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The warning messages reported when failonwarnings is turned on during API import.

    - #[serde(rename = "warnings")] - #[serde(default)] - pub warnings: std::option::Option>, - ///

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

    - #[serde(rename = "binaryMediaTypes")] - #[serde(default)] - pub binary_media_types: std::option::Option>, - ///

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

    - #[serde(rename = "minimumCompressionSize")] - #[serde(default)] - pub minimum_compression_size: std::option::Option, - ///

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

    - #[serde(rename = "apiKeySource")] - #[serde(default)] - pub api_key_source: std::option::Option, - ///

    The endpoint configuration of this RestApi showing the endpoint types of the API.

    - #[serde(rename = "endpointConfiguration")] - #[serde(default)] - pub endpoint_configuration: std::option::Option, - ///

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

    - #[serde(rename = "policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

    - #[serde(rename = "disableExecuteApiEndpoint")] - #[serde(default)] - pub disable_execute_api_endpoint: bool, -} -impl std::fmt::Debug for UpdateRestApiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateRestApiOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("warnings", &self.warnings); - formatter.field("binary_media_types", &self.binary_media_types); - formatter.field("minimum_compression_size", &self.minimum_compression_size); - formatter.field("api_key_source", &self.api_key_source); - formatter.field("endpoint_configuration", &self.endpoint_configuration); - formatter.field("policy", &self.policy); - formatter.field("tags", &self.tags); - formatter.field( - "disable_execute_api_endpoint", - &self.disable_execute_api_endpoint, - ); - formatter.finish() - } -} - -///

    Represents a unique identifier for a version of a deployed RestApi that is callable by users.

    -///
    -/// Deploy an API -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateStageOutputBody { - ///

    The identifier of the Deployment that the stage points to.

    - #[serde(rename = "deploymentId")] - #[serde(default)] - pub deployment_id: std::option::Option, - ///

    The identifier of a client certificate for an API stage.

    - #[serde(rename = "clientCertificateId")] - #[serde(default)] - pub client_certificate_id: std::option::Option, - ///

    The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

    - #[serde(rename = "stageName")] - #[serde(default)] - pub stage_name: std::option::Option, - ///

    The stage's description.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Specifies whether a cache cluster is enabled for the stage.

    - #[serde(rename = "cacheClusterEnabled")] - #[serde(default)] - pub cache_cluster_enabled: bool, - ///

    The size of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterSize")] - #[serde(default)] - pub cache_cluster_size: std::option::Option, - ///

    The status of the cache cluster for the stage, if enabled.

    - #[serde(rename = "cacheClusterStatus")] - #[serde(default)] - pub cache_cluster_status: std::option::Option, - ///

    A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

    - #[serde(rename = "methodSettings")] - #[serde(default)] - pub method_settings: std::option::Option< - std::collections::HashMap, - >, - ///

    A map that defines the stage variables for a Stage resource. Variable names can - /// have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    - #[serde(rename = "variables")] - #[serde(default)] - pub variables: - std::option::Option>, - ///

    The version of the associated API documentation.

    - #[serde(rename = "documentationVersion")] - #[serde(default)] - pub documentation_version: std::option::Option, - ///

    Settings for logging access in this stage.

    - #[serde(rename = "accessLogSettings")] - #[serde(default)] - pub access_log_settings: std::option::Option, - ///

    Settings for the canary deployment in this stage.

    - #[serde(rename = "canarySettings")] - #[serde(default)] - pub canary_settings: std::option::Option, - ///

    Specifies whether active tracing with X-ray is enabled for the Stage.

    - #[serde(rename = "tracingEnabled")] - #[serde(default)] - pub tracing_enabled: bool, - ///

    The ARN of the WebAcl associated with the Stage.

    - #[serde(rename = "webAclArn")] - #[serde(default)] - pub web_acl_arn: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The timestamp when the stage was created.

    - #[serde(rename = "createdDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The timestamp when the stage last updated.

    - #[serde(rename = "lastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_date: std::option::Option, -} -impl std::fmt::Debug for UpdateStageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateStageOutputBody"); - formatter.field("deployment_id", &self.deployment_id); - formatter.field("client_certificate_id", &self.client_certificate_id); - formatter.field("stage_name", &self.stage_name); - formatter.field("description", &self.description); - formatter.field("cache_cluster_enabled", &self.cache_cluster_enabled); - formatter.field("cache_cluster_size", &self.cache_cluster_size); - formatter.field("cache_cluster_status", &self.cache_cluster_status); - formatter.field("method_settings", &self.method_settings); - formatter.field("variables", &self.variables); - formatter.field("documentation_version", &self.documentation_version); - formatter.field("access_log_settings", &self.access_log_settings); - formatter.field("canary_settings", &self.canary_settings); - formatter.field("tracing_enabled", &self.tracing_enabled); - formatter.field("web_acl_arn", &self.web_acl_arn); - formatter.field("tags", &self.tags); - formatter.field("created_date", &self.created_date); - formatter.field("last_updated_date", &self.last_updated_date); - formatter.finish() - } -} - -///

    Represents the usage data of a usage plan.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUsageOutputBody { - ///

    The plan Id associated with this usage data.

    - #[serde(rename = "usagePlanId")] - #[serde(default)] - pub usage_plan_id: std::option::Option, - ///

    The starting date of the usage data.

    - #[serde(rename = "startDate")] - #[serde(default)] - pub start_date: std::option::Option, - ///

    The ending date of the usage data.

    - #[serde(rename = "endDate")] - #[serde(default)] - pub end_date: std::option::Option, - ///

    The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

    - #[serde(rename = "values")] - #[serde(default)] - pub items: std::option::Option< - std::collections::HashMap>>, - >, - ///

    The current pagination position in the paged result set.

    - #[serde(rename = "position")] - #[serde(default)] - pub position: std::option::Option, -} -impl std::fmt::Debug for UpdateUsageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUsageOutputBody"); - formatter.field("usage_plan_id", &self.usage_plan_id); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("items", &self.items); - formatter.field("position", &self.position); - formatter.finish() - } -} - -///

    Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

    -///
    -///

    In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.

    -///
    -/// -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUsagePlanOutputBody { - ///

    The identifier of a UsagePlan resource.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name of a usage plan.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of a usage plan.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The associated API stages of a usage plan.

    - #[serde(rename = "apiStages")] - #[serde(default)] - pub api_stages: std::option::Option>, - ///

    The request throttle limits of a usage plan.

    - #[serde(rename = "throttle")] - #[serde(default)] - pub throttle: std::option::Option, - ///

    The maximum number of permitted requests per a given unit time interval.

    - #[serde(rename = "quota")] - #[serde(default)] - pub quota: std::option::Option, - ///

    The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

    - #[serde(rename = "productCode")] - #[serde(default)] - pub product_code: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for UpdateUsagePlanOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUsagePlanOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("api_stages", &self.api_stages); - formatter.field("throttle", &self.throttle); - formatter.field("quota", &self.quota); - formatter.field("product_code", &self.product_code); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

    -///
    -///

    To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

    -///
    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateVpcLinkOutputBody { - ///

    The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

    - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - ///

    The name used to label and identify the VPC link.

    - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the VPC link.

    - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

    - #[serde(rename = "targetArns")] - #[serde(default)] - pub target_arns: std::option::Option>, - ///

    The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

    - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A description about the VPC link status.

    - #[serde(rename = "statusMessage")] - #[serde(default)] - pub status_message: std::option::Option, - ///

    The collection of tags. Each tag element is associated with a given resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for UpdateVpcLinkOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateVpcLinkOutputBody"); - formatter.field("id", &self.id); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("target_arns", &self.target_arns); - formatter.field("status", &self.status); - formatter.field("status_message", &self.status_message); - formatter.field("tags", &self.tags); - formatter.finish() - } -} diff --git a/sdk/aws-types/src/region.rs b/sdk/aws-types/src/region.rs index c1e72a582a54..8716d2bc41bd 100644 --- a/sdk/aws-types/src/region.rs +++ b/sdk/aws-types/src/region.rs @@ -31,6 +31,59 @@ impl Region { pub fn new(region: impl Into>) -> Self { Self(region.into()) } + pub const fn from_static(region: &'static str) -> Self { + Self(Cow::Borrowed(region)) + } +} + +pub struct ChainProvider { + providers: Vec>, +} + +/// Implement a region provider based on a series of region providers +/// +/// # Example +/// ```rust +/// use aws_types::region::{ChainProvider, Region}; +/// use std::env; +/// // region provider that first checks the `CUSTOM_REGION` environment variable, +/// // then checks the default provider chain, then falls back to us-east-2 +/// let provider = ChainProvider::first_try(env::var("CUSTOM_REGION").ok().map(Region::new)) +/// .or_default_provider() +/// .or_else(Region::new("us-east-2")); +/// ``` +impl ChainProvider { + pub fn first_try(provider: impl ProvideRegion + 'static) -> Self { + ChainProvider { + providers: vec![Box::new(provider)], + } + } + pub fn or_else(mut self, fallback: impl ProvideRegion + 'static) -> Self { + self.providers.push(Box::new(fallback)); + self + } + + pub fn or_default_provider(mut self) -> Self { + self.providers.push(Box::new(default_provider())); + self + } +} + +impl ProvideRegion for Option { + fn region(&self) -> Option { + self.clone() + } +} + +impl ProvideRegion for ChainProvider { + fn region(&self) -> Option { + for provider in &self.providers { + if let Some(region) = provider.region() { + return Some(region); + } + } + None + } } /// Provide a [`Region`](Region) to use with AWS requests diff --git a/sdk/batch/Cargo.toml b/sdk/batch/Cargo.toml index ec0aa77ea88b..4122eb6c46d6 100644 --- a/sdk/batch/Cargo.toml +++ b/sdk/batch/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-batch" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch computing is a common means for\n developers, scientists, and engineers to access large amounts of compute resources. AWS Batch uses the advantages of\n this computing workload to remove the undifferentiated heavy lifting of configuring and managing required\n infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these\n advantages, AWS Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively\n helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.

    \n

    As a fully managed service, AWS Batch can run batch computing workloads of any scale. AWS Batch automatically\n provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific\n workloads. With AWS Batch, there's no need to install or manage batch computing software. This means that you can focus\n your time and energy on analyzing results and solving your specific problems.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [dev-dependencies.tokio] diff --git a/sdk/batch/src/aws_json_errors.rs b/sdk/batch/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/batch/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/batch/src/error.rs b/sdk/batch/src/error.rs index b9b4f29db210..7720a58d516a 100644 --- a/sdk/batch/src/error.rs +++ b/sdk/batch/src/error.rs @@ -8,16 +8,16 @@ pub struct CancelJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelJobErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelJobErrorKind::ClientError(_inner) => _inner.fmt(f), - CancelJobErrorKind::ServerError(_inner) => _inner.fmt(f), + CancelJobErrorKind::ClientException(_inner) => _inner.fmt(f), + CancelJobErrorKind::ServerException(_inner) => _inner.fmt(f), CancelJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -66,18 +66,18 @@ impl CancelJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CancelJobErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CancelJobErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CancelJobErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CancelJobErrorKind::ServerException(_)) } } impl std::error::Error for CancelJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelJobErrorKind::ClientError(_inner) => Some(_inner), - CancelJobErrorKind::ServerError(_inner) => Some(_inner), + CancelJobErrorKind::ClientException(_inner) => Some(_inner), + CancelJobErrorKind::ServerException(_inner) => Some(_inner), CancelJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -92,16 +92,16 @@ pub struct CreateComputeEnvironmentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateComputeEnvironmentErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateComputeEnvironmentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateComputeEnvironmentErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateComputeEnvironmentErrorKind::ServerError(_inner) => _inner.fmt(f), + CreateComputeEnvironmentErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateComputeEnvironmentErrorKind::ServerException(_inner) => _inner.fmt(f), CreateComputeEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -150,24 +150,24 @@ impl CreateComputeEnvironmentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - CreateComputeEnvironmentErrorKind::ClientError(_) + CreateComputeEnvironmentErrorKind::ClientException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - CreateComputeEnvironmentErrorKind::ServerError(_) + CreateComputeEnvironmentErrorKind::ServerException(_) ) } } impl std::error::Error for CreateComputeEnvironmentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateComputeEnvironmentErrorKind::ClientError(_inner) => Some(_inner), - CreateComputeEnvironmentErrorKind::ServerError(_inner) => Some(_inner), + CreateComputeEnvironmentErrorKind::ClientException(_inner) => Some(_inner), + CreateComputeEnvironmentErrorKind::ServerException(_inner) => Some(_inner), CreateComputeEnvironmentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -182,16 +182,16 @@ pub struct CreateJobQueueError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateJobQueueErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateJobQueueError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateJobQueueErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateJobQueueErrorKind::ServerError(_inner) => _inner.fmt(f), + CreateJobQueueErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateJobQueueErrorKind::ServerException(_inner) => _inner.fmt(f), CreateJobQueueErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -240,18 +240,18 @@ impl CreateJobQueueError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CreateJobQueueErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateJobQueueErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CreateJobQueueErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateJobQueueErrorKind::ServerException(_)) } } impl std::error::Error for CreateJobQueueError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateJobQueueErrorKind::ClientError(_inner) => Some(_inner), - CreateJobQueueErrorKind::ServerError(_inner) => Some(_inner), + CreateJobQueueErrorKind::ClientException(_inner) => Some(_inner), + CreateJobQueueErrorKind::ServerException(_inner) => Some(_inner), CreateJobQueueErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -266,16 +266,16 @@ pub struct DeleteComputeEnvironmentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteComputeEnvironmentErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteComputeEnvironmentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteComputeEnvironmentErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteComputeEnvironmentErrorKind::ServerError(_inner) => _inner.fmt(f), + DeleteComputeEnvironmentErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteComputeEnvironmentErrorKind::ServerException(_inner) => _inner.fmt(f), DeleteComputeEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -324,24 +324,24 @@ impl DeleteComputeEnvironmentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DeleteComputeEnvironmentErrorKind::ClientError(_) + DeleteComputeEnvironmentErrorKind::ClientException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DeleteComputeEnvironmentErrorKind::ServerError(_) + DeleteComputeEnvironmentErrorKind::ServerException(_) ) } } impl std::error::Error for DeleteComputeEnvironmentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteComputeEnvironmentErrorKind::ClientError(_inner) => Some(_inner), - DeleteComputeEnvironmentErrorKind::ServerError(_inner) => Some(_inner), + DeleteComputeEnvironmentErrorKind::ClientException(_inner) => Some(_inner), + DeleteComputeEnvironmentErrorKind::ServerException(_inner) => Some(_inner), DeleteComputeEnvironmentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -356,16 +356,16 @@ pub struct DeleteJobQueueError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteJobQueueErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteJobQueueError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteJobQueueErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteJobQueueErrorKind::ServerError(_inner) => _inner.fmt(f), + DeleteJobQueueErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteJobQueueErrorKind::ServerException(_inner) => _inner.fmt(f), DeleteJobQueueErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -414,18 +414,18 @@ impl DeleteJobQueueError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteJobQueueErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteJobQueueErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteJobQueueErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteJobQueueErrorKind::ServerException(_)) } } impl std::error::Error for DeleteJobQueueError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteJobQueueErrorKind::ClientError(_inner) => Some(_inner), - DeleteJobQueueErrorKind::ServerError(_inner) => Some(_inner), + DeleteJobQueueErrorKind::ClientException(_inner) => Some(_inner), + DeleteJobQueueErrorKind::ServerException(_inner) => Some(_inner), DeleteJobQueueErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -440,16 +440,16 @@ pub struct DeregisterJobDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterJobDefinitionErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterJobDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterJobDefinitionErrorKind::ClientError(_inner) => _inner.fmt(f), - DeregisterJobDefinitionErrorKind::ServerError(_inner) => _inner.fmt(f), + DeregisterJobDefinitionErrorKind::ClientException(_inner) => _inner.fmt(f), + DeregisterJobDefinitionErrorKind::ServerException(_inner) => _inner.fmt(f), DeregisterJobDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -498,18 +498,24 @@ impl DeregisterJobDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeregisterJobDefinitionErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DeregisterJobDefinitionErrorKind::ClientException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeregisterJobDefinitionErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeregisterJobDefinitionErrorKind::ServerException(_) + ) } } impl std::error::Error for DeregisterJobDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterJobDefinitionErrorKind::ClientError(_inner) => Some(_inner), - DeregisterJobDefinitionErrorKind::ServerError(_inner) => Some(_inner), + DeregisterJobDefinitionErrorKind::ClientException(_inner) => Some(_inner), + DeregisterJobDefinitionErrorKind::ServerException(_inner) => Some(_inner), DeregisterJobDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -524,16 +530,16 @@ pub struct DescribeComputeEnvironmentsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeComputeEnvironmentsErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeComputeEnvironmentsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeComputeEnvironmentsErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeComputeEnvironmentsErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeComputeEnvironmentsErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeComputeEnvironmentsErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeComputeEnvironmentsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -582,24 +588,24 @@ impl DescribeComputeEnvironmentsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DescribeComputeEnvironmentsErrorKind::ClientError(_) + DescribeComputeEnvironmentsErrorKind::ClientException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DescribeComputeEnvironmentsErrorKind::ServerError(_) + DescribeComputeEnvironmentsErrorKind::ServerException(_) ) } } impl std::error::Error for DescribeComputeEnvironmentsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeComputeEnvironmentsErrorKind::ClientError(_inner) => Some(_inner), - DescribeComputeEnvironmentsErrorKind::ServerError(_inner) => Some(_inner), + DescribeComputeEnvironmentsErrorKind::ClientException(_inner) => Some(_inner), + DescribeComputeEnvironmentsErrorKind::ServerException(_inner) => Some(_inner), DescribeComputeEnvironmentsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -614,16 +620,16 @@ pub struct DescribeJobDefinitionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeJobDefinitionsErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeJobDefinitionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeJobDefinitionsErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeJobDefinitionsErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeJobDefinitionsErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeJobDefinitionsErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeJobDefinitionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -672,18 +678,24 @@ impl DescribeJobDefinitionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeJobDefinitionsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DescribeJobDefinitionsErrorKind::ClientException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeJobDefinitionsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeJobDefinitionsErrorKind::ServerException(_) + ) } } impl std::error::Error for DescribeJobDefinitionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeJobDefinitionsErrorKind::ClientError(_inner) => Some(_inner), - DescribeJobDefinitionsErrorKind::ServerError(_inner) => Some(_inner), + DescribeJobDefinitionsErrorKind::ClientException(_inner) => Some(_inner), + DescribeJobDefinitionsErrorKind::ServerException(_inner) => Some(_inner), DescribeJobDefinitionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -698,16 +710,16 @@ pub struct DescribeJobQueuesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeJobQueuesErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeJobQueuesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeJobQueuesErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeJobQueuesErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeJobQueuesErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeJobQueuesErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeJobQueuesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -756,18 +768,18 @@ impl DescribeJobQueuesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeJobQueuesErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeJobQueuesErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeJobQueuesErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeJobQueuesErrorKind::ServerException(_)) } } impl std::error::Error for DescribeJobQueuesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeJobQueuesErrorKind::ClientError(_inner) => Some(_inner), - DescribeJobQueuesErrorKind::ServerError(_inner) => Some(_inner), + DescribeJobQueuesErrorKind::ClientException(_inner) => Some(_inner), + DescribeJobQueuesErrorKind::ServerException(_inner) => Some(_inner), DescribeJobQueuesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -782,16 +794,16 @@ pub struct DescribeJobsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeJobsErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeJobsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeJobsErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeJobsErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeJobsErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeJobsErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeJobsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -840,18 +852,18 @@ impl DescribeJobsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeJobsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeJobsErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeJobsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeJobsErrorKind::ServerException(_)) } } impl std::error::Error for DescribeJobsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeJobsErrorKind::ClientError(_inner) => Some(_inner), - DescribeJobsErrorKind::ServerError(_inner) => Some(_inner), + DescribeJobsErrorKind::ClientException(_inner) => Some(_inner), + DescribeJobsErrorKind::ServerException(_inner) => Some(_inner), DescribeJobsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -866,16 +878,16 @@ pub struct ListJobsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListJobsErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListJobsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListJobsErrorKind::ClientError(_inner) => _inner.fmt(f), - ListJobsErrorKind::ServerError(_inner) => _inner.fmt(f), + ListJobsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListJobsErrorKind::ServerException(_inner) => _inner.fmt(f), ListJobsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -924,18 +936,18 @@ impl ListJobsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListJobsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListJobsErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListJobsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListJobsErrorKind::ServerException(_)) } } impl std::error::Error for ListJobsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListJobsErrorKind::ClientError(_inner) => Some(_inner), - ListJobsErrorKind::ServerError(_inner) => Some(_inner), + ListJobsErrorKind::ClientException(_inner) => Some(_inner), + ListJobsErrorKind::ServerException(_inner) => Some(_inner), ListJobsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -950,16 +962,16 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ServerException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1008,18 +1020,18 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListTagsForResourceErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListTagsForResourceErrorKind::ServerException(_)) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::ClientError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ServerError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ClientException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ServerException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1034,16 +1046,16 @@ pub struct RegisterJobDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterJobDefinitionErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterJobDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterJobDefinitionErrorKind::ClientError(_inner) => _inner.fmt(f), - RegisterJobDefinitionErrorKind::ServerError(_inner) => _inner.fmt(f), + RegisterJobDefinitionErrorKind::ClientException(_inner) => _inner.fmt(f), + RegisterJobDefinitionErrorKind::ServerException(_inner) => _inner.fmt(f), RegisterJobDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1092,18 +1104,24 @@ impl RegisterJobDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, RegisterJobDefinitionErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + RegisterJobDefinitionErrorKind::ClientException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, RegisterJobDefinitionErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + RegisterJobDefinitionErrorKind::ServerException(_) + ) } } impl std::error::Error for RegisterJobDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterJobDefinitionErrorKind::ClientError(_inner) => Some(_inner), - RegisterJobDefinitionErrorKind::ServerError(_inner) => Some(_inner), + RegisterJobDefinitionErrorKind::ClientException(_inner) => Some(_inner), + RegisterJobDefinitionErrorKind::ServerException(_inner) => Some(_inner), RegisterJobDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1118,16 +1136,16 @@ pub struct SubmitJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SubmitJobErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SubmitJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SubmitJobErrorKind::ClientError(_inner) => _inner.fmt(f), - SubmitJobErrorKind::ServerError(_inner) => _inner.fmt(f), + SubmitJobErrorKind::ClientException(_inner) => _inner.fmt(f), + SubmitJobErrorKind::ServerException(_inner) => _inner.fmt(f), SubmitJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1176,18 +1194,18 @@ impl SubmitJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, SubmitJobErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, SubmitJobErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, SubmitJobErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, SubmitJobErrorKind::ServerException(_)) } } impl std::error::Error for SubmitJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SubmitJobErrorKind::ClientError(_inner) => Some(_inner), - SubmitJobErrorKind::ServerError(_inner) => Some(_inner), + SubmitJobErrorKind::ClientException(_inner) => Some(_inner), + SubmitJobErrorKind::ServerException(_inner) => Some(_inner), SubmitJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1202,16 +1220,16 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + TagResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1260,18 +1278,18 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ServerException(_)) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::ClientError(_inner) => Some(_inner), - TagResourceErrorKind::ServerError(_inner) => Some(_inner), + TagResourceErrorKind::ClientException(_inner) => Some(_inner), + TagResourceErrorKind::ServerException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1286,16 +1304,16 @@ pub struct TerminateJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TerminateJobErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TerminateJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TerminateJobErrorKind::ClientError(_inner) => _inner.fmt(f), - TerminateJobErrorKind::ServerError(_inner) => _inner.fmt(f), + TerminateJobErrorKind::ClientException(_inner) => _inner.fmt(f), + TerminateJobErrorKind::ServerException(_inner) => _inner.fmt(f), TerminateJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1344,18 +1362,18 @@ impl TerminateJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, TerminateJobErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, TerminateJobErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, TerminateJobErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, TerminateJobErrorKind::ServerException(_)) } } impl std::error::Error for TerminateJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TerminateJobErrorKind::ClientError(_inner) => Some(_inner), - TerminateJobErrorKind::ServerError(_inner) => Some(_inner), + TerminateJobErrorKind::ClientException(_inner) => Some(_inner), + TerminateJobErrorKind::ServerException(_inner) => Some(_inner), TerminateJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1370,16 +1388,16 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1428,18 +1446,18 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ServerException(_)) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::ClientError(_inner) => Some(_inner), - UntagResourceErrorKind::ServerError(_inner) => Some(_inner), + UntagResourceErrorKind::ClientException(_inner) => Some(_inner), + UntagResourceErrorKind::ServerException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1454,16 +1472,16 @@ pub struct UpdateComputeEnvironmentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateComputeEnvironmentErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateComputeEnvironmentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateComputeEnvironmentErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateComputeEnvironmentErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateComputeEnvironmentErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateComputeEnvironmentErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateComputeEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1512,24 +1530,24 @@ impl UpdateComputeEnvironmentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - UpdateComputeEnvironmentErrorKind::ClientError(_) + UpdateComputeEnvironmentErrorKind::ClientException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - UpdateComputeEnvironmentErrorKind::ServerError(_) + UpdateComputeEnvironmentErrorKind::ServerException(_) ) } } impl std::error::Error for UpdateComputeEnvironmentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateComputeEnvironmentErrorKind::ClientError(_inner) => Some(_inner), - UpdateComputeEnvironmentErrorKind::ServerError(_inner) => Some(_inner), + UpdateComputeEnvironmentErrorKind::ClientException(_inner) => Some(_inner), + UpdateComputeEnvironmentErrorKind::ServerException(_inner) => Some(_inner), UpdateComputeEnvironmentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1544,16 +1562,16 @@ pub struct UpdateJobQueueError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateJobQueueErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateJobQueueError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateJobQueueErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateJobQueueErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateJobQueueErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateJobQueueErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateJobQueueErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1602,18 +1620,18 @@ impl UpdateJobQueueError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateJobQueueErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateJobQueueErrorKind::ClientException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateJobQueueErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateJobQueueErrorKind::ServerException(_)) } } impl std::error::Error for UpdateJobQueueError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateJobQueueErrorKind::ClientError(_inner) => Some(_inner), - UpdateJobQueueErrorKind::ServerError(_inner) => Some(_inner), + UpdateJobQueueErrorKind::ClientException(_inner) => Some(_inner), + UpdateJobQueueErrorKind::ServerException(_inner) => Some(_inner), UpdateJobQueueErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1621,37 +1639,35 @@ impl std::error::Error for UpdateJobQueueError { ///

    These errors are usually caused by a server issue.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServerError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServerException { pub message: std::option::Option, } -impl std::fmt::Debug for ServerError { +impl std::fmt::Debug for ServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServerError"); + let mut formatter = f.debug_struct("ServerException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServerError { +impl ServerException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServerError { +impl std::fmt::Display for ServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServerError [ServerException]")?; + write!(f, "ServerException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ServerError {} -/// See [`ServerError`](crate::error::ServerError) -pub mod server_error { - /// A builder for [`ServerError`](crate::error::ServerError) +impl std::error::Error for ServerException {} +/// See [`ServerException`](crate::error::ServerException) +pub mod server_exception { + /// A builder for [`ServerException`](crate::error::ServerException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1666,55 +1682,53 @@ pub mod server_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServerError`](crate::error::ServerError) - pub fn build(self) -> crate::error::ServerError { - crate::error::ServerError { + /// Consumes the builder and constructs a [`ServerException`](crate::error::ServerException) + pub fn build(self) -> crate::error::ServerException { + crate::error::ServerException { message: self.message, } } } } -impl ServerError { - /// Creates a new builder-style object to manufacture [`ServerError`](crate::error::ServerError) - pub fn builder() -> crate::error::server_error::Builder { - crate::error::server_error::Builder::default() +impl ServerException { + /// Creates a new builder-style object to manufacture [`ServerException`](crate::error::ServerException) + pub fn builder() -> crate::error::server_exception::Builder { + crate::error::server_exception::Builder::default() } } ///

    These errors are usually caused by a client action, such as using an action or resource on behalf of a user that /// doesn't have permissions to use the action or resource, or specifying an identifier that's not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClientError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClientException { pub message: std::option::Option, } -impl std::fmt::Debug for ClientError { +impl std::fmt::Debug for ClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClientError"); + let mut formatter = f.debug_struct("ClientException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClientError { +impl ClientException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClientError { +impl std::fmt::Display for ClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ClientError [ClientException]")?; + write!(f, "ClientException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ClientError {} -/// See [`ClientError`](crate::error::ClientError) -pub mod client_error { - /// A builder for [`ClientError`](crate::error::ClientError) +impl std::error::Error for ClientException {} +/// See [`ClientException`](crate::error::ClientException) +pub mod client_exception { + /// A builder for [`ClientException`](crate::error::ClientException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1729,17 +1743,17 @@ pub mod client_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClientError`](crate::error::ClientError) - pub fn build(self) -> crate::error::ClientError { - crate::error::ClientError { + /// Consumes the builder and constructs a [`ClientException`](crate::error::ClientException) + pub fn build(self) -> crate::error::ClientException { + crate::error::ClientException { message: self.message, } } } } -impl ClientError { - /// Creates a new builder-style object to manufacture [`ClientError`](crate::error::ClientError) - pub fn builder() -> crate::error::client_error::Builder { - crate::error::client_error::Builder::default() +impl ClientException { + /// Creates a new builder-style object to manufacture [`ClientException`](crate::error::ClientException) + pub fn builder() -> crate::error::client_exception::Builder { + crate::error::client_exception::Builder::default() } } diff --git a/sdk/batch/src/error_meta.rs b/sdk/batch/src/error_meta.rs index 2fd41dd29757..cddb7d96b51f 100644 --- a/sdk/batch/src/error_meta.rs +++ b/sdk/batch/src/error_meta.rs @@ -2,15 +2,15 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ClientError(inner) => inner.fmt(f), - Error::ServerError(inner) => inner.fmt(f), + Error::ClientException(inner) => inner.fmt(f), + Error::ServerException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -19,8 +19,12 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelJobErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::CancelJobErrorKind::ServerError(inner) => Error::ServerError(inner), + crate::error::CancelJobErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::CancelJobErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } crate::error::CancelJobErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -33,11 +37,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateComputeEnvironmentErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::CreateComputeEnvironmentErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::CreateComputeEnvironmentErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::CreateComputeEnvironmentErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::CreateComputeEnvironmentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -51,11 +55,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateJobQueueErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::CreateJobQueueErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::CreateJobQueueErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::CreateJobQueueErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::CreateJobQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -69,11 +73,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteComputeEnvironmentErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteComputeEnvironmentErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteComputeEnvironmentErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteComputeEnvironmentErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeleteComputeEnvironmentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -87,11 +91,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteJobQueueErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteJobQueueErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteJobQueueErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteJobQueueErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeleteJobQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -105,11 +109,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterJobDefinitionErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeregisterJobDefinitionErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeregisterJobDefinitionErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeregisterJobDefinitionErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeregisterJobDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -125,11 +129,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeComputeEnvironmentsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeComputeEnvironmentsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeComputeEnvironmentsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeComputeEnvironmentsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeComputeEnvironmentsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -143,11 +147,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeJobDefinitionsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeJobDefinitionsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeJobDefinitionsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeJobDefinitionsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeJobDefinitionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -161,11 +165,11 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeJobQueuesErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeJobQueuesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeJobQueuesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeJobQueuesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeJobQueuesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -179,11 +183,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeJobsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeJobsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeJobsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeJobsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeJobsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -195,8 +199,12 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListJobsErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::ListJobsErrorKind::ServerError(inner) => Error::ServerError(inner), + crate::error::ListJobsErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListJobsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } crate::error::ListJobsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -207,11 +215,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListTagsForResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListTagsForResourceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListTagsForResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -225,11 +233,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterJobDefinitionErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::RegisterJobDefinitionErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::RegisterJobDefinitionErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::RegisterJobDefinitionErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::RegisterJobDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -243,8 +251,12 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SubmitJobErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::SubmitJobErrorKind::ServerError(inner) => Error::ServerError(inner), + crate::error::SubmitJobErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::SubmitJobErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } crate::error::SubmitJobErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -255,8 +267,12 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::TagResourceErrorKind::ServerError(inner) => Error::ServerError(inner), + crate::error::TagResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::TagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -267,11 +283,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TerminateJobErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::TerminateJobErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::TerminateJobErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::TerminateJobErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::TerminateJobErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -283,11 +299,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UntagResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UntagResourceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UntagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -301,11 +317,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateComputeEnvironmentErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateComputeEnvironmentErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateComputeEnvironmentErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateComputeEnvironmentErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateComputeEnvironmentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -319,11 +335,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateJobQueueErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateJobQueueErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateJobQueueErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateJobQueueErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateJobQueueErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/batch/src/input.rs b/sdk/batch/src/input.rs index 68caaeab7f22..69bb03f21c1b 100644 --- a/sdk/batch/src/input.rs +++ b/sdk/batch/src/input.rs @@ -100,8 +100,9 @@ impl CancelJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/canceljob").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/canceljob").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -109,7 +110,7 @@ impl CancelJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -333,8 +334,9 @@ impl CreateComputeEnvironmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/createcomputeenvironment").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/createcomputeenvironment").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -342,7 +344,7 @@ impl CreateComputeEnvironmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -536,8 +538,9 @@ impl CreateJobQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/createjobqueue").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/createjobqueue").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -545,7 +548,7 @@ impl CreateJobQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -669,8 +672,9 @@ impl DeleteComputeEnvironmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/deletecomputeenvironment").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/deletecomputeenvironment").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -678,7 +682,7 @@ impl DeleteComputeEnvironmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -797,8 +801,9 @@ impl DeleteJobQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/deletejobqueue").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/deletejobqueue").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -806,7 +811,7 @@ impl DeleteJobQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -930,8 +935,9 @@ impl DeregisterJobDefinitionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/deregisterjobdefinition").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/deregisterjobdefinition").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -939,7 +945,7 @@ impl DeregisterJobDefinitionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1100,8 +1106,9 @@ impl DescribeComputeEnvironmentsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/describecomputeenvironments").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/describecomputeenvironments").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1109,7 +1116,7 @@ impl DescribeComputeEnvironmentsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1293,8 +1300,9 @@ impl DescribeJobDefinitionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/describejobdefinitions").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/describejobdefinitions").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1302,7 +1310,7 @@ impl DescribeJobDefinitionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1460,8 +1468,9 @@ impl DescribeJobQueuesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/describejobqueues").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/describejobqueues").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1469,7 +1478,7 @@ impl DescribeJobQueuesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1589,8 +1598,9 @@ impl DescribeJobsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/describejobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/describejobs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1598,7 +1608,7 @@ impl DescribeJobsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1787,8 +1797,9 @@ impl ListJobsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/listjobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/listjobs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1796,7 +1807,7 @@ impl ListJobsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1849,7 +1860,7 @@ pub mod list_tags_for_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListTagsForResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, }) } } @@ -1914,13 +1925,27 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1928,7 +1953,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2221,8 +2246,9 @@ impl RegisterJobDefinitionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/registerjobdefinition").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/registerjobdefinition").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2230,7 +2256,7 @@ impl RegisterJobDefinitionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2531,8 +2557,9 @@ impl SubmitJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/submitjob").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/submitjob").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2540,7 +2567,7 @@ impl SubmitJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2613,7 +2640,7 @@ pub mod tag_resource_input { ) -> std::result::Result { Ok(crate::input::TagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tags: self.tags, }) } @@ -2682,13 +2709,27 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2696,7 +2737,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2827,8 +2868,9 @@ impl TerminateJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/terminatejob").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/terminatejob").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2836,7 +2878,7 @@ impl TerminateJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2901,7 +2943,7 @@ pub mod untag_resource_input { ) -> std::result::Result { Ok(crate::input::UntagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tag_keys: self.tag_keys, }) } @@ -2967,13 +3009,27 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/tags/{resourceArn}", - resourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2989,7 +3045,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -3174,8 +3230,9 @@ impl UpdateComputeEnvironmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/updatecomputeenvironment").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/updatecomputeenvironment").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3183,7 +3240,7 @@ impl UpdateComputeEnvironmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3350,8 +3407,9 @@ impl UpdateJobQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/updatejobqueue").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/updatejobqueue").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3359,7 +3417,7 @@ impl UpdateJobQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3478,7 +3536,7 @@ impl std::fmt::Debug for UpdateComputeEnvironmentInput { pub struct UntagResourceInput { ///

    The Amazon Resource Name (ARN) of the resource from which to delete tags. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job /// queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

    - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

    The keys of the tags to be removed.

    pub tag_keys: std::option::Option>, } @@ -3516,7 +3574,7 @@ impl std::fmt::Debug for TerminateJobInput { pub struct TagResourceInput { ///

    The Amazon Resource Name (ARN) of the resource that tags are added to. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job /// queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

    - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

    The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of /// a key and an optional value. For more information, see Tagging AWS Resources in AWS General /// Reference.

    @@ -3694,7 +3752,7 @@ impl std::fmt::Debug for RegisterJobDefinitionInput { pub struct ListTagsForResourceInput { ///

    The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job /// queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

    - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, } impl std::fmt::Debug for ListTagsForResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/batch/src/json_deser.rs b/sdk/batch/src/json_deser.rs index dad010430a01..1e66ad0e9d3b 100644 --- a/sdk/batch/src/json_deser.rs +++ b/sdk/batch/src/json_deser.rs @@ -1,254 +1,4787 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn client_exception( +pub fn deser_structure_client_exceptionjson_err( input: &[u8], - mut builder: crate::error::client_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ClientError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::client_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn server_exception( +pub fn deser_structure_server_exceptionjson_err( input: &[u8], - mut builder: crate::error::server_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServerError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::server_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_compute_environment_deser_operation( +pub fn deser_operation_create_compute_environment( input: &[u8], mut builder: crate::output::create_compute_environment_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::CreateComputeEnvironmentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compute_environment_name(parsed_body.compute_environment_name); - builder = builder.set_compute_environment_arn(parsed_body.compute_environment_arn); +) -> Result< + crate::output::create_compute_environment_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "computeEnvironmentArn" => { + builder = builder.set_compute_environment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "computeEnvironmentName" => { + builder = builder.set_compute_environment_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_job_queue_deser_operation( +pub fn deser_operation_create_job_queue( input: &[u8], mut builder: crate::output::create_job_queue_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateJobQueueOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_queue_name(parsed_body.job_queue_name); - builder = builder.set_job_queue_arn(parsed_body.job_queue_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobQueueArn" => { + builder = builder.set_job_queue_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobQueueName" => { + builder = builder.set_job_queue_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_compute_environments_deser_operation( +pub fn deser_operation_describe_compute_environments( input: &[u8], mut builder: crate::output::describe_compute_environments_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_compute_environments_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeComputeEnvironmentsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compute_environments(parsed_body.compute_environments); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "computeEnvironments" => { + builder = builder.set_compute_environments( + crate::json_deser::deser_list_compute_environment_detail_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_job_definitions_deser_operation( +pub fn deser_operation_describe_job_definitions( input: &[u8], mut builder: crate::output::describe_job_definitions_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeJobDefinitionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definitions(parsed_body.job_definitions); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobDefinitions" => { + builder = builder.set_job_definitions( + crate::json_deser::deser_list_job_definition_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_job_queues_deser_operation( +pub fn deser_operation_describe_job_queues( input: &[u8], mut builder: crate::output::describe_job_queues_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeJobQueuesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_queues(parsed_body.job_queues); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobQueues" => { + builder = builder.set_job_queues( + crate::json_deser::deser_list_job_queue_detail_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_jobs_deser_operation( +pub fn deser_operation_describe_jobs( input: &[u8], mut builder: crate::output::describe_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_jobs(parsed_body.jobs); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobs" => { + builder = builder + .set_jobs(crate::json_deser::deser_list_job_detail_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_jobs_deser_operation( +pub fn deser_operation_list_jobs( input: &[u8], mut builder: crate::output::list_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_summary_list(parsed_body.job_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobSummaryList" => { + builder = builder.set_job_summary_list( + crate::json_deser::deser_list_job_summary_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tagris_tags_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_job_definition_deser_operation( +pub fn deser_operation_register_job_definition( input: &[u8], mut builder: crate::output::register_job_definition_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::RegisterJobDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_name(parsed_body.job_definition_name); - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); - builder = builder.set_revision(Some(parsed_body.revision)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "revision" => { + builder = builder.set_revision( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn submit_job_deser_operation( +pub fn deser_operation_submit_job( input: &[u8], mut builder: crate::output::submit_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SubmitJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_arn(parsed_body.job_arn); - builder = builder.set_job_name(parsed_body.job_name); - builder = builder.set_job_id(parsed_body.job_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobArn" => { + builder = builder.set_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobName" => { + builder = builder.set_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_compute_environment_deser_operation( +pub fn deser_operation_update_compute_environment( input: &[u8], mut builder: crate::output::update_compute_environment_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::UpdateComputeEnvironmentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compute_environment_name(parsed_body.compute_environment_name); - builder = builder.set_compute_environment_arn(parsed_body.compute_environment_arn); +) -> Result< + crate::output::update_compute_environment_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "computeEnvironmentArn" => { + builder = builder.set_compute_environment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "computeEnvironmentName" => { + builder = builder.set_compute_environment_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_job_queue_deser_operation( +pub fn deser_operation_update_job_queue( input: &[u8], mut builder: crate::output::update_job_queue_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateJobQueueOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_queue_name(parsed_body.job_queue_name); - builder = builder.set_job_queue_arn(parsed_body.job_queue_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobQueueArn" => { + builder = builder.set_job_queue_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobQueueName" => { + builder = builder.set_job_queue_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compute_environment_detail_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_compute_environment_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_job_definition_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_job_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_job_queue_detail_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_job_queue_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_job_detail_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_job_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_job_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tagris_tags_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compute_environment_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComputeEnvironmentDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "computeEnvironmentName" => { + builder = builder.set_compute_environment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "computeEnvironmentArn" => { + builder = builder.set_compute_environment_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ecsClusterArn" => { + builder = builder.set_ecs_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_tagris_tags_map(tokens)?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CeType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CeState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CeStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "computeResources" => { + builder = builder.set_compute_resources( + crate::json_deser::deser_structure_compute_resource(tokens)?, + ); + } + "serviceRole" => { + builder = builder.set_service_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "revision" => { + builder = builder.set_revision( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters_map(tokens)?, + ); + } + "retryStrategy" => { + builder = builder.set_retry_strategy( + crate::json_deser::deser_structure_retry_strategy(tokens)?, + ); + } + "containerProperties" => { + builder = builder.set_container_properties( + crate::json_deser::deser_structure_container_properties( + tokens, + )?, + ); + } + "timeout" => { + builder = builder.set_timeout( + crate::json_deser::deser_structure_job_timeout(tokens)?, + ); + } + "nodeProperties" => { + builder = builder.set_node_properties( + crate::json_deser::deser_structure_node_properties(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_tagris_tags_map(tokens)?, + ); + } + "propagateTags" => { + builder = builder.set_propagate_tags( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "platformCapabilities" => { + builder = builder.set_platform_capabilities( + crate::json_deser::deser_list_platform_capability_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_queue_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobQueueDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobQueueName" => { + builder = builder.set_job_queue_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobQueueArn" => { + builder = builder.set_job_queue_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JqState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JqStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "computeEnvironmentOrder" => { + builder = builder.set_compute_environment_order( + crate::json_deser::deser_list_compute_environment_orders( + tokens, + )?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_tagris_tags_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobArn" => { + builder = builder.set_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobName" => { + builder = builder.set_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobQueue" => { + builder = builder.set_job_queue( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "attempts" => { + builder = builder.set_attempts( + crate::json_deser::deser_list_attempt_details(tokens)?, + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "retryStrategy" => { + builder = builder.set_retry_strategy( + crate::json_deser::deser_structure_retry_strategy(tokens)?, + ); + } + "startedAt" => { + builder = builder.set_started_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "stoppedAt" => { + builder = builder.set_stopped_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "dependsOn" => { + builder = builder.set_depends_on( + crate::json_deser::deser_list_job_dependency_list(tokens)?, + ); + } + "jobDefinition" => { + builder = builder.set_job_definition( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters_map(tokens)?, + ); + } + "container" => { + builder = builder.set_container( + crate::json_deser::deser_structure_container_detail(tokens)?, + ); + } + "nodeDetails" => { + builder = builder.set_node_details( + crate::json_deser::deser_structure_node_details(tokens)?, + ); + } + "nodeProperties" => { + builder = builder.set_node_properties( + crate::json_deser::deser_structure_node_properties(tokens)?, + ); + } + "arrayProperties" => { + builder = builder.set_array_properties( + crate::json_deser::deser_structure_array_properties_detail( + tokens, + )?, + ); + } + "timeout" => { + builder = builder.set_timeout( + crate::json_deser::deser_structure_job_timeout(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags( + crate::json_deser::deser_map_tagris_tags_map(tokens)?, + ); + } + "propagateTags" => { + builder = builder.set_propagate_tags( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "platformCapabilities" => { + builder = builder.set_platform_capabilities( + crate::json_deser::deser_list_platform_capability_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobArn" => { + builder = builder.set_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "jobName" => { + builder = builder.set_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "startedAt" => { + builder = builder.set_started_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "stoppedAt" => { + builder = builder.set_stopped_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "container" => { + builder = builder.set_container( + crate::json_deser::deser_structure_container_summary(tokens)?, + ); + } + "arrayProperties" => { + builder = builder.set_array_properties( + crate::json_deser::deser_structure_array_properties_summary( + tokens, + )?, + ); + } + "nodeProperties" => { + builder = builder.set_node_properties( + crate::json_deser::deser_structure_node_properties_summary( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compute_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComputeResource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CrType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "allocationStrategy" => { + builder = builder.set_allocation_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CrAllocationStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "minvCpus" => { + builder = builder.set_minv_cpus( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxvCpus" => { + builder = builder.set_maxv_cpus( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "desiredvCpus" => { + builder = builder.set_desiredv_cpus( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "instanceTypes" => { + builder = builder.set_instance_types( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "imageId" => { + builder = builder.set_image_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "subnets" => { + builder = builder.set_subnets( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "securityGroupIds" => { + builder = builder.set_security_group_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "ec2KeyPair" => { + builder = builder.set_ec2_key_pair( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "instanceRole" => { + builder = builder.set_instance_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = builder + .set_tags(crate::json_deser::deser_map_tags_map(tokens)?); + } + "placementGroup" => { + builder = builder.set_placement_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "bidPercentage" => { + builder = builder.set_bid_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "spotIamFleetRole" => { + builder = builder.set_spot_iam_fleet_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "launchTemplate" => { + builder = builder.set_launch_template( + crate::json_deser::deser_structure_launch_template_specification(tokens)? + ); + } + "ec2Configuration" => { + builder = builder.set_ec2_configuration( + crate::json_deser::deser_list_ec2_configuration_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_parameters_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_retry_strategy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RetryStrategy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attempts" => { + builder = builder.set_attempts( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "evaluateOnExit" => { + builder = builder.set_evaluate_on_exit( + crate::json_deser::deser_list_evaluate_on_exit_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_container_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerProperties::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "vcpus" => { + builder = builder.set_vcpus( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "jobRoleArn" => { + builder = builder.set_job_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "executionRoleArn" => { + builder = builder.set_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "volumes" => { + builder = builder + .set_volumes(crate::json_deser::deser_list_volumes(tokens)?); + } + "environment" => { + builder = builder.set_environment( + crate::json_deser::deser_list_environment_variables(tokens)?, + ); + } + "mountPoints" => { + builder = builder.set_mount_points( + crate::json_deser::deser_list_mount_points(tokens)?, + ); + } + "readonlyRootFilesystem" => { + builder = builder.set_readonly_root_filesystem( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "privileged" => { + builder = builder.set_privileged( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ulimits" => { + builder = builder + .set_ulimits(crate::json_deser::deser_list_ulimits(tokens)?); + } + "user" => { + builder = builder.set_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "instanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceRequirements" => { + builder = builder.set_resource_requirements( + crate::json_deser::deser_list_resource_requirements(tokens)?, + ); + } + "linuxParameters" => { + builder = builder.set_linux_parameters( + crate::json_deser::deser_structure_linux_parameters(tokens)?, + ); + } + "logConfiguration" => { + builder = builder.set_log_configuration( + crate::json_deser::deser_structure_log_configuration(tokens)?, + ); + } + "secrets" => { + builder = builder.set_secrets( + crate::json_deser::deser_list_secret_list(tokens)?, + ); + } + "networkConfiguration" => { + builder = builder.set_network_configuration( + crate::json_deser::deser_structure_network_configuration( + tokens, + )?, + ); + } + "fargatePlatformConfiguration" => { + builder = builder.set_fargate_platform_configuration( + crate::json_deser::deser_structure_fargate_platform_configuration(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_timeout<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobTimeout::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attemptDurationSeconds" => { + builder = builder.set_attempt_duration_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_node_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodeProperties::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "numNodes" => { + builder = builder.set_num_nodes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "mainNode" => { + builder = builder.set_main_node( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "nodeRangeProperties" => { + builder = builder.set_node_range_properties( + crate::json_deser::deser_list_node_range_properties(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_platform_capability_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PlatformCapability::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compute_environment_orders<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_compute_environment_order(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attempt_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attempt_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_job_dependency_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_job_dependency(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_container_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "vcpus" => { + builder = builder.set_vcpus( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "jobRoleArn" => { + builder = builder.set_job_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "executionRoleArn" => { + builder = builder.set_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "volumes" => { + builder = builder + .set_volumes(crate::json_deser::deser_list_volumes(tokens)?); + } + "environment" => { + builder = builder.set_environment( + crate::json_deser::deser_list_environment_variables(tokens)?, + ); + } + "mountPoints" => { + builder = builder.set_mount_points( + crate::json_deser::deser_list_mount_points(tokens)?, + ); + } + "readonlyRootFilesystem" => { + builder = builder.set_readonly_root_filesystem( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ulimits" => { + builder = builder + .set_ulimits(crate::json_deser::deser_list_ulimits(tokens)?); + } + "privileged" => { + builder = builder.set_privileged( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "user" => { + builder = builder.set_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "exitCode" => { + builder = builder.set_exit_code( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerInstanceArn" => { + builder = builder.set_container_instance_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "logStreamName" => { + builder = builder.set_log_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "instanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkInterfaces" => { + builder = builder.set_network_interfaces( + crate::json_deser::deser_list_network_interface_list(tokens)?, + ); + } + "resourceRequirements" => { + builder = builder.set_resource_requirements( + crate::json_deser::deser_list_resource_requirements(tokens)?, + ); + } + "linuxParameters" => { + builder = builder.set_linux_parameters( + crate::json_deser::deser_structure_linux_parameters(tokens)?, + ); + } + "logConfiguration" => { + builder = builder.set_log_configuration( + crate::json_deser::deser_structure_log_configuration(tokens)?, + ); + } + "secrets" => { + builder = builder.set_secrets( + crate::json_deser::deser_list_secret_list(tokens)?, + ); + } + "networkConfiguration" => { + builder = builder.set_network_configuration( + crate::json_deser::deser_structure_network_configuration( + tokens, + )?, + ); + } + "fargatePlatformConfiguration" => { + builder = builder.set_fargate_platform_configuration( + crate::json_deser::deser_structure_fargate_platform_configuration(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_node_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodeDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nodeIndex" => { + builder = builder.set_node_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "isMainNode" => { + builder = builder.set_is_main_node( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_array_properties_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArrayPropertiesDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "statusSummary" => { + builder = builder.set_status_summary( + crate::json_deser::deser_map_array_job_status_summary(tokens)?, + ); + } + "size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "index" => { + builder = builder.set_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_container_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "exitCode" => { + builder = builder.set_exit_code( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_array_properties_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArrayPropertiesSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "index" => { + builder = builder.set_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_node_properties_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodePropertiesSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "isMainNode" => { + builder = builder.set_is_main_node( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "numNodes" => { + builder = builder.set_num_nodes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "nodeIndex" => { + builder = builder.set_node_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_launch_template_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LaunchTemplateSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "launchTemplateId" => { + builder = builder.set_launch_template_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "launchTemplateName" => { + builder = builder.set_launch_template_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ec2_configuration_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ec2_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_evaluate_on_exit_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_evaluate_on_exit(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_volumes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_volume(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_environment_variables<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_value_pair(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_mount_points<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_mount_point(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ulimits<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ulimit(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_requirements<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_resource_requirement(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_linux_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LinuxParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "devices" => { + builder = builder.set_devices( + crate::json_deser::deser_list_devices_list(tokens)?, + ); + } + "initProcessEnabled" => { + builder = builder.set_init_process_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "sharedMemorySize" => { + builder = builder.set_shared_memory_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tmpfs" => { + builder = builder + .set_tmpfs(crate::json_deser::deser_list_tmpfs_list(tokens)?); + } + "maxSwap" => { + builder = builder.set_max_swap( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "swappiness" => { + builder = builder.set_swappiness( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_log_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logDriver" => { + builder = builder.set_log_driver( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogDriver::from(u.as_ref())) + }) + .transpose()?, + ); + } + "options" => { + builder = builder.set_options( + crate::json_deser::deser_map_log_configuration_options_map( + tokens, + )?, + ); + } + "secretOptions" => { + builder = builder.set_secret_options( + crate::json_deser::deser_list_secret_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secret_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_secret(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_network_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "assignPublicIp" => { + builder = builder.set_assign_public_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AssignPublicIp::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fargate_platform_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FargatePlatformConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_node_range_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_node_range_property(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_compute_environment_order<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComputeEnvironmentOrder::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "order" => { + builder = builder.set_order( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "computeEnvironment" => { + builder = builder.set_compute_environment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attempt_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AttemptDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "container" => { + builder = builder.set_container( + crate::json_deser::deser_structure_attempt_container_detail( + tokens, + )?, + ); + } + "startedAt" => { + builder = builder.set_started_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "stoppedAt" => { + builder = builder.set_stopped_at( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_job_dependency<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JobDependency::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "jobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ArrayJobDependency::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_network_interface_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_network_interface(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_array_job_status_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()); + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ec2_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Ec2Configuration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageType" => { + builder = builder.set_image_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageIdOverride" => { + builder = builder.set_image_id_override( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_evaluate_on_exit<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EvaluateOnExit::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "onStatusReason" => { + builder = builder.set_on_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "onReason" => { + builder = builder.set_on_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "onExitCode" => { + builder = builder.set_on_exit_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "action" => { + builder = builder.set_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::RetryAction::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_volume<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Volume::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "host" => { + builder = builder + .set_host(crate::json_deser::deser_structure_host(tokens)?); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "efsVolumeConfiguration" => { + builder = builder.set_efs_volume_configuration( + crate::json_deser::deser_structure_efs_volume_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_key_value_pair<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeyValuePair::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mount_point<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MountPoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "readOnly" => { + builder = builder.set_read_only( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "sourceVolume" => { + builder = builder.set_source_volume( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ulimit<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Ulimit::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hardLimit" => { + builder = builder.set_hard_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "softLimit" => { + builder = builder.set_soft_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_requirement<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceRequirement::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ResourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_devices_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_device(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tmpfs_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tmpfs(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_log_configuration_options_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_secret<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Secret::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "valueFrom" => { + builder = builder.set_value_from( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_node_range_property<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodeRangeProperty::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "targetNodes" => { + builder = builder.set_target_nodes( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "container" => { + builder = builder.set_container( + crate::json_deser::deser_structure_container_properties( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attempt_container_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AttemptContainerDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstanceArn" => { + builder = builder.set_container_instance_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "exitCode" => { + builder = builder.set_exit_code( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "logStreamName" => { + builder = builder.set_log_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkInterfaces" => { + builder = builder.set_network_interfaces( + crate::json_deser::deser_list_network_interface_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_network_interface<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkInterface::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attachmentId" => { + builder = builder.set_attachment_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ipv6Address" => { + builder = builder.set_ipv6_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "privateIpv4Address" => { + builder = builder.set_private_ipv4_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_host<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Host::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourcePath" => { + builder = builder.set_source_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_efs_volume_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EfsVolumeConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fileSystemId" => { + builder = builder.set_file_system_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "rootDirectory" => { + builder = builder.set_root_directory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "transitEncryption" => { + builder = builder.set_transit_encryption( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EfsTransitEncryption::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "transitEncryptionPort" => { + builder = builder.set_transit_encryption_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "authorizationConfig" => { + builder = builder.set_authorization_config( + crate::json_deser::deser_structure_efs_authorization_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_device<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Device::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hostPath" => { + builder = builder.set_host_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "permissions" => { + builder = builder.set_permissions( + crate::json_deser::deser_list_device_cgroup_permissions( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tmpfs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tmpfs::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "mountOptions" => { + builder = builder.set_mount_options( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_efs_authorization_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EfsAuthorizationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "accessPointId" => { + builder = builder.set_access_point_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "iam" => { + builder = builder.set_iam( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EfsAuthorizationConfigIam::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_device_cgroup_permissions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceCgroupPermission::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/batch/src/json_errors.rs b/sdk/batch/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/batch/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/batch/src/json_ser.rs b/sdk/batch/src/json_ser.rs index 4d637989655a..04db0d9064d5 100644 --- a/sdk/batch/src/json_ser.rs +++ b/sdk/batch/src/json_ser.rs @@ -1191,7 +1191,7 @@ pub fn serialize_structure_host( pub fn serialize_structure_efs_volume_configuration( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::EFSVolumeConfiguration, + input: &crate::model::EfsVolumeConfiguration, ) { if let Some(var_259) = &input.file_system_id { object.key("fileSystemId").string(var_259); @@ -1262,7 +1262,7 @@ pub fn serialize_structure_tmpfs( pub fn serialize_structure_efs_authorization_config( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::EFSAuthorizationConfig, + input: &crate::model::EfsAuthorizationConfig, ) { if let Some(var_273) = &input.access_point_id { object.key("accessPointId").string(var_273); diff --git a/sdk/batch/src/lib.rs b/sdk/batch/src/lib.rs index c29994a9d6cb..4d73c0644d42 100644 --- a/sdk/batch/src/lib.rs +++ b/sdk/batch/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch computing is a common means for //! developers, scientists, and engineers to access large amounts of compute resources. AWS Batch uses the advantages of //! this computing workload to remove the undifferentiated heavy lifting of configuring and managing required @@ -20,7 +21,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -28,13 +28,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/batch/src/model.rs b/sdk/batch/src/model.rs index 89d427d2a4fe..e2ce7cb6c2bb 100644 --- a/sdk/batch/src/model.rs +++ b/sdk/batch/src/model.rs @@ -10,17 +10,13 @@ /// support mixing compute environment architecture types in a single job queue.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComputeEnvironmentOrder { ///

    The order of the compute environment. Compute environments are tried in ascending order. For example, if two /// compute environments are associated with a job queue, the compute environment with a lower order integer /// value is tried for job placement first.

    - #[serde(rename = "order")] - #[serde(default)] pub order: i32, ///

    The Amazon Resource Name (ARN) of the compute environment.

    - #[serde(rename = "computeEnvironment")] - #[serde(default)] pub compute_environment: std::option::Option, } impl std::fmt::Debug for ComputeEnvironmentOrder { @@ -108,7 +104,7 @@ impl std::convert::From<&str> for JqState { impl std::str::FromStr for JqState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JqState::from(s)) } } @@ -126,28 +122,17 @@ impl AsRef for JqState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JqState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing the attributes of a compute environment that can be updated. For more information, see /// Compute Environments in the /// AWS Batch User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComputeResourceUpdate { ///

    The minimum number of Amazon EC2 vCPUs that an environment should maintain.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "minvCpus")] - #[serde(default)] pub minv_cpus: i32, ///

    The maximum number of Amazon EC2 vCPUs that an environment can reach.

    /// @@ -156,29 +141,21 @@ pub struct ComputeResourceUpdate { /// exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among /// those specified in your compute environment.

    ///
    - #[serde(rename = "maxvCpus")] - #[serde(default)] pub maxv_cpus: i32, ///

    The desired number of Amazon EC2 vCPUS in the compute environment.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "desiredvCpus")] - #[serde(default)] pub desiredv_cpus: i32, ///

    The VPC subnets that the compute resources are launched into. Fargate compute resources can contain up to 16 /// subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This /// can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User /// Guide.

    - #[serde(rename = "subnets")] - #[serde(default)] pub subnets: std::option::Option>, ///

    The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is /// required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for /// EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is /// made.

    - #[serde(rename = "securityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, } impl std::fmt::Debug for ComputeResourceUpdate { @@ -317,7 +294,7 @@ impl std::convert::From<&str> for CeState { impl std::str::FromStr for CeState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CeState::from(s)) } } @@ -335,24 +312,13 @@ impl AsRef for CeState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CeState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing a job timeout configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobTimeout { ///

    The time duration in seconds (measured from the job attempt's startedAt timestamp) after which /// AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.

    - #[serde(rename = "attemptDurationSeconds")] - #[serde(default)] pub attempt_duration_seconds: i32, } impl std::fmt::Debug for JobTimeout { @@ -398,18 +364,14 @@ impl JobTimeout { ///

    The retry strategy associated with a job. For more information, see Automated job retries in the AWS Batch User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RetryStrategy { ///

    The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 /// attempts. If the value of attempts is greater than one, the job is retried on failure the same number of /// attempts as the value.

    - #[serde(rename = "attempts")] - #[serde(default)] pub attempts: i32, ///

    Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this /// parameter is specified, then the attempts parameter must also be specified.

    - #[serde(rename = "evaluateOnExit")] - #[serde(default)] pub evaluate_on_exit: std::option::Option>, } impl std::fmt::Debug for RetryStrategy { @@ -474,33 +436,25 @@ impl RetryStrategy { ///

    Specifies a set of conditions to be met, and an action to take (RETRY or EXIT) if all /// conditions are met.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EvaluateOnExit { ///

    Contains a glob pattern to match against the StatusReason returned for a job. The pattern can be up /// to 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces /// or tabs). /// It can optionally end with an /// asterisk (*) so that only the start of the string needs to be an exact match.

    - #[serde(rename = "onStatusReason")] - #[serde(default)] pub on_status_reason: std::option::Option, ///

    Contains a glob pattern to match against the Reason returned for a job. The pattern can be up to /// 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces and /// tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact /// match.

    - #[serde(rename = "onReason")] - #[serde(default)] pub on_reason: std::option::Option, ///

    Contains a glob pattern to match against the decimal representation of the ExitCode returned for a /// job. The pattern can be up to 512 characters long, can contain only numbers, and can optionally end with an asterisk /// (*) so that only the start of the string needs to be an exact match.

    - #[serde(rename = "onExitCode")] - #[serde(default)] pub on_exit_code: std::option::Option, ///

    Specifies the action to take if all of the specified conditions (onStatusReason, /// onReason, and onExitCode) are met. The values aren't case sensitive.

    - #[serde(rename = "action")] - #[serde(default)] pub action: std::option::Option, } impl std::fmt::Debug for EvaluateOnExit { @@ -620,7 +574,7 @@ impl std::convert::From<&str> for RetryAction { impl std::str::FromStr for RetryAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RetryAction::from(s)) } } @@ -638,15 +592,6 @@ impl AsRef for RetryAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RetryAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Object representing any node overrides to a job definition that's used in a SubmitJob API /// operation.

    @@ -655,7 +600,7 @@ impl<'de> serde::Deserialize<'de> for RetryAction { /// containerOverrides instead.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodeOverrides { ///

    The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are /// specified in the job definition. To use this override:

    @@ -673,12 +618,8 @@ pub struct NodeOverrides { /// override.

    /// /// - #[serde(rename = "numNodes")] - #[serde(default)] pub num_nodes: i32, ///

    The node property overrides for the job.

    - #[serde(rename = "nodePropertyOverrides")] - #[serde(default)] pub node_property_overrides: std::option::Option>, } @@ -760,18 +701,14 @@ impl NodeOverrides { ///

    Object representing any node overrides to a job definition that's used in a SubmitJob API /// operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodePropertyOverride { ///

    The range of nodes, using node index values, that's used to override. A range of 0:3 indicates /// nodes with index values of 0 through 3. If the starting range value is omitted /// (:n), then 0 is used to start the range. If the ending range value is omitted /// (n:), then the highest possible node index is used to end the range.

    - #[serde(rename = "targetNodes")] - #[serde(default)] pub target_nodes: std::option::Option, ///

    The overrides that should be sent to a node range.

    - #[serde(rename = "containerOverrides")] - #[serde(default)] pub container_overrides: std::option::Option, } impl std::fmt::Debug for NodePropertyOverride { @@ -834,7 +771,7 @@ impl NodePropertyOverride { ///

    The overrides that should be sent to a container.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerOverrides { ///

    This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus /// parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the @@ -850,29 +787,21 @@ pub struct ContainerOverrides { /// that run on Fargate resources, you must specify the vCPU requirement for the job using /// resourceRequirements.

    /// - #[serde(rename = "vcpus")] - #[serde(default)] pub vcpus: i32, ///

    This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the /// memory parameter set in the job definition, but doesn't override any memory requirement specified in /// the ResourceRequirement structure in the job definition.

    ///

    This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate /// resources. For these resources, use resourceRequirement instead.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: i32, ///

    The command to send to the container that overrides the default command from the Docker image or the job /// definition.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The instance type to use for a multi-node parallel job.

    /// ///

    This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and /// shouldn't be provided.

    ///
    - #[serde(rename = "instanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    The environment variables to send to the container. You can add new environment variables, which are added to /// the container at launch, or you can override the existing environment variables from the Docker image or the job @@ -881,13 +810,9 @@ pub struct ContainerOverrides { ///

    Environment variables must not start with AWS_BATCH; this naming /// convention is reserved for variables that are set by the AWS Batch service.

    /// - #[serde(rename = "environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    The type and amount of resources to assign to a container. This overrides the settings in the job definition. /// The supported resources include GPU, MEMORY, and VCPU.

    - #[serde(rename = "resourceRequirements")] - #[serde(default)] pub resource_requirements: std::option::Option>, } @@ -1034,7 +959,7 @@ impl ContainerOverrides { ///

    The type and amount of a resource to assign to a container. The supported resources include GPU, /// MEMORY, and VCPU.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceRequirement { ///

    The quantity of the specified resource to reserve for the container. The values vary based on the /// type specified.

    @@ -1152,13 +1077,9 @@ pub struct ResourceRequirement { /// /// /// - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The type of resource to assign to a container. The supported resources include GPU, /// MEMORY, and VCPU.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for ResourceRequirement { @@ -1359,7 +1280,7 @@ impl std::convert::From<&str> for ResourceType { impl std::str::FromStr for ResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceType::from(s)) } } @@ -1378,28 +1299,15 @@ impl AsRef for ResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A key-value pair object.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeyValuePair { ///

    The name of the key-value pair. For environment variables, this is the name of the environment variable.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The value of the key-value pair. For environment variables, this is the value of the environment /// variable.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for KeyValuePair { @@ -1457,15 +1365,11 @@ impl KeyValuePair { ///

    An object representing an AWS Batch job dependency.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobDependency { ///

    The job ID of the AWS Batch job associated with this dependency.

    - #[serde(rename = "jobId")] - #[serde(default)] pub job_id: std::option::Option, ///

    The type of the job dependency.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for JobDependency { @@ -1551,7 +1455,7 @@ impl std::convert::From<&str> for ArrayJobDependency { impl std::str::FromStr for ArrayJobDependency { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ArrayJobDependency::from(s)) } } @@ -1569,23 +1473,12 @@ impl AsRef for ArrayJobDependency { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ArrayJobDependency { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing an AWS Batch array job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArrayProperties { ///

    The size of the array job.

    - #[serde(rename = "size")] - #[serde(default)] pub size: i32, } impl std::fmt::Debug for ArrayProperties { @@ -1656,7 +1549,7 @@ impl std::convert::From<&str> for PlatformCapability { impl std::str::FromStr for PlatformCapability { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlatformCapability::from(s)) } } @@ -1674,32 +1567,17 @@ impl AsRef for PlatformCapability { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlatformCapability { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing the node properties of a multi-node parallel job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodeProperties { ///

    The number of nodes associated with a multi-node parallel job.

    - #[serde(rename = "numNodes")] - #[serde(default)] pub num_nodes: i32, ///

    Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer /// than the number of nodes.

    - #[serde(rename = "mainNode")] - #[serde(default)] pub main_node: i32, ///

    A list of node ranges and their properties associated with a multi-node parallel job.

    - #[serde(rename = "nodeRangeProperties")] - #[serde(default)] pub node_range_properties: std::option::Option>, } impl std::fmt::Debug for NodeProperties { @@ -1777,7 +1655,7 @@ impl NodeProperties { ///

    An object representing the properties of the node range for a multi-node parallel job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodeRangeProperty { ///

    The range of nodes, using node index values. A range of 0:3 indicates nodes with index values of /// 0 through 3. If the starting range value is omitted (:n), then 0 @@ -1785,12 +1663,8 @@ pub struct NodeRangeProperty { /// index is used to end the range. Your accumulative node ranges must account for all nodes (0:n). You can /// nest node ranges, for example 0:10 and 4:5, in which case the 4:5 range /// properties override the 0:10 properties.

    - #[serde(rename = "targetNodes")] - #[serde(default)] pub target_nodes: std::option::Option, ///

    The container details for the node range.

    - #[serde(rename = "container")] - #[serde(default)] pub container: std::option::Option, } impl std::fmt::Debug for NodeRangeProperty { @@ -1856,7 +1730,7 @@ impl NodeRangeProperty { ///

    Container properties are used in job definitions to describe the container that's launched as part of a /// job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerProperties { ///

    The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker /// Hub registry are available by default. Other repositories are specified with @@ -1889,8 +1763,6 @@ pub struct ContainerProperties { /// quay.io/assemblyline/ubuntu).

    /// /// - #[serde(rename = "image")] - #[serde(default)] pub image: std::option::Option, ///

    The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to /// CpuShares in the Create a container section of the Docker Remote API and the @@ -1904,8 +1776,6 @@ pub struct ContainerProperties { /// run on Fargate resources, you must specify the vCPU requirement for the job using /// resourceRequirements.

    /// - #[serde(rename = "vcpus")] - #[serde(default)] pub vcpus: i32, ///

    This parameter indicates the memory hard limit (in MiB) for a container. If your container attempts to exceed /// the specified number, it is terminated. You must specify at least 4 MiB of memory for a job using this parameter. The @@ -1921,29 +1791,19 @@ pub struct ContainerProperties { /// particular instance type, see Memory /// Management in the AWS Batch User Guide.

    /// - #[serde(rename = "memory")] - #[serde(default)] pub memory: i32, ///

    The command that's passed to the container. This parameter maps to Cmd in the /// Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see /// IAM Roles for Tasks /// in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "jobRoleArn")] - #[serde(default)] pub job_role_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must /// provide an execution role. For more information, see AWS Batch execution IAM role in the /// AWS Batch User Guide.

    - #[serde(rename = "executionRoleArn")] - #[serde(default)] pub execution_role_arn: std::option::Option, ///

    A list of data volumes used in a job.

    - #[serde(rename = "volumes")] - #[serde(default)] pub volumes: std::option::Option>, ///

    The environment variables to pass to a container. This parameter maps to Env in the /// Create a container section of the Docker Remote API and the --env option to docker run.

    @@ -1955,19 +1815,13 @@ pub struct ContainerProperties { ///

    Environment variables must not start with AWS_BATCH; this naming /// convention is reserved for variables that are set by the AWS Batch service.

    /// - #[serde(rename = "environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    The mount points for data volumes in your container. This parameter maps to Volumes in the /// Create a container section of the Docker Remote API and the --volume option to docker run.

    - #[serde(rename = "mountPoints")] - #[serde(default)] pub mount_points: std::option::Option>, ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter /// maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and /// the --read-only option to docker run.

    - #[serde(rename = "readonlyRootFilesystem")] - #[serde(default)] pub readonly_root_filesystem: bool, ///

    When this parameter is true, the container is given elevated permissions on the host container instance (similar /// to the root user). This parameter maps to Privileged in the @@ -1977,21 +1831,15 @@ pub struct ContainerProperties { ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified /// as false.

    /// - #[serde(rename = "privileged")] - #[serde(default)] pub privileged: bool, ///

    A list of ulimits to set in the container. This parameter maps to Ulimits in the /// Create a container section of the Docker Remote API and the --ulimit option to docker run.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    ///
    - #[serde(rename = "ulimits")] - #[serde(default)] pub ulimits: std::option::Option>, ///

    The user name to use inside the container. This parameter maps to User in the /// Create a container section of the Docker Remote API and the --user option to docker run.

    - #[serde(rename = "user")] - #[serde(default)] pub user: std::option::Option, ///

    The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use /// the same instance type.

    @@ -1999,18 +1847,12 @@ pub struct ContainerProperties { ///

    This parameter isn't applicable to single-node container jobs or for jobs that run on Fargate resources and /// shouldn't be provided.

    /// - #[serde(rename = "instanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    The type and amount of resources to assign to a container. The supported resources include GPU, /// MEMORY, and VCPU.

    - #[serde(rename = "resourceRequirements")] - #[serde(default)] pub resource_requirements: std::option::Option>, ///

    Linux-specific modifications that are applied to the container, such as details for device mappings.

    - #[serde(rename = "linuxParameters")] - #[serde(default)] pub linux_parameters: std::option::Option, ///

    The log configuration specification for the container.

    ///

    This parameter maps to LogConfig in the Create a container section of the @@ -2034,23 +1876,15 @@ pub struct ContainerProperties { /// instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the /// Amazon Elastic Container Service Developer Guide.

    /// - #[serde(rename = "logConfiguration")] - #[serde(default)] pub log_configuration: std::option::Option, ///

    The secrets for the container. For more information, see Specifying sensitive data in the /// AWS Batch User Guide.

    - #[serde(rename = "secrets")] - #[serde(default)] pub secrets: std::option::Option>, ///

    The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not /// specify this parameter.

    - #[serde(rename = "networkConfiguration")] - #[serde(default)] pub network_configuration: std::option::Option, ///

    The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not /// specify this parameter.

    - #[serde(rename = "fargatePlatformConfiguration")] - #[serde(default)] pub fargate_platform_configuration: std::option::Option, } @@ -2478,15 +2312,13 @@ impl ContainerProperties { ///

    The platform configuration for jobs running on Fargate resources. For jobs that run on EC2 resources, you /// shouldn't specify this parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FargatePlatformConfiguration { ///

    The AWS Fargate platform version where the jobs are running. A platform version is specified only for jobs /// running on Fargate resources. If one isn't specified, the LATEST platform version is used by default. /// This uses a recent, approved version of the AWS Fargate platform for compute resources. For more information, see /// AWS Fargate platform /// versions in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "platformVersion")] - #[serde(default)] pub platform_version: std::option::Option, } impl std::fmt::Debug for FargatePlatformConfiguration { @@ -2539,14 +2371,12 @@ impl FargatePlatformConfiguration { ///

    The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not /// specify this parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkConfiguration { ///

    Indicates whether the job should have a public IP address. For a job running on Fargate resources in a private /// subnet to send outbound traffic to the internet (for example, in order to pull container images), the private subnet /// requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking. The /// default value is "DISABLED".

    - #[serde(rename = "assignPublicIp")] - #[serde(default)] pub assign_public_ip: std::option::Option, } impl std::fmt::Debug for NetworkConfiguration { @@ -2623,7 +2453,7 @@ impl std::convert::From<&str> for AssignPublicIp { impl std::str::FromStr for AssignPublicIp { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssignPublicIp::from(s)) } } @@ -2641,15 +2471,6 @@ impl AsRef for AssignPublicIp { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssignPublicIp { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing the secret to expose to your container. Secrets can be exposed to a container in the /// following ways:

    @@ -2666,11 +2487,9 @@ impl<'de> serde::Deserialize<'de> for AssignPublicIp { ///

    For more information, see Specifying /// sensitive data in the AWS Batch User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Secret { ///

    The name of the secret.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the /// full ARN of the parameter in the AWS Systems Manager Parameter Store.

    @@ -2679,8 +2498,6 @@ pub struct Secret { /// either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must /// be specified.

    /// - #[serde(rename = "valueFrom")] - #[serde(default)] pub value_from: std::option::Option, } impl std::fmt::Debug for Secret { @@ -2743,7 +2560,7 @@ impl Secret { ///

    Log configuration options to send to a custom log driver for the container.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LogConfiguration { ///

    The log driver to use for the container. The valid values listed for this parameter are log drivers that the /// Amazon ECS container agent can communicate with by default.

    @@ -2803,21 +2620,15 @@ pub struct LogConfiguration { /// container instance. To check the Docker Remote API version on your container instance, log into your /// container instance and run the following command: sudo docker version | grep "Server API version" ///

    - #[serde(rename = "logDriver")] - #[serde(default)] pub log_driver: std::option::Option, ///

    The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your /// container instance. To check the Docker Remote API version on your container instance, log into your /// container instance and run the following command: sudo docker version | grep "Server API version" ///

    - #[serde(rename = "options")] - #[serde(default)] pub options: std::option::Option>, ///

    The secrets to pass to the log configuration. For more information, see Specifying Sensitive Data in the /// AWS Batch User Guide.

    - #[serde(rename = "secretOptions")] - #[serde(default)] pub secret_options: std::option::Option>, } impl std::fmt::Debug for LogConfiguration { @@ -2998,7 +2809,7 @@ impl std::convert::From<&str> for LogDriver { impl std::str::FromStr for LogDriver { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LogDriver::from(s)) } } @@ -3021,27 +2832,16 @@ impl AsRef for LogDriver { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LogDriver { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Linux-specific modifications that are applied to the container, such as details for device mappings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LinuxParameters { ///

    Any host devices to expose to the container. This parameter maps to Devices in the /// Create a container section of the Docker Remote API and the --device option to docker run.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    ///
    - #[serde(rename = "devices")] - #[serde(default)] pub devices: std::option::Option>, ///

    If true, run an init process inside the container that forwards signals and reaps processes. This /// parameter maps to the --init option to docker run. @@ -3049,24 +2849,18 @@ pub struct LinuxParameters { /// container instance. To check the Docker Remote API version on your container instance, log into your /// container instance and run the following command: sudo docker version | grep "Server API version" ///

    - #[serde(rename = "initProcessEnabled")] - #[serde(default)] pub init_process_enabled: bool, ///

    The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the /// --shm-size option to docker run.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    ///
    - #[serde(rename = "sharedMemorySize")] - #[serde(default)] pub shared_memory_size: i32, ///

    The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the /// --tmpfs option to docker run.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    ///
    - #[serde(rename = "tmpfs")] - #[serde(default)] pub tmpfs: std::option::Option>, ///

    The total amount of swap memory (in MiB) a container can use. This parameter is translated to the /// --memory-swap option to docker run where the value is the @@ -3079,8 +2873,6 @@ pub struct LinuxParameters { /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    /// - #[serde(rename = "maxSwap")] - #[serde(default)] pub max_swap: i32, ///

    This allows you to tune a container's memory swappiness behavior. A swappiness value of /// 0 causes swapping not to happen unless absolutely necessary. A swappiness value of @@ -3113,8 +2905,6 @@ pub struct LinuxParameters { /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    /// - #[serde(rename = "swappiness")] - #[serde(default)] pub swappiness: i32, } impl std::fmt::Debug for LinuxParameters { @@ -3279,15 +3069,11 @@ impl LinuxParameters { ///

    This object isn't applicable to jobs running on Fargate resources.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tmpfs { ///

    The absolute file path in the container where the tmpfs volume is mounted.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    The size (in MiB) of the tmpfs volume.

    - #[serde(rename = "size")] - #[serde(default)] pub size: i32, ///

    The list of tmpfs volume mount options.

    ///

    Valid values: "defaults" | "ro" | "rw" | "suid" | @@ -3298,8 +3084,6 @@ pub struct Tmpfs { /// "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | /// "strictatime" | "nostrictatime" | "mode" | "uid" | /// "gid" | "nr_inodes" | "nr_blocks" | "mpol"

    - #[serde(rename = "mountOptions")] - #[serde(default)] pub mount_options: std::option::Option>, } impl std::fmt::Debug for Tmpfs { @@ -3378,21 +3162,15 @@ impl Tmpfs { ///

    This object isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Device { ///

    The path for the device on the host container instance.

    - #[serde(rename = "hostPath")] - #[serde(default)] pub host_path: std::option::Option, ///

    The path inside the container used to expose the host device. By default, the hostPath value is /// used.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    The explicit permissions to provide to the container for the device. By default, the container has permissions /// for read, write, and mknod for the device.

    - #[serde(rename = "permissions")] - #[serde(default)] pub permissions: std::option::Option>, } impl std::fmt::Debug for Device { @@ -3501,7 +3279,7 @@ impl std::convert::From<&str> for DeviceCgroupPermission { impl std::str::FromStr for DeviceCgroupPermission { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeviceCgroupPermission::from(s)) } } @@ -3520,34 +3298,19 @@ impl AsRef for DeviceCgroupPermission { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeviceCgroupPermission { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The ulimit settings to pass to the container.

    /// ///

    This object isn't applicable to jobs running on Fargate resources.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Ulimit { ///

    The hard limit for the ulimit type.

    - #[serde(rename = "hardLimit")] - #[serde(default)] pub hard_limit: i32, ///

    The type of the ulimit.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The soft limit for the ulimit type.

    - #[serde(rename = "softLimit")] - #[serde(default)] pub soft_limit: i32, } impl std::fmt::Debug for Ulimit { @@ -3618,20 +3381,14 @@ impl Ulimit { /// Volumes in the Create a /// container section of the Docker Remote API and the --volume option to docker run.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MountPoint { ///

    The path on the container where the host volume is mounted.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    If this value is true, the container has read-only access to the volume. Otherwise, the container /// can write to the volume. The default value is false.

    - #[serde(rename = "readOnly")] - #[serde(default)] pub read_only: bool, ///

    The name of the volume to mount.

    - #[serde(rename = "sourceVolume")] - #[serde(default)] pub source_volume: std::option::Option, } impl std::fmt::Debug for MountPoint { @@ -3707,7 +3464,7 @@ impl MountPoint { ///

    A data volume used in a job's container properties.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Volume { ///

    The contents of the host parameter determine whether your data volume persists on the host /// container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path @@ -3716,20 +3473,14 @@ pub struct Volume { /// ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

    /// - #[serde(rename = "host")] - #[serde(default)] pub host: std::option::Option, ///

    The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are /// allowed. This name is referenced in the sourceVolume /// parameter of container definition mountPoints.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs running on /// Fargate resources must specify a platformVersion of at least 1.4.0.

    - #[serde(rename = "efsVolumeConfiguration")] - #[serde(default)] - pub efs_volume_configuration: std::option::Option, + pub efs_volume_configuration: std::option::Option, } impl std::fmt::Debug for Volume { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3749,7 +3500,7 @@ pub mod volume { pub(crate) host: std::option::Option, pub(crate) name: std::option::Option, pub(crate) efs_volume_configuration: - std::option::Option, + std::option::Option, } impl Builder { ///

    The contents of the host parameter determine whether your data volume persists on the host @@ -3782,14 +3533,14 @@ pub mod volume { /// Fargate resources must specify a platformVersion of at least 1.4.0.

    pub fn efs_volume_configuration( mut self, - input: crate::model::EFSVolumeConfiguration, + input: crate::model::EfsVolumeConfiguration, ) -> Self { self.efs_volume_configuration = Some(input); self } pub fn set_efs_volume_configuration( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.efs_volume_configuration = input; self @@ -3815,11 +3566,9 @@ impl Volume { /// see Amazon EFS Volumes in the /// AWS Batch User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSVolumeConfiguration { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsVolumeConfiguration { ///

    The Amazon EFS file system ID to use.

    - #[serde(rename = "fileSystemId")] - #[serde(default)] pub file_system_id: std::option::Option, ///

    The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is /// omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting @@ -3828,31 +3577,23 @@ pub struct EFSVolumeConfiguration { ///

    If an EFS access point is specified in the authorizationConfig, the root directory parameter must /// either be omitted or set to / which will enforce the path set on the Amazon EFS access point.

    /// - #[serde(rename = "rootDirectory")] - #[serde(default)] pub root_directory: std::option::Option, ///

    Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. /// Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default /// value of DISABLED is used. For more information, see Encrypting data in transit in the /// Amazon Elastic File System User Guide.

    - #[serde(rename = "transitEncryption")] - #[serde(default)] pub transit_encryption: std::option::Option, ///

    The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a /// transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more /// information, see EFS Mount Helper in /// the Amazon Elastic File System User Guide.

    - #[serde(rename = "transitEncryptionPort")] - #[serde(default)] pub transit_encryption_port: i32, ///

    The authorization configuration details for the Amazon EFS file system.

    - #[serde(rename = "authorizationConfig")] - #[serde(default)] - pub authorization_config: std::option::Option, + pub authorization_config: std::option::Option, } -impl std::fmt::Debug for EFSVolumeConfiguration { +impl std::fmt::Debug for EfsVolumeConfiguration { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSVolumeConfiguration"); + let mut formatter = f.debug_struct("EfsVolumeConfiguration"); formatter.field("file_system_id", &self.file_system_id); formatter.field("root_directory", &self.root_directory); formatter.field("transit_encryption", &self.transit_encryption); @@ -3861,9 +3602,9 @@ impl std::fmt::Debug for EFSVolumeConfiguration { formatter.finish() } } -/// See [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) +/// See [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) pub mod efs_volume_configuration { - /// A builder for [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) + /// A builder for [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3871,7 +3612,7 @@ pub mod efs_volume_configuration { pub(crate) root_directory: std::option::Option, pub(crate) transit_encryption: std::option::Option, pub(crate) transit_encryption_port: std::option::Option, - pub(crate) authorization_config: std::option::Option, + pub(crate) authorization_config: std::option::Option, } impl Builder { ///

    The Amazon EFS file system ID to use.

    @@ -3932,20 +3673,20 @@ pub mod efs_volume_configuration { self } ///

    The authorization configuration details for the Amazon EFS file system.

    - pub fn authorization_config(mut self, input: crate::model::EFSAuthorizationConfig) -> Self { + pub fn authorization_config(mut self, input: crate::model::EfsAuthorizationConfig) -> Self { self.authorization_config = Some(input); self } pub fn set_authorization_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.authorization_config = input; self } - /// Consumes the builder and constructs a [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) - pub fn build(self) -> crate::model::EFSVolumeConfiguration { - crate::model::EFSVolumeConfiguration { + /// Consumes the builder and constructs a [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) + pub fn build(self) -> crate::model::EfsVolumeConfiguration { + crate::model::EfsVolumeConfiguration { file_system_id: self.file_system_id, root_directory: self.root_directory, transit_encryption: self.transit_encryption, @@ -3955,8 +3696,8 @@ pub mod efs_volume_configuration { } } } -impl EFSVolumeConfiguration { - /// Creates a new builder-style object to manufacture [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) +impl EfsVolumeConfiguration { + /// Creates a new builder-style object to manufacture [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) pub fn builder() -> crate::model::efs_volume_configuration::Builder { crate::model::efs_volume_configuration::Builder::default() } @@ -3964,36 +3705,32 @@ impl EFSVolumeConfiguration { ///

    The authorization configuration details for the Amazon EFS file system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSAuthorizationConfig { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsAuthorizationConfig { ///

    The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in the /// EFSVolumeConfiguration must either be omitted or set to / which will enforce the path set /// on the EFS access point. If an access point is used, transit encryption must be enabled in the /// EFSVolumeConfiguration. For more information, see Working with Amazon EFS Access Points in the /// Amazon Elastic File System User Guide.

    - #[serde(rename = "accessPointId")] - #[serde(default)] pub access_point_id: std::option::Option, ///

    Whether or not to use the AWS Batch execution IAM role defined in a job definition when mounting the Amazon EFS file /// system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this parameter /// is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS Access Points in the /// AWS Batch User Guide. EFS IAM authorization requires that TransitEncryption be /// ENABLED and that a JobRoleArn is specified.

    - #[serde(rename = "iam")] - #[serde(default)] pub iam: std::option::Option, } -impl std::fmt::Debug for EFSAuthorizationConfig { +impl std::fmt::Debug for EfsAuthorizationConfig { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSAuthorizationConfig"); + let mut formatter = f.debug_struct("EfsAuthorizationConfig"); formatter.field("access_point_id", &self.access_point_id); formatter.field("iam", &self.iam); formatter.finish() } } -/// See [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) +/// See [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) pub mod efs_authorization_config { - /// A builder for [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) + /// A builder for [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4033,17 +3770,17 @@ pub mod efs_authorization_config { self.iam = input; self } - /// Consumes the builder and constructs a [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) - pub fn build(self) -> crate::model::EFSAuthorizationConfig { - crate::model::EFSAuthorizationConfig { + /// Consumes the builder and constructs a [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) + pub fn build(self) -> crate::model::EfsAuthorizationConfig { + crate::model::EfsAuthorizationConfig { access_point_id: self.access_point_id, iam: self.iam, } } } } -impl EFSAuthorizationConfig { - /// Creates a new builder-style object to manufacture [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) +impl EfsAuthorizationConfig { + /// Creates a new builder-style object to manufacture [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) pub fn builder() -> crate::model::efs_authorization_config::Builder { crate::model::efs_authorization_config::Builder::default() } @@ -4077,7 +3814,7 @@ impl std::convert::From<&str> for EfsAuthorizationConfigIam { impl std::str::FromStr for EfsAuthorizationConfigIam { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EfsAuthorizationConfigIam::from(s)) } } @@ -4095,15 +3832,6 @@ impl AsRef for EfsAuthorizationConfigIam { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EfsAuthorizationConfigIam { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4133,7 +3861,7 @@ impl std::convert::From<&str> for EfsTransitEncryption { impl std::str::FromStr for EfsTransitEncryption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EfsTransitEncryption::from(s)) } } @@ -4151,21 +3879,12 @@ impl AsRef for EfsTransitEncryption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EfsTransitEncryption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Determine whether your data volume persists on the host container instance and where it is stored. If this /// parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data isn't guaranteed to /// persist after the containers associated with it stop running.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Host { ///

    The path on the host container instance that's presented to the container. If this parameter is empty, then the /// Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume @@ -4175,8 +3894,6 @@ pub struct Host { /// ///

    This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided.

    /// - #[serde(rename = "sourcePath")] - #[serde(default)] pub source_path: std::option::Option, } impl std::fmt::Debug for Host { @@ -4254,7 +3971,7 @@ impl std::convert::From<&str> for JobDefinitionType { impl std::str::FromStr for JobDefinitionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JobDefinitionType::from(s)) } } @@ -4272,70 +3989,39 @@ impl AsRef for JobDefinitionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JobDefinitionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing summary details of a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobSummary { ///

    The Amazon Resource Name (ARN) of the job.

    - #[serde(rename = "jobArn")] - #[serde(default)] pub job_arn: std::option::Option, ///

    The ID of the job.

    - #[serde(rename = "jobId")] - #[serde(default)] pub job_id: std::option::Option, ///

    The name of the job.

    - #[serde(rename = "jobName")] - #[serde(default)] pub job_name: std::option::Option, ///

    The Unix timestamp for when the job was created. For non-array jobs and parent array jobs, this is when the job /// entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, /// this is when the child job was spawned by its parent and entered the PENDING state.

    - #[serde(rename = "createdAt")] - #[serde(default)] pub created_at: i64, ///

    The current status for the job.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    A short, human-readable string to provide additional details about the current status of the job.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    The Unix timestamp for when the job was started (when the job transitioned from the STARTING state /// to the RUNNING state).

    - #[serde(rename = "startedAt")] - #[serde(default)] pub started_at: i64, ///

    The Unix timestamp for when the job was stopped (when the job transitioned from the RUNNING state /// to a terminal state, such as SUCCEEDED or FAILED).

    - #[serde(rename = "stoppedAt")] - #[serde(default)] pub stopped_at: i64, ///

    An object representing the details of the container that's associated with the job.

    - #[serde(rename = "container")] - #[serde(default)] pub container: std::option::Option, ///

    The array properties of the job, if it is an array job.

    - #[serde(rename = "arrayProperties")] - #[serde(default)] pub array_properties: std::option::Option, ///

    The node properties for a single node in a job summary list.

    /// ///

    This isn't applicable to jobs running on Fargate resources.

    ///
    - #[serde(rename = "nodeProperties")] - #[serde(default)] pub node_properties: std::option::Option, } impl std::fmt::Debug for JobSummary { @@ -4519,20 +4205,14 @@ impl JobSummary { ///

    An object representing the properties of a node that's associated with a multi-node parallel job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodePropertiesSummary { ///

    Specifies whether the current node is the main node for a multi-node parallel job.

    - #[serde(rename = "isMainNode")] - #[serde(default)] pub is_main_node: bool, ///

    The number of nodes associated with a multi-node parallel job.

    - #[serde(rename = "numNodes")] - #[serde(default)] pub num_nodes: i32, ///

    The node index for the node. Node index numbering begins at zero. This index is also available on the node with /// the AWS_BATCH_JOB_NODE_INDEX environment variable.

    - #[serde(rename = "nodeIndex")] - #[serde(default)] pub node_index: i32, } impl std::fmt::Debug for NodePropertiesSummary { @@ -4602,16 +4282,12 @@ impl NodePropertiesSummary { ///

    An object representing the array properties of a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArrayPropertiesSummary { ///

    The size of the array job. This parameter is returned for parent array jobs.

    - #[serde(rename = "size")] - #[serde(default)] pub size: i32, ///

    The job index within the array that's associated with this job. This parameter is returned for children of array /// jobs.

    - #[serde(rename = "index")] - #[serde(default)] pub index: i32, } impl std::fmt::Debug for ArrayPropertiesSummary { @@ -4669,16 +4345,12 @@ impl ArrayPropertiesSummary { ///

    An object representing summary details of a container within a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerSummary { ///

    The exit code to return upon completion.

    - #[serde(rename = "exitCode")] - #[serde(default)] pub exit_code: i32, ///

    A short (255 max characters) human-readable string to provide additional details about a running or stopped /// container.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, } impl std::fmt::Debug for ContainerSummary { @@ -4772,7 +4444,7 @@ impl std::convert::From<&str> for JobStatus { impl std::str::FromStr for JobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JobStatus::from(s)) } } @@ -4795,127 +4467,74 @@ impl AsRef for JobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing an AWS Batch job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobDetail { ///

    The Amazon Resource Name (ARN) of the job.

    - #[serde(rename = "jobArn")] - #[serde(default)] pub job_arn: std::option::Option, ///

    The name of the job.

    - #[serde(rename = "jobName")] - #[serde(default)] pub job_name: std::option::Option, ///

    The ID for the job.

    - #[serde(rename = "jobId")] - #[serde(default)] pub job_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the job queue that the job is associated with.

    - #[serde(rename = "jobQueue")] - #[serde(default)] pub job_queue: std::option::Option, ///

    The current status for the job.

    /// ///

    If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the /// troubleshooting section of the AWS Batch User Guide.

    ///
    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    A list of job attempts associated with this job.

    - #[serde(rename = "attempts")] - #[serde(default)] pub attempts: std::option::Option>, ///

    A short, human-readable string to provide additional details about the current status of the job.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, /// this is when the job entered the SUBMITTED state (at the time SubmitJob was called). /// For array child jobs, this is when the child job was spawned by its parent and entered the PENDING /// state.

    - #[serde(rename = "createdAt")] - #[serde(default)] pub created_at: i64, ///

    The retry strategy to use for this job if an attempt fails.

    - #[serde(rename = "retryStrategy")] - #[serde(default)] pub retry_strategy: std::option::Option, ///

    The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the /// STARTING state to the RUNNING state). This parameter isn't provided for child jobs of /// array jobs or multi-node parallel jobs.

    - #[serde(rename = "startedAt")] - #[serde(default)] pub started_at: i64, ///

    The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the /// RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

    - #[serde(rename = "stoppedAt")] - #[serde(default)] pub stopped_at: i64, ///

    A list of job IDs that this job depends on.

    - #[serde(rename = "dependsOn")] - #[serde(default)] pub depends_on: std::option::Option>, ///

    The job definition that's used by this job.

    - #[serde(rename = "jobDefinition")] - #[serde(default)] pub job_definition: std::option::Option, ///

    Additional parameters passed to the job that replace parameter substitution placeholders or override any /// corresponding parameter defaults from the job definition.

    - #[serde(rename = "parameters")] - #[serde(default)] pub parameters: std::option::Option>, ///

    An object representing the details of the container that's associated with the job.

    - #[serde(rename = "container")] - #[serde(default)] pub container: std::option::Option, ///

    An object representing the details of a node that's associated with a multi-node parallel job.

    - #[serde(rename = "nodeDetails")] - #[serde(default)] pub node_details: std::option::Option, ///

    An object representing the node properties of a multi-node parallel job.

    /// ///

    This isn't applicable to jobs running on Fargate resources.

    ///
    - #[serde(rename = "nodeProperties")] - #[serde(default)] pub node_properties: std::option::Option, ///

    The array properties of the job, if it is an array job.

    - #[serde(rename = "arrayProperties")] - #[serde(default)] pub array_properties: std::option::Option, ///

    The timeout configuration for the job.

    - #[serde(rename = "timeout")] - #[serde(default)] pub timeout: std::option::Option, ///

    The tags applied to the job.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no /// value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For /// tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags /// from the job and job definition is over 50, the job is moved to the FAILED state.

    - #[serde(rename = "propagateTags")] - #[serde(default)] pub propagate_tags: bool, ///

    The platform capabilities required by the job definition. If no value is specified, it defaults to /// EC2. Jobs run on Fargate resources specify FARGATE.

    - #[serde(rename = "platformCapabilities")] - #[serde(default)] pub platform_capabilities: std::option::Option>, } impl std::fmt::Debug for JobDetail { @@ -5289,21 +4908,15 @@ impl JobDetail { ///

    An object representing the array properties of a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArrayPropertiesDetail { ///

    A summary of the number of array job children in each available job status. This parameter is returned for /// parent array jobs.

    - #[serde(rename = "statusSummary")] - #[serde(default)] pub status_summary: std::option::Option>, ///

    The size of the array job. This parameter is returned for parent array jobs.

    - #[serde(rename = "size")] - #[serde(default)] pub size: i32, ///

    The job index within the array that's associated with this job. This parameter is returned for array job /// children.

    - #[serde(rename = "index")] - #[serde(default)] pub index: i32, } impl std::fmt::Debug for ArrayPropertiesDetail { @@ -5382,16 +4995,12 @@ impl ArrayPropertiesDetail { ///

    An object representing the details of a multi-node parallel job node.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NodeDetails { ///

    The node index for the node. Node index numbering begins at zero. This index is also available on the node with /// the AWS_BATCH_JOB_NODE_INDEX environment variable.

    - #[serde(rename = "nodeIndex")] - #[serde(default)] pub node_index: i32, ///

    Specifies whether the current node is the main node for a multi-node parallel job.

    - #[serde(rename = "isMainNode")] - #[serde(default)] pub is_main_node: bool, } impl std::fmt::Debug for NodeDetails { @@ -5449,11 +5058,9 @@ impl NodeDetails { ///

    An object representing the details of a container that's part of a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerDetail { ///

    The image used to start the container.

    - #[serde(rename = "image")] - #[serde(default)] pub image: std::option::Option, ///

    The number of vCPUs reserved for the container. For jobs that run on EC2 resources, you can specify the vCPU /// requirement for the job using resourceRequirements, but you can't specify the vCPU requirements in both @@ -5466,61 +5073,41 @@ pub struct ContainerDetail { ///

    This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run on Fargate /// resources, you must specify the vCPU requirement for the job using resourceRequirements.

    /// - #[serde(rename = "vcpus")] - #[serde(default)] pub vcpus: i32, ///

    For jobs run on EC2 resources that didn't specify memory requirements using ResourceRequirement, /// the number of MiB of memory reserved for the job. For other jobs, including all run on Fargate resources, see /// resourceRequirements.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: i32, ///

    The command that's passed to the container.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The Amazon Resource Name (ARN) associated with the job upon execution.

    - #[serde(rename = "jobRoleArn")] - #[serde(default)] pub job_role_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the /// execution /// role that AWS Batch can assume. For more information, see AWS Batch execution IAM role in the /// AWS Batch User Guide.

    - #[serde(rename = "executionRoleArn")] - #[serde(default)] pub execution_role_arn: std::option::Option, ///

    A list of volumes associated with the job.

    - #[serde(rename = "volumes")] - #[serde(default)] pub volumes: std::option::Option>, ///

    The environment variables to pass to a container.

    /// ///

    Environment variables must not start with AWS_BATCH; this naming /// convention is reserved for variables that are set by the AWS Batch service.

    ///
    - #[serde(rename = "environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    The mount points for data volumes in your container.

    - #[serde(rename = "mountPoints")] - #[serde(default)] pub mount_points: std::option::Option>, ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter /// maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and /// the --read-only option to /// docker run /// .

    - #[serde(rename = "readonlyRootFilesystem")] - #[serde(default)] pub readonly_root_filesystem: bool, ///

    A list of ulimit values to set in the container. This parameter maps to Ulimits in the /// Create a container section of the Docker Remote API and the --ulimit option to docker run.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources.

    ///
    - #[serde(rename = "ulimits")] - #[serde(default)] pub ulimits: std::option::Option>, ///

    When this parameter is true, the container is given elevated permissions on the host container instance (similar /// to the root user). The default value is false.

    @@ -5528,58 +5115,36 @@ pub struct ContainerDetail { ///

    This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified /// as false.

    /// - #[serde(rename = "privileged")] - #[serde(default)] pub privileged: bool, ///

    The user name to use inside the container. This parameter maps to User in the /// Create a container section of the Docker Remote API and the --user option to docker run.

    - #[serde(rename = "user")] - #[serde(default)] pub user: std::option::Option, ///

    The exit code to return upon completion.

    - #[serde(rename = "exitCode")] - #[serde(default)] pub exit_code: i32, ///

    A short (255 max characters) human-readable string to provide additional details about a running or stopped /// container.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The Amazon Resource Name (ARN) of the container instance that the container is running on.

    - #[serde(rename = "containerInstanceArn")] - #[serde(default)] pub container_instance_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the container job. Each container attempt receives a task /// ARN when they reach the STARTING status.

    - #[serde(rename = "taskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /// /aws/batch/job. Each container attempt receives a log stream name when they reach the /// RUNNING status.

    - #[serde(rename = "logStreamName")] - #[serde(default)] pub log_stream_name: std::option::Option, ///

    The instance type of the underlying host infrastructure of a multi-node parallel job.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources.

    ///
    - #[serde(rename = "instanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    The network interfaces associated with the job.

    - #[serde(rename = "networkInterfaces")] - #[serde(default)] pub network_interfaces: std::option::Option>, ///

    The type and amount of resources to assign to a container. The supported resources include GPU, /// MEMORY, and VCPU.

    - #[serde(rename = "resourceRequirements")] - #[serde(default)] pub resource_requirements: std::option::Option>, ///

    Linux-specific modifications that are applied to the container, such as details for device mappings.

    - #[serde(rename = "linuxParameters")] - #[serde(default)] pub linux_parameters: std::option::Option, ///

    The log configuration specification for the container.

    ///

    This parameter maps to LogConfig in the Create a container section of the @@ -5604,23 +5169,15 @@ pub struct ContainerDetail { /// instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the /// Amazon Elastic Container Service Developer Guide.

    /// - #[serde(rename = "logConfiguration")] - #[serde(default)] pub log_configuration: std::option::Option, ///

    The secrets to pass to the container. For more information, see Specifying sensitive data in the /// AWS Batch User Guide.

    - #[serde(rename = "secrets")] - #[serde(default)] pub secrets: std::option::Option>, ///

    The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not /// specify this parameter.

    - #[serde(rename = "networkConfiguration")] - #[serde(default)] pub network_configuration: std::option::Option, ///

    The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not /// specify this parameter.

    - #[serde(rename = "fargatePlatformConfiguration")] - #[serde(default)] pub fargate_platform_configuration: std::option::Option, } @@ -6093,19 +5650,13 @@ impl ContainerDetail { ///

    An object representing the elastic network interface for a multi-node parallel job node.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkInterface { ///

    The attachment ID for the network interface.

    - #[serde(rename = "attachmentId")] - #[serde(default)] pub attachment_id: std::option::Option, ///

    The private IPv6 address for the network interface.

    - #[serde(rename = "ipv6Address")] - #[serde(default)] pub ipv6_address: std::option::Option, ///

    The private IPv4 address for the network interface.

    - #[serde(rename = "privateIpv4Address")] - #[serde(default)] pub private_ipv4_address: std::option::Option, } impl std::fmt::Debug for NetworkInterface { @@ -6180,25 +5731,17 @@ impl NetworkInterface { ///

    An object representing a job attempt.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttemptDetail { ///

    Details about the container in this job attempt.

    - #[serde(rename = "container")] - #[serde(default)] pub container: std::option::Option, ///

    The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the /// STARTING state to the RUNNING state).

    - #[serde(rename = "startedAt")] - #[serde(default)] pub started_at: i64, ///

    The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the /// RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

    - #[serde(rename = "stoppedAt")] - #[serde(default)] pub stopped_at: i64, ///

    A short, human-readable string to provide additional details about the current status of the job attempt.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, } impl std::fmt::Debug for AttemptDetail { @@ -6287,35 +5830,23 @@ impl AttemptDetail { ///

    An object representing the details of a container that's part of a job attempt.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttemptContainerDetail { ///

    The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.

    - #[serde(rename = "containerInstanceArn")] - #[serde(default)] pub container_instance_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task /// ARN when they reach the STARTING status.

    - #[serde(rename = "taskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The exit code for the job attempt. A non-zero exit code is considered a failure.

    - #[serde(rename = "exitCode")] - #[serde(default)] pub exit_code: i32, ///

    A short (255 max characters) human-readable string to provide additional details about a running or stopped /// container.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /// /aws/batch/job. Each container attempt receives a log stream name when they reach the /// RUNNING status.

    - #[serde(rename = "logStreamName")] - #[serde(default)] pub log_stream_name: std::option::Option, ///

    The network interfaces associated with the job attempt.

    - #[serde(rename = "networkInterfaces")] - #[serde(default)] pub network_interfaces: std::option::Option>, } impl std::fmt::Debug for AttemptContainerDetail { @@ -6438,29 +5969,19 @@ impl AttemptContainerDetail { ///

    An object representing the details of an AWS Batch job queue.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobQueueDetail { ///

    The name of the job queue.

    - #[serde(rename = "jobQueueName")] - #[serde(default)] pub job_queue_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the job queue.

    - #[serde(rename = "jobQueueArn")] - #[serde(default)] pub job_queue_arn: std::option::Option, ///

    Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED, it's able /// to accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs /// already in the queue can finish.

    - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, ///

    The status of the job queue (for example, CREATING or VALID).

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    A short, human-readable string to provide additional details about the current status of the job queue.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    The priority of the job queue. Job queues with a higher priority (or a higher integer value for the /// priority parameter) are evaluated first when associated with the same compute environment. Priority is @@ -6468,19 +5989,13 @@ pub struct JobQueueDetail { /// preference over a job queue with a priority value of 1. All of the compute environments must be either /// EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and /// Fargate compute environments can't be mixed.

    - #[serde(rename = "priority")] - #[serde(default)] pub priority: i32, ///

    The compute environments that are attached to the job queue and the order that job placement is preferred. /// Compute environments are selected for job placement in ascending order.

    - #[serde(rename = "computeEnvironmentOrder")] - #[serde(default)] pub compute_environment_order: std::option::Option>, ///

    The tags applied to the job queue. For more information, see Tagging your AWS Batch resources in /// AWS Batch User Guide.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -6680,7 +6195,7 @@ impl std::convert::From<&str> for JqStatus { impl std::str::FromStr for JqStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JqStatus::from(s)) } } @@ -6702,87 +6217,52 @@ impl AsRef for JqStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JqStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing an AWS Batch job definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JobDefinition { ///

    The name of the job definition.

    - #[serde(rename = "jobDefinitionName")] - #[serde(default)] pub job_definition_name: std::option::Option, ///

    The Amazon Resource Name (ARN) for the job definition.

    - #[serde(rename = "jobDefinitionArn")] - #[serde(default)] pub job_definition_arn: std::option::Option, ///

    The revision of the job definition.

    - #[serde(rename = "revision")] - #[serde(default)] pub revision: i32, ///

    The status of the job definition.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The type of job definition. If the job is run on Fargate resources, then multinode isn't /// supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the /// AWS Batch User Guide.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are /// specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding /// parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the /// AWS Batch User Guide.

    - #[serde(rename = "parameters")] - #[serde(default)] pub parameters: std::option::Option>, ///

    The retry strategy to use for failed jobs that are submitted with this job definition.

    - #[serde(rename = "retryStrategy")] - #[serde(default)] pub retry_strategy: std::option::Option, ///

    An object with various properties specific to container-based jobs.

    - #[serde(rename = "containerProperties")] - #[serde(default)] pub container_properties: std::option::Option, ///

    The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout /// duration after which AWS Batch terminates your jobs if they haven't finished.

    - #[serde(rename = "timeout")] - #[serde(default)] pub timeout: std::option::Option, ///

    An object with various properties specific to multi-node parallel jobs.

    /// ///

    If the job runs on Fargate resources, then you must not specify nodeProperties; use /// containerProperties instead.

    ///
    - #[serde(rename = "nodeProperties")] - #[serde(default)] pub node_properties: std::option::Option, ///

    The tags applied to the job definition.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no /// value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For /// tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags /// from the job and job definition is over 50, the job is moved to the FAILED state.

    - #[serde(rename = "propagateTags")] - #[serde(default)] pub propagate_tags: bool, ///

    The platform capabilities required by the job definition. If no value is specified, it defaults to /// EC2. Jobs run on Fargate resources specify FARGATE.

    - #[serde(rename = "platformCapabilities")] - #[serde(default)] pub platform_capabilities: std::option::Option>, } impl std::fmt::Debug for JobDefinition { @@ -7028,31 +6508,21 @@ impl JobDefinition { ///

    An object representing an AWS Batch compute environment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComputeEnvironmentDetail { ///

    The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and /// underscores are allowed.

    - #[serde(rename = "computeEnvironmentName")] - #[serde(default)] pub compute_environment_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the compute environment.

    - #[serde(rename = "computeEnvironmentArn")] - #[serde(default)] pub compute_environment_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.

    - #[serde(rename = "ecsClusterArn")] - #[serde(default)] pub ecs_cluster_arn: std::option::Option, ///

    The tags applied to the compute environment.

    - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The type of the compute environment: MANAGED or UNMANAGED. For more information, see /// Compute Environments in the /// AWS Batch User Guide.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The state of the compute environment. The valid values are ENABLED or DISABLED.

    ///

    If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated @@ -7062,28 +6532,18 @@ pub struct ComputeEnvironmentDetail { /// environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed /// compute environments in the DISABLED state don't scale out. However, they scale in to /// minvCpus value after instances become idle.

    - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, ///

    The current status of the compute environment (for example, CREATING or VALID).

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    A short, human-readable string to provide additional details about the current status of the compute /// environment.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    The compute resources defined for the compute environment. For more information, see Compute Environments in the /// AWS Batch User Guide.

    - #[serde(rename = "computeResources")] - #[serde(default)] pub compute_resources: std::option::Option, ///

    The service role associated with the compute environment that allows AWS Batch to make calls to AWS API /// operations on your behalf. For more information, see AWS Batch service IAM role in the /// AWS Batch User Guide.

    - #[serde(rename = "serviceRole")] - #[serde(default)] pub service_role: std::option::Option, } impl std::fmt::Debug for ComputeEnvironmentDetail { @@ -7278,7 +6738,7 @@ impl ComputeEnvironmentDetail { ///

    An object representing an AWS Batch compute resource. For more information, see Compute Environments in the /// AWS Batch User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComputeResource { ///

    The type of compute environment: EC2, SPOT, FARGATE, or /// FARGATE_SPOT. For more information, see Compute Environments in the @@ -7286,8 +6746,6 @@ pub struct ComputeResource { ///

    If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the /// spotIamFleetRole parameter. For more information, see Amazon EC2 Spot Fleet role in the /// AWS Batch User Guide.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The allocation strategy to use for the compute resource if not enough instances of the best fitting instance /// type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more @@ -7322,16 +6780,12 @@ pub struct ComputeResource { ///

    With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, AWS Batch might /// need to go above maxvCpus to meet your capacity requirements. In this event, AWS Batch never exceeds /// maxvCpus by more than a single instance.

    - #[serde(rename = "allocationStrategy")] - #[serde(default)] pub allocation_strategy: std::option::Option, ///

    The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is /// DISABLED).

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "minvCpus")] - #[serde(default)] pub minv_cpus: i32, ///

    The maximum number of Amazon EC2 vCPUs that a compute environment can reach.

    /// @@ -7340,16 +6794,12 @@ pub struct ComputeResource { /// exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among /// those specified in your compute environment is allocated.

    ///
    - #[serde(rename = "maxvCpus")] - #[serde(default)] pub maxv_cpus: i32, ///

    The desired number of Amazon EC2 vCPUS in the compute environment. AWS Batch modifies this value between the minimum /// and maximum values, based on job queue demand.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "desiredvCpus")] - #[serde(default)] pub desiredv_cpus: i32, ///

    The instances types that can be launched. You can specify instance families to launch any instance type within /// those families (for example, c5 or p3), or you can specify specific sizes within a family @@ -7368,8 +6818,6 @@ pub struct ComputeResource { /// don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are /// used.

    /// - #[serde(rename = "instanceTypes")] - #[serde(default)] pub instance_types: std::option::Option>, ///

    The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is /// overridden by the imageIdOverride member of the Ec2Configuration structure.

    @@ -7384,14 +6832,10 @@ pub struct ComputeResource { /// Amazon Linux 2 AMI /// in the Amazon Elastic Container Service Developer Guide.

    /// - #[serde(rename = "imageId")] - #[serde(default)] pub image_id: std::option::Option, ///

    The VPC subnets into which the compute resources are launched. These subnets must be within the same VPC. /// Fargate compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User /// Guide.

    - #[serde(rename = "subnets")] - #[serde(default)] pub subnets: std::option::Option>, ///

    The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security /// groups must be specified, either in securityGroupIds or using a launch template referenced in @@ -7399,16 +6843,12 @@ pub struct ComputeResource { /// least one security group. Fargate doesn't support launch templates. If security groups are specified using both /// securityGroupIds and launchTemplate, the values in securityGroupIds is /// used.

    - #[serde(rename = "securityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, ///

    The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to /// log in to your instances with SSH.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "ec2KeyPair")] - #[serde(default)] pub ec2_key_pair: std::option::Option, ///

    The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name /// or full Amazon Resource Name (ARN) of an instance profile. For example, @@ -7422,8 +6862,6 @@ pub struct ComputeResource { /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    /// - #[serde(rename = "instanceRole")] - #[serde(default)] pub instance_role: std::option::Option, ///

    Key-value pair tags to be applied to EC2 resources that are launched in the compute environment. For AWS Batch, /// these take the form of "String1": "String2", where String1 is the tag key and String2 is the tag value−for @@ -7434,8 +6872,6 @@ pub struct ComputeResource { /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel @@ -7446,8 +6882,6 @@ pub struct ComputeResource { /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    /// - #[serde(rename = "placementGroup")] - #[serde(default)] pub placement_group: std::option::Option, ///

    The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that /// instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must @@ -7457,8 +6891,6 @@ pub struct ComputeResource { /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    /// - #[serde(rename = "bidPercentage")] - #[serde(default)] pub bid_percentage: i32, ///

    The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is /// required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For @@ -7472,8 +6904,6 @@ pub struct ComputeResource { /// Instances. For more information, see Spot Instances not tagged on creation in the /// AWS Batch User Guide.

    /// - #[serde(rename = "spotIamFleetRole")] - #[serde(default)] pub spot_iam_fleet_role: std::option::Option, ///

    The launch template to use for your compute resources. Any other compute resource parameters that you specify in /// a CreateComputeEnvironment API operation override the same parameters in the launch template. You @@ -7483,16 +6913,12 @@ pub struct ComputeResource { /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    /// - #[serde(rename = "launchTemplate")] - #[serde(default)] pub launch_template: std::option::Option, ///

    Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment. /// If Ec2Configuration isn't specified, the default is ECS_AL1.

    /// ///

    This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

    ///
    - #[serde(rename = "ec2Configuration")] - #[serde(default)] pub ec2_configuration: std::option::Option>, } impl std::fmt::Debug for ComputeResource { @@ -7893,7 +7319,7 @@ impl ComputeResource { ///

    This object isn't applicable to jobs running on Fargate resources.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Ec2Configuration { ///

    The image type to match with the instance type to select an AMI. If the imageIdOverride parameter /// isn't specified, then a recent Amazon ECS-optimized AMI (ECS_AL1) is @@ -7922,13 +7348,9 @@ pub struct Ec2Configuration { /// Linux AMI.

    /// /// - #[serde(rename = "imageType")] - #[serde(default)] pub image_type: std::option::Option, ///

    The AMI ID used for instances launched in the compute environment that match the image type. This setting /// overrides the imageId set in the computeResource object.

    - #[serde(rename = "imageIdOverride")] - #[serde(default)] pub image_id_override: std::option::Option, } impl std::fmt::Debug for Ec2Configuration { @@ -8022,15 +7444,11 @@ impl Ec2Configuration { ///

    This object isn't applicable to jobs running on Fargate resources.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LaunchTemplateSpecification { ///

    The ID of the launch template.

    - #[serde(rename = "launchTemplateId")] - #[serde(default)] pub launch_template_id: std::option::Option, ///

    The name of the launch template.

    - #[serde(rename = "launchTemplateName")] - #[serde(default)] pub launch_template_name: std::option::Option, ///

    The version number of the launch template, $Latest, or $Default.

    ///

    If the value is $Latest, the latest version of the launch template is used. If the value is @@ -8042,8 +7460,6 @@ pub struct LaunchTemplateSpecification { /// remove the old compute environment from the job queue, and delete the old compute environment.

    /// ///

    Default: $Default.

    - #[serde(rename = "version")] - #[serde(default)] pub version: std::option::Option, } impl std::fmt::Debug for LaunchTemplateSpecification { @@ -8155,7 +7571,7 @@ impl std::convert::From<&str> for CrAllocationStrategy { impl std::str::FromStr for CrAllocationStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CrAllocationStrategy::from(s)) } } @@ -8174,15 +7590,6 @@ impl AsRef for CrAllocationStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CrAllocationStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8216,7 +7623,7 @@ impl std::convert::From<&str> for CrType { impl std::str::FromStr for CrType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CrType::from(s)) } } @@ -8236,15 +7643,6 @@ impl AsRef for CrType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CrType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8282,7 +7680,7 @@ impl std::convert::From<&str> for CeStatus { impl std::str::FromStr for CeStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CeStatus::from(s)) } } @@ -8304,15 +7702,6 @@ impl AsRef for CeStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CeStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8342,7 +7731,7 @@ impl std::convert::From<&str> for CeType { impl std::str::FromStr for CeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CeType::from(s)) } } @@ -8360,12 +7749,3 @@ impl AsRef for CeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/batch/src/operation_deser.rs b/sdk/batch/src/operation_deser.rs index 79ef132b919a..21052f227f8d 100644 --- a/sdk/batch/src/operation_deser.rs +++ b/sdk/batch/src/operation_deser.rs @@ -12,23 +12,29 @@ pub fn parse_cancel_job_error( Err(match error_code { "ClientException" => crate::error::CancelJobError { meta: generic, - kind: crate::error::CancelJobErrorKind::ClientError({ + kind: crate::error::CancelJobErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelJobError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelJobError::unhandled)?; output.build() }), }, "ServerException" => crate::error::CancelJobError { meta: generic, - kind: crate::error::CancelJobErrorKind::ServerError({ + kind: crate::error::CancelJobErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelJobError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelJobError::unhandled)?; output.build() }), }, @@ -68,23 +74,29 @@ pub fn parse_create_compute_environment_error( Err(match error_code { "ClientException" => crate::error::CreateComputeEnvironmentError { meta: generic, - kind: crate::error::CreateComputeEnvironmentErrorKind::ClientError({ + kind: crate::error::CreateComputeEnvironmentErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateComputeEnvironmentError::unhandled)?; output.build() }), }, "ServerException" => crate::error::CreateComputeEnvironmentError { meta: generic, - kind: crate::error::CreateComputeEnvironmentErrorKind::ServerError({ + kind: crate::error::CreateComputeEnvironmentErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateComputeEnvironmentError::unhandled)?; output.build() }), }, @@ -103,7 +115,7 @@ pub fn parse_create_compute_environment_response( #[allow(unused_mut)] let mut output = crate::output::create_compute_environment_output::Builder::default(); let _ = response; - output = crate::json_deser::create_compute_environment_deser_operation( + output = crate::json_deser::deser_operation_create_compute_environment( response.body().as_ref(), output, ) @@ -125,23 +137,29 @@ pub fn parse_create_job_queue_error( Err(match error_code { "ClientException" => crate::error::CreateJobQueueError { meta: generic, - kind: crate::error::CreateJobQueueErrorKind::ClientError({ + kind: crate::error::CreateJobQueueErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateJobQueueError::unhandled)?; output.build() }), }, "ServerException" => crate::error::CreateJobQueueError { meta: generic, - kind: crate::error::CreateJobQueueErrorKind::ServerError({ + kind: crate::error::CreateJobQueueErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateJobQueueError::unhandled)?; output.build() }), }, @@ -158,7 +176,7 @@ pub fn parse_create_job_queue_response( let mut output = crate::output::create_job_queue_output::Builder::default(); let _ = response; output = - crate::json_deser::create_job_queue_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_job_queue(response.body().as_ref(), output) .map_err(crate::error::CreateJobQueueError::unhandled)?; output.build() }) @@ -184,23 +202,29 @@ pub fn parse_delete_compute_environment_error( Err(match error_code { "ClientException" => crate::error::DeleteComputeEnvironmentError { meta: generic, - kind: crate::error::DeleteComputeEnvironmentErrorKind::ClientError({ + kind: crate::error::DeleteComputeEnvironmentErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteComputeEnvironmentError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DeleteComputeEnvironmentError { meta: generic, - kind: crate::error::DeleteComputeEnvironmentErrorKind::ServerError({ + kind: crate::error::DeleteComputeEnvironmentErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteComputeEnvironmentError::unhandled)?; output.build() }), }, @@ -236,23 +260,29 @@ pub fn parse_delete_job_queue_error( Err(match error_code { "ClientException" => crate::error::DeleteJobQueueError { meta: generic, - kind: crate::error::DeleteJobQueueErrorKind::ClientError({ + kind: crate::error::DeleteJobQueueErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteJobQueueError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DeleteJobQueueError { meta: generic, - kind: crate::error::DeleteJobQueueErrorKind::ServerError({ + kind: crate::error::DeleteJobQueueErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteJobQueueError::unhandled)?; output.build() }), }, @@ -292,23 +322,29 @@ pub fn parse_deregister_job_definition_error( Err(match error_code { "ClientException" => crate::error::DeregisterJobDefinitionError { meta: generic, - kind: crate::error::DeregisterJobDefinitionErrorKind::ClientError({ + kind: crate::error::DeregisterJobDefinitionErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DeregisterJobDefinitionError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterJobDefinitionError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DeregisterJobDefinitionError { meta: generic, - kind: crate::error::DeregisterJobDefinitionErrorKind::ServerError({ + kind: crate::error::DeregisterJobDefinitionErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DeregisterJobDefinitionError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterJobDefinitionError::unhandled)?; output.build() }), }, @@ -351,23 +387,29 @@ pub fn parse_describe_compute_environments_error( Err(match error_code { "ClientException" => crate::error::DescribeComputeEnvironmentsError { meta: generic, - kind: crate::error::DescribeComputeEnvironmentsErrorKind::ClientError({ + kind: crate::error::DescribeComputeEnvironmentsErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeComputeEnvironmentsError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeComputeEnvironmentsError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DescribeComputeEnvironmentsError { meta: generic, - kind: crate::error::DescribeComputeEnvironmentsErrorKind::ServerError({ + kind: crate::error::DescribeComputeEnvironmentsErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeComputeEnvironmentsError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeComputeEnvironmentsError::unhandled)?; output.build() }), }, @@ -386,7 +428,7 @@ pub fn parse_describe_compute_environments_response( #[allow(unused_mut)] let mut output = crate::output::describe_compute_environments_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_compute_environments_deser_operation( + output = crate::json_deser::deser_operation_describe_compute_environments( response.body().as_ref(), output, ) @@ -415,23 +457,29 @@ pub fn parse_describe_job_definitions_error( Err(match error_code { "ClientException" => crate::error::DescribeJobDefinitionsError { meta: generic, - kind: crate::error::DescribeJobDefinitionsErrorKind::ClientError({ + kind: crate::error::DescribeJobDefinitionsErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobDefinitionsError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobDefinitionsError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DescribeJobDefinitionsError { meta: generic, - kind: crate::error::DescribeJobDefinitionsErrorKind::ServerError({ + kind: crate::error::DescribeJobDefinitionsErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobDefinitionsError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobDefinitionsError::unhandled)?; output.build() }), }, @@ -450,7 +498,7 @@ pub fn parse_describe_job_definitions_response( #[allow(unused_mut)] let mut output = crate::output::describe_job_definitions_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_job_definitions_deser_operation( + output = crate::json_deser::deser_operation_describe_job_definitions( response.body().as_ref(), output, ) @@ -473,23 +521,29 @@ pub fn parse_describe_job_queues_error( Err(match error_code { "ClientException" => crate::error::DescribeJobQueuesError { meta: generic, - kind: crate::error::DescribeJobQueuesErrorKind::ClientError({ + kind: crate::error::DescribeJobQueuesErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobQueuesError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobQueuesError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DescribeJobQueuesError { meta: generic, - kind: crate::error::DescribeJobQueuesErrorKind::ServerError({ + kind: crate::error::DescribeJobQueuesErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobQueuesError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobQueuesError::unhandled)?; output.build() }), }, @@ -506,7 +560,7 @@ pub fn parse_describe_job_queues_response( #[allow(unused_mut)] let mut output = crate::output::describe_job_queues_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_job_queues_deser_operation( + output = crate::json_deser::deser_operation_describe_job_queues( response.body().as_ref(), output, ) @@ -528,23 +582,29 @@ pub fn parse_describe_jobs_error( Err(match error_code { "ClientException" => crate::error::DescribeJobsError { meta: generic, - kind: crate::error::DescribeJobsErrorKind::ClientError({ + kind: crate::error::DescribeJobsErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobsError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobsError::unhandled)?; output.build() }), }, "ServerException" => crate::error::DescribeJobsError { meta: generic, - kind: crate::error::DescribeJobsErrorKind::ServerError({ + kind: crate::error::DescribeJobsErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeJobsError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeJobsError::unhandled)?; output.build() }), }, @@ -560,7 +620,7 @@ pub fn parse_describe_jobs_response( #[allow(unused_mut)] let mut output = crate::output::describe_jobs_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_jobs_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_describe_jobs(response.body().as_ref(), output) .map_err(crate::error::DescribeJobsError::unhandled)?; output.build() }) @@ -579,23 +639,29 @@ pub fn parse_list_jobs_error( Err(match error_code { "ClientException" => crate::error::ListJobsError { meta: generic, - kind: crate::error::ListJobsErrorKind::ClientError({ + kind: crate::error::ListJobsErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::ListJobsError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListJobsError::unhandled)?; output.build() }), }, "ServerException" => crate::error::ListJobsError { meta: generic, - kind: crate::error::ListJobsErrorKind::ServerError({ + kind: crate::error::ListJobsErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::ListJobsError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListJobsError::unhandled)?; output.build() }), }, @@ -611,7 +677,7 @@ pub fn parse_list_jobs_response( #[allow(unused_mut)] let mut output = crate::output::list_jobs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_jobs_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_jobs(response.body().as_ref(), output) .map_err(crate::error::ListJobsError::unhandled)?; output.build() }) @@ -633,23 +699,29 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "ClientException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ClientError({ + kind: crate::error::ListTagsForResourceErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "ServerException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ServerError({ + kind: crate::error::ListTagsForResourceErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, @@ -668,7 +740,7 @@ pub fn parse_list_tags_for_resource_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_for_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_for_resource_deser_operation( + output = crate::json_deser::deser_operation_list_tags_for_resource( response.body().as_ref(), output, ) @@ -693,23 +765,29 @@ pub fn parse_register_job_definition_error( Err(match error_code { "ClientException" => crate::error::RegisterJobDefinitionError { meta: generic, - kind: crate::error::RegisterJobDefinitionErrorKind::ClientError({ + kind: crate::error::RegisterJobDefinitionErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::RegisterJobDefinitionError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterJobDefinitionError::unhandled)?; output.build() }), }, "ServerException" => crate::error::RegisterJobDefinitionError { meta: generic, - kind: crate::error::RegisterJobDefinitionErrorKind::ServerError({ + kind: crate::error::RegisterJobDefinitionErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::RegisterJobDefinitionError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterJobDefinitionError::unhandled)?; output.build() }), }, @@ -728,7 +806,7 @@ pub fn parse_register_job_definition_response( #[allow(unused_mut)] let mut output = crate::output::register_job_definition_output::Builder::default(); let _ = response; - output = crate::json_deser::register_job_definition_deser_operation( + output = crate::json_deser::deser_operation_register_job_definition( response.body().as_ref(), output, ) @@ -750,23 +828,29 @@ pub fn parse_submit_job_error( Err(match error_code { "ClientException" => crate::error::SubmitJobError { meta: generic, - kind: crate::error::SubmitJobErrorKind::ClientError({ + kind: crate::error::SubmitJobErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::SubmitJobError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitJobError::unhandled)?; output.build() }), }, "ServerException" => crate::error::SubmitJobError { meta: generic, - kind: crate::error::SubmitJobErrorKind::ServerError({ + kind: crate::error::SubmitJobErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::SubmitJobError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitJobError::unhandled)?; output.build() }), }, @@ -782,7 +866,7 @@ pub fn parse_submit_job_response( #[allow(unused_mut)] let mut output = crate::output::submit_job_output::Builder::default(); let _ = response; - output = crate::json_deser::submit_job_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_submit_job(response.body().as_ref(), output) .map_err(crate::error::SubmitJobError::unhandled)?; output.build() }) @@ -801,23 +885,29 @@ pub fn parse_tag_resource_error( Err(match error_code { "ClientException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ClientError({ + kind: crate::error::TagResourceErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, "ServerException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ServerError({ + kind: crate::error::TagResourceErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, @@ -850,23 +940,29 @@ pub fn parse_terminate_job_error( Err(match error_code { "ClientException" => crate::error::TerminateJobError { meta: generic, - kind: crate::error::TerminateJobErrorKind::ClientError({ + kind: crate::error::TerminateJobErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::TerminateJobError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TerminateJobError::unhandled)?; output.build() }), }, "ServerException" => crate::error::TerminateJobError { meta: generic, - kind: crate::error::TerminateJobErrorKind::ServerError({ + kind: crate::error::TerminateJobErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::TerminateJobError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TerminateJobError::unhandled)?; output.build() }), }, @@ -899,23 +995,29 @@ pub fn parse_untag_resource_error( Err(match error_code { "ClientException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ClientError({ + kind: crate::error::UntagResourceErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, "ServerException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ServerError({ + kind: crate::error::UntagResourceErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, @@ -955,23 +1057,29 @@ pub fn parse_update_compute_environment_error( Err(match error_code { "ClientException" => crate::error::UpdateComputeEnvironmentError { meta: generic, - kind: crate::error::UpdateComputeEnvironmentErrorKind::ClientError({ + kind: crate::error::UpdateComputeEnvironmentErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateComputeEnvironmentError::unhandled)?; output.build() }), }, "ServerException" => crate::error::UpdateComputeEnvironmentError { meta: generic, - kind: crate::error::UpdateComputeEnvironmentErrorKind::ServerError({ + kind: crate::error::UpdateComputeEnvironmentErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateComputeEnvironmentError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateComputeEnvironmentError::unhandled)?; output.build() }), }, @@ -990,7 +1098,7 @@ pub fn parse_update_compute_environment_response( #[allow(unused_mut)] let mut output = crate::output::update_compute_environment_output::Builder::default(); let _ = response; - output = crate::json_deser::update_compute_environment_deser_operation( + output = crate::json_deser::deser_operation_update_compute_environment( response.body().as_ref(), output, ) @@ -1012,23 +1120,29 @@ pub fn parse_update_job_queue_error( Err(match error_code { "ClientException" => crate::error::UpdateJobQueueError { meta: generic, - kind: crate::error::UpdateJobQueueErrorKind::ClientError({ + kind: crate::error::UpdateJobQueueErrorKind::ClientException({ #[allow(unused_mut)] - let mut output = crate::error::client_error::Builder::default(); + let mut output = crate::error::client_exception::Builder::default(); let _ = response; - output = crate::json_deser::client_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateJobQueueError::unhandled)?; output.build() }), }, "ServerException" => crate::error::UpdateJobQueueError { meta: generic, - kind: crate::error::UpdateJobQueueErrorKind::ServerError({ + kind: crate::error::UpdateJobQueueErrorKind::ServerException({ #[allow(unused_mut)] - let mut output = crate::error::server_error::Builder::default(); + let mut output = crate::error::server_exception::Builder::default(); let _ = response; - output = crate::json_deser::server_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateJobQueueError::unhandled)?; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateJobQueueError::unhandled)?; output.build() }), }, @@ -1045,7 +1159,7 @@ pub fn parse_update_job_queue_response( let mut output = crate::output::update_job_queue_output::Builder::default(); let _ = response; output = - crate::json_deser::update_job_queue_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_job_queue(response.body().as_ref(), output) .map_err(crate::error::UpdateJobQueueError::unhandled)?; output.build() }) diff --git a/sdk/batch/src/operation_ser.rs b/sdk/batch/src/operation_ser.rs index cc0c342081f2..89f5824d8618 100644 --- a/sdk/batch/src/operation_ser.rs +++ b/sdk/batch/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_cancel_job( input: &crate::input::CancelJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_job_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_cancel_job( pub fn serialize_operation_create_compute_environment( input: &crate::input::CreateComputeEnvironmentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_compute_environment_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_compute_environment( pub fn serialize_operation_create_job_queue( input: &crate::input::CreateJobQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_job_queue_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_job_queue( pub fn serialize_operation_delete_compute_environment( input: &crate::input::DeleteComputeEnvironmentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_compute_environment_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_delete_compute_environment( pub fn serialize_operation_delete_job_queue( input: &crate::input::DeleteJobQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_job_queue_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_delete_job_queue( pub fn serialize_operation_deregister_job_definition( input: &crate::input::DeregisterJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_job_definition_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_deregister_job_definition( pub fn serialize_operation_describe_compute_environments( input: &crate::input::DescribeComputeEnvironmentsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_compute_environments_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_describe_compute_environments( pub fn serialize_operation_describe_job_definitions( input: &crate::input::DescribeJobDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_job_definitions_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_describe_job_definitions( pub fn serialize_operation_describe_job_queues( input: &crate::input::DescribeJobQueuesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_job_queues_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_describe_job_queues( pub fn serialize_operation_describe_jobs( input: &crate::input::DescribeJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_jobs_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_describe_jobs( pub fn serialize_operation_list_jobs( input: &crate::input::ListJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_jobs_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_list_jobs( pub fn serialize_operation_register_job_definition( input: &crate::input::RegisterJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_job_definition_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_register_job_definition( pub fn serialize_operation_submit_job( input: &crate::input::SubmitJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_submit_job_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_submit_job( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_terminate_job( input: &crate::input::TerminateJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_terminate_job_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_terminate_job( pub fn serialize_operation_update_compute_environment( input: &crate::input::UpdateComputeEnvironmentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_compute_environment_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_update_compute_environment( pub fn serialize_operation_update_job_queue( input: &crate::input::UpdateJobQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_job_queue_input(&mut object, input); diff --git a/sdk/batch/src/serializer.rs b/sdk/batch/src/serializer.rs deleted file mode 100644 index 9dbaab5ad534..000000000000 --- a/sdk/batch/src/serializer.rs +++ /dev/null @@ -1,898 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

    Contains the parameters for CancelJob.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelJobInputBody<'a> { - ///

    The AWS Batch job ID of the job to cancel.

    - pub job_id: &'a std::option::Option, - ///

    A message to attach to the job that explains the reason for canceling it. This message is returned by future - /// DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity - /// logs.

    - pub reason: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CancelJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelJobInputBody"); - formatter.field("job_id", &self.job_id); - formatter.field("reason", &self.reason); - formatter.finish() - } -} - -///

    Contains the parameters for CreateComputeEnvironment.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateComputeEnvironmentInputBody<'a> { - ///

    The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and - /// underscores are allowed.

    - pub compute_environment_name: &'a std::option::Option, - ///

    The type of the compute environment: MANAGED or UNMANAGED. For more information, see - /// Compute Environments in the - /// AWS Batch User Guide.

    - pub r#type: &'a std::option::Option, - ///

    The state of the compute environment. If the state is ENABLED, then the compute environment accepts - /// jobs from a queue and can scale out automatically based on queues.

    - ///

    If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated - /// job queue on the compute resources within the environment. If the compute environment is managed, then it can scale - /// its instances out or in automatically, based on the job queue demand.

    - ///

    If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the - /// environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed - /// compute environments in the DISABLED state don't scale out. However, they scale in to - /// minvCpus value after instances become idle.

    - pub state: &'a std::option::Option, - ///

    Details about the compute resources managed by the compute environment. This parameter is required for managed - /// compute environments. For more information, see Compute Environments in the AWS Batch User Guide.

    - pub compute_resources: &'a std::option::Option, - ///

    The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For - /// more information, see AWS Batch service IAM - /// role in the AWS Batch User Guide.

    - /// - ///

    If your account has already created the AWS Batch service-linked role, that role is used by default for your - /// compute environment unless you specify a role here. If the AWS Batch service-linked role does not exist in your - /// account, and no role is specified here, the service will try to create the AWS Batch service-linked role in your - /// account.

    - ///
    - ///

    If your specified role has a path other than /, then you must specify either the full role ARN - /// (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path - /// of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names - /// and paths in the IAM User Guide.

    - /// - ///

    Depending on how you created your AWS Batch service role, its ARN might contain the service-role - /// path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the - /// service-role path prefix. Because of this, we recommend that you specify the full ARN of your service - /// role when you create compute environments.

    - ///
    - pub service_role: &'a std::option::Option, - ///

    The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag - /// consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General - /// Reference.

    - ///

    These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't - /// propagate to the underlying compute resources.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateComputeEnvironmentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateComputeEnvironmentInputBody"); - formatter.field("compute_environment_name", &self.compute_environment_name); - formatter.field("r#type", &self.r#type); - formatter.field("state", &self.state); - formatter.field("compute_resources", &self.compute_resources); - formatter.field("service_role", &self.service_role); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Contains the parameters for CreateJobQueue.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateJobQueueInputBody<'a> { - ///

    The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are - /// allowed.

    - pub job_queue_name: &'a std::option::Option, - ///

    The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs. If the - /// job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can - /// finish.

    - pub state: &'a std::option::Option, - ///

    The priority of the job queue. Job queues with a higher priority (or a higher integer value for the - /// priority parameter) are evaluated first when associated with the same compute environment. Priority is - /// determined in descending order. For example, a job queue with a priority value of 10 is given scheduling - /// preference over a job queue with a priority value of 1. All of the compute environments must be either - /// EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and - /// Fargate compute environments cannot be mixed.

    - pub priority: &'a i32, - ///

    The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler - /// uses this parameter to determine which compute environment should run a specific job. Compute environments must be in - /// the VALID state before you can associate them with a job queue. You can associate up to three compute - /// environments with a job queue. All of the compute environments must be either EC2 (EC2 or - /// SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute - /// environments can't be mixed.

    - /// - ///

    All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't - /// support mixing compute environment architecture types in a single job queue.

    - ///
    - pub compute_environment_order: - &'a std::option::Option>, - ///

    The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists - /// of a key and an optional value. For more information, see Tagging your AWS Batch resources in AWS Batch User Guide.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateJobQueueInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateJobQueueInputBody"); - formatter.field("job_queue_name", &self.job_queue_name); - formatter.field("state", &self.state); - formatter.field("priority", &self.priority); - formatter.field("compute_environment_order", &self.compute_environment_order); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Contains the parameters for DeleteComputeEnvironment.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteComputeEnvironmentInputBody<'a> { - ///

    The name or Amazon Resource Name (ARN) of the compute environment to delete.

    - pub compute_environment: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteComputeEnvironmentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteComputeEnvironmentInputBody"); - formatter.field("compute_environment", &self.compute_environment); - formatter.finish() - } -} - -///

    Contains the parameters for DeleteJobQueue.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteJobQueueInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the queue to delete.

    - pub job_queue: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteJobQueueInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteJobQueueInputBody"); - formatter.field("job_queue", &self.job_queue); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterJobDefinitionInputBody<'a> { - ///

    The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.

    - pub job_definition: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterJobDefinitionInputBody"); - formatter.field("job_definition", &self.job_definition); - formatter.finish() - } -} - -///

    Contains the parameters for DescribeComputeEnvironments.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeComputeEnvironmentsInputBody<'a> { - ///

    A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.

    - pub compute_environments: &'a std::option::Option>, - ///

    The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. - /// When this parameter is used, DescribeComputeEnvironments only returns maxResults results in - /// a single page along with a nextToken response element. The remaining results of the initial request can - /// be seen by sending another DescribeComputeEnvironments request with the returned nextToken - /// value. This value can be between 1 and 100. If this parameter isn't used, then - /// DescribeComputeEnvironments returns up to 100 results and a nextToken - /// value if applicable.

    - pub max_results: &'a i32, - ///

    The nextToken value returned from a previous paginated DescribeComputeEnvironments - /// request where maxResults was used and the results exceeded the value of that parameter. Pagination - /// continues from the end of the previous results that returned the nextToken value. This value is - /// null when there are no more results to return.

    - /// - ///

    This token should be treated as an opaque identifier that's only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeComputeEnvironmentsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeComputeEnvironmentsInputBody"); - formatter.field("compute_environments", &self.compute_environments); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    Contains the parameters for DescribeJobDefinitions.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobDefinitionsInputBody<'a> { - ///

    A list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.

    - pub job_definitions: &'a std::option::Option>, - ///

    The maximum number of results returned by DescribeJobDefinitions in paginated output. When this - /// parameter is used, DescribeJobDefinitions only returns maxResults results in a single page - /// and a nextToken response element. The remaining results of the initial request can be seen by sending - /// another DescribeJobDefinitions request with the returned nextToken value. This value can be - /// between 1 and 100. If this parameter isn't used, then - /// DescribeJobDefinitions returns up to 100 results and a nextToken value - /// if applicable.

    - pub max_results: &'a i32, - ///

    The name of the job definition to describe.

    - pub job_definition_name: &'a std::option::Option, - ///

    The status used to filter job definitions.

    - pub status: &'a std::option::Option, - ///

    The nextToken value returned from a previous paginated DescribeJobDefinitions request - /// where maxResults was used and the results exceeded the value of that parameter. Pagination continues - /// from the end of the previous results that returned the nextToken value. This value is null - /// when there are no more results to return.

    - /// - ///

    This token should be treated as an opaque identifier that's only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeJobDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobDefinitionsInputBody"); - formatter.field("job_definitions", &self.job_definitions); - formatter.field("max_results", &self.max_results); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("status", &self.status); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    Contains the parameters for DescribeJobQueues.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobQueuesInputBody<'a> { - ///

    A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.

    - pub job_queues: &'a std::option::Option>, - ///

    The maximum number of results returned by DescribeJobQueues in paginated output. When this - /// parameter is used, DescribeJobQueues only returns maxResults results in a single page and a - /// nextToken response element. The remaining results of the initial request can be seen by sending another - /// DescribeJobQueues request with the returned nextToken value. This value can be between - /// 1 and 100. If this parameter isn't used, then DescribeJobQueues returns up - /// to 100 results and a nextToken value if applicable.

    - pub max_results: &'a i32, - ///

    The nextToken value returned from a previous paginated DescribeJobQueues request where - /// maxResults was used and the results exceeded the value of that parameter. Pagination continues from the - /// end of the previous results that returned the nextToken value. This value is null when - /// there are no more results to return.

    - /// - ///

    This token should be treated as an opaque identifier that's only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeJobQueuesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobQueuesInputBody"); - formatter.field("job_queues", &self.job_queues); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    Contains the parameters for DescribeJobs.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobsInputBody<'a> { - ///

    A list of up to 100 job IDs.

    - pub jobs: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobsInputBody"); - formatter.field("jobs", &self.jobs); - formatter.finish() - } -} - -///

    Contains the parameters for ListJobs.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListJobsInputBody<'a> { - ///

    The name or full Amazon Resource Name (ARN) of the job queue used to list jobs.

    - pub job_queue: &'a std::option::Option, - ///

    The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the - /// specified array.

    - pub array_job_id: &'a std::option::Option, - ///

    The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all - /// nodes that are associated with the specified job.

    - pub multi_node_job_id: &'a std::option::Option, - ///

    The job status used to filter jobs in the specified queue. If you don't specify a status, only - /// RUNNING jobs are returned.

    - pub job_status: &'a std::option::Option, - ///

    The maximum number of results returned by ListJobs in paginated output. When this parameter is - /// used, ListJobs only returns maxResults results in a single page and a - /// nextToken response element. The remaining results of the initial request can be seen by sending another - /// ListJobs request with the returned nextToken value. This value can be between - /// 1 and 100. If this parameter isn't used, then ListJobs returns up to - /// 100 results and a nextToken value if applicable.

    - pub max_results: &'a i32, - ///

    The nextToken value returned from a previous paginated ListJobs request where - /// maxResults was used and the results exceeded the value of that parameter. Pagination continues from the - /// end of the previous results that returned the nextToken value. This value is null when - /// there are no more results to return.

    - /// - ///

    This token should be treated as an opaque identifier that's only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListJobsInputBody"); - formatter.field("job_queue", &self.job_queue); - formatter.field("array_job_id", &self.array_job_id); - formatter.field("multi_node_job_id", &self.multi_node_job_id); - formatter.field("job_status", &self.job_status); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    Contains the parameters for RegisterJobDefinition.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterJobDefinitionInputBody<'a> { - ///

    The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and - /// underscores are allowed.

    - pub job_definition_name: &'a std::option::Option, - ///

    The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the - /// AWS Batch User Guide.

    - /// - ///

    If the job is run on Fargate resources, then multinode isn't supported.

    - ///
    - pub r#type: &'a std::option::Option, - ///

    Default parameter substitution placeholders to set in the job definition. Parameters are specified as a - /// key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults - /// from the job definition.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    An object with various properties specific to single-node container-based jobs. If the job definition's - /// type parameter is container, then you must specify either containerProperties - /// or nodeProperties.

    - /// - ///

    If the job runs on Fargate resources, then you must not specify nodeProperties; use only - /// containerProperties.

    - ///
    - pub container_properties: &'a std::option::Option, - ///

    An object with various properties specific to multi-node parallel jobs. If you specify node properties for a - /// job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the - /// AWS Batch User Guide. If the job definition's type parameter is - /// container, then you must specify either containerProperties or - /// nodeProperties.

    - /// - ///

    If the job runs on Fargate resources, then you must not specify nodeProperties; use - /// containerProperties instead.

    - ///
    - pub node_properties: &'a std::option::Option, - ///

    The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's - /// specified during a SubmitJob operation overrides the retry strategy defined here. If a job is - /// terminated due to a timeout, it isn't retried.

    - pub retry_strategy: &'a std::option::Option, - ///

    Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no - /// value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For - /// tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags - /// from the job and job definition is over 50, the job is moved to the FAILED state.

    - pub propagate_tags: &'a bool, - ///

    The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates - /// your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for - /// the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation - /// overrides the timeout configuration defined here. For more information, see Job Timeouts in the AWS Batch User Guide.

    - pub timeout: &'a std::option::Option, - ///

    The tags that you apply to the job definition to help you categorize and organize your resources. Each tag - /// consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS Batch User Guide.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The platform capabilities required by the job definition. If no value is specified, it defaults to - /// EC2. To run the job on Fargate resources, specify FARGATE.

    - pub platform_capabilities: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RegisterJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("r#type", &self.r#type); - formatter.field("parameters", &self.parameters); - formatter.field("container_properties", &self.container_properties); - formatter.field("node_properties", &self.node_properties); - formatter.field("retry_strategy", &self.retry_strategy); - formatter.field("propagate_tags", &self.propagate_tags); - formatter.field("timeout", &self.timeout); - formatter.field("tags", &self.tags); - formatter.field("platform_capabilities", &self.platform_capabilities); - formatter.finish() - } -} - -///

    Contains the parameters for SubmitJob.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitJobInputBody<'a> { - ///

    The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), - /// numbers, hyphens, and underscores are allowed.

    - pub job_name: &'a std::option::Option, - ///

    The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

    - pub job_queue: &'a std::option::Option, - ///

    The array properties for the submitted job, such as the size of the array. The array size can be between 2 and - /// 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the - /// AWS Batch User Guide.

    - pub array_properties: &'a std::option::Option, - ///

    A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a - /// SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job - /// completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job - /// ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each - /// dependency to complete before it can begin.

    - pub depends_on: &'a std::option::Option>, - ///

    The job definition used by this job. This value can be one of name, name:revision, or - /// the Amazon Resource Name (ARN) for the job definition. If name is specified without a revision then the latest active - /// revision is used.

    - pub job_definition: &'a std::option::Option, - ///

    Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job - /// definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request - /// override any corresponding parameter defaults from the job definition.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of container overrides in the JSON format that specify the name of a container in the specified job - /// definition and the overrides it should receive. You can override the default command for a container, which is - /// specified in the job definition or the Docker image, with a command override. You can also override - /// existing environment variables on a container or add new environment variables to it with an environment - /// override.

    - pub container_overrides: &'a std::option::Option, - ///

    A list of node overrides in JSON format that specify the node range to target and the container overrides for - /// that node range.

    - /// - ///

    This parameter isn't applicable to jobs running on Fargate resources; use containerOverrides - /// instead.

    - ///
    - pub node_overrides: &'a std::option::Option, - ///

    The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy - /// is specified here, it overrides the retry strategy defined in the job definition.

    - pub retry_strategy: &'a std::option::Option, - ///

    Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no - /// value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For - /// tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags - /// from the job and job definition is over 50, the job is moved to the FAILED state. When specified, this - /// overrides the tag propagation setting in the job definition.

    - pub propagate_tags: &'a bool, - ///

    The timeout configuration for this SubmitJob operation. You can specify a timeout duration - /// after which AWS Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't - /// retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration - /// specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job. - /// For more information, see Job - /// Timeouts in the Amazon Elastic Container Service Developer Guide.

    - pub timeout: &'a std::option::Option, - ///

    The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists - /// of a key and an optional value. For more information, see Tagging AWS Resources in AWS General - /// Reference.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for SubmitJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitJobInputBody"); - formatter.field("job_name", &self.job_name); - formatter.field("job_queue", &self.job_queue); - formatter.field("array_properties", &self.array_properties); - formatter.field("depends_on", &self.depends_on); - formatter.field("job_definition", &self.job_definition); - formatter.field("parameters", &self.parameters); - formatter.field("container_overrides", &self.container_overrides); - formatter.field("node_overrides", &self.node_overrides); - formatter.field("retry_strategy", &self.retry_strategy); - formatter.field("propagate_tags", &self.propagate_tags); - formatter.field("timeout", &self.timeout); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of - /// a key and an optional value. For more information, see Tagging AWS Resources in AWS General - /// Reference.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Contains the parameters for TerminateJob.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TerminateJobInputBody<'a> { - ///

    The AWS Batch job ID of the job to terminate.

    - pub job_id: &'a std::option::Option, - ///

    A message to attach to the job that explains the reason for canceling it. This message is returned by future - /// DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity - /// logs.

    - pub reason: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TerminateJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TerminateJobInputBody"); - formatter.field("job_id", &self.job_id); - formatter.field("reason", &self.reason); - formatter.finish() - } -} - -///

    Contains the parameters for UpdateComputeEnvironment.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateComputeEnvironmentInputBody<'a> { - ///

    The name or full Amazon Resource Name (ARN) of the compute environment to update.

    - pub compute_environment: &'a std::option::Option, - ///

    The state of the compute environment. Compute environments in the ENABLED state can accept jobs - /// from a queue and scale in or out automatically based on the workload demand of its associated queues.

    - ///

    If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated - /// job queue on the compute resources within the environment. If the compute environment is managed, then it can scale - /// its instances out or in automatically, based on the job queue demand.

    - ///

    If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the - /// environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed - /// compute environments in the DISABLED state don't scale out. However, they scale in to - /// minvCpus value after instances become idle.

    - pub state: &'a std::option::Option, - ///

    Details of the compute resources managed by the compute environment. Required for a managed compute environment. - /// For more information, see Compute - /// Environments in the AWS Batch User Guide.

    - pub compute_resources: &'a std::option::Option, - ///

    The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For - /// more information, see AWS Batch service IAM - /// role in the AWS Batch User Guide.

    - /// - ///

    If the compute environment has a service-linked role, it cannot be changed to use a regular IAM role. If the - /// compute environment has a regular IAM role, it cannot be changed to use a service-linked role.

    - ///
    - ///

    If your specified role has a path other than /, then you must either specify the full role ARN - /// (this is recommended) or prefix the role name with the path.

    - /// - ///

    Depending on how you created your AWS Batch service role, its ARN might contain the service-role - /// path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the - /// service-role path prefix. Because of this, we recommend that you specify the full ARN of your service - /// role when you create compute environments.

    - ///
    - pub service_role: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateComputeEnvironmentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateComputeEnvironmentInputBody"); - formatter.field("compute_environment", &self.compute_environment); - formatter.field("state", &self.state); - formatter.field("compute_resources", &self.compute_resources); - formatter.field("service_role", &self.service_role); - formatter.finish() - } -} - -///

    Contains the parameters for UpdateJobQueue.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateJobQueueInputBody<'a> { - ///

    The name or the Amazon Resource Name (ARN) of the job queue.

    - pub job_queue: &'a std::option::Option, - ///

    Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can accept - /// jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the - /// queue can finish.

    - pub state: &'a std::option::Option, - ///

    The priority of the job queue. Job queues with a higher priority (or a higher integer value for the - /// priority parameter) are evaluated first when associated with the same compute environment. Priority is - /// determined in descending order, for example, a job queue with a priority value of 10 is given scheduling - /// preference over a job queue with a priority value of 1. All of the compute environments must be either - /// EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and - /// Fargate compute environments can't be mixed.

    - pub priority: &'a i32, - ///

    Details the set of compute environments mapped to a job queue and their order relative to each other. This is - /// one of the parameters used by the job scheduler to determine which compute environment should run a given job. - /// Compute environments must be in the VALID state before you can associate them with a job queue. All of - /// the compute environments must be either EC2 (EC2 or SPOT) or Fargate - /// (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

    - /// - ///

    All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't - /// support mixing compute environment architecture types in a single job queue.

    - ///
    - pub compute_environment_order: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateJobQueueInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateJobQueueInputBody"); - formatter.field("job_queue", &self.job_queue); - formatter.field("state", &self.state); - formatter.field("priority", &self.priority); - formatter.field("compute_environment_order", &self.compute_environment_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateComputeEnvironmentOutputBody { - ///

    The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and - /// underscores are allowed.

    - #[serde(rename = "computeEnvironmentName")] - #[serde(default)] - pub compute_environment_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the compute environment.

    - #[serde(rename = "computeEnvironmentArn")] - #[serde(default)] - pub compute_environment_arn: std::option::Option, -} -impl std::fmt::Debug for CreateComputeEnvironmentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateComputeEnvironmentOutputBody"); - formatter.field("compute_environment_name", &self.compute_environment_name); - formatter.field("compute_environment_arn", &self.compute_environment_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateJobQueueOutputBody { - ///

    The name of the job queue.

    - #[serde(rename = "jobQueueName")] - #[serde(default)] - pub job_queue_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the job queue.

    - #[serde(rename = "jobQueueArn")] - #[serde(default)] - pub job_queue_arn: std::option::Option, -} -impl std::fmt::Debug for CreateJobQueueOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateJobQueueOutputBody"); - formatter.field("job_queue_name", &self.job_queue_name); - formatter.field("job_queue_arn", &self.job_queue_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeComputeEnvironmentsOutputBody { - ///

    The list of compute environments.

    - #[serde(rename = "computeEnvironments")] - #[serde(default)] - pub compute_environments: - std::option::Option>, - ///

    The nextToken value to include in a future DescribeComputeEnvironments request. When - /// the results of a DescribeJobDefinitions request exceed maxResults, this value can be used - /// to retrieve the next page of results. This value is null when there are no more results to - /// return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeComputeEnvironmentsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeComputeEnvironmentsOutputBody"); - formatter.field("compute_environments", &self.compute_environments); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobDefinitionsOutputBody { - ///

    The list of job definitions.

    - #[serde(rename = "jobDefinitions")] - #[serde(default)] - pub job_definitions: std::option::Option>, - ///

    The nextToken value to include in a future DescribeJobDefinitions request. When the - /// results of a DescribeJobDefinitions request exceed maxResults, this value can be used to - /// retrieve the next page of results. This value is null when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeJobDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobDefinitionsOutputBody"); - formatter.field("job_definitions", &self.job_definitions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobQueuesOutputBody { - ///

    The list of job queues.

    - #[serde(rename = "jobQueues")] - #[serde(default)] - pub job_queues: std::option::Option>, - ///

    The nextToken value to include in a future DescribeJobQueues request. When the results - /// of a DescribeJobQueues request exceed maxResults, this value can be used to retrieve the - /// next page of results. This value is null when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeJobQueuesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobQueuesOutputBody"); - formatter.field("job_queues", &self.job_queues); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJobsOutputBody { - ///

    The list of jobs.

    - #[serde(rename = "jobs")] - #[serde(default)] - pub jobs: std::option::Option>, -} -impl std::fmt::Debug for DescribeJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJobsOutputBody"); - formatter.field("jobs", &self.jobs); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListJobsOutputBody { - ///

    A list of job summaries that match the request.

    - #[serde(rename = "jobSummaryList")] - #[serde(default)] - pub job_summary_list: std::option::Option>, - ///

    The nextToken value to include in a future ListJobs request. When the results of a - /// ListJobs request exceed maxResults, this value can be used to retrieve the next page of - /// results. This value is null when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListJobsOutputBody"); - formatter.field("job_summary_list", &self.job_summary_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - ///

    The tags for the resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterJobDefinitionOutputBody { - ///

    The name of the job definition.

    - #[serde(rename = "jobDefinitionName")] - #[serde(default)] - pub job_definition_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the job definition.

    - #[serde(rename = "jobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, - ///

    The revision of the job definition.

    - #[serde(rename = "revision")] - #[serde(default)] - pub revision: i32, -} -impl std::fmt::Debug for RegisterJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterJobDefinitionOutputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.field("revision", &self.revision); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitJobOutputBody { - ///

    The Amazon Resource Name (ARN) for the job.

    - #[serde(rename = "jobArn")] - #[serde(default)] - pub job_arn: std::option::Option, - ///

    The name of the job.

    - #[serde(rename = "jobName")] - #[serde(default)] - pub job_name: std::option::Option, - ///

    The unique identifier for the job.

    - #[serde(rename = "jobId")] - #[serde(default)] - pub job_id: std::option::Option, -} -impl std::fmt::Debug for SubmitJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitJobOutputBody"); - formatter.field("job_arn", &self.job_arn); - formatter.field("job_name", &self.job_name); - formatter.field("job_id", &self.job_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateComputeEnvironmentOutputBody { - ///

    The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and - /// underscores are allowed.

    - #[serde(rename = "computeEnvironmentName")] - #[serde(default)] - pub compute_environment_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the compute environment.

    - #[serde(rename = "computeEnvironmentArn")] - #[serde(default)] - pub compute_environment_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateComputeEnvironmentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateComputeEnvironmentOutputBody"); - formatter.field("compute_environment_name", &self.compute_environment_name); - formatter.field("compute_environment_arn", &self.compute_environment_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateJobQueueOutputBody { - ///

    The name of the job queue.

    - #[serde(rename = "jobQueueName")] - #[serde(default)] - pub job_queue_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the job queue.

    - #[serde(rename = "jobQueueArn")] - #[serde(default)] - pub job_queue_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateJobQueueOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateJobQueueOutputBody"); - formatter.field("job_queue_name", &self.job_queue_name); - formatter.field("job_queue_arn", &self.job_queue_arn); - formatter.finish() - } -} diff --git a/sdk/cloudformation/Cargo.toml b/sdk/cloudformation/Cargo.toml index b496e2c52943..21fb00333f99 100644 --- a/sdk/cloudformation/Cargo.toml +++ b/sdk/cloudformation/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-cloudformation" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS CloudFormation\n

    AWS CloudFormation allows you to create and manage AWS infrastructure deployments\n predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such\n as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification\n Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly\n scalable, cost-effective applications without creating or configuring the underlying AWS\n infrastructure.

    \n

    With AWS CloudFormation, you declare all of your resources and dependencies in a\n template file. The template defines a collection of resources as a single unit called a\n stack. AWS CloudFormation creates and deletes all member resources of the stack together\n and manages all dependencies between the resources for you.

    \n

    For more information about AWS CloudFormation, see the AWS CloudFormation Product Page.

    \n

    Amazon CloudFormation makes use of other AWS products. If you need additional\n technical information about a specific AWS product, you can find the product's technical\n documentation at docs.aws.amazon.com.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -28,14 +28,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/cloudformation/src/error.rs b/sdk/cloudformation/src/error.rs index f76a4ce4c89e..f5b38e338ace 100644 --- a/sdk/cloudformation/src/error.rs +++ b/sdk/cloudformation/src/error.rs @@ -8,14 +8,14 @@ pub struct CancelUpdateStackError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelUpdateStackErrorKind { - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelUpdateStackError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelUpdateStackErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + CancelUpdateStackErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), CancelUpdateStackErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -64,17 +64,17 @@ impl CancelUpdateStackError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_token_already_exists_error(&self) -> bool { + pub fn is_token_already_exists_exception(&self) -> bool { matches!( &self.kind, - CancelUpdateStackErrorKind::TokenAlreadyExistsError(_) + CancelUpdateStackErrorKind::TokenAlreadyExistsException(_) ) } } impl std::error::Error for CancelUpdateStackError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelUpdateStackErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + CancelUpdateStackErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), CancelUpdateStackErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -89,14 +89,14 @@ pub struct ContinueUpdateRollbackError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ContinueUpdateRollbackErrorKind { - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ContinueUpdateRollbackError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ContinueUpdateRollbackErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + ContinueUpdateRollbackErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), ContinueUpdateRollbackErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -145,17 +145,17 @@ impl ContinueUpdateRollbackError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_token_already_exists_error(&self) -> bool { + pub fn is_token_already_exists_exception(&self) -> bool { matches!( &self.kind, - ContinueUpdateRollbackErrorKind::TokenAlreadyExistsError(_) + ContinueUpdateRollbackErrorKind::TokenAlreadyExistsException(_) ) } } impl std::error::Error for ContinueUpdateRollbackError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ContinueUpdateRollbackErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + ContinueUpdateRollbackErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), ContinueUpdateRollbackErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -170,18 +170,18 @@ pub struct CreateChangeSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateChangeSetErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - InsufficientCapabilitiesError(crate::error::InsufficientCapabilitiesError), - LimitExceededError(crate::error::LimitExceededError), + AlreadyExistsException(crate::error::AlreadyExistsException), + InsufficientCapabilitiesException(crate::error::InsufficientCapabilitiesException), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateChangeSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateChangeSetErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateChangeSetErrorKind::InsufficientCapabilitiesError(_inner) => _inner.fmt(f), - CreateChangeSetErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + CreateChangeSetErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateChangeSetErrorKind::InsufficientCapabilitiesException(_inner) => _inner.fmt(f), + CreateChangeSetErrorKind::LimitExceededException(_inner) => _inner.fmt(f), CreateChangeSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -230,25 +230,31 @@ impl CreateChangeSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateChangeSetErrorKind::AlreadyExistsError(_)) + pub fn is_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateChangeSetErrorKind::AlreadyExistsException(_) + ) } - pub fn is_insufficient_capabilities_error(&self) -> bool { + pub fn is_insufficient_capabilities_exception(&self) -> bool { matches!( &self.kind, - CreateChangeSetErrorKind::InsufficientCapabilitiesError(_) + CreateChangeSetErrorKind::InsufficientCapabilitiesException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateChangeSetErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateChangeSetErrorKind::LimitExceededException(_) + ) } } impl std::error::Error for CreateChangeSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateChangeSetErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateChangeSetErrorKind::InsufficientCapabilitiesError(_inner) => Some(_inner), - CreateChangeSetErrorKind::LimitExceededError(_inner) => Some(_inner), + CreateChangeSetErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateChangeSetErrorKind::InsufficientCapabilitiesException(_inner) => Some(_inner), + CreateChangeSetErrorKind::LimitExceededException(_inner) => Some(_inner), CreateChangeSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -263,20 +269,20 @@ pub struct CreateStackError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateStackErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - InsufficientCapabilitiesError(crate::error::InsufficientCapabilitiesError), - LimitExceededError(crate::error::LimitExceededError), - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + InsufficientCapabilitiesException(crate::error::InsufficientCapabilitiesException), + LimitExceededException(crate::error::LimitExceededException), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateStackError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateStackErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateStackErrorKind::InsufficientCapabilitiesError(_inner) => _inner.fmt(f), - CreateStackErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateStackErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + CreateStackErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateStackErrorKind::InsufficientCapabilitiesException(_inner) => _inner.fmt(f), + CreateStackErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateStackErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), CreateStackErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -325,29 +331,32 @@ impl CreateStackError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateStackErrorKind::AlreadyExistsError(_)) + pub fn is_already_exists_exception(&self) -> bool { + matches!(&self.kind, CreateStackErrorKind::AlreadyExistsException(_)) } - pub fn is_insufficient_capabilities_error(&self) -> bool { + pub fn is_insufficient_capabilities_exception(&self) -> bool { matches!( &self.kind, - CreateStackErrorKind::InsufficientCapabilitiesError(_) + CreateStackErrorKind::InsufficientCapabilitiesException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateStackErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateStackErrorKind::LimitExceededException(_)) } - pub fn is_token_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateStackErrorKind::TokenAlreadyExistsError(_)) + pub fn is_token_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateStackErrorKind::TokenAlreadyExistsException(_) + ) } } impl std::error::Error for CreateStackError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateStackErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateStackErrorKind::InsufficientCapabilitiesError(_inner) => Some(_inner), - CreateStackErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateStackErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + CreateStackErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateStackErrorKind::InsufficientCapabilitiesException(_inner) => Some(_inner), + CreateStackErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateStackErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), CreateStackErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -362,24 +371,26 @@ pub struct CreateStackInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateStackInstancesErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - LimitExceededError(crate::error::LimitExceededError), - OperationIdAlreadyExistsError(crate::error::OperationIdAlreadyExistsError), - OperationInProgressError(crate::error::OperationInProgressError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), - StaleRequestError(crate::error::StaleRequestError), + InvalidOperationException(crate::error::InvalidOperationException), + LimitExceededException(crate::error::LimitExceededException), + OperationIdAlreadyExistsException(crate::error::OperationIdAlreadyExistsException), + OperationInProgressException(crate::error::OperationInProgressException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), + StaleRequestException(crate::error::StaleRequestException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateStackInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateStackInstancesErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - CreateStackInstancesErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => _inner.fmt(f), - CreateStackInstancesErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - CreateStackInstancesErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), - CreateStackInstancesErrorKind::StaleRequestError(_inner) => _inner.fmt(f), + CreateStackInstancesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + CreateStackInstancesErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + _inner.fmt(f) + } + CreateStackInstancesErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + CreateStackInstancesErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), + CreateStackInstancesErrorKind::StaleRequestException(_inner) => _inner.fmt(f), CreateStackInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -428,52 +439,54 @@ impl CreateStackInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::InvalidOperationError(_) + CreateStackInstancesErrorKind::InvalidOperationException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::LimitExceededError(_) + CreateStackInstancesErrorKind::LimitExceededException(_) ) } - pub fn is_operation_id_already_exists_error(&self) -> bool { + pub fn is_operation_id_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::OperationIdAlreadyExistsError(_) + CreateStackInstancesErrorKind::OperationIdAlreadyExistsException(_) ) } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::OperationInProgressError(_) + CreateStackInstancesErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::StackSetNotFoundError(_) + CreateStackInstancesErrorKind::StackSetNotFoundException(_) ) } - pub fn is_stale_request_error(&self) -> bool { + pub fn is_stale_request_exception(&self) -> bool { matches!( &self.kind, - CreateStackInstancesErrorKind::StaleRequestError(_) + CreateStackInstancesErrorKind::StaleRequestException(_) ) } } impl std::error::Error for CreateStackInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateStackInstancesErrorKind::InvalidOperationError(_inner) => Some(_inner), - CreateStackInstancesErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => Some(_inner), - CreateStackInstancesErrorKind::OperationInProgressError(_inner) => Some(_inner), - CreateStackInstancesErrorKind::StackSetNotFoundError(_inner) => Some(_inner), - CreateStackInstancesErrorKind::StaleRequestError(_inner) => Some(_inner), + CreateStackInstancesErrorKind::InvalidOperationException(_inner) => Some(_inner), + CreateStackInstancesErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + Some(_inner) + } + CreateStackInstancesErrorKind::OperationInProgressException(_inner) => Some(_inner), + CreateStackInstancesErrorKind::StackSetNotFoundException(_inner) => Some(_inner), + CreateStackInstancesErrorKind::StaleRequestException(_inner) => Some(_inner), CreateStackInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -488,18 +501,18 @@ pub struct CreateStackSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateStackSetErrorKind { - CreatedButModifiedError(crate::error::CreatedButModifiedError), - LimitExceededError(crate::error::LimitExceededError), - NameAlreadyExistsError(crate::error::NameAlreadyExistsError), + CreatedButModifiedException(crate::error::CreatedButModifiedException), + LimitExceededException(crate::error::LimitExceededException), + NameAlreadyExistsException(crate::error::NameAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateStackSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateStackSetErrorKind::CreatedButModifiedError(_inner) => _inner.fmt(f), - CreateStackSetErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateStackSetErrorKind::NameAlreadyExistsError(_inner) => _inner.fmt(f), + CreateStackSetErrorKind::CreatedButModifiedException(_inner) => _inner.fmt(f), + CreateStackSetErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateStackSetErrorKind::NameAlreadyExistsException(_inner) => _inner.fmt(f), CreateStackSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -548,28 +561,31 @@ impl CreateStackSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_created_but_modified_error(&self) -> bool { + pub fn is_created_but_modified_exception(&self) -> bool { matches!( &self.kind, - CreateStackSetErrorKind::CreatedButModifiedError(_) + CreateStackSetErrorKind::CreatedButModifiedException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateStackSetErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateStackSetErrorKind::LimitExceededException(_) + ) } - pub fn is_name_already_exists_error(&self) -> bool { + pub fn is_name_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateStackSetErrorKind::NameAlreadyExistsError(_) + CreateStackSetErrorKind::NameAlreadyExistsException(_) ) } } impl std::error::Error for CreateStackSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateStackSetErrorKind::CreatedButModifiedError(_inner) => Some(_inner), - CreateStackSetErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateStackSetErrorKind::NameAlreadyExistsError(_inner) => Some(_inner), + CreateStackSetErrorKind::CreatedButModifiedException(_inner) => Some(_inner), + CreateStackSetErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateStackSetErrorKind::NameAlreadyExistsException(_inner) => Some(_inner), CreateStackSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -584,14 +600,14 @@ pub struct DeleteChangeSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteChangeSetErrorKind { - InvalidChangeSetStatusError(crate::error::InvalidChangeSetStatusError), + InvalidChangeSetStatusException(crate::error::InvalidChangeSetStatusException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteChangeSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteChangeSetErrorKind::InvalidChangeSetStatusError(_inner) => _inner.fmt(f), + DeleteChangeSetErrorKind::InvalidChangeSetStatusException(_inner) => _inner.fmt(f), DeleteChangeSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -640,17 +656,17 @@ impl DeleteChangeSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_change_set_status_error(&self) -> bool { + pub fn is_invalid_change_set_status_exception(&self) -> bool { matches!( &self.kind, - DeleteChangeSetErrorKind::InvalidChangeSetStatusError(_) + DeleteChangeSetErrorKind::InvalidChangeSetStatusException(_) ) } } impl std::error::Error for DeleteChangeSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteChangeSetErrorKind::InvalidChangeSetStatusError(_inner) => Some(_inner), + DeleteChangeSetErrorKind::InvalidChangeSetStatusException(_inner) => Some(_inner), DeleteChangeSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -665,14 +681,14 @@ pub struct DeleteStackError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteStackErrorKind { - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteStackError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteStackErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + DeleteStackErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), DeleteStackErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -721,14 +737,17 @@ impl DeleteStackError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_token_already_exists_error(&self) -> bool { - matches!(&self.kind, DeleteStackErrorKind::TokenAlreadyExistsError(_)) + pub fn is_token_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + DeleteStackErrorKind::TokenAlreadyExistsException(_) + ) } } impl std::error::Error for DeleteStackError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteStackErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + DeleteStackErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), DeleteStackErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -743,22 +762,24 @@ pub struct DeleteStackInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteStackInstancesErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - OperationIdAlreadyExistsError(crate::error::OperationIdAlreadyExistsError), - OperationInProgressError(crate::error::OperationInProgressError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), - StaleRequestError(crate::error::StaleRequestError), + InvalidOperationException(crate::error::InvalidOperationException), + OperationIdAlreadyExistsException(crate::error::OperationIdAlreadyExistsException), + OperationInProgressException(crate::error::OperationInProgressException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), + StaleRequestException(crate::error::StaleRequestException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteStackInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteStackInstancesErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - DeleteStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => _inner.fmt(f), - DeleteStackInstancesErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - DeleteStackInstancesErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), - DeleteStackInstancesErrorKind::StaleRequestError(_inner) => _inner.fmt(f), + DeleteStackInstancesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + DeleteStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + _inner.fmt(f) + } + DeleteStackInstancesErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + DeleteStackInstancesErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), + DeleteStackInstancesErrorKind::StaleRequestException(_inner) => _inner.fmt(f), DeleteStackInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -807,45 +828,47 @@ impl DeleteStackInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - DeleteStackInstancesErrorKind::InvalidOperationError(_) + DeleteStackInstancesErrorKind::InvalidOperationException(_) ) } - pub fn is_operation_id_already_exists_error(&self) -> bool { + pub fn is_operation_id_already_exists_exception(&self) -> bool { matches!( &self.kind, - DeleteStackInstancesErrorKind::OperationIdAlreadyExistsError(_) + DeleteStackInstancesErrorKind::OperationIdAlreadyExistsException(_) ) } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - DeleteStackInstancesErrorKind::OperationInProgressError(_) + DeleteStackInstancesErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteStackInstancesErrorKind::StackSetNotFoundError(_) + DeleteStackInstancesErrorKind::StackSetNotFoundException(_) ) } - pub fn is_stale_request_error(&self) -> bool { + pub fn is_stale_request_exception(&self) -> bool { matches!( &self.kind, - DeleteStackInstancesErrorKind::StaleRequestError(_) + DeleteStackInstancesErrorKind::StaleRequestException(_) ) } } impl std::error::Error for DeleteStackInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteStackInstancesErrorKind::InvalidOperationError(_inner) => Some(_inner), - DeleteStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => Some(_inner), - DeleteStackInstancesErrorKind::OperationInProgressError(_inner) => Some(_inner), - DeleteStackInstancesErrorKind::StackSetNotFoundError(_inner) => Some(_inner), - DeleteStackInstancesErrorKind::StaleRequestError(_inner) => Some(_inner), + DeleteStackInstancesErrorKind::InvalidOperationException(_inner) => Some(_inner), + DeleteStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + Some(_inner) + } + DeleteStackInstancesErrorKind::OperationInProgressException(_inner) => Some(_inner), + DeleteStackInstancesErrorKind::StackSetNotFoundException(_inner) => Some(_inner), + DeleteStackInstancesErrorKind::StaleRequestException(_inner) => Some(_inner), DeleteStackInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -860,16 +883,16 @@ pub struct DeleteStackSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteStackSetErrorKind { - OperationInProgressError(crate::error::OperationInProgressError), - StackSetNotEmptyError(crate::error::StackSetNotEmptyError), + OperationInProgressException(crate::error::OperationInProgressException), + StackSetNotEmptyException(crate::error::StackSetNotEmptyException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteStackSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteStackSetErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - DeleteStackSetErrorKind::StackSetNotEmptyError(_inner) => _inner.fmt(f), + DeleteStackSetErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + DeleteStackSetErrorKind::StackSetNotEmptyException(_inner) => _inner.fmt(f), DeleteStackSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -918,24 +941,24 @@ impl DeleteStackSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - DeleteStackSetErrorKind::OperationInProgressError(_) + DeleteStackSetErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_set_not_empty_error(&self) -> bool { + pub fn is_stack_set_not_empty_exception(&self) -> bool { matches!( &self.kind, - DeleteStackSetErrorKind::StackSetNotEmptyError(_) + DeleteStackSetErrorKind::StackSetNotEmptyException(_) ) } } impl std::error::Error for DeleteStackSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteStackSetErrorKind::OperationInProgressError(_inner) => Some(_inner), - DeleteStackSetErrorKind::StackSetNotEmptyError(_inner) => Some(_inner), + DeleteStackSetErrorKind::OperationInProgressException(_inner) => Some(_inner), + DeleteStackSetErrorKind::StackSetNotEmptyException(_inner) => Some(_inner), DeleteStackSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -950,16 +973,16 @@ pub struct DeregisterTypeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterTypeErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), - TypeNotFoundError(crate::error::TypeNotFoundError), + CfnRegistryException(crate::error::CfnRegistryException), + TypeNotFoundException(crate::error::TypeNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterTypeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterTypeErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), - DeregisterTypeErrorKind::TypeNotFoundError(_inner) => _inner.fmt(f), + DeregisterTypeErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), + DeregisterTypeErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f), DeregisterTypeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1008,18 +1031,21 @@ impl DeregisterTypeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { - matches!(&self.kind, DeregisterTypeErrorKind::CFNRegistryError(_)) + pub fn is_cfn_registry_exception(&self) -> bool { + matches!(&self.kind, DeregisterTypeErrorKind::CfnRegistryException(_)) } - pub fn is_type_not_found_error(&self) -> bool { - matches!(&self.kind, DeregisterTypeErrorKind::TypeNotFoundError(_)) + pub fn is_type_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeregisterTypeErrorKind::TypeNotFoundException(_) + ) } } impl std::error::Error for DeregisterTypeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterTypeErrorKind::CFNRegistryError(_inner) => Some(_inner), - DeregisterTypeErrorKind::TypeNotFoundError(_inner) => Some(_inner), + DeregisterTypeErrorKind::CfnRegistryException(_inner) => Some(_inner), + DeregisterTypeErrorKind::TypeNotFoundException(_inner) => Some(_inner), DeregisterTypeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1106,14 +1132,14 @@ pub struct DescribeChangeSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeChangeSetErrorKind { - ChangeSetNotFoundError(crate::error::ChangeSetNotFoundError), + ChangeSetNotFoundException(crate::error::ChangeSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeChangeSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeChangeSetErrorKind::ChangeSetNotFoundError(_inner) => _inner.fmt(f), + DescribeChangeSetErrorKind::ChangeSetNotFoundException(_inner) => _inner.fmt(f), DescribeChangeSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1162,17 +1188,17 @@ impl DescribeChangeSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_change_set_not_found_error(&self) -> bool { + pub fn is_change_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeChangeSetErrorKind::ChangeSetNotFoundError(_) + DescribeChangeSetErrorKind::ChangeSetNotFoundException(_) ) } } impl std::error::Error for DescribeChangeSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeChangeSetErrorKind::ChangeSetNotFoundError(_inner) => Some(_inner), + DescribeChangeSetErrorKind::ChangeSetNotFoundException(_inner) => Some(_inner), DescribeChangeSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1334,16 +1360,16 @@ pub struct DescribeStackInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStackInstanceErrorKind { - StackInstanceNotFoundError(crate::error::StackInstanceNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), + StackInstanceNotFoundException(crate::error::StackInstanceNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStackInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStackInstanceErrorKind::StackInstanceNotFoundError(_inner) => _inner.fmt(f), - DescribeStackInstanceErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + DescribeStackInstanceErrorKind::StackInstanceNotFoundException(_inner) => _inner.fmt(f), + DescribeStackInstanceErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), DescribeStackInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1392,24 +1418,24 @@ impl DescribeStackInstanceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_stack_instance_not_found_error(&self) -> bool { + pub fn is_stack_instance_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStackInstanceErrorKind::StackInstanceNotFoundError(_) + DescribeStackInstanceErrorKind::StackInstanceNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStackInstanceErrorKind::StackSetNotFoundError(_) + DescribeStackInstanceErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for DescribeStackInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStackInstanceErrorKind::StackInstanceNotFoundError(_inner) => Some(_inner), - DescribeStackInstanceErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + DescribeStackInstanceErrorKind::StackInstanceNotFoundException(_inner) => Some(_inner), + DescribeStackInstanceErrorKind::StackSetNotFoundException(_inner) => Some(_inner), DescribeStackInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1712,14 +1738,14 @@ pub struct DescribeStackSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStackSetErrorKind { - StackSetNotFoundError(crate::error::StackSetNotFoundError), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStackSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStackSetErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + DescribeStackSetErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), DescribeStackSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1768,17 +1794,17 @@ impl DescribeStackSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStackSetErrorKind::StackSetNotFoundError(_) + DescribeStackSetErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for DescribeStackSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStackSetErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + DescribeStackSetErrorKind::StackSetNotFoundException(_inner) => Some(_inner), DescribeStackSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1793,16 +1819,16 @@ pub struct DescribeStackSetOperationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStackSetOperationErrorKind { - OperationNotFoundError(crate::error::OperationNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), + OperationNotFoundException(crate::error::OperationNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStackSetOperationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStackSetOperationErrorKind::OperationNotFoundError(_inner) => _inner.fmt(f), - DescribeStackSetOperationErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + DescribeStackSetOperationErrorKind::OperationNotFoundException(_inner) => _inner.fmt(f), + DescribeStackSetOperationErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), DescribeStackSetOperationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1851,24 +1877,24 @@ impl DescribeStackSetOperationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_operation_not_found_error(&self) -> bool { + pub fn is_operation_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStackSetOperationErrorKind::OperationNotFoundError(_) + DescribeStackSetOperationErrorKind::OperationNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStackSetOperationErrorKind::StackSetNotFoundError(_) + DescribeStackSetOperationErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for DescribeStackSetOperationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStackSetOperationErrorKind::OperationNotFoundError(_inner) => Some(_inner), - DescribeStackSetOperationErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + DescribeStackSetOperationErrorKind::OperationNotFoundException(_inner) => Some(_inner), + DescribeStackSetOperationErrorKind::StackSetNotFoundException(_inner) => Some(_inner), DescribeStackSetOperationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1883,16 +1909,16 @@ pub struct DescribeTypeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeTypeErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), - TypeNotFoundError(crate::error::TypeNotFoundError), + CfnRegistryException(crate::error::CfnRegistryException), + TypeNotFoundException(crate::error::TypeNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeTypeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeTypeErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), - DescribeTypeErrorKind::TypeNotFoundError(_inner) => _inner.fmt(f), + DescribeTypeErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), + DescribeTypeErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f), DescribeTypeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1941,18 +1967,18 @@ impl DescribeTypeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { - matches!(&self.kind, DescribeTypeErrorKind::CFNRegistryError(_)) + pub fn is_cfn_registry_exception(&self) -> bool { + matches!(&self.kind, DescribeTypeErrorKind::CfnRegistryException(_)) } - pub fn is_type_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeTypeErrorKind::TypeNotFoundError(_)) + pub fn is_type_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeTypeErrorKind::TypeNotFoundException(_)) } } impl std::error::Error for DescribeTypeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeTypeErrorKind::CFNRegistryError(_inner) => Some(_inner), - DescribeTypeErrorKind::TypeNotFoundError(_inner) => Some(_inner), + DescribeTypeErrorKind::CfnRegistryException(_inner) => Some(_inner), + DescribeTypeErrorKind::TypeNotFoundException(_inner) => Some(_inner), DescribeTypeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1967,14 +1993,14 @@ pub struct DescribeTypeRegistrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeTypeRegistrationErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), + CfnRegistryException(crate::error::CfnRegistryException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeTypeRegistrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeTypeRegistrationErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), + DescribeTypeRegistrationErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), DescribeTypeRegistrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2023,17 +2049,17 @@ impl DescribeTypeRegistrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { + pub fn is_cfn_registry_exception(&self) -> bool { matches!( &self.kind, - DescribeTypeRegistrationErrorKind::CFNRegistryError(_) + DescribeTypeRegistrationErrorKind::CfnRegistryException(_) ) } } impl std::error::Error for DescribeTypeRegistrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeTypeRegistrationErrorKind::CFNRegistryError(_inner) => Some(_inner), + DescribeTypeRegistrationErrorKind::CfnRegistryException(_inner) => Some(_inner), DescribeTypeRegistrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2192,18 +2218,18 @@ pub struct DetectStackSetDriftError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DetectStackSetDriftErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - OperationInProgressError(crate::error::OperationInProgressError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), + InvalidOperationException(crate::error::InvalidOperationException), + OperationInProgressException(crate::error::OperationInProgressException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DetectStackSetDriftError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DetectStackSetDriftErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - DetectStackSetDriftErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - DetectStackSetDriftErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + DetectStackSetDriftErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + DetectStackSetDriftErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + DetectStackSetDriftErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), DetectStackSetDriftErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2252,31 +2278,31 @@ impl DetectStackSetDriftError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - DetectStackSetDriftErrorKind::InvalidOperationError(_) + DetectStackSetDriftErrorKind::InvalidOperationException(_) ) } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - DetectStackSetDriftErrorKind::OperationInProgressError(_) + DetectStackSetDriftErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - DetectStackSetDriftErrorKind::StackSetNotFoundError(_) + DetectStackSetDriftErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for DetectStackSetDriftError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DetectStackSetDriftErrorKind::InvalidOperationError(_inner) => Some(_inner), - DetectStackSetDriftErrorKind::OperationInProgressError(_inner) => Some(_inner), - DetectStackSetDriftErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + DetectStackSetDriftErrorKind::InvalidOperationException(_inner) => Some(_inner), + DetectStackSetDriftErrorKind::OperationInProgressException(_inner) => Some(_inner), + DetectStackSetDriftErrorKind::StackSetNotFoundException(_inner) => Some(_inner), DetectStackSetDriftErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2363,20 +2389,20 @@ pub struct ExecuteChangeSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteChangeSetErrorKind { - ChangeSetNotFoundError(crate::error::ChangeSetNotFoundError), - InsufficientCapabilitiesError(crate::error::InsufficientCapabilitiesError), - InvalidChangeSetStatusError(crate::error::InvalidChangeSetStatusError), - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + ChangeSetNotFoundException(crate::error::ChangeSetNotFoundException), + InsufficientCapabilitiesException(crate::error::InsufficientCapabilitiesException), + InvalidChangeSetStatusException(crate::error::InvalidChangeSetStatusException), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExecuteChangeSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteChangeSetErrorKind::ChangeSetNotFoundError(_inner) => _inner.fmt(f), - ExecuteChangeSetErrorKind::InsufficientCapabilitiesError(_inner) => _inner.fmt(f), - ExecuteChangeSetErrorKind::InvalidChangeSetStatusError(_inner) => _inner.fmt(f), - ExecuteChangeSetErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + ExecuteChangeSetErrorKind::ChangeSetNotFoundException(_inner) => _inner.fmt(f), + ExecuteChangeSetErrorKind::InsufficientCapabilitiesException(_inner) => _inner.fmt(f), + ExecuteChangeSetErrorKind::InvalidChangeSetStatusException(_inner) => _inner.fmt(f), + ExecuteChangeSetErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), ExecuteChangeSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2425,38 +2451,38 @@ impl ExecuteChangeSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_change_set_not_found_error(&self) -> bool { + pub fn is_change_set_not_found_exception(&self) -> bool { matches!( &self.kind, - ExecuteChangeSetErrorKind::ChangeSetNotFoundError(_) + ExecuteChangeSetErrorKind::ChangeSetNotFoundException(_) ) } - pub fn is_insufficient_capabilities_error(&self) -> bool { + pub fn is_insufficient_capabilities_exception(&self) -> bool { matches!( &self.kind, - ExecuteChangeSetErrorKind::InsufficientCapabilitiesError(_) + ExecuteChangeSetErrorKind::InsufficientCapabilitiesException(_) ) } - pub fn is_invalid_change_set_status_error(&self) -> bool { + pub fn is_invalid_change_set_status_exception(&self) -> bool { matches!( &self.kind, - ExecuteChangeSetErrorKind::InvalidChangeSetStatusError(_) + ExecuteChangeSetErrorKind::InvalidChangeSetStatusException(_) ) } - pub fn is_token_already_exists_error(&self) -> bool { + pub fn is_token_already_exists_exception(&self) -> bool { matches!( &self.kind, - ExecuteChangeSetErrorKind::TokenAlreadyExistsError(_) + ExecuteChangeSetErrorKind::TokenAlreadyExistsException(_) ) } } impl std::error::Error for ExecuteChangeSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteChangeSetErrorKind::ChangeSetNotFoundError(_inner) => Some(_inner), - ExecuteChangeSetErrorKind::InsufficientCapabilitiesError(_inner) => Some(_inner), - ExecuteChangeSetErrorKind::InvalidChangeSetStatusError(_inner) => Some(_inner), - ExecuteChangeSetErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + ExecuteChangeSetErrorKind::ChangeSetNotFoundException(_inner) => Some(_inner), + ExecuteChangeSetErrorKind::InsufficientCapabilitiesException(_inner) => Some(_inner), + ExecuteChangeSetErrorKind::InvalidChangeSetStatusException(_inner) => Some(_inner), + ExecuteChangeSetErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), ExecuteChangeSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2543,14 +2569,14 @@ pub struct GetTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetTemplateErrorKind { - ChangeSetNotFoundError(crate::error::ChangeSetNotFoundError), + ChangeSetNotFoundException(crate::error::ChangeSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetTemplateErrorKind::ChangeSetNotFoundError(_inner) => _inner.fmt(f), + GetTemplateErrorKind::ChangeSetNotFoundException(_inner) => _inner.fmt(f), GetTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2599,14 +2625,17 @@ impl GetTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_change_set_not_found_error(&self) -> bool { - matches!(&self.kind, GetTemplateErrorKind::ChangeSetNotFoundError(_)) + pub fn is_change_set_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetTemplateErrorKind::ChangeSetNotFoundException(_) + ) } } impl std::error::Error for GetTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetTemplateErrorKind::ChangeSetNotFoundError(_inner) => Some(_inner), + GetTemplateErrorKind::ChangeSetNotFoundException(_inner) => Some(_inner), GetTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2621,14 +2650,14 @@ pub struct GetTemplateSummaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetTemplateSummaryErrorKind { - StackSetNotFoundError(crate::error::StackSetNotFoundError), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetTemplateSummaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetTemplateSummaryErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + GetTemplateSummaryErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), GetTemplateSummaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2677,17 +2706,17 @@ impl GetTemplateSummaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - GetTemplateSummaryErrorKind::StackSetNotFoundError(_) + GetTemplateSummaryErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for GetTemplateSummaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetTemplateSummaryErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + GetTemplateSummaryErrorKind::StackSetNotFoundException(_inner) => Some(_inner), GetTemplateSummaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2918,14 +2947,14 @@ pub struct ListStackInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListStackInstancesErrorKind { - StackSetNotFoundError(crate::error::StackSetNotFoundError), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListStackInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListStackInstancesErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + ListStackInstancesErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), ListStackInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2974,17 +3003,17 @@ impl ListStackInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - ListStackInstancesErrorKind::StackSetNotFoundError(_) + ListStackInstancesErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for ListStackInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListStackInstancesErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + ListStackInstancesErrorKind::StackSetNotFoundException(_inner) => Some(_inner), ListStackInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3143,16 +3172,20 @@ pub struct ListStackSetOperationResultsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListStackSetOperationResultsErrorKind { - OperationNotFoundError(crate::error::OperationNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), + OperationNotFoundException(crate::error::OperationNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListStackSetOperationResultsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListStackSetOperationResultsErrorKind::OperationNotFoundError(_inner) => _inner.fmt(f), - ListStackSetOperationResultsErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + ListStackSetOperationResultsErrorKind::OperationNotFoundException(_inner) => { + _inner.fmt(f) + } + ListStackSetOperationResultsErrorKind::StackSetNotFoundException(_inner) => { + _inner.fmt(f) + } ListStackSetOperationResultsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3201,24 +3234,28 @@ impl ListStackSetOperationResultsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_operation_not_found_error(&self) -> bool { + pub fn is_operation_not_found_exception(&self) -> bool { matches!( &self.kind, - ListStackSetOperationResultsErrorKind::OperationNotFoundError(_) + ListStackSetOperationResultsErrorKind::OperationNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - ListStackSetOperationResultsErrorKind::StackSetNotFoundError(_) + ListStackSetOperationResultsErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for ListStackSetOperationResultsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListStackSetOperationResultsErrorKind::OperationNotFoundError(_inner) => Some(_inner), - ListStackSetOperationResultsErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + ListStackSetOperationResultsErrorKind::OperationNotFoundException(_inner) => { + Some(_inner) + } + ListStackSetOperationResultsErrorKind::StackSetNotFoundException(_inner) => { + Some(_inner) + } ListStackSetOperationResultsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3233,14 +3270,14 @@ pub struct ListStackSetOperationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListStackSetOperationsErrorKind { - StackSetNotFoundError(crate::error::StackSetNotFoundError), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListStackSetOperationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListStackSetOperationsErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + ListStackSetOperationsErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), ListStackSetOperationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3289,17 +3326,17 @@ impl ListStackSetOperationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - ListStackSetOperationsErrorKind::StackSetNotFoundError(_) + ListStackSetOperationsErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for ListStackSetOperationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListStackSetOperationsErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + ListStackSetOperationsErrorKind::StackSetNotFoundException(_inner) => Some(_inner), ListStackSetOperationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3386,14 +3423,14 @@ pub struct ListTypeRegistrationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTypeRegistrationsErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), + CfnRegistryException(crate::error::CfnRegistryException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTypeRegistrationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTypeRegistrationsErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), + ListTypeRegistrationsErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), ListTypeRegistrationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3442,17 +3479,17 @@ impl ListTypeRegistrationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { + pub fn is_cfn_registry_exception(&self) -> bool { matches!( &self.kind, - ListTypeRegistrationsErrorKind::CFNRegistryError(_) + ListTypeRegistrationsErrorKind::CfnRegistryException(_) ) } } impl std::error::Error for ListTypeRegistrationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTypeRegistrationsErrorKind::CFNRegistryError(_inner) => Some(_inner), + ListTypeRegistrationsErrorKind::CfnRegistryException(_inner) => Some(_inner), ListTypeRegistrationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3467,14 +3504,14 @@ pub struct ListTypesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTypesErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), + CfnRegistryException(crate::error::CfnRegistryException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTypesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTypesErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), + ListTypesErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), ListTypesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3523,14 +3560,14 @@ impl ListTypesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { - matches!(&self.kind, ListTypesErrorKind::CFNRegistryError(_)) + pub fn is_cfn_registry_exception(&self) -> bool { + matches!(&self.kind, ListTypesErrorKind::CfnRegistryException(_)) } } impl std::error::Error for ListTypesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTypesErrorKind::CFNRegistryError(_inner) => Some(_inner), + ListTypesErrorKind::CfnRegistryException(_inner) => Some(_inner), ListTypesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3545,14 +3582,14 @@ pub struct ListTypeVersionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTypeVersionsErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), + CfnRegistryException(crate::error::CfnRegistryException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTypeVersionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTypeVersionsErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), + ListTypeVersionsErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), ListTypeVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3601,14 +3638,17 @@ impl ListTypeVersionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { - matches!(&self.kind, ListTypeVersionsErrorKind::CFNRegistryError(_)) + pub fn is_cfn_registry_exception(&self) -> bool { + matches!( + &self.kind, + ListTypeVersionsErrorKind::CfnRegistryException(_) + ) } } impl std::error::Error for ListTypeVersionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTypeVersionsErrorKind::CFNRegistryError(_inner) => Some(_inner), + ListTypeVersionsErrorKind::CfnRegistryException(_inner) => Some(_inner), ListTypeVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3623,16 +3663,18 @@ pub struct RecordHandlerProgressError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RecordHandlerProgressErrorKind { - InvalidStateTransitionError(crate::error::InvalidStateTransitionError), - OperationStatusCheckFailedError(crate::error::OperationStatusCheckFailedError), + InvalidStateTransitionException(crate::error::InvalidStateTransitionException), + OperationStatusCheckFailedException(crate::error::OperationStatusCheckFailedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RecordHandlerProgressError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RecordHandlerProgressErrorKind::InvalidStateTransitionError(_inner) => _inner.fmt(f), - RecordHandlerProgressErrorKind::OperationStatusCheckFailedError(_inner) => { + RecordHandlerProgressErrorKind::InvalidStateTransitionException(_inner) => { + _inner.fmt(f) + } + RecordHandlerProgressErrorKind::OperationStatusCheckFailedException(_inner) => { _inner.fmt(f) } RecordHandlerProgressErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -3683,24 +3725,26 @@ impl RecordHandlerProgressError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_state_transition_error(&self) -> bool { + pub fn is_invalid_state_transition_exception(&self) -> bool { matches!( &self.kind, - RecordHandlerProgressErrorKind::InvalidStateTransitionError(_) + RecordHandlerProgressErrorKind::InvalidStateTransitionException(_) ) } - pub fn is_operation_status_check_failed_error(&self) -> bool { + pub fn is_operation_status_check_failed_exception(&self) -> bool { matches!( &self.kind, - RecordHandlerProgressErrorKind::OperationStatusCheckFailedError(_) + RecordHandlerProgressErrorKind::OperationStatusCheckFailedException(_) ) } } impl std::error::Error for RecordHandlerProgressError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RecordHandlerProgressErrorKind::InvalidStateTransitionError(_inner) => Some(_inner), - RecordHandlerProgressErrorKind::OperationStatusCheckFailedError(_inner) => Some(_inner), + RecordHandlerProgressErrorKind::InvalidStateTransitionException(_inner) => Some(_inner), + RecordHandlerProgressErrorKind::OperationStatusCheckFailedException(_inner) => { + Some(_inner) + } RecordHandlerProgressErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3715,14 +3759,14 @@ pub struct RegisterTypeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterTypeErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), + CfnRegistryException(crate::error::CfnRegistryException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterTypeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterTypeErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), + RegisterTypeErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), RegisterTypeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3771,14 +3815,14 @@ impl RegisterTypeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { - matches!(&self.kind, RegisterTypeErrorKind::CFNRegistryError(_)) + pub fn is_cfn_registry_exception(&self) -> bool { + matches!(&self.kind, RegisterTypeErrorKind::CfnRegistryException(_)) } } impl std::error::Error for RegisterTypeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterTypeErrorKind::CFNRegistryError(_inner) => Some(_inner), + RegisterTypeErrorKind::CfnRegistryException(_inner) => Some(_inner), RegisterTypeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3865,16 +3909,16 @@ pub struct SetTypeDefaultVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetTypeDefaultVersionErrorKind { - CFNRegistryError(crate::error::CFNRegistryError), - TypeNotFoundError(crate::error::TypeNotFoundError), + CfnRegistryException(crate::error::CfnRegistryException), + TypeNotFoundException(crate::error::TypeNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetTypeDefaultVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetTypeDefaultVersionErrorKind::CFNRegistryError(_inner) => _inner.fmt(f), - SetTypeDefaultVersionErrorKind::TypeNotFoundError(_inner) => _inner.fmt(f), + SetTypeDefaultVersionErrorKind::CfnRegistryException(_inner) => _inner.fmt(f), + SetTypeDefaultVersionErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f), SetTypeDefaultVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3923,24 +3967,24 @@ impl SetTypeDefaultVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cfn_registry_error(&self) -> bool { + pub fn is_cfn_registry_exception(&self) -> bool { matches!( &self.kind, - SetTypeDefaultVersionErrorKind::CFNRegistryError(_) + SetTypeDefaultVersionErrorKind::CfnRegistryException(_) ) } - pub fn is_type_not_found_error(&self) -> bool { + pub fn is_type_not_found_exception(&self) -> bool { matches!( &self.kind, - SetTypeDefaultVersionErrorKind::TypeNotFoundError(_) + SetTypeDefaultVersionErrorKind::TypeNotFoundException(_) ) } } impl std::error::Error for SetTypeDefaultVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetTypeDefaultVersionErrorKind::CFNRegistryError(_inner) => Some(_inner), - SetTypeDefaultVersionErrorKind::TypeNotFoundError(_inner) => Some(_inner), + SetTypeDefaultVersionErrorKind::CfnRegistryException(_inner) => Some(_inner), + SetTypeDefaultVersionErrorKind::TypeNotFoundException(_inner) => Some(_inner), SetTypeDefaultVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4027,18 +4071,18 @@ pub struct StopStackSetOperationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopStackSetOperationErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - OperationNotFoundError(crate::error::OperationNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), + InvalidOperationException(crate::error::InvalidOperationException), + OperationNotFoundException(crate::error::OperationNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopStackSetOperationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopStackSetOperationErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - StopStackSetOperationErrorKind::OperationNotFoundError(_inner) => _inner.fmt(f), - StopStackSetOperationErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), + StopStackSetOperationErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + StopStackSetOperationErrorKind::OperationNotFoundException(_inner) => _inner.fmt(f), + StopStackSetOperationErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), StopStackSetOperationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4087,31 +4131,31 @@ impl StopStackSetOperationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - StopStackSetOperationErrorKind::InvalidOperationError(_) + StopStackSetOperationErrorKind::InvalidOperationException(_) ) } - pub fn is_operation_not_found_error(&self) -> bool { + pub fn is_operation_not_found_exception(&self) -> bool { matches!( &self.kind, - StopStackSetOperationErrorKind::OperationNotFoundError(_) + StopStackSetOperationErrorKind::OperationNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - StopStackSetOperationErrorKind::StackSetNotFoundError(_) + StopStackSetOperationErrorKind::StackSetNotFoundException(_) ) } } impl std::error::Error for StopStackSetOperationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopStackSetOperationErrorKind::InvalidOperationError(_inner) => Some(_inner), - StopStackSetOperationErrorKind::OperationNotFoundError(_inner) => Some(_inner), - StopStackSetOperationErrorKind::StackSetNotFoundError(_inner) => Some(_inner), + StopStackSetOperationErrorKind::InvalidOperationException(_inner) => Some(_inner), + StopStackSetOperationErrorKind::OperationNotFoundException(_inner) => Some(_inner), + StopStackSetOperationErrorKind::StackSetNotFoundException(_inner) => Some(_inner), StopStackSetOperationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4126,16 +4170,16 @@ pub struct UpdateStackError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateStackErrorKind { - InsufficientCapabilitiesError(crate::error::InsufficientCapabilitiesError), - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), + InsufficientCapabilitiesException(crate::error::InsufficientCapabilitiesException), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateStackError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateStackErrorKind::InsufficientCapabilitiesError(_inner) => _inner.fmt(f), - UpdateStackErrorKind::TokenAlreadyExistsError(_inner) => _inner.fmt(f), + UpdateStackErrorKind::InsufficientCapabilitiesException(_inner) => _inner.fmt(f), + UpdateStackErrorKind::TokenAlreadyExistsException(_inner) => _inner.fmt(f), UpdateStackErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4184,21 +4228,24 @@ impl UpdateStackError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_insufficient_capabilities_error(&self) -> bool { + pub fn is_insufficient_capabilities_exception(&self) -> bool { matches!( &self.kind, - UpdateStackErrorKind::InsufficientCapabilitiesError(_) + UpdateStackErrorKind::InsufficientCapabilitiesException(_) ) } - pub fn is_token_already_exists_error(&self) -> bool { - matches!(&self.kind, UpdateStackErrorKind::TokenAlreadyExistsError(_)) + pub fn is_token_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + UpdateStackErrorKind::TokenAlreadyExistsException(_) + ) } } impl std::error::Error for UpdateStackError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateStackErrorKind::InsufficientCapabilitiesError(_inner) => Some(_inner), - UpdateStackErrorKind::TokenAlreadyExistsError(_inner) => Some(_inner), + UpdateStackErrorKind::InsufficientCapabilitiesException(_inner) => Some(_inner), + UpdateStackErrorKind::TokenAlreadyExistsException(_inner) => Some(_inner), UpdateStackErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4213,24 +4260,26 @@ pub struct UpdateStackInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateStackInstancesErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - OperationIdAlreadyExistsError(crate::error::OperationIdAlreadyExistsError), - OperationInProgressError(crate::error::OperationInProgressError), - StackInstanceNotFoundError(crate::error::StackInstanceNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), - StaleRequestError(crate::error::StaleRequestError), + InvalidOperationException(crate::error::InvalidOperationException), + OperationIdAlreadyExistsException(crate::error::OperationIdAlreadyExistsException), + OperationInProgressException(crate::error::OperationInProgressException), + StackInstanceNotFoundException(crate::error::StackInstanceNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), + StaleRequestException(crate::error::StaleRequestException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateStackInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateStackInstancesErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - UpdateStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateStackInstancesErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - UpdateStackInstancesErrorKind::StackInstanceNotFoundError(_inner) => _inner.fmt(f), - UpdateStackInstancesErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), - UpdateStackInstancesErrorKind::StaleRequestError(_inner) => _inner.fmt(f), + UpdateStackInstancesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + UpdateStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + _inner.fmt(f) + } + UpdateStackInstancesErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + UpdateStackInstancesErrorKind::StackInstanceNotFoundException(_inner) => _inner.fmt(f), + UpdateStackInstancesErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), + UpdateStackInstancesErrorKind::StaleRequestException(_inner) => _inner.fmt(f), UpdateStackInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4279,52 +4328,54 @@ impl UpdateStackInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::InvalidOperationError(_) + UpdateStackInstancesErrorKind::InvalidOperationException(_) ) } - pub fn is_operation_id_already_exists_error(&self) -> bool { + pub fn is_operation_id_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::OperationIdAlreadyExistsError(_) + UpdateStackInstancesErrorKind::OperationIdAlreadyExistsException(_) ) } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::OperationInProgressError(_) + UpdateStackInstancesErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_instance_not_found_error(&self) -> bool { + pub fn is_stack_instance_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::StackInstanceNotFoundError(_) + UpdateStackInstancesErrorKind::StackInstanceNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::StackSetNotFoundError(_) + UpdateStackInstancesErrorKind::StackSetNotFoundException(_) ) } - pub fn is_stale_request_error(&self) -> bool { + pub fn is_stale_request_exception(&self) -> bool { matches!( &self.kind, - UpdateStackInstancesErrorKind::StaleRequestError(_) + UpdateStackInstancesErrorKind::StaleRequestException(_) ) } } impl std::error::Error for UpdateStackInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateStackInstancesErrorKind::InvalidOperationError(_inner) => Some(_inner), - UpdateStackInstancesErrorKind::OperationIdAlreadyExistsError(_inner) => Some(_inner), - UpdateStackInstancesErrorKind::OperationInProgressError(_inner) => Some(_inner), - UpdateStackInstancesErrorKind::StackInstanceNotFoundError(_inner) => Some(_inner), - UpdateStackInstancesErrorKind::StackSetNotFoundError(_inner) => Some(_inner), - UpdateStackInstancesErrorKind::StaleRequestError(_inner) => Some(_inner), + UpdateStackInstancesErrorKind::InvalidOperationException(_inner) => Some(_inner), + UpdateStackInstancesErrorKind::OperationIdAlreadyExistsException(_inner) => { + Some(_inner) + } + UpdateStackInstancesErrorKind::OperationInProgressException(_inner) => Some(_inner), + UpdateStackInstancesErrorKind::StackInstanceNotFoundException(_inner) => Some(_inner), + UpdateStackInstancesErrorKind::StackSetNotFoundException(_inner) => Some(_inner), + UpdateStackInstancesErrorKind::StaleRequestException(_inner) => Some(_inner), UpdateStackInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4339,24 +4390,24 @@ pub struct UpdateStackSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateStackSetErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - OperationIdAlreadyExistsError(crate::error::OperationIdAlreadyExistsError), - OperationInProgressError(crate::error::OperationInProgressError), - StackInstanceNotFoundError(crate::error::StackInstanceNotFoundError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), - StaleRequestError(crate::error::StaleRequestError), + InvalidOperationException(crate::error::InvalidOperationException), + OperationIdAlreadyExistsException(crate::error::OperationIdAlreadyExistsException), + OperationInProgressException(crate::error::OperationInProgressException), + StackInstanceNotFoundException(crate::error::StackInstanceNotFoundException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), + StaleRequestException(crate::error::StaleRequestException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateStackSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateStackSetErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - UpdateStackSetErrorKind::OperationIdAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateStackSetErrorKind::OperationInProgressError(_inner) => _inner.fmt(f), - UpdateStackSetErrorKind::StackInstanceNotFoundError(_inner) => _inner.fmt(f), - UpdateStackSetErrorKind::StackSetNotFoundError(_inner) => _inner.fmt(f), - UpdateStackSetErrorKind::StaleRequestError(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::OperationIdAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::OperationInProgressException(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::StackInstanceNotFoundException(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::StackSetNotFoundException(_inner) => _inner.fmt(f), + UpdateStackSetErrorKind::StaleRequestException(_inner) => _inner.fmt(f), UpdateStackSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4405,49 +4456,52 @@ impl UpdateStackSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - UpdateStackSetErrorKind::InvalidOperationError(_) + UpdateStackSetErrorKind::InvalidOperationException(_) ) } - pub fn is_operation_id_already_exists_error(&self) -> bool { + pub fn is_operation_id_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateStackSetErrorKind::OperationIdAlreadyExistsError(_) + UpdateStackSetErrorKind::OperationIdAlreadyExistsException(_) ) } - pub fn is_operation_in_progress_error(&self) -> bool { + pub fn is_operation_in_progress_exception(&self) -> bool { matches!( &self.kind, - UpdateStackSetErrorKind::OperationInProgressError(_) + UpdateStackSetErrorKind::OperationInProgressException(_) ) } - pub fn is_stack_instance_not_found_error(&self) -> bool { + pub fn is_stack_instance_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateStackSetErrorKind::StackInstanceNotFoundError(_) + UpdateStackSetErrorKind::StackInstanceNotFoundException(_) ) } - pub fn is_stack_set_not_found_error(&self) -> bool { + pub fn is_stack_set_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateStackSetErrorKind::StackSetNotFoundError(_) + UpdateStackSetErrorKind::StackSetNotFoundException(_) ) } - pub fn is_stale_request_error(&self) -> bool { - matches!(&self.kind, UpdateStackSetErrorKind::StaleRequestError(_)) + pub fn is_stale_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateStackSetErrorKind::StaleRequestException(_) + ) } } impl std::error::Error for UpdateStackSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateStackSetErrorKind::InvalidOperationError(_inner) => Some(_inner), - UpdateStackSetErrorKind::OperationIdAlreadyExistsError(_inner) => Some(_inner), - UpdateStackSetErrorKind::OperationInProgressError(_inner) => Some(_inner), - UpdateStackSetErrorKind::StackInstanceNotFoundError(_inner) => Some(_inner), - UpdateStackSetErrorKind::StackSetNotFoundError(_inner) => Some(_inner), - UpdateStackSetErrorKind::StaleRequestError(_inner) => Some(_inner), + UpdateStackSetErrorKind::InvalidOperationException(_inner) => Some(_inner), + UpdateStackSetErrorKind::OperationIdAlreadyExistsException(_inner) => Some(_inner), + UpdateStackSetErrorKind::OperationInProgressException(_inner) => Some(_inner), + UpdateStackSetErrorKind::StackInstanceNotFoundException(_inner) => Some(_inner), + UpdateStackSetErrorKind::StackSetNotFoundException(_inner) => Some(_inner), + UpdateStackSetErrorKind::StaleRequestException(_inner) => Some(_inner), UpdateStackSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4601,34 +4655,34 @@ impl std::error::Error for ValidateTemplateError { /// was performed.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StaleRequestError { +pub struct StaleRequestException { pub message: std::option::Option, } -impl std::fmt::Debug for StaleRequestError { +impl std::fmt::Debug for StaleRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StaleRequestError"); + let mut formatter = f.debug_struct("StaleRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl StaleRequestError { +impl StaleRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StaleRequestError { +impl std::fmt::Display for StaleRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "StaleRequestError [StaleRequestException]")?; + write!(f, "StaleRequestException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for StaleRequestError {} -/// See [`StaleRequestError`](crate::error::StaleRequestError) -pub mod stale_request_error { - /// A builder for [`StaleRequestError`](crate::error::StaleRequestError) +impl std::error::Error for StaleRequestException {} +/// See [`StaleRequestException`](crate::error::StaleRequestException) +pub mod stale_request_exception { + /// A builder for [`StaleRequestException`](crate::error::StaleRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4643,52 +4697,52 @@ pub mod stale_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`StaleRequestError`](crate::error::StaleRequestError) - pub fn build(self) -> crate::error::StaleRequestError { - crate::error::StaleRequestError { + /// Consumes the builder and constructs a [`StaleRequestException`](crate::error::StaleRequestException) + pub fn build(self) -> crate::error::StaleRequestException { + crate::error::StaleRequestException { message: self.message, } } } } -impl StaleRequestError { - /// Creates a new builder-style object to manufacture [`StaleRequestError`](crate::error::StaleRequestError) - pub fn builder() -> crate::error::stale_request_error::Builder { - crate::error::stale_request_error::Builder::default() +impl StaleRequestException { + /// Creates a new builder-style object to manufacture [`StaleRequestException`](crate::error::StaleRequestException) + pub fn builder() -> crate::error::stale_request_exception::Builder { + crate::error::stale_request_exception::Builder::default() } } ///

    The specified stack set doesn't exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StackSetNotFoundError { +pub struct StackSetNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for StackSetNotFoundError { +impl std::fmt::Debug for StackSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StackSetNotFoundError"); + let mut formatter = f.debug_struct("StackSetNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl StackSetNotFoundError { +impl StackSetNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StackSetNotFoundError { +impl std::fmt::Display for StackSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "StackSetNotFoundError [StackSetNotFoundException]")?; + write!(f, "StackSetNotFoundException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for StackSetNotFoundError {} -/// See [`StackSetNotFoundError`](crate::error::StackSetNotFoundError) -pub mod stack_set_not_found_error { - /// A builder for [`StackSetNotFoundError`](crate::error::StackSetNotFoundError) +impl std::error::Error for StackSetNotFoundException {} +/// See [`StackSetNotFoundException`](crate::error::StackSetNotFoundException) +pub mod stack_set_not_found_exception { + /// A builder for [`StackSetNotFoundException`](crate::error::StackSetNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4703,55 +4757,52 @@ pub mod stack_set_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`StackSetNotFoundError`](crate::error::StackSetNotFoundError) - pub fn build(self) -> crate::error::StackSetNotFoundError { - crate::error::StackSetNotFoundError { + /// Consumes the builder and constructs a [`StackSetNotFoundException`](crate::error::StackSetNotFoundException) + pub fn build(self) -> crate::error::StackSetNotFoundException { + crate::error::StackSetNotFoundException { message: self.message, } } } } -impl StackSetNotFoundError { - /// Creates a new builder-style object to manufacture [`StackSetNotFoundError`](crate::error::StackSetNotFoundError) - pub fn builder() -> crate::error::stack_set_not_found_error::Builder { - crate::error::stack_set_not_found_error::Builder::default() +impl StackSetNotFoundException { + /// Creates a new builder-style object to manufacture [`StackSetNotFoundException`](crate::error::StackSetNotFoundException) + pub fn builder() -> crate::error::stack_set_not_found_exception::Builder { + crate::error::stack_set_not_found_exception::Builder::default() } } ///

    The specified stack instance doesn't exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StackInstanceNotFoundError { +pub struct StackInstanceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for StackInstanceNotFoundError { +impl std::fmt::Debug for StackInstanceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StackInstanceNotFoundError"); + let mut formatter = f.debug_struct("StackInstanceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl StackInstanceNotFoundError { +impl StackInstanceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StackInstanceNotFoundError { +impl std::fmt::Display for StackInstanceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "StackInstanceNotFoundError [StackInstanceNotFoundException]" - )?; + write!(f, "StackInstanceNotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for StackInstanceNotFoundError {} -/// See [`StackInstanceNotFoundError`](crate::error::StackInstanceNotFoundError) -pub mod stack_instance_not_found_error { - /// A builder for [`StackInstanceNotFoundError`](crate::error::StackInstanceNotFoundError) +impl std::error::Error for StackInstanceNotFoundException {} +/// See [`StackInstanceNotFoundException`](crate::error::StackInstanceNotFoundException) +pub mod stack_instance_not_found_exception { + /// A builder for [`StackInstanceNotFoundException`](crate::error::StackInstanceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4766,18 +4817,18 @@ pub mod stack_instance_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`StackInstanceNotFoundError`](crate::error::StackInstanceNotFoundError) - pub fn build(self) -> crate::error::StackInstanceNotFoundError { - crate::error::StackInstanceNotFoundError { + /// Consumes the builder and constructs a [`StackInstanceNotFoundException`](crate::error::StackInstanceNotFoundException) + pub fn build(self) -> crate::error::StackInstanceNotFoundException { + crate::error::StackInstanceNotFoundException { message: self.message, } } } } -impl StackInstanceNotFoundError { - /// Creates a new builder-style object to manufacture [`StackInstanceNotFoundError`](crate::error::StackInstanceNotFoundError) - pub fn builder() -> crate::error::stack_instance_not_found_error::Builder { - crate::error::stack_instance_not_found_error::Builder::default() +impl StackInstanceNotFoundException { + /// Creates a new builder-style object to manufacture [`StackInstanceNotFoundException`](crate::error::StackInstanceNotFoundException) + pub fn builder() -> crate::error::stack_instance_not_found_exception::Builder { + crate::error::stack_instance_not_found_exception::Builder::default() } } @@ -4785,34 +4836,34 @@ impl StackInstanceNotFoundError { /// be performed for a stack set at a given time.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OperationInProgressError { +pub struct OperationInProgressException { pub message: std::option::Option, } -impl std::fmt::Debug for OperationInProgressError { +impl std::fmt::Debug for OperationInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OperationInProgressError"); + let mut formatter = f.debug_struct("OperationInProgressException"); formatter.field("message", &self.message); formatter.finish() } } -impl OperationInProgressError { +impl OperationInProgressException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OperationInProgressError { +impl std::fmt::Display for OperationInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OperationInProgressError [OperationInProgressException]")?; + write!(f, "OperationInProgressException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for OperationInProgressError {} -/// See [`OperationInProgressError`](crate::error::OperationInProgressError) -pub mod operation_in_progress_error { - /// A builder for [`OperationInProgressError`](crate::error::OperationInProgressError) +impl std::error::Error for OperationInProgressException {} +/// See [`OperationInProgressException`](crate::error::OperationInProgressException) +pub mod operation_in_progress_exception { + /// A builder for [`OperationInProgressException`](crate::error::OperationInProgressException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4827,55 +4878,52 @@ pub mod operation_in_progress_error { self.message = input; self } - /// Consumes the builder and constructs a [`OperationInProgressError`](crate::error::OperationInProgressError) - pub fn build(self) -> crate::error::OperationInProgressError { - crate::error::OperationInProgressError { + /// Consumes the builder and constructs a [`OperationInProgressException`](crate::error::OperationInProgressException) + pub fn build(self) -> crate::error::OperationInProgressException { + crate::error::OperationInProgressException { message: self.message, } } } } -impl OperationInProgressError { - /// Creates a new builder-style object to manufacture [`OperationInProgressError`](crate::error::OperationInProgressError) - pub fn builder() -> crate::error::operation_in_progress_error::Builder { - crate::error::operation_in_progress_error::Builder::default() +impl OperationInProgressException { + /// Creates a new builder-style object to manufacture [`OperationInProgressException`](crate::error::OperationInProgressException) + pub fn builder() -> crate::error::operation_in_progress_exception::Builder { + crate::error::operation_in_progress_exception::Builder::default() } } ///

    The specified operation ID already exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OperationIdAlreadyExistsError { +pub struct OperationIdAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for OperationIdAlreadyExistsError { +impl std::fmt::Debug for OperationIdAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OperationIdAlreadyExistsError"); + let mut formatter = f.debug_struct("OperationIdAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl OperationIdAlreadyExistsError { +impl OperationIdAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OperationIdAlreadyExistsError { +impl std::fmt::Display for OperationIdAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OperationIdAlreadyExistsError [OperationIdAlreadyExistsException]" - )?; + write!(f, "OperationIdAlreadyExistsException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for OperationIdAlreadyExistsError {} -/// See [`OperationIdAlreadyExistsError`](crate::error::OperationIdAlreadyExistsError) -pub mod operation_id_already_exists_error { - /// A builder for [`OperationIdAlreadyExistsError`](crate::error::OperationIdAlreadyExistsError) +impl std::error::Error for OperationIdAlreadyExistsException {} +/// See [`OperationIdAlreadyExistsException`](crate::error::OperationIdAlreadyExistsException) +pub mod operation_id_already_exists_exception { + /// A builder for [`OperationIdAlreadyExistsException`](crate::error::OperationIdAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4890,52 +4938,52 @@ pub mod operation_id_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`OperationIdAlreadyExistsError`](crate::error::OperationIdAlreadyExistsError) - pub fn build(self) -> crate::error::OperationIdAlreadyExistsError { - crate::error::OperationIdAlreadyExistsError { + /// Consumes the builder and constructs a [`OperationIdAlreadyExistsException`](crate::error::OperationIdAlreadyExistsException) + pub fn build(self) -> crate::error::OperationIdAlreadyExistsException { + crate::error::OperationIdAlreadyExistsException { message: self.message, } } } } -impl OperationIdAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`OperationIdAlreadyExistsError`](crate::error::OperationIdAlreadyExistsError) - pub fn builder() -> crate::error::operation_id_already_exists_error::Builder { - crate::error::operation_id_already_exists_error::Builder::default() +impl OperationIdAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`OperationIdAlreadyExistsException`](crate::error::OperationIdAlreadyExistsException) + pub fn builder() -> crate::error::operation_id_already_exists_exception::Builder { + crate::error::operation_id_already_exists_exception::Builder::default() } } ///

    The specified operation isn't valid.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidOperationError { +pub struct InvalidOperationException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidOperationError { +impl std::fmt::Debug for InvalidOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidOperationError"); + let mut formatter = f.debug_struct("InvalidOperationException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidOperationError { +impl InvalidOperationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidOperationError { +impl std::fmt::Display for InvalidOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidOperationError [InvalidOperationException]")?; + write!(f, "InvalidOperationException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for InvalidOperationError {} -/// See [`InvalidOperationError`](crate::error::InvalidOperationError) -pub mod invalid_operation_error { - /// A builder for [`InvalidOperationError`](crate::error::InvalidOperationError) +impl std::error::Error for InvalidOperationException {} +/// See [`InvalidOperationException`](crate::error::InvalidOperationException) +pub mod invalid_operation_exception { + /// A builder for [`InvalidOperationException`](crate::error::InvalidOperationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4950,52 +4998,52 @@ pub mod invalid_operation_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidOperationError`](crate::error::InvalidOperationError) - pub fn build(self) -> crate::error::InvalidOperationError { - crate::error::InvalidOperationError { + /// Consumes the builder and constructs a [`InvalidOperationException`](crate::error::InvalidOperationException) + pub fn build(self) -> crate::error::InvalidOperationException { + crate::error::InvalidOperationException { message: self.message, } } } } -impl InvalidOperationError { - /// Creates a new builder-style object to manufacture [`InvalidOperationError`](crate::error::InvalidOperationError) - pub fn builder() -> crate::error::invalid_operation_error::Builder { - crate::error::invalid_operation_error::Builder::default() +impl InvalidOperationException { + /// Creates a new builder-style object to manufacture [`InvalidOperationException`](crate::error::InvalidOperationException) + pub fn builder() -> crate::error::invalid_operation_exception::Builder { + crate::error::invalid_operation_exception::Builder::default() } } ///

    A client request token already exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TokenAlreadyExistsError { +pub struct TokenAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for TokenAlreadyExistsError { +impl std::fmt::Debug for TokenAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TokenAlreadyExistsError"); + let mut formatter = f.debug_struct("TokenAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl TokenAlreadyExistsError { +impl TokenAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TokenAlreadyExistsError { +impl std::fmt::Display for TokenAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TokenAlreadyExistsError [TokenAlreadyExistsException]")?; + write!(f, "TokenAlreadyExistsException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for TokenAlreadyExistsError {} -/// See [`TokenAlreadyExistsError`](crate::error::TokenAlreadyExistsError) -pub mod token_already_exists_error { - /// A builder for [`TokenAlreadyExistsError`](crate::error::TokenAlreadyExistsError) +impl std::error::Error for TokenAlreadyExistsException {} +/// See [`TokenAlreadyExistsException`](crate::error::TokenAlreadyExistsException) +pub mod token_already_exists_exception { + /// A builder for [`TokenAlreadyExistsException`](crate::error::TokenAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5010,18 +5058,18 @@ pub mod token_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`TokenAlreadyExistsError`](crate::error::TokenAlreadyExistsError) - pub fn build(self) -> crate::error::TokenAlreadyExistsError { - crate::error::TokenAlreadyExistsError { + /// Consumes the builder and constructs a [`TokenAlreadyExistsException`](crate::error::TokenAlreadyExistsException) + pub fn build(self) -> crate::error::TokenAlreadyExistsException { + crate::error::TokenAlreadyExistsException { message: self.message, } } } } -impl TokenAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`TokenAlreadyExistsError`](crate::error::TokenAlreadyExistsError) - pub fn builder() -> crate::error::token_already_exists_error::Builder { - crate::error::token_already_exists_error::Builder::default() +impl TokenAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`TokenAlreadyExistsException`](crate::error::TokenAlreadyExistsException) + pub fn builder() -> crate::error::token_already_exists_exception::Builder { + crate::error::token_already_exists_exception::Builder::default() } } @@ -5029,37 +5077,34 @@ impl TokenAlreadyExistsError { /// Capabilities parameter.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InsufficientCapabilitiesError { +pub struct InsufficientCapabilitiesException { pub message: std::option::Option, } -impl std::fmt::Debug for InsufficientCapabilitiesError { +impl std::fmt::Debug for InsufficientCapabilitiesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InsufficientCapabilitiesError"); + let mut formatter = f.debug_struct("InsufficientCapabilitiesException"); formatter.field("message", &self.message); formatter.finish() } } -impl InsufficientCapabilitiesError { +impl InsufficientCapabilitiesException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InsufficientCapabilitiesError { +impl std::fmt::Display for InsufficientCapabilitiesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InsufficientCapabilitiesError [InsufficientCapabilitiesException]" - )?; + write!(f, "InsufficientCapabilitiesException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for InsufficientCapabilitiesError {} -/// See [`InsufficientCapabilitiesError`](crate::error::InsufficientCapabilitiesError) -pub mod insufficient_capabilities_error { - /// A builder for [`InsufficientCapabilitiesError`](crate::error::InsufficientCapabilitiesError) +impl std::error::Error for InsufficientCapabilitiesException {} +/// See [`InsufficientCapabilitiesException`](crate::error::InsufficientCapabilitiesException) +pub mod insufficient_capabilities_exception { + /// A builder for [`InsufficientCapabilitiesException`](crate::error::InsufficientCapabilitiesException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5074,52 +5119,52 @@ pub mod insufficient_capabilities_error { self.message = input; self } - /// Consumes the builder and constructs a [`InsufficientCapabilitiesError`](crate::error::InsufficientCapabilitiesError) - pub fn build(self) -> crate::error::InsufficientCapabilitiesError { - crate::error::InsufficientCapabilitiesError { + /// Consumes the builder and constructs a [`InsufficientCapabilitiesException`](crate::error::InsufficientCapabilitiesException) + pub fn build(self) -> crate::error::InsufficientCapabilitiesException { + crate::error::InsufficientCapabilitiesException { message: self.message, } } } } -impl InsufficientCapabilitiesError { - /// Creates a new builder-style object to manufacture [`InsufficientCapabilitiesError`](crate::error::InsufficientCapabilitiesError) - pub fn builder() -> crate::error::insufficient_capabilities_error::Builder { - crate::error::insufficient_capabilities_error::Builder::default() +impl InsufficientCapabilitiesException { + /// Creates a new builder-style object to manufacture [`InsufficientCapabilitiesException`](crate::error::InsufficientCapabilitiesException) + pub fn builder() -> crate::error::insufficient_capabilities_exception::Builder { + crate::error::insufficient_capabilities_exception::Builder::default() } } ///

    The specified ID refers to an operation that doesn't exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OperationNotFoundError { +pub struct OperationNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for OperationNotFoundError { +impl std::fmt::Debug for OperationNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OperationNotFoundError"); + let mut formatter = f.debug_struct("OperationNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl OperationNotFoundError { +impl OperationNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OperationNotFoundError { +impl std::fmt::Display for OperationNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OperationNotFoundError [OperationNotFoundException]")?; + write!(f, "OperationNotFoundException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for OperationNotFoundError {} -/// See [`OperationNotFoundError`](crate::error::OperationNotFoundError) -pub mod operation_not_found_error { - /// A builder for [`OperationNotFoundError`](crate::error::OperationNotFoundError) +impl std::error::Error for OperationNotFoundException {} +/// See [`OperationNotFoundException`](crate::error::OperationNotFoundException) +pub mod operation_not_found_exception { + /// A builder for [`OperationNotFoundException`](crate::error::OperationNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5134,52 +5179,52 @@ pub mod operation_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`OperationNotFoundError`](crate::error::OperationNotFoundError) - pub fn build(self) -> crate::error::OperationNotFoundError { - crate::error::OperationNotFoundError { + /// Consumes the builder and constructs a [`OperationNotFoundException`](crate::error::OperationNotFoundException) + pub fn build(self) -> crate::error::OperationNotFoundException { + crate::error::OperationNotFoundException { message: self.message, } } } } -impl OperationNotFoundError { - /// Creates a new builder-style object to manufacture [`OperationNotFoundError`](crate::error::OperationNotFoundError) - pub fn builder() -> crate::error::operation_not_found_error::Builder { - crate::error::operation_not_found_error::Builder::default() +impl OperationNotFoundException { + /// Creates a new builder-style object to manufacture [`OperationNotFoundException`](crate::error::OperationNotFoundException) + pub fn builder() -> crate::error::operation_not_found_exception::Builder { + crate::error::operation_not_found_exception::Builder::default() } } ///

    The specified type does not exist in the CloudFormation registry.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TypeNotFoundError { +pub struct TypeNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for TypeNotFoundError { +impl std::fmt::Debug for TypeNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TypeNotFoundError"); + let mut formatter = f.debug_struct("TypeNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl TypeNotFoundError { +impl TypeNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TypeNotFoundError { +impl std::fmt::Display for TypeNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TypeNotFoundError [TypeNotFoundException]")?; + write!(f, "TypeNotFoundException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for TypeNotFoundError {} -/// See [`TypeNotFoundError`](crate::error::TypeNotFoundError) -pub mod type_not_found_error { - /// A builder for [`TypeNotFoundError`](crate::error::TypeNotFoundError) +impl std::error::Error for TypeNotFoundException {} +/// See [`TypeNotFoundException`](crate::error::TypeNotFoundException) +pub mod type_not_found_exception { + /// A builder for [`TypeNotFoundException`](crate::error::TypeNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5194,52 +5239,52 @@ pub mod type_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`TypeNotFoundError`](crate::error::TypeNotFoundError) - pub fn build(self) -> crate::error::TypeNotFoundError { - crate::error::TypeNotFoundError { + /// Consumes the builder and constructs a [`TypeNotFoundException`](crate::error::TypeNotFoundException) + pub fn build(self) -> crate::error::TypeNotFoundException { + crate::error::TypeNotFoundException { message: self.message, } } } } -impl TypeNotFoundError { - /// Creates a new builder-style object to manufacture [`TypeNotFoundError`](crate::error::TypeNotFoundError) - pub fn builder() -> crate::error::type_not_found_error::Builder { - crate::error::type_not_found_error::Builder::default() +impl TypeNotFoundException { + /// Creates a new builder-style object to manufacture [`TypeNotFoundException`](crate::error::TypeNotFoundException) + pub fn builder() -> crate::error::type_not_found_exception::Builder { + crate::error::type_not_found_exception::Builder::default() } } ///

    An error occurred during a CloudFormation registry operation.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CFNRegistryError { +pub struct CfnRegistryException { pub message: std::option::Option, } -impl std::fmt::Debug for CFNRegistryError { +impl std::fmt::Debug for CfnRegistryException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CFNRegistryError"); + let mut formatter = f.debug_struct("CfnRegistryException"); formatter.field("message", &self.message); formatter.finish() } } -impl CFNRegistryError { +impl CfnRegistryException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CFNRegistryError { +impl std::fmt::Display for CfnRegistryException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "CFNRegistryError [CFNRegistryException]")?; + write!(f, "CfnRegistryException [CFNRegistryException]")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for CFNRegistryError {} -/// See [`CFNRegistryError`](crate::error::CFNRegistryError) -pub mod cfn_registry_error { - /// A builder for [`CFNRegistryError`](crate::error::CFNRegistryError) +impl std::error::Error for CfnRegistryException {} +/// See [`CfnRegistryException`](crate::error::CfnRegistryException) +pub mod cfn_registry_exception { + /// A builder for [`CfnRegistryException`](crate::error::CfnRegistryException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5254,55 +5299,52 @@ pub mod cfn_registry_error { self.message = input; self } - /// Consumes the builder and constructs a [`CFNRegistryError`](crate::error::CFNRegistryError) - pub fn build(self) -> crate::error::CFNRegistryError { - crate::error::CFNRegistryError { + /// Consumes the builder and constructs a [`CfnRegistryException`](crate::error::CfnRegistryException) + pub fn build(self) -> crate::error::CfnRegistryException { + crate::error::CfnRegistryException { message: self.message, } } } } -impl CFNRegistryError { - /// Creates a new builder-style object to manufacture [`CFNRegistryError`](crate::error::CFNRegistryError) - pub fn builder() -> crate::error::cfn_registry_error::Builder { - crate::error::cfn_registry_error::Builder::default() +impl CfnRegistryException { + /// Creates a new builder-style object to manufacture [`CfnRegistryException`](crate::error::CfnRegistryException) + pub fn builder() -> crate::error::cfn_registry_exception::Builder { + crate::error::cfn_registry_exception::Builder::default() } } ///

    Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OperationStatusCheckFailedError { +pub struct OperationStatusCheckFailedException { pub message: std::option::Option, } -impl std::fmt::Debug for OperationStatusCheckFailedError { +impl std::fmt::Debug for OperationStatusCheckFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OperationStatusCheckFailedError"); + let mut formatter = f.debug_struct("OperationStatusCheckFailedException"); formatter.field("message", &self.message); formatter.finish() } } -impl OperationStatusCheckFailedError { +impl OperationStatusCheckFailedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OperationStatusCheckFailedError { +impl std::fmt::Display for OperationStatusCheckFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OperationStatusCheckFailedError [OperationStatusCheckFailedException]" - )?; + write!(f, "OperationStatusCheckFailedException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for OperationStatusCheckFailedError {} -/// See [`OperationStatusCheckFailedError`](crate::error::OperationStatusCheckFailedError) -pub mod operation_status_check_failed_error { - /// A builder for [`OperationStatusCheckFailedError`](crate::error::OperationStatusCheckFailedError) +impl std::error::Error for OperationStatusCheckFailedException {} +/// See [`OperationStatusCheckFailedException`](crate::error::OperationStatusCheckFailedException) +pub mod operation_status_check_failed_exception { + /// A builder for [`OperationStatusCheckFailedException`](crate::error::OperationStatusCheckFailedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5317,55 +5359,52 @@ pub mod operation_status_check_failed_error { self.message = input; self } - /// Consumes the builder and constructs a [`OperationStatusCheckFailedError`](crate::error::OperationStatusCheckFailedError) - pub fn build(self) -> crate::error::OperationStatusCheckFailedError { - crate::error::OperationStatusCheckFailedError { + /// Consumes the builder and constructs a [`OperationStatusCheckFailedException`](crate::error::OperationStatusCheckFailedException) + pub fn build(self) -> crate::error::OperationStatusCheckFailedException { + crate::error::OperationStatusCheckFailedException { message: self.message, } } } } -impl OperationStatusCheckFailedError { - /// Creates a new builder-style object to manufacture [`OperationStatusCheckFailedError`](crate::error::OperationStatusCheckFailedError) - pub fn builder() -> crate::error::operation_status_check_failed_error::Builder { - crate::error::operation_status_check_failed_error::Builder::default() +impl OperationStatusCheckFailedException { + /// Creates a new builder-style object to manufacture [`OperationStatusCheckFailedException`](crate::error::OperationStatusCheckFailedException) + pub fn builder() -> crate::error::operation_status_check_failed_exception::Builder { + crate::error::operation_status_check_failed_exception::Builder::default() } } ///

    Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidStateTransitionError { +pub struct InvalidStateTransitionException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidStateTransitionError { +impl std::fmt::Debug for InvalidStateTransitionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidStateTransitionError"); + let mut formatter = f.debug_struct("InvalidStateTransitionException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidStateTransitionError { +impl InvalidStateTransitionException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidStateTransitionError { +impl std::fmt::Display for InvalidStateTransitionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidStateTransitionError [InvalidStateTransitionException]" - )?; + write!(f, "InvalidStateTransitionException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for InvalidStateTransitionError {} -/// See [`InvalidStateTransitionError`](crate::error::InvalidStateTransitionError) -pub mod invalid_state_transition_error { - /// A builder for [`InvalidStateTransitionError`](crate::error::InvalidStateTransitionError) +impl std::error::Error for InvalidStateTransitionException {} +/// See [`InvalidStateTransitionException`](crate::error::InvalidStateTransitionException) +pub mod invalid_state_transition_exception { + /// A builder for [`InvalidStateTransitionException`](crate::error::InvalidStateTransitionException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5380,18 +5419,18 @@ pub mod invalid_state_transition_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidStateTransitionError`](crate::error::InvalidStateTransitionError) - pub fn build(self) -> crate::error::InvalidStateTransitionError { - crate::error::InvalidStateTransitionError { + /// Consumes the builder and constructs a [`InvalidStateTransitionException`](crate::error::InvalidStateTransitionException) + pub fn build(self) -> crate::error::InvalidStateTransitionException { + crate::error::InvalidStateTransitionException { message: self.message, } } } } -impl InvalidStateTransitionError { - /// Creates a new builder-style object to manufacture [`InvalidStateTransitionError`](crate::error::InvalidStateTransitionError) - pub fn builder() -> crate::error::invalid_state_transition_error::Builder { - crate::error::invalid_state_transition_error::Builder::default() +impl InvalidStateTransitionException { + /// Creates a new builder-style object to manufacture [`InvalidStateTransitionException`](crate::error::InvalidStateTransitionException) + pub fn builder() -> crate::error::invalid_state_transition_exception::Builder { + crate::error::invalid_state_transition_exception::Builder::default() } } @@ -5399,34 +5438,34 @@ impl InvalidStateTransitionError { /// stack, use the ListChangeSets action.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ChangeSetNotFoundError { +pub struct ChangeSetNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ChangeSetNotFoundError { +impl std::fmt::Debug for ChangeSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ChangeSetNotFoundError"); + let mut formatter = f.debug_struct("ChangeSetNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ChangeSetNotFoundError { +impl ChangeSetNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ChangeSetNotFoundError { +impl std::fmt::Display for ChangeSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ChangeSetNotFoundError [ChangeSetNotFoundException]")?; + write!(f, "ChangeSetNotFoundException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for ChangeSetNotFoundError {} -/// See [`ChangeSetNotFoundError`](crate::error::ChangeSetNotFoundError) -pub mod change_set_not_found_error { - /// A builder for [`ChangeSetNotFoundError`](crate::error::ChangeSetNotFoundError) +impl std::error::Error for ChangeSetNotFoundException {} +/// See [`ChangeSetNotFoundException`](crate::error::ChangeSetNotFoundException) +pub mod change_set_not_found_exception { + /// A builder for [`ChangeSetNotFoundException`](crate::error::ChangeSetNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5441,18 +5480,18 @@ pub mod change_set_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ChangeSetNotFoundError`](crate::error::ChangeSetNotFoundError) - pub fn build(self) -> crate::error::ChangeSetNotFoundError { - crate::error::ChangeSetNotFoundError { + /// Consumes the builder and constructs a [`ChangeSetNotFoundException`](crate::error::ChangeSetNotFoundException) + pub fn build(self) -> crate::error::ChangeSetNotFoundException { + crate::error::ChangeSetNotFoundException { message: self.message, } } } } -impl ChangeSetNotFoundError { - /// Creates a new builder-style object to manufacture [`ChangeSetNotFoundError`](crate::error::ChangeSetNotFoundError) - pub fn builder() -> crate::error::change_set_not_found_error::Builder { - crate::error::change_set_not_found_error::Builder::default() +impl ChangeSetNotFoundException { + /// Creates a new builder-style object to manufacture [`ChangeSetNotFoundException`](crate::error::ChangeSetNotFoundException) + pub fn builder() -> crate::error::change_set_not_found_exception::Builder { + crate::error::change_set_not_found_exception::Builder::default() } } @@ -5461,37 +5500,34 @@ impl ChangeSetNotFoundError { /// UPDATE_IN_PROGRESS.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidChangeSetStatusError { +pub struct InvalidChangeSetStatusException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidChangeSetStatusError { +impl std::fmt::Debug for InvalidChangeSetStatusException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidChangeSetStatusError"); + let mut formatter = f.debug_struct("InvalidChangeSetStatusException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidChangeSetStatusError { +impl InvalidChangeSetStatusException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidChangeSetStatusError { +impl std::fmt::Display for InvalidChangeSetStatusException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidChangeSetStatusError [InvalidChangeSetStatusException]" - )?; + write!(f, "InvalidChangeSetStatusException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for InvalidChangeSetStatusError {} -/// See [`InvalidChangeSetStatusError`](crate::error::InvalidChangeSetStatusError) -pub mod invalid_change_set_status_error { - /// A builder for [`InvalidChangeSetStatusError`](crate::error::InvalidChangeSetStatusError) +impl std::error::Error for InvalidChangeSetStatusException {} +/// See [`InvalidChangeSetStatusException`](crate::error::InvalidChangeSetStatusException) +pub mod invalid_change_set_status_exception { + /// A builder for [`InvalidChangeSetStatusException`](crate::error::InvalidChangeSetStatusException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5506,18 +5542,18 @@ pub mod invalid_change_set_status_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidChangeSetStatusError`](crate::error::InvalidChangeSetStatusError) - pub fn build(self) -> crate::error::InvalidChangeSetStatusError { - crate::error::InvalidChangeSetStatusError { + /// Consumes the builder and constructs a [`InvalidChangeSetStatusException`](crate::error::InvalidChangeSetStatusException) + pub fn build(self) -> crate::error::InvalidChangeSetStatusException { + crate::error::InvalidChangeSetStatusException { message: self.message, } } } } -impl InvalidChangeSetStatusError { - /// Creates a new builder-style object to manufacture [`InvalidChangeSetStatusError`](crate::error::InvalidChangeSetStatusError) - pub fn builder() -> crate::error::invalid_change_set_status_error::Builder { - crate::error::invalid_change_set_status_error::Builder::default() +impl InvalidChangeSetStatusException { + /// Creates a new builder-style object to manufacture [`InvalidChangeSetStatusException`](crate::error::InvalidChangeSetStatusException) + pub fn builder() -> crate::error::invalid_change_set_status_exception::Builder { + crate::error::invalid_change_set_status_exception::Builder::default() } } @@ -5526,34 +5562,34 @@ impl InvalidChangeSetStatusError { /// set.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StackSetNotEmptyError { +pub struct StackSetNotEmptyException { pub message: std::option::Option, } -impl std::fmt::Debug for StackSetNotEmptyError { +impl std::fmt::Debug for StackSetNotEmptyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StackSetNotEmptyError"); + let mut formatter = f.debug_struct("StackSetNotEmptyException"); formatter.field("message", &self.message); formatter.finish() } } -impl StackSetNotEmptyError { +impl StackSetNotEmptyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StackSetNotEmptyError { +impl std::fmt::Display for StackSetNotEmptyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "StackSetNotEmptyError [StackSetNotEmptyException]")?; + write!(f, "StackSetNotEmptyException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for StackSetNotEmptyError {} -/// See [`StackSetNotEmptyError`](crate::error::StackSetNotEmptyError) -pub mod stack_set_not_empty_error { - /// A builder for [`StackSetNotEmptyError`](crate::error::StackSetNotEmptyError) +impl std::error::Error for StackSetNotEmptyException {} +/// See [`StackSetNotEmptyException`](crate::error::StackSetNotEmptyException) +pub mod stack_set_not_empty_exception { + /// A builder for [`StackSetNotEmptyException`](crate::error::StackSetNotEmptyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5568,52 +5604,52 @@ pub mod stack_set_not_empty_error { self.message = input; self } - /// Consumes the builder and constructs a [`StackSetNotEmptyError`](crate::error::StackSetNotEmptyError) - pub fn build(self) -> crate::error::StackSetNotEmptyError { - crate::error::StackSetNotEmptyError { + /// Consumes the builder and constructs a [`StackSetNotEmptyException`](crate::error::StackSetNotEmptyException) + pub fn build(self) -> crate::error::StackSetNotEmptyException { + crate::error::StackSetNotEmptyException { message: self.message, } } } } -impl StackSetNotEmptyError { - /// Creates a new builder-style object to manufacture [`StackSetNotEmptyError`](crate::error::StackSetNotEmptyError) - pub fn builder() -> crate::error::stack_set_not_empty_error::Builder { - crate::error::stack_set_not_empty_error::Builder::default() +impl StackSetNotEmptyException { + /// Creates a new builder-style object to manufacture [`StackSetNotEmptyException`](crate::error::StackSetNotEmptyException) + pub fn builder() -> crate::error::stack_set_not_empty_exception::Builder { + crate::error::stack_set_not_empty_exception::Builder::default() } } ///

    The specified name is already in use.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct NameAlreadyExistsError { +pub struct NameAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for NameAlreadyExistsError { +impl std::fmt::Debug for NameAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NameAlreadyExistsError"); + let mut formatter = f.debug_struct("NameAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl NameAlreadyExistsError { +impl NameAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NameAlreadyExistsError { +impl std::fmt::Display for NameAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NameAlreadyExistsError [NameAlreadyExistsException]")?; + write!(f, "NameAlreadyExistsException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for NameAlreadyExistsError {} -/// See [`NameAlreadyExistsError`](crate::error::NameAlreadyExistsError) -pub mod name_already_exists_error { - /// A builder for [`NameAlreadyExistsError`](crate::error::NameAlreadyExistsError) +impl std::error::Error for NameAlreadyExistsException {} +/// See [`NameAlreadyExistsException`](crate::error::NameAlreadyExistsException) +pub mod name_already_exists_exception { + /// A builder for [`NameAlreadyExistsException`](crate::error::NameAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5628,18 +5664,18 @@ pub mod name_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`NameAlreadyExistsError`](crate::error::NameAlreadyExistsError) - pub fn build(self) -> crate::error::NameAlreadyExistsError { - crate::error::NameAlreadyExistsError { + /// Consumes the builder and constructs a [`NameAlreadyExistsException`](crate::error::NameAlreadyExistsException) + pub fn build(self) -> crate::error::NameAlreadyExistsException { + crate::error::NameAlreadyExistsException { message: self.message, } } } } -impl NameAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`NameAlreadyExistsError`](crate::error::NameAlreadyExistsError) - pub fn builder() -> crate::error::name_already_exists_error::Builder { - crate::error::name_already_exists_error::Builder::default() +impl NameAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`NameAlreadyExistsException`](crate::error::NameAlreadyExistsException) + pub fn builder() -> crate::error::name_already_exists_exception::Builder { + crate::error::name_already_exists_exception::Builder::default() } } @@ -5648,34 +5684,34 @@ impl NameAlreadyExistsError { /// the AWS CloudFormation User Guide.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5690,52 +5726,52 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    The specified resource exists, but has been changed.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatedButModifiedError { +pub struct CreatedButModifiedException { pub message: std::option::Option, } -impl std::fmt::Debug for CreatedButModifiedError { +impl std::fmt::Debug for CreatedButModifiedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatedButModifiedError"); + let mut formatter = f.debug_struct("CreatedButModifiedException"); formatter.field("message", &self.message); formatter.finish() } } -impl CreatedButModifiedError { +impl CreatedButModifiedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CreatedButModifiedError { +impl std::fmt::Display for CreatedButModifiedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "CreatedButModifiedError [CreatedButModifiedException]")?; + write!(f, "CreatedButModifiedException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for CreatedButModifiedError {} -/// See [`CreatedButModifiedError`](crate::error::CreatedButModifiedError) -pub mod created_but_modified_error { - /// A builder for [`CreatedButModifiedError`](crate::error::CreatedButModifiedError) +impl std::error::Error for CreatedButModifiedException {} +/// See [`CreatedButModifiedException`](crate::error::CreatedButModifiedException) +pub mod created_but_modified_exception { + /// A builder for [`CreatedButModifiedException`](crate::error::CreatedButModifiedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5750,52 +5786,52 @@ pub mod created_but_modified_error { self.message = input; self } - /// Consumes the builder and constructs a [`CreatedButModifiedError`](crate::error::CreatedButModifiedError) - pub fn build(self) -> crate::error::CreatedButModifiedError { - crate::error::CreatedButModifiedError { + /// Consumes the builder and constructs a [`CreatedButModifiedException`](crate::error::CreatedButModifiedException) + pub fn build(self) -> crate::error::CreatedButModifiedException { + crate::error::CreatedButModifiedException { message: self.message, } } } } -impl CreatedButModifiedError { - /// Creates a new builder-style object to manufacture [`CreatedButModifiedError`](crate::error::CreatedButModifiedError) - pub fn builder() -> crate::error::created_but_modified_error::Builder { - crate::error::created_but_modified_error::Builder::default() +impl CreatedButModifiedException { + /// Creates a new builder-style object to manufacture [`CreatedButModifiedException`](crate::error::CreatedButModifiedException) + pub fn builder() -> crate::error::created_but_modified_exception::Builder { + crate::error::created_but_modified_exception::Builder::default() } } ///

    The resource with the name requested already exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AlreadyExistsError { +pub struct AlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for AlreadyExistsError { +impl std::fmt::Debug for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AlreadyExistsError"); + let mut formatter = f.debug_struct("AlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl AlreadyExistsError { +impl AlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AlreadyExistsError { +impl std::fmt::Display for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AlreadyExistsError [AlreadyExistsException]")?; + write!(f, "AlreadyExistsException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for AlreadyExistsError {} -/// See [`AlreadyExistsError`](crate::error::AlreadyExistsError) -pub mod already_exists_error { - /// A builder for [`AlreadyExistsError`](crate::error::AlreadyExistsError) +impl std::error::Error for AlreadyExistsException {} +/// See [`AlreadyExistsException`](crate::error::AlreadyExistsException) +pub mod already_exists_exception { + /// A builder for [`AlreadyExistsException`](crate::error::AlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5810,17 +5846,17 @@ pub mod already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn build(self) -> crate::error::AlreadyExistsError { - crate::error::AlreadyExistsError { + /// Consumes the builder and constructs a [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn build(self) -> crate::error::AlreadyExistsException { + crate::error::AlreadyExistsException { message: self.message, } } } } -impl AlreadyExistsError { - /// Creates a new builder-style object to manufacture [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn builder() -> crate::error::already_exists_error::Builder { - crate::error::already_exists_error::Builder::default() +impl AlreadyExistsException { + /// Creates a new builder-style object to manufacture [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn builder() -> crate::error::already_exists_exception::Builder { + crate::error::already_exists_exception::Builder::default() } } diff --git a/sdk/cloudformation/src/error_meta.rs b/sdk/cloudformation/src/error_meta.rs index 49a614cad02f..a73bb3244a37 100644 --- a/sdk/cloudformation/src/error_meta.rs +++ b/sdk/cloudformation/src/error_meta.rs @@ -2,51 +2,51 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AlreadyExistsError(crate::error::AlreadyExistsError), - CFNRegistryError(crate::error::CFNRegistryError), - ChangeSetNotFoundError(crate::error::ChangeSetNotFoundError), - CreatedButModifiedError(crate::error::CreatedButModifiedError), - InsufficientCapabilitiesError(crate::error::InsufficientCapabilitiesError), - InvalidChangeSetStatusError(crate::error::InvalidChangeSetStatusError), - InvalidOperationError(crate::error::InvalidOperationError), - InvalidStateTransitionError(crate::error::InvalidStateTransitionError), - LimitExceededError(crate::error::LimitExceededError), - NameAlreadyExistsError(crate::error::NameAlreadyExistsError), - OperationIdAlreadyExistsError(crate::error::OperationIdAlreadyExistsError), - OperationInProgressError(crate::error::OperationInProgressError), - OperationNotFoundError(crate::error::OperationNotFoundError), - OperationStatusCheckFailedError(crate::error::OperationStatusCheckFailedError), - StackInstanceNotFoundError(crate::error::StackInstanceNotFoundError), - StackSetNotEmptyError(crate::error::StackSetNotEmptyError), - StackSetNotFoundError(crate::error::StackSetNotFoundError), - StaleRequestError(crate::error::StaleRequestError), - TokenAlreadyExistsError(crate::error::TokenAlreadyExistsError), - TypeNotFoundError(crate::error::TypeNotFoundError), + AlreadyExistsException(crate::error::AlreadyExistsException), + CfnRegistryException(crate::error::CfnRegistryException), + ChangeSetNotFoundException(crate::error::ChangeSetNotFoundException), + CreatedButModifiedException(crate::error::CreatedButModifiedException), + InsufficientCapabilitiesException(crate::error::InsufficientCapabilitiesException), + InvalidChangeSetStatusException(crate::error::InvalidChangeSetStatusException), + InvalidOperationException(crate::error::InvalidOperationException), + InvalidStateTransitionException(crate::error::InvalidStateTransitionException), + LimitExceededException(crate::error::LimitExceededException), + NameAlreadyExistsException(crate::error::NameAlreadyExistsException), + OperationIdAlreadyExistsException(crate::error::OperationIdAlreadyExistsException), + OperationInProgressException(crate::error::OperationInProgressException), + OperationNotFoundException(crate::error::OperationNotFoundException), + OperationStatusCheckFailedException(crate::error::OperationStatusCheckFailedException), + StackInstanceNotFoundException(crate::error::StackInstanceNotFoundException), + StackSetNotEmptyException(crate::error::StackSetNotEmptyException), + StackSetNotFoundException(crate::error::StackSetNotFoundException), + StaleRequestException(crate::error::StaleRequestException), + TokenAlreadyExistsException(crate::error::TokenAlreadyExistsException), + TypeNotFoundException(crate::error::TypeNotFoundException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AlreadyExistsError(inner) => inner.fmt(f), - Error::CFNRegistryError(inner) => inner.fmt(f), - Error::ChangeSetNotFoundError(inner) => inner.fmt(f), - Error::CreatedButModifiedError(inner) => inner.fmt(f), - Error::InsufficientCapabilitiesError(inner) => inner.fmt(f), - Error::InvalidChangeSetStatusError(inner) => inner.fmt(f), - Error::InvalidOperationError(inner) => inner.fmt(f), - Error::InvalidStateTransitionError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::NameAlreadyExistsError(inner) => inner.fmt(f), - Error::OperationIdAlreadyExistsError(inner) => inner.fmt(f), - Error::OperationInProgressError(inner) => inner.fmt(f), - Error::OperationNotFoundError(inner) => inner.fmt(f), - Error::OperationStatusCheckFailedError(inner) => inner.fmt(f), - Error::StackInstanceNotFoundError(inner) => inner.fmt(f), - Error::StackSetNotEmptyError(inner) => inner.fmt(f), - Error::StackSetNotFoundError(inner) => inner.fmt(f), - Error::StaleRequestError(inner) => inner.fmt(f), - Error::TokenAlreadyExistsError(inner) => inner.fmt(f), - Error::TypeNotFoundError(inner) => inner.fmt(f), + Error::AlreadyExistsException(inner) => inner.fmt(f), + Error::CfnRegistryException(inner) => inner.fmt(f), + Error::ChangeSetNotFoundException(inner) => inner.fmt(f), + Error::CreatedButModifiedException(inner) => inner.fmt(f), + Error::InsufficientCapabilitiesException(inner) => inner.fmt(f), + Error::InvalidChangeSetStatusException(inner) => inner.fmt(f), + Error::InvalidOperationException(inner) => inner.fmt(f), + Error::InvalidStateTransitionException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::NameAlreadyExistsException(inner) => inner.fmt(f), + Error::OperationIdAlreadyExistsException(inner) => inner.fmt(f), + Error::OperationInProgressException(inner) => inner.fmt(f), + Error::OperationNotFoundException(inner) => inner.fmt(f), + Error::OperationStatusCheckFailedException(inner) => inner.fmt(f), + Error::StackInstanceNotFoundException(inner) => inner.fmt(f), + Error::StackSetNotEmptyException(inner) => inner.fmt(f), + Error::StackSetNotFoundException(inner) => inner.fmt(f), + Error::StaleRequestException(inner) => inner.fmt(f), + Error::TokenAlreadyExistsException(inner) => inner.fmt(f), + Error::TypeNotFoundException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -55,8 +55,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelUpdateStackErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) + crate::error::CancelUpdateStackErrorKind::TokenAlreadyExistsException(inner) => { + Error::TokenAlreadyExistsException(inner) } crate::error::CancelUpdateStackErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -70,9 +70,9 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ContinueUpdateRollbackErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) - } + crate::error::ContinueUpdateRollbackErrorKind::TokenAlreadyExistsException( + inner, + ) => Error::TokenAlreadyExistsException(inner), crate::error::ContinueUpdateRollbackErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -85,14 +85,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateChangeSetErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateChangeSetErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateChangeSetErrorKind::InsufficientCapabilitiesError(inner) => { - Error::InsufficientCapabilitiesError(inner) - } - crate::error::CreateChangeSetErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateChangeSetErrorKind::InsufficientCapabilitiesException( + inner, + ) => Error::InsufficientCapabilitiesException(inner), + crate::error::CreateChangeSetErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::CreateChangeSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -104,17 +104,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateStackErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateStackErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateStackErrorKind::InsufficientCapabilitiesError(inner) => { - Error::InsufficientCapabilitiesError(inner) + crate::error::CreateStackErrorKind::InsufficientCapabilitiesException(inner) => { + Error::InsufficientCapabilitiesException(inner) } - crate::error::CreateStackErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateStackErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateStackErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) + crate::error::CreateStackErrorKind::TokenAlreadyExistsException(inner) => { + Error::TokenAlreadyExistsException(inner) } crate::error::CreateStackErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -126,23 +126,23 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateStackInstancesErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::CreateStackInstancesErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::CreateStackInstancesErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateStackInstancesErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateStackInstancesErrorKind::OperationIdAlreadyExistsError( + crate::error::CreateStackInstancesErrorKind::OperationIdAlreadyExistsException( inner, - ) => Error::OperationIdAlreadyExistsError(inner), - crate::error::CreateStackInstancesErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) - } - crate::error::CreateStackInstancesErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + ) => Error::OperationIdAlreadyExistsException(inner), + crate::error::CreateStackInstancesErrorKind::OperationInProgressException( + inner, + ) => Error::OperationInProgressException(inner), + crate::error::CreateStackInstancesErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } - crate::error::CreateStackInstancesErrorKind::StaleRequestError(inner) => { - Error::StaleRequestError(inner) + crate::error::CreateStackInstancesErrorKind::StaleRequestException(inner) => { + Error::StaleRequestException(inner) } crate::error::CreateStackInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -156,14 +156,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateStackSetErrorKind::CreatedButModifiedError(inner) => { - Error::CreatedButModifiedError(inner) + crate::error::CreateStackSetErrorKind::CreatedButModifiedException(inner) => { + Error::CreatedButModifiedException(inner) } - crate::error::CreateStackSetErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateStackSetErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateStackSetErrorKind::NameAlreadyExistsError(inner) => { - Error::NameAlreadyExistsError(inner) + crate::error::CreateStackSetErrorKind::NameAlreadyExistsException(inner) => { + Error::NameAlreadyExistsException(inner) } crate::error::CreateStackSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -175,8 +175,8 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteChangeSetErrorKind::InvalidChangeSetStatusError(inner) => { - Error::InvalidChangeSetStatusError(inner) + crate::error::DeleteChangeSetErrorKind::InvalidChangeSetStatusException(inner) => { + Error::InvalidChangeSetStatusException(inner) } crate::error::DeleteChangeSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -188,8 +188,8 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteStackErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) + crate::error::DeleteStackErrorKind::TokenAlreadyExistsException(inner) => { + Error::TokenAlreadyExistsException(inner) } crate::error::DeleteStackErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -201,20 +201,20 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteStackInstancesErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::DeleteStackInstancesErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::DeleteStackInstancesErrorKind::OperationIdAlreadyExistsError( + crate::error::DeleteStackInstancesErrorKind::OperationIdAlreadyExistsException( inner, - ) => Error::OperationIdAlreadyExistsError(inner), - crate::error::DeleteStackInstancesErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) - } - crate::error::DeleteStackInstancesErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + ) => Error::OperationIdAlreadyExistsException(inner), + crate::error::DeleteStackInstancesErrorKind::OperationInProgressException( + inner, + ) => Error::OperationInProgressException(inner), + crate::error::DeleteStackInstancesErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } - crate::error::DeleteStackInstancesErrorKind::StaleRequestError(inner) => { - Error::StaleRequestError(inner) + crate::error::DeleteStackInstancesErrorKind::StaleRequestException(inner) => { + Error::StaleRequestException(inner) } crate::error::DeleteStackInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -228,11 +228,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteStackSetErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) + crate::error::DeleteStackSetErrorKind::OperationInProgressException(inner) => { + Error::OperationInProgressException(inner) } - crate::error::DeleteStackSetErrorKind::StackSetNotEmptyError(inner) => { - Error::StackSetNotEmptyError(inner) + crate::error::DeleteStackSetErrorKind::StackSetNotEmptyException(inner) => { + Error::StackSetNotEmptyException(inner) } crate::error::DeleteStackSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -244,11 +244,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterTypeErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::DeregisterTypeErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } - crate::error::DeregisterTypeErrorKind::TypeNotFoundError(inner) => { - Error::TypeNotFoundError(inner) + crate::error::DeregisterTypeErrorKind::TypeNotFoundException(inner) => { + Error::TypeNotFoundException(inner) } crate::error::DeregisterTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -272,8 +272,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeChangeSetErrorKind::ChangeSetNotFoundError(inner) => { - Error::ChangeSetNotFoundError(inner) + crate::error::DescribeChangeSetErrorKind::ChangeSetNotFoundException(inner) => { + Error::ChangeSetNotFoundException(inner) } crate::error::DescribeChangeSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -315,11 +315,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStackInstanceErrorKind::StackInstanceNotFoundError(inner) => { - Error::StackInstanceNotFoundError(inner) - } - crate::error::DescribeStackInstanceErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::DescribeStackInstanceErrorKind::StackInstanceNotFoundException( + inner, + ) => Error::StackInstanceNotFoundException(inner), + crate::error::DescribeStackInstanceErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::DescribeStackInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -381,8 +381,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStackSetErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::DescribeStackSetErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::DescribeStackSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -398,12 +398,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStackSetOperationErrorKind::OperationNotFoundError(inner) => { - Error::OperationNotFoundError(inner) - } - crate::error::DescribeStackSetOperationErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) - } + crate::error::DescribeStackSetOperationErrorKind::OperationNotFoundException( + inner, + ) => Error::OperationNotFoundException(inner), + crate::error::DescribeStackSetOperationErrorKind::StackSetNotFoundException( + inner, + ) => Error::StackSetNotFoundException(inner), crate::error::DescribeStackSetOperationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -416,11 +416,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTypeErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::DescribeTypeErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } - crate::error::DescribeTypeErrorKind::TypeNotFoundError(inner) => { - Error::TypeNotFoundError(inner) + crate::error::DescribeTypeErrorKind::TypeNotFoundException(inner) => { + Error::TypeNotFoundException(inner) } crate::error::DescribeTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -434,8 +434,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTypeRegistrationErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::DescribeTypeRegistrationErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } crate::error::DescribeTypeRegistrationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -475,14 +475,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DetectStackSetDriftErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::DetectStackSetDriftErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::DetectStackSetDriftErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) + crate::error::DetectStackSetDriftErrorKind::OperationInProgressException(inner) => { + Error::OperationInProgressException(inner) } - crate::error::DetectStackSetDriftErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::DetectStackSetDriftErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::DetectStackSetDriftErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -508,17 +508,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteChangeSetErrorKind::ChangeSetNotFoundError(inner) => { - Error::ChangeSetNotFoundError(inner) - } - crate::error::ExecuteChangeSetErrorKind::InsufficientCapabilitiesError(inner) => { - Error::InsufficientCapabilitiesError(inner) + crate::error::ExecuteChangeSetErrorKind::ChangeSetNotFoundException(inner) => { + Error::ChangeSetNotFoundException(inner) } - crate::error::ExecuteChangeSetErrorKind::InvalidChangeSetStatusError(inner) => { - Error::InvalidChangeSetStatusError(inner) + crate::error::ExecuteChangeSetErrorKind::InsufficientCapabilitiesException( + inner, + ) => Error::InsufficientCapabilitiesException(inner), + crate::error::ExecuteChangeSetErrorKind::InvalidChangeSetStatusException(inner) => { + Error::InvalidChangeSetStatusException(inner) } - crate::error::ExecuteChangeSetErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) + crate::error::ExecuteChangeSetErrorKind::TokenAlreadyExistsException(inner) => { + Error::TokenAlreadyExistsException(inner) } crate::error::ExecuteChangeSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -542,8 +542,8 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetTemplateErrorKind::ChangeSetNotFoundError(inner) => { - Error::ChangeSetNotFoundError(inner) + crate::error::GetTemplateErrorKind::ChangeSetNotFoundException(inner) => { + Error::ChangeSetNotFoundException(inner) } crate::error::GetTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -555,8 +555,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetTemplateSummaryErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::GetTemplateSummaryErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::GetTemplateSummaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -600,8 +600,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListStackInstancesErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::ListStackInstancesErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::ListStackInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -641,12 +641,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListStackSetOperationResultsErrorKind::OperationNotFoundError( + crate::error::ListStackSetOperationResultsErrorKind::OperationNotFoundException( inner, - ) => Error::OperationNotFoundError(inner), - crate::error::ListStackSetOperationResultsErrorKind::StackSetNotFoundError( + ) => Error::OperationNotFoundException(inner), + crate::error::ListStackSetOperationResultsErrorKind::StackSetNotFoundException( inner, - ) => Error::StackSetNotFoundError(inner), + ) => Error::StackSetNotFoundException(inner), crate::error::ListStackSetOperationResultsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -659,8 +659,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListStackSetOperationsErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::ListStackSetOperationsErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::ListStackSetOperationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -684,8 +684,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTypeRegistrationsErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::ListTypeRegistrationsErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } crate::error::ListTypeRegistrationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -699,8 +699,8 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTypesErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::ListTypesErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } crate::error::ListTypesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -712,8 +712,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTypeVersionsErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::ListTypeVersionsErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } crate::error::ListTypeVersionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -726,17 +726,11 @@ impl From> fo impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RecordHandlerProgressErrorKind::InvalidStateTransitionError( - inner, - ) => Error::InvalidStateTransitionError(inner), - crate::error::RecordHandlerProgressErrorKind::OperationStatusCheckFailedError( - inner, - ) => Error::OperationStatusCheckFailedError(inner), - crate::error::RecordHandlerProgressErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::RecordHandlerProgressErrorKind::InvalidStateTransitionException(inner) => Error::InvalidStateTransitionException(inner), + crate::error::RecordHandlerProgressErrorKind::OperationStatusCheckFailedException(inner) => Error::OperationStatusCheckFailedException(inner), + crate::error::RecordHandlerProgressErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -745,8 +739,8 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterTypeErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::RegisterTypeErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } crate::error::RegisterTypeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -768,11 +762,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetTypeDefaultVersionErrorKind::CFNRegistryError(inner) => { - Error::CFNRegistryError(inner) + crate::error::SetTypeDefaultVersionErrorKind::CfnRegistryException(inner) => { + Error::CfnRegistryException(inner) } - crate::error::SetTypeDefaultVersionErrorKind::TypeNotFoundError(inner) => { - Error::TypeNotFoundError(inner) + crate::error::SetTypeDefaultVersionErrorKind::TypeNotFoundException(inner) => { + Error::TypeNotFoundException(inner) } crate::error::SetTypeDefaultVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -796,14 +790,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopStackSetOperationErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::StopStackSetOperationErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::StopStackSetOperationErrorKind::OperationNotFoundError(inner) => { - Error::OperationNotFoundError(inner) + crate::error::StopStackSetOperationErrorKind::OperationNotFoundException(inner) => { + Error::OperationNotFoundException(inner) } - crate::error::StopStackSetOperationErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::StopStackSetOperationErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } crate::error::StopStackSetOperationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -817,11 +811,11 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateStackErrorKind::InsufficientCapabilitiesError(inner) => { - Error::InsufficientCapabilitiesError(inner) + crate::error::UpdateStackErrorKind::InsufficientCapabilitiesException(inner) => { + Error::InsufficientCapabilitiesException(inner) } - crate::error::UpdateStackErrorKind::TokenAlreadyExistsError(inner) => { - Error::TokenAlreadyExistsError(inner) + crate::error::UpdateStackErrorKind::TokenAlreadyExistsException(inner) => { + Error::TokenAlreadyExistsException(inner) } crate::error::UpdateStackErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -833,23 +827,23 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateStackInstancesErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::UpdateStackInstancesErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::UpdateStackInstancesErrorKind::OperationIdAlreadyExistsError( + crate::error::UpdateStackInstancesErrorKind::OperationIdAlreadyExistsException( inner, - ) => Error::OperationIdAlreadyExistsError(inner), - crate::error::UpdateStackInstancesErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) - } - crate::error::UpdateStackInstancesErrorKind::StackInstanceNotFoundError(inner) => { - Error::StackInstanceNotFoundError(inner) - } - crate::error::UpdateStackInstancesErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + ) => Error::OperationIdAlreadyExistsException(inner), + crate::error::UpdateStackInstancesErrorKind::OperationInProgressException( + inner, + ) => Error::OperationInProgressException(inner), + crate::error::UpdateStackInstancesErrorKind::StackInstanceNotFoundException( + inner, + ) => Error::StackInstanceNotFoundException(inner), + crate::error::UpdateStackInstancesErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } - crate::error::UpdateStackInstancesErrorKind::StaleRequestError(inner) => { - Error::StaleRequestError(inner) + crate::error::UpdateStackInstancesErrorKind::StaleRequestException(inner) => { + Error::StaleRequestException(inner) } crate::error::UpdateStackInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -863,23 +857,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateStackSetErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::UpdateStackSetErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::UpdateStackSetErrorKind::OperationIdAlreadyExistsError(inner) => { - Error::OperationIdAlreadyExistsError(inner) + crate::error::UpdateStackSetErrorKind::OperationIdAlreadyExistsException(inner) => { + Error::OperationIdAlreadyExistsException(inner) } - crate::error::UpdateStackSetErrorKind::OperationInProgressError(inner) => { - Error::OperationInProgressError(inner) + crate::error::UpdateStackSetErrorKind::OperationInProgressException(inner) => { + Error::OperationInProgressException(inner) } - crate::error::UpdateStackSetErrorKind::StackInstanceNotFoundError(inner) => { - Error::StackInstanceNotFoundError(inner) + crate::error::UpdateStackSetErrorKind::StackInstanceNotFoundException(inner) => { + Error::StackInstanceNotFoundException(inner) } - crate::error::UpdateStackSetErrorKind::StackSetNotFoundError(inner) => { - Error::StackSetNotFoundError(inner) + crate::error::UpdateStackSetErrorKind::StackSetNotFoundException(inner) => { + Error::StackSetNotFoundException(inner) } - crate::error::UpdateStackSetErrorKind::StaleRequestError(inner) => { - Error::StaleRequestError(inner) + crate::error::UpdateStackSetErrorKind::StaleRequestException(inner) => { + Error::StaleRequestException(inner) } crate::error::UpdateStackSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/cloudformation/src/input.rs b/sdk/cloudformation/src/input.rs index 7b209a91c9f8..57341e5e1e82 100644 --- a/sdk/cloudformation/src/input.rs +++ b/sdk/cloudformation/src/input.rs @@ -112,8 +112,9 @@ impl CancelUpdateStackInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -121,7 +122,7 @@ impl CancelUpdateStackInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -300,8 +301,9 @@ impl ContinueUpdateRollbackInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -309,7 +311,7 @@ impl ContinueUpdateRollbackInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -690,8 +692,9 @@ impl CreateChangeSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -699,7 +702,7 @@ impl CreateChangeSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1098,8 +1101,9 @@ impl CreateStackInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1107,7 +1111,7 @@ impl CreateStackInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1351,8 +1355,9 @@ impl CreateStackInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1360,7 +1365,7 @@ impl CreateStackInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1697,8 +1702,9 @@ impl CreateStackSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1706,7 +1712,7 @@ impl CreateStackSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1841,8 +1847,9 @@ impl DeleteChangeSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1850,7 +1857,7 @@ impl DeleteChangeSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2027,8 +2034,9 @@ impl DeleteStackInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2036,7 +2044,7 @@ impl DeleteStackInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2279,8 +2287,9 @@ impl DeleteStackInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2288,7 +2297,7 @@ impl DeleteStackInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2432,8 +2441,9 @@ impl DeleteStackSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2441,7 +2451,7 @@ impl DeleteStackSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2596,8 +2606,9 @@ impl DeregisterTypeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2605,7 +2616,7 @@ impl DeregisterTypeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2725,8 +2736,9 @@ impl DescribeAccountLimitsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2734,7 +2746,7 @@ impl DescribeAccountLimitsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2882,8 +2894,9 @@ impl DescribeChangeSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2891,7 +2904,7 @@ impl DescribeChangeSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3021,8 +3034,9 @@ impl DescribeStackDriftDetectionStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3030,7 +3044,7 @@ impl DescribeStackDriftDetectionStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3172,8 +3186,9 @@ impl DescribeStackEventsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3181,7 +3196,7 @@ impl DescribeStackEventsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3354,8 +3369,9 @@ impl DescribeStackInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3363,7 +3379,7 @@ impl DescribeStackInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3509,8 +3525,9 @@ impl DescribeStackResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3518,7 +3535,7 @@ impl DescribeStackResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3684,8 +3701,9 @@ impl DescribeStackResourceDriftsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3693,7 +3711,7 @@ impl DescribeStackResourceDriftsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3863,8 +3881,9 @@ impl DescribeStackResourcesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3872,7 +3891,7 @@ impl DescribeStackResourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4013,8 +4032,9 @@ impl DescribeStacksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4022,7 +4042,7 @@ impl DescribeStacksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4166,8 +4186,9 @@ impl DescribeStackSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4175,7 +4196,7 @@ impl DescribeStackSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4332,8 +4353,9 @@ impl DescribeStackSetOperationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4341,7 +4363,7 @@ impl DescribeStackSetOperationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4496,8 +4518,9 @@ impl DescribeTypeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4505,7 +4528,7 @@ impl DescribeTypeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4632,8 +4655,9 @@ impl DescribeTypeRegistrationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4641,7 +4665,7 @@ impl DescribeTypeRegistrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4776,8 +4800,9 @@ impl DetectStackDriftInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4785,7 +4810,7 @@ impl DetectStackDriftInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4920,8 +4945,9 @@ impl DetectStackResourceDriftInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4929,7 +4955,7 @@ impl DetectStackResourceDriftInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5109,8 +5135,9 @@ impl DetectStackSetDriftInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5118,7 +5145,7 @@ impl DetectStackSetDriftInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5276,8 +5303,9 @@ impl EstimateTemplateCostInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5285,7 +5313,7 @@ impl EstimateTemplateCostInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5439,8 +5467,9 @@ impl ExecuteChangeSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5448,7 +5477,7 @@ impl ExecuteChangeSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5568,8 +5597,9 @@ impl GetStackPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5577,7 +5607,7 @@ impl GetStackPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5742,8 +5772,9 @@ impl GetTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5751,7 +5782,7 @@ impl GetTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5949,8 +5980,9 @@ impl GetTemplateSummaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5958,7 +5990,7 @@ impl GetTemplateSummaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6090,8 +6122,9 @@ impl ListChangeSetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6099,7 +6132,7 @@ impl ListChangeSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6218,8 +6251,9 @@ impl ListExportsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6227,7 +6261,7 @@ impl ListExportsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6359,8 +6393,9 @@ impl ListImportsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6368,7 +6403,7 @@ impl ListImportsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6585,8 +6620,9 @@ impl ListStackInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6594,7 +6630,7 @@ impl ListStackInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6737,8 +6773,9 @@ impl ListStackResourcesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6746,7 +6783,7 @@ impl ListStackResourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6880,8 +6917,9 @@ impl ListStacksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6889,7 +6927,7 @@ impl ListStacksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7077,8 +7115,9 @@ impl ListStackSetOperationResultsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7086,7 +7125,7 @@ impl ListStackSetOperationResultsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7261,8 +7300,9 @@ impl ListStackSetOperationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7270,7 +7310,7 @@ impl ListStackSetOperationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7442,8 +7482,9 @@ impl ListStackSetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7451,7 +7492,7 @@ impl ListStackSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7637,8 +7678,9 @@ impl ListTypeRegistrationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7646,7 +7688,7 @@ impl ListTypeRegistrationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7864,8 +7906,9 @@ impl ListTypesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7873,7 +7916,7 @@ impl ListTypesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8066,8 +8109,9 @@ impl ListTypeVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8075,7 +8119,7 @@ impl ListTypeVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8279,8 +8323,9 @@ impl RecordHandlerProgressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8288,7 +8333,7 @@ impl RecordHandlerProgressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8522,8 +8567,9 @@ impl RegisterTypeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8531,7 +8577,7 @@ impl RegisterTypeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8684,8 +8730,9 @@ impl SetStackPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8693,7 +8740,7 @@ impl SetStackPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8849,8 +8896,9 @@ impl SetTypeDefaultVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8858,7 +8906,7 @@ impl SetTypeDefaultVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9022,8 +9070,9 @@ impl SignalResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9031,7 +9080,7 @@ impl SignalResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9187,8 +9236,9 @@ impl StopStackSetOperationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9196,7 +9246,7 @@ impl StopStackSetOperationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9590,8 +9640,9 @@ impl UpdateStackInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9599,7 +9650,7 @@ impl UpdateStackInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9841,8 +9892,9 @@ impl UpdateStackInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9850,7 +9902,7 @@ impl UpdateStackInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10268,8 +10320,9 @@ impl UpdateStackSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10277,7 +10330,7 @@ impl UpdateStackSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10414,8 +10467,9 @@ impl UpdateTerminationProtectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10423,7 +10477,7 @@ impl UpdateTerminationProtectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10565,8 +10619,9 @@ impl ValidateTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10574,7 +10629,7 @@ impl ValidateTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] diff --git a/sdk/cloudformation/src/lib.rs b/sdk/cloudformation/src/lib.rs index 636e3666a145..bfac0f424604 100644 --- a/sdk/cloudformation/src/lib.rs +++ b/sdk/cloudformation/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS CloudFormation //!

    AWS CloudFormation allows you to create and manage AWS infrastructure deployments //! predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such diff --git a/sdk/cloudformation/src/model.rs b/sdk/cloudformation/src/model.rs index dca1286d9cf2..59c2f0006e38 100644 --- a/sdk/cloudformation/src/model.rs +++ b/sdk/cloudformation/src/model.rs @@ -29,7 +29,7 @@ impl std::convert::From<&str> for Capability { impl std::str::FromStr for Capability { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Capability::from(s)) } } @@ -48,15 +48,6 @@ impl AsRef for Capability { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Capability { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The TemplateParameter data type.

    #[non_exhaustive] @@ -185,7 +176,7 @@ impl std::convert::From<&str> for CallAs { impl std::str::FromStr for CallAs { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CallAs::from(s)) } } @@ -203,15 +194,6 @@ impl AsRef for CallAs { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CallAs { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    [Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

    #[non_exhaustive] @@ -308,7 +290,7 @@ impl std::convert::From<&str> for PermissionModels { impl std::str::FromStr for PermissionModels { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PermissionModels::from(s)) } } @@ -326,15 +308,6 @@ impl AsRef for PermissionModels { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PermissionModels { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    [Service-managed permissions] The AWS Organizations accounts to which StackSets deploys. StackSets does not deploy stack instances to the organization management account, even if the organization management account is in your organization or in an OU in your organization.

    ///

    For update operations, you can specify either Accounts or OrganizationalUnitIds. For create and delete operations, specify OrganizationalUnitIds.

    @@ -639,7 +612,7 @@ impl std::convert::From<&str> for RegionConcurrencyType { impl std::str::FromStr for RegionConcurrencyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RegionConcurrencyType::from(s)) } } @@ -657,15 +630,6 @@ impl AsRef for RegionConcurrencyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RegionConcurrencyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The Tag type enables you to specify a key-value pair that can be used to store /// information about an AWS CloudFormation stack.

    @@ -1066,7 +1030,7 @@ impl std::convert::From<&str> for ResourceSignalStatus { impl std::str::FromStr for ResourceSignalStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceSignalStatus::from(s)) } } @@ -1084,15 +1048,6 @@ impl AsRef for ResourceSignalStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceSignalStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1122,7 +1077,7 @@ impl std::convert::From<&str> for RegistryType { impl std::str::FromStr for RegistryType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RegistryType::from(s)) } } @@ -1140,15 +1095,6 @@ impl AsRef for RegistryType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RegistryType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains logging configuration information for a type.

    #[non_exhaustive] @@ -1266,7 +1212,7 @@ impl std::convert::From<&str> for HandlerErrorCode { impl std::str::FromStr for HandlerErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HandlerErrorCode::from(s)) } } @@ -1296,15 +1242,6 @@ impl AsRef for HandlerErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HandlerErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1338,7 +1275,7 @@ impl std::convert::From<&str> for OperationStatus { impl std::str::FromStr for OperationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OperationStatus::from(s)) } } @@ -1358,15 +1295,6 @@ impl AsRef for OperationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OperationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains summary information about a specific version of a CloudFormation type.

    #[non_exhaustive] @@ -1530,7 +1458,7 @@ impl std::convert::From<&str> for DeprecatedStatus { impl std::str::FromStr for DeprecatedStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeprecatedStatus::from(s)) } } @@ -1548,15 +1476,6 @@ impl AsRef for DeprecatedStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeprecatedStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains summary information about the specified CloudFormation type.

    #[non_exhaustive] @@ -1717,7 +1636,7 @@ impl std::convert::From<&str> for ProvisioningType { impl std::str::FromStr for ProvisioningType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProvisioningType::from(s)) } } @@ -1736,15 +1655,6 @@ impl AsRef for ProvisioningType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProvisioningType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1774,7 +1684,7 @@ impl std::convert::From<&str> for Visibility { impl std::str::FromStr for Visibility { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Visibility::from(s)) } } @@ -1792,15 +1702,6 @@ impl AsRef for Visibility { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Visibility { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1832,7 +1733,7 @@ impl std::convert::From<&str> for RegistrationStatus { impl std::str::FromStr for RegistrationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RegistrationStatus::from(s)) } } @@ -1851,15 +1752,6 @@ impl AsRef for RegistrationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RegistrationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The structures that contain summary information about the specified stack /// set.

    @@ -2134,7 +2026,7 @@ impl std::convert::From<&str> for StackDriftStatus { impl std::str::FromStr for StackDriftStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackDriftStatus::from(s)) } } @@ -2154,15 +2046,6 @@ impl AsRef for StackDriftStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackDriftStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2192,7 +2075,7 @@ impl std::convert::From<&str> for StackSetStatus { impl std::str::FromStr for StackSetStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetStatus::from(s)) } } @@ -2210,15 +2093,6 @@ impl AsRef for StackSetStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The structures that contain summary information about the specified /// operation.

    @@ -2462,7 +2336,7 @@ impl std::convert::From<&str> for StackSetOperationStatus { impl std::str::FromStr for StackSetOperationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetOperationStatus::from(s)) } } @@ -2484,15 +2358,6 @@ impl AsRef for StackSetOperationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetOperationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2526,7 +2391,7 @@ impl std::convert::From<&str> for StackSetOperationAction { impl std::str::FromStr for StackSetOperationAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetOperationAction::from(s)) } } @@ -2546,15 +2411,6 @@ impl AsRef for StackSetOperationAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetOperationAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The structure that contains information about a specified operation's results for a /// given account in a given Region.

    @@ -2940,7 +2796,7 @@ impl std::convert::From<&str> for AccountGateStatus { impl std::str::FromStr for AccountGateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AccountGateStatus::from(s)) } } @@ -2959,15 +2815,6 @@ impl AsRef for AccountGateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AccountGateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3003,7 +2850,7 @@ impl std::convert::From<&str> for StackSetOperationResultStatus { impl std::str::FromStr for StackSetOperationResultStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetOperationResultStatus::from(s)) } } @@ -3024,15 +2871,6 @@ impl AsRef for StackSetOperationResultStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetOperationResultStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The StackSummary Data Type

    #[non_exhaustive] @@ -3456,7 +3294,7 @@ impl std::convert::From<&str> for StackStatus { impl std::str::FromStr for StackStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackStatus::from(s)) } } @@ -3496,15 +3334,6 @@ impl AsRef for StackStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains high-level information about the specified stack resource.

    #[non_exhaustive] @@ -3938,7 +3767,7 @@ impl std::convert::From<&str> for StackResourceDriftStatus { impl std::str::FromStr for StackResourceDriftStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackResourceDriftStatus::from(s)) } } @@ -3958,15 +3787,6 @@ impl AsRef for StackResourceDriftStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackResourceDriftStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4024,7 +3844,7 @@ impl std::convert::From<&str> for ResourceStatus { impl std::str::FromStr for ResourceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceStatus::from(s)) } } @@ -4056,15 +3876,6 @@ impl AsRef for ResourceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The structure that contains summary information about a stack instance.

    #[non_exhaustive] @@ -4526,7 +4337,7 @@ impl std::convert::From<&str> for StackInstanceDetailedStatus { impl std::str::FromStr for StackInstanceDetailedStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackInstanceDetailedStatus::from(s)) } } @@ -4548,15 +4359,6 @@ impl AsRef for StackInstanceDetailedStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackInstanceDetailedStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4588,7 +4390,7 @@ impl std::convert::From<&str> for StackInstanceStatus { impl std::str::FromStr for StackInstanceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackInstanceStatus::from(s)) } } @@ -4607,15 +4409,6 @@ impl AsRef for StackInstanceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackInstanceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The status that stack instances are filtered by.

    #[non_exhaustive] @@ -4707,7 +4500,7 @@ impl std::convert::From<&str> for StackInstanceFilterName { impl std::str::FromStr for StackInstanceFilterName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackInstanceFilterName::from(s)) } } @@ -4724,15 +4517,6 @@ impl AsRef for StackInstanceFilterName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackInstanceFilterName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The Export structure describes the exported output values for a /// stack.

    @@ -5103,7 +4887,7 @@ impl std::convert::From<&str> for ChangeSetStatus { impl std::str::FromStr for ChangeSetStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeSetStatus::from(s)) } } @@ -5127,15 +4911,6 @@ impl AsRef for ChangeSetStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeSetStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5173,7 +4948,7 @@ impl std::convert::From<&str> for ExecutionStatus { impl std::str::FromStr for ExecutionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExecutionStatus::from(s)) } } @@ -5195,15 +4970,6 @@ impl AsRef for ExecutionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExecutionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the target resources of a specific type in your import template (for example, /// all AWS::S3::Bucket resources) and the properties you can provide during the @@ -5510,7 +5276,7 @@ impl std::convert::From<&str> for TemplateStage { impl std::str::FromStr for TemplateStage { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TemplateStage::from(s)) } } @@ -5528,15 +5294,6 @@ impl AsRef for TemplateStage { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TemplateStage { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the drift information for a resource that has been checked for drift. This /// includes actual and expected property values for resources in which AWS CloudFormation has detected @@ -6021,7 +5778,7 @@ impl std::convert::From<&str> for DifferenceType { impl std::str::FromStr for DifferenceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DifferenceType::from(s)) } } @@ -6040,15 +5797,6 @@ impl AsRef for DifferenceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DifferenceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses /// context key-value pairs in cases where a resource's logical and physical IDs are not enough @@ -6844,7 +6592,7 @@ impl std::convert::From<&str> for StackSetDriftDetectionStatus { impl std::str::FromStr for StackSetDriftDetectionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetDriftDetectionStatus::from(s)) } } @@ -6865,15 +6613,6 @@ impl AsRef for StackSetDriftDetectionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetDriftDetectionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6905,7 +6644,7 @@ impl std::convert::From<&str> for StackSetDriftStatus { impl std::str::FromStr for StackSetDriftStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackSetDriftStatus::from(s)) } } @@ -6924,15 +6663,6 @@ impl AsRef for StackSetDriftStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackSetDriftStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A structure that contains information about a stack set. A stack set enables you to /// provision stacks into AWS accounts and across Regions by using a single CloudFormation @@ -9132,7 +8862,7 @@ impl std::convert::From<&str> for StackDriftDetectionStatus { impl std::str::FromStr for StackDriftDetectionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StackDriftDetectionStatus::from(s)) } } @@ -9151,15 +8881,6 @@ impl AsRef for StackDriftDetectionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StackDriftDetectionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The Change structure describes the changes AWS CloudFormation will /// perform if you execute the change set.

    @@ -9704,7 +9425,7 @@ impl std::convert::From<&str> for ChangeSource { impl std::str::FromStr for ChangeSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeSource::from(s)) } } @@ -9725,15 +9446,6 @@ impl AsRef for ChangeSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -9763,7 +9475,7 @@ impl std::convert::From<&str> for EvaluationType { impl std::str::FromStr for EvaluationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EvaluationType::from(s)) } } @@ -9781,15 +9493,6 @@ impl AsRef for EvaluationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EvaluationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The field that AWS CloudFormation will change, such as the name of a resource's /// property, and whether the resource will be recreated.

    @@ -9917,7 +9620,7 @@ impl std::convert::From<&str> for RequiresRecreation { impl std::str::FromStr for RequiresRecreation { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RequiresRecreation::from(s)) } } @@ -9936,15 +9639,6 @@ impl AsRef for RequiresRecreation { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RequiresRecreation { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -9982,7 +9676,7 @@ impl std::convert::From<&str> for ResourceAttribute { impl std::str::FromStr for ResourceAttribute { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceAttribute::from(s)) } } @@ -10004,15 +9698,6 @@ impl AsRef for ResourceAttribute { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceAttribute { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10044,7 +9729,7 @@ impl std::convert::From<&str> for Replacement { impl std::str::FromStr for Replacement { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Replacement::from(s)) } } @@ -10063,15 +9748,6 @@ impl AsRef for Replacement { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Replacement { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10107,7 +9783,7 @@ impl std::convert::From<&str> for ChangeAction { impl std::str::FromStr for ChangeAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeAction::from(s)) } } @@ -10128,15 +9804,6 @@ impl AsRef for ChangeAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10164,7 +9831,7 @@ impl std::convert::From<&str> for ChangeType { impl std::str::FromStr for ChangeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeType::from(s)) } } @@ -10181,15 +9848,6 @@ impl AsRef for ChangeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The AccountLimit data type.

    ///

    CloudFormation has the following limits per account:

    @@ -10303,7 +9961,7 @@ impl std::convert::From<&str> for OnFailure { impl std::str::FromStr for OnFailure { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OnFailure::from(s)) } } @@ -10322,15 +9980,6 @@ impl AsRef for OnFailure { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OnFailure { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the target resource of an import operation.

    #[non_exhaustive] @@ -10458,7 +10107,7 @@ impl std::convert::From<&str> for ChangeSetType { impl std::str::FromStr for ChangeSetType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeSetType::from(s)) } } @@ -10477,12 +10126,3 @@ impl AsRef for ChangeSetType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeSetType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/cloudformation/src/operation_deser.rs b/sdk/cloudformation/src/operation_deser.rs index d56d23cef850..e8f3918acea0 100644 --- a/sdk/cloudformation/src/operation_deser.rs +++ b/sdk/cloudformation/src/operation_deser.rs @@ -13,11 +13,11 @@ pub fn parse_cancel_update_stack_error( Err(match error_code { "TokenAlreadyExistsException" => crate::error::CancelUpdateStackError { meta: generic, - kind: crate::error::CancelUpdateStackErrorKind::TokenAlreadyExistsError({ + kind: crate::error::CancelUpdateStackErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -62,11 +62,11 @@ pub fn parse_continue_update_rollback_error( Err(match error_code { "TokenAlreadyExistsException" => crate::error::ContinueUpdateRollbackError { meta: generic, - kind: crate::error::ContinueUpdateRollbackErrorKind::TokenAlreadyExistsError({ + kind: crate::error::ContinueUpdateRollbackErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -106,25 +106,11 @@ pub fn parse_create_change_set_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateChangeSetError { meta: generic, - kind: crate::error::CreateChangeSetErrorKind::AlreadyExistsError({ + kind: crate::error::CreateChangeSetErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_already_exists_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateChangeSetError::unhandled)?; - output.build() - }), - }, - "InsufficientCapabilitiesException" => crate::error::CreateChangeSetError { - meta: generic, - kind: crate::error::CreateChangeSetErrorKind::InsufficientCapabilitiesError({ - #[allow(unused_mut)] - let mut output = crate::error::insufficient_capabilities_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_insufficient_capabilities_error_xml_err( + output = crate::xml_deser::deser_structure_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -132,13 +118,26 @@ pub fn parse_create_change_set_error( output.build() }), }, + "InsufficientCapabilitiesException" => { + crate::error::CreateChangeSetError { + meta: generic, + kind: crate::error::CreateChangeSetErrorKind::InsufficientCapabilitiesException({ + #[allow(unused_mut)] + let mut output = + crate::error::insufficient_capabilities_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_insufficient_capabilities_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateChangeSetError::unhandled)?; + output.build() + }), + } + } "LimitExceededException" => crate::error::CreateChangeSetError { meta: generic, - kind: crate::error::CreateChangeSetErrorKind::LimitExceededError({ + kind: crate::error::CreateChangeSetErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -178,25 +177,11 @@ pub fn parse_create_stack_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateStackError { meta: generic, - kind: crate::error::CreateStackErrorKind::AlreadyExistsError({ + kind: crate::error::CreateStackErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_already_exists_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateStackError::unhandled)?; - output.build() - }), - }, - "InsufficientCapabilitiesException" => crate::error::CreateStackError { - meta: generic, - kind: crate::error::CreateStackErrorKind::InsufficientCapabilitiesError({ - #[allow(unused_mut)] - let mut output = crate::error::insufficient_capabilities_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_insufficient_capabilities_error_xml_err( + output = crate::xml_deser::deser_structure_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -204,13 +189,26 @@ pub fn parse_create_stack_error( output.build() }), }, + "InsufficientCapabilitiesException" => { + crate::error::CreateStackError { + meta: generic, + kind: crate::error::CreateStackErrorKind::InsufficientCapabilitiesException({ + #[allow(unused_mut)] + let mut output = + crate::error::insufficient_capabilities_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_insufficient_capabilities_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateStackError::unhandled)?; + output.build() + }), + } + } "LimitExceededException" => crate::error::CreateStackError { meta: generic, - kind: crate::error::CreateStackErrorKind::LimitExceededError({ + kind: crate::error::CreateStackErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -220,11 +218,11 @@ pub fn parse_create_stack_error( }, "TokenAlreadyExistsException" => crate::error::CreateStackError { meta: generic, - kind: crate::error::CreateStackErrorKind::TokenAlreadyExistsError({ + kind: crate::error::CreateStackErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -266,11 +264,11 @@ pub fn parse_create_stack_instances_error( Err(match error_code { "InvalidOperationException" => crate::error::CreateStackInstancesError { meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::InvalidOperationError({ + kind: crate::error::CreateStackInstancesErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -280,11 +278,11 @@ pub fn parse_create_stack_instances_error( }, "LimitExceededException" => crate::error::CreateStackInstancesError { meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::LimitExceededError({ + kind: crate::error::CreateStackInstancesErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -292,26 +290,24 @@ pub fn parse_create_stack_instances_error( output.build() }), }, - "OperationIdAlreadyExistsException" => { - crate::error::CreateStackInstancesError { - meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::OperationIdAlreadyExistsError({ - #[allow(unused_mut)] - let mut output = - crate::error::operation_id_already_exists_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_operation_id_already_exists_error_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateStackInstancesError::unhandled)?; - output.build() - }), - } - } + "OperationIdAlreadyExistsException" => crate::error::CreateStackInstancesError { + meta: generic, + kind: crate::error::CreateStackInstancesErrorKind::OperationIdAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::operation_id_already_exists_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_operation_id_already_exists_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateStackInstancesError::unhandled)?; + output.build() + }), + }, "OperationInProgressException" => crate::error::CreateStackInstancesError { meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::OperationInProgressError({ + kind: crate::error::CreateStackInstancesErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -321,11 +317,11 @@ pub fn parse_create_stack_instances_error( }, "StackSetNotFoundException" => crate::error::CreateStackInstancesError { meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::StackSetNotFoundError({ + kind: crate::error::CreateStackInstancesErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -335,11 +331,11 @@ pub fn parse_create_stack_instances_error( }, "StaleRequestException" => crate::error::CreateStackInstancesError { meta: generic, - kind: crate::error::CreateStackInstancesErrorKind::StaleRequestError({ + kind: crate::error::CreateStackInstancesErrorKind::StaleRequestException({ #[allow(unused_mut)] - let mut output = crate::error::stale_request_error::Builder::default(); + let mut output = crate::error::stale_request_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_request_error_xml_err( + output = crate::xml_deser::deser_structure_stale_request_exception_xml_err( response.body().as_ref(), output, ) @@ -384,11 +380,11 @@ pub fn parse_create_stack_set_error( Err(match error_code { "CreatedButModifiedException" => crate::error::CreateStackSetError { meta: generic, - kind: crate::error::CreateStackSetErrorKind::CreatedButModifiedError({ + kind: crate::error::CreateStackSetErrorKind::CreatedButModifiedException({ #[allow(unused_mut)] - let mut output = crate::error::created_but_modified_error::Builder::default(); + let mut output = crate::error::created_but_modified_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_created_but_modified_error_xml_err( + output = crate::xml_deser::deser_structure_created_but_modified_exception_xml_err( response.body().as_ref(), output, ) @@ -398,11 +394,11 @@ pub fn parse_create_stack_set_error( }, "LimitExceededException" => crate::error::CreateStackSetError { meta: generic, - kind: crate::error::CreateStackSetErrorKind::LimitExceededError({ + kind: crate::error::CreateStackSetErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -412,11 +408,11 @@ pub fn parse_create_stack_set_error( }, "NameAlreadyExistsException" => crate::error::CreateStackSetError { meta: generic, - kind: crate::error::CreateStackSetErrorKind::NameAlreadyExistsError({ + kind: crate::error::CreateStackSetErrorKind::NameAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::name_already_exists_error::Builder::default(); + let mut output = crate::error::name_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_name_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_name_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -454,20 +450,19 @@ pub fn parse_delete_change_set_error( None => return Err(crate::error::DeleteChangeSetError::unhandled(generic)), }; Err(match error_code { - "InvalidChangeSetStatusException" => crate::error::DeleteChangeSetError { - meta: generic, - kind: crate::error::DeleteChangeSetErrorKind::InvalidChangeSetStatusError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_change_set_status_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_change_set_status_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteChangeSetError::unhandled)?; - output.build() - }), - }, + "InvalidChangeSetStatusException" => { + crate::error::DeleteChangeSetError { + meta: generic, + kind: crate::error::DeleteChangeSetErrorKind::InvalidChangeSetStatusException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_change_set_status_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_change_set_status_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteChangeSetError::unhandled)?; + output.build() + }), + } + } _ => crate::error::DeleteChangeSetError::generic(generic), }) } @@ -497,11 +492,11 @@ pub fn parse_delete_stack_error( Err(match error_code { "TokenAlreadyExistsException" => crate::error::DeleteStackError { meta: generic, - kind: crate::error::DeleteStackErrorKind::TokenAlreadyExistsError({ + kind: crate::error::DeleteStackErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -541,11 +536,11 @@ pub fn parse_delete_stack_instances_error( Err(match error_code { "InvalidOperationException" => crate::error::DeleteStackInstancesError { meta: generic, - kind: crate::error::DeleteStackInstancesErrorKind::InvalidOperationError({ + kind: crate::error::DeleteStackInstancesErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -553,26 +548,24 @@ pub fn parse_delete_stack_instances_error( output.build() }), }, - "OperationIdAlreadyExistsException" => { - crate::error::DeleteStackInstancesError { - meta: generic, - kind: crate::error::DeleteStackInstancesErrorKind::OperationIdAlreadyExistsError({ - #[allow(unused_mut)] - let mut output = - crate::error::operation_id_already_exists_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_operation_id_already_exists_error_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteStackInstancesError::unhandled)?; - output.build() - }), - } - } + "OperationIdAlreadyExistsException" => crate::error::DeleteStackInstancesError { + meta: generic, + kind: crate::error::DeleteStackInstancesErrorKind::OperationIdAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::operation_id_already_exists_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_operation_id_already_exists_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteStackInstancesError::unhandled)?; + output.build() + }), + }, "OperationInProgressException" => crate::error::DeleteStackInstancesError { meta: generic, - kind: crate::error::DeleteStackInstancesErrorKind::OperationInProgressError({ + kind: crate::error::DeleteStackInstancesErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -582,11 +575,11 @@ pub fn parse_delete_stack_instances_error( }, "StackSetNotFoundException" => crate::error::DeleteStackInstancesError { meta: generic, - kind: crate::error::DeleteStackInstancesErrorKind::StackSetNotFoundError({ + kind: crate::error::DeleteStackInstancesErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -596,11 +589,11 @@ pub fn parse_delete_stack_instances_error( }, "StaleRequestException" => crate::error::DeleteStackInstancesError { meta: generic, - kind: crate::error::DeleteStackInstancesErrorKind::StaleRequestError({ + kind: crate::error::DeleteStackInstancesErrorKind::StaleRequestException({ #[allow(unused_mut)] - let mut output = crate::error::stale_request_error::Builder::default(); + let mut output = crate::error::stale_request_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_request_error_xml_err( + output = crate::xml_deser::deser_structure_stale_request_exception_xml_err( response.body().as_ref(), output, ) @@ -645,11 +638,11 @@ pub fn parse_delete_stack_set_error( Err(match error_code { "OperationInProgressException" => crate::error::DeleteStackSetError { meta: generic, - kind: crate::error::DeleteStackSetErrorKind::OperationInProgressError({ + kind: crate::error::DeleteStackSetErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -659,11 +652,11 @@ pub fn parse_delete_stack_set_error( }, "StackSetNotEmptyException" => crate::error::DeleteStackSetError { meta: generic, - kind: crate::error::DeleteStackSetErrorKind::StackSetNotEmptyError({ + kind: crate::error::DeleteStackSetErrorKind::StackSetNotEmptyException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_empty_error::Builder::default(); + let mut output = crate::error::stack_set_not_empty_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_empty_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_empty_exception_xml_err( response.body().as_ref(), output, ) @@ -700,11 +693,11 @@ pub fn parse_deregister_type_error( Err(match error_code { "CFNRegistryException" => crate::error::DeregisterTypeError { meta: generic, - kind: crate::error::DeregisterTypeErrorKind::CFNRegistryError({ + kind: crate::error::DeregisterTypeErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -714,11 +707,11 @@ pub fn parse_deregister_type_error( }, "TypeNotFoundException" => crate::error::DeregisterTypeError { meta: generic, - kind: crate::error::DeregisterTypeErrorKind::TypeNotFoundError({ + kind: crate::error::DeregisterTypeErrorKind::TypeNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::type_not_found_error::Builder::default(); + let mut output = crate::error::type_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_type_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_type_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -788,11 +781,11 @@ pub fn parse_describe_change_set_error( Err(match error_code { "ChangeSetNotFoundException" => crate::error::DescribeChangeSetError { meta: generic, - kind: crate::error::DescribeChangeSetErrorKind::ChangeSetNotFoundError({ + kind: crate::error::DescribeChangeSetErrorKind::ChangeSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::change_set_not_found_error::Builder::default(); + let mut output = crate::error::change_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_change_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_change_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -899,27 +892,28 @@ pub fn parse_describe_stack_instance_error( None => return Err(crate::error::DescribeStackInstanceError::unhandled(generic)), }; Err(match error_code { - "StackInstanceNotFoundException" => crate::error::DescribeStackInstanceError { - meta: generic, - kind: crate::error::DescribeStackInstanceErrorKind::StackInstanceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::stack_instance_not_found_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_stack_instance_not_found_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeStackInstanceError::unhandled)?; - output.build() - }), - }, + "StackInstanceNotFoundException" => { + crate::error::DescribeStackInstanceError { + meta: generic, + kind: crate::error::DescribeStackInstanceErrorKind::StackInstanceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::stack_instance_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_stack_instance_not_found_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeStackInstanceError::unhandled)?; + output.build() + }, + ), + } + } "StackSetNotFoundException" => crate::error::DescribeStackInstanceError { meta: generic, - kind: crate::error::DescribeStackInstanceErrorKind::StackSetNotFoundError({ + kind: crate::error::DescribeStackInstanceErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1087,11 +1081,11 @@ pub fn parse_describe_stack_set_error( Err(match error_code { "StackSetNotFoundException" => crate::error::DescribeStackSetError { meta: generic, - kind: crate::error::DescribeStackSetErrorKind::StackSetNotFoundError({ + kind: crate::error::DescribeStackSetErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1139,11 +1133,11 @@ pub fn parse_describe_stack_set_operation_error( Err(match error_code { "OperationNotFoundException" => crate::error::DescribeStackSetOperationError { meta: generic, - kind: crate::error::DescribeStackSetOperationErrorKind::OperationNotFoundError({ + kind: crate::error::DescribeStackSetOperationErrorKind::OperationNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::operation_not_found_error::Builder::default(); + let mut output = crate::error::operation_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_operation_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1153,11 +1147,11 @@ pub fn parse_describe_stack_set_operation_error( }, "StackSetNotFoundException" => crate::error::DescribeStackSetOperationError { meta: generic, - kind: crate::error::DescribeStackSetOperationErrorKind::StackSetNotFoundError({ + kind: crate::error::DescribeStackSetOperationErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1202,11 +1196,11 @@ pub fn parse_describe_type_error( Err(match error_code { "CFNRegistryException" => crate::error::DescribeTypeError { meta: generic, - kind: crate::error::DescribeTypeErrorKind::CFNRegistryError({ + kind: crate::error::DescribeTypeErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -1216,11 +1210,11 @@ pub fn parse_describe_type_error( }, "TypeNotFoundException" => crate::error::DescribeTypeError { meta: generic, - kind: crate::error::DescribeTypeErrorKind::TypeNotFoundError({ + kind: crate::error::DescribeTypeErrorKind::TypeNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::type_not_found_error::Builder::default(); + let mut output = crate::error::type_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_type_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_type_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1266,11 +1260,11 @@ pub fn parse_describe_type_registration_error( Err(match error_code { "CFNRegistryException" => crate::error::DescribeTypeRegistrationError { meta: generic, - kind: crate::error::DescribeTypeRegistrationErrorKind::CFNRegistryError({ + kind: crate::error::DescribeTypeRegistrationErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -1378,11 +1372,11 @@ pub fn parse_detect_stack_set_drift_error( Err(match error_code { "InvalidOperationException" => crate::error::DetectStackSetDriftError { meta: generic, - kind: crate::error::DetectStackSetDriftErrorKind::InvalidOperationError({ + kind: crate::error::DetectStackSetDriftErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -1392,11 +1386,11 @@ pub fn parse_detect_stack_set_drift_error( }, "OperationInProgressException" => crate::error::DetectStackSetDriftError { meta: generic, - kind: crate::error::DetectStackSetDriftErrorKind::OperationInProgressError({ + kind: crate::error::DetectStackSetDriftErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -1406,11 +1400,11 @@ pub fn parse_detect_stack_set_drift_error( }, "StackSetNotFoundException" => crate::error::DetectStackSetDriftError { meta: generic, - kind: crate::error::DetectStackSetDriftErrorKind::StackSetNotFoundError({ + kind: crate::error::DetectStackSetDriftErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1488,39 +1482,11 @@ pub fn parse_execute_change_set_error( Err(match error_code { "ChangeSetNotFoundException" => crate::error::ExecuteChangeSetError { meta: generic, - kind: crate::error::ExecuteChangeSetErrorKind::ChangeSetNotFoundError({ + kind: crate::error::ExecuteChangeSetErrorKind::ChangeSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::change_set_not_found_error::Builder::default(); + let mut output = crate::error::change_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_change_set_not_found_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ExecuteChangeSetError::unhandled)?; - output.build() - }), - }, - "InsufficientCapabilitiesException" => crate::error::ExecuteChangeSetError { - meta: generic, - kind: crate::error::ExecuteChangeSetErrorKind::InsufficientCapabilitiesError({ - #[allow(unused_mut)] - let mut output = crate::error::insufficient_capabilities_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_insufficient_capabilities_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ExecuteChangeSetError::unhandled)?; - output.build() - }), - }, - "InvalidChangeSetStatusException" => crate::error::ExecuteChangeSetError { - meta: generic, - kind: crate::error::ExecuteChangeSetErrorKind::InvalidChangeSetStatusError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_change_set_status_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_change_set_status_error_xml_err( + output = crate::xml_deser::deser_structure_change_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1528,13 +1494,39 @@ pub fn parse_execute_change_set_error( output.build() }), }, + "InsufficientCapabilitiesException" => { + crate::error::ExecuteChangeSetError { + meta: generic, + kind: crate::error::ExecuteChangeSetErrorKind::InsufficientCapabilitiesException({ + #[allow(unused_mut)] + let mut output = + crate::error::insufficient_capabilities_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_insufficient_capabilities_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ExecuteChangeSetError::unhandled)?; + output.build() + }), + } + } + "InvalidChangeSetStatusException" => { + crate::error::ExecuteChangeSetError { + meta: generic, + kind: crate::error::ExecuteChangeSetErrorKind::InvalidChangeSetStatusException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_change_set_status_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_change_set_status_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ExecuteChangeSetError::unhandled)?; + output.build() + }), + } + } "TokenAlreadyExistsException" => crate::error::ExecuteChangeSetError { meta: generic, - kind: crate::error::ExecuteChangeSetErrorKind::TokenAlreadyExistsError({ + kind: crate::error::ExecuteChangeSetErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1596,11 +1588,11 @@ pub fn parse_get_template_error( Err(match error_code { "ChangeSetNotFoundException" => crate::error::GetTemplateError { meta: generic, - kind: crate::error::GetTemplateErrorKind::ChangeSetNotFoundError({ + kind: crate::error::GetTemplateErrorKind::ChangeSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::change_set_not_found_error::Builder::default(); + let mut output = crate::error::change_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_change_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_change_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1642,11 +1634,11 @@ pub fn parse_get_template_summary_error( Err(match error_code { "StackSetNotFoundException" => crate::error::GetTemplateSummaryError { meta: generic, - kind: crate::error::GetTemplateSummaryErrorKind::StackSetNotFoundError({ + kind: crate::error::GetTemplateSummaryErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1764,11 +1756,11 @@ pub fn parse_list_stack_instances_error( Err(match error_code { "StackSetNotFoundException" => crate::error::ListStackInstancesError { meta: generic, - kind: crate::error::ListStackInstancesErrorKind::StackSetNotFoundError({ + kind: crate::error::ListStackInstancesErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1873,27 +1865,29 @@ pub fn parse_list_stack_set_operation_results_error( } }; Err(match error_code { - "OperationNotFoundException" => crate::error::ListStackSetOperationResultsError { - meta: generic, - kind: crate::error::ListStackSetOperationResultsErrorKind::OperationNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::operation_not_found_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_operation_not_found_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListStackSetOperationResultsError::unhandled)?; - output.build() - }), - }, + "OperationNotFoundException" => { + crate::error::ListStackSetOperationResultsError { + meta: generic, + kind: + crate::error::ListStackSetOperationResultsErrorKind::OperationNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::operation_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_operation_not_found_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListStackSetOperationResultsError::unhandled)?; + output.build() + }, + ), + } + } "StackSetNotFoundException" => crate::error::ListStackSetOperationResultsError { meta: generic, - kind: crate::error::ListStackSetOperationResultsErrorKind::StackSetNotFoundError({ + kind: crate::error::ListStackSetOperationResultsErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1945,11 +1939,11 @@ pub fn parse_list_stack_set_operations_error( Err(match error_code { "StackSetNotFoundException" => crate::error::ListStackSetOperationsError { meta: generic, - kind: crate::error::ListStackSetOperationsErrorKind::StackSetNotFoundError({ + kind: crate::error::ListStackSetOperationsErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2021,11 +2015,11 @@ pub fn parse_list_type_registrations_error( Err(match error_code { "CFNRegistryException" => crate::error::ListTypeRegistrationsError { meta: generic, - kind: crate::error::ListTypeRegistrationsErrorKind::CFNRegistryError({ + kind: crate::error::ListTypeRegistrationsErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -2070,11 +2064,11 @@ pub fn parse_list_types_error( Err(match error_code { "CFNRegistryException" => crate::error::ListTypesError { meta: generic, - kind: crate::error::ListTypesErrorKind::CFNRegistryError({ + kind: crate::error::ListTypesErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -2114,11 +2108,11 @@ pub fn parse_list_type_versions_error( Err(match error_code { "CFNRegistryException" => crate::error::ListTypeVersionsError { meta: generic, - kind: crate::error::ListTypeVersionsErrorKind::CFNRegistryError({ + kind: crate::error::ListTypeVersionsErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -2160,35 +2154,34 @@ pub fn parse_record_handler_progress_error( None => return Err(crate::error::RecordHandlerProgressError::unhandled(generic)), }; Err(match error_code { - "InvalidStateTransitionException" => crate::error::RecordHandlerProgressError { - meta: generic, - kind: crate::error::RecordHandlerProgressErrorKind::InvalidStateTransitionError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_state_transition_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_state_transition_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RecordHandlerProgressError::unhandled)?; - output.build() - }), - }, - "OperationStatusCheckFailedException" => { + "InvalidStateTransitionException" => { crate::error::RecordHandlerProgressError { meta: generic, - kind: crate::error::RecordHandlerProgressErrorKind::OperationStatusCheckFailedError( + kind: crate::error::RecordHandlerProgressErrorKind::InvalidStateTransitionException( { #[allow(unused_mut)] let mut output = - crate::error::operation_status_check_failed_error::Builder::default(); + crate::error::invalid_state_transition_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_status_check_failed_error_xml_err(response.body().as_ref(), output).map_err(crate::error::RecordHandlerProgressError::unhandled)?; + output = crate::xml_deser::deser_structure_invalid_state_transition_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::RecordHandlerProgressError::unhandled)?; output.build() }, ), } } + "OperationStatusCheckFailedException" => crate::error::RecordHandlerProgressError { + meta: generic, + kind: crate::error::RecordHandlerProgressErrorKind::OperationStatusCheckFailedException( + { + #[allow(unused_mut)] + let mut output = + crate::error::operation_status_check_failed_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_operation_status_check_failed_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::RecordHandlerProgressError::unhandled)?; + output.build() + }, + ), + }, _ => crate::error::RecordHandlerProgressError::generic(generic), }) } @@ -2221,11 +2214,11 @@ pub fn parse_register_type_error( Err(match error_code { "CFNRegistryException" => crate::error::RegisterTypeError { meta: generic, - kind: crate::error::RegisterTypeErrorKind::CFNRegistryError({ + kind: crate::error::RegisterTypeErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -2288,11 +2281,11 @@ pub fn parse_set_type_default_version_error( Err(match error_code { "CFNRegistryException" => crate::error::SetTypeDefaultVersionError { meta: generic, - kind: crate::error::SetTypeDefaultVersionErrorKind::CFNRegistryError({ + kind: crate::error::SetTypeDefaultVersionErrorKind::CfnRegistryException({ #[allow(unused_mut)] - let mut output = crate::error::cfn_registry_error::Builder::default(); + let mut output = crate::error::cfn_registry_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_cfn_registry_error_xml_err( + output = crate::xml_deser::deser_structure_cfn_registry_exception_xml_err( response.body().as_ref(), output, ) @@ -2302,11 +2295,11 @@ pub fn parse_set_type_default_version_error( }, "TypeNotFoundException" => crate::error::SetTypeDefaultVersionError { meta: generic, - kind: crate::error::SetTypeDefaultVersionErrorKind::TypeNotFoundError({ + kind: crate::error::SetTypeDefaultVersionErrorKind::TypeNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::type_not_found_error::Builder::default(); + let mut output = crate::error::type_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_type_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_type_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2370,11 +2363,11 @@ pub fn parse_stop_stack_set_operation_error( Err(match error_code { "InvalidOperationException" => crate::error::StopStackSetOperationError { meta: generic, - kind: crate::error::StopStackSetOperationErrorKind::InvalidOperationError({ + kind: crate::error::StopStackSetOperationErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -2384,11 +2377,11 @@ pub fn parse_stop_stack_set_operation_error( }, "OperationNotFoundException" => crate::error::StopStackSetOperationError { meta: generic, - kind: crate::error::StopStackSetOperationErrorKind::OperationNotFoundError({ + kind: crate::error::StopStackSetOperationErrorKind::OperationNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::operation_not_found_error::Builder::default(); + let mut output = crate::error::operation_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_operation_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2398,11 +2391,11 @@ pub fn parse_stop_stack_set_operation_error( }, "StackSetNotFoundException" => crate::error::StopStackSetOperationError { meta: generic, - kind: crate::error::StopStackSetOperationErrorKind::StackSetNotFoundError({ + kind: crate::error::StopStackSetOperationErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2440,27 +2433,26 @@ pub fn parse_update_stack_error( None => return Err(crate::error::UpdateStackError::unhandled(generic)), }; Err(match error_code { - "InsufficientCapabilitiesException" => crate::error::UpdateStackError { - meta: generic, - kind: crate::error::UpdateStackErrorKind::InsufficientCapabilitiesError({ - #[allow(unused_mut)] - let mut output = crate::error::insufficient_capabilities_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_insufficient_capabilities_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateStackError::unhandled)?; - output.build() - }), - }, + "InsufficientCapabilitiesException" => { + crate::error::UpdateStackError { + meta: generic, + kind: crate::error::UpdateStackErrorKind::InsufficientCapabilitiesException({ + #[allow(unused_mut)] + let mut output = + crate::error::insufficient_capabilities_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_insufficient_capabilities_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackError::unhandled)?; + output.build() + }), + } + } "TokenAlreadyExistsException" => crate::error::UpdateStackError { meta: generic, - kind: crate::error::UpdateStackErrorKind::TokenAlreadyExistsError({ + kind: crate::error::UpdateStackErrorKind::TokenAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::token_already_exists_error::Builder::default(); + let mut output = crate::error::token_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_token_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_token_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -2502,11 +2494,11 @@ pub fn parse_update_stack_instances_error( Err(match error_code { "InvalidOperationException" => crate::error::UpdateStackInstancesError { meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::InvalidOperationError({ + kind: crate::error::UpdateStackInstancesErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -2514,40 +2506,24 @@ pub fn parse_update_stack_instances_error( output.build() }), }, - "OperationIdAlreadyExistsException" => { - crate::error::UpdateStackInstancesError { - meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::OperationIdAlreadyExistsError({ - #[allow(unused_mut)] - let mut output = - crate::error::operation_id_already_exists_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_operation_id_already_exists_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackInstancesError::unhandled)?; - output.build() - }), - } - } - "OperationInProgressException" => crate::error::UpdateStackInstancesError { + "OperationIdAlreadyExistsException" => crate::error::UpdateStackInstancesError { meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::OperationInProgressError({ + kind: crate::error::UpdateStackInstancesErrorKind::OperationIdAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = + crate::error::operation_id_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateStackInstancesError::unhandled)?; + output = crate::xml_deser::deser_structure_operation_id_already_exists_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackInstancesError::unhandled)?; output.build() }), }, - "StackInstanceNotFoundException" => crate::error::UpdateStackInstancesError { + "OperationInProgressException" => crate::error::UpdateStackInstancesError { meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::StackInstanceNotFoundError({ + kind: crate::error::UpdateStackInstancesErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::stack_instance_not_found_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_instance_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -2555,13 +2531,28 @@ pub fn parse_update_stack_instances_error( output.build() }), }, + "StackInstanceNotFoundException" => { + crate::error::UpdateStackInstancesError { + meta: generic, + kind: crate::error::UpdateStackInstancesErrorKind::StackInstanceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::stack_instance_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_stack_instance_not_found_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackInstancesError::unhandled)?; + output.build() + }, + ), + } + } "StackSetNotFoundException" => crate::error::UpdateStackInstancesError { meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::StackSetNotFoundError({ + kind: crate::error::UpdateStackInstancesErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2571,11 +2562,11 @@ pub fn parse_update_stack_instances_error( }, "StaleRequestException" => crate::error::UpdateStackInstancesError { meta: generic, - kind: crate::error::UpdateStackInstancesErrorKind::StaleRequestError({ + kind: crate::error::UpdateStackInstancesErrorKind::StaleRequestException({ #[allow(unused_mut)] - let mut output = crate::error::stale_request_error::Builder::default(); + let mut output = crate::error::stale_request_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_request_error_xml_err( + output = crate::xml_deser::deser_structure_stale_request_exception_xml_err( response.body().as_ref(), output, ) @@ -2620,11 +2611,11 @@ pub fn parse_update_stack_set_error( Err(match error_code { "InvalidOperationException" => crate::error::UpdateStackSetError { meta: generic, - kind: crate::error::UpdateStackSetErrorKind::InvalidOperationError({ + kind: crate::error::UpdateStackSetErrorKind::InvalidOperationException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_operation_error::Builder::default(); + let mut output = crate::error::invalid_operation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_operation_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_operation_exception_xml_err( response.body().as_ref(), output, ) @@ -2632,40 +2623,24 @@ pub fn parse_update_stack_set_error( output.build() }), }, - "OperationIdAlreadyExistsException" => { - crate::error::UpdateStackSetError { - meta: generic, - kind: crate::error::UpdateStackSetErrorKind::OperationIdAlreadyExistsError({ - #[allow(unused_mut)] - let mut output = - crate::error::operation_id_already_exists_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_operation_id_already_exists_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackSetError::unhandled)?; - output.build() - }), - } - } - "OperationInProgressException" => crate::error::UpdateStackSetError { + "OperationIdAlreadyExistsException" => crate::error::UpdateStackSetError { meta: generic, - kind: crate::error::UpdateStackSetErrorKind::OperationInProgressError({ + kind: crate::error::UpdateStackSetErrorKind::OperationIdAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::operation_in_progress_error::Builder::default(); + let mut output = + crate::error::operation_id_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_operation_in_progress_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateStackSetError::unhandled)?; + output = crate::xml_deser::deser_structure_operation_id_already_exists_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackSetError::unhandled)?; output.build() }), }, - "StackInstanceNotFoundException" => crate::error::UpdateStackSetError { + "OperationInProgressException" => crate::error::UpdateStackSetError { meta: generic, - kind: crate::error::UpdateStackSetErrorKind::StackInstanceNotFoundError({ + kind: crate::error::UpdateStackSetErrorKind::OperationInProgressException({ #[allow(unused_mut)] - let mut output = crate::error::stack_instance_not_found_error::Builder::default(); + let mut output = crate::error::operation_in_progress_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_instance_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_operation_in_progress_exception_xml_err( response.body().as_ref(), output, ) @@ -2673,13 +2648,26 @@ pub fn parse_update_stack_set_error( output.build() }), }, + "StackInstanceNotFoundException" => { + crate::error::UpdateStackSetError { + meta: generic, + kind: crate::error::UpdateStackSetErrorKind::StackInstanceNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::stack_instance_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_stack_instance_not_found_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateStackSetError::unhandled)?; + output.build() + }), + } + } "StackSetNotFoundException" => crate::error::UpdateStackSetError { meta: generic, - kind: crate::error::UpdateStackSetErrorKind::StackSetNotFoundError({ + kind: crate::error::UpdateStackSetErrorKind::StackSetNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::stack_set_not_found_error::Builder::default(); + let mut output = crate::error::stack_set_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stack_set_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_stack_set_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2689,11 +2677,11 @@ pub fn parse_update_stack_set_error( }, "StaleRequestException" => crate::error::UpdateStackSetError { meta: generic, - kind: crate::error::UpdateStackSetErrorKind::StaleRequestError({ + kind: crate::error::UpdateStackSetErrorKind::StaleRequestException({ #[allow(unused_mut)] - let mut output = crate::error::stale_request_error::Builder::default(); + let mut output = crate::error::stale_request_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_request_error_xml_err( + output = crate::xml_deser::deser_structure_stale_request_exception_xml_err( response.body().as_ref(), output, ) diff --git a/sdk/cloudformation/src/operation_ser.rs b/sdk/cloudformation/src/operation_ser.rs index 95953667996e..a3ac1860b4ef 100644 --- a/sdk/cloudformation/src/operation_ser.rs +++ b/sdk/cloudformation/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_cancel_update_stack( input: &crate::input::CancelUpdateStackInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelUpdateStack", "2010-05-15"); @@ -21,7 +21,7 @@ pub fn serialize_operation_cancel_update_stack( pub fn serialize_operation_continue_update_rollback( input: &crate::input::ContinueUpdateRollbackInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -58,7 +58,7 @@ pub fn serialize_operation_continue_update_rollback( pub fn serialize_operation_create_change_set( input: &crate::input::CreateChangeSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateChangeSet", "2010-05-15"); @@ -189,7 +189,7 @@ pub fn serialize_operation_create_change_set( pub fn serialize_operation_create_stack( input: &crate::input::CreateStackInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateStack", "2010-05-15"); @@ -317,7 +317,7 @@ pub fn serialize_operation_create_stack( pub fn serialize_operation_create_stack_instances( input: &crate::input::CreateStackInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateStackInstances", "2010-05-15"); @@ -385,7 +385,7 @@ pub fn serialize_operation_create_stack_instances( pub fn serialize_operation_create_stack_set( input: &crate::input::CreateStackSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateStackSet", "2010-05-15"); @@ -478,7 +478,7 @@ pub fn serialize_operation_create_stack_set( pub fn serialize_operation_delete_change_set( input: &crate::input::DeleteChangeSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteChangeSet", "2010-05-15"); @@ -498,7 +498,7 @@ pub fn serialize_operation_delete_change_set( pub fn serialize_operation_delete_stack( input: &crate::input::DeleteStackInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteStack", "2010-05-15"); @@ -534,7 +534,7 @@ pub fn serialize_operation_delete_stack( pub fn serialize_operation_delete_stack_instances( input: &crate::input::DeleteStackInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteStackInstances", "2010-05-15"); @@ -596,7 +596,7 @@ pub fn serialize_operation_delete_stack_instances( pub fn serialize_operation_delete_stack_set( input: &crate::input::DeleteStackSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteStackSet", "2010-05-15"); @@ -616,7 +616,7 @@ pub fn serialize_operation_delete_stack_set( pub fn serialize_operation_deregister_type( input: &crate::input::DeregisterTypeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeregisterType", "2010-05-15"); @@ -646,7 +646,7 @@ pub fn serialize_operation_deregister_type( pub fn serialize_operation_describe_account_limits( input: &crate::input::DescribeAccountLimitsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -662,7 +662,7 @@ pub fn serialize_operation_describe_account_limits( pub fn serialize_operation_describe_change_set( input: &crate::input::DescribeChangeSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeChangeSet", "2010-05-15"); @@ -687,7 +687,7 @@ pub fn serialize_operation_describe_change_set( pub fn serialize_operation_describe_stack_drift_detection_status( input: &crate::input::DescribeStackDriftDetectionStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -703,7 +703,7 @@ pub fn serialize_operation_describe_stack_drift_detection_status( pub fn serialize_operation_describe_stack_events( input: &crate::input::DescribeStackEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeStackEvents", "2010-05-15"); @@ -723,7 +723,7 @@ pub fn serialize_operation_describe_stack_events( pub fn serialize_operation_describe_stack_instance( input: &crate::input::DescribeStackInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -754,7 +754,7 @@ pub fn serialize_operation_describe_stack_instance( pub fn serialize_operation_describe_stack_resource( input: &crate::input::DescribeStackResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -775,7 +775,7 @@ pub fn serialize_operation_describe_stack_resource( pub fn serialize_operation_describe_stack_resource_drifts( input: &crate::input::DescribeStackResourceDriftsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -815,7 +815,7 @@ pub fn serialize_operation_describe_stack_resource_drifts( pub fn serialize_operation_describe_stack_resources( input: &crate::input::DescribeStackResourcesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -841,7 +841,7 @@ pub fn serialize_operation_describe_stack_resources( pub fn serialize_operation_describe_stacks( input: &crate::input::DescribeStacksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeStacks", "2010-05-15"); @@ -861,7 +861,7 @@ pub fn serialize_operation_describe_stacks( pub fn serialize_operation_describe_stack_set( input: &crate::input::DescribeStackSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeStackSet", "2010-05-15"); @@ -881,7 +881,7 @@ pub fn serialize_operation_describe_stack_set( pub fn serialize_operation_describe_stack_set_operation( input: &crate::input::DescribeStackSetOperationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -907,7 +907,7 @@ pub fn serialize_operation_describe_stack_set_operation( pub fn serialize_operation_describe_type( input: &crate::input::DescribeTypeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeType", "2010-05-15"); @@ -937,7 +937,7 @@ pub fn serialize_operation_describe_type( pub fn serialize_operation_describe_type_registration( input: &crate::input::DescribeTypeRegistrationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -953,7 +953,7 @@ pub fn serialize_operation_describe_type_registration( pub fn serialize_operation_detect_stack_drift( input: &crate::input::DetectStackDriftInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetectStackDrift", "2010-05-15"); @@ -979,7 +979,7 @@ pub fn serialize_operation_detect_stack_drift( pub fn serialize_operation_detect_stack_resource_drift( input: &crate::input::DetectStackResourceDriftInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1000,7 +1000,7 @@ pub fn serialize_operation_detect_stack_resource_drift( pub fn serialize_operation_detect_stack_set_drift( input: &crate::input::DetectStackSetDriftInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetectStackSetDrift", "2010-05-15"); @@ -1030,7 +1030,7 @@ pub fn serialize_operation_detect_stack_set_drift( pub fn serialize_operation_estimate_template_cost( input: &crate::input::EstimateTemplateCostInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "EstimateTemplateCost", "2010-05-15"); @@ -1061,7 +1061,7 @@ pub fn serialize_operation_estimate_template_cost( pub fn serialize_operation_execute_change_set( input: &crate::input::ExecuteChangeSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ExecuteChangeSet", "2010-05-15"); @@ -1086,7 +1086,7 @@ pub fn serialize_operation_execute_change_set( pub fn serialize_operation_get_stack_policy( input: &crate::input::GetStackPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetStackPolicy", "2010-05-15"); @@ -1101,7 +1101,7 @@ pub fn serialize_operation_get_stack_policy( pub fn serialize_operation_get_template( input: &crate::input::GetTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetTemplate", "2010-05-15"); @@ -1126,7 +1126,7 @@ pub fn serialize_operation_get_template( pub fn serialize_operation_get_template_summary( input: &crate::input::GetTemplateSummaryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetTemplateSummary", "2010-05-15"); @@ -1161,7 +1161,7 @@ pub fn serialize_operation_get_template_summary( pub fn serialize_operation_list_change_sets( input: &crate::input::ListChangeSetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListChangeSets", "2010-05-15"); @@ -1181,7 +1181,7 @@ pub fn serialize_operation_list_change_sets( pub fn serialize_operation_list_exports( input: &crate::input::ListExportsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListExports", "2010-05-15"); @@ -1196,7 +1196,7 @@ pub fn serialize_operation_list_exports( pub fn serialize_operation_list_imports( input: &crate::input::ListImportsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListImports", "2010-05-15"); @@ -1216,7 +1216,7 @@ pub fn serialize_operation_list_imports( pub fn serialize_operation_list_stack_instances( input: &crate::input::ListStackInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListStackInstances", "2010-05-15"); @@ -1270,7 +1270,7 @@ pub fn serialize_operation_list_stack_instances( pub fn serialize_operation_list_stack_resources( input: &crate::input::ListStackResourcesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListStackResources", "2010-05-15"); @@ -1290,7 +1290,7 @@ pub fn serialize_operation_list_stack_resources( pub fn serialize_operation_list_stacks( input: &crate::input::ListStacksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListStacks", "2010-05-15"); @@ -1316,7 +1316,7 @@ pub fn serialize_operation_list_stacks( pub fn serialize_operation_list_stack_set_operation_results( input: &crate::input::ListStackSetOperationResultsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1355,7 +1355,7 @@ pub fn serialize_operation_list_stack_set_operation_results( pub fn serialize_operation_list_stack_set_operations( input: &crate::input::ListStackSetOperationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1389,7 +1389,7 @@ pub fn serialize_operation_list_stack_set_operations( pub fn serialize_operation_list_stack_sets( input: &crate::input::ListStackSetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListStackSets", "2010-05-15"); @@ -1422,7 +1422,7 @@ pub fn serialize_operation_list_stack_sets( pub fn serialize_operation_list_type_registrations( input: &crate::input::ListTypeRegistrationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1466,7 +1466,7 @@ pub fn serialize_operation_list_type_registrations( pub fn serialize_operation_list_types( input: &crate::input::ListTypesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTypes", "2010-05-15"); @@ -1509,7 +1509,7 @@ pub fn serialize_operation_list_types( pub fn serialize_operation_list_type_versions( input: &crate::input::ListTypeVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTypeVersions", "2010-05-15"); @@ -1552,7 +1552,7 @@ pub fn serialize_operation_list_type_versions( pub fn serialize_operation_record_handler_progress( input: &crate::input::RecordHandlerProgressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1598,7 +1598,7 @@ pub fn serialize_operation_record_handler_progress( pub fn serialize_operation_register_type( input: &crate::input::RegisterTypeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RegisterType", "2010-05-15"); @@ -1638,7 +1638,7 @@ pub fn serialize_operation_register_type( pub fn serialize_operation_set_stack_policy( input: &crate::input::SetStackPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SetStackPolicy", "2010-05-15"); @@ -1663,7 +1663,7 @@ pub fn serialize_operation_set_stack_policy( pub fn serialize_operation_set_type_default_version( input: &crate::input::SetTypeDefaultVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1694,7 +1694,7 @@ pub fn serialize_operation_set_type_default_version( pub fn serialize_operation_signal_resource( input: &crate::input::SignalResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SignalResource", "2010-05-15"); @@ -1724,7 +1724,7 @@ pub fn serialize_operation_signal_resource( pub fn serialize_operation_stop_stack_set_operation( input: &crate::input::StopStackSetOperationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1750,7 +1750,7 @@ pub fn serialize_operation_stop_stack_set_operation( pub fn serialize_operation_update_stack( input: &crate::input::UpdateStackInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateStack", "2010-05-15"); @@ -1870,7 +1870,7 @@ pub fn serialize_operation_update_stack( pub fn serialize_operation_update_stack_instances( input: &crate::input::UpdateStackInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateStackInstances", "2010-05-15"); @@ -1938,7 +1938,7 @@ pub fn serialize_operation_update_stack_instances( pub fn serialize_operation_update_stack_set( input: &crate::input::UpdateStackSetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateStackSet", "2010-05-15"); @@ -2068,7 +2068,7 @@ pub fn serialize_operation_update_stack_set( pub fn serialize_operation_update_termination_protection( input: &crate::input::UpdateTerminationProtectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2089,7 +2089,7 @@ pub fn serialize_operation_update_termination_protection( pub fn serialize_operation_validate_template( input: &crate::input::ValidateTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ValidateTemplate", "2010-05-15"); diff --git a/sdk/cloudformation/src/xml_deser.rs b/sdk/cloudformation/src/xml_deser.rs index b8d45473e8a3..3ca1afea0080 100644 --- a/sdk/cloudformation/src/xml_deser.rs +++ b/sdk/cloudformation/src/xml_deser.rs @@ -6,10 +6,10 @@ pub fn parse_generic_error( } #[allow(unused_mut)] -pub fn deser_structure_token_already_exists_error_xml_err( +pub fn deser_structure_token_already_exists_exception_xml_err( inp: &[u8], - mut builder: crate::error::token_already_exists_error::Builder, -) -> Result { + mut builder: crate::error::token_already_exists_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -36,10 +36,10 @@ pub fn deser_structure_token_already_exists_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_already_exists_error_xml_err( +pub fn deser_structure_already_exists_exception_xml_err( inp: &[u8], - mut builder: crate::error::already_exists_error::Builder, -) -> Result { + mut builder: crate::error::already_exists_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -66,10 +66,11 @@ pub fn deser_structure_already_exists_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_insufficient_capabilities_error_xml_err( +pub fn deser_structure_insufficient_capabilities_exception_xml_err( inp: &[u8], - mut builder: crate::error::insufficient_capabilities_error::Builder, -) -> Result { + mut builder: crate::error::insufficient_capabilities_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -96,10 +97,10 @@ pub fn deser_structure_insufficient_capabilities_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_limit_exceeded_error_xml_err( +pub fn deser_structure_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::limit_exceeded_error::Builder, -) -> Result { + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -241,10 +242,10 @@ pub fn deser_operation_create_stack( } #[allow(unused_mut)] -pub fn deser_structure_invalid_operation_error_xml_err( +pub fn deser_structure_invalid_operation_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_operation_error::Builder, -) -> Result { + mut builder: crate::error::invalid_operation_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -271,11 +272,13 @@ pub fn deser_structure_invalid_operation_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_operation_id_already_exists_error_xml_err( +pub fn deser_structure_operation_id_already_exists_exception_xml_err( inp: &[u8], - mut builder: crate::error::operation_id_already_exists_error::Builder, -) -> Result -{ + mut builder: crate::error::operation_id_already_exists_exception::Builder, +) -> Result< + crate::error::operation_id_already_exists_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -302,10 +305,10 @@ pub fn deser_structure_operation_id_already_exists_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_operation_in_progress_error_xml_err( +pub fn deser_structure_operation_in_progress_exception_xml_err( inp: &[u8], - mut builder: crate::error::operation_in_progress_error::Builder, -) -> Result { + mut builder: crate::error::operation_in_progress_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -332,10 +335,10 @@ pub fn deser_structure_operation_in_progress_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_stack_set_not_found_error_xml_err( +pub fn deser_structure_stack_set_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::stack_set_not_found_error::Builder, -) -> Result { + mut builder: crate::error::stack_set_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -362,10 +365,10 @@ pub fn deser_structure_stack_set_not_found_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_stale_request_error_xml_err( +pub fn deser_structure_stale_request_exception_xml_err( inp: &[u8], - mut builder: crate::error::stale_request_error::Builder, -) -> Result { + mut builder: crate::error::stale_request_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -443,10 +446,10 @@ pub fn deser_operation_create_stack_instances( } #[allow(unused_mut)] -pub fn deser_structure_created_but_modified_error_xml_err( +pub fn deser_structure_created_but_modified_exception_xml_err( inp: &[u8], - mut builder: crate::error::created_but_modified_error::Builder, -) -> Result { + mut builder: crate::error::created_but_modified_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -473,10 +476,10 @@ pub fn deser_structure_created_but_modified_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_name_already_exists_error_xml_err( +pub fn deser_structure_name_already_exists_exception_xml_err( inp: &[u8], - mut builder: crate::error::name_already_exists_error::Builder, -) -> Result { + mut builder: crate::error::name_already_exists_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -554,10 +557,11 @@ pub fn deser_operation_create_stack_set( } #[allow(unused_mut)] -pub fn deser_structure_invalid_change_set_status_error_xml_err( +pub fn deser_structure_invalid_change_set_status_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_change_set_status_error::Builder, -) -> Result { + mut builder: crate::error::invalid_change_set_status_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -635,10 +639,10 @@ pub fn deser_operation_delete_stack_instances( } #[allow(unused_mut)] -pub fn deser_structure_stack_set_not_empty_error_xml_err( +pub fn deser_structure_stack_set_not_empty_exception_xml_err( inp: &[u8], - mut builder: crate::error::stack_set_not_empty_error::Builder, -) -> Result { + mut builder: crate::error::stack_set_not_empty_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -665,10 +669,10 @@ pub fn deser_structure_stack_set_not_empty_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_cfn_registry_error_xml_err( +pub fn deser_structure_cfn_registry_exception_xml_err( inp: &[u8], - mut builder: crate::error::cfn_registry_error::Builder, -) -> Result { + mut builder: crate::error::cfn_registry_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -695,10 +699,10 @@ pub fn deser_structure_cfn_registry_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_type_not_found_error_xml_err( +pub fn deser_structure_type_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::type_not_found_error::Builder, -) -> Result { + mut builder: crate::error::type_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -786,10 +790,10 @@ pub fn deser_operation_describe_account_limits( } #[allow(unused_mut)] -pub fn deser_structure_change_set_not_found_error_xml_err( +pub fn deser_structure_change_set_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::change_set_not_found_error::Builder, -) -> Result { + mut builder: crate::error::change_set_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1288,10 +1292,11 @@ pub fn deser_operation_describe_stack_events( } #[allow(unused_mut)] -pub fn deser_structure_stack_instance_not_found_error_xml_err( +pub fn deser_structure_stack_instance_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::stack_instance_not_found_error::Builder, -) -> Result { + mut builder: crate::error::stack_instance_not_found_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1635,10 +1640,10 @@ pub fn deser_operation_describe_stack_set( } #[allow(unused_mut)] -pub fn deser_structure_operation_not_found_error_xml_err( +pub fn deser_structure_operation_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::operation_not_found_error::Builder, -) -> Result { + mut builder: crate::error::operation_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -3248,10 +3253,11 @@ pub fn deser_operation_list_type_versions( } #[allow(unused_mut)] -pub fn deser_structure_invalid_state_transition_error_xml_err( +pub fn deser_structure_invalid_state_transition_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_state_transition_error::Builder, -) -> Result { + mut builder: crate::error::invalid_state_transition_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -3278,11 +3284,13 @@ pub fn deser_structure_invalid_state_transition_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_operation_status_check_failed_error_xml_err( +pub fn deser_structure_operation_status_check_failed_exception_xml_err( inp: &[u8], - mut builder: crate::error::operation_status_check_failed_error::Builder, -) -> Result -{ + mut builder: crate::error::operation_status_check_failed_exception::Builder, +) -> Result< + crate::error::operation_status_check_failed_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] diff --git a/sdk/cloudwatch/Cargo.toml b/sdk/cloudwatch/Cargo.toml new file mode 100644 index 000000000000..51f371198b6d --- /dev/null +++ b/sdk/cloudwatch/Cargo.toml @@ -0,0 +1,41 @@ +# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +[package] +name = "aws-sdk-cloudwatch" +version = "0.0.10-alpha" +description = "

    Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the\n\t\t\tapplications you run on AWS in real time. You can use CloudWatch to collect and track\n\t\t\tmetrics, which are the variables you want to measure for your resources and\n\t\t\tapplications.

    \n\n\t\t

    CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules\n\t\t\tthat you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2\n\t\t\tinstances. Then, use this data to determine whether you should launch\n\t\t\tadditional instances to handle increased load. You can also use this data to stop\n\t\t\tunder-used instances to save\n\t\t\tmoney.

    \n\n\t\t

    In addition to monitoring the built-in metrics that come with AWS, you can monitor\n\t\t\tyour own custom metrics. With CloudWatch, you gain system-wide visibility into resource\n\t\t\tutilization, application performance, and operational health.

    " +authors = ["AWS Rust SDK Team ", "Russell Cohen "] +license = "Apache-2.0" +edition = "2018" +[dependencies.aws-endpoint] +path = "..//aws-endpoint" +[dependencies.aws-hyper] +path = "..//aws-hyper" +features = ["test-util"] +optional = true +[dependencies.smithy-http] +path = "..//smithy-http" +[dependencies.aws-types] +path = "..//aws-types" +[dependencies.aws-auth] +path = "..//aws-auth" +[dependencies.smithy-types] +path = "..//smithy-types" +[dependencies.aws-http] +path = "..//aws-http" +[dependencies.aws-sig-auth] +path = "..//aws-sig-auth" +[dependencies.http] +version = "0.2" +[dependencies.bytes] +version = "1" +[dependencies.smithy-query] +path = "..//smithy-query" +[dependencies.smithy-xml] +path = "..//smithy-xml" +[features] +client = ["aws-hyper"] +rustls = ["aws-hyper/rustls"] +native-tls = ["aws-hyper/native-tls"] +default = ["client", "rustls"] + + diff --git a/sdk/sagemakerruntime/LICENSE b/sdk/cloudwatch/LICENSE similarity index 100% rename from sdk/sagemakerruntime/LICENSE rename to sdk/cloudwatch/LICENSE diff --git a/sdk/cloudwatch/src/aws_endpoint.rs b/sdk/cloudwatch/src/aws_endpoint.rs new file mode 100644 index 000000000000..47c90abe54a8 --- /dev/null +++ b/sdk/cloudwatch/src/aws_endpoint.rs @@ -0,0 +1,133 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { + aws_endpoint::PartitionResolver::new( + aws_endpoint::Partition::builder() + .id("aws") + .region_regex(r#"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.{region}.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "fips-us-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring-fips.us-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-1") + .build(), + }, + ) + .endpoint( + "fips-us-east-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring-fips.us-east-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-2") + .build(), + }, + ) + .endpoint( + "fips-us-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring-fips.us-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-1") + .build(), + }, + ) + .endpoint( + "fips-us-west-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring-fips.us-west-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-2") + .build(), + }, + ) + .build() + .expect("invalid partition"), + vec![ + aws_endpoint::Partition::builder() + .id("aws-cn") + .region_regex(r#"^cn\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.{region}.amazonaws.com.cn", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-iso") + .region_regex(r#"^us\-iso\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.{region}.c2s.ic.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-iso-b") + .region_regex(r#"^us\-isob\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.{region}.sc2s.sgov.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-us-gov") + .region_regex(r#"^us\-gov\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.{region}.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "fips-us-gov-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.us-gov-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-east-1") + .build(), + }, + ) + .endpoint( + "fips-us-gov-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "monitoring.us-gov-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-west-1") + .build(), + }, + ) + .build() + .expect("invalid partition"), + ], + ) +} diff --git a/sdk/cloudwatch/src/client.rs b/sdk/cloudwatch/src/client.rs new file mode 100644 index 000000000000..1d04ab37d049 --- /dev/null +++ b/sdk/cloudwatch/src/client.rs @@ -0,0 +1,3326 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[derive(std::fmt::Debug)] +pub(crate) struct Handle { + client: aws_hyper::Client, + conf: crate::Config, +} + +#[derive(Clone, std::fmt::Debug)] +pub struct Client { + handle: std::sync::Arc>, +} +impl Client { + pub fn from_conf_conn(conf: crate::Config, conn: C) -> Self { + let client = aws_hyper::Client::new(conn); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } + + pub fn conf(&self) -> &crate::Config { + &self.handle.conf + } +} +impl Client { + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_env() -> Self { + Self::from_conf(crate::Config::builder().build()) + } + + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_conf(conf: crate::Config) -> Self { + let client = aws_hyper::Client::https(); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } +} +impl Client +where + C: aws_hyper::SmithyConnector, +{ + pub fn delete_alarms(&self) -> fluent_builders::DeleteAlarms { + fluent_builders::DeleteAlarms::new(self.handle.clone()) + } + pub fn delete_anomaly_detector(&self) -> fluent_builders::DeleteAnomalyDetector { + fluent_builders::DeleteAnomalyDetector::new(self.handle.clone()) + } + pub fn delete_dashboards(&self) -> fluent_builders::DeleteDashboards { + fluent_builders::DeleteDashboards::new(self.handle.clone()) + } + pub fn delete_insight_rules(&self) -> fluent_builders::DeleteInsightRules { + fluent_builders::DeleteInsightRules::new(self.handle.clone()) + } + pub fn delete_metric_stream(&self) -> fluent_builders::DeleteMetricStream { + fluent_builders::DeleteMetricStream::new(self.handle.clone()) + } + pub fn describe_alarm_history(&self) -> fluent_builders::DescribeAlarmHistory { + fluent_builders::DescribeAlarmHistory::new(self.handle.clone()) + } + pub fn describe_alarms(&self) -> fluent_builders::DescribeAlarms { + fluent_builders::DescribeAlarms::new(self.handle.clone()) + } + pub fn describe_alarms_for_metric(&self) -> fluent_builders::DescribeAlarmsForMetric { + fluent_builders::DescribeAlarmsForMetric::new(self.handle.clone()) + } + pub fn describe_anomaly_detectors(&self) -> fluent_builders::DescribeAnomalyDetectors { + fluent_builders::DescribeAnomalyDetectors::new(self.handle.clone()) + } + pub fn describe_insight_rules(&self) -> fluent_builders::DescribeInsightRules { + fluent_builders::DescribeInsightRules::new(self.handle.clone()) + } + pub fn disable_alarm_actions(&self) -> fluent_builders::DisableAlarmActions { + fluent_builders::DisableAlarmActions::new(self.handle.clone()) + } + pub fn disable_insight_rules(&self) -> fluent_builders::DisableInsightRules { + fluent_builders::DisableInsightRules::new(self.handle.clone()) + } + pub fn enable_alarm_actions(&self) -> fluent_builders::EnableAlarmActions { + fluent_builders::EnableAlarmActions::new(self.handle.clone()) + } + pub fn enable_insight_rules(&self) -> fluent_builders::EnableInsightRules { + fluent_builders::EnableInsightRules::new(self.handle.clone()) + } + pub fn get_dashboard(&self) -> fluent_builders::GetDashboard { + fluent_builders::GetDashboard::new(self.handle.clone()) + } + pub fn get_insight_rule_report(&self) -> fluent_builders::GetInsightRuleReport { + fluent_builders::GetInsightRuleReport::new(self.handle.clone()) + } + pub fn get_metric_data(&self) -> fluent_builders::GetMetricData { + fluent_builders::GetMetricData::new(self.handle.clone()) + } + pub fn get_metric_statistics(&self) -> fluent_builders::GetMetricStatistics { + fluent_builders::GetMetricStatistics::new(self.handle.clone()) + } + pub fn get_metric_stream(&self) -> fluent_builders::GetMetricStream { + fluent_builders::GetMetricStream::new(self.handle.clone()) + } + pub fn get_metric_widget_image(&self) -> fluent_builders::GetMetricWidgetImage { + fluent_builders::GetMetricWidgetImage::new(self.handle.clone()) + } + pub fn list_dashboards(&self) -> fluent_builders::ListDashboards { + fluent_builders::ListDashboards::new(self.handle.clone()) + } + pub fn list_metrics(&self) -> fluent_builders::ListMetrics { + fluent_builders::ListMetrics::new(self.handle.clone()) + } + pub fn list_metric_streams(&self) -> fluent_builders::ListMetricStreams { + fluent_builders::ListMetricStreams::new(self.handle.clone()) + } + pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource { + fluent_builders::ListTagsForResource::new(self.handle.clone()) + } + pub fn put_anomaly_detector(&self) -> fluent_builders::PutAnomalyDetector { + fluent_builders::PutAnomalyDetector::new(self.handle.clone()) + } + pub fn put_composite_alarm(&self) -> fluent_builders::PutCompositeAlarm { + fluent_builders::PutCompositeAlarm::new(self.handle.clone()) + } + pub fn put_dashboard(&self) -> fluent_builders::PutDashboard { + fluent_builders::PutDashboard::new(self.handle.clone()) + } + pub fn put_insight_rule(&self) -> fluent_builders::PutInsightRule { + fluent_builders::PutInsightRule::new(self.handle.clone()) + } + pub fn put_metric_alarm(&self) -> fluent_builders::PutMetricAlarm { + fluent_builders::PutMetricAlarm::new(self.handle.clone()) + } + pub fn put_metric_data(&self) -> fluent_builders::PutMetricData { + fluent_builders::PutMetricData::new(self.handle.clone()) + } + pub fn put_metric_stream(&self) -> fluent_builders::PutMetricStream { + fluent_builders::PutMetricStream::new(self.handle.clone()) + } + pub fn set_alarm_state(&self) -> fluent_builders::SetAlarmState { + fluent_builders::SetAlarmState::new(self.handle.clone()) + } + pub fn start_metric_streams(&self) -> fluent_builders::StartMetricStreams { + fluent_builders::StartMetricStreams::new(self.handle.clone()) + } + pub fn stop_metric_streams(&self) -> fluent_builders::StopMetricStreams { + fluent_builders::StopMetricStreams::new(self.handle.clone()) + } + pub fn tag_resource(&self) -> fluent_builders::TagResource { + fluent_builders::TagResource::new(self.handle.clone()) + } + pub fn untag_resource(&self) -> fluent_builders::UntagResource { + fluent_builders::UntagResource::new(self.handle.clone()) + } +} +pub mod fluent_builders { + #[derive(std::fmt::Debug)] + pub struct DeleteAlarms { + handle: std::sync::Arc>, + inner: crate::input::delete_alarms_input::Builder, + } + impl DeleteAlarms { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteAlarmsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The alarms to be deleted.

    + pub fn alarm_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_names(inp); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteAnomalyDetector { + handle: std::sync::Arc>, + inner: crate::input::delete_anomaly_detector_input::Builder, + } + impl DeleteAnomalyDetector { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteAnomalyDetectorOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The namespace associated with the anomaly detection model to delete.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The metric name associated with the anomaly detection model to delete.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The metric dimensions associated with the anomaly detection model to delete.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The statistic associated with the anomaly detection model to delete.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.inner = self.inner.stat(input); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_stat(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteDashboards { + handle: std::sync::Arc>, + inner: crate::input::delete_dashboards_input::Builder, + } + impl DeleteDashboards { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteDashboardsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The dashboards to be deleted. This parameter is required.

    + pub fn dashboard_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dashboard_names(inp); + self + } + pub fn set_dashboard_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dashboard_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteInsightRules { + handle: std::sync::Arc>, + inner: crate::input::delete_insight_rules_input::Builder, + } + impl DeleteInsightRules { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteInsightRulesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    An array of the rule names to delete. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub fn rule_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.rule_names(inp); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_rule_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteMetricStream { + handle: std::sync::Arc>, + inner: crate::input::delete_metric_stream_input::Builder, + } + impl DeleteMetricStream { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteMetricStreamOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the metric stream to delete.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAlarmHistory { + handle: std::sync::Arc>, + inner: crate::input::describe_alarm_history_input::Builder, + } + impl DescribeAlarmHistory { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAlarmHistoryOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_name(input); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_alarm_name(input); + self + } + ///

    Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, + /// only metric alarms are returned.

    + pub fn alarm_types(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_types(inp); + self + } + pub fn set_alarm_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_types(input); + self + } + ///

    The type of alarm histories to retrieve.

    + pub fn history_item_type(mut self, input: crate::model::HistoryItemType) -> Self { + self.inner = self.inner.history_item_type(input); + self + } + pub fn set_history_item_type( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_history_item_type(input); + self + } + ///

    The starting date to retrieve alarm history.

    + pub fn start_date(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.start_date(input); + self + } + pub fn set_start_date(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_start_date(input); + self + } + ///

    The ending date to retrieve alarm history.

    + pub fn end_date(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.end_date(input); + self + } + pub fn set_end_date(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_end_date(input); + self + } + ///

    The maximum number of alarm history records to retrieve.

    + pub fn max_records(mut self, input: i32) -> Self { + self.inner = self.inner.max_records(input); + self + } + pub fn set_max_records(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_records(input); + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest + /// event history returned first, and specify TimestampAscending to have the oldest history returned first.

    + pub fn scan_by(mut self, input: crate::model::ScanBy) -> Self { + self.inner = self.inner.scan_by(input); + self + } + pub fn set_scan_by(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_scan_by(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAlarms { + handle: std::sync::Arc>, + inner: crate::input::describe_alarms_input::Builder, + } + impl DescribeAlarms { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAlarmsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The names of the alarms to retrieve information about.

    + pub fn alarm_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_names(inp); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_names(input); + self + } + ///

    An alarm name prefix. If you specify this parameter, you receive information about all alarms that have names + /// that start with this prefix.

    + ///

    If this parameter + /// is specified, you cannot specify AlarmNames.

    + pub fn alarm_name_prefix(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_name_prefix(input); + self + } + pub fn set_alarm_name_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_alarm_name_prefix(input); + self + } + ///

    Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, + /// only metric alarms are returned.

    + pub fn alarm_types(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_types(inp); + self + } + pub fn set_alarm_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_types(input); + self + } + ///

    If you use this parameter and specify the name of a composite alarm, the operation returns + /// information about the "children" alarms + /// of the alarm you specify. These are the metric alarms and composite alarms referenced in the + /// AlarmRule field of the composite alarm that you specify in + /// ChildrenOfAlarmName. Information about the composite alarm that you name in + /// ChildrenOfAlarmName is not returned.

    + ///

    If you specify ChildrenOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you + /// receive a validation + /// error.

    + /// + ///

    Only the Alarm Name, ARN, StateValue (OK/ALARM/INSUFFICIENT_DATA), and StateUpdatedTimestamp + /// information are returned by this operation + /// when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub fn children_of_alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.children_of_alarm_name(input); + self + } + pub fn set_children_of_alarm_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_children_of_alarm_name(input); + self + } + ///

    If you use this parameter and specify the name of a metric or composite alarm, the operation returns + /// information about the "parent" alarms + /// of the alarm you specify. These are the composite alarms that have AlarmRule + /// parameters that reference + /// the alarm named in ParentsOfAlarmName. Information about the alarm that you specify in + /// ParentsOfAlarmName is not returned.

    + ///

    If you specify ParentsOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you receive a validation + /// error.

    + /// + ///

    Only the Alarm Name and ARN are returned by this operation when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub fn parents_of_alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.parents_of_alarm_name(input); + self + } + pub fn set_parents_of_alarm_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_parents_of_alarm_name(input); + self + } + ///

    Specify this parameter to receive information only about alarms that are currently in the state that you specify.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.inner = self.inner.state_value(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_state_value(input); + self + } + ///

    Use this parameter to filter the results of the operation to only those alarms that + /// use a certain alarm action. For example, you could specify the ARN of an SNS topic to find all + /// alarms that send notifications to that topic.

    + pub fn action_prefix(mut self, input: impl Into) -> Self { + self.inner = self.inner.action_prefix(input); + self + } + pub fn set_action_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_action_prefix(input); + self + } + ///

    The maximum number of alarm descriptions to retrieve.

    + pub fn max_records(mut self, input: i32) -> Self { + self.inner = self.inner.max_records(input); + self + } + pub fn set_max_records(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_records(input); + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAlarmsForMetric { + handle: std::sync::Arc>, + inner: crate::input::describe_alarms_for_metric_input::Builder, + } + impl DescribeAlarmsForMetric { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAlarmsForMetricOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the metric.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The namespace of the metric.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The statistic for the metric, other than percentiles. + /// For percentile statistics, use ExtendedStatistics.

    + pub fn statistic(mut self, input: crate::model::Statistic) -> Self { + self.inner = self.inner.statistic(input); + self + } + pub fn set_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_statistic(input); + self + } + ///

    The percentile statistic for the metric. Specify a value between + /// p0.0 and p100.

    + pub fn extended_statistic(mut self, input: impl Into) -> Self { + self.inner = self.inner.extended_statistic(input); + self + } + pub fn set_extended_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_extended_statistic(input); + self + } + ///

    The dimensions associated with the metric. If the metric has any associated + /// dimensions, you must specify them in order for the call to succeed.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The period, in seconds, over which the statistic is applied.

    + pub fn period(mut self, input: i32) -> Self { + self.inner = self.inner.period(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_period(input); + self + } + ///

    The unit for the metric.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.inner = self.inner.unit(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_unit(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAnomalyDetectors { + handle: std::sync::Arc>, + inner: crate::input::describe_anomaly_detectors_input::Builder, + } + impl DescribeAnomalyDetectors { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAnomalyDetectorsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    Use the token returned by the previous operation to request the next page of results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The maximum number of results to return in one operation. The maximum + /// value that you can specify is 100.

    + ///

    To retrieve the remaining results, make another call with the returned + /// NextToken value.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    Limits the results to only the anomaly detection models that + /// are associated with the specified namespace.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    Limits the results to only the anomaly detection models that are associated with the + /// specified metric name. If there are multiple metrics with this name in different + /// namespaces that have anomaly detection models, they're all returned.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    Limits the results to only the anomaly detection models that are associated with the + /// specified metric dimensions. If there are multiple metrics that have these dimensions + /// and have anomaly detection models associated, they're all returned.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeInsightRules { + handle: std::sync::Arc>, + inner: crate::input::describe_insight_rules_input::Builder, + } + impl DescribeInsightRules { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeInsightRulesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    Include this value, if it was returned by the previous operation, to get the next set of rules.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The maximum number of results to return in one operation. If you omit this + /// parameter, the default of 500 is used.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DisableAlarmActions { + handle: std::sync::Arc>, + inner: crate::input::disable_alarm_actions_input::Builder, + } + impl DisableAlarmActions { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DisableAlarmActionsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The names of the alarms.

    + pub fn alarm_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_names(inp); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DisableInsightRules { + handle: std::sync::Arc>, + inner: crate::input::disable_insight_rules_input::Builder, + } + impl DisableInsightRules { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DisableInsightRulesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    An array of the rule names to disable. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub fn rule_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.rule_names(inp); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_rule_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct EnableAlarmActions { + handle: std::sync::Arc>, + inner: crate::input::enable_alarm_actions_input::Builder, + } + impl EnableAlarmActions { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::EnableAlarmActionsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The names of the alarms.

    + pub fn alarm_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_names(inp); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct EnableInsightRules { + handle: std::sync::Arc>, + inner: crate::input::enable_insight_rules_input::Builder, + } + impl EnableInsightRules { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::EnableInsightRulesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    An array of the rule names to enable. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub fn rule_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.rule_names(inp); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_rule_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetDashboard { + handle: std::sync::Arc>, + inner: crate::input::get_dashboard_input::Builder, + } + impl GetDashboard { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetDashboardOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the dashboard to be described.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.dashboard_name(input); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_dashboard_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetInsightRuleReport { + handle: std::sync::Arc>, + inner: crate::input::get_insight_rule_report_input::Builder, + } + impl GetInsightRuleReport { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetInsightRuleReportOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the rule that you want to see data from.

    + pub fn rule_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.rule_name(input); + self + } + pub fn set_rule_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_rule_name(input); + self + } + ///

    The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.start_time(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_start_time(input); + self + } + ///

    The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.end_time(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_end_time(input); + self + } + ///

    The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results.

    + pub fn period(mut self, input: i32) -> Self { + self.inner = self.inner.period(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_period(input); + self + } + ///

    The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default of 10 is used.

    + pub fn max_contributor_count(mut self, input: i32) -> Self { + self.inner = self.inner.max_contributor_count(input); + self + } + pub fn set_max_contributor_count(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_contributor_count(input); + self + } + ///

    Specifies which metrics to use for aggregation of contributor values for the report. You can specify one or more + /// of the following metrics:

    + ///
      + ///
    • + ///

      + /// UniqueContributors -- the number of unique contributors for each data point.

      + ///
    • + ///
    • + ///

      + /// MaxContributorValue -- the value of the top contributor for each data point. The identity of the + /// contributor might change for each data point in the graph.

      + ///

      If this rule aggregates by COUNT, the top contributor for each data point is the contributor with the + /// most occurrences in that period. If the rule aggregates by SUM, the top contributor is the contributor with the highest sum in the log field specified + /// by the rule's Value, during that period.

      + ///
    • + ///
    • + ///

      + /// SampleCount -- the number of data points matched by the rule.

      + ///
    • + ///
    • + ///

      + /// Sum -- the sum of the values from all contributors during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Minimum -- the minimum value from a single observation during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Maximum -- the maximum value from a single observation during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Average -- the average value from all contributors during the time period represented by that data point.

      + ///
    • + ///
    + pub fn metrics(mut self, inp: impl Into) -> Self { + self.inner = self.inner.metrics(inp); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_metrics(input); + self + } + ///

    Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM.

    + pub fn order_by(mut self, input: impl Into) -> Self { + self.inner = self.inner.order_by(input); + self + } + pub fn set_order_by(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_order_by(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetMetricData { + handle: std::sync::Arc>, + inner: crate::input::get_metric_data_input::Builder, + } + impl GetMetricData { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetMetricDataOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The metric queries to be returned. A single GetMetricData call can include as many as 500 MetricDataQuery + /// structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

    + pub fn metric_data_queries( + mut self, + inp: impl Into, + ) -> Self { + self.inner = self.inner.metric_data_queries(inp); + self + } + pub fn set_metric_data_queries( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_metric_data_queries(input); + self + } + ///

    The time stamp indicating the earliest data to be returned.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp.

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as StartTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the StartTime.

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.start_time(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_start_time(input); + self + } + ///

    The time stamp indicating the latest data to be returned.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp.

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as EndTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the EndTime.

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.end_time(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_end_time(input); + self + } + ///

    Include this value, if it was returned by the previous GetMetricData operation, + /// to get the next set of data points.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The order in which data points should be returned. TimestampDescending returns the newest data first and paginates + /// when the MaxDatapoints limit is reached. TimestampAscending returns the oldest data first and paginates + /// when the MaxDatapoints limit is reached.

    + pub fn scan_by(mut self, input: crate::model::ScanBy) -> Self { + self.inner = self.inner.scan_by(input); + self + } + pub fn set_scan_by(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_scan_by(input); + self + } + ///

    The maximum number of data points the request should return before paginating. If you omit + /// this, the default of 100,800 is used.

    + pub fn max_datapoints(mut self, input: i32) -> Self { + self.inner = self.inner.max_datapoints(input); + self + } + pub fn set_max_datapoints(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_datapoints(input); + self + } + ///

    This structure includes the Timezone parameter, which you can use + /// to specify your time zone so that the labels of returned data display the + /// correct time + /// for your time zone.

    + pub fn label_options(mut self, input: crate::model::LabelOptions) -> Self { + self.inner = self.inner.label_options(input); + self + } + pub fn set_label_options( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_label_options(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetMetricStatistics { + handle: std::sync::Arc>, + inner: crate::input::get_metric_statistics_input::Builder, + } + impl GetMetricStatistics { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetMetricStatisticsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The namespace of the metric, with or without spaces.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The name of the metric, with or without spaces.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric. + /// If a specific combination of dimensions was not published, you can't retrieve statistics for it. + /// You must specify the same dimensions that were used when the metrics were created. For an example, + /// see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the + /// Amazon CloudWatch User Guide.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The time stamp that determines the first data point to return. Start times are + /// evaluated relative to the time that CloudWatch receives the request.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.start_time(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_start_time(input); + self + } + ///

    The time stamp that determines the last data point to return.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.inner = self.inner.end_time(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_end_time(input); + self + } + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can + /// be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected + /// at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics + /// are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    + ///

    If the StartTime parameter specifies a time stamp that is greater than + /// 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    + ///
      + ///
    • + ///

      Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

      + ///
    • + ///
    + pub fn period(mut self, input: i32) -> Self { + self.inner = self.inner.period(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_period(input); + self + } + ///

    The metric statistics, other than percentile. For percentile statistics, + /// use ExtendedStatistics. When calling GetMetricStatistics, you must + /// specify either Statistics or ExtendedStatistics, but not both.

    + pub fn statistics(mut self, inp: impl Into) -> Self { + self.inner = self.inner.statistics(inp); + self + } + pub fn set_statistics( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_statistics(input); + self + } + ///

    The percentile statistics. Specify values between p0.0 and p100. When calling GetMetricStatistics, you must + /// specify either Statistics or ExtendedStatistics, but not both. Percentile statistics are not + /// available for metrics when any of the metric values are negative numbers.

    + pub fn extended_statistics(mut self, inp: impl Into) -> Self { + self.inner = self.inner.extended_statistics(inp); + self + } + pub fn set_extended_statistics( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_extended_statistics(input); + self + } + ///

    The unit for a given metric. + /// If you omit Unit, all data that was collected with any unit is returned, along with the corresponding units that were specified + /// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. + /// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.inner = self.inner.unit(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_unit(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetMetricStream { + handle: std::sync::Arc>, + inner: crate::input::get_metric_stream_input::Builder, + } + impl GetMetricStream { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetMetricStreamOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the metric stream to retrieve information about.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetMetricWidgetImage { + handle: std::sync::Arc>, + inner: crate::input::get_metric_widget_image_input::Builder, + } + impl GetMetricWidgetImage { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetMetricWidgetImageOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    A JSON string that defines the bitmap graph to be retrieved. The string includes the + /// metrics to include in the graph, statistics, annotations, title, axis limits, and so on. + /// You can include only one MetricWidget parameter in each GetMetricWidgetImage call.

    + ///

    For more information about the syntax of MetricWidget see + /// GetMetricWidgetImage: Metric Widget Structure and Syntax.

    + ///

    If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation + /// point appears next to the graph legend.

    + pub fn metric_widget(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_widget(input); + self + } + pub fn set_metric_widget( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_metric_widget(input); + self + } + ///

    The format of the resulting image. Only PNG images are supported.

    + ///

    The default is png. If you specify png, the API returns an HTTP response with the + /// content-type set to text/xml. The image data is in a MetricWidgetImage + /// field. For example:

    + ///

    + /// + /// > + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip... + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// 6f0d4192-4d42-11e8-82c1-f539a07e0e3b + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    The image/png setting is intended only for custom HTTP requests. For most + /// use cases, and all actions using an AWS SDK, you should use png. If you specify + /// image/png, the HTTP response has a content-type set to image/png, + /// and the body of the response is a PNG image.

    + pub fn output_format(mut self, input: impl Into) -> Self { + self.inner = self.inner.output_format(input); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_output_format(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListDashboards { + handle: std::sync::Arc>, + inner: crate::input::list_dashboards_input::Builder, + } + impl ListDashboards { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListDashboardsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    If you specify this parameter, only + /// the dashboards with names starting with the specified string are listed. The maximum length is 255, and + /// valid characters are A-Z, a-z, 0-9, ".", "-", and "_". + ///

    + pub fn dashboard_name_prefix(mut self, input: impl Into) -> Self { + self.inner = self.inner.dashboard_name_prefix(input); + self + } + pub fn set_dashboard_name_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_dashboard_name_prefix(input); + self + } + ///

    The token returned by a previous call to indicate that there is more data available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListMetrics { + handle: std::sync::Arc>, + inner: crate::input::list_metrics_input::Builder, + } + impl ListMetrics { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListMetricsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The metric namespace to filter against. Only the namespace that matches exactly + /// will be returned.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The name of the metric to filter against. Only the metrics with names that match exactly + /// will be returned.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The dimensions to filter against. Only the dimensions that match exactly + /// will be returned.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    To filter the results to show only metrics that have had data points published + /// in the past three hours, specify this parameter + /// with a value of PT3H. This is the only valid value + /// for this parameter.

    + ///

    The results that are returned are an approximation of the value you specify. There + /// is a low probability that the returned results include metrics with last published + /// data as much as 40 minutes more than the specified time interval.

    + pub fn recently_active(mut self, input: crate::model::RecentlyActive) -> Self { + self.inner = self.inner.recently_active(input); + self + } + pub fn set_recently_active( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_recently_active(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListMetricStreams { + handle: std::sync::Arc>, + inner: crate::input::list_metric_streams_input::Builder, + } + impl ListMetricStreams { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListMetricStreamsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    Include this value, if it was returned by the previous call, to get the next set of metric streams.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The maximum number of results to return in one operation.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListTagsForResource { + handle: std::sync::Arc>, + inner: crate::input::list_tags_for_resource_input::Builder, + } + impl ListTagsForResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The ARN of the CloudWatch resource that you want to view tags for.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutAnomalyDetector { + handle: std::sync::Arc>, + inner: crate::input::put_anomaly_detector_input::Builder, + } + impl PutAnomalyDetector { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutAnomalyDetectorOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The namespace of the metric to create the anomaly detection model for.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The name of the metric to create the anomaly detection model for.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The metric dimensions to create the anomaly detection model for.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The statistic to use for the metric and the anomaly detection model.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.inner = self.inner.stat(input); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_stat(input); + self + } + ///

    The configuration specifies details about how the + /// anomaly detection model is to be trained, including + /// time ranges to exclude when training and updating the model. + /// You can specify as many as 10 time ranges.

    + ///

    The configuration can also include the time zone to use for + /// the metric.

    + pub fn configuration(mut self, input: crate::model::AnomalyDetectorConfiguration) -> Self { + self.inner = self.inner.configuration(input); + self + } + pub fn set_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_configuration(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutCompositeAlarm { + handle: std::sync::Arc>, + inner: crate::input::put_composite_alarm_input::Builder, + } + impl PutCompositeAlarm { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutCompositeAlarmOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is + /// TRUE.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.inner = self.inner.actions_enabled(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_actions_enabled(input); + self + } + ///

    The actions to execute when this alarm transitions to the ALARM state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + /// | arn:aws:ssm:region:account-id:opsitem:severity + /// + ///

    + pub fn alarm_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_actions(inp); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_actions(input); + self + } + ///

    The description for the composite alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_description(input); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_alarm_description(input); + self + } + ///

    The name for the composite alarm. This name must be unique within the Region.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_name(input); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_alarm_name(input); + self + } + ///

    An expression that specifies which other alarms are to be evaluated to determine this + /// composite alarm's state. For each alarm that you reference, you + /// designate a function that + /// specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You + /// can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the + /// functions in your expression.

    + ///

    You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.

    + ///

    Functions can include the following:

    + ///
      + ///
    • + ///

      + /// ALARM("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in ALARM state.

      + ///
    • + ///
    • + ///

      + /// OK("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in OK state.

      + ///
    • + ///
    • + ///

      + /// INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in INSUFFICIENT_DATA state.

      + ///
    • + ///
    • + ///

      + /// TRUE always evaluates to TRUE.

      + ///
    • + ///
    • + ///

      + /// FALSE always evaluates to FALSE.

      + ///
    • + ///
    + ///

    TRUE and FALSE are useful for testing a complex AlarmRule structure, and + /// for testing your alarm actions.

    + ///

    Alarm names specified in AlarmRule can be surrounded with double-quotes ("), but do not have to be.

    + ///

    The following + /// are some examples of AlarmRule:

    + ///
      + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh) specifies that the composite alarm goes into ALARM state only + /// if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.

      + ///
    • + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress) + /// specifies that the alarm goes to ALARM state if CPUUtilizationTooHigh is in ALARM state + /// and DeploymentInProgress is not in ALARM state. This example reduces + /// alarm noise during a known deployment window.

      + ///
    • + ///
    • + ///

      + /// (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh) goes into ALARM + /// state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK state. + /// This provides another example of using a composite alarm to prevent noise. This rule ensures that you are not notified with an + /// alarm action on high CPU or disk usage if a known network problem is also occurring.

      + ///
    • + ///
    + ///

    The AlarmRule can specify as many as 100 + /// "children" alarms. The AlarmRule expression can have as many as 500 elements. Elements + /// are child alarms, TRUE or FALSE statements, and + /// parentheses.

    + pub fn alarm_rule(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_rule(input); + self + } + pub fn set_alarm_rule(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_alarm_rule(input); + self + } + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + ///

    + pub fn insufficient_data_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.insufficient_data_actions(inp); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_insufficient_data_actions(input); + self + } + ///

    The actions to execute when this alarm transitions to an OK state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + ///

    + pub fn ok_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.ok_actions(inp); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_ok_actions(input); + self + } + ///

    A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.

    + ///

    Tags can help you organize and categorize your + /// resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with + /// certain tag values.

    + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutDashboard { + handle: std::sync::Arc>, + inner: crate::input::put_dashboard_input::Builder, + } + impl PutDashboard { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutDashboardOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing + /// its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are + /// A-Z, a-z, 0-9, "-", and "_". This parameter is required.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.dashboard_name(input); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_dashboard_name(input); + self + } + ///

    The detailed information about the dashboard in JSON format, including the widgets to include and their location + /// on the dashboard. This parameter is required.

    + ///

    For more information about the syntax, + /// see Dashboard Body Structure and Syntax.

    + pub fn dashboard_body(mut self, input: impl Into) -> Self { + self.inner = self.inner.dashboard_body(input); + self + } + pub fn set_dashboard_body( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_dashboard_body(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutInsightRule { + handle: std::sync::Arc>, + inner: crate::input::put_insight_rule_input::Builder, + } + impl PutInsightRule { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutInsightRuleOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    A unique name for the rule.

    + pub fn rule_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.rule_name(input); + self + } + pub fn set_rule_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_rule_name(input); + self + } + ///

    The state of the rule. Valid values are ENABLED and DISABLED.

    + pub fn rule_state(mut self, input: impl Into) -> Self { + self.inner = self.inner.rule_state(input); + self + } + pub fn set_rule_state(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_rule_state(input); + self + } + ///

    The definition of the rule, as a JSON object. For details on the valid syntax, see + /// Contributor Insights + /// Rule Syntax.

    + pub fn rule_definition(mut self, input: impl Into) -> Self { + self.inner = self.inner.rule_definition(input); + self + } + pub fn set_rule_definition( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_rule_definition(input); + self + } + ///

    A list of key-value pairs to associate with the Contributor Insights rule. + /// You can associate as many as 50 tags with a rule.

    + ///

    Tags can help you organize and categorize your + /// resources. You can also use them to scope user permissions, by + /// granting a user permission to access or change only the resources that have + /// certain tag values.

    + ///

    To be able to associate tags with a rule, you must have the cloudwatch:TagResource + /// permission in addition to the cloudwatch:PutInsightRule permission.

    + ///

    If you are using this operation to update an existing Contributor Insights rule, any tags + /// you specify in this parameter are ignored. To change the tags of an existing rule, use + /// TagResource.

    + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutMetricAlarm { + handle: std::sync::Arc>, + inner: crate::input::put_metric_alarm_input::Builder, + } + impl PutMetricAlarm { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutMetricAlarmOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name for the alarm. This name must be unique within the Region.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_name(input); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_alarm_name(input); + self + } + ///

    The description for the alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_description(input); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_alarm_description(input); + self + } + ///

    Indicates whether actions should be executed during any changes to the alarm state. The default is + /// TRUE.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.inner = self.inner.actions_enabled(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_actions_enabled(input); + self + } + ///

    The actions to execute when this alarm transitions to an OK state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0 + ///

    + pub fn ok_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.ok_actions(inp); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_ok_actions(input); + self + } + ///

    The actions to execute when this alarm transitions to the ALARM state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + /// | arn:aws:ssm:region:account-id:opsitem:severity + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + ///

    + pub fn alarm_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.alarm_actions(inp); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_alarm_actions(input); + self + } + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + ///

    + pub fn insufficient_data_actions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.insufficient_data_actions(inp); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_insufficient_data_actions(input); + self + } + ///

    The name for the metric associated with the alarm. For each PutMetricAlarm + /// operation, you must specify either MetricName or a Metrics array.

    + ///

    If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the + /// Dimensions, Period, + /// Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify + /// all this information in the Metrics array.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.metric_name(input); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_metric_name(input); + self + } + ///

    The namespace for the metric associated specified in MetricName.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The statistic for the metric specified in MetricName, other than percentile. + /// For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub fn statistic(mut self, input: crate::model::Statistic) -> Self { + self.inner = self.inner.statistic(input); + self + } + pub fn set_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_statistic(input); + self + } + ///

    The percentile statistic for the metric specified in MetricName. Specify a value + /// between p0.0 and p100. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub fn extended_statistic(mut self, input: impl Into) -> Self { + self.inner = self.inner.extended_statistic(input); + self + } + pub fn set_extended_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_extended_statistic(input); + self + } + ///

    The dimensions for the metric specified in MetricName.

    + pub fn dimensions(mut self, inp: impl Into) -> Self { + self.inner = self.inner.dimensions(inp); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_dimensions(input); + self + } + ///

    The length, in seconds, used each time the metric specified in MetricName is + /// evaluated. Valid values are 10, 30, and any multiple of 60.

    + ///

    + /// Period is required for alarms based on static thresholds. If + /// you are creating an alarm based on a metric math expression, you specify the + /// period for each metric within the objects in the Metrics array.

    + ///

    Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a + /// StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have + /// sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, + /// it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm + /// might often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, + /// which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

    + pub fn period(mut self, input: i32) -> Self { + self.inner = self.inner.period(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_period(input); + self + } + ///

    The unit of measure for the statistic. For example, the units for the Amazon EC2 + /// NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance + /// receives on all network interfaces. You can also specify a unit when you create a custom + /// metric. Units help provide conceptual meaning to your data. Metric data points that + /// specify a unit of measure, such as Percent, are aggregated separately.

    + ///

    If you don't specify Unit, CloudWatch retrieves all unit types that have been published for the + /// metric and attempts to evaluate the alarm. + /// Usually, metrics are + /// published with only one unit, so the alarm + /// works as intended.

    + ///

    However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's + /// behavior is not defined and + /// it behaves predictably.

    + ///

    We recommend omitting Unit so that you don't inadvertently + /// specify an incorrect unit that is not published for this metric. Doing so + /// causes the alarm to be stuck in the INSUFFICIENT DATA state.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.inner = self.inner.unit(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_unit(input); + self + } + ///

    The number of periods over which data is compared to the specified threshold. If you are + /// setting an alarm that requires that a number of consecutive data points be breaching to + /// trigger the alarm, this value specifies that number. If you are setting an "M out of N" + /// alarm, this value is the N.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

    + pub fn evaluation_periods(mut self, input: i32) -> Self { + self.inner = self.inner.evaluation_periods(input); + self + } + pub fn set_evaluation_periods(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_evaluation_periods(input); + self + } + ///

    The number of data points that must be breaching to trigger the alarm. This is used only if you are setting + /// an "M out of N" alarm. In that case, this value is the M. For more information, see + /// Evaluating an Alarm in the + /// Amazon CloudWatch User Guide.

    + pub fn datapoints_to_alarm(mut self, input: i32) -> Self { + self.inner = self.inner.datapoints_to_alarm(input); + self + } + pub fn set_datapoints_to_alarm(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_datapoints_to_alarm(input); + self + } + ///

    The value against which the specified statistic is compared.

    + ///

    This parameter is required for alarms based on static thresholds, but should + /// not be used for alarms based on anomaly detection models.

    + pub fn threshold(mut self, input: f64) -> Self { + self.inner = self.inner.threshold(input); + self + } + pub fn set_threshold(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_threshold(input); + self + } + ///

    The arithmetic operation to use when comparing the specified statistic and + /// threshold. The specified statistic value is used as the first operand.

    + ///

    The values LessThanLowerOrGreaterThanUpperThreshold, + /// LessThanLowerThreshold, and GreaterThanUpperThreshold + /// are used only for alarms based on anomaly detection models.

    + pub fn comparison_operator(mut self, input: crate::model::ComparisonOperator) -> Self { + self.inner = self.inner.comparison_operator(input); + self + } + pub fn set_comparison_operator( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_comparison_operator(input); + self + } + ///

    Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. + /// For more information, see Configuring How CloudWatch + /// Alarms Treats Missing Data.

    + ///

    Valid Values: breaching | notBreaching | ignore | missing + ///

    + pub fn treat_missing_data(mut self, input: impl Into) -> Self { + self.inner = self.inner.treat_missing_data(input); + self + } + pub fn set_treat_missing_data( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_treat_missing_data(input); + self + } + ///

    Used only for alarms based on percentiles. If you specify ignore, the alarm state does not change during periods with too few data points to be + /// statistically significant. If you specify evaluate or omit this parameter, the alarm is always evaluated and possibly changes state + /// no matter how many data points are available. For more information, see Percentile-Based CloudWatch Alarms and Low Data Samples.

    + ///

    Valid Values: evaluate | ignore + ///

    + pub fn evaluate_low_sample_count_percentile( + mut self, + input: impl Into, + ) -> Self { + self.inner = self.inner.evaluate_low_sample_count_percentile(input); + self + } + pub fn set_evaluate_low_sample_count_percentile( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_evaluate_low_sample_count_percentile(input); + self + } + ///

    An array of MetricDataQuery structures that enable you to create an alarm based on the result of a + /// metric math expression. For each PutMetricAlarm + /// operation, you must specify either MetricName or a Metrics array.

    + ///

    Each item in the Metrics array either retrieves a metric or performs a math expression.

    + ///

    One item in the Metrics array is the expression that the alarm watches. You designate this expression + /// by setting ReturnData to true for this object in the array. For more information, see MetricDataQuery.

    + ///

    If you use the Metrics parameter, you cannot include the MetricName, Dimensions, Period, + /// Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm in the same operation. + /// Instead, you retrieve + /// the metrics you are using in your math expression as part of the Metrics array.

    + pub fn metrics(mut self, inp: impl Into) -> Self { + self.inner = self.inner.metrics(inp); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_metrics(input); + self + } + ///

    A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.

    + ///

    Tags can help you organize and categorize your resources. You can also use them to scope user + /// permissions by granting a user + /// permission to access or change only resources with certain tag values.

    + ///

    If you are using this operation to update an existing alarm, any tags + /// you specify in this parameter are ignored. To change the tags of an existing alarm, use + /// TagResource + /// or UntagResource.

    + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

    If this is an alarm based on an anomaly detection model, make this value match + /// the ID of + /// the ANOMALY_DETECTION_BAND function.

    + ///

    For an example of how to use this parameter, see the + /// Anomaly Detection + /// Model Alarm example on this page.

    + ///

    If your alarm uses this parameter, it cannot have Auto Scaling actions.

    + pub fn threshold_metric_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.threshold_metric_id(input); + self + } + pub fn set_threshold_metric_id( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_threshold_metric_id(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutMetricData { + handle: std::sync::Arc>, + inner: crate::input::put_metric_data_input::Builder, + } + impl PutMetricData { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutMetricDataOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The namespace for the metric data.

    + ///

    To avoid conflicts + /// with AWS service namespaces, you should not specify a namespace that begins with AWS/ + ///

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.inner = self.inner.namespace(input); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_namespace(input); + self + } + ///

    The data for the metric. The array can include no more than 20 metrics per call.

    + pub fn metric_data(mut self, inp: impl Into) -> Self { + self.inner = self.inner.metric_data(inp); + self + } + pub fn set_metric_data( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_metric_data(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutMetricStream { + handle: std::sync::Arc>, + inner: crate::input::put_metric_stream_input::Builder, + } + impl PutMetricStream { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutMetricStreamOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    If you are creating a new metric stream, this is the name for the new stream. The name + /// must be different than the names of other metric streams in this account and Region.

    + ///

    If you are updating a metric stream, specify the name of that stream here.

    + ///

    Valid characters are A-Z, a-z, 0-9, "-" and "_".

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    If you specify this parameter, the stream sends only the + /// metrics from the metric namespaces that you specify here.

    + ///

    You cannot include IncludeFilters and ExcludeFilters + /// in the same operation.

    + pub fn include_filters(mut self, inp: impl Into) -> Self { + self.inner = self.inner.include_filters(inp); + self + } + pub fn set_include_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_include_filters(input); + self + } + ///

    If you specify this parameter, the stream sends metrics from all + /// metric namespaces except for the namespaces that you specify here.

    + ///

    You cannot include ExcludeFilters and IncludeFilters in + /// the same operation.

    + pub fn exclude_filters(mut self, inp: impl Into) -> Self { + self.inner = self.inner.exclude_filters(inp); + self + } + pub fn set_exclude_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_exclude_filters(input); + self + } + ///

    The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. + /// This Amazon Kinesis Firehose delivery stream must already exist and must be in the same + /// account as the metric stream.

    + pub fn firehose_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.firehose_arn(input); + self + } + pub fn set_firehose_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_firehose_arn(input); + self + } + ///

    The ARN of an IAM role that this metric stream will use to access + /// Amazon Kinesis Firehose resources. This IAM role must already + /// exist and must be in the same account as the metric stream. This IAM role must include the following permissions:

    + ///
      + ///
    • + ///

      firehose:PutRecord

      + ///
    • + ///
    • + ///

      firehose:PutRecordBatch

      + ///
    • + ///
    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.role_arn(input); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_role_arn(input); + self + } + ///

    The output format for the stream. Valid values are json + /// and opentelemetry0.7. For more information about metric stream + /// output formats, see + /// + /// Metric streams output formats.

    + pub fn output_format(mut self, input: crate::model::MetricStreamOutputFormat) -> Self { + self.inner = self.inner.output_format(input); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_output_format(input); + self + } + ///

    A list of key-value pairs to associate with the metric stream. You can associate as + /// many as 50 tags with a metric stream.

    + ///

    Tags can help you organize and categorize your resources. You can also use them to scope user + /// permissions by granting a user + /// permission to access or change only resources with certain tag values.

    + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct SetAlarmState { + handle: std::sync::Arc>, + inner: crate::input::set_alarm_state_input::Builder, + } + impl SetAlarmState { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::SetAlarmStateOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.alarm_name(input); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_alarm_name(input); + self + } + ///

    The value of the state.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.inner = self.inner.state_value(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_state_value(input); + self + } + ///

    The reason that this alarm is set to this specific state, in text format.

    + pub fn state_reason(mut self, input: impl Into) -> Self { + self.inner = self.inner.state_reason(input); + self + } + pub fn set_state_reason(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_state_reason(input); + self + } + ///

    The reason that this alarm is set to this specific state, in JSON format.

    + ///

    For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling + /// alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.

    + pub fn state_reason_data(mut self, input: impl Into) -> Self { + self.inner = self.inner.state_reason_data(input); + self + } + pub fn set_state_reason_data( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_state_reason_data(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct StartMetricStreams { + handle: std::sync::Arc>, + inner: crate::input::start_metric_streams_input::Builder, + } + impl StartMetricStreams { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::StartMetricStreamsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The array of the names of metric streams to start streaming.

    + ///

    This is an "all or nothing" operation. If you do not have + /// permission to access all of the metric streams that you list here, then none of the streams that you list + /// in the operation will start streaming.

    + pub fn names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.names(inp); + self + } + pub fn set_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct StopMetricStreams { + handle: std::sync::Arc>, + inner: crate::input::stop_metric_streams_input::Builder, + } + impl StopMetricStreams { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::StopMetricStreamsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The array of the names of metric streams to stop streaming.

    + ///

    This is an "all or nothing" operation. If you do not have + /// permission to access all of the metric streams that you list here, then none of the streams that you list + /// in the operation will stop streaming.

    + pub fn names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.names(inp); + self + } + pub fn set_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_names(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct TagResource { + handle: std::sync::Arc>, + inner: crate::input::tag_resource_input::Builder, + } + impl TagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::TagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The ARN of the CloudWatch resource that you're adding tags to.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

    The list of key-value pairs to associate with the alarm.

    + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UntagResource { + handle: std::sync::Arc>, + inner: crate::input::untag_resource_input::Builder, + } + impl UntagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UntagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The ARN of the CloudWatch resource that you're removing tags from.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

    The list of tag keys to remove from the resource.

    + pub fn tag_keys(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tag_keys(inp); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tag_keys(input); + self + } + } +} diff --git a/sdk/cloudwatch/src/config.rs b/sdk/cloudwatch/src/config.rs new file mode 100644 index 000000000000..eb973327e643 --- /dev/null +++ b/sdk/cloudwatch/src/config.rs @@ -0,0 +1,69 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub struct Config { + pub(crate) endpoint_resolver: ::std::sync::Arc, + pub(crate) region: Option, + pub(crate) credentials_provider: std::sync::Arc, +} +impl std::fmt::Debug for Config { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut config = f.debug_struct("Config"); + config.finish() + } +} +impl Config { + pub fn builder() -> Builder { + Builder::default() + } + /// The signature version 4 service signing name to use in the credential scope when signing requests. + /// + /// The signing service may be overidden by the `Endpoint`, or by specifying a custom [`SigningService`](aws_types::SigningService) during + /// operation construction + pub fn signing_service(&self) -> &'static str { + "monitoring" + } +} +#[derive(Default)] +pub struct Builder { + endpoint_resolver: Option<::std::sync::Arc>, + region: Option, + credentials_provider: Option>, +} +impl Builder { + pub fn new() -> Self { + Self::default() + } + pub fn endpoint_resolver( + mut self, + endpoint_resolver: impl aws_endpoint::ResolveAwsEndpoint + 'static, + ) -> Self { + self.endpoint_resolver = Some(::std::sync::Arc::new(endpoint_resolver)); + self + } + pub fn region(mut self, region_provider: impl aws_types::region::ProvideRegion) -> Self { + self.region = region_provider.region(); + self + } + /// Set the credentials provider for this service + pub fn credentials_provider( + mut self, + credentials_provider: impl aws_auth::ProvideCredentials + 'static, + ) -> Self { + self.credentials_provider = Some(std::sync::Arc::new(credentials_provider)); + self + } + pub fn build(self) -> Config { + Config { + endpoint_resolver: self + .endpoint_resolver + .unwrap_or_else(|| ::std::sync::Arc::new(crate::aws_endpoint::endpoint_resolver())), + region: { + use aws_types::region::ProvideRegion; + self.region + .or_else(|| aws_types::region::default_provider().region()) + }, + credentials_provider: self + .credentials_provider + .unwrap_or_else(|| std::sync::Arc::new(aws_auth::default_provider())), + } + } +} diff --git a/sdk/cloudwatch/src/error.rs b/sdk/cloudwatch/src/error.rs new file mode 100644 index 000000000000..43306b624665 --- /dev/null +++ b/sdk/cloudwatch/src/error.rs @@ -0,0 +1,4198 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteAlarmsError { + pub kind: DeleteAlarmsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteAlarmsErrorKind { + ResourceNotFound(crate::error::ResourceNotFound), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteAlarmsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteAlarmsErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), + DeleteAlarmsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteAlarmsError { + fn code(&self) -> Option<&str> { + DeleteAlarmsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteAlarmsError { + pub fn new(kind: DeleteAlarmsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteAlarmsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteAlarmsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_resource_not_found(&self) -> bool { + matches!(&self.kind, DeleteAlarmsErrorKind::ResourceNotFound(_)) + } +} +impl std::error::Error for DeleteAlarmsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteAlarmsErrorKind::ResourceNotFound(_inner) => Some(_inner), + DeleteAlarmsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteAnomalyDetectorError { + pub kind: DeleteAnomalyDetectorErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteAnomalyDetectorErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteAnomalyDetectorError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteAnomalyDetectorErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + DeleteAnomalyDetectorErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteAnomalyDetectorErrorKind::MissingRequiredParameterException(_inner) => { + _inner.fmt(f) + } + DeleteAnomalyDetectorErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteAnomalyDetectorErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteAnomalyDetectorError { + fn code(&self) -> Option<&str> { + DeleteAnomalyDetectorError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteAnomalyDetectorError { + pub fn new(kind: DeleteAnomalyDetectorErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteAnomalyDetectorErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteAnomalyDetectorErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + DeleteAnomalyDetectorErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAnomalyDetectorErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAnomalyDetectorErrorKind::MissingRequiredParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAnomalyDetectorErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for DeleteAnomalyDetectorError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteAnomalyDetectorErrorKind::InternalServiceFault(_inner) => Some(_inner), + DeleteAnomalyDetectorErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteAnomalyDetectorErrorKind::MissingRequiredParameterException(_inner) => { + Some(_inner) + } + DeleteAnomalyDetectorErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteAnomalyDetectorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteDashboardsError { + pub kind: DeleteDashboardsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteDashboardsErrorKind { + DashboardNotFoundError(crate::error::DashboardNotFoundError), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteDashboardsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteDashboardsErrorKind::DashboardNotFoundError(_inner) => _inner.fmt(f), + DeleteDashboardsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + DeleteDashboardsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteDashboardsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteDashboardsError { + fn code(&self) -> Option<&str> { + DeleteDashboardsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteDashboardsError { + pub fn new(kind: DeleteDashboardsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteDashboardsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteDashboardsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_dashboard_not_found_error(&self) -> bool { + matches!( + &self.kind, + DeleteDashboardsErrorKind::DashboardNotFoundError(_) + ) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + DeleteDashboardsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDashboardsErrorKind::InvalidParameterValueException(_) + ) + } +} +impl std::error::Error for DeleteDashboardsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteDashboardsErrorKind::DashboardNotFoundError(_inner) => Some(_inner), + DeleteDashboardsErrorKind::InternalServiceFault(_inner) => Some(_inner), + DeleteDashboardsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteDashboardsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteInsightRulesError { + pub kind: DeleteInsightRulesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteInsightRulesErrorKind { + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteInsightRulesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteInsightRulesErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteInsightRulesErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + DeleteInsightRulesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteInsightRulesError { + fn code(&self) -> Option<&str> { + DeleteInsightRulesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteInsightRulesError { + pub fn new(kind: DeleteInsightRulesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteInsightRulesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteInsightRulesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DeleteInsightRulesErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteInsightRulesErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for DeleteInsightRulesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteInsightRulesErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteInsightRulesErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + DeleteInsightRulesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteMetricStreamError { + pub kind: DeleteMetricStreamErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteMetricStreamErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteMetricStreamError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteMetricStreamErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + DeleteMetricStreamErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteMetricStreamErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + DeleteMetricStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteMetricStreamError { + fn code(&self) -> Option<&str> { + DeleteMetricStreamError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteMetricStreamError { + pub fn new(kind: DeleteMetricStreamErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteMetricStreamErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteMetricStreamErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + DeleteMetricStreamErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMetricStreamErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMetricStreamErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for DeleteMetricStreamError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteMetricStreamErrorKind::InternalServiceFault(_inner) => Some(_inner), + DeleteMetricStreamErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteMetricStreamErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + DeleteMetricStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAlarmHistoryError { + pub kind: DescribeAlarmHistoryErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAlarmHistoryErrorKind { + InvalidNextToken(crate::error::InvalidNextToken), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAlarmHistoryError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAlarmHistoryErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + DescribeAlarmHistoryErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAlarmHistoryError { + fn code(&self) -> Option<&str> { + DescribeAlarmHistoryError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAlarmHistoryError { + pub fn new(kind: DescribeAlarmHistoryErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAlarmHistoryErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAlarmHistoryErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_next_token(&self) -> bool { + matches!( + &self.kind, + DescribeAlarmHistoryErrorKind::InvalidNextToken(_) + ) + } +} +impl std::error::Error for DescribeAlarmHistoryError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAlarmHistoryErrorKind::InvalidNextToken(_inner) => Some(_inner), + DescribeAlarmHistoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAlarmsError { + pub kind: DescribeAlarmsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAlarmsErrorKind { + InvalidNextToken(crate::error::InvalidNextToken), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAlarmsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAlarmsErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + DescribeAlarmsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAlarmsError { + fn code(&self) -> Option<&str> { + DescribeAlarmsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAlarmsError { + pub fn new(kind: DescribeAlarmsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAlarmsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAlarmsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_next_token(&self) -> bool { + matches!(&self.kind, DescribeAlarmsErrorKind::InvalidNextToken(_)) + } +} +impl std::error::Error for DescribeAlarmsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAlarmsErrorKind::InvalidNextToken(_inner) => Some(_inner), + DescribeAlarmsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAlarmsForMetricError { + pub kind: DescribeAlarmsForMetricErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAlarmsForMetricErrorKind { + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAlarmsForMetricError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAlarmsForMetricErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAlarmsForMetricError { + fn code(&self) -> Option<&str> { + DescribeAlarmsForMetricError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAlarmsForMetricError { + pub fn new(kind: DescribeAlarmsForMetricErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAlarmsForMetricErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAlarmsForMetricErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } +} +impl std::error::Error for DescribeAlarmsForMetricError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAlarmsForMetricErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAnomalyDetectorsError { + pub kind: DescribeAnomalyDetectorsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAnomalyDetectorsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidNextToken(crate::error::InvalidNextToken), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAnomalyDetectorsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAnomalyDetectorsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + DescribeAnomalyDetectorsErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + DescribeAnomalyDetectorsErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + DescribeAnomalyDetectorsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAnomalyDetectorsError { + fn code(&self) -> Option<&str> { + DescribeAnomalyDetectorsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAnomalyDetectorsError { + pub fn new(kind: DescribeAnomalyDetectorsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAnomalyDetectorsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAnomalyDetectorsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + DescribeAnomalyDetectorsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_next_token(&self) -> bool { + matches!( + &self.kind, + DescribeAnomalyDetectorsErrorKind::InvalidNextToken(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAnomalyDetectorsErrorKind::InvalidParameterValueException(_) + ) + } +} +impl std::error::Error for DescribeAnomalyDetectorsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAnomalyDetectorsErrorKind::InternalServiceFault(_inner) => Some(_inner), + DescribeAnomalyDetectorsErrorKind::InvalidNextToken(_inner) => Some(_inner), + DescribeAnomalyDetectorsErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DescribeAnomalyDetectorsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeInsightRulesError { + pub kind: DescribeInsightRulesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeInsightRulesErrorKind { + InvalidNextToken(crate::error::InvalidNextToken), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeInsightRulesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeInsightRulesErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + DescribeInsightRulesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeInsightRulesError { + fn code(&self) -> Option<&str> { + DescribeInsightRulesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeInsightRulesError { + pub fn new(kind: DescribeInsightRulesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeInsightRulesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeInsightRulesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_next_token(&self) -> bool { + matches!( + &self.kind, + DescribeInsightRulesErrorKind::InvalidNextToken(_) + ) + } +} +impl std::error::Error for DescribeInsightRulesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeInsightRulesErrorKind::InvalidNextToken(_inner) => Some(_inner), + DescribeInsightRulesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DisableAlarmActionsError { + pub kind: DisableAlarmActionsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DisableAlarmActionsErrorKind { + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DisableAlarmActionsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DisableAlarmActionsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DisableAlarmActionsError { + fn code(&self) -> Option<&str> { + DisableAlarmActionsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DisableAlarmActionsError { + pub fn new(kind: DisableAlarmActionsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DisableAlarmActionsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DisableAlarmActionsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } +} +impl std::error::Error for DisableAlarmActionsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DisableAlarmActionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DisableInsightRulesError { + pub kind: DisableInsightRulesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DisableInsightRulesErrorKind { + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DisableInsightRulesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DisableInsightRulesErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DisableInsightRulesErrorKind::MissingRequiredParameterException(_inner) => { + _inner.fmt(f) + } + DisableInsightRulesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DisableInsightRulesError { + fn code(&self) -> Option<&str> { + DisableInsightRulesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DisableInsightRulesError { + pub fn new(kind: DisableInsightRulesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DisableInsightRulesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DisableInsightRulesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + DisableInsightRulesErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DisableInsightRulesErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for DisableInsightRulesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DisableInsightRulesErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DisableInsightRulesErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + DisableInsightRulesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct EnableAlarmActionsError { + pub kind: EnableAlarmActionsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum EnableAlarmActionsErrorKind { + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for EnableAlarmActionsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + EnableAlarmActionsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for EnableAlarmActionsError { + fn code(&self) -> Option<&str> { + EnableAlarmActionsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl EnableAlarmActionsError { + pub fn new(kind: EnableAlarmActionsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: EnableAlarmActionsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: EnableAlarmActionsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } +} +impl std::error::Error for EnableAlarmActionsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + EnableAlarmActionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct EnableInsightRulesError { + pub kind: EnableInsightRulesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum EnableInsightRulesErrorKind { + InvalidParameterValueException(crate::error::InvalidParameterValueException), + LimitExceededException(crate::error::LimitExceededException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for EnableInsightRulesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + EnableInsightRulesErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + EnableInsightRulesErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + EnableInsightRulesErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + EnableInsightRulesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for EnableInsightRulesError { + fn code(&self) -> Option<&str> { + EnableInsightRulesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl EnableInsightRulesError { + pub fn new(kind: EnableInsightRulesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: EnableInsightRulesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: EnableInsightRulesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + EnableInsightRulesErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + EnableInsightRulesErrorKind::LimitExceededException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + EnableInsightRulesErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for EnableInsightRulesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + EnableInsightRulesErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + EnableInsightRulesErrorKind::LimitExceededException(_inner) => Some(_inner), + EnableInsightRulesErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + EnableInsightRulesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetDashboardError { + pub kind: GetDashboardErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetDashboardErrorKind { + DashboardNotFoundError(crate::error::DashboardNotFoundError), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetDashboardError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetDashboardErrorKind::DashboardNotFoundError(_inner) => _inner.fmt(f), + GetDashboardErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + GetDashboardErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetDashboardErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetDashboardError { + fn code(&self) -> Option<&str> { + GetDashboardError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetDashboardError { + pub fn new(kind: GetDashboardErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetDashboardErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetDashboardErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_dashboard_not_found_error(&self) -> bool { + matches!(&self.kind, GetDashboardErrorKind::DashboardNotFoundError(_)) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, GetDashboardErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + GetDashboardErrorKind::InvalidParameterValueException(_) + ) + } +} +impl std::error::Error for GetDashboardError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetDashboardErrorKind::DashboardNotFoundError(_inner) => Some(_inner), + GetDashboardErrorKind::InternalServiceFault(_inner) => Some(_inner), + GetDashboardErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetDashboardErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetInsightRuleReportError { + pub kind: GetInsightRuleReportErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetInsightRuleReportErrorKind { + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetInsightRuleReportError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetInsightRuleReportErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetInsightRuleReportErrorKind::MissingRequiredParameterException(_inner) => { + _inner.fmt(f) + } + GetInsightRuleReportErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetInsightRuleReportErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetInsightRuleReportError { + fn code(&self) -> Option<&str> { + GetInsightRuleReportError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetInsightRuleReportError { + pub fn new(kind: GetInsightRuleReportErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetInsightRuleReportErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetInsightRuleReportErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + GetInsightRuleReportErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetInsightRuleReportErrorKind::MissingRequiredParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetInsightRuleReportErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for GetInsightRuleReportError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetInsightRuleReportErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetInsightRuleReportErrorKind::MissingRequiredParameterException(_inner) => { + Some(_inner) + } + GetInsightRuleReportErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetInsightRuleReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetMetricDataError { + pub kind: GetMetricDataErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetMetricDataErrorKind { + InvalidNextToken(crate::error::InvalidNextToken), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetMetricDataError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetMetricDataErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + GetMetricDataErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetMetricDataError { + fn code(&self) -> Option<&str> { + GetMetricDataError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetMetricDataError { + pub fn new(kind: GetMetricDataErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetMetricDataErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetMetricDataErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_next_token(&self) -> bool { + matches!(&self.kind, GetMetricDataErrorKind::InvalidNextToken(_)) + } +} +impl std::error::Error for GetMetricDataError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetMetricDataErrorKind::InvalidNextToken(_inner) => Some(_inner), + GetMetricDataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetMetricStatisticsError { + pub kind: GetMetricStatisticsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetMetricStatisticsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterCombinationException(crate::error::InvalidParameterCombinationException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetMetricStatisticsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetMetricStatisticsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + GetMetricStatisticsErrorKind::InvalidParameterCombinationException(_inner) => { + _inner.fmt(f) + } + GetMetricStatisticsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetMetricStatisticsErrorKind::MissingRequiredParameterException(_inner) => { + _inner.fmt(f) + } + GetMetricStatisticsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetMetricStatisticsError { + fn code(&self) -> Option<&str> { + GetMetricStatisticsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetMetricStatisticsError { + pub fn new(kind: GetMetricStatisticsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetMetricStatisticsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetMetricStatisticsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + GetMetricStatisticsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_combination_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStatisticsErrorKind::InvalidParameterCombinationException(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStatisticsErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStatisticsErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for GetMetricStatisticsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetMetricStatisticsErrorKind::InternalServiceFault(_inner) => Some(_inner), + GetMetricStatisticsErrorKind::InvalidParameterCombinationException(_inner) => { + Some(_inner) + } + GetMetricStatisticsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetMetricStatisticsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + GetMetricStatisticsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetMetricStreamError { + pub kind: GetMetricStreamErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetMetricStreamErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterCombinationException(crate::error::InvalidParameterCombinationException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetMetricStreamError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetMetricStreamErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + GetMetricStreamErrorKind::InvalidParameterCombinationException(_inner) => _inner.fmt(f), + GetMetricStreamErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetMetricStreamErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + GetMetricStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetMetricStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetMetricStreamError { + fn code(&self) -> Option<&str> { + GetMetricStreamError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetMetricStreamError { + pub fn new(kind: GetMetricStreamErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetMetricStreamErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetMetricStreamErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + GetMetricStreamErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_combination_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStreamErrorKind::InvalidParameterCombinationException(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStreamErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStreamErrorKind::MissingRequiredParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetMetricStreamErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for GetMetricStreamError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetMetricStreamErrorKind::InternalServiceFault(_inner) => Some(_inner), + GetMetricStreamErrorKind::InvalidParameterCombinationException(_inner) => Some(_inner), + GetMetricStreamErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetMetricStreamErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + GetMetricStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetMetricStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetMetricWidgetImageError { + pub kind: GetMetricWidgetImageErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetMetricWidgetImageErrorKind { + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetMetricWidgetImageError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetMetricWidgetImageErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetMetricWidgetImageError { + fn code(&self) -> Option<&str> { + GetMetricWidgetImageError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetMetricWidgetImageError { + pub fn new(kind: GetMetricWidgetImageErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetMetricWidgetImageErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetMetricWidgetImageErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } +} +impl std::error::Error for GetMetricWidgetImageError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetMetricWidgetImageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListDashboardsError { + pub kind: ListDashboardsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListDashboardsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListDashboardsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListDashboardsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + ListDashboardsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListDashboardsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListDashboardsError { + fn code(&self) -> Option<&str> { + ListDashboardsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListDashboardsError { + pub fn new(kind: ListDashboardsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListDashboardsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListDashboardsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, ListDashboardsErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + ListDashboardsErrorKind::InvalidParameterValueException(_) + ) + } +} +impl std::error::Error for ListDashboardsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListDashboardsErrorKind::InternalServiceFault(_inner) => Some(_inner), + ListDashboardsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListDashboardsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListMetricsError { + pub kind: ListMetricsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListMetricsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListMetricsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListMetricsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + ListMetricsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListMetricsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListMetricsError { + fn code(&self) -> Option<&str> { + ListMetricsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListMetricsError { + pub fn new(kind: ListMetricsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListMetricsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListMetricsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, ListMetricsErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + ListMetricsErrorKind::InvalidParameterValueException(_) + ) + } +} +impl std::error::Error for ListMetricsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListMetricsErrorKind::InternalServiceFault(_inner) => Some(_inner), + ListMetricsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListMetricsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListMetricStreamsError { + pub kind: ListMetricStreamsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListMetricStreamsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidNextToken(crate::error::InvalidNextToken), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListMetricStreamsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListMetricStreamsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + ListMetricStreamsErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), + ListMetricStreamsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + ListMetricStreamsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListMetricStreamsError { + fn code(&self) -> Option<&str> { + ListMetricStreamsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListMetricStreamsError { + pub fn new(kind: ListMetricStreamsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListMetricStreamsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListMetricStreamsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + ListMetricStreamsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_next_token(&self) -> bool { + matches!(&self.kind, ListMetricStreamsErrorKind::InvalidNextToken(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + ListMetricStreamsErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListMetricStreamsErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for ListMetricStreamsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListMetricStreamsErrorKind::InternalServiceFault(_inner) => Some(_inner), + ListMetricStreamsErrorKind::InvalidNextToken(_inner) => Some(_inner), + ListMetricStreamsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + ListMetricStreamsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListTagsForResourceError { + pub kind: ListTagsForResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListTagsForResourceErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListTagsForResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListTagsForResourceErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListTagsForResourceError { + fn code(&self) -> Option<&str> { + ListTagsForResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListTagsForResourceError { + pub fn new(kind: ListTagsForResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for ListTagsForResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListTagsForResourceErrorKind::InternalServiceFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutAnomalyDetectorError { + pub kind: PutAnomalyDetectorErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutAnomalyDetectorErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + LimitExceededException(crate::error::LimitExceededException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutAnomalyDetectorError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutAnomalyDetectorErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + PutAnomalyDetectorErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PutAnomalyDetectorErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutAnomalyDetectorErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + PutAnomalyDetectorErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutAnomalyDetectorError { + fn code(&self) -> Option<&str> { + PutAnomalyDetectorError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutAnomalyDetectorError { + pub fn new(kind: PutAnomalyDetectorErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutAnomalyDetectorErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutAnomalyDetectorErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + PutAnomalyDetectorErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + PutAnomalyDetectorErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutAnomalyDetectorErrorKind::LimitExceededException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutAnomalyDetectorErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for PutAnomalyDetectorError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutAnomalyDetectorErrorKind::InternalServiceFault(_inner) => Some(_inner), + PutAnomalyDetectorErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PutAnomalyDetectorErrorKind::LimitExceededException(_inner) => Some(_inner), + PutAnomalyDetectorErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + PutAnomalyDetectorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutCompositeAlarmError { + pub kind: PutCompositeAlarmErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutCompositeAlarmErrorKind { + LimitExceededFault(crate::error::LimitExceededFault), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutCompositeAlarmError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutCompositeAlarmErrorKind::LimitExceededFault(_inner) => _inner.fmt(f), + PutCompositeAlarmErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutCompositeAlarmError { + fn code(&self) -> Option<&str> { + PutCompositeAlarmError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutCompositeAlarmError { + pub fn new(kind: PutCompositeAlarmErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutCompositeAlarmErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutCompositeAlarmErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_limit_exceeded_fault(&self) -> bool { + matches!( + &self.kind, + PutCompositeAlarmErrorKind::LimitExceededFault(_) + ) + } +} +impl std::error::Error for PutCompositeAlarmError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutCompositeAlarmErrorKind::LimitExceededFault(_inner) => Some(_inner), + PutCompositeAlarmErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutDashboardError { + pub kind: PutDashboardErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutDashboardErrorKind { + DashboardInvalidInputError(crate::error::DashboardInvalidInputError), + InternalServiceFault(crate::error::InternalServiceFault), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutDashboardError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutDashboardErrorKind::DashboardInvalidInputError(_inner) => _inner.fmt(f), + PutDashboardErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + PutDashboardErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutDashboardError { + fn code(&self) -> Option<&str> { + PutDashboardError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutDashboardError { + pub fn new(kind: PutDashboardErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutDashboardErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutDashboardErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_dashboard_invalid_input_error(&self) -> bool { + matches!( + &self.kind, + PutDashboardErrorKind::DashboardInvalidInputError(_) + ) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, PutDashboardErrorKind::InternalServiceFault(_)) + } +} +impl std::error::Error for PutDashboardError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutDashboardErrorKind::DashboardInvalidInputError(_inner) => Some(_inner), + PutDashboardErrorKind::InternalServiceFault(_inner) => Some(_inner), + PutDashboardErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutInsightRuleError { + pub kind: PutInsightRuleErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutInsightRuleErrorKind { + InvalidParameterValueException(crate::error::InvalidParameterValueException), + LimitExceededException(crate::error::LimitExceededException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutInsightRuleError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutInsightRuleErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PutInsightRuleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutInsightRuleErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + PutInsightRuleErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutInsightRuleError { + fn code(&self) -> Option<&str> { + PutInsightRuleError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutInsightRuleError { + pub fn new(kind: PutInsightRuleErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutInsightRuleErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutInsightRuleErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + PutInsightRuleErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutInsightRuleErrorKind::LimitExceededException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutInsightRuleErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for PutInsightRuleError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutInsightRuleErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PutInsightRuleErrorKind::LimitExceededException(_inner) => Some(_inner), + PutInsightRuleErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + PutInsightRuleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutMetricAlarmError { + pub kind: PutMetricAlarmErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutMetricAlarmErrorKind { + LimitExceededFault(crate::error::LimitExceededFault), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutMetricAlarmError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutMetricAlarmErrorKind::LimitExceededFault(_inner) => _inner.fmt(f), + PutMetricAlarmErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutMetricAlarmError { + fn code(&self) -> Option<&str> { + PutMetricAlarmError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutMetricAlarmError { + pub fn new(kind: PutMetricAlarmErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutMetricAlarmErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutMetricAlarmErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_limit_exceeded_fault(&self) -> bool { + matches!(&self.kind, PutMetricAlarmErrorKind::LimitExceededFault(_)) + } +} +impl std::error::Error for PutMetricAlarmError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutMetricAlarmErrorKind::LimitExceededFault(_inner) => Some(_inner), + PutMetricAlarmErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutMetricDataError { + pub kind: PutMetricDataErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutMetricDataErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterCombinationException(crate::error::InvalidParameterCombinationException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutMetricDataError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutMetricDataErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + PutMetricDataErrorKind::InvalidParameterCombinationException(_inner) => _inner.fmt(f), + PutMetricDataErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PutMetricDataErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + PutMetricDataErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutMetricDataError { + fn code(&self) -> Option<&str> { + PutMetricDataError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutMetricDataError { + pub fn new(kind: PutMetricDataErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutMetricDataErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutMetricDataErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, PutMetricDataErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_combination_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricDataErrorKind::InvalidParameterCombinationException(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricDataErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricDataErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for PutMetricDataError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutMetricDataErrorKind::InternalServiceFault(_inner) => Some(_inner), + PutMetricDataErrorKind::InvalidParameterCombinationException(_inner) => Some(_inner), + PutMetricDataErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PutMetricDataErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + PutMetricDataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutMetricStreamError { + pub kind: PutMetricStreamErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutMetricStreamErrorKind { + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterCombinationException(crate::error::InvalidParameterCombinationException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutMetricStreamError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutMetricStreamErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + PutMetricStreamErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + PutMetricStreamErrorKind::InvalidParameterCombinationException(_inner) => _inner.fmt(f), + PutMetricStreamErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PutMetricStreamErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + PutMetricStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutMetricStreamError { + fn code(&self) -> Option<&str> { + PutMetricStreamError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutMetricStreamError { + pub fn new(kind: PutMetricStreamErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutMetricStreamErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutMetricStreamErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_concurrent_modification_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricStreamErrorKind::ConcurrentModificationException(_) + ) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + PutMetricStreamErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_combination_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricStreamErrorKind::InvalidParameterCombinationException(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricStreamErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricStreamErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for PutMetricStreamError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutMetricStreamErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + PutMetricStreamErrorKind::InternalServiceFault(_inner) => Some(_inner), + PutMetricStreamErrorKind::InvalidParameterCombinationException(_inner) => Some(_inner), + PutMetricStreamErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PutMetricStreamErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + PutMetricStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct SetAlarmStateError { + pub kind: SetAlarmStateErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum SetAlarmStateErrorKind { + InvalidFormatFault(crate::error::InvalidFormatFault), + ResourceNotFound(crate::error::ResourceNotFound), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for SetAlarmStateError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + SetAlarmStateErrorKind::InvalidFormatFault(_inner) => _inner.fmt(f), + SetAlarmStateErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), + SetAlarmStateErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for SetAlarmStateError { + fn code(&self) -> Option<&str> { + SetAlarmStateError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl SetAlarmStateError { + pub fn new(kind: SetAlarmStateErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: SetAlarmStateErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: SetAlarmStateErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_format_fault(&self) -> bool { + matches!(&self.kind, SetAlarmStateErrorKind::InvalidFormatFault(_)) + } + pub fn is_resource_not_found(&self) -> bool { + matches!(&self.kind, SetAlarmStateErrorKind::ResourceNotFound(_)) + } +} +impl std::error::Error for SetAlarmStateError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + SetAlarmStateErrorKind::InvalidFormatFault(_inner) => Some(_inner), + SetAlarmStateErrorKind::ResourceNotFound(_inner) => Some(_inner), + SetAlarmStateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct StartMetricStreamsError { + pub kind: StartMetricStreamsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum StartMetricStreamsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for StartMetricStreamsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + StartMetricStreamsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + StartMetricStreamsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + StartMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + StartMetricStreamsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for StartMetricStreamsError { + fn code(&self) -> Option<&str> { + StartMetricStreamsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl StartMetricStreamsError { + pub fn new(kind: StartMetricStreamsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: StartMetricStreamsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: StartMetricStreamsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + StartMetricStreamsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + StartMetricStreamsErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + StartMetricStreamsErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for StartMetricStreamsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + StartMetricStreamsErrorKind::InternalServiceFault(_inner) => Some(_inner), + StartMetricStreamsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + StartMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + StartMetricStreamsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct StopMetricStreamsError { + pub kind: StopMetricStreamsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum StopMetricStreamsErrorKind { + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for StopMetricStreamsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + StopMetricStreamsErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + StopMetricStreamsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + StopMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f), + StopMetricStreamsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for StopMetricStreamsError { + fn code(&self) -> Option<&str> { + StopMetricStreamsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl StopMetricStreamsError { + pub fn new(kind: StopMetricStreamsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: StopMetricStreamsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: StopMetricStreamsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_internal_service_fault(&self) -> bool { + matches!( + &self.kind, + StopMetricStreamsErrorKind::InternalServiceFault(_) + ) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + StopMetricStreamsErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_missing_required_parameter_exception(&self) -> bool { + matches!( + &self.kind, + StopMetricStreamsErrorKind::MissingRequiredParameterException(_) + ) + } +} +impl std::error::Error for StopMetricStreamsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + StopMetricStreamsErrorKind::InternalServiceFault(_inner) => Some(_inner), + StopMetricStreamsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + StopMetricStreamsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner), + StopMetricStreamsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct TagResourceError { + pub kind: TagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum TagResourceErrorKind { + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for TagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + TagResourceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagResourceErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for TagResourceError { + fn code(&self) -> Option<&str> { + TagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl TagResourceError { + pub fn new(kind: TagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: TagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: TagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_concurrent_modification_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ConcurrentModificationException(_) + ) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for TagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + TagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagResourceErrorKind::InternalServiceFault(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UntagResourceError { + pub kind: UntagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UntagResourceErrorKind { + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UntagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UntagResourceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InternalServiceFault(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UntagResourceError { + fn code(&self) -> Option<&str> { + UntagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UntagResourceError { + pub fn new(kind: UntagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UntagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UntagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_concurrent_modification_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ConcurrentModificationException(_) + ) + } + pub fn is_internal_service_fault(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::InternalServiceFault(_)) + } + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterValueException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) + } +} +impl std::error::Error for UntagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UntagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagResourceErrorKind::InternalServiceFault(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +///

    The named resource does not exist.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { + pub resource_type: std::option::Option, + pub resource_id: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ResourceNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ResourceNotFoundException"); + formatter.field("resource_type", &self.resource_type); + formatter.field("resource_id", &self.resource_id); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ResourceNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ResourceNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ResourceNotFoundException")?; + if let Some(inner_1) = &self.message { + write!(f, ": {}", inner_1)?; + } + Ok(()) + } +} +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_type: std::option::Option, + pub(crate) resource_id: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn resource_type(mut self, input: impl Into) -> Self { + self.resource_type = Some(input.into()); + self + } + pub fn set_resource_type( + mut self, + input: std::option::Option, + ) -> Self { + self.resource_type = input; + self + } + pub fn resource_id(mut self, input: impl Into) -> Self { + self.resource_id = Some(input.into()); + self + } + pub fn set_resource_id(mut self, input: std::option::Option) -> Self { + self.resource_id = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { + resource_type: self.resource_type, + resource_id: self.resource_id, + message: self.message, + } + } + } +} +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() + } +} + +///

    The value of an input parameter is bad or out-of-range.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterValueException { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidParameterValueException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidParameterValueException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidParameterValueException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidParameterValueException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidParameterValueException")?; + if let Some(inner_2) = &self.message { + write!(f, ": {}", inner_2)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidParameterValueException {} +/// See [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) +pub mod invalid_parameter_value_exception { + /// A builder for [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn build(self) -> crate::error::InvalidParameterValueException { + crate::error::InvalidParameterValueException { + message: self.message, + } + } + } +} +impl InvalidParameterValueException { + /// Creates a new builder-style object to manufacture [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn builder() -> crate::error::invalid_parameter_value_exception::Builder { + crate::error::invalid_parameter_value_exception::Builder::default() + } +} + +///

    Request processing has failed due to some unknown error, exception, or failure.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServiceFault { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for InternalServiceFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InternalServiceFault"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InternalServiceFault { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InternalServiceFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InternalServiceFault")?; + if let Some(inner_3) = &self.message { + write!(f, ": {}", inner_3)?; + } + Ok(()) + } +} +impl std::error::Error for InternalServiceFault {} +/// See [`InternalServiceFault`](crate::error::InternalServiceFault) +pub mod internal_service_fault { + /// A builder for [`InternalServiceFault`](crate::error::InternalServiceFault) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InternalServiceFault`](crate::error::InternalServiceFault) + pub fn build(self) -> crate::error::InternalServiceFault { + crate::error::InternalServiceFault { + message: self.message, + } + } + } +} +impl InternalServiceFault { + /// Creates a new builder-style object to manufacture [`InternalServiceFault`](crate::error::InternalServiceFault) + pub fn builder() -> crate::error::internal_service_fault::Builder { + crate::error::internal_service_fault::Builder::default() + } +} + +///

    More than one process tried to modify a resource at the same time.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConcurrentModificationException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ConcurrentModificationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ConcurrentModificationException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ConcurrentModificationException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ConcurrentModificationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ConcurrentModificationException")?; + if let Some(inner_4) = &self.message { + write!(f, ": {}", inner_4)?; + } + Ok(()) + } +} +impl std::error::Error for ConcurrentModificationException {} +/// See [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) +pub mod concurrent_modification_exception { + /// A builder for [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn build(self) -> crate::error::ConcurrentModificationException { + crate::error::ConcurrentModificationException { + message: self.message, + } + } + } +} +impl ConcurrentModificationException { + /// Creates a new builder-style object to manufacture [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn builder() -> crate::error::concurrent_modification_exception::Builder { + crate::error::concurrent_modification_exception::Builder::default() + } +} + +///

    An input parameter that is required is missing.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MissingRequiredParameterException { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for MissingRequiredParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MissingRequiredParameterException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl MissingRequiredParameterException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for MissingRequiredParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "MissingRequiredParameterException")?; + if let Some(inner_5) = &self.message { + write!(f, ": {}", inner_5)?; + } + Ok(()) + } +} +impl std::error::Error for MissingRequiredParameterException {} +/// See [`MissingRequiredParameterException`](crate::error::MissingRequiredParameterException) +pub mod missing_required_parameter_exception { + /// A builder for [`MissingRequiredParameterException`](crate::error::MissingRequiredParameterException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`MissingRequiredParameterException`](crate::error::MissingRequiredParameterException) + pub fn build(self) -> crate::error::MissingRequiredParameterException { + crate::error::MissingRequiredParameterException { + message: self.message, + } + } + } +} +impl MissingRequiredParameterException { + /// Creates a new builder-style object to manufacture [`MissingRequiredParameterException`](crate::error::MissingRequiredParameterException) + pub fn builder() -> crate::error::missing_required_parameter_exception::Builder { + crate::error::missing_required_parameter_exception::Builder::default() + } +} + +///

    The named resource does not exist.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFound { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for ResourceNotFound { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ResourceNotFound"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ResourceNotFound { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ResourceNotFound { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ResourceNotFound")?; + if let Some(inner_6) = &self.message { + write!(f, ": {}", inner_6)?; + } + Ok(()) + } +} +impl std::error::Error for ResourceNotFound {} +/// See [`ResourceNotFound`](crate::error::ResourceNotFound) +pub mod resource_not_found { + /// A builder for [`ResourceNotFound`](crate::error::ResourceNotFound) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ResourceNotFound`](crate::error::ResourceNotFound) + pub fn build(self) -> crate::error::ResourceNotFound { + crate::error::ResourceNotFound { + message: self.message, + } + } + } +} +impl ResourceNotFound { + /// Creates a new builder-style object to manufacture [`ResourceNotFound`](crate::error::ResourceNotFound) + pub fn builder() -> crate::error::resource_not_found::Builder { + crate::error::resource_not_found::Builder::default() + } +} + +///

    Data was not syntactically valid JSON.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidFormatFault { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidFormatFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidFormatFault"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidFormatFault { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidFormatFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidFormatFault")?; + if let Some(inner_7) = &self.message { + write!(f, ": {}", inner_7)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidFormatFault {} +/// See [`InvalidFormatFault`](crate::error::InvalidFormatFault) +pub mod invalid_format_fault { + /// A builder for [`InvalidFormatFault`](crate::error::InvalidFormatFault) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidFormatFault`](crate::error::InvalidFormatFault) + pub fn build(self) -> crate::error::InvalidFormatFault { + crate::error::InvalidFormatFault { + message: self.message, + } + } + } +} +impl InvalidFormatFault { + /// Creates a new builder-style object to manufacture [`InvalidFormatFault`](crate::error::InvalidFormatFault) + pub fn builder() -> crate::error::invalid_format_fault::Builder { + crate::error::invalid_format_fault::Builder::default() + } +} + +///

    Parameters were used together that cannot be used together.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterCombinationException { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidParameterCombinationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidParameterCombinationException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidParameterCombinationException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidParameterCombinationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidParameterCombinationException")?; + if let Some(inner_8) = &self.message { + write!(f, ": {}", inner_8)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidParameterCombinationException {} +/// See [`InvalidParameterCombinationException`](crate::error::InvalidParameterCombinationException) +pub mod invalid_parameter_combination_exception { + /// A builder for [`InvalidParameterCombinationException`](crate::error::InvalidParameterCombinationException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidParameterCombinationException`](crate::error::InvalidParameterCombinationException) + pub fn build(self) -> crate::error::InvalidParameterCombinationException { + crate::error::InvalidParameterCombinationException { + message: self.message, + } + } + } +} +impl InvalidParameterCombinationException { + /// Creates a new builder-style object to manufacture [`InvalidParameterCombinationException`](crate::error::InvalidParameterCombinationException) + pub fn builder() -> crate::error::invalid_parameter_combination_exception::Builder { + crate::error::invalid_parameter_combination_exception::Builder::default() + } +} + +///

    The quota for alarms for this customer has already been reached.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededFault { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for LimitExceededFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LimitExceededFault"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LimitExceededFault { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LimitExceededFault { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LimitExceededFault")?; + if let Some(inner_9) = &self.message { + write!(f, ": {}", inner_9)?; + } + Ok(()) + } +} +impl std::error::Error for LimitExceededFault {} +/// See [`LimitExceededFault`](crate::error::LimitExceededFault) +pub mod limit_exceeded_fault { + /// A builder for [`LimitExceededFault`](crate::error::LimitExceededFault) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LimitExceededFault`](crate::error::LimitExceededFault) + pub fn build(self) -> crate::error::LimitExceededFault { + crate::error::LimitExceededFault { + message: self.message, + } + } + } +} +impl LimitExceededFault { + /// Creates a new builder-style object to manufacture [`LimitExceededFault`](crate::error::LimitExceededFault) + pub fn builder() -> crate::error::limit_exceeded_fault::Builder { + crate::error::limit_exceeded_fault::Builder::default() + } +} + +///

    The operation exceeded one or more limits.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { + pub message: std::option::Option, +} +impl std::fmt::Debug for LimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LimitExceededException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LimitExceededException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LimitExceededException")?; + if let Some(inner_10) = &self.message { + write!(f, ": {}", inner_10)?; + } + Ok(()) + } +} +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { + message: self.message, + } + } + } +} +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() + } +} + +///

    Some part of the dashboard data is invalid.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DashboardInvalidInputError { + pub message: std::option::Option, + pub dashboard_validation_messages: + std::option::Option>, +} +impl std::fmt::Debug for DashboardInvalidInputError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DashboardInvalidInputError"); + formatter.field("message", &self.message); + formatter.field( + "dashboard_validation_messages", + &self.dashboard_validation_messages, + ); + formatter.finish() + } +} +impl DashboardInvalidInputError { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for DashboardInvalidInputError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "DashboardInvalidInputError")?; + if let Some(inner_11) = &self.message { + write!(f, ": {}", inner_11)?; + } + Ok(()) + } +} +impl std::error::Error for DashboardInvalidInputError {} +/// See [`DashboardInvalidInputError`](crate::error::DashboardInvalidInputError) +pub mod dashboard_invalid_input_error { + /// A builder for [`DashboardInvalidInputError`](crate::error::DashboardInvalidInputError) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + pub(crate) dashboard_validation_messages: + std::option::Option>, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + pub fn dashboard_validation_messages( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.dashboard_validation_messages.unwrap_or_default(); + v.push(input.into()); + self.dashboard_validation_messages = Some(v); + self + } + pub fn set_dashboard_validation_messages( + mut self, + input: std::option::Option>, + ) -> Self { + self.dashboard_validation_messages = input; + self + } + /// Consumes the builder and constructs a [`DashboardInvalidInputError`](crate::error::DashboardInvalidInputError) + pub fn build(self) -> crate::error::DashboardInvalidInputError { + crate::error::DashboardInvalidInputError { + message: self.message, + dashboard_validation_messages: self.dashboard_validation_messages, + } + } + } +} +impl DashboardInvalidInputError { + /// Creates a new builder-style object to manufacture [`DashboardInvalidInputError`](crate::error::DashboardInvalidInputError) + pub fn builder() -> crate::error::dashboard_invalid_input_error::Builder { + crate::error::dashboard_invalid_input_error::Builder::default() + } +} + +///

    The next token specified is invalid.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidNextToken { + ///

    + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidNextToken { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidNextToken"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidNextToken { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidNextToken { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidNextToken")?; + if let Some(inner_12) = &self.message { + write!(f, ": {}", inner_12)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidNextToken {} +/// See [`InvalidNextToken`](crate::error::InvalidNextToken) +pub mod invalid_next_token { + /// A builder for [`InvalidNextToken`](crate::error::InvalidNextToken) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidNextToken`](crate::error::InvalidNextToken) + pub fn build(self) -> crate::error::InvalidNextToken { + crate::error::InvalidNextToken { + message: self.message, + } + } + } +} +impl InvalidNextToken { + /// Creates a new builder-style object to manufacture [`InvalidNextToken`](crate::error::InvalidNextToken) + pub fn builder() -> crate::error::invalid_next_token::Builder { + crate::error::invalid_next_token::Builder::default() + } +} + +///

    The specified dashboard does not exist.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DashboardNotFoundError { + pub message: std::option::Option, +} +impl std::fmt::Debug for DashboardNotFoundError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DashboardNotFoundError"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl DashboardNotFoundError { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for DashboardNotFoundError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "DashboardNotFoundError")?; + if let Some(inner_13) = &self.message { + write!(f, ": {}", inner_13)?; + } + Ok(()) + } +} +impl std::error::Error for DashboardNotFoundError {} +/// See [`DashboardNotFoundError`](crate::error::DashboardNotFoundError) +pub mod dashboard_not_found_error { + /// A builder for [`DashboardNotFoundError`](crate::error::DashboardNotFoundError) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`DashboardNotFoundError`](crate::error::DashboardNotFoundError) + pub fn build(self) -> crate::error::DashboardNotFoundError { + crate::error::DashboardNotFoundError { + message: self.message, + } + } + } +} +impl DashboardNotFoundError { + /// Creates a new builder-style object to manufacture [`DashboardNotFoundError`](crate::error::DashboardNotFoundError) + pub fn builder() -> crate::error::dashboard_not_found_error::Builder { + crate::error::dashboard_not_found_error::Builder::default() + } +} diff --git a/sdk/cloudwatch/src/error_meta.rs b/sdk/cloudwatch/src/error_meta.rs new file mode 100644 index 000000000000..4077a363bde9 --- /dev/null +++ b/sdk/cloudwatch/src/error_meta.rs @@ -0,0 +1,697 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum Error { + ConcurrentModificationException(crate::error::ConcurrentModificationException), + DashboardInvalidInputError(crate::error::DashboardInvalidInputError), + DashboardNotFoundError(crate::error::DashboardNotFoundError), + InternalServiceFault(crate::error::InternalServiceFault), + InvalidFormatFault(crate::error::InvalidFormatFault), + InvalidNextToken(crate::error::InvalidNextToken), + InvalidParameterCombinationException(crate::error::InvalidParameterCombinationException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + LimitExceededException(crate::error::LimitExceededException), + LimitExceededFault(crate::error::LimitExceededFault), + MissingRequiredParameterException(crate::error::MissingRequiredParameterException), + ResourceNotFound(crate::error::ResourceNotFound), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + Unhandled(Box), +} +impl std::fmt::Display for Error { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Error::ConcurrentModificationException(inner) => inner.fmt(f), + Error::DashboardInvalidInputError(inner) => inner.fmt(f), + Error::DashboardNotFoundError(inner) => inner.fmt(f), + Error::InternalServiceFault(inner) => inner.fmt(f), + Error::InvalidFormatFault(inner) => inner.fmt(f), + Error::InvalidNextToken(inner) => inner.fmt(f), + Error::InvalidParameterCombinationException(inner) => inner.fmt(f), + Error::InvalidParameterValueException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::LimitExceededFault(inner) => inner.fmt(f), + Error::MissingRequiredParameterException(inner) => inner.fmt(f), + Error::ResourceNotFound(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::Unhandled(inner) => inner.fmt(f), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteAlarmsErrorKind::ResourceNotFound(inner) => { + Error::ResourceNotFound(inner) + } + crate::error::DeleteAlarmsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteAnomalyDetectorErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::DeleteAnomalyDetectorErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::DeleteAnomalyDetectorErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::DeleteAnomalyDetectorErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DeleteAnomalyDetectorErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteDashboardsErrorKind::DashboardNotFoundError(inner) => { + Error::DashboardNotFoundError(inner) + } + crate::error::DeleteDashboardsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::DeleteDashboardsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::DeleteDashboardsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteInsightRulesErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::DeleteInsightRulesErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::DeleteInsightRulesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteMetricStreamErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::DeleteMetricStreamErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::DeleteMetricStreamErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::DeleteMetricStreamErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAlarmHistoryErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::DescribeAlarmHistoryErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAlarmsErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::DescribeAlarmsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAlarmsForMetricErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAnomalyDetectorsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::DescribeAnomalyDetectorsErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::DescribeAnomalyDetectorsErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::DescribeAnomalyDetectorsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeInsightRulesErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::DescribeInsightRulesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DisableAlarmActionsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DisableInsightRulesErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::DisableInsightRulesErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::DisableInsightRulesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::EnableAlarmActionsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::EnableInsightRulesErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::EnableInsightRulesErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::EnableInsightRulesErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::EnableInsightRulesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetDashboardErrorKind::DashboardNotFoundError(inner) => { + Error::DashboardNotFoundError(inner) + } + crate::error::GetDashboardErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::GetDashboardErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::GetDashboardErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetInsightRuleReportErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::GetInsightRuleReportErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::GetInsightRuleReportErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::GetInsightRuleReportErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetMetricDataErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::GetMetricDataErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetMetricStatisticsErrorKind::InternalServiceFault(inner) => Error::InternalServiceFault(inner), + crate::error::GetMetricStatisticsErrorKind::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner), + crate::error::GetMetricStatisticsErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::GetMetricStatisticsErrorKind::MissingRequiredParameterException(inner) => Error::MissingRequiredParameterException(inner), + crate::error::GetMetricStatisticsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetMetricStreamErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::GetMetricStreamErrorKind::InvalidParameterCombinationException( + inner, + ) => Error::InvalidParameterCombinationException(inner), + crate::error::GetMetricStreamErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::GetMetricStreamErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::GetMetricStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::GetMetricStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetMetricWidgetImageErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListDashboardsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::ListDashboardsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::ListDashboardsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListMetricsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::ListMetricsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::ListMetricsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListMetricStreamsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::ListMetricStreamsErrorKind::InvalidNextToken(inner) => { + Error::InvalidNextToken(inner) + } + crate::error::ListMetricStreamsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::ListMetricStreamsErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::ListMetricStreamsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListTagsForResourceErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::ListTagsForResourceErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutAnomalyDetectorErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::PutAnomalyDetectorErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::PutAnomalyDetectorErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::PutAnomalyDetectorErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::PutAnomalyDetectorErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutCompositeAlarmErrorKind::LimitExceededFault(inner) => { + Error::LimitExceededFault(inner) + } + crate::error::PutCompositeAlarmErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutDashboardErrorKind::DashboardInvalidInputError(inner) => { + Error::DashboardInvalidInputError(inner) + } + crate::error::PutDashboardErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::PutDashboardErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutInsightRuleErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::PutInsightRuleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::PutInsightRuleErrorKind::MissingRequiredParameterException(inner) => { + Error::MissingRequiredParameterException(inner) + } + crate::error::PutInsightRuleErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutMetricAlarmErrorKind::LimitExceededFault(inner) => { + Error::LimitExceededFault(inner) + } + crate::error::PutMetricAlarmErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutMetricDataErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::PutMetricDataErrorKind::InvalidParameterCombinationException( + inner, + ) => Error::InvalidParameterCombinationException(inner), + crate::error::PutMetricDataErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::PutMetricDataErrorKind::MissingRequiredParameterException(inner) => { + Error::MissingRequiredParameterException(inner) + } + crate::error::PutMetricDataErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutMetricStreamErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) + } + crate::error::PutMetricStreamErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::PutMetricStreamErrorKind::InvalidParameterCombinationException( + inner, + ) => Error::InvalidParameterCombinationException(inner), + crate::error::PutMetricStreamErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::PutMetricStreamErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::PutMetricStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::SetAlarmStateErrorKind::InvalidFormatFault(inner) => { + Error::InvalidFormatFault(inner) + } + crate::error::SetAlarmStateErrorKind::ResourceNotFound(inner) => { + Error::ResourceNotFound(inner) + } + crate::error::SetAlarmStateErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::StartMetricStreamsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::StartMetricStreamsErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::StartMetricStreamsErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::StartMetricStreamsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::StopMetricStreamsErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::StopMetricStreamsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::StopMetricStreamsErrorKind::MissingRequiredParameterException( + inner, + ) => Error::MissingRequiredParameterException(inner), + crate::error::StopMetricStreamsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::TagResourceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) + } + crate::error::TagResourceErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::TagResourceErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UntagResourceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) + } + crate::error::UntagResourceErrorKind::InternalServiceFault(inner) => { + Error::InternalServiceFault(inner) + } + crate::error::UntagResourceErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl std::error::Error for Error {} diff --git a/sdk/cloudwatch/src/input.rs b/sdk/cloudwatch/src/input.rs new file mode 100644 index 000000000000..797f6979b315 --- /dev/null +++ b/sdk/cloudwatch/src/input.rs @@ -0,0 +1,7817 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; +/// See [`DeleteAlarmsInput`](crate::input::DeleteAlarmsInput) +pub mod delete_alarms_input { + /// A builder for [`DeleteAlarmsInput`](crate::input::DeleteAlarmsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_names: std::option::Option>, + } + impl Builder { + pub fn alarm_names(mut self, input: impl Into) -> Self { + let mut v = self.alarm_names.unwrap_or_default(); + v.push(input.into()); + self.alarm_names = Some(v); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_names = input; + self + } + /// Consumes the builder and constructs a [`DeleteAlarmsInput`](crate::input::DeleteAlarmsInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::DeleteAlarmsInput { + alarm_names: self.alarm_names, + }) + } + } +} +#[doc(hidden)] +pub type DeleteAlarmsInputOperationOutputAlias = crate::operation::DeleteAlarms; +#[doc(hidden)] +pub type DeleteAlarmsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteAlarmsInput { + /// Consumes the builder and constructs an Operation<[`DeleteAlarms`](crate::operation::DeleteAlarms)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteAlarms, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_delete_alarms(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteAlarms::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteAlarms", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteAlarmsInput`](crate::input::DeleteAlarmsInput) + pub fn builder() -> crate::input::delete_alarms_input::Builder { + crate::input::delete_alarms_input::Builder::default() + } +} + +/// See [`DeleteAnomalyDetectorInput`](crate::input::DeleteAnomalyDetectorInput) +pub mod delete_anomaly_detector_input { + /// A builder for [`DeleteAnomalyDetectorInput`](crate::input::DeleteAnomalyDetectorInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) stat: std::option::Option, + } + impl Builder { + ///

    The namespace associated with the anomaly detection model to delete.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The metric name associated with the anomaly detection model to delete.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The statistic associated with the anomaly detection model to delete.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.stat = Some(input.into()); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.stat = input; + self + } + /// Consumes the builder and constructs a [`DeleteAnomalyDetectorInput`](crate::input::DeleteAnomalyDetectorInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteAnomalyDetectorInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteAnomalyDetectorInput { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + stat: self.stat, + }) + } + } +} +#[doc(hidden)] +pub type DeleteAnomalyDetectorInputOperationOutputAlias = crate::operation::DeleteAnomalyDetector; +#[doc(hidden)] +pub type DeleteAnomalyDetectorInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteAnomalyDetectorInput { + /// Consumes the builder and constructs an Operation<[`DeleteAnomalyDetector`](crate::operation::DeleteAnomalyDetector)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteAnomalyDetector, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_anomaly_detector(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteAnomalyDetector::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteAnomalyDetector", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteAnomalyDetectorInput`](crate::input::DeleteAnomalyDetectorInput) + pub fn builder() -> crate::input::delete_anomaly_detector_input::Builder { + crate::input::delete_anomaly_detector_input::Builder::default() + } +} + +/// See [`DeleteDashboardsInput`](crate::input::DeleteDashboardsInput) +pub mod delete_dashboards_input { + /// A builder for [`DeleteDashboardsInput`](crate::input::DeleteDashboardsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_names: std::option::Option>, + } + impl Builder { + pub fn dashboard_names(mut self, input: impl Into) -> Self { + let mut v = self.dashboard_names.unwrap_or_default(); + v.push(input.into()); + self.dashboard_names = Some(v); + self + } + pub fn set_dashboard_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.dashboard_names = input; + self + } + /// Consumes the builder and constructs a [`DeleteDashboardsInput`](crate::input::DeleteDashboardsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteDashboardsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteDashboardsInput { + dashboard_names: self.dashboard_names, + }) + } + } +} +#[doc(hidden)] +pub type DeleteDashboardsInputOperationOutputAlias = crate::operation::DeleteDashboards; +#[doc(hidden)] +pub type DeleteDashboardsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteDashboardsInput { + /// Consumes the builder and constructs an Operation<[`DeleteDashboards`](crate::operation::DeleteDashboards)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteDashboards, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_dashboards(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteDashboards::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteDashboards", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteDashboardsInput`](crate::input::DeleteDashboardsInput) + pub fn builder() -> crate::input::delete_dashboards_input::Builder { + crate::input::delete_dashboards_input::Builder::default() + } +} + +/// See [`DeleteInsightRulesInput`](crate::input::DeleteInsightRulesInput) +pub mod delete_insight_rules_input { + /// A builder for [`DeleteInsightRulesInput`](crate::input::DeleteInsightRulesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rule_names: std::option::Option>, + } + impl Builder { + pub fn rule_names(mut self, input: impl Into) -> Self { + let mut v = self.rule_names.unwrap_or_default(); + v.push(input.into()); + self.rule_names = Some(v); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.rule_names = input; + self + } + /// Consumes the builder and constructs a [`DeleteInsightRulesInput`](crate::input::DeleteInsightRulesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteInsightRulesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteInsightRulesInput { + rule_names: self.rule_names, + }) + } + } +} +#[doc(hidden)] +pub type DeleteInsightRulesInputOperationOutputAlias = crate::operation::DeleteInsightRules; +#[doc(hidden)] +pub type DeleteInsightRulesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteInsightRulesInput { + /// Consumes the builder and constructs an Operation<[`DeleteInsightRules`](crate::operation::DeleteInsightRules)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteInsightRules, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_insight_rules(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteInsightRules::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteInsightRules", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteInsightRulesInput`](crate::input::DeleteInsightRulesInput) + pub fn builder() -> crate::input::delete_insight_rules_input::Builder { + crate::input::delete_insight_rules_input::Builder::default() + } +} + +/// See [`DeleteMetricStreamInput`](crate::input::DeleteMetricStreamInput) +pub mod delete_metric_stream_input { + /// A builder for [`DeleteMetricStreamInput`](crate::input::DeleteMetricStreamInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The name of the metric stream to delete.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`DeleteMetricStreamInput`](crate::input::DeleteMetricStreamInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteMetricStreamInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteMetricStreamInput { name: self.name }) + } + } +} +#[doc(hidden)] +pub type DeleteMetricStreamInputOperationOutputAlias = crate::operation::DeleteMetricStream; +#[doc(hidden)] +pub type DeleteMetricStreamInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteMetricStreamInput { + /// Consumes the builder and constructs an Operation<[`DeleteMetricStream`](crate::operation::DeleteMetricStream)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteMetricStream, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_metric_stream(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteMetricStream::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteMetricStream", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteMetricStreamInput`](crate::input::DeleteMetricStreamInput) + pub fn builder() -> crate::input::delete_metric_stream_input::Builder { + crate::input::delete_metric_stream_input::Builder::default() + } +} + +/// See [`DescribeAlarmHistoryInput`](crate::input::DescribeAlarmHistoryInput) +pub mod describe_alarm_history_input { + /// A builder for [`DescribeAlarmHistoryInput`](crate::input::DescribeAlarmHistoryInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_types: std::option::Option>, + pub(crate) history_item_type: std::option::Option, + pub(crate) start_date: std::option::Option, + pub(crate) end_date: std::option::Option, + pub(crate) max_records: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) scan_by: std::option::Option, + } + impl Builder { + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + pub fn alarm_types(mut self, input: impl Into) -> Self { + let mut v = self.alarm_types.unwrap_or_default(); + v.push(input.into()); + self.alarm_types = Some(v); + self + } + pub fn set_alarm_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_types = input; + self + } + ///

    The type of alarm histories to retrieve.

    + pub fn history_item_type(mut self, input: crate::model::HistoryItemType) -> Self { + self.history_item_type = Some(input); + self + } + pub fn set_history_item_type( + mut self, + input: std::option::Option, + ) -> Self { + self.history_item_type = input; + self + } + ///

    The starting date to retrieve alarm history.

    + pub fn start_date(mut self, input: smithy_types::Instant) -> Self { + self.start_date = Some(input); + self + } + pub fn set_start_date(mut self, input: std::option::Option) -> Self { + self.start_date = input; + self + } + ///

    The ending date to retrieve alarm history.

    + pub fn end_date(mut self, input: smithy_types::Instant) -> Self { + self.end_date = Some(input); + self + } + pub fn set_end_date(mut self, input: std::option::Option) -> Self { + self.end_date = input; + self + } + ///

    The maximum number of alarm history records to retrieve.

    + pub fn max_records(mut self, input: i32) -> Self { + self.max_records = Some(input); + self + } + pub fn set_max_records(mut self, input: std::option::Option) -> Self { + self.max_records = input; + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest + /// event history returned first, and specify TimestampAscending to have the oldest history returned first.

    + pub fn scan_by(mut self, input: crate::model::ScanBy) -> Self { + self.scan_by = Some(input); + self + } + pub fn set_scan_by(mut self, input: std::option::Option) -> Self { + self.scan_by = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmHistoryInput`](crate::input::DescribeAlarmHistoryInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeAlarmHistoryInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeAlarmHistoryInput { + alarm_name: self.alarm_name, + alarm_types: self.alarm_types, + history_item_type: self.history_item_type, + start_date: self.start_date, + end_date: self.end_date, + max_records: self.max_records, + next_token: self.next_token, + scan_by: self.scan_by, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAlarmHistoryInputOperationOutputAlias = crate::operation::DescribeAlarmHistory; +#[doc(hidden)] +pub type DescribeAlarmHistoryInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAlarmHistoryInput { + /// Consumes the builder and constructs an Operation<[`DescribeAlarmHistory`](crate::operation::DescribeAlarmHistory)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAlarmHistory, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_alarm_history(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAlarmHistory::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAlarmHistory", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAlarmHistoryInput`](crate::input::DescribeAlarmHistoryInput) + pub fn builder() -> crate::input::describe_alarm_history_input::Builder { + crate::input::describe_alarm_history_input::Builder::default() + } +} + +/// See [`DescribeAlarmsInput`](crate::input::DescribeAlarmsInput) +pub mod describe_alarms_input { + /// A builder for [`DescribeAlarmsInput`](crate::input::DescribeAlarmsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_names: std::option::Option>, + pub(crate) alarm_name_prefix: std::option::Option, + pub(crate) alarm_types: std::option::Option>, + pub(crate) children_of_alarm_name: std::option::Option, + pub(crate) parents_of_alarm_name: std::option::Option, + pub(crate) state_value: std::option::Option, + pub(crate) action_prefix: std::option::Option, + pub(crate) max_records: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn alarm_names(mut self, input: impl Into) -> Self { + let mut v = self.alarm_names.unwrap_or_default(); + v.push(input.into()); + self.alarm_names = Some(v); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_names = input; + self + } + ///

    An alarm name prefix. If you specify this parameter, you receive information about all alarms that have names + /// that start with this prefix.

    + ///

    If this parameter + /// is specified, you cannot specify AlarmNames.

    + pub fn alarm_name_prefix(mut self, input: impl Into) -> Self { + self.alarm_name_prefix = Some(input.into()); + self + } + pub fn set_alarm_name_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_name_prefix = input; + self + } + pub fn alarm_types(mut self, input: impl Into) -> Self { + let mut v = self.alarm_types.unwrap_or_default(); + v.push(input.into()); + self.alarm_types = Some(v); + self + } + pub fn set_alarm_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_types = input; + self + } + ///

    If you use this parameter and specify the name of a composite alarm, the operation returns + /// information about the "children" alarms + /// of the alarm you specify. These are the metric alarms and composite alarms referenced in the + /// AlarmRule field of the composite alarm that you specify in + /// ChildrenOfAlarmName. Information about the composite alarm that you name in + /// ChildrenOfAlarmName is not returned.

    + ///

    If you specify ChildrenOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you + /// receive a validation + /// error.

    + /// + ///

    Only the Alarm Name, ARN, StateValue (OK/ALARM/INSUFFICIENT_DATA), and StateUpdatedTimestamp + /// information are returned by this operation + /// when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub fn children_of_alarm_name(mut self, input: impl Into) -> Self { + self.children_of_alarm_name = Some(input.into()); + self + } + pub fn set_children_of_alarm_name( + mut self, + input: std::option::Option, + ) -> Self { + self.children_of_alarm_name = input; + self + } + ///

    If you use this parameter and specify the name of a metric or composite alarm, the operation returns + /// information about the "parent" alarms + /// of the alarm you specify. These are the composite alarms that have AlarmRule + /// parameters that reference + /// the alarm named in ParentsOfAlarmName. Information about the alarm that you specify in + /// ParentsOfAlarmName is not returned.

    + ///

    If you specify ParentsOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you receive a validation + /// error.

    + /// + ///

    Only the Alarm Name and ARN are returned by this operation when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub fn parents_of_alarm_name(mut self, input: impl Into) -> Self { + self.parents_of_alarm_name = Some(input.into()); + self + } + pub fn set_parents_of_alarm_name( + mut self, + input: std::option::Option, + ) -> Self { + self.parents_of_alarm_name = input; + self + } + ///

    Specify this parameter to receive information only about alarms that are currently in the state that you specify.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.state_value = Some(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.state_value = input; + self + } + ///

    Use this parameter to filter the results of the operation to only those alarms that + /// use a certain alarm action. For example, you could specify the ARN of an SNS topic to find all + /// alarms that send notifications to that topic.

    + pub fn action_prefix(mut self, input: impl Into) -> Self { + self.action_prefix = Some(input.into()); + self + } + pub fn set_action_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.action_prefix = input; + self + } + ///

    The maximum number of alarm descriptions to retrieve.

    + pub fn max_records(mut self, input: i32) -> Self { + self.max_records = Some(input); + self + } + pub fn set_max_records(mut self, input: std::option::Option) -> Self { + self.max_records = input; + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmsInput`](crate::input::DescribeAlarmsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeAlarmsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeAlarmsInput { + alarm_names: self.alarm_names, + alarm_name_prefix: self.alarm_name_prefix, + alarm_types: self.alarm_types, + children_of_alarm_name: self.children_of_alarm_name, + parents_of_alarm_name: self.parents_of_alarm_name, + state_value: self.state_value, + action_prefix: self.action_prefix, + max_records: self.max_records, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAlarmsInputOperationOutputAlias = crate::operation::DescribeAlarms; +#[doc(hidden)] +pub type DescribeAlarmsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAlarmsInput { + /// Consumes the builder and constructs an Operation<[`DescribeAlarms`](crate::operation::DescribeAlarms)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAlarms, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_alarms(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAlarms::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAlarms", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAlarmsInput`](crate::input::DescribeAlarmsInput) + pub fn builder() -> crate::input::describe_alarms_input::Builder { + crate::input::describe_alarms_input::Builder::default() + } +} + +/// See [`DescribeAlarmsForMetricInput`](crate::input::DescribeAlarmsForMetricInput) +pub mod describe_alarms_for_metric_input { + /// A builder for [`DescribeAlarmsForMetricInput`](crate::input::DescribeAlarmsForMetricInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_name: std::option::Option, + pub(crate) namespace: std::option::Option, + pub(crate) statistic: std::option::Option, + pub(crate) extended_statistic: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) period: std::option::Option, + pub(crate) unit: std::option::Option, + } + impl Builder { + ///

    The name of the metric.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + ///

    The namespace of the metric.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The statistic for the metric, other than percentiles. + /// For percentile statistics, use ExtendedStatistics.

    + pub fn statistic(mut self, input: crate::model::Statistic) -> Self { + self.statistic = Some(input); + self + } + pub fn set_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.statistic = input; + self + } + ///

    The percentile statistic for the metric. Specify a value between + /// p0.0 and p100.

    + pub fn extended_statistic(mut self, input: impl Into) -> Self { + self.extended_statistic = Some(input.into()); + self + } + pub fn set_extended_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.extended_statistic = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The period, in seconds, over which the statistic is applied.

    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + ///

    The unit for the metric.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmsForMetricInput`](crate::input::DescribeAlarmsForMetricInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeAlarmsForMetricInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeAlarmsForMetricInput { + metric_name: self.metric_name, + namespace: self.namespace, + statistic: self.statistic, + extended_statistic: self.extended_statistic, + dimensions: self.dimensions, + period: self.period, + unit: self.unit, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAlarmsForMetricInputOperationOutputAlias = + crate::operation::DescribeAlarmsForMetric; +#[doc(hidden)] +pub type DescribeAlarmsForMetricInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAlarmsForMetricInput { + /// Consumes the builder and constructs an Operation<[`DescribeAlarmsForMetric`](crate::operation::DescribeAlarmsForMetric)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAlarmsForMetric, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_alarms_for_metric(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAlarmsForMetric::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAlarmsForMetric", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAlarmsForMetricInput`](crate::input::DescribeAlarmsForMetricInput) + pub fn builder() -> crate::input::describe_alarms_for_metric_input::Builder { + crate::input::describe_alarms_for_metric_input::Builder::default() + } +} + +/// See [`DescribeAnomalyDetectorsInput`](crate::input::DescribeAnomalyDetectorsInput) +pub mod describe_anomaly_detectors_input { + /// A builder for [`DescribeAnomalyDetectorsInput`](crate::input::DescribeAnomalyDetectorsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + } + impl Builder { + ///

    Use the token returned by the previous operation to request the next page of results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The maximum number of results to return in one operation. The maximum + /// value that you can specify is 100.

    + ///

    To retrieve the remaining results, make another call with the returned + /// NextToken value.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    Limits the results to only the anomaly detection models that + /// are associated with the specified namespace.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    Limits the results to only the anomaly detection models that are associated with the + /// specified metric name. If there are multiple metrics with this name in different + /// namespaces that have anomaly detection models, they're all returned.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + /// Consumes the builder and constructs a [`DescribeAnomalyDetectorsInput`](crate::input::DescribeAnomalyDetectorsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeAnomalyDetectorsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeAnomalyDetectorsInput { + next_token: self.next_token, + max_results: self.max_results, + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAnomalyDetectorsInputOperationOutputAlias = + crate::operation::DescribeAnomalyDetectors; +#[doc(hidden)] +pub type DescribeAnomalyDetectorsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAnomalyDetectorsInput { + /// Consumes the builder and constructs an Operation<[`DescribeAnomalyDetectors`](crate::operation::DescribeAnomalyDetectors)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAnomalyDetectors, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_anomaly_detectors(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAnomalyDetectors::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAnomalyDetectors", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAnomalyDetectorsInput`](crate::input::DescribeAnomalyDetectorsInput) + pub fn builder() -> crate::input::describe_anomaly_detectors_input::Builder { + crate::input::describe_anomaly_detectors_input::Builder::default() + } +} + +/// See [`DescribeInsightRulesInput`](crate::input::DescribeInsightRulesInput) +pub mod describe_insight_rules_input { + /// A builder for [`DescribeInsightRulesInput`](crate::input::DescribeInsightRulesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + } + impl Builder { + ///

    Include this value, if it was returned by the previous operation, to get the next set of rules.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The maximum number of results to return in one operation. If you omit this + /// parameter, the default of 500 is used.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + /// Consumes the builder and constructs a [`DescribeInsightRulesInput`](crate::input::DescribeInsightRulesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeInsightRulesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeInsightRulesInput { + next_token: self.next_token, + max_results: self.max_results, + }) + } + } +} +#[doc(hidden)] +pub type DescribeInsightRulesInputOperationOutputAlias = crate::operation::DescribeInsightRules; +#[doc(hidden)] +pub type DescribeInsightRulesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeInsightRulesInput { + /// Consumes the builder and constructs an Operation<[`DescribeInsightRules`](crate::operation::DescribeInsightRules)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeInsightRules, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_insight_rules(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeInsightRules::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeInsightRules", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeInsightRulesInput`](crate::input::DescribeInsightRulesInput) + pub fn builder() -> crate::input::describe_insight_rules_input::Builder { + crate::input::describe_insight_rules_input::Builder::default() + } +} + +/// See [`DisableAlarmActionsInput`](crate::input::DisableAlarmActionsInput) +pub mod disable_alarm_actions_input { + /// A builder for [`DisableAlarmActionsInput`](crate::input::DisableAlarmActionsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_names: std::option::Option>, + } + impl Builder { + pub fn alarm_names(mut self, input: impl Into) -> Self { + let mut v = self.alarm_names.unwrap_or_default(); + v.push(input.into()); + self.alarm_names = Some(v); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_names = input; + self + } + /// Consumes the builder and constructs a [`DisableAlarmActionsInput`](crate::input::DisableAlarmActionsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DisableAlarmActionsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DisableAlarmActionsInput { + alarm_names: self.alarm_names, + }) + } + } +} +#[doc(hidden)] +pub type DisableAlarmActionsInputOperationOutputAlias = crate::operation::DisableAlarmActions; +#[doc(hidden)] +pub type DisableAlarmActionsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DisableAlarmActionsInput { + /// Consumes the builder and constructs an Operation<[`DisableAlarmActions`](crate::operation::DisableAlarmActions)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DisableAlarmActions, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_disable_alarm_actions(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DisableAlarmActions::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DisableAlarmActions", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DisableAlarmActionsInput`](crate::input::DisableAlarmActionsInput) + pub fn builder() -> crate::input::disable_alarm_actions_input::Builder { + crate::input::disable_alarm_actions_input::Builder::default() + } +} + +/// See [`DisableInsightRulesInput`](crate::input::DisableInsightRulesInput) +pub mod disable_insight_rules_input { + /// A builder for [`DisableInsightRulesInput`](crate::input::DisableInsightRulesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rule_names: std::option::Option>, + } + impl Builder { + pub fn rule_names(mut self, input: impl Into) -> Self { + let mut v = self.rule_names.unwrap_or_default(); + v.push(input.into()); + self.rule_names = Some(v); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.rule_names = input; + self + } + /// Consumes the builder and constructs a [`DisableInsightRulesInput`](crate::input::DisableInsightRulesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DisableInsightRulesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DisableInsightRulesInput { + rule_names: self.rule_names, + }) + } + } +} +#[doc(hidden)] +pub type DisableInsightRulesInputOperationOutputAlias = crate::operation::DisableInsightRules; +#[doc(hidden)] +pub type DisableInsightRulesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DisableInsightRulesInput { + /// Consumes the builder and constructs an Operation<[`DisableInsightRules`](crate::operation::DisableInsightRules)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DisableInsightRules, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_disable_insight_rules(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DisableInsightRules::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DisableInsightRules", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DisableInsightRulesInput`](crate::input::DisableInsightRulesInput) + pub fn builder() -> crate::input::disable_insight_rules_input::Builder { + crate::input::disable_insight_rules_input::Builder::default() + } +} + +/// See [`EnableAlarmActionsInput`](crate::input::EnableAlarmActionsInput) +pub mod enable_alarm_actions_input { + /// A builder for [`EnableAlarmActionsInput`](crate::input::EnableAlarmActionsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_names: std::option::Option>, + } + impl Builder { + pub fn alarm_names(mut self, input: impl Into) -> Self { + let mut v = self.alarm_names.unwrap_or_default(); + v.push(input.into()); + self.alarm_names = Some(v); + self + } + pub fn set_alarm_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_names = input; + self + } + /// Consumes the builder and constructs a [`EnableAlarmActionsInput`](crate::input::EnableAlarmActionsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::EnableAlarmActionsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::EnableAlarmActionsInput { + alarm_names: self.alarm_names, + }) + } + } +} +#[doc(hidden)] +pub type EnableAlarmActionsInputOperationOutputAlias = crate::operation::EnableAlarmActions; +#[doc(hidden)] +pub type EnableAlarmActionsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl EnableAlarmActionsInput { + /// Consumes the builder and constructs an Operation<[`EnableAlarmActions`](crate::operation::EnableAlarmActions)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::EnableAlarmActions, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_enable_alarm_actions(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::EnableAlarmActions::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "EnableAlarmActions", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`EnableAlarmActionsInput`](crate::input::EnableAlarmActionsInput) + pub fn builder() -> crate::input::enable_alarm_actions_input::Builder { + crate::input::enable_alarm_actions_input::Builder::default() + } +} + +/// See [`EnableInsightRulesInput`](crate::input::EnableInsightRulesInput) +pub mod enable_insight_rules_input { + /// A builder for [`EnableInsightRulesInput`](crate::input::EnableInsightRulesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rule_names: std::option::Option>, + } + impl Builder { + pub fn rule_names(mut self, input: impl Into) -> Self { + let mut v = self.rule_names.unwrap_or_default(); + v.push(input.into()); + self.rule_names = Some(v); + self + } + pub fn set_rule_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.rule_names = input; + self + } + /// Consumes the builder and constructs a [`EnableInsightRulesInput`](crate::input::EnableInsightRulesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::EnableInsightRulesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::EnableInsightRulesInput { + rule_names: self.rule_names, + }) + } + } +} +#[doc(hidden)] +pub type EnableInsightRulesInputOperationOutputAlias = crate::operation::EnableInsightRules; +#[doc(hidden)] +pub type EnableInsightRulesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl EnableInsightRulesInput { + /// Consumes the builder and constructs an Operation<[`EnableInsightRules`](crate::operation::EnableInsightRules)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::EnableInsightRules, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_enable_insight_rules(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::EnableInsightRules::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "EnableInsightRules", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`EnableInsightRulesInput`](crate::input::EnableInsightRulesInput) + pub fn builder() -> crate::input::enable_insight_rules_input::Builder { + crate::input::enable_insight_rules_input::Builder::default() + } +} + +/// See [`GetDashboardInput`](crate::input::GetDashboardInput) +pub mod get_dashboard_input { + /// A builder for [`GetDashboardInput`](crate::input::GetDashboardInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_name: std::option::Option, + } + impl Builder { + ///

    The name of the dashboard to be described.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.dashboard_name = Some(input.into()); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_name = input; + self + } + /// Consumes the builder and constructs a [`GetDashboardInput`](crate::input::GetDashboardInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::GetDashboardInput { + dashboard_name: self.dashboard_name, + }) + } + } +} +#[doc(hidden)] +pub type GetDashboardInputOperationOutputAlias = crate::operation::GetDashboard; +#[doc(hidden)] +pub type GetDashboardInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetDashboardInput { + /// Consumes the builder and constructs an Operation<[`GetDashboard`](crate::operation::GetDashboard)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetDashboard, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_get_dashboard(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetDashboard::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetDashboard", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetDashboardInput`](crate::input::GetDashboardInput) + pub fn builder() -> crate::input::get_dashboard_input::Builder { + crate::input::get_dashboard_input::Builder::default() + } +} + +/// See [`GetInsightRuleReportInput`](crate::input::GetInsightRuleReportInput) +pub mod get_insight_rule_report_input { + /// A builder for [`GetInsightRuleReportInput`](crate::input::GetInsightRuleReportInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rule_name: std::option::Option, + pub(crate) start_time: std::option::Option, + pub(crate) end_time: std::option::Option, + pub(crate) period: std::option::Option, + pub(crate) max_contributor_count: std::option::Option, + pub(crate) metrics: std::option::Option>, + pub(crate) order_by: std::option::Option, + } + impl Builder { + ///

    The name of the rule that you want to see data from.

    + pub fn rule_name(mut self, input: impl Into) -> Self { + self.rule_name = Some(input.into()); + self + } + pub fn set_rule_name(mut self, input: std::option::Option) -> Self { + self.rule_name = input; + self + } + ///

    The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.start_time = Some(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.start_time = input; + self + } + ///

    The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.end_time = Some(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.end_time = input; + self + } + ///

    The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results.

    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + ///

    The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default of 10 is used.

    + pub fn max_contributor_count(mut self, input: i32) -> Self { + self.max_contributor_count = Some(input); + self + } + pub fn set_max_contributor_count(mut self, input: std::option::Option) -> Self { + self.max_contributor_count = input; + self + } + pub fn metrics(mut self, input: impl Into) -> Self { + let mut v = self.metrics.unwrap_or_default(); + v.push(input.into()); + self.metrics = Some(v); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.metrics = input; + self + } + ///

    Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM.

    + pub fn order_by(mut self, input: impl Into) -> Self { + self.order_by = Some(input.into()); + self + } + pub fn set_order_by(mut self, input: std::option::Option) -> Self { + self.order_by = input; + self + } + /// Consumes the builder and constructs a [`GetInsightRuleReportInput`](crate::input::GetInsightRuleReportInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetInsightRuleReportInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetInsightRuleReportInput { + rule_name: self.rule_name, + start_time: self.start_time, + end_time: self.end_time, + period: self.period, + max_contributor_count: self.max_contributor_count, + metrics: self.metrics, + order_by: self.order_by, + }) + } + } +} +#[doc(hidden)] +pub type GetInsightRuleReportInputOperationOutputAlias = crate::operation::GetInsightRuleReport; +#[doc(hidden)] +pub type GetInsightRuleReportInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetInsightRuleReportInput { + /// Consumes the builder and constructs an Operation<[`GetInsightRuleReport`](crate::operation::GetInsightRuleReport)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetInsightRuleReport, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_insight_rule_report(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetInsightRuleReport::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetInsightRuleReport", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetInsightRuleReportInput`](crate::input::GetInsightRuleReportInput) + pub fn builder() -> crate::input::get_insight_rule_report_input::Builder { + crate::input::get_insight_rule_report_input::Builder::default() + } +} + +/// See [`GetMetricDataInput`](crate::input::GetMetricDataInput) +pub mod get_metric_data_input { + /// A builder for [`GetMetricDataInput`](crate::input::GetMetricDataInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_data_queries: + std::option::Option>, + pub(crate) start_time: std::option::Option, + pub(crate) end_time: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) scan_by: std::option::Option, + pub(crate) max_datapoints: std::option::Option, + pub(crate) label_options: std::option::Option, + } + impl Builder { + pub fn metric_data_queries( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.metric_data_queries.unwrap_or_default(); + v.push(input.into()); + self.metric_data_queries = Some(v); + self + } + pub fn set_metric_data_queries( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_data_queries = input; + self + } + ///

    The time stamp indicating the earliest data to be returned.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp.

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as StartTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the StartTime.

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.start_time = Some(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.start_time = input; + self + } + ///

    The time stamp indicating the latest data to be returned.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp.

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as EndTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the EndTime.

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.end_time = Some(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.end_time = input; + self + } + ///

    Include this value, if it was returned by the previous GetMetricData operation, + /// to get the next set of data points.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The order in which data points should be returned. TimestampDescending returns the newest data first and paginates + /// when the MaxDatapoints limit is reached. TimestampAscending returns the oldest data first and paginates + /// when the MaxDatapoints limit is reached.

    + pub fn scan_by(mut self, input: crate::model::ScanBy) -> Self { + self.scan_by = Some(input); + self + } + pub fn set_scan_by(mut self, input: std::option::Option) -> Self { + self.scan_by = input; + self + } + ///

    The maximum number of data points the request should return before paginating. If you omit + /// this, the default of 100,800 is used.

    + pub fn max_datapoints(mut self, input: i32) -> Self { + self.max_datapoints = Some(input); + self + } + pub fn set_max_datapoints(mut self, input: std::option::Option) -> Self { + self.max_datapoints = input; + self + } + ///

    This structure includes the Timezone parameter, which you can use + /// to specify your time zone so that the labels of returned data display the + /// correct time + /// for your time zone.

    + pub fn label_options(mut self, input: crate::model::LabelOptions) -> Self { + self.label_options = Some(input); + self + } + pub fn set_label_options( + mut self, + input: std::option::Option, + ) -> Self { + self.label_options = input; + self + } + /// Consumes the builder and constructs a [`GetMetricDataInput`](crate::input::GetMetricDataInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::GetMetricDataInput { + metric_data_queries: self.metric_data_queries, + start_time: self.start_time, + end_time: self.end_time, + next_token: self.next_token, + scan_by: self.scan_by, + max_datapoints: self.max_datapoints, + label_options: self.label_options, + }) + } + } +} +#[doc(hidden)] +pub type GetMetricDataInputOperationOutputAlias = crate::operation::GetMetricData; +#[doc(hidden)] +pub type GetMetricDataInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetMetricDataInput { + /// Consumes the builder and constructs an Operation<[`GetMetricData`](crate::operation::GetMetricData)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetMetricData, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_metric_data(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetMetricData::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetMetricData", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetMetricDataInput`](crate::input::GetMetricDataInput) + pub fn builder() -> crate::input::get_metric_data_input::Builder { + crate::input::get_metric_data_input::Builder::default() + } +} + +/// See [`GetMetricStatisticsInput`](crate::input::GetMetricStatisticsInput) +pub mod get_metric_statistics_input { + /// A builder for [`GetMetricStatisticsInput`](crate::input::GetMetricStatisticsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) start_time: std::option::Option, + pub(crate) end_time: std::option::Option, + pub(crate) period: std::option::Option, + pub(crate) statistics: std::option::Option>, + pub(crate) extended_statistics: std::option::Option>, + pub(crate) unit: std::option::Option, + } + impl Builder { + ///

    The namespace of the metric, with or without spaces.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The name of the metric, with or without spaces.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The time stamp that determines the first data point to return. Start times are + /// evaluated relative to the time that CloudWatch receives the request.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.start_time = Some(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.start_time = input; + self + } + ///

    The time stamp that determines the last data point to return.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.end_time = Some(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.end_time = input; + self + } + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can + /// be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected + /// at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics + /// are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    + ///

    If the StartTime parameter specifies a time stamp that is greater than + /// 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    + ///
      + ///
    • + ///

      Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

      + ///
    • + ///
    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + pub fn statistics(mut self, input: impl Into) -> Self { + let mut v = self.statistics.unwrap_or_default(); + v.push(input.into()); + self.statistics = Some(v); + self + } + pub fn set_statistics( + mut self, + input: std::option::Option>, + ) -> Self { + self.statistics = input; + self + } + pub fn extended_statistics(mut self, input: impl Into) -> Self { + let mut v = self.extended_statistics.unwrap_or_default(); + v.push(input.into()); + self.extended_statistics = Some(v); + self + } + pub fn set_extended_statistics( + mut self, + input: std::option::Option>, + ) -> Self { + self.extended_statistics = input; + self + } + ///

    The unit for a given metric. + /// If you omit Unit, all data that was collected with any unit is returned, along with the corresponding units that were specified + /// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. + /// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + /// Consumes the builder and constructs a [`GetMetricStatisticsInput`](crate::input::GetMetricStatisticsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetMetricStatisticsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetMetricStatisticsInput { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + start_time: self.start_time, + end_time: self.end_time, + period: self.period, + statistics: self.statistics, + extended_statistics: self.extended_statistics, + unit: self.unit, + }) + } + } +} +#[doc(hidden)] +pub type GetMetricStatisticsInputOperationOutputAlias = crate::operation::GetMetricStatistics; +#[doc(hidden)] +pub type GetMetricStatisticsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetMetricStatisticsInput { + /// Consumes the builder and constructs an Operation<[`GetMetricStatistics`](crate::operation::GetMetricStatistics)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetMetricStatistics, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_metric_statistics(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetMetricStatistics::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetMetricStatistics", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetMetricStatisticsInput`](crate::input::GetMetricStatisticsInput) + pub fn builder() -> crate::input::get_metric_statistics_input::Builder { + crate::input::get_metric_statistics_input::Builder::default() + } +} + +/// See [`GetMetricStreamInput`](crate::input::GetMetricStreamInput) +pub mod get_metric_stream_input { + /// A builder for [`GetMetricStreamInput`](crate::input::GetMetricStreamInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The name of the metric stream to retrieve information about.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`GetMetricStreamInput`](crate::input::GetMetricStreamInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetMetricStreamInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetMetricStreamInput { name: self.name }) + } + } +} +#[doc(hidden)] +pub type GetMetricStreamInputOperationOutputAlias = crate::operation::GetMetricStream; +#[doc(hidden)] +pub type GetMetricStreamInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetMetricStreamInput { + /// Consumes the builder and constructs an Operation<[`GetMetricStream`](crate::operation::GetMetricStream)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetMetricStream, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_metric_stream(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetMetricStream::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetMetricStream", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetMetricStreamInput`](crate::input::GetMetricStreamInput) + pub fn builder() -> crate::input::get_metric_stream_input::Builder { + crate::input::get_metric_stream_input::Builder::default() + } +} + +/// See [`GetMetricWidgetImageInput`](crate::input::GetMetricWidgetImageInput) +pub mod get_metric_widget_image_input { + /// A builder for [`GetMetricWidgetImageInput`](crate::input::GetMetricWidgetImageInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_widget: std::option::Option, + pub(crate) output_format: std::option::Option, + } + impl Builder { + ///

    A JSON string that defines the bitmap graph to be retrieved. The string includes the + /// metrics to include in the graph, statistics, annotations, title, axis limits, and so on. + /// You can include only one MetricWidget parameter in each GetMetricWidgetImage call.

    + ///

    For more information about the syntax of MetricWidget see + /// GetMetricWidgetImage: Metric Widget Structure and Syntax.

    + ///

    If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation + /// point appears next to the graph legend.

    + pub fn metric_widget(mut self, input: impl Into) -> Self { + self.metric_widget = Some(input.into()); + self + } + pub fn set_metric_widget( + mut self, + input: std::option::Option, + ) -> Self { + self.metric_widget = input; + self + } + ///

    The format of the resulting image. Only PNG images are supported.

    + ///

    The default is png. If you specify png, the API returns an HTTP response with the + /// content-type set to text/xml. The image data is in a MetricWidgetImage + /// field. For example:

    + ///

    + /// + /// > + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip... + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// 6f0d4192-4d42-11e8-82c1-f539a07e0e3b + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    The image/png setting is intended only for custom HTTP requests. For most + /// use cases, and all actions using an AWS SDK, you should use png. If you specify + /// image/png, the HTTP response has a content-type set to image/png, + /// and the body of the response is a PNG image.

    + pub fn output_format(mut self, input: impl Into) -> Self { + self.output_format = Some(input.into()); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.output_format = input; + self + } + /// Consumes the builder and constructs a [`GetMetricWidgetImageInput`](crate::input::GetMetricWidgetImageInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetMetricWidgetImageInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetMetricWidgetImageInput { + metric_widget: self.metric_widget, + output_format: self.output_format, + }) + } + } +} +#[doc(hidden)] +pub type GetMetricWidgetImageInputOperationOutputAlias = crate::operation::GetMetricWidgetImage; +#[doc(hidden)] +pub type GetMetricWidgetImageInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetMetricWidgetImageInput { + /// Consumes the builder and constructs an Operation<[`GetMetricWidgetImage`](crate::operation::GetMetricWidgetImage)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetMetricWidgetImage, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_metric_widget_image(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetMetricWidgetImage::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetMetricWidgetImage", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetMetricWidgetImageInput`](crate::input::GetMetricWidgetImageInput) + pub fn builder() -> crate::input::get_metric_widget_image_input::Builder { + crate::input::get_metric_widget_image_input::Builder::default() + } +} + +/// See [`ListDashboardsInput`](crate::input::ListDashboardsInput) +pub mod list_dashboards_input { + /// A builder for [`ListDashboardsInput`](crate::input::ListDashboardsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_name_prefix: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    If you specify this parameter, only + /// the dashboards with names starting with the specified string are listed. The maximum length is 255, and + /// valid characters are A-Z, a-z, 0-9, ".", "-", and "_". + ///

    + pub fn dashboard_name_prefix(mut self, input: impl Into) -> Self { + self.dashboard_name_prefix = Some(input.into()); + self + } + pub fn set_dashboard_name_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_name_prefix = input; + self + } + ///

    The token returned by a previous call to indicate that there is more data available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListDashboardsInput`](crate::input::ListDashboardsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListDashboardsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListDashboardsInput { + dashboard_name_prefix: self.dashboard_name_prefix, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListDashboardsInputOperationOutputAlias = crate::operation::ListDashboards; +#[doc(hidden)] +pub type ListDashboardsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListDashboardsInput { + /// Consumes the builder and constructs an Operation<[`ListDashboards`](crate::operation::ListDashboards)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListDashboards, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_list_dashboards(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListDashboards::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListDashboards", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListDashboardsInput`](crate::input::ListDashboardsInput) + pub fn builder() -> crate::input::list_dashboards_input::Builder { + crate::input::list_dashboards_input::Builder::default() + } +} + +/// See [`ListMetricsInput`](crate::input::ListMetricsInput) +pub mod list_metrics_input { + /// A builder for [`ListMetricsInput`](crate::input::ListMetricsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) next_token: std::option::Option, + pub(crate) recently_active: std::option::Option, + } + impl Builder { + ///

    The metric namespace to filter against. Only the namespace that matches exactly + /// will be returned.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The name of the metric to filter against. Only the metrics with names that match exactly + /// will be returned.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    To filter the results to show only metrics that have had data points published + /// in the past three hours, specify this parameter + /// with a value of PT3H. This is the only valid value + /// for this parameter.

    + ///

    The results that are returned are an approximation of the value you specify. There + /// is a low probability that the returned results include metrics with last published + /// data as much as 40 minutes more than the specified time interval.

    + pub fn recently_active(mut self, input: crate::model::RecentlyActive) -> Self { + self.recently_active = Some(input); + self + } + pub fn set_recently_active( + mut self, + input: std::option::Option, + ) -> Self { + self.recently_active = input; + self + } + /// Consumes the builder and constructs a [`ListMetricsInput`](crate::input::ListMetricsInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::ListMetricsInput { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + next_token: self.next_token, + recently_active: self.recently_active, + }) + } + } +} +#[doc(hidden)] +pub type ListMetricsInputOperationOutputAlias = crate::operation::ListMetrics; +#[doc(hidden)] +pub type ListMetricsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListMetricsInput { + /// Consumes the builder and constructs an Operation<[`ListMetrics`](crate::operation::ListMetrics)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListMetrics, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_list_metrics(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListMetrics::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListMetrics", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListMetricsInput`](crate::input::ListMetricsInput) + pub fn builder() -> crate::input::list_metrics_input::Builder { + crate::input::list_metrics_input::Builder::default() + } +} + +/// See [`ListMetricStreamsInput`](crate::input::ListMetricStreamsInput) +pub mod list_metric_streams_input { + /// A builder for [`ListMetricStreamsInput`](crate::input::ListMetricStreamsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + } + impl Builder { + ///

    Include this value, if it was returned by the previous call, to get the next set of metric streams.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The maximum number of results to return in one operation.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + /// Consumes the builder and constructs a [`ListMetricStreamsInput`](crate::input::ListMetricStreamsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListMetricStreamsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListMetricStreamsInput { + next_token: self.next_token, + max_results: self.max_results, + }) + } + } +} +#[doc(hidden)] +pub type ListMetricStreamsInputOperationOutputAlias = crate::operation::ListMetricStreams; +#[doc(hidden)] +pub type ListMetricStreamsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListMetricStreamsInput { + /// Consumes the builder and constructs an Operation<[`ListMetricStreams`](crate::operation::ListMetricStreams)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListMetricStreams, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_list_metric_streams(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListMetricStreams::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListMetricStreams", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListMetricStreamsInput`](crate::input::ListMetricStreamsInput) + pub fn builder() -> crate::input::list_metric_streams_input::Builder { + crate::input::list_metric_streams_input::Builder::default() + } +} + +/// See [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) +pub mod list_tags_for_resource_input { + /// A builder for [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + } + impl Builder { + ///

    The ARN of the CloudWatch resource that you want to view tags for.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListTagsForResourceInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListTagsForResourceInput { + resource_arn: self.resource_arn, + }) + } + } +} +#[doc(hidden)] +pub type ListTagsForResourceInputOperationOutputAlias = crate::operation::ListTagsForResource; +#[doc(hidden)] +pub type ListTagsForResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListTagsForResourceInput { + /// Consumes the builder and constructs an Operation<[`ListTagsForResource`](crate::operation::ListTagsForResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListTagsForResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_list_tags_for_resource(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListTagsForResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListTagsForResource", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } +} + +/// See [`PutAnomalyDetectorInput`](crate::input::PutAnomalyDetectorInput) +pub mod put_anomaly_detector_input { + /// A builder for [`PutAnomalyDetectorInput`](crate::input::PutAnomalyDetectorInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) stat: std::option::Option, + pub(crate) configuration: std::option::Option, + } + impl Builder { + ///

    The namespace of the metric to create the anomaly detection model for.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The name of the metric to create the anomaly detection model for.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The statistic to use for the metric and the anomaly detection model.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.stat = Some(input.into()); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.stat = input; + self + } + ///

    The configuration specifies details about how the + /// anomaly detection model is to be trained, including + /// time ranges to exclude when training and updating the model. + /// You can specify as many as 10 time ranges.

    + ///

    The configuration can also include the time zone to use for + /// the metric.

    + pub fn configuration(mut self, input: crate::model::AnomalyDetectorConfiguration) -> Self { + self.configuration = Some(input); + self + } + pub fn set_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.configuration = input; + self + } + /// Consumes the builder and constructs a [`PutAnomalyDetectorInput`](crate::input::PutAnomalyDetectorInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutAnomalyDetectorInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutAnomalyDetectorInput { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + stat: self.stat, + configuration: self.configuration, + }) + } + } +} +#[doc(hidden)] +pub type PutAnomalyDetectorInputOperationOutputAlias = crate::operation::PutAnomalyDetector; +#[doc(hidden)] +pub type PutAnomalyDetectorInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutAnomalyDetectorInput { + /// Consumes the builder and constructs an Operation<[`PutAnomalyDetector`](crate::operation::PutAnomalyDetector)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutAnomalyDetector, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_anomaly_detector(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutAnomalyDetector::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutAnomalyDetector", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutAnomalyDetectorInput`](crate::input::PutAnomalyDetectorInput) + pub fn builder() -> crate::input::put_anomaly_detector_input::Builder { + crate::input::put_anomaly_detector_input::Builder::default() + } +} + +/// See [`PutCompositeAlarmInput`](crate::input::PutCompositeAlarmInput) +pub mod put_composite_alarm_input { + /// A builder for [`PutCompositeAlarmInput`](crate::input::PutCompositeAlarmInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) actions_enabled: std::option::Option, + pub(crate) alarm_actions: std::option::Option>, + pub(crate) alarm_description: std::option::Option, + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_rule: std::option::Option, + pub(crate) insufficient_data_actions: + std::option::Option>, + pub(crate) ok_actions: std::option::Option>, + pub(crate) tags: std::option::Option>, + } + impl Builder { + ///

    Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is + /// TRUE.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.actions_enabled = Some(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.actions_enabled = input; + self + } + pub fn alarm_actions(mut self, input: impl Into) -> Self { + let mut v = self.alarm_actions.unwrap_or_default(); + v.push(input.into()); + self.alarm_actions = Some(v); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_actions = input; + self + } + ///

    The description for the composite alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.alarm_description = Some(input.into()); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_description = input; + self + } + ///

    The name for the composite alarm. This name must be unique within the Region.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    An expression that specifies which other alarms are to be evaluated to determine this + /// composite alarm's state. For each alarm that you reference, you + /// designate a function that + /// specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You + /// can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the + /// functions in your expression.

    + ///

    You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.

    + ///

    Functions can include the following:

    + ///
      + ///
    • + ///

      + /// ALARM("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in ALARM state.

      + ///
    • + ///
    • + ///

      + /// OK("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in OK state.

      + ///
    • + ///
    • + ///

      + /// INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in INSUFFICIENT_DATA state.

      + ///
    • + ///
    • + ///

      + /// TRUE always evaluates to TRUE.

      + ///
    • + ///
    • + ///

      + /// FALSE always evaluates to FALSE.

      + ///
    • + ///
    + ///

    TRUE and FALSE are useful for testing a complex AlarmRule structure, and + /// for testing your alarm actions.

    + ///

    Alarm names specified in AlarmRule can be surrounded with double-quotes ("), but do not have to be.

    + ///

    The following + /// are some examples of AlarmRule:

    + ///
      + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh) specifies that the composite alarm goes into ALARM state only + /// if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.

      + ///
    • + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress) + /// specifies that the alarm goes to ALARM state if CPUUtilizationTooHigh is in ALARM state + /// and DeploymentInProgress is not in ALARM state. This example reduces + /// alarm noise during a known deployment window.

      + ///
    • + ///
    • + ///

      + /// (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh) goes into ALARM + /// state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK state. + /// This provides another example of using a composite alarm to prevent noise. This rule ensures that you are not notified with an + /// alarm action on high CPU or disk usage if a known network problem is also occurring.

      + ///
    • + ///
    + ///

    The AlarmRule can specify as many as 100 + /// "children" alarms. The AlarmRule expression can have as many as 500 elements. Elements + /// are child alarms, TRUE or FALSE statements, and + /// parentheses.

    + pub fn alarm_rule(mut self, input: impl Into) -> Self { + self.alarm_rule = Some(input.into()); + self + } + pub fn set_alarm_rule(mut self, input: std::option::Option) -> Self { + self.alarm_rule = input; + self + } + pub fn insufficient_data_actions(mut self, input: impl Into) -> Self { + let mut v = self.insufficient_data_actions.unwrap_or_default(); + v.push(input.into()); + self.insufficient_data_actions = Some(v); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.insufficient_data_actions = input; + self + } + pub fn ok_actions(mut self, input: impl Into) -> Self { + let mut v = self.ok_actions.unwrap_or_default(); + v.push(input.into()); + self.ok_actions = Some(v); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.ok_actions = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`PutCompositeAlarmInput`](crate::input::PutCompositeAlarmInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutCompositeAlarmInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutCompositeAlarmInput { + actions_enabled: self.actions_enabled, + alarm_actions: self.alarm_actions, + alarm_description: self.alarm_description, + alarm_name: self.alarm_name, + alarm_rule: self.alarm_rule, + insufficient_data_actions: self.insufficient_data_actions, + ok_actions: self.ok_actions, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type PutCompositeAlarmInputOperationOutputAlias = crate::operation::PutCompositeAlarm; +#[doc(hidden)] +pub type PutCompositeAlarmInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutCompositeAlarmInput { + /// Consumes the builder and constructs an Operation<[`PutCompositeAlarm`](crate::operation::PutCompositeAlarm)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutCompositeAlarm, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_composite_alarm(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutCompositeAlarm::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutCompositeAlarm", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutCompositeAlarmInput`](crate::input::PutCompositeAlarmInput) + pub fn builder() -> crate::input::put_composite_alarm_input::Builder { + crate::input::put_composite_alarm_input::Builder::default() + } +} + +/// See [`PutDashboardInput`](crate::input::PutDashboardInput) +pub mod put_dashboard_input { + /// A builder for [`PutDashboardInput`](crate::input::PutDashboardInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_name: std::option::Option, + pub(crate) dashboard_body: std::option::Option, + } + impl Builder { + ///

    The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing + /// its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are + /// A-Z, a-z, 0-9, "-", and "_". This parameter is required.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.dashboard_name = Some(input.into()); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_name = input; + self + } + ///

    The detailed information about the dashboard in JSON format, including the widgets to include and their location + /// on the dashboard. This parameter is required.

    + ///

    For more information about the syntax, + /// see Dashboard Body Structure and Syntax.

    + pub fn dashboard_body(mut self, input: impl Into) -> Self { + self.dashboard_body = Some(input.into()); + self + } + pub fn set_dashboard_body( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_body = input; + self + } + /// Consumes the builder and constructs a [`PutDashboardInput`](crate::input::PutDashboardInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::PutDashboardInput { + dashboard_name: self.dashboard_name, + dashboard_body: self.dashboard_body, + }) + } + } +} +#[doc(hidden)] +pub type PutDashboardInputOperationOutputAlias = crate::operation::PutDashboard; +#[doc(hidden)] +pub type PutDashboardInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutDashboardInput { + /// Consumes the builder and constructs an Operation<[`PutDashboard`](crate::operation::PutDashboard)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutDashboard, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_put_dashboard(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutDashboard::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutDashboard", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutDashboardInput`](crate::input::PutDashboardInput) + pub fn builder() -> crate::input::put_dashboard_input::Builder { + crate::input::put_dashboard_input::Builder::default() + } +} + +/// See [`PutInsightRuleInput`](crate::input::PutInsightRuleInput) +pub mod put_insight_rule_input { + /// A builder for [`PutInsightRuleInput`](crate::input::PutInsightRuleInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rule_name: std::option::Option, + pub(crate) rule_state: std::option::Option, + pub(crate) rule_definition: std::option::Option, + pub(crate) tags: std::option::Option>, + } + impl Builder { + ///

    A unique name for the rule.

    + pub fn rule_name(mut self, input: impl Into) -> Self { + self.rule_name = Some(input.into()); + self + } + pub fn set_rule_name(mut self, input: std::option::Option) -> Self { + self.rule_name = input; + self + } + ///

    The state of the rule. Valid values are ENABLED and DISABLED.

    + pub fn rule_state(mut self, input: impl Into) -> Self { + self.rule_state = Some(input.into()); + self + } + pub fn set_rule_state(mut self, input: std::option::Option) -> Self { + self.rule_state = input; + self + } + ///

    The definition of the rule, as a JSON object. For details on the valid syntax, see + /// Contributor Insights + /// Rule Syntax.

    + pub fn rule_definition(mut self, input: impl Into) -> Self { + self.rule_definition = Some(input.into()); + self + } + pub fn set_rule_definition( + mut self, + input: std::option::Option, + ) -> Self { + self.rule_definition = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`PutInsightRuleInput`](crate::input::PutInsightRuleInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutInsightRuleInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutInsightRuleInput { + rule_name: self.rule_name, + rule_state: self.rule_state, + rule_definition: self.rule_definition, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type PutInsightRuleInputOperationOutputAlias = crate::operation::PutInsightRule; +#[doc(hidden)] +pub type PutInsightRuleInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutInsightRuleInput { + /// Consumes the builder and constructs an Operation<[`PutInsightRule`](crate::operation::PutInsightRule)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutInsightRule, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_insight_rule(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutInsightRule::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutInsightRule", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutInsightRuleInput`](crate::input::PutInsightRuleInput) + pub fn builder() -> crate::input::put_insight_rule_input::Builder { + crate::input::put_insight_rule_input::Builder::default() + } +} + +/// See [`PutMetricAlarmInput`](crate::input::PutMetricAlarmInput) +pub mod put_metric_alarm_input { + /// A builder for [`PutMetricAlarmInput`](crate::input::PutMetricAlarmInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_description: std::option::Option, + pub(crate) actions_enabled: std::option::Option, + pub(crate) ok_actions: std::option::Option>, + pub(crate) alarm_actions: std::option::Option>, + pub(crate) insufficient_data_actions: + std::option::Option>, + pub(crate) metric_name: std::option::Option, + pub(crate) namespace: std::option::Option, + pub(crate) statistic: std::option::Option, + pub(crate) extended_statistic: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) period: std::option::Option, + pub(crate) unit: std::option::Option, + pub(crate) evaluation_periods: std::option::Option, + pub(crate) datapoints_to_alarm: std::option::Option, + pub(crate) threshold: std::option::Option, + pub(crate) comparison_operator: std::option::Option, + pub(crate) treat_missing_data: std::option::Option, + pub(crate) evaluate_low_sample_count_percentile: std::option::Option, + pub(crate) metrics: std::option::Option>, + pub(crate) tags: std::option::Option>, + pub(crate) threshold_metric_id: std::option::Option, + } + impl Builder { + ///

    The name for the alarm. This name must be unique within the Region.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    The description for the alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.alarm_description = Some(input.into()); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_description = input; + self + } + ///

    Indicates whether actions should be executed during any changes to the alarm state. The default is + /// TRUE.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.actions_enabled = Some(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.actions_enabled = input; + self + } + pub fn ok_actions(mut self, input: impl Into) -> Self { + let mut v = self.ok_actions.unwrap_or_default(); + v.push(input.into()); + self.ok_actions = Some(v); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.ok_actions = input; + self + } + pub fn alarm_actions(mut self, input: impl Into) -> Self { + let mut v = self.alarm_actions.unwrap_or_default(); + v.push(input.into()); + self.alarm_actions = Some(v); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_actions = input; + self + } + pub fn insufficient_data_actions(mut self, input: impl Into) -> Self { + let mut v = self.insufficient_data_actions.unwrap_or_default(); + v.push(input.into()); + self.insufficient_data_actions = Some(v); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.insufficient_data_actions = input; + self + } + ///

    The name for the metric associated with the alarm. For each PutMetricAlarm + /// operation, you must specify either MetricName or a Metrics array.

    + ///

    If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the + /// Dimensions, Period, + /// Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify + /// all this information in the Metrics array.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + ///

    The namespace for the metric associated specified in MetricName.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The statistic for the metric specified in MetricName, other than percentile. + /// For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub fn statistic(mut self, input: crate::model::Statistic) -> Self { + self.statistic = Some(input); + self + } + pub fn set_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.statistic = input; + self + } + ///

    The percentile statistic for the metric specified in MetricName. Specify a value + /// between p0.0 and p100. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub fn extended_statistic(mut self, input: impl Into) -> Self { + self.extended_statistic = Some(input.into()); + self + } + pub fn set_extended_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.extended_statistic = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The length, in seconds, used each time the metric specified in MetricName is + /// evaluated. Valid values are 10, 30, and any multiple of 60.

    + ///

    + /// Period is required for alarms based on static thresholds. If + /// you are creating an alarm based on a metric math expression, you specify the + /// period for each metric within the objects in the Metrics array.

    + ///

    Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a + /// StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have + /// sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, + /// it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm + /// might often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, + /// which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + ///

    The unit of measure for the statistic. For example, the units for the Amazon EC2 + /// NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance + /// receives on all network interfaces. You can also specify a unit when you create a custom + /// metric. Units help provide conceptual meaning to your data. Metric data points that + /// specify a unit of measure, such as Percent, are aggregated separately.

    + ///

    If you don't specify Unit, CloudWatch retrieves all unit types that have been published for the + /// metric and attempts to evaluate the alarm. + /// Usually, metrics are + /// published with only one unit, so the alarm + /// works as intended.

    + ///

    However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's + /// behavior is not defined and + /// it behaves predictably.

    + ///

    We recommend omitting Unit so that you don't inadvertently + /// specify an incorrect unit that is not published for this metric. Doing so + /// causes the alarm to be stuck in the INSUFFICIENT DATA state.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + ///

    The number of periods over which data is compared to the specified threshold. If you are + /// setting an alarm that requires that a number of consecutive data points be breaching to + /// trigger the alarm, this value specifies that number. If you are setting an "M out of N" + /// alarm, this value is the N.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

    + pub fn evaluation_periods(mut self, input: i32) -> Self { + self.evaluation_periods = Some(input); + self + } + pub fn set_evaluation_periods(mut self, input: std::option::Option) -> Self { + self.evaluation_periods = input; + self + } + ///

    The number of data points that must be breaching to trigger the alarm. This is used only if you are setting + /// an "M out of N" alarm. In that case, this value is the M. For more information, see + /// Evaluating an Alarm in the + /// Amazon CloudWatch User Guide.

    + pub fn datapoints_to_alarm(mut self, input: i32) -> Self { + self.datapoints_to_alarm = Some(input); + self + } + pub fn set_datapoints_to_alarm(mut self, input: std::option::Option) -> Self { + self.datapoints_to_alarm = input; + self + } + ///

    The value against which the specified statistic is compared.

    + ///

    This parameter is required for alarms based on static thresholds, but should + /// not be used for alarms based on anomaly detection models.

    + pub fn threshold(mut self, input: f64) -> Self { + self.threshold = Some(input); + self + } + pub fn set_threshold(mut self, input: std::option::Option) -> Self { + self.threshold = input; + self + } + ///

    The arithmetic operation to use when comparing the specified statistic and + /// threshold. The specified statistic value is used as the first operand.

    + ///

    The values LessThanLowerOrGreaterThanUpperThreshold, + /// LessThanLowerThreshold, and GreaterThanUpperThreshold + /// are used only for alarms based on anomaly detection models.

    + pub fn comparison_operator(mut self, input: crate::model::ComparisonOperator) -> Self { + self.comparison_operator = Some(input); + self + } + pub fn set_comparison_operator( + mut self, + input: std::option::Option, + ) -> Self { + self.comparison_operator = input; + self + } + ///

    Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. + /// For more information, see Configuring How CloudWatch + /// Alarms Treats Missing Data.

    + ///

    Valid Values: breaching | notBreaching | ignore | missing + ///

    + pub fn treat_missing_data(mut self, input: impl Into) -> Self { + self.treat_missing_data = Some(input.into()); + self + } + pub fn set_treat_missing_data( + mut self, + input: std::option::Option, + ) -> Self { + self.treat_missing_data = input; + self + } + ///

    Used only for alarms based on percentiles. If you specify ignore, the alarm state does not change during periods with too few data points to be + /// statistically significant. If you specify evaluate or omit this parameter, the alarm is always evaluated and possibly changes state + /// no matter how many data points are available. For more information, see Percentile-Based CloudWatch Alarms and Low Data Samples.

    + ///

    Valid Values: evaluate | ignore + ///

    + pub fn evaluate_low_sample_count_percentile( + mut self, + input: impl Into, + ) -> Self { + self.evaluate_low_sample_count_percentile = Some(input.into()); + self + } + pub fn set_evaluate_low_sample_count_percentile( + mut self, + input: std::option::Option, + ) -> Self { + self.evaluate_low_sample_count_percentile = input; + self + } + pub fn metrics(mut self, input: impl Into) -> Self { + let mut v = self.metrics.unwrap_or_default(); + v.push(input.into()); + self.metrics = Some(v); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.metrics = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + ///

    If this is an alarm based on an anomaly detection model, make this value match + /// the ID of + /// the ANOMALY_DETECTION_BAND function.

    + ///

    For an example of how to use this parameter, see the + /// Anomaly Detection + /// Model Alarm example on this page.

    + ///

    If your alarm uses this parameter, it cannot have Auto Scaling actions.

    + pub fn threshold_metric_id(mut self, input: impl Into) -> Self { + self.threshold_metric_id = Some(input.into()); + self + } + pub fn set_threshold_metric_id( + mut self, + input: std::option::Option, + ) -> Self { + self.threshold_metric_id = input; + self + } + /// Consumes the builder and constructs a [`PutMetricAlarmInput`](crate::input::PutMetricAlarmInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutMetricAlarmInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutMetricAlarmInput { + alarm_name: self.alarm_name, + alarm_description: self.alarm_description, + actions_enabled: self.actions_enabled, + ok_actions: self.ok_actions, + alarm_actions: self.alarm_actions, + insufficient_data_actions: self.insufficient_data_actions, + metric_name: self.metric_name, + namespace: self.namespace, + statistic: self.statistic, + extended_statistic: self.extended_statistic, + dimensions: self.dimensions, + period: self.period, + unit: self.unit, + evaluation_periods: self.evaluation_periods, + datapoints_to_alarm: self.datapoints_to_alarm, + threshold: self.threshold, + comparison_operator: self.comparison_operator, + treat_missing_data: self.treat_missing_data, + evaluate_low_sample_count_percentile: self.evaluate_low_sample_count_percentile, + metrics: self.metrics, + tags: self.tags, + threshold_metric_id: self.threshold_metric_id, + }) + } + } +} +#[doc(hidden)] +pub type PutMetricAlarmInputOperationOutputAlias = crate::operation::PutMetricAlarm; +#[doc(hidden)] +pub type PutMetricAlarmInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutMetricAlarmInput { + /// Consumes the builder and constructs an Operation<[`PutMetricAlarm`](crate::operation::PutMetricAlarm)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutMetricAlarm, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_metric_alarm(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutMetricAlarm::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutMetricAlarm", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutMetricAlarmInput`](crate::input::PutMetricAlarmInput) + pub fn builder() -> crate::input::put_metric_alarm_input::Builder { + crate::input::put_metric_alarm_input::Builder::default() + } +} + +/// See [`PutMetricDataInput`](crate::input::PutMetricDataInput) +pub mod put_metric_data_input { + /// A builder for [`PutMetricDataInput`](crate::input::PutMetricDataInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_data: std::option::Option>, + } + impl Builder { + ///

    The namespace for the metric data.

    + ///

    To avoid conflicts + /// with AWS service namespaces, you should not specify a namespace that begins with AWS/ + ///

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + pub fn metric_data(mut self, input: impl Into) -> Self { + let mut v = self.metric_data.unwrap_or_default(); + v.push(input.into()); + self.metric_data = Some(v); + self + } + pub fn set_metric_data( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_data = input; + self + } + /// Consumes the builder and constructs a [`PutMetricDataInput`](crate::input::PutMetricDataInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::PutMetricDataInput { + namespace: self.namespace, + metric_data: self.metric_data, + }) + } + } +} +#[doc(hidden)] +pub type PutMetricDataInputOperationOutputAlias = crate::operation::PutMetricData; +#[doc(hidden)] +pub type PutMetricDataInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutMetricDataInput { + /// Consumes the builder and constructs an Operation<[`PutMetricData`](crate::operation::PutMetricData)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutMetricData, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_metric_data(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutMetricData::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutMetricData", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutMetricDataInput`](crate::input::PutMetricDataInput) + pub fn builder() -> crate::input::put_metric_data_input::Builder { + crate::input::put_metric_data_input::Builder::default() + } +} + +/// See [`PutMetricStreamInput`](crate::input::PutMetricStreamInput) +pub mod put_metric_stream_input { + /// A builder for [`PutMetricStreamInput`](crate::input::PutMetricStreamInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) include_filters: + std::option::Option>, + pub(crate) exclude_filters: + std::option::Option>, + pub(crate) firehose_arn: std::option::Option, + pub(crate) role_arn: std::option::Option, + pub(crate) output_format: std::option::Option, + pub(crate) tags: std::option::Option>, + } + impl Builder { + ///

    If you are creating a new metric stream, this is the name for the new stream. The name + /// must be different than the names of other metric streams in this account and Region.

    + ///

    If you are updating a metric stream, specify the name of that stream here.

    + ///

    Valid characters are A-Z, a-z, 0-9, "-" and "_".

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + pub fn include_filters( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.include_filters.unwrap_or_default(); + v.push(input.into()); + self.include_filters = Some(v); + self + } + pub fn set_include_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.include_filters = input; + self + } + pub fn exclude_filters( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.exclude_filters.unwrap_or_default(); + v.push(input.into()); + self.exclude_filters = Some(v); + self + } + pub fn set_exclude_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.exclude_filters = input; + self + } + ///

    The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. + /// This Amazon Kinesis Firehose delivery stream must already exist and must be in the same + /// account as the metric stream.

    + pub fn firehose_arn(mut self, input: impl Into) -> Self { + self.firehose_arn = Some(input.into()); + self + } + pub fn set_firehose_arn(mut self, input: std::option::Option) -> Self { + self.firehose_arn = input; + self + } + ///

    The ARN of an IAM role that this metric stream will use to access + /// Amazon Kinesis Firehose resources. This IAM role must already + /// exist and must be in the same account as the metric stream. This IAM role must include the following permissions:

    + ///
      + ///
    • + ///

      firehose:PutRecord

      + ///
    • + ///
    • + ///

      firehose:PutRecordBatch

      + ///
    • + ///
    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.role_arn = Some(input.into()); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.role_arn = input; + self + } + ///

    The output format for the stream. Valid values are json + /// and opentelemetry0.7. For more information about metric stream + /// output formats, see + /// + /// Metric streams output formats.

    + pub fn output_format(mut self, input: crate::model::MetricStreamOutputFormat) -> Self { + self.output_format = Some(input); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.output_format = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`PutMetricStreamInput`](crate::input::PutMetricStreamInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutMetricStreamInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutMetricStreamInput { + name: self.name, + include_filters: self.include_filters, + exclude_filters: self.exclude_filters, + firehose_arn: self.firehose_arn, + role_arn: self.role_arn, + output_format: self.output_format, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type PutMetricStreamInputOperationOutputAlias = crate::operation::PutMetricStream; +#[doc(hidden)] +pub type PutMetricStreamInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutMetricStreamInput { + /// Consumes the builder and constructs an Operation<[`PutMetricStream`](crate::operation::PutMetricStream)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutMetricStream, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_metric_stream(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutMetricStream::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutMetricStream", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutMetricStreamInput`](crate::input::PutMetricStreamInput) + pub fn builder() -> crate::input::put_metric_stream_input::Builder { + crate::input::put_metric_stream_input::Builder::default() + } +} + +/// See [`SetAlarmStateInput`](crate::input::SetAlarmStateInput) +pub mod set_alarm_state_input { + /// A builder for [`SetAlarmStateInput`](crate::input::SetAlarmStateInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_name: std::option::Option, + pub(crate) state_value: std::option::Option, + pub(crate) state_reason: std::option::Option, + pub(crate) state_reason_data: std::option::Option, + } + impl Builder { + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    The value of the state.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.state_value = Some(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.state_value = input; + self + } + ///

    The reason that this alarm is set to this specific state, in text format.

    + pub fn state_reason(mut self, input: impl Into) -> Self { + self.state_reason = Some(input.into()); + self + } + pub fn set_state_reason(mut self, input: std::option::Option) -> Self { + self.state_reason = input; + self + } + ///

    The reason that this alarm is set to this specific state, in JSON format.

    + ///

    For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling + /// alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.

    + pub fn state_reason_data(mut self, input: impl Into) -> Self { + self.state_reason_data = Some(input.into()); + self + } + pub fn set_state_reason_data( + mut self, + input: std::option::Option, + ) -> Self { + self.state_reason_data = input; + self + } + /// Consumes the builder and constructs a [`SetAlarmStateInput`](crate::input::SetAlarmStateInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::SetAlarmStateInput { + alarm_name: self.alarm_name, + state_value: self.state_value, + state_reason: self.state_reason, + state_reason_data: self.state_reason_data, + }) + } + } +} +#[doc(hidden)] +pub type SetAlarmStateInputOperationOutputAlias = crate::operation::SetAlarmState; +#[doc(hidden)] +pub type SetAlarmStateInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl SetAlarmStateInput { + /// Consumes the builder and constructs an Operation<[`SetAlarmState`](crate::operation::SetAlarmState)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::SetAlarmState, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_set_alarm_state(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::SetAlarmState::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "SetAlarmState", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`SetAlarmStateInput`](crate::input::SetAlarmStateInput) + pub fn builder() -> crate::input::set_alarm_state_input::Builder { + crate::input::set_alarm_state_input::Builder::default() + } +} + +/// See [`StartMetricStreamsInput`](crate::input::StartMetricStreamsInput) +pub mod start_metric_streams_input { + /// A builder for [`StartMetricStreamsInput`](crate::input::StartMetricStreamsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) names: std::option::Option>, + } + impl Builder { + pub fn names(mut self, input: impl Into) -> Self { + let mut v = self.names.unwrap_or_default(); + v.push(input.into()); + self.names = Some(v); + self + } + pub fn set_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.names = input; + self + } + /// Consumes the builder and constructs a [`StartMetricStreamsInput`](crate::input::StartMetricStreamsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::StartMetricStreamsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::StartMetricStreamsInput { names: self.names }) + } + } +} +#[doc(hidden)] +pub type StartMetricStreamsInputOperationOutputAlias = crate::operation::StartMetricStreams; +#[doc(hidden)] +pub type StartMetricStreamsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl StartMetricStreamsInput { + /// Consumes the builder and constructs an Operation<[`StartMetricStreams`](crate::operation::StartMetricStreams)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::StartMetricStreams, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_start_metric_streams(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::StartMetricStreams::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "StartMetricStreams", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`StartMetricStreamsInput`](crate::input::StartMetricStreamsInput) + pub fn builder() -> crate::input::start_metric_streams_input::Builder { + crate::input::start_metric_streams_input::Builder::default() + } +} + +/// See [`StopMetricStreamsInput`](crate::input::StopMetricStreamsInput) +pub mod stop_metric_streams_input { + /// A builder for [`StopMetricStreamsInput`](crate::input::StopMetricStreamsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) names: std::option::Option>, + } + impl Builder { + pub fn names(mut self, input: impl Into) -> Self { + let mut v = self.names.unwrap_or_default(); + v.push(input.into()); + self.names = Some(v); + self + } + pub fn set_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.names = input; + self + } + /// Consumes the builder and constructs a [`StopMetricStreamsInput`](crate::input::StopMetricStreamsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::StopMetricStreamsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::StopMetricStreamsInput { names: self.names }) + } + } +} +#[doc(hidden)] +pub type StopMetricStreamsInputOperationOutputAlias = crate::operation::StopMetricStreams; +#[doc(hidden)] +pub type StopMetricStreamsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl StopMetricStreamsInput { + /// Consumes the builder and constructs an Operation<[`StopMetricStreams`](crate::operation::StopMetricStreams)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::StopMetricStreams, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_stop_metric_streams(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::StopMetricStreams::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "StopMetricStreams", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`StopMetricStreamsInput`](crate::input::StopMetricStreamsInput) + pub fn builder() -> crate::input::stop_metric_streams_input::Builder { + crate::input::stop_metric_streams_input::Builder::default() + } +} + +/// See [`TagResourceInput`](crate::input::TagResourceInput) +pub mod tag_resource_input { + /// A builder for [`TagResourceInput`](crate::input::TagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tags: std::option::Option>, + } + impl Builder { + ///

    The ARN of the CloudWatch resource that you're adding tags to.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`TagResourceInput`](crate::input::TagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::TagResourceInput { + resource_arn: self.resource_arn, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type TagResourceInputOperationOutputAlias = crate::operation::TagResource; +#[doc(hidden)] +pub type TagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl TagResourceInput { + /// Consumes the builder and constructs an Operation<[`TagResource`](crate::operation::TagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::TagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_tag_resource(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::TagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "TagResource", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } +} + +/// See [`UntagResourceInput`](crate::input::UntagResourceInput) +pub mod untag_resource_input { + /// A builder for [`UntagResourceInput`](crate::input::UntagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tag_keys: std::option::Option>, + } + impl Builder { + ///

    The ARN of the CloudWatch resource that you're removing tags from.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tag_keys(mut self, input: impl Into) -> Self { + let mut v = self.tag_keys.unwrap_or_default(); + v.push(input.into()); + self.tag_keys = Some(v); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.tag_keys = input; + self + } + /// Consumes the builder and constructs a [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::UntagResourceInput { + resource_arn: self.resource_arn, + tag_keys: self.tag_keys, + }) + } + } +} +#[doc(hidden)] +pub type UntagResourceInputOperationOutputAlias = crate::operation::UntagResource; +#[doc(hidden)] +pub type UntagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UntagResourceInput { + /// Consumes the builder and constructs an Operation<[`UntagResource`](crate::operation::UntagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UntagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_untag_resource(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UntagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UntagResource", + "cloudwatch", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-www-form-urlencoded"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceInput { + ///

    The ARN of the CloudWatch resource that you're removing tags from.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub resource_arn: std::option::Option, + ///

    The list of tag keys to remove from the resource.

    + pub tag_keys: std::option::Option>, +} +impl std::fmt::Debug for UntagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tag_keys", &self.tag_keys); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceInput { + ///

    The ARN of the CloudWatch resource that you're adding tags to.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub resource_arn: std::option::Option, + ///

    The list of key-value pairs to associate with the alarm.

    + pub tags: std::option::Option>, +} +impl std::fmt::Debug for TagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StopMetricStreamsInput { + ///

    The array of the names of metric streams to stop streaming.

    + ///

    This is an "all or nothing" operation. If you do not have + /// permission to access all of the metric streams that you list here, then none of the streams that you list + /// in the operation will stop streaming.

    + pub names: std::option::Option>, +} +impl std::fmt::Debug for StopMetricStreamsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StopMetricStreamsInput"); + formatter.field("names", &self.names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartMetricStreamsInput { + ///

    The array of the names of metric streams to start streaming.

    + ///

    This is an "all or nothing" operation. If you do not have + /// permission to access all of the metric streams that you list here, then none of the streams that you list + /// in the operation will start streaming.

    + pub names: std::option::Option>, +} +impl std::fmt::Debug for StartMetricStreamsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartMetricStreamsInput"); + formatter.field("names", &self.names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SetAlarmStateInput { + ///

    The name of the alarm.

    + pub alarm_name: std::option::Option, + ///

    The value of the state.

    + pub state_value: std::option::Option, + ///

    The reason that this alarm is set to this specific state, in text format.

    + pub state_reason: std::option::Option, + ///

    The reason that this alarm is set to this specific state, in JSON format.

    + ///

    For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling + /// alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.

    + pub state_reason_data: std::option::Option, +} +impl std::fmt::Debug for SetAlarmStateInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("SetAlarmStateInput"); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("state_value", &self.state_value); + formatter.field("state_reason", &self.state_reason); + formatter.field("state_reason_data", &self.state_reason_data); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricStreamInput { + ///

    If you are creating a new metric stream, this is the name for the new stream. The name + /// must be different than the names of other metric streams in this account and Region.

    + ///

    If you are updating a metric stream, specify the name of that stream here.

    + ///

    Valid characters are A-Z, a-z, 0-9, "-" and "_".

    + pub name: std::option::Option, + ///

    If you specify this parameter, the stream sends only the + /// metrics from the metric namespaces that you specify here.

    + ///

    You cannot include IncludeFilters and ExcludeFilters + /// in the same operation.

    + pub include_filters: std::option::Option>, + ///

    If you specify this parameter, the stream sends metrics from all + /// metric namespaces except for the namespaces that you specify here.

    + ///

    You cannot include ExcludeFilters and IncludeFilters in + /// the same operation.

    + pub exclude_filters: std::option::Option>, + ///

    The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. + /// This Amazon Kinesis Firehose delivery stream must already exist and must be in the same + /// account as the metric stream.

    + pub firehose_arn: std::option::Option, + ///

    The ARN of an IAM role that this metric stream will use to access + /// Amazon Kinesis Firehose resources. This IAM role must already + /// exist and must be in the same account as the metric stream. This IAM role must include the following permissions:

    + ///
      + ///
    • + ///

      firehose:PutRecord

      + ///
    • + ///
    • + ///

      firehose:PutRecordBatch

      + ///
    • + ///
    + pub role_arn: std::option::Option, + ///

    The output format for the stream. Valid values are json + /// and opentelemetry0.7. For more information about metric stream + /// output formats, see + /// + /// Metric streams output formats.

    + pub output_format: std::option::Option, + ///

    A list of key-value pairs to associate with the metric stream. You can associate as + /// many as 50 tags with a metric stream.

    + ///

    Tags can help you organize and categorize your resources. You can also use them to scope user + /// permissions by granting a user + /// permission to access or change only resources with certain tag values.

    + pub tags: std::option::Option>, +} +impl std::fmt::Debug for PutMetricStreamInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricStreamInput"); + formatter.field("name", &self.name); + formatter.field("include_filters", &self.include_filters); + formatter.field("exclude_filters", &self.exclude_filters); + formatter.field("firehose_arn", &self.firehose_arn); + formatter.field("role_arn", &self.role_arn); + formatter.field("output_format", &self.output_format); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricDataInput { + ///

    The namespace for the metric data.

    + ///

    To avoid conflicts + /// with AWS service namespaces, you should not specify a namespace that begins with AWS/ + ///

    + pub namespace: std::option::Option, + ///

    The data for the metric. The array can include no more than 20 metrics per call.

    + pub metric_data: std::option::Option>, +} +impl std::fmt::Debug for PutMetricDataInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricDataInput"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_data", &self.metric_data); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricAlarmInput { + ///

    The name for the alarm. This name must be unique within the Region.

    + pub alarm_name: std::option::Option, + ///

    The description for the alarm.

    + pub alarm_description: std::option::Option, + ///

    Indicates whether actions should be executed during any changes to the alarm state. The default is + /// TRUE.

    + pub actions_enabled: std::option::Option, + ///

    The actions to execute when this alarm transitions to an OK state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0 + ///

    + pub ok_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to the ALARM state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + /// | arn:aws:ssm:region:account-id:opsitem:severity + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + ///

    + pub alarm_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:automate:region:ec2:stop | + /// arn:aws:automate:region:ec2:terminate | + /// arn:aws:automate:region:ec2:recover | + /// arn:aws:automate:region:ec2:reboot | + /// arn:aws:sns:region:account-id:sns-topic-name + /// | + /// arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + /// + ///

    + ///

    Valid Values (for use with IAM roles): + /// >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + /// arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + ///

    + pub insufficient_data_actions: std::option::Option>, + ///

    The name for the metric associated with the alarm. For each PutMetricAlarm + /// operation, you must specify either MetricName or a Metrics array.

    + ///

    If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the + /// Dimensions, Period, + /// Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify + /// all this information in the Metrics array.

    + pub metric_name: std::option::Option, + ///

    The namespace for the metric associated specified in MetricName.

    + pub namespace: std::option::Option, + ///

    The statistic for the metric specified in MetricName, other than percentile. + /// For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub statistic: std::option::Option, + ///

    The percentile statistic for the metric specified in MetricName. Specify a value + /// between p0.0 and p100. When you call PutMetricAlarm and specify + /// a MetricName, you must + /// specify either Statistic or ExtendedStatistic, but not both.

    + pub extended_statistic: std::option::Option, + ///

    The dimensions for the metric specified in MetricName.

    + pub dimensions: std::option::Option>, + ///

    The length, in seconds, used each time the metric specified in MetricName is + /// evaluated. Valid values are 10, 30, and any multiple of 60.

    + ///

    + /// Period is required for alarms based on static thresholds. If + /// you are creating an alarm based on a metric math expression, you specify the + /// period for each metric within the objects in the Metrics array.

    + ///

    Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a + /// StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have + /// sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, + /// it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm + /// might often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, + /// which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

    + pub period: std::option::Option, + ///

    The unit of measure for the statistic. For example, the units for the Amazon EC2 + /// NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance + /// receives on all network interfaces. You can also specify a unit when you create a custom + /// metric. Units help provide conceptual meaning to your data. Metric data points that + /// specify a unit of measure, such as Percent, are aggregated separately.

    + ///

    If you don't specify Unit, CloudWatch retrieves all unit types that have been published for the + /// metric and attempts to evaluate the alarm. + /// Usually, metrics are + /// published with only one unit, so the alarm + /// works as intended.

    + ///

    However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's + /// behavior is not defined and + /// it behaves predictably.

    + ///

    We recommend omitting Unit so that you don't inadvertently + /// specify an incorrect unit that is not published for this metric. Doing so + /// causes the alarm to be stuck in the INSUFFICIENT DATA state.

    + pub unit: std::option::Option, + ///

    The number of periods over which data is compared to the specified threshold. If you are + /// setting an alarm that requires that a number of consecutive data points be breaching to + /// trigger the alarm, this value specifies that number. If you are setting an "M out of N" + /// alarm, this value is the N.

    + ///

    An alarm's total current evaluation period can + /// be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

    + pub evaluation_periods: std::option::Option, + ///

    The number of data points that must be breaching to trigger the alarm. This is used only if you are setting + /// an "M out of N" alarm. In that case, this value is the M. For more information, see + /// Evaluating an Alarm in the + /// Amazon CloudWatch User Guide.

    + pub datapoints_to_alarm: std::option::Option, + ///

    The value against which the specified statistic is compared.

    + ///

    This parameter is required for alarms based on static thresholds, but should + /// not be used for alarms based on anomaly detection models.

    + pub threshold: std::option::Option, + ///

    The arithmetic operation to use when comparing the specified statistic and + /// threshold. The specified statistic value is used as the first operand.

    + ///

    The values LessThanLowerOrGreaterThanUpperThreshold, + /// LessThanLowerThreshold, and GreaterThanUpperThreshold + /// are used only for alarms based on anomaly detection models.

    + pub comparison_operator: std::option::Option, + ///

    Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. + /// For more information, see Configuring How CloudWatch + /// Alarms Treats Missing Data.

    + ///

    Valid Values: breaching | notBreaching | ignore | missing + ///

    + pub treat_missing_data: std::option::Option, + ///

    Used only for alarms based on percentiles. If you specify ignore, the alarm state does not change during periods with too few data points to be + /// statistically significant. If you specify evaluate or omit this parameter, the alarm is always evaluated and possibly changes state + /// no matter how many data points are available. For more information, see Percentile-Based CloudWatch Alarms and Low Data Samples.

    + ///

    Valid Values: evaluate | ignore + ///

    + pub evaluate_low_sample_count_percentile: std::option::Option, + ///

    An array of MetricDataQuery structures that enable you to create an alarm based on the result of a + /// metric math expression. For each PutMetricAlarm + /// operation, you must specify either MetricName or a Metrics array.

    + ///

    Each item in the Metrics array either retrieves a metric or performs a math expression.

    + ///

    One item in the Metrics array is the expression that the alarm watches. You designate this expression + /// by setting ReturnData to true for this object in the array. For more information, see MetricDataQuery.

    + ///

    If you use the Metrics parameter, you cannot include the MetricName, Dimensions, Period, + /// Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm in the same operation. + /// Instead, you retrieve + /// the metrics you are using in your math expression as part of the Metrics array.

    + pub metrics: std::option::Option>, + ///

    A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.

    + ///

    Tags can help you organize and categorize your resources. You can also use them to scope user + /// permissions by granting a user + /// permission to access or change only resources with certain tag values.

    + ///

    If you are using this operation to update an existing alarm, any tags + /// you specify in this parameter are ignored. To change the tags of an existing alarm, use + /// TagResource + /// or UntagResource.

    + pub tags: std::option::Option>, + ///

    If this is an alarm based on an anomaly detection model, make this value match + /// the ID of + /// the ANOMALY_DETECTION_BAND function.

    + ///

    For an example of how to use this parameter, see the + /// Anomaly Detection + /// Model Alarm example on this page.

    + ///

    If your alarm uses this parameter, it cannot have Auto Scaling actions.

    + pub threshold_metric_id: std::option::Option, +} +impl std::fmt::Debug for PutMetricAlarmInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricAlarmInput"); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_description", &self.alarm_description); + formatter.field("actions_enabled", &self.actions_enabled); + formatter.field("ok_actions", &self.ok_actions); + formatter.field("alarm_actions", &self.alarm_actions); + formatter.field("insufficient_data_actions", &self.insufficient_data_actions); + formatter.field("metric_name", &self.metric_name); + formatter.field("namespace", &self.namespace); + formatter.field("statistic", &self.statistic); + formatter.field("extended_statistic", &self.extended_statistic); + formatter.field("dimensions", &self.dimensions); + formatter.field("period", &self.period); + formatter.field("unit", &self.unit); + formatter.field("evaluation_periods", &self.evaluation_periods); + formatter.field("datapoints_to_alarm", &self.datapoints_to_alarm); + formatter.field("threshold", &self.threshold); + formatter.field("comparison_operator", &self.comparison_operator); + formatter.field("treat_missing_data", &self.treat_missing_data); + formatter.field( + "evaluate_low_sample_count_percentile", + &self.evaluate_low_sample_count_percentile, + ); + formatter.field("metrics", &self.metrics); + formatter.field("tags", &self.tags); + formatter.field("threshold_metric_id", &self.threshold_metric_id); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutInsightRuleInput { + ///

    A unique name for the rule.

    + pub rule_name: std::option::Option, + ///

    The state of the rule. Valid values are ENABLED and DISABLED.

    + pub rule_state: std::option::Option, + ///

    The definition of the rule, as a JSON object. For details on the valid syntax, see + /// Contributor Insights + /// Rule Syntax.

    + pub rule_definition: std::option::Option, + ///

    A list of key-value pairs to associate with the Contributor Insights rule. + /// You can associate as many as 50 tags with a rule.

    + ///

    Tags can help you organize and categorize your + /// resources. You can also use them to scope user permissions, by + /// granting a user permission to access or change only the resources that have + /// certain tag values.

    + ///

    To be able to associate tags with a rule, you must have the cloudwatch:TagResource + /// permission in addition to the cloudwatch:PutInsightRule permission.

    + ///

    If you are using this operation to update an existing Contributor Insights rule, any tags + /// you specify in this parameter are ignored. To change the tags of an existing rule, use + /// TagResource.

    + pub tags: std::option::Option>, +} +impl std::fmt::Debug for PutInsightRuleInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutInsightRuleInput"); + formatter.field("rule_name", &self.rule_name); + formatter.field("rule_state", &self.rule_state); + formatter.field("rule_definition", &self.rule_definition); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutDashboardInput { + ///

    The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing + /// its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are + /// A-Z, a-z, 0-9, "-", and "_". This parameter is required.

    + pub dashboard_name: std::option::Option, + ///

    The detailed information about the dashboard in JSON format, including the widgets to include and their location + /// on the dashboard. This parameter is required.

    + ///

    For more information about the syntax, + /// see Dashboard Body Structure and Syntax.

    + pub dashboard_body: std::option::Option, +} +impl std::fmt::Debug for PutDashboardInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutDashboardInput"); + formatter.field("dashboard_name", &self.dashboard_name); + formatter.field("dashboard_body", &self.dashboard_body); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutCompositeAlarmInput { + ///

    Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is + /// TRUE.

    + pub actions_enabled: std::option::Option, + ///

    The actions to execute when this alarm transitions to the ALARM state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + /// | arn:aws:ssm:region:account-id:opsitem:severity + /// + ///

    + pub alarm_actions: std::option::Option>, + ///

    The description for the composite alarm.

    + pub alarm_description: std::option::Option, + ///

    The name for the composite alarm. This name must be unique within the Region.

    + pub alarm_name: std::option::Option, + ///

    An expression that specifies which other alarms are to be evaluated to determine this + /// composite alarm's state. For each alarm that you reference, you + /// designate a function that + /// specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You + /// can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the + /// functions in your expression.

    + ///

    You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.

    + ///

    Functions can include the following:

    + ///
      + ///
    • + ///

      + /// ALARM("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in ALARM state.

      + ///
    • + ///
    • + ///

      + /// OK("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in OK state.

      + ///
    • + ///
    • + ///

      + /// INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named + /// alarm is in INSUFFICIENT_DATA state.

      + ///
    • + ///
    • + ///

      + /// TRUE always evaluates to TRUE.

      + ///
    • + ///
    • + ///

      + /// FALSE always evaluates to FALSE.

      + ///
    • + ///
    + ///

    TRUE and FALSE are useful for testing a complex AlarmRule structure, and + /// for testing your alarm actions.

    + ///

    Alarm names specified in AlarmRule can be surrounded with double-quotes ("), but do not have to be.

    + ///

    The following + /// are some examples of AlarmRule:

    + ///
      + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh) specifies that the composite alarm goes into ALARM state only + /// if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.

      + ///
    • + ///
    • + ///

      + /// ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress) + /// specifies that the alarm goes to ALARM state if CPUUtilizationTooHigh is in ALARM state + /// and DeploymentInProgress is not in ALARM state. This example reduces + /// alarm noise during a known deployment window.

      + ///
    • + ///
    • + ///

      + /// (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh) goes into ALARM + /// state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK state. + /// This provides another example of using a composite alarm to prevent noise. This rule ensures that you are not notified with an + /// alarm action on high CPU or disk usage if a known network problem is also occurring.

      + ///
    • + ///
    + ///

    The AlarmRule can specify as many as 100 + /// "children" alarms. The AlarmRule expression can have as many as 500 elements. Elements + /// are child alarms, TRUE or FALSE statements, and + /// parentheses.

    + pub alarm_rule: std::option::Option, + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. + /// Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + ///

    + pub insufficient_data_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to an OK state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + ///

    Valid Values: arn:aws:sns:region:account-id:sns-topic-name + /// + ///

    + pub ok_actions: std::option::Option>, + ///

    A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.

    + ///

    Tags can help you organize and categorize your + /// resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with + /// certain tag values.

    + pub tags: std::option::Option>, +} +impl std::fmt::Debug for PutCompositeAlarmInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutCompositeAlarmInput"); + formatter.field("actions_enabled", &self.actions_enabled); + formatter.field("alarm_actions", &self.alarm_actions); + formatter.field("alarm_description", &self.alarm_description); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_rule", &self.alarm_rule); + formatter.field("insufficient_data_actions", &self.insufficient_data_actions); + formatter.field("ok_actions", &self.ok_actions); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutAnomalyDetectorInput { + ///

    The namespace of the metric to create the anomaly detection model for.

    + pub namespace: std::option::Option, + ///

    The name of the metric to create the anomaly detection model for.

    + pub metric_name: std::option::Option, + ///

    The metric dimensions to create the anomaly detection model for.

    + pub dimensions: std::option::Option>, + ///

    The statistic to use for the metric and the anomaly detection model.

    + pub stat: std::option::Option, + ///

    The configuration specifies details about how the + /// anomaly detection model is to be trained, including + /// time ranges to exclude when training and updating the model. + /// You can specify as many as 10 time ranges.

    + ///

    The configuration can also include the time zone to use for + /// the metric.

    + pub configuration: std::option::Option, +} +impl std::fmt::Debug for PutAnomalyDetectorInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutAnomalyDetectorInput"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("stat", &self.stat); + formatter.field("configuration", &self.configuration); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceInput { + ///

    The ARN of the CloudWatch resource that you want to view tags for.

    + ///

    The ARN format of an alarm is + /// arn:aws:cloudwatch:Region:account-id:alarm:alarm-name + /// + ///

    + ///

    The ARN format of a Contributor Insights rule is + /// arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name + /// + ///

    + ///

    For more information about ARN format, see Resource + /// Types Defined by Amazon CloudWatch in the Amazon Web Services General + /// Reference.

    + pub resource_arn: std::option::Option, +} +impl std::fmt::Debug for ListTagsForResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListMetricStreamsInput { + ///

    Include this value, if it was returned by the previous call, to get the next set of metric streams.

    + pub next_token: std::option::Option, + ///

    The maximum number of results to return in one operation.

    + pub max_results: std::option::Option, +} +impl std::fmt::Debug for ListMetricStreamsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListMetricStreamsInput"); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListMetricsInput { + ///

    The metric namespace to filter against. Only the namespace that matches exactly + /// will be returned.

    + pub namespace: std::option::Option, + ///

    The name of the metric to filter against. Only the metrics with names that match exactly + /// will be returned.

    + pub metric_name: std::option::Option, + ///

    The dimensions to filter against. Only the dimensions that match exactly + /// will be returned.

    + pub dimensions: std::option::Option>, + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub next_token: std::option::Option, + ///

    To filter the results to show only metrics that have had data points published + /// in the past three hours, specify this parameter + /// with a value of PT3H. This is the only valid value + /// for this parameter.

    + ///

    The results that are returned are an approximation of the value you specify. There + /// is a low probability that the returned results include metrics with last published + /// data as much as 40 minutes more than the specified time interval.

    + pub recently_active: std::option::Option, +} +impl std::fmt::Debug for ListMetricsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListMetricsInput"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("next_token", &self.next_token); + formatter.field("recently_active", &self.recently_active); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListDashboardsInput { + ///

    If you specify this parameter, only + /// the dashboards with names starting with the specified string are listed. The maximum length is 255, and + /// valid characters are A-Z, a-z, 0-9, ".", "-", and "_". + ///

    + pub dashboard_name_prefix: std::option::Option, + ///

    The token returned by a previous call to indicate that there is more data available.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListDashboardsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListDashboardsInput"); + formatter.field("dashboard_name_prefix", &self.dashboard_name_prefix); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricWidgetImageInput { + ///

    A JSON string that defines the bitmap graph to be retrieved. The string includes the + /// metrics to include in the graph, statistics, annotations, title, axis limits, and so on. + /// You can include only one MetricWidget parameter in each GetMetricWidgetImage call.

    + ///

    For more information about the syntax of MetricWidget see + /// GetMetricWidgetImage: Metric Widget Structure and Syntax.

    + ///

    If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation + /// point appears next to the graph legend.

    + pub metric_widget: std::option::Option, + ///

    The format of the resulting image. Only PNG images are supported.

    + ///

    The default is png. If you specify png, the API returns an HTTP response with the + /// content-type set to text/xml. The image data is in a MetricWidgetImage + /// field. For example:

    + ///

    + /// + /// > + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip... + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    + /// 6f0d4192-4d42-11e8-82c1-f539a07e0e3b + ///

    + ///

    + /// + ///

    + ///

    + /// + ///

    + ///

    The image/png setting is intended only for custom HTTP requests. For most + /// use cases, and all actions using an AWS SDK, you should use png. If you specify + /// image/png, the HTTP response has a content-type set to image/png, + /// and the body of the response is a PNG image.

    + pub output_format: std::option::Option, +} +impl std::fmt::Debug for GetMetricWidgetImageInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricWidgetImageInput"); + formatter.field("metric_widget", &self.metric_widget); + formatter.field("output_format", &self.output_format); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricStreamInput { + ///

    The name of the metric stream to retrieve information about.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for GetMetricStreamInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricStreamInput"); + formatter.field("name", &self.name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricStatisticsInput { + ///

    The namespace of the metric, with or without spaces.

    + pub namespace: std::option::Option, + ///

    The name of the metric, with or without spaces.

    + pub metric_name: std::option::Option, + ///

    The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric. + /// If a specific combination of dimensions was not published, you can't retrieve statistics for it. + /// You must specify the same dimensions that were used when the metrics were created. For an example, + /// see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the + /// Amazon CloudWatch User Guide.

    + pub dimensions: std::option::Option>, + ///

    The time stamp that determines the first data point to return. Start times are + /// evaluated relative to the time that CloudWatch receives the request.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + pub start_time: std::option::Option, + ///

    The time stamp that determines the last data point to return.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp. + /// In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).

    + pub end_time: std::option::Option, + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can + /// be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected + /// at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics + /// are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    + ///

    If the StartTime parameter specifies a time stamp that is greater than + /// 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    + ///
      + ///
    • + ///

      Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

      + ///
    • + ///
    + pub period: std::option::Option, + ///

    The metric statistics, other than percentile. For percentile statistics, + /// use ExtendedStatistics. When calling GetMetricStatistics, you must + /// specify either Statistics or ExtendedStatistics, but not both.

    + pub statistics: std::option::Option>, + ///

    The percentile statistics. Specify values between p0.0 and p100. When calling GetMetricStatistics, you must + /// specify either Statistics or ExtendedStatistics, but not both. Percentile statistics are not + /// available for metrics when any of the metric values are negative numbers.

    + pub extended_statistics: std::option::Option>, + ///

    The unit for a given metric. + /// If you omit Unit, all data that was collected with any unit is returned, along with the corresponding units that were specified + /// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. + /// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    + pub unit: std::option::Option, +} +impl std::fmt::Debug for GetMetricStatisticsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricStatisticsInput"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("start_time", &self.start_time); + formatter.field("end_time", &self.end_time); + formatter.field("period", &self.period); + formatter.field("statistics", &self.statistics); + formatter.field("extended_statistics", &self.extended_statistics); + formatter.field("unit", &self.unit); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricDataInput { + ///

    The metric queries to be returned. A single GetMetricData call can include as many as 500 MetricDataQuery + /// structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

    + pub metric_data_queries: std::option::Option>, + ///

    The time stamp indicating the earliest data to be returned.

    + ///

    The value specified is inclusive; results include data points with the specified time stamp.

    + ///

    CloudWatch rounds the specified time stamp as follows:

    + ///
      + ///
    • + ///

      Start time less than 15 days ago - Round down to the nearest whole minute. + /// For example, 12:32:34 is rounded down to 12:32:00.

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. + /// For example, 12:32:34 is rounded down to 12:30:00.

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. + /// For example, 12:32:34 is rounded down to 12:00:00.

      + ///
    • + ///
    + ///

    If you set Period to 5, 10, or 30, the start time of your request is + /// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions + /// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous + /// 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to + /// 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a + /// period of 5 seconds, you receive data + /// timestamped between 15:02:15 and 15:07:15. + ///

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as StartTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the StartTime.

    + pub start_time: std::option::Option, + ///

    The time stamp indicating the latest data to be returned.

    + ///

    The value specified is exclusive; results include data points up to the specified time stamp.

    + ///

    For better performance, specify StartTime and EndTime + /// values that align with the value of the metric's Period and sync up with + /// the beginning and end of an hour. For example, if the Period of a metric + /// is 5 minutes, specifying 12:05 or 12:30 as EndTime can get a faster response + /// from CloudWatch than setting 12:07 or 12:29 as the EndTime.

    + pub end_time: std::option::Option, + ///

    Include this value, if it was returned by the previous GetMetricData operation, + /// to get the next set of data points.

    + pub next_token: std::option::Option, + ///

    The order in which data points should be returned. TimestampDescending returns the newest data first and paginates + /// when the MaxDatapoints limit is reached. TimestampAscending returns the oldest data first and paginates + /// when the MaxDatapoints limit is reached.

    + pub scan_by: std::option::Option, + ///

    The maximum number of data points the request should return before paginating. If you omit + /// this, the default of 100,800 is used.

    + pub max_datapoints: std::option::Option, + ///

    This structure includes the Timezone parameter, which you can use + /// to specify your time zone so that the labels of returned data display the + /// correct time + /// for your time zone.

    + pub label_options: std::option::Option, +} +impl std::fmt::Debug for GetMetricDataInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricDataInput"); + formatter.field("metric_data_queries", &self.metric_data_queries); + formatter.field("start_time", &self.start_time); + formatter.field("end_time", &self.end_time); + formatter.field("next_token", &self.next_token); + formatter.field("scan_by", &self.scan_by); + formatter.field("max_datapoints", &self.max_datapoints); + formatter.field("label_options", &self.label_options); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetInsightRuleReportInput { + ///

    The name of the rule that you want to see data from.

    + pub rule_name: std::option::Option, + ///

    The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub start_time: std::option::Option, + ///

    The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as + /// yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub end_time: std::option::Option, + ///

    The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results.

    + pub period: std::option::Option, + ///

    The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default of 10 is used.

    + pub max_contributor_count: std::option::Option, + ///

    Specifies which metrics to use for aggregation of contributor values for the report. You can specify one or more + /// of the following metrics:

    + ///
      + ///
    • + ///

      + /// UniqueContributors -- the number of unique contributors for each data point.

      + ///
    • + ///
    • + ///

      + /// MaxContributorValue -- the value of the top contributor for each data point. The identity of the + /// contributor might change for each data point in the graph.

      + ///

      If this rule aggregates by COUNT, the top contributor for each data point is the contributor with the + /// most occurrences in that period. If the rule aggregates by SUM, the top contributor is the contributor with the highest sum in the log field specified + /// by the rule's Value, during that period.

      + ///
    • + ///
    • + ///

      + /// SampleCount -- the number of data points matched by the rule.

      + ///
    • + ///
    • + ///

      + /// Sum -- the sum of the values from all contributors during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Minimum -- the minimum value from a single observation during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Maximum -- the maximum value from a single observation during the time period represented by that data point.

      + ///
    • + ///
    • + ///

      + /// Average -- the average value from all contributors during the time period represented by that data point.

      + ///
    • + ///
    + pub metrics: std::option::Option>, + ///

    Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM.

    + pub order_by: std::option::Option, +} +impl std::fmt::Debug for GetInsightRuleReportInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetInsightRuleReportInput"); + formatter.field("rule_name", &self.rule_name); + formatter.field("start_time", &self.start_time); + formatter.field("end_time", &self.end_time); + formatter.field("period", &self.period); + formatter.field("max_contributor_count", &self.max_contributor_count); + formatter.field("metrics", &self.metrics); + formatter.field("order_by", &self.order_by); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetDashboardInput { + ///

    The name of the dashboard to be described.

    + pub dashboard_name: std::option::Option, +} +impl std::fmt::Debug for GetDashboardInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetDashboardInput"); + formatter.field("dashboard_name", &self.dashboard_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EnableInsightRulesInput { + ///

    An array of the rule names to enable. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub rule_names: std::option::Option>, +} +impl std::fmt::Debug for EnableInsightRulesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EnableInsightRulesInput"); + formatter.field("rule_names", &self.rule_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EnableAlarmActionsInput { + ///

    The names of the alarms.

    + pub alarm_names: std::option::Option>, +} +impl std::fmt::Debug for EnableAlarmActionsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EnableAlarmActionsInput"); + formatter.field("alarm_names", &self.alarm_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisableInsightRulesInput { + ///

    An array of the rule names to disable. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub rule_names: std::option::Option>, +} +impl std::fmt::Debug for DisableInsightRulesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisableInsightRulesInput"); + formatter.field("rule_names", &self.rule_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisableAlarmActionsInput { + ///

    The names of the alarms.

    + pub alarm_names: std::option::Option>, +} +impl std::fmt::Debug for DisableAlarmActionsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisableAlarmActionsInput"); + formatter.field("alarm_names", &self.alarm_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeInsightRulesInput { + ///

    Include this value, if it was returned by the previous operation, to get the next set of rules.

    + pub next_token: std::option::Option, + ///

    The maximum number of results to return in one operation. If you omit this + /// parameter, the default of 500 is used.

    + pub max_results: std::option::Option, +} +impl std::fmt::Debug for DescribeInsightRulesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeInsightRulesInput"); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAnomalyDetectorsInput { + ///

    Use the token returned by the previous operation to request the next page of results.

    + pub next_token: std::option::Option, + ///

    The maximum number of results to return in one operation. The maximum + /// value that you can specify is 100.

    + ///

    To retrieve the remaining results, make another call with the returned + /// NextToken value.

    + pub max_results: std::option::Option, + ///

    Limits the results to only the anomaly detection models that + /// are associated with the specified namespace.

    + pub namespace: std::option::Option, + ///

    Limits the results to only the anomaly detection models that are associated with the + /// specified metric name. If there are multiple metrics with this name in different + /// namespaces that have anomaly detection models, they're all returned.

    + pub metric_name: std::option::Option, + ///

    Limits the results to only the anomaly detection models that are associated with the + /// specified metric dimensions. If there are multiple metrics that have these dimensions + /// and have anomaly detection models associated, they're all returned.

    + pub dimensions: std::option::Option>, +} +impl std::fmt::Debug for DescribeAnomalyDetectorsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAnomalyDetectorsInput"); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmsForMetricInput { + ///

    The name of the metric.

    + pub metric_name: std::option::Option, + ///

    The namespace of the metric.

    + pub namespace: std::option::Option, + ///

    The statistic for the metric, other than percentiles. + /// For percentile statistics, use ExtendedStatistics.

    + pub statistic: std::option::Option, + ///

    The percentile statistic for the metric. Specify a value between + /// p0.0 and p100.

    + pub extended_statistic: std::option::Option, + ///

    The dimensions associated with the metric. If the metric has any associated + /// dimensions, you must specify them in order for the call to succeed.

    + pub dimensions: std::option::Option>, + ///

    The period, in seconds, over which the statistic is applied.

    + pub period: std::option::Option, + ///

    The unit for the metric.

    + pub unit: std::option::Option, +} +impl std::fmt::Debug for DescribeAlarmsForMetricInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmsForMetricInput"); + formatter.field("metric_name", &self.metric_name); + formatter.field("namespace", &self.namespace); + formatter.field("statistic", &self.statistic); + formatter.field("extended_statistic", &self.extended_statistic); + formatter.field("dimensions", &self.dimensions); + formatter.field("period", &self.period); + formatter.field("unit", &self.unit); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmsInput { + ///

    The names of the alarms to retrieve information about.

    + pub alarm_names: std::option::Option>, + ///

    An alarm name prefix. If you specify this parameter, you receive information about all alarms that have names + /// that start with this prefix.

    + ///

    If this parameter + /// is specified, you cannot specify AlarmNames.

    + pub alarm_name_prefix: std::option::Option, + ///

    Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, + /// only metric alarms are returned.

    + pub alarm_types: std::option::Option>, + ///

    If you use this parameter and specify the name of a composite alarm, the operation returns + /// information about the "children" alarms + /// of the alarm you specify. These are the metric alarms and composite alarms referenced in the + /// AlarmRule field of the composite alarm that you specify in + /// ChildrenOfAlarmName. Information about the composite alarm that you name in + /// ChildrenOfAlarmName is not returned.

    + ///

    If you specify ChildrenOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you + /// receive a validation + /// error.

    + /// + ///

    Only the Alarm Name, ARN, StateValue (OK/ALARM/INSUFFICIENT_DATA), and StateUpdatedTimestamp + /// information are returned by this operation + /// when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub children_of_alarm_name: std::option::Option, + ///

    If you use this parameter and specify the name of a metric or composite alarm, the operation returns + /// information about the "parent" alarms + /// of the alarm you specify. These are the composite alarms that have AlarmRule + /// parameters that reference + /// the alarm named in ParentsOfAlarmName. Information about the alarm that you specify in + /// ParentsOfAlarmName is not returned.

    + ///

    If you specify ParentsOfAlarmName, you cannot specify any other parameters in the request except + /// for MaxRecords and NextToken. If you do so, you receive a validation + /// error.

    + /// + ///

    Only the Alarm Name and ARN are returned by this operation when you use this parameter. To get complete information about + /// these alarms, perform another DescribeAlarms operation and specify + /// the parent alarm names in the AlarmNames parameter.

    + ///
    + pub parents_of_alarm_name: std::option::Option, + ///

    Specify this parameter to receive information only about alarms that are currently in the state that you specify.

    + pub state_value: std::option::Option, + ///

    Use this parameter to filter the results of the operation to only those alarms that + /// use a certain alarm action. For example, you could specify the ARN of an SNS topic to find all + /// alarms that send notifications to that topic.

    + pub action_prefix: std::option::Option, + ///

    The maximum number of alarm descriptions to retrieve.

    + pub max_records: std::option::Option, + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeAlarmsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmsInput"); + formatter.field("alarm_names", &self.alarm_names); + formatter.field("alarm_name_prefix", &self.alarm_name_prefix); + formatter.field("alarm_types", &self.alarm_types); + formatter.field("children_of_alarm_name", &self.children_of_alarm_name); + formatter.field("parents_of_alarm_name", &self.parents_of_alarm_name); + formatter.field("state_value", &self.state_value); + formatter.field("action_prefix", &self.action_prefix); + formatter.field("max_records", &self.max_records); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmHistoryInput { + ///

    The name of the alarm.

    + pub alarm_name: std::option::Option, + ///

    Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, + /// only metric alarms are returned.

    + pub alarm_types: std::option::Option>, + ///

    The type of alarm histories to retrieve.

    + pub history_item_type: std::option::Option, + ///

    The starting date to retrieve alarm history.

    + pub start_date: std::option::Option, + ///

    The ending date to retrieve alarm history.

    + pub end_date: std::option::Option, + ///

    The maximum number of alarm history records to retrieve.

    + pub max_records: std::option::Option, + ///

    The token returned by a previous call to indicate that there is more data + /// available.

    + pub next_token: std::option::Option, + ///

    Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest + /// event history returned first, and specify TimestampAscending to have the oldest history returned first.

    + pub scan_by: std::option::Option, +} +impl std::fmt::Debug for DescribeAlarmHistoryInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmHistoryInput"); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_types", &self.alarm_types); + formatter.field("history_item_type", &self.history_item_type); + formatter.field("start_date", &self.start_date); + formatter.field("end_date", &self.end_date); + formatter.field("max_records", &self.max_records); + formatter.field("next_token", &self.next_token); + formatter.field("scan_by", &self.scan_by); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteMetricStreamInput { + ///

    The name of the metric stream to delete.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for DeleteMetricStreamInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteMetricStreamInput"); + formatter.field("name", &self.name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteInsightRulesInput { + ///

    An array of the rule names to delete. If you need to find out the names of your rules, use DescribeInsightRules.

    + pub rule_names: std::option::Option>, +} +impl std::fmt::Debug for DeleteInsightRulesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteInsightRulesInput"); + formatter.field("rule_names", &self.rule_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteDashboardsInput { + ///

    The dashboards to be deleted. This parameter is required.

    + pub dashboard_names: std::option::Option>, +} +impl std::fmt::Debug for DeleteDashboardsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteDashboardsInput"); + formatter.field("dashboard_names", &self.dashboard_names); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAnomalyDetectorInput { + ///

    The namespace associated with the anomaly detection model to delete.

    + pub namespace: std::option::Option, + ///

    The metric name associated with the anomaly detection model to delete.

    + pub metric_name: std::option::Option, + ///

    The metric dimensions associated with the anomaly detection model to delete.

    + pub dimensions: std::option::Option>, + ///

    The statistic associated with the anomaly detection model to delete.

    + pub stat: std::option::Option, +} +impl std::fmt::Debug for DeleteAnomalyDetectorInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAnomalyDetectorInput"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("stat", &self.stat); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAlarmsInput { + ///

    The alarms to be deleted.

    + pub alarm_names: std::option::Option>, +} +impl std::fmt::Debug for DeleteAlarmsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAlarmsInput"); + formatter.field("alarm_names", &self.alarm_names); + formatter.finish() + } +} diff --git a/sdk/cloudwatch/src/lib.rs b/sdk/cloudwatch/src/lib.rs new file mode 100644 index 000000000000..0f27cb8c6446 --- /dev/null +++ b/sdk/cloudwatch/src/lib.rs @@ -0,0 +1,51 @@ +#![allow(clippy::module_inception)] +#![allow(clippy::upper_case_acronyms)] +#![allow(clippy::large_enum_variant)] +#![allow(clippy::wrong_self_convention)] +#![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] +//!

    Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the +//! applications you run on AWS in real time. You can use CloudWatch to collect and track +//! metrics, which are the variables you want to measure for your resources and +//! applications.

    +//!

    CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules +//! that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2 +//! instances. Then, use this data to determine whether you should launch +//! additional instances to handle increased load. You can also use this data to stop +//! under-used instances to save +//! money.

    +//!

    In addition to monitoring the built-in metrics that come with AWS, you can monitor +//! your own custom metrics. With CloudWatch, you gain system-wide visibility into resource +//! utilization, application performance, and operational health.

    + +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use error_meta::Error; + +pub use config::Config; + +mod aws_endpoint; +#[cfg(feature = "client")] +pub mod client; +pub mod config; +pub mod error; +mod error_meta; +pub mod input; +pub mod model; +pub mod operation; +mod operation_deser; +mod operation_ser; +pub mod output; +mod query_ser; +mod rest_xml_wrapped_errors; +mod xml_deser; +pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); +pub use smithy_http::byte_stream::ByteStream; +pub use smithy_http::result::SdkError; +pub use smithy_types::Blob; +static API_METADATA: aws_http::user_agent::ApiMetadata = + aws_http::user_agent::ApiMetadata::new("cloudwatch", PKG_VERSION); +pub use aws_auth::Credentials; +pub use aws_types::region::Region; +#[cfg(feature = "client")] +pub use client::Client; +pub use smithy_http::endpoint::Endpoint; diff --git a/sdk/cloudwatch/src/model.rs b/sdk/cloudwatch/src/model.rs new file mode 100644 index 000000000000..89e75b8d0a62 --- /dev/null +++ b/sdk/cloudwatch/src/model.rs @@ -0,0 +1,3974 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

    A key-value pair associated with a CloudWatch resource.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Tag { + ///

    A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your + /// resources.

    + pub key: std::option::Option, + ///

    The value for the specified tag key.

    + pub value: std::option::Option, +} +impl std::fmt::Debug for Tag { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Tag"); + formatter.field("key", &self.key); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`Tag`](crate::model::Tag) +pub mod tag { + /// A builder for [`Tag`](crate::model::Tag) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

    A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your + /// resources.

    + pub fn key(mut self, input: impl Into) -> Self { + self.key = Some(input.into()); + self + } + pub fn set_key(mut self, input: std::option::Option) -> Self { + self.key = input; + self + } + ///

    The value for the specified tag key.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`Tag`](crate::model::Tag) + pub fn build(self) -> crate::model::Tag { + crate::model::Tag { + key: self.key, + value: self.value, + } + } + } +} +impl Tag { + /// Creates a new builder-style object to manufacture [`Tag`](crate::model::Tag) + pub fn builder() -> crate::model::tag::Builder { + crate::model::tag::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum StateValue { + Alarm, + InsufficientData, + Ok, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for StateValue { + fn from(s: &str) -> Self { + match s { + "ALARM" => StateValue::Alarm, + "INSUFFICIENT_DATA" => StateValue::InsufficientData, + "OK" => StateValue::Ok, + other => StateValue::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for StateValue { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(StateValue::from(s)) + } +} +impl StateValue { + pub fn as_str(&self) -> &str { + match self { + StateValue::Alarm => "ALARM", + StateValue::InsufficientData => "INSUFFICIENT_DATA", + StateValue::Ok => "OK", + StateValue::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for StateValue { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum MetricStreamOutputFormat { + Json, + OpenTelemetry07, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for MetricStreamOutputFormat { + fn from(s: &str) -> Self { + match s { + "json" => MetricStreamOutputFormat::Json, + "opentelemetry0.7" => MetricStreamOutputFormat::OpenTelemetry07, + other => MetricStreamOutputFormat::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for MetricStreamOutputFormat { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(MetricStreamOutputFormat::from(s)) + } +} +impl MetricStreamOutputFormat { + pub fn as_str(&self) -> &str { + match self { + MetricStreamOutputFormat::Json => "json", + MetricStreamOutputFormat::OpenTelemetry07 => "opentelemetry0.7", + MetricStreamOutputFormat::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for MetricStreamOutputFormat { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    This structure contains the name of one of the metric namespaces that is listed in +/// a filter of a metric stream.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricStreamFilter { + ///

    The name of the metric namespace in the filter.

    + pub namespace: std::option::Option, +} +impl std::fmt::Debug for MetricStreamFilter { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricStreamFilter"); + formatter.field("namespace", &self.namespace); + formatter.finish() + } +} +/// See [`MetricStreamFilter`](crate::model::MetricStreamFilter) +pub mod metric_stream_filter { + /// A builder for [`MetricStreamFilter`](crate::model::MetricStreamFilter) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + } + impl Builder { + ///

    The name of the metric namespace in the filter.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + /// Consumes the builder and constructs a [`MetricStreamFilter`](crate::model::MetricStreamFilter) + pub fn build(self) -> crate::model::MetricStreamFilter { + crate::model::MetricStreamFilter { + namespace: self.namespace, + } + } + } +} +impl MetricStreamFilter { + /// Creates a new builder-style object to manufacture [`MetricStreamFilter`](crate::model::MetricStreamFilter) + pub fn builder() -> crate::model::metric_stream_filter::Builder { + crate::model::metric_stream_filter::Builder::default() + } +} + +///

    Encapsulates the information sent to either create a metric or add new values +/// to be aggregated into an existing metric.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricDatum { + ///

    The name of the metric.

    + pub metric_name: std::option::Option, + ///

    The dimensions associated with the metric.

    + pub dimensions: std::option::Option>, + ///

    The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

    + pub timestamp: std::option::Option, + ///

    The value for the metric.

    + ///

    Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or + /// too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) + /// are not supported.

    + pub value: std::option::Option, + ///

    The statistical values for the metric.

    + pub statistic_values: std::option::Option, + ///

    Array of numbers representing the values for the metric during the period. Each unique value is listed just once + /// in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. + /// You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

    + ///

    Although the Values array accepts numbers of type + /// Double, CloudWatch rejects values that are either too small + /// or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, + /// -Infinity) are not supported.

    + pub values: std::option::Option>, + ///

    Array of numbers that is used along with the Values array. Each number in the Count array + /// is the number of times the corresponding value in the Values array occurred during the period.

    + ///

    If you omit the Counts array, the default of 1 is used as the value for each count. If you + /// include a Counts array, it must include the same amount of values as the Values array.

    + pub counts: std::option::Option>, + ///

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    + ///

    In + /// a Get operation, this displays the unit that is used for the metric.

    + pub unit: std::option::Option, + ///

    Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with + /// sub-minute resolution down to one second. + /// Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available + /// only for custom metrics. For more information about high-resolution metrics, + /// see High-Resolution Metrics in the + /// Amazon CloudWatch User Guide. + ///

    + ///

    This field is optional, if you do not specify it the default of 60 is used.

    + pub storage_resolution: std::option::Option, +} +impl std::fmt::Debug for MetricDatum { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricDatum"); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("timestamp", &self.timestamp); + formatter.field("value", &self.value); + formatter.field("statistic_values", &self.statistic_values); + formatter.field("values", &self.values); + formatter.field("counts", &self.counts); + formatter.field("unit", &self.unit); + formatter.field("storage_resolution", &self.storage_resolution); + formatter.finish() + } +} +/// See [`MetricDatum`](crate::model::MetricDatum) +pub mod metric_datum { + /// A builder for [`MetricDatum`](crate::model::MetricDatum) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) timestamp: std::option::Option, + pub(crate) value: std::option::Option, + pub(crate) statistic_values: std::option::Option, + pub(crate) values: std::option::Option>, + pub(crate) counts: std::option::Option>, + pub(crate) unit: std::option::Option, + pub(crate) storage_resolution: std::option::Option, + } + impl Builder { + ///

    The name of the metric.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

    + pub fn timestamp(mut self, input: smithy_types::Instant) -> Self { + self.timestamp = Some(input); + self + } + pub fn set_timestamp(mut self, input: std::option::Option) -> Self { + self.timestamp = input; + self + } + ///

    The value for the metric.

    + ///

    Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or + /// too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) + /// are not supported.

    + pub fn value(mut self, input: f64) -> Self { + self.value = Some(input); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + ///

    The statistical values for the metric.

    + pub fn statistic_values(mut self, input: crate::model::StatisticSet) -> Self { + self.statistic_values = Some(input); + self + } + pub fn set_statistic_values( + mut self, + input: std::option::Option, + ) -> Self { + self.statistic_values = input; + self + } + pub fn values(mut self, input: impl Into) -> Self { + let mut v = self.values.unwrap_or_default(); + v.push(input.into()); + self.values = Some(v); + self + } + pub fn set_values(mut self, input: std::option::Option>) -> Self { + self.values = input; + self + } + pub fn counts(mut self, input: impl Into) -> Self { + let mut v = self.counts.unwrap_or_default(); + v.push(input.into()); + self.counts = Some(v); + self + } + pub fn set_counts(mut self, input: std::option::Option>) -> Self { + self.counts = input; + self + } + ///

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    + ///

    In + /// a Get operation, this displays the unit that is used for the metric.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + ///

    Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with + /// sub-minute resolution down to one second. + /// Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available + /// only for custom metrics. For more information about high-resolution metrics, + /// see High-Resolution Metrics in the + /// Amazon CloudWatch User Guide. + ///

    + ///

    This field is optional, if you do not specify it the default of 60 is used.

    + pub fn storage_resolution(mut self, input: i32) -> Self { + self.storage_resolution = Some(input); + self + } + pub fn set_storage_resolution(mut self, input: std::option::Option) -> Self { + self.storage_resolution = input; + self + } + /// Consumes the builder and constructs a [`MetricDatum`](crate::model::MetricDatum) + pub fn build(self) -> crate::model::MetricDatum { + crate::model::MetricDatum { + metric_name: self.metric_name, + dimensions: self.dimensions, + timestamp: self.timestamp, + value: self.value, + statistic_values: self.statistic_values, + values: self.values, + counts: self.counts, + unit: self.unit, + storage_resolution: self.storage_resolution, + } + } + } +} +impl MetricDatum { + /// Creates a new builder-style object to manufacture [`MetricDatum`](crate::model::MetricDatum) + pub fn builder() -> crate::model::metric_datum::Builder { + crate::model::metric_datum::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum StandardUnit { + Bits, + BitsSecond, + Bytes, + BytesSecond, + Count, + CountSecond, + Gigabits, + GigabitsSecond, + Gigabytes, + GigabytesSecond, + Kilobits, + KilobitsSecond, + Kilobytes, + KilobytesSecond, + Megabits, + MegabitsSecond, + Megabytes, + MegabytesSecond, + Microseconds, + Milliseconds, + None, + Percent, + Seconds, + Terabits, + TerabitsSecond, + Terabytes, + TerabytesSecond, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for StandardUnit { + fn from(s: &str) -> Self { + match s { + "Bits" => StandardUnit::Bits, + "Bits/Second" => StandardUnit::BitsSecond, + "Bytes" => StandardUnit::Bytes, + "Bytes/Second" => StandardUnit::BytesSecond, + "Count" => StandardUnit::Count, + "Count/Second" => StandardUnit::CountSecond, + "Gigabits" => StandardUnit::Gigabits, + "Gigabits/Second" => StandardUnit::GigabitsSecond, + "Gigabytes" => StandardUnit::Gigabytes, + "Gigabytes/Second" => StandardUnit::GigabytesSecond, + "Kilobits" => StandardUnit::Kilobits, + "Kilobits/Second" => StandardUnit::KilobitsSecond, + "Kilobytes" => StandardUnit::Kilobytes, + "Kilobytes/Second" => StandardUnit::KilobytesSecond, + "Megabits" => StandardUnit::Megabits, + "Megabits/Second" => StandardUnit::MegabitsSecond, + "Megabytes" => StandardUnit::Megabytes, + "Megabytes/Second" => StandardUnit::MegabytesSecond, + "Microseconds" => StandardUnit::Microseconds, + "Milliseconds" => StandardUnit::Milliseconds, + "None" => StandardUnit::None, + "Percent" => StandardUnit::Percent, + "Seconds" => StandardUnit::Seconds, + "Terabits" => StandardUnit::Terabits, + "Terabits/Second" => StandardUnit::TerabitsSecond, + "Terabytes" => StandardUnit::Terabytes, + "Terabytes/Second" => StandardUnit::TerabytesSecond, + other => StandardUnit::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for StandardUnit { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(StandardUnit::from(s)) + } +} +impl StandardUnit { + pub fn as_str(&self) -> &str { + match self { + StandardUnit::Bits => "Bits", + StandardUnit::BitsSecond => "Bits/Second", + StandardUnit::Bytes => "Bytes", + StandardUnit::BytesSecond => "Bytes/Second", + StandardUnit::Count => "Count", + StandardUnit::CountSecond => "Count/Second", + StandardUnit::Gigabits => "Gigabits", + StandardUnit::GigabitsSecond => "Gigabits/Second", + StandardUnit::Gigabytes => "Gigabytes", + StandardUnit::GigabytesSecond => "Gigabytes/Second", + StandardUnit::Kilobits => "Kilobits", + StandardUnit::KilobitsSecond => "Kilobits/Second", + StandardUnit::Kilobytes => "Kilobytes", + StandardUnit::KilobytesSecond => "Kilobytes/Second", + StandardUnit::Megabits => "Megabits", + StandardUnit::MegabitsSecond => "Megabits/Second", + StandardUnit::Megabytes => "Megabytes", + StandardUnit::MegabytesSecond => "Megabytes/Second", + StandardUnit::Microseconds => "Microseconds", + StandardUnit::Milliseconds => "Milliseconds", + StandardUnit::None => "None", + StandardUnit::Percent => "Percent", + StandardUnit::Seconds => "Seconds", + StandardUnit::Terabits => "Terabits", + StandardUnit::TerabitsSecond => "Terabits/Second", + StandardUnit::Terabytes => "Terabytes", + StandardUnit::TerabytesSecond => "Terabytes/Second", + StandardUnit::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for StandardUnit { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    Represents a set of statistics that describes a specific metric.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StatisticSet { + ///

    The number of samples used for the statistic set.

    + pub sample_count: std::option::Option, + ///

    The sum of values for the sample set.

    + pub sum: std::option::Option, + ///

    The minimum value of the sample set.

    + pub minimum: std::option::Option, + ///

    The maximum value of the sample set.

    + pub maximum: std::option::Option, +} +impl std::fmt::Debug for StatisticSet { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StatisticSet"); + formatter.field("sample_count", &self.sample_count); + formatter.field("sum", &self.sum); + formatter.field("minimum", &self.minimum); + formatter.field("maximum", &self.maximum); + formatter.finish() + } +} +/// See [`StatisticSet`](crate::model::StatisticSet) +pub mod statistic_set { + /// A builder for [`StatisticSet`](crate::model::StatisticSet) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) sample_count: std::option::Option, + pub(crate) sum: std::option::Option, + pub(crate) minimum: std::option::Option, + pub(crate) maximum: std::option::Option, + } + impl Builder { + ///

    The number of samples used for the statistic set.

    + pub fn sample_count(mut self, input: f64) -> Self { + self.sample_count = Some(input); + self + } + pub fn set_sample_count(mut self, input: std::option::Option) -> Self { + self.sample_count = input; + self + } + ///

    The sum of values for the sample set.

    + pub fn sum(mut self, input: f64) -> Self { + self.sum = Some(input); + self + } + pub fn set_sum(mut self, input: std::option::Option) -> Self { + self.sum = input; + self + } + ///

    The minimum value of the sample set.

    + pub fn minimum(mut self, input: f64) -> Self { + self.minimum = Some(input); + self + } + pub fn set_minimum(mut self, input: std::option::Option) -> Self { + self.minimum = input; + self + } + ///

    The maximum value of the sample set.

    + pub fn maximum(mut self, input: f64) -> Self { + self.maximum = Some(input); + self + } + pub fn set_maximum(mut self, input: std::option::Option) -> Self { + self.maximum = input; + self + } + /// Consumes the builder and constructs a [`StatisticSet`](crate::model::StatisticSet) + pub fn build(self) -> crate::model::StatisticSet { + crate::model::StatisticSet { + sample_count: self.sample_count, + sum: self.sum, + minimum: self.minimum, + maximum: self.maximum, + } + } + } +} +impl StatisticSet { + /// Creates a new builder-style object to manufacture [`StatisticSet`](crate::model::StatisticSet) + pub fn builder() -> crate::model::statistic_set::Builder { + crate::model::statistic_set::Builder::default() + } +} + +///

    A dimension is a name/value pair that is part of the identity of a metric. You +/// can assign up to 10 dimensions to a metric. Because dimensions are part of the unique +/// identifier for a metric, whenever you add a unique name/value pair to one of +/// your metrics, you are creating a new variation of that metric.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Dimension { + ///

    The name of the dimension. Dimension names cannot contain blank spaces or non-ASCII + /// characters.

    + pub name: std::option::Option, + ///

    The value of the dimension. Dimension values cannot contain blank spaces + /// or non-ASCII characters.

    + pub value: std::option::Option, +} +impl std::fmt::Debug for Dimension { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Dimension"); + formatter.field("name", &self.name); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`Dimension`](crate::model::Dimension) +pub mod dimension { + /// A builder for [`Dimension`](crate::model::Dimension) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

    The name of the dimension. Dimension names cannot contain blank spaces or non-ASCII + /// characters.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The value of the dimension. Dimension values cannot contain blank spaces + /// or non-ASCII characters.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`Dimension`](crate::model::Dimension) + pub fn build(self) -> crate::model::Dimension { + crate::model::Dimension { + name: self.name, + value: self.value, + } + } + } +} +impl Dimension { + /// Creates a new builder-style object to manufacture [`Dimension`](crate::model::Dimension) + pub fn builder() -> crate::model::dimension::Builder { + crate::model::dimension::Builder::default() + } +} + +///

    This structure is used in both GetMetricData and PutMetricAlarm. The supported +/// use of this structure is different for those two operations.

    +///

    When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving +/// a batch set of data for one metric, or is performing a math expression on metric data. A +/// single GetMetricData call can include up to 500 MetricDataQuery +/// structures.

    +///

    When used in PutMetricAlarm, it enables you to create an alarm based on a +/// metric math expression. Each MetricDataQuery in the array specifies either +/// a metric to retrieve, or a math expression to be performed on retrieved metrics. A +/// single PutMetricAlarm call can include up to 20 +/// MetricDataQuery structures in the array. The 20 structures can include +/// as many as 10 structures that contain a MetricStat parameter to retrieve a +/// metric, and as many as 10 structures that contain the Expression parameter +/// to perform a math expression. Of those Expression structures, one must have True +/// as the value for ReturnData. The result of this expression is the value the alarm watches.

    +///

    Any expression used in a PutMetricAlarm +/// operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User +/// Guide.

    +///

    Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData +/// operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricDataQuery { + ///

    A short name used to tie this object to the results in the response. This name must be + /// unique within a single call to GetMetricData. If you are performing math + /// expressions on this set of data, this name represents that data and can serve as a + /// variable in the mathematical expression. The valid characters are letters, numbers, and + /// underscore. The first character must be a lowercase letter.

    + pub id: std::option::Option, + ///

    The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric + /// and not performing a math expression on returned data.

    + ///

    Within one MetricDataQuery object, you must specify either + /// Expression or MetricStat but not both.

    + pub metric_stat: std::option::Option, + ///

    The math expression to be performed on the returned data, if this object is performing a math expression. This expression + /// can use the Id of the other metrics to refer to those metrics, and can also use the Id of other + /// expressions to use the result of those expressions. For more information about metric math expressions, see + /// Metric Math Syntax and Functions in the + /// Amazon CloudWatch User Guide.

    + ///

    Within each MetricDataQuery object, you must specify either + /// Expression or MetricStat but not both.

    + pub expression: std::option::Option, + ///

    A human-readable label for this metric or expression. This is especially useful + /// if this is an expression, so that you know + /// what the value represents. If the metric or expression is shown in a + /// CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch + /// generates a default.

    + ///

    You can put dynamic expressions into a label, so that it is more descriptive. + /// For more information, see Using Dynamic Labels.

    + pub label: std::option::Option, + ///

    When used in GetMetricData, this option indicates whether to return the + /// timestamps and raw data values of this metric. If you are performing this call just to + /// do math expressions and do not also need the raw data returned, you can specify + /// False. If you omit this, the default of True is + /// used.

    + ///

    When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all + /// other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

    + pub return_data: std::option::Option, + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a + /// period can be as short as one minute (60 seconds) and must be a multiple of 60. + /// For high-resolution metrics that are collected at intervals of less than one minute, + /// the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics + /// stored by a PutMetricData operation that includes a StorageResolution of 1 second.

    + pub period: std::option::Option, +} +impl std::fmt::Debug for MetricDataQuery { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricDataQuery"); + formatter.field("id", &self.id); + formatter.field("metric_stat", &self.metric_stat); + formatter.field("expression", &self.expression); + formatter.field("label", &self.label); + formatter.field("return_data", &self.return_data); + formatter.field("period", &self.period); + formatter.finish() + } +} +/// See [`MetricDataQuery`](crate::model::MetricDataQuery) +pub mod metric_data_query { + /// A builder for [`MetricDataQuery`](crate::model::MetricDataQuery) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) id: std::option::Option, + pub(crate) metric_stat: std::option::Option, + pub(crate) expression: std::option::Option, + pub(crate) label: std::option::Option, + pub(crate) return_data: std::option::Option, + pub(crate) period: std::option::Option, + } + impl Builder { + ///

    A short name used to tie this object to the results in the response. This name must be + /// unique within a single call to GetMetricData. If you are performing math + /// expressions on this set of data, this name represents that data and can serve as a + /// variable in the mathematical expression. The valid characters are letters, numbers, and + /// underscore. The first character must be a lowercase letter.

    + pub fn id(mut self, input: impl Into) -> Self { + self.id = Some(input.into()); + self + } + pub fn set_id(mut self, input: std::option::Option) -> Self { + self.id = input; + self + } + ///

    The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric + /// and not performing a math expression on returned data.

    + ///

    Within one MetricDataQuery object, you must specify either + /// Expression or MetricStat but not both.

    + pub fn metric_stat(mut self, input: crate::model::MetricStat) -> Self { + self.metric_stat = Some(input); + self + } + pub fn set_metric_stat( + mut self, + input: std::option::Option, + ) -> Self { + self.metric_stat = input; + self + } + ///

    The math expression to be performed on the returned data, if this object is performing a math expression. This expression + /// can use the Id of the other metrics to refer to those metrics, and can also use the Id of other + /// expressions to use the result of those expressions. For more information about metric math expressions, see + /// Metric Math Syntax and Functions in the + /// Amazon CloudWatch User Guide.

    + ///

    Within each MetricDataQuery object, you must specify either + /// Expression or MetricStat but not both.

    + pub fn expression(mut self, input: impl Into) -> Self { + self.expression = Some(input.into()); + self + } + pub fn set_expression(mut self, input: std::option::Option) -> Self { + self.expression = input; + self + } + ///

    A human-readable label for this metric or expression. This is especially useful + /// if this is an expression, so that you know + /// what the value represents. If the metric or expression is shown in a + /// CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch + /// generates a default.

    + ///

    You can put dynamic expressions into a label, so that it is more descriptive. + /// For more information, see Using Dynamic Labels.

    + pub fn label(mut self, input: impl Into) -> Self { + self.label = Some(input.into()); + self + } + pub fn set_label(mut self, input: std::option::Option) -> Self { + self.label = input; + self + } + ///

    When used in GetMetricData, this option indicates whether to return the + /// timestamps and raw data values of this metric. If you are performing this call just to + /// do math expressions and do not also need the raw data returned, you can specify + /// False. If you omit this, the default of True is + /// used.

    + ///

    When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all + /// other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

    + pub fn return_data(mut self, input: bool) -> Self { + self.return_data = Some(input); + self + } + pub fn set_return_data(mut self, input: std::option::Option) -> Self { + self.return_data = input; + self + } + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a + /// period can be as short as one minute (60 seconds) and must be a multiple of 60. + /// For high-resolution metrics that are collected at intervals of less than one minute, + /// the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics + /// stored by a PutMetricData operation that includes a StorageResolution of 1 second.

    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + /// Consumes the builder and constructs a [`MetricDataQuery`](crate::model::MetricDataQuery) + pub fn build(self) -> crate::model::MetricDataQuery { + crate::model::MetricDataQuery { + id: self.id, + metric_stat: self.metric_stat, + expression: self.expression, + label: self.label, + return_data: self.return_data, + period: self.period, + } + } + } +} +impl MetricDataQuery { + /// Creates a new builder-style object to manufacture [`MetricDataQuery`](crate::model::MetricDataQuery) + pub fn builder() -> crate::model::metric_data_query::Builder { + crate::model::metric_data_query::Builder::default() + } +} + +///

    This structure defines the metric to be returned, along with the statistics, period, and units.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricStat { + ///

    The metric to return, including the metric name, namespace, and dimensions.

    + pub metric: std::option::Option, + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can + /// be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected + /// at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics + /// are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    + ///

    If the StartTime parameter specifies a time stamp that is greater than + /// 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    + ///
      + ///
    • + ///

      Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

      + ///
    • + ///
    + pub period: std::option::Option, + ///

    The statistic to return. It can include any CloudWatch statistic or extended statistic.

    + pub stat: std::option::Option, + ///

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    + ///

    In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified + /// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. + /// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    + pub unit: std::option::Option, +} +impl std::fmt::Debug for MetricStat { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricStat"); + formatter.field("metric", &self.metric); + formatter.field("period", &self.period); + formatter.field("stat", &self.stat); + formatter.field("unit", &self.unit); + formatter.finish() + } +} +/// See [`MetricStat`](crate::model::MetricStat) +pub mod metric_stat { + /// A builder for [`MetricStat`](crate::model::MetricStat) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric: std::option::Option, + pub(crate) period: std::option::Option, + pub(crate) stat: std::option::Option, + pub(crate) unit: std::option::Option, + } + impl Builder { + ///

    The metric to return, including the metric name, namespace, and dimensions.

    + pub fn metric(mut self, input: crate::model::Metric) -> Self { + self.metric = Some(input); + self + } + pub fn set_metric(mut self, input: std::option::Option) -> Self { + self.metric = input; + self + } + ///

    The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can + /// be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected + /// at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics + /// are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

    + ///

    If the StartTime parameter specifies a time stamp that is greater than + /// 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

    + ///
      + ///
    • + ///

      Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

      + ///
    • + ///
    • + ///

      Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

      + ///
    • + ///
    • + ///

      Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

      + ///
    • + ///
    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + ///

    The statistic to return. It can include any CloudWatch statistic or extended statistic.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.stat = Some(input.into()); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.stat = input; + self + } + ///

    When you are using a Put operation, this defines what unit you want to use when storing the metric.

    + ///

    In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified + /// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. + /// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + /// Consumes the builder and constructs a [`MetricStat`](crate::model::MetricStat) + pub fn build(self) -> crate::model::MetricStat { + crate::model::MetricStat { + metric: self.metric, + period: self.period, + stat: self.stat, + unit: self.unit, + } + } + } +} +impl MetricStat { + /// Creates a new builder-style object to manufacture [`MetricStat`](crate::model::MetricStat) + pub fn builder() -> crate::model::metric_stat::Builder { + crate::model::metric_stat::Builder::default() + } +} + +///

    Represents a specific metric.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Metric { + ///

    The namespace of the metric.

    + pub namespace: std::option::Option, + ///

    The name of the metric. This is a required field.

    + pub metric_name: std::option::Option, + ///

    The dimensions for the metric.

    + pub dimensions: std::option::Option>, +} +impl std::fmt::Debug for Metric { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Metric"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.finish() + } +} +/// See [`Metric`](crate::model::Metric) +pub mod metric { + /// A builder for [`Metric`](crate::model::Metric) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + } + impl Builder { + ///

    The namespace of the metric.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The name of the metric. This is a required field.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + /// Consumes the builder and constructs a [`Metric`](crate::model::Metric) + pub fn build(self) -> crate::model::Metric { + crate::model::Metric { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + } + } + } +} +impl Metric { + /// Creates a new builder-style object to manufacture [`Metric`](crate::model::Metric) + pub fn builder() -> crate::model::metric::Builder { + crate::model::metric::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ComparisonOperator { + GreaterThanOrEqualToThreshold, + GreaterThanThreshold, + GreaterThanUpperThreshold, + LessThanLowerOrGreaterThanUpperThreshold, + LessThanLowerThreshold, + LessThanOrEqualToThreshold, + LessThanThreshold, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ComparisonOperator { + fn from(s: &str) -> Self { + match s { + "GreaterThanOrEqualToThreshold" => ComparisonOperator::GreaterThanOrEqualToThreshold, + "GreaterThanThreshold" => ComparisonOperator::GreaterThanThreshold, + "GreaterThanUpperThreshold" => ComparisonOperator::GreaterThanUpperThreshold, + "LessThanLowerOrGreaterThanUpperThreshold" => { + ComparisonOperator::LessThanLowerOrGreaterThanUpperThreshold + } + "LessThanLowerThreshold" => ComparisonOperator::LessThanLowerThreshold, + "LessThanOrEqualToThreshold" => ComparisonOperator::LessThanOrEqualToThreshold, + "LessThanThreshold" => ComparisonOperator::LessThanThreshold, + other => ComparisonOperator::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ComparisonOperator { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ComparisonOperator::from(s)) + } +} +impl ComparisonOperator { + pub fn as_str(&self) -> &str { + match self { + ComparisonOperator::GreaterThanOrEqualToThreshold => "GreaterThanOrEqualToThreshold", + ComparisonOperator::GreaterThanThreshold => "GreaterThanThreshold", + ComparisonOperator::GreaterThanUpperThreshold => "GreaterThanUpperThreshold", + ComparisonOperator::LessThanLowerOrGreaterThanUpperThreshold => { + "LessThanLowerOrGreaterThanUpperThreshold" + } + ComparisonOperator::LessThanLowerThreshold => "LessThanLowerThreshold", + ComparisonOperator::LessThanOrEqualToThreshold => "LessThanOrEqualToThreshold", + ComparisonOperator::LessThanThreshold => "LessThanThreshold", + ComparisonOperator::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ComparisonOperator { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum Statistic { + Average, + Maximum, + Minimum, + SampleCount, + Sum, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for Statistic { + fn from(s: &str) -> Self { + match s { + "Average" => Statistic::Average, + "Maximum" => Statistic::Maximum, + "Minimum" => Statistic::Minimum, + "SampleCount" => Statistic::SampleCount, + "Sum" => Statistic::Sum, + other => Statistic::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for Statistic { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(Statistic::from(s)) + } +} +impl Statistic { + pub fn as_str(&self) -> &str { + match self { + Statistic::Average => "Average", + Statistic::Maximum => "Maximum", + Statistic::Minimum => "Minimum", + Statistic::SampleCount => "SampleCount", + Statistic::Sum => "Sum", + Statistic::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for Statistic { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An error or warning for the operation.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DashboardValidationMessage { + ///

    The data path related to the message.

    + pub data_path: std::option::Option, + ///

    A message describing the error or warning.

    + pub message: std::option::Option, +} +impl std::fmt::Debug for DashboardValidationMessage { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DashboardValidationMessage"); + formatter.field("data_path", &self.data_path); + formatter.field("message", &self.message); + formatter.finish() + } +} +/// See [`DashboardValidationMessage`](crate::model::DashboardValidationMessage) +pub mod dashboard_validation_message { + /// A builder for [`DashboardValidationMessage`](crate::model::DashboardValidationMessage) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) data_path: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The data path related to the message.

    + pub fn data_path(mut self, input: impl Into) -> Self { + self.data_path = Some(input.into()); + self + } + pub fn set_data_path(mut self, input: std::option::Option) -> Self { + self.data_path = input; + self + } + ///

    A message describing the error or warning.

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`DashboardValidationMessage`](crate::model::DashboardValidationMessage) + pub fn build(self) -> crate::model::DashboardValidationMessage { + crate::model::DashboardValidationMessage { + data_path: self.data_path, + message: self.message, + } + } + } +} +impl DashboardValidationMessage { + /// Creates a new builder-style object to manufacture [`DashboardValidationMessage`](crate::model::DashboardValidationMessage) + pub fn builder() -> crate::model::dashboard_validation_message::Builder { + crate::model::dashboard_validation_message::Builder::default() + } +} + +///

    The configuration specifies details about how the anomaly detection model is to be trained, +/// including time ranges to exclude from use for training the model and the time zone to +/// use for the metric.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AnomalyDetectorConfiguration { + ///

    An array of time ranges to exclude from use when the anomaly detection model is trained. Use + /// this to make sure that events that could cause unusual values for the metric, such as + /// deployments, aren't used when CloudWatch creates the model.

    + pub excluded_time_ranges: std::option::Option>, + ///

    The time zone to use for the metric. This is useful to enable the model to automatically + /// account for daylight savings time changes if the metric is sensitive to such time + /// changes.

    + ///

    To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, + /// see tz database.

    + pub metric_timezone: std::option::Option, +} +impl std::fmt::Debug for AnomalyDetectorConfiguration { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AnomalyDetectorConfiguration"); + formatter.field("excluded_time_ranges", &self.excluded_time_ranges); + formatter.field("metric_timezone", &self.metric_timezone); + formatter.finish() + } +} +/// See [`AnomalyDetectorConfiguration`](crate::model::AnomalyDetectorConfiguration) +pub mod anomaly_detector_configuration { + /// A builder for [`AnomalyDetectorConfiguration`](crate::model::AnomalyDetectorConfiguration) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) excluded_time_ranges: std::option::Option>, + pub(crate) metric_timezone: std::option::Option, + } + impl Builder { + pub fn excluded_time_ranges(mut self, input: impl Into) -> Self { + let mut v = self.excluded_time_ranges.unwrap_or_default(); + v.push(input.into()); + self.excluded_time_ranges = Some(v); + self + } + pub fn set_excluded_time_ranges( + mut self, + input: std::option::Option>, + ) -> Self { + self.excluded_time_ranges = input; + self + } + ///

    The time zone to use for the metric. This is useful to enable the model to automatically + /// account for daylight savings time changes if the metric is sensitive to such time + /// changes.

    + ///

    To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, + /// see tz database.

    + pub fn metric_timezone(mut self, input: impl Into) -> Self { + self.metric_timezone = Some(input.into()); + self + } + pub fn set_metric_timezone( + mut self, + input: std::option::Option, + ) -> Self { + self.metric_timezone = input; + self + } + /// Consumes the builder and constructs a [`AnomalyDetectorConfiguration`](crate::model::AnomalyDetectorConfiguration) + pub fn build(self) -> crate::model::AnomalyDetectorConfiguration { + crate::model::AnomalyDetectorConfiguration { + excluded_time_ranges: self.excluded_time_ranges, + metric_timezone: self.metric_timezone, + } + } + } +} +impl AnomalyDetectorConfiguration { + /// Creates a new builder-style object to manufacture [`AnomalyDetectorConfiguration`](crate::model::AnomalyDetectorConfiguration) + pub fn builder() -> crate::model::anomaly_detector_configuration::Builder { + crate::model::anomaly_detector_configuration::Builder::default() + } +} + +///

    Specifies one range of days or times to exclude from use for training an +/// anomaly detection model.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Range { + ///

    The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub start_time: std::option::Option, + ///

    The end time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub end_time: std::option::Option, +} +impl std::fmt::Debug for Range { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Range"); + formatter.field("start_time", &self.start_time); + formatter.field("end_time", &self.end_time); + formatter.finish() + } +} +/// See [`Range`](crate::model::Range) +pub mod range { + /// A builder for [`Range`](crate::model::Range) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) start_time: std::option::Option, + pub(crate) end_time: std::option::Option, + } + impl Builder { + ///

    The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn start_time(mut self, input: smithy_types::Instant) -> Self { + self.start_time = Some(input); + self + } + pub fn set_start_time(mut self, input: std::option::Option) -> Self { + self.start_time = input; + self + } + ///

    The end time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, + /// 2019-07-01T23:59:59.

    + pub fn end_time(mut self, input: smithy_types::Instant) -> Self { + self.end_time = Some(input); + self + } + pub fn set_end_time(mut self, input: std::option::Option) -> Self { + self.end_time = input; + self + } + /// Consumes the builder and constructs a [`Range`](crate::model::Range) + pub fn build(self) -> crate::model::Range { + crate::model::Range { + start_time: self.start_time, + end_time: self.end_time, + } + } + } +} +impl Range { + /// Creates a new builder-style object to manufacture [`Range`](crate::model::Range) + pub fn builder() -> crate::model::range::Builder { + crate::model::range::Builder::default() + } +} + +///

    This structure contains the configuration information about one metric stream.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricStreamEntry { + ///

    The ARN of the metric stream.

    + pub arn: std::option::Option, + ///

    The date that the metric stream was originally created.

    + pub creation_date: std::option::Option, + ///

    The date that the configuration of this metric stream was most recently updated.

    + pub last_update_date: std::option::Option, + ///

    The name of the metric stream.

    + pub name: std::option::Option, + ///

    The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.

    + pub firehose_arn: std::option::Option, + ///

    The current state of this stream. Valid values are running and stopped.

    + pub state: std::option::Option, + ///

    The output format of this metric stream. Valid values are + /// json + /// and opentelemetry0.7.

    + pub output_format: std::option::Option, +} +impl std::fmt::Debug for MetricStreamEntry { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricStreamEntry"); + formatter.field("arn", &self.arn); + formatter.field("creation_date", &self.creation_date); + formatter.field("last_update_date", &self.last_update_date); + formatter.field("name", &self.name); + formatter.field("firehose_arn", &self.firehose_arn); + formatter.field("state", &self.state); + formatter.field("output_format", &self.output_format); + formatter.finish() + } +} +/// See [`MetricStreamEntry`](crate::model::MetricStreamEntry) +pub mod metric_stream_entry { + /// A builder for [`MetricStreamEntry`](crate::model::MetricStreamEntry) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) arn: std::option::Option, + pub(crate) creation_date: std::option::Option, + pub(crate) last_update_date: std::option::Option, + pub(crate) name: std::option::Option, + pub(crate) firehose_arn: std::option::Option, + pub(crate) state: std::option::Option, + pub(crate) output_format: std::option::Option, + } + impl Builder { + ///

    The ARN of the metric stream.

    + pub fn arn(mut self, input: impl Into) -> Self { + self.arn = Some(input.into()); + self + } + pub fn set_arn(mut self, input: std::option::Option) -> Self { + self.arn = input; + self + } + ///

    The date that the metric stream was originally created.

    + pub fn creation_date(mut self, input: smithy_types::Instant) -> Self { + self.creation_date = Some(input); + self + } + pub fn set_creation_date( + mut self, + input: std::option::Option, + ) -> Self { + self.creation_date = input; + self + } + ///

    The date that the configuration of this metric stream was most recently updated.

    + pub fn last_update_date(mut self, input: smithy_types::Instant) -> Self { + self.last_update_date = Some(input); + self + } + pub fn set_last_update_date( + mut self, + input: std::option::Option, + ) -> Self { + self.last_update_date = input; + self + } + ///

    The name of the metric stream.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.

    + pub fn firehose_arn(mut self, input: impl Into) -> Self { + self.firehose_arn = Some(input.into()); + self + } + pub fn set_firehose_arn(mut self, input: std::option::Option) -> Self { + self.firehose_arn = input; + self + } + ///

    The current state of this stream. Valid values are running and stopped.

    + pub fn state(mut self, input: impl Into) -> Self { + self.state = Some(input.into()); + self + } + pub fn set_state(mut self, input: std::option::Option) -> Self { + self.state = input; + self + } + ///

    The output format of this metric stream. Valid values are + /// json + /// and opentelemetry0.7.

    + pub fn output_format(mut self, input: crate::model::MetricStreamOutputFormat) -> Self { + self.output_format = Some(input); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.output_format = input; + self + } + /// Consumes the builder and constructs a [`MetricStreamEntry`](crate::model::MetricStreamEntry) + pub fn build(self) -> crate::model::MetricStreamEntry { + crate::model::MetricStreamEntry { + arn: self.arn, + creation_date: self.creation_date, + last_update_date: self.last_update_date, + name: self.name, + firehose_arn: self.firehose_arn, + state: self.state, + output_format: self.output_format, + } + } + } +} +impl MetricStreamEntry { + /// Creates a new builder-style object to manufacture [`MetricStreamEntry`](crate::model::MetricStreamEntry) + pub fn builder() -> crate::model::metric_stream_entry::Builder { + crate::model::metric_stream_entry::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum RecentlyActive { + Pt3H, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for RecentlyActive { + fn from(s: &str) -> Self { + match s { + "PT3H" => RecentlyActive::Pt3H, + other => RecentlyActive::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for RecentlyActive { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(RecentlyActive::from(s)) + } +} +impl RecentlyActive { + pub fn as_str(&self) -> &str { + match self { + RecentlyActive::Pt3H => "PT3H", + RecentlyActive::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for RecentlyActive { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    Represents filters for a dimension.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DimensionFilter { + ///

    The dimension name to be matched.

    + pub name: std::option::Option, + ///

    The value of the dimension to be matched.

    + pub value: std::option::Option, +} +impl std::fmt::Debug for DimensionFilter { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DimensionFilter"); + formatter.field("name", &self.name); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`DimensionFilter`](crate::model::DimensionFilter) +pub mod dimension_filter { + /// A builder for [`DimensionFilter`](crate::model::DimensionFilter) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

    The dimension name to be matched.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The value of the dimension to be matched.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`DimensionFilter`](crate::model::DimensionFilter) + pub fn build(self) -> crate::model::DimensionFilter { + crate::model::DimensionFilter { + name: self.name, + value: self.value, + } + } + } +} +impl DimensionFilter { + /// Creates a new builder-style object to manufacture [`DimensionFilter`](crate::model::DimensionFilter) + pub fn builder() -> crate::model::dimension_filter::Builder { + crate::model::dimension_filter::Builder::default() + } +} + +///

    Represents a specific dashboard.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DashboardEntry { + ///

    The name of the dashboard.

    + pub dashboard_name: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the dashboard.

    + pub dashboard_arn: std::option::Option, + ///

    The time stamp of when the dashboard was last modified, either by an API call or + /// through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

    + pub last_modified: std::option::Option, + ///

    The size of the dashboard, in bytes.

    + pub size: i64, +} +impl std::fmt::Debug for DashboardEntry { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DashboardEntry"); + formatter.field("dashboard_name", &self.dashboard_name); + formatter.field("dashboard_arn", &self.dashboard_arn); + formatter.field("last_modified", &self.last_modified); + formatter.field("size", &self.size); + formatter.finish() + } +} +/// See [`DashboardEntry`](crate::model::DashboardEntry) +pub mod dashboard_entry { + /// A builder for [`DashboardEntry`](crate::model::DashboardEntry) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_name: std::option::Option, + pub(crate) dashboard_arn: std::option::Option, + pub(crate) last_modified: std::option::Option, + pub(crate) size: std::option::Option, + } + impl Builder { + ///

    The name of the dashboard.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.dashboard_name = Some(input.into()); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_name = input; + self + } + ///

    The Amazon Resource Name (ARN) of the dashboard.

    + pub fn dashboard_arn(mut self, input: impl Into) -> Self { + self.dashboard_arn = Some(input.into()); + self + } + pub fn set_dashboard_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_arn = input; + self + } + ///

    The time stamp of when the dashboard was last modified, either by an API call or + /// through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

    + pub fn last_modified(mut self, input: smithy_types::Instant) -> Self { + self.last_modified = Some(input); + self + } + pub fn set_last_modified( + mut self, + input: std::option::Option, + ) -> Self { + self.last_modified = input; + self + } + ///

    The size of the dashboard, in bytes.

    + pub fn size(mut self, input: i64) -> Self { + self.size = Some(input); + self + } + pub fn set_size(mut self, input: std::option::Option) -> Self { + self.size = input; + self + } + /// Consumes the builder and constructs a [`DashboardEntry`](crate::model::DashboardEntry) + pub fn build(self) -> crate::model::DashboardEntry { + crate::model::DashboardEntry { + dashboard_name: self.dashboard_name, + dashboard_arn: self.dashboard_arn, + last_modified: self.last_modified, + size: self.size.unwrap_or_default(), + } + } + } +} +impl DashboardEntry { + /// Creates a new builder-style object to manufacture [`DashboardEntry`](crate::model::DashboardEntry) + pub fn builder() -> crate::model::dashboard_entry::Builder { + crate::model::dashboard_entry::Builder::default() + } +} + +///

    Encapsulates the statistical data that CloudWatch computes from metric data.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Datapoint { + ///

    The time stamp used for the data point.

    + pub timestamp: std::option::Option, + ///

    The number of metric values that contributed to the aggregate value of this + /// data point.

    + pub sample_count: std::option::Option, + ///

    The average of the metric values that correspond to the data point.

    + pub average: std::option::Option, + ///

    The sum of the metric values for the data point.

    + pub sum: std::option::Option, + ///

    The minimum metric value for the data point.

    + pub minimum: std::option::Option, + ///

    The maximum metric value for the data point.

    + pub maximum: std::option::Option, + ///

    The standard unit for the data point.

    + pub unit: std::option::Option, + ///

    The percentile statistic for the data point.

    + pub extended_statistics: + std::option::Option>, +} +impl std::fmt::Debug for Datapoint { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Datapoint"); + formatter.field("timestamp", &self.timestamp); + formatter.field("sample_count", &self.sample_count); + formatter.field("average", &self.average); + formatter.field("sum", &self.sum); + formatter.field("minimum", &self.minimum); + formatter.field("maximum", &self.maximum); + formatter.field("unit", &self.unit); + formatter.field("extended_statistics", &self.extended_statistics); + formatter.finish() + } +} +/// See [`Datapoint`](crate::model::Datapoint) +pub mod datapoint { + /// A builder for [`Datapoint`](crate::model::Datapoint) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) timestamp: std::option::Option, + pub(crate) sample_count: std::option::Option, + pub(crate) average: std::option::Option, + pub(crate) sum: std::option::Option, + pub(crate) minimum: std::option::Option, + pub(crate) maximum: std::option::Option, + pub(crate) unit: std::option::Option, + pub(crate) extended_statistics: + std::option::Option>, + } + impl Builder { + ///

    The time stamp used for the data point.

    + pub fn timestamp(mut self, input: smithy_types::Instant) -> Self { + self.timestamp = Some(input); + self + } + pub fn set_timestamp(mut self, input: std::option::Option) -> Self { + self.timestamp = input; + self + } + ///

    The number of metric values that contributed to the aggregate value of this + /// data point.

    + pub fn sample_count(mut self, input: f64) -> Self { + self.sample_count = Some(input); + self + } + pub fn set_sample_count(mut self, input: std::option::Option) -> Self { + self.sample_count = input; + self + } + ///

    The average of the metric values that correspond to the data point.

    + pub fn average(mut self, input: f64) -> Self { + self.average = Some(input); + self + } + pub fn set_average(mut self, input: std::option::Option) -> Self { + self.average = input; + self + } + ///

    The sum of the metric values for the data point.

    + pub fn sum(mut self, input: f64) -> Self { + self.sum = Some(input); + self + } + pub fn set_sum(mut self, input: std::option::Option) -> Self { + self.sum = input; + self + } + ///

    The minimum metric value for the data point.

    + pub fn minimum(mut self, input: f64) -> Self { + self.minimum = Some(input); + self + } + pub fn set_minimum(mut self, input: std::option::Option) -> Self { + self.minimum = input; + self + } + ///

    The maximum metric value for the data point.

    + pub fn maximum(mut self, input: f64) -> Self { + self.maximum = Some(input); + self + } + pub fn set_maximum(mut self, input: std::option::Option) -> Self { + self.maximum = input; + self + } + ///

    The standard unit for the data point.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + pub fn extended_statistics( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.extended_statistics.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.extended_statistics = Some(hash_map); + self + } + pub fn set_extended_statistics( + mut self, + input: std::option::Option>, + ) -> Self { + self.extended_statistics = input; + self + } + /// Consumes the builder and constructs a [`Datapoint`](crate::model::Datapoint) + pub fn build(self) -> crate::model::Datapoint { + crate::model::Datapoint { + timestamp: self.timestamp, + sample_count: self.sample_count, + average: self.average, + sum: self.sum, + minimum: self.minimum, + maximum: self.maximum, + unit: self.unit, + extended_statistics: self.extended_statistics, + } + } + } +} +impl Datapoint { + /// Creates a new builder-style object to manufacture [`Datapoint`](crate::model::Datapoint) + pub fn builder() -> crate::model::datapoint::Builder { + crate::model::datapoint::Builder::default() + } +} + +///

    A message returned by the GetMetricDataAPI, including a code and a description.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MessageData { + ///

    The error code or status code associated with the message.

    + pub code: std::option::Option, + ///

    The message text.

    + pub value: std::option::Option, +} +impl std::fmt::Debug for MessageData { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MessageData"); + formatter.field("code", &self.code); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`MessageData`](crate::model::MessageData) +pub mod message_data { + /// A builder for [`MessageData`](crate::model::MessageData) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) code: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

    The error code or status code associated with the message.

    + pub fn code(mut self, input: impl Into) -> Self { + self.code = Some(input.into()); + self + } + pub fn set_code(mut self, input: std::option::Option) -> Self { + self.code = input; + self + } + ///

    The message text.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`MessageData`](crate::model::MessageData) + pub fn build(self) -> crate::model::MessageData { + crate::model::MessageData { + code: self.code, + value: self.value, + } + } + } +} +impl MessageData { + /// Creates a new builder-style object to manufacture [`MessageData`](crate::model::MessageData) + pub fn builder() -> crate::model::message_data::Builder { + crate::model::message_data::Builder::default() + } +} + +///

    A GetMetricData call returns an array of MetricDataResult +/// structures. Each of these structures includes the data points for that metric, along +/// with the timestamps of those data points and other identifying information.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricDataResult { + ///

    The short name you specified to represent this metric.

    + pub id: std::option::Option, + ///

    The human-readable label associated with the data.

    + pub label: std::option::Option, + ///

    The timestamps for the data points, formatted in Unix timestamp format. The number of + /// timestamps always matches the number of values and the value for Timestamps[x] is + /// Values[x].

    + pub timestamps: std::option::Option>, + ///

    The data points for the metric corresponding to Timestamps. The number of + /// values always matches the number of timestamps and the timestamp for Values[x] is + /// Timestamps[x].

    + pub values: std::option::Option>, + ///

    The status of the returned data. Complete indicates that all data points in the requested time range were returned. + /// PartialData means that an incomplete set of data points were returned. + /// You can use the NextToken value that was returned and repeat your request to get more data points. + /// NextToken is not returned if you are performing a math expression. InternalError + /// indicates that an error occurred. Retry your request using NextToken, if present.

    + pub status_code: std::option::Option, + ///

    A list of messages with additional information about the data returned.

    + pub messages: std::option::Option>, +} +impl std::fmt::Debug for MetricDataResult { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricDataResult"); + formatter.field("id", &self.id); + formatter.field("label", &self.label); + formatter.field("timestamps", &self.timestamps); + formatter.field("values", &self.values); + formatter.field("status_code", &self.status_code); + formatter.field("messages", &self.messages); + formatter.finish() + } +} +/// See [`MetricDataResult`](crate::model::MetricDataResult) +pub mod metric_data_result { + /// A builder for [`MetricDataResult`](crate::model::MetricDataResult) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) id: std::option::Option, + pub(crate) label: std::option::Option, + pub(crate) timestamps: std::option::Option>, + pub(crate) values: std::option::Option>, + pub(crate) status_code: std::option::Option, + pub(crate) messages: std::option::Option>, + } + impl Builder { + ///

    The short name you specified to represent this metric.

    + pub fn id(mut self, input: impl Into) -> Self { + self.id = Some(input.into()); + self + } + pub fn set_id(mut self, input: std::option::Option) -> Self { + self.id = input; + self + } + ///

    The human-readable label associated with the data.

    + pub fn label(mut self, input: impl Into) -> Self { + self.label = Some(input.into()); + self + } + pub fn set_label(mut self, input: std::option::Option) -> Self { + self.label = input; + self + } + pub fn timestamps(mut self, input: impl Into) -> Self { + let mut v = self.timestamps.unwrap_or_default(); + v.push(input.into()); + self.timestamps = Some(v); + self + } + pub fn set_timestamps( + mut self, + input: std::option::Option>, + ) -> Self { + self.timestamps = input; + self + } + pub fn values(mut self, input: impl Into) -> Self { + let mut v = self.values.unwrap_or_default(); + v.push(input.into()); + self.values = Some(v); + self + } + pub fn set_values(mut self, input: std::option::Option>) -> Self { + self.values = input; + self + } + ///

    The status of the returned data. Complete indicates that all data points in the requested time range were returned. + /// PartialData means that an incomplete set of data points were returned. + /// You can use the NextToken value that was returned and repeat your request to get more data points. + /// NextToken is not returned if you are performing a math expression. InternalError + /// indicates that an error occurred. Retry your request using NextToken, if present.

    + pub fn status_code(mut self, input: crate::model::StatusCode) -> Self { + self.status_code = Some(input); + self + } + pub fn set_status_code( + mut self, + input: std::option::Option, + ) -> Self { + self.status_code = input; + self + } + pub fn messages(mut self, input: impl Into) -> Self { + let mut v = self.messages.unwrap_or_default(); + v.push(input.into()); + self.messages = Some(v); + self + } + pub fn set_messages( + mut self, + input: std::option::Option>, + ) -> Self { + self.messages = input; + self + } + /// Consumes the builder and constructs a [`MetricDataResult`](crate::model::MetricDataResult) + pub fn build(self) -> crate::model::MetricDataResult { + crate::model::MetricDataResult { + id: self.id, + label: self.label, + timestamps: self.timestamps, + values: self.values, + status_code: self.status_code, + messages: self.messages, + } + } + } +} +impl MetricDataResult { + /// Creates a new builder-style object to manufacture [`MetricDataResult`](crate::model::MetricDataResult) + pub fn builder() -> crate::model::metric_data_result::Builder { + crate::model::metric_data_result::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum StatusCode { + Complete, + InternalError, + PartialData, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for StatusCode { + fn from(s: &str) -> Self { + match s { + "Complete" => StatusCode::Complete, + "InternalError" => StatusCode::InternalError, + "PartialData" => StatusCode::PartialData, + other => StatusCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for StatusCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(StatusCode::from(s)) + } +} +impl StatusCode { + pub fn as_str(&self) -> &str { + match self { + StatusCode::Complete => "Complete", + StatusCode::InternalError => "InternalError", + StatusCode::PartialData => "PartialData", + StatusCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for StatusCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    This structure includes the Timezone parameter, which you can use +/// to specify your time zone so that the labels that are associated with returned metrics display the +/// correct time +/// for your time zone.

    +///

    The Timezone value affects a label only if you have a time-based +/// dynamic expression in the label. For more information about dynamic expressions in labels, +/// see Using Dynamic Labels.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LabelOptions { + ///

    The time zone to use for metric data return in this operation. + /// The format is + or - followed by four digits. + /// The first two digits indicate the number of hours ahead or behind of UTC, and + /// the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour + /// and 30 minutes ahead of UTC. The default is +0000.

    + pub timezone: std::option::Option, +} +impl std::fmt::Debug for LabelOptions { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LabelOptions"); + formatter.field("timezone", &self.timezone); + formatter.finish() + } +} +/// See [`LabelOptions`](crate::model::LabelOptions) +pub mod label_options { + /// A builder for [`LabelOptions`](crate::model::LabelOptions) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) timezone: std::option::Option, + } + impl Builder { + ///

    The time zone to use for metric data return in this operation. + /// The format is + or - followed by four digits. + /// The first two digits indicate the number of hours ahead or behind of UTC, and + /// the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour + /// and 30 minutes ahead of UTC. The default is +0000.

    + pub fn timezone(mut self, input: impl Into) -> Self { + self.timezone = Some(input.into()); + self + } + pub fn set_timezone(mut self, input: std::option::Option) -> Self { + self.timezone = input; + self + } + /// Consumes the builder and constructs a [`LabelOptions`](crate::model::LabelOptions) + pub fn build(self) -> crate::model::LabelOptions { + crate::model::LabelOptions { + timezone: self.timezone, + } + } + } +} +impl LabelOptions { + /// Creates a new builder-style object to manufacture [`LabelOptions`](crate::model::LabelOptions) + pub fn builder() -> crate::model::label_options::Builder { + crate::model::label_options::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ScanBy { + TimestampAscending, + TimestampDescending, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ScanBy { + fn from(s: &str) -> Self { + match s { + "TimestampAscending" => ScanBy::TimestampAscending, + "TimestampDescending" => ScanBy::TimestampDescending, + other => ScanBy::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ScanBy { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ScanBy::from(s)) + } +} +impl ScanBy { + pub fn as_str(&self) -> &str { + match self { + ScanBy::TimestampAscending => "TimestampAscending", + ScanBy::TimestampDescending => "TimestampDescending", + ScanBy::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ScanBy { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    One data point from the metric time series returned in a Contributor Insights rule report.

    +///

    For more information, see GetInsightRuleReport.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InsightRuleMetricDatapoint { + ///

    The timestamp of the data point.

    + pub timestamp: std::option::Option, + ///

    The number of unique contributors who published data during this timestamp.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub unique_contributors: std::option::Option, + ///

    The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, + /// so the identity of the max contributor + /// could be different for each timestamp.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub max_contributor_value: std::option::Option, + ///

    The number of occurrences that matched the rule during this data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub sample_count: std::option::Option, + ///

    The average value from all contributors during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub average: std::option::Option, + ///

    The sum of the values from all contributors during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub sum: std::option::Option, + ///

    The minimum value from a single contributor during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub minimum: std::option::Option, + ///

    The maximum value from a single occurence from a single contributor during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub maximum: std::option::Option, +} +impl std::fmt::Debug for InsightRuleMetricDatapoint { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InsightRuleMetricDatapoint"); + formatter.field("timestamp", &self.timestamp); + formatter.field("unique_contributors", &self.unique_contributors); + formatter.field("max_contributor_value", &self.max_contributor_value); + formatter.field("sample_count", &self.sample_count); + formatter.field("average", &self.average); + formatter.field("sum", &self.sum); + formatter.field("minimum", &self.minimum); + formatter.field("maximum", &self.maximum); + formatter.finish() + } +} +/// See [`InsightRuleMetricDatapoint`](crate::model::InsightRuleMetricDatapoint) +pub mod insight_rule_metric_datapoint { + /// A builder for [`InsightRuleMetricDatapoint`](crate::model::InsightRuleMetricDatapoint) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) timestamp: std::option::Option, + pub(crate) unique_contributors: std::option::Option, + pub(crate) max_contributor_value: std::option::Option, + pub(crate) sample_count: std::option::Option, + pub(crate) average: std::option::Option, + pub(crate) sum: std::option::Option, + pub(crate) minimum: std::option::Option, + pub(crate) maximum: std::option::Option, + } + impl Builder { + ///

    The timestamp of the data point.

    + pub fn timestamp(mut self, input: smithy_types::Instant) -> Self { + self.timestamp = Some(input); + self + } + pub fn set_timestamp(mut self, input: std::option::Option) -> Self { + self.timestamp = input; + self + } + ///

    The number of unique contributors who published data during this timestamp.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn unique_contributors(mut self, input: f64) -> Self { + self.unique_contributors = Some(input); + self + } + pub fn set_unique_contributors(mut self, input: std::option::Option) -> Self { + self.unique_contributors = input; + self + } + ///

    The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, + /// so the identity of the max contributor + /// could be different for each timestamp.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn max_contributor_value(mut self, input: f64) -> Self { + self.max_contributor_value = Some(input); + self + } + pub fn set_max_contributor_value(mut self, input: std::option::Option) -> Self { + self.max_contributor_value = input; + self + } + ///

    The number of occurrences that matched the rule during this data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn sample_count(mut self, input: f64) -> Self { + self.sample_count = Some(input); + self + } + pub fn set_sample_count(mut self, input: std::option::Option) -> Self { + self.sample_count = input; + self + } + ///

    The average value from all contributors during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn average(mut self, input: f64) -> Self { + self.average = Some(input); + self + } + pub fn set_average(mut self, input: std::option::Option) -> Self { + self.average = input; + self + } + ///

    The sum of the values from all contributors during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn sum(mut self, input: f64) -> Self { + self.sum = Some(input); + self + } + pub fn set_sum(mut self, input: std::option::Option) -> Self { + self.sum = input; + self + } + ///

    The minimum value from a single contributor during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn minimum(mut self, input: f64) -> Self { + self.minimum = Some(input); + self + } + pub fn set_minimum(mut self, input: std::option::Option) -> Self { + self.minimum = input; + self + } + ///

    The maximum value from a single occurence from a single contributor during the time period represented by that data point.

    + ///

    This statistic is returned only if you included it in the Metrics array in your request.

    + pub fn maximum(mut self, input: f64) -> Self { + self.maximum = Some(input); + self + } + pub fn set_maximum(mut self, input: std::option::Option) -> Self { + self.maximum = input; + self + } + /// Consumes the builder and constructs a [`InsightRuleMetricDatapoint`](crate::model::InsightRuleMetricDatapoint) + pub fn build(self) -> crate::model::InsightRuleMetricDatapoint { + crate::model::InsightRuleMetricDatapoint { + timestamp: self.timestamp, + unique_contributors: self.unique_contributors, + max_contributor_value: self.max_contributor_value, + sample_count: self.sample_count, + average: self.average, + sum: self.sum, + minimum: self.minimum, + maximum: self.maximum, + } + } + } +} +impl InsightRuleMetricDatapoint { + /// Creates a new builder-style object to manufacture [`InsightRuleMetricDatapoint`](crate::model::InsightRuleMetricDatapoint) + pub fn builder() -> crate::model::insight_rule_metric_datapoint::Builder { + crate::model::insight_rule_metric_datapoint::Builder::default() + } +} + +///

    One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then +/// a unique contributor is a unique combination of values from all the keys in the rule.

    +///

    If the rule contains a single key, then each unique contributor is each unique value for this key.

    +///

    For more information, see GetInsightRuleReport.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InsightRuleContributor { + ///

    One of the log entry field keywords that is used to define contributors for this rule.

    + pub keys: std::option::Option>, + ///

    An approximation of the aggregate value that comes from this contributor.

    + pub approximate_aggregate_value: std::option::Option, + ///

    An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.

    + pub datapoints: + std::option::Option>, +} +impl std::fmt::Debug for InsightRuleContributor { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InsightRuleContributor"); + formatter.field("keys", &self.keys); + formatter.field( + "approximate_aggregate_value", + &self.approximate_aggregate_value, + ); + formatter.field("datapoints", &self.datapoints); + formatter.finish() + } +} +/// See [`InsightRuleContributor`](crate::model::InsightRuleContributor) +pub mod insight_rule_contributor { + /// A builder for [`InsightRuleContributor`](crate::model::InsightRuleContributor) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) keys: std::option::Option>, + pub(crate) approximate_aggregate_value: std::option::Option, + pub(crate) datapoints: + std::option::Option>, + } + impl Builder { + pub fn keys(mut self, input: impl Into) -> Self { + let mut v = self.keys.unwrap_or_default(); + v.push(input.into()); + self.keys = Some(v); + self + } + pub fn set_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.keys = input; + self + } + ///

    An approximation of the aggregate value that comes from this contributor.

    + pub fn approximate_aggregate_value(mut self, input: f64) -> Self { + self.approximate_aggregate_value = Some(input); + self + } + pub fn set_approximate_aggregate_value(mut self, input: std::option::Option) -> Self { + self.approximate_aggregate_value = input; + self + } + pub fn datapoints( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.datapoints.unwrap_or_default(); + v.push(input.into()); + self.datapoints = Some(v); + self + } + pub fn set_datapoints( + mut self, + input: std::option::Option< + std::vec::Vec, + >, + ) -> Self { + self.datapoints = input; + self + } + /// Consumes the builder and constructs a [`InsightRuleContributor`](crate::model::InsightRuleContributor) + pub fn build(self) -> crate::model::InsightRuleContributor { + crate::model::InsightRuleContributor { + keys: self.keys, + approximate_aggregate_value: self.approximate_aggregate_value, + datapoints: self.datapoints, + } + } + } +} +impl InsightRuleContributor { + /// Creates a new builder-style object to manufacture [`InsightRuleContributor`](crate::model::InsightRuleContributor) + pub fn builder() -> crate::model::insight_rule_contributor::Builder { + crate::model::insight_rule_contributor::Builder::default() + } +} + +///

    One data point related to one contributor.

    +///

    For more information, see GetInsightRuleReport and +/// InsightRuleContributor.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InsightRuleContributorDatapoint { + ///

    The timestamp of the data point.

    + pub timestamp: std::option::Option, + ///

    The approximate value that this contributor added during this timestamp.

    + pub approximate_value: std::option::Option, +} +impl std::fmt::Debug for InsightRuleContributorDatapoint { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InsightRuleContributorDatapoint"); + formatter.field("timestamp", &self.timestamp); + formatter.field("approximate_value", &self.approximate_value); + formatter.finish() + } +} +/// See [`InsightRuleContributorDatapoint`](crate::model::InsightRuleContributorDatapoint) +pub mod insight_rule_contributor_datapoint { + /// A builder for [`InsightRuleContributorDatapoint`](crate::model::InsightRuleContributorDatapoint) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) timestamp: std::option::Option, + pub(crate) approximate_value: std::option::Option, + } + impl Builder { + ///

    The timestamp of the data point.

    + pub fn timestamp(mut self, input: smithy_types::Instant) -> Self { + self.timestamp = Some(input); + self + } + pub fn set_timestamp(mut self, input: std::option::Option) -> Self { + self.timestamp = input; + self + } + ///

    The approximate value that this contributor added during this timestamp.

    + pub fn approximate_value(mut self, input: f64) -> Self { + self.approximate_value = Some(input); + self + } + pub fn set_approximate_value(mut self, input: std::option::Option) -> Self { + self.approximate_value = input; + self + } + /// Consumes the builder and constructs a [`InsightRuleContributorDatapoint`](crate::model::InsightRuleContributorDatapoint) + pub fn build(self) -> crate::model::InsightRuleContributorDatapoint { + crate::model::InsightRuleContributorDatapoint { + timestamp: self.timestamp, + approximate_value: self.approximate_value, + } + } + } +} +impl InsightRuleContributorDatapoint { + /// Creates a new builder-style object to manufacture [`InsightRuleContributorDatapoint`](crate::model::InsightRuleContributorDatapoint) + pub fn builder() -> crate::model::insight_rule_contributor_datapoint::Builder { + crate::model::insight_rule_contributor_datapoint::Builder::default() + } +} + +///

    This array is empty if the API operation was successful for all the rules specified in the request. If the operation could +/// not process one of the rules, the following data is returned for each of those rules.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PartialFailure { + ///

    The specified rule that could not be deleted.

    + pub failure_resource: std::option::Option, + ///

    The type of error.

    + pub exception_type: std::option::Option, + ///

    The code of the error.

    + pub failure_code: std::option::Option, + ///

    A description of the error.

    + pub failure_description: std::option::Option, +} +impl std::fmt::Debug for PartialFailure { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PartialFailure"); + formatter.field("failure_resource", &self.failure_resource); + formatter.field("exception_type", &self.exception_type); + formatter.field("failure_code", &self.failure_code); + formatter.field("failure_description", &self.failure_description); + formatter.finish() + } +} +/// See [`PartialFailure`](crate::model::PartialFailure) +pub mod partial_failure { + /// A builder for [`PartialFailure`](crate::model::PartialFailure) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) failure_resource: std::option::Option, + pub(crate) exception_type: std::option::Option, + pub(crate) failure_code: std::option::Option, + pub(crate) failure_description: std::option::Option, + } + impl Builder { + ///

    The specified rule that could not be deleted.

    + pub fn failure_resource(mut self, input: impl Into) -> Self { + self.failure_resource = Some(input.into()); + self + } + pub fn set_failure_resource( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_resource = input; + self + } + ///

    The type of error.

    + pub fn exception_type(mut self, input: impl Into) -> Self { + self.exception_type = Some(input.into()); + self + } + pub fn set_exception_type( + mut self, + input: std::option::Option, + ) -> Self { + self.exception_type = input; + self + } + ///

    The code of the error.

    + pub fn failure_code(mut self, input: impl Into) -> Self { + self.failure_code = Some(input.into()); + self + } + pub fn set_failure_code(mut self, input: std::option::Option) -> Self { + self.failure_code = input; + self + } + ///

    A description of the error.

    + pub fn failure_description(mut self, input: impl Into) -> Self { + self.failure_description = Some(input.into()); + self + } + pub fn set_failure_description( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_description = input; + self + } + /// Consumes the builder and constructs a [`PartialFailure`](crate::model::PartialFailure) + pub fn build(self) -> crate::model::PartialFailure { + crate::model::PartialFailure { + failure_resource: self.failure_resource, + exception_type: self.exception_type, + failure_code: self.failure_code, + failure_description: self.failure_description, + } + } + } +} +impl PartialFailure { + /// Creates a new builder-style object to manufacture [`PartialFailure`](crate::model::PartialFailure) + pub fn builder() -> crate::model::partial_failure::Builder { + crate::model::partial_failure::Builder::default() + } +} + +///

    This structure contains the definition for a Contributor Insights rule.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InsightRule { + ///

    The name of the rule.

    + pub name: std::option::Option, + ///

    Indicates whether the rule is enabled or disabled.

    + pub state: std::option::Option, + ///

    For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, + /// this is {"Name": "ServiceLogRule", "Version": 1} + ///

    + pub schema: std::option::Option, + ///

    The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, + /// the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see + /// Contributor Insights + /// Rule Syntax.

    + pub definition: std::option::Option, +} +impl std::fmt::Debug for InsightRule { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InsightRule"); + formatter.field("name", &self.name); + formatter.field("state", &self.state); + formatter.field("schema", &self.schema); + formatter.field("definition", &self.definition); + formatter.finish() + } +} +/// See [`InsightRule`](crate::model::InsightRule) +pub mod insight_rule { + /// A builder for [`InsightRule`](crate::model::InsightRule) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) state: std::option::Option, + pub(crate) schema: std::option::Option, + pub(crate) definition: std::option::Option, + } + impl Builder { + ///

    The name of the rule.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    Indicates whether the rule is enabled or disabled.

    + pub fn state(mut self, input: impl Into) -> Self { + self.state = Some(input.into()); + self + } + pub fn set_state(mut self, input: std::option::Option) -> Self { + self.state = input; + self + } + ///

    For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, + /// this is {"Name": "ServiceLogRule", "Version": 1} + ///

    + pub fn schema(mut self, input: impl Into) -> Self { + self.schema = Some(input.into()); + self + } + pub fn set_schema(mut self, input: std::option::Option) -> Self { + self.schema = input; + self + } + ///

    The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, + /// the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see + /// Contributor Insights + /// Rule Syntax.

    + pub fn definition(mut self, input: impl Into) -> Self { + self.definition = Some(input.into()); + self + } + pub fn set_definition(mut self, input: std::option::Option) -> Self { + self.definition = input; + self + } + /// Consumes the builder and constructs a [`InsightRule`](crate::model::InsightRule) + pub fn build(self) -> crate::model::InsightRule { + crate::model::InsightRule { + name: self.name, + state: self.state, + schema: self.schema, + definition: self.definition, + } + } + } +} +impl InsightRule { + /// Creates a new builder-style object to manufacture [`InsightRule`](crate::model::InsightRule) + pub fn builder() -> crate::model::insight_rule::Builder { + crate::model::insight_rule::Builder::default() + } +} + +///

    An anomaly detection model associated with a particular CloudWatch metric and statistic. You +/// can use the model to display a band of expected normal values when the metric is +/// graphed.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AnomalyDetector { + ///

    The namespace of the metric associated with the anomaly detection model.

    + pub namespace: std::option::Option, + ///

    The name of the metric associated with the anomaly detection model.

    + pub metric_name: std::option::Option, + ///

    The metric dimensions associated with the anomaly detection model.

    + pub dimensions: std::option::Option>, + ///

    The statistic associated with the anomaly detection model.

    + pub stat: std::option::Option, + ///

    The configuration specifies details about how the + /// anomaly detection model is to be trained, including time ranges to + /// exclude from use for training the model, and the time zone to use for + /// the metric.

    + pub configuration: std::option::Option, + ///

    The current status of the anomaly detector's training. The possible values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA + ///

    + pub state_value: std::option::Option, +} +impl std::fmt::Debug for AnomalyDetector { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AnomalyDetector"); + formatter.field("namespace", &self.namespace); + formatter.field("metric_name", &self.metric_name); + formatter.field("dimensions", &self.dimensions); + formatter.field("stat", &self.stat); + formatter.field("configuration", &self.configuration); + formatter.field("state_value", &self.state_value); + formatter.finish() + } +} +/// See [`AnomalyDetector`](crate::model::AnomalyDetector) +pub mod anomaly_detector { + /// A builder for [`AnomalyDetector`](crate::model::AnomalyDetector) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) stat: std::option::Option, + pub(crate) configuration: std::option::Option, + pub(crate) state_value: std::option::Option, + } + impl Builder { + ///

    The namespace of the metric associated with the anomaly detection model.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The name of the metric associated with the anomaly detection model.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The statistic associated with the anomaly detection model.

    + pub fn stat(mut self, input: impl Into) -> Self { + self.stat = Some(input.into()); + self + } + pub fn set_stat(mut self, input: std::option::Option) -> Self { + self.stat = input; + self + } + ///

    The configuration specifies details about how the + /// anomaly detection model is to be trained, including time ranges to + /// exclude from use for training the model, and the time zone to use for + /// the metric.

    + pub fn configuration(mut self, input: crate::model::AnomalyDetectorConfiguration) -> Self { + self.configuration = Some(input); + self + } + pub fn set_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.configuration = input; + self + } + ///

    The current status of the anomaly detector's training. The possible values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA + ///

    + pub fn state_value(mut self, input: crate::model::AnomalyDetectorStateValue) -> Self { + self.state_value = Some(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.state_value = input; + self + } + /// Consumes the builder and constructs a [`AnomalyDetector`](crate::model::AnomalyDetector) + pub fn build(self) -> crate::model::AnomalyDetector { + crate::model::AnomalyDetector { + namespace: self.namespace, + metric_name: self.metric_name, + dimensions: self.dimensions, + stat: self.stat, + configuration: self.configuration, + state_value: self.state_value, + } + } + } +} +impl AnomalyDetector { + /// Creates a new builder-style object to manufacture [`AnomalyDetector`](crate::model::AnomalyDetector) + pub fn builder() -> crate::model::anomaly_detector::Builder { + crate::model::anomaly_detector::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum AnomalyDetectorStateValue { + PendingTraining, + Trained, + TrainedInsufficientData, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for AnomalyDetectorStateValue { + fn from(s: &str) -> Self { + match s { + "PENDING_TRAINING" => AnomalyDetectorStateValue::PendingTraining, + "TRAINED" => AnomalyDetectorStateValue::Trained, + "TRAINED_INSUFFICIENT_DATA" => AnomalyDetectorStateValue::TrainedInsufficientData, + other => AnomalyDetectorStateValue::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for AnomalyDetectorStateValue { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(AnomalyDetectorStateValue::from(s)) + } +} +impl AnomalyDetectorStateValue { + pub fn as_str(&self) -> &str { + match self { + AnomalyDetectorStateValue::PendingTraining => "PENDING_TRAINING", + AnomalyDetectorStateValue::Trained => "TRAINED", + AnomalyDetectorStateValue::TrainedInsufficientData => "TRAINED_INSUFFICIENT_DATA", + AnomalyDetectorStateValue::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for AnomalyDetectorStateValue { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    The details about a metric alarm.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MetricAlarm { + ///

    The name of the alarm.

    + pub alarm_name: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the alarm.

    + pub alarm_arn: std::option::Option, + ///

    The description of the alarm.

    + pub alarm_description: std::option::Option, + ///

    The time stamp of the last update to the alarm configuration.

    + pub alarm_configuration_updated_timestamp: std::option::Option, + ///

    Indicates whether actions should be executed during any changes to the alarm state.

    + pub actions_enabled: std::option::Option, + ///

    The actions to execute when this alarm transitions to the OK state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub ok_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to the ALARM state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub alarm_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state + /// from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub insufficient_data_actions: std::option::Option>, + ///

    The state value for the alarm.

    + pub state_value: std::option::Option, + ///

    An explanation for the alarm state, in text format.

    + pub state_reason: std::option::Option, + ///

    An explanation for the alarm state, in JSON format.

    + pub state_reason_data: std::option::Option, + ///

    The time stamp of the last update to the alarm state.

    + pub state_updated_timestamp: std::option::Option, + ///

    The name of the metric associated with the alarm, if this is an alarm + /// based on a single metric.

    + pub metric_name: std::option::Option, + ///

    The namespace of the metric associated with the alarm.

    + pub namespace: std::option::Option, + ///

    The statistic for the metric associated with the alarm, other than percentile. + /// For percentile statistics, use ExtendedStatistic.

    + pub statistic: std::option::Option, + ///

    The percentile statistic for the metric associated with the alarm. Specify a value between + /// p0.0 and p100.

    + pub extended_statistic: std::option::Option, + ///

    The dimensions for the metric associated with the alarm.

    + pub dimensions: std::option::Option>, + ///

    The period, in seconds, over which the statistic is applied.

    + pub period: std::option::Option, + ///

    The unit of the metric associated with the alarm.

    + pub unit: std::option::Option, + ///

    The number of periods over which data is compared to the specified threshold.

    + pub evaluation_periods: std::option::Option, + ///

    The number of data points that must be breaching to trigger the alarm.

    + pub datapoints_to_alarm: std::option::Option, + ///

    The value to compare with the specified statistic.

    + pub threshold: std::option::Option, + ///

    The arithmetic operation to use when comparing the specified + /// statistic and threshold. The specified statistic value is used as the first operand.

    + pub comparison_operator: std::option::Option, + ///

    Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

    + pub treat_missing_data: std::option::Option, + ///

    Used only for alarms based on percentiles. If ignore, the alarm state does not change + /// during periods with too few data points to be statistically significant. If evaluate or this + /// parameter is not used, the alarm is always evaluated and possibly changes state no matter + /// how many data points are available.

    + pub evaluate_low_sample_count_percentile: std::option::Option, + ///

    An array of MetricDataQuery structures, used in an alarm based on a + /// metric math expression. Each structure either retrieves a + /// metric or performs a math expression. + /// One item in the Metrics array is the math expression that the alarm watches. + /// This expression by designated by having ReturnData set to + /// true.

    + pub metrics: std::option::Option>, + ///

    In an alarm based on an anomaly detection model, this is the ID of the + /// ANOMALY_DETECTION_BAND function + /// used as the threshold for the alarm.

    + pub threshold_metric_id: std::option::Option, +} +impl std::fmt::Debug for MetricAlarm { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("MetricAlarm"); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_arn", &self.alarm_arn); + formatter.field("alarm_description", &self.alarm_description); + formatter.field( + "alarm_configuration_updated_timestamp", + &self.alarm_configuration_updated_timestamp, + ); + formatter.field("actions_enabled", &self.actions_enabled); + formatter.field("ok_actions", &self.ok_actions); + formatter.field("alarm_actions", &self.alarm_actions); + formatter.field("insufficient_data_actions", &self.insufficient_data_actions); + formatter.field("state_value", &self.state_value); + formatter.field("state_reason", &self.state_reason); + formatter.field("state_reason_data", &self.state_reason_data); + formatter.field("state_updated_timestamp", &self.state_updated_timestamp); + formatter.field("metric_name", &self.metric_name); + formatter.field("namespace", &self.namespace); + formatter.field("statistic", &self.statistic); + formatter.field("extended_statistic", &self.extended_statistic); + formatter.field("dimensions", &self.dimensions); + formatter.field("period", &self.period); + formatter.field("unit", &self.unit); + formatter.field("evaluation_periods", &self.evaluation_periods); + formatter.field("datapoints_to_alarm", &self.datapoints_to_alarm); + formatter.field("threshold", &self.threshold); + formatter.field("comparison_operator", &self.comparison_operator); + formatter.field("treat_missing_data", &self.treat_missing_data); + formatter.field( + "evaluate_low_sample_count_percentile", + &self.evaluate_low_sample_count_percentile, + ); + formatter.field("metrics", &self.metrics); + formatter.field("threshold_metric_id", &self.threshold_metric_id); + formatter.finish() + } +} +/// See [`MetricAlarm`](crate::model::MetricAlarm) +pub mod metric_alarm { + /// A builder for [`MetricAlarm`](crate::model::MetricAlarm) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_arn: std::option::Option, + pub(crate) alarm_description: std::option::Option, + pub(crate) alarm_configuration_updated_timestamp: + std::option::Option, + pub(crate) actions_enabled: std::option::Option, + pub(crate) ok_actions: std::option::Option>, + pub(crate) alarm_actions: std::option::Option>, + pub(crate) insufficient_data_actions: + std::option::Option>, + pub(crate) state_value: std::option::Option, + pub(crate) state_reason: std::option::Option, + pub(crate) state_reason_data: std::option::Option, + pub(crate) state_updated_timestamp: std::option::Option, + pub(crate) metric_name: std::option::Option, + pub(crate) namespace: std::option::Option, + pub(crate) statistic: std::option::Option, + pub(crate) extended_statistic: std::option::Option, + pub(crate) dimensions: std::option::Option>, + pub(crate) period: std::option::Option, + pub(crate) unit: std::option::Option, + pub(crate) evaluation_periods: std::option::Option, + pub(crate) datapoints_to_alarm: std::option::Option, + pub(crate) threshold: std::option::Option, + pub(crate) comparison_operator: std::option::Option, + pub(crate) treat_missing_data: std::option::Option, + pub(crate) evaluate_low_sample_count_percentile: std::option::Option, + pub(crate) metrics: std::option::Option>, + pub(crate) threshold_metric_id: std::option::Option, + } + impl Builder { + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    The Amazon Resource Name (ARN) of the alarm.

    + pub fn alarm_arn(mut self, input: impl Into) -> Self { + self.alarm_arn = Some(input.into()); + self + } + pub fn set_alarm_arn(mut self, input: std::option::Option) -> Self { + self.alarm_arn = input; + self + } + ///

    The description of the alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.alarm_description = Some(input.into()); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_description = input; + self + } + ///

    The time stamp of the last update to the alarm configuration.

    + pub fn alarm_configuration_updated_timestamp( + mut self, + input: smithy_types::Instant, + ) -> Self { + self.alarm_configuration_updated_timestamp = Some(input); + self + } + pub fn set_alarm_configuration_updated_timestamp( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_configuration_updated_timestamp = input; + self + } + ///

    Indicates whether actions should be executed during any changes to the alarm state.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.actions_enabled = Some(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.actions_enabled = input; + self + } + pub fn ok_actions(mut self, input: impl Into) -> Self { + let mut v = self.ok_actions.unwrap_or_default(); + v.push(input.into()); + self.ok_actions = Some(v); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.ok_actions = input; + self + } + pub fn alarm_actions(mut self, input: impl Into) -> Self { + let mut v = self.alarm_actions.unwrap_or_default(); + v.push(input.into()); + self.alarm_actions = Some(v); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_actions = input; + self + } + pub fn insufficient_data_actions(mut self, input: impl Into) -> Self { + let mut v = self.insufficient_data_actions.unwrap_or_default(); + v.push(input.into()); + self.insufficient_data_actions = Some(v); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.insufficient_data_actions = input; + self + } + ///

    The state value for the alarm.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.state_value = Some(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.state_value = input; + self + } + ///

    An explanation for the alarm state, in text format.

    + pub fn state_reason(mut self, input: impl Into) -> Self { + self.state_reason = Some(input.into()); + self + } + pub fn set_state_reason(mut self, input: std::option::Option) -> Self { + self.state_reason = input; + self + } + ///

    An explanation for the alarm state, in JSON format.

    + pub fn state_reason_data(mut self, input: impl Into) -> Self { + self.state_reason_data = Some(input.into()); + self + } + pub fn set_state_reason_data( + mut self, + input: std::option::Option, + ) -> Self { + self.state_reason_data = input; + self + } + ///

    The time stamp of the last update to the alarm state.

    + pub fn state_updated_timestamp(mut self, input: smithy_types::Instant) -> Self { + self.state_updated_timestamp = Some(input); + self + } + pub fn set_state_updated_timestamp( + mut self, + input: std::option::Option, + ) -> Self { + self.state_updated_timestamp = input; + self + } + ///

    The name of the metric associated with the alarm, if this is an alarm + /// based on a single metric.

    + pub fn metric_name(mut self, input: impl Into) -> Self { + self.metric_name = Some(input.into()); + self + } + pub fn set_metric_name(mut self, input: std::option::Option) -> Self { + self.metric_name = input; + self + } + ///

    The namespace of the metric associated with the alarm.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + ///

    The statistic for the metric associated with the alarm, other than percentile. + /// For percentile statistics, use ExtendedStatistic.

    + pub fn statistic(mut self, input: crate::model::Statistic) -> Self { + self.statistic = Some(input); + self + } + pub fn set_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.statistic = input; + self + } + ///

    The percentile statistic for the metric associated with the alarm. Specify a value between + /// p0.0 and p100.

    + pub fn extended_statistic(mut self, input: impl Into) -> Self { + self.extended_statistic = Some(input.into()); + self + } + pub fn set_extended_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.extended_statistic = input; + self + } + pub fn dimensions(mut self, input: impl Into) -> Self { + let mut v = self.dimensions.unwrap_or_default(); + v.push(input.into()); + self.dimensions = Some(v); + self + } + pub fn set_dimensions( + mut self, + input: std::option::Option>, + ) -> Self { + self.dimensions = input; + self + } + ///

    The period, in seconds, over which the statistic is applied.

    + pub fn period(mut self, input: i32) -> Self { + self.period = Some(input); + self + } + pub fn set_period(mut self, input: std::option::Option) -> Self { + self.period = input; + self + } + ///

    The unit of the metric associated with the alarm.

    + pub fn unit(mut self, input: crate::model::StandardUnit) -> Self { + self.unit = Some(input); + self + } + pub fn set_unit(mut self, input: std::option::Option) -> Self { + self.unit = input; + self + } + ///

    The number of periods over which data is compared to the specified threshold.

    + pub fn evaluation_periods(mut self, input: i32) -> Self { + self.evaluation_periods = Some(input); + self + } + pub fn set_evaluation_periods(mut self, input: std::option::Option) -> Self { + self.evaluation_periods = input; + self + } + ///

    The number of data points that must be breaching to trigger the alarm.

    + pub fn datapoints_to_alarm(mut self, input: i32) -> Self { + self.datapoints_to_alarm = Some(input); + self + } + pub fn set_datapoints_to_alarm(mut self, input: std::option::Option) -> Self { + self.datapoints_to_alarm = input; + self + } + ///

    The value to compare with the specified statistic.

    + pub fn threshold(mut self, input: f64) -> Self { + self.threshold = Some(input); + self + } + pub fn set_threshold(mut self, input: std::option::Option) -> Self { + self.threshold = input; + self + } + ///

    The arithmetic operation to use when comparing the specified + /// statistic and threshold. The specified statistic value is used as the first operand.

    + pub fn comparison_operator(mut self, input: crate::model::ComparisonOperator) -> Self { + self.comparison_operator = Some(input); + self + } + pub fn set_comparison_operator( + mut self, + input: std::option::Option, + ) -> Self { + self.comparison_operator = input; + self + } + ///

    Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

    + pub fn treat_missing_data(mut self, input: impl Into) -> Self { + self.treat_missing_data = Some(input.into()); + self + } + pub fn set_treat_missing_data( + mut self, + input: std::option::Option, + ) -> Self { + self.treat_missing_data = input; + self + } + ///

    Used only for alarms based on percentiles. If ignore, the alarm state does not change + /// during periods with too few data points to be statistically significant. If evaluate or this + /// parameter is not used, the alarm is always evaluated and possibly changes state no matter + /// how many data points are available.

    + pub fn evaluate_low_sample_count_percentile( + mut self, + input: impl Into, + ) -> Self { + self.evaluate_low_sample_count_percentile = Some(input.into()); + self + } + pub fn set_evaluate_low_sample_count_percentile( + mut self, + input: std::option::Option, + ) -> Self { + self.evaluate_low_sample_count_percentile = input; + self + } + pub fn metrics(mut self, input: impl Into) -> Self { + let mut v = self.metrics.unwrap_or_default(); + v.push(input.into()); + self.metrics = Some(v); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.metrics = input; + self + } + ///

    In an alarm based on an anomaly detection model, this is the ID of the + /// ANOMALY_DETECTION_BAND function + /// used as the threshold for the alarm.

    + pub fn threshold_metric_id(mut self, input: impl Into) -> Self { + self.threshold_metric_id = Some(input.into()); + self + } + pub fn set_threshold_metric_id( + mut self, + input: std::option::Option, + ) -> Self { + self.threshold_metric_id = input; + self + } + /// Consumes the builder and constructs a [`MetricAlarm`](crate::model::MetricAlarm) + pub fn build(self) -> crate::model::MetricAlarm { + crate::model::MetricAlarm { + alarm_name: self.alarm_name, + alarm_arn: self.alarm_arn, + alarm_description: self.alarm_description, + alarm_configuration_updated_timestamp: self.alarm_configuration_updated_timestamp, + actions_enabled: self.actions_enabled, + ok_actions: self.ok_actions, + alarm_actions: self.alarm_actions, + insufficient_data_actions: self.insufficient_data_actions, + state_value: self.state_value, + state_reason: self.state_reason, + state_reason_data: self.state_reason_data, + state_updated_timestamp: self.state_updated_timestamp, + metric_name: self.metric_name, + namespace: self.namespace, + statistic: self.statistic, + extended_statistic: self.extended_statistic, + dimensions: self.dimensions, + period: self.period, + unit: self.unit, + evaluation_periods: self.evaluation_periods, + datapoints_to_alarm: self.datapoints_to_alarm, + threshold: self.threshold, + comparison_operator: self.comparison_operator, + treat_missing_data: self.treat_missing_data, + evaluate_low_sample_count_percentile: self.evaluate_low_sample_count_percentile, + metrics: self.metrics, + threshold_metric_id: self.threshold_metric_id, + } + } + } +} +impl MetricAlarm { + /// Creates a new builder-style object to manufacture [`MetricAlarm`](crate::model::MetricAlarm) + pub fn builder() -> crate::model::metric_alarm::Builder { + crate::model::metric_alarm::Builder::default() + } +} + +///

    The details about a composite alarm.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CompositeAlarm { + ///

    Indicates whether actions should be executed during any changes to the alarm state.

    + pub actions_enabled: std::option::Option, + ///

    The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub alarm_actions: std::option::Option>, + ///

    The Amazon Resource Name (ARN) of the alarm.

    + pub alarm_arn: std::option::Option, + ///

    The time stamp of the last update to the alarm configuration.

    + pub alarm_configuration_updated_timestamp: std::option::Option, + ///

    The description of the alarm.

    + pub alarm_description: std::option::Option, + ///

    The name of the alarm.

    + pub alarm_name: std::option::Option, + ///

    The rule that this alarm uses to evaluate its alarm state.

    + pub alarm_rule: std::option::Option, + ///

    The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub insufficient_data_actions: std::option::Option>, + ///

    The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

    + pub ok_actions: std::option::Option>, + ///

    An explanation for the alarm state, in text format.

    + pub state_reason: std::option::Option, + ///

    An explanation for the alarm state, in JSON format.

    + pub state_reason_data: std::option::Option, + ///

    The time stamp of the last update to the alarm state.

    + pub state_updated_timestamp: std::option::Option, + ///

    The state value for the alarm.

    + pub state_value: std::option::Option, +} +impl std::fmt::Debug for CompositeAlarm { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CompositeAlarm"); + formatter.field("actions_enabled", &self.actions_enabled); + formatter.field("alarm_actions", &self.alarm_actions); + formatter.field("alarm_arn", &self.alarm_arn); + formatter.field( + "alarm_configuration_updated_timestamp", + &self.alarm_configuration_updated_timestamp, + ); + formatter.field("alarm_description", &self.alarm_description); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_rule", &self.alarm_rule); + formatter.field("insufficient_data_actions", &self.insufficient_data_actions); + formatter.field("ok_actions", &self.ok_actions); + formatter.field("state_reason", &self.state_reason); + formatter.field("state_reason_data", &self.state_reason_data); + formatter.field("state_updated_timestamp", &self.state_updated_timestamp); + formatter.field("state_value", &self.state_value); + formatter.finish() + } +} +/// See [`CompositeAlarm`](crate::model::CompositeAlarm) +pub mod composite_alarm { + /// A builder for [`CompositeAlarm`](crate::model::CompositeAlarm) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) actions_enabled: std::option::Option, + pub(crate) alarm_actions: std::option::Option>, + pub(crate) alarm_arn: std::option::Option, + pub(crate) alarm_configuration_updated_timestamp: + std::option::Option, + pub(crate) alarm_description: std::option::Option, + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_rule: std::option::Option, + pub(crate) insufficient_data_actions: + std::option::Option>, + pub(crate) ok_actions: std::option::Option>, + pub(crate) state_reason: std::option::Option, + pub(crate) state_reason_data: std::option::Option, + pub(crate) state_updated_timestamp: std::option::Option, + pub(crate) state_value: std::option::Option, + } + impl Builder { + ///

    Indicates whether actions should be executed during any changes to the alarm state.

    + pub fn actions_enabled(mut self, input: bool) -> Self { + self.actions_enabled = Some(input); + self + } + pub fn set_actions_enabled(mut self, input: std::option::Option) -> Self { + self.actions_enabled = input; + self + } + pub fn alarm_actions(mut self, input: impl Into) -> Self { + let mut v = self.alarm_actions.unwrap_or_default(); + v.push(input.into()); + self.alarm_actions = Some(v); + self + } + pub fn set_alarm_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_actions = input; + self + } + ///

    The Amazon Resource Name (ARN) of the alarm.

    + pub fn alarm_arn(mut self, input: impl Into) -> Self { + self.alarm_arn = Some(input.into()); + self + } + pub fn set_alarm_arn(mut self, input: std::option::Option) -> Self { + self.alarm_arn = input; + self + } + ///

    The time stamp of the last update to the alarm configuration.

    + pub fn alarm_configuration_updated_timestamp( + mut self, + input: smithy_types::Instant, + ) -> Self { + self.alarm_configuration_updated_timestamp = Some(input); + self + } + pub fn set_alarm_configuration_updated_timestamp( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_configuration_updated_timestamp = input; + self + } + ///

    The description of the alarm.

    + pub fn alarm_description(mut self, input: impl Into) -> Self { + self.alarm_description = Some(input.into()); + self + } + pub fn set_alarm_description( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_description = input; + self + } + ///

    The name of the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    The rule that this alarm uses to evaluate its alarm state.

    + pub fn alarm_rule(mut self, input: impl Into) -> Self { + self.alarm_rule = Some(input.into()); + self + } + pub fn set_alarm_rule(mut self, input: std::option::Option) -> Self { + self.alarm_rule = input; + self + } + pub fn insufficient_data_actions(mut self, input: impl Into) -> Self { + let mut v = self.insufficient_data_actions.unwrap_or_default(); + v.push(input.into()); + self.insufficient_data_actions = Some(v); + self + } + pub fn set_insufficient_data_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.insufficient_data_actions = input; + self + } + pub fn ok_actions(mut self, input: impl Into) -> Self { + let mut v = self.ok_actions.unwrap_or_default(); + v.push(input.into()); + self.ok_actions = Some(v); + self + } + pub fn set_ok_actions( + mut self, + input: std::option::Option>, + ) -> Self { + self.ok_actions = input; + self + } + ///

    An explanation for the alarm state, in text format.

    + pub fn state_reason(mut self, input: impl Into) -> Self { + self.state_reason = Some(input.into()); + self + } + pub fn set_state_reason(mut self, input: std::option::Option) -> Self { + self.state_reason = input; + self + } + ///

    An explanation for the alarm state, in JSON format.

    + pub fn state_reason_data(mut self, input: impl Into) -> Self { + self.state_reason_data = Some(input.into()); + self + } + pub fn set_state_reason_data( + mut self, + input: std::option::Option, + ) -> Self { + self.state_reason_data = input; + self + } + ///

    The time stamp of the last update to the alarm state.

    + pub fn state_updated_timestamp(mut self, input: smithy_types::Instant) -> Self { + self.state_updated_timestamp = Some(input); + self + } + pub fn set_state_updated_timestamp( + mut self, + input: std::option::Option, + ) -> Self { + self.state_updated_timestamp = input; + self + } + ///

    The state value for the alarm.

    + pub fn state_value(mut self, input: crate::model::StateValue) -> Self { + self.state_value = Some(input); + self + } + pub fn set_state_value( + mut self, + input: std::option::Option, + ) -> Self { + self.state_value = input; + self + } + /// Consumes the builder and constructs a [`CompositeAlarm`](crate::model::CompositeAlarm) + pub fn build(self) -> crate::model::CompositeAlarm { + crate::model::CompositeAlarm { + actions_enabled: self.actions_enabled, + alarm_actions: self.alarm_actions, + alarm_arn: self.alarm_arn, + alarm_configuration_updated_timestamp: self.alarm_configuration_updated_timestamp, + alarm_description: self.alarm_description, + alarm_name: self.alarm_name, + alarm_rule: self.alarm_rule, + insufficient_data_actions: self.insufficient_data_actions, + ok_actions: self.ok_actions, + state_reason: self.state_reason, + state_reason_data: self.state_reason_data, + state_updated_timestamp: self.state_updated_timestamp, + state_value: self.state_value, + } + } + } +} +impl CompositeAlarm { + /// Creates a new builder-style object to manufacture [`CompositeAlarm`](crate::model::CompositeAlarm) + pub fn builder() -> crate::model::composite_alarm::Builder { + crate::model::composite_alarm::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum AlarmType { + CompositeAlarm, + MetricAlarm, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for AlarmType { + fn from(s: &str) -> Self { + match s { + "CompositeAlarm" => AlarmType::CompositeAlarm, + "MetricAlarm" => AlarmType::MetricAlarm, + other => AlarmType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for AlarmType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(AlarmType::from(s)) + } +} +impl AlarmType { + pub fn as_str(&self) -> &str { + match self { + AlarmType::CompositeAlarm => "CompositeAlarm", + AlarmType::MetricAlarm => "MetricAlarm", + AlarmType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for AlarmType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    Represents the history of a specific alarm.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AlarmHistoryItem { + ///

    The descriptive name for the alarm.

    + pub alarm_name: std::option::Option, + ///

    The type of alarm, either metric alarm or composite alarm.

    + pub alarm_type: std::option::Option, + ///

    The time stamp for the alarm history item.

    + pub timestamp: std::option::Option, + ///

    The type of alarm history item.

    + pub history_item_type: std::option::Option, + ///

    A summary of the alarm history, in text format.

    + pub history_summary: std::option::Option, + ///

    Data about the alarm, in JSON format.

    + pub history_data: std::option::Option, +} +impl std::fmt::Debug for AlarmHistoryItem { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AlarmHistoryItem"); + formatter.field("alarm_name", &self.alarm_name); + formatter.field("alarm_type", &self.alarm_type); + formatter.field("timestamp", &self.timestamp); + formatter.field("history_item_type", &self.history_item_type); + formatter.field("history_summary", &self.history_summary); + formatter.field("history_data", &self.history_data); + formatter.finish() + } +} +/// See [`AlarmHistoryItem`](crate::model::AlarmHistoryItem) +pub mod alarm_history_item { + /// A builder for [`AlarmHistoryItem`](crate::model::AlarmHistoryItem) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_name: std::option::Option, + pub(crate) alarm_type: std::option::Option, + pub(crate) timestamp: std::option::Option, + pub(crate) history_item_type: std::option::Option, + pub(crate) history_summary: std::option::Option, + pub(crate) history_data: std::option::Option, + } + impl Builder { + ///

    The descriptive name for the alarm.

    + pub fn alarm_name(mut self, input: impl Into) -> Self { + self.alarm_name = Some(input.into()); + self + } + pub fn set_alarm_name(mut self, input: std::option::Option) -> Self { + self.alarm_name = input; + self + } + ///

    The type of alarm, either metric alarm or composite alarm.

    + pub fn alarm_type(mut self, input: crate::model::AlarmType) -> Self { + self.alarm_type = Some(input); + self + } + pub fn set_alarm_type( + mut self, + input: std::option::Option, + ) -> Self { + self.alarm_type = input; + self + } + ///

    The time stamp for the alarm history item.

    + pub fn timestamp(mut self, input: smithy_types::Instant) -> Self { + self.timestamp = Some(input); + self + } + pub fn set_timestamp(mut self, input: std::option::Option) -> Self { + self.timestamp = input; + self + } + ///

    The type of alarm history item.

    + pub fn history_item_type(mut self, input: crate::model::HistoryItemType) -> Self { + self.history_item_type = Some(input); + self + } + pub fn set_history_item_type( + mut self, + input: std::option::Option, + ) -> Self { + self.history_item_type = input; + self + } + ///

    A summary of the alarm history, in text format.

    + pub fn history_summary(mut self, input: impl Into) -> Self { + self.history_summary = Some(input.into()); + self + } + pub fn set_history_summary( + mut self, + input: std::option::Option, + ) -> Self { + self.history_summary = input; + self + } + ///

    Data about the alarm, in JSON format.

    + pub fn history_data(mut self, input: impl Into) -> Self { + self.history_data = Some(input.into()); + self + } + pub fn set_history_data(mut self, input: std::option::Option) -> Self { + self.history_data = input; + self + } + /// Consumes the builder and constructs a [`AlarmHistoryItem`](crate::model::AlarmHistoryItem) + pub fn build(self) -> crate::model::AlarmHistoryItem { + crate::model::AlarmHistoryItem { + alarm_name: self.alarm_name, + alarm_type: self.alarm_type, + timestamp: self.timestamp, + history_item_type: self.history_item_type, + history_summary: self.history_summary, + history_data: self.history_data, + } + } + } +} +impl AlarmHistoryItem { + /// Creates a new builder-style object to manufacture [`AlarmHistoryItem`](crate::model::AlarmHistoryItem) + pub fn builder() -> crate::model::alarm_history_item::Builder { + crate::model::alarm_history_item::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum HistoryItemType { + Action, + ConfigurationUpdate, + StateUpdate, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for HistoryItemType { + fn from(s: &str) -> Self { + match s { + "Action" => HistoryItemType::Action, + "ConfigurationUpdate" => HistoryItemType::ConfigurationUpdate, + "StateUpdate" => HistoryItemType::StateUpdate, + other => HistoryItemType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for HistoryItemType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(HistoryItemType::from(s)) + } +} +impl HistoryItemType { + pub fn as_str(&self) -> &str { + match self { + HistoryItemType::Action => "Action", + HistoryItemType::ConfigurationUpdate => "ConfigurationUpdate", + HistoryItemType::StateUpdate => "StateUpdate", + HistoryItemType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for HistoryItemType { + fn as_ref(&self) -> &str { + self.as_str() + } +} diff --git a/sdk/cloudwatch/src/operation.rs b/sdk/cloudwatch/src/operation.rs new file mode 100644 index 000000000000..2949f59bd2f8 --- /dev/null +++ b/sdk/cloudwatch/src/operation.rs @@ -0,0 +1,1338 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

    Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, this total can include no more +/// than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't +/// delete two composite alarms with one operation.

    +///

    +/// In the event of an error, no alarms are +/// deleted.

    +/// +///

    It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and +/// composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle +/// because there is always still a composite alarm that depends on that alarm that you want to delete.

    +///

    To get out of such a situation, you must +/// break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest +/// change to make to break a cycle is to change the AlarmRule of one of the alarms to False.

    +///

    Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path. +///

    +///
    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteAlarms { + _private: (), +} +impl DeleteAlarms { + /// Creates a new builder-style object to manufacture [`DeleteAlarmsInput`](crate::input::DeleteAlarmsInput) + pub fn builder() -> crate::input::delete_alarms_input::Builder { + crate::input::delete_alarms_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteAlarms { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_alarms_error(response) + } else { + crate::operation_deser::parse_delete_alarms_response(response) + } + } +} + +///

    Deletes the specified anomaly detection model from your account.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteAnomalyDetector { + _private: (), +} +impl DeleteAnomalyDetector { + /// Creates a new builder-style object to manufacture [`DeleteAnomalyDetectorInput`](crate::input::DeleteAnomalyDetectorInput) + pub fn builder() -> crate::input::delete_anomaly_detector_input::Builder { + crate::input::delete_anomaly_detector_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteAnomalyDetector { + type Output = std::result::Result< + crate::output::DeleteAnomalyDetectorOutput, + crate::error::DeleteAnomalyDetectorError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_anomaly_detector_error(response) + } else { + crate::operation_deser::parse_delete_anomaly_detector_response(response) + } + } +} + +///

    Deletes all dashboards that you specify. You +/// can specify up to 100 dashboards to delete. If there is an error during this call, no dashboards are +/// deleted.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteDashboards { + _private: (), +} +impl DeleteDashboards { + /// Creates a new builder-style object to manufacture [`DeleteDashboardsInput`](crate::input::DeleteDashboardsInput) + pub fn builder() -> crate::input::delete_dashboards_input::Builder { + crate::input::delete_dashboards_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteDashboards { + type Output = std::result::Result< + crate::output::DeleteDashboardsOutput, + crate::error::DeleteDashboardsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_dashboards_error(response) + } else { + crate::operation_deser::parse_delete_dashboards_response(response) + } + } +} + +///

    Permanently deletes the specified Contributor Insights rules.

    +///

    If you create a rule, delete it, and then re-create it with the same name, historical data from the first time +/// the rule was created might +/// not be available.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteInsightRules { + _private: (), +} +impl DeleteInsightRules { + /// Creates a new builder-style object to manufacture [`DeleteInsightRulesInput`](crate::input::DeleteInsightRulesInput) + pub fn builder() -> crate::input::delete_insight_rules_input::Builder { + crate::input::delete_insight_rules_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteInsightRules { + type Output = std::result::Result< + crate::output::DeleteInsightRulesOutput, + crate::error::DeleteInsightRulesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_insight_rules_error(response) + } else { + crate::operation_deser::parse_delete_insight_rules_response(response) + } + } +} + +///

    Permanently deletes the metric stream that you specify.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteMetricStream { + _private: (), +} +impl DeleteMetricStream { + /// Creates a new builder-style object to manufacture [`DeleteMetricStreamInput`](crate::input::DeleteMetricStreamInput) + pub fn builder() -> crate::input::delete_metric_stream_input::Builder { + crate::input::delete_metric_stream_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteMetricStream { + type Output = std::result::Result< + crate::output::DeleteMetricStreamOutput, + crate::error::DeleteMetricStreamError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_metric_stream_error(response) + } else { + crate::operation_deser::parse_delete_metric_stream_response(response) + } + } +} + +///

    Retrieves the history for the specified alarm. You can filter the results by date range or item type. +/// If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned.

    +///

    CloudWatch retains the history of an alarm even if you delete the alarm.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAlarmHistory { + _private: (), +} +impl DescribeAlarmHistory { + /// Creates a new builder-style object to manufacture [`DescribeAlarmHistoryInput`](crate::input::DescribeAlarmHistoryInput) + pub fn builder() -> crate::input::describe_alarm_history_input::Builder { + crate::input::describe_alarm_history_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAlarmHistory { + type Output = std::result::Result< + crate::output::DescribeAlarmHistoryOutput, + crate::error::DescribeAlarmHistoryError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_alarm_history_error(response) + } else { + crate::operation_deser::parse_describe_alarm_history_response(response) + } + } +} + +///

    Retrieves the specified alarms. You can filter the results by specifying a prefix for the alarm +/// name, the alarm state, or a prefix for any action.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAlarms { + _private: (), +} +impl DescribeAlarms { + /// Creates a new builder-style object to manufacture [`DescribeAlarmsInput`](crate::input::DescribeAlarmsInput) + pub fn builder() -> crate::input::describe_alarms_input::Builder { + crate::input::describe_alarms_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAlarms { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_alarms_error(response) + } else { + crate::operation_deser::parse_describe_alarms_response(response) + } + } +} + +///

    Retrieves the alarms for the specified metric. To +/// filter the results, specify a statistic, period, or unit.

    +///

    This operation retrieves only standard alarms that are based on +/// the specified metric. It does not return alarms based on math expressions that +/// use the specified metric, or composite alarms that use the specified metric.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAlarmsForMetric { + _private: (), +} +impl DescribeAlarmsForMetric { + /// Creates a new builder-style object to manufacture [`DescribeAlarmsForMetricInput`](crate::input::DescribeAlarmsForMetricInput) + pub fn builder() -> crate::input::describe_alarms_for_metric_input::Builder { + crate::input::describe_alarms_for_metric_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAlarmsForMetric { + type Output = std::result::Result< + crate::output::DescribeAlarmsForMetricOutput, + crate::error::DescribeAlarmsForMetricError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_alarms_for_metric_error(response) + } else { + crate::operation_deser::parse_describe_alarms_for_metric_response(response) + } + } +} + +///

    Lists the anomaly detection models that you have created in your account. You can list all +/// models in your account or filter the results to only the models that are related to a +/// certain namespace, metric name, or metric dimension.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAnomalyDetectors { + _private: (), +} +impl DescribeAnomalyDetectors { + /// Creates a new builder-style object to manufacture [`DescribeAnomalyDetectorsInput`](crate::input::DescribeAnomalyDetectorsInput) + pub fn builder() -> crate::input::describe_anomaly_detectors_input::Builder { + crate::input::describe_anomaly_detectors_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAnomalyDetectors { + type Output = std::result::Result< + crate::output::DescribeAnomalyDetectorsOutput, + crate::error::DescribeAnomalyDetectorsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_anomaly_detectors_error(response) + } else { + crate::operation_deser::parse_describe_anomaly_detectors_response(response) + } + } +} + +///

    Returns a list of all the Contributor Insights rules in your account.

    +///

    For more information about Contributor Insights, see +/// Using Contributor Insights to Analyze High-Cardinality Data.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeInsightRules { + _private: (), +} +impl DescribeInsightRules { + /// Creates a new builder-style object to manufacture [`DescribeInsightRulesInput`](crate::input::DescribeInsightRulesInput) + pub fn builder() -> crate::input::describe_insight_rules_input::Builder { + crate::input::describe_insight_rules_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeInsightRules { + type Output = std::result::Result< + crate::output::DescribeInsightRulesOutput, + crate::error::DescribeInsightRulesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_insight_rules_error(response) + } else { + crate::operation_deser::parse_describe_insight_rules_response(response) + } + } +} + +///

    Disables the actions for the specified alarms. When an alarm's actions are disabled, the +/// alarm actions do not execute when the alarm state changes.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DisableAlarmActions { + _private: (), +} +impl DisableAlarmActions { + /// Creates a new builder-style object to manufacture [`DisableAlarmActionsInput`](crate::input::DisableAlarmActionsInput) + pub fn builder() -> crate::input::disable_alarm_actions_input::Builder { + crate::input::disable_alarm_actions_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DisableAlarmActions { + type Output = std::result::Result< + crate::output::DisableAlarmActionsOutput, + crate::error::DisableAlarmActionsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_alarm_actions_error(response) + } else { + crate::operation_deser::parse_disable_alarm_actions_response(response) + } + } +} + +///

    Disables the specified Contributor Insights rules. When rules are disabled, they do not analyze log groups and do +/// not incur costs.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DisableInsightRules { + _private: (), +} +impl DisableInsightRules { + /// Creates a new builder-style object to manufacture [`DisableInsightRulesInput`](crate::input::DisableInsightRulesInput) + pub fn builder() -> crate::input::disable_insight_rules_input::Builder { + crate::input::disable_insight_rules_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DisableInsightRules { + type Output = std::result::Result< + crate::output::DisableInsightRulesOutput, + crate::error::DisableInsightRulesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_insight_rules_error(response) + } else { + crate::operation_deser::parse_disable_insight_rules_response(response) + } + } +} + +///

    Enables the actions for the specified alarms.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct EnableAlarmActions { + _private: (), +} +impl EnableAlarmActions { + /// Creates a new builder-style object to manufacture [`EnableAlarmActionsInput`](crate::input::EnableAlarmActionsInput) + pub fn builder() -> crate::input::enable_alarm_actions_input::Builder { + crate::input::enable_alarm_actions_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for EnableAlarmActions { + type Output = std::result::Result< + crate::output::EnableAlarmActionsOutput, + crate::error::EnableAlarmActionsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_alarm_actions_error(response) + } else { + crate::operation_deser::parse_enable_alarm_actions_response(response) + } + } +} + +///

    Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct EnableInsightRules { + _private: (), +} +impl EnableInsightRules { + /// Creates a new builder-style object to manufacture [`EnableInsightRulesInput`](crate::input::EnableInsightRulesInput) + pub fn builder() -> crate::input::enable_insight_rules_input::Builder { + crate::input::enable_insight_rules_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for EnableInsightRules { + type Output = std::result::Result< + crate::output::EnableInsightRulesOutput, + crate::error::EnableInsightRulesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_insight_rules_error(response) + } else { + crate::operation_deser::parse_enable_insight_rules_response(response) + } + } +} + +///

    Displays the details of the dashboard that you specify.

    +///

    To copy an existing dashboard, use GetDashboard, and then use the data returned +/// within DashboardBody as the template for the new dashboard when you call PutDashboard to create +/// the copy.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetDashboard { + _private: (), +} +impl GetDashboard { + /// Creates a new builder-style object to manufacture [`GetDashboardInput`](crate::input::GetDashboardInput) + pub fn builder() -> crate::input::get_dashboard_input::Builder { + crate::input::get_dashboard_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetDashboard { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_dashboard_error(response) + } else { + crate::operation_deser::parse_get_dashboard_response(response) + } + } +} + +///

    This operation returns the time series data collected by a Contributor Insights rule. The data includes the identity and number of +/// contributors to the log group.

    +///

    You can also optionally return one or more statistics about each data point in the time series. These statistics can include the following:

    +///
      +///
    • +///

      +/// UniqueContributors -- the number of unique contributors for each data point.

      +///
    • +///
    • +///

      +/// MaxContributorValue -- the value of the top contributor for each data point. The identity of the +/// contributor might change for each data point in the graph.

      +///

      If this rule aggregates by COUNT, the top contributor for each data point is the contributor with the +/// most occurrences in that period. If the rule aggregates by SUM, the top contributor is the contributor with the highest sum in the log field specified +/// by the rule's Value, during that period.

      +///
    • +///
    • +///

      +/// SampleCount -- the number of data points matched by the rule.

      +///
    • +///
    • +///

      +/// Sum -- the sum of the values from all contributors during the time period represented by that data point.

      +///
    • +///
    • +///

      +/// Minimum -- the minimum value from a single observation during the time period represented by that data point.

      +///
    • +///
    • +///

      +/// Maximum -- the maximum value from a single observation during the time period represented by that data point.

      +///
    • +///
    • +///

      +/// Average -- the average value from all contributors during the time period represented by that data point.

      +///
    • +///
    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetInsightRuleReport { + _private: (), +} +impl GetInsightRuleReport { + /// Creates a new builder-style object to manufacture [`GetInsightRuleReportInput`](crate::input::GetInsightRuleReportInput) + pub fn builder() -> crate::input::get_insight_rule_report_input::Builder { + crate::input::get_insight_rule_report_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetInsightRuleReport { + type Output = std::result::Result< + crate::output::GetInsightRuleReportOutput, + crate::error::GetInsightRuleReportError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_insight_rule_report_error(response) + } else { + crate::operation_deser::parse_get_insight_rule_report_response(response) + } + } +} + +///

    You can use the GetMetricData API to retrieve as many as 500 different +/// metrics in a single request, with a total of as many as 100,800 data points. You can also +/// optionally perform math expressions on the values of the returned statistics, to create +/// new time series that represent new insights into your data. For example, using Lambda +/// metrics, you could divide the Errors metric by the Invocations metric to get an error +/// rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User +/// Guide.

    +///

    Calls to the GetMetricData API have a different pricing structure than +/// calls to GetMetricStatistics. For more information about pricing, see +/// Amazon CloudWatch Pricing.

    +///

    Amazon CloudWatch retains metric data as follows:

    +///
      +///
    • +///

      Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution +/// metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.

      +///
    • +///
    • +///

      Data points with a period of 60 seconds (1-minute) are available for 15 days.

      +///
    • +///
    • +///

      Data points with a period of 300 seconds (5-minute) are available for 63 days.

      +///
    • +///
    • +///

      Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).

      +///
    • +///
    +///

    Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect +/// data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, +/// but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with +/// a resolution of 1 hour.

    +///

    If you omit Unit in your request, all data that was collected with any unit is returned, along with the corresponding units that were specified +/// when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. +/// If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetMetricData { + _private: (), +} +impl GetMetricData { + /// Creates a new builder-style object to manufacture [`GetMetricDataInput`](crate::input::GetMetricDataInput) + pub fn builder() -> crate::input::get_metric_data_input::Builder { + crate::input::get_metric_data_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetMetricData { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_metric_data_error(response) + } else { + crate::operation_deser::parse_get_metric_data_response(response) + } + } +} + +///

    Gets statistics for the specified metric.

    +///

    The maximum number of data points returned from a single call is 1,440. If +/// you request more than 1,440 data points, CloudWatch returns an error. +/// To reduce the number of data points, you can narrow the specified time range and make +/// multiple requests across adjacent time ranges, or you can increase the specified period. +/// Data points are not returned in chronological order.

    +///

    CloudWatch aggregates data points based on the length of the period +/// that you specify. For example, if you request statistics with a one-hour period, +/// CloudWatch aggregates all data points with time stamps that fall within each +/// one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than +/// the number of data points returned.

    +///

    CloudWatch needs raw data points to calculate percentile statistics. If you publish +/// data using a statistic set instead, you can only retrieve +/// percentile statistics for this data if one of the following conditions is true:

    +///
      +///
    • +///

      The SampleCount value of the statistic set is 1.

      +///
    • +///
    • +///

      The Min and the Max values of the statistic set are equal.

      +///
    • +///
    +///

    Percentile statistics are not available for metrics when any of the metric values are negative numbers.

    +///

    Amazon CloudWatch retains metric data as follows:

    +///
      +///
    • +///

      Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution +/// metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.

      +///
    • +///
    • +///

      Data points with a period of 60 seconds (1-minute) are available for 15 days.

      +///
    • +///
    • +///

      Data points with a period of 300 seconds (5-minute) are available for 63 days.

      +///
    • +///
    • +///

      Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).

      +///
    • +///
    +///

    Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect +/// data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, +/// but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with +/// a resolution of 1 hour.

    +///

    CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

    +///

    For information about metrics and dimensions supported by AWS services, see the +/// Amazon CloudWatch Metrics and Dimensions Reference in the +/// Amazon CloudWatch User Guide.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetMetricStatistics { + _private: (), +} +impl GetMetricStatistics { + /// Creates a new builder-style object to manufacture [`GetMetricStatisticsInput`](crate::input::GetMetricStatisticsInput) + pub fn builder() -> crate::input::get_metric_statistics_input::Builder { + crate::input::get_metric_statistics_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetMetricStatistics { + type Output = std::result::Result< + crate::output::GetMetricStatisticsOutput, + crate::error::GetMetricStatisticsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_metric_statistics_error(response) + } else { + crate::operation_deser::parse_get_metric_statistics_response(response) + } + } +} + +///

    Returns information about the metric stream that you specify.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetMetricStream { + _private: (), +} +impl GetMetricStream { + /// Creates a new builder-style object to manufacture [`GetMetricStreamInput`](crate::input::GetMetricStreamInput) + pub fn builder() -> crate::input::get_metric_stream_input::Builder { + crate::input::get_metric_stream_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetMetricStream { + type Output = std::result::Result< + crate::output::GetMetricStreamOutput, + crate::error::GetMetricStreamError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_metric_stream_error(response) + } else { + crate::operation_deser::parse_get_metric_stream_response(response) + } + } +} + +///

    You can use the GetMetricWidgetImage API to retrieve a snapshot graph of +/// one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this +/// image into your services and products, such as wiki pages, reports, and documents. +/// You could also retrieve images regularly, such as every minute, and create your own +/// custom live dashboard.

    +///

    The graph you retrieve can include all CloudWatch metric graph features, including metric math +/// and horizontal and vertical annotations.

    +///

    There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage action has the following limits:

    +///
      +///
    • +///

      As many as 100 metrics in the graph.

      +///
    • +///
    • +///

      Up to 100 KB uncompressed payload.

      +///
    • +///
    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetMetricWidgetImage { + _private: (), +} +impl GetMetricWidgetImage { + /// Creates a new builder-style object to manufacture [`GetMetricWidgetImageInput`](crate::input::GetMetricWidgetImageInput) + pub fn builder() -> crate::input::get_metric_widget_image_input::Builder { + crate::input::get_metric_widget_image_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetMetricWidgetImage { + type Output = std::result::Result< + crate::output::GetMetricWidgetImageOutput, + crate::error::GetMetricWidgetImageError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_metric_widget_image_error(response) + } else { + crate::operation_deser::parse_get_metric_widget_image_response(response) + } + } +} + +///

    Returns a list of the dashboards for your account. If you include DashboardNamePrefix, only +/// those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are +/// listed. +///

    +///

    +/// ListDashboards returns up to 1000 results on one page. If there +/// are more than 1000 dashboards, you can call ListDashboards again and +/// include the value you received for NextToken in the first call, to receive +/// the next 1000 results.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListDashboards { + _private: (), +} +impl ListDashboards { + /// Creates a new builder-style object to manufacture [`ListDashboardsInput`](crate::input::ListDashboardsInput) + pub fn builder() -> crate::input::list_dashboards_input::Builder { + crate::input::list_dashboards_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListDashboards { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_dashboards_error(response) + } else { + crate::operation_deser::parse_list_dashboards_response(response) + } + } +} + +///

    List the specified metrics. You can use the returned metrics with +/// GetMetricData or +/// GetMetricStatistics to obtain statistical data.

    +///

    Up to 500 results are returned for any one call. To retrieve additional results, +/// use the returned token with subsequent calls.

    +///

    After you create a metric, allow up to 15 minutes before the metric appears. +/// You can see statistics about the metric sooner by using GetMetricData or +/// GetMetricStatistics.

    +///

    +/// ListMetrics doesn't return information about metrics if those metrics haven't +/// reported data in the past two weeks. To retrieve those metrics, use +/// GetMetricData or +/// GetMetricStatistics.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListMetrics { + _private: (), +} +impl ListMetrics { + /// Creates a new builder-style object to manufacture [`ListMetricsInput`](crate::input::ListMetricsInput) + pub fn builder() -> crate::input::list_metrics_input::Builder { + crate::input::list_metrics_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListMetrics { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_metrics_error(response) + } else { + crate::operation_deser::parse_list_metrics_response(response) + } + } +} + +///

    Returns a list of metric streams in this account.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListMetricStreams { + _private: (), +} +impl ListMetricStreams { + /// Creates a new builder-style object to manufacture [`ListMetricStreamsInput`](crate::input::ListMetricStreamsInput) + pub fn builder() -> crate::input::list_metric_streams_input::Builder { + crate::input::list_metric_streams_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListMetricStreams { + type Output = std::result::Result< + crate::output::ListMetricStreamsOutput, + crate::error::ListMetricStreamsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_metric_streams_error(response) + } else { + crate::operation_deser::parse_list_metric_streams_response(response) + } + } +} + +///

    Displays the tags associated with a CloudWatch resource. Currently, alarms +/// and Contributor Insights rules support tagging.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListTagsForResource { + _private: (), +} +impl ListTagsForResource { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListTagsForResource { + type Output = std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_for_resource_response(response) + } + } +} + +///

    Creates an anomaly detection model for a CloudWatch metric. You can use the model +/// to display a band of expected normal values when the metric is graphed.

    +///

    For more information, see CloudWatch Anomaly Detection.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutAnomalyDetector { + _private: (), +} +impl PutAnomalyDetector { + /// Creates a new builder-style object to manufacture [`PutAnomalyDetectorInput`](crate::input::PutAnomalyDetectorInput) + pub fn builder() -> crate::input::put_anomaly_detector_input::Builder { + crate::input::put_anomaly_detector_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutAnomalyDetector { + type Output = std::result::Result< + crate::output::PutAnomalyDetectorOutput, + crate::error::PutAnomalyDetectorError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_anomaly_detector_error(response) + } else { + crate::operation_deser::parse_put_anomaly_detector_response(response) + } + } +} + +///

    Creates or updates a composite alarm. When you create a composite +/// alarm, you specify a rule expression for the alarm that takes into account the alarm +/// states of other alarms that you have created. The composite alarm goes into ALARM state +/// only if all conditions of the rule are met.

    +///

    The alarms specified in a composite alarm's rule expression can include metric alarms +/// and other composite alarms.

    +///

    Using composite alarms can reduce +/// alarm noise. You can create multiple metric alarms, +/// and also create a composite alarm and +/// set up alerts only +/// for the composite alarm. For example, you could create a composite +/// alarm that goes into ALARM state only when more than one of the underlying metric alarms +/// are in ALARM state.

    +///

    Currently, the only alarm actions that can be taken by composite alarms are notifying +/// SNS topics.

    +/// +///

    It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and +/// composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle +/// because there is always still a composite alarm that depends on that alarm that you want to delete.

    +///

    To get out of such a situation, you must +/// break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest +/// change to make to break a cycle is to change the AlarmRule of one of the alarms to False.

    +///

    Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path. +///

    +///
    +///

    When this operation creates an alarm, the alarm state is immediately set to +/// INSUFFICIENT_DATA. The alarm is then evaluated and its state is set +/// appropriately. Any actions associated with the new state are then executed. For a +/// composite alarm, this initial time after creation is the only time that +/// the +/// alarm can be in INSUFFICIENT_DATA state.

    +///

    When you update an existing alarm, its state is left unchanged, but the update +/// completely overwrites the previous configuration of the alarm.

    +///

    If you are an IAM user, you must have iam:CreateServiceLinkedRole to create +/// a composite alarm that has Systems Manager OpsItem actions.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutCompositeAlarm { + _private: (), +} +impl PutCompositeAlarm { + /// Creates a new builder-style object to manufacture [`PutCompositeAlarmInput`](crate::input::PutCompositeAlarmInput) + pub fn builder() -> crate::input::put_composite_alarm_input::Builder { + crate::input::put_composite_alarm_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutCompositeAlarm { + type Output = std::result::Result< + crate::output::PutCompositeAlarmOutput, + crate::error::PutCompositeAlarmError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_composite_alarm_error(response) + } else { + crate::operation_deser::parse_put_composite_alarm_response(response) + } + } +} + +///

    Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard, +/// the entire contents are replaced with what you specify here.

    +///

    All dashboards in your account are global, not region-specific.

    +///

    A simple way to create a dashboard using PutDashboard is to copy an +/// existing dashboard. To copy an existing dashboard using the console, you can load the dashboard +/// and then use the View/edit source command in the Actions menu to display the JSON block +/// for that dashboard. Another way to copy a dashboard is to +/// use GetDashboard, and then use the data returned +/// within DashboardBody as the template for the new dashboard when you call PutDashboard.

    +///

    When you create a dashboard with PutDashboard, a good practice is to +/// add a text widget at the top of the dashboard with a message that the dashboard was created by script and should +/// not be changed in the console. This message could also point console users to the location +/// of the DashboardBody script or the CloudFormation template used to create the +/// dashboard.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutDashboard { + _private: (), +} +impl PutDashboard { + /// Creates a new builder-style object to manufacture [`PutDashboardInput`](crate::input::PutDashboardInput) + pub fn builder() -> crate::input::put_dashboard_input::Builder { + crate::input::put_dashboard_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutDashboard { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_dashboard_error(response) + } else { + crate::operation_deser::parse_put_dashboard_response(response) + } + } +} + +///

    Creates a Contributor Insights rule. Rules evaluate log events in a +/// CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information, +/// see Using Contributor Insights to Analyze High-Cardinality Data.

    +///

    If you create a rule, delete it, and then re-create it with the same name, historical data from the first time +/// the rule was created might not be available.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutInsightRule { + _private: (), +} +impl PutInsightRule { + /// Creates a new builder-style object to manufacture [`PutInsightRuleInput`](crate::input::PutInsightRuleInput) + pub fn builder() -> crate::input::put_insight_rule_input::Builder { + crate::input::put_insight_rule_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutInsightRule { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_insight_rule_error(response) + } else { + crate::operation_deser::parse_put_insight_rule_response(response) + } + } +} + +///

    Creates or updates an alarm and associates it with the specified metric, metric math expression, +/// or anomaly detection model.

    +///

    Alarms based on anomaly detection models cannot have Auto Scaling actions.

    +///

    When this operation creates an alarm, the alarm state is immediately set to +/// INSUFFICIENT_DATA. The alarm is then evaluated and its state is set +/// appropriately. Any actions associated with the new state are then executed.

    +///

    When you update an existing alarm, its state is left unchanged, but the +/// update completely overwrites the previous configuration of the alarm.

    +///

    If you are an IAM user, you must have +/// Amazon EC2 permissions for some alarm operations:

    +///
      +///
    • +///

      The iam:CreateServiceLinkedRole for all alarms with EC2 actions

      +///
    • +///
    • +///

      The iam:CreateServiceLinkedRole to create an alarm +/// with Systems Manager OpsItem actions.

      +///
    • +///
    +///

    The first time you create an alarm in the +/// AWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch +/// creates the necessary service-linked role for you. The service-linked roles +/// are called AWSServiceRoleForCloudWatchEvents and +/// AWSServiceRoleForCloudWatchAlarms_ActionSSM. +/// For more information, see AWS service-linked role.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutMetricAlarm { + _private: (), +} +impl PutMetricAlarm { + /// Creates a new builder-style object to manufacture [`PutMetricAlarmInput`](crate::input::PutMetricAlarmInput) + pub fn builder() -> crate::input::put_metric_alarm_input::Builder { + crate::input::put_metric_alarm_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutMetricAlarm { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_metric_alarm_error(response) + } else { + crate::operation_deser::parse_put_metric_alarm_response(response) + } + } +} + +///

    Publishes metric data points to Amazon CloudWatch. CloudWatch associates +/// the data points with the specified metric. If the specified metric does not exist, +/// CloudWatch creates the metric. When CloudWatch creates a metric, it can +/// take up to fifteen minutes for the metric to appear in calls to ListMetrics.

    +///

    You can publish either individual data points in the Value field, or +/// arrays of values and the number of times each value occurred during the period by using the +/// Values and Counts fields in the MetricDatum structure. Using +/// the Values and Counts method enables you to publish up to 150 values per metric +/// with one PutMetricData request, and +/// supports retrieving percentile statistics on this data.

    +///

    Each PutMetricData request is limited to 40 KB in size for HTTP POST requests. You can +/// send a payload compressed by gzip. Each request +/// is also limited to no more than 20 different metrics.

    +///

    Although the Value parameter accepts numbers of type +/// Double, CloudWatch rejects values that are either too small +/// or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, +/// -Infinity) are not supported.

    +///

    You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension +/// consists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the +/// Amazon CloudWatch User Guide.

    +///

    You specify the time stamp to be associated with each data point. You can specify +/// time stamps that are as much as two weeks before the current date, and as much as 2 hours after +/// the current day and time.

    +///

    Data points with time stamps from 24 hours ago or longer can take at least 48 +/// hours to become available for GetMetricData or +/// GetMetricStatistics from the time they +/// are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available +/// for for GetMetricData or +/// GetMetricStatistics.

    +///

    CloudWatch needs raw data points to calculate percentile statistics. If you publish +/// data using a statistic set instead, you can only retrieve +/// percentile statistics for this data if one of the following conditions is true:

    +///
      +///
    • +///

      The SampleCount value of the statistic set is 1 and Min, +/// Max, and Sum are all equal.

      +///
    • +///
    • +///

      The Min and +/// Max are equal, and Sum is equal to Min +/// multiplied by SampleCount.

      +///
    • +///
    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutMetricData { + _private: (), +} +impl PutMetricData { + /// Creates a new builder-style object to manufacture [`PutMetricDataInput`](crate::input::PutMetricDataInput) + pub fn builder() -> crate::input::put_metric_data_input::Builder { + crate::input::put_metric_data_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutMetricData { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_metric_data_error(response) + } else { + crate::operation_deser::parse_put_metric_data_response(response) + } + } +} + +///

    Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics +/// to AWS destinations including +/// Amazon S3 and to many third-party solutions.

    +///

    For more information, see +/// Using Metric Streams.

    +///

    To create a metric stream, +/// you must be logged on to an account that has the iam:PassRole permission +/// and either the CloudWatchFullAccess +/// policy or the cloudwatch:PutMetricStream +/// permission.

    +///

    When you create or update a metric stream, you choose one of the following:

    +///
      +///
    • +///

      Stream metrics from all metric namespaces in the account.

      +///
    • +///
    • +///

      Stream metrics from all metric namespaces in the account, except +/// for the namespaces that you list in ExcludeFilters.

      +///
    • +///
    • +///

      Stream metrics from only the metric namespaces that you list in +/// IncludeFilters.

      +///
    • +///
    +///

    When you use PutMetricStream to create a new metric stream, the stream +/// is created in the running state. If you use it to update an existing stream, +/// the state of the stream is not changed.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutMetricStream { + _private: (), +} +impl PutMetricStream { + /// Creates a new builder-style object to manufacture [`PutMetricStreamInput`](crate::input::PutMetricStreamInput) + pub fn builder() -> crate::input::put_metric_stream_input::Builder { + crate::input::put_metric_stream_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutMetricStream { + type Output = std::result::Result< + crate::output::PutMetricStreamOutput, + crate::error::PutMetricStreamError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_metric_stream_error(response) + } else { + crate::operation_deser::parse_put_metric_stream_response(response) + } + } +} + +///

    Temporarily sets the state of an alarm for testing purposes. When the updated +/// state differs from the previous value, the action configured for +/// the appropriate state is invoked. For example, if your alarm is configured to send an +/// Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to +/// ALARM sends an SNS message.

    +///

    Metric alarms +/// returns to their actual state quickly, often within seconds. Because the metric alarm state change +/// happens quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through +/// DescribeAlarmHistory.

    +///

    If you use SetAlarmState on a composite alarm, the composite alarm is not guaranteed to return +/// to its actual state. It +/// returns to its actual state only once any of its children alarms change state. It is also +/// reevaluated if you update its +/// configuration.

    +///

    If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, you must include +/// information in the StateReasonData parameter to enable the policy to take the correct action.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct SetAlarmState { + _private: (), +} +impl SetAlarmState { + /// Creates a new builder-style object to manufacture [`SetAlarmStateInput`](crate::input::SetAlarmStateInput) + pub fn builder() -> crate::input::set_alarm_state_input::Builder { + crate::input::set_alarm_state_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for SetAlarmState { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_set_alarm_state_error(response) + } else { + crate::operation_deser::parse_set_alarm_state_response(response) + } + } +} + +///

    Starts the streaming of metrics for one or more of your metric streams.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct StartMetricStreams { + _private: (), +} +impl StartMetricStreams { + /// Creates a new builder-style object to manufacture [`StartMetricStreamsInput`](crate::input::StartMetricStreamsInput) + pub fn builder() -> crate::input::start_metric_streams_input::Builder { + crate::input::start_metric_streams_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for StartMetricStreams { + type Output = std::result::Result< + crate::output::StartMetricStreamsOutput, + crate::error::StartMetricStreamsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_metric_streams_error(response) + } else { + crate::operation_deser::parse_start_metric_streams_response(response) + } + } +} + +///

    Stops the streaming of metrics for one or more of your metric streams.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct StopMetricStreams { + _private: (), +} +impl StopMetricStreams { + /// Creates a new builder-style object to manufacture [`StopMetricStreamsInput`](crate::input::StopMetricStreamsInput) + pub fn builder() -> crate::input::stop_metric_streams_input::Builder { + crate::input::stop_metric_streams_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for StopMetricStreams { + type Output = std::result::Result< + crate::output::StopMetricStreamsOutput, + crate::error::StopMetricStreamsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_metric_streams_error(response) + } else { + crate::operation_deser::parse_stop_metric_streams_response(response) + } + } +} + +///

    Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that +/// can be tagged are alarms and Contributor Insights rules.

    +///

    Tags can help you organize and categorize your resources. You can also use them to scope user +/// permissions by granting a user +/// permission to access or change only resources with certain tag values.

    +///

    Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

    +///

    You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, +/// this tag is appended to the list of tags associated +/// with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces +/// the previous value for that tag.

    +///

    You can associate as many as 50 tags with a CloudWatch resource.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct TagResource { + _private: (), +} +impl TagResource { + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for TagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } + } +} + +///

    Removes one or more tags from the specified resource.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UntagResource { + _private: (), +} +impl UntagResource { + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UntagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } + } +} diff --git a/sdk/cloudwatch/src/operation_deser.rs b/sdk/cloudwatch/src/operation_deser.rs new file mode 100644 index 000000000000..ce849f50ca92 --- /dev/null +++ b/sdk/cloudwatch/src/operation_deser.rs @@ -0,0 +1,2331 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_alarms_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAlarmsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAlarmsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteAlarmsError { + meta: generic, + kind: crate::error::DeleteAlarmsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAlarmsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAlarmsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_alarms_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_alarms_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_anomaly_detector_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAnomalyDetectorOutput, + crate::error::DeleteAnomalyDetectorError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAnomalyDetectorError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAnomalyDetectorError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::DeleteAnomalyDetectorError { + meta: generic, + kind: crate::error::DeleteAnomalyDetectorErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAnomalyDetectorError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::DeleteAnomalyDetectorError { + meta: generic, + kind: crate::error::DeleteAnomalyDetectorErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteAnomalyDetectorError::unhandled)?; + output.build() + }, + ), + } + } + "MissingRequiredParameterException" => crate::error::DeleteAnomalyDetectorError { + meta: generic, + kind: crate::error::DeleteAnomalyDetectorErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteAnomalyDetectorError::unhandled)?; + output.build() + }, + ), + }, + "ResourceNotFoundException" => crate::error::DeleteAnomalyDetectorError { + meta: generic, + kind: crate::error::DeleteAnomalyDetectorErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAnomalyDetectorError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAnomalyDetectorError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_anomaly_detector_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAnomalyDetectorOutput, + crate::error::DeleteAnomalyDetectorError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_anomaly_detector_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_dashboards_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDashboardsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDashboardsError::unhandled(generic)), + }; + Err(match error_code { + "DashboardNotFoundError" => crate::error::DeleteDashboardsError { + meta: generic, + kind: crate::error::DeleteDashboardsErrorKind::DashboardNotFoundError({ + #[allow(unused_mut)] + let mut output = crate::error::dashboard_not_found_error::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_dashboard_not_found_error_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDashboardsError::unhandled)?; + output.build() + }), + }, + "InternalServiceFault" => crate::error::DeleteDashboardsError { + meta: generic, + kind: crate::error::DeleteDashboardsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDashboardsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::DeleteDashboardsError { + meta: generic, + kind: crate::error::DeleteDashboardsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteDashboardsError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::DeleteDashboardsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_dashboards_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_dashboards_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_insight_rules_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteInsightRulesOutput, + crate::error::DeleteInsightRulesError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteInsightRulesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteInsightRulesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterValueException" => { + crate::error::DeleteInsightRulesError { + meta: generic, + kind: crate::error::DeleteInsightRulesErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteInsightRulesError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::DeleteInsightRulesError { + meta: generic, + kind: crate::error::DeleteInsightRulesErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteInsightRulesError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DeleteInsightRulesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_insight_rules_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteInsightRulesOutput, + crate::error::DeleteInsightRulesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_insight_rules_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_delete_insight_rules( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInsightRulesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_metric_stream_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMetricStreamOutput, + crate::error::DeleteMetricStreamError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteMetricStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteMetricStreamError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::DeleteMetricStreamError { + meta: generic, + kind: crate::error::DeleteMetricStreamErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMetricStreamError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::DeleteMetricStreamError { + meta: generic, + kind: crate::error::DeleteMetricStreamErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteMetricStreamError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::DeleteMetricStreamError { + meta: generic, + kind: crate::error::DeleteMetricStreamErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteMetricStreamError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DeleteMetricStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_metric_stream_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMetricStreamOutput, + crate::error::DeleteMetricStreamError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_metric_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarm_history_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAlarmHistoryOutput, + crate::error::DescribeAlarmHistoryError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAlarmHistoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAlarmHistoryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidNextToken" => crate::error::DescribeAlarmHistoryError { + meta: generic, + kind: crate::error::DescribeAlarmHistoryErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAlarmHistoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAlarmHistoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarm_history_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAlarmHistoryOutput, + crate::error::DescribeAlarmHistoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_alarm_history_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_describe_alarm_history( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAlarmHistoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarms_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAlarmsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAlarmsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidNextToken" => crate::error::DescribeAlarmsError { + meta: generic, + kind: crate::error::DescribeAlarmsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAlarmsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAlarmsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarms_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_alarms_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_describe_alarms(response.body().as_ref(), output) + .map_err(crate::error::DescribeAlarmsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarms_for_metric_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAlarmsForMetricOutput, + crate::error::DescribeAlarmsForMetricError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAlarmsForMetricError::unhandled)?; + Err(crate::error::DescribeAlarmsForMetricError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_alarms_for_metric_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAlarmsForMetricOutput, + crate::error::DescribeAlarmsForMetricError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_alarms_for_metric_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_describe_alarms_for_metric( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAlarmsForMetricError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_anomaly_detectors_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAnomalyDetectorsOutput, + crate::error::DescribeAnomalyDetectorsError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAnomalyDetectorsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAnomalyDetectorsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceFault" => crate::error::DescribeAnomalyDetectorsError { + meta: generic, + kind: crate::error::DescribeAnomalyDetectorsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAnomalyDetectorsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeAnomalyDetectorsError { + meta: generic, + kind: crate::error::DescribeAnomalyDetectorsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAnomalyDetectorsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => crate::error::DescribeAnomalyDetectorsError { + meta: generic, + kind: crate::error::DescribeAnomalyDetectorsErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeAnomalyDetectorsError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::DescribeAnomalyDetectorsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_anomaly_detectors_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAnomalyDetectorsOutput, + crate::error::DescribeAnomalyDetectorsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_anomaly_detectors_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_describe_anomaly_detectors( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAnomalyDetectorsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_insight_rules_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInsightRulesOutput, + crate::error::DescribeInsightRulesError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInsightRulesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeInsightRulesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidNextToken" => crate::error::DescribeInsightRulesError { + meta: generic, + kind: crate::error::DescribeInsightRulesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInsightRulesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeInsightRulesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_insight_rules_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInsightRulesOutput, + crate::error::DescribeInsightRulesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_insight_rules_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_describe_insight_rules( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInsightRulesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_alarm_actions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableAlarmActionsOutput, + crate::error::DisableAlarmActionsError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DisableAlarmActionsError::unhandled)?; + Err(crate::error::DisableAlarmActionsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_alarm_actions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableAlarmActionsOutput, + crate::error::DisableAlarmActionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disable_alarm_actions_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_insight_rules_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableInsightRulesOutput, + crate::error::DisableInsightRulesError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::DisableInsightRulesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DisableInsightRulesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterValueException" => { + crate::error::DisableInsightRulesError { + meta: generic, + kind: crate::error::DisableInsightRulesErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DisableInsightRulesError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::DisableInsightRulesError { + meta: generic, + kind: crate::error::DisableInsightRulesErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DisableInsightRulesError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DisableInsightRulesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_insight_rules_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableInsightRulesOutput, + crate::error::DisableInsightRulesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disable_insight_rules_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_disable_insight_rules( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableInsightRulesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_alarm_actions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableAlarmActionsOutput, + crate::error::EnableAlarmActionsError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::EnableAlarmActionsError::unhandled)?; + Err(crate::error::EnableAlarmActionsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_alarm_actions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableAlarmActionsOutput, + crate::error::EnableAlarmActionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::enable_alarm_actions_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_insight_rules_error( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableInsightRulesOutput, + crate::error::EnableInsightRulesError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::EnableInsightRulesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::EnableInsightRulesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterValueException" => { + crate::error::EnableInsightRulesError { + meta: generic, + kind: crate::error::EnableInsightRulesErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableInsightRulesError::unhandled)?; + output.build() + }), + } + } + "LimitExceededException" => crate::error::EnableInsightRulesError { + meta: generic, + kind: crate::error::EnableInsightRulesErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableInsightRulesError::unhandled)?; + output.build() + }), + }, + "MissingRequiredParameterException" => { + crate::error::EnableInsightRulesError { + meta: generic, + kind: crate::error::EnableInsightRulesErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableInsightRulesError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::EnableInsightRulesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_insight_rules_response( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableInsightRulesOutput, + crate::error::EnableInsightRulesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::enable_insight_rules_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_enable_insight_rules( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableInsightRulesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_dashboard_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetDashboardError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetDashboardError::unhandled(generic)), + }; + Err(match error_code { + "DashboardNotFoundError" => crate::error::GetDashboardError { + meta: generic, + kind: crate::error::GetDashboardErrorKind::DashboardNotFoundError({ + #[allow(unused_mut)] + let mut output = crate::error::dashboard_not_found_error::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_dashboard_not_found_error_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDashboardError::unhandled)?; + output.build() + }), + }, + "InternalServiceFault" => crate::error::GetDashboardError { + meta: generic, + kind: crate::error::GetDashboardErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDashboardError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::GetDashboardError { + meta: generic, + kind: crate::error::GetDashboardErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetDashboardError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::GetDashboardError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_dashboard_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_dashboard_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_get_dashboard(response.body().as_ref(), output) + .map_err(crate::error::GetDashboardError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_insight_rule_report_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetInsightRuleReportOutput, + crate::error::GetInsightRuleReportError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetInsightRuleReportError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetInsightRuleReportError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterValueException" => { + crate::error::GetInsightRuleReportError { + meta: generic, + kind: crate::error::GetInsightRuleReportErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetInsightRuleReportError::unhandled)?; + output.build() + }, + ), + } + } + "MissingRequiredParameterException" => { + crate::error::GetInsightRuleReportError { + meta: generic, + kind: + crate::error::GetInsightRuleReportErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)]let mut output = crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetInsightRuleReportError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetInsightRuleReportError { + meta: generic, + kind: crate::error::GetInsightRuleReportErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInsightRuleReportError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetInsightRuleReportError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_insight_rule_report_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetInsightRuleReportOutput, + crate::error::GetInsightRuleReportError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_insight_rule_report_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_get_insight_rule_report( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInsightRuleReportError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_data_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetMetricDataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetMetricDataError::unhandled(generic)), + }; + Err(match error_code { + "InvalidNextToken" => crate::error::GetMetricDataError { + meta: generic, + kind: crate::error::GetMetricDataErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricDataError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMetricDataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_data_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_metric_data_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_get_metric_data(response.body().as_ref(), output) + .map_err(crate::error::GetMetricDataError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_statistics_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMetricStatisticsOutput, + crate::error::GetMetricStatisticsError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetMetricStatisticsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetMetricStatisticsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::GetMetricStatisticsError { + meta: generic, + kind: crate::error::GetMetricStatisticsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricStatisticsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterCombinationException" => crate::error::GetMetricStatisticsError { + meta: generic, + kind: crate::error::GetMetricStatisticsErrorKind::InvalidParameterCombinationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_combination_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStatisticsError::unhandled)?; + output.build() + }, + ), + }, + "InvalidParameterValueException" => { + crate::error::GetMetricStatisticsError { + meta: generic, + kind: crate::error::GetMetricStatisticsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStatisticsError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::GetMetricStatisticsError { + meta: generic, + kind: crate::error::GetMetricStatisticsErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStatisticsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::GetMetricStatisticsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_statistics_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMetricStatisticsOutput, + crate::error::GetMetricStatisticsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_metric_statistics_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_get_metric_statistics( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricStatisticsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetMetricStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetMetricStreamError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::GetMetricStreamError { + meta: generic, + kind: crate::error::GetMetricStreamErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }), + }, + "InvalidParameterCombinationException" => crate::error::GetMetricStreamError { + meta: generic, + kind: crate::error::GetMetricStreamErrorKind::InvalidParameterCombinationException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_combination_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::GetMetricStreamError { + meta: generic, + kind: crate::error::GetMetricStreamErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::GetMetricStreamError { + meta: generic, + kind: crate::error::GetMetricStreamErrorKind::MissingRequiredParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::GetMetricStreamError { + meta: generic, + kind: crate::error::GetMetricStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMetricStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_metric_stream_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_get_metric_stream(response.body().as_ref(), output) + .map_err(crate::error::GetMetricStreamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_widget_image_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMetricWidgetImageOutput, + crate::error::GetMetricWidgetImageError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::GetMetricWidgetImageError::unhandled)?; + Err(crate::error::GetMetricWidgetImageError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_metric_widget_image_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMetricWidgetImageOutput, + crate::error::GetMetricWidgetImageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_metric_widget_image_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_get_metric_widget_image( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMetricWidgetImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_dashboards_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::ListDashboardsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListDashboardsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::ListDashboardsError { + meta: generic, + kind: crate::error::ListDashboardsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDashboardsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::ListDashboardsError { + meta: generic, + kind: crate::error::ListDashboardsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListDashboardsError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::ListDashboardsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_dashboards_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_dashboards_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_list_dashboards(response.body().as_ref(), output) + .map_err(crate::error::ListDashboardsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_metrics_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::ListMetricsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListMetricsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::ListMetricsError { + meta: generic, + kind: crate::error::ListMetricsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMetricsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::ListMetricsError { + meta: generic, + kind: crate::error::ListMetricsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListMetricsError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::ListMetricsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_metrics_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_metrics_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_list_metrics(response.body().as_ref(), output) + .map_err(crate::error::ListMetricsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_metric_streams_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::ListMetricStreamsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListMetricStreamsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::ListMetricStreamsError { + meta: generic, + kind: crate::error::ListMetricStreamsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMetricStreamsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListMetricStreamsError { + meta: generic, + kind: crate::error::ListMetricStreamsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_next_token_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMetricStreamsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::ListMetricStreamsError { + meta: generic, + kind: crate::error::ListMetricStreamsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListMetricStreamsError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::ListMetricStreamsError { + meta: generic, + kind: crate::error::ListMetricStreamsErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListMetricStreamsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::ListMetricStreamsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_metric_streams_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_metric_streams_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_list_metric_streams(response.body().as_ref(), output) + .map_err(crate::error::ListMetricStreamsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_resource_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_list_tags_for_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_anomaly_detector_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutAnomalyDetectorOutput, + crate::error::PutAnomalyDetectorError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutAnomalyDetectorError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutAnomalyDetectorError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::PutAnomalyDetectorError { + meta: generic, + kind: crate::error::PutAnomalyDetectorErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAnomalyDetectorError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::PutAnomalyDetectorError { + meta: generic, + kind: crate::error::PutAnomalyDetectorErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutAnomalyDetectorError::unhandled)?; + output.build() + }), + } + } + "LimitExceededException" => crate::error::PutAnomalyDetectorError { + meta: generic, + kind: crate::error::PutAnomalyDetectorErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAnomalyDetectorError::unhandled)?; + output.build() + }), + }, + "MissingRequiredParameterException" => { + crate::error::PutAnomalyDetectorError { + meta: generic, + kind: crate::error::PutAnomalyDetectorErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutAnomalyDetectorError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::PutAnomalyDetectorError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_anomaly_detector_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutAnomalyDetectorOutput, + crate::error::PutAnomalyDetectorError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_anomaly_detector_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_composite_alarm_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutCompositeAlarmError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutCompositeAlarmError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededFault" => crate::error::PutCompositeAlarmError { + meta: generic, + kind: crate::error::PutCompositeAlarmErrorKind::LimitExceededFault({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutCompositeAlarmError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutCompositeAlarmError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_composite_alarm_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_composite_alarm_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_dashboard_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutDashboardError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutDashboardError::unhandled(generic)), + }; + Err(match error_code { + "DashboardInvalidInputError" => crate::error::PutDashboardError { + meta: generic, + kind: crate::error::PutDashboardErrorKind::DashboardInvalidInputError({ + #[allow(unused_mut)] + let mut output = crate::error::dashboard_invalid_input_error::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_dashboard_invalid_input_error_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDashboardError::unhandled)?; + output.build() + }), + }, + "InternalServiceFault" => crate::error::PutDashboardError { + meta: generic, + kind: crate::error::PutDashboardErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDashboardError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutDashboardError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_dashboard_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_dashboard_output::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_operation_put_dashboard(response.body().as_ref(), output) + .map_err(crate::error::PutDashboardError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_insight_rule_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutInsightRuleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutInsightRuleError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterValueException" => { + crate::error::PutInsightRuleError { + meta: generic, + kind: crate::error::PutInsightRuleErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutInsightRuleError::unhandled)?; + output.build() + }), + } + } + "LimitExceededException" => crate::error::PutInsightRuleError { + meta: generic, + kind: crate::error::PutInsightRuleErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInsightRuleError::unhandled)?; + output.build() + }), + }, + "MissingRequiredParameterException" => { + crate::error::PutInsightRuleError { + meta: generic, + kind: crate::error::PutInsightRuleErrorKind::MissingRequiredParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutInsightRuleError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::PutInsightRuleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_insight_rule_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_insight_rule_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_alarm_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutMetricAlarmError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutMetricAlarmError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededFault" => crate::error::PutMetricAlarmError { + meta: generic, + kind: crate::error::PutMetricAlarmErrorKind::LimitExceededFault({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricAlarmError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutMetricAlarmError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_alarm_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_metric_alarm_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_data_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutMetricDataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutMetricDataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::PutMetricDataError { + meta: generic, + kind: crate::error::PutMetricDataErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricDataError::unhandled)?; + output.build() + }), + }, + "InvalidParameterCombinationException" => crate::error::PutMetricDataError { + meta: generic, + kind: crate::error::PutMetricDataErrorKind::InvalidParameterCombinationException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_combination_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricDataError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::PutMetricDataError { + meta: generic, + kind: crate::error::PutMetricDataErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricDataError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::PutMetricDataError { + meta: generic, + kind: crate::error::PutMetricDataErrorKind::MissingRequiredParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricDataError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::PutMetricDataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_data_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_metric_data_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::PutMetricStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutMetricStreamError::unhandled(generic)), + }; + Err(match error_code { + "ConcurrentModificationException" => { + crate::error::PutMetricStreamError { + meta: generic, + kind: crate::error::PutMetricStreamErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }), + } + } + "InternalServiceFault" => crate::error::PutMetricStreamError { + meta: generic, + kind: crate::error::PutMetricStreamErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }), + }, + "InvalidParameterCombinationException" => crate::error::PutMetricStreamError { + meta: generic, + kind: crate::error::PutMetricStreamErrorKind::InvalidParameterCombinationException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_combination_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::PutMetricStreamError { + meta: generic, + kind: crate::error::PutMetricStreamErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::PutMetricStreamError { + meta: generic, + kind: crate::error::PutMetricStreamErrorKind::MissingRequiredParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::PutMetricStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_metric_stream_output::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_operation_put_metric_stream(response.body().as_ref(), output) + .map_err(crate::error::PutMetricStreamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_set_alarm_state_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::SetAlarmStateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SetAlarmStateError::unhandled(generic)), + }; + Err(match error_code { + "InvalidFormatFault" => crate::error::SetAlarmStateError { + meta: generic, + kind: crate::error::SetAlarmStateErrorKind::InvalidFormatFault({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_format_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_format_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetAlarmStateError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::SetAlarmStateError { + meta: generic, + kind: crate::error::SetAlarmStateErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetAlarmStateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SetAlarmStateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_set_alarm_state_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::set_alarm_state_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_metric_streams_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartMetricStreamsOutput, + crate::error::StartMetricStreamsError, +> { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::StartMetricStreamsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartMetricStreamsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::StartMetricStreamsError { + meta: generic, + kind: crate::error::StartMetricStreamsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMetricStreamsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::StartMetricStreamsError { + meta: generic, + kind: crate::error::StartMetricStreamsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::StartMetricStreamsError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::StartMetricStreamsError { + meta: generic, + kind: crate::error::StartMetricStreamsErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::StartMetricStreamsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::StartMetricStreamsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_metric_streams_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartMetricStreamsOutput, + crate::error::StartMetricStreamsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_metric_streams_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_metric_streams_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::StopMetricStreamsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopMetricStreamsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceFault" => crate::error::StopMetricStreamsError { + meta: generic, + kind: crate::error::StopMetricStreamsErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMetricStreamsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::StopMetricStreamsError { + meta: generic, + kind: crate::error::StopMetricStreamsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::StopMetricStreamsError::unhandled)?; + output.build() + }), + } + } + "MissingRequiredParameterException" => { + crate::error::StopMetricStreamsError { + meta: generic, + kind: crate::error::StopMetricStreamsErrorKind::MissingRequiredParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::missing_required_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_missing_required_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::StopMetricStreamsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::StopMetricStreamsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_metric_streams_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_metric_streams_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "ConcurrentModificationException" => { + crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + } + } + "InternalServiceFault" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::xml_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "ConcurrentModificationException" => { + crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + } + } + "InternalServiceFault" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InternalServiceFault({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_fault::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_service_fault_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterValueException" => { + crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} diff --git a/sdk/cloudwatch/src/operation_ser.rs b/sdk/cloudwatch/src/operation_ser.rs new file mode 100644 index 000000000000..457144b8ebc5 --- /dev/null +++ b/sdk/cloudwatch/src/operation_ser.rs @@ -0,0 +1,1339 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn serialize_operation_delete_alarms( + input: &crate::input::DeleteAlarmsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteAlarms", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_1 = writer.prefix("AlarmNames"); + if let Some(var_2) = &input.alarm_names { + let mut list_4 = scope_1.start_list(false, None); + for item_3 in var_2 { + #[allow(unused_mut)] + let mut entry_5 = list_4.entry(); + entry_5.string(item_3); + } + list_4.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_anomaly_detector( + input: &crate::input::DeleteAnomalyDetectorInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = + smithy_query::QueryWriter::new(&mut out, "DeleteAnomalyDetector", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_6 = writer.prefix("Namespace"); + if let Some(var_7) = &input.namespace { + scope_6.string(var_7); + } + #[allow(unused_mut)] + let mut scope_8 = writer.prefix("MetricName"); + if let Some(var_9) = &input.metric_name { + scope_8.string(var_9); + } + #[allow(unused_mut)] + let mut scope_10 = writer.prefix("Dimensions"); + if let Some(var_11) = &input.dimensions { + let mut list_13 = scope_10.start_list(false, None); + for item_12 in var_11 { + #[allow(unused_mut)] + let mut entry_14 = list_13.entry(); + crate::query_ser::serialize_structure_dimension(entry_14, item_12); + } + list_13.finish(); + } + #[allow(unused_mut)] + let mut scope_15 = writer.prefix("Stat"); + if let Some(var_16) = &input.stat { + scope_15.string(var_16); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_dashboards( + input: &crate::input::DeleteDashboardsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDashboards", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_17 = writer.prefix("DashboardNames"); + if let Some(var_18) = &input.dashboard_names { + let mut list_20 = scope_17.start_list(false, None); + for item_19 in var_18 { + #[allow(unused_mut)] + let mut entry_21 = list_20.entry(); + entry_21.string(item_19); + } + list_20.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_insight_rules( + input: &crate::input::DeleteInsightRulesInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteInsightRules", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_22 = writer.prefix("RuleNames"); + if let Some(var_23) = &input.rule_names { + let mut list_25 = scope_22.start_list(false, None); + for item_24 in var_23 { + #[allow(unused_mut)] + let mut entry_26 = list_25.entry(); + entry_26.string(item_24); + } + list_25.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_metric_stream( + input: &crate::input::DeleteMetricStreamInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteMetricStream", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_27 = writer.prefix("Name"); + if let Some(var_28) = &input.name { + scope_27.string(var_28); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_alarm_history( + input: &crate::input::DescribeAlarmHistoryInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeAlarmHistory", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_29 = writer.prefix("AlarmName"); + if let Some(var_30) = &input.alarm_name { + scope_29.string(var_30); + } + #[allow(unused_mut)] + let mut scope_31 = writer.prefix("AlarmTypes"); + if let Some(var_32) = &input.alarm_types { + let mut list_34 = scope_31.start_list(false, None); + for item_33 in var_32 { + #[allow(unused_mut)] + let mut entry_35 = list_34.entry(); + entry_35.string(item_33.as_str()); + } + list_34.finish(); + } + #[allow(unused_mut)] + let mut scope_36 = writer.prefix("HistoryItemType"); + if let Some(var_37) = &input.history_item_type { + scope_36.string(var_37.as_str()); + } + #[allow(unused_mut)] + let mut scope_38 = writer.prefix("StartDate"); + if let Some(var_39) = &input.start_date { + scope_38.instant(var_39, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_40 = writer.prefix("EndDate"); + if let Some(var_41) = &input.end_date { + scope_40.instant(var_41, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_42 = writer.prefix("MaxRecords"); + if let Some(var_43) = &input.max_records { + scope_42.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_43).into()), + ); + } + #[allow(unused_mut)] + let mut scope_44 = writer.prefix("NextToken"); + if let Some(var_45) = &input.next_token { + scope_44.string(var_45); + } + #[allow(unused_mut)] + let mut scope_46 = writer.prefix("ScanBy"); + if let Some(var_47) = &input.scan_by { + scope_46.string(var_47.as_str()); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_alarms( + input: &crate::input::DescribeAlarmsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeAlarms", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_48 = writer.prefix("AlarmNames"); + if let Some(var_49) = &input.alarm_names { + let mut list_51 = scope_48.start_list(false, None); + for item_50 in var_49 { + #[allow(unused_mut)] + let mut entry_52 = list_51.entry(); + entry_52.string(item_50); + } + list_51.finish(); + } + #[allow(unused_mut)] + let mut scope_53 = writer.prefix("AlarmNamePrefix"); + if let Some(var_54) = &input.alarm_name_prefix { + scope_53.string(var_54); + } + #[allow(unused_mut)] + let mut scope_55 = writer.prefix("AlarmTypes"); + if let Some(var_56) = &input.alarm_types { + let mut list_58 = scope_55.start_list(false, None); + for item_57 in var_56 { + #[allow(unused_mut)] + let mut entry_59 = list_58.entry(); + entry_59.string(item_57.as_str()); + } + list_58.finish(); + } + #[allow(unused_mut)] + let mut scope_60 = writer.prefix("ChildrenOfAlarmName"); + if let Some(var_61) = &input.children_of_alarm_name { + scope_60.string(var_61); + } + #[allow(unused_mut)] + let mut scope_62 = writer.prefix("ParentsOfAlarmName"); + if let Some(var_63) = &input.parents_of_alarm_name { + scope_62.string(var_63); + } + #[allow(unused_mut)] + let mut scope_64 = writer.prefix("StateValue"); + if let Some(var_65) = &input.state_value { + scope_64.string(var_65.as_str()); + } + #[allow(unused_mut)] + let mut scope_66 = writer.prefix("ActionPrefix"); + if let Some(var_67) = &input.action_prefix { + scope_66.string(var_67); + } + #[allow(unused_mut)] + let mut scope_68 = writer.prefix("MaxRecords"); + if let Some(var_69) = &input.max_records { + scope_68.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_69).into()), + ); + } + #[allow(unused_mut)] + let mut scope_70 = writer.prefix("NextToken"); + if let Some(var_71) = &input.next_token { + scope_70.string(var_71); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_alarms_for_metric( + input: &crate::input::DescribeAlarmsForMetricInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = + smithy_query::QueryWriter::new(&mut out, "DescribeAlarmsForMetric", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_72 = writer.prefix("MetricName"); + if let Some(var_73) = &input.metric_name { + scope_72.string(var_73); + } + #[allow(unused_mut)] + let mut scope_74 = writer.prefix("Namespace"); + if let Some(var_75) = &input.namespace { + scope_74.string(var_75); + } + #[allow(unused_mut)] + let mut scope_76 = writer.prefix("Statistic"); + if let Some(var_77) = &input.statistic { + scope_76.string(var_77.as_str()); + } + #[allow(unused_mut)] + let mut scope_78 = writer.prefix("ExtendedStatistic"); + if let Some(var_79) = &input.extended_statistic { + scope_78.string(var_79); + } + #[allow(unused_mut)] + let mut scope_80 = writer.prefix("Dimensions"); + if let Some(var_81) = &input.dimensions { + let mut list_83 = scope_80.start_list(false, None); + for item_82 in var_81 { + #[allow(unused_mut)] + let mut entry_84 = list_83.entry(); + crate::query_ser::serialize_structure_dimension(entry_84, item_82); + } + list_83.finish(); + } + #[allow(unused_mut)] + let mut scope_85 = writer.prefix("Period"); + if let Some(var_86) = &input.period { + scope_85.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_86).into()), + ); + } + #[allow(unused_mut)] + let mut scope_87 = writer.prefix("Unit"); + if let Some(var_88) = &input.unit { + scope_87.string(var_88.as_str()); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_anomaly_detectors( + input: &crate::input::DescribeAnomalyDetectorsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = + smithy_query::QueryWriter::new(&mut out, "DescribeAnomalyDetectors", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_89 = writer.prefix("NextToken"); + if let Some(var_90) = &input.next_token { + scope_89.string(var_90); + } + #[allow(unused_mut)] + let mut scope_91 = writer.prefix("MaxResults"); + if let Some(var_92) = &input.max_results { + scope_91.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_92).into()), + ); + } + #[allow(unused_mut)] + let mut scope_93 = writer.prefix("Namespace"); + if let Some(var_94) = &input.namespace { + scope_93.string(var_94); + } + #[allow(unused_mut)] + let mut scope_95 = writer.prefix("MetricName"); + if let Some(var_96) = &input.metric_name { + scope_95.string(var_96); + } + #[allow(unused_mut)] + let mut scope_97 = writer.prefix("Dimensions"); + if let Some(var_98) = &input.dimensions { + let mut list_100 = scope_97.start_list(false, None); + for item_99 in var_98 { + #[allow(unused_mut)] + let mut entry_101 = list_100.entry(); + crate::query_ser::serialize_structure_dimension(entry_101, item_99); + } + list_100.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_insight_rules( + input: &crate::input::DescribeInsightRulesInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeInsightRules", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_102 = writer.prefix("NextToken"); + if let Some(var_103) = &input.next_token { + scope_102.string(var_103); + } + #[allow(unused_mut)] + let mut scope_104 = writer.prefix("MaxResults"); + if let Some(var_105) = &input.max_results { + scope_104.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_105).into()), + ); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_disable_alarm_actions( + input: &crate::input::DisableAlarmActionsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DisableAlarmActions", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_106 = writer.prefix("AlarmNames"); + if let Some(var_107) = &input.alarm_names { + let mut list_109 = scope_106.start_list(false, None); + for item_108 in var_107 { + #[allow(unused_mut)] + let mut entry_110 = list_109.entry(); + entry_110.string(item_108); + } + list_109.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_disable_insight_rules( + input: &crate::input::DisableInsightRulesInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "DisableInsightRules", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_111 = writer.prefix("RuleNames"); + if let Some(var_112) = &input.rule_names { + let mut list_114 = scope_111.start_list(false, None); + for item_113 in var_112 { + #[allow(unused_mut)] + let mut entry_115 = list_114.entry(); + entry_115.string(item_113); + } + list_114.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_enable_alarm_actions( + input: &crate::input::EnableAlarmActionsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "EnableAlarmActions", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_116 = writer.prefix("AlarmNames"); + if let Some(var_117) = &input.alarm_names { + let mut list_119 = scope_116.start_list(false, None); + for item_118 in var_117 { + #[allow(unused_mut)] + let mut entry_120 = list_119.entry(); + entry_120.string(item_118); + } + list_119.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_enable_insight_rules( + input: &crate::input::EnableInsightRulesInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "EnableInsightRules", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_121 = writer.prefix("RuleNames"); + if let Some(var_122) = &input.rule_names { + let mut list_124 = scope_121.start_list(false, None); + for item_123 in var_122 { + #[allow(unused_mut)] + let mut entry_125 = list_124.entry(); + entry_125.string(item_123); + } + list_124.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_dashboard( + input: &crate::input::GetDashboardInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetDashboard", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_126 = writer.prefix("DashboardName"); + if let Some(var_127) = &input.dashboard_name { + scope_126.string(var_127); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_insight_rule_report( + input: &crate::input::GetInsightRuleReportInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetInsightRuleReport", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_128 = writer.prefix("RuleName"); + if let Some(var_129) = &input.rule_name { + scope_128.string(var_129); + } + #[allow(unused_mut)] + let mut scope_130 = writer.prefix("StartTime"); + if let Some(var_131) = &input.start_time { + scope_130.instant(var_131, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_132 = writer.prefix("EndTime"); + if let Some(var_133) = &input.end_time { + scope_132.instant(var_133, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_134 = writer.prefix("Period"); + if let Some(var_135) = &input.period { + scope_134.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_135).into()), + ); + } + #[allow(unused_mut)] + let mut scope_136 = writer.prefix("MaxContributorCount"); + if let Some(var_137) = &input.max_contributor_count { + scope_136.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_137).into()), + ); + } + #[allow(unused_mut)] + let mut scope_138 = writer.prefix("Metrics"); + if let Some(var_139) = &input.metrics { + let mut list_141 = scope_138.start_list(false, None); + for item_140 in var_139 { + #[allow(unused_mut)] + let mut entry_142 = list_141.entry(); + entry_142.string(item_140); + } + list_141.finish(); + } + #[allow(unused_mut)] + let mut scope_143 = writer.prefix("OrderBy"); + if let Some(var_144) = &input.order_by { + scope_143.string(var_144); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_metric_data( + input: &crate::input::GetMetricDataInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetMetricData", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_145 = writer.prefix("MetricDataQueries"); + if let Some(var_146) = &input.metric_data_queries { + let mut list_148 = scope_145.start_list(false, None); + for item_147 in var_146 { + #[allow(unused_mut)] + let mut entry_149 = list_148.entry(); + crate::query_ser::serialize_structure_metric_data_query(entry_149, item_147); + } + list_148.finish(); + } + #[allow(unused_mut)] + let mut scope_150 = writer.prefix("StartTime"); + if let Some(var_151) = &input.start_time { + scope_150.instant(var_151, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_152 = writer.prefix("EndTime"); + if let Some(var_153) = &input.end_time { + scope_152.instant(var_153, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_154 = writer.prefix("NextToken"); + if let Some(var_155) = &input.next_token { + scope_154.string(var_155); + } + #[allow(unused_mut)] + let mut scope_156 = writer.prefix("ScanBy"); + if let Some(var_157) = &input.scan_by { + scope_156.string(var_157.as_str()); + } + #[allow(unused_mut)] + let mut scope_158 = writer.prefix("MaxDatapoints"); + if let Some(var_159) = &input.max_datapoints { + scope_158.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_159).into()), + ); + } + #[allow(unused_mut)] + let mut scope_160 = writer.prefix("LabelOptions"); + if let Some(var_161) = &input.label_options { + crate::query_ser::serialize_structure_label_options(scope_160, var_161); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_metric_statistics( + input: &crate::input::GetMetricStatisticsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetMetricStatistics", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_162 = writer.prefix("Namespace"); + if let Some(var_163) = &input.namespace { + scope_162.string(var_163); + } + #[allow(unused_mut)] + let mut scope_164 = writer.prefix("MetricName"); + if let Some(var_165) = &input.metric_name { + scope_164.string(var_165); + } + #[allow(unused_mut)] + let mut scope_166 = writer.prefix("Dimensions"); + if let Some(var_167) = &input.dimensions { + let mut list_169 = scope_166.start_list(false, None); + for item_168 in var_167 { + #[allow(unused_mut)] + let mut entry_170 = list_169.entry(); + crate::query_ser::serialize_structure_dimension(entry_170, item_168); + } + list_169.finish(); + } + #[allow(unused_mut)] + let mut scope_171 = writer.prefix("StartTime"); + if let Some(var_172) = &input.start_time { + scope_171.instant(var_172, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_173 = writer.prefix("EndTime"); + if let Some(var_174) = &input.end_time { + scope_173.instant(var_174, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_175 = writer.prefix("Period"); + if let Some(var_176) = &input.period { + scope_175.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_176).into()), + ); + } + #[allow(unused_mut)] + let mut scope_177 = writer.prefix("Statistics"); + if let Some(var_178) = &input.statistics { + let mut list_180 = scope_177.start_list(false, None); + for item_179 in var_178 { + #[allow(unused_mut)] + let mut entry_181 = list_180.entry(); + entry_181.string(item_179.as_str()); + } + list_180.finish(); + } + #[allow(unused_mut)] + let mut scope_182 = writer.prefix("ExtendedStatistics"); + if let Some(var_183) = &input.extended_statistics { + let mut list_185 = scope_182.start_list(false, None); + for item_184 in var_183 { + #[allow(unused_mut)] + let mut entry_186 = list_185.entry(); + entry_186.string(item_184); + } + list_185.finish(); + } + #[allow(unused_mut)] + let mut scope_187 = writer.prefix("Unit"); + if let Some(var_188) = &input.unit { + scope_187.string(var_188.as_str()); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_metric_stream( + input: &crate::input::GetMetricStreamInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetMetricStream", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_189 = writer.prefix("Name"); + if let Some(var_190) = &input.name { + scope_189.string(var_190); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_metric_widget_image( + input: &crate::input::GetMetricWidgetImageInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "GetMetricWidgetImage", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_191 = writer.prefix("MetricWidget"); + if let Some(var_192) = &input.metric_widget { + scope_191.string(var_192); + } + #[allow(unused_mut)] + let mut scope_193 = writer.prefix("OutputFormat"); + if let Some(var_194) = &input.output_format { + scope_193.string(var_194); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_dashboards( + input: &crate::input::ListDashboardsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "ListDashboards", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_195 = writer.prefix("DashboardNamePrefix"); + if let Some(var_196) = &input.dashboard_name_prefix { + scope_195.string(var_196); + } + #[allow(unused_mut)] + let mut scope_197 = writer.prefix("NextToken"); + if let Some(var_198) = &input.next_token { + scope_197.string(var_198); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_metrics( + input: &crate::input::ListMetricsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "ListMetrics", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_199 = writer.prefix("Namespace"); + if let Some(var_200) = &input.namespace { + scope_199.string(var_200); + } + #[allow(unused_mut)] + let mut scope_201 = writer.prefix("MetricName"); + if let Some(var_202) = &input.metric_name { + scope_201.string(var_202); + } + #[allow(unused_mut)] + let mut scope_203 = writer.prefix("Dimensions"); + if let Some(var_204) = &input.dimensions { + let mut list_206 = scope_203.start_list(false, None); + for item_205 in var_204 { + #[allow(unused_mut)] + let mut entry_207 = list_206.entry(); + crate::query_ser::serialize_structure_dimension_filter(entry_207, item_205); + } + list_206.finish(); + } + #[allow(unused_mut)] + let mut scope_208 = writer.prefix("NextToken"); + if let Some(var_209) = &input.next_token { + scope_208.string(var_209); + } + #[allow(unused_mut)] + let mut scope_210 = writer.prefix("RecentlyActive"); + if let Some(var_211) = &input.recently_active { + scope_210.string(var_211.as_str()); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_metric_streams( + input: &crate::input::ListMetricStreamsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "ListMetricStreams", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_212 = writer.prefix("NextToken"); + if let Some(var_213) = &input.next_token { + scope_212.string(var_213); + } + #[allow(unused_mut)] + let mut scope_214 = writer.prefix("MaxResults"); + if let Some(var_215) = &input.max_results { + scope_214.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_215).into()), + ); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_tags_for_resource( + input: &crate::input::ListTagsForResourceInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTagsForResource", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_216 = writer.prefix("ResourceARN"); + if let Some(var_217) = &input.resource_arn { + scope_216.string(var_217); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_anomaly_detector( + input: &crate::input::PutAnomalyDetectorInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutAnomalyDetector", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_218 = writer.prefix("Namespace"); + if let Some(var_219) = &input.namespace { + scope_218.string(var_219); + } + #[allow(unused_mut)] + let mut scope_220 = writer.prefix("MetricName"); + if let Some(var_221) = &input.metric_name { + scope_220.string(var_221); + } + #[allow(unused_mut)] + let mut scope_222 = writer.prefix("Dimensions"); + if let Some(var_223) = &input.dimensions { + let mut list_225 = scope_222.start_list(false, None); + for item_224 in var_223 { + #[allow(unused_mut)] + let mut entry_226 = list_225.entry(); + crate::query_ser::serialize_structure_dimension(entry_226, item_224); + } + list_225.finish(); + } + #[allow(unused_mut)] + let mut scope_227 = writer.prefix("Stat"); + if let Some(var_228) = &input.stat { + scope_227.string(var_228); + } + #[allow(unused_mut)] + let mut scope_229 = writer.prefix("Configuration"); + if let Some(var_230) = &input.configuration { + crate::query_ser::serialize_structure_anomaly_detector_configuration(scope_229, var_230); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_composite_alarm( + input: &crate::input::PutCompositeAlarmInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutCompositeAlarm", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_231 = writer.prefix("ActionsEnabled"); + if let Some(var_232) = &input.actions_enabled { + scope_231.boolean(*var_232); + } + #[allow(unused_mut)] + let mut scope_233 = writer.prefix("AlarmActions"); + if let Some(var_234) = &input.alarm_actions { + let mut list_236 = scope_233.start_list(false, None); + for item_235 in var_234 { + #[allow(unused_mut)] + let mut entry_237 = list_236.entry(); + entry_237.string(item_235); + } + list_236.finish(); + } + #[allow(unused_mut)] + let mut scope_238 = writer.prefix("AlarmDescription"); + if let Some(var_239) = &input.alarm_description { + scope_238.string(var_239); + } + #[allow(unused_mut)] + let mut scope_240 = writer.prefix("AlarmName"); + if let Some(var_241) = &input.alarm_name { + scope_240.string(var_241); + } + #[allow(unused_mut)] + let mut scope_242 = writer.prefix("AlarmRule"); + if let Some(var_243) = &input.alarm_rule { + scope_242.string(var_243); + } + #[allow(unused_mut)] + let mut scope_244 = writer.prefix("InsufficientDataActions"); + if let Some(var_245) = &input.insufficient_data_actions { + let mut list_247 = scope_244.start_list(false, None); + for item_246 in var_245 { + #[allow(unused_mut)] + let mut entry_248 = list_247.entry(); + entry_248.string(item_246); + } + list_247.finish(); + } + #[allow(unused_mut)] + let mut scope_249 = writer.prefix("OKActions"); + if let Some(var_250) = &input.ok_actions { + let mut list_252 = scope_249.start_list(false, None); + for item_251 in var_250 { + #[allow(unused_mut)] + let mut entry_253 = list_252.entry(); + entry_253.string(item_251); + } + list_252.finish(); + } + #[allow(unused_mut)] + let mut scope_254 = writer.prefix("Tags"); + if let Some(var_255) = &input.tags { + let mut list_257 = scope_254.start_list(false, None); + for item_256 in var_255 { + #[allow(unused_mut)] + let mut entry_258 = list_257.entry(); + crate::query_ser::serialize_structure_tag(entry_258, item_256); + } + list_257.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_dashboard( + input: &crate::input::PutDashboardInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutDashboard", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_259 = writer.prefix("DashboardName"); + if let Some(var_260) = &input.dashboard_name { + scope_259.string(var_260); + } + #[allow(unused_mut)] + let mut scope_261 = writer.prefix("DashboardBody"); + if let Some(var_262) = &input.dashboard_body { + scope_261.string(var_262); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_insight_rule( + input: &crate::input::PutInsightRuleInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutInsightRule", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_263 = writer.prefix("RuleName"); + if let Some(var_264) = &input.rule_name { + scope_263.string(var_264); + } + #[allow(unused_mut)] + let mut scope_265 = writer.prefix("RuleState"); + if let Some(var_266) = &input.rule_state { + scope_265.string(var_266); + } + #[allow(unused_mut)] + let mut scope_267 = writer.prefix("RuleDefinition"); + if let Some(var_268) = &input.rule_definition { + scope_267.string(var_268); + } + #[allow(unused_mut)] + let mut scope_269 = writer.prefix("Tags"); + if let Some(var_270) = &input.tags { + let mut list_272 = scope_269.start_list(false, None); + for item_271 in var_270 { + #[allow(unused_mut)] + let mut entry_273 = list_272.entry(); + crate::query_ser::serialize_structure_tag(entry_273, item_271); + } + list_272.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_metric_alarm( + input: &crate::input::PutMetricAlarmInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutMetricAlarm", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_274 = writer.prefix("AlarmName"); + if let Some(var_275) = &input.alarm_name { + scope_274.string(var_275); + } + #[allow(unused_mut)] + let mut scope_276 = writer.prefix("AlarmDescription"); + if let Some(var_277) = &input.alarm_description { + scope_276.string(var_277); + } + #[allow(unused_mut)] + let mut scope_278 = writer.prefix("ActionsEnabled"); + if let Some(var_279) = &input.actions_enabled { + scope_278.boolean(*var_279); + } + #[allow(unused_mut)] + let mut scope_280 = writer.prefix("OKActions"); + if let Some(var_281) = &input.ok_actions { + let mut list_283 = scope_280.start_list(false, None); + for item_282 in var_281 { + #[allow(unused_mut)] + let mut entry_284 = list_283.entry(); + entry_284.string(item_282); + } + list_283.finish(); + } + #[allow(unused_mut)] + let mut scope_285 = writer.prefix("AlarmActions"); + if let Some(var_286) = &input.alarm_actions { + let mut list_288 = scope_285.start_list(false, None); + for item_287 in var_286 { + #[allow(unused_mut)] + let mut entry_289 = list_288.entry(); + entry_289.string(item_287); + } + list_288.finish(); + } + #[allow(unused_mut)] + let mut scope_290 = writer.prefix("InsufficientDataActions"); + if let Some(var_291) = &input.insufficient_data_actions { + let mut list_293 = scope_290.start_list(false, None); + for item_292 in var_291 { + #[allow(unused_mut)] + let mut entry_294 = list_293.entry(); + entry_294.string(item_292); + } + list_293.finish(); + } + #[allow(unused_mut)] + let mut scope_295 = writer.prefix("MetricName"); + if let Some(var_296) = &input.metric_name { + scope_295.string(var_296); + } + #[allow(unused_mut)] + let mut scope_297 = writer.prefix("Namespace"); + if let Some(var_298) = &input.namespace { + scope_297.string(var_298); + } + #[allow(unused_mut)] + let mut scope_299 = writer.prefix("Statistic"); + if let Some(var_300) = &input.statistic { + scope_299.string(var_300.as_str()); + } + #[allow(unused_mut)] + let mut scope_301 = writer.prefix("ExtendedStatistic"); + if let Some(var_302) = &input.extended_statistic { + scope_301.string(var_302); + } + #[allow(unused_mut)] + let mut scope_303 = writer.prefix("Dimensions"); + if let Some(var_304) = &input.dimensions { + let mut list_306 = scope_303.start_list(false, None); + for item_305 in var_304 { + #[allow(unused_mut)] + let mut entry_307 = list_306.entry(); + crate::query_ser::serialize_structure_dimension(entry_307, item_305); + } + list_306.finish(); + } + #[allow(unused_mut)] + let mut scope_308 = writer.prefix("Period"); + if let Some(var_309) = &input.period { + scope_308.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_309).into()), + ); + } + #[allow(unused_mut)] + let mut scope_310 = writer.prefix("Unit"); + if let Some(var_311) = &input.unit { + scope_310.string(var_311.as_str()); + } + #[allow(unused_mut)] + let mut scope_312 = writer.prefix("EvaluationPeriods"); + if let Some(var_313) = &input.evaluation_periods { + scope_312.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_313).into()), + ); + } + #[allow(unused_mut)] + let mut scope_314 = writer.prefix("DatapointsToAlarm"); + if let Some(var_315) = &input.datapoints_to_alarm { + scope_314.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_315).into()), + ); + } + #[allow(unused_mut)] + let mut scope_316 = writer.prefix("Threshold"); + if let Some(var_317) = &input.threshold { + scope_316.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_317).into()), + ); + } + #[allow(unused_mut)] + let mut scope_318 = writer.prefix("ComparisonOperator"); + if let Some(var_319) = &input.comparison_operator { + scope_318.string(var_319.as_str()); + } + #[allow(unused_mut)] + let mut scope_320 = writer.prefix("TreatMissingData"); + if let Some(var_321) = &input.treat_missing_data { + scope_320.string(var_321); + } + #[allow(unused_mut)] + let mut scope_322 = writer.prefix("EvaluateLowSampleCountPercentile"); + if let Some(var_323) = &input.evaluate_low_sample_count_percentile { + scope_322.string(var_323); + } + #[allow(unused_mut)] + let mut scope_324 = writer.prefix("Metrics"); + if let Some(var_325) = &input.metrics { + let mut list_327 = scope_324.start_list(false, None); + for item_326 in var_325 { + #[allow(unused_mut)] + let mut entry_328 = list_327.entry(); + crate::query_ser::serialize_structure_metric_data_query(entry_328, item_326); + } + list_327.finish(); + } + #[allow(unused_mut)] + let mut scope_329 = writer.prefix("Tags"); + if let Some(var_330) = &input.tags { + let mut list_332 = scope_329.start_list(false, None); + for item_331 in var_330 { + #[allow(unused_mut)] + let mut entry_333 = list_332.entry(); + crate::query_ser::serialize_structure_tag(entry_333, item_331); + } + list_332.finish(); + } + #[allow(unused_mut)] + let mut scope_334 = writer.prefix("ThresholdMetricId"); + if let Some(var_335) = &input.threshold_metric_id { + scope_334.string(var_335); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_metric_data( + input: &crate::input::PutMetricDataInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutMetricData", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_336 = writer.prefix("Namespace"); + if let Some(var_337) = &input.namespace { + scope_336.string(var_337); + } + #[allow(unused_mut)] + let mut scope_338 = writer.prefix("MetricData"); + if let Some(var_339) = &input.metric_data { + let mut list_341 = scope_338.start_list(false, None); + for item_340 in var_339 { + #[allow(unused_mut)] + let mut entry_342 = list_341.entry(); + crate::query_ser::serialize_structure_metric_datum(entry_342, item_340); + } + list_341.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_metric_stream( + input: &crate::input::PutMetricStreamInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "PutMetricStream", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_343 = writer.prefix("Name"); + if let Some(var_344) = &input.name { + scope_343.string(var_344); + } + #[allow(unused_mut)] + let mut scope_345 = writer.prefix("IncludeFilters"); + if let Some(var_346) = &input.include_filters { + let mut list_348 = scope_345.start_list(false, None); + for item_347 in var_346 { + #[allow(unused_mut)] + let mut entry_349 = list_348.entry(); + crate::query_ser::serialize_structure_metric_stream_filter(entry_349, item_347); + } + list_348.finish(); + } + #[allow(unused_mut)] + let mut scope_350 = writer.prefix("ExcludeFilters"); + if let Some(var_351) = &input.exclude_filters { + let mut list_353 = scope_350.start_list(false, None); + for item_352 in var_351 { + #[allow(unused_mut)] + let mut entry_354 = list_353.entry(); + crate::query_ser::serialize_structure_metric_stream_filter(entry_354, item_352); + } + list_353.finish(); + } + #[allow(unused_mut)] + let mut scope_355 = writer.prefix("FirehoseArn"); + if let Some(var_356) = &input.firehose_arn { + scope_355.string(var_356); + } + #[allow(unused_mut)] + let mut scope_357 = writer.prefix("RoleArn"); + if let Some(var_358) = &input.role_arn { + scope_357.string(var_358); + } + #[allow(unused_mut)] + let mut scope_359 = writer.prefix("OutputFormat"); + if let Some(var_360) = &input.output_format { + scope_359.string(var_360.as_str()); + } + #[allow(unused_mut)] + let mut scope_361 = writer.prefix("Tags"); + if let Some(var_362) = &input.tags { + let mut list_364 = scope_361.start_list(false, None); + for item_363 in var_362 { + #[allow(unused_mut)] + let mut entry_365 = list_364.entry(); + crate::query_ser::serialize_structure_tag(entry_365, item_363); + } + list_364.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_set_alarm_state( + input: &crate::input::SetAlarmStateInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "SetAlarmState", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_366 = writer.prefix("AlarmName"); + if let Some(var_367) = &input.alarm_name { + scope_366.string(var_367); + } + #[allow(unused_mut)] + let mut scope_368 = writer.prefix("StateValue"); + if let Some(var_369) = &input.state_value { + scope_368.string(var_369.as_str()); + } + #[allow(unused_mut)] + let mut scope_370 = writer.prefix("StateReason"); + if let Some(var_371) = &input.state_reason { + scope_370.string(var_371); + } + #[allow(unused_mut)] + let mut scope_372 = writer.prefix("StateReasonData"); + if let Some(var_373) = &input.state_reason_data { + scope_372.string(var_373); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_start_metric_streams( + input: &crate::input::StartMetricStreamsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "StartMetricStreams", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_374 = writer.prefix("Names"); + if let Some(var_375) = &input.names { + let mut list_377 = scope_374.start_list(false, None); + for item_376 in var_375 { + #[allow(unused_mut)] + let mut entry_378 = list_377.entry(); + entry_378.string(item_376); + } + list_377.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_stop_metric_streams( + input: &crate::input::StopMetricStreamsInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "StopMetricStreams", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_379 = writer.prefix("Names"); + if let Some(var_380) = &input.names { + let mut list_382 = scope_379.start_list(false, None); + for item_381 in var_380 { + #[allow(unused_mut)] + let mut entry_383 = list_382.entry(); + entry_383.string(item_381); + } + list_382.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_tag_resource( + input: &crate::input::TagResourceInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "TagResource", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_384 = writer.prefix("ResourceARN"); + if let Some(var_385) = &input.resource_arn { + scope_384.string(var_385); + } + #[allow(unused_mut)] + let mut scope_386 = writer.prefix("Tags"); + if let Some(var_387) = &input.tags { + let mut list_389 = scope_386.start_list(false, None); + for item_388 in var_387 { + #[allow(unused_mut)] + let mut entry_390 = list_389.entry(); + crate::query_ser::serialize_structure_tag(entry_390, item_388); + } + list_389.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_untag_resource( + input: &crate::input::UntagResourceInput, +) -> Result { + let mut out = String::new(); + #[allow(unused_mut)] + let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagResource", "2010-08-01"); + #[allow(unused_mut)] + let mut scope_391 = writer.prefix("ResourceARN"); + if let Some(var_392) = &input.resource_arn { + scope_391.string(var_392); + } + #[allow(unused_mut)] + let mut scope_393 = writer.prefix("TagKeys"); + if let Some(var_394) = &input.tag_keys { + let mut list_396 = scope_393.start_list(false, None); + for item_395 in var_394 { + #[allow(unused_mut)] + let mut entry_397 = list_396.entry(); + entry_397.string(item_395); + } + list_396.finish(); + } + writer.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} diff --git a/sdk/cloudwatch/src/output.rs b/sdk/cloudwatch/src/output.rs new file mode 100644 index 000000000000..9ed9e2b36a12 --- /dev/null +++ b/sdk/cloudwatch/src/output.rs @@ -0,0 +1,1936 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceOutput {} +impl std::fmt::Debug for UntagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceOutput"); + formatter.finish() + } +} +/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput) +pub mod untag_resource_output { + /// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn build(self) -> crate::output::UntagResourceOutput { + crate::output::UntagResourceOutput {} + } + } +} +impl UntagResourceOutput { + /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn builder() -> crate::output::untag_resource_output::Builder { + crate::output::untag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceOutput {} +impl std::fmt::Debug for TagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceOutput"); + formatter.finish() + } +} +/// See [`TagResourceOutput`](crate::output::TagResourceOutput) +pub mod tag_resource_output { + /// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn build(self) -> crate::output::TagResourceOutput { + crate::output::TagResourceOutput {} + } + } +} +impl TagResourceOutput { + /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn builder() -> crate::output::tag_resource_output::Builder { + crate::output::tag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StopMetricStreamsOutput {} +impl std::fmt::Debug for StopMetricStreamsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StopMetricStreamsOutput"); + formatter.finish() + } +} +/// See [`StopMetricStreamsOutput`](crate::output::StopMetricStreamsOutput) +pub mod stop_metric_streams_output { + /// A builder for [`StopMetricStreamsOutput`](crate::output::StopMetricStreamsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`StopMetricStreamsOutput`](crate::output::StopMetricStreamsOutput) + pub fn build(self) -> crate::output::StopMetricStreamsOutput { + crate::output::StopMetricStreamsOutput {} + } + } +} +impl StopMetricStreamsOutput { + /// Creates a new builder-style object to manufacture [`StopMetricStreamsOutput`](crate::output::StopMetricStreamsOutput) + pub fn builder() -> crate::output::stop_metric_streams_output::Builder { + crate::output::stop_metric_streams_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartMetricStreamsOutput {} +impl std::fmt::Debug for StartMetricStreamsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartMetricStreamsOutput"); + formatter.finish() + } +} +/// See [`StartMetricStreamsOutput`](crate::output::StartMetricStreamsOutput) +pub mod start_metric_streams_output { + /// A builder for [`StartMetricStreamsOutput`](crate::output::StartMetricStreamsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`StartMetricStreamsOutput`](crate::output::StartMetricStreamsOutput) + pub fn build(self) -> crate::output::StartMetricStreamsOutput { + crate::output::StartMetricStreamsOutput {} + } + } +} +impl StartMetricStreamsOutput { + /// Creates a new builder-style object to manufacture [`StartMetricStreamsOutput`](crate::output::StartMetricStreamsOutput) + pub fn builder() -> crate::output::start_metric_streams_output::Builder { + crate::output::start_metric_streams_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SetAlarmStateOutput {} +impl std::fmt::Debug for SetAlarmStateOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("SetAlarmStateOutput"); + formatter.finish() + } +} +/// See [`SetAlarmStateOutput`](crate::output::SetAlarmStateOutput) +pub mod set_alarm_state_output { + /// A builder for [`SetAlarmStateOutput`](crate::output::SetAlarmStateOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`SetAlarmStateOutput`](crate::output::SetAlarmStateOutput) + pub fn build(self) -> crate::output::SetAlarmStateOutput { + crate::output::SetAlarmStateOutput {} + } + } +} +impl SetAlarmStateOutput { + /// Creates a new builder-style object to manufacture [`SetAlarmStateOutput`](crate::output::SetAlarmStateOutput) + pub fn builder() -> crate::output::set_alarm_state_output::Builder { + crate::output::set_alarm_state_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricStreamOutput { + ///

    The ARN of the metric stream.

    + pub arn: std::option::Option, +} +impl std::fmt::Debug for PutMetricStreamOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricStreamOutput"); + formatter.field("arn", &self.arn); + formatter.finish() + } +} +/// See [`PutMetricStreamOutput`](crate::output::PutMetricStreamOutput) +pub mod put_metric_stream_output { + /// A builder for [`PutMetricStreamOutput`](crate::output::PutMetricStreamOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) arn: std::option::Option, + } + impl Builder { + ///

    The ARN of the metric stream.

    + pub fn arn(mut self, input: impl Into) -> Self { + self.arn = Some(input.into()); + self + } + pub fn set_arn(mut self, input: std::option::Option) -> Self { + self.arn = input; + self + } + /// Consumes the builder and constructs a [`PutMetricStreamOutput`](crate::output::PutMetricStreamOutput) + pub fn build(self) -> crate::output::PutMetricStreamOutput { + crate::output::PutMetricStreamOutput { arn: self.arn } + } + } +} +impl PutMetricStreamOutput { + /// Creates a new builder-style object to manufacture [`PutMetricStreamOutput`](crate::output::PutMetricStreamOutput) + pub fn builder() -> crate::output::put_metric_stream_output::Builder { + crate::output::put_metric_stream_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricDataOutput {} +impl std::fmt::Debug for PutMetricDataOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricDataOutput"); + formatter.finish() + } +} +/// See [`PutMetricDataOutput`](crate::output::PutMetricDataOutput) +pub mod put_metric_data_output { + /// A builder for [`PutMetricDataOutput`](crate::output::PutMetricDataOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`PutMetricDataOutput`](crate::output::PutMetricDataOutput) + pub fn build(self) -> crate::output::PutMetricDataOutput { + crate::output::PutMetricDataOutput {} + } + } +} +impl PutMetricDataOutput { + /// Creates a new builder-style object to manufacture [`PutMetricDataOutput`](crate::output::PutMetricDataOutput) + pub fn builder() -> crate::output::put_metric_data_output::Builder { + crate::output::put_metric_data_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutMetricAlarmOutput {} +impl std::fmt::Debug for PutMetricAlarmOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutMetricAlarmOutput"); + formatter.finish() + } +} +/// See [`PutMetricAlarmOutput`](crate::output::PutMetricAlarmOutput) +pub mod put_metric_alarm_output { + /// A builder for [`PutMetricAlarmOutput`](crate::output::PutMetricAlarmOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`PutMetricAlarmOutput`](crate::output::PutMetricAlarmOutput) + pub fn build(self) -> crate::output::PutMetricAlarmOutput { + crate::output::PutMetricAlarmOutput {} + } + } +} +impl PutMetricAlarmOutput { + /// Creates a new builder-style object to manufacture [`PutMetricAlarmOutput`](crate::output::PutMetricAlarmOutput) + pub fn builder() -> crate::output::put_metric_alarm_output::Builder { + crate::output::put_metric_alarm_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutInsightRuleOutput {} +impl std::fmt::Debug for PutInsightRuleOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutInsightRuleOutput"); + formatter.finish() + } +} +/// See [`PutInsightRuleOutput`](crate::output::PutInsightRuleOutput) +pub mod put_insight_rule_output { + /// A builder for [`PutInsightRuleOutput`](crate::output::PutInsightRuleOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`PutInsightRuleOutput`](crate::output::PutInsightRuleOutput) + pub fn build(self) -> crate::output::PutInsightRuleOutput { + crate::output::PutInsightRuleOutput {} + } + } +} +impl PutInsightRuleOutput { + /// Creates a new builder-style object to manufacture [`PutInsightRuleOutput`](crate::output::PutInsightRuleOutput) + pub fn builder() -> crate::output::put_insight_rule_output::Builder { + crate::output::put_insight_rule_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutDashboardOutput { + ///

    If the input for PutDashboard was correct and the dashboard was successfully created or modified, this result is empty.

    + ///

    If this result includes only warning messages, then the input was valid enough for the dashboard to be + /// created or modified, but some elements of the dashboard + /// might not render.

    + ///

    If this result includes error messages, the input was not valid and the operation failed.

    + pub dashboard_validation_messages: + std::option::Option>, +} +impl std::fmt::Debug for PutDashboardOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutDashboardOutput"); + formatter.field( + "dashboard_validation_messages", + &self.dashboard_validation_messages, + ); + formatter.finish() + } +} +/// See [`PutDashboardOutput`](crate::output::PutDashboardOutput) +pub mod put_dashboard_output { + /// A builder for [`PutDashboardOutput`](crate::output::PutDashboardOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_validation_messages: + std::option::Option>, + } + impl Builder { + pub fn dashboard_validation_messages( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.dashboard_validation_messages.unwrap_or_default(); + v.push(input.into()); + self.dashboard_validation_messages = Some(v); + self + } + pub fn set_dashboard_validation_messages( + mut self, + input: std::option::Option>, + ) -> Self { + self.dashboard_validation_messages = input; + self + } + /// Consumes the builder and constructs a [`PutDashboardOutput`](crate::output::PutDashboardOutput) + pub fn build(self) -> crate::output::PutDashboardOutput { + crate::output::PutDashboardOutput { + dashboard_validation_messages: self.dashboard_validation_messages, + } + } + } +} +impl PutDashboardOutput { + /// Creates a new builder-style object to manufacture [`PutDashboardOutput`](crate::output::PutDashboardOutput) + pub fn builder() -> crate::output::put_dashboard_output::Builder { + crate::output::put_dashboard_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutCompositeAlarmOutput {} +impl std::fmt::Debug for PutCompositeAlarmOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutCompositeAlarmOutput"); + formatter.finish() + } +} +/// See [`PutCompositeAlarmOutput`](crate::output::PutCompositeAlarmOutput) +pub mod put_composite_alarm_output { + /// A builder for [`PutCompositeAlarmOutput`](crate::output::PutCompositeAlarmOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`PutCompositeAlarmOutput`](crate::output::PutCompositeAlarmOutput) + pub fn build(self) -> crate::output::PutCompositeAlarmOutput { + crate::output::PutCompositeAlarmOutput {} + } + } +} +impl PutCompositeAlarmOutput { + /// Creates a new builder-style object to manufacture [`PutCompositeAlarmOutput`](crate::output::PutCompositeAlarmOutput) + pub fn builder() -> crate::output::put_composite_alarm_output::Builder { + crate::output::put_composite_alarm_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutAnomalyDetectorOutput {} +impl std::fmt::Debug for PutAnomalyDetectorOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutAnomalyDetectorOutput"); + formatter.finish() + } +} +/// See [`PutAnomalyDetectorOutput`](crate::output::PutAnomalyDetectorOutput) +pub mod put_anomaly_detector_output { + /// A builder for [`PutAnomalyDetectorOutput`](crate::output::PutAnomalyDetectorOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`PutAnomalyDetectorOutput`](crate::output::PutAnomalyDetectorOutput) + pub fn build(self) -> crate::output::PutAnomalyDetectorOutput { + crate::output::PutAnomalyDetectorOutput {} + } + } +} +impl PutAnomalyDetectorOutput { + /// Creates a new builder-style object to manufacture [`PutAnomalyDetectorOutput`](crate::output::PutAnomalyDetectorOutput) + pub fn builder() -> crate::output::put_anomaly_detector_output::Builder { + crate::output::put_anomaly_detector_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceOutput { + ///

    The list of tag keys and values associated with the resource you specified.

    + pub tags: std::option::Option>, +} +impl std::fmt::Debug for ListTagsForResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceOutput"); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) +pub mod list_tags_for_resource_output { + /// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tags: std::option::Option>, + } + impl Builder { + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn build(self) -> crate::output::ListTagsForResourceOutput { + crate::output::ListTagsForResourceOutput { tags: self.tags } + } + } +} +impl ListTagsForResourceOutput { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn builder() -> crate::output::list_tags_for_resource_output::Builder { + crate::output::list_tags_for_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListMetricStreamsOutput { + ///

    The token that marks the start of the next batch of returned results. You can use this + /// token in a subsequent operation to get the next batch of results.

    + pub next_token: std::option::Option, + ///

    The array of metric stream information.

    + pub entries: std::option::Option>, +} +impl std::fmt::Debug for ListMetricStreamsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListMetricStreamsOutput"); + formatter.field("next_token", &self.next_token); + formatter.field("entries", &self.entries); + formatter.finish() + } +} +/// See [`ListMetricStreamsOutput`](crate::output::ListMetricStreamsOutput) +pub mod list_metric_streams_output { + /// A builder for [`ListMetricStreamsOutput`](crate::output::ListMetricStreamsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) next_token: std::option::Option, + pub(crate) entries: std::option::Option>, + } + impl Builder { + ///

    The token that marks the start of the next batch of returned results. You can use this + /// token in a subsequent operation to get the next batch of results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + pub fn entries(mut self, input: impl Into) -> Self { + let mut v = self.entries.unwrap_or_default(); + v.push(input.into()); + self.entries = Some(v); + self + } + pub fn set_entries( + mut self, + input: std::option::Option>, + ) -> Self { + self.entries = input; + self + } + /// Consumes the builder and constructs a [`ListMetricStreamsOutput`](crate::output::ListMetricStreamsOutput) + pub fn build(self) -> crate::output::ListMetricStreamsOutput { + crate::output::ListMetricStreamsOutput { + next_token: self.next_token, + entries: self.entries, + } + } + } +} +impl ListMetricStreamsOutput { + /// Creates a new builder-style object to manufacture [`ListMetricStreamsOutput`](crate::output::ListMetricStreamsOutput) + pub fn builder() -> crate::output::list_metric_streams_output::Builder { + crate::output::list_metric_streams_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListMetricsOutput { + ///

    The metrics that match your request.

    + pub metrics: std::option::Option>, + ///

    The token that marks the start of the next batch of returned results.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListMetricsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListMetricsOutput"); + formatter.field("metrics", &self.metrics); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListMetricsOutput`](crate::output::ListMetricsOutput) +pub mod list_metrics_output { + /// A builder for [`ListMetricsOutput`](crate::output::ListMetricsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metrics: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn metrics(mut self, input: impl Into) -> Self { + let mut v = self.metrics.unwrap_or_default(); + v.push(input.into()); + self.metrics = Some(v); + self + } + pub fn set_metrics( + mut self, + input: std::option::Option>, + ) -> Self { + self.metrics = input; + self + } + ///

    The token that marks the start of the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListMetricsOutput`](crate::output::ListMetricsOutput) + pub fn build(self) -> crate::output::ListMetricsOutput { + crate::output::ListMetricsOutput { + metrics: self.metrics, + next_token: self.next_token, + } + } + } +} +impl ListMetricsOutput { + /// Creates a new builder-style object to manufacture [`ListMetricsOutput`](crate::output::ListMetricsOutput) + pub fn builder() -> crate::output::list_metrics_output::Builder { + crate::output::list_metrics_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListDashboardsOutput { + ///

    The list of matching dashboards.

    + pub dashboard_entries: std::option::Option>, + ///

    The token that marks the start of the next batch of returned results.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListDashboardsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListDashboardsOutput"); + formatter.field("dashboard_entries", &self.dashboard_entries); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListDashboardsOutput`](crate::output::ListDashboardsOutput) +pub mod list_dashboards_output { + /// A builder for [`ListDashboardsOutput`](crate::output::ListDashboardsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_entries: + std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn dashboard_entries(mut self, input: impl Into) -> Self { + let mut v = self.dashboard_entries.unwrap_or_default(); + v.push(input.into()); + self.dashboard_entries = Some(v); + self + } + pub fn set_dashboard_entries( + mut self, + input: std::option::Option>, + ) -> Self { + self.dashboard_entries = input; + self + } + ///

    The token that marks the start of the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListDashboardsOutput`](crate::output::ListDashboardsOutput) + pub fn build(self) -> crate::output::ListDashboardsOutput { + crate::output::ListDashboardsOutput { + dashboard_entries: self.dashboard_entries, + next_token: self.next_token, + } + } + } +} +impl ListDashboardsOutput { + /// Creates a new builder-style object to manufacture [`ListDashboardsOutput`](crate::output::ListDashboardsOutput) + pub fn builder() -> crate::output::list_dashboards_output::Builder { + crate::output::list_dashboards_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricWidgetImageOutput { + ///

    The image of the graph, in the output format specified. The output is base64-encoded.

    + pub metric_widget_image: std::option::Option, +} +impl std::fmt::Debug for GetMetricWidgetImageOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricWidgetImageOutput"); + formatter.field("metric_widget_image", &self.metric_widget_image); + formatter.finish() + } +} +/// See [`GetMetricWidgetImageOutput`](crate::output::GetMetricWidgetImageOutput) +pub mod get_metric_widget_image_output { + /// A builder for [`GetMetricWidgetImageOutput`](crate::output::GetMetricWidgetImageOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_widget_image: std::option::Option, + } + impl Builder { + ///

    The image of the graph, in the output format specified. The output is base64-encoded.

    + pub fn metric_widget_image(mut self, input: smithy_types::Blob) -> Self { + self.metric_widget_image = Some(input); + self + } + pub fn set_metric_widget_image( + mut self, + input: std::option::Option, + ) -> Self { + self.metric_widget_image = input; + self + } + /// Consumes the builder and constructs a [`GetMetricWidgetImageOutput`](crate::output::GetMetricWidgetImageOutput) + pub fn build(self) -> crate::output::GetMetricWidgetImageOutput { + crate::output::GetMetricWidgetImageOutput { + metric_widget_image: self.metric_widget_image, + } + } + } +} +impl GetMetricWidgetImageOutput { + /// Creates a new builder-style object to manufacture [`GetMetricWidgetImageOutput`](crate::output::GetMetricWidgetImageOutput) + pub fn builder() -> crate::output::get_metric_widget_image_output::Builder { + crate::output::get_metric_widget_image_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricStreamOutput { + ///

    The ARN of the metric stream.

    + pub arn: std::option::Option, + ///

    The name of the metric stream.

    + pub name: std::option::Option, + ///

    If this array of metric namespaces is present, then these + /// namespaces are the only + /// metric namespaces that are streamed by this metric stream.

    + pub include_filters: std::option::Option>, + ///

    If this array of metric namespaces is present, then these namespaces are the only + /// metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in + /// the account are streamed by this metric stream.

    + pub exclude_filters: std::option::Option>, + ///

    The ARN of the Amazon Kinesis Firehose delivery stream that is used by + /// this metric stream.

    + pub firehose_arn: std::option::Option, + ///

    The ARN of the IAM role that is used by this metric stream.

    + pub role_arn: std::option::Option, + ///

    The state of the metric stream. The possible values are running + /// and stopped.

    + pub state: std::option::Option, + ///

    The date that the metric stream was created.

    + pub creation_date: std::option::Option, + ///

    The date of the most recent update to the metric stream's configuration.

    + pub last_update_date: std::option::Option, + ///

    + pub output_format: std::option::Option, +} +impl std::fmt::Debug for GetMetricStreamOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricStreamOutput"); + formatter.field("arn", &self.arn); + formatter.field("name", &self.name); + formatter.field("include_filters", &self.include_filters); + formatter.field("exclude_filters", &self.exclude_filters); + formatter.field("firehose_arn", &self.firehose_arn); + formatter.field("role_arn", &self.role_arn); + formatter.field("state", &self.state); + formatter.field("creation_date", &self.creation_date); + formatter.field("last_update_date", &self.last_update_date); + formatter.field("output_format", &self.output_format); + formatter.finish() + } +} +/// See [`GetMetricStreamOutput`](crate::output::GetMetricStreamOutput) +pub mod get_metric_stream_output { + /// A builder for [`GetMetricStreamOutput`](crate::output::GetMetricStreamOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) arn: std::option::Option, + pub(crate) name: std::option::Option, + pub(crate) include_filters: + std::option::Option>, + pub(crate) exclude_filters: + std::option::Option>, + pub(crate) firehose_arn: std::option::Option, + pub(crate) role_arn: std::option::Option, + pub(crate) state: std::option::Option, + pub(crate) creation_date: std::option::Option, + pub(crate) last_update_date: std::option::Option, + pub(crate) output_format: std::option::Option, + } + impl Builder { + ///

    The ARN of the metric stream.

    + pub fn arn(mut self, input: impl Into) -> Self { + self.arn = Some(input.into()); + self + } + pub fn set_arn(mut self, input: std::option::Option) -> Self { + self.arn = input; + self + } + ///

    The name of the metric stream.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + pub fn include_filters( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.include_filters.unwrap_or_default(); + v.push(input.into()); + self.include_filters = Some(v); + self + } + pub fn set_include_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.include_filters = input; + self + } + pub fn exclude_filters( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.exclude_filters.unwrap_or_default(); + v.push(input.into()); + self.exclude_filters = Some(v); + self + } + pub fn set_exclude_filters( + mut self, + input: std::option::Option>, + ) -> Self { + self.exclude_filters = input; + self + } + ///

    The ARN of the Amazon Kinesis Firehose delivery stream that is used by + /// this metric stream.

    + pub fn firehose_arn(mut self, input: impl Into) -> Self { + self.firehose_arn = Some(input.into()); + self + } + pub fn set_firehose_arn(mut self, input: std::option::Option) -> Self { + self.firehose_arn = input; + self + } + ///

    The ARN of the IAM role that is used by this metric stream.

    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.role_arn = Some(input.into()); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.role_arn = input; + self + } + ///

    The state of the metric stream. The possible values are running + /// and stopped.

    + pub fn state(mut self, input: impl Into) -> Self { + self.state = Some(input.into()); + self + } + pub fn set_state(mut self, input: std::option::Option) -> Self { + self.state = input; + self + } + ///

    The date that the metric stream was created.

    + pub fn creation_date(mut self, input: smithy_types::Instant) -> Self { + self.creation_date = Some(input); + self + } + pub fn set_creation_date( + mut self, + input: std::option::Option, + ) -> Self { + self.creation_date = input; + self + } + ///

    The date of the most recent update to the metric stream's configuration.

    + pub fn last_update_date(mut self, input: smithy_types::Instant) -> Self { + self.last_update_date = Some(input); + self + } + pub fn set_last_update_date( + mut self, + input: std::option::Option, + ) -> Self { + self.last_update_date = input; + self + } + ///

    + pub fn output_format(mut self, input: crate::model::MetricStreamOutputFormat) -> Self { + self.output_format = Some(input); + self + } + pub fn set_output_format( + mut self, + input: std::option::Option, + ) -> Self { + self.output_format = input; + self + } + /// Consumes the builder and constructs a [`GetMetricStreamOutput`](crate::output::GetMetricStreamOutput) + pub fn build(self) -> crate::output::GetMetricStreamOutput { + crate::output::GetMetricStreamOutput { + arn: self.arn, + name: self.name, + include_filters: self.include_filters, + exclude_filters: self.exclude_filters, + firehose_arn: self.firehose_arn, + role_arn: self.role_arn, + state: self.state, + creation_date: self.creation_date, + last_update_date: self.last_update_date, + output_format: self.output_format, + } + } + } +} +impl GetMetricStreamOutput { + /// Creates a new builder-style object to manufacture [`GetMetricStreamOutput`](crate::output::GetMetricStreamOutput) + pub fn builder() -> crate::output::get_metric_stream_output::Builder { + crate::output::get_metric_stream_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricStatisticsOutput { + ///

    A label for the specified metric.

    + pub label: std::option::Option, + ///

    The data points for the specified metric.

    + pub datapoints: std::option::Option>, +} +impl std::fmt::Debug for GetMetricStatisticsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricStatisticsOutput"); + formatter.field("label", &self.label); + formatter.field("datapoints", &self.datapoints); + formatter.finish() + } +} +/// See [`GetMetricStatisticsOutput`](crate::output::GetMetricStatisticsOutput) +pub mod get_metric_statistics_output { + /// A builder for [`GetMetricStatisticsOutput`](crate::output::GetMetricStatisticsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) label: std::option::Option, + pub(crate) datapoints: std::option::Option>, + } + impl Builder { + ///

    A label for the specified metric.

    + pub fn label(mut self, input: impl Into) -> Self { + self.label = Some(input.into()); + self + } + pub fn set_label(mut self, input: std::option::Option) -> Self { + self.label = input; + self + } + pub fn datapoints(mut self, input: impl Into) -> Self { + let mut v = self.datapoints.unwrap_or_default(); + v.push(input.into()); + self.datapoints = Some(v); + self + } + pub fn set_datapoints( + mut self, + input: std::option::Option>, + ) -> Self { + self.datapoints = input; + self + } + /// Consumes the builder and constructs a [`GetMetricStatisticsOutput`](crate::output::GetMetricStatisticsOutput) + pub fn build(self) -> crate::output::GetMetricStatisticsOutput { + crate::output::GetMetricStatisticsOutput { + label: self.label, + datapoints: self.datapoints, + } + } + } +} +impl GetMetricStatisticsOutput { + /// Creates a new builder-style object to manufacture [`GetMetricStatisticsOutput`](crate::output::GetMetricStatisticsOutput) + pub fn builder() -> crate::output::get_metric_statistics_output::Builder { + crate::output::get_metric_statistics_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetMetricDataOutput { + ///

    The metrics that are returned, including the metric name, namespace, and dimensions.

    + pub metric_data_results: std::option::Option>, + ///

    A token that marks the next batch of returned results.

    + pub next_token: std::option::Option, + ///

    Contains a message about this GetMetricData operation, if the operation results in such a message. + /// An example of a message that + /// might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the + /// operation as possible is still executed.

    + ///

    A message appears here only if it is related to the global GetMetricData operation. Any message + /// about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

    + pub messages: std::option::Option>, +} +impl std::fmt::Debug for GetMetricDataOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetMetricDataOutput"); + formatter.field("metric_data_results", &self.metric_data_results); + formatter.field("next_token", &self.next_token); + formatter.field("messages", &self.messages); + formatter.finish() + } +} +/// See [`GetMetricDataOutput`](crate::output::GetMetricDataOutput) +pub mod get_metric_data_output { + /// A builder for [`GetMetricDataOutput`](crate::output::GetMetricDataOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_data_results: + std::option::Option>, + pub(crate) next_token: std::option::Option, + pub(crate) messages: std::option::Option>, + } + impl Builder { + pub fn metric_data_results( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.metric_data_results.unwrap_or_default(); + v.push(input.into()); + self.metric_data_results = Some(v); + self + } + pub fn set_metric_data_results( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_data_results = input; + self + } + ///

    A token that marks the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + pub fn messages(mut self, input: impl Into) -> Self { + let mut v = self.messages.unwrap_or_default(); + v.push(input.into()); + self.messages = Some(v); + self + } + pub fn set_messages( + mut self, + input: std::option::Option>, + ) -> Self { + self.messages = input; + self + } + /// Consumes the builder and constructs a [`GetMetricDataOutput`](crate::output::GetMetricDataOutput) + pub fn build(self) -> crate::output::GetMetricDataOutput { + crate::output::GetMetricDataOutput { + metric_data_results: self.metric_data_results, + next_token: self.next_token, + messages: self.messages, + } + } + } +} +impl GetMetricDataOutput { + /// Creates a new builder-style object to manufacture [`GetMetricDataOutput`](crate::output::GetMetricDataOutput) + pub fn builder() -> crate::output::get_metric_data_output::Builder { + crate::output::get_metric_data_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetInsightRuleReportOutput { + ///

    An array of the strings used as the keys for this rule. The keys are the dimensions used to classify contributors. + /// If the rule contains more than one key, then each unique combination of values for the keys is counted as a unique contributor.

    + pub key_labels: std::option::Option>, + ///

    Specifies whether this rule aggregates contributor data by COUNT or SUM.

    + pub aggregation_statistic: std::option::Option, + ///

    The sum of the values from all individual contributors that match the rule.

    + pub aggregate_value: std::option::Option, + ///

    An approximate count of the unique contributors found by this rule in this time period.

    + pub approximate_unique_count: std::option::Option, + ///

    An array of the unique contributors found by this rule in this time period. If the rule contains multiple keys, each combination of values + /// for the keys counts as a unique contributor.

    + pub contributors: std::option::Option>, + ///

    A time series of metric data points that matches the time period in the rule request.

    + pub metric_datapoints: + std::option::Option>, +} +impl std::fmt::Debug for GetInsightRuleReportOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetInsightRuleReportOutput"); + formatter.field("key_labels", &self.key_labels); + formatter.field("aggregation_statistic", &self.aggregation_statistic); + formatter.field("aggregate_value", &self.aggregate_value); + formatter.field("approximate_unique_count", &self.approximate_unique_count); + formatter.field("contributors", &self.contributors); + formatter.field("metric_datapoints", &self.metric_datapoints); + formatter.finish() + } +} +/// See [`GetInsightRuleReportOutput`](crate::output::GetInsightRuleReportOutput) +pub mod get_insight_rule_report_output { + /// A builder for [`GetInsightRuleReportOutput`](crate::output::GetInsightRuleReportOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key_labels: std::option::Option>, + pub(crate) aggregation_statistic: std::option::Option, + pub(crate) aggregate_value: std::option::Option, + pub(crate) approximate_unique_count: std::option::Option, + pub(crate) contributors: + std::option::Option>, + pub(crate) metric_datapoints: + std::option::Option>, + } + impl Builder { + pub fn key_labels(mut self, input: impl Into) -> Self { + let mut v = self.key_labels.unwrap_or_default(); + v.push(input.into()); + self.key_labels = Some(v); + self + } + pub fn set_key_labels( + mut self, + input: std::option::Option>, + ) -> Self { + self.key_labels = input; + self + } + ///

    Specifies whether this rule aggregates contributor data by COUNT or SUM.

    + pub fn aggregation_statistic(mut self, input: impl Into) -> Self { + self.aggregation_statistic = Some(input.into()); + self + } + pub fn set_aggregation_statistic( + mut self, + input: std::option::Option, + ) -> Self { + self.aggregation_statistic = input; + self + } + ///

    The sum of the values from all individual contributors that match the rule.

    + pub fn aggregate_value(mut self, input: f64) -> Self { + self.aggregate_value = Some(input); + self + } + pub fn set_aggregate_value(mut self, input: std::option::Option) -> Self { + self.aggregate_value = input; + self + } + ///

    An approximate count of the unique contributors found by this rule in this time period.

    + pub fn approximate_unique_count(mut self, input: i64) -> Self { + self.approximate_unique_count = Some(input); + self + } + pub fn set_approximate_unique_count(mut self, input: std::option::Option) -> Self { + self.approximate_unique_count = input; + self + } + pub fn contributors( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.contributors.unwrap_or_default(); + v.push(input.into()); + self.contributors = Some(v); + self + } + pub fn set_contributors( + mut self, + input: std::option::Option>, + ) -> Self { + self.contributors = input; + self + } + pub fn metric_datapoints( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.metric_datapoints.unwrap_or_default(); + v.push(input.into()); + self.metric_datapoints = Some(v); + self + } + pub fn set_metric_datapoints( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_datapoints = input; + self + } + /// Consumes the builder and constructs a [`GetInsightRuleReportOutput`](crate::output::GetInsightRuleReportOutput) + pub fn build(self) -> crate::output::GetInsightRuleReportOutput { + crate::output::GetInsightRuleReportOutput { + key_labels: self.key_labels, + aggregation_statistic: self.aggregation_statistic, + aggregate_value: self.aggregate_value, + approximate_unique_count: self.approximate_unique_count, + contributors: self.contributors, + metric_datapoints: self.metric_datapoints, + } + } + } +} +impl GetInsightRuleReportOutput { + /// Creates a new builder-style object to manufacture [`GetInsightRuleReportOutput`](crate::output::GetInsightRuleReportOutput) + pub fn builder() -> crate::output::get_insight_rule_report_output::Builder { + crate::output::get_insight_rule_report_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetDashboardOutput { + ///

    The Amazon Resource Name (ARN) of the dashboard.

    + pub dashboard_arn: std::option::Option, + ///

    The detailed information about the dashboard, including what widgets are included and their location + /// on the dashboard. For more information about the DashboardBody syntax, + /// see Dashboard Body Structure and Syntax.

    + pub dashboard_body: std::option::Option, + ///

    The name of the dashboard.

    + pub dashboard_name: std::option::Option, +} +impl std::fmt::Debug for GetDashboardOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetDashboardOutput"); + formatter.field("dashboard_arn", &self.dashboard_arn); + formatter.field("dashboard_body", &self.dashboard_body); + formatter.field("dashboard_name", &self.dashboard_name); + formatter.finish() + } +} +/// See [`GetDashboardOutput`](crate::output::GetDashboardOutput) +pub mod get_dashboard_output { + /// A builder for [`GetDashboardOutput`](crate::output::GetDashboardOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) dashboard_arn: std::option::Option, + pub(crate) dashboard_body: std::option::Option, + pub(crate) dashboard_name: std::option::Option, + } + impl Builder { + ///

    The Amazon Resource Name (ARN) of the dashboard.

    + pub fn dashboard_arn(mut self, input: impl Into) -> Self { + self.dashboard_arn = Some(input.into()); + self + } + pub fn set_dashboard_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_arn = input; + self + } + ///

    The detailed information about the dashboard, including what widgets are included and their location + /// on the dashboard. For more information about the DashboardBody syntax, + /// see Dashboard Body Structure and Syntax.

    + pub fn dashboard_body(mut self, input: impl Into) -> Self { + self.dashboard_body = Some(input.into()); + self + } + pub fn set_dashboard_body( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_body = input; + self + } + ///

    The name of the dashboard.

    + pub fn dashboard_name(mut self, input: impl Into) -> Self { + self.dashboard_name = Some(input.into()); + self + } + pub fn set_dashboard_name( + mut self, + input: std::option::Option, + ) -> Self { + self.dashboard_name = input; + self + } + /// Consumes the builder and constructs a [`GetDashboardOutput`](crate::output::GetDashboardOutput) + pub fn build(self) -> crate::output::GetDashboardOutput { + crate::output::GetDashboardOutput { + dashboard_arn: self.dashboard_arn, + dashboard_body: self.dashboard_body, + dashboard_name: self.dashboard_name, + } + } + } +} +impl GetDashboardOutput { + /// Creates a new builder-style object to manufacture [`GetDashboardOutput`](crate::output::GetDashboardOutput) + pub fn builder() -> crate::output::get_dashboard_output::Builder { + crate::output::get_dashboard_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EnableInsightRulesOutput { + ///

    An array listing the rules that could not be enabled. You cannot disable or enable built-in rules.

    + pub failures: std::option::Option>, +} +impl std::fmt::Debug for EnableInsightRulesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EnableInsightRulesOutput"); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`EnableInsightRulesOutput`](crate::output::EnableInsightRulesOutput) +pub mod enable_insight_rules_output { + /// A builder for [`EnableInsightRulesOutput`](crate::output::EnableInsightRulesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`EnableInsightRulesOutput`](crate::output::EnableInsightRulesOutput) + pub fn build(self) -> crate::output::EnableInsightRulesOutput { + crate::output::EnableInsightRulesOutput { + failures: self.failures, + } + } + } +} +impl EnableInsightRulesOutput { + /// Creates a new builder-style object to manufacture [`EnableInsightRulesOutput`](crate::output::EnableInsightRulesOutput) + pub fn builder() -> crate::output::enable_insight_rules_output::Builder { + crate::output::enable_insight_rules_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EnableAlarmActionsOutput {} +impl std::fmt::Debug for EnableAlarmActionsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EnableAlarmActionsOutput"); + formatter.finish() + } +} +/// See [`EnableAlarmActionsOutput`](crate::output::EnableAlarmActionsOutput) +pub mod enable_alarm_actions_output { + /// A builder for [`EnableAlarmActionsOutput`](crate::output::EnableAlarmActionsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`EnableAlarmActionsOutput`](crate::output::EnableAlarmActionsOutput) + pub fn build(self) -> crate::output::EnableAlarmActionsOutput { + crate::output::EnableAlarmActionsOutput {} + } + } +} +impl EnableAlarmActionsOutput { + /// Creates a new builder-style object to manufacture [`EnableAlarmActionsOutput`](crate::output::EnableAlarmActionsOutput) + pub fn builder() -> crate::output::enable_alarm_actions_output::Builder { + crate::output::enable_alarm_actions_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisableInsightRulesOutput { + ///

    An array listing the rules that could not be disabled. You cannot disable built-in rules.

    + pub failures: std::option::Option>, +} +impl std::fmt::Debug for DisableInsightRulesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisableInsightRulesOutput"); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`DisableInsightRulesOutput`](crate::output::DisableInsightRulesOutput) +pub mod disable_insight_rules_output { + /// A builder for [`DisableInsightRulesOutput`](crate::output::DisableInsightRulesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`DisableInsightRulesOutput`](crate::output::DisableInsightRulesOutput) + pub fn build(self) -> crate::output::DisableInsightRulesOutput { + crate::output::DisableInsightRulesOutput { + failures: self.failures, + } + } + } +} +impl DisableInsightRulesOutput { + /// Creates a new builder-style object to manufacture [`DisableInsightRulesOutput`](crate::output::DisableInsightRulesOutput) + pub fn builder() -> crate::output::disable_insight_rules_output::Builder { + crate::output::disable_insight_rules_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisableAlarmActionsOutput {} +impl std::fmt::Debug for DisableAlarmActionsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisableAlarmActionsOutput"); + formatter.finish() + } +} +/// See [`DisableAlarmActionsOutput`](crate::output::DisableAlarmActionsOutput) +pub mod disable_alarm_actions_output { + /// A builder for [`DisableAlarmActionsOutput`](crate::output::DisableAlarmActionsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DisableAlarmActionsOutput`](crate::output::DisableAlarmActionsOutput) + pub fn build(self) -> crate::output::DisableAlarmActionsOutput { + crate::output::DisableAlarmActionsOutput {} + } + } +} +impl DisableAlarmActionsOutput { + /// Creates a new builder-style object to manufacture [`DisableAlarmActionsOutput`](crate::output::DisableAlarmActionsOutput) + pub fn builder() -> crate::output::disable_alarm_actions_output::Builder { + crate::output::disable_alarm_actions_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeInsightRulesOutput { + ///

    If this parameter is present, it is a token that marks the start of the next batch of returned results.

    + pub next_token: std::option::Option, + ///

    The rules returned by the operation.

    + pub insight_rules: std::option::Option>, +} +impl std::fmt::Debug for DescribeInsightRulesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeInsightRulesOutput"); + formatter.field("next_token", &self.next_token); + formatter.field("insight_rules", &self.insight_rules); + formatter.finish() + } +} +/// See [`DescribeInsightRulesOutput`](crate::output::DescribeInsightRulesOutput) +pub mod describe_insight_rules_output { + /// A builder for [`DescribeInsightRulesOutput`](crate::output::DescribeInsightRulesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) next_token: std::option::Option, + pub(crate) insight_rules: std::option::Option>, + } + impl Builder { + ///

    If this parameter is present, it is a token that marks the start of the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + pub fn insight_rules(mut self, input: impl Into) -> Self { + let mut v = self.insight_rules.unwrap_or_default(); + v.push(input.into()); + self.insight_rules = Some(v); + self + } + pub fn set_insight_rules( + mut self, + input: std::option::Option>, + ) -> Self { + self.insight_rules = input; + self + } + /// Consumes the builder and constructs a [`DescribeInsightRulesOutput`](crate::output::DescribeInsightRulesOutput) + pub fn build(self) -> crate::output::DescribeInsightRulesOutput { + crate::output::DescribeInsightRulesOutput { + next_token: self.next_token, + insight_rules: self.insight_rules, + } + } + } +} +impl DescribeInsightRulesOutput { + /// Creates a new builder-style object to manufacture [`DescribeInsightRulesOutput`](crate::output::DescribeInsightRulesOutput) + pub fn builder() -> crate::output::describe_insight_rules_output::Builder { + crate::output::describe_insight_rules_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAnomalyDetectorsOutput { + ///

    The list of anomaly detection models returned by the operation.

    + pub anomaly_detectors: std::option::Option>, + ///

    A token that you can use in a subsequent operation to + /// retrieve the next set of results.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeAnomalyDetectorsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAnomalyDetectorsOutput"); + formatter.field("anomaly_detectors", &self.anomaly_detectors); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeAnomalyDetectorsOutput`](crate::output::DescribeAnomalyDetectorsOutput) +pub mod describe_anomaly_detectors_output { + /// A builder for [`DescribeAnomalyDetectorsOutput`](crate::output::DescribeAnomalyDetectorsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) anomaly_detectors: + std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn anomaly_detectors( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.anomaly_detectors.unwrap_or_default(); + v.push(input.into()); + self.anomaly_detectors = Some(v); + self + } + pub fn set_anomaly_detectors( + mut self, + input: std::option::Option>, + ) -> Self { + self.anomaly_detectors = input; + self + } + ///

    A token that you can use in a subsequent operation to + /// retrieve the next set of results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeAnomalyDetectorsOutput`](crate::output::DescribeAnomalyDetectorsOutput) + pub fn build(self) -> crate::output::DescribeAnomalyDetectorsOutput { + crate::output::DescribeAnomalyDetectorsOutput { + anomaly_detectors: self.anomaly_detectors, + next_token: self.next_token, + } + } + } +} +impl DescribeAnomalyDetectorsOutput { + /// Creates a new builder-style object to manufacture [`DescribeAnomalyDetectorsOutput`](crate::output::DescribeAnomalyDetectorsOutput) + pub fn builder() -> crate::output::describe_anomaly_detectors_output::Builder { + crate::output::describe_anomaly_detectors_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmsForMetricOutput { + ///

    The information for each alarm with the specified metric.

    + pub metric_alarms: std::option::Option>, +} +impl std::fmt::Debug for DescribeAlarmsForMetricOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmsForMetricOutput"); + formatter.field("metric_alarms", &self.metric_alarms); + formatter.finish() + } +} +/// See [`DescribeAlarmsForMetricOutput`](crate::output::DescribeAlarmsForMetricOutput) +pub mod describe_alarms_for_metric_output { + /// A builder for [`DescribeAlarmsForMetricOutput`](crate::output::DescribeAlarmsForMetricOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) metric_alarms: std::option::Option>, + } + impl Builder { + pub fn metric_alarms(mut self, input: impl Into) -> Self { + let mut v = self.metric_alarms.unwrap_or_default(); + v.push(input.into()); + self.metric_alarms = Some(v); + self + } + pub fn set_metric_alarms( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_alarms = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmsForMetricOutput`](crate::output::DescribeAlarmsForMetricOutput) + pub fn build(self) -> crate::output::DescribeAlarmsForMetricOutput { + crate::output::DescribeAlarmsForMetricOutput { + metric_alarms: self.metric_alarms, + } + } + } +} +impl DescribeAlarmsForMetricOutput { + /// Creates a new builder-style object to manufacture [`DescribeAlarmsForMetricOutput`](crate::output::DescribeAlarmsForMetricOutput) + pub fn builder() -> crate::output::describe_alarms_for_metric_output::Builder { + crate::output::describe_alarms_for_metric_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmsOutput { + ///

    The information about any composite alarms returned by the operation.

    + pub composite_alarms: std::option::Option>, + ///

    The information about any metric alarms returned by the operation.

    + pub metric_alarms: std::option::Option>, + ///

    The token that marks the start of the next batch of returned results.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeAlarmsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmsOutput"); + formatter.field("composite_alarms", &self.composite_alarms); + formatter.field("metric_alarms", &self.metric_alarms); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeAlarmsOutput`](crate::output::DescribeAlarmsOutput) +pub mod describe_alarms_output { + /// A builder for [`DescribeAlarmsOutput`](crate::output::DescribeAlarmsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) composite_alarms: + std::option::Option>, + pub(crate) metric_alarms: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn composite_alarms(mut self, input: impl Into) -> Self { + let mut v = self.composite_alarms.unwrap_or_default(); + v.push(input.into()); + self.composite_alarms = Some(v); + self + } + pub fn set_composite_alarms( + mut self, + input: std::option::Option>, + ) -> Self { + self.composite_alarms = input; + self + } + pub fn metric_alarms(mut self, input: impl Into) -> Self { + let mut v = self.metric_alarms.unwrap_or_default(); + v.push(input.into()); + self.metric_alarms = Some(v); + self + } + pub fn set_metric_alarms( + mut self, + input: std::option::Option>, + ) -> Self { + self.metric_alarms = input; + self + } + ///

    The token that marks the start of the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmsOutput`](crate::output::DescribeAlarmsOutput) + pub fn build(self) -> crate::output::DescribeAlarmsOutput { + crate::output::DescribeAlarmsOutput { + composite_alarms: self.composite_alarms, + metric_alarms: self.metric_alarms, + next_token: self.next_token, + } + } + } +} +impl DescribeAlarmsOutput { + /// Creates a new builder-style object to manufacture [`DescribeAlarmsOutput`](crate::output::DescribeAlarmsOutput) + pub fn builder() -> crate::output::describe_alarms_output::Builder { + crate::output::describe_alarms_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAlarmHistoryOutput { + ///

    The alarm histories, in JSON format.

    + pub alarm_history_items: std::option::Option>, + ///

    The token that marks the start of the next batch of returned results.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeAlarmHistoryOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAlarmHistoryOutput"); + formatter.field("alarm_history_items", &self.alarm_history_items); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeAlarmHistoryOutput`](crate::output::DescribeAlarmHistoryOutput) +pub mod describe_alarm_history_output { + /// A builder for [`DescribeAlarmHistoryOutput`](crate::output::DescribeAlarmHistoryOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) alarm_history_items: + std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn alarm_history_items( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.alarm_history_items.unwrap_or_default(); + v.push(input.into()); + self.alarm_history_items = Some(v); + self + } + pub fn set_alarm_history_items( + mut self, + input: std::option::Option>, + ) -> Self { + self.alarm_history_items = input; + self + } + ///

    The token that marks the start of the next batch of returned results.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeAlarmHistoryOutput`](crate::output::DescribeAlarmHistoryOutput) + pub fn build(self) -> crate::output::DescribeAlarmHistoryOutput { + crate::output::DescribeAlarmHistoryOutput { + alarm_history_items: self.alarm_history_items, + next_token: self.next_token, + } + } + } +} +impl DescribeAlarmHistoryOutput { + /// Creates a new builder-style object to manufacture [`DescribeAlarmHistoryOutput`](crate::output::DescribeAlarmHistoryOutput) + pub fn builder() -> crate::output::describe_alarm_history_output::Builder { + crate::output::describe_alarm_history_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteMetricStreamOutput {} +impl std::fmt::Debug for DeleteMetricStreamOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteMetricStreamOutput"); + formatter.finish() + } +} +/// See [`DeleteMetricStreamOutput`](crate::output::DeleteMetricStreamOutput) +pub mod delete_metric_stream_output { + /// A builder for [`DeleteMetricStreamOutput`](crate::output::DeleteMetricStreamOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DeleteMetricStreamOutput`](crate::output::DeleteMetricStreamOutput) + pub fn build(self) -> crate::output::DeleteMetricStreamOutput { + crate::output::DeleteMetricStreamOutput {} + } + } +} +impl DeleteMetricStreamOutput { + /// Creates a new builder-style object to manufacture [`DeleteMetricStreamOutput`](crate::output::DeleteMetricStreamOutput) + pub fn builder() -> crate::output::delete_metric_stream_output::Builder { + crate::output::delete_metric_stream_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteInsightRulesOutput { + ///

    An array listing the rules that could not be deleted. You cannot delete built-in rules.

    + pub failures: std::option::Option>, +} +impl std::fmt::Debug for DeleteInsightRulesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteInsightRulesOutput"); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`DeleteInsightRulesOutput`](crate::output::DeleteInsightRulesOutput) +pub mod delete_insight_rules_output { + /// A builder for [`DeleteInsightRulesOutput`](crate::output::DeleteInsightRulesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`DeleteInsightRulesOutput`](crate::output::DeleteInsightRulesOutput) + pub fn build(self) -> crate::output::DeleteInsightRulesOutput { + crate::output::DeleteInsightRulesOutput { + failures: self.failures, + } + } + } +} +impl DeleteInsightRulesOutput { + /// Creates a new builder-style object to manufacture [`DeleteInsightRulesOutput`](crate::output::DeleteInsightRulesOutput) + pub fn builder() -> crate::output::delete_insight_rules_output::Builder { + crate::output::delete_insight_rules_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteDashboardsOutput {} +impl std::fmt::Debug for DeleteDashboardsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteDashboardsOutput"); + formatter.finish() + } +} +/// See [`DeleteDashboardsOutput`](crate::output::DeleteDashboardsOutput) +pub mod delete_dashboards_output { + /// A builder for [`DeleteDashboardsOutput`](crate::output::DeleteDashboardsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DeleteDashboardsOutput`](crate::output::DeleteDashboardsOutput) + pub fn build(self) -> crate::output::DeleteDashboardsOutput { + crate::output::DeleteDashboardsOutput {} + } + } +} +impl DeleteDashboardsOutput { + /// Creates a new builder-style object to manufacture [`DeleteDashboardsOutput`](crate::output::DeleteDashboardsOutput) + pub fn builder() -> crate::output::delete_dashboards_output::Builder { + crate::output::delete_dashboards_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAnomalyDetectorOutput {} +impl std::fmt::Debug for DeleteAnomalyDetectorOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAnomalyDetectorOutput"); + formatter.finish() + } +} +/// See [`DeleteAnomalyDetectorOutput`](crate::output::DeleteAnomalyDetectorOutput) +pub mod delete_anomaly_detector_output { + /// A builder for [`DeleteAnomalyDetectorOutput`](crate::output::DeleteAnomalyDetectorOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DeleteAnomalyDetectorOutput`](crate::output::DeleteAnomalyDetectorOutput) + pub fn build(self) -> crate::output::DeleteAnomalyDetectorOutput { + crate::output::DeleteAnomalyDetectorOutput {} + } + } +} +impl DeleteAnomalyDetectorOutput { + /// Creates a new builder-style object to manufacture [`DeleteAnomalyDetectorOutput`](crate::output::DeleteAnomalyDetectorOutput) + pub fn builder() -> crate::output::delete_anomaly_detector_output::Builder { + crate::output::delete_anomaly_detector_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAlarmsOutput {} +impl std::fmt::Debug for DeleteAlarmsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAlarmsOutput"); + formatter.finish() + } +} +/// See [`DeleteAlarmsOutput`](crate::output::DeleteAlarmsOutput) +pub mod delete_alarms_output { + /// A builder for [`DeleteAlarmsOutput`](crate::output::DeleteAlarmsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DeleteAlarmsOutput`](crate::output::DeleteAlarmsOutput) + pub fn build(self) -> crate::output::DeleteAlarmsOutput { + crate::output::DeleteAlarmsOutput {} + } + } +} +impl DeleteAlarmsOutput { + /// Creates a new builder-style object to manufacture [`DeleteAlarmsOutput`](crate::output::DeleteAlarmsOutput) + pub fn builder() -> crate::output::delete_alarms_output::Builder { + crate::output::delete_alarms_output::Builder::default() + } +} diff --git a/sdk/cloudwatch/src/query_ser.rs b/sdk/cloudwatch/src/query_ser.rs new file mode 100644 index 000000000000..1159ba20dfb4 --- /dev/null +++ b/sdk/cloudwatch/src/query_ser.rs @@ -0,0 +1,334 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(unused_mut)] +pub fn serialize_structure_dimension( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::Dimension, +) { + #[allow(unused_mut)] + let mut scope_1 = writer.prefix("Name"); + if let Some(var_2) = &input.name { + scope_1.string(var_2); + } + #[allow(unused_mut)] + let mut scope_3 = writer.prefix("Value"); + if let Some(var_4) = &input.value { + scope_3.string(var_4); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_metric_data_query( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::MetricDataQuery, +) { + #[allow(unused_mut)] + let mut scope_5 = writer.prefix("Id"); + if let Some(var_6) = &input.id { + scope_5.string(var_6); + } + #[allow(unused_mut)] + let mut scope_7 = writer.prefix("MetricStat"); + if let Some(var_8) = &input.metric_stat { + crate::query_ser::serialize_structure_metric_stat(scope_7, var_8); + } + #[allow(unused_mut)] + let mut scope_9 = writer.prefix("Expression"); + if let Some(var_10) = &input.expression { + scope_9.string(var_10); + } + #[allow(unused_mut)] + let mut scope_11 = writer.prefix("Label"); + if let Some(var_12) = &input.label { + scope_11.string(var_12); + } + #[allow(unused_mut)] + let mut scope_13 = writer.prefix("ReturnData"); + if let Some(var_14) = &input.return_data { + scope_13.boolean(*var_14); + } + #[allow(unused_mut)] + let mut scope_15 = writer.prefix("Period"); + if let Some(var_16) = &input.period { + scope_15.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_16).into()), + ); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_label_options( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::LabelOptions, +) { + #[allow(unused_mut)] + let mut scope_17 = writer.prefix("Timezone"); + if let Some(var_18) = &input.timezone { + scope_17.string(var_18); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_dimension_filter( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::DimensionFilter, +) { + #[allow(unused_mut)] + let mut scope_19 = writer.prefix("Name"); + if let Some(var_20) = &input.name { + scope_19.string(var_20); + } + #[allow(unused_mut)] + let mut scope_21 = writer.prefix("Value"); + if let Some(var_22) = &input.value { + scope_21.string(var_22); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_anomaly_detector_configuration( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::AnomalyDetectorConfiguration, +) { + #[allow(unused_mut)] + let mut scope_23 = writer.prefix("ExcludedTimeRanges"); + if let Some(var_24) = &input.excluded_time_ranges { + let mut list_26 = scope_23.start_list(false, None); + for item_25 in var_24 { + #[allow(unused_mut)] + let mut entry_27 = list_26.entry(); + crate::query_ser::serialize_structure_range(entry_27, item_25); + } + list_26.finish(); + } + #[allow(unused_mut)] + let mut scope_28 = writer.prefix("MetricTimezone"); + if let Some(var_29) = &input.metric_timezone { + scope_28.string(var_29); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_tag( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::Tag, +) { + #[allow(unused_mut)] + let mut scope_30 = writer.prefix("Key"); + if let Some(var_31) = &input.key { + scope_30.string(var_31); + } + #[allow(unused_mut)] + let mut scope_32 = writer.prefix("Value"); + if let Some(var_33) = &input.value { + scope_32.string(var_33); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_metric_datum( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::MetricDatum, +) { + #[allow(unused_mut)] + let mut scope_34 = writer.prefix("MetricName"); + if let Some(var_35) = &input.metric_name { + scope_34.string(var_35); + } + #[allow(unused_mut)] + let mut scope_36 = writer.prefix("Dimensions"); + if let Some(var_37) = &input.dimensions { + let mut list_39 = scope_36.start_list(false, None); + for item_38 in var_37 { + #[allow(unused_mut)] + let mut entry_40 = list_39.entry(); + crate::query_ser::serialize_structure_dimension(entry_40, item_38); + } + list_39.finish(); + } + #[allow(unused_mut)] + let mut scope_41 = writer.prefix("Timestamp"); + if let Some(var_42) = &input.timestamp { + scope_41.instant(var_42, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_43 = writer.prefix("Value"); + if let Some(var_44) = &input.value { + scope_43.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_44).into()), + ); + } + #[allow(unused_mut)] + let mut scope_45 = writer.prefix("StatisticValues"); + if let Some(var_46) = &input.statistic_values { + crate::query_ser::serialize_structure_statistic_set(scope_45, var_46); + } + #[allow(unused_mut)] + let mut scope_47 = writer.prefix("Values"); + if let Some(var_48) = &input.values { + let mut list_50 = scope_47.start_list(false, None); + for item_49 in var_48 { + #[allow(unused_mut)] + let mut entry_51 = list_50.entry(); + entry_51.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*item_49).into()), + ); + } + list_50.finish(); + } + #[allow(unused_mut)] + let mut scope_52 = writer.prefix("Counts"); + if let Some(var_53) = &input.counts { + let mut list_55 = scope_52.start_list(false, None); + for item_54 in var_53 { + #[allow(unused_mut)] + let mut entry_56 = list_55.entry(); + entry_56.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*item_54).into()), + ); + } + list_55.finish(); + } + #[allow(unused_mut)] + let mut scope_57 = writer.prefix("Unit"); + if let Some(var_58) = &input.unit { + scope_57.string(var_58.as_str()); + } + #[allow(unused_mut)] + let mut scope_59 = writer.prefix("StorageResolution"); + if let Some(var_60) = &input.storage_resolution { + scope_59.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_60).into()), + ); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_metric_stream_filter( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::MetricStreamFilter, +) { + #[allow(unused_mut)] + let mut scope_61 = writer.prefix("Namespace"); + if let Some(var_62) = &input.namespace { + scope_61.string(var_62); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_metric_stat( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::MetricStat, +) { + #[allow(unused_mut)] + let mut scope_63 = writer.prefix("Metric"); + if let Some(var_64) = &input.metric { + crate::query_ser::serialize_structure_metric(scope_63, var_64); + } + #[allow(unused_mut)] + let mut scope_65 = writer.prefix("Period"); + if let Some(var_66) = &input.period { + scope_65.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_66).into()), + ); + } + #[allow(unused_mut)] + let mut scope_67 = writer.prefix("Stat"); + if let Some(var_68) = &input.stat { + scope_67.string(var_68); + } + #[allow(unused_mut)] + let mut scope_69 = writer.prefix("Unit"); + if let Some(var_70) = &input.unit { + scope_69.string(var_70.as_str()); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_range( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::Range, +) { + #[allow(unused_mut)] + let mut scope_71 = writer.prefix("StartTime"); + if let Some(var_72) = &input.start_time { + scope_71.instant(var_72, smithy_types::instant::Format::DateTime); + } + #[allow(unused_mut)] + let mut scope_73 = writer.prefix("EndTime"); + if let Some(var_74) = &input.end_time { + scope_73.instant(var_74, smithy_types::instant::Format::DateTime); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_statistic_set( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::StatisticSet, +) { + #[allow(unused_mut)] + let mut scope_75 = writer.prefix("SampleCount"); + if let Some(var_76) = &input.sample_count { + scope_75.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_76).into()), + ); + } + #[allow(unused_mut)] + let mut scope_77 = writer.prefix("Sum"); + if let Some(var_78) = &input.sum { + scope_77.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_78).into()), + ); + } + #[allow(unused_mut)] + let mut scope_79 = writer.prefix("Minimum"); + if let Some(var_80) = &input.minimum { + scope_79.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_80).into()), + ); + } + #[allow(unused_mut)] + let mut scope_81 = writer.prefix("Maximum"); + if let Some(var_82) = &input.maximum { + scope_81.number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::Float((*var_82).into()), + ); + } +} + +#[allow(unused_mut)] +pub fn serialize_structure_metric( + mut writer: smithy_query::QueryValueWriter, + input: &crate::model::Metric, +) { + #[allow(unused_mut)] + let mut scope_83 = writer.prefix("Namespace"); + if let Some(var_84) = &input.namespace { + scope_83.string(var_84); + } + #[allow(unused_mut)] + let mut scope_85 = writer.prefix("MetricName"); + if let Some(var_86) = &input.metric_name { + scope_85.string(var_86); + } + #[allow(unused_mut)] + let mut scope_87 = writer.prefix("Dimensions"); + if let Some(var_88) = &input.dimensions { + let mut list_90 = scope_87.start_list(false, None); + for item_89 in var_88 { + #[allow(unused_mut)] + let mut entry_91 = list_90.entry(); + crate::query_ser::serialize_structure_dimension(entry_91, item_89); + } + list_90.finish(); + } +} diff --git a/sdk/cloudwatch/src/rest_xml_wrapped_errors.rs b/sdk/cloudwatch/src/rest_xml_wrapped_errors.rs new file mode 100644 index 000000000000..cc8e3f403324 --- /dev/null +++ b/sdk/cloudwatch/src/rest_xml_wrapped_errors.rs @@ -0,0 +1,116 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use smithy_xml::decode::{try_data, Document, ScopedDecoder, XmlError}; +use std::convert::TryFrom; + +#[allow(unused)] +pub fn body_is_error(body: &[u8]) -> Result { + let mut doc = Document::try_from(body)?; + let scoped = doc.root_element()?; + Ok(scoped.start_el().matches("ErrorResponse")) +} + +pub fn parse_generic_error(body: &[u8]) -> Result { + let mut doc = Document::try_from(body)?; + let mut root = doc.root_element()?; + let mut err_builder = smithy_types::Error::builder(); + while let Some(mut tag) = root.next_tag() { + match tag.start_el().local() { + "Error" => { + while let Some(mut error_field) = tag.next_tag() { + match error_field.start_el().local() { + "Code" => { + err_builder.code(try_data(&mut error_field)?); + } + "Message" => { + err_builder.message(try_data(&mut error_field)?); + } + _ => {} + } + } + } + "RequestId" => { + err_builder.request_id(try_data(&mut tag)?); + } + _ => {} + } + } + Ok(err_builder.build()) +} + +#[allow(unused)] +pub fn error_scope<'a, 'b>(doc: &'a mut Document<'b>) -> Result, XmlError> { + let root = doc + .next_start_element() + .ok_or_else(|| XmlError::custom("no root found searching for an Error"))?; + if !root.matches("ErrorResponse") { + return Err(XmlError::custom("expected ErrorResponse as root")); + } + + while let Some(el) = doc.next_start_element() { + if el.matches("Error") && el.depth() == 1 { + return Ok(doc.scoped_to(el)); + } + // otherwise, ignore it + } + Err(XmlError::custom("No Error found inside of ErrorResponse")) +} + +#[cfg(test)] +mod test { + use super::{body_is_error, parse_generic_error}; + use crate::rest_xml_wrapped_errors::error_scope; + use smithy_xml::decode::Document; + use std::convert::TryFrom; + + #[test] + fn parse_wrapped_error() { + let xml = br#" + + Sender + InvalidGreeting + Hi + setting + + + foo-id +"#; + assert!(body_is_error(xml).unwrap()); + let parsed = parse_generic_error(xml).expect("valid xml"); + assert_eq!(parsed.request_id(), Some("foo-id")); + assert_eq!(parsed.message(), Some("Hi")); + assert_eq!(parsed.code(), Some("InvalidGreeting")); + } + + #[test] + fn test_error_scope() { + let xml: &[u8] = br#" + foo-id + foo-id + These are not the errors you are looking for + + Sender + InvalidGreeting + Hi + setting + + + foo-id +"#; + let mut doc = Document::try_from(xml).expect("valid"); + let mut error = error_scope(&mut doc).expect("contains error"); + let mut keys = vec![]; + while let Some(tag) = error.next_tag() { + keys.push(tag.start_el().local().to_owned()); + // read this the full contents of this element + } + assert_eq!( + keys, + vec!["Type", "Code", "Message", "AnotherSetting", "Ignore",] + ) + } +} diff --git a/sdk/cloudwatch/src/xml_deser.rs b/sdk/cloudwatch/src/xml_deser.rs new file mode 100644 index 000000000000..32c988fae1a6 --- /dev/null +++ b/sdk/cloudwatch/src/xml_deser.rs @@ -0,0 +1,4273 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::rest_xml_wrapped_errors::parse_generic_error(response.body().as_ref()) +} + +#[allow(unused_mut)] +pub fn deser_structure_resource_not_found_xml_err( + inp: &[u8], + mut builder: crate::error::resource_not_found::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#ResourceNotFound$message */ => { + let var_1 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_1); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_internal_service_fault_xml_err( + inp: &[u8], + mut builder: crate::error::internal_service_fault::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("Message") /* Message com.amazonaws.cloudwatch#InternalServiceFault$Message */ => { + let var_2 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_2); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_invalid_parameter_value_exception_xml_err( + inp: &[u8], + mut builder: crate::error::invalid_parameter_value_exception::Builder, +) -> Result +{ + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#InvalidParameterValueException$message */ => { + let var_3 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_3); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_missing_required_parameter_exception_xml_err( + inp: &[u8], + mut builder: crate::error::missing_required_parameter_exception::Builder, +) -> Result +{ + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#MissingRequiredParameterException$message */ => { + let var_4 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_4); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_resource_not_found_exception_xml_err( + inp: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("Message") /* Message com.amazonaws.cloudwatch#ResourceNotFoundException$Message */ => { + let var_5 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_5); + } + , + s if s.matches("ResourceId") /* ResourceId com.amazonaws.cloudwatch#ResourceNotFoundException$ResourceId */ => { + let var_6 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_resource_id(var_6); + } + , + s if s.matches("ResourceType") /* ResourceType com.amazonaws.cloudwatch#ResourceNotFoundException$ResourceType */ => { + let var_7 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_resource_type(var_7); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_dashboard_not_found_error_xml_err( + inp: &[u8], + mut builder: crate::error::dashboard_not_found_error::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#DashboardNotFoundError$message */ => { + let var_8 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_8); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_delete_insight_rules( + inp: &[u8], + mut builder: crate::output::delete_insight_rules_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DeleteInsightRulesResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DeleteInsightRulesResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DeleteInsightRulesResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DeleteInsightRulesResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Failures") /* Failures com.amazonaws.cloudwatch#DeleteInsightRulesOutput$Failures */ => { + let var_9 = + Some( + crate::xml_deser::deser_list_batch_failures(&mut tag) + ? + ) + ; + builder = builder.set_failures(var_9); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DeleteInsightRulesResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_invalid_next_token_xml_err( + inp: &[u8], + mut builder: crate::error::invalid_next_token::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#InvalidNextToken$message */ => { + let var_10 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_10); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_describe_alarm_history( + inp: &[u8], + mut builder: crate::output::describe_alarm_history_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DescribeAlarmHistoryResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DescribeAlarmHistoryResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DescribeAlarmHistoryResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DescribeAlarmHistoryResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("AlarmHistoryItems") /* AlarmHistoryItems com.amazonaws.cloudwatch#DescribeAlarmHistoryOutput$AlarmHistoryItems */ => { + let var_11 = + Some( + crate::xml_deser::deser_list_alarm_history_items(&mut tag) + ? + ) + ; + builder = builder.set_alarm_history_items(var_11); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#DescribeAlarmHistoryOutput$NextToken */ => { + let var_12 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_12); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DescribeAlarmHistoryResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_describe_alarms( + inp: &[u8], + mut builder: crate::output::describe_alarms_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DescribeAlarmsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DescribeAlarmsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DescribeAlarmsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DescribeAlarmsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("CompositeAlarms") /* CompositeAlarms com.amazonaws.cloudwatch#DescribeAlarmsOutput$CompositeAlarms */ => { + let var_13 = + Some( + crate::xml_deser::deser_list_composite_alarms(&mut tag) + ? + ) + ; + builder = builder.set_composite_alarms(var_13); + } + , + s if s.matches("MetricAlarms") /* MetricAlarms com.amazonaws.cloudwatch#DescribeAlarmsOutput$MetricAlarms */ => { + let var_14 = + Some( + crate::xml_deser::deser_list_metric_alarms(&mut tag) + ? + ) + ; + builder = builder.set_metric_alarms(var_14); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#DescribeAlarmsOutput$NextToken */ => { + let var_15 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_15); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DescribeAlarmsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_describe_alarms_for_metric( + inp: &[u8], + mut builder: crate::output::describe_alarms_for_metric_output::Builder, +) -> Result +{ + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DescribeAlarmsForMetricResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DescribeAlarmsForMetricResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DescribeAlarmsForMetricResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DescribeAlarmsForMetricResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("MetricAlarms") /* MetricAlarms com.amazonaws.cloudwatch#DescribeAlarmsForMetricOutput$MetricAlarms */ => { + let var_16 = + Some( + crate::xml_deser::deser_list_metric_alarms(&mut tag) + ? + ) + ; + builder = builder.set_metric_alarms(var_16); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DescribeAlarmsForMetricResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_describe_anomaly_detectors( + inp: &[u8], + mut builder: crate::output::describe_anomaly_detectors_output::Builder, +) -> Result +{ + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DescribeAnomalyDetectorsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DescribeAnomalyDetectorsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DescribeAnomalyDetectorsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DescribeAnomalyDetectorsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("AnomalyDetectors") /* AnomalyDetectors com.amazonaws.cloudwatch#DescribeAnomalyDetectorsOutput$AnomalyDetectors */ => { + let var_17 = + Some( + crate::xml_deser::deser_list_anomaly_detectors(&mut tag) + ? + ) + ; + builder = builder.set_anomaly_detectors(var_17); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#DescribeAnomalyDetectorsOutput$NextToken */ => { + let var_18 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_18); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DescribeAnomalyDetectorsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_describe_insight_rules( + inp: &[u8], + mut builder: crate::output::describe_insight_rules_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DescribeInsightRulesResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DescribeInsightRulesResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DescribeInsightRulesResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DescribeInsightRulesResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#DescribeInsightRulesOutput$NextToken */ => { + let var_19 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_19); + } + , + s if s.matches("InsightRules") /* InsightRules com.amazonaws.cloudwatch#DescribeInsightRulesOutput$InsightRules */ => { + let var_20 = + Some( + crate::xml_deser::deser_list_insight_rules(&mut tag) + ? + ) + ; + builder = builder.set_insight_rules(var_20); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DescribeInsightRulesResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_disable_insight_rules( + inp: &[u8], + mut builder: crate::output::disable_insight_rules_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("DisableInsightRulesResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected DisableInsightRulesResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("DisableInsightRulesResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected DisableInsightRulesResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Failures") /* Failures com.amazonaws.cloudwatch#DisableInsightRulesOutput$Failures */ => { + let var_21 = + Some( + crate::xml_deser::deser_list_batch_failures(&mut tag) + ? + ) + ; + builder = builder.set_failures(var_21); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected DisableInsightRulesResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_limit_exceeded_exception_xml_err( + inp: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("Message") /* Message com.amazonaws.cloudwatch#LimitExceededException$Message */ => { + let var_22 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_22); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_enable_insight_rules( + inp: &[u8], + mut builder: crate::output::enable_insight_rules_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("EnableInsightRulesResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected EnableInsightRulesResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("EnableInsightRulesResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected EnableInsightRulesResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Failures") /* Failures com.amazonaws.cloudwatch#EnableInsightRulesOutput$Failures */ => { + let var_23 = + Some( + crate::xml_deser::deser_list_batch_failures(&mut tag) + ? + ) + ; + builder = builder.set_failures(var_23); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected EnableInsightRulesResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_dashboard( + inp: &[u8], + mut builder: crate::output::get_dashboard_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetDashboardResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetDashboardResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetDashboardResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetDashboardResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("DashboardArn") /* DashboardArn com.amazonaws.cloudwatch#GetDashboardOutput$DashboardArn */ => { + let var_24 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_dashboard_arn(var_24); + } + , + s if s.matches("DashboardBody") /* DashboardBody com.amazonaws.cloudwatch#GetDashboardOutput$DashboardBody */ => { + let var_25 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_dashboard_body(var_25); + } + , + s if s.matches("DashboardName") /* DashboardName com.amazonaws.cloudwatch#GetDashboardOutput$DashboardName */ => { + let var_26 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_dashboard_name(var_26); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetDashboardResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_insight_rule_report( + inp: &[u8], + mut builder: crate::output::get_insight_rule_report_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetInsightRuleReportResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetInsightRuleReportResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetInsightRuleReportResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetInsightRuleReportResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("KeyLabels") /* KeyLabels com.amazonaws.cloudwatch#GetInsightRuleReportOutput$KeyLabels */ => { + let var_27 = + Some( + crate::xml_deser::deser_list_insight_rule_contributor_key_labels(&mut tag) + ? + ) + ; + builder = builder.set_key_labels(var_27); + } + , + s if s.matches("AggregationStatistic") /* AggregationStatistic com.amazonaws.cloudwatch#GetInsightRuleReportOutput$AggregationStatistic */ => { + let var_28 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_aggregation_statistic(var_28); + } + , + s if s.matches("AggregateValue") /* AggregateValue com.amazonaws.cloudwatch#GetInsightRuleReportOutput$AggregateValue */ => { + let var_29 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_aggregate_value(var_29); + } + , + s if s.matches("ApproximateUniqueCount") /* ApproximateUniqueCount com.amazonaws.cloudwatch#GetInsightRuleReportOutput$ApproximateUniqueCount */ => { + let var_30 = + Some( + { + use std::str::FromStr; + i64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (long: `com.amazonaws.cloudwatch#InsightRuleUnboundLong`)")) + } + ? + ) + ; + builder = builder.set_approximate_unique_count(var_30); + } + , + s if s.matches("Contributors") /* Contributors com.amazonaws.cloudwatch#GetInsightRuleReportOutput$Contributors */ => { + let var_31 = + Some( + crate::xml_deser::deser_list_insight_rule_contributors(&mut tag) + ? + ) + ; + builder = builder.set_contributors(var_31); + } + , + s if s.matches("MetricDatapoints") /* MetricDatapoints com.amazonaws.cloudwatch#GetInsightRuleReportOutput$MetricDatapoints */ => { + let var_32 = + Some( + crate::xml_deser::deser_list_insight_rule_metric_datapoints(&mut tag) + ? + ) + ; + builder = builder.set_metric_datapoints(var_32); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetInsightRuleReportResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_metric_data( + inp: &[u8], + mut builder: crate::output::get_metric_data_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetMetricDataResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetMetricDataResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetMetricDataResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetMetricDataResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("MetricDataResults") /* MetricDataResults com.amazonaws.cloudwatch#GetMetricDataOutput$MetricDataResults */ => { + let var_33 = + Some( + crate::xml_deser::deser_list_metric_data_results(&mut tag) + ? + ) + ; + builder = builder.set_metric_data_results(var_33); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#GetMetricDataOutput$NextToken */ => { + let var_34 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_34); + } + , + s if s.matches("Messages") /* Messages com.amazonaws.cloudwatch#GetMetricDataOutput$Messages */ => { + let var_35 = + Some( + crate::xml_deser::deser_list_metric_data_result_messages(&mut tag) + ? + ) + ; + builder = builder.set_messages(var_35); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetMetricDataResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_invalid_parameter_combination_exception_xml_err( + inp: &[u8], + mut builder: crate::error::invalid_parameter_combination_exception::Builder, +) -> Result< + crate::error::invalid_parameter_combination_exception::Builder, + smithy_xml::decode::XmlError, +> { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#InvalidParameterCombinationException$message */ => { + let var_36 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_36); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_metric_statistics( + inp: &[u8], + mut builder: crate::output::get_metric_statistics_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetMetricStatisticsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetMetricStatisticsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetMetricStatisticsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetMetricStatisticsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Label") /* Label com.amazonaws.cloudwatch#GetMetricStatisticsOutput$Label */ => { + let var_37 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_label(var_37); + } + , + s if s.matches("Datapoints") /* Datapoints com.amazonaws.cloudwatch#GetMetricStatisticsOutput$Datapoints */ => { + let var_38 = + Some( + crate::xml_deser::deser_list_datapoints(&mut tag) + ? + ) + ; + builder = builder.set_datapoints(var_38); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetMetricStatisticsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_metric_stream( + inp: &[u8], + mut builder: crate::output::get_metric_stream_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetMetricStreamResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetMetricStreamResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetMetricStreamResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetMetricStreamResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Arn") /* Arn com.amazonaws.cloudwatch#GetMetricStreamOutput$Arn */ => { + let var_39 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_arn(var_39); + } + , + s if s.matches("Name") /* Name com.amazonaws.cloudwatch#GetMetricStreamOutput$Name */ => { + let var_40 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_name(var_40); + } + , + s if s.matches("IncludeFilters") /* IncludeFilters com.amazonaws.cloudwatch#GetMetricStreamOutput$IncludeFilters */ => { + let var_41 = + Some( + crate::xml_deser::deser_list_metric_stream_filters(&mut tag) + ? + ) + ; + builder = builder.set_include_filters(var_41); + } + , + s if s.matches("ExcludeFilters") /* ExcludeFilters com.amazonaws.cloudwatch#GetMetricStreamOutput$ExcludeFilters */ => { + let var_42 = + Some( + crate::xml_deser::deser_list_metric_stream_filters(&mut tag) + ? + ) + ; + builder = builder.set_exclude_filters(var_42); + } + , + s if s.matches("FirehoseArn") /* FirehoseArn com.amazonaws.cloudwatch#GetMetricStreamOutput$FirehoseArn */ => { + let var_43 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_firehose_arn(var_43); + } + , + s if s.matches("RoleArn") /* RoleArn com.amazonaws.cloudwatch#GetMetricStreamOutput$RoleArn */ => { + let var_44 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_role_arn(var_44); + } + , + s if s.matches("State") /* State com.amazonaws.cloudwatch#GetMetricStreamOutput$State */ => { + let var_45 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state(var_45); + } + , + s if s.matches("CreationDate") /* CreationDate com.amazonaws.cloudwatch#GetMetricStreamOutput$CreationDate */ => { + let var_46 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_creation_date(var_46); + } + , + s if s.matches("LastUpdateDate") /* LastUpdateDate com.amazonaws.cloudwatch#GetMetricStreamOutput$LastUpdateDate */ => { + let var_47 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_last_update_date(var_47); + } + , + s if s.matches("OutputFormat") /* OutputFormat com.amazonaws.cloudwatch#GetMetricStreamOutput$OutputFormat */ => { + let var_48 = + Some( + Result::::Ok( + crate::model::MetricStreamOutputFormat::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_output_format(var_48); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetMetricStreamResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_get_metric_widget_image( + inp: &[u8], + mut builder: crate::output::get_metric_widget_image_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("GetMetricWidgetImageResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected GetMetricWidgetImageResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("GetMetricWidgetImageResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected GetMetricWidgetImageResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("MetricWidgetImage") /* MetricWidgetImage com.amazonaws.cloudwatch#GetMetricWidgetImageOutput$MetricWidgetImage */ => { + let var_49 = + Some( + smithy_types::base64::decode( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|err|smithy_xml::decode::XmlError::custom(format!("invalid base64: {:?}", err))).map(smithy_types::Blob::new) + ? + ) + ; + builder = builder.set_metric_widget_image(var_49); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected GetMetricWidgetImageResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_list_dashboards( + inp: &[u8], + mut builder: crate::output::list_dashboards_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("ListDashboardsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected ListDashboardsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("ListDashboardsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected ListDashboardsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("DashboardEntries") /* DashboardEntries com.amazonaws.cloudwatch#ListDashboardsOutput$DashboardEntries */ => { + let var_50 = + Some( + crate::xml_deser::deser_list_dashboard_entries(&mut tag) + ? + ) + ; + builder = builder.set_dashboard_entries(var_50); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#ListDashboardsOutput$NextToken */ => { + let var_51 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_51); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected ListDashboardsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_list_metrics( + inp: &[u8], + mut builder: crate::output::list_metrics_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("ListMetricsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected ListMetricsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("ListMetricsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected ListMetricsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Metrics") /* Metrics com.amazonaws.cloudwatch#ListMetricsOutput$Metrics */ => { + let var_52 = + Some( + crate::xml_deser::deser_list_metrics(&mut tag) + ? + ) + ; + builder = builder.set_metrics(var_52); + } + , + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#ListMetricsOutput$NextToken */ => { + let var_53 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_53); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected ListMetricsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_list_metric_streams( + inp: &[u8], + mut builder: crate::output::list_metric_streams_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("ListMetricStreamsResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected ListMetricStreamsResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("ListMetricStreamsResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected ListMetricStreamsResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("NextToken") /* NextToken com.amazonaws.cloudwatch#ListMetricStreamsOutput$NextToken */ => { + let var_54 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_next_token(var_54); + } + , + s if s.matches("Entries") /* Entries com.amazonaws.cloudwatch#ListMetricStreamsOutput$Entries */ => { + let var_55 = + Some( + crate::xml_deser::deser_list_metric_stream_entries(&mut tag) + ? + ) + ; + builder = builder.set_entries(var_55); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected ListMetricStreamsResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_list_tags_for_resource( + inp: &[u8], + mut builder: crate::output::list_tags_for_resource_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("ListTagsForResourceResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected ListTagsForResourceResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("ListTagsForResourceResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected ListTagsForResourceResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Tags") /* Tags com.amazonaws.cloudwatch#ListTagsForResourceOutput$Tags */ => { + let var_56 = + Some( + crate::xml_deser::deser_list_tag_list(&mut tag) + ? + ) + ; + builder = builder.set_tags(var_56); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected ListTagsForResourceResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_limit_exceeded_fault_xml_err( + inp: &[u8], + mut builder: crate::error::limit_exceeded_fault::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#LimitExceededFault$message */ => { + let var_57 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_57); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_dashboard_invalid_input_error_xml_err( + inp: &[u8], + mut builder: crate::error::dashboard_invalid_input_error::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("dashboardValidationMessages") /* dashboardValidationMessages com.amazonaws.cloudwatch#DashboardInvalidInputError$dashboardValidationMessages */ => { + let var_58 = + Some( + crate::xml_deser::deser_list_dashboard_validation_messages(&mut tag) + ? + ) + ; + builder = builder.set_dashboard_validation_messages(var_58); + } + , + s if s.matches("message") /* message com.amazonaws.cloudwatch#DashboardInvalidInputError$message */ => { + let var_59 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_59); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_put_dashboard( + inp: &[u8], + mut builder: crate::output::put_dashboard_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("PutDashboardResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected PutDashboardResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("PutDashboardResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected PutDashboardResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("DashboardValidationMessages") /* DashboardValidationMessages com.amazonaws.cloudwatch#PutDashboardOutput$DashboardValidationMessages */ => { + let var_60 = + Some( + crate::xml_deser::deser_list_dashboard_validation_messages(&mut tag) + ? + ) + ; + builder = builder.set_dashboard_validation_messages(var_60); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected PutDashboardResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_concurrent_modification_exception_xml_err( + inp: &[u8], + mut builder: crate::error::concurrent_modification_exception::Builder, +) -> Result +{ + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("Message") /* Message com.amazonaws.cloudwatch#ConcurrentModificationException$Message */ => { + let var_61 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_61); + } + , + _ => {} + } + } + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_operation_put_metric_stream( + inp: &[u8], + mut builder: crate::output::put_metric_stream_output::Builder, +) -> Result { + use std::convert::TryFrom; + let mut doc = smithy_xml::decode::Document::try_from(inp)?; + + #[allow(unused_mut)] + let mut decoder = doc.root_element()?; + let start_el = decoder.start_el(); + if !(start_el.matches("PutMetricStreamResponse")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid root, expected PutMetricStreamResponse got {:?}", + start_el + ))); + } + if let Some(mut result_tag) = decoder.next_tag() { + let start_el = result_tag.start_el(); + if !(start_el.matches("PutMetricStreamResult")) { + return Err(smithy_xml::decode::XmlError::custom(format!( + "invalid result, expected PutMetricStreamResult got {:?}", + start_el + ))); + } + while let Some(mut tag) = result_tag.next_tag() { + match tag.start_el() { + s if s.matches("Arn") /* Arn com.amazonaws.cloudwatch#PutMetricStreamOutput$Arn */ => { + let var_62 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_arn(var_62); + } + , + _ => {} + } + } + } else { + return Err(smithy_xml::decode::XmlError::custom( + "expected PutMetricStreamResult tag", + )); + }; + Ok(builder) +} + +#[allow(unused_mut)] +pub fn deser_structure_invalid_format_fault_xml_err( + inp: &[u8], + mut builder: crate::error::invalid_format_fault::Builder, +) -> Result { + use std::convert::TryFrom; + let mut document = smithy_xml::decode::Document::try_from(inp)?; + #[allow(unused_mut)] + let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?; + while let Some(mut tag) = error_decoder.next_tag() { + match tag.start_el() { + s if s.matches("message") /* message com.amazonaws.cloudwatch#InvalidFormatFault$message */ => { + let var_63 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_63); + } + , + _ => {} + } + } + Ok(builder) +} + +pub fn deser_list_batch_failures( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#BatchFailures$member */ => { + out.push( + crate::xml_deser::deser_structure_partial_failure(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_alarm_history_items( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#AlarmHistoryItems$member */ => { + out.push( + crate::xml_deser::deser_structure_alarm_history_item(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_composite_alarms( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#CompositeAlarms$member */ => { + out.push( + crate::xml_deser::deser_structure_composite_alarm(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_alarms( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricAlarms$member */ => { + out.push( + crate::xml_deser::deser_structure_metric_alarm(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_anomaly_detectors( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#AnomalyDetectors$member */ => { + out.push( + crate::xml_deser::deser_structure_anomaly_detector(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_insight_rules( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRules$member */ => { + out.push( + crate::xml_deser::deser_structure_insight_rule(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_insight_rule_contributor_key_labels( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRuleContributorKeyLabels$member */ => { + out.push( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_insight_rule_contributors( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRuleContributors$member */ => { + out.push( + crate::xml_deser::deser_structure_insight_rule_contributor(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_insight_rule_metric_datapoints( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRuleMetricDatapoints$member */ => { + out.push( + crate::xml_deser::deser_structure_insight_rule_metric_datapoint(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_data_results( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricDataResults$member */ => { + out.push( + crate::xml_deser::deser_structure_metric_data_result(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_data_result_messages( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricDataResultMessages$member */ => { + out.push( + crate::xml_deser::deser_structure_message_data(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_datapoints( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#Datapoints$member */ => { + out.push( + crate::xml_deser::deser_structure_datapoint(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_stream_filters( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricStreamFilters$member */ => { + out.push( + crate::xml_deser::deser_structure_metric_stream_filter(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_dashboard_entries( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#DashboardEntries$member */ => { + out.push( + crate::xml_deser::deser_structure_dashboard_entry(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metrics( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#Metrics$member */ => { + out.push( + crate::xml_deser::deser_structure_metric(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_stream_entries( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricStreamEntries$member */ => { + out.push( + crate::xml_deser::deser_structure_metric_stream_entry(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_tag_list( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#TagList$member */ => { + out.push( + crate::xml_deser::deser_structure_tag(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_dashboard_validation_messages( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#DashboardValidationMessages$member */ => { + out.push( + crate::xml_deser::deser_structure_dashboard_validation_message(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_structure_partial_failure( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::PartialFailure::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("FailureResource") /* FailureResource com.amazonaws.cloudwatch#PartialFailure$FailureResource */ => { + let var_64 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_failure_resource(var_64); + } + , + s if s.matches("ExceptionType") /* ExceptionType com.amazonaws.cloudwatch#PartialFailure$ExceptionType */ => { + let var_65 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_exception_type(var_65); + } + , + s if s.matches("FailureCode") /* FailureCode com.amazonaws.cloudwatch#PartialFailure$FailureCode */ => { + let var_66 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_failure_code(var_66); + } + , + s if s.matches("FailureDescription") /* FailureDescription com.amazonaws.cloudwatch#PartialFailure$FailureDescription */ => { + let var_67 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_failure_description(var_67); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_alarm_history_item( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::AlarmHistoryItem::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("AlarmName") /* AlarmName com.amazonaws.cloudwatch#AlarmHistoryItem$AlarmName */ => { + let var_68 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_name(var_68); + } + , + s if s.matches("AlarmType") /* AlarmType com.amazonaws.cloudwatch#AlarmHistoryItem$AlarmType */ => { + let var_69 = + Some( + Result::::Ok( + crate::model::AlarmType::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_alarm_type(var_69); + } + , + s if s.matches("Timestamp") /* Timestamp com.amazonaws.cloudwatch#AlarmHistoryItem$Timestamp */ => { + let var_70 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_timestamp(var_70); + } + , + s if s.matches("HistoryItemType") /* HistoryItemType com.amazonaws.cloudwatch#AlarmHistoryItem$HistoryItemType */ => { + let var_71 = + Some( + Result::::Ok( + crate::model::HistoryItemType::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_history_item_type(var_71); + } + , + s if s.matches("HistorySummary") /* HistorySummary com.amazonaws.cloudwatch#AlarmHistoryItem$HistorySummary */ => { + let var_72 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_history_summary(var_72); + } + , + s if s.matches("HistoryData") /* HistoryData com.amazonaws.cloudwatch#AlarmHistoryItem$HistoryData */ => { + let var_73 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_history_data(var_73); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_composite_alarm( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::CompositeAlarm::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("ActionsEnabled") /* ActionsEnabled com.amazonaws.cloudwatch#CompositeAlarm$ActionsEnabled */ => { + let var_74 = + Some( + { + use std::str::FromStr; + bool::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (boolean: `com.amazonaws.cloudwatch#ActionsEnabled`)")) + } + ? + ) + ; + builder = builder.set_actions_enabled(var_74); + } + , + s if s.matches("AlarmActions") /* AlarmActions com.amazonaws.cloudwatch#CompositeAlarm$AlarmActions */ => { + let var_75 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_alarm_actions(var_75); + } + , + s if s.matches("AlarmArn") /* AlarmArn com.amazonaws.cloudwatch#CompositeAlarm$AlarmArn */ => { + let var_76 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_arn(var_76); + } + , + s if s.matches("AlarmConfigurationUpdatedTimestamp") /* AlarmConfigurationUpdatedTimestamp com.amazonaws.cloudwatch#CompositeAlarm$AlarmConfigurationUpdatedTimestamp */ => { + let var_77 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_alarm_configuration_updated_timestamp(var_77); + } + , + s if s.matches("AlarmDescription") /* AlarmDescription com.amazonaws.cloudwatch#CompositeAlarm$AlarmDescription */ => { + let var_78 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_description(var_78); + } + , + s if s.matches("AlarmName") /* AlarmName com.amazonaws.cloudwatch#CompositeAlarm$AlarmName */ => { + let var_79 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_name(var_79); + } + , + s if s.matches("AlarmRule") /* AlarmRule com.amazonaws.cloudwatch#CompositeAlarm$AlarmRule */ => { + let var_80 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_rule(var_80); + } + , + s if s.matches("InsufficientDataActions") /* InsufficientDataActions com.amazonaws.cloudwatch#CompositeAlarm$InsufficientDataActions */ => { + let var_81 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_insufficient_data_actions(var_81); + } + , + s if s.matches("OKActions") /* OKActions com.amazonaws.cloudwatch#CompositeAlarm$OKActions */ => { + let var_82 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_ok_actions(var_82); + } + , + s if s.matches("StateReason") /* StateReason com.amazonaws.cloudwatch#CompositeAlarm$StateReason */ => { + let var_83 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state_reason(var_83); + } + , + s if s.matches("StateReasonData") /* StateReasonData com.amazonaws.cloudwatch#CompositeAlarm$StateReasonData */ => { + let var_84 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state_reason_data(var_84); + } + , + s if s.matches("StateUpdatedTimestamp") /* StateUpdatedTimestamp com.amazonaws.cloudwatch#CompositeAlarm$StateUpdatedTimestamp */ => { + let var_85 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_state_updated_timestamp(var_85); + } + , + s if s.matches("StateValue") /* StateValue com.amazonaws.cloudwatch#CompositeAlarm$StateValue */ => { + let var_86 = + Some( + Result::::Ok( + crate::model::StateValue::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_state_value(var_86); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric_alarm( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricAlarm::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("AlarmName") /* AlarmName com.amazonaws.cloudwatch#MetricAlarm$AlarmName */ => { + let var_87 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_name(var_87); + } + , + s if s.matches("AlarmArn") /* AlarmArn com.amazonaws.cloudwatch#MetricAlarm$AlarmArn */ => { + let var_88 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_arn(var_88); + } + , + s if s.matches("AlarmDescription") /* AlarmDescription com.amazonaws.cloudwatch#MetricAlarm$AlarmDescription */ => { + let var_89 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_alarm_description(var_89); + } + , + s if s.matches("AlarmConfigurationUpdatedTimestamp") /* AlarmConfigurationUpdatedTimestamp com.amazonaws.cloudwatch#MetricAlarm$AlarmConfigurationUpdatedTimestamp */ => { + let var_90 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_alarm_configuration_updated_timestamp(var_90); + } + , + s if s.matches("ActionsEnabled") /* ActionsEnabled com.amazonaws.cloudwatch#MetricAlarm$ActionsEnabled */ => { + let var_91 = + Some( + { + use std::str::FromStr; + bool::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (boolean: `com.amazonaws.cloudwatch#ActionsEnabled`)")) + } + ? + ) + ; + builder = builder.set_actions_enabled(var_91); + } + , + s if s.matches("OKActions") /* OKActions com.amazonaws.cloudwatch#MetricAlarm$OKActions */ => { + let var_92 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_ok_actions(var_92); + } + , + s if s.matches("AlarmActions") /* AlarmActions com.amazonaws.cloudwatch#MetricAlarm$AlarmActions */ => { + let var_93 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_alarm_actions(var_93); + } + , + s if s.matches("InsufficientDataActions") /* InsufficientDataActions com.amazonaws.cloudwatch#MetricAlarm$InsufficientDataActions */ => { + let var_94 = + Some( + crate::xml_deser::deser_list_resource_list(&mut tag) + ? + ) + ; + builder = builder.set_insufficient_data_actions(var_94); + } + , + s if s.matches("StateValue") /* StateValue com.amazonaws.cloudwatch#MetricAlarm$StateValue */ => { + let var_95 = + Some( + Result::::Ok( + crate::model::StateValue::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_state_value(var_95); + } + , + s if s.matches("StateReason") /* StateReason com.amazonaws.cloudwatch#MetricAlarm$StateReason */ => { + let var_96 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state_reason(var_96); + } + , + s if s.matches("StateReasonData") /* StateReasonData com.amazonaws.cloudwatch#MetricAlarm$StateReasonData */ => { + let var_97 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state_reason_data(var_97); + } + , + s if s.matches("StateUpdatedTimestamp") /* StateUpdatedTimestamp com.amazonaws.cloudwatch#MetricAlarm$StateUpdatedTimestamp */ => { + let var_98 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_state_updated_timestamp(var_98); + } + , + s if s.matches("MetricName") /* MetricName com.amazonaws.cloudwatch#MetricAlarm$MetricName */ => { + let var_99 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_metric_name(var_99); + } + , + s if s.matches("Namespace") /* Namespace com.amazonaws.cloudwatch#MetricAlarm$Namespace */ => { + let var_100 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_namespace(var_100); + } + , + s if s.matches("Statistic") /* Statistic com.amazonaws.cloudwatch#MetricAlarm$Statistic */ => { + let var_101 = + Some( + Result::::Ok( + crate::model::Statistic::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_statistic(var_101); + } + , + s if s.matches("ExtendedStatistic") /* ExtendedStatistic com.amazonaws.cloudwatch#MetricAlarm$ExtendedStatistic */ => { + let var_102 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_extended_statistic(var_102); + } + , + s if s.matches("Dimensions") /* Dimensions com.amazonaws.cloudwatch#MetricAlarm$Dimensions */ => { + let var_103 = + Some( + crate::xml_deser::deser_list_dimensions(&mut tag) + ? + ) + ; + builder = builder.set_dimensions(var_103); + } + , + s if s.matches("Period") /* Period com.amazonaws.cloudwatch#MetricAlarm$Period */ => { + let var_104 = + Some( + { + use std::str::FromStr; + i32::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (integer: `com.amazonaws.cloudwatch#Period`)")) + } + ? + ) + ; + builder = builder.set_period(var_104); + } + , + s if s.matches("Unit") /* Unit com.amazonaws.cloudwatch#MetricAlarm$Unit */ => { + let var_105 = + Some( + Result::::Ok( + crate::model::StandardUnit::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_unit(var_105); + } + , + s if s.matches("EvaluationPeriods") /* EvaluationPeriods com.amazonaws.cloudwatch#MetricAlarm$EvaluationPeriods */ => { + let var_106 = + Some( + { + use std::str::FromStr; + i32::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (integer: `com.amazonaws.cloudwatch#EvaluationPeriods`)")) + } + ? + ) + ; + builder = builder.set_evaluation_periods(var_106); + } + , + s if s.matches("DatapointsToAlarm") /* DatapointsToAlarm com.amazonaws.cloudwatch#MetricAlarm$DatapointsToAlarm */ => { + let var_107 = + Some( + { + use std::str::FromStr; + i32::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (integer: `com.amazonaws.cloudwatch#DatapointsToAlarm`)")) + } + ? + ) + ; + builder = builder.set_datapoints_to_alarm(var_107); + } + , + s if s.matches("Threshold") /* Threshold com.amazonaws.cloudwatch#MetricAlarm$Threshold */ => { + let var_108 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#Threshold`)")) + } + ? + ) + ; + builder = builder.set_threshold(var_108); + } + , + s if s.matches("ComparisonOperator") /* ComparisonOperator com.amazonaws.cloudwatch#MetricAlarm$ComparisonOperator */ => { + let var_109 = + Some( + Result::::Ok( + crate::model::ComparisonOperator::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_comparison_operator(var_109); + } + , + s if s.matches("TreatMissingData") /* TreatMissingData com.amazonaws.cloudwatch#MetricAlarm$TreatMissingData */ => { + let var_110 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_treat_missing_data(var_110); + } + , + s if s.matches("EvaluateLowSampleCountPercentile") /* EvaluateLowSampleCountPercentile com.amazonaws.cloudwatch#MetricAlarm$EvaluateLowSampleCountPercentile */ => { + let var_111 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_evaluate_low_sample_count_percentile(var_111); + } + , + s if s.matches("Metrics") /* Metrics com.amazonaws.cloudwatch#MetricAlarm$Metrics */ => { + let var_112 = + Some( + crate::xml_deser::deser_list_metric_data_queries(&mut tag) + ? + ) + ; + builder = builder.set_metrics(var_112); + } + , + s if s.matches("ThresholdMetricId") /* ThresholdMetricId com.amazonaws.cloudwatch#MetricAlarm$ThresholdMetricId */ => { + let var_113 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_threshold_metric_id(var_113); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_anomaly_detector( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::AnomalyDetector::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Namespace") /* Namespace com.amazonaws.cloudwatch#AnomalyDetector$Namespace */ => { + let var_114 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_namespace(var_114); + } + , + s if s.matches("MetricName") /* MetricName com.amazonaws.cloudwatch#AnomalyDetector$MetricName */ => { + let var_115 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_metric_name(var_115); + } + , + s if s.matches("Dimensions") /* Dimensions com.amazonaws.cloudwatch#AnomalyDetector$Dimensions */ => { + let var_116 = + Some( + crate::xml_deser::deser_list_dimensions(&mut tag) + ? + ) + ; + builder = builder.set_dimensions(var_116); + } + , + s if s.matches("Stat") /* Stat com.amazonaws.cloudwatch#AnomalyDetector$Stat */ => { + let var_117 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_stat(var_117); + } + , + s if s.matches("Configuration") /* Configuration com.amazonaws.cloudwatch#AnomalyDetector$Configuration */ => { + let var_118 = + Some( + crate::xml_deser::deser_structure_anomaly_detector_configuration(&mut tag) + ? + ) + ; + builder = builder.set_configuration(var_118); + } + , + s if s.matches("StateValue") /* StateValue com.amazonaws.cloudwatch#AnomalyDetector$StateValue */ => { + let var_119 = + Some( + Result::::Ok( + crate::model::AnomalyDetectorStateValue::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_state_value(var_119); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_insight_rule( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::InsightRule::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Name") /* Name com.amazonaws.cloudwatch#InsightRule$Name */ => { + let var_120 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_name(var_120); + } + , + s if s.matches("State") /* State com.amazonaws.cloudwatch#InsightRule$State */ => { + let var_121 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state(var_121); + } + , + s if s.matches("Schema") /* Schema com.amazonaws.cloudwatch#InsightRule$Schema */ => { + let var_122 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_schema(var_122); + } + , + s if s.matches("Definition") /* Definition com.amazonaws.cloudwatch#InsightRule$Definition */ => { + let var_123 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_definition(var_123); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_insight_rule_contributor( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::InsightRuleContributor::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Keys") /* Keys com.amazonaws.cloudwatch#InsightRuleContributor$Keys */ => { + let var_124 = + Some( + crate::xml_deser::deser_list_insight_rule_contributor_keys(&mut tag) + ? + ) + ; + builder = builder.set_keys(var_124); + } + , + s if s.matches("ApproximateAggregateValue") /* ApproximateAggregateValue com.amazonaws.cloudwatch#InsightRuleContributor$ApproximateAggregateValue */ => { + let var_125 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_approximate_aggregate_value(var_125); + } + , + s if s.matches("Datapoints") /* Datapoints com.amazonaws.cloudwatch#InsightRuleContributor$Datapoints */ => { + let var_126 = + Some( + crate::xml_deser::deser_list_insight_rule_contributor_datapoints(&mut tag) + ? + ) + ; + builder = builder.set_datapoints(var_126); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_insight_rule_metric_datapoint( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::InsightRuleMetricDatapoint::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Timestamp") /* Timestamp com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$Timestamp */ => { + let var_127 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_timestamp(var_127); + } + , + s if s.matches("UniqueContributors") /* UniqueContributors com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$UniqueContributors */ => { + let var_128 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_unique_contributors(var_128); + } + , + s if s.matches("MaxContributorValue") /* MaxContributorValue com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$MaxContributorValue */ => { + let var_129 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_max_contributor_value(var_129); + } + , + s if s.matches("SampleCount") /* SampleCount com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$SampleCount */ => { + let var_130 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_sample_count(var_130); + } + , + s if s.matches("Average") /* Average com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$Average */ => { + let var_131 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_average(var_131); + } + , + s if s.matches("Sum") /* Sum com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$Sum */ => { + let var_132 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_sum(var_132); + } + , + s if s.matches("Minimum") /* Minimum com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$Minimum */ => { + let var_133 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_minimum(var_133); + } + , + s if s.matches("Maximum") /* Maximum com.amazonaws.cloudwatch#InsightRuleMetricDatapoint$Maximum */ => { + let var_134 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_maximum(var_134); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric_data_result( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricDataResult::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Id") /* Id com.amazonaws.cloudwatch#MetricDataResult$Id */ => { + let var_135 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_id(var_135); + } + , + s if s.matches("Label") /* Label com.amazonaws.cloudwatch#MetricDataResult$Label */ => { + let var_136 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_label(var_136); + } + , + s if s.matches("Timestamps") /* Timestamps com.amazonaws.cloudwatch#MetricDataResult$Timestamps */ => { + let var_137 = + Some( + crate::xml_deser::deser_list_timestamps(&mut tag) + ? + ) + ; + builder = builder.set_timestamps(var_137); + } + , + s if s.matches("Values") /* Values com.amazonaws.cloudwatch#MetricDataResult$Values */ => { + let var_138 = + Some( + crate::xml_deser::deser_list_datapoint_values(&mut tag) + ? + ) + ; + builder = builder.set_values(var_138); + } + , + s if s.matches("StatusCode") /* StatusCode com.amazonaws.cloudwatch#MetricDataResult$StatusCode */ => { + let var_139 = + Some( + Result::::Ok( + crate::model::StatusCode::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_status_code(var_139); + } + , + s if s.matches("Messages") /* Messages com.amazonaws.cloudwatch#MetricDataResult$Messages */ => { + let var_140 = + Some( + crate::xml_deser::deser_list_metric_data_result_messages(&mut tag) + ? + ) + ; + builder = builder.set_messages(var_140); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_message_data( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MessageData::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Code") /* Code com.amazonaws.cloudwatch#MessageData$Code */ => { + let var_141 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_code(var_141); + } + , + s if s.matches("Value") /* Value com.amazonaws.cloudwatch#MessageData$Value */ => { + let var_142 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_value(var_142); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_datapoint( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::Datapoint::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Timestamp") /* Timestamp com.amazonaws.cloudwatch#Datapoint$Timestamp */ => { + let var_143 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_timestamp(var_143); + } + , + s if s.matches("SampleCount") /* SampleCount com.amazonaws.cloudwatch#Datapoint$SampleCount */ => { + let var_144 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + ; + builder = builder.set_sample_count(var_144); + } + , + s if s.matches("Average") /* Average com.amazonaws.cloudwatch#Datapoint$Average */ => { + let var_145 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + ; + builder = builder.set_average(var_145); + } + , + s if s.matches("Sum") /* Sum com.amazonaws.cloudwatch#Datapoint$Sum */ => { + let var_146 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + ; + builder = builder.set_sum(var_146); + } + , + s if s.matches("Minimum") /* Minimum com.amazonaws.cloudwatch#Datapoint$Minimum */ => { + let var_147 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + ; + builder = builder.set_minimum(var_147); + } + , + s if s.matches("Maximum") /* Maximum com.amazonaws.cloudwatch#Datapoint$Maximum */ => { + let var_148 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + ; + builder = builder.set_maximum(var_148); + } + , + s if s.matches("Unit") /* Unit com.amazonaws.cloudwatch#Datapoint$Unit */ => { + let var_149 = + Some( + Result::::Ok( + crate::model::StandardUnit::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_unit(var_149); + } + , + s if s.matches("ExtendedStatistics") /* ExtendedStatistics com.amazonaws.cloudwatch#Datapoint$ExtendedStatistics */ => { + let var_150 = + Some( + crate::xml_deser::deser_map_datapoint_value_map(&mut tag) + ? + ) + ; + builder = builder.set_extended_statistics(var_150); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric_stream_filter( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricStreamFilter::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Namespace") /* Namespace com.amazonaws.cloudwatch#MetricStreamFilter$Namespace */ => { + let var_151 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_namespace(var_151); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_dashboard_entry( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::DashboardEntry::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("DashboardName") /* DashboardName com.amazonaws.cloudwatch#DashboardEntry$DashboardName */ => { + let var_152 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_dashboard_name(var_152); + } + , + s if s.matches("DashboardArn") /* DashboardArn com.amazonaws.cloudwatch#DashboardEntry$DashboardArn */ => { + let var_153 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_dashboard_arn(var_153); + } + , + s if s.matches("LastModified") /* LastModified com.amazonaws.cloudwatch#DashboardEntry$LastModified */ => { + let var_154 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#LastModified`)")) + ? + ) + ; + builder = builder.set_last_modified(var_154); + } + , + s if s.matches("Size") /* Size com.amazonaws.cloudwatch#DashboardEntry$Size */ => { + let var_155 = + Some( + { + use std::str::FromStr; + i64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (long: `com.amazonaws.cloudwatch#Size`)")) + } + ? + ) + ; + builder = builder.set_size(var_155); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::Metric::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Namespace") /* Namespace com.amazonaws.cloudwatch#Metric$Namespace */ => { + let var_156 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_namespace(var_156); + } + , + s if s.matches("MetricName") /* MetricName com.amazonaws.cloudwatch#Metric$MetricName */ => { + let var_157 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_metric_name(var_157); + } + , + s if s.matches("Dimensions") /* Dimensions com.amazonaws.cloudwatch#Metric$Dimensions */ => { + let var_158 = + Some( + crate::xml_deser::deser_list_dimensions(&mut tag) + ? + ) + ; + builder = builder.set_dimensions(var_158); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric_stream_entry( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricStreamEntry::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Arn") /* Arn com.amazonaws.cloudwatch#MetricStreamEntry$Arn */ => { + let var_159 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_arn(var_159); + } + , + s if s.matches("CreationDate") /* CreationDate com.amazonaws.cloudwatch#MetricStreamEntry$CreationDate */ => { + let var_160 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_creation_date(var_160); + } + , + s if s.matches("LastUpdateDate") /* LastUpdateDate com.amazonaws.cloudwatch#MetricStreamEntry$LastUpdateDate */ => { + let var_161 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_last_update_date(var_161); + } + , + s if s.matches("Name") /* Name com.amazonaws.cloudwatch#MetricStreamEntry$Name */ => { + let var_162 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_name(var_162); + } + , + s if s.matches("FirehoseArn") /* FirehoseArn com.amazonaws.cloudwatch#MetricStreamEntry$FirehoseArn */ => { + let var_163 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_firehose_arn(var_163); + } + , + s if s.matches("State") /* State com.amazonaws.cloudwatch#MetricStreamEntry$State */ => { + let var_164 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_state(var_164); + } + , + s if s.matches("OutputFormat") /* OutputFormat com.amazonaws.cloudwatch#MetricStreamEntry$OutputFormat */ => { + let var_165 = + Some( + Result::::Ok( + crate::model::MetricStreamOutputFormat::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_output_format(var_165); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_tag( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Key") /* Key com.amazonaws.cloudwatch#Tag$Key */ => { + let var_166 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_key(var_166); + } + , + s if s.matches("Value") /* Value com.amazonaws.cloudwatch#Tag$Value */ => { + let var_167 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_value(var_167); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_dashboard_validation_message( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::DashboardValidationMessage::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("DataPath") /* DataPath com.amazonaws.cloudwatch#DashboardValidationMessage$DataPath */ => { + let var_168 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_data_path(var_168); + } + , + s if s.matches("Message") /* Message com.amazonaws.cloudwatch#DashboardValidationMessage$Message */ => { + let var_169 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_message(var_169); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_list_resource_list( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#ResourceList$member */ => { + out.push( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_dimensions( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#Dimensions$member */ => { + out.push( + crate::xml_deser::deser_structure_dimension(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_metric_data_queries( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#MetricDataQueries$member */ => { + out.push( + crate::xml_deser::deser_structure_metric_data_query(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_structure_anomaly_detector_configuration( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::AnomalyDetectorConfiguration::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("ExcludedTimeRanges") /* ExcludedTimeRanges com.amazonaws.cloudwatch#AnomalyDetectorConfiguration$ExcludedTimeRanges */ => { + let var_170 = + Some( + crate::xml_deser::deser_list_anomaly_detector_excluded_time_ranges(&mut tag) + ? + ) + ; + builder = builder.set_excluded_time_ranges(var_170); + } + , + s if s.matches("MetricTimezone") /* MetricTimezone com.amazonaws.cloudwatch#AnomalyDetectorConfiguration$MetricTimezone */ => { + let var_171 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_metric_timezone(var_171); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_list_insight_rule_contributor_keys( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRuleContributorKeys$member */ => { + out.push( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_insight_rule_contributor_datapoints( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result< + std::vec::Vec, + smithy_xml::decode::XmlError, +> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#InsightRuleContributorDatapoints$member */ => { + out.push( + crate::xml_deser::deser_structure_insight_rule_contributor_datapoint(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_timestamps( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#Timestamps$member */ => { + out.push( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_list_datapoint_values( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#DatapointValues$member */ => { + out.push( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_map_datapoint_value_map( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::collections::HashMap::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("entry") => { + crate::xml_deser::deser_map_datapoint_value_map_entry(&mut tag, &mut out)?; + } + _ => {} + } + } + Ok(out) +} + +pub fn deser_structure_dimension( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::Dimension::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Name") /* Name com.amazonaws.cloudwatch#Dimension$Name */ => { + let var_172 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_name(var_172); + } + , + s if s.matches("Value") /* Value com.amazonaws.cloudwatch#Dimension$Value */ => { + let var_173 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_value(var_173); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_metric_data_query( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricDataQuery::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Id") /* Id com.amazonaws.cloudwatch#MetricDataQuery$Id */ => { + let var_174 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_id(var_174); + } + , + s if s.matches("MetricStat") /* MetricStat com.amazonaws.cloudwatch#MetricDataQuery$MetricStat */ => { + let var_175 = + Some( + crate::xml_deser::deser_structure_metric_stat(&mut tag) + ? + ) + ; + builder = builder.set_metric_stat(var_175); + } + , + s if s.matches("Expression") /* Expression com.amazonaws.cloudwatch#MetricDataQuery$Expression */ => { + let var_176 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_expression(var_176); + } + , + s if s.matches("Label") /* Label com.amazonaws.cloudwatch#MetricDataQuery$Label */ => { + let var_177 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_label(var_177); + } + , + s if s.matches("ReturnData") /* ReturnData com.amazonaws.cloudwatch#MetricDataQuery$ReturnData */ => { + let var_178 = + Some( + { + use std::str::FromStr; + bool::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (boolean: `com.amazonaws.cloudwatch#ReturnData`)")) + } + ? + ) + ; + builder = builder.set_return_data(var_178); + } + , + s if s.matches("Period") /* Period com.amazonaws.cloudwatch#MetricDataQuery$Period */ => { + let var_179 = + Some( + { + use std::str::FromStr; + i32::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (integer: `com.amazonaws.cloudwatch#Period`)")) + } + ? + ) + ; + builder = builder.set_period(var_179); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_list_anomaly_detector_excluded_time_ranges( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result, smithy_xml::decode::XmlError> { + let mut out = std::vec::Vec::new(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("member") /* member com.amazonaws.cloudwatch#AnomalyDetectorExcludedTimeRanges$member */ => { + out.push( + crate::xml_deser::deser_structure_range(&mut tag) + ? + ); + } + , + _ => {} + } + } + Ok(out) +} + +pub fn deser_structure_insight_rule_contributor_datapoint( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::InsightRuleContributorDatapoint::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Timestamp") /* Timestamp com.amazonaws.cloudwatch#InsightRuleContributorDatapoint$Timestamp */ => { + let var_180 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_timestamp(var_180); + } + , + s if s.matches("ApproximateValue") /* ApproximateValue com.amazonaws.cloudwatch#InsightRuleContributorDatapoint$ApproximateValue */ => { + let var_181 = + Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#InsightRuleUnboundDouble`)")) + } + ? + ) + ; + builder = builder.set_approximate_value(var_181); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_map_datapoint_value_map_entry( + decoder: &mut smithy_xml::decode::ScopedDecoder, + out: &mut std::collections::HashMap, +) -> Result<(), smithy_xml::decode::XmlError> { + let mut k: Option = None; + let mut v: Option = None; + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("key") /* key com.amazonaws.cloudwatch#DatapointValueMap$key */ => { + k = Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + } + , + s if s.matches("value") /* value com.amazonaws.cloudwatch#DatapointValueMap$value */ => { + v = Some( + { + use std::str::FromStr; + f64::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (double: `com.amazonaws.cloudwatch#DatapointValue`)")) + } + ? + ) + } + , + _ => {} + } + } + let k = k.ok_or_else(|| smithy_xml::decode::XmlError::custom("missing key map entry"))?; + let v = v.ok_or_else(|| smithy_xml::decode::XmlError::custom("missing value map entry"))?; + out.insert(k, v); + Ok(()) +} + +pub fn deser_structure_metric_stat( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::MetricStat::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("Metric") /* Metric com.amazonaws.cloudwatch#MetricStat$Metric */ => { + let var_182 = + Some( + crate::xml_deser::deser_structure_metric(&mut tag) + ? + ) + ; + builder = builder.set_metric(var_182); + } + , + s if s.matches("Period") /* Period com.amazonaws.cloudwatch#MetricStat$Period */ => { + let var_183 = + Some( + { + use std::str::FromStr; + i32::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (integer: `com.amazonaws.cloudwatch#Period`)")) + } + ? + ) + ; + builder = builder.set_period(var_183); + } + , + s if s.matches("Stat") /* Stat com.amazonaws.cloudwatch#MetricStat$Stat */ => { + let var_184 = + Some( + Result::::Ok( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_stat(var_184); + } + , + s if s.matches("Unit") /* Unit com.amazonaws.cloudwatch#MetricStat$Unit */ => { + let var_185 = + Some( + Result::::Ok( + crate::model::StandardUnit::from( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_unit(var_185); + } + , + _ => {} + } + } + Ok(builder.build()) +} + +pub fn deser_structure_range( + decoder: &mut smithy_xml::decode::ScopedDecoder, +) -> Result { + #[allow(unused_mut)] + let mut builder = crate::model::Range::builder(); + while let Some(mut tag) = decoder.next_tag() { + match tag.start_el() { + s if s.matches("StartTime") /* StartTime com.amazonaws.cloudwatch#Range$StartTime */ => { + let var_186 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_start_time(var_186); + } + , + s if s.matches("EndTime") /* EndTime com.amazonaws.cloudwatch#Range$EndTime */ => { + let var_187 = + Some( + smithy_types::Instant::from_str( + smithy_xml::decode::try_data(&mut tag)?.as_ref() + , smithy_types::instant::Format::DateTime + ) + .map_err(|_|smithy_xml::decode::XmlError::custom("expected (timestamp: `com.amazonaws.cloudwatch#Timestamp`)")) + ? + ) + ; + builder = builder.set_end_time(var_187); + } + , + _ => {} + } + } + Ok(builder.build()) +} diff --git a/sdk/cloudwatchlogs/Cargo.toml b/sdk/cloudwatchlogs/Cargo.toml index aea9aed064f7..3749b8698035 100644 --- a/sdk/cloudwatchlogs/Cargo.toml +++ b/sdk/cloudwatchlogs/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-cloudwatchlogs" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    You can use Amazon CloudWatch Logs to monitor, store, and access your log files from\n EC2 instances, AWS CloudTrail, and other sources. You can then retrieve the associated\n log data from CloudWatch Logs using the CloudWatch console, CloudWatch Logs commands in the\n AWS CLI, CloudWatch Logs API, or CloudWatch Logs SDK.

    \n

    You can use CloudWatch Logs to:

    \n
      \n
    • \n

      \n Monitor logs from EC2 instances in real-time: You\n can use CloudWatch Logs to monitor applications and systems using log data. For example,\n CloudWatch Logs can track the number of errors that occur in your application logs and\n send you a notification whenever the rate of errors exceeds a threshold that you specify.\n CloudWatch Logs uses your log data for monitoring so no code changes are required. For\n example, you can monitor application logs for specific literal terms (such as\n \"NullReferenceException\") or count the number of occurrences of a literal term at a\n particular position in log data (such as \"404\" status codes in an Apache access log). When\n the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch\n metric that you specify.

      \n
    • \n
    • \n

      \n Monitor AWS CloudTrail logged events: You can\n create alarms in CloudWatch and receive notifications of particular API activity as\n captured by CloudTrail. You can use the notification to perform troubleshooting.

      \n
    • \n
    • \n

      \n Archive log data: You can use CloudWatch Logs to\n store your log data in highly durable storage. You can change the log retention setting so\n that any log events older than this setting are automatically deleted. The CloudWatch Logs\n agent makes it easy to quickly send both rotated and non-rotated log data off of a host\n and into the log service. You can then access the raw log data when you need it.

      \n
    • \n
    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,22 +20,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/cloudwatchlogs/src/aws_json_errors.rs b/sdk/cloudwatchlogs/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/cloudwatchlogs/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/cloudwatchlogs/src/error.rs b/sdk/cloudwatchlogs/src/error.rs index 1a21f72beb61..261b010ec97e 100644 --- a/sdk/cloudwatchlogs/src/error.rs +++ b/sdk/cloudwatchlogs/src/error.rs @@ -8,20 +8,20 @@ pub struct AssociateKmsKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AssociateKmsKeyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AssociateKmsKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AssociateKmsKeyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - AssociateKmsKeyErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - AssociateKmsKeyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - AssociateKmsKeyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + AssociateKmsKeyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + AssociateKmsKeyErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + AssociateKmsKeyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + AssociateKmsKeyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), AssociateKmsKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -70,38 +70,38 @@ impl AssociateKmsKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - AssociateKmsKeyErrorKind::InvalidParameterError(_) + AssociateKmsKeyErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - AssociateKmsKeyErrorKind::OperationAbortedError(_) + AssociateKmsKeyErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - AssociateKmsKeyErrorKind::ResourceNotFoundError(_) + AssociateKmsKeyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - AssociateKmsKeyErrorKind::ServiceUnavailableError(_) + AssociateKmsKeyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for AssociateKmsKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AssociateKmsKeyErrorKind::InvalidParameterError(_inner) => Some(_inner), - AssociateKmsKeyErrorKind::OperationAbortedError(_inner) => Some(_inner), - AssociateKmsKeyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - AssociateKmsKeyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + AssociateKmsKeyErrorKind::InvalidParameterException(_inner) => Some(_inner), + AssociateKmsKeyErrorKind::OperationAbortedException(_inner) => Some(_inner), + AssociateKmsKeyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + AssociateKmsKeyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), AssociateKmsKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -116,20 +116,20 @@ pub struct CancelExportTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelExportTaskErrorKind { - InvalidOperationError(crate::error::InvalidOperationError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidOperationException(crate::error::InvalidOperationException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelExportTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelExportTaskErrorKind::InvalidOperationError(_inner) => _inner.fmt(f), - CancelExportTaskErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CancelExportTaskErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CancelExportTaskErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + CancelExportTaskErrorKind::InvalidOperationException(_inner) => _inner.fmt(f), + CancelExportTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CancelExportTaskErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CancelExportTaskErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), CancelExportTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -178,38 +178,38 @@ impl CancelExportTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_operation_error(&self) -> bool { + pub fn is_invalid_operation_exception(&self) -> bool { matches!( &self.kind, - CancelExportTaskErrorKind::InvalidOperationError(_) + CancelExportTaskErrorKind::InvalidOperationException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CancelExportTaskErrorKind::InvalidParameterError(_) + CancelExportTaskErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CancelExportTaskErrorKind::ResourceNotFoundError(_) + CancelExportTaskErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CancelExportTaskErrorKind::ServiceUnavailableError(_) + CancelExportTaskErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for CancelExportTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelExportTaskErrorKind::InvalidOperationError(_inner) => Some(_inner), - CancelExportTaskErrorKind::InvalidParameterError(_inner) => Some(_inner), - CancelExportTaskErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CancelExportTaskErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + CancelExportTaskErrorKind::InvalidOperationException(_inner) => Some(_inner), + CancelExportTaskErrorKind::InvalidParameterException(_inner) => Some(_inner), + CancelExportTaskErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CancelExportTaskErrorKind::ServiceUnavailableException(_inner) => Some(_inner), CancelExportTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -224,24 +224,24 @@ pub struct CreateExportTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateExportTaskErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateExportTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateExportTaskErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateExportTaskErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateExportTaskErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - CreateExportTaskErrorKind::ResourceAlreadyExistsError(_inner) => _inner.fmt(f), - CreateExportTaskErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CreateExportTaskErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateExportTaskErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), CreateExportTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -290,49 +290,52 @@ impl CreateExportTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateExportTaskErrorKind::InvalidParameterError(_) + CreateExportTaskErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateExportTaskErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateExportTaskErrorKind::LimitExceededException(_) + ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - CreateExportTaskErrorKind::OperationAbortedError(_) + CreateExportTaskErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_already_exists_error(&self) -> bool { + pub fn is_resource_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateExportTaskErrorKind::ResourceAlreadyExistsError(_) + CreateExportTaskErrorKind::ResourceAlreadyExistsException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateExportTaskErrorKind::ResourceNotFoundError(_) + CreateExportTaskErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateExportTaskErrorKind::ServiceUnavailableError(_) + CreateExportTaskErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for CreateExportTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateExportTaskErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateExportTaskErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateExportTaskErrorKind::OperationAbortedError(_inner) => Some(_inner), - CreateExportTaskErrorKind::ResourceAlreadyExistsError(_inner) => Some(_inner), - CreateExportTaskErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CreateExportTaskErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + CreateExportTaskErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateExportTaskErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateExportTaskErrorKind::OperationAbortedException(_inner) => Some(_inner), + CreateExportTaskErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner), + CreateExportTaskErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateExportTaskErrorKind::ServiceUnavailableException(_inner) => Some(_inner), CreateExportTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -347,22 +350,22 @@ pub struct CreateLogGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateLogGroupErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateLogGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateLogGroupErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateLogGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateLogGroupErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - CreateLogGroupErrorKind::ResourceAlreadyExistsError(_inner) => _inner.fmt(f), - CreateLogGroupErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + CreateLogGroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateLogGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateLogGroupErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + CreateLogGroupErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f), + CreateLogGroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), CreateLogGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -411,42 +414,45 @@ impl CreateLogGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateLogGroupErrorKind::InvalidParameterError(_) + CreateLogGroupErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateLogGroupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateLogGroupErrorKind::LimitExceededException(_) + ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - CreateLogGroupErrorKind::OperationAbortedError(_) + CreateLogGroupErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_already_exists_error(&self) -> bool { + pub fn is_resource_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateLogGroupErrorKind::ResourceAlreadyExistsError(_) + CreateLogGroupErrorKind::ResourceAlreadyExistsException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateLogGroupErrorKind::ServiceUnavailableError(_) + CreateLogGroupErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for CreateLogGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateLogGroupErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateLogGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateLogGroupErrorKind::OperationAbortedError(_inner) => Some(_inner), - CreateLogGroupErrorKind::ResourceAlreadyExistsError(_inner) => Some(_inner), - CreateLogGroupErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + CreateLogGroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateLogGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateLogGroupErrorKind::OperationAbortedException(_inner) => Some(_inner), + CreateLogGroupErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner), + CreateLogGroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), CreateLogGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -461,20 +467,20 @@ pub struct CreateLogStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateLogStreamErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateLogStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateLogStreamErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateLogStreamErrorKind::ResourceAlreadyExistsError(_inner) => _inner.fmt(f), - CreateLogStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CreateLogStreamErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + CreateLogStreamErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateLogStreamErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f), + CreateLogStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateLogStreamErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), CreateLogStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -523,38 +529,38 @@ impl CreateLogStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateLogStreamErrorKind::InvalidParameterError(_) + CreateLogStreamErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_already_exists_error(&self) -> bool { + pub fn is_resource_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateLogStreamErrorKind::ResourceAlreadyExistsError(_) + CreateLogStreamErrorKind::ResourceAlreadyExistsException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateLogStreamErrorKind::ResourceNotFoundError(_) + CreateLogStreamErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateLogStreamErrorKind::ServiceUnavailableError(_) + CreateLogStreamErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for CreateLogStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateLogStreamErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateLogStreamErrorKind::ResourceAlreadyExistsError(_inner) => Some(_inner), - CreateLogStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CreateLogStreamErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + CreateLogStreamErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateLogStreamErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner), + CreateLogStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateLogStreamErrorKind::ServiceUnavailableException(_inner) => Some(_inner), CreateLogStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -569,20 +575,20 @@ pub struct DeleteDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDestinationErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDestinationErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteDestinationErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteDestinationErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteDestinationErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteDestinationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteDestinationErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteDestinationErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteDestinationErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -631,38 +637,38 @@ impl DeleteDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteDestinationErrorKind::InvalidParameterError(_) + DeleteDestinationErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteDestinationErrorKind::OperationAbortedError(_) + DeleteDestinationErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteDestinationErrorKind::ResourceNotFoundError(_) + DeleteDestinationErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteDestinationErrorKind::ServiceUnavailableError(_) + DeleteDestinationErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDestinationErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteDestinationErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteDestinationErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteDestinationErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteDestinationErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteDestinationErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteDestinationErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteDestinationErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -677,20 +683,20 @@ pub struct DeleteLogGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLogGroupErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLogGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLogGroupErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteLogGroupErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteLogGroupErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteLogGroupErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteLogGroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteLogGroupErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteLogGroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteLogGroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteLogGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -739,38 +745,38 @@ impl DeleteLogGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteLogGroupErrorKind::InvalidParameterError(_) + DeleteLogGroupErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteLogGroupErrorKind::OperationAbortedError(_) + DeleteLogGroupErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteLogGroupErrorKind::ResourceNotFoundError(_) + DeleteLogGroupErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteLogGroupErrorKind::ServiceUnavailableError(_) + DeleteLogGroupErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteLogGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLogGroupErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteLogGroupErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteLogGroupErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteLogGroupErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteLogGroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteLogGroupErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteLogGroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteLogGroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteLogGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -785,20 +791,20 @@ pub struct DeleteLogStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLogStreamErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLogStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLogStreamErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteLogStreamErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteLogStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteLogStreamErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteLogStreamErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteLogStreamErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteLogStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteLogStreamErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteLogStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -847,38 +853,38 @@ impl DeleteLogStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteLogStreamErrorKind::InvalidParameterError(_) + DeleteLogStreamErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteLogStreamErrorKind::OperationAbortedError(_) + DeleteLogStreamErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteLogStreamErrorKind::ResourceNotFoundError(_) + DeleteLogStreamErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteLogStreamErrorKind::ServiceUnavailableError(_) + DeleteLogStreamErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteLogStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLogStreamErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteLogStreamErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteLogStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteLogStreamErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteLogStreamErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteLogStreamErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteLogStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteLogStreamErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteLogStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -893,20 +899,20 @@ pub struct DeleteMetricFilterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteMetricFilterErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteMetricFilterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteMetricFilterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteMetricFilterErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteMetricFilterErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteMetricFilterErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteMetricFilterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteMetricFilterErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteMetricFilterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteMetricFilterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteMetricFilterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -955,38 +961,38 @@ impl DeleteMetricFilterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteMetricFilterErrorKind::InvalidParameterError(_) + DeleteMetricFilterErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteMetricFilterErrorKind::OperationAbortedError(_) + DeleteMetricFilterErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteMetricFilterErrorKind::ResourceNotFoundError(_) + DeleteMetricFilterErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteMetricFilterErrorKind::ServiceUnavailableError(_) + DeleteMetricFilterErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteMetricFilterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteMetricFilterErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteMetricFilterErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteMetricFilterErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteMetricFilterErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteMetricFilterErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteMetricFilterErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteMetricFilterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteMetricFilterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteMetricFilterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1001,18 +1007,18 @@ pub struct DeleteQueryDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteQueryDefinitionErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteQueryDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteQueryDefinitionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteQueryDefinitionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteQueryDefinitionErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteQueryDefinitionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteQueryDefinitionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteQueryDefinitionErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteQueryDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1061,31 +1067,31 @@ impl DeleteQueryDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteQueryDefinitionErrorKind::InvalidParameterError(_) + DeleteQueryDefinitionErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteQueryDefinitionErrorKind::ResourceNotFoundError(_) + DeleteQueryDefinitionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteQueryDefinitionErrorKind::ServiceUnavailableError(_) + DeleteQueryDefinitionErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteQueryDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteQueryDefinitionErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteQueryDefinitionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteQueryDefinitionErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteQueryDefinitionErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteQueryDefinitionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteQueryDefinitionErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteQueryDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1100,18 +1106,18 @@ pub struct DeleteResourcePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteResourcePolicyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteResourcePolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteResourcePolicyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1160,31 +1166,31 @@ impl DeleteResourcePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::InvalidParameterError(_) + DeleteResourcePolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_) + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::ServiceUnavailableError(_) + DeleteResourcePolicyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteResourcePolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteResourcePolicyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1199,20 +1205,20 @@ pub struct DeleteRetentionPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRetentionPolicyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRetentionPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRetentionPolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteRetentionPolicyErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteRetentionPolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteRetentionPolicyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteRetentionPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteRetentionPolicyErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteRetentionPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteRetentionPolicyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteRetentionPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1261,38 +1267,38 @@ impl DeleteRetentionPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteRetentionPolicyErrorKind::InvalidParameterError(_) + DeleteRetentionPolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteRetentionPolicyErrorKind::OperationAbortedError(_) + DeleteRetentionPolicyErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteRetentionPolicyErrorKind::ResourceNotFoundError(_) + DeleteRetentionPolicyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteRetentionPolicyErrorKind::ServiceUnavailableError(_) + DeleteRetentionPolicyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteRetentionPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRetentionPolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteRetentionPolicyErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteRetentionPolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteRetentionPolicyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteRetentionPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteRetentionPolicyErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteRetentionPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteRetentionPolicyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteRetentionPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1307,20 +1313,20 @@ pub struct DeleteSubscriptionFilterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSubscriptionFilterErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSubscriptionFilterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSubscriptionFilterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteSubscriptionFilterErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DeleteSubscriptionFilterErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteSubscriptionFilterErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DeleteSubscriptionFilterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteSubscriptionFilterErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DeleteSubscriptionFilterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteSubscriptionFilterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DeleteSubscriptionFilterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1369,38 +1375,38 @@ impl DeleteSubscriptionFilterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteSubscriptionFilterErrorKind::InvalidParameterError(_) + DeleteSubscriptionFilterErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DeleteSubscriptionFilterErrorKind::OperationAbortedError(_) + DeleteSubscriptionFilterErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteSubscriptionFilterErrorKind::ResourceNotFoundError(_) + DeleteSubscriptionFilterErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteSubscriptionFilterErrorKind::ServiceUnavailableError(_) + DeleteSubscriptionFilterErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DeleteSubscriptionFilterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSubscriptionFilterErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteSubscriptionFilterErrorKind::OperationAbortedError(_inner) => Some(_inner), - DeleteSubscriptionFilterErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteSubscriptionFilterErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DeleteSubscriptionFilterErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteSubscriptionFilterErrorKind::OperationAbortedException(_inner) => Some(_inner), + DeleteSubscriptionFilterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteSubscriptionFilterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DeleteSubscriptionFilterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1415,16 +1421,16 @@ pub struct DescribeDestinationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDestinationsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDestinationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDestinationsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeDestinationsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeDestinationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeDestinationsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeDestinationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1473,24 +1479,24 @@ impl DescribeDestinationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeDestinationsErrorKind::InvalidParameterError(_) + DescribeDestinationsErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeDestinationsErrorKind::ServiceUnavailableError(_) + DescribeDestinationsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeDestinationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDestinationsErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeDestinationsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeDestinationsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeDestinationsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeDestinationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1505,16 +1511,16 @@ pub struct DescribeExportTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeExportTasksErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeExportTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeExportTasksErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeExportTasksErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeExportTasksErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeExportTasksErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeExportTasksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1563,24 +1569,24 @@ impl DescribeExportTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeExportTasksErrorKind::InvalidParameterError(_) + DescribeExportTasksErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeExportTasksErrorKind::ServiceUnavailableError(_) + DescribeExportTasksErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeExportTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeExportTasksErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeExportTasksErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeExportTasksErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeExportTasksErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeExportTasksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1595,16 +1601,16 @@ pub struct DescribeLogGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeLogGroupsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeLogGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeLogGroupsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeLogGroupsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeLogGroupsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeLogGroupsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeLogGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1653,24 +1659,24 @@ impl DescribeLogGroupsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeLogGroupsErrorKind::InvalidParameterError(_) + DescribeLogGroupsErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeLogGroupsErrorKind::ServiceUnavailableError(_) + DescribeLogGroupsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeLogGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeLogGroupsErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeLogGroupsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeLogGroupsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeLogGroupsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeLogGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1685,18 +1691,18 @@ pub struct DescribeLogStreamsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeLogStreamsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeLogStreamsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeLogStreamsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeLogStreamsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeLogStreamsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeLogStreamsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeLogStreamsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeLogStreamsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeLogStreamsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1745,31 +1751,31 @@ impl DescribeLogStreamsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeLogStreamsErrorKind::InvalidParameterError(_) + DescribeLogStreamsErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeLogStreamsErrorKind::ResourceNotFoundError(_) + DescribeLogStreamsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeLogStreamsErrorKind::ServiceUnavailableError(_) + DescribeLogStreamsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeLogStreamsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeLogStreamsErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeLogStreamsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeLogStreamsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeLogStreamsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeLogStreamsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeLogStreamsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeLogStreamsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1784,18 +1790,18 @@ pub struct DescribeMetricFiltersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMetricFiltersErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeMetricFiltersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMetricFiltersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeMetricFiltersErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeMetricFiltersErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeMetricFiltersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeMetricFiltersErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeMetricFiltersErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeMetricFiltersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1844,31 +1850,31 @@ impl DescribeMetricFiltersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeMetricFiltersErrorKind::InvalidParameterError(_) + DescribeMetricFiltersErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeMetricFiltersErrorKind::ResourceNotFoundError(_) + DescribeMetricFiltersErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeMetricFiltersErrorKind::ServiceUnavailableError(_) + DescribeMetricFiltersErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeMetricFiltersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMetricFiltersErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeMetricFiltersErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeMetricFiltersErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeMetricFiltersErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeMetricFiltersErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeMetricFiltersErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeMetricFiltersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1883,18 +1889,18 @@ pub struct DescribeQueriesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeQueriesErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeQueriesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeQueriesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeQueriesErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeQueriesErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeQueriesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeQueriesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeQueriesErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeQueriesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1943,31 +1949,31 @@ impl DescribeQueriesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeQueriesErrorKind::InvalidParameterError(_) + DescribeQueriesErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeQueriesErrorKind::ResourceNotFoundError(_) + DescribeQueriesErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeQueriesErrorKind::ServiceUnavailableError(_) + DescribeQueriesErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeQueriesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeQueriesErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeQueriesErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeQueriesErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeQueriesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeQueriesErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeQueriesErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeQueriesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1982,16 +1988,16 @@ pub struct DescribeQueryDefinitionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeQueryDefinitionsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeQueryDefinitionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeQueryDefinitionsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeQueryDefinitionsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeQueryDefinitionsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeQueryDefinitionsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeQueryDefinitionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2040,24 +2046,24 @@ impl DescribeQueryDefinitionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeQueryDefinitionsErrorKind::InvalidParameterError(_) + DescribeQueryDefinitionsErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeQueryDefinitionsErrorKind::ServiceUnavailableError(_) + DescribeQueryDefinitionsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeQueryDefinitionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeQueryDefinitionsErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeQueryDefinitionsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeQueryDefinitionsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeQueryDefinitionsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeQueryDefinitionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2072,16 +2078,16 @@ pub struct DescribeResourcePoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeResourcePoliciesErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeResourcePoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeResourcePoliciesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeResourcePoliciesErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeResourcePoliciesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeResourcePoliciesErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DescribeResourcePoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2130,24 +2136,24 @@ impl DescribeResourcePoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeResourcePoliciesErrorKind::InvalidParameterError(_) + DescribeResourcePoliciesErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeResourcePoliciesErrorKind::ServiceUnavailableError(_) + DescribeResourcePoliciesErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeResourcePoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeResourcePoliciesErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeResourcePoliciesErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeResourcePoliciesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeResourcePoliciesErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DescribeResourcePoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2162,18 +2168,24 @@ pub struct DescribeSubscriptionFiltersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeSubscriptionFiltersErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeSubscriptionFiltersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeSubscriptionFiltersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeSubscriptionFiltersErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeSubscriptionFiltersErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DescribeSubscriptionFiltersErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DescribeSubscriptionFiltersErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DescribeSubscriptionFiltersErrorKind::ServiceUnavailableException(_inner) => { + _inner.fmt(f) + } DescribeSubscriptionFiltersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2222,31 +2234,33 @@ impl DescribeSubscriptionFiltersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeSubscriptionFiltersErrorKind::InvalidParameterError(_) + DescribeSubscriptionFiltersErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeSubscriptionFiltersErrorKind::ResourceNotFoundError(_) + DescribeSubscriptionFiltersErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeSubscriptionFiltersErrorKind::ServiceUnavailableError(_) + DescribeSubscriptionFiltersErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DescribeSubscriptionFiltersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeSubscriptionFiltersErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeSubscriptionFiltersErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeSubscriptionFiltersErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DescribeSubscriptionFiltersErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeSubscriptionFiltersErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeSubscriptionFiltersErrorKind::ServiceUnavailableException(_inner) => { + Some(_inner) + } DescribeSubscriptionFiltersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2261,20 +2275,20 @@ pub struct DisassociateKmsKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DisassociateKmsKeyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DisassociateKmsKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisassociateKmsKeyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DisassociateKmsKeyErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - DisassociateKmsKeyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DisassociateKmsKeyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + DisassociateKmsKeyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DisassociateKmsKeyErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + DisassociateKmsKeyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DisassociateKmsKeyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), DisassociateKmsKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2323,38 +2337,38 @@ impl DisassociateKmsKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DisassociateKmsKeyErrorKind::InvalidParameterError(_) + DisassociateKmsKeyErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - DisassociateKmsKeyErrorKind::OperationAbortedError(_) + DisassociateKmsKeyErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DisassociateKmsKeyErrorKind::ResourceNotFoundError(_) + DisassociateKmsKeyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DisassociateKmsKeyErrorKind::ServiceUnavailableError(_) + DisassociateKmsKeyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for DisassociateKmsKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisassociateKmsKeyErrorKind::InvalidParameterError(_inner) => Some(_inner), - DisassociateKmsKeyErrorKind::OperationAbortedError(_inner) => Some(_inner), - DisassociateKmsKeyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DisassociateKmsKeyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + DisassociateKmsKeyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DisassociateKmsKeyErrorKind::OperationAbortedException(_inner) => Some(_inner), + DisassociateKmsKeyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DisassociateKmsKeyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), DisassociateKmsKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2369,18 +2383,18 @@ pub struct FilterLogEventsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum FilterLogEventsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for FilterLogEventsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - FilterLogEventsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - FilterLogEventsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - FilterLogEventsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + FilterLogEventsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + FilterLogEventsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + FilterLogEventsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), FilterLogEventsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2429,31 +2443,31 @@ impl FilterLogEventsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - FilterLogEventsErrorKind::InvalidParameterError(_) + FilterLogEventsErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - FilterLogEventsErrorKind::ResourceNotFoundError(_) + FilterLogEventsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - FilterLogEventsErrorKind::ServiceUnavailableError(_) + FilterLogEventsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for FilterLogEventsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - FilterLogEventsErrorKind::InvalidParameterError(_inner) => Some(_inner), - FilterLogEventsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - FilterLogEventsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + FilterLogEventsErrorKind::InvalidParameterException(_inner) => Some(_inner), + FilterLogEventsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + FilterLogEventsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), FilterLogEventsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2468,18 +2482,18 @@ pub struct GetLogEventsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLogEventsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLogEventsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLogEventsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetLogEventsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLogEventsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + GetLogEventsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetLogEventsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLogEventsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), GetLogEventsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2528,25 +2542,31 @@ impl GetLogEventsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, GetLogEventsErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetLogEventsErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetLogEventsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLogEventsErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetLogEventsErrorKind::ServiceUnavailableError(_) + GetLogEventsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for GetLogEventsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLogEventsErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetLogEventsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLogEventsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + GetLogEventsErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetLogEventsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLogEventsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), GetLogEventsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2561,20 +2581,20 @@ pub struct GetLogGroupFieldsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLogGroupFieldsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLogGroupFieldsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLogGroupFieldsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetLogGroupFieldsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GetLogGroupFieldsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLogGroupFieldsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + GetLogGroupFieldsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetLogGroupFieldsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + GetLogGroupFieldsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLogGroupFieldsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), GetLogGroupFieldsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2623,38 +2643,38 @@ impl GetLogGroupFieldsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetLogGroupFieldsErrorKind::InvalidParameterError(_) + GetLogGroupFieldsErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - GetLogGroupFieldsErrorKind::LimitExceededError(_) + GetLogGroupFieldsErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetLogGroupFieldsErrorKind::ResourceNotFoundError(_) + GetLogGroupFieldsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetLogGroupFieldsErrorKind::ServiceUnavailableError(_) + GetLogGroupFieldsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for GetLogGroupFieldsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLogGroupFieldsErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetLogGroupFieldsErrorKind::LimitExceededError(_inner) => Some(_inner), - GetLogGroupFieldsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLogGroupFieldsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + GetLogGroupFieldsErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetLogGroupFieldsErrorKind::LimitExceededException(_inner) => Some(_inner), + GetLogGroupFieldsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLogGroupFieldsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), GetLogGroupFieldsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2669,20 +2689,20 @@ pub struct GetLogRecordError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLogRecordErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLogRecordError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLogRecordErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetLogRecordErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GetLogRecordErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLogRecordErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + GetLogRecordErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetLogRecordErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + GetLogRecordErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLogRecordErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), GetLogRecordErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2731,29 +2751,35 @@ impl GetLogRecordError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, GetLogRecordErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetLogRecordErrorKind::InvalidParameterException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, GetLogRecordErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, GetLogRecordErrorKind::LimitExceededException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetLogRecordErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLogRecordErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetLogRecordErrorKind::ServiceUnavailableError(_) + GetLogRecordErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for GetLogRecordError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLogRecordErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetLogRecordErrorKind::LimitExceededError(_inner) => Some(_inner), - GetLogRecordErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLogRecordErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + GetLogRecordErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetLogRecordErrorKind::LimitExceededException(_inner) => Some(_inner), + GetLogRecordErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLogRecordErrorKind::ServiceUnavailableException(_inner) => Some(_inner), GetLogRecordErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2768,18 +2794,18 @@ pub struct GetQueryResultsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetQueryResultsErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetQueryResultsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetQueryResultsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetQueryResultsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetQueryResultsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + GetQueryResultsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetQueryResultsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetQueryResultsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), GetQueryResultsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2828,31 +2854,31 @@ impl GetQueryResultsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetQueryResultsErrorKind::InvalidParameterError(_) + GetQueryResultsErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetQueryResultsErrorKind::ResourceNotFoundError(_) + GetQueryResultsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - GetQueryResultsErrorKind::ServiceUnavailableError(_) + GetQueryResultsErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for GetQueryResultsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetQueryResultsErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetQueryResultsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetQueryResultsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + GetQueryResultsErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetQueryResultsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetQueryResultsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), GetQueryResultsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2867,16 +2893,16 @@ pub struct ListTagsLogGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsLogGroupErrorKind { - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsLogGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsLogGroupErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListTagsLogGroupErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + ListTagsLogGroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListTagsLogGroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), ListTagsLogGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2925,24 +2951,24 @@ impl ListTagsLogGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsLogGroupErrorKind::ResourceNotFoundError(_) + ListTagsLogGroupErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - ListTagsLogGroupErrorKind::ServiceUnavailableError(_) + ListTagsLogGroupErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for ListTagsLogGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsLogGroupErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListTagsLogGroupErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + ListTagsLogGroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListTagsLogGroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), ListTagsLogGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2957,18 +2983,18 @@ pub struct PutDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutDestinationErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutDestinationErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutDestinationErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - PutDestinationErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutDestinationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutDestinationErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + PutDestinationErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3017,31 +3043,31 @@ impl PutDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutDestinationErrorKind::InvalidParameterError(_) + PutDestinationErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - PutDestinationErrorKind::OperationAbortedError(_) + PutDestinationErrorKind::OperationAbortedException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutDestinationErrorKind::ServiceUnavailableError(_) + PutDestinationErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutDestinationErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutDestinationErrorKind::OperationAbortedError(_inner) => Some(_inner), - PutDestinationErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutDestinationErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutDestinationErrorKind::OperationAbortedException(_inner) => Some(_inner), + PutDestinationErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3056,18 +3082,18 @@ pub struct PutDestinationPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutDestinationPolicyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutDestinationPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutDestinationPolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutDestinationPolicyErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - PutDestinationPolicyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutDestinationPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutDestinationPolicyErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + PutDestinationPolicyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutDestinationPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3116,31 +3142,31 @@ impl PutDestinationPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutDestinationPolicyErrorKind::InvalidParameterError(_) + PutDestinationPolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - PutDestinationPolicyErrorKind::OperationAbortedError(_) + PutDestinationPolicyErrorKind::OperationAbortedException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutDestinationPolicyErrorKind::ServiceUnavailableError(_) + PutDestinationPolicyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutDestinationPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutDestinationPolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutDestinationPolicyErrorKind::OperationAbortedError(_inner) => Some(_inner), - PutDestinationPolicyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutDestinationPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutDestinationPolicyErrorKind::OperationAbortedException(_inner) => Some(_inner), + PutDestinationPolicyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutDestinationPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3155,24 +3181,24 @@ pub struct PutLogEventsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutLogEventsErrorKind { - DataAlreadyAcceptedError(crate::error::DataAlreadyAcceptedError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSequenceTokenError(crate::error::InvalidSequenceTokenError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - UnrecognizedClientError(crate::error::UnrecognizedClientError), + DataAlreadyAcceptedException(crate::error::DataAlreadyAcceptedException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSequenceTokenException(crate::error::InvalidSequenceTokenException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + UnrecognizedClientException(crate::error::UnrecognizedClientException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutLogEventsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutLogEventsErrorKind::DataAlreadyAcceptedError(_inner) => _inner.fmt(f), - PutLogEventsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutLogEventsErrorKind::InvalidSequenceTokenError(_inner) => _inner.fmt(f), - PutLogEventsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutLogEventsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - PutLogEventsErrorKind::UnrecognizedClientError(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::DataAlreadyAcceptedException(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::InvalidSequenceTokenException(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + PutLogEventsErrorKind::UnrecognizedClientException(_inner) => _inner.fmt(f), PutLogEventsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3221,46 +3247,52 @@ impl PutLogEventsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_data_already_accepted_error(&self) -> bool { + pub fn is_data_already_accepted_exception(&self) -> bool { matches!( &self.kind, - PutLogEventsErrorKind::DataAlreadyAcceptedError(_) + PutLogEventsErrorKind::DataAlreadyAcceptedException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, PutLogEventsErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutLogEventsErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_sequence_token_error(&self) -> bool { + pub fn is_invalid_sequence_token_exception(&self) -> bool { matches!( &self.kind, - PutLogEventsErrorKind::InvalidSequenceTokenError(_) + PutLogEventsErrorKind::InvalidSequenceTokenException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, PutLogEventsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutLogEventsErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutLogEventsErrorKind::ServiceUnavailableError(_) + PutLogEventsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_unrecognized_client_error(&self) -> bool { + pub fn is_unrecognized_client_exception(&self) -> bool { matches!( &self.kind, - PutLogEventsErrorKind::UnrecognizedClientError(_) + PutLogEventsErrorKind::UnrecognizedClientException(_) ) } } impl std::error::Error for PutLogEventsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutLogEventsErrorKind::DataAlreadyAcceptedError(_inner) => Some(_inner), - PutLogEventsErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutLogEventsErrorKind::InvalidSequenceTokenError(_inner) => Some(_inner), - PutLogEventsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutLogEventsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - PutLogEventsErrorKind::UnrecognizedClientError(_inner) => Some(_inner), + PutLogEventsErrorKind::DataAlreadyAcceptedException(_inner) => Some(_inner), + PutLogEventsErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutLogEventsErrorKind::InvalidSequenceTokenException(_inner) => Some(_inner), + PutLogEventsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutLogEventsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + PutLogEventsErrorKind::UnrecognizedClientException(_inner) => Some(_inner), PutLogEventsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3275,22 +3307,22 @@ pub struct PutMetricFilterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutMetricFilterErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutMetricFilterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutMetricFilterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutMetricFilterErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutMetricFilterErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - PutMetricFilterErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutMetricFilterErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutMetricFilterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutMetricFilterErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutMetricFilterErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + PutMetricFilterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutMetricFilterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutMetricFilterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3339,42 +3371,45 @@ impl PutMetricFilterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutMetricFilterErrorKind::InvalidParameterError(_) + PutMetricFilterErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutMetricFilterErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutMetricFilterErrorKind::LimitExceededException(_) + ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - PutMetricFilterErrorKind::OperationAbortedError(_) + PutMetricFilterErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutMetricFilterErrorKind::ResourceNotFoundError(_) + PutMetricFilterErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutMetricFilterErrorKind::ServiceUnavailableError(_) + PutMetricFilterErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutMetricFilterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutMetricFilterErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutMetricFilterErrorKind::LimitExceededError(_inner) => Some(_inner), - PutMetricFilterErrorKind::OperationAbortedError(_inner) => Some(_inner), - PutMetricFilterErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutMetricFilterErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutMetricFilterErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutMetricFilterErrorKind::LimitExceededException(_inner) => Some(_inner), + PutMetricFilterErrorKind::OperationAbortedException(_inner) => Some(_inner), + PutMetricFilterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutMetricFilterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutMetricFilterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3389,18 +3424,18 @@ pub struct PutQueryDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutQueryDefinitionErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutQueryDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutQueryDefinitionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutQueryDefinitionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutQueryDefinitionErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutQueryDefinitionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutQueryDefinitionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutQueryDefinitionErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutQueryDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3449,31 +3484,31 @@ impl PutQueryDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutQueryDefinitionErrorKind::InvalidParameterError(_) + PutQueryDefinitionErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutQueryDefinitionErrorKind::ResourceNotFoundError(_) + PutQueryDefinitionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutQueryDefinitionErrorKind::ServiceUnavailableError(_) + PutQueryDefinitionErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutQueryDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutQueryDefinitionErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutQueryDefinitionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutQueryDefinitionErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutQueryDefinitionErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutQueryDefinitionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutQueryDefinitionErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutQueryDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3488,18 +3523,18 @@ pub struct PutResourcePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutResourcePolicyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutResourcePolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3548,31 +3583,31 @@ impl PutResourcePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::InvalidParameterError(_) + PutResourcePolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::LimitExceededError(_) + PutResourcePolicyErrorKind::LimitExceededException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::ServiceUnavailableError(_) + PutResourcePolicyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutResourcePolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutResourcePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3587,20 +3622,20 @@ pub struct PutRetentionPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRetentionPolicyErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRetentionPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRetentionPolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutRetentionPolicyErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - PutRetentionPolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutRetentionPolicyErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutRetentionPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutRetentionPolicyErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + PutRetentionPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutRetentionPolicyErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutRetentionPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3649,38 +3684,38 @@ impl PutRetentionPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutRetentionPolicyErrorKind::InvalidParameterError(_) + PutRetentionPolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - PutRetentionPolicyErrorKind::OperationAbortedError(_) + PutRetentionPolicyErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutRetentionPolicyErrorKind::ResourceNotFoundError(_) + PutRetentionPolicyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutRetentionPolicyErrorKind::ServiceUnavailableError(_) + PutRetentionPolicyErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutRetentionPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRetentionPolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutRetentionPolicyErrorKind::OperationAbortedError(_inner) => Some(_inner), - PutRetentionPolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutRetentionPolicyErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutRetentionPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutRetentionPolicyErrorKind::OperationAbortedException(_inner) => Some(_inner), + PutRetentionPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutRetentionPolicyErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutRetentionPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3695,22 +3730,22 @@ pub struct PutSubscriptionFilterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutSubscriptionFilterErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutSubscriptionFilterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutSubscriptionFilterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutSubscriptionFilterErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutSubscriptionFilterErrorKind::OperationAbortedError(_inner) => _inner.fmt(f), - PutSubscriptionFilterErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutSubscriptionFilterErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + PutSubscriptionFilterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutSubscriptionFilterErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutSubscriptionFilterErrorKind::OperationAbortedException(_inner) => _inner.fmt(f), + PutSubscriptionFilterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutSubscriptionFilterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), PutSubscriptionFilterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3759,45 +3794,45 @@ impl PutSubscriptionFilterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutSubscriptionFilterErrorKind::InvalidParameterError(_) + PutSubscriptionFilterErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutSubscriptionFilterErrorKind::LimitExceededError(_) + PutSubscriptionFilterErrorKind::LimitExceededException(_) ) } - pub fn is_operation_aborted_error(&self) -> bool { + pub fn is_operation_aborted_exception(&self) -> bool { matches!( &self.kind, - PutSubscriptionFilterErrorKind::OperationAbortedError(_) + PutSubscriptionFilterErrorKind::OperationAbortedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutSubscriptionFilterErrorKind::ResourceNotFoundError(_) + PutSubscriptionFilterErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - PutSubscriptionFilterErrorKind::ServiceUnavailableError(_) + PutSubscriptionFilterErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for PutSubscriptionFilterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutSubscriptionFilterErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutSubscriptionFilterErrorKind::LimitExceededError(_inner) => Some(_inner), - PutSubscriptionFilterErrorKind::OperationAbortedError(_inner) => Some(_inner), - PutSubscriptionFilterErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutSubscriptionFilterErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + PutSubscriptionFilterErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutSubscriptionFilterErrorKind::LimitExceededException(_inner) => Some(_inner), + PutSubscriptionFilterErrorKind::OperationAbortedException(_inner) => Some(_inner), + PutSubscriptionFilterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutSubscriptionFilterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), PutSubscriptionFilterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3812,22 +3847,22 @@ pub struct StartQueryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartQueryErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - MalformedQueryError(crate::error::MalformedQueryError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + MalformedQueryException(crate::error::MalformedQueryException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartQueryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartQueryErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StartQueryErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - StartQueryErrorKind::MalformedQueryError(_inner) => _inner.fmt(f), - StartQueryErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - StartQueryErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + StartQueryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StartQueryErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + StartQueryErrorKind::MalformedQueryException(_inner) => _inner.fmt(f), + StartQueryErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + StartQueryErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), StartQueryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3876,30 +3911,39 @@ impl StartQueryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, StartQueryErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + StartQueryErrorKind::InvalidParameterException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, StartQueryErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, StartQueryErrorKind::LimitExceededException(_)) } - pub fn is_malformed_query_error(&self) -> bool { - matches!(&self.kind, StartQueryErrorKind::MalformedQueryError(_)) + pub fn is_malformed_query_exception(&self) -> bool { + matches!(&self.kind, StartQueryErrorKind::MalformedQueryException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, StartQueryErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StartQueryErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { - matches!(&self.kind, StartQueryErrorKind::ServiceUnavailableError(_)) + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + StartQueryErrorKind::ServiceUnavailableException(_) + ) } } impl std::error::Error for StartQueryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartQueryErrorKind::InvalidParameterError(_inner) => Some(_inner), - StartQueryErrorKind::LimitExceededError(_inner) => Some(_inner), - StartQueryErrorKind::MalformedQueryError(_inner) => Some(_inner), - StartQueryErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - StartQueryErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + StartQueryErrorKind::InvalidParameterException(_inner) => Some(_inner), + StartQueryErrorKind::LimitExceededException(_inner) => Some(_inner), + StartQueryErrorKind::MalformedQueryException(_inner) => Some(_inner), + StartQueryErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + StartQueryErrorKind::ServiceUnavailableException(_inner) => Some(_inner), StartQueryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3914,18 +3958,18 @@ pub struct StopQueryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopQueryErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopQueryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopQueryErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StopQueryErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - StopQueryErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + StopQueryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StopQueryErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + StopQueryErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), StopQueryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3974,22 +4018,25 @@ impl StopQueryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, StopQueryErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, StopQueryErrorKind::InvalidParameterException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, StopQueryErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, StopQueryErrorKind::ResourceNotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { - matches!(&self.kind, StopQueryErrorKind::ServiceUnavailableError(_)) + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + StopQueryErrorKind::ServiceUnavailableException(_) + ) } } impl std::error::Error for StopQueryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopQueryErrorKind::InvalidParameterError(_inner) => Some(_inner), - StopQueryErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - StopQueryErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + StopQueryErrorKind::InvalidParameterException(_inner) => Some(_inner), + StopQueryErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + StopQueryErrorKind::ServiceUnavailableException(_inner) => Some(_inner), StopQueryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4004,16 +4051,16 @@ pub struct TagLogGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagLogGroupErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagLogGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagLogGroupErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TagLogGroupErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + TagLogGroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagLogGroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), TagLogGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4062,18 +4109,24 @@ impl TagLogGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, TagLogGroupErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagLogGroupErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagLogGroupErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagLogGroupErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for TagLogGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagLogGroupErrorKind::InvalidParameterError(_inner) => Some(_inner), - TagLogGroupErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + TagLogGroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagLogGroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), TagLogGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4088,16 +4141,16 @@ pub struct TestMetricFilterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TestMetricFilterErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), + InvalidParameterException(crate::error::InvalidParameterException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TestMetricFilterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TestMetricFilterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TestMetricFilterErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), + TestMetricFilterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TestMetricFilterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), TestMetricFilterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4146,24 +4199,24 @@ impl TestMetricFilterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - TestMetricFilterErrorKind::InvalidParameterError(_) + TestMetricFilterErrorKind::InvalidParameterException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - TestMetricFilterErrorKind::ServiceUnavailableError(_) + TestMetricFilterErrorKind::ServiceUnavailableException(_) ) } } impl std::error::Error for TestMetricFilterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TestMetricFilterErrorKind::InvalidParameterError(_inner) => Some(_inner), - TestMetricFilterErrorKind::ServiceUnavailableError(_inner) => Some(_inner), + TestMetricFilterErrorKind::InvalidParameterException(_inner) => Some(_inner), + TestMetricFilterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), TestMetricFilterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4178,14 +4231,14 @@ pub struct UntagLogGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagLogGroupErrorKind { - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagLogGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagLogGroupErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UntagLogGroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UntagLogGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4234,14 +4287,17 @@ impl UntagLogGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagLogGroupErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagLogGroupErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UntagLogGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagLogGroupErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UntagLogGroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UntagLogGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4249,37 +4305,35 @@ impl std::error::Error for UntagLogGroupError { ///

    The specified resource does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4294,54 +4348,52 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

    The service cannot complete the request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceUnavailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceUnavailableException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceUnavailableError { +impl std::fmt::Debug for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceUnavailableError"); + let mut formatter = f.debug_struct("ServiceUnavailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceUnavailableError { +impl ServiceUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceUnavailableError { +impl std::fmt::Display for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceUnavailableError [ServiceUnavailableException]")?; + write!(f, "ServiceUnavailableException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ServiceUnavailableError {} -/// See [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) -pub mod service_unavailable_error { - /// A builder for [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) +impl std::error::Error for ServiceUnavailableException {} +/// See [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) +pub mod service_unavailable_exception { + /// A builder for [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4356,54 +4408,52 @@ pub mod service_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn build(self) -> crate::error::ServiceUnavailableError { - crate::error::ServiceUnavailableError { + /// Consumes the builder and constructs a [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn build(self) -> crate::error::ServiceUnavailableException { + crate::error::ServiceUnavailableException { message: self.message, } } } } -impl ServiceUnavailableError { - /// Creates a new builder-style object to manufacture [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn builder() -> crate::error::service_unavailable_error::Builder { - crate::error::service_unavailable_error::Builder::default() +impl ServiceUnavailableException { + /// Creates a new builder-style object to manufacture [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn builder() -> crate::error::service_unavailable_exception::Builder { + crate::error::service_unavailable_exception::Builder::default() } } ///

    A parameter is specified incorrectly.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterError { +impl std::fmt::Debug for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterError"); + let mut formatter = f.debug_struct("InvalidParameterException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterError { +impl InvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterError { +impl std::fmt::Display for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidParameterError [InvalidParameterException]")?; + write!(f, "InvalidParameterException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for InvalidParameterError {} -/// See [`InvalidParameterError`](crate::error::InvalidParameterError) -pub mod invalid_parameter_error { - /// A builder for [`InvalidParameterError`](crate::error::InvalidParameterError) +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4418,18 +4468,18 @@ pub mod invalid_parameter_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn build(self) -> crate::error::InvalidParameterError { - crate::error::InvalidParameterError { + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { message: self.message, } } } } -impl InvalidParameterError { - /// Creates a new builder-style object to manufacture [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn builder() -> crate::error::invalid_parameter_error::Builder { - crate::error::invalid_parameter_error::Builder::default() +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() } } @@ -4439,42 +4489,38 @@ impl InvalidParameterError { ///

    For more information about valid query syntax, see /// CloudWatch Logs Insights Query Syntax.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedQueryError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MalformedQueryException { ///

    Reserved.

    - #[serde(rename = "queryCompileError")] - #[serde(default)] pub query_compile_error: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for MalformedQueryError { +impl std::fmt::Debug for MalformedQueryException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedQueryError"); + let mut formatter = f.debug_struct("MalformedQueryException"); formatter.field("query_compile_error", &self.query_compile_error); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedQueryError { +impl MalformedQueryException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedQueryError { +impl std::fmt::Display for MalformedQueryException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "MalformedQueryError [MalformedQueryException]")?; + write!(f, "MalformedQueryException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for MalformedQueryError {} -/// See [`MalformedQueryError`](crate::error::MalformedQueryError) -pub mod malformed_query_error { - /// A builder for [`MalformedQueryError`](crate::error::MalformedQueryError) +impl std::error::Error for MalformedQueryException {} +/// See [`MalformedQueryException`](crate::error::MalformedQueryException) +pub mod malformed_query_exception { + /// A builder for [`MalformedQueryException`](crate::error::MalformedQueryException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4502,55 +4548,53 @@ pub mod malformed_query_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedQueryError`](crate::error::MalformedQueryError) - pub fn build(self) -> crate::error::MalformedQueryError { - crate::error::MalformedQueryError { + /// Consumes the builder and constructs a [`MalformedQueryException`](crate::error::MalformedQueryException) + pub fn build(self) -> crate::error::MalformedQueryException { + crate::error::MalformedQueryException { query_compile_error: self.query_compile_error, message: self.message, } } } } -impl MalformedQueryError { - /// Creates a new builder-style object to manufacture [`MalformedQueryError`](crate::error::MalformedQueryError) - pub fn builder() -> crate::error::malformed_query_error::Builder { - crate::error::malformed_query_error::Builder::default() +impl MalformedQueryException { + /// Creates a new builder-style object to manufacture [`MalformedQueryException`](crate::error::MalformedQueryException) + pub fn builder() -> crate::error::malformed_query_exception::Builder { + crate::error::malformed_query_exception::Builder::default() } } ///

    You have reached the maximum number of resources that can be created.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4565,54 +4609,52 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    Multiple requests to update the same resource were in conflict.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OperationAbortedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OperationAbortedException { pub message: std::option::Option, } -impl std::fmt::Debug for OperationAbortedError { +impl std::fmt::Debug for OperationAbortedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OperationAbortedError"); + let mut formatter = f.debug_struct("OperationAbortedException"); formatter.field("message", &self.message); formatter.finish() } } -impl OperationAbortedError { +impl OperationAbortedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OperationAbortedError { +impl std::fmt::Display for OperationAbortedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OperationAbortedError [OperationAbortedException]")?; + write!(f, "OperationAbortedException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for OperationAbortedError {} -/// See [`OperationAbortedError`](crate::error::OperationAbortedError) -pub mod operation_aborted_error { - /// A builder for [`OperationAbortedError`](crate::error::OperationAbortedError) +impl std::error::Error for OperationAbortedException {} +/// See [`OperationAbortedException`](crate::error::OperationAbortedException) +pub mod operation_aborted_exception { + /// A builder for [`OperationAbortedException`](crate::error::OperationAbortedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4627,54 +4669,52 @@ pub mod operation_aborted_error { self.message = input; self } - /// Consumes the builder and constructs a [`OperationAbortedError`](crate::error::OperationAbortedError) - pub fn build(self) -> crate::error::OperationAbortedError { - crate::error::OperationAbortedError { + /// Consumes the builder and constructs a [`OperationAbortedException`](crate::error::OperationAbortedException) + pub fn build(self) -> crate::error::OperationAbortedException { + crate::error::OperationAbortedException { message: self.message, } } } } -impl OperationAbortedError { - /// Creates a new builder-style object to manufacture [`OperationAbortedError`](crate::error::OperationAbortedError) - pub fn builder() -> crate::error::operation_aborted_error::Builder { - crate::error::operation_aborted_error::Builder::default() +impl OperationAbortedException { + /// Creates a new builder-style object to manufacture [`OperationAbortedException`](crate::error::OperationAbortedException) + pub fn builder() -> crate::error::operation_aborted_exception::Builder { + crate::error::operation_aborted_exception::Builder::default() } } ///

    The most likely cause is an invalid AWS access key ID or secret key.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnrecognizedClientError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnrecognizedClientException { pub message: std::option::Option, } -impl std::fmt::Debug for UnrecognizedClientError { +impl std::fmt::Debug for UnrecognizedClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnrecognizedClientError"); + let mut formatter = f.debug_struct("UnrecognizedClientException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnrecognizedClientError { +impl UnrecognizedClientException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnrecognizedClientError { +impl std::fmt::Display for UnrecognizedClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnrecognizedClientError [UnrecognizedClientException]")?; + write!(f, "UnrecognizedClientException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for UnrecognizedClientError {} -/// See [`UnrecognizedClientError`](crate::error::UnrecognizedClientError) -pub mod unrecognized_client_error { - /// A builder for [`UnrecognizedClientError`](crate::error::UnrecognizedClientError) +impl std::error::Error for UnrecognizedClientException {} +/// See [`UnrecognizedClientException`](crate::error::UnrecognizedClientException) +pub mod unrecognized_client_exception { + /// A builder for [`UnrecognizedClientException`](crate::error::UnrecognizedClientException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4689,18 +4729,18 @@ pub mod unrecognized_client_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnrecognizedClientError`](crate::error::UnrecognizedClientError) - pub fn build(self) -> crate::error::UnrecognizedClientError { - crate::error::UnrecognizedClientError { + /// Consumes the builder and constructs a [`UnrecognizedClientException`](crate::error::UnrecognizedClientException) + pub fn build(self) -> crate::error::UnrecognizedClientException { + crate::error::UnrecognizedClientException { message: self.message, } } } } -impl UnrecognizedClientError { - /// Creates a new builder-style object to manufacture [`UnrecognizedClientError`](crate::error::UnrecognizedClientError) - pub fn builder() -> crate::error::unrecognized_client_error::Builder { - crate::error::unrecognized_client_error::Builder::default() +impl UnrecognizedClientException { + /// Creates a new builder-style object to manufacture [`UnrecognizedClientException`](crate::error::UnrecognizedClientException) + pub fn builder() -> crate::error::unrecognized_client_exception::Builder { + crate::error::unrecognized_client_exception::Builder::default() } } @@ -4708,44 +4748,37 @@ impl UnrecognizedClientError { /// the expectedSequenceToken field in the InvalidSequenceTokenException /// message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSequenceTokenError { - #[serde(rename = "expectedSequenceToken")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSequenceTokenException { pub expected_sequence_token: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSequenceTokenError { +impl std::fmt::Debug for InvalidSequenceTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSequenceTokenError"); + let mut formatter = f.debug_struct("InvalidSequenceTokenException"); formatter.field("expected_sequence_token", &self.expected_sequence_token); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSequenceTokenError { +impl InvalidSequenceTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSequenceTokenError { +impl std::fmt::Display for InvalidSequenceTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidSequenceTokenError [InvalidSequenceTokenException]" - )?; + write!(f, "InvalidSequenceTokenException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for InvalidSequenceTokenError {} -/// See [`InvalidSequenceTokenError`](crate::error::InvalidSequenceTokenError) -pub mod invalid_sequence_token_error { - /// A builder for [`InvalidSequenceTokenError`](crate::error::InvalidSequenceTokenError) +impl std::error::Error for InvalidSequenceTokenException {} +/// See [`InvalidSequenceTokenException`](crate::error::InvalidSequenceTokenException) +pub mod invalid_sequence_token_exception { + /// A builder for [`InvalidSequenceTokenException`](crate::error::InvalidSequenceTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4772,59 +4805,55 @@ pub mod invalid_sequence_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSequenceTokenError`](crate::error::InvalidSequenceTokenError) - pub fn build(self) -> crate::error::InvalidSequenceTokenError { - crate::error::InvalidSequenceTokenError { + /// Consumes the builder and constructs a [`InvalidSequenceTokenException`](crate::error::InvalidSequenceTokenException) + pub fn build(self) -> crate::error::InvalidSequenceTokenException { + crate::error::InvalidSequenceTokenException { expected_sequence_token: self.expected_sequence_token, message: self.message, } } } } -impl InvalidSequenceTokenError { - /// Creates a new builder-style object to manufacture [`InvalidSequenceTokenError`](crate::error::InvalidSequenceTokenError) - pub fn builder() -> crate::error::invalid_sequence_token_error::Builder { - crate::error::invalid_sequence_token_error::Builder::default() +impl InvalidSequenceTokenException { + /// Creates a new builder-style object to manufacture [`InvalidSequenceTokenException`](crate::error::InvalidSequenceTokenException) + pub fn builder() -> crate::error::invalid_sequence_token_exception::Builder { + crate::error::invalid_sequence_token_exception::Builder::default() } } ///

    The event was already logged.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DataAlreadyAcceptedError { - #[serde(rename = "expectedSequenceToken")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DataAlreadyAcceptedException { pub expected_sequence_token: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for DataAlreadyAcceptedError { +impl std::fmt::Debug for DataAlreadyAcceptedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DataAlreadyAcceptedError"); + let mut formatter = f.debug_struct("DataAlreadyAcceptedException"); formatter.field("expected_sequence_token", &self.expected_sequence_token); formatter.field("message", &self.message); formatter.finish() } } -impl DataAlreadyAcceptedError { +impl DataAlreadyAcceptedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DataAlreadyAcceptedError { +impl std::fmt::Display for DataAlreadyAcceptedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DataAlreadyAcceptedError [DataAlreadyAcceptedException]")?; + write!(f, "DataAlreadyAcceptedException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for DataAlreadyAcceptedError {} -/// See [`DataAlreadyAcceptedError`](crate::error::DataAlreadyAcceptedError) -pub mod data_already_accepted_error { - /// A builder for [`DataAlreadyAcceptedError`](crate::error::DataAlreadyAcceptedError) +impl std::error::Error for DataAlreadyAcceptedException {} +/// See [`DataAlreadyAcceptedException`](crate::error::DataAlreadyAcceptedException) +pub mod data_already_accepted_exception { + /// A builder for [`DataAlreadyAcceptedException`](crate::error::DataAlreadyAcceptedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4851,58 +4880,53 @@ pub mod data_already_accepted_error { self.message = input; self } - /// Consumes the builder and constructs a [`DataAlreadyAcceptedError`](crate::error::DataAlreadyAcceptedError) - pub fn build(self) -> crate::error::DataAlreadyAcceptedError { - crate::error::DataAlreadyAcceptedError { + /// Consumes the builder and constructs a [`DataAlreadyAcceptedException`](crate::error::DataAlreadyAcceptedException) + pub fn build(self) -> crate::error::DataAlreadyAcceptedException { + crate::error::DataAlreadyAcceptedException { expected_sequence_token: self.expected_sequence_token, message: self.message, } } } } -impl DataAlreadyAcceptedError { - /// Creates a new builder-style object to manufacture [`DataAlreadyAcceptedError`](crate::error::DataAlreadyAcceptedError) - pub fn builder() -> crate::error::data_already_accepted_error::Builder { - crate::error::data_already_accepted_error::Builder::default() +impl DataAlreadyAcceptedException { + /// Creates a new builder-style object to manufacture [`DataAlreadyAcceptedException`](crate::error::DataAlreadyAcceptedException) + pub fn builder() -> crate::error::data_already_accepted_exception::Builder { + crate::error::data_already_accepted_exception::Builder::default() } } ///

    The specified resource already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceAlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceAlreadyExistsError { +impl std::fmt::Debug for ResourceAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceAlreadyExistsError"); + let mut formatter = f.debug_struct("ResourceAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceAlreadyExistsError { +impl ResourceAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceAlreadyExistsError { +impl std::fmt::Display for ResourceAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceAlreadyExistsError [ResourceAlreadyExistsException]" - )?; + write!(f, "ResourceAlreadyExistsException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for ResourceAlreadyExistsError {} -/// See [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) -pub mod resource_already_exists_error { - /// A builder for [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) +impl std::error::Error for ResourceAlreadyExistsException {} +/// See [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) +pub mod resource_already_exists_exception { + /// A builder for [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4917,54 +4941,52 @@ pub mod resource_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) - pub fn build(self) -> crate::error::ResourceAlreadyExistsError { - crate::error::ResourceAlreadyExistsError { + /// Consumes the builder and constructs a [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) + pub fn build(self) -> crate::error::ResourceAlreadyExistsException { + crate::error::ResourceAlreadyExistsException { message: self.message, } } } } -impl ResourceAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) - pub fn builder() -> crate::error::resource_already_exists_error::Builder { - crate::error::resource_already_exists_error::Builder::default() +impl ResourceAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) + pub fn builder() -> crate::error::resource_already_exists_exception::Builder { + crate::error::resource_already_exists_exception::Builder::default() } } ///

    The operation is not valid on the specified resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidOperationError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidOperationException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidOperationError { +impl std::fmt::Debug for InvalidOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidOperationError"); + let mut formatter = f.debug_struct("InvalidOperationException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidOperationError { +impl InvalidOperationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidOperationError { +impl std::fmt::Display for InvalidOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidOperationError [InvalidOperationException]")?; + write!(f, "InvalidOperationException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for InvalidOperationError {} -/// See [`InvalidOperationError`](crate::error::InvalidOperationError) -pub mod invalid_operation_error { - /// A builder for [`InvalidOperationError`](crate::error::InvalidOperationError) +impl std::error::Error for InvalidOperationException {} +/// See [`InvalidOperationException`](crate::error::InvalidOperationException) +pub mod invalid_operation_exception { + /// A builder for [`InvalidOperationException`](crate::error::InvalidOperationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4979,17 +5001,17 @@ pub mod invalid_operation_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidOperationError`](crate::error::InvalidOperationError) - pub fn build(self) -> crate::error::InvalidOperationError { - crate::error::InvalidOperationError { + /// Consumes the builder and constructs a [`InvalidOperationException`](crate::error::InvalidOperationException) + pub fn build(self) -> crate::error::InvalidOperationException { + crate::error::InvalidOperationException { message: self.message, } } } } -impl InvalidOperationError { - /// Creates a new builder-style object to manufacture [`InvalidOperationError`](crate::error::InvalidOperationError) - pub fn builder() -> crate::error::invalid_operation_error::Builder { - crate::error::invalid_operation_error::Builder::default() +impl InvalidOperationException { + /// Creates a new builder-style object to manufacture [`InvalidOperationException`](crate::error::InvalidOperationException) + pub fn builder() -> crate::error::invalid_operation_exception::Builder { + crate::error::invalid_operation_exception::Builder::default() } } diff --git a/sdk/cloudwatchlogs/src/error_meta.rs b/sdk/cloudwatchlogs/src/error_meta.rs index d4eba35d1190..7cf227760d46 100644 --- a/sdk/cloudwatchlogs/src/error_meta.rs +++ b/sdk/cloudwatchlogs/src/error_meta.rs @@ -2,33 +2,33 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - DataAlreadyAcceptedError(crate::error::DataAlreadyAcceptedError), - InvalidOperationError(crate::error::InvalidOperationError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSequenceTokenError(crate::error::InvalidSequenceTokenError), - LimitExceededError(crate::error::LimitExceededError), - MalformedQueryError(crate::error::MalformedQueryError), - OperationAbortedError(crate::error::OperationAbortedError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - UnrecognizedClientError(crate::error::UnrecognizedClientError), + DataAlreadyAcceptedException(crate::error::DataAlreadyAcceptedException), + InvalidOperationException(crate::error::InvalidOperationException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSequenceTokenException(crate::error::InvalidSequenceTokenException), + LimitExceededException(crate::error::LimitExceededException), + MalformedQueryException(crate::error::MalformedQueryException), + OperationAbortedException(crate::error::OperationAbortedException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + UnrecognizedClientException(crate::error::UnrecognizedClientException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::DataAlreadyAcceptedError(inner) => inner.fmt(f), - Error::InvalidOperationError(inner) => inner.fmt(f), - Error::InvalidParameterError(inner) => inner.fmt(f), - Error::InvalidSequenceTokenError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MalformedQueryError(inner) => inner.fmt(f), - Error::OperationAbortedError(inner) => inner.fmt(f), - Error::ResourceAlreadyExistsError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::ServiceUnavailableError(inner) => inner.fmt(f), - Error::UnrecognizedClientError(inner) => inner.fmt(f), + Error::DataAlreadyAcceptedException(inner) => inner.fmt(f), + Error::InvalidOperationException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::InvalidSequenceTokenException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MalformedQueryException(inner) => inner.fmt(f), + Error::OperationAbortedException(inner) => inner.fmt(f), + Error::ResourceAlreadyExistsException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ServiceUnavailableException(inner) => inner.fmt(f), + Error::UnrecognizedClientException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -37,17 +37,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AssociateKmsKeyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::AssociateKmsKeyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::AssociateKmsKeyErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::AssociateKmsKeyErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::AssociateKmsKeyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::AssociateKmsKeyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::AssociateKmsKeyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::AssociateKmsKeyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::AssociateKmsKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -59,17 +59,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelExportTaskErrorKind::InvalidOperationError(inner) => { - Error::InvalidOperationError(inner) + crate::error::CancelExportTaskErrorKind::InvalidOperationException(inner) => { + Error::InvalidOperationException(inner) } - crate::error::CancelExportTaskErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CancelExportTaskErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CancelExportTaskErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CancelExportTaskErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::CancelExportTaskErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CancelExportTaskErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::CancelExportTaskErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -83,23 +83,23 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateExportTaskErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateExportTaskErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateExportTaskErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateExportTaskErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateExportTaskErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::CreateExportTaskErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::CreateExportTaskErrorKind::ResourceAlreadyExistsError(inner) => { - Error::ResourceAlreadyExistsError(inner) + crate::error::CreateExportTaskErrorKind::ResourceAlreadyExistsException(inner) => { + Error::ResourceAlreadyExistsException(inner) } - crate::error::CreateExportTaskErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CreateExportTaskErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::CreateExportTaskErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateExportTaskErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::CreateExportTaskErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -113,20 +113,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateLogGroupErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateLogGroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateLogGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateLogGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateLogGroupErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::CreateLogGroupErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::CreateLogGroupErrorKind::ResourceAlreadyExistsError(inner) => { - Error::ResourceAlreadyExistsError(inner) + crate::error::CreateLogGroupErrorKind::ResourceAlreadyExistsException(inner) => { + Error::ResourceAlreadyExistsException(inner) } - crate::error::CreateLogGroupErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateLogGroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::CreateLogGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -138,17 +138,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateLogStreamErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateLogStreamErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateLogStreamErrorKind::ResourceAlreadyExistsError(inner) => { - Error::ResourceAlreadyExistsError(inner) + crate::error::CreateLogStreamErrorKind::ResourceAlreadyExistsException(inner) => { + Error::ResourceAlreadyExistsException(inner) } - crate::error::CreateLogStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CreateLogStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::CreateLogStreamErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateLogStreamErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::CreateLogStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -160,17 +160,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDestinationErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteDestinationErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteDestinationErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DeleteDestinationErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DeleteDestinationErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteDestinationErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteDestinationErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteDestinationErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DeleteDestinationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -184,17 +184,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLogGroupErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteLogGroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteLogGroupErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DeleteLogGroupErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DeleteLogGroupErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteLogGroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteLogGroupErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteLogGroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DeleteLogGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -206,17 +206,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLogStreamErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteLogStreamErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteLogStreamErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DeleteLogStreamErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DeleteLogStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteLogStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteLogStreamErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteLogStreamErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DeleteLogStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -228,17 +228,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteMetricFilterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteMetricFilterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteMetricFilterErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DeleteMetricFilterErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DeleteMetricFilterErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteMetricFilterErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteMetricFilterErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteMetricFilterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DeleteMetricFilterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -252,15 +252,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteQueryDefinitionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteQueryDefinitionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteQueryDefinitionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::DeleteQueryDefinitionErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteQueryDefinitionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } + crate::error::DeleteQueryDefinitionErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DeleteQueryDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -273,14 +273,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteResourcePolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteResourcePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteResourcePolicyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteResourcePolicyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DeleteResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -294,18 +294,18 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRetentionPolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::DeleteRetentionPolicyErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DeleteRetentionPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteRetentionPolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteRetentionPolicyErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DeleteRetentionPolicyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteRetentionPolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } + crate::error::DeleteRetentionPolicyErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DeleteRetentionPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -320,18 +320,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSubscriptionFilterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::DeleteSubscriptionFilterErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) - } - crate::error::DeleteSubscriptionFilterErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::DeleteSubscriptionFilterErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) - } + crate::error::DeleteSubscriptionFilterErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DeleteSubscriptionFilterErrorKind::OperationAbortedException( + inner, + ) => Error::OperationAbortedException(inner), + crate::error::DeleteSubscriptionFilterErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::DeleteSubscriptionFilterErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DeleteSubscriptionFilterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -344,11 +344,11 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDestinationsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeDestinationsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeDestinationsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeDestinationsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DescribeDestinationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -362,11 +362,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeExportTasksErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeExportTasksErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeExportTasksErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeExportTasksErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DescribeExportTasksErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -380,11 +380,11 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeLogGroupsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeLogGroupsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeLogGroupsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeLogGroupsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DescribeLogGroupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -398,14 +398,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeLogStreamsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeLogStreamsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeLogStreamsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeLogStreamsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DescribeLogStreamsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeLogStreamsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DescribeLogStreamsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -419,15 +419,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMetricFiltersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeMetricFiltersErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeMetricFiltersErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::DescribeMetricFiltersErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeMetricFiltersErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } + crate::error::DescribeMetricFiltersErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DescribeMetricFiltersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -440,14 +440,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeQueriesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeQueriesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeQueriesErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeQueriesErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DescribeQueriesErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeQueriesErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DescribeQueriesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -461,12 +461,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeQueryDefinitionsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::DescribeQueryDefinitionsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) - } + crate::error::DescribeQueryDefinitionsErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DescribeQueryDefinitionsErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DescribeQueryDefinitionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -481,12 +481,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeResourcePoliciesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::DescribeResourcePoliciesErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) - } + crate::error::DescribeResourcePoliciesErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DescribeResourcePoliciesErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::DescribeResourcePoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -501,15 +501,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeSubscriptionFiltersErrorKind::InvalidParameterError( + crate::error::DescribeSubscriptionFiltersErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::DescribeSubscriptionFiltersErrorKind::ResourceNotFoundError( + ) => Error::InvalidParameterException(inner), + crate::error::DescribeSubscriptionFiltersErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::DescribeSubscriptionFiltersErrorKind::ServiceUnavailableError( + ) => Error::ResourceNotFoundException(inner), + crate::error::DescribeSubscriptionFiltersErrorKind::ServiceUnavailableException( inner, - ) => Error::ServiceUnavailableError(inner), + ) => Error::ServiceUnavailableException(inner), crate::error::DescribeSubscriptionFiltersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -522,17 +522,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DisassociateKmsKeyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DisassociateKmsKeyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DisassociateKmsKeyErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::DisassociateKmsKeyErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::DisassociateKmsKeyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DisassociateKmsKeyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DisassociateKmsKeyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DisassociateKmsKeyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::DisassociateKmsKeyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -546,14 +546,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::FilterLogEventsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::FilterLogEventsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::FilterLogEventsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::FilterLogEventsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::FilterLogEventsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::FilterLogEventsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::FilterLogEventsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -565,14 +565,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLogEventsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetLogEventsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetLogEventsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLogEventsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLogEventsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetLogEventsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::GetLogEventsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -584,17 +584,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLogGroupFieldsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetLogGroupFieldsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetLogGroupFieldsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::GetLogGroupFieldsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::GetLogGroupFieldsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLogGroupFieldsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLogGroupFieldsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetLogGroupFieldsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::GetLogGroupFieldsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -608,17 +608,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLogRecordErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetLogRecordErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetLogRecordErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::GetLogRecordErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::GetLogRecordErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLogRecordErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLogRecordErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetLogRecordErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::GetLogRecordErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -630,14 +630,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetQueryResultsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetQueryResultsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetQueryResultsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetQueryResultsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetQueryResultsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::GetQueryResultsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::GetQueryResultsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -649,11 +649,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsLogGroupErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsLogGroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListTagsLogGroupErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::ListTagsLogGroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::ListTagsLogGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -667,14 +667,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutDestinationErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutDestinationErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutDestinationErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::PutDestinationErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::PutDestinationErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutDestinationErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -686,14 +686,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutDestinationPolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutDestinationPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutDestinationPolicyErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::PutDestinationPolicyErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::PutDestinationPolicyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutDestinationPolicyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutDestinationPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -707,23 +707,23 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutLogEventsErrorKind::DataAlreadyAcceptedError(inner) => { - Error::DataAlreadyAcceptedError(inner) + crate::error::PutLogEventsErrorKind::DataAlreadyAcceptedException(inner) => { + Error::DataAlreadyAcceptedException(inner) } - crate::error::PutLogEventsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutLogEventsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutLogEventsErrorKind::InvalidSequenceTokenError(inner) => { - Error::InvalidSequenceTokenError(inner) + crate::error::PutLogEventsErrorKind::InvalidSequenceTokenException(inner) => { + Error::InvalidSequenceTokenException(inner) } - crate::error::PutLogEventsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutLogEventsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutLogEventsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutLogEventsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::PutLogEventsErrorKind::UnrecognizedClientError(inner) => { - Error::UnrecognizedClientError(inner) + crate::error::PutLogEventsErrorKind::UnrecognizedClientException(inner) => { + Error::UnrecognizedClientException(inner) } crate::error::PutLogEventsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -735,20 +735,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutMetricFilterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutMetricFilterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutMetricFilterErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutMetricFilterErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutMetricFilterErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::PutMetricFilterErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::PutMetricFilterErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutMetricFilterErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutMetricFilterErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutMetricFilterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutMetricFilterErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -760,14 +760,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutQueryDefinitionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutQueryDefinitionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutQueryDefinitionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutQueryDefinitionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutQueryDefinitionErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutQueryDefinitionErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutQueryDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -781,14 +781,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutResourcePolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutResourcePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutResourcePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutResourcePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutResourcePolicyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutResourcePolicyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -802,17 +802,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRetentionPolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutRetentionPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutRetentionPolicyErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::PutRetentionPolicyErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::PutRetentionPolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutRetentionPolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutRetentionPolicyErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutRetentionPolicyErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::PutRetentionPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -826,21 +826,21 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutSubscriptionFilterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::PutSubscriptionFilterErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutSubscriptionFilterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutSubscriptionFilterErrorKind::OperationAbortedError(inner) => { - Error::OperationAbortedError(inner) + crate::error::PutSubscriptionFilterErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutSubscriptionFilterErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutSubscriptionFilterErrorKind::OperationAbortedException(inner) => { + Error::OperationAbortedException(inner) } - crate::error::PutSubscriptionFilterErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::PutSubscriptionFilterErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } + crate::error::PutSubscriptionFilterErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), crate::error::PutSubscriptionFilterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -853,20 +853,20 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartQueryErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::StartQueryErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::StartQueryErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::StartQueryErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::StartQueryErrorKind::MalformedQueryError(inner) => { - Error::MalformedQueryError(inner) + crate::error::StartQueryErrorKind::MalformedQueryException(inner) => { + Error::MalformedQueryException(inner) } - crate::error::StartQueryErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StartQueryErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::StartQueryErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::StartQueryErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::StartQueryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -878,14 +878,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopQueryErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::StopQueryErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::StopQueryErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StopQueryErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::StopQueryErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::StopQueryErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::StopQueryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -897,11 +897,11 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagLogGroupErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TagLogGroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TagLogGroupErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagLogGroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::TagLogGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -913,11 +913,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TestMetricFilterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TestMetricFilterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TestMetricFilterErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::TestMetricFilterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } crate::error::TestMetricFilterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -931,8 +931,8 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagLogGroupErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagLogGroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UntagLogGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/cloudwatchlogs/src/input.rs b/sdk/cloudwatchlogs/src/input.rs index bb492d8c69ff..5b33a9a108bf 100644 --- a/sdk/cloudwatchlogs/src/input.rs +++ b/sdk/cloudwatchlogs/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`AssociateKmsKeyInput`](crate::input::AssociateKmsKeyInput) pub mod associate_kms_key_input { /// A builder for [`AssociateKmsKeyInput`](crate::input::AssociateKmsKeyInput) @@ -107,15 +108,27 @@ impl AssociateKmsKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.AssociateKmsKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.AssociateKmsKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -226,15 +239,27 @@ impl CancelExportTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.CancelExportTask")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.CancelExportTask"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -426,15 +451,27 @@ impl CreateExportTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.CreateExportTask")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.CreateExportTask"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -582,15 +619,27 @@ impl CreateLogGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.CreateLogGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.CreateLogGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -717,15 +766,27 @@ impl CreateLogStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.CreateLogStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.CreateLogStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -839,15 +900,27 @@ impl DeleteDestinationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteDestination")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteDestination"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -960,15 +1033,27 @@ impl DeleteLogGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteLogGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteLogGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1095,15 +1180,27 @@ impl DeleteLogStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteLogStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteLogStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1228,15 +1325,27 @@ impl DeleteMetricFilterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteMetricFilter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteMetricFilter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1351,15 +1460,27 @@ impl DeleteQueryDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteQueryDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteQueryDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1470,15 +1591,27 @@ impl DeleteResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1592,15 +1725,27 @@ impl DeleteRetentionPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteRetentionPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteRetentionPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1726,15 +1871,27 @@ impl DeleteSubscriptionFilterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DeleteSubscriptionFilter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DeleteSubscriptionFilter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1870,15 +2027,27 @@ impl DescribeDestinationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeDestinations")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeDestinations"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2025,15 +2194,27 @@ impl DescribeExportTasksInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeExportTasks")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeExportTasks"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2169,15 +2350,27 @@ impl DescribeLogGroupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeLogGroups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeLogGroups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2362,15 +2555,27 @@ impl DescribeLogStreamsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeLogStreams")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeLogStreams"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2548,15 +2753,27 @@ impl DescribeMetricFiltersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeMetricFilters")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeMetricFilters"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2703,15 +2920,27 @@ impl DescribeQueriesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeQueries")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeQueries"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2851,15 +3080,27 @@ impl DescribeQueryDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeQueryDefinitions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeQueryDefinitions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2982,15 +3223,27 @@ impl DescribeResourcePoliciesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeResourcePolicies")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeResourcePolicies"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3142,15 +3395,27 @@ impl DescribeSubscriptionFiltersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DescribeSubscriptionFilters")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DescribeSubscriptionFilters"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3264,15 +3529,27 @@ impl DisassociateKmsKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.DisassociateKmsKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.DisassociateKmsKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3496,15 +3773,27 @@ impl FilterLogEventsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.FilterLogEvents")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.FilterLogEvents"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3694,15 +3983,27 @@ impl GetLogEventsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.GetLogEvents")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.GetLogEvents"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3831,15 +4132,27 @@ impl GetLogGroupFieldsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.GetLogGroupFields")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.GetLogGroupFields"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3954,15 +4267,27 @@ impl GetLogRecordInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.GetLogRecord")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.GetLogRecord"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4072,15 +4397,27 @@ impl GetQueryResultsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.GetQueryResults")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.GetQueryResults"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4194,15 +4531,27 @@ impl ListTagsLogGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.ListTagsLogGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.ListTagsLogGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4338,15 +4687,27 @@ impl PutDestinationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutDestination")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutDestination"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4475,15 +4836,27 @@ impl PutDestinationPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutDestinationPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutDestinationPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4642,15 +5015,27 @@ impl PutLogEventsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutLogEvents")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutLogEvents"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4807,15 +5192,27 @@ impl PutMetricFilterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutMetricFilter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutMetricFilter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4974,15 +5371,27 @@ impl PutQueryDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutQueryDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutQueryDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5128,15 +5537,27 @@ impl PutResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5264,15 +5685,27 @@ impl PutRetentionPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutRetentionPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutRetentionPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5478,15 +5911,27 @@ impl PutSubscriptionFilterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.PutSubscriptionFilter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.PutSubscriptionFilter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5665,15 +6110,27 @@ impl StartQueryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.StartQuery")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.StartQuery"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5781,15 +6238,27 @@ impl StopQueryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.StopQuery")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.StopQuery"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5924,15 +6393,27 @@ impl TagLogGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.TagLogGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.TagLogGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6063,15 +6544,27 @@ impl TestMetricFilterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.TestMetricFilter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.TestMetricFilter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6197,15 +6690,27 @@ impl UntagLogGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Logs_20140328.UntagLogGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Logs_20140328.UntagLogGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/cloudwatchlogs/src/json_deser.rs b/sdk/cloudwatchlogs/src/json_deser.rs index 7492de4d2d4e..8519fe3c347d 100644 --- a/sdk/cloudwatchlogs/src/json_deser.rs +++ b/sdk/cloudwatchlogs/src/json_deser.rs @@ -1,408 +1,3861 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn create_export_task_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_invalid_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_operation_aborted_exceptionjson_err( + input: &[u8], + mut builder: crate::error::operation_aborted_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_service_unavailable_exceptionjson_err( + input: &[u8], + mut builder: crate::error::service_unavailable_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_operation_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_operation_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_export_task( input: &[u8], mut builder: crate::output::create_export_task_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateExportTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_id(parsed_body.task_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskId" => { + builder = builder.set_task_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_query_definition_deser_operation( +pub fn deser_operation_delete_query_definition( input: &[u8], mut builder: crate::output::delete_query_definition_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DeleteQueryDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_success(Some(parsed_body.success)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "success" => { + builder = builder.set_success( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_destinations_deser_operation( +pub fn deser_operation_describe_destinations( input: &[u8], mut builder: crate::output::describe_destinations_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeDestinationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destinations" => { + builder = builder + .set_destinations(crate::json_deser::deser_list_destinations(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_export_tasks_deser_operation( +pub fn deser_operation_describe_export_tasks( input: &[u8], mut builder: crate::output::describe_export_tasks_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeExportTasksOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_tasks(parsed_body.export_tasks); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "exportTasks" => { + builder = builder + .set_export_tasks(crate::json_deser::deser_list_export_tasks(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_log_groups_deser_operation( +pub fn deser_operation_describe_log_groups( input: &[u8], mut builder: crate::output::describe_log_groups_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLogGroupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_log_groups(parsed_body.log_groups); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logGroups" => { + builder = builder + .set_log_groups(crate::json_deser::deser_list_log_groups(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_log_streams_deser_operation( +pub fn deser_operation_describe_log_streams( input: &[u8], mut builder: crate::output::describe_log_streams_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLogStreamsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_log_streams(parsed_body.log_streams); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logStreams" => { + builder = builder + .set_log_streams(crate::json_deser::deser_list_log_streams(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_metric_filters_deser_operation( +pub fn deser_operation_describe_metric_filters( input: &[u8], mut builder: crate::output::describe_metric_filters_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeMetricFiltersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_metric_filters(parsed_body.metric_filters); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "metricFilters" => { + builder = builder.set_metric_filters( + crate::json_deser::deser_list_metric_filters(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_queries_deser_operation( +pub fn deser_operation_describe_queries( input: &[u8], mut builder: crate::output::describe_queries_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeQueriesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_queries(parsed_body.queries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queries" => { + builder = builder + .set_queries(crate::json_deser::deser_list_query_info_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_query_definitions_deser_operation( +pub fn deser_operation_describe_query_definitions( input: &[u8], mut builder: crate::output::describe_query_definitions_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeQueryDefinitionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_query_definitions(parsed_body.query_definitions); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result< + crate::output::describe_query_definitions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryDefinitions" => { + builder = builder.set_query_definitions( + crate::json_deser::deser_list_query_definition_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_resource_policies_deser_operation( +pub fn deser_operation_describe_resource_policies( input: &[u8], mut builder: crate::output::describe_resource_policies_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeResourcePoliciesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_resource_policies(parsed_body.resource_policies); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result< + crate::output::describe_resource_policies_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resourcePolicies" => { + builder = builder.set_resource_policies( + crate::json_deser::deser_list_resource_policies(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_subscription_filters_deser_operation( +pub fn deser_operation_describe_subscription_filters( input: &[u8], mut builder: crate::output::describe_subscription_filters_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_subscription_filters_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeSubscriptionFiltersOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_subscription_filters(parsed_body.subscription_filters); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "subscriptionFilters" => { + builder = builder.set_subscription_filters( + crate::json_deser::deser_list_subscription_filters(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn filter_log_events_deser_operation( +pub fn deser_operation_filter_log_events( input: &[u8], mut builder: crate::output::filter_log_events_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::FilterLogEventsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_events(parsed_body.events); - builder = builder.set_searched_log_streams(parsed_body.searched_log_streams); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "events" => { + builder = builder + .set_events(crate::json_deser::deser_list_filtered_log_events(tokens)?); + } + "searchedLogStreams" => { + builder = builder.set_searched_log_streams( + crate::json_deser::deser_list_searched_log_streams(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_log_events_deser_operation( +pub fn deser_operation_get_log_events( input: &[u8], mut builder: crate::output::get_log_events_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetLogEventsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_events(parsed_body.events); - builder = builder.set_next_forward_token(parsed_body.next_forward_token); - builder = builder.set_next_backward_token(parsed_body.next_backward_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "events" => { + builder = builder + .set_events(crate::json_deser::deser_list_output_log_events(tokens)?); + } + "nextForwardToken" => { + builder = builder.set_next_forward_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nextBackwardToken" => { + builder = builder.set_next_backward_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_log_group_fields_deser_operation( +pub fn deser_operation_get_log_group_fields( input: &[u8], mut builder: crate::output::get_log_group_fields_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetLogGroupFieldsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_log_group_fields(parsed_body.log_group_fields); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logGroupFields" => { + builder = builder.set_log_group_fields( + crate::json_deser::deser_list_log_group_field_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_log_record_deser_operation( +pub fn deser_operation_get_log_record( input: &[u8], mut builder: crate::output::get_log_record_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetLogRecordOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_log_record(parsed_body.log_record); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logRecord" => { + builder = builder + .set_log_record(crate::json_deser::deser_map_log_record(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_query_results_deser_operation( +pub fn deser_operation_get_query_results( input: &[u8], mut builder: crate::output::get_query_results_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetQueryResultsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_results(parsed_body.results); - builder = builder.set_statistics(parsed_body.statistics); - builder = builder.set_status(parsed_body.status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "results" => { + builder = builder + .set_results(crate::json_deser::deser_list_query_results(tokens)?); + } + "statistics" => { + builder = builder.set_statistics( + crate::json_deser::deser_structure_query_statistics(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::QueryStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_log_group_deser_operation( +pub fn deser_operation_list_tags_log_group( input: &[u8], mut builder: crate::output::list_tags_log_group_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsLogGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_destination_deser_operation( +pub fn deser_operation_put_destination( input: &[u8], mut builder: crate::output::put_destination_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutDestinationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_destination(parsed_body.destination); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_destination(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_log_events_deser_operation( +pub fn deser_structure_data_already_accepted_exceptionjson_err( + input: &[u8], + mut builder: crate::error::data_already_accepted_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "expectedSequenceToken" => { + builder = builder.set_expected_sequence_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_sequence_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_sequence_token_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "expectedSequenceToken" => { + builder = builder.set_expected_sequence_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unrecognized_client_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unrecognized_client_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_log_events( input: &[u8], mut builder: crate::output::put_log_events_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutLogEventsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_sequence_token(parsed_body.next_sequence_token); - builder = builder.set_rejected_log_events_info(parsed_body.rejected_log_events_info); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextSequenceToken" => { + builder = builder.set_next_sequence_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "rejectedLogEventsInfo" => { + builder = builder.set_rejected_log_events_info( + crate::json_deser::deser_structure_rejected_log_events_info(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_query_definition_deser_operation( +pub fn deser_operation_put_query_definition( input: &[u8], mut builder: crate::output::put_query_definition_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutQueryDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_query_definition_id(parsed_body.query_definition_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryDefinitionId" => { + builder = builder.set_query_definition_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_resource_policy_deser_operation( +pub fn deser_operation_put_resource_policy( input: &[u8], mut builder: crate::output::put_resource_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutResourcePolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_resource_policy(parsed_body.resource_policy); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resourcePolicy" => { + builder = builder.set_resource_policy( + crate::json_deser::deser_structure_resource_policy(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_malformed_query_exceptionjson_err( + input: &[u8], + mut builder: crate::error::malformed_query_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryCompileError" => { + builder = builder.set_query_compile_error( + crate::json_deser::deser_structure_query_compile_error(tokens)?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_query_deser_operation( +pub fn deser_operation_start_query( input: &[u8], mut builder: crate::output::start_query_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartQueryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_query_id(parsed_body.query_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryId" => { + builder = builder.set_query_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_query_deser_operation( +pub fn deser_operation_stop_query( input: &[u8], mut builder: crate::output::stop_query_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StopQueryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_success(Some(parsed_body.success)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "success" => { + builder = builder.set_success( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn test_metric_filter_deser_operation( +pub fn deser_operation_test_metric_filter( input: &[u8], mut builder: crate::output::test_metric_filter_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TestMetricFilterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_matches(parsed_body.matches); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "matches" => { + builder = builder.set_matches( + crate::json_deser::deser_list_metric_filter_matches(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_destinations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_destination(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_export_tasks<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_export_task(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_groups<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_log_group(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_streams<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_log_stream(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metric_filters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_metric_filter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_query_info_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_query_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_query_definition_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_query_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_policies<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_resource_policy(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_subscription_filters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_subscription_filter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_filtered_log_events<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_filtered_log_event(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_searched_log_streams<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_searched_log_stream(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_output_log_events<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_output_log_event(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_group_field_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_log_group_field(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_log_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_query_results<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_list_result_rows(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_query_statistics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QueryStatistics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "recordsMatched" => { + builder = builder.set_records_matched( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "recordsScanned" => { + builder = builder.set_records_scanned( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "bytesScanned" => { + builder = builder.set_bytes_scanned( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Destination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destinationName" => { + builder = builder.set_destination_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "targetArn" => { + builder = builder.set_target_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "accessPolicy" => { + builder = builder.set_access_policy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rejected_log_events_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RejectedLogEventsInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tooNewLogEventStartIndex" => { + builder = builder.set_too_new_log_event_start_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tooOldLogEventEndIndex" => { + builder = builder.set_too_old_log_event_end_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "expiredLogEventEndIndex" => { + builder = builder.set_expired_log_event_end_index( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_policy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourcePolicy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "policyName" => { + builder = builder.set_policy_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyDocument" => { + builder = builder.set_policy_document( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastUpdatedTime" => { + builder = builder.set_last_updated_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_query_compile_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QueryCompileError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "location" => { + builder = builder.set_location( + crate::json_deser::deser_structure_query_compile_error_location(tokens)? + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metric_filter_matches<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_metric_filter_match_record(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_export_task<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExportTask::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskId" => { + builder = builder.set_task_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskName" => { + builder = builder.set_task_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "from" => { + builder = builder.set_from( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "to" => { + builder = builder.set_to( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "destination" => { + builder = builder.set_destination( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "destinationPrefix" => { + builder = builder.set_destination_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + crate::json_deser::deser_structure_export_task_status(tokens)?, + ); + } + "executionInfo" => { + builder = builder.set_execution_info( + crate::json_deser::deser_structure_export_task_execution_info( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_log_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "retentionInDays" => { + builder = builder.set_retention_in_days( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "metricFilterCount" => { + builder = builder.set_metric_filter_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "storedBytes" => { + builder = builder.set_stored_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "kmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_log_stream<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogStream::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logStreamName" => { + builder = builder.set_log_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "firstEventTimestamp" => { + builder = builder.set_first_event_timestamp( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "lastEventTimestamp" => { + builder = builder.set_last_event_timestamp( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "lastIngestionTime" => { + builder = builder.set_last_ingestion_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "uploadSequenceToken" => { + builder = builder.set_upload_sequence_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "storedBytes" => { + builder = builder.set_stored_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metric_filter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricFilter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "filterName" => { + builder = builder.set_filter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "filterPattern" => { + builder = builder.set_filter_pattern( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "metricTransformations" => { + builder = builder.set_metric_transformations( + crate::json_deser::deser_list_metric_transformations(tokens)?, + ); + } + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_query_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QueryInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryId" => { + builder = builder.set_query_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "queryString" => { + builder = builder.set_query_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::QueryStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "createTime" => { + builder = builder.set_create_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_query_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QueryDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "queryDefinitionId" => { + builder = builder.set_query_definition_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "queryString" => { + builder = builder.set_query_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "logGroupNames" => { + builder = builder.set_log_group_names( + crate::json_deser::deser_list_log_group_names(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_subscription_filter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SubscriptionFilter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "filterName" => { + builder = builder.set_filter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "filterPattern" => { + builder = builder.set_filter_pattern( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "destinationArn" => { + builder = builder.set_destination_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "distribution" => { + builder = builder.set_distribution( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Distribution::from(u.as_ref())) + }) + .transpose()?, + ); + } + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_filtered_log_event<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FilteredLogEvent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logStreamName" => { + builder = builder.set_log_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "timestamp" => { + builder = builder.set_timestamp( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingestionTime" => { + builder = builder.set_ingestion_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "eventId" => { + builder = builder.set_event_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_searched_log_stream<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SearchedLogStream::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logStreamName" => { + builder = builder.set_log_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "searchedCompletely" => { + builder = builder.set_searched_completely( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_log_event<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputLogEvent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "timestamp" => { + builder = builder.set_timestamp( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingestionTime" => { + builder = builder.set_ingestion_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_log_group_field<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogGroupField::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "percent" => { + builder = builder.set_percent( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_result_rows<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_result_field(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_query_compile_error_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::QueryCompileErrorLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "startCharOffset" => { + builder = builder.set_start_char_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "endCharOffset" => { + builder = builder.set_end_char_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metric_filter_match_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricFilterMatchRecord::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "eventNumber" => { + builder = builder.set_event_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "eventMessage" => { + builder = builder.set_event_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "extractedValues" => { + builder = builder.set_extracted_values( + crate::json_deser::deser_map_extracted_values(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_export_task_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExportTaskStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ExportTaskStatusCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_export_task_execution_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExportTaskExecutionInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "creationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "completionTime" => { + builder = builder.set_completion_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metric_transformations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_metric_transformation(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_group_names<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_result_field<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResultField::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "field" => { + builder = builder.set_field( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_extracted_values<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metric_transformation<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricTransformation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "metricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "metricNamespace" => { + builder = builder.set_metric_namespace( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "metricValue" => { + builder = builder.set_metric_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "defaultValue" => { + builder = builder.set_default_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "dimensions" => { + builder = builder.set_dimensions( + crate::json_deser::deser_map_dimensions(tokens)?, + ); + } + "unit" => { + builder = builder.set_unit( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StandardUnit::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_dimensions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/cloudwatchlogs/src/json_errors.rs b/sdk/cloudwatchlogs/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/cloudwatchlogs/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/cloudwatchlogs/src/lib.rs b/sdk/cloudwatchlogs/src/lib.rs index f9a02d2a7619..c09fd636a001 100644 --- a/sdk/cloudwatchlogs/src/lib.rs +++ b/sdk/cloudwatchlogs/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    You can use Amazon CloudWatch Logs to monitor, store, and access your log files from //! EC2 instances, AWS CloudTrail, and other sources. You can then retrieve the associated //! log data from CloudWatch Logs using the CloudWatch console, CloudWatch Logs commands in the @@ -44,7 +45,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -52,12 +52,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/cloudwatchlogs/src/model.rs b/sdk/cloudwatchlogs/src/model.rs index cd512e5b75ec..9ad87614f996 100644 --- a/sdk/cloudwatchlogs/src/model.rs +++ b/sdk/cloudwatchlogs/src/model.rs @@ -1,19 +1,13 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Represents a matched event.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricFilterMatchRecord { ///

    The event number.

    - #[serde(rename = "eventNumber")] - #[serde(default)] pub event_number: i64, ///

    The raw event data.

    - #[serde(rename = "eventMessage")] - #[serde(default)] pub event_message: std::option::Option, ///

    The values extracted from the event data by the filter.

    - #[serde(rename = "extractedValues")] - #[serde(default)] pub extracted_values: std::option::Option>, } @@ -98,15 +92,11 @@ impl MetricFilterMatchRecord { ///

    Reserved.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QueryCompileError { ///

    Reserved.

    - #[serde(rename = "location")] - #[serde(default)] pub location: std::option::Option, ///

    Reserved.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for QueryCompileError { @@ -166,15 +156,11 @@ impl QueryCompileError { ///

    Reserved.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QueryCompileErrorLocation { ///

    Reserved.

    - #[serde(rename = "startCharOffset")] - #[serde(default)] pub start_char_offset: std::option::Option, ///

    Reserved.

    - #[serde(rename = "endCharOffset")] - #[serde(default)] pub end_char_offset: std::option::Option, } impl std::fmt::Debug for QueryCompileErrorLocation { @@ -259,7 +245,7 @@ impl std::convert::From<&str> for Distribution { impl std::str::FromStr for Distribution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Distribution::from(s)) } } @@ -277,32 +263,17 @@ impl AsRef for Distribution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Distribution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A policy enabling one or more entities to put logs to a log group in this account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourcePolicy { ///

    The name of the resource policy.

    - #[serde(rename = "policyName")] - #[serde(default)] pub policy_name: std::option::Option, ///

    The details of the policy.

    - #[serde(rename = "policyDocument")] - #[serde(default)] pub policy_document: std::option::Option, ///

    Timestamp showing when this policy was last updated, expressed as the number of /// milliseconds after Jan 1, 1970 00:00:00 UTC.

    - #[serde(rename = "lastUpdatedTime")] - #[serde(default)] pub last_updated_time: std::option::Option, } impl std::fmt::Debug for ResourcePolicy { @@ -376,25 +347,17 @@ impl ResourcePolicy { ///

    Indicates how to transform ingested log events to metric data in a CloudWatch /// metric.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricTransformation { ///

    The name of the CloudWatch metric.

    - #[serde(rename = "metricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics /// that are similar. For more information, see Namespaces.

    - #[serde(rename = "metricNamespace")] - #[serde(default)] pub metric_namespace: std::option::Option, ///

    The value to publish to the CloudWatch metric when a filter pattern matches a log event.

    - #[serde(rename = "metricValue")] - #[serde(default)] pub metric_value: std::option::Option, ///

    (Optional) The value to emit when a filter pattern does not match a log event. /// This value can be null.

    - #[serde(rename = "defaultValue")] - #[serde(default)] pub default_value: std::option::Option, ///

    The fields to use as dimensions for the metric. One metric filter can include /// as many as three dimensions.

    @@ -414,13 +377,9 @@ pub struct MetricTransformation { /// Creating a Billing Alarm to Monitor Your Estimated AWS Charges. ///

    /// - #[serde(rename = "dimensions")] - #[serde(default)] pub dimensions: std::option::Option>, ///

    The unit to assign to the metric. If you omit this, the unit is set as None.

    - #[serde(rename = "unit")] - #[serde(default)] pub unit: std::option::Option, } impl std::fmt::Debug for MetricTransformation { @@ -618,7 +577,7 @@ impl std::convert::From<&str> for StandardUnit { impl std::str::FromStr for StandardUnit { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StandardUnit::from(s)) } } @@ -661,31 +620,16 @@ impl AsRef for StandardUnit { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StandardUnit { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the rejected events.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RejectedLogEventsInfo { ///

    The log events that are too new.

    - #[serde(rename = "tooNewLogEventStartIndex")] - #[serde(default)] pub too_new_log_event_start_index: std::option::Option, ///

    The log events that are too old.

    - #[serde(rename = "tooOldLogEventEndIndex")] - #[serde(default)] pub too_old_log_event_end_index: std::option::Option, ///

    The expired log events.

    - #[serde(rename = "expiredLogEventEndIndex")] - #[serde(default)] pub expired_log_event_end_index: std::option::Option, } impl std::fmt::Debug for RejectedLogEventsInfo { @@ -767,16 +711,12 @@ impl RejectedLogEventsInfo { ///

    Represents a log event, which is a record of activity that was recorded /// by the application or resource being monitored.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputLogEvent { ///

    The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 /// 00:00:00 UTC.

    - #[serde(rename = "timestamp")] - #[serde(default)] pub timestamp: std::option::Option, ///

    The raw event message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InputLogEvent { @@ -834,34 +774,22 @@ impl InputLogEvent { ///

    Represents a cross-account destination that receives subscription log events.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Destination { ///

    The name of the destination.

    - #[serde(rename = "destinationName")] - #[serde(default)] pub destination_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the physical target where the log events are /// delivered (for example, a Kinesis stream).

    - #[serde(rename = "targetArn")] - #[serde(default)] pub target_arn: std::option::Option, ///

    A role for impersonation, used when delivering log events to the target.

    - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

    An IAM policy document that governs which AWS accounts can create subscription filters /// against this destination.

    - #[serde(rename = "accessPolicy")] - #[serde(default)] pub access_policy: std::option::Option, ///

    The ARN of this destination.

    - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The creation time of the destination, expressed as the number of milliseconds after Jan /// 1, 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for Destination { @@ -1013,7 +941,7 @@ impl std::convert::From<&str> for QueryStatus { impl std::str::FromStr for QueryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(QueryStatus::from(s)) } } @@ -1036,32 +964,17 @@ impl AsRef for QueryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for QueryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the number of log events scanned by the query, the number of log events that matched the /// query criteria, and the total number of bytes in the log events that were scanned.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QueryStatistics { ///

    The number of log events that matched the query string.

    - #[serde(rename = "recordsMatched")] - #[serde(default)] pub records_matched: f64, ///

    The total number of log events scanned during the query.

    - #[serde(rename = "recordsScanned")] - #[serde(default)] pub records_scanned: f64, ///

    The total number of bytes in the log events scanned during the query.

    - #[serde(rename = "bytesScanned")] - #[serde(default)] pub bytes_scanned: f64, } impl std::fmt::Debug for QueryStatistics { @@ -1133,15 +1046,11 @@ impl QueryStatistics { /// generated by CloudWatch logs, see /// Supported Logs and Discovered Fields.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResultField { ///

    The log event field.

    - #[serde(rename = "field")] - #[serde(default)] pub field: std::option::Option, ///

    The value of this field.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for ResultField { @@ -1199,15 +1108,11 @@ impl ResultField { ///

    The fields contained in log events found by a GetLogGroupFields operation, /// along with the percentage of queried log events in which each field appears.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LogGroupField { ///

    The name of a log field.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The percentage of log events queried that contained the field.

    - #[serde(rename = "percent")] - #[serde(default)] pub percent: i32, } impl std::fmt::Debug for LogGroupField { @@ -1264,21 +1169,15 @@ impl LogGroupField { ///

    Represents a log event.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputLogEvent { ///

    The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 /// 00:00:00 UTC.

    - #[serde(rename = "timestamp")] - #[serde(default)] pub timestamp: std::option::Option, ///

    The data contained in the log event.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, ///

    The time the event was ingested, expressed as the number of milliseconds after Jan 1, /// 1970 00:00:00 UTC.

    - #[serde(rename = "ingestionTime")] - #[serde(default)] pub ingestion_time: std::option::Option, } impl std::fmt::Debug for OutputLogEvent { @@ -1349,15 +1248,11 @@ impl OutputLogEvent { ///

    Represents the search status of a log stream.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SearchedLogStream { ///

    The name of the log stream.

    - #[serde(rename = "logStreamName")] - #[serde(default)] pub log_stream_name: std::option::Option, ///

    Indicates whether all the events in this log stream were searched.

    - #[serde(rename = "searchedCompletely")] - #[serde(default)] pub searched_completely: std::option::Option, } impl std::fmt::Debug for SearchedLogStream { @@ -1417,29 +1312,19 @@ impl SearchedLogStream { ///

    Represents a matched event.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FilteredLogEvent { ///

    The name of the log stream to which this event belongs.

    - #[serde(rename = "logStreamName")] - #[serde(default)] pub log_stream_name: std::option::Option, ///

    The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 /// 00:00:00 UTC.

    - #[serde(rename = "timestamp")] - #[serde(default)] pub timestamp: std::option::Option, ///

    The data contained in the log event.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, ///

    The time the event was ingested, expressed as the number of milliseconds after Jan 1, /// 1970 00:00:00 UTC.

    - #[serde(rename = "ingestionTime")] - #[serde(default)] pub ingestion_time: std::option::Option, ///

    The ID of the event.

    - #[serde(rename = "eventId")] - #[serde(default)] pub event_id: std::option::Option, } impl std::fmt::Debug for FilteredLogEvent { @@ -1537,39 +1422,25 @@ impl FilteredLogEvent { ///

    Represents a subscription filter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SubscriptionFilter { ///

    The name of the subscription filter.

    - #[serde(rename = "filterName")] - #[serde(default)] pub filter_name: std::option::Option, ///

    The name of the log group.

    - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, ///

    A symbolic description of how CloudWatch Logs should interpret the data in each log /// event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You /// use the filter pattern to specify what to look for in the log event message.

    - #[serde(rename = "filterPattern")] - #[serde(default)] pub filter_pattern: std::option::Option, ///

    The Amazon Resource Name (ARN) of the destination.

    - #[serde(rename = "destinationArn")] - #[serde(default)] pub destination_arn: std::option::Option, ///

    - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

    The method used to distribute log data to the destination, which can be either /// random or grouped by log stream.

    - #[serde(rename = "distribution")] - #[serde(default)] pub distribution: std::option::Option, ///

    The creation time of the subscription filter, expressed as the number of milliseconds /// after Jan 1, 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for SubscriptionFilter { @@ -1702,28 +1573,18 @@ impl SubscriptionFilter { ///

    This structure contains details about a saved CloudWatch Logs Insights query definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QueryDefinition { ///

    The unique ID of the query definition.

    - #[serde(rename = "queryDefinitionId")] - #[serde(default)] pub query_definition_id: std::option::Option, ///

    The name of the query definition.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The query string to use for this definition. /// For more information, see CloudWatch Logs Insights Query Syntax.

    - #[serde(rename = "queryString")] - #[serde(default)] pub query_string: std::option::Option, ///

    The date that the query definition was most recently modified.

    - #[serde(rename = "lastModified")] - #[serde(default)] pub last_modified: std::option::Option, ///

    If this query definition contains a list of log groups that it is limited to, that list appears here.

    - #[serde(rename = "logGroupNames")] - #[serde(default)] pub log_group_names: std::option::Option>, } impl std::fmt::Debug for QueryDefinition { @@ -1824,28 +1685,18 @@ impl QueryDefinition { ///

    Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct QueryInfo { ///

    The unique ID number of this query.

    - #[serde(rename = "queryId")] - #[serde(default)] pub query_id: std::option::Option, ///

    The query string used in this query.

    - #[serde(rename = "queryString")] - #[serde(default)] pub query_string: std::option::Option, ///

    The status of this query. Possible values are Cancelled, /// Complete, Failed, Running, Scheduled, and Unknown.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The date and time that this query was created.

    - #[serde(rename = "createTime")] - #[serde(default)] pub create_time: std::option::Option, ///

    The name of the log group scanned by this query.

    - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, } impl std::fmt::Debug for QueryInfo { @@ -1943,31 +1794,21 @@ impl QueryInfo { ///

    Metric filters express how CloudWatch Logs would extract metric observations /// from ingested log events and transform them into metric data in a CloudWatch metric.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricFilter { ///

    The name of the metric filter.

    - #[serde(rename = "filterName")] - #[serde(default)] pub filter_name: std::option::Option, ///

    A symbolic description of how CloudWatch Logs should interpret the data in each log /// event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You /// use the filter pattern to specify what to look for in the log event message.

    - #[serde(rename = "filterPattern")] - #[serde(default)] pub filter_pattern: std::option::Option, ///

    The metric transformations.

    - #[serde(rename = "metricTransformations")] - #[serde(default)] pub metric_transformations: std::option::Option>, ///

    The creation time of the metric filter, expressed as the number of milliseconds after /// Jan 1, 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, ///

    The name of the log group.

    - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, } impl std::fmt::Debug for MetricFilter { @@ -2078,50 +1919,34 @@ impl MetricFilter { ///

    Represents a log stream, which is a sequence of log events from /// a single emitter of logs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LogStream { ///

    The name of the log stream.

    - #[serde(rename = "logStreamName")] - #[serde(default)] pub log_stream_name: std::option::Option, ///

    The creation time of the stream, expressed as the number of milliseconds after Jan 1, /// 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, ///

    The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 /// 00:00:00 UTC.

    - #[serde(rename = "firstEventTimestamp")] - #[serde(default)] pub first_event_timestamp: std::option::Option, ///

    The time of the most recent log event in the log stream in CloudWatch Logs. This number /// is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The /// lastEventTime value updates on an eventual consistency basis. It typically /// updates in less than an hour from ingestion, but in rare situations might take /// longer.

    - #[serde(rename = "lastEventTimestamp")] - #[serde(default)] pub last_event_timestamp: std::option::Option, ///

    The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 /// UTC.

    - #[serde(rename = "lastIngestionTime")] - #[serde(default)] pub last_ingestion_time: std::option::Option, ///

    The sequence token.

    - #[serde(rename = "uploadSequenceToken")] - #[serde(default)] pub upload_sequence_token: std::option::Option, ///

    The Amazon Resource Name (ARN) of the log stream.

    - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The number of bytes stored.

    ///

    /// Important: On June 17, 2019, this parameter was /// deprecated for log streams, and is always reported as zero. This change applies only to log /// streams. The storedBytes parameter for log groups is not affected.

    - #[serde(rename = "storedBytes")] - #[serde(default)] pub stored_bytes: std::option::Option, } impl std::fmt::Debug for LogStream { @@ -2293,7 +2118,7 @@ impl std::convert::From<&str> for OrderBy { impl std::str::FromStr for OrderBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OrderBy::from(s)) } } @@ -2311,51 +2136,28 @@ impl AsRef for OrderBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OrderBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents a log group.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LogGroup { ///

    The name of the log group.

    - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, ///

    The creation time of the log group, expressed as the number of milliseconds after Jan /// 1, 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, ///

    The number of days to retain the log events in the specified log group. /// Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

    ///

    If you omit retentionInDays in a PutRetentionPolicy operation, /// the events in the log group are always retained and never expire.

    - #[serde(rename = "retentionInDays")] - #[serde(default)] pub retention_in_days: std::option::Option, ///

    The number of metric filters.

    - #[serde(rename = "metricFilterCount")] - #[serde(default)] pub metric_filter_count: std::option::Option, ///

    The Amazon Resource Name (ARN) of the log group.

    - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The number of bytes stored.

    - #[serde(rename = "storedBytes")] - #[serde(default)] pub stored_bytes: std::option::Option, ///

    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

    - #[serde(rename = "kmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for LogGroup { @@ -2479,45 +2281,27 @@ impl LogGroup { ///

    Represents an export task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportTask { ///

    The ID of the export task.

    - #[serde(rename = "taskId")] - #[serde(default)] pub task_id: std::option::Option, ///

    The name of the export task.

    - #[serde(rename = "taskName")] - #[serde(default)] pub task_name: std::option::Option, ///

    The name of the log group from which logs data was exported.

    - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, ///

    The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. /// Events with a timestamp before this time are not exported.

    - #[serde(rename = "from")] - #[serde(default)] pub from: std::option::Option, ///

    The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. /// Events with a timestamp later than this time are not exported.

    - #[serde(rename = "to")] - #[serde(default)] pub to: std::option::Option, ///

    The name of the S3 bucket to which the log data was exported.

    - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, ///

    The prefix that was used as the start of Amazon S3 key for every object exported.

    - #[serde(rename = "destinationPrefix")] - #[serde(default)] pub destination_prefix: std::option::Option, ///

    The status of the export task.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    Execution information about the export task.

    - #[serde(rename = "executionInfo")] - #[serde(default)] pub execution_info: std::option::Option, } impl std::fmt::Debug for ExportTask { @@ -2672,17 +2456,13 @@ impl ExportTask { ///

    Represents the status of an export task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportTaskExecutionInfo { ///

    The creation time of the export task, expressed as the number of milliseconds after Jan /// 1, 1970 00:00:00 UTC.

    - #[serde(rename = "creationTime")] - #[serde(default)] pub creation_time: std::option::Option, ///

    The completion time of the export task, expressed as the number of milliseconds after /// Jan 1, 1970 00:00:00 UTC.

    - #[serde(rename = "completionTime")] - #[serde(default)] pub completion_time: std::option::Option, } impl std::fmt::Debug for ExportTaskExecutionInfo { @@ -2741,15 +2521,11 @@ impl ExportTaskExecutionInfo { ///

    Represents the status of an export task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportTaskStatus { ///

    The status code of the export task.

    - #[serde(rename = "code")] - #[serde(default)] pub code: std::option::Option, ///

    The status message related to the status code.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ExportTaskStatus { @@ -2843,7 +2619,7 @@ impl std::convert::From<&str> for ExportTaskStatusCode { impl std::str::FromStr for ExportTaskStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportTaskStatusCode::from(s)) } } @@ -2865,12 +2641,3 @@ impl AsRef for ExportTaskStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportTaskStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/cloudwatchlogs/src/operation.rs b/sdk/cloudwatchlogs/src/operation.rs index 374783dcfb58..2b35d97b08cd 100644 --- a/sdk/cloudwatchlogs/src/operation.rs +++ b/sdk/cloudwatchlogs/src/operation.rs @@ -21,57 +21,6 @@ impl AssociateKmsKey { pub fn builder() -> crate::input::associate_kms_key_input::Builder { crate::input::associate_kms_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::AssociateKmsKeyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateKmsKeyError { - kind: crate::error::AssociateKmsKeyErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::AssociateKmsKeyError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateKmsKeyError { - kind: crate::error::AssociateKmsKeyErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::AssociateKmsKeyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateKmsKeyError { - kind: crate::error::AssociateKmsKeyErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::AssociateKmsKeyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateKmsKeyError { - kind: crate::error::AssociateKmsKeyErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::AssociateKmsKeyError::unhandled(e), - }, - _ => crate::error::AssociateKmsKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::associate_kms_key_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -82,7 +31,11 @@ impl smithy_http::response::ParseStrictResponse for AssociateKmsKey { crate::error::AssociateKmsKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_associate_kms_key_error(response) + } else { + crate::operation_deser::parse_associate_kms_key_response(response) + } } } @@ -97,61 +50,6 @@ impl CancelExportTask { pub fn builder() -> crate::input::cancel_export_task_input::Builder { crate::input::cancel_export_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CancelExportTaskOutput, - crate::error::CancelExportTaskError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CancelExportTaskError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelExportTaskError { - kind: crate::error::CancelExportTaskErrorKind::InvalidOperationError(body), - meta: generic, - }, - Err(e) => crate::error::CancelExportTaskError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelExportTaskError { - kind: crate::error::CancelExportTaskErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CancelExportTaskError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelExportTaskError { - kind: crate::error::CancelExportTaskErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CancelExportTaskError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelExportTaskError { - kind: crate::error::CancelExportTaskErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CancelExportTaskError::unhandled(e), - }, - _ => crate::error::CancelExportTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::cancel_export_task_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -162,7 +60,11 @@ impl smithy_http::response::ParseStrictResponse for CancelExportTask { crate::error::CancelExportTaskError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_cancel_export_task_error(response) + } else { + crate::operation_deser::parse_cancel_export_task_response(response) + } } } @@ -189,82 +91,6 @@ impl CreateExportTask { pub fn builder() -> crate::input::create_export_task_input::Builder { crate::input::create_export_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateExportTaskOutput, - crate::error::CreateExportTaskError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateExportTaskError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - "ResourceAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::ResourceAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExportTaskError { - kind: crate::error::CreateExportTaskErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateExportTaskError::unhandled(e), - }, - _ => crate::error::CreateExportTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_export_task_output::Builder::default(); - builder = crate::json_deser::create_export_task_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateExportTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -275,7 +101,11 @@ impl smithy_http::response::ParseStrictResponse for CreateExportTask { crate::error::CreateExportTaskError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_export_task_error(response) + } else { + crate::operation_deser::parse_create_export_task_response(response) + } } } @@ -315,66 +145,6 @@ impl CreateLogGroup { pub fn builder() -> crate::input::create_log_group_input::Builder { crate::input::create_log_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateLogGroupError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogGroupError { - kind: crate::error::CreateLogGroupErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogGroupError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogGroupError { - kind: crate::error::CreateLogGroupErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogGroupError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogGroupError { - kind: crate::error::CreateLogGroupErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogGroupError::unhandled(e), - }, - "ResourceAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogGroupError { - kind: crate::error::CreateLogGroupErrorKind::ResourceAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateLogGroupError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogGroupError { - kind: crate::error::CreateLogGroupErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogGroupError::unhandled(e), - }, - _ => crate::error::CreateLogGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_log_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -383,7 +153,11 @@ impl smithy_http::response::ParseStrictResponse for CreateLogGroup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_log_group_error(response) + } else { + crate::operation_deser::parse_create_log_group_response(response) + } } } @@ -413,59 +187,6 @@ impl CreateLogStream { pub fn builder() -> crate::input::create_log_stream_input::Builder { crate::input::create_log_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateLogStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogStreamError { - kind: crate::error::CreateLogStreamErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogStreamError::unhandled(e), - }, - "ResourceAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogStreamError { - kind: crate::error::CreateLogStreamErrorKind::ResourceAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateLogStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogStreamError { - kind: crate::error::CreateLogStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogStreamError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLogStreamError { - kind: crate::error::CreateLogStreamErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::CreateLogStreamError::unhandled(e), - }, - _ => crate::error::CreateLogStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_log_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -476,7 +197,11 @@ impl smithy_http::response::ParseStrictResponse for CreateLogStream { crate::error::CreateLogStreamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_log_stream_error(response) + } else { + crate::operation_deser::parse_create_log_stream_response(response) + } } } @@ -492,61 +217,6 @@ impl DeleteDestination { pub fn builder() -> crate::input::delete_destination_input::Builder { crate::input::delete_destination_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteDestinationOutput, - crate::error::DeleteDestinationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteDestinationError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDestinationError { - kind: crate::error::DeleteDestinationErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDestinationError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDestinationError { - kind: crate::error::DeleteDestinationErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDestinationError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDestinationError { - kind: crate::error::DeleteDestinationErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDestinationError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDestinationError { - kind: crate::error::DeleteDestinationErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteDestinationError::unhandled(e), - }, - _ => crate::error::DeleteDestinationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_destination_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -557,7 +227,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteDestination { crate::error::DeleteDestinationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_destination_error(response) + } else { + crate::operation_deser::parse_delete_destination_response(response) + } } } @@ -572,57 +246,6 @@ impl DeleteLogGroup { pub fn builder() -> crate::input::delete_log_group_input::Builder { crate::input::delete_log_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteLogGroupError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogGroupError { - kind: crate::error::DeleteLogGroupErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogGroupError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogGroupError { - kind: crate::error::DeleteLogGroupErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogGroupError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogGroupError { - kind: crate::error::DeleteLogGroupErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogGroupError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogGroupError { - kind: crate::error::DeleteLogGroupErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogGroupError::unhandled(e), - }, - _ => crate::error::DeleteLogGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_log_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -631,7 +254,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteLogGroup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_log_group_error(response) + } else { + crate::operation_deser::parse_delete_log_group_response(response) + } } } @@ -646,57 +273,6 @@ impl DeleteLogStream { pub fn builder() -> crate::input::delete_log_stream_input::Builder { crate::input::delete_log_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteLogStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogStreamError { - kind: crate::error::DeleteLogStreamErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogStreamError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogStreamError { - kind: crate::error::DeleteLogStreamErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogStreamError { - kind: crate::error::DeleteLogStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogStreamError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteLogStreamError { - kind: crate::error::DeleteLogStreamErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteLogStreamError::unhandled(e), - }, - _ => crate::error::DeleteLogStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_log_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -707,7 +283,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteLogStream { crate::error::DeleteLogStreamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_log_stream_error(response) + } else { + crate::operation_deser::parse_delete_log_stream_response(response) + } } } @@ -721,67 +301,6 @@ impl DeleteMetricFilter { pub fn builder() -> crate::input::delete_metric_filter_input::Builder { crate::input::delete_metric_filter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteMetricFilterOutput, - crate::error::DeleteMetricFilterError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteMetricFilterError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMetricFilterError { - kind: crate::error::DeleteMetricFilterErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMetricFilterError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMetricFilterError { - kind: crate::error::DeleteMetricFilterErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMetricFilterError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMetricFilterError { - kind: crate::error::DeleteMetricFilterErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMetricFilterError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMetricFilterError { - kind: crate::error::DeleteMetricFilterErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMetricFilterError::unhandled(e), - }, - _ => crate::error::DeleteMetricFilterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_metric_filter_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -792,7 +311,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteMetricFilter { crate::error::DeleteMetricFilterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_metric_filter_error(response) + } else { + crate::operation_deser::parse_delete_metric_filter_response(response) + } } } @@ -810,63 +333,6 @@ impl DeleteQueryDefinition { pub fn builder() -> crate::input::delete_query_definition_input::Builder { crate::input::delete_query_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteQueryDefinitionOutput, - crate::error::DeleteQueryDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteQueryDefinitionError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteQueryDefinitionError { - kind: crate::error::DeleteQueryDefinitionErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteQueryDefinitionError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteQueryDefinitionError { - kind: crate::error::DeleteQueryDefinitionErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteQueryDefinitionError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteQueryDefinitionError { - kind: crate::error::DeleteQueryDefinitionErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteQueryDefinitionError::unhandled(e), - }, - _ => crate::error::DeleteQueryDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_query_definition_output::Builder::default(); - builder = crate::json_deser::delete_query_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -877,7 +343,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteQueryDefinition { crate::error::DeleteQueryDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_query_definition_error(response) + } else { + crate::operation_deser::parse_delete_query_definition_response(response) + } } } @@ -892,58 +362,6 @@ impl DeleteResourcePolicy { pub fn builder() -> crate::input::delete_resource_policy_input::Builder { crate::input::delete_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteResourcePolicyOutput, - crate::error::DeleteResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteResourcePolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - _ => crate::error::DeleteResourcePolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_resource_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -954,7 +372,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteResourcePolicy { crate::error::DeleteResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_resource_policy_error(response) + } else { + crate::operation_deser::parse_delete_resource_policy_response(response) + } } } @@ -969,67 +391,6 @@ impl DeleteRetentionPolicy { pub fn builder() -> crate::input::delete_retention_policy_input::Builder { crate::input::delete_retention_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteRetentionPolicyOutput, - crate::error::DeleteRetentionPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteRetentionPolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteRetentionPolicyError { - kind: crate::error::DeleteRetentionPolicyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteRetentionPolicyError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteRetentionPolicyError { - kind: crate::error::DeleteRetentionPolicyErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteRetentionPolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteRetentionPolicyError { - kind: crate::error::DeleteRetentionPolicyErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteRetentionPolicyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteRetentionPolicyError { - kind: crate::error::DeleteRetentionPolicyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteRetentionPolicyError::unhandled(e), - }, - _ => crate::error::DeleteRetentionPolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_retention_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1040,7 +401,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteRetentionPolicy { crate::error::DeleteRetentionPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_retention_policy_error(response) + } else { + crate::operation_deser::parse_delete_retention_policy_response(response) + } } } @@ -1054,75 +419,6 @@ impl DeleteSubscriptionFilter { pub fn builder() -> crate::input::delete_subscription_filter_input::Builder { crate::input::delete_subscription_filter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteSubscriptionFilterOutput, - crate::error::DeleteSubscriptionFilterError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteSubscriptionFilterError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSubscriptionFilterError { - kind: - crate::error::DeleteSubscriptionFilterErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteSubscriptionFilterError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSubscriptionFilterError { - kind: - crate::error::DeleteSubscriptionFilterErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteSubscriptionFilterError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSubscriptionFilterError { - kind: - crate::error::DeleteSubscriptionFilterErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteSubscriptionFilterError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSubscriptionFilterError { - kind: - crate::error::DeleteSubscriptionFilterErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteSubscriptionFilterError::unhandled(e), - }, - _ => crate::error::DeleteSubscriptionFilterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_subscription_filter_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1133,7 +429,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteSubscriptionFilter { crate::error::DeleteSubscriptionFilterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_subscription_filter_error(response) + } else { + crate::operation_deser::parse_delete_subscription_filter_response(response) + } } } @@ -1147,54 +447,6 @@ impl DescribeDestinations { pub fn builder() -> crate::input::describe_destinations_input::Builder { crate::input::describe_destinations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeDestinationsOutput, - crate::error::DescribeDestinationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeDestinationsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDestinationsError { - kind: crate::error::DescribeDestinationsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeDestinationsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDestinationsError { - kind: crate::error::DescribeDestinationsErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeDestinationsError::unhandled(e), - }, - _ => crate::error::DescribeDestinationsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_destinations_output::Builder::default(); - builder = crate::json_deser::describe_destinations_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeDestinationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1205,7 +457,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDestinations { crate::error::DescribeDestinationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_destinations_error(response) + } else { + crate::operation_deser::parse_describe_destinations_response(response) + } } } @@ -1220,54 +476,6 @@ impl DescribeExportTasks { pub fn builder() -> crate::input::describe_export_tasks_input::Builder { crate::input::describe_export_tasks_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeExportTasksOutput, - crate::error::DescribeExportTasksError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeExportTasksError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExportTasksError { - kind: crate::error::DescribeExportTasksErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeExportTasksError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExportTasksError { - kind: crate::error::DescribeExportTasksErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeExportTasksError::unhandled(e), - }, - _ => crate::error::DescribeExportTasksError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_export_tasks_output::Builder::default(); - builder = crate::json_deser::describe_export_tasks_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeExportTasksError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1278,7 +486,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeExportTasks { crate::error::DescribeExportTasksError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_export_tasks_error(response) + } else { + crate::operation_deser::parse_describe_export_tasks_response(response) + } } } @@ -1293,52 +505,6 @@ impl DescribeLogGroups { pub fn builder() -> crate::input::describe_log_groups_input::Builder { crate::input::describe_log_groups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeLogGroupsOutput, - crate::error::DescribeLogGroupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeLogGroupsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLogGroupsError { - kind: crate::error::DescribeLogGroupsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeLogGroupsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLogGroupsError { - kind: crate::error::DescribeLogGroupsErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeLogGroupsError::unhandled(e), - }, - _ => crate::error::DescribeLogGroupsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_log_groups_output::Builder::default(); - builder = crate::json_deser::describe_log_groups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeLogGroupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1349,7 +515,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeLogGroups { crate::error::DescribeLogGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_log_groups_error(response) + } else { + crate::operation_deser::parse_describe_log_groups_response(response) + } } } @@ -1366,63 +536,6 @@ impl DescribeLogStreams { pub fn builder() -> crate::input::describe_log_streams_input::Builder { crate::input::describe_log_streams_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeLogStreamsOutput, - crate::error::DescribeLogStreamsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeLogStreamsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLogStreamsError { - kind: crate::error::DescribeLogStreamsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeLogStreamsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLogStreamsError { - kind: crate::error::DescribeLogStreamsErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeLogStreamsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLogStreamsError { - kind: crate::error::DescribeLogStreamsErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeLogStreamsError::unhandled(e), - }, - _ => crate::error::DescribeLogStreamsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_log_streams_output::Builder::default(); - builder = crate::json_deser::describe_log_streams_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeLogStreamsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1433,7 +546,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeLogStreams { crate::error::DescribeLogStreamsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_log_streams_error(response) + } else { + crate::operation_deser::parse_describe_log_streams_response(response) + } } } @@ -1449,63 +566,6 @@ impl DescribeMetricFilters { pub fn builder() -> crate::input::describe_metric_filters_input::Builder { crate::input::describe_metric_filters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMetricFiltersOutput, - crate::error::DescribeMetricFiltersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeMetricFiltersError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMetricFiltersError { - kind: crate::error::DescribeMetricFiltersErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeMetricFiltersError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMetricFiltersError { - kind: crate::error::DescribeMetricFiltersErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeMetricFiltersError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMetricFiltersError { - kind: crate::error::DescribeMetricFiltersErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeMetricFiltersError::unhandled(e), - }, - _ => crate::error::DescribeMetricFiltersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_metric_filters_output::Builder::default(); - builder = crate::json_deser::describe_metric_filters_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1516,7 +576,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMetricFilters { crate::error::DescribeMetricFiltersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_metric_filters_error(response) + } else { + crate::operation_deser::parse_describe_metric_filters_response(response) + } } } @@ -1532,53 +596,6 @@ impl DescribeQueries { pub fn builder() -> crate::input::describe_queries_input::Builder { crate::input::describe_queries_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeQueriesError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeQueriesError { - kind: crate::error::DescribeQueriesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeQueriesError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeQueriesError { - kind: crate::error::DescribeQueriesErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeQueriesError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeQueriesError { - kind: crate::error::DescribeQueriesErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeQueriesError::unhandled(e), - }, - _ => crate::error::DescribeQueriesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_queries_output::Builder::default(); - builder = - crate::json_deser::describe_queries_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeQueriesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1589,7 +606,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeQueries { crate::error::DescribeQueriesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_queries_error(response) + } else { + crate::operation_deser::parse_describe_queries_response(response) + } } } @@ -1605,60 +626,6 @@ impl DescribeQueryDefinitions { pub fn builder() -> crate::input::describe_query_definitions_input::Builder { crate::input::describe_query_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeQueryDefinitionsOutput, - crate::error::DescribeQueryDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeQueryDefinitionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeQueryDefinitionsError { - kind: - crate::error::DescribeQueryDefinitionsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeQueryDefinitionsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeQueryDefinitionsError { - kind: - crate::error::DescribeQueryDefinitionsErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeQueryDefinitionsError::unhandled(e), - }, - _ => crate::error::DescribeQueryDefinitionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_query_definitions_output::Builder::default(); - builder = crate::json_deser::describe_query_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeQueryDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1669,7 +636,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeQueryDefinitions { crate::error::DescribeQueryDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_query_definitions_error(response) + } else { + crate::operation_deser::parse_describe_query_definitions_response(response) + } } } @@ -1683,60 +654,6 @@ impl DescribeResourcePolicies { pub fn builder() -> crate::input::describe_resource_policies_input::Builder { crate::input::describe_resource_policies_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeResourcePoliciesOutput, - crate::error::DescribeResourcePoliciesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeResourcePoliciesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeResourcePoliciesError { - kind: - crate::error::DescribeResourcePoliciesErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeResourcePoliciesError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeResourcePoliciesError { - kind: - crate::error::DescribeResourcePoliciesErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeResourcePoliciesError::unhandled(e), - }, - _ => crate::error::DescribeResourcePoliciesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_resource_policies_output::Builder::default(); - builder = crate::json_deser::describe_resource_policies_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeResourcePoliciesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1747,7 +664,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeResourcePolicies { crate::error::DescribeResourcePoliciesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_resource_policies_error(response) + } else { + crate::operation_deser::parse_describe_resource_policies_response(response) + } } } @@ -1762,52 +683,6 @@ impl DescribeSubscriptionFilters { pub fn builder() -> crate::input::describe_subscription_filters_input::Builder { crate::input::describe_subscription_filters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeSubscriptionFiltersOutput, - crate::error::DescribeSubscriptionFiltersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeSubscriptionFiltersError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSubscriptionFiltersError { kind: crate::error::DescribeSubscriptionFiltersErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::DescribeSubscriptionFiltersError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSubscriptionFiltersError { kind: crate::error::DescribeSubscriptionFiltersErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeSubscriptionFiltersError::unhandled(e) - } - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSubscriptionFiltersError { kind: crate::error::DescribeSubscriptionFiltersErrorKind::ServiceUnavailableError(body), meta: generic }, - Err(e) => crate::error::DescribeSubscriptionFiltersError::unhandled(e) - } - _ => crate::error::DescribeSubscriptionFiltersError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_subscription_filters_output::Builder::default(); - builder = crate::json_deser::describe_subscription_filters_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1818,7 +693,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeSubscriptionFilters crate::error::DescribeSubscriptionFiltersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_subscription_filters_error(response) + } else { + crate::operation_deser::parse_describe_subscription_filters_response(response) + } } } @@ -1835,67 +714,6 @@ impl DisassociateKmsKey { pub fn builder() -> crate::input::disassociate_kms_key_input::Builder { crate::input::disassociate_kms_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisassociateKmsKeyOutput, - crate::error::DisassociateKmsKeyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DisassociateKmsKeyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateKmsKeyError { - kind: crate::error::DisassociateKmsKeyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisassociateKmsKeyError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateKmsKeyError { - kind: crate::error::DisassociateKmsKeyErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisassociateKmsKeyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateKmsKeyError { - kind: crate::error::DisassociateKmsKeyErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisassociateKmsKeyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateKmsKeyError { - kind: crate::error::DisassociateKmsKeyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisassociateKmsKeyError::unhandled(e), - }, - _ => crate::error::DisassociateKmsKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disassociate_kms_key_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1906,7 +724,11 @@ impl smithy_http::response::ParseStrictResponse for DisassociateKmsKey { crate::error::DisassociateKmsKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disassociate_kms_key_error(response) + } else { + crate::operation_deser::parse_disassociate_kms_key_response(response) + } } } @@ -1928,53 +750,6 @@ impl FilterLogEvents { pub fn builder() -> crate::input::filter_log_events_input::Builder { crate::input::filter_log_events_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::FilterLogEventsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::FilterLogEventsError { - kind: crate::error::FilterLogEventsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::FilterLogEventsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::FilterLogEventsError { - kind: crate::error::FilterLogEventsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::FilterLogEventsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::FilterLogEventsError { - kind: crate::error::FilterLogEventsErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::FilterLogEventsError::unhandled(e), - }, - _ => crate::error::FilterLogEventsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::filter_log_events_output::Builder::default(); - builder = - crate::json_deser::filter_log_events_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::FilterLogEventsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1985,7 +760,11 @@ impl smithy_http::response::ParseStrictResponse for FilterLogEvents { crate::error::FilterLogEventsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_filter_log_events_error(response) + } else { + crate::operation_deser::parse_filter_log_events_response(response) + } } } @@ -2003,53 +782,6 @@ impl GetLogEvents { pub fn builder() -> crate::input::get_log_events_input::Builder { crate::input::get_log_events_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetLogEventsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogEventsError { - kind: crate::error::GetLogEventsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogEventsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogEventsError { - kind: crate::error::GetLogEventsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogEventsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogEventsError { - kind: crate::error::GetLogEventsErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogEventsError::unhandled(e), - }, - _ => crate::error::GetLogEventsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_log_events_output::Builder::default(); - builder = - crate::json_deser::get_log_events_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetLogEventsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2058,7 +790,11 @@ impl smithy_http::response::ParseStrictResponse for GetLogEvents { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_log_events_error(response) + } else { + crate::operation_deser::parse_get_log_events_response(response) + } } } @@ -2079,66 +815,6 @@ impl GetLogGroupFields { pub fn builder() -> crate::input::get_log_group_fields_input::Builder { crate::input::get_log_group_fields_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetLogGroupFieldsOutput, - crate::error::GetLogGroupFieldsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetLogGroupFieldsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogGroupFieldsError { - kind: crate::error::GetLogGroupFieldsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogGroupFieldsError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogGroupFieldsError { - kind: crate::error::GetLogGroupFieldsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogGroupFieldsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogGroupFieldsError { - kind: crate::error::GetLogGroupFieldsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogGroupFieldsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogGroupFieldsError { - kind: crate::error::GetLogGroupFieldsErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetLogGroupFieldsError::unhandled(e), - }, - _ => crate::error::GetLogGroupFieldsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_log_group_fields_output::Builder::default(); - builder = crate::json_deser::get_log_group_fields_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2149,7 +825,11 @@ impl smithy_http::response::ParseStrictResponse for GetLogGroupFields { crate::error::GetLogGroupFieldsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_log_group_fields_error(response) + } else { + crate::operation_deser::parse_get_log_group_fields_response(response) + } } } @@ -2166,60 +846,6 @@ impl GetLogRecord { pub fn builder() -> crate::input::get_log_record_input::Builder { crate::input::get_log_record_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetLogRecordError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogRecordError { - kind: crate::error::GetLogRecordErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogRecordError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogRecordError { - kind: crate::error::GetLogRecordErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogRecordError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogRecordError { - kind: crate::error::GetLogRecordErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogRecordError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetLogRecordError { - kind: crate::error::GetLogRecordErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GetLogRecordError::unhandled(e), - }, - _ => crate::error::GetLogRecordError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_log_record_output::Builder::default(); - builder = - crate::json_deser::get_log_record_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetLogRecordError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2228,7 +854,11 @@ impl smithy_http::response::ParseStrictResponse for GetLogRecord { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_log_record_error(response) + } else { + crate::operation_deser::parse_get_log_record_response(response) + } } } @@ -2252,53 +882,6 @@ impl GetQueryResults { pub fn builder() -> crate::input::get_query_results_input::Builder { crate::input::get_query_results_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetQueryResultsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetQueryResultsError { - kind: crate::error::GetQueryResultsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetQueryResultsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetQueryResultsError { - kind: crate::error::GetQueryResultsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetQueryResultsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetQueryResultsError { - kind: crate::error::GetQueryResultsErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GetQueryResultsError::unhandled(e), - }, - _ => crate::error::GetQueryResultsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_query_results_output::Builder::default(); - builder = - crate::json_deser::get_query_results_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetQueryResultsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2309,7 +892,11 @@ impl smithy_http::response::ParseStrictResponse for GetQueryResults { crate::error::GetQueryResultsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_query_results_error(response) + } else { + crate::operation_deser::parse_get_query_results_response(response) + } } } @@ -2323,52 +910,6 @@ impl ListTagsLogGroup { pub fn builder() -> crate::input::list_tags_log_group_input::Builder { crate::input::list_tags_log_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTagsLogGroupOutput, - crate::error::ListTagsLogGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTagsLogGroupError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsLogGroupError { - kind: crate::error::ListTagsLogGroupErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsLogGroupError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsLogGroupError { - kind: crate::error::ListTagsLogGroupErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTagsLogGroupError::unhandled(e), - }, - _ => crate::error::ListTagsLogGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_log_group_output::Builder::default(); - builder = crate::json_deser::list_tags_log_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTagsLogGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2379,7 +920,11 @@ impl smithy_http::response::ParseStrictResponse for ListTagsLogGroup { crate::error::ListTagsLogGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_log_group_error(response) + } else { + crate::operation_deser::parse_list_tags_log_group_response(response) + } } } @@ -2402,53 +947,6 @@ impl PutDestination { pub fn builder() -> crate::input::put_destination_input::Builder { crate::input::put_destination_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutDestinationError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationError { - kind: crate::error::PutDestinationErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutDestinationError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationError { - kind: crate::error::PutDestinationErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::PutDestinationError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationError { - kind: crate::error::PutDestinationErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::PutDestinationError::unhandled(e), - }, - _ => crate::error::PutDestinationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_destination_output::Builder::default(); - builder = - crate::json_deser::put_destination_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutDestinationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2457,7 +955,11 @@ impl smithy_http::response::ParseStrictResponse for PutDestination { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_destination_error(response) + } else { + crate::operation_deser::parse_put_destination_response(response) + } } } @@ -2476,58 +978,6 @@ impl PutDestinationPolicy { pub fn builder() -> crate::input::put_destination_policy_input::Builder { crate::input::put_destination_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutDestinationPolicyOutput, - crate::error::PutDestinationPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutDestinationPolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationPolicyError { - kind: crate::error::PutDestinationPolicyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutDestinationPolicyError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationPolicyError { - kind: crate::error::PutDestinationPolicyErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutDestinationPolicyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutDestinationPolicyError { - kind: crate::error::PutDestinationPolicyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutDestinationPolicyError::unhandled(e), - }, - _ => crate::error::PutDestinationPolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_destination_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2538,7 +988,11 @@ impl smithy_http::response::ParseStrictResponse for PutDestinationPolicy { crate::error::PutDestinationPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_destination_policy_error(response) + } else { + crate::operation_deser::parse_put_destination_policy_response(response) + } } } @@ -2589,74 +1043,6 @@ impl PutLogEvents { pub fn builder() -> crate::input::put_log_events_input::Builder { crate::input::put_log_events_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutLogEventsError::unhandled(generic)), - }; - return Err(match error_code { - "DataAlreadyAcceptedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::DataAlreadyAcceptedError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - "InvalidSequenceTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::InvalidSequenceTokenError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - "UnrecognizedClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutLogEventsError { - kind: crate::error::PutLogEventsErrorKind::UnrecognizedClientError(body), - meta: generic, - }, - Err(e) => crate::error::PutLogEventsError::unhandled(e), - }, - _ => crate::error::PutLogEventsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_log_events_output::Builder::default(); - builder = - crate::json_deser::put_log_events_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutLogEventsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2665,7 +1051,11 @@ impl smithy_http::response::ParseStrictResponse for PutLogEvents { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_log_events_error(response) + } else { + crate::operation_deser::parse_put_log_events_response(response) + } } } @@ -2701,64 +1091,6 @@ impl PutMetricFilter { pub fn builder() -> crate::input::put_metric_filter_input::Builder { crate::input::put_metric_filter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutMetricFilterError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutMetricFilterError { - kind: crate::error::PutMetricFilterErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutMetricFilterError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutMetricFilterError { - kind: crate::error::PutMetricFilterErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::PutMetricFilterError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutMetricFilterError { - kind: crate::error::PutMetricFilterErrorKind::OperationAbortedError(body), - meta: generic, - }, - Err(e) => crate::error::PutMetricFilterError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutMetricFilterError { - kind: crate::error::PutMetricFilterErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutMetricFilterError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutMetricFilterError { - kind: crate::error::PutMetricFilterErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::PutMetricFilterError::unhandled(e), - }, - _ => crate::error::PutMetricFilterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_metric_filter_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2769,7 +1101,11 @@ impl smithy_http::response::ParseStrictResponse for PutMetricFilter { crate::error::PutMetricFilterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_metric_filter_error(response) + } else { + crate::operation_deser::parse_put_metric_filter_response(response) + } } } @@ -2793,63 +1129,6 @@ impl PutQueryDefinition { pub fn builder() -> crate::input::put_query_definition_input::Builder { crate::input::put_query_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutQueryDefinitionOutput, - crate::error::PutQueryDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutQueryDefinitionError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutQueryDefinitionError { - kind: crate::error::PutQueryDefinitionErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutQueryDefinitionError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutQueryDefinitionError { - kind: crate::error::PutQueryDefinitionErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutQueryDefinitionError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutQueryDefinitionError { - kind: crate::error::PutQueryDefinitionErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutQueryDefinitionError::unhandled(e), - }, - _ => crate::error::PutQueryDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_query_definition_output::Builder::default(); - builder = crate::json_deser::put_query_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutQueryDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2860,7 +1139,11 @@ impl smithy_http::response::ParseStrictResponse for PutQueryDefinition { crate::error::PutQueryDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_query_definition_error(response) + } else { + crate::operation_deser::parse_put_query_definition_response(response) + } } } @@ -2876,59 +1159,6 @@ impl PutResourcePolicy { pub fn builder() -> crate::input::put_resource_policy_input::Builder { crate::input::put_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutResourcePolicyOutput, - crate::error::PutResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutResourcePolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - _ => crate::error::PutResourcePolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_resource_policy_output::Builder::default(); - builder = crate::json_deser::put_resource_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutResourcePolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2939,7 +1169,11 @@ impl smithy_http::response::ParseStrictResponse for PutResourcePolicy { crate::error::PutResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_resource_policy_error(response) + } else { + crate::operation_deser::parse_put_resource_policy_response(response) + } } } @@ -2955,67 +1189,6 @@ impl PutRetentionPolicy { pub fn builder() -> crate::input::put_retention_policy_input::Builder { crate::input::put_retention_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutRetentionPolicyOutput, - crate::error::PutRetentionPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutRetentionPolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRetentionPolicyError { - kind: crate::error::PutRetentionPolicyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRetentionPolicyError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRetentionPolicyError { - kind: crate::error::PutRetentionPolicyErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRetentionPolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRetentionPolicyError { - kind: crate::error::PutRetentionPolicyErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRetentionPolicyError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRetentionPolicyError { - kind: crate::error::PutRetentionPolicyErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRetentionPolicyError::unhandled(e), - }, - _ => crate::error::PutRetentionPolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_retention_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3026,7 +1199,11 @@ impl smithy_http::response::ParseStrictResponse for PutRetentionPolicy { crate::error::PutRetentionPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_retention_policy_error(response) + } else { + crate::operation_deser::parse_put_retention_policy_response(response) + } } } @@ -3068,76 +1245,6 @@ impl PutSubscriptionFilter { pub fn builder() -> crate::input::put_subscription_filter_input::Builder { crate::input::put_subscription_filter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutSubscriptionFilterOutput, - crate::error::PutSubscriptionFilterError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutSubscriptionFilterError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSubscriptionFilterError { - kind: crate::error::PutSubscriptionFilterErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutSubscriptionFilterError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSubscriptionFilterError { - kind: crate::error::PutSubscriptionFilterErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutSubscriptionFilterError::unhandled(e), - }, - "OperationAbortedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSubscriptionFilterError { - kind: crate::error::PutSubscriptionFilterErrorKind::OperationAbortedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutSubscriptionFilterError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSubscriptionFilterError { - kind: crate::error::PutSubscriptionFilterErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutSubscriptionFilterError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSubscriptionFilterError { - kind: crate::error::PutSubscriptionFilterErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutSubscriptionFilterError::unhandled(e), - }, - _ => crate::error::PutSubscriptionFilterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_subscription_filter_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3148,7 +1255,11 @@ impl smithy_http::response::ParseStrictResponse for PutSubscriptionFilter { crate::error::PutSubscriptionFilterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_subscription_filter_error(response) + } else { + crate::operation_deser::parse_put_subscription_filter_response(response) + } } } @@ -3166,65 +1277,6 @@ impl StartQuery { pub fn builder() -> crate::input::start_query_input::Builder { crate::input::start_query_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartQueryError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartQueryError { - kind: crate::error::StartQueryErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::StartQueryError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartQueryError { - kind: crate::error::StartQueryErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::StartQueryError::unhandled(e), - }, - "MalformedQueryException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartQueryError { - kind: crate::error::StartQueryErrorKind::MalformedQueryError(body), - meta: generic, - }, - Err(e) => crate::error::StartQueryError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartQueryError { - kind: crate::error::StartQueryErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::StartQueryError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartQueryError { - kind: crate::error::StartQueryErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::StartQueryError::unhandled(e), - }, - _ => crate::error::StartQueryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_query_output::Builder::default(); - builder = crate::json_deser::start_query_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::StartQueryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3233,7 +1285,11 @@ impl smithy_http::response::ParseStrictResponse for StartQuery { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_query_error(response) + } else { + crate::operation_deser::parse_start_query_response(response) + } } } @@ -3248,51 +1304,6 @@ impl StopQuery { pub fn builder() -> crate::input::stop_query_input::Builder { crate::input::stop_query_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopQueryError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopQueryError { - kind: crate::error::StopQueryErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::StopQueryError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopQueryError { - kind: crate::error::StopQueryErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::StopQueryError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopQueryError { - kind: crate::error::StopQueryErrorKind::ServiceUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::StopQueryError::unhandled(e), - }, - _ => crate::error::StopQueryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_query_output::Builder::default(); - builder = crate::json_deser::stop_query_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::StopQueryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3300,7 +1311,11 @@ impl StopQuery { impl smithy_http::response::ParseStrictResponse for StopQuery { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_query_error(response) + } else { + crate::operation_deser::parse_stop_query_response(response) + } } } @@ -3318,42 +1333,6 @@ impl TagLogGroup { pub fn builder() -> crate::input::tag_log_group_input::Builder { crate::input::tag_log_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TagLogGroupError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagLogGroupError { - kind: crate::error::TagLogGroupErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::TagLogGroupError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagLogGroupError { - kind: crate::error::TagLogGroupErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagLogGroupError::unhandled(e), - }, - _ => crate::error::TagLogGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::tag_log_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3362,7 +1341,11 @@ impl smithy_http::response::ParseStrictResponse for TagLogGroup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_log_group_error(response) + } else { + crate::operation_deser::parse_tag_log_group_response(response) + } } } @@ -3377,52 +1360,6 @@ impl TestMetricFilter { pub fn builder() -> crate::input::test_metric_filter_input::Builder { crate::input::test_metric_filter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::TestMetricFilterOutput, - crate::error::TestMetricFilterError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TestMetricFilterError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TestMetricFilterError { - kind: crate::error::TestMetricFilterErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::TestMetricFilterError::unhandled(e), - }, - "ServiceUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TestMetricFilterError { - kind: crate::error::TestMetricFilterErrorKind::ServiceUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::TestMetricFilterError::unhandled(e), - }, - _ => crate::error::TestMetricFilterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::test_metric_filter_output::Builder::default(); - builder = crate::json_deser::test_metric_filter_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::TestMetricFilterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3433,7 +1370,11 @@ impl smithy_http::response::ParseStrictResponse for TestMetricFilter { crate::error::TestMetricFilterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_test_metric_filter_error(response) + } else { + crate::operation_deser::parse_test_metric_filter_response(response) + } } } @@ -3449,36 +1390,6 @@ impl UntagLogGroup { pub fn builder() -> crate::input::untag_log_group_input::Builder { crate::input::untag_log_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UntagLogGroupError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagLogGroupError { - kind: crate::error::UntagLogGroupErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagLogGroupError::unhandled(e), - }, - _ => crate::error::UntagLogGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::untag_log_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3487,6 +1398,10 @@ impl smithy_http::response::ParseStrictResponse for UntagLogGroup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_log_group_error(response) + } else { + crate::operation_deser::parse_untag_log_group_response(response) + } } } diff --git a/sdk/cloudwatchlogs/src/operation_deser.rs b/sdk/cloudwatchlogs/src/operation_deser.rs new file mode 100644 index 000000000000..1eb82d3ac632 --- /dev/null +++ b/sdk/cloudwatchlogs/src/operation_deser.rs @@ -0,0 +1,3365 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_kms_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AssociateKmsKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::AssociateKmsKeyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::AssociateKmsKeyError { + meta: generic, + kind: crate::error::AssociateKmsKeyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::AssociateKmsKeyError { + meta: generic, + kind: crate::error::AssociateKmsKeyErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::AssociateKmsKeyError { + meta: generic, + kind: crate::error::AssociateKmsKeyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::AssociateKmsKeyError { + meta: generic, + kind: crate::error::AssociateKmsKeyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateKmsKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AssociateKmsKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_kms_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::associate_kms_key_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_export_task_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CancelExportTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CancelExportTaskError::unhandled(generic)), + }; + Err(match error_code { + "InvalidOperationException" => crate::error::CancelExportTaskError { + meta: generic, + kind: crate::error::CancelExportTaskErrorKind::InvalidOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_operation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelExportTaskError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CancelExportTaskError { + meta: generic, + kind: crate::error::CancelExportTaskErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelExportTaskError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::CancelExportTaskError { + meta: generic, + kind: crate::error::CancelExportTaskErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelExportTaskError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::CancelExportTaskError { + meta: generic, + kind: crate::error::CancelExportTaskErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelExportTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CancelExportTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_export_task_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::cancel_export_task_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_export_task_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateExportTaskError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + }, + "ResourceAlreadyExistsException" => { + crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::ResourceAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::CreateExportTaskError { + meta: generic, + kind: crate::error::CreateExportTaskErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateExportTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_export_task_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_export_task_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_export_task(response.body().as_ref(), output) + .map_err(crate::error::CreateExportTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_log_group_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateLogGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateLogGroupError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::CreateLogGroupError { + meta: generic, + kind: crate::error::CreateLogGroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogGroupError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateLogGroupError { + meta: generic, + kind: crate::error::CreateLogGroupErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogGroupError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::CreateLogGroupError { + meta: generic, + kind: crate::error::CreateLogGroupErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogGroupError::unhandled)?; + output.build() + }), + }, + "ResourceAlreadyExistsException" => { + crate::error::CreateLogGroupError { + meta: generic, + kind: crate::error::CreateLogGroupErrorKind::ResourceAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateLogGroupError::unhandled)?; + output.build() + }), + } + } + "ServiceUnavailableException" => crate::error::CreateLogGroupError { + meta: generic, + kind: crate::error::CreateLogGroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateLogGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_log_group_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_log_group_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_log_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateLogStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateLogStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::CreateLogStreamError { + meta: generic, + kind: crate::error::CreateLogStreamErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogStreamError::unhandled)?; + output.build() + }), + }, + "ResourceAlreadyExistsException" => { + crate::error::CreateLogStreamError { + meta: generic, + kind: crate::error::CreateLogStreamErrorKind::ResourceAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateLogStreamError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::CreateLogStreamError { + meta: generic, + kind: crate::error::CreateLogStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogStreamError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::CreateLogStreamError { + meta: generic, + kind: crate::error::CreateLogStreamErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLogStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateLogStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_log_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_log_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_destination_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDestinationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDestinationError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteDestinationError { + meta: generic, + kind: crate::error::DeleteDestinationErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDestinationError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteDestinationError { + meta: generic, + kind: crate::error::DeleteDestinationErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDestinationError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteDestinationError { + meta: generic, + kind: crate::error::DeleteDestinationErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDestinationError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteDestinationError { + meta: generic, + kind: crate::error::DeleteDestinationErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDestinationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteDestinationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_destination_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_destination_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_log_group_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteLogGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteLogGroupError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteLogGroupError { + meta: generic, + kind: crate::error::DeleteLogGroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogGroupError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteLogGroupError { + meta: generic, + kind: crate::error::DeleteLogGroupErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogGroupError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteLogGroupError { + meta: generic, + kind: crate::error::DeleteLogGroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogGroupError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteLogGroupError { + meta: generic, + kind: crate::error::DeleteLogGroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteLogGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_log_group_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_log_group_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_log_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteLogStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteLogStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteLogStreamError { + meta: generic, + kind: crate::error::DeleteLogStreamErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogStreamError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteLogStreamError { + meta: generic, + kind: crate::error::DeleteLogStreamErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteLogStreamError { + meta: generic, + kind: crate::error::DeleteLogStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogStreamError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteLogStreamError { + meta: generic, + kind: crate::error::DeleteLogStreamErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLogStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteLogStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_log_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_log_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_metric_filter_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMetricFilterOutput, + crate::error::DeleteMetricFilterError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteMetricFilterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteMetricFilterError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteMetricFilterError { + meta: generic, + kind: crate::error::DeleteMetricFilterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMetricFilterError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteMetricFilterError { + meta: generic, + kind: crate::error::DeleteMetricFilterErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMetricFilterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteMetricFilterError { + meta: generic, + kind: crate::error::DeleteMetricFilterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMetricFilterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteMetricFilterError { + meta: generic, + kind: crate::error::DeleteMetricFilterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMetricFilterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteMetricFilterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_metric_filter_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMetricFilterOutput, + crate::error::DeleteMetricFilterError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_metric_filter_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_query_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteQueryDefinitionOutput, + crate::error::DeleteQueryDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteQueryDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteQueryDefinitionError { + meta: generic, + kind: crate::error::DeleteQueryDefinitionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteQueryDefinitionError { + meta: generic, + kind: crate::error::DeleteQueryDefinitionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteQueryDefinitionError { + meta: generic, + kind: crate::error::DeleteQueryDefinitionErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteQueryDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_query_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteQueryDefinitionOutput, + crate::error::DeleteQueryDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_query_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_query_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteQueryDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourcePolicyOutput, + crate::error::DeleteResourcePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteResourcePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourcePolicyOutput, + crate::error::DeleteResourcePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_resource_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_retention_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRetentionPolicyOutput, + crate::error::DeleteRetentionPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteRetentionPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteRetentionPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteRetentionPolicyError { + meta: generic, + kind: crate::error::DeleteRetentionPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteRetentionPolicyError { + meta: generic, + kind: crate::error::DeleteRetentionPolicyErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteRetentionPolicyError { + meta: generic, + kind: crate::error::DeleteRetentionPolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteRetentionPolicyError { + meta: generic, + kind: crate::error::DeleteRetentionPolicyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRetentionPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteRetentionPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_retention_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRetentionPolicyOutput, + crate::error::DeleteRetentionPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_retention_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_subscription_filter_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteSubscriptionFilterOutput, + crate::error::DeleteSubscriptionFilterError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteSubscriptionFilterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteSubscriptionFilterError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteSubscriptionFilterError { + meta: generic, + kind: crate::error::DeleteSubscriptionFilterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DeleteSubscriptionFilterError { + meta: generic, + kind: crate::error::DeleteSubscriptionFilterErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteSubscriptionFilterError { + meta: generic, + kind: crate::error::DeleteSubscriptionFilterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteSubscriptionFilterError { + meta: generic, + kind: crate::error::DeleteSubscriptionFilterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteSubscriptionFilterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_subscription_filter_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteSubscriptionFilterOutput, + crate::error::DeleteSubscriptionFilterError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_subscription_filter_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_destinations_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDestinationsOutput, + crate::error::DescribeDestinationsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDestinationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeDestinationsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeDestinationsError { + meta: generic, + kind: crate::error::DescribeDestinationsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDestinationsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeDestinationsError { + meta: generic, + kind: crate::error::DescribeDestinationsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDestinationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDestinationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_destinations_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDestinationsOutput, + crate::error::DescribeDestinationsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_destinations_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_destinations( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDestinationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_export_tasks_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeExportTasksOutput, + crate::error::DescribeExportTasksError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeExportTasksError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeExportTasksError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeExportTasksError { + meta: generic, + kind: crate::error::DescribeExportTasksErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportTasksError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeExportTasksError { + meta: generic, + kind: crate::error::DescribeExportTasksErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportTasksError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeExportTasksError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_export_tasks_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeExportTasksOutput, + crate::error::DescribeExportTasksError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_export_tasks_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_export_tasks( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportTasksError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_log_groups_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeLogGroupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeLogGroupsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeLogGroupsError { + meta: generic, + kind: crate::error::DescribeLogGroupsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogGroupsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeLogGroupsError { + meta: generic, + kind: crate::error::DescribeLogGroupsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogGroupsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeLogGroupsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_log_groups_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_log_groups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_log_groups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogGroupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_log_streams_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeLogStreamsOutput, + crate::error::DescribeLogStreamsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeLogStreamsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeLogStreamsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeLogStreamsError { + meta: generic, + kind: crate::error::DescribeLogStreamsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogStreamsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeLogStreamsError { + meta: generic, + kind: crate::error::DescribeLogStreamsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogStreamsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeLogStreamsError { + meta: generic, + kind: crate::error::DescribeLogStreamsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogStreamsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeLogStreamsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_log_streams_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeLogStreamsOutput, + crate::error::DescribeLogStreamsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_log_streams_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_log_streams( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLogStreamsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_metric_filters_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMetricFiltersOutput, + crate::error::DescribeMetricFiltersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeMetricFiltersError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeMetricFiltersError { + meta: generic, + kind: crate::error::DescribeMetricFiltersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeMetricFiltersError { + meta: generic, + kind: crate::error::DescribeMetricFiltersErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeMetricFiltersError { + meta: generic, + kind: crate::error::DescribeMetricFiltersErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMetricFiltersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_metric_filters_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMetricFiltersOutput, + crate::error::DescribeMetricFiltersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_metric_filters_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_metric_filters( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMetricFiltersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_queries_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeQueriesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeQueriesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeQueriesError { + meta: generic, + kind: crate::error::DescribeQueriesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueriesError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeQueriesError { + meta: generic, + kind: crate::error::DescribeQueriesErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueriesError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeQueriesError { + meta: generic, + kind: crate::error::DescribeQueriesErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueriesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeQueriesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_queries_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_queries_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_queries(response.body().as_ref(), output) + .map_err(crate::error::DescribeQueriesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_query_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeQueryDefinitionsOutput, + crate::error::DescribeQueryDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeQueryDefinitionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeQueryDefinitionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeQueryDefinitionsError { + meta: generic, + kind: crate::error::DescribeQueryDefinitionsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueryDefinitionsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeQueryDefinitionsError { + meta: generic, + kind: crate::error::DescribeQueryDefinitionsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueryDefinitionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeQueryDefinitionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_query_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeQueryDefinitionsOutput, + crate::error::DescribeQueryDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_query_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_query_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeQueryDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_resource_policies_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeResourcePoliciesOutput, + crate::error::DescribeResourcePoliciesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeResourcePoliciesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeResourcePoliciesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeResourcePoliciesError { + meta: generic, + kind: crate::error::DescribeResourcePoliciesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeResourcePoliciesError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeResourcePoliciesError { + meta: generic, + kind: crate::error::DescribeResourcePoliciesErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeResourcePoliciesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeResourcePoliciesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_resource_policies_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeResourcePoliciesOutput, + crate::error::DescribeResourcePoliciesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_resource_policies_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_resource_policies( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeResourcePoliciesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_subscription_filters_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeSubscriptionFiltersOutput, + crate::error::DescribeSubscriptionFiltersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeSubscriptionFiltersError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeSubscriptionFiltersError { + meta: generic, + kind: crate::error::DescribeSubscriptionFiltersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeSubscriptionFiltersError { + meta: generic, + kind: crate::error::DescribeSubscriptionFiltersErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => { + crate::error::DescribeSubscriptionFiltersError { + meta: generic, + kind: + crate::error::DescribeSubscriptionFiltersErrorKind::ServiceUnavailableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DescribeSubscriptionFiltersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_subscription_filters_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeSubscriptionFiltersOutput, + crate::error::DescribeSubscriptionFiltersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_subscription_filters_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_subscription_filters( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSubscriptionFiltersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_kms_key_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateKmsKeyOutput, + crate::error::DisassociateKmsKeyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisassociateKmsKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DisassociateKmsKeyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DisassociateKmsKeyError { + meta: generic, + kind: crate::error::DisassociateKmsKeyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::DisassociateKmsKeyError { + meta: generic, + kind: crate::error::DisassociateKmsKeyErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DisassociateKmsKeyError { + meta: generic, + kind: crate::error::DisassociateKmsKeyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateKmsKeyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DisassociateKmsKeyError { + meta: generic, + kind: crate::error::DisassociateKmsKeyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateKmsKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisassociateKmsKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_kms_key_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateKmsKeyOutput, + crate::error::DisassociateKmsKeyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disassociate_kms_key_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_filter_log_events_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::FilterLogEventsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::FilterLogEventsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::FilterLogEventsError { + meta: generic, + kind: crate::error::FilterLogEventsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FilterLogEventsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::FilterLogEventsError { + meta: generic, + kind: crate::error::FilterLogEventsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FilterLogEventsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::FilterLogEventsError { + meta: generic, + kind: crate::error::FilterLogEventsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::FilterLogEventsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::FilterLogEventsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_filter_log_events_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::filter_log_events_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_filter_log_events(response.body().as_ref(), output) + .map_err(crate::error::FilterLogEventsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_events_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetLogEventsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetLogEventsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetLogEventsError { + meta: generic, + kind: crate::error::GetLogEventsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogEventsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetLogEventsError { + meta: generic, + kind: crate::error::GetLogEventsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogEventsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::GetLogEventsError { + meta: generic, + kind: crate::error::GetLogEventsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogEventsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetLogEventsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_events_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_log_events_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_log_events(response.body().as_ref(), output) + .map_err(crate::error::GetLogEventsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_group_fields_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetLogGroupFieldsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetLogGroupFieldsError { + meta: generic, + kind: crate::error::GetLogGroupFieldsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::GetLogGroupFieldsError { + meta: generic, + kind: crate::error::GetLogGroupFieldsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetLogGroupFieldsError { + meta: generic, + kind: crate::error::GetLogGroupFieldsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::GetLogGroupFieldsError { + meta: generic, + kind: crate::error::GetLogGroupFieldsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetLogGroupFieldsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_group_fields_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_log_group_fields_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_log_group_fields( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogGroupFieldsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_record_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetLogRecordError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetLogRecordError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetLogRecordError { + meta: generic, + kind: crate::error::GetLogRecordErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogRecordError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::GetLogRecordError { + meta: generic, + kind: crate::error::GetLogRecordErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogRecordError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetLogRecordError { + meta: generic, + kind: crate::error::GetLogRecordErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogRecordError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::GetLogRecordError { + meta: generic, + kind: crate::error::GetLogRecordErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLogRecordError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetLogRecordError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_log_record_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_log_record_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_log_record(response.body().as_ref(), output) + .map_err(crate::error::GetLogRecordError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_query_results_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetQueryResultsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetQueryResultsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetQueryResultsError { + meta: generic, + kind: crate::error::GetQueryResultsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetQueryResultsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetQueryResultsError { + meta: generic, + kind: crate::error::GetQueryResultsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetQueryResultsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::GetQueryResultsError { + meta: generic, + kind: crate::error::GetQueryResultsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetQueryResultsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetQueryResultsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_query_results_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_query_results_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_query_results(response.body().as_ref(), output) + .map_err(crate::error::GetQueryResultsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_log_group_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsLogGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsLogGroupError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFoundException" => crate::error::ListTagsLogGroupError { + meta: generic, + kind: crate::error::ListTagsLogGroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsLogGroupError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::ListTagsLogGroupError { + meta: generic, + kind: crate::error::ListTagsLogGroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsLogGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsLogGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_log_group_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_log_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_log_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsLogGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_destination_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutDestinationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutDestinationError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutDestinationError { + meta: generic, + kind: crate::error::PutDestinationErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::PutDestinationError { + meta: generic, + kind: crate::error::PutDestinationErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutDestinationError { + meta: generic, + kind: crate::error::PutDestinationErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutDestinationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_destination_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_destination_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_put_destination(response.body().as_ref(), output) + .map_err(crate::error::PutDestinationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_destination_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutDestinationPolicyOutput, + crate::error::PutDestinationPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutDestinationPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutDestinationPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutDestinationPolicyError { + meta: generic, + kind: crate::error::PutDestinationPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationPolicyError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::PutDestinationPolicyError { + meta: generic, + kind: crate::error::PutDestinationPolicyErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationPolicyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutDestinationPolicyError { + meta: generic, + kind: crate::error::PutDestinationPolicyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDestinationPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutDestinationPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_destination_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutDestinationPolicyOutput, + crate::error::PutDestinationPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_destination_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_log_events_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutLogEventsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutLogEventsError::unhandled(generic)), + }; + Err(match error_code { + "DataAlreadyAcceptedException" => crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::DataAlreadyAcceptedException({ + #[allow(unused_mut)] + let mut output = crate::error::data_already_accepted_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_data_already_accepted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + }, + "InvalidSequenceTokenException" => { + crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::InvalidSequenceTokenException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_sequence_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_sequence_token_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + }, + "UnrecognizedClientException" => crate::error::PutLogEventsError { + meta: generic, + kind: crate::error::PutLogEventsErrorKind::UnrecognizedClientException({ + #[allow(unused_mut)] + let mut output = crate::error::unrecognized_client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unrecognized_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutLogEventsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_log_events_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_log_events_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_put_log_events(response.body().as_ref(), output) + .map_err(crate::error::PutLogEventsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_filter_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutMetricFilterError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutMetricFilterError { + meta: generic, + kind: crate::error::PutMetricFilterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutMetricFilterError { + meta: generic, + kind: crate::error::PutMetricFilterErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::PutMetricFilterError { + meta: generic, + kind: crate::error::PutMetricFilterErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutMetricFilterError { + meta: generic, + kind: crate::error::PutMetricFilterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutMetricFilterError { + meta: generic, + kind: crate::error::PutMetricFilterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutMetricFilterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutMetricFilterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_metric_filter_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_metric_filter_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_query_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutQueryDefinitionOutput, + crate::error::PutQueryDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutQueryDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutQueryDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutQueryDefinitionError { + meta: generic, + kind: crate::error::PutQueryDefinitionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutQueryDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutQueryDefinitionError { + meta: generic, + kind: crate::error::PutQueryDefinitionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutQueryDefinitionError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutQueryDefinitionError { + meta: generic, + kind: crate::error::PutQueryDefinitionErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutQueryDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutQueryDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_query_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutQueryDefinitionOutput, + crate::error::PutQueryDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_query_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_query_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutQueryDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_resource_policy_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutResourcePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_resource_policy_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_resource_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_resource_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_retention_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutRetentionPolicyOutput, + crate::error::PutRetentionPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutRetentionPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutRetentionPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutRetentionPolicyError { + meta: generic, + kind: crate::error::PutRetentionPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::PutRetentionPolicyError { + meta: generic, + kind: crate::error::PutRetentionPolicyErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutRetentionPolicyError { + meta: generic, + kind: crate::error::PutRetentionPolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRetentionPolicyError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutRetentionPolicyError { + meta: generic, + kind: crate::error::PutRetentionPolicyErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRetentionPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutRetentionPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_retention_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutRetentionPolicyOutput, + crate::error::PutRetentionPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_retention_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_subscription_filter_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutSubscriptionFilterOutput, + crate::error::PutSubscriptionFilterError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutSubscriptionFilterError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutSubscriptionFilterError { + meta: generic, + kind: crate::error::PutSubscriptionFilterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutSubscriptionFilterError { + meta: generic, + kind: crate::error::PutSubscriptionFilterErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "OperationAbortedException" => crate::error::PutSubscriptionFilterError { + meta: generic, + kind: crate::error::PutSubscriptionFilterErrorKind::OperationAbortedException({ + #[allow(unused_mut)] + let mut output = crate::error::operation_aborted_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_operation_aborted_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutSubscriptionFilterError { + meta: generic, + kind: crate::error::PutSubscriptionFilterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::PutSubscriptionFilterError { + meta: generic, + kind: crate::error::PutSubscriptionFilterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSubscriptionFilterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutSubscriptionFilterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_subscription_filter_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutSubscriptionFilterOutput, + crate::error::PutSubscriptionFilterError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_subscription_filter_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_query_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartQueryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartQueryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::StartQueryError { + meta: generic, + kind: crate::error::StartQueryErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::StartQueryError { + meta: generic, + kind: crate::error::StartQueryErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }), + }, + "MalformedQueryException" => crate::error::StartQueryError { + meta: generic, + kind: crate::error::StartQueryErrorKind::MalformedQueryException({ + #[allow(unused_mut)] + let mut output = crate::error::malformed_query_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_query_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::StartQueryError { + meta: generic, + kind: crate::error::StartQueryErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::StartQueryError { + meta: generic, + kind: crate::error::StartQueryErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartQueryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_query_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_query_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_query(response.body().as_ref(), output) + .map_err(crate::error::StartQueryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_query_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopQueryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopQueryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::StopQueryError { + meta: generic, + kind: crate::error::StopQueryErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopQueryError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::StopQueryError { + meta: generic, + kind: crate::error::StopQueryErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopQueryError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::StopQueryError { + meta: generic, + kind: crate::error::StopQueryErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopQueryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopQueryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_query_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_query_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_stop_query(response.body().as_ref(), output) + .map_err(crate::error::StopQueryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_log_group_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagLogGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagLogGroupError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::TagLogGroupError { + meta: generic, + kind: crate::error::TagLogGroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagLogGroupError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TagLogGroupError { + meta: generic, + kind: crate::error::TagLogGroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagLogGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagLogGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_log_group_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_log_group_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_test_metric_filter_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TestMetricFilterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TestMetricFilterError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::TestMetricFilterError { + meta: generic, + kind: crate::error::TestMetricFilterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestMetricFilterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::TestMetricFilterError { + meta: generic, + kind: crate::error::TestMetricFilterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestMetricFilterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TestMetricFilterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_test_metric_filter_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::test_metric_filter_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_test_metric_filter(response.body().as_ref(), output) + .map_err(crate::error::TestMetricFilterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_log_group_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagLogGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagLogGroupError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFoundException" => crate::error::UntagLogGroupError { + meta: generic, + kind: crate::error::UntagLogGroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagLogGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagLogGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_log_group_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_log_group_output::Builder::default(); + let _ = response; + output.build() + }) +} diff --git a/sdk/cloudwatchlogs/src/operation_ser.rs b/sdk/cloudwatchlogs/src/operation_ser.rs index a77f95d643a0..6f61c026e844 100644 --- a/sdk/cloudwatchlogs/src/operation_ser.rs +++ b/sdk/cloudwatchlogs/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_associate_kms_key( input: &crate::input::AssociateKmsKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_associate_kms_key_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_associate_kms_key( pub fn serialize_operation_cancel_export_task( input: &crate::input::CancelExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_export_task_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_cancel_export_task( pub fn serialize_operation_create_export_task( input: &crate::input::CreateExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_export_task_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_export_task( pub fn serialize_operation_create_log_group( input: &crate::input::CreateLogGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_log_group_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_log_group( pub fn serialize_operation_create_log_stream( input: &crate::input::CreateLogStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_log_stream_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_log_stream( pub fn serialize_operation_delete_destination( input: &crate::input::DeleteDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_destination_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_delete_destination( pub fn serialize_operation_delete_log_group( input: &crate::input::DeleteLogGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_log_group_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_delete_log_group( pub fn serialize_operation_delete_log_stream( input: &crate::input::DeleteLogStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_log_stream_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_delete_log_stream( pub fn serialize_operation_delete_metric_filter( input: &crate::input::DeleteMetricFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_metric_filter_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_delete_metric_filter( pub fn serialize_operation_delete_query_definition( input: &crate::input::DeleteQueryDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_query_definition_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_delete_query_definition( pub fn serialize_operation_delete_resource_policy( input: &crate::input::DeleteResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_resource_policy_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_delete_resource_policy( pub fn serialize_operation_delete_retention_policy( input: &crate::input::DeleteRetentionPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_retention_policy_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_delete_retention_policy( pub fn serialize_operation_delete_subscription_filter( input: &crate::input::DeleteSubscriptionFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_subscription_filter_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_delete_subscription_filter( pub fn serialize_operation_describe_destinations( input: &crate::input::DescribeDestinationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_destinations_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_describe_destinations( pub fn serialize_operation_describe_export_tasks( input: &crate::input::DescribeExportTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_export_tasks_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_describe_export_tasks( pub fn serialize_operation_describe_log_groups( input: &crate::input::DescribeLogGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_log_groups_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_describe_log_groups( pub fn serialize_operation_describe_log_streams( input: &crate::input::DescribeLogStreamsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_log_streams_input(&mut object, input); @@ -171,7 +171,7 @@ pub fn serialize_operation_describe_log_streams( pub fn serialize_operation_describe_metric_filters( input: &crate::input::DescribeMetricFiltersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_metric_filters_input(&mut object, input); @@ -181,7 +181,7 @@ pub fn serialize_operation_describe_metric_filters( pub fn serialize_operation_describe_queries( input: &crate::input::DescribeQueriesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_queries_input(&mut object, input); @@ -191,7 +191,7 @@ pub fn serialize_operation_describe_queries( pub fn serialize_operation_describe_query_definitions( input: &crate::input::DescribeQueryDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_query_definitions_input(&mut object, input); @@ -201,7 +201,7 @@ pub fn serialize_operation_describe_query_definitions( pub fn serialize_operation_describe_resource_policies( input: &crate::input::DescribeResourcePoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_resource_policies_input(&mut object, input); @@ -211,7 +211,7 @@ pub fn serialize_operation_describe_resource_policies( pub fn serialize_operation_describe_subscription_filters( input: &crate::input::DescribeSubscriptionFiltersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_subscription_filters_input(&mut object, input); @@ -221,7 +221,7 @@ pub fn serialize_operation_describe_subscription_filters( pub fn serialize_operation_disassociate_kms_key( input: &crate::input::DisassociateKmsKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disassociate_kms_key_input(&mut object, input); @@ -231,7 +231,7 @@ pub fn serialize_operation_disassociate_kms_key( pub fn serialize_operation_filter_log_events( input: &crate::input::FilterLogEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_filter_log_events_input(&mut object, input); @@ -241,7 +241,7 @@ pub fn serialize_operation_filter_log_events( pub fn serialize_operation_get_log_events( input: &crate::input::GetLogEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_log_events_input(&mut object, input); @@ -251,7 +251,7 @@ pub fn serialize_operation_get_log_events( pub fn serialize_operation_get_log_group_fields( input: &crate::input::GetLogGroupFieldsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_log_group_fields_input(&mut object, input); @@ -261,7 +261,7 @@ pub fn serialize_operation_get_log_group_fields( pub fn serialize_operation_get_log_record( input: &crate::input::GetLogRecordInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_log_record_input(&mut object, input); @@ -271,7 +271,7 @@ pub fn serialize_operation_get_log_record( pub fn serialize_operation_get_query_results( input: &crate::input::GetQueryResultsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_query_results_input(&mut object, input); @@ -281,7 +281,7 @@ pub fn serialize_operation_get_query_results( pub fn serialize_operation_list_tags_log_group( input: &crate::input::ListTagsLogGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_log_group_input(&mut object, input); @@ -291,7 +291,7 @@ pub fn serialize_operation_list_tags_log_group( pub fn serialize_operation_put_destination( input: &crate::input::PutDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_destination_input(&mut object, input); @@ -301,7 +301,7 @@ pub fn serialize_operation_put_destination( pub fn serialize_operation_put_destination_policy( input: &crate::input::PutDestinationPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_destination_policy_input(&mut object, input); @@ -311,7 +311,7 @@ pub fn serialize_operation_put_destination_policy( pub fn serialize_operation_put_log_events( input: &crate::input::PutLogEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_log_events_input(&mut object, input); @@ -321,7 +321,7 @@ pub fn serialize_operation_put_log_events( pub fn serialize_operation_put_metric_filter( input: &crate::input::PutMetricFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_metric_filter_input(&mut object, input); @@ -331,7 +331,7 @@ pub fn serialize_operation_put_metric_filter( pub fn serialize_operation_put_query_definition( input: &crate::input::PutQueryDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_query_definition_input(&mut object, input); @@ -341,7 +341,7 @@ pub fn serialize_operation_put_query_definition( pub fn serialize_operation_put_resource_policy( input: &crate::input::PutResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_resource_policy_input(&mut object, input); @@ -351,7 +351,7 @@ pub fn serialize_operation_put_resource_policy( pub fn serialize_operation_put_retention_policy( input: &crate::input::PutRetentionPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_retention_policy_input(&mut object, input); @@ -361,7 +361,7 @@ pub fn serialize_operation_put_retention_policy( pub fn serialize_operation_put_subscription_filter( input: &crate::input::PutSubscriptionFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_subscription_filter_input(&mut object, input); @@ -371,7 +371,7 @@ pub fn serialize_operation_put_subscription_filter( pub fn serialize_operation_start_query( input: &crate::input::StartQueryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_query_input(&mut object, input); @@ -381,7 +381,7 @@ pub fn serialize_operation_start_query( pub fn serialize_operation_stop_query( input: &crate::input::StopQueryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_query_input(&mut object, input); @@ -391,7 +391,7 @@ pub fn serialize_operation_stop_query( pub fn serialize_operation_tag_log_group( input: &crate::input::TagLogGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_log_group_input(&mut object, input); @@ -401,7 +401,7 @@ pub fn serialize_operation_tag_log_group( pub fn serialize_operation_test_metric_filter( input: &crate::input::TestMetricFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_test_metric_filter_input(&mut object, input); @@ -411,7 +411,7 @@ pub fn serialize_operation_test_metric_filter( pub fn serialize_operation_untag_log_group( input: &crate::input::UntagLogGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_untag_log_group_input(&mut object, input); diff --git a/sdk/cloudwatchlogs/src/serializer.rs b/sdk/cloudwatchlogs/src/serializer.rs deleted file mode 100644 index a1bd270d7896..000000000000 --- a/sdk/cloudwatchlogs/src/serializer.rs +++ /dev/null @@ -1,1464 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateKmsKeyInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. This must be a symmetric CMK. - /// For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS) and Using Symmetric and Asymmetric Keys.

    - pub kms_key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AssociateKmsKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateKmsKeyInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelExportTaskInputBody<'a> { - ///

    The ID of the export task.

    - pub task_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CancelExportTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelExportTaskInputBody"); - formatter.field("task_id", &self.task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateExportTaskInputBody<'a> { - ///

    The name of the export task.

    - pub task_name: &'a std::option::Option, - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    Export only log streams that match the provided prefix. If you don't - /// specify a value, no prefix filter is applied.

    - pub log_stream_name_prefix: &'a std::option::Option, - ///

    The start time of the range for the request, expressed as the number of milliseconds - /// after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not - /// exported.

    - pub from: &'a std::option::Option, - ///

    The end time of the range for the request, expreswatchlogsdocused as the number of milliseconds - /// after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not - /// exported.

    - pub to: &'a std::option::Option, - ///

    The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.

    - pub destination: &'a std::option::Option, - ///

    The prefix used as the start of the key for every object exported. If you don't - /// specify a value, the default is exportedlogs.

    - pub destination_prefix: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateExportTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateExportTaskInputBody"); - formatter.field("task_name", &self.task_name); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name_prefix", &self.log_stream_name_prefix); - formatter.field("from", &self.from); - formatter.field("to", &self.to); - formatter.field("destination", &self.destination); - formatter.field("destination_prefix", &self.destination_prefix); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLogGroupInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. - /// For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS).

    - pub kms_key_id: &'a std::option::Option, - ///

    The key-value pairs to use for the tags.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateLogGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLogGroupInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLogStreamInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the log stream.

    - pub log_stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateLogStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLogStreamInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name", &self.log_stream_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDestinationInputBody<'a> { - ///

    The name of the destination.

    - pub destination_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDestinationInputBody"); - formatter.field("destination_name", &self.destination_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteLogGroupInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteLogGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteLogGroupInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteLogStreamInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the log stream.

    - pub log_stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteLogStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteLogStreamInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name", &self.log_stream_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMetricFilterInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the metric filter.

    - pub filter_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteMetricFilterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMetricFilterInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name", &self.filter_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteQueryDefinitionInputBody<'a> { - ///

    The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions to retrieve the - /// IDs of your saved query definitions.

    - pub query_definition_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteQueryDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteQueryDefinitionInputBody"); - formatter.field("query_definition_id", &self.query_definition_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteResourcePolicyInputBody<'a> { - ///

    The name of the policy to be revoked. This parameter is required.

    - pub policy_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteResourcePolicyInputBody"); - formatter.field("policy_name", &self.policy_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteRetentionPolicyInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteRetentionPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteRetentionPolicyInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSubscriptionFilterInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the subscription filter.

    - pub filter_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteSubscriptionFilterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSubscriptionFilterInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name", &self.filter_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDestinationsInputBody<'a> { - ///

    The prefix to match. If you don't specify a value, no prefix filter is applied.

    - pub destination_name_prefix: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDestinationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDestinationsInputBody"); - formatter.field("destination_name_prefix", &self.destination_name_prefix); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExportTasksInputBody<'a> { - ///

    The ID of the export task. Specifying a task ID filters the results to zero or one export tasks.

    - pub task_id: &'a std::option::Option, - ///

    The status code of the export task. Specifying a status code filters the results to zero or more export tasks.

    - pub status_code: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeExportTasksInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExportTasksInputBody"); - formatter.field("task_id", &self.task_id); - formatter.field("status_code", &self.status_code); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLogGroupsInputBody<'a> { - ///

    The prefix to match.

    - pub log_group_name_prefix: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeLogGroupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLogGroupsInputBody"); - formatter.field("log_group_name_prefix", &self.log_group_name_prefix); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLogStreamsInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The prefix to match.

    - ///

    If orderBy is LastEventTime, you cannot specify this - /// parameter.

    - pub log_stream_name_prefix: &'a std::option::Option, - ///

    If the value is LogStreamName, the results are ordered by log stream name. - /// If the value is LastEventTime, the results are ordered by the event time. - /// The default value is LogStreamName.

    - ///

    If you order the results by event time, you cannot specify the logStreamNamePrefix parameter.

    - ///

    - /// lastEventTimestamp represents the time of the most recent log event in the - /// log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after - /// Jan 1, 1970 00:00:00 UTC. lastEventTimestamp updates on an eventual consistency - /// basis. It typically updates in less than an hour from ingestion, but in rare situations might - /// take longer.

    - pub order_by: &'a std::option::Option, - ///

    If the value is true, results are returned in descending order. - /// If the value is to false, results are returned in ascending order. - /// The default value is false.

    - pub descending: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeLogStreamsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLogStreamsInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name_prefix", &self.log_stream_name_prefix); - formatter.field("order_by", &self.order_by); - formatter.field("descending", &self.descending); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMetricFiltersInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The prefix to match. CloudWatch Logs uses the value you set here - /// only if you also include the logGroupName parameter in your request.

    - pub filter_name_prefix: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, - ///

    Filters results to include only those with the specified metric name. If you include this parameter in your request, you - /// must also include the metricNamespace parameter.

    - pub metric_name: &'a std::option::Option, - ///

    Filters results to include only those in the specified namespace. If you include this parameter in your request, you - /// must also include the metricName parameter.

    - pub metric_namespace: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMetricFiltersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMetricFiltersInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name_prefix", &self.filter_name_prefix); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.field("metric_name", &self.metric_name); - formatter.field("metric_namespace", &self.metric_namespace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeQueriesInputBody<'a> { - ///

    Limits the returned queries to only those for the specified log group.

    - pub log_group_name: &'a std::option::Option, - ///

    Limits the returned queries to only those that have the specified status. Valid values are Cancelled, - /// Complete, Failed, Running, and Scheduled.

    - pub status: &'a std::option::Option, - ///

    Limits the number of returned queries to the specified number.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeQueriesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeQueriesInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("status", &self.status); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeQueryDefinitionsInputBody<'a> { - ///

    Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.

    - pub query_definition_name_prefix: &'a std::option::Option, - ///

    Limits the number of returned query definitions to the specified number.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeQueryDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeQueryDefinitionsInputBody"); - formatter.field( - "query_definition_name_prefix", - &self.query_definition_name_prefix, - ); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeResourcePoliciesInputBody<'a> { - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of resource policies to be displayed with one call of this API.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeResourcePoliciesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeResourcePoliciesInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSubscriptionFiltersInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The prefix to match. If you don't specify a value, no prefix filter is applied.

    - pub filter_name_prefix: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeSubscriptionFiltersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSubscriptionFiltersInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name_prefix", &self.filter_name_prefix); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateKmsKeyInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisassociateKmsKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateKmsKeyInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct FilterLogEventsInputBody<'a> { - ///

    The name of the log group to search.

    - pub log_group_name: &'a std::option::Option, - ///

    Filters the results to only logs from the log streams in this list.

    - ///

    If you specify a value for both logStreamNamePrefix and logStreamNames, the action - /// returns an InvalidParameterException error.

    - pub log_stream_names: &'a std::option::Option>, - ///

    Filters the results to include only events from log streams that have names starting with this prefix.

    - ///

    If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for - /// logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action - /// returns an InvalidParameterException error.

    - pub log_stream_name_prefix: &'a std::option::Option, - ///

    The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 - /// 00:00:00 UTC. Events with a timestamp before this time are not returned.

    - pub start_time: &'a std::option::Option, - ///

    The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 - /// 00:00:00 UTC. Events with a timestamp later than this time are not returned.

    - pub end_time: &'a std::option::Option, - ///

    The filter pattern to use. For more information, see Filter and Pattern Syntax.

    - ///

    If not provided, all the events are matched.

    - pub filter_pattern: &'a std::option::Option, - ///

    The token for the next set of events to return. (You received this token from a previous call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of events to return. The default is 10,000 events.

    - pub limit: &'a std::option::Option, - ///

    If the value is true, the operation makes a best effort to provide responses that - /// contain events from multiple log streams within the log group, interleaved in a single - /// response. If the value is false, all the matched log events in the first log stream are - /// searched first, then those in the next log stream, and so on. The default is false.

    - ///

    - /// Important: Starting on June 17, 2019, this parameter - /// is ignored and the value is assumed to be true. The response from this operation always - /// interleaves events from multiple log streams within a log group.

    - pub interleaved: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for FilterLogEventsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FilterLogEventsInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_names", &self.log_stream_names); - formatter.field("log_stream_name_prefix", &self.log_stream_name_prefix); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("filter_pattern", &self.filter_pattern); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.field("interleaved", &self.interleaved); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogEventsInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the log stream.

    - pub log_stream_name: &'a std::option::Option, - ///

    The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 - /// 00:00:00 UTC. Events with a timestamp equal to this time or later than this time are included. - /// Events with a timestamp earlier than this time are not included.

    - pub start_time: &'a std::option::Option, - ///

    The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 - /// 00:00:00 UTC. Events with a timestamp equal to or later than this time are not - /// included.

    - pub end_time: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous call.)

    - ///

    Using this token works only when you specify true for startFromHead.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of log events returned. If you don't specify a value, the maximum is - /// as many log events as can fit in a response size of 1 MB, up to 10,000 log events.

    - pub limit: &'a std::option::Option, - ///

    If the value is true, the earliest log events are returned first. - /// If the value is false, the latest log events are returned first. - /// The default value is false.

    - ///

    If you are using nextToken in this operation, you must specify true for startFromHead.

    - pub start_from_head: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetLogEventsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogEventsInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name", &self.log_stream_name); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("next_token", &self.next_token); - formatter.field("limit", &self.limit); - formatter.field("start_from_head", &self.start_from_head); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogGroupFieldsInputBody<'a> { - ///

    The name of the log group to search.

    - pub log_group_name: &'a std::option::Option, - ///

    The time to set as the center of the query. If you specify time, the 15 minutes - /// before this time are queries. If you omit time the 8 - /// minutes before and 8 minutes after this time are searched.

    - ///

    The time value is specified as epoch time, the number of seconds since - /// January 1, 1970, 00:00:00 UTC.

    - pub time: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetLogGroupFieldsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogGroupFieldsInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("time", &self.time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogRecordInputBody<'a> { - ///

    The pointer corresponding to the log event record you want to retrieve. You get this from - /// the response of a GetQueryResults operation. In that response, the value of the - /// @ptr field for a log event is the value to use as logRecordPointer - /// to retrieve that complete log event record.

    - pub log_record_pointer: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetLogRecordInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogRecordInputBody"); - formatter.field("log_record_pointer", &self.log_record_pointer); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetQueryResultsInputBody<'a> { - ///

    The ID number of the query.

    - pub query_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetQueryResultsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetQueryResultsInputBody"); - formatter.field("query_id", &self.query_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsLogGroupInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsLogGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsLogGroupInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDestinationInputBody<'a> { - ///

    A name for the destination.

    - pub destination_name: &'a std::option::Option, - ///

    The ARN of an Amazon Kinesis stream to which to deliver matching log events.

    - pub target_arn: &'a std::option::Option, - ///

    The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon - /// Kinesis PutRecord operation on the destination stream.

    - pub role_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDestinationInputBody"); - formatter.field("destination_name", &self.destination_name); - formatter.field("target_arn", &self.target_arn); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDestinationPolicyInputBody<'a> { - ///

    A name for an existing destination.

    - pub destination_name: &'a std::option::Option, - ///

    An IAM policy document that authorizes cross-account users to deliver their log events - /// to the associated destination. This can be up to 5120 bytes.

    - pub access_policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutDestinationPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDestinationPolicyInputBody"); - formatter.field("destination_name", &self.destination_name); - formatter.field("access_policy", &self.access_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutLogEventsInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The name of the log stream.

    - pub log_stream_name: &'a std::option::Option, - ///

    The log events.

    - pub log_events: &'a std::option::Option>, - ///

    The sequence token obtained from the response of the previous PutLogEvents - /// call. An upload in a newly created log stream does not require a sequence token. You can also - /// get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow - /// time period using the same value for sequenceToken, both calls might be - /// successful or one might be rejected.

    - pub sequence_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutLogEventsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutLogEventsInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_stream_name", &self.log_stream_name); - formatter.field("log_events", &self.log_events); - formatter.field("sequence_token", &self.sequence_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutMetricFilterInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    A name for the metric filter.

    - pub filter_name: &'a std::option::Option, - ///

    A filter pattern for extracting metric data out of ingested log events.

    - pub filter_pattern: &'a std::option::Option, - ///

    A collection of information that defines how metric data gets emitted.

    - pub metric_transformations: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutMetricFilterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutMetricFilterInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name", &self.filter_name); - formatter.field("filter_pattern", &self.filter_pattern); - formatter.field("metric_transformations", &self.metric_transformations); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutQueryDefinitionInputBody<'a> { - ///

    A name for the query definition. If you are saving a lot of query definitions, we - /// recommend that you name them so that you can easily find the ones you want by using the first - /// part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.

    - pub name: &'a std::option::Option, - ///

    If you are updating a query definition, use this parameter to specify the ID of the query - /// definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query - /// definitions.

    - ///

    If you are creating a query definition, do not specify this parameter. CloudWatch - /// generates a unique ID for the new query definition and include it in the response to this - /// operation.

    - pub query_definition_id: &'a std::option::Option, - ///

    Use this parameter to include specific log groups as part of your query definition.

    - ///

    If you are updating a query definition and you omit this parameter, then the updated - /// definition will contain no log groups.

    - pub log_group_names: &'a std::option::Option>, - ///

    The query string to use for this definition. - /// For more information, see CloudWatch Logs Insights Query Syntax.

    - pub query_string: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutQueryDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutQueryDefinitionInputBody"); - formatter.field("name", &self.name); - formatter.field("query_definition_id", &self.query_definition_id); - formatter.field("log_group_names", &self.log_group_names); - formatter.field("query_string", &self.query_string); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutResourcePolicyInputBody<'a> { - ///

    Name of the new policy. This parameter is required.

    - pub policy_name: &'a std::option::Option, - ///

    Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. - /// This parameter is required.

    - ///

    The following example creates a resource policy enabling the Route 53 service to put - /// DNS query logs in to the specified log group. Replace "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

    - ///

    - /// { - /// "Version": "2012-10-17", - /// "Statement": [ - /// { - /// "Sid": "Route53LogsToCloudWatchLogs", - /// "Effect": "Allow", - /// "Principal": { - /// "Service": [ - /// "route53.amazonaws.com" - /// ] - /// }, - /// "Action":"logs:PutLogEvents", - /// "Resource": "logArn" - /// } - /// ] - /// } - ///

    - pub policy_document: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutResourcePolicyInputBody"); - formatter.field("policy_name", &self.policy_name); - formatter.field("policy_document", &self.policy_document); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRetentionPolicyInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The number of days to retain the log events in the specified log group. - /// Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

    - ///

    If you omit retentionInDays in a PutRetentionPolicy operation, - /// the events in the log group are always retained and never expire.

    - pub retention_in_days: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutRetentionPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRetentionPolicyInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("retention_in_days", &self.retention_in_days); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutSubscriptionFilterInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    A name for the subscription filter. If you are updating an existing filter, you must - /// specify the correct name in filterName. To find the name of the filter currently - /// associated with a log group, use DescribeSubscriptionFilters.

    - pub filter_name: &'a std::option::Option, - ///

    A filter pattern for subscribing to a filtered stream of log events.

    - pub filter_pattern: &'a std::option::Option, - ///

    The ARN of the destination to deliver matching log events to. Currently, the supported - /// destinations are:

    - ///
      - ///
    • - ///

      An Amazon Kinesis stream belonging to the same account as the subscription filter, - /// for same-account delivery.

      - ///
    • - ///
    • - ///

      A logical destination (specified using an ARN) belonging to a different account, - /// for cross-account delivery.

      - ///

      If you are setting up a cross-account subscription, the destination must have an - /// IAM policy associated with it that allows the sender to send logs to the destination. - /// For more information, see PutDestinationPolicy.

      - ///
    • - ///
    • - ///

      An Amazon Kinesis Firehose delivery stream belonging to the same account as the - /// subscription filter, for same-account delivery.

      - ///
    • - ///
    • - ///

      An AWS Lambda function belonging to the same account as the subscription filter, - /// for same-account delivery.

      - ///
    • - ///
    - pub destination_arn: &'a std::option::Option, - ///

    The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log - /// events to the destination stream. You don't need to provide the ARN when you are working with - /// a logical destination for cross-account delivery.

    - pub role_arn: &'a std::option::Option, - ///

    The method used to distribute log data to the destination. By default, log data is - /// grouped by log stream, but the grouping can be set to random for a more even distribution. - /// This property is only applicable when the destination is an Amazon Kinesis stream.

    - pub distribution: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutSubscriptionFilterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutSubscriptionFilterInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("filter_name", &self.filter_name); - formatter.field("filter_pattern", &self.filter_pattern); - formatter.field("destination_arn", &self.destination_arn); - formatter.field("role_arn", &self.role_arn); - formatter.field("distribution", &self.distribution); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartQueryInputBody<'a> { - ///

    The log group on which to perform the query.

    - ///

    A StartQuery operation must include a logGroupNames or a logGroupName parameter, but - /// not both.

    - pub log_group_name: &'a std::option::Option, - ///

    The list of log groups to be queried. You can include up to 20 log groups.

    - ///

    A StartQuery operation must include a logGroupNames or a logGroupName parameter, but - /// not both.

    - pub log_group_names: &'a std::option::Option>, - ///

    The beginning of the time range to query. The range is inclusive, so the specified - /// start time is included in the query. Specified as epoch time, the - /// number of seconds since January 1, 1970, 00:00:00 UTC.

    - pub start_time: &'a std::option::Option, - ///

    The end of the time range to query. The range is inclusive, so the specified - /// end time is included in the query. Specified as epoch - /// time, the number of seconds since January 1, 1970, 00:00:00 UTC.

    - pub end_time: &'a std::option::Option, - ///

    The query string to use. - /// For more information, see CloudWatch Logs Insights Query Syntax.

    - pub query_string: &'a std::option::Option, - ///

    The maximum number of log events to return in the query. If the query string uses the fields command, - /// only the specified fields and their values are returned. The default is 1000.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartQueryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartQueryInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("log_group_names", &self.log_group_names); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("query_string", &self.query_string); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopQueryInputBody<'a> { - ///

    The ID number of the query to stop. To find this ID number, use - /// DescribeQueries.

    - pub query_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopQueryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopQueryInputBody"); - formatter.field("query_id", &self.query_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagLogGroupInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The key-value pairs to use for the tags.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TagLogGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagLogGroupInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestMetricFilterInputBody<'a> { - ///

    A symbolic description of how CloudWatch Logs should interpret the data in each log - /// event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You - /// use the filter pattern to specify what to look for in the log event message.

    - pub filter_pattern: &'a std::option::Option, - ///

    The log event messages to test.

    - pub log_event_messages: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TestMetricFilterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestMetricFilterInputBody"); - formatter.field("filter_pattern", &self.filter_pattern); - formatter.field("log_event_messages", &self.log_event_messages); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagLogGroupInputBody<'a> { - ///

    The name of the log group.

    - pub log_group_name: &'a std::option::Option, - ///

    The tag keys. The corresponding tags are removed from the log group.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UntagLogGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagLogGroupInputBody"); - formatter.field("log_group_name", &self.log_group_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateExportTaskOutputBody { - ///

    The ID of the export task.

    - #[serde(rename = "taskId")] - #[serde(default)] - pub task_id: std::option::Option, -} -impl std::fmt::Debug for CreateExportTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateExportTaskOutputBody"); - formatter.field("task_id", &self.task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteQueryDefinitionOutputBody { - ///

    A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation - /// failed.

    - #[serde(rename = "success")] - #[serde(default)] - pub success: bool, -} -impl std::fmt::Debug for DeleteQueryDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteQueryDefinitionOutputBody"); - formatter.field("success", &self.success); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDestinationsOutputBody { - ///

    The destinations.

    - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeDestinationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDestinationsOutputBody"); - formatter.field("destinations", &self.destinations); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExportTasksOutputBody { - ///

    The export tasks.

    - #[serde(rename = "exportTasks")] - #[serde(default)] - pub export_tasks: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeExportTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExportTasksOutputBody"); - formatter.field("export_tasks", &self.export_tasks); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLogGroupsOutputBody { - ///

    The log groups.

    - ///

    If the retentionInDays value if not included for a log group, then that log group - /// is set to have its events never expire.

    - #[serde(rename = "logGroups")] - #[serde(default)] - pub log_groups: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeLogGroupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLogGroupsOutputBody"); - formatter.field("log_groups", &self.log_groups); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLogStreamsOutputBody { - ///

    The log streams.

    - #[serde(rename = "logStreams")] - #[serde(default)] - pub log_streams: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeLogStreamsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLogStreamsOutputBody"); - formatter.field("log_streams", &self.log_streams); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMetricFiltersOutputBody { - ///

    The metric filters.

    - #[serde(rename = "metricFilters")] - #[serde(default)] - pub metric_filters: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMetricFiltersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMetricFiltersOutputBody"); - formatter.field("metric_filters", &self.metric_filters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeQueriesOutputBody { - ///

    The list of queries that match the request.

    - #[serde(rename = "queries")] - #[serde(default)] - pub queries: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeQueriesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeQueriesOutputBody"); - formatter.field("queries", &self.queries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeQueryDefinitionsOutputBody { - ///

    The list of query definitions that match your request.

    - #[serde(rename = "queryDefinitions")] - #[serde(default)] - pub query_definitions: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeQueryDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeQueryDefinitionsOutputBody"); - formatter.field("query_definitions", &self.query_definitions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeResourcePoliciesOutputBody { - ///

    The resource policies that exist in this account.

    - #[serde(rename = "resourcePolicies")] - #[serde(default)] - pub resource_policies: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeResourcePoliciesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeResourcePoliciesOutputBody"); - formatter.field("resource_policies", &self.resource_policies); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSubscriptionFiltersOutputBody { - ///

    The subscription filters.

    - #[serde(rename = "subscriptionFilters")] - #[serde(default)] - pub subscription_filters: std::option::Option>, - ///

    The token for the next set of items to return. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeSubscriptionFiltersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSubscriptionFiltersOutputBody"); - formatter.field("subscription_filters", &self.subscription_filters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct FilterLogEventsOutputBody { - ///

    The matched events.

    - #[serde(rename = "events")] - #[serde(default)] - pub events: std::option::Option>, - ///

    - /// IMPORTANT Starting on May 15, 2020, - /// this parameter will be deprecated. This parameter will be an empty list - /// after the deprecation occurs.

    - ///

    Indicates which log streams have been searched and whether each has been searched completely.

    - #[serde(rename = "searchedLogStreams")] - #[serde(default)] - pub searched_log_streams: std::option::Option>, - ///

    The token to use when requesting the next set of items. The token expires after 24 hours.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for FilterLogEventsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FilterLogEventsOutputBody"); - formatter.field("events", &self.events); - formatter.field("searched_log_streams", &self.searched_log_streams); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogEventsOutputBody { - ///

    The events.

    - #[serde(rename = "events")] - #[serde(default)] - pub events: std::option::Option>, - ///

    The token for the next set of items in the forward direction. The token expires after - /// 24 hours. If you have reached the end of the stream, it returns the same token you passed - /// in.

    - #[serde(rename = "nextForwardToken")] - #[serde(default)] - pub next_forward_token: std::option::Option, - ///

    The token for the next set of items in the backward direction. The token expires after - /// 24 hours. This token is never null. If you have reached the end of the stream, it returns the - /// same token you passed in.

    - #[serde(rename = "nextBackwardToken")] - #[serde(default)] - pub next_backward_token: std::option::Option, -} -impl std::fmt::Debug for GetLogEventsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogEventsOutputBody"); - formatter.field("events", &self.events); - formatter.field("next_forward_token", &self.next_forward_token); - formatter.field("next_backward_token", &self.next_backward_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogGroupFieldsOutputBody { - ///

    The array of fields found in the query. Each object in the array contains the name of the field, along with the - /// percentage of time it appeared in the log events that were queried.

    - #[serde(rename = "logGroupFields")] - #[serde(default)] - pub log_group_fields: std::option::Option>, -} -impl std::fmt::Debug for GetLogGroupFieldsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogGroupFieldsOutputBody"); - formatter.field("log_group_fields", &self.log_group_fields); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLogRecordOutputBody { - ///

    The requested log event, as a JSON string.

    - #[serde(rename = "logRecord")] - #[serde(default)] - pub log_record: - std::option::Option>, -} -impl std::fmt::Debug for GetLogRecordOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLogRecordOutputBody"); - formatter.field("log_record", &self.log_record); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetQueryResultsOutputBody { - ///

    The log events that matched the query criteria during the most recent time it ran.

    - ///

    The results value is an array of arrays. Each log event is one object in the - /// top-level array. Each of these log event objects is an array of - /// field/value pairs.

    - #[serde(rename = "results")] - #[serde(default)] - pub results: std::option::Option>>, - ///

    Includes the number of log events scanned by the query, the number of log events that matched the - /// query criteria, and the total number of bytes in the log events that were scanned. These values - /// reflect the full raw results of the query.

    - #[serde(rename = "statistics")] - #[serde(default)] - pub statistics: std::option::Option, - ///

    The status of the most recent running of the query. Possible values are Cancelled, - /// Complete, Failed, Running, Scheduled, - /// Timeout, and Unknown.

    - ///

    Queries time out after 15 minutes of execution. To avoid having your queries time out, - /// reduce the time range being searched or partition your query into a number of queries.

    - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, -} -impl std::fmt::Debug for GetQueryResultsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetQueryResultsOutputBody"); - formatter.field("results", &self.results); - formatter.field("statistics", &self.statistics); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsLogGroupOutputBody { - ///

    The tags for the log group.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ListTagsLogGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsLogGroupOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDestinationOutputBody { - ///

    The destination.

    - #[serde(rename = "destination")] - #[serde(default)] - pub destination: std::option::Option, -} -impl std::fmt::Debug for PutDestinationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDestinationOutputBody"); - formatter.field("destination", &self.destination); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutLogEventsOutputBody { - ///

    The next sequence token.

    - #[serde(rename = "nextSequenceToken")] - #[serde(default)] - pub next_sequence_token: std::option::Option, - ///

    The rejected events.

    - #[serde(rename = "rejectedLogEventsInfo")] - #[serde(default)] - pub rejected_log_events_info: std::option::Option, -} -impl std::fmt::Debug for PutLogEventsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutLogEventsOutputBody"); - formatter.field("next_sequence_token", &self.next_sequence_token); - formatter.field("rejected_log_events_info", &self.rejected_log_events_info); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutQueryDefinitionOutputBody { - ///

    The ID of the query definition.

    - #[serde(rename = "queryDefinitionId")] - #[serde(default)] - pub query_definition_id: std::option::Option, -} -impl std::fmt::Debug for PutQueryDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutQueryDefinitionOutputBody"); - formatter.field("query_definition_id", &self.query_definition_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutResourcePolicyOutputBody { - ///

    The new policy.

    - #[serde(rename = "resourcePolicy")] - #[serde(default)] - pub resource_policy: std::option::Option, -} -impl std::fmt::Debug for PutResourcePolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutResourcePolicyOutputBody"); - formatter.field("resource_policy", &self.resource_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartQueryOutputBody { - ///

    The unique ID of the query.

    - #[serde(rename = "queryId")] - #[serde(default)] - pub query_id: std::option::Option, -} -impl std::fmt::Debug for StartQueryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartQueryOutputBody"); - formatter.field("query_id", &self.query_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopQueryOutputBody { - ///

    This is true if the query was stopped by the StopQuery operation.

    - #[serde(rename = "success")] - #[serde(default)] - pub success: bool, -} -impl std::fmt::Debug for StopQueryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopQueryOutputBody"); - formatter.field("success", &self.success); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TestMetricFilterOutputBody { - ///

    The matched events.

    - #[serde(rename = "matches")] - #[serde(default)] - pub matches: std::option::Option>, -} -impl std::fmt::Debug for TestMetricFilterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestMetricFilterOutputBody"); - formatter.field("matches", &self.matches); - formatter.finish() - } -} diff --git a/sdk/dynamodb/Cargo.toml b/sdk/dynamodb/Cargo.toml index f293c85d6b96..19dbf837a1e9 100644 --- a/sdk/dynamodb/Cargo.toml +++ b/sdk/dynamodb/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-dynamodb" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon DynamoDB\n\n\n

    Amazon DynamoDB is a fully managed NoSQL database service that provides fast and\n predictable performance with seamless scalability. DynamoDB lets you offload the\n administrative burdens of operating and scaling a distributed database, so that you don't have\n to worry about hardware provisioning, setup and configuration, replication, software patching,\n or cluster scaling.

    \n\n

    With DynamoDB, you can create database tables that can store and retrieve any amount of\n data, and serve any level of request traffic. You can scale up or scale down your tables'\n throughput capacity without downtime or performance degradation, and use the AWS Management\n Console to monitor resource utilization and performance metrics.

    \n\n

    DynamoDB automatically spreads the data and traffic for your tables over a sufficient\n number of servers to handle your throughput and storage requirements, while maintaining\n consistent and fast performance. All of your data is stored on solid state disks (SSDs) and\n automatically replicated across multiple Availability Zones in an AWS region, providing\n built-in high availability and data durability.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -22,21 +22,17 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] +[dependencies.serde_json] version = "1" [dev-dependencies.aws-hyper] path = "..//aws-hyper" diff --git a/sdk/dynamodb/src/aws_json_errors.rs b/sdk/dynamodb/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/dynamodb/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/dynamodb/src/blob_serde.rs b/sdk/dynamodb/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/dynamodb/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/dynamodb/src/client.rs b/sdk/dynamodb/src/client.rs index 8ad72ab1274f..a6d99f62ea0d 100644 --- a/sdk/dynamodb/src/client.rs +++ b/sdk/dynamodb/src/client.rs @@ -986,13 +986,13 @@ pub mod fluent_builders { self } ///

    Represents the settings used to enable server-side encryption.

    - pub fn sse_specification(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification(mut self, input: crate::model::SseSpecification) -> Self { self.inner = self.inner.sse_specification(input); self } pub fn set_sse_specification( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_sse_specification(input); self @@ -3794,13 +3794,13 @@ pub mod fluent_builders { self } ///

    The new server-side encryption settings for the restored table.

    - pub fn sse_specification_override(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification_override(mut self, input: crate::model::SseSpecification) -> Self { self.inner = self.inner.sse_specification_override(input); self } pub fn set_sse_specification_override( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_sse_specification_override(input); self @@ -3958,13 +3958,13 @@ pub mod fluent_builders { self } ///

    The new server-side encryption settings for the restored table.

    - pub fn sse_specification_override(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification_override(mut self, input: crate::model::SseSpecification) -> Self { self.inner = self.inner.sse_specification_override(input); self } pub fn set_sse_specification_override( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_sse_specification_override(input); self @@ -5569,13 +5569,13 @@ pub mod fluent_builders { self } ///

    The new server-side encryption settings for the specified table.

    - pub fn sse_specification(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification(mut self, input: crate::model::SseSpecification) -> Self { self.inner = self.inner.sse_specification(input); self } pub fn set_sse_specification( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_sse_specification(input); self diff --git a/sdk/dynamodb/src/error.rs b/sdk/dynamodb/src/error.rs index 023bd7a47154..c072a774794a 100644 --- a/sdk/dynamodb/src/error.rs +++ b/sdk/dynamodb/src/error.rs @@ -99,10 +99,10 @@ pub struct BatchGetItemError { #[derive(std::fmt::Debug)] pub enum BatchGetItemErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -110,10 +110,10 @@ impl std::fmt::Display for BatchGetItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { BatchGetItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - BatchGetItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - BatchGetItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + BatchGetItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + BatchGetItemErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), BatchGetItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - BatchGetItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + BatchGetItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), BatchGetItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -165,30 +165,36 @@ impl BatchGetItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, BatchGetItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, BatchGetItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + BatchGetItemErrorKind::InvalidEndpointException(_) + ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - BatchGetItemErrorKind::ProvisionedThroughputExceededError(_) + BatchGetItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, BatchGetItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, BatchGetItemErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + BatchGetItemErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for BatchGetItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { BatchGetItemErrorKind::InternalServerError(_inner) => Some(_inner), - BatchGetItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - BatchGetItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + BatchGetItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + BatchGetItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), BatchGetItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - BatchGetItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + BatchGetItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), BatchGetItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -204,11 +210,13 @@ pub struct BatchWriteItemError { #[derive(std::fmt::Debug)] pub enum BatchWriteItemErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -216,11 +224,15 @@ impl std::fmt::Display for BatchWriteItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { BatchWriteItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - BatchWriteItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f), - BatchWriteItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + BatchWriteItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => { + _inner.fmt(f) + } + BatchWriteItemErrorKind::ProvisionedThroughputExceededException(_inner) => { + _inner.fmt(f) + } BatchWriteItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - BatchWriteItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + BatchWriteItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), BatchWriteItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -272,28 +284,31 @@ impl BatchWriteItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, BatchWriteItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, BatchWriteItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + BatchWriteItemErrorKind::InvalidEndpointException(_) + ) } - pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_collection_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededError(_) + BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - BatchWriteItemErrorKind::ProvisionedThroughputExceededError(_) + BatchWriteItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, BatchWriteItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - BatchWriteItemErrorKind::ResourceNotFoundError(_) + BatchWriteItemErrorKind::ResourceNotFoundException(_) ) } } @@ -301,11 +316,13 @@ impl std::error::Error for BatchWriteItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { BatchWriteItemErrorKind::InternalServerError(_inner) => Some(_inner), - BatchWriteItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => Some(_inner), - BatchWriteItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + BatchWriteItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => { + Some(_inner) + } + BatchWriteItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), BatchWriteItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - BatchWriteItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + BatchWriteItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), BatchWriteItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -320,26 +337,26 @@ pub struct CreateBackupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateBackupErrorKind { - BackupInUseError(crate::error::BackupInUseError), - ContinuousBackupsUnavailableError(crate::error::ContinuousBackupsUnavailableError), + BackupInUseException(crate::error::BackupInUseException), + ContinuousBackupsUnavailableException(crate::error::ContinuousBackupsUnavailableException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - TableInUseError(crate::error::TableInUseError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + TableInUseException(crate::error::TableInUseException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateBackupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateBackupErrorKind::BackupInUseError(_inner) => _inner.fmt(f), - CreateBackupErrorKind::ContinuousBackupsUnavailableError(_inner) => _inner.fmt(f), + CreateBackupErrorKind::BackupInUseException(_inner) => _inner.fmt(f), + CreateBackupErrorKind::ContinuousBackupsUnavailableException(_inner) => _inner.fmt(f), CreateBackupErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateBackupErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - CreateBackupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateBackupErrorKind::TableInUseError(_inner) => _inner.fmt(f), - CreateBackupErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + CreateBackupErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + CreateBackupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateBackupErrorKind::TableInUseException(_inner) => _inner.fmt(f), + CreateBackupErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), CreateBackupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -388,41 +405,44 @@ impl CreateBackupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_backup_in_use_error(&self) -> bool { - matches!(&self.kind, CreateBackupErrorKind::BackupInUseError(_)) + pub fn is_backup_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateBackupErrorKind::BackupInUseException(_)) } - pub fn is_continuous_backups_unavailable_error(&self) -> bool { + pub fn is_continuous_backups_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateBackupErrorKind::ContinuousBackupsUnavailableError(_) + CreateBackupErrorKind::ContinuousBackupsUnavailableException(_) ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, CreateBackupErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, CreateBackupErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + CreateBackupErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateBackupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateBackupErrorKind::LimitExceededException(_)) } - pub fn is_table_in_use_error(&self) -> bool { - matches!(&self.kind, CreateBackupErrorKind::TableInUseError(_)) + pub fn is_table_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateBackupErrorKind::TableInUseException(_)) } - pub fn is_table_not_found_error(&self) -> bool { - matches!(&self.kind, CreateBackupErrorKind::TableNotFoundError(_)) + pub fn is_table_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateBackupErrorKind::TableNotFoundException(_)) } } impl std::error::Error for CreateBackupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateBackupErrorKind::BackupInUseError(_inner) => Some(_inner), - CreateBackupErrorKind::ContinuousBackupsUnavailableError(_inner) => Some(_inner), + CreateBackupErrorKind::BackupInUseException(_inner) => Some(_inner), + CreateBackupErrorKind::ContinuousBackupsUnavailableException(_inner) => Some(_inner), CreateBackupErrorKind::InternalServerError(_inner) => Some(_inner), - CreateBackupErrorKind::InvalidEndpointError(_inner) => Some(_inner), - CreateBackupErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateBackupErrorKind::TableInUseError(_inner) => Some(_inner), - CreateBackupErrorKind::TableNotFoundError(_inner) => Some(_inner), + CreateBackupErrorKind::InvalidEndpointException(_inner) => Some(_inner), + CreateBackupErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateBackupErrorKind::TableInUseException(_inner) => Some(_inner), + CreateBackupErrorKind::TableNotFoundException(_inner) => Some(_inner), CreateBackupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -437,22 +457,22 @@ pub struct CreateGlobalTableError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateGlobalTableErrorKind { - GlobalTableAlreadyExistsError(crate::error::GlobalTableAlreadyExistsError), + GlobalTableAlreadyExistsException(crate::error::GlobalTableAlreadyExistsException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateGlobalTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateGlobalTableErrorKind::GlobalTableAlreadyExistsError(_inner) => _inner.fmt(f), + CreateGlobalTableErrorKind::GlobalTableAlreadyExistsException(_inner) => _inner.fmt(f), CreateGlobalTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateGlobalTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - CreateGlobalTableErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateGlobalTableErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + CreateGlobalTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + CreateGlobalTableErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateGlobalTableErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), CreateGlobalTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -501,10 +521,10 @@ impl CreateGlobalTableError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_global_table_already_exists_error(&self) -> bool { + pub fn is_global_table_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateGlobalTableErrorKind::GlobalTableAlreadyExistsError(_) + CreateGlobalTableErrorKind::GlobalTableAlreadyExistsException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -513,33 +533,33 @@ impl CreateGlobalTableError { CreateGlobalTableErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - CreateGlobalTableErrorKind::InvalidEndpointError(_) + CreateGlobalTableErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateGlobalTableErrorKind::LimitExceededError(_) + CreateGlobalTableErrorKind::LimitExceededException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateGlobalTableErrorKind::TableNotFoundError(_) + CreateGlobalTableErrorKind::TableNotFoundException(_) ) } } impl std::error::Error for CreateGlobalTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateGlobalTableErrorKind::GlobalTableAlreadyExistsError(_inner) => Some(_inner), + CreateGlobalTableErrorKind::GlobalTableAlreadyExistsException(_inner) => Some(_inner), CreateGlobalTableErrorKind::InternalServerError(_inner) => Some(_inner), - CreateGlobalTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - CreateGlobalTableErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateGlobalTableErrorKind::TableNotFoundError(_inner) => Some(_inner), + CreateGlobalTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + CreateGlobalTableErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateGlobalTableErrorKind::TableNotFoundException(_inner) => Some(_inner), CreateGlobalTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -555,9 +575,9 @@ pub struct CreateTableError { #[derive(std::fmt::Debug)] pub enum CreateTableErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -565,9 +585,9 @@ impl std::fmt::Display for CreateTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CreateTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - CreateTableErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateTableErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), + CreateTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + CreateTableErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateTableErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), CreateTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -619,23 +639,26 @@ impl CreateTableError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, CreateTableErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, CreateTableErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + CreateTableErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateTableErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateTableErrorKind::LimitExceededException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, CreateTableErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateTableErrorKind::ResourceInUseException(_)) } } impl std::error::Error for CreateTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CreateTableErrorKind::InternalServerError(_inner) => Some(_inner), - CreateTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - CreateTableErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateTableErrorKind::ResourceInUseError(_inner) => Some(_inner), + CreateTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + CreateTableErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateTableErrorKind::ResourceInUseException(_inner) => Some(_inner), CreateTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -650,22 +673,22 @@ pub struct DeleteBackupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteBackupErrorKind { - BackupInUseError(crate::error::BackupInUseError), - BackupNotFoundError(crate::error::BackupNotFoundError), + BackupInUseException(crate::error::BackupInUseException), + BackupNotFoundException(crate::error::BackupNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteBackupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteBackupErrorKind::BackupInUseError(_inner) => _inner.fmt(f), - DeleteBackupErrorKind::BackupNotFoundError(_inner) => _inner.fmt(f), + DeleteBackupErrorKind::BackupInUseException(_inner) => _inner.fmt(f), + DeleteBackupErrorKind::BackupNotFoundException(_inner) => _inner.fmt(f), DeleteBackupErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteBackupErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DeleteBackupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + DeleteBackupErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DeleteBackupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), DeleteBackupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -714,30 +737,36 @@ impl DeleteBackupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_backup_in_use_error(&self) -> bool { - matches!(&self.kind, DeleteBackupErrorKind::BackupInUseError(_)) + pub fn is_backup_in_use_exception(&self) -> bool { + matches!(&self.kind, DeleteBackupErrorKind::BackupInUseException(_)) } - pub fn is_backup_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteBackupErrorKind::BackupNotFoundError(_)) + pub fn is_backup_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteBackupErrorKind::BackupNotFoundException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DeleteBackupErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DeleteBackupErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + DeleteBackupErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteBackupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteBackupErrorKind::LimitExceededException(_)) } } impl std::error::Error for DeleteBackupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteBackupErrorKind::BackupInUseError(_inner) => Some(_inner), - DeleteBackupErrorKind::BackupNotFoundError(_inner) => Some(_inner), + DeleteBackupErrorKind::BackupInUseException(_inner) => Some(_inner), + DeleteBackupErrorKind::BackupNotFoundException(_inner) => Some(_inner), DeleteBackupErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteBackupErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DeleteBackupErrorKind::LimitExceededError(_inner) => Some(_inner), + DeleteBackupErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DeleteBackupErrorKind::LimitExceededException(_inner) => Some(_inner), DeleteBackupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -752,28 +781,30 @@ pub struct DeleteItemError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteItemErrorKind { - ConditionalCheckFailedError(crate::error::ConditionalCheckFailedError), + ConditionalCheckFailedException(crate::error::ConditionalCheckFailedException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionConflictError(crate::error::TransactionConflictError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionConflictException(crate::error::TransactionConflictException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteItemErrorKind::ConditionalCheckFailedError(_inner) => _inner.fmt(f), + DeleteItemErrorKind::ConditionalCheckFailedException(_inner) => _inner.fmt(f), DeleteItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DeleteItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f), - DeleteItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + DeleteItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DeleteItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => _inner.fmt(f), + DeleteItemErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), DeleteItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - DeleteItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteItemErrorKind::TransactionConflictError(_inner) => _inner.fmt(f), + DeleteItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteItemErrorKind::TransactionConflictException(_inner) => _inner.fmt(f), DeleteItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -822,51 +853,57 @@ impl DeleteItemError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conditional_check_failed_error(&self) -> bool { + pub fn is_conditional_check_failed_exception(&self) -> bool { matches!( &self.kind, - DeleteItemErrorKind::ConditionalCheckFailedError(_) + DeleteItemErrorKind::ConditionalCheckFailedException(_) ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DeleteItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DeleteItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, DeleteItemErrorKind::InvalidEndpointException(_)) } - pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_collection_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteItemErrorKind::ItemCollectionSizeLimitExceededError(_) + DeleteItemErrorKind::ItemCollectionSizeLimitExceededException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteItemErrorKind::ProvisionedThroughputExceededError(_) + DeleteItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, DeleteItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteItemErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteItemErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_transaction_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteItemErrorKind::TransactionConflictError(_)) + pub fn is_transaction_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteItemErrorKind::TransactionConflictException(_) + ) } } impl std::error::Error for DeleteItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteItemErrorKind::ConditionalCheckFailedError(_inner) => Some(_inner), + DeleteItemErrorKind::ConditionalCheckFailedException(_inner) => Some(_inner), DeleteItemErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DeleteItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => Some(_inner), - DeleteItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + DeleteItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DeleteItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => Some(_inner), + DeleteItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), DeleteItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - DeleteItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteItemErrorKind::TransactionConflictError(_inner) => Some(_inner), + DeleteItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteItemErrorKind::TransactionConflictException(_inner) => Some(_inner), DeleteItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -882,10 +919,10 @@ pub struct DeleteTableError { #[derive(std::fmt::Debug)] pub enum DeleteTableErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -893,10 +930,10 @@ impl std::fmt::Display for DeleteTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DeleteTableErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteTableErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DeleteTableErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DeleteTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DeleteTableErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteTableErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteTableErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DeleteTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -948,27 +985,33 @@ impl DeleteTableError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DeleteTableErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DeleteTableErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTableErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteTableErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteTableErrorKind::LimitExceededException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, DeleteTableErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, DeleteTableErrorKind::ResourceInUseException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTableErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTableErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for DeleteTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteTableErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DeleteTableErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteTableErrorKind::ResourceInUseError(_inner) => Some(_inner), - DeleteTableErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DeleteTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DeleteTableErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteTableErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteTableErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DeleteTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -983,18 +1026,18 @@ pub struct DescribeBackupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeBackupErrorKind { - BackupNotFoundError(crate::error::BackupNotFoundError), + BackupNotFoundException(crate::error::BackupNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeBackupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeBackupErrorKind::BackupNotFoundError(_inner) => _inner.fmt(f), + DescribeBackupErrorKind::BackupNotFoundException(_inner) => _inner.fmt(f), DescribeBackupErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeBackupErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + DescribeBackupErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), DescribeBackupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1043,22 +1086,28 @@ impl DescribeBackupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_backup_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeBackupErrorKind::BackupNotFoundError(_)) + pub fn is_backup_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeBackupErrorKind::BackupNotFoundException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DescribeBackupErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DescribeBackupErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + DescribeBackupErrorKind::InvalidEndpointException(_) + ) } } impl std::error::Error for DescribeBackupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeBackupErrorKind::BackupNotFoundError(_inner) => Some(_inner), + DescribeBackupErrorKind::BackupNotFoundException(_inner) => Some(_inner), DescribeBackupErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeBackupErrorKind::InvalidEndpointError(_inner) => Some(_inner), + DescribeBackupErrorKind::InvalidEndpointException(_inner) => Some(_inner), DescribeBackupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1074,8 +1123,8 @@ pub struct DescribeContinuousBackupsError { #[derive(std::fmt::Debug)] pub enum DescribeContinuousBackupsErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1083,8 +1132,8 @@ impl std::fmt::Display for DescribeContinuousBackupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeContinuousBackupsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeContinuousBackupsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DescribeContinuousBackupsErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + DescribeContinuousBackupsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DescribeContinuousBackupsErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), DescribeContinuousBackupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1139,16 +1188,16 @@ impl DescribeContinuousBackupsError { DescribeContinuousBackupsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DescribeContinuousBackupsErrorKind::InvalidEndpointError(_) + DescribeContinuousBackupsErrorKind::InvalidEndpointException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeContinuousBackupsErrorKind::TableNotFoundError(_) + DescribeContinuousBackupsErrorKind::TableNotFoundException(_) ) } } @@ -1156,8 +1205,8 @@ impl std::error::Error for DescribeContinuousBackupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeContinuousBackupsErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeContinuousBackupsErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DescribeContinuousBackupsErrorKind::TableNotFoundError(_inner) => Some(_inner), + DescribeContinuousBackupsErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DescribeContinuousBackupsErrorKind::TableNotFoundException(_inner) => Some(_inner), DescribeContinuousBackupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1173,7 +1222,7 @@ pub struct DescribeContributorInsightsError { #[derive(std::fmt::Debug)] pub enum DescribeContributorInsightsErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1181,7 +1230,9 @@ impl std::fmt::Display for DescribeContributorInsightsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeContributorInsightsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeContributorInsightsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeContributorInsightsErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } DescribeContributorInsightsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1236,10 +1287,10 @@ impl DescribeContributorInsightsError { DescribeContributorInsightsErrorKind::InternalServerError(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeContributorInsightsErrorKind::ResourceNotFoundError(_) + DescribeContributorInsightsErrorKind::ResourceNotFoundException(_) ) } } @@ -1247,7 +1298,7 @@ impl std::error::Error for DescribeContributorInsightsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeContributorInsightsErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeContributorInsightsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeContributorInsightsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeContributorInsightsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1334,18 +1385,18 @@ pub struct DescribeExportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeExportErrorKind { - ExportNotFoundError(crate::error::ExportNotFoundError), + ExportNotFoundException(crate::error::ExportNotFoundException), InternalServerError(crate::error::InternalServerError), - LimitExceededError(crate::error::LimitExceededError), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeExportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeExportErrorKind::ExportNotFoundError(_inner) => _inner.fmt(f), + DescribeExportErrorKind::ExportNotFoundException(_inner) => _inner.fmt(f), DescribeExportErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeExportErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + DescribeExportErrorKind::LimitExceededException(_inner) => _inner.fmt(f), DescribeExportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1394,22 +1445,28 @@ impl DescribeExportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_export_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeExportErrorKind::ExportNotFoundError(_)) + pub fn is_export_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeExportErrorKind::ExportNotFoundException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DescribeExportErrorKind::InternalServerError(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DescribeExportErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DescribeExportErrorKind::LimitExceededException(_) + ) } } impl std::error::Error for DescribeExportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeExportErrorKind::ExportNotFoundError(_inner) => Some(_inner), + DescribeExportErrorKind::ExportNotFoundException(_inner) => Some(_inner), DescribeExportErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeExportErrorKind::LimitExceededError(_inner) => Some(_inner), + DescribeExportErrorKind::LimitExceededException(_inner) => Some(_inner), DescribeExportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1424,18 +1481,18 @@ pub struct DescribeGlobalTableError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeGlobalTableErrorKind { - GlobalTableNotFoundError(crate::error::GlobalTableNotFoundError), + GlobalTableNotFoundException(crate::error::GlobalTableNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeGlobalTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeGlobalTableErrorKind::GlobalTableNotFoundError(_inner) => _inner.fmt(f), + DescribeGlobalTableErrorKind::GlobalTableNotFoundException(_inner) => _inner.fmt(f), DescribeGlobalTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeGlobalTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + DescribeGlobalTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), DescribeGlobalTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1484,10 +1541,10 @@ impl DescribeGlobalTableError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_global_table_not_found_error(&self) -> bool { + pub fn is_global_table_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeGlobalTableErrorKind::GlobalTableNotFoundError(_) + DescribeGlobalTableErrorKind::GlobalTableNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -1496,19 +1553,19 @@ impl DescribeGlobalTableError { DescribeGlobalTableErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DescribeGlobalTableErrorKind::InvalidEndpointError(_) + DescribeGlobalTableErrorKind::InvalidEndpointException(_) ) } } impl std::error::Error for DescribeGlobalTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeGlobalTableErrorKind::GlobalTableNotFoundError(_inner) => Some(_inner), + DescribeGlobalTableErrorKind::GlobalTableNotFoundException(_inner) => Some(_inner), DescribeGlobalTableErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeGlobalTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), + DescribeGlobalTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), DescribeGlobalTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1523,18 +1580,20 @@ pub struct DescribeGlobalTableSettingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeGlobalTableSettingsErrorKind { - GlobalTableNotFoundError(crate::error::GlobalTableNotFoundError), + GlobalTableNotFoundException(crate::error::GlobalTableNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeGlobalTableSettingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_inner) => _inner.fmt(f), + DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_inner) => { + _inner.fmt(f) + } DescribeGlobalTableSettingsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeGlobalTableSettingsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + DescribeGlobalTableSettingsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), DescribeGlobalTableSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1583,10 +1642,10 @@ impl DescribeGlobalTableSettingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_global_table_not_found_error(&self) -> bool { + pub fn is_global_table_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_) + DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -1595,19 +1654,21 @@ impl DescribeGlobalTableSettingsError { DescribeGlobalTableSettingsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DescribeGlobalTableSettingsErrorKind::InvalidEndpointError(_) + DescribeGlobalTableSettingsErrorKind::InvalidEndpointException(_) ) } } impl std::error::Error for DescribeGlobalTableSettingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_inner) => Some(_inner), + DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_inner) => { + Some(_inner) + } DescribeGlobalTableSettingsErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeGlobalTableSettingsErrorKind::InvalidEndpointError(_inner) => Some(_inner), + DescribeGlobalTableSettingsErrorKind::InvalidEndpointException(_inner) => Some(_inner), DescribeGlobalTableSettingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1623,8 +1684,8 @@ pub struct DescribeKinesisStreamingDestinationError { #[derive(std::fmt::Debug)] pub enum DescribeKinesisStreamingDestinationErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1634,10 +1695,10 @@ impl std::fmt::Display for DescribeKinesisStreamingDestinationError { DescribeKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { _inner.fmt(f) } - DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } DescribeKinesisStreamingDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1697,16 +1758,16 @@ impl DescribeKinesisStreamingDestinationError { DescribeKinesisStreamingDestinationErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointError(_) + DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_) + DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_) ) } } @@ -1716,10 +1777,10 @@ impl std::error::Error for DescribeKinesisStreamingDestinationError { DescribeKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => { Some(_inner) } - DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { Some(_inner) } - DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } DescribeKinesisStreamingDestinationErrorKind::Unhandled(_inner) => { @@ -1739,7 +1800,7 @@ pub struct DescribeLimitsError { #[derive(std::fmt::Debug)] pub enum DescribeLimitsErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1747,7 +1808,7 @@ impl std::fmt::Display for DescribeLimitsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeLimitsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeLimitsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + DescribeLimitsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), DescribeLimitsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1799,15 +1860,18 @@ impl DescribeLimitsError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DescribeLimitsErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DescribeLimitsErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + DescribeLimitsErrorKind::InvalidEndpointException(_) + ) } } impl std::error::Error for DescribeLimitsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeLimitsErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeLimitsErrorKind::InvalidEndpointError(_inner) => Some(_inner), + DescribeLimitsErrorKind::InvalidEndpointException(_inner) => Some(_inner), DescribeLimitsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1823,8 +1887,8 @@ pub struct DescribeTableError { #[derive(std::fmt::Debug)] pub enum DescribeTableErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1832,8 +1896,8 @@ impl std::fmt::Display for DescribeTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DescribeTableErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DescribeTableErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1885,19 +1949,25 @@ impl DescribeTableError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DescribeTableErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, DescribeTableErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTableErrorKind::InvalidEndpointException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeTableErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTableErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for DescribeTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeTableErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DescribeTableErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DescribeTableErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1913,7 +1983,7 @@ pub struct DescribeTableReplicaAutoScalingError { #[derive(std::fmt::Debug)] pub enum DescribeTableReplicaAutoScalingErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1921,7 +1991,7 @@ impl std::fmt::Display for DescribeTableReplicaAutoScalingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeTableReplicaAutoScalingErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_inner) => { + DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } DescribeTableReplicaAutoScalingErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1978,10 +2048,10 @@ impl DescribeTableReplicaAutoScalingError { DescribeTableReplicaAutoScalingErrorKind::InternalServerError(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_) + DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_) ) } } @@ -1989,7 +2059,9 @@ impl std::error::Error for DescribeTableReplicaAutoScalingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeTableReplicaAutoScalingErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } DescribeTableReplicaAutoScalingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2005,8 +2077,8 @@ pub struct DescribeTimeToLiveError { #[derive(std::fmt::Debug)] pub enum DescribeTimeToLiveErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2014,8 +2086,8 @@ impl std::fmt::Display for DescribeTimeToLiveError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeTimeToLiveErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeTimeToLiveErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - DescribeTimeToLiveErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeTimeToLiveErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + DescribeTimeToLiveErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeTimeToLiveErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2070,16 +2142,16 @@ impl DescribeTimeToLiveError { DescribeTimeToLiveErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DescribeTimeToLiveErrorKind::InvalidEndpointError(_) + DescribeTimeToLiveErrorKind::InvalidEndpointException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeTimeToLiveErrorKind::ResourceNotFoundError(_) + DescribeTimeToLiveErrorKind::ResourceNotFoundException(_) ) } } @@ -2087,8 +2159,8 @@ impl std::error::Error for DescribeTimeToLiveError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeTimeToLiveErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeTimeToLiveErrorKind::InvalidEndpointError(_inner) => Some(_inner), - DescribeTimeToLiveErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeTimeToLiveErrorKind::InvalidEndpointException(_inner) => Some(_inner), + DescribeTimeToLiveErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeTimeToLiveErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2104,10 +2176,10 @@ pub struct DisableKinesisStreamingDestinationError { #[derive(std::fmt::Debug)] pub enum DisableKinesisStreamingDestinationErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2117,16 +2189,16 @@ impl std::fmt::Display for DisableKinesisStreamingDestinationError { DisableKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - DisableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { _inner.fmt(f) } - DisableKinesisStreamingDestinationErrorKind::LimitExceededError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::LimitExceededException(_inner) => { _inner.fmt(f) } - DisableKinesisStreamingDestinationErrorKind::ResourceInUseError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::ResourceInUseException(_inner) => { _inner.fmt(f) } - DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } DisableKinesisStreamingDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2186,28 +2258,28 @@ impl DisableKinesisStreamingDestinationError { DisableKinesisStreamingDestinationErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - DisableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_) + DisableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DisableKinesisStreamingDestinationErrorKind::LimitExceededError(_) + DisableKinesisStreamingDestinationErrorKind::LimitExceededException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - DisableKinesisStreamingDestinationErrorKind::ResourceInUseError(_) + DisableKinesisStreamingDestinationErrorKind::ResourceInUseException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_) + DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_) ) } } @@ -2217,12 +2289,16 @@ impl std::error::Error for DisableKinesisStreamingDestinationError { DisableKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => { Some(_inner) } - DisableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { + Some(_inner) + } + DisableKinesisStreamingDestinationErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + DisableKinesisStreamingDestinationErrorKind::ResourceInUseException(_inner) => { Some(_inner) } - DisableKinesisStreamingDestinationErrorKind::LimitExceededError(_inner) => Some(_inner), - DisableKinesisStreamingDestinationErrorKind::ResourceInUseError(_inner) => Some(_inner), - DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } DisableKinesisStreamingDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2240,10 +2316,10 @@ pub struct EnableKinesisStreamingDestinationError { #[derive(std::fmt::Debug)] pub enum EnableKinesisStreamingDestinationErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2253,12 +2329,16 @@ impl std::fmt::Display for EnableKinesisStreamingDestinationError { EnableKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - EnableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + EnableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { + _inner.fmt(f) + } + EnableKinesisStreamingDestinationErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + EnableKinesisStreamingDestinationErrorKind::ResourceInUseException(_inner) => { _inner.fmt(f) } - EnableKinesisStreamingDestinationErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - EnableKinesisStreamingDestinationErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } EnableKinesisStreamingDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2318,28 +2398,28 @@ impl EnableKinesisStreamingDestinationError { EnableKinesisStreamingDestinationErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - EnableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_) + EnableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - EnableKinesisStreamingDestinationErrorKind::LimitExceededError(_) + EnableKinesisStreamingDestinationErrorKind::LimitExceededException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - EnableKinesisStreamingDestinationErrorKind::ResourceInUseError(_) + EnableKinesisStreamingDestinationErrorKind::ResourceInUseException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_) + EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_) ) } } @@ -2347,12 +2427,16 @@ impl std::error::Error for EnableKinesisStreamingDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { EnableKinesisStreamingDestinationErrorKind::InternalServerError(_inner) => Some(_inner), - EnableKinesisStreamingDestinationErrorKind::InvalidEndpointError(_inner) => { + EnableKinesisStreamingDestinationErrorKind::InvalidEndpointException(_inner) => { Some(_inner) } - EnableKinesisStreamingDestinationErrorKind::LimitExceededError(_inner) => Some(_inner), - EnableKinesisStreamingDestinationErrorKind::ResourceInUseError(_inner) => Some(_inner), - EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(_inner) => { + EnableKinesisStreamingDestinationErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + EnableKinesisStreamingDestinationErrorKind::ResourceInUseException(_inner) => { + Some(_inner) + } + EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } EnableKinesisStreamingDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2369,30 +2453,34 @@ pub struct ExecuteStatementError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteStatementErrorKind { - ConditionalCheckFailedError(crate::error::ConditionalCheckFailedError), - DuplicateItemError(crate::error::DuplicateItemError), + ConditionalCheckFailedException(crate::error::ConditionalCheckFailedException), + DuplicateItemException(crate::error::DuplicateItemException), InternalServerError(crate::error::InternalServerError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionConflictError(crate::error::TransactionConflictError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionConflictException(crate::error::TransactionConflictException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExecuteStatementError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteStatementErrorKind::ConditionalCheckFailedError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::DuplicateItemError(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::ConditionalCheckFailedException(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::DuplicateItemException(_inner) => _inner.fmt(f), ExecuteStatementErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededError(_inner) => { + ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededException(_inner) => { + _inner.fmt(f) + } + ExecuteStatementErrorKind::ProvisionedThroughputExceededException(_inner) => { _inner.fmt(f) } - ExecuteStatementErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), ExecuteStatementErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::TransactionConflictError(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::TransactionConflictException(_inner) => _inner.fmt(f), ExecuteStatementErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2441,14 +2529,17 @@ impl ExecuteStatementError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conditional_check_failed_error(&self) -> bool { + pub fn is_conditional_check_failed_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::ConditionalCheckFailedError(_) + ExecuteStatementErrorKind::ConditionalCheckFailedException(_) ) } - pub fn is_duplicate_item_error(&self) -> bool { - matches!(&self.kind, ExecuteStatementErrorKind::DuplicateItemError(_)) + pub fn is_duplicate_item_exception(&self) -> bool { + matches!( + &self.kind, + ExecuteStatementErrorKind::DuplicateItemException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!( @@ -2456,16 +2547,16 @@ impl ExecuteStatementError { ExecuteStatementErrorKind::InternalServerError(_) ) } - pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_collection_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededError(_) + ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::ProvisionedThroughputExceededError(_) + ExecuteStatementErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { @@ -2474,30 +2565,34 @@ impl ExecuteStatementError { ExecuteStatementErrorKind::RequestLimitExceeded(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::ResourceNotFoundError(_) + ExecuteStatementErrorKind::ResourceNotFoundException(_) ) } - pub fn is_transaction_conflict_error(&self) -> bool { + pub fn is_transaction_conflict_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::TransactionConflictError(_) + ExecuteStatementErrorKind::TransactionConflictException(_) ) } } impl std::error::Error for ExecuteStatementError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteStatementErrorKind::ConditionalCheckFailedError(_inner) => Some(_inner), - ExecuteStatementErrorKind::DuplicateItemError(_inner) => Some(_inner), + ExecuteStatementErrorKind::ConditionalCheckFailedException(_inner) => Some(_inner), + ExecuteStatementErrorKind::DuplicateItemException(_inner) => Some(_inner), ExecuteStatementErrorKind::InternalServerError(_inner) => Some(_inner), - ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededError(_inner) => Some(_inner), - ExecuteStatementErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededException(_inner) => { + Some(_inner) + } + ExecuteStatementErrorKind::ProvisionedThroughputExceededException(_inner) => { + Some(_inner) + } ExecuteStatementErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - ExecuteStatementErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ExecuteStatementErrorKind::TransactionConflictError(_inner) => Some(_inner), + ExecuteStatementErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ExecuteStatementErrorKind::TransactionConflictException(_inner) => Some(_inner), ExecuteStatementErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2512,28 +2607,30 @@ pub struct ExecuteTransactionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteTransactionErrorKind { - IdempotentParameterMismatchError(crate::error::IdempotentParameterMismatchError), + IdempotentParameterMismatchException(crate::error::IdempotentParameterMismatchException), InternalServerError(crate::error::InternalServerError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionCanceledError(crate::error::TransactionCanceledError), - TransactionInProgressError(crate::error::TransactionInProgressError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionCanceledException(crate::error::TransactionCanceledException), + TransactionInProgressException(crate::error::TransactionInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExecuteTransactionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteTransactionErrorKind::IdempotentParameterMismatchError(_inner) => _inner.fmt(f), + ExecuteTransactionErrorKind::IdempotentParameterMismatchException(_inner) => { + _inner.fmt(f) + } ExecuteTransactionErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ExecuteTransactionErrorKind::ProvisionedThroughputExceededError(_inner) => { + ExecuteTransactionErrorKind::ProvisionedThroughputExceededException(_inner) => { _inner.fmt(f) } ExecuteTransactionErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - ExecuteTransactionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ExecuteTransactionErrorKind::TransactionCanceledError(_inner) => _inner.fmt(f), - ExecuteTransactionErrorKind::TransactionInProgressError(_inner) => _inner.fmt(f), + ExecuteTransactionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ExecuteTransactionErrorKind::TransactionCanceledException(_inner) => _inner.fmt(f), + ExecuteTransactionErrorKind::TransactionInProgressException(_inner) => _inner.fmt(f), ExecuteTransactionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2582,10 +2679,10 @@ impl ExecuteTransactionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_idempotent_parameter_mismatch_error(&self) -> bool { + pub fn is_idempotent_parameter_mismatch_exception(&self) -> bool { matches!( &self.kind, - ExecuteTransactionErrorKind::IdempotentParameterMismatchError(_) + ExecuteTransactionErrorKind::IdempotentParameterMismatchException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -2594,10 +2691,10 @@ impl ExecuteTransactionError { ExecuteTransactionErrorKind::InternalServerError(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - ExecuteTransactionErrorKind::ProvisionedThroughputExceededError(_) + ExecuteTransactionErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { @@ -2606,35 +2703,39 @@ impl ExecuteTransactionError { ExecuteTransactionErrorKind::RequestLimitExceeded(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ExecuteTransactionErrorKind::ResourceNotFoundError(_) + ExecuteTransactionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_transaction_canceled_error(&self) -> bool { + pub fn is_transaction_canceled_exception(&self) -> bool { matches!( &self.kind, - ExecuteTransactionErrorKind::TransactionCanceledError(_) + ExecuteTransactionErrorKind::TransactionCanceledException(_) ) } - pub fn is_transaction_in_progress_error(&self) -> bool { + pub fn is_transaction_in_progress_exception(&self) -> bool { matches!( &self.kind, - ExecuteTransactionErrorKind::TransactionInProgressError(_) + ExecuteTransactionErrorKind::TransactionInProgressException(_) ) } } impl std::error::Error for ExecuteTransactionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteTransactionErrorKind::IdempotentParameterMismatchError(_inner) => Some(_inner), + ExecuteTransactionErrorKind::IdempotentParameterMismatchException(_inner) => { + Some(_inner) + } ExecuteTransactionErrorKind::InternalServerError(_inner) => Some(_inner), - ExecuteTransactionErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + ExecuteTransactionErrorKind::ProvisionedThroughputExceededException(_inner) => { + Some(_inner) + } ExecuteTransactionErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - ExecuteTransactionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ExecuteTransactionErrorKind::TransactionCanceledError(_inner) => Some(_inner), - ExecuteTransactionErrorKind::TransactionInProgressError(_inner) => Some(_inner), + ExecuteTransactionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ExecuteTransactionErrorKind::TransactionCanceledException(_inner) => Some(_inner), + ExecuteTransactionErrorKind::TransactionInProgressException(_inner) => Some(_inner), ExecuteTransactionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2649,26 +2750,26 @@ pub struct ExportTableToPointInTimeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExportTableToPointInTimeErrorKind { - ExportConflictError(crate::error::ExportConflictError), + ExportConflictException(crate::error::ExportConflictException), InternalServerError(crate::error::InternalServerError), - InvalidExportTimeError(crate::error::InvalidExportTimeError), - LimitExceededError(crate::error::LimitExceededError), - PointInTimeRecoveryUnavailableError(crate::error::PointInTimeRecoveryUnavailableError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidExportTimeException(crate::error::InvalidExportTimeException), + LimitExceededException(crate::error::LimitExceededException), + PointInTimeRecoveryUnavailableException(crate::error::PointInTimeRecoveryUnavailableException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExportTableToPointInTimeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExportTableToPointInTimeErrorKind::ExportConflictError(_inner) => _inner.fmt(f), + ExportTableToPointInTimeErrorKind::ExportConflictException(_inner) => _inner.fmt(f), ExportTableToPointInTimeErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ExportTableToPointInTimeErrorKind::InvalidExportTimeError(_inner) => _inner.fmt(f), - ExportTableToPointInTimeErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_inner) => { + ExportTableToPointInTimeErrorKind::InvalidExportTimeException(_inner) => _inner.fmt(f), + ExportTableToPointInTimeErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_inner) => { _inner.fmt(f) } - ExportTableToPointInTimeErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + ExportTableToPointInTimeErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), ExportTableToPointInTimeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2717,10 +2818,10 @@ impl ExportTableToPointInTimeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_export_conflict_error(&self) -> bool { + pub fn is_export_conflict_exception(&self) -> bool { matches!( &self.kind, - ExportTableToPointInTimeErrorKind::ExportConflictError(_) + ExportTableToPointInTimeErrorKind::ExportConflictException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -2729,42 +2830,42 @@ impl ExportTableToPointInTimeError { ExportTableToPointInTimeErrorKind::InternalServerError(_) ) } - pub fn is_invalid_export_time_error(&self) -> bool { + pub fn is_invalid_export_time_exception(&self) -> bool { matches!( &self.kind, - ExportTableToPointInTimeErrorKind::InvalidExportTimeError(_) + ExportTableToPointInTimeErrorKind::InvalidExportTimeException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ExportTableToPointInTimeErrorKind::LimitExceededError(_) + ExportTableToPointInTimeErrorKind::LimitExceededException(_) ) } - pub fn is_point_in_time_recovery_unavailable_error(&self) -> bool { + pub fn is_point_in_time_recovery_unavailable_exception(&self) -> bool { matches!( &self.kind, - ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_) + ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - ExportTableToPointInTimeErrorKind::TableNotFoundError(_) + ExportTableToPointInTimeErrorKind::TableNotFoundException(_) ) } } impl std::error::Error for ExportTableToPointInTimeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExportTableToPointInTimeErrorKind::ExportConflictError(_inner) => Some(_inner), + ExportTableToPointInTimeErrorKind::ExportConflictException(_inner) => Some(_inner), ExportTableToPointInTimeErrorKind::InternalServerError(_inner) => Some(_inner), - ExportTableToPointInTimeErrorKind::InvalidExportTimeError(_inner) => Some(_inner), - ExportTableToPointInTimeErrorKind::LimitExceededError(_inner) => Some(_inner), - ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_inner) => { + ExportTableToPointInTimeErrorKind::InvalidExportTimeException(_inner) => Some(_inner), + ExportTableToPointInTimeErrorKind::LimitExceededException(_inner) => Some(_inner), + ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_inner) => { Some(_inner) } - ExportTableToPointInTimeErrorKind::TableNotFoundError(_inner) => Some(_inner), + ExportTableToPointInTimeErrorKind::TableNotFoundException(_inner) => Some(_inner), ExportTableToPointInTimeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2780,10 +2881,10 @@ pub struct GetItemError { #[derive(std::fmt::Debug)] pub enum GetItemErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2791,10 +2892,10 @@ impl std::fmt::Display for GetItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - GetItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - GetItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + GetItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + GetItemErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), GetItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - GetItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + GetItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), GetItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2846,30 +2947,30 @@ impl GetItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, GetItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, GetItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, GetItemErrorKind::InvalidEndpointException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - GetItemErrorKind::ProvisionedThroughputExceededError(_) + GetItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, GetItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetItemErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, GetItemErrorKind::ResourceNotFoundException(_)) } } impl std::error::Error for GetItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetItemErrorKind::InternalServerError(_inner) => Some(_inner), - GetItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - GetItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + GetItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + GetItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), GetItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - GetItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + GetItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), GetItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2885,7 +2986,7 @@ pub struct ListBackupsError { #[derive(std::fmt::Debug)] pub enum ListBackupsErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2893,7 +2994,7 @@ impl std::fmt::Display for ListBackupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListBackupsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListBackupsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + ListBackupsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), ListBackupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2945,15 +3046,18 @@ impl ListBackupsError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ListBackupsErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, ListBackupsErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + ListBackupsErrorKind::InvalidEndpointException(_) + ) } } impl std::error::Error for ListBackupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListBackupsErrorKind::InternalServerError(_inner) => Some(_inner), - ListBackupsErrorKind::InvalidEndpointError(_inner) => Some(_inner), + ListBackupsErrorKind::InvalidEndpointException(_inner) => Some(_inner), ListBackupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2969,7 +3073,7 @@ pub struct ListContributorInsightsError { #[derive(std::fmt::Debug)] pub enum ListContributorInsightsErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2977,7 +3081,7 @@ impl std::fmt::Display for ListContributorInsightsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListContributorInsightsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListContributorInsightsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListContributorInsightsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListContributorInsightsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3032,10 +3136,10 @@ impl ListContributorInsightsError { ListContributorInsightsErrorKind::InternalServerError(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListContributorInsightsErrorKind::ResourceNotFoundError(_) + ListContributorInsightsErrorKind::ResourceNotFoundException(_) ) } } @@ -3043,7 +3147,7 @@ impl std::error::Error for ListContributorInsightsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListContributorInsightsErrorKind::InternalServerError(_inner) => Some(_inner), - ListContributorInsightsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListContributorInsightsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListContributorInsightsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3059,7 +3163,7 @@ pub struct ListExportsError { #[derive(std::fmt::Debug)] pub enum ListExportsErrorKind { InternalServerError(crate::error::InternalServerError), - LimitExceededError(crate::error::LimitExceededError), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3067,7 +3171,7 @@ impl std::fmt::Display for ListExportsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListExportsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListExportsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + ListExportsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), ListExportsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3119,15 +3223,15 @@ impl ListExportsError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ListExportsErrorKind::InternalServerError(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ListExportsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, ListExportsErrorKind::LimitExceededException(_)) } } impl std::error::Error for ListExportsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListExportsErrorKind::InternalServerError(_inner) => Some(_inner), - ListExportsErrorKind::LimitExceededError(_inner) => Some(_inner), + ListExportsErrorKind::LimitExceededException(_inner) => Some(_inner), ListExportsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3143,7 +3247,7 @@ pub struct ListGlobalTablesError { #[derive(std::fmt::Debug)] pub enum ListGlobalTablesErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3151,7 +3255,7 @@ impl std::fmt::Display for ListGlobalTablesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListGlobalTablesErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListGlobalTablesErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + ListGlobalTablesErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), ListGlobalTablesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3206,10 +3310,10 @@ impl ListGlobalTablesError { ListGlobalTablesErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - ListGlobalTablesErrorKind::InvalidEndpointError(_) + ListGlobalTablesErrorKind::InvalidEndpointException(_) ) } } @@ -3217,7 +3321,7 @@ impl std::error::Error for ListGlobalTablesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListGlobalTablesErrorKind::InternalServerError(_inner) => Some(_inner), - ListGlobalTablesErrorKind::InvalidEndpointError(_inner) => Some(_inner), + ListGlobalTablesErrorKind::InvalidEndpointException(_inner) => Some(_inner), ListGlobalTablesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3233,7 +3337,7 @@ pub struct ListTablesError { #[derive(std::fmt::Debug)] pub enum ListTablesErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), + InvalidEndpointException(crate::error::InvalidEndpointException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3241,7 +3345,7 @@ impl std::fmt::Display for ListTablesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListTablesErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListTablesErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), + ListTablesErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), ListTablesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3293,15 +3397,15 @@ impl ListTablesError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ListTablesErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, ListTablesErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, ListTablesErrorKind::InvalidEndpointException(_)) } } impl std::error::Error for ListTablesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListTablesErrorKind::InternalServerError(_inner) => Some(_inner), - ListTablesErrorKind::InvalidEndpointError(_inner) => Some(_inner), + ListTablesErrorKind::InvalidEndpointException(_inner) => Some(_inner), ListTablesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3317,8 +3421,8 @@ pub struct ListTagsOfResourceError { #[derive(std::fmt::Debug)] pub enum ListTagsOfResourceErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3326,8 +3430,8 @@ impl std::fmt::Display for ListTagsOfResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListTagsOfResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListTagsOfResourceErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - ListTagsOfResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListTagsOfResourceErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + ListTagsOfResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListTagsOfResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3382,16 +3486,16 @@ impl ListTagsOfResourceError { ListTagsOfResourceErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - ListTagsOfResourceErrorKind::InvalidEndpointError(_) + ListTagsOfResourceErrorKind::InvalidEndpointException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsOfResourceErrorKind::ResourceNotFoundError(_) + ListTagsOfResourceErrorKind::ResourceNotFoundException(_) ) } } @@ -3399,8 +3503,8 @@ impl std::error::Error for ListTagsOfResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListTagsOfResourceErrorKind::InternalServerError(_inner) => Some(_inner), - ListTagsOfResourceErrorKind::InvalidEndpointError(_inner) => Some(_inner), - ListTagsOfResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListTagsOfResourceErrorKind::InvalidEndpointException(_inner) => Some(_inner), + ListTagsOfResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListTagsOfResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3415,28 +3519,30 @@ pub struct PutItemError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutItemErrorKind { - ConditionalCheckFailedError(crate::error::ConditionalCheckFailedError), + ConditionalCheckFailedException(crate::error::ConditionalCheckFailedException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionConflictError(crate::error::TransactionConflictError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionConflictException(crate::error::TransactionConflictException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutItemErrorKind::ConditionalCheckFailedError(_inner) => _inner.fmt(f), + PutItemErrorKind::ConditionalCheckFailedException(_inner) => _inner.fmt(f), PutItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - PutItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - PutItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f), - PutItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + PutItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + PutItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => _inner.fmt(f), + PutItemErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), PutItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - PutItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutItemErrorKind::TransactionConflictError(_inner) => _inner.fmt(f), + PutItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutItemErrorKind::TransactionConflictException(_inner) => _inner.fmt(f), PutItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3485,48 +3591,54 @@ impl PutItemError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conditional_check_failed_error(&self) -> bool { - matches!(&self.kind, PutItemErrorKind::ConditionalCheckFailedError(_)) + pub fn is_conditional_check_failed_exception(&self) -> bool { + matches!( + &self.kind, + PutItemErrorKind::ConditionalCheckFailedException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, PutItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, PutItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, PutItemErrorKind::InvalidEndpointException(_)) } - pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_collection_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutItemErrorKind::ItemCollectionSizeLimitExceededError(_) + PutItemErrorKind::ItemCollectionSizeLimitExceededException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutItemErrorKind::ProvisionedThroughputExceededError(_) + PutItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, PutItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, PutItemErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, PutItemErrorKind::ResourceNotFoundException(_)) } - pub fn is_transaction_conflict_error(&self) -> bool { - matches!(&self.kind, PutItemErrorKind::TransactionConflictError(_)) + pub fn is_transaction_conflict_exception(&self) -> bool { + matches!( + &self.kind, + PutItemErrorKind::TransactionConflictException(_) + ) } } impl std::error::Error for PutItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutItemErrorKind::ConditionalCheckFailedError(_inner) => Some(_inner), + PutItemErrorKind::ConditionalCheckFailedException(_inner) => Some(_inner), PutItemErrorKind::InternalServerError(_inner) => Some(_inner), - PutItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - PutItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => Some(_inner), - PutItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + PutItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + PutItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => Some(_inner), + PutItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), PutItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - PutItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutItemErrorKind::TransactionConflictError(_inner) => Some(_inner), + PutItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutItemErrorKind::TransactionConflictException(_inner) => Some(_inner), PutItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3542,10 +3654,10 @@ pub struct QueryError { #[derive(std::fmt::Debug)] pub enum QueryErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3553,10 +3665,10 @@ impl std::fmt::Display for QueryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { QueryErrorKind::InternalServerError(_inner) => _inner.fmt(f), - QueryErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - QueryErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + QueryErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + QueryErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), QueryErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - QueryErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + QueryErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), QueryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3608,30 +3720,30 @@ impl QueryError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, QueryErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, QueryErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, QueryErrorKind::InvalidEndpointException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - QueryErrorKind::ProvisionedThroughputExceededError(_) + QueryErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, QueryErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, QueryErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, QueryErrorKind::ResourceNotFoundException(_)) } } impl std::error::Error for QueryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { QueryErrorKind::InternalServerError(_inner) => Some(_inner), - QueryErrorKind::InvalidEndpointError(_inner) => Some(_inner), - QueryErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + QueryErrorKind::InvalidEndpointException(_inner) => Some(_inner), + QueryErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), QueryErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - QueryErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + QueryErrorKind::ResourceNotFoundException(_inner) => Some(_inner), QueryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3646,26 +3758,26 @@ pub struct RestoreTableFromBackupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RestoreTableFromBackupErrorKind { - BackupInUseError(crate::error::BackupInUseError), - BackupNotFoundError(crate::error::BackupNotFoundError), + BackupInUseException(crate::error::BackupInUseException), + BackupNotFoundException(crate::error::BackupNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - TableAlreadyExistsError(crate::error::TableAlreadyExistsError), - TableInUseError(crate::error::TableInUseError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + TableAlreadyExistsException(crate::error::TableAlreadyExistsException), + TableInUseException(crate::error::TableInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RestoreTableFromBackupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RestoreTableFromBackupErrorKind::BackupInUseError(_inner) => _inner.fmt(f), - RestoreTableFromBackupErrorKind::BackupNotFoundError(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::BackupInUseException(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::BackupNotFoundException(_inner) => _inner.fmt(f), RestoreTableFromBackupErrorKind::InternalServerError(_inner) => _inner.fmt(f), - RestoreTableFromBackupErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - RestoreTableFromBackupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RestoreTableFromBackupErrorKind::TableAlreadyExistsError(_inner) => _inner.fmt(f), - RestoreTableFromBackupErrorKind::TableInUseError(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::TableAlreadyExistsException(_inner) => _inner.fmt(f), + RestoreTableFromBackupErrorKind::TableInUseException(_inner) => _inner.fmt(f), RestoreTableFromBackupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3714,16 +3826,16 @@ impl RestoreTableFromBackupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_backup_in_use_error(&self) -> bool { + pub fn is_backup_in_use_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::BackupInUseError(_) + RestoreTableFromBackupErrorKind::BackupInUseException(_) ) } - pub fn is_backup_not_found_error(&self) -> bool { + pub fn is_backup_not_found_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::BackupNotFoundError(_) + RestoreTableFromBackupErrorKind::BackupNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -3732,41 +3844,41 @@ impl RestoreTableFromBackupError { RestoreTableFromBackupErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::InvalidEndpointError(_) + RestoreTableFromBackupErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::LimitExceededError(_) + RestoreTableFromBackupErrorKind::LimitExceededException(_) ) } - pub fn is_table_already_exists_error(&self) -> bool { + pub fn is_table_already_exists_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::TableAlreadyExistsError(_) + RestoreTableFromBackupErrorKind::TableAlreadyExistsException(_) ) } - pub fn is_table_in_use_error(&self) -> bool { + pub fn is_table_in_use_exception(&self) -> bool { matches!( &self.kind, - RestoreTableFromBackupErrorKind::TableInUseError(_) + RestoreTableFromBackupErrorKind::TableInUseException(_) ) } } impl std::error::Error for RestoreTableFromBackupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RestoreTableFromBackupErrorKind::BackupInUseError(_inner) => Some(_inner), - RestoreTableFromBackupErrorKind::BackupNotFoundError(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::BackupInUseException(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::BackupNotFoundException(_inner) => Some(_inner), RestoreTableFromBackupErrorKind::InternalServerError(_inner) => Some(_inner), - RestoreTableFromBackupErrorKind::InvalidEndpointError(_inner) => Some(_inner), - RestoreTableFromBackupErrorKind::LimitExceededError(_inner) => Some(_inner), - RestoreTableFromBackupErrorKind::TableAlreadyExistsError(_inner) => Some(_inner), - RestoreTableFromBackupErrorKind::TableInUseError(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::InvalidEndpointException(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::LimitExceededException(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::TableAlreadyExistsException(_inner) => Some(_inner), + RestoreTableFromBackupErrorKind::TableInUseException(_inner) => Some(_inner), RestoreTableFromBackupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3782,13 +3894,13 @@ pub struct RestoreTableToPointInTimeError { #[derive(std::fmt::Debug)] pub enum RestoreTableToPointInTimeErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - InvalidRestoreTimeError(crate::error::InvalidRestoreTimeError), - LimitExceededError(crate::error::LimitExceededError), - PointInTimeRecoveryUnavailableError(crate::error::PointInTimeRecoveryUnavailableError), - TableAlreadyExistsError(crate::error::TableAlreadyExistsError), - TableInUseError(crate::error::TableInUseError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + InvalidRestoreTimeException(crate::error::InvalidRestoreTimeException), + LimitExceededException(crate::error::LimitExceededException), + PointInTimeRecoveryUnavailableException(crate::error::PointInTimeRecoveryUnavailableException), + TableAlreadyExistsException(crate::error::TableAlreadyExistsException), + TableInUseException(crate::error::TableInUseException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3796,15 +3908,19 @@ impl std::fmt::Display for RestoreTableToPointInTimeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { RestoreTableToPointInTimeErrorKind::InternalServerError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_inner) => { + RestoreTableToPointInTimeErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeException(_inner) => { + _inner.fmt(f) + } + RestoreTableToPointInTimeErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_inner) => { + _inner.fmt(f) + } + RestoreTableToPointInTimeErrorKind::TableAlreadyExistsException(_inner) => { _inner.fmt(f) } - RestoreTableToPointInTimeErrorKind::TableAlreadyExistsError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::TableInUseError(_inner) => _inner.fmt(f), - RestoreTableToPointInTimeErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + RestoreTableToPointInTimeErrorKind::TableInUseException(_inner) => _inner.fmt(f), + RestoreTableToPointInTimeErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), RestoreTableToPointInTimeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3859,46 +3975,46 @@ impl RestoreTableToPointInTimeError { RestoreTableToPointInTimeErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::InvalidEndpointError(_) + RestoreTableToPointInTimeErrorKind::InvalidEndpointException(_) ) } - pub fn is_invalid_restore_time_error(&self) -> bool { + pub fn is_invalid_restore_time_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeError(_) + RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::LimitExceededError(_) + RestoreTableToPointInTimeErrorKind::LimitExceededException(_) ) } - pub fn is_point_in_time_recovery_unavailable_error(&self) -> bool { + pub fn is_point_in_time_recovery_unavailable_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_) + RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_) ) } - pub fn is_table_already_exists_error(&self) -> bool { + pub fn is_table_already_exists_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::TableAlreadyExistsError(_) + RestoreTableToPointInTimeErrorKind::TableAlreadyExistsException(_) ) } - pub fn is_table_in_use_error(&self) -> bool { + pub fn is_table_in_use_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::TableInUseError(_) + RestoreTableToPointInTimeErrorKind::TableInUseException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - RestoreTableToPointInTimeErrorKind::TableNotFoundError(_) + RestoreTableToPointInTimeErrorKind::TableNotFoundException(_) ) } } @@ -3906,15 +4022,15 @@ impl std::error::Error for RestoreTableToPointInTimeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { RestoreTableToPointInTimeErrorKind::InternalServerError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::InvalidEndpointError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::LimitExceededError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(_inner) => { + RestoreTableToPointInTimeErrorKind::InvalidEndpointException(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeException(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::LimitExceededException(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(_inner) => { Some(_inner) } - RestoreTableToPointInTimeErrorKind::TableAlreadyExistsError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::TableInUseError(_inner) => Some(_inner), - RestoreTableToPointInTimeErrorKind::TableNotFoundError(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::TableAlreadyExistsException(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::TableInUseException(_inner) => Some(_inner), + RestoreTableToPointInTimeErrorKind::TableNotFoundException(_inner) => Some(_inner), RestoreTableToPointInTimeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3930,10 +4046,10 @@ pub struct ScanError { #[derive(std::fmt::Debug)] pub enum ScanErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3941,10 +4057,10 @@ impl std::fmt::Display for ScanError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ScanErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ScanErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - ScanErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + ScanErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + ScanErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), ScanErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - ScanErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ScanErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ScanErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3996,30 +4112,30 @@ impl ScanError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ScanErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, ScanErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, ScanErrorKind::InvalidEndpointException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - ScanErrorKind::ProvisionedThroughputExceededError(_) + ScanErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, ScanErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, ScanErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, ScanErrorKind::ResourceNotFoundException(_)) } } impl std::error::Error for ScanError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ScanErrorKind::InternalServerError(_inner) => Some(_inner), - ScanErrorKind::InvalidEndpointError(_inner) => Some(_inner), - ScanErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + ScanErrorKind::InvalidEndpointException(_inner) => Some(_inner), + ScanErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), ScanErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - ScanErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ScanErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ScanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4035,10 +4151,10 @@ pub struct TagResourceError { #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -4046,10 +4162,10 @@ impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { TagResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f), - TagResourceErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - TagResourceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + TagResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4101,27 +4217,33 @@ impl TagResourceError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, TagResourceErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::LimitExceededException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ResourceInUseException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { TagResourceErrorKind::InternalServerError(_inner) => Some(_inner), - TagResourceErrorKind::InvalidEndpointError(_inner) => Some(_inner), - TagResourceErrorKind::LimitExceededError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceInUseError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + TagResourceErrorKind::InvalidEndpointException(_inner) => Some(_inner), + TagResourceErrorKind::LimitExceededException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceInUseException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4137,11 +4259,11 @@ pub struct TransactGetItemsError { #[derive(std::fmt::Debug)] pub enum TransactGetItemsErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionCanceledError(crate::error::TransactionCanceledError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionCanceledException(crate::error::TransactionCanceledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -4149,11 +4271,13 @@ impl std::fmt::Display for TransactGetItemsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { TransactGetItemsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - TransactGetItemsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - TransactGetItemsErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + TransactGetItemsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + TransactGetItemsErrorKind::ProvisionedThroughputExceededException(_inner) => { + _inner.fmt(f) + } TransactGetItemsErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - TransactGetItemsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - TransactGetItemsErrorKind::TransactionCanceledError(_inner) => _inner.fmt(f), + TransactGetItemsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TransactGetItemsErrorKind::TransactionCanceledException(_inner) => _inner.fmt(f), TransactGetItemsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4208,16 +4332,16 @@ impl TransactGetItemsError { TransactGetItemsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - TransactGetItemsErrorKind::InvalidEndpointError(_) + TransactGetItemsErrorKind::InvalidEndpointException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - TransactGetItemsErrorKind::ProvisionedThroughputExceededError(_) + TransactGetItemsErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { @@ -4226,16 +4350,16 @@ impl TransactGetItemsError { TransactGetItemsErrorKind::RequestLimitExceeded(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - TransactGetItemsErrorKind::ResourceNotFoundError(_) + TransactGetItemsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_transaction_canceled_error(&self) -> bool { + pub fn is_transaction_canceled_exception(&self) -> bool { matches!( &self.kind, - TransactGetItemsErrorKind::TransactionCanceledError(_) + TransactGetItemsErrorKind::TransactionCanceledException(_) ) } } @@ -4243,11 +4367,13 @@ impl std::error::Error for TransactGetItemsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { TransactGetItemsErrorKind::InternalServerError(_inner) => Some(_inner), - TransactGetItemsErrorKind::InvalidEndpointError(_inner) => Some(_inner), - TransactGetItemsErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + TransactGetItemsErrorKind::InvalidEndpointException(_inner) => Some(_inner), + TransactGetItemsErrorKind::ProvisionedThroughputExceededException(_inner) => { + Some(_inner) + } TransactGetItemsErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - TransactGetItemsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - TransactGetItemsErrorKind::TransactionCanceledError(_inner) => Some(_inner), + TransactGetItemsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TransactGetItemsErrorKind::TransactionCanceledException(_inner) => Some(_inner), TransactGetItemsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4262,30 +4388,32 @@ pub struct TransactWriteItemsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TransactWriteItemsErrorKind { - IdempotentParameterMismatchError(crate::error::IdempotentParameterMismatchError), + IdempotentParameterMismatchException(crate::error::IdempotentParameterMismatchException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionCanceledError(crate::error::TransactionCanceledError), - TransactionInProgressError(crate::error::TransactionInProgressError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionCanceledException(crate::error::TransactionCanceledException), + TransactionInProgressException(crate::error::TransactionInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TransactWriteItemsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TransactWriteItemsErrorKind::IdempotentParameterMismatchError(_inner) => _inner.fmt(f), + TransactWriteItemsErrorKind::IdempotentParameterMismatchException(_inner) => { + _inner.fmt(f) + } TransactWriteItemsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - TransactWriteItemsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - TransactWriteItemsErrorKind::ProvisionedThroughputExceededError(_inner) => { + TransactWriteItemsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + TransactWriteItemsErrorKind::ProvisionedThroughputExceededException(_inner) => { _inner.fmt(f) } TransactWriteItemsErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - TransactWriteItemsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - TransactWriteItemsErrorKind::TransactionCanceledError(_inner) => _inner.fmt(f), - TransactWriteItemsErrorKind::TransactionInProgressError(_inner) => _inner.fmt(f), + TransactWriteItemsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TransactWriteItemsErrorKind::TransactionCanceledException(_inner) => _inner.fmt(f), + TransactWriteItemsErrorKind::TransactionInProgressException(_inner) => _inner.fmt(f), TransactWriteItemsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4334,10 +4462,10 @@ impl TransactWriteItemsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_idempotent_parameter_mismatch_error(&self) -> bool { + pub fn is_idempotent_parameter_mismatch_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::IdempotentParameterMismatchError(_) + TransactWriteItemsErrorKind::IdempotentParameterMismatchException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4346,16 +4474,16 @@ impl TransactWriteItemsError { TransactWriteItemsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::InvalidEndpointError(_) + TransactWriteItemsErrorKind::InvalidEndpointException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::ProvisionedThroughputExceededError(_) + TransactWriteItemsErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { @@ -4364,36 +4492,40 @@ impl TransactWriteItemsError { TransactWriteItemsErrorKind::RequestLimitExceeded(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::ResourceNotFoundError(_) + TransactWriteItemsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_transaction_canceled_error(&self) -> bool { + pub fn is_transaction_canceled_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::TransactionCanceledError(_) + TransactWriteItemsErrorKind::TransactionCanceledException(_) ) } - pub fn is_transaction_in_progress_error(&self) -> bool { + pub fn is_transaction_in_progress_exception(&self) -> bool { matches!( &self.kind, - TransactWriteItemsErrorKind::TransactionInProgressError(_) + TransactWriteItemsErrorKind::TransactionInProgressException(_) ) } } impl std::error::Error for TransactWriteItemsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TransactWriteItemsErrorKind::IdempotentParameterMismatchError(_inner) => Some(_inner), + TransactWriteItemsErrorKind::IdempotentParameterMismatchException(_inner) => { + Some(_inner) + } TransactWriteItemsErrorKind::InternalServerError(_inner) => Some(_inner), - TransactWriteItemsErrorKind::InvalidEndpointError(_inner) => Some(_inner), - TransactWriteItemsErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + TransactWriteItemsErrorKind::InvalidEndpointException(_inner) => Some(_inner), + TransactWriteItemsErrorKind::ProvisionedThroughputExceededException(_inner) => { + Some(_inner) + } TransactWriteItemsErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - TransactWriteItemsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - TransactWriteItemsErrorKind::TransactionCanceledError(_inner) => Some(_inner), - TransactWriteItemsErrorKind::TransactionInProgressError(_inner) => Some(_inner), + TransactWriteItemsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TransactWriteItemsErrorKind::TransactionCanceledException(_inner) => Some(_inner), + TransactWriteItemsErrorKind::TransactionInProgressException(_inner) => Some(_inner), TransactWriteItemsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4409,10 +4541,10 @@ pub struct UntagResourceError { #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -4420,10 +4552,10 @@ impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UntagResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4475,27 +4607,39 @@ impl UntagResourceError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, UntagResourceErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceInUseException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UntagResourceErrorKind::InternalServerError(_inner) => Some(_inner), - UntagResourceErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UntagResourceErrorKind::LimitExceededError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceInUseError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UntagResourceErrorKind::LimitExceededException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceInUseException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4510,22 +4654,22 @@ pub struct UpdateContinuousBackupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContinuousBackupsErrorKind { - ContinuousBackupsUnavailableError(crate::error::ContinuousBackupsUnavailableError), + ContinuousBackupsUnavailableException(crate::error::ContinuousBackupsUnavailableException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateContinuousBackupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableError(_inner) => { + UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableException(_inner) => { _inner.fmt(f) } UpdateContinuousBackupsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateContinuousBackupsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateContinuousBackupsErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + UpdateContinuousBackupsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateContinuousBackupsErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), UpdateContinuousBackupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4574,10 +4718,10 @@ impl UpdateContinuousBackupsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_continuous_backups_unavailable_error(&self) -> bool { + pub fn is_continuous_backups_unavailable_exception(&self) -> bool { matches!( &self.kind, - UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableError(_) + UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4586,28 +4730,28 @@ impl UpdateContinuousBackupsError { UpdateContinuousBackupsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - UpdateContinuousBackupsErrorKind::InvalidEndpointError(_) + UpdateContinuousBackupsErrorKind::InvalidEndpointException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateContinuousBackupsErrorKind::TableNotFoundError(_) + UpdateContinuousBackupsErrorKind::TableNotFoundException(_) ) } } impl std::error::Error for UpdateContinuousBackupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableError(_inner) => { + UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableException(_inner) => { Some(_inner) } UpdateContinuousBackupsErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateContinuousBackupsErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateContinuousBackupsErrorKind::TableNotFoundError(_inner) => Some(_inner), + UpdateContinuousBackupsErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateContinuousBackupsErrorKind::TableNotFoundException(_inner) => Some(_inner), UpdateContinuousBackupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4623,7 +4767,7 @@ pub struct UpdateContributorInsightsError { #[derive(std::fmt::Debug)] pub enum UpdateContributorInsightsErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -4631,7 +4775,7 @@ impl std::fmt::Display for UpdateContributorInsightsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateContributorInsightsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateContributorInsightsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateContributorInsightsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateContributorInsightsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4686,10 +4830,10 @@ impl UpdateContributorInsightsError { UpdateContributorInsightsErrorKind::InternalServerError(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateContributorInsightsErrorKind::ResourceNotFoundError(_) + UpdateContributorInsightsErrorKind::ResourceNotFoundException(_) ) } } @@ -4697,7 +4841,7 @@ impl std::error::Error for UpdateContributorInsightsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateContributorInsightsErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateContributorInsightsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateContributorInsightsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateContributorInsightsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4712,24 +4856,24 @@ pub struct UpdateGlobalTableError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateGlobalTableErrorKind { - GlobalTableNotFoundError(crate::error::GlobalTableNotFoundError), + GlobalTableNotFoundException(crate::error::GlobalTableNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ReplicaAlreadyExistsError(crate::error::ReplicaAlreadyExistsError), - ReplicaNotFoundError(crate::error::ReplicaNotFoundError), - TableNotFoundError(crate::error::TableNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ReplicaAlreadyExistsException(crate::error::ReplicaAlreadyExistsException), + ReplicaNotFoundException(crate::error::ReplicaNotFoundException), + TableNotFoundException(crate::error::TableNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateGlobalTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateGlobalTableErrorKind::GlobalTableNotFoundError(_inner) => _inner.fmt(f), + UpdateGlobalTableErrorKind::GlobalTableNotFoundException(_inner) => _inner.fmt(f), UpdateGlobalTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateGlobalTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateGlobalTableErrorKind::ReplicaAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateGlobalTableErrorKind::ReplicaNotFoundError(_inner) => _inner.fmt(f), - UpdateGlobalTableErrorKind::TableNotFoundError(_inner) => _inner.fmt(f), + UpdateGlobalTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateGlobalTableErrorKind::ReplicaAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateGlobalTableErrorKind::ReplicaNotFoundException(_inner) => _inner.fmt(f), + UpdateGlobalTableErrorKind::TableNotFoundException(_inner) => _inner.fmt(f), UpdateGlobalTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4778,10 +4922,10 @@ impl UpdateGlobalTableError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_global_table_not_found_error(&self) -> bool { + pub fn is_global_table_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableErrorKind::GlobalTableNotFoundError(_) + UpdateGlobalTableErrorKind::GlobalTableNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4790,40 +4934,40 @@ impl UpdateGlobalTableError { UpdateGlobalTableErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableErrorKind::InvalidEndpointError(_) + UpdateGlobalTableErrorKind::InvalidEndpointException(_) ) } - pub fn is_replica_already_exists_error(&self) -> bool { + pub fn is_replica_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableErrorKind::ReplicaAlreadyExistsError(_) + UpdateGlobalTableErrorKind::ReplicaAlreadyExistsException(_) ) } - pub fn is_replica_not_found_error(&self) -> bool { + pub fn is_replica_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableErrorKind::ReplicaNotFoundError(_) + UpdateGlobalTableErrorKind::ReplicaNotFoundException(_) ) } - pub fn is_table_not_found_error(&self) -> bool { + pub fn is_table_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableErrorKind::TableNotFoundError(_) + UpdateGlobalTableErrorKind::TableNotFoundException(_) ) } } impl std::error::Error for UpdateGlobalTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateGlobalTableErrorKind::GlobalTableNotFoundError(_inner) => Some(_inner), + UpdateGlobalTableErrorKind::GlobalTableNotFoundException(_inner) => Some(_inner), UpdateGlobalTableErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateGlobalTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateGlobalTableErrorKind::ReplicaAlreadyExistsError(_inner) => Some(_inner), - UpdateGlobalTableErrorKind::ReplicaNotFoundError(_inner) => Some(_inner), - UpdateGlobalTableErrorKind::TableNotFoundError(_inner) => Some(_inner), + UpdateGlobalTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateGlobalTableErrorKind::ReplicaAlreadyExistsException(_inner) => Some(_inner), + UpdateGlobalTableErrorKind::ReplicaNotFoundException(_inner) => Some(_inner), + UpdateGlobalTableErrorKind::TableNotFoundException(_inner) => Some(_inner), UpdateGlobalTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4838,26 +4982,28 @@ pub struct UpdateGlobalTableSettingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateGlobalTableSettingsErrorKind { - GlobalTableNotFoundError(crate::error::GlobalTableNotFoundError), - IndexNotFoundError(crate::error::IndexNotFoundError), + GlobalTableNotFoundException(crate::error::GlobalTableNotFoundException), + IndexNotFoundException(crate::error::IndexNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ReplicaNotFoundError(crate::error::ReplicaNotFoundError), - ResourceInUseError(crate::error::ResourceInUseError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ReplicaNotFoundException(crate::error::ReplicaNotFoundException), + ResourceInUseException(crate::error::ResourceInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateGlobalTableSettingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_inner) => _inner.fmt(f), - UpdateGlobalTableSettingsErrorKind::IndexNotFoundError(_inner) => _inner.fmt(f), + UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateGlobalTableSettingsErrorKind::IndexNotFoundException(_inner) => _inner.fmt(f), UpdateGlobalTableSettingsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateGlobalTableSettingsErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateGlobalTableSettingsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundError(_inner) => _inner.fmt(f), - UpdateGlobalTableSettingsErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), + UpdateGlobalTableSettingsErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateGlobalTableSettingsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundException(_inner) => _inner.fmt(f), + UpdateGlobalTableSettingsErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), UpdateGlobalTableSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4906,16 +5052,16 @@ impl UpdateGlobalTableSettingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_global_table_not_found_error(&self) -> bool { + pub fn is_global_table_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_) + UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_) ) } - pub fn is_index_not_found_error(&self) -> bool { + pub fn is_index_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::IndexNotFoundError(_) + UpdateGlobalTableSettingsErrorKind::IndexNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4924,41 +5070,43 @@ impl UpdateGlobalTableSettingsError { UpdateGlobalTableSettingsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::InvalidEndpointError(_) + UpdateGlobalTableSettingsErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::LimitExceededError(_) + UpdateGlobalTableSettingsErrorKind::LimitExceededException(_) ) } - pub fn is_replica_not_found_error(&self) -> bool { + pub fn is_replica_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundError(_) + UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - UpdateGlobalTableSettingsErrorKind::ResourceInUseError(_) + UpdateGlobalTableSettingsErrorKind::ResourceInUseException(_) ) } } impl std::error::Error for UpdateGlobalTableSettingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundError(_inner) => Some(_inner), - UpdateGlobalTableSettingsErrorKind::IndexNotFoundError(_inner) => Some(_inner), + UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundException(_inner) => { + Some(_inner) + } + UpdateGlobalTableSettingsErrorKind::IndexNotFoundException(_inner) => Some(_inner), UpdateGlobalTableSettingsErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateGlobalTableSettingsErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateGlobalTableSettingsErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundError(_inner) => Some(_inner), - UpdateGlobalTableSettingsErrorKind::ResourceInUseError(_inner) => Some(_inner), + UpdateGlobalTableSettingsErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateGlobalTableSettingsErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundException(_inner) => Some(_inner), + UpdateGlobalTableSettingsErrorKind::ResourceInUseException(_inner) => Some(_inner), UpdateGlobalTableSettingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4973,28 +5121,30 @@ pub struct UpdateItemError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateItemErrorKind { - ConditionalCheckFailedError(crate::error::ConditionalCheckFailedError), + ConditionalCheckFailedException(crate::error::ConditionalCheckFailedException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), + InvalidEndpointException(crate::error::InvalidEndpointException), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TransactionConflictError(crate::error::TransactionConflictError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TransactionConflictException(crate::error::TransactionConflictException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateItemErrorKind::ConditionalCheckFailedError(_inner) => _inner.fmt(f), + UpdateItemErrorKind::ConditionalCheckFailedException(_inner) => _inner.fmt(f), UpdateItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateItemErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f), - UpdateItemErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), + UpdateItemErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => _inner.fmt(f), + UpdateItemErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), UpdateItemErrorKind::RequestLimitExceeded(_inner) => _inner.fmt(f), - UpdateItemErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateItemErrorKind::TransactionConflictError(_inner) => _inner.fmt(f), + UpdateItemErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateItemErrorKind::TransactionConflictException(_inner) => _inner.fmt(f), UpdateItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5043,51 +5193,57 @@ impl UpdateItemError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conditional_check_failed_error(&self) -> bool { + pub fn is_conditional_check_failed_exception(&self) -> bool { matches!( &self.kind, - UpdateItemErrorKind::ConditionalCheckFailedError(_) + UpdateItemErrorKind::ConditionalCheckFailedException(_) ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, UpdateItemErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, UpdateItemErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!(&self.kind, UpdateItemErrorKind::InvalidEndpointException(_)) } - pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_collection_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateItemErrorKind::ItemCollectionSizeLimitExceededError(_) + UpdateItemErrorKind::ItemCollectionSizeLimitExceededException(_) ) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateItemErrorKind::ProvisionedThroughputExceededError(_) + UpdateItemErrorKind::ProvisionedThroughputExceededException(_) ) } pub fn is_request_limit_exceeded(&self) -> bool { matches!(&self.kind, UpdateItemErrorKind::RequestLimitExceeded(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateItemErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateItemErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_transaction_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateItemErrorKind::TransactionConflictError(_)) + pub fn is_transaction_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateItemErrorKind::TransactionConflictException(_) + ) } } impl std::error::Error for UpdateItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateItemErrorKind::ConditionalCheckFailedError(_inner) => Some(_inner), + UpdateItemErrorKind::ConditionalCheckFailedException(_inner) => Some(_inner), UpdateItemErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateItemErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateItemErrorKind::ItemCollectionSizeLimitExceededError(_inner) => Some(_inner), - UpdateItemErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), + UpdateItemErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateItemErrorKind::ItemCollectionSizeLimitExceededException(_inner) => Some(_inner), + UpdateItemErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), UpdateItemErrorKind::RequestLimitExceeded(_inner) => Some(_inner), - UpdateItemErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateItemErrorKind::TransactionConflictError(_inner) => Some(_inner), + UpdateItemErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateItemErrorKind::TransactionConflictException(_inner) => Some(_inner), UpdateItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5103,10 +5259,10 @@ pub struct UpdateTableError { #[derive(std::fmt::Debug)] pub enum UpdateTableErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -5114,10 +5270,10 @@ impl std::fmt::Display for UpdateTableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateTableErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateTableErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateTableErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateTableErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UpdateTableErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateTableErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateTableErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateTableErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateTableErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateTableErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5169,27 +5325,33 @@ impl UpdateTableError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, UpdateTableErrorKind::InternalServerError(_)) } - pub fn is_invalid_endpoint_error(&self) -> bool { - matches!(&self.kind, UpdateTableErrorKind::InvalidEndpointError(_)) + pub fn is_invalid_endpoint_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTableErrorKind::InvalidEndpointException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateTableErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, UpdateTableErrorKind::LimitExceededException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, UpdateTableErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, UpdateTableErrorKind::ResourceInUseException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateTableErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTableErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UpdateTableError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateTableErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateTableErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateTableErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateTableErrorKind::ResourceInUseError(_inner) => Some(_inner), - UpdateTableErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateTableErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateTableErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateTableErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateTableErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateTableErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5205,9 +5367,9 @@ pub struct UpdateTableReplicaAutoScalingError { #[derive(std::fmt::Debug)] pub enum UpdateTableReplicaAutoScalingErrorKind { InternalServerError(crate::error::InternalServerError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -5215,9 +5377,11 @@ impl std::fmt::Display for UpdateTableReplicaAutoScalingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateTableReplicaAutoScalingErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateTableReplicaAutoScalingErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateTableReplicaAutoScalingErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateTableReplicaAutoScalingErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateTableReplicaAutoScalingErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } UpdateTableReplicaAutoScalingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5272,22 +5436,22 @@ impl UpdateTableReplicaAutoScalingError { UpdateTableReplicaAutoScalingErrorKind::InternalServerError(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateTableReplicaAutoScalingErrorKind::LimitExceededError(_) + UpdateTableReplicaAutoScalingErrorKind::LimitExceededException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - UpdateTableReplicaAutoScalingErrorKind::ResourceInUseError(_) + UpdateTableReplicaAutoScalingErrorKind::ResourceInUseException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_) + UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_) ) } } @@ -5295,9 +5459,11 @@ impl std::error::Error for UpdateTableReplicaAutoScalingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateTableReplicaAutoScalingErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateTableReplicaAutoScalingErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateTableReplicaAutoScalingErrorKind::ResourceInUseError(_inner) => Some(_inner), - UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateTableReplicaAutoScalingErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateTableReplicaAutoScalingErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } UpdateTableReplicaAutoScalingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5313,10 +5479,10 @@ pub struct UpdateTimeToLiveError { #[derive(std::fmt::Debug)] pub enum UpdateTimeToLiveErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - LimitExceededError(crate::error::LimitExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + LimitExceededException(crate::error::LimitExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -5324,10 +5490,10 @@ impl std::fmt::Display for UpdateTimeToLiveError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateTimeToLiveErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateTimeToLiveErrorKind::InvalidEndpointError(_inner) => _inner.fmt(f), - UpdateTimeToLiveErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateTimeToLiveErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UpdateTimeToLiveErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateTimeToLiveErrorKind::InvalidEndpointException(_inner) => _inner.fmt(f), + UpdateTimeToLiveErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateTimeToLiveErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateTimeToLiveErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateTimeToLiveErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5382,22 +5548,28 @@ impl UpdateTimeToLiveError { UpdateTimeToLiveErrorKind::InternalServerError(_) ) } - pub fn is_invalid_endpoint_error(&self) -> bool { + pub fn is_invalid_endpoint_exception(&self) -> bool { matches!( &self.kind, - UpdateTimeToLiveErrorKind::InvalidEndpointError(_) + UpdateTimeToLiveErrorKind::InvalidEndpointException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateTimeToLiveErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTimeToLiveErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, UpdateTimeToLiveErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTimeToLiveErrorKind::ResourceInUseException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateTimeToLiveErrorKind::ResourceNotFoundError(_) + UpdateTimeToLiveErrorKind::ResourceNotFoundException(_) ) } } @@ -5405,10 +5577,10 @@ impl std::error::Error for UpdateTimeToLiveError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateTimeToLiveErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateTimeToLiveErrorKind::InvalidEndpointError(_inner) => Some(_inner), - UpdateTimeToLiveErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateTimeToLiveErrorKind::ResourceInUseError(_inner) => Some(_inner), - UpdateTimeToLiveErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateTimeToLiveErrorKind::InvalidEndpointException(_inner) => Some(_inner), + UpdateTimeToLiveErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateTimeToLiveErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateTimeToLiveErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateTimeToLiveErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5417,38 +5589,36 @@ impl std::error::Error for UpdateTimeToLiveError { ///

    The operation tried to access a nonexistent table or index. The resource might not be specified /// correctly, or its status might not be ACTIVE.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { ///

    The resource which is being requested does not exist.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5464,18 +5634,18 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } @@ -5483,38 +5653,36 @@ impl ResourceNotFoundError { /// recreate an existing table, or tried to delete a table currently in the CREATING /// state.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { ///

    The resource which is being attempted to be changed is in use.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5530,18 +5698,18 @@ pub mod resource_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { message: self.message, } } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } @@ -5555,38 +5723,36 @@ impl ResourceInUseError { /// reduce the number of concurrent operations.

    ///

    There is a soft account quota of 256 tables.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { ///

    Too many operations for a given subscriber.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5602,53 +5768,51 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidEndpointError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidEndpointException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidEndpointError { +impl std::fmt::Debug for InvalidEndpointException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidEndpointError"); + let mut formatter = f.debug_struct("InvalidEndpointException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidEndpointError { +impl InvalidEndpointException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidEndpointError { +impl std::fmt::Display for InvalidEndpointException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidEndpointError [InvalidEndpointException]")?; + write!(f, "InvalidEndpointException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidEndpointError {} -/// See [`InvalidEndpointError`](crate::error::InvalidEndpointError) -pub mod invalid_endpoint_error { - /// A builder for [`InvalidEndpointError`](crate::error::InvalidEndpointError) +impl std::error::Error for InvalidEndpointException {} +/// See [`InvalidEndpointException`](crate::error::InvalidEndpointException) +pub mod invalid_endpoint_exception { + /// A builder for [`InvalidEndpointException`](crate::error::InvalidEndpointException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5663,28 +5827,26 @@ pub mod invalid_endpoint_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidEndpointError`](crate::error::InvalidEndpointError) - pub fn build(self) -> crate::error::InvalidEndpointError { - crate::error::InvalidEndpointError { + /// Consumes the builder and constructs a [`InvalidEndpointException`](crate::error::InvalidEndpointException) + pub fn build(self) -> crate::error::InvalidEndpointException { + crate::error::InvalidEndpointException { message: self.message, } } } } -impl InvalidEndpointError { - /// Creates a new builder-style object to manufacture [`InvalidEndpointError`](crate::error::InvalidEndpointError) - pub fn builder() -> crate::error::invalid_endpoint_error::Builder { - crate::error::invalid_endpoint_error::Builder::default() +impl InvalidEndpointException { + /// Creates a new builder-style object to manufacture [`InvalidEndpointException`](crate::error::InvalidEndpointException) + pub fn builder() -> crate::error::invalid_endpoint_exception::Builder { + crate::error::invalid_endpoint_exception::Builder::default() } } ///

    An error occurred on the server side.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InternalServerError { ///

    The server encountered an internal error trying to fulfill the request.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InternalServerError { @@ -5744,37 +5906,35 @@ impl InternalServerError { ///

    Operation was rejected because there is an ongoing transaction for the item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactionConflictError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TransactionConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for TransactionConflictError { +impl std::fmt::Debug for TransactionConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactionConflictError"); + let mut formatter = f.debug_struct("TransactionConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl TransactionConflictError { +impl TransactionConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TransactionConflictError { +impl std::fmt::Display for TransactionConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TransactionConflictError [TransactionConflictException]")?; + write!(f, "TransactionConflictException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for TransactionConflictError {} -/// See [`TransactionConflictError`](crate::error::TransactionConflictError) -pub mod transaction_conflict_error { - /// A builder for [`TransactionConflictError`](crate::error::TransactionConflictError) +impl std::error::Error for TransactionConflictException {} +/// See [`TransactionConflictException`](crate::error::TransactionConflictException) +pub mod transaction_conflict_exception { + /// A builder for [`TransactionConflictException`](crate::error::TransactionConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5789,27 +5949,25 @@ pub mod transaction_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`TransactionConflictError`](crate::error::TransactionConflictError) - pub fn build(self) -> crate::error::TransactionConflictError { - crate::error::TransactionConflictError { + /// Consumes the builder and constructs a [`TransactionConflictException`](crate::error::TransactionConflictException) + pub fn build(self) -> crate::error::TransactionConflictException { + crate::error::TransactionConflictException { message: self.message, } } } } -impl TransactionConflictError { - /// Creates a new builder-style object to manufacture [`TransactionConflictError`](crate::error::TransactionConflictError) - pub fn builder() -> crate::error::transaction_conflict_error::Builder { - crate::error::transaction_conflict_error::Builder::default() +impl TransactionConflictException { + /// Creates a new builder-style object to manufacture [`TransactionConflictException`](crate::error::TransactionConflictException) + pub fn builder() -> crate::error::transaction_conflict_exception::Builder { + crate::error::transaction_conflict_exception::Builder::default() } } ///

    Throughput exceeds the current throughput quota for your account. Please contact AWS Support at AWS Support to request a quota increase.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RequestLimitExceeded { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for RequestLimitExceeded { @@ -5872,41 +6030,36 @@ impl RequestLimitExceeded { /// information, go to Error Retries and Exponential /// Backoff in the Amazon DynamoDB Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ProvisionedThroughputExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ProvisionedThroughputExceededException { ///

    You exceeded your maximum allowed provisioned throughput.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ProvisionedThroughputExceededError { +impl std::fmt::Debug for ProvisionedThroughputExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ProvisionedThroughputExceededError"); + let mut formatter = f.debug_struct("ProvisionedThroughputExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ProvisionedThroughputExceededError { +impl ProvisionedThroughputExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ProvisionedThroughputExceededError { +impl std::fmt::Display for ProvisionedThroughputExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ProvisionedThroughputExceededError [ProvisionedThroughputExceededException]" - )?; + write!(f, "ProvisionedThroughputExceededException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for ProvisionedThroughputExceededError {} -/// See [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) -pub mod provisioned_throughput_exceeded_error { - /// A builder for [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) +impl std::error::Error for ProvisionedThroughputExceededException {} +/// See [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) +pub mod provisioned_throughput_exceeded_exception { + /// A builder for [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5922,58 +6075,53 @@ pub mod provisioned_throughput_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) - pub fn build(self) -> crate::error::ProvisionedThroughputExceededError { - crate::error::ProvisionedThroughputExceededError { + /// Consumes the builder and constructs a [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) + pub fn build(self) -> crate::error::ProvisionedThroughputExceededException { + crate::error::ProvisionedThroughputExceededException { message: self.message, } } } } -impl ProvisionedThroughputExceededError { - /// Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) - pub fn builder() -> crate::error::provisioned_throughput_exceeded_error::Builder { - crate::error::provisioned_throughput_exceeded_error::Builder::default() +impl ProvisionedThroughputExceededException { + /// Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) + pub fn builder() -> crate::error::provisioned_throughput_exceeded_exception::Builder { + crate::error::provisioned_throughput_exceeded_exception::Builder::default() } } ///

    An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ItemCollectionSizeLimitExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ItemCollectionSizeLimitExceededException { ///

    The total size of an item collection has exceeded the maximum limit of 10 gigabytes.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ItemCollectionSizeLimitExceededError { +impl std::fmt::Debug for ItemCollectionSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ItemCollectionSizeLimitExceededError"); + let mut formatter = f.debug_struct("ItemCollectionSizeLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ItemCollectionSizeLimitExceededError { +impl ItemCollectionSizeLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ItemCollectionSizeLimitExceededError { +impl std::fmt::Display for ItemCollectionSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ItemCollectionSizeLimitExceededError [ItemCollectionSizeLimitExceededException]" - )?; + write!(f, "ItemCollectionSizeLimitExceededException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for ItemCollectionSizeLimitExceededError {} -/// See [`ItemCollectionSizeLimitExceededError`](crate::error::ItemCollectionSizeLimitExceededError) -pub mod item_collection_size_limit_exceeded_error { - /// A builder for [`ItemCollectionSizeLimitExceededError`](crate::error::ItemCollectionSizeLimitExceededError) +impl std::error::Error for ItemCollectionSizeLimitExceededException {} +/// See [`ItemCollectionSizeLimitExceededException`](crate::error::ItemCollectionSizeLimitExceededException) +pub mod item_collection_size_limit_exceeded_exception { + /// A builder for [`ItemCollectionSizeLimitExceededException`](crate::error::ItemCollectionSizeLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5989,58 +6137,53 @@ pub mod item_collection_size_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ItemCollectionSizeLimitExceededError`](crate::error::ItemCollectionSizeLimitExceededError) - pub fn build(self) -> crate::error::ItemCollectionSizeLimitExceededError { - crate::error::ItemCollectionSizeLimitExceededError { + /// Consumes the builder and constructs a [`ItemCollectionSizeLimitExceededException`](crate::error::ItemCollectionSizeLimitExceededException) + pub fn build(self) -> crate::error::ItemCollectionSizeLimitExceededException { + crate::error::ItemCollectionSizeLimitExceededException { message: self.message, } } } } -impl ItemCollectionSizeLimitExceededError { - /// Creates a new builder-style object to manufacture [`ItemCollectionSizeLimitExceededError`](crate::error::ItemCollectionSizeLimitExceededError) - pub fn builder() -> crate::error::item_collection_size_limit_exceeded_error::Builder { - crate::error::item_collection_size_limit_exceeded_error::Builder::default() +impl ItemCollectionSizeLimitExceededException { + /// Creates a new builder-style object to manufacture [`ItemCollectionSizeLimitExceededException`](crate::error::ItemCollectionSizeLimitExceededException) + pub fn builder() -> crate::error::item_collection_size_limit_exceeded_exception::Builder { + crate::error::item_collection_size_limit_exceeded_exception::Builder::default() } } ///

    A condition specified in the operation could not be evaluated.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConditionalCheckFailedError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConditionalCheckFailedException { ///

    The conditional request failed.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ConditionalCheckFailedError { +impl std::fmt::Debug for ConditionalCheckFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConditionalCheckFailedError"); + let mut formatter = f.debug_struct("ConditionalCheckFailedException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConditionalCheckFailedError { +impl ConditionalCheckFailedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConditionalCheckFailedError { +impl std::fmt::Display for ConditionalCheckFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ConditionalCheckFailedError [ConditionalCheckFailedException]" - )?; + write!(f, "ConditionalCheckFailedException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for ConditionalCheckFailedError {} -/// See [`ConditionalCheckFailedError`](crate::error::ConditionalCheckFailedError) -pub mod conditional_check_failed_error { - /// A builder for [`ConditionalCheckFailedError`](crate::error::ConditionalCheckFailedError) +impl std::error::Error for ConditionalCheckFailedException {} +/// See [`ConditionalCheckFailedException`](crate::error::ConditionalCheckFailedException) +pub mod conditional_check_failed_exception { + /// A builder for [`ConditionalCheckFailedException`](crate::error::ConditionalCheckFailedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6056,54 +6199,52 @@ pub mod conditional_check_failed_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConditionalCheckFailedError`](crate::error::ConditionalCheckFailedError) - pub fn build(self) -> crate::error::ConditionalCheckFailedError { - crate::error::ConditionalCheckFailedError { + /// Consumes the builder and constructs a [`ConditionalCheckFailedException`](crate::error::ConditionalCheckFailedException) + pub fn build(self) -> crate::error::ConditionalCheckFailedException { + crate::error::ConditionalCheckFailedException { message: self.message, } } } } -impl ConditionalCheckFailedError { - /// Creates a new builder-style object to manufacture [`ConditionalCheckFailedError`](crate::error::ConditionalCheckFailedError) - pub fn builder() -> crate::error::conditional_check_failed_error::Builder { - crate::error::conditional_check_failed_error::Builder::default() +impl ConditionalCheckFailedException { + /// Creates a new builder-style object to manufacture [`ConditionalCheckFailedException`](crate::error::ConditionalCheckFailedException) + pub fn builder() -> crate::error::conditional_check_failed_exception::Builder { + crate::error::conditional_check_failed_exception::Builder::default() } } ///

    The specified replica is no longer part of the global table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ReplicaNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReplicaNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ReplicaNotFoundError { +impl std::fmt::Debug for ReplicaNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReplicaNotFoundError"); + let mut formatter = f.debug_struct("ReplicaNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ReplicaNotFoundError { +impl ReplicaNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReplicaNotFoundError { +impl std::fmt::Display for ReplicaNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ReplicaNotFoundError [ReplicaNotFoundException]")?; + write!(f, "ReplicaNotFoundException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for ReplicaNotFoundError {} -/// See [`ReplicaNotFoundError`](crate::error::ReplicaNotFoundError) -pub mod replica_not_found_error { - /// A builder for [`ReplicaNotFoundError`](crate::error::ReplicaNotFoundError) +impl std::error::Error for ReplicaNotFoundException {} +/// See [`ReplicaNotFoundException`](crate::error::ReplicaNotFoundException) +pub mod replica_not_found_exception { + /// A builder for [`ReplicaNotFoundException`](crate::error::ReplicaNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6118,54 +6259,52 @@ pub mod replica_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ReplicaNotFoundError`](crate::error::ReplicaNotFoundError) - pub fn build(self) -> crate::error::ReplicaNotFoundError { - crate::error::ReplicaNotFoundError { + /// Consumes the builder and constructs a [`ReplicaNotFoundException`](crate::error::ReplicaNotFoundException) + pub fn build(self) -> crate::error::ReplicaNotFoundException { + crate::error::ReplicaNotFoundException { message: self.message, } } } } -impl ReplicaNotFoundError { - /// Creates a new builder-style object to manufacture [`ReplicaNotFoundError`](crate::error::ReplicaNotFoundError) - pub fn builder() -> crate::error::replica_not_found_error::Builder { - crate::error::replica_not_found_error::Builder::default() +impl ReplicaNotFoundException { + /// Creates a new builder-style object to manufacture [`ReplicaNotFoundException`](crate::error::ReplicaNotFoundException) + pub fn builder() -> crate::error::replica_not_found_exception::Builder { + crate::error::replica_not_found_exception::Builder::default() } } ///

    The operation tried to access a nonexistent index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IndexNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IndexNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for IndexNotFoundError { +impl std::fmt::Debug for IndexNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IndexNotFoundError"); + let mut formatter = f.debug_struct("IndexNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl IndexNotFoundError { +impl IndexNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IndexNotFoundError { +impl std::fmt::Display for IndexNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "IndexNotFoundError [IndexNotFoundException]")?; + write!(f, "IndexNotFoundException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for IndexNotFoundError {} -/// See [`IndexNotFoundError`](crate::error::IndexNotFoundError) -pub mod index_not_found_error { - /// A builder for [`IndexNotFoundError`](crate::error::IndexNotFoundError) +impl std::error::Error for IndexNotFoundException {} +/// See [`IndexNotFoundException`](crate::error::IndexNotFoundException) +pub mod index_not_found_exception { + /// A builder for [`IndexNotFoundException`](crate::error::IndexNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6180,54 +6319,52 @@ pub mod index_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`IndexNotFoundError`](crate::error::IndexNotFoundError) - pub fn build(self) -> crate::error::IndexNotFoundError { - crate::error::IndexNotFoundError { + /// Consumes the builder and constructs a [`IndexNotFoundException`](crate::error::IndexNotFoundException) + pub fn build(self) -> crate::error::IndexNotFoundException { + crate::error::IndexNotFoundException { message: self.message, } } } } -impl IndexNotFoundError { - /// Creates a new builder-style object to manufacture [`IndexNotFoundError`](crate::error::IndexNotFoundError) - pub fn builder() -> crate::error::index_not_found_error::Builder { - crate::error::index_not_found_error::Builder::default() +impl IndexNotFoundException { + /// Creates a new builder-style object to manufacture [`IndexNotFoundException`](crate::error::IndexNotFoundException) + pub fn builder() -> crate::error::index_not_found_exception::Builder { + crate::error::index_not_found_exception::Builder::default() } } ///

    The specified global table does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GlobalTableNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GlobalTableNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for GlobalTableNotFoundError { +impl std::fmt::Debug for GlobalTableNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GlobalTableNotFoundError"); + let mut formatter = f.debug_struct("GlobalTableNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl GlobalTableNotFoundError { +impl GlobalTableNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for GlobalTableNotFoundError { +impl std::fmt::Display for GlobalTableNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "GlobalTableNotFoundError [GlobalTableNotFoundException]")?; + write!(f, "GlobalTableNotFoundException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for GlobalTableNotFoundError {} -/// See [`GlobalTableNotFoundError`](crate::error::GlobalTableNotFoundError) -pub mod global_table_not_found_error { - /// A builder for [`GlobalTableNotFoundError`](crate::error::GlobalTableNotFoundError) +impl std::error::Error for GlobalTableNotFoundException {} +/// See [`GlobalTableNotFoundException`](crate::error::GlobalTableNotFoundException) +pub mod global_table_not_found_exception { + /// A builder for [`GlobalTableNotFoundException`](crate::error::GlobalTableNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6242,54 +6379,52 @@ pub mod global_table_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`GlobalTableNotFoundError`](crate::error::GlobalTableNotFoundError) - pub fn build(self) -> crate::error::GlobalTableNotFoundError { - crate::error::GlobalTableNotFoundError { + /// Consumes the builder and constructs a [`GlobalTableNotFoundException`](crate::error::GlobalTableNotFoundException) + pub fn build(self) -> crate::error::GlobalTableNotFoundException { + crate::error::GlobalTableNotFoundException { message: self.message, } } } } -impl GlobalTableNotFoundError { - /// Creates a new builder-style object to manufacture [`GlobalTableNotFoundError`](crate::error::GlobalTableNotFoundError) - pub fn builder() -> crate::error::global_table_not_found_error::Builder { - crate::error::global_table_not_found_error::Builder::default() +impl GlobalTableNotFoundException { + /// Creates a new builder-style object to manufacture [`GlobalTableNotFoundException`](crate::error::GlobalTableNotFoundException) + pub fn builder() -> crate::error::global_table_not_found_exception::Builder { + crate::error::global_table_not_found_exception::Builder::default() } } ///

    A source table with the name TableName does not currently exist within the subscriber's account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TableNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TableNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for TableNotFoundError { +impl std::fmt::Debug for TableNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TableNotFoundError"); + let mut formatter = f.debug_struct("TableNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl TableNotFoundError { +impl TableNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TableNotFoundError { +impl std::fmt::Display for TableNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TableNotFoundError [TableNotFoundException]")?; + write!(f, "TableNotFoundException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for TableNotFoundError {} -/// See [`TableNotFoundError`](crate::error::TableNotFoundError) -pub mod table_not_found_error { - /// A builder for [`TableNotFoundError`](crate::error::TableNotFoundError) +impl std::error::Error for TableNotFoundException {} +/// See [`TableNotFoundException`](crate::error::TableNotFoundException) +pub mod table_not_found_exception { + /// A builder for [`TableNotFoundException`](crate::error::TableNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6304,57 +6439,52 @@ pub mod table_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`TableNotFoundError`](crate::error::TableNotFoundError) - pub fn build(self) -> crate::error::TableNotFoundError { - crate::error::TableNotFoundError { + /// Consumes the builder and constructs a [`TableNotFoundException`](crate::error::TableNotFoundException) + pub fn build(self) -> crate::error::TableNotFoundException { + crate::error::TableNotFoundException { message: self.message, } } } } -impl TableNotFoundError { - /// Creates a new builder-style object to manufacture [`TableNotFoundError`](crate::error::TableNotFoundError) - pub fn builder() -> crate::error::table_not_found_error::Builder { - crate::error::table_not_found_error::Builder::default() +impl TableNotFoundException { + /// Creates a new builder-style object to manufacture [`TableNotFoundException`](crate::error::TableNotFoundException) + pub fn builder() -> crate::error::table_not_found_exception::Builder { + crate::error::table_not_found_exception::Builder::default() } } ///

    The specified replica is already part of the global table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ReplicaAlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReplicaAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for ReplicaAlreadyExistsError { +impl std::fmt::Debug for ReplicaAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReplicaAlreadyExistsError"); + let mut formatter = f.debug_struct("ReplicaAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl ReplicaAlreadyExistsError { +impl ReplicaAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReplicaAlreadyExistsError { +impl std::fmt::Display for ReplicaAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ReplicaAlreadyExistsError [ReplicaAlreadyExistsException]" - )?; + write!(f, "ReplicaAlreadyExistsException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for ReplicaAlreadyExistsError {} -/// See [`ReplicaAlreadyExistsError`](crate::error::ReplicaAlreadyExistsError) -pub mod replica_already_exists_error { - /// A builder for [`ReplicaAlreadyExistsError`](crate::error::ReplicaAlreadyExistsError) +impl std::error::Error for ReplicaAlreadyExistsException {} +/// See [`ReplicaAlreadyExistsException`](crate::error::ReplicaAlreadyExistsException) +pub mod replica_already_exists_exception { + /// A builder for [`ReplicaAlreadyExistsException`](crate::error::ReplicaAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6369,57 +6499,52 @@ pub mod replica_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`ReplicaAlreadyExistsError`](crate::error::ReplicaAlreadyExistsError) - pub fn build(self) -> crate::error::ReplicaAlreadyExistsError { - crate::error::ReplicaAlreadyExistsError { + /// Consumes the builder and constructs a [`ReplicaAlreadyExistsException`](crate::error::ReplicaAlreadyExistsException) + pub fn build(self) -> crate::error::ReplicaAlreadyExistsException { + crate::error::ReplicaAlreadyExistsException { message: self.message, } } } } -impl ReplicaAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`ReplicaAlreadyExistsError`](crate::error::ReplicaAlreadyExistsError) - pub fn builder() -> crate::error::replica_already_exists_error::Builder { - crate::error::replica_already_exists_error::Builder::default() +impl ReplicaAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ReplicaAlreadyExistsException`](crate::error::ReplicaAlreadyExistsException) + pub fn builder() -> crate::error::replica_already_exists_exception::Builder { + crate::error::replica_already_exists_exception::Builder::default() } } ///

    Backups have not yet been enabled for this table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ContinuousBackupsUnavailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ContinuousBackupsUnavailableException { pub message: std::option::Option, } -impl std::fmt::Debug for ContinuousBackupsUnavailableError { +impl std::fmt::Debug for ContinuousBackupsUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ContinuousBackupsUnavailableError"); + let mut formatter = f.debug_struct("ContinuousBackupsUnavailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl ContinuousBackupsUnavailableError { +impl ContinuousBackupsUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ContinuousBackupsUnavailableError { +impl std::fmt::Display for ContinuousBackupsUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ContinuousBackupsUnavailableError [ContinuousBackupsUnavailableException]" - )?; + write!(f, "ContinuousBackupsUnavailableException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for ContinuousBackupsUnavailableError {} -/// See [`ContinuousBackupsUnavailableError`](crate::error::ContinuousBackupsUnavailableError) -pub mod continuous_backups_unavailable_error { - /// A builder for [`ContinuousBackupsUnavailableError`](crate::error::ContinuousBackupsUnavailableError) +impl std::error::Error for ContinuousBackupsUnavailableException {} +/// See [`ContinuousBackupsUnavailableException`](crate::error::ContinuousBackupsUnavailableException) +pub mod continuous_backups_unavailable_exception { + /// A builder for [`ContinuousBackupsUnavailableException`](crate::error::ContinuousBackupsUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6434,57 +6559,52 @@ pub mod continuous_backups_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`ContinuousBackupsUnavailableError`](crate::error::ContinuousBackupsUnavailableError) - pub fn build(self) -> crate::error::ContinuousBackupsUnavailableError { - crate::error::ContinuousBackupsUnavailableError { + /// Consumes the builder and constructs a [`ContinuousBackupsUnavailableException`](crate::error::ContinuousBackupsUnavailableException) + pub fn build(self) -> crate::error::ContinuousBackupsUnavailableException { + crate::error::ContinuousBackupsUnavailableException { message: self.message, } } } } -impl ContinuousBackupsUnavailableError { - /// Creates a new builder-style object to manufacture [`ContinuousBackupsUnavailableError`](crate::error::ContinuousBackupsUnavailableError) - pub fn builder() -> crate::error::continuous_backups_unavailable_error::Builder { - crate::error::continuous_backups_unavailable_error::Builder::default() +impl ContinuousBackupsUnavailableException { + /// Creates a new builder-style object to manufacture [`ContinuousBackupsUnavailableException`](crate::error::ContinuousBackupsUnavailableException) + pub fn builder() -> crate::error::continuous_backups_unavailable_exception::Builder { + crate::error::continuous_backups_unavailable_exception::Builder::default() } } ///

    The transaction with the given request token is already in progress.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactionInProgressError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TransactionInProgressException { pub message: std::option::Option, } -impl std::fmt::Debug for TransactionInProgressError { +impl std::fmt::Debug for TransactionInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactionInProgressError"); + let mut formatter = f.debug_struct("TransactionInProgressException"); formatter.field("message", &self.message); formatter.finish() } } -impl TransactionInProgressError { +impl TransactionInProgressException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TransactionInProgressError { +impl std::fmt::Display for TransactionInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "TransactionInProgressError [TransactionInProgressException]" - )?; + write!(f, "TransactionInProgressException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for TransactionInProgressError {} -/// See [`TransactionInProgressError`](crate::error::TransactionInProgressError) -pub mod transaction_in_progress_error { - /// A builder for [`TransactionInProgressError`](crate::error::TransactionInProgressError) +impl std::error::Error for TransactionInProgressException {} +/// See [`TransactionInProgressException`](crate::error::TransactionInProgressException) +pub mod transaction_in_progress_exception { + /// A builder for [`TransactionInProgressException`](crate::error::TransactionInProgressException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6499,18 +6619,18 @@ pub mod transaction_in_progress_error { self.message = input; self } - /// Consumes the builder and constructs a [`TransactionInProgressError`](crate::error::TransactionInProgressError) - pub fn build(self) -> crate::error::TransactionInProgressError { - crate::error::TransactionInProgressError { + /// Consumes the builder and constructs a [`TransactionInProgressException`](crate::error::TransactionInProgressException) + pub fn build(self) -> crate::error::TransactionInProgressException { + crate::error::TransactionInProgressException { message: self.message, } } } } -impl TransactionInProgressError { - /// Creates a new builder-style object to manufacture [`TransactionInProgressError`](crate::error::TransactionInProgressError) - pub fn builder() -> crate::error::transaction_in_progress_error::Builder { - crate::error::transaction_in_progress_error::Builder::default() +impl TransactionInProgressException { + /// Creates a new builder-style object to manufacture [`TransactionInProgressException`](crate::error::TransactionInProgressException) + pub fn builder() -> crate::error::transaction_in_progress_exception::Builder { + crate::error::transaction_in_progress_exception::Builder::default() } } @@ -6713,42 +6833,38 @@ impl TransactionInProgressError { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactionCanceledError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TransactionCanceledException { pub message: std::option::Option, ///

    A list of cancellation reasons.

    - #[serde(rename = "CancellationReasons")] - #[serde(default)] pub cancellation_reasons: std::option::Option>, } -impl std::fmt::Debug for TransactionCanceledError { +impl std::fmt::Debug for TransactionCanceledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactionCanceledError"); + let mut formatter = f.debug_struct("TransactionCanceledException"); formatter.field("message", &self.message); formatter.field("cancellation_reasons", &self.cancellation_reasons); formatter.finish() } } -impl TransactionCanceledError { +impl TransactionCanceledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TransactionCanceledError { +impl std::fmt::Display for TransactionCanceledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TransactionCanceledError [TransactionCanceledException]")?; + write!(f, "TransactionCanceledException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for TransactionCanceledError {} -/// See [`TransactionCanceledError`](crate::error::TransactionCanceledError) -pub mod transaction_canceled_error { - /// A builder for [`TransactionCanceledError`](crate::error::TransactionCanceledError) +impl std::error::Error for TransactionCanceledException {} +/// See [`TransactionCanceledException`](crate::error::TransactionCanceledException) +pub mod transaction_canceled_exception { + /// A builder for [`TransactionCanceledException`](crate::error::TransactionCanceledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6781,59 +6897,54 @@ pub mod transaction_canceled_error { self.cancellation_reasons = input; self } - /// Consumes the builder and constructs a [`TransactionCanceledError`](crate::error::TransactionCanceledError) - pub fn build(self) -> crate::error::TransactionCanceledError { - crate::error::TransactionCanceledError { + /// Consumes the builder and constructs a [`TransactionCanceledException`](crate::error::TransactionCanceledException) + pub fn build(self) -> crate::error::TransactionCanceledException { + crate::error::TransactionCanceledException { message: self.message, cancellation_reasons: self.cancellation_reasons, } } } } -impl TransactionCanceledError { - /// Creates a new builder-style object to manufacture [`TransactionCanceledError`](crate::error::TransactionCanceledError) - pub fn builder() -> crate::error::transaction_canceled_error::Builder { - crate::error::transaction_canceled_error::Builder::default() +impl TransactionCanceledException { + /// Creates a new builder-style object to manufacture [`TransactionCanceledException`](crate::error::TransactionCanceledException) + pub fn builder() -> crate::error::transaction_canceled_exception::Builder { + crate::error::transaction_canceled_exception::Builder::default() } } ///

    DynamoDB rejected the request because you retried a request with a different payload but /// with an idempotent token that was already used.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IdempotentParameterMismatchError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IdempotentParameterMismatchException { pub message: std::option::Option, } -impl std::fmt::Debug for IdempotentParameterMismatchError { +impl std::fmt::Debug for IdempotentParameterMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IdempotentParameterMismatchError"); + let mut formatter = f.debug_struct("IdempotentParameterMismatchException"); formatter.field("message", &self.message); formatter.finish() } } -impl IdempotentParameterMismatchError { +impl IdempotentParameterMismatchException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IdempotentParameterMismatchError { +impl std::fmt::Display for IdempotentParameterMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "IdempotentParameterMismatchError [IdempotentParameterMismatchException]" - )?; + write!(f, "IdempotentParameterMismatchException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for IdempotentParameterMismatchError {} -/// See [`IdempotentParameterMismatchError`](crate::error::IdempotentParameterMismatchError) -pub mod idempotent_parameter_mismatch_error { - /// A builder for [`IdempotentParameterMismatchError`](crate::error::IdempotentParameterMismatchError) +impl std::error::Error for IdempotentParameterMismatchException {} +/// See [`IdempotentParameterMismatchException`](crate::error::IdempotentParameterMismatchException) +pub mod idempotent_parameter_mismatch_exception { + /// A builder for [`IdempotentParameterMismatchException`](crate::error::IdempotentParameterMismatchException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6848,54 +6959,52 @@ pub mod idempotent_parameter_mismatch_error { self.message = input; self } - /// Consumes the builder and constructs a [`IdempotentParameterMismatchError`](crate::error::IdempotentParameterMismatchError) - pub fn build(self) -> crate::error::IdempotentParameterMismatchError { - crate::error::IdempotentParameterMismatchError { + /// Consumes the builder and constructs a [`IdempotentParameterMismatchException`](crate::error::IdempotentParameterMismatchException) + pub fn build(self) -> crate::error::IdempotentParameterMismatchException { + crate::error::IdempotentParameterMismatchException { message: self.message, } } } } -impl IdempotentParameterMismatchError { - /// Creates a new builder-style object to manufacture [`IdempotentParameterMismatchError`](crate::error::IdempotentParameterMismatchError) - pub fn builder() -> crate::error::idempotent_parameter_mismatch_error::Builder { - crate::error::idempotent_parameter_mismatch_error::Builder::default() +impl IdempotentParameterMismatchException { + /// Creates a new builder-style object to manufacture [`IdempotentParameterMismatchException`](crate::error::IdempotentParameterMismatchException) + pub fn builder() -> crate::error::idempotent_parameter_mismatch_exception::Builder { + crate::error::idempotent_parameter_mismatch_exception::Builder::default() } } ///

    A target table with the specified name is either being created or deleted.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TableInUseError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TableInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for TableInUseError { +impl std::fmt::Debug for TableInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TableInUseError"); + let mut formatter = f.debug_struct("TableInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl TableInUseError { +impl TableInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TableInUseError { +impl std::fmt::Display for TableInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TableInUseError [TableInUseException]")?; + write!(f, "TableInUseException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for TableInUseError {} -/// See [`TableInUseError`](crate::error::TableInUseError) -pub mod table_in_use_error { - /// A builder for [`TableInUseError`](crate::error::TableInUseError) +impl std::error::Error for TableInUseException {} +/// See [`TableInUseException`](crate::error::TableInUseException) +pub mod table_in_use_exception { + /// A builder for [`TableInUseException`](crate::error::TableInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6910,54 +7019,52 @@ pub mod table_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`TableInUseError`](crate::error::TableInUseError) - pub fn build(self) -> crate::error::TableInUseError { - crate::error::TableInUseError { + /// Consumes the builder and constructs a [`TableInUseException`](crate::error::TableInUseException) + pub fn build(self) -> crate::error::TableInUseException { + crate::error::TableInUseException { message: self.message, } } } } -impl TableInUseError { - /// Creates a new builder-style object to manufacture [`TableInUseError`](crate::error::TableInUseError) - pub fn builder() -> crate::error::table_in_use_error::Builder { - crate::error::table_in_use_error::Builder::default() +impl TableInUseException { + /// Creates a new builder-style object to manufacture [`TableInUseException`](crate::error::TableInUseException) + pub fn builder() -> crate::error::table_in_use_exception::Builder { + crate::error::table_in_use_exception::Builder::default() } } ///

    A target table with the specified name already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TableAlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TableAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for TableAlreadyExistsError { +impl std::fmt::Debug for TableAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TableAlreadyExistsError"); + let mut formatter = f.debug_struct("TableAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl TableAlreadyExistsError { +impl TableAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TableAlreadyExistsError { +impl std::fmt::Display for TableAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TableAlreadyExistsError [TableAlreadyExistsException]")?; + write!(f, "TableAlreadyExistsException")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for TableAlreadyExistsError {} -/// See [`TableAlreadyExistsError`](crate::error::TableAlreadyExistsError) -pub mod table_already_exists_error { - /// A builder for [`TableAlreadyExistsError`](crate::error::TableAlreadyExistsError) +impl std::error::Error for TableAlreadyExistsException {} +/// See [`TableAlreadyExistsException`](crate::error::TableAlreadyExistsException) +pub mod table_already_exists_exception { + /// A builder for [`TableAlreadyExistsException`](crate::error::TableAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6972,57 +7079,52 @@ pub mod table_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`TableAlreadyExistsError`](crate::error::TableAlreadyExistsError) - pub fn build(self) -> crate::error::TableAlreadyExistsError { - crate::error::TableAlreadyExistsError { + /// Consumes the builder and constructs a [`TableAlreadyExistsException`](crate::error::TableAlreadyExistsException) + pub fn build(self) -> crate::error::TableAlreadyExistsException { + crate::error::TableAlreadyExistsException { message: self.message, } } } } -impl TableAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`TableAlreadyExistsError`](crate::error::TableAlreadyExistsError) - pub fn builder() -> crate::error::table_already_exists_error::Builder { - crate::error::table_already_exists_error::Builder::default() +impl TableAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`TableAlreadyExistsException`](crate::error::TableAlreadyExistsException) + pub fn builder() -> crate::error::table_already_exists_exception::Builder { + crate::error::table_already_exists_exception::Builder::default() } } ///

    Point in time recovery has not yet been enabled for this source table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PointInTimeRecoveryUnavailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PointInTimeRecoveryUnavailableException { pub message: std::option::Option, } -impl std::fmt::Debug for PointInTimeRecoveryUnavailableError { +impl std::fmt::Debug for PointInTimeRecoveryUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PointInTimeRecoveryUnavailableError"); + let mut formatter = f.debug_struct("PointInTimeRecoveryUnavailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl PointInTimeRecoveryUnavailableError { +impl PointInTimeRecoveryUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PointInTimeRecoveryUnavailableError { +impl std::fmt::Display for PointInTimeRecoveryUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PointInTimeRecoveryUnavailableError [PointInTimeRecoveryUnavailableException]" - )?; + write!(f, "PointInTimeRecoveryUnavailableException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for PointInTimeRecoveryUnavailableError {} -/// See [`PointInTimeRecoveryUnavailableError`](crate::error::PointInTimeRecoveryUnavailableError) -pub mod point_in_time_recovery_unavailable_error { - /// A builder for [`PointInTimeRecoveryUnavailableError`](crate::error::PointInTimeRecoveryUnavailableError) +impl std::error::Error for PointInTimeRecoveryUnavailableException {} +/// See [`PointInTimeRecoveryUnavailableException`](crate::error::PointInTimeRecoveryUnavailableException) +pub mod point_in_time_recovery_unavailable_exception { + /// A builder for [`PointInTimeRecoveryUnavailableException`](crate::error::PointInTimeRecoveryUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7037,54 +7139,52 @@ pub mod point_in_time_recovery_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`PointInTimeRecoveryUnavailableError`](crate::error::PointInTimeRecoveryUnavailableError) - pub fn build(self) -> crate::error::PointInTimeRecoveryUnavailableError { - crate::error::PointInTimeRecoveryUnavailableError { + /// Consumes the builder and constructs a [`PointInTimeRecoveryUnavailableException`](crate::error::PointInTimeRecoveryUnavailableException) + pub fn build(self) -> crate::error::PointInTimeRecoveryUnavailableException { + crate::error::PointInTimeRecoveryUnavailableException { message: self.message, } } } } -impl PointInTimeRecoveryUnavailableError { - /// Creates a new builder-style object to manufacture [`PointInTimeRecoveryUnavailableError`](crate::error::PointInTimeRecoveryUnavailableError) - pub fn builder() -> crate::error::point_in_time_recovery_unavailable_error::Builder { - crate::error::point_in_time_recovery_unavailable_error::Builder::default() +impl PointInTimeRecoveryUnavailableException { + /// Creates a new builder-style object to manufacture [`PointInTimeRecoveryUnavailableException`](crate::error::PointInTimeRecoveryUnavailableException) + pub fn builder() -> crate::error::point_in_time_recovery_unavailable_exception::Builder { + crate::error::point_in_time_recovery_unavailable_exception::Builder::default() } } ///

    An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidRestoreTimeError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidRestoreTimeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidRestoreTimeError { +impl std::fmt::Debug for InvalidRestoreTimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidRestoreTimeError"); + let mut formatter = f.debug_struct("InvalidRestoreTimeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidRestoreTimeError { +impl InvalidRestoreTimeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidRestoreTimeError { +impl std::fmt::Display for InvalidRestoreTimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidRestoreTimeError [InvalidRestoreTimeException]")?; + write!(f, "InvalidRestoreTimeException")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for InvalidRestoreTimeError {} -/// See [`InvalidRestoreTimeError`](crate::error::InvalidRestoreTimeError) -pub mod invalid_restore_time_error { - /// A builder for [`InvalidRestoreTimeError`](crate::error::InvalidRestoreTimeError) +impl std::error::Error for InvalidRestoreTimeException {} +/// See [`InvalidRestoreTimeException`](crate::error::InvalidRestoreTimeException) +pub mod invalid_restore_time_exception { + /// A builder for [`InvalidRestoreTimeException`](crate::error::InvalidRestoreTimeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7099,54 +7199,52 @@ pub mod invalid_restore_time_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidRestoreTimeError`](crate::error::InvalidRestoreTimeError) - pub fn build(self) -> crate::error::InvalidRestoreTimeError { - crate::error::InvalidRestoreTimeError { + /// Consumes the builder and constructs a [`InvalidRestoreTimeException`](crate::error::InvalidRestoreTimeException) + pub fn build(self) -> crate::error::InvalidRestoreTimeException { + crate::error::InvalidRestoreTimeException { message: self.message, } } } } -impl InvalidRestoreTimeError { - /// Creates a new builder-style object to manufacture [`InvalidRestoreTimeError`](crate::error::InvalidRestoreTimeError) - pub fn builder() -> crate::error::invalid_restore_time_error::Builder { - crate::error::invalid_restore_time_error::Builder::default() +impl InvalidRestoreTimeException { + /// Creates a new builder-style object to manufacture [`InvalidRestoreTimeException`](crate::error::InvalidRestoreTimeException) + pub fn builder() -> crate::error::invalid_restore_time_exception::Builder { + crate::error::invalid_restore_time_exception::Builder::default() } } ///

    Backup not found for the given BackupARN.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BackupNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BackupNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for BackupNotFoundError { +impl std::fmt::Debug for BackupNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BackupNotFoundError"); + let mut formatter = f.debug_struct("BackupNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl BackupNotFoundError { +impl BackupNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BackupNotFoundError { +impl std::fmt::Display for BackupNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BackupNotFoundError [BackupNotFoundException]")?; + write!(f, "BackupNotFoundException")?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; } Ok(()) } } -impl std::error::Error for BackupNotFoundError {} -/// See [`BackupNotFoundError`](crate::error::BackupNotFoundError) -pub mod backup_not_found_error { - /// A builder for [`BackupNotFoundError`](crate::error::BackupNotFoundError) +impl std::error::Error for BackupNotFoundException {} +/// See [`BackupNotFoundException`](crate::error::BackupNotFoundException) +pub mod backup_not_found_exception { + /// A builder for [`BackupNotFoundException`](crate::error::BackupNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7161,54 +7259,52 @@ pub mod backup_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`BackupNotFoundError`](crate::error::BackupNotFoundError) - pub fn build(self) -> crate::error::BackupNotFoundError { - crate::error::BackupNotFoundError { + /// Consumes the builder and constructs a [`BackupNotFoundException`](crate::error::BackupNotFoundException) + pub fn build(self) -> crate::error::BackupNotFoundException { + crate::error::BackupNotFoundException { message: self.message, } } } } -impl BackupNotFoundError { - /// Creates a new builder-style object to manufacture [`BackupNotFoundError`](crate::error::BackupNotFoundError) - pub fn builder() -> crate::error::backup_not_found_error::Builder { - crate::error::backup_not_found_error::Builder::default() +impl BackupNotFoundException { + /// Creates a new builder-style object to manufacture [`BackupNotFoundException`](crate::error::BackupNotFoundException) + pub fn builder() -> crate::error::backup_not_found_exception::Builder { + crate::error::backup_not_found_exception::Builder::default() } } ///

    There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BackupInUseError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BackupInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for BackupInUseError { +impl std::fmt::Debug for BackupInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BackupInUseError"); + let mut formatter = f.debug_struct("BackupInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl BackupInUseError { +impl BackupInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BackupInUseError { +impl std::fmt::Display for BackupInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BackupInUseError [BackupInUseException]")?; + write!(f, "BackupInUseException")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for BackupInUseError {} -/// See [`BackupInUseError`](crate::error::BackupInUseError) -pub mod backup_in_use_error { - /// A builder for [`BackupInUseError`](crate::error::BackupInUseError) +impl std::error::Error for BackupInUseException {} +/// See [`BackupInUseException`](crate::error::BackupInUseException) +pub mod backup_in_use_exception { + /// A builder for [`BackupInUseException`](crate::error::BackupInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7223,55 +7319,53 @@ pub mod backup_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`BackupInUseError`](crate::error::BackupInUseError) - pub fn build(self) -> crate::error::BackupInUseError { - crate::error::BackupInUseError { + /// Consumes the builder and constructs a [`BackupInUseException`](crate::error::BackupInUseException) + pub fn build(self) -> crate::error::BackupInUseException { + crate::error::BackupInUseException { message: self.message, } } } } -impl BackupInUseError { - /// Creates a new builder-style object to manufacture [`BackupInUseError`](crate::error::BackupInUseError) - pub fn builder() -> crate::error::backup_in_use_error::Builder { - crate::error::backup_in_use_error::Builder::default() +impl BackupInUseException { + /// Creates a new builder-style object to manufacture [`BackupInUseException`](crate::error::BackupInUseException) + pub fn builder() -> crate::error::backup_in_use_exception::Builder { + crate::error::backup_in_use_exception::Builder::default() } } ///

    The specified ExportTime is outside of the point in time recovery /// window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidExportTimeError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidExportTimeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidExportTimeError { +impl std::fmt::Debug for InvalidExportTimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidExportTimeError"); + let mut formatter = f.debug_struct("InvalidExportTimeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidExportTimeError { +impl InvalidExportTimeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidExportTimeError { +impl std::fmt::Display for InvalidExportTimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidExportTimeError [InvalidExportTimeException]")?; + write!(f, "InvalidExportTimeException")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for InvalidExportTimeError {} -/// See [`InvalidExportTimeError`](crate::error::InvalidExportTimeError) -pub mod invalid_export_time_error { - /// A builder for [`InvalidExportTimeError`](crate::error::InvalidExportTimeError) +impl std::error::Error for InvalidExportTimeException {} +/// See [`InvalidExportTimeException`](crate::error::InvalidExportTimeException) +pub mod invalid_export_time_exception { + /// A builder for [`InvalidExportTimeException`](crate::error::InvalidExportTimeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7286,54 +7380,52 @@ pub mod invalid_export_time_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidExportTimeError`](crate::error::InvalidExportTimeError) - pub fn build(self) -> crate::error::InvalidExportTimeError { - crate::error::InvalidExportTimeError { + /// Consumes the builder and constructs a [`InvalidExportTimeException`](crate::error::InvalidExportTimeException) + pub fn build(self) -> crate::error::InvalidExportTimeException { + crate::error::InvalidExportTimeException { message: self.message, } } } } -impl InvalidExportTimeError { - /// Creates a new builder-style object to manufacture [`InvalidExportTimeError`](crate::error::InvalidExportTimeError) - pub fn builder() -> crate::error::invalid_export_time_error::Builder { - crate::error::invalid_export_time_error::Builder::default() +impl InvalidExportTimeException { + /// Creates a new builder-style object to manufacture [`InvalidExportTimeException`](crate::error::InvalidExportTimeException) + pub fn builder() -> crate::error::invalid_export_time_exception::Builder { + crate::error::invalid_export_time_exception::Builder::default() } } ///

    There was a conflict when writing to the specified S3 bucket.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportConflictError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ExportConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ExportConflictError { +impl std::fmt::Debug for ExportConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportConflictError"); + let mut formatter = f.debug_struct("ExportConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExportConflictError { +impl ExportConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExportConflictError { +impl std::fmt::Display for ExportConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExportConflictError [ExportConflictException]")?; + write!(f, "ExportConflictException")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for ExportConflictError {} -/// See [`ExportConflictError`](crate::error::ExportConflictError) -pub mod export_conflict_error { - /// A builder for [`ExportConflictError`](crate::error::ExportConflictError) +impl std::error::Error for ExportConflictException {} +/// See [`ExportConflictException`](crate::error::ExportConflictException) +pub mod export_conflict_exception { + /// A builder for [`ExportConflictException`](crate::error::ExportConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7348,18 +7440,18 @@ pub mod export_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExportConflictError`](crate::error::ExportConflictError) - pub fn build(self) -> crate::error::ExportConflictError { - crate::error::ExportConflictError { + /// Consumes the builder and constructs a [`ExportConflictException`](crate::error::ExportConflictException) + pub fn build(self) -> crate::error::ExportConflictException { + crate::error::ExportConflictException { message: self.message, } } } } -impl ExportConflictError { - /// Creates a new builder-style object to manufacture [`ExportConflictError`](crate::error::ExportConflictError) - pub fn builder() -> crate::error::export_conflict_error::Builder { - crate::error::export_conflict_error::Builder::default() +impl ExportConflictException { + /// Creates a new builder-style object to manufacture [`ExportConflictException`](crate::error::ExportConflictException) + pub fn builder() -> crate::error::export_conflict_exception::Builder { + crate::error::export_conflict_exception::Builder::default() } } @@ -7367,37 +7459,35 @@ impl ExportConflictError { /// There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DuplicateItemError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DuplicateItemException { pub message: std::option::Option, } -impl std::fmt::Debug for DuplicateItemError { +impl std::fmt::Debug for DuplicateItemException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DuplicateItemError"); + let mut formatter = f.debug_struct("DuplicateItemException"); formatter.field("message", &self.message); formatter.finish() } } -impl DuplicateItemError { +impl DuplicateItemException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DuplicateItemError { +impl std::fmt::Display for DuplicateItemException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DuplicateItemError [DuplicateItemException]")?; + write!(f, "DuplicateItemException")?; if let Some(inner_28) = &self.message { write!(f, ": {}", inner_28)?; } Ok(()) } } -impl std::error::Error for DuplicateItemError {} -/// See [`DuplicateItemError`](crate::error::DuplicateItemError) -pub mod duplicate_item_error { - /// A builder for [`DuplicateItemError`](crate::error::DuplicateItemError) +impl std::error::Error for DuplicateItemException {} +/// See [`DuplicateItemException`](crate::error::DuplicateItemException) +pub mod duplicate_item_exception { + /// A builder for [`DuplicateItemException`](crate::error::DuplicateItemException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7412,54 +7502,52 @@ pub mod duplicate_item_error { self.message = input; self } - /// Consumes the builder and constructs a [`DuplicateItemError`](crate::error::DuplicateItemError) - pub fn build(self) -> crate::error::DuplicateItemError { - crate::error::DuplicateItemError { + /// Consumes the builder and constructs a [`DuplicateItemException`](crate::error::DuplicateItemException) + pub fn build(self) -> crate::error::DuplicateItemException { + crate::error::DuplicateItemException { message: self.message, } } } } -impl DuplicateItemError { - /// Creates a new builder-style object to manufacture [`DuplicateItemError`](crate::error::DuplicateItemError) - pub fn builder() -> crate::error::duplicate_item_error::Builder { - crate::error::duplicate_item_error::Builder::default() +impl DuplicateItemException { + /// Creates a new builder-style object to manufacture [`DuplicateItemException`](crate::error::DuplicateItemException) + pub fn builder() -> crate::error::duplicate_item_exception::Builder { + crate::error::duplicate_item_exception::Builder::default() } } ///

    The specified export was not found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ExportNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ExportNotFoundError { +impl std::fmt::Debug for ExportNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportNotFoundError"); + let mut formatter = f.debug_struct("ExportNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExportNotFoundError { +impl ExportNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExportNotFoundError { +impl std::fmt::Display for ExportNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExportNotFoundError [ExportNotFoundException]")?; + write!(f, "ExportNotFoundException")?; if let Some(inner_29) = &self.message { write!(f, ": {}", inner_29)?; } Ok(()) } } -impl std::error::Error for ExportNotFoundError {} -/// See [`ExportNotFoundError`](crate::error::ExportNotFoundError) -pub mod export_not_found_error { - /// A builder for [`ExportNotFoundError`](crate::error::ExportNotFoundError) +impl std::error::Error for ExportNotFoundException {} +/// See [`ExportNotFoundException`](crate::error::ExportNotFoundException) +pub mod export_not_found_exception { + /// A builder for [`ExportNotFoundException`](crate::error::ExportNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7474,57 +7562,52 @@ pub mod export_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExportNotFoundError`](crate::error::ExportNotFoundError) - pub fn build(self) -> crate::error::ExportNotFoundError { - crate::error::ExportNotFoundError { + /// Consumes the builder and constructs a [`ExportNotFoundException`](crate::error::ExportNotFoundException) + pub fn build(self) -> crate::error::ExportNotFoundException { + crate::error::ExportNotFoundException { message: self.message, } } } } -impl ExportNotFoundError { - /// Creates a new builder-style object to manufacture [`ExportNotFoundError`](crate::error::ExportNotFoundError) - pub fn builder() -> crate::error::export_not_found_error::Builder { - crate::error::export_not_found_error::Builder::default() +impl ExportNotFoundException { + /// Creates a new builder-style object to manufacture [`ExportNotFoundException`](crate::error::ExportNotFoundException) + pub fn builder() -> crate::error::export_not_found_exception::Builder { + crate::error::export_not_found_exception::Builder::default() } } ///

    The specified global table already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GlobalTableAlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GlobalTableAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for GlobalTableAlreadyExistsError { +impl std::fmt::Debug for GlobalTableAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GlobalTableAlreadyExistsError"); + let mut formatter = f.debug_struct("GlobalTableAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl GlobalTableAlreadyExistsError { +impl GlobalTableAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for GlobalTableAlreadyExistsError { +impl std::fmt::Display for GlobalTableAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "GlobalTableAlreadyExistsError [GlobalTableAlreadyExistsException]" - )?; + write!(f, "GlobalTableAlreadyExistsException")?; if let Some(inner_30) = &self.message { write!(f, ": {}", inner_30)?; } Ok(()) } } -impl std::error::Error for GlobalTableAlreadyExistsError {} -/// See [`GlobalTableAlreadyExistsError`](crate::error::GlobalTableAlreadyExistsError) -pub mod global_table_already_exists_error { - /// A builder for [`GlobalTableAlreadyExistsError`](crate::error::GlobalTableAlreadyExistsError) +impl std::error::Error for GlobalTableAlreadyExistsException {} +/// See [`GlobalTableAlreadyExistsException`](crate::error::GlobalTableAlreadyExistsException) +pub mod global_table_already_exists_exception { + /// A builder for [`GlobalTableAlreadyExistsException`](crate::error::GlobalTableAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7539,17 +7622,17 @@ pub mod global_table_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`GlobalTableAlreadyExistsError`](crate::error::GlobalTableAlreadyExistsError) - pub fn build(self) -> crate::error::GlobalTableAlreadyExistsError { - crate::error::GlobalTableAlreadyExistsError { + /// Consumes the builder and constructs a [`GlobalTableAlreadyExistsException`](crate::error::GlobalTableAlreadyExistsException) + pub fn build(self) -> crate::error::GlobalTableAlreadyExistsException { + crate::error::GlobalTableAlreadyExistsException { message: self.message, } } } } -impl GlobalTableAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`GlobalTableAlreadyExistsError`](crate::error::GlobalTableAlreadyExistsError) - pub fn builder() -> crate::error::global_table_already_exists_error::Builder { - crate::error::global_table_already_exists_error::Builder::default() +impl GlobalTableAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`GlobalTableAlreadyExistsException`](crate::error::GlobalTableAlreadyExistsException) + pub fn builder() -> crate::error::global_table_already_exists_exception::Builder { + crate::error::global_table_already_exists_exception::Builder::default() } } diff --git a/sdk/dynamodb/src/error_meta.rs b/sdk/dynamodb/src/error_meta.rs index 4fd0db1113a6..0770d69ff213 100644 --- a/sdk/dynamodb/src/error_meta.rs +++ b/sdk/dynamodb/src/error_meta.rs @@ -2,71 +2,73 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - BackupInUseError(crate::error::BackupInUseError), - BackupNotFoundError(crate::error::BackupNotFoundError), - ConditionalCheckFailedError(crate::error::ConditionalCheckFailedError), - ContinuousBackupsUnavailableError(crate::error::ContinuousBackupsUnavailableError), - DuplicateItemError(crate::error::DuplicateItemError), - ExportConflictError(crate::error::ExportConflictError), - ExportNotFoundError(crate::error::ExportNotFoundError), - GlobalTableAlreadyExistsError(crate::error::GlobalTableAlreadyExistsError), - GlobalTableNotFoundError(crate::error::GlobalTableNotFoundError), - IdempotentParameterMismatchError(crate::error::IdempotentParameterMismatchError), - IndexNotFoundError(crate::error::IndexNotFoundError), + BackupInUseException(crate::error::BackupInUseException), + BackupNotFoundException(crate::error::BackupNotFoundException), + ConditionalCheckFailedException(crate::error::ConditionalCheckFailedException), + ContinuousBackupsUnavailableException(crate::error::ContinuousBackupsUnavailableException), + DuplicateItemException(crate::error::DuplicateItemException), + ExportConflictException(crate::error::ExportConflictException), + ExportNotFoundException(crate::error::ExportNotFoundException), + GlobalTableAlreadyExistsException(crate::error::GlobalTableAlreadyExistsException), + GlobalTableNotFoundException(crate::error::GlobalTableNotFoundException), + IdempotentParameterMismatchException(crate::error::IdempotentParameterMismatchException), + IndexNotFoundException(crate::error::IndexNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidEndpointError(crate::error::InvalidEndpointError), - InvalidExportTimeError(crate::error::InvalidExportTimeError), - InvalidRestoreTimeError(crate::error::InvalidRestoreTimeError), - ItemCollectionSizeLimitExceededError(crate::error::ItemCollectionSizeLimitExceededError), - LimitExceededError(crate::error::LimitExceededError), - PointInTimeRecoveryUnavailableError(crate::error::PointInTimeRecoveryUnavailableError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - ReplicaAlreadyExistsError(crate::error::ReplicaAlreadyExistsError), - ReplicaNotFoundError(crate::error::ReplicaNotFoundError), + InvalidEndpointException(crate::error::InvalidEndpointException), + InvalidExportTimeException(crate::error::InvalidExportTimeException), + InvalidRestoreTimeException(crate::error::InvalidRestoreTimeException), + ItemCollectionSizeLimitExceededException( + crate::error::ItemCollectionSizeLimitExceededException, + ), + LimitExceededException(crate::error::LimitExceededException), + PointInTimeRecoveryUnavailableException(crate::error::PointInTimeRecoveryUnavailableException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + ReplicaAlreadyExistsException(crate::error::ReplicaAlreadyExistsException), + ReplicaNotFoundException(crate::error::ReplicaNotFoundException), RequestLimitExceeded(crate::error::RequestLimitExceeded), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TableAlreadyExistsError(crate::error::TableAlreadyExistsError), - TableInUseError(crate::error::TableInUseError), - TableNotFoundError(crate::error::TableNotFoundError), - TransactionCanceledError(crate::error::TransactionCanceledError), - TransactionConflictError(crate::error::TransactionConflictError), - TransactionInProgressError(crate::error::TransactionInProgressError), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TableAlreadyExistsException(crate::error::TableAlreadyExistsException), + TableInUseException(crate::error::TableInUseException), + TableNotFoundException(crate::error::TableNotFoundException), + TransactionCanceledException(crate::error::TransactionCanceledException), + TransactionConflictException(crate::error::TransactionConflictException), + TransactionInProgressException(crate::error::TransactionInProgressException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::BackupInUseError(inner) => inner.fmt(f), - Error::BackupNotFoundError(inner) => inner.fmt(f), - Error::ConditionalCheckFailedError(inner) => inner.fmt(f), - Error::ContinuousBackupsUnavailableError(inner) => inner.fmt(f), - Error::DuplicateItemError(inner) => inner.fmt(f), - Error::ExportConflictError(inner) => inner.fmt(f), - Error::ExportNotFoundError(inner) => inner.fmt(f), - Error::GlobalTableAlreadyExistsError(inner) => inner.fmt(f), - Error::GlobalTableNotFoundError(inner) => inner.fmt(f), - Error::IdempotentParameterMismatchError(inner) => inner.fmt(f), - Error::IndexNotFoundError(inner) => inner.fmt(f), + Error::BackupInUseException(inner) => inner.fmt(f), + Error::BackupNotFoundException(inner) => inner.fmt(f), + Error::ConditionalCheckFailedException(inner) => inner.fmt(f), + Error::ContinuousBackupsUnavailableException(inner) => inner.fmt(f), + Error::DuplicateItemException(inner) => inner.fmt(f), + Error::ExportConflictException(inner) => inner.fmt(f), + Error::ExportNotFoundException(inner) => inner.fmt(f), + Error::GlobalTableAlreadyExistsException(inner) => inner.fmt(f), + Error::GlobalTableNotFoundException(inner) => inner.fmt(f), + Error::IdempotentParameterMismatchException(inner) => inner.fmt(f), + Error::IndexNotFoundException(inner) => inner.fmt(f), Error::InternalServerError(inner) => inner.fmt(f), - Error::InvalidEndpointError(inner) => inner.fmt(f), - Error::InvalidExportTimeError(inner) => inner.fmt(f), - Error::InvalidRestoreTimeError(inner) => inner.fmt(f), - Error::ItemCollectionSizeLimitExceededError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::PointInTimeRecoveryUnavailableError(inner) => inner.fmt(f), - Error::ProvisionedThroughputExceededError(inner) => inner.fmt(f), - Error::ReplicaAlreadyExistsError(inner) => inner.fmt(f), - Error::ReplicaNotFoundError(inner) => inner.fmt(f), + Error::InvalidEndpointException(inner) => inner.fmt(f), + Error::InvalidExportTimeException(inner) => inner.fmt(f), + Error::InvalidRestoreTimeException(inner) => inner.fmt(f), + Error::ItemCollectionSizeLimitExceededException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::PointInTimeRecoveryUnavailableException(inner) => inner.fmt(f), + Error::ProvisionedThroughputExceededException(inner) => inner.fmt(f), + Error::ReplicaAlreadyExistsException(inner) => inner.fmt(f), + Error::ReplicaNotFoundException(inner) => inner.fmt(f), Error::RequestLimitExceeded(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::TableAlreadyExistsError(inner) => inner.fmt(f), - Error::TableInUseError(inner) => inner.fmt(f), - Error::TableNotFoundError(inner) => inner.fmt(f), - Error::TransactionCanceledError(inner) => inner.fmt(f), - Error::TransactionConflictError(inner) => inner.fmt(f), - Error::TransactionInProgressError(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::TableAlreadyExistsException(inner) => inner.fmt(f), + Error::TableInUseException(inner) => inner.fmt(f), + Error::TableNotFoundException(inner) => inner.fmt(f), + Error::TransactionCanceledException(inner) => inner.fmt(f), + Error::TransactionConflictException(inner) => inner.fmt(f), + Error::TransactionInProgressException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -96,17 +98,17 @@ impl From> for Er crate::error::BatchGetItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::BatchGetItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::BatchGetItemErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::BatchGetItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } + crate::error::BatchGetItemErrorKind::ProvisionedThroughputExceededException( + inner, + ) => Error::ProvisionedThroughputExceededException(inner), crate::error::BatchGetItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::BatchGetItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::BatchGetItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::BatchGetItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -121,20 +123,20 @@ impl From> for crate::error::BatchWriteItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::BatchWriteItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::BatchWriteItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededError( + crate::error::BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededException( inner, - ) => Error::ItemCollectionSizeLimitExceededError(inner), - crate::error::BatchWriteItemErrorKind::ProvisionedThroughputExceededError( + ) => Error::ItemCollectionSizeLimitExceededException(inner), + crate::error::BatchWriteItemErrorKind::ProvisionedThroughputExceededException( inner, - ) => Error::ProvisionedThroughputExceededError(inner), + ) => Error::ProvisionedThroughputExceededException(inner), crate::error::BatchWriteItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::BatchWriteItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::BatchWriteItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::BatchWriteItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -146,26 +148,26 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateBackupErrorKind::BackupInUseError(inner) => { - Error::BackupInUseError(inner) - } - crate::error::CreateBackupErrorKind::ContinuousBackupsUnavailableError(inner) => { - Error::ContinuousBackupsUnavailableError(inner) + crate::error::CreateBackupErrorKind::BackupInUseException(inner) => { + Error::BackupInUseException(inner) } + crate::error::CreateBackupErrorKind::ContinuousBackupsUnavailableException( + inner, + ) => Error::ContinuousBackupsUnavailableException(inner), crate::error::CreateBackupErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreateBackupErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::CreateBackupErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::CreateBackupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateBackupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateBackupErrorKind::TableInUseError(inner) => { - Error::TableInUseError(inner) + crate::error::CreateBackupErrorKind::TableInUseException(inner) => { + Error::TableInUseException(inner) } - crate::error::CreateBackupErrorKind::TableNotFoundError(inner) => { - Error::TableNotFoundError(inner) + crate::error::CreateBackupErrorKind::TableNotFoundException(inner) => { + Error::TableNotFoundException(inner) } crate::error::CreateBackupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -177,20 +179,20 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateGlobalTableErrorKind::GlobalTableAlreadyExistsError(inner) => { - Error::GlobalTableAlreadyExistsError(inner) - } + crate::error::CreateGlobalTableErrorKind::GlobalTableAlreadyExistsException( + inner, + ) => Error::GlobalTableAlreadyExistsException(inner), crate::error::CreateGlobalTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreateGlobalTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::CreateGlobalTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::CreateGlobalTableErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateGlobalTableErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateGlobalTableErrorKind::TableNotFoundError(inner) => { - Error::TableNotFoundError(inner) + crate::error::CreateGlobalTableErrorKind::TableNotFoundException(inner) => { + Error::TableNotFoundException(inner) } crate::error::CreateGlobalTableErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -207,14 +209,14 @@ impl From> for Err crate::error::CreateTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreateTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::CreateTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::CreateTableErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateTableErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateTableErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::CreateTableErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } crate::error::CreateTableErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -226,20 +228,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteBackupErrorKind::BackupInUseError(inner) => { - Error::BackupInUseError(inner) + crate::error::DeleteBackupErrorKind::BackupInUseException(inner) => { + Error::BackupInUseException(inner) } - crate::error::DeleteBackupErrorKind::BackupNotFoundError(inner) => { - Error::BackupNotFoundError(inner) + crate::error::DeleteBackupErrorKind::BackupNotFoundException(inner) => { + Error::BackupNotFoundException(inner) } crate::error::DeleteBackupErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DeleteBackupErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DeleteBackupErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::DeleteBackupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteBackupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::DeleteBackupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -251,29 +253,29 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteItemErrorKind::ConditionalCheckFailedError(inner) => { - Error::ConditionalCheckFailedError(inner) + crate::error::DeleteItemErrorKind::ConditionalCheckFailedException(inner) => { + Error::ConditionalCheckFailedException(inner) } crate::error::DeleteItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DeleteItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::DeleteItemErrorKind::ItemCollectionSizeLimitExceededError(inner) => { - Error::ItemCollectionSizeLimitExceededError(inner) - } - crate::error::DeleteItemErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::DeleteItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } + crate::error::DeleteItemErrorKind::ItemCollectionSizeLimitExceededException( + inner, + ) => Error::ItemCollectionSizeLimitExceededException(inner), + crate::error::DeleteItemErrorKind::ProvisionedThroughputExceededException( + inner, + ) => Error::ProvisionedThroughputExceededException(inner), crate::error::DeleteItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::DeleteItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteItemErrorKind::TransactionConflictError(inner) => { - Error::TransactionConflictError(inner) + crate::error::DeleteItemErrorKind::TransactionConflictException(inner) => { + Error::TransactionConflictException(inner) } crate::error::DeleteItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -288,17 +290,17 @@ impl From> for Err crate::error::DeleteTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DeleteTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DeleteTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::DeleteTableErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteTableErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteTableErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::DeleteTableErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::DeleteTableErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteTableErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DeleteTableErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -310,14 +312,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeBackupErrorKind::BackupNotFoundError(inner) => { - Error::BackupNotFoundError(inner) + crate::error::DescribeBackupErrorKind::BackupNotFoundException(inner) => { + Error::BackupNotFoundException(inner) } crate::error::DescribeBackupErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeBackupErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DescribeBackupErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::DescribeBackupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -334,11 +336,11 @@ impl From { Error::InternalServerError(inner) } - crate::error::DescribeContinuousBackupsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::DescribeContinuousBackupsErrorKind::TableNotFoundError(inner) => { - Error::TableNotFoundError(inner) + crate::error::DescribeContinuousBackupsErrorKind::InvalidEndpointException( + inner, + ) => Error::InvalidEndpointException(inner), + crate::error::DescribeContinuousBackupsErrorKind::TableNotFoundException(inner) => { + Error::TableNotFoundException(inner) } crate::error::DescribeContinuousBackupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -357,9 +359,9 @@ impl From { Error::InternalServerError(inner) } - crate::error::DescribeContributorInsightsErrorKind::ResourceNotFoundError( + crate::error::DescribeContributorInsightsErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::ResourceNotFoundException(inner), crate::error::DescribeContributorInsightsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -384,14 +386,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeExportErrorKind::ExportNotFoundError(inner) => { - Error::ExportNotFoundError(inner) + crate::error::DescribeExportErrorKind::ExportNotFoundException(inner) => { + Error::ExportNotFoundException(inner) } crate::error::DescribeExportErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeExportErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DescribeExportErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::DescribeExportErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -403,14 +405,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeGlobalTableErrorKind::GlobalTableNotFoundError(inner) => { - Error::GlobalTableNotFoundError(inner) + crate::error::DescribeGlobalTableErrorKind::GlobalTableNotFoundException(inner) => { + Error::GlobalTableNotFoundException(inner) } crate::error::DescribeGlobalTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeGlobalTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DescribeGlobalTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::DescribeGlobalTableErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -425,20 +427,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundError( - inner, - ) => Error::GlobalTableNotFoundError(inner), - crate::error::DescribeGlobalTableSettingsErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::DescribeGlobalTableSettingsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::DescribeGlobalTableSettingsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundException(inner) => Error::GlobalTableNotFoundException(inner), + crate::error::DescribeGlobalTableSettingsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::DescribeGlobalTableSettingsErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::DescribeGlobalTableSettingsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -452,8 +446,8 @@ impl From match err.kind { crate::error::DescribeKinesisStreamingDestinationErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointError(inner) => Error::InvalidEndpointError(inner), - crate::error::DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), + crate::error::DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), crate::error::DescribeKinesisStreamingDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -467,8 +461,8 @@ impl From> for crate::error::DescribeLimitsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeLimitsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DescribeLimitsErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::DescribeLimitsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -483,11 +477,11 @@ impl From> for E crate::error::DescribeTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DescribeTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::DescribeTableErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeTableErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeTableErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -502,17 +496,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTableReplicaAutoScalingErrorKind::InternalServerError( - inner, - ) => Error::InternalServerError(inner), - crate::error::DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::DescribeTableReplicaAutoScalingErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DescribeTableReplicaAutoScalingErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DescribeTableReplicaAutoScalingErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -524,11 +512,11 @@ impl From> crate::error::DescribeTimeToLiveErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DescribeTimeToLiveErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::DescribeTimeToLiveErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::DescribeTimeToLiveErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeTimeToLiveErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeTimeToLiveErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -547,10 +535,10 @@ impl From match err.kind { crate::error::DisableKinesisStreamingDestinationErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::DisableKinesisStreamingDestinationErrorKind::InvalidEndpointError(inner) => Error::InvalidEndpointError(inner), - crate::error::DisableKinesisStreamingDestinationErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceInUseError(inner) => Error::ResourceInUseError(inner), - crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), + crate::error::DisableKinesisStreamingDestinationErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::DisableKinesisStreamingDestinationErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceInUseException(inner) => Error::ResourceInUseException(inner), + crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), crate::error::DisableKinesisStreamingDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -564,26 +552,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EnableKinesisStreamingDestinationErrorKind::InternalServerError( - inner, - ) => Error::InternalServerError(inner), - crate::error::EnableKinesisStreamingDestinationErrorKind::InvalidEndpointError( - inner, - ) => Error::InvalidEndpointError(inner), - crate::error::EnableKinesisStreamingDestinationErrorKind::LimitExceededError( - inner, - ) => Error::LimitExceededError(inner), - crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceInUseError( - inner, - ) => Error::ResourceInUseError(inner), - crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::EnableKinesisStreamingDestinationErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::EnableKinesisStreamingDestinationErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::EnableKinesisStreamingDestinationErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::EnableKinesisStreamingDestinationErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceInUseException(inner) => Error::ResourceInUseException(inner), + crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::EnableKinesisStreamingDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -591,35 +567,17 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteStatementErrorKind::ConditionalCheckFailedError(inner) => { - Error::ConditionalCheckFailedError(inner) - } - crate::error::ExecuteStatementErrorKind::DuplicateItemError(inner) => { - Error::DuplicateItemError(inner) - } - crate::error::ExecuteStatementErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededError( - inner, - ) => Error::ItemCollectionSizeLimitExceededError(inner), - crate::error::ExecuteStatementErrorKind::ProvisionedThroughputExceededError( - inner, - ) => Error::ProvisionedThroughputExceededError(inner), - crate::error::ExecuteStatementErrorKind::RequestLimitExceeded(inner) => { - Error::RequestLimitExceeded(inner) - } - crate::error::ExecuteStatementErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::ExecuteStatementErrorKind::TransactionConflictError(inner) => { - Error::TransactionConflictError(inner) - } - crate::error::ExecuteStatementErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::ExecuteStatementErrorKind::ConditionalCheckFailedException(inner) => Error::ConditionalCheckFailedException(inner), + crate::error::ExecuteStatementErrorKind::DuplicateItemException(inner) => Error::DuplicateItemException(inner), + crate::error::ExecuteStatementErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededException(inner) => Error::ItemCollectionSizeLimitExceededException(inner), + crate::error::ExecuteStatementErrorKind::ProvisionedThroughputExceededException(inner) => Error::ProvisionedThroughputExceededException(inner), + crate::error::ExecuteStatementErrorKind::RequestLimitExceeded(inner) => Error::RequestLimitExceeded(inner), + crate::error::ExecuteStatementErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ExecuteStatementErrorKind::TransactionConflictException(inner) => Error::TransactionConflictException(inner), + crate::error::ExecuteStatementErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -627,32 +585,16 @@ impl From> fo impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteTransactionErrorKind::IdempotentParameterMismatchError( - inner, - ) => Error::IdempotentParameterMismatchError(inner), - crate::error::ExecuteTransactionErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::ExecuteTransactionErrorKind::ProvisionedThroughputExceededError( - inner, - ) => Error::ProvisionedThroughputExceededError(inner), - crate::error::ExecuteTransactionErrorKind::RequestLimitExceeded(inner) => { - Error::RequestLimitExceeded(inner) - } - crate::error::ExecuteTransactionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::ExecuteTransactionErrorKind::TransactionCanceledError(inner) => { - Error::TransactionCanceledError(inner) - } - crate::error::ExecuteTransactionErrorKind::TransactionInProgressError(inner) => { - Error::TransactionInProgressError(inner) - } - crate::error::ExecuteTransactionErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::ExecuteTransactionErrorKind::IdempotentParameterMismatchException(inner) => Error::IdempotentParameterMismatchException(inner), + crate::error::ExecuteTransactionErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::ExecuteTransactionErrorKind::ProvisionedThroughputExceededException(inner) => Error::ProvisionedThroughputExceededException(inner), + crate::error::ExecuteTransactionErrorKind::RequestLimitExceeded(inner) => Error::RequestLimitExceeded(inner), + crate::error::ExecuteTransactionErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ExecuteTransactionErrorKind::TransactionCanceledException(inner) => Error::TransactionCanceledException(inner), + crate::error::ExecuteTransactionErrorKind::TransactionInProgressException(inner) => Error::TransactionInProgressException(inner), + crate::error::ExecuteTransactionErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -663,12 +605,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ExportTableToPointInTimeErrorKind::ExportConflictError(inner) => Error::ExportConflictError(inner), + crate::error::ExportTableToPointInTimeErrorKind::ExportConflictException(inner) => Error::ExportConflictException(inner), crate::error::ExportTableToPointInTimeErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::ExportTableToPointInTimeErrorKind::InvalidExportTimeError(inner) => Error::InvalidExportTimeError(inner), - crate::error::ExportTableToPointInTimeErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(inner) => Error::PointInTimeRecoveryUnavailableError(inner), - crate::error::ExportTableToPointInTimeErrorKind::TableNotFoundError(inner) => Error::TableNotFoundError(inner), + crate::error::ExportTableToPointInTimeErrorKind::InvalidExportTimeException(inner) => Error::InvalidExportTimeException(inner), + crate::error::ExportTableToPointInTimeErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(inner) => Error::PointInTimeRecoveryUnavailableException(inner), + crate::error::ExportTableToPointInTimeErrorKind::TableNotFoundException(inner) => Error::TableNotFoundException(inner), crate::error::ExportTableToPointInTimeErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -682,17 +624,17 @@ impl From> for Error { crate::error::GetItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::GetItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::GetItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::GetItemErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::GetItemErrorKind::ProvisionedThroughputExceededException(inner) => { + Error::ProvisionedThroughputExceededException(inner) } crate::error::GetItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::GetItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::GetItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -707,8 +649,8 @@ impl From> for Err crate::error::ListBackupsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListBackupsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::ListBackupsErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::ListBackupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -725,9 +667,9 @@ impl From { Error::InternalServerError(inner) } - crate::error::ListContributorInsightsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } + crate::error::ListContributorInsightsErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::ListContributorInsightsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -743,8 +685,8 @@ impl From> for Err crate::error::ListExportsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListExportsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ListExportsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::ListExportsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -759,8 +701,8 @@ impl From> fo crate::error::ListGlobalTablesErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListGlobalTablesErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::ListGlobalTablesErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::ListGlobalTablesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -777,8 +719,8 @@ impl From> for Erro crate::error::ListTablesErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListTablesErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::ListTablesErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } crate::error::ListTablesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -793,11 +735,11 @@ impl From> crate::error::ListTagsOfResourceErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListTagsOfResourceErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::ListTagsOfResourceErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::ListTagsOfResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsOfResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListTagsOfResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -811,29 +753,29 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutItemErrorKind::ConditionalCheckFailedError(inner) => { - Error::ConditionalCheckFailedError(inner) + crate::error::PutItemErrorKind::ConditionalCheckFailedException(inner) => { + Error::ConditionalCheckFailedException(inner) } crate::error::PutItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::PutItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::PutItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::PutItemErrorKind::ItemCollectionSizeLimitExceededError(inner) => { - Error::ItemCollectionSizeLimitExceededError(inner) + crate::error::PutItemErrorKind::ItemCollectionSizeLimitExceededException(inner) => { + Error::ItemCollectionSizeLimitExceededException(inner) } - crate::error::PutItemErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::PutItemErrorKind::ProvisionedThroughputExceededException(inner) => { + Error::ProvisionedThroughputExceededException(inner) } crate::error::PutItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::PutItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutItemErrorKind::TransactionConflictError(inner) => { - Error::TransactionConflictError(inner) + crate::error::PutItemErrorKind::TransactionConflictException(inner) => { + Error::TransactionConflictException(inner) } crate::error::PutItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -848,17 +790,17 @@ impl From> for Error { crate::error::QueryErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::QueryErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::QueryErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::QueryErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::QueryErrorKind::ProvisionedThroughputExceededException(inner) => { + Error::ProvisionedThroughputExceededException(inner) } crate::error::QueryErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::QueryErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::QueryErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::QueryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -870,26 +812,26 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RestoreTableFromBackupErrorKind::BackupInUseError(inner) => { - Error::BackupInUseError(inner) + crate::error::RestoreTableFromBackupErrorKind::BackupInUseException(inner) => { + Error::BackupInUseException(inner) } - crate::error::RestoreTableFromBackupErrorKind::BackupNotFoundError(inner) => { - Error::BackupNotFoundError(inner) + crate::error::RestoreTableFromBackupErrorKind::BackupNotFoundException(inner) => { + Error::BackupNotFoundException(inner) } crate::error::RestoreTableFromBackupErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::RestoreTableFromBackupErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::RestoreTableFromBackupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::RestoreTableFromBackupErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::RestoreTableFromBackupErrorKind::TableAlreadyExistsError(inner) => { - Error::TableAlreadyExistsError(inner) + crate::error::RestoreTableFromBackupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::RestoreTableFromBackupErrorKind::TableInUseError(inner) => { - Error::TableInUseError(inner) + crate::error::RestoreTableFromBackupErrorKind::TableAlreadyExistsException( + inner, + ) => Error::TableAlreadyExistsException(inner), + crate::error::RestoreTableFromBackupErrorKind::TableInUseException(inner) => { + Error::TableInUseException(inner) } crate::error::RestoreTableFromBackupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -906,13 +848,13 @@ impl From match err.kind { crate::error::RestoreTableToPointInTimeErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::InvalidEndpointError(inner) => Error::InvalidEndpointError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeError(inner) => Error::InvalidRestoreTimeError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(inner) => Error::PointInTimeRecoveryUnavailableError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::TableAlreadyExistsError(inner) => Error::TableAlreadyExistsError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::TableInUseError(inner) => Error::TableInUseError(inner), - crate::error::RestoreTableToPointInTimeErrorKind::TableNotFoundError(inner) => Error::TableNotFoundError(inner), + crate::error::RestoreTableToPointInTimeErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeException(inner) => Error::InvalidRestoreTimeException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException(inner) => Error::PointInTimeRecoveryUnavailableException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::TableAlreadyExistsException(inner) => Error::TableAlreadyExistsException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::TableInUseException(inner) => Error::TableInUseException(inner), + crate::error::RestoreTableToPointInTimeErrorKind::TableNotFoundException(inner) => Error::TableNotFoundException(inner), crate::error::RestoreTableToPointInTimeErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -926,17 +868,17 @@ impl From> for Error { crate::error::ScanErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ScanErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::ScanErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::ScanErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::ScanErrorKind::ProvisionedThroughputExceededException(inner) => { + Error::ProvisionedThroughputExceededException(inner) } crate::error::ScanErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::ScanErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ScanErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ScanErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -951,17 +893,17 @@ impl From> for Err crate::error::TagResourceErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::TagResourceErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::TagResourceErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::TagResourceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagResourceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagResourceErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::TagResourceErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -976,20 +918,20 @@ impl From> fo crate::error::TransactGetItemsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::TransactGetItemsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::TransactGetItemsErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::TransactGetItemsErrorKind::ProvisionedThroughputExceededError( + crate::error::TransactGetItemsErrorKind::ProvisionedThroughputExceededException( inner, - ) => Error::ProvisionedThroughputExceededError(inner), + ) => Error::ProvisionedThroughputExceededException(inner), crate::error::TransactGetItemsErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::TransactGetItemsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TransactGetItemsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::TransactGetItemsErrorKind::TransactionCanceledError(inner) => { - Error::TransactionCanceledError(inner) + crate::error::TransactGetItemsErrorKind::TransactionCanceledException(inner) => { + Error::TransactionCanceledException(inner) } crate::error::TransactGetItemsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1002,35 +944,17 @@ impl From> fo impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TransactWriteItemsErrorKind::IdempotentParameterMismatchError( - inner, - ) => Error::IdempotentParameterMismatchError(inner), - crate::error::TransactWriteItemsErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::TransactWriteItemsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::TransactWriteItemsErrorKind::ProvisionedThroughputExceededError( - inner, - ) => Error::ProvisionedThroughputExceededError(inner), - crate::error::TransactWriteItemsErrorKind::RequestLimitExceeded(inner) => { - Error::RequestLimitExceeded(inner) - } - crate::error::TransactWriteItemsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::TransactWriteItemsErrorKind::TransactionCanceledError(inner) => { - Error::TransactionCanceledError(inner) - } - crate::error::TransactWriteItemsErrorKind::TransactionInProgressError(inner) => { - Error::TransactionInProgressError(inner) - } - crate::error::TransactWriteItemsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::TransactWriteItemsErrorKind::IdempotentParameterMismatchException(inner) => Error::IdempotentParameterMismatchException(inner), + crate::error::TransactWriteItemsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::TransactWriteItemsErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::TransactWriteItemsErrorKind::ProvisionedThroughputExceededException(inner) => Error::ProvisionedThroughputExceededException(inner), + crate::error::TransactWriteItemsErrorKind::RequestLimitExceeded(inner) => Error::RequestLimitExceeded(inner), + crate::error::TransactWriteItemsErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::TransactWriteItemsErrorKind::TransactionCanceledException(inner) => Error::TransactionCanceledException(inner), + crate::error::TransactWriteItemsErrorKind::TransactionInProgressException(inner) => Error::TransactionInProgressException(inner), + crate::error::TransactWriteItemsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1042,17 +966,17 @@ impl From> for E crate::error::UntagResourceErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UntagResourceErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::UntagResourceErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::UntagResourceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UntagResourceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UntagResourceErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::UntagResourceErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1066,10 +990,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableError(inner) => Error::ContinuousBackupsUnavailableError(inner), + crate::error::UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableException(inner) => Error::ContinuousBackupsUnavailableException(inner), crate::error::UpdateContinuousBackupsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::UpdateContinuousBackupsErrorKind::InvalidEndpointError(inner) => Error::InvalidEndpointError(inner), - crate::error::UpdateContinuousBackupsErrorKind::TableNotFoundError(inner) => Error::TableNotFoundError(inner), + crate::error::UpdateContinuousBackupsErrorKind::InvalidEndpointException(inner) => Error::InvalidEndpointException(inner), + crate::error::UpdateContinuousBackupsErrorKind::TableNotFoundException(inner) => Error::TableNotFoundException(inner), crate::error::UpdateContinuousBackupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1085,9 +1009,9 @@ impl From { Error::InternalServerError(inner) } - crate::error::UpdateContributorInsightsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } + crate::error::UpdateContributorInsightsErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::UpdateContributorInsightsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1100,23 +1024,23 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateGlobalTableErrorKind::GlobalTableNotFoundError(inner) => { - Error::GlobalTableNotFoundError(inner) + crate::error::UpdateGlobalTableErrorKind::GlobalTableNotFoundException(inner) => { + Error::GlobalTableNotFoundException(inner) } crate::error::UpdateGlobalTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateGlobalTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::UpdateGlobalTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::UpdateGlobalTableErrorKind::ReplicaAlreadyExistsError(inner) => { - Error::ReplicaAlreadyExistsError(inner) + crate::error::UpdateGlobalTableErrorKind::ReplicaAlreadyExistsException(inner) => { + Error::ReplicaAlreadyExistsException(inner) } - crate::error::UpdateGlobalTableErrorKind::ReplicaNotFoundError(inner) => { - Error::ReplicaNotFoundError(inner) + crate::error::UpdateGlobalTableErrorKind::ReplicaNotFoundException(inner) => { + Error::ReplicaNotFoundException(inner) } - crate::error::UpdateGlobalTableErrorKind::TableNotFoundError(inner) => { - Error::TableNotFoundError(inner) + crate::error::UpdateGlobalTableErrorKind::TableNotFoundException(inner) => { + Error::TableNotFoundException(inner) } crate::error::UpdateGlobalTableErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1132,26 +1056,26 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundError( + crate::error::UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundException( inner, - ) => Error::GlobalTableNotFoundError(inner), - crate::error::UpdateGlobalTableSettingsErrorKind::IndexNotFoundError(inner) => { - Error::IndexNotFoundError(inner) + ) => Error::GlobalTableNotFoundException(inner), + crate::error::UpdateGlobalTableSettingsErrorKind::IndexNotFoundException(inner) => { + Error::IndexNotFoundException(inner) } crate::error::UpdateGlobalTableSettingsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateGlobalTableSettingsErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::UpdateGlobalTableSettingsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundError(inner) => { - Error::ReplicaNotFoundError(inner) + crate::error::UpdateGlobalTableSettingsErrorKind::InvalidEndpointException( + inner, + ) => Error::InvalidEndpointException(inner), + crate::error::UpdateGlobalTableSettingsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateGlobalTableSettingsErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundException( + inner, + ) => Error::ReplicaNotFoundException(inner), + crate::error::UpdateGlobalTableSettingsErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } crate::error::UpdateGlobalTableSettingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1165,29 +1089,29 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateItemErrorKind::ConditionalCheckFailedError(inner) => { - Error::ConditionalCheckFailedError(inner) + crate::error::UpdateItemErrorKind::ConditionalCheckFailedException(inner) => { + Error::ConditionalCheckFailedException(inner) } crate::error::UpdateItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateItemErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) - } - crate::error::UpdateItemErrorKind::ItemCollectionSizeLimitExceededError(inner) => { - Error::ItemCollectionSizeLimitExceededError(inner) - } - crate::error::UpdateItemErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::UpdateItemErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } + crate::error::UpdateItemErrorKind::ItemCollectionSizeLimitExceededException( + inner, + ) => Error::ItemCollectionSizeLimitExceededException(inner), + crate::error::UpdateItemErrorKind::ProvisionedThroughputExceededException( + inner, + ) => Error::ProvisionedThroughputExceededException(inner), crate::error::UpdateItemErrorKind::RequestLimitExceeded(inner) => { Error::RequestLimitExceeded(inner) } - crate::error::UpdateItemErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateItemErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UpdateItemErrorKind::TransactionConflictError(inner) => { - Error::TransactionConflictError(inner) + crate::error::UpdateItemErrorKind::TransactionConflictException(inner) => { + Error::TransactionConflictException(inner) } crate::error::UpdateItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1202,17 +1126,17 @@ impl From> for Err crate::error::UpdateTableErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateTableErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::UpdateTableErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::UpdateTableErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateTableErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateTableErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::UpdateTableErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::UpdateTableErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateTableErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UpdateTableErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1231,15 +1155,15 @@ impl From Error::InternalServerError(inner), - crate::error::UpdateTableReplicaAutoScalingErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundError( + crate::error::UpdateTableReplicaAutoScalingErrorKind::LimitExceededException( + inner, + ) => Error::LimitExceededException(inner), + crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceInUseException( + inner, + ) => Error::ResourceInUseException(inner), + crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::ResourceNotFoundException(inner), crate::error::UpdateTableReplicaAutoScalingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1255,17 +1179,17 @@ impl From> fo crate::error::UpdateTimeToLiveErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateTimeToLiveErrorKind::InvalidEndpointError(inner) => { - Error::InvalidEndpointError(inner) + crate::error::UpdateTimeToLiveErrorKind::InvalidEndpointException(inner) => { + Error::InvalidEndpointException(inner) } - crate::error::UpdateTimeToLiveErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateTimeToLiveErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateTimeToLiveErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::UpdateTimeToLiveErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::UpdateTimeToLiveErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateTimeToLiveErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UpdateTimeToLiveErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/dynamodb/src/input.rs b/sdk/dynamodb/src/input.rs index 5bcbd29fa771..8def7862513a 100644 --- a/sdk/dynamodb/src/input.rs +++ b/sdk/dynamodb/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`BatchExecuteStatementInput`](crate::input::BatchExecuteStatementInput) pub mod batch_execute_statement_input { /// A builder for [`BatchExecuteStatementInput`](crate::input::BatchExecuteStatementInput) @@ -98,15 +99,27 @@ impl BatchExecuteStatementInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.BatchExecuteStatement")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.BatchExecuteStatement"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -260,15 +273,27 @@ impl BatchGetItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.BatchGetItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.BatchGetItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -448,15 +473,27 @@ impl BatchWriteItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.BatchWriteItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.BatchWriteItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -576,15 +613,27 @@ impl CreateBackupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.CreateBackup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.CreateBackup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -713,15 +762,27 @@ impl CreateGlobalTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.CreateGlobalTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.CreateGlobalTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -755,7 +816,7 @@ pub mod create_table_input { pub(crate) billing_mode: std::option::Option, pub(crate) provisioned_throughput: std::option::Option, pub(crate) stream_specification: std::option::Option, - pub(crate) sse_specification: std::option::Option, + pub(crate) sse_specification: std::option::Option, pub(crate) tags: std::option::Option>, } impl Builder { @@ -922,13 +983,13 @@ pub mod create_table_input { self } ///

    Represents the settings used to enable server-side encryption.

    - pub fn sse_specification(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification(mut self, input: crate::model::SseSpecification) -> Self { self.sse_specification = Some(input); self } pub fn set_sse_specification( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_specification = input; self @@ -1029,15 +1090,27 @@ impl CreateTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.CreateTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.CreateTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1146,15 +1219,27 @@ impl DeleteBackupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DeleteBackup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DeleteBackup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1492,15 +1577,27 @@ impl DeleteItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DeleteItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DeleteItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1609,15 +1706,27 @@ impl DeleteTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DeleteTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DeleteTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1727,15 +1836,27 @@ impl DescribeBackupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeBackup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeBackup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1847,18 +1968,30 @@ impl DescribeContinuousBackupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DescribeContinuousBackups", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DescribeContinuousBackups", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1982,18 +2115,30 @@ impl DescribeContributorInsightsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DescribeContributorInsights", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DescribeContributorInsights", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2047,7 +2192,10 @@ impl DescribeEndpointsInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = crate::operation_ser::serialize_operation_describe_endpoints(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -2088,15 +2236,27 @@ impl DescribeEndpointsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeEndpoints")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeEndpoints"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2206,15 +2366,27 @@ impl DescribeExportInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeExport")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeExport"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2328,15 +2500,27 @@ impl DescribeGlobalTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeGlobalTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeGlobalTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2452,18 +2636,30 @@ impl DescribeGlobalTableSettingsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DescribeGlobalTableSettings", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DescribeGlobalTableSettings", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2579,18 +2775,30 @@ impl DescribeKinesisStreamingDestinationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DescribeKinesisStreamingDestination", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DescribeKinesisStreamingDestination", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2644,7 +2852,9 @@ impl DescribeLimitsInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = crate::operation_ser::serialize_operation_describe_limits(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -2685,15 +2895,27 @@ impl DescribeLimitsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeLimits")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeLimits"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2802,15 +3024,27 @@ impl DescribeTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2925,18 +3159,30 @@ impl DescribeTableReplicaAutoScalingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DescribeTableReplicaAutoScaling", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DescribeTableReplicaAutoScaling", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3047,15 +3293,27 @@ impl DescribeTimeToLiveInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.DescribeTimeToLive")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.DescribeTimeToLive"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3181,18 +3439,30 @@ impl DisableKinesisStreamingDestinationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.DisableKinesisStreamingDestination", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.DisableKinesisStreamingDestination", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3318,18 +3588,30 @@ impl EnableKinesisStreamingDestinationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.EnableKinesisStreamingDestination", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.EnableKinesisStreamingDestination", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3482,15 +3764,27 @@ impl ExecuteStatementInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ExecuteStatement")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ExecuteStatement"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3628,15 +3922,27 @@ impl ExecuteTransactionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ExecuteTransaction")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ExecuteTransaction"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3879,15 +4185,27 @@ impl ExportTableToPointInTimeInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ExportTableToPointInTime")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ExportTableToPointInTime"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4111,15 +4429,27 @@ impl GetItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.GetItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.GetItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4315,15 +4645,27 @@ impl ListBackupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListBackups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListBackups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4457,15 +4799,27 @@ impl ListContributorInsightsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListContributorInsights")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListContributorInsights"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4598,15 +4952,27 @@ impl ListExportsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListExports")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListExports"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4747,15 +5113,27 @@ impl ListGlobalTablesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListGlobalTables")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListGlobalTables"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4880,15 +5258,27 @@ impl ListTablesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListTables")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListTables"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5011,15 +5401,27 @@ impl ListTagsOfResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.ListTagsOfResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.ListTagsOfResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5350,15 +5752,27 @@ impl PutItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.PutItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.PutItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5918,15 +6332,27 @@ impl QueryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.Query")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.Query"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5958,7 +6384,7 @@ pub mod restore_table_from_backup_input { std::option::Option>, pub(crate) provisioned_throughput_override: std::option::Option, - pub(crate) sse_specification_override: std::option::Option, + pub(crate) sse_specification_override: std::option::Option, } impl Builder { ///

    The name of the new table to which the backup must be restored.

    @@ -6042,13 +6468,13 @@ pub mod restore_table_from_backup_input { self } ///

    The new server-side encryption settings for the restored table.

    - pub fn sse_specification_override(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification_override(mut self, input: crate::model::SseSpecification) -> Self { self.sse_specification_override = Some(input); self } pub fn set_sse_specification_override( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_specification_override = input; self @@ -6135,15 +6561,27 @@ impl RestoreTableFromBackupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.RestoreTableFromBackup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.RestoreTableFromBackup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6178,7 +6616,7 @@ pub mod restore_table_to_point_in_time_input { std::option::Option>, pub(crate) provisioned_throughput_override: std::option::Option, - pub(crate) sse_specification_override: std::option::Option, + pub(crate) sse_specification_override: std::option::Option, } impl Builder { ///

    The DynamoDB table that will be restored. This value is an Amazon @@ -6300,13 +6738,13 @@ pub mod restore_table_to_point_in_time_input { self } ///

    The new server-side encryption settings for the restored table.

    - pub fn sse_specification_override(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification_override(mut self, input: crate::model::SseSpecification) -> Self { self.sse_specification_override = Some(input); self } pub fn set_sse_specification_override( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_specification_override = input; self @@ -6398,18 +6836,30 @@ impl RestoreTableToPointInTimeInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.RestoreTableToPointInTime", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.RestoreTableToPointInTime", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6863,15 +7313,27 @@ impl ScanInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.Scan")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.Scan"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6995,15 +7457,27 @@ impl TagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.TagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.TagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7139,15 +7613,27 @@ impl TransactGetItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.TransactGetItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.TransactGetItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7350,15 +7836,27 @@ impl TransactWriteItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.TransactWriteItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.TransactWriteItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7483,15 +7981,27 @@ impl UntagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UntagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UntagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7621,15 +8131,27 @@ impl UpdateContinuousBackupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UpdateContinuousBackups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UpdateContinuousBackups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7770,18 +8292,30 @@ impl UpdateContributorInsightsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.UpdateContributorInsights", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.UpdateContributorInsights", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7910,15 +8444,27 @@ impl UpdateGlobalTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UpdateGlobalTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UpdateGlobalTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8139,18 +8685,30 @@ impl UpdateGlobalTableSettingsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.UpdateGlobalTableSettings", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.UpdateGlobalTableSettings", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8623,15 +9181,27 @@ impl UpdateItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UpdateItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UpdateItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8662,7 +9232,7 @@ pub mod update_table_input { pub(crate) global_secondary_index_updates: std::option::Option>, pub(crate) stream_specification: std::option::Option, - pub(crate) sse_specification: std::option::Option, + pub(crate) sse_specification: std::option::Option, pub(crate) replica_updates: std::option::Option>, } @@ -8767,13 +9337,13 @@ pub mod update_table_input { self } ///

    The new server-side encryption settings for the specified table.

    - pub fn sse_specification(mut self, input: crate::model::SSESpecification) -> Self { + pub fn sse_specification(mut self, input: crate::model::SseSpecification) -> Self { self.sse_specification = Some(input); self } pub fn set_sse_specification( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_specification = input; self @@ -8875,15 +9445,27 @@ impl UpdateTableInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UpdateTable")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UpdateTable"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9056,18 +9638,30 @@ impl UpdateTableReplicaAutoScalingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header( - "X-Amz-Target", - "DynamoDB_20120810.UpdateTableReplicaAutoScaling", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header( + "x-amz-target", + "DynamoDB_20120810.UpdateTableReplicaAutoScaling", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9196,15 +9790,27 @@ impl UpdateTimeToLiveInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "DynamoDB_20120810.UpdateTimeToLive")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "DynamoDB_20120810.UpdateTimeToLive"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9331,7 +9937,7 @@ pub struct UpdateTableInput { /// pub stream_specification: std::option::Option, ///

    The new server-side encryption settings for the specified table.

    - pub sse_specification: std::option::Option, + pub sse_specification: std::option::Option, ///

    A list of replica update actions (create, delete, or update) for the table.

    /// ///

    This property only applies to Version 2019.11.21 of global tables.

    @@ -10163,7 +10769,7 @@ pub struct RestoreTableToPointInTimeInput { ///

    Provisioned throughput settings for the restored table.

    pub provisioned_throughput_override: std::option::Option, ///

    The new server-side encryption settings for the restored table.

    - pub sse_specification_override: std::option::Option, + pub sse_specification_override: std::option::Option, } impl std::fmt::Debug for RestoreTableToPointInTimeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10219,7 +10825,7 @@ pub struct RestoreTableFromBackupInput { ///

    Provisioned throughput settings for the restored table.

    pub provisioned_throughput_override: std::option::Option, ///

    The new server-side encryption settings for the restored table.

    - pub sse_specification_override: std::option::Option, + pub sse_specification_override: std::option::Option, } impl std::fmt::Debug for RestoreTableFromBackupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11765,7 +12371,7 @@ pub struct CreateTableInput { /// pub stream_specification: std::option::Option, ///

    Represents the settings used to enable server-side encryption.

    - pub sse_specification: std::option::Option, + pub sse_specification: std::option::Option, ///

    A list of key-value pairs to label the table. For more information, see Tagging for DynamoDB.

    pub tags: std::option::Option>, } diff --git a/sdk/dynamodb/src/instant_epoch.rs b/sdk/dynamodb/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/dynamodb/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/dynamodb/src/json_deser.rs b/sdk/dynamodb/src/json_deser.rs index eeea15cd82ec..b38decc4dae1 100644 --- a/sdk/dynamodb/src/json_deser.rs +++ b/sdk/dynamodb/src/json_deser.rs @@ -1,871 +1,9262 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn batch_execute_statement_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_internal_server_errorjson_err( + input: &[u8], + mut builder: crate::error::internal_server_error::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_request_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::request_limit_exceeded::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_batch_execute_statement( input: &[u8], mut builder: crate::output::batch_execute_statement_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::BatchExecuteStatementOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_responses(parsed_body.responses); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Responses" => { + builder = builder.set_responses( + crate::json_deser::deser_list_parti_ql_batch_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_endpoint_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_endpoint_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_provisioned_throughput_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::provisioned_throughput_exceeded_exception::Builder, +) -> Result< + crate::error::provisioned_throughput_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_get_item_deser_operation( +pub fn deser_operation_batch_get_item( input: &[u8], mut builder: crate::output::batch_get_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchGetItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_responses(parsed_body.responses); - builder = builder.set_unprocessed_keys(parsed_body.unprocessed_keys); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Responses" => { + builder = builder.set_responses( + crate::json_deser::deser_map_batch_get_response_map(tokens)?, + ); + } + "UnprocessedKeys" => { + builder = builder.set_unprocessed_keys( + crate::json_deser::deser_map_batch_get_request_map(tokens)?, + ); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_list_consumed_capacity_multiple(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_item_collection_size_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::item_collection_size_limit_exceeded_exception::Builder, +) -> Result< + crate::error::item_collection_size_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_write_item_deser_operation( +pub fn deser_operation_batch_write_item( input: &[u8], mut builder: crate::output::batch_write_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchWriteItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_unprocessed_items(parsed_body.unprocessed_items); - builder = builder.set_item_collection_metrics(parsed_body.item_collection_metrics); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UnprocessedItems" => { + builder = builder.set_unprocessed_items( + crate::json_deser::deser_map_batch_write_item_request_map(tokens)?, + ); + } + "ItemCollectionMetrics" => { + builder = builder.set_item_collection_metrics( + crate::json_deser::deser_map_item_collection_metrics_per_table(tokens)?, + ); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_list_consumed_capacity_multiple(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_backup_deser_operation( +pub fn deser_structure_backup_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::backup_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_continuous_backups_unavailable_exceptionjson_err( + input: &[u8], + mut builder: crate::error::continuous_backups_unavailable_exception::Builder, +) -> Result< + crate::error::continuous_backups_unavailable_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_table_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::table_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_table_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::table_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_backup( input: &[u8], mut builder: crate::output::create_backup_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateBackupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_backup_details(parsed_body.backup_details); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupDetails" => { + builder = builder.set_backup_details( + crate::json_deser::deser_structure_backup_details(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_global_table_deser_operation( +pub fn deser_structure_global_table_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::global_table_already_exists_exception::Builder, +) -> Result< + crate::error::global_table_already_exists_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_global_table( input: &[u8], mut builder: crate::output::create_global_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateGlobalTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_table_description(parsed_body.global_table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableDescription" => { + builder = builder.set_global_table_description( + crate::json_deser::deser_structure_global_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_table_deser_operation( +pub fn deser_operation_create_table( input: &[u8], mut builder: crate::output::create_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_description(parsed_body.table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableDescription" => { + builder = builder.set_table_description( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_backup_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::backup_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_backup_deser_operation( +pub fn deser_operation_delete_backup( input: &[u8], mut builder: crate::output::delete_backup_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteBackupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_backup_description(parsed_body.backup_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupDescription" => { + builder = builder.set_backup_description( + crate::json_deser::deser_structure_backup_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_conditional_check_failed_exceptionjson_err( + input: &[u8], + mut builder: crate::error::conditional_check_failed_exception::Builder, +) -> Result< + crate::error::conditional_check_failed_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_transaction_conflict_exceptionjson_err( + input: &[u8], + mut builder: crate::error::transaction_conflict_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_item_deser_operation( +pub fn deser_operation_delete_item( input: &[u8], mut builder: crate::output::delete_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); - builder = builder.set_item_collection_metrics(parsed_body.item_collection_metrics); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_map_attribute_map(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + "ItemCollectionMetrics" => { + builder = builder.set_item_collection_metrics( + crate::json_deser::deser_structure_item_collection_metrics(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_table_deser_operation( +pub fn deser_operation_delete_table( input: &[u8], mut builder: crate::output::delete_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_description(parsed_body.table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableDescription" => { + builder = builder.set_table_description( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_backup_deser_operation( +pub fn deser_operation_describe_backup( input: &[u8], mut builder: crate::output::describe_backup_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeBackupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_backup_description(parsed_body.backup_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupDescription" => { + builder = builder.set_backup_description( + crate::json_deser::deser_structure_backup_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_continuous_backups_deser_operation( +pub fn deser_operation_describe_continuous_backups( input: &[u8], mut builder: crate::output::describe_continuous_backups_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_continuous_backups_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeContinuousBackupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_continuous_backups_description(parsed_body.continuous_backups_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContinuousBackupsDescription" => { + builder = builder.set_continuous_backups_description( + crate::json_deser::deser_structure_continuous_backups_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_contributor_insights_deser_operation( +pub fn deser_operation_describe_contributor_insights( input: &[u8], mut builder: crate::output::describe_contributor_insights_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_contributor_insights_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeContributorInsightsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_name(parsed_body.table_name); - builder = builder.set_index_name(parsed_body.index_name); - builder = - builder.set_contributor_insights_rule_list(parsed_body.contributor_insights_rule_list); - builder = builder.set_contributor_insights_status(parsed_body.contributor_insights_status); - builder = builder.set_last_update_date_time(parsed_body.last_update_date_time); - builder = builder.set_failure_exception(parsed_body.failure_exception); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContributorInsightsRuleList" => { + builder = builder.set_contributor_insights_rule_list( + crate::json_deser::deser_list_contributor_insights_rule_list(tokens)?, + ); + } + "ContributorInsightsStatus" => { + builder = builder.set_contributor_insights_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContributorInsightsStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastUpdateDateTime" => { + builder = builder.set_last_update_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureException" => { + builder = builder.set_failure_exception( + crate::json_deser::deser_structure_failure_exception(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_endpoints_deser_operation( +pub fn deser_operation_describe_endpoints( input: &[u8], mut builder: crate::output::describe_endpoints_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeEndpointsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoints(parsed_body.endpoints); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Endpoints" => { + builder = + builder.set_endpoints(crate::json_deser::deser_list_endpoints(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_export_deser_operation( +pub fn deser_structure_export_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::export_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_export( input: &[u8], mut builder: crate::output::describe_export_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeExportOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_description(parsed_body.export_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportDescription" => { + builder = builder.set_export_description( + crate::json_deser::deser_structure_export_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_global_table_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::global_table_not_found_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_global_table_deser_operation( +pub fn deser_operation_describe_global_table( input: &[u8], mut builder: crate::output::describe_global_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeGlobalTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_table_description(parsed_body.global_table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableDescription" => { + builder = builder.set_global_table_description( + crate::json_deser::deser_structure_global_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_global_table_settings_deser_operation( +pub fn deser_operation_describe_global_table_settings( input: &[u8], mut builder: crate::output::describe_global_table_settings_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_global_table_settings_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeGlobalTableSettingsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_table_name(parsed_body.global_table_name); - builder = builder.set_replica_settings(parsed_body.replica_settings); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableName" => { + builder = builder.set_global_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicaSettings" => { + builder = builder.set_replica_settings( + crate::json_deser::deser_list_replica_settings_description_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_kinesis_streaming_destination_deser_operation( +pub fn deser_operation_describe_kinesis_streaming_destination( input: &[u8], mut builder: crate::output::describe_kinesis_streaming_destination_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_kinesis_streaming_destination_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeKinesisStreamingDestinationOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_name(parsed_body.table_name); - builder = - builder.set_kinesis_data_stream_destinations(parsed_body.kinesis_data_stream_destinations); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KinesisDataStreamDestinations" => { + builder = builder.set_kinesis_data_stream_destinations( + crate::json_deser::deser_list_kinesis_data_stream_destinations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_limits_deser_operation( +pub fn deser_operation_describe_limits( input: &[u8], mut builder: crate::output::describe_limits_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLimitsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_account_max_read_capacity_units(parsed_body.account_max_read_capacity_units); - builder = - builder.set_account_max_write_capacity_units(parsed_body.account_max_write_capacity_units); - builder = builder.set_table_max_read_capacity_units(parsed_body.table_max_read_capacity_units); - builder = - builder.set_table_max_write_capacity_units(parsed_body.table_max_write_capacity_units); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AccountMaxReadCapacityUnits" => { + builder = builder.set_account_max_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "AccountMaxWriteCapacityUnits" => { + builder = builder.set_account_max_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "TableMaxReadCapacityUnits" => { + builder = builder.set_table_max_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "TableMaxWriteCapacityUnits" => { + builder = builder.set_table_max_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_table_deser_operation( +pub fn deser_operation_describe_table( input: &[u8], mut builder: crate::output::describe_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table(parsed_body.table); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Table" => { + builder = builder.set_table( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_table_replica_auto_scaling_deser_operation( +pub fn deser_operation_describe_table_replica_auto_scaling( input: &[u8], mut builder: crate::output::describe_table_replica_auto_scaling_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_table_replica_auto_scaling_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeTableReplicaAutoScalingOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_table_auto_scaling_description(parsed_body.table_auto_scaling_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableAutoScalingDescription" => { + builder = builder.set_table_auto_scaling_description( + crate::json_deser::deser_structure_table_auto_scaling_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_time_to_live_deser_operation( +pub fn deser_operation_describe_time_to_live( input: &[u8], mut builder: crate::output::describe_time_to_live_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTimeToLiveOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_time_to_live_description(parsed_body.time_to_live_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TimeToLiveDescription" => { + builder = builder.set_time_to_live_description( + crate::json_deser::deser_structure_time_to_live_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn disable_kinesis_streaming_destination_deser_operation( +pub fn deser_operation_disable_kinesis_streaming_destination( input: &[u8], mut builder: crate::output::disable_kinesis_streaming_destination_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::disable_kinesis_streaming_destination_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DisableKinesisStreamingDestinationOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_name(parsed_body.table_name); - builder = builder.set_stream_arn(parsed_body.stream_arn); - builder = builder.set_destination_status(parsed_body.destination_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamArn" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationStatus" => { + builder = builder.set_destination_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DestinationStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn enable_kinesis_streaming_destination_deser_operation( +pub fn deser_operation_enable_kinesis_streaming_destination( input: &[u8], mut builder: crate::output::enable_kinesis_streaming_destination_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::enable_kinesis_streaming_destination_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::EnableKinesisStreamingDestinationOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_name(parsed_body.table_name); - builder = builder.set_stream_arn(parsed_body.stream_arn); - builder = builder.set_destination_status(parsed_body.destination_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamArn" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationStatus" => { + builder = builder.set_destination_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DestinationStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_duplicate_item_exceptionjson_err( + input: &[u8], + mut builder: crate::error::duplicate_item_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn execute_statement_deser_operation( +pub fn deser_operation_execute_statement( input: &[u8], mut builder: crate::output::execute_statement_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExecuteStatementOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Items" => { + builder = + builder.set_items(crate::json_deser::deser_list_item_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_idempotent_parameter_mismatch_exceptionjson_err( + input: &[u8], + mut builder: crate::error::idempotent_parameter_mismatch_exception::Builder, +) -> Result< + crate::error::idempotent_parameter_mismatch_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn execute_transaction_deser_operation( +pub fn deser_structure_transaction_canceled_exceptionjson_err( + input: &[u8], + mut builder: crate::error::transaction_canceled_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CancellationReasons" => { + builder = builder.set_cancellation_reasons( + crate::json_deser::deser_list_cancellation_reason_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_transaction_in_progress_exceptionjson_err( + input: &[u8], + mut builder: crate::error::transaction_in_progress_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_execute_transaction( input: &[u8], mut builder: crate::output::execute_transaction_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExecuteTransactionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_responses(parsed_body.responses); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Responses" => { + builder = builder.set_responses( + crate::json_deser::deser_list_item_response_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_export_conflict_exceptionjson_err( + input: &[u8], + mut builder: crate::error::export_conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn export_table_to_point_in_time_deser_operation( +pub fn deser_structure_invalid_export_time_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_export_time_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_point_in_time_recovery_unavailable_exceptionjson_err( + input: &[u8], + mut builder: crate::error::point_in_time_recovery_unavailable_exception::Builder, +) -> Result< + crate::error::point_in_time_recovery_unavailable_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_export_table_to_point_in_time( input: &[u8], mut builder: crate::output::export_table_to_point_in_time_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::export_table_to_point_in_time_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ExportTableToPointInTimeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_description(parsed_body.export_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportDescription" => { + builder = builder.set_export_description( + crate::json_deser::deser_structure_export_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_item_deser_operation( +pub fn deser_operation_get_item( input: &[u8], mut builder: crate::output::get_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_item(parsed_body.item); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Item" => { + builder = + builder.set_item(crate::json_deser::deser_map_attribute_map(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_backups_deser_operation( +pub fn deser_operation_list_backups( input: &[u8], mut builder: crate::output::list_backups_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListBackupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_backup_summaries(parsed_body.backup_summaries); - builder = builder.set_last_evaluated_backup_arn(parsed_body.last_evaluated_backup_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupSummaries" => { + builder = builder.set_backup_summaries( + crate::json_deser::deser_list_backup_summaries(tokens)?, + ); + } + "LastEvaluatedBackupArn" => { + builder = builder.set_last_evaluated_backup_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_contributor_insights_deser_operation( +pub fn deser_operation_list_contributor_insights( input: &[u8], mut builder: crate::output::list_contributor_insights_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListContributorInsightsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_contributor_insights_summaries(parsed_body.contributor_insights_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContributorInsightsSummaries" => { + builder = builder.set_contributor_insights_summaries( + crate::json_deser::deser_list_contributor_insights_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_exports_deser_operation( +pub fn deser_operation_list_exports( input: &[u8], mut builder: crate::output::list_exports_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListExportsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_summaries(parsed_body.export_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportSummaries" => { + builder = builder.set_export_summaries( + crate::json_deser::deser_list_export_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_global_tables_deser_operation( +pub fn deser_operation_list_global_tables( input: &[u8], mut builder: crate::output::list_global_tables_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListGlobalTablesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_tables(parsed_body.global_tables); - builder = - builder.set_last_evaluated_global_table_name(parsed_body.last_evaluated_global_table_name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTables" => { + builder = builder.set_global_tables( + crate::json_deser::deser_list_global_table_list(tokens)?, + ); + } + "LastEvaluatedGlobalTableName" => { + builder = builder.set_last_evaluated_global_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tables_deser_operation( +pub fn deser_operation_list_tables( input: &[u8], mut builder: crate::output::list_tables_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTablesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_names(parsed_body.table_names); - builder = builder.set_last_evaluated_table_name(parsed_body.last_evaluated_table_name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableNames" => { + builder = builder.set_table_names( + crate::json_deser::deser_list_table_name_list(tokens)?, + ); + } + "LastEvaluatedTableName" => { + builder = builder.set_last_evaluated_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_of_resource_deser_operation( +pub fn deser_operation_list_tags_of_resource( input: &[u8], mut builder: crate::output::list_tags_of_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsOfResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_item_deser_operation( +pub fn deser_operation_put_item( input: &[u8], mut builder: crate::output::put_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); - builder = builder.set_item_collection_metrics(parsed_body.item_collection_metrics); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_map_attribute_map(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + "ItemCollectionMetrics" => { + builder = builder.set_item_collection_metrics( + crate::json_deser::deser_structure_item_collection_metrics(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn query_deser_operation( +pub fn deser_operation_query( input: &[u8], mut builder: crate::output::query_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::QueryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_count(Some(parsed_body.count)); - builder = builder.set_scanned_count(Some(parsed_body.scanned_count)); - builder = builder.set_last_evaluated_key(parsed_body.last_evaluated_key); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Items" => { + builder = + builder.set_items(crate::json_deser::deser_list_item_list(tokens)?); + } + "Count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ScannedCount" => { + builder = builder.set_scanned_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "LastEvaluatedKey" => { + builder = builder + .set_last_evaluated_key(crate::json_deser::deser_map_key(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_table_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::table_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn restore_table_from_backup_deser_operation( +pub fn deser_operation_restore_table_from_backup( input: &[u8], mut builder: crate::output::restore_table_from_backup_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::RestoreTableFromBackupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_description(parsed_body.table_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableDescription" => { + builder = builder.set_table_description( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_restore_time_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_restore_time_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn restore_table_to_point_in_time_deser_operation( +pub fn deser_operation_restore_table_to_point_in_time( input: &[u8], mut builder: crate::output::restore_table_to_point_in_time_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::restore_table_to_point_in_time_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RestoreTableToPointInTimeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_description(parsed_body.table_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableDescription" => { + builder = builder.set_table_description( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn scan_deser_operation( +pub fn deser_operation_scan( input: &[u8], mut builder: crate::output::scan_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ScanOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_items(parsed_body.items); - builder = builder.set_count(Some(parsed_body.count)); - builder = builder.set_scanned_count(Some(parsed_body.scanned_count)); - builder = builder.set_last_evaluated_key(parsed_body.last_evaluated_key); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Items" => { + builder = + builder.set_items(crate::json_deser::deser_list_item_list(tokens)?); + } + "Count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ScannedCount" => { + builder = builder.set_scanned_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "LastEvaluatedKey" => { + builder = builder + .set_last_evaluated_key(crate::json_deser::deser_map_key(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn transact_get_items_deser_operation( +pub fn deser_operation_transact_get_items( input: &[u8], mut builder: crate::output::transact_get_items_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TransactGetItemsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); - builder = builder.set_responses(parsed_body.responses); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_list_consumed_capacity_multiple(tokens)?, + ); + } + "Responses" => { + builder = builder.set_responses( + crate::json_deser::deser_list_item_response_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn transact_write_items_deser_operation( +pub fn deser_operation_transact_write_items( input: &[u8], mut builder: crate::output::transact_write_items_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TransactWriteItemsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); - builder = builder.set_item_collection_metrics(parsed_body.item_collection_metrics); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_list_consumed_capacity_multiple(tokens)?, + ); + } + "ItemCollectionMetrics" => { + builder = builder.set_item_collection_metrics( + crate::json_deser::deser_map_item_collection_metrics_per_table(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_continuous_backups_deser_operation( +pub fn deser_operation_update_continuous_backups( input: &[u8], mut builder: crate::output::update_continuous_backups_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateContinuousBackupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_continuous_backups_description(parsed_body.continuous_backups_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContinuousBackupsDescription" => { + builder = builder.set_continuous_backups_description( + crate::json_deser::deser_structure_continuous_backups_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_contributor_insights_deser_operation( +pub fn deser_operation_update_contributor_insights( input: &[u8], mut builder: crate::output::update_contributor_insights_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_contributor_insights_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateContributorInsightsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_name(parsed_body.table_name); - builder = builder.set_index_name(parsed_body.index_name); - builder = builder.set_contributor_insights_status(parsed_body.contributor_insights_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContributorInsightsStatus" => { + builder = builder.set_contributor_insights_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContributorInsightsStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_replica_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::replica_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_replica_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::replica_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_global_table_deser_operation( +pub fn deser_operation_update_global_table( input: &[u8], mut builder: crate::output::update_global_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateGlobalTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_table_description(parsed_body.global_table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableDescription" => { + builder = builder.set_global_table_description( + crate::json_deser::deser_structure_global_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_global_table_settings_deser_operation( +pub fn deser_structure_index_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::index_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_global_table_settings( input: &[u8], mut builder: crate::output::update_global_table_settings_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_global_table_settings_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateGlobalTableSettingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_global_table_name(parsed_body.global_table_name); - builder = builder.set_replica_settings(parsed_body.replica_settings); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableName" => { + builder = builder.set_global_table_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicaSettings" => { + builder = builder.set_replica_settings( + crate::json_deser::deser_list_replica_settings_description_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_item_deser_operation( +pub fn deser_operation_update_item( input: &[u8], mut builder: crate::output::update_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); - builder = builder.set_consumed_capacity(parsed_body.consumed_capacity); - builder = builder.set_item_collection_metrics(parsed_body.item_collection_metrics); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_map_attribute_map(tokens)?); + } + "ConsumedCapacity" => { + builder = builder.set_consumed_capacity( + crate::json_deser::deser_structure_consumed_capacity(tokens)?, + ); + } + "ItemCollectionMetrics" => { + builder = builder.set_item_collection_metrics( + crate::json_deser::deser_structure_item_collection_metrics(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_table_deser_operation( +pub fn deser_operation_update_table( input: &[u8], mut builder: crate::output::update_table_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTableOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_table_description(parsed_body.table_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableDescription" => { + builder = builder.set_table_description( + crate::json_deser::deser_structure_table_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_table_replica_auto_scaling_deser_operation( +pub fn deser_operation_update_table_replica_auto_scaling( input: &[u8], mut builder: crate::output::update_table_replica_auto_scaling_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_table_replica_auto_scaling_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateTableReplicaAutoScalingOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_table_auto_scaling_description(parsed_body.table_auto_scaling_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableAutoScalingDescription" => { + builder = builder.set_table_auto_scaling_description( + crate::json_deser::deser_structure_table_auto_scaling_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_time_to_live_deser_operation( +pub fn deser_operation_update_time_to_live( input: &[u8], mut builder: crate::output::update_time_to_live_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTimeToLiveOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_time_to_live_specification(parsed_body.time_to_live_specification); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TimeToLiveSpecification" => { + builder = builder.set_time_to_live_specification( + crate::json_deser::deser_structure_time_to_live_specification(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parti_ql_batch_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_statement_response(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_batch_get_response_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap< + std::string::String, + std::vec::Vec< + std::collections::HashMap, + >, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_item_list(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_batch_get_request_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_keys_and_attributes(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_consumed_capacity_multiple<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_consumed_capacity(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_batch_write_item_request_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_write_requests(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_item_collection_metrics_per_table<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap< + std::string::String, + std::vec::Vec, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_list_item_collection_metrics_multiple(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_backup_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BackupDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupArn" => { + builder = builder.set_backup_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BackupName" => { + builder = builder.set_backup_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BackupSizeBytes" => { + builder = builder.set_backup_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "BackupStatus" => { + builder = builder.set_backup_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BackupStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "BackupType" => { + builder = builder.set_backup_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BackupType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "BackupCreationDateTime" => { + builder = builder.set_backup_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "BackupExpiryDateTime" => { + builder = builder.set_backup_expiry_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_global_table_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GlobalTableDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReplicationGroup" => { + builder = builder.set_replication_group( + crate::json_deser::deser_list_replica_description_list(tokens)?, + ); + } + "GlobalTableArn" => { + builder = builder.set_global_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "GlobalTableStatus" => { + builder = builder.set_global_table_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GlobalTableStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "GlobalTableName" => { + builder = builder.set_global_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_table_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TableDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AttributeDefinitions" => { + builder = builder.set_attribute_definitions( + crate::json_deser::deser_list_attribute_definitions(tokens)?, + ); + } + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "TableStatus" => { + builder = builder.set_table_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TableStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProvisionedThroughput" => { + builder = builder.set_provisioned_throughput( + crate::json_deser::deser_structure_provisioned_throughput_description(tokens)? + ); + } + "TableSizeBytes" => { + builder = builder.set_table_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ItemCount" => { + builder = builder.set_item_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "TableArn" => { + builder = builder.set_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableId" => { + builder = builder.set_table_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BillingModeSummary" => { + builder = builder.set_billing_mode_summary( + crate::json_deser::deser_structure_billing_mode_summary( + tokens, + )?, + ); + } + "LocalSecondaryIndexes" => { + builder = builder.set_local_secondary_indexes( + crate::json_deser::deser_list_local_secondary_index_description_list(tokens)? + ); + } + "GlobalSecondaryIndexes" => { + builder = builder.set_global_secondary_indexes( + crate::json_deser::deser_list_global_secondary_index_description_list(tokens)? + ); + } + "StreamSpecification" => { + builder = builder.set_stream_specification( + crate::json_deser::deser_structure_stream_specification( + tokens, + )?, + ); + } + "LatestStreamLabel" => { + builder = builder.set_latest_stream_label( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LatestStreamArn" => { + builder = builder.set_latest_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "GlobalTableVersion" => { + builder = builder.set_global_table_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Replicas" => { + builder = builder.set_replicas( + crate::json_deser::deser_list_replica_description_list(tokens)?, + ); + } + "RestoreSummary" => { + builder = builder.set_restore_summary( + crate::json_deser::deser_structure_restore_summary(tokens)?, + ); + } + "SSEDescription" => { + builder = builder.set_sse_description( + crate::json_deser::deser_structure_sse_description(tokens)?, + ); + } + "ArchivalSummary" => { + builder = builder.set_archival_summary( + crate::json_deser::deser_structure_archival_summary(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_backup_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BackupDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BackupDetails" => { + builder = builder.set_backup_details( + crate::json_deser::deser_structure_backup_details(tokens)?, + ); + } + "SourceTableDetails" => { + builder = builder.set_source_table_details( + crate::json_deser::deser_structure_source_table_details( + tokens, + )?, + ); + } + "SourceTableFeatureDetails" => { + builder = builder.set_source_table_feature_details( + crate::json_deser::deser_structure_source_table_feature_details(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_attribute_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_consumed_capacity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ConsumedCapacity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CapacityUnits" => { + builder = builder.set_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "ReadCapacityUnits" => { + builder = builder.set_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "WriteCapacityUnits" => { + builder = builder.set_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "Table" => { + builder = builder.set_table( + crate::json_deser::deser_structure_capacity(tokens)?, + ); + } + "LocalSecondaryIndexes" => { + builder = builder.set_local_secondary_indexes( + crate::json_deser::deser_map_secondary_indexes_capacity_map( + tokens, + )?, + ); + } + "GlobalSecondaryIndexes" => { + builder = builder.set_global_secondary_indexes( + crate::json_deser::deser_map_secondary_indexes_capacity_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_item_collection_metrics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ItemCollectionMetrics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ItemCollectionKey" => { + builder = builder.set_item_collection_key( + crate::json_deser::deser_map_item_collection_key_attribute_map( + tokens, + )?, + ); + } + "SizeEstimateRangeGB" => { + builder = builder.set_size_estimate_range_gb( + crate::json_deser::deser_list_item_collection_size_estimate_range(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_continuous_backups_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContinuousBackupsDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContinuousBackupsStatus" => { + builder = builder.set_continuous_backups_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContinuousBackupsStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "PointInTimeRecoveryDescription" => { + builder = builder.set_point_in_time_recovery_description( + crate::json_deser::deser_structure_point_in_time_recovery_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_contributor_insights_rule_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_failure_exception<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailureException::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExceptionName" => { + builder = builder.set_exception_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExceptionDescription" => { + builder = builder.set_exception_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_endpoints<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_endpoint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_export_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExportDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportArn" => { + builder = builder.set_export_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportStatus" => { + builder = builder.set_export_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExportStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExportManifest" => { + builder = builder.set_export_manifest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableArn" => { + builder = builder.set_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableId" => { + builder = builder.set_table_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportTime" => { + builder = builder.set_export_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ClientToken" => { + builder = builder.set_client_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3Bucket" => { + builder = builder.set_s3_bucket( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3BucketOwner" => { + builder = builder.set_s3_bucket_owner( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3Prefix" => { + builder = builder.set_s3_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3SseAlgorithm" => { + builder = builder.set_s3_sse_algorithm( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3SseAlgorithm::from(u.as_ref())) + }) + .transpose()?, + ); + } + "S3SseKmsKeyId" => { + builder = builder.set_s3_sse_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureCode" => { + builder = builder.set_failure_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureMessage" => { + builder = builder.set_failure_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportFormat" => { + builder = builder.set_export_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExportFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "BilledSizeBytes" => { + builder = builder.set_billed_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ItemCount" => { + builder = builder.set_item_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_settings_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replica_settings_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_kinesis_data_stream_destinations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_kinesis_data_stream_destination( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_table_auto_scaling_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TableAutoScalingDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableStatus" => { + builder = builder.set_table_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TableStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Replicas" => { + builder = builder.set_replicas( + crate::json_deser::deser_list_replica_auto_scaling_description_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_time_to_live_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TimeToLiveDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TimeToLiveStatus" => { + builder = builder.set_time_to_live_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TimeToLiveStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "AttributeName" => { + builder = builder.set_attribute_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::vec::Vec>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_attribute_map(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_cancellation_reason_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_cancellation_reason(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_item_response_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_item_response(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_backup_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_backup_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_contributor_insights_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_contributor_insights_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_export_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_export_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_global_table_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_global_table(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_table_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_key<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_time_to_live_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TimeToLiveSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "AttributeName" => { + builder = builder.set_attribute_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_statement_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchStatementResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Error" => { + builder = builder.set_error( + crate::json_deser::deser_structure_batch_statement_error( + tokens, + )?, + ); + } + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Item" => { + builder = builder + .set_item(crate::json_deser::deser_map_attribute_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_keys_and_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeysAndAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Keys" => { + builder = builder + .set_keys(crate::json_deser::deser_list_key_list(tokens)?); + } + "AttributesToGet" => { + builder = builder.set_attributes_to_get( + crate::json_deser::deser_list_attribute_name_list(tokens)?, + ); + } + "ConsistentRead" => { + builder = builder.set_consistent_read( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ProjectionExpression" => { + builder = builder.set_projection_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExpressionAttributeNames" => { + builder = builder.set_expression_attribute_names( + crate::json_deser::deser_map_expression_attribute_name_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_write_requests<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_write_request(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_item_collection_metrics_multiple<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_item_collection_metrics(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_replica_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attribute_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_attribute_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_key_schema<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_schema_element(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_provisioned_throughput_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProvisionedThroughputDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LastIncreaseDateTime" => { + builder = builder.set_last_increase_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastDecreaseDateTime" => { + builder = builder.set_last_decrease_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "NumberOfDecreasesToday" => { + builder = builder.set_number_of_decreases_today( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ReadCapacityUnits" => { + builder = builder.set_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "WriteCapacityUnits" => { + builder = builder.set_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_billing_mode_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BillingModeSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BillingMode" => { + builder = builder.set_billing_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BillingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateToPayPerRequestDateTime" => { + builder = builder.set_last_update_to_pay_per_request_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_local_secondary_index_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_local_secondary_index_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_global_secondary_index_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_global_secondary_index_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_stream_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StreamSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamEnabled" => { + builder = builder.set_stream_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "StreamViewType" => { + builder = builder.set_stream_view_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StreamViewType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_restore_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RestoreSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceBackupArn" => { + builder = builder.set_source_backup_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceTableArn" => { + builder = builder.set_source_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RestoreDateTime" => { + builder = builder.set_restore_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RestoreInProgress" => { + builder = builder.set_restore_in_progress( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sse_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SseDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SseStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SSEType" => { + builder = builder.set_sse_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SseType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KMSMasterKeyArn" => { + builder = builder.set_kms_master_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InaccessibleEncryptionDateTime" => { + builder = builder.set_inaccessible_encryption_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_archival_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchivalSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArchivalDateTime" => { + builder = builder.set_archival_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ArchivalReason" => { + builder = builder.set_archival_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ArchivalBackupArn" => { + builder = builder.set_archival_backup_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_table_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceTableDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableId" => { + builder = builder.set_table_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableArn" => { + builder = builder.set_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableSizeBytes" => { + builder = builder.set_table_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "TableCreationDateTime" => { + builder = builder.set_table_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProvisionedThroughput" => { + builder = builder.set_provisioned_throughput( + crate::json_deser::deser_structure_provisioned_throughput( + tokens, + )?, + ); + } + "ItemCount" => { + builder = builder.set_item_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "BillingMode" => { + builder = builder.set_billing_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BillingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_table_feature_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceTableFeatureDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LocalSecondaryIndexes" => { + builder = builder.set_local_secondary_indexes( + crate::json_deser::deser_list_local_secondary_indexes(tokens)?, + ); + } + "GlobalSecondaryIndexes" => { + builder = builder.set_global_secondary_indexes( + crate::json_deser::deser_list_global_secondary_indexes(tokens)?, + ); + } + "StreamDescription" => { + builder = builder.set_stream_description( + crate::json_deser::deser_structure_stream_specification( + tokens, + )?, + ); + } + "TimeToLiveDescription" => { + builder = builder.set_time_to_live_description( + crate::json_deser::deser_structure_time_to_live_description( + tokens, + )?, + ); + } + "SSEDescription" => { + builder = builder.set_sse_description( + crate::json_deser::deser_structure_sse_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_union_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + let mut variant = None; + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + if variant.is_some() { + return Err(smithy_json::deserialize::Error::custom( + "encountered mixed variants in union", + )); + } + variant = match key.to_unescaped()?.as_ref() { + "S" => Some(crate::model::AttributeValue::S( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()? + .unwrap_or_default(), + )), + "N" => Some(crate::model::AttributeValue::N( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()? + .unwrap_or_default(), + )), + "B" => Some(crate::model::AttributeValue::B( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'B' cannot be null", + ) + })?, + )), + "SS" => Some(crate::model::AttributeValue::Ss( + crate::json_deser::deser_list_string_set_attribute_value(tokens)? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'SS' cannot be null", + ) + })?, + )), + "NS" => Some(crate::model::AttributeValue::Ns( + crate::json_deser::deser_list_number_set_attribute_value(tokens)? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'NS' cannot be null", + ) + })?, + )), + "BS" => Some(crate::model::AttributeValue::Bs( + crate::json_deser::deser_list_binary_set_attribute_value(tokens)? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'BS' cannot be null", + ) + })?, + )), + "M" => Some(crate::model::AttributeValue::M( + crate::json_deser::deser_map_map_attribute_value(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'M' cannot be null", + ) + }, + )?, + )), + "L" => Some(crate::model::AttributeValue::L( + crate::json_deser::deser_list_list_attribute_value(tokens)? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'L' cannot be null", + ) + })?, + )), + "NULL" => Some(crate::model::AttributeValue::Null( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + "BOOL" => Some(crate::model::AttributeValue::Bool( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + _ => None, + }; + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + }, + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )) + } + } + Ok(variant) +} + +pub fn deser_structure_capacity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Capacity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReadCapacityUnits" => { + builder = builder.set_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "WriteCapacityUnits" => { + builder = builder.set_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "CapacityUnits" => { + builder = builder.set_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_secondary_indexes_capacity_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_capacity(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_item_collection_key_attribute_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_item_collection_size_estimate_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()); + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_point_in_time_recovery_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PointInTimeRecoveryDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PointInTimeRecoveryStatus" => { + builder = builder.set_point_in_time_recovery_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PointInTimeRecoveryStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "EarliestRestorableDateTime" => { + builder = builder.set_earliest_restorable_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LatestRestorableDateTime" => { + builder = builder.set_latest_restorable_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Endpoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Address" => { + builder = builder.set_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CachePeriodInMinutes" => { + builder = builder.set_cache_period_in_minutes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replica_settings_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicaSettingsDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RegionName" => { + builder = builder.set_region_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicaStatus" => { + builder = builder.set_replica_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReplicaStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ReplicaBillingModeSummary" => { + builder = builder.set_replica_billing_mode_summary( + crate::json_deser::deser_structure_billing_mode_summary( + tokens, + )?, + ); + } + "ReplicaProvisionedReadCapacityUnits" => { + builder = builder.set_replica_provisioned_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ReplicaProvisionedReadCapacityAutoScalingSettings" => { + builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ReplicaProvisionedWriteCapacityUnits" => { + builder = builder.set_replica_provisioned_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ReplicaProvisionedWriteCapacityAutoScalingSettings" => { + builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ReplicaGlobalSecondaryIndexSettings" => { + builder = builder.set_replica_global_secondary_index_settings( + crate::json_deser::deser_list_replica_global_secondary_index_settings_description_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kinesis_data_stream_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KinesisDataStreamDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamArn" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationStatus" => { + builder = builder.set_destination_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DestinationStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "DestinationStatusDescription" => { + builder = builder.set_destination_status_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_auto_scaling_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replica_auto_scaling_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_cancellation_reason<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CancellationReason::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Item" => { + builder = builder + .set_item(crate::json_deser::deser_map_attribute_map(tokens)?); + } + "Code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_item_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ItemResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Item" => { + builder = builder + .set_item(crate::json_deser::deser_map_attribute_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_backup_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BackupSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableId" => { + builder = builder.set_table_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TableArn" => { + builder = builder.set_table_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BackupArn" => { + builder = builder.set_backup_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BackupName" => { + builder = builder.set_backup_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BackupCreationDateTime" => { + builder = builder.set_backup_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "BackupExpiryDateTime" => { + builder = builder.set_backup_expiry_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "BackupStatus" => { + builder = builder.set_backup_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BackupStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "BackupType" => { + builder = builder.set_backup_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BackupType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "BackupSizeBytes" => { + builder = builder.set_backup_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_contributor_insights_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContributorInsightsSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContributorInsightsStatus" => { + builder = builder.set_contributor_insights_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContributorInsightsStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_export_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExportSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportArn" => { + builder = builder.set_export_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportStatus" => { + builder = builder.set_export_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExportStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_global_table<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GlobalTable::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GlobalTableName" => { + builder = builder.set_global_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicationGroup" => { + builder = builder.set_replication_group( + crate::json_deser::deser_list_replica_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_statement_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchStatementError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BatchStatementErrorCodeEnum::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_key_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::vec::Vec>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_key(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attribute_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_expression_attribute_name_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_write_request<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::WriteRequest::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PutRequest" => { + builder = builder.set_put_request( + crate::json_deser::deser_structure_put_request(tokens)?, + ); + } + "DeleteRequest" => { + builder = builder.set_delete_request( + crate::json_deser::deser_structure_delete_request(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replica_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicaDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RegionName" => { + builder = builder.set_region_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicaStatus" => { + builder = builder.set_replica_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReplicaStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ReplicaStatusDescription" => { + builder = builder.set_replica_status_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicaStatusPercentProgress" => { + builder = builder.set_replica_status_percent_progress( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KMSMasterKeyId" => { + builder = builder.set_kms_master_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisionedThroughputOverride" => { + builder = builder.set_provisioned_throughput_override( + crate::json_deser::deser_structure_provisioned_throughput_override(tokens)? + ); + } + "GlobalSecondaryIndexes" => { + builder = builder.set_global_secondary_indexes( + crate::json_deser::deser_list_replica_global_secondary_index_description_list(tokens)? + ); + } + "ReplicaInaccessibleDateTime" => { + builder = builder.set_replica_inaccessible_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attribute_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AttributeDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AttributeName" => { + builder = builder.set_attribute_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AttributeType" => { + builder = builder.set_attribute_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ScalarAttributeType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_key_schema_element<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeySchemaElement::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AttributeName" => { + builder = builder.set_attribute_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyType" => { + builder = builder.set_key_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::KeyType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_local_secondary_index_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LocalSecondaryIndexDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "Projection" => { + builder = builder.set_projection( + crate::json_deser::deser_structure_projection(tokens)?, + ); + } + "IndexSizeBytes" => { + builder = builder.set_index_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ItemCount" => { + builder = builder.set_item_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "IndexArn" => { + builder = builder.set_index_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_global_secondary_index_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GlobalSecondaryIndexDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "Projection" => { + builder = builder.set_projection( + crate::json_deser::deser_structure_projection(tokens)?, + ); + } + "IndexStatus" => { + builder = builder.set_index_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IndexStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Backfilling" => { + builder = builder.set_backfilling( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ProvisionedThroughput" => { + builder = builder.set_provisioned_throughput( + crate::json_deser::deser_structure_provisioned_throughput_description(tokens)? + ); + } + "IndexSizeBytes" => { + builder = builder.set_index_size_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ItemCount" => { + builder = builder.set_item_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "IndexArn" => { + builder = builder.set_index_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_provisioned_throughput<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProvisionedThroughput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReadCapacityUnits" => { + builder = builder.set_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "WriteCapacityUnits" => { + builder = builder.set_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_local_secondary_indexes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_local_secondary_index_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_global_secondary_indexes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_global_secondary_index_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_set_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_number_set_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_binary_set_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_map_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_attribute_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_auto_scaling_settings_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoScalingSettingsDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MinimumUnits" => { + builder = builder.set_minimum_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "MaximumUnits" => { + builder = builder.set_maximum_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "AutoScalingDisabled" => { + builder = builder.set_auto_scaling_disabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "AutoScalingRoleArn" => { + builder = builder.set_auto_scaling_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScalingPolicies" => { + builder = builder.set_scaling_policies( + crate::json_deser::deser_list_auto_scaling_policy_description_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_global_secondary_index_settings_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replica_global_secondary_index_settings_description(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_replica_auto_scaling_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicaAutoScalingDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RegionName" => { + builder = builder.set_region_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "GlobalSecondaryIndexes" => { + builder = builder.set_global_secondary_indexes( + crate::json_deser::deser_list_replica_global_secondary_index_auto_scaling_description_list(tokens)? + ); + } + "ReplicaProvisionedReadCapacityAutoScalingSettings" => { + builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ReplicaProvisionedWriteCapacityAutoScalingSettings" => { + builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ReplicaStatus" => { + builder = builder.set_replica_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReplicaStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_replica(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_put_request<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PutRequest::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Item" => { + builder = builder.set_item( + crate::json_deser::deser_map_put_item_input_attribute_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_delete_request<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeleteRequest::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = + builder.set_key(crate::json_deser::deser_map_key(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_provisioned_throughput_override<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProvisionedThroughputOverride::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReadCapacityUnits" => { + builder = builder.set_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_global_secondary_index_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replica_global_secondary_index_description(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_projection<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Projection::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProjectionType" => { + builder = builder.set_projection_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProjectionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "NonKeyAttributes" => { + builder = builder.set_non_key_attributes( + crate::json_deser::deser_list_non_key_attribute_name_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_local_secondary_index_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LocalSecondaryIndexInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "Projection" => { + builder = builder.set_projection( + crate::json_deser::deser_structure_projection(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_global_secondary_index_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GlobalSecondaryIndexInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeySchema" => { + builder = builder.set_key_schema( + crate::json_deser::deser_list_key_schema(tokens)?, + ); + } + "Projection" => { + builder = builder.set_projection( + crate::json_deser::deser_structure_projection(tokens)?, + ); + } + "ProvisionedThroughput" => { + builder = builder.set_provisioned_throughput( + crate::json_deser::deser_structure_provisioned_throughput( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_scaling_policy_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_auto_scaling_policy_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_replica_global_secondary_index_settings_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::ReplicaGlobalSecondaryIndexSettingsDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IndexStatus" => { + builder = builder.set_index_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IndexStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ProvisionedReadCapacityUnits" => { + builder = builder.set_provisioned_read_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ProvisionedReadCapacityAutoScalingSettings" => { + builder = builder.set_provisioned_read_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ProvisionedWriteCapacityUnits" => { + builder = builder.set_provisioned_write_capacity_units( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ProvisionedWriteCapacityAutoScalingSettings" => { + builder = builder.set_provisioned_write_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replica_global_secondary_index_auto_scaling_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replica_global_secondary_index_auto_scaling_description(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_replica<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Replica::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RegionName" => { + builder = builder.set_region_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_put_item_input_attribute_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_union_attribute_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replica_global_secondary_index_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicaGlobalSecondaryIndexDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisionedThroughputOverride" => { + builder = builder.set_provisioned_throughput_override( + crate::json_deser::deser_structure_provisioned_throughput_override(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_non_key_attribute_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_auto_scaling_policy_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoScalingPolicyDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PolicyName" => { + builder = builder.set_policy_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetTrackingScalingPolicyConfiguration" => { + builder = builder.set_target_tracking_scaling_policy_configuration( + crate::json_deser::deser_structure_auto_scaling_target_tracking_scaling_policy_configuration_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replica_global_secondary_index_auto_scaling_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::ReplicaGlobalSecondaryIndexAutoScalingDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IndexName" => { + builder = builder.set_index_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IndexStatus" => { + builder = builder.set_index_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IndexStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ProvisionedReadCapacityAutoScalingSettings" => { + builder = builder.set_provisioned_read_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + "ProvisionedWriteCapacityAutoScalingSettings" => { + builder = builder.set_provisioned_write_capacity_auto_scaling_settings( + crate::json_deser::deser_structure_auto_scaling_settings_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_scaling_target_tracking_scaling_policy_configuration_description< + 'a, + I, +>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)]let mut builder = crate::model::AutoScalingTargetTrackingScalingPolicyConfigurationDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DisableScaleIn" => { + builder = builder.set_disable_scale_in( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ScaleInCooldown" => { + builder = builder.set_scale_in_cooldown( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ScaleOutCooldown" => { + builder = builder.set_scale_out_cooldown( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TargetValue" => { + builder = builder.set_target_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/dynamodb/src/json_errors.rs b/sdk/dynamodb/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/dynamodb/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/dynamodb/src/json_ser.rs b/sdk/dynamodb/src/json_ser.rs index c866b811125c..ca25cd28c571 100644 --- a/sdk/dynamodb/src/json_ser.rs +++ b/sdk/dynamodb/src/json_ser.rs @@ -1662,7 +1662,7 @@ pub fn serialize_structure_stream_specification( pub fn serialize_structure_sse_specification( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::SSESpecification, + input: &crate::model::SseSpecification, ) { if let Some(var_442) = &input.enabled { object.key("Enabled").boolean(*var_442); diff --git a/sdk/dynamodb/src/lib.rs b/sdk/dynamodb/src/lib.rs index 7eb8948786f7..fb8d11a313c0 100644 --- a/sdk/dynamodb/src/lib.rs +++ b/sdk/dynamodb/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon DynamoDB //!

    Amazon DynamoDB is a fully managed NoSQL database service that provides fast and //! predictable performance with seamless scalability. DynamoDB lets you offload the @@ -25,8 +26,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -34,15 +33,14 @@ pub mod error; mod error_meta; mod idempotency_token; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/dynamodb/src/model.rs b/sdk/dynamodb/src/model.rs index a052b640691e..3f59566b030a 100644 --- a/sdk/dynamodb/src/model.rs +++ b/sdk/dynamodb/src/model.rs @@ -2,16 +2,12 @@ ///

    Represents the settings used to enable or disable Time to Live (TTL) for the specified /// table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TimeToLiveSpecification { ///

    Indicates whether TTL is to be enabled (true) or disabled (false) on the table.

    - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: std::option::Option, ///

    The name of the TTL attribute used to store the expiration time for items in the /// table.

    - #[serde(rename = "AttributeName")] - #[serde(default)] pub attribute_name: std::option::Option, } impl std::fmt::Debug for TimeToLiveSpecification { @@ -72,11 +68,9 @@ impl TimeToLiveSpecification { ///

    Represents the auto scaling configuration for a global table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TableAutoScalingDescription { ///

    The name of the table.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    The current state of the table:

    ///
      @@ -97,12 +91,8 @@ pub struct TableAutoScalingDescription { /// ACTIVE - The table is ready for use.

      /// ///
    - #[serde(rename = "TableStatus")] - #[serde(default)] pub table_status: std::option::Option, ///

    Represents replicas of the global table.

    - #[serde(rename = "Replicas")] - #[serde(default)] pub replicas: std::option::Option>, } impl std::fmt::Debug for TableAutoScalingDescription { @@ -200,28 +190,20 @@ impl TableAutoScalingDescription { ///

    Represents the auto scaling settings of the replica.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaAutoScalingDescription { ///

    The Region where the replica exists.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

    Replica-specific global secondary index auto scaling settings.

    - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option< std::vec::Vec, >, ///

    Represents the auto scaling settings for a global table or global secondary /// index.

    - #[serde(rename = "ReplicaProvisionedReadCapacityAutoScalingSettings")] - #[serde(default)] pub replica_provisioned_read_capacity_auto_scaling_settings: std::option::Option, ///

    Represents the auto scaling settings for a global table or global secondary /// index.

    - #[serde(rename = "ReplicaProvisionedWriteCapacityAutoScalingSettings")] - #[serde(default)] pub replica_provisioned_write_capacity_auto_scaling_settings: std::option::Option, ///

    The current state of the replica:

    @@ -243,8 +225,6 @@ pub struct ReplicaAutoScalingDescription { /// ACTIVE - The replica is ready for use.

    /// /// - #[serde(rename = "ReplicaStatus")] - #[serde(default)] pub replica_status: std::option::Option, } impl std::fmt::Debug for ReplicaAutoScalingDescription { @@ -431,7 +411,7 @@ impl std::convert::From<&str> for ReplicaStatus { impl std::str::FromStr for ReplicaStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplicaStatus::from(s)) } } @@ -456,40 +436,21 @@ impl AsRef for ReplicaStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplicaStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the auto scaling settings for a global table or global secondary /// index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingSettingsDescription { ///

    The minimum capacity units that a global table or global secondary index should be scaled down to.

    - #[serde(rename = "MinimumUnits")] - #[serde(default)] pub minimum_units: std::option::Option, ///

    The maximum capacity units that a global table or global secondary index should be scaled up to.

    - #[serde(rename = "MaximumUnits")] - #[serde(default)] pub maximum_units: std::option::Option, ///

    Disabled auto scaling for this global table or global secondary index.

    - #[serde(rename = "AutoScalingDisabled")] - #[serde(default)] pub auto_scaling_disabled: std::option::Option, ///

    Role ARN used for configuring the auto scaling policy.

    - #[serde(rename = "AutoScalingRoleArn")] - #[serde(default)] pub auto_scaling_role_arn: std::option::Option, ///

    Information about the scaling policies.

    - #[serde(rename = "ScalingPolicies")] - #[serde(default)] pub scaling_policies: std::option::Option>, } @@ -594,15 +555,11 @@ impl AutoScalingSettingsDescription { ///

    Represents the properties of the scaling policy.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingPolicyDescription { ///

    The name of the scaling policy.

    - #[serde(rename = "PolicyName")] - #[serde(default)] pub policy_name: std::option::Option, ///

    Represents a target tracking scaling policy configuration.

    - #[serde(rename = "TargetTrackingScalingPolicyConfiguration")] - #[serde(default)] pub target_tracking_scaling_policy_configuration: std::option::Option< crate::model::AutoScalingTargetTrackingScalingPolicyConfigurationDescription, >, @@ -675,14 +632,12 @@ impl AutoScalingPolicyDescription { ///

    Represents the properties of a target tracking scaling policy.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingTargetTrackingScalingPolicyConfigurationDescription { ///

    Indicates whether scale in by the target tracking policy is disabled. If the value is true, /// scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. /// Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. /// The default value is false.

    - #[serde(rename = "DisableScaleIn")] - #[serde(default)] pub disable_scale_in: std::option::Option, ///

    The amount of time, in seconds, after a scale in activity completes before another scale /// in activity can start. The cooldown period is used to block subsequent scale in requests @@ -690,20 +645,14 @@ pub struct AutoScalingTargetTrackingScalingPolicyConfigurationDescription { /// availability. However, if another alarm triggers a scale out policy during the cooldown /// period after a scale-in, application auto scaling scales out your scalable target /// immediately.

    - #[serde(rename = "ScaleInCooldown")] - #[serde(default)] pub scale_in_cooldown: std::option::Option, ///

    The amount of time, in seconds, after a scale out activity completes before another scale out /// activity can start. While the cooldown period is in effect, the capacity that has been added /// by the previous scale out event that initiated the cooldown is calculated as part of the /// desired capacity for the next scale out. You should continuously (but not excessively) /// scale out.

    - #[serde(rename = "ScaleOutCooldown")] - #[serde(default)] pub scale_out_cooldown: std::option::Option, ///

    The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

    - #[serde(rename = "TargetValue")] - #[serde(default)] pub target_value: std::option::Option, } impl std::fmt::Debug for AutoScalingTargetTrackingScalingPolicyConfigurationDescription { @@ -801,11 +750,9 @@ impl AutoScalingTargetTrackingScalingPolicyConfigurationDescription { ///

    Represents the auto scaling configuration for a replica global secondary index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndexAutoScalingDescription { ///

    The name of the global secondary index.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    The current state of the replica global secondary index:

    ///
      @@ -826,19 +773,13 @@ pub struct ReplicaGlobalSecondaryIndexAutoScalingDescription { /// ACTIVE - The index is ready for use.

      /// ///
    - #[serde(rename = "IndexStatus")] - #[serde(default)] pub index_status: std::option::Option, ///

    Represents the auto scaling settings for a global table or global secondary /// index.

    - #[serde(rename = "ProvisionedReadCapacityAutoScalingSettings")] - #[serde(default)] pub provisioned_read_capacity_auto_scaling_settings: std::option::Option, ///

    Represents the auto scaling settings for a global table or global secondary /// index.

    - #[serde(rename = "ProvisionedWriteCapacityAutoScalingSettings")] - #[serde(default)] pub provisioned_write_capacity_auto_scaling_settings: std::option::Option, } @@ -996,7 +937,7 @@ impl std::convert::From<&str> for IndexStatus { impl std::str::FromStr for IndexStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IndexStatus::from(s)) } } @@ -1016,15 +957,6 @@ impl AsRef for IndexStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IndexStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1064,7 +996,7 @@ impl std::convert::From<&str> for TableStatus { impl std::str::FromStr for TableStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TableStatus::from(s)) } } @@ -1087,35 +1019,20 @@ impl AsRef for TableStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TableStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the auto scaling settings of a replica that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaAutoScalingUpdate { ///

    The Region where the replica exists.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

    Represents the auto scaling settings of global secondary indexes that will /// be modified.

    - #[serde(rename = "ReplicaGlobalSecondaryIndexUpdates")] - #[serde(default)] pub replica_global_secondary_index_updates: std::option::Option< std::vec::Vec, >, ///

    Represents the auto scaling settings to be modified for a global table or global /// secondary index.

    - #[serde(rename = "ReplicaProvisionedReadCapacityAutoScalingUpdate")] - #[serde(default)] pub replica_provisioned_read_capacity_auto_scaling_update: std::option::Option, } @@ -1214,27 +1131,17 @@ impl ReplicaAutoScalingUpdate { ///

    Represents the auto scaling settings to be modified for a global table or global /// secondary index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingSettingsUpdate { ///

    The minimum capacity units that a global table or global secondary index should be scaled down to.

    - #[serde(rename = "MinimumUnits")] - #[serde(default)] pub minimum_units: std::option::Option, ///

    The maximum capacity units that a global table or global secondary index should be scaled up to.

    - #[serde(rename = "MaximumUnits")] - #[serde(default)] pub maximum_units: std::option::Option, ///

    Disabled auto scaling for this global table or global secondary index.

    - #[serde(rename = "AutoScalingDisabled")] - #[serde(default)] pub auto_scaling_disabled: std::option::Option, ///

    Role ARN used for configuring auto scaling policy.

    - #[serde(rename = "AutoScalingRoleArn")] - #[serde(default)] pub auto_scaling_role_arn: std::option::Option, ///

    The scaling policy to apply for scaling target global table or global secondary index capacity units.

    - #[serde(rename = "ScalingPolicyUpdate")] - #[serde(default)] pub scaling_policy_update: std::option::Option, } impl std::fmt::Debug for AutoScalingSettingsUpdate { @@ -1337,15 +1244,11 @@ impl AutoScalingSettingsUpdate { ///

    Represents the auto scaling policy to be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingPolicyUpdate { ///

    The name of the scaling policy.

    - #[serde(rename = "PolicyName")] - #[serde(default)] pub policy_name: std::option::Option, ///

    Represents a target tracking scaling policy configuration.

    - #[serde(rename = "TargetTrackingScalingPolicyConfiguration")] - #[serde(default)] pub target_tracking_scaling_policy_configuration: std::option::Option< crate::model::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate, >, @@ -1418,14 +1321,12 @@ impl AutoScalingPolicyUpdate { ///

    Represents the settings of a target tracking scaling policy that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingTargetTrackingScalingPolicyConfigurationUpdate { ///

    Indicates whether scale in by the target tracking policy is disabled. If the value is true, /// scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. /// Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. /// The default value is false.

    - #[serde(rename = "DisableScaleIn")] - #[serde(default)] pub disable_scale_in: std::option::Option, ///

    The amount of time, in seconds, after a scale in activity completes before another scale /// in activity can start. The cooldown period is used to block subsequent scale in requests @@ -1433,20 +1334,14 @@ pub struct AutoScalingTargetTrackingScalingPolicyConfigurationUpdate { /// availability. However, if another alarm triggers a scale out policy during the cooldown /// period after a scale-in, application auto scaling scales out your scalable target /// immediately.

    - #[serde(rename = "ScaleInCooldown")] - #[serde(default)] pub scale_in_cooldown: std::option::Option, ///

    The amount of time, in seconds, after a scale out activity completes before another scale out /// activity can start. While the cooldown period is in effect, the capacity that has been added /// by the previous scale out event that initiated the cooldown is calculated as part of the /// desired capacity for the next scale out. You should continuously (but not excessively) /// scale out.

    - #[serde(rename = "ScaleOutCooldown")] - #[serde(default)] pub scale_out_cooldown: std::option::Option, ///

    The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

    - #[serde(rename = "TargetValue")] - #[serde(default)] pub target_value: std::option::Option, } impl std::fmt::Debug for AutoScalingTargetTrackingScalingPolicyConfigurationUpdate { @@ -1545,16 +1440,12 @@ impl AutoScalingTargetTrackingScalingPolicyConfigurationUpdate { ///

    Represents the auto scaling settings of a global secondary index for a replica /// that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndexAutoScalingUpdate { ///

    The name of the global secondary index.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    Represents the auto scaling settings to be modified for a global table or global /// secondary index.

    - #[serde(rename = "ProvisionedReadCapacityAutoScalingUpdate")] - #[serde(default)] pub provisioned_read_capacity_auto_scaling_update: std::option::Option, } @@ -1625,16 +1516,12 @@ impl ReplicaGlobalSecondaryIndexAutoScalingUpdate { ///

    Represents the auto scaling settings of a global secondary index for a global table /// that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalSecondaryIndexAutoScalingUpdate { ///

    The name of the global secondary index.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    Represents the auto scaling settings to be modified for a global table or global /// secondary index.

    - #[serde(rename = "ProvisionedWriteCapacityAutoScalingUpdate")] - #[serde(default)] pub provisioned_write_capacity_auto_scaling_update: std::option::Option, } @@ -1704,7 +1591,7 @@ impl GlobalSecondaryIndexAutoScalingUpdate { ///

    Represents the properties of a table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TableDescription { ///

    An array of AttributeDefinition objects. Each of these objects describes one attribute /// in the table and index key schema.

    @@ -1719,13 +1606,9 @@ pub struct TableDescription { /// AttributeType - The data type for the attribute.

    /// /// - #[serde(rename = "AttributeDefinitions")] - #[serde(default)] pub attribute_definitions: std::option::Option>, ///

    The name of the table.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    The primary key structure for the table. Each KeySchemaElement consists of:

    ///
      @@ -1758,8 +1641,6 @@ pub struct TableDescription { ///
    ///

    For more information about primary keys, see Primary Key in the /// Amazon DynamoDB Developer Guide.

    - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

    The current state of the table:

    ///
      @@ -1801,39 +1682,20 @@ pub struct TableDescription { ///

      /// ///
    - #[serde(rename = "TableStatus")] - #[serde(default)] pub table_status: std::option::Option, ///

    The date and time when the table was created, in UNIX epoch time format.

    - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date_time: std::option::Option, ///

    The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

    - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, ///

    The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    - #[serde(rename = "TableSizeBytes")] - #[serde(default)] pub table_size_bytes: i64, ///

    The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    - #[serde(rename = "ItemCount")] - #[serde(default)] pub item_count: i64, ///

    The Amazon Resource Name (ARN) that uniquely identifies the table.

    - #[serde(rename = "TableArn")] - #[serde(default)] pub table_arn: std::option::Option, ///

    Unique identifier for the table for which the backup was created.

    - #[serde(rename = "TableId")] - #[serde(default)] pub table_id: std::option::Option, ///

    Contains the details for the read/write capacity mode.

    - #[serde(rename = "BillingModeSummary")] - #[serde(default)] pub billing_mode_summary: std::option::Option, ///

    Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

    ///
      @@ -1899,8 +1761,6 @@ pub struct TableDescription { ///
    ///

    If the table is in the DELETING state, no information about indexes will be /// returned.

    - #[serde(rename = "LocalSecondaryIndexes")] - #[serde(default)] pub local_secondary_indexes: std::option::Option>, ///

    The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

    @@ -2008,13 +1868,9 @@ pub struct TableDescription { /// ///

    If the table is in the DELETING state, no information about indexes will be /// returned.

    - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, ///

    The current DynamoDB Streams configuration for the table.

    - #[serde(rename = "StreamSpecification")] - #[serde(default)] pub stream_specification: std::option::Option, ///

    A timestamp, in ISO 8601 format, for this stream.

    ///

    Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

    @@ -2031,32 +1887,18 @@ pub struct TableDescription { ///

    /// /// - #[serde(rename = "LatestStreamLabel")] - #[serde(default)] pub latest_stream_label: std::option::Option, ///

    The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

    - #[serde(rename = "LatestStreamArn")] - #[serde(default)] pub latest_stream_arn: std::option::Option, ///

    Represents the version of global tables in use, if the table is replicated across AWS Regions.

    - #[serde(rename = "GlobalTableVersion")] - #[serde(default)] pub global_table_version: std::option::Option, ///

    Represents replicas of the table.

    - #[serde(rename = "Replicas")] - #[serde(default)] pub replicas: std::option::Option>, ///

    Contains details for the restore.

    - #[serde(rename = "RestoreSummary")] - #[serde(default)] pub restore_summary: std::option::Option, ///

    The description of the server-side encryption status on the specified table.

    - #[serde(rename = "SSEDescription")] - #[serde(default)] - pub sse_description: std::option::Option, + pub sse_description: std::option::Option, ///

    Contains information about the table archive.

    - #[serde(rename = "ArchivalSummary")] - #[serde(default)] pub archival_summary: std::option::Option, } impl std::fmt::Debug for TableDescription { @@ -2115,7 +1957,7 @@ pub mod table_description { pub(crate) global_table_version: std::option::Option, pub(crate) replicas: std::option::Option>, pub(crate) restore_summary: std::option::Option, - pub(crate) sse_description: std::option::Option, + pub(crate) sse_description: std::option::Option, pub(crate) archival_summary: std::option::Option, } impl Builder { @@ -2405,13 +2247,13 @@ pub mod table_description { self } ///

    The description of the server-side encryption status on the specified table.

    - pub fn sse_description(mut self, input: crate::model::SSEDescription) -> Self { + pub fn sse_description(mut self, input: crate::model::SseDescription) -> Self { self.sse_description = Some(input); self } pub fn set_sse_description( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_description = input; self @@ -2465,15 +2307,10 @@ impl TableDescription { ///

    Contains details of a table archival operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchivalSummary { ///

    The date and time when table archival was initiated by DynamoDB, /// in UNIX epoch time format.

    - #[serde(rename = "ArchivalDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub archival_date_time: std::option::Option, ///

    The reason DynamoDB archived the table. Currently, the only /// possible value is:

    @@ -2486,15 +2323,11 @@ pub struct ArchivalSummary { /// time.

    /// /// - #[serde(rename = "ArchivalReason")] - #[serde(default)] pub archival_reason: std::option::Option, ///

    The Amazon Resource Name (ARN) of the backup the table was archived /// to, when applicable in the archival reason. If you wish to restore this /// backup to the same table name, you will need to delete the original /// table.

    - #[serde(rename = "ArchivalBackupArn")] - #[serde(default)] pub archival_backup_arn: std::option::Option, } impl std::fmt::Debug for ArchivalSummary { @@ -2586,8 +2419,8 @@ impl ArchivalSummary { ///

    The description of the server-side encryption status on the specified table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SSEDescription { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SseDescription { ///

    Represents the current state of server-side encryption. The only supported values are:

    ///
      ///
    • @@ -2599,8 +2432,6 @@ pub struct SSEDescription { /// UPDATING - Server-side encryption is being updated.

      ///
    • ///
    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Server-side encryption type. The only supported value is:

    ///
      @@ -2611,28 +2442,19 @@ pub struct SSEDescription { /// apply).

      /// ///
    - #[serde(rename = "SSEType")] - #[serde(default)] pub sse_type: std::option::Option, ///

    The AWS KMS customer master key (CMK) ARN used for the AWS KMS encryption.

    - #[serde(rename = "KMSMasterKeyArn")] - #[serde(default)] pub kms_master_key_arn: std::option::Option, ///

    Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's /// AWS KMS key was inaccessible. This attribute will automatically be cleared when DynamoDB /// detects that the table's AWS KMS key is accessible again. DynamoDB will initiate the table /// archival process when table's AWS KMS key remains inaccessible for more than seven days /// from this date.

    - #[serde(rename = "InaccessibleEncryptionDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub inaccessible_encryption_date_time: std::option::Option, } -impl std::fmt::Debug for SSEDescription { +impl std::fmt::Debug for SseDescription { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSEDescription"); + let mut formatter = f.debug_struct("SseDescription"); formatter.field("status", &self.status); formatter.field("sse_type", &self.sse_type); formatter.field("kms_master_key_arn", &self.kms_master_key_arn); @@ -2643,9 +2465,9 @@ impl std::fmt::Debug for SSEDescription { formatter.finish() } } -/// See [`SSEDescription`](crate::model::SSEDescription) +/// See [`SseDescription`](crate::model::SseDescription) pub mod sse_description { - /// A builder for [`SSEDescription`](crate::model::SSEDescription) + /// A builder for [`SseDescription`](crate::model::SseDescription) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2719,9 +2541,9 @@ pub mod sse_description { self.inaccessible_encryption_date_time = input; self } - /// Consumes the builder and constructs a [`SSEDescription`](crate::model::SSEDescription) - pub fn build(self) -> crate::model::SSEDescription { - crate::model::SSEDescription { + /// Consumes the builder and constructs a [`SseDescription`](crate::model::SseDescription) + pub fn build(self) -> crate::model::SseDescription { + crate::model::SseDescription { status: self.status, sse_type: self.sse_type, kms_master_key_arn: self.kms_master_key_arn, @@ -2730,8 +2552,8 @@ pub mod sse_description { } } } -impl SSEDescription { - /// Creates a new builder-style object to manufacture [`SSEDescription`](crate::model::SSEDescription) +impl SseDescription { + /// Creates a new builder-style object to manufacture [`SseDescription`](crate::model::SseDescription) pub fn builder() -> crate::model::sse_description::Builder { crate::model::sse_description::Builder::default() } @@ -2765,7 +2587,7 @@ impl std::convert::From<&str> for SseType { impl std::str::FromStr for SseType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SseType::from(s)) } } @@ -2783,15 +2605,6 @@ impl AsRef for SseType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SseType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2827,7 +2640,7 @@ impl std::convert::From<&str> for SseStatus { impl std::str::FromStr for SseStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SseStatus::from(s)) } } @@ -2848,38 +2661,18 @@ impl AsRef for SseStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SseStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains details for the restore.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RestoreSummary { ///

    The Amazon Resource Name (ARN) of the backup from which the table was restored.

    - #[serde(rename = "SourceBackupArn")] - #[serde(default)] pub source_backup_arn: std::option::Option, ///

    The ARN of the source table of the backup that is being restored.

    - #[serde(rename = "SourceTableArn")] - #[serde(default)] pub source_table_arn: std::option::Option, ///

    Point in time or source backup time.

    - #[serde(rename = "RestoreDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub restore_date_time: std::option::Option, ///

    Indicates if a restore is in progress or not.

    - #[serde(rename = "RestoreInProgress")] - #[serde(default)] pub restore_in_progress: std::option::Option, } impl std::fmt::Debug for RestoreSummary { @@ -2969,11 +2762,9 @@ impl RestoreSummary { ///

    Contains the details of the replica.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaDescription { ///

    The name of the Region.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

    The current state of the replica:

    ///
      @@ -3008,40 +2799,23 @@ pub struct ReplicaDescription { /// /// ///
    - #[serde(rename = "ReplicaStatus")] - #[serde(default)] pub replica_status: std::option::Option, ///

    Detailed information about the replica status.

    - #[serde(rename = "ReplicaStatusDescription")] - #[serde(default)] pub replica_status_description: std::option::Option, ///

    Specifies the progress of a Create, Update, or Delete action on the replica /// as a percentage.

    - #[serde(rename = "ReplicaStatusPercentProgress")] - #[serde(default)] pub replica_status_percent_progress: std::option::Option, ///

    The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS /// encryption.

    - #[serde(rename = "KMSMasterKeyId")] - #[serde(default)] pub kms_master_key_id: std::option::Option, ///

    Replica-specific provisioned throughput. If not described, uses the source table's /// provisioned throughput settings.

    - #[serde(rename = "ProvisionedThroughputOverride")] - #[serde(default)] pub provisioned_throughput_override: std::option::Option, ///

    Replica-specific global secondary index settings.

    - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, ///

    The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus property.

    - #[serde(rename = "ReplicaInaccessibleDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub replica_inaccessible_date_time: std::option::Option, } impl std::fmt::Debug for ReplicaDescription { @@ -3253,15 +3027,11 @@ impl ReplicaDescription { ///

    Represents the properties of a replica global secondary index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndexDescription { ///

    The name of the global secondary index.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    If not described, uses the source table GSI's read capacity settings.

    - #[serde(rename = "ProvisionedThroughputOverride")] - #[serde(default)] pub provisioned_throughput_override: std::option::Option, } @@ -3330,12 +3100,10 @@ impl ReplicaGlobalSecondaryIndexDescription { ///

    Replica-specific provisioned throughput settings. If not specified, uses the /// source table's provisioned throughput settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProvisionedThroughputOverride { ///

    Replica-specific read capacity units. If not specified, uses the source table's /// read capacity settings.

    - #[serde(rename = "ReadCapacityUnits")] - #[serde(default)] pub read_capacity_units: std::option::Option, } impl std::fmt::Debug for ProvisionedThroughputOverride { @@ -3381,11 +3149,9 @@ impl ProvisionedThroughputOverride { ///

    Represents the DynamoDB Streams configuration for a table in DynamoDB.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StreamSpecification { ///

    Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

    - #[serde(rename = "StreamEnabled")] - #[serde(default)] pub stream_enabled: std::option::Option, ///

    /// When an item in the table is modified, StreamViewType @@ -3412,8 +3178,6 @@ pub struct StreamSpecification { /// written to the stream.

    /// /// - #[serde(rename = "StreamViewType")] - #[serde(default)] pub stream_view_type: std::option::Option, } impl std::fmt::Debug for StreamSpecification { @@ -3527,7 +3291,7 @@ impl std::convert::From<&str> for StreamViewType { impl std::str::FromStr for StreamViewType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StreamViewType::from(s)) } } @@ -3547,23 +3311,12 @@ impl AsRef for StreamViewType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StreamViewType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the properties of a global secondary index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalSecondaryIndexDescription { ///

    The name of the global secondary index.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

    ///
      @@ -3584,14 +3337,10 @@ pub struct GlobalSecondaryIndexDescription { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

      /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

      Represents attributes that are copied (projected) from the table into the global /// secondary index. These are in addition to the primary key attributes and index key /// attributes, which are automatically projected.

      - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, ///

      The current state of the global secondary index:

      ///
        @@ -3612,8 +3361,6 @@ pub struct GlobalSecondaryIndexDescription { /// ACTIVE - The index is ready for use.

        /// ///
      - #[serde(rename = "IndexStatus")] - #[serde(default)] pub index_status: std::option::Option, ///

      Indicates whether the index is currently backfilling. Backfilling is the process of reading items from /// the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key @@ -3626,25 +3373,15 @@ pub struct GlobalSecondaryIndexDescription { /// ///

      For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

      /// - #[serde(rename = "Backfilling")] - #[serde(default)] pub backfilling: std::option::Option, ///

      Represents the provisioned throughput settings for the specified global secondary index.

      ///

      For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

      - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, ///

      The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

      - #[serde(rename = "IndexSizeBytes")] - #[serde(default)] pub index_size_bytes: i64, ///

      The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

      - #[serde(rename = "ItemCount")] - #[serde(default)] pub item_count: i64, ///

      The Amazon Resource Name (ARN) that uniquely identifies the index.

      - #[serde(rename = "IndexArn")] - #[serde(default)] pub index_arn: std::option::Option, } impl std::fmt::Debug for GlobalSecondaryIndexDescription { @@ -3833,38 +3570,22 @@ impl GlobalSecondaryIndexDescription { ///

      Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProvisionedThroughputDescription { ///

      The date and time of the last provisioned throughput increase for this table.

      - #[serde(rename = "LastIncreaseDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_increase_date_time: std::option::Option, ///

      The date and time of the last provisioned throughput decrease for this table.

      - #[serde(rename = "LastDecreaseDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_decrease_date_time: std::option::Option, ///

      The number of provisioned throughput decreases for this table during this UTC calendar day. /// For current maximums on provisioned throughput decreases, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

      - #[serde(rename = "NumberOfDecreasesToday")] - #[serde(default)] pub number_of_decreases_today: std::option::Option, ///

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a /// ThrottlingException. Eventually consistent reads require less effort than strongly /// consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 /// eventually consistent ReadCapacityUnits per second.

      - #[serde(rename = "ReadCapacityUnits")] - #[serde(default)] pub read_capacity_units: std::option::Option, ///

      The maximum number of writes consumed per second before DynamoDB returns a /// ThrottlingException.

      - #[serde(rename = "WriteCapacityUnits")] - #[serde(default)] pub write_capacity_units: std::option::Option, } impl std::fmt::Debug for ProvisionedThroughputDescription { @@ -3968,7 +3689,7 @@ impl ProvisionedThroughputDescription { ///

      Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Projection { ///

      The set of attributes that are projected into the index:

      ///
        @@ -3986,15 +3707,11 @@ pub struct Projection { /// ALL - All of the table attributes are projected into the index.

        /// ///
      - #[serde(rename = "ProjectionType")] - #[serde(default)] pub projection_type: std::option::Option, ///

      Represents the non-key attribute names which will be projected into the index.

      ///

      For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, /// must not exceed 20. If you project the same attribute into two /// different indexes, this counts as two distinct attributes when determining the total.

      - #[serde(rename = "NonKeyAttributes")] - #[serde(default)] pub non_key_attributes: std::option::Option>, } impl std::fmt::Debug for Projection { @@ -4101,7 +3818,7 @@ impl std::convert::From<&str> for ProjectionType { impl std::str::FromStr for ProjectionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProjectionType::from(s)) } } @@ -4120,15 +3837,6 @@ impl AsRef for ProjectionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProjectionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      Represents a single element of a key schema. A key schema specifies the attributes /// that make up the primary key of a table, or the key attributes of an index.

      @@ -4138,11 +3846,9 @@ impl<'de> serde::Deserialize<'de> for ProjectionType { /// KeySchemaElement for the sort key.

      ///

      A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeySchemaElement { ///

      The name of a key attribute.

      - #[serde(rename = "AttributeName")] - #[serde(default)] pub attribute_name: std::option::Option, ///

      The role that this key attribute will assume:

      ///
        @@ -4163,8 +3869,6 @@ pub struct KeySchemaElement { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

        /// - #[serde(rename = "KeyType")] - #[serde(default)] pub key_type: std::option::Option, } impl std::fmt::Debug for KeySchemaElement { @@ -4268,7 +3972,7 @@ impl std::convert::From<&str> for KeyType { impl std::str::FromStr for KeyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(KeyType::from(s)) } } @@ -4286,23 +3990,12 @@ impl AsRef for KeyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for KeyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        Represents the properties of a local secondary index.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LocalSecondaryIndexDescription { ///

        Represents the name of the local secondary index.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

        The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

        ///
          @@ -4323,26 +4016,16 @@ pub struct LocalSecondaryIndexDescription { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

          /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

          Represents attributes that are copied (projected) from the table into the global /// secondary index. These are in addition to the primary key attributes and index key /// attributes, which are automatically projected.

          - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, ///

          The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

          - #[serde(rename = "IndexSizeBytes")] - #[serde(default)] pub index_size_bytes: i64, ///

          The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

          - #[serde(rename = "ItemCount")] - #[serde(default)] pub item_count: i64, ///

          The Amazon Resource Name (ARN) that uniquely identifies the index.

          - #[serde(rename = "IndexArn")] - #[serde(default)] pub index_arn: std::option::Option, } impl std::fmt::Debug for LocalSecondaryIndexDescription { @@ -4456,7 +4139,7 @@ impl LocalSecondaryIndexDescription { ///

          Contains the details for the read/write capacity mode.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BillingModeSummary { ///

          Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

          ///
            @@ -4470,15 +4153,8 @@ pub struct BillingModeSummary { ///

            /// ///
          - #[serde(rename = "BillingMode")] - #[serde(default)] pub billing_mode: std::option::Option, ///

          Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode.

          - #[serde(rename = "LastUpdateToPayPerRequestDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_update_to_pay_per_request_date_time: std::option::Option, } impl std::fmt::Debug for BillingModeSummary { @@ -4586,7 +4262,7 @@ impl std::convert::From<&str> for BillingMode { impl std::str::FromStr for BillingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BillingMode::from(s)) } } @@ -4604,23 +4280,12 @@ impl AsRef for BillingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BillingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Represents an attribute for describing the key schema for the table and indexes.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttributeDefinition { ///

          A name for the attribute.

          - #[serde(rename = "AttributeName")] - #[serde(default)] pub attribute_name: std::option::Option, ///

          The data type for the attribute, where:

          ///
            @@ -4637,8 +4302,6 @@ pub struct AttributeDefinition { /// B - the attribute is of type Binary

            /// ///
          - #[serde(rename = "AttributeType")] - #[serde(default)] pub attribute_type: std::option::Option, } impl std::fmt::Debug for AttributeDefinition { @@ -4743,7 +4406,7 @@ impl std::convert::From<&str> for ScalarAttributeType { impl std::str::FromStr for ScalarAttributeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ScalarAttributeType::from(s)) } } @@ -4762,15 +4425,6 @@ impl AsRef for ScalarAttributeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ScalarAttributeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Represents one of the following:

          ///
            @@ -4790,19 +4444,13 @@ impl<'de> serde::Deserialize<'de> for ScalarAttributeType { /// ///
          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicationGroupUpdate { ///

          The parameters required for creating a replica for the table.

          - #[serde(rename = "Create")] - #[serde(default)] pub create: std::option::Option, ///

          The parameters required for updating a replica for the table.

          - #[serde(rename = "Update")] - #[serde(default)] pub update: std::option::Option, ///

          The parameters required for deleting a replica for the table.

          - #[serde(rename = "Delete")] - #[serde(default)] pub delete: std::option::Option, } impl std::fmt::Debug for ReplicationGroupUpdate { @@ -4880,11 +4528,9 @@ impl ReplicationGroupUpdate { ///

          Represents a replica to be deleted.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteReplicationGroupMemberAction { ///

          The Region where the replica exists.

          - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, } impl std::fmt::Debug for DeleteReplicationGroupMemberAction { @@ -4929,28 +4575,20 @@ impl DeleteReplicationGroupMemberAction { ///

          Represents a replica to be modified.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateReplicationGroupMemberAction { ///

          The Region where the replica exists.

          - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

          The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. /// To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias /// ARN. Note that you should only provide this parameter if the key is different from /// the default DynamoDB KMS master key alias/aws/dynamodb.

          - #[serde(rename = "KMSMasterKeyId")] - #[serde(default)] pub kms_master_key_id: std::option::Option, ///

          Replica-specific provisioned throughput. If not specified, uses the source table's /// provisioned throughput settings.

          - #[serde(rename = "ProvisionedThroughputOverride")] - #[serde(default)] pub provisioned_throughput_override: std::option::Option, ///

          Replica-specific global secondary index settings.

          - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, } @@ -5057,16 +4695,12 @@ impl UpdateReplicationGroupMemberAction { ///

          Represents the properties of a replica global secondary index.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndex { ///

          The name of the global secondary index.

          - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

          Replica table GSI-specific provisioned throughput. If not specified, uses the /// source table GSI's read capacity settings.

          - #[serde(rename = "ProvisionedThroughputOverride")] - #[serde(default)] pub provisioned_throughput_override: std::option::Option, } @@ -5135,28 +4769,20 @@ impl ReplicaGlobalSecondaryIndex { ///

          Represents a replica to be created.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateReplicationGroupMemberAction { ///

          The Region where the new replica will be created.

          - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

          The AWS KMS customer master key (CMK) that should be used for AWS KMS encryption /// in the new replica. To specify a CMK, use its key ID, Amazon Resource Name (ARN), /// alias name, or alias ARN. Note that you should only provide this parameter if the /// key is different from the default DynamoDB KMS master key alias/aws/dynamodb.

          - #[serde(rename = "KMSMasterKeyId")] - #[serde(default)] pub kms_master_key_id: std::option::Option, ///

          Replica-specific provisioned throughput. If not specified, uses the source table's /// provisioned throughput settings.

          - #[serde(rename = "ProvisionedThroughputOverride")] - #[serde(default)] pub provisioned_throughput_override: std::option::Option, ///

          Replica-specific global secondary index settings.

          - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, } @@ -5263,13 +4889,11 @@ impl CreateReplicationGroupMemberAction { ///

          Represents the settings used to enable server-side encryption.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SSESpecification { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SseSpecification { ///

          Indicates whether server-side encryption is done using an AWS managed CMK or an AWS owned CMK. If enabled (true), /// server-side encryption type is set to KMS and an AWS managed CMK is used (AWS KMS charges apply). If disabled (false) or not specified, server-side /// encryption is set to AWS owned CMK.

          - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: std::option::Option, ///

          Server-side encryption type. The only supported value is:

          ///
            @@ -5280,29 +4904,25 @@ pub struct SSESpecification { /// apply).

            /// ///
          - #[serde(rename = "SSEType")] - #[serde(default)] pub sse_type: std::option::Option, ///

          The AWS KMS customer master key (CMK) that should be used for the AWS KMS encryption. To /// specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note /// that you should only provide this parameter if the key is different from the default /// DynamoDB customer master key alias/aws/dynamodb.

          - #[serde(rename = "KMSMasterKeyId")] - #[serde(default)] pub kms_master_key_id: std::option::Option, } -impl std::fmt::Debug for SSESpecification { +impl std::fmt::Debug for SseSpecification { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSESpecification"); + let mut formatter = f.debug_struct("SseSpecification"); formatter.field("enabled", &self.enabled); formatter.field("sse_type", &self.sse_type); formatter.field("kms_master_key_id", &self.kms_master_key_id); formatter.finish() } } -/// See [`SSESpecification`](crate::model::SSESpecification) +/// See [`SseSpecification`](crate::model::SseSpecification) pub mod sse_specification { - /// A builder for [`SSESpecification`](crate::model::SSESpecification) + /// A builder for [`SseSpecification`](crate::model::SseSpecification) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5354,9 +4974,9 @@ pub mod sse_specification { self.kms_master_key_id = input; self } - /// Consumes the builder and constructs a [`SSESpecification`](crate::model::SSESpecification) - pub fn build(self) -> crate::model::SSESpecification { - crate::model::SSESpecification { + /// Consumes the builder and constructs a [`SseSpecification`](crate::model::SseSpecification) + pub fn build(self) -> crate::model::SseSpecification { + crate::model::SseSpecification { enabled: self.enabled, sse_type: self.sse_type, kms_master_key_id: self.kms_master_key_id, @@ -5364,8 +4984,8 @@ pub mod sse_specification { } } } -impl SSESpecification { - /// Creates a new builder-style object to manufacture [`SSESpecification`](crate::model::SSESpecification) +impl SseSpecification { + /// Creates a new builder-style object to manufacture [`SseSpecification`](crate::model::SseSpecification) pub fn builder() -> crate::model::sse_specification::Builder { crate::model::sse_specification::Builder::default() } @@ -5384,11 +5004,9 @@ impl SSESpecification { /// ///
        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalSecondaryIndexUpdate { ///

        The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index.

        - #[serde(rename = "Update")] - #[serde(default)] pub update: std::option::Option, ///

        The parameters required for creating a global secondary index on an existing table:

        ///
          @@ -5418,12 +5036,8 @@ pub struct GlobalSecondaryIndexUpdate { ///

          /// ///
        - #[serde(rename = "Create")] - #[serde(default)] pub create: std::option::Option, ///

        The name of an existing global secondary index to be removed.

        - #[serde(rename = "Delete")] - #[serde(default)] pub delete: std::option::Option, } impl std::fmt::Debug for GlobalSecondaryIndexUpdate { @@ -5528,11 +5142,9 @@ impl GlobalSecondaryIndexUpdate { ///

        Represents a global secondary index to be deleted from an existing table.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteGlobalSecondaryIndexAction { ///

        The name of the global secondary index to be deleted.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, } impl std::fmt::Debug for DeleteGlobalSecondaryIndexAction { @@ -5577,26 +5189,18 @@ impl DeleteGlobalSecondaryIndexAction { ///

        Represents a new global secondary index to be added to an existing table.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateGlobalSecondaryIndexAction { ///

        The name of the global secondary index to be created.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

        The key schema for the global secondary index.

        - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

        Represents attributes that are copied (projected) from the table into an index. These /// are in addition to the primary key attributes and index key attributes, which are /// automatically projected.

        - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, ///

        Represents the provisioned throughput settings for the specified global secondary index.

        ///

        For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

        - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, } impl std::fmt::Debug for CreateGlobalSecondaryIndexAction { @@ -5695,21 +5299,17 @@ impl CreateGlobalSecondaryIndexAction { /// can be modified using the UpdateTable operation.

        ///

        For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProvisionedThroughput { ///

        The maximum number of strongly consistent reads consumed per second before DynamoDB returns a /// ThrottlingException. For more information, see Specifying Read and Write /// Requirements in the Amazon DynamoDB Developer Guide.

        ///

        If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

        - #[serde(rename = "ReadCapacityUnits")] - #[serde(default)] pub read_capacity_units: std::option::Option, ///

        The maximum number of writes consumed per second before DynamoDB returns a /// ThrottlingException. For more information, see Specifying Read and Write /// Requirements in the Amazon DynamoDB Developer Guide.

        ///

        If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

        - #[serde(rename = "WriteCapacityUnits")] - #[serde(default)] pub write_capacity_units: std::option::Option, } impl std::fmt::Debug for ProvisionedThroughput { @@ -5772,16 +5372,12 @@ impl ProvisionedThroughput { ///

        Represents the new provisioned throughput settings to be applied to a global secondary index.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateGlobalSecondaryIndexAction { ///

        The name of the global secondary index to be updated.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

        Represents the provisioned throughput settings for the specified global secondary index.

        ///

        For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

        - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, } impl std::fmt::Debug for UpdateGlobalSecondaryIndexAction { @@ -5847,18 +5443,14 @@ impl UpdateGlobalSecondaryIndexAction { /// ItemCollectionMetrics is only returned if the request asked for it. If the /// table does not have any local secondary indexes, this information is not returned in the response.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ItemCollectionMetrics { ///

        The partition key value of the item collection. This value is the same as the partition key value of the item.

        - #[serde(rename = "ItemCollectionKey")] - #[serde(default)] pub item_collection_key: std::option::Option< std::collections::HashMap, >, ///

        An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

        ///

        The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

        - #[serde(rename = "SizeEstimateRangeGB")] - #[serde(default)] pub size_estimate_range_gb: std::option::Option>, } impl std::fmt::Debug for ItemCollectionMetrics { @@ -5930,71 +5522,59 @@ impl ItemCollectionMetrics { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] +#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub enum AttributeValue { ///

        An attribute of type Binary. For example:

        ///

        /// "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" ///

        - #[serde(rename = "B")] - #[serde(deserialize_with = "crate::serde_util::smithytypesblob_deser")] B(smithy_types::Blob), ///

        An attribute of type Boolean. For example:

        ///

        /// "BOOL": true ///

        - #[serde(rename = "BOOL")] Bool(bool), ///

        An attribute of type Binary Set. For example:

        ///

        /// "BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="] ///

        - #[serde(rename = "BS")] - #[serde(deserialize_with = "crate::serde_util::stdvecvecsmithytypesblob_deser")] Bs(std::vec::Vec), ///

        An attribute of type List. For example:

        ///

        /// "L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}] ///

        - #[serde(rename = "L")] L(std::vec::Vec), ///

        An attribute of type Map. For example:

        ///

        /// "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}} ///

        - #[serde(rename = "M")] M(std::collections::HashMap), ///

        An attribute of type Number. For example:

        ///

        /// "N": "123.45" ///

        ///

        Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

        - #[serde(rename = "N")] N(std::string::String), ///

        An attribute of type Number Set. For example:

        ///

        /// "NS": ["42.2", "-19", "7.5", "3.14"] ///

        ///

        Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

        - #[serde(rename = "NS")] Ns(std::vec::Vec), ///

        An attribute of type Null. For example:

        ///

        /// "NULL": true ///

        - #[serde(rename = "NULL")] Null(bool), ///

        An attribute of type String. For example:

        ///

        /// "S": "Hello" ///

        - #[serde(rename = "S")] S(std::string::String), ///

        An attribute of type String Set. For example:

        ///

        /// "SS": ["Giraffe", "Hippo" ,"Zebra"] ///

        - #[serde(rename = "SS")] Ss(std::vec::Vec), } impl AttributeValue { @@ -6109,36 +5689,22 @@ impl AttributeValue { /// For more information, see Provisioned /// Throughput in the Amazon DynamoDB Developer Guide.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ConsumedCapacity { ///

        The name of the table that was affected by the operation.

        - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

        The total number of capacity units consumed by the operation.

        - #[serde(rename = "CapacityUnits")] - #[serde(default)] pub capacity_units: std::option::Option, ///

        The total number of read capacity units consumed by the operation.

        - #[serde(rename = "ReadCapacityUnits")] - #[serde(default)] pub read_capacity_units: std::option::Option, ///

        The total number of write capacity units consumed by the operation.

        - #[serde(rename = "WriteCapacityUnits")] - #[serde(default)] pub write_capacity_units: std::option::Option, ///

        The amount of throughput consumed on the table affected by the operation.

        - #[serde(rename = "Table")] - #[serde(default)] pub table: std::option::Option, ///

        The amount of throughput consumed on each local index affected by the operation.

        - #[serde(rename = "LocalSecondaryIndexes")] - #[serde(default)] pub local_secondary_indexes: std::option::Option>, ///

        The amount of throughput consumed on each global index affected by the operation.

        - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, } @@ -6280,19 +5846,13 @@ impl ConsumedCapacity { ///

        Represents the amount of provisioned throughput capacity consumed on a table or an index.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Capacity { ///

        The total number of read capacity units consumed on a table or an index.

        - #[serde(rename = "ReadCapacityUnits")] - #[serde(default)] pub read_capacity_units: std::option::Option, ///

        The total number of write capacity units consumed on a table or an index.

        - #[serde(rename = "WriteCapacityUnits")] - #[serde(default)] pub write_capacity_units: std::option::Option, ///

        The total number of capacity units consumed on a table or an index.

        - #[serde(rename = "CapacityUnits")] - #[serde(default)] pub capacity_units: std::option::Option, } impl std::fmt::Debug for Capacity { @@ -6387,7 +5947,7 @@ impl std::convert::From<&str> for ReturnItemCollectionMetrics { impl std::str::FromStr for ReturnItemCollectionMetrics { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReturnItemCollectionMetrics::from(s)) } } @@ -6405,15 +5965,6 @@ impl AsRef for ReturnItemCollectionMetrics { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReturnItemCollectionMetrics { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        Determines the level of detail about provisioned throughput consumption that is returned in the response:

        ///
          @@ -6461,7 +6012,7 @@ impl std::convert::From<&str> for ReturnConsumedCapacity { impl std::str::FromStr for ReturnConsumedCapacity { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReturnConsumedCapacity::from(s)) } } @@ -6480,15 +6031,6 @@ impl AsRef for ReturnConsumedCapacity { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReturnConsumedCapacity { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6524,7 +6066,7 @@ impl std::convert::From<&str> for ReturnValue { impl std::str::FromStr for ReturnValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReturnValue::from(s)) } } @@ -6545,15 +6087,6 @@ impl AsRef for ReturnValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReturnValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6583,7 +6116,7 @@ impl std::convert::From<&str> for ConditionalOperator { impl std::str::FromStr for ConditionalOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConditionalOperator::from(s)) } } @@ -6601,15 +6134,6 @@ impl AsRef for ConditionalOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConditionalOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Represents a condition to be compared with an attribute value. This condition can be /// used with DeleteItem, PutItem, or UpdateItem @@ -6636,14 +6160,12 @@ impl<'de> serde::Deserialize<'de> for ConditionalOperator { /// ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will /// return a ValidationException exception.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExpectedAttributeValue { ///

          Represents the data for the expected attribute.

          ///

          Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

          ///

          For more information, see Data Types in the /// Amazon DynamoDB Developer Guide.

          - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

          Causes DynamoDB to evaluate the value before attempting a conditional operation:

          ///
            @@ -6675,8 +6197,6 @@ pub struct ExpectedAttributeValue { /// expect an attribute to have a value, while also expecting it not to exist.)

            /// ///
          - #[serde(rename = "Exists")] - #[serde(default)] pub exists: std::option::Option, ///

          A comparator for evaluating attributes in the AttributeValueList. For example, equals, /// greater than, less than, etc.

          @@ -6824,8 +6344,6 @@ pub struct ExpectedAttributeValue { ///

          /// ///
        - #[serde(rename = "ComparisonOperator")] - #[serde(default)] pub comparison_operator: std::option::Option, ///

        One or more values to evaluate against the supplied attribute. The number of values in the /// list depends on the ComparisonOperator being used.

        @@ -6835,8 +6353,6 @@ pub struct ExpectedAttributeValue { /// is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

        ///

        For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

        ///

        For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

        - #[serde(rename = "AttributeValueList")] - #[serde(default)] pub attribute_value_list: std::option::Option>, } impl std::fmt::Debug for ExpectedAttributeValue { @@ -7156,7 +6672,7 @@ impl std::convert::From<&str> for ComparisonOperator { impl std::str::FromStr for ComparisonOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComparisonOperator::from(s)) } } @@ -7185,15 +6701,6 @@ impl AsRef for ComparisonOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComparisonOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        For the UpdateItem operation, represents the attributes to be modified, the action to /// perform on each, and the new value for each.

        @@ -7206,14 +6713,12 @@ impl<'de> serde::Deserialize<'de> for ComparisonOperator { /// than zero; and set type attributes must not be empty. Requests with empty values will be /// rejected with a ValidationException exception.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttributeValueUpdate { ///

        Represents the data for an attribute.

        ///

        Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

        ///

        For more information, see Data Types in the Amazon DynamoDB Developer Guide. ///

        - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

        Specifies how to perform the update. Valid values are PUT (default), DELETE, /// and ADD. The behavior depends on whether the specified primary key already exists @@ -7298,8 +6803,6 @@ pub struct AttributeValueUpdate { /// set; no other data types can be specified.

        /// ///
      - #[serde(rename = "Action")] - #[serde(default)] pub action: std::option::Option, } impl std::fmt::Debug for AttributeValueUpdate { @@ -7475,7 +6978,7 @@ impl std::convert::From<&str> for AttributeAction { impl std::str::FromStr for AttributeAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AttributeAction::from(s)) } } @@ -7494,23 +6997,12 @@ impl AsRef for AttributeAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AttributeAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      Represents the properties of a replica.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaSettingsDescription { ///

      The Region name of the replica.

      - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

      The current state of the Region:

      ///
        @@ -7531,39 +7023,25 @@ pub struct ReplicaSettingsDescription { /// ACTIVE - The Region is ready for use.

        /// ///
      - #[serde(rename = "ReplicaStatus")] - #[serde(default)] pub replica_status: std::option::Option, ///

      The read/write capacity mode of the replica.

      - #[serde(rename = "ReplicaBillingModeSummary")] - #[serde(default)] pub replica_billing_mode_summary: std::option::Option, ///

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. /// For more information, see Specifying Read and Write /// Requirements in the Amazon DynamoDB Developer Guide. ///

      - #[serde(rename = "ReplicaProvisionedReadCapacityUnits")] - #[serde(default)] pub replica_provisioned_read_capacity_units: std::option::Option, ///

      Auto scaling settings for a global table replica's read capacity units.

      - #[serde(rename = "ReplicaProvisionedReadCapacityAutoScalingSettings")] - #[serde(default)] pub replica_provisioned_read_capacity_auto_scaling_settings: std::option::Option, ///

      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. /// For more information, see Specifying Read and Write /// Requirements in the Amazon DynamoDB Developer Guide.

      - #[serde(rename = "ReplicaProvisionedWriteCapacityUnits")] - #[serde(default)] pub replica_provisioned_write_capacity_units: std::option::Option, ///

      Auto scaling settings for a global table replica's write capacity units.

      - #[serde(rename = "ReplicaProvisionedWriteCapacityAutoScalingSettings")] - #[serde(default)] pub replica_provisioned_write_capacity_auto_scaling_settings: std::option::Option, ///

      Replica global secondary index settings for the global table.

      - #[serde(rename = "ReplicaGlobalSecondaryIndexSettings")] - #[serde(default)] pub replica_global_secondary_index_settings: std::option::Option< std::vec::Vec, >, @@ -7783,11 +7261,9 @@ impl ReplicaSettingsDescription { ///

      Represents the properties of a global secondary index.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndexSettingsDescription { ///

      The name of the global secondary index. The name must be unique among all other indexes on this table.

      - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

      /// The current status of the global secondary index:

      @@ -7809,26 +7285,16 @@ pub struct ReplicaGlobalSecondaryIndexSettingsDescription { /// ACTIVE - The global secondary index is ready for use.

      /// ///
    - #[serde(rename = "IndexStatus")] - #[serde(default)] pub index_status: std::option::Option, ///

    The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

    - #[serde(rename = "ProvisionedReadCapacityUnits")] - #[serde(default)] pub provisioned_read_capacity_units: std::option::Option, ///

    Auto scaling settings for a global secondary index replica's read capacity units.

    - #[serde(rename = "ProvisionedReadCapacityAutoScalingSettings")] - #[serde(default)] pub provisioned_read_capacity_auto_scaling_settings: std::option::Option, ///

    The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

    - #[serde(rename = "ProvisionedWriteCapacityUnits")] - #[serde(default)] pub provisioned_write_capacity_units: std::option::Option, ///

    Auto scaling settings for a global secondary index replica's write capacity /// units.

    - #[serde(rename = "ProvisionedWriteCapacityAutoScalingSettings")] - #[serde(default)] pub provisioned_write_capacity_auto_scaling_settings: std::option::Option, } @@ -7991,27 +7457,19 @@ impl ReplicaGlobalSecondaryIndexSettingsDescription { ///

    Represents the settings for a global table in a Region that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaSettingsUpdate { ///

    The Region of the replica to be added.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, ///

    The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. /// For more information, see Specifying Read and Write /// Requirements in the Amazon DynamoDB Developer Guide. ///

    - #[serde(rename = "ReplicaProvisionedReadCapacityUnits")] - #[serde(default)] pub replica_provisioned_read_capacity_units: std::option::Option, ///

    Auto scaling settings for managing a global table replica's read capacity units.

    - #[serde(rename = "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate")] - #[serde(default)] pub replica_provisioned_read_capacity_auto_scaling_settings_update: std::option::Option, ///

    Represents the settings of a global secondary index for a global table that will be modified.

    - #[serde(rename = "ReplicaGlobalSecondaryIndexSettingsUpdate")] - #[serde(default)] pub replica_global_secondary_index_settings_update: std::option::Option>, } @@ -8131,20 +7589,14 @@ impl ReplicaSettingsUpdate { ///

    Represents the settings of a global secondary index for a global table that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaGlobalSecondaryIndexSettingsUpdate { ///

    The name of the global secondary index. The name must be unique among all other indexes on this table.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

    - #[serde(rename = "ProvisionedReadCapacityUnits")] - #[serde(default)] pub provisioned_read_capacity_units: std::option::Option, ///

    Auto scaling settings for managing a global secondary index replica's read capacity /// units.

    - #[serde(rename = "ProvisionedReadCapacityAutoScalingSettingsUpdate")] - #[serde(default)] pub provisioned_read_capacity_auto_scaling_settings_update: std::option::Option, } @@ -8232,21 +7684,15 @@ impl ReplicaGlobalSecondaryIndexSettingsUpdate { ///

    Represents the settings of a global secondary index for a global table that will be modified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalTableGlobalSecondaryIndexSettingsUpdate { ///

    The name of the global secondary index. The name must be unique among all other indexes on this table.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. ///

    - #[serde(rename = "ProvisionedWriteCapacityUnits")] - #[serde(default)] pub provisioned_write_capacity_units: std::option::Option, ///

    Auto scaling settings for managing a global secondary index's write capacity /// units.

    - #[serde(rename = "ProvisionedWriteCapacityAutoScalingSettingsUpdate")] - #[serde(default)] pub provisioned_write_capacity_auto_scaling_settings_update: std::option::Option, } @@ -8335,22 +7781,13 @@ impl GlobalTableGlobalSecondaryIndexSettingsUpdate { ///

    Contains details about the global table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalTableDescription { ///

    The Regions where the global table has replicas.

    - #[serde(rename = "ReplicationGroup")] - #[serde(default)] pub replication_group: std::option::Option>, ///

    The unique identifier of the global table.

    - #[serde(rename = "GlobalTableArn")] - #[serde(default)] pub global_table_arn: std::option::Option, ///

    The creation time of the global table.

    - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date_time: std::option::Option, ///

    The current state of the global table:

    ///
      @@ -8371,12 +7808,8 @@ pub struct GlobalTableDescription { /// ACTIVE - The global table is ready for use.

      /// ///
    - #[serde(rename = "GlobalTableStatus")] - #[serde(default)] pub global_table_status: std::option::Option, ///

    The global table name.

    - #[serde(rename = "GlobalTableName")] - #[serde(default)] pub global_table_name: std::option::Option, } impl std::fmt::Debug for GlobalTableDescription { @@ -8537,7 +7970,7 @@ impl std::convert::From<&str> for GlobalTableStatus { impl std::str::FromStr for GlobalTableStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalTableStatus::from(s)) } } @@ -8557,15 +7990,6 @@ impl AsRef for GlobalTableStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalTableStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents one of the following:

    ///
      @@ -8580,15 +8004,11 @@ impl<'de> serde::Deserialize<'de> for GlobalTableStatus { /// ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaUpdate { ///

    The parameters required for creating a replica on an existing global table.

    - #[serde(rename = "Create")] - #[serde(default)] pub create: std::option::Option, ///

    The name of the existing replica to be removed.

    - #[serde(rename = "Delete")] - #[serde(default)] pub delete: std::option::Option, } impl std::fmt::Debug for ReplicaUpdate { @@ -8651,11 +8071,9 @@ impl ReplicaUpdate { ///

    Represents a replica to be removed.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteReplicaAction { ///

    The Region of the replica to be removed.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, } impl std::fmt::Debug for DeleteReplicaAction { @@ -8700,11 +8118,9 @@ impl DeleteReplicaAction { ///

    Represents a replica to be added.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateReplicaAction { ///

    The Region of the replica to be added.

    - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, } impl std::fmt::Debug for CreateReplicaAction { @@ -8781,7 +8197,7 @@ impl std::convert::From<&str> for ContributorInsightsStatus { impl std::str::FromStr for ContributorInsightsStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContributorInsightsStatus::from(s)) } } @@ -8802,15 +8218,6 @@ impl AsRef for ContributorInsightsStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContributorInsightsStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8840,7 +8247,7 @@ impl std::convert::From<&str> for ContributorInsightsAction { impl std::str::FromStr for ContributorInsightsAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContributorInsightsAction::from(s)) } } @@ -8858,29 +8265,16 @@ impl AsRef for ContributorInsightsAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContributorInsightsAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the continuous backups and point in time recovery settings on the table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContinuousBackupsDescription { ///

    /// ContinuousBackupsStatus can be one of the following states: ENABLED, /// DISABLED

    - #[serde(rename = "ContinuousBackupsStatus")] - #[serde(default)] pub continuous_backups_status: std::option::Option, ///

    The description of the point in time recovery settings applied to the table.

    - #[serde(rename = "PointInTimeRecoveryDescription")] - #[serde(default)] pub point_in_time_recovery_description: std::option::Option, } @@ -8957,7 +8351,7 @@ impl ContinuousBackupsDescription { ///

    The description of the point in time settings applied to the table.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PointInTimeRecoveryDescription { ///

    The current state of point in time recovery:

    ///
      @@ -8974,25 +8368,13 @@ pub struct PointInTimeRecoveryDescription { /// DISABLED - Point in time recovery is disabled.

      /// ///
    - #[serde(rename = "PointInTimeRecoveryStatus")] - #[serde(default)] pub point_in_time_recovery_status: std::option::Option, ///

    Specifies the earliest point in time you can restore your table to. You can restore your /// table to any point in time during the last 35 days.

    - #[serde(rename = "EarliestRestorableDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub earliest_restorable_date_time: std::option::Option, ///

    /// LatestRestorableDateTime is typically 5 minutes before the current time. ///

    - #[serde(rename = "LatestRestorableDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_restorable_date_time: std::option::Option, } impl std::fmt::Debug for PointInTimeRecoveryDescription { @@ -9126,7 +8508,7 @@ impl std::convert::From<&str> for PointInTimeRecoveryStatus { impl std::str::FromStr for PointInTimeRecoveryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PointInTimeRecoveryStatus::from(s)) } } @@ -9144,15 +8526,6 @@ impl AsRef for PointInTimeRecoveryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PointInTimeRecoveryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -9182,7 +8555,7 @@ impl std::convert::From<&str> for ContinuousBackupsStatus { impl std::str::FromStr for ContinuousBackupsStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContinuousBackupsStatus::from(s)) } } @@ -9200,23 +8573,12 @@ impl AsRef for ContinuousBackupsStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContinuousBackupsStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the settings used to enable point in time recovery.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PointInTimeRecoverySpecification { ///

    Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.

    - #[serde(rename = "PointInTimeRecoveryEnabled")] - #[serde(default)] pub point_in_time_recovery_enabled: std::option::Option, } impl std::fmt::Debug for PointInTimeRecoverySpecification { @@ -9271,21 +8633,15 @@ impl PointInTimeRecoverySpecification { /// occurred for the associated item an error with a Null code and Null message will be present. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CancellationReason { ///

    Item in the request which caused the transaction to get cancelled.

    - #[serde(rename = "Item")] - #[serde(default)] pub item: std::option::Option< std::collections::HashMap, >, ///

    Status code for the result of the cancelled transaction.

    - #[serde(rename = "Code")] - #[serde(default)] pub code: std::option::Option, ///

    Cancellation reason message description.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for CancellationReason { @@ -9366,23 +8722,15 @@ impl CancellationReason { ///

    A list of requests that can perform update, put, delete, or check operations on multiple items in one or more tables atomically.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransactWriteItem { ///

    A request to perform a check item operation.

    - #[serde(rename = "ConditionCheck")] - #[serde(default)] pub condition_check: std::option::Option, ///

    A request to perform a PutItem operation.

    - #[serde(rename = "Put")] - #[serde(default)] pub put: std::option::Option, ///

    A request to perform a DeleteItem operation.

    - #[serde(rename = "Delete")] - #[serde(default)] pub delete: std::option::Option, ///

    A request to perform an UpdateItem operation.

    - #[serde(rename = "Update")] - #[serde(default)] pub update: std::option::Option, } impl std::fmt::Debug for TransactWriteItem { @@ -9466,37 +8814,25 @@ impl TransactWriteItem { ///

    Represents a request to perform an UpdateItem operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Update { ///

    The primary key of the item to be updated. Each element consists of /// an attribute name and a value for that attribute.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option< std::collections::HashMap, >, ///

    An expression that defines one or more attributes to be updated, /// the action to be performed on them, and new value(s) for them.

    - #[serde(rename = "UpdateExpression")] - #[serde(default)] pub update_expression: std::option::Option, ///

    Name of the table for the UpdateItem request.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    A condition that must be satisfied in order for a conditional update to /// succeed.

    - #[serde(rename = "ConditionExpression")] - #[serde(default)] pub condition_expression: std::option::Option, ///

    One or more substitution tokens for attribute names in an expression.

    - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, ///

    One or more values that can be substituted in an expression.

    - #[serde(rename = "ExpressionAttributeValues")] - #[serde(default)] pub expression_attribute_values: std::option::Option< std::collections::HashMap, >, @@ -9504,8 +8840,6 @@ pub struct Update { /// get the item attributes if the Update condition fails. /// For ReturnValuesOnConditionCheckFailure, the valid /// values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

    - #[serde(rename = "ReturnValuesOnConditionCheckFailure")] - #[serde(default)] pub return_values_on_condition_check_failure: std::option::Option, } @@ -9713,7 +9047,7 @@ impl std::convert::From<&str> for ReturnValuesOnConditionCheckFailure { impl std::str::FromStr for ReturnValuesOnConditionCheckFailure { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReturnValuesOnConditionCheckFailure::from(s)) } } @@ -9731,43 +9065,24 @@ impl AsRef for ReturnValuesOnConditionCheckFailure { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReturnValuesOnConditionCheckFailure { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents a request to perform a DeleteItem operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Delete { ///

    The primary key of the item to be deleted. Each element consists of an /// attribute name and a value for that attribute.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option< std::collections::HashMap, >, ///

    Name of the table in which the item to be deleted resides.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    A condition that must be satisfied in order for a conditional delete to succeed.

    - #[serde(rename = "ConditionExpression")] - #[serde(default)] pub condition_expression: std::option::Option, ///

    One or more substitution tokens for attribute names in an expression.

    - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, ///

    One or more values that can be substituted in an expression.

    - #[serde(rename = "ExpressionAttributeValues")] - #[serde(default)] pub expression_attribute_values: std::option::Option< std::collections::HashMap, >, @@ -9775,8 +9090,6 @@ pub struct Delete { /// get the item attributes if the Delete condition fails. /// For ReturnValuesOnConditionCheckFailure, the valid /// values are: NONE and ALL_OLD.

    - #[serde(rename = "ReturnValuesOnConditionCheckFailure")] - #[serde(default)] pub return_values_on_condition_check_failure: std::option::Option, } @@ -9941,34 +9254,24 @@ impl Delete { ///

    Represents a request to perform a PutItem operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Put { ///

    A map of attribute name to attribute values, representing the primary key /// of the item to be written by PutItem. All of the table's primary key /// attributes must be specified, and their data types must match those of the table's /// key schema. If any attributes are present in the item that are part of an index /// key schema for the table, their types must match the index key schema.

    - #[serde(rename = "Item")] - #[serde(default)] pub item: std::option::Option< std::collections::HashMap, >, ///

    Name of the table in which to write the item.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    A condition that must be satisfied in order for a conditional update to succeed.

    - #[serde(rename = "ConditionExpression")] - #[serde(default)] pub condition_expression: std::option::Option, ///

    One or more substitution tokens for attribute names in an expression.

    - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, ///

    One or more values that can be substituted in an expression.

    - #[serde(rename = "ExpressionAttributeValues")] - #[serde(default)] pub expression_attribute_values: std::option::Option< std::collections::HashMap, >, @@ -9976,8 +9279,6 @@ pub struct Put { /// get the item attributes if the Put condition fails. /// For ReturnValuesOnConditionCheckFailure, the valid /// values are: NONE and ALL_OLD.

    - #[serde(rename = "ReturnValuesOnConditionCheckFailure")] - #[serde(default)] pub return_values_on_condition_check_failure: std::option::Option, } @@ -10143,31 +9444,21 @@ impl Put { ///

    Represents a request to perform a check that an item exists or to check the condition of /// specific attributes of the item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ConditionCheck { ///

    The primary key of the item to be checked. Each element consists of an /// attribute name and a value for that attribute.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option< std::collections::HashMap, >, ///

    Name of the table for the check item request.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    A condition that must be satisfied in order for a conditional update to succeed.

    - #[serde(rename = "ConditionExpression")] - #[serde(default)] pub condition_expression: std::option::Option, ///

    One or more substitution tokens for attribute names in an expression.

    - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, ///

    One or more values that can be substituted in an expression.

    - #[serde(rename = "ExpressionAttributeValues")] - #[serde(default)] pub expression_attribute_values: std::option::Option< std::collections::HashMap, >, @@ -10175,8 +9466,6 @@ pub struct ConditionCheck { /// get the item attributes if the ConditionCheck condition fails. /// For ReturnValuesOnConditionCheckFailure, the valid /// values are: NONE and ALL_OLD.

    - #[serde(rename = "ReturnValuesOnConditionCheckFailure")] - #[serde(default)] pub return_values_on_condition_check_failure: std::option::Option, } @@ -10341,11 +9630,9 @@ impl ConditionCheck { ///

    Details for the requested item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ItemResponse { ///

    Map of attribute data consisting of the data type and attribute value.

    - #[serde(rename = "Item")] - #[serde(default)] pub item: std::option::Option< std::collections::HashMap, >, @@ -10402,13 +9689,11 @@ impl ItemResponse { ///

    Specifies an item to be retrieved as part of the transaction.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransactGetItem { ///

    Contains the primary key that identifies the item to get, together /// with the name of the table that contains the item, and optionally /// the specific attributes of the item to retrieve.

    - #[serde(rename = "Get")] - #[serde(default)] pub get: std::option::Option, } impl std::fmt::Debug for TransactGetItem { @@ -10454,31 +9739,23 @@ impl TransactGetItem { ///

    Specifies an item and related attribute values to retrieve in a /// TransactGetItem object.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Get { ///

    A map of attribute names to AttributeValue objects that /// specifies the primary key of the item to retrieve.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option< std::collections::HashMap, >, ///

    The name of the table from which to retrieve the specified item.

    - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

    A string that identifies one or more attributes of the specified item /// to retrieve from the table. The attributes in the expression must be /// separated by commas. If no attribute names are specified, then all /// attributes of the specified item are returned. If any of the requested /// attributes are not found, they do not appear in the result.

    - #[serde(rename = "ProjectionExpression")] - #[serde(default)] pub projection_expression: std::option::Option, ///

    One or more substitution tokens for attribute names in the /// ProjectionExpression parameter.

    - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, } @@ -10602,17 +9879,13 @@ impl Get { /// Tagging for DynamoDB /// in the Amazon DynamoDB Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    The key of the tag. Tag keys are case sensitive. Each DynamoDB table can only have up to /// one tag with the same key. If you try to add an existing tag (same key), the existing /// tag value will be updated to the new value.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value of the tag. Tag values are case-sensitive and can be null.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -10688,7 +9961,7 @@ impl Tag { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Condition { ///

    One or more values to evaluate against the supplied attribute. The number of values in the /// list depends on the ComparisonOperator being used.

    @@ -10697,8 +9970,6 @@ pub struct Condition { /// code values. For example, a is greater than A, and a /// is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    ///

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    - #[serde(rename = "AttributeValueList")] - #[serde(default)] pub attribute_value_list: std::option::Option>, ///

    A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    ///

    The following comparison operators are available:

    @@ -10848,8 +10119,6 @@ pub struct Condition { ///

    For usage examples of AttributeValueList and ComparisonOperator, see /// Legacy Conditional Parameters /// in the Amazon DynamoDB Developer Guide.

    - #[serde(rename = "ComparisonOperator")] - #[serde(default)] pub comparison_operator: std::option::Option, } impl std::fmt::Debug for Condition { @@ -11094,7 +10363,7 @@ impl std::convert::From<&str> for Select { impl std::str::FromStr for Select { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Select::from(s)) } } @@ -11114,23 +10383,12 @@ impl AsRef for Select { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Select { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the properties of a local secondary index.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LocalSecondaryIndex { ///

    The name of the local secondary index. The name must be unique among all other indexes on this table.

    - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

    The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

    ///
      @@ -11151,14 +10409,10 @@ pub struct LocalSecondaryIndex { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

      /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

      Represents attributes that are copied (projected) from the table into the local /// secondary index. These are in addition to the primary key attributes and index key /// attributes, which are automatically projected.

      - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, } impl std::fmt::Debug for LocalSecondaryIndex { @@ -11236,11 +10490,9 @@ impl LocalSecondaryIndex { ///

      Represents the properties of a global secondary index.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalSecondaryIndex { ///

      The name of the global secondary index. The name must be unique among all other indexes on this table.

      - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

      The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

      ///
        @@ -11261,19 +10513,13 @@ pub struct GlobalSecondaryIndex { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

        /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

        Represents attributes that are copied (projected) from the table into the global /// secondary index. These are in addition to the primary key attributes and index key /// attributes, which are automatically projected.

        - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, ///

        Represents the provisioned throughput settings for the specified global secondary index.

        ///

        For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

        - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, } impl std::fmt::Debug for GlobalSecondaryIndex { @@ -11370,15 +10616,11 @@ impl GlobalSecondaryIndex { ///

        Represents the properties of a global table.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalTable { ///

        The global table name.

        - #[serde(rename = "GlobalTableName")] - #[serde(default)] pub global_table_name: std::option::Option, ///

        The Regions where the global table has replicas.

        - #[serde(rename = "ReplicationGroup")] - #[serde(default)] pub replication_group: std::option::Option>, } impl std::fmt::Debug for GlobalTable { @@ -11442,11 +10684,9 @@ impl GlobalTable { ///

        Represents the properties of a replica.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Replica { ///

        The Region where the replica needs to be created.

        - #[serde(rename = "RegionName")] - #[serde(default)] pub region_name: std::option::Option, } impl std::fmt::Debug for Replica { @@ -11491,15 +10731,11 @@ impl Replica { ///

        Summary information about an export task.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportSummary { ///

        The Amazon Resource Name (ARN) of the export.

        - #[serde(rename = "ExportArn")] - #[serde(default)] pub export_arn: std::option::Option, ///

        Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.

        - #[serde(rename = "ExportStatus")] - #[serde(default)] pub export_status: std::option::Option, } impl std::fmt::Debug for ExportSummary { @@ -11587,7 +10823,7 @@ impl std::convert::From<&str> for ExportStatus { impl std::str::FromStr for ExportStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportStatus::from(s)) } } @@ -11606,31 +10842,16 @@ impl AsRef for ExportStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        Represents a Contributor Insights summary entry.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContributorInsightsSummary { ///

        Name of the table associated with the summary.

        - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

        Name of the index associated with the summary, if any.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

        Describes the current status for contributor insights for the given table and index, if applicable.

        - #[serde(rename = "ContributorInsightsStatus")] - #[serde(default)] pub contributor_insights_status: std::option::Option, } impl std::fmt::Debug for ContributorInsightsSummary { @@ -11709,47 +10930,25 @@ impl ContributorInsightsSummary { ///

        Contains details for the backup.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BackupSummary { ///

        Name of the table.

        - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

        Unique identifier for the table.

        - #[serde(rename = "TableId")] - #[serde(default)] pub table_id: std::option::Option, ///

        ARN associated with the table.

        - #[serde(rename = "TableArn")] - #[serde(default)] pub table_arn: std::option::Option, ///

        ARN associated with the backup.

        - #[serde(rename = "BackupArn")] - #[serde(default)] pub backup_arn: std::option::Option, ///

        Name of the specified backup.

        - #[serde(rename = "BackupName")] - #[serde(default)] pub backup_name: std::option::Option, ///

        Time at which the backup was created.

        - #[serde(rename = "BackupCreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub backup_creation_date_time: std::option::Option, ///

        Time at which the automatic on-demand backup created by DynamoDB will expire. This /// SYSTEM on-demand backup expires automatically 35 days after its /// creation.

        - #[serde(rename = "BackupExpiryDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub backup_expiry_date_time: std::option::Option, ///

        Backup can be in one of the following states: CREATING, ACTIVE, DELETED.

        - #[serde(rename = "BackupStatus")] - #[serde(default)] pub backup_status: std::option::Option, ///

        BackupType:

        ///
          @@ -11769,12 +10968,8 @@ pub struct BackupSummary { /// AWS_BACKUP - On-demand backup created by you from AWS Backup service.

          /// ///
        - #[serde(rename = "BackupType")] - #[serde(default)] pub backup_type: std::option::Option, ///

        Size of the backup in bytes.

        - #[serde(rename = "BackupSizeBytes")] - #[serde(default)] pub backup_size_bytes: std::option::Option, } impl std::fmt::Debug for BackupSummary { @@ -11986,7 +11181,7 @@ impl std::convert::From<&str> for BackupType { impl std::str::FromStr for BackupType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BackupType::from(s)) } } @@ -12005,15 +11200,6 @@ impl AsRef for BackupType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BackupType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12045,7 +11231,7 @@ impl std::convert::From<&str> for BackupStatus { impl std::str::FromStr for BackupStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BackupStatus::from(s)) } } @@ -12064,15 +11250,6 @@ impl AsRef for BackupStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BackupStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12106,7 +11283,7 @@ impl std::convert::From<&str> for BackupTypeFilter { impl std::str::FromStr for BackupTypeFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BackupTypeFilter::from(s)) } } @@ -12126,79 +11303,37 @@ impl AsRef for BackupTypeFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BackupTypeFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        Represents the properties of the exported table.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportDescription { ///

        The Amazon Resource Name (ARN) of the table export.

        - #[serde(rename = "ExportArn")] - #[serde(default)] pub export_arn: std::option::Option, ///

        Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.

        - #[serde(rename = "ExportStatus")] - #[serde(default)] pub export_status: std::option::Option, ///

        The time at which the export task began.

        - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

        The time at which the export task completed.

        - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

        The name of the manifest file for the export task.

        - #[serde(rename = "ExportManifest")] - #[serde(default)] pub export_manifest: std::option::Option, ///

        The Amazon Resource Name (ARN) of the table that was exported.

        - #[serde(rename = "TableArn")] - #[serde(default)] pub table_arn: std::option::Option, ///

        Unique ID of the table that was exported.

        - #[serde(rename = "TableId")] - #[serde(default)] pub table_id: std::option::Option, ///

        Point in time from which table data was exported.

        - #[serde(rename = "ExportTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub export_time: std::option::Option, ///

        The client token that was provided for the export task. A client token makes calls to /// ExportTableToPointInTimeInput idempotent, meaning that multiple /// identical calls have the same effect as one single call.

        - #[serde(rename = "ClientToken")] - #[serde(default)] pub client_token: std::option::Option, ///

        The name of the Amazon S3 bucket containing the export.

        - #[serde(rename = "S3Bucket")] - #[serde(default)] pub s3_bucket: std::option::Option, ///

        The ID of the AWS account that owns the bucket containing the export.

        - #[serde(rename = "S3BucketOwner")] - #[serde(default)] pub s3_bucket_owner: std::option::Option, ///

        The Amazon S3 bucket prefix used as the file name and path of the exported /// snapshot.

        - #[serde(rename = "S3Prefix")] - #[serde(default)] pub s3_prefix: std::option::Option, ///

        Type of encryption used on the bucket where export data is stored. Valid values /// for S3SseAlgorithm are:

        @@ -12212,34 +11347,20 @@ pub struct ExportDescription { /// KMS - server-side encryption with AWS KMS managed keys

        /// ///
      - #[serde(rename = "S3SseAlgorithm")] - #[serde(default)] pub s3_sse_algorithm: std::option::Option, ///

      The ID of the AWS KMS managed key used to encrypt the S3 bucket where export data is /// stored (if applicable).

      - #[serde(rename = "S3SseKmsKeyId")] - #[serde(default)] pub s3_sse_kms_key_id: std::option::Option, ///

      Status code for the result of the failed export.

      - #[serde(rename = "FailureCode")] - #[serde(default)] pub failure_code: std::option::Option, ///

      Export failure reason description.

      - #[serde(rename = "FailureMessage")] - #[serde(default)] pub failure_message: std::option::Option, ///

      The format of the exported data. Valid values for ExportFormat are /// DYNAMODB_JSON or ION.

      - #[serde(rename = "ExportFormat")] - #[serde(default)] pub export_format: std::option::Option, ///

      The billable size of the table export.

      - #[serde(rename = "BilledSizeBytes")] - #[serde(default)] pub billed_size_bytes: std::option::Option, ///

      The number of items exported.

      - #[serde(rename = "ItemCount")] - #[serde(default)] pub item_count: std::option::Option, } impl std::fmt::Debug for ExportDescription { @@ -12566,7 +11687,7 @@ impl std::convert::From<&str> for ExportFormat { impl std::str::FromStr for ExportFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportFormat::from(s)) } } @@ -12584,15 +11705,6 @@ impl AsRef for ExportFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12622,7 +11734,7 @@ impl std::convert::From<&str> for S3SseAlgorithm { impl std::str::FromStr for S3SseAlgorithm { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(S3SseAlgorithm::from(s)) } } @@ -12640,33 +11752,20 @@ impl AsRef for S3SseAlgorithm { self.as_str() } } -impl<'de> serde::Deserialize<'de> for S3SseAlgorithm { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      /// Represents a PartiQL statment that uses parameters. ///

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterizedStatement { ///

      /// A PartiQL statment that uses parameters. ///

      - #[serde(rename = "Statement")] - #[serde(default)] pub statement: std::option::Option, ///

      /// The parameter values. ///

      - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option>, } impl std::fmt::Debug for ParameterizedStatement { @@ -12761,7 +11860,7 @@ impl std::convert::From<&str> for DestinationStatus { impl std::str::FromStr for DestinationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DestinationStatus::from(s)) } } @@ -12782,27 +11881,14 @@ impl AsRef for DestinationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DestinationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      The description of the Time to Live (TTL) status on the specified table.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TimeToLiveDescription { ///

      The TTL status for the table.

      - #[serde(rename = "TimeToLiveStatus")] - #[serde(default)] pub time_to_live_status: std::option::Option, ///

      The name of the TTL attribute for items in the table.

      - #[serde(rename = "AttributeName")] - #[serde(default)] pub attribute_name: std::option::Option, } impl std::fmt::Debug for TimeToLiveDescription { @@ -12895,7 +11981,7 @@ impl std::convert::From<&str> for TimeToLiveStatus { impl std::str::FromStr for TimeToLiveStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TimeToLiveStatus::from(s)) } } @@ -12915,31 +12001,16 @@ impl AsRef for TimeToLiveStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TimeToLiveStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      Describes a Kinesis data stream destination.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KinesisDataStreamDestination { ///

      The ARN for a specific Kinesis data stream.

      - #[serde(rename = "StreamArn")] - #[serde(default)] pub stream_arn: std::option::Option, ///

      The current status of replication.

      - #[serde(rename = "DestinationStatus")] - #[serde(default)] pub destination_status: std::option::Option, ///

      The human-readable string that corresponds to the replica status.

      - #[serde(rename = "DestinationStatusDescription")] - #[serde(default)] pub destination_status_description: std::option::Option, } impl std::fmt::Debug for KinesisDataStreamDestination { @@ -13020,15 +12091,11 @@ impl KinesisDataStreamDestination { ///

      An endpoint information details.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Endpoint { ///

      IP address of the endpoint.

      - #[serde(rename = "Address")] - #[serde(default)] pub address: std::option::Option, ///

      Endpoint cache time to live (TTL) value.

      - #[serde(rename = "CachePeriodInMinutes")] - #[serde(default)] pub cache_period_in_minutes: i64, } impl std::fmt::Debug for Endpoint { @@ -13085,15 +12152,11 @@ impl Endpoint { ///

      Represents a failure a contributor insights operation.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailureException { ///

      Exception name.

      - #[serde(rename = "ExceptionName")] - #[serde(default)] pub exception_name: std::option::Option, ///

      Description of the failure.

      - #[serde(rename = "ExceptionDescription")] - #[serde(default)] pub exception_description: std::option::Option, } impl std::fmt::Debug for FailureException { @@ -13156,19 +12219,13 @@ impl FailureException { ///

      Contains the description of the backup created for the table.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BackupDescription { ///

      Contains the details of the backup created for the table.

      - #[serde(rename = "BackupDetails")] - #[serde(default)] pub backup_details: std::option::Option, ///

      Contains the details of the table when the backup was created.

      - #[serde(rename = "SourceTableDetails")] - #[serde(default)] pub source_table_details: std::option::Option, ///

      Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.

      - #[serde(rename = "SourceTableFeatureDetails")] - #[serde(default)] pub source_table_feature_details: std::option::Option, } impl std::fmt::Debug for BackupDescription { @@ -13253,32 +12310,22 @@ impl BackupDescription { ///

      Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceTableFeatureDetails { ///

      Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and Projection for the LSIs on the table at the time of backup.

      - #[serde(rename = "LocalSecondaryIndexes")] - #[serde(default)] pub local_secondary_indexes: std::option::Option>, ///

      Represents the GSI properties for the table when the backup was created. It includes the /// IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at /// the time of backup.

      - #[serde(rename = "GlobalSecondaryIndexes")] - #[serde(default)] pub global_secondary_indexes: std::option::Option>, ///

      Stream settings on the table when the backup was created.

      - #[serde(rename = "StreamDescription")] - #[serde(default)] pub stream_description: std::option::Option, ///

      Time to Live settings on the table when the backup was created.

      - #[serde(rename = "TimeToLiveDescription")] - #[serde(default)] pub time_to_live_description: std::option::Option, ///

      The description of the server-side encryption status on the table when the backup was created.

      - #[serde(rename = "SSEDescription")] - #[serde(default)] - pub sse_description: std::option::Option, + pub sse_description: std::option::Option, } impl std::fmt::Debug for SourceTableFeatureDetails { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -13304,7 +12351,7 @@ pub mod source_table_feature_details { pub(crate) stream_description: std::option::Option, pub(crate) time_to_live_description: std::option::Option, - pub(crate) sse_description: std::option::Option, + pub(crate) sse_description: std::option::Option, } impl Builder { pub fn local_secondary_indexes( @@ -13367,13 +12414,13 @@ pub mod source_table_feature_details { self } ///

      The description of the server-side encryption status on the table when the backup was created.

      - pub fn sse_description(mut self, input: crate::model::SSEDescription) -> Self { + pub fn sse_description(mut self, input: crate::model::SseDescription) -> Self { self.sse_description = Some(input); self } pub fn set_sse_description( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.sse_description = input; self @@ -13400,11 +12447,9 @@ impl SourceTableFeatureDetails { ///

      Represents the properties of a global secondary index for the table /// when the backup was created.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalSecondaryIndexInfo { ///

      The name of the global secondary index.

      - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

      The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

      ///
        @@ -13425,19 +12470,13 @@ pub struct GlobalSecondaryIndexInfo { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

        /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

        Represents attributes that are copied (projected) from the table into /// the global secondary index. These are in addition to the primary /// key attributes and index key attributes, which are automatically /// projected.

        - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, ///

        Represents the provisioned throughput settings for the specified global secondary index.

        - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, } impl std::fmt::Debug for GlobalSecondaryIndexInfo { @@ -13535,11 +12574,9 @@ impl GlobalSecondaryIndexInfo { ///

        Represents the properties of a local secondary index for the table /// when the backup was created.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LocalSecondaryIndexInfo { ///

        Represents the name of the local secondary index.

        - #[serde(rename = "IndexName")] - #[serde(default)] pub index_name: std::option::Option, ///

        The complete key schema for a local secondary index, which consists of one or more pairs of attribute names and key types:

        ///
          @@ -13560,12 +12597,8 @@ pub struct LocalSecondaryIndexInfo { /// The term "range attribute" derives from the way DynamoDB stores items with the same /// partition key physically close together, in sorted order by the sort key value.

          /// - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

          Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

          - #[serde(rename = "Projection")] - #[serde(default)] pub projection: std::option::Option, } impl std::fmt::Debug for LocalSecondaryIndexInfo { @@ -13641,42 +12674,23 @@ impl LocalSecondaryIndexInfo { ///

          Contains the details of the table when the backup was created.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceTableDetails { ///

          The name of the table for which the backup was created.

          - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

          Unique identifier for the table for which the backup was created.

          - #[serde(rename = "TableId")] - #[serde(default)] pub table_id: std::option::Option, ///

          ARN of the table for which backup was created.

          - #[serde(rename = "TableArn")] - #[serde(default)] pub table_arn: std::option::Option, ///

          Size of the table in bytes. Note that this is an approximate value.

          - #[serde(rename = "TableSizeBytes")] - #[serde(default)] pub table_size_bytes: i64, ///

          Schema of the table.

          - #[serde(rename = "KeySchema")] - #[serde(default)] pub key_schema: std::option::Option>, ///

          Time when the source table was created.

          - #[serde(rename = "TableCreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub table_creation_date_time: std::option::Option, ///

          Read IOPs and Write IOPS on the table when the backup was created.

          - #[serde(rename = "ProvisionedThroughput")] - #[serde(default)] pub provisioned_throughput: std::option::Option, ///

          Number of items in the table. Note that this is an approximate value.

          - #[serde(rename = "ItemCount")] - #[serde(default)] pub item_count: std::option::Option, ///

          Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

          ///
            @@ -13690,8 +12704,6 @@ pub struct SourceTableDetails { ///

            /// ///
          - #[serde(rename = "BillingMode")] - #[serde(default)] pub billing_mode: std::option::Option, } impl std::fmt::Debug for SourceTableDetails { @@ -13859,23 +12871,15 @@ impl SourceTableDetails { ///

          Contains the details of the backup created for the table.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BackupDetails { ///

          ARN associated with the backup.

          - #[serde(rename = "BackupArn")] - #[serde(default)] pub backup_arn: std::option::Option, ///

          Name of the requested backup.

          - #[serde(rename = "BackupName")] - #[serde(default)] pub backup_name: std::option::Option, ///

          Size of the backup in bytes.

          - #[serde(rename = "BackupSizeBytes")] - #[serde(default)] pub backup_size_bytes: std::option::Option, ///

          Backup can be in one of the following states: CREATING, ACTIVE, DELETED.

          - #[serde(rename = "BackupStatus")] - #[serde(default)] pub backup_status: std::option::Option, ///

          BackupType:

          ///
            @@ -13895,23 +12899,11 @@ pub struct BackupDetails { /// AWS_BACKUP - On-demand backup created by you from AWS Backup service.

            /// ///
          - #[serde(rename = "BackupType")] - #[serde(default)] pub backup_type: std::option::Option, ///

          Time at which the backup was created. This is the request time of the backup.

          - #[serde(rename = "BackupCreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub backup_creation_date_time: std::option::Option, ///

          Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM /// on-demand backup expires automatically 35 days after its creation.

          - #[serde(rename = "BackupExpiryDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub backup_expiry_date_time: std::option::Option, } impl std::fmt::Debug for BackupDetails { @@ -14061,15 +13053,11 @@ impl BackupDetails { /// single WriteRequest. If you do need to perform both of these operations, you /// need to provide two separate WriteRequest objects.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct WriteRequest { ///

          A request to perform a PutItem operation.

          - #[serde(rename = "PutRequest")] - #[serde(default)] pub put_request: std::option::Option, ///

          A request to perform a DeleteItem operation.

          - #[serde(rename = "DeleteRequest")] - #[serde(default)] pub delete_request: std::option::Option, } impl std::fmt::Debug for WriteRequest { @@ -14132,11 +13120,9 @@ impl WriteRequest { ///

          Represents a request to perform a DeleteItem operation on an item.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteRequest { ///

          A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.

          - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option< std::collections::HashMap, >, @@ -14193,15 +13179,13 @@ impl DeleteRequest { ///

          Represents a request to perform a PutItem operation on an item.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutRequest { ///

          A map of attribute name to attribute values, representing the primary key of an item to /// be processed by PutItem. All of the table's primary key attributes must be /// specified, and their data types must match those of the table's key schema. If any /// attributes are present in the item that are part of an index key schema for the table, /// their types must match the index key schema.

          - #[serde(rename = "Item")] - #[serde(default)] pub item: std::option::Option< std::collections::HashMap, >, @@ -14261,31 +13245,23 @@ impl PutRequest { /// simple primary key, you only need to provide the partition key. For a composite /// primary key, you must provide both the partition key and the sort key.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeysAndAttributes { ///

          The primary key attribute values that define the items and the attributes associated with the items.

          - #[serde(rename = "Keys")] - #[serde(default)] pub keys: std::option::Option< std::vec::Vec>, >, ///

          This is a legacy parameter. Use ProjectionExpression instead. For more information, see /// Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

          - #[serde(rename = "AttributesToGet")] - #[serde(default)] pub attributes_to_get: std::option::Option>, ///

          The consistency of a read operation. If set to true, then a strongly consistent /// read is used; otherwise, an eventually consistent read is used.

          - #[serde(rename = "ConsistentRead")] - #[serde(default)] pub consistent_read: std::option::Option, ///

          A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, /// sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by /// commas.

          ///

          If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

          ///

          For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

          - #[serde(rename = "ProjectionExpression")] - #[serde(default)] pub projection_expression: std::option::Option, ///

          One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

          ///
            @@ -14327,8 +13303,6 @@ pub struct KeysAndAttributes { ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            /// ///

            For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

            - #[serde(rename = "ExpressionAttributeNames")] - #[serde(default)] pub expression_attribute_names: std::option::Option>, } @@ -14468,25 +13442,19 @@ impl KeysAndAttributes { /// A PartiQL batch statement response.. ///

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchStatementResponse { ///

            /// The error associated with a failed PartiQL batch statement. ///

            - #[serde(rename = "Error")] - #[serde(default)] pub error: std::option::Option, ///

            /// The table name associated with a failed PartiQL batch statement. ///

            - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

            /// A DynamoDB item associated with a BatchStatementResponse ///

            - #[serde(rename = "Item")] - #[serde(default)] pub item: std::option::Option< std::collections::HashMap, >, @@ -14578,19 +13546,15 @@ impl BatchStatementResponse { /// An error associated with a statement in a PartiQL batch that was run. ///

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchStatementError { ///

            /// The error code associated with the failed PartiQL batch statement. ///

            - #[serde(rename = "Code")] - #[serde(default)] pub code: std::option::Option, ///

            /// The error message associated with the PartiQL batch resposne. ///

            - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for BatchStatementError { @@ -14702,7 +13666,7 @@ impl std::convert::From<&str> for BatchStatementErrorCodeEnum { impl std::str::FromStr for BatchStatementErrorCodeEnum { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BatchStatementErrorCodeEnum::from(s)) } } @@ -14733,39 +13697,24 @@ impl AsRef for BatchStatementErrorCodeEnum { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BatchStatementErrorCodeEnum { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            /// A PartiQL batch statement request. ///

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchStatementRequest { ///

            /// A valid PartiQL statement. ///

            - #[serde(rename = "Statement")] - #[serde(default)] pub statement: std::option::Option, ///

            /// The parameters associated with a PartiQL statement in the batch request. ///

            - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option>, ///

            /// The read consistency of the PartiQL batch request. ///

            - #[serde(rename = "ConsistentRead")] - #[serde(default)] pub consistent_read: std::option::Option, } impl std::fmt::Debug for BatchStatementRequest { diff --git a/sdk/dynamodb/src/operation.rs b/sdk/dynamodb/src/operation.rs index d78e7f00ff9d..5ddde6dfe32a 100644 --- a/sdk/dynamodb/src/operation.rs +++ b/sdk/dynamodb/src/operation.rs @@ -11,54 +11,6 @@ impl BatchExecuteStatement { pub fn builder() -> crate::input::batch_execute_statement_input::Builder { crate::input::batch_execute_statement_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::BatchExecuteStatementOutput, - crate::error::BatchExecuteStatementError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::BatchExecuteStatementError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchExecuteStatementError { - kind: crate::error::BatchExecuteStatementErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::BatchExecuteStatementError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchExecuteStatementError { - kind: crate::error::BatchExecuteStatementErrorKind::RequestLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::BatchExecuteStatementError::unhandled(e), - }, - _ => crate::error::BatchExecuteStatementError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::batch_execute_statement_output::Builder::default(); - builder = crate::json_deser::batch_execute_statement_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::BatchExecuteStatementError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -69,7 +21,11 @@ impl smithy_http::response::ParseStrictResponse for BatchExecuteStatement { crate::error::BatchExecuteStatementError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_execute_statement_error(response) + } else { + crate::operation_deser::parse_batch_execute_statement_response(response) + } } } @@ -128,70 +84,6 @@ impl BatchGetItem { pub fn builder() -> crate::input::batch_get_item_input::Builder { crate::input::batch_get_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::BatchGetItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchGetItemError { - kind: crate::error::BatchGetItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::BatchGetItemError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchGetItemError { - kind: crate::error::BatchGetItemErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::BatchGetItemError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchGetItemError { - kind: - crate::error::BatchGetItemErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::BatchGetItemError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchGetItemError { - kind: crate::error::BatchGetItemErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::BatchGetItemError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchGetItemError { - kind: crate::error::BatchGetItemErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::BatchGetItemError::unhandled(e), - }, - _ => crate::error::BatchGetItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::batch_get_item_output::Builder::default(); - builder = - crate::json_deser::batch_get_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::BatchGetItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -200,7 +92,11 @@ impl smithy_http::response::ParseStrictResponse for BatchGetItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_get_item_error(response) + } else { + crate::operation_deser::parse_batch_get_item_response(response) + } } } @@ -287,56 +183,6 @@ impl BatchWriteItem { pub fn builder() -> crate::input::batch_write_item_input::Builder { crate::input::batch_write_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::BatchWriteItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - "ItemCollectionSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::RequestLimitExceeded(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::BatchWriteItemError { kind: crate::error::BatchWriteItemErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::BatchWriteItemError::unhandled(e) - } - _ => crate::error::BatchWriteItemError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::batch_write_item_output::Builder::default(); - builder = - crate::json_deser::batch_write_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::BatchWriteItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -345,7 +191,11 @@ impl smithy_http::response::ParseStrictResponse for BatchWriteItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_write_item_error(response) + } else { + crate::operation_deser::parse_batch_write_item_response(response) + } } } @@ -388,84 +238,6 @@ impl CreateBackup { pub fn builder() -> crate::input::create_backup_input::Builder { crate::input::create_backup_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateBackupError::unhandled(generic)), - }; - return Err(match error_code { - "BackupInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::BackupInUseError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "ContinuousBackupsUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: - crate::error::CreateBackupErrorKind::ContinuousBackupsUnavailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "TableInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::TableInUseError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateBackupError { - kind: crate::error::CreateBackupErrorKind::TableNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateBackupError::unhandled(e), - }, - _ => crate::error::CreateBackupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_backup_output::Builder::default(); - builder = - crate::json_deser::create_backup_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateBackupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -474,7 +246,11 @@ impl smithy_http::response::ParseStrictResponse for CreateBackup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_backup_error(response) + } else { + crate::operation_deser::parse_create_backup_response(response) + } } } @@ -553,74 +329,6 @@ impl CreateGlobalTable { pub fn builder() -> crate::input::create_global_table_input::Builder { crate::input::create_global_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateGlobalTableOutput, - crate::error::CreateGlobalTableError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateGlobalTableError::unhandled(generic)), - }; - return Err(match error_code { - "GlobalTableAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGlobalTableError { - kind: - crate::error::CreateGlobalTableErrorKind::GlobalTableAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateGlobalTableError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGlobalTableError { - kind: crate::error::CreateGlobalTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGlobalTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGlobalTableError { - kind: crate::error::CreateGlobalTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGlobalTableError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGlobalTableError { - kind: crate::error::CreateGlobalTableErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGlobalTableError::unhandled(e), - }, - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGlobalTableError { - kind: crate::error::CreateGlobalTableErrorKind::TableNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGlobalTableError::unhandled(e), - }, - _ => crate::error::CreateGlobalTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_global_table_output::Builder::default(); - builder = crate::json_deser::create_global_table_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateGlobalTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -631,7 +339,11 @@ impl smithy_http::response::ParseStrictResponse for CreateGlobalTable { crate::error::CreateGlobalTableError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_global_table_error(response) + } else { + crate::operation_deser::parse_create_global_table_response(response) + } } } @@ -657,59 +369,6 @@ impl CreateTable { pub fn builder() -> crate::input::create_table_input::Builder { crate::input::create_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTableError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTableError { - kind: crate::error::CreateTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTableError { - kind: crate::error::CreateTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::CreateTableError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTableError { - kind: crate::error::CreateTableErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateTableError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTableError { - kind: crate::error::CreateTableErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::CreateTableError::unhandled(e), - }, - _ => crate::error::CreateTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_table_output::Builder::default(); - builder = - crate::json_deser::create_table_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -718,7 +377,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTable { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_table_error(response) + } else { + crate::operation_deser::parse_create_table_response(response) + } } } @@ -733,67 +396,6 @@ impl DeleteBackup { pub fn builder() -> crate::input::delete_backup_input::Builder { crate::input::delete_backup_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteBackupError::unhandled(generic)), - }; - return Err(match error_code { - "BackupInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteBackupError { - kind: crate::error::DeleteBackupErrorKind::BackupInUseError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteBackupError::unhandled(e), - }, - "BackupNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteBackupError { - kind: crate::error::DeleteBackupErrorKind::BackupNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteBackupError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteBackupError { - kind: crate::error::DeleteBackupErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteBackupError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteBackupError { - kind: crate::error::DeleteBackupErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteBackupError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteBackupError { - kind: crate::error::DeleteBackupErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteBackupError::unhandled(e), - }, - _ => crate::error::DeleteBackupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_backup_output::Builder::default(); - builder = - crate::json_deser::delete_backup_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteBackupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -802,7 +404,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteBackup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_backup_error(response) + } else { + crate::operation_deser::parse_delete_backup_response(response) + } } } @@ -821,91 +427,6 @@ impl DeleteItem { pub fn builder() -> crate::input::delete_item_input::Builder { crate::input::delete_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteItemError::unhandled(generic)), - }; - return Err(match error_code { - "ConditionalCheckFailedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::ConditionalCheckFailedError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "ItemCollectionSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: - crate::error::DeleteItemErrorKind::ItemCollectionSizeLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - "TransactionConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteItemError { - kind: crate::error::DeleteItemErrorKind::TransactionConflictError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteItemError::unhandled(e), - }, - _ => crate::error::DeleteItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_item_output::Builder::default(); - builder = crate::json_deser::delete_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -914,7 +435,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_item_error(response) + } else { + crate::operation_deser::parse_delete_item_response(response) + } } } @@ -943,66 +468,6 @@ impl DeleteTable { pub fn builder() -> crate::input::delete_table_input::Builder { crate::input::delete_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteTableError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTableError { - kind: crate::error::DeleteTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTableError { - kind: crate::error::DeleteTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTableError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTableError { - kind: crate::error::DeleteTableErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTableError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTableError { - kind: crate::error::DeleteTableErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTableError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTableError { - kind: crate::error::DeleteTableErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTableError::unhandled(e), - }, - _ => crate::error::DeleteTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_table_output::Builder::default(); - builder = - crate::json_deser::delete_table_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1011,7 +476,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteTable { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_table_error(response) + } else { + crate::operation_deser::parse_delete_table_response(response) + } } } @@ -1026,53 +495,6 @@ impl DescribeBackup { pub fn builder() -> crate::input::describe_backup_input::Builder { crate::input::describe_backup_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeBackupError::unhandled(generic)), - }; - return Err(match error_code { - "BackupNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeBackupError { - kind: crate::error::DescribeBackupErrorKind::BackupNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeBackupError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeBackupError { - kind: crate::error::DescribeBackupErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeBackupError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeBackupError { - kind: crate::error::DescribeBackupErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeBackupError::unhandled(e), - }, - _ => crate::error::DescribeBackupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_backup_output::Builder::default(); - builder = - crate::json_deser::describe_backup_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeBackupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1081,7 +503,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeBackup { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_backup_error(response) + } else { + crate::operation_deser::parse_describe_backup_response(response) + } } } @@ -1105,68 +531,6 @@ impl DescribeContinuousBackups { pub fn builder() -> crate::input::describe_continuous_backups_input::Builder { crate::input::describe_continuous_backups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeContinuousBackupsOutput, - crate::error::DescribeContinuousBackupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeContinuousBackupsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContinuousBackupsError { - kind: crate::error::DescribeContinuousBackupsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeContinuousBackupsError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContinuousBackupsError { - kind: - crate::error::DescribeContinuousBackupsErrorKind::InvalidEndpointError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeContinuousBackupsError::unhandled(e), - }, - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContinuousBackupsError { - kind: crate::error::DescribeContinuousBackupsErrorKind::TableNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeContinuousBackupsError::unhandled(e), - }, - _ => crate::error::DescribeContinuousBackupsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_continuous_backups_output::Builder::default(); - builder = crate::json_deser::describe_continuous_backups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1177,7 +541,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeContinuousBackups { crate::error::DescribeContinuousBackupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_continuous_backups_error(response) + } else { + crate::operation_deser::parse_describe_continuous_backups_response(response) + } } } @@ -1191,48 +559,6 @@ impl DescribeContributorInsights { pub fn builder() -> crate::input::describe_contributor_insights_input::Builder { crate::input::describe_contributor_insights_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeContributorInsightsOutput, - crate::error::DescribeContributorInsightsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeContributorInsightsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContributorInsightsError { kind: crate::error::DescribeContributorInsightsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeContributorInsightsError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContributorInsightsError { kind: crate::error::DescribeContributorInsightsErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeContributorInsightsError::unhandled(e) - } - _ => crate::error::DescribeContributorInsightsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_contributor_insights_output::Builder::default(); - builder = crate::json_deser::describe_contributor_insights_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeContributorInsightsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1243,7 +569,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeContributorInsights crate::error::DescribeContributorInsightsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_contributor_insights_error(response) + } else { + crate::operation_deser::parse_describe_contributor_insights_response(response) + } } } @@ -1257,30 +587,6 @@ impl DescribeEndpoints { pub fn builder() -> crate::input::describe_endpoints_input::Builder { crate::input::describe_endpoints_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEndpointsOutput, - crate::error::DescribeEndpointsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeEndpointsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_endpoints_output::Builder::default(); - builder = crate::json_deser::describe_endpoints_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeEndpointsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1291,7 +597,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeEndpoints { crate::error::DescribeEndpointsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_endpoints_error(response) + } else { + crate::operation_deser::parse_describe_endpoints_response(response) + } } } @@ -1305,53 +615,6 @@ impl DescribeExport { pub fn builder() -> crate::input::describe_export_input::Builder { crate::input::describe_export_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeExportError::unhandled(generic)), - }; - return Err(match error_code { - "ExportNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExportError { - kind: crate::error::DescribeExportErrorKind::ExportNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeExportError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExportError { - kind: crate::error::DescribeExportErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeExportError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExportError { - kind: crate::error::DescribeExportErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeExportError::unhandled(e), - }, - _ => crate::error::DescribeExportError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_export_output::Builder::default(); - builder = - crate::json_deser::describe_export_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeExportError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1360,7 +623,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeExport { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_export_error(response) + } else { + crate::operation_deser::parse_describe_export_response(response) + } } } @@ -1378,61 +645,6 @@ impl DescribeGlobalTable { pub fn builder() -> crate::input::describe_global_table_input::Builder { crate::input::describe_global_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeGlobalTableOutput, - crate::error::DescribeGlobalTableError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeGlobalTableError::unhandled(generic)), - }; - return Err(match error_code { - "GlobalTableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableError { - kind: crate::error::DescribeGlobalTableErrorKind::GlobalTableNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeGlobalTableError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableError { - kind: crate::error::DescribeGlobalTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeGlobalTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableError { - kind: crate::error::DescribeGlobalTableErrorKind::InvalidEndpointError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeGlobalTableError::unhandled(e), - }, - _ => crate::error::DescribeGlobalTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_global_table_output::Builder::default(); - builder = crate::json_deser::describe_global_table_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeGlobalTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1443,7 +655,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeGlobalTable { crate::error::DescribeGlobalTableError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_global_table_error(response) + } else { + crate::operation_deser::parse_describe_global_table_response(response) + } } } @@ -1460,52 +676,6 @@ impl DescribeGlobalTableSettings { pub fn builder() -> crate::input::describe_global_table_settings_input::Builder { crate::input::describe_global_table_settings_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeGlobalTableSettingsOutput, - crate::error::DescribeGlobalTableSettingsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeGlobalTableSettingsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "GlobalTableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableSettingsError { kind: crate::error::DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeGlobalTableSettingsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableSettingsError { kind: crate::error::DescribeGlobalTableSettingsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeGlobalTableSettingsError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeGlobalTableSettingsError { kind: crate::error::DescribeGlobalTableSettingsErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::DescribeGlobalTableSettingsError::unhandled(e) - } - _ => crate::error::DescribeGlobalTableSettingsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_global_table_settings_output::Builder::default(); - builder = crate::json_deser::describe_global_table_settings_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1516,7 +686,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeGlobalTableSettings crate::error::DescribeGlobalTableSettingsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_global_table_settings_error(response) + } else { + crate::operation_deser::parse_describe_global_table_settings_response(response) + } } } @@ -1530,53 +704,6 @@ impl DescribeKinesisStreamingDestination { pub fn builder() -> crate::input::describe_kinesis_streaming_destination_input::Builder { crate::input::describe_kinesis_streaming_destination_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeKinesisStreamingDestinationOutput, - crate::error::DescribeKinesisStreamingDestinationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeKinesisStreamingDestinationError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKinesisStreamingDestinationError { kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeKinesisStreamingDestinationError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKinesisStreamingDestinationError { kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::DescribeKinesisStreamingDestinationError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKinesisStreamingDestinationError { kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeKinesisStreamingDestinationError::unhandled(e) - } - _ => crate::error::DescribeKinesisStreamingDestinationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_kinesis_streaming_destination_output::Builder::default(); - builder = crate::json_deser::describe_kinesis_streaming_destination_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1587,7 +714,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeKinesisStreamingDest crate::error::DescribeKinesisStreamingDestinationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_kinesis_streaming_destination_error(response) + } else { + crate::operation_deser::parse_describe_kinesis_streaming_destination_response(response) + } } } @@ -1660,46 +791,6 @@ impl DescribeLimits { pub fn builder() -> crate::input::describe_limits_input::Builder { crate::input::describe_limits_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeLimitsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLimitsError { - kind: crate::error::DescribeLimitsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeLimitsError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLimitsError { - kind: crate::error::DescribeLimitsErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeLimitsError::unhandled(e), - }, - _ => crate::error::DescribeLimitsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_limits_output::Builder::default(); - builder = - crate::json_deser::describe_limits_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeLimitsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1708,7 +799,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeLimits { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_limits_error(response) + } else { + crate::operation_deser::parse_describe_limits_response(response) + } } } @@ -1728,53 +823,6 @@ impl DescribeTable { pub fn builder() -> crate::input::describe_table_input::Builder { crate::input::describe_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTableError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTableError { - kind: crate::error::DescribeTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTableError { - kind: crate::error::DescribeTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTableError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTableError { - kind: crate::error::DescribeTableErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTableError::unhandled(e), - }, - _ => crate::error::DescribeTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_table_output::Builder::default(); - builder = - crate::json_deser::describe_table_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1783,7 +831,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTable { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_table_error(response) + } else { + crate::operation_deser::parse_describe_table_response(response) + } } } @@ -1800,49 +852,6 @@ impl DescribeTableReplicaAutoScaling { pub fn builder() -> crate::input::describe_table_replica_auto_scaling_input::Builder { crate::input::describe_table_replica_auto_scaling_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTableReplicaAutoScalingOutput, - crate::error::DescribeTableReplicaAutoScalingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeTableReplicaAutoScalingError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTableReplicaAutoScalingError { kind: crate::error::DescribeTableReplicaAutoScalingErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeTableReplicaAutoScalingError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTableReplicaAutoScalingError { kind: crate::error::DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeTableReplicaAutoScalingError::unhandled(e) - } - _ => crate::error::DescribeTableReplicaAutoScalingError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_table_replica_auto_scaling_output::Builder::default(); - builder = crate::json_deser::describe_table_replica_auto_scaling_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTableReplicaAutoScalingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1853,7 +862,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTableReplicaAutoScal crate::error::DescribeTableReplicaAutoScalingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_table_replica_auto_scaling_error(response) + } else { + crate::operation_deser::parse_describe_table_replica_auto_scaling_response(response) + } } } @@ -1867,59 +880,6 @@ impl DescribeTimeToLive { pub fn builder() -> crate::input::describe_time_to_live_input::Builder { crate::input::describe_time_to_live_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTimeToLiveOutput, - crate::error::DescribeTimeToLiveError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTimeToLiveError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTimeToLiveError { - kind: crate::error::DescribeTimeToLiveErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTimeToLiveError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTimeToLiveError { - kind: crate::error::DescribeTimeToLiveErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTimeToLiveError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTimeToLiveError { - kind: crate::error::DescribeTimeToLiveErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeTimeToLiveError::unhandled(e), - }, - _ => crate::error::DescribeTimeToLiveError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_time_to_live_output::Builder::default(); - builder = crate::json_deser::describe_time_to_live_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1930,7 +890,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTimeToLive { crate::error::DescribeTimeToLiveError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_time_to_live_error(response) + } else { + crate::operation_deser::parse_describe_time_to_live_response(response) + } } } @@ -1945,61 +909,6 @@ impl DisableKinesisStreamingDestination { pub fn builder() -> crate::input::disable_kinesis_streaming_destination_input::Builder { crate::input::disable_kinesis_streaming_destination_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisableKinesisStreamingDestinationOutput, - crate::error::DisableKinesisStreamingDestinationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DisableKinesisStreamingDestinationError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKinesisStreamingDestinationError { kind: crate::error::DisableKinesisStreamingDestinationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DisableKinesisStreamingDestinationError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKinesisStreamingDestinationError { kind: crate::error::DisableKinesisStreamingDestinationErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::DisableKinesisStreamingDestinationError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKinesisStreamingDestinationError { kind: crate::error::DisableKinesisStreamingDestinationErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::DisableKinesisStreamingDestinationError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKinesisStreamingDestinationError { kind: crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::DisableKinesisStreamingDestinationError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKinesisStreamingDestinationError { kind: crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DisableKinesisStreamingDestinationError::unhandled(e) - } - _ => crate::error::DisableKinesisStreamingDestinationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::disable_kinesis_streaming_destination_output::Builder::default(); - builder = crate::json_deser::disable_kinesis_streaming_destination_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2010,7 +919,11 @@ impl smithy_http::response::ParseStrictResponse for DisableKinesisStreamingDesti crate::error::DisableKinesisStreamingDestinationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_kinesis_streaming_destination_error(response) + } else { + crate::operation_deser::parse_disable_kinesis_streaming_destination_response(response) + } } } @@ -2027,61 +940,6 @@ impl EnableKinesisStreamingDestination { pub fn builder() -> crate::input::enable_kinesis_streaming_destination_input::Builder { crate::input::enable_kinesis_streaming_destination_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::EnableKinesisStreamingDestinationOutput, - crate::error::EnableKinesisStreamingDestinationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::EnableKinesisStreamingDestinationError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKinesisStreamingDestinationError { kind: crate::error::EnableKinesisStreamingDestinationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::EnableKinesisStreamingDestinationError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKinesisStreamingDestinationError { kind: crate::error::EnableKinesisStreamingDestinationErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::EnableKinesisStreamingDestinationError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKinesisStreamingDestinationError { kind: crate::error::EnableKinesisStreamingDestinationErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::EnableKinesisStreamingDestinationError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKinesisStreamingDestinationError { kind: crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::EnableKinesisStreamingDestinationError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKinesisStreamingDestinationError { kind: crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::EnableKinesisStreamingDestinationError::unhandled(e) - } - _ => crate::error::EnableKinesisStreamingDestinationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::enable_kinesis_streaming_destination_output::Builder::default(); - builder = crate::json_deser::enable_kinesis_streaming_destination_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2092,7 +950,11 @@ impl smithy_http::response::ParseStrictResponse for EnableKinesisStreamingDestin crate::error::EnableKinesisStreamingDestinationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_kinesis_streaming_destination_error(response) + } else { + crate::operation_deser::parse_enable_kinesis_streaming_destination_response(response) + } } } @@ -2108,66 +970,6 @@ impl ExecuteStatement { pub fn builder() -> crate::input::execute_statement_input::Builder { crate::input::execute_statement_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ExecuteStatementOutput, - crate::error::ExecuteStatementError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ExecuteStatementError::unhandled(generic)), - }; - return Err(match error_code { - "ConditionalCheckFailedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::ConditionalCheckFailedError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "DuplicateItemException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::DuplicateItemError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "ItemCollectionSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::RequestLimitExceeded(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - "TransactionConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteStatementError { kind: crate::error::ExecuteStatementErrorKind::TransactionConflictError(body), meta: generic }, - Err(e) => crate::error::ExecuteStatementError::unhandled(e) - } - _ => crate::error::ExecuteStatementError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::execute_statement_output::Builder::default(); - builder = - crate::json_deser::execute_statement_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ExecuteStatementError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2178,7 +980,11 @@ impl smithy_http::response::ParseStrictResponse for ExecuteStatement { crate::error::ExecuteStatementError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_execute_statement_error(response) + } else { + crate::operation_deser::parse_execute_statement_response(response) + } } } @@ -2194,64 +1000,6 @@ impl ExecuteTransaction { pub fn builder() -> crate::input::execute_transaction_input::Builder { crate::input::execute_transaction_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ExecuteTransactionOutput, - crate::error::ExecuteTransactionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ExecuteTransactionError::unhandled(generic)), - }; - return Err(match error_code { - "IdempotentParameterMismatchException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::IdempotentParameterMismatchError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::RequestLimitExceeded(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "TransactionCanceledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::TransactionCanceledError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - "TransactionInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteTransactionError { kind: crate::error::ExecuteTransactionErrorKind::TransactionInProgressError(body), meta: generic }, - Err(e) => crate::error::ExecuteTransactionError::unhandled(e) - } - _ => crate::error::ExecuteTransactionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::execute_transaction_output::Builder::default(); - builder = crate::json_deser::execute_transaction_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ExecuteTransactionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2262,7 +1010,11 @@ impl smithy_http::response::ParseStrictResponse for ExecuteTransaction { crate::error::ExecuteTransactionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_execute_transaction_error(response) + } else { + crate::operation_deser::parse_execute_transaction_response(response) + } } } @@ -2278,64 +1030,6 @@ impl ExportTableToPointInTime { pub fn builder() -> crate::input::export_table_to_point_in_time_input::Builder { crate::input::export_table_to_point_in_time_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ExportTableToPointInTimeOutput, - crate::error::ExportTableToPointInTimeError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ExportTableToPointInTimeError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ExportConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::ExportConflictError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - "InvalidExportTimeException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::InvalidExportTimeError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - "PointInTimeRecoveryUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExportTableToPointInTimeError { kind: crate::error::ExportTableToPointInTimeErrorKind::TableNotFoundError(body), meta: generic }, - Err(e) => crate::error::ExportTableToPointInTimeError::unhandled(e) - } - _ => crate::error::ExportTableToPointInTimeError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::export_table_to_point_in_time_output::Builder::default(); - builder = crate::json_deser::export_table_to_point_in_time_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2346,7 +1040,11 @@ impl smithy_http::response::ParseStrictResponse for ExportTableToPointInTime { crate::error::ExportTableToPointInTimeError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_export_table_to_point_in_time_error(response) + } else { + crate::operation_deser::parse_export_table_to_point_in_time_response(response) + } } } @@ -2366,67 +1064,6 @@ impl GetItem { pub fn builder() -> crate::input::get_item_input::Builder { crate::input::get_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetItemError { - kind: crate::error::GetItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetItemError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetItemError { - kind: crate::error::GetItemErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::GetItemError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetItemError { - kind: crate::error::GetItemErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetItemError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetItemError { - kind: crate::error::GetItemErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::GetItemError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetItemError { - kind: crate::error::GetItemErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetItemError::unhandled(e), - }, - _ => crate::error::GetItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_item_output::Builder::default(); - builder = crate::json_deser::get_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2434,7 +1071,11 @@ impl GetItem { impl smithy_http::response::ParseStrictResponse for GetItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_item_error(response) + } else { + crate::operation_deser::parse_get_item_response(response) + } } } @@ -2454,45 +1095,6 @@ impl ListBackups { pub fn builder() -> crate::input::list_backups_input::Builder { crate::input::list_backups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListBackupsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListBackupsError { - kind: crate::error::ListBackupsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListBackupsError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListBackupsError { - kind: crate::error::ListBackupsErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::ListBackupsError::unhandled(e), - }, - _ => crate::error::ListBackupsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_backups_output::Builder::default(); - builder = - crate::json_deser::list_backups_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListBackupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2501,7 +1103,11 @@ impl smithy_http::response::ParseStrictResponse for ListBackups { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_backups_error(response) + } else { + crate::operation_deser::parse_list_backups_response(response) + } } } @@ -2515,58 +1121,6 @@ impl ListContributorInsights { pub fn builder() -> crate::input::list_contributor_insights_input::Builder { crate::input::list_contributor_insights_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListContributorInsightsOutput, - crate::error::ListContributorInsightsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListContributorInsightsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContributorInsightsError { - kind: crate::error::ListContributorInsightsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListContributorInsightsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContributorInsightsError { - kind: crate::error::ListContributorInsightsErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListContributorInsightsError::unhandled(e), - }, - _ => crate::error::ListContributorInsightsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_contributor_insights_output::Builder::default(); - builder = crate::json_deser::list_contributor_insights_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListContributorInsightsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2577,7 +1131,11 @@ impl smithy_http::response::ParseStrictResponse for ListContributorInsights { crate::error::ListContributorInsightsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_contributor_insights_error(response) + } else { + crate::operation_deser::parse_list_contributor_insights_response(response) + } } } @@ -2591,45 +1149,6 @@ impl ListExports { pub fn builder() -> crate::input::list_exports_input::Builder { crate::input::list_exports_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListExportsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListExportsError { - kind: crate::error::ListExportsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListExportsError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListExportsError { - kind: crate::error::ListExportsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ListExportsError::unhandled(e), - }, - _ => crate::error::ListExportsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_exports_output::Builder::default(); - builder = - crate::json_deser::list_exports_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListExportsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2638,7 +1157,11 @@ impl smithy_http::response::ParseStrictResponse for ListExports { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_exports_error(response) + } else { + crate::operation_deser::parse_list_exports_response(response) + } } } @@ -2655,50 +1178,6 @@ impl ListGlobalTables { pub fn builder() -> crate::input::list_global_tables_input::Builder { crate::input::list_global_tables_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListGlobalTablesOutput, - crate::error::ListGlobalTablesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListGlobalTablesError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGlobalTablesError { - kind: crate::error::ListGlobalTablesErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListGlobalTablesError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGlobalTablesError { - kind: crate::error::ListGlobalTablesErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::ListGlobalTablesError::unhandled(e), - }, - _ => crate::error::ListGlobalTablesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_global_tables_output::Builder::default(); - builder = crate::json_deser::list_global_tables_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListGlobalTablesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2709,7 +1188,11 @@ impl smithy_http::response::ParseStrictResponse for ListGlobalTables { crate::error::ListGlobalTablesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_global_tables_error(response) + } else { + crate::operation_deser::parse_list_global_tables_response(response) + } } } @@ -2725,44 +1208,6 @@ impl ListTables { pub fn builder() -> crate::input::list_tables_input::Builder { crate::input::list_tables_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTablesError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTablesError { - kind: crate::error::ListTablesErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTablesError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTablesError { - kind: crate::error::ListTablesErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::ListTablesError::unhandled(e), - }, - _ => crate::error::ListTablesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tables_output::Builder::default(); - builder = crate::json_deser::list_tables_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListTablesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2771,7 +1216,11 @@ impl smithy_http::response::ParseStrictResponse for ListTables { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tables_error(response) + } else { + crate::operation_deser::parse_list_tables_response(response) + } } } @@ -2788,59 +1237,6 @@ impl ListTagsOfResource { pub fn builder() -> crate::input::list_tags_of_resource_input::Builder { crate::input::list_tags_of_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTagsOfResourceOutput, - crate::error::ListTagsOfResourceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTagsOfResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsOfResourceError { - kind: crate::error::ListTagsOfResourceErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsOfResourceError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsOfResourceError { - kind: crate::error::ListTagsOfResourceErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsOfResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsOfResourceError { - kind: crate::error::ListTagsOfResourceErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTagsOfResourceError::unhandled(e), - }, - _ => crate::error::ListTagsOfResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_of_resource_output::Builder::default(); - builder = crate::json_deser::list_tags_of_resource_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTagsOfResourceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2851,7 +1247,11 @@ impl smithy_http::response::ParseStrictResponse for ListTagsOfResource { crate::error::ListTagsOfResourceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_of_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_of_resource_response(response) + } } } @@ -2931,90 +1331,6 @@ impl PutItem { pub fn builder() -> crate::input::put_item_input::Builder { crate::input::put_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutItemError::unhandled(generic)), - }; - return Err(match error_code { - "ConditionalCheckFailedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::ConditionalCheckFailedError(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "ItemCollectionSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::ItemCollectionSizeLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - "TransactionConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutItemError { - kind: crate::error::PutItemErrorKind::TransactionConflictError(body), - meta: generic, - }, - Err(e) => crate::error::PutItemError::unhandled(e), - }, - _ => crate::error::PutItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_item_output::Builder::default(); - builder = crate::json_deser::put_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3022,7 +1338,11 @@ impl PutItem { impl smithy_http::response::ParseStrictResponse for PutItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_item_error(response) + } else { + crate::operation_deser::parse_put_item_response(response) + } } } @@ -3091,67 +1411,6 @@ impl Query { pub fn builder() -> crate::input::query_input::Builder { crate::input::query_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::QueryError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::QueryError { - kind: crate::error::QueryErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::QueryError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::QueryError { - kind: crate::error::QueryErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::QueryError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::QueryError { - kind: crate::error::QueryErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::QueryError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::QueryError { - kind: crate::error::QueryErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::QueryError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::QueryError { - kind: crate::error::QueryErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::QueryError::unhandled(e), - }, - _ => crate::error::QueryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::query_output::Builder::default(); - builder = crate::json_deser::query_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::QueryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3159,7 +1418,11 @@ impl Query { impl smithy_http::response::ParseStrictResponse for Query { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_query_error(response) + } else { + crate::operation_deser::parse_query_response(response) + } } } @@ -3197,100 +1460,6 @@ impl RestoreTableFromBackup { pub fn builder() -> crate::input::restore_table_from_backup_input::Builder { crate::input::restore_table_from_backup_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RestoreTableFromBackupOutput, - crate::error::RestoreTableFromBackupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RestoreTableFromBackupError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "BackupInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::BackupInUseError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "BackupNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::BackupNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::InvalidEndpointError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "TableAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: - crate::error::RestoreTableFromBackupErrorKind::TableAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - "TableInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableFromBackupError { - kind: crate::error::RestoreTableFromBackupErrorKind::TableInUseError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreTableFromBackupError::unhandled(e), - }, - _ => crate::error::RestoreTableFromBackupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::restore_table_from_backup_output::Builder::default(); - builder = crate::json_deser::restore_table_from_backup_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3301,7 +1470,11 @@ impl smithy_http::response::ParseStrictResponse for RestoreTableFromBackup { crate::error::RestoreTableFromBackupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_restore_table_from_backup_error(response) + } else { + crate::operation_deser::parse_restore_table_from_backup_response(response) + } } } @@ -3369,72 +1542,6 @@ impl RestoreTableToPointInTime { pub fn builder() -> crate::input::restore_table_to_point_in_time_input::Builder { crate::input::restore_table_to_point_in_time_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RestoreTableToPointInTimeOutput, - crate::error::RestoreTableToPointInTimeError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RestoreTableToPointInTimeError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "InvalidRestoreTimeException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "PointInTimeRecoveryUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "TableAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::TableAlreadyExistsError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "TableInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::TableInUseError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreTableToPointInTimeError { kind: crate::error::RestoreTableToPointInTimeErrorKind::TableNotFoundError(body), meta: generic }, - Err(e) => crate::error::RestoreTableToPointInTimeError::unhandled(e) - } - _ => crate::error::RestoreTableToPointInTimeError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::restore_table_to_point_in_time_output::Builder::default(); - builder = crate::json_deser::restore_table_to_point_in_time_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3445,7 +1552,11 @@ impl smithy_http::response::ParseStrictResponse for RestoreTableToPointInTime { crate::error::RestoreTableToPointInTimeError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_restore_table_to_point_in_time_error(response) + } else { + crate::operation_deser::parse_restore_table_to_point_in_time_response(response) + } } } @@ -3483,65 +1594,6 @@ impl Scan { pub fn builder() -> crate::input::scan_input::Builder { crate::input::scan_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ScanError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScanError { - kind: crate::error::ScanErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ScanError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScanError { - kind: crate::error::ScanErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::ScanError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScanError { - kind: crate::error::ScanErrorKind::ProvisionedThroughputExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ScanError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScanError { - kind: crate::error::ScanErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::ScanError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScanError { - kind: crate::error::ScanErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ScanError::unhandled(e), - }, - _ => crate::error::ScanError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::scan_output::Builder::default(); - builder = crate::json_deser::scan_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ScanError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3549,7 +1601,11 @@ impl Scan { impl smithy_http::response::ParseStrictResponse for Scan { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_scan_error(response) + } else { + crate::operation_deser::parse_scan_response(response) + } } } @@ -3569,63 +1625,6 @@ impl TagResource { pub fn builder() -> crate::input::tag_resource_input::Builder { crate::input::tag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - _ => crate::error::TagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::tag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3634,7 +1633,11 @@ impl smithy_http::response::ParseStrictResponse for TagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } } } @@ -3673,60 +1676,6 @@ impl TransactGetItems { pub fn builder() -> crate::input::transact_get_items_input::Builder { crate::input::transact_get_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::TransactGetItemsOutput, - crate::error::TransactGetItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TransactGetItemsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::RequestLimitExceeded(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - "TransactionCanceledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactGetItemsError { kind: crate::error::TransactGetItemsErrorKind::TransactionCanceledError(body), meta: generic }, - Err(e) => crate::error::TransactGetItemsError::unhandled(e) - } - _ => crate::error::TransactGetItemsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::transact_get_items_output::Builder::default(); - builder = crate::json_deser::transact_get_items_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::TransactGetItemsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3737,7 +1686,11 @@ impl smithy_http::response::ParseStrictResponse for TransactGetItems { crate::error::TransactGetItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_transact_get_items_error(response) + } else { + crate::operation_deser::parse_transact_get_items_response(response) + } } } @@ -3821,68 +1774,6 @@ impl TransactWriteItems { pub fn builder() -> crate::input::transact_write_items_input::Builder { crate::input::transact_write_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::TransactWriteItemsOutput, - crate::error::TransactWriteItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TransactWriteItemsError::unhandled(generic)), - }; - return Err(match error_code { - "IdempotentParameterMismatchException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::IdempotentParameterMismatchError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::RequestLimitExceeded(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "TransactionCanceledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::TransactionCanceledError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - "TransactionInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TransactWriteItemsError { kind: crate::error::TransactWriteItemsErrorKind::TransactionInProgressError(body), meta: generic }, - Err(e) => crate::error::TransactWriteItemsError::unhandled(e) - } - _ => crate::error::TransactWriteItemsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::transact_write_items_output::Builder::default(); - builder = crate::json_deser::transact_write_items_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::TransactWriteItemsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3893,7 +1784,11 @@ impl smithy_http::response::ParseStrictResponse for TransactWriteItems { crate::error::TransactWriteItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_transact_write_items_error(response) + } else { + crate::operation_deser::parse_transact_write_items_response(response) + } } } @@ -3911,64 +1806,6 @@ impl UntagResource { pub fn builder() -> crate::input::untag_resource_input::Builder { crate::input::untag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UntagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - _ => crate::error::UntagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::untag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3977,7 +1814,11 @@ impl smithy_http::response::ParseStrictResponse for UntagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } } } @@ -4002,56 +1843,6 @@ impl UpdateContinuousBackups { pub fn builder() -> crate::input::update_continuous_backups_input::Builder { crate::input::update_continuous_backups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateContinuousBackupsOutput, - crate::error::UpdateContinuousBackupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateContinuousBackupsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ContinuousBackupsUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContinuousBackupsError { kind: crate::error::UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableError(body), meta: generic }, - Err(e) => crate::error::UpdateContinuousBackupsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContinuousBackupsError { kind: crate::error::UpdateContinuousBackupsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateContinuousBackupsError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContinuousBackupsError { kind: crate::error::UpdateContinuousBackupsErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::UpdateContinuousBackupsError::unhandled(e) - } - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContinuousBackupsError { kind: crate::error::UpdateContinuousBackupsErrorKind::TableNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateContinuousBackupsError::unhandled(e) - } - _ => crate::error::UpdateContinuousBackupsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_continuous_backups_output::Builder::default(); - builder = crate::json_deser::update_continuous_backups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4062,7 +1853,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateContinuousBackups { crate::error::UpdateContinuousBackupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_continuous_backups_error(response) + } else { + crate::operation_deser::parse_update_continuous_backups_response(response) + } } } @@ -4076,59 +1871,6 @@ impl UpdateContributorInsights { pub fn builder() -> crate::input::update_contributor_insights_input::Builder { crate::input::update_contributor_insights_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateContributorInsightsOutput, - crate::error::UpdateContributorInsightsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateContributorInsightsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContributorInsightsError { - kind: crate::error::UpdateContributorInsightsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContributorInsightsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContributorInsightsError { - kind: - crate::error::UpdateContributorInsightsErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContributorInsightsError::unhandled(e), - }, - _ => crate::error::UpdateContributorInsightsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_contributor_insights_output::Builder::default(); - builder = crate::json_deser::update_contributor_insights_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateContributorInsightsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4139,7 +1881,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateContributorInsights { crate::error::UpdateContributorInsightsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_contributor_insights_error(response) + } else { + crate::operation_deser::parse_update_contributor_insights_response(response) + } } } @@ -4181,82 +1927,6 @@ impl UpdateGlobalTable { pub fn builder() -> crate::input::update_global_table_input::Builder { crate::input::update_global_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateGlobalTableOutput, - crate::error::UpdateGlobalTableError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateGlobalTableError::unhandled(generic)), - }; - return Err(match error_code { - "GlobalTableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::GlobalTableNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - "ReplicaAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::ReplicaAlreadyExistsError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - "ReplicaNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::ReplicaNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - "TableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableError { - kind: crate::error::UpdateGlobalTableErrorKind::TableNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateGlobalTableError::unhandled(e), - }, - _ => crate::error::UpdateGlobalTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_global_table_output::Builder::default(); - builder = crate::json_deser::update_global_table_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateGlobalTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4267,7 +1937,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateGlobalTable { crate::error::UpdateGlobalTableError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_global_table_error(response) + } else { + crate::operation_deser::parse_update_global_table_response(response) + } } } @@ -4281,68 +1955,6 @@ impl UpdateGlobalTableSettings { pub fn builder() -> crate::input::update_global_table_settings_input::Builder { crate::input::update_global_table_settings_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateGlobalTableSettingsOutput, - crate::error::UpdateGlobalTableSettingsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateGlobalTableSettingsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "GlobalTableNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "IndexNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::IndexNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::InvalidEndpointError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "ReplicaNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateGlobalTableSettingsError { kind: crate::error::UpdateGlobalTableSettingsErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::UpdateGlobalTableSettingsError::unhandled(e) - } - _ => crate::error::UpdateGlobalTableSettingsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_global_table_settings_output::Builder::default(); - builder = crate::json_deser::update_global_table_settings_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4353,7 +1965,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateGlobalTableSettings { crate::error::UpdateGlobalTableSettingsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_global_table_settings_error(response) + } else { + crate::operation_deser::parse_update_global_table_settings_response(response) + } } } @@ -4369,91 +1985,6 @@ impl UpdateItem { pub fn builder() -> crate::input::update_item_input::Builder { crate::input::update_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateItemError::unhandled(generic)), - }; - return Err(match error_code { - "ConditionalCheckFailedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::ConditionalCheckFailedError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "ItemCollectionSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: - crate::error::UpdateItemErrorKind::ItemCollectionSizeLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "RequestLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::RequestLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - "TransactionConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateItemError { - kind: crate::error::UpdateItemErrorKind::TransactionConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateItemError::unhandled(e), - }, - _ => crate::error::UpdateItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_item_output::Builder::default(); - builder = crate::json_deser::update_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4462,7 +1993,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_item_error(response) + } else { + crate::operation_deser::parse_update_item_response(response) + } } } @@ -4498,66 +2033,6 @@ impl UpdateTable { pub fn builder() -> crate::input::update_table_input::Builder { crate::input::update_table_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTableError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableError { - kind: crate::error::UpdateTableErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTableError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableError { - kind: crate::error::UpdateTableErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTableError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableError { - kind: crate::error::UpdateTableErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTableError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableError { - kind: crate::error::UpdateTableErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTableError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableError { - kind: crate::error::UpdateTableErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTableError::unhandled(e), - }, - _ => crate::error::UpdateTableError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_table_output::Builder::default(); - builder = - crate::json_deser::update_table_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateTableError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4566,7 +2041,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateTable { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_table_error(response) + } else { + crate::operation_deser::parse_update_table_response(response) + } } } @@ -4583,57 +2062,6 @@ impl UpdateTableReplicaAutoScaling { pub fn builder() -> crate::input::update_table_replica_auto_scaling_input::Builder { crate::input::update_table_replica_auto_scaling_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateTableReplicaAutoScalingOutput, - crate::error::UpdateTableReplicaAutoScalingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateTableReplicaAutoScalingError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableReplicaAutoScalingError { kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateTableReplicaAutoScalingError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableReplicaAutoScalingError { kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::UpdateTableReplicaAutoScalingError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableReplicaAutoScalingError { kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::UpdateTableReplicaAutoScalingError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTableReplicaAutoScalingError { kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateTableReplicaAutoScalingError::unhandled(e) - } - _ => crate::error::UpdateTableReplicaAutoScalingError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::update_table_replica_auto_scaling_output::Builder::default(); - builder = crate::json_deser::update_table_replica_auto_scaling_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4644,7 +2072,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateTableReplicaAutoScalin crate::error::UpdateTableReplicaAutoScalingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_table_replica_auto_scaling_error(response) + } else { + crate::operation_deser::parse_update_table_replica_auto_scaling_response(response) + } } } @@ -4682,71 +2114,6 @@ impl UpdateTimeToLive { pub fn builder() -> crate::input::update_time_to_live_input::Builder { crate::input::update_time_to_live_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateTimeToLiveOutput, - crate::error::UpdateTimeToLiveError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTimeToLiveError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTimeToLiveError { - kind: crate::error::UpdateTimeToLiveErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTimeToLiveError::unhandled(e), - }, - "InvalidEndpointException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTimeToLiveError { - kind: crate::error::UpdateTimeToLiveErrorKind::InvalidEndpointError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTimeToLiveError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTimeToLiveError { - kind: crate::error::UpdateTimeToLiveErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTimeToLiveError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTimeToLiveError { - kind: crate::error::UpdateTimeToLiveErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTimeToLiveError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTimeToLiveError { - kind: crate::error::UpdateTimeToLiveErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTimeToLiveError::unhandled(e), - }, - _ => crate::error::UpdateTimeToLiveError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_time_to_live_output::Builder::default(); - builder = crate::json_deser::update_time_to_live_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4757,6 +2124,10 @@ impl smithy_http::response::ParseStrictResponse for UpdateTimeToLive { crate::error::UpdateTimeToLiveError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_time_to_live_error(response) + } else { + crate::operation_deser::parse_update_time_to_live_response(response) + } } } diff --git a/sdk/dynamodb/src/operation_deser.rs b/sdk/dynamodb/src/operation_deser.rs new file mode 100644 index 000000000000..0b1eb420aa04 --- /dev/null +++ b/sdk/dynamodb/src/operation_deser.rs @@ -0,0 +1,4652 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_execute_statement_error( + response: &http::Response, +) -> std::result::Result< + crate::output::BatchExecuteStatementOutput, + crate::error::BatchExecuteStatementError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::BatchExecuteStatementError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::BatchExecuteStatementError { + meta: generic, + kind: crate::error::BatchExecuteStatementErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::BatchExecuteStatementError { + meta: generic, + kind: crate::error::BatchExecuteStatementErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchExecuteStatementError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_execute_statement_response( + response: &http::Response, +) -> std::result::Result< + crate::output::BatchExecuteStatementOutput, + crate::error::BatchExecuteStatementError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_execute_statement_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_batch_execute_statement( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_get_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchGetItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::BatchGetItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::BatchGetItemError { + meta: generic, + kind: crate::error::BatchGetItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::BatchGetItemError { + meta: generic, + kind: crate::error::BatchGetItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::BatchGetItemError { + meta: generic, + kind: crate::error::BatchGetItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::BatchGetItemError { + meta: generic, + kind: crate::error::BatchGetItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::BatchGetItemError { + meta: generic, + kind: crate::error::BatchGetItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchGetItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_get_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_get_item_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_batch_get_item(response.body().as_ref(), output) + .map_err(crate::error::BatchGetItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_write_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::BatchWriteItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }), + }, + "ItemCollectionSizeLimitExceededException" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::ItemCollectionSizeLimitExceededException( + { + #[allow(unused_mut)]let mut output = crate::error::item_collection_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_collection_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }, + ), + }, + "ProvisionedThroughputExceededException" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::BatchWriteItemError { + meta: generic, + kind: crate::error::BatchWriteItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchWriteItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_write_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_write_item_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_batch_write_item(response.body().as_ref(), output) + .map_err(crate::error::BatchWriteItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_backup_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateBackupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateBackupError::unhandled(generic)), + }; + Err(match error_code { + "BackupInUseException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::BackupInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "ContinuousBackupsUnavailableException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::ContinuousBackupsUnavailableException({ + #[allow(unused_mut)] + let mut output = + crate::error::continuous_backups_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_continuous_backups_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "TableInUseException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::TableInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::table_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + "TableNotFoundException" => crate::error::CreateBackupError { + meta: generic, + kind: crate::error::CreateBackupErrorKind::TableNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateBackupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_backup_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_backup_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_backup(response.body().as_ref(), output) + .map_err(crate::error::CreateBackupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_global_table_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateGlobalTableError::unhandled(generic)), + }; + Err(match error_code { + "GlobalTableAlreadyExistsException" => crate::error::CreateGlobalTableError { + meta: generic, + kind: crate::error::CreateGlobalTableErrorKind::GlobalTableAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::global_table_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_global_table_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateGlobalTableError { + meta: generic, + kind: crate::error::CreateGlobalTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::CreateGlobalTableError { + meta: generic, + kind: crate::error::CreateGlobalTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateGlobalTableError { + meta: generic, + kind: crate::error::CreateGlobalTableErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }), + }, + "TableNotFoundException" => crate::error::CreateGlobalTableError { + meta: generic, + kind: crate::error::CreateGlobalTableErrorKind::TableNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateGlobalTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_global_table_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_global_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_global_table( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGlobalTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_table_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTableError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::CreateTableError { + meta: generic, + kind: crate::error::CreateTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::CreateTableError { + meta: generic, + kind: crate::error::CreateTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTableError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateTableError { + meta: generic, + kind: crate::error::CreateTableErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTableError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::CreateTableError { + meta: generic, + kind: crate::error::CreateTableErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_table_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_table(response.body().as_ref(), output) + .map_err(crate::error::CreateTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_backup_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteBackupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteBackupError::unhandled(generic)), + }; + Err(match error_code { + "BackupInUseException" => crate::error::DeleteBackupError { + meta: generic, + kind: crate::error::DeleteBackupErrorKind::BackupInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }), + }, + "BackupNotFoundException" => crate::error::DeleteBackupError { + meta: generic, + kind: crate::error::DeleteBackupErrorKind::BackupNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DeleteBackupError { + meta: generic, + kind: crate::error::DeleteBackupErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DeleteBackupError { + meta: generic, + kind: crate::error::DeleteBackupErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DeleteBackupError { + meta: generic, + kind: crate::error::DeleteBackupErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteBackupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_backup_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_backup_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_backup(response.body().as_ref(), output) + .map_err(crate::error::DeleteBackupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteItemError::unhandled(generic)), + }; + Err(match error_code { + "ConditionalCheckFailedException" => { + crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::ConditionalCheckFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::conditional_check_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conditional_check_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "ItemCollectionSizeLimitExceededException" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::ItemCollectionSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::item_collection_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_collection_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + "TransactionConflictException" => crate::error::DeleteItemError { + meta: generic, + kind: crate::error::DeleteItemErrorKind::TransactionConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_item(response.body().as_ref(), output) + .map_err(crate::error::DeleteItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_table_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteTableError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteTableError { + meta: generic, + kind: crate::error::DeleteTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DeleteTableError { + meta: generic, + kind: crate::error::DeleteTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DeleteTableError { + meta: generic, + kind: crate::error::DeleteTableErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DeleteTableError { + meta: generic, + kind: crate::error::DeleteTableErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteTableError { + meta: generic, + kind: crate::error::DeleteTableErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_table_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_table(response.body().as_ref(), output) + .map_err(crate::error::DeleteTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_backup_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeBackupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeBackupError::unhandled(generic)), + }; + Err(match error_code { + "BackupNotFoundException" => crate::error::DescribeBackupError { + meta: generic, + kind: crate::error::DescribeBackupErrorKind::BackupNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeBackupError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeBackupError { + meta: generic, + kind: crate::error::DescribeBackupErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeBackupError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeBackupError { + meta: generic, + kind: crate::error::DescribeBackupErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeBackupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeBackupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_backup_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_backup_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_backup(response.body().as_ref(), output) + .map_err(crate::error::DescribeBackupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_continuous_backups_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContinuousBackupsOutput, + crate::error::DescribeContinuousBackupsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeContinuousBackupsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeContinuousBackupsError { + meta: generic, + kind: crate::error::DescribeContinuousBackupsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeContinuousBackupsError { + meta: generic, + kind: crate::error::DescribeContinuousBackupsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; + output.build() + }), + }, + "TableNotFoundException" => crate::error::DescribeContinuousBackupsError { + meta: generic, + kind: crate::error::DescribeContinuousBackupsErrorKind::TableNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeContinuousBackupsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_continuous_backups_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContinuousBackupsOutput, + crate::error::DescribeContinuousBackupsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_continuous_backups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_continuous_backups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContinuousBackupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_contributor_insights_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContributorInsightsOutput, + crate::error::DescribeContributorInsightsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeContributorInsightsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeContributorInsightsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeContributorInsightsError { + meta: generic, + kind: crate::error::DescribeContributorInsightsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContributorInsightsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeContributorInsightsError { + meta: generic, + kind: crate::error::DescribeContributorInsightsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContributorInsightsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeContributorInsightsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_contributor_insights_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContributorInsightsOutput, + crate::error::DescribeContributorInsightsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_contributor_insights_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_contributor_insights( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContributorInsightsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoints_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEndpointsError::unhandled)?; + Err(crate::error::DescribeEndpointsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoints_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_endpoints_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_endpoints(response.body().as_ref(), output) + .map_err(crate::error::DescribeEndpointsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_export_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeExportError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeExportError::unhandled(generic)), + }; + Err(match error_code { + "ExportNotFoundException" => crate::error::DescribeExportError { + meta: generic, + kind: crate::error::DescribeExportErrorKind::ExportNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::export_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_export_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeExportError { + meta: generic, + kind: crate::error::DescribeExportErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DescribeExportError { + meta: generic, + kind: crate::error::DescribeExportErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExportError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeExportError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_export_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_export_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_export(response.body().as_ref(), output) + .map_err(crate::error::DescribeExportError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_global_table_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeGlobalTableOutput, + crate::error::DescribeGlobalTableError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeGlobalTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeGlobalTableError::unhandled(generic)), + }; + Err(match error_code { + "GlobalTableNotFoundException" => { + crate::error::DescribeGlobalTableError { + meta: generic, + kind: crate::error::DescribeGlobalTableErrorKind::GlobalTableNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::global_table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_global_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeGlobalTableError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::DescribeGlobalTableError { + meta: generic, + kind: crate::error::DescribeGlobalTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeGlobalTableError { + meta: generic, + kind: crate::error::DescribeGlobalTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeGlobalTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_global_table_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeGlobalTableOutput, + crate::error::DescribeGlobalTableError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_global_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_global_table( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_global_table_settings_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeGlobalTableSettingsOutput, + crate::error::DescribeGlobalTableSettingsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeGlobalTableSettingsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "GlobalTableNotFoundException" => crate::error::DescribeGlobalTableSettingsError { + meta: generic, + kind: crate::error::DescribeGlobalTableSettingsErrorKind::GlobalTableNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::global_table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_global_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::DescribeGlobalTableSettingsError { + meta: generic, + kind: crate::error::DescribeGlobalTableSettingsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeGlobalTableSettingsError { + meta: generic, + kind: crate::error::DescribeGlobalTableSettingsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeGlobalTableSettingsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_global_table_settings_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeGlobalTableSettingsOutput, + crate::error::DescribeGlobalTableSettingsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_global_table_settings_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_global_table_settings( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeGlobalTableSettingsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_kinesis_streaming_destination_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeKinesisStreamingDestinationOutput, + crate::error::DescribeKinesisStreamingDestinationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeKinesisStreamingDestinationError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeKinesisStreamingDestinationError { meta: generic, kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; + output.build() + })}, + "InvalidEndpointException" => crate::error::DescribeKinesisStreamingDestinationError { meta: generic, kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::InvalidEndpointException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::DescribeKinesisStreamingDestinationError { meta: generic, kind: crate::error::DescribeKinesisStreamingDestinationErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeKinesisStreamingDestinationError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_kinesis_streaming_destination_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeKinesisStreamingDestinationOutput, + crate::error::DescribeKinesisStreamingDestinationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_kinesis_streaming_destination_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_kinesis_streaming_destination( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeKinesisStreamingDestinationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_limits_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeLimitsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeLimitsError { + meta: generic, + kind: crate::error::DescribeLimitsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeLimitsError { + meta: generic, + kind: crate::error::DescribeLimitsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeLimitsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_limits_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_limits_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_limits(response.body().as_ref(), output) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_table_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTableError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeTableError { + meta: generic, + kind: crate::error::DescribeTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeTableError { + meta: generic, + kind: crate::error::DescribeTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeTableError { + meta: generic, + kind: crate::error::DescribeTableErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_table_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_table_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_table(response.body().as_ref(), output) + .map_err(crate::error::DescribeTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_table_replica_auto_scaling_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTableReplicaAutoScalingOutput, + crate::error::DescribeTableReplicaAutoScalingError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTableReplicaAutoScalingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTableReplicaAutoScalingError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeTableReplicaAutoScalingError { + meta: generic, + kind: crate::error::DescribeTableReplicaAutoScalingErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableReplicaAutoScalingError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeTableReplicaAutoScalingError { + meta: generic, + kind: crate::error::DescribeTableReplicaAutoScalingErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableReplicaAutoScalingError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::DescribeTableReplicaAutoScalingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_table_replica_auto_scaling_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTableReplicaAutoScalingOutput, + crate::error::DescribeTableReplicaAutoScalingError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_table_replica_auto_scaling_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_table_replica_auto_scaling( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTableReplicaAutoScalingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_time_to_live_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTimeToLiveOutput, + crate::error::DescribeTimeToLiveError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTimeToLiveError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeTimeToLiveError { + meta: generic, + kind: crate::error::DescribeTimeToLiveErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DescribeTimeToLiveError { + meta: generic, + kind: crate::error::DescribeTimeToLiveErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeTimeToLiveError { + meta: generic, + kind: crate::error::DescribeTimeToLiveErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTimeToLiveError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_time_to_live_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTimeToLiveOutput, + crate::error::DescribeTimeToLiveError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_time_to_live_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_time_to_live( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTimeToLiveError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_kinesis_streaming_destination_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableKinesisStreamingDestinationOutput, + crate::error::DisableKinesisStreamingDestinationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DisableKinesisStreamingDestinationError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DisableKinesisStreamingDestinationError { + meta: generic, + kind: crate::error::DisableKinesisStreamingDestinationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::DisableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::DisableKinesisStreamingDestinationErrorKind::InvalidEndpointException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DisableKinesisStreamingDestinationError::unhandled, + )?; + output.build() + }, + ), + }, + "LimitExceededException" => crate::error::DisableKinesisStreamingDestinationError { + meta: generic, + kind: crate::error::DisableKinesisStreamingDestinationErrorKind::LimitExceededException( + { + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + }, + "ResourceInUseException" => crate::error::DisableKinesisStreamingDestinationError { + meta: generic, + kind: crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceInUseException( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + }, + "ResourceNotFoundException" => crate::error::DisableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::DisableKinesisStreamingDestinationErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::DisableKinesisStreamingDestinationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_kinesis_streaming_destination_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableKinesisStreamingDestinationOutput, + crate::error::DisableKinesisStreamingDestinationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::disable_kinesis_streaming_destination_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_disable_kinesis_streaming_destination( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKinesisStreamingDestinationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_kinesis_streaming_destination_error( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableKinesisStreamingDestinationOutput, + crate::error::EnableKinesisStreamingDestinationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::EnableKinesisStreamingDestinationError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::EnableKinesisStreamingDestinationError { + meta: generic, + kind: crate::error::EnableKinesisStreamingDestinationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::EnableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::EnableKinesisStreamingDestinationErrorKind::InvalidEndpointException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::EnableKinesisStreamingDestinationError::unhandled, + )?; + output.build() + }, + ), + }, + "LimitExceededException" => { + crate::error::EnableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::EnableKinesisStreamingDestinationErrorKind::LimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceInUseException" => { + crate::error::EnableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceInUseException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::EnableKinesisStreamingDestinationError { + meta: generic, + kind: + crate::error::EnableKinesisStreamingDestinationErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::EnableKinesisStreamingDestinationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_kinesis_streaming_destination_response( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableKinesisStreamingDestinationOutput, + crate::error::EnableKinesisStreamingDestinationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::enable_kinesis_streaming_destination_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_enable_kinesis_streaming_destination( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKinesisStreamingDestinationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_statement_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ExecuteStatementError::unhandled(generic)), + }; + Err(match error_code { + "ConditionalCheckFailedException" => { + crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::ConditionalCheckFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::conditional_check_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conditional_check_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + } + } + "DuplicateItemException" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::DuplicateItemException({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_item_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_duplicate_item_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + }, + "ItemCollectionSizeLimitExceededException" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::ItemCollectionSizeLimitExceededException( + { + #[allow(unused_mut)]let mut output = crate::error::item_collection_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_collection_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }, + ), + }, + "ProvisionedThroughputExceededException" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::ProvisionedThroughputExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }, + ), + }, + "RequestLimitExceeded" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + }, + "TransactionConflictException" => crate::error::ExecuteStatementError { + meta: generic, + kind: crate::error::ExecuteStatementErrorKind::TransactionConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ExecuteStatementError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_statement_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::execute_statement_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_execute_statement(response.body().as_ref(), output) + .map_err(crate::error::ExecuteStatementError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_transaction_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ExecuteTransactionOutput, + crate::error::ExecuteTransactionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ExecuteTransactionError::unhandled(generic)), + }; + Err(match error_code { + "IdempotentParameterMismatchException" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::IdempotentParameterMismatchException( + { + #[allow(unused_mut)] + let mut output = + crate::error::idempotent_parameter_mismatch_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatch_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::ProvisionedThroughputExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }, + ), + }, + "RequestLimitExceeded" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }), + }, + "TransactionCanceledException" => crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::TransactionCanceledException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_canceled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_canceled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }), + }, + "TransactionInProgressException" => { + crate::error::ExecuteTransactionError { + meta: generic, + kind: crate::error::ExecuteTransactionErrorKind::TransactionInProgressException({ + #[allow(unused_mut)] + let mut output = + crate::error::transaction_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_in_progress_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::ExecuteTransactionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_transaction_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ExecuteTransactionOutput, + crate::error::ExecuteTransactionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::execute_transaction_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_execute_transaction( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteTransactionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_export_table_to_point_in_time_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ExportTableToPointInTimeOutput, + crate::error::ExportTableToPointInTimeError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ExportTableToPointInTimeError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ExportConflictException" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::ExportConflictException({ + #[allow(unused_mut)]let mut output = crate::error::export_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_export_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + "InvalidExportTimeException" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::InvalidExportTimeException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_export_time_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_export_time_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + "LimitExceededException" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + "PointInTimeRecoveryUnavailableException" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException({ + #[allow(unused_mut)]let mut output = crate::error::point_in_time_recovery_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_point_in_time_recovery_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + "TableNotFoundException" => crate::error::ExportTableToPointInTimeError { meta: generic, kind: crate::error::ExportTableToPointInTimeErrorKind::TableNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + })}, + _ => crate::error::ExportTableToPointInTimeError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_export_table_to_point_in_time_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ExportTableToPointInTimeOutput, + crate::error::ExportTableToPointInTimeError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::export_table_to_point_in_time_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_export_table_to_point_in_time( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExportTableToPointInTimeError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetItemError { + meta: generic, + kind: crate::error::GetItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::GetItemError { + meta: generic, + kind: crate::error::GetItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetItemError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::GetItemError { + meta: generic, + kind: crate::error::GetItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::GetItemError { + meta: generic, + kind: crate::error::GetItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetItemError { + meta: generic, + kind: crate::error::GetItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_item(response.body().as_ref(), output) + .map_err(crate::error::GetItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_backups_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListBackupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListBackupsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListBackupsError { + meta: generic, + kind: crate::error::ListBackupsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListBackupsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::ListBackupsError { + meta: generic, + kind: crate::error::ListBackupsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListBackupsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListBackupsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_backups_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_backups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_backups(response.body().as_ref(), output) + .map_err(crate::error::ListBackupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_contributor_insights_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListContributorInsightsOutput, + crate::error::ListContributorInsightsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListContributorInsightsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListContributorInsightsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::ListContributorInsightsError { + meta: generic, + kind: crate::error::ListContributorInsightsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContributorInsightsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListContributorInsightsError { + meta: generic, + kind: crate::error::ListContributorInsightsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContributorInsightsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListContributorInsightsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_contributor_insights_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListContributorInsightsOutput, + crate::error::ListContributorInsightsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_contributor_insights_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_contributor_insights( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContributorInsightsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_exports_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListExportsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListExportsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListExportsError { + meta: generic, + kind: crate::error::ListExportsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListExportsError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::ListExportsError { + meta: generic, + kind: crate::error::ListExportsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListExportsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListExportsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_exports_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_exports_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_exports(response.body().as_ref(), output) + .map_err(crate::error::ListExportsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_global_tables_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListGlobalTablesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListGlobalTablesError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListGlobalTablesError { + meta: generic, + kind: crate::error::ListGlobalTablesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGlobalTablesError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::ListGlobalTablesError { + meta: generic, + kind: crate::error::ListGlobalTablesErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGlobalTablesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListGlobalTablesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_global_tables_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_global_tables_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_global_tables(response.body().as_ref(), output) + .map_err(crate::error::ListGlobalTablesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tables_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTablesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTablesError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListTablesError { + meta: generic, + kind: crate::error::ListTablesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTablesError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::ListTablesError { + meta: generic, + kind: crate::error::ListTablesErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTablesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTablesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tables_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tables_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tables(response.body().as_ref(), output) + .map_err(crate::error::ListTablesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_of_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsOfResourceOutput, + crate::error::ListTagsOfResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsOfResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsOfResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListTagsOfResourceError { + meta: generic, + kind: crate::error::ListTagsOfResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsOfResourceError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::ListTagsOfResourceError { + meta: generic, + kind: crate::error::ListTagsOfResourceErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsOfResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListTagsOfResourceError { + meta: generic, + kind: crate::error::ListTagsOfResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsOfResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsOfResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_of_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsOfResourceOutput, + crate::error::ListTagsOfResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_of_resource_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_of_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsOfResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutItemError::unhandled(generic)), + }; + Err(match error_code { + "ConditionalCheckFailedException" => { + crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::ConditionalCheckFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::conditional_check_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conditional_check_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + "ItemCollectionSizeLimitExceededException" => { + crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::ItemCollectionSizeLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::item_collection_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_collection_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + } + } + "ProvisionedThroughputExceededException" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + "TransactionConflictException" => crate::error::PutItemError { + meta: generic, + kind: crate::error::PutItemErrorKind::TransactionConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_item(response.body().as_ref(), output) + .map_err(crate::error::PutItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_query_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::QueryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::QueryError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::QueryError { + meta: generic, + kind: crate::error::QueryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::QueryError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::QueryError { + meta: generic, + kind: crate::error::QueryErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::QueryError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::QueryError { + meta: generic, + kind: crate::error::QueryErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::QueryError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::QueryError { + meta: generic, + kind: crate::error::QueryErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::QueryError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::QueryError { + meta: generic, + kind: crate::error::QueryErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::QueryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::QueryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_query_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::query_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_query(response.body().as_ref(), output) + .map_err(crate::error::QueryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_table_from_backup_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RestoreTableFromBackupOutput, + crate::error::RestoreTableFromBackupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RestoreTableFromBackupError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "BackupInUseException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::BackupInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "BackupNotFoundException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::BackupNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::backup_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_backup_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "TableAlreadyExistsException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::TableAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::table_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + "TableInUseException" => crate::error::RestoreTableFromBackupError { + meta: generic, + kind: crate::error::RestoreTableFromBackupErrorKind::TableInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::table_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RestoreTableFromBackupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_table_from_backup_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RestoreTableFromBackupOutput, + crate::error::RestoreTableFromBackupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::restore_table_from_backup_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_restore_table_from_backup( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableFromBackupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_table_to_point_in_time_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RestoreTableToPointInTimeOutput, + crate::error::RestoreTableToPointInTimeError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RestoreTableToPointInTimeError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "InvalidEndpointException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::InvalidEndpointException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "InvalidRestoreTimeException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::InvalidRestoreTimeException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_restore_time_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_restore_time_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "LimitExceededException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "PointInTimeRecoveryUnavailableException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::PointInTimeRecoveryUnavailableException({ + #[allow(unused_mut)]let mut output = crate::error::point_in_time_recovery_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_point_in_time_recovery_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "TableAlreadyExistsException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::TableAlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::table_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "TableInUseException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::TableInUseException({ + #[allow(unused_mut)]let mut output = crate::error::table_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_in_use_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + "TableNotFoundException" => crate::error::RestoreTableToPointInTimeError { meta: generic, kind: crate::error::RestoreTableToPointInTimeErrorKind::TableNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + })}, + _ => crate::error::RestoreTableToPointInTimeError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_table_to_point_in_time_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RestoreTableToPointInTimeOutput, + crate::error::RestoreTableToPointInTimeError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::restore_table_to_point_in_time_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_restore_table_to_point_in_time( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreTableToPointInTimeError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_scan_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ScanError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ScanError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ScanError { + meta: generic, + kind: crate::error::ScanErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScanError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::ScanError { + meta: generic, + kind: crate::error::ScanErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScanError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::ScanError { + meta: generic, + kind: crate::error::ScanErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ScanError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::ScanError { + meta: generic, + kind: crate::error::ScanErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScanError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ScanError { + meta: generic, + kind: crate::error::ScanErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScanError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ScanError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_scan_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::scan_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_scan(response.body().as_ref(), output) + .map_err(crate::error::ScanError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_transact_get_items_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TransactGetItemsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::ProvisionedThroughputExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }, + ), + }, + "RequestLimitExceeded" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }), + }, + "TransactionCanceledException" => crate::error::TransactGetItemsError { + meta: generic, + kind: crate::error::TransactGetItemsErrorKind::TransactionCanceledException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_canceled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_canceled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TransactGetItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_transact_get_items_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::transact_get_items_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_transact_get_items(response.body().as_ref(), output) + .map_err(crate::error::TransactGetItemsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_transact_write_items_error( + response: &http::Response, +) -> std::result::Result< + crate::output::TransactWriteItemsOutput, + crate::error::TransactWriteItemsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TransactWriteItemsError::unhandled(generic)), + }; + Err(match error_code { + "IdempotentParameterMismatchException" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::IdempotentParameterMismatchException( + { + #[allow(unused_mut)] + let mut output = + crate::error::idempotent_parameter_mismatch_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatch_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::ProvisionedThroughputExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }, + ), + }, + "RequestLimitExceeded" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + }, + "TransactionCanceledException" => crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::TransactionCanceledException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_canceled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_canceled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + }, + "TransactionInProgressException" => { + crate::error::TransactWriteItemsError { + meta: generic, + kind: crate::error::TransactWriteItemsErrorKind::TransactionInProgressException({ + #[allow(unused_mut)] + let mut output = + crate::error::transaction_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_in_progress_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::TransactWriteItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_transact_write_items_response( + response: &http::Response, +) -> std::result::Result< + crate::output::TransactWriteItemsOutput, + crate::error::TransactWriteItemsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::transact_write_items_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_transact_write_items( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransactWriteItemsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_continuous_backups_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContinuousBackupsOutput, + crate::error::UpdateContinuousBackupsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateContinuousBackupsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ContinuousBackupsUnavailableException" => crate::error::UpdateContinuousBackupsError { meta: generic, kind: crate::error::UpdateContinuousBackupsErrorKind::ContinuousBackupsUnavailableException({ + #[allow(unused_mut)]let mut output = crate::error::continuous_backups_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_continuous_backups_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::UpdateContinuousBackupsError { meta: generic, kind: crate::error::UpdateContinuousBackupsErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + output.build() + })}, + "InvalidEndpointException" => crate::error::UpdateContinuousBackupsError { meta: generic, kind: crate::error::UpdateContinuousBackupsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + output.build() + })}, + "TableNotFoundException" => crate::error::UpdateContinuousBackupsError { meta: generic, kind: crate::error::UpdateContinuousBackupsErrorKind::TableNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateContinuousBackupsError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_continuous_backups_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContinuousBackupsOutput, + crate::error::UpdateContinuousBackupsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_continuous_backups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_continuous_backups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContinuousBackupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_contributor_insights_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContributorInsightsOutput, + crate::error::UpdateContributorInsightsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateContributorInsightsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateContributorInsightsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateContributorInsightsError { + meta: generic, + kind: crate::error::UpdateContributorInsightsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContributorInsightsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateContributorInsightsError { + meta: generic, + kind: crate::error::UpdateContributorInsightsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContributorInsightsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateContributorInsightsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_contributor_insights_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContributorInsightsOutput, + crate::error::UpdateContributorInsightsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_contributor_insights_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_contributor_insights( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContributorInsightsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_global_table_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateGlobalTableError::unhandled(generic)), + }; + Err(match error_code { + "GlobalTableNotFoundException" => { + crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::GlobalTableNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::global_table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_global_table_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + }, + "ReplicaAlreadyExistsException" => { + crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::ReplicaAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::replica_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_replica_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + } + } + "ReplicaNotFoundException" => crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::ReplicaNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::replica_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_replica_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + }, + "TableNotFoundException" => crate::error::UpdateGlobalTableError { + meta: generic, + kind: crate::error::UpdateGlobalTableErrorKind::TableNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::table_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_table_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateGlobalTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_global_table_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_global_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_global_table( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_global_table_settings_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateGlobalTableSettingsOutput, + crate::error::UpdateGlobalTableSettingsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateGlobalTableSettingsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "GlobalTableNotFoundException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::GlobalTableNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::global_table_not_found_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_global_table_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "IndexNotFoundException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::IndexNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::index_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_index_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "ReplicaNotFoundException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::ReplicaNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::replica_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_replica_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateGlobalTableSettingsError { + meta: generic, + kind: crate::error::UpdateGlobalTableSettingsErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateGlobalTableSettingsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_global_table_settings_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateGlobalTableSettingsOutput, + crate::error::UpdateGlobalTableSettingsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_global_table_settings_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_global_table_settings( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateGlobalTableSettingsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateItemError::unhandled(generic)), + }; + Err(match error_code { + "ConditionalCheckFailedException" => { + crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::ConditionalCheckFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::conditional_check_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conditional_check_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "ItemCollectionSizeLimitExceededException" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::ItemCollectionSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::item_collection_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_collection_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "RequestLimitExceeded" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::RequestLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::request_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_request_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + "TransactionConflictException" => crate::error::UpdateItemError { + meta: generic, + kind: crate::error::UpdateItemErrorKind::TransactionConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::transaction_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_transaction_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_item(response.body().as_ref(), output) + .map_err(crate::error::UpdateItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_table_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTableError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTableError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateTableError { + meta: generic, + kind: crate::error::UpdateTableErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UpdateTableError { + meta: generic, + kind: crate::error::UpdateTableErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateTableError { + meta: generic, + kind: crate::error::UpdateTableErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateTableError { + meta: generic, + kind: crate::error::UpdateTableErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateTableError { + meta: generic, + kind: crate::error::UpdateTableErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTableError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_table_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_table_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_table(response.body().as_ref(), output) + .map_err(crate::error::UpdateTableError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_table_replica_auto_scaling_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateTableReplicaAutoScalingOutput, + crate::error::UpdateTableReplicaAutoScalingError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateTableReplicaAutoScalingError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateTableReplicaAutoScalingError { + meta: generic, + kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateTableReplicaAutoScalingError { + meta: generic, + kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateTableReplicaAutoScalingError { + meta: generic, + kind: crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => { + crate::error::UpdateTableReplicaAutoScalingError { + meta: generic, + kind: + crate::error::UpdateTableReplicaAutoScalingErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::UpdateTableReplicaAutoScalingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_table_replica_auto_scaling_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateTableReplicaAutoScalingOutput, + crate::error::UpdateTableReplicaAutoScalingError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::update_table_replica_auto_scaling_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_table_replica_auto_scaling( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTableReplicaAutoScalingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_time_to_live_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTimeToLiveError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateTimeToLiveError { + meta: generic, + kind: crate::error::UpdateTimeToLiveErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }), + }, + "InvalidEndpointException" => crate::error::UpdateTimeToLiveError { + meta: generic, + kind: crate::error::UpdateTimeToLiveErrorKind::InvalidEndpointException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_endpoint_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_endpoint_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateTimeToLiveError { + meta: generic, + kind: crate::error::UpdateTimeToLiveErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateTimeToLiveError { + meta: generic, + kind: crate::error::UpdateTimeToLiveErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateTimeToLiveError { + meta: generic, + kind: crate::error::UpdateTimeToLiveErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTimeToLiveError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_time_to_live_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_time_to_live_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_time_to_live( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTimeToLiveError::unhandled)?; + output.build() + }) +} diff --git a/sdk/dynamodb/src/operation_ser.rs b/sdk/dynamodb/src/operation_ser.rs index 57e5a7106249..f25f73107ae2 100644 --- a/sdk/dynamodb/src/operation_ser.rs +++ b/sdk/dynamodb/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_batch_execute_statement( input: &crate::input::BatchExecuteStatementInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_execute_statement_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_batch_execute_statement( pub fn serialize_operation_batch_get_item( input: &crate::input::BatchGetItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_get_item_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_batch_get_item( pub fn serialize_operation_batch_write_item( input: &crate::input::BatchWriteItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_write_item_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_batch_write_item( pub fn serialize_operation_create_backup( input: &crate::input::CreateBackupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_backup_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_backup( pub fn serialize_operation_create_global_table( input: &crate::input::CreateGlobalTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_global_table_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_global_table( pub fn serialize_operation_create_table( input: &crate::input::CreateTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_table_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_create_table( pub fn serialize_operation_delete_backup( input: &crate::input::DeleteBackupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_backup_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_delete_backup( pub fn serialize_operation_delete_item( input: &crate::input::DeleteItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_item_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_delete_item( pub fn serialize_operation_delete_table( input: &crate::input::DeleteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_table_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_delete_table( pub fn serialize_operation_describe_backup( input: &crate::input::DescribeBackupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_backup_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_describe_backup( pub fn serialize_operation_describe_continuous_backups( input: &crate::input::DescribeContinuousBackupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_continuous_backups_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_describe_continuous_backups( pub fn serialize_operation_describe_contributor_insights( input: &crate::input::DescribeContributorInsightsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_contributor_insights_input(&mut object, input); @@ -119,9 +119,15 @@ pub fn serialize_operation_describe_contributor_insights( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_describe_endpoints( + _input: &crate::input::DescribeEndpointsInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_describe_export( input: &crate::input::DescribeExportInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_export_input(&mut object, input); @@ -131,7 +137,7 @@ pub fn serialize_operation_describe_export( pub fn serialize_operation_describe_global_table( input: &crate::input::DescribeGlobalTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_global_table_input(&mut object, input); @@ -141,7 +147,7 @@ pub fn serialize_operation_describe_global_table( pub fn serialize_operation_describe_global_table_settings( input: &crate::input::DescribeGlobalTableSettingsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_global_table_settings_input(&mut object, input); @@ -151,7 +157,7 @@ pub fn serialize_operation_describe_global_table_settings( pub fn serialize_operation_describe_kinesis_streaming_destination( input: &crate::input::DescribeKinesisStreamingDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_kinesis_streaming_destination_input( @@ -162,9 +168,15 @@ pub fn serialize_operation_describe_kinesis_streaming_destination( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_describe_limits( + _input: &crate::input::DescribeLimitsInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_describe_table( input: &crate::input::DescribeTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_table_input(&mut object, input); @@ -174,7 +186,7 @@ pub fn serialize_operation_describe_table( pub fn serialize_operation_describe_table_replica_auto_scaling( input: &crate::input::DescribeTableReplicaAutoScalingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_table_replica_auto_scaling_input( @@ -187,7 +199,7 @@ pub fn serialize_operation_describe_table_replica_auto_scaling( pub fn serialize_operation_describe_time_to_live( input: &crate::input::DescribeTimeToLiveInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_time_to_live_input(&mut object, input); @@ -197,7 +209,7 @@ pub fn serialize_operation_describe_time_to_live( pub fn serialize_operation_disable_kinesis_streaming_destination( input: &crate::input::DisableKinesisStreamingDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disable_kinesis_streaming_destination_input( @@ -210,7 +222,7 @@ pub fn serialize_operation_disable_kinesis_streaming_destination( pub fn serialize_operation_enable_kinesis_streaming_destination( input: &crate::input::EnableKinesisStreamingDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_enable_kinesis_streaming_destination_input( @@ -223,7 +235,7 @@ pub fn serialize_operation_enable_kinesis_streaming_destination( pub fn serialize_operation_execute_statement( input: &crate::input::ExecuteStatementInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_execute_statement_input(&mut object, input); @@ -233,7 +245,7 @@ pub fn serialize_operation_execute_statement( pub fn serialize_operation_execute_transaction( input: &crate::input::ExecuteTransactionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_execute_transaction_input(&mut object, input); @@ -243,7 +255,7 @@ pub fn serialize_operation_execute_transaction( pub fn serialize_operation_export_table_to_point_in_time( input: &crate::input::ExportTableToPointInTimeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_export_table_to_point_in_time_input(&mut object, input); @@ -253,7 +265,7 @@ pub fn serialize_operation_export_table_to_point_in_time( pub fn serialize_operation_get_item( input: &crate::input::GetItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_item_input(&mut object, input); @@ -263,7 +275,7 @@ pub fn serialize_operation_get_item( pub fn serialize_operation_list_backups( input: &crate::input::ListBackupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_backups_input(&mut object, input); @@ -273,7 +285,7 @@ pub fn serialize_operation_list_backups( pub fn serialize_operation_list_contributor_insights( input: &crate::input::ListContributorInsightsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_contributor_insights_input(&mut object, input); @@ -283,7 +295,7 @@ pub fn serialize_operation_list_contributor_insights( pub fn serialize_operation_list_exports( input: &crate::input::ListExportsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_exports_input(&mut object, input); @@ -293,7 +305,7 @@ pub fn serialize_operation_list_exports( pub fn serialize_operation_list_global_tables( input: &crate::input::ListGlobalTablesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_global_tables_input(&mut object, input); @@ -303,7 +315,7 @@ pub fn serialize_operation_list_global_tables( pub fn serialize_operation_list_tables( input: &crate::input::ListTablesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tables_input(&mut object, input); @@ -313,7 +325,7 @@ pub fn serialize_operation_list_tables( pub fn serialize_operation_list_tags_of_resource( input: &crate::input::ListTagsOfResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_of_resource_input(&mut object, input); @@ -323,7 +335,7 @@ pub fn serialize_operation_list_tags_of_resource( pub fn serialize_operation_put_item( input: &crate::input::PutItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_item_input(&mut object, input); @@ -333,7 +345,7 @@ pub fn serialize_operation_put_item( pub fn serialize_operation_query( input: &crate::input::QueryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_query_input(&mut object, input); @@ -343,7 +355,7 @@ pub fn serialize_operation_query( pub fn serialize_operation_restore_table_from_backup( input: &crate::input::RestoreTableFromBackupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_restore_table_from_backup_input(&mut object, input); @@ -353,7 +365,7 @@ pub fn serialize_operation_restore_table_from_backup( pub fn serialize_operation_restore_table_to_point_in_time( input: &crate::input::RestoreTableToPointInTimeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_restore_table_to_point_in_time_input(&mut object, input); @@ -363,7 +375,7 @@ pub fn serialize_operation_restore_table_to_point_in_time( pub fn serialize_operation_scan( input: &crate::input::ScanInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_scan_input(&mut object, input); @@ -373,7 +385,7 @@ pub fn serialize_operation_scan( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -383,7 +395,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_transact_get_items( input: &crate::input::TransactGetItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_transact_get_items_input(&mut object, input); @@ -393,7 +405,7 @@ pub fn serialize_operation_transact_get_items( pub fn serialize_operation_transact_write_items( input: &crate::input::TransactWriteItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_transact_write_items_input(&mut object, input); @@ -403,7 +415,7 @@ pub fn serialize_operation_transact_write_items( pub fn serialize_operation_untag_resource( input: &crate::input::UntagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_untag_resource_input(&mut object, input); @@ -413,7 +425,7 @@ pub fn serialize_operation_untag_resource( pub fn serialize_operation_update_continuous_backups( input: &crate::input::UpdateContinuousBackupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_continuous_backups_input(&mut object, input); @@ -423,7 +435,7 @@ pub fn serialize_operation_update_continuous_backups( pub fn serialize_operation_update_contributor_insights( input: &crate::input::UpdateContributorInsightsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_contributor_insights_input(&mut object, input); @@ -433,7 +445,7 @@ pub fn serialize_operation_update_contributor_insights( pub fn serialize_operation_update_global_table( input: &crate::input::UpdateGlobalTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_global_table_input(&mut object, input); @@ -443,7 +455,7 @@ pub fn serialize_operation_update_global_table( pub fn serialize_operation_update_global_table_settings( input: &crate::input::UpdateGlobalTableSettingsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_global_table_settings_input(&mut object, input); @@ -453,7 +465,7 @@ pub fn serialize_operation_update_global_table_settings( pub fn serialize_operation_update_item( input: &crate::input::UpdateItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_item_input(&mut object, input); @@ -463,7 +475,7 @@ pub fn serialize_operation_update_item( pub fn serialize_operation_update_table( input: &crate::input::UpdateTableInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_table_input(&mut object, input); @@ -473,7 +485,7 @@ pub fn serialize_operation_update_table( pub fn serialize_operation_update_table_replica_auto_scaling( input: &crate::input::UpdateTableReplicaAutoScalingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_table_replica_auto_scaling_input( @@ -486,7 +498,7 @@ pub fn serialize_operation_update_table_replica_auto_scaling( pub fn serialize_operation_update_time_to_live( input: &crate::input::UpdateTimeToLiveInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_time_to_live_input(&mut object, input); diff --git a/sdk/dynamodb/src/serde_util.rs b/sdk/dynamodb/src/serde_util.rs deleted file mode 100644 index 55bbdd49ac9a..000000000000 --- a/sdk/dynamodb/src/serde_util.rs +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} - -pub fn smithytypesblob_deser<'de, D>(_deser: D) -> Result -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(crate::blob_serde::BlobDeser::deserialize(_deser)?.0) -} - -pub fn stdvecvecsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::vec::Vec::::deserialize(_deser)? - .into_iter() - .map(|el| el.0) - .collect(), - ) -} diff --git a/sdk/dynamodb/src/serializer.rs b/sdk/dynamodb/src/serializer.rs deleted file mode 100644 index 7f5cfa37973e..000000000000 --- a/sdk/dynamodb/src/serializer.rs +++ /dev/null @@ -1,4209 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchExecuteStatementInputBody<'a> { - ///

            - /// The list of PartiQL statements representing the batch to run. - ///

            - pub statements: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for BatchExecuteStatementInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchExecuteStatementInputBody"); - formatter.field("statements", &self.statements); - formatter.finish() - } -} - -///

            Represents the input of a BatchGetItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchGetItemInputBody<'a> { - ///

            A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

            - ///

            Each element in the map of items to retrieve consists of the following:

            - ///
              - ///
            • - ///

              - /// ConsistentRead - If true, a strongly consistent read is used; if - /// false (the default), an eventually consistent read is used.

              - ///
            • - ///
            • - ///

              - /// ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames:

              - ///
                - ///
              • - ///

                To access an attribute whose name conflicts with a DynamoDB reserved word.

                - ///
              • - ///
              • - ///

                To create a placeholder for repeating occurrences of an attribute name in an expression.

                - ///
              • - ///
              • - ///

                To prevent special characters in an attribute name from being misinterpreted in an expression.

                - ///
              • - ///
              - ///

              Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

              - ///
                - ///
              • - ///

                - /// Percentile - ///

                - ///
              • - ///
              - ///

              The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

              - ///
                - ///
              • - ///

                - /// {"#P":"Percentile"} - ///

                - ///
              • - ///
              - ///

              You could then use this substitution in an expression, as in this example:

              - ///
                - ///
              • - ///

                - /// #P = :val - ///

                - ///
              • - ///
              - /// - ///

              Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

              - ///
              - ///

              For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB - /// Developer Guide.

              - ///
            • - ///
            • - ///

              - /// Keys - An array of primary key attribute values that define specific items in the - /// table. For each primary key, you must provide all of the key attributes. For - /// example, with a simple primary key, you only need to provide the partition key value. For a - /// composite key, you must provide both the partition key value and the sort key value.

              - ///
            • - ///
            • - ///

              - /// ProjectionExpression - A string that identifies one or more - /// attributes to retrieve from the table. These attributes can include scalars, - /// sets, or elements of a JSON document. The attributes in the expression must be - /// separated by commas.

              - ///

              If no attribute names are specified, then all attributes are returned. If any - /// of the requested attributes are not found, they do not appear in the - /// result.

              - ///

              For more information, see - /// Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

              - ///
            • - ///
            • - ///

              - /// AttributesToGet - This is a legacy parameter. Use ProjectionExpression instead. For more information, see - /// AttributesToGet in the Amazon DynamoDB Developer Guide. - ///

              - ///
            • - ///
            - pub request_items: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for BatchGetItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchGetItemInputBody"); - formatter.field("request_items", &self.request_items); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.finish() - } -} - -///

            Represents the input of a BatchWriteItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchWriteItemInputBody<'a> { - ///

            A map of one or more table names and, for each table, a list of operations to be performed - /// (DeleteRequest or PutRequest). Each element in the map consists of the - /// following:

            - ///
              - ///
            • - ///

              - /// DeleteRequest - Perform a DeleteItem operation on the specified item. The - /// item to be deleted is identified by a Key subelement:

              - ///
                - ///
              • - ///

                - /// Key - A map of primary key attribute values that uniquely identify the item. - /// Each entry in this map consists of an attribute name and an attribute value. For each - /// primary key, you must provide all of the key attributes. For example, with a - /// simple primary key, you only need to provide a value for the partition key. For a - /// composite primary key, you must provide values for both the partition key and the sort key.

                - ///
              • - ///
              - ///
            • - ///
            • - ///

              - /// PutRequest - Perform a PutItem operation on the specified item. The item to - /// be put is identified by an Item subelement:

              - ///
                - ///
              • - ///

                - /// Item - A map of attributes and their values. Each entry in - /// this map consists of an attribute name and an attribute value. Attribute - /// values must not be null; string and binary type attributes must have - /// lengths greater than zero; and set type attributes must not be empty. - /// Requests that contain empty values are rejected with a - /// ValidationException exception.

                - ///

                If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

                - ///
              • - ///
              - ///
            • - ///
            - pub request_items: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during - /// the operation are returned in the response. If set to NONE (the default), no statistics are returned.

            - pub return_item_collection_metrics: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for BatchWriteItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchWriteItemInputBody"); - formatter.field("request_items", &self.request_items); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field( - "return_item_collection_metrics", - &self.return_item_collection_metrics, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateBackupInputBody<'a> { - ///

            The name of the table.

            - pub table_name: &'a std::option::Option, - ///

            Specified name for the backup.

            - pub backup_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateBackupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateBackupInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("backup_name", &self.backup_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateGlobalTableInputBody<'a> { - ///

            The global table name.

            - pub global_table_name: &'a std::option::Option, - ///

            The Regions where the global table needs to be created.

            - pub replication_group: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateGlobalTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateGlobalTableInputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.field("replication_group", &self.replication_group); - formatter.finish() - } -} - -///

            Represents the input of a CreateTable operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTableInputBody<'a> { - ///

            An array of attributes that describe the key schema for the table and indexes.

            - pub attribute_definitions: - &'a std::option::Option>, - ///

            The name of the table to create.

            - pub table_name: &'a std::option::Option, - ///

            Specifies the attributes that make up the primary key for a table or an index. The attributes - /// in KeySchema must also be defined in the AttributeDefinitions array. For more - /// information, see Data Model in the - /// Amazon DynamoDB Developer Guide.

            - ///

            Each KeySchemaElement in the array is composed of:

            - ///
              - ///
            • - ///

              - /// AttributeName - The name of this key attribute.

              - ///
            • - ///
            • - ///

              - /// KeyType - The role that the key attribute will assume:

              - ///
                - ///
              • - ///

                - /// HASH - partition key

                - ///
              • - ///
              • - ///

                - /// RANGE - sort key

                - ///
              • - ///
              - ///
            • - ///
            - /// - ///

            The partition key of an item is also known as its hash - /// attribute. The term "hash attribute" derives from the DynamoDB usage of - /// an internal hash function to evenly distribute data items across partitions, based - /// on their partition key values.

            - ///

            The sort key of an item is also known as its range attribute. - /// The term "range attribute" derives from the way DynamoDB stores items with the same - /// partition key physically close together, in sorted order by the sort key value.

            - ///
            - ///

            For a simple primary key (partition key), you must provide - /// exactly one element with a KeyType of HASH.

            - ///

            For a composite primary key (partition key and sort key), you must provide exactly two - /// elements, in this order: The first element must have a KeyType of HASH, - /// and the second element must have a KeyType of RANGE.

            - ///

            For more information, see Working with Tables in the Amazon DynamoDB Developer - /// Guide.

            - pub key_schema: &'a std::option::Option>, - ///

            One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

            - ///

            Each local secondary index in the array includes the following:

            - ///
              - ///
            • - ///

              - /// IndexName - The name of the local secondary index. Must be unique only for this table.

              - ///

              - ///
            • - ///
            • - ///

              - /// KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with - /// the same partition key as the table.

              - ///
            • - ///
            • - ///

              - /// Projection - Specifies - /// attributes that are copied (projected) from the table into the index. These are in - /// addition to the primary key attributes and index key - /// attributes, which are automatically projected. Each - /// attribute specification is composed of:

              - ///
                - ///
              • - ///

                - /// ProjectionType - One - /// of the following:

                - ///
                  - ///
                • - ///

                  - /// KEYS_ONLY - Only the index and primary keys are projected into the - /// index.

                  - ///
                • - ///
                • - ///

                  - /// INCLUDE - Only the specified table attributes are - /// projected into the index. The list of projected attributes is in - /// NonKeyAttributes.

                  - ///
                • - ///
                • - ///

                  - /// ALL - All of the table attributes are projected into the - /// index.

                  - ///
                • - ///
                - ///
              • - ///
              • - ///

                - /// NonKeyAttributes - A list of one or more non-key - /// attribute names that are projected into the secondary index. The total - /// count of attributes provided in NonKeyAttributes, - /// summed across all of the secondary indexes, must not exceed 100. If you - /// project the same attribute into two different indexes, this counts as - /// two distinct attributes when determining the total.

                - ///
              • - ///
              - ///
            • - ///
            - pub local_secondary_indexes: - &'a std::option::Option>, - ///

            One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:

            - ///
              - ///
            • - ///

              - /// IndexName - The name of the global secondary index. Must be unique only for this table.

              - ///

              - ///
            • - ///
            • - ///

              - /// KeySchema - Specifies the key schema for the global secondary index.

              - ///
            • - ///
            • - ///

              - /// Projection - Specifies - /// attributes that are copied (projected) from the table into the index. These are in - /// addition to the primary key attributes and index key - /// attributes, which are automatically projected. Each - /// attribute specification is composed of:

              - ///
                - ///
              • - ///

                - /// ProjectionType - One - /// of the following:

                - ///
                  - ///
                • - ///

                  - /// KEYS_ONLY - Only the index and primary keys are projected into the - /// index.

                  - ///
                • - ///
                • - ///

                  - /// INCLUDE - Only the specified table attributes are - /// projected into the index. The list of projected attributes is in - /// NonKeyAttributes.

                  - ///
                • - ///
                • - ///

                  - /// ALL - All of the table attributes are projected into the - /// index.

                  - ///
                • - ///
                - ///
              • - ///
              • - ///

                - /// NonKeyAttributes - A list of one or more non-key attribute names that are - /// projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

                - ///
              • - ///
              - ///
            • - ///
            • - ///

              - /// ProvisionedThroughput - The provisioned throughput settings for the global secondary index, - /// consisting of read and write capacity units.

              - ///
            • - ///
            - pub global_secondary_indexes: - &'a std::option::Option>, - ///

            Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

            - ///
              - ///
            • - ///

              - /// PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode.

              - ///
            • - ///
            • - ///

              - /// PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. - ///

              - ///
            • - ///
            - pub billing_mode: &'a std::option::Option, - ///

            Represents the provisioned throughput settings for a specified table or index. The - /// settings can be modified using the UpdateTable operation.

            - ///

            If you set BillingMode as PROVISIONED, you must specify this property. If you - /// set BillingMode as PAY_PER_REQUEST, you cannot specify this - /// property.

            - ///

            For current minimum and maximum provisioned throughput values, see Service, - /// Account, and Table Quotas in the Amazon DynamoDB Developer - /// Guide.

            - pub provisioned_throughput: &'a std::option::Option, - ///

            The settings for DynamoDB Streams on the table. These settings consist of:

            - ///
              - ///
            • - ///

              - /// StreamEnabled - Indicates whether DynamoDB Streams is to be enabled - /// (true) or disabled (false).

              - ///
            • - ///
            • - ///

              - /// StreamViewType - When an item in the table is modified, StreamViewType - /// determines what information is written to the table's stream. Valid values for - /// StreamViewType are:

              - ///
                - ///
              • - ///

                - /// KEYS_ONLY - Only the key attributes of the modified item are written to the - /// stream.

                - ///
              • - ///
              • - ///

                - /// NEW_IMAGE - The entire item, as it appears after it was modified, is written - /// to the stream.

                - ///
              • - ///
              • - ///

                - /// OLD_IMAGE - The entire item, as it appeared before it was modified, is - /// written to the stream.

                - ///
              • - ///
              • - ///

                - /// NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are - /// written to the stream.

                - ///
              • - ///
              - ///
            • - ///
            - pub stream_specification: &'a std::option::Option, - ///

            Represents the settings used to enable server-side encryption.

            - pub sse_specification: &'a std::option::Option, - ///

            A list of key-value pairs to label the table. For more information, see Tagging for DynamoDB.

            - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTableInputBody"); - formatter.field("attribute_definitions", &self.attribute_definitions); - formatter.field("table_name", &self.table_name); - formatter.field("key_schema", &self.key_schema); - formatter.field("local_secondary_indexes", &self.local_secondary_indexes); - formatter.field("global_secondary_indexes", &self.global_secondary_indexes); - formatter.field("billing_mode", &self.billing_mode); - formatter.field("provisioned_throughput", &self.provisioned_throughput); - formatter.field("stream_specification", &self.stream_specification); - formatter.field("sse_specification", &self.sse_specification); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteBackupInputBody<'a> { - ///

            The ARN associated with the backup.

            - pub backup_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteBackupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteBackupInputBody"); - formatter.field("backup_arn", &self.backup_arn); - formatter.finish() - } -} - -///

            Represents the input of a DeleteItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteItemInputBody<'a> { - ///

            The name of the table from which to delete the item.

            - pub table_name: &'a std::option::Option, - ///

            A map of attribute names to AttributeValue objects, representing the primary key of - /// the item to delete.

            - ///

            For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

            - pub key: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// Expected in the Amazon DynamoDB Developer Guide.

            - pub expected: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// ConditionalOperator in the Amazon DynamoDB Developer Guide.

            - pub conditional_operator: &'a std::option::Option, - ///

            Use ReturnValues if you want to get the item attributes as they appeared before they - /// were deleted. For DeleteItem, the valid values are:

            - ///
              - ///
            • - ///

              - /// NONE - If ReturnValues is not specified, or if its value is - /// NONE, then nothing is returned. (This setting is the default for - /// ReturnValues.)

              - ///
            • - ///
            • - ///

              - /// ALL_OLD - The content of the old item is returned.

              - ///
            • - ///
            - /// - ///

            The ReturnValues parameter is used by several DynamoDB operations; however, - /// DeleteItem does not recognize any values other than NONE or - /// ALL_OLD.

            - ///
            - pub return_values: &'a std::option::Option, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during - /// the operation are returned in the response. If set to NONE (the default), no statistics are returned.

            - pub return_item_collection_metrics: - &'a std::option::Option, - ///

            A condition that must be satisfied in order for a conditional DeleteItem to - /// succeed.

            - ///

            An expression can contain any of the following:

            - ///
              - ///
            • - ///

              Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size - ///

              - ///

              These function names are case-sensitive.

              - ///
            • - ///
            • - ///

              Comparison operators: = | <> | - /// < | > | <= | >= | - /// BETWEEN | IN - ///

              - ///
            • - ///
            • - ///

              Logical operators: AND | OR | NOT - ///

              - ///
            • - ///
            - ///

            For more information about condition expressions, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub condition_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            One or more values that can be substituted in an expression.

            - ///

            Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

            - ///

            - /// Available | Backordered | Discontinued - ///

            - ///

            You would first need to specify ExpressionAttributeValues as follows:

            - ///

            - /// { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } - ///

            - ///

            You could then use these values in an expression, such as this:

            - ///

            - /// ProductStatus IN (:avail, :back, :disc) - ///

            - ///

            For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_values: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for DeleteItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteItemInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("key", &self.key); - formatter.field("expected", &self.expected); - formatter.field("conditional_operator", &self.conditional_operator); - formatter.field("return_values", &self.return_values); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field( - "return_item_collection_metrics", - &self.return_item_collection_metrics, - ); - formatter.field("condition_expression", &self.condition_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.field( - "expression_attribute_values", - &self.expression_attribute_values, - ); - formatter.finish() - } -} - -///

            Represents the input of a DeleteTable operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTableInputBody<'a> { - ///

            The name of the table to delete.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTableInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeBackupInputBody<'a> { - ///

            The Amazon Resource Name (ARN) associated with the backup.

            - pub backup_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeBackupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeBackupInputBody"); - formatter.field("backup_arn", &self.backup_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContinuousBackupsInputBody<'a> { - ///

            Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeContinuousBackupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContinuousBackupsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContributorInsightsInputBody<'a> { - ///

            The name of the table to describe.

            - pub table_name: &'a std::option::Option, - ///

            The name of the global secondary index to describe, if applicable.

            - pub index_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeContributorInsightsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContributorInsightsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExportInputBody<'a> { - ///

            The Amazon Resource Name (ARN) associated with the export.

            - pub export_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeExportInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExportInputBody"); - formatter.field("export_arn", &self.export_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeGlobalTableInputBody<'a> { - ///

            The name of the global table.

            - pub global_table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeGlobalTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeGlobalTableInputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeGlobalTableSettingsInputBody<'a> { - ///

            The name of the global table to describe.

            - pub global_table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeGlobalTableSettingsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeGlobalTableSettingsInputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeKinesisStreamingDestinationInputBody<'a> { - ///

            The name of the table being described.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeKinesisStreamingDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeKinesisStreamingDestinationInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -///

            Represents the input of a DescribeTable operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTableInputBody<'a> { - ///

            The name of the table to describe.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTableInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTableReplicaAutoScalingInputBody<'a> { - ///

            The name of the table.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTableReplicaAutoScalingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTableReplicaAutoScalingInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTimeToLiveInputBody<'a> { - ///

            The name of the table to be described.

            - pub table_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTimeToLiveInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTimeToLiveInputBody"); - formatter.field("table_name", &self.table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableKinesisStreamingDestinationInputBody<'a> { - ///

            The name of the DynamoDB table.

            - pub table_name: &'a std::option::Option, - ///

            The ARN for a Kinesis data stream.

            - pub stream_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisableKinesisStreamingDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableKinesisStreamingDestinationInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("stream_arn", &self.stream_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableKinesisStreamingDestinationInputBody<'a> { - ///

            The name of the DynamoDB table.

            - pub table_name: &'a std::option::Option, - ///

            The ARN for a Kinesis data stream.

            - pub stream_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for EnableKinesisStreamingDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableKinesisStreamingDestinationInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("stream_arn", &self.stream_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteStatementInputBody<'a> { - ///

            - /// The PartiQL statement representing the operation to run. - ///

            - pub statement: &'a std::option::Option, - ///

            - /// The parameters for the PartiQL statement, if any. - ///

            - pub parameters: &'a std::option::Option>, - ///

            - /// The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used. - ///

            - pub consistent_read: &'a std::option::Option, - ///

            - /// Set this value to get remaining results, if NextToken was returned in the statement response. - ///

            - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExecuteStatementInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteStatementInputBody"); - formatter.field("statement", &self.statement); - formatter.field("parameters", &self.parameters); - formatter.field("consistent_read", &self.consistent_read); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteTransactionInputBody<'a> { - ///

            - /// The list of PartiQL statements representing the transaction to run. - ///

            - pub transact_statements: - &'a std::option::Option>, - ///

            - /// Set this value to get remaining results, if NextToken was returned in the statement response. - ///

            - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExecuteTransactionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteTransactionInputBody"); - formatter.field("transact_statements", &self.transact_statements); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportTableToPointInTimeInputBody<'a> { - ///

            The Amazon Resource Name (ARN) associated with the table to export.

            - pub table_arn: &'a std::option::Option, - ///

            Time in the past from which to export table data. The table export will be a snapshot - /// of the table's state at this point in time.

            - pub export_time: &'a std::option::Option, - ///

            Providing a ClientToken makes the call to - /// ExportTableToPointInTimeInput idempotent, meaning that multiple - /// identical calls have the same effect as one single call.

            - ///

            A client token is valid for 8 hours after the first request that uses it is - /// completed. After 8 hours, any request with the same client token is treated as a new - /// request. Do not resubmit the same request with the same client token for more than 8 - /// hours, or the result might not be idempotent.

            - ///

            If you submit a request with the same client token but a change in other parameters - /// within the 8-hour idempotency window, DynamoDB returns an - /// IdempotentParameterMismatch exception.

            - pub client_token: &'a std::option::Option, - ///

            The name of the Amazon S3 bucket to export the snapshot to.

            - pub s3_bucket: &'a std::option::Option, - ///

            The ID of the AWS account that owns the bucket the export will be stored in.

            - pub s3_bucket_owner: &'a std::option::Option, - ///

            The Amazon S3 bucket prefix to use as the file name and path of the exported - /// snapshot.

            - pub s3_prefix: &'a std::option::Option, - ///

            Type of encryption used on the bucket where export data will be stored. Valid values - /// for S3SseAlgorithm are:

            - ///
              - ///
            • - ///

              - /// AES256 - server-side encryption with Amazon S3 managed keys

              - ///
            • - ///
            • - ///

              - /// KMS - server-side encryption with AWS KMS managed keys

              - ///
            • - ///
            - pub s3_sse_algorithm: &'a std::option::Option, - ///

            The ID of the AWS KMS managed key used to encrypt the S3 bucket where export data will - /// be stored (if applicable).

            - pub s3_sse_kms_key_id: &'a std::option::Option, - ///

            The format for the exported data. Valid values for ExportFormat are - /// DYNAMODB_JSON or ION.

            - pub export_format: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExportTableToPointInTimeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportTableToPointInTimeInputBody"); - formatter.field("table_arn", &self.table_arn); - formatter.field("export_time", &self.export_time); - formatter.field("client_token", &self.client_token); - formatter.field("s3_bucket", &self.s3_bucket); - formatter.field("s3_bucket_owner", &self.s3_bucket_owner); - formatter.field("s3_prefix", &self.s3_prefix); - formatter.field("s3_sse_algorithm", &self.s3_sse_algorithm); - formatter.field("s3_sse_kms_key_id", &self.s3_sse_kms_key_id); - formatter.field("export_format", &self.export_format); - formatter.finish() - } -} - -///

            Represents the input of a GetItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetItemInputBody<'a> { - ///

            The name of the table containing the requested item.

            - pub table_name: &'a std::option::Option, - ///

            A map of attribute names to AttributeValue objects, representing the primary key of - /// the item to retrieve.

            - ///

            For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

            - pub key: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ProjectionExpression instead. For more information, see - /// AttributesToGet in the Amazon DynamoDB Developer Guide.

            - pub attributes_to_get: &'a std::option::Option>, - ///

            Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

            - pub consistent_read: &'a std::option::Option, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

            - ///

            If no attribute names are specified, then all attributes are returned. If any of the - /// requested attributes are not found, they do not appear in the result.

            - ///

            For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub projection_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for GetItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetItemInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("key", &self.key); - formatter.field("attributes_to_get", &self.attributes_to_get); - formatter.field("consistent_read", &self.consistent_read); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field("projection_expression", &self.projection_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListBackupsInputBody<'a> { - ///

            The backups from the table specified by TableName are listed.

            - pub table_name: &'a std::option::Option, - ///

            Maximum number of backups to return at once.

            - pub limit: &'a std::option::Option, - ///

            Only backups created after this time are listed. TimeRangeLowerBound is inclusive.

            - pub time_range_lower_bound: &'a std::option::Option, - ///

            Only backups created before this time are listed. TimeRangeUpperBound is exclusive.

            - pub time_range_upper_bound: &'a std::option::Option, - ///

            - /// LastEvaluatedBackupArn is the Amazon Resource Name (ARN) of the backup last - /// evaluated when the current page of results was returned, inclusive of the current page - /// of results. This value may be specified as the ExclusiveStartBackupArn of a - /// new ListBackups operation in order to fetch the next page of results.

            - pub exclusive_start_backup_arn: &'a std::option::Option, - ///

            The backups from the table specified by BackupType are listed.

            - ///

            Where BackupType can be:

            - ///
              - ///
            • - ///

              - /// USER - On-demand backup created by you.

              - ///
            • - ///
            • - ///

              - /// SYSTEM - On-demand backup automatically created by - /// DynamoDB.

              - ///
            • - ///
            • - ///

              - /// ALL - All types of on-demand backups (USER and SYSTEM).

              - ///
            • - ///
            - pub backup_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListBackupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListBackupsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("limit", &self.limit); - formatter.field("time_range_lower_bound", &self.time_range_lower_bound); - formatter.field("time_range_upper_bound", &self.time_range_upper_bound); - formatter.field( - "exclusive_start_backup_arn", - &self.exclusive_start_backup_arn, - ); - formatter.field("backup_type", &self.backup_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContributorInsightsInputBody<'a> { - ///

            The name of the table.

            - pub table_name: &'a std::option::Option, - ///

            A token to for the desired page, if there is one.

            - pub next_token: &'a std::option::Option, - ///

            Maximum number of results to return per page.

            - pub max_results: &'a i32, -} -impl<'a> std::fmt::Debug for ListContributorInsightsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContributorInsightsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListExportsInputBody<'a> { - ///

            The Amazon Resource Name (ARN) associated with the exported table.

            - pub table_arn: &'a std::option::Option, - ///

            Maximum number of results to return per page.

            - pub max_results: &'a std::option::Option, - ///

            An optional string that, if supplied, must be copied from the output of a previous - /// call to ListExports. When provided in this manner, the API fetches the next - /// page of results.

            - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListExportsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListExportsInputBody"); - formatter.field("table_arn", &self.table_arn); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListGlobalTablesInputBody<'a> { - ///

            The first global table name that this operation will evaluate.

            - pub exclusive_start_global_table_name: &'a std::option::Option, - ///

            The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.

            - ///

            If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, - /// with a table name in the LastEvaluatedGlobalTableName to apply in a subsequent operation to the ExclusiveStartGlobalTableName parameter.

            - pub limit: &'a std::option::Option, - ///

            Lists the global tables in a specific Region.

            - pub region_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListGlobalTablesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListGlobalTablesInputBody"); - formatter.field( - "exclusive_start_global_table_name", - &self.exclusive_start_global_table_name, - ); - formatter.field("limit", &self.limit); - formatter.field("region_name", &self.region_name); - formatter.finish() - } -} - -///

            Represents the input of a ListTables operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTablesInputBody<'a> { - ///

            The first table name that this operation will evaluate. Use the value that was returned for - /// LastEvaluatedTableName in a previous operation, so that you can obtain the next page - /// of results.

            - pub exclusive_start_table_name: &'a std::option::Option, - ///

            A maximum number of table names to return. If this parameter is not specified, the limit is 100.

            - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTablesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTablesInputBody"); - formatter.field( - "exclusive_start_table_name", - &self.exclusive_start_table_name, - ); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsOfResourceInputBody<'a> { - ///

            The Amazon DynamoDB resource with tags to be listed. This value is an Amazon Resource Name (ARN).

            - pub resource_arn: &'a std::option::Option, - ///

            An optional string that, if supplied, must be copied from the output of a previous - /// call to ListTagOfResource. When provided in this manner, this API fetches the next page of results.

            - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsOfResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsOfResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

            Represents the input of a PutItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutItemInputBody<'a> { - ///

            The name of the table to contain the item.

            - pub table_name: &'a std::option::Option, - ///

            A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

            - ///

            You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key.

            - ///

            If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

            - ///

            Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index.

            - ///

            For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer - /// Guide.

            - ///

            Each element in the Item map is an AttributeValue object.

            - pub item: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// Expected in the Amazon DynamoDB Developer Guide.

            - pub expected: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            Use ReturnValues if you want to get the item attributes as they appeared before they - /// were updated with the PutItem request. For PutItem, the valid values are:

            - ///
              - ///
            • - ///

              - /// NONE - If ReturnValues is not specified, or if its value is - /// NONE, then nothing is returned. (This setting is the default for - /// ReturnValues.)

              - ///
            • - ///
            • - ///

              - /// ALL_OLD - If PutItem overwrote an attribute name-value pair, then the - /// content of the old item is returned.

              - ///
            • - ///
            - /// - ///

            The ReturnValues parameter is used by several DynamoDB operations; however, - /// PutItem does not recognize any values other than NONE or - /// ALL_OLD.

            - ///
            - pub return_values: &'a std::option::Option, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during - /// the operation are returned in the response. If set to NONE (the default), no statistics are returned.

            - pub return_item_collection_metrics: - &'a std::option::Option, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// ConditionalOperator in the Amazon DynamoDB Developer Guide.

            - pub conditional_operator: &'a std::option::Option, - ///

            A condition that must be satisfied in order for a conditional PutItem operation to - /// succeed.

            - ///

            An expression can contain any of the following:

            - ///
              - ///
            • - ///

              Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size - ///

              - ///

              These function names are case-sensitive.

              - ///
            • - ///
            • - ///

              Comparison operators: = | <> | - /// < | > | <= | >= | - /// BETWEEN | IN - ///

              - ///
            • - ///
            • - ///

              Logical operators: AND | OR | NOT - ///

              - ///
            • - ///
            - ///

            For more information on condition expressions, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub condition_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            One or more values that can be substituted in an expression.

            - ///

            Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

            - ///

            - /// Available | Backordered | Discontinued - ///

            - ///

            You would first need to specify ExpressionAttributeValues as follows:

            - ///

            - /// { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } - ///

            - ///

            You could then use these values in an expression, such as this:

            - ///

            - /// ProductStatus IN (:avail, :back, :disc) - ///

            - ///

            For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_values: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for PutItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutItemInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("item", &self.item); - formatter.field("expected", &self.expected); - formatter.field("return_values", &self.return_values); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field( - "return_item_collection_metrics", - &self.return_item_collection_metrics, - ); - formatter.field("conditional_operator", &self.conditional_operator); - formatter.field("condition_expression", &self.condition_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.field( - "expression_attribute_values", - &self.expression_attribute_values, - ); - formatter.finish() - } -} - -///

            Represents the input of a Query operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct QueryInputBody<'a> { - ///

            The name of the table containing the requested items.

            - pub table_name: &'a std::option::Option, - ///

            The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that - /// if you use the IndexName parameter, you must also provide TableName. - ///

            - pub index_name: &'a std::option::Option, - ///

            The attributes to be returned in the - /// result. You can retrieve all item attributes, specific item attributes, the count of - /// matching items, or in the case of an index, some or all of the attributes projected into - /// the index.

            - ///
              - ///
            • - ///

              - /// ALL_ATTRIBUTES - Returns all of the item attributes from the - /// specified table or index. If you query a local secondary index, then for each - /// matching item in the index, DynamoDB fetches the entire item from the parent - /// table. If the index is configured to project all item attributes, then all of - /// the data can be obtained from the local secondary index, and no fetching is - /// required.

              - ///
            • - ///
            • - ///

              - /// ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. - /// Retrieves all attributes that have been projected into the index. If the - /// index is configured to project all attributes, this return value is - /// equivalent to specifying ALL_ATTRIBUTES.

              - ///
            • - ///
            • - ///

              - /// COUNT - Returns the number of matching items, rather than the - /// matching items themselves.

              - ///
            • - ///
            • - ///

              - /// SPECIFIC_ATTRIBUTES - Returns only the attributes listed in - /// AttributesToGet. This return value is equivalent to - /// specifying AttributesToGet without specifying any value - /// for Select.

              - ///

              If you query or scan a local secondary index and request only attributes that - /// are projected into that index, the operation will read only the index and not - /// the table. If any of the requested attributes are not projected into the local - /// secondary index, DynamoDB fetches each of these attributes from the parent - /// table. This extra fetching incurs additional throughput cost and latency.

              - ///

              If you query or scan a global secondary index, you can only request - /// attributes that are projected into the index. Global secondary index queries - /// cannot fetch attributes from the parent table.

              - ///
            • - ///
            - ///

            If neither Select nor AttributesToGet - /// are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a - /// table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot - /// use both Select and AttributesToGet - /// together in a single request, unless the value for Select is - /// SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying - /// AttributesToGet without any value for - /// Select.)

            - /// - ///

            If you use the ProjectionExpression parameter, then - /// the value for Select can only be - /// SPECIFIC_ATTRIBUTES. Any other value for - /// Select will return an error.

            - ///
            - pub select: &'a std::option::Option, - ///

            This is a legacy parameter. Use ProjectionExpression instead. For more information, see - /// AttributesToGet in the Amazon DynamoDB Developer Guide.

            - pub attributes_to_get: &'a std::option::Option>, - ///

            The maximum number of items to evaluate (not necessarily the number of matching items). - /// If DynamoDB processes the number of items up to the limit while processing the results, - /// it stops the operation and returns the matching values up to that point, and a key in - /// LastEvaluatedKey to apply in a subsequent operation, so that you can - /// pick up where you left off. Also, if the processed dataset size exceeds 1 MB before - /// DynamoDB reaches this limit, it stops the operation and returns the matching values up - /// to the limit, and a key in LastEvaluatedKey to apply in a subsequent - /// operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer - /// Guide.

            - pub limit: &'a std::option::Option, - ///

            Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

            - ///

            Strongly consistent reads - /// are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to - /// true, you will receive a ValidationException.

            - pub consistent_read: &'a std::option::Option, - ///

            This is a legacy parameter. Use KeyConditionExpression instead. For more information, see - /// KeyConditions in the Amazon DynamoDB Developer Guide.

            - pub key_conditions: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use FilterExpression instead. For more information, see - /// QueryFilter in the Amazon DynamoDB Developer Guide.

            - pub query_filter: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use FilterExpression instead. For more information, see - /// ConditionalOperator in the Amazon DynamoDB Developer Guide.

            - pub conditional_operator: &'a std::option::Option, - ///

            Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

            - ///

            Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

            - ///

            If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

            - pub scan_index_forward: &'a std::option::Option, - ///

            The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

            - ///

            The data type for ExclusiveStartKey must be String, Number, or Binary. No - /// set data types are allowed.

            - pub exclusive_start_key: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

            - ///

            If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

            - ///

            For more information, see - /// Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

            - pub projection_expression: &'a std::option::Option, - ///

            A string that contains conditions that DynamoDB applies after the Query operation, but - /// before the data is returned to you. Items that do not satisfy the FilterExpression - /// criteria are not returned.

            - ///

            A FilterExpression does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.

            - /// - ///

            A FilterExpression is applied after the items have already been read; the process of - /// filtering does not consume any additional read capacity units.

            - ///
            - ///

            For more information, see Filter - /// Expressions in the Amazon DynamoDB Developer Guide.

            - pub filter_expression: &'a std::option::Option, - ///

            The condition that specifies the key values for items to be retrieved by the - /// Query action.

            - ///

            The condition must perform an equality test on a single partition key value.

            - ///

            The condition can optionally perform one of several comparison tests on a single - /// sort key value. This allows Query to retrieve one item with a given - /// partition key value and sort key value, or several items that have the same partition - /// key value but different sort key values.

            - ///

            The partition key equality test is required, and must be specified in the following format:

            - ///

            - /// partitionKeyName - /// = - /// :partitionkeyval - ///

            - ///

            If you also want to provide a condition for the sort key, it must be combined using AND with the condition - /// for the sort key. Following is an example, using the = comparison operator for the sort key:

            - ///

            - /// partitionKeyName - /// = - /// :partitionkeyval - /// AND - /// sortKeyName - /// = - /// :sortkeyval - ///

            - ///

            Valid comparisons for the sort key condition are as follows:

            - ///
              - ///
            • - ///

              - /// sortKeyName - /// = - /// :sortkeyval - true if the sort key value is equal to :sortkeyval.

              - ///
            • - ///
            • - ///

              - /// sortKeyName - /// < - /// :sortkeyval - true if the sort key value is less than :sortkeyval.

              - ///
            • - ///
            • - ///

              - /// sortKeyName - /// <= - /// :sortkeyval - true if the sort key value is less than or equal to - /// :sortkeyval.

              - ///
            • - ///
            • - ///

              - /// sortKeyName - /// > - /// :sortkeyval - true if the sort key value is greater than :sortkeyval.

              - ///
            • - ///
            • - ///

              - /// sortKeyName - /// >= - /// :sortkeyval - true if the sort key value is greater than - /// or equal to :sortkeyval.

              - ///
            • - ///
            • - ///

              - /// sortKeyName - /// BETWEEN - /// :sortkeyval1 - /// AND - /// :sortkeyval2 - true if the sort key value is greater than or equal to - /// :sortkeyval1, and less than or equal to :sortkeyval2.

              - ///
            • - ///
            • - ///

              - /// begins_with ( - /// sortKeyName, :sortkeyval - /// ) - - /// true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name - /// begins_with is case-sensitive.

              - ///
            • - ///
            - ///

            Use the ExpressionAttributeValues parameter to replace tokens such as - /// :partitionval and :sortval with actual values at runtime.

            - ///

            You can optionally use the ExpressionAttributeNames parameter to replace the names of - /// the partition key and sort key with placeholder tokens. This option might be necessary if an attribute - /// name conflicts with a DynamoDB reserved word. For example, the following - /// KeyConditionExpression parameter causes an error because Size is a reserved - /// word:

            - ///
              - ///
            • - ///

              - /// Size = :myval - ///

              - ///
            • - ///
            - ///

            To work around this, define a placeholder (such a #S) to represent the attribute - /// name Size. KeyConditionExpression then is as follows:

            - ///
              - ///
            • - ///

              - /// #S = :myval - ///

              - ///
            • - ///
            - ///

            For a list of reserved words, see Reserved - /// Words in the Amazon DynamoDB Developer Guide.

            - ///

            For more information on ExpressionAttributeNames and ExpressionAttributeValues, - /// see Using Placeholders for Attribute - /// Names and Values in the Amazon DynamoDB Developer Guide.

            - pub key_condition_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for - /// ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            One or more values that can be substituted in an expression.

            - ///

            Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the - /// ProductStatus attribute was one of the following:

            - ///

            - /// Available | Backordered | Discontinued - ///

            - ///

            You would first need to specify ExpressionAttributeValues as follows:

            - ///

            - /// { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } - ///

            - ///

            You could then use these values in an expression, such as this:

            - ///

            - /// ProductStatus IN (:avail, :back, :disc) - ///

            - ///

            For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

            - pub expression_attribute_values: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for QueryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("QueryInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.field("select", &self.select); - formatter.field("attributes_to_get", &self.attributes_to_get); - formatter.field("limit", &self.limit); - formatter.field("consistent_read", &self.consistent_read); - formatter.field("key_conditions", &self.key_conditions); - formatter.field("query_filter", &self.query_filter); - formatter.field("conditional_operator", &self.conditional_operator); - formatter.field("scan_index_forward", &self.scan_index_forward); - formatter.field("exclusive_start_key", &self.exclusive_start_key); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field("projection_expression", &self.projection_expression); - formatter.field("filter_expression", &self.filter_expression); - formatter.field("key_condition_expression", &self.key_condition_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.field( - "expression_attribute_values", - &self.expression_attribute_values, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreTableFromBackupInputBody<'a> { - ///

            The name of the new table to which the backup must be restored.

            - pub target_table_name: &'a std::option::Option, - ///

            The Amazon Resource Name (ARN) associated with the backup.

            - pub backup_arn: &'a std::option::Option, - ///

            The billing mode of the restored table.

            - pub billing_mode_override: &'a std::option::Option, - ///

            List of global secondary indexes for the restored table. The indexes - /// provided should match existing secondary indexes. You can choose to exclude - /// some or all of the indexes at the time of restore.

            - pub global_secondary_index_override: - &'a std::option::Option>, - ///

            List of local secondary indexes for the restored table. The indexes - /// provided should match existing secondary indexes. You can choose to exclude - /// some or all of the indexes at the time of restore.

            - pub local_secondary_index_override: - &'a std::option::Option>, - ///

            Provisioned throughput settings for the restored table.

            - pub provisioned_throughput_override: - &'a std::option::Option, - ///

            The new server-side encryption settings for the restored table.

            - pub sse_specification_override: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RestoreTableFromBackupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreTableFromBackupInputBody"); - formatter.field("target_table_name", &self.target_table_name); - formatter.field("backup_arn", &self.backup_arn); - formatter.field("billing_mode_override", &self.billing_mode_override); - formatter.field( - "global_secondary_index_override", - &self.global_secondary_index_override, - ); - formatter.field( - "local_secondary_index_override", - &self.local_secondary_index_override, - ); - formatter.field( - "provisioned_throughput_override", - &self.provisioned_throughput_override, - ); - formatter.field( - "sse_specification_override", - &self.sse_specification_override, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreTableToPointInTimeInputBody<'a> { - ///

            The DynamoDB table that will be restored. This value is an Amazon - /// Resource Name (ARN).

            - pub source_table_arn: &'a std::option::Option, - ///

            Name of the source table that is being restored.

            - pub source_table_name: &'a std::option::Option, - ///

            The name of the new table to which it must be restored to.

            - pub target_table_name: &'a std::option::Option, - ///

            Restore the table to the latest possible time. LatestRestorableDateTime - /// is typically 5 minutes before the current time.

            - pub use_latest_restorable_time: &'a std::option::Option, - ///

            Time in the past to restore the table to.

            - pub restore_date_time: &'a std::option::Option, - ///

            The billing mode of the restored table.

            - pub billing_mode_override: &'a std::option::Option, - ///

            List of global secondary indexes for the restored table. The indexes - /// provided should match existing secondary indexes. You can choose to exclude - /// some or all of the indexes at the time of restore.

            - pub global_secondary_index_override: - &'a std::option::Option>, - ///

            List of local secondary indexes for the restored table. The indexes - /// provided should match existing secondary indexes. You can choose to exclude - /// some or all of the indexes at the time of restore.

            - pub local_secondary_index_override: - &'a std::option::Option>, - ///

            Provisioned throughput settings for the restored table.

            - pub provisioned_throughput_override: - &'a std::option::Option, - ///

            The new server-side encryption settings for the restored table.

            - pub sse_specification_override: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RestoreTableToPointInTimeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreTableToPointInTimeInputBody"); - formatter.field("source_table_arn", &self.source_table_arn); - formatter.field("source_table_name", &self.source_table_name); - formatter.field("target_table_name", &self.target_table_name); - formatter.field( - "use_latest_restorable_time", - &self.use_latest_restorable_time, - ); - formatter.field("restore_date_time", &self.restore_date_time); - formatter.field("billing_mode_override", &self.billing_mode_override); - formatter.field( - "global_secondary_index_override", - &self.global_secondary_index_override, - ); - formatter.field( - "local_secondary_index_override", - &self.local_secondary_index_override, - ); - formatter.field( - "provisioned_throughput_override", - &self.provisioned_throughput_override, - ); - formatter.field( - "sse_specification_override", - &self.sse_specification_override, - ); - formatter.finish() - } -} - -///

            Represents the input of a Scan operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ScanInputBody<'a> { - ///

            The name of the table containing the requested items; or, if you provide - /// IndexName, the name of the table to which that index belongs.

            - pub table_name: &'a std::option::Option, - ///

            The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

            - pub index_name: &'a std::option::Option, - ///

            This is a legacy parameter. Use ProjectionExpression instead. For more information, see - /// AttributesToGet in the Amazon DynamoDB Developer Guide.

            - pub attributes_to_get: &'a std::option::Option>, - ///

            The maximum number of items to evaluate (not necessarily the number of matching items). - /// If DynamoDB processes the number of items up to the limit while processing the results, - /// it stops the operation and returns the matching values up to that point, and a key in - /// LastEvaluatedKey to apply in a subsequent operation, so that you can - /// pick up where you left off. Also, if the processed dataset size exceeds 1 MB before - /// DynamoDB reaches this limit, it stops the operation and returns the matching values up - /// to the limit, and a key in LastEvaluatedKey to apply in a subsequent - /// operation to continue the operation. For more information, see Working with Queries in the Amazon DynamoDB Developer - /// Guide.

            - pub limit: &'a std::option::Option, - ///

            The attributes to be returned in the - /// result. You can retrieve all item attributes, specific item attributes, the count of - /// matching items, or in the case of an index, some or all of the attributes projected into - /// the index.

            - ///
              - ///
            • - ///

              - /// ALL_ATTRIBUTES - Returns all of the item attributes from the - /// specified table or index. If you query a local secondary index, then for each - /// matching item in the index, DynamoDB fetches the entire item from the parent - /// table. If the index is configured to project all item attributes, then all of - /// the data can be obtained from the local secondary index, and no fetching is - /// required.

              - ///
            • - ///
            • - ///

              - /// ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. - /// Retrieves all attributes that have been projected into the index. If the - /// index is configured to project all attributes, this return value is - /// equivalent to specifying ALL_ATTRIBUTES.

              - ///
            • - ///
            • - ///

              - /// COUNT - Returns the number of matching items, rather than the - /// matching items themselves.

              - ///
            • - ///
            • - ///

              - /// SPECIFIC_ATTRIBUTES - Returns only the attributes listed in - /// AttributesToGet. This return value is equivalent to - /// specifying AttributesToGet without specifying any value - /// for Select.

              - ///

              If you query or scan a local secondary index and request only attributes that - /// are projected into that index, the operation reads only the index and not the - /// table. If any of the requested attributes are not projected into the local - /// secondary index, DynamoDB fetches each of these attributes from the parent - /// table. This extra fetching incurs additional throughput cost and latency.

              - ///

              If you query or scan a global secondary index, you can only request - /// attributes that are projected into the index. Global secondary index queries - /// cannot fetch attributes from the parent table.

              - ///
            • - ///
            - ///

            If neither Select nor AttributesToGet - /// are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a - /// table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot - /// use both Select and AttributesToGet - /// together in a single request, unless the value for Select is - /// SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying - /// AttributesToGet without any value for - /// Select.)

            - /// - ///

            If you use the ProjectionExpression parameter, then - /// the value for Select can only be - /// SPECIFIC_ATTRIBUTES. Any other value for - /// Select will return an error.

            - ///
            - pub select: &'a std::option::Option, - ///

            This is a legacy parameter. Use FilterExpression instead. For more information, see - /// ScanFilter in the Amazon DynamoDB Developer Guide.

            - pub scan_filter: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use FilterExpression instead. For more information, see - /// ConditionalOperator in the Amazon DynamoDB Developer Guide.

            - pub conditional_operator: &'a std::option::Option, - ///

            The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

            - ///

            The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

            - ///

            In a parallel scan, a - /// Scan request that includes ExclusiveStartKey must specify the same segment - /// whose previous Scan returned the corresponding value of LastEvaluatedKey.

            - pub exclusive_start_key: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            For a parallel Scan request, TotalSegments represents the total number of - /// segments into which the Scan operation will be divided. The value of - /// TotalSegments corresponds to the number of application workers that will perform the - /// parallel scan. For example, if you want to use four application threads to scan a table or an index, - /// specify a TotalSegments value of 4.

            - ///

            The value for TotalSegments must be greater than or equal to 1, and less than or equal - /// to 1000000. If you specify a TotalSegments value of 1, the Scan operation will - /// be sequential rather than parallel.

            - ///

            If you specify TotalSegments, you must also specify Segment.

            - pub total_segments: &'a std::option::Option, - ///

            For a parallel Scan request, Segment identifies an individual segment to be - /// scanned by an application worker.

            - ///

            Segment IDs are zero-based, so the first segment is always 0. For example, if you want to - /// use four application threads to scan a table or an index, then the first thread specifies a Segment value - /// of 0, the second thread specifies 1, and so on.

            - ///

            The value of LastEvaluatedKey returned from a parallel Scan request must be - /// used as ExclusiveStartKey with the same segment ID in a subsequent Scan - /// operation.

            - ///

            The value for Segment must be greater than or equal to 0, and less than the value - /// provided for TotalSegments.

            - ///

            If you provide Segment, you must also provide TotalSegments.

            - pub segment: &'a std::option::Option, - ///

            A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

            - ///

            If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

            - ///

            For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub projection_expression: &'a std::option::Option, - ///

            A string that contains conditions that DynamoDB applies after the Scan operation, but - /// before the data is returned to you. Items that do not satisfy the FilterExpression - /// criteria are not returned.

            - /// - ///

            A FilterExpression is applied after the items have already been read; the process of - /// filtering does not consume any additional read capacity units.

            - ///
            - ///

            For more information, see - /// Filter Expressions in the Amazon DynamoDB Developer Guide.

            - pub filter_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            One or more values that can be substituted in an expression.

            - ///

            Use the : (colon) character in an expression to - /// dereference an attribute value. For example, suppose that you wanted to check whether - /// the value of the ProductStatus attribute was one of the following:

            - ///

            - /// Available | Backordered | Discontinued - ///

            - ///

            You would first need to specify ExpressionAttributeValues as follows:

            - ///

            - /// { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } - ///

            - ///

            You could then use these values in an expression, such as this:

            - ///

            - /// ProductStatus IN (:avail, :back, :disc) - ///

            - ///

            For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_values: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            A Boolean value that determines the read consistency model during the scan:

            - ///
              - ///
            • - ///

              If ConsistentRead is false, then the data returned from - /// Scan might not contain the results from other recently - /// completed write operations (PutItem, UpdateItem, or - /// DeleteItem).

              - ///
            • - ///
            • - ///

              If ConsistentRead is true, then all of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response.

              - ///
            • - ///
            - ///

            The default setting for ConsistentRead is false.

            - ///

            The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

            - pub consistent_read: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ScanInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ScanInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.field("attributes_to_get", &self.attributes_to_get); - formatter.field("limit", &self.limit); - formatter.field("select", &self.select); - formatter.field("scan_filter", &self.scan_filter); - formatter.field("conditional_operator", &self.conditional_operator); - formatter.field("exclusive_start_key", &self.exclusive_start_key); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field("total_segments", &self.total_segments); - formatter.field("segment", &self.segment); - formatter.field("projection_expression", &self.projection_expression); - formatter.field("filter_expression", &self.filter_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.field( - "expression_attribute_values", - &self.expression_attribute_values, - ); - formatter.field("consistent_read", &self.consistent_read); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

            Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

            - pub resource_arn: &'a std::option::Option, - ///

            The tags to be assigned to the Amazon DynamoDB resource.

            - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactGetItemsInputBody<'a> { - ///

            An ordered array of up to 25 TransactGetItem objects, - /// each of which contains a Get structure.

            - pub transact_items: &'a std::option::Option>, - ///

            A value of TOTAL causes consumed capacity information - /// to be returned, and a value of NONE prevents that information - /// from being returned. No other value is valid.

            - pub return_consumed_capacity: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TransactGetItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactGetItemsInputBody"); - formatter.field("transact_items", &self.transact_items); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactWriteItemsInputBody<'a> { - ///

            An ordered array of up to 25 TransactWriteItem objects, each of which - /// contains a ConditionCheck, Put, Update, or - /// Delete object. These can operate on items in different tables, but the - /// tables must reside in the same AWS account and Region, and no two of them can operate on - /// the same item.

            - pub transact_items: &'a std::option::Option>, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            Determines whether item collection metrics are returned. If set to - /// SIZE, the response includes statistics about item collections (if any), that - /// were modified during the operation and are returned in the response. - /// If set to NONE (the default), no statistics are returned. - ///

            - pub return_item_collection_metrics: - &'a std::option::Option, - ///

            Providing a ClientRequestToken makes the call to TransactWriteItems - /// idempotent, meaning that multiple identical calls have the same effect as one single call.

            - ///

            Although multiple identical calls using the same client request token produce the same - /// result on the server (no side effects), the responses to the calls might not be the - /// same. If the ReturnConsumedCapacity> parameter is set, then the initial - /// TransactWriteItems call returns the amount of write capacity units - /// consumed in making the changes. Subsequent TransactWriteItems calls with - /// the same client token return the number of read capacity units consumed in reading the - /// item.

            - ///

            A client request token is valid for 10 minutes after the first request that uses it is - /// completed. After 10 minutes, any request with the same client token is treated as a new - /// request. Do not resubmit the same request with the same client token for more than 10 - /// minutes, or the result might not be idempotent.

            - ///

            If you submit a request with the same client token but a change in other parameters - /// within the 10-minute idempotency window, DynamoDB returns an - /// IdempotentParameterMismatch exception.

            - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TransactWriteItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactWriteItemsInputBody"); - formatter.field("transact_items", &self.transact_items); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field( - "return_item_collection_metrics", - &self.return_item_collection_metrics, - ); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagResourceInputBody<'a> { - ///

            The DynamoDB resource that the tags will be removed from. This value is an Amazon - /// Resource Name (ARN).

            - pub resource_arn: &'a std::option::Option, - ///

            A list of tag keys. Existing tags of the resource whose keys are members of this list - /// will be removed from the DynamoDB resource.

            - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UntagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContinuousBackupsInputBody<'a> { - ///

            The name of the table.

            - pub table_name: &'a std::option::Option, - ///

            Represents the settings used to enable point in time recovery.

            - pub point_in_time_recovery_specification: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContinuousBackupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContinuousBackupsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field( - "point_in_time_recovery_specification", - &self.point_in_time_recovery_specification, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContributorInsightsInputBody<'a> { - ///

            The name of the table.

            - pub table_name: &'a std::option::Option, - ///

            The global secondary index name, if applicable.

            - pub index_name: &'a std::option::Option, - ///

            Represents the contributor insights action.

            - pub contributor_insights_action: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContributorInsightsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContributorInsightsInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.field( - "contributor_insights_action", - &self.contributor_insights_action, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGlobalTableInputBody<'a> { - ///

            The global table name.

            - pub global_table_name: &'a std::option::Option, - ///

            A list of Regions that should be added or removed from the global table.

            - pub replica_updates: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateGlobalTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGlobalTableInputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.field("replica_updates", &self.replica_updates); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGlobalTableSettingsInputBody<'a> { - ///

            The name of the global table

            - pub global_table_name: &'a std::option::Option, - ///

            The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode.

            - ///
              - ///
            • - ///

              - /// PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode.

              - ///
            • - ///
            • - ///

              - /// PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. - ///

              - ///
            • - ///
            - pub global_table_billing_mode: &'a std::option::Option, - ///

            The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. - ///

            - pub global_table_provisioned_write_capacity_units: &'a std::option::Option, - ///

            Auto scaling settings for managing provisioned write capacity for the global - /// table.

            - pub global_table_provisioned_write_capacity_auto_scaling_settings_update: - &'a std::option::Option, - ///

            Represents the settings of a global secondary index for a global table that will be modified.

            - pub global_table_global_secondary_index_settings_update: &'a std::option::Option< - std::vec::Vec, - >, - ///

            Represents the settings for a global table in a Region that will be modified.

            - pub replica_settings_update: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateGlobalTableSettingsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGlobalTableSettingsInputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.field("global_table_billing_mode", &self.global_table_billing_mode); - formatter.field( - "global_table_provisioned_write_capacity_units", - &self.global_table_provisioned_write_capacity_units, - ); - formatter.field( - "global_table_provisioned_write_capacity_auto_scaling_settings_update", - &self.global_table_provisioned_write_capacity_auto_scaling_settings_update, - ); - formatter.field( - "global_table_global_secondary_index_settings_update", - &self.global_table_global_secondary_index_settings_update, - ); - formatter.field("replica_settings_update", &self.replica_settings_update); - formatter.finish() - } -} - -///

            Represents the input of an UpdateItem operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateItemInputBody<'a> { - ///

            The name of the table containing the item to update.

            - pub table_name: &'a std::option::Option, - ///

            The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

            - ///

            For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

            - pub key: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use UpdateExpression instead. For more information, see - /// AttributeUpdates in the Amazon DynamoDB Developer Guide.

            - pub attribute_updates: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// Expected in the Amazon DynamoDB Developer Guide.

            - pub expected: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            This is a legacy parameter. Use ConditionExpression instead. For more information, see - /// ConditionalOperator in the Amazon DynamoDB Developer Guide.

            - pub conditional_operator: &'a std::option::Option, - ///

            Use ReturnValues if you want to get the item attributes as they appear - /// before or after they are updated. For UpdateItem, the valid values - /// are:

            - ///
              - ///
            • - ///

              - /// NONE - If ReturnValues is not specified, or if its value is - /// NONE, then nothing is returned. (This setting is the default for - /// ReturnValues.)

              - ///
            • - ///
            • - ///

              - /// ALL_OLD - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.

              - ///
            • - ///
            • - ///

              - /// UPDATED_OLD - Returns only the updated attributes, as they appeared before the UpdateItem operation.

              - ///
            • - ///
            • - ///

              - /// ALL_NEW - Returns all of the attributes of the item, as they appear after the UpdateItem operation.

              - ///
            • - ///
            • - ///

              - /// UPDATED_NEW - Returns only the updated attributes, as they appear after the UpdateItem operation.

              - ///
            • - ///
            - ///

            There is no additional cost associated with requesting a return value aside from the - /// small network and processing overhead of receiving a larger response. No read capacity - /// units are consumed.

            - ///

            The values returned are strongly consistent.

            - pub return_values: &'a std::option::Option, - ///

            Determines the level of detail about provisioned throughput consumption that is returned in the response:

            - ///
              - ///
            • - ///

              - /// INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

              - ///

              Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

              - ///
            • - ///
            • - ///

              - /// TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

              - ///
            • - ///
            • - ///

              - /// NONE - No ConsumedCapacity details are included in the response.

              - ///
            • - ///
            - pub return_consumed_capacity: &'a std::option::Option, - ///

            Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during - /// the operation are returned in the response. If set to NONE (the default), no statistics are returned.

            - pub return_item_collection_metrics: - &'a std::option::Option, - ///

            An expression that defines one or more attributes to be updated, the action to be - /// performed on them, and new values for them.

            - ///

            The following action values are available for UpdateExpression.

            - ///
              - ///
            • - ///

              - /// SET - Adds one or more attributes and values to an item. If any of - /// these attributes already exist, they are replaced by the new values. You can - /// also use SET to add or subtract from an attribute that is of type - /// Number. For example: SET myNum = myNum + :val - ///

              - ///

              - /// SET supports the following functions:

              - ///
                - ///
              • - ///

                - /// if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.

                - ///
              • - ///
              • - ///

                - /// list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.

                - ///
              • - ///
              - ///

              These function names are case-sensitive.

              - ///
            • - ///
            • - ///

              - /// REMOVE - Removes one or more attributes from an item.

              - ///
            • - ///
            • - ///

              - /// ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of - /// ADD depends on the data type of the attribute:

              - ///
                - ///
              • - ///

                If the existing attribute is a number, and if Value is also a number, then - /// Value is mathematically added to the existing attribute. If Value is a - /// negative number, then it is subtracted from the existing attribute.

                - /// - ///

                If you use ADD to increment or decrement a number value for an item - /// that doesn't exist before the update, DynamoDB uses 0 as the initial - /// value.

                - ///

                Similarly, if you use ADD for an existing item to increment - /// or decrement an attribute value that doesn't exist before the - /// update, DynamoDB uses 0 as the initial value. For - /// example, suppose that the item you want to update doesn't have an - /// attribute named itemcount, but you decide to - /// ADD the number 3 to this attribute - /// anyway. DynamoDB will create the itemcount attribute, - /// set its initial value to 0, and finally add - /// 3 to it. The result will be a new - /// itemcount attribute in the item, with a value of - /// 3.

                - ///
                - ///
              • - ///
              • - ///

                If the existing data type is a set and if Value is also a set, then - /// Value is added to the existing set. For example, if the attribute value is the set - /// [1,2], and the ADD action specified [3], then - /// the final attribute value is [1,2,3]. An error occurs if an ADD - /// action is specified for a set attribute and the attribute type specified does not - /// match the existing set type.

                - ///

                Both sets must have the same primitive data type. For example, if the existing data - /// type is a set of strings, the Value must also be a set of strings.

                - ///
              • - ///
              - /// - ///

              The ADD action only supports Number and set data types. In addition, - /// ADD can only be used on top-level attributes, not nested attributes.

              - ///
              - ///
            • - ///
            • - ///

              - /// DELETE - Deletes an element from a set.

              - ///

              If a set of values is specified, then those values are subtracted from the old - /// set. For example, if the attribute value was the set [a,b,c] and the - /// DELETE action specifies [a,c], then the final attribute value - /// is [b]. Specifying an empty set is an error.

              - /// - ///

              The DELETE action only supports set data types. In addition, - /// DELETE can only be used on top-level attributes, not nested attributes.

              - ///
              - ///
            • - ///
            - ///

            You can have many actions in a single expression, such as the following: SET a=:value1, - /// b=:value2 DELETE :value3, :value4, :value5 - ///

            - ///

            For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

            - pub update_expression: &'a std::option::Option, - ///

            A condition that must be satisfied in order for a conditional update to succeed.

            - ///

            An expression can contain any of the following:

            - ///
              - ///
            • - ///

              Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size - ///

              - ///

              These function names are case-sensitive.

              - ///
            • - ///
            • - ///

              Comparison operators: = | <> | - /// < | > | <= | >= | - /// BETWEEN | IN - ///

              - ///
            • - ///
            • - ///

              Logical operators: AND | OR | NOT - ///

              - ///
            • - ///
            - ///

            For more information about condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer - /// Guide.

            - pub condition_expression: &'a std::option::Option, - ///

            One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              To access an attribute whose name conflicts with a DynamoDB reserved word.

              - ///
            • - ///
            • - ///

              To create a placeholder for repeating occurrences of an attribute name in an expression.

              - ///
            • - ///
            • - ///

              To prevent special characters in an attribute name from being misinterpreted in an expression.

              - ///
            • - ///
            - ///

            Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

            - ///
              - ///
            • - ///

              - /// Percentile - ///

              - ///
            • - ///
            - ///

            The name of this attribute conflicts with a reserved word, so it cannot be used directly - /// in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer - /// Guide.) To work around this, you could specify the following for - /// ExpressionAttributeNames:

            - ///
              - ///
            • - ///

              - /// {"#P":"Percentile"} - ///

              - ///
            • - ///
            - ///

            You could then use this substitution in an expression, as in this example:

            - ///
              - ///
            • - ///

              - /// #P = :val - ///

              - ///
            • - ///
            - /// - ///

            Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

            - ///
            - ///

            For more information about expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_names: &'a std::option::Option< - std::collections::HashMap, - >, - ///

            One or more values that can be substituted in an expression.

            - ///

            Use the : (colon) character in an expression to - /// dereference an attribute value. For example, suppose that you wanted to check whether - /// the value of the ProductStatus attribute was one of the following:

            - ///

            - /// Available | Backordered | Discontinued - ///

            - ///

            You would first need to specify ExpressionAttributeValues as follows:

            - ///

            - /// { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } - ///

            - ///

            You could then use these values in an expression, such as this:

            - ///

            - /// ProductStatus IN (:avail, :back, :disc) - ///

            - ///

            For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer - /// Guide.

            - pub expression_attribute_values: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for UpdateItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateItemInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("key", &self.key); - formatter.field("attribute_updates", &self.attribute_updates); - formatter.field("expected", &self.expected); - formatter.field("conditional_operator", &self.conditional_operator); - formatter.field("return_values", &self.return_values); - formatter.field("return_consumed_capacity", &self.return_consumed_capacity); - formatter.field( - "return_item_collection_metrics", - &self.return_item_collection_metrics, - ); - formatter.field("update_expression", &self.update_expression); - formatter.field("condition_expression", &self.condition_expression); - formatter.field( - "expression_attribute_names", - &self.expression_attribute_names, - ); - formatter.field( - "expression_attribute_values", - &self.expression_attribute_values, - ); - formatter.finish() - } -} - -///

            Represents the input of an UpdateTable operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTableInputBody<'a> { - ///

            An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

            - pub attribute_definitions: - &'a std::option::Option>, - ///

            The name of the table to be updated.

            - pub table_name: &'a std::option::Option, - ///

            Controls how you are charged for read and write throughput and how you manage capacity. - /// When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial - /// provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes - /// over the past 30 minutes.

            - ///
              - ///
            • - ///

              - /// PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode.

              - ///
            • - ///
            • - ///

              - /// PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. - ///

              - ///
            • - ///
            - pub billing_mode: &'a std::option::Option, - ///

            The new provisioned throughput settings for the specified table or index.

            - pub provisioned_throughput: &'a std::option::Option, - ///

            An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

            - ///
              - ///
            • - ///

              - /// Create - add a new global secondary index to the table.

              - ///
            • - ///
            • - ///

              - /// Update - modify the provisioned throughput settings of an existing global secondary index.

              - ///
            • - ///
            • - ///

              - /// Delete - remove a global secondary index from the table.

              - ///
            • - ///
            - ///

            You can create or delete only one global secondary index per UpdateTable operation.

            - ///

            For more information, see Managing Global Secondary - /// Indexes in the Amazon DynamoDB Developer Guide.

            - pub global_secondary_index_updates: - &'a std::option::Option>, - ///

            Represents the DynamoDB Streams configuration for the table.

            - /// - ///

            You receive a ResourceInUseException if you try to enable a stream on a - /// table that already has a stream, or if you try to disable a stream on a table that - /// doesn't have a stream.

            - ///
            - pub stream_specification: &'a std::option::Option, - ///

            The new server-side encryption settings for the specified table.

            - pub sse_specification: &'a std::option::Option, - ///

            A list of replica update actions (create, delete, or update) for the table.

            - /// - ///

            This property only applies to Version 2019.11.21 of global tables.

            - ///
            - pub replica_updates: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateTableInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTableInputBody"); - formatter.field("attribute_definitions", &self.attribute_definitions); - formatter.field("table_name", &self.table_name); - formatter.field("billing_mode", &self.billing_mode); - formatter.field("provisioned_throughput", &self.provisioned_throughput); - formatter.field( - "global_secondary_index_updates", - &self.global_secondary_index_updates, - ); - formatter.field("stream_specification", &self.stream_specification); - formatter.field("sse_specification", &self.sse_specification); - formatter.field("replica_updates", &self.replica_updates); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTableReplicaAutoScalingInputBody<'a> { - ///

            Represents the auto scaling settings of the global secondary indexes of the replica - /// to be updated.

            - pub global_secondary_index_updates: - &'a std::option::Option>, - ///

            The name of the global table to be updated.

            - pub table_name: &'a std::option::Option, - ///

            Represents the auto scaling settings to be modified for a global table or global - /// secondary index.

            - pub provisioned_write_capacity_auto_scaling_update: - &'a std::option::Option, - ///

            Represents the auto scaling settings of replicas of the table that will be - /// modified.

            - pub replica_updates: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateTableReplicaAutoScalingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTableReplicaAutoScalingInputBody"); - formatter.field( - "global_secondary_index_updates", - &self.global_secondary_index_updates, - ); - formatter.field("table_name", &self.table_name); - formatter.field( - "provisioned_write_capacity_auto_scaling_update", - &self.provisioned_write_capacity_auto_scaling_update, - ); - formatter.field("replica_updates", &self.replica_updates); - formatter.finish() - } -} - -///

            Represents the input of an UpdateTimeToLive operation.

            -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTimeToLiveInputBody<'a> { - ///

            The name of the table to be configured.

            - pub table_name: &'a std::option::Option, - ///

            Represents the settings used to enable or disable Time to Live for the specified table.

            - pub time_to_live_specification: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateTimeToLiveInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTimeToLiveInputBody"); - formatter.field("table_name", &self.table_name); - formatter.field( - "time_to_live_specification", - &self.time_to_live_specification, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchExecuteStatementOutputBody { - ///

            - /// The response to each PartiQL statement in the batch. - ///

            - #[serde(rename = "Responses")] - #[serde(default)] - pub responses: std::option::Option>, -} -impl std::fmt::Debug for BatchExecuteStatementOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchExecuteStatementOutputBody"); - formatter.field("responses", &self.responses); - formatter.finish() - } -} - -///

            Represents the output of a BatchGetItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchGetItemOutputBody { - ///

            A map of table name to a list of items. Each object in Responses consists of a table - /// name, along with a map of attribute data consisting of the data type and attribute value.

            - #[serde(rename = "Responses")] - #[serde(default)] - pub responses: std::option::Option< - std::collections::HashMap< - std::string::String, - std::vec::Vec< - std::collections::HashMap, - >, - >, - >, - ///

            A map of tables and their respective keys that were not processed with the current response. - /// The UnprocessedKeys value is in the same form as RequestItems, so the value can - /// be provided directly to a subsequent BatchGetItem operation. For more information, see - /// RequestItems in the Request Parameters section.

            - ///

            Each element consists of:

            - ///
              - ///
            • - ///

              - /// Keys - An array of primary key attribute values that define specific items in the - /// table.

              - ///
            • - ///
            • - ///

              - /// ProjectionExpression - One or more attributes to be - /// retrieved from the table or index. By default, all attributes are returned. If a - /// requested attribute is not found, it does not appear in the result.

              - ///
            • - ///
            • - ///

              - /// ConsistentRead - The consistency of a read operation. If set to true, - /// then a strongly consistent read is used; otherwise, an eventually consistent read is - /// used.

              - ///
            • - ///
            - ///

            If there are no unprocessed keys remaining, the response contains an empty - /// UnprocessedKeys map.

            - #[serde(rename = "UnprocessedKeys")] - #[serde(default)] - pub unprocessed_keys: std::option::Option< - std::collections::HashMap, - >, - ///

            The read capacity units consumed by the entire BatchGetItem operation.

            - ///

            Each element consists of:

            - ///
              - ///
            • - ///

              - /// TableName - The table that consumed the provisioned throughput.

              - ///
            • - ///
            • - ///

              - /// CapacityUnits - The total number of capacity units consumed.

              - ///
            • - ///
            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option>, -} -impl std::fmt::Debug for BatchGetItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchGetItemOutputBody"); - formatter.field("responses", &self.responses); - formatter.field("unprocessed_keys", &self.unprocessed_keys); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.finish() - } -} - -///

            Represents the output of a BatchWriteItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchWriteItemOutputBody { - ///

            A map of tables and requests against those tables that were not processed. The - /// UnprocessedItems value is in the same form as RequestItems, so you can provide - /// this value directly to a subsequent BatchGetItem operation. For more information, see - /// RequestItems in the Request Parameters section.

            - ///

            Each UnprocessedItems entry consists of a table name and, for that table, a list of - /// operations to perform (DeleteRequest or PutRequest).

            - ///
              - ///
            • - ///

              - /// DeleteRequest - Perform a DeleteItem operation on the specified item. The - /// item to be deleted is identified by a Key subelement:

              - ///
                - ///
              • - ///

                - /// Key - A map of primary key attribute values that uniquely identify the item. - /// Each entry in this map consists of an attribute name and an attribute value.

                - ///
              • - ///
              - ///
            • - ///
            • - ///

              - /// PutRequest - Perform a PutItem operation on the specified item. The item to - /// be put is identified by an Item subelement:

              - ///
                - ///
              • - ///

                - /// Item - A map of attributes and their values. Each entry in this map consists - /// of an attribute name and an attribute value. Attribute values must not be null; string - /// and binary type attributes must have lengths greater than zero; and set type - /// attributes must not be empty. Requests that contain empty values will be rejected with - /// a ValidationException exception.

                - ///

                If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

                - ///
              • - ///
              - ///
            • - ///
            - ///

            If there are no unprocessed items remaining, the response contains an empty - /// UnprocessedItems map.

            - #[serde(rename = "UnprocessedItems")] - #[serde(default)] - pub unprocessed_items: std::option::Option< - std::collections::HashMap>, - >, - ///

            A list of tables that were processed by BatchWriteItem and, for each table, - /// information about any item collections that were affected by individual DeleteItem or - /// PutItem operations.

            - ///

            Each entry consists of the following subelements:

            - ///
              - ///
            • - ///

              - /// ItemCollectionKey - The partition key value of the item collection. This is the same as - /// the partition key value of the item.

              - ///
            • - ///
            • - ///

              - /// SizeEstimateRangeGB - An estimate of item collection size, expressed in GB. This is - /// a two-element array containing a lower bound and an upper bound for the estimate. The - /// estimate includes the size of all the items in the table, plus the size of all attributes - /// projected into all of the local secondary indexes on the table. Use this estimate to measure whether a - /// local secondary index is approaching its size limit.

              - ///

              The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

              - ///
            • - ///
            - #[serde(rename = "ItemCollectionMetrics")] - #[serde(default)] - pub item_collection_metrics: std::option::Option< - std::collections::HashMap< - std::string::String, - std::vec::Vec, - >, - >, - ///

            The capacity units consumed by the entire BatchWriteItem operation.

            - ///

            Each element consists of:

            - ///
              - ///
            • - ///

              - /// TableName - The table that consumed the provisioned throughput.

              - ///
            • - ///
            • - ///

              - /// CapacityUnits - The total number of capacity units consumed.

              - ///
            • - ///
            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option>, -} -impl std::fmt::Debug for BatchWriteItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchWriteItemOutputBody"); - formatter.field("unprocessed_items", &self.unprocessed_items); - formatter.field("item_collection_metrics", &self.item_collection_metrics); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateBackupOutputBody { - ///

            Contains the details of the backup created for the table.

            - #[serde(rename = "BackupDetails")] - #[serde(default)] - pub backup_details: std::option::Option, -} -impl std::fmt::Debug for CreateBackupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateBackupOutputBody"); - formatter.field("backup_details", &self.backup_details); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateGlobalTableOutputBody { - ///

            Contains the details of the global table.

            - #[serde(rename = "GlobalTableDescription")] - #[serde(default)] - pub global_table_description: std::option::Option, -} -impl std::fmt::Debug for CreateGlobalTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateGlobalTableOutputBody"); - formatter.field("global_table_description", &self.global_table_description); - formatter.finish() - } -} - -///

            Represents the output of a CreateTable operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTableOutputBody { - ///

            Represents the properties of the table.

            - #[serde(rename = "TableDescription")] - #[serde(default)] - pub table_description: std::option::Option, -} -impl std::fmt::Debug for CreateTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTableOutputBody"); - formatter.field("table_description", &self.table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteBackupOutputBody { - ///

            Contains the description of the backup created for the table.

            - #[serde(rename = "BackupDescription")] - #[serde(default)] - pub backup_description: std::option::Option, -} -impl std::fmt::Debug for DeleteBackupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteBackupOutputBody"); - formatter.field("backup_description", &self.backup_description); - formatter.finish() - } -} - -///

            Represents the output of a DeleteItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteItemOutputBody { - ///

            A map of attribute names to AttributeValue objects, representing the item as it - /// appeared before the DeleteItem operation. This map appears in the response only if - /// ReturnValues was specified as ALL_OLD in the request.

            - #[serde(rename = "Attributes")] - #[serde(default)] - pub attributes: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the DeleteItem operation. The data - /// returned includes the total provisioned throughput consumed, along with statistics for - /// the table and any indexes involved in the operation. ConsumedCapacity is - /// only returned if the ReturnConsumedCapacity parameter was specified. For - /// more information, see Provisioned Mode in the Amazon DynamoDB Developer - /// Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, - ///

            Information about item collections, if any, that were affected by the - /// DeleteItem operation. - /// ItemCollectionMetrics is only returned if the - /// ReturnItemCollectionMetrics parameter was specified. If the - /// table does not have any local secondary indexes, this information is not returned in the - /// response.

            - ///

            Each ItemCollectionMetrics - /// element consists of:

            - ///
              - ///
            • - ///

              - /// ItemCollectionKey - The partition key value of the item - /// collection. This is the same as the partition key value of the item itself.

              - ///
            • - ///
            • - ///

              - /// SizeEstimateRangeGB - An estimate of item collection size, - /// in gigabytes. This value is a two-element array - /// containing a lower bound and an upper bound for the - /// estimate. The estimate includes the size of all the - /// items in the table, plus the size of all attributes - /// projected into all of the local secondary indexes on that - /// table. Use this estimate to measure whether a local secondary index is approaching its size limit.

              - ///

              The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

              - ///
            • - ///
            - #[serde(rename = "ItemCollectionMetrics")] - #[serde(default)] - pub item_collection_metrics: std::option::Option, -} -impl std::fmt::Debug for DeleteItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteItemOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.field("item_collection_metrics", &self.item_collection_metrics); - formatter.finish() - } -} - -///

            Represents the output of a DeleteTable operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTableOutputBody { - ///

            Represents the properties of a table.

            - #[serde(rename = "TableDescription")] - #[serde(default)] - pub table_description: std::option::Option, -} -impl std::fmt::Debug for DeleteTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTableOutputBody"); - formatter.field("table_description", &self.table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeBackupOutputBody { - ///

            Contains the description of the backup created for the table.

            - #[serde(rename = "BackupDescription")] - #[serde(default)] - pub backup_description: std::option::Option, -} -impl std::fmt::Debug for DescribeBackupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeBackupOutputBody"); - formatter.field("backup_description", &self.backup_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContinuousBackupsOutputBody { - ///

            Represents the continuous backups and point in time recovery settings on the table.

            - #[serde(rename = "ContinuousBackupsDescription")] - #[serde(default)] - pub continuous_backups_description: - std::option::Option, -} -impl std::fmt::Debug for DescribeContinuousBackupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContinuousBackupsOutputBody"); - formatter.field( - "continuous_backups_description", - &self.continuous_backups_description, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContributorInsightsOutputBody { - ///

            The name of the table being described.

            - #[serde(rename = "TableName")] - #[serde(default)] - pub table_name: std::option::Option, - ///

            The name of the global secondary index being described.

            - #[serde(rename = "IndexName")] - #[serde(default)] - pub index_name: std::option::Option, - ///

            List of names of the associated Alpine rules.

            - #[serde(rename = "ContributorInsightsRuleList")] - #[serde(default)] - pub contributor_insights_rule_list: std::option::Option>, - ///

            Current Status contributor insights.

            - #[serde(rename = "ContributorInsightsStatus")] - #[serde(default)] - pub contributor_insights_status: std::option::Option, - ///

            Timestamp of the last time the status was changed.

            - #[serde(rename = "LastUpdateDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_update_date_time: std::option::Option, - ///

            Returns information about the last failure that encountered.

            - ///

            The most common exceptions for a FAILED status are:

            - ///
              - ///
            • - ///

              LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for - /// other tables/indexes OR disable Contributor Insights rules before retrying.

              - ///
            • - ///
            • - ///

              AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.

              - ///
            • - ///
            • - ///

              AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.

              - ///
            • - ///
            • - ///

              InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.

              - ///
            • - ///
            - #[serde(rename = "FailureException")] - #[serde(default)] - pub failure_exception: std::option::Option, -} -impl std::fmt::Debug for DescribeContributorInsightsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContributorInsightsOutputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.field( - "contributor_insights_rule_list", - &self.contributor_insights_rule_list, - ); - formatter.field( - "contributor_insights_status", - &self.contributor_insights_status, - ); - formatter.field("last_update_date_time", &self.last_update_date_time); - formatter.field("failure_exception", &self.failure_exception); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEndpointsOutputBody { - ///

            List of endpoints.

            - #[serde(rename = "Endpoints")] - #[serde(default)] - pub endpoints: std::option::Option>, -} -impl std::fmt::Debug for DescribeEndpointsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEndpointsOutputBody"); - formatter.field("endpoints", &self.endpoints); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExportOutputBody { - ///

            Represents the properties of the export.

            - #[serde(rename = "ExportDescription")] - #[serde(default)] - pub export_description: std::option::Option, -} -impl std::fmt::Debug for DescribeExportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExportOutputBody"); - formatter.field("export_description", &self.export_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeGlobalTableOutputBody { - ///

            Contains the details of the global table.

            - #[serde(rename = "GlobalTableDescription")] - #[serde(default)] - pub global_table_description: std::option::Option, -} -impl std::fmt::Debug for DescribeGlobalTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeGlobalTableOutputBody"); - formatter.field("global_table_description", &self.global_table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeGlobalTableSettingsOutputBody { - ///

            The name of the global table.

            - #[serde(rename = "GlobalTableName")] - #[serde(default)] - pub global_table_name: std::option::Option, - ///

            The Region-specific settings for the global table.

            - #[serde(rename = "ReplicaSettings")] - #[serde(default)] - pub replica_settings: - std::option::Option>, -} -impl std::fmt::Debug for DescribeGlobalTableSettingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeGlobalTableSettingsOutputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.field("replica_settings", &self.replica_settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeKinesisStreamingDestinationOutputBody { - ///

            The name of the table being described.

            - #[serde(rename = "TableName")] - #[serde(default)] - pub table_name: std::option::Option, - ///

            The list of replica structures for the table being described.

            - #[serde(rename = "KinesisDataStreamDestinations")] - #[serde(default)] - pub kinesis_data_stream_destinations: - std::option::Option>, -} -impl std::fmt::Debug for DescribeKinesisStreamingDestinationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeKinesisStreamingDestinationOutputBody"); - formatter.field("table_name", &self.table_name); - formatter.field( - "kinesis_data_stream_destinations", - &self.kinesis_data_stream_destinations, - ); - formatter.finish() - } -} - -///

            Represents the output of a DescribeLimits operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLimitsOutputBody { - ///

            The maximum total read capacity units that your account allows you to provision across - /// all of your tables in this Region.

            - #[serde(rename = "AccountMaxReadCapacityUnits")] - #[serde(default)] - pub account_max_read_capacity_units: std::option::Option, - ///

            The maximum total write capacity units that your account allows you to provision across - /// all of your tables in this Region.

            - #[serde(rename = "AccountMaxWriteCapacityUnits")] - #[serde(default)] - pub account_max_write_capacity_units: std::option::Option, - ///

            The maximum read capacity units that your account allows you to provision for a new - /// table that you are creating in this Region, including the read capacity units - /// provisioned for its global secondary indexes (GSIs).

            - #[serde(rename = "TableMaxReadCapacityUnits")] - #[serde(default)] - pub table_max_read_capacity_units: std::option::Option, - ///

            The maximum write capacity units that your account allows you to provision for a new - /// table that you are creating in this Region, including the write capacity units - /// provisioned for its global secondary indexes (GSIs).

            - #[serde(rename = "TableMaxWriteCapacityUnits")] - #[serde(default)] - pub table_max_write_capacity_units: std::option::Option, -} -impl std::fmt::Debug for DescribeLimitsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLimitsOutputBody"); - formatter.field( - "account_max_read_capacity_units", - &self.account_max_read_capacity_units, - ); - formatter.field( - "account_max_write_capacity_units", - &self.account_max_write_capacity_units, - ); - formatter.field( - "table_max_read_capacity_units", - &self.table_max_read_capacity_units, - ); - formatter.field( - "table_max_write_capacity_units", - &self.table_max_write_capacity_units, - ); - formatter.finish() - } -} - -///

            Represents the output of a DescribeTable operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTableOutputBody { - ///

            The properties of the table.

            - #[serde(rename = "Table")] - #[serde(default)] - pub table: std::option::Option, -} -impl std::fmt::Debug for DescribeTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTableOutputBody"); - formatter.field("table", &self.table); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTableReplicaAutoScalingOutputBody { - ///

            Represents the auto scaling properties of the table.

            - #[serde(rename = "TableAutoScalingDescription")] - #[serde(default)] - pub table_auto_scaling_description: - std::option::Option, -} -impl std::fmt::Debug for DescribeTableReplicaAutoScalingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTableReplicaAutoScalingOutputBody"); - formatter.field( - "table_auto_scaling_description", - &self.table_auto_scaling_description, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTimeToLiveOutputBody { - ///

            - #[serde(rename = "TimeToLiveDescription")] - #[serde(default)] - pub time_to_live_description: std::option::Option, -} -impl std::fmt::Debug for DescribeTimeToLiveOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTimeToLiveOutputBody"); - formatter.field("time_to_live_description", &self.time_to_live_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableKinesisStreamingDestinationOutputBody { - ///

            The name of the table being modified.

            - #[serde(rename = "TableName")] - #[serde(default)] - pub table_name: std::option::Option, - ///

            The ARN for the specific Kinesis data stream.

            - #[serde(rename = "StreamArn")] - #[serde(default)] - pub stream_arn: std::option::Option, - ///

            The current status of the replication.

            - #[serde(rename = "DestinationStatus")] - #[serde(default)] - pub destination_status: std::option::Option, -} -impl std::fmt::Debug for DisableKinesisStreamingDestinationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableKinesisStreamingDestinationOutputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("destination_status", &self.destination_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableKinesisStreamingDestinationOutputBody { - ///

            The name of the table being modified.

            - #[serde(rename = "TableName")] - #[serde(default)] - pub table_name: std::option::Option, - ///

            The ARN for the specific Kinesis data stream.

            - #[serde(rename = "StreamArn")] - #[serde(default)] - pub stream_arn: std::option::Option, - ///

            The current status of the replication.

            - #[serde(rename = "DestinationStatus")] - #[serde(default)] - pub destination_status: std::option::Option, -} -impl std::fmt::Debug for EnableKinesisStreamingDestinationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableKinesisStreamingDestinationOutputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("destination_status", &self.destination_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteStatementOutputBody { - ///

            - /// If a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty. - ///

            - #[serde(rename = "Items")] - #[serde(default)] - pub items: std::option::Option< - std::vec::Vec>, - >, - ///

            - /// If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results. - ///

            - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ExecuteStatementOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteStatementOutputBody"); - formatter.field("items", &self.items); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteTransactionOutputBody { - ///

            - /// The response to a PartiQL transaction. - ///

            - #[serde(rename = "Responses")] - #[serde(default)] - pub responses: std::option::Option>, -} -impl std::fmt::Debug for ExecuteTransactionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteTransactionOutputBody"); - formatter.field("responses", &self.responses); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportTableToPointInTimeOutputBody { - ///

            Contains a description of the table export.

            - #[serde(rename = "ExportDescription")] - #[serde(default)] - pub export_description: std::option::Option, -} -impl std::fmt::Debug for ExportTableToPointInTimeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportTableToPointInTimeOutputBody"); - formatter.field("export_description", &self.export_description); - formatter.finish() - } -} - -///

            Represents the output of a GetItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetItemOutputBody { - ///

            A map of attribute names to AttributeValue objects, as specified - /// by ProjectionExpression.

            - #[serde(rename = "Item")] - #[serde(default)] - pub item: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the GetItem operation. The data returned - /// includes the total provisioned throughput consumed, along with statistics for the table - /// and any indexes involved in the operation. ConsumedCapacity is only - /// returned if the ReturnConsumedCapacity parameter was specified. For more - /// information, see Read/Write Capacity Mode in the Amazon DynamoDB Developer - /// Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, -} -impl std::fmt::Debug for GetItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetItemOutputBody"); - formatter.field("item", &self.item); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListBackupsOutputBody { - ///

            List of BackupSummary objects.

            - #[serde(rename = "BackupSummaries")] - #[serde(default)] - pub backup_summaries: std::option::Option>, - ///

            - /// The ARN of the backup last evaluated when the current page of results was returned, - /// inclusive of the current page of results. This value may be specified as the - /// ExclusiveStartBackupArn of a new ListBackups operation in order to fetch the next page of results. - ///

            - ///

            - /// If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are no - /// more results to be retrieved. - ///

            - ///

            If LastEvaluatedBackupArn is not empty, this may or may not indicate that - /// there is more data to be returned. All results are guaranteed to have been returned if - /// and only if no value for LastEvaluatedBackupArn is returned.

            - #[serde(rename = "LastEvaluatedBackupArn")] - #[serde(default)] - pub last_evaluated_backup_arn: std::option::Option, -} -impl std::fmt::Debug for ListBackupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListBackupsOutputBody"); - formatter.field("backup_summaries", &self.backup_summaries); - formatter.field("last_evaluated_backup_arn", &self.last_evaluated_backup_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContributorInsightsOutputBody { - ///

            A list of ContributorInsightsSummary.

            - #[serde(rename = "ContributorInsightsSummaries")] - #[serde(default)] - pub contributor_insights_summaries: - std::option::Option>, - ///

            A token to go to the next page if there is one.

            - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListContributorInsightsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContributorInsightsOutputBody"); - formatter.field( - "contributor_insights_summaries", - &self.contributor_insights_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListExportsOutputBody { - ///

            A list of ExportSummary objects.

            - #[serde(rename = "ExportSummaries")] - #[serde(default)] - pub export_summaries: std::option::Option>, - ///

            If this value is returned, there are additional results to be displayed. To retrieve - /// them, call ListExports again, with NextToken set to this - /// value.

            - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListExportsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListExportsOutputBody"); - formatter.field("export_summaries", &self.export_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListGlobalTablesOutputBody { - ///

            List of global table names.

            - #[serde(rename = "GlobalTables")] - #[serde(default)] - pub global_tables: std::option::Option>, - ///

            Last evaluated global table name.

            - #[serde(rename = "LastEvaluatedGlobalTableName")] - #[serde(default)] - pub last_evaluated_global_table_name: std::option::Option, -} -impl std::fmt::Debug for ListGlobalTablesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListGlobalTablesOutputBody"); - formatter.field("global_tables", &self.global_tables); - formatter.field( - "last_evaluated_global_table_name", - &self.last_evaluated_global_table_name, - ); - formatter.finish() - } -} - -///

            Represents the output of a ListTables operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTablesOutputBody { - ///

            The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

            - ///

            If LastEvaluatedTableName also appears in the output, you can use this value as the - /// ExclusiveStartTableName parameter in a subsequent ListTables request and - /// obtain the next page of results.

            - #[serde(rename = "TableNames")] - #[serde(default)] - pub table_names: std::option::Option>, - ///

            The name of the last table in the current page of results. Use this value as the - /// ExclusiveStartTableName in a new request to obtain the next page of results, until - /// all the table names are returned.

            - ///

            If you do not receive a LastEvaluatedTableName value in the response, this means that - /// there are no more table names to be retrieved.

            - #[serde(rename = "LastEvaluatedTableName")] - #[serde(default)] - pub last_evaluated_table_name: std::option::Option, -} -impl std::fmt::Debug for ListTablesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTablesOutputBody"); - formatter.field("table_names", &self.table_names); - formatter.field("last_evaluated_table_name", &self.last_evaluated_table_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsOfResourceOutputBody { - ///

            The tags currently associated with the Amazon DynamoDB resource.

            - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

            If this value is returned, there are additional results to be displayed. To retrieve them, - /// call ListTagsOfResource again, with NextToken set to this value.

            - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTagsOfResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsOfResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

            Represents the output of a PutItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutItemOutputBody { - ///

            The attribute values as they appeared before the PutItem operation, but only if - /// ReturnValues is specified as ALL_OLD in the request. Each element - /// consists of an attribute name and an attribute value.

            - #[serde(rename = "Attributes")] - #[serde(default)] - pub attributes: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the PutItem operation. The data returned - /// includes the total provisioned throughput consumed, along with statistics for the table - /// and any indexes involved in the operation. ConsumedCapacity is only - /// returned if the ReturnConsumedCapacity parameter was specified. For more - /// information, see Read/Write Capacity Mode in the Amazon DynamoDB Developer - /// Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, - ///

            Information about item collections, if any, that were affected by the - /// PutItem operation. ItemCollectionMetrics - /// is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local - /// secondary indexes, this information is not returned in the response.

            - ///

            Each ItemCollectionMetrics - /// element consists of:

            - ///
              - ///
            • - ///

              - /// ItemCollectionKey - The partition key value of the item - /// collection. This is the same as the partition key value of the item itself.

              - ///
            • - ///
            • - ///

              - /// SizeEstimateRangeGB - An estimate of item collection size, - /// in gigabytes. This value is a two-element array - /// containing a lower bound and an upper bound for the - /// estimate. The estimate includes the size of all the - /// items in the table, plus the size of all attributes - /// projected into all of the local secondary indexes on that - /// table. Use this estimate to measure whether a local secondary index is approaching its size limit.

              - ///

              The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

              - ///
            • - ///
            - #[serde(rename = "ItemCollectionMetrics")] - #[serde(default)] - pub item_collection_metrics: std::option::Option, -} -impl std::fmt::Debug for PutItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutItemOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.field("item_collection_metrics", &self.item_collection_metrics); - formatter.finish() - } -} - -///

            Represents the output of a Query operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct QueryOutputBody { - ///

            An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.

            - #[serde(rename = "Items")] - #[serde(default)] - pub items: std::option::Option< - std::vec::Vec>, - >, - ///

            The number of items in the response.

            - ///

            If you used a QueryFilter in the request, then Count is the number of items - /// returned after the filter was applied, and ScannedCount is the number of - /// matching items before the filter was applied.

            - ///

            If you did not use a filter in the request, then Count and ScannedCount are the - /// same.

            - #[serde(rename = "Count")] - #[serde(default)] - pub count: i32, - ///

            The number of items evaluated, before any QueryFilter is applied. A high - /// ScannedCount value with few, or no, Count results indicates an inefficient - /// Query operation. For more information, see Count and ScannedCount in the - /// Amazon DynamoDB Developer Guide.

            - ///

            If you did not use a filter in the request, then ScannedCount is the same as - /// Count.

            - #[serde(rename = "ScannedCount")] - #[serde(default)] - pub scanned_count: i32, - ///

            The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

            - ///

            If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved.

            - ///

            If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

            - #[serde(rename = "LastEvaluatedKey")] - #[serde(default)] - pub last_evaluated_key: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the Query operation. The data returned - /// includes the total provisioned throughput consumed, along with statistics for the table - /// and any indexes involved in the operation. ConsumedCapacity is only - /// returned if the ReturnConsumedCapacity parameter was specified. For more - /// information, see Provisioned Throughput in the Amazon DynamoDB Developer - /// Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, -} -impl std::fmt::Debug for QueryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("QueryOutputBody"); - formatter.field("items", &self.items); - formatter.field("count", &self.count); - formatter.field("scanned_count", &self.scanned_count); - formatter.field("last_evaluated_key", &self.last_evaluated_key); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreTableFromBackupOutputBody { - ///

            The description of the table created from an existing backup.

            - #[serde(rename = "TableDescription")] - #[serde(default)] - pub table_description: std::option::Option, -} -impl std::fmt::Debug for RestoreTableFromBackupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreTableFromBackupOutputBody"); - formatter.field("table_description", &self.table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreTableToPointInTimeOutputBody { - ///

            Represents the properties of a table.

            - #[serde(rename = "TableDescription")] - #[serde(default)] - pub table_description: std::option::Option, -} -impl std::fmt::Debug for RestoreTableToPointInTimeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreTableToPointInTimeOutputBody"); - formatter.field("table_description", &self.table_description); - formatter.finish() - } -} - -///

            Represents the output of a Scan operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ScanOutputBody { - ///

            An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

            - #[serde(rename = "Items")] - #[serde(default)] - pub items: std::option::Option< - std::vec::Vec>, - >, - ///

            The number of items in the response.

            - ///

            If you set ScanFilter in the request, then Count is the number of items - /// returned after the filter was applied, and ScannedCount is the number of matching items - /// before the filter was applied.

            - ///

            If you did not use a filter in the request, then Count is the same as - /// ScannedCount.

            - #[serde(rename = "Count")] - #[serde(default)] - pub count: i32, - ///

            The number of items evaluated, before any ScanFilter is applied. A high - /// ScannedCount value with few, or no, Count results indicates an inefficient - /// Scan operation. For more information, see Count and ScannedCount in the - /// Amazon DynamoDB Developer Guide.

            - ///

            If you did not use a filter in the request, then ScannedCount is the same as - /// Count.

            - #[serde(rename = "ScannedCount")] - #[serde(default)] - pub scanned_count: i32, - ///

            The primary key of the item where the operation stopped, inclusive of the previous - /// result set. Use this value to start a new operation, excluding this value in the new - /// request.

            - ///

            If LastEvaluatedKey is empty, then the "last page" of results - /// has been processed and there is no more data to be retrieved.

            - ///

            If LastEvaluatedKey is not empty, it does not necessarily mean - /// that there is more data in the result set. The only way to know when you have reached - /// the end of the result set is when LastEvaluatedKey is - /// empty.

            - #[serde(rename = "LastEvaluatedKey")] - #[serde(default)] - pub last_evaluated_key: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the Scan operation. The data returned includes the total - /// provisioned throughput consumed, along with statistics for the table and any indexes involved - /// in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. - /// For more information, see Provisioned - /// Throughput in the Amazon DynamoDB Developer Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, -} -impl std::fmt::Debug for ScanOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ScanOutputBody"); - formatter.field("items", &self.items); - formatter.field("count", &self.count); - formatter.field("scanned_count", &self.scanned_count); - formatter.field("last_evaluated_key", &self.last_evaluated_key); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactGetItemsOutputBody { - ///

            If the ReturnConsumedCapacity value was TOTAL, - /// this is an array of ConsumedCapacity objects, one for each table - /// addressed by TransactGetItem objects in the TransactItems - /// parameter. These ConsumedCapacity objects report the read-capacity - /// units consumed by the TransactGetItems call in that table.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option>, - ///

            An ordered array of up to 25 ItemResponse objects, each of which corresponds - /// to the TransactGetItem object in the same position in the - /// TransactItems array. Each ItemResponse object - /// contains a Map of the name-value pairs that are the projected attributes of - /// the requested item.

            - ///

            If a requested item could not be retrieved, the corresponding ItemResponse - /// object is Null, or if the requested item has no projected attributes, the corresponding - /// ItemResponse object is an empty Map.

            - #[serde(rename = "Responses")] - #[serde(default)] - pub responses: std::option::Option>, -} -impl std::fmt::Debug for TransactGetItemsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactGetItemsOutputBody"); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.field("responses", &self.responses); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TransactWriteItemsOutputBody { - ///

            The capacity units consumed by the entire TransactWriteItems - /// operation. The values of the list are ordered according to - /// the ordering of the TransactItems request parameter. - ///

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option>, - ///

            A list of tables that were processed by TransactWriteItems and, for each - /// table, information about any item collections that were affected by individual - /// UpdateItem, PutItem, or DeleteItem - /// operations.

            - #[serde(rename = "ItemCollectionMetrics")] - #[serde(default)] - pub item_collection_metrics: std::option::Option< - std::collections::HashMap< - std::string::String, - std::vec::Vec, - >, - >, -} -impl std::fmt::Debug for TransactWriteItemsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransactWriteItemsOutputBody"); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.field("item_collection_metrics", &self.item_collection_metrics); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContinuousBackupsOutputBody { - ///

            Represents the continuous backups and point in time recovery settings on the table.

            - #[serde(rename = "ContinuousBackupsDescription")] - #[serde(default)] - pub continuous_backups_description: - std::option::Option, -} -impl std::fmt::Debug for UpdateContinuousBackupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContinuousBackupsOutputBody"); - formatter.field( - "continuous_backups_description", - &self.continuous_backups_description, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContributorInsightsOutputBody { - ///

            The name of the table.

            - #[serde(rename = "TableName")] - #[serde(default)] - pub table_name: std::option::Option, - ///

            The name of the global secondary index, if applicable.

            - #[serde(rename = "IndexName")] - #[serde(default)] - pub index_name: std::option::Option, - ///

            The status of contributor insights

            - #[serde(rename = "ContributorInsightsStatus")] - #[serde(default)] - pub contributor_insights_status: std::option::Option, -} -impl std::fmt::Debug for UpdateContributorInsightsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContributorInsightsOutputBody"); - formatter.field("table_name", &self.table_name); - formatter.field("index_name", &self.index_name); - formatter.field( - "contributor_insights_status", - &self.contributor_insights_status, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGlobalTableOutputBody { - ///

            Contains the details of the global table.

            - #[serde(rename = "GlobalTableDescription")] - #[serde(default)] - pub global_table_description: std::option::Option, -} -impl std::fmt::Debug for UpdateGlobalTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGlobalTableOutputBody"); - formatter.field("global_table_description", &self.global_table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateGlobalTableSettingsOutputBody { - ///

            The name of the global table.

            - #[serde(rename = "GlobalTableName")] - #[serde(default)] - pub global_table_name: std::option::Option, - ///

            The Region-specific settings for the global table.

            - #[serde(rename = "ReplicaSettings")] - #[serde(default)] - pub replica_settings: - std::option::Option>, -} -impl std::fmt::Debug for UpdateGlobalTableSettingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateGlobalTableSettingsOutputBody"); - formatter.field("global_table_name", &self.global_table_name); - formatter.field("replica_settings", &self.replica_settings); - formatter.finish() - } -} - -///

            Represents the output of an UpdateItem operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateItemOutputBody { - ///

            A map of attribute values as they appear before or after the UpdateItem - /// operation, as determined by the ReturnValues parameter.

            - ///

            The Attributes map is only present if ReturnValues was - /// specified as something other than NONE in the request. Each element - /// represents one attribute.

            - #[serde(rename = "Attributes")] - #[serde(default)] - pub attributes: std::option::Option< - std::collections::HashMap, - >, - ///

            The capacity units consumed by the UpdateItem operation. The data returned includes the total - /// provisioned throughput consumed, along with statistics for the table and any indexes involved - /// in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. - /// For more information, see Provisioned - /// Throughput in the Amazon DynamoDB Developer Guide.

            - #[serde(rename = "ConsumedCapacity")] - #[serde(default)] - pub consumed_capacity: std::option::Option, - ///

            Information about item collections, if any, that were affected by the - /// UpdateItem operation. - /// ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table - /// does not have any local secondary indexes, this information is not - /// returned in the response.

            - ///

            Each ItemCollectionMetrics - /// element consists of:

            - ///
              - ///
            • - ///

              - /// ItemCollectionKey - The partition key value of the item - /// collection. This is the same as the partition key value of the item itself.

              - ///
            • - ///
            • - ///

              - /// SizeEstimateRangeGB - An estimate of item collection size, - /// in gigabytes. This value is a two-element array - /// containing a lower bound and an upper bound for the - /// estimate. The estimate includes the size of all the - /// items in the table, plus the size of all attributes - /// projected into all of the local secondary indexes on that - /// table. Use this estimate to measure whether a local secondary index is approaching its size limit.

              - ///

              The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

              - ///
            • - ///
            - #[serde(rename = "ItemCollectionMetrics")] - #[serde(default)] - pub item_collection_metrics: std::option::Option, -} -impl std::fmt::Debug for UpdateItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateItemOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.field("consumed_capacity", &self.consumed_capacity); - formatter.field("item_collection_metrics", &self.item_collection_metrics); - formatter.finish() - } -} - -///

            Represents the output of an UpdateTable operation.

            -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTableOutputBody { - ///

            Represents the properties of the table.

            - #[serde(rename = "TableDescription")] - #[serde(default)] - pub table_description: std::option::Option, -} -impl std::fmt::Debug for UpdateTableOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTableOutputBody"); - formatter.field("table_description", &self.table_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTableReplicaAutoScalingOutputBody { - ///

            Returns information about the auto scaling settings of a table with replicas.

            - #[serde(rename = "TableAutoScalingDescription")] - #[serde(default)] - pub table_auto_scaling_description: - std::option::Option, -} -impl std::fmt::Debug for UpdateTableReplicaAutoScalingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTableReplicaAutoScalingOutputBody"); - formatter.field( - "table_auto_scaling_description", - &self.table_auto_scaling_description, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTimeToLiveOutputBody { - ///

            Represents the output of an UpdateTimeToLive operation.

            - #[serde(rename = "TimeToLiveSpecification")] - #[serde(default)] - pub time_to_live_specification: std::option::Option, -} -impl std::fmt::Debug for UpdateTimeToLiveOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTimeToLiveOutputBody"); - formatter.field( - "time_to_live_specification", - &self.time_to_live_specification, - ); - formatter.finish() - } -} diff --git a/sdk/ec2/Cargo.toml b/sdk/ec2/Cargo.toml index 69c81251f552..caa4034a15ed 100644 --- a/sdk/ec2/Cargo.toml +++ b/sdk/ec2/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-ec2" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon Elastic Compute Cloud\n

            Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS Cloud. \n Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications \n faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the \n AWS Cloud where you can launch AWS resources in a virtual network that you've defined. Amazon Elastic Block Store \n (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available \n and reliable storage volumes that can be attached to any running instance and used like a hard drive.

            \n

            To learn more, see the following resources:

            \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -28,14 +28,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/ec2/src/client.rs b/sdk/ec2/src/client.rs index 0a91d4ce15de..919bfe601a56 100644 --- a/sdk/ec2/src/client.rs +++ b/sdk/ec2/src/client.rs @@ -31548,7 +31548,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::EnableVolumeIOOutput, + crate::output::EnableVolumeIoOutput, smithy_http::result::SdkError, > where diff --git a/sdk/ec2/src/input.rs b/sdk/ec2/src/input.rs index e87f87b932ac..d24487afbace 100644 --- a/sdk/ec2/src/input.rs +++ b/sdk/ec2/src/input.rs @@ -135,8 +135,9 @@ impl AcceptReservedInstancesExchangeQuoteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -144,7 +145,7 @@ impl AcceptReservedInstancesExchangeQuoteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -318,8 +319,9 @@ impl AcceptTransitGatewayMulticastDomainAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -327,7 +329,7 @@ impl AcceptTransitGatewayMulticastDomainAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -468,8 +470,9 @@ impl AcceptTransitGatewayPeeringAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -477,7 +480,7 @@ impl AcceptTransitGatewayPeeringAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -620,8 +623,9 @@ impl AcceptTransitGatewayVpcAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -629,7 +633,7 @@ impl AcceptTransitGatewayVpcAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -779,8 +783,9 @@ impl AcceptVpcEndpointConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -788,7 +793,7 @@ impl AcceptVpcEndpointConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -927,8 +932,9 @@ impl AcceptVpcPeeringConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -936,7 +942,7 @@ impl AcceptVpcPeeringConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1070,8 +1076,9 @@ impl AdvertiseByoipCidrInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1079,7 +1086,7 @@ impl AdvertiseByoipCidrInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1294,8 +1301,9 @@ impl AllocateAddressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1303,7 +1311,7 @@ impl AllocateAddressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1544,8 +1552,9 @@ impl AllocateHostsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1553,7 +1562,7 @@ impl AllocateHostsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1716,8 +1725,9 @@ impl ApplySecurityGroupsToClientVpnTargetNetworkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1725,7 +1735,7 @@ impl ApplySecurityGroupsToClientVpnTargetNetworkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1879,8 +1889,9 @@ impl AssignIpv6AddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1888,7 +1899,7 @@ impl AssignIpv6AddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2052,8 +2063,9 @@ impl AssignPrivateIpAddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2061,7 +2073,7 @@ impl AssignPrivateIpAddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2262,8 +2274,9 @@ impl AssociateAddressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2271,7 +2284,7 @@ impl AssociateAddressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2434,8 +2447,9 @@ impl AssociateClientVpnTargetNetworkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2443,7 +2457,7 @@ impl AssociateClientVpnTargetNetworkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2591,8 +2605,9 @@ impl AssociateDhcpOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2600,7 +2615,7 @@ impl AssociateDhcpOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2750,8 +2765,9 @@ impl AssociateEnclaveCertificateIamRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2759,7 +2775,7 @@ impl AssociateEnclaveCertificateIamRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2899,8 +2915,9 @@ impl AssociateIamInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2908,7 +2925,7 @@ impl AssociateIamInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3066,8 +3083,9 @@ impl AssociateRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3075,7 +3093,7 @@ impl AssociateRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3211,8 +3229,9 @@ impl AssociateSubnetCidrBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3220,7 +3239,7 @@ impl AssociateSubnetCidrBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3392,8 +3411,9 @@ impl AssociateTransitGatewayMulticastDomainInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3401,7 +3421,7 @@ impl AssociateTransitGatewayMulticastDomainInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3561,8 +3581,9 @@ impl AssociateTransitGatewayRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3570,7 +3591,7 @@ impl AssociateTransitGatewayRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3761,8 +3782,9 @@ impl AssociateVpcCidrBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3770,7 +3792,7 @@ impl AssociateVpcCidrBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3929,8 +3951,9 @@ impl AttachClassicLinkVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3938,7 +3961,7 @@ impl AttachClassicLinkVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4085,8 +4108,9 @@ impl AttachInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4094,7 +4118,7 @@ impl AttachInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4265,8 +4289,9 @@ impl AttachNetworkInterfaceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4274,7 +4299,7 @@ impl AttachNetworkInterfaceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4425,8 +4450,9 @@ impl AttachVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4434,7 +4460,7 @@ impl AttachVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4581,8 +4607,9 @@ impl AttachVpnGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4590,7 +4617,7 @@ impl AttachVpnGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4792,8 +4819,9 @@ impl AuthorizeClientVpnIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4801,7 +4829,7 @@ impl AuthorizeClientVpnIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5029,8 +5057,9 @@ impl AuthorizeSecurityGroupEgressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5038,7 +5067,7 @@ impl AuthorizeSecurityGroupEgressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5298,8 +5327,9 @@ impl AuthorizeSecurityGroupIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5307,7 +5337,7 @@ impl AuthorizeSecurityGroupIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5453,8 +5483,9 @@ impl BundleInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5462,7 +5493,7 @@ impl BundleInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5595,8 +5626,9 @@ impl CancelBundleTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5604,7 +5636,7 @@ impl CancelBundleTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5739,8 +5771,9 @@ impl CancelCapacityReservationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5748,7 +5781,7 @@ impl CancelCapacityReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5898,8 +5931,9 @@ impl CancelConversionTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5907,7 +5941,7 @@ impl CancelConversionTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6030,8 +6064,9 @@ impl CancelExportTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6039,7 +6074,7 @@ impl CancelExportTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6189,8 +6224,9 @@ impl CancelImportTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6198,7 +6234,7 @@ impl CancelImportTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6326,8 +6362,9 @@ impl CancelReservedInstancesListingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6335,7 +6372,7 @@ impl CancelReservedInstancesListingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6484,8 +6521,9 @@ impl CancelSpotFleetRequestsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6493,7 +6531,7 @@ impl CancelSpotFleetRequestsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6633,8 +6671,9 @@ impl CancelSpotInstanceRequestsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6642,7 +6681,7 @@ impl CancelSpotInstanceRequestsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6786,8 +6825,9 @@ impl ConfirmProductInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6795,7 +6835,7 @@ impl ConfirmProductInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6976,8 +7016,9 @@ impl CopyFpgaImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6985,7 +7026,7 @@ impl CopyFpgaImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7230,8 +7271,9 @@ impl CopyImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7239,7 +7281,7 @@ impl CopyImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7526,8 +7568,9 @@ impl CopySnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7535,7 +7578,7 @@ impl CopySnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7900,8 +7943,9 @@ impl CreateCapacityReservationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7909,7 +7953,7 @@ impl CreateCapacityReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8077,8 +8121,9 @@ impl CreateCarrierGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8086,7 +8131,7 @@ impl CreateCarrierGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8445,8 +8490,9 @@ impl CreateClientVpnEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8454,7 +8500,7 @@ impl CreateClientVpnEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8658,8 +8704,9 @@ impl CreateClientVpnRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8667,7 +8714,7 @@ impl CreateClientVpnRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8868,8 +8915,9 @@ impl CreateCustomerGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8877,7 +8925,7 @@ impl CreateCustomerGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9013,8 +9061,9 @@ impl CreateDefaultSubnetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9022,7 +9071,7 @@ impl CreateDefaultSubnetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9144,8 +9193,9 @@ impl CreateDefaultVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9153,7 +9203,7 @@ impl CreateDefaultVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9313,8 +9363,9 @@ impl CreateDhcpOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9322,7 +9373,7 @@ impl CreateDhcpOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9491,8 +9542,9 @@ impl CreateEgressOnlyInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9500,7 +9552,7 @@ impl CreateEgressOnlyInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9825,8 +9877,9 @@ impl CreateFleetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9834,7 +9887,7 @@ impl CreateFleetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10143,8 +10196,9 @@ impl CreateFlowLogsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10152,7 +10206,7 @@ impl CreateFlowLogsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10354,8 +10408,9 @@ impl CreateFpgaImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10363,7 +10418,7 @@ impl CreateFpgaImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10563,8 +10618,9 @@ impl CreateImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10572,7 +10628,7 @@ impl CreateImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10755,8 +10811,9 @@ impl CreateInstanceExportTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10764,7 +10821,7 @@ impl CreateInstanceExportTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10905,8 +10962,9 @@ impl CreateInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10914,7 +10972,7 @@ impl CreateInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11064,8 +11122,9 @@ impl CreateKeyPairInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11073,7 +11132,7 @@ impl CreateKeyPairInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11275,8 +11334,9 @@ impl CreateLaunchTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11284,7 +11344,7 @@ impl CreateLaunchTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11503,8 +11563,9 @@ impl CreateLaunchTemplateVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11512,7 +11573,7 @@ impl CreateLaunchTemplateVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11686,8 +11747,9 @@ impl CreateLocalGatewayRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11695,7 +11757,7 @@ impl CreateLocalGatewayRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11867,8 +11929,9 @@ impl CreateLocalGatewayRouteTableVpcAssociationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11876,7 +11939,7 @@ impl CreateLocalGatewayRouteTableVpcAssociationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12093,8 +12156,9 @@ impl CreateManagedPrefixListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12102,7 +12166,7 @@ impl CreateManagedPrefixListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12302,8 +12366,9 @@ impl CreateNatGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12311,7 +12376,7 @@ impl CreateNatGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12463,8 +12528,9 @@ impl CreateNetworkAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12472,7 +12538,7 @@ impl CreateNetworkAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12718,8 +12784,9 @@ impl CreateNetworkAclEntryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12727,7 +12794,7 @@ impl CreateNetworkAclEntryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12954,8 +13021,9 @@ impl CreateNetworkInsightsPathInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12963,7 +13031,7 @@ impl CreateNetworkInsightsPathInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13261,8 +13329,9 @@ impl CreateNetworkInterfaceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13270,7 +13339,7 @@ impl CreateNetworkInterfaceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13449,8 +13518,9 @@ impl CreateNetworkInterfacePermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13458,7 +13528,7 @@ impl CreateNetworkInterfacePermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13638,8 +13708,9 @@ impl CreatePlacementGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13647,7 +13718,7 @@ impl CreatePlacementGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13829,8 +13900,9 @@ impl CreateReplaceRootVolumeTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13838,7 +13910,7 @@ impl CreateReplaceRootVolumeTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14006,8 +14078,9 @@ impl CreateReservedInstancesListingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14015,7 +14088,7 @@ impl CreateReservedInstancesListingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14191,8 +14264,9 @@ impl CreateRestoreImageTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14200,7 +14274,7 @@ impl CreateRestoreImageTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14515,8 +14589,9 @@ impl CreateRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14524,7 +14599,7 @@ impl CreateRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14676,8 +14751,9 @@ impl CreateRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14685,7 +14761,7 @@ impl CreateRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14866,8 +14942,9 @@ impl CreateSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14875,7 +14952,7 @@ impl CreateSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15068,8 +15145,9 @@ impl CreateSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15077,7 +15155,7 @@ impl CreateSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15290,8 +15368,9 @@ impl CreateSnapshotsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15299,7 +15378,7 @@ impl CreateSnapshotsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15446,8 +15525,9 @@ impl CreateSpotDatafeedSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15455,7 +15535,7 @@ impl CreateSpotDatafeedSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15616,8 +15696,9 @@ impl CreateStoreImageTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15625,7 +15706,7 @@ impl CreateStoreImageTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15845,8 +15926,9 @@ impl CreateSubnetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15854,7 +15936,7 @@ impl CreateSubnetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16001,8 +16083,9 @@ impl CreateTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16010,7 +16093,7 @@ impl CreateTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16178,8 +16261,9 @@ impl CreateTrafficMirrorFilterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16187,7 +16271,7 @@ impl CreateTrafficMirrorFilterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16466,8 +16550,9 @@ impl CreateTrafficMirrorFilterRuleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16475,7 +16560,7 @@ impl CreateTrafficMirrorFilterRuleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16727,8 +16812,9 @@ impl CreateTrafficMirrorSessionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16736,7 +16822,7 @@ impl CreateTrafficMirrorSessionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16932,8 +17018,9 @@ impl CreateTrafficMirrorTargetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16941,7 +17028,7 @@ impl CreateTrafficMirrorTargetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17107,8 +17194,9 @@ impl CreateTransitGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17116,7 +17204,7 @@ impl CreateTransitGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17296,8 +17384,9 @@ impl CreateTransitGatewayConnectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17305,7 +17394,7 @@ impl CreateTransitGatewayConnectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17527,8 +17616,9 @@ impl CreateTransitGatewayConnectPeerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17536,7 +17626,7 @@ impl CreateTransitGatewayConnectPeerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17716,8 +17806,9 @@ impl CreateTransitGatewayMulticastDomainInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17725,7 +17816,7 @@ impl CreateTransitGatewayMulticastDomainInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17920,8 +18011,9 @@ impl CreateTransitGatewayPeeringAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17929,7 +18021,7 @@ impl CreateTransitGatewayPeeringAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18111,8 +18203,9 @@ impl CreateTransitGatewayPrefixListReferenceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18120,7 +18213,7 @@ impl CreateTransitGatewayPrefixListReferenceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18304,8 +18397,9 @@ impl CreateTransitGatewayRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18313,7 +18407,7 @@ impl CreateTransitGatewayRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18470,8 +18564,9 @@ impl CreateTransitGatewayRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18479,7 +18574,7 @@ impl CreateTransitGatewayRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18684,8 +18779,9 @@ impl CreateTransitGatewayVpcAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18693,7 +18789,7 @@ impl CreateTransitGatewayVpcAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19047,8 +19143,9 @@ impl CreateVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19056,7 +19153,7 @@ impl CreateVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19283,8 +19380,9 @@ impl CreateVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19292,7 +19390,7 @@ impl CreateVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19568,8 +19666,9 @@ impl CreateVpcEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19577,7 +19676,7 @@ impl CreateVpcEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19770,8 +19869,9 @@ impl CreateVpcEndpointConnectionNotificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19779,7 +19879,7 @@ impl CreateVpcEndpointConnectionNotificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19992,8 +20092,9 @@ impl CreateVpcEndpointServiceConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20001,7 +20102,7 @@ impl CreateVpcEndpointServiceConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20196,8 +20297,9 @@ impl CreateVpcPeeringConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20205,7 +20307,7 @@ impl CreateVpcPeeringConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20413,8 +20515,9 @@ impl CreateVpnConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20422,7 +20525,7 @@ impl CreateVpnConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20560,8 +20663,9 @@ impl CreateVpnConnectionRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20569,7 +20673,7 @@ impl CreateVpnConnectionRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20747,8 +20851,9 @@ impl CreateVpnGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20756,7 +20861,7 @@ impl CreateVpnGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20892,8 +20997,9 @@ impl DeleteCarrierGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20901,7 +21007,7 @@ impl DeleteCarrierGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21036,8 +21142,9 @@ impl DeleteClientVpnEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21045,7 +21152,7 @@ impl DeleteClientVpnEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21207,8 +21314,9 @@ impl DeleteClientVpnRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21216,7 +21324,7 @@ impl DeleteClientVpnRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21352,8 +21460,9 @@ impl DeleteCustomerGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21361,7 +21470,7 @@ impl DeleteCustomerGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21497,8 +21606,9 @@ impl DeleteDhcpOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21506,7 +21616,7 @@ impl DeleteDhcpOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21649,8 +21759,9 @@ impl DeleteEgressOnlyInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21658,7 +21769,7 @@ impl DeleteEgressOnlyInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21807,8 +21918,9 @@ impl DeleteFleetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21816,7 +21928,7 @@ impl DeleteFleetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21952,8 +22064,9 @@ impl DeleteFlowLogsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21961,7 +22074,7 @@ impl DeleteFlowLogsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22096,8 +22209,9 @@ impl DeleteFpgaImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22105,7 +22219,7 @@ impl DeleteFpgaImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22241,8 +22355,9 @@ impl DeleteInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22250,7 +22365,7 @@ impl DeleteInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22391,8 +22506,9 @@ impl DeleteKeyPairInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22400,7 +22516,7 @@ impl DeleteKeyPairInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22553,8 +22669,9 @@ impl DeleteLaunchTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22562,7 +22679,7 @@ impl DeleteLaunchTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22732,8 +22849,9 @@ impl DeleteLaunchTemplateVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22741,7 +22859,7 @@ impl DeleteLaunchTemplateVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22895,8 +23013,9 @@ impl DeleteLocalGatewayRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22904,7 +23023,7 @@ impl DeleteLocalGatewayRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23048,8 +23167,9 @@ impl DeleteLocalGatewayRouteTableVpcAssociationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23057,7 +23177,7 @@ impl DeleteLocalGatewayRouteTableVpcAssociationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23195,8 +23315,9 @@ impl DeleteManagedPrefixListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23204,7 +23325,7 @@ impl DeleteManagedPrefixListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23340,8 +23461,9 @@ impl DeleteNatGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23349,7 +23471,7 @@ impl DeleteNatGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23485,8 +23607,9 @@ impl DeleteNetworkAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23494,7 +23617,7 @@ impl DeleteNetworkAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23652,8 +23775,9 @@ impl DeleteNetworkAclEntryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23661,7 +23785,7 @@ impl DeleteNetworkAclEntryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23802,8 +23926,9 @@ impl DeleteNetworkInsightsAnalysisInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23811,7 +23936,7 @@ impl DeleteNetworkInsightsAnalysisInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23949,8 +24074,9 @@ impl DeleteNetworkInsightsPathInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23958,7 +24084,7 @@ impl DeleteNetworkInsightsPathInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24094,8 +24220,9 @@ impl DeleteNetworkInterfaceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24103,7 +24230,7 @@ impl DeleteNetworkInterfaceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24258,8 +24385,9 @@ impl DeleteNetworkInterfacePermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24267,7 +24395,7 @@ impl DeleteNetworkInterfacePermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24400,8 +24528,9 @@ impl DeletePlacementGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24409,7 +24538,7 @@ impl DeletePlacementGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24548,8 +24677,9 @@ impl DeleteQueuedReservedInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24557,7 +24687,7 @@ impl DeleteQueuedReservedInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24733,8 +24863,9 @@ impl DeleteRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24742,7 +24873,7 @@ impl DeleteRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24878,8 +25009,9 @@ impl DeleteRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24887,7 +25019,7 @@ impl DeleteRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25031,8 +25163,9 @@ impl DeleteSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25040,7 +25173,7 @@ impl DeleteSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25172,8 +25305,9 @@ impl DeleteSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25181,7 +25315,7 @@ impl DeleteSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25305,8 +25439,9 @@ impl DeleteSpotDatafeedSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25314,7 +25449,7 @@ impl DeleteSpotDatafeedSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25442,8 +25577,9 @@ impl DeleteSubnetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25451,7 +25587,7 @@ impl DeleteSubnetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25598,8 +25734,9 @@ impl DeleteTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25607,7 +25744,7 @@ impl DeleteTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25745,8 +25882,9 @@ impl DeleteTrafficMirrorFilterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25754,7 +25892,7 @@ impl DeleteTrafficMirrorFilterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25895,8 +26033,9 @@ impl DeleteTrafficMirrorFilterRuleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25904,7 +26043,7 @@ impl DeleteTrafficMirrorFilterRuleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26042,8 +26181,9 @@ impl DeleteTrafficMirrorSessionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26051,7 +26191,7 @@ impl DeleteTrafficMirrorSessionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26189,8 +26329,9 @@ impl DeleteTrafficMirrorTargetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26198,7 +26339,7 @@ impl DeleteTrafficMirrorTargetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26334,8 +26475,9 @@ impl DeleteTransitGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26343,7 +26485,7 @@ impl DeleteTransitGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26484,8 +26626,9 @@ impl DeleteTransitGatewayConnectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26493,7 +26636,7 @@ impl DeleteTransitGatewayConnectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26636,8 +26779,9 @@ impl DeleteTransitGatewayConnectPeerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26645,7 +26789,7 @@ impl DeleteTransitGatewayConnectPeerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26789,8 +26933,9 @@ impl DeleteTransitGatewayMulticastDomainInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26798,7 +26943,7 @@ impl DeleteTransitGatewayMulticastDomainInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26938,8 +27083,9 @@ impl DeleteTransitGatewayPeeringAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26947,7 +27093,7 @@ impl DeleteTransitGatewayPeeringAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27101,8 +27247,9 @@ impl DeleteTransitGatewayPrefixListReferenceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27110,7 +27257,7 @@ impl DeleteTransitGatewayPrefixListReferenceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27265,8 +27412,9 @@ impl DeleteTransitGatewayRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27274,7 +27422,7 @@ impl DeleteTransitGatewayRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27415,8 +27563,9 @@ impl DeleteTransitGatewayRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27424,7 +27573,7 @@ impl DeleteTransitGatewayRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27567,8 +27716,9 @@ impl DeleteTransitGatewayVpcAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27576,7 +27726,7 @@ impl DeleteTransitGatewayVpcAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27704,8 +27854,9 @@ impl DeleteVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27713,7 +27864,7 @@ impl DeleteVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27839,8 +27990,9 @@ impl DeleteVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27848,7 +28000,7 @@ impl DeleteVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27992,8 +28144,9 @@ impl DeleteVpcEndpointConnectionNotificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28001,7 +28154,7 @@ impl DeleteVpcEndpointConnectionNotificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28138,8 +28291,9 @@ impl DeleteVpcEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28147,7 +28301,7 @@ impl DeleteVpcEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28285,8 +28439,9 @@ impl DeleteVpcEndpointServiceConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28294,7 +28449,7 @@ impl DeleteVpcEndpointServiceConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28432,8 +28587,9 @@ impl DeleteVpcPeeringConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28441,7 +28597,7 @@ impl DeleteVpcPeeringConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28577,8 +28733,9 @@ impl DeleteVpnConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28586,7 +28743,7 @@ impl DeleteVpnConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28724,8 +28881,9 @@ impl DeleteVpnConnectionRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28733,7 +28891,7 @@ impl DeleteVpnConnectionRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28869,8 +29027,9 @@ impl DeleteVpnGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28878,7 +29037,7 @@ impl DeleteVpnGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29012,8 +29171,9 @@ impl DeprovisionByoipCidrInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29021,7 +29181,7 @@ impl DeprovisionByoipCidrInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29153,8 +29313,9 @@ impl DeregisterImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29162,7 +29323,7 @@ impl DeregisterImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29305,8 +29466,9 @@ impl DeregisterInstanceEventNotificationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29314,7 +29476,7 @@ impl DeregisterInstanceEventNotificationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29486,8 +29648,9 @@ impl DeregisterTransitGatewayMulticastGroupMembersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29495,7 +29658,7 @@ impl DeregisterTransitGatewayMulticastGroupMembersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29667,8 +29830,9 @@ impl DeregisterTransitGatewayMulticastGroupSourcesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29676,7 +29840,7 @@ impl DeregisterTransitGatewayMulticastGroupSourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29819,8 +29983,9 @@ impl DescribeAccountAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29828,7 +29993,7 @@ impl DescribeAccountAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29995,8 +30160,9 @@ impl DescribeAddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30004,7 +30170,7 @@ impl DescribeAddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30179,8 +30345,9 @@ impl DescribeAddressesAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30188,7 +30355,7 @@ impl DescribeAddressesAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30312,8 +30479,9 @@ impl DescribeAggregateIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30321,7 +30489,7 @@ impl DescribeAggregateIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30502,8 +30670,9 @@ impl DescribeAvailabilityZonesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30511,7 +30680,7 @@ impl DescribeAvailabilityZonesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30663,8 +30832,9 @@ impl DescribeBundleTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30672,7 +30842,7 @@ impl DescribeBundleTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30817,8 +30987,9 @@ impl DescribeByoipCidrsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30826,7 +30997,7 @@ impl DescribeByoipCidrsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31001,8 +31172,9 @@ impl DescribeCapacityReservationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31010,7 +31182,7 @@ impl DescribeCapacityReservationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31186,8 +31358,9 @@ impl DescribeCarrierGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31195,7 +31368,7 @@ impl DescribeCarrierGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31373,8 +31546,9 @@ impl DescribeClassicLinkInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31382,7 +31556,7 @@ impl DescribeClassicLinkInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31558,8 +31732,9 @@ impl DescribeClientVpnAuthorizationRulesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31567,7 +31742,7 @@ impl DescribeClientVpnAuthorizationRulesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31740,8 +31915,9 @@ impl DescribeClientVpnConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31749,7 +31925,7 @@ impl DescribeClientVpnConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31923,8 +32099,9 @@ impl DescribeClientVpnEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31932,7 +32109,7 @@ impl DescribeClientVpnEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32104,8 +32281,9 @@ impl DescribeClientVpnRoutesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32113,7 +32291,7 @@ impl DescribeClientVpnRoutesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32303,8 +32481,9 @@ impl DescribeClientVpnTargetNetworksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32312,7 +32491,7 @@ impl DescribeClientVpnTargetNetworksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32487,8 +32666,9 @@ impl DescribeCoipPoolsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32496,7 +32676,7 @@ impl DescribeCoipPoolsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32634,8 +32814,9 @@ impl DescribeConversionTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32643,7 +32824,7 @@ impl DescribeConversionTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32796,8 +32977,9 @@ impl DescribeCustomerGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32805,7 +32987,7 @@ impl DescribeCustomerGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32980,8 +33162,9 @@ impl DescribeDhcpOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32989,7 +33172,7 @@ impl DescribeDhcpOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -33172,8 +33355,9 @@ impl DescribeEgressOnlyInternetGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -33181,7 +33365,7 @@ impl DescribeEgressOnlyInternetGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -33357,8 +33541,9 @@ impl DescribeElasticGpusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -33366,7 +33551,7 @@ impl DescribeElasticGpusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -33541,8 +33726,9 @@ impl DescribeExportImageTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -33550,7 +33736,7 @@ impl DescribeExportImageTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -33689,8 +33875,9 @@ impl DescribeExportTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -33698,7 +33885,7 @@ impl DescribeExportTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -33860,8 +34047,9 @@ impl DescribeFastSnapshotRestoresInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -33869,7 +34057,7 @@ impl DescribeFastSnapshotRestoresInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34052,8 +34240,9 @@ impl DescribeFleetHistoryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34061,7 +34250,7 @@ impl DescribeFleetHistoryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34233,8 +34422,9 @@ impl DescribeFleetInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34242,7 +34432,7 @@ impl DescribeFleetInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34417,8 +34607,9 @@ impl DescribeFleetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34426,7 +34617,7 @@ impl DescribeFleetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34601,8 +34792,9 @@ impl DescribeFlowLogsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34610,7 +34802,7 @@ impl DescribeFlowLogsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34762,8 +34954,9 @@ impl DescribeFpgaImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34771,7 +34964,7 @@ impl DescribeFpgaImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -34960,8 +35153,9 @@ impl DescribeFpgaImagesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -34969,7 +35163,7 @@ impl DescribeFpgaImagesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35158,8 +35352,9 @@ impl DescribeHostReservationOfferingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35167,7 +35362,7 @@ impl DescribeHostReservationOfferingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35329,8 +35524,9 @@ impl DescribeHostReservationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35338,7 +35534,7 @@ impl DescribeHostReservationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35498,8 +35694,9 @@ impl DescribeHostsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35507,7 +35704,7 @@ impl DescribeHostsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35670,8 +35867,9 @@ impl DescribeIamInstanceProfileAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35679,7 +35877,7 @@ impl DescribeIamInstanceProfileAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35827,8 +36025,9 @@ impl DescribeIdentityIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35836,7 +36035,7 @@ impl DescribeIdentityIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -35969,8 +36168,9 @@ impl DescribeIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -35978,7 +36178,7 @@ impl DescribeIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -36129,8 +36329,9 @@ impl DescribeImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -36138,7 +36339,7 @@ impl DescribeImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -36319,8 +36520,9 @@ impl DescribeImagesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -36328,7 +36530,7 @@ impl DescribeImagesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -36503,8 +36705,9 @@ impl DescribeImportImageTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -36512,7 +36715,7 @@ impl DescribeImportImageTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -36689,8 +36892,9 @@ impl DescribeImportSnapshotTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -36698,7 +36902,7 @@ impl DescribeImportSnapshotTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -36847,8 +37051,9 @@ impl DescribeInstanceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -36856,7 +37061,7 @@ impl DescribeInstanceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37038,8 +37243,9 @@ impl DescribeInstanceCreditSpecificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37047,7 +37253,7 @@ impl DescribeInstanceCreditSpecificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37172,8 +37378,9 @@ impl DescribeInstanceEventNotificationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37181,7 +37388,7 @@ impl DescribeInstanceEventNotificationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37359,8 +37566,9 @@ impl DescribeInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37368,7 +37576,7 @@ impl DescribeInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37559,8 +37767,9 @@ impl DescribeInstanceStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37568,7 +37777,7 @@ impl DescribeInstanceStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37744,8 +37953,9 @@ impl DescribeInstanceTypeOfferingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37753,7 +37963,7 @@ impl DescribeInstanceTypeOfferingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -37928,8 +38138,9 @@ impl DescribeInstanceTypesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -37937,7 +38148,7 @@ impl DescribeInstanceTypesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -38113,8 +38324,9 @@ impl DescribeInternetGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -38122,7 +38334,7 @@ impl DescribeInternetGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -38297,8 +38509,9 @@ impl DescribeIpv6PoolsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -38306,7 +38519,7 @@ impl DescribeIpv6PoolsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -38473,8 +38686,9 @@ impl DescribeKeyPairsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -38482,7 +38696,7 @@ impl DescribeKeyPairsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -38675,8 +38889,9 @@ impl DescribeLaunchTemplatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -38684,7 +38899,7 @@ impl DescribeLaunchTemplatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -38919,8 +39134,9 @@ impl DescribeLaunchTemplateVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -38928,7 +39144,7 @@ impl DescribeLaunchTemplateVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -39111,8 +39327,9 @@ impl DescribeLocalGatewayRouteTablesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -39120,7 +39337,7 @@ impl DescribeLocalGatewayRouteTablesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -39305,8 +39522,9 @@ impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -39314,7 +39532,7 @@ impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -39499,8 +39717,9 @@ impl DescribeLocalGatewayRouteTableVpcAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -39508,7 +39727,7 @@ impl DescribeLocalGatewayRouteTableVpcAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -39684,8 +39903,9 @@ impl DescribeLocalGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -39693,7 +39913,7 @@ impl DescribeLocalGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -39878,8 +40098,9 @@ impl DescribeLocalGatewayVirtualInterfaceGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -39887,7 +40108,7 @@ impl DescribeLocalGatewayVirtualInterfaceGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -40068,8 +40289,9 @@ impl DescribeLocalGatewayVirtualInterfacesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -40077,7 +40299,7 @@ impl DescribeLocalGatewayVirtualInterfacesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -40254,8 +40476,9 @@ impl DescribeManagedPrefixListsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -40263,7 +40486,7 @@ impl DescribeManagedPrefixListsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -40442,8 +40665,9 @@ impl DescribeMovingAddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -40451,7 +40675,7 @@ impl DescribeMovingAddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -40626,8 +40850,9 @@ impl DescribeNatGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -40635,7 +40860,7 @@ impl DescribeNatGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -40810,8 +41035,9 @@ impl DescribeNetworkAclsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -40819,7 +41045,7 @@ impl DescribeNetworkAclsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41042,8 +41268,9 @@ impl DescribeNetworkInsightsAnalysesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41051,7 +41278,7 @@ impl DescribeNetworkInsightsAnalysesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41229,8 +41456,9 @@ impl DescribeNetworkInsightsPathsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41238,7 +41466,7 @@ impl DescribeNetworkInsightsPathsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41392,8 +41620,9 @@ impl DescribeNetworkInterfaceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41401,7 +41630,7 @@ impl DescribeNetworkInterfaceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41572,8 +41801,9 @@ impl DescribeNetworkInterfacePermissionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41581,7 +41811,7 @@ impl DescribeNetworkInterfacePermissionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41758,8 +41988,9 @@ impl DescribeNetworkInterfacesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41767,7 +41998,7 @@ impl DescribeNetworkInterfacesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -41935,8 +42166,9 @@ impl DescribePlacementGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -41944,7 +42176,7 @@ impl DescribePlacementGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -42119,8 +42351,9 @@ impl DescribePrefixListsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -42128,7 +42361,7 @@ impl DescribePrefixListsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -42290,8 +42523,9 @@ impl DescribePrincipalIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -42299,7 +42533,7 @@ impl DescribePrincipalIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -42462,8 +42696,9 @@ impl DescribePublicIpv4PoolsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -42471,7 +42706,7 @@ impl DescribePublicIpv4PoolsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -42633,8 +42868,9 @@ impl DescribeRegionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -42642,7 +42878,7 @@ impl DescribeRegionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -42823,8 +43059,9 @@ impl DescribeReplaceRootVolumeTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -42832,7 +43069,7 @@ impl DescribeReplaceRootVolumeTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -43015,8 +43252,9 @@ impl DescribeReservedInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -43024,7 +43262,7 @@ impl DescribeReservedInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -43183,8 +43421,9 @@ impl DescribeReservedInstancesListingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -43192,7 +43431,7 @@ impl DescribeReservedInstancesListingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -43347,8 +43586,9 @@ impl DescribeReservedInstancesModificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -43356,7 +43596,7 @@ impl DescribeReservedInstancesModificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -43683,8 +43923,9 @@ impl DescribeReservedInstancesOfferingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -43692,7 +43933,7 @@ impl DescribeReservedInstancesOfferingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -43867,8 +44108,9 @@ impl DescribeRouteTablesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -43876,7 +44118,7 @@ impl DescribeRouteTablesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -44102,8 +44344,9 @@ impl DescribeScheduledInstanceAvailabilityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -44111,7 +44354,7 @@ impl DescribeScheduledInstanceAvailabilityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -44308,8 +44551,9 @@ impl DescribeScheduledInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -44317,7 +44561,7 @@ impl DescribeScheduledInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -44456,8 +44700,9 @@ impl DescribeSecurityGroupReferencesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -44465,7 +44710,7 @@ impl DescribeSecurityGroupReferencesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -44657,8 +44902,9 @@ impl DescribeSecurityGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -44666,7 +44912,7 @@ impl DescribeSecurityGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -44814,8 +45060,9 @@ impl DescribeSnapshotAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -44823,7 +45070,7 @@ impl DescribeSnapshotAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45039,8 +45286,9 @@ impl DescribeSnapshotsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45048,7 +45296,7 @@ impl DescribeSnapshotsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45174,8 +45422,9 @@ impl DescribeSpotDatafeedSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45183,7 +45432,7 @@ impl DescribeSpotDatafeedSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45346,8 +45595,9 @@ impl DescribeSpotFleetInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45355,7 +45605,7 @@ impl DescribeSpotFleetInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45545,8 +45795,9 @@ impl DescribeSpotFleetRequestHistoryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45554,7 +45805,7 @@ impl DescribeSpotFleetRequestHistoryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45718,8 +45969,9 @@ impl DescribeSpotFleetRequestsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45727,7 +45979,7 @@ impl DescribeSpotFleetRequestsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -45907,8 +46159,9 @@ impl DescribeSpotInstanceRequestsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -45916,7 +46169,7 @@ impl DescribeSpotInstanceRequestsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -46147,8 +46400,9 @@ impl DescribeSpotPriceHistoryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -46156,7 +46410,7 @@ impl DescribeSpotPriceHistoryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -46313,8 +46567,9 @@ impl DescribeStaleSecurityGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -46322,7 +46577,7 @@ impl DescribeStaleSecurityGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -46500,8 +46755,9 @@ impl DescribeStoreImageTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -46509,7 +46765,7 @@ impl DescribeStoreImageTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -46683,8 +46939,9 @@ impl DescribeSubnetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -46692,7 +46949,7 @@ impl DescribeSubnetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -46848,8 +47105,9 @@ impl DescribeTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -46857,7 +47115,7 @@ impl DescribeTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47035,8 +47293,9 @@ impl DescribeTrafficMirrorFiltersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47044,7 +47303,7 @@ impl DescribeTrafficMirrorFiltersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47222,8 +47481,9 @@ impl DescribeTrafficMirrorSessionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47231,7 +47491,7 @@ impl DescribeTrafficMirrorSessionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47409,8 +47669,9 @@ impl DescribeTrafficMirrorTargetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47418,7 +47679,7 @@ impl DescribeTrafficMirrorTargetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47601,8 +47862,9 @@ impl DescribeTransitGatewayAttachmentsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47610,7 +47872,7 @@ impl DescribeTransitGatewayAttachmentsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47793,8 +48055,9 @@ impl DescribeTransitGatewayConnectPeersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47802,7 +48065,7 @@ impl DescribeTransitGatewayConnectPeersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -47983,8 +48246,9 @@ impl DescribeTransitGatewayConnectsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -47992,7 +48256,7 @@ impl DescribeTransitGatewayConnectsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -48174,8 +48438,9 @@ impl DescribeTransitGatewayMulticastDomainsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -48183,7 +48448,7 @@ impl DescribeTransitGatewayMulticastDomainsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -48365,8 +48630,9 @@ impl DescribeTransitGatewayPeeringAttachmentsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -48374,7 +48640,7 @@ impl DescribeTransitGatewayPeeringAttachmentsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -48557,8 +48823,9 @@ impl DescribeTransitGatewayRouteTablesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -48566,7 +48833,7 @@ impl DescribeTransitGatewayRouteTablesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -48742,8 +49009,9 @@ impl DescribeTransitGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -48751,7 +49019,7 @@ impl DescribeTransitGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -48935,8 +49203,9 @@ impl DescribeTransitGatewayVpcAttachmentsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -48944,7 +49213,7 @@ impl DescribeTransitGatewayVpcAttachmentsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49092,8 +49361,9 @@ impl DescribeVolumeAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49101,7 +49371,7 @@ impl DescribeVolumeAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49286,8 +49556,9 @@ impl DescribeVolumesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49295,7 +49566,7 @@ impl DescribeVolumesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49472,8 +49743,9 @@ impl DescribeVolumesModificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49481,7 +49753,7 @@ impl DescribeVolumesModificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49665,8 +49937,9 @@ impl DescribeVolumeStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49674,7 +49947,7 @@ impl DescribeVolumeStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49821,8 +50094,9 @@ impl DescribeVpcAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49830,7 +50104,7 @@ impl DescribeVpcAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -49982,8 +50256,9 @@ impl DescribeVpcClassicLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -49991,7 +50266,7 @@ impl DescribeVpcClassicLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -50142,8 +50417,9 @@ impl DescribeVpcClassicLinkDnsSupportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -50151,7 +50427,7 @@ impl DescribeVpcClassicLinkDnsSupportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -50328,8 +50604,9 @@ impl DescribeVpcEndpointConnectionNotificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -50337,7 +50614,7 @@ impl DescribeVpcEndpointConnectionNotificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -50503,8 +50780,9 @@ impl DescribeVpcEndpointConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -50512,7 +50790,7 @@ impl DescribeVpcEndpointConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -50687,8 +50965,9 @@ impl DescribeVpcEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -50696,7 +50975,7 @@ impl DescribeVpcEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -50877,8 +51156,9 @@ impl DescribeVpcEndpointServiceConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -50886,7 +51166,7 @@ impl DescribeVpcEndpointServiceConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51061,8 +51341,9 @@ impl DescribeVpcEndpointServicePermissionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51070,7 +51351,7 @@ impl DescribeVpcEndpointServicePermissionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51247,8 +51528,9 @@ impl DescribeVpcEndpointServicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51256,7 +51538,7 @@ impl DescribeVpcEndpointServicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51434,8 +51716,9 @@ impl DescribeVpcPeeringConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51443,7 +51726,7 @@ impl DescribeVpcPeeringConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51613,8 +51896,9 @@ impl DescribeVpcsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51622,7 +51906,7 @@ impl DescribeVpcsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51774,8 +52058,9 @@ impl DescribeVpnConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51783,7 +52068,7 @@ impl DescribeVpnConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -51935,8 +52220,9 @@ impl DescribeVpnGatewaysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -51944,7 +52230,7 @@ impl DescribeVpnGatewaysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52088,8 +52374,9 @@ impl DetachClassicLinkVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52097,7 +52384,7 @@ impl DetachClassicLinkVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52244,8 +52531,9 @@ impl DetachInternetGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52253,7 +52541,7 @@ impl DetachInternetGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52417,8 +52705,9 @@ impl DetachNetworkInterfaceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52426,7 +52715,7 @@ impl DetachNetworkInterfaceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52592,8 +52881,9 @@ impl DetachVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52601,7 +52891,7 @@ impl DetachVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52748,8 +53038,9 @@ impl DetachVpnGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52757,7 +53048,7 @@ impl DetachVpnGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -52881,8 +53172,9 @@ impl DisableEbsEncryptionByDefaultInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -52890,7 +53182,7 @@ impl DisableEbsEncryptionByDefaultInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53044,8 +53336,9 @@ impl DisableFastSnapshotRestoresInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53053,7 +53346,7 @@ impl DisableFastSnapshotRestoresInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53175,8 +53468,9 @@ impl DisableSerialConsoleAccessInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53184,7 +53478,7 @@ impl DisableSerialConsoleAccessInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53343,8 +53637,9 @@ impl DisableTransitGatewayRouteTablePropagationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53352,7 +53647,7 @@ impl DisableTransitGatewayRouteTablePropagationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53502,8 +53797,9 @@ impl DisableVgwRoutePropagationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53511,7 +53807,7 @@ impl DisableVgwRoutePropagationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53644,8 +53940,9 @@ impl DisableVpcClassicLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53653,7 +53950,7 @@ impl DisableVpcClassicLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53777,8 +54074,9 @@ impl DisableVpcClassicLinkDnsSupportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53786,7 +54084,7 @@ impl DisableVpcClassicLinkDnsSupportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -53933,8 +54231,9 @@ impl DisassociateAddressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -53942,7 +54241,7 @@ impl DisassociateAddressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54094,8 +54393,9 @@ impl DisassociateClientVpnTargetNetworkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54103,7 +54403,7 @@ impl DisassociateClientVpnTargetNetworkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54249,8 +54549,9 @@ impl DisassociateEnclaveCertificateIamRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54258,7 +54559,7 @@ impl DisassociateEnclaveCertificateIamRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54383,8 +54684,9 @@ impl DisassociateIamInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54392,7 +54694,7 @@ impl DisassociateIamInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54528,8 +54830,9 @@ impl DisassociateRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54537,7 +54840,7 @@ impl DisassociateRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54662,8 +54965,9 @@ impl DisassociateSubnetCidrBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54671,7 +54975,7 @@ impl DisassociateSubnetCidrBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -54845,8 +55149,9 @@ impl DisassociateTransitGatewayMulticastDomainInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -54854,7 +55159,7 @@ impl DisassociateTransitGatewayMulticastDomainInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55015,8 +55320,9 @@ impl DisassociateTransitGatewayRouteTableInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55024,7 +55330,7 @@ impl DisassociateTransitGatewayRouteTableInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55148,8 +55454,9 @@ impl DisassociateVpcCidrBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55157,7 +55464,7 @@ impl DisassociateVpcCidrBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55281,8 +55588,9 @@ impl EnableEbsEncryptionByDefaultInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55290,7 +55598,7 @@ impl EnableEbsEncryptionByDefaultInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55444,8 +55752,9 @@ impl EnableFastSnapshotRestoresInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55453,7 +55762,7 @@ impl EnableFastSnapshotRestoresInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55575,8 +55884,9 @@ impl EnableSerialConsoleAccessInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55584,7 +55894,7 @@ impl EnableSerialConsoleAccessInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55743,8 +56053,9 @@ impl EnableTransitGatewayRouteTablePropagationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55752,7 +56063,7 @@ impl EnableTransitGatewayRouteTablePropagationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55902,8 +56213,9 @@ impl EnableVgwRoutePropagationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -55911,7 +56223,7 @@ impl EnableVgwRoutePropagationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -55937,9 +56249,9 @@ impl EnableVgwRoutePropagationInput { } } -/// See [`EnableVolumeIOInput`](crate::input::EnableVolumeIOInput) +/// See [`EnableVolumeIoInput`](crate::input::EnableVolumeIoInput) pub mod enable_volume_io_input { - /// A builder for [`EnableVolumeIOInput`](crate::input::EnableVolumeIOInput) + /// A builder for [`EnableVolumeIoInput`](crate::input::EnableVolumeIoInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -55967,14 +56279,14 @@ pub mod enable_volume_io_input { self.volume_id = input; self } - /// Consumes the builder and constructs a [`EnableVolumeIOInput`](crate::input::EnableVolumeIOInput) + /// Consumes the builder and constructs a [`EnableVolumeIoInput`](crate::input::EnableVolumeIoInput) pub fn build( self, ) -> std::result::Result< - crate::input::EnableVolumeIOInput, + crate::input::EnableVolumeIoInput, smithy_http::operation::BuildError, > { - Ok(crate::input::EnableVolumeIOInput { + Ok(crate::input::EnableVolumeIoInput { dry_run: self.dry_run, volume_id: self.volume_id, }) @@ -55985,7 +56297,7 @@ pub mod enable_volume_io_input { pub type EnableVolumeIOInputOperationOutputAlias = crate::operation::EnableVolumeIO; #[doc(hidden)] pub type EnableVolumeIOInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl EnableVolumeIOInput { +impl EnableVolumeIoInput { /// Consumes the builder and constructs an Operation<[`EnableVolumeIO`](crate::operation::EnableVolumeIO)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -56043,8 +56355,9 @@ impl EnableVolumeIOInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56052,7 +56365,7 @@ impl EnableVolumeIOInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -56072,7 +56385,7 @@ impl EnableVolumeIOInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`EnableVolumeIOInput`](crate::input::EnableVolumeIOInput) + /// Creates a new builder-style object to manufacture [`EnableVolumeIoInput`](crate::input::EnableVolumeIoInput) pub fn builder() -> crate::input::enable_volume_io_input::Builder { crate::input::enable_volume_io_input::Builder::default() } @@ -56185,8 +56498,9 @@ impl EnableVpcClassicLinkInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56194,7 +56508,7 @@ impl EnableVpcClassicLinkInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -56318,8 +56632,9 @@ impl EnableVpcClassicLinkDnsSupportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56327,7 +56642,7 @@ impl EnableVpcClassicLinkDnsSupportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -56464,8 +56779,9 @@ impl ExportClientVpnClientCertificateRevocationListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56473,7 +56789,7 @@ impl ExportClientVpnClientCertificateRevocationListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -56612,8 +56928,9 @@ impl ExportClientVpnClientConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56621,7 +56938,7 @@ impl ExportClientVpnClientConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -56838,8 +57155,9 @@ impl ExportImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -56847,7 +57165,7 @@ impl ExportImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57014,8 +57332,9 @@ impl ExportTransitGatewayRoutesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57023,7 +57342,7 @@ impl ExportTransitGatewayRoutesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57159,8 +57478,9 @@ impl GetAssociatedEnclaveCertificateIamRolesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57168,7 +57488,7 @@ impl GetAssociatedEnclaveCertificateIamRolesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57326,8 +57646,9 @@ impl GetAssociatedIpv6PoolCidrsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57335,7 +57656,7 @@ impl GetAssociatedIpv6PoolCidrsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57494,8 +57815,9 @@ impl GetCapacityReservationUsageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57503,7 +57825,7 @@ impl GetCapacityReservationUsageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57674,8 +57996,9 @@ impl GetCoipPoolUsageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57683,7 +58006,7 @@ impl GetCoipPoolUsageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57828,8 +58151,9 @@ impl GetConsoleOutputInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57837,7 +58161,7 @@ impl GetConsoleOutputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -57982,8 +58306,9 @@ impl GetConsoleScreenshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -57991,7 +58316,7 @@ impl GetConsoleScreenshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58133,8 +58458,9 @@ impl GetDefaultCreditSpecificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58142,7 +58468,7 @@ impl GetDefaultCreditSpecificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58264,8 +58590,9 @@ impl GetEbsDefaultKmsKeyIdInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58273,7 +58600,7 @@ impl GetEbsDefaultKmsKeyIdInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58397,8 +58724,9 @@ impl GetEbsEncryptionByDefaultInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58406,7 +58734,7 @@ impl GetEbsEncryptionByDefaultInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58572,8 +58900,9 @@ impl GetFlowLogsIntegrationTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58581,7 +58910,7 @@ impl GetFlowLogsIntegrationTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58741,8 +59070,9 @@ impl GetGroupsForCapacityReservationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58750,7 +59080,7 @@ impl GetGroupsForCapacityReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -58889,8 +59219,9 @@ impl GetHostReservationPurchasePreviewInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -58898,7 +59229,7 @@ impl GetHostReservationPurchasePreviewInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59032,8 +59363,9 @@ impl GetLaunchTemplateDataInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59041,7 +59373,7 @@ impl GetLaunchTemplateDataInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59204,8 +59536,9 @@ impl GetManagedPrefixListAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59213,7 +59546,7 @@ impl GetManagedPrefixListAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59385,8 +59718,9 @@ impl GetManagedPrefixListEntriesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59394,7 +59728,7 @@ impl GetManagedPrefixListEntriesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59526,8 +59860,9 @@ impl GetPasswordDataInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59535,7 +59870,7 @@ impl GetPasswordDataInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59695,8 +60030,9 @@ impl GetReservedInstancesExchangeQuoteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59704,7 +60040,7 @@ impl GetReservedInstancesExchangeQuoteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -59826,8 +60162,9 @@ impl GetSerialConsoleAccessStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -59835,7 +60172,7 @@ impl GetSerialConsoleAccessStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60013,8 +60350,9 @@ impl GetTransitGatewayAttachmentPropagationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60022,7 +60360,7 @@ impl GetTransitGatewayAttachmentPropagationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60202,8 +60540,9 @@ impl GetTransitGatewayMulticastDomainAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60211,7 +60550,7 @@ impl GetTransitGatewayMulticastDomainAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60390,8 +60729,9 @@ impl GetTransitGatewayPrefixListReferencesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60399,7 +60739,7 @@ impl GetTransitGatewayPrefixListReferencesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60577,8 +60917,9 @@ impl GetTransitGatewayRouteTableAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60586,7 +60927,7 @@ impl GetTransitGatewayRouteTableAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60764,8 +61105,9 @@ impl GetTransitGatewayRouteTablePropagationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60773,7 +61115,7 @@ impl GetTransitGatewayRouteTablePropagationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -60928,8 +61270,9 @@ impl ImportClientVpnClientCertificateRevocationListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -60937,7 +61280,7 @@ impl ImportClientVpnClientCertificateRevocationListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -61264,8 +61607,9 @@ impl ImportImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -61273,7 +61617,7 @@ impl ImportImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -61452,8 +61796,9 @@ impl ImportInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -61461,7 +61806,7 @@ impl ImportInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -61624,8 +61969,9 @@ impl ImportKeyPairInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -61633,7 +61979,7 @@ impl ImportKeyPairInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -61880,8 +62226,9 @@ impl ImportSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -61889,7 +62236,7 @@ impl ImportSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -62059,8 +62406,9 @@ impl ImportVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -62068,7 +62416,7 @@ impl ImportVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -62215,8 +62563,9 @@ impl ModifyAddressAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -62224,7 +62573,7 @@ impl ModifyAddressAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -62379,8 +62728,9 @@ impl ModifyAvailabilityZoneGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -62388,7 +62738,7 @@ impl ModifyAvailabilityZoneGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -62592,8 +62942,9 @@ impl ModifyCapacityReservationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -62601,7 +62952,7 @@ impl ModifyCapacityReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -62891,8 +63242,9 @@ impl ModifyClientVpnEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -62900,7 +63252,7 @@ impl ModifyClientVpnEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -63057,8 +63409,9 @@ impl ModifyDefaultCreditSpecificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -63066,7 +63419,7 @@ impl ModifyDefaultCreditSpecificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -63221,8 +63574,9 @@ impl ModifyEbsDefaultKmsKeyIdInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -63230,7 +63584,7 @@ impl ModifyEbsDefaultKmsKeyIdInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -63416,8 +63770,9 @@ impl ModifyFleetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -63425,7 +63780,7 @@ impl ModifyFleetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -63671,8 +64026,9 @@ impl ModifyFpgaImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -63680,7 +64036,7 @@ impl ModifyFpgaImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -63868,8 +64224,9 @@ impl ModifyHostsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -63877,7 +64234,7 @@ impl ModifyHostsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -64035,8 +64392,9 @@ impl ModifyIdentityIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -64044,7 +64402,7 @@ impl ModifyIdentityIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -64185,8 +64543,9 @@ impl ModifyIdFormatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -64194,7 +64553,7 @@ impl ModifyIdFormatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -64443,8 +64802,9 @@ impl ModifyImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -64452,7 +64812,7 @@ impl ModifyImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -64823,8 +65183,9 @@ impl ModifyInstanceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -64832,7 +65193,7 @@ impl ModifyInstanceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -64984,8 +65345,9 @@ impl ModifyInstanceCapacityReservationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -64993,7 +65355,7 @@ impl ModifyInstanceCapacityReservationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -65154,8 +65516,9 @@ impl ModifyInstanceCreditSpecificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -65163,7 +65526,7 @@ impl ModifyInstanceCreditSpecificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -65323,8 +65686,9 @@ impl ModifyInstanceEventStartTimeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -65332,7 +65696,7 @@ impl ModifyInstanceEventStartTimeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -65521,8 +65885,9 @@ impl ModifyInstanceMetadataOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -65530,7 +65895,7 @@ impl ModifyInstanceMetadataOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -65728,8 +66093,9 @@ impl ModifyInstancePlacementInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -65737,7 +66103,7 @@ impl ModifyInstancePlacementInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -65918,8 +66284,9 @@ impl ModifyLaunchTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -65927,7 +66294,7 @@ impl ModifyLaunchTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -66124,8 +66491,9 @@ impl ModifyManagedPrefixListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -66133,7 +66501,7 @@ impl ModifyManagedPrefixListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -66336,8 +66704,9 @@ impl ModifyNetworkInterfaceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -66345,7 +66714,7 @@ impl ModifyNetworkInterfaceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -66501,8 +66870,9 @@ impl ModifyReservedInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -66510,7 +66880,7 @@ impl ModifyReservedInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -66720,8 +67090,9 @@ impl ModifySnapshotAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -66729,7 +67100,7 @@ impl ModifySnapshotAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -66911,8 +67282,9 @@ impl ModifySpotFleetRequestInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -66920,7 +67292,7 @@ impl ModifySpotFleetRequestInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -67118,8 +67490,9 @@ impl ModifySubnetAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -67127,7 +67500,7 @@ impl ModifySubnetAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -67304,8 +67677,9 @@ impl ModifyTrafficMirrorFilterNetworkServicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -67313,7 +67687,7 @@ impl ModifyTrafficMirrorFilterNetworkServicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -67599,8 +67973,9 @@ impl ModifyTrafficMirrorFilterRuleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -67608,7 +67983,7 @@ impl ModifyTrafficMirrorFilterRuleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -67838,8 +68213,9 @@ impl ModifyTrafficMirrorSessionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -67847,7 +68223,7 @@ impl ModifyTrafficMirrorSessionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68008,8 +68384,9 @@ impl ModifyTransitGatewayInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68017,7 +68394,7 @@ impl ModifyTransitGatewayInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68199,8 +68576,9 @@ impl ModifyTransitGatewayPrefixListReferenceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68208,7 +68586,7 @@ impl ModifyTransitGatewayPrefixListReferenceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68404,8 +68782,9 @@ impl ModifyTransitGatewayVpcAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68413,7 +68792,7 @@ impl ModifyTransitGatewayVpcAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68645,8 +69024,9 @@ impl ModifyVolumeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68654,7 +69034,7 @@ impl ModifyVolumeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68801,8 +69181,9 @@ impl ModifyVolumeAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68810,7 +69191,7 @@ impl ModifyVolumeAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -68964,8 +69345,9 @@ impl ModifyVpcAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -68973,7 +69355,7 @@ impl ModifyVpcAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -69239,8 +69621,9 @@ impl ModifyVpcEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -69248,7 +69631,7 @@ impl ModifyVpcEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -69417,8 +69800,9 @@ impl ModifyVpcEndpointConnectionNotificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -69426,7 +69810,7 @@ impl ModifyVpcEndpointConnectionNotificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -69672,8 +70056,9 @@ impl ModifyVpcEndpointServiceConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -69681,7 +70066,7 @@ impl ModifyVpcEndpointServiceConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -69850,8 +70235,9 @@ impl ModifyVpcEndpointServicePermissionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -69859,7 +70245,7 @@ impl ModifyVpcEndpointServicePermissionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70035,8 +70421,9 @@ impl ModifyVpcPeeringConnectionOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70044,7 +70431,7 @@ impl ModifyVpcPeeringConnectionOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70191,8 +70578,9 @@ impl ModifyVpcTenancyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70200,7 +70588,7 @@ impl ModifyVpcTenancyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70378,8 +70766,9 @@ impl ModifyVpnConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70387,7 +70776,7 @@ impl ModifyVpnConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70588,8 +70977,9 @@ impl ModifyVpnConnectionOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70597,7 +70987,7 @@ impl ModifyVpnConnectionOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70752,8 +71142,9 @@ impl ModifyVpnTunnelCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70761,7 +71152,7 @@ impl ModifyVpnTunnelCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -70932,8 +71323,9 @@ impl ModifyVpnTunnelOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -70941,7 +71333,7 @@ impl ModifyVpnTunnelOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71077,8 +71469,9 @@ impl MonitorInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71086,7 +71479,7 @@ impl MonitorInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71219,8 +71612,9 @@ impl MoveAddressToVpcInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71228,7 +71622,7 @@ impl MoveAddressToVpcInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71425,8 +71819,9 @@ impl ProvisionByoipCidrInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71434,7 +71829,7 @@ impl ProvisionByoipCidrInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71632,8 +72027,9 @@ impl PurchaseHostReservationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71641,7 +72037,7 @@ impl PurchaseHostReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71823,8 +72219,9 @@ impl PurchaseReservedInstancesOfferingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71832,7 +72229,7 @@ impl PurchaseReservedInstancesOfferingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -71990,8 +72387,9 @@ impl PurchaseScheduledInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -71999,7 +72397,7 @@ impl PurchaseScheduledInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -72135,8 +72533,9 @@ impl RebootInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -72144,7 +72543,7 @@ impl RebootInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -72449,8 +72848,9 @@ impl RegisterImageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -72458,7 +72858,7 @@ impl RegisterImageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -72601,8 +73001,9 @@ impl RegisterInstanceEventNotificationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -72610,7 +73011,7 @@ impl RegisterInstanceEventNotificationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -72782,8 +73183,9 @@ impl RegisterTransitGatewayMulticastGroupMembersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -72791,7 +73193,7 @@ impl RegisterTransitGatewayMulticastGroupMembersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -72963,8 +73365,9 @@ impl RegisterTransitGatewayMulticastGroupSourcesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -72972,7 +73375,7 @@ impl RegisterTransitGatewayMulticastGroupSourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73147,8 +73550,9 @@ impl RejectTransitGatewayMulticastDomainAssociationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73156,7 +73560,7 @@ impl RejectTransitGatewayMulticastDomainAssociationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73297,8 +73701,9 @@ impl RejectTransitGatewayPeeringAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73306,7 +73711,7 @@ impl RejectTransitGatewayPeeringAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73449,8 +73854,9 @@ impl RejectTransitGatewayVpcAttachmentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73458,7 +73864,7 @@ impl RejectTransitGatewayVpcAttachmentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73608,8 +74014,9 @@ impl RejectVpcEndpointConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73617,7 +74024,7 @@ impl RejectVpcEndpointConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73755,8 +74162,9 @@ impl RejectVpcPeeringConnectionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73764,7 +74172,7 @@ impl RejectVpcPeeringConnectionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -73929,8 +74337,9 @@ impl ReleaseAddressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -73938,7 +74347,7 @@ impl ReleaseAddressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -74057,8 +74466,9 @@ impl ReleaseHostsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -74066,7 +74476,7 @@ impl ReleaseHostsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -74212,8 +74622,9 @@ impl ReplaceIamInstanceProfileAssociationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -74221,7 +74632,7 @@ impl ReplaceIamInstanceProfileAssociationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -74373,8 +74784,9 @@ impl ReplaceNetworkAclAssociationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -74382,7 +74794,7 @@ impl ReplaceNetworkAclAssociationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -74628,8 +75040,9 @@ impl ReplaceNetworkAclEntryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -74637,7 +75050,7 @@ impl ReplaceNetworkAclEntryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -74963,8 +75376,9 @@ impl ReplaceRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -74972,7 +75386,7 @@ impl ReplaceRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -75124,8 +75538,9 @@ impl ReplaceRouteTableAssociationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -75133,7 +75548,7 @@ impl ReplaceRouteTableAssociationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -75316,8 +75731,9 @@ impl ReplaceTransitGatewayRouteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -75325,7 +75741,7 @@ impl ReplaceTransitGatewayRouteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -75528,8 +75944,9 @@ impl ReportInstanceStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -75537,7 +75954,7 @@ impl ReportInstanceStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -75677,8 +76094,9 @@ impl RequestSpotFleetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -75686,7 +76104,7 @@ impl RequestSpotFleetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76003,8 +76421,9 @@ impl RequestSpotInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76012,7 +76431,7 @@ impl RequestSpotInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76162,8 +76581,9 @@ impl ResetAddressAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76171,7 +76591,7 @@ impl ResetAddressAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76295,8 +76715,9 @@ impl ResetEbsDefaultKmsKeyIdInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76304,7 +76725,7 @@ impl ResetEbsDefaultKmsKeyIdInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76455,8 +76876,9 @@ impl ResetFpgaImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76464,7 +76886,7 @@ impl ResetFpgaImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76611,8 +77033,9 @@ impl ResetImageAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76620,7 +77043,7 @@ impl ResetImageAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76772,8 +77195,9 @@ impl ResetInstanceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76781,7 +77205,7 @@ impl ResetInstanceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -76933,8 +77357,9 @@ impl ResetNetworkInterfaceAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -76942,7 +77367,7 @@ impl ResetNetworkInterfaceAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -77090,8 +77515,9 @@ impl ResetSnapshotAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -77099,7 +77525,7 @@ impl ResetSnapshotAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -77233,8 +77659,9 @@ impl RestoreAddressToClassicInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -77242,7 +77669,7 @@ impl RestoreAddressToClassicInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -77404,8 +77831,9 @@ impl RestoreManagedPrefixListVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -77413,7 +77841,7 @@ impl RestoreManagedPrefixListVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -77586,8 +78014,9 @@ impl RevokeClientVpnIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -77595,7 +78024,7 @@ impl RevokeClientVpnIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -77823,8 +78252,9 @@ impl RevokeSecurityGroupEgressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -77832,7 +78262,7 @@ impl RevokeSecurityGroupEgressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -78075,8 +78505,9 @@ impl RevokeSecurityGroupIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -78084,7 +78515,7 @@ impl RevokeSecurityGroupIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -78831,8 +79262,9 @@ impl RunInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -78840,7 +79272,7 @@ impl RunInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79022,8 +79454,9 @@ impl RunScheduledInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79031,7 +79464,7 @@ impl RunScheduledInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79209,8 +79642,9 @@ impl SearchLocalGatewayRoutesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79218,7 +79652,7 @@ impl SearchLocalGatewayRoutesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79400,8 +79834,9 @@ impl SearchTransitGatewayMulticastGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79409,7 +79844,7 @@ impl SearchTransitGatewayMulticastGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79576,8 +80011,9 @@ impl SearchTransitGatewayRoutesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79585,7 +80021,7 @@ impl SearchTransitGatewayRoutesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79719,8 +80155,9 @@ impl SendDiagnosticInterruptInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79728,7 +80165,7 @@ impl SendDiagnosticInterruptInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -79878,8 +80315,9 @@ impl StartInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -79887,7 +80325,7 @@ impl StartInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80074,8 +80512,9 @@ impl StartNetworkInsightsAnalysisInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80083,7 +80522,7 @@ impl StartNetworkInsightsAnalysisInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80219,8 +80658,9 @@ impl StartVpcEndpointServicePrivateDnsVerificationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80228,7 +80668,7 @@ impl StartVpcEndpointServicePrivateDnsVerificationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80396,8 +80836,9 @@ impl StopInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80405,7 +80846,7 @@ impl StopInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80567,8 +81008,9 @@ impl TerminateClientVpnConnectionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80576,7 +81018,7 @@ impl TerminateClientVpnConnectionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80713,8 +81155,9 @@ impl TerminateInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80722,7 +81165,7 @@ impl TerminateInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -80860,8 +81303,9 @@ impl UnassignIpv6AddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -80869,7 +81313,7 @@ impl UnassignIpv6AddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -81009,8 +81453,9 @@ impl UnassignPrivateIpAddressesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -81018,7 +81463,7 @@ impl UnassignPrivateIpAddressesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -81155,8 +81600,9 @@ impl UnmonitorInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -81164,7 +81610,7 @@ impl UnmonitorInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -81329,8 +81775,9 @@ impl UpdateSecurityGroupRuleDescriptionsEgressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -81338,7 +81785,7 @@ impl UpdateSecurityGroupRuleDescriptionsEgressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -81504,8 +81951,9 @@ impl UpdateSecurityGroupRuleDescriptionsIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -81513,7 +81961,7 @@ impl UpdateSecurityGroupRuleDescriptionsIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -81647,8 +82095,9 @@ impl WithdrawByoipCidrInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -81656,7 +82105,7 @@ impl WithdrawByoipCidrInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -86433,7 +86882,7 @@ impl std::fmt::Debug for EnableVpcClassicLinkInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableVolumeIOInput { +pub struct EnableVolumeIoInput { ///

            Checks whether you have the required permissions for the action, without actually making the request, /// and provides an error response. If you have the required permissions, the error response is DryRunOperation. /// Otherwise, it is UnauthorizedOperation.

            @@ -86441,9 +86890,9 @@ pub struct EnableVolumeIOInput { ///

            The ID of the volume.

            pub volume_id: std::option::Option, } -impl std::fmt::Debug for EnableVolumeIOInput { +impl std::fmt::Debug for EnableVolumeIoInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableVolumeIOInput"); + let mut formatter = f.debug_struct("EnableVolumeIoInput"); formatter.field("dry_run", &self.dry_run); formatter.field("volume_id", &self.volume_id); formatter.finish() diff --git a/sdk/ec2/src/lib.rs b/sdk/ec2/src/lib.rs index 69863a0986fe..422db73db96c 100644 --- a/sdk/ec2/src/lib.rs +++ b/sdk/ec2/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon Elastic Compute Cloud //!

            Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS Cloud. //! Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications diff --git a/sdk/ec2/src/model.rs b/sdk/ec2/src/model.rs index db20c9e767e8..c07150d85b22 100644 --- a/sdk/ec2/src/model.rs +++ b/sdk/ec2/src/model.rs @@ -137,7 +137,7 @@ impl std::convert::From<&str> for ByoipCidrState { impl std::str::FromStr for ByoipCidrState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ByoipCidrState::from(s)) } } @@ -163,15 +163,6 @@ impl AsRef for ByoipCidrState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ByoipCidrState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a set of permissions for a security group rule.

            #[non_exhaustive] @@ -855,7 +846,7 @@ impl std::convert::From<&str> for MonitoringState { impl std::str::FromStr for MonitoringState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringState::from(s)) } } @@ -875,15 +866,6 @@ impl AsRef for MonitoringState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an instance state change.

            #[non_exhaustive] @@ -1148,7 +1130,7 @@ impl std::convert::From<&str> for InstanceStateName { impl std::str::FromStr for InstanceStateName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceStateName::from(s)) } } @@ -1170,15 +1152,6 @@ impl AsRef for InstanceStateName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceStateName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about a terminated Client VPN endpoint client connection.

            #[non_exhaustive] @@ -1360,7 +1333,7 @@ impl std::convert::From<&str> for ClientVpnConnectionStatusCode { impl std::str::FromStr for ClientVpnConnectionStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnConnectionStatusCode::from(s)) } } @@ -1380,15 +1353,6 @@ impl AsRef for ClientVpnConnectionStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnConnectionStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a network insights analysis.

            #[non_exhaustive] @@ -3789,7 +3753,7 @@ impl std::convert::From<&str> for AnalysisStatus { impl std::str::FromStr for AnalysisStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AnalysisStatus::from(s)) } } @@ -3808,15 +3772,6 @@ impl AsRef for AnalysisStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AnalysisStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The tags to apply to a resource when the resource is being created.

            #[non_exhaustive] @@ -4046,7 +4001,7 @@ impl std::convert::From<&str> for ResourceType { impl std::str::FromStr for ResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceType::from(s)) } } @@ -4111,15 +4066,6 @@ impl AsRef for ResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a route for a transit gateway route table.

            #[non_exhaustive] @@ -4282,7 +4228,7 @@ impl std::convert::From<&str> for TransitGatewayRouteState { impl std::str::FromStr for TransitGatewayRouteState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayRouteState::from(s)) } } @@ -4303,15 +4249,6 @@ impl AsRef for TransitGatewayRouteState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayRouteState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4341,7 +4278,7 @@ impl std::convert::From<&str> for TransitGatewayRouteType { impl std::str::FromStr for TransitGatewayRouteType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayRouteType::from(s)) } } @@ -4359,15 +4296,6 @@ impl AsRef for TransitGatewayRouteType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayRouteType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a route attachment.

            #[non_exhaustive] @@ -4496,7 +4424,7 @@ impl std::convert::From<&str> for TransitGatewayAttachmentResourceType { impl std::str::FromStr for TransitGatewayAttachmentResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayAttachmentResourceType::from(s)) } } @@ -4518,15 +4446,6 @@ impl AsRef for TransitGatewayAttachmentResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayAttachmentResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            A filter name and value pair that is used to return a more specific list of results from a describe operation. /// Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

            @@ -4840,7 +4759,7 @@ impl std::convert::From<&str> for MembershipType { impl std::str::FromStr for MembershipType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MembershipType::from(s)) } } @@ -4858,15 +4777,6 @@ impl AsRef for MembershipType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MembershipType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a route for a local gateway route table.

            #[non_exhaustive] @@ -5071,7 +4981,7 @@ impl std::convert::From<&str> for LocalGatewayRouteState { impl std::str::FromStr for LocalGatewayRouteState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LocalGatewayRouteState::from(s)) } } @@ -5092,15 +5002,6 @@ impl AsRef for LocalGatewayRouteState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LocalGatewayRouteState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5130,7 +5031,7 @@ impl std::convert::From<&str> for LocalGatewayRouteType { impl std::str::FromStr for LocalGatewayRouteType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LocalGatewayRouteType::from(s)) } } @@ -5148,15 +5049,6 @@ impl AsRef for LocalGatewayRouteType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LocalGatewayRouteType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the launch specification for a Scheduled Instance.

            ///

            If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. @@ -7165,7 +7057,7 @@ impl std::convert::From<&str> for BootModeValues { impl std::str::FromStr for BootModeValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BootModeValues::from(s)) } } @@ -7183,15 +7075,6 @@ impl AsRef for BootModeValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BootModeValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Indicates whether the instance is enabled for AWS Nitro Enclaves.

            #[non_exhaustive] @@ -7419,7 +7302,7 @@ impl std::convert::From<&str> for InstanceMetadataEndpointState { impl std::str::FromStr for InstanceMetadataEndpointState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceMetadataEndpointState::from(s)) } } @@ -7437,15 +7320,6 @@ impl AsRef for InstanceMetadataEndpointState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceMetadataEndpointState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7475,7 +7349,7 @@ impl std::convert::From<&str> for HttpTokensState { impl std::str::FromStr for HttpTokensState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HttpTokensState::from(s)) } } @@ -7493,15 +7367,6 @@ impl AsRef for HttpTokensState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HttpTokensState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7531,7 +7396,7 @@ impl std::convert::From<&str> for InstanceMetadataOptionsState { impl std::str::FromStr for InstanceMetadataOptionsState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceMetadataOptionsState::from(s)) } } @@ -7549,15 +7414,6 @@ impl AsRef for InstanceMetadataOptionsState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceMetadataOptionsState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a license configuration.

            #[non_exhaustive] @@ -7877,7 +7733,7 @@ impl std::convert::From<&str> for CapacityReservationPreference { impl std::str::FromStr for CapacityReservationPreference { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityReservationPreference::from(s)) } } @@ -7895,15 +7751,6 @@ impl AsRef for CapacityReservationPreference { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityReservationPreference { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The CPU options for the instance.

            #[non_exhaustive] @@ -7994,7 +7841,7 @@ impl std::convert::From<&str> for VirtualizationType { impl std::str::FromStr for VirtualizationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VirtualizationType::from(s)) } } @@ -8012,15 +7859,6 @@ impl AsRef for VirtualizationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VirtualizationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a state change.

            #[non_exhaustive] @@ -8306,7 +8144,7 @@ impl std::convert::From<&str> for DeviceType { impl std::str::FromStr for DeviceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeviceType::from(s)) } } @@ -8324,15 +8162,6 @@ impl AsRef for DeviceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeviceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a network interface.

            #[non_exhaustive] @@ -8681,7 +8510,7 @@ impl std::convert::From<&str> for NetworkInterfaceStatus { impl std::str::FromStr for NetworkInterfaceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInterfaceStatus::from(s)) } } @@ -8702,15 +8531,6 @@ impl AsRef for NetworkInterfaceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInterfaceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a private IPv4 address.

            #[non_exhaustive] @@ -9111,7 +8931,7 @@ impl std::convert::From<&str> for AttachmentStatus { impl std::str::FromStr for AttachmentStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AttachmentStatus::from(s)) } } @@ -9131,15 +8951,6 @@ impl AsRef for AttachmentStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AttachmentStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            /// Describes the association between an instance and an elastic inference accelerator. @@ -9436,7 +9247,7 @@ impl std::convert::From<&str> for InstanceLifecycleType { impl std::str::FromStr for InstanceLifecycleType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceLifecycleType::from(s)) } } @@ -9454,15 +9265,6 @@ impl AsRef for InstanceLifecycleType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceLifecycleType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an IAM instance profile.

            #[non_exhaustive] @@ -9553,7 +9355,7 @@ impl std::convert::From<&str> for HypervisorType { impl std::str::FromStr for HypervisorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HypervisorType::from(s)) } } @@ -9571,15 +9373,6 @@ impl AsRef for HypervisorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HypervisorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a block device mapping.

            #[non_exhaustive] @@ -9772,7 +9565,7 @@ impl std::convert::From<&str> for ArchitectureValues { impl std::str::FromStr for ArchitectureValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ArchitectureValues::from(s)) } } @@ -9791,15 +9584,6 @@ impl AsRef for ArchitectureValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ArchitectureValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a product code.

            #[non_exhaustive] @@ -9896,7 +9680,7 @@ impl std::convert::From<&str> for ProductCodeValues { impl std::str::FromStr for ProductCodeValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProductCodeValues::from(s)) } } @@ -9914,15 +9698,6 @@ impl AsRef for ProductCodeValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProductCodeValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -9950,7 +9725,7 @@ impl std::convert::From<&str> for PlatformValues { impl std::str::FromStr for PlatformValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlatformValues::from(s)) } } @@ -9967,15 +9742,6 @@ impl AsRef for PlatformValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlatformValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the placement of an instance.

            #[non_exhaustive] @@ -10193,7 +9959,7 @@ impl std::convert::From<&str> for Tenancy { impl std::str::FromStr for Tenancy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Tenancy::from(s)) } } @@ -10212,15 +9978,6 @@ impl AsRef for Tenancy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Tenancy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -11050,7 +10807,7 @@ impl std::convert::From<&str> for InstanceType { impl std::str::FromStr for InstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceType::from(s)) } } @@ -11468,15 +11225,6 @@ impl AsRef for InstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, /// see @@ -12326,7 +12074,7 @@ impl std::convert::From<&str> for InstanceInterruptionBehavior { impl std::str::FromStr for InstanceInterruptionBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceInterruptionBehavior::from(s)) } } @@ -12345,15 +12093,6 @@ impl AsRef for InstanceInterruptionBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceInterruptionBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12383,7 +12122,7 @@ impl std::convert::From<&str> for SpotInstanceType { impl std::str::FromStr for SpotInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SpotInstanceType::from(s)) } } @@ -12401,15 +12140,6 @@ impl AsRef for SpotInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SpotInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12437,7 +12167,7 @@ impl std::convert::From<&str> for MarketType { impl std::str::FromStr for MarketType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MarketType::from(s)) } } @@ -12454,15 +12184,6 @@ impl AsRef for MarketType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MarketType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The launch template to use. You must specify either the launch template ID or /// launch template name in the request, but not both.

            @@ -13106,7 +12827,7 @@ impl std::convert::From<&str> for ShutdownBehavior { impl std::str::FromStr for ShutdownBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ShutdownBehavior::from(s)) } } @@ -13124,15 +12845,6 @@ impl AsRef for ShutdownBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ShutdownBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an IAM instance profile.

            #[non_exhaustive] @@ -13681,7 +13393,7 @@ impl std::convert::From<&str> for VolumeType { impl std::str::FromStr for VolumeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeType::from(s)) } } @@ -13704,15 +13416,6 @@ impl AsRef for VolumeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the state of an authorization rule.

            #[non_exhaustive] @@ -13810,7 +13513,7 @@ impl std::convert::From<&str> for ClientVpnAuthorizationRuleStatusCode { impl std::str::FromStr for ClientVpnAuthorizationRuleStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnAuthorizationRuleStatusCode::from(s)) } } @@ -13830,15 +13533,6 @@ impl AsRef for ClientVpnAuthorizationRuleStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnAuthorizationRuleStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a managed prefix list.

            #[non_exhaustive] @@ -14083,7 +13777,7 @@ impl std::convert::From<&str> for PrefixListState { impl std::str::FromStr for PrefixListState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PrefixListState::from(s)) } } @@ -14111,15 +13805,6 @@ impl AsRef for PrefixListState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PrefixListState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14151,7 +13836,7 @@ impl std::convert::From<&str> for Status { impl std::str::FromStr for Status { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Status::from(s)) } } @@ -14170,15 +13855,6 @@ impl AsRef for Status { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Status { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14208,7 +13884,7 @@ impl std::convert::From<&str> for SnapshotAttributeName { impl std::str::FromStr for SnapshotAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SnapshotAttributeName::from(s)) } } @@ -14226,15 +13902,6 @@ impl AsRef for SnapshotAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SnapshotAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14292,7 +13959,7 @@ impl std::convert::From<&str> for InstanceAttributeName { impl std::str::FromStr for InstanceAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceAttributeName::from(s)) } } @@ -14325,15 +13992,6 @@ impl AsRef for InstanceAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14361,7 +14019,7 @@ impl std::convert::From<&str> for ResetImageAttributeName { impl std::str::FromStr for ResetImageAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResetImageAttributeName::from(s)) } } @@ -14378,15 +14036,6 @@ impl AsRef for ResetImageAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResetImageAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14414,7 +14063,7 @@ impl std::convert::From<&str> for ResetFpgaImageAttributeName { impl std::str::FromStr for ResetFpgaImageAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResetFpgaImageAttributeName::from(s)) } } @@ -14431,15 +14080,6 @@ impl AsRef for ResetFpgaImageAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResetFpgaImageAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The attributes associated with an Elastic IP address.

            #[non_exhaustive] @@ -14637,7 +14277,7 @@ impl std::convert::From<&str> for AddressAttributeName { impl std::str::FromStr for AddressAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AddressAttributeName::from(s)) } } @@ -14654,15 +14294,6 @@ impl AsRef for AddressAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AddressAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Spot Instance request.

            #[non_exhaustive] @@ -15163,7 +14794,7 @@ impl std::convert::From<&str> for SpotInstanceState { impl std::str::FromStr for SpotInstanceState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SpotInstanceState::from(s)) } } @@ -15184,15 +14815,6 @@ impl AsRef for SpotInstanceState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SpotInstanceState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -15226,15 +14848,6 @@ where RiProductDescription(s.as_ref().to_owned()) } } -impl<'de> serde::Deserialize<'de> for RiProductDescription { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the launch specification for an instance.

            #[non_exhaustive] @@ -16914,7 +16527,7 @@ impl std::convert::From<&str> for FleetType { impl std::str::FromStr for FleetType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetType::from(s)) } } @@ -16933,15 +16546,6 @@ impl AsRef for FleetType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a launch template and overrides.

            #[non_exhaustive] @@ -17772,7 +17376,7 @@ impl std::convert::From<&str> for ExcessCapacityTerminationPolicy { impl std::str::FromStr for ExcessCapacityTerminationPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExcessCapacityTerminationPolicy::from(s)) } } @@ -17790,15 +17394,6 @@ impl AsRef for ExcessCapacityTerminationPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExcessCapacityTerminationPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The strategies for managing your Spot Instances that are at an elevated risk of being /// interrupted.

            @@ -17949,7 +17544,7 @@ impl std::convert::From<&str> for ReplacementStrategy { impl std::str::FromStr for ReplacementStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplacementStrategy::from(s)) } } @@ -17966,15 +17561,6 @@ impl AsRef for ReplacementStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplacementStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18004,7 +17590,7 @@ impl std::convert::From<&str> for OnDemandAllocationStrategy { impl std::str::FromStr for OnDemandAllocationStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OnDemandAllocationStrategy::from(s)) } } @@ -18022,15 +17608,6 @@ impl AsRef for OnDemandAllocationStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OnDemandAllocationStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18064,7 +17641,7 @@ impl std::convert::From<&str> for AllocationStrategy { impl std::str::FromStr for AllocationStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AllocationStrategy::from(s)) } } @@ -18084,15 +17661,6 @@ impl AsRef for AllocationStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AllocationStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18122,7 +17690,7 @@ impl std::convert::From<&str> for ReportStatusType { impl std::str::FromStr for ReportStatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReportStatusType::from(s)) } } @@ -18140,15 +17708,6 @@ impl AsRef for ReportStatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReportStatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18192,7 +17751,7 @@ impl std::convert::From<&str> for ReportInstanceReasonCodes { impl std::str::FromStr for ReportInstanceReasonCodes { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReportInstanceReasonCodes::from(s)) } } @@ -18217,15 +17776,6 @@ impl AsRef for ReportInstanceReasonCodes { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReportInstanceReasonCodes { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the state of an association between a route table and a subnet or gateway.

            #[non_exhaustive] @@ -18328,7 +17878,7 @@ impl std::convert::From<&str> for RouteTableAssociationStateCode { impl std::str::FromStr for RouteTableAssociationStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RouteTableAssociationStateCode::from(s)) } } @@ -18349,15 +17899,6 @@ impl AsRef for RouteTableAssociationStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RouteTableAssociationStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18387,7 +17928,7 @@ impl std::convert::From<&str> for RuleAction { impl std::str::FromStr for RuleAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RuleAction::from(s)) } } @@ -18405,15 +17946,6 @@ impl AsRef for RuleAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RuleAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the ICMP type and code.

            #[non_exhaustive] @@ -18620,7 +18152,7 @@ impl std::convert::From<&str> for IamInstanceProfileAssociationState { impl std::str::FromStr for IamInstanceProfileAssociationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IamInstanceProfileAssociationState::from(s)) } } @@ -18640,15 +18172,6 @@ impl AsRef for IamInstanceProfileAssociationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IamInstanceProfileAssociationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about items that were not successfully processed in a batch call.

            #[non_exhaustive] @@ -19079,7 +18602,7 @@ impl std::convert::From<&str> for ApplianceModeSupportValue { impl std::str::FromStr for ApplianceModeSupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ApplianceModeSupportValue::from(s)) } } @@ -19097,15 +18620,6 @@ impl AsRef for ApplianceModeSupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ApplianceModeSupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19135,7 +18649,7 @@ impl std::convert::From<&str> for Ipv6SupportValue { impl std::str::FromStr for Ipv6SupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ipv6SupportValue::from(s)) } } @@ -19153,15 +18667,6 @@ impl AsRef for Ipv6SupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ipv6SupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19191,7 +18696,7 @@ impl std::convert::From<&str> for DnsSupportValue { impl std::str::FromStr for DnsSupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DnsSupportValue::from(s)) } } @@ -19209,15 +18714,6 @@ impl AsRef for DnsSupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DnsSupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19269,7 +18765,7 @@ impl std::convert::From<&str> for TransitGatewayAttachmentState { impl std::str::FromStr for TransitGatewayAttachmentState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayAttachmentState::from(s)) } } @@ -19298,15 +18794,6 @@ impl AsRef for TransitGatewayAttachmentState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayAttachmentState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the transit gateway peering attachment.

            #[non_exhaustive] @@ -19861,7 +19348,7 @@ impl std::convert::From<&str> for TransitGatewayMulitcastDomainAssociationState impl std::str::FromStr for TransitGatewayMulitcastDomainAssociationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayMulitcastDomainAssociationState::from(s)) } } @@ -19884,15 +19371,6 @@ impl AsRef for TransitGatewayMulitcastDomainAssociationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayMulitcastDomainAssociationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the members registered with the transit gateway multicast group.

            #[non_exhaustive] @@ -20788,7 +20266,7 @@ impl std::convert::From<&str> for CurrencyCodeValues { impl std::str::FromStr for CurrencyCodeValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CurrencyCodeValues::from(s)) } } @@ -20805,15 +20283,6 @@ impl AsRef for CurrencyCodeValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CurrencyCodeValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the result of the purchase.

            #[non_exhaustive] @@ -21015,7 +20484,7 @@ impl std::convert::From<&str> for PaymentOption { impl std::str::FromStr for PaymentOption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PaymentOption::from(s)) } } @@ -21034,15 +20503,6 @@ impl AsRef for PaymentOption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PaymentOption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Provides authorization for Amazon to bring a specific IP address range to a specific /// AWS account using bring your own IP addresses (BYOIP). For more information, see Prepare to Bring Your Address Range to Your AWS Account in the Amazon Elastic Compute Cloud User Guide.

            @@ -21511,7 +20971,7 @@ impl std::convert::From<&str> for TelemetryStatus { impl std::str::FromStr for TelemetryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TelemetryStatus::from(s)) } } @@ -21529,15 +20989,6 @@ impl AsRef for TelemetryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TelemetryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a static route for a VPN connection.

            #[non_exhaustive] @@ -21652,7 +21103,7 @@ impl std::convert::From<&str> for VpnState { impl std::str::FromStr for VpnState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpnState::from(s)) } } @@ -21672,15 +21123,6 @@ impl AsRef for VpnState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpnState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -21708,7 +21150,7 @@ impl std::convert::From<&str> for VpnStaticRouteSource { impl std::str::FromStr for VpnStaticRouteSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpnStaticRouteSource::from(s)) } } @@ -21725,15 +21167,6 @@ impl AsRef for VpnStaticRouteSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpnStaticRouteSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes VPN connection options.

            #[non_exhaustive] @@ -21944,12 +21377,12 @@ pub struct TunnelOption { std::option::Option>, ///

            The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.

            pub phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.

            pub phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            The IKE versions that are permitted for the VPN tunnel.

            - pub ike_versions: std::option::Option>, + pub ike_versions: std::option::Option>, ///

            The action to take when the establishing the VPN tunnels for a VPN connection.

            pub startup_action: std::option::Option, } @@ -22016,11 +21449,11 @@ pub mod tunnel_option { pub(crate) phase2_integrity_algorithms: std::option::Option>, pub(crate) phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) ike_versions: - std::option::Option>, + std::option::Option>, pub(crate) startup_action: std::option::Option, } impl Builder { @@ -22213,7 +21646,7 @@ pub mod tunnel_option { } pub fn phase1_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase1_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -22222,14 +21655,14 @@ pub mod tunnel_option { } pub fn set_phase1_dh_group_numbers( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.phase1_dh_group_numbers = input; self } pub fn phase2_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase2_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -22238,14 +21671,14 @@ pub mod tunnel_option { } pub fn set_phase2_dh_group_numbers( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.phase2_dh_group_numbers = input; self } pub fn ike_versions( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.ike_versions.unwrap_or_default(); v.push(input.into()); @@ -22254,7 +21687,7 @@ pub mod tunnel_option { } pub fn set_ike_versions( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ike_versions = input; self @@ -22307,20 +21740,20 @@ impl TunnelOption { ///

            The internet key exchange (IKE) version permitted for the VPN tunnel.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IKEVersionsListValue { +pub struct IkeVersionsListValue { ///

            The IKE version.

            pub value: std::option::Option, } -impl std::fmt::Debug for IKEVersionsListValue { +impl std::fmt::Debug for IkeVersionsListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IKEVersionsListValue"); + let mut formatter = f.debug_struct("IkeVersionsListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`IKEVersionsListValue`](crate::model::IKEVersionsListValue) +/// See [`IkeVersionsListValue`](crate::model::IkeVersionsListValue) pub mod ike_versions_list_value { - /// A builder for [`IKEVersionsListValue`](crate::model::IKEVersionsListValue) + /// A builder for [`IkeVersionsListValue`](crate::model::IkeVersionsListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22336,14 +21769,14 @@ pub mod ike_versions_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`IKEVersionsListValue`](crate::model::IKEVersionsListValue) - pub fn build(self) -> crate::model::IKEVersionsListValue { - crate::model::IKEVersionsListValue { value: self.value } + /// Consumes the builder and constructs a [`IkeVersionsListValue`](crate::model::IkeVersionsListValue) + pub fn build(self) -> crate::model::IkeVersionsListValue { + crate::model::IkeVersionsListValue { value: self.value } } } } -impl IKEVersionsListValue { - /// Creates a new builder-style object to manufacture [`IKEVersionsListValue`](crate::model::IKEVersionsListValue) +impl IkeVersionsListValue { + /// Creates a new builder-style object to manufacture [`IkeVersionsListValue`](crate::model::IkeVersionsListValue) pub fn builder() -> crate::model::ike_versions_list_value::Builder { crate::model::ike_versions_list_value::Builder::default() } @@ -22352,20 +21785,20 @@ impl IKEVersionsListValue { ///

            The Diffie-Hellmann group number for phase 2 IKE negotiations.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct Phase2DHGroupNumbersListValue { +pub struct Phase2DhGroupNumbersListValue { ///

            The Diffie-Hellmann group number.

            pub value: std::option::Option, } -impl std::fmt::Debug for Phase2DHGroupNumbersListValue { +impl std::fmt::Debug for Phase2DhGroupNumbersListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("Phase2DHGroupNumbersListValue"); + let mut formatter = f.debug_struct("Phase2DhGroupNumbersListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`Phase2DHGroupNumbersListValue`](crate::model::Phase2DHGroupNumbersListValue) +/// See [`Phase2DhGroupNumbersListValue`](crate::model::Phase2DhGroupNumbersListValue) pub mod phase2_dh_group_numbers_list_value { - /// A builder for [`Phase2DHGroupNumbersListValue`](crate::model::Phase2DHGroupNumbersListValue) + /// A builder for [`Phase2DhGroupNumbersListValue`](crate::model::Phase2DhGroupNumbersListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22381,14 +21814,14 @@ pub mod phase2_dh_group_numbers_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`Phase2DHGroupNumbersListValue`](crate::model::Phase2DHGroupNumbersListValue) - pub fn build(self) -> crate::model::Phase2DHGroupNumbersListValue { - crate::model::Phase2DHGroupNumbersListValue { value: self.value } + /// Consumes the builder and constructs a [`Phase2DhGroupNumbersListValue`](crate::model::Phase2DhGroupNumbersListValue) + pub fn build(self) -> crate::model::Phase2DhGroupNumbersListValue { + crate::model::Phase2DhGroupNumbersListValue { value: self.value } } } } -impl Phase2DHGroupNumbersListValue { - /// Creates a new builder-style object to manufacture [`Phase2DHGroupNumbersListValue`](crate::model::Phase2DHGroupNumbersListValue) +impl Phase2DhGroupNumbersListValue { + /// Creates a new builder-style object to manufacture [`Phase2DhGroupNumbersListValue`](crate::model::Phase2DhGroupNumbersListValue) pub fn builder() -> crate::model::phase2_dh_group_numbers_list_value::Builder { crate::model::phase2_dh_group_numbers_list_value::Builder::default() } @@ -22397,20 +21830,20 @@ impl Phase2DHGroupNumbersListValue { ///

            The Diffie-Hellmann group number for phase 1 IKE negotiations.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct Phase1DHGroupNumbersListValue { +pub struct Phase1DhGroupNumbersListValue { ///

            The Diffie-Hellmann group number.

            pub value: std::option::Option, } -impl std::fmt::Debug for Phase1DHGroupNumbersListValue { +impl std::fmt::Debug for Phase1DhGroupNumbersListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("Phase1DHGroupNumbersListValue"); + let mut formatter = f.debug_struct("Phase1DhGroupNumbersListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`Phase1DHGroupNumbersListValue`](crate::model::Phase1DHGroupNumbersListValue) +/// See [`Phase1DhGroupNumbersListValue`](crate::model::Phase1DhGroupNumbersListValue) pub mod phase1_dh_group_numbers_list_value { - /// A builder for [`Phase1DHGroupNumbersListValue`](crate::model::Phase1DHGroupNumbersListValue) + /// A builder for [`Phase1DhGroupNumbersListValue`](crate::model::Phase1DhGroupNumbersListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22426,14 +21859,14 @@ pub mod phase1_dh_group_numbers_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`Phase1DHGroupNumbersListValue`](crate::model::Phase1DHGroupNumbersListValue) - pub fn build(self) -> crate::model::Phase1DHGroupNumbersListValue { - crate::model::Phase1DHGroupNumbersListValue { value: self.value } + /// Consumes the builder and constructs a [`Phase1DhGroupNumbersListValue`](crate::model::Phase1DhGroupNumbersListValue) + pub fn build(self) -> crate::model::Phase1DhGroupNumbersListValue { + crate::model::Phase1DhGroupNumbersListValue { value: self.value } } } } -impl Phase1DHGroupNumbersListValue { - /// Creates a new builder-style object to manufacture [`Phase1DHGroupNumbersListValue`](crate::model::Phase1DHGroupNumbersListValue) +impl Phase1DhGroupNumbersListValue { + /// Creates a new builder-style object to manufacture [`Phase1DhGroupNumbersListValue`](crate::model::Phase1DhGroupNumbersListValue) pub fn builder() -> crate::model::phase1_dh_group_numbers_list_value::Builder { crate::model::phase1_dh_group_numbers_list_value::Builder::default() } @@ -22647,7 +22080,7 @@ impl std::convert::From<&str> for TunnelInsideIpVersion { impl std::str::FromStr for TunnelInsideIpVersion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TunnelInsideIpVersion::from(s)) } } @@ -22665,15 +22098,6 @@ impl AsRef for TunnelInsideIpVersion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TunnelInsideIpVersion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -22701,7 +22125,7 @@ impl std::convert::From<&str> for GatewayType { impl std::str::FromStr for GatewayType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GatewayType::from(s)) } } @@ -22718,15 +22142,6 @@ impl AsRef for GatewayType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GatewayType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The AWS Site-to-Site VPN tunnel options to modify.

            #[non_exhaustive] @@ -22845,16 +22260,16 @@ pub struct ModifyVpnTunnelOptionsSpecification { ///

            Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 ///

            pub phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.

            ///

            Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 ///

            pub phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            The IKE versions that are permitted for the VPN tunnel.

            ///

            Valid values: ikev1 | ikev2 ///

            - pub ike_versions: std::option::Option>, + pub ike_versions: std::option::Option>, ///

            The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation.

            ///

            Valid Values: add | start ///

            @@ -22927,11 +22342,11 @@ pub mod modify_vpn_tunnel_options_specification { std::vec::Vec, >, pub(crate) phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) ike_versions: - std::option::Option>, + std::option::Option>, pub(crate) startup_action: std::option::Option, } impl Builder { @@ -23178,7 +22593,7 @@ pub mod modify_vpn_tunnel_options_specification { } pub fn phase1_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase1_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -23188,7 +22603,7 @@ pub mod modify_vpn_tunnel_options_specification { pub fn set_phase1_dh_group_numbers( mut self, input: std::option::Option< - std::vec::Vec, + std::vec::Vec, >, ) -> Self { self.phase1_dh_group_numbers = input; @@ -23196,7 +22611,7 @@ pub mod modify_vpn_tunnel_options_specification { } pub fn phase2_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase2_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -23206,7 +22621,7 @@ pub mod modify_vpn_tunnel_options_specification { pub fn set_phase2_dh_group_numbers( mut self, input: std::option::Option< - std::vec::Vec, + std::vec::Vec, >, ) -> Self { self.phase2_dh_group_numbers = input; @@ -23214,7 +22629,7 @@ pub mod modify_vpn_tunnel_options_specification { } pub fn ike_versions( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.ike_versions.unwrap_or_default(); v.push(input.into()); @@ -23223,7 +22638,7 @@ pub mod modify_vpn_tunnel_options_specification { } pub fn set_ike_versions( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ike_versions = input; self @@ -23279,20 +22694,20 @@ impl ModifyVpnTunnelOptionsSpecification { ///

            The IKE version that is permitted for the VPN tunnel.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IKEVersionsRequestListValue { +pub struct IkeVersionsRequestListValue { ///

            The IKE version.

            pub value: std::option::Option, } -impl std::fmt::Debug for IKEVersionsRequestListValue { +impl std::fmt::Debug for IkeVersionsRequestListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IKEVersionsRequestListValue"); + let mut formatter = f.debug_struct("IkeVersionsRequestListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`IKEVersionsRequestListValue`](crate::model::IKEVersionsRequestListValue) +/// See [`IkeVersionsRequestListValue`](crate::model::IkeVersionsRequestListValue) pub mod ike_versions_request_list_value { - /// A builder for [`IKEVersionsRequestListValue`](crate::model::IKEVersionsRequestListValue) + /// A builder for [`IkeVersionsRequestListValue`](crate::model::IkeVersionsRequestListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23308,14 +22723,14 @@ pub mod ike_versions_request_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`IKEVersionsRequestListValue`](crate::model::IKEVersionsRequestListValue) - pub fn build(self) -> crate::model::IKEVersionsRequestListValue { - crate::model::IKEVersionsRequestListValue { value: self.value } + /// Consumes the builder and constructs a [`IkeVersionsRequestListValue`](crate::model::IkeVersionsRequestListValue) + pub fn build(self) -> crate::model::IkeVersionsRequestListValue { + crate::model::IkeVersionsRequestListValue { value: self.value } } } } -impl IKEVersionsRequestListValue { - /// Creates a new builder-style object to manufacture [`IKEVersionsRequestListValue`](crate::model::IKEVersionsRequestListValue) +impl IkeVersionsRequestListValue { + /// Creates a new builder-style object to manufacture [`IkeVersionsRequestListValue`](crate::model::IkeVersionsRequestListValue) pub fn builder() -> crate::model::ike_versions_request_list_value::Builder { crate::model::ike_versions_request_list_value::Builder::default() } @@ -23324,20 +22739,20 @@ impl IKEVersionsRequestListValue { ///

            Specifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE negotiations.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct Phase2DHGroupNumbersRequestListValue { +pub struct Phase2DhGroupNumbersRequestListValue { ///

            The Diffie-Hellmann group number.

            pub value: std::option::Option, } -impl std::fmt::Debug for Phase2DHGroupNumbersRequestListValue { +impl std::fmt::Debug for Phase2DhGroupNumbersRequestListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("Phase2DHGroupNumbersRequestListValue"); + let mut formatter = f.debug_struct("Phase2DhGroupNumbersRequestListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`Phase2DHGroupNumbersRequestListValue`](crate::model::Phase2DHGroupNumbersRequestListValue) +/// See [`Phase2DhGroupNumbersRequestListValue`](crate::model::Phase2DhGroupNumbersRequestListValue) pub mod phase2_dh_group_numbers_request_list_value { - /// A builder for [`Phase2DHGroupNumbersRequestListValue`](crate::model::Phase2DHGroupNumbersRequestListValue) + /// A builder for [`Phase2DhGroupNumbersRequestListValue`](crate::model::Phase2DhGroupNumbersRequestListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23353,14 +22768,14 @@ pub mod phase2_dh_group_numbers_request_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`Phase2DHGroupNumbersRequestListValue`](crate::model::Phase2DHGroupNumbersRequestListValue) - pub fn build(self) -> crate::model::Phase2DHGroupNumbersRequestListValue { - crate::model::Phase2DHGroupNumbersRequestListValue { value: self.value } + /// Consumes the builder and constructs a [`Phase2DhGroupNumbersRequestListValue`](crate::model::Phase2DhGroupNumbersRequestListValue) + pub fn build(self) -> crate::model::Phase2DhGroupNumbersRequestListValue { + crate::model::Phase2DhGroupNumbersRequestListValue { value: self.value } } } } -impl Phase2DHGroupNumbersRequestListValue { - /// Creates a new builder-style object to manufacture [`Phase2DHGroupNumbersRequestListValue`](crate::model::Phase2DHGroupNumbersRequestListValue) +impl Phase2DhGroupNumbersRequestListValue { + /// Creates a new builder-style object to manufacture [`Phase2DhGroupNumbersRequestListValue`](crate::model::Phase2DhGroupNumbersRequestListValue) pub fn builder() -> crate::model::phase2_dh_group_numbers_request_list_value::Builder { crate::model::phase2_dh_group_numbers_request_list_value::Builder::default() } @@ -23369,20 +22784,20 @@ impl Phase2DHGroupNumbersRequestListValue { ///

            Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE negotiations.

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct Phase1DHGroupNumbersRequestListValue { +pub struct Phase1DhGroupNumbersRequestListValue { ///

            The Diffie-Hellmann group number.

            pub value: std::option::Option, } -impl std::fmt::Debug for Phase1DHGroupNumbersRequestListValue { +impl std::fmt::Debug for Phase1DhGroupNumbersRequestListValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("Phase1DHGroupNumbersRequestListValue"); + let mut formatter = f.debug_struct("Phase1DhGroupNumbersRequestListValue"); formatter.field("value", &self.value); formatter.finish() } } -/// See [`Phase1DHGroupNumbersRequestListValue`](crate::model::Phase1DHGroupNumbersRequestListValue) +/// See [`Phase1DhGroupNumbersRequestListValue`](crate::model::Phase1DhGroupNumbersRequestListValue) pub mod phase1_dh_group_numbers_request_list_value { - /// A builder for [`Phase1DHGroupNumbersRequestListValue`](crate::model::Phase1DHGroupNumbersRequestListValue) + /// A builder for [`Phase1DhGroupNumbersRequestListValue`](crate::model::Phase1DhGroupNumbersRequestListValue) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23398,14 +22813,14 @@ pub mod phase1_dh_group_numbers_request_list_value { self.value = input; self } - /// Consumes the builder and constructs a [`Phase1DHGroupNumbersRequestListValue`](crate::model::Phase1DHGroupNumbersRequestListValue) - pub fn build(self) -> crate::model::Phase1DHGroupNumbersRequestListValue { - crate::model::Phase1DHGroupNumbersRequestListValue { value: self.value } + /// Consumes the builder and constructs a [`Phase1DhGroupNumbersRequestListValue`](crate::model::Phase1DhGroupNumbersRequestListValue) + pub fn build(self) -> crate::model::Phase1DhGroupNumbersRequestListValue { + crate::model::Phase1DhGroupNumbersRequestListValue { value: self.value } } } } -impl Phase1DHGroupNumbersRequestListValue { - /// Creates a new builder-style object to manufacture [`Phase1DHGroupNumbersRequestListValue`](crate::model::Phase1DHGroupNumbersRequestListValue) +impl Phase1DhGroupNumbersRequestListValue { + /// Creates a new builder-style object to manufacture [`Phase1DhGroupNumbersRequestListValue`](crate::model::Phase1DhGroupNumbersRequestListValue) pub fn builder() -> crate::model::phase1_dh_group_numbers_request_list_value::Builder { crate::model::phase1_dh_group_numbers_request_list_value::Builder::default() } @@ -23617,7 +23032,7 @@ impl std::convert::From<&str> for VpcTenancy { impl std::str::FromStr for VpcTenancy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcTenancy::from(s)) } } @@ -23634,15 +23049,6 @@ impl AsRef for VpcTenancy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcTenancy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the VPC peering connection options.

            #[non_exhaustive] @@ -24202,7 +23608,7 @@ impl std::convert::From<&str> for VolumeModificationState { impl std::str::FromStr for VolumeModificationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeModificationState::from(s)) } } @@ -24222,15 +23628,6 @@ impl AsRef for VolumeModificationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeModificationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the options for a VPC attachment.

            #[non_exhaustive] @@ -24593,7 +23990,7 @@ impl std::convert::From<&str> for TransitGatewayPrefixListReferenceState { impl std::str::FromStr for TransitGatewayPrefixListReferenceState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayPrefixListReferenceState::from(s)) } } @@ -24613,15 +24010,6 @@ impl AsRef for TransitGatewayPrefixListReferenceState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayPrefixListReferenceState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a transit gateway.

            #[non_exhaustive] @@ -25061,7 +24449,7 @@ impl std::convert::From<&str> for MulticastSupportValue { impl std::str::FromStr for MulticastSupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MulticastSupportValue::from(s)) } } @@ -25079,15 +24467,6 @@ impl AsRef for MulticastSupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MulticastSupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25117,7 +24496,7 @@ impl std::convert::From<&str> for VpnEcmpSupportValue { impl std::str::FromStr for VpnEcmpSupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpnEcmpSupportValue::from(s)) } } @@ -25135,15 +24514,6 @@ impl AsRef for VpnEcmpSupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpnEcmpSupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25173,7 +24543,7 @@ impl std::convert::From<&str> for DefaultRouteTablePropagationValue { impl std::str::FromStr for DefaultRouteTablePropagationValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DefaultRouteTablePropagationValue::from(s)) } } @@ -25191,15 +24561,6 @@ impl AsRef for DefaultRouteTablePropagationValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DefaultRouteTablePropagationValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25229,7 +24590,7 @@ impl std::convert::From<&str> for DefaultRouteTableAssociationValue { impl std::str::FromStr for DefaultRouteTableAssociationValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DefaultRouteTableAssociationValue::from(s)) } } @@ -25247,15 +24608,6 @@ impl AsRef for DefaultRouteTableAssociationValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DefaultRouteTableAssociationValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25285,7 +24637,7 @@ impl std::convert::From<&str> for AutoAcceptSharedAttachmentsValue { impl std::str::FromStr for AutoAcceptSharedAttachmentsValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoAcceptSharedAttachmentsValue::from(s)) } } @@ -25303,15 +24655,6 @@ impl AsRef for AutoAcceptSharedAttachmentsValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoAcceptSharedAttachmentsValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25347,7 +24690,7 @@ impl std::convert::From<&str> for TransitGatewayState { impl std::str::FromStr for TransitGatewayState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayState::from(s)) } } @@ -25368,15 +24711,6 @@ impl AsRef for TransitGatewayState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The transit gateway options.

            #[non_exhaustive] @@ -25837,7 +25171,7 @@ impl std::convert::From<&str> for TrafficMirrorSessionField { impl std::str::FromStr for TrafficMirrorSessionField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficMirrorSessionField::from(s)) } } @@ -25856,15 +25190,6 @@ impl AsRef for TrafficMirrorSessionField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficMirrorSessionField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the Traffic Mirror rule.

            #[non_exhaustive] @@ -26176,7 +25501,7 @@ impl std::convert::From<&str> for TrafficMirrorRuleAction { impl std::str::FromStr for TrafficMirrorRuleAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficMirrorRuleAction::from(s)) } } @@ -26194,15 +25519,6 @@ impl AsRef for TrafficMirrorRuleAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficMirrorRuleAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -26232,7 +25548,7 @@ impl std::convert::From<&str> for TrafficDirection { impl std::str::FromStr for TrafficDirection { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficDirection::from(s)) } } @@ -26250,15 +25566,6 @@ impl AsRef for TrafficDirection { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficDirection { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -26292,7 +25599,7 @@ impl std::convert::From<&str> for TrafficMirrorFilterRuleField { impl std::str::FromStr for TrafficMirrorFilterRuleField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficMirrorFilterRuleField::from(s)) } } @@ -26312,15 +25619,6 @@ impl AsRef for TrafficMirrorFilterRuleField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficMirrorFilterRuleField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about the Traffic Mirror filter rule port range.

            #[non_exhaustive] @@ -26560,7 +25858,7 @@ impl std::convert::From<&str> for TrafficMirrorNetworkService { impl std::str::FromStr for TrafficMirrorNetworkService { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficMirrorNetworkService::from(s)) } } @@ -26577,15 +25875,6 @@ impl AsRef for TrafficMirrorNetworkService { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficMirrorNetworkService { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -26615,7 +25904,7 @@ impl std::convert::From<&str> for OperationType { impl std::str::FromStr for OperationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OperationType::from(s)) } } @@ -26633,15 +25922,6 @@ impl AsRef for OperationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OperationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes modifications to the list of create volume permissions for a volume.

            #[non_exhaustive] @@ -26803,7 +26083,7 @@ impl std::convert::From<&str> for PermissionGroup { impl std::str::FromStr for PermissionGroup { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PermissionGroup::from(s)) } } @@ -26820,15 +26100,6 @@ impl AsRef for PermissionGroup { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PermissionGroup { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the configuration settings for the modified Reserved Instances.

            #[non_exhaustive] @@ -26973,7 +26244,7 @@ impl std::convert::From<&str> for Scope { impl std::str::FromStr for Scope { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scope::from(s)) } } @@ -26991,15 +26262,6 @@ impl AsRef for Scope { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scope { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a value for a resource attribute that is a String.

            #[non_exhaustive] @@ -27390,7 +26652,7 @@ impl std::convert::From<&str> for HostTenancy { impl std::str::FromStr for HostTenancy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HostTenancy::from(s)) } } @@ -27408,15 +26670,6 @@ impl AsRef for HostTenancy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HostTenancy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -27446,7 +26699,7 @@ impl std::convert::From<&str> for Affinity { impl std::str::FromStr for Affinity { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Affinity::from(s)) } } @@ -27464,15 +26717,6 @@ impl AsRef for Affinity { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Affinity { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a scheduled event for an instance.

            #[non_exhaustive] @@ -27637,7 +26881,7 @@ impl std::convert::From<&str> for EventCode { impl std::str::FromStr for EventCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EventCode::from(s)) } } @@ -27658,15 +26902,6 @@ impl AsRef for EventCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EventCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the burstable performance instance whose credit option for CPU usage was not /// modified.

            @@ -27845,7 +27080,7 @@ impl std::convert::From<&str> for UnsuccessfulInstanceCreditSpecificationErrorCo impl std::str::FromStr for UnsuccessfulInstanceCreditSpecificationErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UnsuccessfulInstanceCreditSpecificationErrorCode::from(s)) } } @@ -27865,15 +27100,6 @@ impl AsRef for UnsuccessfulInstanceCreditSpecificationErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UnsuccessfulInstanceCreditSpecificationErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the burstable performance instance whose credit option for CPU usage was /// successfully modified.

            @@ -28347,7 +27573,7 @@ impl std::convert::From<&str> for HostRecovery { impl std::str::FromStr for HostRecovery { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HostRecovery::from(s)) } } @@ -28365,15 +27591,6 @@ impl AsRef for HostRecovery { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HostRecovery { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -28403,7 +27620,7 @@ impl std::convert::From<&str> for AutoPlacement { impl std::str::FromStr for AutoPlacement { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoPlacement::from(s)) } } @@ -28421,15 +27638,6 @@ impl AsRef for AutoPlacement { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoPlacement { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an Amazon FPGA image (AFI) attribute.

            #[non_exhaustive] @@ -28775,7 +27983,7 @@ impl std::convert::From<&str> for FpgaImageAttributeName { impl std::str::FromStr for FpgaImageAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FpgaImageAttributeName::from(s)) } } @@ -28795,15 +28003,6 @@ impl AsRef for FpgaImageAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FpgaImageAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The number of units to request. You can choose to set the target capacity as the number of /// instances. Or you can set the target capacity to a performance characteristic that is important to your application workload, @@ -28947,7 +28146,7 @@ impl std::convert::From<&str> for DefaultTargetCapacityType { impl std::str::FromStr for DefaultTargetCapacityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DefaultTargetCapacityType::from(s)) } } @@ -28965,15 +28164,6 @@ impl AsRef for DefaultTargetCapacityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DefaultTargetCapacityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a launch template and overrides.

            #[non_exhaustive] @@ -29341,7 +28531,7 @@ impl std::convert::From<&str> for FleetExcessCapacityTerminationPolicy { impl std::str::FromStr for FleetExcessCapacityTerminationPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetExcessCapacityTerminationPolicy::from(s)) } } @@ -29359,15 +28549,6 @@ impl AsRef for FleetExcessCapacityTerminationPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetExcessCapacityTerminationPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the default credit option for CPU usage of a burstable performance instance family.

            #[non_exhaustive] @@ -29469,7 +28650,7 @@ impl std::convert::From<&str> for UnlimitedSupportedInstanceFamily { impl std::str::FromStr for UnlimitedSupportedInstanceFamily { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UnlimitedSupportedInstanceFamily::from(s)) } } @@ -29489,15 +28670,6 @@ impl AsRef for UnlimitedSupportedInstanceFamily { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UnlimitedSupportedInstanceFamily { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The options for managing connection authorization for new client connections.

            #[non_exhaustive] @@ -29591,7 +28763,7 @@ impl std::convert::From<&str> for SelfServicePortal { impl std::str::FromStr for SelfServicePortal { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SelfServicePortal::from(s)) } } @@ -29609,15 +28781,6 @@ impl AsRef for SelfServicePortal { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SelfServicePortal { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about the DNS server to be used.

            #[non_exhaustive] @@ -29797,7 +28960,7 @@ impl std::convert::From<&str> for EndDateType { impl std::str::FromStr for EndDateType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndDateType::from(s)) } } @@ -29815,15 +28978,6 @@ impl AsRef for EndDateType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndDateType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -29853,7 +29007,7 @@ impl std::convert::From<&str> for ModifyAvailabilityZoneOptInStatus { impl std::str::FromStr for ModifyAvailabilityZoneOptInStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModifyAvailabilityZoneOptInStatus::from(s)) } } @@ -29871,15 +29025,6 @@ impl AsRef for ModifyAvailabilityZoneOptInStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModifyAvailabilityZoneOptInStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a conversion task.

            #[non_exhaustive] @@ -30068,7 +29213,7 @@ impl std::convert::From<&str> for ConversionTaskState { impl std::str::FromStr for ConversionTaskState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConversionTaskState::from(s)) } } @@ -30088,15 +29233,6 @@ impl AsRef for ConversionTaskState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConversionTaskState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an import volume task.

            #[non_exhaustive] @@ -30402,7 +29538,7 @@ impl std::convert::From<&str> for DiskImageFormat { impl std::str::FromStr for DiskImageFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DiskImageFormat::from(s)) } } @@ -30421,15 +29557,6 @@ impl AsRef for DiskImageFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DiskImageFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an import instance task.

            #[non_exhaustive] @@ -32212,7 +31339,7 @@ impl std::convert::From<&str> for TransitGatewayPropagationState { impl std::str::FromStr for TransitGatewayPropagationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayPropagationState::from(s)) } } @@ -32232,15 +31359,6 @@ impl AsRef for TransitGatewayPropagationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayPropagationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an association between a route table and a resource attachment.

            #[non_exhaustive] @@ -32382,7 +31500,7 @@ impl std::convert::From<&str> for TransitGatewayAssociationState { impl std::str::FromStr for TransitGatewayAssociationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayAssociationState::from(s)) } } @@ -32402,15 +31520,6 @@ impl AsRef for TransitGatewayAssociationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayAssociationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the resources associated with the transit gateway multicast domain.

            #[non_exhaustive] @@ -33872,7 +32981,7 @@ impl std::convert::From<&str> for LaunchTemplateInstanceMetadataEndpointState { impl std::str::FromStr for LaunchTemplateInstanceMetadataEndpointState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LaunchTemplateInstanceMetadataEndpointState::from(s)) } } @@ -33890,15 +32999,6 @@ impl AsRef for LaunchTemplateInstanceMetadataEndpointState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LaunchTemplateInstanceMetadataEndpointState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -33928,7 +33028,7 @@ impl std::convert::From<&str> for LaunchTemplateHttpTokensState { impl std::str::FromStr for LaunchTemplateHttpTokensState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LaunchTemplateHttpTokensState::from(s)) } } @@ -33946,15 +33046,6 @@ impl AsRef for LaunchTemplateHttpTokensState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LaunchTemplateHttpTokensState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -33984,7 +33075,7 @@ impl std::convert::From<&str> for LaunchTemplateInstanceMetadataOptionsState { impl std::str::FromStr for LaunchTemplateInstanceMetadataOptionsState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LaunchTemplateInstanceMetadataOptionsState::from(s)) } } @@ -34002,15 +33093,6 @@ impl AsRef for LaunchTemplateInstanceMetadataOptionsState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LaunchTemplateInstanceMetadataOptionsState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Indicates whether an instance is configured for hibernation.

            #[non_exhaustive] @@ -35770,7 +34852,7 @@ impl std::convert::From<&str> for PartitionLoadFrequency { impl std::str::FromStr for PartitionLoadFrequency { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PartitionLoadFrequency::from(s)) } } @@ -35790,15 +34872,6 @@ impl AsRef for PartitionLoadFrequency { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PartitionLoadFrequency { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes address usage for a customer-owned address pool.

            #[non_exhaustive] @@ -35990,7 +35063,7 @@ impl std::convert::From<&str> for CapacityReservationState { impl std::str::FromStr for CapacityReservationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityReservationState::from(s)) } } @@ -36011,15 +35084,6 @@ impl AsRef for CapacityReservationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityReservationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an IPv6 CIDR block association.

            #[non_exhaustive] @@ -36411,7 +35475,7 @@ impl std::convert::From<&str> for ClientCertificateRevocationListStatusCode { impl std::str::FromStr for ClientCertificateRevocationListStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientCertificateRevocationListStatusCode::from(s)) } } @@ -36429,15 +35493,6 @@ impl AsRef for ClientCertificateRevocationListStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientCertificateRevocationListStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes route propagation.

            #[non_exhaustive] @@ -37043,7 +36098,7 @@ impl std::convert::From<&str> for FastSnapshotRestoreStateCode { impl std::str::FromStr for FastSnapshotRestoreStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FastSnapshotRestoreStateCode::from(s)) } } @@ -37064,15 +36119,6 @@ impl AsRef for FastSnapshotRestoreStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FastSnapshotRestoreStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an IPv4 CIDR block associated with a VPC.

            #[non_exhaustive] @@ -37258,7 +36304,7 @@ impl std::convert::From<&str> for VpcCidrBlockStateCode { impl std::str::FromStr for VpcCidrBlockStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcCidrBlockStateCode::from(s)) } } @@ -37280,15 +36326,6 @@ impl AsRef for VpcCidrBlockStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcCidrBlockStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an IPv6 CIDR block associated with a VPC.

            #[non_exhaustive] @@ -37725,7 +36762,7 @@ impl std::convert::From<&str> for SubnetCidrBlockStateCode { impl std::str::FromStr for SubnetCidrBlockStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SubnetCidrBlockStateCode::from(s)) } } @@ -37747,15 +36784,6 @@ impl AsRef for SubnetCidrBlockStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SubnetCidrBlockStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the state of a target network association.

            #[non_exhaustive] @@ -37855,7 +36883,7 @@ impl std::convert::From<&str> for AssociationStatusCode { impl std::str::FromStr for AssociationStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationStatusCode::from(s)) } } @@ -37876,15 +36904,6 @@ impl AsRef for AssociationStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Contains information about the errors that occurred when disabling fast snapshot restores.

            #[non_exhaustive] @@ -38359,7 +37378,7 @@ impl std::convert::From<&str> for VolumeAttachmentState { impl std::str::FromStr for VolumeAttachmentState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeAttachmentState::from(s)) } } @@ -38380,15 +37399,6 @@ impl AsRef for VolumeAttachmentState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeAttachmentState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a virtual private gateway.

            #[non_exhaustive] @@ -38834,7 +37844,7 @@ impl std::convert::From<&str> for VpcState { impl std::str::FromStr for VpcState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcState::from(s)) } } @@ -38852,15 +37862,6 @@ impl AsRef for VpcState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a VPC peering connection.

            #[non_exhaustive] @@ -39112,7 +38113,7 @@ impl std::convert::From<&str> for VpcPeeringConnectionStateReasonCode { impl std::str::FromStr for VpcPeeringConnectionStateReasonCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcPeeringConnectionStateReasonCode::from(s)) } } @@ -39137,15 +38138,6 @@ impl AsRef for VpcPeeringConnectionStateReasonCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcPeeringConnectionStateReasonCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a VPC in a VPC peering connection.

            #[non_exhaustive] @@ -39782,7 +38774,7 @@ impl std::convert::From<&str> for DnsNameState { impl std::str::FromStr for DnsNameState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DnsNameState::from(s)) } } @@ -39801,15 +38793,6 @@ impl AsRef for DnsNameState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DnsNameState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about the Private DNS name for interface endpoints.

            #[non_exhaustive] @@ -39941,7 +38924,7 @@ impl std::convert::From<&str> for ServiceType { impl std::str::FromStr for ServiceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ServiceType::from(s)) } } @@ -39960,15 +38943,6 @@ impl AsRef for ServiceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ServiceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a principal.

            #[non_exhaustive] @@ -40070,7 +39044,7 @@ impl std::convert::From<&str> for PrincipalType { impl std::str::FromStr for PrincipalType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PrincipalType::from(s)) } } @@ -40092,15 +39066,6 @@ impl AsRef for PrincipalType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PrincipalType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a service configuration for a VPC endpoint service.

            #[non_exhaustive] @@ -40501,7 +39466,7 @@ impl std::convert::From<&str> for ServiceState { impl std::str::FromStr for ServiceState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ServiceState::from(s)) } } @@ -40522,15 +39487,6 @@ impl AsRef for ServiceState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ServiceState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a VPC endpoint.

            #[non_exhaustive] @@ -41070,7 +40026,7 @@ impl std::convert::From<&str> for State { impl std::str::FromStr for State { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(State::from(s)) } } @@ -41094,15 +40050,6 @@ impl AsRef for State { self.as_str() } } -impl<'de> serde::Deserialize<'de> for State { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -41134,7 +40081,7 @@ impl std::convert::From<&str> for VpcEndpointType { impl std::str::FromStr for VpcEndpointType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcEndpointType::from(s)) } } @@ -41153,15 +40100,6 @@ impl AsRef for VpcEndpointType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcEndpointType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a VPC endpoint connection to a service.

            #[non_exhaustive] @@ -41544,7 +40482,7 @@ impl std::convert::From<&str> for ConnectionNotificationState { impl std::str::FromStr for ConnectionNotificationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionNotificationState::from(s)) } } @@ -41562,15 +40500,6 @@ impl AsRef for ConnectionNotificationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionNotificationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -41598,7 +40527,7 @@ impl std::convert::From<&str> for ConnectionNotificationType { impl std::str::FromStr for ConnectionNotificationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionNotificationType::from(s)) } } @@ -41615,15 +40544,6 @@ impl AsRef for ConnectionNotificationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionNotificationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the ClassicLink DNS support status of a VPC.

            #[non_exhaustive] @@ -41796,7 +40716,7 @@ impl std::convert::From<&str> for VpcAttributeName { impl std::str::FromStr for VpcAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcAttributeName::from(s)) } } @@ -41814,15 +40734,6 @@ impl AsRef for VpcAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the volume status.

            #[non_exhaustive] @@ -42140,7 +41051,7 @@ impl std::convert::From<&str> for VolumeStatusInfoStatus { impl std::str::FromStr for VolumeStatusInfoStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeStatusInfoStatus::from(s)) } } @@ -42159,15 +41070,6 @@ impl AsRef for VolumeStatusInfoStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeStatusInfoStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a volume status.

            #[non_exhaustive] @@ -42261,7 +41163,7 @@ impl std::convert::From<&str> for VolumeStatusName { impl std::str::FromStr for VolumeStatusName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeStatusName::from(s)) } } @@ -42279,15 +41181,6 @@ impl AsRef for VolumeStatusName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeStatusName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a volume status event.

            #[non_exhaustive] @@ -42811,7 +41704,7 @@ impl std::convert::From<&str> for VolumeState { impl std::str::FromStr for VolumeState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeState::from(s)) } } @@ -42833,15 +41726,6 @@ impl AsRef for VolumeState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes volume attachment details.

            #[non_exhaustive] @@ -42994,7 +41878,7 @@ impl std::convert::From<&str> for VolumeAttributeName { impl std::str::FromStr for VolumeAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VolumeAttributeName::from(s)) } } @@ -43012,15 +41896,6 @@ impl AsRef for VolumeAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VolumeAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a transit gateway route table.

            #[non_exhaustive] @@ -43219,7 +42094,7 @@ impl std::convert::From<&str> for TransitGatewayRouteTableState { impl std::str::FromStr for TransitGatewayRouteTableState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayRouteTableState::from(s)) } } @@ -43239,15 +42114,6 @@ impl AsRef for TransitGatewayRouteTableState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayRouteTableState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the transit gateway multicast domain.

            #[non_exhaustive] @@ -43463,7 +42329,7 @@ impl std::convert::From<&str> for TransitGatewayMulticastDomainState { impl std::str::FromStr for TransitGatewayMulticastDomainState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayMulticastDomainState::from(s)) } } @@ -43483,15 +42349,6 @@ impl AsRef for TransitGatewayMulticastDomainState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayMulticastDomainState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the options for a transit gateway multicast domain.

            #[non_exhaustive] @@ -43617,7 +42474,7 @@ impl std::convert::From<&str> for AutoAcceptSharedAssociationsValue { impl std::str::FromStr for AutoAcceptSharedAssociationsValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoAcceptSharedAssociationsValue::from(s)) } } @@ -43635,15 +42492,6 @@ impl AsRef for AutoAcceptSharedAssociationsValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoAcceptSharedAssociationsValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -43673,7 +42521,7 @@ impl std::convert::From<&str> for StaticSourcesSupportValue { impl std::str::FromStr for StaticSourcesSupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StaticSourcesSupportValue::from(s)) } } @@ -43691,15 +42539,6 @@ impl AsRef for StaticSourcesSupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StaticSourcesSupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -43729,7 +42568,7 @@ impl std::convert::From<&str> for Igmpv2SupportValue { impl std::str::FromStr for Igmpv2SupportValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Igmpv2SupportValue::from(s)) } } @@ -43747,15 +42586,6 @@ impl AsRef for Igmpv2SupportValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Igmpv2SupportValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a transit gateway Connect attachment.

            #[non_exhaustive] @@ -44000,7 +42830,7 @@ impl std::convert::From<&str> for ProtocolValue { impl std::str::FromStr for ProtocolValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProtocolValue::from(s)) } } @@ -44017,15 +42847,6 @@ impl AsRef for ProtocolValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProtocolValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a transit gateway Connect peer.

            #[non_exhaustive] @@ -44445,7 +43266,7 @@ impl std::convert::From<&str> for BgpStatus { impl std::str::FromStr for BgpStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BgpStatus::from(s)) } } @@ -44463,15 +43284,6 @@ impl AsRef for BgpStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BgpStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -44505,7 +43317,7 @@ impl std::convert::From<&str> for TransitGatewayConnectPeerState { impl std::str::FromStr for TransitGatewayConnectPeerState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitGatewayConnectPeerState::from(s)) } } @@ -44525,15 +43337,6 @@ impl AsRef for TransitGatewayConnectPeerState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitGatewayConnectPeerState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an attachment between a resource and a transit gateway.

            #[non_exhaustive] @@ -44998,7 +43801,7 @@ impl std::convert::From<&str> for TrafficMirrorTargetType { impl std::str::FromStr for TrafficMirrorTargetType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficMirrorTargetType::from(s)) } } @@ -45016,15 +43819,6 @@ impl AsRef for TrafficMirrorTargetType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficMirrorTargetType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a tag.

            #[non_exhaustive] @@ -45463,7 +44257,7 @@ impl std::convert::From<&str> for SubnetState { impl std::str::FromStr for SubnetState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SubnetState::from(s)) } } @@ -45481,15 +44275,6 @@ impl AsRef for SubnetState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SubnetState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The information about the AMI store task, including the progress of the task.

            #[non_exhaustive] @@ -46209,7 +44994,7 @@ impl std::convert::From<&str> for BatchState { impl std::str::FromStr for BatchState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BatchState::from(s)) } } @@ -46232,15 +45017,6 @@ impl AsRef for BatchState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BatchState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -46274,7 +45050,7 @@ impl std::convert::From<&str> for ActivityStatus { impl std::str::FromStr for ActivityStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ActivityStatus::from(s)) } } @@ -46294,15 +45070,6 @@ impl AsRef for ActivityStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ActivityStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an event in the history of the Spot Fleet request.

            #[non_exhaustive] @@ -46453,7 +45220,7 @@ impl std::convert::From<&str> for EventType { impl std::str::FromStr for EventType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EventType::from(s)) } } @@ -46473,15 +45240,6 @@ impl AsRef for EventType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EventType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an EC2 Fleet or Spot Fleet event.

            #[non_exhaustive] @@ -46890,7 +45648,7 @@ impl std::convert::From<&str> for InstanceHealthStatus { impl std::str::FromStr for InstanceHealthStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceHealthStatus::from(s)) } } @@ -46908,15 +45666,6 @@ impl AsRef for InstanceHealthStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceHealthStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the data feed for a Spot Instance.

            #[non_exhaustive] @@ -47055,7 +45804,7 @@ impl std::convert::From<&str> for DatafeedSubscriptionState { impl std::str::FromStr for DatafeedSubscriptionState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DatafeedSubscriptionState::from(s)) } } @@ -47073,15 +45822,6 @@ impl AsRef for DatafeedSubscriptionState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DatafeedSubscriptionState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a snapshot.

            #[non_exhaustive] @@ -47393,7 +46133,7 @@ impl std::convert::From<&str> for SnapshotState { impl std::str::FromStr for SnapshotState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SnapshotState::from(s)) } } @@ -47412,15 +46152,6 @@ impl AsRef for SnapshotState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SnapshotState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a security group

            #[non_exhaustive] @@ -48664,7 +47395,7 @@ impl std::convert::From<&str> for RouteState { impl std::str::FromStr for RouteState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RouteState::from(s)) } } @@ -48682,15 +47413,6 @@ impl AsRef for RouteState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RouteState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -48722,7 +47444,7 @@ impl std::convert::From<&str> for RouteOrigin { impl std::str::FromStr for RouteOrigin { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RouteOrigin::from(s)) } } @@ -48741,15 +47463,6 @@ impl AsRef for RouteOrigin { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RouteOrigin { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a virtual private gateway propagating route.

            #[non_exhaustive] @@ -49317,7 +48030,7 @@ impl std::convert::From<&str> for RecurringChargeFrequency { impl std::str::FromStr for RecurringChargeFrequency { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RecurringChargeFrequency::from(s)) } } @@ -49334,15 +48047,6 @@ impl AsRef for RecurringChargeFrequency { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RecurringChargeFrequency { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Reserved Instance offering.

            #[non_exhaustive] @@ -49441,7 +48145,7 @@ impl std::convert::From<&str> for OfferingTypeValues { impl std::str::FromStr for OfferingTypeValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OfferingTypeValues::from(s)) } } @@ -49463,15 +48167,6 @@ impl AsRef for OfferingTypeValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OfferingTypeValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -49501,7 +48196,7 @@ impl std::convert::From<&str> for OfferingClassType { impl std::str::FromStr for OfferingClassType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OfferingClassType::from(s)) } } @@ -49519,15 +48214,6 @@ impl AsRef for OfferingClassType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OfferingClassType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Reserved Instance modification.

            #[non_exhaustive] @@ -50097,7 +48783,7 @@ impl std::convert::From<&str> for ListingStatus { impl std::str::FromStr for ListingStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListingStatus::from(s)) } } @@ -50117,15 +48803,6 @@ impl AsRef for ListingStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListingStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the price for a Reserved Instance.

            #[non_exhaustive] @@ -50316,7 +48993,7 @@ impl std::convert::From<&str> for ListingState { impl std::str::FromStr for ListingState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListingState::from(s)) } } @@ -50336,15 +49013,6 @@ impl AsRef for ListingState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListingState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Reserved Instance.

            #[non_exhaustive] @@ -50708,7 +49376,7 @@ impl std::convert::From<&str> for ReservedInstanceState { impl std::str::FromStr for ReservedInstanceState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservedInstanceState::from(s)) } } @@ -50730,15 +49398,6 @@ impl AsRef for ReservedInstanceState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservedInstanceState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about a root volume replacement task.

            #[non_exhaustive] @@ -50982,7 +49641,7 @@ impl std::convert::From<&str> for ReplaceRootVolumeTaskState { impl std::str::FromStr for ReplaceRootVolumeTaskState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplaceRootVolumeTaskState::from(s)) } } @@ -51004,15 +49663,6 @@ impl AsRef for ReplaceRootVolumeTaskState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplaceRootVolumeTaskState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Region.

            #[non_exhaustive] @@ -51722,7 +50372,7 @@ impl std::convert::From<&str> for PlacementStrategy { impl std::str::FromStr for PlacementStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlacementStrategy::from(s)) } } @@ -51741,15 +50391,6 @@ impl AsRef for PlacementStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlacementStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -51783,7 +50424,7 @@ impl std::convert::From<&str> for PlacementGroupState { impl std::str::FromStr for PlacementGroupState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlacementGroupState::from(s)) } } @@ -51803,15 +50444,6 @@ impl AsRef for PlacementGroupState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlacementGroupState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a network interface.

            #[non_exhaustive] @@ -52516,7 +51148,7 @@ impl std::convert::From<&str> for NetworkInterfaceType { impl std::str::FromStr for NetworkInterfaceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInterfaceType::from(s)) } } @@ -52535,15 +51167,6 @@ impl AsRef for NetworkInterfaceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInterfaceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a network interface attachment.

            #[non_exhaustive] @@ -52943,7 +51566,7 @@ impl std::convert::From<&str> for NetworkInterfacePermissionStateCode { impl std::str::FromStr for NetworkInterfacePermissionStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInterfacePermissionStateCode::from(s)) } } @@ -52963,15 +51586,6 @@ impl AsRef for NetworkInterfacePermissionStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInterfacePermissionStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -53001,7 +51615,7 @@ impl std::convert::From<&str> for InterfacePermissionType { impl std::str::FromStr for InterfacePermissionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InterfacePermissionType::from(s)) } } @@ -53019,15 +51633,6 @@ impl AsRef for InterfacePermissionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InterfacePermissionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -53061,7 +51666,7 @@ impl std::convert::From<&str> for NetworkInterfaceAttribute { impl std::str::FromStr for NetworkInterfaceAttribute { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInterfaceAttribute::from(s)) } } @@ -53081,15 +51686,6 @@ impl AsRef for NetworkInterfaceAttribute { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInterfaceAttribute { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a path.

            #[non_exhaustive] @@ -53308,7 +51904,7 @@ impl std::convert::From<&str> for Protocol { impl std::str::FromStr for Protocol { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Protocol::from(s)) } } @@ -53326,15 +51922,6 @@ impl AsRef for Protocol { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Protocol { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a network ACL.

            #[non_exhaustive] @@ -54089,7 +52676,7 @@ impl std::convert::From<&str> for ConnectivityType { impl std::str::FromStr for ConnectivityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectivityType::from(s)) } } @@ -54107,15 +52694,6 @@ impl AsRef for ConnectivityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectivityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -54151,7 +52729,7 @@ impl std::convert::From<&str> for NatGatewayState { impl std::str::FromStr for NatGatewayState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NatGatewayState::from(s)) } } @@ -54172,15 +52750,6 @@ impl AsRef for NatGatewayState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NatGatewayState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

            #[non_exhaustive] @@ -54478,7 +53047,7 @@ impl std::convert::From<&str> for MoveStatus { impl std::str::FromStr for MoveStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MoveStatus::from(s)) } } @@ -54496,15 +53065,6 @@ impl AsRef for MoveStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MoveStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a local gateway virtual interface.

            #[non_exhaustive] @@ -56519,7 +55079,7 @@ impl std::convert::From<&str> for BootModeType { impl std::str::FromStr for BootModeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BootModeType::from(s)) } } @@ -56537,15 +55097,6 @@ impl AsRef for BootModeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BootModeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the Inference accelerators for the instance type.

            #[non_exhaustive] @@ -56760,7 +55311,7 @@ impl std::convert::From<&str> for PlacementGroupStrategy { impl std::str::FromStr for PlacementGroupStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlacementGroupStrategy::from(s)) } } @@ -56779,15 +55330,6 @@ impl AsRef for PlacementGroupStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlacementGroupStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the FPGAs for the instance type.

            #[non_exhaustive] @@ -57483,7 +56025,7 @@ impl std::convert::From<&str> for EnaSupport { impl std::str::FromStr for EnaSupport { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EnaSupport::from(s)) } } @@ -57502,15 +56044,6 @@ impl AsRef for EnaSupport { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EnaSupport { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the network card support of the instance type.

            #[non_exhaustive] @@ -57726,7 +56259,7 @@ impl std::convert::From<&str> for EbsNvmeSupport { impl std::str::FromStr for EbsNvmeSupport { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EbsNvmeSupport::from(s)) } } @@ -57745,15 +56278,6 @@ impl AsRef for EbsNvmeSupport { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EbsNvmeSupport { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the optimized EBS performance for supported instance types.

            #[non_exhaustive] @@ -57909,7 +56433,7 @@ impl std::convert::From<&str> for EbsEncryptionSupport { impl std::str::FromStr for EbsEncryptionSupport { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EbsEncryptionSupport::from(s)) } } @@ -57927,15 +56451,6 @@ impl AsRef for EbsEncryptionSupport { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EbsEncryptionSupport { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -57967,7 +56482,7 @@ impl std::convert::From<&str> for EbsOptimizedSupport { impl std::str::FromStr for EbsOptimizedSupport { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EbsOptimizedSupport::from(s)) } } @@ -57986,15 +56501,6 @@ impl AsRef for EbsOptimizedSupport { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EbsOptimizedSupport { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the disks that are available for the instance type.

            #[non_exhaustive] @@ -58108,7 +56614,7 @@ impl std::convert::From<&str> for EphemeralNvmeSupport { impl std::str::FromStr for EphemeralNvmeSupport { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EphemeralNvmeSupport::from(s)) } } @@ -58127,15 +56633,6 @@ impl AsRef for EphemeralNvmeSupport { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EphemeralNvmeSupport { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the disk.

            #[non_exhaustive] @@ -58240,7 +56737,7 @@ impl std::convert::From<&str> for DiskType { impl std::str::FromStr for DiskType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DiskType::from(s)) } } @@ -58258,15 +56755,6 @@ impl AsRef for DiskType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DiskType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the memory for the instance type.

            #[non_exhaustive] @@ -58525,7 +57013,7 @@ impl std::convert::From<&str> for ArchitectureType { impl std::str::FromStr for ArchitectureType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ArchitectureType::from(s)) } } @@ -58544,15 +57032,6 @@ impl AsRef for ArchitectureType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ArchitectureType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -58582,7 +57061,7 @@ impl std::convert::From<&str> for InstanceTypeHypervisor { impl std::str::FromStr for InstanceTypeHypervisor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceTypeHypervisor::from(s)) } } @@ -58600,15 +57079,6 @@ impl AsRef for InstanceTypeHypervisor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceTypeHypervisor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -58638,7 +57108,7 @@ impl std::convert::From<&str> for RootDeviceType { impl std::str::FromStr for RootDeviceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RootDeviceType::from(s)) } } @@ -58656,15 +57126,6 @@ impl AsRef for RootDeviceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RootDeviceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -58694,7 +57155,7 @@ impl std::convert::From<&str> for UsageClassType { impl std::str::FromStr for UsageClassType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UsageClassType::from(s)) } } @@ -58712,15 +57173,6 @@ impl AsRef for UsageClassType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UsageClassType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The instance types offered.

            #[non_exhaustive] @@ -58835,7 +57287,7 @@ impl std::convert::From<&str> for LocationType { impl std::str::FromStr for LocationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LocationType::from(s)) } } @@ -58854,15 +57306,6 @@ impl AsRef for LocationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LocationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the status of an instance.

            #[non_exhaustive] @@ -59119,7 +57562,7 @@ impl std::convert::From<&str> for SummaryStatus { impl std::str::FromStr for SummaryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SummaryStatus::from(s)) } } @@ -59140,15 +57583,6 @@ impl AsRef for SummaryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SummaryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the instance status.

            #[non_exhaustive] @@ -59262,7 +57696,7 @@ impl std::convert::From<&str> for StatusType { impl std::str::FromStr for StatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StatusType::from(s)) } } @@ -59282,15 +57716,6 @@ impl AsRef for StatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -59318,7 +57743,7 @@ impl std::convert::From<&str> for StatusName { impl std::str::FromStr for StatusName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StatusName::from(s)) } } @@ -59335,15 +57760,6 @@ impl AsRef for StatusName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StatusName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a launch request for one or more instances, and includes /// owner, requester, and security group information that applies to all @@ -60433,7 +58849,7 @@ impl std::convert::From<&str> for ImageState { impl std::str::FromStr for ImageState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageState::from(s)) } } @@ -60456,15 +58872,6 @@ impl AsRef for ImageState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -60496,7 +58903,7 @@ impl std::convert::From<&str> for ImageTypeValues { impl std::str::FromStr for ImageTypeValues { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageTypeValues::from(s)) } } @@ -60515,15 +58922,6 @@ impl AsRef for ImageTypeValues { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageTypeValues { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -60565,7 +58963,7 @@ impl std::convert::From<&str> for ImageAttributeName { impl std::str::FromStr for ImageAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageAttributeName::from(s)) } } @@ -60589,15 +58987,6 @@ impl AsRef for ImageAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the properties of the Dedicated Host.

            #[non_exhaustive] @@ -60965,7 +59354,7 @@ impl std::convert::From<&str> for AllowsMultipleInstanceTypes { impl std::str::FromStr for AllowsMultipleInstanceTypes { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AllowsMultipleInstanceTypes::from(s)) } } @@ -60983,15 +59372,6 @@ impl AsRef for AllowsMultipleInstanceTypes { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AllowsMultipleInstanceTypes { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -61029,7 +59409,7 @@ impl std::convert::From<&str> for AllocationState { impl std::str::FromStr for AllocationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AllocationState::from(s)) } } @@ -61051,15 +59431,6 @@ impl AsRef for AllocationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AllocationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an instance running on a Dedicated Host.

            #[non_exhaustive] @@ -61711,7 +60082,7 @@ impl std::convert::From<&str> for ReservationState { impl std::str::FromStr for ReservationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationState::from(s)) } } @@ -61731,15 +60102,6 @@ impl AsRef for ReservationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Details about the Dedicated Host Reservation offering.

            #[non_exhaustive] @@ -62287,7 +60649,7 @@ impl std::convert::From<&str> for FpgaImageStateCode { impl std::str::FromStr for FpgaImageStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FpgaImageStateCode::from(s)) } } @@ -62307,15 +60669,6 @@ impl AsRef for FpgaImageStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FpgaImageStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus.

            #[non_exhaustive] @@ -62736,7 +61089,7 @@ impl std::convert::From<&str> for LogDestinationType { impl std::str::FromStr for LogDestinationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LogDestinationType::from(s)) } } @@ -62754,15 +61107,6 @@ impl AsRef for LogDestinationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LogDestinationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -62794,7 +61138,7 @@ impl std::convert::From<&str> for TrafficType { impl std::str::FromStr for TrafficType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficType::from(s)) } } @@ -62813,15 +61157,6 @@ impl AsRef for TrafficType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an EC2 Fleet.

            #[non_exhaustive] @@ -63426,7 +61761,7 @@ impl std::convert::From<&str> for InstanceLifecycle { impl std::str::FromStr for InstanceLifecycle { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceLifecycle::from(s)) } } @@ -63444,15 +61779,6 @@ impl AsRef for InstanceLifecycle { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceLifecycle { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a launch template and overrides.

            #[non_exhaustive] @@ -64114,7 +62440,7 @@ impl std::convert::From<&str> for FleetCapacityReservationUsageStrategy { impl std::str::FromStr for FleetCapacityReservationUsageStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetCapacityReservationUsageStrategy::from(s)) } } @@ -64133,15 +62459,6 @@ impl AsRef for FleetCapacityReservationUsageStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetCapacityReservationUsageStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -64171,7 +62488,7 @@ impl std::convert::From<&str> for FleetOnDemandAllocationStrategy { impl std::str::FromStr for FleetOnDemandAllocationStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetOnDemandAllocationStrategy::from(s)) } } @@ -64189,15 +62506,6 @@ impl AsRef for FleetOnDemandAllocationStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetOnDemandAllocationStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the configuration of Spot Instances in an EC2 Fleet.

            #[non_exhaustive] @@ -64447,7 +62755,7 @@ impl std::convert::From<&str> for SpotInstanceInterruptionBehavior { impl std::str::FromStr for SpotInstanceInterruptionBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SpotInstanceInterruptionBehavior::from(s)) } } @@ -64466,15 +62774,6 @@ impl AsRef for SpotInstanceInterruptionBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SpotInstanceInterruptionBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The strategies for managing your Spot Instances that are at an elevated risk of being /// interrupted.

            @@ -64626,7 +62925,7 @@ impl std::convert::From<&str> for FleetReplacementStrategy { impl std::str::FromStr for FleetReplacementStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetReplacementStrategy::from(s)) } } @@ -64643,15 +62942,6 @@ impl AsRef for FleetReplacementStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetReplacementStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -64687,7 +62977,7 @@ impl std::convert::From<&str> for SpotAllocationStrategy { impl std::str::FromStr for SpotAllocationStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SpotAllocationStrategy::from(s)) } } @@ -64709,15 +62999,6 @@ impl AsRef for SpotAllocationStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SpotAllocationStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The number of units to request. You can choose to set the target capacity in terms of /// instances or a performance characteristic that is important to your application workload, @@ -64952,7 +63233,7 @@ impl std::convert::From<&str> for FleetStateCode { impl std::str::FromStr for FleetStateCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetStateCode::from(s)) } } @@ -64975,15 +63256,6 @@ impl AsRef for FleetStateCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetStateCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -65017,7 +63289,7 @@ impl std::convert::From<&str> for FleetActivityStatus { impl std::str::FromStr for FleetActivityStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetActivityStatus::from(s)) } } @@ -65037,15 +63309,6 @@ impl AsRef for FleetActivityStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetActivityStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an event in the history of an EC2 Fleet.

            #[non_exhaustive] @@ -65160,7 +63423,7 @@ impl std::convert::From<&str> for FleetEventType { impl std::str::FromStr for FleetEventType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FleetEventType::from(s)) } } @@ -65179,15 +63442,6 @@ impl AsRef for FleetEventType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FleetEventType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes fast snapshot restores for a snapshot.

            #[non_exhaustive] @@ -65610,7 +63864,7 @@ impl std::convert::From<&str> for ExportTaskState { impl std::str::FromStr for ExportTaskState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportTaskState::from(s)) } } @@ -65630,15 +63884,6 @@ impl AsRef for ExportTaskState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportTaskState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an instance to export.

            #[non_exhaustive] @@ -65734,7 +63979,7 @@ impl std::convert::From<&str> for ExportEnvironment { impl std::str::FromStr for ExportEnvironment { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportEnvironment::from(s)) } } @@ -65753,15 +63998,6 @@ impl AsRef for ExportEnvironment { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportEnvironment { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the format and location for the export task.

            #[non_exhaustive] @@ -65890,7 +64126,7 @@ impl std::convert::From<&str> for ContainerFormat { impl std::str::FromStr for ContainerFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContainerFormat::from(s)) } } @@ -65907,15 +64143,6 @@ impl AsRef for ContainerFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContainerFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an export image task.

            #[non_exhaustive] @@ -66253,7 +64480,7 @@ impl std::convert::From<&str> for ElasticGpuState { impl std::str::FromStr for ElasticGpuState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ElasticGpuState::from(s)) } } @@ -66270,15 +64497,6 @@ impl AsRef for ElasticGpuState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ElasticGpuState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the status of an Elastic Graphics accelerator.

            #[non_exhaustive] @@ -66358,7 +64576,7 @@ impl std::convert::From<&str> for ElasticGpuStatus { impl std::str::FromStr for ElasticGpuStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ElasticGpuStatus::from(s)) } } @@ -66376,15 +64594,6 @@ impl AsRef for ElasticGpuStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ElasticGpuStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an egress-only internet gateway.

            #[non_exhaustive] @@ -67306,7 +65515,7 @@ impl std::convert::From<&str> for ClientVpnRouteStatusCode { impl std::str::FromStr for ClientVpnRouteStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnRouteStatusCode::from(s)) } } @@ -67326,15 +65535,6 @@ impl AsRef for ClientVpnRouteStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnRouteStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Client VPN endpoint.

            #[non_exhaustive] @@ -67914,7 +66114,7 @@ impl std::convert::From<&str> for ClientVpnEndpointAttributeStatusCode { impl std::str::FromStr for ClientVpnEndpointAttributeStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnEndpointAttributeStatusCode::from(s)) } } @@ -67932,15 +66132,6 @@ impl AsRef for ClientVpnEndpointAttributeStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnEndpointAttributeStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Information about the client connection logging options for a Client VPN endpoint.

            #[non_exhaustive] @@ -68345,7 +66536,7 @@ impl std::convert::From<&str> for ClientVpnAuthenticationType { impl std::str::FromStr for ClientVpnAuthenticationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnAuthenticationType::from(s)) } } @@ -68366,15 +66557,6 @@ impl AsRef for ClientVpnAuthenticationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnAuthenticationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a target network that is associated with a Client VPN endpoint. A target network is a subnet in a VPC.

            #[non_exhaustive] @@ -68466,7 +66648,7 @@ impl std::convert::From<&str> for AssociatedNetworkType { impl std::str::FromStr for AssociatedNetworkType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociatedNetworkType::from(s)) } } @@ -68483,15 +66665,6 @@ impl AsRef for AssociatedNetworkType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociatedNetworkType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -68521,7 +66694,7 @@ impl std::convert::From<&str> for TransportProtocol { impl std::str::FromStr for TransportProtocol { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransportProtocol::from(s)) } } @@ -68539,15 +66712,6 @@ impl AsRef for TransportProtocol { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransportProtocol { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -68575,7 +66739,7 @@ impl std::convert::From<&str> for VpnProtocol { impl std::str::FromStr for VpnProtocol { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpnProtocol::from(s)) } } @@ -68592,15 +66756,6 @@ impl AsRef for VpnProtocol { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpnProtocol { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the state of a Client VPN endpoint.

            #[non_exhaustive] @@ -68742,7 +66897,7 @@ impl std::convert::From<&str> for ClientVpnEndpointStatusCode { impl std::str::FromStr for ClientVpnEndpointStatusCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClientVpnEndpointStatusCode::from(s)) } } @@ -68762,15 +66917,6 @@ impl AsRef for ClientVpnEndpointStatusCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClientVpnEndpointStatusCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a client connection.

            #[non_exhaustive] @@ -69414,7 +67560,7 @@ impl std::convert::From<&str> for CarrierGatewayState { impl std::str::FromStr for CarrierGatewayState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CarrierGatewayState::from(s)) } } @@ -69434,15 +67580,6 @@ impl AsRef for CarrierGatewayState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CarrierGatewayState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Capacity Reservation.

            #[non_exhaustive] @@ -69970,7 +68107,7 @@ impl std::convert::From<&str> for InstanceMatchCriteria { impl std::str::FromStr for InstanceMatchCriteria { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceMatchCriteria::from(s)) } } @@ -69988,15 +68125,6 @@ impl AsRef for InstanceMatchCriteria { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceMatchCriteria { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -70026,7 +68154,7 @@ impl std::convert::From<&str> for CapacityReservationTenancy { impl std::str::FromStr for CapacityReservationTenancy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityReservationTenancy::from(s)) } } @@ -70044,15 +68172,6 @@ impl AsRef for CapacityReservationTenancy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityReservationTenancy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -70114,7 +68233,7 @@ impl std::convert::From<&str> for CapacityReservationInstancePlatform { impl std::str::FromStr for CapacityReservationInstancePlatform { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityReservationInstancePlatform::from(s)) } } @@ -70155,15 +68274,6 @@ impl AsRef for CapacityReservationInstancePlatform { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityReservationInstancePlatform { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a bundle task.

            #[non_exhaustive] @@ -70513,7 +68623,7 @@ impl std::convert::From<&str> for BundleTaskState { impl std::str::FromStr for BundleTaskState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BundleTaskState::from(s)) } } @@ -70536,15 +68646,6 @@ impl AsRef for BundleTaskState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BundleTaskState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an error for BundleInstance.

            #[non_exhaustive] @@ -70911,7 +69012,7 @@ impl std::convert::From<&str> for AvailabilityZoneOptInStatus { impl std::str::FromStr for AvailabilityZoneOptInStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AvailabilityZoneOptInStatus::from(s)) } } @@ -70930,15 +69031,6 @@ impl AsRef for AvailabilityZoneOptInStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AvailabilityZoneOptInStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -70972,7 +69064,7 @@ impl std::convert::From<&str> for AvailabilityZoneState { impl std::str::FromStr for AvailabilityZoneState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AvailabilityZoneState::from(s)) } } @@ -70992,15 +69084,6 @@ impl AsRef for AvailabilityZoneState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AvailabilityZoneState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an Elastic IP address, or a carrier IP address.

            #[non_exhaustive] @@ -71299,7 +69382,7 @@ impl std::convert::From<&str> for DomainType { impl std::str::FromStr for DomainType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DomainType::from(s)) } } @@ -71317,15 +69400,6 @@ impl AsRef for DomainType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DomainType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an account attribute.

            #[non_exhaustive] @@ -71477,7 +69551,7 @@ impl std::convert::From<&str> for AccountAttributeName { impl std::str::FromStr for AccountAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AccountAttributeName::from(s)) } } @@ -71495,15 +69569,6 @@ impl AsRef for AccountAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AccountAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the deregistered transit gateway multicast group sources.

            #[non_exhaustive] @@ -71943,7 +70008,7 @@ impl std::convert::From<&str> for DeleteQueuedReservedInstancesErrorCode { impl std::str::FromStr for DeleteQueuedReservedInstancesErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeleteQueuedReservedInstancesErrorCode::from(s)) } } @@ -71966,15 +70031,6 @@ impl AsRef for DeleteQueuedReservedInstancesErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeleteQueuedReservedInstancesErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Reserved Instance whose queued purchase was successfully deleted.

            #[non_exhaustive] @@ -72229,7 +70285,7 @@ impl std::convert::From<&str> for LaunchTemplateErrorCode { impl std::str::FromStr for LaunchTemplateErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LaunchTemplateErrorCode::from(s)) } } @@ -72255,15 +70311,6 @@ impl AsRef for LaunchTemplateErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LaunchTemplateErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a launch template version that was successfully deleted.

            #[non_exhaustive] @@ -72507,7 +70554,7 @@ impl std::convert::From<&str> for DeleteFleetErrorCode { impl std::str::FromStr for DeleteFleetErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeleteFleetErrorCode::from(s)) } } @@ -72527,15 +70574,6 @@ impl AsRef for DeleteFleetErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeleteFleetErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes an EC2 Fleet that was successfully deleted.

            #[non_exhaustive] @@ -72940,16 +70978,16 @@ pub struct VpnTunnelOptionsSpecification { ///

            Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 ///

            pub phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.

            ///

            Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 ///

            pub phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, ///

            The IKE versions that are permitted for the VPN tunnel.

            ///

            Valid values: ikev1 | ikev2 ///

            - pub ike_versions: std::option::Option>, + pub ike_versions: std::option::Option>, ///

            The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation.

            ///

            Valid Values: add | start ///

            @@ -73022,11 +71060,11 @@ pub mod vpn_tunnel_options_specification { std::vec::Vec, >, pub(crate) phase1_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) phase2_dh_group_numbers: - std::option::Option>, + std::option::Option>, pub(crate) ike_versions: - std::option::Option>, + std::option::Option>, pub(crate) startup_action: std::option::Option, } impl Builder { @@ -73273,7 +71311,7 @@ pub mod vpn_tunnel_options_specification { } pub fn phase1_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase1_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -73283,7 +71321,7 @@ pub mod vpn_tunnel_options_specification { pub fn set_phase1_dh_group_numbers( mut self, input: std::option::Option< - std::vec::Vec, + std::vec::Vec, >, ) -> Self { self.phase1_dh_group_numbers = input; @@ -73291,7 +71329,7 @@ pub mod vpn_tunnel_options_specification { } pub fn phase2_dh_group_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phase2_dh_group_numbers.unwrap_or_default(); v.push(input.into()); @@ -73301,7 +71339,7 @@ pub mod vpn_tunnel_options_specification { pub fn set_phase2_dh_group_numbers( mut self, input: std::option::Option< - std::vec::Vec, + std::vec::Vec, >, ) -> Self { self.phase2_dh_group_numbers = input; @@ -73309,7 +71347,7 @@ pub mod vpn_tunnel_options_specification { } pub fn ike_versions( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.ike_versions.unwrap_or_default(); v.push(input.into()); @@ -73318,7 +71356,7 @@ pub mod vpn_tunnel_options_specification { } pub fn set_ike_versions( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ike_versions = input; self @@ -74151,7 +72189,7 @@ impl std::convert::From<&str> for CopyTagsFromSource { impl std::str::FromStr for CopyTagsFromSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CopyTagsFromSource::from(s)) } } @@ -74168,15 +72206,6 @@ impl AsRef for CopyTagsFromSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CopyTagsFromSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The instance details to specify which volumes should be snapshotted.

            #[non_exhaustive] @@ -74345,7 +72374,7 @@ impl std::convert::From<&str> for NetworkInterfaceCreationType { impl std::str::FromStr for NetworkInterfaceCreationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInterfaceCreationType::from(s)) } } @@ -74362,15 +72391,6 @@ impl AsRef for NetworkInterfaceCreationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInterfaceCreationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            The error codes and error messages that are returned for the parameters or parameter combinations that are not valid when a new launch template or new version of a launch template is created.

            #[non_exhaustive] @@ -77101,7 +75121,7 @@ impl std::convert::From<&str> for FlowLogsResourceType { impl std::str::FromStr for FlowLogsResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FlowLogsResourceType::from(s)) } } @@ -77120,15 +75140,6 @@ impl AsRef for FlowLogsResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FlowLogsResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes the instances that were launched by the fleet.

            #[non_exhaustive] @@ -78412,7 +76423,7 @@ impl std::convert::From<&str> for CancelSpotInstanceRequestState { impl std::str::FromStr for CancelSpotInstanceRequestState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CancelSpotInstanceRequestState::from(s)) } } @@ -78433,15 +76444,6 @@ impl AsRef for CancelSpotInstanceRequestState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CancelSpotInstanceRequestState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Spot Fleet request that was not successfully canceled.

            #[non_exhaustive] @@ -78608,7 +76610,7 @@ impl std::convert::From<&str> for CancelBatchErrorCode { impl std::str::FromStr for CancelBatchErrorCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CancelBatchErrorCode::from(s)) } } @@ -78630,15 +76632,6 @@ impl AsRef for CancelBatchErrorCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CancelBatchErrorCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Describes a Spot Fleet request that was successfully canceled.

            #[non_exhaustive] diff --git a/sdk/ec2/src/operation.rs b/sdk/ec2/src/operation.rs index 0775a2b83224..85ccc5753697 100644 --- a/sdk/ec2/src/operation.rs +++ b/sdk/ec2/src/operation.rs @@ -10088,7 +10088,7 @@ pub struct EnableVolumeIO { _private: (), } impl EnableVolumeIO { - /// Creates a new builder-style object to manufacture [`EnableVolumeIOInput`](crate::input::EnableVolumeIOInput) + /// Creates a new builder-style object to manufacture [`EnableVolumeIoInput`](crate::input::EnableVolumeIoInput) pub fn builder() -> crate::input::enable_volume_io_input::Builder { crate::input::enable_volume_io_input::Builder::default() } @@ -10098,7 +10098,7 @@ impl EnableVolumeIO { } impl smithy_http::response::ParseStrictResponse for EnableVolumeIO { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_enable_volume_io_error(response) diff --git a/sdk/ec2/src/operation_deser.rs b/sdk/ec2/src/operation_deser.rs index a126b8a1dd8c..ecf2d14cef59 100644 --- a/sdk/ec2/src/operation_deser.rs +++ b/sdk/ec2/src/operation_deser.rs @@ -9637,7 +9637,7 @@ pub fn parse_enable_vgw_route_propagation_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_enable_volume_io_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::EnableVolumeIOError::unhandled)?; Err(crate::error::EnableVolumeIOError::generic(generic)) @@ -9646,7 +9646,7 @@ pub fn parse_enable_volume_io_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_enable_volume_io_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::enable_volume_io_output::Builder::default(); diff --git a/sdk/ec2/src/operation_ser.rs b/sdk/ec2/src/operation_ser.rs index e76d321c87b8..4fa63c3053fb 100644 --- a/sdk/ec2/src/operation_ser.rs +++ b/sdk/ec2/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_accept_reserved_instances_exchange_quote( input: &crate::input::AcceptReservedInstancesExchangeQuoteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -42,7 +42,7 @@ pub fn serialize_operation_accept_reserved_instances_exchange_quote( pub fn serialize_operation_accept_transit_gateway_multicast_domain_associations( input: &crate::input::AcceptTransitGatewayMulticastDomainAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -82,7 +82,7 @@ pub fn serialize_operation_accept_transit_gateway_multicast_domain_associations( pub fn serialize_operation_accept_transit_gateway_peering_attachment( input: &crate::input::AcceptTransitGatewayPeeringAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -106,7 +106,7 @@ pub fn serialize_operation_accept_transit_gateway_peering_attachment( pub fn serialize_operation_accept_transit_gateway_vpc_attachment( input: &crate::input::AcceptTransitGatewayVpcAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -127,7 +127,7 @@ pub fn serialize_operation_accept_transit_gateway_vpc_attachment( pub fn serialize_operation_accept_vpc_endpoint_connections( input: &crate::input::AcceptVpcEndpointConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -159,7 +159,7 @@ pub fn serialize_operation_accept_vpc_endpoint_connections( pub fn serialize_operation_accept_vpc_peering_connection( input: &crate::input::AcceptVpcPeeringConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -180,7 +180,7 @@ pub fn serialize_operation_accept_vpc_peering_connection( pub fn serialize_operation_advertise_byoip_cidr( input: &crate::input::AdvertiseByoipCidrInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AdvertiseByoipCidr", "2016-11-15"); @@ -200,7 +200,7 @@ pub fn serialize_operation_advertise_byoip_cidr( pub fn serialize_operation_allocate_address( input: &crate::input::AllocateAddressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AllocateAddress", "2016-11-15"); @@ -251,7 +251,7 @@ pub fn serialize_operation_allocate_address( pub fn serialize_operation_allocate_hosts( input: &crate::input::AllocateHostsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AllocateHosts", "2016-11-15"); @@ -310,7 +310,7 @@ pub fn serialize_operation_allocate_hosts( pub fn serialize_operation_apply_security_groups_to_client_vpn_target_network( input: &crate::input::ApplySecurityGroupsToClientVpnTargetNetworkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -350,7 +350,7 @@ pub fn serialize_operation_apply_security_groups_to_client_vpn_target_network( pub fn serialize_operation_assign_ipv6_addresses( input: &crate::input::AssignIpv6AddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssignIpv6Addresses", "2016-11-15"); @@ -384,7 +384,7 @@ pub fn serialize_operation_assign_ipv6_addresses( pub fn serialize_operation_assign_private_ip_addresses( input: &crate::input::AssignPrivateIpAddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -424,7 +424,7 @@ pub fn serialize_operation_assign_private_ip_addresses( pub fn serialize_operation_associate_address( input: &crate::input::AssociateAddressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssociateAddress", "2016-11-15"); @@ -469,7 +469,7 @@ pub fn serialize_operation_associate_address( pub fn serialize_operation_associate_client_vpn_target_network( input: &crate::input::AssociateClientVpnTargetNetworkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -500,7 +500,7 @@ pub fn serialize_operation_associate_client_vpn_target_network( pub fn serialize_operation_associate_dhcp_options( input: &crate::input::AssociateDhcpOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssociateDhcpOptions", "2016-11-15"); @@ -525,7 +525,7 @@ pub fn serialize_operation_associate_dhcp_options( pub fn serialize_operation_associate_enclave_certificate_iam_role( input: &crate::input::AssociateEnclaveCertificateIamRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -554,7 +554,7 @@ pub fn serialize_operation_associate_enclave_certificate_iam_role( pub fn serialize_operation_associate_iam_instance_profile( input: &crate::input::AssociateIamInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -577,7 +577,7 @@ pub fn serialize_operation_associate_iam_instance_profile( pub fn serialize_operation_associate_route_table( input: &crate::input::AssociateRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssociateRouteTable", "2016-11-15"); @@ -607,7 +607,7 @@ pub fn serialize_operation_associate_route_table( pub fn serialize_operation_associate_subnet_cidr_block( input: &crate::input::AssociateSubnetCidrBlockInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -628,7 +628,7 @@ pub fn serialize_operation_associate_subnet_cidr_block( pub fn serialize_operation_associate_transit_gateway_multicast_domain( input: &crate::input::AssociateTransitGatewayMulticastDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -668,7 +668,7 @@ pub fn serialize_operation_associate_transit_gateway_multicast_domain( pub fn serialize_operation_associate_transit_gateway_route_table( input: &crate::input::AssociateTransitGatewayRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -694,7 +694,7 @@ pub fn serialize_operation_associate_transit_gateway_route_table( pub fn serialize_operation_associate_vpc_cidr_block( input: &crate::input::AssociateVpcCidrBlockInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -735,7 +735,7 @@ pub fn serialize_operation_associate_vpc_cidr_block( pub fn serialize_operation_attach_classic_link_vpc( input: &crate::input::AttachClassicLinkVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachClassicLinkVpc", "2016-11-15"); @@ -771,7 +771,7 @@ pub fn serialize_operation_attach_classic_link_vpc( pub fn serialize_operation_attach_internet_gateway( input: &crate::input::AttachInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -797,7 +797,7 @@ pub fn serialize_operation_attach_internet_gateway( pub fn serialize_operation_attach_network_interface( input: &crate::input::AttachNetworkInterfaceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -839,7 +839,7 @@ pub fn serialize_operation_attach_network_interface( pub fn serialize_operation_attach_volume( input: &crate::input::AttachVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachVolume", "2016-11-15"); @@ -869,7 +869,7 @@ pub fn serialize_operation_attach_volume( pub fn serialize_operation_attach_vpn_gateway( input: &crate::input::AttachVpnGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachVpnGateway", "2016-11-15"); @@ -894,7 +894,7 @@ pub fn serialize_operation_attach_vpn_gateway( pub fn serialize_operation_authorize_client_vpn_ingress( input: &crate::input::AuthorizeClientVpnIngressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -940,7 +940,7 @@ pub fn serialize_operation_authorize_client_vpn_ingress( pub fn serialize_operation_authorize_security_group_egress( input: &crate::input::AuthorizeSecurityGroupEgressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1008,7 +1008,7 @@ pub fn serialize_operation_authorize_security_group_egress( pub fn serialize_operation_authorize_security_group_ingress( input: &crate::input::AuthorizeSecurityGroupIngressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1081,7 +1081,7 @@ pub fn serialize_operation_authorize_security_group_ingress( pub fn serialize_operation_bundle_instance( input: &crate::input::BundleInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "BundleInstance", "2016-11-15"); @@ -1106,7 +1106,7 @@ pub fn serialize_operation_bundle_instance( pub fn serialize_operation_cancel_bundle_task( input: &crate::input::CancelBundleTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelBundleTask", "2016-11-15"); @@ -1126,7 +1126,7 @@ pub fn serialize_operation_cancel_bundle_task( pub fn serialize_operation_cancel_capacity_reservation( input: &crate::input::CancelCapacityReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1147,7 +1147,7 @@ pub fn serialize_operation_cancel_capacity_reservation( pub fn serialize_operation_cancel_conversion_task( input: &crate::input::CancelConversionTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelConversionTask", "2016-11-15"); @@ -1172,7 +1172,7 @@ pub fn serialize_operation_cancel_conversion_task( pub fn serialize_operation_cancel_export_task( input: &crate::input::CancelExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelExportTask", "2016-11-15"); @@ -1187,7 +1187,7 @@ pub fn serialize_operation_cancel_export_task( pub fn serialize_operation_cancel_import_task( input: &crate::input::CancelImportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelImportTask", "2016-11-15"); @@ -1212,7 +1212,7 @@ pub fn serialize_operation_cancel_import_task( pub fn serialize_operation_cancel_reserved_instances_listing( input: &crate::input::CancelReservedInstancesListingInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1228,7 +1228,7 @@ pub fn serialize_operation_cancel_reserved_instances_listing( pub fn serialize_operation_cancel_spot_fleet_requests( input: &crate::input::CancelSpotFleetRequestsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1260,7 +1260,7 @@ pub fn serialize_operation_cancel_spot_fleet_requests( pub fn serialize_operation_cancel_spot_instance_requests( input: &crate::input::CancelSpotInstanceRequestsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1287,7 +1287,7 @@ pub fn serialize_operation_cancel_spot_instance_requests( pub fn serialize_operation_confirm_product_instance( input: &crate::input::ConfirmProductInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1313,7 +1313,7 @@ pub fn serialize_operation_confirm_product_instance( pub fn serialize_operation_copy_fpga_image( input: &crate::input::CopyFpgaImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopyFpgaImage", "2016-11-15"); @@ -1353,7 +1353,7 @@ pub fn serialize_operation_copy_fpga_image( pub fn serialize_operation_copy_image( input: &crate::input::CopyImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopyImage", "2016-11-15"); @@ -1408,7 +1408,7 @@ pub fn serialize_operation_copy_image( pub fn serialize_operation_copy_snapshot( input: &crate::input::CopySnapshotInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopySnapshot", "2016-11-15"); @@ -1474,7 +1474,7 @@ pub fn serialize_operation_copy_snapshot( pub fn serialize_operation_create_capacity_reservation( input: &crate::input::CreateCapacityReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1569,7 +1569,7 @@ pub fn serialize_operation_create_capacity_reservation( pub fn serialize_operation_create_carrier_gateway( input: &crate::input::CreateCarrierGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateCarrierGateway", "2016-11-15"); @@ -1605,7 +1605,7 @@ pub fn serialize_operation_create_carrier_gateway( pub fn serialize_operation_create_client_vpn_endpoint( input: &crate::input::CreateClientVpnEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1725,7 +1725,7 @@ pub fn serialize_operation_create_client_vpn_endpoint( pub fn serialize_operation_create_client_vpn_route( input: &crate::input::CreateClientVpnRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateClientVpnRoute", "2016-11-15"); @@ -1765,7 +1765,7 @@ pub fn serialize_operation_create_client_vpn_route( pub fn serialize_operation_create_customer_gateway( input: &crate::input::CreateCustomerGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1820,7 +1820,7 @@ pub fn serialize_operation_create_customer_gateway( pub fn serialize_operation_create_default_subnet( input: &crate::input::CreateDefaultSubnetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDefaultSubnet", "2016-11-15"); @@ -1840,7 +1840,7 @@ pub fn serialize_operation_create_default_subnet( pub fn serialize_operation_create_default_vpc( input: &crate::input::CreateDefaultVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDefaultVpc", "2016-11-15"); @@ -1855,7 +1855,7 @@ pub fn serialize_operation_create_default_vpc( pub fn serialize_operation_create_dhcp_options( input: &crate::input::CreateDhcpOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDhcpOptions", "2016-11-15"); @@ -1892,7 +1892,7 @@ pub fn serialize_operation_create_dhcp_options( pub fn serialize_operation_create_egress_only_internet_gateway( input: &crate::input::CreateEgressOnlyInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1929,7 +1929,7 @@ pub fn serialize_operation_create_egress_only_internet_gateway( pub fn serialize_operation_create_fleet( input: &crate::input::CreateFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateFleet", "2016-11-15"); @@ -2020,7 +2020,7 @@ pub fn serialize_operation_create_fleet( pub fn serialize_operation_create_flow_logs( input: &crate::input::CreateFlowLogsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateFlowLogs", "2016-11-15"); @@ -2105,7 +2105,7 @@ pub fn serialize_operation_create_flow_logs( pub fn serialize_operation_create_fpga_image( input: &crate::input::CreateFpgaImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateFpgaImage", "2016-11-15"); @@ -2156,7 +2156,7 @@ pub fn serialize_operation_create_fpga_image( pub fn serialize_operation_create_image( input: &crate::input::CreateImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateImage", "2016-11-15"); @@ -2213,7 +2213,7 @@ pub fn serialize_operation_create_image( pub fn serialize_operation_create_instance_export_task( input: &crate::input::CreateInstanceExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2255,7 +2255,7 @@ pub fn serialize_operation_create_instance_export_task( pub fn serialize_operation_create_internet_gateway( input: &crate::input::CreateInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2282,7 +2282,7 @@ pub fn serialize_operation_create_internet_gateway( pub fn serialize_operation_create_key_pair( input: &crate::input::CreateKeyPairInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateKeyPair", "2016-11-15"); @@ -2313,7 +2313,7 @@ pub fn serialize_operation_create_key_pair( pub fn serialize_operation_create_launch_template( input: &crate::input::CreateLaunchTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateLaunchTemplate", "2016-11-15"); @@ -2359,7 +2359,7 @@ pub fn serialize_operation_create_launch_template( pub fn serialize_operation_create_launch_template_version( input: &crate::input::CreateLaunchTemplateVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2405,7 +2405,7 @@ pub fn serialize_operation_create_launch_template_version( pub fn serialize_operation_create_local_gateway_route( input: &crate::input::CreateLocalGatewayRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2436,7 +2436,7 @@ pub fn serialize_operation_create_local_gateway_route( pub fn serialize_operation_create_local_gateway_route_table_vpc_association( input: &crate::input::CreateLocalGatewayRouteTableVpcAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -2476,7 +2476,7 @@ pub fn serialize_operation_create_local_gateway_route_table_vpc_association( pub fn serialize_operation_create_managed_prefix_list( input: &crate::input::CreateManagedPrefixListInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2537,7 +2537,7 @@ pub fn serialize_operation_create_managed_prefix_list( pub fn serialize_operation_create_nat_gateway( input: &crate::input::CreateNatGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateNatGateway", "2016-11-15"); @@ -2583,7 +2583,7 @@ pub fn serialize_operation_create_nat_gateway( pub fn serialize_operation_create_network_acl( input: &crate::input::CreateNetworkAclInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateNetworkAcl", "2016-11-15"); @@ -2614,7 +2614,7 @@ pub fn serialize_operation_create_network_acl( pub fn serialize_operation_create_network_acl_entry( input: &crate::input::CreateNetworkAclEntryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2678,7 +2678,7 @@ pub fn serialize_operation_create_network_acl_entry( pub fn serialize_operation_create_network_insights_path( input: &crate::input::CreateNetworkInsightsPathInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2743,7 +2743,7 @@ pub fn serialize_operation_create_network_insights_path( pub fn serialize_operation_create_network_interface( input: &crate::input::CreateNetworkInterfaceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2846,7 +2846,7 @@ pub fn serialize_operation_create_network_interface( pub fn serialize_operation_create_network_interface_permission( input: &crate::input::CreateNetworkInterfacePermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2882,7 +2882,7 @@ pub fn serialize_operation_create_network_interface_permission( pub fn serialize_operation_create_placement_group( input: &crate::input::CreatePlacementGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreatePlacementGroup", "2016-11-15"); @@ -2926,7 +2926,7 @@ pub fn serialize_operation_create_placement_group( pub fn serialize_operation_create_replace_root_volume_task( input: &crate::input::CreateReplaceRootVolumeTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2968,7 +2968,7 @@ pub fn serialize_operation_create_replace_root_volume_task( pub fn serialize_operation_create_reserved_instances_listing( input: &crate::input::CreateReservedInstancesListingInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3008,7 +3008,7 @@ pub fn serialize_operation_create_reserved_instances_listing( pub fn serialize_operation_create_restore_image_task( input: &crate::input::CreateRestoreImageTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3050,7 +3050,7 @@ pub fn serialize_operation_create_restore_image_task( pub fn serialize_operation_create_route( input: &crate::input::CreateRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateRoute", "2016-11-15"); @@ -3135,7 +3135,7 @@ pub fn serialize_operation_create_route( pub fn serialize_operation_create_route_table( input: &crate::input::CreateRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateRouteTable", "2016-11-15"); @@ -3166,7 +3166,7 @@ pub fn serialize_operation_create_route_table( pub fn serialize_operation_create_security_group( input: &crate::input::CreateSecurityGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateSecurityGroup", "2016-11-15"); @@ -3207,7 +3207,7 @@ pub fn serialize_operation_create_security_group( pub fn serialize_operation_create_snapshot( input: &crate::input::CreateSnapshotInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateSnapshot", "2016-11-15"); @@ -3248,7 +3248,7 @@ pub fn serialize_operation_create_snapshot( pub fn serialize_operation_create_snapshots( input: &crate::input::CreateSnapshotsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateSnapshots", "2016-11-15"); @@ -3294,7 +3294,7 @@ pub fn serialize_operation_create_snapshots( pub fn serialize_operation_create_spot_datafeed_subscription( input: &crate::input::CreateSpotDatafeedSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3320,7 +3320,7 @@ pub fn serialize_operation_create_spot_datafeed_subscription( pub fn serialize_operation_create_store_image_task( input: &crate::input::CreateStoreImageTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateStoreImageTask", "2016-11-15"); @@ -3356,7 +3356,7 @@ pub fn serialize_operation_create_store_image_task( pub fn serialize_operation_create_subnet( input: &crate::input::CreateSubnetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateSubnet", "2016-11-15"); @@ -3412,7 +3412,7 @@ pub fn serialize_operation_create_subnet( pub fn serialize_operation_create_tags( input: &crate::input::CreateTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateTags", "2016-11-15"); @@ -3449,7 +3449,7 @@ pub fn serialize_operation_create_tags( pub fn serialize_operation_create_traffic_mirror_filter( input: &crate::input::CreateTrafficMirrorFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3486,7 +3486,7 @@ pub fn serialize_operation_create_traffic_mirror_filter( pub fn serialize_operation_create_traffic_mirror_filter_rule( input: &crate::input::CreateTrafficMirrorFilterRuleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3567,7 +3567,7 @@ pub fn serialize_operation_create_traffic_mirror_filter_rule( pub fn serialize_operation_create_traffic_mirror_session( input: &crate::input::CreateTrafficMirrorSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3643,7 +3643,7 @@ pub fn serialize_operation_create_traffic_mirror_session( pub fn serialize_operation_create_traffic_mirror_target( input: &crate::input::CreateTrafficMirrorTargetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3690,7 +3690,7 @@ pub fn serialize_operation_create_traffic_mirror_target( pub fn serialize_operation_create_transit_gateway( input: &crate::input::CreateTransitGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateTransitGateway", "2016-11-15"); @@ -3726,7 +3726,7 @@ pub fn serialize_operation_create_transit_gateway( pub fn serialize_operation_create_transit_gateway_connect( input: &crate::input::CreateTransitGatewayConnectInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3765,7 +3765,7 @@ pub fn serialize_operation_create_transit_gateway_connect( pub fn serialize_operation_create_transit_gateway_connect_peer( input: &crate::input::CreateTransitGatewayConnectPeerInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3825,7 +3825,7 @@ pub fn serialize_operation_create_transit_gateway_connect_peer( pub fn serialize_operation_create_transit_gateway_multicast_domain( input: &crate::input::CreateTransitGatewayMulticastDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3865,7 +3865,7 @@ pub fn serialize_operation_create_transit_gateway_multicast_domain( pub fn serialize_operation_create_transit_gateway_peering_attachment( input: &crate::input::CreateTransitGatewayPeeringAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3915,7 +3915,7 @@ pub fn serialize_operation_create_transit_gateway_peering_attachment( pub fn serialize_operation_create_transit_gateway_prefix_list_reference( input: &crate::input::CreateTransitGatewayPrefixListReferenceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3954,7 +3954,7 @@ pub fn serialize_operation_create_transit_gateway_prefix_list_reference( pub fn serialize_operation_create_transit_gateway_route( input: &crate::input::CreateTransitGatewayRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3990,7 +3990,7 @@ pub fn serialize_operation_create_transit_gateway_route( pub fn serialize_operation_create_transit_gateway_route_table( input: &crate::input::CreateTransitGatewayRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4022,7 +4022,7 @@ pub fn serialize_operation_create_transit_gateway_route_table( pub fn serialize_operation_create_transit_gateway_vpc_attachment( input: &crate::input::CreateTransitGatewayVpcAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4077,7 +4077,7 @@ pub fn serialize_operation_create_transit_gateway_vpc_attachment( pub fn serialize_operation_create_volume( input: &crate::input::CreateVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateVolume", "2016-11-15"); @@ -4162,7 +4162,7 @@ pub fn serialize_operation_create_volume( pub fn serialize_operation_create_vpc( input: &crate::input::CreateVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateVpc", "2016-11-15"); @@ -4218,7 +4218,7 @@ pub fn serialize_operation_create_vpc( pub fn serialize_operation_create_vpc_endpoint( input: &crate::input::CreateVpcEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateVpcEndpoint", "2016-11-15"); @@ -4307,7 +4307,7 @@ pub fn serialize_operation_create_vpc_endpoint( pub fn serialize_operation_create_vpc_endpoint_connection_notification( input: &crate::input::CreateVpcEndpointConnectionNotificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -4357,7 +4357,7 @@ pub fn serialize_operation_create_vpc_endpoint_connection_notification( pub fn serialize_operation_create_vpc_endpoint_service_configuration( input: &crate::input::CreateVpcEndpointServiceConfigurationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -4424,7 +4424,7 @@ pub fn serialize_operation_create_vpc_endpoint_service_configuration( pub fn serialize_operation_create_vpc_peering_connection( input: &crate::input::CreateVpcPeeringConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4471,7 +4471,7 @@ pub fn serialize_operation_create_vpc_peering_connection( pub fn serialize_operation_create_vpn_connection( input: &crate::input::CreateVpnConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateVpnConnection", "2016-11-15"); @@ -4524,7 +4524,7 @@ pub fn serialize_operation_create_vpn_connection( pub fn serialize_operation_create_vpn_connection_route( input: &crate::input::CreateVpnConnectionRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4545,7 +4545,7 @@ pub fn serialize_operation_create_vpn_connection_route( pub fn serialize_operation_create_vpn_gateway( input: &crate::input::CreateVpnGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateVpnGateway", "2016-11-15"); @@ -4589,7 +4589,7 @@ pub fn serialize_operation_create_vpn_gateway( pub fn serialize_operation_delete_carrier_gateway( input: &crate::input::DeleteCarrierGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteCarrierGateway", "2016-11-15"); @@ -4609,7 +4609,7 @@ pub fn serialize_operation_delete_carrier_gateway( pub fn serialize_operation_delete_client_vpn_endpoint( input: &crate::input::DeleteClientVpnEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4630,7 +4630,7 @@ pub fn serialize_operation_delete_client_vpn_endpoint( pub fn serialize_operation_delete_client_vpn_route( input: &crate::input::DeleteClientVpnRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteClientVpnRoute", "2016-11-15"); @@ -4660,7 +4660,7 @@ pub fn serialize_operation_delete_client_vpn_route( pub fn serialize_operation_delete_customer_gateway( input: &crate::input::DeleteCustomerGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4681,7 +4681,7 @@ pub fn serialize_operation_delete_customer_gateway( pub fn serialize_operation_delete_dhcp_options( input: &crate::input::DeleteDhcpOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDhcpOptions", "2016-11-15"); @@ -4701,7 +4701,7 @@ pub fn serialize_operation_delete_dhcp_options( pub fn serialize_operation_delete_egress_only_internet_gateway( input: &crate::input::DeleteEgressOnlyInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4722,7 +4722,7 @@ pub fn serialize_operation_delete_egress_only_internet_gateway( pub fn serialize_operation_delete_fleets( input: &crate::input::DeleteFleetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteFleets", "2016-11-15"); @@ -4753,7 +4753,7 @@ pub fn serialize_operation_delete_fleets( pub fn serialize_operation_delete_flow_logs( input: &crate::input::DeleteFlowLogsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteFlowLogs", "2016-11-15"); @@ -4779,7 +4779,7 @@ pub fn serialize_operation_delete_flow_logs( pub fn serialize_operation_delete_fpga_image( input: &crate::input::DeleteFpgaImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteFpgaImage", "2016-11-15"); @@ -4799,7 +4799,7 @@ pub fn serialize_operation_delete_fpga_image( pub fn serialize_operation_delete_internet_gateway( input: &crate::input::DeleteInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4820,7 +4820,7 @@ pub fn serialize_operation_delete_internet_gateway( pub fn serialize_operation_delete_key_pair( input: &crate::input::DeleteKeyPairInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteKeyPair", "2016-11-15"); @@ -4845,7 +4845,7 @@ pub fn serialize_operation_delete_key_pair( pub fn serialize_operation_delete_launch_template( input: &crate::input::DeleteLaunchTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteLaunchTemplate", "2016-11-15"); @@ -4870,7 +4870,7 @@ pub fn serialize_operation_delete_launch_template( pub fn serialize_operation_delete_launch_template_versions( input: &crate::input::DeleteLaunchTemplateVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4907,7 +4907,7 @@ pub fn serialize_operation_delete_launch_template_versions( pub fn serialize_operation_delete_local_gateway_route( input: &crate::input::DeleteLocalGatewayRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4933,7 +4933,7 @@ pub fn serialize_operation_delete_local_gateway_route( pub fn serialize_operation_delete_local_gateway_route_table_vpc_association( input: &crate::input::DeleteLocalGatewayRouteTableVpcAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -4957,7 +4957,7 @@ pub fn serialize_operation_delete_local_gateway_route_table_vpc_association( pub fn serialize_operation_delete_managed_prefix_list( input: &crate::input::DeleteManagedPrefixListInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4978,7 +4978,7 @@ pub fn serialize_operation_delete_managed_prefix_list( pub fn serialize_operation_delete_nat_gateway( input: &crate::input::DeleteNatGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteNatGateway", "2016-11-15"); @@ -4998,7 +4998,7 @@ pub fn serialize_operation_delete_nat_gateway( pub fn serialize_operation_delete_network_acl( input: &crate::input::DeleteNetworkAclInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteNetworkAcl", "2016-11-15"); @@ -5018,7 +5018,7 @@ pub fn serialize_operation_delete_network_acl( pub fn serialize_operation_delete_network_acl_entry( input: &crate::input::DeleteNetworkAclEntryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5052,7 +5052,7 @@ pub fn serialize_operation_delete_network_acl_entry( pub fn serialize_operation_delete_network_insights_analysis( input: &crate::input::DeleteNetworkInsightsAnalysisInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5073,7 +5073,7 @@ pub fn serialize_operation_delete_network_insights_analysis( pub fn serialize_operation_delete_network_insights_path( input: &crate::input::DeleteNetworkInsightsPathInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5094,7 +5094,7 @@ pub fn serialize_operation_delete_network_insights_path( pub fn serialize_operation_delete_network_interface( input: &crate::input::DeleteNetworkInterfaceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5115,7 +5115,7 @@ pub fn serialize_operation_delete_network_interface( pub fn serialize_operation_delete_network_interface_permission( input: &crate::input::DeleteNetworkInterfacePermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5141,7 +5141,7 @@ pub fn serialize_operation_delete_network_interface_permission( pub fn serialize_operation_delete_placement_group( input: &crate::input::DeletePlacementGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeletePlacementGroup", "2016-11-15"); @@ -5161,7 +5161,7 @@ pub fn serialize_operation_delete_placement_group( pub fn serialize_operation_delete_queued_reserved_instances( input: &crate::input::DeleteQueuedReservedInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5188,7 +5188,7 @@ pub fn serialize_operation_delete_queued_reserved_instances( pub fn serialize_operation_delete_route( input: &crate::input::DeleteRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteRoute", "2016-11-15"); @@ -5223,7 +5223,7 @@ pub fn serialize_operation_delete_route( pub fn serialize_operation_delete_route_table( input: &crate::input::DeleteRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteRouteTable", "2016-11-15"); @@ -5243,7 +5243,7 @@ pub fn serialize_operation_delete_route_table( pub fn serialize_operation_delete_security_group( input: &crate::input::DeleteSecurityGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteSecurityGroup", "2016-11-15"); @@ -5268,7 +5268,7 @@ pub fn serialize_operation_delete_security_group( pub fn serialize_operation_delete_snapshot( input: &crate::input::DeleteSnapshotInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteSnapshot", "2016-11-15"); @@ -5288,7 +5288,7 @@ pub fn serialize_operation_delete_snapshot( pub fn serialize_operation_delete_spot_datafeed_subscription( input: &crate::input::DeleteSpotDatafeedSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5304,7 +5304,7 @@ pub fn serialize_operation_delete_spot_datafeed_subscription( pub fn serialize_operation_delete_subnet( input: &crate::input::DeleteSubnetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteSubnet", "2016-11-15"); @@ -5324,7 +5324,7 @@ pub fn serialize_operation_delete_subnet( pub fn serialize_operation_delete_tags( input: &crate::input::DeleteTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteTags", "2016-11-15"); @@ -5361,7 +5361,7 @@ pub fn serialize_operation_delete_tags( pub fn serialize_operation_delete_traffic_mirror_filter( input: &crate::input::DeleteTrafficMirrorFilterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5382,7 +5382,7 @@ pub fn serialize_operation_delete_traffic_mirror_filter( pub fn serialize_operation_delete_traffic_mirror_filter_rule( input: &crate::input::DeleteTrafficMirrorFilterRuleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5403,7 +5403,7 @@ pub fn serialize_operation_delete_traffic_mirror_filter_rule( pub fn serialize_operation_delete_traffic_mirror_session( input: &crate::input::DeleteTrafficMirrorSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5424,7 +5424,7 @@ pub fn serialize_operation_delete_traffic_mirror_session( pub fn serialize_operation_delete_traffic_mirror_target( input: &crate::input::DeleteTrafficMirrorTargetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5445,7 +5445,7 @@ pub fn serialize_operation_delete_traffic_mirror_target( pub fn serialize_operation_delete_transit_gateway( input: &crate::input::DeleteTransitGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteTransitGateway", "2016-11-15"); @@ -5465,7 +5465,7 @@ pub fn serialize_operation_delete_transit_gateway( pub fn serialize_operation_delete_transit_gateway_connect( input: &crate::input::DeleteTransitGatewayConnectInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5486,7 +5486,7 @@ pub fn serialize_operation_delete_transit_gateway_connect( pub fn serialize_operation_delete_transit_gateway_connect_peer( input: &crate::input::DeleteTransitGatewayConnectPeerInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5507,7 +5507,7 @@ pub fn serialize_operation_delete_transit_gateway_connect_peer( pub fn serialize_operation_delete_transit_gateway_multicast_domain( input: &crate::input::DeleteTransitGatewayMulticastDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5531,7 +5531,7 @@ pub fn serialize_operation_delete_transit_gateway_multicast_domain( pub fn serialize_operation_delete_transit_gateway_peering_attachment( input: &crate::input::DeleteTransitGatewayPeeringAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5555,7 +5555,7 @@ pub fn serialize_operation_delete_transit_gateway_peering_attachment( pub fn serialize_operation_delete_transit_gateway_prefix_list_reference( input: &crate::input::DeleteTransitGatewayPrefixListReferenceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5584,7 +5584,7 @@ pub fn serialize_operation_delete_transit_gateway_prefix_list_reference( pub fn serialize_operation_delete_transit_gateway_route( input: &crate::input::DeleteTransitGatewayRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5610,7 +5610,7 @@ pub fn serialize_operation_delete_transit_gateway_route( pub fn serialize_operation_delete_transit_gateway_route_table( input: &crate::input::DeleteTransitGatewayRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5631,7 +5631,7 @@ pub fn serialize_operation_delete_transit_gateway_route_table( pub fn serialize_operation_delete_transit_gateway_vpc_attachment( input: &crate::input::DeleteTransitGatewayVpcAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5652,7 +5652,7 @@ pub fn serialize_operation_delete_transit_gateway_vpc_attachment( pub fn serialize_operation_delete_volume( input: &crate::input::DeleteVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteVolume", "2016-11-15"); @@ -5672,7 +5672,7 @@ pub fn serialize_operation_delete_volume( pub fn serialize_operation_delete_vpc( input: &crate::input::DeleteVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteVpc", "2016-11-15"); @@ -5692,7 +5692,7 @@ pub fn serialize_operation_delete_vpc( pub fn serialize_operation_delete_vpc_endpoint_connection_notifications( input: &crate::input::DeleteVpcEndpointConnectionNotificationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5722,7 +5722,7 @@ pub fn serialize_operation_delete_vpc_endpoint_connection_notifications( pub fn serialize_operation_delete_vpc_endpoints( input: &crate::input::DeleteVpcEndpointsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteVpcEndpoints", "2016-11-15"); @@ -5748,7 +5748,7 @@ pub fn serialize_operation_delete_vpc_endpoints( pub fn serialize_operation_delete_vpc_endpoint_service_configurations( input: &crate::input::DeleteVpcEndpointServiceConfigurationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5778,7 +5778,7 @@ pub fn serialize_operation_delete_vpc_endpoint_service_configurations( pub fn serialize_operation_delete_vpc_peering_connection( input: &crate::input::DeleteVpcPeeringConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5799,7 +5799,7 @@ pub fn serialize_operation_delete_vpc_peering_connection( pub fn serialize_operation_delete_vpn_connection( input: &crate::input::DeleteVpnConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteVpnConnection", "2016-11-15"); @@ -5819,7 +5819,7 @@ pub fn serialize_operation_delete_vpn_connection( pub fn serialize_operation_delete_vpn_connection_route( input: &crate::input::DeleteVpnConnectionRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5840,7 +5840,7 @@ pub fn serialize_operation_delete_vpn_connection_route( pub fn serialize_operation_delete_vpn_gateway( input: &crate::input::DeleteVpnGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteVpnGateway", "2016-11-15"); @@ -5860,7 +5860,7 @@ pub fn serialize_operation_delete_vpn_gateway( pub fn serialize_operation_deprovision_byoip_cidr( input: &crate::input::DeprovisionByoipCidrInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeprovisionByoipCidr", "2016-11-15"); @@ -5880,7 +5880,7 @@ pub fn serialize_operation_deprovision_byoip_cidr( pub fn serialize_operation_deregister_image( input: &crate::input::DeregisterImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeregisterImage", "2016-11-15"); @@ -5900,7 +5900,7 @@ pub fn serialize_operation_deregister_image( pub fn serialize_operation_deregister_instance_event_notification_attributes( input: &crate::input::DeregisterInstanceEventNotificationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5926,7 +5926,7 @@ pub fn serialize_operation_deregister_instance_event_notification_attributes( pub fn serialize_operation_deregister_transit_gateway_multicast_group_members( input: &crate::input::DeregisterTransitGatewayMulticastGroupMembersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5966,7 +5966,7 @@ pub fn serialize_operation_deregister_transit_gateway_multicast_group_members( pub fn serialize_operation_deregister_transit_gateway_multicast_group_sources( input: &crate::input::DeregisterTransitGatewayMulticastGroupSourcesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -6006,7 +6006,7 @@ pub fn serialize_operation_deregister_transit_gateway_multicast_group_sources( pub fn serialize_operation_describe_account_attributes( input: &crate::input::DescribeAccountAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6033,7 +6033,7 @@ pub fn serialize_operation_describe_account_attributes( pub fn serialize_operation_describe_addresses( input: &crate::input::DescribeAddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeAddresses", "2016-11-15"); @@ -6081,7 +6081,7 @@ pub fn serialize_operation_describe_addresses( pub fn serialize_operation_describe_addresses_attribute( input: &crate::input::DescribeAddressesAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6126,7 +6126,7 @@ pub fn serialize_operation_describe_addresses_attribute( pub fn serialize_operation_describe_aggregate_id_format( input: &crate::input::DescribeAggregateIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6142,7 +6142,7 @@ pub fn serialize_operation_describe_aggregate_id_format( pub fn serialize_operation_describe_availability_zones( input: &crate::input::DescribeAvailabilityZonesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6196,7 +6196,7 @@ pub fn serialize_operation_describe_availability_zones( pub fn serialize_operation_describe_bundle_tasks( input: &crate::input::DescribeBundleTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeBundleTasks", "2016-11-15"); @@ -6233,7 +6233,7 @@ pub fn serialize_operation_describe_bundle_tasks( pub fn serialize_operation_describe_byoip_cidrs( input: &crate::input::DescribeByoipCidrsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeByoipCidrs", "2016-11-15"); @@ -6261,7 +6261,7 @@ pub fn serialize_operation_describe_byoip_cidrs( pub fn serialize_operation_describe_capacity_reservations( input: &crate::input::DescribeCapacityReservationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6312,7 +6312,7 @@ pub fn serialize_operation_describe_capacity_reservations( pub fn serialize_operation_describe_carrier_gateways( input: &crate::input::DescribeCarrierGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6363,7 +6363,7 @@ pub fn serialize_operation_describe_carrier_gateways( pub fn serialize_operation_describe_classic_link_instances( input: &crate::input::DescribeClassicLinkInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6414,7 +6414,7 @@ pub fn serialize_operation_describe_classic_link_instances( pub fn serialize_operation_describe_client_vpn_authorization_rules( input: &crate::input::DescribeClientVpnAuthorizationRulesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -6462,7 +6462,7 @@ pub fn serialize_operation_describe_client_vpn_authorization_rules( pub fn serialize_operation_describe_client_vpn_connections( input: &crate::input::DescribeClientVpnConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6507,7 +6507,7 @@ pub fn serialize_operation_describe_client_vpn_connections( pub fn serialize_operation_describe_client_vpn_endpoints( input: &crate::input::DescribeClientVpnEndpointsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6558,7 +6558,7 @@ pub fn serialize_operation_describe_client_vpn_endpoints( pub fn serialize_operation_describe_client_vpn_routes( input: &crate::input::DescribeClientVpnRoutesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6603,7 +6603,7 @@ pub fn serialize_operation_describe_client_vpn_routes( pub fn serialize_operation_describe_client_vpn_target_networks( input: &crate::input::DescribeClientVpnTargetNetworksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6659,7 +6659,7 @@ pub fn serialize_operation_describe_client_vpn_target_networks( pub fn serialize_operation_describe_coip_pools( input: &crate::input::DescribeCoipPoolsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeCoipPools", "2016-11-15"); @@ -6709,7 +6709,7 @@ pub fn serialize_operation_describe_coip_pools( pub fn serialize_operation_describe_conversion_tasks( input: &crate::input::DescribeConversionTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6736,7 +6736,7 @@ pub fn serialize_operation_describe_conversion_tasks( pub fn serialize_operation_describe_customer_gateways( input: &crate::input::DescribeCustomerGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6774,7 +6774,7 @@ pub fn serialize_operation_describe_customer_gateways( pub fn serialize_operation_describe_dhcp_options( input: &crate::input::DescribeDhcpOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDhcpOptions", "2016-11-15"); @@ -6824,7 +6824,7 @@ pub fn serialize_operation_describe_dhcp_options( pub fn serialize_operation_describe_egress_only_internet_gateways( input: &crate::input::DescribeEgressOnlyInternetGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -6878,7 +6878,7 @@ pub fn serialize_operation_describe_egress_only_internet_gateways( pub fn serialize_operation_describe_elastic_gpus( input: &crate::input::DescribeElasticGpusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeElasticGpus", "2016-11-15"); @@ -6928,7 +6928,7 @@ pub fn serialize_operation_describe_elastic_gpus( pub fn serialize_operation_describe_export_image_tasks( input: &crate::input::DescribeExportImageTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6979,7 +6979,7 @@ pub fn serialize_operation_describe_export_image_tasks( pub fn serialize_operation_describe_export_tasks( input: &crate::input::DescribeExportTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeExportTasks", "2016-11-15"); @@ -7011,7 +7011,7 @@ pub fn serialize_operation_describe_export_tasks( pub fn serialize_operation_describe_fast_snapshot_restores( input: &crate::input::DescribeFastSnapshotRestoresInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7051,7 +7051,7 @@ pub fn serialize_operation_describe_fast_snapshot_restores( pub fn serialize_operation_describe_fleet_history( input: &crate::input::DescribeFleetHistoryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeFleetHistory", "2016-11-15"); @@ -7094,7 +7094,7 @@ pub fn serialize_operation_describe_fleet_history( pub fn serialize_operation_describe_fleet_instances( input: &crate::input::DescribeFleetInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7139,7 +7139,7 @@ pub fn serialize_operation_describe_fleet_instances( pub fn serialize_operation_describe_fleets( input: &crate::input::DescribeFleetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeFleets", "2016-11-15"); @@ -7189,7 +7189,7 @@ pub fn serialize_operation_describe_fleets( pub fn serialize_operation_describe_flow_logs( input: &crate::input::DescribeFlowLogsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeFlowLogs", "2016-11-15"); @@ -7239,7 +7239,7 @@ pub fn serialize_operation_describe_flow_logs( pub fn serialize_operation_describe_fpga_image_attribute( input: &crate::input::DescribeFpgaImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7265,7 +7265,7 @@ pub fn serialize_operation_describe_fpga_image_attribute( pub fn serialize_operation_describe_fpga_images( input: &crate::input::DescribeFpgaImagesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeFpgaImages", "2016-11-15"); @@ -7326,7 +7326,7 @@ pub fn serialize_operation_describe_fpga_images( pub fn serialize_operation_describe_host_reservation_offerings( input: &crate::input::DescribeHostReservationOfferingsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7382,7 +7382,7 @@ pub fn serialize_operation_describe_host_reservation_offerings( pub fn serialize_operation_describe_host_reservations( input: &crate::input::DescribeHostReservationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7428,7 +7428,7 @@ pub fn serialize_operation_describe_host_reservations( pub fn serialize_operation_describe_hosts( input: &crate::input::DescribeHostsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeHosts", "2016-11-15"); @@ -7473,7 +7473,7 @@ pub fn serialize_operation_describe_hosts( pub fn serialize_operation_describe_iam_instance_profile_associations( input: &crate::input::DescribeIamInstanceProfileAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -7522,7 +7522,7 @@ pub fn serialize_operation_describe_iam_instance_profile_associations( pub fn serialize_operation_describe_identity_id_format( input: &crate::input::DescribeIdentityIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7543,7 +7543,7 @@ pub fn serialize_operation_describe_identity_id_format( pub fn serialize_operation_describe_id_format( input: &crate::input::DescribeIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeIdFormat", "2016-11-15"); @@ -7558,7 +7558,7 @@ pub fn serialize_operation_describe_id_format( pub fn serialize_operation_describe_image_attribute( input: &crate::input::DescribeImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7584,7 +7584,7 @@ pub fn serialize_operation_describe_image_attribute( pub fn serialize_operation_describe_images( input: &crate::input::DescribeImagesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeImages", "2016-11-15"); @@ -7643,7 +7643,7 @@ pub fn serialize_operation_describe_images( pub fn serialize_operation_describe_import_image_tasks( input: &crate::input::DescribeImportImageTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7694,7 +7694,7 @@ pub fn serialize_operation_describe_import_image_tasks( pub fn serialize_operation_describe_import_snapshot_tasks( input: &crate::input::DescribeImportSnapshotTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7745,7 +7745,7 @@ pub fn serialize_operation_describe_import_snapshot_tasks( pub fn serialize_operation_describe_instance_attribute( input: &crate::input::DescribeInstanceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7771,7 +7771,7 @@ pub fn serialize_operation_describe_instance_attribute( pub fn serialize_operation_describe_instance_credit_specifications( input: &crate::input::DescribeInstanceCreditSpecificationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -7825,7 +7825,7 @@ pub fn serialize_operation_describe_instance_credit_specifications( pub fn serialize_operation_describe_instance_event_notification_attributes( input: &crate::input::DescribeInstanceEventNotificationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -7844,7 +7844,7 @@ pub fn serialize_operation_describe_instance_event_notification_attributes( pub fn serialize_operation_describe_instances( input: &crate::input::DescribeInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeInstances", "2016-11-15"); @@ -7894,7 +7894,7 @@ pub fn serialize_operation_describe_instances( pub fn serialize_operation_describe_instance_status( input: &crate::input::DescribeInstanceStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7950,7 +7950,7 @@ pub fn serialize_operation_describe_instance_status( pub fn serialize_operation_describe_instance_type_offerings( input: &crate::input::DescribeInstanceTypeOfferingsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -7995,7 +7995,7 @@ pub fn serialize_operation_describe_instance_type_offerings( pub fn serialize_operation_describe_instance_types( input: &crate::input::DescribeInstanceTypesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8046,7 +8046,7 @@ pub fn serialize_operation_describe_instance_types( pub fn serialize_operation_describe_internet_gateways( input: &crate::input::DescribeInternetGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8097,7 +8097,7 @@ pub fn serialize_operation_describe_internet_gateways( pub fn serialize_operation_describe_ipv6_pools( input: &crate::input::DescribeIpv6PoolsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeIpv6Pools", "2016-11-15"); @@ -8147,7 +8147,7 @@ pub fn serialize_operation_describe_ipv6_pools( pub fn serialize_operation_describe_key_pairs( input: &crate::input::DescribeKeyPairsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeKeyPairs", "2016-11-15"); @@ -8195,7 +8195,7 @@ pub fn serialize_operation_describe_key_pairs( pub fn serialize_operation_describe_launch_templates( input: &crate::input::DescribeLaunchTemplatesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8257,7 +8257,7 @@ pub fn serialize_operation_describe_launch_templates( pub fn serialize_operation_describe_launch_template_versions( input: &crate::input::DescribeLaunchTemplateVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8328,7 +8328,7 @@ pub fn serialize_operation_describe_launch_template_versions( pub fn serialize_operation_describe_local_gateway_route_tables( input: &crate::input::DescribeLocalGatewayRouteTablesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8379,7 +8379,7 @@ pub fn serialize_operation_describe_local_gateway_route_tables( pub fn serialize_operation_describe_local_gateway_route_table_virtual_interface_group_associations( input: &crate::input::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -8434,7 +8434,7 @@ pub fn serialize_operation_describe_local_gateway_route_table_virtual_interface_ pub fn serialize_operation_describe_local_gateway_route_table_vpc_associations( input: &crate::input::DescribeLocalGatewayRouteTableVpcAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -8488,7 +8488,7 @@ pub fn serialize_operation_describe_local_gateway_route_table_vpc_associations( pub fn serialize_operation_describe_local_gateways( input: &crate::input::DescribeLocalGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8539,7 +8539,7 @@ pub fn serialize_operation_describe_local_gateways( pub fn serialize_operation_describe_local_gateway_virtual_interface_groups( input: &crate::input::DescribeLocalGatewayVirtualInterfaceGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -8593,7 +8593,7 @@ pub fn serialize_operation_describe_local_gateway_virtual_interface_groups( pub fn serialize_operation_describe_local_gateway_virtual_interfaces( input: &crate::input::DescribeLocalGatewayVirtualInterfacesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -8647,7 +8647,7 @@ pub fn serialize_operation_describe_local_gateway_virtual_interfaces( pub fn serialize_operation_describe_managed_prefix_lists( input: &crate::input::DescribeManagedPrefixListsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8698,7 +8698,7 @@ pub fn serialize_operation_describe_managed_prefix_lists( pub fn serialize_operation_describe_moving_addresses( input: &crate::input::DescribeMovingAddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8749,7 +8749,7 @@ pub fn serialize_operation_describe_moving_addresses( pub fn serialize_operation_describe_nat_gateways( input: &crate::input::DescribeNatGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeNatGateways", "2016-11-15"); @@ -8799,7 +8799,7 @@ pub fn serialize_operation_describe_nat_gateways( pub fn serialize_operation_describe_network_acls( input: &crate::input::DescribeNetworkAclsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeNetworkAcls", "2016-11-15"); @@ -8849,7 +8849,7 @@ pub fn serialize_operation_describe_network_acls( pub fn serialize_operation_describe_network_insights_analyses( input: &crate::input::DescribeNetworkInsightsAnalysesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8915,7 +8915,7 @@ pub fn serialize_operation_describe_network_insights_analyses( pub fn serialize_operation_describe_network_insights_paths( input: &crate::input::DescribeNetworkInsightsPathsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8966,7 +8966,7 @@ pub fn serialize_operation_describe_network_insights_paths( pub fn serialize_operation_describe_network_interface_attribute( input: &crate::input::DescribeNetworkInterfaceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -8992,7 +8992,7 @@ pub fn serialize_operation_describe_network_interface_attribute( pub fn serialize_operation_describe_network_interface_permissions( input: &crate::input::DescribeNetworkInterfacePermissionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -9041,7 +9041,7 @@ pub fn serialize_operation_describe_network_interface_permissions( pub fn serialize_operation_describe_network_interfaces( input: &crate::input::DescribeNetworkInterfacesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9092,7 +9092,7 @@ pub fn serialize_operation_describe_network_interfaces( pub fn serialize_operation_describe_placement_groups( input: &crate::input::DescribePlacementGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9141,7 +9141,7 @@ pub fn serialize_operation_describe_placement_groups( pub fn serialize_operation_describe_prefix_lists( input: &crate::input::DescribePrefixListsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribePrefixLists", "2016-11-15"); @@ -9191,7 +9191,7 @@ pub fn serialize_operation_describe_prefix_lists( pub fn serialize_operation_describe_principal_id_format( input: &crate::input::DescribePrincipalIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9231,7 +9231,7 @@ pub fn serialize_operation_describe_principal_id_format( pub fn serialize_operation_describe_public_ipv4_pools( input: &crate::input::DescribePublicIpv4PoolsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9277,7 +9277,7 @@ pub fn serialize_operation_describe_public_ipv4_pools( pub fn serialize_operation_describe_regions( input: &crate::input::DescribeRegionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeRegions", "2016-11-15"); @@ -9319,7 +9319,7 @@ pub fn serialize_operation_describe_regions( pub fn serialize_operation_describe_replace_root_volume_tasks( input: &crate::input::DescribeReplaceRootVolumeTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9370,7 +9370,7 @@ pub fn serialize_operation_describe_replace_root_volume_tasks( pub fn serialize_operation_describe_reserved_instances( input: &crate::input::DescribeReservedInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9418,7 +9418,7 @@ pub fn serialize_operation_describe_reserved_instances( pub fn serialize_operation_describe_reserved_instances_listings( input: &crate::input::DescribeReservedInstancesListingsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9450,7 +9450,7 @@ pub fn serialize_operation_describe_reserved_instances_listings( pub fn serialize_operation_describe_reserved_instances_modifications( input: &crate::input::DescribeReservedInstancesModificationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -9491,7 +9491,7 @@ pub fn serialize_operation_describe_reserved_instances_modifications( pub fn serialize_operation_describe_reserved_instances_offerings( input: &crate::input::DescribeReservedInstancesOfferingsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -9604,7 +9604,7 @@ pub fn serialize_operation_describe_reserved_instances_offerings( pub fn serialize_operation_describe_route_tables( input: &crate::input::DescribeRouteTablesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeRouteTables", "2016-11-15"); @@ -9654,7 +9654,7 @@ pub fn serialize_operation_describe_route_tables( pub fn serialize_operation_describe_scheduled_instance_availability( input: &crate::input::DescribeScheduledInstanceAvailabilityInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -9725,7 +9725,7 @@ pub fn serialize_operation_describe_scheduled_instance_availability( pub fn serialize_operation_describe_scheduled_instances( input: &crate::input::DescribeScheduledInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9781,7 +9781,7 @@ pub fn serialize_operation_describe_scheduled_instances( pub fn serialize_operation_describe_security_group_references( input: &crate::input::DescribeSecurityGroupReferencesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9808,7 +9808,7 @@ pub fn serialize_operation_describe_security_group_references( pub fn serialize_operation_describe_security_groups( input: &crate::input::DescribeSecurityGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9870,7 +9870,7 @@ pub fn serialize_operation_describe_security_groups( pub fn serialize_operation_describe_snapshot_attribute( input: &crate::input::DescribeSnapshotAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9896,7 +9896,7 @@ pub fn serialize_operation_describe_snapshot_attribute( pub fn serialize_operation_describe_snapshots( input: &crate::input::DescribeSnapshotsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeSnapshots", "2016-11-15"); @@ -9968,7 +9968,7 @@ pub fn serialize_operation_describe_snapshots( pub fn serialize_operation_describe_spot_datafeed_subscription( input: &crate::input::DescribeSpotDatafeedSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -9984,7 +9984,7 @@ pub fn serialize_operation_describe_spot_datafeed_subscription( pub fn serialize_operation_describe_spot_fleet_instances( input: &crate::input::DescribeSpotFleetInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10018,7 +10018,7 @@ pub fn serialize_operation_describe_spot_fleet_instances( pub fn serialize_operation_describe_spot_fleet_request_history( input: &crate::input::DescribeSpotFleetRequestHistoryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10062,7 +10062,7 @@ pub fn serialize_operation_describe_spot_fleet_request_history( pub fn serialize_operation_describe_spot_fleet_requests( input: &crate::input::DescribeSpotFleetRequestsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10102,7 +10102,7 @@ pub fn serialize_operation_describe_spot_fleet_requests( pub fn serialize_operation_describe_spot_instance_requests( input: &crate::input::DescribeSpotInstanceRequestsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10153,7 +10153,7 @@ pub fn serialize_operation_describe_spot_instance_requests( pub fn serialize_operation_describe_spot_price_history( input: &crate::input::DescribeSpotPriceHistoryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10230,7 +10230,7 @@ pub fn serialize_operation_describe_spot_price_history( pub fn serialize_operation_describe_stale_security_groups( input: &crate::input::DescribeStaleSecurityGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10264,7 +10264,7 @@ pub fn serialize_operation_describe_stale_security_groups( pub fn serialize_operation_describe_store_image_tasks( input: &crate::input::DescribeStoreImageTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10315,7 +10315,7 @@ pub fn serialize_operation_describe_store_image_tasks( pub fn serialize_operation_describe_subnets( input: &crate::input::DescribeSubnetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeSubnets", "2016-11-15"); @@ -10365,7 +10365,7 @@ pub fn serialize_operation_describe_subnets( pub fn serialize_operation_describe_tags( input: &crate::input::DescribeTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeTags", "2016-11-15"); @@ -10404,7 +10404,7 @@ pub fn serialize_operation_describe_tags( pub fn serialize_operation_describe_traffic_mirror_filters( input: &crate::input::DescribeTrafficMirrorFiltersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10455,7 +10455,7 @@ pub fn serialize_operation_describe_traffic_mirror_filters( pub fn serialize_operation_describe_traffic_mirror_sessions( input: &crate::input::DescribeTrafficMirrorSessionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10506,7 +10506,7 @@ pub fn serialize_operation_describe_traffic_mirror_sessions( pub fn serialize_operation_describe_traffic_mirror_targets( input: &crate::input::DescribeTrafficMirrorTargetsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10557,7 +10557,7 @@ pub fn serialize_operation_describe_traffic_mirror_targets( pub fn serialize_operation_describe_transit_gateway_attachments( input: &crate::input::DescribeTransitGatewayAttachmentsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10608,7 +10608,7 @@ pub fn serialize_operation_describe_transit_gateway_attachments( pub fn serialize_operation_describe_transit_gateway_connect_peers( input: &crate::input::DescribeTransitGatewayConnectPeersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -10662,7 +10662,7 @@ pub fn serialize_operation_describe_transit_gateway_connect_peers( pub fn serialize_operation_describe_transit_gateway_connects( input: &crate::input::DescribeTransitGatewayConnectsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10713,7 +10713,7 @@ pub fn serialize_operation_describe_transit_gateway_connects( pub fn serialize_operation_describe_transit_gateway_multicast_domains( input: &crate::input::DescribeTransitGatewayMulticastDomainsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -10767,7 +10767,7 @@ pub fn serialize_operation_describe_transit_gateway_multicast_domains( pub fn serialize_operation_describe_transit_gateway_peering_attachments( input: &crate::input::DescribeTransitGatewayPeeringAttachmentsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -10821,7 +10821,7 @@ pub fn serialize_operation_describe_transit_gateway_peering_attachments( pub fn serialize_operation_describe_transit_gateway_route_tables( input: &crate::input::DescribeTransitGatewayRouteTablesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10872,7 +10872,7 @@ pub fn serialize_operation_describe_transit_gateway_route_tables( pub fn serialize_operation_describe_transit_gateways( input: &crate::input::DescribeTransitGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -10923,7 +10923,7 @@ pub fn serialize_operation_describe_transit_gateways( pub fn serialize_operation_describe_transit_gateway_vpc_attachments( input: &crate::input::DescribeTransitGatewayVpcAttachmentsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -10977,7 +10977,7 @@ pub fn serialize_operation_describe_transit_gateway_vpc_attachments( pub fn serialize_operation_describe_volume_attribute( input: &crate::input::DescribeVolumeAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11003,7 +11003,7 @@ pub fn serialize_operation_describe_volume_attribute( pub fn serialize_operation_describe_volumes( input: &crate::input::DescribeVolumesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVolumes", "2016-11-15"); @@ -11053,7 +11053,7 @@ pub fn serialize_operation_describe_volumes( pub fn serialize_operation_describe_volumes_modifications( input: &crate::input::DescribeVolumesModificationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11104,7 +11104,7 @@ pub fn serialize_operation_describe_volumes_modifications( pub fn serialize_operation_describe_volume_status( input: &crate::input::DescribeVolumeStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVolumeStatus", "2016-11-15"); @@ -11154,7 +11154,7 @@ pub fn serialize_operation_describe_volume_status( pub fn serialize_operation_describe_vpc_attribute( input: &crate::input::DescribeVpcAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVpcAttribute", "2016-11-15"); @@ -11179,7 +11179,7 @@ pub fn serialize_operation_describe_vpc_attribute( pub fn serialize_operation_describe_vpc_classic_link( input: &crate::input::DescribeVpcClassicLinkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11217,7 +11217,7 @@ pub fn serialize_operation_describe_vpc_classic_link( pub fn serialize_operation_describe_vpc_classic_link_dns_support( input: &crate::input::DescribeVpcClassicLinkDnsSupportInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11252,7 +11252,7 @@ pub fn serialize_operation_describe_vpc_classic_link_dns_support( pub fn serialize_operation_describe_vpc_endpoint_connection_notifications( input: &crate::input::DescribeVpcEndpointConnectionNotificationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -11300,7 +11300,7 @@ pub fn serialize_operation_describe_vpc_endpoint_connection_notifications( pub fn serialize_operation_describe_vpc_endpoint_connections( input: &crate::input::DescribeVpcEndpointConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11340,7 +11340,7 @@ pub fn serialize_operation_describe_vpc_endpoint_connections( pub fn serialize_operation_describe_vpc_endpoints( input: &crate::input::DescribeVpcEndpointsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVpcEndpoints", "2016-11-15"); @@ -11390,7 +11390,7 @@ pub fn serialize_operation_describe_vpc_endpoints( pub fn serialize_operation_describe_vpc_endpoint_service_configurations( input: &crate::input::DescribeVpcEndpointServiceConfigurationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -11444,7 +11444,7 @@ pub fn serialize_operation_describe_vpc_endpoint_service_configurations( pub fn serialize_operation_describe_vpc_endpoint_service_permissions( input: &crate::input::DescribeVpcEndpointServicePermissionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -11492,7 +11492,7 @@ pub fn serialize_operation_describe_vpc_endpoint_service_permissions( pub fn serialize_operation_describe_vpc_endpoint_services( input: &crate::input::DescribeVpcEndpointServicesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11543,7 +11543,7 @@ pub fn serialize_operation_describe_vpc_endpoint_services( pub fn serialize_operation_describe_vpc_peering_connections( input: &crate::input::DescribeVpcPeeringConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11594,7 +11594,7 @@ pub fn serialize_operation_describe_vpc_peering_connections( pub fn serialize_operation_describe_vpcs( input: &crate::input::DescribeVpcsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVpcs", "2016-11-15"); @@ -11644,7 +11644,7 @@ pub fn serialize_operation_describe_vpcs( pub fn serialize_operation_describe_vpn_connections( input: &crate::input::DescribeVpnConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11682,7 +11682,7 @@ pub fn serialize_operation_describe_vpn_connections( pub fn serialize_operation_describe_vpn_gateways( input: &crate::input::DescribeVpnGatewaysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeVpnGateways", "2016-11-15"); @@ -11719,7 +11719,7 @@ pub fn serialize_operation_describe_vpn_gateways( pub fn serialize_operation_detach_classic_link_vpc( input: &crate::input::DetachClassicLinkVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachClassicLinkVpc", "2016-11-15"); @@ -11744,7 +11744,7 @@ pub fn serialize_operation_detach_classic_link_vpc( pub fn serialize_operation_detach_internet_gateway( input: &crate::input::DetachInternetGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11770,7 +11770,7 @@ pub fn serialize_operation_detach_internet_gateway( pub fn serialize_operation_detach_network_interface( input: &crate::input::DetachNetworkInterfaceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11796,7 +11796,7 @@ pub fn serialize_operation_detach_network_interface( pub fn serialize_operation_detach_volume( input: &crate::input::DetachVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachVolume", "2016-11-15"); @@ -11831,7 +11831,7 @@ pub fn serialize_operation_detach_volume( pub fn serialize_operation_detach_vpn_gateway( input: &crate::input::DetachVpnGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachVpnGateway", "2016-11-15"); @@ -11856,7 +11856,7 @@ pub fn serialize_operation_detach_vpn_gateway( pub fn serialize_operation_disable_ebs_encryption_by_default( input: &crate::input::DisableEbsEncryptionByDefaultInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11872,7 +11872,7 @@ pub fn serialize_operation_disable_ebs_encryption_by_default( pub fn serialize_operation_disable_fast_snapshot_restores( input: &crate::input::DisableFastSnapshotRestoresInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11910,7 +11910,7 @@ pub fn serialize_operation_disable_fast_snapshot_restores( pub fn serialize_operation_disable_serial_console_access( input: &crate::input::DisableSerialConsoleAccessInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11926,7 +11926,7 @@ pub fn serialize_operation_disable_serial_console_access( pub fn serialize_operation_disable_transit_gateway_route_table_propagation( input: &crate::input::DisableTransitGatewayRouteTablePropagationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -11955,7 +11955,7 @@ pub fn serialize_operation_disable_transit_gateway_route_table_propagation( pub fn serialize_operation_disable_vgw_route_propagation( input: &crate::input::DisableVgwRoutePropagationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -11981,7 +11981,7 @@ pub fn serialize_operation_disable_vgw_route_propagation( pub fn serialize_operation_disable_vpc_classic_link( input: &crate::input::DisableVpcClassicLinkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12002,7 +12002,7 @@ pub fn serialize_operation_disable_vpc_classic_link( pub fn serialize_operation_disable_vpc_classic_link_dns_support( input: &crate::input::DisableVpcClassicLinkDnsSupportInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12018,7 +12018,7 @@ pub fn serialize_operation_disable_vpc_classic_link_dns_support( pub fn serialize_operation_disassociate_address( input: &crate::input::DisassociateAddressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DisassociateAddress", "2016-11-15"); @@ -12043,7 +12043,7 @@ pub fn serialize_operation_disassociate_address( pub fn serialize_operation_disassociate_client_vpn_target_network( input: &crate::input::DisassociateClientVpnTargetNetworkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12072,7 +12072,7 @@ pub fn serialize_operation_disassociate_client_vpn_target_network( pub fn serialize_operation_disassociate_enclave_certificate_iam_role( input: &crate::input::DisassociateEnclaveCertificateIamRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12101,7 +12101,7 @@ pub fn serialize_operation_disassociate_enclave_certificate_iam_role( pub fn serialize_operation_disassociate_iam_instance_profile( input: &crate::input::DisassociateIamInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12117,7 +12117,7 @@ pub fn serialize_operation_disassociate_iam_instance_profile( pub fn serialize_operation_disassociate_route_table( input: &crate::input::DisassociateRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12138,7 +12138,7 @@ pub fn serialize_operation_disassociate_route_table( pub fn serialize_operation_disassociate_subnet_cidr_block( input: &crate::input::DisassociateSubnetCidrBlockInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12154,7 +12154,7 @@ pub fn serialize_operation_disassociate_subnet_cidr_block( pub fn serialize_operation_disassociate_transit_gateway_multicast_domain( input: &crate::input::DisassociateTransitGatewayMulticastDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12194,7 +12194,7 @@ pub fn serialize_operation_disassociate_transit_gateway_multicast_domain( pub fn serialize_operation_disassociate_transit_gateway_route_table( input: &crate::input::DisassociateTransitGatewayRouteTableInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12223,7 +12223,7 @@ pub fn serialize_operation_disassociate_transit_gateway_route_table( pub fn serialize_operation_disassociate_vpc_cidr_block( input: &crate::input::DisassociateVpcCidrBlockInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12239,7 +12239,7 @@ pub fn serialize_operation_disassociate_vpc_cidr_block( pub fn serialize_operation_enable_ebs_encryption_by_default( input: &crate::input::EnableEbsEncryptionByDefaultInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12255,7 +12255,7 @@ pub fn serialize_operation_enable_ebs_encryption_by_default( pub fn serialize_operation_enable_fast_snapshot_restores( input: &crate::input::EnableFastSnapshotRestoresInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12293,7 +12293,7 @@ pub fn serialize_operation_enable_fast_snapshot_restores( pub fn serialize_operation_enable_serial_console_access( input: &crate::input::EnableSerialConsoleAccessInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12309,7 +12309,7 @@ pub fn serialize_operation_enable_serial_console_access( pub fn serialize_operation_enable_transit_gateway_route_table_propagation( input: &crate::input::EnableTransitGatewayRouteTablePropagationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12338,7 +12338,7 @@ pub fn serialize_operation_enable_transit_gateway_route_table_propagation( pub fn serialize_operation_enable_vgw_route_propagation( input: &crate::input::EnableVgwRoutePropagationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12363,8 +12363,8 @@ pub fn serialize_operation_enable_vgw_route_propagation( } pub fn serialize_operation_enable_volume_io( - input: &crate::input::EnableVolumeIOInput, -) -> Result { + input: &crate::input::EnableVolumeIoInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "EnableVolumeIO", "2016-11-15"); @@ -12384,7 +12384,7 @@ pub fn serialize_operation_enable_volume_io( pub fn serialize_operation_enable_vpc_classic_link( input: &crate::input::EnableVpcClassicLinkInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "EnableVpcClassicLink", "2016-11-15"); @@ -12404,7 +12404,7 @@ pub fn serialize_operation_enable_vpc_classic_link( pub fn serialize_operation_enable_vpc_classic_link_dns_support( input: &crate::input::EnableVpcClassicLinkDnsSupportInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12420,7 +12420,7 @@ pub fn serialize_operation_enable_vpc_classic_link_dns_support( pub fn serialize_operation_export_client_vpn_client_certificate_revocation_list( input: &crate::input::ExportClientVpnClientCertificateRevocationListInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12444,7 +12444,7 @@ pub fn serialize_operation_export_client_vpn_client_certificate_revocation_list( pub fn serialize_operation_export_client_vpn_client_configuration( input: &crate::input::ExportClientVpnClientConfigurationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12468,7 +12468,7 @@ pub fn serialize_operation_export_client_vpn_client_configuration( pub fn serialize_operation_export_image( input: &crate::input::ExportImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ExportImage", "2016-11-15"); @@ -12524,7 +12524,7 @@ pub fn serialize_operation_export_image( pub fn serialize_operation_export_transit_gateway_routes( input: &crate::input::ExportTransitGatewayRoutesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12561,7 +12561,7 @@ pub fn serialize_operation_export_transit_gateway_routes( pub fn serialize_operation_get_associated_enclave_certificate_iam_roles( input: &crate::input::GetAssociatedEnclaveCertificateIamRolesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -12585,7 +12585,7 @@ pub fn serialize_operation_get_associated_enclave_certificate_iam_roles( pub fn serialize_operation_get_associated_ipv6_pool_cidrs( input: &crate::input::GetAssociatedIpv6PoolCidrsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12619,7 +12619,7 @@ pub fn serialize_operation_get_associated_ipv6_pool_cidrs( pub fn serialize_operation_get_capacity_reservation_usage( input: &crate::input::GetCapacityReservationUsageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12653,7 +12653,7 @@ pub fn serialize_operation_get_capacity_reservation_usage( pub fn serialize_operation_get_coip_pool_usage( input: &crate::input::GetCoipPoolUsageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetCoipPoolUsage", "2016-11-15"); @@ -12697,7 +12697,7 @@ pub fn serialize_operation_get_coip_pool_usage( pub fn serialize_operation_get_console_output( input: &crate::input::GetConsoleOutputInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetConsoleOutput", "2016-11-15"); @@ -12722,7 +12722,7 @@ pub fn serialize_operation_get_console_output( pub fn serialize_operation_get_console_screenshot( input: &crate::input::GetConsoleScreenshotInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetConsoleScreenshot", "2016-11-15"); @@ -12747,7 +12747,7 @@ pub fn serialize_operation_get_console_screenshot( pub fn serialize_operation_get_default_credit_specification( input: &crate::input::GetDefaultCreditSpecificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12768,7 +12768,7 @@ pub fn serialize_operation_get_default_credit_specification( pub fn serialize_operation_get_ebs_default_kms_key_id( input: &crate::input::GetEbsDefaultKmsKeyIdInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12784,7 +12784,7 @@ pub fn serialize_operation_get_ebs_default_kms_key_id( pub fn serialize_operation_get_ebs_encryption_by_default( input: &crate::input::GetEbsEncryptionByDefaultInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12800,7 +12800,7 @@ pub fn serialize_operation_get_ebs_encryption_by_default( pub fn serialize_operation_get_flow_logs_integration_template( input: &crate::input::GetFlowLogsIntegrationTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12831,7 +12831,7 @@ pub fn serialize_operation_get_flow_logs_integration_template( pub fn serialize_operation_get_groups_for_capacity_reservation( input: &crate::input::GetGroupsForCapacityReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12865,7 +12865,7 @@ pub fn serialize_operation_get_groups_for_capacity_reservation( pub fn serialize_operation_get_host_reservation_purchase_preview( input: &crate::input::GetHostReservationPurchasePreviewInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12892,7 +12892,7 @@ pub fn serialize_operation_get_host_reservation_purchase_preview( pub fn serialize_operation_get_launch_template_data( input: &crate::input::GetLaunchTemplateDataInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12913,7 +12913,7 @@ pub fn serialize_operation_get_launch_template_data( pub fn serialize_operation_get_managed_prefix_list_associations( input: &crate::input::GetManagedPrefixListAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12947,7 +12947,7 @@ pub fn serialize_operation_get_managed_prefix_list_associations( pub fn serialize_operation_get_managed_prefix_list_entries( input: &crate::input::GetManagedPrefixListEntriesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -12989,7 +12989,7 @@ pub fn serialize_operation_get_managed_prefix_list_entries( pub fn serialize_operation_get_password_data( input: &crate::input::GetPasswordDataInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetPasswordData", "2016-11-15"); @@ -13009,7 +13009,7 @@ pub fn serialize_operation_get_password_data( pub fn serialize_operation_get_reserved_instances_exchange_quote( input: &crate::input::GetReservedInstancesExchangeQuoteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13049,7 +13049,7 @@ pub fn serialize_operation_get_reserved_instances_exchange_quote( pub fn serialize_operation_get_serial_console_access_status( input: &crate::input::GetSerialConsoleAccessStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13065,7 +13065,7 @@ pub fn serialize_operation_get_serial_console_access_status( pub fn serialize_operation_get_transit_gateway_attachment_propagations( input: &crate::input::GetTransitGatewayAttachmentPropagationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13113,7 +13113,7 @@ pub fn serialize_operation_get_transit_gateway_attachment_propagations( pub fn serialize_operation_get_transit_gateway_multicast_domain_associations( input: &crate::input::GetTransitGatewayMulticastDomainAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13161,7 +13161,7 @@ pub fn serialize_operation_get_transit_gateway_multicast_domain_associations( pub fn serialize_operation_get_transit_gateway_prefix_list_references( input: &crate::input::GetTransitGatewayPrefixListReferencesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13209,7 +13209,7 @@ pub fn serialize_operation_get_transit_gateway_prefix_list_references( pub fn serialize_operation_get_transit_gateway_route_table_associations( input: &crate::input::GetTransitGatewayRouteTableAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13257,7 +13257,7 @@ pub fn serialize_operation_get_transit_gateway_route_table_associations( pub fn serialize_operation_get_transit_gateway_route_table_propagations( input: &crate::input::GetTransitGatewayRouteTablePropagationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13305,7 +13305,7 @@ pub fn serialize_operation_get_transit_gateway_route_table_propagations( pub fn serialize_operation_import_client_vpn_client_certificate_revocation_list( input: &crate::input::ImportClientVpnClientCertificateRevocationListInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -13334,7 +13334,7 @@ pub fn serialize_operation_import_client_vpn_client_certificate_revocation_list( pub fn serialize_operation_import_image( input: &crate::input::ImportImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ImportImage", "2016-11-15"); @@ -13434,7 +13434,7 @@ pub fn serialize_operation_import_image( pub fn serialize_operation_import_instance( input: &crate::input::ImportInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ImportInstance", "2016-11-15"); @@ -13477,7 +13477,7 @@ pub fn serialize_operation_import_instance( pub fn serialize_operation_import_key_pair( input: &crate::input::ImportKeyPairInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ImportKeyPair", "2016-11-15"); @@ -13513,7 +13513,7 @@ pub fn serialize_operation_import_key_pair( pub fn serialize_operation_import_snapshot( input: &crate::input::ImportSnapshotInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ImportSnapshot", "2016-11-15"); @@ -13574,7 +13574,7 @@ pub fn serialize_operation_import_snapshot( pub fn serialize_operation_import_volume( input: &crate::input::ImportVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ImportVolume", "2016-11-15"); @@ -13609,7 +13609,7 @@ pub fn serialize_operation_import_volume( pub fn serialize_operation_modify_address_attribute( input: &crate::input::ModifyAddressAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13635,7 +13635,7 @@ pub fn serialize_operation_modify_address_attribute( pub fn serialize_operation_modify_availability_zone_group( input: &crate::input::ModifyAvailabilityZoneGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13661,7 +13661,7 @@ pub fn serialize_operation_modify_availability_zone_group( pub fn serialize_operation_modify_capacity_reservation( input: &crate::input::ModifyCapacityReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13705,7 +13705,7 @@ pub fn serialize_operation_modify_capacity_reservation( pub fn serialize_operation_modify_client_vpn_endpoint( input: &crate::input::ModifyClientVpnEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13787,7 +13787,7 @@ pub fn serialize_operation_modify_client_vpn_endpoint( pub fn serialize_operation_modify_default_credit_specification( input: &crate::input::ModifyDefaultCreditSpecificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13813,7 +13813,7 @@ pub fn serialize_operation_modify_default_credit_specification( pub fn serialize_operation_modify_ebs_default_kms_key_id( input: &crate::input::ModifyEbsDefaultKmsKeyIdInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13834,7 +13834,7 @@ pub fn serialize_operation_modify_ebs_default_kms_key_id( pub fn serialize_operation_modify_fleet( input: &crate::input::ModifyFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyFleet", "2016-11-15"); @@ -13879,7 +13879,7 @@ pub fn serialize_operation_modify_fleet( pub fn serialize_operation_modify_fpga_image_attribute( input: &crate::input::ModifyFpgaImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -13958,7 +13958,7 @@ pub fn serialize_operation_modify_fpga_image_attribute( pub fn serialize_operation_modify_hosts( input: &crate::input::ModifyHostsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyHosts", "2016-11-15"); @@ -13999,7 +13999,7 @@ pub fn serialize_operation_modify_hosts( pub fn serialize_operation_modify_identity_id_format( input: &crate::input::ModifyIdentityIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14025,7 +14025,7 @@ pub fn serialize_operation_modify_identity_id_format( pub fn serialize_operation_modify_id_format( input: &crate::input::ModifyIdFormatInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyIdFormat", "2016-11-15"); @@ -14045,7 +14045,7 @@ pub fn serialize_operation_modify_id_format( pub fn serialize_operation_modify_image_attribute( input: &crate::input::ModifyImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyImageAttribute", "2016-11-15"); @@ -14123,7 +14123,7 @@ pub fn serialize_operation_modify_image_attribute( pub fn serialize_operation_modify_instance_attribute( input: &crate::input::ModifyInstanceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14228,7 +14228,7 @@ pub fn serialize_operation_modify_instance_attribute( pub fn serialize_operation_modify_instance_capacity_reservation_attributes( input: &crate::input::ModifyInstanceCapacityReservationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -14259,7 +14259,7 @@ pub fn serialize_operation_modify_instance_capacity_reservation_attributes( pub fn serialize_operation_modify_instance_credit_specification( input: &crate::input::ModifyInstanceCreditSpecificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14293,7 +14293,7 @@ pub fn serialize_operation_modify_instance_credit_specification( pub fn serialize_operation_modify_instance_event_start_time( input: &crate::input::ModifyInstanceEventStartTimeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14324,7 +14324,7 @@ pub fn serialize_operation_modify_instance_event_start_time( pub fn serialize_operation_modify_instance_metadata_options( input: &crate::input::ModifyInstanceMetadataOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14363,7 +14363,7 @@ pub fn serialize_operation_modify_instance_metadata_options( pub fn serialize_operation_modify_instance_placement( input: &crate::input::ModifyInstancePlacementInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14412,7 +14412,7 @@ pub fn serialize_operation_modify_instance_placement( pub fn serialize_operation_modify_launch_template( input: &crate::input::ModifyLaunchTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyLaunchTemplate", "2016-11-15"); @@ -14447,7 +14447,7 @@ pub fn serialize_operation_modify_launch_template( pub fn serialize_operation_modify_managed_prefix_list( input: &crate::input::ModifyManagedPrefixListInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14503,7 +14503,7 @@ pub fn serialize_operation_modify_managed_prefix_list( pub fn serialize_operation_modify_network_interface_attribute( input: &crate::input::ModifyNetworkInterfaceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14552,7 +14552,7 @@ pub fn serialize_operation_modify_network_interface_attribute( pub fn serialize_operation_modify_reserved_instances( input: &crate::input::ModifyReservedInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14592,7 +14592,7 @@ pub fn serialize_operation_modify_reserved_instances( pub fn serialize_operation_modify_snapshot_attribute( input: &crate::input::ModifySnapshotAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14652,7 +14652,7 @@ pub fn serialize_operation_modify_snapshot_attribute( pub fn serialize_operation_modify_spot_fleet_request( input: &crate::input::ModifySpotFleetRequestInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14700,7 +14700,7 @@ pub fn serialize_operation_modify_spot_fleet_request( pub fn serialize_operation_modify_subnet_attribute( input: &crate::input::ModifySubnetAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14736,7 +14736,7 @@ pub fn serialize_operation_modify_subnet_attribute( pub fn serialize_operation_modify_traffic_mirror_filter_network_services( input: &crate::input::ModifyTrafficMirrorFilterNetworkServicesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -14782,7 +14782,7 @@ pub fn serialize_operation_modify_traffic_mirror_filter_network_services( pub fn serialize_operation_modify_traffic_mirror_filter_rule( input: &crate::input::ModifyTrafficMirrorFilterRuleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14869,7 +14869,7 @@ pub fn serialize_operation_modify_traffic_mirror_filter_rule( pub fn serialize_operation_modify_traffic_mirror_session( input: &crate::input::ModifyTrafficMirrorSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -14940,7 +14940,7 @@ pub fn serialize_operation_modify_traffic_mirror_session( pub fn serialize_operation_modify_transit_gateway( input: &crate::input::ModifyTransitGatewayInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyTransitGateway", "2016-11-15"); @@ -14970,7 +14970,7 @@ pub fn serialize_operation_modify_transit_gateway( pub fn serialize_operation_modify_transit_gateway_prefix_list_reference( input: &crate::input::ModifyTransitGatewayPrefixListReferenceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -15009,7 +15009,7 @@ pub fn serialize_operation_modify_transit_gateway_prefix_list_reference( pub fn serialize_operation_modify_transit_gateway_vpc_attachment( input: &crate::input::ModifyTransitGatewayVpcAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15059,7 +15059,7 @@ pub fn serialize_operation_modify_transit_gateway_vpc_attachment( pub fn serialize_operation_modify_volume( input: &crate::input::ModifyVolumeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyVolume", "2016-11-15"); @@ -15113,7 +15113,7 @@ pub fn serialize_operation_modify_volume( pub fn serialize_operation_modify_volume_attribute( input: &crate::input::ModifyVolumeAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15139,7 +15139,7 @@ pub fn serialize_operation_modify_volume_attribute( pub fn serialize_operation_modify_vpc_attribute( input: &crate::input::ModifyVpcAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyVpcAttribute", "2016-11-15"); @@ -15164,7 +15164,7 @@ pub fn serialize_operation_modify_vpc_attribute( pub fn serialize_operation_modify_vpc_endpoint( input: &crate::input::ModifyVpcEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyVpcEndpoint", "2016-11-15"); @@ -15265,7 +15265,7 @@ pub fn serialize_operation_modify_vpc_endpoint( pub fn serialize_operation_modify_vpc_endpoint_connection_notification( input: &crate::input::ModifyVpcEndpointConnectionNotificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -15305,7 +15305,7 @@ pub fn serialize_operation_modify_vpc_endpoint_connection_notification( pub fn serialize_operation_modify_vpc_endpoint_service_configuration( input: &crate::input::ModifyVpcEndpointServiceConfigurationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -15388,7 +15388,7 @@ pub fn serialize_operation_modify_vpc_endpoint_service_configuration( pub fn serialize_operation_modify_vpc_endpoint_service_permissions( input: &crate::input::ModifyVpcEndpointServicePermissionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -15434,7 +15434,7 @@ pub fn serialize_operation_modify_vpc_endpoint_service_permissions( pub fn serialize_operation_modify_vpc_peering_connection_options( input: &crate::input::ModifyVpcPeeringConnectionOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15469,7 +15469,7 @@ pub fn serialize_operation_modify_vpc_peering_connection_options( pub fn serialize_operation_modify_vpc_tenancy( input: &crate::input::ModifyVpcTenancyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyVpcTenancy", "2016-11-15"); @@ -15494,7 +15494,7 @@ pub fn serialize_operation_modify_vpc_tenancy( pub fn serialize_operation_modify_vpn_connection( input: &crate::input::ModifyVpnConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyVpnConnection", "2016-11-15"); @@ -15529,7 +15529,7 @@ pub fn serialize_operation_modify_vpn_connection( pub fn serialize_operation_modify_vpn_connection_options( input: &crate::input::ModifyVpnConnectionOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15570,7 +15570,7 @@ pub fn serialize_operation_modify_vpn_connection_options( pub fn serialize_operation_modify_vpn_tunnel_certificate( input: &crate::input::ModifyVpnTunnelCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15596,7 +15596,7 @@ pub fn serialize_operation_modify_vpn_tunnel_certificate( pub fn serialize_operation_modify_vpn_tunnel_options( input: &crate::input::ModifyVpnTunnelOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15629,7 +15629,7 @@ pub fn serialize_operation_modify_vpn_tunnel_options( pub fn serialize_operation_monitor_instances( input: &crate::input::MonitorInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "MonitorInstances", "2016-11-15"); @@ -15655,7 +15655,7 @@ pub fn serialize_operation_monitor_instances( pub fn serialize_operation_move_address_to_vpc( input: &crate::input::MoveAddressToVpcInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "MoveAddressToVpc", "2016-11-15"); @@ -15675,7 +15675,7 @@ pub fn serialize_operation_move_address_to_vpc( pub fn serialize_operation_provision_byoip_cidr( input: &crate::input::ProvisionByoipCidrInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ProvisionByoipCidr", "2016-11-15"); @@ -15721,7 +15721,7 @@ pub fn serialize_operation_provision_byoip_cidr( pub fn serialize_operation_purchase_host_reservation( input: &crate::input::PurchaseHostReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15774,7 +15774,7 @@ pub fn serialize_operation_purchase_host_reservation( pub fn serialize_operation_purchase_reserved_instances_offering( input: &crate::input::PurchaseReservedInstancesOfferingInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15813,7 +15813,7 @@ pub fn serialize_operation_purchase_reserved_instances_offering( pub fn serialize_operation_purchase_scheduled_instances( input: &crate::input::PurchaseScheduledInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -15845,7 +15845,7 @@ pub fn serialize_operation_purchase_scheduled_instances( pub fn serialize_operation_reboot_instances( input: &crate::input::RebootInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RebootInstances", "2016-11-15"); @@ -15871,7 +15871,7 @@ pub fn serialize_operation_reboot_instances( pub fn serialize_operation_register_image( input: &crate::input::RegisterImageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RegisterImage", "2016-11-15"); @@ -15963,7 +15963,7 @@ pub fn serialize_operation_register_image( pub fn serialize_operation_register_instance_event_notification_attributes( input: &crate::input::RegisterInstanceEventNotificationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -15989,7 +15989,7 @@ pub fn serialize_operation_register_instance_event_notification_attributes( pub fn serialize_operation_register_transit_gateway_multicast_group_members( input: &crate::input::RegisterTransitGatewayMulticastGroupMembersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -16029,7 +16029,7 @@ pub fn serialize_operation_register_transit_gateway_multicast_group_members( pub fn serialize_operation_register_transit_gateway_multicast_group_sources( input: &crate::input::RegisterTransitGatewayMulticastGroupSourcesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -16069,7 +16069,7 @@ pub fn serialize_operation_register_transit_gateway_multicast_group_sources( pub fn serialize_operation_reject_transit_gateway_multicast_domain_associations( input: &crate::input::RejectTransitGatewayMulticastDomainAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -16109,7 +16109,7 @@ pub fn serialize_operation_reject_transit_gateway_multicast_domain_associations( pub fn serialize_operation_reject_transit_gateway_peering_attachment( input: &crate::input::RejectTransitGatewayPeeringAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -16133,7 +16133,7 @@ pub fn serialize_operation_reject_transit_gateway_peering_attachment( pub fn serialize_operation_reject_transit_gateway_vpc_attachment( input: &crate::input::RejectTransitGatewayVpcAttachmentInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16154,7 +16154,7 @@ pub fn serialize_operation_reject_transit_gateway_vpc_attachment( pub fn serialize_operation_reject_vpc_endpoint_connections( input: &crate::input::RejectVpcEndpointConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16186,7 +16186,7 @@ pub fn serialize_operation_reject_vpc_endpoint_connections( pub fn serialize_operation_reject_vpc_peering_connection( input: &crate::input::RejectVpcPeeringConnectionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16207,7 +16207,7 @@ pub fn serialize_operation_reject_vpc_peering_connection( pub fn serialize_operation_release_address( input: &crate::input::ReleaseAddressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ReleaseAddress", "2016-11-15"); @@ -16237,7 +16237,7 @@ pub fn serialize_operation_release_address( pub fn serialize_operation_release_hosts( input: &crate::input::ReleaseHostsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ReleaseHosts", "2016-11-15"); @@ -16258,7 +16258,7 @@ pub fn serialize_operation_release_hosts( pub fn serialize_operation_replace_iam_instance_profile_association( input: &crate::input::ReplaceIamInstanceProfileAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -16284,7 +16284,7 @@ pub fn serialize_operation_replace_iam_instance_profile_association( pub fn serialize_operation_replace_network_acl_association( input: &crate::input::ReplaceNetworkAclAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16310,7 +16310,7 @@ pub fn serialize_operation_replace_network_acl_association( pub fn serialize_operation_replace_network_acl_entry( input: &crate::input::ReplaceNetworkAclEntryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16374,7 +16374,7 @@ pub fn serialize_operation_replace_network_acl_entry( pub fn serialize_operation_replace_route( input: &crate::input::ReplaceRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ReplaceRoute", "2016-11-15"); @@ -16464,7 +16464,7 @@ pub fn serialize_operation_replace_route( pub fn serialize_operation_replace_route_table_association( input: &crate::input::ReplaceRouteTableAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16490,7 +16490,7 @@ pub fn serialize_operation_replace_route_table_association( pub fn serialize_operation_replace_transit_gateway_route( input: &crate::input::ReplaceTransitGatewayRouteInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16526,7 +16526,7 @@ pub fn serialize_operation_replace_transit_gateway_route( pub fn serialize_operation_report_instance_status( input: &crate::input::ReportInstanceStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ReportInstanceStatus", "2016-11-15"); @@ -16583,7 +16583,7 @@ pub fn serialize_operation_report_instance_status( pub fn serialize_operation_request_spot_fleet( input: &crate::input::RequestSpotFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RequestSpotFleet", "2016-11-15"); @@ -16603,7 +16603,7 @@ pub fn serialize_operation_request_spot_fleet( pub fn serialize_operation_request_spot_instances( input: &crate::input::RequestSpotInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RequestSpotInstances", "2016-11-15"); @@ -16692,7 +16692,7 @@ pub fn serialize_operation_request_spot_instances( pub fn serialize_operation_reset_address_attribute( input: &crate::input::ResetAddressAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16718,7 +16718,7 @@ pub fn serialize_operation_reset_address_attribute( pub fn serialize_operation_reset_ebs_default_kms_key_id( input: &crate::input::ResetEbsDefaultKmsKeyIdInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16734,7 +16734,7 @@ pub fn serialize_operation_reset_ebs_default_kms_key_id( pub fn serialize_operation_reset_fpga_image_attribute( input: &crate::input::ResetFpgaImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16760,7 +16760,7 @@ pub fn serialize_operation_reset_fpga_image_attribute( pub fn serialize_operation_reset_image_attribute( input: &crate::input::ResetImageAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ResetImageAttribute", "2016-11-15"); @@ -16785,7 +16785,7 @@ pub fn serialize_operation_reset_image_attribute( pub fn serialize_operation_reset_instance_attribute( input: &crate::input::ResetInstanceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16811,7 +16811,7 @@ pub fn serialize_operation_reset_instance_attribute( pub fn serialize_operation_reset_network_interface_attribute( input: &crate::input::ResetNetworkInterfaceAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16837,7 +16837,7 @@ pub fn serialize_operation_reset_network_interface_attribute( pub fn serialize_operation_reset_snapshot_attribute( input: &crate::input::ResetSnapshotAttributeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16863,7 +16863,7 @@ pub fn serialize_operation_reset_snapshot_attribute( pub fn serialize_operation_restore_address_to_classic( input: &crate::input::RestoreAddressToClassicInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16884,7 +16884,7 @@ pub fn serialize_operation_restore_address_to_classic( pub fn serialize_operation_restore_managed_prefix_list_version( input: &crate::input::RestoreManagedPrefixListVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16921,7 +16921,7 @@ pub fn serialize_operation_restore_managed_prefix_list_version( pub fn serialize_operation_revoke_client_vpn_ingress( input: &crate::input::RevokeClientVpnIngressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -16957,7 +16957,7 @@ pub fn serialize_operation_revoke_client_vpn_ingress( pub fn serialize_operation_revoke_security_group_egress( input: &crate::input::RevokeSecurityGroupEgressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17025,7 +17025,7 @@ pub fn serialize_operation_revoke_security_group_egress( pub fn serialize_operation_revoke_security_group_ingress( input: &crate::input::RevokeSecurityGroupIngressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17098,7 +17098,7 @@ pub fn serialize_operation_revoke_security_group_ingress( pub fn serialize_operation_run_instances( input: &crate::input::RunInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RunInstances", "2016-11-15"); @@ -17370,7 +17370,7 @@ pub fn serialize_operation_run_instances( pub fn serialize_operation_run_scheduled_instances( input: &crate::input::RunScheduledInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17411,7 +17411,7 @@ pub fn serialize_operation_run_scheduled_instances( pub fn serialize_operation_search_local_gateway_routes( input: &crate::input::SearchLocalGatewayRoutesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17456,7 +17456,7 @@ pub fn serialize_operation_search_local_gateway_routes( pub fn serialize_operation_search_transit_gateway_multicast_groups( input: &crate::input::SearchTransitGatewayMulticastGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -17504,7 +17504,7 @@ pub fn serialize_operation_search_transit_gateway_multicast_groups( pub fn serialize_operation_search_transit_gateway_routes( input: &crate::input::SearchTransitGatewayRoutesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17544,7 +17544,7 @@ pub fn serialize_operation_search_transit_gateway_routes( pub fn serialize_operation_send_diagnostic_interrupt( input: &crate::input::SendDiagnosticInterruptInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17565,7 +17565,7 @@ pub fn serialize_operation_send_diagnostic_interrupt( pub fn serialize_operation_start_instances( input: &crate::input::StartInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StartInstances", "2016-11-15"); @@ -17596,7 +17596,7 @@ pub fn serialize_operation_start_instances( pub fn serialize_operation_start_network_insights_analysis( input: &crate::input::StartNetworkInsightsAnalysisInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17644,7 +17644,7 @@ pub fn serialize_operation_start_network_insights_analysis( pub fn serialize_operation_start_vpc_endpoint_service_private_dns_verification( input: &crate::input::StartVpcEndpointServicePrivateDnsVerificationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -17668,7 +17668,7 @@ pub fn serialize_operation_start_vpc_endpoint_service_private_dns_verification( pub fn serialize_operation_stop_instances( input: &crate::input::StopInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StopInstances", "2016-11-15"); @@ -17704,7 +17704,7 @@ pub fn serialize_operation_stop_instances( pub fn serialize_operation_terminate_client_vpn_connections( input: &crate::input::TerminateClientVpnConnectionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17735,7 +17735,7 @@ pub fn serialize_operation_terminate_client_vpn_connections( pub fn serialize_operation_terminate_instances( input: &crate::input::TerminateInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TerminateInstances", "2016-11-15"); @@ -17761,7 +17761,7 @@ pub fn serialize_operation_terminate_instances( pub fn serialize_operation_unassign_ipv6_addresses( input: &crate::input::UnassignIpv6AddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17788,7 +17788,7 @@ pub fn serialize_operation_unassign_ipv6_addresses( pub fn serialize_operation_unassign_private_ip_addresses( input: &crate::input::UnassignPrivateIpAddressesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -17815,7 +17815,7 @@ pub fn serialize_operation_unassign_private_ip_addresses( pub fn serialize_operation_unmonitor_instances( input: &crate::input::UnmonitorInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UnmonitorInstances", "2016-11-15"); @@ -17841,7 +17841,7 @@ pub fn serialize_operation_unmonitor_instances( pub fn serialize_operation_update_security_group_rule_descriptions_egress( input: &crate::input::UpdateSecurityGroupRuleDescriptionsEgressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -17881,7 +17881,7 @@ pub fn serialize_operation_update_security_group_rule_descriptions_egress( pub fn serialize_operation_update_security_group_rule_descriptions_ingress( input: &crate::input::UpdateSecurityGroupRuleDescriptionsIngressInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -17921,7 +17921,7 @@ pub fn serialize_operation_update_security_group_rule_descriptions_ingress( pub fn serialize_operation_withdraw_byoip_cidr( input: &crate::input::WithdrawByoipCidrInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "WithdrawByoipCidr", "2016-11-15"); diff --git a/sdk/ec2/src/output.rs b/sdk/ec2/src/output.rs index 703f115897c0..ea340f1f563e 100644 --- a/sdk/ec2/src/output.rs +++ b/sdk/ec2/src/output.rs @@ -8021,28 +8021,28 @@ impl EnableVpcClassicLinkOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableVolumeIOOutput {} -impl std::fmt::Debug for EnableVolumeIOOutput { +pub struct EnableVolumeIoOutput {} +impl std::fmt::Debug for EnableVolumeIoOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableVolumeIOOutput"); + let mut formatter = f.debug_struct("EnableVolumeIoOutput"); formatter.finish() } } -/// See [`EnableVolumeIOOutput`](crate::output::EnableVolumeIOOutput) +/// See [`EnableVolumeIoOutput`](crate::output::EnableVolumeIoOutput) pub mod enable_volume_io_output { - /// A builder for [`EnableVolumeIOOutput`](crate::output::EnableVolumeIOOutput) + /// A builder for [`EnableVolumeIoOutput`](crate::output::EnableVolumeIoOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`EnableVolumeIOOutput`](crate::output::EnableVolumeIOOutput) - pub fn build(self) -> crate::output::EnableVolumeIOOutput { - crate::output::EnableVolumeIOOutput {} + /// Consumes the builder and constructs a [`EnableVolumeIoOutput`](crate::output::EnableVolumeIoOutput) + pub fn build(self) -> crate::output::EnableVolumeIoOutput { + crate::output::EnableVolumeIoOutput {} } } } -impl EnableVolumeIOOutput { - /// Creates a new builder-style object to manufacture [`EnableVolumeIOOutput`](crate::output::EnableVolumeIOOutput) +impl EnableVolumeIoOutput { + /// Creates a new builder-style object to manufacture [`EnableVolumeIoOutput`](crate::output::EnableVolumeIoOutput) pub fn builder() -> crate::output::enable_volume_io_output::Builder { crate::output::enable_volume_io_output::Builder::default() } diff --git a/sdk/ec2/src/query_ser.rs b/sdk/ec2/src/query_ser.rs index a7882eeb9ec9..6b6cfe16c47c 100644 --- a/sdk/ec2/src/query_ser.rs +++ b/sdk/ec2/src/query_ser.rs @@ -3970,7 +3970,7 @@ pub fn serialize_structure_phase2_integrity_algorithms_request_list_value( #[allow(unused_mut)] pub fn serialize_structure_phase1_dh_group_numbers_request_list_value( mut writer: smithy_query::QueryValueWriter, - input: &crate::model::Phase1DHGroupNumbersRequestListValue, + input: &crate::model::Phase1DhGroupNumbersRequestListValue, ) { #[allow(unused_mut)] let mut scope_1150 = writer.prefix("Value"); @@ -3985,7 +3985,7 @@ pub fn serialize_structure_phase1_dh_group_numbers_request_list_value( #[allow(unused_mut)] pub fn serialize_structure_phase2_dh_group_numbers_request_list_value( mut writer: smithy_query::QueryValueWriter, - input: &crate::model::Phase2DHGroupNumbersRequestListValue, + input: &crate::model::Phase2DhGroupNumbersRequestListValue, ) { #[allow(unused_mut)] let mut scope_1152 = writer.prefix("Value"); @@ -4000,7 +4000,7 @@ pub fn serialize_structure_phase2_dh_group_numbers_request_list_value( #[allow(unused_mut)] pub fn serialize_structure_ike_versions_request_list_value( mut writer: smithy_query::QueryValueWriter, - input: &crate::model::IKEVersionsRequestListValue, + input: &crate::model::IkeVersionsRequestListValue, ) { #[allow(unused_mut)] let mut scope_1154 = writer.prefix("Value"); diff --git a/sdk/ec2/src/xml_deser.rs b/sdk/ec2/src/xml_deser.rs index 0bab62e2bd33..d30187eb6874 100644 --- a/sdk/ec2/src/xml_deser.rs +++ b/sdk/ec2/src/xml_deser.rs @@ -55370,7 +55370,7 @@ pub fn deser_list_phase2_integrity_algorithms_list( pub fn deser_list_phase1_dh_group_numbers_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { @@ -55390,7 +55390,7 @@ pub fn deser_list_phase1_dh_group_numbers_list( pub fn deser_list_phase2_dh_group_numbers_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { @@ -55410,7 +55410,7 @@ pub fn deser_list_phase2_dh_group_numbers_list( pub fn deser_list_ike_versions_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -57200,9 +57200,9 @@ pub fn deser_structure_phase2_integrity_algorithms_list_value( pub fn deser_structure_phase1_dh_group_numbers_list_value( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::Phase1DHGroupNumbersListValue::builder(); + let mut builder = crate::model::Phase1DhGroupNumbersListValue::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("value") /* Value com.amazonaws.ec2#Phase1DHGroupNumbersListValue$Value */ => { @@ -57229,9 +57229,9 @@ pub fn deser_structure_phase1_dh_group_numbers_list_value( pub fn deser_structure_phase2_dh_group_numbers_list_value( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::Phase2DHGroupNumbersListValue::builder(); + let mut builder = crate::model::Phase2DhGroupNumbersListValue::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("value") /* Value com.amazonaws.ec2#Phase2DHGroupNumbersListValue$Value */ => { @@ -57258,9 +57258,9 @@ pub fn deser_structure_phase2_dh_group_numbers_list_value( pub fn deser_structure_ike_versions_list_value( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::IKEVersionsListValue::builder(); + let mut builder = crate::model::IkeVersionsListValue::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("value") /* Value com.amazonaws.ec2#IKEVersionsListValue$Value */ => { diff --git a/sdk/sagemakerruntime/Cargo.toml b/sdk/ecr/Cargo.toml similarity index 54% rename from sdk/sagemakerruntime/Cargo.toml rename to sdk/ecr/Cargo.toml index 35bc1186508c..018e545783e1 100644 --- a/sdk/sagemakerruntime/Cargo.toml +++ b/sdk/ecr/Cargo.toml @@ -1,8 +1,8 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] -name = "aws-sdk-sagemakerruntime" -version = "0.0.9-alpha" -description = "

            The Amazon SageMaker runtime API.

            " +name = "aws-sdk-ecr" +version = "0.0.10-alpha" +description = "Amazon Elastic Container Registry\n

            Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the\n familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR\n provides a secure, scalable, and reliable registry for your Docker or Open Container\n Initiative (OCI) images. Amazon ECR supports private repositories with resource-based\n permissions using IAM so that specific users or Amazon EC2 instances can access\n repositories and images.

            " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" edition = "2018" @@ -20,20 +20,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] -[dependencies.http] -version = "0.2" [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" +[dependencies.http] +version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] +[dependencies.smithy-json] +path = "..//smithy-json" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/ecr/LICENSE b/sdk/ecr/LICENSE new file mode 100644 index 000000000000..3581ac356771 --- /dev/null +++ b/sdk/ecr/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/sdk/ecr/src/aws_endpoint.rs b/sdk/ecr/src/aws_endpoint.rs new file mode 100644 index 000000000000..5a797092f1d8 --- /dev/null +++ b/sdk/ecr/src/aws_endpoint.rs @@ -0,0 +1,485 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { + aws_endpoint::PartitionResolver::new( + aws_endpoint::Partition::builder() + .id("aws") + .region_regex(r#"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.{region}.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "af-south-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.af-south-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("af-south-1") + .build(), + }, + ) + .endpoint( + "ap-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-east-1") + .build(), + }, + ) + .endpoint( + "ap-northeast-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-northeast-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-northeast-1") + .build(), + }, + ) + .endpoint( + "ap-northeast-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-northeast-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-northeast-2") + .build(), + }, + ) + .endpoint( + "ap-south-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-south-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-south-1") + .build(), + }, + ) + .endpoint( + "ap-southeast-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-southeast-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-southeast-1") + .build(), + }, + ) + .endpoint( + "ap-southeast-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ap-southeast-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ap-southeast-2") + .build(), + }, + ) + .endpoint( + "ca-central-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.ca-central-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("ca-central-1") + .build(), + }, + ) + .endpoint( + "eu-central-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-central-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-central-1") + .build(), + }, + ) + .endpoint( + "eu-north-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-north-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-north-1") + .build(), + }, + ) + .endpoint( + "eu-south-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-south-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-south-1") + .build(), + }, + ) + .endpoint( + "eu-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-west-1") + .build(), + }, + ) + .endpoint( + "eu-west-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-west-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-west-2") + .build(), + }, + ) + .endpoint( + "eu-west-3", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.eu-west-3.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("eu-west-3") + .build(), + }, + ) + .endpoint( + "fips-dkr-us-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-1") + .build(), + }, + ) + .endpoint( + "fips-dkr-us-east-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-east-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-2") + .build(), + }, + ) + .endpoint( + "fips-dkr-us-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-1") + .build(), + }, + ) + .endpoint( + "fips-dkr-us-west-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-west-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-2") + .build(), + }, + ) + .endpoint( + "fips-us-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-1") + .build(), + }, + ) + .endpoint( + "fips-us-east-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-east-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-2") + .build(), + }, + ) + .endpoint( + "fips-us-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-1") + .build(), + }, + ) + .endpoint( + "fips-us-west-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-west-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-2") + .build(), + }, + ) + .endpoint( + "me-south-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.me-south-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("me-south-1") + .build(), + }, + ) + .endpoint( + "sa-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.sa-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("sa-east-1") + .build(), + }, + ) + .endpoint( + "us-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-1") + .build(), + }, + ) + .endpoint( + "us-east-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-east-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-east-2") + .build(), + }, + ) + .endpoint( + "us-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-1") + .build(), + }, + ) + .endpoint( + "us-west-2", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-west-2.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-west-2") + .build(), + }, + ) + .build() + .expect("invalid partition"), + vec![ + aws_endpoint::Partition::builder() + .id("aws-cn") + .region_regex(r#"^cn\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.{region}.amazonaws.com.cn", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "cn-north-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.cn-north-1.amazonaws.com.cn", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("cn-north-1") + .build(), + }, + ) + .endpoint( + "cn-northwest-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.cn-northwest-1.amazonaws.com.cn", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("cn-northwest-1") + .build(), + }, + ) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-iso") + .region_regex(r#"^us\-iso\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.{region}.c2s.ic.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "us-iso-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-iso-east-1.c2s.ic.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-iso-east-1") + .build(), + }, + ) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-iso-b") + .region_regex(r#"^us\-isob\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.{region}.sc2s.sgov.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "us-isob-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-isob-east-1.sc2s.sgov.gov", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-isob-east-1") + .build(), + }, + ) + .build() + .expect("invalid partition"), + aws_endpoint::Partition::builder() + .id("aws-us-gov") + .region_regex(r#"^us\-gov\-\w+\-\d+$"#) + .default_endpoint(aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.{region}.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder().build(), + }) + .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "fips-dkr-us-gov-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-gov-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-east-1") + .build(), + }, + ) + .endpoint( + "fips-dkr-us-gov-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-gov-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-west-1") + .build(), + }, + ) + .endpoint( + "fips-us-gov-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-gov-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-east-1") + .build(), + }, + ) + .endpoint( + "fips-us-gov-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "ecr-fips.us-gov-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-west-1") + .build(), + }, + ) + .endpoint( + "us-gov-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-gov-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-east-1") + .build(), + }, + ) + .endpoint( + "us-gov-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "api.ecr.us-gov-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-west-1") + .build(), + }, + ) + .build() + .expect("invalid partition"), + ], + ) +} diff --git a/sdk/ecr/src/client.rs b/sdk/ecr/src/client.rs new file mode 100644 index 000000000000..fd89f5a01d95 --- /dev/null +++ b/sdk/ecr/src/client.rs @@ -0,0 +1,2455 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[derive(std::fmt::Debug)] +pub(crate) struct Handle { + client: aws_hyper::Client, + conf: crate::Config, +} + +#[derive(Clone, std::fmt::Debug)] +pub struct Client { + handle: std::sync::Arc>, +} +impl Client { + pub fn from_conf_conn(conf: crate::Config, conn: C) -> Self { + let client = aws_hyper::Client::new(conn); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } + + pub fn conf(&self) -> &crate::Config { + &self.handle.conf + } +} +impl Client { + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_env() -> Self { + Self::from_conf(crate::Config::builder().build()) + } + + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_conf(conf: crate::Config) -> Self { + let client = aws_hyper::Client::https(); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } +} +impl Client +where + C: aws_hyper::SmithyConnector, +{ + pub fn batch_check_layer_availability( + &self, + ) -> fluent_builders::BatchCheckLayerAvailability { + fluent_builders::BatchCheckLayerAvailability::new(self.handle.clone()) + } + pub fn batch_delete_image(&self) -> fluent_builders::BatchDeleteImage { + fluent_builders::BatchDeleteImage::new(self.handle.clone()) + } + pub fn batch_get_image(&self) -> fluent_builders::BatchGetImage { + fluent_builders::BatchGetImage::new(self.handle.clone()) + } + pub fn complete_layer_upload(&self) -> fluent_builders::CompleteLayerUpload { + fluent_builders::CompleteLayerUpload::new(self.handle.clone()) + } + pub fn create_repository(&self) -> fluent_builders::CreateRepository { + fluent_builders::CreateRepository::new(self.handle.clone()) + } + pub fn delete_lifecycle_policy(&self) -> fluent_builders::DeleteLifecyclePolicy { + fluent_builders::DeleteLifecyclePolicy::new(self.handle.clone()) + } + pub fn delete_registry_policy(&self) -> fluent_builders::DeleteRegistryPolicy { + fluent_builders::DeleteRegistryPolicy::new(self.handle.clone()) + } + pub fn delete_repository(&self) -> fluent_builders::DeleteRepository { + fluent_builders::DeleteRepository::new(self.handle.clone()) + } + pub fn delete_repository_policy(&self) -> fluent_builders::DeleteRepositoryPolicy { + fluent_builders::DeleteRepositoryPolicy::new(self.handle.clone()) + } + pub fn describe_images(&self) -> fluent_builders::DescribeImages { + fluent_builders::DescribeImages::new(self.handle.clone()) + } + pub fn describe_image_scan_findings(&self) -> fluent_builders::DescribeImageScanFindings { + fluent_builders::DescribeImageScanFindings::new(self.handle.clone()) + } + pub fn describe_registry(&self) -> fluent_builders::DescribeRegistry { + fluent_builders::DescribeRegistry::new(self.handle.clone()) + } + pub fn describe_repositories(&self) -> fluent_builders::DescribeRepositories { + fluent_builders::DescribeRepositories::new(self.handle.clone()) + } + pub fn get_authorization_token(&self) -> fluent_builders::GetAuthorizationToken { + fluent_builders::GetAuthorizationToken::new(self.handle.clone()) + } + pub fn get_download_url_for_layer(&self) -> fluent_builders::GetDownloadUrlForLayer { + fluent_builders::GetDownloadUrlForLayer::new(self.handle.clone()) + } + pub fn get_lifecycle_policy(&self) -> fluent_builders::GetLifecyclePolicy { + fluent_builders::GetLifecyclePolicy::new(self.handle.clone()) + } + pub fn get_lifecycle_policy_preview(&self) -> fluent_builders::GetLifecyclePolicyPreview { + fluent_builders::GetLifecyclePolicyPreview::new(self.handle.clone()) + } + pub fn get_registry_policy(&self) -> fluent_builders::GetRegistryPolicy { + fluent_builders::GetRegistryPolicy::new(self.handle.clone()) + } + pub fn get_repository_policy(&self) -> fluent_builders::GetRepositoryPolicy { + fluent_builders::GetRepositoryPolicy::new(self.handle.clone()) + } + pub fn initiate_layer_upload(&self) -> fluent_builders::InitiateLayerUpload { + fluent_builders::InitiateLayerUpload::new(self.handle.clone()) + } + pub fn list_images(&self) -> fluent_builders::ListImages { + fluent_builders::ListImages::new(self.handle.clone()) + } + pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource { + fluent_builders::ListTagsForResource::new(self.handle.clone()) + } + pub fn put_image(&self) -> fluent_builders::PutImage { + fluent_builders::PutImage::new(self.handle.clone()) + } + pub fn put_image_scanning_configuration( + &self, + ) -> fluent_builders::PutImageScanningConfiguration { + fluent_builders::PutImageScanningConfiguration::new(self.handle.clone()) + } + pub fn put_image_tag_mutability(&self) -> fluent_builders::PutImageTagMutability { + fluent_builders::PutImageTagMutability::new(self.handle.clone()) + } + pub fn put_lifecycle_policy(&self) -> fluent_builders::PutLifecyclePolicy { + fluent_builders::PutLifecyclePolicy::new(self.handle.clone()) + } + pub fn put_registry_policy(&self) -> fluent_builders::PutRegistryPolicy { + fluent_builders::PutRegistryPolicy::new(self.handle.clone()) + } + pub fn put_replication_configuration(&self) -> fluent_builders::PutReplicationConfiguration { + fluent_builders::PutReplicationConfiguration::new(self.handle.clone()) + } + pub fn set_repository_policy(&self) -> fluent_builders::SetRepositoryPolicy { + fluent_builders::SetRepositoryPolicy::new(self.handle.clone()) + } + pub fn start_image_scan(&self) -> fluent_builders::StartImageScan { + fluent_builders::StartImageScan::new(self.handle.clone()) + } + pub fn start_lifecycle_policy_preview( + &self, + ) -> fluent_builders::StartLifecyclePolicyPreview { + fluent_builders::StartLifecyclePolicyPreview::new(self.handle.clone()) + } + pub fn tag_resource(&self) -> fluent_builders::TagResource { + fluent_builders::TagResource::new(self.handle.clone()) + } + pub fn untag_resource(&self) -> fluent_builders::UntagResource { + fluent_builders::UntagResource::new(self.handle.clone()) + } + pub fn upload_layer_part(&self) -> fluent_builders::UploadLayerPart { + fluent_builders::UploadLayerPart::new(self.handle.clone()) + } +} +pub mod fluent_builders { + #[derive(std::fmt::Debug)] + pub struct BatchCheckLayerAvailability { + handle: std::sync::Arc>, + inner: crate::input::batch_check_layer_availability_input::Builder, + } + impl BatchCheckLayerAvailability { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::BatchCheckLayerAvailabilityOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the image layers to + /// check. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository that is associated with the image layers to check.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The digests of the image layers to check.

            + pub fn layer_digests(mut self, inp: impl Into) -> Self { + self.inner = self.inner.layer_digests(inp); + self + } + pub fn set_layer_digests( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_layer_digests(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct BatchDeleteImage { + handle: std::sync::Arc>, + inner: crate::input::batch_delete_image_input::Builder, + } + impl BatchDeleteImage { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::BatchDeleteImageOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the image to delete. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The repository that contains the image to delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            A list of image ID references that correspond to images to delete. The format of the + /// imageIds reference is imageTag=tag or + /// imageDigest=digest.

            + pub fn image_ids(mut self, inp: impl Into) -> Self { + self.inner = self.inner.image_ids(inp); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_image_ids(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct BatchGetImage { + handle: std::sync::Arc>, + inner: crate::input::batch_get_image_input::Builder, + } + impl BatchGetImage { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::BatchGetImageOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the images to describe. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The repository that contains the images to describe.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            A list of image ID references that correspond to images to describe. The format of the + /// imageIds reference is imageTag=tag or + /// imageDigest=digest.

            + pub fn image_ids(mut self, inp: impl Into) -> Self { + self.inner = self.inner.image_ids(inp); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_image_ids(input); + self + } + ///

            The accepted media types for the request.

            + ///

            Valid values: application/vnd.docker.distribution.manifest.v1+json | + /// application/vnd.docker.distribution.manifest.v2+json | + /// application/vnd.oci.image.manifest.v1+json + ///

            + pub fn accepted_media_types(mut self, inp: impl Into) -> Self { + self.inner = self.inner.accepted_media_types(inp); + self + } + pub fn set_accepted_media_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_accepted_media_types(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CompleteLayerUpload { + handle: std::sync::Arc>, + inner: crate::input::complete_layer_upload_input::Builder, + } + impl CompleteLayerUpload { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CompleteLayerUploadOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry to which to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to associate with the image layer.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the image layer.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.upload_id(input); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_upload_id(input); + self + } + ///

            The sha256 digest of the image layer.

            + pub fn layer_digests(mut self, inp: impl Into) -> Self { + self.inner = self.inner.layer_digests(inp); + self + } + pub fn set_layer_digests( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_layer_digests(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CreateRepository { + handle: std::sync::Arc>, + inner: crate::input::create_repository_input::Builder, + } + impl CreateRepository { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CreateRepositoryOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The name to use for the repository. The repository name may be specified on its own + /// (such as nginx-web-app) or it can be prepended with a namespace to group + /// the repository into a category (such as project-a/nginx-web-app).

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The metadata that you apply to the repository to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define. + /// Tag keys can have a maximum character length of 128 characters, and tag values can have + /// a maximum length of 256 characters.

            + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

            The tag mutability setting for the repository. If this parameter is omitted, the + /// default setting of MUTABLE will be used which will allow image tags to be + /// overwritten. If IMMUTABLE is specified, all image tags within the + /// repository will be immutable which will prevent them from being overwritten.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.inner = self.inner.image_tag_mutability(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_tag_mutability(input); + self + } + ///

            The image scanning configuration for the repository. This determines whether images + /// are scanned for known vulnerabilities after being pushed to the repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.inner = self.inner.image_scanning_configuration(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_scanning_configuration(input); + self + } + ///

            The encryption configuration for the repository. This determines how the contents of + /// your repository are encrypted at rest.

            + pub fn encryption_configuration( + mut self, + input: crate::model::EncryptionConfiguration, + ) -> Self { + self.inner = self.inner.encryption_configuration(input); + self + } + pub fn set_encryption_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_encryption_configuration(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteLifecyclePolicy { + handle: std::sync::Arc>, + inner: crate::input::delete_lifecycle_policy_input::Builder, + } + impl DeleteLifecyclePolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteLifecyclePolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteRegistryPolicy { + handle: std::sync::Arc>, + inner: crate::input::delete_registry_policy_input::Builder, + } + impl DeleteRegistryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteRegistryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteRepository { + handle: std::sync::Arc>, + inner: crate::input::delete_repository_input::Builder, + } + impl DeleteRepository { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteRepositoryOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            If a repository contains images, forces the deletion.

            + pub fn force(mut self, input: bool) -> Self { + self.inner = self.inner.force(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_force(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteRepositoryPolicy { + handle: std::sync::Arc>, + inner: crate::input::delete_repository_policy_input::Builder, + } + impl DeleteRepositoryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteRepositoryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository policy to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository that is associated with the repository policy to + /// delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeImages { + handle: std::sync::Arc>, + inner: crate::input::describe_images_input::Builder, + } + impl DescribeImages { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeImagesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to describe images. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The repository that contains the images to describe.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The list of image IDs for the requested repository.

            + pub fn image_ids(mut self, inp: impl Into) -> Self { + self.inner = self.inner.image_ids(inp); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_image_ids(input); + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify images with imageIds.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

            The maximum number of repository results returned by DescribeImages in + /// paginated output. When this parameter is used, DescribeImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another DescribeImages request with the returned nextToken + /// value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImages returns up to + /// 100 results and a nextToken value, if applicable. This + /// option cannot be used when you specify images with imageIds.

            + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

            The filter key and value with which to filter your DescribeImages + /// results.

            + pub fn filter(mut self, input: crate::model::DescribeImagesFilter) -> Self { + self.inner = self.inner.filter(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_filter(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeImageScanFindings { + handle: std::sync::Arc>, + inner: crate::input::describe_image_scan_findings_input::Builder, + } + impl DescribeImageScanFindings { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeImageScanFindingsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to describe the image scan findings for. If you do not specify a registry, the + /// default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The repository for the image for which to describe the scan findings.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.inner = self.inner.image_id(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_id(input); + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeImageScanFindings request where maxResults was + /// used and the results exceeded the value of that parameter. Pagination continues from the + /// end of the previous results that returned the nextToken value. This value + /// is null when there are no more results to return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

            The maximum number of image scan results returned by + /// DescribeImageScanFindings in paginated output. When this parameter is + /// used, DescribeImageScanFindings only returns maxResults + /// results in a single page along with a nextToken response element. The + /// remaining results of the initial request can be seen by sending another + /// DescribeImageScanFindings request with the returned + /// nextToken value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImageScanFindings returns up to 100 + /// results and a nextToken value, if applicable.

            + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeRegistry { + handle: std::sync::Arc>, + inner: crate::input::describe_registry_input::Builder, + } + impl DescribeRegistry { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeRegistryOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeRepositories { + handle: std::sync::Arc>, + inner: crate::input::describe_repositories_input::Builder, + } + impl DescribeRepositories { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeRepositoriesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repositories to be + /// described. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            A list of repositories to describe. If this parameter is omitted, then all + /// repositories in a registry are described.

            + pub fn repository_names(mut self, inp: impl Into) -> Self { + self.inner = self.inner.repository_names(inp); + self + } + pub fn set_repository_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_repository_names(input); + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeRepositories request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify repositories with repositoryNames.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

            The maximum number of repository results returned by DescribeRepositories + /// in paginated output. When this parameter is used, DescribeRepositories only + /// returns maxResults results in a single page along with a + /// nextToken response element. The remaining results of the initial + /// request can be seen by sending another DescribeRepositories request with + /// the returned nextToken value. This value can be between 1 + /// and 1000. If this parameter is not used, then + /// DescribeRepositories returns up to 100 results and a + /// nextToken value, if applicable. This option cannot be used when you + /// specify repositories with repositoryNames.

            + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetAuthorizationToken { + handle: std::sync::Arc>, + inner: crate::input::get_authorization_token_input::Builder, + } + impl GetAuthorizationToken { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetAuthorizationTokenOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            A list of AWS account IDs that are associated with the registries for which to get + /// AuthorizationData objects. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_ids(mut self, inp: impl Into) -> Self { + self.inner = self.inner.registry_ids(inp); + self + } + pub fn set_registry_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_registry_ids(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetDownloadUrlForLayer { + handle: std::sync::Arc>, + inner: crate::input::get_download_url_for_layer_input::Builder, + } + impl GetDownloadUrlForLayer { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetDownloadUrlForLayerOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the image layer to + /// download. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository that is associated with the image layer to download.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The digest of the image layer to download.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.inner = self.inner.layer_digest(input); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_layer_digest(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetLifecyclePolicy { + handle: std::sync::Arc>, + inner: crate::input::get_lifecycle_policy_input::Builder, + } + impl GetLifecyclePolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetLifecyclePolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetLifecyclePolicyPreview { + handle: std::sync::Arc>, + inner: crate::input::get_lifecycle_policy_preview_input::Builder, + } + impl GetLifecyclePolicyPreview { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetLifecyclePolicyPreviewOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The list of imageIDs to be included.

            + pub fn image_ids(mut self, inp: impl Into) -> Self { + self.inner = self.inner.image_ids(inp); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_image_ids(input); + self + } + ///

            The nextToken value returned from a previous paginated + /// GetLifecyclePolicyPreviewRequest request where maxResults + /// was used and the
 results exceeded the value of that parameter. Pagination continues + /// from the end of the
 previous results that returned the nextToken value. + /// This value is
 null when there are no more results to return. This option + /// cannot be used when you specify images with imageIds.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

            The maximum number of repository results returned by + /// GetLifecyclePolicyPreviewRequest in
 paginated output. When this + /// parameter is used, GetLifecyclePolicyPreviewRequest only returns + /// maxResults results in a single page along with a + /// nextToken
 response element. The remaining results of the initial request + /// can be seen by sending
 another GetLifecyclePolicyPreviewRequest request + /// with the returned nextToken
 value. This value can be between + /// 1 and 1000. If this
 parameter is not used, then + /// GetLifecyclePolicyPreviewRequest returns up to
 100 + /// results and a nextToken value, if
 applicable. This option cannot be used + /// when you specify images with imageIds.

            + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

            An optional parameter that filters results based on image tag status and all tags, if + /// tagged.

            + pub fn filter(mut self, input: crate::model::LifecyclePolicyPreviewFilter) -> Self { + self.inner = self.inner.filter(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_filter(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct GetRegistryPolicy { + handle: std::sync::Arc>, + inner: crate::input::get_registry_policy_input::Builder, + } + impl GetRegistryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetRegistryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + } + #[derive(std::fmt::Debug)] + pub struct GetRepositoryPolicy { + handle: std::sync::Arc>, + inner: crate::input::get_repository_policy_input::Builder, + } + impl GetRepositoryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::GetRepositoryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository with the policy to retrieve.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct InitiateLayerUpload { + handle: std::sync::Arc>, + inner: crate::input::initiate_layer_upload_input::Builder, + } + impl InitiateLayerUpload { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::InitiateLayerUploadOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry to which you intend to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to which you intend to upload layers.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListImages { + handle: std::sync::Arc>, + inner: crate::input::list_images_input::Builder, + } + impl ListImages { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListImagesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to list images. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The repository with image IDs to be listed.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The nextToken value returned from a previous paginated + /// ListImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

            The maximum number of image results returned by ListImages in paginated + /// output. When this parameter is used, ListImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another ListImages request with the returned nextToken value. + /// This value can be between 1 and 1000. If this parameter is + /// not used, then ListImages returns up to 100 results and a + /// nextToken value, if applicable.

            + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

            The filter key and value with which to filter your ListImages + /// results.

            + pub fn filter(mut self, input: crate::model::ListImagesFilter) -> Self { + self.inner = self.inner.filter(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_filter(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListTagsForResource { + handle: std::sync::Arc>, + inner: crate::input::list_tags_for_resource_input::Builder, + } + impl ListTagsForResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// only supported resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutImage { + handle: std::sync::Arc>, + inner: crate::input::put_image_input::Builder, + } + impl PutImage { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutImageOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to put the image. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository in which to put the image.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The image manifest corresponding to the image to be uploaded.

            + pub fn image_manifest(mut self, input: impl Into) -> Self { + self.inner = self.inner.image_manifest(input); + self + } + pub fn set_image_manifest( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_manifest(input); + self + } + ///

            The media type of the image manifest. If you push an image manifest that does not + /// contain the mediaType field, you must specify the + /// imageManifestMediaType in the request.

            + pub fn image_manifest_media_type(mut self, input: impl Into) -> Self { + self.inner = self.inner.image_manifest_media_type(input); + self + } + pub fn set_image_manifest_media_type( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_manifest_media_type(input); + self + } + ///

            The tag to associate with the image. This parameter is required for images that use + /// the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.

            + pub fn image_tag(mut self, input: impl Into) -> Self { + self.inner = self.inner.image_tag(input); + self + } + pub fn set_image_tag(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_image_tag(input); + self + } + ///

            The image digest of the image manifest corresponding to the image.

            + pub fn image_digest(mut self, input: impl Into) -> Self { + self.inner = self.inner.image_digest(input); + self + } + pub fn set_image_digest(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_image_digest(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutImageScanningConfiguration { + handle: std::sync::Arc>, + inner: crate::input::put_image_scanning_configuration_input::Builder, + } + impl PutImageScanningConfiguration { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutImageScanningConfigurationOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to update the image scanning configuration setting. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository in which to update the image scanning configuration + /// setting.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The image scanning configuration for the repository. This setting determines whether + /// images are scanned for known vulnerabilities after being pushed to the + /// repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.inner = self.inner.image_scanning_configuration(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_scanning_configuration(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutImageTagMutability { + handle: std::sync::Arc>, + inner: crate::input::put_image_tag_mutability_input::Builder, + } + impl PutImageTagMutability { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutImageTagMutabilityOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository in which to update the image tag mutability + /// settings.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The tag mutability setting for the repository. If MUTABLE is specified, + /// image tags can be overwritten. If IMMUTABLE is specified, all image tags + /// within the repository will be immutable which will prevent them from being + /// overwritten.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.inner = self.inner.image_tag_mutability(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_tag_mutability(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutLifecyclePolicy { + handle: std::sync::Arc>, + inner: crate::input::put_lifecycle_policy_input::Builder, + } + impl PutLifecyclePolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutLifecyclePolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. If you + /// do
 not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to receive the policy.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The JSON repository policy text to apply to the repository.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.inner = self.inner.lifecycle_policy_text(input); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_lifecycle_policy_text(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutRegistryPolicy { + handle: std::sync::Arc>, + inner: crate::input::put_registry_policy_input::Builder, + } + impl PutRegistryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutRegistryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The JSON policy text to apply to your registry. The policy text follows the same + /// format as IAM policy text. For more information, see Registry + /// permissions in the Amazon Elastic Container Registry User Guide.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.inner = self.inner.policy_text(input); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_policy_text(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct PutReplicationConfiguration { + handle: std::sync::Arc>, + inner: crate::input::put_replication_configuration_input::Builder, + } + impl PutReplicationConfiguration { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::PutReplicationConfigurationOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            An object representing the replication configuration for a registry.

            + pub fn replication_configuration( + mut self, + input: crate::model::ReplicationConfiguration, + ) -> Self { + self.inner = self.inner.replication_configuration(input); + self + } + pub fn set_replication_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_replication_configuration(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct SetRepositoryPolicy { + handle: std::sync::Arc>, + inner: crate::input::set_repository_policy_input::Builder, + } + impl SetRepositoryPolicy { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::SetRepositoryPolicyOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to receive the policy.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The JSON repository policy text to apply to the repository. For more information, see + /// Amazon ECR Repository + /// Policies in the Amazon Elastic Container Registry User Guide.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.inner = self.inner.policy_text(input); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_policy_text(input); + self + } + ///

            If the policy you are attempting to set on a repository policy would prevent you from + /// setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental + /// repository lock outs.

            + pub fn force(mut self, input: bool) -> Self { + self.inner = self.inner.force(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_force(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct StartImageScan { + handle: std::sync::Arc>, + inner: crate::input::start_image_scan_input::Builder, + } + impl StartImageScan { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::StartImageScanOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to start an image scan request. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository that contains the images to scan.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.inner = self.inner.image_id(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_image_id(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct StartLifecyclePolicyPreview { + handle: std::sync::Arc>, + inner: crate::input::start_lifecycle_policy_preview_input::Builder, + } + impl StartLifecyclePolicyPreview { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::StartLifecyclePolicyPreviewOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to be evaluated.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The policy to be evaluated against. If you do not specify a policy, the current policy + /// for the repository is used.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.inner = self.inner.lifecycle_policy_text(input); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_lifecycle_policy_text(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct TagResource { + handle: std::sync::Arc>, + inner: crate::input::tag_resource_input::Builder, + } + impl TagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::TagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

            The tags to add to the resource. A tag is an array of key-value pairs. + /// Tag keys can have a maximum character length of 128 characters, and tag values can have + /// a maximum length of 256 characters.

            + pub fn tags(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tags(inp); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UntagResource { + handle: std::sync::Arc>, + inner: crate::input::untag_resource_input::Builder, + } + impl UntagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UntagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

            The keys of the tags to be removed.

            + pub fn tag_keys(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tag_keys(inp); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tag_keys(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UploadLayerPart { + handle: std::sync::Arc>, + inner: crate::input::upload_layer_part_input::Builder, + } + impl UploadLayerPart { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UploadLayerPartOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

            The AWS account ID associated with the registry to which you are uploading layer + /// parts. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.registry_id(input); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_registry_id(input); + self + } + ///

            The name of the repository to which you are uploading layer parts.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.repository_name(input); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_repository_name(input); + self + } + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the layer part upload.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.upload_id(input); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_upload_id(input); + self + } + ///

            The position of the first byte of the layer part witin the overall image layer.

            + pub fn part_first_byte(mut self, input: i64) -> Self { + self.inner = self.inner.part_first_byte(input); + self + } + pub fn set_part_first_byte(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_part_first_byte(input); + self + } + ///

            The position of the last byte of the layer part within the overall image layer.

            + pub fn part_last_byte(mut self, input: i64) -> Self { + self.inner = self.inner.part_last_byte(input); + self + } + pub fn set_part_last_byte(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_part_last_byte(input); + self + } + ///

            The base64-encoded layer part payload.

            + pub fn layer_part_blob(mut self, input: smithy_types::Blob) -> Self { + self.inner = self.inner.layer_part_blob(input); + self + } + pub fn set_layer_part_blob( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_layer_part_blob(input); + self + } + } +} diff --git a/sdk/sagemakerruntime/src/config.rs b/sdk/ecr/src/config.rs similarity index 99% rename from sdk/sagemakerruntime/src/config.rs rename to sdk/ecr/src/config.rs index 0a24553b73ed..6952c743809d 100644 --- a/sdk/sagemakerruntime/src/config.rs +++ b/sdk/ecr/src/config.rs @@ -19,7 +19,7 @@ impl Config { /// The signing service may be overidden by the `Endpoint`, or by specifying a custom [`SigningService`](aws_types::SigningService) during /// operation construction pub fn signing_service(&self) -> &'static str { - "sagemaker" + "ecr" } } #[derive(Default)] diff --git a/sdk/ecr/src/error.rs b/sdk/ecr/src/error.rs new file mode 100644 index 000000000000..5ea6147f3604 --- /dev/null +++ b/sdk/ecr/src/error.rs @@ -0,0 +1,5615 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct BatchCheckLayerAvailabilityError { + pub kind: BatchCheckLayerAvailabilityErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum BatchCheckLayerAvailabilityErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for BatchCheckLayerAvailabilityError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + BatchCheckLayerAvailabilityErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + BatchCheckLayerAvailabilityErrorKind::RepositoryNotFoundException(_inner) => { + _inner.fmt(f) + } + BatchCheckLayerAvailabilityErrorKind::ServerException(_inner) => _inner.fmt(f), + BatchCheckLayerAvailabilityErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for BatchCheckLayerAvailabilityError { + fn code(&self) -> Option<&str> { + BatchCheckLayerAvailabilityError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl BatchCheckLayerAvailabilityError { + pub fn new(kind: BatchCheckLayerAvailabilityErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: BatchCheckLayerAvailabilityErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: BatchCheckLayerAvailabilityErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + BatchCheckLayerAvailabilityErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + BatchCheckLayerAvailabilityErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + BatchCheckLayerAvailabilityErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for BatchCheckLayerAvailabilityError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + BatchCheckLayerAvailabilityErrorKind::InvalidParameterException(_inner) => Some(_inner), + BatchCheckLayerAvailabilityErrorKind::RepositoryNotFoundException(_inner) => { + Some(_inner) + } + BatchCheckLayerAvailabilityErrorKind::ServerException(_inner) => Some(_inner), + BatchCheckLayerAvailabilityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct BatchDeleteImageError { + pub kind: BatchDeleteImageErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum BatchDeleteImageErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for BatchDeleteImageError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + BatchDeleteImageErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + BatchDeleteImageErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + BatchDeleteImageErrorKind::ServerException(_inner) => _inner.fmt(f), + BatchDeleteImageErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for BatchDeleteImageError { + fn code(&self) -> Option<&str> { + BatchDeleteImageError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl BatchDeleteImageError { + pub fn new(kind: BatchDeleteImageErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: BatchDeleteImageErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: BatchDeleteImageErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + BatchDeleteImageErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + BatchDeleteImageErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteImageErrorKind::ServerException(_)) + } +} +impl std::error::Error for BatchDeleteImageError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + BatchDeleteImageErrorKind::InvalidParameterException(_inner) => Some(_inner), + BatchDeleteImageErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + BatchDeleteImageErrorKind::ServerException(_inner) => Some(_inner), + BatchDeleteImageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct BatchGetImageError { + pub kind: BatchGetImageErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum BatchGetImageErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for BatchGetImageError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + BatchGetImageErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + BatchGetImageErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + BatchGetImageErrorKind::ServerException(_inner) => _inner.fmt(f), + BatchGetImageErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for BatchGetImageError { + fn code(&self) -> Option<&str> { + BatchGetImageError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl BatchGetImageError { + pub fn new(kind: BatchGetImageErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: BatchGetImageErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: BatchGetImageErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + BatchGetImageErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + BatchGetImageErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, BatchGetImageErrorKind::ServerException(_)) + } +} +impl std::error::Error for BatchGetImageError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + BatchGetImageErrorKind::InvalidParameterException(_inner) => Some(_inner), + BatchGetImageErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + BatchGetImageErrorKind::ServerException(_inner) => Some(_inner), + BatchGetImageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CompleteLayerUploadError { + pub kind: CompleteLayerUploadErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CompleteLayerUploadErrorKind { + EmptyUploadException(crate::error::EmptyUploadException), + InvalidLayerException(crate::error::InvalidLayerException), + InvalidParameterException(crate::error::InvalidParameterException), + KmsException(crate::error::KmsException), + LayerAlreadyExistsException(crate::error::LayerAlreadyExistsException), + LayerPartTooSmallException(crate::error::LayerPartTooSmallException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + UploadNotFoundException(crate::error::UploadNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CompleteLayerUploadError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CompleteLayerUploadErrorKind::EmptyUploadException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::InvalidLayerException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::KmsException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::LayerAlreadyExistsException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::LayerPartTooSmallException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::ServerException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::UploadNotFoundException(_inner) => _inner.fmt(f), + CompleteLayerUploadErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CompleteLayerUploadError { + fn code(&self) -> Option<&str> { + CompleteLayerUploadError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CompleteLayerUploadError { + pub fn new(kind: CompleteLayerUploadErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CompleteLayerUploadErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CompleteLayerUploadErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_empty_upload_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::EmptyUploadException(_) + ) + } + pub fn is_invalid_layer_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::InvalidLayerException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::InvalidParameterException(_) + ) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, CompleteLayerUploadErrorKind::KmsException(_)) + } + pub fn is_layer_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::LayerAlreadyExistsException(_) + ) + } + pub fn is_layer_part_too_small_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::LayerPartTooSmallException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CompleteLayerUploadErrorKind::ServerException(_)) + } + pub fn is_upload_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CompleteLayerUploadErrorKind::UploadNotFoundException(_) + ) + } +} +impl std::error::Error for CompleteLayerUploadError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CompleteLayerUploadErrorKind::EmptyUploadException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::InvalidLayerException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::InvalidParameterException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::KmsException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::LayerAlreadyExistsException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::LayerPartTooSmallException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::ServerException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::UploadNotFoundException(_inner) => Some(_inner), + CompleteLayerUploadErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CreateRepositoryError { + pub kind: CreateRepositoryErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CreateRepositoryErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + InvalidTagParameterException(crate::error::InvalidTagParameterException), + KmsException(crate::error::KmsException), + LimitExceededException(crate::error::LimitExceededException), + RepositoryAlreadyExistsException(crate::error::RepositoryAlreadyExistsException), + ServerException(crate::error::ServerException), + TooManyTagsException(crate::error::TooManyTagsException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CreateRepositoryError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CreateRepositoryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::InvalidTagParameterException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::KmsException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::RepositoryAlreadyExistsException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::TooManyTagsException(_inner) => _inner.fmt(f), + CreateRepositoryErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CreateRepositoryError { + fn code(&self) -> Option<&str> { + CreateRepositoryError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CreateRepositoryError { + pub fn new(kind: CreateRepositoryErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CreateRepositoryErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CreateRepositoryErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateRepositoryErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_tag_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateRepositoryErrorKind::InvalidTagParameterException(_) + ) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, CreateRepositoryErrorKind::KmsException(_)) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateRepositoryErrorKind::LimitExceededException(_) + ) + } + pub fn is_repository_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateRepositoryErrorKind::RepositoryAlreadyExistsException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateRepositoryErrorKind::ServerException(_)) + } + pub fn is_too_many_tags_exception(&self) -> bool { + matches!( + &self.kind, + CreateRepositoryErrorKind::TooManyTagsException(_) + ) + } +} +impl std::error::Error for CreateRepositoryError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CreateRepositoryErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateRepositoryErrorKind::InvalidTagParameterException(_inner) => Some(_inner), + CreateRepositoryErrorKind::KmsException(_inner) => Some(_inner), + CreateRepositoryErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateRepositoryErrorKind::RepositoryAlreadyExistsException(_inner) => Some(_inner), + CreateRepositoryErrorKind::ServerException(_inner) => Some(_inner), + CreateRepositoryErrorKind::TooManyTagsException(_inner) => Some(_inner), + CreateRepositoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteLifecyclePolicyError { + pub kind: DeleteLifecyclePolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteLifecyclePolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + LifecyclePolicyNotFoundException(crate::error::LifecyclePolicyNotFoundException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteLifecyclePolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteLifecyclePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_inner) => { + _inner.fmt(f) + } + DeleteLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + DeleteLifecyclePolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteLifecyclePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteLifecyclePolicyError { + fn code(&self) -> Option<&str> { + DeleteLifecyclePolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteLifecyclePolicyError { + pub fn new(kind: DeleteLifecyclePolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteLifecyclePolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteLifecyclePolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLifecyclePolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_lifecycle_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLifecyclePolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLifecyclePolicyErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DeleteLifecyclePolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteLifecyclePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_inner) => { + Some(_inner) + } + DeleteLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DeleteLifecyclePolicyErrorKind::ServerException(_inner) => Some(_inner), + DeleteLifecyclePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteRegistryPolicyError { + pub kind: DeleteRegistryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteRegistryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RegistryPolicyNotFoundException(crate::error::RegistryPolicyNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteRegistryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteRegistryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_inner) => _inner.fmt(f), + DeleteRegistryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteRegistryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteRegistryPolicyError { + fn code(&self) -> Option<&str> { + DeleteRegistryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteRegistryPolicyError { + pub fn new(kind: DeleteRegistryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteRegistryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteRegistryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRegistryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_registry_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRegistryPolicyErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DeleteRegistryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteRegistryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_inner) => Some(_inner), + DeleteRegistryPolicyErrorKind::ServerException(_inner) => Some(_inner), + DeleteRegistryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteRepositoryError { + pub kind: DeleteRepositoryErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteRepositoryErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + KmsException(crate::error::KmsException), + RepositoryNotEmptyException(crate::error::RepositoryNotEmptyException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteRepositoryError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteRepositoryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteRepositoryErrorKind::KmsException(_inner) => _inner.fmt(f), + DeleteRepositoryErrorKind::RepositoryNotEmptyException(_inner) => _inner.fmt(f), + DeleteRepositoryErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + DeleteRepositoryErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteRepositoryErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteRepositoryError { + fn code(&self) -> Option<&str> { + DeleteRepositoryError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteRepositoryError { + pub fn new(kind: DeleteRepositoryErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteRepositoryErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteRepositoryErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryErrorKind::InvalidParameterException(_) + ) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, DeleteRepositoryErrorKind::KmsException(_)) + } + pub fn is_repository_not_empty_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryErrorKind::RepositoryNotEmptyException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteRepositoryErrorKind::ServerException(_)) + } +} +impl std::error::Error for DeleteRepositoryError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteRepositoryErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteRepositoryErrorKind::KmsException(_inner) => Some(_inner), + DeleteRepositoryErrorKind::RepositoryNotEmptyException(_inner) => Some(_inner), + DeleteRepositoryErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DeleteRepositoryErrorKind::ServerException(_inner) => Some(_inner), + DeleteRepositoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteRepositoryPolicyError { + pub kind: DeleteRepositoryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteRepositoryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + RepositoryPolicyNotFoundException(crate::error::RepositoryPolicyNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteRepositoryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteRepositoryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + DeleteRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_inner) => { + _inner.fmt(f) + } + DeleteRepositoryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteRepositoryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteRepositoryPolicyError { + fn code(&self) -> Option<&str> { + DeleteRepositoryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteRepositoryPolicyError { + pub fn new(kind: DeleteRepositoryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteRepositoryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteRepositoryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryPolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_repository_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRepositoryPolicyErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DeleteRepositoryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteRepositoryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DeleteRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_inner) => { + Some(_inner) + } + DeleteRepositoryPolicyErrorKind::ServerException(_inner) => Some(_inner), + DeleteRepositoryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeImagesError { + pub kind: DescribeImagesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeImagesErrorKind { + ImageNotFoundException(crate::error::ImageNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeImagesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeImagesErrorKind::ImageNotFoundException(_inner) => _inner.fmt(f), + DescribeImagesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeImagesErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + DescribeImagesErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeImagesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeImagesError { + fn code(&self) -> Option<&str> { + DescribeImagesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeImagesError { + pub fn new(kind: DescribeImagesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeImagesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeImagesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_image_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImagesErrorKind::ImageNotFoundException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImagesErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImagesErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeImagesErrorKind::ServerException(_)) + } +} +impl std::error::Error for DescribeImagesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeImagesErrorKind::ImageNotFoundException(_inner) => Some(_inner), + DescribeImagesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeImagesErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DescribeImagesErrorKind::ServerException(_inner) => Some(_inner), + DescribeImagesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeImageScanFindingsError { + pub kind: DescribeImageScanFindingsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeImageScanFindingsErrorKind { + ImageNotFoundException(crate::error::ImageNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ScanNotFoundException(crate::error::ScanNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeImageScanFindingsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeImageScanFindingsErrorKind::ImageNotFoundException(_inner) => _inner.fmt(f), + DescribeImageScanFindingsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeImageScanFindingsErrorKind::RepositoryNotFoundException(_inner) => { + _inner.fmt(f) + } + DescribeImageScanFindingsErrorKind::ScanNotFoundException(_inner) => _inner.fmt(f), + DescribeImageScanFindingsErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeImageScanFindingsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeImageScanFindingsError { + fn code(&self) -> Option<&str> { + DescribeImageScanFindingsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeImageScanFindingsError { + pub fn new(kind: DescribeImageScanFindingsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeImageScanFindingsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeImageScanFindingsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_image_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImageScanFindingsErrorKind::ImageNotFoundException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImageScanFindingsErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImageScanFindingsErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_scan_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImageScanFindingsErrorKind::ScanNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeImageScanFindingsErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DescribeImageScanFindingsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeImageScanFindingsErrorKind::ImageNotFoundException(_inner) => Some(_inner), + DescribeImageScanFindingsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeImageScanFindingsErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DescribeImageScanFindingsErrorKind::ScanNotFoundException(_inner) => Some(_inner), + DescribeImageScanFindingsErrorKind::ServerException(_inner) => Some(_inner), + DescribeImageScanFindingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeRegistryError { + pub kind: DescribeRegistryErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeRegistryErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ValidationException(crate::error::ValidationException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeRegistryError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeRegistryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeRegistryErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeRegistryErrorKind::ValidationException(_inner) => _inner.fmt(f), + DescribeRegistryErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeRegistryError { + fn code(&self) -> Option<&str> { + DescribeRegistryError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeRegistryError { + pub fn new(kind: DescribeRegistryErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeRegistryErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeRegistryErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeRegistryErrorKind::InvalidParameterException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeRegistryErrorKind::ServerException(_)) + } + pub fn is_validation_exception(&self) -> bool { + matches!( + &self.kind, + DescribeRegistryErrorKind::ValidationException(_) + ) + } +} +impl std::error::Error for DescribeRegistryError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeRegistryErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeRegistryErrorKind::ServerException(_inner) => Some(_inner), + DescribeRegistryErrorKind::ValidationException(_inner) => Some(_inner), + DescribeRegistryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeRepositoriesError { + pub kind: DescribeRepositoriesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeRepositoriesErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeRepositoriesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeRepositoriesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeRepositoriesErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + DescribeRepositoriesErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeRepositoriesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeRepositoriesError { + fn code(&self) -> Option<&str> { + DescribeRepositoriesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeRepositoriesError { + pub fn new(kind: DescribeRepositoriesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeRepositoriesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeRepositoriesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeRepositoriesErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeRepositoriesErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeRepositoriesErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DescribeRepositoriesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeRepositoriesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeRepositoriesErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + DescribeRepositoriesErrorKind::ServerException(_inner) => Some(_inner), + DescribeRepositoriesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetAuthorizationTokenError { + pub kind: GetAuthorizationTokenErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetAuthorizationTokenErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetAuthorizationTokenError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetAuthorizationTokenErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetAuthorizationTokenErrorKind::ServerException(_inner) => _inner.fmt(f), + GetAuthorizationTokenErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetAuthorizationTokenError { + fn code(&self) -> Option<&str> { + GetAuthorizationTokenError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetAuthorizationTokenError { + pub fn new(kind: GetAuthorizationTokenErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetAuthorizationTokenErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetAuthorizationTokenErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetAuthorizationTokenErrorKind::InvalidParameterException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + GetAuthorizationTokenErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for GetAuthorizationTokenError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetAuthorizationTokenErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetAuthorizationTokenErrorKind::ServerException(_inner) => Some(_inner), + GetAuthorizationTokenErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetDownloadUrlForLayerError { + pub kind: GetDownloadUrlForLayerErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetDownloadUrlForLayerErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + LayerInaccessibleException(crate::error::LayerInaccessibleException), + LayersNotFoundException(crate::error::LayersNotFoundException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetDownloadUrlForLayerError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetDownloadUrlForLayerErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetDownloadUrlForLayerErrorKind::LayerInaccessibleException(_inner) => _inner.fmt(f), + GetDownloadUrlForLayerErrorKind::LayersNotFoundException(_inner) => _inner.fmt(f), + GetDownloadUrlForLayerErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + GetDownloadUrlForLayerErrorKind::ServerException(_inner) => _inner.fmt(f), + GetDownloadUrlForLayerErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetDownloadUrlForLayerError { + fn code(&self) -> Option<&str> { + GetDownloadUrlForLayerError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetDownloadUrlForLayerError { + pub fn new(kind: GetDownloadUrlForLayerErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetDownloadUrlForLayerErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetDownloadUrlForLayerErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetDownloadUrlForLayerErrorKind::InvalidParameterException(_) + ) + } + pub fn is_layer_inaccessible_exception(&self) -> bool { + matches!( + &self.kind, + GetDownloadUrlForLayerErrorKind::LayerInaccessibleException(_) + ) + } + pub fn is_layers_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetDownloadUrlForLayerErrorKind::LayersNotFoundException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetDownloadUrlForLayerErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + GetDownloadUrlForLayerErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for GetDownloadUrlForLayerError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetDownloadUrlForLayerErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetDownloadUrlForLayerErrorKind::LayerInaccessibleException(_inner) => Some(_inner), + GetDownloadUrlForLayerErrorKind::LayersNotFoundException(_inner) => Some(_inner), + GetDownloadUrlForLayerErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + GetDownloadUrlForLayerErrorKind::ServerException(_inner) => Some(_inner), + GetDownloadUrlForLayerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetLifecyclePolicyError { + pub kind: GetLifecyclePolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetLifecyclePolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + LifecyclePolicyNotFoundException(crate::error::LifecyclePolicyNotFoundException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetLifecyclePolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetLifecyclePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_inner) => _inner.fmt(f), + GetLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + GetLifecyclePolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + GetLifecyclePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetLifecyclePolicyError { + fn code(&self) -> Option<&str> { + GetLifecyclePolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetLifecyclePolicyError { + pub fn new(kind: GetLifecyclePolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetLifecyclePolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetLifecyclePolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_lifecycle_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, GetLifecyclePolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for GetLifecyclePolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetLifecyclePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException(_inner) => Some(_inner), + GetLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + GetLifecyclePolicyErrorKind::ServerException(_inner) => Some(_inner), + GetLifecyclePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetLifecyclePolicyPreviewError { + pub kind: GetLifecyclePolicyPreviewErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetLifecyclePolicyPreviewErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + LifecyclePolicyPreviewNotFoundException(crate::error::LifecyclePolicyPreviewNotFoundException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetLifecyclePolicyPreviewError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetLifecyclePolicyPreviewErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewNotFoundException(_inner) => { + _inner.fmt(f) + } + GetLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_inner) => { + _inner.fmt(f) + } + GetLifecyclePolicyPreviewErrorKind::ServerException(_inner) => _inner.fmt(f), + GetLifecyclePolicyPreviewErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetLifecyclePolicyPreviewError { + fn code(&self) -> Option<&str> { + GetLifecyclePolicyPreviewError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetLifecyclePolicyPreviewError { + pub fn new(kind: GetLifecyclePolicyPreviewErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetLifecyclePolicyPreviewErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetLifecyclePolicyPreviewErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyPreviewErrorKind::InvalidParameterException(_) + ) + } + pub fn is_lifecycle_policy_preview_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewNotFoundException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + GetLifecyclePolicyPreviewErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for GetLifecyclePolicyPreviewError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetLifecyclePolicyPreviewErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewNotFoundException(_inner) => { + Some(_inner) + } + GetLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + GetLifecyclePolicyPreviewErrorKind::ServerException(_inner) => Some(_inner), + GetLifecyclePolicyPreviewErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetRegistryPolicyError { + pub kind: GetRegistryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetRegistryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RegistryPolicyNotFoundException(crate::error::RegistryPolicyNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetRegistryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetRegistryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_inner) => _inner.fmt(f), + GetRegistryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + GetRegistryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetRegistryPolicyError { + fn code(&self) -> Option<&str> { + GetRegistryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetRegistryPolicyError { + pub fn new(kind: GetRegistryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetRegistryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetRegistryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetRegistryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_registry_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, GetRegistryPolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for GetRegistryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetRegistryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetRegistryPolicyErrorKind::RegistryPolicyNotFoundException(_inner) => Some(_inner), + GetRegistryPolicyErrorKind::ServerException(_inner) => Some(_inner), + GetRegistryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct GetRepositoryPolicyError { + pub kind: GetRepositoryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum GetRepositoryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + RepositoryPolicyNotFoundException(crate::error::RepositoryPolicyNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for GetRepositoryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + GetRepositoryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + GetRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_inner) => { + _inner.fmt(f) + } + GetRepositoryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + GetRepositoryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for GetRepositoryPolicyError { + fn code(&self) -> Option<&str> { + GetRepositoryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl GetRepositoryPolicyError { + pub fn new(kind: GetRepositoryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: GetRepositoryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: GetRepositoryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetRepositoryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRepositoryPolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_repository_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, GetRepositoryPolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for GetRepositoryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + GetRepositoryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + GetRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(_inner) => Some(_inner), + GetRepositoryPolicyErrorKind::ServerException(_inner) => Some(_inner), + GetRepositoryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct InitiateLayerUploadError { + pub kind: InitiateLayerUploadErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum InitiateLayerUploadErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + KmsException(crate::error::KmsException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for InitiateLayerUploadError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + InitiateLayerUploadErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + InitiateLayerUploadErrorKind::KmsException(_inner) => _inner.fmt(f), + InitiateLayerUploadErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + InitiateLayerUploadErrorKind::ServerException(_inner) => _inner.fmt(f), + InitiateLayerUploadErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for InitiateLayerUploadError { + fn code(&self) -> Option<&str> { + InitiateLayerUploadError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl InitiateLayerUploadError { + pub fn new(kind: InitiateLayerUploadErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: InitiateLayerUploadErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: InitiateLayerUploadErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + InitiateLayerUploadErrorKind::InvalidParameterException(_) + ) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, InitiateLayerUploadErrorKind::KmsException(_)) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + InitiateLayerUploadErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, InitiateLayerUploadErrorKind::ServerException(_)) + } +} +impl std::error::Error for InitiateLayerUploadError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + InitiateLayerUploadErrorKind::InvalidParameterException(_inner) => Some(_inner), + InitiateLayerUploadErrorKind::KmsException(_inner) => Some(_inner), + InitiateLayerUploadErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + InitiateLayerUploadErrorKind::ServerException(_inner) => Some(_inner), + InitiateLayerUploadErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListImagesError { + pub kind: ListImagesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListImagesErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListImagesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListImagesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListImagesErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + ListImagesErrorKind::ServerException(_inner) => _inner.fmt(f), + ListImagesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListImagesError { + fn code(&self) -> Option<&str> { + ListImagesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListImagesError { + pub fn new(kind: ListImagesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListImagesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListImagesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListImagesErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListImagesErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListImagesErrorKind::ServerException(_)) + } +} +impl std::error::Error for ListImagesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListImagesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListImagesErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + ListImagesErrorKind::ServerException(_inner) => Some(_inner), + ListImagesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListTagsForResourceError { + pub kind: ListTagsForResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListTagsForResourceErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListTagsForResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ServerException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListTagsForResourceError { + fn code(&self) -> Option<&str> { + ListTagsForResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListTagsForResourceError { + pub fn new(kind: ListTagsForResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListTagsForResourceErrorKind::ServerException(_)) + } +} +impl std::error::Error for ListTagsForResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ServerException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutImageError { + pub kind: PutImageErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutImageErrorKind { + ImageAlreadyExistsException(crate::error::ImageAlreadyExistsException), + ImageDigestDoesNotMatchException(crate::error::ImageDigestDoesNotMatchException), + ImageTagAlreadyExistsException(crate::error::ImageTagAlreadyExistsException), + InvalidParameterException(crate::error::InvalidParameterException), + KmsException(crate::error::KmsException), + LayersNotFoundException(crate::error::LayersNotFoundException), + LimitExceededException(crate::error::LimitExceededException), + ReferencedImagesNotFoundException(crate::error::ReferencedImagesNotFoundException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutImageError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutImageErrorKind::ImageAlreadyExistsException(_inner) => _inner.fmt(f), + PutImageErrorKind::ImageDigestDoesNotMatchException(_inner) => _inner.fmt(f), + PutImageErrorKind::ImageTagAlreadyExistsException(_inner) => _inner.fmt(f), + PutImageErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutImageErrorKind::KmsException(_inner) => _inner.fmt(f), + PutImageErrorKind::LayersNotFoundException(_inner) => _inner.fmt(f), + PutImageErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutImageErrorKind::ReferencedImagesNotFoundException(_inner) => _inner.fmt(f), + PutImageErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + PutImageErrorKind::ServerException(_inner) => _inner.fmt(f), + PutImageErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutImageError { + fn code(&self) -> Option<&str> { + PutImageError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutImageError { + pub fn new(kind: PutImageErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutImageErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutImageErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_image_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + PutImageErrorKind::ImageAlreadyExistsException(_) + ) + } + pub fn is_image_digest_does_not_match_exception(&self) -> bool { + matches!( + &self.kind, + PutImageErrorKind::ImageDigestDoesNotMatchException(_) + ) + } + pub fn is_image_tag_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + PutImageErrorKind::ImageTagAlreadyExistsException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, PutImageErrorKind::InvalidParameterException(_)) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, PutImageErrorKind::KmsException(_)) + } + pub fn is_layers_not_found_exception(&self) -> bool { + matches!(&self.kind, PutImageErrorKind::LayersNotFoundException(_)) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, PutImageErrorKind::LimitExceededException(_)) + } + pub fn is_referenced_images_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutImageErrorKind::ReferencedImagesNotFoundException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutImageErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, PutImageErrorKind::ServerException(_)) + } +} +impl std::error::Error for PutImageError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutImageErrorKind::ImageAlreadyExistsException(_inner) => Some(_inner), + PutImageErrorKind::ImageDigestDoesNotMatchException(_inner) => Some(_inner), + PutImageErrorKind::ImageTagAlreadyExistsException(_inner) => Some(_inner), + PutImageErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutImageErrorKind::KmsException(_inner) => Some(_inner), + PutImageErrorKind::LayersNotFoundException(_inner) => Some(_inner), + PutImageErrorKind::LimitExceededException(_inner) => Some(_inner), + PutImageErrorKind::ReferencedImagesNotFoundException(_inner) => Some(_inner), + PutImageErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + PutImageErrorKind::ServerException(_inner) => Some(_inner), + PutImageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutImageScanningConfigurationError { + pub kind: PutImageScanningConfigurationErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutImageScanningConfigurationErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutImageScanningConfigurationError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutImageScanningConfigurationErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + PutImageScanningConfigurationErrorKind::RepositoryNotFoundException(_inner) => { + _inner.fmt(f) + } + PutImageScanningConfigurationErrorKind::ServerException(_inner) => _inner.fmt(f), + PutImageScanningConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutImageScanningConfigurationError { + fn code(&self) -> Option<&str> { + PutImageScanningConfigurationError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutImageScanningConfigurationError { + pub fn new(kind: PutImageScanningConfigurationErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutImageScanningConfigurationErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutImageScanningConfigurationErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutImageScanningConfigurationErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutImageScanningConfigurationErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + PutImageScanningConfigurationErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for PutImageScanningConfigurationError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutImageScanningConfigurationErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + PutImageScanningConfigurationErrorKind::RepositoryNotFoundException(_inner) => { + Some(_inner) + } + PutImageScanningConfigurationErrorKind::ServerException(_inner) => Some(_inner), + PutImageScanningConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutImageTagMutabilityError { + pub kind: PutImageTagMutabilityErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutImageTagMutabilityErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutImageTagMutabilityError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutImageTagMutabilityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutImageTagMutabilityErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + PutImageTagMutabilityErrorKind::ServerException(_inner) => _inner.fmt(f), + PutImageTagMutabilityErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutImageTagMutabilityError { + fn code(&self) -> Option<&str> { + PutImageTagMutabilityError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutImageTagMutabilityError { + pub fn new(kind: PutImageTagMutabilityErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutImageTagMutabilityErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutImageTagMutabilityErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutImageTagMutabilityErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutImageTagMutabilityErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + PutImageTagMutabilityErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for PutImageTagMutabilityError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutImageTagMutabilityErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutImageTagMutabilityErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + PutImageTagMutabilityErrorKind::ServerException(_inner) => Some(_inner), + PutImageTagMutabilityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutLifecyclePolicyError { + pub kind: PutLifecyclePolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutLifecyclePolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutLifecyclePolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutLifecyclePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + PutLifecyclePolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + PutLifecyclePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutLifecyclePolicyError { + fn code(&self) -> Option<&str> { + PutLifecyclePolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutLifecyclePolicyError { + pub fn new(kind: PutLifecyclePolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutLifecyclePolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutLifecyclePolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutLifecyclePolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutLifecyclePolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, PutLifecyclePolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for PutLifecyclePolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutLifecyclePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutLifecyclePolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + PutLifecyclePolicyErrorKind::ServerException(_inner) => Some(_inner), + PutLifecyclePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutRegistryPolicyError { + pub kind: PutRegistryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutRegistryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutRegistryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutRegistryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutRegistryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + PutRegistryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutRegistryPolicyError { + fn code(&self) -> Option<&str> { + PutRegistryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutRegistryPolicyError { + pub fn new(kind: PutRegistryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutRegistryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutRegistryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutRegistryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, PutRegistryPolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for PutRegistryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutRegistryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutRegistryPolicyErrorKind::ServerException(_inner) => Some(_inner), + PutRegistryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct PutReplicationConfigurationError { + pub kind: PutReplicationConfigurationErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum PutReplicationConfigurationErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ValidationException(crate::error::ValidationException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for PutReplicationConfigurationError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + PutReplicationConfigurationErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + PutReplicationConfigurationErrorKind::ServerException(_inner) => _inner.fmt(f), + PutReplicationConfigurationErrorKind::ValidationException(_inner) => _inner.fmt(f), + PutReplicationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for PutReplicationConfigurationError { + fn code(&self) -> Option<&str> { + PutReplicationConfigurationError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl PutReplicationConfigurationError { + pub fn new(kind: PutReplicationConfigurationErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: PutReplicationConfigurationErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: PutReplicationConfigurationErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutReplicationConfigurationErrorKind::InvalidParameterException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + PutReplicationConfigurationErrorKind::ServerException(_) + ) + } + pub fn is_validation_exception(&self) -> bool { + matches!( + &self.kind, + PutReplicationConfigurationErrorKind::ValidationException(_) + ) + } +} +impl std::error::Error for PutReplicationConfigurationError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + PutReplicationConfigurationErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutReplicationConfigurationErrorKind::ServerException(_inner) => Some(_inner), + PutReplicationConfigurationErrorKind::ValidationException(_inner) => Some(_inner), + PutReplicationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct SetRepositoryPolicyError { + pub kind: SetRepositoryPolicyErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum SetRepositoryPolicyErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for SetRepositoryPolicyError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + SetRepositoryPolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SetRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + SetRepositoryPolicyErrorKind::ServerException(_inner) => _inner.fmt(f), + SetRepositoryPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for SetRepositoryPolicyError { + fn code(&self) -> Option<&str> { + SetRepositoryPolicyError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl SetRepositoryPolicyError { + pub fn new(kind: SetRepositoryPolicyErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: SetRepositoryPolicyErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: SetRepositoryPolicyErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + SetRepositoryPolicyErrorKind::InvalidParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + SetRepositoryPolicyErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, SetRepositoryPolicyErrorKind::ServerException(_)) + } +} +impl std::error::Error for SetRepositoryPolicyError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + SetRepositoryPolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + SetRepositoryPolicyErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + SetRepositoryPolicyErrorKind::ServerException(_inner) => Some(_inner), + SetRepositoryPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct StartImageScanError { + pub kind: StartImageScanErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum StartImageScanErrorKind { + ImageNotFoundException(crate::error::ImageNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + UnsupportedImageTypeException(crate::error::UnsupportedImageTypeException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for StartImageScanError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + StartImageScanErrorKind::ImageNotFoundException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::ServerException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::UnsupportedImageTypeException(_inner) => _inner.fmt(f), + StartImageScanErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for StartImageScanError { + fn code(&self) -> Option<&str> { + StartImageScanError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl StartImageScanError { + pub fn new(kind: StartImageScanErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: StartImageScanErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: StartImageScanErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_image_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StartImageScanErrorKind::ImageNotFoundException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + StartImageScanErrorKind::InvalidParameterException(_) + ) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + StartImageScanErrorKind::LimitExceededException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StartImageScanErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, StartImageScanErrorKind::ServerException(_)) + } + pub fn is_unsupported_image_type_exception(&self) -> bool { + matches!( + &self.kind, + StartImageScanErrorKind::UnsupportedImageTypeException(_) + ) + } +} +impl std::error::Error for StartImageScanError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + StartImageScanErrorKind::ImageNotFoundException(_inner) => Some(_inner), + StartImageScanErrorKind::InvalidParameterException(_inner) => Some(_inner), + StartImageScanErrorKind::LimitExceededException(_inner) => Some(_inner), + StartImageScanErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + StartImageScanErrorKind::ServerException(_inner) => Some(_inner), + StartImageScanErrorKind::UnsupportedImageTypeException(_inner) => Some(_inner), + StartImageScanErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct StartLifecyclePolicyPreviewError { + pub kind: StartLifecyclePolicyPreviewErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum StartLifecyclePolicyPreviewErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + LifecyclePolicyNotFoundException(crate::error::LifecyclePolicyNotFoundException), + LifecyclePolicyPreviewInProgressException( + crate::error::LifecyclePolicyPreviewInProgressException, + ), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for StartLifecyclePolicyPreviewError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + StartLifecyclePolicyPreviewErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyNotFoundException(_inner) => { + _inner.fmt(f) + } + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewInProgressException( + _inner, + ) => _inner.fmt(f), + StartLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_inner) => { + _inner.fmt(f) + } + StartLifecyclePolicyPreviewErrorKind::ServerException(_inner) => _inner.fmt(f), + StartLifecyclePolicyPreviewErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for StartLifecyclePolicyPreviewError { + fn code(&self) -> Option<&str> { + StartLifecyclePolicyPreviewError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl StartLifecyclePolicyPreviewError { + pub fn new(kind: StartLifecyclePolicyPreviewErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: StartLifecyclePolicyPreviewErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: StartLifecyclePolicyPreviewErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + StartLifecyclePolicyPreviewErrorKind::InvalidParameterException(_) + ) + } + pub fn is_lifecycle_policy_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyNotFoundException(_) + ) + } + pub fn is_lifecycle_policy_preview_in_progress_exception(&self) -> bool { + matches!( + &self.kind, + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewInProgressException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StartLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + StartLifecyclePolicyPreviewErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for StartLifecyclePolicyPreviewError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + StartLifecyclePolicyPreviewErrorKind::InvalidParameterException(_inner) => Some(_inner), + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyNotFoundException(_inner) => { + Some(_inner) + } + StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewInProgressException( + _inner, + ) => Some(_inner), + StartLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(_inner) => { + Some(_inner) + } + StartLifecyclePolicyPreviewErrorKind::ServerException(_inner) => Some(_inner), + StartLifecyclePolicyPreviewErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct TagResourceError { + pub kind: TagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum TagResourceErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + InvalidTagParameterException(crate::error::InvalidTagParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + TooManyTagsException(crate::error::TooManyTagsException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for TagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidTagParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TooManyTagsException(_inner) => _inner.fmt(f), + TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for TagResourceError { + fn code(&self) -> Option<&str> { + TagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl TagResourceError { + pub fn new(kind: TagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: TagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: TagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_tag_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidTagParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ServerException(_)) + } + pub fn is_too_many_tags_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::TooManyTagsException(_)) + } +} +impl std::error::Error for TagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagResourceErrorKind::InvalidTagParameterException(_inner) => Some(_inner), + TagResourceErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::ServerException(_inner) => Some(_inner), + TagResourceErrorKind::TooManyTagsException(_inner) => Some(_inner), + TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UntagResourceError { + pub kind: UntagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UntagResourceErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + InvalidTagParameterException(crate::error::InvalidTagParameterException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + TooManyTagsException(crate::error::TooManyTagsException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UntagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidTagParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TooManyTagsException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UntagResourceError { + fn code(&self) -> Option<&str> { + UntagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UntagResourceError { + pub fn new(kind: UntagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UntagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UntagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_tag_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidTagParameterException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ServerException(_)) + } + pub fn is_too_many_tags_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::TooManyTagsException(_)) + } +} +impl std::error::Error for UntagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidTagParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::ServerException(_inner) => Some(_inner), + UntagResourceErrorKind::TooManyTagsException(_inner) => Some(_inner), + UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UploadLayerPartError { + pub kind: UploadLayerPartErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UploadLayerPartErrorKind { + InvalidLayerPartException(crate::error::InvalidLayerPartException), + InvalidParameterException(crate::error::InvalidParameterException), + KmsException(crate::error::KmsException), + LimitExceededException(crate::error::LimitExceededException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + ServerException(crate::error::ServerException), + UploadNotFoundException(crate::error::UploadNotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UploadLayerPartError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UploadLayerPartErrorKind::InvalidLayerPartException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::KmsException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::RepositoryNotFoundException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::ServerException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::UploadNotFoundException(_inner) => _inner.fmt(f), + UploadLayerPartErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UploadLayerPartError { + fn code(&self) -> Option<&str> { + UploadLayerPartError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UploadLayerPartError { + pub fn new(kind: UploadLayerPartErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UploadLayerPartErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UploadLayerPartErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_layer_part_exception(&self) -> bool { + matches!( + &self.kind, + UploadLayerPartErrorKind::InvalidLayerPartException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UploadLayerPartErrorKind::InvalidParameterException(_) + ) + } + pub fn is_kms_exception(&self) -> bool { + matches!(&self.kind, UploadLayerPartErrorKind::KmsException(_)) + } + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UploadLayerPartErrorKind::LimitExceededException(_) + ) + } + pub fn is_repository_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UploadLayerPartErrorKind::RepositoryNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UploadLayerPartErrorKind::ServerException(_)) + } + pub fn is_upload_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UploadLayerPartErrorKind::UploadNotFoundException(_) + ) + } +} +impl std::error::Error for UploadLayerPartError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UploadLayerPartErrorKind::InvalidLayerPartException(_inner) => Some(_inner), + UploadLayerPartErrorKind::InvalidParameterException(_inner) => Some(_inner), + UploadLayerPartErrorKind::KmsException(_inner) => Some(_inner), + UploadLayerPartErrorKind::LimitExceededException(_inner) => Some(_inner), + UploadLayerPartErrorKind::RepositoryNotFoundException(_inner) => Some(_inner), + UploadLayerPartErrorKind::ServerException(_inner) => Some(_inner), + UploadLayerPartErrorKind::UploadNotFoundException(_inner) => Some(_inner), + UploadLayerPartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +///

            The upload could not be found, or the specified upload ID is not valid for this +/// repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UploadNotFoundException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for UploadNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UploadNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl UploadNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for UploadNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "UploadNotFoundException")?; + if let Some(inner_1) = &self.message { + write!(f, ": {}", inner_1)?; + } + Ok(()) + } +} +impl std::error::Error for UploadNotFoundException {} +/// See [`UploadNotFoundException`](crate::error::UploadNotFoundException) +pub mod upload_not_found_exception { + /// A builder for [`UploadNotFoundException`](crate::error::UploadNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`UploadNotFoundException`](crate::error::UploadNotFoundException) + pub fn build(self) -> crate::error::UploadNotFoundException { + crate::error::UploadNotFoundException { + message: self.message, + } + } + } +} +impl UploadNotFoundException { + /// Creates a new builder-style object to manufacture [`UploadNotFoundException`](crate::error::UploadNotFoundException) + pub fn builder() -> crate::error::upload_not_found_exception::Builder { + crate::error::upload_not_found_exception::Builder::default() + } +} + +///

            These errors are usually caused by a server-side issue.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServerException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for ServerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ServerException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ServerException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ServerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ServerException")?; + if let Some(inner_2) = &self.message { + write!(f, ": {}", inner_2)?; + } + Ok(()) + } +} +impl std::error::Error for ServerException {} +/// See [`ServerException`](crate::error::ServerException) +pub mod server_exception { + /// A builder for [`ServerException`](crate::error::ServerException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ServerException`](crate::error::ServerException) + pub fn build(self) -> crate::error::ServerException { + crate::error::ServerException { + message: self.message, + } + } + } +} +impl ServerException { + /// Creates a new builder-style object to manufacture [`ServerException`](crate::error::ServerException) + pub fn builder() -> crate::error::server_exception::Builder { + crate::error::server_exception::Builder::default() + } +} + +///

            The specified repository could not be found. Check the spelling of the specified +/// repository and ensure that you are performing operations on the correct registry.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RepositoryNotFoundException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for RepositoryNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RepositoryNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl RepositoryNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for RepositoryNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "RepositoryNotFoundException")?; + if let Some(inner_3) = &self.message { + write!(f, ": {}", inner_3)?; + } + Ok(()) + } +} +impl std::error::Error for RepositoryNotFoundException {} +/// See [`RepositoryNotFoundException`](crate::error::RepositoryNotFoundException) +pub mod repository_not_found_exception { + /// A builder for [`RepositoryNotFoundException`](crate::error::RepositoryNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`RepositoryNotFoundException`](crate::error::RepositoryNotFoundException) + pub fn build(self) -> crate::error::RepositoryNotFoundException { + crate::error::RepositoryNotFoundException { + message: self.message, + } + } + } +} +impl RepositoryNotFoundException { + /// Creates a new builder-style object to manufacture [`RepositoryNotFoundException`](crate::error::RepositoryNotFoundException) + pub fn builder() -> crate::error::repository_not_found_exception::Builder { + crate::error::repository_not_found_exception::Builder::default() + } +} + +///

            The operation did not succeed because it would have exceeded a service limit for your +/// account. For more information, see Amazon ECR Service Quotas in +/// the Amazon Elastic Container Registry User Guide.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for LimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LimitExceededException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LimitExceededException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LimitExceededException")?; + if let Some(inner_4) = &self.message { + write!(f, ": {}", inner_4)?; + } + Ok(()) + } +} +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { + message: self.message, + } + } + } +} +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() + } +} + +///

            The operation failed due to a KMS exception.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsException { + pub message: std::option::Option, + ///

            The error code returned by AWS KMS.

            + pub kms_error: std::option::Option, +} +impl std::fmt::Debug for KmsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("KmsException"); + formatter.field("message", &self.message); + formatter.field("kms_error", &self.kms_error); + formatter.finish() + } +} +impl KmsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for KmsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "KmsException")?; + if let Some(inner_5) = &self.message { + write!(f, ": {}", inner_5)?; + } + Ok(()) + } +} +impl std::error::Error for KmsException {} +/// See [`KmsException`](crate::error::KmsException) +pub mod kms_exception { + /// A builder for [`KmsException`](crate::error::KmsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + pub(crate) kms_error: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + ///

            The error code returned by AWS KMS.

            + pub fn kms_error(mut self, input: impl Into) -> Self { + self.kms_error = Some(input.into()); + self + } + pub fn set_kms_error(mut self, input: std::option::Option) -> Self { + self.kms_error = input; + self + } + /// Consumes the builder and constructs a [`KmsException`](crate::error::KmsException) + pub fn build(self) -> crate::error::KmsException { + crate::error::KmsException { + message: self.message, + kms_error: self.kms_error, + } + } + } +} +impl KmsException { + /// Creates a new builder-style object to manufacture [`KmsException`](crate::error::KmsException) + pub fn builder() -> crate::error::kms_exception::Builder { + crate::error::kms_exception::Builder::default() + } +} + +///

            The specified parameter is invalid. Review the available parameters for the API +/// request.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidParameterException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidParameterException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidParameterException")?; + if let Some(inner_6) = &self.message { + write!(f, ": {}", inner_6)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { + message: self.message, + } + } + } +} +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() + } +} + +///

            The layer part size is not valid, or the first byte specified is not consecutive to +/// the last byte of a previous layer part upload.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidLayerPartException { + ///

            The registry ID associated with the exception.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the exception.

            + pub repository_name: std::option::Option, + ///

            The upload ID associated with the exception.

            + pub upload_id: std::option::Option, + ///

            The last valid byte received from the layer part upload that is associated with the + /// exception.

            + pub last_valid_byte_received: std::option::Option, + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidLayerPartException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidLayerPartException"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("upload_id", &self.upload_id); + formatter.field("last_valid_byte_received", &self.last_valid_byte_received); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidLayerPartException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidLayerPartException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidLayerPartException")?; + if let Some(inner_7) = &self.message { + write!(f, ": {}", inner_7)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidLayerPartException {} +/// See [`InvalidLayerPartException`](crate::error::InvalidLayerPartException) +pub mod invalid_layer_part_exception { + /// A builder for [`InvalidLayerPartException`](crate::error::InvalidLayerPartException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) upload_id: std::option::Option, + pub(crate) last_valid_byte_received: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the exception.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the exception.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The upload ID associated with the exception.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + ///

            The last valid byte received from the layer part upload that is associated with the + /// exception.

            + pub fn last_valid_byte_received(mut self, input: i64) -> Self { + self.last_valid_byte_received = Some(input); + self + } + pub fn set_last_valid_byte_received(mut self, input: std::option::Option) -> Self { + self.last_valid_byte_received = input; + self + } + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidLayerPartException`](crate::error::InvalidLayerPartException) + pub fn build(self) -> crate::error::InvalidLayerPartException { + crate::error::InvalidLayerPartException { + registry_id: self.registry_id, + repository_name: self.repository_name, + upload_id: self.upload_id, + last_valid_byte_received: self.last_valid_byte_received, + message: self.message, + } + } + } +} +impl InvalidLayerPartException { + /// Creates a new builder-style object to manufacture [`InvalidLayerPartException`](crate::error::InvalidLayerPartException) + pub fn builder() -> crate::error::invalid_layer_part_exception::Builder { + crate::error::invalid_layer_part_exception::Builder::default() + } +} + +///

            The list of tags on the repository is over the limit. The maximum number of tags that +/// can be applied to a repository is 50.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyTagsException { + pub message: std::option::Option, +} +impl std::fmt::Debug for TooManyTagsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TooManyTagsException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl TooManyTagsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for TooManyTagsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "TooManyTagsException")?; + if let Some(inner_8) = &self.message { + write!(f, ": {}", inner_8)?; + } + Ok(()) + } +} +impl std::error::Error for TooManyTagsException {} +/// See [`TooManyTagsException`](crate::error::TooManyTagsException) +pub mod too_many_tags_exception { + /// A builder for [`TooManyTagsException`](crate::error::TooManyTagsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`TooManyTagsException`](crate::error::TooManyTagsException) + pub fn build(self) -> crate::error::TooManyTagsException { + crate::error::TooManyTagsException { + message: self.message, + } + } + } +} +impl TooManyTagsException { + /// Creates a new builder-style object to manufacture [`TooManyTagsException`](crate::error::TooManyTagsException) + pub fn builder() -> crate::error::too_many_tags_exception::Builder { + crate::error::too_many_tags_exception::Builder::default() + } +} + +///

            An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have +/// a maximum length of 256 characters.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidTagParameterException { + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidTagParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidTagParameterException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidTagParameterException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidTagParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidTagParameterException")?; + if let Some(inner_9) = &self.message { + write!(f, ": {}", inner_9)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidTagParameterException {} +/// See [`InvalidTagParameterException`](crate::error::InvalidTagParameterException) +pub mod invalid_tag_parameter_exception { + /// A builder for [`InvalidTagParameterException`](crate::error::InvalidTagParameterException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidTagParameterException`](crate::error::InvalidTagParameterException) + pub fn build(self) -> crate::error::InvalidTagParameterException { + crate::error::InvalidTagParameterException { + message: self.message, + } + } + } +} +impl InvalidTagParameterException { + /// Creates a new builder-style object to manufacture [`InvalidTagParameterException`](crate::error::InvalidTagParameterException) + pub fn builder() -> crate::error::invalid_tag_parameter_exception::Builder { + crate::error::invalid_tag_parameter_exception::Builder::default() + } +} + +///

            The previous lifecycle policy preview request has not completed. Wait and try +/// again.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyPreviewInProgressException { + pub message: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyPreviewInProgressException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyPreviewInProgressException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LifecyclePolicyPreviewInProgressException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LifecyclePolicyPreviewInProgressException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LifecyclePolicyPreviewInProgressException")?; + if let Some(inner_10) = &self.message { + write!(f, ": {}", inner_10)?; + } + Ok(()) + } +} +impl std::error::Error for LifecyclePolicyPreviewInProgressException {} +/// See [`LifecyclePolicyPreviewInProgressException`](crate::error::LifecyclePolicyPreviewInProgressException) +pub mod lifecycle_policy_preview_in_progress_exception { + /// A builder for [`LifecyclePolicyPreviewInProgressException`](crate::error::LifecyclePolicyPreviewInProgressException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyPreviewInProgressException`](crate::error::LifecyclePolicyPreviewInProgressException) + pub fn build(self) -> crate::error::LifecyclePolicyPreviewInProgressException { + crate::error::LifecyclePolicyPreviewInProgressException { + message: self.message, + } + } + } +} +impl LifecyclePolicyPreviewInProgressException { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyPreviewInProgressException`](crate::error::LifecyclePolicyPreviewInProgressException) + pub fn builder() -> crate::error::lifecycle_policy_preview_in_progress_exception::Builder { + crate::error::lifecycle_policy_preview_in_progress_exception::Builder::default() + } +} + +///

            The lifecycle policy could not be found, and no policy is set to the +/// repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LifecyclePolicyNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LifecyclePolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LifecyclePolicyNotFoundException")?; + if let Some(inner_11) = &self.message { + write!(f, ": {}", inner_11)?; + } + Ok(()) + } +} +impl std::error::Error for LifecyclePolicyNotFoundException {} +/// See [`LifecyclePolicyNotFoundException`](crate::error::LifecyclePolicyNotFoundException) +pub mod lifecycle_policy_not_found_exception { + /// A builder for [`LifecyclePolicyNotFoundException`](crate::error::LifecyclePolicyNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyNotFoundException`](crate::error::LifecyclePolicyNotFoundException) + pub fn build(self) -> crate::error::LifecyclePolicyNotFoundException { + crate::error::LifecyclePolicyNotFoundException { + message: self.message, + } + } + } +} +impl LifecyclePolicyNotFoundException { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyNotFoundException`](crate::error::LifecyclePolicyNotFoundException) + pub fn builder() -> crate::error::lifecycle_policy_not_found_exception::Builder { + crate::error::lifecycle_policy_not_found_exception::Builder::default() + } +} + +///

            The image is of a type that cannot be scanned.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedImageTypeException { + pub message: std::option::Option, +} +impl std::fmt::Debug for UnsupportedImageTypeException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UnsupportedImageTypeException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl UnsupportedImageTypeException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for UnsupportedImageTypeException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "UnsupportedImageTypeException")?; + if let Some(inner_12) = &self.message { + write!(f, ": {}", inner_12)?; + } + Ok(()) + } +} +impl std::error::Error for UnsupportedImageTypeException {} +/// See [`UnsupportedImageTypeException`](crate::error::UnsupportedImageTypeException) +pub mod unsupported_image_type_exception { + /// A builder for [`UnsupportedImageTypeException`](crate::error::UnsupportedImageTypeException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`UnsupportedImageTypeException`](crate::error::UnsupportedImageTypeException) + pub fn build(self) -> crate::error::UnsupportedImageTypeException { + crate::error::UnsupportedImageTypeException { + message: self.message, + } + } + } +} +impl UnsupportedImageTypeException { + /// Creates a new builder-style object to manufacture [`UnsupportedImageTypeException`](crate::error::UnsupportedImageTypeException) + pub fn builder() -> crate::error::unsupported_image_type_exception::Builder { + crate::error::unsupported_image_type_exception::Builder::default() + } +} + +///

            The image requested does not exist in the specified repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ImageNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ImageNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ImageNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ImageNotFoundException")?; + if let Some(inner_13) = &self.message { + write!(f, ": {}", inner_13)?; + } + Ok(()) + } +} +impl std::error::Error for ImageNotFoundException {} +/// See [`ImageNotFoundException`](crate::error::ImageNotFoundException) +pub mod image_not_found_exception { + /// A builder for [`ImageNotFoundException`](crate::error::ImageNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ImageNotFoundException`](crate::error::ImageNotFoundException) + pub fn build(self) -> crate::error::ImageNotFoundException { + crate::error::ImageNotFoundException { + message: self.message, + } + } + } +} +impl ImageNotFoundException { + /// Creates a new builder-style object to manufacture [`ImageNotFoundException`](crate::error::ImageNotFoundException) + pub fn builder() -> crate::error::image_not_found_exception::Builder { + crate::error::image_not_found_exception::Builder::default() + } +} + +///

            There was an exception validating this request.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ValidationException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ValidationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ValidationException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ValidationException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ValidationException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ValidationException")?; + if let Some(inner_14) = &self.message { + write!(f, ": {}", inner_14)?; + } + Ok(()) + } +} +impl std::error::Error for ValidationException {} +/// See [`ValidationException`](crate::error::ValidationException) +pub mod validation_exception { + /// A builder for [`ValidationException`](crate::error::ValidationException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException) + pub fn build(self) -> crate::error::ValidationException { + crate::error::ValidationException { + message: self.message, + } + } + } +} +impl ValidationException { + /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException) + pub fn builder() -> crate::error::validation_exception::Builder { + crate::error::validation_exception::Builder::default() + } +} + +///

            The manifest list is referencing an image that does not exist.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReferencedImagesNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ReferencedImagesNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ReferencedImagesNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ReferencedImagesNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ReferencedImagesNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ReferencedImagesNotFoundException")?; + if let Some(inner_15) = &self.message { + write!(f, ": {}", inner_15)?; + } + Ok(()) + } +} +impl std::error::Error for ReferencedImagesNotFoundException {} +/// See [`ReferencedImagesNotFoundException`](crate::error::ReferencedImagesNotFoundException) +pub mod referenced_images_not_found_exception { + /// A builder for [`ReferencedImagesNotFoundException`](crate::error::ReferencedImagesNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ReferencedImagesNotFoundException`](crate::error::ReferencedImagesNotFoundException) + pub fn build(self) -> crate::error::ReferencedImagesNotFoundException { + crate::error::ReferencedImagesNotFoundException { + message: self.message, + } + } + } +} +impl ReferencedImagesNotFoundException { + /// Creates a new builder-style object to manufacture [`ReferencedImagesNotFoundException`](crate::error::ReferencedImagesNotFoundException) + pub fn builder() -> crate::error::referenced_images_not_found_exception::Builder { + crate::error::referenced_images_not_found_exception::Builder::default() + } +} + +///

            The specified layers could not be found, or the specified layer is not valid for this +/// repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LayersNotFoundException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for LayersNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LayersNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LayersNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LayersNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LayersNotFoundException")?; + if let Some(inner_16) = &self.message { + write!(f, ": {}", inner_16)?; + } + Ok(()) + } +} +impl std::error::Error for LayersNotFoundException {} +/// See [`LayersNotFoundException`](crate::error::LayersNotFoundException) +pub mod layers_not_found_exception { + /// A builder for [`LayersNotFoundException`](crate::error::LayersNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LayersNotFoundException`](crate::error::LayersNotFoundException) + pub fn build(self) -> crate::error::LayersNotFoundException { + crate::error::LayersNotFoundException { + message: self.message, + } + } + } +} +impl LayersNotFoundException { + /// Creates a new builder-style object to manufacture [`LayersNotFoundException`](crate::error::LayersNotFoundException) + pub fn builder() -> crate::error::layers_not_found_exception::Builder { + crate::error::layers_not_found_exception::Builder::default() + } +} + +///

            The specified image is tagged with a tag that already exists. The repository is +/// configured for tag immutability.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageTagAlreadyExistsException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ImageTagAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageTagAlreadyExistsException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ImageTagAlreadyExistsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ImageTagAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ImageTagAlreadyExistsException")?; + if let Some(inner_17) = &self.message { + write!(f, ": {}", inner_17)?; + } + Ok(()) + } +} +impl std::error::Error for ImageTagAlreadyExistsException {} +/// See [`ImageTagAlreadyExistsException`](crate::error::ImageTagAlreadyExistsException) +pub mod image_tag_already_exists_exception { + /// A builder for [`ImageTagAlreadyExistsException`](crate::error::ImageTagAlreadyExistsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ImageTagAlreadyExistsException`](crate::error::ImageTagAlreadyExistsException) + pub fn build(self) -> crate::error::ImageTagAlreadyExistsException { + crate::error::ImageTagAlreadyExistsException { + message: self.message, + } + } + } +} +impl ImageTagAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ImageTagAlreadyExistsException`](crate::error::ImageTagAlreadyExistsException) + pub fn builder() -> crate::error::image_tag_already_exists_exception::Builder { + crate::error::image_tag_already_exists_exception::Builder::default() + } +} + +///

            The specified image digest does not match the digest that Amazon ECR calculated for the +/// image.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageDigestDoesNotMatchException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ImageDigestDoesNotMatchException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageDigestDoesNotMatchException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ImageDigestDoesNotMatchException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ImageDigestDoesNotMatchException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ImageDigestDoesNotMatchException")?; + if let Some(inner_18) = &self.message { + write!(f, ": {}", inner_18)?; + } + Ok(()) + } +} +impl std::error::Error for ImageDigestDoesNotMatchException {} +/// See [`ImageDigestDoesNotMatchException`](crate::error::ImageDigestDoesNotMatchException) +pub mod image_digest_does_not_match_exception { + /// A builder for [`ImageDigestDoesNotMatchException`](crate::error::ImageDigestDoesNotMatchException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ImageDigestDoesNotMatchException`](crate::error::ImageDigestDoesNotMatchException) + pub fn build(self) -> crate::error::ImageDigestDoesNotMatchException { + crate::error::ImageDigestDoesNotMatchException { + message: self.message, + } + } + } +} +impl ImageDigestDoesNotMatchException { + /// Creates a new builder-style object to manufacture [`ImageDigestDoesNotMatchException`](crate::error::ImageDigestDoesNotMatchException) + pub fn builder() -> crate::error::image_digest_does_not_match_exception::Builder { + crate::error::image_digest_does_not_match_exception::Builder::default() + } +} + +///

            The specified image has already been pushed, and there were no changes to the manifest +/// or image tag after the last push.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageAlreadyExistsException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for ImageAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageAlreadyExistsException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ImageAlreadyExistsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ImageAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ImageAlreadyExistsException")?; + if let Some(inner_19) = &self.message { + write!(f, ": {}", inner_19)?; + } + Ok(()) + } +} +impl std::error::Error for ImageAlreadyExistsException {} +/// See [`ImageAlreadyExistsException`](crate::error::ImageAlreadyExistsException) +pub mod image_already_exists_exception { + /// A builder for [`ImageAlreadyExistsException`](crate::error::ImageAlreadyExistsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ImageAlreadyExistsException`](crate::error::ImageAlreadyExistsException) + pub fn build(self) -> crate::error::ImageAlreadyExistsException { + crate::error::ImageAlreadyExistsException { + message: self.message, + } + } + } +} +impl ImageAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ImageAlreadyExistsException`](crate::error::ImageAlreadyExistsException) + pub fn builder() -> crate::error::image_already_exists_exception::Builder { + crate::error::image_already_exists_exception::Builder::default() + } +} + +///

            The specified repository and registry combination does not have an associated +/// repository policy.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RepositoryPolicyNotFoundException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for RepositoryPolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RepositoryPolicyNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl RepositoryPolicyNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for RepositoryPolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "RepositoryPolicyNotFoundException")?; + if let Some(inner_20) = &self.message { + write!(f, ": {}", inner_20)?; + } + Ok(()) + } +} +impl std::error::Error for RepositoryPolicyNotFoundException {} +/// See [`RepositoryPolicyNotFoundException`](crate::error::RepositoryPolicyNotFoundException) +pub mod repository_policy_not_found_exception { + /// A builder for [`RepositoryPolicyNotFoundException`](crate::error::RepositoryPolicyNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`RepositoryPolicyNotFoundException`](crate::error::RepositoryPolicyNotFoundException) + pub fn build(self) -> crate::error::RepositoryPolicyNotFoundException { + crate::error::RepositoryPolicyNotFoundException { + message: self.message, + } + } + } +} +impl RepositoryPolicyNotFoundException { + /// Creates a new builder-style object to manufacture [`RepositoryPolicyNotFoundException`](crate::error::RepositoryPolicyNotFoundException) + pub fn builder() -> crate::error::repository_policy_not_found_exception::Builder { + crate::error::repository_policy_not_found_exception::Builder::default() + } +} + +///

            The registry doesn't have an associated registry policy.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RegistryPolicyNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for RegistryPolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RegistryPolicyNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl RegistryPolicyNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for RegistryPolicyNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "RegistryPolicyNotFoundException")?; + if let Some(inner_21) = &self.message { + write!(f, ": {}", inner_21)?; + } + Ok(()) + } +} +impl std::error::Error for RegistryPolicyNotFoundException {} +/// See [`RegistryPolicyNotFoundException`](crate::error::RegistryPolicyNotFoundException) +pub mod registry_policy_not_found_exception { + /// A builder for [`RegistryPolicyNotFoundException`](crate::error::RegistryPolicyNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`RegistryPolicyNotFoundException`](crate::error::RegistryPolicyNotFoundException) + pub fn build(self) -> crate::error::RegistryPolicyNotFoundException { + crate::error::RegistryPolicyNotFoundException { + message: self.message, + } + } + } +} +impl RegistryPolicyNotFoundException { + /// Creates a new builder-style object to manufacture [`RegistryPolicyNotFoundException`](crate::error::RegistryPolicyNotFoundException) + pub fn builder() -> crate::error::registry_policy_not_found_exception::Builder { + crate::error::registry_policy_not_found_exception::Builder::default() + } +} + +///

            There is no dry run for this repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyPreviewNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyPreviewNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyPreviewNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LifecyclePolicyPreviewNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LifecyclePolicyPreviewNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LifecyclePolicyPreviewNotFoundException")?; + if let Some(inner_22) = &self.message { + write!(f, ": {}", inner_22)?; + } + Ok(()) + } +} +impl std::error::Error for LifecyclePolicyPreviewNotFoundException {} +/// See [`LifecyclePolicyPreviewNotFoundException`](crate::error::LifecyclePolicyPreviewNotFoundException) +pub mod lifecycle_policy_preview_not_found_exception { + /// A builder for [`LifecyclePolicyPreviewNotFoundException`](crate::error::LifecyclePolicyPreviewNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyPreviewNotFoundException`](crate::error::LifecyclePolicyPreviewNotFoundException) + pub fn build(self) -> crate::error::LifecyclePolicyPreviewNotFoundException { + crate::error::LifecyclePolicyPreviewNotFoundException { + message: self.message, + } + } + } +} +impl LifecyclePolicyPreviewNotFoundException { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyPreviewNotFoundException`](crate::error::LifecyclePolicyPreviewNotFoundException) + pub fn builder() -> crate::error::lifecycle_policy_preview_not_found_exception::Builder { + crate::error::lifecycle_policy_preview_not_found_exception::Builder::default() + } +} + +///

            The specified layer is not available because it is not associated with an image. +/// Unassociated image layers may be cleaned up at any time.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LayerInaccessibleException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for LayerInaccessibleException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LayerInaccessibleException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LayerInaccessibleException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LayerInaccessibleException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LayerInaccessibleException")?; + if let Some(inner_23) = &self.message { + write!(f, ": {}", inner_23)?; + } + Ok(()) + } +} +impl std::error::Error for LayerInaccessibleException {} +/// See [`LayerInaccessibleException`](crate::error::LayerInaccessibleException) +pub mod layer_inaccessible_exception { + /// A builder for [`LayerInaccessibleException`](crate::error::LayerInaccessibleException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LayerInaccessibleException`](crate::error::LayerInaccessibleException) + pub fn build(self) -> crate::error::LayerInaccessibleException { + crate::error::LayerInaccessibleException { + message: self.message, + } + } + } +} +impl LayerInaccessibleException { + /// Creates a new builder-style object to manufacture [`LayerInaccessibleException`](crate::error::LayerInaccessibleException) + pub fn builder() -> crate::error::layer_inaccessible_exception::Builder { + crate::error::layer_inaccessible_exception::Builder::default() + } +} + +///

            The specified image scan could not be found. Ensure that image scanning is enabled on +/// the repository and try again.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ScanNotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ScanNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ScanNotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ScanNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ScanNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ScanNotFoundException")?; + if let Some(inner_24) = &self.message { + write!(f, ": {}", inner_24)?; + } + Ok(()) + } +} +impl std::error::Error for ScanNotFoundException {} +/// See [`ScanNotFoundException`](crate::error::ScanNotFoundException) +pub mod scan_not_found_exception { + /// A builder for [`ScanNotFoundException`](crate::error::ScanNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ScanNotFoundException`](crate::error::ScanNotFoundException) + pub fn build(self) -> crate::error::ScanNotFoundException { + crate::error::ScanNotFoundException { + message: self.message, + } + } + } +} +impl ScanNotFoundException { + /// Creates a new builder-style object to manufacture [`ScanNotFoundException`](crate::error::ScanNotFoundException) + pub fn builder() -> crate::error::scan_not_found_exception::Builder { + crate::error::scan_not_found_exception::Builder::default() + } +} + +///

            The specified repository contains images. To delete a repository that contains images, +/// you must force the deletion with the force parameter.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RepositoryNotEmptyException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for RepositoryNotEmptyException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RepositoryNotEmptyException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl RepositoryNotEmptyException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for RepositoryNotEmptyException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "RepositoryNotEmptyException")?; + if let Some(inner_25) = &self.message { + write!(f, ": {}", inner_25)?; + } + Ok(()) + } +} +impl std::error::Error for RepositoryNotEmptyException {} +/// See [`RepositoryNotEmptyException`](crate::error::RepositoryNotEmptyException) +pub mod repository_not_empty_exception { + /// A builder for [`RepositoryNotEmptyException`](crate::error::RepositoryNotEmptyException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`RepositoryNotEmptyException`](crate::error::RepositoryNotEmptyException) + pub fn build(self) -> crate::error::RepositoryNotEmptyException { + crate::error::RepositoryNotEmptyException { + message: self.message, + } + } + } +} +impl RepositoryNotEmptyException { + /// Creates a new builder-style object to manufacture [`RepositoryNotEmptyException`](crate::error::RepositoryNotEmptyException) + pub fn builder() -> crate::error::repository_not_empty_exception::Builder { + crate::error::repository_not_empty_exception::Builder::default() + } +} + +///

            The specified repository already exists in the specified registry.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RepositoryAlreadyExistsException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for RepositoryAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RepositoryAlreadyExistsException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl RepositoryAlreadyExistsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for RepositoryAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "RepositoryAlreadyExistsException")?; + if let Some(inner_26) = &self.message { + write!(f, ": {}", inner_26)?; + } + Ok(()) + } +} +impl std::error::Error for RepositoryAlreadyExistsException {} +/// See [`RepositoryAlreadyExistsException`](crate::error::RepositoryAlreadyExistsException) +pub mod repository_already_exists_exception { + /// A builder for [`RepositoryAlreadyExistsException`](crate::error::RepositoryAlreadyExistsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`RepositoryAlreadyExistsException`](crate::error::RepositoryAlreadyExistsException) + pub fn build(self) -> crate::error::RepositoryAlreadyExistsException { + crate::error::RepositoryAlreadyExistsException { + message: self.message, + } + } + } +} +impl RepositoryAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`RepositoryAlreadyExistsException`](crate::error::RepositoryAlreadyExistsException) + pub fn builder() -> crate::error::repository_already_exists_exception::Builder { + crate::error::repository_already_exists_exception::Builder::default() + } +} + +///

            Layer parts must be at least 5 MiB in size.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LayerPartTooSmallException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for LayerPartTooSmallException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LayerPartTooSmallException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LayerPartTooSmallException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LayerPartTooSmallException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LayerPartTooSmallException")?; + if let Some(inner_27) = &self.message { + write!(f, ": {}", inner_27)?; + } + Ok(()) + } +} +impl std::error::Error for LayerPartTooSmallException {} +/// See [`LayerPartTooSmallException`](crate::error::LayerPartTooSmallException) +pub mod layer_part_too_small_exception { + /// A builder for [`LayerPartTooSmallException`](crate::error::LayerPartTooSmallException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LayerPartTooSmallException`](crate::error::LayerPartTooSmallException) + pub fn build(self) -> crate::error::LayerPartTooSmallException { + crate::error::LayerPartTooSmallException { + message: self.message, + } + } + } +} +impl LayerPartTooSmallException { + /// Creates a new builder-style object to manufacture [`LayerPartTooSmallException`](crate::error::LayerPartTooSmallException) + pub fn builder() -> crate::error::layer_part_too_small_exception::Builder { + crate::error::layer_part_too_small_exception::Builder::default() + } +} + +///

            The image layer already exists in the associated repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LayerAlreadyExistsException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for LayerAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LayerAlreadyExistsException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl LayerAlreadyExistsException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for LayerAlreadyExistsException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "LayerAlreadyExistsException")?; + if let Some(inner_28) = &self.message { + write!(f, ": {}", inner_28)?; + } + Ok(()) + } +} +impl std::error::Error for LayerAlreadyExistsException {} +/// See [`LayerAlreadyExistsException`](crate::error::LayerAlreadyExistsException) +pub mod layer_already_exists_exception { + /// A builder for [`LayerAlreadyExistsException`](crate::error::LayerAlreadyExistsException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`LayerAlreadyExistsException`](crate::error::LayerAlreadyExistsException) + pub fn build(self) -> crate::error::LayerAlreadyExistsException { + crate::error::LayerAlreadyExistsException { + message: self.message, + } + } + } +} +impl LayerAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`LayerAlreadyExistsException`](crate::error::LayerAlreadyExistsException) + pub fn builder() -> crate::error::layer_already_exists_exception::Builder { + crate::error::layer_already_exists_exception::Builder::default() + } +} + +///

            The layer digest calculation performed by Amazon ECR upon receipt of the image layer does +/// not match the digest specified.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidLayerException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidLayerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidLayerException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidLayerException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidLayerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidLayerException")?; + if let Some(inner_29) = &self.message { + write!(f, ": {}", inner_29)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidLayerException {} +/// See [`InvalidLayerException`](crate::error::InvalidLayerException) +pub mod invalid_layer_exception { + /// A builder for [`InvalidLayerException`](crate::error::InvalidLayerException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidLayerException`](crate::error::InvalidLayerException) + pub fn build(self) -> crate::error::InvalidLayerException { + crate::error::InvalidLayerException { + message: self.message, + } + } + } +} +impl InvalidLayerException { + /// Creates a new builder-style object to manufacture [`InvalidLayerException`](crate::error::InvalidLayerException) + pub fn builder() -> crate::error::invalid_layer_exception::Builder { + crate::error::invalid_layer_exception::Builder::default() + } +} + +///

            The specified layer upload does not contain any layer parts.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EmptyUploadException { + ///

            The error message associated with the exception.

            + pub message: std::option::Option, +} +impl std::fmt::Debug for EmptyUploadException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EmptyUploadException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl EmptyUploadException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for EmptyUploadException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "EmptyUploadException")?; + if let Some(inner_30) = &self.message { + write!(f, ": {}", inner_30)?; + } + Ok(()) + } +} +impl std::error::Error for EmptyUploadException {} +/// See [`EmptyUploadException`](crate::error::EmptyUploadException) +pub mod empty_upload_exception { + /// A builder for [`EmptyUploadException`](crate::error::EmptyUploadException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + ///

            The error message associated with the exception.

            + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`EmptyUploadException`](crate::error::EmptyUploadException) + pub fn build(self) -> crate::error::EmptyUploadException { + crate::error::EmptyUploadException { + message: self.message, + } + } + } +} +impl EmptyUploadException { + /// Creates a new builder-style object to manufacture [`EmptyUploadException`](crate::error::EmptyUploadException) + pub fn builder() -> crate::error::empty_upload_exception::Builder { + crate::error::empty_upload_exception::Builder::default() + } +} diff --git a/sdk/ecr/src/error_meta.rs b/sdk/ecr/src/error_meta.rs new file mode 100644 index 000000000000..63dc635442d4 --- /dev/null +++ b/sdk/ecr/src/error_meta.rs @@ -0,0 +1,869 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum Error { + EmptyUploadException(crate::error::EmptyUploadException), + ImageAlreadyExistsException(crate::error::ImageAlreadyExistsException), + ImageDigestDoesNotMatchException(crate::error::ImageDigestDoesNotMatchException), + ImageNotFoundException(crate::error::ImageNotFoundException), + ImageTagAlreadyExistsException(crate::error::ImageTagAlreadyExistsException), + InvalidLayerException(crate::error::InvalidLayerException), + InvalidLayerPartException(crate::error::InvalidLayerPartException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidTagParameterException(crate::error::InvalidTagParameterException), + KmsException(crate::error::KmsException), + LayerAlreadyExistsException(crate::error::LayerAlreadyExistsException), + LayerInaccessibleException(crate::error::LayerInaccessibleException), + LayerPartTooSmallException(crate::error::LayerPartTooSmallException), + LayersNotFoundException(crate::error::LayersNotFoundException), + LifecyclePolicyNotFoundException(crate::error::LifecyclePolicyNotFoundException), + LifecyclePolicyPreviewInProgressException( + crate::error::LifecyclePolicyPreviewInProgressException, + ), + LifecyclePolicyPreviewNotFoundException(crate::error::LifecyclePolicyPreviewNotFoundException), + LimitExceededException(crate::error::LimitExceededException), + ReferencedImagesNotFoundException(crate::error::ReferencedImagesNotFoundException), + RegistryPolicyNotFoundException(crate::error::RegistryPolicyNotFoundException), + RepositoryAlreadyExistsException(crate::error::RepositoryAlreadyExistsException), + RepositoryNotEmptyException(crate::error::RepositoryNotEmptyException), + RepositoryNotFoundException(crate::error::RepositoryNotFoundException), + RepositoryPolicyNotFoundException(crate::error::RepositoryPolicyNotFoundException), + ScanNotFoundException(crate::error::ScanNotFoundException), + ServerException(crate::error::ServerException), + TooManyTagsException(crate::error::TooManyTagsException), + UnsupportedImageTypeException(crate::error::UnsupportedImageTypeException), + UploadNotFoundException(crate::error::UploadNotFoundException), + ValidationException(crate::error::ValidationException), + Unhandled(Box), +} +impl std::fmt::Display for Error { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Error::EmptyUploadException(inner) => inner.fmt(f), + Error::ImageAlreadyExistsException(inner) => inner.fmt(f), + Error::ImageDigestDoesNotMatchException(inner) => inner.fmt(f), + Error::ImageNotFoundException(inner) => inner.fmt(f), + Error::ImageTagAlreadyExistsException(inner) => inner.fmt(f), + Error::InvalidLayerException(inner) => inner.fmt(f), + Error::InvalidLayerPartException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::InvalidTagParameterException(inner) => inner.fmt(f), + Error::KmsException(inner) => inner.fmt(f), + Error::LayerAlreadyExistsException(inner) => inner.fmt(f), + Error::LayerInaccessibleException(inner) => inner.fmt(f), + Error::LayerPartTooSmallException(inner) => inner.fmt(f), + Error::LayersNotFoundException(inner) => inner.fmt(f), + Error::LifecyclePolicyNotFoundException(inner) => inner.fmt(f), + Error::LifecyclePolicyPreviewInProgressException(inner) => inner.fmt(f), + Error::LifecyclePolicyPreviewNotFoundException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::ReferencedImagesNotFoundException(inner) => inner.fmt(f), + Error::RegistryPolicyNotFoundException(inner) => inner.fmt(f), + Error::RepositoryAlreadyExistsException(inner) => inner.fmt(f), + Error::RepositoryNotEmptyException(inner) => inner.fmt(f), + Error::RepositoryNotFoundException(inner) => inner.fmt(f), + Error::RepositoryPolicyNotFoundException(inner) => inner.fmt(f), + Error::ScanNotFoundException(inner) => inner.fmt(f), + Error::ServerException(inner) => inner.fmt(f), + Error::TooManyTagsException(inner) => inner.fmt(f), + Error::UnsupportedImageTypeException(inner) => inner.fmt(f), + Error::UploadNotFoundException(inner) => inner.fmt(f), + Error::ValidationException(inner) => inner.fmt(f), + Error::Unhandled(inner) => inner.fmt(f), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::BatchCheckLayerAvailabilityErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::BatchCheckLayerAvailabilityErrorKind::RepositoryNotFoundException( + inner, + ) => Error::RepositoryNotFoundException(inner), + crate::error::BatchCheckLayerAvailabilityErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::BatchCheckLayerAvailabilityErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::BatchDeleteImageErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::BatchDeleteImageErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::BatchDeleteImageErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::BatchDeleteImageErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::BatchGetImageErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::BatchGetImageErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::BatchGetImageErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::BatchGetImageErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::CompleteLayerUploadErrorKind::EmptyUploadException(inner) => { + Error::EmptyUploadException(inner) + } + crate::error::CompleteLayerUploadErrorKind::InvalidLayerException(inner) => { + Error::InvalidLayerException(inner) + } + crate::error::CompleteLayerUploadErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::CompleteLayerUploadErrorKind::KmsException(inner) => { + Error::KmsException(inner) + } + crate::error::CompleteLayerUploadErrorKind::LayerAlreadyExistsException(inner) => { + Error::LayerAlreadyExistsException(inner) + } + crate::error::CompleteLayerUploadErrorKind::LayerPartTooSmallException(inner) => { + Error::LayerPartTooSmallException(inner) + } + crate::error::CompleteLayerUploadErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::CompleteLayerUploadErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::CompleteLayerUploadErrorKind::UploadNotFoundException(inner) => { + Error::UploadNotFoundException(inner) + } + crate::error::CompleteLayerUploadErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::CreateRepositoryErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::CreateRepositoryErrorKind::InvalidTagParameterException(inner) => { + Error::InvalidTagParameterException(inner) + } + crate::error::CreateRepositoryErrorKind::KmsException(inner) => { + Error::KmsException(inner) + } + crate::error::CreateRepositoryErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::CreateRepositoryErrorKind::RepositoryAlreadyExistsException( + inner, + ) => Error::RepositoryAlreadyExistsException(inner), + crate::error::CreateRepositoryErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::CreateRepositoryErrorKind::TooManyTagsException(inner) => { + Error::TooManyTagsException(inner) + } + crate::error::CreateRepositoryErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteLifecyclePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException( + inner, + ) => Error::LifecyclePolicyNotFoundException(inner), + crate::error::DeleteLifecyclePolicyErrorKind::RepositoryNotFoundException( + inner, + ) => Error::RepositoryNotFoundException(inner), + crate::error::DeleteLifecyclePolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteLifecyclePolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteRegistryPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteRegistryPolicyErrorKind::RegistryPolicyNotFoundException( + inner, + ) => Error::RegistryPolicyNotFoundException(inner), + crate::error::DeleteRegistryPolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteRegistryPolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteRepositoryErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteRepositoryErrorKind::KmsException(inner) => { + Error::KmsException(inner) + } + crate::error::DeleteRepositoryErrorKind::RepositoryNotEmptyException(inner) => { + Error::RepositoryNotEmptyException(inner) + } + crate::error::DeleteRepositoryErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::DeleteRepositoryErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteRepositoryErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteRepositoryPolicyErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::DeleteRepositoryPolicyErrorKind::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner), + crate::error::DeleteRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException(inner) => Error::RepositoryPolicyNotFoundException(inner), + crate::error::DeleteRepositoryPolicyErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::DeleteRepositoryPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeImagesErrorKind::ImageNotFoundException(inner) => { + Error::ImageNotFoundException(inner) + } + crate::error::DescribeImagesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeImagesErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::DescribeImagesErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeImagesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeImageScanFindingsErrorKind::ImageNotFoundException(inner) => { + Error::ImageNotFoundException(inner) + } + crate::error::DescribeImageScanFindingsErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DescribeImageScanFindingsErrorKind::RepositoryNotFoundException( + inner, + ) => Error::RepositoryNotFoundException(inner), + crate::error::DescribeImageScanFindingsErrorKind::ScanNotFoundException(inner) => { + Error::ScanNotFoundException(inner) + } + crate::error::DescribeImageScanFindingsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeImageScanFindingsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeRegistryErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeRegistryErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeRegistryErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) + } + crate::error::DescribeRegistryErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeRepositoriesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeRepositoriesErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::DescribeRepositoriesErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeRepositoriesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetAuthorizationTokenErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::GetAuthorizationTokenErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::GetAuthorizationTokenErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetDownloadUrlForLayerErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::GetDownloadUrlForLayerErrorKind::LayerInaccessibleException( + inner, + ) => Error::LayerInaccessibleException(inner), + crate::error::GetDownloadUrlForLayerErrorKind::LayersNotFoundException(inner) => { + Error::LayersNotFoundException(inner) + } + crate::error::GetDownloadUrlForLayerErrorKind::RepositoryNotFoundException( + inner, + ) => Error::RepositoryNotFoundException(inner), + crate::error::GetDownloadUrlForLayerErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::GetDownloadUrlForLayerErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetLifecyclePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::GetLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException( + inner, + ) => Error::LifecyclePolicyNotFoundException(inner), + crate::error::GetLifecyclePolicyErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::GetLifecyclePolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::GetLifecyclePolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetLifecyclePolicyPreviewErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::GetLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewNotFoundException(inner) => Error::LifecyclePolicyPreviewNotFoundException(inner), + crate::error::GetLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner), + crate::error::GetLifecyclePolicyPreviewErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::GetLifecyclePolicyPreviewErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetRegistryPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::GetRegistryPolicyErrorKind::RegistryPolicyNotFoundException( + inner, + ) => Error::RegistryPolicyNotFoundException(inner), + crate::error::GetRegistryPolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::GetRegistryPolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::GetRepositoryPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::GetRepositoryPolicyErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::GetRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException( + inner, + ) => Error::RepositoryPolicyNotFoundException(inner), + crate::error::GetRepositoryPolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::GetRepositoryPolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::InitiateLayerUploadErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::InitiateLayerUploadErrorKind::KmsException(inner) => { + Error::KmsException(inner) + } + crate::error::InitiateLayerUploadErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::InitiateLayerUploadErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::InitiateLayerUploadErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListImagesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListImagesErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::ListImagesErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListImagesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListTagsForResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListTagsForResourceErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::ListTagsForResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutImageErrorKind::ImageAlreadyExistsException(inner) => { + Error::ImageAlreadyExistsException(inner) + } + crate::error::PutImageErrorKind::ImageDigestDoesNotMatchException(inner) => { + Error::ImageDigestDoesNotMatchException(inner) + } + crate::error::PutImageErrorKind::ImageTagAlreadyExistsException(inner) => { + Error::ImageTagAlreadyExistsException(inner) + } + crate::error::PutImageErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::PutImageErrorKind::KmsException(inner) => Error::KmsException(inner), + crate::error::PutImageErrorKind::LayersNotFoundException(inner) => { + Error::LayersNotFoundException(inner) + } + crate::error::PutImageErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::PutImageErrorKind::ReferencedImagesNotFoundException(inner) => { + Error::ReferencedImagesNotFoundException(inner) + } + crate::error::PutImageErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::PutImageErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::PutImageErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> + for Error +{ + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutImageScanningConfigurationErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::PutImageScanningConfigurationErrorKind::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner), + crate::error::PutImageScanningConfigurationErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::PutImageScanningConfigurationErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutImageTagMutabilityErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::PutImageTagMutabilityErrorKind::RepositoryNotFoundException( + inner, + ) => Error::RepositoryNotFoundException(inner), + crate::error::PutImageTagMutabilityErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::PutImageTagMutabilityErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutLifecyclePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::PutLifecyclePolicyErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::PutLifecyclePolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::PutLifecyclePolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutRegistryPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::PutRegistryPolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::PutRegistryPolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::PutReplicationConfigurationErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::PutReplicationConfigurationErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::PutReplicationConfigurationErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) + } + crate::error::PutReplicationConfigurationErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::SetRepositoryPolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::SetRepositoryPolicyErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::SetRepositoryPolicyErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::SetRepositoryPolicyErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::StartImageScanErrorKind::ImageNotFoundException(inner) => { + Error::ImageNotFoundException(inner) + } + crate::error::StartImageScanErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::StartImageScanErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::StartImageScanErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::StartImageScanErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::StartImageScanErrorKind::UnsupportedImageTypeException(inner) => { + Error::UnsupportedImageTypeException(inner) + } + crate::error::StartImageScanErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::StartLifecyclePolicyPreviewErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyNotFoundException(inner) => Error::LifecyclePolicyNotFoundException(inner), + crate::error::StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewInProgressException(inner) => Error::LifecyclePolicyPreviewInProgressException(inner), + crate::error::StartLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner), + crate::error::StartLifecyclePolicyPreviewErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::StartLifecyclePolicyPreviewErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::TagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::TagResourceErrorKind::InvalidTagParameterException(inner) => { + Error::InvalidTagParameterException(inner) + } + crate::error::TagResourceErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::TagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::TagResourceErrorKind::TooManyTagsException(inner) => { + Error::TooManyTagsException(inner) + } + crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UntagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UntagResourceErrorKind::InvalidTagParameterException(inner) => { + Error::InvalidTagParameterException(inner) + } + crate::error::UntagResourceErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::UntagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UntagResourceErrorKind::TooManyTagsException(inner) => { + Error::TooManyTagsException(inner) + } + crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UploadLayerPartErrorKind::InvalidLayerPartException(inner) => { + Error::InvalidLayerPartException(inner) + } + crate::error::UploadLayerPartErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UploadLayerPartErrorKind::KmsException(inner) => { + Error::KmsException(inner) + } + crate::error::UploadLayerPartErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) + } + crate::error::UploadLayerPartErrorKind::RepositoryNotFoundException(inner) => { + Error::RepositoryNotFoundException(inner) + } + crate::error::UploadLayerPartErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UploadLayerPartErrorKind::UploadNotFoundException(inner) => { + Error::UploadNotFoundException(inner) + } + crate::error::UploadLayerPartErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl std::error::Error for Error {} diff --git a/sdk/ecr/src/input.rs b/sdk/ecr/src/input.rs new file mode 100644 index 000000000000..4a0fa2c270a3 --- /dev/null +++ b/sdk/ecr/src/input.rs @@ -0,0 +1,6403 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; +/// See [`BatchCheckLayerAvailabilityInput`](crate::input::BatchCheckLayerAvailabilityInput) +pub mod batch_check_layer_availability_input { + /// A builder for [`BatchCheckLayerAvailabilityInput`](crate::input::BatchCheckLayerAvailabilityInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) layer_digests: std::option::Option>, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the image layers to + /// check. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository that is associated with the image layers to check.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn layer_digests(mut self, input: impl Into) -> Self { + let mut v = self.layer_digests.unwrap_or_default(); + v.push(input.into()); + self.layer_digests = Some(v); + self + } + pub fn set_layer_digests( + mut self, + input: std::option::Option>, + ) -> Self { + self.layer_digests = input; + self + } + /// Consumes the builder and constructs a [`BatchCheckLayerAvailabilityInput`](crate::input::BatchCheckLayerAvailabilityInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::BatchCheckLayerAvailabilityInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::BatchCheckLayerAvailabilityInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + layer_digests: self.layer_digests, + }) + } + } +} +#[doc(hidden)] +pub type BatchCheckLayerAvailabilityInputOperationOutputAlias = + crate::operation::BatchCheckLayerAvailability; +#[doc(hidden)] +pub type BatchCheckLayerAvailabilityInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl BatchCheckLayerAvailabilityInput { + /// Consumes the builder and constructs an Operation<[`BatchCheckLayerAvailability`](crate::operation::BatchCheckLayerAvailability)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::BatchCheckLayerAvailability, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_batch_check_layer_availability(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::BatchCheckLayerAvailability::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "BatchCheckLayerAvailability", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`BatchCheckLayerAvailabilityInput`](crate::input::BatchCheckLayerAvailabilityInput) + pub fn builder() -> crate::input::batch_check_layer_availability_input::Builder { + crate::input::batch_check_layer_availability_input::Builder::default() + } +} + +/// See [`BatchDeleteImageInput`](crate::input::BatchDeleteImageInput) +pub mod batch_delete_image_input { + /// A builder for [`BatchDeleteImageInput`](crate::input::BatchDeleteImageInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_ids: std::option::Option>, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the image to delete. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository that contains the image to delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + /// Consumes the builder and constructs a [`BatchDeleteImageInput`](crate::input::BatchDeleteImageInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::BatchDeleteImageInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::BatchDeleteImageInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_ids: self.image_ids, + }) + } + } +} +#[doc(hidden)] +pub type BatchDeleteImageInputOperationOutputAlias = crate::operation::BatchDeleteImage; +#[doc(hidden)] +pub type BatchDeleteImageInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl BatchDeleteImageInput { + /// Consumes the builder and constructs an Operation<[`BatchDeleteImage`](crate::operation::BatchDeleteImage)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::BatchDeleteImage, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_batch_delete_image(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::BatchDeleteImage::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "BatchDeleteImage", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`BatchDeleteImageInput`](crate::input::BatchDeleteImageInput) + pub fn builder() -> crate::input::batch_delete_image_input::Builder { + crate::input::batch_delete_image_input::Builder::default() + } +} + +/// See [`BatchGetImageInput`](crate::input::BatchGetImageInput) +pub mod batch_get_image_input { + /// A builder for [`BatchGetImageInput`](crate::input::BatchGetImageInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_ids: std::option::Option>, + pub(crate) accepted_media_types: std::option::Option>, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the images to describe. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository that contains the images to describe.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + pub fn accepted_media_types(mut self, input: impl Into) -> Self { + let mut v = self.accepted_media_types.unwrap_or_default(); + v.push(input.into()); + self.accepted_media_types = Some(v); + self + } + pub fn set_accepted_media_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.accepted_media_types = input; + self + } + /// Consumes the builder and constructs a [`BatchGetImageInput`](crate::input::BatchGetImageInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::BatchGetImageInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_ids: self.image_ids, + accepted_media_types: self.accepted_media_types, + }) + } + } +} +#[doc(hidden)] +pub type BatchGetImageInputOperationOutputAlias = crate::operation::BatchGetImage; +#[doc(hidden)] +pub type BatchGetImageInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl BatchGetImageInput { + /// Consumes the builder and constructs an Operation<[`BatchGetImage`](crate::operation::BatchGetImage)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::BatchGetImage, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_batch_get_image(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::BatchGetImage::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "BatchGetImage", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.BatchGetImage", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`BatchGetImageInput`](crate::input::BatchGetImageInput) + pub fn builder() -> crate::input::batch_get_image_input::Builder { + crate::input::batch_get_image_input::Builder::default() + } +} + +/// See [`CompleteLayerUploadInput`](crate::input::CompleteLayerUploadInput) +pub mod complete_layer_upload_input { + /// A builder for [`CompleteLayerUploadInput`](crate::input::CompleteLayerUploadInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) upload_id: std::option::Option, + pub(crate) layer_digests: std::option::Option>, + } + impl Builder { + ///

            The AWS account ID associated with the registry to which to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to associate with the image layer.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the image layer.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + pub fn layer_digests(mut self, input: impl Into) -> Self { + let mut v = self.layer_digests.unwrap_or_default(); + v.push(input.into()); + self.layer_digests = Some(v); + self + } + pub fn set_layer_digests( + mut self, + input: std::option::Option>, + ) -> Self { + self.layer_digests = input; + self + } + /// Consumes the builder and constructs a [`CompleteLayerUploadInput`](crate::input::CompleteLayerUploadInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::CompleteLayerUploadInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::CompleteLayerUploadInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + upload_id: self.upload_id, + layer_digests: self.layer_digests, + }) + } + } +} +#[doc(hidden)] +pub type CompleteLayerUploadInputOperationOutputAlias = crate::operation::CompleteLayerUpload; +#[doc(hidden)] +pub type CompleteLayerUploadInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CompleteLayerUploadInput { + /// Consumes the builder and constructs an Operation<[`CompleteLayerUpload`](crate::operation::CompleteLayerUpload)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CompleteLayerUpload, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_complete_layer_upload(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CompleteLayerUpload::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "CompleteLayerUpload", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CompleteLayerUploadInput`](crate::input::CompleteLayerUploadInput) + pub fn builder() -> crate::input::complete_layer_upload_input::Builder { + crate::input::complete_layer_upload_input::Builder::default() + } +} + +/// See [`CreateRepositoryInput`](crate::input::CreateRepositoryInput) +pub mod create_repository_input { + /// A builder for [`CreateRepositoryInput`](crate::input::CreateRepositoryInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) repository_name: std::option::Option, + pub(crate) tags: std::option::Option>, + pub(crate) image_tag_mutability: std::option::Option, + pub(crate) image_scanning_configuration: + std::option::Option, + pub(crate) encryption_configuration: + std::option::Option, + } + impl Builder { + ///

            The name to use for the repository. The repository name may be specified on its own + /// (such as nginx-web-app) or it can be prepended with a namespace to group + /// the repository into a category (such as project-a/nginx-web-app).

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + ///

            The tag mutability setting for the repository. If this parameter is omitted, the + /// default setting of MUTABLE will be used which will allow image tags to be + /// overwritten. If IMMUTABLE is specified, all image tags within the + /// repository will be immutable which will prevent them from being overwritten.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.image_tag_mutability = Some(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.image_tag_mutability = input; + self + } + ///

            The image scanning configuration for the repository. This determines whether images + /// are scanned for known vulnerabilities after being pushed to the repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.image_scanning_configuration = Some(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scanning_configuration = input; + self + } + ///

            The encryption configuration for the repository. This determines how the contents of + /// your repository are encrypted at rest.

            + pub fn encryption_configuration( + mut self, + input: crate::model::EncryptionConfiguration, + ) -> Self { + self.encryption_configuration = Some(input); + self + } + pub fn set_encryption_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.encryption_configuration = input; + self + } + /// Consumes the builder and constructs a [`CreateRepositoryInput`](crate::input::CreateRepositoryInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::CreateRepositoryInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::CreateRepositoryInput { + repository_name: self.repository_name, + tags: self.tags, + image_tag_mutability: self.image_tag_mutability, + image_scanning_configuration: self.image_scanning_configuration, + encryption_configuration: self.encryption_configuration, + }) + } + } +} +#[doc(hidden)] +pub type CreateRepositoryInputOperationOutputAlias = crate::operation::CreateRepository; +#[doc(hidden)] +pub type CreateRepositoryInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CreateRepositoryInput { + /// Consumes the builder and constructs an Operation<[`CreateRepository`](crate::operation::CreateRepository)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CreateRepository, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_create_repository(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CreateRepository::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "CreateRepository", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.CreateRepository", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CreateRepositoryInput`](crate::input::CreateRepositoryInput) + pub fn builder() -> crate::input::create_repository_input::Builder { + crate::input::create_repository_input::Builder::default() + } +} + +/// See [`DeleteLifecyclePolicyInput`](crate::input::DeleteLifecyclePolicyInput) +pub mod delete_lifecycle_policy_input { + /// A builder for [`DeleteLifecyclePolicyInput`](crate::input::DeleteLifecyclePolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + /// Consumes the builder and constructs a [`DeleteLifecyclePolicyInput`](crate::input::DeleteLifecyclePolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteLifecyclePolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteLifecyclePolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + }) + } + } +} +#[doc(hidden)] +pub type DeleteLifecyclePolicyInputOperationOutputAlias = crate::operation::DeleteLifecyclePolicy; +#[doc(hidden)] +pub type DeleteLifecyclePolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteLifecyclePolicyInput { + /// Consumes the builder and constructs an Operation<[`DeleteLifecyclePolicy`](crate::operation::DeleteLifecyclePolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteLifecyclePolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_lifecycle_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteLifecyclePolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteLifecyclePolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteLifecyclePolicyInput`](crate::input::DeleteLifecyclePolicyInput) + pub fn builder() -> crate::input::delete_lifecycle_policy_input::Builder { + crate::input::delete_lifecycle_policy_input::Builder::default() + } +} + +/// See [`DeleteRegistryPolicyInput`](crate::input::DeleteRegistryPolicyInput) +pub mod delete_registry_policy_input { + /// A builder for [`DeleteRegistryPolicyInput`](crate::input::DeleteRegistryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DeleteRegistryPolicyInput`](crate::input::DeleteRegistryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteRegistryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteRegistryPolicyInput {}) + } + } +} +#[doc(hidden)] +pub type DeleteRegistryPolicyInputOperationOutputAlias = crate::operation::DeleteRegistryPolicy; +#[doc(hidden)] +pub type DeleteRegistryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteRegistryPolicyInput { + /// Consumes the builder and constructs an Operation<[`DeleteRegistryPolicy`](crate::operation::DeleteRegistryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteRegistryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_registry_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteRegistryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteRegistryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteRegistryPolicyInput`](crate::input::DeleteRegistryPolicyInput) + pub fn builder() -> crate::input::delete_registry_policy_input::Builder { + crate::input::delete_registry_policy_input::Builder::default() + } +} + +/// See [`DeleteRepositoryInput`](crate::input::DeleteRepositoryInput) +pub mod delete_repository_input { + /// A builder for [`DeleteRepositoryInput`](crate::input::DeleteRepositoryInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) force: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            If a repository contains images, forces the deletion.

            + pub fn force(mut self, input: bool) -> Self { + self.force = Some(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.force = input; + self + } + /// Consumes the builder and constructs a [`DeleteRepositoryInput`](crate::input::DeleteRepositoryInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteRepositoryInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteRepositoryInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + force: self.force.unwrap_or_default(), + }) + } + } +} +#[doc(hidden)] +pub type DeleteRepositoryInputOperationOutputAlias = crate::operation::DeleteRepository; +#[doc(hidden)] +pub type DeleteRepositoryInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteRepositoryInput { + /// Consumes the builder and constructs an Operation<[`DeleteRepository`](crate::operation::DeleteRepository)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteRepository, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_repository(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteRepository::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteRepository", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DeleteRepository", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteRepositoryInput`](crate::input::DeleteRepositoryInput) + pub fn builder() -> crate::input::delete_repository_input::Builder { + crate::input::delete_repository_input::Builder::default() + } +} + +/// See [`DeleteRepositoryPolicyInput`](crate::input::DeleteRepositoryPolicyInput) +pub mod delete_repository_policy_input { + /// A builder for [`DeleteRepositoryPolicyInput`](crate::input::DeleteRepositoryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository policy to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository that is associated with the repository policy to + /// delete.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + /// Consumes the builder and constructs a [`DeleteRepositoryPolicyInput`](crate::input::DeleteRepositoryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteRepositoryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteRepositoryPolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + }) + } + } +} +#[doc(hidden)] +pub type DeleteRepositoryPolicyInputOperationOutputAlias = crate::operation::DeleteRepositoryPolicy; +#[doc(hidden)] +pub type DeleteRepositoryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteRepositoryPolicyInput { + /// Consumes the builder and constructs an Operation<[`DeleteRepositoryPolicy`](crate::operation::DeleteRepositoryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteRepositoryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_delete_repository_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteRepositoryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteRepositoryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteRepositoryPolicyInput`](crate::input::DeleteRepositoryPolicyInput) + pub fn builder() -> crate::input::delete_repository_policy_input::Builder { + crate::input::delete_repository_policy_input::Builder::default() + } +} + +/// See [`DescribeImagesInput`](crate::input::DescribeImagesInput) +pub mod describe_images_input { + /// A builder for [`DescribeImagesInput`](crate::input::DescribeImagesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_ids: std::option::Option>, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) filter: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to describe images. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository that contains the images to describe.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify images with imageIds.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

            The maximum number of repository results returned by DescribeImages in + /// paginated output. When this parameter is used, DescribeImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another DescribeImages request with the returned nextToken + /// value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImages returns up to + /// 100 results and a nextToken value, if applicable. This + /// option cannot be used when you specify images with imageIds.

            + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

            The filter key and value with which to filter your DescribeImages + /// results.

            + pub fn filter(mut self, input: crate::model::DescribeImagesFilter) -> Self { + self.filter = Some(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.filter = input; + self + } + /// Consumes the builder and constructs a [`DescribeImagesInput`](crate::input::DescribeImagesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeImagesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeImagesInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_ids: self.image_ids, + next_token: self.next_token, + max_results: self.max_results, + filter: self.filter, + }) + } + } +} +#[doc(hidden)] +pub type DescribeImagesInputOperationOutputAlias = crate::operation::DescribeImages; +#[doc(hidden)] +pub type DescribeImagesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeImagesInput { + /// Consumes the builder and constructs an Operation<[`DescribeImages`](crate::operation::DescribeImages)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeImages, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_images(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeImages::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeImages", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DescribeImages", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeImagesInput`](crate::input::DescribeImagesInput) + pub fn builder() -> crate::input::describe_images_input::Builder { + crate::input::describe_images_input::Builder::default() + } +} + +/// See [`DescribeImageScanFindingsInput`](crate::input::DescribeImageScanFindingsInput) +pub mod describe_image_scan_findings_input { + /// A builder for [`DescribeImageScanFindingsInput`](crate::input::DescribeImageScanFindingsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_id: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to describe the image scan findings for. If you do not specify a registry, the + /// default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository for the image for which to describe the scan findings.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeImageScanFindings request where maxResults was + /// used and the results exceeded the value of that parameter. Pagination continues from the + /// end of the previous results that returned the nextToken value. This value + /// is null when there are no more results to return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

            The maximum number of image scan results returned by + /// DescribeImageScanFindings in paginated output. When this parameter is + /// used, DescribeImageScanFindings only returns maxResults + /// results in a single page along with a nextToken response element. The + /// remaining results of the initial request can be seen by sending another + /// DescribeImageScanFindings request with the returned + /// nextToken value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImageScanFindings returns up to 100 + /// results and a nextToken value, if applicable.

            + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + /// Consumes the builder and constructs a [`DescribeImageScanFindingsInput`](crate::input::DescribeImageScanFindingsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeImageScanFindingsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeImageScanFindingsInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_id: self.image_id, + next_token: self.next_token, + max_results: self.max_results, + }) + } + } +} +#[doc(hidden)] +pub type DescribeImageScanFindingsInputOperationOutputAlias = + crate::operation::DescribeImageScanFindings; +#[doc(hidden)] +pub type DescribeImageScanFindingsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeImageScanFindingsInput { + /// Consumes the builder and constructs an Operation<[`DescribeImageScanFindings`](crate::operation::DescribeImageScanFindings)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeImageScanFindings, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_describe_image_scan_findings(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeImageScanFindings::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeImageScanFindings", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeImageScanFindingsInput`](crate::input::DescribeImageScanFindingsInput) + pub fn builder() -> crate::input::describe_image_scan_findings_input::Builder { + crate::input::describe_image_scan_findings_input::Builder::default() + } +} + +/// See [`DescribeRegistryInput`](crate::input::DescribeRegistryInput) +pub mod describe_registry_input { + /// A builder for [`DescribeRegistryInput`](crate::input::DescribeRegistryInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`DescribeRegistryInput`](crate::input::DescribeRegistryInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeRegistryInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeRegistryInput {}) + } + } +} +#[doc(hidden)] +pub type DescribeRegistryInputOperationOutputAlias = crate::operation::DescribeRegistry; +#[doc(hidden)] +pub type DescribeRegistryInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeRegistryInput { + /// Consumes the builder and constructs an Operation<[`DescribeRegistry`](crate::operation::DescribeRegistry)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeRegistry, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_registry(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeRegistry::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeRegistry", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeRegistryInput`](crate::input::DescribeRegistryInput) + pub fn builder() -> crate::input::describe_registry_input::Builder { + crate::input::describe_registry_input::Builder::default() + } +} + +/// See [`DescribeRepositoriesInput`](crate::input::DescribeRepositoriesInput) +pub mod describe_repositories_input { + /// A builder for [`DescribeRepositoriesInput`](crate::input::DescribeRepositoriesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_names: std::option::Option>, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repositories to be + /// described. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + pub fn repository_names(mut self, input: impl Into) -> Self { + let mut v = self.repository_names.unwrap_or_default(); + v.push(input.into()); + self.repository_names = Some(v); + self + } + pub fn set_repository_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.repository_names = input; + self + } + ///

            The nextToken value returned from a previous paginated + /// DescribeRepositories request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify repositories with repositoryNames.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

            The maximum number of repository results returned by DescribeRepositories + /// in paginated output. When this parameter is used, DescribeRepositories only + /// returns maxResults results in a single page along with a + /// nextToken response element. The remaining results of the initial + /// request can be seen by sending another DescribeRepositories request with + /// the returned nextToken value. This value can be between 1 + /// and 1000. If this parameter is not used, then + /// DescribeRepositories returns up to 100 results and a + /// nextToken value, if applicable. This option cannot be used when you + /// specify repositories with repositoryNames.

            + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + /// Consumes the builder and constructs a [`DescribeRepositoriesInput`](crate::input::DescribeRepositoriesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeRepositoriesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeRepositoriesInput { + registry_id: self.registry_id, + repository_names: self.repository_names, + next_token: self.next_token, + max_results: self.max_results, + }) + } + } +} +#[doc(hidden)] +pub type DescribeRepositoriesInputOperationOutputAlias = crate::operation::DescribeRepositories; +#[doc(hidden)] +pub type DescribeRepositoriesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeRepositoriesInput { + /// Consumes the builder and constructs an Operation<[`DescribeRepositories`](crate::operation::DescribeRepositories)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeRepositories, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_describe_repositories(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeRepositories::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeRepositories", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeRepositoriesInput`](crate::input::DescribeRepositoriesInput) + pub fn builder() -> crate::input::describe_repositories_input::Builder { + crate::input::describe_repositories_input::Builder::default() + } +} + +/// See [`GetAuthorizationTokenInput`](crate::input::GetAuthorizationTokenInput) +pub mod get_authorization_token_input { + /// A builder for [`GetAuthorizationTokenInput`](crate::input::GetAuthorizationTokenInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_ids: std::option::Option>, + } + impl Builder { + pub fn registry_ids(mut self, input: impl Into) -> Self { + let mut v = self.registry_ids.unwrap_or_default(); + v.push(input.into()); + self.registry_ids = Some(v); + self + } + pub fn set_registry_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.registry_ids = input; + self + } + /// Consumes the builder and constructs a [`GetAuthorizationTokenInput`](crate::input::GetAuthorizationTokenInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetAuthorizationTokenInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetAuthorizationTokenInput { + registry_ids: self.registry_ids, + }) + } + } +} +#[doc(hidden)] +pub type GetAuthorizationTokenInputOperationOutputAlias = crate::operation::GetAuthorizationToken; +#[doc(hidden)] +pub type GetAuthorizationTokenInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetAuthorizationTokenInput { + /// Consumes the builder and constructs an Operation<[`GetAuthorizationToken`](crate::operation::GetAuthorizationToken)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetAuthorizationToken, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_authorization_token(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetAuthorizationToken::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetAuthorizationToken", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetAuthorizationTokenInput`](crate::input::GetAuthorizationTokenInput) + pub fn builder() -> crate::input::get_authorization_token_input::Builder { + crate::input::get_authorization_token_input::Builder::default() + } +} + +/// See [`GetDownloadUrlForLayerInput`](crate::input::GetDownloadUrlForLayerInput) +pub mod get_download_url_for_layer_input { + /// A builder for [`GetDownloadUrlForLayerInput`](crate::input::GetDownloadUrlForLayerInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) layer_digest: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the image layer to + /// download. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository that is associated with the image layer to download.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The digest of the image layer to download.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.layer_digest = Some(input.into()); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.layer_digest = input; + self + } + /// Consumes the builder and constructs a [`GetDownloadUrlForLayerInput`](crate::input::GetDownloadUrlForLayerInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetDownloadUrlForLayerInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetDownloadUrlForLayerInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + layer_digest: self.layer_digest, + }) + } + } +} +#[doc(hidden)] +pub type GetDownloadUrlForLayerInputOperationOutputAlias = crate::operation::GetDownloadUrlForLayer; +#[doc(hidden)] +pub type GetDownloadUrlForLayerInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetDownloadUrlForLayerInput { + /// Consumes the builder and constructs an Operation<[`GetDownloadUrlForLayer`](crate::operation::GetDownloadUrlForLayer)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetDownloadUrlForLayer, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_download_url_for_layer(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetDownloadUrlForLayer::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetDownloadUrlForLayer", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetDownloadUrlForLayerInput`](crate::input::GetDownloadUrlForLayerInput) + pub fn builder() -> crate::input::get_download_url_for_layer_input::Builder { + crate::input::get_download_url_for_layer_input::Builder::default() + } +} + +/// See [`GetLifecyclePolicyInput`](crate::input::GetLifecyclePolicyInput) +pub mod get_lifecycle_policy_input { + /// A builder for [`GetLifecyclePolicyInput`](crate::input::GetLifecyclePolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + /// Consumes the builder and constructs a [`GetLifecyclePolicyInput`](crate::input::GetLifecyclePolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetLifecyclePolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetLifecyclePolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + }) + } + } +} +#[doc(hidden)] +pub type GetLifecyclePolicyInputOperationOutputAlias = crate::operation::GetLifecyclePolicy; +#[doc(hidden)] +pub type GetLifecyclePolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetLifecyclePolicyInput { + /// Consumes the builder and constructs an Operation<[`GetLifecyclePolicy`](crate::operation::GetLifecyclePolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetLifecyclePolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_lifecycle_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetLifecyclePolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetLifecyclePolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyInput`](crate::input::GetLifecyclePolicyInput) + pub fn builder() -> crate::input::get_lifecycle_policy_input::Builder { + crate::input::get_lifecycle_policy_input::Builder::default() + } +} + +/// See [`GetLifecyclePolicyPreviewInput`](crate::input::GetLifecyclePolicyPreviewInput) +pub mod get_lifecycle_policy_preview_input { + /// A builder for [`GetLifecyclePolicyPreviewInput`](crate::input::GetLifecyclePolicyPreviewInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_ids: std::option::Option>, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) filter: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + ///

            The nextToken value returned from a previous paginated + /// GetLifecyclePolicyPreviewRequest request where maxResults + /// was used and the
 results exceeded the value of that parameter. Pagination continues + /// from the end of the
 previous results that returned the nextToken value. + /// This value is
 null when there are no more results to return. This option + /// cannot be used when you specify images with imageIds.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

            The maximum number of repository results returned by + /// GetLifecyclePolicyPreviewRequest in
 paginated output. When this + /// parameter is used, GetLifecyclePolicyPreviewRequest only returns + /// maxResults results in a single page along with a + /// nextToken
 response element. The remaining results of the initial request + /// can be seen by sending
 another GetLifecyclePolicyPreviewRequest request + /// with the returned nextToken
 value. This value can be between + /// 1 and 1000. If this
 parameter is not used, then + /// GetLifecyclePolicyPreviewRequest returns up to
 100 + /// results and a nextToken value, if
 applicable. This option cannot be used + /// when you specify images with imageIds.

            + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

            An optional parameter that filters results based on image tag status and all tags, if + /// tagged.

            + pub fn filter(mut self, input: crate::model::LifecyclePolicyPreviewFilter) -> Self { + self.filter = Some(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.filter = input; + self + } + /// Consumes the builder and constructs a [`GetLifecyclePolicyPreviewInput`](crate::input::GetLifecyclePolicyPreviewInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetLifecyclePolicyPreviewInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetLifecyclePolicyPreviewInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_ids: self.image_ids, + next_token: self.next_token, + max_results: self.max_results, + filter: self.filter, + }) + } + } +} +#[doc(hidden)] +pub type GetLifecyclePolicyPreviewInputOperationOutputAlias = + crate::operation::GetLifecyclePolicyPreview; +#[doc(hidden)] +pub type GetLifecyclePolicyPreviewInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetLifecyclePolicyPreviewInput { + /// Consumes the builder and constructs an Operation<[`GetLifecyclePolicyPreview`](crate::operation::GetLifecyclePolicyPreview)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetLifecyclePolicyPreview, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_get_lifecycle_policy_preview(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetLifecyclePolicyPreview::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetLifecyclePolicyPreview", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyPreviewInput`](crate::input::GetLifecyclePolicyPreviewInput) + pub fn builder() -> crate::input::get_lifecycle_policy_preview_input::Builder { + crate::input::get_lifecycle_policy_preview_input::Builder::default() + } +} + +/// See [`GetRegistryPolicyInput`](crate::input::GetRegistryPolicyInput) +pub mod get_registry_policy_input { + /// A builder for [`GetRegistryPolicyInput`](crate::input::GetRegistryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`GetRegistryPolicyInput`](crate::input::GetRegistryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetRegistryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetRegistryPolicyInput {}) + } + } +} +#[doc(hidden)] +pub type GetRegistryPolicyInputOperationOutputAlias = crate::operation::GetRegistryPolicy; +#[doc(hidden)] +pub type GetRegistryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetRegistryPolicyInput { + /// Consumes the builder and constructs an Operation<[`GetRegistryPolicy`](crate::operation::GetRegistryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetRegistryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_registry_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetRegistryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetRegistryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetRegistryPolicyInput`](crate::input::GetRegistryPolicyInput) + pub fn builder() -> crate::input::get_registry_policy_input::Builder { + crate::input::get_registry_policy_input::Builder::default() + } +} + +/// See [`GetRepositoryPolicyInput`](crate::input::GetRepositoryPolicyInput) +pub mod get_repository_policy_input { + /// A builder for [`GetRepositoryPolicyInput`](crate::input::GetRepositoryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository with the policy to retrieve.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + /// Consumes the builder and constructs a [`GetRepositoryPolicyInput`](crate::input::GetRepositoryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::GetRepositoryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::GetRepositoryPolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + }) + } + } +} +#[doc(hidden)] +pub type GetRepositoryPolicyInputOperationOutputAlias = crate::operation::GetRepositoryPolicy; +#[doc(hidden)] +pub type GetRepositoryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl GetRepositoryPolicyInput { + /// Consumes the builder and constructs an Operation<[`GetRepositoryPolicy`](crate::operation::GetRepositoryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::GetRepositoryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_get_repository_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::GetRepositoryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "GetRepositoryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`GetRepositoryPolicyInput`](crate::input::GetRepositoryPolicyInput) + pub fn builder() -> crate::input::get_repository_policy_input::Builder { + crate::input::get_repository_policy_input::Builder::default() + } +} + +/// See [`InitiateLayerUploadInput`](crate::input::InitiateLayerUploadInput) +pub mod initiate_layer_upload_input { + /// A builder for [`InitiateLayerUploadInput`](crate::input::InitiateLayerUploadInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry to which you intend to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to which you intend to upload layers.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + /// Consumes the builder and constructs a [`InitiateLayerUploadInput`](crate::input::InitiateLayerUploadInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::InitiateLayerUploadInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::InitiateLayerUploadInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + }) + } + } +} +#[doc(hidden)] +pub type InitiateLayerUploadInputOperationOutputAlias = crate::operation::InitiateLayerUpload; +#[doc(hidden)] +pub type InitiateLayerUploadInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl InitiateLayerUploadInput { + /// Consumes the builder and constructs an Operation<[`InitiateLayerUpload`](crate::operation::InitiateLayerUpload)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::InitiateLayerUpload, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_initiate_layer_upload(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::InitiateLayerUpload::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "InitiateLayerUpload", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`InitiateLayerUploadInput`](crate::input::InitiateLayerUploadInput) + pub fn builder() -> crate::input::initiate_layer_upload_input::Builder { + crate::input::initiate_layer_upload_input::Builder::default() + } +} + +/// See [`ListImagesInput`](crate::input::ListImagesInput) +pub mod list_images_input { + /// A builder for [`ListImagesInput`](crate::input::ListImagesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) filter: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to list images. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository with image IDs to be listed.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The nextToken value returned from a previous paginated + /// ListImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

            The maximum number of image results returned by ListImages in paginated + /// output. When this parameter is used, ListImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another ListImages request with the returned nextToken value. + /// This value can be between 1 and 1000. If this parameter is + /// not used, then ListImages returns up to 100 results and a + /// nextToken value, if applicable.

            + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

            The filter key and value with which to filter your ListImages + /// results.

            + pub fn filter(mut self, input: crate::model::ListImagesFilter) -> Self { + self.filter = Some(input); + self + } + pub fn set_filter( + mut self, + input: std::option::Option, + ) -> Self { + self.filter = input; + self + } + /// Consumes the builder and constructs a [`ListImagesInput`](crate::input::ListImagesInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::ListImagesInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + next_token: self.next_token, + max_results: self.max_results, + filter: self.filter, + }) + } + } +} +#[doc(hidden)] +pub type ListImagesInputOperationOutputAlias = crate::operation::ListImages; +#[doc(hidden)] +pub type ListImagesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListImagesInput { + /// Consumes the builder and constructs an Operation<[`ListImages`](crate::operation::ListImages)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListImages, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_list_images(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListImages::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("ListImages", "ecr")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.ListImages", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListImagesInput`](crate::input::ListImagesInput) + pub fn builder() -> crate::input::list_images_input::Builder { + crate::input::list_images_input::Builder::default() + } +} + +/// See [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) +pub mod list_tags_for_resource_input { + /// A builder for [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + } + impl Builder { + ///

            The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// only supported resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListTagsForResourceInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListTagsForResourceInput { + resource_arn: self.resource_arn, + }) + } + } +} +#[doc(hidden)] +pub type ListTagsForResourceInputOperationOutputAlias = crate::operation::ListTagsForResource; +#[doc(hidden)] +pub type ListTagsForResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListTagsForResourceInput { + /// Consumes the builder and constructs an Operation<[`ListTagsForResource`](crate::operation::ListTagsForResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListTagsForResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_list_tags_for_resource(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListTagsForResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListTagsForResource", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } +} + +/// See [`PutImageInput`](crate::input::PutImageInput) +pub mod put_image_input { + /// A builder for [`PutImageInput`](crate::input::PutImageInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_manifest: std::option::Option, + pub(crate) image_manifest_media_type: std::option::Option, + pub(crate) image_tag: std::option::Option, + pub(crate) image_digest: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to put the image. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository in which to put the image.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The image manifest corresponding to the image to be uploaded.

            + pub fn image_manifest(mut self, input: impl Into) -> Self { + self.image_manifest = Some(input.into()); + self + } + pub fn set_image_manifest( + mut self, + input: std::option::Option, + ) -> Self { + self.image_manifest = input; + self + } + ///

            The media type of the image manifest. If you push an image manifest that does not + /// contain the mediaType field, you must specify the + /// imageManifestMediaType in the request.

            + pub fn image_manifest_media_type(mut self, input: impl Into) -> Self { + self.image_manifest_media_type = Some(input.into()); + self + } + pub fn set_image_manifest_media_type( + mut self, + input: std::option::Option, + ) -> Self { + self.image_manifest_media_type = input; + self + } + ///

            The tag to associate with the image. This parameter is required for images that use + /// the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.

            + pub fn image_tag(mut self, input: impl Into) -> Self { + self.image_tag = Some(input.into()); + self + } + pub fn set_image_tag(mut self, input: std::option::Option) -> Self { + self.image_tag = input; + self + } + ///

            The image digest of the image manifest corresponding to the image.

            + pub fn image_digest(mut self, input: impl Into) -> Self { + self.image_digest = Some(input.into()); + self + } + pub fn set_image_digest(mut self, input: std::option::Option) -> Self { + self.image_digest = input; + self + } + /// Consumes the builder and constructs a [`PutImageInput`](crate::input::PutImageInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::PutImageInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_manifest: self.image_manifest, + image_manifest_media_type: self.image_manifest_media_type, + image_tag: self.image_tag, + image_digest: self.image_digest, + }) + } + } +} +#[doc(hidden)] +pub type PutImageInputOperationOutputAlias = crate::operation::PutImage; +#[doc(hidden)] +pub type PutImageInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutImageInput { + /// Consumes the builder and constructs an Operation<[`PutImage`](crate::operation::PutImage)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutImage, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_put_image(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = + smithy_http::operation::Operation::new(request, crate::operation::PutImage::new()) + .with_metadata(smithy_http::operation::Metadata::new("PutImage", "ecr")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutImage", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutImageInput`](crate::input::PutImageInput) + pub fn builder() -> crate::input::put_image_input::Builder { + crate::input::put_image_input::Builder::default() + } +} + +/// See [`PutImageScanningConfigurationInput`](crate::input::PutImageScanningConfigurationInput) +pub mod put_image_scanning_configuration_input { + /// A builder for [`PutImageScanningConfigurationInput`](crate::input::PutImageScanningConfigurationInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_scanning_configuration: + std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to update the image scanning configuration setting. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository in which to update the image scanning configuration + /// setting.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The image scanning configuration for the repository. This setting determines whether + /// images are scanned for known vulnerabilities after being pushed to the + /// repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.image_scanning_configuration = Some(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scanning_configuration = input; + self + } + /// Consumes the builder and constructs a [`PutImageScanningConfigurationInput`](crate::input::PutImageScanningConfigurationInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutImageScanningConfigurationInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutImageScanningConfigurationInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_scanning_configuration: self.image_scanning_configuration, + }) + } + } +} +#[doc(hidden)] +pub type PutImageScanningConfigurationInputOperationOutputAlias = + crate::operation::PutImageScanningConfiguration; +#[doc(hidden)] +pub type PutImageScanningConfigurationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutImageScanningConfigurationInput { + /// Consumes the builder and constructs an Operation<[`PutImageScanningConfiguration`](crate::operation::PutImageScanningConfiguration)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutImageScanningConfiguration, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_put_image_scanning_configuration(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutImageScanningConfiguration::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutImageScanningConfiguration", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutImageScanningConfigurationInput`](crate::input::PutImageScanningConfigurationInput) + pub fn builder() -> crate::input::put_image_scanning_configuration_input::Builder { + crate::input::put_image_scanning_configuration_input::Builder::default() + } +} + +/// See [`PutImageTagMutabilityInput`](crate::input::PutImageTagMutabilityInput) +pub mod put_image_tag_mutability_input { + /// A builder for [`PutImageTagMutabilityInput`](crate::input::PutImageTagMutabilityInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_tag_mutability: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository in which to update the image tag mutability + /// settings.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The tag mutability setting for the repository. If MUTABLE is specified, + /// image tags can be overwritten. If IMMUTABLE is specified, all image tags + /// within the repository will be immutable which will prevent them from being + /// overwritten.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.image_tag_mutability = Some(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.image_tag_mutability = input; + self + } + /// Consumes the builder and constructs a [`PutImageTagMutabilityInput`](crate::input::PutImageTagMutabilityInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutImageTagMutabilityInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutImageTagMutabilityInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_tag_mutability: self.image_tag_mutability, + }) + } + } +} +#[doc(hidden)] +pub type PutImageTagMutabilityInputOperationOutputAlias = crate::operation::PutImageTagMutability; +#[doc(hidden)] +pub type PutImageTagMutabilityInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutImageTagMutabilityInput { + /// Consumes the builder and constructs an Operation<[`PutImageTagMutability`](crate::operation::PutImageTagMutability)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutImageTagMutability, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_image_tag_mutability(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutImageTagMutability::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutImageTagMutability", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutImageTagMutabilityInput`](crate::input::PutImageTagMutabilityInput) + pub fn builder() -> crate::input::put_image_tag_mutability_input::Builder { + crate::input::put_image_tag_mutability_input::Builder::default() + } +} + +/// See [`PutLifecyclePolicyInput`](crate::input::PutLifecyclePolicyInput) +pub mod put_lifecycle_policy_input { + /// A builder for [`PutLifecyclePolicyInput`](crate::input::PutLifecyclePolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. If you + /// do
 not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to receive the policy.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text to apply to the repository.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + /// Consumes the builder and constructs a [`PutLifecyclePolicyInput`](crate::input::PutLifecyclePolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutLifecyclePolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutLifecyclePolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + }) + } + } +} +#[doc(hidden)] +pub type PutLifecyclePolicyInputOperationOutputAlias = crate::operation::PutLifecyclePolicy; +#[doc(hidden)] +pub type PutLifecyclePolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutLifecyclePolicyInput { + /// Consumes the builder and constructs an Operation<[`PutLifecyclePolicy`](crate::operation::PutLifecyclePolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutLifecyclePolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_lifecycle_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutLifecyclePolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutLifecyclePolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutLifecyclePolicyInput`](crate::input::PutLifecyclePolicyInput) + pub fn builder() -> crate::input::put_lifecycle_policy_input::Builder { + crate::input::put_lifecycle_policy_input::Builder::default() + } +} + +/// See [`PutRegistryPolicyInput`](crate::input::PutRegistryPolicyInput) +pub mod put_registry_policy_input { + /// A builder for [`PutRegistryPolicyInput`](crate::input::PutRegistryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The JSON policy text to apply to your registry. The policy text follows the same + /// format as IAM policy text. For more information, see Registry + /// permissions in the Amazon Elastic Container Registry User Guide.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`PutRegistryPolicyInput`](crate::input::PutRegistryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutRegistryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutRegistryPolicyInput { + policy_text: self.policy_text, + }) + } + } +} +#[doc(hidden)] +pub type PutRegistryPolicyInputOperationOutputAlias = crate::operation::PutRegistryPolicy; +#[doc(hidden)] +pub type PutRegistryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutRegistryPolicyInput { + /// Consumes the builder and constructs an Operation<[`PutRegistryPolicy`](crate::operation::PutRegistryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutRegistryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_put_registry_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutRegistryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutRegistryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutRegistryPolicyInput`](crate::input::PutRegistryPolicyInput) + pub fn builder() -> crate::input::put_registry_policy_input::Builder { + crate::input::put_registry_policy_input::Builder::default() + } +} + +/// See [`PutReplicationConfigurationInput`](crate::input::PutReplicationConfigurationInput) +pub mod put_replication_configuration_input { + /// A builder for [`PutReplicationConfigurationInput`](crate::input::PutReplicationConfigurationInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) replication_configuration: + std::option::Option, + } + impl Builder { + ///

            An object representing the replication configuration for a registry.

            + pub fn replication_configuration( + mut self, + input: crate::model::ReplicationConfiguration, + ) -> Self { + self.replication_configuration = Some(input); + self + } + pub fn set_replication_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.replication_configuration = input; + self + } + /// Consumes the builder and constructs a [`PutReplicationConfigurationInput`](crate::input::PutReplicationConfigurationInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::PutReplicationConfigurationInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::PutReplicationConfigurationInput { + replication_configuration: self.replication_configuration, + }) + } + } +} +#[doc(hidden)] +pub type PutReplicationConfigurationInputOperationOutputAlias = + crate::operation::PutReplicationConfiguration; +#[doc(hidden)] +pub type PutReplicationConfigurationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl PutReplicationConfigurationInput { + /// Consumes the builder and constructs an Operation<[`PutReplicationConfiguration`](crate::operation::PutReplicationConfiguration)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::PutReplicationConfiguration, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_put_replication_configuration(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::PutReplicationConfiguration::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "PutReplicationConfiguration", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`PutReplicationConfigurationInput`](crate::input::PutReplicationConfigurationInput) + pub fn builder() -> crate::input::put_replication_configuration_input::Builder { + crate::input::put_replication_configuration_input::Builder::default() + } +} + +/// See [`SetRepositoryPolicyInput`](crate::input::SetRepositoryPolicyInput) +pub mod set_repository_policy_input { + /// A builder for [`SetRepositoryPolicyInput`](crate::input::SetRepositoryPolicyInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) policy_text: std::option::Option, + pub(crate) force: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to receive the policy.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text to apply to the repository. For more information, see + /// Amazon ECR Repository + /// Policies in the Amazon Elastic Container Registry User Guide.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + ///

            If the policy you are attempting to set on a repository policy would prevent you from + /// setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental + /// repository lock outs.

            + pub fn force(mut self, input: bool) -> Self { + self.force = Some(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.force = input; + self + } + /// Consumes the builder and constructs a [`SetRepositoryPolicyInput`](crate::input::SetRepositoryPolicyInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::SetRepositoryPolicyInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::SetRepositoryPolicyInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + policy_text: self.policy_text, + force: self.force.unwrap_or_default(), + }) + } + } +} +#[doc(hidden)] +pub type SetRepositoryPolicyInputOperationOutputAlias = crate::operation::SetRepositoryPolicy; +#[doc(hidden)] +pub type SetRepositoryPolicyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl SetRepositoryPolicyInput { + /// Consumes the builder and constructs an Operation<[`SetRepositoryPolicy`](crate::operation::SetRepositoryPolicy)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::SetRepositoryPolicy, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_set_repository_policy(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::SetRepositoryPolicy::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "SetRepositoryPolicy", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`SetRepositoryPolicyInput`](crate::input::SetRepositoryPolicyInput) + pub fn builder() -> crate::input::set_repository_policy_input::Builder { + crate::input::set_repository_policy_input::Builder::default() + } +} + +/// See [`StartImageScanInput`](crate::input::StartImageScanInput) +pub mod start_image_scan_input { + /// A builder for [`StartImageScanInput`](crate::input::StartImageScanInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_id: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to start an image scan request. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository that contains the images to scan.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + /// Consumes the builder and constructs a [`StartImageScanInput`](crate::input::StartImageScanInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::StartImageScanInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::StartImageScanInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_id: self.image_id, + }) + } + } +} +#[doc(hidden)] +pub type StartImageScanInputOperationOutputAlias = crate::operation::StartImageScan; +#[doc(hidden)] +pub type StartImageScanInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl StartImageScanInput { + /// Consumes the builder and constructs an Operation<[`StartImageScan`](crate::operation::StartImageScan)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::StartImageScan, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_start_image_scan(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::StartImageScan::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "StartImageScan", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.StartImageScan", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`StartImageScanInput`](crate::input::StartImageScanInput) + pub fn builder() -> crate::input::start_image_scan_input::Builder { + crate::input::start_image_scan_input::Builder::default() + } +} + +/// See [`StartLifecyclePolicyPreviewInput`](crate::input::StartLifecyclePolicyPreviewInput) +pub mod start_lifecycle_policy_preview_input { + /// A builder for [`StartLifecyclePolicyPreviewInput`](crate::input::StartLifecyclePolicyPreviewInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to be evaluated.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The policy to be evaluated against. If you do not specify a policy, the current policy + /// for the repository is used.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + /// Consumes the builder and constructs a [`StartLifecyclePolicyPreviewInput`](crate::input::StartLifecyclePolicyPreviewInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::StartLifecyclePolicyPreviewInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::StartLifecyclePolicyPreviewInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + }) + } + } +} +#[doc(hidden)] +pub type StartLifecyclePolicyPreviewInputOperationOutputAlias = + crate::operation::StartLifecyclePolicyPreview; +#[doc(hidden)] +pub type StartLifecyclePolicyPreviewInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl StartLifecyclePolicyPreviewInput { + /// Consumes the builder and constructs an Operation<[`StartLifecyclePolicyPreview`](crate::operation::StartLifecyclePolicyPreview)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::StartLifecyclePolicyPreview, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_start_lifecycle_policy_preview(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::StartLifecyclePolicyPreview::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "StartLifecyclePolicyPreview", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`StartLifecyclePolicyPreviewInput`](crate::input::StartLifecyclePolicyPreviewInput) + pub fn builder() -> crate::input::start_lifecycle_policy_preview_input::Builder { + crate::input::start_lifecycle_policy_preview_input::Builder::default() + } +} + +/// See [`TagResourceInput`](crate::input::TagResourceInput) +pub mod tag_resource_input { + /// A builder for [`TagResourceInput`](crate::input::TagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tags: std::option::Option>, + } + impl Builder { + ///

            The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`TagResourceInput`](crate::input::TagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::TagResourceInput { + resource_arn: self.resource_arn, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type TagResourceInputOperationOutputAlias = crate::operation::TagResource; +#[doc(hidden)] +pub type TagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl TagResourceInput { + /// Consumes the builder and constructs an Operation<[`TagResource`](crate::operation::TagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::TagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_tag_resource(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::TagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("TagResource", "ecr")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.TagResource", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } +} + +/// See [`UntagResourceInput`](crate::input::UntagResourceInput) +pub mod untag_resource_input { + /// A builder for [`UntagResourceInput`](crate::input::UntagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tag_keys: std::option::Option>, + } + impl Builder { + ///

            The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tag_keys(mut self, input: impl Into) -> Self { + let mut v = self.tag_keys.unwrap_or_default(); + v.push(input.into()); + self.tag_keys = Some(v); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.tag_keys = input; + self + } + /// Consumes the builder and constructs a [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::UntagResourceInput { + resource_arn: self.resource_arn, + tag_keys: self.tag_keys, + }) + } + } +} +#[doc(hidden)] +pub type UntagResourceInputOperationOutputAlias = crate::operation::UntagResource; +#[doc(hidden)] +pub type UntagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UntagResourceInput { + /// Consumes the builder and constructs an Operation<[`UntagResource`](crate::operation::UntagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UntagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_untag_resource(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UntagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UntagResource", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.UntagResource", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } +} + +/// See [`UploadLayerPartInput`](crate::input::UploadLayerPartInput) +pub mod upload_layer_part_input { + /// A builder for [`UploadLayerPartInput`](crate::input::UploadLayerPartInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) upload_id: std::option::Option, + pub(crate) part_first_byte: std::option::Option, + pub(crate) part_last_byte: std::option::Option, + pub(crate) layer_part_blob: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry to which you are uploading layer + /// parts. If you do not specify a registry, the default registry is assumed.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to which you are uploading layer parts.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the layer part upload.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + ///

            The position of the first byte of the layer part witin the overall image layer.

            + pub fn part_first_byte(mut self, input: i64) -> Self { + self.part_first_byte = Some(input); + self + } + pub fn set_part_first_byte(mut self, input: std::option::Option) -> Self { + self.part_first_byte = input; + self + } + ///

            The position of the last byte of the layer part within the overall image layer.

            + pub fn part_last_byte(mut self, input: i64) -> Self { + self.part_last_byte = Some(input); + self + } + pub fn set_part_last_byte(mut self, input: std::option::Option) -> Self { + self.part_last_byte = input; + self + } + ///

            The base64-encoded layer part payload.

            + pub fn layer_part_blob(mut self, input: smithy_types::Blob) -> Self { + self.layer_part_blob = Some(input); + self + } + pub fn set_layer_part_blob( + mut self, + input: std::option::Option, + ) -> Self { + self.layer_part_blob = input; + self + } + /// Consumes the builder and constructs a [`UploadLayerPartInput`](crate::input::UploadLayerPartInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::UploadLayerPartInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::UploadLayerPartInput { + registry_id: self.registry_id, + repository_name: self.repository_name, + upload_id: self.upload_id, + part_first_byte: self.part_first_byte, + part_last_byte: self.part_last_byte, + layer_part_blob: self.layer_part_blob, + }) + } + } +} +#[doc(hidden)] +pub type UploadLayerPartInputOperationOutputAlias = crate::operation::UploadLayerPart; +#[doc(hidden)] +pub type UploadLayerPartInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UploadLayerPartInput { + /// Consumes the builder and constructs an Operation<[`UploadLayerPart`](crate::operation::UploadLayerPart)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UploadLayerPart, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_upload_layer_part(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UploadLayerPart::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UploadLayerPart", + "ecr", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart", + ); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UploadLayerPartInput`](crate::input::UploadLayerPartInput) + pub fn builder() -> crate::input::upload_layer_part_input::Builder { + crate::input::upload_layer_part_input::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UploadLayerPartInput { + ///

            The AWS account ID associated with the registry to which you are uploading layer + /// parts. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to which you are uploading layer parts.

            + pub repository_name: std::option::Option, + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the layer part upload.

            + pub upload_id: std::option::Option, + ///

            The position of the first byte of the layer part witin the overall image layer.

            + pub part_first_byte: std::option::Option, + ///

            The position of the last byte of the layer part within the overall image layer.

            + pub part_last_byte: std::option::Option, + ///

            The base64-encoded layer part payload.

            + pub layer_part_blob: std::option::Option, +} +impl std::fmt::Debug for UploadLayerPartInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UploadLayerPartInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("upload_id", &self.upload_id); + formatter.field("part_first_byte", &self.part_first_byte); + formatter.field("part_last_byte", &self.part_last_byte); + formatter.field("layer_part_blob", &self.layer_part_blob); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceInput { + ///

            The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub resource_arn: std::option::Option, + ///

            The keys of the tags to be removed.

            + pub tag_keys: std::option::Option>, +} +impl std::fmt::Debug for UntagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tag_keys", &self.tag_keys); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceInput { + ///

            The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported + /// resource is an Amazon ECR repository.

            + pub resource_arn: std::option::Option, + ///

            The tags to add to the resource. A tag is an array of key-value pairs. + /// Tag keys can have a maximum character length of 128 characters, and tag values can have + /// a maximum length of 256 characters.

            + pub tags: std::option::Option>, +} +impl std::fmt::Debug for TagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartLifecyclePolicyPreviewInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to be evaluated.

            + pub repository_name: std::option::Option, + ///

            The policy to be evaluated against. If you do not specify a policy, the current policy + /// for the repository is used.

            + pub lifecycle_policy_text: std::option::Option, +} +impl std::fmt::Debug for StartLifecyclePolicyPreviewInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartLifecyclePolicyPreviewInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartImageScanInput { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to start an image scan request. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository that contains the images to scan.

            + pub repository_name: std::option::Option, + ///

            An object with identifying information for an Amazon ECR image.

            + pub image_id: std::option::Option, +} +impl std::fmt::Debug for StartImageScanInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartImageScanInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_id", &self.image_id); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SetRepositoryPolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to receive the policy.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text to apply to the repository. For more information, see + /// Amazon ECR Repository + /// Policies in the Amazon Elastic Container Registry User Guide.

            + pub policy_text: std::option::Option, + ///

            If the policy you are attempting to set on a repository policy would prevent you from + /// setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental + /// repository lock outs.

            + pub force: bool, +} +impl std::fmt::Debug for SetRepositoryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("SetRepositoryPolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("policy_text", &self.policy_text); + formatter.field("force", &self.force); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutReplicationConfigurationInput { + ///

            An object representing the replication configuration for a registry.

            + pub replication_configuration: std::option::Option, +} +impl std::fmt::Debug for PutReplicationConfigurationInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutReplicationConfigurationInput"); + formatter.field("replication_configuration", &self.replication_configuration); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutRegistryPolicyInput { + ///

            The JSON policy text to apply to your registry. The policy text follows the same + /// format as IAM policy text. For more information, see Registry + /// permissions in the Amazon Elastic Container Registry User Guide.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for PutRegistryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutRegistryPolicyInput"); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutLifecyclePolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository. If you + /// do
 not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to receive the policy.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text to apply to the repository.

            + pub lifecycle_policy_text: std::option::Option, +} +impl std::fmt::Debug for PutLifecyclePolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutLifecyclePolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageTagMutabilityInput { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository in which to update the image tag mutability + /// settings.

            + pub repository_name: std::option::Option, + ///

            The tag mutability setting for the repository. If MUTABLE is specified, + /// image tags can be overwritten. If IMMUTABLE is specified, all image tags + /// within the repository will be immutable which will prevent them from being + /// overwritten.

            + pub image_tag_mutability: std::option::Option, +} +impl std::fmt::Debug for PutImageTagMutabilityInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageTagMutabilityInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_tag_mutability", &self.image_tag_mutability); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageScanningConfigurationInput { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to update the image scanning configuration setting. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository in which to update the image scanning configuration + /// setting.

            + pub repository_name: std::option::Option, + ///

            The image scanning configuration for the repository. This setting determines whether + /// images are scanned for known vulnerabilities after being pushed to the + /// repository.

            + pub image_scanning_configuration: std::option::Option, +} +impl std::fmt::Debug for PutImageScanningConfigurationInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageScanningConfigurationInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field( + "image_scanning_configuration", + &self.image_scanning_configuration, + ); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageInput { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to put the image. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository in which to put the image.

            + pub repository_name: std::option::Option, + ///

            The image manifest corresponding to the image to be uploaded.

            + pub image_manifest: std::option::Option, + ///

            The media type of the image manifest. If you push an image manifest that does not + /// contain the mediaType field, you must specify the + /// imageManifestMediaType in the request.

            + pub image_manifest_media_type: std::option::Option, + ///

            The tag to associate with the image. This parameter is required for images that use + /// the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.

            + pub image_tag: std::option::Option, + ///

            The image digest of the image manifest corresponding to the image.

            + pub image_digest: std::option::Option, +} +impl std::fmt::Debug for PutImageInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_manifest", &self.image_manifest); + formatter.field("image_manifest_media_type", &self.image_manifest_media_type); + formatter.field("image_tag", &self.image_tag); + formatter.field("image_digest", &self.image_digest); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceInput { + ///

            The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// only supported resource is an Amazon ECR repository.

            + pub resource_arn: std::option::Option, +} +impl std::fmt::Debug for ListTagsForResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListImagesInput { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to list images. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The repository with image IDs to be listed.

            + pub repository_name: std::option::Option, + ///

            The nextToken value returned from a previous paginated + /// ListImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub next_token: std::option::Option, + ///

            The maximum number of image results returned by ListImages in paginated + /// output. When this parameter is used, ListImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another ListImages request with the returned nextToken value. + /// This value can be between 1 and 1000. If this parameter is + /// not used, then ListImages returns up to 100 results and a + /// nextToken value, if applicable.

            + pub max_results: std::option::Option, + ///

            The filter key and value with which to filter your ListImages + /// results.

            + pub filter: std::option::Option, +} +impl std::fmt::Debug for ListImagesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListImagesInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.field("filter", &self.filter); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InitiateLayerUploadInput { + ///

            The AWS account ID associated with the registry to which you intend to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to which you intend to upload layers.

            + pub repository_name: std::option::Option, +} +impl std::fmt::Debug for InitiateLayerUploadInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InitiateLayerUploadInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetRepositoryPolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository with the policy to retrieve.

            + pub repository_name: std::option::Option, +} +impl std::fmt::Debug for GetRepositoryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetRepositoryPolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetRegistryPolicyInput {} +impl std::fmt::Debug for GetRegistryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetRegistryPolicyInput"); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetLifecyclePolicyPreviewInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository.

            + pub repository_name: std::option::Option, + ///

            The list of imageIDs to be included.

            + pub image_ids: std::option::Option>, + ///

            The nextToken value returned from a previous paginated + /// GetLifecyclePolicyPreviewRequest request where maxResults + /// was used and the
 results exceeded the value of that parameter. Pagination continues + /// from the end of the
 previous results that returned the nextToken value. + /// This value is
 null when there are no more results to return. This option + /// cannot be used when you specify images with imageIds.

            + pub next_token: std::option::Option, + ///

            The maximum number of repository results returned by + /// GetLifecyclePolicyPreviewRequest in
 paginated output. When this + /// parameter is used, GetLifecyclePolicyPreviewRequest only returns + /// maxResults results in a single page along with a + /// nextToken
 response element. The remaining results of the initial request + /// can be seen by sending
 another GetLifecyclePolicyPreviewRequest request + /// with the returned nextToken
 value. This value can be between + /// 1 and 1000. If this
 parameter is not used, then + /// GetLifecyclePolicyPreviewRequest returns up to
 100 + /// results and a nextToken value, if
 applicable. This option cannot be used + /// when you specify images with imageIds.

            + pub max_results: std::option::Option, + ///

            An optional parameter that filters results based on image tag status and all tags, if + /// tagged.

            + pub filter: std::option::Option, +} +impl std::fmt::Debug for GetLifecyclePolicyPreviewInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetLifecyclePolicyPreviewInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_ids", &self.image_ids); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.field("filter", &self.filter); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetLifecyclePolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository.

            + pub repository_name: std::option::Option, +} +impl std::fmt::Debug for GetLifecyclePolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetLifecyclePolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetDownloadUrlForLayerInput { + ///

            The AWS account ID associated with the registry that contains the image layer to + /// download. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository that is associated with the image layer to download.

            + pub repository_name: std::option::Option, + ///

            The digest of the image layer to download.

            + pub layer_digest: std::option::Option, +} +impl std::fmt::Debug for GetDownloadUrlForLayerInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetDownloadUrlForLayerInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("layer_digest", &self.layer_digest); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetAuthorizationTokenInput { + ///

            A list of AWS account IDs that are associated with the registries for which to get + /// AuthorizationData objects. If you do not specify a registry, the default registry is assumed.

            + pub registry_ids: std::option::Option>, +} +impl std::fmt::Debug for GetAuthorizationTokenInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetAuthorizationTokenInput"); + formatter.field("registry_ids", &self.registry_ids); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeRepositoriesInput { + ///

            The AWS account ID associated with the registry that contains the repositories to be + /// described. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            A list of repositories to describe. If this parameter is omitted, then all + /// repositories in a registry are described.

            + pub repository_names: std::option::Option>, + ///

            The nextToken value returned from a previous paginated + /// DescribeRepositories request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify repositories with repositoryNames.

            + /// + ///

            This token should be treated as an opaque identifier that is only used to + /// retrieve the next items in a list and not for other programmatic purposes.

            + ///
            + pub next_token: std::option::Option, + ///

            The maximum number of repository results returned by DescribeRepositories + /// in paginated output. When this parameter is used, DescribeRepositories only + /// returns maxResults results in a single page along with a + /// nextToken response element. The remaining results of the initial + /// request can be seen by sending another DescribeRepositories request with + /// the returned nextToken value. This value can be between 1 + /// and 1000. If this parameter is not used, then + /// DescribeRepositories returns up to 100 results and a + /// nextToken value, if applicable. This option cannot be used when you + /// specify repositories with repositoryNames.

            + pub max_results: std::option::Option, +} +impl std::fmt::Debug for DescribeRepositoriesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeRepositoriesInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_names", &self.repository_names); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeRegistryInput {} +impl std::fmt::Debug for DescribeRegistryInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeRegistryInput"); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeImageScanFindingsInput { + ///

            The AWS account ID associated with the registry that contains the repository in + /// which to describe the image scan findings for. If you do not specify a registry, the + /// default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The repository for the image for which to describe the scan findings.

            + pub repository_name: std::option::Option, + ///

            An object with identifying information for an Amazon ECR image.

            + pub image_id: std::option::Option, + ///

            The nextToken value returned from a previous paginated + /// DescribeImageScanFindings request where maxResults was + /// used and the results exceeded the value of that parameter. Pagination continues from the + /// end of the previous results that returned the nextToken value. This value + /// is null when there are no more results to return.

            + pub next_token: std::option::Option, + ///

            The maximum number of image scan results returned by + /// DescribeImageScanFindings in paginated output. When this parameter is + /// used, DescribeImageScanFindings only returns maxResults + /// results in a single page along with a nextToken response element. The + /// remaining results of the initial request can be seen by sending another + /// DescribeImageScanFindings request with the returned + /// nextToken value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImageScanFindings returns up to 100 + /// results and a nextToken value, if applicable.

            + pub max_results: std::option::Option, +} +impl std::fmt::Debug for DescribeImageScanFindingsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeImageScanFindingsInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_id", &self.image_id); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeImagesInput { + ///

            The AWS account ID associated with the registry that contains the repository in which + /// to describe images. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The repository that contains the images to describe.

            + pub repository_name: std::option::Option, + ///

            The list of image IDs for the requested repository.

            + pub image_ids: std::option::Option>, + ///

            The nextToken value returned from a previous paginated + /// DescribeImages request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value. This value is + /// null when there are no more results to return. This option cannot be + /// used when you specify images with imageIds.

            + pub next_token: std::option::Option, + ///

            The maximum number of repository results returned by DescribeImages in + /// paginated output. When this parameter is used, DescribeImages only returns + /// maxResults results in a single page along with a nextToken + /// response element. The remaining results of the initial request can be seen by sending + /// another DescribeImages request with the returned nextToken + /// value. This value can be between 1 and 1000. If this + /// parameter is not used, then DescribeImages returns up to + /// 100 results and a nextToken value, if applicable. This + /// option cannot be used when you specify images with imageIds.

            + pub max_results: std::option::Option, + ///

            The filter key and value with which to filter your DescribeImages + /// results.

            + pub filter: std::option::Option, +} +impl std::fmt::Debug for DescribeImagesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeImagesInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_ids", &self.image_ids); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.field("filter", &self.filter); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRepositoryPolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository policy to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository that is associated with the repository policy to + /// delete.

            + pub repository_name: std::option::Option, +} +impl std::fmt::Debug for DeleteRepositoryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRepositoryPolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRepositoryInput { + ///

            The AWS account ID associated with the registry that contains the repository to + /// delete. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to delete.

            + pub repository_name: std::option::Option, + ///

            If a repository contains images, forces the deletion.

            + pub force: bool, +} +impl std::fmt::Debug for DeleteRepositoryInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRepositoryInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("force", &self.force); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRegistryPolicyInput {} +impl std::fmt::Debug for DeleteRegistryPolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRegistryPolicyInput"); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteLifecyclePolicyInput { + ///

            The AWS account ID associated with the registry that contains the repository. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository.

            + pub repository_name: std::option::Option, +} +impl std::fmt::Debug for DeleteLifecyclePolicyInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteLifecyclePolicyInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateRepositoryInput { + ///

            The name to use for the repository. The repository name may be specified on its own + /// (such as nginx-web-app) or it can be prepended with a namespace to group + /// the repository into a category (such as project-a/nginx-web-app).

            + pub repository_name: std::option::Option, + ///

            The metadata that you apply to the repository to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define. + /// Tag keys can have a maximum character length of 128 characters, and tag values can have + /// a maximum length of 256 characters.

            + pub tags: std::option::Option>, + ///

            The tag mutability setting for the repository. If this parameter is omitted, the + /// default setting of MUTABLE will be used which will allow image tags to be + /// overwritten. If IMMUTABLE is specified, all image tags within the + /// repository will be immutable which will prevent them from being overwritten.

            + pub image_tag_mutability: std::option::Option, + ///

            The image scanning configuration for the repository. This determines whether images + /// are scanned for known vulnerabilities after being pushed to the repository.

            + pub image_scanning_configuration: std::option::Option, + ///

            The encryption configuration for the repository. This determines how the contents of + /// your repository are encrypted at rest.

            + pub encryption_configuration: std::option::Option, +} +impl std::fmt::Debug for CreateRepositoryInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateRepositoryInput"); + formatter.field("repository_name", &self.repository_name); + formatter.field("tags", &self.tags); + formatter.field("image_tag_mutability", &self.image_tag_mutability); + formatter.field( + "image_scanning_configuration", + &self.image_scanning_configuration, + ); + formatter.field("encryption_configuration", &self.encryption_configuration); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CompleteLayerUploadInput { + ///

            The AWS account ID associated with the registry to which to upload layers. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to associate with the image layer.

            + pub repository_name: std::option::Option, + ///

            The upload ID from a previous InitiateLayerUpload operation to + /// associate with the image layer.

            + pub upload_id: std::option::Option, + ///

            The sha256 digest of the image layer.

            + pub layer_digests: std::option::Option>, +} +impl std::fmt::Debug for CompleteLayerUploadInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CompleteLayerUploadInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("upload_id", &self.upload_id); + formatter.field("layer_digests", &self.layer_digests); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchGetImageInput { + ///

            The AWS account ID associated with the registry that contains the images to describe. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The repository that contains the images to describe.

            + pub repository_name: std::option::Option, + ///

            A list of image ID references that correspond to images to describe. The format of the + /// imageIds reference is imageTag=tag or + /// imageDigest=digest.

            + pub image_ids: std::option::Option>, + ///

            The accepted media types for the request.

            + ///

            Valid values: application/vnd.docker.distribution.manifest.v1+json | + /// application/vnd.docker.distribution.manifest.v2+json | + /// application/vnd.oci.image.manifest.v1+json + ///

            + pub accepted_media_types: std::option::Option>, +} +impl std::fmt::Debug for BatchGetImageInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchGetImageInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_ids", &self.image_ids); + formatter.field("accepted_media_types", &self.accepted_media_types); + formatter.finish() + } +} + +///

            Deletes specified images within a specified repository. Images are specified with +/// either the imageTag or imageDigest.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchDeleteImageInput { + ///

            The AWS account ID associated with the registry that contains the image to delete. + /// If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The repository that contains the image to delete.

            + pub repository_name: std::option::Option, + ///

            A list of image ID references that correspond to images to delete. The format of the + /// imageIds reference is imageTag=tag or + /// imageDigest=digest.

            + pub image_ids: std::option::Option>, +} +impl std::fmt::Debug for BatchDeleteImageInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchDeleteImageInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_ids", &self.image_ids); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchCheckLayerAvailabilityInput { + ///

            The AWS account ID associated with the registry that contains the image layers to + /// check. If you do not specify a registry, the default registry is assumed.

            + pub registry_id: std::option::Option, + ///

            The name of the repository that is associated with the image layers to check.

            + pub repository_name: std::option::Option, + ///

            The digests of the image layers to check.

            + pub layer_digests: std::option::Option>, +} +impl std::fmt::Debug for BatchCheckLayerAvailabilityInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchCheckLayerAvailabilityInput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("layer_digests", &self.layer_digests); + formatter.finish() + } +} diff --git a/sdk/ecr/src/json_deser.rs b/sdk/ecr/src/json_deser.rs new file mode 100644 index 000000000000..b19aa14fd5f5 --- /dev/null +++ b/sdk/ecr/src/json_deser.rs @@ -0,0 +1,4827 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_invalid_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_repository_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::repository_not_found_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_server_exceptionjson_err( + input: &[u8], + mut builder: crate::error::server_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_batch_check_layer_availability( + input: &[u8], + mut builder: crate::output::batch_check_layer_availability_output::Builder, +) -> Result< + crate::output::batch_check_layer_availability_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "layers" => { + builder = + builder.set_layers(crate::json_deser::deser_list_layer_list(tokens)?); + } + "failures" => { + builder = builder.set_failures( + crate::json_deser::deser_list_layer_failure_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_batch_delete_image( + input: &[u8], + mut builder: crate::output::batch_delete_image_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageIds" => { + builder = builder.set_image_ids( + crate::json_deser::deser_list_image_identifier_list(tokens)?, + ); + } + "failures" => { + builder = builder.set_failures( + crate::json_deser::deser_list_image_failure_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_batch_get_image( + input: &[u8], + mut builder: crate::output::batch_get_image_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "images" => { + builder = + builder.set_images(crate::json_deser::deser_list_image_list(tokens)?); + } + "failures" => { + builder = builder.set_failures( + crate::json_deser::deser_list_image_failure_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_empty_upload_exceptionjson_err( + input: &[u8], + mut builder: crate::error::empty_upload_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_layer_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_layer_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "kmsError" => { + builder = builder.set_kms_error( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_layer_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::layer_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_layer_part_too_small_exceptionjson_err( + input: &[u8], + mut builder: crate::error::layer_part_too_small_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_upload_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::upload_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_complete_layer_upload( + input: &[u8], + mut builder: crate::output::complete_layer_upload_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uploadId" => { + builder = builder.set_upload_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "layerDigest" => { + builder = builder.set_layer_digest( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_tag_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_tag_parameter_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_repository_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::repository_already_exists_exception::Builder, +) -> Result< + crate::error::repository_already_exists_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_too_many_tags_exceptionjson_err( + input: &[u8], + mut builder: crate::error::too_many_tags_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_repository( + input: &[u8], + mut builder: crate::output::create_repository_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "repository" => { + builder = builder + .set_repository(crate::json_deser::deser_structure_repository(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_lifecycle_policy_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::lifecycle_policy_not_found_exception::Builder, +) -> Result< + crate::error::lifecycle_policy_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_lifecycle_policy( + input: &[u8], + mut builder: crate::output::delete_lifecycle_policy_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lifecyclePolicyText" => { + builder = builder.set_lifecycle_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastEvaluatedAt" => { + builder = builder.set_last_evaluated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_registry_policy_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::registry_policy_not_found_exception::Builder, +) -> Result< + crate::error::registry_policy_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_registry_policy( + input: &[u8], + mut builder: crate::output::delete_registry_policy_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_repository_not_empty_exceptionjson_err( + input: &[u8], + mut builder: crate::error::repository_not_empty_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_repository( + input: &[u8], + mut builder: crate::output::delete_repository_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "repository" => { + builder = builder + .set_repository(crate::json_deser::deser_structure_repository(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_repository_policy_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::repository_policy_not_found_exception::Builder, +) -> Result< + crate::error::repository_policy_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_repository_policy( + input: &[u8], + mut builder: crate::output::delete_repository_policy_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_image_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::image_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_images( + input: &[u8], + mut builder: crate::output::describe_images_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageDetails" => { + builder = builder.set_image_details( + crate::json_deser::deser_list_image_detail_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_scan_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::scan_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_image_scan_findings( + input: &[u8], + mut builder: crate::output::describe_image_scan_findings_output::Builder, +) -> Result< + crate::output::describe_image_scan_findings_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageId" => { + builder = builder.set_image_id( + crate::json_deser::deser_structure_image_identifier(tokens)?, + ); + } + "imageScanStatus" => { + builder = builder.set_image_scan_status( + crate::json_deser::deser_structure_image_scan_status(tokens)?, + ); + } + "imageScanFindings" => { + builder = builder.set_image_scan_findings( + crate::json_deser::deser_structure_image_scan_findings(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_validation_exceptionjson_err( + input: &[u8], + mut builder: crate::error::validation_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_registry( + input: &[u8], + mut builder: crate::output::describe_registry_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "replicationConfiguration" => { + builder = builder.set_replication_configuration( + crate::json_deser::deser_structure_replication_configuration(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_repositories( + input: &[u8], + mut builder: crate::output::describe_repositories_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "repositories" => { + builder = builder.set_repositories( + crate::json_deser::deser_list_repository_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_authorization_token( + input: &[u8], + mut builder: crate::output::get_authorization_token_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authorizationData" => { + builder = builder.set_authorization_data( + crate::json_deser::deser_list_authorization_data_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_layer_inaccessible_exceptionjson_err( + input: &[u8], + mut builder: crate::error::layer_inaccessible_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_layers_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::layers_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_download_url_for_layer( + input: &[u8], + mut builder: crate::output::get_download_url_for_layer_output::Builder, +) -> Result< + crate::output::get_download_url_for_layer_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "downloadUrl" => { + builder = builder.set_download_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "layerDigest" => { + builder = builder.set_layer_digest( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_lifecycle_policy( + input: &[u8], + mut builder: crate::output::get_lifecycle_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lifecyclePolicyText" => { + builder = builder.set_lifecycle_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastEvaluatedAt" => { + builder = builder.set_last_evaluated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_lifecycle_policy_preview_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::lifecycle_policy_preview_not_found_exception::Builder, +) -> Result< + crate::error::lifecycle_policy_preview_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_lifecycle_policy_preview( + input: &[u8], + mut builder: crate::output::get_lifecycle_policy_preview_output::Builder, +) -> Result< + crate::output::get_lifecycle_policy_preview_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lifecyclePolicyText" => { + builder = builder.set_lifecycle_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LifecyclePolicyPreviewStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "previewResults" => { + builder = builder.set_preview_results( + crate::json_deser::deser_list_lifecycle_policy_preview_result_list( + tokens, + )?, + ); + } + "summary" => { + builder = builder.set_summary( + crate::json_deser::deser_structure_lifecycle_policy_preview_summary( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_registry_policy( + input: &[u8], + mut builder: crate::output::get_registry_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_repository_policy( + input: &[u8], + mut builder: crate::output::get_repository_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_initiate_layer_upload( + input: &[u8], + mut builder: crate::output::initiate_layer_upload_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "uploadId" => { + builder = builder.set_upload_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "partSize" => { + builder = builder.set_part_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_images( + input: &[u8], + mut builder: crate::output::list_images_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageIds" => { + builder = builder.set_image_ids( + crate::json_deser::deser_list_image_identifier_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_tags_for_resource( + input: &[u8], + mut builder: crate::output::list_tags_for_resource_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_image_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::image_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_image_digest_does_not_match_exceptionjson_err( + input: &[u8], + mut builder: crate::error::image_digest_does_not_match_exception::Builder, +) -> Result< + crate::error::image_digest_does_not_match_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_image_tag_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::image_tag_already_exists_exception::Builder, +) -> Result< + crate::error::image_tag_already_exists_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_referenced_images_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::referenced_images_not_found_exception::Builder, +) -> Result< + crate::error::referenced_images_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_image( + input: &[u8], + mut builder: crate::output::put_image_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "image" => { + builder = + builder.set_image(crate::json_deser::deser_structure_image(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_image_scanning_configuration( + input: &[u8], + mut builder: crate::output::put_image_scanning_configuration_output::Builder, +) -> Result< + crate::output::put_image_scanning_configuration_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageScanningConfiguration" => { + builder = builder.set_image_scanning_configuration( + crate::json_deser::deser_structure_image_scanning_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_image_tag_mutability( + input: &[u8], + mut builder: crate::output::put_image_tag_mutability_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageTagMutability" => { + builder = builder.set_image_tag_mutability( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ImageTagMutability::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_lifecycle_policy( + input: &[u8], + mut builder: crate::output::put_lifecycle_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lifecyclePolicyText" => { + builder = builder.set_lifecycle_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_registry_policy( + input: &[u8], + mut builder: crate::output::put_registry_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_replication_configuration( + input: &[u8], + mut builder: crate::output::put_replication_configuration_output::Builder, +) -> Result< + crate::output::put_replication_configuration_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "replicationConfiguration" => { + builder = builder.set_replication_configuration( + crate::json_deser::deser_structure_replication_configuration(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_set_repository_policy( + input: &[u8], + mut builder: crate::output::set_repository_policy_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "policyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_image_type_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_image_type_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_start_image_scan( + input: &[u8], + mut builder: crate::output::start_image_scan_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageId" => { + builder = builder.set_image_id( + crate::json_deser::deser_structure_image_identifier(tokens)?, + ); + } + "imageScanStatus" => { + builder = builder.set_image_scan_status( + crate::json_deser::deser_structure_image_scan_status(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_lifecycle_policy_preview_in_progress_exceptionjson_err( + input: &[u8], + mut builder: crate::error::lifecycle_policy_preview_in_progress_exception::Builder, +) -> Result< + crate::error::lifecycle_policy_preview_in_progress_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_start_lifecycle_policy_preview( + input: &[u8], + mut builder: crate::output::start_lifecycle_policy_preview_output::Builder, +) -> Result< + crate::output::start_lifecycle_policy_preview_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lifecyclePolicyText" => { + builder = builder.set_lifecycle_policy_text( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LifecyclePolicyPreviewStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_layer_part_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_layer_part_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uploadId" => { + builder = builder.set_upload_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastValidByteReceived" => { + builder = builder.set_last_valid_byte_received( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_upload_layer_part( + input: &[u8], + mut builder: crate::output::upload_layer_part_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uploadId" => { + builder = builder.set_upload_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastByteReceived" => { + builder = builder.set_last_byte_received( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_layer_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_layer(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_layer_failure_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_layer_failure(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_identifier_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image_identifier(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_failure_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image_failure(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_repository<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Repository::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "repositoryArn" => { + builder = builder.set_repository_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryUri" => { + builder = builder.set_repository_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "imageTagMutability" => { + builder = builder.set_image_tag_mutability( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ImageTagMutability::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "imageScanningConfiguration" => { + builder = builder.set_image_scanning_configuration( + crate::json_deser::deser_structure_image_scanning_configuration(tokens)? + ); + } + "encryptionConfiguration" => { + builder = builder.set_encryption_configuration( + crate::json_deser::deser_structure_encryption_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_detail_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_image_identifier<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageIdentifier::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageDigest" => { + builder = builder.set_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageTag" => { + builder = builder.set_image_tag( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_scan_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageScanStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ScanStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_scan_findings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageScanFindings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageScanCompletedAt" => { + builder = builder.set_image_scan_completed_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "vulnerabilitySourceUpdatedAt" => { + builder = builder.set_vulnerability_source_updated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "findings" => { + builder = builder.set_findings( + crate::json_deser::deser_list_image_scan_finding_list(tokens)?, + ); + } + "findingSeverityCounts" => { + builder = builder.set_finding_severity_counts( + crate::json_deser::deser_map_finding_severity_counts(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replication_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicationConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "rules" => { + builder = builder.set_rules( + crate::json_deser::deser_list_replication_rule_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_repository_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_repository(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_authorization_data_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_authorization_data(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_lifecycle_policy_preview_result_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_lifecycle_policy_preview_result( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_lifecycle_policy_preview_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LifecyclePolicyPreviewSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "expiringImageTotalCount" => { + builder = builder.set_expiring_image_total_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_image<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Image::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageId" => { + builder = builder.set_image_id( + crate::json_deser::deser_structure_image_identifier(tokens)?, + ); + } + "imageManifest" => { + builder = builder.set_image_manifest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageManifestMediaType" => { + builder = builder.set_image_manifest_media_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_scanning_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageScanningConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scanOnPush" => { + builder = builder.set_scan_on_push( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_layer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Layer::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "layerDigest" => { + builder = builder.set_layer_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "layerAvailability" => { + builder = builder.set_layer_availability( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LayerAvailability::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "layerSize" => { + builder = builder.set_layer_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "mediaType" => { + builder = builder.set_media_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_layer_failure<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LayerFailure::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "layerDigest" => { + builder = builder.set_layer_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "failureCode" => { + builder = builder.set_failure_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LayerFailureCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "failureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_failure<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageFailure::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageId" => { + builder = builder.set_image_id( + crate::json_deser::deser_structure_image_identifier(tokens)?, + ); + } + "failureCode" => { + builder = builder.set_failure_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ImageFailureCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "failureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_encryption_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EncryptionConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "encryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "kmsKey" => { + builder = builder.set_kms_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryName" => { + builder = builder.set_repository_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageDigest" => { + builder = builder.set_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageTags" => { + builder = builder.set_image_tags( + crate::json_deser::deser_list_image_tag_list(tokens)?, + ); + } + "imageSizeInBytes" => { + builder = builder.set_image_size_in_bytes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "imagePushedAt" => { + builder = builder.set_image_pushed_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "imageScanStatus" => { + builder = builder.set_image_scan_status( + crate::json_deser::deser_structure_image_scan_status(tokens)?, + ); + } + "imageScanFindingsSummary" => { + builder = builder.set_image_scan_findings_summary( + crate::json_deser::deser_structure_image_scan_findings_summary( + tokens, + )?, + ); + } + "imageManifestMediaType" => { + builder = builder.set_image_manifest_media_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "artifactMediaType" => { + builder = builder.set_artifact_media_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_scan_finding_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image_scan_finding(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_finding_severity_counts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key + .to_unescaped() + .map(|u| crate::model::FindingSeverity::from(u.as_ref()))?; + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()); + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replication_rule_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_replication_rule(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_authorization_data<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AuthorizationData::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "authorizationToken" => { + builder = builder.set_authorization_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "expiresAt" => { + builder = builder.set_expires_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "proxyEndpoint" => { + builder = builder.set_proxy_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_lifecycle_policy_preview_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LifecyclePolicyPreviewResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageTags" => { + builder = builder.set_image_tags( + crate::json_deser::deser_list_image_tag_list(tokens)?, + ); + } + "imageDigest" => { + builder = builder.set_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imagePushedAt" => { + builder = builder.set_image_pushed_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "action" => { + builder = builder.set_action( + crate::json_deser::deser_structure_lifecycle_policy_rule_action(tokens)? + ); + } + "appliedRulePriority" => { + builder = builder.set_applied_rule_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_image_scan_findings_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageScanFindingsSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "imageScanCompletedAt" => { + builder = builder.set_image_scan_completed_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "vulnerabilitySourceUpdatedAt" => { + builder = builder.set_vulnerability_source_updated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "findingSeverityCounts" => { + builder = builder.set_finding_severity_counts( + crate::json_deser::deser_map_finding_severity_counts(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_scan_finding<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageScanFinding::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FindingSeverity::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_list_attribute_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replication_rule<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicationRule::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list_replication_destination_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_lifecycle_policy_rule_action<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LifecyclePolicyRuleAction::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ImageActionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attribute_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attribute(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replication_destination_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replication_destination(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_attribute<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Attribute::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_replication_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicationDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "registryId" => { + builder = builder.set_registry_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/ecr/src/json_errors.rs b/sdk/ecr/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/ecr/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/ecr/src/json_ser.rs b/sdk/ecr/src/json_ser.rs new file mode 100644 index 000000000000..4b137844fb54 --- /dev/null +++ b/sdk/ecr/src/json_ser.rs @@ -0,0 +1,735 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn serialize_structure_batch_check_layer_availability_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::BatchCheckLayerAvailabilityInput, +) { + if let Some(var_1) = &input.registry_id { + object.key("registryId").string(var_1); + } + if let Some(var_2) = &input.repository_name { + object.key("repositoryName").string(var_2); + } + if let Some(var_3) = &input.layer_digests { + let mut array_4 = object.key("layerDigests").start_array(); + for item_5 in var_3 { + { + array_4.value().string(item_5); + } + } + array_4.finish(); + } +} + +pub fn serialize_structure_batch_delete_image_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::BatchDeleteImageInput, +) { + if let Some(var_6) = &input.registry_id { + object.key("registryId").string(var_6); + } + if let Some(var_7) = &input.repository_name { + object.key("repositoryName").string(var_7); + } + if let Some(var_8) = &input.image_ids { + let mut array_9 = object.key("imageIds").start_array(); + for item_10 in var_8 { + { + let mut object_11 = array_9.value().start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_11, item_10); + object_11.finish(); + } + } + array_9.finish(); + } +} + +pub fn serialize_structure_batch_get_image_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::BatchGetImageInput, +) { + if let Some(var_12) = &input.registry_id { + object.key("registryId").string(var_12); + } + if let Some(var_13) = &input.repository_name { + object.key("repositoryName").string(var_13); + } + if let Some(var_14) = &input.image_ids { + let mut array_15 = object.key("imageIds").start_array(); + for item_16 in var_14 { + { + let mut object_17 = array_15.value().start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_17, item_16); + object_17.finish(); + } + } + array_15.finish(); + } + if let Some(var_18) = &input.accepted_media_types { + let mut array_19 = object.key("acceptedMediaTypes").start_array(); + for item_20 in var_18 { + { + array_19.value().string(item_20); + } + } + array_19.finish(); + } +} + +pub fn serialize_structure_complete_layer_upload_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CompleteLayerUploadInput, +) { + if let Some(var_21) = &input.registry_id { + object.key("registryId").string(var_21); + } + if let Some(var_22) = &input.repository_name { + object.key("repositoryName").string(var_22); + } + if let Some(var_23) = &input.upload_id { + object.key("uploadId").string(var_23); + } + if let Some(var_24) = &input.layer_digests { + let mut array_25 = object.key("layerDigests").start_array(); + for item_26 in var_24 { + { + array_25.value().string(item_26); + } + } + array_25.finish(); + } +} + +pub fn serialize_structure_create_repository_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CreateRepositoryInput, +) { + if let Some(var_27) = &input.repository_name { + object.key("repositoryName").string(var_27); + } + if let Some(var_28) = &input.tags { + let mut array_29 = object.key("tags").start_array(); + for item_30 in var_28 { + { + let mut object_31 = array_29.value().start_object(); + crate::json_ser::serialize_structure_tag(&mut object_31, item_30); + object_31.finish(); + } + } + array_29.finish(); + } + if let Some(var_32) = &input.image_tag_mutability { + object.key("imageTagMutability").string(var_32.as_str()); + } + if let Some(var_33) = &input.image_scanning_configuration { + let mut object_34 = object.key("imageScanningConfiguration").start_object(); + crate::json_ser::serialize_structure_image_scanning_configuration(&mut object_34, var_33); + object_34.finish(); + } + if let Some(var_35) = &input.encryption_configuration { + let mut object_36 = object.key("encryptionConfiguration").start_object(); + crate::json_ser::serialize_structure_encryption_configuration(&mut object_36, var_35); + object_36.finish(); + } +} + +pub fn serialize_structure_delete_lifecycle_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DeleteLifecyclePolicyInput, +) { + if let Some(var_37) = &input.registry_id { + object.key("registryId").string(var_37); + } + if let Some(var_38) = &input.repository_name { + object.key("repositoryName").string(var_38); + } +} + +pub fn serialize_structure_delete_repository_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DeleteRepositoryInput, +) { + if let Some(var_39) = &input.registry_id { + object.key("registryId").string(var_39); + } + if let Some(var_40) = &input.repository_name { + object.key("repositoryName").string(var_40); + } + if input.force { + object.key("force").boolean(input.force); + } +} + +pub fn serialize_structure_delete_repository_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DeleteRepositoryPolicyInput, +) { + if let Some(var_41) = &input.registry_id { + object.key("registryId").string(var_41); + } + if let Some(var_42) = &input.repository_name { + object.key("repositoryName").string(var_42); + } +} + +pub fn serialize_structure_describe_images_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DescribeImagesInput, +) { + if let Some(var_43) = &input.registry_id { + object.key("registryId").string(var_43); + } + if let Some(var_44) = &input.repository_name { + object.key("repositoryName").string(var_44); + } + if let Some(var_45) = &input.image_ids { + let mut array_46 = object.key("imageIds").start_array(); + for item_47 in var_45 { + { + let mut object_48 = array_46.value().start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_48, item_47); + object_48.finish(); + } + } + array_46.finish(); + } + if let Some(var_49) = &input.next_token { + object.key("nextToken").string(var_49); + } + if let Some(var_50) = &input.max_results { + object.key("maxResults").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_50).into()), + ); + } + if let Some(var_51) = &input.filter { + let mut object_52 = object.key("filter").start_object(); + crate::json_ser::serialize_structure_describe_images_filter(&mut object_52, var_51); + object_52.finish(); + } +} + +pub fn serialize_structure_describe_image_scan_findings_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DescribeImageScanFindingsInput, +) { + if let Some(var_53) = &input.registry_id { + object.key("registryId").string(var_53); + } + if let Some(var_54) = &input.repository_name { + object.key("repositoryName").string(var_54); + } + if let Some(var_55) = &input.image_id { + let mut object_56 = object.key("imageId").start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_56, var_55); + object_56.finish(); + } + if let Some(var_57) = &input.next_token { + object.key("nextToken").string(var_57); + } + if let Some(var_58) = &input.max_results { + object.key("maxResults").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_58).into()), + ); + } +} + +pub fn serialize_structure_describe_repositories_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DescribeRepositoriesInput, +) { + if let Some(var_59) = &input.registry_id { + object.key("registryId").string(var_59); + } + if let Some(var_60) = &input.repository_names { + let mut array_61 = object.key("repositoryNames").start_array(); + for item_62 in var_60 { + { + array_61.value().string(item_62); + } + } + array_61.finish(); + } + if let Some(var_63) = &input.next_token { + object.key("nextToken").string(var_63); + } + if let Some(var_64) = &input.max_results { + object.key("maxResults").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_64).into()), + ); + } +} + +pub fn serialize_structure_get_authorization_token_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::GetAuthorizationTokenInput, +) { + if let Some(var_65) = &input.registry_ids { + let mut array_66 = object.key("registryIds").start_array(); + for item_67 in var_65 { + { + array_66.value().string(item_67); + } + } + array_66.finish(); + } +} + +pub fn serialize_structure_get_download_url_for_layer_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::GetDownloadUrlForLayerInput, +) { + if let Some(var_68) = &input.registry_id { + object.key("registryId").string(var_68); + } + if let Some(var_69) = &input.repository_name { + object.key("repositoryName").string(var_69); + } + if let Some(var_70) = &input.layer_digest { + object.key("layerDigest").string(var_70); + } +} + +pub fn serialize_structure_get_lifecycle_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::GetLifecyclePolicyInput, +) { + if let Some(var_71) = &input.registry_id { + object.key("registryId").string(var_71); + } + if let Some(var_72) = &input.repository_name { + object.key("repositoryName").string(var_72); + } +} + +pub fn serialize_structure_get_lifecycle_policy_preview_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::GetLifecyclePolicyPreviewInput, +) { + if let Some(var_73) = &input.registry_id { + object.key("registryId").string(var_73); + } + if let Some(var_74) = &input.repository_name { + object.key("repositoryName").string(var_74); + } + if let Some(var_75) = &input.image_ids { + let mut array_76 = object.key("imageIds").start_array(); + for item_77 in var_75 { + { + let mut object_78 = array_76.value().start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_78, item_77); + object_78.finish(); + } + } + array_76.finish(); + } + if let Some(var_79) = &input.next_token { + object.key("nextToken").string(var_79); + } + if let Some(var_80) = &input.max_results { + object.key("maxResults").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_80).into()), + ); + } + if let Some(var_81) = &input.filter { + let mut object_82 = object.key("filter").start_object(); + crate::json_ser::serialize_structure_lifecycle_policy_preview_filter( + &mut object_82, + var_81, + ); + object_82.finish(); + } +} + +pub fn serialize_structure_get_repository_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::GetRepositoryPolicyInput, +) { + if let Some(var_83) = &input.registry_id { + object.key("registryId").string(var_83); + } + if let Some(var_84) = &input.repository_name { + object.key("repositoryName").string(var_84); + } +} + +pub fn serialize_structure_initiate_layer_upload_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::InitiateLayerUploadInput, +) { + if let Some(var_85) = &input.registry_id { + object.key("registryId").string(var_85); + } + if let Some(var_86) = &input.repository_name { + object.key("repositoryName").string(var_86); + } +} + +pub fn serialize_structure_list_images_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::ListImagesInput, +) { + if let Some(var_87) = &input.registry_id { + object.key("registryId").string(var_87); + } + if let Some(var_88) = &input.repository_name { + object.key("repositoryName").string(var_88); + } + if let Some(var_89) = &input.next_token { + object.key("nextToken").string(var_89); + } + if let Some(var_90) = &input.max_results { + object.key("maxResults").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_90).into()), + ); + } + if let Some(var_91) = &input.filter { + let mut object_92 = object.key("filter").start_object(); + crate::json_ser::serialize_structure_list_images_filter(&mut object_92, var_91); + object_92.finish(); + } +} + +pub fn serialize_structure_list_tags_for_resource_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::ListTagsForResourceInput, +) { + if let Some(var_93) = &input.resource_arn { + object.key("resourceArn").string(var_93); + } +} + +pub fn serialize_structure_put_image_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutImageInput, +) { + if let Some(var_94) = &input.registry_id { + object.key("registryId").string(var_94); + } + if let Some(var_95) = &input.repository_name { + object.key("repositoryName").string(var_95); + } + if let Some(var_96) = &input.image_manifest { + object.key("imageManifest").string(var_96); + } + if let Some(var_97) = &input.image_manifest_media_type { + object.key("imageManifestMediaType").string(var_97); + } + if let Some(var_98) = &input.image_tag { + object.key("imageTag").string(var_98); + } + if let Some(var_99) = &input.image_digest { + object.key("imageDigest").string(var_99); + } +} + +pub fn serialize_structure_put_image_scanning_configuration_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutImageScanningConfigurationInput, +) { + if let Some(var_100) = &input.registry_id { + object.key("registryId").string(var_100); + } + if let Some(var_101) = &input.repository_name { + object.key("repositoryName").string(var_101); + } + if let Some(var_102) = &input.image_scanning_configuration { + let mut object_103 = object.key("imageScanningConfiguration").start_object(); + crate::json_ser::serialize_structure_image_scanning_configuration(&mut object_103, var_102); + object_103.finish(); + } +} + +pub fn serialize_structure_put_image_tag_mutability_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutImageTagMutabilityInput, +) { + if let Some(var_104) = &input.registry_id { + object.key("registryId").string(var_104); + } + if let Some(var_105) = &input.repository_name { + object.key("repositoryName").string(var_105); + } + if let Some(var_106) = &input.image_tag_mutability { + object.key("imageTagMutability").string(var_106.as_str()); + } +} + +pub fn serialize_structure_put_lifecycle_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutLifecyclePolicyInput, +) { + if let Some(var_107) = &input.registry_id { + object.key("registryId").string(var_107); + } + if let Some(var_108) = &input.repository_name { + object.key("repositoryName").string(var_108); + } + if let Some(var_109) = &input.lifecycle_policy_text { + object.key("lifecyclePolicyText").string(var_109); + } +} + +pub fn serialize_structure_put_registry_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutRegistryPolicyInput, +) { + if let Some(var_110) = &input.policy_text { + object.key("policyText").string(var_110); + } +} + +pub fn serialize_structure_put_replication_configuration_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::PutReplicationConfigurationInput, +) { + if let Some(var_111) = &input.replication_configuration { + let mut object_112 = object.key("replicationConfiguration").start_object(); + crate::json_ser::serialize_structure_replication_configuration(&mut object_112, var_111); + object_112.finish(); + } +} + +pub fn serialize_structure_set_repository_policy_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::SetRepositoryPolicyInput, +) { + if let Some(var_113) = &input.registry_id { + object.key("registryId").string(var_113); + } + if let Some(var_114) = &input.repository_name { + object.key("repositoryName").string(var_114); + } + if let Some(var_115) = &input.policy_text { + object.key("policyText").string(var_115); + } + if input.force { + object.key("force").boolean(input.force); + } +} + +pub fn serialize_structure_start_image_scan_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::StartImageScanInput, +) { + if let Some(var_116) = &input.registry_id { + object.key("registryId").string(var_116); + } + if let Some(var_117) = &input.repository_name { + object.key("repositoryName").string(var_117); + } + if let Some(var_118) = &input.image_id { + let mut object_119 = object.key("imageId").start_object(); + crate::json_ser::serialize_structure_image_identifier(&mut object_119, var_118); + object_119.finish(); + } +} + +pub fn serialize_structure_start_lifecycle_policy_preview_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::StartLifecyclePolicyPreviewInput, +) { + if let Some(var_120) = &input.registry_id { + object.key("registryId").string(var_120); + } + if let Some(var_121) = &input.repository_name { + object.key("repositoryName").string(var_121); + } + if let Some(var_122) = &input.lifecycle_policy_text { + object.key("lifecyclePolicyText").string(var_122); + } +} + +pub fn serialize_structure_tag_resource_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::TagResourceInput, +) { + if let Some(var_123) = &input.resource_arn { + object.key("resourceArn").string(var_123); + } + if let Some(var_124) = &input.tags { + let mut array_125 = object.key("tags").start_array(); + for item_126 in var_124 { + { + let mut object_127 = array_125.value().start_object(); + crate::json_ser::serialize_structure_tag(&mut object_127, item_126); + object_127.finish(); + } + } + array_125.finish(); + } +} + +pub fn serialize_structure_untag_resource_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UntagResourceInput, +) { + if let Some(var_128) = &input.resource_arn { + object.key("resourceArn").string(var_128); + } + if let Some(var_129) = &input.tag_keys { + let mut array_130 = object.key("tagKeys").start_array(); + for item_131 in var_129 { + { + array_130.value().string(item_131); + } + } + array_130.finish(); + } +} + +pub fn serialize_structure_upload_layer_part_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UploadLayerPartInput, +) { + if let Some(var_132) = &input.registry_id { + object.key("registryId").string(var_132); + } + if let Some(var_133) = &input.repository_name { + object.key("repositoryName").string(var_133); + } + if let Some(var_134) = &input.upload_id { + object.key("uploadId").string(var_134); + } + if let Some(var_135) = &input.part_first_byte { + object.key("partFirstByte").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_135).into()), + ); + } + if let Some(var_136) = &input.part_last_byte { + object.key("partLastByte").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_136).into()), + ); + } + if let Some(var_137) = &input.layer_part_blob { + object + .key("layerPartBlob") + .string_unchecked(&smithy_types::base64::encode(var_137)); + } +} + +pub fn serialize_structure_image_identifier( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ImageIdentifier, +) { + if let Some(var_138) = &input.image_digest { + object.key("imageDigest").string(var_138); + } + if let Some(var_139) = &input.image_tag { + object.key("imageTag").string(var_139); + } +} + +pub fn serialize_structure_tag( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::Tag, +) { + if let Some(var_140) = &input.key { + object.key("Key").string(var_140); + } + if let Some(var_141) = &input.value { + object.key("Value").string(var_141); + } +} + +pub fn serialize_structure_image_scanning_configuration( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ImageScanningConfiguration, +) { + if input.scan_on_push { + object.key("scanOnPush").boolean(input.scan_on_push); + } +} + +pub fn serialize_structure_encryption_configuration( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::EncryptionConfiguration, +) { + if let Some(var_142) = &input.encryption_type { + object.key("encryptionType").string(var_142.as_str()); + } + if let Some(var_143) = &input.kms_key { + object.key("kmsKey").string(var_143); + } +} + +pub fn serialize_structure_describe_images_filter( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::DescribeImagesFilter, +) { + if let Some(var_144) = &input.tag_status { + object.key("tagStatus").string(var_144.as_str()); + } +} + +pub fn serialize_structure_lifecycle_policy_preview_filter( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::LifecyclePolicyPreviewFilter, +) { + if let Some(var_145) = &input.tag_status { + object.key("tagStatus").string(var_145.as_str()); + } +} + +pub fn serialize_structure_list_images_filter( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ListImagesFilter, +) { + if let Some(var_146) = &input.tag_status { + object.key("tagStatus").string(var_146.as_str()); + } +} + +pub fn serialize_structure_replication_configuration( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ReplicationConfiguration, +) { + if let Some(var_147) = &input.rules { + let mut array_148 = object.key("rules").start_array(); + for item_149 in var_147 { + { + let mut object_150 = array_148.value().start_object(); + crate::json_ser::serialize_structure_replication_rule(&mut object_150, item_149); + object_150.finish(); + } + } + array_148.finish(); + } +} + +pub fn serialize_structure_replication_rule( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ReplicationRule, +) { + if let Some(var_151) = &input.destinations { + let mut array_152 = object.key("destinations").start_array(); + for item_153 in var_151 { + { + let mut object_154 = array_152.value().start_object(); + crate::json_ser::serialize_structure_replication_destination( + &mut object_154, + item_153, + ); + object_154.finish(); + } + } + array_152.finish(); + } +} + +pub fn serialize_structure_replication_destination( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::ReplicationDestination, +) { + if let Some(var_155) = &input.region { + object.key("region").string(var_155); + } + if let Some(var_156) = &input.registry_id { + object.key("registryId").string(var_156); + } +} diff --git a/sdk/sagemakerruntime/src/lib.rs b/sdk/ecr/src/lib.rs similarity index 56% rename from sdk/sagemakerruntime/src/lib.rs rename to sdk/ecr/src/lib.rs index 73e0df6d9e11..2cdbdd7325ab 100644 --- a/sdk/sagemakerruntime/src/lib.rs +++ b/sdk/ecr/src/lib.rs @@ -3,7 +3,14 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] -//!

            The Amazon SageMaker runtime API.

            +#![allow(clippy::blacklisted_name)] +//! Amazon Elastic Container Registry +//!

            Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the +//! familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR +//! provides a secure, scalable, and reliable registry for your Docker or Open Container +//! Initiative (OCI) images. Amazon ECR supports private repositories with resource-based +//! permissions using IAM so that specific users or Amazon EC2 instances can access +//! repositories and images.

            // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub use error_meta::Error; @@ -11,15 +18,16 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; -mod http_serde; pub mod input; mod json_deser; +mod json_errors; +mod json_ser; +pub mod model; pub mod operation; mod operation_deser; mod operation_ser; @@ -29,7 +37,7 @@ pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; pub use smithy_types::Blob; static API_METADATA: aws_http::user_agent::ApiMetadata = - aws_http::user_agent::ApiMetadata::new("sagemakerruntime", PKG_VERSION); + aws_http::user_agent::ApiMetadata::new("ecr", PKG_VERSION); pub use aws_auth::Credentials; pub use aws_types::region::Region; #[cfg(feature = "client")] diff --git a/sdk/ecr/src/model.rs b/sdk/ecr/src/model.rs new file mode 100644 index 000000000000..b31cd8d0e27b --- /dev/null +++ b/sdk/ecr/src/model.rs @@ -0,0 +1,2650 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

            The metadata that you apply to a resource to help you categorize and organize them. +/// Each tag consists of a key and an optional value, both of which you define. +/// Tag keys can have a maximum character length of 128 characters, and tag values can have +/// a maximum length of 256 characters.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Tag { + ///

            One part of a key-value pair that make up a tag. A key is a general label + /// that acts like a category for more specific tag values.

            + pub key: std::option::Option, + ///

            The optional part of a key-value pair that make up a tag. A value acts as + /// a descriptor within a tag category (key).

            + pub value: std::option::Option, +} +impl std::fmt::Debug for Tag { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Tag"); + formatter.field("key", &self.key); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`Tag`](crate::model::Tag) +pub mod tag { + /// A builder for [`Tag`](crate::model::Tag) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

            One part of a key-value pair that make up a tag. A key is a general label + /// that acts like a category for more specific tag values.

            + pub fn key(mut self, input: impl Into) -> Self { + self.key = Some(input.into()); + self + } + pub fn set_key(mut self, input: std::option::Option) -> Self { + self.key = input; + self + } + ///

            The optional part of a key-value pair that make up a tag. A value acts as + /// a descriptor within a tag category (key).

            + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`Tag`](crate::model::Tag) + pub fn build(self) -> crate::model::Tag { + crate::model::Tag { + key: self.key, + value: self.value, + } + } + } +} +impl Tag { + /// Creates a new builder-style object to manufacture [`Tag`](crate::model::Tag) + pub fn builder() -> crate::model::tag::Builder { + crate::model::tag::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum LifecyclePolicyPreviewStatus { + Complete, + Expired, + Failed, + InProgress, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for LifecyclePolicyPreviewStatus { + fn from(s: &str) -> Self { + match s { + "COMPLETE" => LifecyclePolicyPreviewStatus::Complete, + "EXPIRED" => LifecyclePolicyPreviewStatus::Expired, + "FAILED" => LifecyclePolicyPreviewStatus::Failed, + "IN_PROGRESS" => LifecyclePolicyPreviewStatus::InProgress, + other => LifecyclePolicyPreviewStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for LifecyclePolicyPreviewStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(LifecyclePolicyPreviewStatus::from(s)) + } +} +impl LifecyclePolicyPreviewStatus { + pub fn as_str(&self) -> &str { + match self { + LifecyclePolicyPreviewStatus::Complete => "COMPLETE", + LifecyclePolicyPreviewStatus::Expired => "EXPIRED", + LifecyclePolicyPreviewStatus::Failed => "FAILED", + LifecyclePolicyPreviewStatus::InProgress => "IN_PROGRESS", + LifecyclePolicyPreviewStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for LifecyclePolicyPreviewStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            The current status of an image scan.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageScanStatus { + ///

            The current state of an image scan.

            + pub status: std::option::Option, + ///

            The description of the image scan status.

            + pub description: std::option::Option, +} +impl std::fmt::Debug for ImageScanStatus { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageScanStatus"); + formatter.field("status", &self.status); + formatter.field("description", &self.description); + formatter.finish() + } +} +/// See [`ImageScanStatus`](crate::model::ImageScanStatus) +pub mod image_scan_status { + /// A builder for [`ImageScanStatus`](crate::model::ImageScanStatus) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) status: std::option::Option, + pub(crate) description: std::option::Option, + } + impl Builder { + ///

            The current state of an image scan.

            + pub fn status(mut self, input: crate::model::ScanStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status(mut self, input: std::option::Option) -> Self { + self.status = input; + self + } + ///

            The description of the image scan status.

            + pub fn description(mut self, input: impl Into) -> Self { + self.description = Some(input.into()); + self + } + pub fn set_description(mut self, input: std::option::Option) -> Self { + self.description = input; + self + } + /// Consumes the builder and constructs a [`ImageScanStatus`](crate::model::ImageScanStatus) + pub fn build(self) -> crate::model::ImageScanStatus { + crate::model::ImageScanStatus { + status: self.status, + description: self.description, + } + } + } +} +impl ImageScanStatus { + /// Creates a new builder-style object to manufacture [`ImageScanStatus`](crate::model::ImageScanStatus) + pub fn builder() -> crate::model::image_scan_status::Builder { + crate::model::image_scan_status::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ScanStatus { + Complete, + Failed, + InProgress, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ScanStatus { + fn from(s: &str) -> Self { + match s { + "COMPLETE" => ScanStatus::Complete, + "FAILED" => ScanStatus::Failed, + "IN_PROGRESS" => ScanStatus::InProgress, + other => ScanStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ScanStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ScanStatus::from(s)) + } +} +impl ScanStatus { + pub fn as_str(&self) -> &str { + match self { + ScanStatus::Complete => "COMPLETE", + ScanStatus::Failed => "FAILED", + ScanStatus::InProgress => "IN_PROGRESS", + ScanStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ScanStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            An object with identifying information for an Amazon ECR image.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageIdentifier { + ///

            The sha256 digest of the image manifest.

            + pub image_digest: std::option::Option, + ///

            The tag used for the image.

            + pub image_tag: std::option::Option, +} +impl std::fmt::Debug for ImageIdentifier { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageIdentifier"); + formatter.field("image_digest", &self.image_digest); + formatter.field("image_tag", &self.image_tag); + formatter.finish() + } +} +/// See [`ImageIdentifier`](crate::model::ImageIdentifier) +pub mod image_identifier { + /// A builder for [`ImageIdentifier`](crate::model::ImageIdentifier) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_digest: std::option::Option, + pub(crate) image_tag: std::option::Option, + } + impl Builder { + ///

            The sha256 digest of the image manifest.

            + pub fn image_digest(mut self, input: impl Into) -> Self { + self.image_digest = Some(input.into()); + self + } + pub fn set_image_digest(mut self, input: std::option::Option) -> Self { + self.image_digest = input; + self + } + ///

            The tag used for the image.

            + pub fn image_tag(mut self, input: impl Into) -> Self { + self.image_tag = Some(input.into()); + self + } + pub fn set_image_tag(mut self, input: std::option::Option) -> Self { + self.image_tag = input; + self + } + /// Consumes the builder and constructs a [`ImageIdentifier`](crate::model::ImageIdentifier) + pub fn build(self) -> crate::model::ImageIdentifier { + crate::model::ImageIdentifier { + image_digest: self.image_digest, + image_tag: self.image_tag, + } + } + } +} +impl ImageIdentifier { + /// Creates a new builder-style object to manufacture [`ImageIdentifier`](crate::model::ImageIdentifier) + pub fn builder() -> crate::model::image_identifier::Builder { + crate::model::image_identifier::Builder::default() + } +} + +///

            The replication configuration for a registry.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReplicationConfiguration { + ///

            An array of objects representing the replication rules for a replication + /// configuration. A replication configuration may contain only one replication rule but the + /// rule may contain one or more replication destinations.

            + pub rules: std::option::Option>, +} +impl std::fmt::Debug for ReplicationConfiguration { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ReplicationConfiguration"); + formatter.field("rules", &self.rules); + formatter.finish() + } +} +/// See [`ReplicationConfiguration`](crate::model::ReplicationConfiguration) +pub mod replication_configuration { + /// A builder for [`ReplicationConfiguration`](crate::model::ReplicationConfiguration) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) rules: std::option::Option>, + } + impl Builder { + pub fn rules(mut self, input: impl Into) -> Self { + let mut v = self.rules.unwrap_or_default(); + v.push(input.into()); + self.rules = Some(v); + self + } + pub fn set_rules( + mut self, + input: std::option::Option>, + ) -> Self { + self.rules = input; + self + } + /// Consumes the builder and constructs a [`ReplicationConfiguration`](crate::model::ReplicationConfiguration) + pub fn build(self) -> crate::model::ReplicationConfiguration { + crate::model::ReplicationConfiguration { rules: self.rules } + } + } +} +impl ReplicationConfiguration { + /// Creates a new builder-style object to manufacture [`ReplicationConfiguration`](crate::model::ReplicationConfiguration) + pub fn builder() -> crate::model::replication_configuration::Builder { + crate::model::replication_configuration::Builder::default() + } +} + +///

            An array of objects representing the replication destinations for a replication +/// configuration. A replication configuration may contain only one replication rule but the +/// rule may contain one or more replication destinations.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReplicationRule { + ///

            An array of objects representing the details of a replication destination.

            + pub destinations: std::option::Option>, +} +impl std::fmt::Debug for ReplicationRule { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ReplicationRule"); + formatter.field("destinations", &self.destinations); + formatter.finish() + } +} +/// See [`ReplicationRule`](crate::model::ReplicationRule) +pub mod replication_rule { + /// A builder for [`ReplicationRule`](crate::model::ReplicationRule) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) destinations: + std::option::Option>, + } + impl Builder { + pub fn destinations( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.destinations.unwrap_or_default(); + v.push(input.into()); + self.destinations = Some(v); + self + } + pub fn set_destinations( + mut self, + input: std::option::Option>, + ) -> Self { + self.destinations = input; + self + } + /// Consumes the builder and constructs a [`ReplicationRule`](crate::model::ReplicationRule) + pub fn build(self) -> crate::model::ReplicationRule { + crate::model::ReplicationRule { + destinations: self.destinations, + } + } + } +} +impl ReplicationRule { + /// Creates a new builder-style object to manufacture [`ReplicationRule`](crate::model::ReplicationRule) + pub fn builder() -> crate::model::replication_rule::Builder { + crate::model::replication_rule::Builder::default() + } +} + +///

            An array of objects representing the details of a replication destination.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ReplicationDestination { + ///

            A Region to replicate to.

            + pub region: std::option::Option, + ///

            The account ID of the destination registry to replicate to.

            + pub registry_id: std::option::Option, +} +impl std::fmt::Debug for ReplicationDestination { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ReplicationDestination"); + formatter.field("region", &self.region); + formatter.field("registry_id", &self.registry_id); + formatter.finish() + } +} +/// See [`ReplicationDestination`](crate::model::ReplicationDestination) +pub mod replication_destination { + /// A builder for [`ReplicationDestination`](crate::model::ReplicationDestination) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) region: std::option::Option, + pub(crate) registry_id: std::option::Option, + } + impl Builder { + ///

            A Region to replicate to.

            + pub fn region(mut self, input: impl Into) -> Self { + self.region = Some(input.into()); + self + } + pub fn set_region(mut self, input: std::option::Option) -> Self { + self.region = input; + self + } + ///

            The account ID of the destination registry to replicate to.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + /// Consumes the builder and constructs a [`ReplicationDestination`](crate::model::ReplicationDestination) + pub fn build(self) -> crate::model::ReplicationDestination { + crate::model::ReplicationDestination { + region: self.region, + registry_id: self.registry_id, + } + } + } +} +impl ReplicationDestination { + /// Creates a new builder-style object to manufacture [`ReplicationDestination`](crate::model::ReplicationDestination) + pub fn builder() -> crate::model::replication_destination::Builder { + crate::model::replication_destination::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ImageTagMutability { + Immutable, + Mutable, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ImageTagMutability { + fn from(s: &str) -> Self { + match s { + "IMMUTABLE" => ImageTagMutability::Immutable, + "MUTABLE" => ImageTagMutability::Mutable, + other => ImageTagMutability::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ImageTagMutability { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ImageTagMutability::from(s)) + } +} +impl ImageTagMutability { + pub fn as_str(&self) -> &str { + match self { + ImageTagMutability::Immutable => "IMMUTABLE", + ImageTagMutability::Mutable => "MUTABLE", + ImageTagMutability::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ImageTagMutability { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            The image scanning configuration for a repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageScanningConfiguration { + ///

            The setting that determines whether images are scanned after being pushed to a + /// repository. If set to true, images will be scanned after being pushed. If + /// this parameter is not specified, it will default to false and images will + /// not be scanned unless a scan is manually started with the StartImageScan API.

            + pub scan_on_push: bool, +} +impl std::fmt::Debug for ImageScanningConfiguration { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageScanningConfiguration"); + formatter.field("scan_on_push", &self.scan_on_push); + formatter.finish() + } +} +/// See [`ImageScanningConfiguration`](crate::model::ImageScanningConfiguration) +pub mod image_scanning_configuration { + /// A builder for [`ImageScanningConfiguration`](crate::model::ImageScanningConfiguration) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) scan_on_push: std::option::Option, + } + impl Builder { + ///

            The setting that determines whether images are scanned after being pushed to a + /// repository. If set to true, images will be scanned after being pushed. If + /// this parameter is not specified, it will default to false and images will + /// not be scanned unless a scan is manually started with the StartImageScan API.

            + pub fn scan_on_push(mut self, input: bool) -> Self { + self.scan_on_push = Some(input); + self + } + pub fn set_scan_on_push(mut self, input: std::option::Option) -> Self { + self.scan_on_push = input; + self + } + /// Consumes the builder and constructs a [`ImageScanningConfiguration`](crate::model::ImageScanningConfiguration) + pub fn build(self) -> crate::model::ImageScanningConfiguration { + crate::model::ImageScanningConfiguration { + scan_on_push: self.scan_on_push.unwrap_or_default(), + } + } + } +} +impl ImageScanningConfiguration { + /// Creates a new builder-style object to manufacture [`ImageScanningConfiguration`](crate::model::ImageScanningConfiguration) + pub fn builder() -> crate::model::image_scanning_configuration::Builder { + crate::model::image_scanning_configuration::Builder::default() + } +} + +///

            An object representing an Amazon ECR image.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Image { + ///

            The AWS account ID associated with the registry containing the image.

            + pub registry_id: std::option::Option, + ///

            The name of the repository associated with the image.

            + pub repository_name: std::option::Option, + ///

            An object containing the image tag and image digest associated with an image.

            + pub image_id: std::option::Option, + ///

            The image manifest associated with the image.

            + pub image_manifest: std::option::Option, + ///

            The manifest media type of the image.

            + pub image_manifest_media_type: std::option::Option, +} +impl std::fmt::Debug for Image { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Image"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_id", &self.image_id); + formatter.field("image_manifest", &self.image_manifest); + formatter.field("image_manifest_media_type", &self.image_manifest_media_type); + formatter.finish() + } +} +/// See [`Image`](crate::model::Image) +pub mod image { + /// A builder for [`Image`](crate::model::Image) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_id: std::option::Option, + pub(crate) image_manifest: std::option::Option, + pub(crate) image_manifest_media_type: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry containing the image.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository associated with the image.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            An object containing the image tag and image digest associated with an image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + ///

            The image manifest associated with the image.

            + pub fn image_manifest(mut self, input: impl Into) -> Self { + self.image_manifest = Some(input.into()); + self + } + pub fn set_image_manifest( + mut self, + input: std::option::Option, + ) -> Self { + self.image_manifest = input; + self + } + ///

            The manifest media type of the image.

            + pub fn image_manifest_media_type(mut self, input: impl Into) -> Self { + self.image_manifest_media_type = Some(input.into()); + self + } + pub fn set_image_manifest_media_type( + mut self, + input: std::option::Option, + ) -> Self { + self.image_manifest_media_type = input; + self + } + /// Consumes the builder and constructs a [`Image`](crate::model::Image) + pub fn build(self) -> crate::model::Image { + crate::model::Image { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_id: self.image_id, + image_manifest: self.image_manifest, + image_manifest_media_type: self.image_manifest_media_type, + } + } + } +} +impl Image { + /// Creates a new builder-style object to manufacture [`Image`](crate::model::Image) + pub fn builder() -> crate::model::image::Builder { + crate::model::image::Builder::default() + } +} + +///

            An object representing a filter on a ListImages operation.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListImagesFilter { + ///

            The tag status with which to filter your ListImages results. You can + /// filter results based on whether they are TAGGED or + /// UNTAGGED.

            + pub tag_status: std::option::Option, +} +impl std::fmt::Debug for ListImagesFilter { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListImagesFilter"); + formatter.field("tag_status", &self.tag_status); + formatter.finish() + } +} +/// See [`ListImagesFilter`](crate::model::ListImagesFilter) +pub mod list_images_filter { + /// A builder for [`ListImagesFilter`](crate::model::ListImagesFilter) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tag_status: std::option::Option, + } + impl Builder { + ///

            The tag status with which to filter your ListImages results. You can + /// filter results based on whether they are TAGGED or + /// UNTAGGED.

            + pub fn tag_status(mut self, input: crate::model::TagStatus) -> Self { + self.tag_status = Some(input); + self + } + pub fn set_tag_status( + mut self, + input: std::option::Option, + ) -> Self { + self.tag_status = input; + self + } + /// Consumes the builder and constructs a [`ListImagesFilter`](crate::model::ListImagesFilter) + pub fn build(self) -> crate::model::ListImagesFilter { + crate::model::ListImagesFilter { + tag_status: self.tag_status, + } + } + } +} +impl ListImagesFilter { + /// Creates a new builder-style object to manufacture [`ListImagesFilter`](crate::model::ListImagesFilter) + pub fn builder() -> crate::model::list_images_filter::Builder { + crate::model::list_images_filter::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum TagStatus { + Any, + Tagged, + Untagged, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for TagStatus { + fn from(s: &str) -> Self { + match s { + "ANY" => TagStatus::Any, + "TAGGED" => TagStatus::Tagged, + "UNTAGGED" => TagStatus::Untagged, + other => TagStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for TagStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(TagStatus::from(s)) + } +} +impl TagStatus { + pub fn as_str(&self) -> &str { + match self { + TagStatus::Any => "ANY", + TagStatus::Tagged => "TAGGED", + TagStatus::Untagged => "UNTAGGED", + TagStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for TagStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            The summary of the lifecycle policy preview request.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyPreviewSummary { + ///

            The number of expiring images.

            + pub expiring_image_total_count: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyPreviewSummary { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyPreviewSummary"); + formatter.field( + "expiring_image_total_count", + &self.expiring_image_total_count, + ); + formatter.finish() + } +} +/// See [`LifecyclePolicyPreviewSummary`](crate::model::LifecyclePolicyPreviewSummary) +pub mod lifecycle_policy_preview_summary { + /// A builder for [`LifecyclePolicyPreviewSummary`](crate::model::LifecyclePolicyPreviewSummary) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) expiring_image_total_count: std::option::Option, + } + impl Builder { + ///

            The number of expiring images.

            + pub fn expiring_image_total_count(mut self, input: i32) -> Self { + self.expiring_image_total_count = Some(input); + self + } + pub fn set_expiring_image_total_count(mut self, input: std::option::Option) -> Self { + self.expiring_image_total_count = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyPreviewSummary`](crate::model::LifecyclePolicyPreviewSummary) + pub fn build(self) -> crate::model::LifecyclePolicyPreviewSummary { + crate::model::LifecyclePolicyPreviewSummary { + expiring_image_total_count: self.expiring_image_total_count, + } + } + } +} +impl LifecyclePolicyPreviewSummary { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyPreviewSummary`](crate::model::LifecyclePolicyPreviewSummary) + pub fn builder() -> crate::model::lifecycle_policy_preview_summary::Builder { + crate::model::lifecycle_policy_preview_summary::Builder::default() + } +} + +///

            The result of the lifecycle policy preview.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyPreviewResult { + ///

            The list of tags associated with this image.

            + pub image_tags: std::option::Option>, + ///

            The sha256 digest of the image manifest.

            + pub image_digest: std::option::Option, + ///

            The date and time, expressed in standard JavaScript date format, at which the current + /// image was pushed to the repository.

            + pub image_pushed_at: std::option::Option, + ///

            The type of action to be taken.

            + pub action: std::option::Option, + ///

            The priority of the applied rule.

            + pub applied_rule_priority: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyPreviewResult { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyPreviewResult"); + formatter.field("image_tags", &self.image_tags); + formatter.field("image_digest", &self.image_digest); + formatter.field("image_pushed_at", &self.image_pushed_at); + formatter.field("action", &self.action); + formatter.field("applied_rule_priority", &self.applied_rule_priority); + formatter.finish() + } +} +/// See [`LifecyclePolicyPreviewResult`](crate::model::LifecyclePolicyPreviewResult) +pub mod lifecycle_policy_preview_result { + /// A builder for [`LifecyclePolicyPreviewResult`](crate::model::LifecyclePolicyPreviewResult) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_tags: std::option::Option>, + pub(crate) image_digest: std::option::Option, + pub(crate) image_pushed_at: std::option::Option, + pub(crate) action: std::option::Option, + pub(crate) applied_rule_priority: std::option::Option, + } + impl Builder { + pub fn image_tags(mut self, input: impl Into) -> Self { + let mut v = self.image_tags.unwrap_or_default(); + v.push(input.into()); + self.image_tags = Some(v); + self + } + pub fn set_image_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_tags = input; + self + } + ///

            The sha256 digest of the image manifest.

            + pub fn image_digest(mut self, input: impl Into) -> Self { + self.image_digest = Some(input.into()); + self + } + pub fn set_image_digest(mut self, input: std::option::Option) -> Self { + self.image_digest = input; + self + } + ///

            The date and time, expressed in standard JavaScript date format, at which the current + /// image was pushed to the repository.

            + pub fn image_pushed_at(mut self, input: smithy_types::Instant) -> Self { + self.image_pushed_at = Some(input); + self + } + pub fn set_image_pushed_at( + mut self, + input: std::option::Option, + ) -> Self { + self.image_pushed_at = input; + self + } + ///

            The type of action to be taken.

            + pub fn action(mut self, input: crate::model::LifecyclePolicyRuleAction) -> Self { + self.action = Some(input); + self + } + pub fn set_action( + mut self, + input: std::option::Option, + ) -> Self { + self.action = input; + self + } + ///

            The priority of the applied rule.

            + pub fn applied_rule_priority(mut self, input: i32) -> Self { + self.applied_rule_priority = Some(input); + self + } + pub fn set_applied_rule_priority(mut self, input: std::option::Option) -> Self { + self.applied_rule_priority = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyPreviewResult`](crate::model::LifecyclePolicyPreviewResult) + pub fn build(self) -> crate::model::LifecyclePolicyPreviewResult { + crate::model::LifecyclePolicyPreviewResult { + image_tags: self.image_tags, + image_digest: self.image_digest, + image_pushed_at: self.image_pushed_at, + action: self.action, + applied_rule_priority: self.applied_rule_priority, + } + } + } +} +impl LifecyclePolicyPreviewResult { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyPreviewResult`](crate::model::LifecyclePolicyPreviewResult) + pub fn builder() -> crate::model::lifecycle_policy_preview_result::Builder { + crate::model::lifecycle_policy_preview_result::Builder::default() + } +} + +///

            The type of action to be taken.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyRuleAction { + ///

            The type of action to be taken.

            + pub r#type: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyRuleAction { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyRuleAction"); + formatter.field("r#type", &self.r#type); + formatter.finish() + } +} +/// See [`LifecyclePolicyRuleAction`](crate::model::LifecyclePolicyRuleAction) +pub mod lifecycle_policy_rule_action { + /// A builder for [`LifecyclePolicyRuleAction`](crate::model::LifecyclePolicyRuleAction) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) r#type: std::option::Option, + } + impl Builder { + ///

            The type of action to be taken.

            + pub fn r#type(mut self, input: crate::model::ImageActionType) -> Self { + self.r#type = Some(input); + self + } + pub fn set_type( + mut self, + input: std::option::Option, + ) -> Self { + self.r#type = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyRuleAction`](crate::model::LifecyclePolicyRuleAction) + pub fn build(self) -> crate::model::LifecyclePolicyRuleAction { + crate::model::LifecyclePolicyRuleAction { + r#type: self.r#type, + } + } + } +} +impl LifecyclePolicyRuleAction { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyRuleAction`](crate::model::LifecyclePolicyRuleAction) + pub fn builder() -> crate::model::lifecycle_policy_rule_action::Builder { + crate::model::lifecycle_policy_rule_action::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ImageActionType { + Expire, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ImageActionType { + fn from(s: &str) -> Self { + match s { + "EXPIRE" => ImageActionType::Expire, + other => ImageActionType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ImageActionType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ImageActionType::from(s)) + } +} +impl ImageActionType { + pub fn as_str(&self) -> &str { + match self { + ImageActionType::Expire => "EXPIRE", + ImageActionType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ImageActionType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            The filter for the lifecycle policy preview.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LifecyclePolicyPreviewFilter { + ///

            The tag status of the image.

            + pub tag_status: std::option::Option, +} +impl std::fmt::Debug for LifecyclePolicyPreviewFilter { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LifecyclePolicyPreviewFilter"); + formatter.field("tag_status", &self.tag_status); + formatter.finish() + } +} +/// See [`LifecyclePolicyPreviewFilter`](crate::model::LifecyclePolicyPreviewFilter) +pub mod lifecycle_policy_preview_filter { + /// A builder for [`LifecyclePolicyPreviewFilter`](crate::model::LifecyclePolicyPreviewFilter) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tag_status: std::option::Option, + } + impl Builder { + ///

            The tag status of the image.

            + pub fn tag_status(mut self, input: crate::model::TagStatus) -> Self { + self.tag_status = Some(input); + self + } + pub fn set_tag_status( + mut self, + input: std::option::Option, + ) -> Self { + self.tag_status = input; + self + } + /// Consumes the builder and constructs a [`LifecyclePolicyPreviewFilter`](crate::model::LifecyclePolicyPreviewFilter) + pub fn build(self) -> crate::model::LifecyclePolicyPreviewFilter { + crate::model::LifecyclePolicyPreviewFilter { + tag_status: self.tag_status, + } + } + } +} +impl LifecyclePolicyPreviewFilter { + /// Creates a new builder-style object to manufacture [`LifecyclePolicyPreviewFilter`](crate::model::LifecyclePolicyPreviewFilter) + pub fn builder() -> crate::model::lifecycle_policy_preview_filter::Builder { + crate::model::lifecycle_policy_preview_filter::Builder::default() + } +} + +///

            An object representing authorization data for an Amazon ECR registry.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AuthorizationData { + ///

            A base64-encoded string that contains authorization data for the specified Amazon ECR + /// registry. When the string is decoded, it is presented in the format + /// user:password for private registry authentication using docker + /// login.

            + pub authorization_token: std::option::Option, + ///

            The Unix time in seconds and milliseconds when the authorization token expires. + /// Authorization tokens are valid for 12 hours.

            + pub expires_at: std::option::Option, + ///

            The registry URL to use for this authorization token in a docker login + /// command. The Amazon ECR registry URL format is + /// https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, + /// https://012345678910.dkr.ecr.us-east-1.amazonaws.com..

            + pub proxy_endpoint: std::option::Option, +} +impl std::fmt::Debug for AuthorizationData { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AuthorizationData"); + formatter.field("authorization_token", &self.authorization_token); + formatter.field("expires_at", &self.expires_at); + formatter.field("proxy_endpoint", &self.proxy_endpoint); + formatter.finish() + } +} +/// See [`AuthorizationData`](crate::model::AuthorizationData) +pub mod authorization_data { + /// A builder for [`AuthorizationData`](crate::model::AuthorizationData) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) authorization_token: std::option::Option, + pub(crate) expires_at: std::option::Option, + pub(crate) proxy_endpoint: std::option::Option, + } + impl Builder { + ///

            A base64-encoded string that contains authorization data for the specified Amazon ECR + /// registry. When the string is decoded, it is presented in the format + /// user:password for private registry authentication using docker + /// login.

            + pub fn authorization_token(mut self, input: impl Into) -> Self { + self.authorization_token = Some(input.into()); + self + } + pub fn set_authorization_token( + mut self, + input: std::option::Option, + ) -> Self { + self.authorization_token = input; + self + } + ///

            The Unix time in seconds and milliseconds when the authorization token expires. + /// Authorization tokens are valid for 12 hours.

            + pub fn expires_at(mut self, input: smithy_types::Instant) -> Self { + self.expires_at = Some(input); + self + } + pub fn set_expires_at(mut self, input: std::option::Option) -> Self { + self.expires_at = input; + self + } + ///

            The registry URL to use for this authorization token in a docker login + /// command. The Amazon ECR registry URL format is + /// https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, + /// https://012345678910.dkr.ecr.us-east-1.amazonaws.com..

            + pub fn proxy_endpoint(mut self, input: impl Into) -> Self { + self.proxy_endpoint = Some(input.into()); + self + } + pub fn set_proxy_endpoint( + mut self, + input: std::option::Option, + ) -> Self { + self.proxy_endpoint = input; + self + } + /// Consumes the builder and constructs a [`AuthorizationData`](crate::model::AuthorizationData) + pub fn build(self) -> crate::model::AuthorizationData { + crate::model::AuthorizationData { + authorization_token: self.authorization_token, + expires_at: self.expires_at, + proxy_endpoint: self.proxy_endpoint, + } + } + } +} +impl AuthorizationData { + /// Creates a new builder-style object to manufacture [`AuthorizationData`](crate::model::AuthorizationData) + pub fn builder() -> crate::model::authorization_data::Builder { + crate::model::authorization_data::Builder::default() + } +} + +///

            An object representing a repository.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Repository { + ///

            The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the + /// repository, AWS account ID of the repository owner, repository namespace, and repository name. + /// For example, arn:aws:ecr:region:012345678910:repository/test.

            + pub repository_arn: std::option::Option, + ///

            The AWS account ID associated with the registry that contains the repository.

            + pub registry_id: std::option::Option, + ///

            The name of the repository.

            + pub repository_name: std::option::Option, + ///

            The URI for the repository. You can use this URI for container image push + /// and pull operations.

            + pub repository_uri: std::option::Option, + ///

            The date and time, in JavaScript date format, when the repository was created.

            + pub created_at: std::option::Option, + ///

            The tag mutability setting for the repository.

            + pub image_tag_mutability: std::option::Option, + ///

            The image scanning configuration for a repository.

            + pub image_scanning_configuration: std::option::Option, + ///

            The encryption configuration for the repository. This determines how the contents of + /// your repository are encrypted at rest.

            + pub encryption_configuration: std::option::Option, +} +impl std::fmt::Debug for Repository { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Repository"); + formatter.field("repository_arn", &self.repository_arn); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("repository_uri", &self.repository_uri); + formatter.field("created_at", &self.created_at); + formatter.field("image_tag_mutability", &self.image_tag_mutability); + formatter.field( + "image_scanning_configuration", + &self.image_scanning_configuration, + ); + formatter.field("encryption_configuration", &self.encryption_configuration); + formatter.finish() + } +} +/// See [`Repository`](crate::model::Repository) +pub mod repository { + /// A builder for [`Repository`](crate::model::Repository) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) repository_arn: std::option::Option, + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) repository_uri: std::option::Option, + pub(crate) created_at: std::option::Option, + pub(crate) image_tag_mutability: std::option::Option, + pub(crate) image_scanning_configuration: + std::option::Option, + pub(crate) encryption_configuration: + std::option::Option, + } + impl Builder { + ///

            The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the + /// repository, AWS account ID of the repository owner, repository namespace, and repository name. + /// For example, arn:aws:ecr:region:012345678910:repository/test.

            + pub fn repository_arn(mut self, input: impl Into) -> Self { + self.repository_arn = Some(input.into()); + self + } + pub fn set_repository_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_arn = input; + self + } + ///

            The AWS account ID associated with the registry that contains the repository.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The URI for the repository. You can use this URI for container image push + /// and pull operations.

            + pub fn repository_uri(mut self, input: impl Into) -> Self { + self.repository_uri = Some(input.into()); + self + } + pub fn set_repository_uri( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_uri = input; + self + } + ///

            The date and time, in JavaScript date format, when the repository was created.

            + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + ///

            The tag mutability setting for the repository.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.image_tag_mutability = Some(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.image_tag_mutability = input; + self + } + ///

            The image scanning configuration for a repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.image_scanning_configuration = Some(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scanning_configuration = input; + self + } + ///

            The encryption configuration for the repository. This determines how the contents of + /// your repository are encrypted at rest.

            + pub fn encryption_configuration( + mut self, + input: crate::model::EncryptionConfiguration, + ) -> Self { + self.encryption_configuration = Some(input); + self + } + pub fn set_encryption_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.encryption_configuration = input; + self + } + /// Consumes the builder and constructs a [`Repository`](crate::model::Repository) + pub fn build(self) -> crate::model::Repository { + crate::model::Repository { + repository_arn: self.repository_arn, + registry_id: self.registry_id, + repository_name: self.repository_name, + repository_uri: self.repository_uri, + created_at: self.created_at, + image_tag_mutability: self.image_tag_mutability, + image_scanning_configuration: self.image_scanning_configuration, + encryption_configuration: self.encryption_configuration, + } + } + } +} +impl Repository { + /// Creates a new builder-style object to manufacture [`Repository`](crate::model::Repository) + pub fn builder() -> crate::model::repository::Builder { + crate::model::repository::Builder::default() + } +} + +///

            The encryption configuration for the repository. This determines how the contents of +/// your repository are encrypted at rest.

            +///

            By default, when no encryption configuration is set or the AES256 +/// encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption +/// keys which encrypts your data at rest using an AES-256 encryption algorithm. This does +/// not require any action on your part.

            +///

            For more control over the encryption of the contents of your repository, you can use +/// server-side encryption with customer master keys (CMKs) stored in AWS Key Management Service (AWS KMS) to +/// encrypt your images. For more information, see Amazon ECR encryption at +/// rest in the Amazon Elastic Container Registry User Guide.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EncryptionConfiguration { + ///

            The encryption type to use.

            + ///

            If you use the KMS encryption type, the contents of the repository will + /// be encrypted using server-side encryption with customer master keys (CMKs) stored in + /// AWS KMS. When you use AWS KMS to encrypt your data, you can either use the default AWS + /// managed CMK for Amazon ECR, or specify your own CMK, which you already created. For more + /// information, see Protecting Data Using Server-Side + /// Encryption with CMKs Stored in AWS Key Management Service (SSE-KMS) in the + /// Amazon Simple Storage Service Console Developer Guide..

            + ///

            If you use the AES256 encryption type, Amazon ECR uses server-side encryption + /// with Amazon S3-managed encryption keys which encrypts the images in the repository using an + /// AES-256 encryption algorithm. For more information, see Protecting Data Using + /// Server-Side Encryption with Amazon S3-Managed Encryption Keys (SSE-S3) in + /// the Amazon Simple Storage Service Console Developer Guide..

            + pub encryption_type: std::option::Option, + ///

            If you use the KMS encryption type, specify the CMK to use for + /// encryption. The alias, key ID, or full ARN of the CMK can be specified. The key must + /// exist in the same Region as the repository. If no key is specified, the default AWS + /// managed CMK for Amazon ECR will be used.

            + pub kms_key: std::option::Option, +} +impl std::fmt::Debug for EncryptionConfiguration { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EncryptionConfiguration"); + formatter.field("encryption_type", &self.encryption_type); + formatter.field("kms_key", &self.kms_key); + formatter.finish() + } +} +/// See [`EncryptionConfiguration`](crate::model::EncryptionConfiguration) +pub mod encryption_configuration { + /// A builder for [`EncryptionConfiguration`](crate::model::EncryptionConfiguration) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) encryption_type: std::option::Option, + pub(crate) kms_key: std::option::Option, + } + impl Builder { + ///

            The encryption type to use.

            + ///

            If you use the KMS encryption type, the contents of the repository will + /// be encrypted using server-side encryption with customer master keys (CMKs) stored in + /// AWS KMS. When you use AWS KMS to encrypt your data, you can either use the default AWS + /// managed CMK for Amazon ECR, or specify your own CMK, which you already created. For more + /// information, see Protecting Data Using Server-Side + /// Encryption with CMKs Stored in AWS Key Management Service (SSE-KMS) in the + /// Amazon Simple Storage Service Console Developer Guide..

            + ///

            If you use the AES256 encryption type, Amazon ECR uses server-side encryption + /// with Amazon S3-managed encryption keys which encrypts the images in the repository using an + /// AES-256 encryption algorithm. For more information, see Protecting Data Using + /// Server-Side Encryption with Amazon S3-Managed Encryption Keys (SSE-S3) in + /// the Amazon Simple Storage Service Console Developer Guide..

            + pub fn encryption_type(mut self, input: crate::model::EncryptionType) -> Self { + self.encryption_type = Some(input); + self + } + pub fn set_encryption_type( + mut self, + input: std::option::Option, + ) -> Self { + self.encryption_type = input; + self + } + ///

            If you use the KMS encryption type, specify the CMK to use for + /// encryption. The alias, key ID, or full ARN of the CMK can be specified. The key must + /// exist in the same Region as the repository. If no key is specified, the default AWS + /// managed CMK for Amazon ECR will be used.

            + pub fn kms_key(mut self, input: impl Into) -> Self { + self.kms_key = Some(input.into()); + self + } + pub fn set_kms_key(mut self, input: std::option::Option) -> Self { + self.kms_key = input; + self + } + /// Consumes the builder and constructs a [`EncryptionConfiguration`](crate::model::EncryptionConfiguration) + pub fn build(self) -> crate::model::EncryptionConfiguration { + crate::model::EncryptionConfiguration { + encryption_type: self.encryption_type, + kms_key: self.kms_key, + } + } + } +} +impl EncryptionConfiguration { + /// Creates a new builder-style object to manufacture [`EncryptionConfiguration`](crate::model::EncryptionConfiguration) + pub fn builder() -> crate::model::encryption_configuration::Builder { + crate::model::encryption_configuration::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum EncryptionType { + Aes256, + Kms, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for EncryptionType { + fn from(s: &str) -> Self { + match s { + "AES256" => EncryptionType::Aes256, + "KMS" => EncryptionType::Kms, + other => EncryptionType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for EncryptionType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(EncryptionType::from(s)) + } +} +impl EncryptionType { + pub fn as_str(&self) -> &str { + match self { + EncryptionType::Aes256 => "AES256", + EncryptionType::Kms => "KMS", + EncryptionType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for EncryptionType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            The details of an image scan.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageScanFindings { + ///

            The time of the last completed image scan.

            + pub image_scan_completed_at: std::option::Option, + ///

            The time when the vulnerability data was last scanned.

            + pub vulnerability_source_updated_at: std::option::Option, + ///

            The findings from the image scan.

            + pub findings: std::option::Option>, + ///

            The image vulnerability counts, sorted by severity.

            + pub finding_severity_counts: + std::option::Option>, +} +impl std::fmt::Debug for ImageScanFindings { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageScanFindings"); + formatter.field("image_scan_completed_at", &self.image_scan_completed_at); + formatter.field( + "vulnerability_source_updated_at", + &self.vulnerability_source_updated_at, + ); + formatter.field("findings", &self.findings); + formatter.field("finding_severity_counts", &self.finding_severity_counts); + formatter.finish() + } +} +/// See [`ImageScanFindings`](crate::model::ImageScanFindings) +pub mod image_scan_findings { + /// A builder for [`ImageScanFindings`](crate::model::ImageScanFindings) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_scan_completed_at: std::option::Option, + pub(crate) vulnerability_source_updated_at: std::option::Option, + pub(crate) findings: std::option::Option>, + pub(crate) finding_severity_counts: + std::option::Option>, + } + impl Builder { + ///

            The time of the last completed image scan.

            + pub fn image_scan_completed_at(mut self, input: smithy_types::Instant) -> Self { + self.image_scan_completed_at = Some(input); + self + } + pub fn set_image_scan_completed_at( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_completed_at = input; + self + } + ///

            The time when the vulnerability data was last scanned.

            + pub fn vulnerability_source_updated_at(mut self, input: smithy_types::Instant) -> Self { + self.vulnerability_source_updated_at = Some(input); + self + } + pub fn set_vulnerability_source_updated_at( + mut self, + input: std::option::Option, + ) -> Self { + self.vulnerability_source_updated_at = input; + self + } + pub fn findings(mut self, input: impl Into) -> Self { + let mut v = self.findings.unwrap_or_default(); + v.push(input.into()); + self.findings = Some(v); + self + } + pub fn set_findings( + mut self, + input: std::option::Option>, + ) -> Self { + self.findings = input; + self + } + pub fn finding_severity_counts( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.finding_severity_counts.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.finding_severity_counts = Some(hash_map); + self + } + pub fn set_finding_severity_counts( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.finding_severity_counts = input; + self + } + /// Consumes the builder and constructs a [`ImageScanFindings`](crate::model::ImageScanFindings) + pub fn build(self) -> crate::model::ImageScanFindings { + crate::model::ImageScanFindings { + image_scan_completed_at: self.image_scan_completed_at, + vulnerability_source_updated_at: self.vulnerability_source_updated_at, + findings: self.findings, + finding_severity_counts: self.finding_severity_counts, + } + } + } +} +impl ImageScanFindings { + /// Creates a new builder-style object to manufacture [`ImageScanFindings`](crate::model::ImageScanFindings) + pub fn builder() -> crate::model::image_scan_findings::Builder { + crate::model::image_scan_findings::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum FindingSeverity { + Critical, + High, + Informational, + Low, + Medium, + Undefined, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for FindingSeverity { + fn from(s: &str) -> Self { + match s { + "CRITICAL" => FindingSeverity::Critical, + "HIGH" => FindingSeverity::High, + "INFORMATIONAL" => FindingSeverity::Informational, + "LOW" => FindingSeverity::Low, + "MEDIUM" => FindingSeverity::Medium, + "UNDEFINED" => FindingSeverity::Undefined, + other => FindingSeverity::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for FindingSeverity { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(FindingSeverity::from(s)) + } +} +impl FindingSeverity { + pub fn as_str(&self) -> &str { + match self { + FindingSeverity::Critical => "CRITICAL", + FindingSeverity::High => "HIGH", + FindingSeverity::Informational => "INFORMATIONAL", + FindingSeverity::Low => "LOW", + FindingSeverity::Medium => "MEDIUM", + FindingSeverity::Undefined => "UNDEFINED", + FindingSeverity::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for FindingSeverity { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            Contains information about an image scan finding.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageScanFinding { + ///

            The name associated with the finding, usually a CVE number.

            + pub name: std::option::Option, + ///

            The description of the finding.

            + pub description: std::option::Option, + ///

            A link containing additional details about the security vulnerability.

            + pub uri: std::option::Option, + ///

            The finding severity.

            + pub severity: std::option::Option, + ///

            A collection of attributes of the host from which the finding is generated.

            + pub attributes: std::option::Option>, +} +impl std::fmt::Debug for ImageScanFinding { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageScanFinding"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("uri", &self.uri); + formatter.field("severity", &self.severity); + formatter.field("attributes", &self.attributes); + formatter.finish() + } +} +/// See [`ImageScanFinding`](crate::model::ImageScanFinding) +pub mod image_scan_finding { + /// A builder for [`ImageScanFinding`](crate::model::ImageScanFinding) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) description: std::option::Option, + pub(crate) uri: std::option::Option, + pub(crate) severity: std::option::Option, + pub(crate) attributes: std::option::Option>, + } + impl Builder { + ///

            The name associated with the finding, usually a CVE number.

            + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

            The description of the finding.

            + pub fn description(mut self, input: impl Into) -> Self { + self.description = Some(input.into()); + self + } + pub fn set_description(mut self, input: std::option::Option) -> Self { + self.description = input; + self + } + ///

            A link containing additional details about the security vulnerability.

            + pub fn uri(mut self, input: impl Into) -> Self { + self.uri = Some(input.into()); + self + } + pub fn set_uri(mut self, input: std::option::Option) -> Self { + self.uri = input; + self + } + ///

            The finding severity.

            + pub fn severity(mut self, input: crate::model::FindingSeverity) -> Self { + self.severity = Some(input); + self + } + pub fn set_severity( + mut self, + input: std::option::Option, + ) -> Self { + self.severity = input; + self + } + pub fn attributes(mut self, input: impl Into) -> Self { + let mut v = self.attributes.unwrap_or_default(); + v.push(input.into()); + self.attributes = Some(v); + self + } + pub fn set_attributes( + mut self, + input: std::option::Option>, + ) -> Self { + self.attributes = input; + self + } + /// Consumes the builder and constructs a [`ImageScanFinding`](crate::model::ImageScanFinding) + pub fn build(self) -> crate::model::ImageScanFinding { + crate::model::ImageScanFinding { + name: self.name, + description: self.description, + uri: self.uri, + severity: self.severity, + attributes: self.attributes, + } + } + } +} +impl ImageScanFinding { + /// Creates a new builder-style object to manufacture [`ImageScanFinding`](crate::model::ImageScanFinding) + pub fn builder() -> crate::model::image_scan_finding::Builder { + crate::model::image_scan_finding::Builder::default() + } +} + +///

            This data type is used in the ImageScanFinding data type.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Attribute { + ///

            The attribute key.

            + pub key: std::option::Option, + ///

            The value assigned to the attribute key.

            + pub value: std::option::Option, +} +impl std::fmt::Debug for Attribute { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Attribute"); + formatter.field("key", &self.key); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`Attribute`](crate::model::Attribute) +pub mod attribute { + /// A builder for [`Attribute`](crate::model::Attribute) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

            The attribute key.

            + pub fn key(mut self, input: impl Into) -> Self { + self.key = Some(input.into()); + self + } + pub fn set_key(mut self, input: std::option::Option) -> Self { + self.key = input; + self + } + ///

            The value assigned to the attribute key.

            + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`Attribute`](crate::model::Attribute) + pub fn build(self) -> crate::model::Attribute { + crate::model::Attribute { + key: self.key, + value: self.value, + } + } + } +} +impl Attribute { + /// Creates a new builder-style object to manufacture [`Attribute`](crate::model::Attribute) + pub fn builder() -> crate::model::attribute::Builder { + crate::model::attribute::Builder::default() + } +} + +///

            An object that describes an image returned by a DescribeImages +/// operation.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageDetail { + ///

            The AWS account ID associated with the registry to which this image belongs.

            + pub registry_id: std::option::Option, + ///

            The name of the repository to which this image belongs.

            + pub repository_name: std::option::Option, + ///

            The sha256 digest of the image manifest.

            + pub image_digest: std::option::Option, + ///

            The list of tags associated with this image.

            + pub image_tags: std::option::Option>, + ///

            The size, in bytes, of the image in the repository.

            + ///

            If the image is a manifest list, this will be the max size of all manifests in the + /// list.

            + /// + ///

            Beginning with Docker version 1.9, the Docker client compresses image layers + /// before pushing them to a V2 Docker registry. The output of the docker + /// images command shows the uncompressed image size, so it may return a + /// larger image size than the image sizes returned by DescribeImages.

            + ///
            + pub image_size_in_bytes: std::option::Option, + ///

            The date and time, expressed in standard JavaScript date format, at which the current + /// image was pushed to the repository.

            + pub image_pushed_at: std::option::Option, + ///

            The current state of the scan.

            + pub image_scan_status: std::option::Option, + ///

            A summary of the last completed image scan.

            + pub image_scan_findings_summary: std::option::Option, + ///

            The media type of the image manifest.

            + pub image_manifest_media_type: std::option::Option, + ///

            The artifact media type of the image.

            + pub artifact_media_type: std::option::Option, +} +impl std::fmt::Debug for ImageDetail { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageDetail"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_digest", &self.image_digest); + formatter.field("image_tags", &self.image_tags); + formatter.field("image_size_in_bytes", &self.image_size_in_bytes); + formatter.field("image_pushed_at", &self.image_pushed_at); + formatter.field("image_scan_status", &self.image_scan_status); + formatter.field( + "image_scan_findings_summary", + &self.image_scan_findings_summary, + ); + formatter.field("image_manifest_media_type", &self.image_manifest_media_type); + formatter.field("artifact_media_type", &self.artifact_media_type); + formatter.finish() + } +} +/// See [`ImageDetail`](crate::model::ImageDetail) +pub mod image_detail { + /// A builder for [`ImageDetail`](crate::model::ImageDetail) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_digest: std::option::Option, + pub(crate) image_tags: std::option::Option>, + pub(crate) image_size_in_bytes: std::option::Option, + pub(crate) image_pushed_at: std::option::Option, + pub(crate) image_scan_status: std::option::Option, + pub(crate) image_scan_findings_summary: + std::option::Option, + pub(crate) image_manifest_media_type: std::option::Option, + pub(crate) artifact_media_type: std::option::Option, + } + impl Builder { + ///

            The AWS account ID associated with the registry to which this image belongs.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The name of the repository to which this image belongs.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The sha256 digest of the image manifest.

            + pub fn image_digest(mut self, input: impl Into) -> Self { + self.image_digest = Some(input.into()); + self + } + pub fn set_image_digest(mut self, input: std::option::Option) -> Self { + self.image_digest = input; + self + } + pub fn image_tags(mut self, input: impl Into) -> Self { + let mut v = self.image_tags.unwrap_or_default(); + v.push(input.into()); + self.image_tags = Some(v); + self + } + pub fn set_image_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_tags = input; + self + } + ///

            The size, in bytes, of the image in the repository.

            + ///

            If the image is a manifest list, this will be the max size of all manifests in the + /// list.

            + /// + ///

            Beginning with Docker version 1.9, the Docker client compresses image layers + /// before pushing them to a V2 Docker registry. The output of the docker + /// images command shows the uncompressed image size, so it may return a + /// larger image size than the image sizes returned by DescribeImages.

            + ///
            + pub fn image_size_in_bytes(mut self, input: i64) -> Self { + self.image_size_in_bytes = Some(input); + self + } + pub fn set_image_size_in_bytes(mut self, input: std::option::Option) -> Self { + self.image_size_in_bytes = input; + self + } + ///

            The date and time, expressed in standard JavaScript date format, at which the current + /// image was pushed to the repository.

            + pub fn image_pushed_at(mut self, input: smithy_types::Instant) -> Self { + self.image_pushed_at = Some(input); + self + } + pub fn set_image_pushed_at( + mut self, + input: std::option::Option, + ) -> Self { + self.image_pushed_at = input; + self + } + ///

            The current state of the scan.

            + pub fn image_scan_status(mut self, input: crate::model::ImageScanStatus) -> Self { + self.image_scan_status = Some(input); + self + } + pub fn set_image_scan_status( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_status = input; + self + } + ///

            A summary of the last completed image scan.

            + pub fn image_scan_findings_summary( + mut self, + input: crate::model::ImageScanFindingsSummary, + ) -> Self { + self.image_scan_findings_summary = Some(input); + self + } + pub fn set_image_scan_findings_summary( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_findings_summary = input; + self + } + ///

            The media type of the image manifest.

            + pub fn image_manifest_media_type(mut self, input: impl Into) -> Self { + self.image_manifest_media_type = Some(input.into()); + self + } + pub fn set_image_manifest_media_type( + mut self, + input: std::option::Option, + ) -> Self { + self.image_manifest_media_type = input; + self + } + ///

            The artifact media type of the image.

            + pub fn artifact_media_type(mut self, input: impl Into) -> Self { + self.artifact_media_type = Some(input.into()); + self + } + pub fn set_artifact_media_type( + mut self, + input: std::option::Option, + ) -> Self { + self.artifact_media_type = input; + self + } + /// Consumes the builder and constructs a [`ImageDetail`](crate::model::ImageDetail) + pub fn build(self) -> crate::model::ImageDetail { + crate::model::ImageDetail { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_digest: self.image_digest, + image_tags: self.image_tags, + image_size_in_bytes: self.image_size_in_bytes, + image_pushed_at: self.image_pushed_at, + image_scan_status: self.image_scan_status, + image_scan_findings_summary: self.image_scan_findings_summary, + image_manifest_media_type: self.image_manifest_media_type, + artifact_media_type: self.artifact_media_type, + } + } + } +} +impl ImageDetail { + /// Creates a new builder-style object to manufacture [`ImageDetail`](crate::model::ImageDetail) + pub fn builder() -> crate::model::image_detail::Builder { + crate::model::image_detail::Builder::default() + } +} + +///

            A summary of the last completed image scan.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageScanFindingsSummary { + ///

            The time of the last completed image scan.

            + pub image_scan_completed_at: std::option::Option, + ///

            The time when the vulnerability data was last scanned.

            + pub vulnerability_source_updated_at: std::option::Option, + ///

            The image vulnerability counts, sorted by severity.

            + pub finding_severity_counts: + std::option::Option>, +} +impl std::fmt::Debug for ImageScanFindingsSummary { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageScanFindingsSummary"); + formatter.field("image_scan_completed_at", &self.image_scan_completed_at); + formatter.field( + "vulnerability_source_updated_at", + &self.vulnerability_source_updated_at, + ); + formatter.field("finding_severity_counts", &self.finding_severity_counts); + formatter.finish() + } +} +/// See [`ImageScanFindingsSummary`](crate::model::ImageScanFindingsSummary) +pub mod image_scan_findings_summary { + /// A builder for [`ImageScanFindingsSummary`](crate::model::ImageScanFindingsSummary) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_scan_completed_at: std::option::Option, + pub(crate) vulnerability_source_updated_at: std::option::Option, + pub(crate) finding_severity_counts: + std::option::Option>, + } + impl Builder { + ///

            The time of the last completed image scan.

            + pub fn image_scan_completed_at(mut self, input: smithy_types::Instant) -> Self { + self.image_scan_completed_at = Some(input); + self + } + pub fn set_image_scan_completed_at( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_completed_at = input; + self + } + ///

            The time when the vulnerability data was last scanned.

            + pub fn vulnerability_source_updated_at(mut self, input: smithy_types::Instant) -> Self { + self.vulnerability_source_updated_at = Some(input); + self + } + pub fn set_vulnerability_source_updated_at( + mut self, + input: std::option::Option, + ) -> Self { + self.vulnerability_source_updated_at = input; + self + } + pub fn finding_severity_counts( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.finding_severity_counts.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.finding_severity_counts = Some(hash_map); + self + } + pub fn set_finding_severity_counts( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.finding_severity_counts = input; + self + } + /// Consumes the builder and constructs a [`ImageScanFindingsSummary`](crate::model::ImageScanFindingsSummary) + pub fn build(self) -> crate::model::ImageScanFindingsSummary { + crate::model::ImageScanFindingsSummary { + image_scan_completed_at: self.image_scan_completed_at, + vulnerability_source_updated_at: self.vulnerability_source_updated_at, + finding_severity_counts: self.finding_severity_counts, + } + } + } +} +impl ImageScanFindingsSummary { + /// Creates a new builder-style object to manufacture [`ImageScanFindingsSummary`](crate::model::ImageScanFindingsSummary) + pub fn builder() -> crate::model::image_scan_findings_summary::Builder { + crate::model::image_scan_findings_summary::Builder::default() + } +} + +///

            An object representing a filter on a DescribeImages +/// operation.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeImagesFilter { + ///

            The tag status with which to filter your DescribeImages results. You + /// can filter results based on whether they are TAGGED or + /// UNTAGGED.

            + pub tag_status: std::option::Option, +} +impl std::fmt::Debug for DescribeImagesFilter { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeImagesFilter"); + formatter.field("tag_status", &self.tag_status); + formatter.finish() + } +} +/// See [`DescribeImagesFilter`](crate::model::DescribeImagesFilter) +pub mod describe_images_filter { + /// A builder for [`DescribeImagesFilter`](crate::model::DescribeImagesFilter) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tag_status: std::option::Option, + } + impl Builder { + ///

            The tag status with which to filter your DescribeImages results. You + /// can filter results based on whether they are TAGGED or + /// UNTAGGED.

            + pub fn tag_status(mut self, input: crate::model::TagStatus) -> Self { + self.tag_status = Some(input); + self + } + pub fn set_tag_status( + mut self, + input: std::option::Option, + ) -> Self { + self.tag_status = input; + self + } + /// Consumes the builder and constructs a [`DescribeImagesFilter`](crate::model::DescribeImagesFilter) + pub fn build(self) -> crate::model::DescribeImagesFilter { + crate::model::DescribeImagesFilter { + tag_status: self.tag_status, + } + } + } +} +impl DescribeImagesFilter { + /// Creates a new builder-style object to manufacture [`DescribeImagesFilter`](crate::model::DescribeImagesFilter) + pub fn builder() -> crate::model::describe_images_filter::Builder { + crate::model::describe_images_filter::Builder::default() + } +} + +///

            An object representing an Amazon ECR image failure.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ImageFailure { + ///

            The image ID associated with the failure.

            + pub image_id: std::option::Option, + ///

            The code associated with the failure.

            + pub failure_code: std::option::Option, + ///

            The reason for the failure.

            + pub failure_reason: std::option::Option, +} +impl std::fmt::Debug for ImageFailure { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ImageFailure"); + formatter.field("image_id", &self.image_id); + formatter.field("failure_code", &self.failure_code); + formatter.field("failure_reason", &self.failure_reason); + formatter.finish() + } +} +/// See [`ImageFailure`](crate::model::ImageFailure) +pub mod image_failure { + /// A builder for [`ImageFailure`](crate::model::ImageFailure) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_id: std::option::Option, + pub(crate) failure_code: std::option::Option, + pub(crate) failure_reason: std::option::Option, + } + impl Builder { + ///

            The image ID associated with the failure.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + ///

            The code associated with the failure.

            + pub fn failure_code(mut self, input: crate::model::ImageFailureCode) -> Self { + self.failure_code = Some(input); + self + } + pub fn set_failure_code( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_code = input; + self + } + ///

            The reason for the failure.

            + pub fn failure_reason(mut self, input: impl Into) -> Self { + self.failure_reason = Some(input.into()); + self + } + pub fn set_failure_reason( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_reason = input; + self + } + /// Consumes the builder and constructs a [`ImageFailure`](crate::model::ImageFailure) + pub fn build(self) -> crate::model::ImageFailure { + crate::model::ImageFailure { + image_id: self.image_id, + failure_code: self.failure_code, + failure_reason: self.failure_reason, + } + } + } +} +impl ImageFailure { + /// Creates a new builder-style object to manufacture [`ImageFailure`](crate::model::ImageFailure) + pub fn builder() -> crate::model::image_failure::Builder { + crate::model::image_failure::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ImageFailureCode { + ImageNotFound, + ImageReferencedByManifestList, + ImageTagDoesNotMatchDigest, + InvalidImageDigest, + InvalidImageTag, + KmsError, + MissingDigestAndTag, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ImageFailureCode { + fn from(s: &str) -> Self { + match s { + "ImageNotFound" => ImageFailureCode::ImageNotFound, + "ImageReferencedByManifestList" => ImageFailureCode::ImageReferencedByManifestList, + "ImageTagDoesNotMatchDigest" => ImageFailureCode::ImageTagDoesNotMatchDigest, + "InvalidImageDigest" => ImageFailureCode::InvalidImageDigest, + "InvalidImageTag" => ImageFailureCode::InvalidImageTag, + "KmsError" => ImageFailureCode::KmsError, + "MissingDigestAndTag" => ImageFailureCode::MissingDigestAndTag, + other => ImageFailureCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ImageFailureCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ImageFailureCode::from(s)) + } +} +impl ImageFailureCode { + pub fn as_str(&self) -> &str { + match self { + ImageFailureCode::ImageNotFound => "ImageNotFound", + ImageFailureCode::ImageReferencedByManifestList => "ImageReferencedByManifestList", + ImageFailureCode::ImageTagDoesNotMatchDigest => "ImageTagDoesNotMatchDigest", + ImageFailureCode::InvalidImageDigest => "InvalidImageDigest", + ImageFailureCode::InvalidImageTag => "InvalidImageTag", + ImageFailureCode::KmsError => "KmsError", + ImageFailureCode::MissingDigestAndTag => "MissingDigestAndTag", + ImageFailureCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ImageFailureCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            An object representing an Amazon ECR image layer failure.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LayerFailure { + ///

            The layer digest associated with the failure.

            + pub layer_digest: std::option::Option, + ///

            The failure code associated with the failure.

            + pub failure_code: std::option::Option, + ///

            The reason for the failure.

            + pub failure_reason: std::option::Option, +} +impl std::fmt::Debug for LayerFailure { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LayerFailure"); + formatter.field("layer_digest", &self.layer_digest); + formatter.field("failure_code", &self.failure_code); + formatter.field("failure_reason", &self.failure_reason); + formatter.finish() + } +} +/// See [`LayerFailure`](crate::model::LayerFailure) +pub mod layer_failure { + /// A builder for [`LayerFailure`](crate::model::LayerFailure) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) layer_digest: std::option::Option, + pub(crate) failure_code: std::option::Option, + pub(crate) failure_reason: std::option::Option, + } + impl Builder { + ///

            The layer digest associated with the failure.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.layer_digest = Some(input.into()); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.layer_digest = input; + self + } + ///

            The failure code associated with the failure.

            + pub fn failure_code(mut self, input: crate::model::LayerFailureCode) -> Self { + self.failure_code = Some(input); + self + } + pub fn set_failure_code( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_code = input; + self + } + ///

            The reason for the failure.

            + pub fn failure_reason(mut self, input: impl Into) -> Self { + self.failure_reason = Some(input.into()); + self + } + pub fn set_failure_reason( + mut self, + input: std::option::Option, + ) -> Self { + self.failure_reason = input; + self + } + /// Consumes the builder and constructs a [`LayerFailure`](crate::model::LayerFailure) + pub fn build(self) -> crate::model::LayerFailure { + crate::model::LayerFailure { + layer_digest: self.layer_digest, + failure_code: self.failure_code, + failure_reason: self.failure_reason, + } + } + } +} +impl LayerFailure { + /// Creates a new builder-style object to manufacture [`LayerFailure`](crate::model::LayerFailure) + pub fn builder() -> crate::model::layer_failure::Builder { + crate::model::layer_failure::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum LayerFailureCode { + InvalidLayerDigest, + MissingLayerDigest, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for LayerFailureCode { + fn from(s: &str) -> Self { + match s { + "InvalidLayerDigest" => LayerFailureCode::InvalidLayerDigest, + "MissingLayerDigest" => LayerFailureCode::MissingLayerDigest, + other => LayerFailureCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for LayerFailureCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(LayerFailureCode::from(s)) + } +} +impl LayerFailureCode { + pub fn as_str(&self) -> &str { + match self { + LayerFailureCode::InvalidLayerDigest => "InvalidLayerDigest", + LayerFailureCode::MissingLayerDigest => "MissingLayerDigest", + LayerFailureCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for LayerFailureCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

            An object representing an Amazon ECR image layer.

            +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Layer { + ///

            The sha256 digest of the image layer.

            + pub layer_digest: std::option::Option, + ///

            The availability status of the image layer.

            + pub layer_availability: std::option::Option, + ///

            The size, in bytes, of the image layer.

            + pub layer_size: std::option::Option, + ///

            The media type of the layer, such as + /// application/vnd.docker.image.rootfs.diff.tar.gzip or + /// application/vnd.oci.image.layer.v1.tar+gzip.

            + pub media_type: std::option::Option, +} +impl std::fmt::Debug for Layer { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Layer"); + formatter.field("layer_digest", &self.layer_digest); + formatter.field("layer_availability", &self.layer_availability); + formatter.field("layer_size", &self.layer_size); + formatter.field("media_type", &self.media_type); + formatter.finish() + } +} +/// See [`Layer`](crate::model::Layer) +pub mod layer { + /// A builder for [`Layer`](crate::model::Layer) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) layer_digest: std::option::Option, + pub(crate) layer_availability: std::option::Option, + pub(crate) layer_size: std::option::Option, + pub(crate) media_type: std::option::Option, + } + impl Builder { + ///

            The sha256 digest of the image layer.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.layer_digest = Some(input.into()); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.layer_digest = input; + self + } + ///

            The availability status of the image layer.

            + pub fn layer_availability(mut self, input: crate::model::LayerAvailability) -> Self { + self.layer_availability = Some(input); + self + } + pub fn set_layer_availability( + mut self, + input: std::option::Option, + ) -> Self { + self.layer_availability = input; + self + } + ///

            The size, in bytes, of the image layer.

            + pub fn layer_size(mut self, input: i64) -> Self { + self.layer_size = Some(input); + self + } + pub fn set_layer_size(mut self, input: std::option::Option) -> Self { + self.layer_size = input; + self + } + ///

            The media type of the layer, such as + /// application/vnd.docker.image.rootfs.diff.tar.gzip or + /// application/vnd.oci.image.layer.v1.tar+gzip.

            + pub fn media_type(mut self, input: impl Into) -> Self { + self.media_type = Some(input.into()); + self + } + pub fn set_media_type(mut self, input: std::option::Option) -> Self { + self.media_type = input; + self + } + /// Consumes the builder and constructs a [`Layer`](crate::model::Layer) + pub fn build(self) -> crate::model::Layer { + crate::model::Layer { + layer_digest: self.layer_digest, + layer_availability: self.layer_availability, + layer_size: self.layer_size, + media_type: self.media_type, + } + } + } +} +impl Layer { + /// Creates a new builder-style object to manufacture [`Layer`](crate::model::Layer) + pub fn builder() -> crate::model::layer::Builder { + crate::model::layer::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum LayerAvailability { + Available, + Unavailable, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for LayerAvailability { + fn from(s: &str) -> Self { + match s { + "AVAILABLE" => LayerAvailability::Available, + "UNAVAILABLE" => LayerAvailability::Unavailable, + other => LayerAvailability::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for LayerAvailability { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(LayerAvailability::from(s)) + } +} +impl LayerAvailability { + pub fn as_str(&self) -> &str { + match self { + LayerAvailability::Available => "AVAILABLE", + LayerAvailability::Unavailable => "UNAVAILABLE", + LayerAvailability::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for LayerAvailability { + fn as_ref(&self) -> &str { + self.as_str() + } +} diff --git a/sdk/ecr/src/operation.rs b/sdk/ecr/src/operation.rs new file mode 100644 index 000000000000..1a4845c77d08 --- /dev/null +++ b/sdk/ecr/src/operation.rs @@ -0,0 +1,1036 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

            Checks the availability of one or more image layers in a repository.

            +///

            When an image is pushed to a repository, each image layer is checked to verify if it +/// has been uploaded before. If it has been uploaded, then the image layer is +/// skipped.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct BatchCheckLayerAvailability { + _private: (), +} +impl BatchCheckLayerAvailability { + /// Creates a new builder-style object to manufacture [`BatchCheckLayerAvailabilityInput`](crate::input::BatchCheckLayerAvailabilityInput) + pub fn builder() -> crate::input::batch_check_layer_availability_input::Builder { + crate::input::batch_check_layer_availability_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for BatchCheckLayerAvailability { + type Output = std::result::Result< + crate::output::BatchCheckLayerAvailabilityOutput, + crate::error::BatchCheckLayerAvailabilityError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_check_layer_availability_error(response) + } else { + crate::operation_deser::parse_batch_check_layer_availability_response(response) + } + } +} + +///

            Deletes a list of specified images within a repository. Images are specified with +/// either an imageTag or imageDigest.

            +///

            You can remove a tag from an image by specifying the image's tag in your request. When +/// you remove the last tag from an image, the image is deleted from your repository.

            +///

            You can completely delete an image (and all of its tags) by specifying the image's +/// digest in your request.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct BatchDeleteImage { + _private: (), +} +impl BatchDeleteImage { + /// Creates a new builder-style object to manufacture [`BatchDeleteImageInput`](crate::input::BatchDeleteImageInput) + pub fn builder() -> crate::input::batch_delete_image_input::Builder { + crate::input::batch_delete_image_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for BatchDeleteImage { + type Output = std::result::Result< + crate::output::BatchDeleteImageOutput, + crate::error::BatchDeleteImageError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_delete_image_error(response) + } else { + crate::operation_deser::parse_batch_delete_image_response(response) + } + } +} + +///

            Gets detailed information for an image. Images are specified with either an +/// imageTag or imageDigest.

            +///

            When an image is pulled, the BatchGetImage API is called once to retrieve the image +/// manifest.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct BatchGetImage { + _private: (), +} +impl BatchGetImage { + /// Creates a new builder-style object to manufacture [`BatchGetImageInput`](crate::input::BatchGetImageInput) + pub fn builder() -> crate::input::batch_get_image_input::Builder { + crate::input::batch_get_image_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for BatchGetImage { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_batch_get_image_error(response) + } else { + crate::operation_deser::parse_batch_get_image_response(response) + } + } +} + +///

            Informs Amazon ECR that the image layer upload has completed for a specified registry, +/// repository name, and upload ID. You can optionally provide a sha256 digest +/// of the image layer for data validation purposes.

            +///

            When an image is pushed, the CompleteLayerUpload API is called once per each new image +/// layer to verify that the upload has completed.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CompleteLayerUpload { + _private: (), +} +impl CompleteLayerUpload { + /// Creates a new builder-style object to manufacture [`CompleteLayerUploadInput`](crate::input::CompleteLayerUploadInput) + pub fn builder() -> crate::input::complete_layer_upload_input::Builder { + crate::input::complete_layer_upload_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CompleteLayerUpload { + type Output = std::result::Result< + crate::output::CompleteLayerUploadOutput, + crate::error::CompleteLayerUploadError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_complete_layer_upload_error(response) + } else { + crate::operation_deser::parse_complete_layer_upload_response(response) + } + } +} + +///

            Creates a repository. For more information, see Amazon ECR Repositories in the +/// Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CreateRepository { + _private: (), +} +impl CreateRepository { + /// Creates a new builder-style object to manufacture [`CreateRepositoryInput`](crate::input::CreateRepositoryInput) + pub fn builder() -> crate::input::create_repository_input::Builder { + crate::input::create_repository_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CreateRepository { + type Output = std::result::Result< + crate::output::CreateRepositoryOutput, + crate::error::CreateRepositoryError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_repository_error(response) + } else { + crate::operation_deser::parse_create_repository_response(response) + } + } +} + +///

            Deletes the lifecycle policy associated with the specified repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteLifecyclePolicy { + _private: (), +} +impl DeleteLifecyclePolicy { + /// Creates a new builder-style object to manufacture [`DeleteLifecyclePolicyInput`](crate::input::DeleteLifecyclePolicyInput) + pub fn builder() -> crate::input::delete_lifecycle_policy_input::Builder { + crate::input::delete_lifecycle_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteLifecyclePolicy { + type Output = std::result::Result< + crate::output::DeleteLifecyclePolicyOutput, + crate::error::DeleteLifecyclePolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_lifecycle_policy_error(response) + } else { + crate::operation_deser::parse_delete_lifecycle_policy_response(response) + } + } +} + +///

            Deletes the registry permissions policy.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteRegistryPolicy { + _private: (), +} +impl DeleteRegistryPolicy { + /// Creates a new builder-style object to manufacture [`DeleteRegistryPolicyInput`](crate::input::DeleteRegistryPolicyInput) + pub fn builder() -> crate::input::delete_registry_policy_input::Builder { + crate::input::delete_registry_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteRegistryPolicy { + type Output = std::result::Result< + crate::output::DeleteRegistryPolicyOutput, + crate::error::DeleteRegistryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_registry_policy_error(response) + } else { + crate::operation_deser::parse_delete_registry_policy_response(response) + } + } +} + +///

            Deletes a repository. If the repository contains images, you must either delete all +/// images in the repository or use the force option to delete the +/// repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteRepository { + _private: (), +} +impl DeleteRepository { + /// Creates a new builder-style object to manufacture [`DeleteRepositoryInput`](crate::input::DeleteRepositoryInput) + pub fn builder() -> crate::input::delete_repository_input::Builder { + crate::input::delete_repository_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteRepository { + type Output = std::result::Result< + crate::output::DeleteRepositoryOutput, + crate::error::DeleteRepositoryError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_repository_error(response) + } else { + crate::operation_deser::parse_delete_repository_response(response) + } + } +} + +///

            Deletes the repository policy associated with the specified repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteRepositoryPolicy { + _private: (), +} +impl DeleteRepositoryPolicy { + /// Creates a new builder-style object to manufacture [`DeleteRepositoryPolicyInput`](crate::input::DeleteRepositoryPolicyInput) + pub fn builder() -> crate::input::delete_repository_policy_input::Builder { + crate::input::delete_repository_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteRepositoryPolicy { + type Output = std::result::Result< + crate::output::DeleteRepositoryPolicyOutput, + crate::error::DeleteRepositoryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_repository_policy_error(response) + } else { + crate::operation_deser::parse_delete_repository_policy_response(response) + } + } +} + +///

            Returns metadata about the images in a repository.

            +/// +///

            Beginning with Docker version 1.9, the Docker client compresses image layers +/// before pushing them to a V2 Docker registry. The output of the docker +/// images command shows the uncompressed image size, so it may return a +/// larger image size than the image sizes returned by DescribeImages.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeImages { + _private: (), +} +impl DescribeImages { + /// Creates a new builder-style object to manufacture [`DescribeImagesInput`](crate::input::DescribeImagesInput) + pub fn builder() -> crate::input::describe_images_input::Builder { + crate::input::describe_images_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeImages { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_images_error(response) + } else { + crate::operation_deser::parse_describe_images_response(response) + } + } +} + +///

            Returns the scan findings for the specified image.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeImageScanFindings { + _private: (), +} +impl DescribeImageScanFindings { + /// Creates a new builder-style object to manufacture [`DescribeImageScanFindingsInput`](crate::input::DescribeImageScanFindingsInput) + pub fn builder() -> crate::input::describe_image_scan_findings_input::Builder { + crate::input::describe_image_scan_findings_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeImageScanFindings { + type Output = std::result::Result< + crate::output::DescribeImageScanFindingsOutput, + crate::error::DescribeImageScanFindingsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_image_scan_findings_error(response) + } else { + crate::operation_deser::parse_describe_image_scan_findings_response(response) + } + } +} + +///

            Describes the settings for a registry. The replication configuration for a repository +/// can be created or updated with the PutReplicationConfiguration API +/// action.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeRegistry { + _private: (), +} +impl DescribeRegistry { + /// Creates a new builder-style object to manufacture [`DescribeRegistryInput`](crate::input::DescribeRegistryInput) + pub fn builder() -> crate::input::describe_registry_input::Builder { + crate::input::describe_registry_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeRegistry { + type Output = std::result::Result< + crate::output::DescribeRegistryOutput, + crate::error::DescribeRegistryError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_registry_error(response) + } else { + crate::operation_deser::parse_describe_registry_response(response) + } + } +} + +///

            Describes image repositories in a registry.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeRepositories { + _private: (), +} +impl DescribeRepositories { + /// Creates a new builder-style object to manufacture [`DescribeRepositoriesInput`](crate::input::DescribeRepositoriesInput) + pub fn builder() -> crate::input::describe_repositories_input::Builder { + crate::input::describe_repositories_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeRepositories { + type Output = std::result::Result< + crate::output::DescribeRepositoriesOutput, + crate::error::DescribeRepositoriesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_repositories_error(response) + } else { + crate::operation_deser::parse_describe_repositories_response(response) + } + } +} + +///

            Retrieves an authorization token. An authorization token represents your IAM +/// authentication credentials and can be used to access any Amazon ECR registry that your IAM +/// principal has access to. The authorization token is valid for 12 hours.

            +///

            The authorizationToken returned is a base64 encoded string that can be +/// decoded and used in a docker login command to authenticate to a registry. +/// The AWS CLI offers an get-login-password command that simplifies the login +/// process. For more information, see Registry +/// Authentication in the Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetAuthorizationToken { + _private: (), +} +impl GetAuthorizationToken { + /// Creates a new builder-style object to manufacture [`GetAuthorizationTokenInput`](crate::input::GetAuthorizationTokenInput) + pub fn builder() -> crate::input::get_authorization_token_input::Builder { + crate::input::get_authorization_token_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetAuthorizationToken { + type Output = std::result::Result< + crate::output::GetAuthorizationTokenOutput, + crate::error::GetAuthorizationTokenError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_authorization_token_error(response) + } else { + crate::operation_deser::parse_get_authorization_token_response(response) + } + } +} + +///

            Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You +/// can only get URLs for image layers that are referenced in an image.

            +///

            When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer +/// that is not already cached.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetDownloadUrlForLayer { + _private: (), +} +impl GetDownloadUrlForLayer { + /// Creates a new builder-style object to manufacture [`GetDownloadUrlForLayerInput`](crate::input::GetDownloadUrlForLayerInput) + pub fn builder() -> crate::input::get_download_url_for_layer_input::Builder { + crate::input::get_download_url_for_layer_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetDownloadUrlForLayer { + type Output = std::result::Result< + crate::output::GetDownloadUrlForLayerOutput, + crate::error::GetDownloadUrlForLayerError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_download_url_for_layer_error(response) + } else { + crate::operation_deser::parse_get_download_url_for_layer_response(response) + } + } +} + +///

            Retrieves the lifecycle policy for the specified repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetLifecyclePolicy { + _private: (), +} +impl GetLifecyclePolicy { + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyInput`](crate::input::GetLifecyclePolicyInput) + pub fn builder() -> crate::input::get_lifecycle_policy_input::Builder { + crate::input::get_lifecycle_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetLifecyclePolicy { + type Output = std::result::Result< + crate::output::GetLifecyclePolicyOutput, + crate::error::GetLifecyclePolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_lifecycle_policy_error(response) + } else { + crate::operation_deser::parse_get_lifecycle_policy_response(response) + } + } +} + +///

            Retrieves the results of the lifecycle policy preview request for the specified +/// repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetLifecyclePolicyPreview { + _private: (), +} +impl GetLifecyclePolicyPreview { + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyPreviewInput`](crate::input::GetLifecyclePolicyPreviewInput) + pub fn builder() -> crate::input::get_lifecycle_policy_preview_input::Builder { + crate::input::get_lifecycle_policy_preview_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetLifecyclePolicyPreview { + type Output = std::result::Result< + crate::output::GetLifecyclePolicyPreviewOutput, + crate::error::GetLifecyclePolicyPreviewError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_lifecycle_policy_preview_error(response) + } else { + crate::operation_deser::parse_get_lifecycle_policy_preview_response(response) + } + } +} + +///

            Retrieves the permissions policy for a registry.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetRegistryPolicy { + _private: (), +} +impl GetRegistryPolicy { + /// Creates a new builder-style object to manufacture [`GetRegistryPolicyInput`](crate::input::GetRegistryPolicyInput) + pub fn builder() -> crate::input::get_registry_policy_input::Builder { + crate::input::get_registry_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetRegistryPolicy { + type Output = std::result::Result< + crate::output::GetRegistryPolicyOutput, + crate::error::GetRegistryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_registry_policy_error(response) + } else { + crate::operation_deser::parse_get_registry_policy_response(response) + } + } +} + +///

            Retrieves the repository policy for the specified repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct GetRepositoryPolicy { + _private: (), +} +impl GetRepositoryPolicy { + /// Creates a new builder-style object to manufacture [`GetRepositoryPolicyInput`](crate::input::GetRepositoryPolicyInput) + pub fn builder() -> crate::input::get_repository_policy_input::Builder { + crate::input::get_repository_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for GetRepositoryPolicy { + type Output = std::result::Result< + crate::output::GetRepositoryPolicyOutput, + crate::error::GetRepositoryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_repository_policy_error(response) + } else { + crate::operation_deser::parse_get_repository_policy_response(response) + } + } +} + +///

            Notifies Amazon ECR that you intend to upload an image layer.

            +///

            When an image is pushed, the InitiateLayerUpload API is called once per image layer +/// that has not already been uploaded. Whether or not an image layer has been uploaded is +/// determined by the BatchCheckLayerAvailability API action.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct InitiateLayerUpload { + _private: (), +} +impl InitiateLayerUpload { + /// Creates a new builder-style object to manufacture [`InitiateLayerUploadInput`](crate::input::InitiateLayerUploadInput) + pub fn builder() -> crate::input::initiate_layer_upload_input::Builder { + crate::input::initiate_layer_upload_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for InitiateLayerUpload { + type Output = std::result::Result< + crate::output::InitiateLayerUploadOutput, + crate::error::InitiateLayerUploadError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_initiate_layer_upload_error(response) + } else { + crate::operation_deser::parse_initiate_layer_upload_response(response) + } + } +} + +///

            Lists all the image IDs for the specified repository.

            +///

            You can filter images based on whether or not they are tagged by using the +/// tagStatus filter and specifying either TAGGED, +/// UNTAGGED or ANY. For example, you can filter your results +/// to return only UNTAGGED images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your +/// results to return only TAGGED images to list all of the tags in your +/// repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListImages { + _private: (), +} +impl ListImages { + /// Creates a new builder-style object to manufacture [`ListImagesInput`](crate::input::ListImagesInput) + pub fn builder() -> crate::input::list_images_input::Builder { + crate::input::list_images_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListImages { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_images_error(response) + } else { + crate::operation_deser::parse_list_images_response(response) + } + } +} + +///

            List the tags for an Amazon ECR resource.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListTagsForResource { + _private: (), +} +impl ListTagsForResource { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListTagsForResource { + type Output = std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_for_resource_response(response) + } + } +} + +///

            Creates or updates the image manifest and tags associated with an image.

            +///

            When an image is pushed and all new image layers have been uploaded, the PutImage API +/// is called once to create or update the image manifest and the tags associated with the +/// image.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutImage { + _private: (), +} +impl PutImage { + /// Creates a new builder-style object to manufacture [`PutImageInput`](crate::input::PutImageInput) + pub fn builder() -> crate::input::put_image_input::Builder { + crate::input::put_image_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutImage { + type Output = std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_image_error(response) + } else { + crate::operation_deser::parse_put_image_response(response) + } + } +} + +///

            Updates the image scanning configuration for the specified repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutImageScanningConfiguration { + _private: (), +} +impl PutImageScanningConfiguration { + /// Creates a new builder-style object to manufacture [`PutImageScanningConfigurationInput`](crate::input::PutImageScanningConfigurationInput) + pub fn builder() -> crate::input::put_image_scanning_configuration_input::Builder { + crate::input::put_image_scanning_configuration_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutImageScanningConfiguration { + type Output = std::result::Result< + crate::output::PutImageScanningConfigurationOutput, + crate::error::PutImageScanningConfigurationError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_image_scanning_configuration_error(response) + } else { + crate::operation_deser::parse_put_image_scanning_configuration_response(response) + } + } +} + +///

            Updates the image tag mutability settings for the specified repository. For more +/// information, see Image Tag +/// Mutability in the Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutImageTagMutability { + _private: (), +} +impl PutImageTagMutability { + /// Creates a new builder-style object to manufacture [`PutImageTagMutabilityInput`](crate::input::PutImageTagMutabilityInput) + pub fn builder() -> crate::input::put_image_tag_mutability_input::Builder { + crate::input::put_image_tag_mutability_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutImageTagMutability { + type Output = std::result::Result< + crate::output::PutImageTagMutabilityOutput, + crate::error::PutImageTagMutabilityError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_image_tag_mutability_error(response) + } else { + crate::operation_deser::parse_put_image_tag_mutability_response(response) + } + } +} + +///

            Creates or updates the lifecycle policy for the specified repository. For more +/// information, see Lifecycle Policy +/// Template.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutLifecyclePolicy { + _private: (), +} +impl PutLifecyclePolicy { + /// Creates a new builder-style object to manufacture [`PutLifecyclePolicyInput`](crate::input::PutLifecyclePolicyInput) + pub fn builder() -> crate::input::put_lifecycle_policy_input::Builder { + crate::input::put_lifecycle_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutLifecyclePolicy { + type Output = std::result::Result< + crate::output::PutLifecyclePolicyOutput, + crate::error::PutLifecyclePolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_lifecycle_policy_error(response) + } else { + crate::operation_deser::parse_put_lifecycle_policy_response(response) + } + } +} + +///

            Creates or updates the permissions policy for your registry.

            +///

            A registry policy is used to specify permissions for another AWS account and is used +/// when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutRegistryPolicy { + _private: (), +} +impl PutRegistryPolicy { + /// Creates a new builder-style object to manufacture [`PutRegistryPolicyInput`](crate::input::PutRegistryPolicyInput) + pub fn builder() -> crate::input::put_registry_policy_input::Builder { + crate::input::put_registry_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutRegistryPolicy { + type Output = std::result::Result< + crate::output::PutRegistryPolicyOutput, + crate::error::PutRegistryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_registry_policy_error(response) + } else { + crate::operation_deser::parse_put_registry_policy_response(response) + } + } +} + +///

            Creates or updates the replication configuration for a registry. The existing +/// replication configuration for a repository can be retrieved with the DescribeRegistry API action. The first time the +/// PutReplicationConfiguration API is called, a service-linked IAM role is created in +/// your account for the replication process. For more information, see Using +/// Service-Linked Roles for Amazon ECR in the +/// Amazon Elastic Container Registry User Guide.

            +/// +///

            When configuring cross-account replication, the destination account must grant the +/// source account permission to replicate. This permission is controlled using a +/// registry permissions policy. For more information, see PutRegistryPolicy.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct PutReplicationConfiguration { + _private: (), +} +impl PutReplicationConfiguration { + /// Creates a new builder-style object to manufacture [`PutReplicationConfigurationInput`](crate::input::PutReplicationConfigurationInput) + pub fn builder() -> crate::input::put_replication_configuration_input::Builder { + crate::input::put_replication_configuration_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for PutReplicationConfiguration { + type Output = std::result::Result< + crate::output::PutReplicationConfigurationOutput, + crate::error::PutReplicationConfigurationError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_replication_configuration_error(response) + } else { + crate::operation_deser::parse_put_replication_configuration_response(response) + } + } +} + +///

            Applies a repository policy to the specified repository to control access permissions. +/// For more information, see Amazon ECR Repository +/// Policies in the Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct SetRepositoryPolicy { + _private: (), +} +impl SetRepositoryPolicy { + /// Creates a new builder-style object to manufacture [`SetRepositoryPolicyInput`](crate::input::SetRepositoryPolicyInput) + pub fn builder() -> crate::input::set_repository_policy_input::Builder { + crate::input::set_repository_policy_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for SetRepositoryPolicy { + type Output = std::result::Result< + crate::output::SetRepositoryPolicyOutput, + crate::error::SetRepositoryPolicyError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_set_repository_policy_error(response) + } else { + crate::operation_deser::parse_set_repository_policy_response(response) + } + } +} + +///

            Starts an image vulnerability scan. An image scan can only be started once per day on +/// an individual image. This limit includes if an image was scanned on initial push. For +/// more information, see Image Scanning in the +/// Amazon Elastic Container Registry User Guide.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct StartImageScan { + _private: (), +} +impl StartImageScan { + /// Creates a new builder-style object to manufacture [`StartImageScanInput`](crate::input::StartImageScanInput) + pub fn builder() -> crate::input::start_image_scan_input::Builder { + crate::input::start_image_scan_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for StartImageScan { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_image_scan_error(response) + } else { + crate::operation_deser::parse_start_image_scan_response(response) + } + } +} + +///

            Starts a preview of a lifecycle policy for the specified repository. This allows you +/// to see the results before associating the lifecycle policy with the repository.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct StartLifecyclePolicyPreview { + _private: (), +} +impl StartLifecyclePolicyPreview { + /// Creates a new builder-style object to manufacture [`StartLifecyclePolicyPreviewInput`](crate::input::StartLifecyclePolicyPreviewInput) + pub fn builder() -> crate::input::start_lifecycle_policy_preview_input::Builder { + crate::input::start_lifecycle_policy_preview_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for StartLifecyclePolicyPreview { + type Output = std::result::Result< + crate::output::StartLifecyclePolicyPreviewOutput, + crate::error::StartLifecyclePolicyPreviewError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_lifecycle_policy_preview_error(response) + } else { + crate::operation_deser::parse_start_lifecycle_policy_preview_response(response) + } + } +} + +///

            Adds specified tags to a resource with the specified ARN. Existing tags on a resource +/// are not changed if they are not specified in the request parameters.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct TagResource { + _private: (), +} +impl TagResource { + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for TagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } + } +} + +///

            Deletes specified tags from a resource.

            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UntagResource { + _private: (), +} +impl UntagResource { + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UntagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } + } +} + +///

            Uploads an image layer part to Amazon ECR.

            +///

            When an image is pushed, each new image layer is uploaded in parts. The maximum size +/// of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API +/// is called once per each new image layer part.

            +/// +///

            This operation is used by the Amazon ECR proxy and is not generally used by +/// customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

            +///
            +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UploadLayerPart { + _private: (), +} +impl UploadLayerPart { + /// Creates a new builder-style object to manufacture [`UploadLayerPartInput`](crate::input::UploadLayerPartInput) + pub fn builder() -> crate::input::upload_layer_part_input::Builder { + crate::input::upload_layer_part_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UploadLayerPart { + type Output = std::result::Result< + crate::output::UploadLayerPartOutput, + crate::error::UploadLayerPartError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_upload_layer_part_error(response) + } else { + crate::operation_deser::parse_upload_layer_part_response(response) + } + } +} diff --git a/sdk/ecr/src/operation_deser.rs b/sdk/ecr/src/operation_deser.rs new file mode 100644 index 000000000000..1e559c70f2ba --- /dev/null +++ b/sdk/ecr/src/operation_deser.rs @@ -0,0 +1,3142 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_check_layer_availability_error( + response: &http::Response, +) -> std::result::Result< + crate::output::BatchCheckLayerAvailabilityOutput, + crate::error::BatchCheckLayerAvailabilityError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchCheckLayerAvailabilityError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::BatchCheckLayerAvailabilityError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::BatchCheckLayerAvailabilityError { + meta: generic, + kind: crate::error::BatchCheckLayerAvailabilityErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchCheckLayerAvailabilityError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => { + crate::error::BatchCheckLayerAvailabilityError { + meta: generic, + kind: + crate::error::BatchCheckLayerAvailabilityErrorKind::RepositoryNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::BatchCheckLayerAvailabilityError::unhandled)?; + output.build() + }, + ), + } + } + "ServerException" => crate::error::BatchCheckLayerAvailabilityError { + meta: generic, + kind: crate::error::BatchCheckLayerAvailabilityErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchCheckLayerAvailabilityError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchCheckLayerAvailabilityError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_check_layer_availability_response( + response: &http::Response, +) -> std::result::Result< + crate::output::BatchCheckLayerAvailabilityOutput, + crate::error::BatchCheckLayerAvailabilityError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_check_layer_availability_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_batch_check_layer_availability( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchCheckLayerAvailabilityError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_delete_image_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchDeleteImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::BatchDeleteImageError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::BatchDeleteImageError { + meta: generic, + kind: crate::error::BatchDeleteImageErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteImageError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::BatchDeleteImageError { + meta: generic, + kind: crate::error::BatchDeleteImageErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteImageError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::BatchDeleteImageError { + meta: generic, + kind: crate::error::BatchDeleteImageErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchDeleteImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_delete_image_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_delete_image_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_batch_delete_image(response.body().as_ref(), output) + .map_err(crate::error::BatchDeleteImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_get_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::BatchGetImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::BatchGetImageError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::BatchGetImageError { + meta: generic, + kind: crate::error::BatchGetImageErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetImageError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::BatchGetImageError { + meta: generic, + kind: crate::error::BatchGetImageErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetImageError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::BatchGetImageError { + meta: generic, + kind: crate::error::BatchGetImageErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::BatchGetImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_batch_get_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::batch_get_image_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_batch_get_image(response.body().as_ref(), output) + .map_err(crate::error::BatchGetImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_complete_layer_upload_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CompleteLayerUploadOutput, + crate::error::CompleteLayerUploadError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CompleteLayerUploadError::unhandled(generic)), + }; + Err(match error_code { + "EmptyUploadException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::EmptyUploadException({ + #[allow(unused_mut)] + let mut output = crate::error::empty_upload_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_empty_upload_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "InvalidLayerException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::InvalidLayerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_layer_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_layer_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "LayerAlreadyExistsException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::LayerAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::layer_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_layer_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "LayerPartTooSmallException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::LayerPartTooSmallException({ + #[allow(unused_mut)] + let mut output = crate::error::layer_part_too_small_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_layer_part_too_small_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + "UploadNotFoundException" => crate::error::CompleteLayerUploadError { + meta: generic, + kind: crate::error::CompleteLayerUploadErrorKind::UploadNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::upload_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_upload_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CompleteLayerUploadError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_complete_layer_upload_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CompleteLayerUploadOutput, + crate::error::CompleteLayerUploadError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::complete_layer_upload_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_complete_layer_upload( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CompleteLayerUploadError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_repository_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateRepositoryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + "InvalidTagParameterException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::InvalidTagParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_tag_parameter_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_tag_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + "RepositoryAlreadyExistsException" => { + crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::RepositoryAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::repository_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + } + } + "ServerException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + "TooManyTagsException" => crate::error::CreateRepositoryError { + meta: generic, + kind: crate::error::CreateRepositoryErrorKind::TooManyTagsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_tags_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_tags_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateRepositoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_repository_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_repository_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_repository(response.body().as_ref(), output) + .map_err(crate::error::CreateRepositoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_lifecycle_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteLifecyclePolicyOutput, + crate::error::DeleteLifecyclePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteLifecyclePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteLifecyclePolicyError { + meta: generic, + kind: crate::error::DeleteLifecyclePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "LifecyclePolicyNotFoundException" => crate::error::DeleteLifecyclePolicyError { + meta: generic, + kind: crate::error::DeleteLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::lifecycle_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_lifecycle_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DeleteLifecyclePolicyError { + meta: generic, + kind: crate::error::DeleteLifecyclePolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteLifecyclePolicyError { + meta: generic, + kind: crate::error::DeleteLifecyclePolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteLifecyclePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_lifecycle_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteLifecyclePolicyOutput, + crate::error::DeleteLifecyclePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_lifecycle_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_lifecycle_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLifecyclePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_registry_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRegistryPolicyOutput, + crate::error::DeleteRegistryPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteRegistryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteRegistryPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteRegistryPolicyError { + meta: generic, + kind: crate::error::DeleteRegistryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRegistryPolicyError::unhandled)?; + output.build() + }), + }, + "RegistryPolicyNotFoundException" => { + crate::error::DeleteRegistryPolicyError { + meta: generic, + kind: crate::error::DeleteRegistryPolicyErrorKind::RegistryPolicyNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::registry_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_registry_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteRegistryPolicyError::unhandled)?; + output.build() + }, + ), + } + } + "ServerException" => crate::error::DeleteRegistryPolicyError { + meta: generic, + kind: crate::error::DeleteRegistryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRegistryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteRegistryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_registry_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRegistryPolicyOutput, + crate::error::DeleteRegistryPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_registry_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_registry_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRegistryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_repository_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteRepositoryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteRepositoryError { + meta: generic, + kind: crate::error::DeleteRepositoryErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::DeleteRepositoryError { + meta: generic, + kind: crate::error::DeleteRepositoryErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }), + }, + "RepositoryNotEmptyException" => crate::error::DeleteRepositoryError { + meta: generic, + kind: crate::error::DeleteRepositoryErrorKind::RepositoryNotEmptyException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_empty_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_empty_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DeleteRepositoryError { + meta: generic, + kind: crate::error::DeleteRepositoryErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteRepositoryError { + meta: generic, + kind: crate::error::DeleteRepositoryErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteRepositoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_repository_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_repository_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_repository(response.body().as_ref(), output) + .map_err(crate::error::DeleteRepositoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_repository_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRepositoryPolicyOutput, + crate::error::DeleteRepositoryPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteRepositoryPolicyError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DeleteRepositoryPolicyError { + meta: generic, + kind: crate::error::DeleteRepositoryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DeleteRepositoryPolicyError { + meta: generic, + kind: crate::error::DeleteRepositoryPolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryPolicyNotFoundException" => crate::error::DeleteRepositoryPolicyError { + meta: generic, + kind: crate::error::DeleteRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::repository_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + output.build() + }, + ), + }, + "ServerException" => crate::error::DeleteRepositoryPolicyError { + meta: generic, + kind: crate::error::DeleteRepositoryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteRepositoryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_repository_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteRepositoryPolicyOutput, + crate::error::DeleteRepositoryPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_repository_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_repository_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRepositoryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_images_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeImagesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeImagesError::unhandled(generic)), + }; + Err(match error_code { + "ImageNotFoundException" => crate::error::DescribeImagesError { + meta: generic, + kind: crate::error::DescribeImagesErrorKind::ImageNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::image_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImagesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeImagesError { + meta: generic, + kind: crate::error::DescribeImagesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImagesError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DescribeImagesError { + meta: generic, + kind: crate::error::DescribeImagesErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImagesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeImagesError { + meta: generic, + kind: crate::error::DescribeImagesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImagesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeImagesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_images_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_images_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_images(response.body().as_ref(), output) + .map_err(crate::error::DescribeImagesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_scan_findings_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeImageScanFindingsOutput, + crate::error::DescribeImageScanFindingsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeImageScanFindingsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ImageNotFoundException" => crate::error::DescribeImageScanFindingsError { + meta: generic, + kind: crate::error::DescribeImageScanFindingsErrorKind::ImageNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::image_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeImageScanFindingsError { + meta: generic, + kind: crate::error::DescribeImageScanFindingsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DescribeImageScanFindingsError { + meta: generic, + kind: crate::error::DescribeImageScanFindingsErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }), + }, + "ScanNotFoundException" => crate::error::DescribeImageScanFindingsError { + meta: generic, + kind: crate::error::DescribeImageScanFindingsErrorKind::ScanNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::scan_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_scan_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeImageScanFindingsError { + meta: generic, + kind: crate::error::DescribeImageScanFindingsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeImageScanFindingsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_scan_findings_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeImageScanFindingsOutput, + crate::error::DescribeImageScanFindingsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_image_scan_findings_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_image_scan_findings( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageScanFindingsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_registry_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeRegistryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeRegistryError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeRegistryError { + meta: generic, + kind: crate::error::DescribeRegistryErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRegistryError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeRegistryError { + meta: generic, + kind: crate::error::DescribeRegistryErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRegistryError::unhandled)?; + output.build() + }), + }, + "ValidationException" => crate::error::DescribeRegistryError { + meta: generic, + kind: crate::error::DescribeRegistryErrorKind::ValidationException({ + #[allow(unused_mut)] + let mut output = crate::error::validation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRegistryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeRegistryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_registry_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_registry_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_registry(response.body().as_ref(), output) + .map_err(crate::error::DescribeRegistryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_repositories_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeRepositoriesOutput, + crate::error::DescribeRepositoriesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeRepositoriesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeRepositoriesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeRepositoriesError { + meta: generic, + kind: crate::error::DescribeRepositoriesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRepositoriesError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::DescribeRepositoriesError { + meta: generic, + kind: crate::error::DescribeRepositoriesErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRepositoriesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeRepositoriesError { + meta: generic, + kind: crate::error::DescribeRepositoriesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRepositoriesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeRepositoriesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_repositories_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeRepositoriesOutput, + crate::error::DescribeRepositoriesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_repositories_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_repositories( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeRepositoriesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_authorization_token_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetAuthorizationTokenOutput, + crate::error::GetAuthorizationTokenError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetAuthorizationTokenError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetAuthorizationTokenError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetAuthorizationTokenError { + meta: generic, + kind: crate::error::GetAuthorizationTokenErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizationTokenError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::GetAuthorizationTokenError { + meta: generic, + kind: crate::error::GetAuthorizationTokenErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizationTokenError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetAuthorizationTokenError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_authorization_token_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetAuthorizationTokenOutput, + crate::error::GetAuthorizationTokenError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_authorization_token_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_authorization_token( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAuthorizationTokenError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_download_url_for_layer_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDownloadUrlForLayerOutput, + crate::error::GetDownloadUrlForLayerError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetDownloadUrlForLayerError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetDownloadUrlForLayerError { + meta: generic, + kind: crate::error::GetDownloadUrlForLayerErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }), + }, + "LayerInaccessibleException" => crate::error::GetDownloadUrlForLayerError { + meta: generic, + kind: crate::error::GetDownloadUrlForLayerErrorKind::LayerInaccessibleException({ + #[allow(unused_mut)] + let mut output = crate::error::layer_inaccessible_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_layer_inaccessible_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }), + }, + "LayersNotFoundException" => crate::error::GetDownloadUrlForLayerError { + meta: generic, + kind: crate::error::GetDownloadUrlForLayerErrorKind::LayersNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::layers_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_layers_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::GetDownloadUrlForLayerError { + meta: generic, + kind: crate::error::GetDownloadUrlForLayerErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::GetDownloadUrlForLayerError { + meta: generic, + kind: crate::error::GetDownloadUrlForLayerErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetDownloadUrlForLayerError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_download_url_for_layer_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDownloadUrlForLayerOutput, + crate::error::GetDownloadUrlForLayerError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_download_url_for_layer_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_download_url_for_layer( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDownloadUrlForLayerError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_lifecycle_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetLifecyclePolicyOutput, + crate::error::GetLifecyclePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetLifecyclePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetLifecyclePolicyError { + meta: generic, + kind: crate::error::GetLifecyclePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "LifecyclePolicyNotFoundException" => crate::error::GetLifecyclePolicyError { + meta: generic, + kind: crate::error::GetLifecyclePolicyErrorKind::LifecyclePolicyNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::lifecycle_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_lifecycle_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::GetLifecyclePolicyError { + meta: generic, + kind: crate::error::GetLifecyclePolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::GetLifecyclePolicyError { + meta: generic, + kind: crate::error::GetLifecyclePolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetLifecyclePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_lifecycle_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetLifecyclePolicyOutput, + crate::error::GetLifecyclePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_lifecycle_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_lifecycle_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLifecyclePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_lifecycle_policy_preview_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetLifecyclePolicyPreviewOutput, + crate::error::GetLifecyclePolicyPreviewError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetLifecyclePolicyPreviewError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetLifecyclePolicyPreviewError { meta: generic, kind: crate::error::GetLifecyclePolicyPreviewErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "LifecyclePolicyPreviewNotFoundException" => crate::error::GetLifecyclePolicyPreviewError { meta: generic, kind: crate::error::GetLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::lifecycle_policy_preview_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_lifecycle_policy_preview_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "RepositoryNotFoundException" => crate::error::GetLifecyclePolicyPreviewError { meta: generic, kind: crate::error::GetLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "ServerException" => crate::error::GetLifecyclePolicyPreviewError { meta: generic, kind: crate::error::GetLifecyclePolicyPreviewErrorKind::ServerException({ + #[allow(unused_mut)]let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + _ => crate::error::GetLifecyclePolicyPreviewError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_lifecycle_policy_preview_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetLifecyclePolicyPreviewOutput, + crate::error::GetLifecyclePolicyPreviewError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_lifecycle_policy_preview_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_lifecycle_policy_preview( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLifecyclePolicyPreviewError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_registry_policy_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetRegistryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetRegistryPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetRegistryPolicyError { + meta: generic, + kind: crate::error::GetRegistryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRegistryPolicyError::unhandled)?; + output.build() + }), + }, + "RegistryPolicyNotFoundException" => { + crate::error::GetRegistryPolicyError { + meta: generic, + kind: crate::error::GetRegistryPolicyErrorKind::RegistryPolicyNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::registry_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_registry_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetRegistryPolicyError::unhandled)?; + output.build() + }), + } + } + "ServerException" => crate::error::GetRegistryPolicyError { + meta: generic, + kind: crate::error::GetRegistryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRegistryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetRegistryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_registry_policy_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_registry_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_registry_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRegistryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_repository_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetRepositoryPolicyOutput, + crate::error::GetRepositoryPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetRepositoryPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::GetRepositoryPolicyError { + meta: generic, + kind: crate::error::GetRepositoryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::GetRepositoryPolicyError { + meta: generic, + kind: crate::error::GetRepositoryPolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryPolicyNotFoundException" => crate::error::GetRepositoryPolicyError { + meta: generic, + kind: crate::error::GetRepositoryPolicyErrorKind::RepositoryPolicyNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::repository_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::GetRepositoryPolicyError { + meta: generic, + kind: crate::error::GetRepositoryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetRepositoryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_repository_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetRepositoryPolicyOutput, + crate::error::GetRepositoryPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_repository_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_repository_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRepositoryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_initiate_layer_upload_error( + response: &http::Response, +) -> std::result::Result< + crate::output::InitiateLayerUploadOutput, + crate::error::InitiateLayerUploadError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::InitiateLayerUploadError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::InitiateLayerUploadError { + meta: generic, + kind: crate::error::InitiateLayerUploadErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::InitiateLayerUploadError { + meta: generic, + kind: crate::error::InitiateLayerUploadErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::InitiateLayerUploadError { + meta: generic, + kind: crate::error::InitiateLayerUploadErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::InitiateLayerUploadError { + meta: generic, + kind: crate::error::InitiateLayerUploadErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + output.build() + }), + }, + _ => crate::error::InitiateLayerUploadError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_initiate_layer_upload_response( + response: &http::Response, +) -> std::result::Result< + crate::output::InitiateLayerUploadOutput, + crate::error::InitiateLayerUploadError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::initiate_layer_upload_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_initiate_layer_upload( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InitiateLayerUploadError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_images_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListImagesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListImagesError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::ListImagesError { + meta: generic, + kind: crate::error::ListImagesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImagesError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::ListImagesError { + meta: generic, + kind: crate::error::ListImagesErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImagesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListImagesError { + meta: generic, + kind: crate::error::ListImagesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImagesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListImagesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_images_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_images_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_images(response.body().as_ref(), output) + .map_err(crate::error::ListImagesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_resource_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_for_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutImageError::unhandled(generic)), + }; + Err(match error_code { + "ImageAlreadyExistsException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::ImageAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::image_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "ImageDigestDoesNotMatchException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::ImageDigestDoesNotMatchException({ + #[allow(unused_mut)] + let mut output = + crate::error::image_digest_does_not_match_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_digest_does_not_match_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "ImageTagAlreadyExistsException" => { + crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::ImageTagAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::image_tag_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_tag_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + } + } + "InvalidParameterException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "LayersNotFoundException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::LayersNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::layers_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_layers_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "ReferencedImagesNotFoundException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::ReferencedImagesNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::referenced_images_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_referenced_images_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutImageError { + meta: generic, + kind: crate::error::PutImageErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_image_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_image(response.body().as_ref(), output) + .map_err(crate::error::PutImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_scanning_configuration_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutImageScanningConfigurationOutput, + crate::error::PutImageScanningConfigurationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutImageScanningConfigurationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::PutImageScanningConfigurationError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => { + crate::error::PutImageScanningConfigurationError { + meta: generic, + kind: + crate::error::PutImageScanningConfigurationErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutImageScanningConfigurationError::unhandled)?; + output.build() + }, + ), + } + } + "RepositoryNotFoundException" => crate::error::PutImageScanningConfigurationError { + meta: generic, + kind: crate::error::PutImageScanningConfigurationErrorKind::RepositoryNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageScanningConfigurationError::unhandled)?; + output.build() + }, + ), + }, + "ServerException" => crate::error::PutImageScanningConfigurationError { + meta: generic, + kind: crate::error::PutImageScanningConfigurationErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageScanningConfigurationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutImageScanningConfigurationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_scanning_configuration_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutImageScanningConfigurationOutput, + crate::error::PutImageScanningConfigurationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_image_scanning_configuration_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_image_scanning_configuration( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageScanningConfigurationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_tag_mutability_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutImageTagMutabilityOutput, + crate::error::PutImageTagMutabilityError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutImageTagMutabilityError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutImageTagMutabilityError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutImageTagMutabilityError { + meta: generic, + kind: crate::error::PutImageTagMutabilityErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageTagMutabilityError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::PutImageTagMutabilityError { + meta: generic, + kind: crate::error::PutImageTagMutabilityErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageTagMutabilityError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutImageTagMutabilityError { + meta: generic, + kind: crate::error::PutImageTagMutabilityErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageTagMutabilityError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutImageTagMutabilityError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_image_tag_mutability_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutImageTagMutabilityOutput, + crate::error::PutImageTagMutabilityError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_image_tag_mutability_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_image_tag_mutability( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutImageTagMutabilityError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_lifecycle_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutLifecyclePolicyOutput, + crate::error::PutLifecyclePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutLifecyclePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutLifecyclePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutLifecyclePolicyError { + meta: generic, + kind: crate::error::PutLifecyclePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::PutLifecyclePolicyError { + meta: generic, + kind: crate::error::PutLifecyclePolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutLifecyclePolicyError { + meta: generic, + kind: crate::error::PutLifecyclePolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLifecyclePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutLifecyclePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_lifecycle_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutLifecyclePolicyOutput, + crate::error::PutLifecyclePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_lifecycle_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_lifecycle_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLifecyclePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_registry_policy_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutRegistryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutRegistryPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutRegistryPolicyError { + meta: generic, + kind: crate::error::PutRegistryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRegistryPolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutRegistryPolicyError { + meta: generic, + kind: crate::error::PutRegistryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRegistryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutRegistryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_registry_policy_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_registry_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_registry_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRegistryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_replication_configuration_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutReplicationConfigurationOutput, + crate::error::PutReplicationConfigurationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutReplicationConfigurationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::PutReplicationConfigurationError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::PutReplicationConfigurationError { + meta: generic, + kind: crate::error::PutReplicationConfigurationErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutReplicationConfigurationError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutReplicationConfigurationError { + meta: generic, + kind: crate::error::PutReplicationConfigurationErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutReplicationConfigurationError::unhandled)?; + output.build() + }), + }, + "ValidationException" => crate::error::PutReplicationConfigurationError { + meta: generic, + kind: crate::error::PutReplicationConfigurationErrorKind::ValidationException({ + #[allow(unused_mut)] + let mut output = crate::error::validation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutReplicationConfigurationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutReplicationConfigurationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_replication_configuration_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutReplicationConfigurationOutput, + crate::error::PutReplicationConfigurationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_replication_configuration_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_replication_configuration( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutReplicationConfigurationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_set_repository_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SetRepositoryPolicyOutput, + crate::error::SetRepositoryPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SetRepositoryPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SetRepositoryPolicyError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::SetRepositoryPolicyError { + meta: generic, + kind: crate::error::SetRepositoryPolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::SetRepositoryPolicyError { + meta: generic, + kind: crate::error::SetRepositoryPolicyErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::SetRepositoryPolicyError { + meta: generic, + kind: crate::error::SetRepositoryPolicyErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetRepositoryPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SetRepositoryPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_set_repository_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SetRepositoryPolicyOutput, + crate::error::SetRepositoryPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::set_repository_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_set_repository_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetRepositoryPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_image_scan_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartImageScanError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartImageScanError::unhandled(generic)), + }; + Err(match error_code { + "ImageNotFoundException" => crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::ImageNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::image_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_image_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + }, + "UnsupportedImageTypeException" => { + crate::error::StartImageScanError { + meta: generic, + kind: crate::error::StartImageScanErrorKind::UnsupportedImageTypeException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_image_type_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_image_type_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::StartImageScanError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_image_scan_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_image_scan_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_start_image_scan(response.body().as_ref(), output) + .map_err(crate::error::StartImageScanError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_lifecycle_policy_preview_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartLifecyclePolicyPreviewOutput, + crate::error::StartLifecyclePolicyPreviewError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StartLifecyclePolicyPreviewError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidParameterException" => crate::error::StartLifecyclePolicyPreviewError { meta: generic, kind: crate::error::StartLifecyclePolicyPreviewErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "LifecyclePolicyNotFoundException" => crate::error::StartLifecyclePolicyPreviewError { meta: generic, kind: crate::error::StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::lifecycle_policy_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_lifecycle_policy_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "LifecyclePolicyPreviewInProgressException" => crate::error::StartLifecyclePolicyPreviewError { meta: generic, kind: crate::error::StartLifecyclePolicyPreviewErrorKind::LifecyclePolicyPreviewInProgressException({ + #[allow(unused_mut)]let mut output = crate::error::lifecycle_policy_preview_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_lifecycle_policy_preview_in_progress_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "RepositoryNotFoundException" => crate::error::StartLifecyclePolicyPreviewError { meta: generic, kind: crate::error::StartLifecyclePolicyPreviewErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + "ServerException" => crate::error::StartLifecyclePolicyPreviewError { meta: generic, kind: crate::error::StartLifecyclePolicyPreviewErrorKind::ServerException({ + #[allow(unused_mut)]let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + })}, + _ => crate::error::StartLifecyclePolicyPreviewError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_lifecycle_policy_preview_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartLifecyclePolicyPreviewOutput, + crate::error::StartLifecyclePolicyPreviewError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_lifecycle_policy_preview_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_lifecycle_policy_preview( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartLifecyclePolicyPreviewError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidTagParameterException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidTagParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_tag_parameter_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_tag_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "TooManyTagsException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::TooManyTagsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_tags_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_tags_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidTagParameterException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidTagParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_tag_parameter_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_tag_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "TooManyTagsException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::TooManyTagsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_tags_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_tags_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_upload_layer_part_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UploadLayerPartError::unhandled(generic)), + }; + Err(match error_code { + "InvalidLayerPartException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::InvalidLayerPartException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_layer_part_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_layer_part_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "KmsException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::KmsException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "RepositoryNotFoundException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::RepositoryNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::repository_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_repository_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + "UploadNotFoundException" => crate::error::UploadLayerPartError { + meta: generic, + kind: crate::error::UploadLayerPartErrorKind::UploadNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::upload_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_upload_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UploadLayerPartError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_upload_layer_part_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::upload_layer_part_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_upload_layer_part(response.body().as_ref(), output) + .map_err(crate::error::UploadLayerPartError::unhandled)?; + output.build() + }) +} diff --git a/sdk/ecr/src/operation_ser.rs b/sdk/ecr/src/operation_ser.rs new file mode 100644 index 000000000000..3a46264975f8 --- /dev/null +++ b/sdk/ecr/src/operation_ser.rs @@ -0,0 +1,328 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn serialize_operation_batch_check_layer_availability( + input: &crate::input::BatchCheckLayerAvailabilityInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_batch_check_layer_availability_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_batch_delete_image( + input: &crate::input::BatchDeleteImageInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_batch_delete_image_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_batch_get_image( + input: &crate::input::BatchGetImageInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_batch_get_image_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_complete_layer_upload( + input: &crate::input::CompleteLayerUploadInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_complete_layer_upload_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_create_repository( + input: &crate::input::CreateRepositoryInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_create_repository_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_lifecycle_policy( + input: &crate::input::DeleteLifecyclePolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_delete_lifecycle_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_registry_policy( + _input: &crate::input::DeleteRegistryPolicyInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + +pub fn serialize_operation_delete_repository( + input: &crate::input::DeleteRepositoryInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_delete_repository_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_delete_repository_policy( + input: &crate::input::DeleteRepositoryPolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_delete_repository_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_images( + input: &crate::input::DescribeImagesInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_describe_images_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_image_scan_findings( + input: &crate::input::DescribeImageScanFindingsInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_describe_image_scan_findings_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_registry( + _input: &crate::input::DescribeRegistryInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + +pub fn serialize_operation_describe_repositories( + input: &crate::input::DescribeRepositoriesInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_describe_repositories_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_authorization_token( + input: &crate::input::GetAuthorizationTokenInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_get_authorization_token_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_download_url_for_layer( + input: &crate::input::GetDownloadUrlForLayerInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_get_download_url_for_layer_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_lifecycle_policy( + input: &crate::input::GetLifecyclePolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_get_lifecycle_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_lifecycle_policy_preview( + input: &crate::input::GetLifecyclePolicyPreviewInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_get_lifecycle_policy_preview_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_get_registry_policy( + _input: &crate::input::GetRegistryPolicyInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + +pub fn serialize_operation_get_repository_policy( + input: &crate::input::GetRepositoryPolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_get_repository_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_initiate_layer_upload( + input: &crate::input::InitiateLayerUploadInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_initiate_layer_upload_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_images( + input: &crate::input::ListImagesInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_list_images_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_list_tags_for_resource( + input: &crate::input::ListTagsForResourceInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_list_tags_for_resource_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_image( + input: &crate::input::PutImageInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_image_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_image_scanning_configuration( + input: &crate::input::PutImageScanningConfigurationInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_image_scanning_configuration_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_image_tag_mutability( + input: &crate::input::PutImageTagMutabilityInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_image_tag_mutability_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_lifecycle_policy( + input: &crate::input::PutLifecyclePolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_lifecycle_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_registry_policy( + input: &crate::input::PutRegistryPolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_registry_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_put_replication_configuration( + input: &crate::input::PutReplicationConfigurationInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_put_replication_configuration_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_set_repository_policy( + input: &crate::input::SetRepositoryPolicyInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_set_repository_policy_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_start_image_scan( + input: &crate::input::StartImageScanInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_start_image_scan_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_start_lifecycle_policy_preview( + input: &crate::input::StartLifecyclePolicyPreviewInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_start_lifecycle_policy_preview_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_tag_resource( + input: &crate::input::TagResourceInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_untag_resource( + input: &crate::input::UntagResourceInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_untag_resource_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_upload_layer_part( + input: &crate::input::UploadLayerPartInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_upload_layer_part_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} diff --git a/sdk/ecr/src/output.rs b/sdk/ecr/src/output.rs new file mode 100644 index 000000000000..2ba01bce18ff --- /dev/null +++ b/sdk/ecr/src/output.rs @@ -0,0 +1,2490 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UploadLayerPartOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The upload ID associated with the request.

            + pub upload_id: std::option::Option, + ///

            The integer value of the last byte received in the request.

            + pub last_byte_received: std::option::Option, +} +impl std::fmt::Debug for UploadLayerPartOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UploadLayerPartOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("upload_id", &self.upload_id); + formatter.field("last_byte_received", &self.last_byte_received); + formatter.finish() + } +} +/// See [`UploadLayerPartOutput`](crate::output::UploadLayerPartOutput) +pub mod upload_layer_part_output { + /// A builder for [`UploadLayerPartOutput`](crate::output::UploadLayerPartOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) upload_id: std::option::Option, + pub(crate) last_byte_received: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The upload ID associated with the request.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + ///

            The integer value of the last byte received in the request.

            + pub fn last_byte_received(mut self, input: i64) -> Self { + self.last_byte_received = Some(input); + self + } + pub fn set_last_byte_received(mut self, input: std::option::Option) -> Self { + self.last_byte_received = input; + self + } + /// Consumes the builder and constructs a [`UploadLayerPartOutput`](crate::output::UploadLayerPartOutput) + pub fn build(self) -> crate::output::UploadLayerPartOutput { + crate::output::UploadLayerPartOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + upload_id: self.upload_id, + last_byte_received: self.last_byte_received, + } + } + } +} +impl UploadLayerPartOutput { + /// Creates a new builder-style object to manufacture [`UploadLayerPartOutput`](crate::output::UploadLayerPartOutput) + pub fn builder() -> crate::output::upload_layer_part_output::Builder { + crate::output::upload_layer_part_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceOutput {} +impl std::fmt::Debug for UntagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceOutput"); + formatter.finish() + } +} +/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput) +pub mod untag_resource_output { + /// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn build(self) -> crate::output::UntagResourceOutput { + crate::output::UntagResourceOutput {} + } + } +} +impl UntagResourceOutput { + /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn builder() -> crate::output::untag_resource_output::Builder { + crate::output::untag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceOutput {} +impl std::fmt::Debug for TagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceOutput"); + formatter.finish() + } +} +/// See [`TagResourceOutput`](crate::output::TagResourceOutput) +pub mod tag_resource_output { + /// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn build(self) -> crate::output::TagResourceOutput { + crate::output::TagResourceOutput {} + } + } +} +impl TagResourceOutput { + /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn builder() -> crate::output::tag_resource_output::Builder { + crate::output::tag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartLifecyclePolicyPreviewOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text.

            + pub lifecycle_policy_text: std::option::Option, + ///

            The status of the lifecycle policy preview request.

            + pub status: std::option::Option, +} +impl std::fmt::Debug for StartLifecyclePolicyPreviewOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartLifecyclePolicyPreviewOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.field("status", &self.status); + formatter.finish() + } +} +/// See [`StartLifecyclePolicyPreviewOutput`](crate::output::StartLifecyclePolicyPreviewOutput) +pub mod start_lifecycle_policy_preview_output { + /// A builder for [`StartLifecyclePolicyPreviewOutput`](crate::output::StartLifecyclePolicyPreviewOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + pub(crate) status: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + ///

            The status of the lifecycle policy preview request.

            + pub fn status(mut self, input: crate::model::LifecyclePolicyPreviewStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + /// Consumes the builder and constructs a [`StartLifecyclePolicyPreviewOutput`](crate::output::StartLifecyclePolicyPreviewOutput) + pub fn build(self) -> crate::output::StartLifecyclePolicyPreviewOutput { + crate::output::StartLifecyclePolicyPreviewOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + status: self.status, + } + } + } +} +impl StartLifecyclePolicyPreviewOutput { + /// Creates a new builder-style object to manufacture [`StartLifecyclePolicyPreviewOutput`](crate::output::StartLifecyclePolicyPreviewOutput) + pub fn builder() -> crate::output::start_lifecycle_policy_preview_output::Builder { + crate::output::start_lifecycle_policy_preview_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StartImageScanOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            An object with identifying information for an Amazon ECR image.

            + pub image_id: std::option::Option, + ///

            The current state of the scan.

            + pub image_scan_status: std::option::Option, +} +impl std::fmt::Debug for StartImageScanOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("StartImageScanOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_id", &self.image_id); + formatter.field("image_scan_status", &self.image_scan_status); + formatter.finish() + } +} +/// See [`StartImageScanOutput`](crate::output::StartImageScanOutput) +pub mod start_image_scan_output { + /// A builder for [`StartImageScanOutput`](crate::output::StartImageScanOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_id: std::option::Option, + pub(crate) image_scan_status: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + ///

            The current state of the scan.

            + pub fn image_scan_status(mut self, input: crate::model::ImageScanStatus) -> Self { + self.image_scan_status = Some(input); + self + } + pub fn set_image_scan_status( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_status = input; + self + } + /// Consumes the builder and constructs a [`StartImageScanOutput`](crate::output::StartImageScanOutput) + pub fn build(self) -> crate::output::StartImageScanOutput { + crate::output::StartImageScanOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_id: self.image_id, + image_scan_status: self.image_scan_status, + } + } + } +} +impl StartImageScanOutput { + /// Creates a new builder-style object to manufacture [`StartImageScanOutput`](crate::output::StartImageScanOutput) + pub fn builder() -> crate::output::start_image_scan_output::Builder { + crate::output::start_image_scan_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SetRepositoryPolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text applied to the repository.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for SetRepositoryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("SetRepositoryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`SetRepositoryPolicyOutput`](crate::output::SetRepositoryPolicyOutput) +pub mod set_repository_policy_output { + /// A builder for [`SetRepositoryPolicyOutput`](crate::output::SetRepositoryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text applied to the repository.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`SetRepositoryPolicyOutput`](crate::output::SetRepositoryPolicyOutput) + pub fn build(self) -> crate::output::SetRepositoryPolicyOutput { + crate::output::SetRepositoryPolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + policy_text: self.policy_text, + } + } + } +} +impl SetRepositoryPolicyOutput { + /// Creates a new builder-style object to manufacture [`SetRepositoryPolicyOutput`](crate::output::SetRepositoryPolicyOutput) + pub fn builder() -> crate::output::set_repository_policy_output::Builder { + crate::output::set_repository_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutReplicationConfigurationOutput { + ///

            The contents of the replication configuration for the registry.

            + pub replication_configuration: std::option::Option, +} +impl std::fmt::Debug for PutReplicationConfigurationOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutReplicationConfigurationOutput"); + formatter.field("replication_configuration", &self.replication_configuration); + formatter.finish() + } +} +/// See [`PutReplicationConfigurationOutput`](crate::output::PutReplicationConfigurationOutput) +pub mod put_replication_configuration_output { + /// A builder for [`PutReplicationConfigurationOutput`](crate::output::PutReplicationConfigurationOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) replication_configuration: + std::option::Option, + } + impl Builder { + ///

            The contents of the replication configuration for the registry.

            + pub fn replication_configuration( + mut self, + input: crate::model::ReplicationConfiguration, + ) -> Self { + self.replication_configuration = Some(input); + self + } + pub fn set_replication_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.replication_configuration = input; + self + } + /// Consumes the builder and constructs a [`PutReplicationConfigurationOutput`](crate::output::PutReplicationConfigurationOutput) + pub fn build(self) -> crate::output::PutReplicationConfigurationOutput { + crate::output::PutReplicationConfigurationOutput { + replication_configuration: self.replication_configuration, + } + } + } +} +impl PutReplicationConfigurationOutput { + /// Creates a new builder-style object to manufacture [`PutReplicationConfigurationOutput`](crate::output::PutReplicationConfigurationOutput) + pub fn builder() -> crate::output::put_replication_configuration_output::Builder { + crate::output::put_replication_configuration_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutRegistryPolicyOutput { + ///

            The registry ID.

            + pub registry_id: std::option::Option, + ///

            The JSON policy text for your registry.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for PutRegistryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutRegistryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`PutRegistryPolicyOutput`](crate::output::PutRegistryPolicyOutput) +pub mod put_registry_policy_output { + /// A builder for [`PutRegistryPolicyOutput`](crate::output::PutRegistryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The JSON policy text for your registry.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`PutRegistryPolicyOutput`](crate::output::PutRegistryPolicyOutput) + pub fn build(self) -> crate::output::PutRegistryPolicyOutput { + crate::output::PutRegistryPolicyOutput { + registry_id: self.registry_id, + policy_text: self.policy_text, + } + } + } +} +impl PutRegistryPolicyOutput { + /// Creates a new builder-style object to manufacture [`PutRegistryPolicyOutput`](crate::output::PutRegistryPolicyOutput) + pub fn builder() -> crate::output::put_registry_policy_output::Builder { + crate::output::put_registry_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutLifecyclePolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text.

            + pub lifecycle_policy_text: std::option::Option, +} +impl std::fmt::Debug for PutLifecyclePolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutLifecyclePolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.finish() + } +} +/// See [`PutLifecyclePolicyOutput`](crate::output::PutLifecyclePolicyOutput) +pub mod put_lifecycle_policy_output { + /// A builder for [`PutLifecyclePolicyOutput`](crate::output::PutLifecyclePolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + /// Consumes the builder and constructs a [`PutLifecyclePolicyOutput`](crate::output::PutLifecyclePolicyOutput) + pub fn build(self) -> crate::output::PutLifecyclePolicyOutput { + crate::output::PutLifecyclePolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + } + } + } +} +impl PutLifecyclePolicyOutput { + /// Creates a new builder-style object to manufacture [`PutLifecyclePolicyOutput`](crate::output::PutLifecyclePolicyOutput) + pub fn builder() -> crate::output::put_lifecycle_policy_output::Builder { + crate::output::put_lifecycle_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageTagMutabilityOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The image tag mutability setting for the repository.

            + pub image_tag_mutability: std::option::Option, +} +impl std::fmt::Debug for PutImageTagMutabilityOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageTagMutabilityOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_tag_mutability", &self.image_tag_mutability); + formatter.finish() + } +} +/// See [`PutImageTagMutabilityOutput`](crate::output::PutImageTagMutabilityOutput) +pub mod put_image_tag_mutability_output { + /// A builder for [`PutImageTagMutabilityOutput`](crate::output::PutImageTagMutabilityOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_tag_mutability: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The image tag mutability setting for the repository.

            + pub fn image_tag_mutability(mut self, input: crate::model::ImageTagMutability) -> Self { + self.image_tag_mutability = Some(input); + self + } + pub fn set_image_tag_mutability( + mut self, + input: std::option::Option, + ) -> Self { + self.image_tag_mutability = input; + self + } + /// Consumes the builder and constructs a [`PutImageTagMutabilityOutput`](crate::output::PutImageTagMutabilityOutput) + pub fn build(self) -> crate::output::PutImageTagMutabilityOutput { + crate::output::PutImageTagMutabilityOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_tag_mutability: self.image_tag_mutability, + } + } + } +} +impl PutImageTagMutabilityOutput { + /// Creates a new builder-style object to manufacture [`PutImageTagMutabilityOutput`](crate::output::PutImageTagMutabilityOutput) + pub fn builder() -> crate::output::put_image_tag_mutability_output::Builder { + crate::output::put_image_tag_mutability_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageScanningConfigurationOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The image scanning configuration setting for the repository.

            + pub image_scanning_configuration: std::option::Option, +} +impl std::fmt::Debug for PutImageScanningConfigurationOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageScanningConfigurationOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field( + "image_scanning_configuration", + &self.image_scanning_configuration, + ); + formatter.finish() + } +} +/// See [`PutImageScanningConfigurationOutput`](crate::output::PutImageScanningConfigurationOutput) +pub mod put_image_scanning_configuration_output { + /// A builder for [`PutImageScanningConfigurationOutput`](crate::output::PutImageScanningConfigurationOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_scanning_configuration: + std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The image scanning configuration setting for the repository.

            + pub fn image_scanning_configuration( + mut self, + input: crate::model::ImageScanningConfiguration, + ) -> Self { + self.image_scanning_configuration = Some(input); + self + } + pub fn set_image_scanning_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scanning_configuration = input; + self + } + /// Consumes the builder and constructs a [`PutImageScanningConfigurationOutput`](crate::output::PutImageScanningConfigurationOutput) + pub fn build(self) -> crate::output::PutImageScanningConfigurationOutput { + crate::output::PutImageScanningConfigurationOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_scanning_configuration: self.image_scanning_configuration, + } + } + } +} +impl PutImageScanningConfigurationOutput { + /// Creates a new builder-style object to manufacture [`PutImageScanningConfigurationOutput`](crate::output::PutImageScanningConfigurationOutput) + pub fn builder() -> crate::output::put_image_scanning_configuration_output::Builder { + crate::output::put_image_scanning_configuration_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PutImageOutput { + ///

            Details of the image uploaded.

            + pub image: std::option::Option, +} +impl std::fmt::Debug for PutImageOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("PutImageOutput"); + formatter.field("image", &self.image); + formatter.finish() + } +} +/// See [`PutImageOutput`](crate::output::PutImageOutput) +pub mod put_image_output { + /// A builder for [`PutImageOutput`](crate::output::PutImageOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image: std::option::Option, + } + impl Builder { + ///

            Details of the image uploaded.

            + pub fn image(mut self, input: crate::model::Image) -> Self { + self.image = Some(input); + self + } + pub fn set_image(mut self, input: std::option::Option) -> Self { + self.image = input; + self + } + /// Consumes the builder and constructs a [`PutImageOutput`](crate::output::PutImageOutput) + pub fn build(self) -> crate::output::PutImageOutput { + crate::output::PutImageOutput { image: self.image } + } + } +} +impl PutImageOutput { + /// Creates a new builder-style object to manufacture [`PutImageOutput`](crate::output::PutImageOutput) + pub fn builder() -> crate::output::put_image_output::Builder { + crate::output::put_image_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceOutput { + ///

            The tags for the resource.

            + pub tags: std::option::Option>, +} +impl std::fmt::Debug for ListTagsForResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceOutput"); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) +pub mod list_tags_for_resource_output { + /// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tags: std::option::Option>, + } + impl Builder { + pub fn tags(mut self, input: impl Into) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input.into()); + self.tags = Some(v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option>, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn build(self) -> crate::output::ListTagsForResourceOutput { + crate::output::ListTagsForResourceOutput { tags: self.tags } + } + } +} +impl ListTagsForResourceOutput { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn builder() -> crate::output::list_tags_for_resource_output::Builder { + crate::output::list_tags_for_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListImagesOutput { + ///

            The list of image IDs for the requested repository.

            + pub image_ids: std::option::Option>, + ///

            The nextToken value to include in a future ListImages + /// request. When the results of a ListImages request exceed + /// maxResults, this value can be used to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

            + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListImagesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListImagesOutput"); + formatter.field("image_ids", &self.image_ids); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListImagesOutput`](crate::output::ListImagesOutput) +pub mod list_images_output { + /// A builder for [`ListImagesOutput`](crate::output::ListImagesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_ids: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + ///

            The nextToken value to include in a future ListImages + /// request. When the results of a ListImages request exceed + /// maxResults, this value can be used to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListImagesOutput`](crate::output::ListImagesOutput) + pub fn build(self) -> crate::output::ListImagesOutput { + crate::output::ListImagesOutput { + image_ids: self.image_ids, + next_token: self.next_token, + } + } + } +} +impl ListImagesOutput { + /// Creates a new builder-style object to manufacture [`ListImagesOutput`](crate::output::ListImagesOutput) + pub fn builder() -> crate::output::list_images_output::Builder { + crate::output::list_images_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InitiateLayerUploadOutput { + ///

            The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload + /// operations.

            + pub upload_id: std::option::Option, + ///

            The size, in bytes, that Amazon ECR expects future layer part uploads to be.

            + pub part_size: std::option::Option, +} +impl std::fmt::Debug for InitiateLayerUploadOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InitiateLayerUploadOutput"); + formatter.field("upload_id", &self.upload_id); + formatter.field("part_size", &self.part_size); + formatter.finish() + } +} +/// See [`InitiateLayerUploadOutput`](crate::output::InitiateLayerUploadOutput) +pub mod initiate_layer_upload_output { + /// A builder for [`InitiateLayerUploadOutput`](crate::output::InitiateLayerUploadOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) upload_id: std::option::Option, + pub(crate) part_size: std::option::Option, + } + impl Builder { + ///

            The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload + /// operations.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + ///

            The size, in bytes, that Amazon ECR expects future layer part uploads to be.

            + pub fn part_size(mut self, input: i64) -> Self { + self.part_size = Some(input); + self + } + pub fn set_part_size(mut self, input: std::option::Option) -> Self { + self.part_size = input; + self + } + /// Consumes the builder and constructs a [`InitiateLayerUploadOutput`](crate::output::InitiateLayerUploadOutput) + pub fn build(self) -> crate::output::InitiateLayerUploadOutput { + crate::output::InitiateLayerUploadOutput { + upload_id: self.upload_id, + part_size: self.part_size, + } + } + } +} +impl InitiateLayerUploadOutput { + /// Creates a new builder-style object to manufacture [`InitiateLayerUploadOutput`](crate::output::InitiateLayerUploadOutput) + pub fn builder() -> crate::output::initiate_layer_upload_output::Builder { + crate::output::initiate_layer_upload_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetRepositoryPolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy text associated with the repository.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for GetRepositoryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetRepositoryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`GetRepositoryPolicyOutput`](crate::output::GetRepositoryPolicyOutput) +pub mod get_repository_policy_output { + /// A builder for [`GetRepositoryPolicyOutput`](crate::output::GetRepositoryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy text associated with the repository.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`GetRepositoryPolicyOutput`](crate::output::GetRepositoryPolicyOutput) + pub fn build(self) -> crate::output::GetRepositoryPolicyOutput { + crate::output::GetRepositoryPolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + policy_text: self.policy_text, + } + } + } +} +impl GetRepositoryPolicyOutput { + /// Creates a new builder-style object to manufacture [`GetRepositoryPolicyOutput`](crate::output::GetRepositoryPolicyOutput) + pub fn builder() -> crate::output::get_repository_policy_output::Builder { + crate::output::get_repository_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetRegistryPolicyOutput { + ///

            The ID of the registry.

            + pub registry_id: std::option::Option, + ///

            The JSON text of the permissions policy for a registry.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for GetRegistryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetRegistryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`GetRegistryPolicyOutput`](crate::output::GetRegistryPolicyOutput) +pub mod get_registry_policy_output { + /// A builder for [`GetRegistryPolicyOutput`](crate::output::GetRegistryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The ID of the registry.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The JSON text of the permissions policy for a registry.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`GetRegistryPolicyOutput`](crate::output::GetRegistryPolicyOutput) + pub fn build(self) -> crate::output::GetRegistryPolicyOutput { + crate::output::GetRegistryPolicyOutput { + registry_id: self.registry_id, + policy_text: self.policy_text, + } + } + } +} +impl GetRegistryPolicyOutput { + /// Creates a new builder-style object to manufacture [`GetRegistryPolicyOutput`](crate::output::GetRegistryPolicyOutput) + pub fn builder() -> crate::output::get_registry_policy_output::Builder { + crate::output::get_registry_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetLifecyclePolicyPreviewOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON lifecycle policy text.

            + pub lifecycle_policy_text: std::option::Option, + ///

            The status of the lifecycle policy preview request.

            + pub status: std::option::Option, + ///

            The nextToken value to include in a future + /// GetLifecyclePolicyPreview request. When the results of a + /// GetLifecyclePolicyPreview request exceed maxResults, this + /// value can be used to retrieve the next page of results. This value is null + /// when there are no more results to return.

            + pub next_token: std::option::Option, + ///

            The results of the lifecycle policy preview request.

            + pub preview_results: + std::option::Option>, + ///

            The list of images that is returned as a result of the action.

            + pub summary: std::option::Option, +} +impl std::fmt::Debug for GetLifecyclePolicyPreviewOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetLifecyclePolicyPreviewOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.field("status", &self.status); + formatter.field("next_token", &self.next_token); + formatter.field("preview_results", &self.preview_results); + formatter.field("summary", &self.summary); + formatter.finish() + } +} +/// See [`GetLifecyclePolicyPreviewOutput`](crate::output::GetLifecyclePolicyPreviewOutput) +pub mod get_lifecycle_policy_preview_output { + /// A builder for [`GetLifecyclePolicyPreviewOutput`](crate::output::GetLifecyclePolicyPreviewOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + pub(crate) status: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) preview_results: + std::option::Option>, + pub(crate) summary: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON lifecycle policy text.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + ///

            The status of the lifecycle policy preview request.

            + pub fn status(mut self, input: crate::model::LifecyclePolicyPreviewStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + ///

            The nextToken value to include in a future + /// GetLifecyclePolicyPreview request. When the results of a + /// GetLifecyclePolicyPreview request exceed maxResults, this + /// value can be used to retrieve the next page of results. This value is null + /// when there are no more results to return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + pub fn preview_results( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.preview_results.unwrap_or_default(); + v.push(input.into()); + self.preview_results = Some(v); + self + } + pub fn set_preview_results( + mut self, + input: std::option::Option>, + ) -> Self { + self.preview_results = input; + self + } + ///

            The list of images that is returned as a result of the action.

            + pub fn summary(mut self, input: crate::model::LifecyclePolicyPreviewSummary) -> Self { + self.summary = Some(input); + self + } + pub fn set_summary( + mut self, + input: std::option::Option, + ) -> Self { + self.summary = input; + self + } + /// Consumes the builder and constructs a [`GetLifecyclePolicyPreviewOutput`](crate::output::GetLifecyclePolicyPreviewOutput) + pub fn build(self) -> crate::output::GetLifecyclePolicyPreviewOutput { + crate::output::GetLifecyclePolicyPreviewOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + status: self.status, + next_token: self.next_token, + preview_results: self.preview_results, + summary: self.summary, + } + } + } +} +impl GetLifecyclePolicyPreviewOutput { + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyPreviewOutput`](crate::output::GetLifecyclePolicyPreviewOutput) + pub fn builder() -> crate::output::get_lifecycle_policy_preview_output::Builder { + crate::output::get_lifecycle_policy_preview_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetLifecyclePolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON lifecycle policy text.

            + pub lifecycle_policy_text: std::option::Option, + ///

            The time stamp of the last time that the lifecycle policy was run.

            + pub last_evaluated_at: std::option::Option, +} +impl std::fmt::Debug for GetLifecyclePolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetLifecyclePolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.field("last_evaluated_at", &self.last_evaluated_at); + formatter.finish() + } +} +/// See [`GetLifecyclePolicyOutput`](crate::output::GetLifecyclePolicyOutput) +pub mod get_lifecycle_policy_output { + /// A builder for [`GetLifecyclePolicyOutput`](crate::output::GetLifecyclePolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + pub(crate) last_evaluated_at: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON lifecycle policy text.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + ///

            The time stamp of the last time that the lifecycle policy was run.

            + pub fn last_evaluated_at(mut self, input: smithy_types::Instant) -> Self { + self.last_evaluated_at = Some(input); + self + } + pub fn set_last_evaluated_at( + mut self, + input: std::option::Option, + ) -> Self { + self.last_evaluated_at = input; + self + } + /// Consumes the builder and constructs a [`GetLifecyclePolicyOutput`](crate::output::GetLifecyclePolicyOutput) + pub fn build(self) -> crate::output::GetLifecyclePolicyOutput { + crate::output::GetLifecyclePolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + last_evaluated_at: self.last_evaluated_at, + } + } + } +} +impl GetLifecyclePolicyOutput { + /// Creates a new builder-style object to manufacture [`GetLifecyclePolicyOutput`](crate::output::GetLifecyclePolicyOutput) + pub fn builder() -> crate::output::get_lifecycle_policy_output::Builder { + crate::output::get_lifecycle_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetDownloadUrlForLayerOutput { + ///

            The pre-signed Amazon S3 download URL for the requested layer.

            + pub download_url: std::option::Option, + ///

            The digest of the image layer to download.

            + pub layer_digest: std::option::Option, +} +impl std::fmt::Debug for GetDownloadUrlForLayerOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetDownloadUrlForLayerOutput"); + formatter.field("download_url", &self.download_url); + formatter.field("layer_digest", &self.layer_digest); + formatter.finish() + } +} +/// See [`GetDownloadUrlForLayerOutput`](crate::output::GetDownloadUrlForLayerOutput) +pub mod get_download_url_for_layer_output { + /// A builder for [`GetDownloadUrlForLayerOutput`](crate::output::GetDownloadUrlForLayerOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) download_url: std::option::Option, + pub(crate) layer_digest: std::option::Option, + } + impl Builder { + ///

            The pre-signed Amazon S3 download URL for the requested layer.

            + pub fn download_url(mut self, input: impl Into) -> Self { + self.download_url = Some(input.into()); + self + } + pub fn set_download_url(mut self, input: std::option::Option) -> Self { + self.download_url = input; + self + } + ///

            The digest of the image layer to download.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.layer_digest = Some(input.into()); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.layer_digest = input; + self + } + /// Consumes the builder and constructs a [`GetDownloadUrlForLayerOutput`](crate::output::GetDownloadUrlForLayerOutput) + pub fn build(self) -> crate::output::GetDownloadUrlForLayerOutput { + crate::output::GetDownloadUrlForLayerOutput { + download_url: self.download_url, + layer_digest: self.layer_digest, + } + } + } +} +impl GetDownloadUrlForLayerOutput { + /// Creates a new builder-style object to manufacture [`GetDownloadUrlForLayerOutput`](crate::output::GetDownloadUrlForLayerOutput) + pub fn builder() -> crate::output::get_download_url_for_layer_output::Builder { + crate::output::get_download_url_for_layer_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GetAuthorizationTokenOutput { + ///

            A list of authorization token data objects that correspond to the + /// registryIds values in the request.

            + pub authorization_data: std::option::Option>, +} +impl std::fmt::Debug for GetAuthorizationTokenOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("GetAuthorizationTokenOutput"); + formatter.field("authorization_data", &self.authorization_data); + formatter.finish() + } +} +/// See [`GetAuthorizationTokenOutput`](crate::output::GetAuthorizationTokenOutput) +pub mod get_authorization_token_output { + /// A builder for [`GetAuthorizationTokenOutput`](crate::output::GetAuthorizationTokenOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) authorization_data: + std::option::Option>, + } + impl Builder { + pub fn authorization_data( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.authorization_data.unwrap_or_default(); + v.push(input.into()); + self.authorization_data = Some(v); + self + } + pub fn set_authorization_data( + mut self, + input: std::option::Option>, + ) -> Self { + self.authorization_data = input; + self + } + /// Consumes the builder and constructs a [`GetAuthorizationTokenOutput`](crate::output::GetAuthorizationTokenOutput) + pub fn build(self) -> crate::output::GetAuthorizationTokenOutput { + crate::output::GetAuthorizationTokenOutput { + authorization_data: self.authorization_data, + } + } + } +} +impl GetAuthorizationTokenOutput { + /// Creates a new builder-style object to manufacture [`GetAuthorizationTokenOutput`](crate::output::GetAuthorizationTokenOutput) + pub fn builder() -> crate::output::get_authorization_token_output::Builder { + crate::output::get_authorization_token_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeRepositoriesOutput { + ///

            A list of repository objects corresponding to valid repositories.

            + pub repositories: std::option::Option>, + ///

            The nextToken value to include in a future + /// DescribeRepositories request. When the results of a + /// DescribeRepositories request exceed maxResults, this value + /// can be used to retrieve the next page of results. This value is null when + /// there are no more results to return.

            + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeRepositoriesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeRepositoriesOutput"); + formatter.field("repositories", &self.repositories); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeRepositoriesOutput`](crate::output::DescribeRepositoriesOutput) +pub mod describe_repositories_output { + /// A builder for [`DescribeRepositoriesOutput`](crate::output::DescribeRepositoriesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) repositories: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn repositories(mut self, input: impl Into) -> Self { + let mut v = self.repositories.unwrap_or_default(); + v.push(input.into()); + self.repositories = Some(v); + self + } + pub fn set_repositories( + mut self, + input: std::option::Option>, + ) -> Self { + self.repositories = input; + self + } + ///

            The nextToken value to include in a future + /// DescribeRepositories request. When the results of a + /// DescribeRepositories request exceed maxResults, this value + /// can be used to retrieve the next page of results. This value is null when + /// there are no more results to return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeRepositoriesOutput`](crate::output::DescribeRepositoriesOutput) + pub fn build(self) -> crate::output::DescribeRepositoriesOutput { + crate::output::DescribeRepositoriesOutput { + repositories: self.repositories, + next_token: self.next_token, + } + } + } +} +impl DescribeRepositoriesOutput { + /// Creates a new builder-style object to manufacture [`DescribeRepositoriesOutput`](crate::output::DescribeRepositoriesOutput) + pub fn builder() -> crate::output::describe_repositories_output::Builder { + crate::output::describe_repositories_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeRegistryOutput { + ///

            The ID of the registry.

            + pub registry_id: std::option::Option, + ///

            The replication configuration for the registry.

            + pub replication_configuration: std::option::Option, +} +impl std::fmt::Debug for DescribeRegistryOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeRegistryOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("replication_configuration", &self.replication_configuration); + formatter.finish() + } +} +/// See [`DescribeRegistryOutput`](crate::output::DescribeRegistryOutput) +pub mod describe_registry_output { + /// A builder for [`DescribeRegistryOutput`](crate::output::DescribeRegistryOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) replication_configuration: + std::option::Option, + } + impl Builder { + ///

            The ID of the registry.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The replication configuration for the registry.

            + pub fn replication_configuration( + mut self, + input: crate::model::ReplicationConfiguration, + ) -> Self { + self.replication_configuration = Some(input); + self + } + pub fn set_replication_configuration( + mut self, + input: std::option::Option, + ) -> Self { + self.replication_configuration = input; + self + } + /// Consumes the builder and constructs a [`DescribeRegistryOutput`](crate::output::DescribeRegistryOutput) + pub fn build(self) -> crate::output::DescribeRegistryOutput { + crate::output::DescribeRegistryOutput { + registry_id: self.registry_id, + replication_configuration: self.replication_configuration, + } + } + } +} +impl DescribeRegistryOutput { + /// Creates a new builder-style object to manufacture [`DescribeRegistryOutput`](crate::output::DescribeRegistryOutput) + pub fn builder() -> crate::output::describe_registry_output::Builder { + crate::output::describe_registry_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeImageScanFindingsOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            An object with identifying information for an Amazon ECR image.

            + pub image_id: std::option::Option, + ///

            The current state of the scan.

            + pub image_scan_status: std::option::Option, + ///

            The information contained in the image scan findings.

            + pub image_scan_findings: std::option::Option, + ///

            The nextToken value to include in a future + /// DescribeImageScanFindings request. When the results of a + /// DescribeImageScanFindings request exceed maxResults, this + /// value can be used to retrieve the next page of results. This value is null when there + /// are no more results to return.

            + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeImageScanFindingsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeImageScanFindingsOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("image_id", &self.image_id); + formatter.field("image_scan_status", &self.image_scan_status); + formatter.field("image_scan_findings", &self.image_scan_findings); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeImageScanFindingsOutput`](crate::output::DescribeImageScanFindingsOutput) +pub mod describe_image_scan_findings_output { + /// A builder for [`DescribeImageScanFindingsOutput`](crate::output::DescribeImageScanFindingsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) image_id: std::option::Option, + pub(crate) image_scan_status: std::option::Option, + pub(crate) image_scan_findings: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            An object with identifying information for an Amazon ECR image.

            + pub fn image_id(mut self, input: crate::model::ImageIdentifier) -> Self { + self.image_id = Some(input); + self + } + pub fn set_image_id( + mut self, + input: std::option::Option, + ) -> Self { + self.image_id = input; + self + } + ///

            The current state of the scan.

            + pub fn image_scan_status(mut self, input: crate::model::ImageScanStatus) -> Self { + self.image_scan_status = Some(input); + self + } + pub fn set_image_scan_status( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_status = input; + self + } + ///

            The information contained in the image scan findings.

            + pub fn image_scan_findings(mut self, input: crate::model::ImageScanFindings) -> Self { + self.image_scan_findings = Some(input); + self + } + pub fn set_image_scan_findings( + mut self, + input: std::option::Option, + ) -> Self { + self.image_scan_findings = input; + self + } + ///

            The nextToken value to include in a future + /// DescribeImageScanFindings request. When the results of a + /// DescribeImageScanFindings request exceed maxResults, this + /// value can be used to retrieve the next page of results. This value is null when there + /// are no more results to return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeImageScanFindingsOutput`](crate::output::DescribeImageScanFindingsOutput) + pub fn build(self) -> crate::output::DescribeImageScanFindingsOutput { + crate::output::DescribeImageScanFindingsOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + image_id: self.image_id, + image_scan_status: self.image_scan_status, + image_scan_findings: self.image_scan_findings, + next_token: self.next_token, + } + } + } +} +impl DescribeImageScanFindingsOutput { + /// Creates a new builder-style object to manufacture [`DescribeImageScanFindingsOutput`](crate::output::DescribeImageScanFindingsOutput) + pub fn builder() -> crate::output::describe_image_scan_findings_output::Builder { + crate::output::describe_image_scan_findings_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeImagesOutput { + ///

            A list of ImageDetail objects that contain data about the + /// image.

            + pub image_details: std::option::Option>, + ///

            The nextToken value to include in a future DescribeImages + /// request. When the results of a DescribeImages request exceed + /// maxResults, this value can be used to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

            + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeImagesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeImagesOutput"); + formatter.field("image_details", &self.image_details); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeImagesOutput`](crate::output::DescribeImagesOutput) +pub mod describe_images_output { + /// A builder for [`DescribeImagesOutput`](crate::output::DescribeImagesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_details: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn image_details(mut self, input: impl Into) -> Self { + let mut v = self.image_details.unwrap_or_default(); + v.push(input.into()); + self.image_details = Some(v); + self + } + pub fn set_image_details( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_details = input; + self + } + ///

            The nextToken value to include in a future DescribeImages + /// request. When the results of a DescribeImages request exceed + /// maxResults, this value can be used to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

            + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeImagesOutput`](crate::output::DescribeImagesOutput) + pub fn build(self) -> crate::output::DescribeImagesOutput { + crate::output::DescribeImagesOutput { + image_details: self.image_details, + next_token: self.next_token, + } + } + } +} +impl DescribeImagesOutput { + /// Creates a new builder-style object to manufacture [`DescribeImagesOutput`](crate::output::DescribeImagesOutput) + pub fn builder() -> crate::output::describe_images_output::Builder { + crate::output::describe_images_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRepositoryPolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON repository policy that was deleted from the repository.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for DeleteRepositoryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRepositoryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`DeleteRepositoryPolicyOutput`](crate::output::DeleteRepositoryPolicyOutput) +pub mod delete_repository_policy_output { + /// A builder for [`DeleteRepositoryPolicyOutput`](crate::output::DeleteRepositoryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON repository policy that was deleted from the repository.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`DeleteRepositoryPolicyOutput`](crate::output::DeleteRepositoryPolicyOutput) + pub fn build(self) -> crate::output::DeleteRepositoryPolicyOutput { + crate::output::DeleteRepositoryPolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + policy_text: self.policy_text, + } + } + } +} +impl DeleteRepositoryPolicyOutput { + /// Creates a new builder-style object to manufacture [`DeleteRepositoryPolicyOutput`](crate::output::DeleteRepositoryPolicyOutput) + pub fn builder() -> crate::output::delete_repository_policy_output::Builder { + crate::output::delete_repository_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRepositoryOutput { + ///

            The repository that was deleted.

            + pub repository: std::option::Option, +} +impl std::fmt::Debug for DeleteRepositoryOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRepositoryOutput"); + formatter.field("repository", &self.repository); + formatter.finish() + } +} +/// See [`DeleteRepositoryOutput`](crate::output::DeleteRepositoryOutput) +pub mod delete_repository_output { + /// A builder for [`DeleteRepositoryOutput`](crate::output::DeleteRepositoryOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) repository: std::option::Option, + } + impl Builder { + ///

            The repository that was deleted.

            + pub fn repository(mut self, input: crate::model::Repository) -> Self { + self.repository = Some(input); + self + } + pub fn set_repository( + mut self, + input: std::option::Option, + ) -> Self { + self.repository = input; + self + } + /// Consumes the builder and constructs a [`DeleteRepositoryOutput`](crate::output::DeleteRepositoryOutput) + pub fn build(self) -> crate::output::DeleteRepositoryOutput { + crate::output::DeleteRepositoryOutput { + repository: self.repository, + } + } + } +} +impl DeleteRepositoryOutput { + /// Creates a new builder-style object to manufacture [`DeleteRepositoryOutput`](crate::output::DeleteRepositoryOutput) + pub fn builder() -> crate::output::delete_repository_output::Builder { + crate::output::delete_repository_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteRegistryPolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The contents of the registry permissions policy that was deleted.

            + pub policy_text: std::option::Option, +} +impl std::fmt::Debug for DeleteRegistryPolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteRegistryPolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("policy_text", &self.policy_text); + formatter.finish() + } +} +/// See [`DeleteRegistryPolicyOutput`](crate::output::DeleteRegistryPolicyOutput) +pub mod delete_registry_policy_output { + /// A builder for [`DeleteRegistryPolicyOutput`](crate::output::DeleteRegistryPolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) policy_text: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The contents of the registry permissions policy that was deleted.

            + pub fn policy_text(mut self, input: impl Into) -> Self { + self.policy_text = Some(input.into()); + self + } + pub fn set_policy_text(mut self, input: std::option::Option) -> Self { + self.policy_text = input; + self + } + /// Consumes the builder and constructs a [`DeleteRegistryPolicyOutput`](crate::output::DeleteRegistryPolicyOutput) + pub fn build(self) -> crate::output::DeleteRegistryPolicyOutput { + crate::output::DeleteRegistryPolicyOutput { + registry_id: self.registry_id, + policy_text: self.policy_text, + } + } + } +} +impl DeleteRegistryPolicyOutput { + /// Creates a new builder-style object to manufacture [`DeleteRegistryPolicyOutput`](crate::output::DeleteRegistryPolicyOutput) + pub fn builder() -> crate::output::delete_registry_policy_output::Builder { + crate::output::delete_registry_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteLifecyclePolicyOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The JSON lifecycle policy text.

            + pub lifecycle_policy_text: std::option::Option, + ///

            The time stamp of the last time that the lifecycle policy was run.

            + pub last_evaluated_at: std::option::Option, +} +impl std::fmt::Debug for DeleteLifecyclePolicyOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteLifecyclePolicyOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("lifecycle_policy_text", &self.lifecycle_policy_text); + formatter.field("last_evaluated_at", &self.last_evaluated_at); + formatter.finish() + } +} +/// See [`DeleteLifecyclePolicyOutput`](crate::output::DeleteLifecyclePolicyOutput) +pub mod delete_lifecycle_policy_output { + /// A builder for [`DeleteLifecyclePolicyOutput`](crate::output::DeleteLifecyclePolicyOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) lifecycle_policy_text: std::option::Option, + pub(crate) last_evaluated_at: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The JSON lifecycle policy text.

            + pub fn lifecycle_policy_text(mut self, input: impl Into) -> Self { + self.lifecycle_policy_text = Some(input.into()); + self + } + pub fn set_lifecycle_policy_text( + mut self, + input: std::option::Option, + ) -> Self { + self.lifecycle_policy_text = input; + self + } + ///

            The time stamp of the last time that the lifecycle policy was run.

            + pub fn last_evaluated_at(mut self, input: smithy_types::Instant) -> Self { + self.last_evaluated_at = Some(input); + self + } + pub fn set_last_evaluated_at( + mut self, + input: std::option::Option, + ) -> Self { + self.last_evaluated_at = input; + self + } + /// Consumes the builder and constructs a [`DeleteLifecyclePolicyOutput`](crate::output::DeleteLifecyclePolicyOutput) + pub fn build(self) -> crate::output::DeleteLifecyclePolicyOutput { + crate::output::DeleteLifecyclePolicyOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + lifecycle_policy_text: self.lifecycle_policy_text, + last_evaluated_at: self.last_evaluated_at, + } + } + } +} +impl DeleteLifecyclePolicyOutput { + /// Creates a new builder-style object to manufacture [`DeleteLifecyclePolicyOutput`](crate::output::DeleteLifecyclePolicyOutput) + pub fn builder() -> crate::output::delete_lifecycle_policy_output::Builder { + crate::output::delete_lifecycle_policy_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateRepositoryOutput { + ///

            The repository that was created.

            + pub repository: std::option::Option, +} +impl std::fmt::Debug for CreateRepositoryOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateRepositoryOutput"); + formatter.field("repository", &self.repository); + formatter.finish() + } +} +/// See [`CreateRepositoryOutput`](crate::output::CreateRepositoryOutput) +pub mod create_repository_output { + /// A builder for [`CreateRepositoryOutput`](crate::output::CreateRepositoryOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) repository: std::option::Option, + } + impl Builder { + ///

            The repository that was created.

            + pub fn repository(mut self, input: crate::model::Repository) -> Self { + self.repository = Some(input); + self + } + pub fn set_repository( + mut self, + input: std::option::Option, + ) -> Self { + self.repository = input; + self + } + /// Consumes the builder and constructs a [`CreateRepositoryOutput`](crate::output::CreateRepositoryOutput) + pub fn build(self) -> crate::output::CreateRepositoryOutput { + crate::output::CreateRepositoryOutput { + repository: self.repository, + } + } + } +} +impl CreateRepositoryOutput { + /// Creates a new builder-style object to manufacture [`CreateRepositoryOutput`](crate::output::CreateRepositoryOutput) + pub fn builder() -> crate::output::create_repository_output::Builder { + crate::output::create_repository_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CompleteLayerUploadOutput { + ///

            The registry ID associated with the request.

            + pub registry_id: std::option::Option, + ///

            The repository name associated with the request.

            + pub repository_name: std::option::Option, + ///

            The upload ID associated with the layer.

            + pub upload_id: std::option::Option, + ///

            The sha256 digest of the image layer.

            + pub layer_digest: std::option::Option, +} +impl std::fmt::Debug for CompleteLayerUploadOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CompleteLayerUploadOutput"); + formatter.field("registry_id", &self.registry_id); + formatter.field("repository_name", &self.repository_name); + formatter.field("upload_id", &self.upload_id); + formatter.field("layer_digest", &self.layer_digest); + formatter.finish() + } +} +/// See [`CompleteLayerUploadOutput`](crate::output::CompleteLayerUploadOutput) +pub mod complete_layer_upload_output { + /// A builder for [`CompleteLayerUploadOutput`](crate::output::CompleteLayerUploadOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) registry_id: std::option::Option, + pub(crate) repository_name: std::option::Option, + pub(crate) upload_id: std::option::Option, + pub(crate) layer_digest: std::option::Option, + } + impl Builder { + ///

            The registry ID associated with the request.

            + pub fn registry_id(mut self, input: impl Into) -> Self { + self.registry_id = Some(input.into()); + self + } + pub fn set_registry_id(mut self, input: std::option::Option) -> Self { + self.registry_id = input; + self + } + ///

            The repository name associated with the request.

            + pub fn repository_name(mut self, input: impl Into) -> Self { + self.repository_name = Some(input.into()); + self + } + pub fn set_repository_name( + mut self, + input: std::option::Option, + ) -> Self { + self.repository_name = input; + self + } + ///

            The upload ID associated with the layer.

            + pub fn upload_id(mut self, input: impl Into) -> Self { + self.upload_id = Some(input.into()); + self + } + pub fn set_upload_id(mut self, input: std::option::Option) -> Self { + self.upload_id = input; + self + } + ///

            The sha256 digest of the image layer.

            + pub fn layer_digest(mut self, input: impl Into) -> Self { + self.layer_digest = Some(input.into()); + self + } + pub fn set_layer_digest(mut self, input: std::option::Option) -> Self { + self.layer_digest = input; + self + } + /// Consumes the builder and constructs a [`CompleteLayerUploadOutput`](crate::output::CompleteLayerUploadOutput) + pub fn build(self) -> crate::output::CompleteLayerUploadOutput { + crate::output::CompleteLayerUploadOutput { + registry_id: self.registry_id, + repository_name: self.repository_name, + upload_id: self.upload_id, + layer_digest: self.layer_digest, + } + } + } +} +impl CompleteLayerUploadOutput { + /// Creates a new builder-style object to manufacture [`CompleteLayerUploadOutput`](crate::output::CompleteLayerUploadOutput) + pub fn builder() -> crate::output::complete_layer_upload_output::Builder { + crate::output::complete_layer_upload_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchGetImageOutput { + ///

            A list of image objects corresponding to the image references in the request.

            + pub images: std::option::Option>, + ///

            Any failures associated with the call.

            + pub failures: std::option::Option>, +} +impl std::fmt::Debug for BatchGetImageOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchGetImageOutput"); + formatter.field("images", &self.images); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`BatchGetImageOutput`](crate::output::BatchGetImageOutput) +pub mod batch_get_image_output { + /// A builder for [`BatchGetImageOutput`](crate::output::BatchGetImageOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) images: std::option::Option>, + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn images(mut self, input: impl Into) -> Self { + let mut v = self.images.unwrap_or_default(); + v.push(input.into()); + self.images = Some(v); + self + } + pub fn set_images( + mut self, + input: std::option::Option>, + ) -> Self { + self.images = input; + self + } + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`BatchGetImageOutput`](crate::output::BatchGetImageOutput) + pub fn build(self) -> crate::output::BatchGetImageOutput { + crate::output::BatchGetImageOutput { + images: self.images, + failures: self.failures, + } + } + } +} +impl BatchGetImageOutput { + /// Creates a new builder-style object to manufacture [`BatchGetImageOutput`](crate::output::BatchGetImageOutput) + pub fn builder() -> crate::output::batch_get_image_output::Builder { + crate::output::batch_get_image_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchDeleteImageOutput { + ///

            The image IDs of the deleted images.

            + pub image_ids: std::option::Option>, + ///

            Any failures associated with the call.

            + pub failures: std::option::Option>, +} +impl std::fmt::Debug for BatchDeleteImageOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchDeleteImageOutput"); + formatter.field("image_ids", &self.image_ids); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`BatchDeleteImageOutput`](crate::output::BatchDeleteImageOutput) +pub mod batch_delete_image_output { + /// A builder for [`BatchDeleteImageOutput`](crate::output::BatchDeleteImageOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) image_ids: std::option::Option>, + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn image_ids(mut self, input: impl Into) -> Self { + let mut v = self.image_ids.unwrap_or_default(); + v.push(input.into()); + self.image_ids = Some(v); + self + } + pub fn set_image_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.image_ids = input; + self + } + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`BatchDeleteImageOutput`](crate::output::BatchDeleteImageOutput) + pub fn build(self) -> crate::output::BatchDeleteImageOutput { + crate::output::BatchDeleteImageOutput { + image_ids: self.image_ids, + failures: self.failures, + } + } + } +} +impl BatchDeleteImageOutput { + /// Creates a new builder-style object to manufacture [`BatchDeleteImageOutput`](crate::output::BatchDeleteImageOutput) + pub fn builder() -> crate::output::batch_delete_image_output::Builder { + crate::output::batch_delete_image_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BatchCheckLayerAvailabilityOutput { + ///

            A list of image layer objects corresponding to the image layer references in the + /// request.

            + pub layers: std::option::Option>, + ///

            Any failures associated with the call.

            + pub failures: std::option::Option>, +} +impl std::fmt::Debug for BatchCheckLayerAvailabilityOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BatchCheckLayerAvailabilityOutput"); + formatter.field("layers", &self.layers); + formatter.field("failures", &self.failures); + formatter.finish() + } +} +/// See [`BatchCheckLayerAvailabilityOutput`](crate::output::BatchCheckLayerAvailabilityOutput) +pub mod batch_check_layer_availability_output { + /// A builder for [`BatchCheckLayerAvailabilityOutput`](crate::output::BatchCheckLayerAvailabilityOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) layers: std::option::Option>, + pub(crate) failures: std::option::Option>, + } + impl Builder { + pub fn layers(mut self, input: impl Into) -> Self { + let mut v = self.layers.unwrap_or_default(); + v.push(input.into()); + self.layers = Some(v); + self + } + pub fn set_layers( + mut self, + input: std::option::Option>, + ) -> Self { + self.layers = input; + self + } + pub fn failures(mut self, input: impl Into) -> Self { + let mut v = self.failures.unwrap_or_default(); + v.push(input.into()); + self.failures = Some(v); + self + } + pub fn set_failures( + mut self, + input: std::option::Option>, + ) -> Self { + self.failures = input; + self + } + /// Consumes the builder and constructs a [`BatchCheckLayerAvailabilityOutput`](crate::output::BatchCheckLayerAvailabilityOutput) + pub fn build(self) -> crate::output::BatchCheckLayerAvailabilityOutput { + crate::output::BatchCheckLayerAvailabilityOutput { + layers: self.layers, + failures: self.failures, + } + } + } +} +impl BatchCheckLayerAvailabilityOutput { + /// Creates a new builder-style object to manufacture [`BatchCheckLayerAvailabilityOutput`](crate::output::BatchCheckLayerAvailabilityOutput) + pub fn builder() -> crate::output::batch_check_layer_availability_output::Builder { + crate::output::batch_check_layer_availability_output::Builder::default() + } +} diff --git a/sdk/ecs/Cargo.toml b/sdk/ecs/Cargo.toml index f5071da99266..622fc608364c 100644 --- a/sdk/ecs/Cargo.toml +++ b/sdk/ecs/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-ecs" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon Elastic Container Service\n\t\t

            Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes\n\t\t\tit easy to run, stop, and manage Docker containers on a cluster. You can host your\n\t\t\tcluster on a serverless infrastructure that is managed by Amazon ECS by launching your\n\t\t\tservices or tasks on AWS Fargate. For more control, you can host your tasks on a cluster\n\t\t\tof Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage.

            \n\t\t

            Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls, allows you to get the state of your cluster from a centralized service, and gives\n\t\t\tyou access to many familiar Amazon EC2 features.

            \n\t\t

            You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. Amazon ECS eliminates\n\t\t\tthe need for you to operate your own cluster management and configuration management\n\t\t\tsystems or worry about scaling your management infrastructure.

            " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,22 +20,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/ecs/src/aws_json_errors.rs b/sdk/ecs/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/ecs/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/ecs/src/error.rs b/sdk/ecs/src/error.rs index 5ec6181b8e7a..b40844015ec8 100644 --- a/sdk/ecs/src/error.rs +++ b/sdk/ecs/src/error.rs @@ -8,22 +8,22 @@ pub struct CreateCapacityProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateCapacityProviderErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ServerError(crate::error::ServerError), - UpdateInProgressError(crate::error::UpdateInProgressError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ServerException(crate::error::ServerException), + UpdateInProgressException(crate::error::UpdateInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateCapacityProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateCapacityProviderErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateCapacityProviderErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateCapacityProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateCapacityProviderErrorKind::ServerError(_inner) => _inner.fmt(f), - CreateCapacityProviderErrorKind::UpdateInProgressError(_inner) => _inner.fmt(f), + CreateCapacityProviderErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateCapacityProviderErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateCapacityProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateCapacityProviderErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateCapacityProviderErrorKind::UpdateInProgressException(_inner) => _inner.fmt(f), CreateCapacityProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -72,39 +72,45 @@ impl CreateCapacityProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CreateCapacityProviderErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + CreateCapacityProviderErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateCapacityProviderErrorKind::InvalidParameterError(_) + CreateCapacityProviderErrorKind::InvalidParameterException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateCapacityProviderErrorKind::LimitExceededError(_) + CreateCapacityProviderErrorKind::LimitExceededException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CreateCapacityProviderErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + CreateCapacityProviderErrorKind::ServerException(_) + ) } - pub fn is_update_in_progress_error(&self) -> bool { + pub fn is_update_in_progress_exception(&self) -> bool { matches!( &self.kind, - CreateCapacityProviderErrorKind::UpdateInProgressError(_) + CreateCapacityProviderErrorKind::UpdateInProgressException(_) ) } } impl std::error::Error for CreateCapacityProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateCapacityProviderErrorKind::ClientError(_inner) => Some(_inner), - CreateCapacityProviderErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateCapacityProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateCapacityProviderErrorKind::ServerError(_inner) => Some(_inner), - CreateCapacityProviderErrorKind::UpdateInProgressError(_inner) => Some(_inner), + CreateCapacityProviderErrorKind::ClientException(_inner) => Some(_inner), + CreateCapacityProviderErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateCapacityProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateCapacityProviderErrorKind::ServerException(_inner) => Some(_inner), + CreateCapacityProviderErrorKind::UpdateInProgressException(_inner) => Some(_inner), CreateCapacityProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -119,18 +125,18 @@ pub struct CreateClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateClusterErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateClusterErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateClusterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateClusterErrorKind::ServerError(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ServerException(_inner) => _inner.fmt(f), CreateClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -179,22 +185,25 @@ impl CreateClusterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CreateClusterErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateClusterErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateClusterErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CreateClusterErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateClusterErrorKind::ServerException(_)) } } impl std::error::Error for CreateClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateClusterErrorKind::ClientError(_inner) => Some(_inner), - CreateClusterErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateClusterErrorKind::ServerError(_inner) => Some(_inner), + CreateClusterErrorKind::ClientException(_inner) => Some(_inner), + CreateClusterErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateClusterErrorKind::ServerException(_inner) => Some(_inner), CreateClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -209,32 +218,32 @@ pub struct CreateServiceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateServiceErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - PlatformTaskDefinitionIncompatibilityError( - crate::error::PlatformTaskDefinitionIncompatibilityError, + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + PlatformTaskDefinitionIncompatibilityException( + crate::error::PlatformTaskDefinitionIncompatibilityException, ), - PlatformUnknownError(crate::error::PlatformUnknownError), - ServerError(crate::error::ServerError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + PlatformUnknownException(crate::error::PlatformUnknownException), + ServerException(crate::error::ServerException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateServiceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateServiceErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + CreateServiceErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { _inner.fmt(f) } - CreateServiceErrorKind::PlatformUnknownError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::ServerError(_inner) => _inner.fmt(f), - CreateServiceErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + CreateServiceErrorKind::PlatformUnknownException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateServiceErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), CreateServiceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -283,50 +292,59 @@ impl CreateServiceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, CreateServiceErrorKind::AccessDeniedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateServiceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateServiceErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateServiceErrorKind::InvalidParameterException(_) + ) } - pub fn is_platform_task_definition_incompatibility_error(&self) -> bool { + pub fn is_platform_task_definition_incompatibility_exception(&self) -> bool { matches!( &self.kind, - CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_) + CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_) ) } - pub fn is_platform_unknown_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::PlatformUnknownError(_)) + pub fn is_platform_unknown_exception(&self) -> bool { + matches!( + &self.kind, + CreateServiceErrorKind::PlatformUnknownException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CreateServiceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateServiceErrorKind::ServerException(_)) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - CreateServiceErrorKind::UnsupportedFeatureError(_) + CreateServiceErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for CreateServiceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateServiceErrorKind::AccessDeniedError(_inner) => Some(_inner), - CreateServiceErrorKind::ClientError(_inner) => Some(_inner), - CreateServiceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - CreateServiceErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + CreateServiceErrorKind::AccessDeniedException(_inner) => Some(_inner), + CreateServiceErrorKind::ClientException(_inner) => Some(_inner), + CreateServiceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + CreateServiceErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { Some(_inner) } - CreateServiceErrorKind::PlatformUnknownError(_inner) => Some(_inner), - CreateServiceErrorKind::ServerError(_inner) => Some(_inner), - CreateServiceErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + CreateServiceErrorKind::PlatformUnknownException(_inner) => Some(_inner), + CreateServiceErrorKind::ServerException(_inner) => Some(_inner), + CreateServiceErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), CreateServiceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -341,36 +359,36 @@ pub struct CreateTaskSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateTaskSetErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - PlatformTaskDefinitionIncompatibilityError( - crate::error::PlatformTaskDefinitionIncompatibilityError, + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + PlatformTaskDefinitionIncompatibilityException( + crate::error::PlatformTaskDefinitionIncompatibilityException, ), - PlatformUnknownError(crate::error::PlatformUnknownError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + PlatformUnknownException(crate::error::PlatformUnknownException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateTaskSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateTaskSetErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::ClientError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + CreateTaskSetErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { _inner.fmt(f) } - CreateTaskSetErrorKind::PlatformUnknownError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::ServerError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), - CreateTaskSetErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::PlatformUnknownException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::ServiceNotActiveException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), + CreateTaskSetErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), CreateTaskSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -419,58 +437,73 @@ impl CreateTaskSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, CreateTaskSetErrorKind::AccessDeniedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateTaskSetErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateTaskSetErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateTaskSetErrorKind::InvalidParameterException(_) + ) } - pub fn is_platform_task_definition_incompatibility_error(&self) -> bool { + pub fn is_platform_task_definition_incompatibility_exception(&self) -> bool { matches!( &self.kind, - CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityError(_) + CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityException(_) ) } - pub fn is_platform_unknown_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::PlatformUnknownError(_)) + pub fn is_platform_unknown_exception(&self) -> bool { + matches!( + &self.kind, + CreateTaskSetErrorKind::PlatformUnknownException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateTaskSetErrorKind::ServerException(_)) } - pub fn is_service_not_active_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::ServiceNotActiveError(_)) + pub fn is_service_not_active_exception(&self) -> bool { + matches!( + &self.kind, + CreateTaskSetErrorKind::ServiceNotActiveException(_) + ) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, CreateTaskSetErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateTaskSetErrorKind::ServiceNotFoundException(_) + ) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - CreateTaskSetErrorKind::UnsupportedFeatureError(_) + CreateTaskSetErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for CreateTaskSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateTaskSetErrorKind::AccessDeniedError(_inner) => Some(_inner), - CreateTaskSetErrorKind::ClientError(_inner) => Some(_inner), - CreateTaskSetErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - CreateTaskSetErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + CreateTaskSetErrorKind::AccessDeniedException(_inner) => Some(_inner), + CreateTaskSetErrorKind::ClientException(_inner) => Some(_inner), + CreateTaskSetErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + CreateTaskSetErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { Some(_inner) } - CreateTaskSetErrorKind::PlatformUnknownError(_inner) => Some(_inner), - CreateTaskSetErrorKind::ServerError(_inner) => Some(_inner), - CreateTaskSetErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - CreateTaskSetErrorKind::ServiceNotFoundError(_inner) => Some(_inner), - CreateTaskSetErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + CreateTaskSetErrorKind::PlatformUnknownException(_inner) => Some(_inner), + CreateTaskSetErrorKind::ServerException(_inner) => Some(_inner), + CreateTaskSetErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + CreateTaskSetErrorKind::ServiceNotFoundException(_inner) => Some(_inner), + CreateTaskSetErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), CreateTaskSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -485,18 +518,18 @@ pub struct DeleteAccountSettingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAccountSettingErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAccountSettingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAccountSettingErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteAccountSettingErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteAccountSettingErrorKind::ServerError(_inner) => _inner.fmt(f), + DeleteAccountSettingErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteAccountSettingErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteAccountSettingErrorKind::ServerException(_inner) => _inner.fmt(f), DeleteAccountSettingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -545,25 +578,31 @@ impl DeleteAccountSettingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteAccountSettingErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAccountSettingErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountSettingErrorKind::InvalidParameterError(_) + DeleteAccountSettingErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteAccountSettingErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAccountSettingErrorKind::ServerException(_) + ) } } impl std::error::Error for DeleteAccountSettingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAccountSettingErrorKind::ClientError(_inner) => Some(_inner), - DeleteAccountSettingErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteAccountSettingErrorKind::ServerError(_inner) => Some(_inner), + DeleteAccountSettingErrorKind::ClientException(_inner) => Some(_inner), + DeleteAccountSettingErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteAccountSettingErrorKind::ServerException(_inner) => Some(_inner), DeleteAccountSettingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -578,18 +617,18 @@ pub struct DeleteAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAttributesErrorKind { - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - TargetNotFoundError(crate::error::TargetNotFoundError), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + TargetNotFoundException(crate::error::TargetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAttributesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DeleteAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteAttributesErrorKind::TargetNotFoundError(_inner) => _inner.fmt(f), + DeleteAttributesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DeleteAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteAttributesErrorKind::TargetNotFoundException(_inner) => _inner.fmt(f), DeleteAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -638,31 +677,31 @@ impl DeleteAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteAttributesErrorKind::ClusterNotFoundError(_) + DeleteAttributesErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteAttributesErrorKind::InvalidParameterError(_) + DeleteAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_target_not_found_error(&self) -> bool { + pub fn is_target_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteAttributesErrorKind::TargetNotFoundError(_) + DeleteAttributesErrorKind::TargetNotFoundException(_) ) } } impl std::error::Error for DeleteAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAttributesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DeleteAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteAttributesErrorKind::TargetNotFoundError(_inner) => Some(_inner), + DeleteAttributesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DeleteAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteAttributesErrorKind::TargetNotFoundException(_inner) => Some(_inner), DeleteAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -677,18 +716,18 @@ pub struct DeleteCapacityProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteCapacityProviderErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteCapacityProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteCapacityProviderErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteCapacityProviderErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteCapacityProviderErrorKind::ServerError(_inner) => _inner.fmt(f), + DeleteCapacityProviderErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteCapacityProviderErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteCapacityProviderErrorKind::ServerException(_inner) => _inner.fmt(f), DeleteCapacityProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -737,25 +776,31 @@ impl DeleteCapacityProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteCapacityProviderErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DeleteCapacityProviderErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteCapacityProviderErrorKind::InvalidParameterError(_) + DeleteCapacityProviderErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteCapacityProviderErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteCapacityProviderErrorKind::ServerException(_) + ) } } impl std::error::Error for DeleteCapacityProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteCapacityProviderErrorKind::ClientError(_inner) => Some(_inner), - DeleteCapacityProviderErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteCapacityProviderErrorKind::ServerError(_inner) => Some(_inner), + DeleteCapacityProviderErrorKind::ClientException(_inner) => Some(_inner), + DeleteCapacityProviderErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteCapacityProviderErrorKind::ServerException(_inner) => Some(_inner), DeleteCapacityProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -770,28 +815,32 @@ pub struct DeleteClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteClusterErrorKind { - ClientError(crate::error::ClientError), - ClusterContainsContainerInstancesError(crate::error::ClusterContainsContainerInstancesError), - ClusterContainsServicesError(crate::error::ClusterContainsServicesError), - ClusterContainsTasksError(crate::error::ClusterContainsTasksError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - UpdateInProgressError(crate::error::UpdateInProgressError), + ClientException(crate::error::ClientException), + ClusterContainsContainerInstancesException( + crate::error::ClusterContainsContainerInstancesException, + ), + ClusterContainsServicesException(crate::error::ClusterContainsServicesException), + ClusterContainsTasksException(crate::error::ClusterContainsTasksException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + UpdateInProgressException(crate::error::UpdateInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteClusterErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::ClusterContainsContainerInstancesError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::ClusterContainsServicesError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::ClusterContainsTasksError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::ServerError(_inner) => _inner.fmt(f), - DeleteClusterErrorKind::UpdateInProgressError(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ClusterContainsContainerInstancesException(_inner) => { + _inner.fmt(f) + } + DeleteClusterErrorKind::ClusterContainsServicesException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ClusterContainsTasksException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::UpdateInProgressException(_inner) => _inner.fmt(f), DeleteClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -840,51 +889,62 @@ impl DeleteClusterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteClusterErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteClusterErrorKind::ClientException(_)) } - pub fn is_cluster_contains_container_instances_error(&self) -> bool { + pub fn is_cluster_contains_container_instances_exception(&self) -> bool { matches!( &self.kind, - DeleteClusterErrorKind::ClusterContainsContainerInstancesError(_) + DeleteClusterErrorKind::ClusterContainsContainerInstancesException(_) ) } - pub fn is_cluster_contains_services_error(&self) -> bool { + pub fn is_cluster_contains_services_exception(&self) -> bool { matches!( &self.kind, - DeleteClusterErrorKind::ClusterContainsServicesError(_) + DeleteClusterErrorKind::ClusterContainsServicesException(_) ) } - pub fn is_cluster_contains_tasks_error(&self) -> bool { + pub fn is_cluster_contains_tasks_exception(&self) -> bool { matches!( &self.kind, - DeleteClusterErrorKind::ClusterContainsTasksError(_) + DeleteClusterErrorKind::ClusterContainsTasksException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteClusterErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteClusterErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteClusterErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteClusterErrorKind::ServerException(_)) } - pub fn is_update_in_progress_error(&self) -> bool { - matches!(&self.kind, DeleteClusterErrorKind::UpdateInProgressError(_)) + pub fn is_update_in_progress_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::UpdateInProgressException(_) + ) } } impl std::error::Error for DeleteClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteClusterErrorKind::ClientError(_inner) => Some(_inner), - DeleteClusterErrorKind::ClusterContainsContainerInstancesError(_inner) => Some(_inner), - DeleteClusterErrorKind::ClusterContainsServicesError(_inner) => Some(_inner), - DeleteClusterErrorKind::ClusterContainsTasksError(_inner) => Some(_inner), - DeleteClusterErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DeleteClusterErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteClusterErrorKind::ServerError(_inner) => Some(_inner), - DeleteClusterErrorKind::UpdateInProgressError(_inner) => Some(_inner), + DeleteClusterErrorKind::ClientException(_inner) => Some(_inner), + DeleteClusterErrorKind::ClusterContainsContainerInstancesException(_inner) => { + Some(_inner) + } + DeleteClusterErrorKind::ClusterContainsServicesException(_inner) => Some(_inner), + DeleteClusterErrorKind::ClusterContainsTasksException(_inner) => Some(_inner), + DeleteClusterErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DeleteClusterErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteClusterErrorKind::ServerException(_inner) => Some(_inner), + DeleteClusterErrorKind::UpdateInProgressException(_inner) => Some(_inner), DeleteClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -899,22 +959,22 @@ pub struct DeleteServiceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteServiceErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteServiceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteServiceErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteServiceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DeleteServiceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteServiceErrorKind::ServerError(_inner) => _inner.fmt(f), - DeleteServiceErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), + DeleteServiceErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteServiceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DeleteServiceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteServiceErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteServiceErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), DeleteServiceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -963,30 +1023,39 @@ impl DeleteServiceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteServiceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteServiceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteServiceErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteServiceErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteServiceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteServiceErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteServiceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteServiceErrorKind::ServerException(_)) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteServiceErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteServiceErrorKind::ServiceNotFoundException(_) + ) } } impl std::error::Error for DeleteServiceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteServiceErrorKind::ClientError(_inner) => Some(_inner), - DeleteServiceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DeleteServiceErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteServiceErrorKind::ServerError(_inner) => Some(_inner), - DeleteServiceErrorKind::ServiceNotFoundError(_inner) => Some(_inner), + DeleteServiceErrorKind::ClientException(_inner) => Some(_inner), + DeleteServiceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DeleteServiceErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteServiceErrorKind::ServerException(_inner) => Some(_inner), + DeleteServiceErrorKind::ServiceNotFoundException(_inner) => Some(_inner), DeleteServiceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1001,30 +1070,30 @@ pub struct DeleteTaskSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteTaskSetErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - TaskSetNotFoundError(crate::error::TaskSetNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + TaskSetNotFoundException(crate::error::TaskSetNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteTaskSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteTaskSetErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::ClientError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::ServerError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::TaskSetNotFoundError(_inner) => _inner.fmt(f), - DeleteTaskSetErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::ServiceNotActiveException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::TaskSetNotFoundException(_inner) => _inner.fmt(f), + DeleteTaskSetErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), DeleteTaskSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1073,49 +1142,64 @@ impl DeleteTaskSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, DeleteTaskSetErrorKind::AccessDeniedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteTaskSetErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTaskSetErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTaskSetErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteTaskSetErrorKind::ServerException(_)) } - pub fn is_service_not_active_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::ServiceNotActiveError(_)) + pub fn is_service_not_active_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTaskSetErrorKind::ServiceNotActiveException(_) + ) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTaskSetErrorKind::ServiceNotFoundException(_) + ) } - pub fn is_task_set_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTaskSetErrorKind::TaskSetNotFoundError(_)) + pub fn is_task_set_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTaskSetErrorKind::TaskSetNotFoundException(_) + ) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - DeleteTaskSetErrorKind::UnsupportedFeatureError(_) + DeleteTaskSetErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for DeleteTaskSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteTaskSetErrorKind::AccessDeniedError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::ClientError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::ServerError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::ServiceNotFoundError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::TaskSetNotFoundError(_inner) => Some(_inner), - DeleteTaskSetErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + DeleteTaskSetErrorKind::AccessDeniedException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::ClientException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::ServerException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::ServiceNotFoundException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::TaskSetNotFoundException(_inner) => Some(_inner), + DeleteTaskSetErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), DeleteTaskSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1130,20 +1214,22 @@ pub struct DeregisterContainerInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterContainerInstanceErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterContainerInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterContainerInstanceErrorKind::ClientError(_inner) => _inner.fmt(f), - DeregisterContainerInstanceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DeregisterContainerInstanceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeregisterContainerInstanceErrorKind::ServerError(_inner) => _inner.fmt(f), + DeregisterContainerInstanceErrorKind::ClientException(_inner) => _inner.fmt(f), + DeregisterContainerInstanceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DeregisterContainerInstanceErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DeregisterContainerInstanceErrorKind::ServerException(_inner) => _inner.fmt(f), DeregisterContainerInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1192,38 +1278,38 @@ impl DeregisterContainerInstanceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DeregisterContainerInstanceErrorKind::ClientError(_) + DeregisterContainerInstanceErrorKind::ClientException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - DeregisterContainerInstanceErrorKind::ClusterNotFoundError(_) + DeregisterContainerInstanceErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeregisterContainerInstanceErrorKind::InvalidParameterError(_) + DeregisterContainerInstanceErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DeregisterContainerInstanceErrorKind::ServerError(_) + DeregisterContainerInstanceErrorKind::ServerException(_) ) } } impl std::error::Error for DeregisterContainerInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterContainerInstanceErrorKind::ClientError(_inner) => Some(_inner), - DeregisterContainerInstanceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DeregisterContainerInstanceErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeregisterContainerInstanceErrorKind::ServerError(_inner) => Some(_inner), + DeregisterContainerInstanceErrorKind::ClientException(_inner) => Some(_inner), + DeregisterContainerInstanceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DeregisterContainerInstanceErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeregisterContainerInstanceErrorKind::ServerException(_inner) => Some(_inner), DeregisterContainerInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1238,18 +1324,18 @@ pub struct DeregisterTaskDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterTaskDefinitionErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterTaskDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterTaskDefinitionErrorKind::ClientError(_inner) => _inner.fmt(f), - DeregisterTaskDefinitionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeregisterTaskDefinitionErrorKind::ServerError(_inner) => _inner.fmt(f), + DeregisterTaskDefinitionErrorKind::ClientException(_inner) => _inner.fmt(f), + DeregisterTaskDefinitionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeregisterTaskDefinitionErrorKind::ServerException(_inner) => _inner.fmt(f), DeregisterTaskDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1298,31 +1384,31 @@ impl DeregisterTaskDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DeregisterTaskDefinitionErrorKind::ClientError(_) + DeregisterTaskDefinitionErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeregisterTaskDefinitionErrorKind::InvalidParameterError(_) + DeregisterTaskDefinitionErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DeregisterTaskDefinitionErrorKind::ServerError(_) + DeregisterTaskDefinitionErrorKind::ServerException(_) ) } } impl std::error::Error for DeregisterTaskDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterTaskDefinitionErrorKind::ClientError(_inner) => Some(_inner), - DeregisterTaskDefinitionErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeregisterTaskDefinitionErrorKind::ServerError(_inner) => Some(_inner), + DeregisterTaskDefinitionErrorKind::ClientException(_inner) => Some(_inner), + DeregisterTaskDefinitionErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeregisterTaskDefinitionErrorKind::ServerException(_inner) => Some(_inner), DeregisterTaskDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1337,18 +1423,18 @@ pub struct DescribeCapacityProvidersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeCapacityProvidersErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeCapacityProvidersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeCapacityProvidersErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeCapacityProvidersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeCapacityProvidersErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeCapacityProvidersErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeCapacityProvidersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeCapacityProvidersErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeCapacityProvidersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1397,31 +1483,31 @@ impl DescribeCapacityProvidersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DescribeCapacityProvidersErrorKind::ClientError(_) + DescribeCapacityProvidersErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeCapacityProvidersErrorKind::InvalidParameterError(_) + DescribeCapacityProvidersErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DescribeCapacityProvidersErrorKind::ServerError(_) + DescribeCapacityProvidersErrorKind::ServerException(_) ) } } impl std::error::Error for DescribeCapacityProvidersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeCapacityProvidersErrorKind::ClientError(_inner) => Some(_inner), - DescribeCapacityProvidersErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeCapacityProvidersErrorKind::ServerError(_inner) => Some(_inner), + DescribeCapacityProvidersErrorKind::ClientException(_inner) => Some(_inner), + DescribeCapacityProvidersErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeCapacityProvidersErrorKind::ServerException(_inner) => Some(_inner), DescribeCapacityProvidersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1436,18 +1522,18 @@ pub struct DescribeClustersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeClustersErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeClustersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeClustersErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeClustersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeClustersErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeClustersErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeClustersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeClustersErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeClustersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1496,25 +1582,25 @@ impl DescribeClustersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeClustersErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeClustersErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeClustersErrorKind::InvalidParameterError(_) + DescribeClustersErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeClustersErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeClustersErrorKind::ServerException(_)) } } impl std::error::Error for DescribeClustersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeClustersErrorKind::ClientError(_inner) => Some(_inner), - DescribeClustersErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeClustersErrorKind::ServerError(_inner) => Some(_inner), + DescribeClustersErrorKind::ClientException(_inner) => Some(_inner), + DescribeClustersErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeClustersErrorKind::ServerException(_inner) => Some(_inner), DescribeClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1529,20 +1615,20 @@ pub struct DescribeContainerInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeContainerInstancesErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeContainerInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeContainerInstancesErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeContainerInstancesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DescribeContainerInstancesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeContainerInstancesErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeContainerInstancesErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeContainerInstancesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DescribeContainerInstancesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeContainerInstancesErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeContainerInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1591,38 +1677,38 @@ impl DescribeContainerInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - DescribeContainerInstancesErrorKind::ClientError(_) + DescribeContainerInstancesErrorKind::ClientException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeContainerInstancesErrorKind::ClusterNotFoundError(_) + DescribeContainerInstancesErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeContainerInstancesErrorKind::InvalidParameterError(_) + DescribeContainerInstancesErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - DescribeContainerInstancesErrorKind::ServerError(_) + DescribeContainerInstancesErrorKind::ServerException(_) ) } } impl std::error::Error for DescribeContainerInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeContainerInstancesErrorKind::ClientError(_inner) => Some(_inner), - DescribeContainerInstancesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DescribeContainerInstancesErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeContainerInstancesErrorKind::ServerError(_inner) => Some(_inner), + DescribeContainerInstancesErrorKind::ClientException(_inner) => Some(_inner), + DescribeContainerInstancesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DescribeContainerInstancesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeContainerInstancesErrorKind::ServerException(_inner) => Some(_inner), DescribeContainerInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1637,20 +1723,20 @@ pub struct DescribeServicesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeServicesErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeServicesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeServicesErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeServicesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DescribeServicesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeServicesErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeServicesErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeServicesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DescribeServicesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeServicesErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeServicesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1699,32 +1785,32 @@ impl DescribeServicesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeServicesErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeServicesErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeServicesErrorKind::ClusterNotFoundError(_) + DescribeServicesErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeServicesErrorKind::InvalidParameterError(_) + DescribeServicesErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeServicesErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeServicesErrorKind::ServerException(_)) } } impl std::error::Error for DescribeServicesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeServicesErrorKind::ClientError(_inner) => Some(_inner), - DescribeServicesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DescribeServicesErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeServicesErrorKind::ServerError(_inner) => Some(_inner), + DescribeServicesErrorKind::ClientException(_inner) => Some(_inner), + DescribeServicesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DescribeServicesErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeServicesErrorKind::ServerException(_inner) => Some(_inner), DescribeServicesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1739,18 +1825,18 @@ pub struct DescribeTaskDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeTaskDefinitionErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeTaskDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeTaskDefinitionErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeTaskDefinitionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeTaskDefinitionErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeTaskDefinitionErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeTaskDefinitionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeTaskDefinitionErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeTaskDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1799,25 +1885,31 @@ impl DescribeTaskDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeTaskDefinitionErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTaskDefinitionErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskDefinitionErrorKind::InvalidParameterError(_) + DescribeTaskDefinitionErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeTaskDefinitionErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTaskDefinitionErrorKind::ServerException(_) + ) } } impl std::error::Error for DescribeTaskDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeTaskDefinitionErrorKind::ClientError(_inner) => Some(_inner), - DescribeTaskDefinitionErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeTaskDefinitionErrorKind::ServerError(_inner) => Some(_inner), + DescribeTaskDefinitionErrorKind::ClientException(_inner) => Some(_inner), + DescribeTaskDefinitionErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeTaskDefinitionErrorKind::ServerException(_inner) => Some(_inner), DescribeTaskDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1832,20 +1924,20 @@ pub struct DescribeTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeTasksErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeTasksErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeTasksErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DescribeTasksErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeTasksErrorKind::ServerError(_inner) => _inner.fmt(f), + DescribeTasksErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeTasksErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DescribeTasksErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeTasksErrorKind::ServerException(_inner) => _inner.fmt(f), DescribeTasksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1894,26 +1986,32 @@ impl DescribeTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeTasksErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeTasksErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeTasksErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTasksErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DescribeTasksErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTasksErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeTasksErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeTasksErrorKind::ServerException(_)) } } impl std::error::Error for DescribeTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeTasksErrorKind::ClientError(_inner) => Some(_inner), - DescribeTasksErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DescribeTasksErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeTasksErrorKind::ServerError(_inner) => Some(_inner), + DescribeTasksErrorKind::ClientException(_inner) => Some(_inner), + DescribeTasksErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DescribeTasksErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeTasksErrorKind::ServerException(_inner) => Some(_inner), DescribeTasksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1928,28 +2026,28 @@ pub struct DescribeTaskSetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeTaskSetsErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeTaskSetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeTaskSetsErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::ClientError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::ServerError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), - DescribeTaskSetsErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::ServiceNotActiveException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), + DescribeTaskSetsErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), DescribeTaskSetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1998,57 +2096,60 @@ impl DescribeTaskSetsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, DescribeTaskSetsErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!( + &self.kind, + DescribeTaskSetsErrorKind::AccessDeniedException(_) + ) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DescribeTaskSetsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeTaskSetsErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskSetsErrorKind::ClusterNotFoundError(_) + DescribeTaskSetsErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskSetsErrorKind::InvalidParameterError(_) + DescribeTaskSetsErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DescribeTaskSetsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeTaskSetsErrorKind::ServerException(_)) } - pub fn is_service_not_active_error(&self) -> bool { + pub fn is_service_not_active_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskSetsErrorKind::ServiceNotActiveError(_) + DescribeTaskSetsErrorKind::ServiceNotActiveException(_) ) } - pub fn is_service_not_found_error(&self) -> bool { + pub fn is_service_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskSetsErrorKind::ServiceNotFoundError(_) + DescribeTaskSetsErrorKind::ServiceNotFoundException(_) ) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - DescribeTaskSetsErrorKind::UnsupportedFeatureError(_) + DescribeTaskSetsErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for DescribeTaskSetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeTaskSetsErrorKind::AccessDeniedError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::ClientError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::ServerError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::ServiceNotFoundError(_inner) => Some(_inner), - DescribeTaskSetsErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::AccessDeniedException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::ClientException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::ServerException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::ServiceNotFoundException(_inner) => Some(_inner), + DescribeTaskSetsErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), DescribeTaskSetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2063,16 +2164,16 @@ pub struct DiscoverPollEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DiscoverPollEndpointErrorKind { - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DiscoverPollEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DiscoverPollEndpointErrorKind::ClientError(_inner) => _inner.fmt(f), - DiscoverPollEndpointErrorKind::ServerError(_inner) => _inner.fmt(f), + DiscoverPollEndpointErrorKind::ClientException(_inner) => _inner.fmt(f), + DiscoverPollEndpointErrorKind::ServerException(_inner) => _inner.fmt(f), DiscoverPollEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2121,18 +2222,24 @@ impl DiscoverPollEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, DiscoverPollEndpointErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DiscoverPollEndpointErrorKind::ClientException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, DiscoverPollEndpointErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DiscoverPollEndpointErrorKind::ServerException(_) + ) } } impl std::error::Error for DiscoverPollEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DiscoverPollEndpointErrorKind::ClientError(_inner) => Some(_inner), - DiscoverPollEndpointErrorKind::ServerError(_inner) => Some(_inner), + DiscoverPollEndpointErrorKind::ClientException(_inner) => Some(_inner), + DiscoverPollEndpointErrorKind::ServerException(_inner) => Some(_inner), DiscoverPollEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2147,24 +2254,24 @@ pub struct ExecuteCommandError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteCommandErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - TargetNotConnectedError(crate::error::TargetNotConnectedError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + TargetNotConnectedException(crate::error::TargetNotConnectedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExecuteCommandError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteCommandErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - ExecuteCommandErrorKind::ClientError(_inner) => _inner.fmt(f), - ExecuteCommandErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ExecuteCommandErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ExecuteCommandErrorKind::ServerError(_inner) => _inner.fmt(f), - ExecuteCommandErrorKind::TargetNotConnectedError(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::ClientException(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::ServerException(_inner) => _inner.fmt(f), + ExecuteCommandErrorKind::TargetNotConnectedException(_inner) => _inner.fmt(f), ExecuteCommandErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2213,40 +2320,46 @@ impl ExecuteCommandError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, ExecuteCommandErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!( + &self.kind, + ExecuteCommandErrorKind::AccessDeniedException(_) + ) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ExecuteCommandErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ExecuteCommandErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, ExecuteCommandErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ExecuteCommandErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ExecuteCommandErrorKind::InvalidParameterError(_) + ExecuteCommandErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ExecuteCommandErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ExecuteCommandErrorKind::ServerException(_)) } - pub fn is_target_not_connected_error(&self) -> bool { + pub fn is_target_not_connected_exception(&self) -> bool { matches!( &self.kind, - ExecuteCommandErrorKind::TargetNotConnectedError(_) + ExecuteCommandErrorKind::TargetNotConnectedException(_) ) } } impl std::error::Error for ExecuteCommandError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteCommandErrorKind::AccessDeniedError(_inner) => Some(_inner), - ExecuteCommandErrorKind::ClientError(_inner) => Some(_inner), - ExecuteCommandErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ExecuteCommandErrorKind::InvalidParameterError(_inner) => Some(_inner), - ExecuteCommandErrorKind::ServerError(_inner) => Some(_inner), - ExecuteCommandErrorKind::TargetNotConnectedError(_inner) => Some(_inner), + ExecuteCommandErrorKind::AccessDeniedException(_inner) => Some(_inner), + ExecuteCommandErrorKind::ClientException(_inner) => Some(_inner), + ExecuteCommandErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ExecuteCommandErrorKind::InvalidParameterException(_inner) => Some(_inner), + ExecuteCommandErrorKind::ServerException(_inner) => Some(_inner), + ExecuteCommandErrorKind::TargetNotConnectedException(_inner) => Some(_inner), ExecuteCommandErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2261,18 +2374,18 @@ pub struct ListAccountSettingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAccountSettingsErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAccountSettingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAccountSettingsErrorKind::ClientError(_inner) => _inner.fmt(f), - ListAccountSettingsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListAccountSettingsErrorKind::ServerError(_inner) => _inner.fmt(f), + ListAccountSettingsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListAccountSettingsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListAccountSettingsErrorKind::ServerException(_inner) => _inner.fmt(f), ListAccountSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2321,25 +2434,25 @@ impl ListAccountSettingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListAccountSettingsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListAccountSettingsErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListAccountSettingsErrorKind::InvalidParameterError(_) + ListAccountSettingsErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListAccountSettingsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListAccountSettingsErrorKind::ServerException(_)) } } impl std::error::Error for ListAccountSettingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAccountSettingsErrorKind::ClientError(_inner) => Some(_inner), - ListAccountSettingsErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListAccountSettingsErrorKind::ServerError(_inner) => Some(_inner), + ListAccountSettingsErrorKind::ClientException(_inner) => Some(_inner), + ListAccountSettingsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListAccountSettingsErrorKind::ServerException(_inner) => Some(_inner), ListAccountSettingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2354,16 +2467,16 @@ pub struct ListAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAttributesErrorKind { - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAttributesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ListAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + ListAttributesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ListAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), ListAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2412,21 +2525,24 @@ impl ListAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, ListAttributesErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListAttributesErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListAttributesErrorKind::InvalidParameterError(_) + ListAttributesErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for ListAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAttributesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ListAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), + ListAttributesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ListAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), ListAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2441,18 +2557,18 @@ pub struct ListClustersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListClustersErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListClustersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListClustersErrorKind::ClientError(_inner) => _inner.fmt(f), - ListClustersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListClustersErrorKind::ServerError(_inner) => _inner.fmt(f), + ListClustersErrorKind::ClientException(_inner) => _inner.fmt(f), + ListClustersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListClustersErrorKind::ServerException(_inner) => _inner.fmt(f), ListClustersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2501,22 +2617,25 @@ impl ListClustersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListClustersErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListClustersErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, ListClustersErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListClustersErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListClustersErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListClustersErrorKind::ServerException(_)) } } impl std::error::Error for ListClustersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListClustersErrorKind::ClientError(_inner) => Some(_inner), - ListClustersErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListClustersErrorKind::ServerError(_inner) => Some(_inner), + ListClustersErrorKind::ClientException(_inner) => Some(_inner), + ListClustersErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListClustersErrorKind::ServerException(_inner) => Some(_inner), ListClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2531,20 +2650,20 @@ pub struct ListContainerInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListContainerInstancesErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListContainerInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListContainerInstancesErrorKind::ClientError(_inner) => _inner.fmt(f), - ListContainerInstancesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ListContainerInstancesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListContainerInstancesErrorKind::ServerError(_inner) => _inner.fmt(f), + ListContainerInstancesErrorKind::ClientException(_inner) => _inner.fmt(f), + ListContainerInstancesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ListContainerInstancesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListContainerInstancesErrorKind::ServerException(_inner) => _inner.fmt(f), ListContainerInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2593,32 +2712,38 @@ impl ListContainerInstancesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListContainerInstancesErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + ListContainerInstancesErrorKind::ClientException(_) + ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - ListContainerInstancesErrorKind::ClusterNotFoundError(_) + ListContainerInstancesErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListContainerInstancesErrorKind::InvalidParameterError(_) + ListContainerInstancesErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListContainerInstancesErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + ListContainerInstancesErrorKind::ServerException(_) + ) } } impl std::error::Error for ListContainerInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListContainerInstancesErrorKind::ClientError(_inner) => Some(_inner), - ListContainerInstancesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ListContainerInstancesErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListContainerInstancesErrorKind::ServerError(_inner) => Some(_inner), + ListContainerInstancesErrorKind::ClientException(_inner) => Some(_inner), + ListContainerInstancesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ListContainerInstancesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListContainerInstancesErrorKind::ServerException(_inner) => Some(_inner), ListContainerInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2633,20 +2758,20 @@ pub struct ListServicesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListServicesErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListServicesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListServicesErrorKind::ClientError(_inner) => _inner.fmt(f), - ListServicesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ListServicesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListServicesErrorKind::ServerError(_inner) => _inner.fmt(f), + ListServicesErrorKind::ClientException(_inner) => _inner.fmt(f), + ListServicesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ListServicesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListServicesErrorKind::ServerException(_inner) => _inner.fmt(f), ListServicesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2695,26 +2820,32 @@ impl ListServicesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListServicesErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListServicesErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, ListServicesErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListServicesErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, ListServicesErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListServicesErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListServicesErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListServicesErrorKind::ServerException(_)) } } impl std::error::Error for ListServicesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListServicesErrorKind::ClientError(_inner) => Some(_inner), - ListServicesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ListServicesErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListServicesErrorKind::ServerError(_inner) => Some(_inner), + ListServicesErrorKind::ClientException(_inner) => Some(_inner), + ListServicesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ListServicesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListServicesErrorKind::ServerException(_inner) => Some(_inner), ListServicesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2729,20 +2860,20 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ServerException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2791,32 +2922,32 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListTagsForResourceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::ClusterNotFoundError(_) + ListTagsForResourceErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::InvalidParameterError(_) + ListTagsForResourceErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListTagsForResourceErrorKind::ServerException(_)) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::ClientError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ServerError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ClientException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ServerException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2831,18 +2962,18 @@ pub struct ListTaskDefinitionFamiliesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTaskDefinitionFamiliesErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTaskDefinitionFamiliesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTaskDefinitionFamiliesErrorKind::ClientError(_inner) => _inner.fmt(f), - ListTaskDefinitionFamiliesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTaskDefinitionFamiliesErrorKind::ServerError(_inner) => _inner.fmt(f), + ListTaskDefinitionFamiliesErrorKind::ClientException(_inner) => _inner.fmt(f), + ListTaskDefinitionFamiliesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTaskDefinitionFamiliesErrorKind::ServerException(_inner) => _inner.fmt(f), ListTaskDefinitionFamiliesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2891,31 +3022,31 @@ impl ListTaskDefinitionFamiliesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - ListTaskDefinitionFamiliesErrorKind::ClientError(_) + ListTaskDefinitionFamiliesErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListTaskDefinitionFamiliesErrorKind::InvalidParameterError(_) + ListTaskDefinitionFamiliesErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - ListTaskDefinitionFamiliesErrorKind::ServerError(_) + ListTaskDefinitionFamiliesErrorKind::ServerException(_) ) } } impl std::error::Error for ListTaskDefinitionFamiliesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTaskDefinitionFamiliesErrorKind::ClientError(_inner) => Some(_inner), - ListTaskDefinitionFamiliesErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTaskDefinitionFamiliesErrorKind::ServerError(_inner) => Some(_inner), + ListTaskDefinitionFamiliesErrorKind::ClientException(_inner) => Some(_inner), + ListTaskDefinitionFamiliesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTaskDefinitionFamiliesErrorKind::ServerException(_inner) => Some(_inner), ListTaskDefinitionFamiliesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2930,18 +3061,18 @@ pub struct ListTaskDefinitionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTaskDefinitionsErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTaskDefinitionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTaskDefinitionsErrorKind::ClientError(_inner) => _inner.fmt(f), - ListTaskDefinitionsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTaskDefinitionsErrorKind::ServerError(_inner) => _inner.fmt(f), + ListTaskDefinitionsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListTaskDefinitionsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTaskDefinitionsErrorKind::ServerException(_inner) => _inner.fmt(f), ListTaskDefinitionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2990,25 +3121,25 @@ impl ListTaskDefinitionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListTaskDefinitionsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListTaskDefinitionsErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListTaskDefinitionsErrorKind::InvalidParameterError(_) + ListTaskDefinitionsErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListTaskDefinitionsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListTaskDefinitionsErrorKind::ServerException(_)) } } impl std::error::Error for ListTaskDefinitionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTaskDefinitionsErrorKind::ClientError(_inner) => Some(_inner), - ListTaskDefinitionsErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTaskDefinitionsErrorKind::ServerError(_inner) => Some(_inner), + ListTaskDefinitionsErrorKind::ClientException(_inner) => Some(_inner), + ListTaskDefinitionsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTaskDefinitionsErrorKind::ServerException(_inner) => Some(_inner), ListTaskDefinitionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3023,22 +3154,22 @@ pub struct ListTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTasksErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTasksErrorKind::ClientError(_inner) => _inner.fmt(f), - ListTasksErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - ListTasksErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTasksErrorKind::ServerError(_inner) => _inner.fmt(f), - ListTasksErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), + ListTasksErrorKind::ClientException(_inner) => _inner.fmt(f), + ListTasksErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + ListTasksErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTasksErrorKind::ServerException(_inner) => _inner.fmt(f), + ListTasksErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), ListTasksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3087,30 +3218,30 @@ impl ListTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, ListTasksErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListTasksErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, ListTasksErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!(&self.kind, ListTasksErrorKind::ClusterNotFoundException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, ListTasksErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, ListTasksErrorKind::InvalidParameterException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, ListTasksErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListTasksErrorKind::ServerException(_)) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, ListTasksErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!(&self.kind, ListTasksErrorKind::ServiceNotFoundException(_)) } } impl std::error::Error for ListTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTasksErrorKind::ClientError(_inner) => Some(_inner), - ListTasksErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - ListTasksErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTasksErrorKind::ServerError(_inner) => Some(_inner), - ListTasksErrorKind::ServiceNotFoundError(_inner) => Some(_inner), + ListTasksErrorKind::ClientException(_inner) => Some(_inner), + ListTasksErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + ListTasksErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTasksErrorKind::ServerException(_inner) => Some(_inner), + ListTasksErrorKind::ServiceNotFoundException(_inner) => Some(_inner), ListTasksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3125,18 +3256,18 @@ pub struct PutAccountSettingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountSettingErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountSettingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountSettingErrorKind::ClientError(_inner) => _inner.fmt(f), - PutAccountSettingErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutAccountSettingErrorKind::ServerError(_inner) => _inner.fmt(f), + PutAccountSettingErrorKind::ClientException(_inner) => _inner.fmt(f), + PutAccountSettingErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutAccountSettingErrorKind::ServerException(_inner) => _inner.fmt(f), PutAccountSettingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3185,25 +3316,25 @@ impl PutAccountSettingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, PutAccountSettingErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, PutAccountSettingErrorKind::ClientException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutAccountSettingErrorKind::InvalidParameterError(_) + PutAccountSettingErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, PutAccountSettingErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, PutAccountSettingErrorKind::ServerException(_)) } } impl std::error::Error for PutAccountSettingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountSettingErrorKind::ClientError(_inner) => Some(_inner), - PutAccountSettingErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutAccountSettingErrorKind::ServerError(_inner) => Some(_inner), + PutAccountSettingErrorKind::ClientException(_inner) => Some(_inner), + PutAccountSettingErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutAccountSettingErrorKind::ServerException(_inner) => Some(_inner), PutAccountSettingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3218,18 +3349,18 @@ pub struct PutAccountSettingDefaultError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountSettingDefaultErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountSettingDefaultError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountSettingDefaultErrorKind::ClientError(_inner) => _inner.fmt(f), - PutAccountSettingDefaultErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutAccountSettingDefaultErrorKind::ServerError(_inner) => _inner.fmt(f), + PutAccountSettingDefaultErrorKind::ClientException(_inner) => _inner.fmt(f), + PutAccountSettingDefaultErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutAccountSettingDefaultErrorKind::ServerException(_inner) => _inner.fmt(f), PutAccountSettingDefaultErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3278,31 +3409,31 @@ impl PutAccountSettingDefaultError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - PutAccountSettingDefaultErrorKind::ClientError(_) + PutAccountSettingDefaultErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutAccountSettingDefaultErrorKind::InvalidParameterError(_) + PutAccountSettingDefaultErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - PutAccountSettingDefaultErrorKind::ServerError(_) + PutAccountSettingDefaultErrorKind::ServerException(_) ) } } impl std::error::Error for PutAccountSettingDefaultError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountSettingDefaultErrorKind::ClientError(_inner) => Some(_inner), - PutAccountSettingDefaultErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutAccountSettingDefaultErrorKind::ServerError(_inner) => Some(_inner), + PutAccountSettingDefaultErrorKind::ClientException(_inner) => Some(_inner), + PutAccountSettingDefaultErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutAccountSettingDefaultErrorKind::ServerException(_inner) => Some(_inner), PutAccountSettingDefaultErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3317,20 +3448,20 @@ pub struct PutAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAttributesErrorKind { - AttributeLimitExceededError(crate::error::AttributeLimitExceededError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - TargetNotFoundError(crate::error::TargetNotFoundError), + AttributeLimitExceededException(crate::error::AttributeLimitExceededException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + TargetNotFoundException(crate::error::TargetNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAttributesErrorKind::AttributeLimitExceededError(_inner) => _inner.fmt(f), - PutAttributesErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - PutAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutAttributesErrorKind::TargetNotFoundError(_inner) => _inner.fmt(f), + PutAttributesErrorKind::AttributeLimitExceededException(_inner) => _inner.fmt(f), + PutAttributesErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + PutAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutAttributesErrorKind::TargetNotFoundException(_inner) => _inner.fmt(f), PutAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3379,29 +3510,38 @@ impl PutAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_attribute_limit_exceeded_error(&self) -> bool { + pub fn is_attribute_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutAttributesErrorKind::AttributeLimitExceededError(_) + PutAttributesErrorKind::AttributeLimitExceededException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, PutAttributesErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutAttributesErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, PutAttributesErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + PutAttributesErrorKind::InvalidParameterException(_) + ) } - pub fn is_target_not_found_error(&self) -> bool { - matches!(&self.kind, PutAttributesErrorKind::TargetNotFoundError(_)) + pub fn is_target_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutAttributesErrorKind::TargetNotFoundException(_) + ) } } impl std::error::Error for PutAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAttributesErrorKind::AttributeLimitExceededError(_inner) => Some(_inner), - PutAttributesErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - PutAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutAttributesErrorKind::TargetNotFoundError(_inner) => Some(_inner), + PutAttributesErrorKind::AttributeLimitExceededException(_inner) => Some(_inner), + PutAttributesErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + PutAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutAttributesErrorKind::TargetNotFoundException(_inner) => Some(_inner), PutAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3416,24 +3556,28 @@ pub struct PutClusterCapacityProvidersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutClusterCapacityProvidersErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceInUseError(crate::error::ResourceInUseError), - ServerError(crate::error::ServerError), - UpdateInProgressError(crate::error::UpdateInProgressError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceInUseException(crate::error::ResourceInUseException), + ServerException(crate::error::ServerException), + UpdateInProgressException(crate::error::UpdateInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutClusterCapacityProvidersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutClusterCapacityProvidersErrorKind::ClientError(_inner) => _inner.fmt(f), - PutClusterCapacityProvidersErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - PutClusterCapacityProvidersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutClusterCapacityProvidersErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - PutClusterCapacityProvidersErrorKind::ServerError(_inner) => _inner.fmt(f), - PutClusterCapacityProvidersErrorKind::UpdateInProgressError(_inner) => _inner.fmt(f), + PutClusterCapacityProvidersErrorKind::ClientException(_inner) => _inner.fmt(f), + PutClusterCapacityProvidersErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + PutClusterCapacityProvidersErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + PutClusterCapacityProvidersErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + PutClusterCapacityProvidersErrorKind::ServerException(_inner) => _inner.fmt(f), + PutClusterCapacityProvidersErrorKind::UpdateInProgressException(_inner) => { + _inner.fmt(f) + } PutClusterCapacityProvidersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3482,52 +3626,52 @@ impl PutClusterCapacityProvidersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::ClientError(_) + PutClusterCapacityProvidersErrorKind::ClientException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::ClusterNotFoundError(_) + PutClusterCapacityProvidersErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::InvalidParameterError(_) + PutClusterCapacityProvidersErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::ResourceInUseError(_) + PutClusterCapacityProvidersErrorKind::ResourceInUseException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::ServerError(_) + PutClusterCapacityProvidersErrorKind::ServerException(_) ) } - pub fn is_update_in_progress_error(&self) -> bool { + pub fn is_update_in_progress_exception(&self) -> bool { matches!( &self.kind, - PutClusterCapacityProvidersErrorKind::UpdateInProgressError(_) + PutClusterCapacityProvidersErrorKind::UpdateInProgressException(_) ) } } impl std::error::Error for PutClusterCapacityProvidersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutClusterCapacityProvidersErrorKind::ClientError(_inner) => Some(_inner), - PutClusterCapacityProvidersErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - PutClusterCapacityProvidersErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutClusterCapacityProvidersErrorKind::ResourceInUseError(_inner) => Some(_inner), - PutClusterCapacityProvidersErrorKind::ServerError(_inner) => Some(_inner), - PutClusterCapacityProvidersErrorKind::UpdateInProgressError(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::ClientException(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::ResourceInUseException(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::ServerException(_inner) => Some(_inner), + PutClusterCapacityProvidersErrorKind::UpdateInProgressException(_inner) => Some(_inner), PutClusterCapacityProvidersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3542,18 +3686,18 @@ pub struct RegisterContainerInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterContainerInstanceErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterContainerInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterContainerInstanceErrorKind::ClientError(_inner) => _inner.fmt(f), - RegisterContainerInstanceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RegisterContainerInstanceErrorKind::ServerError(_inner) => _inner.fmt(f), + RegisterContainerInstanceErrorKind::ClientException(_inner) => _inner.fmt(f), + RegisterContainerInstanceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RegisterContainerInstanceErrorKind::ServerException(_inner) => _inner.fmt(f), RegisterContainerInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3602,31 +3746,31 @@ impl RegisterContainerInstanceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - RegisterContainerInstanceErrorKind::ClientError(_) + RegisterContainerInstanceErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - RegisterContainerInstanceErrorKind::InvalidParameterError(_) + RegisterContainerInstanceErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - RegisterContainerInstanceErrorKind::ServerError(_) + RegisterContainerInstanceErrorKind::ServerException(_) ) } } impl std::error::Error for RegisterContainerInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterContainerInstanceErrorKind::ClientError(_inner) => Some(_inner), - RegisterContainerInstanceErrorKind::InvalidParameterError(_inner) => Some(_inner), - RegisterContainerInstanceErrorKind::ServerError(_inner) => Some(_inner), + RegisterContainerInstanceErrorKind::ClientException(_inner) => Some(_inner), + RegisterContainerInstanceErrorKind::InvalidParameterException(_inner) => Some(_inner), + RegisterContainerInstanceErrorKind::ServerException(_inner) => Some(_inner), RegisterContainerInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3641,18 +3785,18 @@ pub struct RegisterTaskDefinitionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterTaskDefinitionErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterTaskDefinitionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterTaskDefinitionErrorKind::ClientError(_inner) => _inner.fmt(f), - RegisterTaskDefinitionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RegisterTaskDefinitionErrorKind::ServerError(_inner) => _inner.fmt(f), + RegisterTaskDefinitionErrorKind::ClientException(_inner) => _inner.fmt(f), + RegisterTaskDefinitionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RegisterTaskDefinitionErrorKind::ServerException(_inner) => _inner.fmt(f), RegisterTaskDefinitionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3701,25 +3845,31 @@ impl RegisterTaskDefinitionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, RegisterTaskDefinitionErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + RegisterTaskDefinitionErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - RegisterTaskDefinitionErrorKind::InvalidParameterError(_) + RegisterTaskDefinitionErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, RegisterTaskDefinitionErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + RegisterTaskDefinitionErrorKind::ServerException(_) + ) } } impl std::error::Error for RegisterTaskDefinitionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterTaskDefinitionErrorKind::ClientError(_inner) => Some(_inner), - RegisterTaskDefinitionErrorKind::InvalidParameterError(_inner) => Some(_inner), - RegisterTaskDefinitionErrorKind::ServerError(_inner) => Some(_inner), + RegisterTaskDefinitionErrorKind::ClientException(_inner) => Some(_inner), + RegisterTaskDefinitionErrorKind::InvalidParameterException(_inner) => Some(_inner), + RegisterTaskDefinitionErrorKind::ServerException(_inner) => Some(_inner), RegisterTaskDefinitionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3734,32 +3884,34 @@ pub struct RunTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RunTaskErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - BlockedError(crate::error::BlockedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - PlatformTaskDefinitionIncompatibilityError( - crate::error::PlatformTaskDefinitionIncompatibilityError, + AccessDeniedException(crate::error::AccessDeniedException), + BlockedException(crate::error::BlockedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + PlatformTaskDefinitionIncompatibilityException( + crate::error::PlatformTaskDefinitionIncompatibilityException, ), - PlatformUnknownError(crate::error::PlatformUnknownError), - ServerError(crate::error::ServerError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + PlatformUnknownException(crate::error::PlatformUnknownException), + ServerException(crate::error::ServerException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RunTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RunTaskErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - RunTaskErrorKind::BlockedError(_inner) => _inner.fmt(f), - RunTaskErrorKind::ClientError(_inner) => _inner.fmt(f), - RunTaskErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - RunTaskErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => _inner.fmt(f), - RunTaskErrorKind::PlatformUnknownError(_inner) => _inner.fmt(f), - RunTaskErrorKind::ServerError(_inner) => _inner.fmt(f), - RunTaskErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + RunTaskErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + RunTaskErrorKind::BlockedException(_inner) => _inner.fmt(f), + RunTaskErrorKind::ClientException(_inner) => _inner.fmt(f), + RunTaskErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + RunTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { + _inner.fmt(f) + } + RunTaskErrorKind::PlatformUnknownException(_inner) => _inner.fmt(f), + RunTaskErrorKind::ServerException(_inner) => _inner.fmt(f), + RunTaskErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), RunTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3808,49 +3960,51 @@ impl RunTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::AccessDeniedException(_)) } - pub fn is_blocked_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::BlockedError(_)) + pub fn is_blocked_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::BlockedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::ClusterNotFoundException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::InvalidParameterException(_)) } - pub fn is_platform_task_definition_incompatibility_error(&self) -> bool { + pub fn is_platform_task_definition_incompatibility_exception(&self) -> bool { matches!( &self.kind, - RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityError(_) + RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityException(_) ) } - pub fn is_platform_unknown_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::PlatformUnknownError(_)) + pub fn is_platform_unknown_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::PlatformUnknownException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::ServerException(_)) } - pub fn is_unsupported_feature_error(&self) -> bool { - matches!(&self.kind, RunTaskErrorKind::UnsupportedFeatureError(_)) + pub fn is_unsupported_feature_exception(&self) -> bool { + matches!(&self.kind, RunTaskErrorKind::UnsupportedFeatureException(_)) } } impl std::error::Error for RunTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RunTaskErrorKind::AccessDeniedError(_inner) => Some(_inner), - RunTaskErrorKind::BlockedError(_inner) => Some(_inner), - RunTaskErrorKind::ClientError(_inner) => Some(_inner), - RunTaskErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - RunTaskErrorKind::InvalidParameterError(_inner) => Some(_inner), - RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => Some(_inner), - RunTaskErrorKind::PlatformUnknownError(_inner) => Some(_inner), - RunTaskErrorKind::ServerError(_inner) => Some(_inner), - RunTaskErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + RunTaskErrorKind::AccessDeniedException(_inner) => Some(_inner), + RunTaskErrorKind::BlockedException(_inner) => Some(_inner), + RunTaskErrorKind::ClientException(_inner) => Some(_inner), + RunTaskErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + RunTaskErrorKind::InvalidParameterException(_inner) => Some(_inner), + RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { + Some(_inner) + } + RunTaskErrorKind::PlatformUnknownException(_inner) => Some(_inner), + RunTaskErrorKind::ServerException(_inner) => Some(_inner), + RunTaskErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), RunTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3865,20 +4019,20 @@ pub struct StartTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartTaskErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartTaskErrorKind::ClientError(_inner) => _inner.fmt(f), - StartTaskErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - StartTaskErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StartTaskErrorKind::ServerError(_inner) => _inner.fmt(f), + StartTaskErrorKind::ClientException(_inner) => _inner.fmt(f), + StartTaskErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + StartTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StartTaskErrorKind::ServerException(_inner) => _inner.fmt(f), StartTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3927,26 +4081,26 @@ impl StartTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, StartTaskErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, StartTaskErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, StartTaskErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!(&self.kind, StartTaskErrorKind::ClusterNotFoundException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, StartTaskErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, StartTaskErrorKind::InvalidParameterException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, StartTaskErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, StartTaskErrorKind::ServerException(_)) } } impl std::error::Error for StartTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartTaskErrorKind::ClientError(_inner) => Some(_inner), - StartTaskErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - StartTaskErrorKind::InvalidParameterError(_inner) => Some(_inner), - StartTaskErrorKind::ServerError(_inner) => Some(_inner), + StartTaskErrorKind::ClientException(_inner) => Some(_inner), + StartTaskErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + StartTaskErrorKind::InvalidParameterException(_inner) => Some(_inner), + StartTaskErrorKind::ServerException(_inner) => Some(_inner), StartTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3961,20 +4115,20 @@ pub struct StopTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopTaskErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopTaskErrorKind::ClientError(_inner) => _inner.fmt(f), - StopTaskErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - StopTaskErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StopTaskErrorKind::ServerError(_inner) => _inner.fmt(f), + StopTaskErrorKind::ClientException(_inner) => _inner.fmt(f), + StopTaskErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + StopTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StopTaskErrorKind::ServerException(_inner) => _inner.fmt(f), StopTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4023,26 +4177,26 @@ impl StopTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, StopTaskErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, StopTaskErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, StopTaskErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!(&self.kind, StopTaskErrorKind::ClusterNotFoundException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, StopTaskErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, StopTaskErrorKind::InvalidParameterException(_)) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, StopTaskErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, StopTaskErrorKind::ServerException(_)) } } impl std::error::Error for StopTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopTaskErrorKind::ClientError(_inner) => Some(_inner), - StopTaskErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - StopTaskErrorKind::InvalidParameterError(_inner) => Some(_inner), - StopTaskErrorKind::ServerError(_inner) => Some(_inner), + StopTaskErrorKind::ClientException(_inner) => Some(_inner), + StopTaskErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + StopTaskErrorKind::InvalidParameterException(_inner) => Some(_inner), + StopTaskErrorKind::ServerException(_inner) => Some(_inner), StopTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4057,20 +4211,22 @@ pub struct SubmitAttachmentStateChangesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SubmitAttachmentStateChangesErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SubmitAttachmentStateChangesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SubmitAttachmentStateChangesErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - SubmitAttachmentStateChangesErrorKind::ClientError(_inner) => _inner.fmt(f), - SubmitAttachmentStateChangesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SubmitAttachmentStateChangesErrorKind::ServerError(_inner) => _inner.fmt(f), + SubmitAttachmentStateChangesErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + SubmitAttachmentStateChangesErrorKind::ClientException(_inner) => _inner.fmt(f), + SubmitAttachmentStateChangesErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + SubmitAttachmentStateChangesErrorKind::ServerException(_inner) => _inner.fmt(f), SubmitAttachmentStateChangesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4119,38 +4275,40 @@ impl SubmitAttachmentStateChangesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { + pub fn is_access_denied_exception(&self) -> bool { matches!( &self.kind, - SubmitAttachmentStateChangesErrorKind::AccessDeniedError(_) + SubmitAttachmentStateChangesErrorKind::AccessDeniedException(_) ) } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - SubmitAttachmentStateChangesErrorKind::ClientError(_) + SubmitAttachmentStateChangesErrorKind::ClientException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SubmitAttachmentStateChangesErrorKind::InvalidParameterError(_) + SubmitAttachmentStateChangesErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - SubmitAttachmentStateChangesErrorKind::ServerError(_) + SubmitAttachmentStateChangesErrorKind::ServerException(_) ) } } impl std::error::Error for SubmitAttachmentStateChangesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SubmitAttachmentStateChangesErrorKind::AccessDeniedError(_inner) => Some(_inner), - SubmitAttachmentStateChangesErrorKind::ClientError(_inner) => Some(_inner), - SubmitAttachmentStateChangesErrorKind::InvalidParameterError(_inner) => Some(_inner), - SubmitAttachmentStateChangesErrorKind::ServerError(_inner) => Some(_inner), + SubmitAttachmentStateChangesErrorKind::AccessDeniedException(_inner) => Some(_inner), + SubmitAttachmentStateChangesErrorKind::ClientException(_inner) => Some(_inner), + SubmitAttachmentStateChangesErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + SubmitAttachmentStateChangesErrorKind::ServerException(_inner) => Some(_inner), SubmitAttachmentStateChangesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4165,18 +4323,18 @@ pub struct SubmitContainerStateChangeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SubmitContainerStateChangeErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ServerError(crate::error::ServerError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SubmitContainerStateChangeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SubmitContainerStateChangeErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - SubmitContainerStateChangeErrorKind::ClientError(_inner) => _inner.fmt(f), - SubmitContainerStateChangeErrorKind::ServerError(_inner) => _inner.fmt(f), + SubmitContainerStateChangeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + SubmitContainerStateChangeErrorKind::ClientException(_inner) => _inner.fmt(f), + SubmitContainerStateChangeErrorKind::ServerException(_inner) => _inner.fmt(f), SubmitContainerStateChangeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4225,31 +4383,31 @@ impl SubmitContainerStateChangeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { + pub fn is_access_denied_exception(&self) -> bool { matches!( &self.kind, - SubmitContainerStateChangeErrorKind::AccessDeniedError(_) + SubmitContainerStateChangeErrorKind::AccessDeniedException(_) ) } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - SubmitContainerStateChangeErrorKind::ClientError(_) + SubmitContainerStateChangeErrorKind::ClientException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - SubmitContainerStateChangeErrorKind::ServerError(_) + SubmitContainerStateChangeErrorKind::ServerException(_) ) } } impl std::error::Error for SubmitContainerStateChangeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SubmitContainerStateChangeErrorKind::AccessDeniedError(_inner) => Some(_inner), - SubmitContainerStateChangeErrorKind::ClientError(_inner) => Some(_inner), - SubmitContainerStateChangeErrorKind::ServerError(_inner) => Some(_inner), + SubmitContainerStateChangeErrorKind::AccessDeniedException(_inner) => Some(_inner), + SubmitContainerStateChangeErrorKind::ClientException(_inner) => Some(_inner), + SubmitContainerStateChangeErrorKind::ServerException(_inner) => Some(_inner), SubmitContainerStateChangeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4264,20 +4422,20 @@ pub struct SubmitTaskStateChangeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SubmitTaskStateChangeErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SubmitTaskStateChangeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SubmitTaskStateChangeErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - SubmitTaskStateChangeErrorKind::ClientError(_inner) => _inner.fmt(f), - SubmitTaskStateChangeErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SubmitTaskStateChangeErrorKind::ServerError(_inner) => _inner.fmt(f), + SubmitTaskStateChangeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + SubmitTaskStateChangeErrorKind::ClientException(_inner) => _inner.fmt(f), + SubmitTaskStateChangeErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SubmitTaskStateChangeErrorKind::ServerException(_inner) => _inner.fmt(f), SubmitTaskStateChangeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4326,32 +4484,38 @@ impl SubmitTaskStateChangeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { + pub fn is_access_denied_exception(&self) -> bool { matches!( &self.kind, - SubmitTaskStateChangeErrorKind::AccessDeniedError(_) + SubmitTaskStateChangeErrorKind::AccessDeniedException(_) ) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, SubmitTaskStateChangeErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + SubmitTaskStateChangeErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SubmitTaskStateChangeErrorKind::InvalidParameterError(_) + SubmitTaskStateChangeErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, SubmitTaskStateChangeErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + SubmitTaskStateChangeErrorKind::ServerException(_) + ) } } impl std::error::Error for SubmitTaskStateChangeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SubmitTaskStateChangeErrorKind::AccessDeniedError(_inner) => Some(_inner), - SubmitTaskStateChangeErrorKind::ClientError(_inner) => Some(_inner), - SubmitTaskStateChangeErrorKind::InvalidParameterError(_inner) => Some(_inner), - SubmitTaskStateChangeErrorKind::ServerError(_inner) => Some(_inner), + SubmitTaskStateChangeErrorKind::AccessDeniedException(_inner) => Some(_inner), + SubmitTaskStateChangeErrorKind::ClientException(_inner) => Some(_inner), + SubmitTaskStateChangeErrorKind::InvalidParameterException(_inner) => Some(_inner), + SubmitTaskStateChangeErrorKind::ServerException(_inner) => Some(_inner), SubmitTaskStateChangeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4366,22 +4530,22 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + TagResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4430,30 +4594,39 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ServerException(_)) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::ClientError(_inner) => Some(_inner), - TagResourceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::ServerError(_inner) => Some(_inner), + TagResourceErrorKind::ClientException(_inner) => Some(_inner), + TagResourceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::ServerException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4468,22 +4641,22 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::ClientError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ServerError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ClientException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ServerException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4532,30 +4705,39 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ServerException(_)) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::ClientError(_inner) => Some(_inner), - UntagResourceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::ServerError(_inner) => Some(_inner), + UntagResourceErrorKind::ClientException(_inner) => Some(_inner), + UntagResourceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::ServerException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4570,18 +4752,18 @@ pub struct UpdateCapacityProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateCapacityProviderErrorKind { - ClientError(crate::error::ClientError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateCapacityProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateCapacityProviderErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateCapacityProviderErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateCapacityProviderErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateCapacityProviderErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateCapacityProviderErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateCapacityProviderErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateCapacityProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4630,25 +4812,31 @@ impl UpdateCapacityProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateCapacityProviderErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateCapacityProviderErrorKind::ClientException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateCapacityProviderErrorKind::InvalidParameterError(_) + UpdateCapacityProviderErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateCapacityProviderErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateCapacityProviderErrorKind::ServerException(_) + ) } } impl std::error::Error for UpdateCapacityProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateCapacityProviderErrorKind::ClientError(_inner) => Some(_inner), - UpdateCapacityProviderErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateCapacityProviderErrorKind::ServerError(_inner) => Some(_inner), + UpdateCapacityProviderErrorKind::ClientException(_inner) => Some(_inner), + UpdateCapacityProviderErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateCapacityProviderErrorKind::ServerException(_inner) => Some(_inner), UpdateCapacityProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4663,20 +4851,20 @@ pub struct UpdateClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateClusterErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateClusterErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateClusterErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateClusterErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateClusterErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateClusterErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateClusterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateClusterErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4725,26 +4913,32 @@ impl UpdateClusterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateClusterErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateClusterErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateClusterErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UpdateClusterErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateClusterErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateClusterErrorKind::ServerException(_)) } } impl std::error::Error for UpdateClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateClusterErrorKind::ClientError(_inner) => Some(_inner), - UpdateClusterErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateClusterErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateClusterErrorKind::ServerError(_inner) => Some(_inner), + UpdateClusterErrorKind::ClientException(_inner) => Some(_inner), + UpdateClusterErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateClusterErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateClusterErrorKind::ServerException(_inner) => Some(_inner), UpdateClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4759,20 +4953,20 @@ pub struct UpdateClusterSettingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateClusterSettingsErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateClusterSettingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateClusterSettingsErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateClusterSettingsErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateClusterSettingsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateClusterSettingsErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateClusterSettingsErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateClusterSettingsErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateClusterSettingsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateClusterSettingsErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateClusterSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4821,32 +5015,38 @@ impl UpdateClusterSettingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateClusterSettingsErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterSettingsErrorKind::ClientException(_) + ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateClusterSettingsErrorKind::ClusterNotFoundError(_) + UpdateClusterSettingsErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateClusterSettingsErrorKind::InvalidParameterError(_) + UpdateClusterSettingsErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateClusterSettingsErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterSettingsErrorKind::ServerException(_) + ) } } impl std::error::Error for UpdateClusterSettingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateClusterSettingsErrorKind::ClientError(_inner) => Some(_inner), - UpdateClusterSettingsErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateClusterSettingsErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateClusterSettingsErrorKind::ServerError(_inner) => Some(_inner), + UpdateClusterSettingsErrorKind::ClientException(_inner) => Some(_inner), + UpdateClusterSettingsErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateClusterSettingsErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateClusterSettingsErrorKind::ServerException(_inner) => Some(_inner), UpdateClusterSettingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4861,26 +5061,26 @@ pub struct UpdateContainerAgentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContainerAgentErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - MissingVersionError(crate::error::MissingVersionError), - NoUpdateAvailableError(crate::error::NoUpdateAvailableError), - ServerError(crate::error::ServerError), - UpdateInProgressError(crate::error::UpdateInProgressError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + MissingVersionException(crate::error::MissingVersionException), + NoUpdateAvailableException(crate::error::NoUpdateAvailableException), + ServerException(crate::error::ServerException), + UpdateInProgressException(crate::error::UpdateInProgressException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateContainerAgentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContainerAgentErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::MissingVersionError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::NoUpdateAvailableError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::ServerError(_inner) => _inner.fmt(f), - UpdateContainerAgentErrorKind::UpdateInProgressError(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::MissingVersionException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::NoUpdateAvailableException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateContainerAgentErrorKind::UpdateInProgressException(_inner) => _inner.fmt(f), UpdateContainerAgentErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4929,53 +5129,59 @@ impl UpdateContainerAgentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateContainerAgentErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateContainerAgentErrorKind::ClientException(_) + ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerAgentErrorKind::ClusterNotFoundError(_) + UpdateContainerAgentErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerAgentErrorKind::InvalidParameterError(_) + UpdateContainerAgentErrorKind::InvalidParameterException(_) ) } - pub fn is_missing_version_error(&self) -> bool { + pub fn is_missing_version_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerAgentErrorKind::MissingVersionError(_) + UpdateContainerAgentErrorKind::MissingVersionException(_) ) } - pub fn is_no_update_available_error(&self) -> bool { + pub fn is_no_update_available_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerAgentErrorKind::NoUpdateAvailableError(_) + UpdateContainerAgentErrorKind::NoUpdateAvailableException(_) ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateContainerAgentErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateContainerAgentErrorKind::ServerException(_) + ) } - pub fn is_update_in_progress_error(&self) -> bool { + pub fn is_update_in_progress_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerAgentErrorKind::UpdateInProgressError(_) + UpdateContainerAgentErrorKind::UpdateInProgressException(_) ) } } impl std::error::Error for UpdateContainerAgentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContainerAgentErrorKind::ClientError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::MissingVersionError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::NoUpdateAvailableError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::ServerError(_inner) => Some(_inner), - UpdateContainerAgentErrorKind::UpdateInProgressError(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::ClientException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::MissingVersionException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::NoUpdateAvailableException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::ServerException(_inner) => Some(_inner), + UpdateContainerAgentErrorKind::UpdateInProgressException(_inner) => Some(_inner), UpdateContainerAgentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4990,20 +5196,24 @@ pub struct UpdateContainerInstancesStateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContainerInstancesStateErrorKind { - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateContainerInstancesStateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContainerInstancesStateErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateContainerInstancesStateErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateContainerInstancesStateErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateContainerInstancesStateErrorKind::ServerError(_inner) => _inner.fmt(f), + UpdateContainerInstancesStateErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateContainerInstancesStateErrorKind::ClusterNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateContainerInstancesStateErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + UpdateContainerInstancesStateErrorKind::ServerException(_inner) => _inner.fmt(f), UpdateContainerInstancesStateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5052,38 +5262,42 @@ impl UpdateContainerInstancesStateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerInstancesStateErrorKind::ClientError(_) + UpdateContainerInstancesStateErrorKind::ClientException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerInstancesStateErrorKind::ClusterNotFoundError(_) + UpdateContainerInstancesStateErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerInstancesStateErrorKind::InvalidParameterError(_) + UpdateContainerInstancesStateErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - UpdateContainerInstancesStateErrorKind::ServerError(_) + UpdateContainerInstancesStateErrorKind::ServerException(_) ) } } impl std::error::Error for UpdateContainerInstancesStateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContainerInstancesStateErrorKind::ClientError(_inner) => Some(_inner), - UpdateContainerInstancesStateErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateContainerInstancesStateErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateContainerInstancesStateErrorKind::ServerError(_inner) => Some(_inner), + UpdateContainerInstancesStateErrorKind::ClientException(_inner) => Some(_inner), + UpdateContainerInstancesStateErrorKind::ClusterNotFoundException(_inner) => { + Some(_inner) + } + UpdateContainerInstancesStateErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + UpdateContainerInstancesStateErrorKind::ServerException(_inner) => Some(_inner), UpdateContainerInstancesStateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5098,34 +5312,34 @@ pub struct UpdateServiceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateServiceErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - PlatformTaskDefinitionIncompatibilityError( - crate::error::PlatformTaskDefinitionIncompatibilityError, + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + PlatformTaskDefinitionIncompatibilityException( + crate::error::PlatformTaskDefinitionIncompatibilityException, ), - PlatformUnknownError(crate::error::PlatformUnknownError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), + PlatformUnknownException(crate::error::PlatformUnknownException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateServiceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateServiceErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + UpdateServiceErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { _inner.fmt(f) } - UpdateServiceErrorKind::PlatformUnknownError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::ServerError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - UpdateServiceErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::PlatformUnknownException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::ServiceNotActiveException(_inner) => _inner.fmt(f), + UpdateServiceErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), UpdateServiceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5174,51 +5388,66 @@ impl UpdateServiceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, UpdateServiceErrorKind::AccessDeniedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateServiceErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateServiceErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateServiceErrorKind::InvalidParameterException(_) + ) } - pub fn is_platform_task_definition_incompatibility_error(&self) -> bool { + pub fn is_platform_task_definition_incompatibility_exception(&self) -> bool { matches!( &self.kind, - UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_) + UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_) ) } - pub fn is_platform_unknown_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::PlatformUnknownError(_)) + pub fn is_platform_unknown_exception(&self) -> bool { + matches!( + &self.kind, + UpdateServiceErrorKind::PlatformUnknownException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateServiceErrorKind::ServerException(_)) } - pub fn is_service_not_active_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::ServiceNotActiveError(_)) + pub fn is_service_not_active_exception(&self) -> bool { + matches!( + &self.kind, + UpdateServiceErrorKind::ServiceNotActiveException(_) + ) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateServiceErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateServiceErrorKind::ServiceNotFoundException(_) + ) } } impl std::error::Error for UpdateServiceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateServiceErrorKind::AccessDeniedError(_inner) => Some(_inner), - UpdateServiceErrorKind::ClientError(_inner) => Some(_inner), - UpdateServiceErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateServiceErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(_inner) => { + UpdateServiceErrorKind::AccessDeniedException(_inner) => Some(_inner), + UpdateServiceErrorKind::ClientException(_inner) => Some(_inner), + UpdateServiceErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateServiceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(_inner) => { Some(_inner) } - UpdateServiceErrorKind::PlatformUnknownError(_inner) => Some(_inner), - UpdateServiceErrorKind::ServerError(_inner) => Some(_inner), - UpdateServiceErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - UpdateServiceErrorKind::ServiceNotFoundError(_inner) => Some(_inner), + UpdateServiceErrorKind::PlatformUnknownException(_inner) => Some(_inner), + UpdateServiceErrorKind::ServerException(_inner) => Some(_inner), + UpdateServiceErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + UpdateServiceErrorKind::ServiceNotFoundException(_inner) => Some(_inner), UpdateServiceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5233,30 +5462,36 @@ pub struct UpdateServicePrimaryTaskSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateServicePrimaryTaskSetErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - TaskSetNotFoundError(crate::error::TaskSetNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + TaskSetNotFoundException(crate::error::TaskSetNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateServicePrimaryTaskSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateServicePrimaryTaskSetErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::ServerError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundError(_inner) => _inner.fmt(f), - UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + UpdateServicePrimaryTaskSetErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveException(_inner) => { + _inner.fmt(f) + } + UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundException(_inner) => _inner.fmt(f), + UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureException(_inner) => { + _inner.fmt(f) + } UpdateServicePrimaryTaskSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5305,73 +5540,75 @@ impl UpdateServicePrimaryTaskSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { + pub fn is_access_denied_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::AccessDeniedError(_) + UpdateServicePrimaryTaskSetErrorKind::AccessDeniedException(_) ) } - pub fn is_client_error(&self) -> bool { + pub fn is_client_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::ClientError(_) + UpdateServicePrimaryTaskSetErrorKind::ClientException(_) ) } - pub fn is_cluster_not_found_error(&self) -> bool { + pub fn is_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundError(_) + UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::InvalidParameterError(_) + UpdateServicePrimaryTaskSetErrorKind::InvalidParameterException(_) ) } - pub fn is_server_error(&self) -> bool { + pub fn is_server_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::ServerError(_) + UpdateServicePrimaryTaskSetErrorKind::ServerException(_) ) } - pub fn is_service_not_active_error(&self) -> bool { + pub fn is_service_not_active_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveError(_) + UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveException(_) ) } - pub fn is_service_not_found_error(&self) -> bool { + pub fn is_service_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundError(_) + UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundException(_) ) } - pub fn is_task_set_not_found_error(&self) -> bool { + pub fn is_task_set_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundError(_) + UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundException(_) ) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureError(_) + UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for UpdateServicePrimaryTaskSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateServicePrimaryTaskSetErrorKind::AccessDeniedError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::ClientError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::ServerError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundError(_inner) => Some(_inner), - UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::AccessDeniedException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::ClientException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::ServerException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundException(_inner) => Some(_inner), + UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureException(_inner) => { + Some(_inner) + } UpdateServicePrimaryTaskSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5386,30 +5623,30 @@ pub struct UpdateTaskSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateTaskSetErrorKind { - AccessDeniedError(crate::error::AccessDeniedError), - ClientError(crate::error::ClientError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - TaskSetNotFoundError(crate::error::TaskSetNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), + AccessDeniedException(crate::error::AccessDeniedException), + ClientException(crate::error::ClientException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + TaskSetNotFoundException(crate::error::TaskSetNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateTaskSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateTaskSetErrorKind::AccessDeniedError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::ClientError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::ClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::ServerError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::ServiceNotActiveError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::ServiceNotFoundError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::TaskSetNotFoundError(_inner) => _inner.fmt(f), - UpdateTaskSetErrorKind::UnsupportedFeatureError(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::AccessDeniedException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::ClusterNotFoundException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::ServiceNotActiveException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::ServiceNotFoundException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::TaskSetNotFoundException(_inner) => _inner.fmt(f), + UpdateTaskSetErrorKind::UnsupportedFeatureException(_inner) => _inner.fmt(f), UpdateTaskSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5458,49 +5695,64 @@ impl UpdateTaskSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_access_denied_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::AccessDeniedError(_)) + pub fn is_access_denied_exception(&self) -> bool { + matches!(&self.kind, UpdateTaskSetErrorKind::AccessDeniedException(_)) } - pub fn is_client_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::ClientError(_)) + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateTaskSetErrorKind::ClientException(_)) } - pub fn is_cluster_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::ClusterNotFoundError(_)) + pub fn is_cluster_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTaskSetErrorKind::ClusterNotFoundException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTaskSetErrorKind::InvalidParameterException(_) + ) } - pub fn is_server_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::ServerError(_)) + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateTaskSetErrorKind::ServerException(_)) } - pub fn is_service_not_active_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::ServiceNotActiveError(_)) + pub fn is_service_not_active_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTaskSetErrorKind::ServiceNotActiveException(_) + ) } - pub fn is_service_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::ServiceNotFoundError(_)) + pub fn is_service_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTaskSetErrorKind::ServiceNotFoundException(_) + ) } - pub fn is_task_set_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateTaskSetErrorKind::TaskSetNotFoundError(_)) + pub fn is_task_set_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTaskSetErrorKind::TaskSetNotFoundException(_) + ) } - pub fn is_unsupported_feature_error(&self) -> bool { + pub fn is_unsupported_feature_exception(&self) -> bool { matches!( &self.kind, - UpdateTaskSetErrorKind::UnsupportedFeatureError(_) + UpdateTaskSetErrorKind::UnsupportedFeatureException(_) ) } } impl std::error::Error for UpdateTaskSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateTaskSetErrorKind::AccessDeniedError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::ClientError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::ClusterNotFoundError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::ServerError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::ServiceNotActiveError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::ServiceNotFoundError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::TaskSetNotFoundError(_inner) => Some(_inner), - UpdateTaskSetErrorKind::UnsupportedFeatureError(_inner) => Some(_inner), + UpdateTaskSetErrorKind::AccessDeniedException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::ClientException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::ClusterNotFoundException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::ServerException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::ServiceNotActiveException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::ServiceNotFoundException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::TaskSetNotFoundException(_inner) => Some(_inner), + UpdateTaskSetErrorKind::UnsupportedFeatureException(_inner) => Some(_inner), UpdateTaskSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5508,37 +5760,35 @@ impl std::error::Error for UpdateTaskSetError { ///

            The specified task is not supported in this Region.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedFeatureError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedFeatureException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedFeatureError { +impl std::fmt::Debug for UnsupportedFeatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedFeatureError"); + let mut formatter = f.debug_struct("UnsupportedFeatureException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedFeatureError { +impl UnsupportedFeatureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedFeatureError { +impl std::fmt::Display for UnsupportedFeatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnsupportedFeatureError [UnsupportedFeatureException]")?; + write!(f, "UnsupportedFeatureException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for UnsupportedFeatureError {} -/// See [`UnsupportedFeatureError`](crate::error::UnsupportedFeatureError) -pub mod unsupported_feature_error { - /// A builder for [`UnsupportedFeatureError`](crate::error::UnsupportedFeatureError) +impl std::error::Error for UnsupportedFeatureException {} +/// See [`UnsupportedFeatureException`](crate::error::UnsupportedFeatureException) +pub mod unsupported_feature_exception { + /// A builder for [`UnsupportedFeatureException`](crate::error::UnsupportedFeatureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5553,18 +5803,18 @@ pub mod unsupported_feature_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedFeatureError`](crate::error::UnsupportedFeatureError) - pub fn build(self) -> crate::error::UnsupportedFeatureError { - crate::error::UnsupportedFeatureError { + /// Consumes the builder and constructs a [`UnsupportedFeatureException`](crate::error::UnsupportedFeatureException) + pub fn build(self) -> crate::error::UnsupportedFeatureException { + crate::error::UnsupportedFeatureException { message: self.message, } } } } -impl UnsupportedFeatureError { - /// Creates a new builder-style object to manufacture [`UnsupportedFeatureError`](crate::error::UnsupportedFeatureError) - pub fn builder() -> crate::error::unsupported_feature_error::Builder { - crate::error::unsupported_feature_error::Builder::default() +impl UnsupportedFeatureException { + /// Creates a new builder-style object to manufacture [`UnsupportedFeatureException`](crate::error::UnsupportedFeatureException) + pub fn builder() -> crate::error::unsupported_feature_exception::Builder { + crate::error::unsupported_feature_exception::Builder::default() } } @@ -5572,37 +5822,35 @@ impl UnsupportedFeatureError { /// DescribeTaskSets. Task sets are specific to each cluster, service /// and Region.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TaskSetNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TaskSetNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for TaskSetNotFoundError { +impl std::fmt::Debug for TaskSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TaskSetNotFoundError"); + let mut formatter = f.debug_struct("TaskSetNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl TaskSetNotFoundError { +impl TaskSetNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TaskSetNotFoundError { +impl std::fmt::Display for TaskSetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TaskSetNotFoundError [TaskSetNotFoundException]")?; + write!(f, "TaskSetNotFoundException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for TaskSetNotFoundError {} -/// See [`TaskSetNotFoundError`](crate::error::TaskSetNotFoundError) -pub mod task_set_not_found_error { - /// A builder for [`TaskSetNotFoundError`](crate::error::TaskSetNotFoundError) +impl std::error::Error for TaskSetNotFoundException {} +/// See [`TaskSetNotFoundException`](crate::error::TaskSetNotFoundException) +pub mod task_set_not_found_exception { + /// A builder for [`TaskSetNotFoundException`](crate::error::TaskSetNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5617,18 +5865,18 @@ pub mod task_set_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`TaskSetNotFoundError`](crate::error::TaskSetNotFoundError) - pub fn build(self) -> crate::error::TaskSetNotFoundError { - crate::error::TaskSetNotFoundError { + /// Consumes the builder and constructs a [`TaskSetNotFoundException`](crate::error::TaskSetNotFoundException) + pub fn build(self) -> crate::error::TaskSetNotFoundException { + crate::error::TaskSetNotFoundException { message: self.message, } } } } -impl TaskSetNotFoundError { - /// Creates a new builder-style object to manufacture [`TaskSetNotFoundError`](crate::error::TaskSetNotFoundError) - pub fn builder() -> crate::error::task_set_not_found_error::Builder { - crate::error::task_set_not_found_error::Builder::default() +impl TaskSetNotFoundException { + /// Creates a new builder-style object to manufacture [`TaskSetNotFoundException`](crate::error::TaskSetNotFoundException) + pub fn builder() -> crate::error::task_set_not_found_exception::Builder { + crate::error::task_set_not_found_exception::Builder::default() } } @@ -5636,37 +5884,35 @@ impl TaskSetNotFoundError { /// ListServices. Amazon ECS services are cluster-specific and /// Region-specific.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceNotFoundError { +impl std::fmt::Debug for ServiceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceNotFoundError"); + let mut formatter = f.debug_struct("ServiceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceNotFoundError { +impl ServiceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceNotFoundError { +impl std::fmt::Display for ServiceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceNotFoundError [ServiceNotFoundException]")?; + write!(f, "ServiceNotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ServiceNotFoundError {} -/// See [`ServiceNotFoundError`](crate::error::ServiceNotFoundError) -pub mod service_not_found_error { - /// A builder for [`ServiceNotFoundError`](crate::error::ServiceNotFoundError) +impl std::error::Error for ServiceNotFoundException {} +/// See [`ServiceNotFoundException`](crate::error::ServiceNotFoundException) +pub mod service_not_found_exception { + /// A builder for [`ServiceNotFoundException`](crate::error::ServiceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5681,55 +5927,53 @@ pub mod service_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceNotFoundError`](crate::error::ServiceNotFoundError) - pub fn build(self) -> crate::error::ServiceNotFoundError { - crate::error::ServiceNotFoundError { + /// Consumes the builder and constructs a [`ServiceNotFoundException`](crate::error::ServiceNotFoundException) + pub fn build(self) -> crate::error::ServiceNotFoundException { + crate::error::ServiceNotFoundException { message: self.message, } } } } -impl ServiceNotFoundError { - /// Creates a new builder-style object to manufacture [`ServiceNotFoundError`](crate::error::ServiceNotFoundError) - pub fn builder() -> crate::error::service_not_found_error::Builder { - crate::error::service_not_found_error::Builder::default() +impl ServiceNotFoundException { + /// Creates a new builder-style object to manufacture [`ServiceNotFoundException`](crate::error::ServiceNotFoundException) + pub fn builder() -> crate::error::service_not_found_exception::Builder { + crate::error::service_not_found_exception::Builder::default() } } ///

            The specified service is not active. You can't update a service that is inactive. If /// you have previously deleted a service, you can re-create it with CreateService.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceNotActiveError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceNotActiveException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceNotActiveError { +impl std::fmt::Debug for ServiceNotActiveException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceNotActiveError"); + let mut formatter = f.debug_struct("ServiceNotActiveException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceNotActiveError { +impl ServiceNotActiveException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceNotActiveError { +impl std::fmt::Display for ServiceNotActiveException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceNotActiveError [ServiceNotActiveException]")?; + write!(f, "ServiceNotActiveException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ServiceNotActiveError {} -/// See [`ServiceNotActiveError`](crate::error::ServiceNotActiveError) -pub mod service_not_active_error { - /// A builder for [`ServiceNotActiveError`](crate::error::ServiceNotActiveError) +impl std::error::Error for ServiceNotActiveException {} +/// See [`ServiceNotActiveException`](crate::error::ServiceNotActiveException) +pub mod service_not_active_exception { + /// A builder for [`ServiceNotActiveException`](crate::error::ServiceNotActiveException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5744,54 +5988,52 @@ pub mod service_not_active_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceNotActiveError`](crate::error::ServiceNotActiveError) - pub fn build(self) -> crate::error::ServiceNotActiveError { - crate::error::ServiceNotActiveError { + /// Consumes the builder and constructs a [`ServiceNotActiveException`](crate::error::ServiceNotActiveException) + pub fn build(self) -> crate::error::ServiceNotActiveException { + crate::error::ServiceNotActiveException { message: self.message, } } } } -impl ServiceNotActiveError { - /// Creates a new builder-style object to manufacture [`ServiceNotActiveError`](crate::error::ServiceNotActiveError) - pub fn builder() -> crate::error::service_not_active_error::Builder { - crate::error::service_not_active_error::Builder::default() +impl ServiceNotActiveException { + /// Creates a new builder-style object to manufacture [`ServiceNotActiveException`](crate::error::ServiceNotActiveException) + pub fn builder() -> crate::error::service_not_active_exception::Builder { + crate::error::service_not_active_exception::Builder::default() } } ///

            These errors are usually caused by a server issue.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServerError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServerException { pub message: std::option::Option, } -impl std::fmt::Debug for ServerError { +impl std::fmt::Debug for ServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServerError"); + let mut formatter = f.debug_struct("ServerException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServerError { +impl ServerException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServerError { +impl std::fmt::Display for ServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServerError [ServerException]")?; + write!(f, "ServerException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ServerError {} -/// See [`ServerError`](crate::error::ServerError) -pub mod server_error { - /// A builder for [`ServerError`](crate::error::ServerError) +impl std::error::Error for ServerException {} +/// See [`ServerException`](crate::error::ServerException) +pub mod server_exception { + /// A builder for [`ServerException`](crate::error::ServerException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5806,55 +6048,53 @@ pub mod server_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServerError`](crate::error::ServerError) - pub fn build(self) -> crate::error::ServerError { - crate::error::ServerError { + /// Consumes the builder and constructs a [`ServerException`](crate::error::ServerException) + pub fn build(self) -> crate::error::ServerException { + crate::error::ServerException { message: self.message, } } } } -impl ServerError { - /// Creates a new builder-style object to manufacture [`ServerError`](crate::error::ServerError) - pub fn builder() -> crate::error::server_error::Builder { - crate::error::server_error::Builder::default() +impl ServerException { + /// Creates a new builder-style object to manufacture [`ServerException`](crate::error::ServerException) + pub fn builder() -> crate::error::server_exception::Builder { + crate::error::server_exception::Builder::default() } } ///

            The specified parameter is invalid. Review the available parameters for the API /// request.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterError { +impl std::fmt::Debug for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterError"); + let mut formatter = f.debug_struct("InvalidParameterException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterError { +impl InvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterError { +impl std::fmt::Display for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidParameterError [InvalidParameterException]")?; + write!(f, "InvalidParameterException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for InvalidParameterError {} -/// See [`InvalidParameterError`](crate::error::InvalidParameterError) -pub mod invalid_parameter_error { - /// A builder for [`InvalidParameterError`](crate::error::InvalidParameterError) +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5869,55 +6109,53 @@ pub mod invalid_parameter_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn build(self) -> crate::error::InvalidParameterError { - crate::error::InvalidParameterError { + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { message: self.message, } } } } -impl InvalidParameterError { - /// Creates a new builder-style object to manufacture [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn builder() -> crate::error::invalid_parameter_error::Builder { - crate::error::invalid_parameter_error::Builder::default() +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() } } ///

            The specified cluster could not be found. You can view your available clusters with /// ListClusters. Amazon ECS clusters are Region-specific.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClusterNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClusterNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ClusterNotFoundError { +impl std::fmt::Debug for ClusterNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClusterNotFoundError"); + let mut formatter = f.debug_struct("ClusterNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClusterNotFoundError { +impl ClusterNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClusterNotFoundError { +impl std::fmt::Display for ClusterNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ClusterNotFoundError [ClusterNotFoundException]")?; + write!(f, "ClusterNotFoundException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for ClusterNotFoundError {} -/// See [`ClusterNotFoundError`](crate::error::ClusterNotFoundError) -pub mod cluster_not_found_error { - /// A builder for [`ClusterNotFoundError`](crate::error::ClusterNotFoundError) +impl std::error::Error for ClusterNotFoundException {} +/// See [`ClusterNotFoundException`](crate::error::ClusterNotFoundException) +pub mod cluster_not_found_exception { + /// A builder for [`ClusterNotFoundException`](crate::error::ClusterNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5932,18 +6170,18 @@ pub mod cluster_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClusterNotFoundError`](crate::error::ClusterNotFoundError) - pub fn build(self) -> crate::error::ClusterNotFoundError { - crate::error::ClusterNotFoundError { + /// Consumes the builder and constructs a [`ClusterNotFoundException`](crate::error::ClusterNotFoundException) + pub fn build(self) -> crate::error::ClusterNotFoundException { + crate::error::ClusterNotFoundException { message: self.message, } } } } -impl ClusterNotFoundError { - /// Creates a new builder-style object to manufacture [`ClusterNotFoundError`](crate::error::ClusterNotFoundError) - pub fn builder() -> crate::error::cluster_not_found_error::Builder { - crate::error::cluster_not_found_error::Builder::default() +impl ClusterNotFoundException { + /// Creates a new builder-style object to manufacture [`ClusterNotFoundException`](crate::error::ClusterNotFoundException) + pub fn builder() -> crate::error::cluster_not_found_exception::Builder { + crate::error::cluster_not_found_exception::Builder::default() } } @@ -5951,37 +6189,35 @@ impl ClusterNotFoundError { /// resource on behalf of a user that doesn't have permissions to use the action or /// resource, or specifying an identifier that is not valid.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClientError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClientException { pub message: std::option::Option, } -impl std::fmt::Debug for ClientError { +impl std::fmt::Debug for ClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClientError"); + let mut formatter = f.debug_struct("ClientException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClientError { +impl ClientException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClientError { +impl std::fmt::Display for ClientException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ClientError [ClientException]")?; + write!(f, "ClientException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for ClientError {} -/// See [`ClientError`](crate::error::ClientError) -pub mod client_error { - /// A builder for [`ClientError`](crate::error::ClientError) +impl std::error::Error for ClientException {} +/// See [`ClientException`](crate::error::ClientException) +pub mod client_exception { + /// A builder for [`ClientException`](crate::error::ClientException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5996,54 +6232,52 @@ pub mod client_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClientError`](crate::error::ClientError) - pub fn build(self) -> crate::error::ClientError { - crate::error::ClientError { + /// Consumes the builder and constructs a [`ClientException`](crate::error::ClientException) + pub fn build(self) -> crate::error::ClientException { + crate::error::ClientException { message: self.message, } } } } -impl ClientError { - /// Creates a new builder-style object to manufacture [`ClientError`](crate::error::ClientError) - pub fn builder() -> crate::error::client_error::Builder { - crate::error::client_error::Builder::default() +impl ClientException { + /// Creates a new builder-style object to manufacture [`ClientException`](crate::error::ClientException) + pub fn builder() -> crate::error::client_exception::Builder { + crate::error::client_exception::Builder::default() } } ///

            You do not have authorization to perform the requested action.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AccessDeniedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AccessDeniedException { pub message: std::option::Option, } -impl std::fmt::Debug for AccessDeniedError { +impl std::fmt::Debug for AccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AccessDeniedError"); + let mut formatter = f.debug_struct("AccessDeniedException"); formatter.field("message", &self.message); formatter.finish() } } -impl AccessDeniedError { +impl AccessDeniedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AccessDeniedError { +impl std::fmt::Display for AccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AccessDeniedError [AccessDeniedException]")?; + write!(f, "AccessDeniedException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for AccessDeniedError {} -/// See [`AccessDeniedError`](crate::error::AccessDeniedError) -pub mod access_denied_error { - /// A builder for [`AccessDeniedError`](crate::error::AccessDeniedError) +impl std::error::Error for AccessDeniedException {} +/// See [`AccessDeniedException`](crate::error::AccessDeniedException) +pub mod access_denied_exception { + /// A builder for [`AccessDeniedException`](crate::error::AccessDeniedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6058,54 +6292,52 @@ pub mod access_denied_error { self.message = input; self } - /// Consumes the builder and constructs a [`AccessDeniedError`](crate::error::AccessDeniedError) - pub fn build(self) -> crate::error::AccessDeniedError { - crate::error::AccessDeniedError { + /// Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException) + pub fn build(self) -> crate::error::AccessDeniedException { + crate::error::AccessDeniedException { message: self.message, } } } } -impl AccessDeniedError { - /// Creates a new builder-style object to manufacture [`AccessDeniedError`](crate::error::AccessDeniedError) - pub fn builder() -> crate::error::access_denied_error::Builder { - crate::error::access_denied_error::Builder::default() +impl AccessDeniedException { + /// Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException) + pub fn builder() -> crate::error::access_denied_exception::Builder { + crate::error::access_denied_exception::Builder::default() } } ///

            The specified platform version does not exist.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PlatformUnknownError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PlatformUnknownException { pub message: std::option::Option, } -impl std::fmt::Debug for PlatformUnknownError { +impl std::fmt::Debug for PlatformUnknownException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PlatformUnknownError"); + let mut formatter = f.debug_struct("PlatformUnknownException"); formatter.field("message", &self.message); formatter.finish() } } -impl PlatformUnknownError { +impl PlatformUnknownException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PlatformUnknownError { +impl std::fmt::Display for PlatformUnknownException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PlatformUnknownError [PlatformUnknownException]")?; + write!(f, "PlatformUnknownException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for PlatformUnknownError {} -/// See [`PlatformUnknownError`](crate::error::PlatformUnknownError) -pub mod platform_unknown_error { - /// A builder for [`PlatformUnknownError`](crate::error::PlatformUnknownError) +impl std::error::Error for PlatformUnknownException {} +/// See [`PlatformUnknownException`](crate::error::PlatformUnknownException) +pub mod platform_unknown_exception { + /// A builder for [`PlatformUnknownException`](crate::error::PlatformUnknownException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6120,55 +6352,53 @@ pub mod platform_unknown_error { self.message = input; self } - /// Consumes the builder and constructs a [`PlatformUnknownError`](crate::error::PlatformUnknownError) - pub fn build(self) -> crate::error::PlatformUnknownError { - crate::error::PlatformUnknownError { + /// Consumes the builder and constructs a [`PlatformUnknownException`](crate::error::PlatformUnknownException) + pub fn build(self) -> crate::error::PlatformUnknownException { + crate::error::PlatformUnknownException { message: self.message, } } } } -impl PlatformUnknownError { - /// Creates a new builder-style object to manufacture [`PlatformUnknownError`](crate::error::PlatformUnknownError) - pub fn builder() -> crate::error::platform_unknown_error::Builder { - crate::error::platform_unknown_error::Builder::default() +impl PlatformUnknownException { + /// Creates a new builder-style object to manufacture [`PlatformUnknownException`](crate::error::PlatformUnknownException) + pub fn builder() -> crate::error::platform_unknown_exception::Builder { + crate::error::platform_unknown_exception::Builder::default() } } ///

            The specified platform version does not satisfy the task definition's required /// capabilities.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PlatformTaskDefinitionIncompatibilityError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PlatformTaskDefinitionIncompatibilityException { pub message: std::option::Option, } -impl std::fmt::Debug for PlatformTaskDefinitionIncompatibilityError { +impl std::fmt::Debug for PlatformTaskDefinitionIncompatibilityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PlatformTaskDefinitionIncompatibilityError"); + let mut formatter = f.debug_struct("PlatformTaskDefinitionIncompatibilityException"); formatter.field("message", &self.message); formatter.finish() } } -impl PlatformTaskDefinitionIncompatibilityError { +impl PlatformTaskDefinitionIncompatibilityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PlatformTaskDefinitionIncompatibilityError { +impl std::fmt::Display for PlatformTaskDefinitionIncompatibilityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PlatformTaskDefinitionIncompatibilityError [PlatformTaskDefinitionIncompatibilityException]")?; + write!(f, "PlatformTaskDefinitionIncompatibilityException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for PlatformTaskDefinitionIncompatibilityError {} -/// See [`PlatformTaskDefinitionIncompatibilityError`](crate::error::PlatformTaskDefinitionIncompatibilityError) -pub mod platform_task_definition_incompatibility_error { - /// A builder for [`PlatformTaskDefinitionIncompatibilityError`](crate::error::PlatformTaskDefinitionIncompatibilityError) +impl std::error::Error for PlatformTaskDefinitionIncompatibilityException {} +/// See [`PlatformTaskDefinitionIncompatibilityException`](crate::error::PlatformTaskDefinitionIncompatibilityException) +pub mod platform_task_definition_incompatibility_exception { + /// A builder for [`PlatformTaskDefinitionIncompatibilityException`](crate::error::PlatformTaskDefinitionIncompatibilityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6183,18 +6413,18 @@ pub mod platform_task_definition_incompatibility_error { self.message = input; self } - /// Consumes the builder and constructs a [`PlatformTaskDefinitionIncompatibilityError`](crate::error::PlatformTaskDefinitionIncompatibilityError) - pub fn build(self) -> crate::error::PlatformTaskDefinitionIncompatibilityError { - crate::error::PlatformTaskDefinitionIncompatibilityError { + /// Consumes the builder and constructs a [`PlatformTaskDefinitionIncompatibilityException`](crate::error::PlatformTaskDefinitionIncompatibilityException) + pub fn build(self) -> crate::error::PlatformTaskDefinitionIncompatibilityException { + crate::error::PlatformTaskDefinitionIncompatibilityException { message: self.message, } } } } -impl PlatformTaskDefinitionIncompatibilityError { - /// Creates a new builder-style object to manufacture [`PlatformTaskDefinitionIncompatibilityError`](crate::error::PlatformTaskDefinitionIncompatibilityError) - pub fn builder() -> crate::error::platform_task_definition_incompatibility_error::Builder { - crate::error::platform_task_definition_incompatibility_error::Builder::default() +impl PlatformTaskDefinitionIncompatibilityException { + /// Creates a new builder-style object to manufacture [`PlatformTaskDefinitionIncompatibilityException`](crate::error::PlatformTaskDefinitionIncompatibilityException) + pub fn builder() -> crate::error::platform_task_definition_incompatibility_exception::Builder { + crate::error::platform_task_definition_incompatibility_exception::Builder::default() } } @@ -6204,37 +6434,35 @@ impl PlatformTaskDefinitionIncompatibilityError { /// process can get stuck in that state. However, when the agent reconnects, it resumes /// where it stopped previously.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInProgressError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateInProgressException { pub message: std::option::Option, } -impl std::fmt::Debug for UpdateInProgressError { +impl std::fmt::Debug for UpdateInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInProgressError"); + let mut formatter = f.debug_struct("UpdateInProgressException"); formatter.field("message", &self.message); formatter.finish() } } -impl UpdateInProgressError { +impl UpdateInProgressException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UpdateInProgressError { +impl std::fmt::Display for UpdateInProgressException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UpdateInProgressError [UpdateInProgressException]")?; + write!(f, "UpdateInProgressException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for UpdateInProgressError {} -/// See [`UpdateInProgressError`](crate::error::UpdateInProgressError) -pub mod update_in_progress_error { - /// A builder for [`UpdateInProgressError`](crate::error::UpdateInProgressError) +impl std::error::Error for UpdateInProgressException {} +/// See [`UpdateInProgressException`](crate::error::UpdateInProgressException) +pub mod update_in_progress_exception { + /// A builder for [`UpdateInProgressException`](crate::error::UpdateInProgressException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6249,18 +6477,18 @@ pub mod update_in_progress_error { self.message = input; self } - /// Consumes the builder and constructs a [`UpdateInProgressError`](crate::error::UpdateInProgressError) - pub fn build(self) -> crate::error::UpdateInProgressError { - crate::error::UpdateInProgressError { + /// Consumes the builder and constructs a [`UpdateInProgressException`](crate::error::UpdateInProgressException) + pub fn build(self) -> crate::error::UpdateInProgressException { + crate::error::UpdateInProgressException { message: self.message, } } } } -impl UpdateInProgressError { - /// Creates a new builder-style object to manufacture [`UpdateInProgressError`](crate::error::UpdateInProgressError) - pub fn builder() -> crate::error::update_in_progress_error::Builder { - crate::error::update_in_progress_error::Builder::default() +impl UpdateInProgressException { + /// Creates a new builder-style object to manufacture [`UpdateInProgressException`](crate::error::UpdateInProgressException) + pub fn builder() -> crate::error::update_in_progress_exception::Builder { + crate::error::update_in_progress_exception::Builder::default() } } @@ -6268,37 +6496,35 @@ impl UpdateInProgressError { /// agent is already running the latest version, or it is so old that there is no update /// path to the current version.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NoUpdateAvailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NoUpdateAvailableException { pub message: std::option::Option, } -impl std::fmt::Debug for NoUpdateAvailableError { +impl std::fmt::Debug for NoUpdateAvailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NoUpdateAvailableError"); + let mut formatter = f.debug_struct("NoUpdateAvailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl NoUpdateAvailableError { +impl NoUpdateAvailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NoUpdateAvailableError { +impl std::fmt::Display for NoUpdateAvailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NoUpdateAvailableError [NoUpdateAvailableException]")?; + write!(f, "NoUpdateAvailableException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for NoUpdateAvailableError {} -/// See [`NoUpdateAvailableError`](crate::error::NoUpdateAvailableError) -pub mod no_update_available_error { - /// A builder for [`NoUpdateAvailableError`](crate::error::NoUpdateAvailableError) +impl std::error::Error for NoUpdateAvailableException {} +/// See [`NoUpdateAvailableException`](crate::error::NoUpdateAvailableException) +pub mod no_update_available_exception { + /// A builder for [`NoUpdateAvailableException`](crate::error::NoUpdateAvailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6313,18 +6539,18 @@ pub mod no_update_available_error { self.message = input; self } - /// Consumes the builder and constructs a [`NoUpdateAvailableError`](crate::error::NoUpdateAvailableError) - pub fn build(self) -> crate::error::NoUpdateAvailableError { - crate::error::NoUpdateAvailableError { + /// Consumes the builder and constructs a [`NoUpdateAvailableException`](crate::error::NoUpdateAvailableException) + pub fn build(self) -> crate::error::NoUpdateAvailableException { + crate::error::NoUpdateAvailableException { message: self.message, } } } } -impl NoUpdateAvailableError { - /// Creates a new builder-style object to manufacture [`NoUpdateAvailableError`](crate::error::NoUpdateAvailableError) - pub fn builder() -> crate::error::no_update_available_error::Builder { - crate::error::no_update_available_error::Builder::default() +impl NoUpdateAvailableException { + /// Creates a new builder-style object to manufacture [`NoUpdateAvailableException`](crate::error::NoUpdateAvailableException) + pub fn builder() -> crate::error::no_update_available_exception::Builder { + crate::error::no_update_available_exception::Builder::default() } } @@ -6333,37 +6559,35 @@ impl NoUpdateAvailableError { /// could be because the agent running on the container instance is an older or custom /// version that does not use our version information.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MissingVersionError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MissingVersionException { pub message: std::option::Option, } -impl std::fmt::Debug for MissingVersionError { +impl std::fmt::Debug for MissingVersionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MissingVersionError"); + let mut formatter = f.debug_struct("MissingVersionException"); formatter.field("message", &self.message); formatter.finish() } } -impl MissingVersionError { +impl MissingVersionException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MissingVersionError { +impl std::fmt::Display for MissingVersionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "MissingVersionError [MissingVersionException]")?; + write!(f, "MissingVersionException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for MissingVersionError {} -/// See [`MissingVersionError`](crate::error::MissingVersionError) -pub mod missing_version_error { - /// A builder for [`MissingVersionError`](crate::error::MissingVersionError) +impl std::error::Error for MissingVersionException {} +/// See [`MissingVersionException`](crate::error::MissingVersionException) +pub mod missing_version_exception { + /// A builder for [`MissingVersionException`](crate::error::MissingVersionException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6378,54 +6602,52 @@ pub mod missing_version_error { self.message = input; self } - /// Consumes the builder and constructs a [`MissingVersionError`](crate::error::MissingVersionError) - pub fn build(self) -> crate::error::MissingVersionError { - crate::error::MissingVersionError { + /// Consumes the builder and constructs a [`MissingVersionException`](crate::error::MissingVersionException) + pub fn build(self) -> crate::error::MissingVersionException { + crate::error::MissingVersionException { message: self.message, } } } } -impl MissingVersionError { - /// Creates a new builder-style object to manufacture [`MissingVersionError`](crate::error::MissingVersionError) - pub fn builder() -> crate::error::missing_version_error::Builder { - crate::error::missing_version_error::Builder::default() +impl MissingVersionException { + /// Creates a new builder-style object to manufacture [`MissingVersionException`](crate::error::MissingVersionException) + pub fn builder() -> crate::error::missing_version_exception::Builder { + crate::error::missing_version_exception::Builder::default() } } ///

            The specified resource could not be found.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6440,54 +6662,52 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

            Your AWS account has been blocked. For more information, contact AWS Support.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BlockedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BlockedException { pub message: std::option::Option, } -impl std::fmt::Debug for BlockedError { +impl std::fmt::Debug for BlockedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BlockedError"); + let mut formatter = f.debug_struct("BlockedException"); formatter.field("message", &self.message); formatter.finish() } } -impl BlockedError { +impl BlockedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BlockedError { +impl std::fmt::Display for BlockedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BlockedError [BlockedException]")?; + write!(f, "BlockedException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for BlockedError {} -/// See [`BlockedError`](crate::error::BlockedError) -pub mod blocked_error { - /// A builder for [`BlockedError`](crate::error::BlockedError) +impl std::error::Error for BlockedException {} +/// See [`BlockedException`](crate::error::BlockedException) +pub mod blocked_exception { + /// A builder for [`BlockedException`](crate::error::BlockedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6502,54 +6722,52 @@ pub mod blocked_error { self.message = input; self } - /// Consumes the builder and constructs a [`BlockedError`](crate::error::BlockedError) - pub fn build(self) -> crate::error::BlockedError { - crate::error::BlockedError { + /// Consumes the builder and constructs a [`BlockedException`](crate::error::BlockedException) + pub fn build(self) -> crate::error::BlockedException { + crate::error::BlockedException { message: self.message, } } } } -impl BlockedError { - /// Creates a new builder-style object to manufacture [`BlockedError`](crate::error::BlockedError) - pub fn builder() -> crate::error::blocked_error::Builder { - crate::error::blocked_error::Builder::default() +impl BlockedException { + /// Creates a new builder-style object to manufacture [`BlockedException`](crate::error::BlockedException) + pub fn builder() -> crate::error::blocked_exception::Builder { + crate::error::blocked_exception::Builder::default() } } ///

            The specified resource is in-use and cannot be removed.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6564,18 +6782,18 @@ pub mod resource_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { message: self.message, } } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } @@ -6583,37 +6801,35 @@ impl ResourceInUseError { /// instances with ListContainerInstances. Amazon ECS container instances are /// cluster-specific and Region-specific.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TargetNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TargetNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for TargetNotFoundError { +impl std::fmt::Debug for TargetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TargetNotFoundError"); + let mut formatter = f.debug_struct("TargetNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl TargetNotFoundError { +impl TargetNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TargetNotFoundError { +impl std::fmt::Display for TargetNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TargetNotFoundError [TargetNotFoundException]")?; + write!(f, "TargetNotFoundException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for TargetNotFoundError {} -/// See [`TargetNotFoundError`](crate::error::TargetNotFoundError) -pub mod target_not_found_error { - /// A builder for [`TargetNotFoundError`](crate::error::TargetNotFoundError) +impl std::error::Error for TargetNotFoundException {} +/// See [`TargetNotFoundException`](crate::error::TargetNotFoundException) +pub mod target_not_found_exception { + /// A builder for [`TargetNotFoundException`](crate::error::TargetNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6628,18 +6844,18 @@ pub mod target_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`TargetNotFoundError`](crate::error::TargetNotFoundError) - pub fn build(self) -> crate::error::TargetNotFoundError { - crate::error::TargetNotFoundError { + /// Consumes the builder and constructs a [`TargetNotFoundException`](crate::error::TargetNotFoundException) + pub fn build(self) -> crate::error::TargetNotFoundException { + crate::error::TargetNotFoundException { message: self.message, } } } } -impl TargetNotFoundError { - /// Creates a new builder-style object to manufacture [`TargetNotFoundError`](crate::error::TargetNotFoundError) - pub fn builder() -> crate::error::target_not_found_error::Builder { - crate::error::target_not_found_error::Builder::default() +impl TargetNotFoundException { + /// Creates a new builder-style object to manufacture [`TargetNotFoundException`](crate::error::TargetNotFoundException) + pub fn builder() -> crate::error::target_not_found_exception::Builder { + crate::error::target_not_found_exception::Builder::default() } } @@ -6647,40 +6863,35 @@ impl TargetNotFoundError { /// a resource with ListAttributes. You can remove existing attributes on /// a resource with DeleteAttributes.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AttributeLimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AttributeLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for AttributeLimitExceededError { +impl std::fmt::Debug for AttributeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AttributeLimitExceededError"); + let mut formatter = f.debug_struct("AttributeLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl AttributeLimitExceededError { +impl AttributeLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AttributeLimitExceededError { +impl std::fmt::Display for AttributeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AttributeLimitExceededError [AttributeLimitExceededException]" - )?; + write!(f, "AttributeLimitExceededException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for AttributeLimitExceededError {} -/// See [`AttributeLimitExceededError`](crate::error::AttributeLimitExceededError) -pub mod attribute_limit_exceeded_error { - /// A builder for [`AttributeLimitExceededError`](crate::error::AttributeLimitExceededError) +impl std::error::Error for AttributeLimitExceededException {} +/// See [`AttributeLimitExceededException`](crate::error::AttributeLimitExceededException) +pub mod attribute_limit_exceeded_exception { + /// A builder for [`AttributeLimitExceededException`](crate::error::AttributeLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6695,55 +6906,53 @@ pub mod attribute_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`AttributeLimitExceededError`](crate::error::AttributeLimitExceededError) - pub fn build(self) -> crate::error::AttributeLimitExceededError { - crate::error::AttributeLimitExceededError { + /// Consumes the builder and constructs a [`AttributeLimitExceededException`](crate::error::AttributeLimitExceededException) + pub fn build(self) -> crate::error::AttributeLimitExceededException { + crate::error::AttributeLimitExceededException { message: self.message, } } } } -impl AttributeLimitExceededError { - /// Creates a new builder-style object to manufacture [`AttributeLimitExceededError`](crate::error::AttributeLimitExceededError) - pub fn builder() -> crate::error::attribute_limit_exceeded_error::Builder { - crate::error::attribute_limit_exceeded_error::Builder::default() +impl AttributeLimitExceededException { + /// Creates a new builder-style object to manufacture [`AttributeLimitExceededException`](crate::error::AttributeLimitExceededException) + pub fn builder() -> crate::error::attribute_limit_exceeded_exception::Builder { + crate::error::attribute_limit_exceeded_exception::Builder::default() } } ///

            The target container is not properly configured with the execute command agent or the /// container is no longer active or running.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TargetNotConnectedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TargetNotConnectedException { pub message: std::option::Option, } -impl std::fmt::Debug for TargetNotConnectedError { +impl std::fmt::Debug for TargetNotConnectedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TargetNotConnectedError"); + let mut formatter = f.debug_struct("TargetNotConnectedException"); formatter.field("message", &self.message); formatter.finish() } } -impl TargetNotConnectedError { +impl TargetNotConnectedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TargetNotConnectedError { +impl std::fmt::Display for TargetNotConnectedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TargetNotConnectedError [TargetNotConnectedException]")?; + write!(f, "TargetNotConnectedException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for TargetNotConnectedError {} -/// See [`TargetNotConnectedError`](crate::error::TargetNotConnectedError) -pub mod target_not_connected_error { - /// A builder for [`TargetNotConnectedError`](crate::error::TargetNotConnectedError) +impl std::error::Error for TargetNotConnectedException {} +/// See [`TargetNotConnectedException`](crate::error::TargetNotConnectedException) +pub mod target_not_connected_exception { + /// A builder for [`TargetNotConnectedException`](crate::error::TargetNotConnectedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6758,57 +6967,52 @@ pub mod target_not_connected_error { self.message = input; self } - /// Consumes the builder and constructs a [`TargetNotConnectedError`](crate::error::TargetNotConnectedError) - pub fn build(self) -> crate::error::TargetNotConnectedError { - crate::error::TargetNotConnectedError { + /// Consumes the builder and constructs a [`TargetNotConnectedException`](crate::error::TargetNotConnectedException) + pub fn build(self) -> crate::error::TargetNotConnectedException { + crate::error::TargetNotConnectedException { message: self.message, } } } } -impl TargetNotConnectedError { - /// Creates a new builder-style object to manufacture [`TargetNotConnectedError`](crate::error::TargetNotConnectedError) - pub fn builder() -> crate::error::target_not_connected_error::Builder { - crate::error::target_not_connected_error::Builder::default() +impl TargetNotConnectedException { + /// Creates a new builder-style object to manufacture [`TargetNotConnectedException`](crate::error::TargetNotConnectedException) + pub fn builder() -> crate::error::target_not_connected_exception::Builder { + crate::error::target_not_connected_exception::Builder::default() } } ///

            You cannot delete a cluster that has active tasks.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClusterContainsTasksError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClusterContainsTasksException { pub message: std::option::Option, } -impl std::fmt::Debug for ClusterContainsTasksError { +impl std::fmt::Debug for ClusterContainsTasksException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClusterContainsTasksError"); + let mut formatter = f.debug_struct("ClusterContainsTasksException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClusterContainsTasksError { +impl ClusterContainsTasksException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClusterContainsTasksError { +impl std::fmt::Display for ClusterContainsTasksException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ClusterContainsTasksError [ClusterContainsTasksException]" - )?; + write!(f, "ClusterContainsTasksException")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for ClusterContainsTasksError {} -/// See [`ClusterContainsTasksError`](crate::error::ClusterContainsTasksError) -pub mod cluster_contains_tasks_error { - /// A builder for [`ClusterContainsTasksError`](crate::error::ClusterContainsTasksError) +impl std::error::Error for ClusterContainsTasksException {} +/// See [`ClusterContainsTasksException`](crate::error::ClusterContainsTasksException) +pub mod cluster_contains_tasks_exception { + /// A builder for [`ClusterContainsTasksException`](crate::error::ClusterContainsTasksException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6823,18 +7027,18 @@ pub mod cluster_contains_tasks_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClusterContainsTasksError`](crate::error::ClusterContainsTasksError) - pub fn build(self) -> crate::error::ClusterContainsTasksError { - crate::error::ClusterContainsTasksError { + /// Consumes the builder and constructs a [`ClusterContainsTasksException`](crate::error::ClusterContainsTasksException) + pub fn build(self) -> crate::error::ClusterContainsTasksException { + crate::error::ClusterContainsTasksException { message: self.message, } } } } -impl ClusterContainsTasksError { - /// Creates a new builder-style object to manufacture [`ClusterContainsTasksError`](crate::error::ClusterContainsTasksError) - pub fn builder() -> crate::error::cluster_contains_tasks_error::Builder { - crate::error::cluster_contains_tasks_error::Builder::default() +impl ClusterContainsTasksException { + /// Creates a new builder-style object to manufacture [`ClusterContainsTasksException`](crate::error::ClusterContainsTasksException) + pub fn builder() -> crate::error::cluster_contains_tasks_exception::Builder { + crate::error::cluster_contains_tasks_exception::Builder::default() } } @@ -6842,40 +7046,35 @@ impl ClusterContainsTasksError { /// reduce its desired task count to 0 and then delete the service. For more information, /// see UpdateService and DeleteService.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClusterContainsServicesError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClusterContainsServicesException { pub message: std::option::Option, } -impl std::fmt::Debug for ClusterContainsServicesError { +impl std::fmt::Debug for ClusterContainsServicesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClusterContainsServicesError"); + let mut formatter = f.debug_struct("ClusterContainsServicesException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClusterContainsServicesError { +impl ClusterContainsServicesException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClusterContainsServicesError { +impl std::fmt::Display for ClusterContainsServicesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ClusterContainsServicesError [ClusterContainsServicesException]" - )?; + write!(f, "ClusterContainsServicesException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for ClusterContainsServicesError {} -/// See [`ClusterContainsServicesError`](crate::error::ClusterContainsServicesError) -pub mod cluster_contains_services_error { - /// A builder for [`ClusterContainsServicesError`](crate::error::ClusterContainsServicesError) +impl std::error::Error for ClusterContainsServicesException {} +/// See [`ClusterContainsServicesException`](crate::error::ClusterContainsServicesException) +pub mod cluster_contains_services_exception { + /// A builder for [`ClusterContainsServicesException`](crate::error::ClusterContainsServicesException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6890,18 +7089,18 @@ pub mod cluster_contains_services_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClusterContainsServicesError`](crate::error::ClusterContainsServicesError) - pub fn build(self) -> crate::error::ClusterContainsServicesError { - crate::error::ClusterContainsServicesError { + /// Consumes the builder and constructs a [`ClusterContainsServicesException`](crate::error::ClusterContainsServicesException) + pub fn build(self) -> crate::error::ClusterContainsServicesException { + crate::error::ClusterContainsServicesException { message: self.message, } } } } -impl ClusterContainsServicesError { - /// Creates a new builder-style object to manufacture [`ClusterContainsServicesError`](crate::error::ClusterContainsServicesError) - pub fn builder() -> crate::error::cluster_contains_services_error::Builder { - crate::error::cluster_contains_services_error::Builder::default() +impl ClusterContainsServicesException { + /// Creates a new builder-style object to manufacture [`ClusterContainsServicesException`](crate::error::ClusterContainsServicesException) + pub fn builder() -> crate::error::cluster_contains_services_exception::Builder { + crate::error::cluster_contains_services_exception::Builder::default() } } @@ -6909,40 +7108,35 @@ impl ClusterContainsServicesError { /// the container instances before you can delete the cluster. For more information, see /// DeregisterContainerInstance.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ClusterContainsContainerInstancesError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClusterContainsContainerInstancesException { pub message: std::option::Option, } -impl std::fmt::Debug for ClusterContainsContainerInstancesError { +impl std::fmt::Debug for ClusterContainsContainerInstancesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ClusterContainsContainerInstancesError"); + let mut formatter = f.debug_struct("ClusterContainsContainerInstancesException"); formatter.field("message", &self.message); formatter.finish() } } -impl ClusterContainsContainerInstancesError { +impl ClusterContainsContainerInstancesException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ClusterContainsContainerInstancesError { +impl std::fmt::Display for ClusterContainsContainerInstancesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ClusterContainsContainerInstancesError [ClusterContainsContainerInstancesException]" - )?; + write!(f, "ClusterContainsContainerInstancesException")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for ClusterContainsContainerInstancesError {} -/// See [`ClusterContainsContainerInstancesError`](crate::error::ClusterContainsContainerInstancesError) -pub mod cluster_contains_container_instances_error { - /// A builder for [`ClusterContainsContainerInstancesError`](crate::error::ClusterContainsContainerInstancesError) +impl std::error::Error for ClusterContainsContainerInstancesException {} +/// See [`ClusterContainsContainerInstancesException`](crate::error::ClusterContainsContainerInstancesException) +pub mod cluster_contains_container_instances_exception { + /// A builder for [`ClusterContainsContainerInstancesException`](crate::error::ClusterContainsContainerInstancesException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6957,54 +7151,52 @@ pub mod cluster_contains_container_instances_error { self.message = input; self } - /// Consumes the builder and constructs a [`ClusterContainsContainerInstancesError`](crate::error::ClusterContainsContainerInstancesError) - pub fn build(self) -> crate::error::ClusterContainsContainerInstancesError { - crate::error::ClusterContainsContainerInstancesError { + /// Consumes the builder and constructs a [`ClusterContainsContainerInstancesException`](crate::error::ClusterContainsContainerInstancesException) + pub fn build(self) -> crate::error::ClusterContainsContainerInstancesException { + crate::error::ClusterContainsContainerInstancesException { message: self.message, } } } } -impl ClusterContainsContainerInstancesError { - /// Creates a new builder-style object to manufacture [`ClusterContainsContainerInstancesError`](crate::error::ClusterContainsContainerInstancesError) - pub fn builder() -> crate::error::cluster_contains_container_instances_error::Builder { - crate::error::cluster_contains_container_instances_error::Builder::default() +impl ClusterContainsContainerInstancesException { + /// Creates a new builder-style object to manufacture [`ClusterContainsContainerInstancesException`](crate::error::ClusterContainsContainerInstancesException) + pub fn builder() -> crate::error::cluster_contains_container_instances_exception::Builder { + crate::error::cluster_contains_container_instances_exception::Builder::default() } } ///

            The limit for the resource has been exceeded.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7019,17 +7211,17 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } diff --git a/sdk/ecs/src/error_meta.rs b/sdk/ecs/src/error_meta.rs index ca4a0f7ebb8a..9ef82dc5e35c 100644 --- a/sdk/ecs/src/error_meta.rs +++ b/sdk/ecs/src/error_meta.rs @@ -2,61 +2,63 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AccessDeniedError(crate::error::AccessDeniedError), - AttributeLimitExceededError(crate::error::AttributeLimitExceededError), - BlockedError(crate::error::BlockedError), - ClientError(crate::error::ClientError), - ClusterContainsContainerInstancesError(crate::error::ClusterContainsContainerInstancesError), - ClusterContainsServicesError(crate::error::ClusterContainsServicesError), - ClusterContainsTasksError(crate::error::ClusterContainsTasksError), - ClusterNotFoundError(crate::error::ClusterNotFoundError), - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - MissingVersionError(crate::error::MissingVersionError), - NoUpdateAvailableError(crate::error::NoUpdateAvailableError), - PlatformTaskDefinitionIncompatibilityError( - crate::error::PlatformTaskDefinitionIncompatibilityError, + AccessDeniedException(crate::error::AccessDeniedException), + AttributeLimitExceededException(crate::error::AttributeLimitExceededException), + BlockedException(crate::error::BlockedException), + ClientException(crate::error::ClientException), + ClusterContainsContainerInstancesException( + crate::error::ClusterContainsContainerInstancesException, ), - PlatformUnknownError(crate::error::PlatformUnknownError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServerError(crate::error::ServerError), - ServiceNotActiveError(crate::error::ServiceNotActiveError), - ServiceNotFoundError(crate::error::ServiceNotFoundError), - TargetNotConnectedError(crate::error::TargetNotConnectedError), - TargetNotFoundError(crate::error::TargetNotFoundError), - TaskSetNotFoundError(crate::error::TaskSetNotFoundError), - UnsupportedFeatureError(crate::error::UnsupportedFeatureError), - UpdateInProgressError(crate::error::UpdateInProgressError), + ClusterContainsServicesException(crate::error::ClusterContainsServicesException), + ClusterContainsTasksException(crate::error::ClusterContainsTasksException), + ClusterNotFoundException(crate::error::ClusterNotFoundException), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + MissingVersionException(crate::error::MissingVersionException), + NoUpdateAvailableException(crate::error::NoUpdateAvailableException), + PlatformTaskDefinitionIncompatibilityException( + crate::error::PlatformTaskDefinitionIncompatibilityException, + ), + PlatformUnknownException(crate::error::PlatformUnknownException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceNotActiveException(crate::error::ServiceNotActiveException), + ServiceNotFoundException(crate::error::ServiceNotFoundException), + TargetNotConnectedException(crate::error::TargetNotConnectedException), + TargetNotFoundException(crate::error::TargetNotFoundException), + TaskSetNotFoundException(crate::error::TaskSetNotFoundException), + UnsupportedFeatureException(crate::error::UnsupportedFeatureException), + UpdateInProgressException(crate::error::UpdateInProgressException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AccessDeniedError(inner) => inner.fmt(f), - Error::AttributeLimitExceededError(inner) => inner.fmt(f), - Error::BlockedError(inner) => inner.fmt(f), - Error::ClientError(inner) => inner.fmt(f), - Error::ClusterContainsContainerInstancesError(inner) => inner.fmt(f), - Error::ClusterContainsServicesError(inner) => inner.fmt(f), - Error::ClusterContainsTasksError(inner) => inner.fmt(f), - Error::ClusterNotFoundError(inner) => inner.fmt(f), - Error::InvalidParameterError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MissingVersionError(inner) => inner.fmt(f), - Error::NoUpdateAvailableError(inner) => inner.fmt(f), - Error::PlatformTaskDefinitionIncompatibilityError(inner) => inner.fmt(f), - Error::PlatformUnknownError(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::ServerError(inner) => inner.fmt(f), - Error::ServiceNotActiveError(inner) => inner.fmt(f), - Error::ServiceNotFoundError(inner) => inner.fmt(f), - Error::TargetNotConnectedError(inner) => inner.fmt(f), - Error::TargetNotFoundError(inner) => inner.fmt(f), - Error::TaskSetNotFoundError(inner) => inner.fmt(f), - Error::UnsupportedFeatureError(inner) => inner.fmt(f), - Error::UpdateInProgressError(inner) => inner.fmt(f), + Error::AccessDeniedException(inner) => inner.fmt(f), + Error::AttributeLimitExceededException(inner) => inner.fmt(f), + Error::BlockedException(inner) => inner.fmt(f), + Error::ClientException(inner) => inner.fmt(f), + Error::ClusterContainsContainerInstancesException(inner) => inner.fmt(f), + Error::ClusterContainsServicesException(inner) => inner.fmt(f), + Error::ClusterContainsTasksException(inner) => inner.fmt(f), + Error::ClusterNotFoundException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MissingVersionException(inner) => inner.fmt(f), + Error::NoUpdateAvailableException(inner) => inner.fmt(f), + Error::PlatformTaskDefinitionIncompatibilityException(inner) => inner.fmt(f), + Error::PlatformUnknownException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ServerException(inner) => inner.fmt(f), + Error::ServiceNotActiveException(inner) => inner.fmt(f), + Error::ServiceNotFoundException(inner) => inner.fmt(f), + Error::TargetNotConnectedException(inner) => inner.fmt(f), + Error::TargetNotFoundException(inner) => inner.fmt(f), + Error::TaskSetNotFoundException(inner) => inner.fmt(f), + Error::UnsupportedFeatureException(inner) => inner.fmt(f), + Error::UpdateInProgressException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -65,20 +67,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateCapacityProviderErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::CreateCapacityProviderErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::CreateCapacityProviderErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateCapacityProviderErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateCapacityProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateCapacityProviderErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateCapacityProviderErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::CreateCapacityProviderErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::CreateCapacityProviderErrorKind::UpdateInProgressError(inner) => { - Error::UpdateInProgressError(inner) + crate::error::CreateCapacityProviderErrorKind::UpdateInProgressException(inner) => { + Error::UpdateInProgressException(inner) } crate::error::CreateCapacityProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -92,14 +94,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateClusterErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::CreateClusterErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::CreateClusterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateClusterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateClusterErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::CreateClusterErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::CreateClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -111,14 +113,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateServiceErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner), - crate::error::CreateServiceErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::CreateServiceErrorKind::ClusterNotFoundError(inner) => Error::ClusterNotFoundError(inner), - crate::error::CreateServiceErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(inner) => Error::PlatformTaskDefinitionIncompatibilityError(inner), - crate::error::CreateServiceErrorKind::PlatformUnknownError(inner) => Error::PlatformUnknownError(inner), - crate::error::CreateServiceErrorKind::ServerError(inner) => Error::ServerError(inner), - crate::error::CreateServiceErrorKind::UnsupportedFeatureError(inner) => Error::UnsupportedFeatureError(inner), + crate::error::CreateServiceErrorKind::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::error::CreateServiceErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::CreateServiceErrorKind::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner), + crate::error::CreateServiceErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(inner) => Error::PlatformTaskDefinitionIncompatibilityException(inner), + crate::error::CreateServiceErrorKind::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner), + crate::error::CreateServiceErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::CreateServiceErrorKind::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner), crate::error::CreateServiceErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -129,16 +131,16 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateTaskSetErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner), - crate::error::CreateTaskSetErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::CreateTaskSetErrorKind::ClusterNotFoundError(inner) => Error::ClusterNotFoundError(inner), - crate::error::CreateTaskSetErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityError(inner) => Error::PlatformTaskDefinitionIncompatibilityError(inner), - crate::error::CreateTaskSetErrorKind::PlatformUnknownError(inner) => Error::PlatformUnknownError(inner), - crate::error::CreateTaskSetErrorKind::ServerError(inner) => Error::ServerError(inner), - crate::error::CreateTaskSetErrorKind::ServiceNotActiveError(inner) => Error::ServiceNotActiveError(inner), - crate::error::CreateTaskSetErrorKind::ServiceNotFoundError(inner) => Error::ServiceNotFoundError(inner), - crate::error::CreateTaskSetErrorKind::UnsupportedFeatureError(inner) => Error::UnsupportedFeatureError(inner), + crate::error::CreateTaskSetErrorKind::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::error::CreateTaskSetErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::CreateTaskSetErrorKind::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner), + crate::error::CreateTaskSetErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityException(inner) => Error::PlatformTaskDefinitionIncompatibilityException(inner), + crate::error::CreateTaskSetErrorKind::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner), + crate::error::CreateTaskSetErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::CreateTaskSetErrorKind::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner), + crate::error::CreateTaskSetErrorKind::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner), + crate::error::CreateTaskSetErrorKind::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner), crate::error::CreateTaskSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -149,14 +151,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAccountSettingErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteAccountSettingErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteAccountSettingErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteAccountSettingErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteAccountSettingErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteAccountSettingErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeleteAccountSettingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -170,14 +172,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAttributesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DeleteAttributesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DeleteAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteAttributesErrorKind::TargetNotFoundError(inner) => { - Error::TargetNotFoundError(inner) + crate::error::DeleteAttributesErrorKind::TargetNotFoundException(inner) => { + Error::TargetNotFoundException(inner) } crate::error::DeleteAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -191,14 +193,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteCapacityProviderErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteCapacityProviderErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteCapacityProviderErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteCapacityProviderErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteCapacityProviderErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteCapacityProviderErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeleteCapacityProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -211,33 +213,17 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteClusterErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::DeleteClusterErrorKind::ClusterContainsContainerInstancesError( - inner, - ) => Error::ClusterContainsContainerInstancesError(inner), - crate::error::DeleteClusterErrorKind::ClusterContainsServicesError(inner) => { - Error::ClusterContainsServicesError(inner) - } - crate::error::DeleteClusterErrorKind::ClusterContainsTasksError(inner) => { - Error::ClusterContainsTasksError(inner) - } - crate::error::DeleteClusterErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) - } - crate::error::DeleteClusterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::DeleteClusterErrorKind::ServerError(inner) => { - Error::ServerError(inner) - } - crate::error::DeleteClusterErrorKind::UpdateInProgressError(inner) => { - Error::UpdateInProgressError(inner) - } + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteClusterErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::DeleteClusterErrorKind::ClusterContainsContainerInstancesException(inner) => Error::ClusterContainsContainerInstancesException(inner), + crate::error::DeleteClusterErrorKind::ClusterContainsServicesException(inner) => Error::ClusterContainsServicesException(inner), + crate::error::DeleteClusterErrorKind::ClusterContainsTasksException(inner) => Error::ClusterContainsTasksException(inner), + crate::error::DeleteClusterErrorKind::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner), + crate::error::DeleteClusterErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::DeleteClusterErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::DeleteClusterErrorKind::UpdateInProgressException(inner) => Error::UpdateInProgressException(inner), crate::error::DeleteClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), - }, + } _ => Error::Unhandled(err.into()), } } @@ -246,20 +232,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteServiceErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteServiceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteServiceErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DeleteServiceErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DeleteServiceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteServiceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteServiceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteServiceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::DeleteServiceErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) + crate::error::DeleteServiceErrorKind::ServiceNotFoundException(inner) => { + Error::ServiceNotFoundException(inner) } crate::error::DeleteServiceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -271,32 +257,32 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteTaskSetErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::DeleteTaskSetErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::DeleteTaskSetErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DeleteTaskSetErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeleteTaskSetErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DeleteTaskSetErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DeleteTaskSetErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteTaskSetErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteTaskSetErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeleteTaskSetErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::DeleteTaskSetErrorKind::ServiceNotActiveError(inner) => { - Error::ServiceNotActiveError(inner) + crate::error::DeleteTaskSetErrorKind::ServiceNotActiveException(inner) => { + Error::ServiceNotActiveException(inner) } - crate::error::DeleteTaskSetErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) + crate::error::DeleteTaskSetErrorKind::ServiceNotFoundException(inner) => { + Error::ServiceNotFoundException(inner) } - crate::error::DeleteTaskSetErrorKind::TaskSetNotFoundError(inner) => { - Error::TaskSetNotFoundError(inner) + crate::error::DeleteTaskSetErrorKind::TaskSetNotFoundException(inner) => { + Error::TaskSetNotFoundException(inner) } - crate::error::DeleteTaskSetErrorKind::UnsupportedFeatureError(inner) => { - Error::UnsupportedFeatureError(inner) + crate::error::DeleteTaskSetErrorKind::UnsupportedFeatureException(inner) => { + Error::UnsupportedFeatureException(inner) } crate::error::DeleteTaskSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -310,17 +296,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterContainerInstanceErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::DeregisterContainerInstanceErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DeregisterContainerInstanceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeregisterContainerInstanceErrorKind::InvalidParameterError( + crate::error::DeregisterContainerInstanceErrorKind::ClusterNotFoundException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::DeregisterContainerInstanceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + ) => Error::ClusterNotFoundException(inner), + crate::error::DeregisterContainerInstanceErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DeregisterContainerInstanceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeregisterContainerInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -336,14 +322,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterTaskDefinitionErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::DeregisterTaskDefinitionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeregisterTaskDefinitionErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DeregisterTaskDefinitionErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DeregisterTaskDefinitionErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DeregisterTaskDefinitionErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DeregisterTaskDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -359,14 +345,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeCapacityProvidersErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::DescribeCapacityProvidersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeCapacityProvidersErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeCapacityProvidersErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeCapacityProvidersErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DescribeCapacityProvidersErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeCapacityProvidersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -380,14 +366,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeClustersErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeClustersErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeClustersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeClustersErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeClustersErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeClustersErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeClustersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -403,17 +389,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeContainerInstancesErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::DescribeContainerInstancesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) - } - crate::error::DescribeContainerInstancesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeContainerInstancesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeContainerInstancesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeContainerInstancesErrorKind::ClusterNotFoundException( + inner, + ) => Error::ClusterNotFoundException(inner), + crate::error::DescribeContainerInstancesErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::DescribeContainerInstancesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeContainerInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -427,17 +413,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeServicesErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeServicesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeServicesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DescribeServicesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DescribeServicesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeServicesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeServicesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeServicesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeServicesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -451,14 +437,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTaskDefinitionErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeTaskDefinitionErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeTaskDefinitionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeTaskDefinitionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeTaskDefinitionErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeTaskDefinitionErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeTaskDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -472,17 +458,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTasksErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeTasksErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeTasksErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DescribeTasksErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DescribeTasksErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeTasksErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeTasksErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeTasksErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DescribeTasksErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -494,29 +480,29 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeTaskSetsErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::DescribeTaskSetsErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::DescribeTaskSetsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DescribeTaskSetsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DescribeTaskSetsErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::DescribeTaskSetsErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::DescribeTaskSetsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeTaskSetsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeTaskSetsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DescribeTaskSetsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::DescribeTaskSetsErrorKind::ServiceNotActiveError(inner) => { - Error::ServiceNotActiveError(inner) + crate::error::DescribeTaskSetsErrorKind::ServiceNotActiveException(inner) => { + Error::ServiceNotActiveException(inner) } - crate::error::DescribeTaskSetsErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) + crate::error::DescribeTaskSetsErrorKind::ServiceNotFoundException(inner) => { + Error::ServiceNotFoundException(inner) } - crate::error::DescribeTaskSetsErrorKind::UnsupportedFeatureError(inner) => { - Error::UnsupportedFeatureError(inner) + crate::error::DescribeTaskSetsErrorKind::UnsupportedFeatureException(inner) => { + Error::UnsupportedFeatureException(inner) } crate::error::DescribeTaskSetsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -530,11 +516,11 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DiscoverPollEndpointErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::DiscoverPollEndpointErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::DiscoverPollEndpointErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::DiscoverPollEndpointErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::DiscoverPollEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -548,23 +534,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteCommandErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::ExecuteCommandErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::ExecuteCommandErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ExecuteCommandErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ExecuteCommandErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ExecuteCommandErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::ExecuteCommandErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ExecuteCommandErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ExecuteCommandErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ExecuteCommandErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::ExecuteCommandErrorKind::TargetNotConnectedError(inner) => { - Error::TargetNotConnectedError(inner) + crate::error::ExecuteCommandErrorKind::TargetNotConnectedException(inner) => { + Error::TargetNotConnectedException(inner) } crate::error::ExecuteCommandErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -576,14 +562,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAccountSettingsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListAccountSettingsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListAccountSettingsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListAccountSettingsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListAccountSettingsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListAccountSettingsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListAccountSettingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -597,11 +583,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAttributesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ListAttributesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::ListAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } crate::error::ListAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -613,14 +599,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListClustersErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListClustersErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListClustersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListClustersErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListClustersErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListClustersErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListClustersErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -632,17 +618,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListContainerInstancesErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListContainerInstancesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListContainerInstancesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ListContainerInstancesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::ListContainerInstancesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListContainerInstancesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListContainerInstancesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListContainerInstancesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListContainerInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -656,17 +642,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListServicesErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListServicesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListServicesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ListServicesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::ListServicesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListServicesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListServicesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListServicesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListServicesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -678,17 +664,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListTagsForResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListTagsForResourceErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ListTagsForResourceErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::ListTagsForResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTagsForResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListTagsForResourceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListTagsForResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -704,14 +690,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTaskDefinitionFamiliesErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::ListTaskDefinitionFamiliesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTaskDefinitionFamiliesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListTaskDefinitionFamiliesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListTaskDefinitionFamiliesErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ListTaskDefinitionFamiliesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListTaskDefinitionFamiliesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -725,14 +711,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTaskDefinitionsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::ListTaskDefinitionsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::ListTaskDefinitionsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTaskDefinitionsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListTaskDefinitionsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::ListTaskDefinitionsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::ListTaskDefinitionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -746,16 +732,20 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTasksErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::ListTasksErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::ListTasksErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListTasksErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) + } + crate::error::ListTasksErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListTasksErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTasksErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::ListTasksErrorKind::ServerError(inner) => Error::ServerError(inner), - crate::error::ListTasksErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) + crate::error::ListTasksErrorKind::ServiceNotFoundException(inner) => { + Error::ServiceNotFoundException(inner) } crate::error::ListTasksErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -767,14 +757,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAccountSettingErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::PutAccountSettingErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::PutAccountSettingErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutAccountSettingErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutAccountSettingErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::PutAccountSettingErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::PutAccountSettingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -790,14 +780,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAccountSettingDefaultErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::PutAccountSettingDefaultErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::PutAccountSettingDefaultErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::PutAccountSettingDefaultErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::PutAccountSettingDefaultErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::PutAccountSettingDefaultErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::PutAccountSettingDefaultErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -811,17 +801,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAttributesErrorKind::AttributeLimitExceededError(inner) => { - Error::AttributeLimitExceededError(inner) + crate::error::PutAttributesErrorKind::AttributeLimitExceededException(inner) => { + Error::AttributeLimitExceededException(inner) } - crate::error::PutAttributesErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::PutAttributesErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::PutAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutAttributesErrorKind::TargetNotFoundError(inner) => { - Error::TargetNotFoundError(inner) + crate::error::PutAttributesErrorKind::TargetNotFoundException(inner) => { + Error::TargetNotFoundException(inner) } crate::error::PutAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -835,24 +825,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutClusterCapacityProvidersErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::PutClusterCapacityProvidersErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::PutClusterCapacityProvidersErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) - } - crate::error::PutClusterCapacityProvidersErrorKind::InvalidParameterError( + crate::error::PutClusterCapacityProvidersErrorKind::ClusterNotFoundException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::PutClusterCapacityProvidersErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::PutClusterCapacityProvidersErrorKind::ServerError(inner) => { - Error::ServerError(inner) + ) => Error::ClusterNotFoundException(inner), + crate::error::PutClusterCapacityProvidersErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::PutClusterCapacityProvidersErrorKind::ResourceInUseException( + inner, + ) => Error::ResourceInUseException(inner), + crate::error::PutClusterCapacityProvidersErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::PutClusterCapacityProvidersErrorKind::UpdateInProgressError( + crate::error::PutClusterCapacityProvidersErrorKind::UpdateInProgressException( inner, - ) => Error::UpdateInProgressError(inner), + ) => Error::UpdateInProgressException(inner), crate::error::PutClusterCapacityProvidersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -867,14 +857,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterContainerInstanceErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::RegisterContainerInstanceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RegisterContainerInstanceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::RegisterContainerInstanceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::RegisterContainerInstanceErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::RegisterContainerInstanceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::RegisterContainerInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -888,14 +878,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterTaskDefinitionErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::RegisterTaskDefinitionErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::RegisterTaskDefinitionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RegisterTaskDefinitionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::RegisterTaskDefinitionErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::RegisterTaskDefinitionErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::RegisterTaskDefinitionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -909,26 +899,32 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RunTaskErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::RunTaskErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) + } + crate::error::RunTaskErrorKind::BlockedException(inner) => { + Error::BlockedException(inner) } - crate::error::RunTaskErrorKind::BlockedError(inner) => Error::BlockedError(inner), - crate::error::RunTaskErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::RunTaskErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::RunTaskErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::RunTaskErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RunTaskErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityError( + crate::error::RunTaskErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityException( inner, - ) => Error::PlatformTaskDefinitionIncompatibilityError(inner), - crate::error::RunTaskErrorKind::PlatformUnknownError(inner) => { - Error::PlatformUnknownError(inner) + ) => Error::PlatformTaskDefinitionIncompatibilityException(inner), + crate::error::RunTaskErrorKind::PlatformUnknownException(inner) => { + Error::PlatformUnknownException(inner) + } + crate::error::RunTaskErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::RunTaskErrorKind::ServerError(inner) => Error::ServerError(inner), - crate::error::RunTaskErrorKind::UnsupportedFeatureError(inner) => { - Error::UnsupportedFeatureError(inner) + crate::error::RunTaskErrorKind::UnsupportedFeatureException(inner) => { + Error::UnsupportedFeatureException(inner) } crate::error::RunTaskErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -940,14 +936,18 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartTaskErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::StartTaskErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::StartTaskErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::StartTaskErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::StartTaskErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) + } + crate::error::StartTaskErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::StartTaskErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::StartTaskErrorKind::ServerError(inner) => Error::ServerError(inner), crate::error::StartTaskErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -958,14 +958,18 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopTaskErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::StopTaskErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::StopTaskErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::StopTaskErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::StopTaskErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::StopTaskErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::StopTaskErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::StopTaskErrorKind::ServerError(inner) => Error::ServerError(inner), crate::error::StopTaskErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -980,17 +984,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SubmitAttachmentStateChangesErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) - } - crate::error::SubmitAttachmentStateChangesErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::SubmitAttachmentStateChangesErrorKind::AccessDeniedException( + inner, + ) => Error::AccessDeniedException(inner), + crate::error::SubmitAttachmentStateChangesErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::SubmitAttachmentStateChangesErrorKind::InvalidParameterError( + crate::error::SubmitAttachmentStateChangesErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::SubmitAttachmentStateChangesErrorKind::ServerError(inner) => { - Error::ServerError(inner) + ) => Error::InvalidParameterException(inner), + crate::error::SubmitAttachmentStateChangesErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::SubmitAttachmentStateChangesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1006,14 +1010,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SubmitContainerStateChangeErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::SubmitContainerStateChangeErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::SubmitContainerStateChangeErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::SubmitContainerStateChangeErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::SubmitContainerStateChangeErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::SubmitContainerStateChangeErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::SubmitContainerStateChangeErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1027,17 +1031,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SubmitTaskStateChangeErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::SubmitTaskStateChangeErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::SubmitTaskStateChangeErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::SubmitTaskStateChangeErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::SubmitTaskStateChangeErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::SubmitTaskStateChangeErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::SubmitTaskStateChangeErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::SubmitTaskStateChangeErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::SubmitTaskStateChangeErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1051,17 +1055,21 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::TagResourceErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::TagResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::TagResourceErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::TagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::TagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::TagResourceErrorKind::ServerError(inner) => Error::ServerError(inner), crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -1072,20 +1080,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UntagResourceErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UntagResourceErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::UntagResourceErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::UntagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UntagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UntagResourceErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UntagResourceErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1097,14 +1105,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateCapacityProviderErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateCapacityProviderErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateCapacityProviderErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateCapacityProviderErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateCapacityProviderErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateCapacityProviderErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateCapacityProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1118,17 +1126,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateClusterErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateClusterErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateClusterErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::UpdateClusterErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::UpdateClusterErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateClusterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateClusterErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateClusterErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1140,17 +1148,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateClusterSettingsErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateClusterSettingsErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateClusterSettingsErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::UpdateClusterSettingsErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::UpdateClusterSettingsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateClusterSettingsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateClusterSettingsErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateClusterSettingsErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateClusterSettingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1164,26 +1172,26 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateContainerAgentErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateContainerAgentErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateContainerAgentErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::UpdateContainerAgentErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::UpdateContainerAgentErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateContainerAgentErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateContainerAgentErrorKind::MissingVersionError(inner) => { - Error::MissingVersionError(inner) + crate::error::UpdateContainerAgentErrorKind::MissingVersionException(inner) => { + Error::MissingVersionException(inner) } - crate::error::UpdateContainerAgentErrorKind::NoUpdateAvailableError(inner) => { - Error::NoUpdateAvailableError(inner) + crate::error::UpdateContainerAgentErrorKind::NoUpdateAvailableException(inner) => { + Error::NoUpdateAvailableException(inner) } - crate::error::UpdateContainerAgentErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateContainerAgentErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::UpdateContainerAgentErrorKind::UpdateInProgressError(inner) => { - Error::UpdateInProgressError(inner) + crate::error::UpdateContainerAgentErrorKind::UpdateInProgressException(inner) => { + Error::UpdateInProgressException(inner) } crate::error::UpdateContainerAgentErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1201,17 +1209,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateContainerInstancesStateErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateContainerInstancesStateErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateContainerInstancesStateErrorKind::ClusterNotFoundError( + crate::error::UpdateContainerInstancesStateErrorKind::ClusterNotFoundException( inner, - ) => Error::ClusterNotFoundError(inner), - crate::error::UpdateContainerInstancesStateErrorKind::InvalidParameterError( + ) => Error::ClusterNotFoundException(inner), + crate::error::UpdateContainerInstancesStateErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::UpdateContainerInstancesStateErrorKind::ServerError(inner) => { - Error::ServerError(inner) + ) => Error::InvalidParameterException(inner), + crate::error::UpdateContainerInstancesStateErrorKind::ServerException(inner) => { + Error::ServerException(inner) } crate::error::UpdateContainerInstancesStateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1225,15 +1233,15 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateServiceErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner), - crate::error::UpdateServiceErrorKind::ClientError(inner) => Error::ClientError(inner), - crate::error::UpdateServiceErrorKind::ClusterNotFoundError(inner) => Error::ClusterNotFoundError(inner), - crate::error::UpdateServiceErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(inner) => Error::PlatformTaskDefinitionIncompatibilityError(inner), - crate::error::UpdateServiceErrorKind::PlatformUnknownError(inner) => Error::PlatformUnknownError(inner), - crate::error::UpdateServiceErrorKind::ServerError(inner) => Error::ServerError(inner), - crate::error::UpdateServiceErrorKind::ServiceNotActiveError(inner) => Error::ServiceNotActiveError(inner), - crate::error::UpdateServiceErrorKind::ServiceNotFoundError(inner) => Error::ServiceNotFoundError(inner), + crate::error::UpdateServiceErrorKind::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::error::UpdateServiceErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::UpdateServiceErrorKind::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner), + crate::error::UpdateServiceErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException(inner) => Error::PlatformTaskDefinitionIncompatibilityException(inner), + crate::error::UpdateServiceErrorKind::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner), + crate::error::UpdateServiceErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::UpdateServiceErrorKind::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner), + crate::error::UpdateServiceErrorKind::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner), crate::error::UpdateServiceErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1246,33 +1254,33 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateServicePrimaryTaskSetErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) - } - crate::error::UpdateServicePrimaryTaskSetErrorKind::ClientError(inner) => { - Error::ClientError(inner) - } - crate::error::UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) - } - crate::error::UpdateServicePrimaryTaskSetErrorKind::InvalidParameterError( + crate::error::UpdateServicePrimaryTaskSetErrorKind::AccessDeniedException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::UpdateServicePrimaryTaskSetErrorKind::ServerError(inner) => { - Error::ServerError(inner) + ) => Error::AccessDeniedException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveError( + crate::error::UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundException( inner, - ) => Error::ServiceNotActiveError(inner), - crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) - } - crate::error::UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundError(inner) => { - Error::TaskSetNotFoundError(inner) + ) => Error::ClusterNotFoundException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureError( + crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveException( + inner, + ) => Error::ServiceNotActiveException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundException( + inner, + ) => Error::ServiceNotFoundException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundException( + inner, + ) => Error::TaskSetNotFoundException(inner), + crate::error::UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureException( inner, - ) => Error::UnsupportedFeatureError(inner), + ) => Error::UnsupportedFeatureException(inner), crate::error::UpdateServicePrimaryTaskSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1285,32 +1293,32 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateTaskSetErrorKind::AccessDeniedError(inner) => { - Error::AccessDeniedError(inner) + crate::error::UpdateTaskSetErrorKind::AccessDeniedException(inner) => { + Error::AccessDeniedException(inner) } - crate::error::UpdateTaskSetErrorKind::ClientError(inner) => { - Error::ClientError(inner) + crate::error::UpdateTaskSetErrorKind::ClientException(inner) => { + Error::ClientException(inner) } - crate::error::UpdateTaskSetErrorKind::ClusterNotFoundError(inner) => { - Error::ClusterNotFoundError(inner) + crate::error::UpdateTaskSetErrorKind::ClusterNotFoundException(inner) => { + Error::ClusterNotFoundException(inner) } - crate::error::UpdateTaskSetErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateTaskSetErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateTaskSetErrorKind::ServerError(inner) => { - Error::ServerError(inner) + crate::error::UpdateTaskSetErrorKind::ServerException(inner) => { + Error::ServerException(inner) } - crate::error::UpdateTaskSetErrorKind::ServiceNotActiveError(inner) => { - Error::ServiceNotActiveError(inner) + crate::error::UpdateTaskSetErrorKind::ServiceNotActiveException(inner) => { + Error::ServiceNotActiveException(inner) } - crate::error::UpdateTaskSetErrorKind::ServiceNotFoundError(inner) => { - Error::ServiceNotFoundError(inner) + crate::error::UpdateTaskSetErrorKind::ServiceNotFoundException(inner) => { + Error::ServiceNotFoundException(inner) } - crate::error::UpdateTaskSetErrorKind::TaskSetNotFoundError(inner) => { - Error::TaskSetNotFoundError(inner) + crate::error::UpdateTaskSetErrorKind::TaskSetNotFoundException(inner) => { + Error::TaskSetNotFoundException(inner) } - crate::error::UpdateTaskSetErrorKind::UnsupportedFeatureError(inner) => { - Error::UnsupportedFeatureError(inner) + crate::error::UpdateTaskSetErrorKind::UnsupportedFeatureException(inner) => { + Error::UnsupportedFeatureException(inner) } crate::error::UpdateTaskSetErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/ecs/src/input.rs b/sdk/ecs/src/input.rs index a57e412a4b51..d9e4e442d89c 100644 --- a/sdk/ecs/src/input.rs +++ b/sdk/ecs/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`CreateCapacityProviderInput`](crate::input::CreateCapacityProviderInput) pub mod create_capacity_provider_input { /// A builder for [`CreateCapacityProviderInput`](crate::input::CreateCapacityProviderInput) @@ -128,18 +129,30 @@ impl CreateCapacityProviderInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.CreateCapacityProvider", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.CreateCapacityProvider", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -327,18 +340,30 @@ impl CreateClusterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.CreateCluster", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.CreateCluster", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -850,18 +875,30 @@ impl CreateServiceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.CreateService", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.CreateService", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1148,18 +1185,30 @@ impl CreateTaskSetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.CreateTaskSet", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.CreateTaskSet", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1294,18 +1343,30 @@ impl DeleteAccountSettingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteAccountSetting", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteAccountSetting", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1431,18 +1492,30 @@ impl DeleteAttributesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteAttributes", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteAttributes", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1556,18 +1629,30 @@ impl DeleteCapacityProviderInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteCapacityProvider", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteCapacityProvider", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1676,18 +1761,30 @@ impl DeleteClusterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteCluster", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteCluster", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1821,18 +1918,30 @@ impl DeleteServiceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteService", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteService", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1976,18 +2085,30 @@ impl DeleteTaskSetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeleteTaskSet", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeleteTaskSet", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2136,18 +2257,30 @@ impl DeregisterContainerInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeregisterContainerInstance", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeregisterContainerInstance", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2264,18 +2397,30 @@ impl DeregisterTaskDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DeregisterTaskDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DeregisterTaskDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2445,18 +2590,30 @@ impl DescribeCapacityProvidersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeCapacityProviders", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeCapacityProviders", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2585,18 +2742,30 @@ impl DescribeClustersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeClusters", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeClusters", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2743,18 +2912,30 @@ impl DescribeContainerInstancesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeContainerInstances", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeContainerInstances", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2896,18 +3077,30 @@ impl DescribeServicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeServices", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeServices", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3039,18 +3232,30 @@ impl DescribeTaskDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeTaskDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeTaskDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3191,18 +3396,30 @@ impl DescribeTasksInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeTasks", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeTasks", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3355,18 +3572,30 @@ impl DescribeTaskSetsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DescribeTaskSets", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DescribeTaskSets", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3493,18 +3722,30 @@ impl DiscoverPollEndpointInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.DiscoverPollEndpoint", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.DiscoverPollEndpoint", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3660,18 +3901,30 @@ impl ExecuteCommandInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ExecuteCommand", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ExecuteCommand", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3866,18 +4119,30 @@ impl ListAccountSettingsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListAccountSettings", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListAccountSettings", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4067,18 +4332,30 @@ impl ListAttributesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListAttributes", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListAttributes", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4209,18 +4486,30 @@ impl ListClustersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListClusters", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListClusters", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4400,18 +4689,30 @@ impl ListContainerInstancesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListContainerInstances", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListContainerInstances", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4584,18 +4885,30 @@ impl ListServicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListServices", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListServices", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4708,18 +5021,30 @@ impl ListTagsForResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListTagsForResource", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListTagsForResource", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4899,18 +5224,30 @@ impl ListTaskDefinitionFamiliesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListTaskDefinitionFamilies", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListTaskDefinitionFamilies", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5098,18 +5435,30 @@ impl ListTaskDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListTaskDefinitions", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListTaskDefinitions", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5345,18 +5694,30 @@ impl ListTasksInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.ListTasks", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.ListTasks", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5509,18 +5870,30 @@ impl PutAccountSettingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.PutAccountSetting", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.PutAccountSetting", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5651,18 +6024,30 @@ impl PutAccountSettingDefaultInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.PutAccountSettingDefault", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.PutAccountSettingDefault", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5787,18 +6172,30 @@ impl PutAttributesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.PutAttributes", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.PutAttributes", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5946,18 +6343,30 @@ impl PutClusterCapacityProvidersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.PutClusterCapacityProviders", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.PutClusterCapacityProviders", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6197,18 +6606,30 @@ impl RegisterContainerInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.RegisterContainerInstance", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.RegisterContainerInstance", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6705,18 +7126,30 @@ impl RegisterTaskDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.RegisterTaskDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.RegisterTaskDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7093,15 +7526,27 @@ impl RunTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.RunTask")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonEC2ContainerServiceV20141113.RunTask"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7372,18 +7817,30 @@ impl StartTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.StartTask", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.StartTask", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7513,18 +7970,30 @@ impl StopTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.StopTask", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.StopTask", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7657,18 +8126,30 @@ impl SubmitAttachmentStateChangesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.SubmitAttachmentStateChanges", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.SubmitAttachmentStateChanges", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7866,18 +8347,30 @@ impl SubmitContainerStateChangeInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.SubmitContainerStateChange", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.SubmitContainerStateChange", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8117,18 +8610,30 @@ impl SubmitTaskStateChangeInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.SubmitTaskStateChange", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.SubmitTaskStateChange", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8251,18 +8756,30 @@ impl TagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.TagResource", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.TagResource", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8388,18 +8905,30 @@ impl UntagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UntagResource", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UntagResource", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8529,18 +9058,30 @@ impl UpdateCapacityProviderInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateCapacityProvider", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateCapacityProvider", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8678,18 +9219,30 @@ impl UpdateClusterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateCluster", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateCluster", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8815,18 +9368,30 @@ impl UpdateClusterSettingsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateClusterSettings", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateClusterSettings", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8953,18 +9518,30 @@ impl UpdateContainerAgentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateContainerAgent", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateContainerAgent", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9113,18 +9690,30 @@ impl UpdateContainerInstancesStateInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateContainerInstancesState", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateContainerInstancesState", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9433,18 +10022,30 @@ impl UpdateServiceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateService", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateService", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9584,18 +10185,30 @@ impl UpdateServicePrimaryTaskSetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateServicePrimaryTaskSet", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateServicePrimaryTaskSet", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9738,18 +10351,30 @@ impl UpdateTaskSetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonEC2ContainerServiceV20141113.UpdateTaskSet", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonEC2ContainerServiceV20141113.UpdateTaskSet", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/ecs/src/instant_epoch.rs b/sdk/ecs/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/ecs/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/ecs/src/json_deser.rs b/sdk/ecs/src/json_deser.rs index 531ed67de6fe..5c5cc4a8b8f7 100644 --- a/sdk/ecs/src/json_deser.rs +++ b/sdk/ecs/src/json_deser.rs @@ -1,873 +1,10879 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn create_capacity_provider_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_client_exceptionjson_err( + input: &[u8], + mut builder: crate::error::client_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_server_exceptionjson_err( + input: &[u8], + mut builder: crate::error::server_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_update_in_progress_exceptionjson_err( + input: &[u8], + mut builder: crate::error::update_in_progress_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_capacity_provider( input: &[u8], mut builder: crate::output::create_capacity_provider_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateCapacityProviderOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_capacity_provider(parsed_body.capacity_provider); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProvider" => { + builder = builder.set_capacity_provider( + crate::json_deser::deser_structure_capacity_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_cluster_deser_operation( +pub fn deser_operation_create_cluster( input: &[u8], mut builder: crate::output::create_cluster_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateClusterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster(parsed_body.cluster); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_access_denied_exceptionjson_err( + input: &[u8], + mut builder: crate::error::access_denied_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cluster_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cluster_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_service_deser_operation( +pub fn deser_structure_platform_task_definition_incompatibility_exceptionjson_err( + input: &[u8], + mut builder: crate::error::platform_task_definition_incompatibility_exception::Builder, +) -> Result< + crate::error::platform_task_definition_incompatibility_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_platform_unknown_exceptionjson_err( + input: &[u8], + mut builder: crate::error::platform_unknown_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_feature_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_feature_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_service( input: &[u8], mut builder: crate::output::create_service_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateServiceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service(parsed_body.service); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "service" => { + builder = builder + .set_service(crate::json_deser::deser_structure_service(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_service_not_active_exceptionjson_err( + input: &[u8], + mut builder: crate::error::service_not_active_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_service_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::service_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_task_set_deser_operation( +pub fn deser_operation_create_task_set( input: &[u8], mut builder: crate::output::create_task_set_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTaskSetOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_set(parsed_body.task_set); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskSet" => { + builder = builder + .set_task_set(crate::json_deser::deser_structure_task_set(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_account_setting_deser_operation( +pub fn deser_operation_delete_account_setting( input: &[u8], mut builder: crate::output::delete_account_setting_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteAccountSettingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_setting(parsed_body.setting); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "setting" => { + builder = builder + .set_setting(crate::json_deser::deser_structure_setting(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_target_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::target_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_attributes_deser_operation( +pub fn deser_operation_delete_attributes( input: &[u8], mut builder: crate::output::delete_attributes_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteAttributesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_list_attributes(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_capacity_provider_deser_operation( +pub fn deser_operation_delete_capacity_provider( input: &[u8], mut builder: crate::output::delete_capacity_provider_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DeleteCapacityProviderOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_capacity_provider(parsed_body.capacity_provider); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProvider" => { + builder = builder.set_capacity_provider( + crate::json_deser::deser_structure_capacity_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cluster_contains_container_instances_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cluster_contains_container_instances_exception::Builder, +) -> Result< + crate::error::cluster_contains_container_instances_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cluster_contains_services_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cluster_contains_services_exception::Builder, +) -> Result< + crate::error::cluster_contains_services_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cluster_contains_tasks_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cluster_contains_tasks_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_cluster_deser_operation( +pub fn deser_operation_delete_cluster( input: &[u8], mut builder: crate::output::delete_cluster_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteClusterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster(parsed_body.cluster); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_service_deser_operation( +pub fn deser_operation_delete_service( input: &[u8], mut builder: crate::output::delete_service_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteServiceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service(parsed_body.service); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "service" => { + builder = builder + .set_service(crate::json_deser::deser_structure_service(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_task_set_deser_operation( +pub fn deser_structure_task_set_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::task_set_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_task_set( input: &[u8], mut builder: crate::output::delete_task_set_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteTaskSetOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_set(parsed_body.task_set); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskSet" => { + builder = builder + .set_task_set(crate::json_deser::deser_structure_task_set(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn deregister_container_instance_deser_operation( +pub fn deser_operation_deregister_container_instance( input: &[u8], mut builder: crate::output::deregister_container_instance_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::deregister_container_instance_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DeregisterContainerInstanceOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instance(parsed_body.container_instance); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstance" => { + builder = builder.set_container_instance( + crate::json_deser::deser_structure_container_instance(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn deregister_task_definition_deser_operation( +pub fn deser_operation_deregister_task_definition( input: &[u8], mut builder: crate::output::deregister_task_definition_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DeregisterTaskDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_definition(parsed_body.task_definition); +) -> Result< + crate::output::deregister_task_definition_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskDefinition" => { + builder = builder.set_task_definition( + crate::json_deser::deser_structure_task_definition(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_capacity_providers_deser_operation( +pub fn deser_operation_describe_capacity_providers( input: &[u8], mut builder: crate::output::describe_capacity_providers_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_capacity_providers_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeCapacityProvidersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_capacity_providers(parsed_body.capacity_providers); - builder = builder.set_failures(parsed_body.failures); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProviders" => { + builder = builder.set_capacity_providers( + crate::json_deser::deser_list_capacity_providers(tokens)?, + ); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_clusters_deser_operation( +pub fn deser_operation_describe_clusters( input: &[u8], mut builder: crate::output::describe_clusters_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeClustersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_clusters(parsed_body.clusters); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusters" => { + builder = + builder.set_clusters(crate::json_deser::deser_list_clusters(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_container_instances_deser_operation( +pub fn deser_operation_describe_container_instances( input: &[u8], mut builder: crate::output::describe_container_instances_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_container_instances_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeContainerInstancesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instances(parsed_body.container_instances); - builder = builder.set_failures(parsed_body.failures); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstances" => { + builder = builder.set_container_instances( + crate::json_deser::deser_list_container_instances(tokens)?, + ); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_services_deser_operation( +pub fn deser_operation_describe_services( input: &[u8], mut builder: crate::output::describe_services_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeServicesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_services(parsed_body.services); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "services" => { + builder = + builder.set_services(crate::json_deser::deser_list_services(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_task_definition_deser_operation( +pub fn deser_operation_describe_task_definition( input: &[u8], mut builder: crate::output::describe_task_definition_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeTaskDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_definition(parsed_body.task_definition); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskDefinition" => { + builder = builder.set_task_definition( + crate::json_deser::deser_structure_task_definition(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_tasks_deser_operation( +pub fn deser_operation_describe_tasks( input: &[u8], mut builder: crate::output::describe_tasks_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTasksOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tasks(parsed_body.tasks); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tasks" => { + builder = builder.set_tasks(crate::json_deser::deser_list_tasks(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_task_sets_deser_operation( +pub fn deser_operation_describe_task_sets( input: &[u8], mut builder: crate::output::describe_task_sets_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTaskSetsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_sets(parsed_body.task_sets); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskSets" => { + builder = + builder.set_task_sets(crate::json_deser::deser_list_task_sets(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn discover_poll_endpoint_deser_operation( +pub fn deser_operation_discover_poll_endpoint( input: &[u8], mut builder: crate::output::discover_poll_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DiscoverPollEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint(parsed_body.endpoint); - builder = builder.set_telemetry_endpoint(parsed_body.telemetry_endpoint); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "endpoint" => { + builder = builder.set_endpoint( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "telemetryEndpoint" => { + builder = builder.set_telemetry_endpoint( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_target_not_connected_exceptionjson_err( + input: &[u8], + mut builder: crate::error::target_not_connected_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn execute_command_deser_operation( +pub fn deser_operation_execute_command( input: &[u8], mut builder: crate::output::execute_command_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExecuteCommandOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster_arn(parsed_body.cluster_arn); - builder = builder.set_container_arn(parsed_body.container_arn); - builder = builder.set_container_name(parsed_body.container_name); - builder = builder.set_interactive(Some(parsed_body.interactive)); - builder = builder.set_session(parsed_body.session); - builder = builder.set_task_arn(parsed_body.task_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterArn" => { + builder = builder.set_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerArn" => { + builder = builder.set_container_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerName" => { + builder = builder.set_container_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "interactive" => { + builder = builder.set_interactive( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "session" => { + builder = builder + .set_session(crate::json_deser::deser_structure_session(tokens)?); + } + "taskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_account_settings_deser_operation( +pub fn deser_operation_list_account_settings( input: &[u8], mut builder: crate::output::list_account_settings_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAccountSettingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_settings(parsed_body.settings); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "settings" => { + builder = + builder.set_settings(crate::json_deser::deser_list_settings(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_attributes_deser_operation( +pub fn deser_operation_list_attributes( input: &[u8], mut builder: crate::output::list_attributes_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAttributesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_list_attributes(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_clusters_deser_operation( +pub fn deser_operation_list_clusters( input: &[u8], mut builder: crate::output::list_clusters_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListClustersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster_arns(parsed_body.cluster_arns); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterArns" => { + builder = builder + .set_cluster_arns(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_container_instances_deser_operation( +pub fn deser_operation_list_container_instances( input: &[u8], mut builder: crate::output::list_container_instances_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListContainerInstancesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instance_arns(parsed_body.container_instance_arns); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstanceArns" => { + builder = builder.set_container_instance_arns( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_services_deser_operation( +pub fn deser_operation_list_services( input: &[u8], mut builder: crate::output::list_services_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListServicesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service_arns(parsed_body.service_arns); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "serviceArns" => { + builder = builder + .set_service_arns(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_task_definition_families_deser_operation( +pub fn deser_operation_list_task_definition_families( input: &[u8], mut builder: crate::output::list_task_definition_families_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_task_definition_families_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListTaskDefinitionFamiliesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_families(parsed_body.families); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "families" => { + builder = builder + .set_families(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_task_definitions_deser_operation( +pub fn deser_operation_list_task_definitions( input: &[u8], mut builder: crate::output::list_task_definitions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTaskDefinitionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_definition_arns(parsed_body.task_definition_arns); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskDefinitionArns" => { + builder = builder.set_task_definition_arns( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tasks_deser_operation( +pub fn deser_operation_list_tasks( input: &[u8], mut builder: crate::output::list_tasks_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTasksOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_arns(parsed_body.task_arns); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskArns" => { + builder = builder + .set_task_arns(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_account_setting_deser_operation( +pub fn deser_operation_put_account_setting( input: &[u8], mut builder: crate::output::put_account_setting_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutAccountSettingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_setting(parsed_body.setting); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "setting" => { + builder = builder + .set_setting(crate::json_deser::deser_structure_setting(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_account_setting_default_deser_operation( +pub fn deser_operation_put_account_setting_default( input: &[u8], mut builder: crate::output::put_account_setting_default_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_account_setting_default_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutAccountSettingDefaultOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_setting(parsed_body.setting); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "setting" => { + builder = builder + .set_setting(crate::json_deser::deser_structure_setting(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_attribute_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::attribute_limit_exceeded_exception::Builder, +) -> Result< + crate::error::attribute_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_attributes_deser_operation( +pub fn deser_operation_put_attributes( input: &[u8], mut builder: crate::output::put_attributes_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutAttributesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_attributes(parsed_body.attributes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attributes" => { + builder = builder + .set_attributes(crate::json_deser::deser_list_attributes(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_cluster_capacity_providers_deser_operation( +pub fn deser_operation_put_cluster_capacity_providers( input: &[u8], mut builder: crate::output::put_cluster_capacity_providers_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_cluster_capacity_providers_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutClusterCapacityProvidersOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster(parsed_body.cluster); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_container_instance_deser_operation( +pub fn deser_operation_register_container_instance( input: &[u8], mut builder: crate::output::register_container_instance_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::register_container_instance_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RegisterContainerInstanceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instance(parsed_body.container_instance); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstance" => { + builder = builder.set_container_instance( + crate::json_deser::deser_structure_container_instance(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_task_definition_deser_operation( +pub fn deser_operation_register_task_definition( input: &[u8], mut builder: crate::output::register_task_definition_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::RegisterTaskDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_definition(parsed_body.task_definition); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskDefinition" => { + builder = builder.set_task_definition( + crate::json_deser::deser_structure_task_definition(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_blocked_exceptionjson_err( + input: &[u8], + mut builder: crate::error::blocked_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn run_task_deser_operation( +pub fn deser_operation_run_task( input: &[u8], mut builder: crate::output::run_task_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::RunTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tasks(parsed_body.tasks); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tasks" => { + builder = builder.set_tasks(crate::json_deser::deser_list_tasks(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_task_deser_operation( +pub fn deser_operation_start_task( input: &[u8], mut builder: crate::output::start_task_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tasks(parsed_body.tasks); - builder = builder.set_failures(parsed_body.failures); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tasks" => { + builder = builder.set_tasks(crate::json_deser::deser_list_tasks(tokens)?); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_task_deser_operation( +pub fn deser_operation_stop_task( input: &[u8], mut builder: crate::output::stop_task_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StopTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task(parsed_body.task); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "task" => { + builder = + builder.set_task(crate::json_deser::deser_structure_task(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn submit_attachment_state_changes_deser_operation( +pub fn deser_operation_submit_attachment_state_changes( input: &[u8], mut builder: crate::output::submit_attachment_state_changes_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::submit_attachment_state_changes_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::SubmitAttachmentStateChangesOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_acknowledgment(parsed_body.acknowledgment); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "acknowledgment" => { + builder = builder.set_acknowledgment( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn submit_container_state_change_deser_operation( +pub fn deser_operation_submit_container_state_change( input: &[u8], mut builder: crate::output::submit_container_state_change_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::submit_container_state_change_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::SubmitContainerStateChangeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_acknowledgment(parsed_body.acknowledgment); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "acknowledgment" => { + builder = builder.set_acknowledgment( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn submit_task_state_change_deser_operation( +pub fn deser_operation_submit_task_state_change( input: &[u8], mut builder: crate::output::submit_task_state_change_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::SubmitTaskStateChangeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_acknowledgment(parsed_body.acknowledgment); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "acknowledgment" => { + builder = builder.set_acknowledgment( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_capacity_provider_deser_operation( +pub fn deser_operation_update_capacity_provider( input: &[u8], mut builder: crate::output::update_capacity_provider_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateCapacityProviderOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_capacity_provider(parsed_body.capacity_provider); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProvider" => { + builder = builder.set_capacity_provider( + crate::json_deser::deser_structure_capacity_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_cluster_deser_operation( +pub fn deser_operation_update_cluster( input: &[u8], mut builder: crate::output::update_cluster_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateClusterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster(parsed_body.cluster); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_cluster_settings_deser_operation( +pub fn deser_operation_update_cluster_settings( input: &[u8], mut builder: crate::output::update_cluster_settings_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateClusterSettingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_cluster(parsed_body.cluster); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_missing_version_exceptionjson_err( + input: &[u8], + mut builder: crate::error::missing_version_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_no_update_available_exceptionjson_err( + input: &[u8], + mut builder: crate::error::no_update_available_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_container_agent_deser_operation( +pub fn deser_operation_update_container_agent( input: &[u8], mut builder: crate::output::update_container_agent_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateContainerAgentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instance(parsed_body.container_instance); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstance" => { + builder = builder.set_container_instance( + crate::json_deser::deser_structure_container_instance(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_container_instances_state_deser_operation( +pub fn deser_operation_update_container_instances_state( input: &[u8], mut builder: crate::output::update_container_instances_state_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_container_instances_state_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateContainerInstancesStateOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_container_instances(parsed_body.container_instances); - builder = builder.set_failures(parsed_body.failures); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstances" => { + builder = builder.set_container_instances( + crate::json_deser::deser_list_container_instances(tokens)?, + ); + } + "failures" => { + builder = + builder.set_failures(crate::json_deser::deser_list_failures(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_service_deser_operation( +pub fn deser_operation_update_service( input: &[u8], mut builder: crate::output::update_service_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateServiceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service(parsed_body.service); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "service" => { + builder = builder + .set_service(crate::json_deser::deser_structure_service(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_service_primary_task_set_deser_operation( +pub fn deser_operation_update_service_primary_task_set( input: &[u8], mut builder: crate::output::update_service_primary_task_set_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_service_primary_task_set_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateServicePrimaryTaskSetOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_set(parsed_body.task_set); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskSet" => { + builder = builder + .set_task_set(crate::json_deser::deser_structure_task_set(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_task_set_deser_operation( +pub fn deser_operation_update_task_set( input: &[u8], mut builder: crate::output::update_task_set_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTaskSetOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_task_set(parsed_body.task_set); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskSet" => { + builder = builder + .set_task_set(crate::json_deser::deser_structure_task_set(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_capacity_provider<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CapacityProvider::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProviderArn" => { + builder = builder.set_capacity_provider_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CapacityProviderStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "autoScalingGroupProvider" => { + builder = builder.set_auto_scaling_group_provider( + crate::json_deser::deser_structure_auto_scaling_group_provider( + tokens, + )?, + ); + } + "updateStatus" => { + builder = builder.set_update_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CapacityProviderUpdateStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "updateStatusReason" => { + builder = builder.set_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cluster<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Cluster::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterArn" => { + builder = builder.set_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "configuration" => { + builder = builder.set_configuration( + crate::json_deser::deser_structure_cluster_configuration( + tokens, + )?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "registeredContainerInstancesCount" => { + builder = builder.set_registered_container_instances_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "runningTasksCount" => { + builder = builder.set_running_tasks_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pendingTasksCount" => { + builder = builder.set_pending_tasks_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "activeServicesCount" => { + builder = builder.set_active_services_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "statistics" => { + builder = builder.set_statistics( + crate::json_deser::deser_list_statistics(tokens)?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + "settings" => { + builder = builder.set_settings( + crate::json_deser::deser_list_cluster_settings(tokens)?, + ); + } + "capacityProviders" => { + builder = builder.set_capacity_providers( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "defaultCapacityProviderStrategy" => { + builder = builder.set_default_capacity_provider_strategy( + crate::json_deser::deser_list_capacity_provider_strategy( + tokens, + )?, + ); + } + "attachments" => { + builder = builder.set_attachments( + crate::json_deser::deser_list_attachments(tokens)?, + ); + } + "attachmentsStatus" => { + builder = builder.set_attachments_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_service<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Service::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "serviceArn" => { + builder = builder.set_service_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "serviceName" => { + builder = builder.set_service_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterArn" => { + builder = builder.set_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "loadBalancers" => { + builder = builder.set_load_balancers( + crate::json_deser::deser_list_load_balancers(tokens)?, + ); + } + "serviceRegistries" => { + builder = builder.set_service_registries( + crate::json_deser::deser_list_service_registries(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "desiredCount" => { + builder = builder.set_desired_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "runningCount" => { + builder = builder.set_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pendingCount" => { + builder = builder.set_pending_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "launchType" => { + builder = builder.set_launch_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LaunchType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "capacityProviderStrategy" => { + builder = builder.set_capacity_provider_strategy( + crate::json_deser::deser_list_capacity_provider_strategy( + tokens, + )?, + ); + } + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskDefinition" => { + builder = builder.set_task_definition( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "deploymentConfiguration" => { + builder = builder.set_deployment_configuration( + crate::json_deser::deser_structure_deployment_configuration( + tokens, + )?, + ); + } + "taskSets" => { + builder = builder.set_task_sets( + crate::json_deser::deser_list_task_sets(tokens)?, + ); + } + "deployments" => { + builder = builder.set_deployments( + crate::json_deser::deser_list_deployments(tokens)?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "events" => { + builder = builder.set_events( + crate::json_deser::deser_list_service_events(tokens)?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "placementConstraints" => { + builder = builder.set_placement_constraints( + crate::json_deser::deser_list_placement_constraints(tokens)?, + ); + } + "placementStrategy" => { + builder = builder.set_placement_strategy( + crate::json_deser::deser_list_placement_strategies(tokens)?, + ); + } + "networkConfiguration" => { + builder = builder.set_network_configuration( + crate::json_deser::deser_structure_network_configuration( + tokens, + )?, + ); + } + "healthCheckGracePeriodSeconds" => { + builder = builder.set_health_check_grace_period_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "schedulingStrategy" => { + builder = builder.set_scheduling_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SchedulingStrategy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deploymentController" => { + builder = builder.set_deployment_controller( + crate::json_deser::deser_structure_deployment_controller( + tokens, + )?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + "createdBy" => { + builder = builder.set_created_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enableECSManagedTags" => { + builder = builder.set_enable_ecs_managed_tags( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "propagateTags" => { + builder = builder.set_propagate_tags( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PropagateTags::from(u.as_ref())) + }) + .transpose()?, + ); + } + "enableExecuteCommand" => { + builder = builder.set_enable_execute_command( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_task_set<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TaskSet::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskSetArn" => { + builder = builder.set_task_set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "serviceArn" => { + builder = builder.set_service_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterArn" => { + builder = builder.set_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "startedBy" => { + builder = builder.set_started_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "externalId" => { + builder = builder.set_external_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskDefinition" => { + builder = builder.set_task_definition( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "computedDesiredCount" => { + builder = builder.set_computed_desired_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pendingCount" => { + builder = builder.set_pending_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "runningCount" => { + builder = builder.set_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "updatedAt" => { + builder = builder.set_updated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "launchType" => { + builder = builder.set_launch_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LaunchType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "capacityProviderStrategy" => { + builder = builder.set_capacity_provider_strategy( + crate::json_deser::deser_list_capacity_provider_strategy( + tokens, + )?, + ); + } + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkConfiguration" => { + builder = builder.set_network_configuration( + crate::json_deser::deser_structure_network_configuration( + tokens, + )?, + ); + } + "loadBalancers" => { + builder = builder.set_load_balancers( + crate::json_deser::deser_list_load_balancers(tokens)?, + ); + } + "serviceRegistries" => { + builder = builder.set_service_registries( + crate::json_deser::deser_list_service_registries(tokens)?, + ); + } + "scale" => { + builder = builder + .set_scale(crate::json_deser::deser_structure_scale(tokens)?); + } + "stabilityStatus" => { + builder = builder.set_stability_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::StabilityStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "stabilityStatusAt" => { + builder = builder.set_stability_status_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_setting<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Setting::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SettingName::from(u.as_ref())) + }) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "principalArn" => { + builder = builder.set_principal_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attribute(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_container_instance<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerInstance::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerInstanceArn" => { + builder = builder.set_container_instance_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ec2InstanceId" => { + builder = builder.set_ec2_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "capacityProviderName" => { + builder = builder.set_capacity_provider_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "versionInfo" => { + builder = builder.set_version_info( + crate::json_deser::deser_structure_version_info(tokens)?, + ); + } + "remainingResources" => { + builder = builder.set_remaining_resources( + crate::json_deser::deser_list_resources(tokens)?, + ); + } + "registeredResources" => { + builder = builder.set_registered_resources( + crate::json_deser::deser_list_resources(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "statusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "agentConnected" => { + builder = builder.set_agent_connected( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "runningTasksCount" => { + builder = builder.set_running_tasks_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pendingTasksCount" => { + builder = builder.set_pending_tasks_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "agentUpdateStatus" => { + builder = builder.set_agent_update_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AgentUpdateStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_list_attributes(tokens)?, + ); + } + "registeredAt" => { + builder = builder.set_registered_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "attachments" => { + builder = builder.set_attachments( + crate::json_deser::deser_list_attachments(tokens)?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_task_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TaskDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "taskDefinitionArn" => { + builder = builder.set_task_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerDefinitions" => { + builder = builder.set_container_definitions( + crate::json_deser::deser_list_container_definitions(tokens)?, + ); + } + "family" => { + builder = builder.set_family( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskRoleArn" => { + builder = builder.set_task_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "executionRoleArn" => { + builder = builder.set_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkMode" => { + builder = builder.set_network_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::NetworkMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "revision" => { + builder = builder.set_revision( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "volumes" => { + builder = builder.set_volumes( + crate::json_deser::deser_list_volume_list(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TaskDefinitionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "requiresAttributes" => { + builder = builder.set_requires_attributes( + crate::json_deser::deser_list_requires_attributes(tokens)?, + ); + } + "placementConstraints" => { + builder = builder.set_placement_constraints( + crate::json_deser::deser_list_task_definition_placement_constraints(tokens)? + ); + } + "compatibilities" => { + builder = builder.set_compatibilities( + crate::json_deser::deser_list_compatibility_list(tokens)?, + ); + } + "requiresCompatibilities" => { + builder = builder.set_requires_compatibilities( + crate::json_deser::deser_list_compatibility_list(tokens)?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inferenceAccelerators" => { + builder = builder.set_inference_accelerators( + crate::json_deser::deser_list_inference_accelerators(tokens)?, + ); + } + "pidMode" => { + builder = builder.set_pid_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PidMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ipcMode" => { + builder = builder.set_ipc_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IpcMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "proxyConfiguration" => { + builder = builder.set_proxy_configuration( + crate::json_deser::deser_structure_proxy_configuration(tokens)?, + ); + } + "registeredAt" => { + builder = builder.set_registered_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "deregisteredAt" => { + builder = builder.set_deregistered_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "registeredBy" => { + builder = builder.set_registered_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ephemeralStorage" => { + builder = builder.set_ephemeral_storage( + crate::json_deser::deser_structure_ephemeral_storage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_capacity_providers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_capacity_provider(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_failures<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_failure(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_clusters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_cluster(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_instances<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_container_instance(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_services<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_service(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tasks<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_task(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_task_sets<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_task_set(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_session<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Session::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sessionId" => { + builder = builder.set_session_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "streamUrl" => { + builder = builder.set_stream_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tokenValue" => { + builder = builder.set_token_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_setting(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_task<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Task::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attachments" => { + builder = builder.set_attachments( + crate::json_deser::deser_list_attachments(tokens)?, + ); + } + "attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_list_attributes(tokens)?, + ); + } + "availabilityZone" => { + builder = builder.set_availability_zone( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "capacityProviderName" => { + builder = builder.set_capacity_provider_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterArn" => { + builder = builder.set_cluster_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectivity" => { + builder = builder.set_connectivity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Connectivity::from(u.as_ref())) + }) + .transpose()?, + ); + } + "connectivityAt" => { + builder = builder.set_connectivity_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "containerInstanceArn" => { + builder = builder.set_container_instance_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containers" => { + builder = builder.set_containers( + crate::json_deser::deser_list_containers(tokens)?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "desiredStatus" => { + builder = builder.set_desired_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "enableExecuteCommand" => { + builder = builder.set_enable_execute_command( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "executionStoppedAt" => { + builder = builder.set_execution_stopped_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "group" => { + builder = builder.set_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "healthStatus" => { + builder = builder.set_health_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HealthStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "inferenceAccelerators" => { + builder = builder.set_inference_accelerators( + crate::json_deser::deser_list_inference_accelerators(tokens)?, + ); + } + "lastStatus" => { + builder = builder.set_last_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "launchType" => { + builder = builder.set_launch_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LaunchType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "overrides" => { + builder = builder.set_overrides( + crate::json_deser::deser_structure_task_override(tokens)?, + ); + } + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pullStartedAt" => { + builder = builder.set_pull_started_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "pullStoppedAt" => { + builder = builder.set_pull_stopped_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "startedAt" => { + builder = builder.set_started_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "startedBy" => { + builder = builder.set_started_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stopCode" => { + builder = builder.set_stop_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TaskStopCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "stoppedAt" => { + builder = builder.set_stopped_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "stoppedReason" => { + builder = builder.set_stopped_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "stoppingAt" => { + builder = builder.set_stopping_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tags(tokens)?); + } + "taskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskDefinitionArn" => { + builder = builder.set_task_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ephemeralStorage" => { + builder = builder.set_ephemeral_storage( + crate::json_deser::deser_structure_ephemeral_storage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_scaling_group_provider<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoScalingGroupProvider::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "autoScalingGroupArn" => { + builder = builder.set_auto_scaling_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "managedScaling" => { + builder = builder.set_managed_scaling( + crate::json_deser::deser_structure_managed_scaling(tokens)?, + ); + } + "managedTerminationProtection" => { + builder = builder.set_managed_termination_protection( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ManagedTerminationProtection::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cluster_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ClusterConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "executeCommandConfiguration" => { + builder = builder.set_execute_command_configuration( + crate::json_deser::deser_structure_execute_command_configuration(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_statistics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_value_pair(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_cluster_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_cluster_setting(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_capacity_provider_strategy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_capacity_provider_strategy_item( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attachments<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attachment(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_load_balancers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_load_balancer(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_service_registries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_service_registry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_deployment_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeploymentConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "deploymentCircuitBreaker" => { + builder = builder.set_deployment_circuit_breaker( + crate::json_deser::deser_structure_deployment_circuit_breaker( + tokens, + )?, + ); + } + "maximumPercent" => { + builder = builder.set_maximum_percent( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minimumHealthyPercent" => { + builder = builder.set_minimum_healthy_percent( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_deployments<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_deployment(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_service_events<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_service_event(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_placement_constraints<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_placement_constraint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_placement_strategies<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_placement_strategy(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_network_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "awsvpcConfiguration" => { + builder = builder.set_awsvpc_configuration( + crate::json_deser::deser_structure_aws_vpc_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployment_controller<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeploymentController::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeploymentControllerType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scale<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scale::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "unit" => { + builder = builder.set_unit( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ScaleUnit::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attribute<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Attribute::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "targetType" => { + builder = builder.set_target_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TargetType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "targetId" => { + builder = builder.set_target_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_version_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VersionInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "agentVersion" => { + builder = builder.set_agent_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "agentHash" => { + builder = builder.set_agent_hash( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "dockerVersion" => { + builder = builder.set_docker_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resources<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_resource(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_container_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_volume_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_volume(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_requires_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attribute(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_task_definition_placement_constraints<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_task_definition_placement_constraint(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compatibility_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Compatibility::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inference_accelerators<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inference_accelerator(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_proxy_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProxyConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProxyConfigurationType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "containerName" => { + builder = builder.set_container_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "properties" => { + builder = builder.set_properties( + crate::json_deser::deser_list_proxy_configuration_properties( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ephemeral_storage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EphemeralStorage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sizeInGiB" => { + builder = builder.set_size_in_gi_b( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_failure<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Failure::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "detail" => { + builder = builder.set_detail( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_containers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_container(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_task_override<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TaskOverride::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerOverrides" => { + builder = builder.set_container_overrides( + crate::json_deser::deser_list_container_overrides(tokens)?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inferenceAcceleratorOverrides" => { + builder = builder.set_inference_accelerator_overrides( + crate::json_deser::deser_list_inference_accelerator_overrides( + tokens, + )?, + ); + } + "executionRoleArn" => { + builder = builder.set_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskRoleArn" => { + builder = builder.set_task_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ephemeralStorage" => { + builder = builder.set_ephemeral_storage( + crate::json_deser::deser_structure_ephemeral_storage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_managed_scaling<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ManagedScaling::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ManagedScalingStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "targetCapacity" => { + builder = builder.set_target_capacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minimumScalingStepSize" => { + builder = builder.set_minimum_scaling_step_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maximumScalingStepSize" => { + builder = builder.set_maximum_scaling_step_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "instanceWarmupPeriod" => { + builder = builder.set_instance_warmup_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_execute_command_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExecuteCommandConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "kmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "logging" => { + builder = builder.set_logging( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ExecuteCommandLogging::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "logConfiguration" => { + builder = builder.set_log_configuration( + crate::json_deser::deser_structure_execute_command_log_configuration(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_key_value_pair<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeyValuePair::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cluster_setting<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ClusterSetting::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ClusterSettingName::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_capacity_provider_strategy_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CapacityProviderStrategyItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capacityProvider" => { + builder = builder.set_capacity_provider( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "weight" => { + builder = builder.set_weight( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "base" => { + builder = builder.set_base( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attachment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Attachment::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "details" => { + builder = builder.set_details( + crate::json_deser::deser_list_attachment_details(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_load_balancer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LoadBalancer::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "targetGroupArn" => { + builder = builder.set_target_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "loadBalancerName" => { + builder = builder.set_load_balancer_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerName" => { + builder = builder.set_container_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPort" => { + builder = builder.set_container_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_service_registry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ServiceRegistry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "registryArn" => { + builder = builder.set_registry_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "port" => { + builder = builder.set_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "containerName" => { + builder = builder.set_container_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPort" => { + builder = builder.set_container_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployment_circuit_breaker<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeploymentCircuitBreaker::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "enable" => { + builder = builder.set_enable( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "rollback" => { + builder = builder.set_rollback( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Deployment::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskDefinition" => { + builder = builder.set_task_definition( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "desiredCount" => { + builder = builder.set_desired_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pendingCount" => { + builder = builder.set_pending_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "runningCount" => { + builder = builder.set_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "failedTasks" => { + builder = builder.set_failed_tasks( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "updatedAt" => { + builder = builder.set_updated_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "capacityProviderStrategy" => { + builder = builder.set_capacity_provider_strategy( + crate::json_deser::deser_list_capacity_provider_strategy( + tokens, + )?, + ); + } + "launchType" => { + builder = builder.set_launch_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LaunchType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkConfiguration" => { + builder = builder.set_network_configuration( + crate::json_deser::deser_structure_network_configuration( + tokens, + )?, + ); + } + "rolloutState" => { + builder = builder.set_rollout_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeploymentRolloutState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "rolloutStateReason" => { + builder = builder.set_rollout_state_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_service_event<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ServiceEvent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_placement_constraint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PlacementConstraint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PlacementConstraintType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "expression" => { + builder = builder.set_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_placement_strategy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PlacementStrategy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PlacementStrategyType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "field" => { + builder = builder.set_field( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_aws_vpc_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AwsVpcConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "subnets" => { + builder = builder.set_subnets( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "securityGroups" => { + builder = builder.set_security_groups( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "assignPublicIp" => { + builder = builder.set_assign_public_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AssignPublicIp::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Resource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "doubleValue" => { + builder = builder.set_double_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "longValue" => { + builder = builder.set_long_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "integerValue" => { + builder = builder.set_integer_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "stringSetValue" => { + builder = builder.set_string_set_value( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_container_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repositoryCredentials" => { + builder = builder.set_repository_credentials( + crate::json_deser::deser_structure_repository_credentials( + tokens, + )?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memoryReservation" => { + builder = builder.set_memory_reservation( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "links" => { + builder = builder + .set_links(crate::json_deser::deser_list_string_list(tokens)?); + } + "portMappings" => { + builder = builder.set_port_mappings( + crate::json_deser::deser_list_port_mapping_list(tokens)?, + ); + } + "essential" => { + builder = builder.set_essential( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "entryPoint" => { + builder = builder.set_entry_point( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "environment" => { + builder = builder.set_environment( + crate::json_deser::deser_list_environment_variables(tokens)?, + ); + } + "environmentFiles" => { + builder = builder.set_environment_files( + crate::json_deser::deser_list_environment_files(tokens)?, + ); + } + "mountPoints" => { + builder = builder.set_mount_points( + crate::json_deser::deser_list_mount_point_list(tokens)?, + ); + } + "volumesFrom" => { + builder = builder.set_volumes_from( + crate::json_deser::deser_list_volume_from_list(tokens)?, + ); + } + "linuxParameters" => { + builder = builder.set_linux_parameters( + crate::json_deser::deser_structure_linux_parameters(tokens)?, + ); + } + "secrets" => { + builder = builder.set_secrets( + crate::json_deser::deser_list_secret_list(tokens)?, + ); + } + "dependsOn" => { + builder = builder.set_depends_on( + crate::json_deser::deser_list_container_dependencies(tokens)?, + ); + } + "startTimeout" => { + builder = builder.set_start_timeout( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "stopTimeout" => { + builder = builder.set_stop_timeout( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "hostname" => { + builder = builder.set_hostname( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "user" => { + builder = builder.set_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "workingDirectory" => { + builder = builder.set_working_directory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "disableNetworking" => { + builder = builder.set_disable_networking( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "privileged" => { + builder = builder.set_privileged( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "readonlyRootFilesystem" => { + builder = builder.set_readonly_root_filesystem( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "dnsServers" => { + builder = builder.set_dns_servers( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "dnsSearchDomains" => { + builder = builder.set_dns_search_domains( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "extraHosts" => { + builder = builder.set_extra_hosts( + crate::json_deser::deser_list_host_entry_list(tokens)?, + ); + } + "dockerSecurityOptions" => { + builder = builder.set_docker_security_options( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "interactive" => { + builder = builder.set_interactive( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "pseudoTerminal" => { + builder = builder.set_pseudo_terminal( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "dockerLabels" => { + builder = builder.set_docker_labels( + crate::json_deser::deser_map_docker_labels_map(tokens)?, + ); + } + "ulimits" => { + builder = builder.set_ulimits( + crate::json_deser::deser_list_ulimit_list(tokens)?, + ); + } + "logConfiguration" => { + builder = builder.set_log_configuration( + crate::json_deser::deser_structure_log_configuration(tokens)?, + ); + } + "healthCheck" => { + builder = builder.set_health_check( + crate::json_deser::deser_structure_health_check(tokens)?, + ); + } + "systemControls" => { + builder = builder.set_system_controls( + crate::json_deser::deser_list_system_controls(tokens)?, + ); + } + "resourceRequirements" => { + builder = builder.set_resource_requirements( + crate::json_deser::deser_list_resource_requirements(tokens)?, + ); + } + "firelensConfiguration" => { + builder = builder.set_firelens_configuration( + crate::json_deser::deser_structure_firelens_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_volume<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Volume::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "host" => { + builder = builder.set_host( + crate::json_deser::deser_structure_host_volume_properties( + tokens, + )?, + ); + } + "dockerVolumeConfiguration" => { + builder = builder.set_docker_volume_configuration( + crate::json_deser::deser_structure_docker_volume_configuration( + tokens, + )?, + ); + } + "efsVolumeConfiguration" => { + builder = builder.set_efs_volume_configuration( + crate::json_deser::deser_structure_efs_volume_configuration( + tokens, + )?, + ); + } + "fsxWindowsFileServerVolumeConfiguration" => { + builder = builder.set_fsx_windows_file_server_volume_configuration( + crate::json_deser::deser_structure_f_sx_windows_file_server_volume_configuration(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_task_definition_placement_constraint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TaskDefinitionPlacementConstraint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::TaskDefinitionPlacementConstraintType::from(u.as_ref()) + ) + ).transpose()? + ); + } + "expression" => { + builder = builder.set_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inference_accelerator<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InferenceAccelerator::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "deviceName" => { + builder = builder.set_device_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "deviceType" => { + builder = builder.set_device_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_proxy_configuration_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_value_pair(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_container<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Container::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerArn" => { + builder = builder.set_container_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "taskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "imageDigest" => { + builder = builder.set_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "runtimeId" => { + builder = builder.set_runtime_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastStatus" => { + builder = builder.set_last_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "exitCode" => { + builder = builder.set_exit_code( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkBindings" => { + builder = builder.set_network_bindings( + crate::json_deser::deser_list_network_bindings(tokens)?, + ); + } + "networkInterfaces" => { + builder = builder.set_network_interfaces( + crate::json_deser::deser_list_network_interfaces(tokens)?, + ); + } + "healthStatus" => { + builder = builder.set_health_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HealthStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "managedAgents" => { + builder = builder.set_managed_agents( + crate::json_deser::deser_list_managed_agents(tokens)?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "memoryReservation" => { + builder = builder.set_memory_reservation( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "gpuIds" => { + builder = builder + .set_gpu_ids(crate::json_deser::deser_list_gpu_ids(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_overrides<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_container_override(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inference_accelerator_overrides<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inference_accelerator_override( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_execute_command_log_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExecuteCommandLogConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cloudWatchLogGroupName" => { + builder = builder.set_cloud_watch_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cloudWatchEncryptionEnabled" => { + builder = builder.set_cloud_watch_encryption_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "s3BucketName" => { + builder = builder.set_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "s3EncryptionEnabled" => { + builder = builder.set_s3_encryption_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "s3KeyPrefix" => { + builder = builder.set_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attachment_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_value_pair(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_repository_credentials<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RepositoryCredentials::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "credentialsParameter" => { + builder = builder.set_credentials_parameter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_port_mapping_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_port_mapping(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_environment_variables<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_value_pair(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_environment_files<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_environment_file(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_mount_point_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_mount_point(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_volume_from_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_volume_from(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_linux_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LinuxParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "capabilities" => { + builder = builder.set_capabilities( + crate::json_deser::deser_structure_kernel_capabilities(tokens)?, + ); + } + "devices" => { + builder = builder.set_devices( + crate::json_deser::deser_list_devices_list(tokens)?, + ); + } + "initProcessEnabled" => { + builder = builder.set_init_process_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "sharedMemorySize" => { + builder = builder.set_shared_memory_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tmpfs" => { + builder = builder + .set_tmpfs(crate::json_deser::deser_list_tmpfs_list(tokens)?); + } + "maxSwap" => { + builder = builder.set_max_swap( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "swappiness" => { + builder = builder.set_swappiness( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secret_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_secret(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_dependencies<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_container_dependency(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_host_entry_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_host_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_docker_labels_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ulimit_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ulimit(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_log_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logDriver" => { + builder = builder.set_log_driver( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogDriver::from(u.as_ref())) + }) + .transpose()?, + ); + } + "options" => { + builder = builder.set_options( + crate::json_deser::deser_map_log_configuration_options_map( + tokens, + )?, + ); + } + "secretOptions" => { + builder = builder.set_secret_options( + crate::json_deser::deser_list_secret_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_health_check<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HealthCheck::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "interval" => { + builder = builder.set_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "retries" => { + builder = builder.set_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "startPeriod" => { + builder = builder.set_start_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_system_controls<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_system_control(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_requirements<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_resource_requirement(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_firelens_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FirelensConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FirelensConfigurationType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "options" => { + builder = builder.set_options( + crate::json_deser::deser_map_firelens_configuration_options_map(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_host_volume_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HostVolumeProperties::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourcePath" => { + builder = builder.set_source_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_docker_volume_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DockerVolumeConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scope" => { + builder = builder.set_scope( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Scope::from(u.as_ref())) + }) + .transpose()?, + ); + } + "autoprovision" => { + builder = builder.set_autoprovision( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "driver" => { + builder = builder.set_driver( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "driverOpts" => { + builder = builder.set_driver_opts( + crate::json_deser::deser_map_string_map(tokens)?, + ); + } + "labels" => { + builder = builder + .set_labels(crate::json_deser::deser_map_string_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_efs_volume_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EfsVolumeConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fileSystemId" => { + builder = builder.set_file_system_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "rootDirectory" => { + builder = builder.set_root_directory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "transitEncryption" => { + builder = builder.set_transit_encryption( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EfsTransitEncryption::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "transitEncryptionPort" => { + builder = builder.set_transit_encryption_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "authorizationConfig" => { + builder = builder.set_authorization_config( + crate::json_deser::deser_structure_efs_authorization_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_f_sx_windows_file_server_volume_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FSxWindowsFileServerVolumeConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fileSystemId" => { + builder = builder.set_file_system_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "rootDirectory" => { + builder = builder.set_root_directory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorizationConfig" => { + builder = builder.set_authorization_config( + crate::json_deser::deser_structure_f_sx_windows_file_server_authorization_config(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_network_bindings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_network_binding(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_network_interfaces<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_network_interface(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_managed_agents<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_managed_agent(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_gpu_ids<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_container_override<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerOverride::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "environment" => { + builder = builder.set_environment( + crate::json_deser::deser_list_environment_variables(tokens)?, + ); + } + "environmentFiles" => { + builder = builder.set_environment_files( + crate::json_deser::deser_list_environment_files(tokens)?, + ); + } + "cpu" => { + builder = builder.set_cpu( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memory" => { + builder = builder.set_memory( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "memoryReservation" => { + builder = builder.set_memory_reservation( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "resourceRequirements" => { + builder = builder.set_resource_requirements( + crate::json_deser::deser_list_resource_requirements(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inference_accelerator_override<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InferenceAcceleratorOverride::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "deviceName" => { + builder = builder.set_device_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "deviceType" => { + builder = builder.set_device_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_port_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PortMapping::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerPort" => { + builder = builder.set_container_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "hostPort" => { + builder = builder.set_host_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "protocol" => { + builder = builder.set_protocol( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransportProtocol::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_environment_file<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EnvironmentFile::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EnvironmentFileType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mount_point<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MountPoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourceVolume" => { + builder = builder.set_source_volume( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "readOnly" => { + builder = builder.set_read_only( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_volume_from<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VolumeFrom::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourceContainer" => { + builder = builder.set_source_container( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "readOnly" => { + builder = builder.set_read_only( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kernel_capabilities<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KernelCapabilities::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "add" => { + builder = builder + .set_add(crate::json_deser::deser_list_string_list(tokens)?); + } + "drop" => { + builder = builder + .set_drop(crate::json_deser::deser_list_string_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_devices_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_device(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tmpfs_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tmpfs(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_secret<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Secret::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "valueFrom" => { + builder = builder.set_value_from( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_container_dependency<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerDependency::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerName" => { + builder = builder.set_container_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "condition" => { + builder = builder.set_condition( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContainerCondition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_host_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HostEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hostname" => { + builder = builder.set_hostname( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ipAddress" => { + builder = builder.set_ip_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ulimit<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Ulimit::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::UlimitName::from(u.as_ref())) + }) + .transpose()?, + ); + } + "softLimit" => { + builder = builder.set_soft_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "hardLimit" => { + builder = builder.set_hard_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_log_configuration_options_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_system_control<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SystemControl::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "namespace" => { + builder = builder.set_namespace( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_requirement<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceRequirement::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ResourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_firelens_configuration_options_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_string_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_efs_authorization_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EfsAuthorizationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "accessPointId" => { + builder = builder.set_access_point_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "iam" => { + builder = builder.set_iam( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EfsAuthorizationConfigIam::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_f_sx_windows_file_server_authorization_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FSxWindowsFileServerAuthorizationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "credentialsParameter" => { + builder = builder.set_credentials_parameter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "domain" => { + builder = builder.set_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_network_binding<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkBinding::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bindIP" => { + builder = builder.set_bind_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPort" => { + builder = builder.set_container_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "hostPort" => { + builder = builder.set_host_port( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "protocol" => { + builder = builder.set_protocol( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransportProtocol::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_network_interface<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkInterface::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attachmentId" => { + builder = builder.set_attachment_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "privateIpv4Address" => { + builder = builder.set_private_ipv4_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ipv6Address" => { + builder = builder.set_ipv6_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_managed_agent<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ManagedAgent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "lastStartedAt" => { + builder = builder.set_last_started_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ManagedAgentName::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "lastStatus" => { + builder = builder.set_last_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_device<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Device::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hostPath" => { + builder = builder.set_host_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "permissions" => { + builder = builder.set_permissions( + crate::json_deser::deser_list_device_cgroup_permissions( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tmpfs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tmpfs::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerPath" => { + builder = builder.set_container_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "mountOptions" => { + builder = builder.set_mount_options( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_device_cgroup_permissions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceCgroupPermission::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/ecs/src/json_errors.rs b/sdk/ecs/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/ecs/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/ecs/src/json_ser.rs b/sdk/ecs/src/json_ser.rs index ff18c0c376e3..90cd98ef4eda 100644 --- a/sdk/ecs/src/json_ser.rs +++ b/sdk/ecs/src/json_ser.rs @@ -2941,7 +2941,7 @@ pub fn serialize_structure_docker_volume_configuration( pub fn serialize_structure_efs_volume_configuration( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::EFSVolumeConfiguration, + input: &crate::model::EfsVolumeConfiguration, ) { if let Some(var_708) = &input.file_system_id { object.key("fileSystemId").string(var_708); @@ -3165,7 +3165,7 @@ pub fn serialize_structure_tmpfs( pub fn serialize_structure_efs_authorization_config( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::EFSAuthorizationConfig, + input: &crate::model::EfsAuthorizationConfig, ) { if let Some(var_757) = &input.access_point_id { object.key("accessPointId").string(var_757); diff --git a/sdk/ecs/src/lib.rs b/sdk/ecs/src/lib.rs index a7a0a492c684..9e502dfc076d 100644 --- a/sdk/ecs/src/lib.rs +++ b/sdk/ecs/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon Elastic Container Service //!

            Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes //! it easy to run, stop, and manage Docker containers on a cluster. You can host your @@ -23,22 +24,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/ecs/src/model.rs b/sdk/ecs/src/model.rs index 96cce243dda2..2d2be2f3f0d3 100644 --- a/sdk/ecs/src/model.rs +++ b/sdk/ecs/src/model.rs @@ -3,30 +3,20 @@ /// deployment. An Amazon ECS task set includes details such as the desired number of tasks, how /// many tasks are running, and whether the task set serves production traffic.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TaskSet { ///

            The ID of the task set.

            - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

            The Amazon Resource Name (ARN) of the task set.

            - #[serde(rename = "taskSetArn")] - #[serde(default)] pub task_set_arn: std::option::Option, ///

            The Amazon Resource Name (ARN) of the service the task set exists in.

            - #[serde(rename = "serviceArn")] - #[serde(default)] pub service_arn: std::option::Option, ///

            The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists /// in.

            - #[serde(rename = "clusterArn")] - #[serde(default)] pub cluster_arn: std::option::Option, ///

            The tag specified when a task set is started. If the task set is created by an AWS CodeDeploy /// deployment, the startedBy parameter is CODE_DEPLOY. For a task /// set created for an external deployment, the startedBy field isn't used.

            - #[serde(rename = "startedBy")] - #[serde(default)] pub started_by: std::option::Option, ///

            The external ID associated with the task set.

            ///

            If a task set is created by an AWS CodeDeploy deployment, the externalId parameter @@ -34,8 +24,6 @@ pub struct TaskSet { ///

            If a task set is created for an external deployment and is associated with a service /// discovery registry, the externalId parameter contains the /// ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute.

            - #[serde(rename = "externalId")] - #[serde(default)] pub external_id: std::option::Option, ///

            The status of the task set. The following describes each state:

            ///
            @@ -53,83 +41,49 @@ pub struct TaskSet { /// targets are being deregistered from their target group.

            /// ///
            - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

            The task definition the task set is using.

            - #[serde(rename = "taskDefinition")] - #[serde(default)] pub task_definition: std::option::Option, ///

            The computed desired count for the task set. This is calculated by multiplying the /// service's desiredCount by the task set's scale percentage. The /// result is always rounded up. For example, if the computed desired count is 1.2, it /// rounds up to 2 tasks.

            - #[serde(rename = "computedDesiredCount")] - #[serde(default)] pub computed_desired_count: i32, ///

            The number of tasks in the task set that are in the PENDING status during /// a deployment. A task in the PENDING state is preparing to enter the /// RUNNING state. A task set enters the PENDING status when /// it launches for the first time or when it is restarted after being in the /// STOPPED state.

            - #[serde(rename = "pendingCount")] - #[serde(default)] pub pending_count: i32, ///

            The number of tasks in the task set that are in the RUNNING status during /// a deployment. A task in the RUNNING state is running and ready for /// use.

            - #[serde(rename = "runningCount")] - #[serde(default)] pub running_count: i32, ///

            The Unix timestamp for when the task set was created.

            - #[serde(rename = "createdAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_at: std::option::Option, ///

            The Unix timestamp for when the task set was last updated.

            - #[serde(rename = "updatedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub updated_at: std::option::Option, ///

            The launch type the tasks in the task set are using. For more information, see Amazon ECS /// launch types in the Amazon Elastic Container Service Developer Guide.

            - #[serde(rename = "launchType")] - #[serde(default)] pub launch_type: std::option::Option, ///

            The capacity provider strategy associated with the task set.

            - #[serde(rename = "capacityProviderStrategy")] - #[serde(default)] pub capacity_provider_strategy: std::option::Option>, ///

            The AWS Fargate platform version on which the tasks in the task set are running. A /// platform version is only specified for tasks run on AWS Fargate. For more information, see /// AWS Fargate platform /// versions in the Amazon Elastic Container Service Developer Guide.

            - #[serde(rename = "platformVersion")] - #[serde(default)] pub platform_version: std::option::Option, ///

            The network configuration for the task set.

            - #[serde(rename = "networkConfiguration")] - #[serde(default)] pub network_configuration: std::option::Option, ///

            Details on a load balancer that is used with a task set.

            - #[serde(rename = "loadBalancers")] - #[serde(default)] pub load_balancers: std::option::Option>, ///

            The details of the service discovery registries to assign to this task set. For more /// information, see Service /// discovery.

            - #[serde(rename = "serviceRegistries")] - #[serde(default)] pub service_registries: std::option::Option>, ///

            A floating-point percentage of the desired number of tasks to place and keep running /// in the task set.

            - #[serde(rename = "scale")] - #[serde(default)] pub scale: std::option::Option, ///

            The stability status, which indicates whether the task set has reached a steady state. /// If the following conditions are met, the task set will be in @@ -153,15 +107,8 @@ pub struct TaskSet { ///

          ///

          If any of those conditions are not met, the stability status returns /// STABILIZING.

          - #[serde(rename = "stabilityStatus")] - #[serde(default)] pub stability_status: std::option::Option, ///

          The Unix timestamp for when the task set stability status was retrieved.

          - #[serde(rename = "stabilityStatusAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub stability_status_at: std::option::Option, ///

          The metadata that you apply to the task set to help you categorize and organize them. /// Each tag consists of a key and an optional value, both of which you define.

          @@ -196,8 +143,6 @@ pub struct TaskSet { /// this prefix do not count against your tags per resource limit.

          /// ///
        - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for TaskSet { @@ -641,17 +586,13 @@ impl TaskSet { /// ///
      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

      One part of a key-value pair that make up a tag. A key is a general label /// that acts like a category for more specific tag values.

      - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

      The optional part of a key-value pair that make up a tag. A value acts as /// a descriptor within a tag category (key).

      - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -736,7 +677,7 @@ impl std::convert::From<&str> for StabilityStatus { impl std::str::FromStr for StabilityStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StabilityStatus::from(s)) } } @@ -754,29 +695,16 @@ impl AsRef for StabilityStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StabilityStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      A floating-point percentage of the desired number of tasks to place and keep running /// in the task set.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scale { ///

      The value, specified as a percent total of a service's desiredCount, to /// scale the task set. Accepted values are numbers between 0 and 100.

      - #[serde(rename = "value")] - #[serde(default)] pub value: f64, ///

      The unit of measure for the scale value.

      - #[serde(rename = "unit")] - #[serde(default)] pub unit: std::option::Option, } impl std::fmt::Debug for Scale { @@ -858,7 +786,7 @@ impl std::convert::From<&str> for ScaleUnit { impl std::str::FromStr for ScaleUnit { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ScaleUnit::from(s)) } } @@ -875,30 +803,17 @@ impl AsRef for ScaleUnit { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ScaleUnit { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      Details of the service registry.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceRegistry { ///

      The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is /// AWS Cloud Map. For more information, see CreateService.

      - #[serde(rename = "registryArn")] - #[serde(default)] pub registry_arn: std::option::Option, ///

      The port value used if your service discovery service specified an SRV record. This /// field may be used if both the awsvpc network mode and SRV records are /// used.

      - #[serde(rename = "port")] - #[serde(default)] pub port: std::option::Option, ///

      The container name value, already specified in the task definition, to be used for /// your service discovery service. If the task definition that your service task specifies @@ -908,8 +823,6 @@ pub struct ServiceRegistry { /// awsvpc network mode and a type SRV DNS record is used, you must specify /// either a containerName and containerPort combination or a /// port value, but not both.

      - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

      The port value, already specified in the task definition, to be used for your service /// discovery service. If the task definition your service task specifies uses the @@ -919,8 +832,6 @@ pub struct ServiceRegistry { /// awsvpc network mode and a type SRV DNS record is used, you must specify /// either a containerName and containerPort combination or a /// port value, but not both.

      - #[serde(rename = "containerPort")] - #[serde(default)] pub container_port: std::option::Option, } impl std::fmt::Debug for ServiceRegistry { @@ -1023,7 +934,7 @@ impl ServiceRegistry { ///

      For specific notes and restrictions regarding the use of load balancers with services /// and task sets, see the CreateService and CreateTaskSet actions.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LoadBalancer { ///

      The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or /// task set.

      @@ -1043,27 +954,19 @@ pub struct LoadBalancer { /// your target groups because tasks that use the awsvpc network mode are /// associated with an elastic network interface, not an Amazon EC2 instance.

      /// - #[serde(rename = "targetGroupArn")] - #[serde(default)] pub target_group_arn: std::option::Option, ///

      The name of the load balancer to associate with the Amazon ECS service or task set.

      ///

      A load balancer name is only specified when using a Classic Load Balancer. If you are using an Application Load Balancer /// or a Network Load Balancer the load balancer name parameter should be omitted.

      - #[serde(rename = "loadBalancerName")] - #[serde(default)] pub load_balancer_name: std::option::Option, ///

      The name of the container (as it appears in a container definition) to associate with /// the load balancer.

      - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

      The port on the container to associate with the load balancer. This port must /// correspond to a containerPort in the task definition the tasks in the /// service are using. For tasks that use the EC2 launch type, the container /// instance they are launched on must allow ingress traffic on the hostPort of /// the port mapping.

      - #[serde(rename = "containerPort")] - #[serde(default)] pub container_port: std::option::Option, } impl std::fmt::Debug for LoadBalancer { @@ -1177,14 +1080,12 @@ impl LoadBalancer { ///

      An object representing the network configuration for a task or service.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkConfiguration { ///

      The VPC subnets and security groups associated with a task.

      /// ///

      All specified subnets and security groups must be from the same VPC.

      ///
      - #[serde(rename = "awsvpcConfiguration")] - #[serde(default)] pub awsvpc_configuration: std::option::Option, } impl std::fmt::Debug for NetworkConfiguration { @@ -1235,15 +1136,13 @@ impl NetworkConfiguration { ///

      An object representing the networking details for a task or service.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AwsVpcConfiguration { ///

      The IDs of the subnets associated with the task or service. There is a limit of 16 /// subnets that can be specified per AwsVpcConfiguration.

      /// ///

      All specified subnets must be from the same VPC.

      ///
      - #[serde(rename = "subnets")] - #[serde(default)] pub subnets: std::option::Option>, ///

      The IDs of the security groups associated with the task or service. If you do not /// specify a security group, the default security group for the VPC is used. There is a @@ -1252,13 +1151,9 @@ pub struct AwsVpcConfiguration { /// ///

      All specified security groups must be from the same VPC.

      /// - #[serde(rename = "securityGroups")] - #[serde(default)] pub security_groups: std::option::Option>, ///

      Whether the task's elastic network interface receives a public IP address. The default /// value is DISABLED.

      - #[serde(rename = "assignPublicIp")] - #[serde(default)] pub assign_public_ip: std::option::Option, } impl std::fmt::Debug for AwsVpcConfiguration { @@ -1365,7 +1260,7 @@ impl std::convert::From<&str> for AssignPublicIp { impl std::str::FromStr for AssignPublicIp { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssignPublicIp::from(s)) } } @@ -1383,15 +1278,6 @@ impl AsRef for AssignPublicIp { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssignPublicIp { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      The details of a capacity provider strategy. A capacity provider strategy can be set /// when using the RunTask or CreateCluster APIs or as @@ -1408,11 +1294,9 @@ impl<'de> serde::Deserialize<'de> for AssignPublicIp { /// available to all accounts and only need to be associated with a cluster to be used in a /// capacity provider strategy.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CapacityProviderStrategyItem { ///

      The short name of the capacity provider.

      - #[serde(rename = "capacityProvider")] - #[serde(default)] pub capacity_provider: std::option::Option, ///

      The weight value designates the relative percentage of the total /// number of tasks launched that should use the specified capacity provider. The @@ -1433,15 +1317,11 @@ pub struct CapacityProviderStrategyItem { /// capacityProviderB, then for every one task that is run using /// capacityProviderA, four tasks would use /// capacityProviderB.

      - #[serde(rename = "weight")] - #[serde(default)] pub weight: i32, ///

      The base value designates how many tasks, at a minimum, to run on /// the specified capacity provider. Only one capacity provider in a capacity provider /// strategy can have a base defined. If no value is specified, the /// default value of 0 is used.

      - #[serde(rename = "base")] - #[serde(default)] pub base: i32, } impl std::fmt::Debug for CapacityProviderStrategyItem { @@ -1562,7 +1442,7 @@ impl std::convert::From<&str> for LaunchType { impl std::str::FromStr for LaunchType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LaunchType::from(s)) } } @@ -1581,72 +1461,41 @@ impl AsRef for LaunchType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LaunchType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      Details on a service within a cluster

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Service { ///

      The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the Region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

      - #[serde(rename = "serviceArn")] - #[serde(default)] pub service_arn: std::option::Option, ///

      The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within /// a cluster, but you can have similarly named services in multiple clusters within a /// Region or across multiple Regions.

      - #[serde(rename = "serviceName")] - #[serde(default)] pub service_name: std::option::Option, ///

      The Amazon Resource Name (ARN) of the cluster that hosts the service.

      - #[serde(rename = "clusterArn")] - #[serde(default)] pub cluster_arn: std::option::Option, ///

      A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the /// container name (as it appears in a container definition), and the container port to /// access from the load balancer.

      - #[serde(rename = "loadBalancers")] - #[serde(default)] pub load_balancers: std::option::Option>, ///

      The details of the service discovery registries to assign to this service. For more /// information, see Service /// Discovery.

      - #[serde(rename = "serviceRegistries")] - #[serde(default)] pub service_registries: std::option::Option>, ///

      The status of the service. The valid values are ACTIVE, /// DRAINING, or INACTIVE.

      - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

      The desired number of instantiations of the task definition to keep running on the /// service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

      - #[serde(rename = "desiredCount")] - #[serde(default)] pub desired_count: i32, ///

      The number of tasks in the cluster that are in the RUNNING state.

      - #[serde(rename = "runningCount")] - #[serde(default)] pub running_count: i32, ///

      The number of tasks in the cluster that are in the PENDING state.

      - #[serde(rename = "pendingCount")] - #[serde(default)] pub pending_count: i32, ///

      The infrastructure on which your service is running. For more information, see Amazon ECS /// launch types in the Amazon Elastic Container Service Developer Guide.

      - #[serde(rename = "launchType")] - #[serde(default)] pub launch_type: std::option::Option, ///

      The capacity provider strategy associated with the service.

      - #[serde(rename = "capacityProviderStrategy")] - #[serde(default)] pub capacity_provider_strategy: std::option::Option>, ///

      The platform version on which to run your service. A platform version is only @@ -1654,65 +1503,38 @@ pub struct Service { /// specified, the LATEST platform version is used by default. For more /// information, see AWS Fargate Platform /// Versions in the Amazon Elastic Container Service Developer Guide.

      - #[serde(rename = "platformVersion")] - #[serde(default)] pub platform_version: std::option::Option, ///

      The task definition to use for tasks in the service. This value is specified when the /// service is created with CreateService, and it can be modified with /// UpdateService.

      - #[serde(rename = "taskDefinition")] - #[serde(default)] pub task_definition: std::option::Option, ///

      Optional deployment parameters that control how many tasks run during the deployment /// and the ordering of stopping and starting tasks.

      - #[serde(rename = "deploymentConfiguration")] - #[serde(default)] pub deployment_configuration: std::option::Option, ///

      Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL /// deployment. An Amazon ECS task set includes details such as the desired number of tasks, how /// many tasks are running, and whether the task set serves production traffic.

      - #[serde(rename = "taskSets")] - #[serde(default)] pub task_sets: std::option::Option>, ///

      The current state of deployments for the service.

      - #[serde(rename = "deployments")] - #[serde(default)] pub deployments: std::option::Option>, ///

      The ARN of the IAM role associated with the service that allows the Amazon ECS container /// agent to register container instances with an Elastic Load Balancing load balancer.

      - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

      The event stream for your service. A maximum of 100 of the latest events are /// displayed.

      - #[serde(rename = "events")] - #[serde(default)] pub events: std::option::Option>, ///

      The Unix timestamp for when the service was created.

      - #[serde(rename = "createdAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_at: std::option::Option, ///

      The placement constraints for the tasks in the service.

      - #[serde(rename = "placementConstraints")] - #[serde(default)] pub placement_constraints: std::option::Option>, ///

      The placement strategy that determines how tasks for the service are placed.

      - #[serde(rename = "placementStrategy")] - #[serde(default)] pub placement_strategy: std::option::Option>, ///

      The VPC subnet and security group configuration for tasks that receive their own /// elastic network interface by using the awsvpc networking mode.

      - #[serde(rename = "networkConfiguration")] - #[serde(default)] pub network_configuration: std::option::Option, ///

      The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy /// Elastic Load Balancing target health checks after a task has first started.

      - #[serde(rename = "healthCheckGracePeriodSeconds")] - #[serde(default)] pub health_check_grace_period_seconds: std::option::Option, ///

      The scheduling strategy to use for the service. For more information, see Services.

      ///

      There are two service scheduler strategies available:

      @@ -1738,14 +1560,10 @@ pub struct Service { /// /// ///
    - #[serde(rename = "schedulingStrategy")] - #[serde(default)] pub scheduling_strategy: std::option::Option, ///

    The deployment controller type the service is using. When using the DescribeServices /// API, this field is omitted if the service is using the ECS deployment /// controller type.

    - #[serde(rename = "deploymentController")] - #[serde(default)] pub deployment_controller: std::option::Option, ///

    The metadata that you apply to the service to help you categorize and organize them. /// Each tag consists of a key and an optional value, both of which you define.

    @@ -1780,29 +1598,19 @@ pub struct Service { /// this prefix do not count against your tags per resource limit.

    /// /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The principal that created the service.

    - #[serde(rename = "createdBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    Specifies whether to enable Amazon ECS managed tags for the tasks in the service. For more /// information, see Tagging Your Amazon ECS /// Resources in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "enableECSManagedTags")] - #[serde(default)] pub enable_ecs_managed_tags: bool, ///

    Specifies whether to propagate the tags from the task definition or the service to the /// task. If no value is specified, the tags are not propagated.

    - #[serde(rename = "propagateTags")] - #[serde(default)] pub propagate_tags: std::option::Option, ///

    Whether or not the execute command functionality is enabled for the service. If /// true, the execute command functionality is enabled for all containers /// in tasks as part of the service.

    - #[serde(rename = "enableExecuteCommand")] - #[serde(default)] pub enable_execute_command: bool, } impl std::fmt::Debug for Service { @@ -2355,7 +2163,7 @@ impl std::convert::From<&str> for PropagateTags { impl std::str::FromStr for PropagateTags { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PropagateTags::from(s)) } } @@ -2373,19 +2181,10 @@ impl AsRef for PropagateTags { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PropagateTags { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The deployment controller to use for the service. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeploymentController { ///

    The deployment controller type to use.

    ///

    There are three deployment controller types available:

    @@ -2411,8 +2210,6 @@ pub struct DeploymentController { /// process for an Amazon ECS service.

    /// /// - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for DeploymentController { @@ -2511,7 +2308,7 @@ impl std::convert::From<&str> for DeploymentControllerType { impl std::str::FromStr for DeploymentControllerType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeploymentControllerType::from(s)) } } @@ -2530,15 +2327,6 @@ impl AsRef for DeploymentControllerType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeploymentControllerType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2568,7 +2356,7 @@ impl std::convert::From<&str> for SchedulingStrategy { impl std::str::FromStr for SchedulingStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SchedulingStrategy::from(s)) } } @@ -2586,20 +2374,11 @@ impl AsRef for SchedulingStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SchedulingStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The task placement strategy for a task or service. For more information, see Task Placement Strategies in the /// Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PlacementStrategy { ///

    The type of placement strategy. The random placement strategy randomly /// places tasks on available candidates. The spread placement strategy spreads @@ -2608,8 +2387,6 @@ pub struct PlacementStrategy { /// least available amount of the resource that is specified with the field /// parameter. For example, if you binpack on memory, a task is placed on the instance with /// the least amount of remaining memory (but still enough to run the task).

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The field to apply the placement strategy against. For the spread /// placement strategy, valid values are instanceId (or host, @@ -2618,8 +2395,6 @@ pub struct PlacementStrategy { /// binpack placement strategy, valid values are cpu and /// memory. For the random placement strategy, this field is /// not used.

    - #[serde(rename = "field")] - #[serde(default)] pub field: std::option::Option, } impl std::fmt::Debug for PlacementStrategy { @@ -2719,7 +2494,7 @@ impl std::convert::From<&str> for PlacementStrategyType { impl std::str::FromStr for PlacementStrategyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlacementStrategyType::from(s)) } } @@ -2738,15 +2513,6 @@ impl AsRef for PlacementStrategyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlacementStrategyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing a constraint on task placement. For more information, see /// Task Placement Constraints in the @@ -2756,21 +2522,17 @@ impl<'de> serde::Deserialize<'de> for PlacementStrategyType { /// are not supported.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PlacementConstraint { ///

    The type of constraint. Use distinctInstance to ensure that each task in /// a particular group is running on a different container instance. Use /// memberOf to restrict the selection to a group of valid /// candidates.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    A cluster query language expression to apply to the constraint. You cannot specify an /// expression if the constraint type is distinctInstance. For more /// information, see Cluster Query Language in the /// Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "expression")] - #[serde(default)] pub expression: std::option::Option, } impl std::fmt::Debug for PlacementConstraint { @@ -2862,7 +2624,7 @@ impl std::convert::From<&str> for PlacementConstraintType { impl std::str::FromStr for PlacementConstraintType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlacementConstraintType::from(s)) } } @@ -2880,34 +2642,16 @@ impl AsRef for PlacementConstraintType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlacementConstraintType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details on an event associated with a service.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceEvent { ///

    The ID string of the event.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The Unix timestamp for when the event was triggered.

    - #[serde(rename = "createdAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_at: std::option::Option, ///

    The event message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ServiceEvent { @@ -2977,11 +2721,9 @@ impl ServiceEvent { ///

    The details of an Amazon ECS service deployment. This is used only when a service uses the /// ECS deployment controller type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Deployment { ///

    The ID of the deployment.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The status of the deployment. The following describes each state:

    ///
    @@ -2999,28 +2741,18 @@ pub struct Deployment { ///

    A deployment that has been completely replaced.

    /// ///
    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The most recent task definition that was specified for the tasks in the service to /// use.

    - #[serde(rename = "taskDefinition")] - #[serde(default)] pub task_definition: std::option::Option, ///

    The most recent desired count of tasks that was specified for the service to deploy or /// maintain.

    - #[serde(rename = "desiredCount")] - #[serde(default)] pub desired_count: i32, ///

    The number of tasks in the deployment that are in the PENDING /// status.

    - #[serde(rename = "pendingCount")] - #[serde(default)] pub pending_count: i32, ///

    The number of tasks in the deployment that are in the RUNNING /// status.

    - #[serde(rename = "runningCount")] - #[serde(default)] pub running_count: i32, ///

    The number of consecutively failed tasks in the deployment. A task is considered a /// failure if the service scheduler can't launch the task, the task doesn't transition to a @@ -3030,45 +2762,25 @@ pub struct Deployment { ///

    Once a service deployment has one or more successfully running tasks, the failed /// task count resets to zero and stops being evaluated.

    /// - #[serde(rename = "failedTasks")] - #[serde(default)] pub failed_tasks: i32, ///

    The Unix timestamp for when the service deployment was created.

    - #[serde(rename = "createdAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_at: std::option::Option, ///

    The Unix timestamp for when the service deployment was last updated.

    - #[serde(rename = "updatedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub updated_at: std::option::Option, ///

    The capacity provider strategy that the deployment is using.

    - #[serde(rename = "capacityProviderStrategy")] - #[serde(default)] pub capacity_provider_strategy: std::option::Option>, ///

    The launch type the tasks in the service are using. For more information, see Amazon ECS /// Launch Types in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "launchType")] - #[serde(default)] pub launch_type: std::option::Option, ///

    The platform version on which your tasks in the service are running. A platform /// version is only specified for tasks using the Fargate launch type. If one /// is not specified, the LATEST platform version is used by default. For more /// information, see AWS Fargate Platform /// Versions in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "platformVersion")] - #[serde(default)] pub platform_version: std::option::Option, ///

    The VPC subnet and security group configuration for tasks that receive their own /// elastic network interface by using the awsvpc networking mode.

    - #[serde(rename = "networkConfiguration")] - #[serde(default)] pub network_configuration: std::option::Option, /// ///

    The rolloutState of a service is only returned for services that use @@ -3081,12 +2793,8 @@ pub struct Deployment { /// reach a steady state and circuit breaker is enabled, the deployment will transition to a /// FAILED state. A deployment in FAILED state will launch no /// new tasks. For more information, see DeploymentCircuitBreaker.

    - #[serde(rename = "rolloutState")] - #[serde(default)] pub rollout_state: std::option::Option, ///

    A description of the rollout state of a deployment.

    - #[serde(rename = "rolloutStateReason")] - #[serde(default)] pub rollout_state_reason: std::option::Option, } impl std::fmt::Debug for Deployment { @@ -3398,7 +3106,7 @@ impl std::convert::From<&str> for DeploymentRolloutState { impl std::str::FromStr for DeploymentRolloutState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeploymentRolloutState::from(s)) } } @@ -3417,20 +3125,11 @@ impl AsRef for DeploymentRolloutState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeploymentRolloutState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Optional deployment parameters that control how many tasks run during a deployment and /// the ordering of stopping and starting tasks.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeploymentConfiguration { /// ///

    The deployment circuit breaker can only be used for services using the rolling @@ -3441,8 +3140,6 @@ pub struct DeploymentConfiguration { /// circuit breaker is enabled, a service deployment will transition to a failed state and /// stop launching new tasks. If rollback is enabled, when a service deployment fails, the /// service is rolled back to the last deployment that completed successfully.

    - #[serde(rename = "deploymentCircuitBreaker")] - #[serde(default)] pub deployment_circuit_breaker: std::option::Option, ///

    If a service is using the rolling update (ECS) deployment type, the /// maximum percent parameter represents an upper limit @@ -3463,8 +3160,6 @@ pub struct DeploymentConfiguration { /// in the DRAINING state. If the tasks in the service use the /// Fargate launch type, the maximum percent value is not used, although it is /// returned when describing your service.

    - #[serde(rename = "maximumPercent")] - #[serde(default)] pub maximum_percent: std::option::Option, ///

    If a service is using the rolling update (ECS) deployment type, the /// minimum healthy percent represents a lower limit on @@ -3488,8 +3183,6 @@ pub struct DeploymentConfiguration { /// are in the DRAINING state. If the tasks in the service use the /// Fargate launch type, the minimum healthy percent value is not used, /// although it is returned when describing your service.

    - #[serde(rename = "minimumHealthyPercent")] - #[serde(default)] pub minimum_healthy_percent: std::option::Option, } impl std::fmt::Debug for DeploymentConfiguration { @@ -3624,17 +3317,13 @@ impl DeploymentConfiguration { /// failure. For more information, see Rolling /// update in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeploymentCircuitBreaker { ///

    Whether to enable the deployment circuit breaker logic for the service.

    - #[serde(rename = "enable")] - #[serde(default)] pub enable: bool, ///

    Whether to enable Amazon ECS to roll back the service if a service deployment fails. If /// rollback is enabled, when a service deployment fails, the service is rolled back to the /// last deployment that completed successfully.

    - #[serde(rename = "rollback")] - #[serde(default)] pub rollback: bool, } impl std::fmt::Debug for DeploymentCircuitBreaker { @@ -3694,19 +3383,13 @@ impl DeploymentCircuitBreaker { ///

    A failed resource. For a list of common causes, see API failure /// reasons in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Failure { ///

    The Amazon Resource Name (ARN) of the failed resource.

    - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The reason for the failure.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The details of the failure.

    - #[serde(rename = "detail")] - #[serde(default)] pub detail: std::option::Option, } impl std::fmt::Debug for Failure { @@ -3776,20 +3459,14 @@ impl Failure { ///

    An EC2 instance that is running the Amazon ECS agent and has been registered with a /// cluster.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerInstance { ///

    The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

    - #[serde(rename = "containerInstanceArn")] - #[serde(default)] pub container_instance_arn: std::option::Option, ///

    The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2 /// instance ID. For external instances, this value is the AWS Systems Manager managed instance ID.

    - #[serde(rename = "ec2InstanceId")] - #[serde(default)] pub ec2_instance_id: std::option::Option, ///

    The capacity provider associated with the container instance.

    - #[serde(rename = "capacityProviderName")] - #[serde(default)] pub capacity_provider_name: std::option::Option, ///

    The version counter for the container instance. Every time a container instance /// experiences a change that triggers a CloudWatch event, the version counter is @@ -3798,13 +3475,9 @@ pub struct ContainerInstance { /// with the version reported in CloudWatch Events for the container instance (inside the /// detail object) to verify that the version in your event stream is /// current.

    - #[serde(rename = "version")] - #[serde(default)] pub version: i64, ///

    The version information for the Amazon ECS container agent and Docker daemon running on the /// container instance.

    - #[serde(rename = "versionInfo")] - #[serde(default)] pub version_info: std::option::Option, ///

    For CPU and memory resource types, this parameter describes the remaining CPU and /// memory that has not already been allocated to tasks and is therefore available for new @@ -3813,8 +3486,6 @@ pub struct ContainerInstance { /// have reserved port mappings on the host (with the host or /// bridge network mode). Any port that is not specified here is available /// for new tasks.

    - #[serde(rename = "remainingResources")] - #[serde(default)] pub remaining_resources: std::option::Option>, ///

    For CPU and memory resource types, this parameter describes the amount of each /// resource that was available on the container instance when the container agent @@ -3822,8 +3493,6 @@ pub struct ContainerInstance { /// can be allocated on this container instance to tasks. For port resource types, this /// parameter describes the ports that were reserved by the Amazon ECS container agent when it /// registered the container instance with Amazon ECS.

    - #[serde(rename = "registeredResources")] - #[serde(default)] pub registered_resources: std::option::Option>, ///

    The status of the container instance. The valid values are REGISTERING, /// REGISTRATION_FAILED, ACTIVE, INACTIVE, @@ -3842,52 +3511,31 @@ pub struct ContainerInstance { /// instance and any service tasks running on the container instance are removed if /// possible. For more information, see Container Instance Draining in the /// Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The reason that the container instance reached its current status.

    - #[serde(rename = "statusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    This parameter returns true if the agent is connected to Amazon ECS. /// Registered instances with an agent that may be unhealthy or stopped return /// false. Only instances connected to an agent can accept placement /// requests.

    - #[serde(rename = "agentConnected")] - #[serde(default)] pub agent_connected: bool, ///

    The number of tasks on the container instance that are in the RUNNING /// status.

    - #[serde(rename = "runningTasksCount")] - #[serde(default)] pub running_tasks_count: i32, ///

    The number of tasks on the container instance that are in the PENDING /// status.

    - #[serde(rename = "pendingTasksCount")] - #[serde(default)] pub pending_tasks_count: i32, ///

    The status of the most recent agent update. If an update has never been requested, /// this value is NULL.

    - #[serde(rename = "agentUpdateStatus")] - #[serde(default)] pub agent_update_status: std::option::Option, ///

    The attributes set for the container instance, either by the Amazon ECS container agent at /// instance registration or manually with the PutAttributes /// operation.

    - #[serde(rename = "attributes")] - #[serde(default)] pub attributes: std::option::Option>, ///

    The Unix timestamp for when the container instance was registered.

    - #[serde(rename = "registeredAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub registered_at: std::option::Option, ///

    The resources attached to a container instance, such as elastic network /// interfaces.

    - #[serde(rename = "attachments")] - #[serde(default)] pub attachments: std::option::Option>, ///

    The metadata that you apply to the container instance to help you categorize and /// organize them. Each tag consists of a key and an optional value, both of which you @@ -3923,8 +3571,6 @@ pub struct ContainerInstance { /// this prefix do not count against your tags per resource limit.

    /// /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for ContainerInstance { @@ -4232,26 +3878,18 @@ impl ContainerInstance { ///

    An object representing a container instance or task attachment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Attachment { ///

    The unique identifier for the attachment.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The type of the attachment, such as ElasticNetworkInterface.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The status of the attachment. Valid values are PRECREATED, /// CREATED, ATTACHING, ATTACHED, /// DETACHING, DETACHED, and DELETED.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    Details of the attachment. For elastic network interfaces, this includes the network /// interface ID, the MAC address, the subnet ID, and the private IPv4 address.

    - #[serde(rename = "details")] - #[serde(default)] pub details: std::option::Option>, } impl std::fmt::Debug for Attachment { @@ -4338,17 +3976,13 @@ impl Attachment { ///

    A key-value pair object.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeyValuePair { ///

    The name of the key-value pair. For environment variables, this is the name of the /// environment variable.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The value of the key-value pair. For environment variables, this is the value of the /// environment variable.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for KeyValuePair { @@ -4409,30 +4043,22 @@ impl KeyValuePair { /// you to extend the Amazon ECS data model by adding custom metadata to your resources. For more /// information, see Attributes in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Attribute { ///

    The name of the attribute. The name must contain between 1 and 128 /// characters and name may contain letters (uppercase and lowercase), numbers, hyphens, /// underscores, forward slashes, back slashes, or periods.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The value of the attribute. The value must contain between 1 and 128 /// characters and may contain letters (uppercase and lowercase), numbers, hyphens, /// underscores, periods, at signs (@), forward slashes, back slashes, colons, or spaces. /// The value cannot contain any leading or trailing whitespace.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The type of the target with which to attach the attribute. This parameter is required /// if you use the short form ID for a resource instead of the full ARN.

    - #[serde(rename = "targetType")] - #[serde(default)] pub target_type: std::option::Option, ///

    The ID of the target. You can specify the short form ID for a resource or the full /// Amazon Resource Name (ARN).

    - #[serde(rename = "targetId")] - #[serde(default)] pub target_id: std::option::Option, } impl std::fmt::Debug for Attribute { @@ -4547,7 +4173,7 @@ impl std::convert::From<&str> for TargetType { impl std::str::FromStr for TargetType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetType::from(s)) } } @@ -4564,15 +4190,6 @@ impl AsRef for TargetType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4610,7 +4227,7 @@ impl std::convert::From<&str> for AgentUpdateStatus { impl std::str::FromStr for AgentUpdateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AgentUpdateStatus::from(s)) } } @@ -4632,49 +4249,28 @@ impl AsRef for AgentUpdateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AgentUpdateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the resources available for a container instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Resource { ///

    The name of the resource, such as CPU, MEMORY, /// PORTS, PORTS_UDP, or a user-defined resource.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The type of the resource, such as INTEGER, DOUBLE, /// LONG, or STRINGSET.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    When the doubleValue type is set, the value of the resource must be a /// double precision floating-point type.

    - #[serde(rename = "doubleValue")] - #[serde(default)] pub double_value: f64, ///

    When the longValue type is set, the value of the resource must be an /// extended precision floating-point type.

    - #[serde(rename = "longValue")] - #[serde(default)] pub long_value: i64, ///

    When the integerValue type is set, the value of the resource must be an /// integer.

    - #[serde(rename = "integerValue")] - #[serde(default)] pub integer_value: i32, ///

    When the stringSetValue type is set, the value of the resource must be a /// string type.

    - #[serde(rename = "stringSetValue")] - #[serde(default)] pub string_set_value: std::option::Option>, } impl std::fmt::Debug for Resource { @@ -4789,20 +4385,14 @@ impl Resource { ///

    The Docker and Amazon ECS container agent version information about a container /// instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VersionInfo { ///

    The version number of the Amazon ECS container agent.

    - #[serde(rename = "agentVersion")] - #[serde(default)] pub agent_version: std::option::Option, ///

    The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent /// GitHub repository.

    - #[serde(rename = "agentHash")] - #[serde(default)] pub agent_hash: std::option::Option, ///

    The Docker version running on the container instance.

    - #[serde(rename = "dockerVersion")] - #[serde(default)] pub docker_version: std::option::Option, } impl std::fmt::Debug for VersionInfo { @@ -4910,7 +4500,7 @@ impl std::convert::From<&str> for ContainerInstanceStatus { impl std::str::FromStr for ContainerInstanceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContainerInstanceStatus::from(s)) } } @@ -4931,34 +4521,19 @@ impl AsRef for ContainerInstanceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContainerInstanceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A regional grouping of one or more container instances on which you can run task /// requests. Each account receives a default cluster the first time you use the Amazon ECS /// service, but you may also create other clusters. Clusters may contain more than one /// instance type simultaneously.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Cluster { ///

    The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

    - #[serde(rename = "clusterArn")] - #[serde(default)] pub cluster_arn: std::option::Option, ///

    A user-generated string that you use to identify your cluster.

    - #[serde(rename = "clusterName")] - #[serde(default)] pub cluster_name: std::option::Option, ///

    The execute command configuration for the cluster.

    - #[serde(rename = "configuration")] - #[serde(default)] pub configuration: std::option::Option, ///

    The status of the cluster. The following are the possible states that will be /// returned.

    @@ -4991,26 +4566,16 @@ pub struct Cluster { /// rely on INACTIVE clusters persisting.

    /// /// - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The number of container instances registered into the cluster. This includes container /// instances in both ACTIVE and DRAINING status.

    - #[serde(rename = "registeredContainerInstancesCount")] - #[serde(default)] pub registered_container_instances_count: i32, ///

    The number of tasks in the cluster that are in the RUNNING state.

    - #[serde(rename = "runningTasksCount")] - #[serde(default)] pub running_tasks_count: i32, ///

    The number of tasks in the cluster that are in the PENDING state.

    - #[serde(rename = "pendingTasksCount")] - #[serde(default)] pub pending_tasks_count: i32, ///

    The number of services that are running on the cluster in an ACTIVE /// state. You can view these services with ListServices.

    - #[serde(rename = "activeServicesCount")] - #[serde(default)] pub active_services_count: i32, ///

    Additional information about your clusters that are separated by launch type, /// including:

    @@ -5040,8 +4605,6 @@ pub struct Cluster { ///

    drainingFargateServiceCount

    /// /// - #[serde(rename = "statistics")] - #[serde(default)] pub statistics: std::option::Option>, ///

    The metadata that you apply to the cluster to help you categorize and organize them. /// Each tag consists of a key and an optional value, both of which you define.

    @@ -5076,29 +4639,19 @@ pub struct Cluster { /// this prefix do not count against your tags per resource limit.

    /// /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The settings for the cluster. This parameter indicates whether CloudWatch Container Insights /// is enabled or disabled for a cluster.

    - #[serde(rename = "settings")] - #[serde(default)] pub settings: std::option::Option>, ///

    The capacity providers associated with the cluster.

    - #[serde(rename = "capacityProviders")] - #[serde(default)] pub capacity_providers: std::option::Option>, ///

    The default capacity provider strategy for the cluster. When services or tasks are run /// in the cluster with no launch type or capacity provider strategy specified, the default /// capacity provider strategy is used.

    - #[serde(rename = "defaultCapacityProviderStrategy")] - #[serde(default)] pub default_capacity_provider_strategy: std::option::Option>, ///

    The resources attached to a cluster. When using a capacity provider with a cluster, /// the Auto Scaling plan that is created will be returned as a cluster attachment.

    - #[serde(rename = "attachments")] - #[serde(default)] pub attachments: std::option::Option>, ///

    The status of the capacity providers associated with the cluster. The following are /// the states that will be returned:

    @@ -5117,8 +4670,6 @@ pub struct Cluster { ///

    The capacity provider updates failed.

    /// /// - #[serde(rename = "attachmentsStatus")] - #[serde(default)] pub attachments_status: std::option::Option, } impl std::fmt::Debug for Cluster { @@ -5425,12 +4976,10 @@ impl Cluster { ///

    The settings to use when creating a cluster. This parameter is used to enable CloudWatch /// Container Insights for a cluster.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ClusterSetting { ///

    The name of the cluster setting. The only supported value is /// containerInsights.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The value to set for the cluster setting. The supported values are /// enabled and disabled. If enabled is @@ -5438,8 +4987,6 @@ pub struct ClusterSetting { /// disabled unless the containerInsights account setting is enabled. If a /// cluster value is specified, it will override the containerInsights value /// set with PutAccountSetting or PutAccountSettingDefault.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for ClusterSetting { @@ -5529,7 +5076,7 @@ impl std::convert::From<&str> for ClusterSettingName { impl std::str::FromStr for ClusterSettingName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClusterSettingName::from(s)) } } @@ -5546,23 +5093,12 @@ impl AsRef for ClusterSettingName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClusterSettingName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The execute command configuration for the cluster.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ClusterConfiguration { ///

    The details of the execute command configuration.

    - #[serde(rename = "executeCommandConfiguration")] - #[serde(default)] pub execute_command_configuration: std::option::Option, } @@ -5618,12 +5154,10 @@ impl ClusterConfiguration { ///

    The details of the execute command configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExecuteCommandConfiguration { ///

    Specify an AWS Key Management Service key ID to encrypt the data between the local /// client and the container.

    - #[serde(rename = "kmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    The log setting to use for redirecting logs for your execute command results. The /// following log settings are available.

    @@ -5646,14 +5180,10 @@ pub struct ExecuteCommandConfiguration { /// is specified, the logConfiguration is required.

    /// /// - #[serde(rename = "logging")] - #[serde(default)] pub logging: std::option::Option, ///

    The log configuration for the results of the execute command actions. The logs can be /// sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is /// specified, a logConfiguration must be provided.

    - #[serde(rename = "logConfiguration")] - #[serde(default)] pub log_configuration: std::option::Option, } impl std::fmt::Debug for ExecuteCommandConfiguration { @@ -5756,35 +5286,25 @@ impl ExecuteCommandConfiguration { ///

    The log configuration for the results of the execute command actions. The logs can be /// sent to CloudWatch Logs or an Amazon S3 bucket.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExecuteCommandLogConfiguration { ///

    The name of the CloudWatch log group to send logs to.

    /// ///

    The CloudWatch log group must already be created.

    ///
    - #[serde(rename = "cloudWatchLogGroupName")] - #[serde(default)] pub cloud_watch_log_group_name: std::option::Option, ///

    Whether or not to enable encryption on the CloudWatch logs. If not specified, /// encryption will be disabled.

    - #[serde(rename = "cloudWatchEncryptionEnabled")] - #[serde(default)] pub cloud_watch_encryption_enabled: bool, ///

    The name of the S3 bucket to send logs to.

    /// ///

    The S3 bucket must already be created.

    ///
    - #[serde(rename = "s3BucketName")] - #[serde(default)] pub s3_bucket_name: std::option::Option, ///

    Whether or not to enable encryption on the CloudWatch logs. If not specified, /// encryption will be disabled.

    - #[serde(rename = "s3EncryptionEnabled")] - #[serde(default)] pub s3_encryption_enabled: bool, ///

    An optional folder in the S3 bucket to place logs in.

    - #[serde(rename = "s3KeyPrefix")] - #[serde(default)] pub s3_key_prefix: std::option::Option, } impl std::fmt::Debug for ExecuteCommandLogConfiguration { @@ -5933,7 +5453,7 @@ impl std::convert::From<&str> for ExecuteCommandLogging { impl std::str::FromStr for ExecuteCommandLogging { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExecuteCommandLogging::from(s)) } } @@ -5952,37 +5472,20 @@ impl AsRef for ExecuteCommandLogging { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExecuteCommandLogging { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The details of a capacity provider.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CapacityProvider { ///

    The Amazon Resource Name (ARN) that identifies the capacity provider.

    - #[serde(rename = "capacityProviderArn")] - #[serde(default)] pub capacity_provider_arn: std::option::Option, ///

    The name of the capacity provider.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The current status of the capacity provider. Only capacity providers in an /// ACTIVE state can be used in a cluster. When a capacity provider is /// successfully deleted, it will have an INACTIVE status.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The Auto Scaling group settings for the capacity provider.

    - #[serde(rename = "autoScalingGroupProvider")] - #[serde(default)] pub auto_scaling_group_provider: std::option::Option, ///

    The update status of the capacity provider. The following are the possible states that /// will be returned.

    @@ -6002,13 +5505,9 @@ pub struct CapacityProvider { /// will provide further details about why the delete failed.

    /// /// - #[serde(rename = "updateStatus")] - #[serde(default)] pub update_status: std::option::Option, ///

    The update status reason. This provides further details about the update status for /// the capacity provider.

    - #[serde(rename = "updateStatusReason")] - #[serde(default)] pub update_status_reason: std::option::Option, ///

    The metadata that you apply to the capacity provider to help you categorize and /// organize it. Each tag consists of a key and an optional value, both of which you @@ -6044,8 +5543,6 @@ pub struct CapacityProvider { /// this prefix do not count against your tags per resource limit.

    /// /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for CapacityProvider { @@ -6242,7 +5739,7 @@ impl std::convert::From<&str> for CapacityProviderUpdateStatus { impl std::str::FromStr for CapacityProviderUpdateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityProviderUpdateStatus::from(s)) } } @@ -6264,27 +5761,14 @@ impl AsRef for CapacityProviderUpdateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityProviderUpdateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The details of the Auto Scaling group for the capacity provider.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingGroupProvider { ///

    The Amazon Resource Name (ARN) that identifies the Auto Scaling group.

    - #[serde(rename = "autoScalingGroupArn")] - #[serde(default)] pub auto_scaling_group_arn: std::option::Option, ///

    The managed scaling settings for the Auto Scaling group capacity provider.

    - #[serde(rename = "managedScaling")] - #[serde(default)] pub managed_scaling: std::option::Option, ///

    The managed termination protection setting to use for the Auto Scaling group capacity /// provider. This determines whether the Auto Scaling group has managed termination @@ -6299,8 +5783,6 @@ pub struct AutoScalingGroupProvider { /// protection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

    ///

    When managed termination protection is disabled, your Amazon EC2 instances are not /// protected from termination when the Auto Scaling group scales in.

    - #[serde(rename = "managedTerminationProtection")] - #[serde(default)] pub managed_termination_protection: std::option::Option, } @@ -6424,7 +5906,7 @@ impl std::convert::From<&str> for ManagedTerminationProtection { impl std::str::FromStr for ManagedTerminationProtection { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ManagedTerminationProtection::from(s)) } } @@ -6442,15 +5924,6 @@ impl AsRef for ManagedTerminationProtection { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ManagedTerminationProtection { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The managed scaling settings for the Auto Scaling group capacity provider.

    ///

    When managed scaling is enabled, Amazon ECS manages the scale-in and scale-out actions of @@ -6460,35 +5933,25 @@ impl<'de> serde::Deserialize<'de> for ManagedTerminationProtection { ///

    If managed scaling is disabled, the user must manage the scaling of the Auto Scaling /// group.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ManagedScaling { ///

    Whether or not to enable managed scaling for the capacity provider.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The target capacity value for the capacity provider. The specified value must be /// greater than 0 and less than or equal to 100. A value of /// 100 will result in the Amazon EC2 instances in your Auto Scaling group being /// completely utilized.

    - #[serde(rename = "targetCapacity")] - #[serde(default)] pub target_capacity: std::option::Option, ///

    The minimum number of container instances that Amazon ECS will scale in or scale out at one /// time. If this parameter is omitted, the default value of 1 is used.

    - #[serde(rename = "minimumScalingStepSize")] - #[serde(default)] pub minimum_scaling_step_size: std::option::Option, ///

    The maximum number of container instances that Amazon ECS will scale in or scale out at one /// time. If this parameter is omitted, the default value of 10000 is /// used.

    - #[serde(rename = "maximumScalingStepSize")] - #[serde(default)] pub maximum_scaling_step_size: std::option::Option, ///

    The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute /// to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value /// of 300 seconds is used.

    - #[serde(rename = "instanceWarmupPeriod")] - #[serde(default)] pub instance_warmup_period: std::option::Option, } impl std::fmt::Debug for ManagedScaling { @@ -6618,7 +6081,7 @@ impl std::convert::From<&str> for ManagedScalingStatus { impl std::str::FromStr for ManagedScalingStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ManagedScalingStatus::from(s)) } } @@ -6636,15 +6099,6 @@ impl AsRef for ManagedScalingStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ManagedScalingStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6674,7 +6128,7 @@ impl std::convert::From<&str> for CapacityProviderStatus { impl std::str::FromStr for CapacityProviderStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityProviderStatus::from(s)) } } @@ -6692,23 +6146,12 @@ impl AsRef for CapacityProviderStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityProviderStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The details of the Auto Scaling group capacity provider to update.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoScalingGroupProviderUpdate { ///

    The managed scaling settings for the Auto Scaling group capacity provider.

    - #[serde(rename = "managedScaling")] - #[serde(default)] pub managed_scaling: std::option::Option, ///

    The managed termination protection setting to use for the Auto Scaling group capacity /// provider. This determines whether the Auto Scaling group has managed termination @@ -6723,8 +6166,6 @@ pub struct AutoScalingGroupProviderUpdate { /// protection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

    ///

    When managed termination protection is disabled, your Amazon EC2 instances are not /// protected from termination when the Auto Scaling group scales in.

    - #[serde(rename = "managedTerminationProtection")] - #[serde(default)] pub managed_termination_protection: std::option::Option, } @@ -6807,23 +6248,15 @@ impl AutoScalingGroupProviderUpdate { ///

    An object representing a change in state for a managed agent.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ManagedAgentStateChange { ///

    The name of the container associated with the managed agent.

    - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

    The name of the managed agent.

    - #[serde(rename = "managedAgentName")] - #[serde(default)] pub managed_agent_name: std::option::Option, ///

    The status of the managed agent.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The reason for the status of the managed agent.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, } impl std::fmt::Debug for ManagedAgentStateChange { @@ -6934,7 +6367,7 @@ impl std::convert::From<&str> for ManagedAgentName { impl std::str::FromStr for ManagedAgentName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ManagedAgentName::from(s)) } } @@ -6951,27 +6384,14 @@ impl AsRef for ManagedAgentName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ManagedAgentName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing a change in state for a task attachment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttachmentStateChange { ///

    The Amazon Resource Name (ARN) of the attachment.

    - #[serde(rename = "attachmentArn")] - #[serde(default)] pub attachment_arn: std::option::Option, ///

    The status of the attachment.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, } impl std::fmt::Debug for AttachmentStateChange { @@ -7031,36 +6451,22 @@ impl AttachmentStateChange { ///

    An object representing a change in state for a container.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerStateChange { ///

    The name of the container.

    - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

    The container image SHA 256 digest.

    - #[serde(rename = "imageDigest")] - #[serde(default)] pub image_digest: std::option::Option, ///

    The ID of the Docker container.

    - #[serde(rename = "runtimeId")] - #[serde(default)] pub runtime_id: std::option::Option, ///

    The exit code for the container, if the state change is a result of the container /// exiting.

    - #[serde(rename = "exitCode")] - #[serde(default)] pub exit_code: std::option::Option, ///

    Any network bindings associated with the container.

    - #[serde(rename = "networkBindings")] - #[serde(default)] pub network_bindings: std::option::Option>, ///

    The reason for the state change.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The status of the container.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, } impl std::fmt::Debug for ContainerStateChange { @@ -7189,23 +6595,15 @@ impl ContainerStateChange { /// container port assignments are visible in the networkBindings section of /// DescribeTasks API responses.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkBinding { ///

    The IP address that the container is bound to on the container instance.

    - #[serde(rename = "bindIP")] - #[serde(default)] pub bind_ip: std::option::Option, ///

    The port number on the container that is used with the network binding.

    - #[serde(rename = "containerPort")] - #[serde(default)] pub container_port: std::option::Option, ///

    The port number on the host that is used with the network binding.

    - #[serde(rename = "hostPort")] - #[serde(default)] pub host_port: std::option::Option, ///

    The protocol used for the network binding.

    - #[serde(rename = "protocol")] - #[serde(default)] pub protocol: std::option::Option, } impl std::fmt::Debug for NetworkBinding { @@ -7315,7 +6713,7 @@ impl std::convert::From<&str> for TransportProtocol { impl std::str::FromStr for TransportProtocol { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransportProtocol::from(s)) } } @@ -7333,60 +6731,30 @@ impl AsRef for TransportProtocol { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransportProtocol { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details on a task in a cluster.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Task { ///

    The Elastic Network Adapter associated with the task if the task uses the /// awsvpc network mode.

    - #[serde(rename = "attachments")] - #[serde(default)] pub attachments: std::option::Option>, ///

    The attributes of the task

    - #[serde(rename = "attributes")] - #[serde(default)] pub attributes: std::option::Option>, ///

    The availability zone of the task.

    - #[serde(rename = "availabilityZone")] - #[serde(default)] pub availability_zone: std::option::Option, ///

    The capacity provider associated with the task.

    - #[serde(rename = "capacityProviderName")] - #[serde(default)] pub capacity_provider_name: std::option::Option, ///

    The ARN of the cluster that hosts the task.

    - #[serde(rename = "clusterArn")] - #[serde(default)] pub cluster_arn: std::option::Option, ///

    The connectivity status of a task.

    - #[serde(rename = "connectivity")] - #[serde(default)] pub connectivity: std::option::Option, ///

    The Unix timestamp for when the task last went into CONNECTED /// status.

    - #[serde(rename = "connectivityAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub connectivity_at: std::option::Option, ///

    The ARN of the container instances that host the task.

    - #[serde(rename = "containerInstanceArn")] - #[serde(default)] pub container_instance_arn: std::option::Option, ///

    The containers associated with the task.

    - #[serde(rename = "containers")] - #[serde(default)] pub containers: std::option::Option>, ///

    The number of CPU units used by the task as expressed in a task definition. It can be /// expressed as an integer using CPU units, for example 1024. It can also be @@ -7416,38 +6784,20 @@ pub struct Task { ///

    4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

    /// /// - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: std::option::Option, ///

    The Unix timestamp for when the task was created (the task entered the /// PENDING state).

    - #[serde(rename = "createdAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_at: std::option::Option, ///

    The desired status of the task. For more information, see Task /// Lifecycle.

    - #[serde(rename = "desiredStatus")] - #[serde(default)] pub desired_status: std::option::Option, ///

    Whether or not execute command functionality is enabled for this task. If /// true, this enables execute command functionality on all containers in /// the task.

    - #[serde(rename = "enableExecuteCommand")] - #[serde(default)] pub enable_execute_command: bool, ///

    The Unix timestamp for when the task execution stopped.

    - #[serde(rename = "executionStoppedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_stopped_at: std::option::Option, ///

    The name of the task group associated with the task.

    - #[serde(rename = "group")] - #[serde(default)] pub group: std::option::Option, ///

    The health status for the task, which is determined by the health of the essential /// containers in the task. If all essential containers in the task are reporting as @@ -7462,23 +6812,15 @@ pub struct Task { /// parameters that are specified in a container definition override any Docker health /// checks that exist in the container image.

    ///
    - #[serde(rename = "healthStatus")] - #[serde(default)] pub health_status: std::option::Option, ///

    The Elastic Inference accelerator associated with the task.

    - #[serde(rename = "inferenceAccelerators")] - #[serde(default)] pub inference_accelerators: std::option::Option>, ///

    The last known status of the task. For more information, see Task /// Lifecycle.

    - #[serde(rename = "lastStatus")] - #[serde(default)] pub last_status: std::option::Option, ///

    The infrastructure on which your task is running. For more information, see Amazon ECS /// launch types in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "launchType")] - #[serde(default)] pub launch_type: std::option::Option, ///

    The amount of memory (in MiB) used by the task as expressed in a task definition. It /// can be expressed as an integer using MiB, for example 1024. It can also be @@ -7506,73 +6848,36 @@ pub struct Task { ///

    Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

    /// /// - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    One or more container overrides.

    - #[serde(rename = "overrides")] - #[serde(default)] pub overrides: std::option::Option, ///

    The platform version on which your task is running. A platform version is only /// specified for tasks using the Fargate launch type. If one is not /// specified, the LATEST platform version is used by default. For more /// information, see AWS Fargate Platform /// Versions in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "platformVersion")] - #[serde(default)] pub platform_version: std::option::Option, ///

    The Unix timestamp for when the container image pull began.

    - #[serde(rename = "pullStartedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub pull_started_at: std::option::Option, ///

    The Unix timestamp for when the container image pull completed.

    - #[serde(rename = "pullStoppedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub pull_stopped_at: std::option::Option, ///

    The Unix timestamp for when the task started (the task transitioned from the /// PENDING state to the RUNNING state).

    - #[serde(rename = "startedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub started_at: std::option::Option, ///

    The tag specified when a task is started. If the task is started by an Amazon ECS service, /// then the startedBy parameter contains the deployment ID of the service that /// starts it.

    - #[serde(rename = "startedBy")] - #[serde(default)] pub started_by: std::option::Option, ///

    The stop code indicating why a task was stopped. The stoppedReason may /// contain additional details.

    - #[serde(rename = "stopCode")] - #[serde(default)] pub stop_code: std::option::Option, ///

    The Unix timestamp for when the task was stopped (the task transitioned from the /// RUNNING state to the STOPPED state).

    - #[serde(rename = "stoppedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub stopped_at: std::option::Option, ///

    The reason that the task was stopped.

    - #[serde(rename = "stoppedReason")] - #[serde(default)] pub stopped_reason: std::option::Option, ///

    The Unix timestamp for when the task stops (transitions from the RUNNING /// state to STOPPED).

    - #[serde(rename = "stoppingAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub stopping_at: std::option::Option, ///

    The metadata that you apply to the task to help you categorize and organize them. Each /// tag consists of a key and an optional value, both of which you define.

    @@ -7607,16 +6912,10 @@ pub struct Task { /// this prefix do not count against your tags per resource limit.

    /// /// - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    The Amazon Resource Name (ARN) of the task.

    - #[serde(rename = "taskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The ARN of the task definition that creates the task.

    - #[serde(rename = "taskDefinitionArn")] - #[serde(default)] pub task_definition_arn: std::option::Option, ///

    The version counter for the task. Every time a task experiences a change that triggers /// a CloudWatch event, the version counter is incremented. If you are replicating your Amazon ECS task @@ -7624,12 +6923,8 @@ pub struct Task { /// actions with the version reported in CloudWatch Events for the task (inside the /// detail object) to verify that the version in your event stream is /// current.

    - #[serde(rename = "version")] - #[serde(default)] pub version: i64, ///

    The ephemeral storage settings for the task.

    - #[serde(rename = "ephemeralStorage")] - #[serde(default)] pub ephemeral_storage: std::option::Option, } impl std::fmt::Debug for Task { @@ -8253,13 +7548,11 @@ impl Task { /// version 1.4.0 or later.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EphemeralStorage { ///

    The total amount, in GiB, of ephemeral storage to set for the task. The minimum /// supported value is 21 GiB and the maximum supported value is /// 200 GiB.

    - #[serde(rename = "sizeInGiB")] - #[serde(default)] pub size_in_gi_b: i32, } impl std::fmt::Debug for EphemeralStorage { @@ -8334,7 +7627,7 @@ impl std::convert::From<&str> for TaskStopCode { impl std::str::FromStr for TaskStopCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskStopCode::from(s)) } } @@ -8353,53 +7646,30 @@ impl AsRef for TaskStopCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskStopCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The overrides associated with a task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TaskOverride { ///

    One or more container overrides sent to a task.

    - #[serde(rename = "containerOverrides")] - #[serde(default)] pub container_overrides: std::option::Option>, ///

    The cpu override for the task.

    - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: std::option::Option, ///

    The Elastic Inference accelerator override for the task.

    - #[serde(rename = "inferenceAcceleratorOverrides")] - #[serde(default)] pub inference_accelerator_overrides: std::option::Option>, ///

    The Amazon Resource Name (ARN) of the task execution IAM role override for the task.

    - #[serde(rename = "executionRoleArn")] - #[serde(default)] pub execution_role_arn: std::option::Option, ///

    The memory override for the task.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers /// in this task are granted the permissions that are specified in this role.

    - #[serde(rename = "taskRoleArn")] - #[serde(default)] pub task_role_arn: std::option::Option, ///

    The ephemeral storage setting override for the task.

    /// ///

    This parameter is only supported for tasks hosted on AWS Fargate using platform /// version 1.4.0 or later.

    ///
    - #[serde(rename = "ephemeralStorage")] - #[serde(default)] pub ephemeral_storage: std::option::Option, } impl std::fmt::Debug for TaskOverride { @@ -8552,16 +7822,12 @@ impl TaskOverride { /// information, see Working with Amazon Elastic Inference on Amazon ECS in the /// Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InferenceAcceleratorOverride { ///

    The Elastic Inference accelerator device name to override for the task. This parameter /// must match a deviceName specified in the task definition.

    - #[serde(rename = "deviceName")] - #[serde(default)] pub device_name: std::option::Option, ///

    The Elastic Inference accelerator type to use.

    - #[serde(rename = "deviceType")] - #[serde(default)] pub device_type: std::option::Option, } impl std::fmt::Debug for InferenceAcceleratorOverride { @@ -8622,50 +7888,34 @@ impl InferenceAcceleratorOverride { /// {"containerOverrides": [ ] }. If a non-empty container override is /// specified, the name parameter must be included.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerOverride { ///

    The name of the container that receives the override. This parameter is required if /// any override is specified.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The command to send to the container that overrides the default command from the /// Docker image or the task definition. You must also specify a container name.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The environment variables to send to the container. You can add new environment /// variables, which are added to the container at launch, or you can override the existing /// environment variables from the Docker image or the task definition. You must also /// specify a container name.

    - #[serde(rename = "environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    A list of files containing the environment variables to pass to a container, instead /// of the value from the container definition.

    - #[serde(rename = "environmentFiles")] - #[serde(default)] pub environment_files: std::option::Option>, ///

    The number of cpu units reserved for the container, instead of the /// default value from the task definition. You must also specify a container name.

    - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: std::option::Option, ///

    The hard limit (in MiB) of memory to present to the container, instead of the default /// value from the task definition. If your container attempts to exceed the memory /// specified here, the container is killed. You must also specify a container name.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    The soft limit (in MiB) of memory to reserve for the container, instead of the default /// value from the task definition. You must also specify a container name.

    - #[serde(rename = "memoryReservation")] - #[serde(default)] pub memory_reservation: std::option::Option, ///

    The type and amount of a resource to assign to a container, instead of the default /// value from the task definition. The only supported resource is a GPU.

    - #[serde(rename = "resourceRequirements")] - #[serde(default)] pub resource_requirements: std::option::Option>, } @@ -8828,7 +8078,7 @@ impl ContainerOverride { /// Amazon Elastic Container Service Developer Guide ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceRequirement { ///

    The value for the specified resource type.

    ///

    If the GPU type is used, the value is the number of physical @@ -8838,13 +8088,9 @@ pub struct ResourceRequirement { ///

    If the InferenceAccelerator type is used, the value should /// match the deviceName for an InferenceAccelerator /// specified in a task definition.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The type of resource to assign to a container. The supported values are /// GPU or InferenceAccelerator.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for ResourceRequirement { @@ -8935,7 +8181,7 @@ impl std::convert::From<&str> for ResourceType { impl std::str::FromStr for ResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceType::from(s)) } } @@ -8953,15 +8199,6 @@ impl AsRef for ResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A list of files containing the environment variables to pass to a container. You can /// specify up to ten environment files. The file must have a .env file @@ -8979,16 +8216,12 @@ impl<'de> serde::Deserialize<'de> for ResourceType { ///

    This field is only valid for containers in Fargate tasks that use /// platform version 1.4.0 or later.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EnvironmentFile { ///

    The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment /// variable file.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The file type to use. The only supported value is s3.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for EnvironmentFile { @@ -9073,7 +8306,7 @@ impl std::convert::From<&str> for EnvironmentFileType { impl std::str::FromStr for EnvironmentFileType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EnvironmentFileType::from(s)) } } @@ -9090,30 +8323,17 @@ impl AsRef for EnvironmentFileType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EnvironmentFileType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details on a Elastic Inference accelerator. For more information, see Working with /// Amazon Elastic Inference on Amazon ECS in the /// Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InferenceAccelerator { ///

    The Elastic Inference accelerator device name. The deviceName must also /// be referenced in a container definition as a ResourceRequirement.

    - #[serde(rename = "deviceName")] - #[serde(default)] pub device_name: std::option::Option, ///

    The Elastic Inference accelerator type to use.

    - #[serde(rename = "deviceType")] - #[serde(default)] pub device_type: std::option::Option, } impl std::fmt::Debug for InferenceAccelerator { @@ -9201,7 +8421,7 @@ impl std::convert::From<&str> for HealthStatus { impl std::str::FromStr for HealthStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HealthStatus::from(s)) } } @@ -9220,96 +8440,53 @@ impl AsRef for HealthStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HealthStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A Docker container that is part of a task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Container { ///

    The Amazon Resource Name (ARN) of the container.

    - #[serde(rename = "containerArn")] - #[serde(default)] pub container_arn: std::option::Option, ///

    The ARN of the task.

    - #[serde(rename = "taskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The name of the container.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The image used for the container.

    - #[serde(rename = "image")] - #[serde(default)] pub image: std::option::Option, ///

    The container image manifest digest.

    /// ///

    The imageDigest is only returned if the container is using an image /// hosted in Amazon ECR, otherwise it is omitted.

    ///
    - #[serde(rename = "imageDigest")] - #[serde(default)] pub image_digest: std::option::Option, ///

    The ID of the Docker container.

    - #[serde(rename = "runtimeId")] - #[serde(default)] pub runtime_id: std::option::Option, ///

    The last known status of the container.

    - #[serde(rename = "lastStatus")] - #[serde(default)] pub last_status: std::option::Option, ///

    The exit code returned from the container.

    - #[serde(rename = "exitCode")] - #[serde(default)] pub exit_code: std::option::Option, ///

    A short (255 max characters) human-readable string to provide additional details about /// a running or stopped container.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The network bindings associated with the container.

    - #[serde(rename = "networkBindings")] - #[serde(default)] pub network_bindings: std::option::Option>, ///

    The network interfaces associated with the container.

    - #[serde(rename = "networkInterfaces")] - #[serde(default)] pub network_interfaces: std::option::Option>, ///

    The health status of the container. If health checks are not configured for this /// container in its task definition, then it reports the health status as /// UNKNOWN.

    - #[serde(rename = "healthStatus")] - #[serde(default)] pub health_status: std::option::Option, ///

    The details of any Amazon ECS managed agents associated with the container.

    - #[serde(rename = "managedAgents")] - #[serde(default)] pub managed_agents: std::option::Option>, ///

    The number of CPU units set for the container. The value will be 0 if no /// value was specified in the container definition when the task definition was /// registered.

    - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: std::option::Option, ///

    The hard limit (in MiB) of memory set for the container.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    The soft limit (in MiB) of memory set for the container.

    - #[serde(rename = "memoryReservation")] - #[serde(default)] pub memory_reservation: std::option::Option, ///

    The IDs of each GPU assigned to the container.

    - #[serde(rename = "gpuIds")] - #[serde(default)] pub gpu_ids: std::option::Option>, } impl std::fmt::Debug for Container { @@ -9585,27 +8762,16 @@ impl Container { ///

    Details about the managed agent status for the container.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ManagedAgent { ///

    The Unix timestamp for when the managed agent was last started.

    - #[serde(rename = "lastStartedAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_started_at: std::option::Option, ///

    The name of the managed agent. When the execute command feature is enabled, the /// managed agent name is ExecuteCommandAgent.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The reason for why the managed agent is in the state it is in.

    - #[serde(rename = "reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The last known status of the managed agent.

    - #[serde(rename = "lastStatus")] - #[serde(default)] pub last_status: std::option::Option, } impl std::fmt::Debug for ManagedAgent { @@ -9694,19 +8860,13 @@ impl ManagedAgent { ///

    An object representing the elastic network interface for tasks that use the /// awsvpc network mode.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkInterface { ///

    The attachment ID for the network interface.

    - #[serde(rename = "attachmentId")] - #[serde(default)] pub attachment_id: std::option::Option, ///

    The private IPv4 address for the network interface.

    - #[serde(rename = "privateIpv4Address")] - #[serde(default)] pub private_ipv4_address: std::option::Option, ///

    The private IPv6 address for the network interface.

    - #[serde(rename = "ipv6Address")] - #[serde(default)] pub ipv6_address: std::option::Option, } impl std::fmt::Debug for NetworkInterface { @@ -9807,7 +8967,7 @@ impl std::convert::From<&str> for Connectivity { impl std::str::FromStr for Connectivity { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Connectivity::from(s)) } } @@ -9825,33 +8985,20 @@ impl AsRef for Connectivity { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Connectivity { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The details of a task definition which describes the container and volume definitions /// of an Amazon Elastic Container Service task. You can specify which Docker images to use, the required /// resources, and other configurations related to launching the task definition through an /// Amazon ECS service or task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TaskDefinition { ///

    The full Amazon Resource Name (ARN) of the task definition.

    - #[serde(rename = "taskDefinitionArn")] - #[serde(default)] pub task_definition_arn: std::option::Option, ///

    A list of container definitions in JSON format that describe the different containers /// that make up your task. For more information about container definition parameters and /// defaults, see Amazon ECS Task /// Definitions in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "containerDefinitions")] - #[serde(default)] pub container_definitions: std::option::Option>, ///

    The name of a family that this task definition is registered to. Up to 255 letters @@ -9859,8 +9006,6 @@ pub struct TaskDefinition { ///

    A family groups multiple versions of a task definition. Amazon ECS gives the first task /// definition that you registered to a family a revision number of 1. Amazon ECS gives /// sequential revision numbers to each task definition that you add.

    - #[serde(rename = "family")] - #[serde(default)] pub family: std::option::Option, ///

    The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the /// task permission to call AWS APIs on your behalf. For more information, see Amazon ECS @@ -9870,15 +9015,11 @@ pub struct TaskDefinition { /// configuration code in order to take advantage of the feature. For more information, see /// Windows IAM roles /// for tasks in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "taskRoleArn")] - #[serde(default)] pub task_role_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent /// permission to make AWS API calls on your behalf. The task execution IAM role is required /// depending on the requirements of your task. For more information, see Amazon ECS task /// execution IAM role in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "executionRoleArn")] - #[serde(default)] pub execution_role_arn: std::option::Option, ///

    The Docker networking mode to use for the containers in the task. The valid values are /// none, bridge, awsvpc, and host. @@ -9917,16 +9058,12 @@ pub struct TaskDefinition { /// choose the network mode object.

    ///

    For more information, see Network /// settings in the Docker run reference.

    - #[serde(rename = "networkMode")] - #[serde(default)] pub network_mode: std::option::Option, ///

    The revision of the task in a particular family. The revision is a version number of a /// task definition in a family. When you register a task definition for the first time, the /// revision is 1. Each time that you register a new revision of a task /// definition in the same family, the revision value always increases by one, even if you /// have deregistered previous revisions in this family.

    - #[serde(rename = "revision")] - #[serde(default)] pub revision: i32, ///

    The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the /// Amazon Elastic Container Service Developer Guide.

    @@ -9934,12 +9071,8 @@ pub struct TaskDefinition { ///

    The host and sourcePath parameters are not supported for /// tasks run on AWS Fargate.

    /// - #[serde(rename = "volumes")] - #[serde(default)] pub volumes: std::option::Option>, ///

    The status of the task definition.

    - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, ///

    The container instance attributes required by your task. When an Amazon EC2 instance is /// registered to your cluster, the Amazon ECS container agent assigns some standard attributes @@ -9950,27 +9083,19 @@ pub struct TaskDefinition { /// ///

    This parameter is not supported for tasks run on AWS Fargate.

    /// - #[serde(rename = "requiresAttributes")] - #[serde(default)] pub requires_attributes: std::option::Option>, ///

    An array of placement constraint objects to use for tasks.

    /// ///

    This parameter is not supported for tasks run on AWS Fargate.

    ///
    - #[serde(rename = "placementConstraints")] - #[serde(default)] pub placement_constraints: std::option::Option>, ///

    The task launch types the task definition validated against during task definition /// registration. For more information, see Amazon ECS launch types /// in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "compatibilities")] - #[serde(default)] pub compatibilities: std::option::Option>, ///

    The task launch types the task definition was validated against. To determine which /// task launch types the task definition is validated for, see the TaskDefinition$compatibilities parameter.

    - #[serde(rename = "requiresCompatibilities")] - #[serde(default)] pub requires_compatibilities: std::option::Option>, ///

    The number of cpu units used by the task. If you are using the EC2 launch /// type, this field is optional and any value can be used. If you are using the Fargate @@ -9993,8 +9118,6 @@ pub struct TaskDefinition { ///

    4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

    /// /// - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: std::option::Option, ///

    The amount (in MiB) of memory used by the task.

    ///

    If your tasks will be run on Amazon EC2 instances, you must specify either a task-level @@ -10022,12 +9145,8 @@ pub struct TaskDefinition { ///

    Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

    /// /// - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    The Elastic Inference accelerator associated with the task.

    - #[serde(rename = "inferenceAccelerators")] - #[serde(default)] pub inference_accelerators: std::option::Option>, ///

    The process namespace to use for the containers in the task. The valid @@ -10046,8 +9165,6 @@ pub struct TaskDefinition { /// ///

    This parameter is not supported for Windows containers or tasks run on AWS Fargate.

    /// - #[serde(rename = "pidMode")] - #[serde(default)] pub pid_mode: std::option::Option, ///

    The IPC resource namespace to use for the containers in the task. The valid values are /// host, task, or none. If host is @@ -10081,8 +9198,6 @@ pub struct TaskDefinition { /// ///

    This parameter is not supported for Windows containers or tasks run on AWS Fargate.

    /// - #[serde(rename = "ipcMode")] - #[serde(default)] pub ipc_mode: std::option::Option, ///

    The configuration details for the App Mesh proxy.

    ///

    Your Amazon ECS container instances require at least version 1.26.0 of the container agent @@ -10090,30 +9205,14 @@ pub struct TaskDefinition { /// configuration. If your container instances are launched from the Amazon ECS-optimized AMI /// version 20190301 or later, then they contain the required versions of the /// container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "proxyConfiguration")] - #[serde(default)] pub proxy_configuration: std::option::Option, ///

    The Unix timestamp for when the task definition was registered.

    - #[serde(rename = "registeredAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub registered_at: std::option::Option, ///

    The Unix timestamp for when the task definition was deregistered.

    - #[serde(rename = "deregisteredAt")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub deregistered_at: std::option::Option, ///

    The principal that registered the task definition.

    - #[serde(rename = "registeredBy")] - #[serde(default)] pub registered_by: std::option::Option, ///

    The ephemeral storage settings to use for tasks run with the task definition.

    - #[serde(rename = "ephemeralStorage")] - #[serde(default)] pub ephemeral_storage: std::option::Option, } impl std::fmt::Debug for TaskDefinition { @@ -10655,15 +9754,11 @@ impl TaskDefinition { /// ecs-init. For more information, see Amazon ECS-optimized Linux AMI ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProxyConfiguration { ///

    The proxy type. The only supported value is APPMESH.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The name of the container that will serve as the App Mesh proxy.

    - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

    The set of network configuration parameters to provide the Container Network Interface /// (CNI) plugin, specified as key-value pairs.

    @@ -10711,8 +9806,6 @@ pub struct ProxyConfiguration { /// ProxyEgressPort. It can be an empty list.

    /// /// - #[serde(rename = "properties")] - #[serde(default)] pub properties: std::option::Option>, } impl std::fmt::Debug for ProxyConfiguration { @@ -10815,7 +9908,7 @@ impl std::convert::From<&str> for ProxyConfigurationType { impl std::str::FromStr for ProxyConfigurationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProxyConfigurationType::from(s)) } } @@ -10832,15 +9925,6 @@ impl AsRef for ProxyConfigurationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProxyConfigurationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10872,7 +9956,7 @@ impl std::convert::From<&str> for IpcMode { impl std::str::FromStr for IpcMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IpcMode::from(s)) } } @@ -10891,15 +9975,6 @@ impl AsRef for IpcMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IpcMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10929,7 +10004,7 @@ impl std::convert::From<&str> for PidMode { impl std::str::FromStr for PidMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PidMode::from(s)) } } @@ -10947,15 +10022,6 @@ impl AsRef for PidMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PidMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10987,7 +10053,7 @@ impl std::convert::From<&str> for Compatibility { impl std::str::FromStr for Compatibility { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Compatibility::from(s)) } } @@ -11006,15 +10072,6 @@ impl AsRef for Compatibility { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Compatibility { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object representing a constraint on task placement in the task definition. For more /// information, see Task placement constraints in the @@ -11023,18 +10080,14 @@ impl<'de> serde::Deserialize<'de> for Compatibility { ///

    Task placement constraints are not supported for tasks run on AWS Fargate.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TaskDefinitionPlacementConstraint { ///

    The type of constraint. The MemberOf constraint restricts selection to be /// from a group of valid candidates.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    A cluster query language expression to apply to the constraint. For more information, /// see Cluster query language in the /// Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "expression")] - #[serde(default)] pub expression: std::option::Option, } impl std::fmt::Debug for TaskDefinitionPlacementConstraint { @@ -11124,7 +10177,7 @@ impl std::convert::From<&str> for TaskDefinitionPlacementConstraintType { impl std::str::FromStr for TaskDefinitionPlacementConstraintType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskDefinitionPlacementConstraintType::from(s)) } } @@ -11141,15 +10194,6 @@ impl AsRef for TaskDefinitionPlacementConstraintType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskDefinitionPlacementConstraintType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -11179,7 +10223,7 @@ impl std::convert::From<&str> for TaskDefinitionStatus { impl std::str::FromStr for TaskDefinitionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskDefinitionStatus::from(s)) } } @@ -11197,15 +10241,6 @@ impl AsRef for TaskDefinitionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskDefinitionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A data volume used in a task definition. For tasks that use the Amazon Elastic File /// System (Amazon EFS), specify an efsVolumeConfiguration. For Windows tasks @@ -11216,13 +10251,11 @@ impl<'de> serde::Deserialize<'de> for TaskDefinitionStatus { /// more information, see Using Data Volumes in /// Tasks.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Volume { ///

    The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This name is referenced in the /// sourceVolume parameter of container definition /// mountPoints.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    This parameter is specified when you are using bind mount host volumes. The contents /// of the host parameter determine whether your bind mount host volume @@ -11235,8 +10268,6 @@ pub struct Volume { /// different drive, and mount point cannot be across drives. For example, you can mount /// C:\my\path:C:\my\path and D:\:D:\, but not /// D:\my\path:C:\my\path or D:\:C:\my\path.

    - #[serde(rename = "host")] - #[serde(default)] pub host: std::option::Option, ///

    This parameter is specified when you are using Docker volumes.

    ///

    Windows containers only support the use of the local driver. To use bind @@ -11244,18 +10275,12 @@ pub struct Volume { /// ///

    Docker volumes are not supported by tasks run on AWS Fargate.

    /// - #[serde(rename = "dockerVolumeConfiguration")] - #[serde(default)] pub docker_volume_configuration: std::option::Option, ///

    This parameter is specified when you are using an Amazon Elastic File System file system for task /// storage.

    - #[serde(rename = "efsVolumeConfiguration")] - #[serde(default)] - pub efs_volume_configuration: std::option::Option, + pub efs_volume_configuration: std::option::Option, ///

    This parameter is specified when you are using Amazon FSx for Windows File Server file system for task /// storage.

    - #[serde(rename = "fsxWindowsFileServerVolumeConfiguration")] - #[serde(default)] pub fsx_windows_file_server_volume_configuration: std::option::Option, } @@ -11287,7 +10312,7 @@ pub mod volume { pub(crate) docker_volume_configuration: std::option::Option, pub(crate) efs_volume_configuration: - std::option::Option, + std::option::Option, pub(crate) fsx_windows_file_server_volume_configuration: std::option::Option, } @@ -11349,14 +10374,14 @@ pub mod volume { /// storage.

    pub fn efs_volume_configuration( mut self, - input: crate::model::EFSVolumeConfiguration, + input: crate::model::EfsVolumeConfiguration, ) -> Self { self.efs_volume_configuration = Some(input); self } pub fn set_efs_volume_configuration( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.efs_volume_configuration = input; self @@ -11402,20 +10427,14 @@ impl Volume { ///

    For more information and the input format, see Amazon FSx for Windows File Server Volumes /// in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FSxWindowsFileServerVolumeConfiguration { ///

    The Amazon FSx for Windows File Server file system ID to use.

    - #[serde(rename = "fileSystemId")] - #[serde(default)] pub file_system_id: std::option::Option, ///

    The directory within the Amazon FSx for Windows File Server file system to mount as the root directory /// inside the host.

    - #[serde(rename = "rootDirectory")] - #[serde(default)] pub root_directory: std::option::Option, ///

    The authorization configuration details for the Amazon FSx for Windows File Server file system.

    - #[serde(rename = "authorizationConfig")] - #[serde(default)] pub authorization_config: std::option::Option, } @@ -11502,18 +10521,14 @@ impl FSxWindowsFileServerVolumeConfiguration { ///

    For more information and the input format, see Amazon FSx for Windows File Server Volumes /// in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FSxWindowsFileServerAuthorizationConfig { ///

    The authorization credential option to use. The authorization credential options can /// be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager /// Parameter Store parameter. The ARNs refer to the stored credentials.

    - #[serde(rename = "credentialsParameter")] - #[serde(default)] pub credentials_parameter: std::option::Option, ///

    A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on /// Amazon EC2.

    - #[serde(rename = "domain")] - #[serde(default)] pub domain: std::option::Option, } impl std::fmt::Debug for FSxWindowsFileServerAuthorizationConfig { @@ -11578,11 +10593,9 @@ impl FSxWindowsFileServerAuthorizationConfig { /// storage. For more information, see Amazon EFS Volumes in the /// Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSVolumeConfiguration { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsVolumeConfiguration { ///

    The Amazon EFS file system ID to use.

    - #[serde(rename = "fileSystemId")] - #[serde(default)] pub file_system_id: std::option::Option, ///

    The directory within the Amazon EFS file system to mount as the root directory inside the /// host. If this parameter is omitted, the root of the Amazon EFS volume will be used. @@ -11592,32 +10605,24 @@ pub struct EFSVolumeConfiguration { /// root directory parameter must either be omitted or set to / which will /// enforce the path set on the EFS access point.

    /// - #[serde(rename = "rootDirectory")] - #[serde(default)] pub root_directory: std::option::Option, ///

    Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host /// and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is /// used. If this parameter is omitted, the default value of DISABLED is used. /// For more information, see Encrypting Data in Transit in /// the Amazon Elastic File System User Guide.

    - #[serde(rename = "transitEncryption")] - #[serde(default)] pub transit_encryption: std::option::Option, ///

    The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS /// server. If you do not specify a transit encryption port, it will use the port selection /// strategy that the Amazon EFS mount helper uses. For more information, see EFS Mount /// Helper in the Amazon Elastic File System User Guide.

    - #[serde(rename = "transitEncryptionPort")] - #[serde(default)] pub transit_encryption_port: std::option::Option, ///

    The authorization configuration details for the Amazon EFS file system.

    - #[serde(rename = "authorizationConfig")] - #[serde(default)] - pub authorization_config: std::option::Option, + pub authorization_config: std::option::Option, } -impl std::fmt::Debug for EFSVolumeConfiguration { +impl std::fmt::Debug for EfsVolumeConfiguration { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSVolumeConfiguration"); + let mut formatter = f.debug_struct("EfsVolumeConfiguration"); formatter.field("file_system_id", &self.file_system_id); formatter.field("root_directory", &self.root_directory); formatter.field("transit_encryption", &self.transit_encryption); @@ -11626,9 +10631,9 @@ impl std::fmt::Debug for EFSVolumeConfiguration { formatter.finish() } } -/// See [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) +/// See [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) pub mod efs_volume_configuration { - /// A builder for [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) + /// A builder for [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11636,7 +10641,7 @@ pub mod efs_volume_configuration { pub(crate) root_directory: std::option::Option, pub(crate) transit_encryption: std::option::Option, pub(crate) transit_encryption_port: std::option::Option, - pub(crate) authorization_config: std::option::Option, + pub(crate) authorization_config: std::option::Option, } impl Builder { ///

    The Amazon EFS file system ID to use.

    @@ -11699,20 +10704,20 @@ pub mod efs_volume_configuration { self } ///

    The authorization configuration details for the Amazon EFS file system.

    - pub fn authorization_config(mut self, input: crate::model::EFSAuthorizationConfig) -> Self { + pub fn authorization_config(mut self, input: crate::model::EfsAuthorizationConfig) -> Self { self.authorization_config = Some(input); self } pub fn set_authorization_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.authorization_config = input; self } - /// Consumes the builder and constructs a [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) - pub fn build(self) -> crate::model::EFSVolumeConfiguration { - crate::model::EFSVolumeConfiguration { + /// Consumes the builder and constructs a [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) + pub fn build(self) -> crate::model::EfsVolumeConfiguration { + crate::model::EfsVolumeConfiguration { file_system_id: self.file_system_id, root_directory: self.root_directory, transit_encryption: self.transit_encryption, @@ -11722,8 +10727,8 @@ pub mod efs_volume_configuration { } } } -impl EFSVolumeConfiguration { - /// Creates a new builder-style object to manufacture [`EFSVolumeConfiguration`](crate::model::EFSVolumeConfiguration) +impl EfsVolumeConfiguration { + /// Creates a new builder-style object to manufacture [`EfsVolumeConfiguration`](crate::model::EfsVolumeConfiguration) pub fn builder() -> crate::model::efs_volume_configuration::Builder { crate::model::efs_volume_configuration::Builder::default() } @@ -11731,37 +10736,33 @@ impl EFSVolumeConfiguration { ///

    The authorization configuration details for the Amazon EFS file system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSAuthorizationConfig { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsAuthorizationConfig { ///

    The Amazon EFS access point ID to use. If an access point is specified, the root directory /// value specified in the EFSVolumeConfiguration must either be omitted or set /// to / which will enforce the path set on the EFS access point. If an access /// point is used, transit encryption must be enabled in the /// EFSVolumeConfiguration. For more information, see Working with Amazon /// EFS Access Points in the Amazon Elastic File System User Guide.

    - #[serde(rename = "accessPointId")] - #[serde(default)] pub access_point_id: std::option::Option, ///

    Whether or not to use the Amazon ECS task IAM role defined in a task definition when /// mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the /// EFSVolumeConfiguration. If this parameter is omitted, the default value /// of DISABLED is used. For more information, see Using /// Amazon EFS Access Points in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "iam")] - #[serde(default)] pub iam: std::option::Option, } -impl std::fmt::Debug for EFSAuthorizationConfig { +impl std::fmt::Debug for EfsAuthorizationConfig { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSAuthorizationConfig"); + let mut formatter = f.debug_struct("EfsAuthorizationConfig"); formatter.field("access_point_id", &self.access_point_id); formatter.field("iam", &self.iam); formatter.finish() } } -/// See [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) +/// See [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) pub mod efs_authorization_config { - /// A builder for [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) + /// A builder for [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11802,17 +10803,17 @@ pub mod efs_authorization_config { self.iam = input; self } - /// Consumes the builder and constructs a [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) - pub fn build(self) -> crate::model::EFSAuthorizationConfig { - crate::model::EFSAuthorizationConfig { + /// Consumes the builder and constructs a [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) + pub fn build(self) -> crate::model::EfsAuthorizationConfig { + crate::model::EfsAuthorizationConfig { access_point_id: self.access_point_id, iam: self.iam, } } } } -impl EFSAuthorizationConfig { - /// Creates a new builder-style object to manufacture [`EFSAuthorizationConfig`](crate::model::EFSAuthorizationConfig) +impl EfsAuthorizationConfig { + /// Creates a new builder-style object to manufacture [`EfsAuthorizationConfig`](crate::model::EfsAuthorizationConfig) pub fn builder() -> crate::model::efs_authorization_config::Builder { crate::model::efs_authorization_config::Builder::default() } @@ -11846,7 +10847,7 @@ impl std::convert::From<&str> for EfsAuthorizationConfigIam { impl std::str::FromStr for EfsAuthorizationConfigIam { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EfsAuthorizationConfigIam::from(s)) } } @@ -11864,15 +10865,6 @@ impl AsRef for EfsAuthorizationConfigIam { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EfsAuthorizationConfigIam { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -11902,7 +10894,7 @@ impl std::convert::From<&str> for EfsTransitEncryption { impl std::str::FromStr for EfsTransitEncryption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EfsTransitEncryption::from(s)) } } @@ -11920,37 +10912,24 @@ impl AsRef for EfsTransitEncryption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EfsTransitEncryption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    This parameter is specified when you are using Docker volumes. Docker volumes are only /// supported when you are using the EC2 launch type. Windows containers only /// support the use of the local driver. To use bind mounts, specify a /// host instead.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DockerVolumeConfiguration { ///

    The scope for the Docker volume that determines its lifecycle. Docker volumes that are /// scoped to a task are automatically provisioned when the task starts and /// destroyed when the task stops. Docker volumes that are scoped as shared /// persist after the task stops.

    - #[serde(rename = "scope")] - #[serde(default)] pub scope: std::option::Option, ///

    If this value is true, the Docker volume is created if it does not /// already exist.

    /// ///

    This field is only used if the scope is shared.

    ///
    - #[serde(rename = "autoprovision")] - #[serde(default)] pub autoprovision: std::option::Option, ///

    The Docker volume driver to use. The driver value must match the driver name provided /// by Docker because it is used for task placement. If the driver was installed using the @@ -11961,23 +10940,17 @@ pub struct DockerVolumeConfiguration { /// Create a volume section of the Docker Remote API and the /// xxdriver option to docker /// volume create.

    - #[serde(rename = "driver")] - #[serde(default)] pub driver: std::option::Option, ///

    A map of Docker driver-specific options passed through. This parameter maps to /// DriverOpts in the Create a volume section of the /// Docker Remote API and the xxopt option to docker /// volume create.

    - #[serde(rename = "driverOpts")] - #[serde(default)] pub driver_opts: std::option::Option>, ///

    Custom metadata to add to your Docker volume. This parameter maps to /// Labels in the Create a volume section of the /// Docker Remote API and the xxlabel option to docker /// volume create.

    - #[serde(rename = "labels")] - #[serde(default)] pub labels: std::option::Option>, } @@ -12136,7 +11109,7 @@ impl std::convert::From<&str> for Scope { impl std::str::FromStr for Scope { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scope::from(s)) } } @@ -12154,19 +11127,10 @@ impl AsRef for Scope { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scope { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details on a container instance bind mount host volume.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HostVolumeProperties { ///

    When the host parameter is used, specify a sourcePath to /// declare the path on the host container instance that is presented to the container. If @@ -12178,8 +11142,6 @@ pub struct HostVolumeProperties { /// contents of the source path folder are exported.

    ///

    If you are using the Fargate launch type, the sourcePath /// parameter is not supported.

    - #[serde(rename = "sourcePath")] - #[serde(default)] pub source_path: std::option::Option, } impl std::fmt::Debug for HostVolumeProperties { @@ -12263,7 +11225,7 @@ impl std::convert::From<&str> for NetworkMode { impl std::str::FromStr for NetworkMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkMode::from(s)) } } @@ -12283,20 +11245,11 @@ impl AsRef for NetworkMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Container definitions are used in task definitions to describe the different /// containers that are launched as part of a task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerDefinition { ///

    The name of a container. If you are linking multiple containers together in a task /// definition, the name of one container can be entered in the @@ -12305,8 +11258,6 @@ pub struct ContainerDefinition { /// Create a container section of the Docker Remote API and the /// --name option to docker /// run.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The image used to start a container. This string is passed directly to the Docker /// daemon. Images in the Docker Hub registry are available by default. Other repositories @@ -12347,12 +11298,8 @@ pub struct ContainerDefinition { /// (for example, quay.io/assemblyline/ubuntu).

    /// /// - #[serde(rename = "image")] - #[serde(default)] pub image: std::option::Option, ///

    The private repository authentication credentials to use.

    - #[serde(rename = "repositoryCredentials")] - #[serde(default)] pub repository_credentials: std::option::Option, ///

    The number of cpu units reserved for the container. This parameter maps /// to CpuShares in the Create a container section of the @@ -12400,8 +11347,6 @@ pub struct ContainerDefinition { /// quota. Windows containers only have access to the specified amount of CPU that is /// described in the task definition. A null or zero CPU value is passed to Docker as /// 0, which Windows interprets as 1% of one CPU.

    - #[serde(rename = "cpu")] - #[serde(default)] pub cpu: i32, ///

    The amount (in MiB) of memory to present to the container. If your container attempts /// to exceed the memory specified here, the container is killed. The total amount of memory @@ -12419,8 +11364,6 @@ pub struct ContainerDefinition { /// the value of memory is used.

    ///

    The Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should /// not specify fewer than 4 MiB of memory for your containers.

    - #[serde(rename = "memory")] - #[serde(default)] pub memory: std::option::Option, ///

    The soft limit (in MiB) of memory to reserve for the container. When system memory is /// under heavy contention, Docker attempts to keep the container memory to this soft limit. @@ -12444,8 +11387,6 @@ pub struct ContainerDefinition { /// consume more memory resources when needed.

    ///

    The Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should /// not specify fewer than 4 MiB of memory for your containers.

    - #[serde(rename = "memoryReservation")] - #[serde(default)] pub memory_reservation: std::option::Option, ///

    The links parameter allows containers to communicate with each other /// without the need for port mappings. This parameter is only supported if the network mode @@ -12466,8 +11407,6 @@ pub struct ContainerDefinition { /// isolation is achieved on the container instance using security groups and VPC /// settings.

    /// - #[serde(rename = "links")] - #[serde(default)] pub links: std::option::Option>, ///

    The list of port mappings for the container. Port mappings allow containers to access /// ports on the host container instance to send or receive traffic.

    @@ -12492,8 +11431,6 @@ pub struct ContainerDefinition { /// networkBindings section DescribeTasks /// responses.

    /// - #[serde(rename = "portMappings")] - #[serde(default)] pub port_mappings: std::option::Option>, ///

    If the essential parameter of a container is marked as true, /// and that container fails or stops for any reason, all other containers that are part of @@ -12505,8 +11442,6 @@ pub struct ContainerDefinition { /// common purpose into components, and separate the different components into multiple task /// definitions. For more information, see Application /// Architecture in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "essential")] - #[serde(default)] pub essential: std::option::Option, /// ///

    Early versions of the Amazon ECS container agent do not properly handle @@ -12517,16 +11452,12 @@ pub struct ContainerDefinition { ///

    The entry point that is passed to the container. This parameter maps to /// Entrypoint in the Create a container section of the /// Docker Remote API and the --entrypoint option to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#entrypoint.

    - #[serde(rename = "entryPoint")] - #[serde(default)] pub entry_point: std::option::Option>, ///

    The command that is passed to the container. This parameter maps to Cmd /// in the Create a container section of the Docker Remote API and the /// COMMAND parameter to docker /// run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd. If there are multiple arguments, each /// argument should be a separated string in the array.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The environment variables to pass to a container. This parameter maps to /// Env in the Create a container section of the @@ -12535,8 +11466,6 @@ pub struct ContainerDefinition { ///

    We do not recommend using plaintext environment variables for sensitive /// information, such as credential data.

    ///
    - #[serde(rename = "environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    A list of files containing the environment variables to pass to a container. This /// parameter maps to the --env-file option to docker run.

    @@ -12552,8 +11481,6 @@ pub struct ContainerDefinition { /// same variable, they are processed from the top down. It is recommended to use unique /// variable names. For more information, see Specifying Environment /// Variables in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "environmentFiles")] - #[serde(default)] pub environment_files: std::option::Option>, ///

    The mount points for data volumes in your container.

    ///

    This parameter maps to Volumes in the Create a container @@ -12561,27 +11488,19 @@ pub struct ContainerDefinition { ///

    Windows containers can mount whole directories on the same drive as /// $env:ProgramData. Windows containers cannot mount directories on a /// different drive, and mount point cannot be across drives.

    - #[serde(rename = "mountPoints")] - #[serde(default)] pub mount_points: std::option::Option>, ///

    Data volumes to mount from another container. This parameter maps to /// VolumesFrom in the Create a container section of the /// Docker Remote API and the --volumes-from option to docker run.

    - #[serde(rename = "volumesFrom")] - #[serde(default)] pub volumes_from: std::option::Option>, ///

    Linux-specific modifications that are applied to the container, such as Linux kernel /// capabilities. For more information see KernelCapabilities.

    /// ///

    This parameter is not supported for Windows containers.

    ///
    - #[serde(rename = "linuxParameters")] - #[serde(default)] pub linux_parameters: std::option::Option, ///

    The secrets to pass to the container. For more information, see Specifying /// Sensitive Data in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "secrets")] - #[serde(default)] pub secrets: std::option::Option>, ///

    The dependencies defined for container startup and shutdown. A container can contain /// multiple dependencies. When a dependency is defined for container startup, for container @@ -12597,8 +11516,6 @@ pub struct ContainerDefinition { /// container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    ///

    For tasks using the Fargate launch type, the task or service requires /// platform version 1.3.0 or later.

    - #[serde(rename = "dependsOn")] - #[serde(default)] pub depends_on: std::option::Option>, ///

    Time duration (in seconds) to wait before giving up on resolving dependencies for a /// container. For example, you specify two containers in a task definition with containerA @@ -12623,8 +11540,6 @@ pub struct ContainerDefinition { /// the ecs-init package. If your container instances are launched from version /// 20190301 or later, then they contain the required versions of the /// container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "startTimeout")] - #[serde(default)] pub start_timeout: std::option::Option, ///

    Time duration (in seconds) to wait before the container is forcefully killed if it /// doesn't exit normally on its own.

    @@ -12646,8 +11561,6 @@ pub struct ContainerDefinition { /// ecs-init package. If your container instances are launched from version /// 20190301 or later, then they contain the required versions of the /// container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "stopTimeout")] - #[serde(default)] pub stop_timeout: std::option::Option, ///

    The hostname to use for your container. This parameter maps to Hostname /// in the Create a container section of the Docker Remote API and the @@ -12657,8 +11570,6 @@ pub struct ContainerDefinition { ///

    The hostname parameter is not supported if you are using the /// awsvpc network mode.

    /// - #[serde(rename = "hostname")] - #[serde(default)] pub hostname: std::option::Option, ///

    The user to use inside the container. This parameter maps to User in the /// Create a container section of the Docker Remote API and the @@ -12706,14 +11617,10 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "user")] - #[serde(default)] pub user: std::option::Option, ///

    The working directory in which to run commands inside the container. This parameter /// maps to WorkingDir in the Create a container section of the /// Docker Remote API and the --workdir option to docker run.

    - #[serde(rename = "workingDirectory")] - #[serde(default)] pub working_directory: std::option::Option, ///

    When this parameter is true, networking is disabled within the container. This /// parameter maps to NetworkDisabled in the Create a container @@ -12721,8 +11628,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "disableNetworking")] - #[serde(default)] pub disable_networking: std::option::Option, ///

    When this parameter is true, the container is given elevated privileges on the host /// container instance (similar to the root user). This parameter maps to @@ -12731,8 +11636,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers or tasks run on AWS Fargate.

    /// - #[serde(rename = "privileged")] - #[serde(default)] pub privileged: std::option::Option, ///

    When this parameter is true, the container is given read-only access to its root file /// system. This parameter maps to ReadonlyRootfs in the @@ -12742,8 +11645,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "readonlyRootFilesystem")] - #[serde(default)] pub readonly_root_filesystem: std::option::Option, ///

    A list of DNS servers that are presented to the container. This parameter maps to /// Dns in the Create a container section of the @@ -12751,8 +11652,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "dnsServers")] - #[serde(default)] pub dns_servers: std::option::Option>, ///

    A list of DNS search domains that are presented to the container. This parameter maps /// to DnsSearch in the Create a container section of the @@ -12760,8 +11659,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "dnsSearchDomains")] - #[serde(default)] pub dns_search_domains: std::option::Option>, ///

    A list of hostnames and IP address mappings to append to the /etc/hosts /// file on the container. This parameter maps to ExtraHosts in the @@ -12772,8 +11669,6 @@ pub struct ContainerDefinition { ///

    This parameter is not supported for Windows containers or tasks that use the /// awsvpc network mode.

    /// - #[serde(rename = "extraHosts")] - #[serde(default)] pub extra_hosts: std::option::Option>, ///

    A list of strings to provide custom labels for SELinux and AppArmor multi-level /// security systems. This field is not valid for containers in tasks using the @@ -12797,28 +11692,20 @@ pub struct ContainerDefinition { /// Run Security Configuration.

    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | /// "credentialspec:CredentialSpecFilePath"

    - #[serde(rename = "dockerSecurityOptions")] - #[serde(default)] pub docker_security_options: std::option::Option>, ///

    When this parameter is true, this allows you to deploy containerized /// applications that require stdin or a tty to be allocated. This /// parameter maps to OpenStdin in the Create a container /// section of the Docker Remote API and the --interactive option to docker run.

    - #[serde(rename = "interactive")] - #[serde(default)] pub interactive: std::option::Option, ///

    When this parameter is true, a TTY is allocated. This parameter maps to /// Tty in the Create a container section of the /// Docker Remote API and the --tty option to docker run.

    - #[serde(rename = "pseudoTerminal")] - #[serde(default)] pub pseudo_terminal: std::option::Option, ///

    A key/value map of labels to add to the container. This parameter maps to /// Labels in the Create a container section of the /// Docker Remote API and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}' ///

    - #[serde(rename = "dockerLabels")] - #[serde(default)] pub docker_labels: std::option::Option>, ///

    A list of ulimits to set in the container. If a ulimit value is specified @@ -12838,8 +11725,6 @@ pub struct ContainerDefinition { /// ///

    This parameter is not supported for Windows containers.

    /// - #[serde(rename = "ulimits")] - #[serde(default)] pub ulimits: std::option::Option>, ///

    The log configuration specification for the container.

    ///

    This parameter maps to LogConfig in the @@ -12868,16 +11753,12 @@ pub struct ContainerDefinition { /// information, see Amazon ECS Container /// Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    /// - #[serde(rename = "logConfiguration")] - #[serde(default)] pub log_configuration: std::option::Option, ///

    The container health check command and associated configuration parameters for the /// container. This parameter maps to HealthCheck in the /// Create a container section of the Docker Remote API and the /// HEALTHCHECK parameter of docker /// run.

    - #[serde(rename = "healthCheck")] - #[serde(default)] pub health_check: std::option::Option, ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to /// Sysctls in the Create a container section of the @@ -12891,20 +11772,14 @@ pub struct ContainerDefinition { /// host network mode, it changes the container instance's namespaced /// kernel parameters as well as the containers.

    /// - #[serde(rename = "systemControls")] - #[serde(default)] pub system_controls: std::option::Option>, ///

    The type and amount of a resource to assign to a container. The only supported /// resource is a GPU.

    - #[serde(rename = "resourceRequirements")] - #[serde(default)] pub resource_requirements: std::option::Option>, ///

    The FireLens configuration for the container. This is used to specify and configure a /// log router for container logs. For more information, see Custom Log Routing /// in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "firelensConfiguration")] - #[serde(default)] pub firelens_configuration: std::option::Option, } impl std::fmt::Debug for ContainerDefinition { @@ -13808,12 +12683,10 @@ impl ContainerDefinition { /// log router for container logs. For more information, see Custom Log Routing /// in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FirelensConfiguration { ///

    The log router to use. The valid values are fluentd or /// fluentbit.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The options to use when configuring the log router. This field is optional and can be /// used to specify a custom configuration file or to add additional metadata, such as the @@ -13827,8 +12700,6 @@ pub struct FirelensConfiguration { ///

    Tasks hosted on AWS Fargate only support the file configuration file /// type.

    /// - #[serde(rename = "options")] - #[serde(default)] pub options: std::option::Option>, } @@ -13928,7 +12799,7 @@ impl std::convert::From<&str> for FirelensConfigurationType { impl std::str::FromStr for FirelensConfigurationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FirelensConfigurationType::from(s)) } } @@ -13946,15 +12817,6 @@ impl AsRef for FirelensConfigurationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FirelensConfigurationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to /// Sysctls in the Create a container section of the @@ -13979,16 +12841,12 @@ impl<'de> serde::Deserialize<'de> for FirelensConfigurationType { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SystemControl { ///

    The namespaced kernel parameter for which to set a value.

    - #[serde(rename = "namespace")] - #[serde(default)] pub namespace: std::option::Option, ///

    The value for the namespaced kernel parameter specified in /// namespace.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for SystemControl { @@ -14111,7 +12969,7 @@ impl SystemControl { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HealthCheck { ///

    A string array representing the command that the container runs to determine if it is /// healthy. The string array must start with CMD to execute the command @@ -14123,24 +12981,16 @@ pub struct HealthCheck { ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For /// more information, see HealthCheck in the Create a container /// section of the Docker Remote API.

    - #[serde(rename = "command")] - #[serde(default)] pub command: std::option::Option>, ///

    The time period in seconds between each health check execution. You may specify /// between 5 and 300 seconds. The default value is 30 seconds.

    - #[serde(rename = "interval")] - #[serde(default)] pub interval: std::option::Option, ///

    The time period in seconds to wait for a health check to succeed before it is /// considered a failure. You may specify between 2 and 60 seconds. The default value is /// 5.

    - #[serde(rename = "timeout")] - #[serde(default)] pub timeout: std::option::Option, ///

    The number of times to retry a failed health check before the container is considered /// unhealthy. You may specify between 1 and 10 retries. The default value is 3.

    - #[serde(rename = "retries")] - #[serde(default)] pub retries: std::option::Option, ///

    The optional grace period within which to provide containers time to bootstrap before /// failed health checks count towards the maximum number of retries. You may specify @@ -14150,8 +13000,6 @@ pub struct HealthCheck { /// is considered healthy and any subsequent failures count toward the maximum number of /// retries.

    /// - #[serde(rename = "startPeriod")] - #[serde(default)] pub start_period: std::option::Option, } impl std::fmt::Debug for HealthCheck { @@ -14296,7 +13144,7 @@ impl HealthCheck { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LogConfiguration { ///

    The log driver to use for the container.

    ///

    For tasks on AWS Fargate, the supported log drivers are awslogs, @@ -14317,19 +13165,13 @@ pub struct LogConfiguration { /// do not currently provide support for running modified copies of this /// software.

    /// - #[serde(rename = "logDriver")] - #[serde(default)] pub log_driver: std::option::Option, ///

    The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}' ///

    - #[serde(rename = "options")] - #[serde(default)] pub options: std::option::Option>, ///

    The secrets to pass to the log configuration. For more information, see Specifying /// Sensitive Data in the Amazon Elastic Container Service Developer Guide.

    - #[serde(rename = "secretOptions")] - #[serde(default)] pub secret_options: std::option::Option>, } impl std::fmt::Debug for LogConfiguration { @@ -14448,11 +13290,9 @@ impl LogConfiguration { ///

    For more information, see Specifying /// Sensitive Data in the Amazon Elastic Container Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Secret { ///

    The name of the secret.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The secret to expose to the container. The supported values are either the full ARN of /// the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.

    @@ -14461,8 +13301,6 @@ pub struct Secret { /// are launching, then you can use either the full ARN or name of the parameter. If the /// parameter exists in a different Region, then the full ARN must be specified.

    /// - #[serde(rename = "valueFrom")] - #[serde(default)] pub value_from: std::option::Option, } impl std::fmt::Debug for Secret { @@ -14563,7 +13401,7 @@ impl std::convert::From<&str> for LogDriver { impl std::str::FromStr for LogDriver { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LogDriver::from(s)) } } @@ -14587,15 +13425,6 @@ impl AsRef for LogDriver { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LogDriver { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The ulimit settings to pass to the container.

    ///

    Amazon ECS tasks hosted on Fargate use the default @@ -14606,19 +13435,13 @@ impl<'de> serde::Deserialize<'de> for LogDriver { /// nofile soft limit is 1024 and hard limit /// is 4096.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Ulimit { ///

    The type of the ulimit.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    The soft limit for the ulimit type.

    - #[serde(rename = "softLimit")] - #[serde(default)] pub soft_limit: i32, ///

    The hard limit for the ulimit type.

    - #[serde(rename = "hardLimit")] - #[serde(default)] pub hard_limit: i32, } impl std::fmt::Debug for Ulimit { @@ -14739,7 +13562,7 @@ impl std::convert::From<&str> for UlimitName { impl std::str::FromStr for UlimitName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UlimitName::from(s)) } } @@ -14770,28 +13593,15 @@ impl AsRef for UlimitName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UlimitName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Hostnames and IP address entries that are added to the /etc/hosts file of /// a container via the extraHosts parameter of its ContainerDefinition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HostEntry { ///

    The hostname to use in the /etc/hosts entry.

    - #[serde(rename = "hostname")] - #[serde(default)] pub hostname: std::option::Option, ///

    The IP address to use in the /etc/hosts entry.

    - #[serde(rename = "ipAddress")] - #[serde(default)] pub ip_address: std::option::Option, } impl std::fmt::Debug for HostEntry { @@ -14863,11 +13673,9 @@ impl HostEntry { /// that the task or service uses platform version 1.3.0 or later.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerDependency { ///

    The name of a container.

    - #[serde(rename = "containerName")] - #[serde(default)] pub container_name: std::option::Option, ///

    The dependency condition of the container. The following are the available conditions /// and their behavior:

    @@ -14900,8 +13708,6 @@ pub struct ContainerDependency { /// This condition is confirmed only at task startup.

    /// /// - #[serde(rename = "condition")] - #[serde(default)] pub condition: std::option::Option, } impl std::fmt::Debug for ContainerDependency { @@ -15024,7 +13830,7 @@ impl std::convert::From<&str> for ContainerCondition { impl std::str::FromStr for ContainerCondition { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContainerCondition::from(s)) } } @@ -15044,19 +13850,10 @@ impl AsRef for ContainerCondition { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContainerCondition { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Linux-specific options that are applied to the container, such as Linux KernelCapabilities.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LinuxParameters { ///

    The Linux capabilities for the container that are added to or dropped from the default /// configuration provided by Docker.

    @@ -15066,8 +13863,6 @@ pub struct LinuxParameters { /// add parameter is only supported if using platform version 1.4.0 or /// later.

    /// - #[serde(rename = "capabilities")] - #[serde(default)] pub capabilities: std::option::Option, ///

    Any host devices to expose to the container. This parameter maps to /// Devices in the Create a container section of the @@ -15076,14 +13871,10 @@ pub struct LinuxParameters { ///

    If you are using tasks that use the Fargate launch type, the /// devices parameter is not supported.

    /// - #[serde(rename = "devices")] - #[serde(default)] pub devices: std::option::Option>, ///

    Run an init process inside the container that forwards signals and reaps /// processes. This parameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}' ///

    - #[serde(rename = "initProcessEnabled")] - #[serde(default)] pub init_process_enabled: std::option::Option, ///

    The value for the size (in MiB) of the /dev/shm volume. This parameter /// maps to the --shm-size option to docker @@ -15092,8 +13883,6 @@ pub struct LinuxParameters { ///

    If you are using tasks that use the Fargate launch type, the /// sharedMemorySize parameter is not supported.

    /// - #[serde(rename = "sharedMemorySize")] - #[serde(default)] pub shared_memory_size: std::option::Option, ///

    The container path, mount options, and size (in MiB) of the tmpfs mount. This /// parameter maps to the --tmpfs option to docker run.

    @@ -15101,8 +13890,6 @@ pub struct LinuxParameters { ///

    If you are using tasks that use the Fargate launch type, the /// tmpfs parameter is not supported.

    /// - #[serde(rename = "tmpfs")] - #[serde(default)] pub tmpfs: std::option::Option>, ///

    The total amount of swap memory (in MiB) a container can use. This parameter will be /// translated to the --memory-swap option to docker run where the value would be the sum of @@ -15116,8 +13903,6 @@ pub struct LinuxParameters { ///

    If you are using tasks that use the Fargate launch type, the /// maxSwap parameter is not supported.

    /// - #[serde(rename = "maxSwap")] - #[serde(default)] pub max_swap: std::option::Option, ///

    This allows you to tune a container's memory swappiness behavior. A /// swappiness value of 0 will cause swapping to not happen @@ -15131,8 +13916,6 @@ pub struct LinuxParameters { ///

    If you are using tasks that use the Fargate launch type, the /// swappiness parameter is not supported.

    /// - #[serde(rename = "swappiness")] - #[serde(default)] pub swappiness: std::option::Option, } impl std::fmt::Debug for LinuxParameters { @@ -15297,15 +14080,11 @@ impl LinuxParameters { ///

    The container path, mount options, and size of the tmpfs mount.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tmpfs { ///

    The absolute file path where the tmpfs volume is to be mounted.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    The maximum size (in MiB) of the tmpfs volume.

    - #[serde(rename = "size")] - #[serde(default)] pub size: i32, ///

    The list of tmpfs volume mount options.

    ///

    Valid values: "defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | @@ -15315,8 +14094,6 @@ pub struct Tmpfs { /// "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" /// | "nr_inodes" | "nr_blocks" | "mpol" ///

    - #[serde(rename = "mountOptions")] - #[serde(default)] pub mount_options: std::option::Option>, } impl std::fmt::Debug for Tmpfs { @@ -15392,21 +14169,15 @@ impl Tmpfs { ///

    An object representing a container instance host device.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Device { ///

    The path for the device on the host container instance.

    - #[serde(rename = "hostPath")] - #[serde(default)] pub host_path: std::option::Option, ///

    The path inside the container at which to expose the host device.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    The explicit permissions to provide to the container for the device. By default, the /// container has permissions for read, write, and /// mknod for the device.

    - #[serde(rename = "permissions")] - #[serde(default)] pub permissions: std::option::Option>, } impl std::fmt::Debug for Device { @@ -15514,7 +14285,7 @@ impl std::convert::From<&str> for DeviceCgroupPermission { impl std::str::FromStr for DeviceCgroupPermission { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeviceCgroupPermission::from(s)) } } @@ -15533,15 +14304,6 @@ impl AsRef for DeviceCgroupPermission { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeviceCgroupPermission { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KernelCapabilities { ///

    The Linux capabilities for the container that have been added to the default /// configuration provided by Docker. This parameter maps to CapAdd in the @@ -15569,8 +14331,6 @@ pub struct KernelCapabilities { /// "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | /// "WAKE_ALARM" ///

    - #[serde(rename = "add")] - #[serde(default)] pub add: std::option::Option>, ///

    The Linux capabilities for the container that have been removed from the default /// configuration provided by Docker. This parameter maps to CapDrop in the @@ -15586,8 +14346,6 @@ pub struct KernelCapabilities { /// "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | /// "WAKE_ALARM" ///

    - #[serde(rename = "drop")] - #[serde(default)] pub drop: std::option::Option>, } impl std::fmt::Debug for KernelCapabilities { @@ -15652,18 +14410,14 @@ impl KernelCapabilities { ///

    Details on a data volume from another container in the same task definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VolumeFrom { ///

    The name of another container within the same task definition from which to mount /// volumes.

    - #[serde(rename = "sourceContainer")] - #[serde(default)] pub source_container: std::option::Option, ///

    If this value is true, the container has read-only access to the volume. /// If this value is false, then the container can write to the volume. The /// default value is false.

    - #[serde(rename = "readOnly")] - #[serde(default)] pub read_only: std::option::Option, } impl std::fmt::Debug for VolumeFrom { @@ -15726,22 +14480,16 @@ impl VolumeFrom { ///

    Details on a volume mount point that is used in a container definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MountPoint { ///

    The name of the volume to mount. Must be a volume name referenced in the /// name parameter of task definition volume.

    - #[serde(rename = "sourceVolume")] - #[serde(default)] pub source_volume: std::option::Option, ///

    The path on the container to mount the host volume at.

    - #[serde(rename = "containerPath")] - #[serde(default)] pub container_path: std::option::Option, ///

    If this value is true, the container has read-only access to the volume. /// If this value is false, then the container can write to the volume. The /// default value is false.

    - #[serde(rename = "readOnly")] - #[serde(default)] pub read_only: std::option::Option, } impl std::fmt::Debug for MountPoint { @@ -15832,7 +14580,7 @@ impl MountPoint { /// container port assignments are visible in the networkBindings section of /// DescribeTasks API responses.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PortMapping { ///

    The port number on the container that is bound to the user-specified or automatically /// assigned host port.

    @@ -15844,8 +14592,6 @@ pub struct PortMapping { /// a host port in the ephemeral port range. For more information, see /// hostPort. Port mappings that are automatically assigned in this way do not /// count toward the 100 reserved ports limit of a container instance.

    - #[serde(rename = "containerPort")] - #[serde(default)] pub container_port: std::option::Option, ///

    The port number on the container instance to reserve for your container.

    ///

    If you are using containers in a task with the awsvpc or @@ -15875,13 +14621,9 @@ pub struct PortMapping { /// output. A container instance can have up to 100 reserved ports at a time, including the /// default reserved ports. Automatically assigned ports don't count toward the 100 reserved /// ports limit.

    - #[serde(rename = "hostPort")] - #[serde(default)] pub host_port: std::option::Option, ///

    The protocol used for the port mapping. Valid values are tcp and /// udp. The default is tcp.

    - #[serde(rename = "protocol")] - #[serde(default)] pub protocol: std::option::Option, } impl std::fmt::Debug for PortMapping { @@ -15990,7 +14732,7 @@ impl PortMapping { ///

    The repository credentials for private registry authentication.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RepositoryCredentials { ///

    The Amazon Resource Name (ARN) of the secret containing the private repository /// credentials.

    @@ -16000,8 +14742,6 @@ pub struct RepositoryCredentials { /// or the name of the secret. When you are using the AWS Management Console, you must specify the /// full ARN of the secret.

    /// - #[serde(rename = "credentialsParameter")] - #[serde(default)] pub credentials_parameter: std::option::Option, } impl std::fmt::Debug for RepositoryCredentials { @@ -16057,18 +14797,14 @@ impl RepositoryCredentials { ///

    The devices that are available on the container instance. The only supported device /// type is a GPU.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PlatformDevice { ///

    The ID for the GPU(s) on the container instance. The available GPU IDs can also be /// obtained on the container instance in the /// /var/lib/ecs/gpu/nvidia_gpu_info.json file.

    - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, ///

    The type of device that is available on the container instance. The only supported /// value is GPU.

    - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for PlatformDevice { @@ -16155,7 +14891,7 @@ impl std::convert::From<&str> for PlatformDeviceType { impl std::str::FromStr for PlatformDeviceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlatformDeviceType::from(s)) } } @@ -16172,32 +14908,17 @@ impl AsRef for PlatformDeviceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlatformDeviceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The current account setting for a resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Setting { ///

    The Amazon ECS resource name.

    - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

    Whether the account setting is enabled or disabled for the specified resource.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

    The ARN of the principal, which can be an IAM user, IAM role, or the root user. If /// this field is omitted, the authenticated user is assumed.

    - #[serde(rename = "principalArn")] - #[serde(default)] pub principal_arn: std::option::Option, } impl std::fmt::Debug for Setting { @@ -16302,7 +15023,7 @@ impl std::convert::From<&str> for SettingName { impl std::str::FromStr for SettingName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SettingName::from(s)) } } @@ -16323,15 +15044,6 @@ impl AsRef for SettingName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SettingName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16363,7 +15075,7 @@ impl std::convert::From<&str> for DesiredStatus { impl std::str::FromStr for DesiredStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DesiredStatus::from(s)) } } @@ -16382,15 +15094,6 @@ impl AsRef for DesiredStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DesiredStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16420,7 +15123,7 @@ impl std::convert::From<&str> for SortOrder { impl std::str::FromStr for SortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortOrder::from(s)) } } @@ -16438,15 +15141,6 @@ impl AsRef for SortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16478,7 +15172,7 @@ impl std::convert::From<&str> for TaskDefinitionFamilyStatus { impl std::str::FromStr for TaskDefinitionFamilyStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskDefinitionFamilyStatus::from(s)) } } @@ -16497,33 +15191,18 @@ impl AsRef for TaskDefinitionFamilyStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskDefinitionFamilyStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The details of the execute command session.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Session { ///

    The ID of the execute command session.

    - #[serde(rename = "sessionId")] - #[serde(default)] pub session_id: std::option::Option, ///

    A URL back to managed agent on the container that the SSM Session Manager client uses /// to send commands and receive output from the container.

    - #[serde(rename = "streamUrl")] - #[serde(default)] pub stream_url: std::option::Option, ///

    An encrypted token value containing session and caller information. Used to /// authenticate the connection to the container.

    - #[serde(rename = "tokenValue")] - #[serde(default)] pub token_value: std::option::Option, } impl std::fmt::Debug for Session { @@ -16618,7 +15297,7 @@ impl std::convert::From<&str> for TaskSetField { impl std::str::FromStr for TaskSetField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskSetField::from(s)) } } @@ -16635,15 +15314,6 @@ impl AsRef for TaskSetField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskSetField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16671,7 +15341,7 @@ impl std::convert::From<&str> for TaskField { impl std::str::FromStr for TaskField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskField::from(s)) } } @@ -16688,15 +15358,6 @@ impl AsRef for TaskField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16724,7 +15385,7 @@ impl std::convert::From<&str> for TaskDefinitionField { impl std::str::FromStr for TaskDefinitionField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskDefinitionField::from(s)) } } @@ -16741,15 +15402,6 @@ impl AsRef for TaskDefinitionField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskDefinitionField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16777,7 +15429,7 @@ impl std::convert::From<&str> for ServiceField { impl std::str::FromStr for ServiceField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ServiceField::from(s)) } } @@ -16794,15 +15446,6 @@ impl AsRef for ServiceField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ServiceField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16830,7 +15473,7 @@ impl std::convert::From<&str> for ContainerInstanceField { impl std::str::FromStr for ContainerInstanceField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContainerInstanceField::from(s)) } } @@ -16847,15 +15490,6 @@ impl AsRef for ContainerInstanceField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContainerInstanceField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16891,7 +15525,7 @@ impl std::convert::From<&str> for ClusterField { impl std::str::FromStr for ClusterField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ClusterField::from(s)) } } @@ -16912,15 +15546,6 @@ impl AsRef for ClusterField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ClusterField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16948,7 +15573,7 @@ impl std::convert::From<&str> for CapacityProviderField { impl std::str::FromStr for CapacityProviderField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacityProviderField::from(s)) } } @@ -16965,12 +15590,3 @@ impl AsRef for CapacityProviderField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacityProviderField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/ecs/src/operation.rs b/sdk/ecs/src/operation.rs index 7a36155e155b..56542fd78d43 100644 --- a/sdk/ecs/src/operation.rs +++ b/sdk/ecs/src/operation.rs @@ -15,81 +15,6 @@ impl CreateCapacityProvider { pub fn builder() -> crate::input::create_capacity_provider_input::Builder { crate::input::create_capacity_provider_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateCapacityProviderOutput, - crate::error::CreateCapacityProviderError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateCapacityProviderError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCapacityProviderError { - kind: crate::error::CreateCapacityProviderErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::CreateCapacityProviderError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCapacityProviderError { - kind: crate::error::CreateCapacityProviderErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateCapacityProviderError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCapacityProviderError { - kind: crate::error::CreateCapacityProviderErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateCapacityProviderError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCapacityProviderError { - kind: crate::error::CreateCapacityProviderErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateCapacityProviderError::unhandled(e), - }, - "UpdateInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCapacityProviderError { - kind: crate::error::CreateCapacityProviderErrorKind::UpdateInProgressError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateCapacityProviderError::unhandled(e), - }, - _ => crate::error::CreateCapacityProviderError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_capacity_provider_output::Builder::default(); - builder = crate::json_deser::create_capacity_provider_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateCapacityProviderError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -100,7 +25,11 @@ impl smithy_http::response::ParseStrictResponse for CreateCapacityProvider { crate::error::CreateCapacityProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_capacity_provider_error(response) + } else { + crate::operation_deser::parse_create_capacity_provider_response(response) + } } } @@ -125,53 +54,6 @@ impl CreateCluster { pub fn builder() -> crate::input::create_cluster_input::Builder { crate::input::create_cluster_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateClusterError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateClusterError { - kind: crate::error::CreateClusterErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::CreateClusterError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateClusterError { - kind: crate::error::CreateClusterErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CreateClusterError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateClusterError { - kind: crate::error::CreateClusterErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateClusterError::unhandled(e), - }, - _ => crate::error::CreateClusterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_cluster_output::Builder::default(); - builder = - crate::json_deser::create_cluster_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateClusterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -180,7 +62,11 @@ impl smithy_http::response::ParseStrictResponse for CreateCluster { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_cluster_error(response) + } else { + crate::operation_deser::parse_create_cluster_response(response) + } } } @@ -299,64 +185,6 @@ impl CreateService { pub fn builder() -> crate::input::create_service_input::Builder { crate::input::create_service_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateServiceError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "PlatformTaskDefinitionIncompatibilityException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "PlatformUnknownException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::PlatformUnknownError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateServiceError { kind: crate::error::CreateServiceErrorKind::UnsupportedFeatureError(body), meta: generic }, - Err(e) => crate::error::CreateServiceError::unhandled(e) - } - _ => crate::error::CreateServiceError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_service_output::Builder::default(); - builder = - crate::json_deser::create_service_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateServiceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -365,7 +193,11 @@ impl smithy_http::response::ParseStrictResponse for CreateService { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_service_error(response) + } else { + crate::operation_deser::parse_create_service_response(response) + } } } @@ -382,72 +214,6 @@ impl CreateTaskSet { pub fn builder() -> crate::input::create_task_set_input::Builder { crate::input::create_task_set_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTaskSetError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "PlatformTaskDefinitionIncompatibilityException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "PlatformUnknownException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::PlatformUnknownError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::ServiceNotActiveError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::ServiceNotFoundError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTaskSetError { kind: crate::error::CreateTaskSetErrorKind::UnsupportedFeatureError(body), meta: generic }, - Err(e) => crate::error::CreateTaskSetError::unhandled(e) - } - _ => crate::error::CreateTaskSetError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_task_set_output::Builder::default(); - builder = - crate::json_deser::create_task_set_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateTaskSetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -456,7 +222,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTaskSet { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_task_set_error(response) + } else { + crate::operation_deser::parse_create_task_set_response(response) + } } } @@ -471,59 +241,6 @@ impl DeleteAccountSetting { pub fn builder() -> crate::input::delete_account_setting_input::Builder { crate::input::delete_account_setting_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteAccountSettingOutput, - crate::error::DeleteAccountSettingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAccountSettingError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAccountSettingError { - kind: crate::error::DeleteAccountSettingErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAccountSettingError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAccountSettingError { - kind: crate::error::DeleteAccountSettingErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteAccountSettingError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAccountSettingError { - kind: crate::error::DeleteAccountSettingErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAccountSettingError::unhandled(e), - }, - _ => crate::error::DeleteAccountSettingError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_account_setting_output::Builder::default(); - builder = crate::json_deser::delete_account_setting_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteAccountSettingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -534,7 +251,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAccountSetting { crate::error::DeleteAccountSettingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_account_setting_error(response) + } else { + crate::operation_deser::parse_delete_account_setting_response(response) + } } } @@ -548,55 +269,6 @@ impl DeleteAttributes { pub fn builder() -> crate::input::delete_attributes_input::Builder { crate::input::delete_attributes_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteAttributesOutput, - crate::error::DeleteAttributesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAttributesError::unhandled(generic)), - }; - return Err(match error_code { - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAttributesError { - kind: crate::error::DeleteAttributesErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAttributesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAttributesError { - kind: crate::error::DeleteAttributesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAttributesError::unhandled(e), - }, - "TargetNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAttributesError { - kind: crate::error::DeleteAttributesErrorKind::TargetNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAttributesError::unhandled(e), - }, - _ => crate::error::DeleteAttributesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_attributes_output::Builder::default(); - builder = - crate::json_deser::delete_attributes_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteAttributesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -607,7 +279,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAttributes { crate::error::DeleteAttributesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_attributes_error(response) + } else { + crate::operation_deser::parse_delete_attributes_response(response) + } } } @@ -635,63 +311,6 @@ impl DeleteCapacityProvider { pub fn builder() -> crate::input::delete_capacity_provider_input::Builder { crate::input::delete_capacity_provider_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteCapacityProviderOutput, - crate::error::DeleteCapacityProviderError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteCapacityProviderError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCapacityProviderError { - kind: crate::error::DeleteCapacityProviderErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteCapacityProviderError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCapacityProviderError { - kind: crate::error::DeleteCapacityProviderErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteCapacityProviderError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCapacityProviderError { - kind: crate::error::DeleteCapacityProviderErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteCapacityProviderError::unhandled(e), - }, - _ => crate::error::DeleteCapacityProviderError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_capacity_provider_output::Builder::default(); - builder = crate::json_deser::delete_capacity_provider_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -702,7 +321,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteCapacityProvider { crate::error::DeleteCapacityProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_capacity_provider_error(response) + } else { + crate::operation_deser::parse_delete_capacity_provider_response(response) + } } } @@ -722,64 +345,6 @@ impl DeleteCluster { pub fn builder() -> crate::input::delete_cluster_input::Builder { crate::input::delete_cluster_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteClusterError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "ClusterContainsContainerInstancesException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ClusterContainsContainerInstancesError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "ClusterContainsServicesException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ClusterContainsServicesError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "ClusterContainsTasksException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ClusterContainsTasksError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - "UpdateInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteClusterError { kind: crate::error::DeleteClusterErrorKind::UpdateInProgressError(body), meta: generic }, - Err(e) => crate::error::DeleteClusterError::unhandled(e) - } - _ => crate::error::DeleteClusterError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_cluster_output::Builder::default(); - builder = - crate::json_deser::delete_cluster_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteClusterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -788,7 +353,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteCluster { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_cluster_error(response) + } else { + crate::operation_deser::parse_delete_cluster_response(response) + } } } @@ -822,67 +391,6 @@ impl DeleteService { pub fn builder() -> crate::input::delete_service_input::Builder { crate::input::delete_service_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteServiceError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteServiceError { - kind: crate::error::DeleteServiceErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteServiceError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteServiceError { - kind: crate::error::DeleteServiceErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteServiceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteServiceError { - kind: crate::error::DeleteServiceErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteServiceError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteServiceError { - kind: crate::error::DeleteServiceErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteServiceError::unhandled(e), - }, - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteServiceError { - kind: crate::error::DeleteServiceErrorKind::ServiceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteServiceError::unhandled(e), - }, - _ => crate::error::DeleteServiceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_service_output::Builder::default(); - builder = - crate::json_deser::delete_service_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteServiceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -891,7 +399,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteService { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_service_error(response) + } else { + crate::operation_deser::parse_delete_service_response(response) + } } } @@ -906,95 +418,6 @@ impl DeleteTaskSet { pub fn builder() -> crate::input::delete_task_set_input::Builder { crate::input::delete_task_set_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteTaskSetError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::AccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::ServiceNotActiveError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::ServiceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "TaskSetNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::TaskSetNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTaskSetError { - kind: crate::error::DeleteTaskSetErrorKind::UnsupportedFeatureError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTaskSetError::unhandled(e), - }, - _ => crate::error::DeleteTaskSetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_task_set_output::Builder::default(); - builder = - crate::json_deser::delete_task_set_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteTaskSetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1003,7 +426,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteTaskSet { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_task_set_error(response) + } else { + crate::operation_deser::parse_delete_task_set_response(response) + } } } @@ -1029,56 +456,6 @@ impl DeregisterContainerInstance { pub fn builder() -> crate::input::deregister_container_instance_input::Builder { crate::input::deregister_container_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterContainerInstanceOutput, - crate::error::DeregisterContainerInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeregisterContainerInstanceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterContainerInstanceError { kind: crate::error::DeregisterContainerInstanceErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::DeregisterContainerInstanceError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterContainerInstanceError { kind: crate::error::DeregisterContainerInstanceErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::DeregisterContainerInstanceError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterContainerInstanceError { kind: crate::error::DeregisterContainerInstanceErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::DeregisterContainerInstanceError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterContainerInstanceError { kind: crate::error::DeregisterContainerInstanceErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::DeregisterContainerInstanceError::unhandled(e) - } - _ => crate::error::DeregisterContainerInstanceError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::deregister_container_instance_output::Builder::default(); - builder = crate::json_deser::deregister_container_instance_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1089,7 +466,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterContainerInstance crate::error::DeregisterContainerInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_container_instance_error(response) + } else { + crate::operation_deser::parse_deregister_container_instance_response(response) + } } } @@ -1118,64 +499,6 @@ impl DeregisterTaskDefinition { pub fn builder() -> crate::input::deregister_task_definition_input::Builder { crate::input::deregister_task_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterTaskDefinitionOutput, - crate::error::DeregisterTaskDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeregisterTaskDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTaskDefinitionError { - kind: crate::error::DeregisterTaskDefinitionErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DeregisterTaskDefinitionError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTaskDefinitionError { - kind: - crate::error::DeregisterTaskDefinitionErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterTaskDefinitionError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTaskDefinitionError { - kind: crate::error::DeregisterTaskDefinitionErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeregisterTaskDefinitionError::unhandled(e), - }, - _ => crate::error::DeregisterTaskDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::deregister_task_definition_output::Builder::default(); - builder = crate::json_deser::deregister_task_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1186,7 +509,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterTaskDefinition { crate::error::DeregisterTaskDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_task_definition_error(response) + } else { + crate::operation_deser::parse_deregister_task_definition_response(response) + } } } @@ -1200,64 +527,6 @@ impl DescribeCapacityProviders { pub fn builder() -> crate::input::describe_capacity_providers_input::Builder { crate::input::describe_capacity_providers_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeCapacityProvidersOutput, - crate::error::DescribeCapacityProvidersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeCapacityProvidersError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCapacityProvidersError { - kind: crate::error::DescribeCapacityProvidersErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeCapacityProvidersError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCapacityProvidersError { - kind: - crate::error::DescribeCapacityProvidersErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeCapacityProvidersError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCapacityProvidersError { - kind: crate::error::DescribeCapacityProvidersErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeCapacityProvidersError::unhandled(e), - }, - _ => crate::error::DescribeCapacityProvidersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_capacity_providers_output::Builder::default(); - builder = crate::json_deser::describe_capacity_providers_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1268,7 +537,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeCapacityProviders { crate::error::DescribeCapacityProvidersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_capacity_providers_error(response) + } else { + crate::operation_deser::parse_describe_capacity_providers_response(response) + } } } @@ -1282,55 +555,6 @@ impl DescribeClusters { pub fn builder() -> crate::input::describe_clusters_input::Builder { crate::input::describe_clusters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeClustersOutput, - crate::error::DescribeClustersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeClustersError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeClustersError { - kind: crate::error::DescribeClustersErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeClustersError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeClustersError { - kind: crate::error::DescribeClustersErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeClustersError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeClustersError { - kind: crate::error::DescribeClustersErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeClustersError::unhandled(e), - }, - _ => crate::error::DescribeClustersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_clusters_output::Builder::default(); - builder = - crate::json_deser::describe_clusters_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeClustersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1341,7 +565,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeClusters { crate::error::DescribeClustersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_clusters_error(response) + } else { + crate::operation_deser::parse_describe_clusters_response(response) + } } } @@ -1356,74 +584,6 @@ impl DescribeContainerInstances { pub fn builder() -> crate::input::describe_container_instances_input::Builder { crate::input::describe_container_instances_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeContainerInstancesOutput, - crate::error::DescribeContainerInstancesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeContainerInstancesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContainerInstancesError { - kind: crate::error::DescribeContainerInstancesErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeContainerInstancesError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContainerInstancesError { - kind: - crate::error::DescribeContainerInstancesErrorKind::ClusterNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeContainerInstancesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContainerInstancesError { - kind: - crate::error::DescribeContainerInstancesErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeContainerInstancesError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContainerInstancesError { - kind: crate::error::DescribeContainerInstancesErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeContainerInstancesError::unhandled(e), - }, - _ => crate::error::DescribeContainerInstancesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_container_instances_output::Builder::default(); - builder = crate::json_deser::describe_container_instances_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1434,7 +594,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeContainerInstances { crate::error::DescribeContainerInstancesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_container_instances_error(response) + } else { + crate::operation_deser::parse_describe_container_instances_response(response) + } } } @@ -1448,62 +612,6 @@ impl DescribeServices { pub fn builder() -> crate::input::describe_services_input::Builder { crate::input::describe_services_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeServicesOutput, - crate::error::DescribeServicesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeServicesError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeServicesError { - kind: crate::error::DescribeServicesErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeServicesError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeServicesError { - kind: crate::error::DescribeServicesErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeServicesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeServicesError { - kind: crate::error::DescribeServicesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeServicesError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeServicesError { - kind: crate::error::DescribeServicesErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeServicesError::unhandled(e), - }, - _ => crate::error::DescribeServicesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_services_output::Builder::default(); - builder = - crate::json_deser::describe_services_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeServicesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1514,7 +622,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeServices { crate::error::DescribeServicesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_services_error(response) + } else { + crate::operation_deser::parse_describe_services_response(response) + } } } @@ -1535,63 +647,6 @@ impl DescribeTaskDefinition { pub fn builder() -> crate::input::describe_task_definition_input::Builder { crate::input::describe_task_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTaskDefinitionOutput, - crate::error::DescribeTaskDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeTaskDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskDefinitionError { - kind: crate::error::DescribeTaskDefinitionErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskDefinitionError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskDefinitionError { - kind: crate::error::DescribeTaskDefinitionErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskDefinitionError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskDefinitionError { - kind: crate::error::DescribeTaskDefinitionErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskDefinitionError::unhandled(e), - }, - _ => crate::error::DescribeTaskDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_task_definition_output::Builder::default(); - builder = crate::json_deser::describe_task_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1602,7 +657,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTaskDefinition { crate::error::DescribeTaskDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_task_definition_error(response) + } else { + crate::operation_deser::parse_describe_task_definition_response(response) + } } } @@ -1616,60 +675,6 @@ impl DescribeTasks { pub fn builder() -> crate::input::describe_tasks_input::Builder { crate::input::describe_tasks_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTasksError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTasksError { - kind: crate::error::DescribeTasksErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTasksError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTasksError { - kind: crate::error::DescribeTasksErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTasksError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTasksError { - kind: crate::error::DescribeTasksErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTasksError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTasksError { - kind: crate::error::DescribeTasksErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTasksError::unhandled(e), - }, - _ => crate::error::DescribeTasksError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_tasks_output::Builder::default(); - builder = - crate::json_deser::describe_tasks_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeTasksError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1678,7 +683,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTasks { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_tasks_error(response) + } else { + crate::operation_deser::parse_describe_tasks_response(response) + } } } @@ -1695,94 +704,6 @@ impl DescribeTaskSets { pub fn builder() -> crate::input::describe_task_sets_input::Builder { crate::input::describe_task_sets_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTaskSetsOutput, - crate::error::DescribeTaskSetsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTaskSetsError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::AccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::ServiceNotActiveError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::ServiceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTaskSetsError { - kind: crate::error::DescribeTaskSetsErrorKind::UnsupportedFeatureError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeTaskSetsError::unhandled(e), - }, - _ => crate::error::DescribeTaskSetsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_task_sets_output::Builder::default(); - builder = crate::json_deser::describe_task_sets_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTaskSetsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1793,7 +714,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTaskSets { crate::error::DescribeTaskSetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_task_sets_error(response) + } else { + crate::operation_deser::parse_describe_task_sets_response(response) + } } } @@ -1811,50 +736,6 @@ impl DiscoverPollEndpoint { pub fn builder() -> crate::input::discover_poll_endpoint_input::Builder { crate::input::discover_poll_endpoint_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DiscoverPollEndpointOutput, - crate::error::DiscoverPollEndpointError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DiscoverPollEndpointError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DiscoverPollEndpointError { - kind: crate::error::DiscoverPollEndpointErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::DiscoverPollEndpointError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DiscoverPollEndpointError { - kind: crate::error::DiscoverPollEndpointErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::DiscoverPollEndpointError::unhandled(e), - }, - _ => crate::error::DiscoverPollEndpointError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::discover_poll_endpoint_output::Builder::default(); - builder = crate::json_deser::discover_poll_endpoint_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DiscoverPollEndpointError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1865,7 +746,11 @@ impl smithy_http::response::ParseStrictResponse for DiscoverPollEndpoint { crate::error::DiscoverPollEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_discover_poll_endpoint_error(response) + } else { + crate::operation_deser::parse_discover_poll_endpoint_response(response) + } } } @@ -1879,74 +764,6 @@ impl ExecuteCommand { pub fn builder() -> crate::input::execute_command_input::Builder { crate::input::execute_command_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ExecuteCommandError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::AccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - "TargetNotConnectedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ExecuteCommandError { - kind: crate::error::ExecuteCommandErrorKind::TargetNotConnectedError(body), - meta: generic, - }, - Err(e) => crate::error::ExecuteCommandError::unhandled(e), - }, - _ => crate::error::ExecuteCommandError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::execute_command_output::Builder::default(); - builder = - crate::json_deser::execute_command_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ExecuteCommandError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1955,7 +772,11 @@ impl smithy_http::response::ParseStrictResponse for ExecuteCommand { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_execute_command_error(response) + } else { + crate::operation_deser::parse_execute_command_response(response) + } } } @@ -1969,59 +790,6 @@ impl ListAccountSettings { pub fn builder() -> crate::input::list_account_settings_input::Builder { crate::input::list_account_settings_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListAccountSettingsOutput, - crate::error::ListAccountSettingsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListAccountSettingsError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAccountSettingsError { - kind: crate::error::ListAccountSettingsErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListAccountSettingsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAccountSettingsError { - kind: crate::error::ListAccountSettingsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListAccountSettingsError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAccountSettingsError { - kind: crate::error::ListAccountSettingsErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListAccountSettingsError::unhandled(e), - }, - _ => crate::error::ListAccountSettingsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_account_settings_output::Builder::default(); - builder = crate::json_deser::list_account_settings_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListAccountSettingsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2032,7 +800,11 @@ impl smithy_http::response::ParseStrictResponse for ListAccountSettings { crate::error::ListAccountSettingsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_account_settings_error(response) + } else { + crate::operation_deser::parse_list_account_settings_response(response) + } } } @@ -2052,46 +824,6 @@ impl ListAttributes { pub fn builder() -> crate::input::list_attributes_input::Builder { crate::input::list_attributes_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListAttributesError::unhandled(generic)), - }; - return Err(match error_code { - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAttributesError { - kind: crate::error::ListAttributesErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListAttributesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAttributesError { - kind: crate::error::ListAttributesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ListAttributesError::unhandled(e), - }, - _ => crate::error::ListAttributesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_attributes_output::Builder::default(); - builder = - crate::json_deser::list_attributes_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAttributesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2100,7 +832,11 @@ impl smithy_http::response::ParseStrictResponse for ListAttributes { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_attributes_error(response) + } else { + crate::operation_deser::parse_list_attributes_response(response) + } } } @@ -2114,53 +850,6 @@ impl ListClusters { pub fn builder() -> crate::input::list_clusters_input::Builder { crate::input::list_clusters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListClustersError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListClustersError { - kind: crate::error::ListClustersErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListClustersError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListClustersError { - kind: crate::error::ListClustersErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ListClustersError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListClustersError { - kind: crate::error::ListClustersErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListClustersError::unhandled(e), - }, - _ => crate::error::ListClustersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_clusters_output::Builder::default(); - builder = - crate::json_deser::list_clusters_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListClustersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2169,7 +858,11 @@ impl smithy_http::response::ParseStrictResponse for ListClusters { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_clusters_error(response) + } else { + crate::operation_deser::parse_list_clusters_response(response) + } } } @@ -2186,72 +879,6 @@ impl ListContainerInstances { pub fn builder() -> crate::input::list_container_instances_input::Builder { crate::input::list_container_instances_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListContainerInstancesOutput, - crate::error::ListContainerInstancesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListContainerInstancesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContainerInstancesError { - kind: crate::error::ListContainerInstancesErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListContainerInstancesError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContainerInstancesError { - kind: crate::error::ListContainerInstancesErrorKind::ClusterNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListContainerInstancesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContainerInstancesError { - kind: crate::error::ListContainerInstancesErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListContainerInstancesError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContainerInstancesError { - kind: crate::error::ListContainerInstancesErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListContainerInstancesError::unhandled(e), - }, - _ => crate::error::ListContainerInstancesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_container_instances_output::Builder::default(); - builder = crate::json_deser::list_container_instances_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListContainerInstancesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2262,7 +889,11 @@ impl smithy_http::response::ParseStrictResponse for ListContainerInstances { crate::error::ListContainerInstancesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_container_instances_error(response) + } else { + crate::operation_deser::parse_list_container_instances_response(response) + } } } @@ -2277,60 +908,6 @@ impl ListServices { pub fn builder() -> crate::input::list_services_input::Builder { crate::input::list_services_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListServicesError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListServicesError { - kind: crate::error::ListServicesErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListServicesError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListServicesError { - kind: crate::error::ListServicesErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListServicesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListServicesError { - kind: crate::error::ListServicesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ListServicesError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListServicesError { - kind: crate::error::ListServicesErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListServicesError::unhandled(e), - }, - _ => crate::error::ListServicesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_services_output::Builder::default(); - builder = - crate::json_deser::list_services_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListServicesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2339,7 +916,11 @@ impl smithy_http::response::ParseStrictResponse for ListServices { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_services_error(response) + } else { + crate::operation_deser::parse_list_services_response(response) + } } } @@ -2353,68 +934,6 @@ impl ListTagsForResource { pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { crate::input::list_tags_for_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTagsForResourceOutput, - crate::error::ListTagsForResourceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::ClusterNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - _ => crate::error::ListTagsForResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_for_resource_output::Builder::default(); - builder = crate::json_deser::list_tags_for_resource_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2425,7 +944,11 @@ impl smithy_http::response::ParseStrictResponse for ListTagsForResource { crate::error::ListTagsForResourceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_for_resource_response(response) + } } } @@ -2445,64 +968,6 @@ impl ListTaskDefinitionFamilies { pub fn builder() -> crate::input::list_task_definition_families_input::Builder { crate::input::list_task_definition_families_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTaskDefinitionFamiliesOutput, - crate::error::ListTaskDefinitionFamiliesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListTaskDefinitionFamiliesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionFamiliesError { - kind: crate::error::ListTaskDefinitionFamiliesErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionFamiliesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionFamiliesError { - kind: - crate::error::ListTaskDefinitionFamiliesErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionFamiliesError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionFamiliesError { - kind: crate::error::ListTaskDefinitionFamiliesErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionFamiliesError::unhandled(e), - }, - _ => crate::error::ListTaskDefinitionFamiliesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_task_definition_families_output::Builder::default(); - builder = crate::json_deser::list_task_definition_families_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2513,7 +978,11 @@ impl smithy_http::response::ParseStrictResponse for ListTaskDefinitionFamilies { crate::error::ListTaskDefinitionFamiliesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_task_definition_families_error(response) + } else { + crate::operation_deser::parse_list_task_definition_families_response(response) + } } } @@ -2529,59 +998,6 @@ impl ListTaskDefinitions { pub fn builder() -> crate::input::list_task_definitions_input::Builder { crate::input::list_task_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTaskDefinitionsOutput, - crate::error::ListTaskDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTaskDefinitionsError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionsError { - kind: crate::error::ListTaskDefinitionsErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionsError { - kind: crate::error::ListTaskDefinitionsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionsError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTaskDefinitionsError { - kind: crate::error::ListTaskDefinitionsErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTaskDefinitionsError::unhandled(e), - }, - _ => crate::error::ListTaskDefinitionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_task_definitions_output::Builder::default(); - builder = crate::json_deser::list_task_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2592,7 +1008,11 @@ impl smithy_http::response::ParseStrictResponse for ListTaskDefinitions { crate::error::ListTaskDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_task_definitions_error(response) + } else { + crate::operation_deser::parse_list_task_definitions_response(response) + } } } @@ -2610,65 +1030,6 @@ impl ListTasks { pub fn builder() -> crate::input::list_tasks_input::Builder { crate::input::list_tasks_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTasksError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTasksError { - kind: crate::error::ListTasksErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::ListTasksError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTasksError { - kind: crate::error::ListTasksErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListTasksError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTasksError { - kind: crate::error::ListTasksErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ListTasksError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTasksError { - kind: crate::error::ListTasksErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTasksError::unhandled(e), - }, - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTasksError { - kind: crate::error::ListTasksErrorKind::ServiceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListTasksError::unhandled(e), - }, - _ => crate::error::ListTasksError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tasks_output::Builder::default(); - builder = crate::json_deser::list_tasks_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListTasksError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2676,7 +1037,11 @@ impl ListTasks { impl smithy_http::response::ParseStrictResponse for ListTasks { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tasks_error(response) + } else { + crate::operation_deser::parse_list_tasks_response(response) + } } } @@ -2713,57 +1078,6 @@ impl PutAccountSetting { pub fn builder() -> crate::input::put_account_setting_input::Builder { crate::input::put_account_setting_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutAccountSettingOutput, - crate::error::PutAccountSettingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutAccountSettingError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingError { - kind: crate::error::PutAccountSettingErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingError { - kind: crate::error::PutAccountSettingErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingError { - kind: crate::error::PutAccountSettingErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingError::unhandled(e), - }, - _ => crate::error::PutAccountSettingError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_account_setting_output::Builder::default(); - builder = crate::json_deser::put_account_setting_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutAccountSettingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2774,7 +1088,11 @@ impl smithy_http::response::ParseStrictResponse for PutAccountSetting { crate::error::PutAccountSettingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_account_setting_error(response) + } else { + crate::operation_deser::parse_put_account_setting_response(response) + } } } @@ -2790,64 +1108,6 @@ impl PutAccountSettingDefault { pub fn builder() -> crate::input::put_account_setting_default_input::Builder { crate::input::put_account_setting_default_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutAccountSettingDefaultOutput, - crate::error::PutAccountSettingDefaultError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::PutAccountSettingDefaultError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingDefaultError { - kind: crate::error::PutAccountSettingDefaultErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingDefaultError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingDefaultError { - kind: - crate::error::PutAccountSettingDefaultErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingDefaultError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAccountSettingDefaultError { - kind: crate::error::PutAccountSettingDefaultErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::PutAccountSettingDefaultError::unhandled(e), - }, - _ => crate::error::PutAccountSettingDefaultError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_account_setting_default_output::Builder::default(); - builder = crate::json_deser::put_account_setting_default_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2858,7 +1118,11 @@ impl smithy_http::response::ParseStrictResponse for PutAccountSettingDefault { crate::error::PutAccountSettingDefaultError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_account_setting_default_error(response) + } else { + crate::operation_deser::parse_put_account_setting_default_response(response) + } } } @@ -2876,62 +1140,6 @@ impl PutAttributes { pub fn builder() -> crate::input::put_attributes_input::Builder { crate::input::put_attributes_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutAttributesError::unhandled(generic)), - }; - return Err(match error_code { - "AttributeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAttributesError { - kind: crate::error::PutAttributesErrorKind::AttributeLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutAttributesError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAttributesError { - kind: crate::error::PutAttributesErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutAttributesError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAttributesError { - kind: crate::error::PutAttributesErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutAttributesError::unhandled(e), - }, - "TargetNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutAttributesError { - kind: crate::error::PutAttributesErrorKind::TargetNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutAttributesError::unhandled(e), - }, - _ => crate::error::PutAttributesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_attributes_output::Builder::default(); - builder = - crate::json_deser::put_attributes_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutAttributesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2940,7 +1148,11 @@ impl smithy_http::response::ParseStrictResponse for PutAttributes { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_attributes_error(response) + } else { + crate::operation_deser::parse_put_attributes_response(response) + } } } @@ -2967,64 +1179,6 @@ impl PutClusterCapacityProviders { pub fn builder() -> crate::input::put_cluster_capacity_providers_input::Builder { crate::input::put_cluster_capacity_providers_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutClusterCapacityProvidersOutput, - crate::error::PutClusterCapacityProvidersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::PutClusterCapacityProvidersError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - "UpdateInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutClusterCapacityProvidersError { kind: crate::error::PutClusterCapacityProvidersErrorKind::UpdateInProgressError(body), meta: generic }, - Err(e) => crate::error::PutClusterCapacityProvidersError::unhandled(e) - } - _ => crate::error::PutClusterCapacityProvidersError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_cluster_capacity_providers_output::Builder::default(); - builder = crate::json_deser::put_cluster_capacity_providers_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3035,7 +1189,11 @@ impl smithy_http::response::ParseStrictResponse for PutClusterCapacityProviders crate::error::PutClusterCapacityProvidersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_cluster_capacity_providers_error(response) + } else { + crate::operation_deser::parse_put_cluster_capacity_providers_response(response) + } } } @@ -3054,64 +1212,6 @@ impl RegisterContainerInstance { pub fn builder() -> crate::input::register_container_instance_input::Builder { crate::input::register_container_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterContainerInstanceOutput, - crate::error::RegisterContainerInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RegisterContainerInstanceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterContainerInstanceError { - kind: crate::error::RegisterContainerInstanceErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::RegisterContainerInstanceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterContainerInstanceError { - kind: - crate::error::RegisterContainerInstanceErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterContainerInstanceError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterContainerInstanceError { - kind: crate::error::RegisterContainerInstanceErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::RegisterContainerInstanceError::unhandled(e), - }, - _ => crate::error::RegisterContainerInstanceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::register_container_instance_output::Builder::default(); - builder = crate::json_deser::register_container_instance_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3122,7 +1222,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterContainerInstance { crate::error::RegisterContainerInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_container_instance_error(response) + } else { + crate::operation_deser::parse_register_container_instance_response(response) + } } } @@ -3153,63 +1257,6 @@ impl RegisterTaskDefinition { pub fn builder() -> crate::input::register_task_definition_input::Builder { crate::input::register_task_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterTaskDefinitionOutput, - crate::error::RegisterTaskDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RegisterTaskDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskDefinitionError { - kind: crate::error::RegisterTaskDefinitionErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::RegisterTaskDefinitionError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskDefinitionError { - kind: crate::error::RegisterTaskDefinitionErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterTaskDefinitionError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskDefinitionError { - kind: crate::error::RegisterTaskDefinitionErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::RegisterTaskDefinitionError::unhandled(e), - }, - _ => crate::error::RegisterTaskDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::register_task_definition_output::Builder::default(); - builder = crate::json_deser::register_task_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3220,7 +1267,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterTaskDefinition { crate::error::RegisterTaskDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_task_definition_error(response) + } else { + crate::operation_deser::parse_register_task_definition_response(response) + } } } @@ -3262,66 +1313,6 @@ impl RunTask { pub fn builder() -> crate::input::run_task_input::Builder { crate::input::run_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RunTaskError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "BlockedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::BlockedError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "PlatformTaskDefinitionIncompatibilityException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "PlatformUnknownException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::PlatformUnknownError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RunTaskError { kind: crate::error::RunTaskErrorKind::UnsupportedFeatureError(body), meta: generic }, - Err(e) => crate::error::RunTaskError::unhandled(e) - } - _ => crate::error::RunTaskError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::run_task_output::Builder::default(); - builder = crate::json_deser::run_task_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::RunTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3329,7 +1320,11 @@ impl RunTask { impl smithy_http::response::ParseStrictResponse for RunTask { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_run_task_error(response) + } else { + crate::operation_deser::parse_run_task_response(response) + } } } @@ -3347,58 +1342,6 @@ impl StartTask { pub fn builder() -> crate::input::start_task_input::Builder { crate::input::start_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartTaskError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartTaskError { - kind: crate::error::StartTaskErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::StartTaskError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartTaskError { - kind: crate::error::StartTaskErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::StartTaskError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartTaskError { - kind: crate::error::StartTaskErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::StartTaskError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartTaskError { - kind: crate::error::StartTaskErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::StartTaskError::unhandled(e), - }, - _ => crate::error::StartTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_task_output::Builder::default(); - builder = crate::json_deser::start_task_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::StartTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3406,7 +1349,11 @@ impl StartTask { impl smithy_http::response::ParseStrictResponse for StartTask { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_task_error(response) + } else { + crate::operation_deser::parse_start_task_response(response) + } } } @@ -3432,58 +1379,6 @@ impl StopTask { pub fn builder() -> crate::input::stop_task_input::Builder { crate::input::stop_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopTaskError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTaskError { - kind: crate::error::StopTaskErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::StopTaskError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTaskError { - kind: crate::error::StopTaskErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::StopTaskError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTaskError { - kind: crate::error::StopTaskErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::StopTaskError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTaskError { - kind: crate::error::StopTaskErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::StopTaskError::unhandled(e), - }, - _ => crate::error::StopTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_task_output::Builder::default(); - builder = crate::json_deser::stop_task_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::StopTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3491,7 +1386,11 @@ impl StopTask { impl smithy_http::response::ParseStrictResponse for StopTask { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_task_error(response) + } else { + crate::operation_deser::parse_stop_task_response(response) + } } } @@ -3509,56 +1408,6 @@ impl SubmitAttachmentStateChanges { pub fn builder() -> crate::input::submit_attachment_state_changes_input::Builder { crate::input::submit_attachment_state_changes_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SubmitAttachmentStateChangesOutput, - crate::error::SubmitAttachmentStateChangesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::SubmitAttachmentStateChangesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitAttachmentStateChangesError { kind: crate::error::SubmitAttachmentStateChangesErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::SubmitAttachmentStateChangesError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitAttachmentStateChangesError { kind: crate::error::SubmitAttachmentStateChangesErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::SubmitAttachmentStateChangesError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitAttachmentStateChangesError { kind: crate::error::SubmitAttachmentStateChangesErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::SubmitAttachmentStateChangesError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitAttachmentStateChangesError { kind: crate::error::SubmitAttachmentStateChangesErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::SubmitAttachmentStateChangesError::unhandled(e) - } - _ => crate::error::SubmitAttachmentStateChangesError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::submit_attachment_state_changes_output::Builder::default(); - builder = crate::json_deser::submit_attachment_state_changes_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3569,7 +1418,11 @@ impl smithy_http::response::ParseStrictResponse for SubmitAttachmentStateChanges crate::error::SubmitAttachmentStateChangesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_submit_attachment_state_changes_error(response) + } else { + crate::operation_deser::parse_submit_attachment_state_changes_response(response) + } } } @@ -3587,63 +1440,6 @@ impl SubmitContainerStateChange { pub fn builder() -> crate::input::submit_container_state_change_input::Builder { crate::input::submit_container_state_change_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SubmitContainerStateChangeOutput, - crate::error::SubmitContainerStateChangeError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::SubmitContainerStateChangeError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitContainerStateChangeError { - kind: crate::error::SubmitContainerStateChangeErrorKind::AccessDeniedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::SubmitContainerStateChangeError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitContainerStateChangeError { - kind: crate::error::SubmitContainerStateChangeErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::SubmitContainerStateChangeError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitContainerStateChangeError { - kind: crate::error::SubmitContainerStateChangeErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::SubmitContainerStateChangeError::unhandled(e), - }, - _ => crate::error::SubmitContainerStateChangeError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::submit_container_state_change_output::Builder::default(); - builder = crate::json_deser::submit_container_state_change_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3654,7 +1450,11 @@ impl smithy_http::response::ParseStrictResponse for SubmitContainerStateChange { crate::error::SubmitContainerStateChangeError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_submit_container_state_change_error(response) + } else { + crate::operation_deser::parse_submit_container_state_change_response(response) + } } } @@ -3672,66 +1472,6 @@ impl SubmitTaskStateChange { pub fn builder() -> crate::input::submit_task_state_change_input::Builder { crate::input::submit_task_state_change_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SubmitTaskStateChangeOutput, - crate::error::SubmitTaskStateChangeError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SubmitTaskStateChangeError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitTaskStateChangeError { - kind: crate::error::SubmitTaskStateChangeErrorKind::AccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::SubmitTaskStateChangeError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitTaskStateChangeError { - kind: crate::error::SubmitTaskStateChangeErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::SubmitTaskStateChangeError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitTaskStateChangeError { - kind: crate::error::SubmitTaskStateChangeErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::SubmitTaskStateChangeError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SubmitTaskStateChangeError { - kind: crate::error::SubmitTaskStateChangeErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::SubmitTaskStateChangeError::unhandled(e), - }, - _ => crate::error::SubmitTaskStateChangeError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::submit_task_state_change_output::Builder::default(); - builder = crate::json_deser::submit_task_state_change_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3742,7 +1482,11 @@ impl smithy_http::response::ParseStrictResponse for SubmitTaskStateChange { crate::error::SubmitTaskStateChangeError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_submit_task_state_change_error(response) + } else { + crate::operation_deser::parse_submit_task_state_change_response(response) + } } } @@ -3759,63 +1503,6 @@ impl TagResource { pub fn builder() -> crate::input::tag_resource_input::Builder { crate::input::tag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - _ => crate::error::TagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::tag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3824,7 +1511,11 @@ impl smithy_http::response::ParseStrictResponse for TagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } } } @@ -3838,64 +1529,6 @@ impl UntagResource { pub fn builder() -> crate::input::untag_resource_input::Builder { crate::input::untag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UntagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - _ => crate::error::UntagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::untag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3904,7 +1537,11 @@ impl smithy_http::response::ParseStrictResponse for UntagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } } } @@ -3918,63 +1555,6 @@ impl UpdateCapacityProvider { pub fn builder() -> crate::input::update_capacity_provider_input::Builder { crate::input::update_capacity_provider_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateCapacityProviderOutput, - crate::error::UpdateCapacityProviderError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateCapacityProviderError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCapacityProviderError { - kind: crate::error::UpdateCapacityProviderErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateCapacityProviderError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCapacityProviderError { - kind: crate::error::UpdateCapacityProviderErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateCapacityProviderError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCapacityProviderError { - kind: crate::error::UpdateCapacityProviderErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateCapacityProviderError::unhandled(e), - }, - _ => crate::error::UpdateCapacityProviderError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_capacity_provider_output::Builder::default(); - builder = crate::json_deser::update_capacity_provider_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3985,7 +1565,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateCapacityProvider { crate::error::UpdateCapacityProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_capacity_provider_error(response) + } else { + crate::operation_deser::parse_update_capacity_provider_response(response) + } } } @@ -3999,60 +1583,6 @@ impl UpdateCluster { pub fn builder() -> crate::input::update_cluster_input::Builder { crate::input::update_cluster_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateClusterError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterError { - kind: crate::error::UpdateClusterErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterError { - kind: crate::error::UpdateClusterErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterError { - kind: crate::error::UpdateClusterErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterError { - kind: crate::error::UpdateClusterErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterError::unhandled(e), - }, - _ => crate::error::UpdateClusterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_cluster_output::Builder::default(); - builder = - crate::json_deser::update_cluster_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateClusterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4061,7 +1591,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateCluster { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_cluster_error(response) + } else { + crate::operation_deser::parse_update_cluster_response(response) + } } } @@ -4075,68 +1609,6 @@ impl UpdateClusterSettings { pub fn builder() -> crate::input::update_cluster_settings_input::Builder { crate::input::update_cluster_settings_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateClusterSettingsOutput, - crate::error::UpdateClusterSettingsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateClusterSettingsError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterSettingsError { - kind: crate::error::UpdateClusterSettingsErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterSettingsError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterSettingsError { - kind: crate::error::UpdateClusterSettingsErrorKind::ClusterNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterSettingsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterSettingsError { - kind: crate::error::UpdateClusterSettingsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterSettingsError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateClusterSettingsError { - kind: crate::error::UpdateClusterSettingsErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateClusterSettingsError::unhandled(e), - }, - _ => crate::error::UpdateClusterSettingsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_cluster_settings_output::Builder::default(); - builder = crate::json_deser::update_cluster_settings_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4147,7 +1619,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateClusterSettings { crate::error::UpdateClusterSettingsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_cluster_settings_error(response) + } else { + crate::operation_deser::parse_update_cluster_settings_response(response) + } } } @@ -4176,95 +1652,6 @@ impl UpdateContainerAgent { pub fn builder() -> crate::input::update_container_agent_input::Builder { crate::input::update_container_agent_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateContainerAgentOutput, - crate::error::UpdateContainerAgentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateContainerAgentError::unhandled(generic)), - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::ClusterNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "MissingVersionException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::MissingVersionError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "NoUpdateAvailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::NoUpdateAvailableError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - "UpdateInProgressException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerAgentError { - kind: crate::error::UpdateContainerAgentErrorKind::UpdateInProgressError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateContainerAgentError::unhandled(e), - }, - _ => crate::error::UpdateContainerAgentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_container_agent_output::Builder::default(); - builder = crate::json_deser::update_container_agent_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateContainerAgentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4275,7 +1662,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateContainerAgent { crate::error::UpdateContainerAgentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_container_agent_error(response) + } else { + crate::operation_deser::parse_update_container_agent_response(response) + } } } @@ -4337,57 +1728,6 @@ impl UpdateContainerInstancesState { pub fn builder() -> crate::input::update_container_instances_state_input::Builder { crate::input::update_container_instances_state_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateContainerInstancesStateOutput, - crate::error::UpdateContainerInstancesStateError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateContainerInstancesStateError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerInstancesStateError { kind: crate::error::UpdateContainerInstancesStateErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::UpdateContainerInstancesStateError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerInstancesStateError { kind: crate::error::UpdateContainerInstancesStateErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateContainerInstancesStateError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerInstancesStateError { kind: crate::error::UpdateContainerInstancesStateErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::UpdateContainerInstancesStateError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContainerInstancesStateError { kind: crate::error::UpdateContainerInstancesStateErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::UpdateContainerInstancesStateError::unhandled(e) - } - _ => crate::error::UpdateContainerInstancesStateError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::update_container_instances_state_output::Builder::default(); - builder = crate::json_deser::update_container_instances_state_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4398,7 +1738,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateContainerInstancesStat crate::error::UpdateContainerInstancesStateError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_container_instances_state_error(response) + } else { + crate::operation_deser::parse_update_container_instances_state_response(response) + } } } @@ -4520,68 +1864,6 @@ impl UpdateService { pub fn builder() -> crate::input::update_service_input::Builder { crate::input::update_service_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateServiceError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "PlatformTaskDefinitionIncompatibilityException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "PlatformUnknownException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::PlatformUnknownError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::ServiceNotActiveError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceError { kind: crate::error::UpdateServiceErrorKind::ServiceNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateServiceError::unhandled(e) - } - _ => crate::error::UpdateServiceError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_service_output::Builder::default(); - builder = - crate::json_deser::update_service_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateServiceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4590,7 +1872,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateService { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_service_error(response) + } else { + crate::operation_deser::parse_update_service_response(response) + } } } @@ -4608,76 +1894,6 @@ impl UpdateServicePrimaryTaskSet { pub fn builder() -> crate::input::update_service_primary_task_set_input::Builder { crate::input::update_service_primary_task_set_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateServicePrimaryTaskSetOutput, - crate::error::UpdateServicePrimaryTaskSetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateServicePrimaryTaskSetError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::AccessDeniedError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ClientError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServerError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "TaskSetNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServicePrimaryTaskSetError { kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureError(body), meta: generic }, - Err(e) => crate::error::UpdateServicePrimaryTaskSetError::unhandled(e) - } - _ => crate::error::UpdateServicePrimaryTaskSetError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_service_primary_task_set_output::Builder::default(); - builder = crate::json_deser::update_service_primary_task_set_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4688,7 +1904,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateServicePrimaryTaskSet crate::error::UpdateServicePrimaryTaskSetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_service_primary_task_set_error(response) + } else { + crate::operation_deser::parse_update_service_primary_task_set_response(response) + } } } @@ -4704,95 +1924,6 @@ impl UpdateTaskSet { pub fn builder() -> crate::input::update_task_set_input::Builder { crate::input::update_task_set_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTaskSetError::unhandled(generic)), - }; - return Err(match error_code { - "AccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::AccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "ClientException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::ClientError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "ClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::ClusterNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "ServerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::ServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "ServiceNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::ServiceNotActiveError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "ServiceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::ServiceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "TaskSetNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::TaskSetNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - "UnsupportedFeatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTaskSetError { - kind: crate::error::UpdateTaskSetErrorKind::UnsupportedFeatureError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTaskSetError::unhandled(e), - }, - _ => crate::error::UpdateTaskSetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_task_set_output::Builder::default(); - builder = - crate::json_deser::update_task_set_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateTaskSetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4801,6 +1932,10 @@ impl smithy_http::response::ParseStrictResponse for UpdateTaskSet { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_task_set_error(response) + } else { + crate::operation_deser::parse_update_task_set_response(response) + } } } diff --git a/sdk/ecs/src/operation_deser.rs b/sdk/ecs/src/operation_deser.rs new file mode 100644 index 000000000000..d296e561f62f --- /dev/null +++ b/sdk/ecs/src/operation_deser.rs @@ -0,0 +1,5201 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_capacity_provider_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCapacityProviderOutput, + crate::error::CreateCapacityProviderError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateCapacityProviderError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::CreateCapacityProviderError { + meta: generic, + kind: crate::error::CreateCapacityProviderErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateCapacityProviderError { + meta: generic, + kind: crate::error::CreateCapacityProviderErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateCapacityProviderError { + meta: generic, + kind: crate::error::CreateCapacityProviderErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CreateCapacityProviderError { + meta: generic, + kind: crate::error::CreateCapacityProviderErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "UpdateInProgressException" => crate::error::CreateCapacityProviderError { + meta: generic, + kind: crate::error::CreateCapacityProviderErrorKind::UpdateInProgressException({ + #[allow(unused_mut)] + let mut output = crate::error::update_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_update_in_progress_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateCapacityProviderError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_capacity_provider_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCapacityProviderOutput, + crate::error::CreateCapacityProviderError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_capacity_provider_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_capacity_provider( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCapacityProviderError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_cluster(response.body().as_ref(), output) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_service_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateServiceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateServiceError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "PlatformTaskDefinitionIncompatibilityException" => crate::error::CreateServiceError { + meta: generic, + kind: + crate::error::CreateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException( + { + #[allow(unused_mut)]let mut output = crate::error::platform_task_definition_incompatibility_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_task_definition_incompatibility_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }, + ), + }, + "PlatformUnknownException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::PlatformUnknownException({ + #[allow(unused_mut)] + let mut output = crate::error::platform_unknown_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_unknown_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::CreateServiceError { + meta: generic, + kind: crate::error::CreateServiceErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateServiceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_service_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_service_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_service(response.body().as_ref(), output) + .map_err(crate::error::CreateServiceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_task_set_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTaskSetError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "PlatformTaskDefinitionIncompatibilityException" => crate::error::CreateTaskSetError { + meta: generic, + kind: + crate::error::CreateTaskSetErrorKind::PlatformTaskDefinitionIncompatibilityException( + { + #[allow(unused_mut)]let mut output = crate::error::platform_task_definition_incompatibility_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_task_definition_incompatibility_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }, + ), + }, + "PlatformUnknownException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::PlatformUnknownException({ + #[allow(unused_mut)] + let mut output = crate::error::platform_unknown_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_unknown_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::CreateTaskSetError { + meta: generic, + kind: crate::error::CreateTaskSetErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTaskSetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_task_set_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_task_set_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_task_set(response.body().as_ref(), output) + .map_err(crate::error::CreateTaskSetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_account_setting_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAccountSettingOutput, + crate::error::DeleteAccountSettingError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAccountSettingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAccountSettingError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteAccountSettingError { + meta: generic, + kind: crate::error::DeleteAccountSettingErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAccountSettingError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteAccountSettingError { + meta: generic, + kind: crate::error::DeleteAccountSettingErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAccountSettingError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteAccountSettingError { + meta: generic, + kind: crate::error::DeleteAccountSettingErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAccountSettingError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAccountSettingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_account_setting_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAccountSettingOutput, + crate::error::DeleteAccountSettingError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_account_setting_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_account_setting( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAccountSettingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_attributes_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAttributesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAttributesError::unhandled(generic)), + }; + Err(match error_code { + "ClusterNotFoundException" => crate::error::DeleteAttributesError { + meta: generic, + kind: crate::error::DeleteAttributesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAttributesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteAttributesError { + meta: generic, + kind: crate::error::DeleteAttributesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAttributesError::unhandled)?; + output.build() + }), + }, + "TargetNotFoundException" => crate::error::DeleteAttributesError { + meta: generic, + kind: crate::error::DeleteAttributesErrorKind::TargetNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::target_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_target_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAttributesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAttributesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_attributes_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_attributes_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_attributes(response.body().as_ref(), output) + .map_err(crate::error::DeleteAttributesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_capacity_provider_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCapacityProviderOutput, + crate::error::DeleteCapacityProviderError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteCapacityProviderError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DeleteCapacityProviderError { + meta: generic, + kind: crate::error::DeleteCapacityProviderErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteCapacityProviderError { + meta: generic, + kind: crate::error::DeleteCapacityProviderErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteCapacityProviderError { + meta: generic, + kind: crate::error::DeleteCapacityProviderErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteCapacityProviderError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_capacity_provider_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCapacityProviderOutput, + crate::error::DeleteCapacityProviderError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_capacity_provider_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_capacity_provider( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteCapacityProviderError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ClusterContainsContainerInstancesException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClusterContainsContainerInstancesException( + { + #[allow(unused_mut)]let mut output = crate::error::cluster_contains_container_instances_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_contains_container_instances_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }, + ), + }, + "ClusterContainsServicesException" => { + crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClusterContainsServicesException({ + #[allow(unused_mut)] + let mut output = + crate::error::cluster_contains_services_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_contains_services_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + } + } + "ClusterContainsTasksException" => { + crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClusterContainsTasksException({ + #[allow(unused_mut)] + let mut output = + crate::error::cluster_contains_tasks_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_contains_tasks_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + } + } + "ClusterNotFoundException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "UpdateInProgressException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::UpdateInProgressException({ + #[allow(unused_mut)] + let mut output = crate::error::update_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_update_in_progress_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_cluster(response.body().as_ref(), output) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_service_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteServiceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteServiceError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteServiceError { + meta: generic, + kind: crate::error::DeleteServiceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DeleteServiceError { + meta: generic, + kind: crate::error::DeleteServiceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteServiceError { + meta: generic, + kind: crate::error::DeleteServiceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteServiceError { + meta: generic, + kind: crate::error::DeleteServiceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::DeleteServiceError { + meta: generic, + kind: crate::error::DeleteServiceErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteServiceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_service_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_service_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_service(response.body().as_ref(), output) + .map_err(crate::error::DeleteServiceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_task_set_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteTaskSetError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "TaskSetNotFoundException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::TaskSetNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::task_set_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_task_set_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::DeleteTaskSetError { + meta: generic, + kind: crate::error::DeleteTaskSetErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteTaskSetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_task_set_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_task_set_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_task_set(response.body().as_ref(), output) + .map_err(crate::error::DeleteTaskSetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_container_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterContainerInstanceOutput, + crate::error::DeregisterContainerInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterContainerInstanceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DeregisterContainerInstanceError { + meta: generic, + kind: crate::error::DeregisterContainerInstanceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DeregisterContainerInstanceError { + meta: generic, + kind: crate::error::DeregisterContainerInstanceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeregisterContainerInstanceError { + meta: generic, + kind: crate::error::DeregisterContainerInstanceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeregisterContainerInstanceError { + meta: generic, + kind: crate::error::DeregisterContainerInstanceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeregisterContainerInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_container_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterContainerInstanceOutput, + crate::error::DeregisterContainerInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::deregister_container_instance_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_deregister_container_instance( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterContainerInstanceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_task_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTaskDefinitionOutput, + crate::error::DeregisterTaskDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterTaskDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DeregisterTaskDefinitionError { + meta: generic, + kind: crate::error::DeregisterTaskDefinitionErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeregisterTaskDefinitionError { + meta: generic, + kind: crate::error::DeregisterTaskDefinitionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeregisterTaskDefinitionError { + meta: generic, + kind: crate::error::DeregisterTaskDefinitionErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeregisterTaskDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_task_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTaskDefinitionOutput, + crate::error::DeregisterTaskDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::deregister_task_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_deregister_task_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_capacity_providers_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCapacityProvidersOutput, + crate::error::DescribeCapacityProvidersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeCapacityProvidersError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DescribeCapacityProvidersError { + meta: generic, + kind: crate::error::DescribeCapacityProvidersErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeCapacityProvidersError { + meta: generic, + kind: crate::error::DescribeCapacityProvidersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeCapacityProvidersError { + meta: generic, + kind: crate::error::DescribeCapacityProvidersErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeCapacityProvidersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_capacity_providers_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCapacityProvidersOutput, + crate::error::DescribeCapacityProvidersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_capacity_providers_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_capacity_providers( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCapacityProvidersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_clusters_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeClustersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeClustersError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeClustersError { + meta: generic, + kind: crate::error::DescribeClustersErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClustersError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeClustersError { + meta: generic, + kind: crate::error::DescribeClustersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClustersError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeClustersError { + meta: generic, + kind: crate::error::DescribeClustersErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClustersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeClustersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_clusters_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_clusters_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_clusters(response.body().as_ref(), output) + .map_err(crate::error::DescribeClustersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_container_instances_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContainerInstancesOutput, + crate::error::DescribeContainerInstancesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeContainerInstancesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DescribeContainerInstancesError { + meta: generic, + kind: crate::error::DescribeContainerInstancesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DescribeContainerInstancesError { + meta: generic, + kind: crate::error::DescribeContainerInstancesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeContainerInstancesError { + meta: generic, + kind: crate::error::DescribeContainerInstancesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeContainerInstancesError { + meta: generic, + kind: crate::error::DescribeContainerInstancesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeContainerInstancesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_container_instances_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeContainerInstancesOutput, + crate::error::DescribeContainerInstancesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_container_instances_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_container_instances( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContainerInstancesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_services_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeServicesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeServicesError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeServicesError { + meta: generic, + kind: crate::error::DescribeServicesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeServicesError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DescribeServicesError { + meta: generic, + kind: crate::error::DescribeServicesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeServicesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeServicesError { + meta: generic, + kind: crate::error::DescribeServicesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeServicesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeServicesError { + meta: generic, + kind: crate::error::DescribeServicesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeServicesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeServicesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_services_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_services_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_services(response.body().as_ref(), output) + .map_err(crate::error::DescribeServicesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_task_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTaskDefinitionOutput, + crate::error::DescribeTaskDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeTaskDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DescribeTaskDefinitionError { + meta: generic, + kind: crate::error::DescribeTaskDefinitionErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeTaskDefinitionError { + meta: generic, + kind: crate::error::DescribeTaskDefinitionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeTaskDefinitionError { + meta: generic, + kind: crate::error::DescribeTaskDefinitionErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTaskDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_task_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTaskDefinitionOutput, + crate::error::DescribeTaskDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_task_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_task_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_tasks_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTasksError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTasksError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeTasksError { + meta: generic, + kind: crate::error::DescribeTasksErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTasksError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DescribeTasksError { + meta: generic, + kind: crate::error::DescribeTasksErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTasksError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeTasksError { + meta: generic, + kind: crate::error::DescribeTasksErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTasksError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeTasksError { + meta: generic, + kind: crate::error::DescribeTasksErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTasksError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTasksError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_tasks_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_tasks_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_tasks(response.body().as_ref(), output) + .map_err(crate::error::DescribeTasksError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_task_sets_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTaskSetsError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::DescribeTaskSetsError { + meta: generic, + kind: crate::error::DescribeTaskSetsErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTaskSetsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_task_sets_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_task_sets_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_task_sets(response.body().as_ref(), output) + .map_err(crate::error::DescribeTaskSetsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_discover_poll_endpoint_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DiscoverPollEndpointOutput, + crate::error::DiscoverPollEndpointError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DiscoverPollEndpointError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DiscoverPollEndpointError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DiscoverPollEndpointError { + meta: generic, + kind: crate::error::DiscoverPollEndpointErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DiscoverPollEndpointError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DiscoverPollEndpointError { + meta: generic, + kind: crate::error::DiscoverPollEndpointErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DiscoverPollEndpointError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DiscoverPollEndpointError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_discover_poll_endpoint_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DiscoverPollEndpointOutput, + crate::error::DiscoverPollEndpointError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::discover_poll_endpoint_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_discover_poll_endpoint( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DiscoverPollEndpointError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_command_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ExecuteCommandError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + "TargetNotConnectedException" => crate::error::ExecuteCommandError { + meta: generic, + kind: crate::error::ExecuteCommandErrorKind::TargetNotConnectedException({ + #[allow(unused_mut)] + let mut output = crate::error::target_not_connected_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_target_not_connected_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ExecuteCommandError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_execute_command_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::execute_command_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_execute_command(response.body().as_ref(), output) + .map_err(crate::error::ExecuteCommandError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_account_settings_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAccountSettingsOutput, + crate::error::ListAccountSettingsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAccountSettingsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAccountSettingsError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListAccountSettingsError { + meta: generic, + kind: crate::error::ListAccountSettingsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAccountSettingsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListAccountSettingsError { + meta: generic, + kind: crate::error::ListAccountSettingsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAccountSettingsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListAccountSettingsError { + meta: generic, + kind: crate::error::ListAccountSettingsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAccountSettingsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAccountSettingsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_account_settings_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAccountSettingsOutput, + crate::error::ListAccountSettingsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_account_settings_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_account_settings( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAccountSettingsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_attributes_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAttributesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAttributesError::unhandled(generic)), + }; + Err(match error_code { + "ClusterNotFoundException" => crate::error::ListAttributesError { + meta: generic, + kind: crate::error::ListAttributesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAttributesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListAttributesError { + meta: generic, + kind: crate::error::ListAttributesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAttributesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAttributesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_attributes_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_attributes_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_attributes(response.body().as_ref(), output) + .map_err(crate::error::ListAttributesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_clusters_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListClustersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListClustersError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListClustersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_clusters_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_clusters_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_clusters(response.body().as_ref(), output) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_container_instances_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListContainerInstancesOutput, + crate::error::ListContainerInstancesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListContainerInstancesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::ListContainerInstancesError { + meta: generic, + kind: crate::error::ListContainerInstancesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::ListContainerInstancesError { + meta: generic, + kind: crate::error::ListContainerInstancesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListContainerInstancesError { + meta: generic, + kind: crate::error::ListContainerInstancesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListContainerInstancesError { + meta: generic, + kind: crate::error::ListContainerInstancesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListContainerInstancesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_container_instances_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListContainerInstancesOutput, + crate::error::ListContainerInstancesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_container_instances_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_container_instances( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContainerInstancesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_services_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListServicesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListServicesError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListServicesError { + meta: generic, + kind: crate::error::ListServicesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListServicesError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::ListServicesError { + meta: generic, + kind: crate::error::ListServicesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListServicesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListServicesError { + meta: generic, + kind: crate::error::ListServicesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListServicesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListServicesError { + meta: generic, + kind: crate::error::ListServicesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListServicesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListServicesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_services_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_services_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_services(response.body().as_ref(), output) + .map_err(crate::error::ListServicesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_resource_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_for_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_task_definition_families_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTaskDefinitionFamiliesOutput, + crate::error::ListTaskDefinitionFamiliesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListTaskDefinitionFamiliesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::ListTaskDefinitionFamiliesError { + meta: generic, + kind: crate::error::ListTaskDefinitionFamiliesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListTaskDefinitionFamiliesError { + meta: generic, + kind: crate::error::ListTaskDefinitionFamiliesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListTaskDefinitionFamiliesError { + meta: generic, + kind: crate::error::ListTaskDefinitionFamiliesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTaskDefinitionFamiliesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_task_definition_families_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTaskDefinitionFamiliesOutput, + crate::error::ListTaskDefinitionFamiliesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_task_definition_families_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_task_definition_families( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionFamiliesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_task_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTaskDefinitionsOutput, + crate::error::ListTaskDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTaskDefinitionsError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListTaskDefinitionsError { + meta: generic, + kind: crate::error::ListTaskDefinitionsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListTaskDefinitionsError { + meta: generic, + kind: crate::error::ListTaskDefinitionsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListTaskDefinitionsError { + meta: generic, + kind: crate::error::ListTaskDefinitionsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTaskDefinitionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_task_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTaskDefinitionsOutput, + crate::error::ListTaskDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_task_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_task_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTaskDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tasks_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTasksError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTasksError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListTasksError { + meta: generic, + kind: crate::error::ListTasksErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::ListTasksError { + meta: generic, + kind: crate::error::ListTasksErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListTasksError { + meta: generic, + kind: crate::error::ListTasksErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListTasksError { + meta: generic, + kind: crate::error::ListTasksErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::ListTasksError { + meta: generic, + kind: crate::error::ListTasksErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTasksError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tasks_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tasks_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tasks(response.body().as_ref(), output) + .map_err(crate::error::ListTasksError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_account_setting_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutAccountSettingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutAccountSettingError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::PutAccountSettingError { + meta: generic, + kind: crate::error::PutAccountSettingErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutAccountSettingError { + meta: generic, + kind: crate::error::PutAccountSettingErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutAccountSettingError { + meta: generic, + kind: crate::error::PutAccountSettingErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutAccountSettingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_account_setting_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_account_setting_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_account_setting( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_account_setting_default_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutAccountSettingDefaultOutput, + crate::error::PutAccountSettingDefaultError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::PutAccountSettingDefaultError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::PutAccountSettingDefaultError { + meta: generic, + kind: crate::error::PutAccountSettingDefaultErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutAccountSettingDefaultError { + meta: generic, + kind: crate::error::PutAccountSettingDefaultErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutAccountSettingDefaultError { + meta: generic, + kind: crate::error::PutAccountSettingDefaultErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutAccountSettingDefaultError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_account_setting_default_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutAccountSettingDefaultOutput, + crate::error::PutAccountSettingDefaultError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_account_setting_default_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_account_setting_default( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSettingDefaultError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_attributes_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutAttributesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutAttributesError::unhandled(generic)), + }; + Err(match error_code { + "AttributeLimitExceededException" => { + crate::error::PutAttributesError { + meta: generic, + kind: crate::error::PutAttributesErrorKind::AttributeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::attribute_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_attribute_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutAttributesError::unhandled)?; + output.build() + }), + } + } + "ClusterNotFoundException" => crate::error::PutAttributesError { + meta: generic, + kind: crate::error::PutAttributesErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAttributesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutAttributesError { + meta: generic, + kind: crate::error::PutAttributesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAttributesError::unhandled)?; + output.build() + }), + }, + "TargetNotFoundException" => crate::error::PutAttributesError { + meta: generic, + kind: crate::error::PutAttributesErrorKind::TargetNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::target_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_target_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAttributesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutAttributesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_attributes_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_attributes_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_put_attributes(response.body().as_ref(), output) + .map_err(crate::error::PutAttributesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_cluster_capacity_providers_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutClusterCapacityProvidersOutput, + crate::error::PutClusterCapacityProvidersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::PutClusterCapacityProvidersError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + "UpdateInProgressException" => crate::error::PutClusterCapacityProvidersError { + meta: generic, + kind: crate::error::PutClusterCapacityProvidersErrorKind::UpdateInProgressException({ + #[allow(unused_mut)] + let mut output = crate::error::update_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_update_in_progress_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutClusterCapacityProvidersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_cluster_capacity_providers_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutClusterCapacityProvidersOutput, + crate::error::PutClusterCapacityProvidersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_cluster_capacity_providers_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_cluster_capacity_providers( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutClusterCapacityProvidersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_container_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterContainerInstanceOutput, + crate::error::RegisterContainerInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterContainerInstanceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::RegisterContainerInstanceError { + meta: generic, + kind: crate::error::RegisterContainerInstanceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RegisterContainerInstanceError { + meta: generic, + kind: crate::error::RegisterContainerInstanceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::RegisterContainerInstanceError { + meta: generic, + kind: crate::error::RegisterContainerInstanceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RegisterContainerInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_container_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterContainerInstanceOutput, + crate::error::RegisterContainerInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::register_container_instance_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_container_instance( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterContainerInstanceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_task_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTaskDefinitionOutput, + crate::error::RegisterTaskDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterTaskDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::RegisterTaskDefinitionError { + meta: generic, + kind: crate::error::RegisterTaskDefinitionErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RegisterTaskDefinitionError { + meta: generic, + kind: crate::error::RegisterTaskDefinitionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::RegisterTaskDefinitionError { + meta: generic, + kind: crate::error::RegisterTaskDefinitionErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RegisterTaskDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_task_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTaskDefinitionOutput, + crate::error::RegisterTaskDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::register_task_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_task_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTaskDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_run_task_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RunTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RunTaskError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "BlockedException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::BlockedException({ + #[allow(unused_mut)] + let mut output = crate::error::blocked_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_blocked_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "PlatformTaskDefinitionIncompatibilityException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::PlatformTaskDefinitionIncompatibilityException({ + #[allow(unused_mut)]let mut output = crate::error::platform_task_definition_incompatibility_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_task_definition_incompatibility_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "PlatformUnknownException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::PlatformUnknownException({ + #[allow(unused_mut)] + let mut output = crate::error::platform_unknown_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_unknown_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::RunTaskError { + meta: generic, + kind: crate::error::RunTaskErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RunTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_run_task_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::run_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_run_task(response.body().as_ref(), output) + .map_err(crate::error::RunTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_task_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartTaskError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::StartTaskError { + meta: generic, + kind: crate::error::StartTaskErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartTaskError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::StartTaskError { + meta: generic, + kind: crate::error::StartTaskErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartTaskError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::StartTaskError { + meta: generic, + kind: crate::error::StartTaskErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartTaskError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::StartTaskError { + meta: generic, + kind: crate::error::StartTaskErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_task_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_task(response.body().as_ref(), output) + .map_err(crate::error::StartTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_task_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopTaskError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::StopTaskError { + meta: generic, + kind: crate::error::StopTaskErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTaskError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::StopTaskError { + meta: generic, + kind: crate::error::StopTaskErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTaskError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::StopTaskError { + meta: generic, + kind: crate::error::StopTaskErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTaskError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::StopTaskError { + meta: generic, + kind: crate::error::StopTaskErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_task_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_stop_task(response.body().as_ref(), output) + .map_err(crate::error::StopTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_attachment_state_changes_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitAttachmentStateChangesOutput, + crate::error::SubmitAttachmentStateChangesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::SubmitAttachmentStateChangesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AccessDeniedException" => crate::error::SubmitAttachmentStateChangesError { + meta: generic, + kind: crate::error::SubmitAttachmentStateChangesErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::SubmitAttachmentStateChangesError { + meta: generic, + kind: crate::error::SubmitAttachmentStateChangesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::SubmitAttachmentStateChangesError { + meta: generic, + kind: crate::error::SubmitAttachmentStateChangesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::SubmitAttachmentStateChangesError { + meta: generic, + kind: crate::error::SubmitAttachmentStateChangesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SubmitAttachmentStateChangesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_attachment_state_changes_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitAttachmentStateChangesOutput, + crate::error::SubmitAttachmentStateChangesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::submit_attachment_state_changes_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_submit_attachment_state_changes( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitAttachmentStateChangesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_container_state_change_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitContainerStateChangeOutput, + crate::error::SubmitContainerStateChangeError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::SubmitContainerStateChangeError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AccessDeniedException" => crate::error::SubmitContainerStateChangeError { + meta: generic, + kind: crate::error::SubmitContainerStateChangeErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::SubmitContainerStateChangeError { + meta: generic, + kind: crate::error::SubmitContainerStateChangeErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::SubmitContainerStateChangeError { + meta: generic, + kind: crate::error::SubmitContainerStateChangeErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SubmitContainerStateChangeError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_container_state_change_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitContainerStateChangeOutput, + crate::error::SubmitContainerStateChangeError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::submit_container_state_change_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_submit_container_state_change( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitContainerStateChangeError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_task_state_change_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitTaskStateChangeOutput, + crate::error::SubmitTaskStateChangeError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SubmitTaskStateChangeError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::SubmitTaskStateChangeError { + meta: generic, + kind: crate::error::SubmitTaskStateChangeErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::SubmitTaskStateChangeError { + meta: generic, + kind: crate::error::SubmitTaskStateChangeErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::SubmitTaskStateChangeError { + meta: generic, + kind: crate::error::SubmitTaskStateChangeErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::SubmitTaskStateChangeError { + meta: generic, + kind: crate::error::SubmitTaskStateChangeErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SubmitTaskStateChangeError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_submit_task_state_change_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SubmitTaskStateChangeOutput, + crate::error::SubmitTaskStateChangeError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::submit_task_state_change_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_submit_task_state_change( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SubmitTaskStateChangeError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_capacity_provider_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCapacityProviderOutput, + crate::error::UpdateCapacityProviderError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateCapacityProviderError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::UpdateCapacityProviderError { + meta: generic, + kind: crate::error::UpdateCapacityProviderErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateCapacityProviderError { + meta: generic, + kind: crate::error::UpdateCapacityProviderErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateCapacityProviderError { + meta: generic, + kind: crate::error::UpdateCapacityProviderErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateCapacityProviderError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_capacity_provider_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCapacityProviderOutput, + crate::error::UpdateCapacityProviderError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_capacity_provider_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_capacity_provider( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateCapacityProviderError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateClusterError { + meta: generic, + kind: crate::error::UpdateClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateClusterError { + meta: generic, + kind: crate::error::UpdateClusterErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateClusterError { + meta: generic, + kind: crate::error::UpdateClusterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateClusterError { + meta: generic, + kind: crate::error::UpdateClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_cluster(response.body().as_ref(), output) + .map_err(crate::error::UpdateClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_settings_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterSettingsOutput, + crate::error::UpdateClusterSettingsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateClusterSettingsError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateClusterSettingsError { + meta: generic, + kind: crate::error::UpdateClusterSettingsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateClusterSettingsError { + meta: generic, + kind: crate::error::UpdateClusterSettingsErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateClusterSettingsError { + meta: generic, + kind: crate::error::UpdateClusterSettingsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateClusterSettingsError { + meta: generic, + kind: crate::error::UpdateClusterSettingsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateClusterSettingsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_settings_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterSettingsOutput, + crate::error::UpdateClusterSettingsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_cluster_settings_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_cluster_settings( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterSettingsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_container_agent_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContainerAgentOutput, + crate::error::UpdateContainerAgentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateContainerAgentError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "MissingVersionException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::MissingVersionException({ + #[allow(unused_mut)] + let mut output = crate::error::missing_version_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_missing_version_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "NoUpdateAvailableException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::NoUpdateAvailableException({ + #[allow(unused_mut)] + let mut output = crate::error::no_update_available_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_no_update_available_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + "UpdateInProgressException" => crate::error::UpdateContainerAgentError { + meta: generic, + kind: crate::error::UpdateContainerAgentErrorKind::UpdateInProgressException({ + #[allow(unused_mut)] + let mut output = crate::error::update_in_progress_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_update_in_progress_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateContainerAgentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_container_agent_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContainerAgentOutput, + crate::error::UpdateContainerAgentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_container_agent_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_container_agent( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerAgentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_container_instances_state_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContainerInstancesStateOutput, + crate::error::UpdateContainerInstancesStateError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateContainerInstancesStateError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::UpdateContainerInstancesStateError { + meta: generic, + kind: crate::error::UpdateContainerInstancesStateErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateContainerInstancesStateError { + meta: generic, + kind: crate::error::UpdateContainerInstancesStateErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => { + crate::error::UpdateContainerInstancesStateError { + meta: generic, + kind: + crate::error::UpdateContainerInstancesStateErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + output.build() + }, + ), + } + } + "ServerException" => crate::error::UpdateContainerInstancesStateError { + meta: generic, + kind: crate::error::UpdateContainerInstancesStateErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateContainerInstancesStateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_container_instances_state_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateContainerInstancesStateOutput, + crate::error::UpdateContainerInstancesStateError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_container_instances_state_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_container_instances_state( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContainerInstancesStateError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateServiceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateServiceError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "PlatformTaskDefinitionIncompatibilityException" => crate::error::UpdateServiceError { + meta: generic, + kind: + crate::error::UpdateServiceErrorKind::PlatformTaskDefinitionIncompatibilityException( + { + #[allow(unused_mut)]let mut output = crate::error::platform_task_definition_incompatibility_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_task_definition_incompatibility_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }, + ), + }, + "PlatformUnknownException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::PlatformUnknownException({ + #[allow(unused_mut)] + let mut output = crate::error::platform_unknown_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_platform_unknown_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::UpdateServiceError { + meta: generic, + kind: crate::error::UpdateServiceErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateServiceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_service_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_service(response.body().as_ref(), output) + .map_err(crate::error::UpdateServiceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_primary_task_set_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateServicePrimaryTaskSetOutput, + crate::error::UpdateServicePrimaryTaskSetError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateServicePrimaryTaskSetError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AccessDeniedException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "TaskSetNotFoundException" => crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: crate::error::UpdateServicePrimaryTaskSetErrorKind::TaskSetNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::task_set_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_task_set_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => { + crate::error::UpdateServicePrimaryTaskSetError { + meta: generic, + kind: + crate::error::UpdateServicePrimaryTaskSetErrorKind::UnsupportedFeatureException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::UpdateServicePrimaryTaskSetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_primary_task_set_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateServicePrimaryTaskSetOutput, + crate::error::UpdateServicePrimaryTaskSetError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_service_primary_task_set_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_service_primary_task_set( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServicePrimaryTaskSetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_task_set_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTaskSetError::unhandled(generic)), + }; + Err(match error_code { + "AccessDeniedException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::AccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "ClientException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "ClusterNotFoundException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::ClusterNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cluster_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotActiveException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::ServiceNotActiveException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_active_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "ServiceNotFoundException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::ServiceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::service_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "TaskSetNotFoundException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::TaskSetNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::task_set_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_task_set_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + "UnsupportedFeatureException" => crate::error::UpdateTaskSetError { + meta: generic, + kind: crate::error::UpdateTaskSetErrorKind::UnsupportedFeatureException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_feature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTaskSetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_task_set_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_task_set_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_task_set(response.body().as_ref(), output) + .map_err(crate::error::UpdateTaskSetError::unhandled)?; + output.build() + }) +} diff --git a/sdk/ecs/src/operation_ser.rs b/sdk/ecs/src/operation_ser.rs index 119b5ecee851..4fa206d70eb3 100644 --- a/sdk/ecs/src/operation_ser.rs +++ b/sdk/ecs/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_create_capacity_provider( input: &crate::input::CreateCapacityProviderInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_capacity_provider_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_create_capacity_provider( pub fn serialize_operation_create_cluster( input: &crate::input::CreateClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_cluster_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_cluster( pub fn serialize_operation_create_service( input: &crate::input::CreateServiceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_service_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_service( pub fn serialize_operation_create_task_set( input: &crate::input::CreateTaskSetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_task_set_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_task_set( pub fn serialize_operation_delete_account_setting( input: &crate::input::DeleteAccountSettingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_account_setting_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_delete_account_setting( pub fn serialize_operation_delete_attributes( input: &crate::input::DeleteAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_attributes_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_delete_attributes( pub fn serialize_operation_delete_capacity_provider( input: &crate::input::DeleteCapacityProviderInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_capacity_provider_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_delete_capacity_provider( pub fn serialize_operation_delete_cluster( input: &crate::input::DeleteClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_cluster_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_delete_cluster( pub fn serialize_operation_delete_service( input: &crate::input::DeleteServiceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_service_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_delete_service( pub fn serialize_operation_delete_task_set( input: &crate::input::DeleteTaskSetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_task_set_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_delete_task_set( pub fn serialize_operation_deregister_container_instance( input: &crate::input::DeregisterContainerInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_container_instance_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_deregister_container_instance( pub fn serialize_operation_deregister_task_definition( input: &crate::input::DeregisterTaskDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_task_definition_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_deregister_task_definition( pub fn serialize_operation_describe_capacity_providers( input: &crate::input::DescribeCapacityProvidersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_capacity_providers_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_describe_capacity_providers( pub fn serialize_operation_describe_clusters( input: &crate::input::DescribeClustersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_clusters_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_describe_clusters( pub fn serialize_operation_describe_container_instances( input: &crate::input::DescribeContainerInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_container_instances_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_describe_container_instances( pub fn serialize_operation_describe_services( input: &crate::input::DescribeServicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_services_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_describe_services( pub fn serialize_operation_describe_task_definition( input: &crate::input::DescribeTaskDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_task_definition_input(&mut object, input); @@ -171,7 +171,7 @@ pub fn serialize_operation_describe_task_definition( pub fn serialize_operation_describe_tasks( input: &crate::input::DescribeTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_tasks_input(&mut object, input); @@ -181,7 +181,7 @@ pub fn serialize_operation_describe_tasks( pub fn serialize_operation_describe_task_sets( input: &crate::input::DescribeTaskSetsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_task_sets_input(&mut object, input); @@ -191,7 +191,7 @@ pub fn serialize_operation_describe_task_sets( pub fn serialize_operation_discover_poll_endpoint( input: &crate::input::DiscoverPollEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_discover_poll_endpoint_input(&mut object, input); @@ -201,7 +201,7 @@ pub fn serialize_operation_discover_poll_endpoint( pub fn serialize_operation_execute_command( input: &crate::input::ExecuteCommandInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_execute_command_input(&mut object, input); @@ -211,7 +211,7 @@ pub fn serialize_operation_execute_command( pub fn serialize_operation_list_account_settings( input: &crate::input::ListAccountSettingsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_account_settings_input(&mut object, input); @@ -221,7 +221,7 @@ pub fn serialize_operation_list_account_settings( pub fn serialize_operation_list_attributes( input: &crate::input::ListAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_attributes_input(&mut object, input); @@ -231,7 +231,7 @@ pub fn serialize_operation_list_attributes( pub fn serialize_operation_list_clusters( input: &crate::input::ListClustersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_clusters_input(&mut object, input); @@ -241,7 +241,7 @@ pub fn serialize_operation_list_clusters( pub fn serialize_operation_list_container_instances( input: &crate::input::ListContainerInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_container_instances_input(&mut object, input); @@ -251,7 +251,7 @@ pub fn serialize_operation_list_container_instances( pub fn serialize_operation_list_services( input: &crate::input::ListServicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_services_input(&mut object, input); @@ -261,7 +261,7 @@ pub fn serialize_operation_list_services( pub fn serialize_operation_list_tags_for_resource( input: &crate::input::ListTagsForResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_for_resource_input(&mut object, input); @@ -271,7 +271,7 @@ pub fn serialize_operation_list_tags_for_resource( pub fn serialize_operation_list_task_definition_families( input: &crate::input::ListTaskDefinitionFamiliesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_task_definition_families_input(&mut object, input); @@ -281,7 +281,7 @@ pub fn serialize_operation_list_task_definition_families( pub fn serialize_operation_list_task_definitions( input: &crate::input::ListTaskDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_task_definitions_input(&mut object, input); @@ -291,7 +291,7 @@ pub fn serialize_operation_list_task_definitions( pub fn serialize_operation_list_tasks( input: &crate::input::ListTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tasks_input(&mut object, input); @@ -301,7 +301,7 @@ pub fn serialize_operation_list_tasks( pub fn serialize_operation_put_account_setting( input: &crate::input::PutAccountSettingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_setting_input(&mut object, input); @@ -311,7 +311,7 @@ pub fn serialize_operation_put_account_setting( pub fn serialize_operation_put_account_setting_default( input: &crate::input::PutAccountSettingDefaultInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_setting_default_input(&mut object, input); @@ -321,7 +321,7 @@ pub fn serialize_operation_put_account_setting_default( pub fn serialize_operation_put_attributes( input: &crate::input::PutAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_attributes_input(&mut object, input); @@ -331,7 +331,7 @@ pub fn serialize_operation_put_attributes( pub fn serialize_operation_put_cluster_capacity_providers( input: &crate::input::PutClusterCapacityProvidersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_cluster_capacity_providers_input(&mut object, input); @@ -341,7 +341,7 @@ pub fn serialize_operation_put_cluster_capacity_providers( pub fn serialize_operation_register_container_instance( input: &crate::input::RegisterContainerInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_container_instance_input(&mut object, input); @@ -351,7 +351,7 @@ pub fn serialize_operation_register_container_instance( pub fn serialize_operation_register_task_definition( input: &crate::input::RegisterTaskDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_task_definition_input(&mut object, input); @@ -361,7 +361,7 @@ pub fn serialize_operation_register_task_definition( pub fn serialize_operation_run_task( input: &crate::input::RunTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_run_task_input(&mut object, input); @@ -371,7 +371,7 @@ pub fn serialize_operation_run_task( pub fn serialize_operation_start_task( input: &crate::input::StartTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_task_input(&mut object, input); @@ -381,7 +381,7 @@ pub fn serialize_operation_start_task( pub fn serialize_operation_stop_task( input: &crate::input::StopTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_task_input(&mut object, input); @@ -391,7 +391,7 @@ pub fn serialize_operation_stop_task( pub fn serialize_operation_submit_attachment_state_changes( input: &crate::input::SubmitAttachmentStateChangesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_submit_attachment_state_changes_input(&mut object, input); @@ -401,7 +401,7 @@ pub fn serialize_operation_submit_attachment_state_changes( pub fn serialize_operation_submit_container_state_change( input: &crate::input::SubmitContainerStateChangeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_submit_container_state_change_input(&mut object, input); @@ -411,7 +411,7 @@ pub fn serialize_operation_submit_container_state_change( pub fn serialize_operation_submit_task_state_change( input: &crate::input::SubmitTaskStateChangeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_submit_task_state_change_input(&mut object, input); @@ -421,7 +421,7 @@ pub fn serialize_operation_submit_task_state_change( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -431,7 +431,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_untag_resource( input: &crate::input::UntagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_untag_resource_input(&mut object, input); @@ -441,7 +441,7 @@ pub fn serialize_operation_untag_resource( pub fn serialize_operation_update_capacity_provider( input: &crate::input::UpdateCapacityProviderInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_capacity_provider_input(&mut object, input); @@ -451,7 +451,7 @@ pub fn serialize_operation_update_capacity_provider( pub fn serialize_operation_update_cluster( input: &crate::input::UpdateClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_cluster_input(&mut object, input); @@ -461,7 +461,7 @@ pub fn serialize_operation_update_cluster( pub fn serialize_operation_update_cluster_settings( input: &crate::input::UpdateClusterSettingsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_cluster_settings_input(&mut object, input); @@ -471,7 +471,7 @@ pub fn serialize_operation_update_cluster_settings( pub fn serialize_operation_update_container_agent( input: &crate::input::UpdateContainerAgentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_container_agent_input(&mut object, input); @@ -481,7 +481,7 @@ pub fn serialize_operation_update_container_agent( pub fn serialize_operation_update_container_instances_state( input: &crate::input::UpdateContainerInstancesStateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_container_instances_state_input(&mut object, input); @@ -491,7 +491,7 @@ pub fn serialize_operation_update_container_instances_state( pub fn serialize_operation_update_service( input: &crate::input::UpdateServiceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_service_input(&mut object, input); @@ -501,7 +501,7 @@ pub fn serialize_operation_update_service( pub fn serialize_operation_update_service_primary_task_set( input: &crate::input::UpdateServicePrimaryTaskSetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_service_primary_task_set_input(&mut object, input); @@ -511,7 +511,7 @@ pub fn serialize_operation_update_service_primary_task_set( pub fn serialize_operation_update_task_set( input: &crate::input::UpdateTaskSetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_task_set_input(&mut object, input); diff --git a/sdk/ecs/src/serde_util.rs b/sdk/ecs/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/ecs/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/ecs/src/serializer.rs b/sdk/ecs/src/serializer.rs deleted file mode 100644 index cccbdab35cac..000000000000 --- a/sdk/ecs/src/serializer.rs +++ /dev/null @@ -1,3581 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCapacityProviderInputBody<'a> { - ///

    The name of the capacity provider. Up to 255 characters are allowed, including letters - /// (upper and lowercase), numbers, underscores, and hyphens. The name cannot be prefixed - /// with "aws", "ecs", or "fargate".

    - pub name: &'a std::option::Option, - ///

    The details of the Auto Scaling group for the capacity provider.

    - pub auto_scaling_group_provider: - &'a std::option::Option, - ///

    The metadata that you apply to the capacity provider to help you categorize and - /// organize them. Each tag consists of a key and an optional value, both of which you - /// define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateCapacityProviderInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCapacityProviderInputBody"); - formatter.field("name", &self.name); - formatter.field( - "auto_scaling_group_provider", - &self.auto_scaling_group_provider, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateClusterInputBody<'a> { - ///

    The name of your cluster. If you do not specify a name for your cluster, you create a - /// cluster named default. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

    - pub cluster_name: &'a std::option::Option, - ///

    The metadata that you apply to the cluster to help you categorize and organize them. - /// Each tag consists of a key and an optional value, both of which you define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    The setting to use when creating a cluster. This parameter is used to enable CloudWatch - /// Container Insights for a cluster. If this value is specified, it will override the - /// containerInsights value set with PutAccountSetting or - /// PutAccountSettingDefault.

    - pub settings: &'a std::option::Option>, - ///

    The execute command configuration for the cluster.

    - pub configuration: &'a std::option::Option, - ///

    The short name of one or more capacity providers to associate with the cluster. A - /// capacity provider must be associated with a cluster before it can be included as part of - /// the default capacity provider strategy of the cluster or used in a capacity provider - /// strategy when calling the CreateService or RunTask - /// actions.

    - ///

    If specifying a capacity provider that uses an Auto Scaling group, the capacity - /// provider must already be created and not already associated with another cluster. New - /// Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.

    - ///

    To use a AWS Fargate capacity provider, specify either the FARGATE or - /// FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are - /// available to all accounts and only need to be associated with a cluster to be - /// used.

    - ///

    The PutClusterCapacityProviders API operation is used to update the - /// list of available capacity providers for a cluster after the cluster is created.

    - pub capacity_providers: &'a std::option::Option>, - ///

    The capacity provider strategy to set as the default for the cluster. When a default - /// capacity provider strategy is set for a cluster, when calling the RunTask or CreateService APIs wtih no capacity - /// provider strategy or launch type specified, the default capacity provider strategy for - /// the cluster is used.

    - ///

    If a default capacity provider strategy is not defined for a cluster during creation, - /// it can be defined later with the PutClusterCapacityProviders API - /// operation.

    - pub default_capacity_provider_strategy: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateClusterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateClusterInputBody"); - formatter.field("cluster_name", &self.cluster_name); - formatter.field("tags", &self.tags); - formatter.field("settings", &self.settings); - formatter.field("configuration", &self.configuration); - formatter.field("capacity_providers", &self.capacity_providers); - formatter.field( - "default_capacity_provider_strategy", - &self.default_capacity_provider_strategy, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateServiceInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster on which to run your service. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within - /// a cluster, but you can have similarly named services in multiple clusters within a - /// Region or across multiple Regions.

    - pub service_name: &'a std::option::Option, - ///

    The family and revision (family:revision) or - /// full ARN of the task definition to run in your service. If a revision is - /// not specified, the latest ACTIVE revision is used.

    - ///

    A task definition must be specified if the service is using either the - /// ECS or CODE_DEPLOY deployment controllers.

    - pub task_definition: &'a std::option::Option, - ///

    A load balancer object representing the load balancers to use with your service. For - /// more information, see Service Load Balancing in the - /// Amazon Elastic Container Service Developer Guide.

    - ///

    If the service is using the rolling update (ECS) deployment controller - /// and using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to - /// attach to the service. The service-linked role is required for services that make use of - /// multiple target groups. For more information, see Using service-linked roles for Amazon ECS in the - /// Amazon Elastic Container Service Developer Guide.

    - ///

    If the service is using the CODE_DEPLOY deployment controller, the - /// service is required to use either an Application Load Balancer or Network Load Balancer. When creating an AWS CodeDeploy deployment - /// group, you specify two target groups (referred to as a targetGroupPair). - /// During a deployment, AWS CodeDeploy determines which task set in your service has the status - /// PRIMARY and associates one target group with it, and then associates - /// the other target group with the replacement task set. The load balancer can also have up - /// to two listeners: a required listener for production traffic and an optional listener - /// that allows you perform validation tests with Lambda functions before routing production - /// traffic to it.

    - ///

    After you create a service using the ECS deployment controller, the load - /// balancer name or target group ARN, container name, and container port specified in the - /// service definition are immutable. If you are using the CODE_DEPLOY - /// deployment controller, these values can be changed when updating the service.

    - ///

    For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN, - /// the container name (as it appears in a container definition), and the container port to - /// access from the load balancer. The load balancer name parameter must be omitted. When a - /// task from this service is placed on a container instance, the container instance and - /// port combination is registered as a target in the target group specified here.

    - ///

    For Classic Load Balancers, this object must contain the load balancer name, the container name (as it - /// appears in a container definition), and the container port to access from the load - /// balancer. The target group ARN parameter must be omitted. When a task from this service - /// is placed on a container instance, the container instance is registered with the load - /// balancer specified here.

    - ///

    Services with tasks that use the awsvpc network mode (for example, those - /// with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are - /// not supported. Also, when you create any target groups for these services, you must - /// choose ip as the target type, not instance, because tasks that - /// use the awsvpc network mode are associated with an elastic network - /// interface, not an Amazon EC2 instance.

    - pub load_balancers: &'a std::option::Option>, - ///

    The details of the service discovery registry to associate with this service. For more - /// information, see Service - /// discovery.

    - /// - ///

    Each service may be associated with one service registry. Multiple service - /// registries per service isn't supported.

    - ///
    - pub service_registries: &'a std::option::Option>, - ///

    The number of instantiations of the specified task definition to place and keep - /// running on your cluster.

    - ///

    This is required if schedulingStrategy is REPLICA or is not - /// specified. If schedulingStrategy is DAEMON then this is not - /// required.

    - pub desired_count: &'a std::option::Option, - ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// request. Up to 32 ASCII characters are allowed.

    - pub client_token: &'a std::option::Option, - ///

    The infrastructure on which to run your service. For more information, see Amazon ECS - /// launch types in the Amazon Elastic Container Service Developer Guide.

    - ///

    The FARGATE launch type runs your tasks on AWS Fargate On-Demand - /// infrastructure.

    - /// - ///

    Fargate Spot infrastructure is available for use but a capacity provider - /// strategy must be used. For more information, see AWS Fargate capacity providers in the - /// Amazon ECS User Guide for AWS Fargate.

    - ///
    - ///

    The EC2 launch type runs your tasks on Amazon EC2 instances registered to your - /// cluster.

    - ///

    The EXTERNAL launch type runs your tasks on your on-premise server or - /// virtual machine (VM) capacity registered to your cluster.

    - ///

    A service can use either a launch type or a capacity provider strategy. If a - /// launchType is specified, the capacityProviderStrategy - /// parameter must be omitted.

    - pub launch_type: &'a std::option::Option, - ///

    The capacity provider strategy to use for the service.

    - ///

    If a capacityProviderStrategy is specified, the launchType - /// parameter must be omitted. If no capacityProviderStrategy or - /// launchType is specified, the - /// defaultCapacityProviderStrategy for the cluster is used.

    - pub capacity_provider_strategy: - &'a std::option::Option>, - ///

    The platform version that your tasks in the service are running on. A platform version - /// is specified only for tasks using the Fargate launch type. If one isn't - /// specified, the LATEST platform version is used by default. For more - /// information, see AWS Fargate platform - /// versions in the Amazon Elastic Container Service Developer Guide.

    - pub platform_version: &'a std::option::Option, - ///

    The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your - /// load balancer on your behalf. This parameter is only permitted if you are using a load - /// balancer with your service and your task definition does not use the awsvpc - /// network mode. If you specify the role parameter, you must also specify a - /// load balancer object with the loadBalancers parameter.

    - /// - ///

    If your account has already created the Amazon ECS service-linked role, that role is - /// used by default for your service unless you specify a role here. The service-linked - /// role is required if your task definition uses the awsvpc network mode - /// or if the service is configured to use service discovery, an external deployment - /// controller, multiple target groups, or Elastic Inference accelerators in which case - /// you should not specify a role here. For more information, see Using - /// service-linked roles for Amazon ECS in the - /// Amazon Elastic Container Service Developer Guide.

    - ///
    - ///

    If your specified role has a path other than /, then you must either - /// specify the full role ARN (this is recommended) or prefix the role name with the path. - /// For example, if a role with the name bar has a path of /foo/ - /// then you would specify /foo/bar as the role name. For more information, see - /// Friendly names and paths in the IAM User Guide.

    - pub role: &'a std::option::Option, - ///

    Optional deployment parameters that control how many tasks run during the deployment - /// and the ordering of stopping and starting tasks.

    - pub deployment_configuration: &'a std::option::Option, - ///

    An array of placement constraint objects to use for tasks in your service. You can - /// specify a maximum of 10 constraints per task (this limit includes constraints in the - /// task definition and those specified at runtime).

    - pub placement_constraints: - &'a std::option::Option>, - ///

    The placement strategy objects to use for tasks in your service. You can specify a - /// maximum of five strategy rules per service.

    - pub placement_strategy: &'a std::option::Option>, - ///

    The network configuration for the service. This parameter is required for task - /// definitions that use the awsvpc network mode to receive their own elastic - /// network interface, and it is not supported for other network modes. For more - /// information, see Task networking - /// in the Amazon Elastic Container Service Developer Guide.

    - pub network_configuration: &'a std::option::Option, - ///

    The period of time, in seconds, that the Amazon ECS service scheduler should ignore - /// unhealthy Elastic Load Balancing target health checks after a task has first started. This is only used - /// when your service is configured to use a load balancer. If your service has a load - /// balancer defined and you don't specify a health check grace period value, the default - /// value of 0 is used.

    - ///

    If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you - /// can specify a health check grace period of up to 2,147,483,647 seconds. During that - /// time, the Amazon ECS service scheduler ignores health check status. This grace period can - /// prevent the service scheduler from marking tasks as unhealthy and stopping them before - /// they have time to come up.

    - pub health_check_grace_period_seconds: &'a std::option::Option, - ///

    The scheduling strategy to use for the service. For more information, see Services.

    - ///

    There are two service scheduler strategies available:

    - ///
      - ///
    • - ///

      - /// REPLICA-The replica scheduling strategy places and - /// maintains the desired number of tasks across your cluster. By default, the - /// service scheduler spreads tasks across Availability Zones. You can use task - /// placement strategies and constraints to customize task placement decisions. This - /// scheduler strategy is required if the service is using the - /// CODE_DEPLOY or EXTERNAL deployment controller - /// types.

      - ///
    • - ///
    • - ///

      - /// DAEMON-The daemon scheduling strategy deploys exactly one - /// task on each active container instance that meets all of the task placement - /// constraints that you specify in your cluster. The service scheduler also - /// evaluates the task placement constraints for running tasks and will stop tasks - /// that do not meet the placement constraints. When you're using this strategy, you - /// don't need to specify a desired number of tasks, a task placement strategy, or - /// use Service Auto Scaling policies.

      - /// - ///

      Tasks using the Fargate launch type or the - /// CODE_DEPLOY or EXTERNAL deployment controller - /// types don't support the DAEMON scheduling strategy.

      - ///
      - ///
    • - ///
    - pub scheduling_strategy: &'a std::option::Option, - ///

    The deployment controller to use for the service. If no deployment controller is - /// specified, the default value of ECS is used.

    - pub deployment_controller: &'a std::option::Option, - ///

    The metadata that you apply to the service to help you categorize and organize them. - /// Each tag consists of a key and an optional value, both of which you define. When a - /// service is deleted, the tags are deleted as well.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For - /// more information, see Tagging Your Amazon ECS - /// Resources in the Amazon Elastic Container Service Developer Guide.

    - pub enable_ecs_managed_tags: &'a bool, - ///

    Specifies whether to propagate the tags from the task definition or the service to the - /// tasks in the service. If no value is specified, the tags are not propagated. Tags can - /// only be propagated to the tasks within the service during service creation. To add tags - /// to a task after service creation, use the TagResource API - /// action.

    - pub propagate_tags: &'a std::option::Option, - ///

    Whether or not the execute command functionality is enabled for the service. If - /// true, this enables execute command functionality on all containers in - /// the service tasks.

    - pub enable_execute_command: &'a bool, -} -impl<'a> std::fmt::Debug for CreateServiceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateServiceInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service_name", &self.service_name); - formatter.field("task_definition", &self.task_definition); - formatter.field("load_balancers", &self.load_balancers); - formatter.field("service_registries", &self.service_registries); - formatter.field("desired_count", &self.desired_count); - formatter.field("client_token", &self.client_token); - formatter.field("launch_type", &self.launch_type); - formatter.field( - "capacity_provider_strategy", - &self.capacity_provider_strategy, - ); - formatter.field("platform_version", &self.platform_version); - formatter.field("role", &self.role); - formatter.field("deployment_configuration", &self.deployment_configuration); - formatter.field("placement_constraints", &self.placement_constraints); - formatter.field("placement_strategy", &self.placement_strategy); - formatter.field("network_configuration", &self.network_configuration); - formatter.field( - "health_check_grace_period_seconds", - &self.health_check_grace_period_seconds, - ); - formatter.field("scheduling_strategy", &self.scheduling_strategy); - formatter.field("deployment_controller", &self.deployment_controller); - formatter.field("tags", &self.tags); - formatter.field("enable_ecs_managed_tags", &self.enable_ecs_managed_tags); - formatter.field("propagate_tags", &self.propagate_tags); - formatter.field("enable_execute_command", &self.enable_execute_command); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTaskSetInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.

    - pub service: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the - /// task set in.

    - pub cluster: &'a std::option::Option, - ///

    An optional non-unique tag that identifies this task set in external systems. If the - /// task set is associated with a service discovery registry, the tasks in this task set - /// will have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to the provided - /// value.

    - pub external_id: &'a std::option::Option, - ///

    The task definition for the tasks in the task set to use.

    - pub task_definition: &'a std::option::Option, - ///

    An object representing the network configuration for a task set.

    - pub network_configuration: &'a std::option::Option, - ///

    A load balancer object representing the load balancer to use with the task set. The - /// supported load balancer types are either an Application Load Balancer or a Network Load Balancer.

    - pub load_balancers: &'a std::option::Option>, - ///

    The details of the service discovery registries to assign to this task set. For more - /// information, see Service - /// Discovery.

    - pub service_registries: &'a std::option::Option>, - ///

    The launch type that new tasks in the task set will use. For more information, see - /// Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

    - ///

    If a launchType is specified, the capacityProviderStrategy - /// parameter must be omitted.

    - pub launch_type: &'a std::option::Option, - ///

    The capacity provider strategy to use for the task set.

    - ///

    A capacity provider strategy consists of one or more capacity providers along with the - /// base and weight to assign to them. A capacity provider - /// must be associated with the cluster to be used in a capacity provider strategy. The - /// PutClusterCapacityProviders API is used to associate a capacity - /// provider with a cluster. Only capacity providers with an ACTIVE or - /// UPDATING status can be used.

    - ///

    If a capacityProviderStrategy is specified, the launchType - /// parameter must be omitted. If no capacityProviderStrategy or - /// launchType is specified, the - /// defaultCapacityProviderStrategy for the cluster is used.

    - ///

    If specifying a capacity provider that uses an Auto Scaling group, the capacity - /// provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

    - ///

    To use a AWS Fargate capacity provider, specify either the FARGATE or - /// FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are - /// available to all accounts and only need to be associated with a cluster to be - /// used.

    - ///

    The PutClusterCapacityProviders API operation is used to update the - /// list of available capacity providers for a cluster after the cluster is created.

    - pub capacity_provider_strategy: - &'a std::option::Option>, - ///

    The platform version that the tasks in the task set should use. A platform version is - /// specified only for tasks using the Fargate launch type. If one isn't - /// specified, the LATEST platform version is used by default.

    - pub platform_version: &'a std::option::Option, - ///

    A floating-point percentage of the desired number of tasks to place and keep running - /// in the task set.

    - pub scale: &'a std::option::Option, - ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// request. Up to 32 ASCII characters are allowed.

    - pub client_token: &'a std::option::Option, - ///

    The metadata that you apply to the task set to help you categorize and organize them. - /// Each tag consists of a key and an optional value, both of which you define. When a - /// service is deleted, the tags are deleted as well.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateTaskSetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTaskSetInputBody"); - formatter.field("service", &self.service); - formatter.field("cluster", &self.cluster); - formatter.field("external_id", &self.external_id); - formatter.field("task_definition", &self.task_definition); - formatter.field("network_configuration", &self.network_configuration); - formatter.field("load_balancers", &self.load_balancers); - formatter.field("service_registries", &self.service_registries); - formatter.field("launch_type", &self.launch_type); - formatter.field( - "capacity_provider_strategy", - &self.capacity_provider_strategy, - ); - formatter.field("platform_version", &self.platform_version); - formatter.field("scale", &self.scale); - formatter.field("client_token", &self.client_token); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAccountSettingInputBody<'a> { - ///

    The resource name for which to disable the account setting. If - /// serviceLongArnFormat is specified, the ARN for your Amazon ECS services is - /// affected. If taskLongArnFormat is specified, the ARN and resource ID for - /// your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is - /// specified, the ARN and resource ID for your Amazon ECS container instances is affected. If - /// awsvpcTrunking is specified, the ENI limit for your Amazon ECS container - /// instances is affected.

    - pub name: &'a std::option::Option, - ///

    The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you - /// specify the root user, it disables the account setting for all IAM users, IAM roles, and - /// the root user of the account unless an IAM user or role explicitly overrides these - /// settings. If this field is omitted, the setting is changed only for the authenticated - /// user.

    - pub principal_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAccountSettingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAccountSettingInputBody"); - formatter.field("name", &self.name); - formatter.field("principal_arn", &self.principal_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAttributesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete - /// attributes. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The attributes to delete from your resource. You can specify up to 10 attributes per - /// request. For custom attributes, specify the attribute name and target ID, but do not - /// specify the value. If you specify the target ID using the short form, you must also - /// specify the target type.

    - pub attributes: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DeleteAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAttributesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("attributes", &self.attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteCapacityProviderInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.

    - pub capacity_provider: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteCapacityProviderInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteCapacityProviderInputBody"); - formatter.field("capacity_provider", &self.capacity_provider); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteClusterInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to delete.

    - pub cluster: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteClusterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteClusterInputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteServiceInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to delete. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The name of the service to delete.

    - pub service: &'a std::option::Option, - ///

    If true, allows you to delete a service even if it has not been scaled - /// down to zero tasks. It is only necessary to use this if the service is using the - /// REPLICA scheduling strategy.

    - pub force: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteServiceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteServiceInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("force", &self.force); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTaskSetInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task - /// set exists in to delete.

    - pub cluster: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the service that hosts the task set to - /// delete.

    - pub service: &'a std::option::Option, - ///

    The task set ID or full Amazon Resource Name (ARN) of the task set to delete.

    - pub task_set: &'a std::option::Option, - ///

    If true, this allows you to delete a task set even if it hasn't been - /// scaled down to zero.

    - pub force: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteTaskSetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTaskSetInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("task_set", &self.task_set); - formatter.field("force", &self.force); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterContainerInstanceInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to - /// deregister. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The container instance ID or full ARN of the container instance to deregister. - /// The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

    - pub container_instance: &'a std::option::Option, - ///

    Forces the deregistration of the container instance. If you have tasks running on the - /// container instance when you deregister it with the force option, these - /// tasks remain running until you terminate the instance or the tasks stop through some - /// other means, but they are orphaned (no longer monitored or accounted for by Amazon ECS). If - /// an orphaned task on your container instance is part of an Amazon ECS service, then the - /// service scheduler starts another copy of that task, on a different container instance if - /// possible.

    - ///

    Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer - /// target group are deregistered. They begin connection draining according to the settings - /// on the load balancer or target group.

    - pub force: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterContainerInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterContainerInstanceInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instance", &self.container_instance); - formatter.field("force", &self.force); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTaskDefinitionInputBody<'a> { - ///

    The family and revision (family:revision) or - /// full Amazon Resource Name (ARN) of the task definition to deregister. You must specify a - /// revision.

    - pub task_definition: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterTaskDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTaskDefinitionInputBody"); - formatter.field("task_definition", &self.task_definition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCapacityProvidersInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of one or more capacity providers. Up to - /// 100 capacity providers can be described in an action.

    - pub capacity_providers: &'a std::option::Option>, - ///

    Specifies whether or not you want to see the resource tags for the capacity provider. - /// If TAGS is specified, the tags are included in the response. If this field - /// is omitted, tags are not included in the response.

    - pub include: &'a std::option::Option>, - ///

    The maximum number of account setting results returned by - /// DescribeCapacityProviders in paginated output. When this parameter is - /// used, DescribeCapacityProviders only returns maxResults - /// results in a single page along with a nextToken response element. The - /// remaining results of the initial request can be seen by sending another - /// DescribeCapacityProviders request with the returned - /// nextToken value. This value can be between - /// 1 and 10. If this - /// parameter is not used, then DescribeCapacityProviders returns up to - /// 10 results and a nextToken value - /// if applicable.

    - pub max_results: &'a std::option::Option, - ///

    The nextToken value returned from a previous paginated - /// DescribeCapacityProviders request where maxResults was - /// used and the results exceeded the value of that parameter. Pagination continues from the - /// end of the previous results that returned the nextToken value.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeCapacityProvidersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCapacityProvidersInputBody"); - formatter.field("capacity_providers", &self.capacity_providers); - formatter.field("include", &self.include); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeClustersInputBody<'a> { - ///

    A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub clusters: &'a std::option::Option>, - ///

    Whether to include additional information about the clusters in the response. If this - /// field is omitted, this information isn't included.

    - ///

    If ATTACHMENTS is specified, the attachments for the container instances - /// or tasks within the cluster are included.

    - ///

    If SETTINGS is specified, the settings for the cluster are - /// included.

    - ///

    If STATISTICS is specified, the task and service count is included, - /// separated by launch type.

    - ///

    If TAGS is specified, the metadata tags associated with the cluster are - /// included.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeClustersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeClustersInputBody"); - formatter.field("clusters", &self.clusters); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContainerInstancesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to - /// describe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the container instance - /// or container instances you are describing were launched in any cluster other than the - /// default cluster.

    - pub cluster: &'a std::option::Option, - ///

    A list of up to 100 container instance IDs or full Amazon Resource Name (ARN) entries.

    - pub container_instances: &'a std::option::Option>, - ///

    Specifies whether you want to see the resource tags for the container instance. If - /// TAGS is specified, the tags are included in the response. If this field - /// is omitted, tags are not included in the response.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeContainerInstancesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContainerInstancesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instances", &self.container_instances); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeServicesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN)the cluster that hosts the service to describe. - /// If you do not specify a cluster, the default cluster is assumed. This parameter is required if the service or services you are - /// describing were launched in any cluster other than the default cluster.

    - pub cluster: &'a std::option::Option, - ///

    A list of services to describe. You may specify up to 10 services to describe in a - /// single operation.

    - pub services: &'a std::option::Option>, - ///

    Specifies whether you want to see the resource tags for the service. If - /// TAGS is specified, the tags are included in the response. If this field - /// is omitted, tags are not included in the response.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeServicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeServicesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("services", &self.services); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTaskDefinitionInputBody<'a> { - ///

    The family for the latest ACTIVE revision, - /// family and revision (family:revision) for a - /// specific revision in the family, or full Amazon Resource Name (ARN) of the task definition to - /// describe.

    - pub task_definition: &'a std::option::Option, - ///

    Specifies whether to see the resource tags for the task definition. If - /// TAGS is specified, the tags are included in the response. If this field - /// is omitted, tags are not included in the response.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeTaskDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTaskDefinitionInputBody"); - formatter.field("task_definition", &self.task_definition); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTasksInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to - /// describe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the task or tasks you - /// are describing were launched in any cluster other than the default cluster.

    - pub cluster: &'a std::option::Option, - ///

    A list of up to 100 task IDs or full ARN entries.

    - pub tasks: &'a std::option::Option>, - ///

    Specifies whether you want to see the resource tags for the task. If TAGS - /// is specified, the tags are included in the response. If this field is omitted, tags are - /// not included in the response.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeTasksInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTasksInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("tasks", &self.tasks); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTaskSetsInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task - /// sets exist in.

    - pub cluster: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in.

    - pub service: &'a std::option::Option, - ///

    The ID or full Amazon Resource Name (ARN) of task sets to - /// describe.

    - pub task_sets: &'a std::option::Option>, - ///

    Specifies whether to see the resource tags for the task set. If TAGS is - /// specified, the tags are included in the response. If this field is omitted, tags are not - /// included in the response.

    - pub include: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeTaskSetsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTaskSetsInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("task_sets", &self.task_sets); - formatter.field("include", &self.include); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DiscoverPollEndpointInputBody<'a> { - ///

    The container instance ID or full ARN of the container instance. - /// The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

    - pub container_instance: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to which the container instance - /// belongs.

    - pub cluster: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DiscoverPollEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DiscoverPollEndpointInputBody"); - formatter.field("container_instance", &self.container_instance); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteCommandInputBody<'a> { - ///

    The Amazon Resource Name (ARN) or short name of the cluster the task is running in. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The name of the container to execute the command on. A container name only needs to be - /// specified for tasks containing multiple containers.

    - pub container: &'a std::option::Option, - ///

    The command to run on the container.

    - pub command: &'a std::option::Option, - ///

    Use this flag to run your command in interactive mode.

    - pub interactive: &'a bool, - ///

    The Amazon Resource Name (ARN) or ID of the task the container is part of.

    - pub task: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExecuteCommandInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteCommandInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container", &self.container); - formatter.field("command", &self.command); - formatter.field("interactive", &self.interactive); - formatter.field("task", &self.task); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAccountSettingsInputBody<'a> { - ///

    The name of the account setting you want to list the settings for.

    - pub name: &'a std::option::Option, - ///

    The value of the account settings with which to filter results. You must also specify - /// an account setting name to use this parameter.

    - pub value: &'a std::option::Option, - ///

    The ARN of the principal, which can be an IAM user, IAM role, or the root user. If - /// this field is omitted, the account settings are listed only for the authenticated - /// user.

    - /// - ///

    Federated users assume the account setting of the root user and can't have - /// explicit account settings set for them.

    - ///
    - pub principal_arn: &'a std::option::Option, - ///

    Specifies whether to return the effective settings. If true, the account - /// settings for the root user or the default setting for the principalArn are - /// returned. If false, the account settings for the principalArn - /// are returned if they are set. Otherwise, no account settings are returned.

    - pub effective_settings: &'a bool, - ///

    The nextToken value returned from a ListAccountSettings - /// request indicating that more results are available to fulfill the request and further - /// calls will be needed. If maxResults was provided, it is possible the number - /// of results to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of account setting results returned by - /// ListAccountSettings in paginated output. When this parameter is used, - /// ListAccountSettings only returns maxResults results in a - /// single page along with a nextToken response element. The remaining results - /// of the initial request can be seen by sending another ListAccountSettings - /// request with the returned nextToken value. This value can be between - /// 1 and 10. If this - /// parameter is not used, then ListAccountSettings returns up to - /// 10 results and a nextToken value - /// if applicable.

    - pub max_results: &'a i32, -} -impl<'a> std::fmt::Debug for ListAccountSettingsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAccountSettingsInputBody"); - formatter.field("name", &self.name); - formatter.field("value", &self.value); - formatter.field("principal_arn", &self.principal_arn); - formatter.field("effective_settings", &self.effective_settings); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAttributesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to list attributes. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The type of the target with which to list attributes.

    - pub target_type: &'a std::option::Option, - ///

    The name of the attribute with which to filter the results.

    - pub attribute_name: &'a std::option::Option, - ///

    The value of the attribute with which to filter results. You must also specify an - /// attribute name to use this parameter.

    - pub attribute_value: &'a std::option::Option, - ///

    The nextToken value returned from a ListAttributes request - /// indicating that more results are available to fulfill the request and further calls will - /// be needed. If maxResults was provided, it is possible the number of results - /// to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of cluster results returned by ListAttributes in - /// paginated output. When this parameter is used, ListAttributes only returns - /// maxResults results in a single page along with a nextToken - /// response element. The remaining results of the initial request can be seen by sending - /// another ListAttributes request with the returned nextToken - /// value. This value can be between 1 and 100. If this - /// parameter is not used, then ListAttributes returns up to - /// 100 results and a nextToken value if applicable.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAttributesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("target_type", &self.target_type); - formatter.field("attribute_name", &self.attribute_name); - formatter.field("attribute_value", &self.attribute_value); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListClustersInputBody<'a> { - ///

    The nextToken value returned from a ListClusters request - /// indicating that more results are available to fulfill the request and further calls will - /// be needed. If maxResults was provided, it is possible the number of results - /// to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of cluster results returned by ListClusters in - /// paginated output. When this parameter is used, ListClusters only returns - /// maxResults results in a single page along with a nextToken - /// response element. The remaining results of the initial request can be seen by sending - /// another ListClusters request with the returned nextToken - /// value. This value can be between 1 and 100. If this - /// parameter is not used, then ListClusters returns up to - /// 100 results and a nextToken value if applicable.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListClustersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListClustersInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContainerInstancesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to - /// list. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    You can filter the results of a ListContainerInstances operation with - /// cluster query language statements. For more information, see Cluster Query Language in the - /// Amazon Elastic Container Service Developer Guide.

    - pub filter: &'a std::option::Option, - ///

    The nextToken value returned from a ListContainerInstances - /// request indicating that more results are available to fulfill the request and further - /// calls will be needed. If maxResults was provided, it is possible the number - /// of results to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of container instance results returned by - /// ListContainerInstances in paginated output. When this parameter is - /// used, ListContainerInstances only returns maxResults results - /// in a single page along with a nextToken response element. The remaining - /// results of the initial request can be seen by sending another - /// ListContainerInstances request with the returned nextToken - /// value. This value can be between 1 and 100. If this - /// parameter is not used, then ListContainerInstances returns up to - /// 100 results and a nextToken value if applicable.

    - pub max_results: &'a std::option::Option, - ///

    Filters the container instances by status. For example, if you specify the - /// DRAINING status, the results include only container instances that have - /// been set to DRAINING using UpdateContainerInstancesState. - /// If you do not specify this parameter, the default is to include container instances set - /// to all states other than INACTIVE.

    - pub status: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListContainerInstancesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContainerInstancesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("filter", &self.filter); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListServicesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the - /// ListServices results. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The nextToken value returned from a ListServices request - /// indicating that more results are available to fulfill the request and further calls will - /// be needed. If maxResults was provided, it is possible the number of results - /// to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of service results returned by ListServices in - /// paginated output. When this parameter is used, ListServices only returns - /// maxResults results in a single page along with a nextToken - /// response element. The remaining results of the initial request can be seen by sending - /// another ListServices request with the returned nextToken - /// value. This value can be between 1 and 100. If - /// this parameter is not used, then ListServices returns up to - /// 10 results and a nextToken value if - /// applicable.

    - pub max_results: &'a std::option::Option, - ///

    The launch type to use when filtering the ListServices results.

    - pub launch_type: &'a std::option::Option, - ///

    The scheduling strategy to use when filtering the ListServices - /// results.

    - pub scheduling_strategy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListServicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListServicesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("launch_type", &self.launch_type); - formatter.field("scheduling_strategy", &self.scheduling_strategy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceInputBody<'a> { - ///

    The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the - /// supported resources are Amazon ECS tasks, services, task definitions, clusters, and container - /// instances.

    - pub resource_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsForResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTaskDefinitionFamiliesInputBody<'a> { - ///

    The familyPrefix is a string that is used to filter the results of - /// ListTaskDefinitionFamilies. If you specify a familyPrefix, - /// only task definition family names that begin with the familyPrefix string - /// are returned.

    - pub family_prefix: &'a std::option::Option, - ///

    The task definition family status with which to filter the - /// ListTaskDefinitionFamilies results. By default, both - /// ACTIVE and INACTIVE task definition families are listed. - /// If this parameter is set to ACTIVE, only task definition families that have - /// an ACTIVE task definition revision are returned. If this parameter is set - /// to INACTIVE, only task definition families that do not have any - /// ACTIVE task definition revisions are returned. If you paginate the - /// resulting output, be sure to keep the status value constant in each - /// subsequent request.

    - pub status: &'a std::option::Option, - ///

    The nextToken value returned from a - /// ListTaskDefinitionFamilies request indicating that more results are - /// available to fulfill the request and further calls will be needed. If - /// maxResults was provided, it is possible the number of results to be - /// fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of task definition family results returned by - /// ListTaskDefinitionFamilies in paginated output. When this parameter is - /// used, ListTaskDefinitions only returns maxResults results in a - /// single page along with a nextToken response element. The remaining results - /// of the initial request can be seen by sending another - /// ListTaskDefinitionFamilies request with the returned - /// nextToken value. This value can be between 1 and - /// 100. If this parameter is not used, then - /// ListTaskDefinitionFamilies returns up to 100 results - /// and a nextToken value if applicable.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTaskDefinitionFamiliesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTaskDefinitionFamiliesInputBody"); - formatter.field("family_prefix", &self.family_prefix); - formatter.field("status", &self.status); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTaskDefinitionsInputBody<'a> { - ///

    The full family name with which to filter the ListTaskDefinitions - /// results. Specifying a familyPrefix limits the listed task definitions to - /// task definition revisions that belong to that family.

    - pub family_prefix: &'a std::option::Option, - ///

    The task definition status with which to filter the ListTaskDefinitions - /// results. By default, only ACTIVE task definitions are listed. By setting - /// this parameter to INACTIVE, you can view task definitions that are - /// INACTIVE as long as an active task or service still references them. If - /// you paginate the resulting output, be sure to keep the status value - /// constant in each subsequent request.

    - pub status: &'a std::option::Option, - ///

    The order in which to sort the results. Valid values are ASC and - /// DESC. By default (ASC), task definitions are listed - /// lexicographically by family name and in ascending numerical order by revision so that - /// the newest task definitions in a family are listed last. Setting this parameter to - /// DESC reverses the sort order on family name and revision so that the - /// newest task definitions in a family are listed first.

    - pub sort: &'a std::option::Option, - ///

    The nextToken value returned from a ListTaskDefinitions - /// request indicating that more results are available to fulfill the request and further - /// calls will be needed. If maxResults was provided, it is possible the number - /// of results to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of task definition results returned by - /// ListTaskDefinitions in paginated output. When this parameter is used, - /// ListTaskDefinitions only returns maxResults results in a - /// single page along with a nextToken response element. The remaining results - /// of the initial request can be seen by sending another ListTaskDefinitions - /// request with the returned nextToken value. This value can be between - /// 1 and 100. If this parameter is not used, then - /// ListTaskDefinitions returns up to 100 results and a - /// nextToken value if applicable.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTaskDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTaskDefinitionsInputBody"); - formatter.field("family_prefix", &self.family_prefix); - formatter.field("status", &self.status); - formatter.field("sort", &self.sort); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTasksInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the - /// ListTasks results. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The container instance ID or full ARN of the container instance to use when - /// filtering the ListTasks results. Specifying a - /// containerInstance limits the results to tasks that belong to that - /// container instance.

    - pub container_instance: &'a std::option::Option, - ///

    The name of the task definition family to use when filtering the - /// ListTasks results. Specifying a family limits the results - /// to tasks that belong to that family.

    - pub family: &'a std::option::Option, - ///

    The nextToken value returned from a ListTasks request - /// indicating that more results are available to fulfill the request and further calls will - /// be needed. If maxResults was provided, it is possible the number of results - /// to be fewer than maxResults.

    - /// - ///

    This token should be treated as an opaque identifier that is only used to - /// retrieve the next items in a list and not for other programmatic purposes.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of task results returned by ListTasks in paginated - /// output. When this parameter is used, ListTasks only returns - /// maxResults results in a single page along with a nextToken - /// response element. The remaining results of the initial request can be seen by sending - /// another ListTasks request with the returned nextToken value. - /// This value can be between 1 and 100. If this parameter is - /// not used, then ListTasks returns up to 100 results and a - /// nextToken value if applicable.

    - pub max_results: &'a std::option::Option, - ///

    The startedBy value with which to filter the task results. Specifying a - /// startedBy value limits the results to tasks that were started with that - /// value.

    - pub started_by: &'a std::option::Option, - ///

    The name of the service to use when filtering the ListTasks results. - /// Specifying a serviceName limits the results to tasks that belong to that - /// service.

    - pub service_name: &'a std::option::Option, - ///

    The task desired status to use when filtering the ListTasks results. - /// Specifying a desiredStatus of STOPPED limits the results to - /// tasks that Amazon ECS has set the desired status to STOPPED. This can be useful - /// for debugging tasks that are not starting properly or have died or finished. The default - /// status filter is RUNNING, which shows tasks that Amazon ECS has set the desired - /// status to RUNNING.

    - /// - ///

    Although you can filter results based on a desired status of PENDING, - /// this does not return any results. Amazon ECS never sets the desired status of a task to - /// that value (only a task's lastStatus may have a value of - /// PENDING).

    - ///
    - pub desired_status: &'a std::option::Option, - ///

    The launch type to use when filtering the ListTasks results.

    - pub launch_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTasksInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTasksInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instance", &self.container_instance); - formatter.field("family", &self.family); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("started_by", &self.started_by); - formatter.field("service_name", &self.service_name); - formatter.field("desired_status", &self.desired_status); - formatter.field("launch_type", &self.launch_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSettingInputBody<'a> { - ///

    The Amazon ECS resource name for which to modify the account setting. If - /// serviceLongArnFormat is specified, the ARN for your Amazon ECS services is - /// affected. If taskLongArnFormat is specified, the ARN and resource ID for - /// your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is - /// specified, the ARN and resource ID for your Amazon ECS container instances is affected. If - /// awsvpcTrunking is specified, the elastic network interface (ENI) limit - /// for your Amazon ECS container instances is affected. If containerInsights is - /// specified, the default setting for CloudWatch Container Insights for your clusters is - /// affected.

    - pub name: &'a std::option::Option, - ///

    The account setting value for the specified principal ARN. Accepted values are - /// enabled and disabled.

    - pub value: &'a std::option::Option, - ///

    The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you - /// specify the root user, it modifies the account setting for all IAM users, IAM roles, and - /// the root user of the account unless an IAM user or role explicitly overrides these - /// settings. If this field is omitted, the setting is changed only for the authenticated - /// user.

    - /// - ///

    Federated users assume the account setting of the root user and can't have - /// explicit account settings set for them.

    - ///
    - pub principal_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutAccountSettingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSettingInputBody"); - formatter.field("name", &self.name); - formatter.field("value", &self.value); - formatter.field("principal_arn", &self.principal_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSettingDefaultInputBody<'a> { - ///

    The resource name for which to modify the account setting. If - /// serviceLongArnFormat is specified, the ARN for your Amazon ECS services is - /// affected. If taskLongArnFormat is specified, the ARN and resource ID for - /// your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is - /// specified, the ARN and resource ID for your Amazon ECS container instances is affected. If - /// awsvpcTrunking is specified, the ENI limit for your Amazon ECS container - /// instances is affected. If containerInsights is specified, the default - /// setting for CloudWatch Container Insights for your clusters is affected.

    - pub name: &'a std::option::Option, - ///

    The account setting value for the specified principal ARN. Accepted values are - /// enabled and disabled.

    - pub value: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutAccountSettingDefaultInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSettingDefaultInputBody"); - formatter.field("name", &self.name); - formatter.field("value", &self.value); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAttributesInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply - /// attributes. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The attributes to apply to your resource. You can specify up to 10 custom attributes - /// per resource. You can specify up to 10 attributes in a single call.

    - pub attributes: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAttributesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("attributes", &self.attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutClusterCapacityProvidersInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster to modify the capacity provider - /// settings for. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The name of one or more capacity providers to associate with the cluster.

    - ///

    If specifying a capacity provider that uses an Auto Scaling group, the capacity - /// provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

    - ///

    To use a AWS Fargate capacity provider, specify either the FARGATE or - /// FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are - /// available to all accounts and only need to be associated with a cluster to be - /// used.

    - pub capacity_providers: &'a std::option::Option>, - ///

    The capacity provider strategy to use by default for the cluster.

    - ///

    When creating a service or running a task on a cluster, if no capacity provider or - /// launch type is specified then the default capacity provider strategy for the cluster is - /// used.

    - ///

    A capacity provider strategy consists of one or more capacity providers along with the - /// base and weight to assign to them. A capacity provider - /// must be associated with the cluster to be used in a capacity provider strategy. The - /// PutClusterCapacityProviders API is used to associate a capacity - /// provider with a cluster. Only capacity providers with an ACTIVE or - /// UPDATING status can be used.

    - ///

    If specifying a capacity provider that uses an Auto Scaling group, the capacity - /// provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

    - ///

    To use a AWS Fargate capacity provider, specify either the FARGATE or - /// FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are - /// available to all accounts and only need to be associated with a cluster to be - /// used.

    - pub default_capacity_provider_strategy: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutClusterCapacityProvidersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutClusterCapacityProvidersInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("capacity_providers", &self.capacity_providers); - formatter.field( - "default_capacity_provider_strategy", - &self.default_capacity_provider_strategy, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterContainerInstanceInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster with which to register your container - /// instance. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The instance identity document for the EC2 instance to register. This document can be - /// found by running the following command from the instance: curl - /// http://169.254.169.254/latest/dynamic/instance-identity/document/ - ///

    - pub instance_identity_document: &'a std::option::Option, - ///

    The instance identity document signature for the EC2 instance to register. This - /// signature can be found by running the following command from the instance: curl - /// http://169.254.169.254/latest/dynamic/instance-identity/signature/ - ///

    - pub instance_identity_document_signature: &'a std::option::Option, - ///

    The resources available on the instance.

    - pub total_resources: &'a std::option::Option>, - ///

    The version information for the Amazon ECS container agent and Docker daemon running on the - /// container instance.

    - pub version_info: &'a std::option::Option, - ///

    The ARN of the container instance (if it was previously registered).

    - pub container_instance_arn: &'a std::option::Option, - ///

    The container instance attributes that this container instance supports.

    - pub attributes: &'a std::option::Option>, - ///

    The devices that are available on the container instance. The only supported device - /// type is a GPU.

    - pub platform_devices: &'a std::option::Option>, - ///

    The metadata that you apply to the container instance to help you categorize and - /// organize them. Each tag consists of a key and an optional value, both of which you - /// define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RegisterContainerInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterContainerInstanceInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field( - "instance_identity_document", - &self.instance_identity_document, - ); - formatter.field( - "instance_identity_document_signature", - &self.instance_identity_document_signature, - ); - formatter.field("total_resources", &self.total_resources); - formatter.field("version_info", &self.version_info); - formatter.field("container_instance_arn", &self.container_instance_arn); - formatter.field("attributes", &self.attributes); - formatter.field("platform_devices", &self.platform_devices); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTaskDefinitionInputBody<'a> { - ///

    You must specify a family for a task definition, which allows you to - /// track multiple versions of the same task definition. The family is used as - /// a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

    - pub family: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can - /// assume. All containers in this task are granted the permissions that are specified in - /// this role. For more information, see IAM Roles for - /// Tasks in the Amazon Elastic Container Service Developer Guide.

    - pub task_role_arn: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent - /// permission to make AWS API calls on your behalf. The task execution IAM role is required - /// depending on the requirements of your task. For more information, see Amazon ECS task - /// execution IAM role in the Amazon Elastic Container Service Developer Guide.

    - pub execution_role_arn: &'a std::option::Option, - ///

    The Docker networking mode to use for the containers in the task. The valid values are - /// none, bridge, awsvpc, and host. - /// If no network mode is specified, the default is bridge.

    - ///

    For Amazon ECS tasks on Fargate, the awsvpc network mode is required. - /// For Amazon ECS tasks on Amazon EC2 instances, any network mode can be used. If the network - /// mode is set to none, you cannot specify port mappings in your container - /// definitions, and the tasks containers do not have external connectivity. The - /// host and awsvpc network modes offer the highest networking - /// performance for containers because they use the EC2 network stack instead of the - /// virtualized network stack provided by the bridge mode.

    - ///

    With the host and awsvpc network modes, exposed container - /// ports are mapped directly to the corresponding host port (for the host - /// network mode) or the attached elastic network interface port (for the - /// awsvpc network mode), so you cannot take advantage of dynamic host port - /// mappings.

    - /// - ///

    When using the host network mode, you should not run - /// containers using the root user (UID 0). It is considered best practice - /// to use a non-root user.

    - ///
    - ///

    If the network mode is awsvpc, the task is allocated an elastic network - /// interface, and you must specify a NetworkConfiguration value when you create - /// a service or run a task with the task definition. For more information, see Task Networking in the - /// Amazon Elastic Container Service Developer Guide.

    - /// - ///

    Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the - /// ecs-init package, or AWS Fargate infrastructure support the - /// awsvpc network mode.

    - ///
    - ///

    If the network mode is host, you cannot run multiple instantiations of the - /// same task on a single container instance when port mappings are used.

    - ///

    Docker for Windows uses different network modes than Docker for Linux. When you - /// register a task definition with Windows containers, you must not specify a network mode. - /// If you use the console to register a task definition with Windows containers, you must - /// choose the network mode object.

    - ///

    For more information, see Network - /// settings in the Docker run reference.

    - pub network_mode: &'a std::option::Option, - ///

    A list of container definitions in JSON format that describe the different containers - /// that make up your task.

    - pub container_definitions: - &'a std::option::Option>, - ///

    A list of volume definitions in JSON format that containers in your task may - /// use.

    - pub volumes: &'a std::option::Option>, - ///

    An array of placement constraint objects to use for the task. You can specify a - /// maximum of 10 constraints per task (this limit includes constraints in the task - /// definition and those specified at runtime).

    - pub placement_constraints: - &'a std::option::Option>, - ///

    The task launch type that Amazon ECS should validate the task definition against. A client - /// exception is returned if the task definition doesn't validate against the - /// compatibilities specified. If no value is specified, the parameter is omitted from the - /// response.

    - pub requires_compatibilities: - &'a std::option::Option>, - ///

    The number of CPU units used by the task. It can be expressed as an integer using CPU - /// units, for example 1024, or as a string using vCPUs, for example 1 - /// vCPU or 1 vcpu, in a task definition. String values are - /// converted to an integer indicating the CPU units when the task definition is - /// registered.

    - /// - ///

    Task-level CPU and memory parameters are ignored for Windows containers. We - /// recommend specifying container-level resources for Windows containers.

    - ///
    - ///

    If you are using the EC2 launch type, this field is optional. Supported - /// values are between 128 CPU units (0.125 vCPUs) and - /// 10240 CPU units (10 vCPUs).

    - ///

    If you are using the Fargate launch type, this field is required and you - /// must use one of the following values, which determines your range of supported values - /// for the memory parameter:

    - ///
      - ///
    • - ///

      256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

      - ///
    • - ///
    • - ///

      512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

      - ///
    • - ///
    • - ///

      1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

      - ///
    • - ///
    • - ///

      2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

      - ///
    • - ///
    • - ///

      4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

      - ///
    • - ///
    - pub cpu: &'a std::option::Option, - ///

    The amount of memory (in MiB) used by the task. It can be expressed as an integer - /// using MiB, for example 1024, or as a string using GB, for example - /// 1GB or 1 GB, in a task definition. String values are - /// converted to an integer indicating the MiB when the task definition is - /// registered.

    - /// - ///

    Task-level CPU and memory parameters are ignored for Windows containers. We - /// recommend specifying container-level resources for Windows containers.

    - ///
    - ///

    If using the EC2 launch type, this field is optional.

    - ///

    If using the Fargate launch type, this field is required and you must - /// use one of the following values, which determines your range of supported values for the - /// cpu parameter:

    - ///
      - ///
    • - ///

      512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)

      - ///
    • - ///
    • - ///

      1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)

      - ///
    • - ///
    • - ///

      2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)

      - ///
    • - ///
    • - ///

      Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)

      - ///
    • - ///
    • - ///

      Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

      - ///
    • - ///
    - pub memory: &'a std::option::Option, - ///

    The metadata that you apply to the task definition to help you categorize and organize - /// them. Each tag consists of a key and an optional value, both of which you define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    The process namespace to use for the containers in the task. The valid - /// values are host or task. If host - /// is specified, then all containers within the tasks that specified the - /// host PID mode on the same container instance share the - /// same process namespace with the host Amazon EC2 instance. If task is - /// specified, all containers within the specified task share the same - /// process namespace. If no value is specified, the default is a private - /// namespace. For more information, see PID settings in the Docker run - /// reference.

    - ///

    If the host PID mode is used, be aware that there is a - /// heightened risk of undesired process namespace expose. For more - /// information, see Docker - /// security.

    - /// - ///

    This parameter is not supported for Windows containers or tasks run on AWS Fargate.

    - ///
    - pub pid_mode: &'a std::option::Option, - ///

    The IPC resource namespace to use for the containers in the task. The valid values are - /// host, task, or none. If host is - /// specified, then all containers within the tasks that specified the host IPC - /// mode on the same container instance share the same IPC resources with the host Amazon EC2 - /// instance. If task is specified, all containers within the specified task - /// share the same IPC resources. If none is specified, then IPC resources - /// within the containers of a task are private and not shared with other containers in a - /// task or on the container instance. If no value is specified, then the IPC resource - /// namespace sharing depends on the Docker daemon setting on the container instance. For - /// more information, see IPC - /// settings in the Docker run reference.

    - ///

    If the host IPC mode is used, be aware that there is a heightened risk of - /// undesired IPC namespace expose. For more information, see Docker - /// security.

    - ///

    If you are setting namespaced kernel parameters using systemControls for - /// the containers in the task, the following will apply to your IPC resource namespace. For - /// more information, see System - /// Controls in the Amazon Elastic Container Service Developer Guide.

    - ///
      - ///
    • - ///

      For tasks that use the host IPC mode, IPC namespace related - /// systemControls are not supported.

      - ///
    • - ///
    • - ///

      For tasks that use the task IPC mode, IPC namespace related - /// systemControls will apply to all containers within a - /// task.

      - ///
    • - ///
    - /// - ///

    This parameter is not supported for Windows containers or tasks run on AWS Fargate.

    - ///
    - pub ipc_mode: &'a std::option::Option, - ///

    The configuration details for the App Mesh proxy.

    - ///

    For tasks hosted on Amazon EC2 instances, the container instances require at least version - /// 1.26.0 of the container agent and at least version - /// 1.26.0-1 of the ecs-init package to enable a proxy - /// configuration. If your container instances are launched from the Amazon ECS-optimized - /// AMI version 20190301 or later, then they contain the required versions of - /// the container agent and ecs-init. For more information, see Amazon ECS-optimized AMI versions in the - /// Amazon Elastic Container Service Developer Guide.

    - pub proxy_configuration: &'a std::option::Option, - ///

    The Elastic Inference accelerators to use for the containers in the task.

    - pub inference_accelerators: - &'a std::option::Option>, - ///

    The amount of ephemeral storage to allocate for the task. This parameter is used to - /// expand the total amount of ephemeral storage available, beyond the default amount, for - /// tasks hosted on AWS Fargate. For more information, see Fargate task - /// storage in the Amazon ECS User Guide for AWS Fargate.

    - /// - ///

    This parameter is only supported for tasks hosted on AWS Fargate using platform - /// version 1.4.0 or later.

    - ///
    - pub ephemeral_storage: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterTaskDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTaskDefinitionInputBody"); - formatter.field("family", &self.family); - formatter.field("task_role_arn", &self.task_role_arn); - formatter.field("execution_role_arn", &self.execution_role_arn); - formatter.field("network_mode", &self.network_mode); - formatter.field("container_definitions", &self.container_definitions); - formatter.field("volumes", &self.volumes); - formatter.field("placement_constraints", &self.placement_constraints); - formatter.field("requires_compatibilities", &self.requires_compatibilities); - formatter.field("cpu", &self.cpu); - formatter.field("memory", &self.memory); - formatter.field("tags", &self.tags); - formatter.field("pid_mode", &self.pid_mode); - formatter.field("ipc_mode", &self.ipc_mode); - formatter.field("proxy_configuration", &self.proxy_configuration); - formatter.field("inference_accelerators", &self.inference_accelerators); - formatter.field("ephemeral_storage", &self.ephemeral_storage); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RunTaskInputBody<'a> { - ///

    The capacity provider strategy to use for the task.

    - ///

    If a capacityProviderStrategy is specified, the launchType - /// parameter must be omitted. If no capacityProviderStrategy or - /// launchType is specified, the - /// defaultCapacityProviderStrategy for the cluster is used.

    - pub capacity_provider_strategy: - &'a std::option::Option>, - ///

    The short name or full Amazon Resource Name (ARN) of the cluster on which to run your task. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The number of instantiations of the specified task to place on your cluster. You can - /// specify up to 10 tasks per call.

    - pub count: &'a std::option::Option, - ///

    Specifies whether to enable Amazon ECS managed tags for the task. For more information, see - /// Tagging Your Amazon ECS - /// Resources in the Amazon Elastic Container Service Developer Guide.

    - pub enable_ecs_managed_tags: &'a bool, - ///

    Whether or not to enable the execute command functionality for the containers in this - /// task. If true, this enables execute command functionality on all containers - /// in the task.

    - pub enable_execute_command: &'a bool, - ///

    The name of the task group to associate with the task. The default value is the family - /// name of the task definition (for example, family:my-family-name).

    - pub group: &'a std::option::Option, - ///

    The infrastructure on which to run your standalone task. For more information, see - /// Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

    - ///

    The FARGATE launch type runs your tasks on AWS Fargate On-Demand - /// infrastructure.

    - /// - ///

    Fargate Spot infrastructure is available for use but a capacity provider - /// strategy must be used. For more information, see AWS Fargate capacity providers in the - /// Amazon ECS User Guide for AWS Fargate.

    - ///
    - ///

    The EC2 launch type runs your tasks on Amazon EC2 instances registered to your - /// cluster.

    - ///

    The EXTERNAL launch type runs your tasks on your on-premise server or - /// virtual machine (VM) capacity registered to your cluster.

    - ///

    A task can use either a launch type or a capacity provider strategy. If a - /// launchType is specified, the capacityProviderStrategy - /// parameter must be omitted.

    - pub launch_type: &'a std::option::Option, - ///

    The network configuration for the task. This parameter is required for task - /// definitions that use the awsvpc network mode to receive their own elastic - /// network interface, and it is not supported for other network modes. For more - /// information, see Task Networking - /// in the Amazon Elastic Container Service Developer Guide.

    - pub network_configuration: &'a std::option::Option, - ///

    A list of container overrides in JSON format that specify the name of a container in - /// the specified task definition and the overrides it should receive. You can override the - /// default command for a container (that is specified in the task definition or Docker - /// image) with a command override. You can also override existing environment - /// variables (that are specified in the task definition or Docker image) on a container or - /// add new environment variables to it with an environment override.

    - /// - ///

    A total of 8192 characters are allowed for overrides. This limit includes the JSON - /// formatting characters of the override structure.

    - ///
    - pub overrides: &'a std::option::Option, - ///

    An array of placement constraint objects to use for the task. You can specify up to 10 - /// constraints per task (including constraints in the task definition and those specified - /// at runtime).

    - pub placement_constraints: - &'a std::option::Option>, - ///

    The placement strategy objects to use for the task. You can specify a maximum of five - /// strategy rules per task.

    - pub placement_strategy: &'a std::option::Option>, - ///

    The platform version the task should run. A platform version is only specified for - /// tasks using the Fargate launch type. If one is not specified, the - /// LATEST platform version is used by default. For more information, see - /// AWS Fargate Platform - /// Versions in the Amazon Elastic Container Service Developer Guide.

    - pub platform_version: &'a std::option::Option, - ///

    Specifies whether to propagate the tags from the task definition to the task. If no - /// value is specified, the tags are not propagated. Tags can only be propagated to the task - /// during task creation. To add tags to a task after task creation, use the TagResource API action.

    - /// - ///

    An error will be received if you specify the SERVICE option when - /// running a task.

    - ///
    - pub propagate_tags: &'a std::option::Option, - ///

    The reference ID to use for the task.

    - pub reference_id: &'a std::option::Option, - ///

    An optional tag specified when a task is started. For example, if you automatically - /// trigger a task to run a batch process job, you could apply a unique identifier for that - /// job to your task with the startedBy parameter. You can then identify which - /// tasks belong to that job by filtering the results of a ListTasks call - /// with the startedBy value. Up to 36 letters (uppercase and lowercase), - /// numbers, hyphens, and underscores are allowed.

    - ///

    If a task is started by an Amazon ECS service, then the startedBy parameter - /// contains the deployment ID of the service that starts it.

    - pub started_by: &'a std::option::Option, - ///

    The metadata that you apply to the task to help you categorize and organize them. Each - /// tag consists of a key and an optional value, both of which you define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    The family and revision (family:revision) or - /// full ARN of the task definition to run. If a revision is not specified, - /// the latest ACTIVE revision is used.

    - pub task_definition: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RunTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RunTaskInputBody"); - formatter.field( - "capacity_provider_strategy", - &self.capacity_provider_strategy, - ); - formatter.field("cluster", &self.cluster); - formatter.field("count", &self.count); - formatter.field("enable_ecs_managed_tags", &self.enable_ecs_managed_tags); - formatter.field("enable_execute_command", &self.enable_execute_command); - formatter.field("group", &self.group); - formatter.field("launch_type", &self.launch_type); - formatter.field("network_configuration", &self.network_configuration); - formatter.field("overrides", &self.overrides); - formatter.field("placement_constraints", &self.placement_constraints); - formatter.field("placement_strategy", &self.placement_strategy); - formatter.field("platform_version", &self.platform_version); - formatter.field("propagate_tags", &self.propagate_tags); - formatter.field("reference_id", &self.reference_id); - formatter.field("started_by", &self.started_by); - formatter.field("tags", &self.tags); - formatter.field("task_definition", &self.task_definition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartTaskInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster on which to start your task. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The container instance IDs or full ARN entries for the container instances on which - /// you would like to place your task. You can specify up to 10 container instances.

    - pub container_instances: &'a std::option::Option>, - ///

    Specifies whether to enable Amazon ECS managed tags for the task. For more information, see - /// Tagging Your Amazon ECS - /// Resources in the Amazon Elastic Container Service Developer Guide.

    - pub enable_ecs_managed_tags: &'a bool, - ///

    Whether or not the execute command functionality is enabled for the task. If - /// true, this enables execute command functionality on all containers in - /// the task.

    - pub enable_execute_command: &'a bool, - ///

    The name of the task group to associate with the task. The default value is the family - /// name of the task definition (for example, family:my-family-name).

    - pub group: &'a std::option::Option, - ///

    The VPC subnet and security group configuration for tasks that receive their own - /// elastic network interface by using the awsvpc networking mode.

    - pub network_configuration: &'a std::option::Option, - ///

    A list of container overrides in JSON format that specify the name of a container in - /// the specified task definition and the overrides it should receive. You can override the - /// default command for a container (that is specified in the task definition or Docker - /// image) with a command override. You can also override existing environment - /// variables (that are specified in the task definition or Docker image) on a container or - /// add new environment variables to it with an environment override.

    - /// - ///

    A total of 8192 characters are allowed for overrides. This limit includes the JSON - /// formatting characters of the override structure.

    - ///
    - pub overrides: &'a std::option::Option, - ///

    Specifies whether to propagate the tags from the task definition or the service to the - /// task. If no value is specified, the tags are not propagated.

    - pub propagate_tags: &'a std::option::Option, - ///

    The reference ID to use for the task.

    - pub reference_id: &'a std::option::Option, - ///

    An optional tag specified when a task is started. For example, if you automatically - /// trigger a task to run a batch process job, you could apply a unique identifier for that - /// job to your task with the startedBy parameter. You can then identify which - /// tasks belong to that job by filtering the results of a ListTasks call - /// with the startedBy value. Up to 36 letters (uppercase and lowercase), - /// numbers, hyphens, and underscores are allowed.

    - ///

    If a task is started by an Amazon ECS service, then the startedBy parameter - /// contains the deployment ID of the service that starts it.

    - pub started_by: &'a std::option::Option, - ///

    The metadata that you apply to the task to help you categorize and organize them. Each - /// tag consists of a key and an optional value, both of which you define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    The family and revision (family:revision) or - /// full ARN of the task definition to start. If a revision is not specified, - /// the latest ACTIVE revision is used.

    - pub task_definition: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartTaskInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instances", &self.container_instances); - formatter.field("enable_ecs_managed_tags", &self.enable_ecs_managed_tags); - formatter.field("enable_execute_command", &self.enable_execute_command); - formatter.field("group", &self.group); - formatter.field("network_configuration", &self.network_configuration); - formatter.field("overrides", &self.overrides); - formatter.field("propagate_tags", &self.propagate_tags); - formatter.field("reference_id", &self.reference_id); - formatter.field("started_by", &self.started_by); - formatter.field("tags", &self.tags); - formatter.field("task_definition", &self.task_definition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopTaskInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The task ID or full Amazon Resource Name (ARN) of the task to stop.

    - pub task: &'a std::option::Option, - ///

    An optional message specified when a task is stopped. For example, if you are using a - /// custom scheduler, you can use this parameter to specify the reason for stopping the task - /// here, and the message appears in subsequent DescribeTasks API - /// operations on this task. Up to 255 characters are allowed in this message.

    - pub reason: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopTaskInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("task", &self.task); - formatter.field("reason", &self.reason); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitAttachmentStateChangesInputBody<'a> { - ///

    The short name or full ARN of the cluster that hosts the container instance the - /// attachment belongs to.

    - pub cluster: &'a std::option::Option, - ///

    Any attachments associated with the state change request.

    - pub attachments: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for SubmitAttachmentStateChangesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitAttachmentStateChangesInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("attachments", &self.attachments); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitContainerStateChangeInputBody<'a> { - ///

    The short name or full ARN of the cluster that hosts the container.

    - pub cluster: &'a std::option::Option, - ///

    The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.

    - pub task: &'a std::option::Option, - ///

    The name of the container.

    - pub container_name: &'a std::option::Option, - ///

    The ID of the Docker container.

    - pub runtime_id: &'a std::option::Option, - ///

    The status of the state change request.

    - pub status: &'a std::option::Option, - ///

    The exit code returned for the state change request.

    - pub exit_code: &'a std::option::Option, - ///

    The reason for the state change request.

    - pub reason: &'a std::option::Option, - ///

    The network bindings of the container.

    - pub network_bindings: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for SubmitContainerStateChangeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitContainerStateChangeInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("task", &self.task); - formatter.field("container_name", &self.container_name); - formatter.field("runtime_id", &self.runtime_id); - formatter.field("status", &self.status); - formatter.field("exit_code", &self.exit_code); - formatter.field("reason", &self.reason); - formatter.field("network_bindings", &self.network_bindings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitTaskStateChangeInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.

    - pub cluster: &'a std::option::Option, - ///

    The task ID or full ARN of the task in the state change request.

    - pub task: &'a std::option::Option, - ///

    The status of the state change request.

    - pub status: &'a std::option::Option, - ///

    The reason for the state change request.

    - pub reason: &'a std::option::Option, - ///

    Any containers associated with the state change request.

    - pub containers: &'a std::option::Option>, - ///

    Any attachments associated with the state change request.

    - pub attachments: &'a std::option::Option>, - ///

    The details for the managed agent associated with the task.

    - pub managed_agents: - &'a std::option::Option>, - ///

    The Unix timestamp for when the container image pull began.

    - pub pull_started_at: &'a std::option::Option, - ///

    The Unix timestamp for when the container image pull completed.

    - pub pull_stopped_at: &'a std::option::Option, - ///

    The Unix timestamp for when the task execution stopped.

    - pub execution_stopped_at: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SubmitTaskStateChangeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitTaskStateChangeInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("task", &self.task); - formatter.field("status", &self.status); - formatter.field("reason", &self.reason); - formatter.field("containers", &self.containers); - formatter.field("attachments", &self.attachments); - formatter.field("managed_agents", &self.managed_agents); - formatter.field("pull_started_at", &self.pull_started_at); - formatter.field("pull_stopped_at", &self.pull_stopped_at); - formatter.field("execution_stopped_at", &self.execution_stopped_at); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources - /// are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container - /// instances.

    - pub resource_arn: &'a std::option::Option, - ///

    The tags to add to the resource. A tag is an array of key-value pairs.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagResourceInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported - /// resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and - /// container instances.

    - pub resource_arn: &'a std::option::Option, - ///

    The keys of the tags to be removed.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UntagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCapacityProviderInputBody<'a> { - ///

    The name of the capacity provider to update.

    - pub name: &'a std::option::Option, - ///

    An object representing the parameters to update for the Auto Scaling group capacity - /// provider.

    - pub auto_scaling_group_provider: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateCapacityProviderInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCapacityProviderInputBody"); - formatter.field("name", &self.name); - formatter.field( - "auto_scaling_group_provider", - &self.auto_scaling_group_provider, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClusterInputBody<'a> { - ///

    The name of the cluster to modify the settings for.

    - pub cluster: &'a std::option::Option, - ///

    The cluster settings for your cluster.

    - pub settings: &'a std::option::Option>, - ///

    The execute command configuration for the cluster.

    - pub configuration: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateClusterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClusterInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("settings", &self.settings); - formatter.field("configuration", &self.configuration); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClusterSettingsInputBody<'a> { - ///

    The name of the cluster to modify the settings for.

    - pub cluster: &'a std::option::Option, - ///

    The setting to use by default for a cluster. This parameter is used to enable CloudWatch - /// Container Insights for a cluster. If this value is specified, it will override the - /// containerInsights value set with PutAccountSetting or - /// PutAccountSettingDefault.

    - pub settings: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateClusterSettingsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClusterSettingsInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("settings", &self.settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContainerAgentInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is - /// running on. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The container instance ID or full ARN entries for the container instance on which - /// you would like to update the Amazon ECS container agent.

    - pub container_instance: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContainerAgentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContainerAgentInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instance", &self.container_instance); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContainerInstancesStateInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to - /// update. If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    A list of container instance IDs or full ARN entries.

    - pub container_instances: &'a std::option::Option>, - ///

    The container instance state with which to update the container instance. The only - /// valid values for this action are ACTIVE and DRAINING. A - /// container instance can only be updated to DRAINING status once it has - /// reached an ACTIVE state. If a container instance is in - /// REGISTERING, DEREGISTERING, or - /// REGISTRATION_FAILED state you can describe the container instance but - /// will be unable to update the container instance state.

    - pub status: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContainerInstancesStateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContainerInstancesStateInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("container_instances", &self.container_instances); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateServiceInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. - /// If you do not specify a cluster, the default cluster is assumed.

    - pub cluster: &'a std::option::Option, - ///

    The name of the service to update.

    - pub service: &'a std::option::Option, - ///

    The number of instantiations of the task to place and keep running in your - /// service.

    - pub desired_count: &'a std::option::Option, - ///

    The family and revision (family:revision) or - /// full ARN of the task definition to run in your service. If a revision is - /// not specified, the latest ACTIVE revision is used. If you modify the task - /// definition with UpdateService, Amazon ECS spawns a task with the new version of - /// the task definition and then stops an old task after the new version is running.

    - pub task_definition: &'a std::option::Option, - ///

    The capacity provider strategy to update the service to use.

    - ///

    If the service is using the default capacity provider strategy for the cluster, the - /// service can be updated to use one or more capacity providers as opposed to the default - /// capacity provider strategy. However, when a service is using a capacity provider - /// strategy that is not the default capacity provider strategy, the service cannot be - /// updated to use the cluster's default capacity provider strategy.

    - ///

    A capacity provider strategy consists of one or more capacity providers along with the - /// base and weight to assign to them. A capacity provider - /// must be associated with the cluster to be used in a capacity provider strategy. The - /// PutClusterCapacityProviders API is used to associate a capacity - /// provider with a cluster. Only capacity providers with an ACTIVE or - /// UPDATING status can be used.

    - ///

    If specifying a capacity provider that uses an Auto Scaling group, the capacity - /// provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

    - ///

    To use a AWS Fargate capacity provider, specify either the FARGATE or - /// FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are - /// available to all accounts and only need to be associated with a cluster to be - /// used.

    - ///

    The PutClusterCapacityProviders API operation is used to update the - /// list of available capacity providers for a cluster after the cluster is created.

    - ///

    - pub capacity_provider_strategy: - &'a std::option::Option>, - ///

    Optional deployment parameters that control how many tasks run during the deployment - /// and the ordering of stopping and starting tasks.

    - pub deployment_configuration: &'a std::option::Option, - ///

    An object representing the network configuration for the service.

    - pub network_configuration: &'a std::option::Option, - ///

    An array of task placement constraint objects to update the service to use. If no - /// value is specified, the existing placement constraints for the service will remain - /// unchanged. If this value is specified, it will override any existing placement - /// constraints defined for the service. To remove all existing placement constraints, - /// specify an empty array.

    - ///

    You can specify a maximum of 10 constraints per task (this limit includes constraints - /// in the task definition and those specified at runtime).

    - pub placement_constraints: - &'a std::option::Option>, - ///

    The task placement strategy objects to update the service to use. If no value is - /// specified, the existing placement strategy for the service will remain unchanged. If - /// this value is specified, it will override the existing placement strategy defined for - /// the service. To remove an existing placement strategy, specify an empty object.

    - ///

    You can specify a maximum of five strategy rules per service.

    - pub placement_strategy: &'a std::option::Option>, - ///

    The platform version on which your tasks in the service are running. A platform - /// version is only specified for tasks using the Fargate launch type. If a - /// platform version is not specified, the LATEST platform version is used by - /// default. For more information, see AWS Fargate Platform - /// Versions in the Amazon Elastic Container Service Developer Guide.

    - pub platform_version: &'a std::option::Option, - ///

    Whether to force a new deployment of the service. Deployments are not forced by - /// default. You can use this option to trigger a new deployment with no service definition - /// changes. For example, you can update a service's tasks to use a newer Docker image with - /// the same image/tag combination (my_image:latest) or to roll Fargate tasks - /// onto a newer platform version.

    - pub force_new_deployment: &'a bool, - ///

    The period of time, in seconds, that the Amazon ECS service scheduler should ignore - /// unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid - /// if your service is configured to use a load balancer. If your service's tasks take a - /// while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace - /// period of up to 2,147,483,647 seconds. During that time, the Amazon ECS service - /// scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS - /// service scheduler from marking tasks as unhealthy and stopping them before they have - /// time to come up.

    - pub health_check_grace_period_seconds: &'a std::option::Option, - ///

    If true, this enables execute command functionality on all task - /// containers.

    - ///

    If you do not want to override the value that was set when the service was created, - /// you can set this to null when performing this action.

    - pub enable_execute_command: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateServiceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateServiceInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("desired_count", &self.desired_count); - formatter.field("task_definition", &self.task_definition); - formatter.field( - "capacity_provider_strategy", - &self.capacity_provider_strategy, - ); - formatter.field("deployment_configuration", &self.deployment_configuration); - formatter.field("network_configuration", &self.network_configuration); - formatter.field("placement_constraints", &self.placement_constraints); - formatter.field("placement_strategy", &self.placement_strategy); - formatter.field("platform_version", &self.platform_version); - formatter.field("force_new_deployment", &self.force_new_deployment); - formatter.field( - "health_check_grace_period_seconds", - &self.health_check_grace_period_seconds, - ); - formatter.field("enable_execute_command", &self.enable_execute_command); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateServicePrimaryTaskSetInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task - /// set exists in.

    - pub cluster: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.

    - pub service: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the - /// deployment.

    - pub primary_task_set: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateServicePrimaryTaskSetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateServicePrimaryTaskSetInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("primary_task_set", &self.primary_task_set); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTaskSetInputBody<'a> { - ///

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task - /// set exists in.

    - pub cluster: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.

    - pub service: &'a std::option::Option, - ///

    The short name or full Amazon Resource Name (ARN) of the task set to update.

    - pub task_set: &'a std::option::Option, - ///

    A floating-point percentage of the desired number of tasks to place and keep running - /// in the task set.

    - pub scale: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateTaskSetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTaskSetInputBody"); - formatter.field("cluster", &self.cluster); - formatter.field("service", &self.service); - formatter.field("task_set", &self.task_set); - formatter.field("scale", &self.scale); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCapacityProviderOutputBody { - ///

    The full description of the new capacity provider.

    - #[serde(rename = "capacityProvider")] - #[serde(default)] - pub capacity_provider: std::option::Option, -} -impl std::fmt::Debug for CreateCapacityProviderOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCapacityProviderOutputBody"); - formatter.field("capacity_provider", &self.capacity_provider); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateClusterOutputBody { - ///

    The full description of your new cluster.

    - #[serde(rename = "cluster")] - #[serde(default)] - pub cluster: std::option::Option, -} -impl std::fmt::Debug for CreateClusterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateClusterOutputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateServiceOutputBody { - ///

    The full description of your service following the create call.

    - ///

    If a service is using the ECS deployment controller, the - /// deploymentController and taskSets parameters will not be - /// returned.

    - ///

    If the service is using the CODE_DEPLOY deployment controller, the - /// deploymentController, taskSets and - /// deployments parameters will be returned, however the - /// deployments parameter will be an empty list.

    - #[serde(rename = "service")] - #[serde(default)] - pub service: std::option::Option, -} -impl std::fmt::Debug for CreateServiceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateServiceOutputBody"); - formatter.field("service", &self.service); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTaskSetOutputBody { - ///

    Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an - /// EXTERNAL deployment. A task set includes details such as the desired - /// number of tasks, how many tasks are running, and whether the task set serves production - /// traffic.

    - #[serde(rename = "taskSet")] - #[serde(default)] - pub task_set: std::option::Option, -} -impl std::fmt::Debug for CreateTaskSetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTaskSetOutputBody"); - formatter.field("task_set", &self.task_set); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAccountSettingOutputBody { - ///

    The account setting for the specified principal ARN.

    - #[serde(rename = "setting")] - #[serde(default)] - pub setting: std::option::Option, -} -impl std::fmt::Debug for DeleteAccountSettingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAccountSettingOutputBody"); - formatter.field("setting", &self.setting); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAttributesOutputBody { - ///

    A list of attribute objects that were successfully deleted from your resource.

    - #[serde(rename = "attributes")] - #[serde(default)] - pub attributes: std::option::Option>, -} -impl std::fmt::Debug for DeleteAttributesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAttributesOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteCapacityProviderOutputBody { - ///

    The details of the capacity provider.

    - #[serde(rename = "capacityProvider")] - #[serde(default)] - pub capacity_provider: std::option::Option, -} -impl std::fmt::Debug for DeleteCapacityProviderOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteCapacityProviderOutputBody"); - formatter.field("capacity_provider", &self.capacity_provider); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteClusterOutputBody { - ///

    The full description of the deleted cluster.

    - #[serde(rename = "cluster")] - #[serde(default)] - pub cluster: std::option::Option, -} -impl std::fmt::Debug for DeleteClusterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteClusterOutputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteServiceOutputBody { - ///

    The full description of the deleted service.

    - #[serde(rename = "service")] - #[serde(default)] - pub service: std::option::Option, -} -impl std::fmt::Debug for DeleteServiceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteServiceOutputBody"); - formatter.field("service", &self.service); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTaskSetOutputBody { - ///

    Details about the task set.

    - #[serde(rename = "taskSet")] - #[serde(default)] - pub task_set: std::option::Option, -} -impl std::fmt::Debug for DeleteTaskSetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTaskSetOutputBody"); - formatter.field("task_set", &self.task_set); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterContainerInstanceOutputBody { - ///

    The container instance that was deregistered.

    - #[serde(rename = "containerInstance")] - #[serde(default)] - pub container_instance: std::option::Option, -} -impl std::fmt::Debug for DeregisterContainerInstanceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterContainerInstanceOutputBody"); - formatter.field("container_instance", &self.container_instance); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTaskDefinitionOutputBody { - ///

    The full description of the deregistered task.

    - #[serde(rename = "taskDefinition")] - #[serde(default)] - pub task_definition: std::option::Option, -} -impl std::fmt::Debug for DeregisterTaskDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTaskDefinitionOutputBody"); - formatter.field("task_definition", &self.task_definition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCapacityProvidersOutputBody { - ///

    The list of capacity providers.

    - #[serde(rename = "capacityProviders")] - #[serde(default)] - pub capacity_providers: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, - ///

    The nextToken value to include in a future - /// DescribeCapacityProviders request. When the results of a - /// DescribeCapacityProviders request exceed maxResults, this - /// value can be used to retrieve the next page of results. This value is null - /// when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeCapacityProvidersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCapacityProvidersOutputBody"); - formatter.field("capacity_providers", &self.capacity_providers); - formatter.field("failures", &self.failures); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeClustersOutputBody { - ///

    The list of clusters.

    - #[serde(rename = "clusters")] - #[serde(default)] - pub clusters: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for DescribeClustersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeClustersOutputBody"); - formatter.field("clusters", &self.clusters); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContainerInstancesOutputBody { - ///

    The list of container instances.

    - #[serde(rename = "containerInstances")] - #[serde(default)] - pub container_instances: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for DescribeContainerInstancesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContainerInstancesOutputBody"); - formatter.field("container_instances", &self.container_instances); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeServicesOutputBody { - ///

    The list of services described.

    - #[serde(rename = "services")] - #[serde(default)] - pub services: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for DescribeServicesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeServicesOutputBody"); - formatter.field("services", &self.services); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTaskDefinitionOutputBody { - ///

    The full task definition description.

    - #[serde(rename = "taskDefinition")] - #[serde(default)] - pub task_definition: std::option::Option, - ///

    The metadata that is applied to the task definition to help you categorize and - /// organize them. Each tag consists of a key and an optional value, both of which you - /// define.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per resource - 50

      - ///
    • - ///
    • - ///

      For each resource, each tag key must be unique, and each tag key can have only - /// one value.

      - ///
    • - ///
    • - ///

      Maximum key length - 128 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length - 256 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      If your tagging schema is used across multiple services and resources, - /// remember that other services may have restrictions on allowed characters. - /// Generally allowed characters are: letters, numbers, and spaces representable in - /// UTF-8, and the following characters: + - = . _ : / @.

      - ///
    • - ///
    • - ///

      Tag keys and values are case-sensitive.

      - ///
    • - ///
    • - ///

      Do not use aws:, AWS:, or any upper or lowercase - /// combination of such as a prefix for either keys or values as it is reserved for - /// AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with - /// this prefix do not count against your tags per resource limit.

      - ///
    • - ///
    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for DescribeTaskDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTaskDefinitionOutputBody"); - formatter.field("task_definition", &self.task_definition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTasksOutputBody { - ///

    The list of tasks.

    - #[serde(rename = "tasks")] - #[serde(default)] - pub tasks: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for DescribeTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTasksOutputBody"); - formatter.field("tasks", &self.tasks); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTaskSetsOutputBody { - ///

    The list of task sets described.

    - #[serde(rename = "taskSets")] - #[serde(default)] - pub task_sets: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for DescribeTaskSetsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTaskSetsOutputBody"); - formatter.field("task_sets", &self.task_sets); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DiscoverPollEndpointOutputBody { - ///

    The endpoint for the Amazon ECS agent to poll.

    - #[serde(rename = "endpoint")] - #[serde(default)] - pub endpoint: std::option::Option, - ///

    The telemetry endpoint for the Amazon ECS agent.

    - #[serde(rename = "telemetryEndpoint")] - #[serde(default)] - pub telemetry_endpoint: std::option::Option, -} -impl std::fmt::Debug for DiscoverPollEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DiscoverPollEndpointOutputBody"); - formatter.field("endpoint", &self.endpoint); - formatter.field("telemetry_endpoint", &self.telemetry_endpoint); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteCommandOutputBody { - ///

    The Amazon Resource Name (ARN) of the cluster.

    - #[serde(rename = "clusterArn")] - #[serde(default)] - pub cluster_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the container.

    - #[serde(rename = "containerArn")] - #[serde(default)] - pub container_arn: std::option::Option, - ///

    The name of the container.

    - #[serde(rename = "containerName")] - #[serde(default)] - pub container_name: std::option::Option, - ///

    Whether or not the execute command session is running in interactive mode. Amazon ECS only - /// supports initiating interactive sessions, so you must specify true for this - /// value.

    - #[serde(rename = "interactive")] - #[serde(default)] - pub interactive: bool, - ///

    The details of the SSM session that was created for this instance of - /// execute-command.

    - #[serde(rename = "session")] - #[serde(default)] - pub session: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the task.

    - #[serde(rename = "taskArn")] - #[serde(default)] - pub task_arn: std::option::Option, -} -impl std::fmt::Debug for ExecuteCommandOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteCommandOutputBody"); - formatter.field("cluster_arn", &self.cluster_arn); - formatter.field("container_arn", &self.container_arn); - formatter.field("container_name", &self.container_name); - formatter.field("interactive", &self.interactive); - formatter.field("session", &self.session); - formatter.field("task_arn", &self.task_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAccountSettingsOutputBody { - ///

    The account settings for the resource.

    - #[serde(rename = "settings")] - #[serde(default)] - pub settings: std::option::Option>, - ///

    The nextToken value to include in a future - /// ListAccountSettings request. When the results of a - /// ListAccountSettings request exceed maxResults, this value - /// can be used to retrieve the next page of results. This value is null when - /// there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAccountSettingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAccountSettingsOutputBody"); - formatter.field("settings", &self.settings); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAttributesOutputBody { - ///

    A list of attribute objects that meet the criteria of the request.

    - #[serde(rename = "attributes")] - #[serde(default)] - pub attributes: std::option::Option>, - ///

    The nextToken value to include in a future ListAttributes - /// request. When the results of a ListAttributes request exceed - /// maxResults, this value can be used to retrieve the next page of - /// results. This value is null when there are no more results to - /// return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAttributesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAttributesOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListClustersOutputBody { - ///

    The list of full Amazon Resource Name (ARN) entries for each cluster associated with your - /// account.

    - #[serde(rename = "clusterArns")] - #[serde(default)] - pub cluster_arns: std::option::Option>, - ///

    The nextToken value to include in a future ListClusters - /// request. When the results of a ListClusters request exceed - /// maxResults, this value can be used to retrieve the next page of - /// results. This value is null when there are no more results to - /// return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListClustersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListClustersOutputBody"); - formatter.field("cluster_arns", &self.cluster_arns); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContainerInstancesOutputBody { - ///

    The list of container instances with full ARN entries for each container instance - /// associated with the specified cluster.

    - #[serde(rename = "containerInstanceArns")] - #[serde(default)] - pub container_instance_arns: std::option::Option>, - ///

    The nextToken value to include in a future - /// ListContainerInstances request. When the results of a - /// ListContainerInstances request exceed maxResults, this - /// value can be used to retrieve the next page of results. This value is null - /// when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListContainerInstancesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContainerInstancesOutputBody"); - formatter.field("container_instance_arns", &self.container_instance_arns); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListServicesOutputBody { - ///

    The list of full ARN entries for each service associated with the specified - /// cluster.

    - #[serde(rename = "serviceArns")] - #[serde(default)] - pub service_arns: std::option::Option>, - ///

    The nextToken value to include in a future ListServices - /// request. When the results of a ListServices request exceed - /// maxResults, this value can be used to retrieve the next page of - /// results. This value is null when there are no more results to - /// return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListServicesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListServicesOutputBody"); - formatter.field("service_arns", &self.service_arns); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - ///

    The tags for the resource.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTaskDefinitionFamiliesOutputBody { - ///

    The list of task definition family names that match the - /// ListTaskDefinitionFamilies request.

    - #[serde(rename = "families")] - #[serde(default)] - pub families: std::option::Option>, - ///

    The nextToken value to include in a future - /// ListTaskDefinitionFamilies request. When the results of a - /// ListTaskDefinitionFamilies request exceed maxResults, this - /// value can be used to retrieve the next page of results. This value is null - /// when there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTaskDefinitionFamiliesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTaskDefinitionFamiliesOutputBody"); - formatter.field("families", &self.families); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTaskDefinitionsOutputBody { - ///

    The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions - /// request.

    - #[serde(rename = "taskDefinitionArns")] - #[serde(default)] - pub task_definition_arns: std::option::Option>, - ///

    The nextToken value to include in a future - /// ListTaskDefinitions request. When the results of a - /// ListTaskDefinitions request exceed maxResults, this value - /// can be used to retrieve the next page of results. This value is null when - /// there are no more results to return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTaskDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTaskDefinitionsOutputBody"); - formatter.field("task_definition_arns", &self.task_definition_arns); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTasksOutputBody { - ///

    The list of task ARN entries for the ListTasks request.

    - #[serde(rename = "taskArns")] - #[serde(default)] - pub task_arns: std::option::Option>, - ///

    The nextToken value to include in a future ListTasks - /// request. When the results of a ListTasks request exceed - /// maxResults, this value can be used to retrieve the next page of - /// results. This value is null when there are no more results to - /// return.

    - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTasksOutputBody"); - formatter.field("task_arns", &self.task_arns); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSettingOutputBody { - ///

    The current account setting for a resource.

    - #[serde(rename = "setting")] - #[serde(default)] - pub setting: std::option::Option, -} -impl std::fmt::Debug for PutAccountSettingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSettingOutputBody"); - formatter.field("setting", &self.setting); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSettingDefaultOutputBody { - ///

    The current setting for a resource.

    - #[serde(rename = "setting")] - #[serde(default)] - pub setting: std::option::Option, -} -impl std::fmt::Debug for PutAccountSettingDefaultOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSettingDefaultOutputBody"); - formatter.field("setting", &self.setting); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAttributesOutputBody { - ///

    The attributes applied to your resource.

    - #[serde(rename = "attributes")] - #[serde(default)] - pub attributes: std::option::Option>, -} -impl std::fmt::Debug for PutAttributesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAttributesOutputBody"); - formatter.field("attributes", &self.attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutClusterCapacityProvidersOutputBody { - ///

    Details about the cluster.

    - #[serde(rename = "cluster")] - #[serde(default)] - pub cluster: std::option::Option, -} -impl std::fmt::Debug for PutClusterCapacityProvidersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutClusterCapacityProvidersOutputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterContainerInstanceOutputBody { - ///

    The container instance that was registered.

    - #[serde(rename = "containerInstance")] - #[serde(default)] - pub container_instance: std::option::Option, -} -impl std::fmt::Debug for RegisterContainerInstanceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterContainerInstanceOutputBody"); - formatter.field("container_instance", &self.container_instance); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTaskDefinitionOutputBody { - ///

    The full description of the registered task definition.

    - #[serde(rename = "taskDefinition")] - #[serde(default)] - pub task_definition: std::option::Option, - ///

    The list of tags associated with the task definition.

    - #[serde(rename = "tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for RegisterTaskDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTaskDefinitionOutputBody"); - formatter.field("task_definition", &self.task_definition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RunTaskOutputBody { - ///

    A full description of the tasks that were run. The tasks that were successfully placed - /// on your cluster are described here.

    - #[serde(rename = "tasks")] - #[serde(default)] - pub tasks: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for RunTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RunTaskOutputBody"); - formatter.field("tasks", &self.tasks); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartTaskOutputBody { - ///

    A full description of the tasks that were started. Each task that was successfully - /// placed on your container instances is described.

    - #[serde(rename = "tasks")] - #[serde(default)] - pub tasks: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for StartTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartTaskOutputBody"); - formatter.field("tasks", &self.tasks); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopTaskOutputBody { - ///

    The task that was stopped.

    - #[serde(rename = "task")] - #[serde(default)] - pub task: std::option::Option, -} -impl std::fmt::Debug for StopTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopTaskOutputBody"); - formatter.field("task", &self.task); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitAttachmentStateChangesOutputBody { - ///

    Acknowledgement of the state change.

    - #[serde(rename = "acknowledgment")] - #[serde(default)] - pub acknowledgment: std::option::Option, -} -impl std::fmt::Debug for SubmitAttachmentStateChangesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitAttachmentStateChangesOutputBody"); - formatter.field("acknowledgment", &self.acknowledgment); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitContainerStateChangeOutputBody { - ///

    Acknowledgement of the state change.

    - #[serde(rename = "acknowledgment")] - #[serde(default)] - pub acknowledgment: std::option::Option, -} -impl std::fmt::Debug for SubmitContainerStateChangeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitContainerStateChangeOutputBody"); - formatter.field("acknowledgment", &self.acknowledgment); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubmitTaskStateChangeOutputBody { - ///

    Acknowledgement of the state change.

    - #[serde(rename = "acknowledgment")] - #[serde(default)] - pub acknowledgment: std::option::Option, -} -impl std::fmt::Debug for SubmitTaskStateChangeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubmitTaskStateChangeOutputBody"); - formatter.field("acknowledgment", &self.acknowledgment); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCapacityProviderOutputBody { - ///

    Details about the capacity provider.

    - #[serde(rename = "capacityProvider")] - #[serde(default)] - pub capacity_provider: std::option::Option, -} -impl std::fmt::Debug for UpdateCapacityProviderOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCapacityProviderOutputBody"); - formatter.field("capacity_provider", &self.capacity_provider); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClusterOutputBody { - ///

    Details about the cluster.

    - #[serde(rename = "cluster")] - #[serde(default)] - pub cluster: std::option::Option, -} -impl std::fmt::Debug for UpdateClusterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClusterOutputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateClusterSettingsOutputBody { - ///

    Details about the cluster

    - #[serde(rename = "cluster")] - #[serde(default)] - pub cluster: std::option::Option, -} -impl std::fmt::Debug for UpdateClusterSettingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateClusterSettingsOutputBody"); - formatter.field("cluster", &self.cluster); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContainerAgentOutputBody { - ///

    The container instance for which the container agent was updated.

    - #[serde(rename = "containerInstance")] - #[serde(default)] - pub container_instance: std::option::Option, -} -impl std::fmt::Debug for UpdateContainerAgentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContainerAgentOutputBody"); - formatter.field("container_instance", &self.container_instance); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContainerInstancesStateOutputBody { - ///

    The list of container instances.

    - #[serde(rename = "containerInstances")] - #[serde(default)] - pub container_instances: std::option::Option>, - ///

    Any failures associated with the call.

    - #[serde(rename = "failures")] - #[serde(default)] - pub failures: std::option::Option>, -} -impl std::fmt::Debug for UpdateContainerInstancesStateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContainerInstancesStateOutputBody"); - formatter.field("container_instances", &self.container_instances); - formatter.field("failures", &self.failures); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateServiceOutputBody { - ///

    The full description of your service following the update call.

    - #[serde(rename = "service")] - #[serde(default)] - pub service: std::option::Option, -} -impl std::fmt::Debug for UpdateServiceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateServiceOutputBody"); - formatter.field("service", &self.service); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateServicePrimaryTaskSetOutputBody { - ///

    Details about the task set.

    - #[serde(rename = "taskSet")] - #[serde(default)] - pub task_set: std::option::Option, -} -impl std::fmt::Debug for UpdateServicePrimaryTaskSetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateServicePrimaryTaskSetOutputBody"); - formatter.field("task_set", &self.task_set); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTaskSetOutputBody { - ///

    Details about the task set.

    - #[serde(rename = "taskSet")] - #[serde(default)] - pub task_set: std::option::Option, -} -impl std::fmt::Debug for UpdateTaskSetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTaskSetOutputBody"); - formatter.field("task_set", &self.task_set); - formatter.finish() - } -} diff --git a/sdk/eks/Cargo.toml b/sdk/eks/Cargo.toml new file mode 100644 index 000000000000..0028792dde30 --- /dev/null +++ b/sdk/eks/Cargo.toml @@ -0,0 +1,41 @@ +# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +[package] +name = "aws-sdk-eks" +version = "0.0.10-alpha" +description = "

    Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on\n AWS without needing to stand up or maintain your own Kubernetes control plane.\n Kubernetes is an open-source system for automating the deployment, scaling, and\n management of containerized applications.

    \n

    Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so you can use\n all the existing plugins and tooling from the Kubernetes community. Applications running\n on Amazon EKS are fully compatible with applications running on any standard Kubernetes\n environment, whether running in on-premises data centers or public clouds. This means\n that you can easily migrate any standard Kubernetes application to Amazon EKS without any\n code modification required.

    " +authors = ["AWS Rust SDK Team ", "Russell Cohen "] +license = "Apache-2.0" +edition = "2018" +[dependencies.aws-endpoint] +path = "..//aws-endpoint" +[dependencies.aws-hyper] +path = "..//aws-hyper" +features = ["test-util"] +optional = true +[dependencies.smithy-http] +path = "..//smithy-http" +[dependencies.fastrand] +version = "1" +[dependencies.aws-types] +path = "..//aws-types" +[dependencies.aws-auth] +path = "..//aws-auth" +[dependencies.smithy-types] +path = "..//smithy-types" +[dependencies.aws-http] +path = "..//aws-http" +[dependencies.aws-sig-auth] +path = "..//aws-sig-auth" +[dependencies.http] +version = "0.2" +[dependencies.bytes] +version = "1" +[dependencies.smithy-json] +path = "..//smithy-json" +[features] +client = ["aws-hyper"] +rustls = ["aws-hyper/rustls"] +native-tls = ["aws-hyper/native-tls"] +default = ["client", "rustls"] + + diff --git a/sdk/eks/LICENSE b/sdk/eks/LICENSE new file mode 100644 index 000000000000..3581ac356771 --- /dev/null +++ b/sdk/eks/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/sdk/sagemakerruntime/src/aws_endpoint.rs b/sdk/eks/src/aws_endpoint.rs similarity index 73% rename from sdk/sagemakerruntime/src/aws_endpoint.rs rename to sdk/eks/src/aws_endpoint.rs index b3883c1fe943..a6306668702d 100644 --- a/sdk/sagemakerruntime/src/aws_endpoint.rs +++ b/sdk/eks/src/aws_endpoint.rs @@ -5,16 +5,16 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { .id("aws") .region_regex(r#"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"#) .default_endpoint(aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime.sagemaker.{region}.amazonaws.com", + uri_template: "eks.{region}.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder().build(), }) .regionalized(aws_endpoint::partition::Regionalized::Regionalized) .endpoint( - "us-east-1-fips", + "fips-us-east-1", aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime-fips.sagemaker.us-east-1.amazonaws.com", + uri_template: "fips.eks.us-east-1.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder() @@ -23,9 +23,9 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { }, ) .endpoint( - "us-east-2-fips", + "fips-us-east-2", aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime-fips.sagemaker.us-east-2.amazonaws.com", + uri_template: "fips.eks.us-east-2.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder() @@ -34,9 +34,9 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { }, ) .endpoint( - "us-west-1-fips", + "fips-us-west-1", aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime-fips.sagemaker.us-west-1.amazonaws.com", + uri_template: "fips.eks.us-west-1.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder() @@ -45,9 +45,9 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { }, ) .endpoint( - "us-west-2-fips", + "fips-us-west-2", aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime-fips.sagemaker.us-west-2.amazonaws.com", + uri_template: "fips.eks.us-west-2.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder() @@ -62,7 +62,7 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { .id("aws-cn") .region_regex(r#"^cn\-\w+\-\d+$"#) .default_endpoint(aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime.sagemaker.{region}.amazonaws.com.cn", + uri_template: "eks.{region}.amazonaws.com.cn", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder().build(), @@ -74,7 +74,7 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { .id("aws-iso") .region_regex(r#"^us\-iso\-\w+\-\d+$"#) .default_endpoint(aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime.sagemaker.{region}.c2s.ic.gov", + uri_template: "eks.{region}.c2s.ic.gov", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder().build(), @@ -86,7 +86,7 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { .id("aws-iso-b") .region_regex(r#"^us\-isob\-\w+\-\d+$"#) .default_endpoint(aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime.sagemaker.{region}.sc2s.sgov.gov", + uri_template: "eks.{region}.sc2s.sgov.gov", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder().build(), @@ -98,12 +98,34 @@ pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint { .id("aws-us-gov") .region_regex(r#"^us\-gov\-\w+\-\d+$"#) .default_endpoint(aws_endpoint::partition::endpoint::Metadata { - uri_template: "runtime.sagemaker.{region}.amazonaws.com", + uri_template: "eks.{region}.amazonaws.com", protocol: aws_endpoint::partition::endpoint::Protocol::Https, signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, credential_scope: aws_endpoint::CredentialScope::builder().build(), }) .regionalized(aws_endpoint::partition::Regionalized::Regionalized) + .endpoint( + "fips-us-gov-east-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "eks.us-gov-east-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-east-1") + .build(), + }, + ) + .endpoint( + "fips-us-gov-west-1", + aws_endpoint::partition::endpoint::Metadata { + uri_template: "eks.us-gov-west-1.amazonaws.com", + protocol: aws_endpoint::partition::endpoint::Protocol::Https, + signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4, + credential_scope: aws_endpoint::CredentialScope::builder() + .region("us-gov-west-1") + .build(), + }, + ) .build() .expect("invalid partition"), ], diff --git a/sdk/eks/src/client.rs b/sdk/eks/src/client.rs new file mode 100644 index 000000000000..361d54b55754 --- /dev/null +++ b/sdk/eks/src/client.rs @@ -0,0 +1,2782 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[derive(std::fmt::Debug)] +pub(crate) struct Handle { + client: aws_hyper::Client, + conf: crate::Config, +} + +#[derive(Clone, std::fmt::Debug)] +pub struct Client { + handle: std::sync::Arc>, +} +impl Client { + pub fn from_conf_conn(conf: crate::Config, conn: C) -> Self { + let client = aws_hyper::Client::new(conn); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } + + pub fn conf(&self) -> &crate::Config { + &self.handle.conf + } +} +impl Client { + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_env() -> Self { + Self::from_conf(crate::Config::builder().build()) + } + + #[cfg(any(feature = "rustls", feature = "native-tls"))] + pub fn from_conf(conf: crate::Config) -> Self { + let client = aws_hyper::Client::https(); + Self { + handle: std::sync::Arc::new(Handle { client, conf }), + } + } +} +impl Client +where + C: aws_hyper::SmithyConnector, +{ + pub fn associate_encryption_config(&self) -> fluent_builders::AssociateEncryptionConfig { + fluent_builders::AssociateEncryptionConfig::new(self.handle.clone()) + } + pub fn associate_identity_provider_config( + &self, + ) -> fluent_builders::AssociateIdentityProviderConfig { + fluent_builders::AssociateIdentityProviderConfig::new(self.handle.clone()) + } + pub fn create_addon(&self) -> fluent_builders::CreateAddon { + fluent_builders::CreateAddon::new(self.handle.clone()) + } + pub fn create_cluster(&self) -> fluent_builders::CreateCluster { + fluent_builders::CreateCluster::new(self.handle.clone()) + } + pub fn create_fargate_profile(&self) -> fluent_builders::CreateFargateProfile { + fluent_builders::CreateFargateProfile::new(self.handle.clone()) + } + pub fn create_nodegroup(&self) -> fluent_builders::CreateNodegroup { + fluent_builders::CreateNodegroup::new(self.handle.clone()) + } + pub fn delete_addon(&self) -> fluent_builders::DeleteAddon { + fluent_builders::DeleteAddon::new(self.handle.clone()) + } + pub fn delete_cluster(&self) -> fluent_builders::DeleteCluster { + fluent_builders::DeleteCluster::new(self.handle.clone()) + } + pub fn delete_fargate_profile(&self) -> fluent_builders::DeleteFargateProfile { + fluent_builders::DeleteFargateProfile::new(self.handle.clone()) + } + pub fn delete_nodegroup(&self) -> fluent_builders::DeleteNodegroup { + fluent_builders::DeleteNodegroup::new(self.handle.clone()) + } + pub fn describe_addon(&self) -> fluent_builders::DescribeAddon { + fluent_builders::DescribeAddon::new(self.handle.clone()) + } + pub fn describe_addon_versions(&self) -> fluent_builders::DescribeAddonVersions { + fluent_builders::DescribeAddonVersions::new(self.handle.clone()) + } + pub fn describe_cluster(&self) -> fluent_builders::DescribeCluster { + fluent_builders::DescribeCluster::new(self.handle.clone()) + } + pub fn describe_fargate_profile(&self) -> fluent_builders::DescribeFargateProfile { + fluent_builders::DescribeFargateProfile::new(self.handle.clone()) + } + pub fn describe_identity_provider_config( + &self, + ) -> fluent_builders::DescribeIdentityProviderConfig { + fluent_builders::DescribeIdentityProviderConfig::new(self.handle.clone()) + } + pub fn describe_nodegroup(&self) -> fluent_builders::DescribeNodegroup { + fluent_builders::DescribeNodegroup::new(self.handle.clone()) + } + pub fn describe_update(&self) -> fluent_builders::DescribeUpdate { + fluent_builders::DescribeUpdate::new(self.handle.clone()) + } + pub fn disassociate_identity_provider_config( + &self, + ) -> fluent_builders::DisassociateIdentityProviderConfig { + fluent_builders::DisassociateIdentityProviderConfig::new(self.handle.clone()) + } + pub fn list_addons(&self) -> fluent_builders::ListAddons { + fluent_builders::ListAddons::new(self.handle.clone()) + } + pub fn list_clusters(&self) -> fluent_builders::ListClusters { + fluent_builders::ListClusters::new(self.handle.clone()) + } + pub fn list_fargate_profiles(&self) -> fluent_builders::ListFargateProfiles { + fluent_builders::ListFargateProfiles::new(self.handle.clone()) + } + pub fn list_identity_provider_configs( + &self, + ) -> fluent_builders::ListIdentityProviderConfigs { + fluent_builders::ListIdentityProviderConfigs::new(self.handle.clone()) + } + pub fn list_nodegroups(&self) -> fluent_builders::ListNodegroups { + fluent_builders::ListNodegroups::new(self.handle.clone()) + } + pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource { + fluent_builders::ListTagsForResource::new(self.handle.clone()) + } + pub fn list_updates(&self) -> fluent_builders::ListUpdates { + fluent_builders::ListUpdates::new(self.handle.clone()) + } + pub fn tag_resource(&self) -> fluent_builders::TagResource { + fluent_builders::TagResource::new(self.handle.clone()) + } + pub fn untag_resource(&self) -> fluent_builders::UntagResource { + fluent_builders::UntagResource::new(self.handle.clone()) + } + pub fn update_addon(&self) -> fluent_builders::UpdateAddon { + fluent_builders::UpdateAddon::new(self.handle.clone()) + } + pub fn update_cluster_config(&self) -> fluent_builders::UpdateClusterConfig { + fluent_builders::UpdateClusterConfig::new(self.handle.clone()) + } + pub fn update_cluster_version(&self) -> fluent_builders::UpdateClusterVersion { + fluent_builders::UpdateClusterVersion::new(self.handle.clone()) + } + pub fn update_nodegroup_config(&self) -> fluent_builders::UpdateNodegroupConfig { + fluent_builders::UpdateNodegroupConfig::new(self.handle.clone()) + } + pub fn update_nodegroup_version(&self) -> fluent_builders::UpdateNodegroupVersion { + fluent_builders::UpdateNodegroupVersion::new(self.handle.clone()) + } +} +pub mod fluent_builders { + #[derive(std::fmt::Debug)] + pub struct AssociateEncryptionConfig { + handle: std::sync::Arc>, + inner: crate::input::associate_encryption_config_input::Builder, + } + impl AssociateEncryptionConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::AssociateEncryptionConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster that you are associating with encryption configuration.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The configuration you are using for encryption.

    + pub fn encryption_config(mut self, inp: impl Into) -> Self { + self.inner = self.inner.encryption_config(inp); + self + } + pub fn set_encryption_config( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_encryption_config(input); + self + } + ///

    The client request token you are using with the encryption configuration.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct AssociateIdentityProviderConfig { + handle: std::sync::Arc>, + inner: crate::input::associate_identity_provider_config_input::Builder, + } + impl AssociateIdentityProviderConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::AssociateIdentityProviderConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to associate the configuration to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    An object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub fn oidc(mut self, input: crate::model::OidcIdentityProviderConfigRequest) -> Self { + self.inner = self.inner.oidc(input); + self + } + pub fn set_oidc( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_oidc(input); + self + } + ///

    The metadata to apply to the configuration to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CreateAddon { + handle: std::sync::Arc>, + inner: crate::input::create_addon_input::Builder, + } + impl CreateAddon { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CreateAddonOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to create the add-on for.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_version(input); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_addon_version(input); + self + } + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub fn service_account_role_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.service_account_role_arn(input); + self + } + pub fn set_service_account_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_service_account_role_arn(input); + self + } + ///

    How to resolve parameter value conflicts when migrating an existing add-on to an Amazon EKS + /// add-on.

    + pub fn resolve_conflicts(mut self, input: crate::model::ResolveConflicts) -> Self { + self.inner = self.inner.resolve_conflicts(input); + self + } + pub fn set_resolve_conflicts( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_resolve_conflicts(input); + self + } + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + ///

    The metadata to apply to the cluster to assist with categorization and organization. + /// Each tag consists of a key and an optional value, both of which you define.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CreateCluster { + handle: std::sync::Arc>, + inner: crate::input::create_cluster_input::Builder, + } + impl CreateCluster { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CreateClusterOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The unique name to give to your cluster.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    The desired Kubernetes version for your cluster. If you don't specify a value here, + /// the latest version available in Amazon EKS is used.

    + pub fn version(mut self, input: impl Into) -> Self { + self.inner = self.inner.version(input); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_version(input); + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control + /// plane to make calls to AWS API operations on your behalf. For more information, see + /// Amazon EKS + /// Service IAM Role in the + /// Amazon EKS User Guide + /// .

    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.role_arn(input); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_role_arn(input); + self + } + ///

    The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have + /// specific requirements to work properly with Kubernetes. For more information, see Cluster VPC + /// Considerations and Cluster Security Group Considerations in the + /// Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five + /// security groups, but we recommend that you use a dedicated security group for your + /// cluster control plane.

    + pub fn resources_vpc_config(mut self, input: crate::model::VpcConfigRequest) -> Self { + self.inner = self.inner.resources_vpc_config(input); + self + } + pub fn set_resources_vpc_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_resources_vpc_config(input); + self + } + ///

    The Kubernetes network configuration for the cluster.

    + pub fn kubernetes_network_config( + mut self, + input: crate::model::KubernetesNetworkConfigRequest, + ) -> Self { + self.inner = self.inner.kubernetes_network_config(input); + self + } + pub fn set_kubernetes_network_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_kubernetes_network_config(input); + self + } + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub fn logging(mut self, input: crate::model::Logging) -> Self { + self.inner = self.inner.logging(input); + self + } + pub fn set_logging(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_logging(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + ///

    The metadata to apply to the cluster to assist with categorization and organization. + /// Each tag consists of a key and an optional value, both of which you define.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

    The encryption configuration for the cluster.

    + pub fn encryption_config(mut self, inp: impl Into) -> Self { + self.inner = self.inner.encryption_config(inp); + self + } + pub fn set_encryption_config( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_encryption_config(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CreateFargateProfile { + handle: std::sync::Arc>, + inner: crate::input::create_fargate_profile_input::Builder, + } + impl CreateFargateProfile { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CreateFargateProfileOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Fargate profile.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.fargate_profile_name(input); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_fargate_profile_name(input); + self + } + ///

    The name of the Amazon EKS cluster to apply the Fargate profile to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in + /// the Fargate profile. The pod execution role allows Fargate infrastructure to register with + /// your cluster as a node, and it provides read access to Amazon ECR image repositories. For + /// more information, see Pod Execution Role in the + /// Amazon EKS User Guide.

    + pub fn pod_execution_role_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.pod_execution_role_arn(input); + self + } + pub fn set_pod_execution_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_pod_execution_role_arn(input); + self + } + ///

    The IDs of subnets to launch your pods into. At this time, pods running on Fargate are + /// not assigned public IP addresses, so only private subnets (with no direct route to an + /// Internet Gateway) are accepted for this parameter.

    + pub fn subnets(mut self, inp: impl Into) -> Self { + self.inner = self.inner.subnets(inp); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_subnets(input); + self + } + ///

    The selectors to match for pods to use this Fargate profile. Each selector must have an + /// associated namespace. Optionally, you can also specify labels for a namespace. You may + /// specify up to five selectors in a Fargate profile.

    + pub fn selectors(mut self, inp: impl Into) -> Self { + self.inner = self.inner.selectors(inp); + self + } + pub fn set_selectors( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_selectors(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + ///

    The metadata to apply to the Fargate profile to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Fargate profile tags do not propagate to any other resources associated with the + /// Fargate profile, such as the pods that are scheduled with it.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct CreateNodegroup { + handle: std::sync::Arc>, + inner: crate::input::create_nodegroup_input::Builder, + } + impl CreateNodegroup { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::CreateNodegroupOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to create the node group in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The unique name to give your node group.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + ///

    The scaling configuration details for the Auto Scaling group that is created for your + /// node group.

    + pub fn scaling_config(mut self, input: crate::model::NodegroupScalingConfig) -> Self { + self.inner = self.inner.scaling_config(input); + self + } + pub fn set_scaling_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_scaling_config(input); + self + } + ///

    The root device disk size (in GiB) for your node group instances. The default disk + /// size is 20 GiB. If you specify launchTemplate, then don't specify diskSize, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn disk_size(mut self, input: i32) -> Self { + self.inner = self.inner.disk_size(input); + self + } + pub fn set_disk_size(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_disk_size(input); + self + } + ///

    The subnets to use for the Auto Scaling group that is created for your node group. + /// If you specify launchTemplate, then don't specify + /// SubnetId + /// in your launch template, or the node group + /// deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn subnets(mut self, inp: impl Into) -> Self { + self.inner = self.inner.subnets(inp); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_subnets(input); + self + } + ///

    Specify the instance types for a node group. If you specify a GPU instance type, be + /// sure to specify AL2_x86_64_GPU with the amiType parameter. If + /// you specify launchTemplate, then you can specify zero or one instance type + /// in your launch template or you can specify 0-20 instance types for + /// instanceTypes. If however, you specify an instance type in your launch + /// template and specify any instanceTypes, the node group + /// deployment will fail. If you don't specify an instance type in a launch template or for + /// instanceTypes, then t3.medium is used, by default. If you + /// specify Spot for capacityType, then we recommend specifying + /// multiple values for instanceTypes. For more information, see Managed node group capacity types and Launch template support in + /// the Amazon EKS User Guide.

    + pub fn instance_types(mut self, inp: impl Into) -> Self { + self.inner = self.inner.instance_types(inp); + self + } + pub fn set_instance_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_instance_types(input); + self + } + ///

    The AMI type for your node group. GPU instance types should use the + /// AL2_x86_64_GPU AMI type. Non-GPU instances should use the + /// AL2_x86_64 AMI type. Arm instances should use the + /// AL2_ARM_64 AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn ami_type(mut self, input: crate::model::AmiTypes) -> Self { + self.inner = self.inner.ami_type(input); + self + } + pub fn set_ami_type(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_ami_type(input); + self + } + ///

    The remote access (SSH) configuration to use with your node group. If you specify launchTemplate, + /// then don't specify remoteAccess, or the node group deployment + /// will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn remote_access(mut self, input: crate::model::RemoteAccessConfig) -> Self { + self.inner = self.inner.remote_access(input); + self + } + pub fn set_remote_access( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_remote_access(input); + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker + /// node kubelet daemon makes calls to AWS APIs on your behalf. Nodes receive + /// permissions for these API calls through an IAM instance profile and associated + /// policies. Before you can launch nodes and register them into a cluster, you must create + /// an IAM role for those nodes to use when they are launched. For more information, see + /// Amazon EKS node IAM role in the + /// Amazon EKS User Guide + /// . + /// If you specify launchTemplate, then don't specify + /// IamInstanceProfile + /// in your launch template, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn node_role(mut self, input: impl Into) -> Self { + self.inner = self.inner.node_role(input); + self + } + pub fn set_node_role(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_node_role(input); + self + } + ///

    The Kubernetes labels to be applied to the nodes in the node group when they are + /// created.

    + pub fn labels( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.labels(k, v); + self + } + pub fn set_labels( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_labels(input); + self + } + ///

    The Kubernetes taints to be applied to the nodes in the node group.

    + pub fn taints(mut self, inp: impl Into) -> Self { + self.inner = self.inner.taints(inp); + self + } + pub fn set_taints( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_taints(input); + self + } + ///

    The metadata to apply to the node group to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Node group tags do not propagate to any other resources associated with the node + /// group, such as the Amazon EC2 instances or subnets.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + ///

    An object representing a node group's launch template specification. If specified, + /// then do not specify instanceTypes, diskSize, or + /// remoteAccess and make sure that the launch template meets the + /// requirements in launchTemplateSpecification.

    + pub fn launch_template(mut self, input: crate::model::LaunchTemplateSpecification) -> Self { + self.inner = self.inner.launch_template(input); + self + } + pub fn set_launch_template( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_launch_template(input); + self + } + pub fn update_config(mut self, input: crate::model::NodegroupUpdateConfig) -> Self { + self.inner = self.inner.update_config(input); + self + } + pub fn set_update_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_update_config(input); + self + } + ///

    The capacity type for your node group.

    + pub fn capacity_type(mut self, input: crate::model::CapacityTypes) -> Self { + self.inner = self.inner.capacity_type(input); + self + } + pub fn set_capacity_type( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_capacity_type(input); + self + } + ///

    The Kubernetes version to use for your managed nodes. By default, the Kubernetes + /// version of the cluster is used, and this is the only accepted specified value. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify version, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn version(mut self, input: impl Into) -> Self { + self.inner = self.inner.version(input); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_version(input); + self + } + ///

    The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, + /// the latest available AMI version for the node group's current Kubernetes version is + /// used. For more information, see Amazon EKS + /// optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify launchTemplate, + /// and your launch template uses a custom AMI, then don't specify releaseVersion, or the node group + /// deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn release_version(mut self, input: impl Into) -> Self { + self.inner = self.inner.release_version(input); + self + } + pub fn set_release_version( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_release_version(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteAddon { + handle: std::sync::Arc>, + inner: crate::input::delete_addon_input::Builder, + } + impl DeleteAddon { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteAddonOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to delete the add-on from.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteCluster { + handle: std::sync::Arc>, + inner: crate::input::delete_cluster_input::Builder, + } + impl DeleteCluster { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteClusterOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to delete.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteFargateProfile { + handle: std::sync::Arc>, + inner: crate::input::delete_fargate_profile_input::Builder, + } + impl DeleteFargateProfile { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteFargateProfileOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster associated with the Fargate profile to delete.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the Fargate profile to delete.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.fargate_profile_name(input); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_fargate_profile_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DeleteNodegroup { + handle: std::sync::Arc>, + inner: crate::input::delete_nodegroup_input::Builder, + } + impl DeleteNodegroup { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DeleteNodegroupOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster that is associated with your node group.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the node group to delete.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAddon { + handle: std::sync::Arc>, + inner: crate::input::describe_addon_input::Builder, + } + impl DescribeAddon { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAddonOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeAddonVersions { + handle: std::sync::Arc>, + inner: crate::input::describe_addon_versions_input::Builder, + } + impl DescribeAddonVersions { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeAddonVersionsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The Kubernetes versions that the add-on can be used with.

    + pub fn kubernetes_version(mut self, input: impl Into) -> Self { + self.inner = self.inner.kubernetes_version(input); + self + } + pub fn set_kubernetes_version( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_kubernetes_version(input); + self + } + ///

    The maximum number of results to return.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// DescribeAddonVersionsRequest where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeCluster { + handle: std::sync::Arc>, + inner: crate::input::describe_cluster_input::Builder, + } + impl DescribeCluster { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeClusterOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to describe.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeFargateProfile { + handle: std::sync::Arc>, + inner: crate::input::describe_fargate_profile_input::Builder, + } + impl DescribeFargateProfile { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeFargateProfileOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster associated with the Fargate profile.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the Fargate profile to describe.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.fargate_profile_name(input); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_fargate_profile_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeIdentityProviderConfig { + handle: std::sync::Arc>, + inner: crate::input::describe_identity_provider_config_input::Builder, + } + impl DescribeIdentityProviderConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeIdentityProviderConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The cluster name that the identity provider configuration is associated to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    An object that represents an identity provider configuration.

    + pub fn identity_provider_config( + mut self, + input: crate::model::IdentityProviderConfig, + ) -> Self { + self.inner = self.inner.identity_provider_config(input); + self + } + pub fn set_identity_provider_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_identity_provider_config(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeNodegroup { + handle: std::sync::Arc>, + inner: crate::input::describe_nodegroup_input::Builder, + } + impl DescribeNodegroup { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeNodegroupOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster associated with the node group.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the node group to describe.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DescribeUpdate { + handle: std::sync::Arc>, + inner: crate::input::describe_update_input::Builder, + } + impl DescribeUpdate { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DescribeUpdateOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster associated with the update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    The ID of the update to describe.

    + pub fn update_id(mut self, input: impl Into) -> Self { + self.inner = self.inner.update_id(input); + self + } + pub fn set_update_id(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_update_id(input); + self + } + ///

    The name of the Amazon EKS node group associated with the update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct DisassociateIdentityProviderConfig { + handle: std::sync::Arc>, + inner: crate::input::disassociate_identity_provider_config_input::Builder, + } + impl DisassociateIdentityProviderConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::DisassociateIdentityProviderConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster to disassociate an identity provider from.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    An object that represents an identity provider configuration.

    + pub fn identity_provider_config( + mut self, + input: crate::model::IdentityProviderConfig, + ) -> Self { + self.inner = self.inner.identity_provider_config(input); + self + } + pub fn set_identity_provider_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_identity_provider_config(input); + self + } + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListAddons { + handle: std::sync::Arc>, + inner: crate::input::list_addons_input::Builder, + } + impl ListAddons { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListAddonsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The maximum number of add-on results returned by ListAddonsRequest in + /// paginated output. When you use this parameter, ListAddonsRequest returns + /// only maxResults results in a single page along with a + /// nextToken response element. You can see the remaining results of the + /// initial request by sending another ListAddonsRequest request with the + /// returned nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, ListAddonsRequest + /// returns up to 100 results and a nextToken value, if + /// applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// ListAddonsRequest where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListClusters { + handle: std::sync::Arc>, + inner: crate::input::list_clusters_input::Builder, + } + impl ListClusters { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListClustersOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The maximum number of cluster results returned by ListClusters in + /// paginated output. When you use this parameter, ListClusters returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListClusters request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListClusters returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// ListClusters request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListFargateProfiles { + handle: std::sync::Arc>, + inner: crate::input::list_fargate_profiles_input::Builder, + } + impl ListFargateProfiles { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListFargateProfilesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster that you would like to listFargate profiles in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The maximum number of Fargate profile results returned by + /// ListFargateProfiles in paginated output. When you use this parameter, + /// ListFargateProfiles returns only maxResults results in a + /// single page along with a nextToken response element. You can see the + /// remaining results of the initial request by sending another + /// ListFargateProfiles request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListFargateProfiles returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// ListFargateProfiles request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListIdentityProviderConfigs { + handle: std::sync::Arc>, + inner: crate::input::list_identity_provider_configs_input::Builder, + } + impl ListIdentityProviderConfigs { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListIdentityProviderConfigsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The cluster name that you want to list identity provider configurations for.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The maximum number of identity provider configurations returned by + /// ListIdentityProviderConfigs in paginated output. When you use this + /// parameter, ListIdentityProviderConfigs returns only maxResults + /// results in a single page along with a nextToken response element. You can + /// see the remaining results of the initial request by sending another + /// ListIdentityProviderConfigs request with the returned + /// nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, + /// ListIdentityProviderConfigs returns up to 100 results + /// and a nextToken value, if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// IdentityProviderConfigsRequest where maxResults was used + /// and the results exceeded the value of that parameter. Pagination continues from the end + /// of the previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListNodegroups { + handle: std::sync::Arc>, + inner: crate::input::list_nodegroups_input::Builder, + } + impl ListNodegroups { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListNodegroupsOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster that you would like to list node groups in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The maximum number of node group results returned by ListNodegroups in + /// paginated output. When you use this parameter, ListNodegroups returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListNodegroups request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListNodegroups returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// ListNodegroups request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListTagsForResource { + handle: std::sync::Arc>, + inner: crate::input::list_tags_for_resource_input::Builder, + } + impl ListTagsForResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// supported resources are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct ListUpdates { + handle: std::sync::Arc>, + inner: crate::input::list_updates_input::Builder, + } + impl ListUpdates { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::ListUpdatesOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster to list updates for.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    The name of the Amazon EKS managed node group to list updates for.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + ///

    The names of the installed add-ons that have available updates.

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + ///

    The nextToken value returned from a previous paginated + /// ListUpdates request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.next_token(input); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_next_token(input); + self + } + ///

    The maximum number of update results returned by ListUpdates in paginated + /// output. When you use this parameter, ListUpdates returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListUpdates request with the returned nextToken value. + /// This value can be between 1 and 100. If you don't use this + /// parameter, ListUpdates returns up to 100 results and a + /// nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_max_results(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct TagResource { + handle: std::sync::Arc>, + inner: crate::input::tag_resource_input::Builder, + } + impl TagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::TagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources + /// are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

    The tags to add to the resource. A tag is an array of key-value pairs.

    + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + self.inner = self.inner.tags(k, v); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.inner = self.inner.set_tags(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UntagResource { + handle: std::sync::Arc>, + inner: crate::input::untag_resource_input::Builder, + } + impl UntagResource { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UntagResourceOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported + /// resources are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.resource_arn(input); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

    The keys of the tags to be removed.

    + pub fn tag_keys(mut self, inp: impl Into) -> Self { + self.inner = self.inner.tag_keys(inp); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.inner = self.inner.set_tag_keys(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UpdateAddon { + handle: std::sync::Arc>, + inner: crate::input::update_addon_input::Builder, + } + impl UpdateAddon { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UpdateAddonOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_name(input); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_addon_name(input); + self + } + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.inner = self.inner.addon_version(input); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_addon_version(input); + self + } + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub fn service_account_role_arn(mut self, input: impl Into) -> Self { + self.inner = self.inner.service_account_role_arn(input); + self + } + pub fn set_service_account_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_service_account_role_arn(input); + self + } + ///

    How to resolve parameter value conflicts when applying the new version of the add-on + /// to the cluster.

    + pub fn resolve_conflicts(mut self, input: crate::model::ResolveConflicts) -> Self { + self.inner = self.inner.resolve_conflicts(input); + self + } + pub fn set_resolve_conflicts( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_resolve_conflicts(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UpdateClusterConfig { + handle: std::sync::Arc>, + inner: crate::input::update_cluster_config_input::Builder, + } + impl UpdateClusterConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UpdateClusterConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster to update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    An object representing the VPC configuration to use for an Amazon EKS cluster.

    + pub fn resources_vpc_config(mut self, input: crate::model::VpcConfigRequest) -> Self { + self.inner = self.inner.resources_vpc_config(input); + self + } + pub fn set_resources_vpc_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_resources_vpc_config(input); + self + } + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub fn logging(mut self, input: crate::model::Logging) -> Self { + self.inner = self.inner.logging(input); + self + } + pub fn set_logging(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_logging(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UpdateClusterVersion { + handle: std::sync::Arc>, + inner: crate::input::update_cluster_version_input::Builder, + } + impl UpdateClusterVersion { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UpdateClusterVersionOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster to update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.inner = self.inner.name(input); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_name(input); + self + } + ///

    The desired Kubernetes version following a successful update.

    + pub fn version(mut self, input: impl Into) -> Self { + self.inner = self.inner.version(input); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_version(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UpdateNodegroupConfig { + handle: std::sync::Arc>, + inner: crate::input::update_nodegroup_config_input::Builder, + } + impl UpdateNodegroupConfig { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UpdateNodegroupConfigOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster that the managed node group resides in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the managed node group to update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + ///

    The Kubernetes labels to be applied to the nodes in the node group after the + /// update.

    + pub fn labels(mut self, input: crate::model::UpdateLabelsPayload) -> Self { + self.inner = self.inner.labels(input); + self + } + pub fn set_labels( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_labels(input); + self + } + ///

    The Kubernetes taints to be applied to the nodes in the node group after the + /// update.

    + pub fn taints(mut self, input: crate::model::UpdateTaintsPayload) -> Self { + self.inner = self.inner.taints(input); + self + } + pub fn set_taints( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_taints(input); + self + } + ///

    The scaling configuration details for the Auto Scaling group after the update.

    + pub fn scaling_config(mut self, input: crate::model::NodegroupScalingConfig) -> Self { + self.inner = self.inner.scaling_config(input); + self + } + pub fn set_scaling_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_scaling_config(input); + self + } + pub fn update_config(mut self, input: crate::model::NodegroupUpdateConfig) -> Self { + self.inner = self.inner.update_config(input); + self + } + pub fn set_update_config( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_update_config(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } + #[derive(std::fmt::Debug)] + pub struct UpdateNodegroupVersion { + handle: std::sync::Arc>, + inner: crate::input::update_nodegroup_version_input::Builder, + } + impl UpdateNodegroupVersion { + pub(crate) fn new(handle: std::sync::Arc>) -> Self { + Self { + handle, + inner: Default::default(), + } + } + + pub async fn send( + self, + ) -> std::result::Result< + crate::output::UpdateNodegroupVersionOutput, + smithy_http::result::SdkError, + > + where + C: aws_hyper::SmithyConnector, + { + let input = self + .inner + .build() + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + let op = input + .make_operation(&self.handle.conf) + .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; + self.handle.client.call(op).await + } + ///

    The name of the Amazon EKS cluster that is associated with the managed node group to + /// update.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.cluster_name(input); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_cluster_name(input); + self + } + ///

    The name of the managed node group to update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.inner = self.inner.nodegroup_name(input); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_nodegroup_name(input); + self + } + ///

    The Kubernetes version to update to. If no version is specified, then the Kubernetes + /// version of the node group does not change. You can specify the Kubernetes version of the + /// cluster to update the node group to the latest AMI version of the cluster's Kubernetes + /// version. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// version, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn version(mut self, input: impl Into) -> Self { + self.inner = self.inner.version(input); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_version(input); + self + } + ///

    The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the + /// latest available AMI version for the node group's Kubernetes version is used. For more + /// information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the + /// Amazon EKS User Guide. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// releaseVersion, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn release_version(mut self, input: impl Into) -> Self { + self.inner = self.inner.release_version(input); + self + } + pub fn set_release_version( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_release_version(input); + self + } + ///

    An object representing a node group's launch template specification. You can only + /// update a node group using a launch template if the node group was originally deployed + /// with a launch template.

    + pub fn launch_template(mut self, input: crate::model::LaunchTemplateSpecification) -> Self { + self.inner = self.inner.launch_template(input); + self + } + pub fn set_launch_template( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_launch_template(input); + self + } + ///

    Force the update if the existing node group's pods are unable to be drained due to a + /// pod disruption budget issue. If an update fails because pods could not be drained, you + /// can force the update after it fails to terminate the old node whether or not any pods + /// are running on the node.

    + pub fn force(mut self, input: bool) -> Self { + self.inner = self.inner.force(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.inner = self.inner.set_force(input); + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.inner = self.inner.client_request_token(input); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.inner = self.inner.set_client_request_token(input); + self + } + } +} diff --git a/sdk/eks/src/config.rs b/sdk/eks/src/config.rs new file mode 100644 index 000000000000..37838c0048e1 --- /dev/null +++ b/sdk/eks/src/config.rs @@ -0,0 +1,81 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub struct Config { + pub(crate) make_token: Box, + pub(crate) endpoint_resolver: ::std::sync::Arc, + pub(crate) region: Option, + pub(crate) credentials_provider: std::sync::Arc, +} +impl std::fmt::Debug for Config { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut config = f.debug_struct("Config"); + config.finish() + } +} +impl Config { + pub fn builder() -> Builder { + Builder::default() + } + /// The signature version 4 service signing name to use in the credential scope when signing requests. + /// + /// The signing service may be overidden by the `Endpoint`, or by specifying a custom [`SigningService`](aws_types::SigningService) during + /// operation construction + pub fn signing_service(&self) -> &'static str { + "eks" + } +} +#[derive(Default)] +pub struct Builder { + make_token: Option>, + endpoint_resolver: Option<::std::sync::Arc>, + region: Option, + credentials_provider: Option>, +} +impl Builder { + pub fn new() -> Self { + Self::default() + } + pub fn make_token( + mut self, + make_token: impl crate::idempotency_token::MakeIdempotencyToken + 'static, + ) -> Self { + self.make_token = Some(Box::new(make_token)); + self + } + pub fn endpoint_resolver( + mut self, + endpoint_resolver: impl aws_endpoint::ResolveAwsEndpoint + 'static, + ) -> Self { + self.endpoint_resolver = Some(::std::sync::Arc::new(endpoint_resolver)); + self + } + pub fn region(mut self, region_provider: impl aws_types::region::ProvideRegion) -> Self { + self.region = region_provider.region(); + self + } + /// Set the credentials provider for this service + pub fn credentials_provider( + mut self, + credentials_provider: impl aws_auth::ProvideCredentials + 'static, + ) -> Self { + self.credentials_provider = Some(std::sync::Arc::new(credentials_provider)); + self + } + pub fn build(self) -> Config { + Config { + make_token: self + .make_token + .unwrap_or_else(|| Box::new(crate::idempotency_token::default_provider())), + endpoint_resolver: self + .endpoint_resolver + .unwrap_or_else(|| ::std::sync::Arc::new(crate::aws_endpoint::endpoint_resolver())), + region: { + use aws_types::region::ProvideRegion; + self.region + .or_else(|| aws_types::region::default_provider().region()) + }, + credentials_provider: self + .credentials_provider + .unwrap_or_else(|| std::sync::Arc::new(aws_auth::default_provider())), + } + } +} diff --git a/sdk/eks/src/error.rs b/sdk/eks/src/error.rs new file mode 100644 index 000000000000..1a3cb2f5075b --- /dev/null +++ b/sdk/eks/src/error.rs @@ -0,0 +1,4688 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct AssociateEncryptionConfigError { + pub kind: AssociateEncryptionConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum AssociateEncryptionConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for AssociateEncryptionConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + AssociateEncryptionConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + AssociateEncryptionConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for AssociateEncryptionConfigError { + fn code(&self) -> Option<&str> { + AssociateEncryptionConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl AssociateEncryptionConfigError { + pub fn new(kind: AssociateEncryptionConfigErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: AssociateEncryptionConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: AssociateEncryptionConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + AssociateEncryptionConfigErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for AssociateEncryptionConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + AssociateEncryptionConfigErrorKind::ClientException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::InvalidParameterException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::InvalidRequestException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::ResourceInUseException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::ServerException(_inner) => Some(_inner), + AssociateEncryptionConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct AssociateIdentityProviderConfigError { + pub kind: AssociateIdentityProviderConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum AssociateIdentityProviderConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for AssociateIdentityProviderConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + AssociateIdentityProviderConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + AssociateIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + AssociateIdentityProviderConfigErrorKind::InvalidRequestException(_inner) => { + _inner.fmt(f) + } + AssociateIdentityProviderConfigErrorKind::ResourceInUseException(_inner) => { + _inner.fmt(f) + } + AssociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + AssociateIdentityProviderConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + AssociateIdentityProviderConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for AssociateIdentityProviderConfigError { + fn code(&self) -> Option<&str> { + AssociateIdentityProviderConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl AssociateIdentityProviderConfigError { + pub fn new(kind: AssociateIdentityProviderConfigErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: AssociateIdentityProviderConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: AssociateIdentityProviderConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + AssociateIdentityProviderConfigErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for AssociateIdentityProviderConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + AssociateIdentityProviderConfigErrorKind::ClientException(_inner) => Some(_inner), + AssociateIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + AssociateIdentityProviderConfigErrorKind::InvalidRequestException(_inner) => { + Some(_inner) + } + AssociateIdentityProviderConfigErrorKind::ResourceInUseException(_inner) => { + Some(_inner) + } + AssociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + AssociateIdentityProviderConfigErrorKind::ServerException(_inner) => Some(_inner), + AssociateIdentityProviderConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CreateAddonError { + pub kind: CreateAddonErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CreateAddonErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CreateAddonError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CreateAddonErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateAddonErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CreateAddonError { + fn code(&self) -> Option<&str> { + CreateAddonError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CreateAddonError { + pub fn new(kind: CreateAddonErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CreateAddonErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CreateAddonErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateAddonErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateAddonErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!(&self.kind, CreateAddonErrorKind::InvalidRequestException(_)) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateAddonErrorKind::ResourceInUseException(_)) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateAddonErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateAddonErrorKind::ServerException(_)) + } +} +impl std::error::Error for CreateAddonError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CreateAddonErrorKind::ClientException(_inner) => Some(_inner), + CreateAddonErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateAddonErrorKind::InvalidRequestException(_inner) => Some(_inner), + CreateAddonErrorKind::ResourceInUseException(_inner) => Some(_inner), + CreateAddonErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateAddonErrorKind::ServerException(_inner) => Some(_inner), + CreateAddonErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CreateClusterError { + pub kind: CreateClusterErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CreateClusterErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + UnsupportedAvailabilityZoneException(crate::error::UnsupportedAvailabilityZoneException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CreateClusterError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CreateClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::UnsupportedAvailabilityZoneException(_inner) => _inner.fmt(f), + CreateClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CreateClusterError { + fn code(&self) -> Option<&str> { + CreateClusterError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CreateClusterError { + pub fn new(kind: CreateClusterErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CreateClusterErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CreateClusterErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateClusterErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::ResourceLimitExceededException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateClusterErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::ServiceUnavailableException(_) + ) + } + pub fn is_unsupported_availability_zone_exception(&self) -> bool { + matches!( + &self.kind, + CreateClusterErrorKind::UnsupportedAvailabilityZoneException(_) + ) + } +} +impl std::error::Error for CreateClusterError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CreateClusterErrorKind::ClientException(_inner) => Some(_inner), + CreateClusterErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateClusterErrorKind::ResourceInUseException(_inner) => Some(_inner), + CreateClusterErrorKind::ResourceLimitExceededException(_inner) => Some(_inner), + CreateClusterErrorKind::ServerException(_inner) => Some(_inner), + CreateClusterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateClusterErrorKind::UnsupportedAvailabilityZoneException(_inner) => Some(_inner), + CreateClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CreateFargateProfileError { + pub kind: CreateFargateProfileErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CreateFargateProfileErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), + ServerException(crate::error::ServerException), + UnsupportedAvailabilityZoneException(crate::error::UnsupportedAvailabilityZoneException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CreateFargateProfileError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CreateFargateProfileErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateFargateProfileErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateFargateProfileErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + CreateFargateProfileErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f), + CreateFargateProfileErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateFargateProfileErrorKind::UnsupportedAvailabilityZoneException(_inner) => { + _inner.fmt(f) + } + CreateFargateProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CreateFargateProfileError { + fn code(&self) -> Option<&str> { + CreateFargateProfileError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CreateFargateProfileError { + pub fn new(kind: CreateFargateProfileErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CreateFargateProfileErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CreateFargateProfileErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::ResourceLimitExceededException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::ServerException(_) + ) + } + pub fn is_unsupported_availability_zone_exception(&self) -> bool { + matches!( + &self.kind, + CreateFargateProfileErrorKind::UnsupportedAvailabilityZoneException(_) + ) + } +} +impl std::error::Error for CreateFargateProfileError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CreateFargateProfileErrorKind::ClientException(_inner) => Some(_inner), + CreateFargateProfileErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateFargateProfileErrorKind::InvalidRequestException(_inner) => Some(_inner), + CreateFargateProfileErrorKind::ResourceLimitExceededException(_inner) => Some(_inner), + CreateFargateProfileErrorKind::ServerException(_inner) => Some(_inner), + CreateFargateProfileErrorKind::UnsupportedAvailabilityZoneException(_inner) => { + Some(_inner) + } + CreateFargateProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct CreateNodegroupError { + pub kind: CreateNodegroupErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum CreateNodegroupErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for CreateNodegroupError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + CreateNodegroupErrorKind::ClientException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::ServerException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateNodegroupErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for CreateNodegroupError { + fn code(&self) -> Option<&str> { + CreateNodegroupError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl CreateNodegroupError { + pub fn new(kind: CreateNodegroupErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: CreateNodegroupErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: CreateNodegroupErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, CreateNodegroupErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateNodegroupErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateNodegroupErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + CreateNodegroupErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateNodegroupErrorKind::ResourceLimitExceededException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, CreateNodegroupErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + CreateNodegroupErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for CreateNodegroupError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + CreateNodegroupErrorKind::ClientException(_inner) => Some(_inner), + CreateNodegroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateNodegroupErrorKind::InvalidRequestException(_inner) => Some(_inner), + CreateNodegroupErrorKind::ResourceInUseException(_inner) => Some(_inner), + CreateNodegroupErrorKind::ResourceLimitExceededException(_inner) => Some(_inner), + CreateNodegroupErrorKind::ServerException(_inner) => Some(_inner), + CreateNodegroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateNodegroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteAddonError { + pub kind: DeleteAddonErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteAddonErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteAddonError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteAddonErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteAddonErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteAddonErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + DeleteAddonErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteAddonErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteAddonErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteAddonError { + fn code(&self) -> Option<&str> { + DeleteAddonError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteAddonError { + pub fn new(kind: DeleteAddonErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteAddonErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteAddonErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteAddonErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAddonErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!(&self.kind, DeleteAddonErrorKind::InvalidRequestException(_)) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAddonErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteAddonErrorKind::ServerException(_)) + } +} +impl std::error::Error for DeleteAddonError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteAddonErrorKind::ClientException(_inner) => Some(_inner), + DeleteAddonErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteAddonErrorKind::InvalidRequestException(_inner) => Some(_inner), + DeleteAddonErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteAddonErrorKind::ServerException(_inner) => Some(_inner), + DeleteAddonErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteClusterError { + pub kind: DeleteClusterErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteClusterErrorKind { + ClientException(crate::error::ClientException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteClusterError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DeleteClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteClusterError { + fn code(&self) -> Option<&str> { + DeleteClusterError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteClusterError { + pub fn new(kind: DeleteClusterErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteClusterErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteClusterErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteClusterErrorKind::ClientException(_)) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteClusterErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + DeleteClusterErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for DeleteClusterError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteClusterErrorKind::ClientException(_inner) => Some(_inner), + DeleteClusterErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteClusterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteClusterErrorKind::ServerException(_inner) => Some(_inner), + DeleteClusterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DeleteClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteFargateProfileError { + pub kind: DeleteFargateProfileErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteFargateProfileErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteFargateProfileError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteFargateProfileErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteFargateProfileErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteFargateProfileErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteFargateProfileErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteFargateProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteFargateProfileError { + fn code(&self) -> Option<&str> { + DeleteFargateProfileError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteFargateProfileError { + pub fn new(kind: DeleteFargateProfileErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteFargateProfileErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteFargateProfileErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DeleteFargateProfileErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteFargateProfileErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteFargateProfileErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteFargateProfileErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DeleteFargateProfileError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteFargateProfileErrorKind::ClientException(_inner) => Some(_inner), + DeleteFargateProfileErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteFargateProfileErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteFargateProfileErrorKind::ServerException(_inner) => Some(_inner), + DeleteFargateProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DeleteNodegroupError { + pub kind: DeleteNodegroupErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DeleteNodegroupErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DeleteNodegroupError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DeleteNodegroupErrorKind::ClientException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::ServerException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DeleteNodegroupErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DeleteNodegroupError { + fn code(&self) -> Option<&str> { + DeleteNodegroupError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DeleteNodegroupError { + pub fn new(kind: DeleteNodegroupErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DeleteNodegroupErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DeleteNodegroupErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DeleteNodegroupErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteNodegroupErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + DeleteNodegroupErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteNodegroupErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DeleteNodegroupErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + DeleteNodegroupErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for DeleteNodegroupError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DeleteNodegroupErrorKind::ClientException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::ServerException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DeleteNodegroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAddonError { + pub kind: DescribeAddonErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAddonErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAddonError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAddonErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeAddonErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeAddonErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + DescribeAddonErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeAddonErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeAddonErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAddonError { + fn code(&self) -> Option<&str> { + DescribeAddonError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAddonError { + pub fn new(kind: DescribeAddonErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAddonErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAddonErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeAddonErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeAddonErrorKind::ServerException(_)) + } +} +impl std::error::Error for DescribeAddonError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAddonErrorKind::ClientException(_inner) => Some(_inner), + DescribeAddonErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeAddonErrorKind::InvalidRequestException(_inner) => Some(_inner), + DescribeAddonErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeAddonErrorKind::ServerException(_inner) => Some(_inner), + DescribeAddonErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeAddonVersionsError { + pub kind: DescribeAddonVersionsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeAddonVersionsErrorKind { + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeAddonVersionsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeAddonVersionsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeAddonVersionsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeAddonVersionsErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeAddonVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeAddonVersionsError { + fn code(&self) -> Option<&str> { + DescribeAddonVersionsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeAddonVersionsError { + pub fn new(kind: DescribeAddonVersionsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeAddonVersionsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeAddonVersionsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonVersionsErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonVersionsErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeAddonVersionsErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DescribeAddonVersionsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeAddonVersionsErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeAddonVersionsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeAddonVersionsErrorKind::ServerException(_inner) => Some(_inner), + DescribeAddonVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeClusterError { + pub kind: DescribeClusterErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeClusterErrorKind { + ClientException(crate::error::ClientException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeClusterError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeClusterErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeClusterErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeClusterErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeClusterErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DescribeClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeClusterError { + fn code(&self) -> Option<&str> { + DescribeClusterError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeClusterError { + pub fn new(kind: DescribeClusterErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeClusterErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeClusterErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeClusterErrorKind::ClientException(_)) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeClusterErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeClusterErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + DescribeClusterErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for DescribeClusterError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeClusterErrorKind::ClientException(_inner) => Some(_inner), + DescribeClusterErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeClusterErrorKind::ServerException(_inner) => Some(_inner), + DescribeClusterErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DescribeClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeFargateProfileError { + pub kind: DescribeFargateProfileErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeFargateProfileErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeFargateProfileError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeFargateProfileErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeFargateProfileErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeFargateProfileErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeFargateProfileErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeFargateProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeFargateProfileError { + fn code(&self) -> Option<&str> { + DescribeFargateProfileError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeFargateProfileError { + pub fn new(kind: DescribeFargateProfileErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeFargateProfileErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeFargateProfileErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DescribeFargateProfileErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeFargateProfileErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeFargateProfileErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeFargateProfileErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DescribeFargateProfileError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeFargateProfileErrorKind::ClientException(_inner) => Some(_inner), + DescribeFargateProfileErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeFargateProfileErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeFargateProfileErrorKind::ServerException(_inner) => Some(_inner), + DescribeFargateProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeIdentityProviderConfigError { + pub kind: DescribeIdentityProviderConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeIdentityProviderConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeIdentityProviderConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeIdentityProviderConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DescribeIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DescribeIdentityProviderConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeIdentityProviderConfigErrorKind::ServiceUnavailableException(_inner) => { + _inner.fmt(f) + } + DescribeIdentityProviderConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeIdentityProviderConfigError { + fn code(&self) -> Option<&str> { + DescribeIdentityProviderConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeIdentityProviderConfigError { + pub fn new(kind: DescribeIdentityProviderConfigErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeIdentityProviderConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeIdentityProviderConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DescribeIdentityProviderConfigErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeIdentityProviderConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeIdentityProviderConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DescribeIdentityProviderConfigErrorKind::ServerException(_) + ) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + DescribeIdentityProviderConfigErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for DescribeIdentityProviderConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeIdentityProviderConfigErrorKind::ClientException(_inner) => Some(_inner), + DescribeIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + DescribeIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + DescribeIdentityProviderConfigErrorKind::ServerException(_inner) => Some(_inner), + DescribeIdentityProviderConfigErrorKind::ServiceUnavailableException(_inner) => { + Some(_inner) + } + DescribeIdentityProviderConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeNodegroupError { + pub kind: DescribeNodegroupErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeNodegroupErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeNodegroupError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeNodegroupErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeNodegroupErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeNodegroupErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeNodegroupErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeNodegroupErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DescribeNodegroupErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeNodegroupError { + fn code(&self) -> Option<&str> { + DescribeNodegroupError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeNodegroupError { + pub fn new(kind: DescribeNodegroupErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeNodegroupErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeNodegroupErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeNodegroupErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeNodegroupErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeNodegroupErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeNodegroupErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + DescribeNodegroupErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for DescribeNodegroupError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeNodegroupErrorKind::ClientException(_inner) => Some(_inner), + DescribeNodegroupErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeNodegroupErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeNodegroupErrorKind::ServerException(_inner) => Some(_inner), + DescribeNodegroupErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DescribeNodegroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DescribeUpdateError { + pub kind: DescribeUpdateErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DescribeUpdateErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DescribeUpdateError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DescribeUpdateErrorKind::ClientException(_inner) => _inner.fmt(f), + DescribeUpdateErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeUpdateErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeUpdateErrorKind::ServerException(_inner) => _inner.fmt(f), + DescribeUpdateErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DescribeUpdateError { + fn code(&self) -> Option<&str> { + DescribeUpdateError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DescribeUpdateError { + pub fn new(kind: DescribeUpdateErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DescribeUpdateErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DescribeUpdateErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, DescribeUpdateErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DescribeUpdateErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeUpdateErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, DescribeUpdateErrorKind::ServerException(_)) + } +} +impl std::error::Error for DescribeUpdateError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DescribeUpdateErrorKind::ClientException(_inner) => Some(_inner), + DescribeUpdateErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeUpdateErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeUpdateErrorKind::ServerException(_inner) => Some(_inner), + DescribeUpdateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct DisassociateIdentityProviderConfigError { + pub kind: DisassociateIdentityProviderConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum DisassociateIdentityProviderConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for DisassociateIdentityProviderConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + DisassociateIdentityProviderConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + DisassociateIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DisassociateIdentityProviderConfigErrorKind::InvalidRequestException(_inner) => { + _inner.fmt(f) + } + DisassociateIdentityProviderConfigErrorKind::ResourceInUseException(_inner) => { + _inner.fmt(f) + } + DisassociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DisassociateIdentityProviderConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + DisassociateIdentityProviderConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for DisassociateIdentityProviderConfigError { + fn code(&self) -> Option<&str> { + DisassociateIdentityProviderConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl DisassociateIdentityProviderConfigError { + pub fn new( + kind: DisassociateIdentityProviderConfigErrorKind, + meta: smithy_types::Error, + ) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: DisassociateIdentityProviderConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: DisassociateIdentityProviderConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + DisassociateIdentityProviderConfigErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for DisassociateIdentityProviderConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + DisassociateIdentityProviderConfigErrorKind::ClientException(_inner) => Some(_inner), + DisassociateIdentityProviderConfigErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + DisassociateIdentityProviderConfigErrorKind::InvalidRequestException(_inner) => { + Some(_inner) + } + DisassociateIdentityProviderConfigErrorKind::ResourceInUseException(_inner) => { + Some(_inner) + } + DisassociateIdentityProviderConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + DisassociateIdentityProviderConfigErrorKind::ServerException(_inner) => Some(_inner), + DisassociateIdentityProviderConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListAddonsError { + pub kind: ListAddonsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListAddonsErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListAddonsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListAddonsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListAddonsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListAddonsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + ListAddonsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListAddonsErrorKind::ServerException(_inner) => _inner.fmt(f), + ListAddonsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListAddonsError { + fn code(&self) -> Option<&str> { + ListAddonsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListAddonsError { + pub fn new(kind: ListAddonsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListAddonsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListAddonsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListAddonsErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListAddonsErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!(&self.kind, ListAddonsErrorKind::InvalidRequestException(_)) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListAddonsErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListAddonsErrorKind::ServerException(_)) + } +} +impl std::error::Error for ListAddonsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListAddonsErrorKind::ClientException(_inner) => Some(_inner), + ListAddonsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListAddonsErrorKind::InvalidRequestException(_inner) => Some(_inner), + ListAddonsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListAddonsErrorKind::ServerException(_inner) => Some(_inner), + ListAddonsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListClustersError { + pub kind: ListClustersErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListClustersErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListClustersError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListClustersErrorKind::ClientException(_inner) => _inner.fmt(f), + ListClustersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListClustersErrorKind::ServerException(_inner) => _inner.fmt(f), + ListClustersErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ListClustersErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListClustersError { + fn code(&self) -> Option<&str> { + ListClustersError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListClustersError { + pub fn new(kind: ListClustersErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListClustersErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListClustersErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListClustersErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListClustersErrorKind::InvalidParameterException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListClustersErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + ListClustersErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for ListClustersError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListClustersErrorKind::ClientException(_inner) => Some(_inner), + ListClustersErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListClustersErrorKind::ServerException(_inner) => Some(_inner), + ListClustersErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ListClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListFargateProfilesError { + pub kind: ListFargateProfilesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListFargateProfilesErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListFargateProfilesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListFargateProfilesErrorKind::ClientException(_inner) => _inner.fmt(f), + ListFargateProfilesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListFargateProfilesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListFargateProfilesErrorKind::ServerException(_inner) => _inner.fmt(f), + ListFargateProfilesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListFargateProfilesError { + fn code(&self) -> Option<&str> { + ListFargateProfilesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListFargateProfilesError { + pub fn new(kind: ListFargateProfilesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListFargateProfilesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListFargateProfilesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListFargateProfilesErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListFargateProfilesErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListFargateProfilesErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListFargateProfilesErrorKind::ServerException(_)) + } +} +impl std::error::Error for ListFargateProfilesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListFargateProfilesErrorKind::ClientException(_inner) => Some(_inner), + ListFargateProfilesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListFargateProfilesErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListFargateProfilesErrorKind::ServerException(_inner) => Some(_inner), + ListFargateProfilesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListIdentityProviderConfigsError { + pub kind: ListIdentityProviderConfigsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListIdentityProviderConfigsErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListIdentityProviderConfigsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListIdentityProviderConfigsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListIdentityProviderConfigsErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + ListIdentityProviderConfigsErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + ListIdentityProviderConfigsErrorKind::ServerException(_inner) => _inner.fmt(f), + ListIdentityProviderConfigsErrorKind::ServiceUnavailableException(_inner) => { + _inner.fmt(f) + } + ListIdentityProviderConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListIdentityProviderConfigsError { + fn code(&self) -> Option<&str> { + ListIdentityProviderConfigsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListIdentityProviderConfigsError { + pub fn new(kind: ListIdentityProviderConfigsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListIdentityProviderConfigsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListIdentityProviderConfigsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + ListIdentityProviderConfigsErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListIdentityProviderConfigsErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListIdentityProviderConfigsErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + ListIdentityProviderConfigsErrorKind::ServerException(_) + ) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + ListIdentityProviderConfigsErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for ListIdentityProviderConfigsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListIdentityProviderConfigsErrorKind::ClientException(_inner) => Some(_inner), + ListIdentityProviderConfigsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListIdentityProviderConfigsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListIdentityProviderConfigsErrorKind::ServerException(_inner) => Some(_inner), + ListIdentityProviderConfigsErrorKind::ServiceUnavailableException(_inner) => { + Some(_inner) + } + ListIdentityProviderConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListNodegroupsError { + pub kind: ListNodegroupsErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListNodegroupsErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListNodegroupsError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListNodegroupsErrorKind::ClientException(_inner) => _inner.fmt(f), + ListNodegroupsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListNodegroupsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListNodegroupsErrorKind::ServerException(_inner) => _inner.fmt(f), + ListNodegroupsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ListNodegroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListNodegroupsError { + fn code(&self) -> Option<&str> { + ListNodegroupsError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListNodegroupsError { + pub fn new(kind: ListNodegroupsErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListNodegroupsErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListNodegroupsErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListNodegroupsErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListNodegroupsErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListNodegroupsErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListNodegroupsErrorKind::ServerException(_)) + } + pub fn is_service_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + ListNodegroupsErrorKind::ServiceUnavailableException(_) + ) + } +} +impl std::error::Error for ListNodegroupsError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListNodegroupsErrorKind::ClientException(_inner) => Some(_inner), + ListNodegroupsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListNodegroupsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListNodegroupsErrorKind::ServerException(_inner) => Some(_inner), + ListNodegroupsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ListNodegroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListTagsForResourceError { + pub kind: ListTagsForResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListTagsForResourceErrorKind { + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListTagsForResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListTagsForResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListTagsForResourceError { + fn code(&self) -> Option<&str> { + ListTagsForResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListTagsForResourceError { + pub fn new(kind: ListTagsForResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListTagsForResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::BadRequestException(_) + ) + } + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::NotFoundException(_) + ) + } +} +impl std::error::Error for ListTagsForResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListTagsForResourceErrorKind::BadRequestException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::NotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct ListUpdatesError { + pub kind: ListUpdatesErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum ListUpdatesErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for ListUpdatesError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + ListUpdatesErrorKind::ClientException(_inner) => _inner.fmt(f), + ListUpdatesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListUpdatesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListUpdatesErrorKind::ServerException(_inner) => _inner.fmt(f), + ListUpdatesErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for ListUpdatesError { + fn code(&self) -> Option<&str> { + ListUpdatesError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl ListUpdatesError { + pub fn new(kind: ListUpdatesErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: ListUpdatesErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: ListUpdatesErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, ListUpdatesErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListUpdatesErrorKind::InvalidParameterException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListUpdatesErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, ListUpdatesErrorKind::ServerException(_)) + } +} +impl std::error::Error for ListUpdatesError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + ListUpdatesErrorKind::ClientException(_inner) => Some(_inner), + ListUpdatesErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListUpdatesErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListUpdatesErrorKind::ServerException(_inner) => Some(_inner), + ListUpdatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct TagResourceError { + pub kind: TagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum TagResourceErrorKind { + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for TagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + TagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for TagResourceError { + fn code(&self) -> Option<&str> { + TagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl TagResourceError { + pub fn new(kind: TagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: TagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: TagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::BadRequestException(_)) + } + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::NotFoundException(_)) + } +} +impl std::error::Error for TagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + TagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + TagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UntagResourceError { + pub kind: UntagResourceErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UntagResourceErrorKind { + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UntagResourceError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UntagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UntagResourceError { + fn code(&self) -> Option<&str> { + UntagResourceError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UntagResourceError { + pub fn new(kind: UntagResourceErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UntagResourceErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UntagResourceErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::BadRequestException(_)) + } + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::NotFoundException(_)) + } +} +impl std::error::Error for UntagResourceError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UntagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + UntagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UpdateAddonError { + pub kind: UpdateAddonErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UpdateAddonErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UpdateAddonError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UpdateAddonErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateAddonErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UpdateAddonError { + fn code(&self) -> Option<&str> { + UpdateAddonError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UpdateAddonError { + pub fn new(kind: UpdateAddonErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UpdateAddonErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UpdateAddonErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateAddonErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAddonErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!(&self.kind, UpdateAddonErrorKind::InvalidRequestException(_)) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, UpdateAddonErrorKind::ResourceInUseException(_)) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAddonErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateAddonErrorKind::ServerException(_)) + } +} +impl std::error::Error for UpdateAddonError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UpdateAddonErrorKind::ClientException(_inner) => Some(_inner), + UpdateAddonErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateAddonErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateAddonErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateAddonErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateAddonErrorKind::ServerException(_inner) => Some(_inner), + UpdateAddonErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UpdateClusterConfigError { + pub kind: UpdateClusterConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UpdateClusterConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UpdateClusterConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UpdateClusterConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateClusterConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UpdateClusterConfigError { + fn code(&self) -> Option<&str> { + UpdateClusterConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UpdateClusterConfigError { + pub fn new(kind: UpdateClusterConfigErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UpdateClusterConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UpdateClusterConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!(&self.kind, UpdateClusterConfigErrorKind::ClientException(_)) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterConfigErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterConfigErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!(&self.kind, UpdateClusterConfigErrorKind::ServerException(_)) + } +} +impl std::error::Error for UpdateClusterConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UpdateClusterConfigErrorKind::ClientException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::ServerException(_inner) => Some(_inner), + UpdateClusterConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UpdateClusterVersionError { + pub kind: UpdateClusterVersionErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UpdateClusterVersionErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UpdateClusterVersionError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UpdateClusterVersionErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateClusterVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UpdateClusterVersionError { + fn code(&self) -> Option<&str> { + UpdateClusterVersionError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UpdateClusterVersionError { + pub fn new(kind: UpdateClusterVersionErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UpdateClusterVersionErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UpdateClusterVersionErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateClusterVersionErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for UpdateClusterVersionError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UpdateClusterVersionErrorKind::ClientException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::ServerException(_inner) => Some(_inner), + UpdateClusterVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UpdateNodegroupConfigError { + pub kind: UpdateNodegroupConfigErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UpdateNodegroupConfigErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UpdateNodegroupConfigError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UpdateNodegroupConfigErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateNodegroupConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UpdateNodegroupConfigError { + fn code(&self) -> Option<&str> { + UpdateNodegroupConfigError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UpdateNodegroupConfigError { + pub fn new(kind: UpdateNodegroupConfigErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UpdateNodegroupConfigErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UpdateNodegroupConfigErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupConfigErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for UpdateNodegroupConfigError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UpdateNodegroupConfigErrorKind::ClientException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::ServerException(_inner) => Some(_inner), + UpdateNodegroupConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub struct UpdateNodegroupVersionError { + pub kind: UpdateNodegroupVersionErrorKind, + pub(crate) meta: smithy_types::Error, +} +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum UpdateNodegroupVersionErrorKind { + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code + Unhandled(Box), +} +impl std::fmt::Display for UpdateNodegroupVersionError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.kind { + UpdateNodegroupVersionErrorKind::ClientException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::ServerException(_inner) => _inner.fmt(f), + UpdateNodegroupVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), + } + } +} +impl smithy_types::retry::ProvideErrorKind for UpdateNodegroupVersionError { + fn code(&self) -> Option<&str> { + UpdateNodegroupVersionError::code(self) + } + fn retryable_error_kind(&self) -> Option { + None + } +} +impl UpdateNodegroupVersionError { + pub fn new(kind: UpdateNodegroupVersionErrorKind, meta: smithy_types::Error) -> Self { + Self { kind, meta } + } + + pub fn unhandled(err: impl Into>) -> Self { + Self { + kind: UpdateNodegroupVersionErrorKind::Unhandled(err.into()), + meta: Default::default(), + } + } + + pub fn generic(err: smithy_types::Error) -> Self { + Self { + meta: err.clone(), + kind: UpdateNodegroupVersionErrorKind::Unhandled(err.into()), + } + } + + // Consider if this should actually be `Option>`. This would enable us to use display as implemented + // by std::Error to generate a message in that case. + pub fn message(&self) -> Option<&str> { + self.meta.message() + } + + pub fn meta(&self) -> &smithy_types::Error { + &self.meta + } + + pub fn request_id(&self) -> Option<&str> { + self.meta.request_id() + } + + pub fn code(&self) -> Option<&str> { + self.meta.code() + } + pub fn is_client_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::ClientException(_) + ) + } + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::InvalidParameterException(_) + ) + } + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::InvalidRequestException(_) + ) + } + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::ResourceInUseException(_) + ) + } + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::ResourceNotFoundException(_) + ) + } + pub fn is_server_exception(&self) -> bool { + matches!( + &self.kind, + UpdateNodegroupVersionErrorKind::ServerException(_) + ) + } +} +impl std::error::Error for UpdateNodegroupVersionError { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match &self.kind { + UpdateNodegroupVersionErrorKind::ClientException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::ServerException(_inner) => Some(_inner), + UpdateNodegroupVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), + } + } +} + +///

    These errors are usually caused by a server-side issue.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServerException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ServerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ServerException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ServerException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ServerException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ServerException")?; + if let Some(inner_1) = &self.message { + write!(f, ": {}", inner_1)?; + } + Ok(()) + } +} +impl std::error::Error for ServerException {} +/// See [`ServerException`](crate::error::ServerException) +pub mod server_exception { + /// A builder for [`ServerException`](crate::error::ServerException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ServerException`](crate::error::ServerException) + pub fn build(self) -> crate::error::ServerException { + crate::error::ServerException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl ServerException { + /// Creates a new builder-style object to manufacture [`ServerException`](crate::error::ServerException) + pub fn builder() -> crate::error::server_exception::Builder { + crate::error::server_exception::Builder::default() + } +} + +///

    The specified resource could not be found. You can view your available clusters with +/// ListClusters. You can view your available managed node groups with +/// ListNodegroups. Amazon EKS clusters and node groups are +/// Region-specific.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + ///

    The Fargate profile associated with the exception.

    + pub fargate_profile_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ResourceNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ResourceNotFoundException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ResourceNotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ResourceNotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ResourceNotFoundException")?; + if let Some(inner_2) = &self.message { + write!(f, ": {}", inner_2)?; + } + Ok(()) + } +} +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) fargate_profile_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The Fargate profile associated with the exception.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + fargate_profile_name: self.fargate_profile_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() + } +} + +///

    The specified resource is in use.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ResourceInUseException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ResourceInUseException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ResourceInUseException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ResourceInUseException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ResourceInUseException")?; + if let Some(inner_3) = &self.message { + write!(f, ": {}", inner_3)?; + } + Ok(()) + } +} +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() + } +} + +///

    The request is invalid given the state of the cluster. Check the state of the cluster +/// and the associated operations.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidRequestException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidRequestException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidRequestException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidRequestException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidRequestException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidRequestException")?; + if let Some(inner_4) = &self.message { + write!(f, ": {}", inner_4)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidRequestException {} +/// See [`InvalidRequestException`](crate::error::InvalidRequestException) +pub mod invalid_request_exception { + /// A builder for [`InvalidRequestException`](crate::error::InvalidRequestException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidRequestException`](crate::error::InvalidRequestException) + pub fn build(self) -> crate::error::InvalidRequestException { + crate::error::InvalidRequestException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl InvalidRequestException { + /// Creates a new builder-style object to manufacture [`InvalidRequestException`](crate::error::InvalidRequestException) + pub fn builder() -> crate::error::invalid_request_exception::Builder { + crate::error::invalid_request_exception::Builder::default() + } +} + +///

    The specified parameter is invalid. Review the available parameters for the API +/// request.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + ///

    The Fargate profile associated with the exception.

    + pub fargate_profile_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for InvalidParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("InvalidParameterException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl InvalidParameterException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for InvalidParameterException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "InvalidParameterException")?; + if let Some(inner_5) = &self.message { + write!(f, ": {}", inner_5)?; + } + Ok(()) + } +} +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) fargate_profile_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The Fargate profile associated with the exception.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + fargate_profile_name: self.fargate_profile_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() + } +} + +///

    These errors are usually caused by a client action. Actions can include using an +/// action or resource on behalf of a user that doesn't have permissions to use the action +/// or resource or specifying an identifier that is not valid.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ClientException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + pub addon_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ClientException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ClientException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ClientException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ClientException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ClientException")?; + if let Some(inner_6) = &self.message { + write!(f, ": {}", inner_6)?; + } + Ok(()) + } +} +impl std::error::Error for ClientException {} +/// See [`ClientException`](crate::error::ClientException) +pub mod client_exception { + /// A builder for [`ClientException`](crate::error::ClientException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ClientException`](crate::error::ClientException) + pub fn build(self) -> crate::error::ClientException { + crate::error::ClientException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + message: self.message, + } + } + } +} +impl ClientException { + /// Creates a new builder-style object to manufacture [`ClientException`](crate::error::ClientException) + pub fn builder() -> crate::error::client_exception::Builder { + crate::error::client_exception::Builder::default() + } +} + +///

    A service resource associated with the request could not be found. Clients should not +/// retry such requests.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { + pub message: std::option::Option, +} +impl std::fmt::Debug for NotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("NotFoundException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl NotFoundException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for NotFoundException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "NotFoundException")?; + if let Some(inner_7) = &self.message { + write!(f, ": {}", inner_7)?; + } + Ok(()) + } +} +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { + message: self.message, + } + } + } +} +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() + } +} + +///

    This exception is thrown if the request contains a semantic error. The precise meaning +/// will depend on the API, and will be documented in the error message.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { + pub message: std::option::Option, +} +impl std::fmt::Debug for BadRequestException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("BadRequestException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl BadRequestException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for BadRequestException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "BadRequestException")?; + if let Some(inner_8) = &self.message { + write!(f, ": {}", inner_8)?; + } + Ok(()) + } +} +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { + message: self.message, + } + } + } +} +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() + } +} + +///

    The service is unavailable. Back off and retry the operation.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceUnavailableException { + pub message: std::option::Option, +} +impl std::fmt::Debug for ServiceUnavailableException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ServiceUnavailableException"); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ServiceUnavailableException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ServiceUnavailableException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ServiceUnavailableException")?; + if let Some(inner_9) = &self.message { + write!(f, ": {}", inner_9)?; + } + Ok(()) + } +} +impl std::error::Error for ServiceUnavailableException {} +/// See [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) +pub mod service_unavailable_exception { + /// A builder for [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn build(self) -> crate::error::ServiceUnavailableException { + crate::error::ServiceUnavailableException { + message: self.message, + } + } + } +} +impl ServiceUnavailableException { + /// Creates a new builder-style object to manufacture [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn builder() -> crate::error::service_unavailable_exception::Builder { + crate::error::service_unavailable_exception::Builder::default() + } +} + +///

    You have encountered a service limit on the specified resource.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceLimitExceededException { + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + pub message: std::option::Option, +} +impl std::fmt::Debug for ResourceLimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ResourceLimitExceededException"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("message", &self.message); + formatter.finish() + } +} +impl ResourceLimitExceededException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for ResourceLimitExceededException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "ResourceLimitExceededException")?; + if let Some(inner_10) = &self.message { + write!(f, ": {}", inner_10)?; + } + Ok(()) + } +} +impl std::error::Error for ResourceLimitExceededException {} +/// See [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) +pub mod resource_limit_exceeded_exception { + /// A builder for [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) message: std::option::Option, + } + impl Builder { + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + /// Consumes the builder and constructs a [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) + pub fn build(self) -> crate::error::ResourceLimitExceededException { + crate::error::ResourceLimitExceededException { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + message: self.message, + } + } + } +} +impl ResourceLimitExceededException { + /// Creates a new builder-style object to manufacture [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) + pub fn builder() -> crate::error::resource_limit_exceeded_exception::Builder { + crate::error::resource_limit_exceeded_exception::Builder::default() + } +} + +///

    At least one of your specified cluster subnets is in an Availability Zone that does +/// not support Amazon EKS. The exception output specifies the supported Availability Zones for +/// your account, from which you can choose subnets for your cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedAvailabilityZoneException { + pub message: std::option::Option, + ///

    The Amazon EKS cluster associated with the exception.

    + pub cluster_name: std::option::Option, + ///

    The Amazon EKS managed node group associated with the exception.

    + pub nodegroup_name: std::option::Option, + ///

    The supported Availability Zones for your account. Choose subnets in these + /// Availability Zones for your cluster.

    + pub valid_zones: std::option::Option>, +} +impl std::fmt::Debug for UnsupportedAvailabilityZoneException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UnsupportedAvailabilityZoneException"); + formatter.field("message", &self.message); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("valid_zones", &self.valid_zones); + formatter.finish() + } +} +impl UnsupportedAvailabilityZoneException { + pub fn message(&self) -> Option<&str> { + self.message.as_deref() + } +} +impl std::fmt::Display for UnsupportedAvailabilityZoneException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "UnsupportedAvailabilityZoneException")?; + if let Some(inner_11) = &self.message { + write!(f, ": {}", inner_11)?; + } + Ok(()) + } +} +impl std::error::Error for UnsupportedAvailabilityZoneException {} +/// See [`UnsupportedAvailabilityZoneException`](crate::error::UnsupportedAvailabilityZoneException) +pub mod unsupported_availability_zone_exception { + /// A builder for [`UnsupportedAvailabilityZoneException`](crate::error::UnsupportedAvailabilityZoneException) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) message: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) valid_zones: std::option::Option>, + } + impl Builder { + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + ///

    The Amazon EKS cluster associated with the exception.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon EKS managed node group associated with the exception.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + pub fn valid_zones(mut self, input: impl Into) -> Self { + let mut v = self.valid_zones.unwrap_or_default(); + v.push(input.into()); + self.valid_zones = Some(v); + self + } + pub fn set_valid_zones( + mut self, + input: std::option::Option>, + ) -> Self { + self.valid_zones = input; + self + } + /// Consumes the builder and constructs a [`UnsupportedAvailabilityZoneException`](crate::error::UnsupportedAvailabilityZoneException) + pub fn build(self) -> crate::error::UnsupportedAvailabilityZoneException { + crate::error::UnsupportedAvailabilityZoneException { + message: self.message, + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + valid_zones: self.valid_zones, + } + } + } +} +impl UnsupportedAvailabilityZoneException { + /// Creates a new builder-style object to manufacture [`UnsupportedAvailabilityZoneException`](crate::error::UnsupportedAvailabilityZoneException) + pub fn builder() -> crate::error::unsupported_availability_zone_exception::Builder { + crate::error::unsupported_availability_zone_exception::Builder::default() + } +} diff --git a/sdk/eks/src/error_meta.rs b/sdk/eks/src/error_meta.rs new file mode 100644 index 000000000000..9ba5e8757807 --- /dev/null +++ b/sdk/eks/src/error_meta.rs @@ -0,0 +1,821 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::fmt::Debug)] +pub enum Error { + BadRequestException(crate::error::BadRequestException), + ClientException(crate::error::ClientException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + NotFoundException(crate::error::NotFoundException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServerException(crate::error::ServerException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + UnsupportedAvailabilityZoneException(crate::error::UnsupportedAvailabilityZoneException), + Unhandled(Box), +} +impl std::fmt::Display for Error { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Error::BadRequestException(inner) => inner.fmt(f), + Error::ClientException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::InvalidRequestException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceLimitExceededException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ServerException(inner) => inner.fmt(f), + Error::ServiceUnavailableException(inner) => inner.fmt(f), + Error::UnsupportedAvailabilityZoneException(inner) => inner.fmt(f), + Error::Unhandled(inner) => inner.fmt(f), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::AssociateEncryptionConfigErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::AssociateEncryptionConfigErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::AssociateEncryptionConfigErrorKind::InvalidRequestException( + inner, + ) => Error::InvalidRequestException(inner), + crate::error::AssociateEncryptionConfigErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::AssociateEncryptionConfigErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::AssociateEncryptionConfigErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::AssociateEncryptionConfigErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> + for Error +{ + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::AssociateIdentityProviderConfigErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::InvalidRequestException(inner) => Error::InvalidRequestException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::ResourceInUseException(inner) => Error::ResourceInUseException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::AssociateIdentityProviderConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::CreateAddonErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::CreateAddonErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::CreateAddonErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::CreateAddonErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::CreateAddonErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::CreateAddonErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::CreateAddonErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::CreateClusterErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::CreateClusterErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::CreateClusterErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::CreateClusterErrorKind::ResourceLimitExceededException(inner) => { + Error::ResourceLimitExceededException(inner) + } + crate::error::CreateClusterErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::CreateClusterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::CreateClusterErrorKind::UnsupportedAvailabilityZoneException( + inner, + ) => Error::UnsupportedAvailabilityZoneException(inner), + crate::error::CreateClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::CreateFargateProfileErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::CreateFargateProfileErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::CreateFargateProfileErrorKind::InvalidRequestException(inner) => Error::InvalidRequestException(inner), + crate::error::CreateFargateProfileErrorKind::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner), + crate::error::CreateFargateProfileErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::CreateFargateProfileErrorKind::UnsupportedAvailabilityZoneException(inner) => Error::UnsupportedAvailabilityZoneException(inner), + crate::error::CreateFargateProfileErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::CreateNodegroupErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::CreateNodegroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::CreateNodegroupErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::CreateNodegroupErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::CreateNodegroupErrorKind::ResourceLimitExceededException(inner) => { + Error::ResourceLimitExceededException(inner) + } + crate::error::CreateNodegroupErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::CreateNodegroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::CreateNodegroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteAddonErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DeleteAddonErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteAddonErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::DeleteAddonErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DeleteAddonErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteAddonErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteClusterErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DeleteClusterErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::DeleteClusterErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DeleteClusterErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteClusterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::DeleteClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteFargateProfileErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DeleteFargateProfileErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteFargateProfileErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DeleteFargateProfileErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteFargateProfileErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DeleteNodegroupErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DeleteNodegroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DeleteNodegroupErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::DeleteNodegroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DeleteNodegroupErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DeleteNodegroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::DeleteNodegroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAddonErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DescribeAddonErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeAddonErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::DescribeAddonErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeAddonErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeAddonErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeAddonVersionsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeAddonVersionsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeAddonVersionsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeAddonVersionsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeClusterErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DescribeClusterErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeClusterErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeClusterErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::DescribeClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeFargateProfileErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DescribeFargateProfileErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeFargateProfileErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeFargateProfileErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeFargateProfileErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> + for Error +{ + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DescribeIdentityProviderConfigErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::DescribeIdentityProviderConfigErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::DescribeIdentityProviderConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DescribeIdentityProviderConfigErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::DescribeIdentityProviderConfigErrorKind::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner), + crate::error::DescribeIdentityProviderConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeNodegroupErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DescribeNodegroupErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeNodegroupErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeNodegroupErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeNodegroupErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::DescribeNodegroupErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::DescribeUpdateErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::DescribeUpdateErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::DescribeUpdateErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::DescribeUpdateErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::DescribeUpdateErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> + for Error +{ + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DisassociateIdentityProviderConfigErrorKind::ClientException(inner) => Error::ClientException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::InvalidRequestException(inner) => Error::InvalidRequestException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::ResourceInUseException(inner) => Error::ResourceInUseException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::ServerException(inner) => Error::ServerException(inner), + crate::error::DisassociateIdentityProviderConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListAddonsErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListAddonsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListAddonsErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::ListAddonsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::ListAddonsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListAddonsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListClustersErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListClustersErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListClustersErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListClustersErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::ListClustersErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListFargateProfilesErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListFargateProfilesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListFargateProfilesErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::ListFargateProfilesErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListFargateProfilesErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from( + err: smithy_http::result::SdkError, + ) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListIdentityProviderConfigsErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListIdentityProviderConfigsErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ListIdentityProviderConfigsErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::ListIdentityProviderConfigsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListIdentityProviderConfigsErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), + crate::error::ListIdentityProviderConfigsErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListNodegroupsErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListNodegroupsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListNodegroupsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::ListNodegroupsErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListNodegroupsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) + } + crate::error::ListNodegroupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListTagsForResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) + } + crate::error::ListTagsForResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) + } + crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::ListUpdatesErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::ListUpdatesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::ListUpdatesErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::ListUpdatesErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::ListUpdatesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::TagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) + } + crate::error::TagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) + } + crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UntagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) + } + crate::error::UntagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) + } + crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UpdateAddonErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::UpdateAddonErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UpdateAddonErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::UpdateAddonErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::UpdateAddonErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UpdateAddonErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UpdateAddonErrorKind::Unhandled(inner) => Error::Unhandled(inner), + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UpdateClusterConfigErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::UpdateClusterConfigErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UpdateClusterConfigErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::UpdateClusterConfigErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::UpdateClusterConfigErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UpdateClusterConfigErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UpdateClusterConfigErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UpdateClusterVersionErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::UpdateClusterVersionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UpdateClusterVersionErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::UpdateClusterVersionErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::UpdateClusterVersionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UpdateClusterVersionErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UpdateClusterVersionErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UpdateNodegroupConfigErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UpdateNodegroupConfigErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl From> for Error { + fn from(err: smithy_http::result::SdkError) -> Self { + match err { + smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { + crate::error::UpdateNodegroupVersionErrorKind::ClientException(inner) => { + Error::ClientException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::ServerException(inner) => { + Error::ServerException(inner) + } + crate::error::UpdateNodegroupVersionErrorKind::Unhandled(inner) => { + Error::Unhandled(inner) + } + }, + _ => Error::Unhandled(err.into()), + } + } +} +impl std::error::Error for Error {} diff --git a/sdk/eks/src/idempotency_token.rs b/sdk/eks/src/idempotency_token.rs new file mode 100644 index 000000000000..213a33891b19 --- /dev/null +++ b/sdk/eks/src/idempotency_token.rs @@ -0,0 +1,53 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use std::sync::Mutex; + +pub(crate) fn uuid_v4(input: u128) -> String { + let mut out = String::with_capacity(36); + // u4-aligned index into [input] + let mut rnd_idx: u8 = 0; + const HEX_CHARS: &[u8; 16] = b"0123456789abcdef"; + + for str_idx in 0..36 { + if str_idx == 8 || str_idx == 13 || str_idx == 18 || str_idx == 23 { + out.push('-'); + // UUID version character + } else if str_idx == 14 { + out.push('4'); + } else { + let mut dat: u8 = ((input >> (rnd_idx * 4)) & 0x0F) as u8; + // UUID variant bits + if str_idx == 19 { + dat |= 0b00001000; + } + rnd_idx += 1; + out.push(HEX_CHARS[dat as usize] as char); + } + } + out +} + +pub trait MakeIdempotencyToken: Send + Sync { + fn make_idempotency_token(&self) -> String; +} + +pub fn default_provider() -> impl MakeIdempotencyToken { + Mutex::new(fastrand::Rng::new()) +} + +impl MakeIdempotencyToken for Mutex { + fn make_idempotency_token(&self) -> String { + let input: u128 = self.lock().unwrap().u128(..); + uuid_v4(input) + } +} + +impl MakeIdempotencyToken for &'static str { + fn make_idempotency_token(&self) -> String { + self.to_string() + } +} diff --git a/sdk/eks/src/input.rs b/sdk/eks/src/input.rs new file mode 100644 index 000000000000..a4a7828b2507 --- /dev/null +++ b/sdk/eks/src/input.rs @@ -0,0 +1,7487 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; +/// See [`AssociateEncryptionConfigInput`](crate::input::AssociateEncryptionConfigInput) +pub mod associate_encryption_config_input { + /// A builder for [`AssociateEncryptionConfigInput`](crate::input::AssociateEncryptionConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) encryption_config: + std::option::Option>, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the cluster that you are associating with encryption configuration.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + pub fn encryption_config( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.encryption_config.unwrap_or_default(); + v.push(input.into()); + self.encryption_config = Some(v); + self + } + pub fn set_encryption_config( + mut self, + input: std::option::Option>, + ) -> Self { + self.encryption_config = input; + self + } + ///

    The client request token you are using with the encryption configuration.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`AssociateEncryptionConfigInput`](crate::input::AssociateEncryptionConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::AssociateEncryptionConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::AssociateEncryptionConfigInput { + cluster_name: self.cluster_name, + encryption_config: self.encryption_config, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type AssociateEncryptionConfigInputOperationOutputAlias = + crate::operation::AssociateEncryptionConfig; +#[doc(hidden)] +pub type AssociateEncryptionConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl AssociateEncryptionConfigInput { + /// Consumes the builder and constructs an Operation<[`AssociateEncryptionConfig`](crate::operation::AssociateEncryptionConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::AssociateEncryptionConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_associate_encryption_config(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::AssociateEncryptionConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "AssociateEncryptionConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/encryption-config/associate", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`AssociateEncryptionConfigInput`](crate::input::AssociateEncryptionConfigInput) + pub fn builder() -> crate::input::associate_encryption_config_input::Builder { + crate::input::associate_encryption_config_input::Builder::default() + } +} + +/// See [`AssociateIdentityProviderConfigInput`](crate::input::AssociateIdentityProviderConfigInput) +pub mod associate_identity_provider_config_input { + /// A builder for [`AssociateIdentityProviderConfigInput`](crate::input::AssociateIdentityProviderConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) oidc: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to associate the configuration to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    An object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub fn oidc(mut self, input: crate::model::OidcIdentityProviderConfigRequest) -> Self { + self.oidc = Some(input); + self + } + pub fn set_oidc( + mut self, + input: std::option::Option, + ) -> Self { + self.oidc = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`AssociateIdentityProviderConfigInput`](crate::input::AssociateIdentityProviderConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::AssociateIdentityProviderConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::AssociateIdentityProviderConfigInput { + cluster_name: self.cluster_name, + oidc: self.oidc, + tags: self.tags, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type AssociateIdentityProviderConfigInputOperationOutputAlias = + crate::operation::AssociateIdentityProviderConfig; +#[doc(hidden)] +pub type AssociateIdentityProviderConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl AssociateIdentityProviderConfigInput { + /// Consumes the builder and constructs an Operation<[`AssociateIdentityProviderConfig`](crate::operation::AssociateIdentityProviderConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::AssociateIdentityProviderConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_associate_identity_provider_config(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::AssociateIdentityProviderConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "AssociateIdentityProviderConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/identity-provider-configs/associate", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`AssociateIdentityProviderConfigInput`](crate::input::AssociateIdentityProviderConfigInput) + pub fn builder() -> crate::input::associate_identity_provider_config_input::Builder { + crate::input::associate_identity_provider_config_input::Builder::default() + } +} + +/// See [`CreateAddonInput`](crate::input::CreateAddonInput) +pub mod create_addon_input { + /// A builder for [`CreateAddonInput`](crate::input::CreateAddonInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) addon_version: std::option::Option, + pub(crate) service_account_role_arn: std::option::Option, + pub(crate) resolve_conflicts: std::option::Option, + pub(crate) client_request_token: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name of the cluster to create the add-on for.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.addon_version = Some(input.into()); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.addon_version = input; + self + } + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub fn service_account_role_arn(mut self, input: impl Into) -> Self { + self.service_account_role_arn = Some(input.into()); + self + } + pub fn set_service_account_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.service_account_role_arn = input; + self + } + ///

    How to resolve parameter value conflicts when migrating an existing add-on to an Amazon EKS + /// add-on.

    + pub fn resolve_conflicts(mut self, input: crate::model::ResolveConflicts) -> Self { + self.resolve_conflicts = Some(input); + self + } + pub fn set_resolve_conflicts( + mut self, + input: std::option::Option, + ) -> Self { + self.resolve_conflicts = input; + self + } + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`CreateAddonInput`](crate::input::CreateAddonInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::CreateAddonInput { + cluster_name: self.cluster_name, + addon_name: self.addon_name, + addon_version: self.addon_version, + service_account_role_arn: self.service_account_role_arn, + resolve_conflicts: self.resolve_conflicts, + client_request_token: self.client_request_token, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type CreateAddonInputOperationOutputAlias = crate::operation::CreateAddon; +#[doc(hidden)] +pub type CreateAddonInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CreateAddonInput { + /// Consumes the builder and constructs an Operation<[`CreateAddon`](crate::operation::CreateAddon)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CreateAddon, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_create_addon(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CreateAddon::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("CreateAddon", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/addons", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CreateAddonInput`](crate::input::CreateAddonInput) + pub fn builder() -> crate::input::create_addon_input::Builder { + crate::input::create_addon_input::Builder::default() + } +} + +/// See [`CreateClusterInput`](crate::input::CreateClusterInput) +pub mod create_cluster_input { + /// A builder for [`CreateClusterInput`](crate::input::CreateClusterInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) role_arn: std::option::Option, + pub(crate) resources_vpc_config: std::option::Option, + pub(crate) kubernetes_network_config: + std::option::Option, + pub(crate) logging: std::option::Option, + pub(crate) client_request_token: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + pub(crate) encryption_config: + std::option::Option>, + } + impl Builder { + ///

    The unique name to give to your cluster.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The desired Kubernetes version for your cluster. If you don't specify a value here, + /// the latest version available in Amazon EKS is used.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control + /// plane to make calls to AWS API operations on your behalf. For more information, see + /// Amazon EKS + /// Service IAM Role in the + /// Amazon EKS User Guide + /// .

    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.role_arn = Some(input.into()); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.role_arn = input; + self + } + ///

    The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have + /// specific requirements to work properly with Kubernetes. For more information, see Cluster VPC + /// Considerations and Cluster Security Group Considerations in the + /// Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five + /// security groups, but we recommend that you use a dedicated security group for your + /// cluster control plane.

    + pub fn resources_vpc_config(mut self, input: crate::model::VpcConfigRequest) -> Self { + self.resources_vpc_config = Some(input); + self + } + pub fn set_resources_vpc_config( + mut self, + input: std::option::Option, + ) -> Self { + self.resources_vpc_config = input; + self + } + ///

    The Kubernetes network configuration for the cluster.

    + pub fn kubernetes_network_config( + mut self, + input: crate::model::KubernetesNetworkConfigRequest, + ) -> Self { + self.kubernetes_network_config = Some(input); + self + } + pub fn set_kubernetes_network_config( + mut self, + input: std::option::Option, + ) -> Self { + self.kubernetes_network_config = input; + self + } + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub fn logging(mut self, input: crate::model::Logging) -> Self { + self.logging = Some(input); + self + } + pub fn set_logging(mut self, input: std::option::Option) -> Self { + self.logging = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + pub fn encryption_config( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.encryption_config.unwrap_or_default(); + v.push(input.into()); + self.encryption_config = Some(v); + self + } + pub fn set_encryption_config( + mut self, + input: std::option::Option>, + ) -> Self { + self.encryption_config = input; + self + } + /// Consumes the builder and constructs a [`CreateClusterInput`](crate::input::CreateClusterInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::CreateClusterInput { + name: self.name, + version: self.version, + role_arn: self.role_arn, + resources_vpc_config: self.resources_vpc_config, + kubernetes_network_config: self.kubernetes_network_config, + logging: self.logging, + client_request_token: self.client_request_token, + tags: self.tags, + encryption_config: self.encryption_config, + }) + } + } +} +#[doc(hidden)] +pub type CreateClusterInputOperationOutputAlias = crate::operation::CreateCluster; +#[doc(hidden)] +pub type CreateClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CreateClusterInput { + /// Consumes the builder and constructs an Operation<[`CreateCluster`](crate::operation::CreateCluster)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CreateCluster, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_create_cluster(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CreateCluster::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "CreateCluster", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/clusters").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CreateClusterInput`](crate::input::CreateClusterInput) + pub fn builder() -> crate::input::create_cluster_input::Builder { + crate::input::create_cluster_input::Builder::default() + } +} + +/// See [`CreateFargateProfileInput`](crate::input::CreateFargateProfileInput) +pub mod create_fargate_profile_input { + /// A builder for [`CreateFargateProfileInput`](crate::input::CreateFargateProfileInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile_name: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) pod_execution_role_arn: std::option::Option, + pub(crate) subnets: std::option::Option>, + pub(crate) selectors: + std::option::Option>, + pub(crate) client_request_token: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name of the Fargate profile.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + ///

    The name of the Amazon EKS cluster to apply the Fargate profile to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in + /// the Fargate profile. The pod execution role allows Fargate infrastructure to register with + /// your cluster as a node, and it provides read access to Amazon ECR image repositories. For + /// more information, see Pod Execution Role in the + /// Amazon EKS User Guide.

    + pub fn pod_execution_role_arn(mut self, input: impl Into) -> Self { + self.pod_execution_role_arn = Some(input.into()); + self + } + pub fn set_pod_execution_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.pod_execution_role_arn = input; + self + } + pub fn subnets(mut self, input: impl Into) -> Self { + let mut v = self.subnets.unwrap_or_default(); + v.push(input.into()); + self.subnets = Some(v); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnets = input; + self + } + pub fn selectors(mut self, input: impl Into) -> Self { + let mut v = self.selectors.unwrap_or_default(); + v.push(input.into()); + self.selectors = Some(v); + self + } + pub fn set_selectors( + mut self, + input: std::option::Option>, + ) -> Self { + self.selectors = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`CreateFargateProfileInput`](crate::input::CreateFargateProfileInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::CreateFargateProfileInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::CreateFargateProfileInput { + fargate_profile_name: self.fargate_profile_name, + cluster_name: self.cluster_name, + pod_execution_role_arn: self.pod_execution_role_arn, + subnets: self.subnets, + selectors: self.selectors, + client_request_token: self.client_request_token, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type CreateFargateProfileInputOperationOutputAlias = crate::operation::CreateFargateProfile; +#[doc(hidden)] +pub type CreateFargateProfileInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CreateFargateProfileInput { + /// Consumes the builder and constructs an Operation<[`CreateFargateProfile`](crate::operation::CreateFargateProfile)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CreateFargateProfile, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_create_fargate_profile(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CreateFargateProfile::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "CreateFargateProfile", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/fargate-profiles", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CreateFargateProfileInput`](crate::input::CreateFargateProfileInput) + pub fn builder() -> crate::input::create_fargate_profile_input::Builder { + crate::input::create_fargate_profile_input::Builder::default() + } +} + +/// See [`CreateNodegroupInput`](crate::input::CreateNodegroupInput) +pub mod create_nodegroup_input { + /// A builder for [`CreateNodegroupInput`](crate::input::CreateNodegroupInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) scaling_config: std::option::Option, + pub(crate) disk_size: std::option::Option, + pub(crate) subnets: std::option::Option>, + pub(crate) instance_types: std::option::Option>, + pub(crate) ami_type: std::option::Option, + pub(crate) remote_access: std::option::Option, + pub(crate) node_role: std::option::Option, + pub(crate) labels: std::option::Option< + std::collections::HashMap, + >, + pub(crate) taints: std::option::Option>, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + pub(crate) client_request_token: std::option::Option, + pub(crate) launch_template: std::option::Option, + pub(crate) update_config: std::option::Option, + pub(crate) capacity_type: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) release_version: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to create the node group in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The unique name to give your node group.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The scaling configuration details for the Auto Scaling group that is created for your + /// node group.

    + pub fn scaling_config(mut self, input: crate::model::NodegroupScalingConfig) -> Self { + self.scaling_config = Some(input); + self + } + pub fn set_scaling_config( + mut self, + input: std::option::Option, + ) -> Self { + self.scaling_config = input; + self + } + ///

    The root device disk size (in GiB) for your node group instances. The default disk + /// size is 20 GiB. If you specify launchTemplate, then don't specify diskSize, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn disk_size(mut self, input: i32) -> Self { + self.disk_size = Some(input); + self + } + pub fn set_disk_size(mut self, input: std::option::Option) -> Self { + self.disk_size = input; + self + } + pub fn subnets(mut self, input: impl Into) -> Self { + let mut v = self.subnets.unwrap_or_default(); + v.push(input.into()); + self.subnets = Some(v); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnets = input; + self + } + pub fn instance_types(mut self, input: impl Into) -> Self { + let mut v = self.instance_types.unwrap_or_default(); + v.push(input.into()); + self.instance_types = Some(v); + self + } + pub fn set_instance_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.instance_types = input; + self + } + ///

    The AMI type for your node group. GPU instance types should use the + /// AL2_x86_64_GPU AMI type. Non-GPU instances should use the + /// AL2_x86_64 AMI type. Arm instances should use the + /// AL2_ARM_64 AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn ami_type(mut self, input: crate::model::AmiTypes) -> Self { + self.ami_type = Some(input); + self + } + pub fn set_ami_type(mut self, input: std::option::Option) -> Self { + self.ami_type = input; + self + } + ///

    The remote access (SSH) configuration to use with your node group. If you specify launchTemplate, + /// then don't specify remoteAccess, or the node group deployment + /// will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn remote_access(mut self, input: crate::model::RemoteAccessConfig) -> Self { + self.remote_access = Some(input); + self + } + pub fn set_remote_access( + mut self, + input: std::option::Option, + ) -> Self { + self.remote_access = input; + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker + /// node kubelet daemon makes calls to AWS APIs on your behalf. Nodes receive + /// permissions for these API calls through an IAM instance profile and associated + /// policies. Before you can launch nodes and register them into a cluster, you must create + /// an IAM role for those nodes to use when they are launched. For more information, see + /// Amazon EKS node IAM role in the + /// Amazon EKS User Guide + /// . + /// If you specify launchTemplate, then don't specify + /// IamInstanceProfile + /// in your launch template, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn node_role(mut self, input: impl Into) -> Self { + self.node_role = Some(input.into()); + self + } + pub fn set_node_role(mut self, input: std::option::Option) -> Self { + self.node_role = input; + self + } + pub fn labels( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.labels.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.labels = Some(hash_map); + self + } + pub fn set_labels( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.labels = input; + self + } + pub fn taints(mut self, input: impl Into) -> Self { + let mut v = self.taints.unwrap_or_default(); + v.push(input.into()); + self.taints = Some(v); + self + } + pub fn set_taints( + mut self, + input: std::option::Option>, + ) -> Self { + self.taints = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + ///

    An object representing a node group's launch template specification. If specified, + /// then do not specify instanceTypes, diskSize, or + /// remoteAccess and make sure that the launch template meets the + /// requirements in launchTemplateSpecification.

    + pub fn launch_template(mut self, input: crate::model::LaunchTemplateSpecification) -> Self { + self.launch_template = Some(input); + self + } + pub fn set_launch_template( + mut self, + input: std::option::Option, + ) -> Self { + self.launch_template = input; + self + } + pub fn update_config(mut self, input: crate::model::NodegroupUpdateConfig) -> Self { + self.update_config = Some(input); + self + } + pub fn set_update_config( + mut self, + input: std::option::Option, + ) -> Self { + self.update_config = input; + self + } + ///

    The capacity type for your node group.

    + pub fn capacity_type(mut self, input: crate::model::CapacityTypes) -> Self { + self.capacity_type = Some(input); + self + } + pub fn set_capacity_type( + mut self, + input: std::option::Option, + ) -> Self { + self.capacity_type = input; + self + } + ///

    The Kubernetes version to use for your managed nodes. By default, the Kubernetes + /// version of the cluster is used, and this is the only accepted specified value. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify version, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, + /// the latest available AMI version for the node group's current Kubernetes version is + /// used. For more information, see Amazon EKS + /// optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify launchTemplate, + /// and your launch template uses a custom AMI, then don't specify releaseVersion, or the node group + /// deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn release_version(mut self, input: impl Into) -> Self { + self.release_version = Some(input.into()); + self + } + pub fn set_release_version( + mut self, + input: std::option::Option, + ) -> Self { + self.release_version = input; + self + } + /// Consumes the builder and constructs a [`CreateNodegroupInput`](crate::input::CreateNodegroupInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::CreateNodegroupInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::CreateNodegroupInput { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + scaling_config: self.scaling_config, + disk_size: self.disk_size, + subnets: self.subnets, + instance_types: self.instance_types, + ami_type: self.ami_type, + remote_access: self.remote_access, + node_role: self.node_role, + labels: self.labels, + taints: self.taints, + tags: self.tags, + client_request_token: self.client_request_token, + launch_template: self.launch_template, + update_config: self.update_config, + capacity_type: self.capacity_type, + version: self.version, + release_version: self.release_version, + }) + } + } +} +#[doc(hidden)] +pub type CreateNodegroupInputOperationOutputAlias = crate::operation::CreateNodegroup; +#[doc(hidden)] +pub type CreateNodegroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl CreateNodegroupInput { + /// Consumes the builder and constructs an Operation<[`CreateNodegroup`](crate::operation::CreateNodegroup)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::CreateNodegroup, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_create_nodegroup(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::CreateNodegroup::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "CreateNodegroup", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`CreateNodegroupInput`](crate::input::CreateNodegroupInput) + pub fn builder() -> crate::input::create_nodegroup_input::Builder { + crate::input::create_nodegroup_input::Builder::default() + } +} + +/// See [`DeleteAddonInput`](crate::input::DeleteAddonInput) +pub mod delete_addon_input { + /// A builder for [`DeleteAddonInput`](crate::input::DeleteAddonInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to delete the add-on from.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + /// Consumes the builder and constructs a [`DeleteAddonInput`](crate::input::DeleteAddonInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::DeleteAddonInput { + cluster_name: self.cluster_name, + addon_name: self.addon_name, + }) + } + } +} +#[doc(hidden)] +pub type DeleteAddonInputOperationOutputAlias = crate::operation::DeleteAddon; +#[doc(hidden)] +pub type DeleteAddonInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteAddonInput { + /// Consumes the builder and constructs an Operation<[`DeleteAddon`](crate::operation::DeleteAddon)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteAddon, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteAddon::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("DeleteAddon", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let addon_name = { + let input = &self.addon_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/addons/{addonName}", + clusterName = cluster_name, + addonName = addon_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("DELETE").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteAddonInput`](crate::input::DeleteAddonInput) + pub fn builder() -> crate::input::delete_addon_input::Builder { + crate::input::delete_addon_input::Builder::default() + } +} + +/// See [`DeleteClusterInput`](crate::input::DeleteClusterInput) +pub mod delete_cluster_input { + /// A builder for [`DeleteClusterInput`](crate::input::DeleteClusterInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to delete.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`DeleteClusterInput`](crate::input::DeleteClusterInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::DeleteClusterInput { name: self.name }) + } + } +} +#[doc(hidden)] +pub type DeleteClusterInputOperationOutputAlias = crate::operation::DeleteCluster; +#[doc(hidden)] +pub type DeleteClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteClusterInput { + /// Consumes the builder and constructs an Operation<[`DeleteCluster`](crate::operation::DeleteCluster)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteCluster, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteCluster::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteCluster", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/clusters/{name}", name = name).expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("DELETE").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteClusterInput`](crate::input::DeleteClusterInput) + pub fn builder() -> crate::input::delete_cluster_input::Builder { + crate::input::delete_cluster_input::Builder::default() + } +} + +/// See [`DeleteFargateProfileInput`](crate::input::DeleteFargateProfileInput) +pub mod delete_fargate_profile_input { + /// A builder for [`DeleteFargateProfileInput`](crate::input::DeleteFargateProfileInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) fargate_profile_name: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster associated with the Fargate profile to delete.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the Fargate profile to delete.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + /// Consumes the builder and constructs a [`DeleteFargateProfileInput`](crate::input::DeleteFargateProfileInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteFargateProfileInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteFargateProfileInput { + cluster_name: self.cluster_name, + fargate_profile_name: self.fargate_profile_name, + }) + } + } +} +#[doc(hidden)] +pub type DeleteFargateProfileInputOperationOutputAlias = crate::operation::DeleteFargateProfile; +#[doc(hidden)] +pub type DeleteFargateProfileInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteFargateProfileInput { + /// Consumes the builder and constructs an Operation<[`DeleteFargateProfile`](crate::operation::DeleteFargateProfile)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteFargateProfile, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteFargateProfile::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteFargateProfile", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let fargate_profile_name = { + let input = &self.fargate_profile_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "fargate_profile_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "fargate_profile_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}", + clusterName = cluster_name, + fargateProfileName = fargate_profile_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("DELETE").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteFargateProfileInput`](crate::input::DeleteFargateProfileInput) + pub fn builder() -> crate::input::delete_fargate_profile_input::Builder { + crate::input::delete_fargate_profile_input::Builder::default() + } +} + +/// See [`DeleteNodegroupInput`](crate::input::DeleteNodegroupInput) +pub mod delete_nodegroup_input { + /// A builder for [`DeleteNodegroupInput`](crate::input::DeleteNodegroupInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster that is associated with your node group.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the node group to delete.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + /// Consumes the builder and constructs a [`DeleteNodegroupInput`](crate::input::DeleteNodegroupInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DeleteNodegroupInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DeleteNodegroupInput { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + }) + } + } +} +#[doc(hidden)] +pub type DeleteNodegroupInputOperationOutputAlias = crate::operation::DeleteNodegroup; +#[doc(hidden)] +pub type DeleteNodegroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DeleteNodegroupInput { + /// Consumes the builder and constructs an Operation<[`DeleteNodegroup`](crate::operation::DeleteNodegroup)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DeleteNodegroup, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DeleteNodegroup::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DeleteNodegroup", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let nodegroup_name = { + let input = &self.nodegroup_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups/{nodegroupName}", + clusterName = cluster_name, + nodegroupName = nodegroup_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("DELETE").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DeleteNodegroupInput`](crate::input::DeleteNodegroupInput) + pub fn builder() -> crate::input::delete_nodegroup_input::Builder { + crate::input::delete_nodegroup_input::Builder::default() + } +} + +/// See [`DescribeAddonInput`](crate::input::DescribeAddonInput) +pub mod describe_addon_input { + /// A builder for [`DescribeAddonInput`](crate::input::DescribeAddonInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + } + impl Builder { + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + /// Consumes the builder and constructs a [`DescribeAddonInput`](crate::input::DescribeAddonInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::DescribeAddonInput { + cluster_name: self.cluster_name, + addon_name: self.addon_name, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAddonInputOperationOutputAlias = crate::operation::DescribeAddon; +#[doc(hidden)] +pub type DescribeAddonInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAddonInput { + /// Consumes the builder and constructs an Operation<[`DescribeAddon`](crate::operation::DescribeAddon)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAddon, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAddon::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAddon", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let addon_name = { + let input = &self.addon_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/addons/{addonName}", + clusterName = cluster_name, + addonName = addon_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAddonInput`](crate::input::DescribeAddonInput) + pub fn builder() -> crate::input::describe_addon_input::Builder { + crate::input::describe_addon_input::Builder::default() + } +} + +/// See [`DescribeAddonVersionsInput`](crate::input::DescribeAddonVersionsInput) +pub mod describe_addon_versions_input { + /// A builder for [`DescribeAddonVersionsInput`](crate::input::DescribeAddonVersionsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) kubernetes_version: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) addon_name: std::option::Option, + } + impl Builder { + ///

    The Kubernetes versions that the add-on can be used with.

    + pub fn kubernetes_version(mut self, input: impl Into) -> Self { + self.kubernetes_version = Some(input.into()); + self + } + pub fn set_kubernetes_version( + mut self, + input: std::option::Option, + ) -> Self { + self.kubernetes_version = input; + self + } + ///

    The maximum number of results to return.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// DescribeAddonVersionsRequest where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + /// Consumes the builder and constructs a [`DescribeAddonVersionsInput`](crate::input::DescribeAddonVersionsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeAddonVersionsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeAddonVersionsInput { + kubernetes_version: self.kubernetes_version, + max_results: self.max_results, + next_token: self.next_token, + addon_name: self.addon_name, + }) + } + } +} +#[doc(hidden)] +pub type DescribeAddonVersionsInputOperationOutputAlias = crate::operation::DescribeAddonVersions; +#[doc(hidden)] +pub type DescribeAddonVersionsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeAddonVersionsInput { + /// Consumes the builder and constructs an Operation<[`DescribeAddonVersions`](crate::operation::DescribeAddonVersions)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeAddonVersions, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeAddonVersions::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeAddonVersions", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/addons/supported-versions").expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_1) = &self.kubernetes_version { + query.push_kv( + "kubernetesVersion", + &smithy_http::query::fmt_string(&inner_1), + ); + } + if let Some(inner_2) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_2)); + } + if let Some(inner_3) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_3)); + } + if let Some(inner_4) = &self.addon_name { + query.push_kv("addonName", &smithy_http::query::fmt_string(&inner_4)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeAddonVersionsInput`](crate::input::DescribeAddonVersionsInput) + pub fn builder() -> crate::input::describe_addon_versions_input::Builder { + crate::input::describe_addon_versions_input::Builder::default() + } +} + +/// See [`DescribeClusterInput`](crate::input::DescribeClusterInput) +pub mod describe_cluster_input { + /// A builder for [`DescribeClusterInput`](crate::input::DescribeClusterInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to describe.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`DescribeClusterInput`](crate::input::DescribeClusterInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeClusterInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeClusterInput { name: self.name }) + } + } +} +#[doc(hidden)] +pub type DescribeClusterInputOperationOutputAlias = crate::operation::DescribeCluster; +#[doc(hidden)] +pub type DescribeClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeClusterInput { + /// Consumes the builder and constructs an Operation<[`DescribeCluster`](crate::operation::DescribeCluster)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeCluster, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeCluster::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeCluster", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/clusters/{name}", name = name).expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeClusterInput`](crate::input::DescribeClusterInput) + pub fn builder() -> crate::input::describe_cluster_input::Builder { + crate::input::describe_cluster_input::Builder::default() + } +} + +/// See [`DescribeFargateProfileInput`](crate::input::DescribeFargateProfileInput) +pub mod describe_fargate_profile_input { + /// A builder for [`DescribeFargateProfileInput`](crate::input::DescribeFargateProfileInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) fargate_profile_name: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster associated with the Fargate profile.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the Fargate profile to describe.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + /// Consumes the builder and constructs a [`DescribeFargateProfileInput`](crate::input::DescribeFargateProfileInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeFargateProfileInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeFargateProfileInput { + cluster_name: self.cluster_name, + fargate_profile_name: self.fargate_profile_name, + }) + } + } +} +#[doc(hidden)] +pub type DescribeFargateProfileInputOperationOutputAlias = crate::operation::DescribeFargateProfile; +#[doc(hidden)] +pub type DescribeFargateProfileInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeFargateProfileInput { + /// Consumes the builder and constructs an Operation<[`DescribeFargateProfile`](crate::operation::DescribeFargateProfile)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeFargateProfile, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeFargateProfile::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeFargateProfile", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let fargate_profile_name = { + let input = &self.fargate_profile_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "fargate_profile_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "fargate_profile_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}", + clusterName = cluster_name, + fargateProfileName = fargate_profile_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeFargateProfileInput`](crate::input::DescribeFargateProfileInput) + pub fn builder() -> crate::input::describe_fargate_profile_input::Builder { + crate::input::describe_fargate_profile_input::Builder::default() + } +} + +/// See [`DescribeIdentityProviderConfigInput`](crate::input::DescribeIdentityProviderConfigInput) +pub mod describe_identity_provider_config_input { + /// A builder for [`DescribeIdentityProviderConfigInput`](crate::input::DescribeIdentityProviderConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) identity_provider_config: + std::option::Option, + } + impl Builder { + ///

    The cluster name that the identity provider configuration is associated to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    An object that represents an identity provider configuration.

    + pub fn identity_provider_config( + mut self, + input: crate::model::IdentityProviderConfig, + ) -> Self { + self.identity_provider_config = Some(input); + self + } + pub fn set_identity_provider_config( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config = input; + self + } + /// Consumes the builder and constructs a [`DescribeIdentityProviderConfigInput`](crate::input::DescribeIdentityProviderConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeIdentityProviderConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeIdentityProviderConfigInput { + cluster_name: self.cluster_name, + identity_provider_config: self.identity_provider_config, + }) + } + } +} +#[doc(hidden)] +pub type DescribeIdentityProviderConfigInputOperationOutputAlias = + crate::operation::DescribeIdentityProviderConfig; +#[doc(hidden)] +pub type DescribeIdentityProviderConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeIdentityProviderConfigInput { + /// Consumes the builder and constructs an Operation<[`DescribeIdentityProviderConfig`](crate::operation::DescribeIdentityProviderConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeIdentityProviderConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_describe_identity_provider_config(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeIdentityProviderConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeIdentityProviderConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/identity-provider-configs/describe", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeIdentityProviderConfigInput`](crate::input::DescribeIdentityProviderConfigInput) + pub fn builder() -> crate::input::describe_identity_provider_config_input::Builder { + crate::input::describe_identity_provider_config_input::Builder::default() + } +} + +/// See [`DescribeNodegroupInput`](crate::input::DescribeNodegroupInput) +pub mod describe_nodegroup_input { + /// A builder for [`DescribeNodegroupInput`](crate::input::DescribeNodegroupInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster associated with the node group.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the node group to describe.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + /// Consumes the builder and constructs a [`DescribeNodegroupInput`](crate::input::DescribeNodegroupInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeNodegroupInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeNodegroupInput { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + }) + } + } +} +#[doc(hidden)] +pub type DescribeNodegroupInputOperationOutputAlias = crate::operation::DescribeNodegroup; +#[doc(hidden)] +pub type DescribeNodegroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeNodegroupInput { + /// Consumes the builder and constructs an Operation<[`DescribeNodegroup`](crate::operation::DescribeNodegroup)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeNodegroup, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeNodegroup::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeNodegroup", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let nodegroup_name = { + let input = &self.nodegroup_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups/{nodegroupName}", + clusterName = cluster_name, + nodegroupName = nodegroup_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeNodegroupInput`](crate::input::DescribeNodegroupInput) + pub fn builder() -> crate::input::describe_nodegroup_input::Builder { + crate::input::describe_nodegroup_input::Builder::default() + } +} + +/// See [`DescribeUpdateInput`](crate::input::DescribeUpdateInput) +pub mod describe_update_input { + /// A builder for [`DescribeUpdateInput`](crate::input::DescribeUpdateInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) update_id: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster associated with the update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The ID of the update to describe.

    + pub fn update_id(mut self, input: impl Into) -> Self { + self.update_id = Some(input.into()); + self + } + pub fn set_update_id(mut self, input: std::option::Option) -> Self { + self.update_id = input; + self + } + ///

    The name of the Amazon EKS node group associated with the update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + /// Consumes the builder and constructs a [`DescribeUpdateInput`](crate::input::DescribeUpdateInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DescribeUpdateInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DescribeUpdateInput { + name: self.name, + update_id: self.update_id, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + }) + } + } +} +#[doc(hidden)] +pub type DescribeUpdateInputOperationOutputAlias = crate::operation::DescribeUpdate; +#[doc(hidden)] +pub type DescribeUpdateInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DescribeUpdateInput { + /// Consumes the builder and constructs an Operation<[`DescribeUpdate`](crate::operation::DescribeUpdate)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DescribeUpdate, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DescribeUpdate::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DescribeUpdate", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let update_id = { + let input = &self.update_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "update_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "update_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{name}/updates/{updateId}", + name = name, + updateId = update_id + ) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_5) = &self.nodegroup_name { + query.push_kv("nodegroupName", &smithy_http::query::fmt_string(&inner_5)); + } + if let Some(inner_6) = &self.addon_name { + query.push_kv("addonName", &smithy_http::query::fmt_string(&inner_6)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DescribeUpdateInput`](crate::input::DescribeUpdateInput) + pub fn builder() -> crate::input::describe_update_input::Builder { + crate::input::describe_update_input::Builder::default() + } +} + +/// See [`DisassociateIdentityProviderConfigInput`](crate::input::DisassociateIdentityProviderConfigInput) +pub mod disassociate_identity_provider_config_input { + /// A builder for [`DisassociateIdentityProviderConfigInput`](crate::input::DisassociateIdentityProviderConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) identity_provider_config: + std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the cluster to disassociate an identity provider from.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    An object that represents an identity provider configuration.

    + pub fn identity_provider_config( + mut self, + input: crate::model::IdentityProviderConfig, + ) -> Self { + self.identity_provider_config = Some(input); + self + } + pub fn set_identity_provider_config( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config = input; + self + } + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`DisassociateIdentityProviderConfigInput`](crate::input::DisassociateIdentityProviderConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::DisassociateIdentityProviderConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::DisassociateIdentityProviderConfigInput { + cluster_name: self.cluster_name, + identity_provider_config: self.identity_provider_config, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type DisassociateIdentityProviderConfigInputOperationOutputAlias = + crate::operation::DisassociateIdentityProviderConfig; +#[doc(hidden)] +pub type DisassociateIdentityProviderConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl DisassociateIdentityProviderConfigInput { + /// Consumes the builder and constructs an Operation<[`DisassociateIdentityProviderConfig`](crate::operation::DisassociateIdentityProviderConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::DisassociateIdentityProviderConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_disassociate_identity_provider_config( + &self, + ) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::DisassociateIdentityProviderConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "DisassociateIdentityProviderConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/identity-provider-configs/disassociate", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`DisassociateIdentityProviderConfigInput`](crate::input::DisassociateIdentityProviderConfigInput) + pub fn builder() -> crate::input::disassociate_identity_provider_config_input::Builder { + crate::input::disassociate_identity_provider_config_input::Builder::default() + } +} + +/// See [`ListAddonsInput`](crate::input::ListAddonsInput) +pub mod list_addons_input { + /// A builder for [`ListAddonsInput`](crate::input::ListAddonsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The maximum number of add-on results returned by ListAddonsRequest in + /// paginated output. When you use this parameter, ListAddonsRequest returns + /// only maxResults results in a single page along with a + /// nextToken response element. You can see the remaining results of the + /// initial request by sending another ListAddonsRequest request with the + /// returned nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, ListAddonsRequest + /// returns up to 100 results and a nextToken value, if + /// applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListAddonsRequest where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListAddonsInput`](crate::input::ListAddonsInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::ListAddonsInput { + cluster_name: self.cluster_name, + max_results: self.max_results, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListAddonsInputOperationOutputAlias = crate::operation::ListAddons; +#[doc(hidden)] +pub type ListAddonsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListAddonsInput { + /// Consumes the builder and constructs an Operation<[`ListAddons`](crate::operation::ListAddons)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListAddons, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListAddons::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("ListAddons", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/addons", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_7) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_7)); + } + if let Some(inner_8) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_8)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListAddonsInput`](crate::input::ListAddonsInput) + pub fn builder() -> crate::input::list_addons_input::Builder { + crate::input::list_addons_input::Builder::default() + } +} + +/// See [`ListClustersInput`](crate::input::ListClustersInput) +pub mod list_clusters_input { + /// A builder for [`ListClustersInput`](crate::input::ListClustersInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    The maximum number of cluster results returned by ListClusters in + /// paginated output. When you use this parameter, ListClusters returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListClusters request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListClusters returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListClusters request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListClustersInput`](crate::input::ListClustersInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::ListClustersInput { + max_results: self.max_results, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListClustersInputOperationOutputAlias = crate::operation::ListClusters; +#[doc(hidden)] +pub type ListClustersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListClustersInput { + /// Consumes the builder and constructs an Operation<[`ListClusters`](crate::operation::ListClusters)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListClusters, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListClusters::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("ListClusters", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/clusters").expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_9) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_9)); + } + if let Some(inner_10) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_10)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListClustersInput`](crate::input::ListClustersInput) + pub fn builder() -> crate::input::list_clusters_input::Builder { + crate::input::list_clusters_input::Builder::default() + } +} + +/// See [`ListFargateProfilesInput`](crate::input::ListFargateProfilesInput) +pub mod list_fargate_profiles_input { + /// A builder for [`ListFargateProfilesInput`](crate::input::ListFargateProfilesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster that you would like to listFargate profiles in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The maximum number of Fargate profile results returned by + /// ListFargateProfiles in paginated output. When you use this parameter, + /// ListFargateProfiles returns only maxResults results in a + /// single page along with a nextToken response element. You can see the + /// remaining results of the initial request by sending another + /// ListFargateProfiles request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListFargateProfiles returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListFargateProfiles request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListFargateProfilesInput`](crate::input::ListFargateProfilesInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListFargateProfilesInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListFargateProfilesInput { + cluster_name: self.cluster_name, + max_results: self.max_results, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListFargateProfilesInputOperationOutputAlias = crate::operation::ListFargateProfiles; +#[doc(hidden)] +pub type ListFargateProfilesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListFargateProfilesInput { + /// Consumes the builder and constructs an Operation<[`ListFargateProfiles`](crate::operation::ListFargateProfiles)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListFargateProfiles, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListFargateProfiles::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListFargateProfiles", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/fargate-profiles", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_11) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_11)); + } + if let Some(inner_12) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_12)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListFargateProfilesInput`](crate::input::ListFargateProfilesInput) + pub fn builder() -> crate::input::list_fargate_profiles_input::Builder { + crate::input::list_fargate_profiles_input::Builder::default() + } +} + +/// See [`ListIdentityProviderConfigsInput`](crate::input::ListIdentityProviderConfigsInput) +pub mod list_identity_provider_configs_input { + /// A builder for [`ListIdentityProviderConfigsInput`](crate::input::ListIdentityProviderConfigsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    The cluster name that you want to list identity provider configurations for.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The maximum number of identity provider configurations returned by + /// ListIdentityProviderConfigs in paginated output. When you use this + /// parameter, ListIdentityProviderConfigs returns only maxResults + /// results in a single page along with a nextToken response element. You can + /// see the remaining results of the initial request by sending another + /// ListIdentityProviderConfigs request with the returned + /// nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, + /// ListIdentityProviderConfigs returns up to 100 results + /// and a nextToken value, if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// IdentityProviderConfigsRequest where maxResults was used + /// and the results exceeded the value of that parameter. Pagination continues from the end + /// of the previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListIdentityProviderConfigsInput`](crate::input::ListIdentityProviderConfigsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListIdentityProviderConfigsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListIdentityProviderConfigsInput { + cluster_name: self.cluster_name, + max_results: self.max_results, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListIdentityProviderConfigsInputOperationOutputAlias = + crate::operation::ListIdentityProviderConfigs; +#[doc(hidden)] +pub type ListIdentityProviderConfigsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListIdentityProviderConfigsInput { + /// Consumes the builder and constructs an Operation<[`ListIdentityProviderConfigs`](crate::operation::ListIdentityProviderConfigs)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListIdentityProviderConfigs, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListIdentityProviderConfigs::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListIdentityProviderConfigs", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/identity-provider-configs", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_13) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_13)); + } + if let Some(inner_14) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_14)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListIdentityProviderConfigsInput`](crate::input::ListIdentityProviderConfigsInput) + pub fn builder() -> crate::input::list_identity_provider_configs_input::Builder { + crate::input::list_identity_provider_configs_input::Builder::default() + } +} + +/// See [`ListNodegroupsInput`](crate::input::ListNodegroupsInput) +pub mod list_nodegroups_input { + /// A builder for [`ListNodegroupsInput`](crate::input::ListNodegroupsInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) max_results: std::option::Option, + pub(crate) next_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster that you would like to list node groups in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The maximum number of node group results returned by ListNodegroups in + /// paginated output. When you use this parameter, ListNodegroups returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListNodegroups request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListNodegroups returns up to 100 + /// results and a nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListNodegroups request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListNodegroupsInput`](crate::input::ListNodegroupsInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListNodegroupsInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListNodegroupsInput { + cluster_name: self.cluster_name, + max_results: self.max_results, + next_token: self.next_token, + }) + } + } +} +#[doc(hidden)] +pub type ListNodegroupsInputOperationOutputAlias = crate::operation::ListNodegroups; +#[doc(hidden)] +pub type ListNodegroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListNodegroupsInput { + /// Consumes the builder and constructs an Operation<[`ListNodegroups`](crate::operation::ListNodegroups)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListNodegroups, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListNodegroups::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListNodegroups", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups", + clusterName = cluster_name + ) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_15) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_15)); + } + if let Some(inner_16) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_16)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListNodegroupsInput`](crate::input::ListNodegroupsInput) + pub fn builder() -> crate::input::list_nodegroups_input::Builder { + crate::input::list_nodegroups_input::Builder::default() + } +} + +/// See [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) +pub mod list_tags_for_resource_input { + /// A builder for [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + } + impl Builder { + ///

    The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// supported resources are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::ListTagsForResourceInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::ListTagsForResourceInput { + resource_arn: self.resource_arn, + }) + } + } +} +#[doc(hidden)] +pub type ListTagsForResourceInputOperationOutputAlias = crate::operation::ListTagsForResource; +#[doc(hidden)] +pub type ListTagsForResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListTagsForResourceInput { + /// Consumes the builder and constructs an Operation<[`ListTagsForResource`](crate::operation::ListTagsForResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListTagsForResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListTagsForResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "ListTagsForResource", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } +} + +/// See [`ListUpdatesInput`](crate::input::ListUpdatesInput) +pub mod list_updates_input { + /// A builder for [`ListUpdatesInput`](crate::input::ListUpdatesInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) next_token: std::option::Option, + pub(crate) max_results: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster to list updates for.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The name of the Amazon EKS managed node group to list updates for.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The names of the installed add-ons that have available updates.

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListUpdates request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + ///

    The maximum number of update results returned by ListUpdates in paginated + /// output. When you use this parameter, ListUpdates returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListUpdates request with the returned nextToken value. + /// This value can be between 1 and 100. If you don't use this + /// parameter, ListUpdates returns up to 100 results and a + /// nextToken value if applicable.

    + pub fn max_results(mut self, input: i32) -> Self { + self.max_results = Some(input); + self + } + pub fn set_max_results(mut self, input: std::option::Option) -> Self { + self.max_results = input; + self + } + /// Consumes the builder and constructs a [`ListUpdatesInput`](crate::input::ListUpdatesInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::ListUpdatesInput { + name: self.name, + nodegroup_name: self.nodegroup_name, + addon_name: self.addon_name, + next_token: self.next_token, + max_results: self.max_results, + }) + } + } +} +#[doc(hidden)] +pub type ListUpdatesInputOperationOutputAlias = crate::operation::ListUpdates; +#[doc(hidden)] +pub type ListUpdatesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl ListUpdatesInput { + /// Consumes the builder and constructs an Operation<[`ListUpdates`](crate::operation::ListUpdates)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::ListUpdates, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::ListUpdates::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("ListUpdates", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/clusters/{name}/updates", name = name).expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_17) = &self.nodegroup_name { + query.push_kv("nodegroupName", &smithy_http::query::fmt_string(&inner_17)); + } + if let Some(inner_18) = &self.addon_name { + query.push_kv("addonName", &smithy_http::query::fmt_string(&inner_18)); + } + if let Some(inner_19) = &self.next_token { + query.push_kv("nextToken", &smithy_http::query::fmt_string(&inner_19)); + } + if let Some(inner_20) = &self.max_results { + query.push_kv("maxResults", &smithy_http::query::fmt_default(&inner_20)); + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("GET").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`ListUpdatesInput`](crate::input::ListUpdatesInput) + pub fn builder() -> crate::input::list_updates_input::Builder { + crate::input::list_updates_input::Builder::default() + } +} + +/// See [`TagResourceInput`](crate::input::TagResourceInput) +pub mod tag_resource_input { + /// A builder for [`TagResourceInput`](crate::input::TagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources + /// are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`TagResourceInput`](crate::input::TagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::TagResourceInput { + resource_arn: self.resource_arn, + tags: self.tags, + }) + } + } +} +#[doc(hidden)] +pub type TagResourceInputOperationOutputAlias = crate::operation::TagResource; +#[doc(hidden)] +pub type TagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl TagResourceInput { + /// Consumes the builder and constructs an Operation<[`TagResource`](crate::operation::TagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::TagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_tag_resource(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::TagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("TagResource", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } +} + +/// See [`UntagResourceInput`](crate::input::UntagResourceInput) +pub mod untag_resource_input { + /// A builder for [`UntagResourceInput`](crate::input::UntagResourceInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resource_arn: std::option::Option, + pub(crate) tag_keys: std::option::Option>, + } + impl Builder { + ///

    The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported + /// resources are Amazon EKS clusters and managed node groups.

    + pub fn resource_arn(mut self, input: impl Into) -> Self { + self.resource_arn = Some(input.into()); + self + } + pub fn set_resource_arn(mut self, input: std::option::Option) -> Self { + self.resource_arn = input; + self + } + pub fn tag_keys(mut self, input: impl Into) -> Self { + let mut v = self.tag_keys.unwrap_or_default(); + v.push(input.into()); + self.tag_keys = Some(v); + self + } + pub fn set_tag_keys( + mut self, + input: std::option::Option>, + ) -> Self { + self.tag_keys = input; + self + } + /// Consumes the builder and constructs a [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::UntagResourceInput { + resource_arn: self.resource_arn, + tag_keys: self.tag_keys, + }) + } + } +} +#[doc(hidden)] +pub type UntagResourceInputOperationOutputAlias = crate::operation::UntagResource; +#[doc(hidden)] +pub type UntagResourceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UntagResourceInput { + /// Consumes the builder and constructs an Operation<[`UntagResource`](crate::operation::UntagResource)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + &self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UntagResource, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + let request = self.request_builder_base()?; + let body = smithy_http::body::SdkBody::from(""); + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UntagResource::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UntagResource", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{resourceArn}", resourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) + } + fn uri_query(&self, mut output: &mut String) { + let mut query = smithy_http::query::Writer::new(&mut output); + if let Some(inner_21) = &self.tag_keys { + for inner_22 in inner_21 { + query.push_kv("tagKeys", &smithy_http::query::fmt_string(&inner_22)); + } + } + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + self.uri_query(&mut uri); + Ok(builder.method("DELETE").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } +} + +/// See [`UpdateAddonInput`](crate::input::UpdateAddonInput) +pub mod update_addon_input { + /// A builder for [`UpdateAddonInput`](crate::input::UpdateAddonInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) addon_name: std::option::Option, + pub(crate) addon_version: std::option::Option, + pub(crate) service_account_role_arn: std::option::Option, + pub(crate) resolve_conflicts: std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.addon_version = Some(input.into()); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.addon_version = input; + self + } + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub fn service_account_role_arn(mut self, input: impl Into) -> Self { + self.service_account_role_arn = Some(input.into()); + self + } + pub fn set_service_account_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.service_account_role_arn = input; + self + } + ///

    How to resolve parameter value conflicts when applying the new version of the add-on + /// to the cluster.

    + pub fn resolve_conflicts(mut self, input: crate::model::ResolveConflicts) -> Self { + self.resolve_conflicts = Some(input); + self + } + pub fn set_resolve_conflicts( + mut self, + input: std::option::Option, + ) -> Self { + self.resolve_conflicts = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`UpdateAddonInput`](crate::input::UpdateAddonInput) + pub fn build( + self, + ) -> std::result::Result + { + Ok(crate::input::UpdateAddonInput { + cluster_name: self.cluster_name, + addon_name: self.addon_name, + addon_version: self.addon_version, + service_account_role_arn: self.service_account_role_arn, + resolve_conflicts: self.resolve_conflicts, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type UpdateAddonInputOperationOutputAlias = crate::operation::UpdateAddon; +#[doc(hidden)] +pub type UpdateAddonInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UpdateAddonInput { + /// Consumes the builder and constructs an Operation<[`UpdateAddon`](crate::operation::UpdateAddon)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UpdateAddon, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = + crate::operation_ser::serialize_operation_update_addon(&self).map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UpdateAddon::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new("UpdateAddon", "eks")); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let addon_name = { + let input = &self.addon_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "addon_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/addons/{addonName}/update", + clusterName = cluster_name, + addonName = addon_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UpdateAddonInput`](crate::input::UpdateAddonInput) + pub fn builder() -> crate::input::update_addon_input::Builder { + crate::input::update_addon_input::Builder::default() + } +} + +/// See [`UpdateClusterConfigInput`](crate::input::UpdateClusterConfigInput) +pub mod update_cluster_config_input { + /// A builder for [`UpdateClusterConfigInput`](crate::input::UpdateClusterConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) resources_vpc_config: std::option::Option, + pub(crate) logging: std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster to update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    An object representing the VPC configuration to use for an Amazon EKS cluster.

    + pub fn resources_vpc_config(mut self, input: crate::model::VpcConfigRequest) -> Self { + self.resources_vpc_config = Some(input); + self + } + pub fn set_resources_vpc_config( + mut self, + input: std::option::Option, + ) -> Self { + self.resources_vpc_config = input; + self + } + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub fn logging(mut self, input: crate::model::Logging) -> Self { + self.logging = Some(input); + self + } + pub fn set_logging(mut self, input: std::option::Option) -> Self { + self.logging = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`UpdateClusterConfigInput`](crate::input::UpdateClusterConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::UpdateClusterConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::UpdateClusterConfigInput { + name: self.name, + resources_vpc_config: self.resources_vpc_config, + logging: self.logging, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type UpdateClusterConfigInputOperationOutputAlias = crate::operation::UpdateClusterConfig; +#[doc(hidden)] +pub type UpdateClusterConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UpdateClusterConfigInput { + /// Consumes the builder and constructs an Operation<[`UpdateClusterConfig`](crate::operation::UpdateClusterConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UpdateClusterConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_update_cluster_config(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UpdateClusterConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UpdateClusterConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/clusters/{name}/update-config", name = name) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UpdateClusterConfigInput`](crate::input::UpdateClusterConfigInput) + pub fn builder() -> crate::input::update_cluster_config_input::Builder { + crate::input::update_cluster_config_input::Builder::default() + } +} + +/// See [`UpdateClusterVersionInput`](crate::input::UpdateClusterVersionInput) +pub mod update_cluster_version_input { + /// A builder for [`UpdateClusterVersionInput`](crate::input::UpdateClusterVersionInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster to update.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The desired Kubernetes version following a successful update.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`UpdateClusterVersionInput`](crate::input::UpdateClusterVersionInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::UpdateClusterVersionInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::UpdateClusterVersionInput { + name: self.name, + version: self.version, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type UpdateClusterVersionInputOperationOutputAlias = crate::operation::UpdateClusterVersion; +#[doc(hidden)] +pub type UpdateClusterVersionInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UpdateClusterVersionInput { + /// Consumes the builder and constructs an Operation<[`UpdateClusterVersion`](crate::operation::UpdateClusterVersion)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UpdateClusterVersion, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_update_cluster_version(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UpdateClusterVersion::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UpdateClusterVersion", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/clusters/{name}/updates", name = name).expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UpdateClusterVersionInput`](crate::input::UpdateClusterVersionInput) + pub fn builder() -> crate::input::update_cluster_version_input::Builder { + crate::input::update_cluster_version_input::Builder::default() + } +} + +/// See [`UpdateNodegroupConfigInput`](crate::input::UpdateNodegroupConfigInput) +pub mod update_nodegroup_config_input { + /// A builder for [`UpdateNodegroupConfigInput`](crate::input::UpdateNodegroupConfigInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) labels: std::option::Option, + pub(crate) taints: std::option::Option, + pub(crate) scaling_config: std::option::Option, + pub(crate) update_config: std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster that the managed node group resides in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the managed node group to update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The Kubernetes labels to be applied to the nodes in the node group after the + /// update.

    + pub fn labels(mut self, input: crate::model::UpdateLabelsPayload) -> Self { + self.labels = Some(input); + self + } + pub fn set_labels( + mut self, + input: std::option::Option, + ) -> Self { + self.labels = input; + self + } + ///

    The Kubernetes taints to be applied to the nodes in the node group after the + /// update.

    + pub fn taints(mut self, input: crate::model::UpdateTaintsPayload) -> Self { + self.taints = Some(input); + self + } + pub fn set_taints( + mut self, + input: std::option::Option, + ) -> Self { + self.taints = input; + self + } + ///

    The scaling configuration details for the Auto Scaling group after the update.

    + pub fn scaling_config(mut self, input: crate::model::NodegroupScalingConfig) -> Self { + self.scaling_config = Some(input); + self + } + pub fn set_scaling_config( + mut self, + input: std::option::Option, + ) -> Self { + self.scaling_config = input; + self + } + pub fn update_config(mut self, input: crate::model::NodegroupUpdateConfig) -> Self { + self.update_config = Some(input); + self + } + pub fn set_update_config( + mut self, + input: std::option::Option, + ) -> Self { + self.update_config = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`UpdateNodegroupConfigInput`](crate::input::UpdateNodegroupConfigInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::UpdateNodegroupConfigInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::UpdateNodegroupConfigInput { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + labels: self.labels, + taints: self.taints, + scaling_config: self.scaling_config, + update_config: self.update_config, + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type UpdateNodegroupConfigInputOperationOutputAlias = crate::operation::UpdateNodegroupConfig; +#[doc(hidden)] +pub type UpdateNodegroupConfigInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UpdateNodegroupConfigInput { + /// Consumes the builder and constructs an Operation<[`UpdateNodegroupConfig`](crate::operation::UpdateNodegroupConfig)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UpdateNodegroupConfig, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_update_nodegroup_config(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UpdateNodegroupConfig::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UpdateNodegroupConfig", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let nodegroup_name = { + let input = &self.nodegroup_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups/{nodegroupName}/update-config", + clusterName = cluster_name, + nodegroupName = nodegroup_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UpdateNodegroupConfigInput`](crate::input::UpdateNodegroupConfigInput) + pub fn builder() -> crate::input::update_nodegroup_config_input::Builder { + crate::input::update_nodegroup_config_input::Builder::default() + } +} + +/// See [`UpdateNodegroupVersionInput`](crate::input::UpdateNodegroupVersionInput) +pub mod update_nodegroup_version_input { + /// A builder for [`UpdateNodegroupVersionInput`](crate::input::UpdateNodegroupVersionInput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_name: std::option::Option, + pub(crate) nodegroup_name: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) release_version: std::option::Option, + pub(crate) launch_template: std::option::Option, + pub(crate) force: std::option::Option, + pub(crate) client_request_token: std::option::Option, + } + impl Builder { + ///

    The name of the Amazon EKS cluster that is associated with the managed node group to + /// update.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The name of the managed node group to update.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The Kubernetes version to update to. If no version is specified, then the Kubernetes + /// version of the node group does not change. You can specify the Kubernetes version of the + /// cluster to update the node group to the latest AMI version of the cluster's Kubernetes + /// version. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// version, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the + /// latest available AMI version for the node group's Kubernetes version is used. For more + /// information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the + /// Amazon EKS User Guide. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// releaseVersion, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub fn release_version(mut self, input: impl Into) -> Self { + self.release_version = Some(input.into()); + self + } + pub fn set_release_version( + mut self, + input: std::option::Option, + ) -> Self { + self.release_version = input; + self + } + ///

    An object representing a node group's launch template specification. You can only + /// update a node group using a launch template if the node group was originally deployed + /// with a launch template.

    + pub fn launch_template(mut self, input: crate::model::LaunchTemplateSpecification) -> Self { + self.launch_template = Some(input); + self + } + pub fn set_launch_template( + mut self, + input: std::option::Option, + ) -> Self { + self.launch_template = input; + self + } + ///

    Force the update if the existing node group's pods are unable to be drained due to a + /// pod disruption budget issue. If an update fails because pods could not be drained, you + /// can force the update after it fails to terminate the old node whether or not any pods + /// are running on the node.

    + pub fn force(mut self, input: bool) -> Self { + self.force = Some(input); + self + } + pub fn set_force(mut self, input: std::option::Option) -> Self { + self.force = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + /// Consumes the builder and constructs a [`UpdateNodegroupVersionInput`](crate::input::UpdateNodegroupVersionInput) + pub fn build( + self, + ) -> std::result::Result< + crate::input::UpdateNodegroupVersionInput, + smithy_http::operation::BuildError, + > { + Ok(crate::input::UpdateNodegroupVersionInput { + cluster_name: self.cluster_name, + nodegroup_name: self.nodegroup_name, + version: self.version, + release_version: self.release_version, + launch_template: self.launch_template, + force: self.force.unwrap_or_default(), + client_request_token: self.client_request_token, + }) + } + } +} +#[doc(hidden)] +pub type UpdateNodegroupVersionInputOperationOutputAlias = crate::operation::UpdateNodegroupVersion; +#[doc(hidden)] +pub type UpdateNodegroupVersionInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; +impl UpdateNodegroupVersionInput { + /// Consumes the builder and constructs an Operation<[`UpdateNodegroupVersion`](crate::operation::UpdateNodegroupVersion)> + #[allow(clippy::let_and_return)] + pub fn make_operation( + mut self, + _config: &crate::config::Config, + ) -> std::result::Result< + smithy_http::operation::Operation< + crate::operation::UpdateNodegroupVersion, + aws_http::AwsErrorRetryPolicy, + >, + smithy_http::operation::BuildError, + > { + Ok({ + if self.client_request_token.is_none() { + self.client_request_token = Some(_config.make_token.make_idempotency_token()); + } + let request = self.request_builder_base()?; + let body = crate::operation_ser::serialize_operation_update_nodegroup_version(&self) + .map_err(|err| { + smithy_http::operation::BuildError::SerializationError(err.into()) + })?; + let request = Self::assemble(request, body); + #[allow(unused_mut)] + let mut request = + smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); + request + .config_mut() + .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( + crate::API_METADATA.clone(), + )); + #[allow(unused_mut)] + let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); + request.config_mut().insert(signing_config); + request + .config_mut() + .insert(aws_types::SigningService::from_static( + _config.signing_service(), + )); + aws_endpoint::set_endpoint_resolver( + &mut request.config_mut(), + _config.endpoint_resolver.clone(), + ); + if let Some(region) = &_config.region { + request.config_mut().insert(region.clone()); + } + aws_auth::set_provider( + &mut request.config_mut(), + _config.credentials_provider.clone(), + ); + let op = smithy_http::operation::Operation::new( + request, + crate::operation::UpdateNodegroupVersion::new(), + ) + .with_metadata(smithy_http::operation::Metadata::new( + "UpdateNodegroupVersion", + "eks", + )); + let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); + op + }) + } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let cluster_name = { + let input = &self.cluster_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "cluster_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let nodegroup_name = { + let input = &self.nodegroup_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "nodegroup_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!( + output, + "/clusters/{clusterName}/node-groups/{nodegroupName}/update-version", + clusterName = cluster_name, + nodegroupName = nodegroup_name + ) + .expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } + #[allow(clippy::unnecessary_wraps)] + fn request_builder_base( + &self, + ) -> std::result::Result { + let builder = http::request::Builder::new(); + let builder = builder.header("Content-Type", "application/json"); + self.update_http_builder(builder) + } + fn assemble( + mut builder: http::request::Builder, + body: smithy_http::body::SdkBody, + ) -> http::request::Request { + if let Some(content_length) = body.content_length() { + builder = builder.header(http::header::CONTENT_LENGTH, content_length) + } + builder.body(body).expect("should be valid request") + } + /// Creates a new builder-style object to manufacture [`UpdateNodegroupVersionInput`](crate::input::UpdateNodegroupVersionInput) + pub fn builder() -> crate::input::update_nodegroup_version_input::Builder { + crate::input::update_nodegroup_version_input::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateNodegroupVersionInput { + ///

    The name of the Amazon EKS cluster that is associated with the managed node group to + /// update.

    + pub cluster_name: std::option::Option, + ///

    The name of the managed node group to update.

    + pub nodegroup_name: std::option::Option, + ///

    The Kubernetes version to update to. If no version is specified, then the Kubernetes + /// version of the node group does not change. You can specify the Kubernetes version of the + /// cluster to update the node group to the latest AMI version of the cluster's Kubernetes + /// version. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// version, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub version: std::option::Option, + ///

    The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the + /// latest available AMI version for the node group's Kubernetes version is used. For more + /// information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the + /// Amazon EKS User Guide. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify + /// releaseVersion, or the node group update will fail. + /// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub release_version: std::option::Option, + ///

    An object representing a node group's launch template specification. You can only + /// update a node group using a launch template if the node group was originally deployed + /// with a launch template.

    + pub launch_template: std::option::Option, + ///

    Force the update if the existing node group's pods are unable to be drained due to a + /// pod disruption budget issue. If an update fails because pods could not be drained, you + /// can force the update after it fails to terminate the old node whether or not any pods + /// are running on the node.

    + pub force: bool, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for UpdateNodegroupVersionInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateNodegroupVersionInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("version", &self.version); + formatter.field("release_version", &self.release_version); + formatter.field("launch_template", &self.launch_template); + formatter.field("force", &self.force); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateNodegroupConfigInput { + ///

    The name of the Amazon EKS cluster that the managed node group resides in.

    + pub cluster_name: std::option::Option, + ///

    The name of the managed node group to update.

    + pub nodegroup_name: std::option::Option, + ///

    The Kubernetes labels to be applied to the nodes in the node group after the + /// update.

    + pub labels: std::option::Option, + ///

    The Kubernetes taints to be applied to the nodes in the node group after the + /// update.

    + pub taints: std::option::Option, + ///

    The scaling configuration details for the Auto Scaling group after the update.

    + pub scaling_config: std::option::Option, + pub update_config: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for UpdateNodegroupConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateNodegroupConfigInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("labels", &self.labels); + formatter.field("taints", &self.taints); + formatter.field("scaling_config", &self.scaling_config); + formatter.field("update_config", &self.update_config); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateClusterVersionInput { + ///

    The name of the Amazon EKS cluster to update.

    + pub name: std::option::Option, + ///

    The desired Kubernetes version following a successful update.

    + pub version: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for UpdateClusterVersionInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateClusterVersionInput"); + formatter.field("name", &self.name); + formatter.field("version", &self.version); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateClusterConfigInput { + ///

    The name of the Amazon EKS cluster to update.

    + pub name: std::option::Option, + ///

    An object representing the VPC configuration to use for an Amazon EKS cluster.

    + pub resources_vpc_config: std::option::Option, + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub logging: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for UpdateClusterConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateClusterConfigInput"); + formatter.field("name", &self.name); + formatter.field("resources_vpc_config", &self.resources_vpc_config); + formatter.field("logging", &self.logging); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateAddonInput { + ///

    The name of the cluster.

    + pub cluster_name: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub addon_version: std::option::Option, + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub service_account_role_arn: std::option::Option, + ///

    How to resolve parameter value conflicts when applying the new version of the add-on + /// to the cluster.

    + pub resolve_conflicts: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for UpdateAddonInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateAddonInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("addon_version", &self.addon_version); + formatter.field("service_account_role_arn", &self.service_account_role_arn); + formatter.field("resolve_conflicts", &self.resolve_conflicts); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceInput { + ///

    The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported + /// resources are Amazon EKS clusters and managed node groups.

    + pub resource_arn: std::option::Option, + ///

    The keys of the tags to be removed.

    + pub tag_keys: std::option::Option>, +} +impl std::fmt::Debug for UntagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tag_keys", &self.tag_keys); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceInput { + ///

    The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources + /// are Amazon EKS clusters and managed node groups.

    + pub resource_arn: std::option::Option, + ///

    The tags to add to the resource. A tag is an array of key-value pairs.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for TagResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListUpdatesInput { + ///

    The name of the Amazon EKS cluster to list updates for.

    + pub name: std::option::Option, + ///

    The name of the Amazon EKS managed node group to list updates for.

    + pub nodegroup_name: std::option::Option, + ///

    The names of the installed add-ons that have available updates.

    + pub addon_name: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// ListUpdates request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub next_token: std::option::Option, + ///

    The maximum number of update results returned by ListUpdates in paginated + /// output. When you use this parameter, ListUpdates returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListUpdates request with the returned nextToken value. + /// This value can be between 1 and 100. If you don't use this + /// parameter, ListUpdates returns up to 100 results and a + /// nextToken value if applicable.

    + pub max_results: std::option::Option, +} +impl std::fmt::Debug for ListUpdatesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListUpdatesInput"); + formatter.field("name", &self.name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("next_token", &self.next_token); + formatter.field("max_results", &self.max_results); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceInput { + ///

    The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the + /// supported resources are Amazon EKS clusters and managed node groups.

    + pub resource_arn: std::option::Option, +} +impl std::fmt::Debug for ListTagsForResourceInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceInput"); + formatter.field("resource_arn", &self.resource_arn); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListNodegroupsInput { + ///

    The name of the Amazon EKS cluster that you would like to list node groups in.

    + pub cluster_name: std::option::Option, + ///

    The maximum number of node group results returned by ListNodegroups in + /// paginated output. When you use this parameter, ListNodegroups returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListNodegroups request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListNodegroups returns up to 100 + /// results and a nextToken value if applicable.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// ListNodegroups request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListNodegroupsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListNodegroupsInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListIdentityProviderConfigsInput { + ///

    The cluster name that you want to list identity provider configurations for.

    + pub cluster_name: std::option::Option, + ///

    The maximum number of identity provider configurations returned by + /// ListIdentityProviderConfigs in paginated output. When you use this + /// parameter, ListIdentityProviderConfigs returns only maxResults + /// results in a single page along with a nextToken response element. You can + /// see the remaining results of the initial request by sending another + /// ListIdentityProviderConfigs request with the returned + /// nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, + /// ListIdentityProviderConfigs returns up to 100 results + /// and a nextToken value, if applicable.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// IdentityProviderConfigsRequest where maxResults was used + /// and the results exceeded the value of that parameter. Pagination continues from the end + /// of the previous results that returned the nextToken value.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListIdentityProviderConfigsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListIdentityProviderConfigsInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListFargateProfilesInput { + ///

    The name of the Amazon EKS cluster that you would like to listFargate profiles in.

    + pub cluster_name: std::option::Option, + ///

    The maximum number of Fargate profile results returned by + /// ListFargateProfiles in paginated output. When you use this parameter, + /// ListFargateProfiles returns only maxResults results in a + /// single page along with a nextToken response element. You can see the + /// remaining results of the initial request by sending another + /// ListFargateProfiles request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListFargateProfiles returns up to 100 + /// results and a nextToken value if applicable.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// ListFargateProfiles request where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListFargateProfilesInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListFargateProfilesInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListClustersInput { + ///

    The maximum number of cluster results returned by ListClusters in + /// paginated output. When you use this parameter, ListClusters returns only + /// maxResults results in a single page along with a nextToken + /// response element. You can see the remaining results of the initial request by sending + /// another ListClusters request with the returned nextToken + /// value. This value can be between 1 and 100. If you don't + /// use this parameter, ListClusters returns up to 100 + /// results and a nextToken value if applicable.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// ListClusters request where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListClustersInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListClustersInput"); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListAddonsInput { + ///

    The name of the cluster.

    + pub cluster_name: std::option::Option, + ///

    The maximum number of add-on results returned by ListAddonsRequest in + /// paginated output. When you use this parameter, ListAddonsRequest returns + /// only maxResults results in a single page along with a + /// nextToken response element. You can see the remaining results of the + /// initial request by sending another ListAddonsRequest request with the + /// returned nextToken value. This value can be between 1 and + /// 100. If you don't use this parameter, ListAddonsRequest + /// returns up to 100 results and a nextToken value, if + /// applicable.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// ListAddonsRequest where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListAddonsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListAddonsInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisassociateIdentityProviderConfigInput { + ///

    The name of the cluster to disassociate an identity provider from.

    + pub cluster_name: std::option::Option, + ///

    An object that represents an identity provider configuration.

    + pub identity_provider_config: std::option::Option, + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for DisassociateIdentityProviderConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisassociateIdentityProviderConfigInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("identity_provider_config", &self.identity_provider_config); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeUpdateInput { + ///

    The name of the Amazon EKS cluster associated with the update.

    + pub name: std::option::Option, + ///

    The ID of the update to describe.

    + pub update_id: std::option::Option, + ///

    The name of the Amazon EKS node group associated with the update.

    + pub nodegroup_name: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, +} +impl std::fmt::Debug for DescribeUpdateInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeUpdateInput"); + formatter.field("name", &self.name); + formatter.field("update_id", &self.update_id); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("addon_name", &self.addon_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeNodegroupInput { + ///

    The name of the Amazon EKS cluster associated with the node group.

    + pub cluster_name: std::option::Option, + ///

    The name of the node group to describe.

    + pub nodegroup_name: std::option::Option, +} +impl std::fmt::Debug for DescribeNodegroupInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeNodegroupInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeIdentityProviderConfigInput { + ///

    The cluster name that the identity provider configuration is associated to.

    + pub cluster_name: std::option::Option, + ///

    An object that represents an identity provider configuration.

    + pub identity_provider_config: std::option::Option, +} +impl std::fmt::Debug for DescribeIdentityProviderConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeIdentityProviderConfigInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("identity_provider_config", &self.identity_provider_config); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeFargateProfileInput { + ///

    The name of the Amazon EKS cluster associated with the Fargate profile.

    + pub cluster_name: std::option::Option, + ///

    The name of the Fargate profile to describe.

    + pub fargate_profile_name: std::option::Option, +} +impl std::fmt::Debug for DescribeFargateProfileInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeFargateProfileInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeClusterInput { + ///

    The name of the cluster to describe.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for DescribeClusterInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeClusterInput"); + formatter.field("name", &self.name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAddonVersionsInput { + ///

    The Kubernetes versions that the add-on can be used with.

    + pub kubernetes_version: std::option::Option, + ///

    The maximum number of results to return.

    + pub max_results: std::option::Option, + ///

    The nextToken value returned from a previous paginated + /// DescribeAddonVersionsRequest where maxResults was used and + /// the results exceeded the value of that parameter. Pagination continues from the end of + /// the previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub next_token: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, +} +impl std::fmt::Debug for DescribeAddonVersionsInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAddonVersionsInput"); + formatter.field("kubernetes_version", &self.kubernetes_version); + formatter.field("max_results", &self.max_results); + formatter.field("next_token", &self.next_token); + formatter.field("addon_name", &self.addon_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAddonInput { + ///

    The name of the cluster.

    + pub cluster_name: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, +} +impl std::fmt::Debug for DescribeAddonInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAddonInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("addon_name", &self.addon_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteNodegroupInput { + ///

    The name of the Amazon EKS cluster that is associated with your node group.

    + pub cluster_name: std::option::Option, + ///

    The name of the node group to delete.

    + pub nodegroup_name: std::option::Option, +} +impl std::fmt::Debug for DeleteNodegroupInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteNodegroupInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteFargateProfileInput { + ///

    The name of the Amazon EKS cluster associated with the Fargate profile to delete.

    + pub cluster_name: std::option::Option, + ///

    The name of the Fargate profile to delete.

    + pub fargate_profile_name: std::option::Option, +} +impl std::fmt::Debug for DeleteFargateProfileInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteFargateProfileInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteClusterInput { + ///

    The name of the cluster to delete.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for DeleteClusterInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteClusterInput"); + formatter.field("name", &self.name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAddonInput { + ///

    The name of the cluster to delete the add-on from.

    + pub cluster_name: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, +} +impl std::fmt::Debug for DeleteAddonInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAddonInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("addon_name", &self.addon_name); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateNodegroupInput { + ///

    The name of the cluster to create the node group in.

    + pub cluster_name: std::option::Option, + ///

    The unique name to give your node group.

    + pub nodegroup_name: std::option::Option, + ///

    The scaling configuration details for the Auto Scaling group that is created for your + /// node group.

    + pub scaling_config: std::option::Option, + ///

    The root device disk size (in GiB) for your node group instances. The default disk + /// size is 20 GiB. If you specify launchTemplate, then don't specify diskSize, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub disk_size: std::option::Option, + ///

    The subnets to use for the Auto Scaling group that is created for your node group. + /// If you specify launchTemplate, then don't specify + /// SubnetId + /// in your launch template, or the node group + /// deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub subnets: std::option::Option>, + ///

    Specify the instance types for a node group. If you specify a GPU instance type, be + /// sure to specify AL2_x86_64_GPU with the amiType parameter. If + /// you specify launchTemplate, then you can specify zero or one instance type + /// in your launch template or you can specify 0-20 instance types for + /// instanceTypes. If however, you specify an instance type in your launch + /// template and specify any instanceTypes, the node group + /// deployment will fail. If you don't specify an instance type in a launch template or for + /// instanceTypes, then t3.medium is used, by default. If you + /// specify Spot for capacityType, then we recommend specifying + /// multiple values for instanceTypes. For more information, see Managed node group capacity types and Launch template support in + /// the Amazon EKS User Guide.

    + pub instance_types: std::option::Option>, + ///

    The AMI type for your node group. GPU instance types should use the + /// AL2_x86_64_GPU AMI type. Non-GPU instances should use the + /// AL2_x86_64 AMI type. Arm instances should use the + /// AL2_ARM_64 AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub ami_type: std::option::Option, + ///

    The remote access (SSH) configuration to use with your node group. If you specify launchTemplate, + /// then don't specify remoteAccess, or the node group deployment + /// will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub remote_access: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker + /// node kubelet daemon makes calls to AWS APIs on your behalf. Nodes receive + /// permissions for these API calls through an IAM instance profile and associated + /// policies. Before you can launch nodes and register them into a cluster, you must create + /// an IAM role for those nodes to use when they are launched. For more information, see + /// Amazon EKS node IAM role in the + /// Amazon EKS User Guide + /// . + /// If you specify launchTemplate, then don't specify + /// IamInstanceProfile + /// in your launch template, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub node_role: std::option::Option, + ///

    The Kubernetes labels to be applied to the nodes in the node group when they are + /// created.

    + pub labels: + std::option::Option>, + ///

    The Kubernetes taints to be applied to the nodes in the node group.

    + pub taints: std::option::Option>, + ///

    The metadata to apply to the node group to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Node group tags do not propagate to any other resources associated with the node + /// group, such as the Amazon EC2 instances or subnets.

    + pub tags: + std::option::Option>, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, + ///

    An object representing a node group's launch template specification. If specified, + /// then do not specify instanceTypes, diskSize, or + /// remoteAccess and make sure that the launch template meets the + /// requirements in launchTemplateSpecification.

    + pub launch_template: std::option::Option, + pub update_config: std::option::Option, + ///

    The capacity type for your node group.

    + pub capacity_type: std::option::Option, + ///

    The Kubernetes version to use for your managed nodes. By default, the Kubernetes + /// version of the cluster is used, and this is the only accepted specified value. + /// If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify version, + /// or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub version: std::option::Option, + ///

    The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, + /// the latest available AMI version for the node group's current Kubernetes version is + /// used. For more information, see Amazon EKS + /// optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify launchTemplate, + /// and your launch template uses a custom AMI, then don't specify releaseVersion, or the node group + /// deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    + pub release_version: std::option::Option, +} +impl std::fmt::Debug for CreateNodegroupInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateNodegroupInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("scaling_config", &self.scaling_config); + formatter.field("disk_size", &self.disk_size); + formatter.field("subnets", &self.subnets); + formatter.field("instance_types", &self.instance_types); + formatter.field("ami_type", &self.ami_type); + formatter.field("remote_access", &self.remote_access); + formatter.field("node_role", &self.node_role); + formatter.field("labels", &self.labels); + formatter.field("taints", &self.taints); + formatter.field("tags", &self.tags); + formatter.field("client_request_token", &self.client_request_token); + formatter.field("launch_template", &self.launch_template); + formatter.field("update_config", &self.update_config); + formatter.field("capacity_type", &self.capacity_type); + formatter.field("version", &self.version); + formatter.field("release_version", &self.release_version); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateFargateProfileInput { + ///

    The name of the Fargate profile.

    + pub fargate_profile_name: std::option::Option, + ///

    The name of the Amazon EKS cluster to apply the Fargate profile to.

    + pub cluster_name: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in + /// the Fargate profile. The pod execution role allows Fargate infrastructure to register with + /// your cluster as a node, and it provides read access to Amazon ECR image repositories. For + /// more information, see Pod Execution Role in the + /// Amazon EKS User Guide.

    + pub pod_execution_role_arn: std::option::Option, + ///

    The IDs of subnets to launch your pods into. At this time, pods running on Fargate are + /// not assigned public IP addresses, so only private subnets (with no direct route to an + /// Internet Gateway) are accepted for this parameter.

    + pub subnets: std::option::Option>, + ///

    The selectors to match for pods to use this Fargate profile. Each selector must have an + /// associated namespace. Optionally, you can also specify labels for a namespace. You may + /// specify up to five selectors in a Fargate profile.

    + pub selectors: std::option::Option>, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, + ///

    The metadata to apply to the Fargate profile to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Fargate profile tags do not propagate to any other resources associated with the + /// Fargate profile, such as the pods that are scheduled with it.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for CreateFargateProfileInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateFargateProfileInput"); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("pod_execution_role_arn", &self.pod_execution_role_arn); + formatter.field("subnets", &self.subnets); + formatter.field("selectors", &self.selectors); + formatter.field("client_request_token", &self.client_request_token); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateClusterInput { + ///

    The unique name to give to your cluster.

    + pub name: std::option::Option, + ///

    The desired Kubernetes version for your cluster. If you don't specify a value here, + /// the latest version available in Amazon EKS is used.

    + pub version: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control + /// plane to make calls to AWS API operations on your behalf. For more information, see + /// Amazon EKS + /// Service IAM Role in the + /// Amazon EKS User Guide + /// .

    + pub role_arn: std::option::Option, + ///

    The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have + /// specific requirements to work properly with Kubernetes. For more information, see Cluster VPC + /// Considerations and Cluster Security Group Considerations in the + /// Amazon EKS User Guide. You must specify at least two subnets. You can specify up to five + /// security groups, but we recommend that you use a dedicated security group for your + /// cluster control plane.

    + pub resources_vpc_config: std::option::Option, + ///

    The Kubernetes network configuration for the cluster.

    + pub kubernetes_network_config: + std::option::Option, + ///

    Enable or disable exporting the Kubernetes control plane logs for your cluster to + /// CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more + /// information, see Amazon EKS Cluster Control Plane Logs in the + /// + /// Amazon EKS User Guide + /// .

    + /// + ///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported + /// control plane logs. For more information, see Amazon CloudWatch Pricing.

    + ///
    + pub logging: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, + ///

    The metadata to apply to the cluster to assist with categorization and organization. + /// Each tag consists of a key and an optional value, both of which you define.

    + pub tags: + std::option::Option>, + ///

    The encryption configuration for the cluster.

    + pub encryption_config: std::option::Option>, +} +impl std::fmt::Debug for CreateClusterInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateClusterInput"); + formatter.field("name", &self.name); + formatter.field("version", &self.version); + formatter.field("role_arn", &self.role_arn); + formatter.field("resources_vpc_config", &self.resources_vpc_config); + formatter.field("kubernetes_network_config", &self.kubernetes_network_config); + formatter.field("logging", &self.logging); + formatter.field("client_request_token", &self.client_request_token); + formatter.field("tags", &self.tags); + formatter.field("encryption_config", &self.encryption_config); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateAddonInput { + ///

    The name of the cluster to create the add-on for.

    + pub cluster_name: std::option::Option, + ///

    The name of the add-on. The name must match one of the names returned by + /// ListAddons + /// .

    + pub addon_name: std::option::Option, + ///

    The version of the add-on. The version must match one of the versions returned by + /// DescribeAddonVersions + /// .

    + pub addon_version: std::option::Option, + ///

    The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the + /// permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.

    + /// + ///

    To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for + /// your cluster. For more information, see Enabling + /// IAM roles for service accounts on your cluster in the + /// Amazon EKS User Guide.

    + ///
    + pub service_account_role_arn: std::option::Option, + ///

    How to resolve parameter value conflicts when migrating an existing add-on to an Amazon EKS + /// add-on.

    + pub resolve_conflicts: std::option::Option, + ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, + ///

    The metadata to apply to the cluster to assist with categorization and organization. + /// Each tag consists of a key and an optional value, both of which you define.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for CreateAddonInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateAddonInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("addon_name", &self.addon_name); + formatter.field("addon_version", &self.addon_version); + formatter.field("service_account_role_arn", &self.service_account_role_arn); + formatter.field("resolve_conflicts", &self.resolve_conflicts); + formatter.field("client_request_token", &self.client_request_token); + formatter.field("tags", &self.tags); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AssociateIdentityProviderConfigInput { + ///

    The name of the cluster to associate the configuration to.

    + pub cluster_name: std::option::Option, + ///

    An object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub oidc: std::option::Option, + ///

    The metadata to apply to the configuration to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define.

    + pub tags: + std::option::Option>, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for AssociateIdentityProviderConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AssociateIdentityProviderConfigInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("oidc", &self.oidc); + formatter.field("tags", &self.tags); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AssociateEncryptionConfigInput { + ///

    The name of the cluster that you are associating with encryption configuration.

    + pub cluster_name: std::option::Option, + ///

    The configuration you are using for encryption.

    + pub encryption_config: std::option::Option>, + ///

    The client request token you are using with the encryption configuration.

    + pub client_request_token: std::option::Option, +} +impl std::fmt::Debug for AssociateEncryptionConfigInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AssociateEncryptionConfigInput"); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("encryption_config", &self.encryption_config); + formatter.field("client_request_token", &self.client_request_token); + formatter.finish() + } +} diff --git a/sdk/eks/src/json_deser.rs b/sdk/eks/src/json_deser.rs new file mode 100644 index 000000000000..47a13bbde2a3 --- /dev/null +++ b/sdk/eks/src/json_deser.rs @@ -0,0 +1,4777 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_client_exceptionjson_err( + input: &[u8], + mut builder: crate::error::client_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fargateProfileName" => { + builder = builder.set_fargate_profile_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_request_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fargateProfileName" => { + builder = builder.set_fargate_profile_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_server_exceptionjson_err( + input: &[u8], + mut builder: crate::error::server_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_associate_encryption_config( + input: &[u8], + mut builder: crate::output::associate_encryption_config_output::Builder, +) -> Result< + crate::output::associate_encryption_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_associate_identity_provider_config( + input: &[u8], + mut builder: crate::output::associate_identity_provider_config_output::Builder, +) -> Result< + crate::output::associate_identity_provider_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_addon( + input: &[u8], + mut builder: crate::output::create_addon_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addon" => { + builder = + builder.set_addon(crate::json_deser::deser_structure_addon(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_limit_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_service_unavailable_exceptionjson_err( + input: &[u8], + mut builder: crate::error::service_unavailable_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_availability_zone_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_availability_zone_exception::Builder, +) -> Result< + crate::error::unsupported_availability_zone_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validZones" => { + builder = builder + .set_valid_zones(crate::json_deser::deser_list_string_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_cluster( + input: &[u8], + mut builder: crate::output::create_cluster_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_fargate_profile( + input: &[u8], + mut builder: crate::output::create_fargate_profile_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fargateProfile" => { + builder = builder.set_fargate_profile( + crate::json_deser::deser_structure_fargate_profile(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_nodegroup( + input: &[u8], + mut builder: crate::output::create_nodegroup_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nodegroup" => { + builder = builder + .set_nodegroup(crate::json_deser::deser_structure_nodegroup(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_addon( + input: &[u8], + mut builder: crate::output::delete_addon_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addon" => { + builder = + builder.set_addon(crate::json_deser::deser_structure_addon(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_cluster( + input: &[u8], + mut builder: crate::output::delete_cluster_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_fargate_profile( + input: &[u8], + mut builder: crate::output::delete_fargate_profile_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fargateProfile" => { + builder = builder.set_fargate_profile( + crate::json_deser::deser_structure_fargate_profile(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_nodegroup( + input: &[u8], + mut builder: crate::output::delete_nodegroup_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nodegroup" => { + builder = builder + .set_nodegroup(crate::json_deser::deser_structure_nodegroup(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_addon( + input: &[u8], + mut builder: crate::output::describe_addon_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addon" => { + builder = + builder.set_addon(crate::json_deser::deser_structure_addon(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_addon_versions( + input: &[u8], + mut builder: crate::output::describe_addon_versions_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addons" => { + builder = builder.set_addons(crate::json_deser::deser_list_addons(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_cluster( + input: &[u8], + mut builder: crate::output::describe_cluster_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cluster" => { + builder = builder + .set_cluster(crate::json_deser::deser_structure_cluster(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_fargate_profile( + input: &[u8], + mut builder: crate::output::describe_fargate_profile_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fargateProfile" => { + builder = builder.set_fargate_profile( + crate::json_deser::deser_structure_fargate_profile(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_identity_provider_config( + input: &[u8], + mut builder: crate::output::describe_identity_provider_config_output::Builder, +) -> Result< + crate::output::describe_identity_provider_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "identityProviderConfig" => { + builder = builder.set_identity_provider_config( + crate::json_deser::deser_structure_identity_provider_config_response( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_nodegroup( + input: &[u8], + mut builder: crate::output::describe_nodegroup_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nodegroup" => { + builder = builder + .set_nodegroup(crate::json_deser::deser_structure_nodegroup(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_update( + input: &[u8], + mut builder: crate::output::describe_update_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_disassociate_identity_provider_config( + input: &[u8], + mut builder: crate::output::disassociate_identity_provider_config_output::Builder, +) -> Result< + crate::output::disassociate_identity_provider_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_addons( + input: &[u8], + mut builder: crate::output::list_addons_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addons" => { + builder = + builder.set_addons(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_clusters( + input: &[u8], + mut builder: crate::output::list_clusters_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusters" => { + builder = builder + .set_clusters(crate::json_deser::deser_list_string_list(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_fargate_profiles( + input: &[u8], + mut builder: crate::output::list_fargate_profiles_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fargateProfileNames" => { + builder = builder.set_fargate_profile_names( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_identity_provider_configs( + input: &[u8], + mut builder: crate::output::list_identity_provider_configs_output::Builder, +) -> Result< + crate::output::list_identity_provider_configs_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "identityProviderConfigs" => { + builder = builder.set_identity_provider_configs( + crate::json_deser::deser_list_identity_provider_configs(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_nodegroups( + input: &[u8], + mut builder: crate::output::list_nodegroups_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroups" => { + builder = builder + .set_nodegroups(crate::json_deser::deser_list_string_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_bad_request_exceptionjson_err( + input: &[u8], + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_tags_for_resource( + input: &[u8], + mut builder: crate::output::list_tags_for_resource_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_updates( + input: &[u8], + mut builder: crate::output::list_updates_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "updateIds" => { + builder = builder + .set_update_ids(crate::json_deser::deser_list_string_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_addon( + input: &[u8], + mut builder: crate::output::update_addon_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_cluster_config( + input: &[u8], + mut builder: crate::output::update_cluster_config_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_cluster_version( + input: &[u8], + mut builder: crate::output::update_cluster_version_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_nodegroup_config( + input: &[u8], + mut builder: crate::output::update_nodegroup_config_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_nodegroup_version( + input: &[u8], + mut builder: crate::output::update_nodegroup_version_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "update" => { + builder = + builder.set_update(crate::json_deser::deser_structure_update(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_update<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Update::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::UpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::UpdateType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "params" => { + builder = builder.set_params( + crate::json_deser::deser_list_update_params(tokens)?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "errors" => { + builder = builder.set_errors( + crate::json_deser::deser_list_error_details(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tag_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_addon<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Addon::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AddonStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "addonVersion" => { + builder = builder.set_addon_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "health" => { + builder = builder.set_health( + crate::json_deser::deser_structure_addon_health(tokens)?, + ); + } + "addonArn" => { + builder = builder.set_addon_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "modifiedAt" => { + builder = builder.set_modified_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "serviceAccountRoleArn" => { + builder = builder.set_service_account_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_cluster<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Cluster::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpoint" => { + builder = builder.set_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourcesVpcConfig" => { + builder = builder.set_resources_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + "kubernetesNetworkConfig" => { + builder = builder.set_kubernetes_network_config( + crate::json_deser::deser_structure_kubernetes_network_config_response(tokens)? + ); + } + "logging" => { + builder = builder.set_logging( + crate::json_deser::deser_structure_logging(tokens)?, + ); + } + "identity" => { + builder = builder.set_identity( + crate::json_deser::deser_structure_identity(tokens)?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ClusterStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "certificateAuthority" => { + builder = builder.set_certificate_authority( + crate::json_deser::deser_structure_certificate(tokens)?, + ); + } + "clientRequestToken" => { + builder = builder.set_client_request_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "platformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + "encryptionConfig" => { + builder = builder.set_encryption_config( + crate::json_deser::deser_list_encryption_config_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fargate_profile<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FargateProfile::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fargateProfileName" => { + builder = builder.set_fargate_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fargateProfileArn" => { + builder = builder.set_fargate_profile_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "podExecutionRoleArn" => { + builder = builder.set_pod_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "subnets" => { + builder = builder.set_subnets( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "selectors" => { + builder = builder.set_selectors( + crate::json_deser::deser_list_fargate_profile_selectors( + tokens, + )?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FargateProfileStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_nodegroup<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Nodegroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nodegroupName" => { + builder = builder.set_nodegroup_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nodegroupArn" => { + builder = builder.set_nodegroup_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "releaseVersion" => { + builder = builder.set_release_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "modifiedAt" => { + builder = builder.set_modified_at( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NodegroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "capacityType" => { + builder = builder.set_capacity_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CapacityTypes::from(u.as_ref())) + }) + .transpose()?, + ); + } + "scalingConfig" => { + builder = builder.set_scaling_config( + crate::json_deser::deser_structure_nodegroup_scaling_config( + tokens, + )?, + ); + } + "instanceTypes" => { + builder = builder.set_instance_types( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "subnets" => { + builder = builder.set_subnets( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "remoteAccess" => { + builder = builder.set_remote_access( + crate::json_deser::deser_structure_remote_access_config( + tokens, + )?, + ); + } + "amiType" => { + builder = builder.set_ami_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AmiTypes::from(u.as_ref())) + }) + .transpose()?, + ); + } + "nodeRole" => { + builder = builder.set_node_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "labels" => { + builder = builder + .set_labels(crate::json_deser::deser_map_labels_map(tokens)?); + } + "taints" => { + builder = builder + .set_taints(crate::json_deser::deser_list_taints_list(tokens)?); + } + "resources" => { + builder = builder.set_resources( + crate::json_deser::deser_structure_nodegroup_resources(tokens)?, + ); + } + "diskSize" => { + builder = builder.set_disk_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "health" => { + builder = builder.set_health( + crate::json_deser::deser_structure_nodegroup_health(tokens)?, + ); + } + "updateConfig" => { + builder = builder.set_update_config( + crate::json_deser::deser_structure_nodegroup_update_config( + tokens, + )?, + ); + } + "launchTemplate" => { + builder = builder.set_launch_template( + crate::json_deser::deser_structure_launch_template_specification(tokens)? + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_addons<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_addon_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_identity_provider_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IdentityProviderConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "oidc" => { + builder = builder.set_oidc( + crate::json_deser::deser_structure_oidc_identity_provider_config(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_identity_provider_configs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_identity_provider_config(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_update_params<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_update_param(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_error_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_error_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_addon_health<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AddonHealth::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "issues" => { + builder = builder.set_issues( + crate::json_deser::deser_list_addon_issue_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_vpc_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VpcConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "subnetIds" => { + builder = builder.set_subnet_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "securityGroupIds" => { + builder = builder.set_security_group_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "clusterSecurityGroupId" => { + builder = builder.set_cluster_security_group_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "vpcId" => { + builder = builder.set_vpc_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endpointPublicAccess" => { + builder = builder.set_endpoint_public_access( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "endpointPrivateAccess" => { + builder = builder.set_endpoint_private_access( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "publicAccessCidrs" => { + builder = builder.set_public_access_cidrs( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kubernetes_network_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KubernetesNetworkConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "serviceIpv4Cidr" => { + builder = builder.set_service_ipv4_cidr( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_logging<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Logging::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterLogging" => { + builder = builder.set_cluster_logging( + crate::json_deser::deser_list_log_setups(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Identity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "oidc" => { + builder = builder + .set_oidc(crate::json_deser::deser_structure_oidc(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_certificate<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Certificate::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "data" => { + builder = builder.set_data( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_encryption_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_encryption_config(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_fargate_profile_selectors<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_fargate_profile_selector(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_nodegroup_scaling_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodegroupScalingConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "minSize" => { + builder = builder.set_min_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxSize" => { + builder = builder.set_max_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "desiredSize" => { + builder = builder.set_desired_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_remote_access_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RemoteAccessConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ec2SshKey" => { + builder = builder.set_ec2_ssh_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "sourceSecurityGroups" => { + builder = builder.set_source_security_groups( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_labels_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_taints_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_taint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_nodegroup_resources<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodegroupResources::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "autoScalingGroups" => { + builder = builder.set_auto_scaling_groups( + crate::json_deser::deser_list_auto_scaling_group_list(tokens)?, + ); + } + "remoteAccessSecurityGroup" => { + builder = builder.set_remote_access_security_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_nodegroup_health<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodegroupHealth::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "issues" => { + builder = builder + .set_issues(crate::json_deser::deser_list_issue_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_nodegroup_update_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NodegroupUpdateConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "maxUnavailable" => { + builder = builder.set_max_unavailable( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxUnavailablePercentage" => { + builder = builder.set_max_unavailable_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_launch_template_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LaunchTemplateSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_addon_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AddonInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addonName" => { + builder = builder.set_addon_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "addonVersions" => { + builder = builder.set_addon_versions( + crate::json_deser::deser_list_addon_version_info_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_oidc_identity_provider_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OidcIdentityProviderConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "identityProviderConfigName" => { + builder = builder.set_identity_provider_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "identityProviderConfigArn" => { + builder = builder.set_identity_provider_config_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clusterName" => { + builder = builder.set_cluster_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "issuerUrl" => { + builder = builder.set_issuer_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "clientId" => { + builder = builder.set_client_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "usernameClaim" => { + builder = builder.set_username_claim( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "usernamePrefix" => { + builder = builder.set_username_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "groupsClaim" => { + builder = builder.set_groups_claim( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "groupsPrefix" => { + builder = builder.set_groups_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "requiredClaims" => { + builder = builder.set_required_claims( + crate::json_deser::deser_map_required_claims_map(tokens)?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tag_map(tokens)?); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConfigStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_identity_provider_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IdentityProviderConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_update_param<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UpdateParam::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::UpdateParamType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_error_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ErrorDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "errorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ErrorCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "errorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceIds" => { + builder = builder.set_resource_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_addon_issue_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_addon_issue(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_setups<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_log_setup(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_oidc<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Oidc::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "issuer" => { + builder = builder.set_issuer( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_encryption_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EncryptionConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resources" => { + builder = builder.set_resources( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "provider" => { + builder = builder.set_provider( + crate::json_deser::deser_structure_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fargate_profile_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FargateProfileSelector::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "namespace" => { + builder = builder.set_namespace( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "labels" => { + builder = builder.set_labels( + crate::json_deser::deser_map_fargate_profile_label(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_taint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Taint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "effect" => { + builder = builder.set_effect( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TaintEffect::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_scaling_group_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_auto_scaling_group(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_issue_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_issue(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_addon_version_info_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_addon_version_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_required_claims_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_addon_issue<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AddonIssue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AddonIssueCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceIds" => { + builder = builder.set_resource_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_log_setup<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LogSetup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "types" => { + builder = builder + .set_types(crate::json_deser::deser_list_log_types(tokens)?); + } + "enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_provider<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Provider::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "keyArn" => { + builder = builder.set_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_fargate_profile_label<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_scaling_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoScalingGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_issue<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Issue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NodegroupIssueCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceIds" => { + builder = builder.set_resource_ids( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_addon_version_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AddonVersionInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "addonVersion" => { + builder = builder.set_addon_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "architecture" => { + builder = builder.set_architecture( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "compatibilities" => { + builder = builder.set_compatibilities( + crate::json_deser::deser_list_compatibilities(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_log_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compatibilities<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_compatibility(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_compatibility<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Compatibility::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "clusterVersion" => { + builder = builder.set_cluster_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "platformVersions" => { + builder = builder.set_platform_versions( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "defaultVersion" => { + builder = builder.set_default_version( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/eks/src/json_errors.rs b/sdk/eks/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/eks/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/eks/src/json_ser.rs b/sdk/eks/src/json_ser.rs new file mode 100644 index 000000000000..afeacadfa256 --- /dev/null +++ b/sdk/eks/src/json_ser.rs @@ -0,0 +1,743 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn serialize_structure_associate_encryption_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::AssociateEncryptionConfigInput, +) { + if let Some(var_1) = &input.client_request_token { + object.key("clientRequestToken").string(var_1); + } + if let Some(var_2) = &input.encryption_config { + let mut array_3 = object.key("encryptionConfig").start_array(); + for item_4 in var_2 { + { + let mut object_5 = array_3.value().start_object(); + crate::json_ser::serialize_structure_encryption_config(&mut object_5, item_4); + object_5.finish(); + } + } + array_3.finish(); + } +} + +pub fn serialize_structure_associate_identity_provider_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::AssociateIdentityProviderConfigInput, +) { + if let Some(var_6) = &input.client_request_token { + object.key("clientRequestToken").string(var_6); + } + if let Some(var_7) = &input.oidc { + let mut object_8 = object.key("oidc").start_object(); + crate::json_ser::serialize_structure_oidc_identity_provider_config_request( + &mut object_8, + var_7, + ); + object_8.finish(); + } + if let Some(var_9) = &input.tags { + let mut object_10 = object.key("tags").start_object(); + for (key_11, value_12) in var_9 { + { + object_10.key(key_11).string(value_12); + } + } + object_10.finish(); + } +} + +pub fn serialize_structure_create_addon_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CreateAddonInput, +) { + if let Some(var_13) = &input.addon_name { + object.key("addonName").string(var_13); + } + if let Some(var_14) = &input.addon_version { + object.key("addonVersion").string(var_14); + } + if let Some(var_15) = &input.client_request_token { + object.key("clientRequestToken").string(var_15); + } + if let Some(var_16) = &input.resolve_conflicts { + object.key("resolveConflicts").string(var_16.as_str()); + } + if let Some(var_17) = &input.service_account_role_arn { + object.key("serviceAccountRoleArn").string(var_17); + } + if let Some(var_18) = &input.tags { + let mut object_19 = object.key("tags").start_object(); + for (key_20, value_21) in var_18 { + { + object_19.key(key_20).string(value_21); + } + } + object_19.finish(); + } +} + +pub fn serialize_structure_create_cluster_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CreateClusterInput, +) { + if let Some(var_22) = &input.client_request_token { + object.key("clientRequestToken").string(var_22); + } + if let Some(var_23) = &input.encryption_config { + let mut array_24 = object.key("encryptionConfig").start_array(); + for item_25 in var_23 { + { + let mut object_26 = array_24.value().start_object(); + crate::json_ser::serialize_structure_encryption_config(&mut object_26, item_25); + object_26.finish(); + } + } + array_24.finish(); + } + if let Some(var_27) = &input.kubernetes_network_config { + let mut object_28 = object.key("kubernetesNetworkConfig").start_object(); + crate::json_ser::serialize_structure_kubernetes_network_config_request( + &mut object_28, + var_27, + ); + object_28.finish(); + } + if let Some(var_29) = &input.logging { + let mut object_30 = object.key("logging").start_object(); + crate::json_ser::serialize_structure_logging(&mut object_30, var_29); + object_30.finish(); + } + if let Some(var_31) = &input.name { + object.key("name").string(var_31); + } + if let Some(var_32) = &input.resources_vpc_config { + let mut object_33 = object.key("resourcesVpcConfig").start_object(); + crate::json_ser::serialize_structure_vpc_config_request(&mut object_33, var_32); + object_33.finish(); + } + if let Some(var_34) = &input.role_arn { + object.key("roleArn").string(var_34); + } + if let Some(var_35) = &input.tags { + let mut object_36 = object.key("tags").start_object(); + for (key_37, value_38) in var_35 { + { + object_36.key(key_37).string(value_38); + } + } + object_36.finish(); + } + if let Some(var_39) = &input.version { + object.key("version").string(var_39); + } +} + +pub fn serialize_structure_create_fargate_profile_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CreateFargateProfileInput, +) { + if let Some(var_40) = &input.client_request_token { + object.key("clientRequestToken").string(var_40); + } + if let Some(var_41) = &input.fargate_profile_name { + object.key("fargateProfileName").string(var_41); + } + if let Some(var_42) = &input.pod_execution_role_arn { + object.key("podExecutionRoleArn").string(var_42); + } + if let Some(var_43) = &input.selectors { + let mut array_44 = object.key("selectors").start_array(); + for item_45 in var_43 { + { + let mut object_46 = array_44.value().start_object(); + crate::json_ser::serialize_structure_fargate_profile_selector( + &mut object_46, + item_45, + ); + object_46.finish(); + } + } + array_44.finish(); + } + if let Some(var_47) = &input.subnets { + let mut array_48 = object.key("subnets").start_array(); + for item_49 in var_47 { + { + array_48.value().string(item_49); + } + } + array_48.finish(); + } + if let Some(var_50) = &input.tags { + let mut object_51 = object.key("tags").start_object(); + for (key_52, value_53) in var_50 { + { + object_51.key(key_52).string(value_53); + } + } + object_51.finish(); + } +} + +pub fn serialize_structure_create_nodegroup_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::CreateNodegroupInput, +) { + if let Some(var_54) = &input.ami_type { + object.key("amiType").string(var_54.as_str()); + } + if let Some(var_55) = &input.capacity_type { + object.key("capacityType").string(var_55.as_str()); + } + if let Some(var_56) = &input.client_request_token { + object.key("clientRequestToken").string(var_56); + } + if let Some(var_57) = &input.disk_size { + object.key("diskSize").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_57).into()), + ); + } + if let Some(var_58) = &input.instance_types { + let mut array_59 = object.key("instanceTypes").start_array(); + for item_60 in var_58 { + { + array_59.value().string(item_60); + } + } + array_59.finish(); + } + if let Some(var_61) = &input.labels { + let mut object_62 = object.key("labels").start_object(); + for (key_63, value_64) in var_61 { + { + object_62.key(key_63).string(value_64); + } + } + object_62.finish(); + } + if let Some(var_65) = &input.launch_template { + let mut object_66 = object.key("launchTemplate").start_object(); + crate::json_ser::serialize_structure_launch_template_specification(&mut object_66, var_65); + object_66.finish(); + } + if let Some(var_67) = &input.node_role { + object.key("nodeRole").string(var_67); + } + if let Some(var_68) = &input.nodegroup_name { + object.key("nodegroupName").string(var_68); + } + if let Some(var_69) = &input.release_version { + object.key("releaseVersion").string(var_69); + } + if let Some(var_70) = &input.remote_access { + let mut object_71 = object.key("remoteAccess").start_object(); + crate::json_ser::serialize_structure_remote_access_config(&mut object_71, var_70); + object_71.finish(); + } + if let Some(var_72) = &input.scaling_config { + let mut object_73 = object.key("scalingConfig").start_object(); + crate::json_ser::serialize_structure_nodegroup_scaling_config(&mut object_73, var_72); + object_73.finish(); + } + if let Some(var_74) = &input.subnets { + let mut array_75 = object.key("subnets").start_array(); + for item_76 in var_74 { + { + array_75.value().string(item_76); + } + } + array_75.finish(); + } + if let Some(var_77) = &input.tags { + let mut object_78 = object.key("tags").start_object(); + for (key_79, value_80) in var_77 { + { + object_78.key(key_79).string(value_80); + } + } + object_78.finish(); + } + if let Some(var_81) = &input.taints { + let mut array_82 = object.key("taints").start_array(); + for item_83 in var_81 { + { + let mut object_84 = array_82.value().start_object(); + crate::json_ser::serialize_structure_taint(&mut object_84, item_83); + object_84.finish(); + } + } + array_82.finish(); + } + if let Some(var_85) = &input.update_config { + let mut object_86 = object.key("updateConfig").start_object(); + crate::json_ser::serialize_structure_nodegroup_update_config(&mut object_86, var_85); + object_86.finish(); + } + if let Some(var_87) = &input.version { + object.key("version").string(var_87); + } +} + +pub fn serialize_structure_describe_identity_provider_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DescribeIdentityProviderConfigInput, +) { + if let Some(var_88) = &input.identity_provider_config { + let mut object_89 = object.key("identityProviderConfig").start_object(); + crate::json_ser::serialize_structure_identity_provider_config(&mut object_89, var_88); + object_89.finish(); + } +} + +pub fn serialize_structure_disassociate_identity_provider_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::DisassociateIdentityProviderConfigInput, +) { + if let Some(var_90) = &input.client_request_token { + object.key("clientRequestToken").string(var_90); + } + if let Some(var_91) = &input.identity_provider_config { + let mut object_92 = object.key("identityProviderConfig").start_object(); + crate::json_ser::serialize_structure_identity_provider_config(&mut object_92, var_91); + object_92.finish(); + } +} + +pub fn serialize_structure_tag_resource_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::TagResourceInput, +) { + if let Some(var_93) = &input.tags { + let mut object_94 = object.key("tags").start_object(); + for (key_95, value_96) in var_93 { + { + object_94.key(key_95).string(value_96); + } + } + object_94.finish(); + } +} + +pub fn serialize_structure_update_addon_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UpdateAddonInput, +) { + if let Some(var_97) = &input.addon_version { + object.key("addonVersion").string(var_97); + } + if let Some(var_98) = &input.client_request_token { + object.key("clientRequestToken").string(var_98); + } + if let Some(var_99) = &input.resolve_conflicts { + object.key("resolveConflicts").string(var_99.as_str()); + } + if let Some(var_100) = &input.service_account_role_arn { + object.key("serviceAccountRoleArn").string(var_100); + } +} + +pub fn serialize_structure_update_cluster_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UpdateClusterConfigInput, +) { + if let Some(var_101) = &input.client_request_token { + object.key("clientRequestToken").string(var_101); + } + if let Some(var_102) = &input.logging { + let mut object_103 = object.key("logging").start_object(); + crate::json_ser::serialize_structure_logging(&mut object_103, var_102); + object_103.finish(); + } + if let Some(var_104) = &input.resources_vpc_config { + let mut object_105 = object.key("resourcesVpcConfig").start_object(); + crate::json_ser::serialize_structure_vpc_config_request(&mut object_105, var_104); + object_105.finish(); + } +} + +pub fn serialize_structure_update_cluster_version_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UpdateClusterVersionInput, +) { + if let Some(var_106) = &input.client_request_token { + object.key("clientRequestToken").string(var_106); + } + if let Some(var_107) = &input.version { + object.key("version").string(var_107); + } +} + +pub fn serialize_structure_update_nodegroup_config_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UpdateNodegroupConfigInput, +) { + if let Some(var_108) = &input.client_request_token { + object.key("clientRequestToken").string(var_108); + } + if let Some(var_109) = &input.labels { + let mut object_110 = object.key("labels").start_object(); + crate::json_ser::serialize_structure_update_labels_payload(&mut object_110, var_109); + object_110.finish(); + } + if let Some(var_111) = &input.scaling_config { + let mut object_112 = object.key("scalingConfig").start_object(); + crate::json_ser::serialize_structure_nodegroup_scaling_config(&mut object_112, var_111); + object_112.finish(); + } + if let Some(var_113) = &input.taints { + let mut object_114 = object.key("taints").start_object(); + crate::json_ser::serialize_structure_update_taints_payload(&mut object_114, var_113); + object_114.finish(); + } + if let Some(var_115) = &input.update_config { + let mut object_116 = object.key("updateConfig").start_object(); + crate::json_ser::serialize_structure_nodegroup_update_config(&mut object_116, var_115); + object_116.finish(); + } +} + +pub fn serialize_structure_update_nodegroup_version_input( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::input::UpdateNodegroupVersionInput, +) { + if let Some(var_117) = &input.client_request_token { + object.key("clientRequestToken").string(var_117); + } + if input.force { + object.key("force").boolean(input.force); + } + if let Some(var_118) = &input.launch_template { + let mut object_119 = object.key("launchTemplate").start_object(); + crate::json_ser::serialize_structure_launch_template_specification( + &mut object_119, + var_118, + ); + object_119.finish(); + } + if let Some(var_120) = &input.release_version { + object.key("releaseVersion").string(var_120); + } + if let Some(var_121) = &input.version { + object.key("version").string(var_121); + } +} + +pub fn serialize_structure_encryption_config( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::EncryptionConfig, +) { + if let Some(var_122) = &input.resources { + let mut array_123 = object.key("resources").start_array(); + for item_124 in var_122 { + { + array_123.value().string(item_124); + } + } + array_123.finish(); + } + if let Some(var_125) = &input.provider { + let mut object_126 = object.key("provider").start_object(); + crate::json_ser::serialize_structure_provider(&mut object_126, var_125); + object_126.finish(); + } +} + +pub fn serialize_structure_oidc_identity_provider_config_request( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::OidcIdentityProviderConfigRequest, +) { + if let Some(var_127) = &input.identity_provider_config_name { + object.key("identityProviderConfigName").string(var_127); + } + if let Some(var_128) = &input.issuer_url { + object.key("issuerUrl").string(var_128); + } + if let Some(var_129) = &input.client_id { + object.key("clientId").string(var_129); + } + if let Some(var_130) = &input.username_claim { + object.key("usernameClaim").string(var_130); + } + if let Some(var_131) = &input.username_prefix { + object.key("usernamePrefix").string(var_131); + } + if let Some(var_132) = &input.groups_claim { + object.key("groupsClaim").string(var_132); + } + if let Some(var_133) = &input.groups_prefix { + object.key("groupsPrefix").string(var_133); + } + if let Some(var_134) = &input.required_claims { + let mut object_135 = object.key("requiredClaims").start_object(); + for (key_136, value_137) in var_134 { + { + object_135.key(key_136).string(value_137); + } + } + object_135.finish(); + } +} + +pub fn serialize_structure_kubernetes_network_config_request( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::KubernetesNetworkConfigRequest, +) { + if let Some(var_138) = &input.service_ipv4_cidr { + object.key("serviceIpv4Cidr").string(var_138); + } +} + +pub fn serialize_structure_logging( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::Logging, +) { + if let Some(var_139) = &input.cluster_logging { + let mut array_140 = object.key("clusterLogging").start_array(); + for item_141 in var_139 { + { + let mut object_142 = array_140.value().start_object(); + crate::json_ser::serialize_structure_log_setup(&mut object_142, item_141); + object_142.finish(); + } + } + array_140.finish(); + } +} + +pub fn serialize_structure_vpc_config_request( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::VpcConfigRequest, +) { + if let Some(var_143) = &input.subnet_ids { + let mut array_144 = object.key("subnetIds").start_array(); + for item_145 in var_143 { + { + array_144.value().string(item_145); + } + } + array_144.finish(); + } + if let Some(var_146) = &input.security_group_ids { + let mut array_147 = object.key("securityGroupIds").start_array(); + for item_148 in var_146 { + { + array_147.value().string(item_148); + } + } + array_147.finish(); + } + if let Some(var_149) = &input.endpoint_public_access { + object.key("endpointPublicAccess").boolean(*var_149); + } + if let Some(var_150) = &input.endpoint_private_access { + object.key("endpointPrivateAccess").boolean(*var_150); + } + if let Some(var_151) = &input.public_access_cidrs { + let mut array_152 = object.key("publicAccessCidrs").start_array(); + for item_153 in var_151 { + { + array_152.value().string(item_153); + } + } + array_152.finish(); + } +} + +pub fn serialize_structure_fargate_profile_selector( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::FargateProfileSelector, +) { + if let Some(var_154) = &input.namespace { + object.key("namespace").string(var_154); + } + if let Some(var_155) = &input.labels { + let mut object_156 = object.key("labels").start_object(); + for (key_157, value_158) in var_155 { + { + object_156.key(key_157).string(value_158); + } + } + object_156.finish(); + } +} + +pub fn serialize_structure_launch_template_specification( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::LaunchTemplateSpecification, +) { + if let Some(var_159) = &input.name { + object.key("name").string(var_159); + } + if let Some(var_160) = &input.version { + object.key("version").string(var_160); + } + if let Some(var_161) = &input.id { + object.key("id").string(var_161); + } +} + +pub fn serialize_structure_remote_access_config( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::RemoteAccessConfig, +) { + if let Some(var_162) = &input.ec2_ssh_key { + object.key("ec2SshKey").string(var_162); + } + if let Some(var_163) = &input.source_security_groups { + let mut array_164 = object.key("sourceSecurityGroups").start_array(); + for item_165 in var_163 { + { + array_164.value().string(item_165); + } + } + array_164.finish(); + } +} + +pub fn serialize_structure_nodegroup_scaling_config( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::NodegroupScalingConfig, +) { + if let Some(var_166) = &input.min_size { + object.key("minSize").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_166).into()), + ); + } + if let Some(var_167) = &input.max_size { + object.key("maxSize").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_167).into()), + ); + } + if let Some(var_168) = &input.desired_size { + object.key("desiredSize").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_168).into()), + ); + } +} + +pub fn serialize_structure_taint( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::Taint, +) { + if let Some(var_169) = &input.key { + object.key("key").string(var_169); + } + if let Some(var_170) = &input.value { + object.key("value").string(var_170); + } + if let Some(var_171) = &input.effect { + object.key("effect").string(var_171.as_str()); + } +} + +pub fn serialize_structure_nodegroup_update_config( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::NodegroupUpdateConfig, +) { + if let Some(var_172) = &input.max_unavailable { + object.key("maxUnavailable").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_172).into()), + ); + } + if let Some(var_173) = &input.max_unavailable_percentage { + object.key("maxUnavailablePercentage").number( + #[allow(clippy::useless_conversion)] + smithy_types::Number::NegInt((*var_173).into()), + ); + } +} + +pub fn serialize_structure_identity_provider_config( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::IdentityProviderConfig, +) { + if let Some(var_174) = &input.r#type { + object.key("type").string(var_174); + } + if let Some(var_175) = &input.name { + object.key("name").string(var_175); + } +} + +pub fn serialize_structure_update_labels_payload( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::UpdateLabelsPayload, +) { + if let Some(var_176) = &input.add_or_update_labels { + let mut object_177 = object.key("addOrUpdateLabels").start_object(); + for (key_178, value_179) in var_176 { + { + object_177.key(key_178).string(value_179); + } + } + object_177.finish(); + } + if let Some(var_180) = &input.remove_labels { + let mut array_181 = object.key("removeLabels").start_array(); + for item_182 in var_180 { + { + array_181.value().string(item_182); + } + } + array_181.finish(); + } +} + +pub fn serialize_structure_update_taints_payload( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::UpdateTaintsPayload, +) { + if let Some(var_183) = &input.add_or_update_taints { + let mut array_184 = object.key("addOrUpdateTaints").start_array(); + for item_185 in var_183 { + { + let mut object_186 = array_184.value().start_object(); + crate::json_ser::serialize_structure_taint(&mut object_186, item_185); + object_186.finish(); + } + } + array_184.finish(); + } + if let Some(var_187) = &input.remove_taints { + let mut array_188 = object.key("removeTaints").start_array(); + for item_189 in var_187 { + { + let mut object_190 = array_188.value().start_object(); + crate::json_ser::serialize_structure_taint(&mut object_190, item_189); + object_190.finish(); + } + } + array_188.finish(); + } +} + +pub fn serialize_structure_provider( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::Provider, +) { + if let Some(var_191) = &input.key_arn { + object.key("keyArn").string(var_191); + } +} + +pub fn serialize_structure_log_setup( + object: &mut smithy_json::serialize::JsonObjectWriter, + input: &crate::model::LogSetup, +) { + if let Some(var_192) = &input.types { + let mut array_193 = object.key("types").start_array(); + for item_194 in var_192 { + { + array_193.value().string(item_194.as_str()); + } + } + array_193.finish(); + } + if let Some(var_195) = &input.enabled { + object.key("enabled").boolean(*var_195); + } +} diff --git a/sdk/eks/src/lib.rs b/sdk/eks/src/lib.rs new file mode 100644 index 000000000000..6f0e5424c438 --- /dev/null +++ b/sdk/eks/src/lib.rs @@ -0,0 +1,49 @@ +#![allow(clippy::module_inception)] +#![allow(clippy::upper_case_acronyms)] +#![allow(clippy::large_enum_variant)] +#![allow(clippy::wrong_self_convention)] +#![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] +//!

    Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on +//! AWS without needing to stand up or maintain your own Kubernetes control plane. +//! Kubernetes is an open-source system for automating the deployment, scaling, and +//! management of containerized applications.

    +//!

    Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so you can use +//! all the existing plugins and tooling from the Kubernetes community. Applications running +//! on Amazon EKS are fully compatible with applications running on any standard Kubernetes +//! environment, whether running in on-premises data centers or public clouds. This means +//! that you can easily migrate any standard Kubernetes application to Amazon EKS without any +//! code modification required.

    + +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use error_meta::Error; + +pub use config::Config; + +mod aws_endpoint; +#[cfg(feature = "client")] +pub mod client; +pub mod config; +pub mod error; +mod error_meta; +mod idempotency_token; +pub mod input; +mod json_deser; +mod json_errors; +mod json_ser; +pub mod model; +pub mod operation; +mod operation_deser; +mod operation_ser; +pub mod output; +pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); +pub use smithy_http::byte_stream::ByteStream; +pub use smithy_http::result::SdkError; +pub use smithy_types::Blob; +static API_METADATA: aws_http::user_agent::ApiMetadata = + aws_http::user_agent::ApiMetadata::new("eks", PKG_VERSION); +pub use aws_auth::Credentials; +pub use aws_types::region::Region; +#[cfg(feature = "client")] +pub use client::Client; +pub use smithy_http::endpoint::Endpoint; diff --git a/sdk/eks/src/model.rs b/sdk/eks/src/model.rs new file mode 100644 index 000000000000..d247c7a74916 --- /dev/null +++ b/sdk/eks/src/model.rs @@ -0,0 +1,5498 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

    An object representing an asynchronous update.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Update { + ///

    A UUID that is used to track the update.

    + pub id: std::option::Option, + ///

    The current status of the update.

    + pub status: std::option::Option, + ///

    The type of the update.

    + pub r#type: std::option::Option, + ///

    A key-value map that contains the parameters associated with the update.

    + pub params: std::option::Option>, + ///

    The Unix epoch timestamp in seconds for when the update was created.

    + pub created_at: std::option::Option, + ///

    Any errors associated with a Failed update.

    + pub errors: std::option::Option>, +} +impl std::fmt::Debug for Update { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Update"); + formatter.field("id", &self.id); + formatter.field("status", &self.status); + formatter.field("r#type", &self.r#type); + formatter.field("params", &self.params); + formatter.field("created_at", &self.created_at); + formatter.field("errors", &self.errors); + formatter.finish() + } +} +/// See [`Update`](crate::model::Update) +pub mod update { + /// A builder for [`Update`](crate::model::Update) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) id: std::option::Option, + pub(crate) status: std::option::Option, + pub(crate) r#type: std::option::Option, + pub(crate) params: std::option::Option>, + pub(crate) created_at: std::option::Option, + pub(crate) errors: std::option::Option>, + } + impl Builder { + ///

    A UUID that is used to track the update.

    + pub fn id(mut self, input: impl Into) -> Self { + self.id = Some(input.into()); + self + } + pub fn set_id(mut self, input: std::option::Option) -> Self { + self.id = input; + self + } + ///

    The current status of the update.

    + pub fn status(mut self, input: crate::model::UpdateStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + ///

    The type of the update.

    + pub fn r#type(mut self, input: crate::model::UpdateType) -> Self { + self.r#type = Some(input); + self + } + pub fn set_type(mut self, input: std::option::Option) -> Self { + self.r#type = input; + self + } + pub fn params(mut self, input: impl Into) -> Self { + let mut v = self.params.unwrap_or_default(); + v.push(input.into()); + self.params = Some(v); + self + } + pub fn set_params( + mut self, + input: std::option::Option>, + ) -> Self { + self.params = input; + self + } + ///

    The Unix epoch timestamp in seconds for when the update was created.

    + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + pub fn errors(mut self, input: impl Into) -> Self { + let mut v = self.errors.unwrap_or_default(); + v.push(input.into()); + self.errors = Some(v); + self + } + pub fn set_errors( + mut self, + input: std::option::Option>, + ) -> Self { + self.errors = input; + self + } + /// Consumes the builder and constructs a [`Update`](crate::model::Update) + pub fn build(self) -> crate::model::Update { + crate::model::Update { + id: self.id, + status: self.status, + r#type: self.r#type, + params: self.params, + created_at: self.created_at, + errors: self.errors, + } + } + } +} +impl Update { + /// Creates a new builder-style object to manufacture [`Update`](crate::model::Update) + pub fn builder() -> crate::model::update::Builder { + crate::model::update::Builder::default() + } +} + +///

    An object representing an error when an asynchronous operation fails.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ErrorDetail { + ///

    A brief description of the error.

    + ///
      + ///
    • + ///

      + /// SubnetNotFound: We couldn't find one of the + /// subnets associated with the cluster.

      + ///
    • + ///
    • + ///

      + /// SecurityGroupNotFound: We couldn't find one + /// of the security groups associated with the cluster.

      + ///
    • + ///
    • + ///

      + /// EniLimitReached: You have reached the elastic + /// network interface limit for your account.

      + ///
    • + ///
    • + ///

      + /// IpNotAvailable: A subnet associated with the + /// cluster doesn't have any free IP addresses.

      + ///
    • + ///
    • + ///

      + /// AccessDenied: You don't have permissions to + /// perform the specified operation.

      + ///
    • + ///
    • + ///

      + /// OperationNotPermitted: The service role + /// associated with the cluster doesn't have the required access permissions for + /// Amazon EKS.

      + ///
    • + ///
    • + ///

      + /// VpcIdNotFound: We couldn't find the VPC + /// associated with the cluster.

      + ///
    • + ///
    + pub error_code: std::option::Option, + ///

    A more complete description of the error.

    + pub error_message: std::option::Option, + ///

    An optional field that contains the resource IDs associated with the error.

    + pub resource_ids: std::option::Option>, +} +impl std::fmt::Debug for ErrorDetail { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ErrorDetail"); + formatter.field("error_code", &self.error_code); + formatter.field("error_message", &self.error_message); + formatter.field("resource_ids", &self.resource_ids); + formatter.finish() + } +} +/// See [`ErrorDetail`](crate::model::ErrorDetail) +pub mod error_detail { + /// A builder for [`ErrorDetail`](crate::model::ErrorDetail) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) error_code: std::option::Option, + pub(crate) error_message: std::option::Option, + pub(crate) resource_ids: std::option::Option>, + } + impl Builder { + ///

    A brief description of the error.

    + ///
      + ///
    • + ///

      + /// SubnetNotFound: We couldn't find one of the + /// subnets associated with the cluster.

      + ///
    • + ///
    • + ///

      + /// SecurityGroupNotFound: We couldn't find one + /// of the security groups associated with the cluster.

      + ///
    • + ///
    • + ///

      + /// EniLimitReached: You have reached the elastic + /// network interface limit for your account.

      + ///
    • + ///
    • + ///

      + /// IpNotAvailable: A subnet associated with the + /// cluster doesn't have any free IP addresses.

      + ///
    • + ///
    • + ///

      + /// AccessDenied: You don't have permissions to + /// perform the specified operation.

      + ///
    • + ///
    • + ///

      + /// OperationNotPermitted: The service role + /// associated with the cluster doesn't have the required access permissions for + /// Amazon EKS.

      + ///
    • + ///
    • + ///

      + /// VpcIdNotFound: We couldn't find the VPC + /// associated with the cluster.

      + ///
    • + ///
    + pub fn error_code(mut self, input: crate::model::ErrorCode) -> Self { + self.error_code = Some(input); + self + } + pub fn set_error_code( + mut self, + input: std::option::Option, + ) -> Self { + self.error_code = input; + self + } + ///

    A more complete description of the error.

    + pub fn error_message(mut self, input: impl Into) -> Self { + self.error_message = Some(input.into()); + self + } + pub fn set_error_message( + mut self, + input: std::option::Option, + ) -> Self { + self.error_message = input; + self + } + pub fn resource_ids(mut self, input: impl Into) -> Self { + let mut v = self.resource_ids.unwrap_or_default(); + v.push(input.into()); + self.resource_ids = Some(v); + self + } + pub fn set_resource_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.resource_ids = input; + self + } + /// Consumes the builder and constructs a [`ErrorDetail`](crate::model::ErrorDetail) + pub fn build(self) -> crate::model::ErrorDetail { + crate::model::ErrorDetail { + error_code: self.error_code, + error_message: self.error_message, + resource_ids: self.resource_ids, + } + } + } +} +impl ErrorDetail { + /// Creates a new builder-style object to manufacture [`ErrorDetail`](crate::model::ErrorDetail) + pub fn builder() -> crate::model::error_detail::Builder { + crate::model::error_detail::Builder::default() + } +} + +/// **NOTE:** `ErrorCode::Unknown` has been renamed to `::UnknownValue`. +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ErrorCode { + AccessDenied, + AdmissionRequestDenied, + ClusterUnreachable, + ConfigurationConflict, + EniLimitReached, + InsufficientFreeAddresses, + InsufficientNumberOfReplicas, + IpNotAvailable, + NodeCreationFailure, + OperationNotPermitted, + PodEvictionFailure, + SecurityGroupNotFound, + SubnetNotFound, + /// **NOTE:** `::Unknown` has been renamed to `::UnknownValue`. + UnknownValue, + VpcIdNotFound, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ErrorCode { + fn from(s: &str) -> Self { + match s { + "AccessDenied" => ErrorCode::AccessDenied, + "AdmissionRequestDenied" => ErrorCode::AdmissionRequestDenied, + "ClusterUnreachable" => ErrorCode::ClusterUnreachable, + "ConfigurationConflict" => ErrorCode::ConfigurationConflict, + "EniLimitReached" => ErrorCode::EniLimitReached, + "InsufficientFreeAddresses" => ErrorCode::InsufficientFreeAddresses, + "InsufficientNumberOfReplicas" => ErrorCode::InsufficientNumberOfReplicas, + "IpNotAvailable" => ErrorCode::IpNotAvailable, + "NodeCreationFailure" => ErrorCode::NodeCreationFailure, + "OperationNotPermitted" => ErrorCode::OperationNotPermitted, + "PodEvictionFailure" => ErrorCode::PodEvictionFailure, + "SecurityGroupNotFound" => ErrorCode::SecurityGroupNotFound, + "SubnetNotFound" => ErrorCode::SubnetNotFound, + "Unknown" => ErrorCode::UnknownValue, + "VpcIdNotFound" => ErrorCode::VpcIdNotFound, + other => ErrorCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ErrorCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ErrorCode::from(s)) + } +} +impl ErrorCode { + pub fn as_str(&self) -> &str { + match self { + ErrorCode::AccessDenied => "AccessDenied", + ErrorCode::AdmissionRequestDenied => "AdmissionRequestDenied", + ErrorCode::ClusterUnreachable => "ClusterUnreachable", + ErrorCode::ConfigurationConflict => "ConfigurationConflict", + ErrorCode::EniLimitReached => "EniLimitReached", + ErrorCode::InsufficientFreeAddresses => "InsufficientFreeAddresses", + ErrorCode::InsufficientNumberOfReplicas => "InsufficientNumberOfReplicas", + ErrorCode::IpNotAvailable => "IpNotAvailable", + ErrorCode::NodeCreationFailure => "NodeCreationFailure", + ErrorCode::OperationNotPermitted => "OperationNotPermitted", + ErrorCode::PodEvictionFailure => "PodEvictionFailure", + ErrorCode::SecurityGroupNotFound => "SecurityGroupNotFound", + ErrorCode::SubnetNotFound => "SubnetNotFound", + ErrorCode::UnknownValue => "Unknown", + ErrorCode::VpcIdNotFound => "VpcIdNotFound", + ErrorCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ErrorCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing the details of an update request.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateParam { + ///

    The keys associated with an update request.

    + pub r#type: std::option::Option, + ///

    The value of the keys submitted as part of an update request.

    + pub value: std::option::Option, +} +impl std::fmt::Debug for UpdateParam { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateParam"); + formatter.field("r#type", &self.r#type); + formatter.field("value", &self.value); + formatter.finish() + } +} +/// See [`UpdateParam`](crate::model::UpdateParam) +pub mod update_param { + /// A builder for [`UpdateParam`](crate::model::UpdateParam) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) r#type: std::option::Option, + pub(crate) value: std::option::Option, + } + impl Builder { + ///

    The keys associated with an update request.

    + pub fn r#type(mut self, input: crate::model::UpdateParamType) -> Self { + self.r#type = Some(input); + self + } + pub fn set_type( + mut self, + input: std::option::Option, + ) -> Self { + self.r#type = input; + self + } + ///

    The value of the keys submitted as part of an update request.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + /// Consumes the builder and constructs a [`UpdateParam`](crate::model::UpdateParam) + pub fn build(self) -> crate::model::UpdateParam { + crate::model::UpdateParam { + r#type: self.r#type, + value: self.value, + } + } + } +} +impl UpdateParam { + /// Creates a new builder-style object to manufacture [`UpdateParam`](crate::model::UpdateParam) + pub fn builder() -> crate::model::update_param::Builder { + crate::model::update_param::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum UpdateParamType { + AddonVersion, + ClusterLogging, + DesiredSize, + EncryptionConfig, + EndpointPrivateAccess, + EndpointPublicAccess, + IdentityProviderConfig, + LabelsToAdd, + LabelsToRemove, + LaunchTemplateName, + LaunchTemplateVersion, + MaxSize, + MaxUnavailable, + MaxUnavailablePercentage, + MinSize, + PlatformVersion, + PublicAccessCidrs, + ReleaseVersion, + ResolveConflicts, + ServiceAccountRoleArn, + TaintsToAdd, + TaintsToRemove, + Version, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for UpdateParamType { + fn from(s: &str) -> Self { + match s { + "AddonVersion" => UpdateParamType::AddonVersion, + "ClusterLogging" => UpdateParamType::ClusterLogging, + "DesiredSize" => UpdateParamType::DesiredSize, + "EncryptionConfig" => UpdateParamType::EncryptionConfig, + "EndpointPrivateAccess" => UpdateParamType::EndpointPrivateAccess, + "EndpointPublicAccess" => UpdateParamType::EndpointPublicAccess, + "IdentityProviderConfig" => UpdateParamType::IdentityProviderConfig, + "LabelsToAdd" => UpdateParamType::LabelsToAdd, + "LabelsToRemove" => UpdateParamType::LabelsToRemove, + "LaunchTemplateName" => UpdateParamType::LaunchTemplateName, + "LaunchTemplateVersion" => UpdateParamType::LaunchTemplateVersion, + "MaxSize" => UpdateParamType::MaxSize, + "MaxUnavailable" => UpdateParamType::MaxUnavailable, + "MaxUnavailablePercentage" => UpdateParamType::MaxUnavailablePercentage, + "MinSize" => UpdateParamType::MinSize, + "PlatformVersion" => UpdateParamType::PlatformVersion, + "PublicAccessCidrs" => UpdateParamType::PublicAccessCidrs, + "ReleaseVersion" => UpdateParamType::ReleaseVersion, + "ResolveConflicts" => UpdateParamType::ResolveConflicts, + "ServiceAccountRoleArn" => UpdateParamType::ServiceAccountRoleArn, + "TaintsToAdd" => UpdateParamType::TaintsToAdd, + "TaintsToRemove" => UpdateParamType::TaintsToRemove, + "Version" => UpdateParamType::Version, + other => UpdateParamType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for UpdateParamType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(UpdateParamType::from(s)) + } +} +impl UpdateParamType { + pub fn as_str(&self) -> &str { + match self { + UpdateParamType::AddonVersion => "AddonVersion", + UpdateParamType::ClusterLogging => "ClusterLogging", + UpdateParamType::DesiredSize => "DesiredSize", + UpdateParamType::EncryptionConfig => "EncryptionConfig", + UpdateParamType::EndpointPrivateAccess => "EndpointPrivateAccess", + UpdateParamType::EndpointPublicAccess => "EndpointPublicAccess", + UpdateParamType::IdentityProviderConfig => "IdentityProviderConfig", + UpdateParamType::LabelsToAdd => "LabelsToAdd", + UpdateParamType::LabelsToRemove => "LabelsToRemove", + UpdateParamType::LaunchTemplateName => "LaunchTemplateName", + UpdateParamType::LaunchTemplateVersion => "LaunchTemplateVersion", + UpdateParamType::MaxSize => "MaxSize", + UpdateParamType::MaxUnavailable => "MaxUnavailable", + UpdateParamType::MaxUnavailablePercentage => "MaxUnavailablePercentage", + UpdateParamType::MinSize => "MinSize", + UpdateParamType::PlatformVersion => "PlatformVersion", + UpdateParamType::PublicAccessCidrs => "PublicAccessCidrs", + UpdateParamType::ReleaseVersion => "ReleaseVersion", + UpdateParamType::ResolveConflicts => "ResolveConflicts", + UpdateParamType::ServiceAccountRoleArn => "ServiceAccountRoleArn", + UpdateParamType::TaintsToAdd => "TaintsToAdd", + UpdateParamType::TaintsToRemove => "TaintsToRemove", + UpdateParamType::Version => "Version", + UpdateParamType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for UpdateParamType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum UpdateType { + AddonUpdate, + AssociateEncryptionConfig, + AssociateIdentityProviderConfig, + ConfigUpdate, + DisassociateIdentityProviderConfig, + EndpointAccessUpdate, + LoggingUpdate, + VersionUpdate, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for UpdateType { + fn from(s: &str) -> Self { + match s { + "AddonUpdate" => UpdateType::AddonUpdate, + "AssociateEncryptionConfig" => UpdateType::AssociateEncryptionConfig, + "AssociateIdentityProviderConfig" => UpdateType::AssociateIdentityProviderConfig, + "ConfigUpdate" => UpdateType::ConfigUpdate, + "DisassociateIdentityProviderConfig" => UpdateType::DisassociateIdentityProviderConfig, + "EndpointAccessUpdate" => UpdateType::EndpointAccessUpdate, + "LoggingUpdate" => UpdateType::LoggingUpdate, + "VersionUpdate" => UpdateType::VersionUpdate, + other => UpdateType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for UpdateType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(UpdateType::from(s)) + } +} +impl UpdateType { + pub fn as_str(&self) -> &str { + match self { + UpdateType::AddonUpdate => "AddonUpdate", + UpdateType::AssociateEncryptionConfig => "AssociateEncryptionConfig", + UpdateType::AssociateIdentityProviderConfig => "AssociateIdentityProviderConfig", + UpdateType::ConfigUpdate => "ConfigUpdate", + UpdateType::DisassociateIdentityProviderConfig => "DisassociateIdentityProviderConfig", + UpdateType::EndpointAccessUpdate => "EndpointAccessUpdate", + UpdateType::LoggingUpdate => "LoggingUpdate", + UpdateType::VersionUpdate => "VersionUpdate", + UpdateType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for UpdateType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum UpdateStatus { + Cancelled, + Failed, + InProgress, + Successful, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for UpdateStatus { + fn from(s: &str) -> Self { + match s { + "Cancelled" => UpdateStatus::Cancelled, + "Failed" => UpdateStatus::Failed, + "InProgress" => UpdateStatus::InProgress, + "Successful" => UpdateStatus::Successful, + other => UpdateStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for UpdateStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(UpdateStatus::from(s)) + } +} +impl UpdateStatus { + pub fn as_str(&self) -> &str { + match self { + UpdateStatus::Cancelled => "Cancelled", + UpdateStatus::Failed => "Failed", + UpdateStatus::InProgress => "InProgress", + UpdateStatus::Successful => "Successful", + UpdateStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for UpdateStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing a node group launch template specification. The launch template +/// cannot include +/// SubnetId +/// , +/// IamInstanceProfile +/// , +/// RequestSpotInstances +/// , +/// HibernationOptions +/// , or +/// TerminateInstances +/// , or the node group deployment or +/// update will fail. For more information about launch templates, see +/// CreateLaunchTemplate +/// in the Amazon EC2 API Reference. +/// For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

    +///

    Specify either name or id, but not both.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LaunchTemplateSpecification { + ///

    The name of the launch template.

    + pub name: std::option::Option, + ///

    The version of the launch template to use. If no version is specified, then the + /// template's default version is used.

    + pub version: std::option::Option, + ///

    The ID of the launch template.

    + pub id: std::option::Option, +} +impl std::fmt::Debug for LaunchTemplateSpecification { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LaunchTemplateSpecification"); + formatter.field("name", &self.name); + formatter.field("version", &self.version); + formatter.field("id", &self.id); + formatter.finish() + } +} +/// See [`LaunchTemplateSpecification`](crate::model::LaunchTemplateSpecification) +pub mod launch_template_specification { + /// A builder for [`LaunchTemplateSpecification`](crate::model::LaunchTemplateSpecification) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) id: std::option::Option, + } + impl Builder { + ///

    The name of the launch template.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The version of the launch template to use. If no version is specified, then the + /// template's default version is used.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    The ID of the launch template.

    + pub fn id(mut self, input: impl Into) -> Self { + self.id = Some(input.into()); + self + } + pub fn set_id(mut self, input: std::option::Option) -> Self { + self.id = input; + self + } + /// Consumes the builder and constructs a [`LaunchTemplateSpecification`](crate::model::LaunchTemplateSpecification) + pub fn build(self) -> crate::model::LaunchTemplateSpecification { + crate::model::LaunchTemplateSpecification { + name: self.name, + version: self.version, + id: self.id, + } + } + } +} +impl LaunchTemplateSpecification { + /// Creates a new builder-style object to manufacture [`LaunchTemplateSpecification`](crate::model::LaunchTemplateSpecification) + pub fn builder() -> crate::model::launch_template_specification::Builder { + crate::model::launch_template_specification::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NodegroupUpdateConfig { + pub max_unavailable: std::option::Option, + pub max_unavailable_percentage: std::option::Option, +} +impl std::fmt::Debug for NodegroupUpdateConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("NodegroupUpdateConfig"); + formatter.field("max_unavailable", &self.max_unavailable); + formatter.field( + "max_unavailable_percentage", + &self.max_unavailable_percentage, + ); + formatter.finish() + } +} +/// See [`NodegroupUpdateConfig`](crate::model::NodegroupUpdateConfig) +pub mod nodegroup_update_config { + /// A builder for [`NodegroupUpdateConfig`](crate::model::NodegroupUpdateConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) max_unavailable: std::option::Option, + pub(crate) max_unavailable_percentage: std::option::Option, + } + impl Builder { + pub fn max_unavailable(mut self, input: i32) -> Self { + self.max_unavailable = Some(input); + self + } + pub fn set_max_unavailable(mut self, input: std::option::Option) -> Self { + self.max_unavailable = input; + self + } + pub fn max_unavailable_percentage(mut self, input: i32) -> Self { + self.max_unavailable_percentage = Some(input); + self + } + pub fn set_max_unavailable_percentage(mut self, input: std::option::Option) -> Self { + self.max_unavailable_percentage = input; + self + } + /// Consumes the builder and constructs a [`NodegroupUpdateConfig`](crate::model::NodegroupUpdateConfig) + pub fn build(self) -> crate::model::NodegroupUpdateConfig { + crate::model::NodegroupUpdateConfig { + max_unavailable: self.max_unavailable, + max_unavailable_percentage: self.max_unavailable_percentage, + } + } + } +} +impl NodegroupUpdateConfig { + /// Creates a new builder-style object to manufacture [`NodegroupUpdateConfig`](crate::model::NodegroupUpdateConfig) + pub fn builder() -> crate::model::nodegroup_update_config::Builder { + crate::model::nodegroup_update_config::Builder::default() + } +} + +///

    An object representing the scaling configuration details for the Auto Scaling group +/// that is associated with your node group. When creating a node group, you must specify +/// all or none of the properties. When updating a node group, you can specify any or none +/// of the properties.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NodegroupScalingConfig { + ///

    The minimum number of nodes that the managed node group can scale in to. This number + /// must be greater than zero.

    + pub min_size: std::option::Option, + ///

    The maximum number of nodes that the managed node group can scale out to. For + /// information about the maximum number that you can specify, see Amazon EKS service + /// quotas in the Amazon EKS User Guide.

    + pub max_size: std::option::Option, + ///

    The current number of nodes that the managed node group should maintain.

    + pub desired_size: std::option::Option, +} +impl std::fmt::Debug for NodegroupScalingConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("NodegroupScalingConfig"); + formatter.field("min_size", &self.min_size); + formatter.field("max_size", &self.max_size); + formatter.field("desired_size", &self.desired_size); + formatter.finish() + } +} +/// See [`NodegroupScalingConfig`](crate::model::NodegroupScalingConfig) +pub mod nodegroup_scaling_config { + /// A builder for [`NodegroupScalingConfig`](crate::model::NodegroupScalingConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) min_size: std::option::Option, + pub(crate) max_size: std::option::Option, + pub(crate) desired_size: std::option::Option, + } + impl Builder { + ///

    The minimum number of nodes that the managed node group can scale in to. This number + /// must be greater than zero.

    + pub fn min_size(mut self, input: i32) -> Self { + self.min_size = Some(input); + self + } + pub fn set_min_size(mut self, input: std::option::Option) -> Self { + self.min_size = input; + self + } + ///

    The maximum number of nodes that the managed node group can scale out to. For + /// information about the maximum number that you can specify, see Amazon EKS service + /// quotas in the Amazon EKS User Guide.

    + pub fn max_size(mut self, input: i32) -> Self { + self.max_size = Some(input); + self + } + pub fn set_max_size(mut self, input: std::option::Option) -> Self { + self.max_size = input; + self + } + ///

    The current number of nodes that the managed node group should maintain.

    + pub fn desired_size(mut self, input: i32) -> Self { + self.desired_size = Some(input); + self + } + pub fn set_desired_size(mut self, input: std::option::Option) -> Self { + self.desired_size = input; + self + } + /// Consumes the builder and constructs a [`NodegroupScalingConfig`](crate::model::NodegroupScalingConfig) + pub fn build(self) -> crate::model::NodegroupScalingConfig { + crate::model::NodegroupScalingConfig { + min_size: self.min_size, + max_size: self.max_size, + desired_size: self.desired_size, + } + } + } +} +impl NodegroupScalingConfig { + /// Creates a new builder-style object to manufacture [`NodegroupScalingConfig`](crate::model::NodegroupScalingConfig) + pub fn builder() -> crate::model::nodegroup_scaling_config::Builder { + crate::model::nodegroup_scaling_config::Builder::default() + } +} + +///

    An object representing the details of an update to a taints payload.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateTaintsPayload { + ///

    Kubernetes taints to be added or updated.

    + pub add_or_update_taints: std::option::Option>, + ///

    Kubernetes taints to be removed.

    + pub remove_taints: std::option::Option>, +} +impl std::fmt::Debug for UpdateTaintsPayload { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateTaintsPayload"); + formatter.field("add_or_update_taints", &self.add_or_update_taints); + formatter.field("remove_taints", &self.remove_taints); + formatter.finish() + } +} +/// See [`UpdateTaintsPayload`](crate::model::UpdateTaintsPayload) +pub mod update_taints_payload { + /// A builder for [`UpdateTaintsPayload`](crate::model::UpdateTaintsPayload) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) add_or_update_taints: std::option::Option>, + pub(crate) remove_taints: std::option::Option>, + } + impl Builder { + pub fn add_or_update_taints(mut self, input: impl Into) -> Self { + let mut v = self.add_or_update_taints.unwrap_or_default(); + v.push(input.into()); + self.add_or_update_taints = Some(v); + self + } + pub fn set_add_or_update_taints( + mut self, + input: std::option::Option>, + ) -> Self { + self.add_or_update_taints = input; + self + } + pub fn remove_taints(mut self, input: impl Into) -> Self { + let mut v = self.remove_taints.unwrap_or_default(); + v.push(input.into()); + self.remove_taints = Some(v); + self + } + pub fn set_remove_taints( + mut self, + input: std::option::Option>, + ) -> Self { + self.remove_taints = input; + self + } + /// Consumes the builder and constructs a [`UpdateTaintsPayload`](crate::model::UpdateTaintsPayload) + pub fn build(self) -> crate::model::UpdateTaintsPayload { + crate::model::UpdateTaintsPayload { + add_or_update_taints: self.add_or_update_taints, + remove_taints: self.remove_taints, + } + } + } +} +impl UpdateTaintsPayload { + /// Creates a new builder-style object to manufacture [`UpdateTaintsPayload`](crate::model::UpdateTaintsPayload) + pub fn builder() -> crate::model::update_taints_payload::Builder { + crate::model::update_taints_payload::Builder::default() + } +} + +///

    A property that allows a node to repel a set of pods.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Taint { + ///

    The key of the taint.

    + pub key: std::option::Option, + ///

    The value of the taint.

    + pub value: std::option::Option, + ///

    The effect of the taint.

    + pub effect: std::option::Option, +} +impl std::fmt::Debug for Taint { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Taint"); + formatter.field("key", &self.key); + formatter.field("value", &self.value); + formatter.field("effect", &self.effect); + formatter.finish() + } +} +/// See [`Taint`](crate::model::Taint) +pub mod taint { + /// A builder for [`Taint`](crate::model::Taint) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key: std::option::Option, + pub(crate) value: std::option::Option, + pub(crate) effect: std::option::Option, + } + impl Builder { + ///

    The key of the taint.

    + pub fn key(mut self, input: impl Into) -> Self { + self.key = Some(input.into()); + self + } + pub fn set_key(mut self, input: std::option::Option) -> Self { + self.key = input; + self + } + ///

    The value of the taint.

    + pub fn value(mut self, input: impl Into) -> Self { + self.value = Some(input.into()); + self + } + pub fn set_value(mut self, input: std::option::Option) -> Self { + self.value = input; + self + } + ///

    The effect of the taint.

    + pub fn effect(mut self, input: crate::model::TaintEffect) -> Self { + self.effect = Some(input); + self + } + pub fn set_effect(mut self, input: std::option::Option) -> Self { + self.effect = input; + self + } + /// Consumes the builder and constructs a [`Taint`](crate::model::Taint) + pub fn build(self) -> crate::model::Taint { + crate::model::Taint { + key: self.key, + value: self.value, + effect: self.effect, + } + } + } +} +impl Taint { + /// Creates a new builder-style object to manufacture [`Taint`](crate::model::Taint) + pub fn builder() -> crate::model::taint::Builder { + crate::model::taint::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum TaintEffect { + NoExecute, + NoSchedule, + PreferNoSchedule, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for TaintEffect { + fn from(s: &str) -> Self { + match s { + "NO_EXECUTE" => TaintEffect::NoExecute, + "NO_SCHEDULE" => TaintEffect::NoSchedule, + "PREFER_NO_SCHEDULE" => TaintEffect::PreferNoSchedule, + other => TaintEffect::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for TaintEffect { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(TaintEffect::from(s)) + } +} +impl TaintEffect { + pub fn as_str(&self) -> &str { + match self { + TaintEffect::NoExecute => "NO_EXECUTE", + TaintEffect::NoSchedule => "NO_SCHEDULE", + TaintEffect::PreferNoSchedule => "PREFER_NO_SCHEDULE", + TaintEffect::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for TaintEffect { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing a Kubernetes label change for a managed node group.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateLabelsPayload { + ///

    Kubernetes labels to be added or updated.

    + pub add_or_update_labels: + std::option::Option>, + ///

    Kubernetes labels to be removed.

    + pub remove_labels: std::option::Option>, +} +impl std::fmt::Debug for UpdateLabelsPayload { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateLabelsPayload"); + formatter.field("add_or_update_labels", &self.add_or_update_labels); + formatter.field("remove_labels", &self.remove_labels); + formatter.finish() + } +} +/// See [`UpdateLabelsPayload`](crate::model::UpdateLabelsPayload) +pub mod update_labels_payload { + /// A builder for [`UpdateLabelsPayload`](crate::model::UpdateLabelsPayload) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) add_or_update_labels: std::option::Option< + std::collections::HashMap, + >, + pub(crate) remove_labels: std::option::Option>, + } + impl Builder { + pub fn add_or_update_labels( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.add_or_update_labels.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.add_or_update_labels = Some(hash_map); + self + } + pub fn set_add_or_update_labels( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.add_or_update_labels = input; + self + } + pub fn remove_labels(mut self, input: impl Into) -> Self { + let mut v = self.remove_labels.unwrap_or_default(); + v.push(input.into()); + self.remove_labels = Some(v); + self + } + pub fn set_remove_labels( + mut self, + input: std::option::Option>, + ) -> Self { + self.remove_labels = input; + self + } + /// Consumes the builder and constructs a [`UpdateLabelsPayload`](crate::model::UpdateLabelsPayload) + pub fn build(self) -> crate::model::UpdateLabelsPayload { + crate::model::UpdateLabelsPayload { + add_or_update_labels: self.add_or_update_labels, + remove_labels: self.remove_labels, + } + } + } +} +impl UpdateLabelsPayload { + /// Creates a new builder-style object to manufacture [`UpdateLabelsPayload`](crate::model::UpdateLabelsPayload) + pub fn builder() -> crate::model::update_labels_payload::Builder { + crate::model::update_labels_payload::Builder::default() + } +} + +///

    An object representing the logging configuration for resources in your cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Logging { + ///

    The cluster control plane logging configuration for your cluster.

    + pub cluster_logging: std::option::Option>, +} +impl std::fmt::Debug for Logging { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Logging"); + formatter.field("cluster_logging", &self.cluster_logging); + formatter.finish() + } +} +/// See [`Logging`](crate::model::Logging) +pub mod logging { + /// A builder for [`Logging`](crate::model::Logging) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_logging: std::option::Option>, + } + impl Builder { + pub fn cluster_logging(mut self, input: impl Into) -> Self { + let mut v = self.cluster_logging.unwrap_or_default(); + v.push(input.into()); + self.cluster_logging = Some(v); + self + } + pub fn set_cluster_logging( + mut self, + input: std::option::Option>, + ) -> Self { + self.cluster_logging = input; + self + } + /// Consumes the builder and constructs a [`Logging`](crate::model::Logging) + pub fn build(self) -> crate::model::Logging { + crate::model::Logging { + cluster_logging: self.cluster_logging, + } + } + } +} +impl Logging { + /// Creates a new builder-style object to manufacture [`Logging`](crate::model::Logging) + pub fn builder() -> crate::model::logging::Builder { + crate::model::logging::Builder::default() + } +} + +///

    An object representing the enabled or disabled Kubernetes control plane logs for your +/// cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LogSetup { + ///

    The available cluster control plane log types.

    + pub types: std::option::Option>, + ///

    If a log type is enabled, that log type exports its control plane logs to CloudWatch Logs. If a + /// log type isn't enabled, that log type doesn't export its control plane logs. Each + /// individual log type can be enabled or disabled independently.

    + pub enabled: std::option::Option, +} +impl std::fmt::Debug for LogSetup { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("LogSetup"); + formatter.field("types", &self.types); + formatter.field("enabled", &self.enabled); + formatter.finish() + } +} +/// See [`LogSetup`](crate::model::LogSetup) +pub mod log_setup { + /// A builder for [`LogSetup`](crate::model::LogSetup) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) types: std::option::Option>, + pub(crate) enabled: std::option::Option, + } + impl Builder { + pub fn types(mut self, input: impl Into) -> Self { + let mut v = self.types.unwrap_or_default(); + v.push(input.into()); + self.types = Some(v); + self + } + pub fn set_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.types = input; + self + } + ///

    If a log type is enabled, that log type exports its control plane logs to CloudWatch Logs. If a + /// log type isn't enabled, that log type doesn't export its control plane logs. Each + /// individual log type can be enabled or disabled independently.

    + pub fn enabled(mut self, input: bool) -> Self { + self.enabled = Some(input); + self + } + pub fn set_enabled(mut self, input: std::option::Option) -> Self { + self.enabled = input; + self + } + /// Consumes the builder and constructs a [`LogSetup`](crate::model::LogSetup) + pub fn build(self) -> crate::model::LogSetup { + crate::model::LogSetup { + types: self.types, + enabled: self.enabled, + } + } + } +} +impl LogSetup { + /// Creates a new builder-style object to manufacture [`LogSetup`](crate::model::LogSetup) + pub fn builder() -> crate::model::log_setup::Builder { + crate::model::log_setup::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum LogType { + Api, + Audit, + Authenticator, + ControllerManager, + Scheduler, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for LogType { + fn from(s: &str) -> Self { + match s { + "api" => LogType::Api, + "audit" => LogType::Audit, + "authenticator" => LogType::Authenticator, + "controllerManager" => LogType::ControllerManager, + "scheduler" => LogType::Scheduler, + other => LogType::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for LogType { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(LogType::from(s)) + } +} +impl LogType { + pub fn as_str(&self) -> &str { + match self { + LogType::Api => "api", + LogType::Audit => "audit", + LogType::Authenticator => "authenticator", + LogType::ControllerManager => "controllerManager", + LogType::Scheduler => "scheduler", + LogType::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for LogType { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing the VPC configuration to use for an Amazon EKS cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct VpcConfigRequest { + ///

    Specify subnets for your Amazon EKS nodes. Amazon EKS creates cross-account elastic network + /// interfaces in these subnets to allow communication between your nodes and the Kubernetes + /// control plane.

    + pub subnet_ids: std::option::Option>, + ///

    Specify one or more security groups for the cross-account elastic network interfaces + /// that Amazon EKS creates to use to allow communication between your nodes and the Kubernetes + /// control plane. If you don't specify any security groups, then familiarize yourself with + /// the difference between Amazon EKS defaults for clusters deployed with Kubernetes:

    + ///
      + ///
    • + ///

      1.14 Amazon EKS platform version eks.2 and earlier

      + ///
    • + ///
    • + ///

      1.14 Amazon EKS platform version eks.3 and later

      + ///
    • + ///
    + ///

    For more information, see Amazon EKS security group + /// considerations in the + /// Amazon EKS User Guide + /// .

    + pub security_group_ids: std::option::Option>, + ///

    Set this value to false to disable public access to your cluster's + /// Kubernetes API server endpoint. If you disable public access, your cluster's Kubernetes + /// API server can only receive requests from within the cluster VPC. The default value for + /// this parameter is true, which enables public access for your Kubernetes API + /// server. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub endpoint_public_access: std::option::Option, + ///

    Set this value to true to enable private access for your cluster's + /// Kubernetes API server endpoint. If you enable private access, Kubernetes API requests + /// from within your cluster's VPC use the private VPC endpoint. The default value for this + /// parameter is false, which disables private access for your Kubernetes API + /// server. If you disable private access and you have nodes or AWS Fargate pods in the + /// cluster, then ensure that publicAccessCidrs includes the necessary CIDR + /// blocks for communication with the nodes or Fargate pods. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub endpoint_private_access: std::option::Option, + ///

    The CIDR blocks that are allowed access to your cluster's public Kubernetes API server + /// endpoint. Communication to the endpoint from addresses outside of the CIDR blocks that + /// you specify is denied. The default value is 0.0.0.0/0. If you've disabled + /// private endpoint access and you have nodes or AWS Fargate pods in the cluster, then ensure + /// that you specify the necessary CIDR blocks. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub public_access_cidrs: std::option::Option>, +} +impl std::fmt::Debug for VpcConfigRequest { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("VpcConfigRequest"); + formatter.field("subnet_ids", &self.subnet_ids); + formatter.field("security_group_ids", &self.security_group_ids); + formatter.field("endpoint_public_access", &self.endpoint_public_access); + formatter.field("endpoint_private_access", &self.endpoint_private_access); + formatter.field("public_access_cidrs", &self.public_access_cidrs); + formatter.finish() + } +} +/// See [`VpcConfigRequest`](crate::model::VpcConfigRequest) +pub mod vpc_config_request { + /// A builder for [`VpcConfigRequest`](crate::model::VpcConfigRequest) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) subnet_ids: std::option::Option>, + pub(crate) security_group_ids: std::option::Option>, + pub(crate) endpoint_public_access: std::option::Option, + pub(crate) endpoint_private_access: std::option::Option, + pub(crate) public_access_cidrs: std::option::Option>, + } + impl Builder { + pub fn subnet_ids(mut self, input: impl Into) -> Self { + let mut v = self.subnet_ids.unwrap_or_default(); + v.push(input.into()); + self.subnet_ids = Some(v); + self + } + pub fn set_subnet_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnet_ids = input; + self + } + pub fn security_group_ids(mut self, input: impl Into) -> Self { + let mut v = self.security_group_ids.unwrap_or_default(); + v.push(input.into()); + self.security_group_ids = Some(v); + self + } + pub fn set_security_group_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.security_group_ids = input; + self + } + ///

    Set this value to false to disable public access to your cluster's + /// Kubernetes API server endpoint. If you disable public access, your cluster's Kubernetes + /// API server can only receive requests from within the cluster VPC. The default value for + /// this parameter is true, which enables public access for your Kubernetes API + /// server. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub fn endpoint_public_access(mut self, input: bool) -> Self { + self.endpoint_public_access = Some(input); + self + } + pub fn set_endpoint_public_access(mut self, input: std::option::Option) -> Self { + self.endpoint_public_access = input; + self + } + ///

    Set this value to true to enable private access for your cluster's + /// Kubernetes API server endpoint. If you enable private access, Kubernetes API requests + /// from within your cluster's VPC use the private VPC endpoint. The default value for this + /// parameter is false, which disables private access for your Kubernetes API + /// server. If you disable private access and you have nodes or AWS Fargate pods in the + /// cluster, then ensure that publicAccessCidrs includes the necessary CIDR + /// blocks for communication with the nodes or Fargate pods. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub fn endpoint_private_access(mut self, input: bool) -> Self { + self.endpoint_private_access = Some(input); + self + } + pub fn set_endpoint_private_access(mut self, input: std::option::Option) -> Self { + self.endpoint_private_access = input; + self + } + pub fn public_access_cidrs(mut self, input: impl Into) -> Self { + let mut v = self.public_access_cidrs.unwrap_or_default(); + v.push(input.into()); + self.public_access_cidrs = Some(v); + self + } + pub fn set_public_access_cidrs( + mut self, + input: std::option::Option>, + ) -> Self { + self.public_access_cidrs = input; + self + } + /// Consumes the builder and constructs a [`VpcConfigRequest`](crate::model::VpcConfigRequest) + pub fn build(self) -> crate::model::VpcConfigRequest { + crate::model::VpcConfigRequest { + subnet_ids: self.subnet_ids, + security_group_ids: self.security_group_ids, + endpoint_public_access: self.endpoint_public_access, + endpoint_private_access: self.endpoint_private_access, + public_access_cidrs: self.public_access_cidrs, + } + } + } +} +impl VpcConfigRequest { + /// Creates a new builder-style object to manufacture [`VpcConfigRequest`](crate::model::VpcConfigRequest) + pub fn builder() -> crate::model::vpc_config_request::Builder { + crate::model::vpc_config_request::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ResolveConflicts { + None, + Overwrite, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ResolveConflicts { + fn from(s: &str) -> Self { + match s { + "NONE" => ResolveConflicts::None, + "OVERWRITE" => ResolveConflicts::Overwrite, + other => ResolveConflicts::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ResolveConflicts { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ResolveConflicts::from(s)) + } +} +impl ResolveConflicts { + pub fn as_str(&self) -> &str { + match self { + ResolveConflicts::None => "NONE", + ResolveConflicts::Overwrite => "OVERWRITE", + ResolveConflicts::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ResolveConflicts { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing an identity provider configuration.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IdentityProviderConfig { + ///

    The type of the identity provider configuration.

    + pub r#type: std::option::Option, + ///

    The name of the identity provider configuration.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for IdentityProviderConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("IdentityProviderConfig"); + formatter.field("r#type", &self.r#type); + formatter.field("name", &self.name); + formatter.finish() + } +} +/// See [`IdentityProviderConfig`](crate::model::IdentityProviderConfig) +pub mod identity_provider_config { + /// A builder for [`IdentityProviderConfig`](crate::model::IdentityProviderConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) r#type: std::option::Option, + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The type of the identity provider configuration.

    + pub fn r#type(mut self, input: impl Into) -> Self { + self.r#type = Some(input.into()); + self + } + pub fn set_type(mut self, input: std::option::Option) -> Self { + self.r#type = input; + self + } + ///

    The name of the identity provider configuration.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`IdentityProviderConfig`](crate::model::IdentityProviderConfig) + pub fn build(self) -> crate::model::IdentityProviderConfig { + crate::model::IdentityProviderConfig { + r#type: self.r#type, + name: self.name, + } + } + } +} +impl IdentityProviderConfig { + /// Creates a new builder-style object to manufacture [`IdentityProviderConfig`](crate::model::IdentityProviderConfig) + pub fn builder() -> crate::model::identity_provider_config::Builder { + crate::model::identity_provider_config::Builder::default() + } +} + +///

    An object representing an Amazon EKS managed node group.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Nodegroup { + ///

    The name associated with an Amazon EKS managed node group.

    + pub nodegroup_name: std::option::Option, + ///

    The Amazon Resource Name (ARN) associated with the managed node group.

    + pub nodegroup_arn: std::option::Option, + ///

    The name of the cluster that the managed node group resides in.

    + pub cluster_name: std::option::Option, + ///

    The Kubernetes version of the managed node group.

    + pub version: std::option::Option, + ///

    If the node group was deployed using a launch template with a custom AMI, then this is + /// the AMI ID that was specified in the launch template. For node groups that weren't + /// deployed using a launch template, this is the version of the Amazon EKS optimized AMI that + /// the node group was deployed with.

    + pub release_version: std::option::Option, + ///

    The Unix epoch timestamp in seconds for when the managed node group was + /// created.

    + pub created_at: std::option::Option, + ///

    The Unix epoch timestamp in seconds for when the managed node group was last + /// modified.

    + pub modified_at: std::option::Option, + ///

    The current status of the managed node group.

    + pub status: std::option::Option, + ///

    The capacity type of your managed node group.

    + pub capacity_type: std::option::Option, + ///

    The scaling configuration details for the Auto Scaling group that is associated with + /// your node group.

    + pub scaling_config: std::option::Option, + ///

    If the node group wasn't deployed with a launch template, then this is the instance + /// type that is associated with the node group. If the node group was deployed with a + /// launch template, then this is null.

    + pub instance_types: std::option::Option>, + ///

    The subnets that were specified for the Auto Scaling group that is associated with + /// your node group.

    + pub subnets: std::option::Option>, + ///

    If the node group wasn't deployed with a launch template, then this is the remote + /// access configuration that is associated with the node group. If the node group was + /// deployed with a launch template, then this is null.

    + pub remote_access: std::option::Option, + ///

    If the node group was deployed using a launch template with a custom AMI, then this is + /// CUSTOM. For node groups that weren't deployed using a launch template, + /// this is the AMI type that was specified in the node group configuration.

    + pub ami_type: std::option::Option, + ///

    The IAM role associated with your node group. The Amazon EKS node kubelet + /// daemon makes calls to AWS APIs on your behalf. Nodes receive permissions for these API + /// calls through an IAM instance profile and associated policies.

    + pub node_role: std::option::Option, + ///

    The Kubernetes labels applied to the nodes in the node group.

    + /// + ///

    Only labels that are applied with the Amazon EKS API are shown here. There may be other + /// Kubernetes labels applied to the nodes in this group.

    + ///
    + pub labels: + std::option::Option>, + ///

    The Kubernetes taints to be applied to the nodes in the node group when they are + /// created. Effect is one of NoSchedule, PreferNoSchedule, or NoExecute. Kubernetes taints + /// can be used together with tolerations to control how workloads are scheduled to your + /// nodes.

    + pub taints: std::option::Option>, + ///

    The resources associated with the node group, such as Auto Scaling groups and security + /// groups for remote access.

    + pub resources: std::option::Option, + ///

    If the node group wasn't deployed with a launch template, then this is the disk size + /// in the node group configuration. If the node group was deployed with a launch template, + /// then this is null.

    + pub disk_size: std::option::Option, + ///

    The health status of the node group. If there are issues with your node group's + /// health, they are listed here.

    + pub health: std::option::Option, + pub update_config: std::option::Option, + ///

    If a launch template was used to create the node group, then this is the launch + /// template that was used.

    + pub launch_template: std::option::Option, + ///

    The metadata applied to the node group to assist with categorization and organization. + /// Each tag consists of a key and an optional value, both of which you define. Node group + /// tags do not propagate to any other resources associated with the node group, such as the + /// Amazon EC2 instances or subnets.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for Nodegroup { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Nodegroup"); + formatter.field("nodegroup_name", &self.nodegroup_name); + formatter.field("nodegroup_arn", &self.nodegroup_arn); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("version", &self.version); + formatter.field("release_version", &self.release_version); + formatter.field("created_at", &self.created_at); + formatter.field("modified_at", &self.modified_at); + formatter.field("status", &self.status); + formatter.field("capacity_type", &self.capacity_type); + formatter.field("scaling_config", &self.scaling_config); + formatter.field("instance_types", &self.instance_types); + formatter.field("subnets", &self.subnets); + formatter.field("remote_access", &self.remote_access); + formatter.field("ami_type", &self.ami_type); + formatter.field("node_role", &self.node_role); + formatter.field("labels", &self.labels); + formatter.field("taints", &self.taints); + formatter.field("resources", &self.resources); + formatter.field("disk_size", &self.disk_size); + formatter.field("health", &self.health); + formatter.field("update_config", &self.update_config); + formatter.field("launch_template", &self.launch_template); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`Nodegroup`](crate::model::Nodegroup) +pub mod nodegroup { + /// A builder for [`Nodegroup`](crate::model::Nodegroup) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) nodegroup_name: std::option::Option, + pub(crate) nodegroup_arn: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) release_version: std::option::Option, + pub(crate) created_at: std::option::Option, + pub(crate) modified_at: std::option::Option, + pub(crate) status: std::option::Option, + pub(crate) capacity_type: std::option::Option, + pub(crate) scaling_config: std::option::Option, + pub(crate) instance_types: std::option::Option>, + pub(crate) subnets: std::option::Option>, + pub(crate) remote_access: std::option::Option, + pub(crate) ami_type: std::option::Option, + pub(crate) node_role: std::option::Option, + pub(crate) labels: std::option::Option< + std::collections::HashMap, + >, + pub(crate) taints: std::option::Option>, + pub(crate) resources: std::option::Option, + pub(crate) disk_size: std::option::Option, + pub(crate) health: std::option::Option, + pub(crate) update_config: std::option::Option, + pub(crate) launch_template: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name associated with an Amazon EKS managed node group.

    + pub fn nodegroup_name(mut self, input: impl Into) -> Self { + self.nodegroup_name = Some(input.into()); + self + } + pub fn set_nodegroup_name( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_name = input; + self + } + ///

    The Amazon Resource Name (ARN) associated with the managed node group.

    + pub fn nodegroup_arn(mut self, input: impl Into) -> Self { + self.nodegroup_arn = Some(input.into()); + self + } + pub fn set_nodegroup_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup_arn = input; + self + } + ///

    The name of the cluster that the managed node group resides in.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Kubernetes version of the managed node group.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    If the node group was deployed using a launch template with a custom AMI, then this is + /// the AMI ID that was specified in the launch template. For node groups that weren't + /// deployed using a launch template, this is the version of the Amazon EKS optimized AMI that + /// the node group was deployed with.

    + pub fn release_version(mut self, input: impl Into) -> Self { + self.release_version = Some(input.into()); + self + } + pub fn set_release_version( + mut self, + input: std::option::Option, + ) -> Self { + self.release_version = input; + self + } + ///

    The Unix epoch timestamp in seconds for when the managed node group was + /// created.

    + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + ///

    The Unix epoch timestamp in seconds for when the managed node group was last + /// modified.

    + pub fn modified_at(mut self, input: smithy_types::Instant) -> Self { + self.modified_at = Some(input); + self + } + pub fn set_modified_at( + mut self, + input: std::option::Option, + ) -> Self { + self.modified_at = input; + self + } + ///

    The current status of the managed node group.

    + pub fn status(mut self, input: crate::model::NodegroupStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + ///

    The capacity type of your managed node group.

    + pub fn capacity_type(mut self, input: crate::model::CapacityTypes) -> Self { + self.capacity_type = Some(input); + self + } + pub fn set_capacity_type( + mut self, + input: std::option::Option, + ) -> Self { + self.capacity_type = input; + self + } + ///

    The scaling configuration details for the Auto Scaling group that is associated with + /// your node group.

    + pub fn scaling_config(mut self, input: crate::model::NodegroupScalingConfig) -> Self { + self.scaling_config = Some(input); + self + } + pub fn set_scaling_config( + mut self, + input: std::option::Option, + ) -> Self { + self.scaling_config = input; + self + } + pub fn instance_types(mut self, input: impl Into) -> Self { + let mut v = self.instance_types.unwrap_or_default(); + v.push(input.into()); + self.instance_types = Some(v); + self + } + pub fn set_instance_types( + mut self, + input: std::option::Option>, + ) -> Self { + self.instance_types = input; + self + } + pub fn subnets(mut self, input: impl Into) -> Self { + let mut v = self.subnets.unwrap_or_default(); + v.push(input.into()); + self.subnets = Some(v); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnets = input; + self + } + ///

    If the node group wasn't deployed with a launch template, then this is the remote + /// access configuration that is associated with the node group. If the node group was + /// deployed with a launch template, then this is null.

    + pub fn remote_access(mut self, input: crate::model::RemoteAccessConfig) -> Self { + self.remote_access = Some(input); + self + } + pub fn set_remote_access( + mut self, + input: std::option::Option, + ) -> Self { + self.remote_access = input; + self + } + ///

    If the node group was deployed using a launch template with a custom AMI, then this is + /// CUSTOM. For node groups that weren't deployed using a launch template, + /// this is the AMI type that was specified in the node group configuration.

    + pub fn ami_type(mut self, input: crate::model::AmiTypes) -> Self { + self.ami_type = Some(input); + self + } + pub fn set_ami_type(mut self, input: std::option::Option) -> Self { + self.ami_type = input; + self + } + ///

    The IAM role associated with your node group. The Amazon EKS node kubelet + /// daemon makes calls to AWS APIs on your behalf. Nodes receive permissions for these API + /// calls through an IAM instance profile and associated policies.

    + pub fn node_role(mut self, input: impl Into) -> Self { + self.node_role = Some(input.into()); + self + } + pub fn set_node_role(mut self, input: std::option::Option) -> Self { + self.node_role = input; + self + } + pub fn labels( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.labels.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.labels = Some(hash_map); + self + } + pub fn set_labels( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.labels = input; + self + } + pub fn taints(mut self, input: impl Into) -> Self { + let mut v = self.taints.unwrap_or_default(); + v.push(input.into()); + self.taints = Some(v); + self + } + pub fn set_taints( + mut self, + input: std::option::Option>, + ) -> Self { + self.taints = input; + self + } + ///

    The resources associated with the node group, such as Auto Scaling groups and security + /// groups for remote access.

    + pub fn resources(mut self, input: crate::model::NodegroupResources) -> Self { + self.resources = Some(input); + self + } + pub fn set_resources( + mut self, + input: std::option::Option, + ) -> Self { + self.resources = input; + self + } + ///

    If the node group wasn't deployed with a launch template, then this is the disk size + /// in the node group configuration. If the node group was deployed with a launch template, + /// then this is null.

    + pub fn disk_size(mut self, input: i32) -> Self { + self.disk_size = Some(input); + self + } + pub fn set_disk_size(mut self, input: std::option::Option) -> Self { + self.disk_size = input; + self + } + ///

    The health status of the node group. If there are issues with your node group's + /// health, they are listed here.

    + pub fn health(mut self, input: crate::model::NodegroupHealth) -> Self { + self.health = Some(input); + self + } + pub fn set_health( + mut self, + input: std::option::Option, + ) -> Self { + self.health = input; + self + } + pub fn update_config(mut self, input: crate::model::NodegroupUpdateConfig) -> Self { + self.update_config = Some(input); + self + } + pub fn set_update_config( + mut self, + input: std::option::Option, + ) -> Self { + self.update_config = input; + self + } + ///

    If a launch template was used to create the node group, then this is the launch + /// template that was used.

    + pub fn launch_template(mut self, input: crate::model::LaunchTemplateSpecification) -> Self { + self.launch_template = Some(input); + self + } + pub fn set_launch_template( + mut self, + input: std::option::Option, + ) -> Self { + self.launch_template = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`Nodegroup`](crate::model::Nodegroup) + pub fn build(self) -> crate::model::Nodegroup { + crate::model::Nodegroup { + nodegroup_name: self.nodegroup_name, + nodegroup_arn: self.nodegroup_arn, + cluster_name: self.cluster_name, + version: self.version, + release_version: self.release_version, + created_at: self.created_at, + modified_at: self.modified_at, + status: self.status, + capacity_type: self.capacity_type, + scaling_config: self.scaling_config, + instance_types: self.instance_types, + subnets: self.subnets, + remote_access: self.remote_access, + ami_type: self.ami_type, + node_role: self.node_role, + labels: self.labels, + taints: self.taints, + resources: self.resources, + disk_size: self.disk_size, + health: self.health, + update_config: self.update_config, + launch_template: self.launch_template, + tags: self.tags, + } + } + } +} +impl Nodegroup { + /// Creates a new builder-style object to manufacture [`Nodegroup`](crate::model::Nodegroup) + pub fn builder() -> crate::model::nodegroup::Builder { + crate::model::nodegroup::Builder::default() + } +} + +///

    An object representing the health status of the node group.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NodegroupHealth { + ///

    Any issues that are associated with the node group.

    + pub issues: std::option::Option>, +} +impl std::fmt::Debug for NodegroupHealth { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("NodegroupHealth"); + formatter.field("issues", &self.issues); + formatter.finish() + } +} +/// See [`NodegroupHealth`](crate::model::NodegroupHealth) +pub mod nodegroup_health { + /// A builder for [`NodegroupHealth`](crate::model::NodegroupHealth) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) issues: std::option::Option>, + } + impl Builder { + pub fn issues(mut self, input: impl Into) -> Self { + let mut v = self.issues.unwrap_or_default(); + v.push(input.into()); + self.issues = Some(v); + self + } + pub fn set_issues( + mut self, + input: std::option::Option>, + ) -> Self { + self.issues = input; + self + } + /// Consumes the builder and constructs a [`NodegroupHealth`](crate::model::NodegroupHealth) + pub fn build(self) -> crate::model::NodegroupHealth { + crate::model::NodegroupHealth { + issues: self.issues, + } + } + } +} +impl NodegroupHealth { + /// Creates a new builder-style object to manufacture [`NodegroupHealth`](crate::model::NodegroupHealth) + pub fn builder() -> crate::model::nodegroup_health::Builder { + crate::model::nodegroup_health::Builder::default() + } +} + +///

    An object representing an issue with an Amazon EKS resource.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Issue { + ///

    A brief description of the error.

    + ///
      + ///
    • + ///

      + /// AccessDenied: Amazon EKS or one or more of your + /// managed nodes is failing to authenticate or authorize with your Kubernetes + /// cluster API server.

      + ///
    • + ///
    • + ///

      + /// AsgInstanceLaunchFailures: Your Auto Scaling group is + /// experiencing failures while attempting to launch instances.

      + ///
    • + ///
    • + ///

      + /// AutoScalingGroupNotFound: We couldn't find + /// the Auto Scaling group associated with the managed node group. You may be able to + /// recreate an Auto Scaling group with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// ClusterUnreachable: Amazon EKS or one or more of + /// your managed nodes is unable to to communicate with your Kubernetes cluster API + /// server. This can happen if there are network disruptions or if API servers are + /// timing out processing requests.

      + ///
    • + ///
    • + ///

      + /// Ec2LaunchTemplateNotFound: We couldn't find + /// the Amazon EC2 launch template for your managed node group. You may be able to + /// recreate a launch template with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// Ec2LaunchTemplateVersionMismatch: The Amazon EC2 + /// launch template version for your managed node group does not match the version + /// that Amazon EKS created. You may be able to revert to the version that Amazon EKS created + /// to recover.

      + ///
    • + ///
    • + ///

      + /// Ec2SecurityGroupDeletionFailure: We could not + /// delete the remote access security group for your managed node group. Remove any + /// dependencies from the security group.

      + ///
    • + ///
    • + ///

      + /// Ec2SecurityGroupNotFound: We couldn't find + /// the cluster security group for the cluster. You must recreate your + /// cluster.

      + ///
    • + ///
    • + ///

      + /// Ec2SubnetInvalidConfiguration: One or more + /// Amazon EC2 subnets specified for a node group do not automatically assign public IP + /// addresses to instances launched into it. If you want your instances to be + /// assigned a public IP address, then you need to enable the auto-assign + /// public IP address setting for the subnet. See Modifying + /// the public IPv4 addressing attribute for your subnet in the Amazon + /// VPC User Guide.

      + ///
    • + ///
    • + ///

      + /// IamInstanceProfileNotFound: We couldn't find + /// the IAM instance profile for your managed node group. You may be able to + /// recreate an instance profile with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// IamNodeRoleNotFound: We couldn't find the + /// IAM role for your managed node group. You may be able to recreate an IAM role + /// with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// InstanceLimitExceeded: Your AWS account is + /// unable to launch any more instances of the specified instance type. You may be + /// able to request an Amazon EC2 instance limit increase to recover.

      + ///
    • + ///
    • + ///

      + /// InsufficientFreeAddresses: One or more of the + /// subnets associated with your managed node group does not have enough available + /// IP addresses for new nodes.

      + ///
    • + ///
    • + ///

      + /// InternalFailure: These errors are usually + /// caused by an Amazon EKS server-side issue.

      + ///
    • + ///
    • + ///

      + /// NodeCreationFailure: Your launched instances + /// are unable to register with your Amazon EKS cluster. Common causes of this failure + /// are insufficient node IAM role + /// permissions or lack of outbound internet access for the nodes.

      + ///
    • + ///
    + pub code: std::option::Option, + ///

    The error message associated with the issue.

    + pub message: std::option::Option, + ///

    The AWS resources that are afflicted by this issue.

    + pub resource_ids: std::option::Option>, +} +impl std::fmt::Debug for Issue { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Issue"); + formatter.field("code", &self.code); + formatter.field("message", &self.message); + formatter.field("resource_ids", &self.resource_ids); + formatter.finish() + } +} +/// See [`Issue`](crate::model::Issue) +pub mod issue { + /// A builder for [`Issue`](crate::model::Issue) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) code: std::option::Option, + pub(crate) message: std::option::Option, + pub(crate) resource_ids: std::option::Option>, + } + impl Builder { + ///

    A brief description of the error.

    + ///
      + ///
    • + ///

      + /// AccessDenied: Amazon EKS or one or more of your + /// managed nodes is failing to authenticate or authorize with your Kubernetes + /// cluster API server.

      + ///
    • + ///
    • + ///

      + /// AsgInstanceLaunchFailures: Your Auto Scaling group is + /// experiencing failures while attempting to launch instances.

      + ///
    • + ///
    • + ///

      + /// AutoScalingGroupNotFound: We couldn't find + /// the Auto Scaling group associated with the managed node group. You may be able to + /// recreate an Auto Scaling group with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// ClusterUnreachable: Amazon EKS or one or more of + /// your managed nodes is unable to to communicate with your Kubernetes cluster API + /// server. This can happen if there are network disruptions or if API servers are + /// timing out processing requests.

      + ///
    • + ///
    • + ///

      + /// Ec2LaunchTemplateNotFound: We couldn't find + /// the Amazon EC2 launch template for your managed node group. You may be able to + /// recreate a launch template with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// Ec2LaunchTemplateVersionMismatch: The Amazon EC2 + /// launch template version for your managed node group does not match the version + /// that Amazon EKS created. You may be able to revert to the version that Amazon EKS created + /// to recover.

      + ///
    • + ///
    • + ///

      + /// Ec2SecurityGroupDeletionFailure: We could not + /// delete the remote access security group for your managed node group. Remove any + /// dependencies from the security group.

      + ///
    • + ///
    • + ///

      + /// Ec2SecurityGroupNotFound: We couldn't find + /// the cluster security group for the cluster. You must recreate your + /// cluster.

      + ///
    • + ///
    • + ///

      + /// Ec2SubnetInvalidConfiguration: One or more + /// Amazon EC2 subnets specified for a node group do not automatically assign public IP + /// addresses to instances launched into it. If you want your instances to be + /// assigned a public IP address, then you need to enable the auto-assign + /// public IP address setting for the subnet. See Modifying + /// the public IPv4 addressing attribute for your subnet in the Amazon + /// VPC User Guide.

      + ///
    • + ///
    • + ///

      + /// IamInstanceProfileNotFound: We couldn't find + /// the IAM instance profile for your managed node group. You may be able to + /// recreate an instance profile with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// IamNodeRoleNotFound: We couldn't find the + /// IAM role for your managed node group. You may be able to recreate an IAM role + /// with the same settings to recover.

      + ///
    • + ///
    • + ///

      + /// InstanceLimitExceeded: Your AWS account is + /// unable to launch any more instances of the specified instance type. You may be + /// able to request an Amazon EC2 instance limit increase to recover.

      + ///
    • + ///
    • + ///

      + /// InsufficientFreeAddresses: One or more of the + /// subnets associated with your managed node group does not have enough available + /// IP addresses for new nodes.

      + ///
    • + ///
    • + ///

      + /// InternalFailure: These errors are usually + /// caused by an Amazon EKS server-side issue.

      + ///
    • + ///
    • + ///

      + /// NodeCreationFailure: Your launched instances + /// are unable to register with your Amazon EKS cluster. Common causes of this failure + /// are insufficient node IAM role + /// permissions or lack of outbound internet access for the nodes.

      + ///
    • + ///
    + pub fn code(mut self, input: crate::model::NodegroupIssueCode) -> Self { + self.code = Some(input); + self + } + pub fn set_code( + mut self, + input: std::option::Option, + ) -> Self { + self.code = input; + self + } + ///

    The error message associated with the issue.

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + pub fn resource_ids(mut self, input: impl Into) -> Self { + let mut v = self.resource_ids.unwrap_or_default(); + v.push(input.into()); + self.resource_ids = Some(v); + self + } + pub fn set_resource_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.resource_ids = input; + self + } + /// Consumes the builder and constructs a [`Issue`](crate::model::Issue) + pub fn build(self) -> crate::model::Issue { + crate::model::Issue { + code: self.code, + message: self.message, + resource_ids: self.resource_ids, + } + } + } +} +impl Issue { + /// Creates a new builder-style object to manufacture [`Issue`](crate::model::Issue) + pub fn builder() -> crate::model::issue::Builder { + crate::model::issue::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum NodegroupIssueCode { + AccessDenied, + AsgInstanceLaunchFailures, + AutoScalingGroupInvalidConfiguration, + AutoScalingGroupNotFound, + ClusterUnreachable, + Ec2LaunchTemplateNotFound, + Ec2LaunchTemplateVersionMismatch, + Ec2SecurityGroupDeletionFailure, + Ec2SecurityGroupNotFound, + Ec2SubnetInvalidConfiguration, + Ec2SubnetNotFound, + IamInstanceProfileNotFound, + IamLimitExceeded, + IamNodeRoleNotFound, + InstanceLimitExceeded, + InsufficientFreeAddresses, + InternalFailure, + NodeCreationFailure, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for NodegroupIssueCode { + fn from(s: &str) -> Self { + match s { + "AccessDenied" => NodegroupIssueCode::AccessDenied, + "AsgInstanceLaunchFailures" => NodegroupIssueCode::AsgInstanceLaunchFailures, + "AutoScalingGroupInvalidConfiguration" => { + NodegroupIssueCode::AutoScalingGroupInvalidConfiguration + } + "AutoScalingGroupNotFound" => NodegroupIssueCode::AutoScalingGroupNotFound, + "ClusterUnreachable" => NodegroupIssueCode::ClusterUnreachable, + "Ec2LaunchTemplateNotFound" => NodegroupIssueCode::Ec2LaunchTemplateNotFound, + "Ec2LaunchTemplateVersionMismatch" => { + NodegroupIssueCode::Ec2LaunchTemplateVersionMismatch + } + "Ec2SecurityGroupDeletionFailure" => { + NodegroupIssueCode::Ec2SecurityGroupDeletionFailure + } + "Ec2SecurityGroupNotFound" => NodegroupIssueCode::Ec2SecurityGroupNotFound, + "Ec2SubnetInvalidConfiguration" => NodegroupIssueCode::Ec2SubnetInvalidConfiguration, + "Ec2SubnetNotFound" => NodegroupIssueCode::Ec2SubnetNotFound, + "IamInstanceProfileNotFound" => NodegroupIssueCode::IamInstanceProfileNotFound, + "IamLimitExceeded" => NodegroupIssueCode::IamLimitExceeded, + "IamNodeRoleNotFound" => NodegroupIssueCode::IamNodeRoleNotFound, + "InstanceLimitExceeded" => NodegroupIssueCode::InstanceLimitExceeded, + "InsufficientFreeAddresses" => NodegroupIssueCode::InsufficientFreeAddresses, + "InternalFailure" => NodegroupIssueCode::InternalFailure, + "NodeCreationFailure" => NodegroupIssueCode::NodeCreationFailure, + other => NodegroupIssueCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for NodegroupIssueCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(NodegroupIssueCode::from(s)) + } +} +impl NodegroupIssueCode { + pub fn as_str(&self) -> &str { + match self { + NodegroupIssueCode::AccessDenied => "AccessDenied", + NodegroupIssueCode::AsgInstanceLaunchFailures => "AsgInstanceLaunchFailures", + NodegroupIssueCode::AutoScalingGroupInvalidConfiguration => { + "AutoScalingGroupInvalidConfiguration" + } + NodegroupIssueCode::AutoScalingGroupNotFound => "AutoScalingGroupNotFound", + NodegroupIssueCode::ClusterUnreachable => "ClusterUnreachable", + NodegroupIssueCode::Ec2LaunchTemplateNotFound => "Ec2LaunchTemplateNotFound", + NodegroupIssueCode::Ec2LaunchTemplateVersionMismatch => { + "Ec2LaunchTemplateVersionMismatch" + } + NodegroupIssueCode::Ec2SecurityGroupDeletionFailure => { + "Ec2SecurityGroupDeletionFailure" + } + NodegroupIssueCode::Ec2SecurityGroupNotFound => "Ec2SecurityGroupNotFound", + NodegroupIssueCode::Ec2SubnetInvalidConfiguration => "Ec2SubnetInvalidConfiguration", + NodegroupIssueCode::Ec2SubnetNotFound => "Ec2SubnetNotFound", + NodegroupIssueCode::IamInstanceProfileNotFound => "IamInstanceProfileNotFound", + NodegroupIssueCode::IamLimitExceeded => "IamLimitExceeded", + NodegroupIssueCode::IamNodeRoleNotFound => "IamNodeRoleNotFound", + NodegroupIssueCode::InstanceLimitExceeded => "InstanceLimitExceeded", + NodegroupIssueCode::InsufficientFreeAddresses => "InsufficientFreeAddresses", + NodegroupIssueCode::InternalFailure => "InternalFailure", + NodegroupIssueCode::NodeCreationFailure => "NodeCreationFailure", + NodegroupIssueCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for NodegroupIssueCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing the resources associated with the node group, such as Auto +/// Scaling groups and security groups for remote access.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NodegroupResources { + ///

    The Auto Scaling groups associated with the node group.

    + pub auto_scaling_groups: std::option::Option>, + ///

    The remote access security group associated with the node group. This security group + /// controls SSH access to the nodes.

    + pub remote_access_security_group: std::option::Option, +} +impl std::fmt::Debug for NodegroupResources { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("NodegroupResources"); + formatter.field("auto_scaling_groups", &self.auto_scaling_groups); + formatter.field( + "remote_access_security_group", + &self.remote_access_security_group, + ); + formatter.finish() + } +} +/// See [`NodegroupResources`](crate::model::NodegroupResources) +pub mod nodegroup_resources { + /// A builder for [`NodegroupResources`](crate::model::NodegroupResources) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) auto_scaling_groups: + std::option::Option>, + pub(crate) remote_access_security_group: std::option::Option, + } + impl Builder { + pub fn auto_scaling_groups( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.auto_scaling_groups.unwrap_or_default(); + v.push(input.into()); + self.auto_scaling_groups = Some(v); + self + } + pub fn set_auto_scaling_groups( + mut self, + input: std::option::Option>, + ) -> Self { + self.auto_scaling_groups = input; + self + } + ///

    The remote access security group associated with the node group. This security group + /// controls SSH access to the nodes.

    + pub fn remote_access_security_group( + mut self, + input: impl Into, + ) -> Self { + self.remote_access_security_group = Some(input.into()); + self + } + pub fn set_remote_access_security_group( + mut self, + input: std::option::Option, + ) -> Self { + self.remote_access_security_group = input; + self + } + /// Consumes the builder and constructs a [`NodegroupResources`](crate::model::NodegroupResources) + pub fn build(self) -> crate::model::NodegroupResources { + crate::model::NodegroupResources { + auto_scaling_groups: self.auto_scaling_groups, + remote_access_security_group: self.remote_access_security_group, + } + } + } +} +impl NodegroupResources { + /// Creates a new builder-style object to manufacture [`NodegroupResources`](crate::model::NodegroupResources) + pub fn builder() -> crate::model::nodegroup_resources::Builder { + crate::model::nodegroup_resources::Builder::default() + } +} + +///

    An Auto Scaling group that is associated with an Amazon EKS managed node group.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoScalingGroup { + ///

    The name of the Auto Scaling group associated with an Amazon EKS managed node group.

    + pub name: std::option::Option, +} +impl std::fmt::Debug for AutoScalingGroup { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AutoScalingGroup"); + formatter.field("name", &self.name); + formatter.finish() + } +} +/// See [`AutoScalingGroup`](crate::model::AutoScalingGroup) +pub mod auto_scaling_group { + /// A builder for [`AutoScalingGroup`](crate::model::AutoScalingGroup) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + } + impl Builder { + ///

    The name of the Auto Scaling group associated with an Amazon EKS managed node group.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + /// Consumes the builder and constructs a [`AutoScalingGroup`](crate::model::AutoScalingGroup) + pub fn build(self) -> crate::model::AutoScalingGroup { + crate::model::AutoScalingGroup { name: self.name } + } + } +} +impl AutoScalingGroup { + /// Creates a new builder-style object to manufacture [`AutoScalingGroup`](crate::model::AutoScalingGroup) + pub fn builder() -> crate::model::auto_scaling_group::Builder { + crate::model::auto_scaling_group::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum AmiTypes { + Al2Arm64, + Al2X8664, + Al2X8664Gpu, + Custom, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for AmiTypes { + fn from(s: &str) -> Self { + match s { + "AL2_ARM_64" => AmiTypes::Al2Arm64, + "AL2_x86_64" => AmiTypes::Al2X8664, + "AL2_x86_64_GPU" => AmiTypes::Al2X8664Gpu, + "CUSTOM" => AmiTypes::Custom, + other => AmiTypes::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for AmiTypes { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(AmiTypes::from(s)) + } +} +impl AmiTypes { + pub fn as_str(&self) -> &str { + match self { + AmiTypes::Al2Arm64 => "AL2_ARM_64", + AmiTypes::Al2X8664 => "AL2_x86_64", + AmiTypes::Al2X8664Gpu => "AL2_x86_64_GPU", + AmiTypes::Custom => "CUSTOM", + AmiTypes::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for AmiTypes { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing the remote access configuration for the managed node +/// group.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RemoteAccessConfig { + ///

    The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the + /// managed node group. For more information, see Amazon EC2 Key + /// Pairs in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

    + pub ec2_ssh_key: std::option::Option, + ///

    The security groups that are allowed SSH access (port 22) to the nodes. If you specify + /// an Amazon EC2 SSH key but do not specify a source security group when you create a managed + /// node group, then port 22 on the nodes is opened to the internet (0.0.0.0/0). For more + /// information, see Security Groups for Your VPC in the + /// Amazon Virtual Private Cloud User Guide.

    + pub source_security_groups: std::option::Option>, +} +impl std::fmt::Debug for RemoteAccessConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("RemoteAccessConfig"); + formatter.field("ec2_ssh_key", &self.ec2_ssh_key); + formatter.field("source_security_groups", &self.source_security_groups); + formatter.finish() + } +} +/// See [`RemoteAccessConfig`](crate::model::RemoteAccessConfig) +pub mod remote_access_config { + /// A builder for [`RemoteAccessConfig`](crate::model::RemoteAccessConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) ec2_ssh_key: std::option::Option, + pub(crate) source_security_groups: std::option::Option>, + } + impl Builder { + ///

    The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the + /// managed node group. For more information, see Amazon EC2 Key + /// Pairs in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

    + pub fn ec2_ssh_key(mut self, input: impl Into) -> Self { + self.ec2_ssh_key = Some(input.into()); + self + } + pub fn set_ec2_ssh_key(mut self, input: std::option::Option) -> Self { + self.ec2_ssh_key = input; + self + } + pub fn source_security_groups(mut self, input: impl Into) -> Self { + let mut v = self.source_security_groups.unwrap_or_default(); + v.push(input.into()); + self.source_security_groups = Some(v); + self + } + pub fn set_source_security_groups( + mut self, + input: std::option::Option>, + ) -> Self { + self.source_security_groups = input; + self + } + /// Consumes the builder and constructs a [`RemoteAccessConfig`](crate::model::RemoteAccessConfig) + pub fn build(self) -> crate::model::RemoteAccessConfig { + crate::model::RemoteAccessConfig { + ec2_ssh_key: self.ec2_ssh_key, + source_security_groups: self.source_security_groups, + } + } + } +} +impl RemoteAccessConfig { + /// Creates a new builder-style object to manufacture [`RemoteAccessConfig`](crate::model::RemoteAccessConfig) + pub fn builder() -> crate::model::remote_access_config::Builder { + crate::model::remote_access_config::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum CapacityTypes { + OnDemand, + Spot, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for CapacityTypes { + fn from(s: &str) -> Self { + match s { + "ON_DEMAND" => CapacityTypes::OnDemand, + "SPOT" => CapacityTypes::Spot, + other => CapacityTypes::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for CapacityTypes { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(CapacityTypes::from(s)) + } +} +impl CapacityTypes { + pub fn as_str(&self) -> &str { + match self { + CapacityTypes::OnDemand => "ON_DEMAND", + CapacityTypes::Spot => "SPOT", + CapacityTypes::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for CapacityTypes { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum NodegroupStatus { + Active, + CreateFailed, + Creating, + Degraded, + DeleteFailed, + Deleting, + Updating, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for NodegroupStatus { + fn from(s: &str) -> Self { + match s { + "ACTIVE" => NodegroupStatus::Active, + "CREATE_FAILED" => NodegroupStatus::CreateFailed, + "CREATING" => NodegroupStatus::Creating, + "DEGRADED" => NodegroupStatus::Degraded, + "DELETE_FAILED" => NodegroupStatus::DeleteFailed, + "DELETING" => NodegroupStatus::Deleting, + "UPDATING" => NodegroupStatus::Updating, + other => NodegroupStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for NodegroupStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(NodegroupStatus::from(s)) + } +} +impl NodegroupStatus { + pub fn as_str(&self) -> &str { + match self { + NodegroupStatus::Active => "ACTIVE", + NodegroupStatus::CreateFailed => "CREATE_FAILED", + NodegroupStatus::Creating => "CREATING", + NodegroupStatus::Degraded => "DEGRADED", + NodegroupStatus::DeleteFailed => "DELETE_FAILED", + NodegroupStatus::Deleting => "DELETING", + NodegroupStatus::Updating => "UPDATING", + NodegroupStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for NodegroupStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object that represents an identity configuration.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IdentityProviderConfigResponse { + ///

    An object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub oidc: std::option::Option, +} +impl std::fmt::Debug for IdentityProviderConfigResponse { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("IdentityProviderConfigResponse"); + formatter.field("oidc", &self.oidc); + formatter.finish() + } +} +/// See [`IdentityProviderConfigResponse`](crate::model::IdentityProviderConfigResponse) +pub mod identity_provider_config_response { + /// A builder for [`IdentityProviderConfigResponse`](crate::model::IdentityProviderConfigResponse) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) oidc: std::option::Option, + } + impl Builder { + ///

    An object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub fn oidc(mut self, input: crate::model::OidcIdentityProviderConfig) -> Self { + self.oidc = Some(input); + self + } + pub fn set_oidc( + mut self, + input: std::option::Option, + ) -> Self { + self.oidc = input; + self + } + /// Consumes the builder and constructs a [`IdentityProviderConfigResponse`](crate::model::IdentityProviderConfigResponse) + pub fn build(self) -> crate::model::IdentityProviderConfigResponse { + crate::model::IdentityProviderConfigResponse { oidc: self.oidc } + } + } +} +impl IdentityProviderConfigResponse { + /// Creates a new builder-style object to manufacture [`IdentityProviderConfigResponse`](crate::model::IdentityProviderConfigResponse) + pub fn builder() -> crate::model::identity_provider_config_response::Builder { + crate::model::identity_provider_config_response::Builder::default() + } +} + +///

    An object that represents the configuration for an OpenID Connect (OIDC) identity +/// provider.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OidcIdentityProviderConfig { + ///

    The name of the configuration.

    + pub identity_provider_config_name: std::option::Option, + ///

    The ARN of the configuration.

    + pub identity_provider_config_arn: std::option::Option, + ///

    The cluster that the configuration is associated to.

    + pub cluster_name: std::option::Option, + ///

    The URL of the OIDC identity provider that allows the API server to discover public + /// signing keys for verifying tokens.

    + pub issuer_url: std::option::Option, + ///

    This is also known as audience. The ID of the client application + /// that makes authentication requests to the OIDC identity provider.

    + pub client_id: std::option::Option, + ///

    The JSON Web token (JWT) claim that is used as the username.

    + pub username_claim: std::option::Option, + ///

    The prefix that is prepended to username claims to prevent clashes with existing + /// names. The prefix can't contain system: + ///

    + pub username_prefix: std::option::Option, + ///

    The JSON web token (JWT) claim that the provider uses to return your groups.

    + pub groups_claim: std::option::Option, + ///

    The prefix that is prepended to group claims to prevent clashes with existing names + /// (such as system: groups). For example, the value oidc: creates + /// group names like oidc:engineering and oidc:infra. The prefix + /// can't contain system: + ///

    + pub groups_prefix: std::option::Option, + ///

    The key-value pairs that describe required claims in the identity token. If set, each + /// claim is verified to be present in the token with a matching value.

    + pub required_claims: + std::option::Option>, + ///

    The metadata to apply to the provider configuration to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// defined.

    + pub tags: + std::option::Option>, + ///

    The status of the OIDC identity provider.

    + pub status: std::option::Option, +} +impl std::fmt::Debug for OidcIdentityProviderConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("OidcIdentityProviderConfig"); + formatter.field( + "identity_provider_config_name", + &self.identity_provider_config_name, + ); + formatter.field( + "identity_provider_config_arn", + &self.identity_provider_config_arn, + ); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("issuer_url", &self.issuer_url); + formatter.field("client_id", &self.client_id); + formatter.field("username_claim", &self.username_claim); + formatter.field("username_prefix", &self.username_prefix); + formatter.field("groups_claim", &self.groups_claim); + formatter.field("groups_prefix", &self.groups_prefix); + formatter.field("required_claims", &self.required_claims); + formatter.field("tags", &self.tags); + formatter.field("status", &self.status); + formatter.finish() + } +} +/// See [`OidcIdentityProviderConfig`](crate::model::OidcIdentityProviderConfig) +pub mod oidc_identity_provider_config { + /// A builder for [`OidcIdentityProviderConfig`](crate::model::OidcIdentityProviderConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) identity_provider_config_name: std::option::Option, + pub(crate) identity_provider_config_arn: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) issuer_url: std::option::Option, + pub(crate) client_id: std::option::Option, + pub(crate) username_claim: std::option::Option, + pub(crate) username_prefix: std::option::Option, + pub(crate) groups_claim: std::option::Option, + pub(crate) groups_prefix: std::option::Option, + pub(crate) required_claims: std::option::Option< + std::collections::HashMap, + >, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + pub(crate) status: std::option::Option, + } + impl Builder { + ///

    The name of the configuration.

    + pub fn identity_provider_config_name( + mut self, + input: impl Into, + ) -> Self { + self.identity_provider_config_name = Some(input.into()); + self + } + pub fn set_identity_provider_config_name( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config_name = input; + self + } + ///

    The ARN of the configuration.

    + pub fn identity_provider_config_arn( + mut self, + input: impl Into, + ) -> Self { + self.identity_provider_config_arn = Some(input.into()); + self + } + pub fn set_identity_provider_config_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config_arn = input; + self + } + ///

    The cluster that the configuration is associated to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The URL of the OIDC identity provider that allows the API server to discover public + /// signing keys for verifying tokens.

    + pub fn issuer_url(mut self, input: impl Into) -> Self { + self.issuer_url = Some(input.into()); + self + } + pub fn set_issuer_url(mut self, input: std::option::Option) -> Self { + self.issuer_url = input; + self + } + ///

    This is also known as audience. The ID of the client application + /// that makes authentication requests to the OIDC identity provider.

    + pub fn client_id(mut self, input: impl Into) -> Self { + self.client_id = Some(input.into()); + self + } + pub fn set_client_id(mut self, input: std::option::Option) -> Self { + self.client_id = input; + self + } + ///

    The JSON Web token (JWT) claim that is used as the username.

    + pub fn username_claim(mut self, input: impl Into) -> Self { + self.username_claim = Some(input.into()); + self + } + pub fn set_username_claim( + mut self, + input: std::option::Option, + ) -> Self { + self.username_claim = input; + self + } + ///

    The prefix that is prepended to username claims to prevent clashes with existing + /// names. The prefix can't contain system: + ///

    + pub fn username_prefix(mut self, input: impl Into) -> Self { + self.username_prefix = Some(input.into()); + self + } + pub fn set_username_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.username_prefix = input; + self + } + ///

    The JSON web token (JWT) claim that the provider uses to return your groups.

    + pub fn groups_claim(mut self, input: impl Into) -> Self { + self.groups_claim = Some(input.into()); + self + } + pub fn set_groups_claim(mut self, input: std::option::Option) -> Self { + self.groups_claim = input; + self + } + ///

    The prefix that is prepended to group claims to prevent clashes with existing names + /// (such as system: groups). For example, the value oidc: creates + /// group names like oidc:engineering and oidc:infra. The prefix + /// can't contain system: + ///

    + pub fn groups_prefix(mut self, input: impl Into) -> Self { + self.groups_prefix = Some(input.into()); + self + } + pub fn set_groups_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.groups_prefix = input; + self + } + pub fn required_claims( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.required_claims.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.required_claims = Some(hash_map); + self + } + pub fn set_required_claims( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.required_claims = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + ///

    The status of the OIDC identity provider.

    + pub fn status(mut self, input: crate::model::ConfigStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + /// Consumes the builder and constructs a [`OidcIdentityProviderConfig`](crate::model::OidcIdentityProviderConfig) + pub fn build(self) -> crate::model::OidcIdentityProviderConfig { + crate::model::OidcIdentityProviderConfig { + identity_provider_config_name: self.identity_provider_config_name, + identity_provider_config_arn: self.identity_provider_config_arn, + cluster_name: self.cluster_name, + issuer_url: self.issuer_url, + client_id: self.client_id, + username_claim: self.username_claim, + username_prefix: self.username_prefix, + groups_claim: self.groups_claim, + groups_prefix: self.groups_prefix, + required_claims: self.required_claims, + tags: self.tags, + status: self.status, + } + } + } +} +impl OidcIdentityProviderConfig { + /// Creates a new builder-style object to manufacture [`OidcIdentityProviderConfig`](crate::model::OidcIdentityProviderConfig) + pub fn builder() -> crate::model::oidc_identity_provider_config::Builder { + crate::model::oidc_identity_provider_config::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ConfigStatus { + Active, + Creating, + Deleting, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ConfigStatus { + fn from(s: &str) -> Self { + match s { + "ACTIVE" => ConfigStatus::Active, + "CREATING" => ConfigStatus::Creating, + "DELETING" => ConfigStatus::Deleting, + other => ConfigStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ConfigStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ConfigStatus::from(s)) + } +} +impl ConfigStatus { + pub fn as_str(&self) -> &str { + match self { + ConfigStatus::Active => "ACTIVE", + ConfigStatus::Creating => "CREATING", + ConfigStatus::Deleting => "DELETING", + ConfigStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ConfigStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing an AWS Fargate profile.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct FargateProfile { + ///

    The name of the Fargate profile.

    + pub fargate_profile_name: std::option::Option, + ///

    The full Amazon Resource Name (ARN) of the Fargate profile.

    + pub fargate_profile_arn: std::option::Option, + ///

    The name of the Amazon EKS cluster that the Fargate profile belongs to.

    + pub cluster_name: std::option::Option, + ///

    The Unix epoch timestamp in seconds for when the Fargate profile was created.

    + pub created_at: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in + /// the Fargate profile. For more information, see Pod + /// Execution Role in the Amazon EKS User Guide.

    + pub pod_execution_role_arn: std::option::Option, + ///

    The IDs of subnets to launch pods into.

    + pub subnets: std::option::Option>, + ///

    The selectors to match for pods to use this Fargate profile.

    + pub selectors: std::option::Option>, + ///

    The current status of the Fargate profile.

    + pub status: std::option::Option, + ///

    The metadata applied to the Fargate profile to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Fargate profile tags do not propagate to any other resources associated with the + /// Fargate profile, such as the pods that are scheduled with it.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for FargateProfile { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("FargateProfile"); + formatter.field("fargate_profile_name", &self.fargate_profile_name); + formatter.field("fargate_profile_arn", &self.fargate_profile_arn); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("created_at", &self.created_at); + formatter.field("pod_execution_role_arn", &self.pod_execution_role_arn); + formatter.field("subnets", &self.subnets); + formatter.field("selectors", &self.selectors); + formatter.field("status", &self.status); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`FargateProfile`](crate::model::FargateProfile) +pub mod fargate_profile { + /// A builder for [`FargateProfile`](crate::model::FargateProfile) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile_name: std::option::Option, + pub(crate) fargate_profile_arn: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) created_at: std::option::Option, + pub(crate) pod_execution_role_arn: std::option::Option, + pub(crate) subnets: std::option::Option>, + pub(crate) selectors: + std::option::Option>, + pub(crate) status: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name of the Fargate profile.

    + pub fn fargate_profile_name(mut self, input: impl Into) -> Self { + self.fargate_profile_name = Some(input.into()); + self + } + pub fn set_fargate_profile_name( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_name = input; + self + } + ///

    The full Amazon Resource Name (ARN) of the Fargate profile.

    + pub fn fargate_profile_arn(mut self, input: impl Into) -> Self { + self.fargate_profile_arn = Some(input.into()); + self + } + pub fn set_fargate_profile_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile_arn = input; + self + } + ///

    The name of the Amazon EKS cluster that the Fargate profile belongs to.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The Unix epoch timestamp in seconds for when the Fargate profile was created.

    + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + ///

    The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in + /// the Fargate profile. For more information, see Pod + /// Execution Role in the Amazon EKS User Guide.

    + pub fn pod_execution_role_arn(mut self, input: impl Into) -> Self { + self.pod_execution_role_arn = Some(input.into()); + self + } + pub fn set_pod_execution_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.pod_execution_role_arn = input; + self + } + pub fn subnets(mut self, input: impl Into) -> Self { + let mut v = self.subnets.unwrap_or_default(); + v.push(input.into()); + self.subnets = Some(v); + self + } + pub fn set_subnets( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnets = input; + self + } + pub fn selectors(mut self, input: impl Into) -> Self { + let mut v = self.selectors.unwrap_or_default(); + v.push(input.into()); + self.selectors = Some(v); + self + } + pub fn set_selectors( + mut self, + input: std::option::Option>, + ) -> Self { + self.selectors = input; + self + } + ///

    The current status of the Fargate profile.

    + pub fn status(mut self, input: crate::model::FargateProfileStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`FargateProfile`](crate::model::FargateProfile) + pub fn build(self) -> crate::model::FargateProfile { + crate::model::FargateProfile { + fargate_profile_name: self.fargate_profile_name, + fargate_profile_arn: self.fargate_profile_arn, + cluster_name: self.cluster_name, + created_at: self.created_at, + pod_execution_role_arn: self.pod_execution_role_arn, + subnets: self.subnets, + selectors: self.selectors, + status: self.status, + tags: self.tags, + } + } + } +} +impl FargateProfile { + /// Creates a new builder-style object to manufacture [`FargateProfile`](crate::model::FargateProfile) + pub fn builder() -> crate::model::fargate_profile::Builder { + crate::model::fargate_profile::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum FargateProfileStatus { + Active, + CreateFailed, + Creating, + DeleteFailed, + Deleting, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for FargateProfileStatus { + fn from(s: &str) -> Self { + match s { + "ACTIVE" => FargateProfileStatus::Active, + "CREATE_FAILED" => FargateProfileStatus::CreateFailed, + "CREATING" => FargateProfileStatus::Creating, + "DELETE_FAILED" => FargateProfileStatus::DeleteFailed, + "DELETING" => FargateProfileStatus::Deleting, + other => FargateProfileStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for FargateProfileStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(FargateProfileStatus::from(s)) + } +} +impl FargateProfileStatus { + pub fn as_str(&self) -> &str { + match self { + FargateProfileStatus::Active => "ACTIVE", + FargateProfileStatus::CreateFailed => "CREATE_FAILED", + FargateProfileStatus::Creating => "CREATING", + FargateProfileStatus::DeleteFailed => "DELETE_FAILED", + FargateProfileStatus::Deleting => "DELETING", + FargateProfileStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for FargateProfileStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing an AWS Fargate profile selector.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct FargateProfileSelector { + ///

    The Kubernetes namespace that the selector should match.

    + pub namespace: std::option::Option, + ///

    The Kubernetes labels that the selector should match. A pod must contain all of the + /// labels that are specified in the selector for it to be considered a match.

    + pub labels: + std::option::Option>, +} +impl std::fmt::Debug for FargateProfileSelector { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("FargateProfileSelector"); + formatter.field("namespace", &self.namespace); + formatter.field("labels", &self.labels); + formatter.finish() + } +} +/// See [`FargateProfileSelector`](crate::model::FargateProfileSelector) +pub mod fargate_profile_selector { + /// A builder for [`FargateProfileSelector`](crate::model::FargateProfileSelector) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) namespace: std::option::Option, + pub(crate) labels: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The Kubernetes namespace that the selector should match.

    + pub fn namespace(mut self, input: impl Into) -> Self { + self.namespace = Some(input.into()); + self + } + pub fn set_namespace(mut self, input: std::option::Option) -> Self { + self.namespace = input; + self + } + pub fn labels( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.labels.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.labels = Some(hash_map); + self + } + pub fn set_labels( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.labels = input; + self + } + /// Consumes the builder and constructs a [`FargateProfileSelector`](crate::model::FargateProfileSelector) + pub fn build(self) -> crate::model::FargateProfileSelector { + crate::model::FargateProfileSelector { + namespace: self.namespace, + labels: self.labels, + } + } + } +} +impl FargateProfileSelector { + /// Creates a new builder-style object to manufacture [`FargateProfileSelector`](crate::model::FargateProfileSelector) + pub fn builder() -> crate::model::fargate_profile_selector::Builder { + crate::model::fargate_profile_selector::Builder::default() + } +} + +///

    An object representing an Amazon EKS cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Cluster { + ///

    The name of the cluster.

    + pub name: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the cluster.

    + pub arn: std::option::Option, + ///

    The Unix epoch timestamp in seconds for when the cluster was created.

    + pub created_at: std::option::Option, + ///

    The Kubernetes server version for the cluster.

    + pub version: std::option::Option, + ///

    The endpoint for your Kubernetes API server.

    + pub endpoint: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control + /// plane to make calls to AWS API operations on your behalf.

    + pub role_arn: std::option::Option, + ///

    The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have + /// specific requirements to work properly with Kubernetes. For more information, see Cluster VPC + /// Considerations and Cluster Security Group Considerations in the + /// Amazon EKS User Guide.

    + pub resources_vpc_config: std::option::Option, + ///

    The Kubernetes network configuration for the cluster.

    + pub kubernetes_network_config: + std::option::Option, + ///

    The logging configuration for your cluster.

    + pub logging: std::option::Option, + ///

    The identity provider information for the cluster.

    + pub identity: std::option::Option, + ///

    The current status of the cluster.

    + pub status: std::option::Option, + ///

    The certificate-authority-data for your cluster.

    + pub certificate_authority: std::option::Option, + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub client_request_token: std::option::Option, + ///

    The platform version of your Amazon EKS cluster. For more information, see Platform + /// Versions in the + /// Amazon EKS User Guide + /// .

    + pub platform_version: std::option::Option, + ///

    The metadata that you apply to the cluster to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Cluster tags do not propagate to any other resources associated with the + /// cluster.

    + pub tags: + std::option::Option>, + ///

    The encryption configuration for the cluster.

    + pub encryption_config: std::option::Option>, +} +impl std::fmt::Debug for Cluster { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Cluster"); + formatter.field("name", &self.name); + formatter.field("arn", &self.arn); + formatter.field("created_at", &self.created_at); + formatter.field("version", &self.version); + formatter.field("endpoint", &self.endpoint); + formatter.field("role_arn", &self.role_arn); + formatter.field("resources_vpc_config", &self.resources_vpc_config); + formatter.field("kubernetes_network_config", &self.kubernetes_network_config); + formatter.field("logging", &self.logging); + formatter.field("identity", &self.identity); + formatter.field("status", &self.status); + formatter.field("certificate_authority", &self.certificate_authority); + formatter.field("client_request_token", &self.client_request_token); + formatter.field("platform_version", &self.platform_version); + formatter.field("tags", &self.tags); + formatter.field("encryption_config", &self.encryption_config); + formatter.finish() + } +} +/// See [`Cluster`](crate::model::Cluster) +pub mod cluster { + /// A builder for [`Cluster`](crate::model::Cluster) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) name: std::option::Option, + pub(crate) arn: std::option::Option, + pub(crate) created_at: std::option::Option, + pub(crate) version: std::option::Option, + pub(crate) endpoint: std::option::Option, + pub(crate) role_arn: std::option::Option, + pub(crate) resources_vpc_config: std::option::Option, + pub(crate) kubernetes_network_config: + std::option::Option, + pub(crate) logging: std::option::Option, + pub(crate) identity: std::option::Option, + pub(crate) status: std::option::Option, + pub(crate) certificate_authority: std::option::Option, + pub(crate) client_request_token: std::option::Option, + pub(crate) platform_version: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + pub(crate) encryption_config: + std::option::Option>, + } + impl Builder { + ///

    The name of the cluster.

    + pub fn name(mut self, input: impl Into) -> Self { + self.name = Some(input.into()); + self + } + pub fn set_name(mut self, input: std::option::Option) -> Self { + self.name = input; + self + } + ///

    The Amazon Resource Name (ARN) of the cluster.

    + pub fn arn(mut self, input: impl Into) -> Self { + self.arn = Some(input.into()); + self + } + pub fn set_arn(mut self, input: std::option::Option) -> Self { + self.arn = input; + self + } + ///

    The Unix epoch timestamp in seconds for when the cluster was created.

    + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + ///

    The Kubernetes server version for the cluster.

    + pub fn version(mut self, input: impl Into) -> Self { + self.version = Some(input.into()); + self + } + pub fn set_version(mut self, input: std::option::Option) -> Self { + self.version = input; + self + } + ///

    The endpoint for your Kubernetes API server.

    + pub fn endpoint(mut self, input: impl Into) -> Self { + self.endpoint = Some(input.into()); + self + } + pub fn set_endpoint(mut self, input: std::option::Option) -> Self { + self.endpoint = input; + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control + /// plane to make calls to AWS API operations on your behalf.

    + pub fn role_arn(mut self, input: impl Into) -> Self { + self.role_arn = Some(input.into()); + self + } + pub fn set_role_arn(mut self, input: std::option::Option) -> Self { + self.role_arn = input; + self + } + ///

    The VPC configuration used by the cluster control plane. Amazon EKS VPC resources have + /// specific requirements to work properly with Kubernetes. For more information, see Cluster VPC + /// Considerations and Cluster Security Group Considerations in the + /// Amazon EKS User Guide.

    + pub fn resources_vpc_config(mut self, input: crate::model::VpcConfigResponse) -> Self { + self.resources_vpc_config = Some(input); + self + } + pub fn set_resources_vpc_config( + mut self, + input: std::option::Option, + ) -> Self { + self.resources_vpc_config = input; + self + } + ///

    The Kubernetes network configuration for the cluster.

    + pub fn kubernetes_network_config( + mut self, + input: crate::model::KubernetesNetworkConfigResponse, + ) -> Self { + self.kubernetes_network_config = Some(input); + self + } + pub fn set_kubernetes_network_config( + mut self, + input: std::option::Option, + ) -> Self { + self.kubernetes_network_config = input; + self + } + ///

    The logging configuration for your cluster.

    + pub fn logging(mut self, input: crate::model::Logging) -> Self { + self.logging = Some(input); + self + } + pub fn set_logging(mut self, input: std::option::Option) -> Self { + self.logging = input; + self + } + ///

    The identity provider information for the cluster.

    + pub fn identity(mut self, input: crate::model::Identity) -> Self { + self.identity = Some(input); + self + } + pub fn set_identity(mut self, input: std::option::Option) -> Self { + self.identity = input; + self + } + ///

    The current status of the cluster.

    + pub fn status(mut self, input: crate::model::ClusterStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status( + mut self, + input: std::option::Option, + ) -> Self { + self.status = input; + self + } + ///

    The certificate-authority-data for your cluster.

    + pub fn certificate_authority(mut self, input: crate::model::Certificate) -> Self { + self.certificate_authority = Some(input); + self + } + pub fn set_certificate_authority( + mut self, + input: std::option::Option, + ) -> Self { + self.certificate_authority = input; + self + } + ///

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + /// request.

    + pub fn client_request_token(mut self, input: impl Into) -> Self { + self.client_request_token = Some(input.into()); + self + } + pub fn set_client_request_token( + mut self, + input: std::option::Option, + ) -> Self { + self.client_request_token = input; + self + } + ///

    The platform version of your Amazon EKS cluster. For more information, see Platform + /// Versions in the + /// Amazon EKS User Guide + /// .

    + pub fn platform_version(mut self, input: impl Into) -> Self { + self.platform_version = Some(input.into()); + self + } + pub fn set_platform_version( + mut self, + input: std::option::Option, + ) -> Self { + self.platform_version = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + pub fn encryption_config( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.encryption_config.unwrap_or_default(); + v.push(input.into()); + self.encryption_config = Some(v); + self + } + pub fn set_encryption_config( + mut self, + input: std::option::Option>, + ) -> Self { + self.encryption_config = input; + self + } + /// Consumes the builder and constructs a [`Cluster`](crate::model::Cluster) + pub fn build(self) -> crate::model::Cluster { + crate::model::Cluster { + name: self.name, + arn: self.arn, + created_at: self.created_at, + version: self.version, + endpoint: self.endpoint, + role_arn: self.role_arn, + resources_vpc_config: self.resources_vpc_config, + kubernetes_network_config: self.kubernetes_network_config, + logging: self.logging, + identity: self.identity, + status: self.status, + certificate_authority: self.certificate_authority, + client_request_token: self.client_request_token, + platform_version: self.platform_version, + tags: self.tags, + encryption_config: self.encryption_config, + } + } + } +} +impl Cluster { + /// Creates a new builder-style object to manufacture [`Cluster`](crate::model::Cluster) + pub fn builder() -> crate::model::cluster::Builder { + crate::model::cluster::Builder::default() + } +} + +///

    The encryption configuration for the cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EncryptionConfig { + ///

    Specifies the resources to be encrypted. The only supported value is "secrets".

    + pub resources: std::option::Option>, + ///

    AWS Key Management Service (AWS KMS) key. Either the ARN or the alias can be used.

    + pub provider: std::option::Option, +} +impl std::fmt::Debug for EncryptionConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("EncryptionConfig"); + formatter.field("resources", &self.resources); + formatter.field("provider", &self.provider); + formatter.finish() + } +} +/// See [`EncryptionConfig`](crate::model::EncryptionConfig) +pub mod encryption_config { + /// A builder for [`EncryptionConfig`](crate::model::EncryptionConfig) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) resources: std::option::Option>, + pub(crate) provider: std::option::Option, + } + impl Builder { + pub fn resources(mut self, input: impl Into) -> Self { + let mut v = self.resources.unwrap_or_default(); + v.push(input.into()); + self.resources = Some(v); + self + } + pub fn set_resources( + mut self, + input: std::option::Option>, + ) -> Self { + self.resources = input; + self + } + ///

    AWS Key Management Service (AWS KMS) key. Either the ARN or the alias can be used.

    + pub fn provider(mut self, input: crate::model::Provider) -> Self { + self.provider = Some(input); + self + } + pub fn set_provider(mut self, input: std::option::Option) -> Self { + self.provider = input; + self + } + /// Consumes the builder and constructs a [`EncryptionConfig`](crate::model::EncryptionConfig) + pub fn build(self) -> crate::model::EncryptionConfig { + crate::model::EncryptionConfig { + resources: self.resources, + provider: self.provider, + } + } + } +} +impl EncryptionConfig { + /// Creates a new builder-style object to manufacture [`EncryptionConfig`](crate::model::EncryptionConfig) + pub fn builder() -> crate::model::encryption_config::Builder { + crate::model::encryption_config::Builder::default() + } +} + +///

    Identifies the AWS Key Management Service (AWS KMS) key used to encrypt the secrets.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Provider { + ///

    Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric, created in the same + /// region as the cluster, and if the KMS key was created in a different account, the user + /// must have access to the KMS key. For more information, see Allowing + /// Users in Other Accounts to Use a KMS key in the AWS Key Management Service + /// Developer Guide.

    + pub key_arn: std::option::Option, +} +impl std::fmt::Debug for Provider { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Provider"); + formatter.field("key_arn", &self.key_arn); + formatter.finish() + } +} +/// See [`Provider`](crate::model::Provider) +pub mod provider { + /// A builder for [`Provider`](crate::model::Provider) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) key_arn: std::option::Option, + } + impl Builder { + ///

    Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric, created in the same + /// region as the cluster, and if the KMS key was created in a different account, the user + /// must have access to the KMS key. For more information, see Allowing + /// Users in Other Accounts to Use a KMS key in the AWS Key Management Service + /// Developer Guide.

    + pub fn key_arn(mut self, input: impl Into) -> Self { + self.key_arn = Some(input.into()); + self + } + pub fn set_key_arn(mut self, input: std::option::Option) -> Self { + self.key_arn = input; + self + } + /// Consumes the builder and constructs a [`Provider`](crate::model::Provider) + pub fn build(self) -> crate::model::Provider { + crate::model::Provider { + key_arn: self.key_arn, + } + } + } +} +impl Provider { + /// Creates a new builder-style object to manufacture [`Provider`](crate::model::Provider) + pub fn builder() -> crate::model::provider::Builder { + crate::model::provider::Builder::default() + } +} + +///

    An object representing the certificate-authority-data for your +/// cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Certificate { + ///

    The Base64-encoded certificate data required to communicate with your cluster. Add + /// this to the certificate-authority-data section of the + /// kubeconfig file for your cluster.

    + pub data: std::option::Option, +} +impl std::fmt::Debug for Certificate { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Certificate"); + formatter.field("data", &self.data); + formatter.finish() + } +} +/// See [`Certificate`](crate::model::Certificate) +pub mod certificate { + /// A builder for [`Certificate`](crate::model::Certificate) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) data: std::option::Option, + } + impl Builder { + ///

    The Base64-encoded certificate data required to communicate with your cluster. Add + /// this to the certificate-authority-data section of the + /// kubeconfig file for your cluster.

    + pub fn data(mut self, input: impl Into) -> Self { + self.data = Some(input.into()); + self + } + pub fn set_data(mut self, input: std::option::Option) -> Self { + self.data = input; + self + } + /// Consumes the builder and constructs a [`Certificate`](crate::model::Certificate) + pub fn build(self) -> crate::model::Certificate { + crate::model::Certificate { data: self.data } + } + } +} +impl Certificate { + /// Creates a new builder-style object to manufacture [`Certificate`](crate::model::Certificate) + pub fn builder() -> crate::model::certificate::Builder { + crate::model::certificate::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum ClusterStatus { + Active, + Creating, + Deleting, + Failed, + Updating, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for ClusterStatus { + fn from(s: &str) -> Self { + match s { + "ACTIVE" => ClusterStatus::Active, + "CREATING" => ClusterStatus::Creating, + "DELETING" => ClusterStatus::Deleting, + "FAILED" => ClusterStatus::Failed, + "UPDATING" => ClusterStatus::Updating, + other => ClusterStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for ClusterStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(ClusterStatus::from(s)) + } +} +impl ClusterStatus { + pub fn as_str(&self) -> &str { + match self { + ClusterStatus::Active => "ACTIVE", + ClusterStatus::Creating => "CREATING", + ClusterStatus::Deleting => "DELETING", + ClusterStatus::Failed => "FAILED", + ClusterStatus::Updating => "UPDATING", + ClusterStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for ClusterStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    An object representing an identity provider.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Identity { + ///

    An object representing the OpenID + /// Connect identity provider information.

    + pub oidc: std::option::Option, +} +impl std::fmt::Debug for Identity { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Identity"); + formatter.field("oidc", &self.oidc); + formatter.finish() + } +} +/// See [`Identity`](crate::model::Identity) +pub mod identity { + /// A builder for [`Identity`](crate::model::Identity) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) oidc: std::option::Option, + } + impl Builder { + ///

    An object representing the OpenID + /// Connect identity provider information.

    + pub fn oidc(mut self, input: crate::model::Oidc) -> Self { + self.oidc = Some(input); + self + } + pub fn set_oidc(mut self, input: std::option::Option) -> Self { + self.oidc = input; + self + } + /// Consumes the builder and constructs a [`Identity`](crate::model::Identity) + pub fn build(self) -> crate::model::Identity { + crate::model::Identity { oidc: self.oidc } + } + } +} +impl Identity { + /// Creates a new builder-style object to manufacture [`Identity`](crate::model::Identity) + pub fn builder() -> crate::model::identity::Builder { + crate::model::identity::Builder::default() + } +} + +///

    An object representing the OpenID +/// Connect (OIDC) identity provider information for the cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Oidc { + ///

    The issuer URL for the OIDC identity provider.

    + pub issuer: std::option::Option, +} +impl std::fmt::Debug for Oidc { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Oidc"); + formatter.field("issuer", &self.issuer); + formatter.finish() + } +} +/// See [`Oidc`](crate::model::Oidc) +pub mod oidc { + /// A builder for [`Oidc`](crate::model::Oidc) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) issuer: std::option::Option, + } + impl Builder { + ///

    The issuer URL for the OIDC identity provider.

    + pub fn issuer(mut self, input: impl Into) -> Self { + self.issuer = Some(input.into()); + self + } + pub fn set_issuer(mut self, input: std::option::Option) -> Self { + self.issuer = input; + self + } + /// Consumes the builder and constructs a [`Oidc`](crate::model::Oidc) + pub fn build(self) -> crate::model::Oidc { + crate::model::Oidc { + issuer: self.issuer, + } + } + } +} +impl Oidc { + /// Creates a new builder-style object to manufacture [`Oidc`](crate::model::Oidc) + pub fn builder() -> crate::model::oidc::Builder { + crate::model::oidc::Builder::default() + } +} + +///

    The Kubernetes network configuration for the cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KubernetesNetworkConfigResponse { + ///

    The CIDR block that Kubernetes service IP addresses are assigned from. If you didn't + /// specify a CIDR block when you created the cluster, then Kubernetes assigns addresses + /// from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. If this was specified, then + /// it was specified when the cluster was created and it cannot be changed.

    + pub service_ipv4_cidr: std::option::Option, +} +impl std::fmt::Debug for KubernetesNetworkConfigResponse { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("KubernetesNetworkConfigResponse"); + formatter.field("service_ipv4_cidr", &self.service_ipv4_cidr); + formatter.finish() + } +} +/// See [`KubernetesNetworkConfigResponse`](crate::model::KubernetesNetworkConfigResponse) +pub mod kubernetes_network_config_response { + /// A builder for [`KubernetesNetworkConfigResponse`](crate::model::KubernetesNetworkConfigResponse) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) service_ipv4_cidr: std::option::Option, + } + impl Builder { + ///

    The CIDR block that Kubernetes service IP addresses are assigned from. If you didn't + /// specify a CIDR block when you created the cluster, then Kubernetes assigns addresses + /// from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. If this was specified, then + /// it was specified when the cluster was created and it cannot be changed.

    + pub fn service_ipv4_cidr(mut self, input: impl Into) -> Self { + self.service_ipv4_cidr = Some(input.into()); + self + } + pub fn set_service_ipv4_cidr( + mut self, + input: std::option::Option, + ) -> Self { + self.service_ipv4_cidr = input; + self + } + /// Consumes the builder and constructs a [`KubernetesNetworkConfigResponse`](crate::model::KubernetesNetworkConfigResponse) + pub fn build(self) -> crate::model::KubernetesNetworkConfigResponse { + crate::model::KubernetesNetworkConfigResponse { + service_ipv4_cidr: self.service_ipv4_cidr, + } + } + } +} +impl KubernetesNetworkConfigResponse { + /// Creates a new builder-style object to manufacture [`KubernetesNetworkConfigResponse`](crate::model::KubernetesNetworkConfigResponse) + pub fn builder() -> crate::model::kubernetes_network_config_response::Builder { + crate::model::kubernetes_network_config_response::Builder::default() + } +} + +///

    An object representing an Amazon EKS cluster VPC configuration response.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct VpcConfigResponse { + ///

    The subnets associated with your cluster.

    + pub subnet_ids: std::option::Option>, + ///

    The security groups associated with the cross-account elastic network interfaces that + /// are used to allow communication between your nodes and the Kubernetes control + /// plane.

    + pub security_group_ids: std::option::Option>, + ///

    The cluster security group that was created by Amazon EKS for the cluster. Managed node + /// groups use this security group for control-plane-to-data-plane communication.

    + pub cluster_security_group_id: std::option::Option, + ///

    The VPC associated with your cluster.

    + pub vpc_id: std::option::Option, + ///

    This parameter indicates whether the Amazon EKS public API server endpoint is enabled. If + /// the Amazon EKS public API server endpoint is disabled, your cluster's Kubernetes API server + /// can only receive requests that originate from within the cluster VPC.

    + pub endpoint_public_access: bool, + ///

    This parameter indicates whether the Amazon EKS private API server endpoint is enabled. If + /// the Amazon EKS private API server endpoint is enabled, Kubernetes API requests that originate + /// from within your cluster's VPC use the private VPC endpoint instead of traversing the + /// internet. If this value is disabled and you have nodes or AWS Fargate pods in the cluster, + /// then ensure that publicAccessCidrs includes the necessary CIDR blocks for + /// communication with the nodes or Fargate pods. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub endpoint_private_access: bool, + ///

    The CIDR blocks that are allowed access to your cluster's public Kubernetes API server + /// endpoint. Communication to the endpoint from addresses outside of the listed CIDR blocks + /// is denied. The default value is 0.0.0.0/0. If you've disabled private + /// endpoint access and you have nodes or AWS Fargate pods in the cluster, then ensure that the + /// necessary CIDR blocks are listed. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub public_access_cidrs: std::option::Option>, +} +impl std::fmt::Debug for VpcConfigResponse { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("VpcConfigResponse"); + formatter.field("subnet_ids", &self.subnet_ids); + formatter.field("security_group_ids", &self.security_group_ids); + formatter.field("cluster_security_group_id", &self.cluster_security_group_id); + formatter.field("vpc_id", &self.vpc_id); + formatter.field("endpoint_public_access", &self.endpoint_public_access); + formatter.field("endpoint_private_access", &self.endpoint_private_access); + formatter.field("public_access_cidrs", &self.public_access_cidrs); + formatter.finish() + } +} +/// See [`VpcConfigResponse`](crate::model::VpcConfigResponse) +pub mod vpc_config_response { + /// A builder for [`VpcConfigResponse`](crate::model::VpcConfigResponse) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) subnet_ids: std::option::Option>, + pub(crate) security_group_ids: std::option::Option>, + pub(crate) cluster_security_group_id: std::option::Option, + pub(crate) vpc_id: std::option::Option, + pub(crate) endpoint_public_access: std::option::Option, + pub(crate) endpoint_private_access: std::option::Option, + pub(crate) public_access_cidrs: std::option::Option>, + } + impl Builder { + pub fn subnet_ids(mut self, input: impl Into) -> Self { + let mut v = self.subnet_ids.unwrap_or_default(); + v.push(input.into()); + self.subnet_ids = Some(v); + self + } + pub fn set_subnet_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.subnet_ids = input; + self + } + pub fn security_group_ids(mut self, input: impl Into) -> Self { + let mut v = self.security_group_ids.unwrap_or_default(); + v.push(input.into()); + self.security_group_ids = Some(v); + self + } + pub fn set_security_group_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.security_group_ids = input; + self + } + ///

    The cluster security group that was created by Amazon EKS for the cluster. Managed node + /// groups use this security group for control-plane-to-data-plane communication.

    + pub fn cluster_security_group_id(mut self, input: impl Into) -> Self { + self.cluster_security_group_id = Some(input.into()); + self + } + pub fn set_cluster_security_group_id( + mut self, + input: std::option::Option, + ) -> Self { + self.cluster_security_group_id = input; + self + } + ///

    The VPC associated with your cluster.

    + pub fn vpc_id(mut self, input: impl Into) -> Self { + self.vpc_id = Some(input.into()); + self + } + pub fn set_vpc_id(mut self, input: std::option::Option) -> Self { + self.vpc_id = input; + self + } + ///

    This parameter indicates whether the Amazon EKS public API server endpoint is enabled. If + /// the Amazon EKS public API server endpoint is disabled, your cluster's Kubernetes API server + /// can only receive requests that originate from within the cluster VPC.

    + pub fn endpoint_public_access(mut self, input: bool) -> Self { + self.endpoint_public_access = Some(input); + self + } + pub fn set_endpoint_public_access(mut self, input: std::option::Option) -> Self { + self.endpoint_public_access = input; + self + } + ///

    This parameter indicates whether the Amazon EKS private API server endpoint is enabled. If + /// the Amazon EKS private API server endpoint is enabled, Kubernetes API requests that originate + /// from within your cluster's VPC use the private VPC endpoint instead of traversing the + /// internet. If this value is disabled and you have nodes or AWS Fargate pods in the cluster, + /// then ensure that publicAccessCidrs includes the necessary CIDR blocks for + /// communication with the nodes or Fargate pods. For more information, see Amazon EKS Cluster + /// Endpoint Access Control in the + /// Amazon EKS User Guide + /// .

    + pub fn endpoint_private_access(mut self, input: bool) -> Self { + self.endpoint_private_access = Some(input); + self + } + pub fn set_endpoint_private_access(mut self, input: std::option::Option) -> Self { + self.endpoint_private_access = input; + self + } + pub fn public_access_cidrs(mut self, input: impl Into) -> Self { + let mut v = self.public_access_cidrs.unwrap_or_default(); + v.push(input.into()); + self.public_access_cidrs = Some(v); + self + } + pub fn set_public_access_cidrs( + mut self, + input: std::option::Option>, + ) -> Self { + self.public_access_cidrs = input; + self + } + /// Consumes the builder and constructs a [`VpcConfigResponse`](crate::model::VpcConfigResponse) + pub fn build(self) -> crate::model::VpcConfigResponse { + crate::model::VpcConfigResponse { + subnet_ids: self.subnet_ids, + security_group_ids: self.security_group_ids, + cluster_security_group_id: self.cluster_security_group_id, + vpc_id: self.vpc_id, + endpoint_public_access: self.endpoint_public_access.unwrap_or_default(), + endpoint_private_access: self.endpoint_private_access.unwrap_or_default(), + public_access_cidrs: self.public_access_cidrs, + } + } + } +} +impl VpcConfigResponse { + /// Creates a new builder-style object to manufacture [`VpcConfigResponse`](crate::model::VpcConfigResponse) + pub fn builder() -> crate::model::vpc_config_response::Builder { + crate::model::vpc_config_response::Builder::default() + } +} + +///

    Information about an add-on.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AddonInfo { + ///

    The name of the add-on.

    + pub addon_name: std::option::Option, + ///

    The type of the add-on.

    + pub r#type: std::option::Option, + ///

    An object that represents information about available add-on versions and compatible + /// Kubernetes versions.

    + pub addon_versions: std::option::Option>, +} +impl std::fmt::Debug for AddonInfo { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AddonInfo"); + formatter.field("addon_name", &self.addon_name); + formatter.field("r#type", &self.r#type); + formatter.field("addon_versions", &self.addon_versions); + formatter.finish() + } +} +/// See [`AddonInfo`](crate::model::AddonInfo) +pub mod addon_info { + /// A builder for [`AddonInfo`](crate::model::AddonInfo) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon_name: std::option::Option, + pub(crate) r#type: std::option::Option, + pub(crate) addon_versions: + std::option::Option>, + } + impl Builder { + ///

    The name of the add-on.

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + ///

    The type of the add-on.

    + pub fn r#type(mut self, input: impl Into) -> Self { + self.r#type = Some(input.into()); + self + } + pub fn set_type(mut self, input: std::option::Option) -> Self { + self.r#type = input; + self + } + pub fn addon_versions(mut self, input: impl Into) -> Self { + let mut v = self.addon_versions.unwrap_or_default(); + v.push(input.into()); + self.addon_versions = Some(v); + self + } + pub fn set_addon_versions( + mut self, + input: std::option::Option>, + ) -> Self { + self.addon_versions = input; + self + } + /// Consumes the builder and constructs a [`AddonInfo`](crate::model::AddonInfo) + pub fn build(self) -> crate::model::AddonInfo { + crate::model::AddonInfo { + addon_name: self.addon_name, + r#type: self.r#type, + addon_versions: self.addon_versions, + } + } + } +} +impl AddonInfo { + /// Creates a new builder-style object to manufacture [`AddonInfo`](crate::model::AddonInfo) + pub fn builder() -> crate::model::addon_info::Builder { + crate::model::addon_info::Builder::default() + } +} + +///

    Information about an add-on version.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AddonVersionInfo { + ///

    The version of the add-on.

    + pub addon_version: std::option::Option, + ///

    The architectures that the version supports.

    + pub architecture: std::option::Option>, + ///

    An object that represents the compatibilities of a version.

    + pub compatibilities: std::option::Option>, +} +impl std::fmt::Debug for AddonVersionInfo { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AddonVersionInfo"); + formatter.field("addon_version", &self.addon_version); + formatter.field("architecture", &self.architecture); + formatter.field("compatibilities", &self.compatibilities); + formatter.finish() + } +} +/// See [`AddonVersionInfo`](crate::model::AddonVersionInfo) +pub mod addon_version_info { + /// A builder for [`AddonVersionInfo`](crate::model::AddonVersionInfo) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon_version: std::option::Option, + pub(crate) architecture: std::option::Option>, + pub(crate) compatibilities: std::option::Option>, + } + impl Builder { + ///

    The version of the add-on.

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.addon_version = Some(input.into()); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.addon_version = input; + self + } + pub fn architecture(mut self, input: impl Into) -> Self { + let mut v = self.architecture.unwrap_or_default(); + v.push(input.into()); + self.architecture = Some(v); + self + } + pub fn set_architecture( + mut self, + input: std::option::Option>, + ) -> Self { + self.architecture = input; + self + } + pub fn compatibilities(mut self, input: impl Into) -> Self { + let mut v = self.compatibilities.unwrap_or_default(); + v.push(input.into()); + self.compatibilities = Some(v); + self + } + pub fn set_compatibilities( + mut self, + input: std::option::Option>, + ) -> Self { + self.compatibilities = input; + self + } + /// Consumes the builder and constructs a [`AddonVersionInfo`](crate::model::AddonVersionInfo) + pub fn build(self) -> crate::model::AddonVersionInfo { + crate::model::AddonVersionInfo { + addon_version: self.addon_version, + architecture: self.architecture, + compatibilities: self.compatibilities, + } + } + } +} +impl AddonVersionInfo { + /// Creates a new builder-style object to manufacture [`AddonVersionInfo`](crate::model::AddonVersionInfo) + pub fn builder() -> crate::model::addon_version_info::Builder { + crate::model::addon_version_info::Builder::default() + } +} + +///

    Compatibility information.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Compatibility { + ///

    The supported Kubernetes version of the cluster.

    + pub cluster_version: std::option::Option, + ///

    The supported compute platform.

    + pub platform_versions: std::option::Option>, + ///

    The supported default version.

    + pub default_version: bool, +} +impl std::fmt::Debug for Compatibility { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Compatibility"); + formatter.field("cluster_version", &self.cluster_version); + formatter.field("platform_versions", &self.platform_versions); + formatter.field("default_version", &self.default_version); + formatter.finish() + } +} +/// See [`Compatibility`](crate::model::Compatibility) +pub mod compatibility { + /// A builder for [`Compatibility`](crate::model::Compatibility) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster_version: std::option::Option, + pub(crate) platform_versions: std::option::Option>, + pub(crate) default_version: std::option::Option, + } + impl Builder { + ///

    The supported Kubernetes version of the cluster.

    + pub fn cluster_version(mut self, input: impl Into) -> Self { + self.cluster_version = Some(input.into()); + self + } + pub fn set_cluster_version( + mut self, + input: std::option::Option, + ) -> Self { + self.cluster_version = input; + self + } + pub fn platform_versions(mut self, input: impl Into) -> Self { + let mut v = self.platform_versions.unwrap_or_default(); + v.push(input.into()); + self.platform_versions = Some(v); + self + } + pub fn set_platform_versions( + mut self, + input: std::option::Option>, + ) -> Self { + self.platform_versions = input; + self + } + ///

    The supported default version.

    + pub fn default_version(mut self, input: bool) -> Self { + self.default_version = Some(input); + self + } + pub fn set_default_version(mut self, input: std::option::Option) -> Self { + self.default_version = input; + self + } + /// Consumes the builder and constructs a [`Compatibility`](crate::model::Compatibility) + pub fn build(self) -> crate::model::Compatibility { + crate::model::Compatibility { + cluster_version: self.cluster_version, + platform_versions: self.platform_versions, + default_version: self.default_version.unwrap_or_default(), + } + } + } +} +impl Compatibility { + /// Creates a new builder-style object to manufacture [`Compatibility`](crate::model::Compatibility) + pub fn builder() -> crate::model::compatibility::Builder { + crate::model::compatibility::Builder::default() + } +} + +///

    An Amazon EKS add-on.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Addon { + ///

    The name of the add-on.

    + pub addon_name: std::option::Option, + ///

    The name of the cluster.

    + pub cluster_name: std::option::Option, + ///

    The status of the add-on.

    + pub status: std::option::Option, + ///

    The version of the add-on.

    + pub addon_version: std::option::Option, + ///

    An object that represents the health of the add-on.

    + pub health: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the add-on.

    + pub addon_arn: std::option::Option, + ///

    The date and time that the add-on was created.

    + pub created_at: std::option::Option, + ///

    The date and time that the add-on was last modified.

    + pub modified_at: std::option::Option, + ///

    The Amazon Resource Name (ARN) of the IAM role that is bound to the Kubernetes service account used + /// by the add-on.

    + pub service_account_role_arn: std::option::Option, + ///

    The metadata that you apply to the add-on to assist with categorization and + /// organization. Each tag consists of a key and an optional value, both of which you + /// define. Add-on tags do not propagate to any other resources associated with the cluster. + ///

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for Addon { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("Addon"); + formatter.field("addon_name", &self.addon_name); + formatter.field("cluster_name", &self.cluster_name); + formatter.field("status", &self.status); + formatter.field("addon_version", &self.addon_version); + formatter.field("health", &self.health); + formatter.field("addon_arn", &self.addon_arn); + formatter.field("created_at", &self.created_at); + formatter.field("modified_at", &self.modified_at); + formatter.field("service_account_role_arn", &self.service_account_role_arn); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`Addon`](crate::model::Addon) +pub mod addon { + /// A builder for [`Addon`](crate::model::Addon) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon_name: std::option::Option, + pub(crate) cluster_name: std::option::Option, + pub(crate) status: std::option::Option, + pub(crate) addon_version: std::option::Option, + pub(crate) health: std::option::Option, + pub(crate) addon_arn: std::option::Option, + pub(crate) created_at: std::option::Option, + pub(crate) modified_at: std::option::Option, + pub(crate) service_account_role_arn: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name of the add-on.

    + pub fn addon_name(mut self, input: impl Into) -> Self { + self.addon_name = Some(input.into()); + self + } + pub fn set_addon_name(mut self, input: std::option::Option) -> Self { + self.addon_name = input; + self + } + ///

    The name of the cluster.

    + pub fn cluster_name(mut self, input: impl Into) -> Self { + self.cluster_name = Some(input.into()); + self + } + pub fn set_cluster_name(mut self, input: std::option::Option) -> Self { + self.cluster_name = input; + self + } + ///

    The status of the add-on.

    + pub fn status(mut self, input: crate::model::AddonStatus) -> Self { + self.status = Some(input); + self + } + pub fn set_status(mut self, input: std::option::Option) -> Self { + self.status = input; + self + } + ///

    The version of the add-on.

    + pub fn addon_version(mut self, input: impl Into) -> Self { + self.addon_version = Some(input.into()); + self + } + pub fn set_addon_version( + mut self, + input: std::option::Option, + ) -> Self { + self.addon_version = input; + self + } + ///

    An object that represents the health of the add-on.

    + pub fn health(mut self, input: crate::model::AddonHealth) -> Self { + self.health = Some(input); + self + } + pub fn set_health(mut self, input: std::option::Option) -> Self { + self.health = input; + self + } + ///

    The Amazon Resource Name (ARN) of the add-on.

    + pub fn addon_arn(mut self, input: impl Into) -> Self { + self.addon_arn = Some(input.into()); + self + } + pub fn set_addon_arn(mut self, input: std::option::Option) -> Self { + self.addon_arn = input; + self + } + ///

    The date and time that the add-on was created.

    + pub fn created_at(mut self, input: smithy_types::Instant) -> Self { + self.created_at = Some(input); + self + } + pub fn set_created_at(mut self, input: std::option::Option) -> Self { + self.created_at = input; + self + } + ///

    The date and time that the add-on was last modified.

    + pub fn modified_at(mut self, input: smithy_types::Instant) -> Self { + self.modified_at = Some(input); + self + } + pub fn set_modified_at( + mut self, + input: std::option::Option, + ) -> Self { + self.modified_at = input; + self + } + ///

    The Amazon Resource Name (ARN) of the IAM role that is bound to the Kubernetes service account used + /// by the add-on.

    + pub fn service_account_role_arn(mut self, input: impl Into) -> Self { + self.service_account_role_arn = Some(input.into()); + self + } + pub fn set_service_account_role_arn( + mut self, + input: std::option::Option, + ) -> Self { + self.service_account_role_arn = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`Addon`](crate::model::Addon) + pub fn build(self) -> crate::model::Addon { + crate::model::Addon { + addon_name: self.addon_name, + cluster_name: self.cluster_name, + status: self.status, + addon_version: self.addon_version, + health: self.health, + addon_arn: self.addon_arn, + created_at: self.created_at, + modified_at: self.modified_at, + service_account_role_arn: self.service_account_role_arn, + tags: self.tags, + } + } + } +} +impl Addon { + /// Creates a new builder-style object to manufacture [`Addon`](crate::model::Addon) + pub fn builder() -> crate::model::addon::Builder { + crate::model::addon::Builder::default() + } +} + +///

    The health of the add-on.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AddonHealth { + ///

    An object that represents the add-on's health issues.

    + pub issues: std::option::Option>, +} +impl std::fmt::Debug for AddonHealth { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AddonHealth"); + formatter.field("issues", &self.issues); + formatter.finish() + } +} +/// See [`AddonHealth`](crate::model::AddonHealth) +pub mod addon_health { + /// A builder for [`AddonHealth`](crate::model::AddonHealth) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) issues: std::option::Option>, + } + impl Builder { + pub fn issues(mut self, input: impl Into) -> Self { + let mut v = self.issues.unwrap_or_default(); + v.push(input.into()); + self.issues = Some(v); + self + } + pub fn set_issues( + mut self, + input: std::option::Option>, + ) -> Self { + self.issues = input; + self + } + /// Consumes the builder and constructs a [`AddonHealth`](crate::model::AddonHealth) + pub fn build(self) -> crate::model::AddonHealth { + crate::model::AddonHealth { + issues: self.issues, + } + } + } +} +impl AddonHealth { + /// Creates a new builder-style object to manufacture [`AddonHealth`](crate::model::AddonHealth) + pub fn builder() -> crate::model::addon_health::Builder { + crate::model::addon_health::Builder::default() + } +} + +///

    An issue related to an add-on.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AddonIssue { + ///

    A code that describes the type of issue.

    + pub code: std::option::Option, + ///

    A message that provides details about the issue and what might cause it.

    + pub message: std::option::Option, + ///

    The resource IDs of the issue.

    + pub resource_ids: std::option::Option>, +} +impl std::fmt::Debug for AddonIssue { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AddonIssue"); + formatter.field("code", &self.code); + formatter.field("message", &self.message); + formatter.field("resource_ids", &self.resource_ids); + formatter.finish() + } +} +/// See [`AddonIssue`](crate::model::AddonIssue) +pub mod addon_issue { + /// A builder for [`AddonIssue`](crate::model::AddonIssue) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) code: std::option::Option, + pub(crate) message: std::option::Option, + pub(crate) resource_ids: std::option::Option>, + } + impl Builder { + ///

    A code that describes the type of issue.

    + pub fn code(mut self, input: crate::model::AddonIssueCode) -> Self { + self.code = Some(input); + self + } + pub fn set_code( + mut self, + input: std::option::Option, + ) -> Self { + self.code = input; + self + } + ///

    A message that provides details about the issue and what might cause it.

    + pub fn message(mut self, input: impl Into) -> Self { + self.message = Some(input.into()); + self + } + pub fn set_message(mut self, input: std::option::Option) -> Self { + self.message = input; + self + } + pub fn resource_ids(mut self, input: impl Into) -> Self { + let mut v = self.resource_ids.unwrap_or_default(); + v.push(input.into()); + self.resource_ids = Some(v); + self + } + pub fn set_resource_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.resource_ids = input; + self + } + /// Consumes the builder and constructs a [`AddonIssue`](crate::model::AddonIssue) + pub fn build(self) -> crate::model::AddonIssue { + crate::model::AddonIssue { + code: self.code, + message: self.message, + resource_ids: self.resource_ids, + } + } + } +} +impl AddonIssue { + /// Creates a new builder-style object to manufacture [`AddonIssue`](crate::model::AddonIssue) + pub fn builder() -> crate::model::addon_issue::Builder { + crate::model::addon_issue::Builder::default() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum AddonIssueCode { + AccessDenied, + AdmissionRequestDenied, + ClusterUnreachable, + ConfigurationConflict, + InsufficientNumberOfReplicas, + InternalFailure, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for AddonIssueCode { + fn from(s: &str) -> Self { + match s { + "AccessDenied" => AddonIssueCode::AccessDenied, + "AdmissionRequestDenied" => AddonIssueCode::AdmissionRequestDenied, + "ClusterUnreachable" => AddonIssueCode::ClusterUnreachable, + "ConfigurationConflict" => AddonIssueCode::ConfigurationConflict, + "InsufficientNumberOfReplicas" => AddonIssueCode::InsufficientNumberOfReplicas, + "InternalFailure" => AddonIssueCode::InternalFailure, + other => AddonIssueCode::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for AddonIssueCode { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(AddonIssueCode::from(s)) + } +} +impl AddonIssueCode { + pub fn as_str(&self) -> &str { + match self { + AddonIssueCode::AccessDenied => "AccessDenied", + AddonIssueCode::AdmissionRequestDenied => "AdmissionRequestDenied", + AddonIssueCode::ClusterUnreachable => "ClusterUnreachable", + AddonIssueCode::ConfigurationConflict => "ConfigurationConflict", + AddonIssueCode::InsufficientNumberOfReplicas => "InsufficientNumberOfReplicas", + AddonIssueCode::InternalFailure => "InternalFailure", + AddonIssueCode::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for AddonIssueCode { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +#[non_exhaustive] +#[derive( + std::clone::Clone, + std::cmp::Eq, + std::cmp::Ord, + std::cmp::PartialEq, + std::cmp::PartialOrd, + std::fmt::Debug, + std::hash::Hash, +)] +pub enum AddonStatus { + Active, + CreateFailed, + Creating, + Degraded, + DeleteFailed, + Deleting, + Updating, + /// Unknown contains new variants that have been added since this code was generated. + Unknown(String), +} +impl std::convert::From<&str> for AddonStatus { + fn from(s: &str) -> Self { + match s { + "ACTIVE" => AddonStatus::Active, + "CREATE_FAILED" => AddonStatus::CreateFailed, + "CREATING" => AddonStatus::Creating, + "DEGRADED" => AddonStatus::Degraded, + "DELETE_FAILED" => AddonStatus::DeleteFailed, + "DELETING" => AddonStatus::Deleting, + "UPDATING" => AddonStatus::Updating, + other => AddonStatus::Unknown(other.to_owned()), + } + } +} +impl std::str::FromStr for AddonStatus { + type Err = std::convert::Infallible; + + fn from_str(s: &str) -> std::result::Result { + Ok(AddonStatus::from(s)) + } +} +impl AddonStatus { + pub fn as_str(&self) -> &str { + match self { + AddonStatus::Active => "ACTIVE", + AddonStatus::CreateFailed => "CREATE_FAILED", + AddonStatus::Creating => "CREATING", + AddonStatus::Degraded => "DEGRADED", + AddonStatus::DeleteFailed => "DELETE_FAILED", + AddonStatus::Deleting => "DELETING", + AddonStatus::Updating => "UPDATING", + AddonStatus::Unknown(s) => s.as_ref(), + } + } +} +impl AsRef for AddonStatus { + fn as_ref(&self) -> &str { + self.as_str() + } +} + +///

    The Kubernetes network configuration for the cluster.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KubernetesNetworkConfigRequest { + ///

    The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a + /// block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR + /// blocks. We recommend that you specify a block that does not overlap with resources in + /// other networks that are peered or connected to your VPC. The block must meet the + /// following requirements:

    + ///
      + ///
    • + ///

      Within one of the following private IP address blocks: 10.0.0.0/8, + /// 172.16.0.0.0/12, or 192.168.0.0/16.

      + ///
    • + ///
    • + ///

      Doesn't overlap with any CIDR block assigned to the VPC that you selected for + /// VPC.

      + ///
    • + ///
    • + ///

      Between /24 and /12.

      + ///
    • + ///
    + /// + ///

    You can only specify a custom CIDR block when you create a cluster and can't + /// change this value once the cluster is created.

    + ///
    + pub service_ipv4_cidr: std::option::Option, +} +impl std::fmt::Debug for KubernetesNetworkConfigRequest { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("KubernetesNetworkConfigRequest"); + formatter.field("service_ipv4_cidr", &self.service_ipv4_cidr); + formatter.finish() + } +} +/// See [`KubernetesNetworkConfigRequest`](crate::model::KubernetesNetworkConfigRequest) +pub mod kubernetes_network_config_request { + /// A builder for [`KubernetesNetworkConfigRequest`](crate::model::KubernetesNetworkConfigRequest) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) service_ipv4_cidr: std::option::Option, + } + impl Builder { + ///

    The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a + /// block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR + /// blocks. We recommend that you specify a block that does not overlap with resources in + /// other networks that are peered or connected to your VPC. The block must meet the + /// following requirements:

    + ///
      + ///
    • + ///

      Within one of the following private IP address blocks: 10.0.0.0/8, + /// 172.16.0.0.0/12, or 192.168.0.0/16.

      + ///
    • + ///
    • + ///

      Doesn't overlap with any CIDR block assigned to the VPC that you selected for + /// VPC.

      + ///
    • + ///
    • + ///

      Between /24 and /12.

      + ///
    • + ///
    + /// + ///

    You can only specify a custom CIDR block when you create a cluster and can't + /// change this value once the cluster is created.

    + ///
    + pub fn service_ipv4_cidr(mut self, input: impl Into) -> Self { + self.service_ipv4_cidr = Some(input.into()); + self + } + pub fn set_service_ipv4_cidr( + mut self, + input: std::option::Option, + ) -> Self { + self.service_ipv4_cidr = input; + self + } + /// Consumes the builder and constructs a [`KubernetesNetworkConfigRequest`](crate::model::KubernetesNetworkConfigRequest) + pub fn build(self) -> crate::model::KubernetesNetworkConfigRequest { + crate::model::KubernetesNetworkConfigRequest { + service_ipv4_cidr: self.service_ipv4_cidr, + } + } + } +} +impl KubernetesNetworkConfigRequest { + /// Creates a new builder-style object to manufacture [`KubernetesNetworkConfigRequest`](crate::model::KubernetesNetworkConfigRequest) + pub fn builder() -> crate::model::kubernetes_network_config_request::Builder { + crate::model::kubernetes_network_config_request::Builder::default() + } +} + +///

    An object representing an OpenID Connect (OIDC) configuration. Before associating an +/// OIDC identity provider to your cluster, review the considerations in Authenticating +/// users for your cluster from an OpenID Connect identity provider in the +/// Amazon EKS User Guide.

    +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OidcIdentityProviderConfigRequest { + ///

    The name of the OIDC provider configuration.

    + pub identity_provider_config_name: std::option::Option, + ///

    The URL of the OpenID identity provider that allows the API server to discover public + /// signing keys for verifying tokens. The URL must begin with https:// and + /// should correspond to the iss claim in the provider's OIDC ID tokens. Per + /// the OIDC standard, path components are allowed but query parameters are not. Typically + /// the URL consists of only a hostname, like https://server.example.org or + /// https://example.com. This URL should point to the level below + /// .well-known/openid-configuration and must be publicly accessible over + /// the internet.

    + pub issuer_url: std::option::Option, + ///

    This is also known as audience. The ID for the client application + /// that makes authentication requests to the OpenID identity provider.

    + pub client_id: std::option::Option, + ///

    The JSON Web Token (JWT) claim to use as the username. The default is + /// sub, which is expected to be a unique identifier of the end user. You can + /// choose other claims, such as email or name, depending on the + /// OpenID identity provider. Claims other than email are prefixed with the + /// issuer URL to prevent naming clashes with other plug-ins.

    + pub username_claim: std::option::Option, + ///

    The prefix that is prepended to username claims to prevent clashes with existing + /// names. If you do not provide this field, and username is a value other than + /// email, the prefix defaults to issuerurl#. You can use the + /// value - to disable all prefixing.

    + pub username_prefix: std::option::Option, + ///

    The JWT claim that the provider uses to return your groups.

    + pub groups_claim: std::option::Option, + ///

    The prefix that is prepended to group claims to prevent clashes with existing names + /// (such as system: groups). For example, the value oidc: will + /// create group names like oidc:engineering and + /// oidc:infra.

    + pub groups_prefix: std::option::Option, + ///

    The key value pairs that describe required claims in the identity token. If set, each + /// claim is verified to be present in the token with a matching value. For the maximum + /// number of claims that you can require, see Amazon EKS service quotas in the + /// Amazon EKS User Guide.

    + pub required_claims: + std::option::Option>, +} +impl std::fmt::Debug for OidcIdentityProviderConfigRequest { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("OidcIdentityProviderConfigRequest"); + formatter.field( + "identity_provider_config_name", + &self.identity_provider_config_name, + ); + formatter.field("issuer_url", &self.issuer_url); + formatter.field("client_id", &self.client_id); + formatter.field("username_claim", &self.username_claim); + formatter.field("username_prefix", &self.username_prefix); + formatter.field("groups_claim", &self.groups_claim); + formatter.field("groups_prefix", &self.groups_prefix); + formatter.field("required_claims", &self.required_claims); + formatter.finish() + } +} +/// See [`OidcIdentityProviderConfigRequest`](crate::model::OidcIdentityProviderConfigRequest) +pub mod oidc_identity_provider_config_request { + /// A builder for [`OidcIdentityProviderConfigRequest`](crate::model::OidcIdentityProviderConfigRequest) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) identity_provider_config_name: std::option::Option, + pub(crate) issuer_url: std::option::Option, + pub(crate) client_id: std::option::Option, + pub(crate) username_claim: std::option::Option, + pub(crate) username_prefix: std::option::Option, + pub(crate) groups_claim: std::option::Option, + pub(crate) groups_prefix: std::option::Option, + pub(crate) required_claims: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    The name of the OIDC provider configuration.

    + pub fn identity_provider_config_name( + mut self, + input: impl Into, + ) -> Self { + self.identity_provider_config_name = Some(input.into()); + self + } + pub fn set_identity_provider_config_name( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config_name = input; + self + } + ///

    The URL of the OpenID identity provider that allows the API server to discover public + /// signing keys for verifying tokens. The URL must begin with https:// and + /// should correspond to the iss claim in the provider's OIDC ID tokens. Per + /// the OIDC standard, path components are allowed but query parameters are not. Typically + /// the URL consists of only a hostname, like https://server.example.org or + /// https://example.com. This URL should point to the level below + /// .well-known/openid-configuration and must be publicly accessible over + /// the internet.

    + pub fn issuer_url(mut self, input: impl Into) -> Self { + self.issuer_url = Some(input.into()); + self + } + pub fn set_issuer_url(mut self, input: std::option::Option) -> Self { + self.issuer_url = input; + self + } + ///

    This is also known as audience. The ID for the client application + /// that makes authentication requests to the OpenID identity provider.

    + pub fn client_id(mut self, input: impl Into) -> Self { + self.client_id = Some(input.into()); + self + } + pub fn set_client_id(mut self, input: std::option::Option) -> Self { + self.client_id = input; + self + } + ///

    The JSON Web Token (JWT) claim to use as the username. The default is + /// sub, which is expected to be a unique identifier of the end user. You can + /// choose other claims, such as email or name, depending on the + /// OpenID identity provider. Claims other than email are prefixed with the + /// issuer URL to prevent naming clashes with other plug-ins.

    + pub fn username_claim(mut self, input: impl Into) -> Self { + self.username_claim = Some(input.into()); + self + } + pub fn set_username_claim( + mut self, + input: std::option::Option, + ) -> Self { + self.username_claim = input; + self + } + ///

    The prefix that is prepended to username claims to prevent clashes with existing + /// names. If you do not provide this field, and username is a value other than + /// email, the prefix defaults to issuerurl#. You can use the + /// value - to disable all prefixing.

    + pub fn username_prefix(mut self, input: impl Into) -> Self { + self.username_prefix = Some(input.into()); + self + } + pub fn set_username_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.username_prefix = input; + self + } + ///

    The JWT claim that the provider uses to return your groups.

    + pub fn groups_claim(mut self, input: impl Into) -> Self { + self.groups_claim = Some(input.into()); + self + } + pub fn set_groups_claim(mut self, input: std::option::Option) -> Self { + self.groups_claim = input; + self + } + ///

    The prefix that is prepended to group claims to prevent clashes with existing names + /// (such as system: groups). For example, the value oidc: will + /// create group names like oidc:engineering and + /// oidc:infra.

    + pub fn groups_prefix(mut self, input: impl Into) -> Self { + self.groups_prefix = Some(input.into()); + self + } + pub fn set_groups_prefix( + mut self, + input: std::option::Option, + ) -> Self { + self.groups_prefix = input; + self + } + pub fn required_claims( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.required_claims.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.required_claims = Some(hash_map); + self + } + pub fn set_required_claims( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.required_claims = input; + self + } + /// Consumes the builder and constructs a [`OidcIdentityProviderConfigRequest`](crate::model::OidcIdentityProviderConfigRequest) + pub fn build(self) -> crate::model::OidcIdentityProviderConfigRequest { + crate::model::OidcIdentityProviderConfigRequest { + identity_provider_config_name: self.identity_provider_config_name, + issuer_url: self.issuer_url, + client_id: self.client_id, + username_claim: self.username_claim, + username_prefix: self.username_prefix, + groups_claim: self.groups_claim, + groups_prefix: self.groups_prefix, + required_claims: self.required_claims, + } + } + } +} +impl OidcIdentityProviderConfigRequest { + /// Creates a new builder-style object to manufacture [`OidcIdentityProviderConfigRequest`](crate::model::OidcIdentityProviderConfigRequest) + pub fn builder() -> crate::model::oidc_identity_provider_config_request::Builder { + crate::model::oidc_identity_provider_config_request::Builder::default() + } +} diff --git a/sdk/eks/src/operation.rs b/sdk/eks/src/operation.rs new file mode 100644 index 000000000000..b830ace48449 --- /dev/null +++ b/sdk/eks/src/operation.rs @@ -0,0 +1,1031 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +///

    Associate encryption configuration to an existing cluster.

    +///

    You can use this API to enable encryption on existing clusters which do not have +/// encryption already enabled. This allows you to implement a defense-in-depth security +/// strategy without migrating applications to new EKS clusters.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct AssociateEncryptionConfig { + _private: (), +} +impl AssociateEncryptionConfig { + /// Creates a new builder-style object to manufacture [`AssociateEncryptionConfigInput`](crate::input::AssociateEncryptionConfigInput) + pub fn builder() -> crate::input::associate_encryption_config_input::Builder { + crate::input::associate_encryption_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for AssociateEncryptionConfig { + type Output = std::result::Result< + crate::output::AssociateEncryptionConfigOutput, + crate::error::AssociateEncryptionConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_associate_encryption_config_error(response) + } else { + crate::operation_deser::parse_associate_encryption_config_response(response) + } + } +} + +///

    Associate an identity provider configuration to a cluster.

    +///

    If you want to authenticate identities using an identity provider, you can create an +/// identity provider configuration and associate it to your cluster. After configuring +/// authentication to your cluster you can create Kubernetes roles and +/// clusterroles to assign permissions to the roles, and then bind the +/// roles to the identities using Kubernetes rolebindings and +/// clusterrolebindings. For more information see Using RBAC +/// Authorization in the Kubernetes documentation.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct AssociateIdentityProviderConfig { + _private: (), +} +impl AssociateIdentityProviderConfig { + /// Creates a new builder-style object to manufacture [`AssociateIdentityProviderConfigInput`](crate::input::AssociateIdentityProviderConfigInput) + pub fn builder() -> crate::input::associate_identity_provider_config_input::Builder { + crate::input::associate_identity_provider_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for AssociateIdentityProviderConfig { + type Output = std::result::Result< + crate::output::AssociateIdentityProviderConfigOutput, + crate::error::AssociateIdentityProviderConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_associate_identity_provider_config_error(response) + } else { + crate::operation_deser::parse_associate_identity_provider_config_response(response) + } + } +} + +///

    Creates an Amazon EKS add-on.

    +///

    Amazon EKS add-ons help to automate the provisioning and lifecycle management of common +/// operational software for Amazon EKS clusters. Amazon EKS add-ons can only be used with Amazon EKS +/// clusters running version 1.18 with platform version eks.3 or later because +/// add-ons rely on the Server-side Apply Kubernetes feature, which is only available in +/// Kubernetes 1.18 and later.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CreateAddon { + _private: (), +} +impl CreateAddon { + /// Creates a new builder-style object to manufacture [`CreateAddonInput`](crate::input::CreateAddonInput) + pub fn builder() -> crate::input::create_addon_input::Builder { + crate::input::create_addon_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CreateAddon { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_addon_error(response) + } else { + crate::operation_deser::parse_create_addon_response(response) + } + } +} + +///

    Creates an Amazon EKS control plane.

    +///

    The Amazon EKS control plane consists of control plane instances that run the Kubernetes +/// software, such as etcd and the API server. The control plane runs in an +/// account managed by AWS, and the Kubernetes API is exposed via the Amazon EKS API server +/// endpoint. Each Amazon EKS cluster control plane is single-tenant and unique and runs on its +/// own set of Amazon EC2 instances.

    +///

    The cluster control plane is provisioned across multiple Availability Zones and +/// fronted by an Elastic Load Balancing Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC +/// subnets to provide connectivity from the control plane instances to the nodes (for +/// example, to support kubectl exec, logs, and proxy +/// data flows).

    +///

    Amazon EKS nodes run in your AWS account and connect to your cluster's control plane via +/// the Kubernetes API server endpoint and a certificate file that is created for your +/// cluster.

    +///

    Cluster creation typically takes several minutes. After you create an Amazon EKS cluster, +/// you must configure your Kubernetes tooling to communicate with the API server and launch +/// nodes into your cluster. For more information, see Managing Cluster +/// Authentication and Launching Amazon EKS nodes in the Amazon EKS User Guide.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CreateCluster { + _private: (), +} +impl CreateCluster { + /// Creates a new builder-style object to manufacture [`CreateClusterInput`](crate::input::CreateClusterInput) + pub fn builder() -> crate::input::create_cluster_input::Builder { + crate::input::create_cluster_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CreateCluster { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_cluster_error(response) + } else { + crate::operation_deser::parse_create_cluster_response(response) + } + } +} + +///

    Creates an AWS Fargate profile for your Amazon EKS cluster. You must have at least one Fargate +/// profile in a cluster to be able to run pods on Fargate.

    +///

    The Fargate profile allows an administrator to declare which pods run on Fargate and specify +/// which pods run on which Fargate profile. This declaration is done through the profile’s +/// selectors. Each profile can have up to five selectors that contain a namespace and +/// labels. A namespace is required for every selector. The label field consists of multiple +/// optional key-value pairs. Pods that match the selectors are scheduled on Fargate. If a +/// to-be-scheduled pod matches any of the selectors in the Fargate profile, then that pod is +/// run on Fargate.

    +///

    When you create a Fargate profile, you must specify a pod execution role to use with the +/// pods that are scheduled with the profile. This role is added to the cluster's Kubernetes +/// Role Based Access +/// Control (RBAC) for authorization so that the kubelet that is +/// running on the Fargate infrastructure can register with your Amazon EKS cluster so that it can +/// appear in your cluster as a node. The pod execution role also provides IAM permissions +/// to the Fargate infrastructure to allow read access to Amazon ECR image repositories. For more +/// information, see Pod Execution Role in the Amazon EKS User Guide.

    +///

    Fargate profiles are immutable. However, you can create a new updated profile to replace +/// an existing profile and then delete the original after the updated profile has finished +/// creating.

    +///

    If any Fargate profiles in a cluster are in the DELETING status, you must +/// wait for that Fargate profile to finish deleting before you can create any other profiles +/// in that cluster.

    +///

    For more information, see AWS Fargate Profile in the Amazon EKS User Guide.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CreateFargateProfile { + _private: (), +} +impl CreateFargateProfile { + /// Creates a new builder-style object to manufacture [`CreateFargateProfileInput`](crate::input::CreateFargateProfileInput) + pub fn builder() -> crate::input::create_fargate_profile_input::Builder { + crate::input::create_fargate_profile_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CreateFargateProfile { + type Output = std::result::Result< + crate::output::CreateFargateProfileOutput, + crate::error::CreateFargateProfileError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_fargate_profile_error(response) + } else { + crate::operation_deser::parse_create_fargate_profile_response(response) + } + } +} + +///

    Creates a managed node group for an Amazon EKS cluster. You can only create a node group +/// for your cluster that is equal to the current Kubernetes version for the cluster. All +/// node groups are created with the latest AMI release version for the respective minor +/// Kubernetes version of the cluster, unless you deploy a custom AMI using a launch +/// template. For more information about using launch templates, see Launch +/// template support.

    +///

    An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and associated Amazon EC2 instances that +/// are managed by AWS for an Amazon EKS cluster. Each node group uses a version of the Amazon EKS +/// optimized Amazon Linux 2 AMI. For more information, see Managed +/// Node Groups in the Amazon EKS User Guide.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct CreateNodegroup { + _private: (), +} +impl CreateNodegroup { + /// Creates a new builder-style object to manufacture [`CreateNodegroupInput`](crate::input::CreateNodegroupInput) + pub fn builder() -> crate::input::create_nodegroup_input::Builder { + crate::input::create_nodegroup_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for CreateNodegroup { + type Output = std::result::Result< + crate::output::CreateNodegroupOutput, + crate::error::CreateNodegroupError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_nodegroup_error(response) + } else { + crate::operation_deser::parse_create_nodegroup_response(response) + } + } +} + +///

    Delete an Amazon EKS add-on.

    +///

    When you remove the add-on, it will also be deleted from the cluster. You can always +/// manually start an add-on on the cluster using the Kubernetes API.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteAddon { + _private: (), +} +impl DeleteAddon { + /// Creates a new builder-style object to manufacture [`DeleteAddonInput`](crate::input::DeleteAddonInput) + pub fn builder() -> crate::input::delete_addon_input::Builder { + crate::input::delete_addon_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteAddon { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_addon_error(response) + } else { + crate::operation_deser::parse_delete_addon_response(response) + } + } +} + +///

    Deletes the Amazon EKS cluster control plane.

    +///

    If you have active services in your cluster that are associated with a load balancer, +/// you must delete those services before deleting the cluster so that the load balancers +/// are deleted properly. Otherwise, you can have orphaned resources in your VPC that +/// prevent you from being able to delete the VPC. For more information, see Deleting a +/// Cluster in the Amazon EKS User Guide.

    +///

    If you have managed node groups or Fargate profiles attached to the cluster, you must +/// delete them first. For more information, see DeleteNodegroup and DeleteFargateProfile.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteCluster { + _private: (), +} +impl DeleteCluster { + /// Creates a new builder-style object to manufacture [`DeleteClusterInput`](crate::input::DeleteClusterInput) + pub fn builder() -> crate::input::delete_cluster_input::Builder { + crate::input::delete_cluster_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteCluster { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_cluster_error(response) + } else { + crate::operation_deser::parse_delete_cluster_response(response) + } + } +} + +///

    Deletes an AWS Fargate profile.

    +///

    When you delete a Fargate profile, any pods running on Fargate that were created with the +/// profile are deleted. If those pods match another Fargate profile, then they are scheduled +/// on Fargate with that profile. If they no longer match any Fargate profiles, then they are not +/// scheduled on Fargate and they may remain in a pending state.

    +///

    Only one Fargate profile in a cluster can be in the DELETING status at a +/// time. You must wait for a Fargate profile to finish deleting before you can delete any +/// other profiles in that cluster.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteFargateProfile { + _private: (), +} +impl DeleteFargateProfile { + /// Creates a new builder-style object to manufacture [`DeleteFargateProfileInput`](crate::input::DeleteFargateProfileInput) + pub fn builder() -> crate::input::delete_fargate_profile_input::Builder { + crate::input::delete_fargate_profile_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteFargateProfile { + type Output = std::result::Result< + crate::output::DeleteFargateProfileOutput, + crate::error::DeleteFargateProfileError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_fargate_profile_error(response) + } else { + crate::operation_deser::parse_delete_fargate_profile_response(response) + } + } +} + +///

    Deletes an Amazon EKS node group for a cluster.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DeleteNodegroup { + _private: (), +} +impl DeleteNodegroup { + /// Creates a new builder-style object to manufacture [`DeleteNodegroupInput`](crate::input::DeleteNodegroupInput) + pub fn builder() -> crate::input::delete_nodegroup_input::Builder { + crate::input::delete_nodegroup_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DeleteNodegroup { + type Output = std::result::Result< + crate::output::DeleteNodegroupOutput, + crate::error::DeleteNodegroupError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_nodegroup_error(response) + } else { + crate::operation_deser::parse_delete_nodegroup_response(response) + } + } +} + +///

    Describes an Amazon EKS add-on.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAddon { + _private: (), +} +impl DescribeAddon { + /// Creates a new builder-style object to manufacture [`DescribeAddonInput`](crate::input::DescribeAddonInput) + pub fn builder() -> crate::input::describe_addon_input::Builder { + crate::input::describe_addon_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAddon { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_addon_error(response) + } else { + crate::operation_deser::parse_describe_addon_response(response) + } + } +} + +///

    Describes the Kubernetes versions that the add-on can be used with.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeAddonVersions { + _private: (), +} +impl DescribeAddonVersions { + /// Creates a new builder-style object to manufacture [`DescribeAddonVersionsInput`](crate::input::DescribeAddonVersionsInput) + pub fn builder() -> crate::input::describe_addon_versions_input::Builder { + crate::input::describe_addon_versions_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeAddonVersions { + type Output = std::result::Result< + crate::output::DescribeAddonVersionsOutput, + crate::error::DescribeAddonVersionsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_addon_versions_error(response) + } else { + crate::operation_deser::parse_describe_addon_versions_response(response) + } + } +} + +///

    Returns descriptive information about an Amazon EKS cluster.

    +///

    The API server endpoint and certificate authority data returned by this operation are +/// required for kubelet and kubectl to communicate with your +/// Kubernetes API server. For more information, see Create a +/// kubeconfig for Amazon EKS.

    +/// +///

    The API server endpoint and certificate authority data aren't available until the +/// cluster reaches the ACTIVE state.

    +///
    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeCluster { + _private: (), +} +impl DescribeCluster { + /// Creates a new builder-style object to manufacture [`DescribeClusterInput`](crate::input::DescribeClusterInput) + pub fn builder() -> crate::input::describe_cluster_input::Builder { + crate::input::describe_cluster_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeCluster { + type Output = std::result::Result< + crate::output::DescribeClusterOutput, + crate::error::DescribeClusterError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_cluster_error(response) + } else { + crate::operation_deser::parse_describe_cluster_response(response) + } + } +} + +///

    Returns descriptive information about an AWS Fargate profile.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeFargateProfile { + _private: (), +} +impl DescribeFargateProfile { + /// Creates a new builder-style object to manufacture [`DescribeFargateProfileInput`](crate::input::DescribeFargateProfileInput) + pub fn builder() -> crate::input::describe_fargate_profile_input::Builder { + crate::input::describe_fargate_profile_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeFargateProfile { + type Output = std::result::Result< + crate::output::DescribeFargateProfileOutput, + crate::error::DescribeFargateProfileError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_fargate_profile_error(response) + } else { + crate::operation_deser::parse_describe_fargate_profile_response(response) + } + } +} + +///

    Returns descriptive information about an identity provider configuration.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeIdentityProviderConfig { + _private: (), +} +impl DescribeIdentityProviderConfig { + /// Creates a new builder-style object to manufacture [`DescribeIdentityProviderConfigInput`](crate::input::DescribeIdentityProviderConfigInput) + pub fn builder() -> crate::input::describe_identity_provider_config_input::Builder { + crate::input::describe_identity_provider_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeIdentityProviderConfig { + type Output = std::result::Result< + crate::output::DescribeIdentityProviderConfigOutput, + crate::error::DescribeIdentityProviderConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_identity_provider_config_error(response) + } else { + crate::operation_deser::parse_describe_identity_provider_config_response(response) + } + } +} + +///

    Returns descriptive information about an Amazon EKS node group.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeNodegroup { + _private: (), +} +impl DescribeNodegroup { + /// Creates a new builder-style object to manufacture [`DescribeNodegroupInput`](crate::input::DescribeNodegroupInput) + pub fn builder() -> crate::input::describe_nodegroup_input::Builder { + crate::input::describe_nodegroup_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeNodegroup { + type Output = std::result::Result< + crate::output::DescribeNodegroupOutput, + crate::error::DescribeNodegroupError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_nodegroup_error(response) + } else { + crate::operation_deser::parse_describe_nodegroup_response(response) + } + } +} + +///

    Returns descriptive information about an update against your Amazon EKS cluster or +/// associated managed node group.

    +///

    When the status of the update is Succeeded, the update is complete. If an +/// update fails, the status is Failed, and an error detail explains the reason +/// for the failure.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DescribeUpdate { + _private: (), +} +impl DescribeUpdate { + /// Creates a new builder-style object to manufacture [`DescribeUpdateInput`](crate::input::DescribeUpdateInput) + pub fn builder() -> crate::input::describe_update_input::Builder { + crate::input::describe_update_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DescribeUpdate { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_update_error(response) + } else { + crate::operation_deser::parse_describe_update_response(response) + } + } +} + +///

    Disassociates an identity provider configuration from a cluster. If you disassociate +/// an identity provider from your cluster, users included in the provider can no longer +/// access the cluster. However, you can still access the cluster with AWS IAM +/// users.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct DisassociateIdentityProviderConfig { + _private: (), +} +impl DisassociateIdentityProviderConfig { + /// Creates a new builder-style object to manufacture [`DisassociateIdentityProviderConfigInput`](crate::input::DisassociateIdentityProviderConfigInput) + pub fn builder() -> crate::input::disassociate_identity_provider_config_input::Builder { + crate::input::disassociate_identity_provider_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for DisassociateIdentityProviderConfig { + type Output = std::result::Result< + crate::output::DisassociateIdentityProviderConfigOutput, + crate::error::DisassociateIdentityProviderConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disassociate_identity_provider_config_error(response) + } else { + crate::operation_deser::parse_disassociate_identity_provider_config_response(response) + } + } +} + +///

    Lists the available add-ons.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListAddons { + _private: (), +} +impl ListAddons { + /// Creates a new builder-style object to manufacture [`ListAddonsInput`](crate::input::ListAddonsInput) + pub fn builder() -> crate::input::list_addons_input::Builder { + crate::input::list_addons_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListAddons { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_addons_error(response) + } else { + crate::operation_deser::parse_list_addons_response(response) + } + } +} + +///

    Lists the Amazon EKS clusters in your AWS account in the specified Region.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListClusters { + _private: (), +} +impl ListClusters { + /// Creates a new builder-style object to manufacture [`ListClustersInput`](crate::input::ListClustersInput) + pub fn builder() -> crate::input::list_clusters_input::Builder { + crate::input::list_clusters_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListClusters { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_clusters_error(response) + } else { + crate::operation_deser::parse_list_clusters_response(response) + } + } +} + +///

    Lists the AWS Fargate profiles associated with the specified cluster in your AWS +/// account in the specified Region.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListFargateProfiles { + _private: (), +} +impl ListFargateProfiles { + /// Creates a new builder-style object to manufacture [`ListFargateProfilesInput`](crate::input::ListFargateProfilesInput) + pub fn builder() -> crate::input::list_fargate_profiles_input::Builder { + crate::input::list_fargate_profiles_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListFargateProfiles { + type Output = std::result::Result< + crate::output::ListFargateProfilesOutput, + crate::error::ListFargateProfilesError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_fargate_profiles_error(response) + } else { + crate::operation_deser::parse_list_fargate_profiles_response(response) + } + } +} + +///

    A list of identity provider configurations.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListIdentityProviderConfigs { + _private: (), +} +impl ListIdentityProviderConfigs { + /// Creates a new builder-style object to manufacture [`ListIdentityProviderConfigsInput`](crate::input::ListIdentityProviderConfigsInput) + pub fn builder() -> crate::input::list_identity_provider_configs_input::Builder { + crate::input::list_identity_provider_configs_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListIdentityProviderConfigs { + type Output = std::result::Result< + crate::output::ListIdentityProviderConfigsOutput, + crate::error::ListIdentityProviderConfigsError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_identity_provider_configs_error(response) + } else { + crate::operation_deser::parse_list_identity_provider_configs_response(response) + } + } +} + +///

    Lists the Amazon EKS managed node groups associated with the specified cluster in your +/// AWS account in the specified Region. Self-managed node groups are not listed.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListNodegroups { + _private: (), +} +impl ListNodegroups { + /// Creates a new builder-style object to manufacture [`ListNodegroupsInput`](crate::input::ListNodegroupsInput) + pub fn builder() -> crate::input::list_nodegroups_input::Builder { + crate::input::list_nodegroups_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListNodegroups { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_nodegroups_error(response) + } else { + crate::operation_deser::parse_list_nodegroups_response(response) + } + } +} + +///

    List the tags for an Amazon EKS resource.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListTagsForResource { + _private: (), +} +impl ListTagsForResource { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::input::ListTagsForResourceInput) + pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { + crate::input::list_tags_for_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListTagsForResource { + type Output = std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_for_resource_response(response) + } + } +} + +///

    Lists the updates associated with an Amazon EKS cluster or managed node group in your AWS +/// account, in the specified Region.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct ListUpdates { + _private: (), +} +impl ListUpdates { + /// Creates a new builder-style object to manufacture [`ListUpdatesInput`](crate::input::ListUpdatesInput) + pub fn builder() -> crate::input::list_updates_input::Builder { + crate::input::list_updates_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for ListUpdates { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_updates_error(response) + } else { + crate::operation_deser::parse_list_updates_response(response) + } + } +} + +///

    Associates the specified tags to a resource with the specified +/// resourceArn. If existing tags on a resource are not specified in the +/// request parameters, they are not changed. When a resource is deleted, the tags +/// associated with that resource are deleted as well. Tags that you create for Amazon EKS +/// resources do not propagate to any other resources associated with the cluster. For +/// example, if you tag a cluster with this operation, that tag does not automatically +/// propagate to the subnets and nodes associated with the cluster.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct TagResource { + _private: (), +} +impl TagResource { + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::input::TagResourceInput) + pub fn builder() -> crate::input::tag_resource_input::Builder { + crate::input::tag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for TagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } + } +} + +///

    Deletes specified tags from a resource.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UntagResource { + _private: (), +} +impl UntagResource { + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::input::UntagResourceInput) + pub fn builder() -> crate::input::untag_resource_input::Builder { + crate::input::untag_resource_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UntagResource { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } + } +} + +///

    Updates an Amazon EKS add-on.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UpdateAddon { + _private: (), +} +impl UpdateAddon { + /// Creates a new builder-style object to manufacture [`UpdateAddonInput`](crate::input::UpdateAddonInput) + pub fn builder() -> crate::input::update_addon_input::Builder { + crate::input::update_addon_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UpdateAddon { + type Output = + std::result::Result; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_addon_error(response) + } else { + crate::operation_deser::parse_update_addon_response(response) + } + } +} + +///

    Updates an Amazon EKS cluster configuration. Your cluster continues to function during the +/// update. The response output includes an update ID that you can use to track the status +/// of your cluster update with the DescribeUpdate API operation.

    +///

    You can use this API operation to enable or disable exporting the Kubernetes control +/// plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't +/// exported to CloudWatch Logs. For more information, see Amazon EKS +/// Cluster Control Plane Logs in the +/// +/// Amazon EKS User Guide +/// .

    +/// +///

    CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported +/// control plane logs. For more information, see Amazon CloudWatch Pricing.

    +///
    +///

    You can also use this API operation to enable or disable public and private access to +/// your cluster's Kubernetes API server endpoint. By default, public access is enabled, and +/// private access is disabled. For more information, see Amazon EKS Cluster +/// Endpoint Access Control in the +/// Amazon EKS User Guide +/// .

    +/// +///

    You can't update the subnets or security group IDs for an existing cluster.

    +///
    +///

    Cluster updates are asynchronous, and they should finish within a few minutes. During +/// an update, the cluster status moves to UPDATING (this status transition is +/// eventually consistent). When the update is complete (either Failed or +/// Successful), the cluster status moves to Active.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UpdateClusterConfig { + _private: (), +} +impl UpdateClusterConfig { + /// Creates a new builder-style object to manufacture [`UpdateClusterConfigInput`](crate::input::UpdateClusterConfigInput) + pub fn builder() -> crate::input::update_cluster_config_input::Builder { + crate::input::update_cluster_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UpdateClusterConfig { + type Output = std::result::Result< + crate::output::UpdateClusterConfigOutput, + crate::error::UpdateClusterConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_cluster_config_error(response) + } else { + crate::operation_deser::parse_update_cluster_config_response(response) + } + } +} + +///

    Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues +/// to function during the update. The response output includes an update ID that you can +/// use to track the status of your cluster update with the DescribeUpdate +/// API operation.

    +///

    Cluster updates are asynchronous, and they should finish within a few minutes. During +/// an update, the cluster status moves to UPDATING (this status transition is +/// eventually consistent). When the update is complete (either Failed or +/// Successful), the cluster status moves to Active.

    +///

    If your cluster has managed node groups attached to it, all of your node groups’ +/// Kubernetes versions must match the cluster’s Kubernetes version in order to update the +/// cluster to a new Kubernetes version.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UpdateClusterVersion { + _private: (), +} +impl UpdateClusterVersion { + /// Creates a new builder-style object to manufacture [`UpdateClusterVersionInput`](crate::input::UpdateClusterVersionInput) + pub fn builder() -> crate::input::update_cluster_version_input::Builder { + crate::input::update_cluster_version_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UpdateClusterVersion { + type Output = std::result::Result< + crate::output::UpdateClusterVersionOutput, + crate::error::UpdateClusterVersionError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_cluster_version_error(response) + } else { + crate::operation_deser::parse_update_cluster_version_response(response) + } + } +} + +///

    Updates an Amazon EKS managed node group configuration. Your node group continues to +/// function during the update. The response output includes an update ID that you can use +/// to track the status of your node group update with the DescribeUpdate +/// API operation. Currently you can update the Kubernetes labels for a node group or the +/// scaling configuration.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UpdateNodegroupConfig { + _private: (), +} +impl UpdateNodegroupConfig { + /// Creates a new builder-style object to manufacture [`UpdateNodegroupConfigInput`](crate::input::UpdateNodegroupConfigInput) + pub fn builder() -> crate::input::update_nodegroup_config_input::Builder { + crate::input::update_nodegroup_config_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UpdateNodegroupConfig { + type Output = std::result::Result< + crate::output::UpdateNodegroupConfigOutput, + crate::error::UpdateNodegroupConfigError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_nodegroup_config_error(response) + } else { + crate::operation_deser::parse_update_nodegroup_config_response(response) + } + } +} + +///

    Updates the Kubernetes version or AMI version of an Amazon EKS managed node group.

    +///

    You can update a node group using a launch template only if the node group was +/// originally deployed with a launch template. If you need to update a custom AMI in a node +/// group that was deployed with a launch template, then update your custom AMI, specify the +/// new ID in a new version of the launch template, and then update the node group to the +/// new version of the launch template.

    +///

    If you update without a launch template, then you can update to the latest available +/// AMI version of a node group's current Kubernetes version by not specifying a Kubernetes +/// version in the request. You can update to the latest AMI version of your cluster's +/// current Kubernetes version by specifying your cluster's Kubernetes version in the +/// request. For more information, see Amazon EKS +/// optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide.

    +///

    You cannot roll back a node group to an earlier Kubernetes version or AMI +/// version.

    +///

    When a node in a managed node group is terminated due to a scaling action or update, +/// the pods in that node are drained first. Amazon EKS attempts to drain the nodes gracefully +/// and will fail if it is unable to do so. You can force the update if Amazon EKS +/// is unable to drain the nodes as a result of a pod disruption budget issue.

    +#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] +pub struct UpdateNodegroupVersion { + _private: (), +} +impl UpdateNodegroupVersion { + /// Creates a new builder-style object to manufacture [`UpdateNodegroupVersionInput`](crate::input::UpdateNodegroupVersionInput) + pub fn builder() -> crate::input::update_nodegroup_version_input::Builder { + crate::input::update_nodegroup_version_input::Builder::default() + } + pub fn new() -> Self { + Self { _private: () } + } +} +impl smithy_http::response::ParseStrictResponse for UpdateNodegroupVersion { + type Output = std::result::Result< + crate::output::UpdateNodegroupVersionOutput, + crate::error::UpdateNodegroupVersionError, + >; + fn parse(&self, response: &http::Response) -> Self::Output { + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_nodegroup_version_error(response) + } else { + crate::operation_deser::parse_update_nodegroup_version_response(response) + } + } +} diff --git a/sdk/eks/src/operation_deser.rs b/sdk/eks/src/operation_deser.rs new file mode 100644 index 000000000000..a3a487351213 --- /dev/null +++ b/sdk/eks/src/operation_deser.rs @@ -0,0 +1,3314 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_encryption_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateEncryptionConfigOutput, + crate::error::AssociateEncryptionConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::AssociateEncryptionConfigError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::AssociateEncryptionConfigError { + meta: generic, + kind: crate::error::AssociateEncryptionConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AssociateEncryptionConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_encryption_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateEncryptionConfigOutput, + crate::error::AssociateEncryptionConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::associate_encryption_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_associate_encryption_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateEncryptionConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_identity_provider_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateIdentityProviderConfigOutput, + crate::error::AssociateIdentityProviderConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::AssociateIdentityProviderConfigError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::AssociateIdentityProviderConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::AssociateIdentityProviderConfigErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + }, + "InvalidRequestException" => { + crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: + crate::error::AssociateIdentityProviderConfigErrorKind::InvalidRequestException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceInUseException" => crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::AssociateIdentityProviderConfigErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::AssociateIdentityProviderConfigErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + }, + "ServerException" => crate::error::AssociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::AssociateIdentityProviderConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AssociateIdentityProviderConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_identity_provider_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateIdentityProviderConfigOutput, + crate::error::AssociateIdentityProviderConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::associate_identity_provider_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_associate_identity_provider_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateIdentityProviderConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_addon_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAddonError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAddonError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::CreateAddonError { + meta: generic, + kind: crate::error::CreateAddonErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAddonError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_addon_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_addon_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_addon(response.body().as_ref(), output) + .map_err(crate::error::CreateAddonError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceededException" => { + crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + } + } + "ServerException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + "UnsupportedAvailabilityZoneException" => crate::error::CreateClusterError { + meta: generic, + kind: crate::error::CreateClusterErrorKind::UnsupportedAvailabilityZoneException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_availability_zone_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_availability_zone_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_cluster(response.body().as_ref(), output) + .map_err(crate::error::CreateClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_fargate_profile_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFargateProfileOutput, + crate::error::CreateFargateProfileError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateFargateProfileError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceededException" => { + crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::ResourceLimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }, + ), + } + } + "ServerException" => crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }), + }, + "UnsupportedAvailabilityZoneException" => crate::error::CreateFargateProfileError { + meta: generic, + kind: crate::error::CreateFargateProfileErrorKind::UnsupportedAvailabilityZoneException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_availability_zone_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_availability_zone_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::CreateFargateProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_fargate_profile_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFargateProfileOutput, + crate::error::CreateFargateProfileError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_fargate_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_fargate_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFargateProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_nodegroup_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateNodegroupError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceededException" => { + crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + } + } + "ServerException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::CreateNodegroupError { + meta: generic, + kind: crate::error::CreateNodegroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateNodegroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_nodegroup_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_nodegroup_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_nodegroup(response.body().as_ref(), output) + .map_err(crate::error::CreateNodegroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_addon_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAddonError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAddonError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteAddonError { + meta: generic, + kind: crate::error::DeleteAddonErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteAddonError { + meta: generic, + kind: crate::error::DeleteAddonErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::DeleteAddonError { + meta: generic, + kind: crate::error::DeleteAddonErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteAddonError { + meta: generic, + kind: crate::error::DeleteAddonErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteAddonError { + meta: generic, + kind: crate::error::DeleteAddonErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAddonError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_addon_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_addon_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_addon(response.body().as_ref(), output) + .map_err(crate::error::DeleteAddonError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteClusterError { + meta: generic, + kind: crate::error::DeleteClusterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_cluster(response.body().as_ref(), output) + .map_err(crate::error::DeleteClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_fargate_profile_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFargateProfileOutput, + crate::error::DeleteFargateProfileError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteFargateProfileError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteFargateProfileError { + meta: generic, + kind: crate::error::DeleteFargateProfileErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteFargateProfileError { + meta: generic, + kind: crate::error::DeleteFargateProfileErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteFargateProfileError { + meta: generic, + kind: crate::error::DeleteFargateProfileErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteFargateProfileError { + meta: generic, + kind: crate::error::DeleteFargateProfileErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteFargateProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_fargate_profile_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFargateProfileOutput, + crate::error::DeleteFargateProfileError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_fargate_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_fargate_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFargateProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_nodegroup_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteNodegroupError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DeleteNodegroupError { + meta: generic, + kind: crate::error::DeleteNodegroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteNodegroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_nodegroup_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_nodegroup_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_nodegroup(response.body().as_ref(), output) + .map_err(crate::error::DeleteNodegroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_addon_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAddonError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAddonError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeAddonError { + meta: generic, + kind: crate::error::DescribeAddonErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeAddonError { + meta: generic, + kind: crate::error::DescribeAddonErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::DescribeAddonError { + meta: generic, + kind: crate::error::DescribeAddonErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeAddonError { + meta: generic, + kind: crate::error::DescribeAddonErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeAddonError { + meta: generic, + kind: crate::error::DescribeAddonErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAddonError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_addon_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_addon_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_addon(response.body().as_ref(), output) + .map_err(crate::error::DescribeAddonError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_addon_versions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAddonVersionsOutput, + crate::error::DescribeAddonVersionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAddonVersionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAddonVersionsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidParameterException" => crate::error::DescribeAddonVersionsError { + meta: generic, + kind: crate::error::DescribeAddonVersionsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonVersionsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeAddonVersionsError { + meta: generic, + kind: crate::error::DescribeAddonVersionsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonVersionsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeAddonVersionsError { + meta: generic, + kind: crate::error::DescribeAddonVersionsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonVersionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAddonVersionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_addon_versions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAddonVersionsOutput, + crate::error::DescribeAddonVersionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_addon_versions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_addon_versions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAddonVersionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_cluster_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeClusterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeClusterError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeClusterError { + meta: generic, + kind: crate::error::DescribeClusterErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClusterError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeClusterError { + meta: generic, + kind: crate::error::DescribeClusterErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClusterError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeClusterError { + meta: generic, + kind: crate::error::DescribeClusterErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClusterError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeClusterError { + meta: generic, + kind: crate::error::DescribeClusterErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeClusterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeClusterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_cluster_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_cluster_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_cluster(response.body().as_ref(), output) + .map_err(crate::error::DescribeClusterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_fargate_profile_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFargateProfileOutput, + crate::error::DescribeFargateProfileError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeFargateProfileError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::DescribeFargateProfileError { + meta: generic, + kind: crate::error::DescribeFargateProfileErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeFargateProfileError { + meta: generic, + kind: crate::error::DescribeFargateProfileErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeFargateProfileError { + meta: generic, + kind: crate::error::DescribeFargateProfileErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeFargateProfileError { + meta: generic, + kind: crate::error::DescribeFargateProfileErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeFargateProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_fargate_profile_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFargateProfileOutput, + crate::error::DescribeFargateProfileError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_fargate_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_fargate_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFargateProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_identity_provider_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeIdentityProviderConfigOutput, + crate::error::DescribeIdentityProviderConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeIdentityProviderConfigError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeIdentityProviderConfigError { + meta: generic, + kind: crate::error::DescribeIdentityProviderConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => { + crate::error::DescribeIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DescribeIdentityProviderConfigErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => { + crate::error::DescribeIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DescribeIdentityProviderConfigErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ServerException" => crate::error::DescribeIdentityProviderConfigError { + meta: generic, + kind: crate::error::DescribeIdentityProviderConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DescribeIdentityProviderConfigErrorKind::ServiceUnavailableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::DescribeIdentityProviderConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_identity_provider_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeIdentityProviderConfigOutput, + crate::error::DescribeIdentityProviderConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_identity_provider_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_identity_provider_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeIdentityProviderConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_nodegroup_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeNodegroupError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeNodegroupError { + meta: generic, + kind: crate::error::DescribeNodegroupErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeNodegroupError { + meta: generic, + kind: crate::error::DescribeNodegroupErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeNodegroupError { + meta: generic, + kind: crate::error::DescribeNodegroupErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeNodegroupError { + meta: generic, + kind: crate::error::DescribeNodegroupErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::DescribeNodegroupError { + meta: generic, + kind: crate::error::DescribeNodegroupErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeNodegroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_nodegroup_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_nodegroup_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_nodegroup(response.body().as_ref(), output) + .map_err(crate::error::DescribeNodegroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_update_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeUpdateError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::DescribeUpdateError { + meta: generic, + kind: crate::error::DescribeUpdateErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DescribeUpdateError { + meta: generic, + kind: crate::error::DescribeUpdateErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeUpdateError { + meta: generic, + kind: crate::error::DescribeUpdateErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::DescribeUpdateError { + meta: generic, + kind: crate::error::DescribeUpdateErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeUpdateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_update_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_update_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_update(response.body().as_ref(), output) + .map_err(crate::error::DescribeUpdateError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_identity_provider_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateIdentityProviderConfigOutput, + crate::error::DisassociateIdentityProviderConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DisassociateIdentityProviderConfigError::unhandled(generic)) + } + }; + Err(match error_code { + "ClientException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::DisassociateIdentityProviderConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DisassociateIdentityProviderConfigErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DisassociateIdentityProviderConfigError::unhandled, + )?; + output.build() + }, + ), + }, + "InvalidRequestException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DisassociateIdentityProviderConfigErrorKind::InvalidRequestException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DisassociateIdentityProviderConfigError::unhandled, + )?; + output.build() + }, + ), + }, + "ResourceInUseException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::DisassociateIdentityProviderConfigErrorKind::ResourceInUseException( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + }, + "ResourceNotFoundException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: + crate::error::DisassociateIdentityProviderConfigErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + output.build() + }, + ), + }, + "ServerException" => crate::error::DisassociateIdentityProviderConfigError { + meta: generic, + kind: crate::error::DisassociateIdentityProviderConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisassociateIdentityProviderConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_identity_provider_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateIdentityProviderConfigOutput, + crate::error::DisassociateIdentityProviderConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::disassociate_identity_provider_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_disassociate_identity_provider_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateIdentityProviderConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_addons_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAddonsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAddonsError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListAddonsError { + meta: generic, + kind: crate::error::ListAddonsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListAddonsError { + meta: generic, + kind: crate::error::ListAddonsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::ListAddonsError { + meta: generic, + kind: crate::error::ListAddonsErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListAddonsError { + meta: generic, + kind: crate::error::ListAddonsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListAddonsError { + meta: generic, + kind: crate::error::ListAddonsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAddonsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_addons_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_addons_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_addons(response.body().as_ref(), output) + .map_err(crate::error::ListAddonsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_clusters_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListClustersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListClustersError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::ListClustersError { + meta: generic, + kind: crate::error::ListClustersErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListClustersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_clusters_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_clusters_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_clusters(response.body().as_ref(), output) + .map_err(crate::error::ListClustersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_fargate_profiles_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListFargateProfilesOutput, + crate::error::ListFargateProfilesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListFargateProfilesError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListFargateProfilesError { + meta: generic, + kind: crate::error::ListFargateProfilesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListFargateProfilesError { + meta: generic, + kind: crate::error::ListFargateProfilesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListFargateProfilesError { + meta: generic, + kind: crate::error::ListFargateProfilesErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListFargateProfilesError { + meta: generic, + kind: crate::error::ListFargateProfilesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListFargateProfilesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_fargate_profiles_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListFargateProfilesOutput, + crate::error::ListFargateProfilesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_fargate_profiles_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_fargate_profiles( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFargateProfilesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_identity_provider_configs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListIdentityProviderConfigsOutput, + crate::error::ListIdentityProviderConfigsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListIdentityProviderConfigsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::ListIdentityProviderConfigsError { + meta: generic, + kind: crate::error::ListIdentityProviderConfigsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListIdentityProviderConfigsError { + meta: generic, + kind: crate::error::ListIdentityProviderConfigsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListIdentityProviderConfigsError { + meta: generic, + kind: crate::error::ListIdentityProviderConfigsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListIdentityProviderConfigsError { + meta: generic, + kind: crate::error::ListIdentityProviderConfigsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => { + crate::error::ListIdentityProviderConfigsError { + meta: generic, + kind: + crate::error::ListIdentityProviderConfigsErrorKind::ServiceUnavailableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::ListIdentityProviderConfigsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_identity_provider_configs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListIdentityProviderConfigsOutput, + crate::error::ListIdentityProviderConfigsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_identity_provider_configs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_identity_provider_configs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListIdentityProviderConfigsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_nodegroups_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListNodegroupsError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListNodegroupsError { + meta: generic, + kind: crate::error::ListNodegroupsErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListNodegroupsError { + meta: generic, + kind: crate::error::ListNodegroupsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListNodegroupsError { + meta: generic, + kind: crate::error::ListNodegroupsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListNodegroupsError { + meta: generic, + kind: crate::error::ListNodegroupsErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }), + }, + "ServiceUnavailableException" => crate::error::ListNodegroupsError { + meta: generic, + kind: crate::error::ListNodegroupsErrorKind::ServiceUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListNodegroupsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_nodegroups_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_nodegroups_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_nodegroups(response.body().as_ref(), output) + .map_err(crate::error::ListNodegroupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), + }; + Err(match error_code { + "BadRequestException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::BadRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_resource_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_for_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_updates_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListUpdatesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListUpdatesError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::ListUpdatesError { + meta: generic, + kind: crate::error::ListUpdatesErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListUpdatesError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListUpdatesError { + meta: generic, + kind: crate::error::ListUpdatesErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListUpdatesError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListUpdatesError { + meta: generic, + kind: crate::error::ListUpdatesErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListUpdatesError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::ListUpdatesError { + meta: generic, + kind: crate::error::ListUpdatesErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListUpdatesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListUpdatesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_updates_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_updates_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_updates(response.body().as_ref(), output) + .map_err(crate::error::ListUpdatesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "BadRequestException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::BadRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "BadRequestException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::BadRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_addon_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateAddonError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateAddonError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateAddonError { + meta: generic, + kind: crate::error::UpdateAddonErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateAddonError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_addon_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_addon_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_addon(response.body().as_ref(), output) + .map_err(crate::error::UpdateAddonError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterConfigOutput, + crate::error::UpdateClusterConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateClusterConfigError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateClusterConfigError { + meta: generic, + kind: crate::error::UpdateClusterConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateClusterConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterConfigOutput, + crate::error::UpdateClusterConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_cluster_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_cluster_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterVersionOutput, + crate::error::UpdateClusterVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateClusterVersionError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateClusterVersionError { + meta: generic, + kind: crate::error::UpdateClusterVersionErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateClusterVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_cluster_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateClusterVersionOutput, + crate::error::UpdateClusterVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_cluster_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_cluster_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateClusterVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_nodegroup_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNodegroupConfigOutput, + crate::error::UpdateNodegroupConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateNodegroupConfigError::unhandled(generic)), + }; + Err(match error_code { + "ClientException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateNodegroupConfigError { + meta: generic, + kind: crate::error::UpdateNodegroupConfigErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateNodegroupConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_nodegroup_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNodegroupConfigOutput, + crate::error::UpdateNodegroupConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_nodegroup_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_nodegroup_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_nodegroup_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNodegroupVersionOutput, + crate::error::UpdateNodegroupVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateNodegroupVersionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ClientException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::ClientException({ + #[allow(unused_mut)] + let mut output = crate::error::client_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_client_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + "ServerException" => crate::error::UpdateNodegroupVersionError { + meta: generic, + kind: crate::error::UpdateNodegroupVersionErrorKind::ServerException({ + #[allow(unused_mut)] + let mut output = crate::error::server_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateNodegroupVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_nodegroup_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNodegroupVersionOutput, + crate::error::UpdateNodegroupVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_nodegroup_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_nodegroup_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNodegroupVersionError::unhandled)?; + output.build() + }) +} diff --git a/sdk/eks/src/operation_ser.rs b/sdk/eks/src/operation_ser.rs new file mode 100644 index 000000000000..fb2389554330 --- /dev/null +++ b/sdk/eks/src/operation_ser.rs @@ -0,0 +1,149 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn serialize_operation_associate_encryption_config( + input: &crate::input::AssociateEncryptionConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_associate_encryption_config_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_associate_identity_provider_config( + input: &crate::input::AssociateIdentityProviderConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_associate_identity_provider_config_input( + &mut object, + input, + ); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_create_addon( + input: &crate::input::CreateAddonInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_create_addon_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_create_cluster( + input: &crate::input::CreateClusterInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_create_cluster_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_create_fargate_profile( + input: &crate::input::CreateFargateProfileInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_create_fargate_profile_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_create_nodegroup( + input: &crate::input::CreateNodegroupInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_create_nodegroup_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_describe_identity_provider_config( + input: &crate::input::DescribeIdentityProviderConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_describe_identity_provider_config_input( + &mut object, + input, + ); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_disassociate_identity_provider_config( + input: &crate::input::DisassociateIdentityProviderConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_disassociate_identity_provider_config_input( + &mut object, + input, + ); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_tag_resource( + input: &crate::input::TagResourceInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_update_addon( + input: &crate::input::UpdateAddonInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_update_addon_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_update_cluster_config( + input: &crate::input::UpdateClusterConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_update_cluster_config_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_update_cluster_version( + input: &crate::input::UpdateClusterVersionInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_update_cluster_version_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_update_nodegroup_config( + input: &crate::input::UpdateNodegroupConfigInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_update_nodegroup_config_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} + +pub fn serialize_operation_update_nodegroup_version( + input: &crate::input::UpdateNodegroupVersionInput, +) -> Result { + let mut out = String::new(); + let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::json_ser::serialize_structure_update_nodegroup_version_input(&mut object, input); + object.finish(); + Ok(smithy_http::body::SdkBody::from(out)) +} diff --git a/sdk/eks/src/output.rs b/sdk/eks/src/output.rs new file mode 100644 index 000000000000..87ae5459c391 --- /dev/null +++ b/sdk/eks/src/output.rs @@ -0,0 +1,1694 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateNodegroupVersionOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for UpdateNodegroupVersionOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateNodegroupVersionOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`UpdateNodegroupVersionOutput`](crate::output::UpdateNodegroupVersionOutput) +pub mod update_nodegroup_version_output { + /// A builder for [`UpdateNodegroupVersionOutput`](crate::output::UpdateNodegroupVersionOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`UpdateNodegroupVersionOutput`](crate::output::UpdateNodegroupVersionOutput) + pub fn build(self) -> crate::output::UpdateNodegroupVersionOutput { + crate::output::UpdateNodegroupVersionOutput { + update: self.update, + } + } + } +} +impl UpdateNodegroupVersionOutput { + /// Creates a new builder-style object to manufacture [`UpdateNodegroupVersionOutput`](crate::output::UpdateNodegroupVersionOutput) + pub fn builder() -> crate::output::update_nodegroup_version_output::Builder { + crate::output::update_nodegroup_version_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateNodegroupConfigOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for UpdateNodegroupConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateNodegroupConfigOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`UpdateNodegroupConfigOutput`](crate::output::UpdateNodegroupConfigOutput) +pub mod update_nodegroup_config_output { + /// A builder for [`UpdateNodegroupConfigOutput`](crate::output::UpdateNodegroupConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`UpdateNodegroupConfigOutput`](crate::output::UpdateNodegroupConfigOutput) + pub fn build(self) -> crate::output::UpdateNodegroupConfigOutput { + crate::output::UpdateNodegroupConfigOutput { + update: self.update, + } + } + } +} +impl UpdateNodegroupConfigOutput { + /// Creates a new builder-style object to manufacture [`UpdateNodegroupConfigOutput`](crate::output::UpdateNodegroupConfigOutput) + pub fn builder() -> crate::output::update_nodegroup_config_output::Builder { + crate::output::update_nodegroup_config_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateClusterVersionOutput { + ///

    The full description of the specified update

    + pub update: std::option::Option, +} +impl std::fmt::Debug for UpdateClusterVersionOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateClusterVersionOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`UpdateClusterVersionOutput`](crate::output::UpdateClusterVersionOutput) +pub mod update_cluster_version_output { + /// A builder for [`UpdateClusterVersionOutput`](crate::output::UpdateClusterVersionOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    The full description of the specified update

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`UpdateClusterVersionOutput`](crate::output::UpdateClusterVersionOutput) + pub fn build(self) -> crate::output::UpdateClusterVersionOutput { + crate::output::UpdateClusterVersionOutput { + update: self.update, + } + } + } +} +impl UpdateClusterVersionOutput { + /// Creates a new builder-style object to manufacture [`UpdateClusterVersionOutput`](crate::output::UpdateClusterVersionOutput) + pub fn builder() -> crate::output::update_cluster_version_output::Builder { + crate::output::update_cluster_version_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateClusterConfigOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for UpdateClusterConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateClusterConfigOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`UpdateClusterConfigOutput`](crate::output::UpdateClusterConfigOutput) +pub mod update_cluster_config_output { + /// A builder for [`UpdateClusterConfigOutput`](crate::output::UpdateClusterConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`UpdateClusterConfigOutput`](crate::output::UpdateClusterConfigOutput) + pub fn build(self) -> crate::output::UpdateClusterConfigOutput { + crate::output::UpdateClusterConfigOutput { + update: self.update, + } + } + } +} +impl UpdateClusterConfigOutput { + /// Creates a new builder-style object to manufacture [`UpdateClusterConfigOutput`](crate::output::UpdateClusterConfigOutput) + pub fn builder() -> crate::output::update_cluster_config_output::Builder { + crate::output::update_cluster_config_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UpdateAddonOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for UpdateAddonOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UpdateAddonOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`UpdateAddonOutput`](crate::output::UpdateAddonOutput) +pub mod update_addon_output { + /// A builder for [`UpdateAddonOutput`](crate::output::UpdateAddonOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`UpdateAddonOutput`](crate::output::UpdateAddonOutput) + pub fn build(self) -> crate::output::UpdateAddonOutput { + crate::output::UpdateAddonOutput { + update: self.update, + } + } + } +} +impl UpdateAddonOutput { + /// Creates a new builder-style object to manufacture [`UpdateAddonOutput`](crate::output::UpdateAddonOutput) + pub fn builder() -> crate::output::update_addon_output::Builder { + crate::output::update_addon_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UntagResourceOutput {} +impl std::fmt::Debug for UntagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("UntagResourceOutput"); + formatter.finish() + } +} +/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput) +pub mod untag_resource_output { + /// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn build(self) -> crate::output::UntagResourceOutput { + crate::output::UntagResourceOutput {} + } + } +} +impl UntagResourceOutput { + /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput) + pub fn builder() -> crate::output::untag_resource_output::Builder { + crate::output::untag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagResourceOutput {} +impl std::fmt::Debug for TagResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("TagResourceOutput"); + formatter.finish() + } +} +/// See [`TagResourceOutput`](crate::output::TagResourceOutput) +pub mod tag_resource_output { + /// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder {} + impl Builder { + /// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn build(self) -> crate::output::TagResourceOutput { + crate::output::TagResourceOutput {} + } + } +} +impl TagResourceOutput { + /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput) + pub fn builder() -> crate::output::tag_resource_output::Builder { + crate::output::tag_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListUpdatesOutput { + ///

    A list of all the updates for the specified cluster and Region.

    + pub update_ids: std::option::Option>, + ///

    The nextToken value to include in a future ListUpdates + /// request. When the results of a ListUpdates request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListUpdatesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListUpdatesOutput"); + formatter.field("update_ids", &self.update_ids); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListUpdatesOutput`](crate::output::ListUpdatesOutput) +pub mod list_updates_output { + /// A builder for [`ListUpdatesOutput`](crate::output::ListUpdatesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update_ids: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn update_ids(mut self, input: impl Into) -> Self { + let mut v = self.update_ids.unwrap_or_default(); + v.push(input.into()); + self.update_ids = Some(v); + self + } + pub fn set_update_ids( + mut self, + input: std::option::Option>, + ) -> Self { + self.update_ids = input; + self + } + ///

    The nextToken value to include in a future ListUpdates + /// request. When the results of a ListUpdates request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListUpdatesOutput`](crate::output::ListUpdatesOutput) + pub fn build(self) -> crate::output::ListUpdatesOutput { + crate::output::ListUpdatesOutput { + update_ids: self.update_ids, + next_token: self.next_token, + } + } + } +} +impl ListUpdatesOutput { + /// Creates a new builder-style object to manufacture [`ListUpdatesOutput`](crate::output::ListUpdatesOutput) + pub fn builder() -> crate::output::list_updates_output::Builder { + crate::output::list_updates_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListTagsForResourceOutput { + ///

    The tags for the resource.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for ListTagsForResourceOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListTagsForResourceOutput"); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) +pub mod list_tags_for_resource_output { + /// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn build(self) -> crate::output::ListTagsForResourceOutput { + crate::output::ListTagsForResourceOutput { tags: self.tags } + } + } +} +impl ListTagsForResourceOutput { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) + pub fn builder() -> crate::output::list_tags_for_resource_output::Builder { + crate::output::list_tags_for_resource_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListNodegroupsOutput { + ///

    A list of all of the node groups associated with the specified cluster.

    + pub nodegroups: std::option::Option>, + ///

    The nextToken value to include in a future ListNodegroups + /// request. When the results of a ListNodegroups request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListNodegroupsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListNodegroupsOutput"); + formatter.field("nodegroups", &self.nodegroups); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListNodegroupsOutput`](crate::output::ListNodegroupsOutput) +pub mod list_nodegroups_output { + /// A builder for [`ListNodegroupsOutput`](crate::output::ListNodegroupsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) nodegroups: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn nodegroups(mut self, input: impl Into) -> Self { + let mut v = self.nodegroups.unwrap_or_default(); + v.push(input.into()); + self.nodegroups = Some(v); + self + } + pub fn set_nodegroups( + mut self, + input: std::option::Option>, + ) -> Self { + self.nodegroups = input; + self + } + ///

    The nextToken value to include in a future ListNodegroups + /// request. When the results of a ListNodegroups request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListNodegroupsOutput`](crate::output::ListNodegroupsOutput) + pub fn build(self) -> crate::output::ListNodegroupsOutput { + crate::output::ListNodegroupsOutput { + nodegroups: self.nodegroups, + next_token: self.next_token, + } + } + } +} +impl ListNodegroupsOutput { + /// Creates a new builder-style object to manufacture [`ListNodegroupsOutput`](crate::output::ListNodegroupsOutput) + pub fn builder() -> crate::output::list_nodegroups_output::Builder { + crate::output::list_nodegroups_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListIdentityProviderConfigsOutput { + ///

    The identity provider configurations for the cluster.

    + pub identity_provider_configs: + std::option::Option>, + ///

    The nextToken value returned from a previous paginated + /// ListIdentityProviderConfigsResponse where maxResults was + /// used and the results exceeded the value of that parameter. Pagination continues from the + /// end of the previous results that returned the nextToken value.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListIdentityProviderConfigsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListIdentityProviderConfigsOutput"); + formatter.field("identity_provider_configs", &self.identity_provider_configs); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListIdentityProviderConfigsOutput`](crate::output::ListIdentityProviderConfigsOutput) +pub mod list_identity_provider_configs_output { + /// A builder for [`ListIdentityProviderConfigsOutput`](crate::output::ListIdentityProviderConfigsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) identity_provider_configs: + std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn identity_provider_configs( + mut self, + input: impl Into, + ) -> Self { + let mut v = self.identity_provider_configs.unwrap_or_default(); + v.push(input.into()); + self.identity_provider_configs = Some(v); + self + } + pub fn set_identity_provider_configs( + mut self, + input: std::option::Option>, + ) -> Self { + self.identity_provider_configs = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListIdentityProviderConfigsResponse where maxResults was + /// used and the results exceeded the value of that parameter. Pagination continues from the + /// end of the previous results that returned the nextToken value.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListIdentityProviderConfigsOutput`](crate::output::ListIdentityProviderConfigsOutput) + pub fn build(self) -> crate::output::ListIdentityProviderConfigsOutput { + crate::output::ListIdentityProviderConfigsOutput { + identity_provider_configs: self.identity_provider_configs, + next_token: self.next_token, + } + } + } +} +impl ListIdentityProviderConfigsOutput { + /// Creates a new builder-style object to manufacture [`ListIdentityProviderConfigsOutput`](crate::output::ListIdentityProviderConfigsOutput) + pub fn builder() -> crate::output::list_identity_provider_configs_output::Builder { + crate::output::list_identity_provider_configs_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListFargateProfilesOutput { + ///

    A list of all of the Fargate profiles associated with the specified cluster.

    + pub fargate_profile_names: std::option::Option>, + ///

    The nextToken value to include in a future + /// ListFargateProfiles request. When the results of a + /// ListFargateProfiles request exceed maxResults, you can use + /// this value to retrieve the next page of results. This value is null when + /// there are no more results to return.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListFargateProfilesOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListFargateProfilesOutput"); + formatter.field("fargate_profile_names", &self.fargate_profile_names); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListFargateProfilesOutput`](crate::output::ListFargateProfilesOutput) +pub mod list_fargate_profiles_output { + /// A builder for [`ListFargateProfilesOutput`](crate::output::ListFargateProfilesOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile_names: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn fargate_profile_names(mut self, input: impl Into) -> Self { + let mut v = self.fargate_profile_names.unwrap_or_default(); + v.push(input.into()); + self.fargate_profile_names = Some(v); + self + } + pub fn set_fargate_profile_names( + mut self, + input: std::option::Option>, + ) -> Self { + self.fargate_profile_names = input; + self + } + ///

    The nextToken value to include in a future + /// ListFargateProfiles request. When the results of a + /// ListFargateProfiles request exceed maxResults, you can use + /// this value to retrieve the next page of results. This value is null when + /// there are no more results to return.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListFargateProfilesOutput`](crate::output::ListFargateProfilesOutput) + pub fn build(self) -> crate::output::ListFargateProfilesOutput { + crate::output::ListFargateProfilesOutput { + fargate_profile_names: self.fargate_profile_names, + next_token: self.next_token, + } + } + } +} +impl ListFargateProfilesOutput { + /// Creates a new builder-style object to manufacture [`ListFargateProfilesOutput`](crate::output::ListFargateProfilesOutput) + pub fn builder() -> crate::output::list_fargate_profiles_output::Builder { + crate::output::list_fargate_profiles_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListClustersOutput { + ///

    A list of all of the clusters for your account in the specified Region.

    + pub clusters: std::option::Option>, + ///

    The nextToken value to include in a future ListClusters + /// request. When the results of a ListClusters request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListClustersOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListClustersOutput"); + formatter.field("clusters", &self.clusters); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListClustersOutput`](crate::output::ListClustersOutput) +pub mod list_clusters_output { + /// A builder for [`ListClustersOutput`](crate::output::ListClustersOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) clusters: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn clusters(mut self, input: impl Into) -> Self { + let mut v = self.clusters.unwrap_or_default(); + v.push(input.into()); + self.clusters = Some(v); + self + } + pub fn set_clusters( + mut self, + input: std::option::Option>, + ) -> Self { + self.clusters = input; + self + } + ///

    The nextToken value to include in a future ListClusters + /// request. When the results of a ListClusters request exceed + /// maxResults, you can use this value to retrieve the next page of + /// results. This value is null when there are no more results to + /// return.

    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListClustersOutput`](crate::output::ListClustersOutput) + pub fn build(self) -> crate::output::ListClustersOutput { + crate::output::ListClustersOutput { + clusters: self.clusters, + next_token: self.next_token, + } + } + } +} +impl ListClustersOutput { + /// Creates a new builder-style object to manufacture [`ListClustersOutput`](crate::output::ListClustersOutput) + pub fn builder() -> crate::output::list_clusters_output::Builder { + crate::output::list_clusters_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ListAddonsOutput { + ///

    A list of available add-ons.

    + pub addons: std::option::Option>, + ///

    The nextToken value returned from a previous paginated + /// ListAddonsResponse where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for ListAddonsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("ListAddonsOutput"); + formatter.field("addons", &self.addons); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`ListAddonsOutput`](crate::output::ListAddonsOutput) +pub mod list_addons_output { + /// A builder for [`ListAddonsOutput`](crate::output::ListAddonsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addons: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn addons(mut self, input: impl Into) -> Self { + let mut v = self.addons.unwrap_or_default(); + v.push(input.into()); + self.addons = Some(v); + self + } + pub fn set_addons( + mut self, + input: std::option::Option>, + ) -> Self { + self.addons = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// ListAddonsResponse where maxResults was used and the + /// results exceeded the value of that parameter. Pagination continues from the end of the + /// previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`ListAddonsOutput`](crate::output::ListAddonsOutput) + pub fn build(self) -> crate::output::ListAddonsOutput { + crate::output::ListAddonsOutput { + addons: self.addons, + next_token: self.next_token, + } + } + } +} +impl ListAddonsOutput { + /// Creates a new builder-style object to manufacture [`ListAddonsOutput`](crate::output::ListAddonsOutput) + pub fn builder() -> crate::output::list_addons_output::Builder { + crate::output::list_addons_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisassociateIdentityProviderConfigOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for DisassociateIdentityProviderConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DisassociateIdentityProviderConfigOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`DisassociateIdentityProviderConfigOutput`](crate::output::DisassociateIdentityProviderConfigOutput) +pub mod disassociate_identity_provider_config_output { + /// A builder for [`DisassociateIdentityProviderConfigOutput`](crate::output::DisassociateIdentityProviderConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`DisassociateIdentityProviderConfigOutput`](crate::output::DisassociateIdentityProviderConfigOutput) + pub fn build(self) -> crate::output::DisassociateIdentityProviderConfigOutput { + crate::output::DisassociateIdentityProviderConfigOutput { + update: self.update, + } + } + } +} +impl DisassociateIdentityProviderConfigOutput { + /// Creates a new builder-style object to manufacture [`DisassociateIdentityProviderConfigOutput`](crate::output::DisassociateIdentityProviderConfigOutput) + pub fn builder() -> crate::output::disassociate_identity_provider_config_output::Builder { + crate::output::disassociate_identity_provider_config_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeUpdateOutput { + ///

    The full description of the specified update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for DescribeUpdateOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeUpdateOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`DescribeUpdateOutput`](crate::output::DescribeUpdateOutput) +pub mod describe_update_output { + /// A builder for [`DescribeUpdateOutput`](crate::output::DescribeUpdateOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    The full description of the specified update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`DescribeUpdateOutput`](crate::output::DescribeUpdateOutput) + pub fn build(self) -> crate::output::DescribeUpdateOutput { + crate::output::DescribeUpdateOutput { + update: self.update, + } + } + } +} +impl DescribeUpdateOutput { + /// Creates a new builder-style object to manufacture [`DescribeUpdateOutput`](crate::output::DescribeUpdateOutput) + pub fn builder() -> crate::output::describe_update_output::Builder { + crate::output::describe_update_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeNodegroupOutput { + ///

    The full description of your node group.

    + pub nodegroup: std::option::Option, +} +impl std::fmt::Debug for DescribeNodegroupOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeNodegroupOutput"); + formatter.field("nodegroup", &self.nodegroup); + formatter.finish() + } +} +/// See [`DescribeNodegroupOutput`](crate::output::DescribeNodegroupOutput) +pub mod describe_nodegroup_output { + /// A builder for [`DescribeNodegroupOutput`](crate::output::DescribeNodegroupOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) nodegroup: std::option::Option, + } + impl Builder { + ///

    The full description of your node group.

    + pub fn nodegroup(mut self, input: crate::model::Nodegroup) -> Self { + self.nodegroup = Some(input); + self + } + pub fn set_nodegroup( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup = input; + self + } + /// Consumes the builder and constructs a [`DescribeNodegroupOutput`](crate::output::DescribeNodegroupOutput) + pub fn build(self) -> crate::output::DescribeNodegroupOutput { + crate::output::DescribeNodegroupOutput { + nodegroup: self.nodegroup, + } + } + } +} +impl DescribeNodegroupOutput { + /// Creates a new builder-style object to manufacture [`DescribeNodegroupOutput`](crate::output::DescribeNodegroupOutput) + pub fn builder() -> crate::output::describe_nodegroup_output::Builder { + crate::output::describe_nodegroup_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeIdentityProviderConfigOutput { + ///

    The object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub identity_provider_config: std::option::Option, +} +impl std::fmt::Debug for DescribeIdentityProviderConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeIdentityProviderConfigOutput"); + formatter.field("identity_provider_config", &self.identity_provider_config); + formatter.finish() + } +} +/// See [`DescribeIdentityProviderConfigOutput`](crate::output::DescribeIdentityProviderConfigOutput) +pub mod describe_identity_provider_config_output { + /// A builder for [`DescribeIdentityProviderConfigOutput`](crate::output::DescribeIdentityProviderConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) identity_provider_config: + std::option::Option, + } + impl Builder { + ///

    The object that represents an OpenID Connect (OIDC) identity provider + /// configuration.

    + pub fn identity_provider_config( + mut self, + input: crate::model::IdentityProviderConfigResponse, + ) -> Self { + self.identity_provider_config = Some(input); + self + } + pub fn set_identity_provider_config( + mut self, + input: std::option::Option, + ) -> Self { + self.identity_provider_config = input; + self + } + /// Consumes the builder and constructs a [`DescribeIdentityProviderConfigOutput`](crate::output::DescribeIdentityProviderConfigOutput) + pub fn build(self) -> crate::output::DescribeIdentityProviderConfigOutput { + crate::output::DescribeIdentityProviderConfigOutput { + identity_provider_config: self.identity_provider_config, + } + } + } +} +impl DescribeIdentityProviderConfigOutput { + /// Creates a new builder-style object to manufacture [`DescribeIdentityProviderConfigOutput`](crate::output::DescribeIdentityProviderConfigOutput) + pub fn builder() -> crate::output::describe_identity_provider_config_output::Builder { + crate::output::describe_identity_provider_config_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeFargateProfileOutput { + ///

    The full description of your Fargate profile.

    + pub fargate_profile: std::option::Option, +} +impl std::fmt::Debug for DescribeFargateProfileOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeFargateProfileOutput"); + formatter.field("fargate_profile", &self.fargate_profile); + formatter.finish() + } +} +/// See [`DescribeFargateProfileOutput`](crate::output::DescribeFargateProfileOutput) +pub mod describe_fargate_profile_output { + /// A builder for [`DescribeFargateProfileOutput`](crate::output::DescribeFargateProfileOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile: std::option::Option, + } + impl Builder { + ///

    The full description of your Fargate profile.

    + pub fn fargate_profile(mut self, input: crate::model::FargateProfile) -> Self { + self.fargate_profile = Some(input); + self + } + pub fn set_fargate_profile( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile = input; + self + } + /// Consumes the builder and constructs a [`DescribeFargateProfileOutput`](crate::output::DescribeFargateProfileOutput) + pub fn build(self) -> crate::output::DescribeFargateProfileOutput { + crate::output::DescribeFargateProfileOutput { + fargate_profile: self.fargate_profile, + } + } + } +} +impl DescribeFargateProfileOutput { + /// Creates a new builder-style object to manufacture [`DescribeFargateProfileOutput`](crate::output::DescribeFargateProfileOutput) + pub fn builder() -> crate::output::describe_fargate_profile_output::Builder { + crate::output::describe_fargate_profile_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeClusterOutput { + ///

    The full description of your specified cluster.

    + pub cluster: std::option::Option, +} +impl std::fmt::Debug for DescribeClusterOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeClusterOutput"); + formatter.field("cluster", &self.cluster); + formatter.finish() + } +} +/// See [`DescribeClusterOutput`](crate::output::DescribeClusterOutput) +pub mod describe_cluster_output { + /// A builder for [`DescribeClusterOutput`](crate::output::DescribeClusterOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster: std::option::Option, + } + impl Builder { + ///

    The full description of your specified cluster.

    + pub fn cluster(mut self, input: crate::model::Cluster) -> Self { + self.cluster = Some(input); + self + } + pub fn set_cluster(mut self, input: std::option::Option) -> Self { + self.cluster = input; + self + } + /// Consumes the builder and constructs a [`DescribeClusterOutput`](crate::output::DescribeClusterOutput) + pub fn build(self) -> crate::output::DescribeClusterOutput { + crate::output::DescribeClusterOutput { + cluster: self.cluster, + } + } + } +} +impl DescribeClusterOutput { + /// Creates a new builder-style object to manufacture [`DescribeClusterOutput`](crate::output::DescribeClusterOutput) + pub fn builder() -> crate::output::describe_cluster_output::Builder { + crate::output::describe_cluster_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAddonVersionsOutput { + ///

    The list of available versions with Kubernetes version compatibility.

    + pub addons: std::option::Option>, + ///

    The nextToken value returned from a previous paginated + /// DescribeAddonVersionsResponse where maxResults was used + /// and the results exceeded the value of that parameter. Pagination continues from the end + /// of the previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub next_token: std::option::Option, +} +impl std::fmt::Debug for DescribeAddonVersionsOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAddonVersionsOutput"); + formatter.field("addons", &self.addons); + formatter.field("next_token", &self.next_token); + formatter.finish() + } +} +/// See [`DescribeAddonVersionsOutput`](crate::output::DescribeAddonVersionsOutput) +pub mod describe_addon_versions_output { + /// A builder for [`DescribeAddonVersionsOutput`](crate::output::DescribeAddonVersionsOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addons: std::option::Option>, + pub(crate) next_token: std::option::Option, + } + impl Builder { + pub fn addons(mut self, input: impl Into) -> Self { + let mut v = self.addons.unwrap_or_default(); + v.push(input.into()); + self.addons = Some(v); + self + } + pub fn set_addons( + mut self, + input: std::option::Option>, + ) -> Self { + self.addons = input; + self + } + ///

    The nextToken value returned from a previous paginated + /// DescribeAddonVersionsResponse where maxResults was used + /// and the results exceeded the value of that parameter. Pagination continues from the end + /// of the previous results that returned the nextToken value.

    + /// + ///

    This token should be treated as an opaque identifier that is used only to + /// retrieve the next items in a list and not for other programmatic purposes.

    + ///
    + pub fn next_token(mut self, input: impl Into) -> Self { + self.next_token = Some(input.into()); + self + } + pub fn set_next_token(mut self, input: std::option::Option) -> Self { + self.next_token = input; + self + } + /// Consumes the builder and constructs a [`DescribeAddonVersionsOutput`](crate::output::DescribeAddonVersionsOutput) + pub fn build(self) -> crate::output::DescribeAddonVersionsOutput { + crate::output::DescribeAddonVersionsOutput { + addons: self.addons, + next_token: self.next_token, + } + } + } +} +impl DescribeAddonVersionsOutput { + /// Creates a new builder-style object to manufacture [`DescribeAddonVersionsOutput`](crate::output::DescribeAddonVersionsOutput) + pub fn builder() -> crate::output::describe_addon_versions_output::Builder { + crate::output::describe_addon_versions_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DescribeAddonOutput { + ///

    An Amazon EKS add-on.

    + pub addon: std::option::Option, +} +impl std::fmt::Debug for DescribeAddonOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DescribeAddonOutput"); + formatter.field("addon", &self.addon); + formatter.finish() + } +} +/// See [`DescribeAddonOutput`](crate::output::DescribeAddonOutput) +pub mod describe_addon_output { + /// A builder for [`DescribeAddonOutput`](crate::output::DescribeAddonOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon: std::option::Option, + } + impl Builder { + ///

    An Amazon EKS add-on.

    + pub fn addon(mut self, input: crate::model::Addon) -> Self { + self.addon = Some(input); + self + } + pub fn set_addon(mut self, input: std::option::Option) -> Self { + self.addon = input; + self + } + /// Consumes the builder and constructs a [`DescribeAddonOutput`](crate::output::DescribeAddonOutput) + pub fn build(self) -> crate::output::DescribeAddonOutput { + crate::output::DescribeAddonOutput { addon: self.addon } + } + } +} +impl DescribeAddonOutput { + /// Creates a new builder-style object to manufacture [`DescribeAddonOutput`](crate::output::DescribeAddonOutput) + pub fn builder() -> crate::output::describe_addon_output::Builder { + crate::output::describe_addon_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteNodegroupOutput { + ///

    The full description of your deleted node group.

    + pub nodegroup: std::option::Option, +} +impl std::fmt::Debug for DeleteNodegroupOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteNodegroupOutput"); + formatter.field("nodegroup", &self.nodegroup); + formatter.finish() + } +} +/// See [`DeleteNodegroupOutput`](crate::output::DeleteNodegroupOutput) +pub mod delete_nodegroup_output { + /// A builder for [`DeleteNodegroupOutput`](crate::output::DeleteNodegroupOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) nodegroup: std::option::Option, + } + impl Builder { + ///

    The full description of your deleted node group.

    + pub fn nodegroup(mut self, input: crate::model::Nodegroup) -> Self { + self.nodegroup = Some(input); + self + } + pub fn set_nodegroup( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup = input; + self + } + /// Consumes the builder and constructs a [`DeleteNodegroupOutput`](crate::output::DeleteNodegroupOutput) + pub fn build(self) -> crate::output::DeleteNodegroupOutput { + crate::output::DeleteNodegroupOutput { + nodegroup: self.nodegroup, + } + } + } +} +impl DeleteNodegroupOutput { + /// Creates a new builder-style object to manufacture [`DeleteNodegroupOutput`](crate::output::DeleteNodegroupOutput) + pub fn builder() -> crate::output::delete_nodegroup_output::Builder { + crate::output::delete_nodegroup_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteFargateProfileOutput { + ///

    The deleted Fargate profile.

    + pub fargate_profile: std::option::Option, +} +impl std::fmt::Debug for DeleteFargateProfileOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteFargateProfileOutput"); + formatter.field("fargate_profile", &self.fargate_profile); + formatter.finish() + } +} +/// See [`DeleteFargateProfileOutput`](crate::output::DeleteFargateProfileOutput) +pub mod delete_fargate_profile_output { + /// A builder for [`DeleteFargateProfileOutput`](crate::output::DeleteFargateProfileOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile: std::option::Option, + } + impl Builder { + ///

    The deleted Fargate profile.

    + pub fn fargate_profile(mut self, input: crate::model::FargateProfile) -> Self { + self.fargate_profile = Some(input); + self + } + pub fn set_fargate_profile( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile = input; + self + } + /// Consumes the builder and constructs a [`DeleteFargateProfileOutput`](crate::output::DeleteFargateProfileOutput) + pub fn build(self) -> crate::output::DeleteFargateProfileOutput { + crate::output::DeleteFargateProfileOutput { + fargate_profile: self.fargate_profile, + } + } + } +} +impl DeleteFargateProfileOutput { + /// Creates a new builder-style object to manufacture [`DeleteFargateProfileOutput`](crate::output::DeleteFargateProfileOutput) + pub fn builder() -> crate::output::delete_fargate_profile_output::Builder { + crate::output::delete_fargate_profile_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteClusterOutput { + ///

    The full description of the cluster to delete.

    + pub cluster: std::option::Option, +} +impl std::fmt::Debug for DeleteClusterOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteClusterOutput"); + formatter.field("cluster", &self.cluster); + formatter.finish() + } +} +/// See [`DeleteClusterOutput`](crate::output::DeleteClusterOutput) +pub mod delete_cluster_output { + /// A builder for [`DeleteClusterOutput`](crate::output::DeleteClusterOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster: std::option::Option, + } + impl Builder { + ///

    The full description of the cluster to delete.

    + pub fn cluster(mut self, input: crate::model::Cluster) -> Self { + self.cluster = Some(input); + self + } + pub fn set_cluster(mut self, input: std::option::Option) -> Self { + self.cluster = input; + self + } + /// Consumes the builder and constructs a [`DeleteClusterOutput`](crate::output::DeleteClusterOutput) + pub fn build(self) -> crate::output::DeleteClusterOutput { + crate::output::DeleteClusterOutput { + cluster: self.cluster, + } + } + } +} +impl DeleteClusterOutput { + /// Creates a new builder-style object to manufacture [`DeleteClusterOutput`](crate::output::DeleteClusterOutput) + pub fn builder() -> crate::output::delete_cluster_output::Builder { + crate::output::delete_cluster_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DeleteAddonOutput { + ///

    An Amazon EKS add-on.

    + pub addon: std::option::Option, +} +impl std::fmt::Debug for DeleteAddonOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("DeleteAddonOutput"); + formatter.field("addon", &self.addon); + formatter.finish() + } +} +/// See [`DeleteAddonOutput`](crate::output::DeleteAddonOutput) +pub mod delete_addon_output { + /// A builder for [`DeleteAddonOutput`](crate::output::DeleteAddonOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon: std::option::Option, + } + impl Builder { + ///

    An Amazon EKS add-on.

    + pub fn addon(mut self, input: crate::model::Addon) -> Self { + self.addon = Some(input); + self + } + pub fn set_addon(mut self, input: std::option::Option) -> Self { + self.addon = input; + self + } + /// Consumes the builder and constructs a [`DeleteAddonOutput`](crate::output::DeleteAddonOutput) + pub fn build(self) -> crate::output::DeleteAddonOutput { + crate::output::DeleteAddonOutput { addon: self.addon } + } + } +} +impl DeleteAddonOutput { + /// Creates a new builder-style object to manufacture [`DeleteAddonOutput`](crate::output::DeleteAddonOutput) + pub fn builder() -> crate::output::delete_addon_output::Builder { + crate::output::delete_addon_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateNodegroupOutput { + ///

    The full description of your new node group.

    + pub nodegroup: std::option::Option, +} +impl std::fmt::Debug for CreateNodegroupOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateNodegroupOutput"); + formatter.field("nodegroup", &self.nodegroup); + formatter.finish() + } +} +/// See [`CreateNodegroupOutput`](crate::output::CreateNodegroupOutput) +pub mod create_nodegroup_output { + /// A builder for [`CreateNodegroupOutput`](crate::output::CreateNodegroupOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) nodegroup: std::option::Option, + } + impl Builder { + ///

    The full description of your new node group.

    + pub fn nodegroup(mut self, input: crate::model::Nodegroup) -> Self { + self.nodegroup = Some(input); + self + } + pub fn set_nodegroup( + mut self, + input: std::option::Option, + ) -> Self { + self.nodegroup = input; + self + } + /// Consumes the builder and constructs a [`CreateNodegroupOutput`](crate::output::CreateNodegroupOutput) + pub fn build(self) -> crate::output::CreateNodegroupOutput { + crate::output::CreateNodegroupOutput { + nodegroup: self.nodegroup, + } + } + } +} +impl CreateNodegroupOutput { + /// Creates a new builder-style object to manufacture [`CreateNodegroupOutput`](crate::output::CreateNodegroupOutput) + pub fn builder() -> crate::output::create_nodegroup_output::Builder { + crate::output::create_nodegroup_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateFargateProfileOutput { + ///

    The full description of your new Fargate profile.

    + pub fargate_profile: std::option::Option, +} +impl std::fmt::Debug for CreateFargateProfileOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateFargateProfileOutput"); + formatter.field("fargate_profile", &self.fargate_profile); + formatter.finish() + } +} +/// See [`CreateFargateProfileOutput`](crate::output::CreateFargateProfileOutput) +pub mod create_fargate_profile_output { + /// A builder for [`CreateFargateProfileOutput`](crate::output::CreateFargateProfileOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) fargate_profile: std::option::Option, + } + impl Builder { + ///

    The full description of your new Fargate profile.

    + pub fn fargate_profile(mut self, input: crate::model::FargateProfile) -> Self { + self.fargate_profile = Some(input); + self + } + pub fn set_fargate_profile( + mut self, + input: std::option::Option, + ) -> Self { + self.fargate_profile = input; + self + } + /// Consumes the builder and constructs a [`CreateFargateProfileOutput`](crate::output::CreateFargateProfileOutput) + pub fn build(self) -> crate::output::CreateFargateProfileOutput { + crate::output::CreateFargateProfileOutput { + fargate_profile: self.fargate_profile, + } + } + } +} +impl CreateFargateProfileOutput { + /// Creates a new builder-style object to manufacture [`CreateFargateProfileOutput`](crate::output::CreateFargateProfileOutput) + pub fn builder() -> crate::output::create_fargate_profile_output::Builder { + crate::output::create_fargate_profile_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateClusterOutput { + ///

    The full description of your new cluster.

    + pub cluster: std::option::Option, +} +impl std::fmt::Debug for CreateClusterOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateClusterOutput"); + formatter.field("cluster", &self.cluster); + formatter.finish() + } +} +/// See [`CreateClusterOutput`](crate::output::CreateClusterOutput) +pub mod create_cluster_output { + /// A builder for [`CreateClusterOutput`](crate::output::CreateClusterOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) cluster: std::option::Option, + } + impl Builder { + ///

    The full description of your new cluster.

    + pub fn cluster(mut self, input: crate::model::Cluster) -> Self { + self.cluster = Some(input); + self + } + pub fn set_cluster(mut self, input: std::option::Option) -> Self { + self.cluster = input; + self + } + /// Consumes the builder and constructs a [`CreateClusterOutput`](crate::output::CreateClusterOutput) + pub fn build(self) -> crate::output::CreateClusterOutput { + crate::output::CreateClusterOutput { + cluster: self.cluster, + } + } + } +} +impl CreateClusterOutput { + /// Creates a new builder-style object to manufacture [`CreateClusterOutput`](crate::output::CreateClusterOutput) + pub fn builder() -> crate::output::create_cluster_output::Builder { + crate::output::create_cluster_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CreateAddonOutput { + ///

    An Amazon EKS add-on.

    + pub addon: std::option::Option, +} +impl std::fmt::Debug for CreateAddonOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("CreateAddonOutput"); + formatter.field("addon", &self.addon); + formatter.finish() + } +} +/// See [`CreateAddonOutput`](crate::output::CreateAddonOutput) +pub mod create_addon_output { + /// A builder for [`CreateAddonOutput`](crate::output::CreateAddonOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) addon: std::option::Option, + } + impl Builder { + ///

    An Amazon EKS add-on.

    + pub fn addon(mut self, input: crate::model::Addon) -> Self { + self.addon = Some(input); + self + } + pub fn set_addon(mut self, input: std::option::Option) -> Self { + self.addon = input; + self + } + /// Consumes the builder and constructs a [`CreateAddonOutput`](crate::output::CreateAddonOutput) + pub fn build(self) -> crate::output::CreateAddonOutput { + crate::output::CreateAddonOutput { addon: self.addon } + } + } +} +impl CreateAddonOutput { + /// Creates a new builder-style object to manufacture [`CreateAddonOutput`](crate::output::CreateAddonOutput) + pub fn builder() -> crate::output::create_addon_output::Builder { + crate::output::create_addon_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AssociateIdentityProviderConfigOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, + ///

    The tags for the resource.

    + pub tags: + std::option::Option>, +} +impl std::fmt::Debug for AssociateIdentityProviderConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AssociateIdentityProviderConfigOutput"); + formatter.field("update", &self.update); + formatter.field("tags", &self.tags); + formatter.finish() + } +} +/// See [`AssociateIdentityProviderConfigOutput`](crate::output::AssociateIdentityProviderConfigOutput) +pub mod associate_identity_provider_config_output { + /// A builder for [`AssociateIdentityProviderConfigOutput`](crate::output::AssociateIdentityProviderConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + pub(crate) tags: std::option::Option< + std::collections::HashMap, + >, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + pub fn tags( + mut self, + k: impl Into, + v: impl Into, + ) -> Self { + let mut hash_map = self.tags.unwrap_or_default(); + hash_map.insert(k.into(), v.into()); + self.tags = Some(hash_map); + self + } + pub fn set_tags( + mut self, + input: std::option::Option< + std::collections::HashMap, + >, + ) -> Self { + self.tags = input; + self + } + /// Consumes the builder and constructs a [`AssociateIdentityProviderConfigOutput`](crate::output::AssociateIdentityProviderConfigOutput) + pub fn build(self) -> crate::output::AssociateIdentityProviderConfigOutput { + crate::output::AssociateIdentityProviderConfigOutput { + update: self.update, + tags: self.tags, + } + } + } +} +impl AssociateIdentityProviderConfigOutput { + /// Creates a new builder-style object to manufacture [`AssociateIdentityProviderConfigOutput`](crate::output::AssociateIdentityProviderConfigOutput) + pub fn builder() -> crate::output::associate_identity_provider_config_output::Builder { + crate::output::associate_identity_provider_config_output::Builder::default() + } +} + +#[non_exhaustive] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AssociateEncryptionConfigOutput { + ///

    An object representing an asynchronous update.

    + pub update: std::option::Option, +} +impl std::fmt::Debug for AssociateEncryptionConfigOutput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let mut formatter = f.debug_struct("AssociateEncryptionConfigOutput"); + formatter.field("update", &self.update); + formatter.finish() + } +} +/// See [`AssociateEncryptionConfigOutput`](crate::output::AssociateEncryptionConfigOutput) +pub mod associate_encryption_config_output { + /// A builder for [`AssociateEncryptionConfigOutput`](crate::output::AssociateEncryptionConfigOutput) + #[non_exhaustive] + #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] + pub struct Builder { + pub(crate) update: std::option::Option, + } + impl Builder { + ///

    An object representing an asynchronous update.

    + pub fn update(mut self, input: crate::model::Update) -> Self { + self.update = Some(input); + self + } + pub fn set_update(mut self, input: std::option::Option) -> Self { + self.update = input; + self + } + /// Consumes the builder and constructs a [`AssociateEncryptionConfigOutput`](crate::output::AssociateEncryptionConfigOutput) + pub fn build(self) -> crate::output::AssociateEncryptionConfigOutput { + crate::output::AssociateEncryptionConfigOutput { + update: self.update, + } + } + } +} +impl AssociateEncryptionConfigOutput { + /// Creates a new builder-style object to manufacture [`AssociateEncryptionConfigOutput`](crate::output::AssociateEncryptionConfigOutput) + pub fn builder() -> crate::output::associate_encryption_config_output::Builder { + crate::output::associate_encryption_config_output::Builder::default() + } +} diff --git a/sdk/examples/batch-helloworld/src/main.rs b/sdk/examples/batch-helloworld/src/main.rs deleted file mode 100644 index 414dafb6fd11..000000000000 --- a/sdk/examples/batch-helloworld/src/main.rs +++ /dev/null @@ -1,26 +0,0 @@ -use batch::Region; - -#[tokio::main] -async fn main() -> Result<(), batch::Error> { - tracing_subscriber::fmt::init(); - - let conf = batch::Config::builder() - .region(Region::new("us-east-2")) - .build(); - let client = batch::Client::from_conf(conf); - let rsp = client.describe_compute_environments().send().await?; - - let compute_envs = rsp.compute_environments.unwrap_or_default(); - println!("Compute environments ({}):", compute_envs.len()); - for env in compute_envs { - let arn = env.compute_environment_arn.as_deref().unwrap_or_default(); - let name = env.compute_environment_name.as_deref().unwrap_or_default(); - - println!( - " Compute Environment Name : {}, Compute Environment ARN : {}", - name, arn - ); - } - - Ok(()) -} diff --git a/sdk/examples/batch-helloworld/Cargo.toml b/sdk/examples/batch/Cargo.toml similarity index 57% rename from sdk/examples/batch-helloworld/Cargo.toml rename to sdk/examples/batch/Cargo.toml index 036002b06afc..1b59e047391f 100644 --- a/sdk/examples/batch-helloworld/Cargo.toml +++ b/sdk/examples/batch/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "batch-helloworld" +name = "batch-code-examples" version = "0.1.0" -authors = ["Alistair McLean "] +authors = ["Alistair McLean ", "Doug Schwartz "] edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] batch = { package = "aws-sdk-batch", path = "../../batch" } +aws-types = { path = "../../aws-types" } tokio = { version = "1", features = ["full"] } -# used only to enable basic logging: -env_logger = "0.8.2" +structopt = { version = "0.3", default-features = false } tracing-subscriber = "0.2.18" \ No newline at end of file diff --git a/sdk/examples/batch/src/bin/batch-helloworld.rs b/sdk/examples/batch/src/bin/batch-helloworld.rs new file mode 100644 index 000000000000..0d10661f8bbd --- /dev/null +++ b/sdk/examples/batch/src/bin/batch-helloworld.rs @@ -0,0 +1,61 @@ +use aws_types::region::ProvideRegion; +use batch::{Client, Config, Error, Region}; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The default AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional information. + #[structopt(short, long)] + verbose: bool, +} + +/// Lists the names and the ARNs of your batch compute environments in a Region. +/// # Arguments +/// +/// * `[-d DEFAULT-REGION]` - The Region in which the client is created. +/// If not supplied, uses the value of the **AWS_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display information. +#[tokio::main] +async fn main() -> Result<(), Error> { + tracing_subscriber::fmt::init(); + let Opt { + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + println!(); + + if verbose { + println!("Batch client version: {}", batch::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!(); + } + + let conf = Config::builder().region(®ion).build(); + let client = Client::from_conf(conf); + let rsp = client.describe_compute_environments().send().await?; + + let compute_envs = rsp.compute_environments.unwrap_or_default(); + println!("Found {} compute environments:", compute_envs.len()); + for env in compute_envs { + let arn = env.compute_environment_arn.as_deref().unwrap_or_default(); + let name = env.compute_environment_name.as_deref().unwrap_or_default(); + + println!(" Name : {}", name); + println!(" ARN: {}", arn); + println!(); + } + + Ok(()) +} diff --git a/sdk/examples/cloudwatch/Cargo.toml b/sdk/examples/cloudwatch/Cargo.toml new file mode 100644 index 000000000000..bf1c99737b56 --- /dev/null +++ b/sdk/examples/cloudwatch/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "cloudwatch-code-examples" +version = "0.1.0" +authors = ["AWS Rust SDK Team ", "Russell Cohen "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +cloudwatch = { package = "aws-sdk-cloudwatch", path = "../../cloudwatch" } +tokio = { version = "1", features = ["full"] } +tracing-subscriber = { version = "0.2", features = ["fmt"] } diff --git a/sdk/examples/cloudwatch/src/bin/list-metrics.rs b/sdk/examples/cloudwatch/src/bin/list-metrics.rs new file mode 100644 index 000000000000..4a4d941624d0 --- /dev/null +++ b/sdk/examples/cloudwatch/src/bin/list-metrics.rs @@ -0,0 +1,20 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use cloudwatch::Client; + +#[tokio::main] +async fn main() -> Result<(), cloudwatch::Error> { + tracing_subscriber::fmt::init(); + + let client = Client::from_env(); + let rsp = client.list_metrics().send().await?; + let metrics = rsp.metrics.unwrap_or_default(); + println!("found {} metric(s)", metrics.len()); + for metric in metrics { + println!("metric: {:?}", metric); + } + Ok(()) +} diff --git a/sdk/examples/ecr/Cargo.toml b/sdk/examples/ecr/Cargo.toml new file mode 100644 index 000000000000..61ea70ef34fe --- /dev/null +++ b/sdk/examples/ecr/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "ecr-examples" +version = "0.1.0" +authors = ["Russell Cohen "] +edition = "2018" + +[dependencies] +aws-sdk-ecr = { path = "../../ecr" } +tokio = { version = "1", features = ["full"]} +structopt = { version = "0.3", default-features = false } +tracing-subscriber = { version = "0.2.16", features = ["fmt"] } +aws-types = { path = "../../aws-types" } diff --git a/sdk/examples/ecr/src/main.rs b/sdk/examples/ecr/src/main.rs new file mode 100644 index 000000000000..8373a79f39c7 --- /dev/null +++ b/sdk/examples/ecr/src/main.rs @@ -0,0 +1,46 @@ +use aws_sdk_ecr::{Config, Region}; +use aws_types::region; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The region + #[structopt(short, long)] + region: Option, + + #[structopt(long)] + repository: String, + + #[structopt(short, long)] + verbose: bool, +} +#[tokio::main] +async fn main() -> Result<(), aws_sdk_ecr::Error> { + let Opt { + region, + repository, + verbose, + } = Opt::from_args(); + if verbose { + tracing_subscriber::fmt::init(); + } + let provider = region::ChainProvider::first_try(region.map(Region::new)) + .or_default_provider() + .or_else(Region::new("us-east-2")); + let client = aws_sdk_ecr::Client::from_conf(Config::builder().region(provider).build()); + let rsp = client + .list_images() + .repository_name(&repository) + .send() + .await?; + let images = rsp.image_ids.unwrap_or_default(); + println!("found {} images", images.len()); + for image in images { + println!( + "image: {}:{}", + image.image_tag.unwrap(), + image.image_digest.unwrap() + ); + } + Ok(()) +} diff --git a/sdk/examples/eks/Cargo.toml b/sdk/examples/eks/Cargo.toml new file mode 100644 index 000000000000..765f0b7b08a8 --- /dev/null +++ b/sdk/examples/eks/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "eks" +version = "0.1.0" +authors = ["Russell Cohen "] +edition = "2018" + +[dependencies] +structopt = { version = "0.3", default-features = false } +tokio = { version = "1", features = ["full"]} +aws-types = { path = "../../aws-types" } +aws-sdk-eks = { path = "../../eks" } diff --git a/sdk/examples/eks/src/bin/create-cluster.rs b/sdk/examples/eks/src/bin/create-cluster.rs new file mode 100644 index 000000000000..a53ba33f010e --- /dev/null +++ b/sdk/examples/eks/src/bin/create-cluster.rs @@ -0,0 +1,63 @@ +use aws_sdk_eks::model::VpcConfigRequest; +use aws_sdk_eks::Region; +use aws_types::region; +use aws_types::region::ProvideRegion; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The region + #[structopt(short, long)] + region: Option, + + #[structopt(short, long)] + cluster_name: String, + + /// Role ARN for the cluster + /// To create a role-arn: + /// + /// 1. Follow instructions to create an IAM role: + /// https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html + /// + /// 2. Copy role arn + #[structopt(long)] + role_arn: String, + + /// subnet id + /// + /// At least two subnet ids must be specified. The subnet ids must be in two separate AZs + #[structopt(short, long)] + subnet_id: Vec, +} + +#[tokio::main] +async fn main() -> Result<(), aws_sdk_eks::Error> { + let Opt { + region, + cluster_name, + role_arn, + subnet_id, + } = Opt::from_args(); + let region = region + .map(Region::new) + .or_else(|| region::default_provider().region()) + .unwrap_or_else(|| Region::from_static("us-west-2")); + let conf = aws_sdk_eks::Config::builder().region(region).build(); + let client = aws_sdk_eks::Client::from_conf(conf); + let cluster = client + .create_cluster() + .name(&cluster_name) + .role_arn(role_arn) + .resources_vpc_config( + VpcConfigRequest::builder() + .set_subnet_ids(Some(subnet_id)) + .build(), + ) + .send() + .await?; + println!("cluster created: {:?}", cluster); + + let cluster_deleted = client.delete_cluster().name(&cluster_name).send().await?; + println!("cluster deleted: {:?}", cluster_deleted); + Ok(()) +} diff --git a/sdk/examples/lambda/src/bin/invoke-function.rs b/sdk/examples/lambda/src/bin/invoke-function.rs index b5ef0b1b8608..b704ace6c2c6 100644 --- a/sdk/examples/lambda/src/bin/invoke-function.rs +++ b/sdk/examples/lambda/src/bin/invoke-function.rs @@ -137,7 +137,7 @@ async fn main() { // // For our example, we will simply print that the function doesn't // exist and return a non-zero exit code to indicate the failure. - Err(SdkError::ServiceError { err, .. }) if err.is_resource_not_found_error() => { + Err(SdkError::ServiceError { err, .. }) if err.is_resource_not_found_exception() => { println!("This lambda function does not exist: {}", err); process::exit(1); } diff --git a/sdk/examples/medialive/Cargo.toml b/sdk/examples/medialive/Cargo.toml index 7603ad171a76..e90b8b166a51 100644 --- a/sdk/examples/medialive/Cargo.toml +++ b/sdk/examples/medialive/Cargo.toml @@ -8,6 +8,7 @@ edition = "2018" [dependencies] medialive = { package = "aws-sdk-medialive", path = "../../medialive" } +aws-types = { path = "../../aws-types" } tokio = { version = "1", features = ["full"] } -# used only to enable basic logging: -env_logger = "0.8.2" +structopt = { version = "0.3", default-features = false } +tracing-subscriber = { version = "0.2.16", features = ["fmt"] } \ No newline at end of file diff --git a/sdk/examples/medialive/src/bin/medialive-helloworld.rs b/sdk/examples/medialive/src/bin/medialive-helloworld.rs index 2e84592bf3a8..3a3b031134d6 100644 --- a/sdk/examples/medialive/src/bin/medialive-helloworld.rs +++ b/sdk/examples/medialive/src/bin/medialive-helloworld.rs @@ -3,10 +3,54 @@ * SPDX-License-Identifier: Apache-2.0. */ -/// Lists your AWS Elemental MediaLive input names and ARNs. +use aws_types::region::ProvideRegion; +use medialive::{Client, Config, Error, Region, PKG_VERSION}; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The default AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional information. + #[structopt(short, long)] + verbose: bool, +} + +/// Lists your AWS Elemental MediaLive input names and ARNs in the Region. +/// # Arguments +/// +/// * `[-d DEFAULT-REGION]` - The Region in which the client is created. +/// If not supplied, uses the value of the **AWS_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. #[tokio::main] -async fn main() -> Result<(), medialive::Error> { - let client = medialive::Client::from_env(); +async fn main() -> Result<(), Error> { + tracing_subscriber::fmt::init(); + + let Opt { + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + println!(); + + if verbose { + println!("MediaLive version: {}", PKG_VERSION); + println!("Region: {:?}", ®ion); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + let input_list = client.list_inputs().send().await?; for i in input_list.inputs.unwrap_or_default() { diff --git a/sdk/examples/mediapackage/Cargo.toml b/sdk/examples/mediapackage/Cargo.toml index 936fe058601b..3ccb5b20b27c 100644 --- a/sdk/examples/mediapackage/Cargo.toml +++ b/sdk/examples/mediapackage/Cargo.toml @@ -8,6 +8,7 @@ edition = "2018" [dependencies] mediapackage = { package = "aws-sdk-mediapackage", path = "../../mediapackage" } +aws-types = { path = "../../aws-types" } tokio = { version = "1", features = ["full"] } -# used only to enable basic logging: -env_logger = "0.8.2" \ No newline at end of file +structopt = { version = "0.3", default-features = false } +tracing-subscriber = { version = "0.2.16", features = ["fmt"] } \ No newline at end of file diff --git a/sdk/examples/mediapackage/src/bin/list-endpoints.rs b/sdk/examples/mediapackage/src/bin/list-endpoints.rs index 3f96b5d1eae8..b9fab0a70260 100644 --- a/sdk/examples/mediapackage/src/bin/list-endpoints.rs +++ b/sdk/examples/mediapackage/src/bin/list-endpoints.rs @@ -4,9 +4,54 @@ */ /// Lists your AWS Elemental MediaPackage endpoint URLs. +use aws_types::region::ProvideRegion; +use mediapackage::{Client, Config, Error, Region, PKG_VERSION}; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The default AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional information. + #[structopt(short, long)] + verbose: bool, +} + +/// Lists your AWS Elemental MediaPackage endpoint descriptions and URLs. +/// # Arguments +/// +/// * `[-d DEFAULT-REGION]` - The Region in which the client is created. +/// If not supplied, uses the value of the **AWS_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. #[tokio::main] -async fn main() -> Result<(), mediapackage::Error> { - let client = mediapackage::Client::from_env(); +async fn main() -> Result<(), Error> { + tracing_subscriber::fmt::init(); + + let Opt { + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + println!(); + + if verbose { + println!("MediaPackage version: {}", PKG_VERSION); + println!("Region: {:?}", ®ion); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + let or_endpoints = client.list_origin_endpoints().send().await?; for e in or_endpoints.origin_endpoints.unwrap_or_default() { diff --git a/sdk/examples/mediapackage/src/bin/mediapackage-helloworld.rs b/sdk/examples/mediapackage/src/bin/mediapackage-helloworld.rs index c4c38eaf4fad..2a5a76dc068a 100644 --- a/sdk/examples/mediapackage/src/bin/mediapackage-helloworld.rs +++ b/sdk/examples/mediapackage/src/bin/mediapackage-helloworld.rs @@ -3,10 +3,54 @@ * SPDX-License-Identifier: Apache-2.0. */ +use aws_types::region::ProvideRegion; +use mediapackage::{Client, Config, Error, Region, PKG_VERSION}; +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The default AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional information. + #[structopt(short, long)] + verbose: bool, +} + /// Lists your AWS Elemental MediaPackage channel ARNs and descriptions. +/// # Arguments +/// +/// * `[-d DEFAULT-REGION]` - The Region in which the client is created. +/// If not supplied, uses the value of the **AWS_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. #[tokio::main] -async fn main() -> Result<(), mediapackage::Error> { - let client = mediapackage::Client::from_env(); +async fn main() -> Result<(), Error> { + tracing_subscriber::fmt::init(); + + let Opt { + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + println!(); + + if verbose { + println!("MediaPackage version: {}", PKG_VERSION); + println!("Region: {:?}", ®ion); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + let list_channels = client.list_channels().send().await?; for c in list_channels.channels.unwrap_or_default() { diff --git a/sdk/examples/ses/Cargo.toml b/sdk/examples/ses/Cargo.toml index 551c2ee185f1..0c7ebd6fbc1b 100644 --- a/sdk/examples/ses/Cargo.toml +++ b/sdk/examples/ses/Cargo.toml @@ -1,10 +1,15 @@ [package] name = "ses-code-examples" version = "0.1.0" -authors = ["Russell Cohen "] +authors = ["Russell Cohen ", "Doug Schwartz "] edition = "2018" [dependencies] -tokio = { version = "1", features = ["full"]} -aws-sdk-sesv2 = { path = "../../sesv2" } +ses = { package = "aws-sdk-sesv2", path = "../../sesv2" } + +aws-types = { path = "../../aws-types" } + +tokio = { version = "1", features = ["full"] } + +structopt = { version = "0.3", default-features = false } tracing-subscriber = "0.2.18" diff --git a/sdk/examples/ses/src/bin/create-contact-list.rs b/sdk/examples/ses/src/bin/create-contact-list.rs new file mode 100644 index 000000000000..436c2bfbf64b --- /dev/null +++ b/sdk/examples/ses/src/bin/create-contact-list.rs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use aws_types::region::ProvideRegion; + +use ses::{Client, Config, Error, Region}; + +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The name of the contact list. + #[structopt(short, long)] + contact_list: String, + + /// The AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional runtime information + #[structopt(short, long)] + verbose: bool, +} + +/// Creates a new contact list. +/// # Arguments +/// +/// * `-c CONTACT-LIST` - The name of the contact list. +/// * `[-d DEFAULT-REGION]` - The region in which the client is created. +/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. +#[tokio::main] +async fn main() -> Result<(), Error> { + let Opt { + contact_list, + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + if verbose { + println!("SES client version: {}", ses::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!("Contact list: {}", &contact_list); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + + let resp = client + .create_contact_list() + .contact_list_name(contact_list) + .send() + .await; + + match resp { + Ok(_) => println!("Created contact list."), + Err(e) => eprintln!("Got an error attempting to create contact list: {}", e), + }; + + Ok(()) +} diff --git a/sdk/examples/ses/src/bin/create-contact.rs b/sdk/examples/ses/src/bin/create-contact.rs new file mode 100644 index 000000000000..c79009095cab --- /dev/null +++ b/sdk/examples/ses/src/bin/create-contact.rs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use aws_types::region::ProvideRegion; + +use ses::{Client, Config, Error, Region}; + +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The name of the contact list. + #[structopt(short, long)] + contact_list: String, + + /// The AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// The email address of the contact to add to the contact list. + #[structopt(short, long)] + email_address: String, + + /// Whether to display additional runtime information + #[structopt(short, long)] + verbose: bool, +} + +/// Adds a new contact to the contact list. +/// # Arguments +/// +/// * `-c CONTACT-LIST` - The name of the contact list. +/// * `-e EMAIL-ADDRESS` - The email address of the contact to add to the contact list. +/// * `[-d DEFAULT-REGION]` - The region in which the client is created. +/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. +#[tokio::main] +async fn main() -> Result<(), Error> { + let Opt { + contact_list, + default_region, + email_address, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + if verbose { + println!("SES client version: {}", ses::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!("Contact list: {}", &contact_list); + println!("Email address: {}", &email_address); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + + let new_contact = client + .create_contact() + .contact_list_name(contact_list) + .email_address(email_address) + .send() + .await; + match new_contact { + Ok(_) => println!("Created contact"), + Err(e) => eprintln!("Got error attempting to create contact: {}", e), + }; + + Ok(()) +} diff --git a/sdk/examples/ses/src/bin/email-contact-list.rs b/sdk/examples/ses/src/bin/email-contact-list.rs new file mode 100644 index 000000000000..96e151e1cd47 --- /dev/null +++ b/sdk/examples/ses/src/bin/email-contact-list.rs @@ -0,0 +1,121 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use aws_types::region::ProvideRegion; + +use ses::model::{Body, Content, Destination, EmailContent, Message}; +use ses::{Client, Config, Error, Region}; + +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The contact list containing email addresses to send the message to. + #[structopt(short, long)] + contact_list: String, + + /// The AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// The email address of the sender. + #[structopt(short, long)] + from_address: String, + + /// The message of the email. + #[structopt(short, long)] + message: String, + + /// The subject of the email. + #[structopt(short, long)] + subject: String, + /// Whether to display additional runtime information + #[structopt(short, long)] + verbose: bool, +} + +/// Sends a message to the email addresses in the contact list. +/// # Arguments +/// +/// * `-f FROM-ADDRESS` - The email address of the sender. +/// * `-m MESSAGE` - The email message that is sent. +/// * `-s SUBJECT` - The subject of the email message. +/// * `-c CONTACT-LIST` - The contact list with the email addresses of the recepients. +/// * `[-d DEFAULT-REGION]` - The region in which the client is created. +/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. +#[tokio::main] +async fn main() -> Result<(), Error> { + let Opt { + contact_list, + default_region, + from_address, + message, + subject, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + if verbose { + println!("SES client version: {}", ses::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!("From address: {}", &from_address); + println!("Contact list: {}", &contact_list); + println!("Subject: {}", &subject); + println!("Message: {}", &message); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + + // Get list of email addresses from contact list. + let resp = client + .list_contacts() + .contact_list_name(contact_list) + .send() + .await; + + let contacts = resp.unwrap().contacts.unwrap_or_default(); + + let cs: String = contacts + .into_iter() + .map(|i| i.email_address.unwrap_or_default()) + .collect(); + + let dest = Destination::builder().to_addresses(cs).build(); + let subject_content = Content::builder().data(subject).charset("UTF-8").build(); + let body_content = Content::builder().data(message).charset("UTF-8").build(); + let body = Body::builder().text(body_content).build(); + + let msg = Message::builder() + .subject(subject_content) + .body(body) + .build(); + + let email_content = EmailContent::builder().simple(msg).build(); + + match client + .send_email() + .from_email_address(from_address) + .destination(dest) + .content(email_content) + .send() + .await + { + Ok(_) => {} + Err(e) => { + println!("Got an error sending email: {}", e); + } + } + + Ok(()) +} diff --git a/sdk/examples/ses/src/bin/list-contact-lists.rs b/sdk/examples/ses/src/bin/list-contact-lists.rs new file mode 100644 index 000000000000..8f5a4627d160 --- /dev/null +++ b/sdk/examples/ses/src/bin/list-contact-lists.rs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use aws_types::region::ProvideRegion; + +use ses::{Client, Config, Error, Region}; + +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional runtime information + #[structopt(short, long)] + verbose: bool, +} + +/// Lists your contact lists (there should only be one). +/// # Arguments +/// +/// * `[-d DEFAULT-REGION]` - The region in which the client is created. +/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. +#[tokio::main] +async fn main() -> Result<(), Error> { + let Opt { + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + if verbose { + println!("SES client version: {}", ses::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + + let resp = client.list_contact_lists().send().await; + + for list in resp.unwrap().contact_lists.unwrap_or_default() { + println!("{}", list.contact_list_name.as_deref().unwrap_or_default()); + } + + Ok(()) +} diff --git a/sdk/examples/ses/src/bin/list-contacts.rs b/sdk/examples/ses/src/bin/list-contacts.rs new file mode 100644 index 000000000000..911815849f17 --- /dev/null +++ b/sdk/examples/ses/src/bin/list-contacts.rs @@ -0,0 +1,70 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use aws_types::region::ProvideRegion; + +use ses::{Client, Config, Error, Region}; + +use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +struct Opt { + /// The name of the contact list. + #[structopt(short, long)] + contact_list: String, + + /// The AWS Region. + #[structopt(short, long)] + default_region: Option, + + /// Whether to display additional runtime information + #[structopt(short, long)] + verbose: bool, +} + +/// Lists the contacts in a contact list. +/// # Arguments +/// +/// * `-c CONTACT-LIST` - The name of the contact list. +/// * `[-d DEFAULT-REGION]` - The region in which the client is created. +/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable. +/// If the environment variable is not set, defaults to **us-west-2**. +/// * `[-v]` - Whether to display additional information. +#[tokio::main] +async fn main() -> Result<(), Error> { + let Opt { + contact_list, + default_region, + verbose, + } = Opt::from_args(); + + let region = default_region + .as_ref() + .map(|region| Region::new(region.clone())) + .or_else(|| aws_types::region::default_provider().region()) + .unwrap_or_else(|| Region::new("us-west-2")); + + if verbose { + println!("SES client version: {}", ses::PKG_VERSION); + println!("Region: {:?}", ®ion); + println!("Contact list: {}", &contact_list); + println!(); + } + + let conf = Config::builder().region(region).build(); + let client = Client::from_conf(conf); + + let resp = client + .list_contacts() + .contact_list_name(contact_list) + .send() + .await; + + for contact in resp.unwrap().contacts.unwrap_or_default() { + println!("{}", contact.email_address.as_deref().unwrap_or_default()); + } + + Ok(()) +} diff --git a/sdk/examples/ses/src/bin/ses-helloworld.rs b/sdk/examples/ses/src/bin/ses-helloworld.rs deleted file mode 100644 index 11ed6b7d74ab..000000000000 --- a/sdk/examples/ses/src/bin/ses-helloworld.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#[tokio::main] -async fn main() -> Result<(), aws_sdk_sesv2::Error> { - let client = aws_sdk_sesv2::Client::from_env(); - tracing_subscriber::fmt::init(); - // Prior to running this example, you need to create a contact list - - let new_contact = client - .create_contact() - .contact_list_name("my-contacts") - .email_address("aws-sdk-rust@amazon.com") - .send() - .await; - match new_contact { - Ok(_) => println!("contact created"), - Err(e) => eprintln!("failed to create contact: {}", e), - }; - let rsp = client - .list_contacts() - .contact_list_name("my-contacts") - .send() - .await?; - println!("Contacts: "); - for contact in rsp.contacts.unwrap_or_default() { - println!(" - {:#?}", &contact) - } - - Ok(()) -} diff --git a/sdk/iam/Cargo.toml b/sdk/iam/Cargo.toml index bd1e2cc6d566..7d2124eded4a 100644 --- a/sdk/iam/Cargo.toml +++ b/sdk/iam/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-iam" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Identity and Access Management\n

    AWS Identity and Access Management (IAM) is a web service for securely controlling \n access to AWS services. With IAM, you can centrally manage users, security credentials\n such as access keys, and permissions that control which AWS resources users and \n applications can access. For more information about IAM, see AWS Identity and Access Management (IAM) and the AWS Identity and Access Management User Guide.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -26,14 +26,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/iam/src/client.rs b/sdk/iam/src/client.rs index 4d1281b35bbb..8a260e9a1d20 100644 --- a/sdk/iam/src/client.rs +++ b/sdk/iam/src/client.rs @@ -587,7 +587,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AddClientIDToOpenIDConnectProviderOutput, + crate::output::AddClientIdToOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -1270,7 +1270,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateOpenIDConnectProviderOutput, + crate::output::CreateOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -1756,7 +1756,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateSAMLProviderOutput, + crate::output::CreateSamlProviderOutput, smithy_http::result::SdkError, > where @@ -2062,7 +2062,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateVirtualMFADeviceOutput, + crate::output::CreateVirtualMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -2142,7 +2142,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeactivateMFADeviceOutput, + crate::output::DeactivateMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -2525,7 +2525,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteOpenIDConnectProviderOutput, + crate::output::DeleteOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -2812,7 +2812,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteSAMLProviderOutput, + crate::output::DeleteSamlProviderOutput, smithy_http::result::SdkError, > where @@ -3063,7 +3063,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteSSHPublicKeyOutput, + crate::output::DeleteSshPublicKeyOutput, smithy_http::result::SdkError, > where @@ -3260,7 +3260,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteVirtualMFADeviceOutput, + crate::output::DeleteVirtualMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -3467,7 +3467,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::EnableMFADeviceOutput, + crate::output::EnableMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -4297,7 +4297,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetOpenIDConnectProviderOutput, + crate::output::GetOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -4624,7 +4624,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetSAMLProviderOutput, + crate::output::GetSamlProviderOutput, smithy_http::result::SdkError, > where @@ -4924,7 +4924,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetSSHPublicKeyOutput, + crate::output::GetSshPublicKeyOutput, smithy_http::result::SdkError, > where @@ -6035,7 +6035,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListMFADevicesOutput, + crate::output::ListMfaDevicesOutput, smithy_http::result::SdkError, > where @@ -6106,7 +6106,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListMFADeviceTagsOutput, + crate::output::ListMfaDeviceTagsOutput, smithy_http::result::SdkError, > where @@ -6180,7 +6180,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListOpenIDConnectProvidersOutput, + crate::output::ListOpenIdConnectProvidersOutput, smithy_http::result::SdkError, > where @@ -6212,7 +6212,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListOpenIDConnectProviderTagsOutput, + crate::output::ListOpenIdConnectProviderTagsOutput, smithy_http::result::SdkError, > where @@ -6839,7 +6839,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListSAMLProvidersOutput, + crate::output::ListSamlProvidersOutput, smithy_http::result::SdkError, > where @@ -6871,7 +6871,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListSAMLProviderTagsOutput, + crate::output::ListSamlProviderTagsOutput, smithy_http::result::SdkError, > where @@ -7220,7 +7220,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListSSHPublicKeysOutput, + crate::output::ListSshPublicKeysOutput, smithy_http::result::SdkError, > where @@ -7510,7 +7510,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListVirtualMFADevicesOutput, + crate::output::ListVirtualMfaDevicesOutput, smithy_http::result::SdkError, > where @@ -7953,7 +7953,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RemoveClientIDFromOpenIDConnectProviderOutput, + crate::output::RemoveClientIdFromOpenIdConnectProviderOutput, smithy_http::result::SdkError< crate::error::RemoveClientIDFromOpenIDConnectProviderError, >, @@ -8187,7 +8187,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ResyncMFADeviceOutput, + crate::output::ResyncMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -9081,7 +9081,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::TagMFADeviceOutput, + crate::output::TagMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -9141,7 +9141,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::TagOpenIDConnectProviderOutput, + crate::output::TagOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -9314,7 +9314,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::TagSAMLProviderOutput, + crate::output::TagSamlProviderOutput, smithy_http::result::SdkError, > where @@ -9546,7 +9546,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UntagMFADeviceOutput, + crate::output::UntagMfaDeviceOutput, smithy_http::result::SdkError, > where @@ -9606,7 +9606,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UntagOpenIDConnectProviderOutput, + crate::output::UntagOpenIdConnectProviderOutput, smithy_http::result::SdkError, > where @@ -9781,7 +9781,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UntagSAMLProviderOutput, + crate::output::UntagSamlProviderOutput, smithy_http::result::SdkError, > where @@ -10407,7 +10407,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UpdateOpenIDConnectProviderThumbprintOutput, + crate::output::UpdateOpenIdConnectProviderThumbprintOutput, smithy_http::result::SdkError, > where @@ -10591,7 +10591,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UpdateSAMLProviderOutput, + crate::output::UpdateSamlProviderOutput, smithy_http::result::SdkError, > where @@ -10869,7 +10869,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UpdateSSHPublicKeyOutput, + crate::output::UpdateSshPublicKeyOutput, smithy_http::result::SdkError, > where @@ -11250,7 +11250,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::UploadSSHPublicKeyOutput, + crate::output::UploadSshPublicKeyOutput, smithy_http::result::SdkError, > where diff --git a/sdk/iam/src/error.rs b/sdk/iam/src/error.rs index 8b23979f22bd..620af1ae34c5 100644 --- a/sdk/iam/src/error.rs +++ b/sdk/iam/src/error.rs @@ -8,22 +8,26 @@ pub struct AddClientIDToOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddClientIDToOpenIDConnectProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddClientIDToOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => { + AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => { _inner.fmt(f) } - AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => { + AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } + AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => { _inner.fmt(f) } AddClientIDToOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -77,38 +81,44 @@ impl AddClientIDToOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputError(_) + AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededError(_) + AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureError(_) + AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for AddClientIDToOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => { + AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => { + Some(_inner) + } + AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => { + Some(_inner) + } + AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => { Some(_inner) } AddClientIDToOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -125,22 +135,24 @@ pub struct AddRoleToInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddRoleToInstanceProfileErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddRoleToInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - AddRoleToInstanceProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AddRoleToInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AddRoleToInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - AddRoleToInstanceProfileErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsException(_inner) => { + _inner.fmt(f) + } + AddRoleToInstanceProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AddRoleToInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + AddRoleToInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + AddRoleToInstanceProfileErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), AddRoleToInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -189,45 +201,45 @@ impl AddRoleToInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsError(_) + AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - AddRoleToInstanceProfileErrorKind::LimitExceededError(_) + AddRoleToInstanceProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - AddRoleToInstanceProfileErrorKind::NoSuchEntityError(_) + AddRoleToInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - AddRoleToInstanceProfileErrorKind::ServiceFailureError(_) + AddRoleToInstanceProfileErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - AddRoleToInstanceProfileErrorKind::UnmodifiableEntityError(_) + AddRoleToInstanceProfileErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for AddRoleToInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - AddRoleToInstanceProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - AddRoleToInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AddRoleToInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), - AddRoleToInstanceProfileErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + AddRoleToInstanceProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + AddRoleToInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + AddRoleToInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), + AddRoleToInstanceProfileErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), AddRoleToInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -242,18 +254,18 @@ pub struct AddUserToGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddUserToGroupErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddUserToGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddUserToGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AddUserToGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AddUserToGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + AddUserToGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AddUserToGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + AddUserToGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), AddUserToGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -302,22 +314,31 @@ impl AddUserToGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, AddUserToGroupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + AddUserToGroupErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, AddUserToGroupErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + AddUserToGroupErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, AddUserToGroupErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + AddUserToGroupErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for AddUserToGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddUserToGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - AddUserToGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AddUserToGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + AddUserToGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + AddUserToGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + AddUserToGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), AddUserToGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -332,22 +353,22 @@ pub struct AttachGroupPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AttachGroupPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AttachGroupPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AttachGroupPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - AttachGroupPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AttachGroupPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AttachGroupPolicyErrorKind::PolicyNotAttachableError(_inner) => _inner.fmt(f), - AttachGroupPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + AttachGroupPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + AttachGroupPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AttachGroupPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + AttachGroupPolicyErrorKind::PolicyNotAttachableException(_inner) => _inner.fmt(f), + AttachGroupPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), AttachGroupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -396,39 +417,45 @@ impl AttachGroupPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, AttachGroupPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + AttachGroupPolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - AttachGroupPolicyErrorKind::LimitExceededError(_) + AttachGroupPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, AttachGroupPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + AttachGroupPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_policy_not_attachable_error(&self) -> bool { + pub fn is_policy_not_attachable_exception(&self) -> bool { matches!( &self.kind, - AttachGroupPolicyErrorKind::PolicyNotAttachableError(_) + AttachGroupPolicyErrorKind::PolicyNotAttachableException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - AttachGroupPolicyErrorKind::ServiceFailureError(_) + AttachGroupPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for AttachGroupPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AttachGroupPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - AttachGroupPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - AttachGroupPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AttachGroupPolicyErrorKind::PolicyNotAttachableError(_inner) => Some(_inner), - AttachGroupPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + AttachGroupPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + AttachGroupPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + AttachGroupPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + AttachGroupPolicyErrorKind::PolicyNotAttachableException(_inner) => Some(_inner), + AttachGroupPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), AttachGroupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -443,24 +470,24 @@ pub struct AttachRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AttachRolePolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AttachRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AttachRolePolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - AttachRolePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AttachRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AttachRolePolicyErrorKind::PolicyNotAttachableError(_inner) => _inner.fmt(f), - AttachRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - AttachRolePolicyErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::PolicyNotAttachableException(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + AttachRolePolicyErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), AttachRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -509,43 +536,52 @@ impl AttachRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, AttachRolePolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + AttachRolePolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, AttachRolePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + AttachRolePolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, AttachRolePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + AttachRolePolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_policy_not_attachable_error(&self) -> bool { + pub fn is_policy_not_attachable_exception(&self) -> bool { matches!( &self.kind, - AttachRolePolicyErrorKind::PolicyNotAttachableError(_) + AttachRolePolicyErrorKind::PolicyNotAttachableException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - AttachRolePolicyErrorKind::ServiceFailureError(_) + AttachRolePolicyErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - AttachRolePolicyErrorKind::UnmodifiableEntityError(_) + AttachRolePolicyErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for AttachRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AttachRolePolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - AttachRolePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - AttachRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AttachRolePolicyErrorKind::PolicyNotAttachableError(_inner) => Some(_inner), - AttachRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), - AttachRolePolicyErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + AttachRolePolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + AttachRolePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + AttachRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + AttachRolePolicyErrorKind::PolicyNotAttachableException(_inner) => Some(_inner), + AttachRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), + AttachRolePolicyErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), AttachRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -560,22 +596,22 @@ pub struct AttachUserPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AttachUserPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AttachUserPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AttachUserPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - AttachUserPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AttachUserPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - AttachUserPolicyErrorKind::PolicyNotAttachableError(_inner) => _inner.fmt(f), - AttachUserPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + AttachUserPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + AttachUserPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AttachUserPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + AttachUserPolicyErrorKind::PolicyNotAttachableException(_inner) => _inner.fmt(f), + AttachUserPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), AttachUserPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -624,36 +660,45 @@ impl AttachUserPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, AttachUserPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + AttachUserPolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, AttachUserPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + AttachUserPolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, AttachUserPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + AttachUserPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_policy_not_attachable_error(&self) -> bool { + pub fn is_policy_not_attachable_exception(&self) -> bool { matches!( &self.kind, - AttachUserPolicyErrorKind::PolicyNotAttachableError(_) + AttachUserPolicyErrorKind::PolicyNotAttachableException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - AttachUserPolicyErrorKind::ServiceFailureError(_) + AttachUserPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for AttachUserPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AttachUserPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - AttachUserPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - AttachUserPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - AttachUserPolicyErrorKind::PolicyNotAttachableError(_inner) => Some(_inner), - AttachUserPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + AttachUserPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + AttachUserPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + AttachUserPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + AttachUserPolicyErrorKind::PolicyNotAttachableException(_inner) => Some(_inner), + AttachUserPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), AttachUserPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -668,24 +713,26 @@ pub struct ChangePasswordError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ChangePasswordErrorKind { - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - InvalidUserTypeError(crate::error::InvalidUserTypeError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PasswordPolicyViolationError(crate::error::PasswordPolicyViolationError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + InvalidUserTypeException(crate::error::InvalidUserTypeException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PasswordPolicyViolationException(crate::error::PasswordPolicyViolationException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ChangePasswordError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ChangePasswordErrorKind::EntityTemporarilyUnmodifiableError(_inner) => _inner.fmt(f), - ChangePasswordErrorKind::InvalidUserTypeError(_inner) => _inner.fmt(f), - ChangePasswordErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ChangePasswordErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ChangePasswordErrorKind::PasswordPolicyViolationError(_inner) => _inner.fmt(f), - ChangePasswordErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ChangePasswordErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { + _inner.fmt(f) + } + ChangePasswordErrorKind::InvalidUserTypeException(_inner) => _inner.fmt(f), + ChangePasswordErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ChangePasswordErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ChangePasswordErrorKind::PasswordPolicyViolationException(_inner) => _inner.fmt(f), + ChangePasswordErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ChangePasswordErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -734,40 +781,52 @@ impl ChangePasswordError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - ChangePasswordErrorKind::EntityTemporarilyUnmodifiableError(_) + ChangePasswordErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_invalid_user_type_error(&self) -> bool { - matches!(&self.kind, ChangePasswordErrorKind::InvalidUserTypeError(_)) + pub fn is_invalid_user_type_exception(&self) -> bool { + matches!( + &self.kind, + ChangePasswordErrorKind::InvalidUserTypeException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ChangePasswordErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + ChangePasswordErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ChangePasswordErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ChangePasswordErrorKind::NoSuchEntityException(_) + ) } - pub fn is_password_policy_violation_error(&self) -> bool { + pub fn is_password_policy_violation_exception(&self) -> bool { matches!( &self.kind, - ChangePasswordErrorKind::PasswordPolicyViolationError(_) + ChangePasswordErrorKind::PasswordPolicyViolationException(_) ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ChangePasswordErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ChangePasswordErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ChangePasswordError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ChangePasswordErrorKind::EntityTemporarilyUnmodifiableError(_inner) => Some(_inner), - ChangePasswordErrorKind::InvalidUserTypeError(_inner) => Some(_inner), - ChangePasswordErrorKind::LimitExceededError(_inner) => Some(_inner), - ChangePasswordErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ChangePasswordErrorKind::PasswordPolicyViolationError(_inner) => Some(_inner), - ChangePasswordErrorKind::ServiceFailureError(_inner) => Some(_inner), + ChangePasswordErrorKind::EntityTemporarilyUnmodifiableException(_inner) => Some(_inner), + ChangePasswordErrorKind::InvalidUserTypeException(_inner) => Some(_inner), + ChangePasswordErrorKind::LimitExceededException(_inner) => Some(_inner), + ChangePasswordErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ChangePasswordErrorKind::PasswordPolicyViolationException(_inner) => Some(_inner), + ChangePasswordErrorKind::ServiceFailureException(_inner) => Some(_inner), ChangePasswordErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -782,18 +841,18 @@ pub struct CreateAccessKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateAccessKeyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateAccessKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateAccessKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateAccessKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateAccessKeyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateAccessKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateAccessKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreateAccessKeyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateAccessKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -842,22 +901,31 @@ impl CreateAccessKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateAccessKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateAccessKeyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, CreateAccessKeyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + CreateAccessKeyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, CreateAccessKeyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + CreateAccessKeyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for CreateAccessKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateAccessKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateAccessKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateAccessKeyErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateAccessKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateAccessKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateAccessKeyErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateAccessKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -872,18 +940,18 @@ pub struct CreateAccountAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateAccountAliasErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateAccountAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateAccountAliasErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateAccountAliasErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateAccountAliasErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateAccountAliasErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateAccountAliasErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateAccountAliasErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateAccountAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -932,31 +1000,31 @@ impl CreateAccountAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateAccountAliasErrorKind::EntityAlreadyExistsError(_) + CreateAccountAliasErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateAccountAliasErrorKind::LimitExceededError(_) + CreateAccountAliasErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateAccountAliasErrorKind::ServiceFailureError(_) + CreateAccountAliasErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateAccountAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateAccountAliasErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateAccountAliasErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateAccountAliasErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateAccountAliasErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateAccountAliasErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateAccountAliasErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateAccountAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -971,20 +1039,20 @@ pub struct CreateGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateGroupErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateGroupErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateGroupErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreateGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1033,29 +1101,29 @@ impl CreateGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateGroupErrorKind::EntityAlreadyExistsError(_) + CreateGroupErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateGroupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateGroupErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, CreateGroupErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, CreateGroupErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, CreateGroupErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, CreateGroupErrorKind::ServiceFailureException(_)) } } impl std::error::Error for CreateGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateGroupErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateGroupErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1070,22 +1138,24 @@ pub struct CreateInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateInstanceProfileErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateInstanceProfileErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateInstanceProfileErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateInstanceProfileErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateInstanceProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateInstanceProfileErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + CreateInstanceProfileErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateInstanceProfileErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateInstanceProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1134,45 +1204,45 @@ impl CreateInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateInstanceProfileErrorKind::ConcurrentModificationError(_) + CreateInstanceProfileErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateInstanceProfileErrorKind::EntityAlreadyExistsError(_) + CreateInstanceProfileErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreateInstanceProfileErrorKind::InvalidInputError(_) + CreateInstanceProfileErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateInstanceProfileErrorKind::LimitExceededError(_) + CreateInstanceProfileErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateInstanceProfileErrorKind::ServiceFailureError(_) + CreateInstanceProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateInstanceProfileErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateInstanceProfileErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateInstanceProfileErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateInstanceProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateInstanceProfileErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateInstanceProfileErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateInstanceProfileErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateInstanceProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1187,22 +1257,22 @@ pub struct CreateLoginProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateLoginProfileErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PasswordPolicyViolationError(crate::error::PasswordPolicyViolationError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PasswordPolicyViolationException(crate::error::PasswordPolicyViolationException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateLoginProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateLoginProfileErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateLoginProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateLoginProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateLoginProfileErrorKind::PasswordPolicyViolationError(_inner) => _inner.fmt(f), - CreateLoginProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateLoginProfileErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateLoginProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateLoginProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreateLoginProfileErrorKind::PasswordPolicyViolationException(_inner) => _inner.fmt(f), + CreateLoginProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateLoginProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1251,45 +1321,45 @@ impl CreateLoginProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateLoginProfileErrorKind::EntityAlreadyExistsError(_) + CreateLoginProfileErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateLoginProfileErrorKind::LimitExceededError(_) + CreateLoginProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - CreateLoginProfileErrorKind::NoSuchEntityError(_) + CreateLoginProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_password_policy_violation_error(&self) -> bool { + pub fn is_password_policy_violation_exception(&self) -> bool { matches!( &self.kind, - CreateLoginProfileErrorKind::PasswordPolicyViolationError(_) + CreateLoginProfileErrorKind::PasswordPolicyViolationException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateLoginProfileErrorKind::ServiceFailureError(_) + CreateLoginProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateLoginProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateLoginProfileErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateLoginProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateLoginProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateLoginProfileErrorKind::PasswordPolicyViolationError(_inner) => Some(_inner), - CreateLoginProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateLoginProfileErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateLoginProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateLoginProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateLoginProfileErrorKind::PasswordPolicyViolationException(_inner) => Some(_inner), + CreateLoginProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateLoginProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1304,24 +1374,26 @@ pub struct CreateOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateOpenIDConnectProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => { + CreateOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsException(_inner) => { _inner.fmt(f) } - CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1370,47 +1442,49 @@ impl CreateOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateOpenIDConnectProviderErrorKind::ConcurrentModificationError(_) + CreateOpenIDConnectProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsError(_) + CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreateOpenIDConnectProviderErrorKind::InvalidInputError(_) + CreateOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateOpenIDConnectProviderErrorKind::LimitExceededError(_) + CreateOpenIDConnectProviderErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateOpenIDConnectProviderErrorKind::ServiceFailureError(_) + CreateOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => { + CreateOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { Some(_inner) } - CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsException(_inner) => { + Some(_inner) + } + CreateOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1425,24 +1499,24 @@ pub struct CreatePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreatePolicyErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreatePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreatePolicyErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreatePolicyErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreatePolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreatePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreatePolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - CreatePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + CreatePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreatePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1491,43 +1565,46 @@ impl CreatePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyErrorKind::ConcurrentModificationError(_) + CreatePolicyErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyErrorKind::EntityAlreadyExistsError(_) + CreatePolicyErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, CreatePolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, CreatePolicyErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreatePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreatePolicyErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyErrorKind::MalformedPolicyDocumentError(_) + CreatePolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, CreatePolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + CreatePolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for CreatePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreatePolicyErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreatePolicyErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreatePolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - CreatePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - CreatePolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - CreatePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreatePolicyErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreatePolicyErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreatePolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + CreatePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + CreatePolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + CreatePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), CreatePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1542,22 +1619,22 @@ pub struct CreatePolicyVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreatePolicyVersionErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreatePolicyVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreatePolicyVersionErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreatePolicyVersionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreatePolicyVersionErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - CreatePolicyVersionErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreatePolicyVersionErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreatePolicyVersionErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreatePolicyVersionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreatePolicyVersionErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + CreatePolicyVersionErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreatePolicyVersionErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreatePolicyVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1606,45 +1683,45 @@ impl CreatePolicyVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyVersionErrorKind::InvalidInputError(_) + CreatePolicyVersionErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyVersionErrorKind::LimitExceededError(_) + CreatePolicyVersionErrorKind::LimitExceededException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyVersionErrorKind::MalformedPolicyDocumentError(_) + CreatePolicyVersionErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyVersionErrorKind::NoSuchEntityError(_) + CreatePolicyVersionErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreatePolicyVersionErrorKind::ServiceFailureError(_) + CreatePolicyVersionErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreatePolicyVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreatePolicyVersionErrorKind::InvalidInputError(_inner) => Some(_inner), - CreatePolicyVersionErrorKind::LimitExceededError(_inner) => Some(_inner), - CreatePolicyVersionErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - CreatePolicyVersionErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreatePolicyVersionErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreatePolicyVersionErrorKind::InvalidInputException(_inner) => Some(_inner), + CreatePolicyVersionErrorKind::LimitExceededException(_inner) => Some(_inner), + CreatePolicyVersionErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + CreatePolicyVersionErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreatePolicyVersionErrorKind::ServiceFailureException(_inner) => Some(_inner), CreatePolicyVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1659,24 +1736,24 @@ pub struct CreateRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateRoleErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateRoleErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateRoleErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateRoleErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateRoleErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateRoleErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - CreateRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateRoleErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + CreateRoleErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateRoleErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateRoleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateRoleErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + CreateRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1725,40 +1802,43 @@ impl CreateRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateRoleErrorKind::ConcurrentModificationError(_) + CreateRoleErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateRoleErrorKind::EntityAlreadyExistsError(_)) + pub fn is_entity_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateRoleErrorKind::EntityAlreadyExistsException(_) + ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, CreateRoleErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, CreateRoleErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateRoleErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateRoleErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - CreateRoleErrorKind::MalformedPolicyDocumentError(_) + CreateRoleErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, CreateRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, CreateRoleErrorKind::ServiceFailureException(_)) } } impl std::error::Error for CreateRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateRoleErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateRoleErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateRoleErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateRoleErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateRoleErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - CreateRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateRoleErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateRoleErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateRoleErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateRoleErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateRoleErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + CreateRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1773,22 +1853,22 @@ pub struct CreateSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateSAMLProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateSAMLProviderErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateSAMLProviderErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateSAMLProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateSAMLProviderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + CreateSAMLProviderErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateSAMLProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1837,45 +1917,45 @@ impl CreateSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateSAMLProviderErrorKind::ConcurrentModificationError(_) + CreateSAMLProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateSAMLProviderErrorKind::EntityAlreadyExistsError(_) + CreateSAMLProviderErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreateSAMLProviderErrorKind::InvalidInputError(_) + CreateSAMLProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateSAMLProviderErrorKind::LimitExceededError(_) + CreateSAMLProviderErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateSAMLProviderErrorKind::ServiceFailureError(_) + CreateSAMLProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateSAMLProviderErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateSAMLProviderErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateSAMLProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateSAMLProviderErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateSAMLProviderErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateSAMLProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1890,20 +1970,20 @@ pub struct CreateServiceLinkedRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateServiceLinkedRoleErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateServiceLinkedRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateServiceLinkedRoleErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateServiceLinkedRoleErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateServiceLinkedRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateServiceLinkedRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateServiceLinkedRoleErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateServiceLinkedRoleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateServiceLinkedRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreateServiceLinkedRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateServiceLinkedRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1952,38 +2032,38 @@ impl CreateServiceLinkedRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreateServiceLinkedRoleErrorKind::InvalidInputError(_) + CreateServiceLinkedRoleErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateServiceLinkedRoleErrorKind::LimitExceededError(_) + CreateServiceLinkedRoleErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - CreateServiceLinkedRoleErrorKind::NoSuchEntityError(_) + CreateServiceLinkedRoleErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateServiceLinkedRoleErrorKind::ServiceFailureError(_) + CreateServiceLinkedRoleErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateServiceLinkedRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateServiceLinkedRoleErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateServiceLinkedRoleErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateServiceLinkedRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateServiceLinkedRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateServiceLinkedRoleErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateServiceLinkedRoleErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateServiceLinkedRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateServiceLinkedRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateServiceLinkedRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1998,18 +2078,22 @@ pub struct CreateServiceSpecificCredentialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateServiceSpecificCredentialErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceNotSupportedError(crate::error::ServiceNotSupportedError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceNotSupportedException(crate::error::ServiceNotSupportedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateServiceSpecificCredentialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateServiceSpecificCredentialErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedError(_inner) => { + CreateServiceSpecificCredentialErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + CreateServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } + CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedException(_inner) => { _inner.fmt(f) } CreateServiceSpecificCredentialErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2060,31 +2144,33 @@ impl CreateServiceSpecificCredentialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateServiceSpecificCredentialErrorKind::LimitExceededError(_) + CreateServiceSpecificCredentialErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - CreateServiceSpecificCredentialErrorKind::NoSuchEntityError(_) + CreateServiceSpecificCredentialErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_not_supported_error(&self) -> bool { + pub fn is_service_not_supported_exception(&self) -> bool { matches!( &self.kind, - CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedError(_) + CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedException(_) ) } } impl std::error::Error for CreateServiceSpecificCredentialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateServiceSpecificCredentialErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedError(_inner) => { + CreateServiceSpecificCredentialErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + CreateServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedException(_inner) => { Some(_inner) } CreateServiceSpecificCredentialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2101,24 +2187,24 @@ pub struct CreateUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateUserErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateUserErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateUserErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateUserErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateUserErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - CreateUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateUserErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + CreateUserErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateUserErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateUserErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + CreateUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2167,37 +2253,40 @@ impl CreateUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateUserErrorKind::ConcurrentModificationError(_) + CreateUserErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateUserErrorKind::EntityAlreadyExistsError(_)) + pub fn is_entity_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateUserErrorKind::EntityAlreadyExistsException(_) + ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, CreateUserErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, CreateUserErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateUserErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateUserErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, CreateUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, CreateUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, CreateUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, CreateUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for CreateUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateUserErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateUserErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateUserErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateUserErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - CreateUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateUserErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateUserErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateUserErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateUserErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + CreateUserErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2212,22 +2301,24 @@ pub struct CreateVirtualMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateVirtualMFADeviceErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateVirtualMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateVirtualMFADeviceErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - CreateVirtualMFADeviceErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - CreateVirtualMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateVirtualMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + CreateVirtualMFADeviceErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + CreateVirtualMFADeviceErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + CreateVirtualMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateVirtualMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), CreateVirtualMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2276,45 +2367,47 @@ impl CreateVirtualMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateVirtualMFADeviceErrorKind::ConcurrentModificationError(_) + CreateVirtualMFADeviceErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsError(_) + CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - CreateVirtualMFADeviceErrorKind::InvalidInputError(_) + CreateVirtualMFADeviceErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateVirtualMFADeviceErrorKind::LimitExceededError(_) + CreateVirtualMFADeviceErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - CreateVirtualMFADeviceErrorKind::ServiceFailureError(_) + CreateVirtualMFADeviceErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for CreateVirtualMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateVirtualMFADeviceErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - CreateVirtualMFADeviceErrorKind::InvalidInputError(_inner) => Some(_inner), - CreateVirtualMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateVirtualMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + CreateVirtualMFADeviceErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + CreateVirtualMFADeviceErrorKind::InvalidInputException(_inner) => Some(_inner), + CreateVirtualMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateVirtualMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), CreateVirtualMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2329,22 +2422,22 @@ pub struct DeactivateMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeactivateMFADeviceErrorKind { - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeactivateMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_inner) => { + DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { _inner.fmt(f) } - DeactivateMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeactivateMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeactivateMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeactivateMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeactivateMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeactivateMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeactivateMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2393,40 +2486,40 @@ impl DeactivateMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_) + DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeactivateMFADeviceErrorKind::LimitExceededError(_) + DeactivateMFADeviceErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeactivateMFADeviceErrorKind::NoSuchEntityError(_) + DeactivateMFADeviceErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeactivateMFADeviceErrorKind::ServiceFailureError(_) + DeactivateMFADeviceErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeactivateMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_inner) => { + DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { Some(_inner) } - DeactivateMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - DeactivateMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeactivateMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeactivateMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + DeactivateMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeactivateMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), DeactivateMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2441,18 +2534,18 @@ pub struct DeleteAccessKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAccessKeyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAccessKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAccessKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteAccessKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteAccessKeyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteAccessKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteAccessKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteAccessKeyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteAccessKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2501,22 +2594,31 @@ impl DeleteAccessKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteAccessKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAccessKeyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteAccessKeyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAccessKeyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeleteAccessKeyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAccessKeyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for DeleteAccessKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAccessKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteAccessKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteAccessKeyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteAccessKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteAccessKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteAccessKeyErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteAccessKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2531,18 +2633,18 @@ pub struct DeleteAccountAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAccountAliasErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAccountAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAccountAliasErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteAccountAliasErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteAccountAliasErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteAccountAliasErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteAccountAliasErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteAccountAliasErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteAccountAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2591,31 +2693,31 @@ impl DeleteAccountAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountAliasErrorKind::LimitExceededError(_) + DeleteAccountAliasErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountAliasErrorKind::NoSuchEntityError(_) + DeleteAccountAliasErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountAliasErrorKind::ServiceFailureError(_) + DeleteAccountAliasErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteAccountAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAccountAliasErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteAccountAliasErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteAccountAliasErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteAccountAliasErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteAccountAliasErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteAccountAliasErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteAccountAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2630,18 +2732,18 @@ pub struct DeleteAccountPasswordPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAccountPasswordPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAccountPasswordPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAccountPasswordPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteAccountPasswordPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteAccountPasswordPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2690,31 +2792,31 @@ impl DeleteAccountPasswordPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountPasswordPolicyErrorKind::LimitExceededError(_) + DeleteAccountPasswordPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountPasswordPolicyErrorKind::NoSuchEntityError(_) + DeleteAccountPasswordPolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteAccountPasswordPolicyErrorKind::ServiceFailureError(_) + DeleteAccountPasswordPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteAccountPasswordPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAccountPasswordPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteAccountPasswordPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteAccountPasswordPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2729,20 +2831,20 @@ pub struct DeleteGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteGroupErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteGroupErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteGroupErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2791,26 +2893,26 @@ impl DeleteGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteGroupErrorKind::DeleteConflictError(_)) + pub fn is_delete_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteGroupErrorKind::DeleteConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteGroupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteGroupErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteGroupErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, DeleteGroupErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeleteGroupErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, DeleteGroupErrorKind::ServiceFailureException(_)) } } impl std::error::Error for DeleteGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteGroupErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteGroupErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2825,18 +2927,18 @@ pub struct DeleteGroupPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteGroupPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteGroupPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteGroupPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteGroupPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteGroupPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteGroupPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteGroupPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteGroupPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteGroupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2885,28 +2987,31 @@ impl DeleteGroupPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteGroupPolicyErrorKind::LimitExceededError(_) + DeleteGroupPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteGroupPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DeleteGroupPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteGroupPolicyErrorKind::ServiceFailureError(_) + DeleteGroupPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteGroupPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteGroupPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteGroupPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteGroupPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteGroupPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteGroupPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteGroupPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteGroupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2921,20 +3026,20 @@ pub struct DeleteInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteInstanceProfileErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteInstanceProfileErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteInstanceProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteInstanceProfileErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteInstanceProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2983,38 +3088,38 @@ impl DeleteInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { + pub fn is_delete_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteInstanceProfileErrorKind::DeleteConflictError(_) + DeleteInstanceProfileErrorKind::DeleteConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteInstanceProfileErrorKind::LimitExceededError(_) + DeleteInstanceProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteInstanceProfileErrorKind::NoSuchEntityError(_) + DeleteInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteInstanceProfileErrorKind::ServiceFailureError(_) + DeleteInstanceProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteInstanceProfileErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteInstanceProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteInstanceProfileErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteInstanceProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3029,22 +3134,22 @@ pub struct DeleteLoginProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLoginProfileErrorKind { - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLoginProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_inner) => { + DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { _inner.fmt(f) } - DeleteLoginProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteLoginProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteLoginProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteLoginProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteLoginProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteLoginProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteLoginProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3093,38 +3198,40 @@ impl DeleteLoginProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_) + DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteLoginProfileErrorKind::LimitExceededError(_) + DeleteLoginProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteLoginProfileErrorKind::NoSuchEntityError(_) + DeleteLoginProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteLoginProfileErrorKind::ServiceFailureError(_) + DeleteLoginProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteLoginProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_inner) => Some(_inner), - DeleteLoginProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteLoginProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteLoginProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { + Some(_inner) + } + DeleteLoginProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteLoginProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteLoginProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteLoginProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3139,18 +3246,18 @@ pub struct DeleteOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteOpenIDConnectProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DeleteOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DeleteOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3199,31 +3306,31 @@ impl DeleteOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - DeleteOpenIDConnectProviderErrorKind::InvalidInputError(_) + DeleteOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + DeleteOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteOpenIDConnectProviderErrorKind::ServiceFailureError(_) + DeleteOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - DeleteOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + DeleteOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3238,22 +3345,22 @@ pub struct DeletePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeletePolicyErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeletePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeletePolicyErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeletePolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DeletePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeletePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeletePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeletePolicyErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeletePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DeletePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeletePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeletePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeletePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3302,30 +3409,36 @@ impl DeletePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { - matches!(&self.kind, DeletePolicyErrorKind::DeleteConflictError(_)) + pub fn is_delete_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeletePolicyErrorKind::DeleteConflictException(_) + ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, DeletePolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, DeletePolicyErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeletePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeletePolicyErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeletePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, DeletePolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeletePolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + DeletePolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for DeletePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeletePolicyErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeletePolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - DeletePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeletePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeletePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeletePolicyErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeletePolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + DeletePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeletePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeletePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DeletePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3340,22 +3453,22 @@ pub struct DeletePolicyVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeletePolicyVersionErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeletePolicyVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeletePolicyVersionErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeletePolicyVersionErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DeletePolicyVersionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeletePolicyVersionErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeletePolicyVersionErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeletePolicyVersionErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeletePolicyVersionErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DeletePolicyVersionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeletePolicyVersionErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeletePolicyVersionErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeletePolicyVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3404,45 +3517,45 @@ impl DeletePolicyVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { + pub fn is_delete_conflict_exception(&self) -> bool { matches!( &self.kind, - DeletePolicyVersionErrorKind::DeleteConflictError(_) + DeletePolicyVersionErrorKind::DeleteConflictException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - DeletePolicyVersionErrorKind::InvalidInputError(_) + DeletePolicyVersionErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeletePolicyVersionErrorKind::LimitExceededError(_) + DeletePolicyVersionErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeletePolicyVersionErrorKind::NoSuchEntityError(_) + DeletePolicyVersionErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeletePolicyVersionErrorKind::ServiceFailureError(_) + DeletePolicyVersionErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeletePolicyVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeletePolicyVersionErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeletePolicyVersionErrorKind::InvalidInputError(_inner) => Some(_inner), - DeletePolicyVersionErrorKind::LimitExceededError(_inner) => Some(_inner), - DeletePolicyVersionErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeletePolicyVersionErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeletePolicyVersionErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeletePolicyVersionErrorKind::InvalidInputException(_inner) => Some(_inner), + DeletePolicyVersionErrorKind::LimitExceededException(_inner) => Some(_inner), + DeletePolicyVersionErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeletePolicyVersionErrorKind::ServiceFailureException(_inner) => Some(_inner), DeletePolicyVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3457,24 +3570,24 @@ pub struct DeleteRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRoleErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRoleErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteRoleErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteRoleErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - DeleteRoleErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + DeleteRoleErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), DeleteRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3523,37 +3636,40 @@ impl DeleteRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteRoleErrorKind::ConcurrentModificationError(_) + DeleteRoleErrorKind::ConcurrentModificationException(_) ) } - pub fn is_delete_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteRoleErrorKind::DeleteConflictError(_)) + pub fn is_delete_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteRoleErrorKind::DeleteConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteRoleErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteRoleErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteRoleErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, DeleteRoleErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeleteRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, DeleteRoleErrorKind::ServiceFailureException(_)) } - pub fn is_unmodifiable_entity_error(&self) -> bool { - matches!(&self.kind, DeleteRoleErrorKind::UnmodifiableEntityError(_)) + pub fn is_unmodifiable_entity_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRoleErrorKind::UnmodifiableEntityException(_) + ) } } impl std::error::Error for DeleteRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRoleErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteRoleErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteRoleErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), - DeleteRoleErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + DeleteRoleErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + DeleteRoleErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteRoleErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), + DeleteRoleErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), DeleteRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3568,18 +3684,20 @@ pub struct DeleteRolePermissionsBoundaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRolePermissionsBoundaryErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRolePermissionsBoundaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteRolePermissionsBoundaryErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_inner) => { + DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteRolePermissionsBoundaryErrorKind::ServiceFailureException(_inner) => { + _inner.fmt(f) + } + DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_inner) => { _inner.fmt(f) } DeleteRolePermissionsBoundaryErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -3630,31 +3748,33 @@ impl DeleteRolePermissionsBoundaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityError(_) + DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteRolePermissionsBoundaryErrorKind::ServiceFailureError(_) + DeleteRolePermissionsBoundaryErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_) + DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for DeleteRolePermissionsBoundaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteRolePermissionsBoundaryErrorKind::ServiceFailureError(_inner) => Some(_inner), - DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteRolePermissionsBoundaryErrorKind::ServiceFailureException(_inner) => Some(_inner), + DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_inner) => { + Some(_inner) + } DeleteRolePermissionsBoundaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3669,20 +3789,20 @@ pub struct DeleteRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteRolePolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteRolePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - DeleteRolePolicyErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + DeleteRolePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + DeleteRolePolicyErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), DeleteRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3731,32 +3851,38 @@ impl DeleteRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteRolePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRolePolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteRolePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DeleteRolePolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteRolePolicyErrorKind::ServiceFailureError(_) + DeleteRolePolicyErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteRolePolicyErrorKind::UnmodifiableEntityError(_) + DeleteRolePolicyErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for DeleteRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteRolePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), - DeleteRolePolicyErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + DeleteRolePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), + DeleteRolePolicyErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), DeleteRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3771,20 +3897,20 @@ pub struct DeleteSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSAMLProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DeleteSAMLProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteSAMLProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DeleteSAMLProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteSAMLProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3833,38 +3959,38 @@ impl DeleteSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - DeleteSAMLProviderErrorKind::InvalidInputError(_) + DeleteSAMLProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteSAMLProviderErrorKind::LimitExceededError(_) + DeleteSAMLProviderErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteSAMLProviderErrorKind::NoSuchEntityError(_) + DeleteSAMLProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteSAMLProviderErrorKind::ServiceFailureError(_) + DeleteSAMLProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - DeleteSAMLProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteSAMLProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + DeleteSAMLProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteSAMLProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3879,20 +4005,20 @@ pub struct DeleteServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteServerCertificateErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteServerCertificateErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteServerCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteServerCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteServerCertificateErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteServerCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteServerCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3941,38 +4067,38 @@ impl DeleteServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { + pub fn is_delete_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteServerCertificateErrorKind::DeleteConflictError(_) + DeleteServerCertificateErrorKind::DeleteConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteServerCertificateErrorKind::LimitExceededError(_) + DeleteServerCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteServerCertificateErrorKind::NoSuchEntityError(_) + DeleteServerCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteServerCertificateErrorKind::ServiceFailureError(_) + DeleteServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteServerCertificateErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteServerCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteServerCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteServerCertificateErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteServerCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteServerCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3987,18 +4113,18 @@ pub struct DeleteServiceLinkedRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteServiceLinkedRoleErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteServiceLinkedRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteServiceLinkedRoleErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteServiceLinkedRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteServiceLinkedRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteServiceLinkedRoleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteServiceLinkedRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteServiceLinkedRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteServiceLinkedRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4047,31 +4173,31 @@ impl DeleteServiceLinkedRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteServiceLinkedRoleErrorKind::LimitExceededError(_) + DeleteServiceLinkedRoleErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteServiceLinkedRoleErrorKind::NoSuchEntityError(_) + DeleteServiceLinkedRoleErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteServiceLinkedRoleErrorKind::ServiceFailureError(_) + DeleteServiceLinkedRoleErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteServiceLinkedRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteServiceLinkedRoleErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteServiceLinkedRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteServiceLinkedRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteServiceLinkedRoleErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteServiceLinkedRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteServiceLinkedRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteServiceLinkedRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4086,14 +4212,16 @@ pub struct DeleteServiceSpecificCredentialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteServiceSpecificCredentialErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteServiceSpecificCredentialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + DeleteServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } DeleteServiceSpecificCredentialErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4142,17 +4270,17 @@ impl DeleteServiceSpecificCredentialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteServiceSpecificCredentialErrorKind::NoSuchEntityError(_) + DeleteServiceSpecificCredentialErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for DeleteServiceSpecificCredentialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => Some(_inner), + DeleteServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => Some(_inner), DeleteServiceSpecificCredentialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4167,18 +4295,18 @@ pub struct DeleteSigningCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSigningCertificateErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSigningCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSigningCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteSigningCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteSigningCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteSigningCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteSigningCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteSigningCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteSigningCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4227,31 +4355,31 @@ impl DeleteSigningCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteSigningCertificateErrorKind::LimitExceededError(_) + DeleteSigningCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteSigningCertificateErrorKind::NoSuchEntityError(_) + DeleteSigningCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteSigningCertificateErrorKind::ServiceFailureError(_) + DeleteSigningCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteSigningCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSigningCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteSigningCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteSigningCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteSigningCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteSigningCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteSigningCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteSigningCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4266,14 +4394,14 @@ pub struct DeleteSSHPublicKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSSHPublicKeyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSSHPublicKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + DeleteSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), DeleteSSHPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4322,17 +4450,17 @@ impl DeleteSSHPublicKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteSSHPublicKeyErrorKind::NoSuchEntityError(_) + DeleteSSHPublicKeyErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for DeleteSSHPublicKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), + DeleteSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), DeleteSSHPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4347,22 +4475,22 @@ pub struct DeleteUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteUserErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteUserErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteUserErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteUserErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteUserErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + DeleteUserErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteUserErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4411,33 +4539,33 @@ impl DeleteUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteUserErrorKind::ConcurrentModificationError(_) + DeleteUserErrorKind::ConcurrentModificationException(_) ) } - pub fn is_delete_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteUserErrorKind::DeleteConflictError(_)) + pub fn is_delete_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteUserErrorKind::DeleteConflictException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteUserErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteUserErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, DeleteUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeleteUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, DeleteUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for DeleteUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteUserErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteUserErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteUserErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteUserErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + DeleteUserErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteUserErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteUserErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4452,16 +4580,18 @@ pub struct DeleteUserPermissionsBoundaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteUserPermissionsBoundaryErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteUserPermissionsBoundaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteUserPermissionsBoundaryErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteUserPermissionsBoundaryErrorKind::ServiceFailureException(_inner) => { + _inner.fmt(f) + } DeleteUserPermissionsBoundaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4510,24 +4640,24 @@ impl DeleteUserPermissionsBoundaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityError(_) + DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteUserPermissionsBoundaryErrorKind::ServiceFailureError(_) + DeleteUserPermissionsBoundaryErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteUserPermissionsBoundaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteUserPermissionsBoundaryErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteUserPermissionsBoundaryErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteUserPermissionsBoundaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4542,18 +4672,18 @@ pub struct DeleteUserPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteUserPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteUserPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteUserPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteUserPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteUserPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteUserPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteUserPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteUserPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteUserPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4602,25 +4732,31 @@ impl DeleteUserPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteUserPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUserPolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DeleteUserPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DeleteUserPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteUserPolicyErrorKind::ServiceFailureError(_) + DeleteUserPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteUserPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteUserPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteUserPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteUserPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteUserPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteUserPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteUserPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteUserPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4635,20 +4771,20 @@ pub struct DeleteVirtualMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteVirtualMFADeviceErrorKind { - DeleteConflictError(crate::error::DeleteConflictError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DeleteConflictException(crate::error::DeleteConflictException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteVirtualMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteVirtualMFADeviceErrorKind::DeleteConflictError(_inner) => _inner.fmt(f), - DeleteVirtualMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteVirtualMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DeleteVirtualMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteVirtualMFADeviceErrorKind::DeleteConflictException(_inner) => _inner.fmt(f), + DeleteVirtualMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteVirtualMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DeleteVirtualMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteVirtualMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4697,38 +4833,38 @@ impl DeleteVirtualMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_delete_conflict_error(&self) -> bool { + pub fn is_delete_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteVirtualMFADeviceErrorKind::DeleteConflictError(_) + DeleteVirtualMFADeviceErrorKind::DeleteConflictException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeleteVirtualMFADeviceErrorKind::LimitExceededError(_) + DeleteVirtualMFADeviceErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteVirtualMFADeviceErrorKind::NoSuchEntityError(_) + DeleteVirtualMFADeviceErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DeleteVirtualMFADeviceErrorKind::ServiceFailureError(_) + DeleteVirtualMFADeviceErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DeleteVirtualMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteVirtualMFADeviceErrorKind::DeleteConflictError(_inner) => Some(_inner), - DeleteVirtualMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteVirtualMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DeleteVirtualMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteVirtualMFADeviceErrorKind::DeleteConflictException(_inner) => Some(_inner), + DeleteVirtualMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteVirtualMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DeleteVirtualMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteVirtualMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4743,20 +4879,20 @@ pub struct DetachGroupPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DetachGroupPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DetachGroupPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DetachGroupPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DetachGroupPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DetachGroupPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DetachGroupPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DetachGroupPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DetachGroupPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DetachGroupPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DetachGroupPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DetachGroupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4805,32 +4941,38 @@ impl DetachGroupPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, DetachGroupPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + DetachGroupPolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DetachGroupPolicyErrorKind::LimitExceededError(_) + DetachGroupPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DetachGroupPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DetachGroupPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DetachGroupPolicyErrorKind::ServiceFailureError(_) + DetachGroupPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DetachGroupPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DetachGroupPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - DetachGroupPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DetachGroupPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DetachGroupPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DetachGroupPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + DetachGroupPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DetachGroupPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DetachGroupPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DetachGroupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4845,22 +4987,22 @@ pub struct DetachRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DetachRolePolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DetachRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DetachRolePolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DetachRolePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DetachRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DetachRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - DetachRolePolicyErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + DetachRolePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DetachRolePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DetachRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DetachRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + DetachRolePolicyErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), DetachRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4909,36 +5051,45 @@ impl DetachRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, DetachRolePolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + DetachRolePolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DetachRolePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DetachRolePolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DetachRolePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DetachRolePolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DetachRolePolicyErrorKind::ServiceFailureError(_) + DetachRolePolicyErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - DetachRolePolicyErrorKind::UnmodifiableEntityError(_) + DetachRolePolicyErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for DetachRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DetachRolePolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - DetachRolePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DetachRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DetachRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), - DetachRolePolicyErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + DetachRolePolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + DetachRolePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DetachRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DetachRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), + DetachRolePolicyErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), DetachRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4953,20 +5104,20 @@ pub struct DetachUserPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DetachUserPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DetachUserPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DetachUserPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - DetachUserPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DetachUserPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - DetachUserPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DetachUserPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + DetachUserPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DetachUserPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + DetachUserPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DetachUserPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5015,29 +5166,38 @@ impl DetachUserPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, DetachUserPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + DetachUserPolicyErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DetachUserPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DetachUserPolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, DetachUserPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + DetachUserPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - DetachUserPolicyErrorKind::ServiceFailureError(_) + DetachUserPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for DetachUserPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DetachUserPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - DetachUserPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - DetachUserPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - DetachUserPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + DetachUserPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + DetachUserPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + DetachUserPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + DetachUserPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), DetachUserPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5052,24 +5212,26 @@ pub struct EnableMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum EnableMFADeviceErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - InvalidAuthenticationCodeError(crate::error::InvalidAuthenticationCodeError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + InvalidAuthenticationCodeException(crate::error::InvalidAuthenticationCodeException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for EnableMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - EnableMFADeviceErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_inner) => _inner.fmt(f), - EnableMFADeviceErrorKind::InvalidAuthenticationCodeError(_inner) => _inner.fmt(f), - EnableMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - EnableMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - EnableMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + EnableMFADeviceErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { + _inner.fmt(f) + } + EnableMFADeviceErrorKind::InvalidAuthenticationCodeException(_inner) => _inner.fmt(f), + EnableMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + EnableMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + EnableMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), EnableMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5118,43 +5280,54 @@ impl EnableMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - EnableMFADeviceErrorKind::EntityAlreadyExistsError(_) + EnableMFADeviceErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_) + EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_invalid_authentication_code_error(&self) -> bool { + pub fn is_invalid_authentication_code_exception(&self) -> bool { matches!( &self.kind, - EnableMFADeviceErrorKind::InvalidAuthenticationCodeError(_) + EnableMFADeviceErrorKind::InvalidAuthenticationCodeException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, EnableMFADeviceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + EnableMFADeviceErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, EnableMFADeviceErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + EnableMFADeviceErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, EnableMFADeviceErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + EnableMFADeviceErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for EnableMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - EnableMFADeviceErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableError(_inner) => Some(_inner), - EnableMFADeviceErrorKind::InvalidAuthenticationCodeError(_inner) => Some(_inner), - EnableMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - EnableMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - EnableMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + EnableMFADeviceErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { + Some(_inner) + } + EnableMFADeviceErrorKind::InvalidAuthenticationCodeException(_inner) => Some(_inner), + EnableMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + EnableMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + EnableMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), EnableMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5169,16 +5342,16 @@ pub struct GenerateCredentialReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateCredentialReportErrorKind { - LimitExceededError(crate::error::LimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateCredentialReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateCredentialReportErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GenerateCredentialReportErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GenerateCredentialReportErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + GenerateCredentialReportErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GenerateCredentialReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5227,24 +5400,24 @@ impl GenerateCredentialReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - GenerateCredentialReportErrorKind::LimitExceededError(_) + GenerateCredentialReportErrorKind::LimitExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GenerateCredentialReportErrorKind::ServiceFailureError(_) + GenerateCredentialReportErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GenerateCredentialReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateCredentialReportErrorKind::LimitExceededError(_inner) => Some(_inner), - GenerateCredentialReportErrorKind::ServiceFailureError(_inner) => Some(_inner), + GenerateCredentialReportErrorKind::LimitExceededException(_inner) => Some(_inner), + GenerateCredentialReportErrorKind::ServiceFailureException(_inner) => Some(_inner), GenerateCredentialReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5259,14 +5432,14 @@ pub struct GenerateOrganizationsAccessReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateOrganizationsAccessReportErrorKind { - ReportGenerationLimitExceededError(crate::error::ReportGenerationLimitExceededError), + ReportGenerationLimitExceededException(crate::error::ReportGenerationLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateOrganizationsAccessReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededError( + GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededException( _inner, ) => _inner.fmt(f), GenerateOrganizationsAccessReportErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5320,17 +5493,17 @@ impl GenerateOrganizationsAccessReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_report_generation_limit_exceeded_error(&self) -> bool { + pub fn is_report_generation_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededError(_) + GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededException(_) ) } } impl std::error::Error for GenerateOrganizationsAccessReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededError( + GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededException( _inner, ) => Some(_inner), GenerateOrganizationsAccessReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -5347,16 +5520,20 @@ pub struct GenerateServiceLastAccessedDetailsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateServiceLastAccessedDetailsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateServiceLastAccessedDetailsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateServiceLastAccessedDetailsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + GenerateServiceLastAccessedDetailsErrorKind::InvalidInputException(_inner) => { + _inner.fmt(f) + } + GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } GenerateServiceLastAccessedDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5408,24 +5585,28 @@ impl GenerateServiceLastAccessedDetailsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GenerateServiceLastAccessedDetailsErrorKind::InvalidInputError(_) + GenerateServiceLastAccessedDetailsErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_) + GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GenerateServiceLastAccessedDetailsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateServiceLastAccessedDetailsErrorKind::InvalidInputError(_inner) => Some(_inner), - GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_inner) => Some(_inner), + GenerateServiceLastAccessedDetailsErrorKind::InvalidInputException(_inner) => { + Some(_inner) + } + GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_inner) => { + Some(_inner) + } GenerateServiceLastAccessedDetailsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5440,14 +5621,14 @@ pub struct GetAccessKeyLastUsedError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccessKeyLastUsedErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccessKeyLastUsedError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccessKeyLastUsedErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + GetAccessKeyLastUsedErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), GetAccessKeyLastUsedErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5496,17 +5677,17 @@ impl GetAccessKeyLastUsedError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetAccessKeyLastUsedErrorKind::NoSuchEntityError(_) + GetAccessKeyLastUsedErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GetAccessKeyLastUsedError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccessKeyLastUsedErrorKind::NoSuchEntityError(_inner) => Some(_inner), + GetAccessKeyLastUsedErrorKind::NoSuchEntityException(_inner) => Some(_inner), GetAccessKeyLastUsedErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5521,14 +5702,16 @@ pub struct GetAccountAuthorizationDetailsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountAuthorizationDetailsErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountAuthorizationDetailsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountAuthorizationDetailsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetAccountAuthorizationDetailsErrorKind::ServiceFailureException(_inner) => { + _inner.fmt(f) + } GetAccountAuthorizationDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5577,17 +5760,19 @@ impl GetAccountAuthorizationDetailsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetAccountAuthorizationDetailsErrorKind::ServiceFailureError(_) + GetAccountAuthorizationDetailsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetAccountAuthorizationDetailsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountAuthorizationDetailsErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetAccountAuthorizationDetailsErrorKind::ServiceFailureException(_inner) => { + Some(_inner) + } GetAccountAuthorizationDetailsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5602,16 +5787,16 @@ pub struct GetAccountPasswordPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountPasswordPolicyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountPasswordPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetAccountPasswordPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5660,24 +5845,24 @@ impl GetAccountPasswordPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetAccountPasswordPolicyErrorKind::NoSuchEntityError(_) + GetAccountPasswordPolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetAccountPasswordPolicyErrorKind::ServiceFailureError(_) + GetAccountPasswordPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetAccountPasswordPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), GetAccountPasswordPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5692,14 +5877,14 @@ pub struct GetAccountSummaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountSummaryErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountSummaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountSummaryErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetAccountSummaryErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetAccountSummaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5748,17 +5933,17 @@ impl GetAccountSummaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetAccountSummaryErrorKind::ServiceFailureError(_) + GetAccountSummaryErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetAccountSummaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountSummaryErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetAccountSummaryErrorKind::ServiceFailureException(_inner) => Some(_inner), GetAccountSummaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5773,14 +5958,14 @@ pub struct GetContextKeysForCustomPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetContextKeysForCustomPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), + InvalidInputException(crate::error::InvalidInputException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetContextKeysForCustomPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetContextKeysForCustomPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), + GetContextKeysForCustomPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), GetContextKeysForCustomPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5829,17 +6014,17 @@ impl GetContextKeysForCustomPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetContextKeysForCustomPolicyErrorKind::InvalidInputError(_) + GetContextKeysForCustomPolicyErrorKind::InvalidInputException(_) ) } } impl std::error::Error for GetContextKeysForCustomPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetContextKeysForCustomPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), + GetContextKeysForCustomPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), GetContextKeysForCustomPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5854,16 +6039,20 @@ pub struct GetContextKeysForPrincipalPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetContextKeysForPrincipalPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetContextKeysForPrincipalPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetContextKeysForPrincipalPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + GetContextKeysForPrincipalPolicyErrorKind::InvalidInputException(_inner) => { + _inner.fmt(f) + } + GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } GetContextKeysForPrincipalPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5912,24 +6101,28 @@ impl GetContextKeysForPrincipalPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetContextKeysForPrincipalPolicyErrorKind::InvalidInputError(_) + GetContextKeysForPrincipalPolicyErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityError(_) + GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GetContextKeysForPrincipalPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetContextKeysForPrincipalPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), + GetContextKeysForPrincipalPolicyErrorKind::InvalidInputException(_inner) => { + Some(_inner) + } + GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityException(_inner) => { + Some(_inner) + } GetContextKeysForPrincipalPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5944,20 +6137,24 @@ pub struct GetCredentialReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetCredentialReportErrorKind { - CredentialReportExpiredError(crate::error::CredentialReportExpiredError), - CredentialReportNotPresentError(crate::error::CredentialReportNotPresentError), - CredentialReportNotReadyError(crate::error::CredentialReportNotReadyError), - ServiceFailureError(crate::error::ServiceFailureError), + CredentialReportExpiredException(crate::error::CredentialReportExpiredException), + CredentialReportNotPresentException(crate::error::CredentialReportNotPresentException), + CredentialReportNotReadyException(crate::error::CredentialReportNotReadyException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetCredentialReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetCredentialReportErrorKind::CredentialReportExpiredError(_inner) => _inner.fmt(f), - GetCredentialReportErrorKind::CredentialReportNotPresentError(_inner) => _inner.fmt(f), - GetCredentialReportErrorKind::CredentialReportNotReadyError(_inner) => _inner.fmt(f), - GetCredentialReportErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetCredentialReportErrorKind::CredentialReportExpiredException(_inner) => _inner.fmt(f), + GetCredentialReportErrorKind::CredentialReportNotPresentException(_inner) => { + _inner.fmt(f) + } + GetCredentialReportErrorKind::CredentialReportNotReadyException(_inner) => { + _inner.fmt(f) + } + GetCredentialReportErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetCredentialReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6006,38 +6203,40 @@ impl GetCredentialReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_credential_report_expired_error(&self) -> bool { + pub fn is_credential_report_expired_exception(&self) -> bool { matches!( &self.kind, - GetCredentialReportErrorKind::CredentialReportExpiredError(_) + GetCredentialReportErrorKind::CredentialReportExpiredException(_) ) } - pub fn is_credential_report_not_present_error(&self) -> bool { + pub fn is_credential_report_not_present_exception(&self) -> bool { matches!( &self.kind, - GetCredentialReportErrorKind::CredentialReportNotPresentError(_) + GetCredentialReportErrorKind::CredentialReportNotPresentException(_) ) } - pub fn is_credential_report_not_ready_error(&self) -> bool { + pub fn is_credential_report_not_ready_exception(&self) -> bool { matches!( &self.kind, - GetCredentialReportErrorKind::CredentialReportNotReadyError(_) + GetCredentialReportErrorKind::CredentialReportNotReadyException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetCredentialReportErrorKind::ServiceFailureError(_) + GetCredentialReportErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetCredentialReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetCredentialReportErrorKind::CredentialReportExpiredError(_inner) => Some(_inner), - GetCredentialReportErrorKind::CredentialReportNotPresentError(_inner) => Some(_inner), - GetCredentialReportErrorKind::CredentialReportNotReadyError(_inner) => Some(_inner), - GetCredentialReportErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetCredentialReportErrorKind::CredentialReportExpiredException(_inner) => Some(_inner), + GetCredentialReportErrorKind::CredentialReportNotPresentException(_inner) => { + Some(_inner) + } + GetCredentialReportErrorKind::CredentialReportNotReadyException(_inner) => Some(_inner), + GetCredentialReportErrorKind::ServiceFailureException(_inner) => Some(_inner), GetCredentialReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6052,16 +6251,16 @@ pub struct GetGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetGroupErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6110,18 +6309,18 @@ impl GetGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetGroupErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetGroupErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetGroupErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, GetGroupErrorKind::ServiceFailureException(_)) } } impl std::error::Error for GetGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), GetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6136,16 +6335,16 @@ pub struct GetGroupPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetGroupPolicyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetGroupPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetGroupPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetGroupPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetGroupPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetGroupPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetGroupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6194,18 +6393,24 @@ impl GetGroupPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetGroupPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + GetGroupPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetGroupPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + GetGroupPolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for GetGroupPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetGroupPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetGroupPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetGroupPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetGroupPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), GetGroupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6220,16 +6425,16 @@ pub struct GetInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetInstanceProfileErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6278,24 +6483,24 @@ impl GetInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetInstanceProfileErrorKind::NoSuchEntityError(_) + GetInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetInstanceProfileErrorKind::ServiceFailureError(_) + GetInstanceProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), GetInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6310,16 +6515,16 @@ pub struct GetLoginProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLoginProfileErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLoginProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLoginProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetLoginProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetLoginProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetLoginProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetLoginProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6368,18 +6573,24 @@ impl GetLoginProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetLoginProfileErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + GetLoginProfileErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetLoginProfileErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + GetLoginProfileErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for GetLoginProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLoginProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetLoginProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetLoginProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetLoginProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), GetLoginProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6394,18 +6605,18 @@ pub struct GetOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetOpenIDConnectProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + GetOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6454,31 +6665,31 @@ impl GetOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetOpenIDConnectProviderErrorKind::InvalidInputError(_) + GetOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + GetOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetOpenIDConnectProviderErrorKind::ServiceFailureError(_) + GetOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - GetOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + GetOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), GetOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6493,14 +6704,14 @@ pub struct GetOrganizationsAccessReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetOrganizationsAccessReportErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetOrganizationsAccessReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetOrganizationsAccessReportErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + GetOrganizationsAccessReportErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), GetOrganizationsAccessReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6549,17 +6760,17 @@ impl GetOrganizationsAccessReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetOrganizationsAccessReportErrorKind::NoSuchEntityError(_) + GetOrganizationsAccessReportErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GetOrganizationsAccessReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetOrganizationsAccessReportErrorKind::NoSuchEntityError(_inner) => Some(_inner), + GetOrganizationsAccessReportErrorKind::NoSuchEntityException(_inner) => Some(_inner), GetOrganizationsAccessReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6574,18 +6785,18 @@ pub struct GetPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + GetPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6634,22 +6845,22 @@ impl GetPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::InvalidInputException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::ServiceFailureException(_)) } } impl std::error::Error for GetPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - GetPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + GetPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), GetPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6664,18 +6875,18 @@ pub struct GetPolicyVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPolicyVersionErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetPolicyVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPolicyVersionErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetPolicyVersionErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetPolicyVersionErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetPolicyVersionErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + GetPolicyVersionErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetPolicyVersionErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetPolicyVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6724,25 +6935,31 @@ impl GetPolicyVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, GetPolicyVersionErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + GetPolicyVersionErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetPolicyVersionErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + GetPolicyVersionErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetPolicyVersionErrorKind::ServiceFailureError(_) + GetPolicyVersionErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetPolicyVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPolicyVersionErrorKind::InvalidInputError(_inner) => Some(_inner), - GetPolicyVersionErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetPolicyVersionErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetPolicyVersionErrorKind::InvalidInputException(_inner) => Some(_inner), + GetPolicyVersionErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetPolicyVersionErrorKind::ServiceFailureException(_inner) => Some(_inner), GetPolicyVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6757,16 +6974,16 @@ pub struct GetRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRoleErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6815,18 +7032,18 @@ impl GetRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetRoleErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetRoleErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, GetRoleErrorKind::ServiceFailureException(_)) } } impl std::error::Error for GetRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), GetRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6841,16 +7058,16 @@ pub struct GetRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRolePolicyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6899,18 +7116,21 @@ impl GetRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetRolePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetRolePolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetRolePolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + GetRolePolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for GetRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), GetRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6925,18 +7145,18 @@ pub struct GetSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSAMLProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetSAMLProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + GetSAMLProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6985,22 +7205,31 @@ impl GetSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, GetSAMLProviderErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + GetSAMLProviderErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetSAMLProviderErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + GetSAMLProviderErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetSAMLProviderErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + GetSAMLProviderErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for GetSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - GetSAMLProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + GetSAMLProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), GetSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7015,16 +7244,16 @@ pub struct GetServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetServerCertificateErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetServerCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetServerCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7073,24 +7302,24 @@ impl GetServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetServerCertificateErrorKind::NoSuchEntityError(_) + GetServerCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetServerCertificateErrorKind::ServiceFailureError(_) + GetServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetServerCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetServerCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), GetServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7105,16 +7334,16 @@ pub struct GetServiceLastAccessedDetailsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetServiceLastAccessedDetailsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetServiceLastAccessedDetailsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetServiceLastAccessedDetailsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + GetServiceLastAccessedDetailsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + GetServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), GetServiceLastAccessedDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7163,24 +7392,24 @@ impl GetServiceLastAccessedDetailsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetServiceLastAccessedDetailsErrorKind::InvalidInputError(_) + GetServiceLastAccessedDetailsErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_) + GetServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GetServiceLastAccessedDetailsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetServiceLastAccessedDetailsErrorKind::InvalidInputError(_inner) => Some(_inner), - GetServiceLastAccessedDetailsErrorKind::NoSuchEntityError(_inner) => Some(_inner), + GetServiceLastAccessedDetailsErrorKind::InvalidInputException(_inner) => Some(_inner), + GetServiceLastAccessedDetailsErrorKind::NoSuchEntityException(_inner) => Some(_inner), GetServiceLastAccessedDetailsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7195,18 +7424,18 @@ pub struct GetServiceLastAccessedDetailsWithEntitiesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetServiceLastAccessedDetailsWithEntitiesErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetServiceLastAccessedDetailsWithEntitiesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputError(_inner) => { + GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputException(_inner) => { _inner.fmt(f) } - GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityError(_inner) => { + GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityException(_inner) => { _inner.fmt(f) } GetServiceLastAccessedDetailsWithEntitiesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -7260,26 +7489,26 @@ impl GetServiceLastAccessedDetailsWithEntitiesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputError(_) + GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityError(_) + GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for GetServiceLastAccessedDetailsWithEntitiesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputError(_inner) => { + GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputException(_inner) => { Some(_inner) } - GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityError(_inner) => { + GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityException(_inner) => { Some(_inner) } GetServiceLastAccessedDetailsWithEntitiesErrorKind::Unhandled(_inner) => { @@ -7298,18 +7527,22 @@ pub struct GetServiceLinkedRoleDeletionStatusError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetServiceLinkedRoleDeletionStatusErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetServiceLinkedRoleDeletionStatusError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureError(_inner) => { + GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputException(_inner) => { + _inner.fmt(f) + } + GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } + GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureException(_inner) => { _inner.fmt(f) } GetServiceLinkedRoleDeletionStatusErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -7363,31 +7596,35 @@ impl GetServiceLinkedRoleDeletionStatusError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputError(_) + GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityError(_) + GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureError(_) + GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for GetServiceLinkedRoleDeletionStatusError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputError(_inner) => Some(_inner), - GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureError(_inner) => { + GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputException(_inner) => { + Some(_inner) + } + GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityException(_inner) => { + Some(_inner) + } + GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureException(_inner) => { Some(_inner) } GetServiceLinkedRoleDeletionStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -7404,16 +7641,18 @@ pub struct GetSSHPublicKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSSHPublicKeyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - UnrecognizedPublicKeyEncodingError(crate::error::UnrecognizedPublicKeyEncodingError), + NoSuchEntityException(crate::error::NoSuchEntityException), + UnrecognizedPublicKeyEncodingException(crate::error::UnrecognizedPublicKeyEncodingException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSSHPublicKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_inner) => _inner.fmt(f), + GetSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_inner) => { + _inner.fmt(f) + } GetSSHPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7462,21 +7701,26 @@ impl GetSSHPublicKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetSSHPublicKeyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + GetSSHPublicKeyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_unrecognized_public_key_encoding_error(&self) -> bool { + pub fn is_unrecognized_public_key_encoding_exception(&self) -> bool { matches!( &self.kind, - GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_) + GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_) ) } } impl std::error::Error for GetSSHPublicKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_inner) => Some(_inner), + GetSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_inner) => { + Some(_inner) + } GetSSHPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7491,16 +7735,16 @@ pub struct GetUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUserErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7549,18 +7793,18 @@ impl GetUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, GetUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for GetUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetUserErrorKind::ServiceFailureException(_inner) => Some(_inner), GetUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7575,16 +7819,16 @@ pub struct GetUserPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetUserPolicyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetUserPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetUserPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - GetUserPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetUserPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + GetUserPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetUserPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7633,18 +7877,21 @@ impl GetUserPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, GetUserPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, GetUserPolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetUserPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + GetUserPolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for GetUserPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetUserPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - GetUserPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetUserPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + GetUserPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), GetUserPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7659,16 +7906,16 @@ pub struct ListAccessKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAccessKeysErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAccessKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAccessKeysErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListAccessKeysErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListAccessKeysErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListAccessKeysErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListAccessKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7717,18 +7964,24 @@ impl ListAccessKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListAccessKeysErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListAccessKeysErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListAccessKeysErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListAccessKeysErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListAccessKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAccessKeysErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListAccessKeysErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListAccessKeysErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListAccessKeysErrorKind::ServiceFailureException(_inner) => Some(_inner), ListAccessKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7743,14 +7996,14 @@ pub struct ListAccountAliasesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAccountAliasesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAccountAliasesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAccountAliasesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListAccountAliasesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListAccountAliasesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7799,17 +8052,17 @@ impl ListAccountAliasesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListAccountAliasesErrorKind::ServiceFailureError(_) + ListAccountAliasesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListAccountAliasesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAccountAliasesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListAccountAliasesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListAccountAliasesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7824,18 +8077,18 @@ pub struct ListAttachedGroupPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAttachedGroupPoliciesErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAttachedGroupPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAttachedGroupPoliciesErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListAttachedGroupPoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListAttachedGroupPoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListAttachedGroupPoliciesErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListAttachedGroupPoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListAttachedGroupPoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListAttachedGroupPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7884,31 +8137,31 @@ impl ListAttachedGroupPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListAttachedGroupPoliciesErrorKind::InvalidInputError(_) + ListAttachedGroupPoliciesErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListAttachedGroupPoliciesErrorKind::NoSuchEntityError(_) + ListAttachedGroupPoliciesErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListAttachedGroupPoliciesErrorKind::ServiceFailureError(_) + ListAttachedGroupPoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListAttachedGroupPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAttachedGroupPoliciesErrorKind::InvalidInputError(_inner) => Some(_inner), - ListAttachedGroupPoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListAttachedGroupPoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListAttachedGroupPoliciesErrorKind::InvalidInputException(_inner) => Some(_inner), + ListAttachedGroupPoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListAttachedGroupPoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListAttachedGroupPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7923,18 +8176,18 @@ pub struct ListAttachedRolePoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAttachedRolePoliciesErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAttachedRolePoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAttachedRolePoliciesErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListAttachedRolePoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListAttachedRolePoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListAttachedRolePoliciesErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListAttachedRolePoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListAttachedRolePoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListAttachedRolePoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7983,31 +8236,31 @@ impl ListAttachedRolePoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListAttachedRolePoliciesErrorKind::InvalidInputError(_) + ListAttachedRolePoliciesErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListAttachedRolePoliciesErrorKind::NoSuchEntityError(_) + ListAttachedRolePoliciesErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListAttachedRolePoliciesErrorKind::ServiceFailureError(_) + ListAttachedRolePoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListAttachedRolePoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAttachedRolePoliciesErrorKind::InvalidInputError(_inner) => Some(_inner), - ListAttachedRolePoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListAttachedRolePoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListAttachedRolePoliciesErrorKind::InvalidInputException(_inner) => Some(_inner), + ListAttachedRolePoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListAttachedRolePoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListAttachedRolePoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8022,18 +8275,18 @@ pub struct ListAttachedUserPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAttachedUserPoliciesErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAttachedUserPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAttachedUserPoliciesErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListAttachedUserPoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListAttachedUserPoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListAttachedUserPoliciesErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListAttachedUserPoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListAttachedUserPoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListAttachedUserPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8082,31 +8335,31 @@ impl ListAttachedUserPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListAttachedUserPoliciesErrorKind::InvalidInputError(_) + ListAttachedUserPoliciesErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListAttachedUserPoliciesErrorKind::NoSuchEntityError(_) + ListAttachedUserPoliciesErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListAttachedUserPoliciesErrorKind::ServiceFailureError(_) + ListAttachedUserPoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListAttachedUserPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAttachedUserPoliciesErrorKind::InvalidInputError(_inner) => Some(_inner), - ListAttachedUserPoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListAttachedUserPoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListAttachedUserPoliciesErrorKind::InvalidInputException(_inner) => Some(_inner), + ListAttachedUserPoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListAttachedUserPoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListAttachedUserPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8121,18 +8374,18 @@ pub struct ListEntitiesForPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListEntitiesForPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListEntitiesForPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListEntitiesForPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListEntitiesForPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListEntitiesForPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListEntitiesForPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListEntitiesForPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListEntitiesForPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListEntitiesForPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8181,31 +8434,31 @@ impl ListEntitiesForPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListEntitiesForPolicyErrorKind::InvalidInputError(_) + ListEntitiesForPolicyErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListEntitiesForPolicyErrorKind::NoSuchEntityError(_) + ListEntitiesForPolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListEntitiesForPolicyErrorKind::ServiceFailureError(_) + ListEntitiesForPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListEntitiesForPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListEntitiesForPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - ListEntitiesForPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListEntitiesForPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListEntitiesForPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + ListEntitiesForPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListEntitiesForPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), ListEntitiesForPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8220,16 +8473,16 @@ pub struct ListGroupPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListGroupPoliciesErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListGroupPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListGroupPoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListGroupPoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListGroupPoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListGroupPoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListGroupPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8278,21 +8531,24 @@ impl ListGroupPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListGroupPoliciesErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListGroupPoliciesErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListGroupPoliciesErrorKind::ServiceFailureError(_) + ListGroupPoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListGroupPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListGroupPoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListGroupPoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListGroupPoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListGroupPoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListGroupPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8307,14 +8563,14 @@ pub struct ListGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListGroupsErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListGroupsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListGroupsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8363,14 +8619,14 @@ impl ListGroupsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListGroupsErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, ListGroupsErrorKind::ServiceFailureException(_)) } } impl std::error::Error for ListGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListGroupsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListGroupsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8385,16 +8641,16 @@ pub struct ListGroupsForUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListGroupsForUserErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListGroupsForUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListGroupsForUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListGroupsForUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListGroupsForUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListGroupsForUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListGroupsForUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8443,21 +8699,24 @@ impl ListGroupsForUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListGroupsForUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListGroupsForUserErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListGroupsForUserErrorKind::ServiceFailureError(_) + ListGroupsForUserErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListGroupsForUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListGroupsForUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListGroupsForUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListGroupsForUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListGroupsForUserErrorKind::ServiceFailureException(_inner) => Some(_inner), ListGroupsForUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8472,14 +8731,14 @@ pub struct ListInstanceProfilesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInstanceProfilesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInstanceProfilesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInstanceProfilesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListInstanceProfilesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListInstanceProfilesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8528,17 +8787,17 @@ impl ListInstanceProfilesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListInstanceProfilesErrorKind::ServiceFailureError(_) + ListInstanceProfilesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListInstanceProfilesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInstanceProfilesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListInstanceProfilesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListInstanceProfilesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8553,16 +8812,16 @@ pub struct ListInstanceProfilesForRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInstanceProfilesForRoleErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInstanceProfilesForRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInstanceProfilesForRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListInstanceProfilesForRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListInstanceProfilesForRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListInstanceProfilesForRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListInstanceProfilesForRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8611,24 +8870,24 @@ impl ListInstanceProfilesForRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListInstanceProfilesForRoleErrorKind::NoSuchEntityError(_) + ListInstanceProfilesForRoleErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListInstanceProfilesForRoleErrorKind::ServiceFailureError(_) + ListInstanceProfilesForRoleErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListInstanceProfilesForRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInstanceProfilesForRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListInstanceProfilesForRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListInstanceProfilesForRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListInstanceProfilesForRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), ListInstanceProfilesForRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8643,16 +8902,16 @@ pub struct ListInstanceProfileTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInstanceProfileTagsErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInstanceProfileTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInstanceProfileTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListInstanceProfileTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListInstanceProfileTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListInstanceProfileTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListInstanceProfileTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8701,24 +8960,24 @@ impl ListInstanceProfileTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListInstanceProfileTagsErrorKind::NoSuchEntityError(_) + ListInstanceProfileTagsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListInstanceProfileTagsErrorKind::ServiceFailureError(_) + ListInstanceProfileTagsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListInstanceProfileTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInstanceProfileTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListInstanceProfileTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListInstanceProfileTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListInstanceProfileTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListInstanceProfileTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8733,16 +8992,16 @@ pub struct ListMFADevicesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListMFADevicesErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListMFADevicesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListMFADevicesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListMFADevicesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListMFADevicesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListMFADevicesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListMFADevicesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8791,18 +9050,24 @@ impl ListMFADevicesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListMFADevicesErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListMFADevicesErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListMFADevicesErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListMFADevicesErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListMFADevicesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListMFADevicesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListMFADevicesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListMFADevicesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListMFADevicesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListMFADevicesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8817,18 +9082,18 @@ pub struct ListMFADeviceTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListMFADeviceTagsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListMFADeviceTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListMFADeviceTagsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListMFADeviceTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListMFADeviceTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListMFADeviceTagsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListMFADeviceTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListMFADeviceTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListMFADeviceTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8877,25 +9142,31 @@ impl ListMFADeviceTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, ListMFADeviceTagsErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + ListMFADeviceTagsErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListMFADeviceTagsErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListMFADeviceTagsErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListMFADeviceTagsErrorKind::ServiceFailureError(_) + ListMFADeviceTagsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListMFADeviceTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListMFADeviceTagsErrorKind::InvalidInputError(_inner) => Some(_inner), - ListMFADeviceTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListMFADeviceTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListMFADeviceTagsErrorKind::InvalidInputException(_inner) => Some(_inner), + ListMFADeviceTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListMFADeviceTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListMFADeviceTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8910,14 +9181,14 @@ pub struct ListOpenIDConnectProvidersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListOpenIDConnectProvidersErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListOpenIDConnectProvidersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListOpenIDConnectProvidersErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListOpenIDConnectProvidersErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListOpenIDConnectProvidersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8966,17 +9237,17 @@ impl ListOpenIDConnectProvidersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListOpenIDConnectProvidersErrorKind::ServiceFailureError(_) + ListOpenIDConnectProvidersErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListOpenIDConnectProvidersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListOpenIDConnectProvidersErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListOpenIDConnectProvidersErrorKind::ServiceFailureException(_inner) => Some(_inner), ListOpenIDConnectProvidersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8991,18 +9262,20 @@ pub struct ListOpenIDConnectProviderTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListOpenIDConnectProviderTagsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListOpenIDConnectProviderTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListOpenIDConnectProviderTagsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListOpenIDConnectProviderTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListOpenIDConnectProviderTagsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListOpenIDConnectProviderTagsErrorKind::ServiceFailureException(_inner) => { + _inner.fmt(f) + } ListOpenIDConnectProviderTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9051,31 +9324,31 @@ impl ListOpenIDConnectProviderTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListOpenIDConnectProviderTagsErrorKind::InvalidInputError(_) + ListOpenIDConnectProviderTagsErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityError(_) + ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListOpenIDConnectProviderTagsErrorKind::ServiceFailureError(_) + ListOpenIDConnectProviderTagsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListOpenIDConnectProviderTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListOpenIDConnectProviderTagsErrorKind::InvalidInputError(_inner) => Some(_inner), - ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListOpenIDConnectProviderTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListOpenIDConnectProviderTagsErrorKind::InvalidInputException(_inner) => Some(_inner), + ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListOpenIDConnectProviderTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListOpenIDConnectProviderTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9090,14 +9363,14 @@ pub struct ListPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPoliciesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListPoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9146,14 +9419,17 @@ impl ListPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListPoliciesErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListPoliciesErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListPoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9168,16 +9444,20 @@ pub struct ListPoliciesGrantingServiceAccessError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPoliciesGrantingServiceAccessErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPoliciesGrantingServiceAccessError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPoliciesGrantingServiceAccessErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + ListPoliciesGrantingServiceAccessErrorKind::InvalidInputException(_inner) => { + _inner.fmt(f) + } + ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } ListPoliciesGrantingServiceAccessErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9229,24 +9509,28 @@ impl ListPoliciesGrantingServiceAccessError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListPoliciesGrantingServiceAccessErrorKind::InvalidInputError(_) + ListPoliciesGrantingServiceAccessErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityError(_) + ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for ListPoliciesGrantingServiceAccessError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPoliciesGrantingServiceAccessErrorKind::InvalidInputError(_inner) => Some(_inner), - ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityError(_inner) => Some(_inner), + ListPoliciesGrantingServiceAccessErrorKind::InvalidInputException(_inner) => { + Some(_inner) + } + ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityException(_inner) => { + Some(_inner) + } ListPoliciesGrantingServiceAccessErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9261,18 +9545,18 @@ pub struct ListPolicyTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPolicyTagsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPolicyTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPolicyTagsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListPolicyTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListPolicyTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListPolicyTagsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListPolicyTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListPolicyTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListPolicyTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9321,22 +9605,31 @@ impl ListPolicyTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, ListPolicyTagsErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + ListPolicyTagsErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListPolicyTagsErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListPolicyTagsErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListPolicyTagsErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListPolicyTagsErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListPolicyTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPolicyTagsErrorKind::InvalidInputError(_inner) => Some(_inner), - ListPolicyTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListPolicyTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListPolicyTagsErrorKind::InvalidInputException(_inner) => Some(_inner), + ListPolicyTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListPolicyTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListPolicyTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9351,18 +9644,18 @@ pub struct ListPolicyVersionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPolicyVersionsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPolicyVersionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPolicyVersionsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListPolicyVersionsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListPolicyVersionsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListPolicyVersionsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListPolicyVersionsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListPolicyVersionsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListPolicyVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9411,31 +9704,31 @@ impl ListPolicyVersionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListPolicyVersionsErrorKind::InvalidInputError(_) + ListPolicyVersionsErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListPolicyVersionsErrorKind::NoSuchEntityError(_) + ListPolicyVersionsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListPolicyVersionsErrorKind::ServiceFailureError(_) + ListPolicyVersionsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListPolicyVersionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPolicyVersionsErrorKind::InvalidInputError(_inner) => Some(_inner), - ListPolicyVersionsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListPolicyVersionsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListPolicyVersionsErrorKind::InvalidInputException(_inner) => Some(_inner), + ListPolicyVersionsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListPolicyVersionsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListPolicyVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9450,16 +9743,16 @@ pub struct ListRolePoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListRolePoliciesErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListRolePoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListRolePoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListRolePoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListRolePoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListRolePoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListRolePoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9508,21 +9801,24 @@ impl ListRolePoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListRolePoliciesErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListRolePoliciesErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListRolePoliciesErrorKind::ServiceFailureError(_) + ListRolePoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListRolePoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListRolePoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListRolePoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListRolePoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListRolePoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListRolePoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9537,14 +9833,14 @@ pub struct ListRolesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListRolesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListRolesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListRolesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListRolesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListRolesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9593,14 +9889,14 @@ impl ListRolesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListRolesErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, ListRolesErrorKind::ServiceFailureException(_)) } } impl std::error::Error for ListRolesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListRolesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListRolesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListRolesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9615,16 +9911,16 @@ pub struct ListRoleTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListRoleTagsErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListRoleTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListRoleTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListRoleTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListRoleTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListRoleTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListRoleTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9673,18 +9969,21 @@ impl ListRoleTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListRoleTagsErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, ListRoleTagsErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListRoleTagsErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListRoleTagsErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListRoleTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListRoleTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListRoleTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListRoleTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListRoleTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListRoleTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9699,14 +9998,14 @@ pub struct ListSAMLProvidersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSAMLProvidersErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSAMLProvidersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSAMLProvidersErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListSAMLProvidersErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListSAMLProvidersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9755,17 +10054,17 @@ impl ListSAMLProvidersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListSAMLProvidersErrorKind::ServiceFailureError(_) + ListSAMLProvidersErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListSAMLProvidersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSAMLProvidersErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListSAMLProvidersErrorKind::ServiceFailureException(_inner) => Some(_inner), ListSAMLProvidersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9780,18 +10079,18 @@ pub struct ListSAMLProviderTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSAMLProviderTagsErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSAMLProviderTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSAMLProviderTagsErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - ListSAMLProviderTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListSAMLProviderTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListSAMLProviderTagsErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + ListSAMLProviderTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListSAMLProviderTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListSAMLProviderTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9840,31 +10139,31 @@ impl ListSAMLProviderTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - ListSAMLProviderTagsErrorKind::InvalidInputError(_) + ListSAMLProviderTagsErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListSAMLProviderTagsErrorKind::NoSuchEntityError(_) + ListSAMLProviderTagsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListSAMLProviderTagsErrorKind::ServiceFailureError(_) + ListSAMLProviderTagsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListSAMLProviderTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSAMLProviderTagsErrorKind::InvalidInputError(_inner) => Some(_inner), - ListSAMLProviderTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListSAMLProviderTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListSAMLProviderTagsErrorKind::InvalidInputException(_inner) => Some(_inner), + ListSAMLProviderTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListSAMLProviderTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListSAMLProviderTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9879,14 +10178,14 @@ pub struct ListServerCertificatesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListServerCertificatesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListServerCertificatesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListServerCertificatesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListServerCertificatesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListServerCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9935,17 +10234,17 @@ impl ListServerCertificatesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListServerCertificatesErrorKind::ServiceFailureError(_) + ListServerCertificatesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListServerCertificatesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListServerCertificatesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListServerCertificatesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListServerCertificatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9960,16 +10259,16 @@ pub struct ListServerCertificateTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListServerCertificateTagsErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListServerCertificateTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListServerCertificateTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListServerCertificateTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListServerCertificateTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListServerCertificateTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListServerCertificateTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10018,24 +10317,24 @@ impl ListServerCertificateTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListServerCertificateTagsErrorKind::NoSuchEntityError(_) + ListServerCertificateTagsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListServerCertificateTagsErrorKind::ServiceFailureError(_) + ListServerCertificateTagsErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListServerCertificateTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListServerCertificateTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListServerCertificateTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListServerCertificateTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListServerCertificateTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListServerCertificateTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10050,16 +10349,16 @@ pub struct ListServiceSpecificCredentialsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListServiceSpecificCredentialsErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceNotSupportedError(crate::error::ServiceNotSupportedError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceNotSupportedException(crate::error::ServiceNotSupportedException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListServiceSpecificCredentialsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListServiceSpecificCredentialsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedError(_inner) => { + ListServiceSpecificCredentialsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedException(_inner) => { _inner.fmt(f) } ListServiceSpecificCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -10110,24 +10409,24 @@ impl ListServiceSpecificCredentialsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListServiceSpecificCredentialsErrorKind::NoSuchEntityError(_) + ListServiceSpecificCredentialsErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_not_supported_error(&self) -> bool { + pub fn is_service_not_supported_exception(&self) -> bool { matches!( &self.kind, - ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedError(_) + ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedException(_) ) } } impl std::error::Error for ListServiceSpecificCredentialsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListServiceSpecificCredentialsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedError(_inner) => { + ListServiceSpecificCredentialsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedException(_inner) => { Some(_inner) } ListServiceSpecificCredentialsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10144,16 +10443,16 @@ pub struct ListSigningCertificatesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSigningCertificatesErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSigningCertificatesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSigningCertificatesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListSigningCertificatesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListSigningCertificatesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListSigningCertificatesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListSigningCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10202,24 +10501,24 @@ impl ListSigningCertificatesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ListSigningCertificatesErrorKind::NoSuchEntityError(_) + ListSigningCertificatesErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListSigningCertificatesErrorKind::ServiceFailureError(_) + ListSigningCertificatesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListSigningCertificatesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSigningCertificatesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListSigningCertificatesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListSigningCertificatesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListSigningCertificatesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListSigningCertificatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10234,14 +10533,14 @@ pub struct ListSSHPublicKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSSHPublicKeysErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSSHPublicKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSSHPublicKeysErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + ListSSHPublicKeysErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), ListSSHPublicKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10290,14 +10589,17 @@ impl ListSSHPublicKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListSSHPublicKeysErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListSSHPublicKeysErrorKind::NoSuchEntityException(_) + ) } } impl std::error::Error for ListSSHPublicKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSSHPublicKeysErrorKind::NoSuchEntityError(_inner) => Some(_inner), + ListSSHPublicKeysErrorKind::NoSuchEntityException(_inner) => Some(_inner), ListSSHPublicKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10312,16 +10614,16 @@ pub struct ListUserPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListUserPoliciesErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListUserPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListUserPoliciesErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListUserPoliciesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListUserPoliciesErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListUserPoliciesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListUserPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10370,21 +10672,24 @@ impl ListUserPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListUserPoliciesErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ListUserPoliciesErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListUserPoliciesErrorKind::ServiceFailureError(_) + ListUserPoliciesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListUserPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListUserPoliciesErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListUserPoliciesErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListUserPoliciesErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListUserPoliciesErrorKind::ServiceFailureException(_inner) => Some(_inner), ListUserPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10399,14 +10704,14 @@ pub struct ListUsersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListUsersErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListUsersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListUsersErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListUsersErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListUsersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10455,14 +10760,14 @@ impl ListUsersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListUsersErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, ListUsersErrorKind::ServiceFailureException(_)) } } impl std::error::Error for ListUsersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListUsersErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListUsersErrorKind::ServiceFailureException(_inner) => Some(_inner), ListUsersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10477,16 +10782,16 @@ pub struct ListUserTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListUserTagsErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListUserTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListUserTagsErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ListUserTagsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListUserTagsErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ListUserTagsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListUserTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10535,18 +10840,21 @@ impl ListUserTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ListUserTagsErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, ListUserTagsErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListUserTagsErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListUserTagsErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListUserTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListUserTagsErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ListUserTagsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListUserTagsErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ListUserTagsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListUserTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10633,20 +10941,20 @@ pub struct PutGroupPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutGroupPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutGroupPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutGroupPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutGroupPolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - PutGroupPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - PutGroupPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + PutGroupPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutGroupPolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + PutGroupPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + PutGroupPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), PutGroupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10695,29 +11003,38 @@ impl PutGroupPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutGroupPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutGroupPolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - PutGroupPolicyErrorKind::MalformedPolicyDocumentError(_) + PutGroupPolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, PutGroupPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + PutGroupPolicyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, PutGroupPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + PutGroupPolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for PutGroupPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutGroupPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - PutGroupPolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - PutGroupPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - PutGroupPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + PutGroupPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + PutGroupPolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + PutGroupPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + PutGroupPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), PutGroupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10732,22 +11049,26 @@ pub struct PutRolePermissionsBoundaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRolePermissionsBoundaryErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRolePermissionsBoundaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRolePermissionsBoundaryErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - PutRolePermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableError(_inner) => _inner.fmt(f), - PutRolePermissionsBoundaryErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + PutRolePermissionsBoundaryErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + PutRolePermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableException(_inner) => { + _inner.fmt(f) + } + PutRolePermissionsBoundaryErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_inner) => { + _inner.fmt(f) + } PutRolePermissionsBoundaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10796,45 +11117,49 @@ impl PutRolePermissionsBoundaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - PutRolePermissionsBoundaryErrorKind::InvalidInputError(_) + PutRolePermissionsBoundaryErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - PutRolePermissionsBoundaryErrorKind::NoSuchEntityError(_) + PutRolePermissionsBoundaryErrorKind::NoSuchEntityException(_) ) } - pub fn is_policy_not_attachable_error(&self) -> bool { + pub fn is_policy_not_attachable_exception(&self) -> bool { matches!( &self.kind, - PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableError(_) + PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - PutRolePermissionsBoundaryErrorKind::ServiceFailureError(_) + PutRolePermissionsBoundaryErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_) + PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for PutRolePermissionsBoundaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRolePermissionsBoundaryErrorKind::InvalidInputError(_inner) => Some(_inner), - PutRolePermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => Some(_inner), - PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableError(_inner) => Some(_inner), - PutRolePermissionsBoundaryErrorKind::ServiceFailureError(_inner) => Some(_inner), - PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + PutRolePermissionsBoundaryErrorKind::InvalidInputException(_inner) => Some(_inner), + PutRolePermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => Some(_inner), + PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableException(_inner) => { + Some(_inner) + } + PutRolePermissionsBoundaryErrorKind::ServiceFailureException(_inner) => Some(_inner), + PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(_inner) => { + Some(_inner) + } PutRolePermissionsBoundaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10849,22 +11174,22 @@ pub struct PutRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRolePolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRolePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutRolePolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - PutRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - PutRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - PutRolePolicyErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + PutRolePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutRolePolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + PutRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + PutRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + PutRolePolicyErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), PutRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10913,36 +11238,42 @@ impl PutRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutRolePolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutRolePolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - PutRolePolicyErrorKind::MalformedPolicyDocumentError(_) + PutRolePolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, PutRolePolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, PutRolePolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, PutRolePolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + PutRolePolicyErrorKind::ServiceFailureException(_) + ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - PutRolePolicyErrorKind::UnmodifiableEntityError(_) + PutRolePolicyErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for PutRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRolePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - PutRolePolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - PutRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - PutRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), - PutRolePolicyErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + PutRolePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + PutRolePolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + PutRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + PutRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), + PutRolePolicyErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), PutRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10957,20 +11288,22 @@ pub struct PutUserPermissionsBoundaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutUserPermissionsBoundaryErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutUserPermissionsBoundaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutUserPermissionsBoundaryErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - PutUserPermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableError(_inner) => _inner.fmt(f), - PutUserPermissionsBoundaryErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + PutUserPermissionsBoundaryErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + PutUserPermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableException(_inner) => { + _inner.fmt(f) + } + PutUserPermissionsBoundaryErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), PutUserPermissionsBoundaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11019,38 +11352,40 @@ impl PutUserPermissionsBoundaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - PutUserPermissionsBoundaryErrorKind::InvalidInputError(_) + PutUserPermissionsBoundaryErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - PutUserPermissionsBoundaryErrorKind::NoSuchEntityError(_) + PutUserPermissionsBoundaryErrorKind::NoSuchEntityException(_) ) } - pub fn is_policy_not_attachable_error(&self) -> bool { + pub fn is_policy_not_attachable_exception(&self) -> bool { matches!( &self.kind, - PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableError(_) + PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - PutUserPermissionsBoundaryErrorKind::ServiceFailureError(_) + PutUserPermissionsBoundaryErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for PutUserPermissionsBoundaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutUserPermissionsBoundaryErrorKind::InvalidInputError(_inner) => Some(_inner), - PutUserPermissionsBoundaryErrorKind::NoSuchEntityError(_inner) => Some(_inner), - PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableError(_inner) => Some(_inner), - PutUserPermissionsBoundaryErrorKind::ServiceFailureError(_inner) => Some(_inner), + PutUserPermissionsBoundaryErrorKind::InvalidInputException(_inner) => Some(_inner), + PutUserPermissionsBoundaryErrorKind::NoSuchEntityException(_inner) => Some(_inner), + PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableException(_inner) => { + Some(_inner) + } + PutUserPermissionsBoundaryErrorKind::ServiceFailureException(_inner) => Some(_inner), PutUserPermissionsBoundaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11065,20 +11400,20 @@ pub struct PutUserPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutUserPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutUserPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutUserPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutUserPolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - PutUserPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - PutUserPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + PutUserPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutUserPolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + PutUserPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + PutUserPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), PutUserPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11127,29 +11462,35 @@ impl PutUserPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutUserPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutUserPolicyErrorKind::LimitExceededException(_) + ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - PutUserPolicyErrorKind::MalformedPolicyDocumentError(_) + PutUserPolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, PutUserPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, PutUserPolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, PutUserPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + PutUserPolicyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for PutUserPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutUserPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - PutUserPolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - PutUserPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - PutUserPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + PutUserPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + PutUserPolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + PutUserPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + PutUserPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), PutUserPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11164,22 +11505,22 @@ pub struct RemoveClientIDFromOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveClientIDFromOpenIDConnectProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveClientIDFromOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => { _inner.fmt(f) } - RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => { _inner.fmt(f) } - RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => { _inner.fmt(f) } RemoveClientIDFromOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11233,35 +11574,35 @@ impl RemoveClientIDFromOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputError(_) + RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureError(_) + RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for RemoveClientIDFromOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => { Some(_inner) } - RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => { Some(_inner) } - RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => { + RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => { Some(_inner) } RemoveClientIDFromOpenIDConnectProviderErrorKind::Unhandled(_inner) => { @@ -11280,20 +11621,22 @@ pub struct RemoveRoleFromInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveRoleFromInstanceProfileErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveRoleFromInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveRoleFromInstanceProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - RemoveRoleFromInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityError(_inner) => { + RemoveRoleFromInstanceProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + RemoveRoleFromInstanceProfileErrorKind::ServiceFailureException(_inner) => { + _inner.fmt(f) + } + RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityException(_inner) => { _inner.fmt(f) } RemoveRoleFromInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11344,38 +11687,40 @@ impl RemoveRoleFromInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RemoveRoleFromInstanceProfileErrorKind::LimitExceededError(_) + RemoveRoleFromInstanceProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityError(_) + RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - RemoveRoleFromInstanceProfileErrorKind::ServiceFailureError(_) + RemoveRoleFromInstanceProfileErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityError(_) + RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for RemoveRoleFromInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveRoleFromInstanceProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - RemoveRoleFromInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), - RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + RemoveRoleFromInstanceProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + RemoveRoleFromInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), + RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityException(_inner) => { + Some(_inner) + } RemoveRoleFromInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11390,18 +11735,18 @@ pub struct RemoveUserFromGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveUserFromGroupErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveUserFromGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveUserFromGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RemoveUserFromGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - RemoveUserFromGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + RemoveUserFromGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RemoveUserFromGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + RemoveUserFromGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), RemoveUserFromGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11450,31 +11795,31 @@ impl RemoveUserFromGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RemoveUserFromGroupErrorKind::LimitExceededError(_) + RemoveUserFromGroupErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - RemoveUserFromGroupErrorKind::NoSuchEntityError(_) + RemoveUserFromGroupErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - RemoveUserFromGroupErrorKind::ServiceFailureError(_) + RemoveUserFromGroupErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for RemoveUserFromGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveUserFromGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - RemoveUserFromGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - RemoveUserFromGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + RemoveUserFromGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + RemoveUserFromGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + RemoveUserFromGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), RemoveUserFromGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11489,14 +11834,14 @@ pub struct ResetServiceSpecificCredentialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ResetServiceSpecificCredentialErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ResetServiceSpecificCredentialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ResetServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + ResetServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), ResetServiceSpecificCredentialErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11545,17 +11890,17 @@ impl ResetServiceSpecificCredentialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - ResetServiceSpecificCredentialErrorKind::NoSuchEntityError(_) + ResetServiceSpecificCredentialErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for ResetServiceSpecificCredentialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ResetServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => Some(_inner), + ResetServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => Some(_inner), ResetServiceSpecificCredentialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11570,20 +11915,20 @@ pub struct ResyncMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ResyncMFADeviceErrorKind { - InvalidAuthenticationCodeError(crate::error::InvalidAuthenticationCodeError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidAuthenticationCodeException(crate::error::InvalidAuthenticationCodeException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ResyncMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ResyncMFADeviceErrorKind::InvalidAuthenticationCodeError(_inner) => _inner.fmt(f), - ResyncMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ResyncMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - ResyncMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ResyncMFADeviceErrorKind::InvalidAuthenticationCodeException(_inner) => _inner.fmt(f), + ResyncMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ResyncMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + ResyncMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ResyncMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11632,29 +11977,38 @@ impl ResyncMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_authentication_code_error(&self) -> bool { + pub fn is_invalid_authentication_code_exception(&self) -> bool { matches!( &self.kind, - ResyncMFADeviceErrorKind::InvalidAuthenticationCodeError(_) + ResyncMFADeviceErrorKind::InvalidAuthenticationCodeException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ResyncMFADeviceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + ResyncMFADeviceErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, ResyncMFADeviceErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + ResyncMFADeviceErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ResyncMFADeviceErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ResyncMFADeviceErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ResyncMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ResyncMFADeviceErrorKind::InvalidAuthenticationCodeError(_inner) => Some(_inner), - ResyncMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - ResyncMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - ResyncMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + ResyncMFADeviceErrorKind::InvalidAuthenticationCodeException(_inner) => Some(_inner), + ResyncMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + ResyncMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + ResyncMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), ResyncMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11669,20 +12023,20 @@ pub struct SetDefaultPolicyVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetDefaultPolicyVersionErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetDefaultPolicyVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetDefaultPolicyVersionErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - SetDefaultPolicyVersionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SetDefaultPolicyVersionErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - SetDefaultPolicyVersionErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + SetDefaultPolicyVersionErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + SetDefaultPolicyVersionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SetDefaultPolicyVersionErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + SetDefaultPolicyVersionErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), SetDefaultPolicyVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11731,38 +12085,38 @@ impl SetDefaultPolicyVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - SetDefaultPolicyVersionErrorKind::InvalidInputError(_) + SetDefaultPolicyVersionErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - SetDefaultPolicyVersionErrorKind::LimitExceededError(_) + SetDefaultPolicyVersionErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - SetDefaultPolicyVersionErrorKind::NoSuchEntityError(_) + SetDefaultPolicyVersionErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - SetDefaultPolicyVersionErrorKind::ServiceFailureError(_) + SetDefaultPolicyVersionErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for SetDefaultPolicyVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetDefaultPolicyVersionErrorKind::InvalidInputError(_inner) => Some(_inner), - SetDefaultPolicyVersionErrorKind::LimitExceededError(_inner) => Some(_inner), - SetDefaultPolicyVersionErrorKind::NoSuchEntityError(_inner) => Some(_inner), - SetDefaultPolicyVersionErrorKind::ServiceFailureError(_inner) => Some(_inner), + SetDefaultPolicyVersionErrorKind::InvalidInputException(_inner) => Some(_inner), + SetDefaultPolicyVersionErrorKind::LimitExceededException(_inner) => Some(_inner), + SetDefaultPolicyVersionErrorKind::NoSuchEntityException(_inner) => Some(_inner), + SetDefaultPolicyVersionErrorKind::ServiceFailureException(_inner) => Some(_inner), SetDefaultPolicyVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11777,14 +12131,14 @@ pub struct SetSecurityTokenServicePreferencesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetSecurityTokenServicePreferencesErrorKind { - ServiceFailureError(crate::error::ServiceFailureError), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetSecurityTokenServicePreferencesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetSecurityTokenServicePreferencesErrorKind::ServiceFailureError(_inner) => { + SetSecurityTokenServicePreferencesErrorKind::ServiceFailureException(_inner) => { _inner.fmt(f) } SetSecurityTokenServicePreferencesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11838,17 +12192,17 @@ impl SetSecurityTokenServicePreferencesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - SetSecurityTokenServicePreferencesErrorKind::ServiceFailureError(_) + SetSecurityTokenServicePreferencesErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for SetSecurityTokenServicePreferencesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetSecurityTokenServicePreferencesErrorKind::ServiceFailureError(_inner) => { + SetSecurityTokenServicePreferencesErrorKind::ServiceFailureException(_inner) => { Some(_inner) } SetSecurityTokenServicePreferencesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -11865,16 +12219,16 @@ pub struct SimulateCustomPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SimulateCustomPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - PolicyEvaluationError(crate::error::PolicyEvaluationError), + InvalidInputException(crate::error::InvalidInputException), + PolicyEvaluationException(crate::error::PolicyEvaluationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SimulateCustomPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SimulateCustomPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - SimulateCustomPolicyErrorKind::PolicyEvaluationError(_inner) => _inner.fmt(f), + SimulateCustomPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + SimulateCustomPolicyErrorKind::PolicyEvaluationException(_inner) => _inner.fmt(f), SimulateCustomPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11923,24 +12277,24 @@ impl SimulateCustomPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - SimulateCustomPolicyErrorKind::InvalidInputError(_) + SimulateCustomPolicyErrorKind::InvalidInputException(_) ) } - pub fn is_policy_evaluation_error(&self) -> bool { + pub fn is_policy_evaluation_exception(&self) -> bool { matches!( &self.kind, - SimulateCustomPolicyErrorKind::PolicyEvaluationError(_) + SimulateCustomPolicyErrorKind::PolicyEvaluationException(_) ) } } impl std::error::Error for SimulateCustomPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SimulateCustomPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - SimulateCustomPolicyErrorKind::PolicyEvaluationError(_inner) => Some(_inner), + SimulateCustomPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + SimulateCustomPolicyErrorKind::PolicyEvaluationException(_inner) => Some(_inner), SimulateCustomPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11955,18 +12309,18 @@ pub struct SimulatePrincipalPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SimulatePrincipalPolicyErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PolicyEvaluationError(crate::error::PolicyEvaluationError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PolicyEvaluationException(crate::error::PolicyEvaluationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SimulatePrincipalPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SimulatePrincipalPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - SimulatePrincipalPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - SimulatePrincipalPolicyErrorKind::PolicyEvaluationError(_inner) => _inner.fmt(f), + SimulatePrincipalPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + SimulatePrincipalPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + SimulatePrincipalPolicyErrorKind::PolicyEvaluationException(_inner) => _inner.fmt(f), SimulatePrincipalPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12015,31 +12369,31 @@ impl SimulatePrincipalPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - SimulatePrincipalPolicyErrorKind::InvalidInputError(_) + SimulatePrincipalPolicyErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - SimulatePrincipalPolicyErrorKind::NoSuchEntityError(_) + SimulatePrincipalPolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_policy_evaluation_error(&self) -> bool { + pub fn is_policy_evaluation_exception(&self) -> bool { matches!( &self.kind, - SimulatePrincipalPolicyErrorKind::PolicyEvaluationError(_) + SimulatePrincipalPolicyErrorKind::PolicyEvaluationException(_) ) } } impl std::error::Error for SimulatePrincipalPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SimulatePrincipalPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - SimulatePrincipalPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - SimulatePrincipalPolicyErrorKind::PolicyEvaluationError(_inner) => Some(_inner), + SimulatePrincipalPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + SimulatePrincipalPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + SimulatePrincipalPolicyErrorKind::PolicyEvaluationException(_inner) => Some(_inner), SimulatePrincipalPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12054,22 +12408,22 @@ pub struct TagInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagInstanceProfileErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagInstanceProfileErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagInstanceProfileErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagInstanceProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagInstanceProfileErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagInstanceProfileErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagInstanceProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12118,45 +12472,45 @@ impl TagInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagInstanceProfileErrorKind::ConcurrentModificationError(_) + TagInstanceProfileErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - TagInstanceProfileErrorKind::InvalidInputError(_) + TagInstanceProfileErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - TagInstanceProfileErrorKind::LimitExceededError(_) + TagInstanceProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - TagInstanceProfileErrorKind::NoSuchEntityError(_) + TagInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - TagInstanceProfileErrorKind::ServiceFailureError(_) + TagInstanceProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for TagInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagInstanceProfileErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagInstanceProfileErrorKind::InvalidInputError(_inner) => Some(_inner), - TagInstanceProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - TagInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagInstanceProfileErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagInstanceProfileErrorKind::InvalidInputException(_inner) => Some(_inner), + TagInstanceProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + TagInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), TagInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12171,22 +12525,22 @@ pub struct TagMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagMFADeviceErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagMFADeviceErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagMFADeviceErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagMFADeviceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagMFADeviceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagMFADeviceErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagMFADeviceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12235,33 +12589,36 @@ impl TagMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagMFADeviceErrorKind::ConcurrentModificationError(_) + TagMFADeviceErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, TagMFADeviceErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, TagMFADeviceErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagMFADeviceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagMFADeviceErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, TagMFADeviceErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, TagMFADeviceErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, TagMFADeviceErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + TagMFADeviceErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for TagMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagMFADeviceErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagMFADeviceErrorKind::InvalidInputError(_inner) => Some(_inner), - TagMFADeviceErrorKind::LimitExceededError(_inner) => Some(_inner), - TagMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagMFADeviceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagMFADeviceErrorKind::InvalidInputException(_inner) => Some(_inner), + TagMFADeviceErrorKind::LimitExceededException(_inner) => Some(_inner), + TagMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), TagMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12276,22 +12633,24 @@ pub struct TagOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagOpenIDConnectProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + TagOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12340,45 +12699,47 @@ impl TagOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_) + TagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - TagOpenIDConnectProviderErrorKind::InvalidInputError(_) + TagOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - TagOpenIDConnectProviderErrorKind::LimitExceededError(_) + TagOpenIDConnectProviderErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - TagOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + TagOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - TagOpenIDConnectProviderErrorKind::ServiceFailureError(_) + TagOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for TagOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - TagOpenIDConnectProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - TagOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + TagOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + TagOpenIDConnectProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + TagOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), TagOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12393,22 +12754,22 @@ pub struct TagPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagPolicyErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagPolicyErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagPolicyErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12457,33 +12818,33 @@ impl TagPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagPolicyErrorKind::ConcurrentModificationError(_) + TagPolicyErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, TagPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, TagPolicyErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagPolicyErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, TagPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, TagPolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, TagPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, TagPolicyErrorKind::ServiceFailureException(_)) } } impl std::error::Error for TagPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagPolicyErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - TagPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - TagPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagPolicyErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + TagPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + TagPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), TagPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12498,22 +12859,22 @@ pub struct TagRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagRoleErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagRoleErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagRoleErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagRoleErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagRoleErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagRoleErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagRoleErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12562,30 +12923,33 @@ impl TagRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { - matches!(&self.kind, TagRoleErrorKind::ConcurrentModificationError(_)) + pub fn is_concurrent_modification_exception(&self) -> bool { + matches!( + &self.kind, + TagRoleErrorKind::ConcurrentModificationException(_) + ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, TagRoleErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, TagRoleErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagRoleErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagRoleErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, TagRoleErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, TagRoleErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, TagRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, TagRoleErrorKind::ServiceFailureException(_)) } } impl std::error::Error for TagRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagRoleErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagRoleErrorKind::InvalidInputError(_inner) => Some(_inner), - TagRoleErrorKind::LimitExceededError(_inner) => Some(_inner), - TagRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagRoleErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagRoleErrorKind::InvalidInputException(_inner) => Some(_inner), + TagRoleErrorKind::LimitExceededException(_inner) => Some(_inner), + TagRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), TagRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12600,22 +12964,22 @@ pub struct TagSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagSAMLProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagSAMLProviderErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagSAMLProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagSAMLProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagSAMLProviderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagSAMLProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagSAMLProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12664,33 +13028,45 @@ impl TagSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagSAMLProviderErrorKind::ConcurrentModificationError(_) + TagSAMLProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, TagSAMLProviderErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + TagSAMLProviderErrorKind::InvalidInputException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagSAMLProviderErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + TagSAMLProviderErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, TagSAMLProviderErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + TagSAMLProviderErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, TagSAMLProviderErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + TagSAMLProviderErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for TagSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagSAMLProviderErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - TagSAMLProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - TagSAMLProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagSAMLProviderErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + TagSAMLProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + TagSAMLProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), TagSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12705,22 +13081,22 @@ pub struct TagServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagServerCertificateErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagServerCertificateErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagServerCertificateErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagServerCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagServerCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagServerCertificateErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagServerCertificateErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagServerCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagServerCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12769,45 +13145,45 @@ impl TagServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagServerCertificateErrorKind::ConcurrentModificationError(_) + TagServerCertificateErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - TagServerCertificateErrorKind::InvalidInputError(_) + TagServerCertificateErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - TagServerCertificateErrorKind::LimitExceededError(_) + TagServerCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - TagServerCertificateErrorKind::NoSuchEntityError(_) + TagServerCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - TagServerCertificateErrorKind::ServiceFailureError(_) + TagServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for TagServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagServerCertificateErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagServerCertificateErrorKind::InvalidInputError(_inner) => Some(_inner), - TagServerCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - TagServerCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagServerCertificateErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagServerCertificateErrorKind::InvalidInputException(_inner) => Some(_inner), + TagServerCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + TagServerCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), TagServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12822,22 +13198,22 @@ pub struct TagUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagUserErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagUserErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagUserErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - TagUserErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - TagUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + TagUserErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagUserErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + TagUserErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + TagUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), TagUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12886,30 +13262,33 @@ impl TagUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { - matches!(&self.kind, TagUserErrorKind::ConcurrentModificationError(_)) + pub fn is_concurrent_modification_exception(&self) -> bool { + matches!( + &self.kind, + TagUserErrorKind::ConcurrentModificationException(_) + ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, TagUserErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, TagUserErrorKind::InvalidInputException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagUserErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagUserErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, TagUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, TagUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, TagUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, TagUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for TagUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagUserErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagUserErrorKind::InvalidInputError(_inner) => Some(_inner), - TagUserErrorKind::LimitExceededError(_inner) => Some(_inner), - TagUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - TagUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + TagUserErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagUserErrorKind::InvalidInputException(_inner) => Some(_inner), + TagUserErrorKind::LimitExceededException(_inner) => Some(_inner), + TagUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + TagUserErrorKind::ServiceFailureException(_inner) => Some(_inner), TagUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12924,20 +13303,20 @@ pub struct UntagInstanceProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagInstanceProfileErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagInstanceProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagInstanceProfileErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagInstanceProfileErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagInstanceProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagInstanceProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagInstanceProfileErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagInstanceProfileErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagInstanceProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagInstanceProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagInstanceProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12986,38 +13365,38 @@ impl UntagInstanceProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagInstanceProfileErrorKind::ConcurrentModificationError(_) + UntagInstanceProfileErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UntagInstanceProfileErrorKind::InvalidInputError(_) + UntagInstanceProfileErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UntagInstanceProfileErrorKind::NoSuchEntityError(_) + UntagInstanceProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UntagInstanceProfileErrorKind::ServiceFailureError(_) + UntagInstanceProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UntagInstanceProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagInstanceProfileErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagInstanceProfileErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagInstanceProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagInstanceProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagInstanceProfileErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagInstanceProfileErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagInstanceProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagInstanceProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagInstanceProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13032,20 +13411,20 @@ pub struct UntagMFADeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagMFADeviceErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagMFADeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagMFADeviceErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagMFADeviceErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagMFADeviceErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagMFADeviceErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagMFADeviceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagMFADeviceErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagMFADeviceErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagMFADeviceErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagMFADeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13094,29 +13473,38 @@ impl UntagMFADeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagMFADeviceErrorKind::ConcurrentModificationError(_) + UntagMFADeviceErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, UntagMFADeviceErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + UntagMFADeviceErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UntagMFADeviceErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + UntagMFADeviceErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UntagMFADeviceErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + UntagMFADeviceErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for UntagMFADeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagMFADeviceErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagMFADeviceErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagMFADeviceErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagMFADeviceErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagMFADeviceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagMFADeviceErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagMFADeviceErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagMFADeviceErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagMFADeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13131,22 +13519,22 @@ pub struct UntagOpenIDConnectProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagOpenIDConnectProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagOpenIDConnectProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => { + UntagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { _inner.fmt(f) } - UntagOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagOpenIDConnectProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13195,40 +13583,40 @@ impl UntagOpenIDConnectProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_) + UntagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UntagOpenIDConnectProviderErrorKind::InvalidInputError(_) + UntagOpenIDConnectProviderErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UntagOpenIDConnectProviderErrorKind::NoSuchEntityError(_) + UntagOpenIDConnectProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UntagOpenIDConnectProviderErrorKind::ServiceFailureError(_) + UntagOpenIDConnectProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UntagOpenIDConnectProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagOpenIDConnectProviderErrorKind::ConcurrentModificationError(_inner) => { + UntagOpenIDConnectProviderErrorKind::ConcurrentModificationException(_inner) => { Some(_inner) } - UntagOpenIDConnectProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagOpenIDConnectProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagOpenIDConnectProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagOpenIDConnectProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagOpenIDConnectProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagOpenIDConnectProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagOpenIDConnectProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13243,20 +13631,20 @@ pub struct UntagPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagPolicyErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagPolicyErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagPolicyErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagPolicyErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13305,29 +13693,29 @@ impl UntagPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagPolicyErrorKind::ConcurrentModificationError(_) + UntagPolicyErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, UntagPolicyErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!(&self.kind, UntagPolicyErrorKind::InvalidInputException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UntagPolicyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UntagPolicyErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UntagPolicyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UntagPolicyErrorKind::ServiceFailureException(_)) } } impl std::error::Error for UntagPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagPolicyErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagPolicyErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagPolicyErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagPolicyErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13342,18 +13730,18 @@ pub struct UntagRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagRoleErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagRoleErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagRoleErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13402,25 +13790,25 @@ impl UntagRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagRoleErrorKind::ConcurrentModificationError(_) + UntagRoleErrorKind::ConcurrentModificationException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UntagRoleErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UntagRoleErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UntagRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UntagRoleErrorKind::ServiceFailureException(_)) } } impl std::error::Error for UntagRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagRoleErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagRoleErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13435,20 +13823,20 @@ pub struct UntagSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagSAMLProviderErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagSAMLProviderErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagSAMLProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagSAMLProviderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagSAMLProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13497,32 +13885,38 @@ impl UntagSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagSAMLProviderErrorKind::ConcurrentModificationError(_) + UntagSAMLProviderErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { - matches!(&self.kind, UntagSAMLProviderErrorKind::InvalidInputError(_)) + pub fn is_invalid_input_exception(&self) -> bool { + matches!( + &self.kind, + UntagSAMLProviderErrorKind::InvalidInputException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UntagSAMLProviderErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + UntagSAMLProviderErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UntagSAMLProviderErrorKind::ServiceFailureError(_) + UntagSAMLProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UntagSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagSAMLProviderErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagSAMLProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagSAMLProviderErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagSAMLProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13537,20 +13931,22 @@ pub struct UntagServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagServerCertificateErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagServerCertificateErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagServerCertificateErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UntagServerCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagServerCertificateErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + UntagServerCertificateErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UntagServerCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13599,38 +13995,40 @@ impl UntagServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagServerCertificateErrorKind::ConcurrentModificationError(_) + UntagServerCertificateErrorKind::ConcurrentModificationException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UntagServerCertificateErrorKind::InvalidInputError(_) + UntagServerCertificateErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UntagServerCertificateErrorKind::NoSuchEntityError(_) + UntagServerCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UntagServerCertificateErrorKind::ServiceFailureError(_) + UntagServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UntagServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagServerCertificateErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagServerCertificateErrorKind::InvalidInputError(_inner) => Some(_inner), - UntagServerCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagServerCertificateErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + UntagServerCertificateErrorKind::InvalidInputException(_inner) => Some(_inner), + UntagServerCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13645,18 +14043,18 @@ pub struct UntagUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagUserErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagUserErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UntagUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UntagUserErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UntagUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UntagUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13705,25 +14103,25 @@ impl UntagUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagUserErrorKind::ConcurrentModificationError(_) + UntagUserErrorKind::ConcurrentModificationException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UntagUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UntagUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UntagUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UntagUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for UntagUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagUserErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UntagUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + UntagUserErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UntagUserErrorKind::ServiceFailureException(_inner) => Some(_inner), UntagUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13738,18 +14136,18 @@ pub struct UpdateAccessKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAccessKeyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAccessKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAccessKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateAccessKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateAccessKeyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateAccessKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateAccessKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateAccessKeyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateAccessKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13798,22 +14196,31 @@ impl UpdateAccessKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateAccessKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAccessKeyErrorKind::LimitExceededException(_) + ) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UpdateAccessKeyErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAccessKeyErrorKind::NoSuchEntityException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UpdateAccessKeyErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAccessKeyErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for UpdateAccessKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAccessKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateAccessKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateAccessKeyErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateAccessKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateAccessKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateAccessKeyErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateAccessKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13828,22 +14235,22 @@ pub struct UpdateAccountPasswordPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAccountPasswordPolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAccountPasswordPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAccountPasswordPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentError(_inner) => { + UpdateAccountPasswordPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentException(_inner) => { _inner.fmt(f) } - UpdateAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateAccountPasswordPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13892,40 +14299,40 @@ impl UpdateAccountPasswordPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateAccountPasswordPolicyErrorKind::LimitExceededError(_) + UpdateAccountPasswordPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentError(_) + UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateAccountPasswordPolicyErrorKind::NoSuchEntityError(_) + UpdateAccountPasswordPolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateAccountPasswordPolicyErrorKind::ServiceFailureError(_) + UpdateAccountPasswordPolicyErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateAccountPasswordPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAccountPasswordPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentError(_inner) => { + UpdateAccountPasswordPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentException(_inner) => { Some(_inner) } - UpdateAccountPasswordPolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateAccountPasswordPolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateAccountPasswordPolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateAccountPasswordPolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateAccountPasswordPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13940,22 +14347,24 @@ pub struct UpdateAssumeRolePolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAssumeRolePolicyErrorKind { - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAssumeRolePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAssumeRolePolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - UpdateAssumeRolePolicyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateAssumeRolePolicyErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + UpdateAssumeRolePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentException(_inner) => { + _inner.fmt(f) + } + UpdateAssumeRolePolicyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateAssumeRolePolicyErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), UpdateAssumeRolePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14004,45 +14413,47 @@ impl UpdateAssumeRolePolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateAssumeRolePolicyErrorKind::LimitExceededError(_) + UpdateAssumeRolePolicyErrorKind::LimitExceededException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentError(_) + UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateAssumeRolePolicyErrorKind::NoSuchEntityError(_) + UpdateAssumeRolePolicyErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateAssumeRolePolicyErrorKind::ServiceFailureError(_) + UpdateAssumeRolePolicyErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityError(_) + UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for UpdateAssumeRolePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAssumeRolePolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - UpdateAssumeRolePolicyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateAssumeRolePolicyErrorKind::ServiceFailureError(_inner) => Some(_inner), - UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + UpdateAssumeRolePolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentException(_inner) => { + Some(_inner) + } + UpdateAssumeRolePolicyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateAssumeRolePolicyErrorKind::ServiceFailureException(_inner) => Some(_inner), + UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), UpdateAssumeRolePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14057,20 +14468,20 @@ pub struct UpdateGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateGroupErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateGroupErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateGroupErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateGroupErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateGroupErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateGroupErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateGroupErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateGroupErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14119,29 +14530,29 @@ impl UpdateGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateGroupErrorKind::EntityAlreadyExistsError(_) + UpdateGroupErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateGroupErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, UpdateGroupErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UpdateGroupErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UpdateGroupErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UpdateGroupErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UpdateGroupErrorKind::ServiceFailureException(_)) } } impl std::error::Error for UpdateGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateGroupErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - UpdateGroupErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateGroupErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateGroupErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateGroupErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + UpdateGroupErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateGroupErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateGroupErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14156,24 +14567,24 @@ pub struct UpdateLoginProfileError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateLoginProfileErrorKind { - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PasswordPolicyViolationError(crate::error::PasswordPolicyViolationError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PasswordPolicyViolationException(crate::error::PasswordPolicyViolationException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateLoginProfileError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_inner) => { + UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { _inner.fmt(f) } - UpdateLoginProfileErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateLoginProfileErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateLoginProfileErrorKind::PasswordPolicyViolationError(_inner) => _inner.fmt(f), - UpdateLoginProfileErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateLoginProfileErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateLoginProfileErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateLoginProfileErrorKind::PasswordPolicyViolationException(_inner) => _inner.fmt(f), + UpdateLoginProfileErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateLoginProfileErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14222,45 +14633,47 @@ impl UpdateLoginProfileError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_) + UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateLoginProfileErrorKind::LimitExceededError(_) + UpdateLoginProfileErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateLoginProfileErrorKind::NoSuchEntityError(_) + UpdateLoginProfileErrorKind::NoSuchEntityException(_) ) } - pub fn is_password_policy_violation_error(&self) -> bool { + pub fn is_password_policy_violation_exception(&self) -> bool { matches!( &self.kind, - UpdateLoginProfileErrorKind::PasswordPolicyViolationError(_) + UpdateLoginProfileErrorKind::PasswordPolicyViolationException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateLoginProfileErrorKind::ServiceFailureError(_) + UpdateLoginProfileErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateLoginProfileError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableError(_inner) => Some(_inner), - UpdateLoginProfileErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateLoginProfileErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateLoginProfileErrorKind::PasswordPolicyViolationError(_inner) => Some(_inner), - UpdateLoginProfileErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(_inner) => { + Some(_inner) + } + UpdateLoginProfileErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateLoginProfileErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateLoginProfileErrorKind::PasswordPolicyViolationException(_inner) => Some(_inner), + UpdateLoginProfileErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateLoginProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14275,22 +14688,22 @@ pub struct UpdateOpenIDConnectProviderThumbprintError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateOpenIDConnectProviderThumbprintErrorKind { - InvalidInputError(crate::error::InvalidInputError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateOpenIDConnectProviderThumbprintError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputException(_inner) => { _inner.fmt(f) } - UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityException(_inner) => { _inner.fmt(f) } - UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureException(_inner) => { _inner.fmt(f) } UpdateOpenIDConnectProviderThumbprintErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -14344,35 +14757,35 @@ impl UpdateOpenIDConnectProviderThumbprintError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputError(_) + UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityError(_) + UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureError(_) + UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateOpenIDConnectProviderThumbprintError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputException(_inner) => { Some(_inner) } - UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityException(_inner) => { Some(_inner) } - UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureError(_inner) => { + UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureException(_inner) => { Some(_inner) } UpdateOpenIDConnectProviderThumbprintErrorKind::Unhandled(_inner) => { @@ -14391,18 +14804,18 @@ pub struct UpdateRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateRoleErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateRoleErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateRoleErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - UpdateRoleErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + UpdateRoleErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateRoleErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + UpdateRoleErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), UpdateRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14451,22 +14864,25 @@ impl UpdateRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UpdateRoleErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UpdateRoleErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UpdateRoleErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UpdateRoleErrorKind::ServiceFailureException(_)) } - pub fn is_unmodifiable_entity_error(&self) -> bool { - matches!(&self.kind, UpdateRoleErrorKind::UnmodifiableEntityError(_)) + pub fn is_unmodifiable_entity_exception(&self) -> bool { + matches!( + &self.kind, + UpdateRoleErrorKind::UnmodifiableEntityException(_) + ) } } impl std::error::Error for UpdateRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateRoleErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateRoleErrorKind::ServiceFailureError(_inner) => Some(_inner), - UpdateRoleErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + UpdateRoleErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateRoleErrorKind::ServiceFailureException(_inner) => Some(_inner), + UpdateRoleErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), UpdateRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14481,18 +14897,18 @@ pub struct UpdateRoleDescriptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateRoleDescriptionErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateRoleDescriptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateRoleDescriptionErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateRoleDescriptionErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - UpdateRoleDescriptionErrorKind::UnmodifiableEntityError(_inner) => _inner.fmt(f), + UpdateRoleDescriptionErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateRoleDescriptionErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + UpdateRoleDescriptionErrorKind::UnmodifiableEntityException(_inner) => _inner.fmt(f), UpdateRoleDescriptionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14541,31 +14957,31 @@ impl UpdateRoleDescriptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateRoleDescriptionErrorKind::NoSuchEntityError(_) + UpdateRoleDescriptionErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateRoleDescriptionErrorKind::ServiceFailureError(_) + UpdateRoleDescriptionErrorKind::ServiceFailureException(_) ) } - pub fn is_unmodifiable_entity_error(&self) -> bool { + pub fn is_unmodifiable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateRoleDescriptionErrorKind::UnmodifiableEntityError(_) + UpdateRoleDescriptionErrorKind::UnmodifiableEntityException(_) ) } } impl std::error::Error for UpdateRoleDescriptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateRoleDescriptionErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateRoleDescriptionErrorKind::ServiceFailureError(_inner) => Some(_inner), - UpdateRoleDescriptionErrorKind::UnmodifiableEntityError(_inner) => Some(_inner), + UpdateRoleDescriptionErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateRoleDescriptionErrorKind::ServiceFailureException(_inner) => Some(_inner), + UpdateRoleDescriptionErrorKind::UnmodifiableEntityException(_inner) => Some(_inner), UpdateRoleDescriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14580,20 +14996,20 @@ pub struct UpdateSAMLProviderError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateSAMLProviderErrorKind { - InvalidInputError(crate::error::InvalidInputError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidInputException(crate::error::InvalidInputException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateSAMLProviderError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateSAMLProviderErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UpdateSAMLProviderErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateSAMLProviderErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateSAMLProviderErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateSAMLProviderErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UpdateSAMLProviderErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateSAMLProviderErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateSAMLProviderErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateSAMLProviderErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14642,38 +15058,38 @@ impl UpdateSAMLProviderError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UpdateSAMLProviderErrorKind::InvalidInputError(_) + UpdateSAMLProviderErrorKind::InvalidInputException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateSAMLProviderErrorKind::LimitExceededError(_) + UpdateSAMLProviderErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateSAMLProviderErrorKind::NoSuchEntityError(_) + UpdateSAMLProviderErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateSAMLProviderErrorKind::ServiceFailureError(_) + UpdateSAMLProviderErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateSAMLProviderError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateSAMLProviderErrorKind::InvalidInputError(_inner) => Some(_inner), - UpdateSAMLProviderErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateSAMLProviderErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateSAMLProviderErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateSAMLProviderErrorKind::InvalidInputException(_inner) => Some(_inner), + UpdateSAMLProviderErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateSAMLProviderErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateSAMLProviderErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateSAMLProviderErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14688,20 +15104,20 @@ pub struct UpdateServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateServerCertificateErrorKind { - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateServerCertificateErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateServerCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateServerCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateServerCertificateErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateServerCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateServerCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14750,38 +15166,38 @@ impl UpdateServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateServerCertificateErrorKind::EntityAlreadyExistsError(_) + UpdateServerCertificateErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateServerCertificateErrorKind::LimitExceededError(_) + UpdateServerCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateServerCertificateErrorKind::NoSuchEntityError(_) + UpdateServerCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateServerCertificateErrorKind::ServiceFailureError(_) + UpdateServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateServerCertificateErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - UpdateServerCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateServerCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateServerCertificateErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + UpdateServerCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateServerCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14796,14 +15212,16 @@ pub struct UpdateServiceSpecificCredentialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateServiceSpecificCredentialErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateServiceSpecificCredentialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + UpdateServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => { + _inner.fmt(f) + } UpdateServiceSpecificCredentialErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14852,17 +15270,17 @@ impl UpdateServiceSpecificCredentialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateServiceSpecificCredentialErrorKind::NoSuchEntityError(_) + UpdateServiceSpecificCredentialErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for UpdateServiceSpecificCredentialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateServiceSpecificCredentialErrorKind::NoSuchEntityError(_inner) => Some(_inner), + UpdateServiceSpecificCredentialErrorKind::NoSuchEntityException(_inner) => Some(_inner), UpdateServiceSpecificCredentialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14877,18 +15295,18 @@ pub struct UpdateSigningCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateSigningCertificateErrorKind { - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateSigningCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateSigningCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateSigningCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateSigningCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateSigningCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateSigningCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateSigningCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateSigningCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14937,31 +15355,31 @@ impl UpdateSigningCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateSigningCertificateErrorKind::LimitExceededError(_) + UpdateSigningCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateSigningCertificateErrorKind::NoSuchEntityError(_) + UpdateSigningCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UpdateSigningCertificateErrorKind::ServiceFailureError(_) + UpdateSigningCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UpdateSigningCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateSigningCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateSigningCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateSigningCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateSigningCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateSigningCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateSigningCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateSigningCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14976,14 +15394,14 @@ pub struct UpdateSSHPublicKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateSSHPublicKeyErrorKind { - NoSuchEntityError(crate::error::NoSuchEntityError), + NoSuchEntityException(crate::error::NoSuchEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateSSHPublicKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), + UpdateSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), UpdateSSHPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -15032,17 +15450,17 @@ impl UpdateSSHPublicKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateSSHPublicKeyErrorKind::NoSuchEntityError(_) + UpdateSSHPublicKeyErrorKind::NoSuchEntityException(_) ) } } impl std::error::Error for UpdateSSHPublicKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), + UpdateSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), UpdateSSHPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15057,24 +15475,24 @@ pub struct UpdateUserError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateUserErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateUserError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateUserErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UpdateUserErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateUserErrorKind::EntityTemporarilyUnmodifiableError(_inner) => _inner.fmt(f), - UpdateUserErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateUserErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UpdateUserErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UpdateUserErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UpdateUserErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateUserErrorKind::EntityTemporarilyUnmodifiableException(_inner) => _inner.fmt(f), + UpdateUserErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateUserErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UpdateUserErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UpdateUserErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -15123,40 +15541,43 @@ impl UpdateUserError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UpdateUserErrorKind::ConcurrentModificationError(_) + UpdateUserErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { - matches!(&self.kind, UpdateUserErrorKind::EntityAlreadyExistsError(_)) + pub fn is_entity_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + UpdateUserErrorKind::EntityAlreadyExistsException(_) + ) } - pub fn is_entity_temporarily_unmodifiable_error(&self) -> bool { + pub fn is_entity_temporarily_unmodifiable_exception(&self) -> bool { matches!( &self.kind, - UpdateUserErrorKind::EntityTemporarilyUnmodifiableError(_) + UpdateUserErrorKind::EntityTemporarilyUnmodifiableException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateUserErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, UpdateUserErrorKind::LimitExceededException(_)) } - pub fn is_no_such_entity_error(&self) -> bool { - matches!(&self.kind, UpdateUserErrorKind::NoSuchEntityError(_)) + pub fn is_no_such_entity_exception(&self) -> bool { + matches!(&self.kind, UpdateUserErrorKind::NoSuchEntityException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, UpdateUserErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, UpdateUserErrorKind::ServiceFailureException(_)) } } impl std::error::Error for UpdateUserError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateUserErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UpdateUserErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - UpdateUserErrorKind::EntityTemporarilyUnmodifiableError(_inner) => Some(_inner), - UpdateUserErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateUserErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UpdateUserErrorKind::ServiceFailureError(_inner) => Some(_inner), + UpdateUserErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UpdateUserErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + UpdateUserErrorKind::EntityTemporarilyUnmodifiableException(_inner) => Some(_inner), + UpdateUserErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateUserErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UpdateUserErrorKind::ServiceFailureException(_inner) => Some(_inner), UpdateUserErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15171,26 +15592,30 @@ pub struct UploadServerCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UploadServerCertificateErrorKind { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidInputError(crate::error::InvalidInputError), - KeyPairMismatchError(crate::error::KeyPairMismatchError), - LimitExceededError(crate::error::LimitExceededError), - MalformedCertificateError(crate::error::MalformedCertificateError), - ServiceFailureError(crate::error::ServiceFailureError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidInputException(crate::error::InvalidInputException), + KeyPairMismatchException(crate::error::KeyPairMismatchException), + LimitExceededException(crate::error::LimitExceededException), + MalformedCertificateException(crate::error::MalformedCertificateException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UploadServerCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UploadServerCertificateErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::InvalidInputError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::KeyPairMismatchError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::MalformedCertificateError(_inner) => _inner.fmt(f), - UploadServerCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UploadServerCertificateErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + UploadServerCertificateErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f), + UploadServerCertificateErrorKind::InvalidInputException(_inner) => _inner.fmt(f), + UploadServerCertificateErrorKind::KeyPairMismatchException(_inner) => _inner.fmt(f), + UploadServerCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UploadServerCertificateErrorKind::MalformedCertificateException(_inner) => { + _inner.fmt(f) + } + UploadServerCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UploadServerCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -15239,59 +15664,61 @@ impl UploadServerCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::ConcurrentModificationError(_) + UploadServerCertificateErrorKind::ConcurrentModificationException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::EntityAlreadyExistsError(_) + UploadServerCertificateErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_input_error(&self) -> bool { + pub fn is_invalid_input_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::InvalidInputError(_) + UploadServerCertificateErrorKind::InvalidInputException(_) ) } - pub fn is_key_pair_mismatch_error(&self) -> bool { + pub fn is_key_pair_mismatch_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::KeyPairMismatchError(_) + UploadServerCertificateErrorKind::KeyPairMismatchException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::LimitExceededError(_) + UploadServerCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_malformed_certificate_error(&self) -> bool { + pub fn is_malformed_certificate_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::MalformedCertificateError(_) + UploadServerCertificateErrorKind::MalformedCertificateException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UploadServerCertificateErrorKind::ServiceFailureError(_) + UploadServerCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UploadServerCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UploadServerCertificateErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::InvalidInputError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::KeyPairMismatchError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::MalformedCertificateError(_inner) => Some(_inner), - UploadServerCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + UploadServerCertificateErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + UploadServerCertificateErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + UploadServerCertificateErrorKind::InvalidInputException(_inner) => Some(_inner), + UploadServerCertificateErrorKind::KeyPairMismatchException(_inner) => Some(_inner), + UploadServerCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + UploadServerCertificateErrorKind::MalformedCertificateException(_inner) => Some(_inner), + UploadServerCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), UploadServerCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15306,26 +15733,32 @@ pub struct UploadSigningCertificateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UploadSigningCertificateErrorKind { - DuplicateCertificateError(crate::error::DuplicateCertificateError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - InvalidCertificateError(crate::error::InvalidCertificateError), - LimitExceededError(crate::error::LimitExceededError), - MalformedCertificateError(crate::error::MalformedCertificateError), - NoSuchEntityError(crate::error::NoSuchEntityError), - ServiceFailureError(crate::error::ServiceFailureError), + DuplicateCertificateException(crate::error::DuplicateCertificateException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + InvalidCertificateException(crate::error::InvalidCertificateException), + LimitExceededException(crate::error::LimitExceededException), + MalformedCertificateException(crate::error::MalformedCertificateException), + NoSuchEntityException(crate::error::NoSuchEntityException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UploadSigningCertificateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UploadSigningCertificateErrorKind::DuplicateCertificateError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::EntityAlreadyExistsError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::InvalidCertificateError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::MalformedCertificateError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UploadSigningCertificateErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + UploadSigningCertificateErrorKind::DuplicateCertificateException(_inner) => { + _inner.fmt(f) + } + UploadSigningCertificateErrorKind::EntityAlreadyExistsException(_inner) => { + _inner.fmt(f) + } + UploadSigningCertificateErrorKind::InvalidCertificateException(_inner) => _inner.fmt(f), + UploadSigningCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UploadSigningCertificateErrorKind::MalformedCertificateException(_inner) => { + _inner.fmt(f) + } + UploadSigningCertificateErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UploadSigningCertificateErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), UploadSigningCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -15374,59 +15807,63 @@ impl UploadSigningCertificateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_duplicate_certificate_error(&self) -> bool { + pub fn is_duplicate_certificate_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::DuplicateCertificateError(_) + UploadSigningCertificateErrorKind::DuplicateCertificateException(_) ) } - pub fn is_entity_already_exists_error(&self) -> bool { + pub fn is_entity_already_exists_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::EntityAlreadyExistsError(_) + UploadSigningCertificateErrorKind::EntityAlreadyExistsException(_) ) } - pub fn is_invalid_certificate_error(&self) -> bool { + pub fn is_invalid_certificate_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::InvalidCertificateError(_) + UploadSigningCertificateErrorKind::InvalidCertificateException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::LimitExceededError(_) + UploadSigningCertificateErrorKind::LimitExceededException(_) ) } - pub fn is_malformed_certificate_error(&self) -> bool { + pub fn is_malformed_certificate_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::MalformedCertificateError(_) + UploadSigningCertificateErrorKind::MalformedCertificateException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::NoSuchEntityError(_) + UploadSigningCertificateErrorKind::NoSuchEntityException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - UploadSigningCertificateErrorKind::ServiceFailureError(_) + UploadSigningCertificateErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for UploadSigningCertificateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UploadSigningCertificateErrorKind::DuplicateCertificateError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::EntityAlreadyExistsError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::InvalidCertificateError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::LimitExceededError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::MalformedCertificateError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UploadSigningCertificateErrorKind::ServiceFailureError(_inner) => Some(_inner), + UploadSigningCertificateErrorKind::DuplicateCertificateException(_inner) => { + Some(_inner) + } + UploadSigningCertificateErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner), + UploadSigningCertificateErrorKind::InvalidCertificateException(_inner) => Some(_inner), + UploadSigningCertificateErrorKind::LimitExceededException(_inner) => Some(_inner), + UploadSigningCertificateErrorKind::MalformedCertificateException(_inner) => { + Some(_inner) + } + UploadSigningCertificateErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UploadSigningCertificateErrorKind::ServiceFailureException(_inner) => Some(_inner), UploadSigningCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15441,22 +15878,22 @@ pub struct UploadSSHPublicKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UploadSSHPublicKeyErrorKind { - DuplicateSSHPublicKeyError(crate::error::DuplicateSSHPublicKeyError), - InvalidPublicKeyError(crate::error::InvalidPublicKeyError), - LimitExceededError(crate::error::LimitExceededError), - NoSuchEntityError(crate::error::NoSuchEntityError), - UnrecognizedPublicKeyEncodingError(crate::error::UnrecognizedPublicKeyEncodingError), + DuplicateSshPublicKeyException(crate::error::DuplicateSshPublicKeyException), + InvalidPublicKeyException(crate::error::InvalidPublicKeyException), + LimitExceededException(crate::error::LimitExceededException), + NoSuchEntityException(crate::error::NoSuchEntityException), + UnrecognizedPublicKeyEncodingException(crate::error::UnrecognizedPublicKeyEncodingException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UploadSSHPublicKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UploadSSHPublicKeyErrorKind::DuplicateSSHPublicKeyError(_inner) => _inner.fmt(f), - UploadSSHPublicKeyErrorKind::InvalidPublicKeyError(_inner) => _inner.fmt(f), - UploadSSHPublicKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UploadSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => _inner.fmt(f), - UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_inner) => { + UploadSSHPublicKeyErrorKind::DuplicateSshPublicKeyException(_inner) => _inner.fmt(f), + UploadSSHPublicKeyErrorKind::InvalidPublicKeyException(_inner) => _inner.fmt(f), + UploadSSHPublicKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UploadSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => _inner.fmt(f), + UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_inner) => { _inner.fmt(f) } UploadSSHPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -15507,45 +15944,47 @@ impl UploadSSHPublicKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_duplicate_ssh_public_key_error(&self) -> bool { + pub fn is_duplicate_ssh_public_key_exception(&self) -> bool { matches!( &self.kind, - UploadSSHPublicKeyErrorKind::DuplicateSSHPublicKeyError(_) + UploadSSHPublicKeyErrorKind::DuplicateSshPublicKeyException(_) ) } - pub fn is_invalid_public_key_error(&self) -> bool { + pub fn is_invalid_public_key_exception(&self) -> bool { matches!( &self.kind, - UploadSSHPublicKeyErrorKind::InvalidPublicKeyError(_) + UploadSSHPublicKeyErrorKind::InvalidPublicKeyException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UploadSSHPublicKeyErrorKind::LimitExceededError(_) + UploadSSHPublicKeyErrorKind::LimitExceededException(_) ) } - pub fn is_no_such_entity_error(&self) -> bool { + pub fn is_no_such_entity_exception(&self) -> bool { matches!( &self.kind, - UploadSSHPublicKeyErrorKind::NoSuchEntityError(_) + UploadSSHPublicKeyErrorKind::NoSuchEntityException(_) ) } - pub fn is_unrecognized_public_key_encoding_error(&self) -> bool { + pub fn is_unrecognized_public_key_encoding_exception(&self) -> bool { matches!( &self.kind, - UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_) + UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_) ) } } impl std::error::Error for UploadSSHPublicKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UploadSSHPublicKeyErrorKind::DuplicateSSHPublicKeyError(_inner) => Some(_inner), - UploadSSHPublicKeyErrorKind::InvalidPublicKeyError(_inner) => Some(_inner), - UploadSSHPublicKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - UploadSSHPublicKeyErrorKind::NoSuchEntityError(_inner) => Some(_inner), - UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError(_inner) => Some(_inner), + UploadSSHPublicKeyErrorKind::DuplicateSshPublicKeyException(_inner) => Some(_inner), + UploadSSHPublicKeyErrorKind::InvalidPublicKeyException(_inner) => Some(_inner), + UploadSSHPublicKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + UploadSSHPublicKeyErrorKind::NoSuchEntityException(_inner) => Some(_inner), + UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(_inner) => { + Some(_inner) + } UploadSSHPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15555,37 +15994,34 @@ impl std::error::Error for UploadSSHPublicKeyError { /// unrecognized.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UnrecognizedPublicKeyEncodingError { +pub struct UnrecognizedPublicKeyEncodingException { pub message: std::option::Option, } -impl std::fmt::Debug for UnrecognizedPublicKeyEncodingError { +impl std::fmt::Debug for UnrecognizedPublicKeyEncodingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnrecognizedPublicKeyEncodingError"); + let mut formatter = f.debug_struct("UnrecognizedPublicKeyEncodingException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnrecognizedPublicKeyEncodingError { +impl UnrecognizedPublicKeyEncodingException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnrecognizedPublicKeyEncodingError { +impl std::fmt::Display for UnrecognizedPublicKeyEncodingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnrecognizedPublicKeyEncodingError [UnrecognizedPublicKeyEncodingException]" - )?; + write!(f, "UnrecognizedPublicKeyEncodingException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for UnrecognizedPublicKeyEncodingError {} -/// See [`UnrecognizedPublicKeyEncodingError`](crate::error::UnrecognizedPublicKeyEncodingError) -pub mod unrecognized_public_key_encoding_error { - /// A builder for [`UnrecognizedPublicKeyEncodingError`](crate::error::UnrecognizedPublicKeyEncodingError) +impl std::error::Error for UnrecognizedPublicKeyEncodingException {} +/// See [`UnrecognizedPublicKeyEncodingException`](crate::error::UnrecognizedPublicKeyEncodingException) +pub mod unrecognized_public_key_encoding_exception { + /// A builder for [`UnrecognizedPublicKeyEncodingException`](crate::error::UnrecognizedPublicKeyEncodingException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15600,18 +16036,18 @@ pub mod unrecognized_public_key_encoding_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnrecognizedPublicKeyEncodingError`](crate::error::UnrecognizedPublicKeyEncodingError) - pub fn build(self) -> crate::error::UnrecognizedPublicKeyEncodingError { - crate::error::UnrecognizedPublicKeyEncodingError { + /// Consumes the builder and constructs a [`UnrecognizedPublicKeyEncodingException`](crate::error::UnrecognizedPublicKeyEncodingException) + pub fn build(self) -> crate::error::UnrecognizedPublicKeyEncodingException { + crate::error::UnrecognizedPublicKeyEncodingException { message: self.message, } } } } -impl UnrecognizedPublicKeyEncodingError { - /// Creates a new builder-style object to manufacture [`UnrecognizedPublicKeyEncodingError`](crate::error::UnrecognizedPublicKeyEncodingError) - pub fn builder() -> crate::error::unrecognized_public_key_encoding_error::Builder { - crate::error::unrecognized_public_key_encoding_error::Builder::default() +impl UnrecognizedPublicKeyEncodingException { + /// Creates a new builder-style object to manufacture [`UnrecognizedPublicKeyEncodingException`](crate::error::UnrecognizedPublicKeyEncodingException) + pub fn builder() -> crate::error::unrecognized_public_key_encoding_exception::Builder { + crate::error::unrecognized_public_key_encoding_exception::Builder::default() } } @@ -15619,34 +16055,34 @@ impl UnrecognizedPublicKeyEncodingError { /// error message describes the resource.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct NoSuchEntityError { +pub struct NoSuchEntityException { pub message: std::option::Option, } -impl std::fmt::Debug for NoSuchEntityError { +impl std::fmt::Debug for NoSuchEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NoSuchEntityError"); + let mut formatter = f.debug_struct("NoSuchEntityException"); formatter.field("message", &self.message); formatter.finish() } } -impl NoSuchEntityError { +impl NoSuchEntityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NoSuchEntityError { +impl std::fmt::Display for NoSuchEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NoSuchEntityError [NoSuchEntityException]")?; + write!(f, "NoSuchEntityException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for NoSuchEntityError {} -/// See [`NoSuchEntityError`](crate::error::NoSuchEntityError) -pub mod no_such_entity_error { - /// A builder for [`NoSuchEntityError`](crate::error::NoSuchEntityError) +impl std::error::Error for NoSuchEntityException {} +/// See [`NoSuchEntityException`](crate::error::NoSuchEntityException) +pub mod no_such_entity_exception { + /// A builder for [`NoSuchEntityException`](crate::error::NoSuchEntityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15661,18 +16097,18 @@ pub mod no_such_entity_error { self.message = input; self } - /// Consumes the builder and constructs a [`NoSuchEntityError`](crate::error::NoSuchEntityError) - pub fn build(self) -> crate::error::NoSuchEntityError { - crate::error::NoSuchEntityError { + /// Consumes the builder and constructs a [`NoSuchEntityException`](crate::error::NoSuchEntityException) + pub fn build(self) -> crate::error::NoSuchEntityException { + crate::error::NoSuchEntityException { message: self.message, } } } } -impl NoSuchEntityError { - /// Creates a new builder-style object to manufacture [`NoSuchEntityError`](crate::error::NoSuchEntityError) - pub fn builder() -> crate::error::no_such_entity_error::Builder { - crate::error::no_such_entity_error::Builder::default() +impl NoSuchEntityException { + /// Creates a new builder-style object to manufacture [`NoSuchEntityException`](crate::error::NoSuchEntityException) + pub fn builder() -> crate::error::no_such_entity_exception::Builder { + crate::error::no_such_entity_exception::Builder::default() } } @@ -15680,34 +16116,34 @@ impl NoSuchEntityError { /// account limits. The error message describes the limit exceeded.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15722,52 +16158,52 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    The request was rejected because the public key is malformed or otherwise invalid.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidPublicKeyError { +pub struct InvalidPublicKeyException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidPublicKeyError { +impl std::fmt::Debug for InvalidPublicKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidPublicKeyError"); + let mut formatter = f.debug_struct("InvalidPublicKeyException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidPublicKeyError { +impl InvalidPublicKeyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidPublicKeyError { +impl std::fmt::Display for InvalidPublicKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidPublicKeyError [InvalidPublicKeyException]")?; + write!(f, "InvalidPublicKeyException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidPublicKeyError {} -/// See [`InvalidPublicKeyError`](crate::error::InvalidPublicKeyError) -pub mod invalid_public_key_error { - /// A builder for [`InvalidPublicKeyError`](crate::error::InvalidPublicKeyError) +impl std::error::Error for InvalidPublicKeyException {} +/// See [`InvalidPublicKeyException`](crate::error::InvalidPublicKeyException) +pub mod invalid_public_key_exception { + /// A builder for [`InvalidPublicKeyException`](crate::error::InvalidPublicKeyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15782,18 +16218,18 @@ pub mod invalid_public_key_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidPublicKeyError`](crate::error::InvalidPublicKeyError) - pub fn build(self) -> crate::error::InvalidPublicKeyError { - crate::error::InvalidPublicKeyError { + /// Consumes the builder and constructs a [`InvalidPublicKeyException`](crate::error::InvalidPublicKeyException) + pub fn build(self) -> crate::error::InvalidPublicKeyException { + crate::error::InvalidPublicKeyException { message: self.message, } } } } -impl InvalidPublicKeyError { - /// Creates a new builder-style object to manufacture [`InvalidPublicKeyError`](crate::error::InvalidPublicKeyError) - pub fn builder() -> crate::error::invalid_public_key_error::Builder { - crate::error::invalid_public_key_error::Builder::default() +impl InvalidPublicKeyException { + /// Creates a new builder-style object to manufacture [`InvalidPublicKeyException`](crate::error::InvalidPublicKeyException) + pub fn builder() -> crate::error::invalid_public_key_exception::Builder { + crate::error::invalid_public_key_exception::Builder::default() } } @@ -15801,26 +16237,26 @@ impl InvalidPublicKeyError { /// specified IAM user.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DuplicateSSHPublicKeyError { +pub struct DuplicateSshPublicKeyException { pub message: std::option::Option, } -impl std::fmt::Debug for DuplicateSSHPublicKeyError { +impl std::fmt::Debug for DuplicateSshPublicKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DuplicateSSHPublicKeyError"); + let mut formatter = f.debug_struct("DuplicateSshPublicKeyException"); formatter.field("message", &self.message); formatter.finish() } } -impl DuplicateSSHPublicKeyError { +impl DuplicateSshPublicKeyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DuplicateSSHPublicKeyError { +impl std::fmt::Display for DuplicateSshPublicKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "DuplicateSSHPublicKeyError [DuplicateSSHPublicKeyException]" + "DuplicateSshPublicKeyException [DuplicateSSHPublicKeyException]" )?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; @@ -15828,10 +16264,10 @@ impl std::fmt::Display for DuplicateSSHPublicKeyError { Ok(()) } } -impl std::error::Error for DuplicateSSHPublicKeyError {} -/// See [`DuplicateSSHPublicKeyError`](crate::error::DuplicateSSHPublicKeyError) -pub mod duplicate_ssh_public_key_error { - /// A builder for [`DuplicateSSHPublicKeyError`](crate::error::DuplicateSSHPublicKeyError) +impl std::error::Error for DuplicateSshPublicKeyException {} +/// See [`DuplicateSshPublicKeyException`](crate::error::DuplicateSshPublicKeyException) +pub mod duplicate_ssh_public_key_exception { + /// A builder for [`DuplicateSshPublicKeyException`](crate::error::DuplicateSshPublicKeyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15846,18 +16282,18 @@ pub mod duplicate_ssh_public_key_error { self.message = input; self } - /// Consumes the builder and constructs a [`DuplicateSSHPublicKeyError`](crate::error::DuplicateSSHPublicKeyError) - pub fn build(self) -> crate::error::DuplicateSSHPublicKeyError { - crate::error::DuplicateSSHPublicKeyError { + /// Consumes the builder and constructs a [`DuplicateSshPublicKeyException`](crate::error::DuplicateSshPublicKeyException) + pub fn build(self) -> crate::error::DuplicateSshPublicKeyException { + crate::error::DuplicateSshPublicKeyException { message: self.message, } } } } -impl DuplicateSSHPublicKeyError { - /// Creates a new builder-style object to manufacture [`DuplicateSSHPublicKeyError`](crate::error::DuplicateSSHPublicKeyError) - pub fn builder() -> crate::error::duplicate_ssh_public_key_error::Builder { - crate::error::duplicate_ssh_public_key_error::Builder::default() +impl DuplicateSshPublicKeyException { + /// Creates a new builder-style object to manufacture [`DuplicateSshPublicKeyException`](crate::error::DuplicateSshPublicKeyException) + pub fn builder() -> crate::error::duplicate_ssh_public_key_exception::Builder { + crate::error::duplicate_ssh_public_key_exception::Builder::default() } } @@ -15865,34 +16301,34 @@ impl DuplicateSSHPublicKeyError { /// failure.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceFailureError { +pub struct ServiceFailureException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceFailureError { +impl std::fmt::Debug for ServiceFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceFailureError"); + let mut formatter = f.debug_struct("ServiceFailureException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceFailureError { +impl ServiceFailureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceFailureError { +impl std::fmt::Display for ServiceFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceFailureError [ServiceFailureException]")?; + write!(f, "ServiceFailureException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for ServiceFailureError {} -/// See [`ServiceFailureError`](crate::error::ServiceFailureError) -pub mod service_failure_error { - /// A builder for [`ServiceFailureError`](crate::error::ServiceFailureError) +impl std::error::Error for ServiceFailureException {} +/// See [`ServiceFailureException`](crate::error::ServiceFailureException) +pub mod service_failure_exception { + /// A builder for [`ServiceFailureException`](crate::error::ServiceFailureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15907,18 +16343,18 @@ pub mod service_failure_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceFailureError`](crate::error::ServiceFailureError) - pub fn build(self) -> crate::error::ServiceFailureError { - crate::error::ServiceFailureError { + /// Consumes the builder and constructs a [`ServiceFailureException`](crate::error::ServiceFailureException) + pub fn build(self) -> crate::error::ServiceFailureException { + crate::error::ServiceFailureException { message: self.message, } } } } -impl ServiceFailureError { - /// Creates a new builder-style object to manufacture [`ServiceFailureError`](crate::error::ServiceFailureError) - pub fn builder() -> crate::error::service_failure_error::Builder { - crate::error::service_failure_error::Builder::default() +impl ServiceFailureException { + /// Creates a new builder-style object to manufacture [`ServiceFailureException`](crate::error::ServiceFailureException) + pub fn builder() -> crate::error::service_failure_exception::Builder { + crate::error::service_failure_exception::Builder::default() } } @@ -15926,37 +16362,34 @@ impl ServiceFailureError { /// message describes the specific error.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedCertificateError { +pub struct MalformedCertificateException { pub message: std::option::Option, } -impl std::fmt::Debug for MalformedCertificateError { +impl std::fmt::Debug for MalformedCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedCertificateError"); + let mut formatter = f.debug_struct("MalformedCertificateException"); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedCertificateError { +impl MalformedCertificateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedCertificateError { +impl std::fmt::Display for MalformedCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MalformedCertificateError [MalformedCertificateException]" - )?; + write!(f, "MalformedCertificateException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for MalformedCertificateError {} -/// See [`MalformedCertificateError`](crate::error::MalformedCertificateError) -pub mod malformed_certificate_error { - /// A builder for [`MalformedCertificateError`](crate::error::MalformedCertificateError) +impl std::error::Error for MalformedCertificateException {} +/// See [`MalformedCertificateException`](crate::error::MalformedCertificateException) +pub mod malformed_certificate_exception { + /// A builder for [`MalformedCertificateException`](crate::error::MalformedCertificateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15971,52 +16404,52 @@ pub mod malformed_certificate_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedCertificateError`](crate::error::MalformedCertificateError) - pub fn build(self) -> crate::error::MalformedCertificateError { - crate::error::MalformedCertificateError { + /// Consumes the builder and constructs a [`MalformedCertificateException`](crate::error::MalformedCertificateException) + pub fn build(self) -> crate::error::MalformedCertificateException { + crate::error::MalformedCertificateException { message: self.message, } } } } -impl MalformedCertificateError { - /// Creates a new builder-style object to manufacture [`MalformedCertificateError`](crate::error::MalformedCertificateError) - pub fn builder() -> crate::error::malformed_certificate_error::Builder { - crate::error::malformed_certificate_error::Builder::default() +impl MalformedCertificateException { + /// Creates a new builder-style object to manufacture [`MalformedCertificateException`](crate::error::MalformedCertificateException) + pub fn builder() -> crate::error::malformed_certificate_exception::Builder { + crate::error::malformed_certificate_exception::Builder::default() } } ///

    The request was rejected because the certificate is invalid.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidCertificateError { +pub struct InvalidCertificateException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidCertificateError { +impl std::fmt::Debug for InvalidCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidCertificateError"); + let mut formatter = f.debug_struct("InvalidCertificateException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidCertificateError { +impl InvalidCertificateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidCertificateError { +impl std::fmt::Display for InvalidCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidCertificateError [InvalidCertificateException]")?; + write!(f, "InvalidCertificateException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for InvalidCertificateError {} -/// See [`InvalidCertificateError`](crate::error::InvalidCertificateError) -pub mod invalid_certificate_error { - /// A builder for [`InvalidCertificateError`](crate::error::InvalidCertificateError) +impl std::error::Error for InvalidCertificateException {} +/// See [`InvalidCertificateException`](crate::error::InvalidCertificateException) +pub mod invalid_certificate_exception { + /// A builder for [`InvalidCertificateException`](crate::error::InvalidCertificateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16031,18 +16464,18 @@ pub mod invalid_certificate_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidCertificateError`](crate::error::InvalidCertificateError) - pub fn build(self) -> crate::error::InvalidCertificateError { - crate::error::InvalidCertificateError { + /// Consumes the builder and constructs a [`InvalidCertificateException`](crate::error::InvalidCertificateException) + pub fn build(self) -> crate::error::InvalidCertificateException { + crate::error::InvalidCertificateException { message: self.message, } } } } -impl InvalidCertificateError { - /// Creates a new builder-style object to manufacture [`InvalidCertificateError`](crate::error::InvalidCertificateError) - pub fn builder() -> crate::error::invalid_certificate_error::Builder { - crate::error::invalid_certificate_error::Builder::default() +impl InvalidCertificateException { + /// Creates a new builder-style object to manufacture [`InvalidCertificateException`](crate::error::InvalidCertificateException) + pub fn builder() -> crate::error::invalid_certificate_exception::Builder { + crate::error::invalid_certificate_exception::Builder::default() } } @@ -16050,34 +16483,34 @@ impl InvalidCertificateError { /// exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EntityAlreadyExistsError { +pub struct EntityAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for EntityAlreadyExistsError { +impl std::fmt::Debug for EntityAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EntityAlreadyExistsError"); + let mut formatter = f.debug_struct("EntityAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl EntityAlreadyExistsError { +impl EntityAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EntityAlreadyExistsError { +impl std::fmt::Display for EntityAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EntityAlreadyExistsError [EntityAlreadyExistsException]")?; + write!(f, "EntityAlreadyExistsException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for EntityAlreadyExistsError {} -/// See [`EntityAlreadyExistsError`](crate::error::EntityAlreadyExistsError) -pub mod entity_already_exists_error { - /// A builder for [`EntityAlreadyExistsError`](crate::error::EntityAlreadyExistsError) +impl std::error::Error for EntityAlreadyExistsException {} +/// See [`EntityAlreadyExistsException`](crate::error::EntityAlreadyExistsException) +pub mod entity_already_exists_exception { + /// A builder for [`EntityAlreadyExistsException`](crate::error::EntityAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16092,18 +16525,18 @@ pub mod entity_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`EntityAlreadyExistsError`](crate::error::EntityAlreadyExistsError) - pub fn build(self) -> crate::error::EntityAlreadyExistsError { - crate::error::EntityAlreadyExistsError { + /// Consumes the builder and constructs a [`EntityAlreadyExistsException`](crate::error::EntityAlreadyExistsException) + pub fn build(self) -> crate::error::EntityAlreadyExistsException { + crate::error::EntityAlreadyExistsException { message: self.message, } } } } -impl EntityAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`EntityAlreadyExistsError`](crate::error::EntityAlreadyExistsError) - pub fn builder() -> crate::error::entity_already_exists_error::Builder { - crate::error::entity_already_exists_error::Builder::default() +impl EntityAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`EntityAlreadyExistsException`](crate::error::EntityAlreadyExistsException) + pub fn builder() -> crate::error::entity_already_exists_exception::Builder { + crate::error::entity_already_exists_exception::Builder::default() } } @@ -16111,37 +16544,34 @@ impl EntityAlreadyExistsError { /// the account.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DuplicateCertificateError { +pub struct DuplicateCertificateException { pub message: std::option::Option, } -impl std::fmt::Debug for DuplicateCertificateError { +impl std::fmt::Debug for DuplicateCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DuplicateCertificateError"); + let mut formatter = f.debug_struct("DuplicateCertificateException"); formatter.field("message", &self.message); formatter.finish() } } -impl DuplicateCertificateError { +impl DuplicateCertificateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DuplicateCertificateError { +impl std::fmt::Display for DuplicateCertificateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "DuplicateCertificateError [DuplicateCertificateException]" - )?; + write!(f, "DuplicateCertificateException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for DuplicateCertificateError {} -/// See [`DuplicateCertificateError`](crate::error::DuplicateCertificateError) -pub mod duplicate_certificate_error { - /// A builder for [`DuplicateCertificateError`](crate::error::DuplicateCertificateError) +impl std::error::Error for DuplicateCertificateException {} +/// See [`DuplicateCertificateException`](crate::error::DuplicateCertificateException) +pub mod duplicate_certificate_exception { + /// A builder for [`DuplicateCertificateException`](crate::error::DuplicateCertificateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16156,18 +16586,18 @@ pub mod duplicate_certificate_error { self.message = input; self } - /// Consumes the builder and constructs a [`DuplicateCertificateError`](crate::error::DuplicateCertificateError) - pub fn build(self) -> crate::error::DuplicateCertificateError { - crate::error::DuplicateCertificateError { + /// Consumes the builder and constructs a [`DuplicateCertificateException`](crate::error::DuplicateCertificateException) + pub fn build(self) -> crate::error::DuplicateCertificateException { + crate::error::DuplicateCertificateException { message: self.message, } } } } -impl DuplicateCertificateError { - /// Creates a new builder-style object to manufacture [`DuplicateCertificateError`](crate::error::DuplicateCertificateError) - pub fn builder() -> crate::error::duplicate_certificate_error::Builder { - crate::error::duplicate_certificate_error::Builder::default() +impl DuplicateCertificateException { + /// Creates a new builder-style object to manufacture [`DuplicateCertificateException`](crate::error::DuplicateCertificateException) + pub fn builder() -> crate::error::duplicate_certificate_exception::Builder { + crate::error::duplicate_certificate_exception::Builder::default() } } @@ -16175,34 +16605,34 @@ impl DuplicateCertificateError { /// match.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KeyPairMismatchError { +pub struct KeyPairMismatchException { pub message: std::option::Option, } -impl std::fmt::Debug for KeyPairMismatchError { +impl std::fmt::Debug for KeyPairMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KeyPairMismatchError"); + let mut formatter = f.debug_struct("KeyPairMismatchException"); formatter.field("message", &self.message); formatter.finish() } } -impl KeyPairMismatchError { +impl KeyPairMismatchException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KeyPairMismatchError { +impl std::fmt::Display for KeyPairMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KeyPairMismatchError [KeyPairMismatchException]")?; + write!(f, "KeyPairMismatchException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for KeyPairMismatchError {} -/// See [`KeyPairMismatchError`](crate::error::KeyPairMismatchError) -pub mod key_pair_mismatch_error { - /// A builder for [`KeyPairMismatchError`](crate::error::KeyPairMismatchError) +impl std::error::Error for KeyPairMismatchException {} +/// See [`KeyPairMismatchException`](crate::error::KeyPairMismatchException) +pub mod key_pair_mismatch_exception { + /// A builder for [`KeyPairMismatchException`](crate::error::KeyPairMismatchException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16217,18 +16647,18 @@ pub mod key_pair_mismatch_error { self.message = input; self } - /// Consumes the builder and constructs a [`KeyPairMismatchError`](crate::error::KeyPairMismatchError) - pub fn build(self) -> crate::error::KeyPairMismatchError { - crate::error::KeyPairMismatchError { + /// Consumes the builder and constructs a [`KeyPairMismatchException`](crate::error::KeyPairMismatchException) + pub fn build(self) -> crate::error::KeyPairMismatchException { + crate::error::KeyPairMismatchException { message: self.message, } } } } -impl KeyPairMismatchError { - /// Creates a new builder-style object to manufacture [`KeyPairMismatchError`](crate::error::KeyPairMismatchError) - pub fn builder() -> crate::error::key_pair_mismatch_error::Builder { - crate::error::key_pair_mismatch_error::Builder::default() +impl KeyPairMismatchException { + /// Creates a new builder-style object to manufacture [`KeyPairMismatchException`](crate::error::KeyPairMismatchException) + pub fn builder() -> crate::error::key_pair_mismatch_exception::Builder { + crate::error::key_pair_mismatch_exception::Builder::default() } } @@ -16236,34 +16666,34 @@ impl KeyPairMismatchError { /// input parameter.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidInputError { +pub struct InvalidInputException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidInputError { +impl std::fmt::Debug for InvalidInputException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidInputError"); + let mut formatter = f.debug_struct("InvalidInputException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidInputError { +impl InvalidInputException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidInputError { +impl std::fmt::Display for InvalidInputException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidInputError [InvalidInputException]")?; + write!(f, "InvalidInputException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for InvalidInputError {} -/// See [`InvalidInputError`](crate::error::InvalidInputError) -pub mod invalid_input_error { - /// A builder for [`InvalidInputError`](crate::error::InvalidInputError) +impl std::error::Error for InvalidInputException {} +/// See [`InvalidInputException`](crate::error::InvalidInputException) +pub mod invalid_input_exception { + /// A builder for [`InvalidInputException`](crate::error::InvalidInputException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16278,18 +16708,18 @@ pub mod invalid_input_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidInputError`](crate::error::InvalidInputError) - pub fn build(self) -> crate::error::InvalidInputError { - crate::error::InvalidInputError { + /// Consumes the builder and constructs a [`InvalidInputException`](crate::error::InvalidInputException) + pub fn build(self) -> crate::error::InvalidInputException { + crate::error::InvalidInputException { message: self.message, } } } } -impl InvalidInputError { - /// Creates a new builder-style object to manufacture [`InvalidInputError`](crate::error::InvalidInputError) - pub fn builder() -> crate::error::invalid_input_error::Builder { - crate::error::invalid_input_error::Builder::default() +impl InvalidInputException { + /// Creates a new builder-style object to manufacture [`InvalidInputException`](crate::error::InvalidInputException) + pub fn builder() -> crate::error::invalid_input_exception::Builder { + crate::error::invalid_input_exception::Builder::default() } } @@ -16297,37 +16727,34 @@ impl InvalidInputError { /// simultaneously. Wait a few minutes and submit your request again.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ConcurrentModificationError { +pub struct ConcurrentModificationException { pub message: std::option::Option, } -impl std::fmt::Debug for ConcurrentModificationError { +impl std::fmt::Debug for ConcurrentModificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConcurrentModificationError"); + let mut formatter = f.debug_struct("ConcurrentModificationException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConcurrentModificationError { +impl ConcurrentModificationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConcurrentModificationError { +impl std::fmt::Display for ConcurrentModificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ConcurrentModificationError [ConcurrentModificationException]" - )?; + write!(f, "ConcurrentModificationException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for ConcurrentModificationError {} -/// See [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) -pub mod concurrent_modification_error { - /// A builder for [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) +impl std::error::Error for ConcurrentModificationException {} +/// See [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) +pub mod concurrent_modification_exception { + /// A builder for [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16342,18 +16769,18 @@ pub mod concurrent_modification_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) - pub fn build(self) -> crate::error::ConcurrentModificationError { - crate::error::ConcurrentModificationError { + /// Consumes the builder and constructs a [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn build(self) -> crate::error::ConcurrentModificationException { + crate::error::ConcurrentModificationException { message: self.message, } } } } -impl ConcurrentModificationError { - /// Creates a new builder-style object to manufacture [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) - pub fn builder() -> crate::error::concurrent_modification_error::Builder { - crate::error::concurrent_modification_error::Builder::default() +impl ConcurrentModificationException { + /// Creates a new builder-style object to manufacture [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn builder() -> crate::error::concurrent_modification_exception::Builder { + crate::error::concurrent_modification_exception::Builder::default() } } @@ -16363,37 +16790,34 @@ impl ConcurrentModificationError { /// describes the entity.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EntityTemporarilyUnmodifiableError { +pub struct EntityTemporarilyUnmodifiableException { pub message: std::option::Option, } -impl std::fmt::Debug for EntityTemporarilyUnmodifiableError { +impl std::fmt::Debug for EntityTemporarilyUnmodifiableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EntityTemporarilyUnmodifiableError"); + let mut formatter = f.debug_struct("EntityTemporarilyUnmodifiableException"); formatter.field("message", &self.message); formatter.finish() } } -impl EntityTemporarilyUnmodifiableError { +impl EntityTemporarilyUnmodifiableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EntityTemporarilyUnmodifiableError { +impl std::fmt::Display for EntityTemporarilyUnmodifiableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "EntityTemporarilyUnmodifiableError [EntityTemporarilyUnmodifiableException]" - )?; + write!(f, "EntityTemporarilyUnmodifiableException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for EntityTemporarilyUnmodifiableError {} -/// See [`EntityTemporarilyUnmodifiableError`](crate::error::EntityTemporarilyUnmodifiableError) -pub mod entity_temporarily_unmodifiable_error { - /// A builder for [`EntityTemporarilyUnmodifiableError`](crate::error::EntityTemporarilyUnmodifiableError) +impl std::error::Error for EntityTemporarilyUnmodifiableException {} +/// See [`EntityTemporarilyUnmodifiableException`](crate::error::EntityTemporarilyUnmodifiableException) +pub mod entity_temporarily_unmodifiable_exception { + /// A builder for [`EntityTemporarilyUnmodifiableException`](crate::error::EntityTemporarilyUnmodifiableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16408,18 +16832,18 @@ pub mod entity_temporarily_unmodifiable_error { self.message = input; self } - /// Consumes the builder and constructs a [`EntityTemporarilyUnmodifiableError`](crate::error::EntityTemporarilyUnmodifiableError) - pub fn build(self) -> crate::error::EntityTemporarilyUnmodifiableError { - crate::error::EntityTemporarilyUnmodifiableError { + /// Consumes the builder and constructs a [`EntityTemporarilyUnmodifiableException`](crate::error::EntityTemporarilyUnmodifiableException) + pub fn build(self) -> crate::error::EntityTemporarilyUnmodifiableException { + crate::error::EntityTemporarilyUnmodifiableException { message: self.message, } } } } -impl EntityTemporarilyUnmodifiableError { - /// Creates a new builder-style object to manufacture [`EntityTemporarilyUnmodifiableError`](crate::error::EntityTemporarilyUnmodifiableError) - pub fn builder() -> crate::error::entity_temporarily_unmodifiable_error::Builder { - crate::error::entity_temporarily_unmodifiable_error::Builder::default() +impl EntityTemporarilyUnmodifiableException { + /// Creates a new builder-style object to manufacture [`EntityTemporarilyUnmodifiableException`](crate::error::EntityTemporarilyUnmodifiableException) + pub fn builder() -> crate::error::entity_temporarily_unmodifiable_exception::Builder { + crate::error::entity_temporarily_unmodifiable_exception::Builder::default() } } @@ -16429,34 +16853,34 @@ impl EntityTemporarilyUnmodifiableError { /// service.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UnmodifiableEntityError { +pub struct UnmodifiableEntityException { pub message: std::option::Option, } -impl std::fmt::Debug for UnmodifiableEntityError { +impl std::fmt::Debug for UnmodifiableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnmodifiableEntityError"); + let mut formatter = f.debug_struct("UnmodifiableEntityException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnmodifiableEntityError { +impl UnmodifiableEntityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnmodifiableEntityError { +impl std::fmt::Display for UnmodifiableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnmodifiableEntityError [UnmodifiableEntityException]")?; + write!(f, "UnmodifiableEntityException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for UnmodifiableEntityError {} -/// See [`UnmodifiableEntityError`](crate::error::UnmodifiableEntityError) -pub mod unmodifiable_entity_error { - /// A builder for [`UnmodifiableEntityError`](crate::error::UnmodifiableEntityError) +impl std::error::Error for UnmodifiableEntityException {} +/// See [`UnmodifiableEntityException`](crate::error::UnmodifiableEntityException) +pub mod unmodifiable_entity_exception { + /// A builder for [`UnmodifiableEntityException`](crate::error::UnmodifiableEntityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16471,18 +16895,18 @@ pub mod unmodifiable_entity_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnmodifiableEntityError`](crate::error::UnmodifiableEntityError) - pub fn build(self) -> crate::error::UnmodifiableEntityError { - crate::error::UnmodifiableEntityError { + /// Consumes the builder and constructs a [`UnmodifiableEntityException`](crate::error::UnmodifiableEntityException) + pub fn build(self) -> crate::error::UnmodifiableEntityException { + crate::error::UnmodifiableEntityException { message: self.message, } } } } -impl UnmodifiableEntityError { - /// Creates a new builder-style object to manufacture [`UnmodifiableEntityError`](crate::error::UnmodifiableEntityError) - pub fn builder() -> crate::error::unmodifiable_entity_error::Builder { - crate::error::unmodifiable_entity_error::Builder::default() +impl UnmodifiableEntityException { + /// Creates a new builder-style object to manufacture [`UnmodifiableEntityException`](crate::error::UnmodifiableEntityException) + pub fn builder() -> crate::error::unmodifiable_entity_exception::Builder { + crate::error::unmodifiable_entity_exception::Builder::default() } } @@ -16490,37 +16914,34 @@ impl UnmodifiableEntityError { /// imposed by the account password policy.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PasswordPolicyViolationError { +pub struct PasswordPolicyViolationException { pub message: std::option::Option, } -impl std::fmt::Debug for PasswordPolicyViolationError { +impl std::fmt::Debug for PasswordPolicyViolationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PasswordPolicyViolationError"); + let mut formatter = f.debug_struct("PasswordPolicyViolationException"); formatter.field("message", &self.message); formatter.finish() } } -impl PasswordPolicyViolationError { +impl PasswordPolicyViolationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PasswordPolicyViolationError { +impl std::fmt::Display for PasswordPolicyViolationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PasswordPolicyViolationError [PasswordPolicyViolationException]" - )?; + write!(f, "PasswordPolicyViolationException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for PasswordPolicyViolationError {} -/// See [`PasswordPolicyViolationError`](crate::error::PasswordPolicyViolationError) -pub mod password_policy_violation_error { - /// A builder for [`PasswordPolicyViolationError`](crate::error::PasswordPolicyViolationError) +impl std::error::Error for PasswordPolicyViolationException {} +/// See [`PasswordPolicyViolationException`](crate::error::PasswordPolicyViolationException) +pub mod password_policy_violation_exception { + /// A builder for [`PasswordPolicyViolationException`](crate::error::PasswordPolicyViolationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16535,18 +16956,18 @@ pub mod password_policy_violation_error { self.message = input; self } - /// Consumes the builder and constructs a [`PasswordPolicyViolationError`](crate::error::PasswordPolicyViolationError) - pub fn build(self) -> crate::error::PasswordPolicyViolationError { - crate::error::PasswordPolicyViolationError { + /// Consumes the builder and constructs a [`PasswordPolicyViolationException`](crate::error::PasswordPolicyViolationException) + pub fn build(self) -> crate::error::PasswordPolicyViolationException { + crate::error::PasswordPolicyViolationException { message: self.message, } } } } -impl PasswordPolicyViolationError { - /// Creates a new builder-style object to manufacture [`PasswordPolicyViolationError`](crate::error::PasswordPolicyViolationError) - pub fn builder() -> crate::error::password_policy_violation_error::Builder { - crate::error::password_policy_violation_error::Builder::default() +impl PasswordPolicyViolationException { + /// Creates a new builder-style object to manufacture [`PasswordPolicyViolationException`](crate::error::PasswordPolicyViolationException) + pub fn builder() -> crate::error::password_policy_violation_exception::Builder { + crate::error::password_policy_violation_exception::Builder::default() } } @@ -16554,37 +16975,34 @@ impl PasswordPolicyViolationError { /// describes the specific error.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedPolicyDocumentError { +pub struct MalformedPolicyDocumentException { pub message: std::option::Option, } -impl std::fmt::Debug for MalformedPolicyDocumentError { +impl std::fmt::Debug for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedPolicyDocumentError"); + let mut formatter = f.debug_struct("MalformedPolicyDocumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedPolicyDocumentError { +impl MalformedPolicyDocumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedPolicyDocumentError { +impl std::fmt::Display for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MalformedPolicyDocumentError [MalformedPolicyDocumentException]" - )?; + write!(f, "MalformedPolicyDocumentException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for MalformedPolicyDocumentError {} -/// See [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) -pub mod malformed_policy_document_error { - /// A builder for [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) +impl std::error::Error for MalformedPolicyDocumentException {} +/// See [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) +pub mod malformed_policy_document_exception { + /// A builder for [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16599,18 +17017,18 @@ pub mod malformed_policy_document_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn build(self) -> crate::error::MalformedPolicyDocumentError { - crate::error::MalformedPolicyDocumentError { + /// Consumes the builder and constructs a [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn build(self) -> crate::error::MalformedPolicyDocumentException { + crate::error::MalformedPolicyDocumentException { message: self.message, } } } } -impl MalformedPolicyDocumentError { - /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn builder() -> crate::error::malformed_policy_document_error::Builder { - crate::error::malformed_policy_document_error::Builder::default() +impl MalformedPolicyDocumentException { + /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn builder() -> crate::error::malformed_policy_document_exception::Builder { + crate::error::malformed_policy_document_exception::Builder::default() } } @@ -16618,34 +17036,34 @@ impl MalformedPolicyDocumentError { /// additional detailed message indicates the source of the failure.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PolicyEvaluationError { +pub struct PolicyEvaluationException { pub message: std::option::Option, } -impl std::fmt::Debug for PolicyEvaluationError { +impl std::fmt::Debug for PolicyEvaluationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PolicyEvaluationError"); + let mut formatter = f.debug_struct("PolicyEvaluationException"); formatter.field("message", &self.message); formatter.finish() } } -impl PolicyEvaluationError { +impl PolicyEvaluationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PolicyEvaluationError { +impl std::fmt::Display for PolicyEvaluationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PolicyEvaluationError [PolicyEvaluationException]")?; + write!(f, "PolicyEvaluationException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for PolicyEvaluationError {} -/// See [`PolicyEvaluationError`](crate::error::PolicyEvaluationError) -pub mod policy_evaluation_error { - /// A builder for [`PolicyEvaluationError`](crate::error::PolicyEvaluationError) +impl std::error::Error for PolicyEvaluationException {} +/// See [`PolicyEvaluationException`](crate::error::PolicyEvaluationException) +pub mod policy_evaluation_exception { + /// A builder for [`PolicyEvaluationException`](crate::error::PolicyEvaluationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16660,18 +17078,18 @@ pub mod policy_evaluation_error { self.message = input; self } - /// Consumes the builder and constructs a [`PolicyEvaluationError`](crate::error::PolicyEvaluationError) - pub fn build(self) -> crate::error::PolicyEvaluationError { - crate::error::PolicyEvaluationError { + /// Consumes the builder and constructs a [`PolicyEvaluationException`](crate::error::PolicyEvaluationException) + pub fn build(self) -> crate::error::PolicyEvaluationException { + crate::error::PolicyEvaluationException { message: self.message, } } } } -impl PolicyEvaluationError { - /// Creates a new builder-style object to manufacture [`PolicyEvaluationError`](crate::error::PolicyEvaluationError) - pub fn builder() -> crate::error::policy_evaluation_error::Builder { - crate::error::policy_evaluation_error::Builder::default() +impl PolicyEvaluationException { + /// Creates a new builder-style object to manufacture [`PolicyEvaluationException`](crate::error::PolicyEvaluationException) + pub fn builder() -> crate::error::policy_evaluation_exception::Builder { + crate::error::policy_evaluation_exception::Builder::default() } } @@ -16679,37 +17097,34 @@ impl PolicyEvaluationError { /// message describes the specific error.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAuthenticationCodeError { +pub struct InvalidAuthenticationCodeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAuthenticationCodeError { +impl std::fmt::Debug for InvalidAuthenticationCodeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAuthenticationCodeError"); + let mut formatter = f.debug_struct("InvalidAuthenticationCodeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAuthenticationCodeError { +impl InvalidAuthenticationCodeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAuthenticationCodeError { +impl std::fmt::Display for InvalidAuthenticationCodeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidAuthenticationCodeError [InvalidAuthenticationCodeException]" - )?; + write!(f, "InvalidAuthenticationCodeException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for InvalidAuthenticationCodeError {} -/// See [`InvalidAuthenticationCodeError`](crate::error::InvalidAuthenticationCodeError) -pub mod invalid_authentication_code_error { - /// A builder for [`InvalidAuthenticationCodeError`](crate::error::InvalidAuthenticationCodeError) +impl std::error::Error for InvalidAuthenticationCodeException {} +/// See [`InvalidAuthenticationCodeException`](crate::error::InvalidAuthenticationCodeException) +pub mod invalid_authentication_code_exception { + /// A builder for [`InvalidAuthenticationCodeException`](crate::error::InvalidAuthenticationCodeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16724,18 +17139,18 @@ pub mod invalid_authentication_code_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAuthenticationCodeError`](crate::error::InvalidAuthenticationCodeError) - pub fn build(self) -> crate::error::InvalidAuthenticationCodeError { - crate::error::InvalidAuthenticationCodeError { + /// Consumes the builder and constructs a [`InvalidAuthenticationCodeException`](crate::error::InvalidAuthenticationCodeException) + pub fn build(self) -> crate::error::InvalidAuthenticationCodeException { + crate::error::InvalidAuthenticationCodeException { message: self.message, } } } } -impl InvalidAuthenticationCodeError { - /// Creates a new builder-style object to manufacture [`InvalidAuthenticationCodeError`](crate::error::InvalidAuthenticationCodeError) - pub fn builder() -> crate::error::invalid_authentication_code_error::Builder { - crate::error::invalid_authentication_code_error::Builder::default() +impl InvalidAuthenticationCodeException { + /// Creates a new builder-style object to manufacture [`InvalidAuthenticationCodeException`](crate::error::InvalidAuthenticationCodeException) + pub fn builder() -> crate::error::invalid_authentication_code_exception::Builder { + crate::error::invalid_authentication_code_exception::Builder::default() } } @@ -16743,34 +17158,34 @@ impl InvalidAuthenticationCodeError { /// service-linked role for that service.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PolicyNotAttachableError { +pub struct PolicyNotAttachableException { pub message: std::option::Option, } -impl std::fmt::Debug for PolicyNotAttachableError { +impl std::fmt::Debug for PolicyNotAttachableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PolicyNotAttachableError"); + let mut formatter = f.debug_struct("PolicyNotAttachableException"); formatter.field("message", &self.message); formatter.finish() } } -impl PolicyNotAttachableError { +impl PolicyNotAttachableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PolicyNotAttachableError { +impl std::fmt::Display for PolicyNotAttachableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PolicyNotAttachableError [PolicyNotAttachableException]")?; + write!(f, "PolicyNotAttachableException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for PolicyNotAttachableError {} -/// See [`PolicyNotAttachableError`](crate::error::PolicyNotAttachableError) -pub mod policy_not_attachable_error { - /// A builder for [`PolicyNotAttachableError`](crate::error::PolicyNotAttachableError) +impl std::error::Error for PolicyNotAttachableException {} +/// See [`PolicyNotAttachableException`](crate::error::PolicyNotAttachableException) +pub mod policy_not_attachable_exception { + /// A builder for [`PolicyNotAttachableException`](crate::error::PolicyNotAttachableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16785,52 +17200,52 @@ pub mod policy_not_attachable_error { self.message = input; self } - /// Consumes the builder and constructs a [`PolicyNotAttachableError`](crate::error::PolicyNotAttachableError) - pub fn build(self) -> crate::error::PolicyNotAttachableError { - crate::error::PolicyNotAttachableError { + /// Consumes the builder and constructs a [`PolicyNotAttachableException`](crate::error::PolicyNotAttachableException) + pub fn build(self) -> crate::error::PolicyNotAttachableException { + crate::error::PolicyNotAttachableException { message: self.message, } } } } -impl PolicyNotAttachableError { - /// Creates a new builder-style object to manufacture [`PolicyNotAttachableError`](crate::error::PolicyNotAttachableError) - pub fn builder() -> crate::error::policy_not_attachable_error::Builder { - crate::error::policy_not_attachable_error::Builder::default() +impl PolicyNotAttachableException { + /// Creates a new builder-style object to manufacture [`PolicyNotAttachableException`](crate::error::PolicyNotAttachableException) + pub fn builder() -> crate::error::policy_not_attachable_exception::Builder { + crate::error::policy_not_attachable_exception::Builder::default() } } ///

    The specified service does not support service-specific credentials.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceNotSupportedError { +pub struct ServiceNotSupportedException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceNotSupportedError { +impl std::fmt::Debug for ServiceNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceNotSupportedError"); + let mut formatter = f.debug_struct("ServiceNotSupportedException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceNotSupportedError { +impl ServiceNotSupportedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceNotSupportedError { +impl std::fmt::Display for ServiceNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceNotSupportedError [ServiceNotSupportedException]")?; + write!(f, "ServiceNotSupportedException")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for ServiceNotSupportedError {} -/// See [`ServiceNotSupportedError`](crate::error::ServiceNotSupportedError) -pub mod service_not_supported_error { - /// A builder for [`ServiceNotSupportedError`](crate::error::ServiceNotSupportedError) +impl std::error::Error for ServiceNotSupportedException {} +/// See [`ServiceNotSupportedException`](crate::error::ServiceNotSupportedException) +pub mod service_not_supported_exception { + /// A builder for [`ServiceNotSupportedException`](crate::error::ServiceNotSupportedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16845,55 +17260,52 @@ pub mod service_not_supported_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceNotSupportedError`](crate::error::ServiceNotSupportedError) - pub fn build(self) -> crate::error::ServiceNotSupportedError { - crate::error::ServiceNotSupportedError { + /// Consumes the builder and constructs a [`ServiceNotSupportedException`](crate::error::ServiceNotSupportedException) + pub fn build(self) -> crate::error::ServiceNotSupportedException { + crate::error::ServiceNotSupportedException { message: self.message, } } } } -impl ServiceNotSupportedError { - /// Creates a new builder-style object to manufacture [`ServiceNotSupportedError`](crate::error::ServiceNotSupportedError) - pub fn builder() -> crate::error::service_not_supported_error::Builder { - crate::error::service_not_supported_error::Builder::default() +impl ServiceNotSupportedException { + /// Creates a new builder-style object to manufacture [`ServiceNotSupportedException`](crate::error::ServiceNotSupportedException) + pub fn builder() -> crate::error::service_not_supported_exception::Builder { + crate::error::service_not_supported_exception::Builder::default() } } ///

    The request was rejected because the credential report is still being generated.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CredentialReportNotReadyError { +pub struct CredentialReportNotReadyException { pub message: std::option::Option, } -impl std::fmt::Debug for CredentialReportNotReadyError { +impl std::fmt::Debug for CredentialReportNotReadyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CredentialReportNotReadyError"); + let mut formatter = f.debug_struct("CredentialReportNotReadyException"); formatter.field("message", &self.message); formatter.finish() } } -impl CredentialReportNotReadyError { +impl CredentialReportNotReadyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CredentialReportNotReadyError { +impl std::fmt::Display for CredentialReportNotReadyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CredentialReportNotReadyError [CredentialReportNotReadyException]" - )?; + write!(f, "CredentialReportNotReadyException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for CredentialReportNotReadyError {} -/// See [`CredentialReportNotReadyError`](crate::error::CredentialReportNotReadyError) -pub mod credential_report_not_ready_error { - /// A builder for [`CredentialReportNotReadyError`](crate::error::CredentialReportNotReadyError) +impl std::error::Error for CredentialReportNotReadyException {} +/// See [`CredentialReportNotReadyException`](crate::error::CredentialReportNotReadyException) +pub mod credential_report_not_ready_exception { + /// A builder for [`CredentialReportNotReadyException`](crate::error::CredentialReportNotReadyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16908,18 +17320,18 @@ pub mod credential_report_not_ready_error { self.message = input; self } - /// Consumes the builder and constructs a [`CredentialReportNotReadyError`](crate::error::CredentialReportNotReadyError) - pub fn build(self) -> crate::error::CredentialReportNotReadyError { - crate::error::CredentialReportNotReadyError { + /// Consumes the builder and constructs a [`CredentialReportNotReadyException`](crate::error::CredentialReportNotReadyException) + pub fn build(self) -> crate::error::CredentialReportNotReadyException { + crate::error::CredentialReportNotReadyException { message: self.message, } } } } -impl CredentialReportNotReadyError { - /// Creates a new builder-style object to manufacture [`CredentialReportNotReadyError`](crate::error::CredentialReportNotReadyError) - pub fn builder() -> crate::error::credential_report_not_ready_error::Builder { - crate::error::credential_report_not_ready_error::Builder::default() +impl CredentialReportNotReadyException { + /// Creates a new builder-style object to manufacture [`CredentialReportNotReadyException`](crate::error::CredentialReportNotReadyException) + pub fn builder() -> crate::error::credential_report_not_ready_exception::Builder { + crate::error::credential_report_not_ready_exception::Builder::default() } } @@ -16927,37 +17339,34 @@ impl CredentialReportNotReadyError { /// credential report, use GenerateCredentialReport.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CredentialReportNotPresentError { +pub struct CredentialReportNotPresentException { pub message: std::option::Option, } -impl std::fmt::Debug for CredentialReportNotPresentError { +impl std::fmt::Debug for CredentialReportNotPresentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CredentialReportNotPresentError"); + let mut formatter = f.debug_struct("CredentialReportNotPresentException"); formatter.field("message", &self.message); formatter.finish() } } -impl CredentialReportNotPresentError { +impl CredentialReportNotPresentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CredentialReportNotPresentError { +impl std::fmt::Display for CredentialReportNotPresentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CredentialReportNotPresentError [CredentialReportNotPresentException]" - )?; + write!(f, "CredentialReportNotPresentException")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for CredentialReportNotPresentError {} -/// See [`CredentialReportNotPresentError`](crate::error::CredentialReportNotPresentError) -pub mod credential_report_not_present_error { - /// A builder for [`CredentialReportNotPresentError`](crate::error::CredentialReportNotPresentError) +impl std::error::Error for CredentialReportNotPresentException {} +/// See [`CredentialReportNotPresentException`](crate::error::CredentialReportNotPresentException) +pub mod credential_report_not_present_exception { + /// A builder for [`CredentialReportNotPresentException`](crate::error::CredentialReportNotPresentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16972,18 +17381,18 @@ pub mod credential_report_not_present_error { self.message = input; self } - /// Consumes the builder and constructs a [`CredentialReportNotPresentError`](crate::error::CredentialReportNotPresentError) - pub fn build(self) -> crate::error::CredentialReportNotPresentError { - crate::error::CredentialReportNotPresentError { + /// Consumes the builder and constructs a [`CredentialReportNotPresentException`](crate::error::CredentialReportNotPresentException) + pub fn build(self) -> crate::error::CredentialReportNotPresentException { + crate::error::CredentialReportNotPresentException { message: self.message, } } } } -impl CredentialReportNotPresentError { - /// Creates a new builder-style object to manufacture [`CredentialReportNotPresentError`](crate::error::CredentialReportNotPresentError) - pub fn builder() -> crate::error::credential_report_not_present_error::Builder { - crate::error::credential_report_not_present_error::Builder::default() +impl CredentialReportNotPresentException { + /// Creates a new builder-style object to manufacture [`CredentialReportNotPresentException`](crate::error::CredentialReportNotPresentException) + pub fn builder() -> crate::error::credential_report_not_present_exception::Builder { + crate::error::credential_report_not_present_exception::Builder::default() } } @@ -16993,37 +17402,34 @@ impl CredentialReportNotPresentError { /// IAM User Guide.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CredentialReportExpiredError { +pub struct CredentialReportExpiredException { pub message: std::option::Option, } -impl std::fmt::Debug for CredentialReportExpiredError { +impl std::fmt::Debug for CredentialReportExpiredException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CredentialReportExpiredError"); + let mut formatter = f.debug_struct("CredentialReportExpiredException"); formatter.field("message", &self.message); formatter.finish() } } -impl CredentialReportExpiredError { +impl CredentialReportExpiredException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CredentialReportExpiredError { +impl std::fmt::Display for CredentialReportExpiredException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CredentialReportExpiredError [CredentialReportExpiredException]" - )?; + write!(f, "CredentialReportExpiredException")?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; } Ok(()) } } -impl std::error::Error for CredentialReportExpiredError {} -/// See [`CredentialReportExpiredError`](crate::error::CredentialReportExpiredError) -pub mod credential_report_expired_error { - /// A builder for [`CredentialReportExpiredError`](crate::error::CredentialReportExpiredError) +impl std::error::Error for CredentialReportExpiredException {} +/// See [`CredentialReportExpiredException`](crate::error::CredentialReportExpiredException) +pub mod credential_report_expired_exception { + /// A builder for [`CredentialReportExpiredException`](crate::error::CredentialReportExpiredException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17038,18 +17444,18 @@ pub mod credential_report_expired_error { self.message = input; self } - /// Consumes the builder and constructs a [`CredentialReportExpiredError`](crate::error::CredentialReportExpiredError) - pub fn build(self) -> crate::error::CredentialReportExpiredError { - crate::error::CredentialReportExpiredError { + /// Consumes the builder and constructs a [`CredentialReportExpiredException`](crate::error::CredentialReportExpiredException) + pub fn build(self) -> crate::error::CredentialReportExpiredException { + crate::error::CredentialReportExpiredException { message: self.message, } } } } -impl CredentialReportExpiredError { - /// Creates a new builder-style object to manufacture [`CredentialReportExpiredError`](crate::error::CredentialReportExpiredError) - pub fn builder() -> crate::error::credential_report_expired_error::Builder { - crate::error::credential_report_expired_error::Builder::default() +impl CredentialReportExpiredException { + /// Creates a new builder-style object to manufacture [`CredentialReportExpiredException`](crate::error::CredentialReportExpiredException) + pub fn builder() -> crate::error::credential_report_expired_exception::Builder { + crate::error::credential_report_expired_exception::Builder::default() } } @@ -17057,37 +17463,34 @@ impl CredentialReportExpiredError { /// already running.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReportGenerationLimitExceededError { +pub struct ReportGenerationLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for ReportGenerationLimitExceededError { +impl std::fmt::Debug for ReportGenerationLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReportGenerationLimitExceededError"); + let mut formatter = f.debug_struct("ReportGenerationLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ReportGenerationLimitExceededError { +impl ReportGenerationLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReportGenerationLimitExceededError { +impl std::fmt::Display for ReportGenerationLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ReportGenerationLimitExceededError [ReportGenerationLimitExceededException]" - )?; + write!(f, "ReportGenerationLimitExceededException")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for ReportGenerationLimitExceededError {} -/// See [`ReportGenerationLimitExceededError`](crate::error::ReportGenerationLimitExceededError) -pub mod report_generation_limit_exceeded_error { - /// A builder for [`ReportGenerationLimitExceededError`](crate::error::ReportGenerationLimitExceededError) +impl std::error::Error for ReportGenerationLimitExceededException {} +/// See [`ReportGenerationLimitExceededException`](crate::error::ReportGenerationLimitExceededException) +pub mod report_generation_limit_exceeded_exception { + /// A builder for [`ReportGenerationLimitExceededException`](crate::error::ReportGenerationLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17102,18 +17505,18 @@ pub mod report_generation_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ReportGenerationLimitExceededError`](crate::error::ReportGenerationLimitExceededError) - pub fn build(self) -> crate::error::ReportGenerationLimitExceededError { - crate::error::ReportGenerationLimitExceededError { + /// Consumes the builder and constructs a [`ReportGenerationLimitExceededException`](crate::error::ReportGenerationLimitExceededException) + pub fn build(self) -> crate::error::ReportGenerationLimitExceededException { + crate::error::ReportGenerationLimitExceededException { message: self.message, } } } } -impl ReportGenerationLimitExceededError { - /// Creates a new builder-style object to manufacture [`ReportGenerationLimitExceededError`](crate::error::ReportGenerationLimitExceededError) - pub fn builder() -> crate::error::report_generation_limit_exceeded_error::Builder { - crate::error::report_generation_limit_exceeded_error::Builder::default() +impl ReportGenerationLimitExceededException { + /// Creates a new builder-style object to manufacture [`ReportGenerationLimitExceededException`](crate::error::ReportGenerationLimitExceededException) + pub fn builder() -> crate::error::report_generation_limit_exceeded_exception::Builder { + crate::error::report_generation_limit_exceeded_exception::Builder::default() } } @@ -17121,34 +17524,34 @@ impl ReportGenerationLimitExceededError { /// subordinate entities. The error message describes these entities.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteConflictError { +pub struct DeleteConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for DeleteConflictError { +impl std::fmt::Debug for DeleteConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteConflictError"); + let mut formatter = f.debug_struct("DeleteConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl DeleteConflictError { +impl DeleteConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DeleteConflictError { +impl std::fmt::Display for DeleteConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DeleteConflictError [DeleteConflictException]")?; + write!(f, "DeleteConflictException")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for DeleteConflictError {} -/// See [`DeleteConflictError`](crate::error::DeleteConflictError) -pub mod delete_conflict_error { - /// A builder for [`DeleteConflictError`](crate::error::DeleteConflictError) +impl std::error::Error for DeleteConflictException {} +/// See [`DeleteConflictException`](crate::error::DeleteConflictException) +pub mod delete_conflict_exception { + /// A builder for [`DeleteConflictException`](crate::error::DeleteConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17163,18 +17566,18 @@ pub mod delete_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`DeleteConflictError`](crate::error::DeleteConflictError) - pub fn build(self) -> crate::error::DeleteConflictError { - crate::error::DeleteConflictError { + /// Consumes the builder and constructs a [`DeleteConflictException`](crate::error::DeleteConflictException) + pub fn build(self) -> crate::error::DeleteConflictException { + crate::error::DeleteConflictException { message: self.message, } } } } -impl DeleteConflictError { - /// Creates a new builder-style object to manufacture [`DeleteConflictError`](crate::error::DeleteConflictError) - pub fn builder() -> crate::error::delete_conflict_error::Builder { - crate::error::delete_conflict_error::Builder::default() +impl DeleteConflictException { + /// Creates a new builder-style object to manufacture [`DeleteConflictException`](crate::error::DeleteConflictException) + pub fn builder() -> crate::error::delete_conflict_exception::Builder { + crate::error::delete_conflict_exception::Builder::default() } } @@ -17182,34 +17585,34 @@ impl DeleteConflictError { /// incorrect.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidUserTypeError { +pub struct InvalidUserTypeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidUserTypeError { +impl std::fmt::Debug for InvalidUserTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidUserTypeError"); + let mut formatter = f.debug_struct("InvalidUserTypeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidUserTypeError { +impl InvalidUserTypeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidUserTypeError { +impl std::fmt::Display for InvalidUserTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidUserTypeError [InvalidUserTypeException]")?; + write!(f, "InvalidUserTypeException")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for InvalidUserTypeError {} -/// See [`InvalidUserTypeError`](crate::error::InvalidUserTypeError) -pub mod invalid_user_type_error { - /// A builder for [`InvalidUserTypeError`](crate::error::InvalidUserTypeError) +impl std::error::Error for InvalidUserTypeException {} +/// See [`InvalidUserTypeException`](crate::error::InvalidUserTypeException) +pub mod invalid_user_type_exception { + /// A builder for [`InvalidUserTypeException`](crate::error::InvalidUserTypeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17224,17 +17627,17 @@ pub mod invalid_user_type_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidUserTypeError`](crate::error::InvalidUserTypeError) - pub fn build(self) -> crate::error::InvalidUserTypeError { - crate::error::InvalidUserTypeError { + /// Consumes the builder and constructs a [`InvalidUserTypeException`](crate::error::InvalidUserTypeException) + pub fn build(self) -> crate::error::InvalidUserTypeException { + crate::error::InvalidUserTypeException { message: self.message, } } } } -impl InvalidUserTypeError { - /// Creates a new builder-style object to manufacture [`InvalidUserTypeError`](crate::error::InvalidUserTypeError) - pub fn builder() -> crate::error::invalid_user_type_error::Builder { - crate::error::invalid_user_type_error::Builder::default() +impl InvalidUserTypeException { + /// Creates a new builder-style object to manufacture [`InvalidUserTypeException`](crate::error::InvalidUserTypeException) + pub fn builder() -> crate::error::invalid_user_type_exception::Builder { + crate::error::invalid_user_type_exception::Builder::default() } } diff --git a/sdk/iam/src/error_meta.rs b/sdk/iam/src/error_meta.rs index 37609e71b9aa..04aa9ccd3803 100644 --- a/sdk/iam/src/error_meta.rs +++ b/sdk/iam/src/error_meta.rs @@ -2,65 +2,65 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ConcurrentModificationError(crate::error::ConcurrentModificationError), - CredentialReportExpiredError(crate::error::CredentialReportExpiredError), - CredentialReportNotPresentError(crate::error::CredentialReportNotPresentError), - CredentialReportNotReadyError(crate::error::CredentialReportNotReadyError), - DeleteConflictError(crate::error::DeleteConflictError), - DuplicateCertificateError(crate::error::DuplicateCertificateError), - DuplicateSSHPublicKeyError(crate::error::DuplicateSSHPublicKeyError), - EntityAlreadyExistsError(crate::error::EntityAlreadyExistsError), - EntityTemporarilyUnmodifiableError(crate::error::EntityTemporarilyUnmodifiableError), - InvalidAuthenticationCodeError(crate::error::InvalidAuthenticationCodeError), - InvalidCertificateError(crate::error::InvalidCertificateError), - InvalidInputError(crate::error::InvalidInputError), - InvalidPublicKeyError(crate::error::InvalidPublicKeyError), - InvalidUserTypeError(crate::error::InvalidUserTypeError), - KeyPairMismatchError(crate::error::KeyPairMismatchError), - LimitExceededError(crate::error::LimitExceededError), - MalformedCertificateError(crate::error::MalformedCertificateError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NoSuchEntityError(crate::error::NoSuchEntityError), - PasswordPolicyViolationError(crate::error::PasswordPolicyViolationError), - PolicyEvaluationError(crate::error::PolicyEvaluationError), - PolicyNotAttachableError(crate::error::PolicyNotAttachableError), - ReportGenerationLimitExceededError(crate::error::ReportGenerationLimitExceededError), - ServiceFailureError(crate::error::ServiceFailureError), - ServiceNotSupportedError(crate::error::ServiceNotSupportedError), - UnmodifiableEntityError(crate::error::UnmodifiableEntityError), - UnrecognizedPublicKeyEncodingError(crate::error::UnrecognizedPublicKeyEncodingError), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + CredentialReportExpiredException(crate::error::CredentialReportExpiredException), + CredentialReportNotPresentException(crate::error::CredentialReportNotPresentException), + CredentialReportNotReadyException(crate::error::CredentialReportNotReadyException), + DeleteConflictException(crate::error::DeleteConflictException), + DuplicateCertificateException(crate::error::DuplicateCertificateException), + DuplicateSshPublicKeyException(crate::error::DuplicateSshPublicKeyException), + EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException), + EntityTemporarilyUnmodifiableException(crate::error::EntityTemporarilyUnmodifiableException), + InvalidAuthenticationCodeException(crate::error::InvalidAuthenticationCodeException), + InvalidCertificateException(crate::error::InvalidCertificateException), + InvalidInputException(crate::error::InvalidInputException), + InvalidPublicKeyException(crate::error::InvalidPublicKeyException), + InvalidUserTypeException(crate::error::InvalidUserTypeException), + KeyPairMismatchException(crate::error::KeyPairMismatchException), + LimitExceededException(crate::error::LimitExceededException), + MalformedCertificateException(crate::error::MalformedCertificateException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NoSuchEntityException(crate::error::NoSuchEntityException), + PasswordPolicyViolationException(crate::error::PasswordPolicyViolationException), + PolicyEvaluationException(crate::error::PolicyEvaluationException), + PolicyNotAttachableException(crate::error::PolicyNotAttachableException), + ReportGenerationLimitExceededException(crate::error::ReportGenerationLimitExceededException), + ServiceFailureException(crate::error::ServiceFailureException), + ServiceNotSupportedException(crate::error::ServiceNotSupportedException), + UnmodifiableEntityException(crate::error::UnmodifiableEntityException), + UnrecognizedPublicKeyEncodingException(crate::error::UnrecognizedPublicKeyEncodingException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ConcurrentModificationError(inner) => inner.fmt(f), - Error::CredentialReportExpiredError(inner) => inner.fmt(f), - Error::CredentialReportNotPresentError(inner) => inner.fmt(f), - Error::CredentialReportNotReadyError(inner) => inner.fmt(f), - Error::DeleteConflictError(inner) => inner.fmt(f), - Error::DuplicateCertificateError(inner) => inner.fmt(f), - Error::DuplicateSSHPublicKeyError(inner) => inner.fmt(f), - Error::EntityAlreadyExistsError(inner) => inner.fmt(f), - Error::EntityTemporarilyUnmodifiableError(inner) => inner.fmt(f), - Error::InvalidAuthenticationCodeError(inner) => inner.fmt(f), - Error::InvalidCertificateError(inner) => inner.fmt(f), - Error::InvalidInputError(inner) => inner.fmt(f), - Error::InvalidPublicKeyError(inner) => inner.fmt(f), - Error::InvalidUserTypeError(inner) => inner.fmt(f), - Error::KeyPairMismatchError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MalformedCertificateError(inner) => inner.fmt(f), - Error::MalformedPolicyDocumentError(inner) => inner.fmt(f), - Error::NoSuchEntityError(inner) => inner.fmt(f), - Error::PasswordPolicyViolationError(inner) => inner.fmt(f), - Error::PolicyEvaluationError(inner) => inner.fmt(f), - Error::PolicyNotAttachableError(inner) => inner.fmt(f), - Error::ReportGenerationLimitExceededError(inner) => inner.fmt(f), - Error::ServiceFailureError(inner) => inner.fmt(f), - Error::ServiceNotSupportedError(inner) => inner.fmt(f), - Error::UnmodifiableEntityError(inner) => inner.fmt(f), - Error::UnrecognizedPublicKeyEncodingError(inner) => inner.fmt(f), + Error::ConcurrentModificationException(inner) => inner.fmt(f), + Error::CredentialReportExpiredException(inner) => inner.fmt(f), + Error::CredentialReportNotPresentException(inner) => inner.fmt(f), + Error::CredentialReportNotReadyException(inner) => inner.fmt(f), + Error::DeleteConflictException(inner) => inner.fmt(f), + Error::DuplicateCertificateException(inner) => inner.fmt(f), + Error::DuplicateSshPublicKeyException(inner) => inner.fmt(f), + Error::EntityAlreadyExistsException(inner) => inner.fmt(f), + Error::EntityTemporarilyUnmodifiableException(inner) => inner.fmt(f), + Error::InvalidAuthenticationCodeException(inner) => inner.fmt(f), + Error::InvalidCertificateException(inner) => inner.fmt(f), + Error::InvalidInputException(inner) => inner.fmt(f), + Error::InvalidPublicKeyException(inner) => inner.fmt(f), + Error::InvalidUserTypeException(inner) => inner.fmt(f), + Error::KeyPairMismatchException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MalformedCertificateException(inner) => inner.fmt(f), + Error::MalformedPolicyDocumentException(inner) => inner.fmt(f), + Error::NoSuchEntityException(inner) => inner.fmt(f), + Error::PasswordPolicyViolationException(inner) => inner.fmt(f), + Error::PolicyEvaluationException(inner) => inner.fmt(f), + Error::PolicyNotAttachableException(inner) => inner.fmt(f), + Error::ReportGenerationLimitExceededException(inner) => inner.fmt(f), + Error::ServiceFailureException(inner) => inner.fmt(f), + Error::ServiceNotSupportedException(inner) => inner.fmt(f), + Error::UnmodifiableEntityException(inner) => inner.fmt(f), + Error::UnrecognizedPublicKeyEncodingException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -72,23 +72,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputError( - inner, - ) => Error::InvalidInputError(inner), - crate::error::AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededError( - inner, - ) => Error::LimitExceededError(inner), - crate::error::AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityError( - inner, - ) => Error::NoSuchEntityError(inner), - crate::error::AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureError( - inner, - ) => Error::ServiceFailureError(inner), - crate::error::AddClientIDToOpenIDConnectProviderErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -99,21 +89,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsError( + crate::error::AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsException( inner, - ) => Error::EntityAlreadyExistsError(inner), - crate::error::AddRoleToInstanceProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::AddRoleToInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + ) => Error::EntityAlreadyExistsException(inner), + crate::error::AddRoleToInstanceProfileErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AddRoleToInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::AddRoleToInstanceProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::AddRoleToInstanceProfileErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::AddRoleToInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } + crate::error::AddRoleToInstanceProfileErrorKind::UnmodifiableEntityException( + inner, + ) => Error::UnmodifiableEntityException(inner), crate::error::AddRoleToInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -126,14 +116,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddUserToGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::AddUserToGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AddUserToGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::AddUserToGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::AddUserToGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::AddUserToGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::AddUserToGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -145,20 +135,20 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AttachGroupPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::AttachGroupPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::AttachGroupPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::AttachGroupPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AttachGroupPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::AttachGroupPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::AttachGroupPolicyErrorKind::PolicyNotAttachableError(inner) => { - Error::PolicyNotAttachableError(inner) + crate::error::AttachGroupPolicyErrorKind::PolicyNotAttachableException(inner) => { + Error::PolicyNotAttachableException(inner) } - crate::error::AttachGroupPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::AttachGroupPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::AttachGroupPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -172,23 +162,23 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AttachRolePolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::AttachRolePolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::AttachRolePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::AttachRolePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AttachRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::AttachRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::AttachRolePolicyErrorKind::PolicyNotAttachableError(inner) => { - Error::PolicyNotAttachableError(inner) + crate::error::AttachRolePolicyErrorKind::PolicyNotAttachableException(inner) => { + Error::PolicyNotAttachableException(inner) } - crate::error::AttachRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::AttachRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::AttachRolePolicyErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::AttachRolePolicyErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::AttachRolePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -202,20 +192,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AttachUserPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::AttachUserPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::AttachUserPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::AttachUserPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AttachUserPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::AttachUserPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::AttachUserPolicyErrorKind::PolicyNotAttachableError(inner) => { - Error::PolicyNotAttachableError(inner) + crate::error::AttachUserPolicyErrorKind::PolicyNotAttachableException(inner) => { + Error::PolicyNotAttachableException(inner) } - crate::error::AttachUserPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::AttachUserPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::AttachUserPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -229,23 +219,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ChangePasswordErrorKind::EntityTemporarilyUnmodifiableError( + crate::error::ChangePasswordErrorKind::EntityTemporarilyUnmodifiableException( inner, - ) => Error::EntityTemporarilyUnmodifiableError(inner), - crate::error::ChangePasswordErrorKind::InvalidUserTypeError(inner) => { - Error::InvalidUserTypeError(inner) + ) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::ChangePasswordErrorKind::InvalidUserTypeException(inner) => { + Error::InvalidUserTypeException(inner) } - crate::error::ChangePasswordErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ChangePasswordErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ChangePasswordErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ChangePasswordErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ChangePasswordErrorKind::PasswordPolicyViolationError(inner) => { - Error::PasswordPolicyViolationError(inner) + crate::error::ChangePasswordErrorKind::PasswordPolicyViolationException(inner) => { + Error::PasswordPolicyViolationException(inner) } - crate::error::ChangePasswordErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ChangePasswordErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ChangePasswordErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -257,14 +247,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateAccessKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateAccessKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateAccessKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreateAccessKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreateAccessKeyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateAccessKeyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateAccessKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -276,14 +266,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateAccountAliasErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateAccountAliasErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateAccountAliasErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateAccountAliasErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateAccountAliasErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateAccountAliasErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateAccountAliasErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -297,17 +287,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateGroupErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateGroupErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreateGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreateGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -319,20 +309,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateInstanceProfileErrorKind::ConcurrentModificationError( + crate::error::CreateInstanceProfileErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::CreateInstanceProfileErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) - } - crate::error::CreateInstanceProfileErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateInstanceProfileErrorKind::EntityAlreadyExistsException( + inner, + ) => Error::EntityAlreadyExistsException(inner), + crate::error::CreateInstanceProfileErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateInstanceProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateInstanceProfileErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -346,20 +336,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateLoginProfileErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateLoginProfileErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateLoginProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateLoginProfileErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateLoginProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreateLoginProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreateLoginProfileErrorKind::PasswordPolicyViolationError(inner) => { - Error::PasswordPolicyViolationError(inner) - } - crate::error::CreateLoginProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateLoginProfileErrorKind::PasswordPolicyViolationException( + inner, + ) => Error::PasswordPolicyViolationException(inner), + crate::error::CreateLoginProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateLoginProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -374,26 +364,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateOpenIDConnectProviderErrorKind::ConcurrentModificationError( - inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsError( - inner, - ) => Error::EntityAlreadyExistsError(inner), - crate::error::CreateOpenIDConnectProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::CreateOpenIDConnectProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::CreateOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::CreateOpenIDConnectProviderErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::CreateOpenIDConnectProviderErrorKind::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner), + crate::error::CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsException(inner) => Error::EntityAlreadyExistsException(inner), + crate::error::CreateOpenIDConnectProviderErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::CreateOpenIDConnectProviderErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::CreateOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::CreateOpenIDConnectProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -402,23 +380,23 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreatePolicyErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::CreatePolicyErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::CreatePolicyErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreatePolicyErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreatePolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::CreatePolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreatePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreatePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreatePolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::CreatePolicyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::CreatePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreatePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreatePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -430,20 +408,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreatePolicyVersionErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::CreatePolicyVersionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreatePolicyVersionErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreatePolicyVersionErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::CreatePolicyVersionErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreatePolicyVersionErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreatePolicyVersionErrorKind::MalformedPolicyDocumentException( + inner, + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::CreatePolicyVersionErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreatePolicyVersionErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreatePolicyVersionErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreatePolicyVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -457,23 +435,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateRoleErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::CreateRoleErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::CreateRoleErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateRoleErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateRoleErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::CreateRoleErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateRoleErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateRoleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateRoleErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::CreateRoleErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::CreateRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -485,20 +463,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateSAMLProviderErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::CreateSAMLProviderErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateSAMLProviderErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateSAMLProviderErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::CreateSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateSAMLProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateSAMLProviderErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateSAMLProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -514,17 +492,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateServiceLinkedRoleErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::CreateServiceLinkedRoleErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateServiceLinkedRoleErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateServiceLinkedRoleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateServiceLinkedRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreateServiceLinkedRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreateServiceLinkedRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateServiceLinkedRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateServiceLinkedRoleErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -542,9 +520,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateServiceSpecificCredentialErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::CreateServiceSpecificCredentialErrorKind::NoSuchEntityError(inner) => Error::NoSuchEntityError(inner), - crate::error::CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedError(inner) => Error::ServiceNotSupportedError(inner), + crate::error::CreateServiceSpecificCredentialErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::CreateServiceSpecificCredentialErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedException(inner) => Error::ServiceNotSupportedException(inner), crate::error::CreateServiceSpecificCredentialErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -555,23 +533,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateUserErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::CreateUserErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::CreateUserErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::CreateUserErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::CreateUserErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::CreateUserErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateUserErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateUserErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::CreateUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::CreateUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -583,20 +561,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateVirtualMFADeviceErrorKind::ConcurrentModificationError( + crate::error::CreateVirtualMFADeviceErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) - } - crate::error::CreateVirtualMFADeviceErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsException( + inner, + ) => Error::EntityAlreadyExistsException(inner), + crate::error::CreateVirtualMFADeviceErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::CreateVirtualMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateVirtualMFADeviceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateVirtualMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::CreateVirtualMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::CreateVirtualMFADeviceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -609,23 +587,13 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableError( - inner, - ) => Error::EntityTemporarilyUnmodifiableError(inner), - crate::error::DeactivateMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::DeactivateMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeactivateMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::DeactivateMFADeviceErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableException(inner) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::DeactivateMFADeviceErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::DeactivateMFADeviceErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::DeactivateMFADeviceErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::DeactivateMFADeviceErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -634,14 +602,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAccessKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteAccessKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteAccessKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteAccessKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteAccessKeyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteAccessKeyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteAccessKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -653,14 +621,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAccountAliasErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteAccountAliasErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteAccountAliasErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteAccountAliasErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteAccountAliasErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteAccountAliasErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteAccountAliasErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -676,15 +644,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAccountPasswordPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::DeleteAccountPasswordPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeleteAccountPasswordPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } + crate::error::DeleteAccountPasswordPolicyErrorKind::LimitExceededException( + inner, + ) => Error::LimitExceededException(inner), + crate::error::DeleteAccountPasswordPolicyErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), + crate::error::DeleteAccountPasswordPolicyErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::DeleteAccountPasswordPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -697,17 +665,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteGroupErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteGroupErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -719,14 +687,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteGroupPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteGroupPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteGroupPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteGroupPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteGroupPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteGroupPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteGroupPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -740,17 +708,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteInstanceProfileErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteInstanceProfileErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteInstanceProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteInstanceProfileErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteInstanceProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -763,23 +731,13 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableError( - inner, - ) => Error::EntityTemporarilyUnmodifiableError(inner), - crate::error::DeleteLoginProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::DeleteLoginProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeleteLoginProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::DeleteLoginProfileErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(inner) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::DeleteLoginProfileErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::DeleteLoginProfileErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::DeleteLoginProfileErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::DeleteLoginProfileErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -790,15 +748,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteOpenIDConnectProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::DeleteOpenIDConnectProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeleteOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } + crate::error::DeleteOpenIDConnectProviderErrorKind::InvalidInputException( + inner, + ) => Error::InvalidInputException(inner), + crate::error::DeleteOpenIDConnectProviderErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), + crate::error::DeleteOpenIDConnectProviderErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::DeleteOpenIDConnectProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -811,20 +769,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeletePolicyErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeletePolicyErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeletePolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DeletePolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DeletePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeletePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeletePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeletePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeletePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeletePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeletePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -836,20 +794,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeletePolicyVersionErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeletePolicyVersionErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeletePolicyVersionErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DeletePolicyVersionErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DeletePolicyVersionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeletePolicyVersionErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeletePolicyVersionErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeletePolicyVersionErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeletePolicyVersionErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeletePolicyVersionErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeletePolicyVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -863,23 +821,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRoleErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::DeleteRoleErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::DeleteRoleErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteRoleErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteRoleErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteRoleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::DeleteRoleErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::DeleteRoleErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::DeleteRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -894,20 +852,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeleteRolePermissionsBoundaryErrorKind::ServiceFailureError( - inner, - ) => Error::ServiceFailureError(inner), - crate::error::DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityError( - inner, - ) => Error::UnmodifiableEntityError(inner), - crate::error::DeleteRolePermissionsBoundaryErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::DeleteRolePermissionsBoundaryErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityException(inner) => Error::UnmodifiableEntityException(inner), + crate::error::DeleteRolePermissionsBoundaryErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -916,17 +866,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteRolePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteRolePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::DeleteRolePolicyErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::DeleteRolePolicyErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::DeleteRolePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -940,17 +890,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DeleteSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DeleteSAMLProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteSAMLProviderErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteSAMLProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteSAMLProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteSAMLProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -966,17 +916,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteServerCertificateErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteServerCertificateErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteServerCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteServerCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteServerCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteServerCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -992,14 +942,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteServiceLinkedRoleErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteServiceLinkedRoleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteServiceLinkedRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteServiceLinkedRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteServiceLinkedRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteServiceLinkedRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteServiceLinkedRoleErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1017,9 +967,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteServiceSpecificCredentialErrorKind::NoSuchEntityError( + crate::error::DeleteServiceSpecificCredentialErrorKind::NoSuchEntityException( inner, - ) => Error::NoSuchEntityError(inner), + ) => Error::NoSuchEntityException(inner), crate::error::DeleteServiceSpecificCredentialErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1034,14 +984,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSigningCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteSigningCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteSigningCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteSigningCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteSigningCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteSigningCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteSigningCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1055,8 +1005,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSSHPublicKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteSSHPublicKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } crate::error::DeleteSSHPublicKeyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1070,20 +1020,20 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteUserErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::DeleteUserErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::DeleteUserErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteUserErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteUserErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteUserErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1099,12 +1049,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::DeleteUserPermissionsBoundaryErrorKind::ServiceFailureError( + crate::error::DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), + crate::error::DeleteUserPermissionsBoundaryErrorKind::ServiceFailureException( inner, - ) => Error::ServiceFailureError(inner), + ) => Error::ServiceFailureException(inner), crate::error::DeleteUserPermissionsBoundaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1117,14 +1067,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteUserPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteUserPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteUserPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteUserPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteUserPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteUserPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteUserPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1138,17 +1088,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteVirtualMFADeviceErrorKind::DeleteConflictError(inner) => { - Error::DeleteConflictError(inner) + crate::error::DeleteVirtualMFADeviceErrorKind::DeleteConflictException(inner) => { + Error::DeleteConflictException(inner) } - crate::error::DeleteVirtualMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteVirtualMFADeviceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteVirtualMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DeleteVirtualMFADeviceErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DeleteVirtualMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteVirtualMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteVirtualMFADeviceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1162,17 +1112,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DetachGroupPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DetachGroupPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DetachGroupPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DetachGroupPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DetachGroupPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DetachGroupPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DetachGroupPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DetachGroupPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DetachGroupPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1186,20 +1136,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DetachRolePolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DetachRolePolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DetachRolePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DetachRolePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DetachRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DetachRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DetachRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DetachRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::DetachRolePolicyErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::DetachRolePolicyErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::DetachRolePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1213,17 +1163,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DetachUserPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::DetachUserPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::DetachUserPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DetachUserPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DetachUserPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::DetachUserPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::DetachUserPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DetachUserPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DetachUserPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1237,23 +1187,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EnableMFADeviceErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::EnableMFADeviceErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableError( + crate::error::EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableException( inner, - ) => Error::EntityTemporarilyUnmodifiableError(inner), - crate::error::EnableMFADeviceErrorKind::InvalidAuthenticationCodeError(inner) => { - Error::InvalidAuthenticationCodeError(inner) - } - crate::error::EnableMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + ) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::EnableMFADeviceErrorKind::InvalidAuthenticationCodeException( + inner, + ) => Error::InvalidAuthenticationCodeException(inner), + crate::error::EnableMFADeviceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::EnableMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::EnableMFADeviceErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::EnableMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::EnableMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::EnableMFADeviceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1267,11 +1217,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateCredentialReportErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::GenerateCredentialReportErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::GenerateCredentialReportErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GenerateCredentialReportErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GenerateCredentialReportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1289,7 +1239,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededError(inner) => Error::ReportGenerationLimitExceededError(inner), + crate::error::GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededException(inner) => Error::ReportGenerationLimitExceededException(inner), crate::error::GenerateOrganizationsAccessReportErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1303,17 +1253,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateServiceLastAccessedDetailsErrorKind::InvalidInputError( - inner, - ) => Error::InvalidInputError(inner), - crate::error::GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityError( - inner, - ) => Error::NoSuchEntityError(inner), - crate::error::GenerateServiceLastAccessedDetailsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GenerateServiceLastAccessedDetailsErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::GenerateServiceLastAccessedDetailsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1322,8 +1266,8 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccessKeyLastUsedErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetAccessKeyLastUsedErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } crate::error::GetAccessKeyLastUsedErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1341,9 +1285,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountAuthorizationDetailsErrorKind::ServiceFailureError( + crate::error::GetAccountAuthorizationDetailsErrorKind::ServiceFailureException( inner, - ) => Error::ServiceFailureError(inner), + ) => Error::ServiceFailureException(inner), crate::error::GetAccountAuthorizationDetailsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1358,11 +1302,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountPasswordPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetAccountPasswordPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetAccountPasswordPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetAccountPasswordPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetAccountPasswordPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1376,8 +1320,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountSummaryErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetAccountSummaryErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetAccountSummaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1395,9 +1339,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetContextKeysForCustomPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } + crate::error::GetContextKeysForCustomPolicyErrorKind::InvalidInputException( + inner, + ) => Error::InvalidInputException(inner), crate::error::GetContextKeysForCustomPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1414,12 +1358,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetContextKeysForPrincipalPolicyErrorKind::InvalidInputError( + crate::error::GetContextKeysForPrincipalPolicyErrorKind::InvalidInputException( inner, - ) => Error::InvalidInputError(inner), - crate::error::GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityError( + ) => Error::InvalidInputException(inner), + crate::error::GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityException( inner, - ) => Error::NoSuchEntityError(inner), + ) => Error::NoSuchEntityException(inner), crate::error::GetContextKeysForPrincipalPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1432,17 +1376,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetCredentialReportErrorKind::CredentialReportExpiredError(inner) => { - Error::CredentialReportExpiredError(inner) - } - crate::error::GetCredentialReportErrorKind::CredentialReportNotPresentError( + crate::error::GetCredentialReportErrorKind::CredentialReportExpiredException( inner, - ) => Error::CredentialReportNotPresentError(inner), - crate::error::GetCredentialReportErrorKind::CredentialReportNotReadyError( + ) => Error::CredentialReportExpiredException(inner), + crate::error::GetCredentialReportErrorKind::CredentialReportNotPresentException( inner, - ) => Error::CredentialReportNotReadyError(inner), - crate::error::GetCredentialReportErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + ) => Error::CredentialReportNotPresentException(inner), + crate::error::GetCredentialReportErrorKind::CredentialReportNotReadyException( + inner, + ) => Error::CredentialReportNotReadyException(inner), + crate::error::GetCredentialReportErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetCredentialReportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1456,11 +1400,11 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1472,11 +1416,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetGroupPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetGroupPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetGroupPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetGroupPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetGroupPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1488,11 +1432,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetInstanceProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1506,11 +1450,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLoginProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetLoginProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetLoginProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetLoginProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetLoginProfileErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1524,14 +1468,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetOpenIDConnectProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::GetOpenIDConnectProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::GetOpenIDConnectProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetOpenIDConnectProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetOpenIDConnectProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1549,9 +1493,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetOrganizationsAccessReportErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } + crate::error::GetOrganizationsAccessReportErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), crate::error::GetOrganizationsAccessReportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1564,14 +1508,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::GetPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::GetPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1583,14 +1527,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetPolicyVersionErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::GetPolicyVersionErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::GetPolicyVersionErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetPolicyVersionErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetPolicyVersionErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetPolicyVersionErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetPolicyVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1604,11 +1548,11 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1620,11 +1564,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetRolePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1636,14 +1580,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::GetSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::GetSAMLProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetSAMLProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetSAMLProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1655,11 +1599,11 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetServerCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetServerCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1677,12 +1621,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetServiceLastAccessedDetailsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::GetServiceLastAccessedDetailsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } + crate::error::GetServiceLastAccessedDetailsErrorKind::InvalidInputException( + inner, + ) => Error::InvalidInputException(inner), + crate::error::GetServiceLastAccessedDetailsErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), crate::error::GetServiceLastAccessedDetailsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1703,8 +1647,8 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputError(inner) => Error::InvalidInputError(inner), - crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityError(inner) => Error::NoSuchEntityError(inner), + crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1718,20 +1662,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputError( - inner, - ) => Error::InvalidInputError(inner), - crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityError( - inner, - ) => Error::NoSuchEntityError(inner), - crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureError( - inner, - ) => Error::ServiceFailureError(inner), - crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1740,12 +1676,12 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSSHPublicKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetSSHPublicKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError( + crate::error::GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException( inner, - ) => Error::UnrecognizedPublicKeyEncodingError(inner), + ) => Error::UnrecognizedPublicKeyEncodingException(inner), crate::error::GetSSHPublicKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -1756,11 +1692,11 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1772,11 +1708,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetUserPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::GetUserPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::GetUserPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetUserPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetUserPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1788,11 +1724,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAccessKeysErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListAccessKeysErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListAccessKeysErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListAccessKeysErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListAccessKeysErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1804,8 +1740,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAccountAliasesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListAccountAliasesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListAccountAliasesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1821,15 +1757,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAttachedGroupPoliciesErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::ListAttachedGroupPoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListAttachedGroupPoliciesErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListAttachedGroupPoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListAttachedGroupPoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } + crate::error::ListAttachedGroupPoliciesErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::ListAttachedGroupPoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1844,14 +1780,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAttachedRolePoliciesErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListAttachedRolePoliciesErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListAttachedRolePoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListAttachedRolePoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListAttachedRolePoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListAttachedRolePoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListAttachedRolePoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1867,14 +1803,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAttachedUserPoliciesErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListAttachedUserPoliciesErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListAttachedUserPoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListAttachedUserPoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListAttachedUserPoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListAttachedUserPoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListAttachedUserPoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1888,14 +1824,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListEntitiesForPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListEntitiesForPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListEntitiesForPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListEntitiesForPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListEntitiesForPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListEntitiesForPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListEntitiesForPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1909,11 +1845,11 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListGroupPoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListGroupPoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListGroupPoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListGroupPoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListGroupPoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1927,8 +1863,8 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListGroupsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListGroupsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListGroupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1940,11 +1876,11 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListGroupsForUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListGroupsForUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListGroupsForUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListGroupsForUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListGroupsForUserErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1958,8 +1894,8 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInstanceProfilesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListInstanceProfilesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListInstanceProfilesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1975,12 +1911,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInstanceProfilesForRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::ListInstanceProfilesForRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } + crate::error::ListInstanceProfilesForRoleErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), + crate::error::ListInstanceProfilesForRoleErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::ListInstanceProfilesForRoleErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1995,11 +1931,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInstanceProfileTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListInstanceProfileTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListInstanceProfileTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListInstanceProfileTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListInstanceProfileTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2013,11 +1949,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListMFADevicesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListMFADevicesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListMFADevicesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListMFADevicesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListMFADevicesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2029,14 +1965,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListMFADeviceTagsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListMFADeviceTagsErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListMFADeviceTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListMFADeviceTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListMFADeviceTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListMFADeviceTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListMFADeviceTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2052,9 +1988,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOpenIDConnectProvidersErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } + crate::error::ListOpenIDConnectProvidersErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::ListOpenIDConnectProvidersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2071,15 +2007,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOpenIDConnectProviderTagsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::ListOpenIDConnectProviderTagsErrorKind::ServiceFailureError( + crate::error::ListOpenIDConnectProviderTagsErrorKind::InvalidInputException( + inner, + ) => Error::InvalidInputException(inner), + crate::error::ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityException( inner, - ) => Error::ServiceFailureError(inner), + ) => Error::NoSuchEntityException(inner), + crate::error::ListOpenIDConnectProviderTagsErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::ListOpenIDConnectProviderTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2092,8 +2028,8 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListPoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListPoliciesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2109,12 +2045,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPoliciesGrantingServiceAccessErrorKind::InvalidInputError( + crate::error::ListPoliciesGrantingServiceAccessErrorKind::InvalidInputException( inner, - ) => Error::InvalidInputError(inner), - crate::error::ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityError( + ) => Error::InvalidInputException(inner), + crate::error::ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityException( inner, - ) => Error::NoSuchEntityError(inner), + ) => Error::NoSuchEntityException(inner), crate::error::ListPoliciesGrantingServiceAccessErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2127,14 +2063,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPolicyTagsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListPolicyTagsErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListPolicyTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListPolicyTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListPolicyTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListPolicyTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListPolicyTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2146,14 +2082,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPolicyVersionsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListPolicyVersionsErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListPolicyVersionsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListPolicyVersionsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListPolicyVersionsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListPolicyVersionsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListPolicyVersionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2167,11 +2103,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListRolePoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListRolePoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListRolePoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListRolePoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListRolePoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2185,8 +2121,8 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListRolesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListRolesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListRolesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2198,11 +2134,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListRoleTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListRoleTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListRoleTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListRoleTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListRoleTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2214,8 +2150,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSAMLProvidersErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListSAMLProvidersErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListSAMLProvidersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2229,14 +2165,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSAMLProviderTagsErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::ListSAMLProviderTagsErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::ListSAMLProviderTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListSAMLProviderTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListSAMLProviderTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListSAMLProviderTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListSAMLProviderTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2250,8 +2186,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListServerCertificatesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListServerCertificatesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListServerCertificatesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2267,12 +2203,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListServerCertificateTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::ListServerCertificateTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListServerCertificateTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } + crate::error::ListServerCertificateTagsErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::ListServerCertificateTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2288,17 +2224,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListServiceSpecificCredentialsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedError( - inner, - ) => Error::ServiceNotSupportedError(inner), - crate::error::ListServiceSpecificCredentialsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::ListServiceSpecificCredentialsErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedException(inner) => Error::ServiceNotSupportedException(inner), + crate::error::ListServiceSpecificCredentialsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2309,11 +2239,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSigningCertificatesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListSigningCertificatesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListSigningCertificatesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListSigningCertificatesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListSigningCertificatesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2327,8 +2257,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSSHPublicKeysErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListSSHPublicKeysErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } crate::error::ListSSHPublicKeysErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2342,11 +2272,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListUserPoliciesErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListUserPoliciesErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListUserPoliciesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListUserPoliciesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListUserPoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2360,8 +2290,8 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListUsersErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListUsersErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListUsersErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2373,11 +2303,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListUserTagsErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ListUserTagsErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ListUserTagsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListUserTagsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListUserTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2401,17 +2331,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutGroupPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutGroupPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutGroupPolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::PutGroupPolicyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::PutGroupPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::PutGroupPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::PutGroupPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::PutGroupPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::PutGroupPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2425,21 +2355,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRolePermissionsBoundaryErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::PutRolePermissionsBoundaryErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::PutRolePermissionsBoundaryErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::PutRolePermissionsBoundaryErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableError( + crate::error::PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableException( inner, - ) => Error::PolicyNotAttachableError(inner), - crate::error::PutRolePermissionsBoundaryErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityError( + ) => Error::PolicyNotAttachableException(inner), + crate::error::PutRolePermissionsBoundaryErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), + crate::error::PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityException( inner, - ) => Error::UnmodifiableEntityError(inner), + ) => Error::UnmodifiableEntityException(inner), crate::error::PutRolePermissionsBoundaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2452,20 +2382,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRolePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutRolePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutRolePolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::PutRolePolicyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::PutRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::PutRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::PutRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::PutRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::PutRolePolicyErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::PutRolePolicyErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::PutRolePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2479,18 +2409,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutUserPermissionsBoundaryErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::PutUserPermissionsBoundaryErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::PutUserPermissionsBoundaryErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::PutUserPermissionsBoundaryErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableError( + crate::error::PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableException( inner, - ) => Error::PolicyNotAttachableError(inner), - crate::error::PutUserPermissionsBoundaryErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } + ) => Error::PolicyNotAttachableException(inner), + crate::error::PutUserPermissionsBoundaryErrorKind::ServiceFailureException( + inner, + ) => Error::ServiceFailureException(inner), crate::error::PutUserPermissionsBoundaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2503,17 +2433,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutUserPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutUserPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutUserPolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::PutUserPolicyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::PutUserPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::PutUserPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::PutUserPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::PutUserPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::PutUserPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2531,9 +2461,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputError(inner) => Error::InvalidInputError(inner), - crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityError(inner) => Error::NoSuchEntityError(inner), - crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => Error::ServiceFailureError(inner), + crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2547,23 +2477,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveRoleFromInstanceProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::RemoveRoleFromInstanceProfileErrorKind::ServiceFailureError( - inner, - ) => Error::ServiceFailureError(inner), - crate::error::RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityError( - inner, - ) => Error::UnmodifiableEntityError(inner), - crate::error::RemoveRoleFromInstanceProfileErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::RemoveRoleFromInstanceProfileErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::RemoveRoleFromInstanceProfileErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityException(inner) => Error::UnmodifiableEntityException(inner), + crate::error::RemoveRoleFromInstanceProfileErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2572,14 +2492,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveUserFromGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::RemoveUserFromGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::RemoveUserFromGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::RemoveUserFromGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::RemoveUserFromGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::RemoveUserFromGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::RemoveUserFromGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2597,9 +2517,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ResetServiceSpecificCredentialErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } + crate::error::ResetServiceSpecificCredentialErrorKind::NoSuchEntityException( + inner, + ) => Error::NoSuchEntityException(inner), crate::error::ResetServiceSpecificCredentialErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2612,17 +2532,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ResyncMFADeviceErrorKind::InvalidAuthenticationCodeError(inner) => { - Error::InvalidAuthenticationCodeError(inner) - } - crate::error::ResyncMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ResyncMFADeviceErrorKind::InvalidAuthenticationCodeException( + inner, + ) => Error::InvalidAuthenticationCodeException(inner), + crate::error::ResyncMFADeviceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ResyncMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::ResyncMFADeviceErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::ResyncMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ResyncMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ResyncMFADeviceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2636,17 +2556,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetDefaultPolicyVersionErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::SetDefaultPolicyVersionErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::SetDefaultPolicyVersionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::SetDefaultPolicyVersionErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::SetDefaultPolicyVersionErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::SetDefaultPolicyVersionErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::SetDefaultPolicyVersionErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::SetDefaultPolicyVersionErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::SetDefaultPolicyVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2663,14 +2583,10 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetSecurityTokenServicePreferencesErrorKind::ServiceFailureError( - inner, - ) => Error::ServiceFailureError(inner), - crate::error::SetSecurityTokenServicePreferencesErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::SetSecurityTokenServicePreferencesErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::SetSecurityTokenServicePreferencesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2679,11 +2595,11 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SimulateCustomPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::SimulateCustomPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::SimulateCustomPolicyErrorKind::PolicyEvaluationError(inner) => { - Error::PolicyEvaluationError(inner) + crate::error::SimulateCustomPolicyErrorKind::PolicyEvaluationException(inner) => { + Error::PolicyEvaluationException(inner) } crate::error::SimulateCustomPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2699,15 +2615,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SimulatePrincipalPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::SimulatePrincipalPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::SimulatePrincipalPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::SimulatePrincipalPolicyErrorKind::PolicyEvaluationError(inner) => { - Error::PolicyEvaluationError(inner) + crate::error::SimulatePrincipalPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } + crate::error::SimulatePrincipalPolicyErrorKind::PolicyEvaluationException( + inner, + ) => Error::PolicyEvaluationException(inner), crate::error::SimulatePrincipalPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2720,20 +2636,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagInstanceProfileErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::TagInstanceProfileErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagInstanceProfileErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::TagInstanceProfileErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagInstanceProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagInstanceProfileErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagInstanceProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2747,20 +2663,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagMFADeviceErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagMFADeviceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagMFADeviceErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagMFADeviceErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagMFADeviceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagMFADeviceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagMFADeviceErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagMFADeviceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2773,26 +2689,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagOpenIDConnectProviderErrorKind::ConcurrentModificationError( - inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::TagOpenIDConnectProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::TagOpenIDConnectProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::TagOpenIDConnectProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::TagOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::TagOpenIDConnectProviderErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::TagOpenIDConnectProviderErrorKind::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner), + crate::error::TagOpenIDConnectProviderErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::TagOpenIDConnectProviderErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::TagOpenIDConnectProviderErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::TagOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::TagOpenIDConnectProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2801,20 +2705,20 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagPolicyErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagPolicyErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2826,20 +2730,20 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagRoleErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagRoleErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagRoleErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagRoleErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagRoleErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagRoleErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2851,20 +2755,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagSAMLProviderErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagSAMLProviderErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagSAMLProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagSAMLProviderErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagSAMLProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagSAMLProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagSAMLProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2876,20 +2780,20 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagServerCertificateErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::TagServerCertificateErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagServerCertificateErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::TagServerCertificateErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagServerCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagServerCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagServerCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagServerCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2903,20 +2807,20 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagUserErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagUserErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagUserErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::TagUserErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::TagUserErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagUserErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::TagUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::TagUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::TagUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::TagUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2928,17 +2832,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagInstanceProfileErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::UntagInstanceProfileErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::UntagInstanceProfileErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::UntagInstanceProfileErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UntagInstanceProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagInstanceProfileErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagInstanceProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagInstanceProfileErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagInstanceProfileErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2952,17 +2856,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagMFADeviceErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UntagMFADeviceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UntagMFADeviceErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::UntagMFADeviceErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UntagMFADeviceErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagMFADeviceErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagMFADeviceErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagMFADeviceErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagMFADeviceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2975,23 +2879,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagOpenIDConnectProviderErrorKind::ConcurrentModificationError( - inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::UntagOpenIDConnectProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) - } - crate::error::UntagOpenIDConnectProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::UntagOpenIDConnectProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::UntagOpenIDConnectProviderErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::UntagOpenIDConnectProviderErrorKind::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner), + crate::error::UntagOpenIDConnectProviderErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::UntagOpenIDConnectProviderErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::UntagOpenIDConnectProviderErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::UntagOpenIDConnectProviderErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -3000,17 +2894,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagPolicyErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UntagPolicyErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UntagPolicyErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::UntagPolicyErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UntagPolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagPolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagPolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagPolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3022,14 +2916,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagRoleErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UntagRoleErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UntagRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3041,17 +2935,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagSAMLProviderErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::UntagSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::UntagSAMLProviderErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::UntagSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UntagSAMLProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagSAMLProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagSAMLProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3065,17 +2959,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagServerCertificateErrorKind::ConcurrentModificationError( + crate::error::UntagServerCertificateErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::UntagServerCertificateErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::UntagServerCertificateErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UntagServerCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagServerCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3089,14 +2983,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagUserErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UntagUserErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UntagUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UntagUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UntagUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UntagUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UntagUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3108,14 +3002,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAccessKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateAccessKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateAccessKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateAccessKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateAccessKeyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateAccessKeyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateAccessKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3129,10 +3023,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateAccountPasswordPolicyErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentError(inner) => Error::MalformedPolicyDocumentError(inner), - crate::error::UpdateAccountPasswordPolicyErrorKind::NoSuchEntityError(inner) => Error::NoSuchEntityError(inner), - crate::error::UpdateAccountPasswordPolicyErrorKind::ServiceFailureError(inner) => Error::ServiceFailureError(inner), + crate::error::UpdateAccountPasswordPolicyErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentException(inner) => Error::MalformedPolicyDocumentException(inner), + crate::error::UpdateAccountPasswordPolicyErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::UpdateAccountPasswordPolicyErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), crate::error::UpdateAccountPasswordPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -3143,21 +3037,21 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAssumeRolePolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateAssumeRolePolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentError( + crate::error::UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentException( inner, - ) => Error::MalformedPolicyDocumentError(inner), - crate::error::UpdateAssumeRolePolicyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::UpdateAssumeRolePolicyErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::UpdateAssumeRolePolicyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::UpdateAssumeRolePolicyErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } + crate::error::UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityException( + inner, + ) => Error::UnmodifiableEntityException(inner), crate::error::UpdateAssumeRolePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -3170,17 +3064,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateGroupErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::UpdateGroupErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::UpdateGroupErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateGroupErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateGroupErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateGroupErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateGroupErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateGroupErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3191,26 +3085,14 @@ impl From> for Err impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableError( - inner, - ) => Error::EntityTemporarilyUnmodifiableError(inner), - crate::error::UpdateLoginProfileErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::UpdateLoginProfileErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::UpdateLoginProfileErrorKind::PasswordPolicyViolationError(inner) => { - Error::PasswordPolicyViolationError(inner) - } - crate::error::UpdateLoginProfileErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::UpdateLoginProfileErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableException(inner) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::UpdateLoginProfileErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::UpdateLoginProfileErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::UpdateLoginProfileErrorKind::PasswordPolicyViolationException(inner) => Error::PasswordPolicyViolationException(inner), + crate::error::UpdateLoginProfileErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::UpdateLoginProfileErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -3225,9 +3107,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputError(inner) => Error::InvalidInputError(inner), - crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityError(inner) => Error::NoSuchEntityError(inner), - crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureError(inner) => Error::ServiceFailureError(inner), + crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputException(inner) => Error::InvalidInputException(inner), + crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -3238,14 +3120,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateRoleErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateRoleErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateRoleErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateRoleErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::UpdateRoleErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::UpdateRoleErrorKind::UnmodifiableEntityException(inner) => { + Error::UnmodifiableEntityException(inner) } crate::error::UpdateRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3257,15 +3139,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateRoleDescriptionErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::UpdateRoleDescriptionErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateRoleDescriptionErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateRoleDescriptionErrorKind::UnmodifiableEntityError(inner) => { - Error::UnmodifiableEntityError(inner) + crate::error::UpdateRoleDescriptionErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } + crate::error::UpdateRoleDescriptionErrorKind::UnmodifiableEntityException( + inner, + ) => Error::UnmodifiableEntityException(inner), crate::error::UpdateRoleDescriptionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -3278,17 +3160,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateSAMLProviderErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + crate::error::UpdateSAMLProviderErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UpdateSAMLProviderErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateSAMLProviderErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateSAMLProviderErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateSAMLProviderErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateSAMLProviderErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateSAMLProviderErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateSAMLProviderErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3304,17 +3186,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateServerCertificateErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) - } - crate::error::UpdateServerCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateServerCertificateErrorKind::EntityAlreadyExistsException( + inner, + ) => Error::EntityAlreadyExistsException(inner), + crate::error::UpdateServerCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateServerCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateServerCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3332,9 +3214,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateServiceSpecificCredentialErrorKind::NoSuchEntityError( + crate::error::UpdateServiceSpecificCredentialErrorKind::NoSuchEntityException( inner, - ) => Error::NoSuchEntityError(inner), + ) => Error::NoSuchEntityException(inner), crate::error::UpdateServiceSpecificCredentialErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -3349,14 +3231,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateSigningCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateSigningCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateSigningCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateSigningCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateSigningCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateSigningCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateSigningCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3370,8 +3252,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateSSHPublicKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateSSHPublicKeyErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } crate::error::UpdateSSHPublicKeyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3385,23 +3267,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateUserErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::UpdateUserErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) + crate::error::UpdateUserErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UpdateUserErrorKind::EntityTemporarilyUnmodifiableError(inner) => { - Error::EntityTemporarilyUnmodifiableError(inner) + crate::error::UpdateUserErrorKind::EntityAlreadyExistsException(inner) => { + Error::EntityAlreadyExistsException(inner) } - crate::error::UpdateUserErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateUserErrorKind::EntityTemporarilyUnmodifiableException( + inner, + ) => Error::EntityTemporarilyUnmodifiableException(inner), + crate::error::UpdateUserErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateUserErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + crate::error::UpdateUserErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UpdateUserErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UpdateUserErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UpdateUserErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3415,26 +3297,26 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UploadServerCertificateErrorKind::ConcurrentModificationError( + crate::error::UploadServerCertificateErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::UploadServerCertificateErrorKind::EntityAlreadyExistsError(inner) => { - Error::EntityAlreadyExistsError(inner) - } - crate::error::UploadServerCertificateErrorKind::InvalidInputError(inner) => { - Error::InvalidInputError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::UploadServerCertificateErrorKind::EntityAlreadyExistsException( + inner, + ) => Error::EntityAlreadyExistsException(inner), + crate::error::UploadServerCertificateErrorKind::InvalidInputException(inner) => { + Error::InvalidInputException(inner) } - crate::error::UploadServerCertificateErrorKind::KeyPairMismatchError(inner) => { - Error::KeyPairMismatchError(inner) + crate::error::UploadServerCertificateErrorKind::KeyPairMismatchException(inner) => { + Error::KeyPairMismatchException(inner) } - crate::error::UploadServerCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UploadServerCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UploadServerCertificateErrorKind::MalformedCertificateError( + crate::error::UploadServerCertificateErrorKind::MalformedCertificateException( inner, - ) => Error::MalformedCertificateError(inner), - crate::error::UploadServerCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + ) => Error::MalformedCertificateException(inner), + crate::error::UploadServerCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UploadServerCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3450,26 +3332,26 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UploadSigningCertificateErrorKind::DuplicateCertificateError( + crate::error::UploadSigningCertificateErrorKind::DuplicateCertificateException( inner, - ) => Error::DuplicateCertificateError(inner), - crate::error::UploadSigningCertificateErrorKind::EntityAlreadyExistsError( + ) => Error::DuplicateCertificateException(inner), + crate::error::UploadSigningCertificateErrorKind::EntityAlreadyExistsException( inner, - ) => Error::EntityAlreadyExistsError(inner), - crate::error::UploadSigningCertificateErrorKind::InvalidCertificateError(inner) => { - Error::InvalidCertificateError(inner) - } - crate::error::UploadSigningCertificateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + ) => Error::EntityAlreadyExistsException(inner), + crate::error::UploadSigningCertificateErrorKind::InvalidCertificateException( + inner, + ) => Error::InvalidCertificateException(inner), + crate::error::UploadSigningCertificateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UploadSigningCertificateErrorKind::MalformedCertificateError( + crate::error::UploadSigningCertificateErrorKind::MalformedCertificateException( inner, - ) => Error::MalformedCertificateError(inner), - crate::error::UploadSigningCertificateErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) + ) => Error::MalformedCertificateException(inner), + crate::error::UploadSigningCertificateErrorKind::NoSuchEntityException(inner) => { + Error::NoSuchEntityException(inner) } - crate::error::UploadSigningCertificateErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::UploadSigningCertificateErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::UploadSigningCertificateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3482,26 +3364,14 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UploadSSHPublicKeyErrorKind::DuplicateSSHPublicKeyError(inner) => { - Error::DuplicateSSHPublicKeyError(inner) - } - crate::error::UploadSSHPublicKeyErrorKind::InvalidPublicKeyError(inner) => { - Error::InvalidPublicKeyError(inner) - } - crate::error::UploadSSHPublicKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::UploadSSHPublicKeyErrorKind::NoSuchEntityError(inner) => { - Error::NoSuchEntityError(inner) - } - crate::error::UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError( - inner, - ) => Error::UnrecognizedPublicKeyEncodingError(inner), - crate::error::UploadSSHPublicKeyErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::UploadSSHPublicKeyErrorKind::DuplicateSshPublicKeyException(inner) => Error::DuplicateSshPublicKeyException(inner), + crate::error::UploadSSHPublicKeyErrorKind::InvalidPublicKeyException(inner) => Error::InvalidPublicKeyException(inner), + crate::error::UploadSSHPublicKeyErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::UploadSSHPublicKeyErrorKind::NoSuchEntityException(inner) => Error::NoSuchEntityException(inner), + crate::error::UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException(inner) => Error::UnrecognizedPublicKeyEncodingException(inner), + crate::error::UploadSSHPublicKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } diff --git a/sdk/iam/src/input.rs b/sdk/iam/src/input.rs index 37c1c380c20a..329c3259c7e5 100644 --- a/sdk/iam/src/input.rs +++ b/sdk/iam/src/input.rs @@ -1,8 +1,8 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. use std::fmt::Write; -/// See [`AddClientIDToOpenIDConnectProviderInput`](crate::input::AddClientIDToOpenIDConnectProviderInput) +/// See [`AddClientIdToOpenIdConnectProviderInput`](crate::input::AddClientIdToOpenIdConnectProviderInput) pub mod add_client_id_to_open_id_connect_provider_input { - /// A builder for [`AddClientIDToOpenIDConnectProviderInput`](crate::input::AddClientIDToOpenIDConnectProviderInput) + /// A builder for [`AddClientIdToOpenIdConnectProviderInput`](crate::input::AddClientIdToOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -36,14 +36,14 @@ pub mod add_client_id_to_open_id_connect_provider_input { self.client_id = input; self } - /// Consumes the builder and constructs a [`AddClientIDToOpenIDConnectProviderInput`](crate::input::AddClientIDToOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`AddClientIdToOpenIdConnectProviderInput`](crate::input::AddClientIdToOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::AddClientIDToOpenIDConnectProviderInput, + crate::input::AddClientIdToOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AddClientIDToOpenIDConnectProviderInput { + Ok(crate::input::AddClientIdToOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, client_id: self.client_id, }) @@ -55,7 +55,7 @@ pub type AddClientIDToOpenIDConnectProviderInputOperationOutputAlias = crate::operation::AddClientIDToOpenIDConnectProvider; #[doc(hidden)] pub type AddClientIDToOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AddClientIDToOpenIDConnectProviderInput { +impl AddClientIdToOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`AddClientIDToOpenIDConnectProvider`](crate::operation::AddClientIDToOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -113,8 +113,9 @@ impl AddClientIDToOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -122,7 +123,7 @@ impl AddClientIDToOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -142,7 +143,7 @@ impl AddClientIDToOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AddClientIDToOpenIDConnectProviderInput`](crate::input::AddClientIDToOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`AddClientIdToOpenIdConnectProviderInput`](crate::input::AddClientIdToOpenIdConnectProviderInput) pub fn builder() -> crate::input::add_client_id_to_open_id_connect_provider_input::Builder { crate::input::add_client_id_to_open_id_connect_provider_input::Builder::default() } @@ -262,8 +263,9 @@ impl AddRoleToInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -271,7 +273,7 @@ impl AddRoleToInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -405,8 +407,9 @@ impl AddUserToGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -414,7 +417,7 @@ impl AddUserToGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -548,8 +551,9 @@ impl AttachGroupPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -557,7 +561,7 @@ impl AttachGroupPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -691,8 +695,9 @@ impl AttachRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -700,7 +705,7 @@ impl AttachRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -834,8 +839,9 @@ impl AttachUserPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -843,7 +849,7 @@ impl AttachUserPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -981,8 +987,9 @@ impl ChangePasswordInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -990,7 +997,7 @@ impl ChangePasswordInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1111,8 +1118,9 @@ impl CreateAccessKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1120,7 +1128,7 @@ impl CreateAccessKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1246,8 +1254,9 @@ impl CreateAccountAliasInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1255,7 +1264,7 @@ impl CreateAccountAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1390,8 +1399,9 @@ impl CreateGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1399,7 +1409,7 @@ impl CreateGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1556,8 +1566,9 @@ impl CreateInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1565,7 +1576,7 @@ impl CreateInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1717,8 +1728,9 @@ impl CreateLoginProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1726,7 +1738,7 @@ impl CreateLoginProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1752,9 +1764,9 @@ impl CreateLoginProfileInput { } } -/// See [`CreateOpenIDConnectProviderInput`](crate::input::CreateOpenIDConnectProviderInput) +/// See [`CreateOpenIdConnectProviderInput`](crate::input::CreateOpenIdConnectProviderInput) pub mod create_open_id_connect_provider_input { - /// A builder for [`CreateOpenIDConnectProviderInput`](crate::input::CreateOpenIDConnectProviderInput) + /// A builder for [`CreateOpenIdConnectProviderInput`](crate::input::CreateOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1819,14 +1831,14 @@ pub mod create_open_id_connect_provider_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateOpenIDConnectProviderInput`](crate::input::CreateOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`CreateOpenIdConnectProviderInput`](crate::input::CreateOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateOpenIDConnectProviderInput, + crate::input::CreateOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateOpenIDConnectProviderInput { + Ok(crate::input::CreateOpenIdConnectProviderInput { url: self.url, client_id_list: self.client_id_list, thumbprint_list: self.thumbprint_list, @@ -1840,7 +1852,7 @@ pub type CreateOpenIDConnectProviderInputOperationOutputAlias = crate::operation::CreateOpenIDConnectProvider; #[doc(hidden)] pub type CreateOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateOpenIDConnectProviderInput { +impl CreateOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`CreateOpenIDConnectProvider`](crate::operation::CreateOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1900,8 +1912,9 @@ impl CreateOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1909,7 +1922,7 @@ impl CreateOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1929,7 +1942,7 @@ impl CreateOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateOpenIDConnectProviderInput`](crate::input::CreateOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`CreateOpenIdConnectProviderInput`](crate::input::CreateOpenIdConnectProviderInput) pub fn builder() -> crate::input::create_open_id_connect_provider_input::Builder { crate::input::create_open_id_connect_provider_input::Builder::default() } @@ -2112,8 +2125,9 @@ impl CreatePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2121,7 +2135,7 @@ impl CreatePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2294,8 +2308,9 @@ impl CreatePolicyVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2303,7 +2318,7 @@ impl CreatePolicyVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2541,8 +2556,9 @@ impl CreateRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2550,7 +2566,7 @@ impl CreateRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2576,9 +2592,9 @@ impl CreateRoleInput { } } -/// See [`CreateSAMLProviderInput`](crate::input::CreateSAMLProviderInput) +/// See [`CreateSamlProviderInput`](crate::input::CreateSamlProviderInput) pub mod create_saml_provider_input { - /// A builder for [`CreateSAMLProviderInput`](crate::input::CreateSAMLProviderInput) + /// A builder for [`CreateSamlProviderInput`](crate::input::CreateSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2630,14 +2646,14 @@ pub mod create_saml_provider_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateSAMLProviderInput`](crate::input::CreateSAMLProviderInput) + /// Consumes the builder and constructs a [`CreateSamlProviderInput`](crate::input::CreateSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateSAMLProviderInput, + crate::input::CreateSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateSAMLProviderInput { + Ok(crate::input::CreateSamlProviderInput { saml_metadata_document: self.saml_metadata_document, name: self.name, tags: self.tags, @@ -2649,7 +2665,7 @@ pub mod create_saml_provider_input { pub type CreateSAMLProviderInputOperationOutputAlias = crate::operation::CreateSAMLProvider; #[doc(hidden)] pub type CreateSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateSAMLProviderInput { +impl CreateSamlProviderInput { /// Consumes the builder and constructs an Operation<[`CreateSAMLProvider`](crate::operation::CreateSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2708,8 +2724,9 @@ impl CreateSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2717,7 +2734,7 @@ impl CreateSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2737,7 +2754,7 @@ impl CreateSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateSAMLProviderInput`](crate::input::CreateSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`CreateSamlProviderInput`](crate::input::CreateSamlProviderInput) pub fn builder() -> crate::input::create_saml_provider_input::Builder { crate::input::create_saml_provider_input::Builder::default() } @@ -2881,8 +2898,9 @@ impl CreateServiceLinkedRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2890,7 +2908,7 @@ impl CreateServiceLinkedRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3029,8 +3047,9 @@ impl CreateServiceSpecificCredentialInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3038,7 +3057,7 @@ impl CreateServiceSpecificCredentialInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3203,8 +3222,9 @@ impl CreateUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3212,7 +3232,7 @@ impl CreateUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3238,9 +3258,9 @@ impl CreateUserInput { } } -/// See [`CreateVirtualMFADeviceInput`](crate::input::CreateVirtualMFADeviceInput) +/// See [`CreateVirtualMfaDeviceInput`](crate::input::CreateVirtualMfaDeviceInput) pub mod create_virtual_mfa_device_input { - /// A builder for [`CreateVirtualMFADeviceInput`](crate::input::CreateVirtualMFADeviceInput) + /// A builder for [`CreateVirtualMfaDeviceInput`](crate::input::CreateVirtualMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3292,14 +3312,14 @@ pub mod create_virtual_mfa_device_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateVirtualMFADeviceInput`](crate::input::CreateVirtualMFADeviceInput) + /// Consumes the builder and constructs a [`CreateVirtualMfaDeviceInput`](crate::input::CreateVirtualMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateVirtualMFADeviceInput, + crate::input::CreateVirtualMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateVirtualMFADeviceInput { + Ok(crate::input::CreateVirtualMfaDeviceInput { path: self.path, virtual_mfa_device_name: self.virtual_mfa_device_name, tags: self.tags, @@ -3311,7 +3331,7 @@ pub mod create_virtual_mfa_device_input { pub type CreateVirtualMFADeviceInputOperationOutputAlias = crate::operation::CreateVirtualMFADevice; #[doc(hidden)] pub type CreateVirtualMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateVirtualMFADeviceInput { +impl CreateVirtualMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`CreateVirtualMFADevice`](crate::operation::CreateVirtualMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3370,8 +3390,9 @@ impl CreateVirtualMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3379,7 +3400,7 @@ impl CreateVirtualMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3399,15 +3420,15 @@ impl CreateVirtualMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateVirtualMFADeviceInput`](crate::input::CreateVirtualMFADeviceInput) + /// Creates a new builder-style object to manufacture [`CreateVirtualMfaDeviceInput`](crate::input::CreateVirtualMfaDeviceInput) pub fn builder() -> crate::input::create_virtual_mfa_device_input::Builder { crate::input::create_virtual_mfa_device_input::Builder::default() } } -/// See [`DeactivateMFADeviceInput`](crate::input::DeactivateMFADeviceInput) +/// See [`DeactivateMfaDeviceInput`](crate::input::DeactivateMfaDeviceInput) pub mod deactivate_mfa_device_input { - /// A builder for [`DeactivateMFADeviceInput`](crate::input::DeactivateMFADeviceInput) + /// A builder for [`DeactivateMfaDeviceInput`](crate::input::DeactivateMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3442,14 +3463,14 @@ pub mod deactivate_mfa_device_input { self.serial_number = input; self } - /// Consumes the builder and constructs a [`DeactivateMFADeviceInput`](crate::input::DeactivateMFADeviceInput) + /// Consumes the builder and constructs a [`DeactivateMfaDeviceInput`](crate::input::DeactivateMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeactivateMFADeviceInput, + crate::input::DeactivateMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeactivateMFADeviceInput { + Ok(crate::input::DeactivateMfaDeviceInput { user_name: self.user_name, serial_number: self.serial_number, }) @@ -3460,7 +3481,7 @@ pub mod deactivate_mfa_device_input { pub type DeactivateMFADeviceInputOperationOutputAlias = crate::operation::DeactivateMFADevice; #[doc(hidden)] pub type DeactivateMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeactivateMFADeviceInput { +impl DeactivateMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`DeactivateMFADevice`](crate::operation::DeactivateMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3519,8 +3540,9 @@ impl DeactivateMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3528,7 +3550,7 @@ impl DeactivateMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3548,7 +3570,7 @@ impl DeactivateMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeactivateMFADeviceInput`](crate::input::DeactivateMFADeviceInput) + /// Creates a new builder-style object to manufacture [`DeactivateMfaDeviceInput`](crate::input::DeactivateMfaDeviceInput) pub fn builder() -> crate::input::deactivate_mfa_device_input::Builder { crate::input::deactivate_mfa_device_input::Builder::default() } @@ -3666,8 +3688,9 @@ impl DeleteAccessKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3675,7 +3698,7 @@ impl DeleteAccessKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3801,8 +3824,9 @@ impl DeleteAccountAliasInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3810,7 +3834,7 @@ impl DeleteAccountAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3919,8 +3943,9 @@ impl DeleteAccountPasswordPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3928,7 +3953,7 @@ impl DeleteAccountPasswordPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4045,8 +4070,9 @@ impl DeleteGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4054,7 +4080,7 @@ impl DeleteGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4190,8 +4216,9 @@ impl DeleteGroupPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4199,7 +4226,7 @@ impl DeleteGroupPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4324,8 +4351,9 @@ impl DeleteInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4333,7 +4361,7 @@ impl DeleteInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4455,8 +4483,9 @@ impl DeleteLoginProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4464,7 +4493,7 @@ impl DeleteLoginProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4490,9 +4519,9 @@ impl DeleteLoginProfileInput { } } -/// See [`DeleteOpenIDConnectProviderInput`](crate::input::DeleteOpenIDConnectProviderInput) +/// See [`DeleteOpenIdConnectProviderInput`](crate::input::DeleteOpenIdConnectProviderInput) pub mod delete_open_id_connect_provider_input { - /// A builder for [`DeleteOpenIDConnectProviderInput`](crate::input::DeleteOpenIDConnectProviderInput) + /// A builder for [`DeleteOpenIdConnectProviderInput`](crate::input::DeleteOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4515,14 +4544,14 @@ pub mod delete_open_id_connect_provider_input { self.open_id_connect_provider_arn = input; self } - /// Consumes the builder and constructs a [`DeleteOpenIDConnectProviderInput`](crate::input::DeleteOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`DeleteOpenIdConnectProviderInput`](crate::input::DeleteOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteOpenIDConnectProviderInput, + crate::input::DeleteOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteOpenIDConnectProviderInput { + Ok(crate::input::DeleteOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, }) } @@ -4533,7 +4562,7 @@ pub type DeleteOpenIDConnectProviderInputOperationOutputAlias = crate::operation::DeleteOpenIDConnectProvider; #[doc(hidden)] pub type DeleteOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteOpenIDConnectProviderInput { +impl DeleteOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`DeleteOpenIDConnectProvider`](crate::operation::DeleteOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -4593,8 +4622,9 @@ impl DeleteOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4602,7 +4632,7 @@ impl DeleteOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4622,7 +4652,7 @@ impl DeleteOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteOpenIDConnectProviderInput`](crate::input::DeleteOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`DeleteOpenIdConnectProviderInput`](crate::input::DeleteOpenIdConnectProviderInput) pub fn builder() -> crate::input::delete_open_id_connect_provider_input::Builder { crate::input::delete_open_id_connect_provider_input::Builder::default() } @@ -4718,8 +4748,9 @@ impl DeletePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4727,7 +4758,7 @@ impl DeletePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4865,8 +4896,9 @@ impl DeletePolicyVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4874,7 +4906,7 @@ impl DeletePolicyVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4991,8 +5023,9 @@ impl DeleteRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5000,7 +5033,7 @@ impl DeleteRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5123,8 +5156,9 @@ impl DeleteRolePermissionsBoundaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5132,7 +5166,7 @@ impl DeleteRolePermissionsBoundaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5268,8 +5302,9 @@ impl DeleteRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5277,7 +5312,7 @@ impl DeleteRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5303,9 +5338,9 @@ impl DeleteRolePolicyInput { } } -/// See [`DeleteSAMLProviderInput`](crate::input::DeleteSAMLProviderInput) +/// See [`DeleteSamlProviderInput`](crate::input::DeleteSamlProviderInput) pub mod delete_saml_provider_input { - /// A builder for [`DeleteSAMLProviderInput`](crate::input::DeleteSAMLProviderInput) + /// A builder for [`DeleteSamlProviderInput`](crate::input::DeleteSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5324,14 +5359,14 @@ pub mod delete_saml_provider_input { self.saml_provider_arn = input; self } - /// Consumes the builder and constructs a [`DeleteSAMLProviderInput`](crate::input::DeleteSAMLProviderInput) + /// Consumes the builder and constructs a [`DeleteSamlProviderInput`](crate::input::DeleteSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteSAMLProviderInput, + crate::input::DeleteSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteSAMLProviderInput { + Ok(crate::input::DeleteSamlProviderInput { saml_provider_arn: self.saml_provider_arn, }) } @@ -5341,7 +5376,7 @@ pub mod delete_saml_provider_input { pub type DeleteSAMLProviderInputOperationOutputAlias = crate::operation::DeleteSAMLProvider; #[doc(hidden)] pub type DeleteSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteSAMLProviderInput { +impl DeleteSamlProviderInput { /// Consumes the builder and constructs an Operation<[`DeleteSAMLProvider`](crate::operation::DeleteSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -5400,8 +5435,9 @@ impl DeleteSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5409,7 +5445,7 @@ impl DeleteSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5429,7 +5465,7 @@ impl DeleteSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteSAMLProviderInput`](crate::input::DeleteSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`DeleteSamlProviderInput`](crate::input::DeleteSamlProviderInput) pub fn builder() -> crate::input::delete_saml_provider_input::Builder { crate::input::delete_saml_provider_input::Builder::default() } @@ -5535,8 +5571,9 @@ impl DeleteServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5544,7 +5581,7 @@ impl DeleteServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5665,8 +5702,9 @@ impl DeleteServiceLinkedRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5674,7 +5712,7 @@ impl DeleteServiceLinkedRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5820,8 +5858,9 @@ impl DeleteServiceSpecificCredentialInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5829,7 +5868,7 @@ impl DeleteServiceSpecificCredentialInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5968,8 +6007,9 @@ impl DeleteSigningCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5977,7 +6017,7 @@ impl DeleteSigningCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6003,9 +6043,9 @@ impl DeleteSigningCertificateInput { } } -/// See [`DeleteSSHPublicKeyInput`](crate::input::DeleteSSHPublicKeyInput) +/// See [`DeleteSshPublicKeyInput`](crate::input::DeleteSshPublicKeyInput) pub mod delete_ssh_public_key_input { - /// A builder for [`DeleteSSHPublicKeyInput`](crate::input::DeleteSSHPublicKeyInput) + /// A builder for [`DeleteSshPublicKeyInput`](crate::input::DeleteSshPublicKeyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6038,14 +6078,14 @@ pub mod delete_ssh_public_key_input { self.ssh_public_key_id = input; self } - /// Consumes the builder and constructs a [`DeleteSSHPublicKeyInput`](crate::input::DeleteSSHPublicKeyInput) + /// Consumes the builder and constructs a [`DeleteSshPublicKeyInput`](crate::input::DeleteSshPublicKeyInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteSSHPublicKeyInput, + crate::input::DeleteSshPublicKeyInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteSSHPublicKeyInput { + Ok(crate::input::DeleteSshPublicKeyInput { user_name: self.user_name, ssh_public_key_id: self.ssh_public_key_id, }) @@ -6056,7 +6096,7 @@ pub mod delete_ssh_public_key_input { pub type DeleteSSHPublicKeyInputOperationOutputAlias = crate::operation::DeleteSSHPublicKey; #[doc(hidden)] pub type DeleteSSHPublicKeyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteSSHPublicKeyInput { +impl DeleteSshPublicKeyInput { /// Consumes the builder and constructs an Operation<[`DeleteSSHPublicKey`](crate::operation::DeleteSSHPublicKey)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -6115,8 +6155,9 @@ impl DeleteSSHPublicKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6124,7 +6165,7 @@ impl DeleteSSHPublicKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6144,7 +6185,7 @@ impl DeleteSSHPublicKeyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteSSHPublicKeyInput`](crate::input::DeleteSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`DeleteSshPublicKeyInput`](crate::input::DeleteSshPublicKeyInput) pub fn builder() -> crate::input::delete_ssh_public_key_input::Builder { crate::input::delete_ssh_public_key_input::Builder::default() } @@ -6241,8 +6282,9 @@ impl DeleteUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6250,7 +6292,7 @@ impl DeleteUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6373,8 +6415,9 @@ impl DeleteUserPermissionsBoundaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6382,7 +6425,7 @@ impl DeleteUserPermissionsBoundaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6518,8 +6561,9 @@ impl DeleteUserPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6527,7 +6571,7 @@ impl DeleteUserPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6553,9 +6597,9 @@ impl DeleteUserPolicyInput { } } -/// See [`DeleteVirtualMFADeviceInput`](crate::input::DeleteVirtualMFADeviceInput) +/// See [`DeleteVirtualMfaDeviceInput`](crate::input::DeleteVirtualMfaDeviceInput) pub mod delete_virtual_mfa_device_input { - /// A builder for [`DeleteVirtualMFADeviceInput`](crate::input::DeleteVirtualMFADeviceInput) + /// A builder for [`DeleteVirtualMfaDeviceInput`](crate::input::DeleteVirtualMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6578,14 +6622,14 @@ pub mod delete_virtual_mfa_device_input { self.serial_number = input; self } - /// Consumes the builder and constructs a [`DeleteVirtualMFADeviceInput`](crate::input::DeleteVirtualMFADeviceInput) + /// Consumes the builder and constructs a [`DeleteVirtualMfaDeviceInput`](crate::input::DeleteVirtualMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteVirtualMFADeviceInput, + crate::input::DeleteVirtualMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteVirtualMFADeviceInput { + Ok(crate::input::DeleteVirtualMfaDeviceInput { serial_number: self.serial_number, }) } @@ -6595,7 +6639,7 @@ pub mod delete_virtual_mfa_device_input { pub type DeleteVirtualMFADeviceInputOperationOutputAlias = crate::operation::DeleteVirtualMFADevice; #[doc(hidden)] pub type DeleteVirtualMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteVirtualMFADeviceInput { +impl DeleteVirtualMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`DeleteVirtualMFADevice`](crate::operation::DeleteVirtualMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -6654,8 +6698,9 @@ impl DeleteVirtualMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6663,7 +6708,7 @@ impl DeleteVirtualMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6683,7 +6728,7 @@ impl DeleteVirtualMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteVirtualMFADeviceInput`](crate::input::DeleteVirtualMFADeviceInput) + /// Creates a new builder-style object to manufacture [`DeleteVirtualMfaDeviceInput`](crate::input::DeleteVirtualMfaDeviceInput) pub fn builder() -> crate::input::delete_virtual_mfa_device_input::Builder { crate::input::delete_virtual_mfa_device_input::Builder::default() } @@ -6797,8 +6842,9 @@ impl DetachGroupPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6806,7 +6852,7 @@ impl DetachGroupPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6940,8 +6986,9 @@ impl DetachRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6949,7 +6996,7 @@ impl DetachRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7083,8 +7130,9 @@ impl DetachUserPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7092,7 +7140,7 @@ impl DetachUserPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7118,9 +7166,9 @@ impl DetachUserPolicyInput { } } -/// See [`EnableMFADeviceInput`](crate::input::EnableMFADeviceInput) +/// See [`EnableMfaDeviceInput`](crate::input::EnableMfaDeviceInput) pub mod enable_mfa_device_input { - /// A builder for [`EnableMFADeviceInput`](crate::input::EnableMFADeviceInput) + /// A builder for [`EnableMfaDeviceInput`](crate::input::EnableMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7199,14 +7247,14 @@ pub mod enable_mfa_device_input { self.authentication_code2 = input; self } - /// Consumes the builder and constructs a [`EnableMFADeviceInput`](crate::input::EnableMFADeviceInput) + /// Consumes the builder and constructs a [`EnableMfaDeviceInput`](crate::input::EnableMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::EnableMFADeviceInput, + crate::input::EnableMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::EnableMFADeviceInput { + Ok(crate::input::EnableMfaDeviceInput { user_name: self.user_name, serial_number: self.serial_number, authentication_code1: self.authentication_code1, @@ -7219,7 +7267,7 @@ pub mod enable_mfa_device_input { pub type EnableMFADeviceInputOperationOutputAlias = crate::operation::EnableMFADevice; #[doc(hidden)] pub type EnableMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl EnableMFADeviceInput { +impl EnableMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`EnableMFADevice`](crate::operation::EnableMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7277,8 +7325,9 @@ impl EnableMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7286,7 +7335,7 @@ impl EnableMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7306,7 +7355,7 @@ impl EnableMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`EnableMFADeviceInput`](crate::input::EnableMFADeviceInput) + /// Creates a new builder-style object to manufacture [`EnableMfaDeviceInput`](crate::input::EnableMfaDeviceInput) pub fn builder() -> crate::input::enable_mfa_device_input::Builder { crate::input::enable_mfa_device_input::Builder::default() } @@ -7394,8 +7443,9 @@ impl GenerateCredentialReportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7403,7 +7453,7 @@ impl GenerateCredentialReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7549,8 +7599,9 @@ impl GenerateOrganizationsAccessReportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7558,7 +7609,7 @@ impl GenerateOrganizationsAccessReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7706,8 +7757,9 @@ impl GenerateServiceLastAccessedDetailsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7715,7 +7767,7 @@ impl GenerateServiceLastAccessedDetailsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7840,8 +7892,9 @@ impl GetAccessKeyLastUsedInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7849,7 +7902,7 @@ impl GetAccessKeyLastUsedInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8007,8 +8060,9 @@ impl GetAccountAuthorizationDetailsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8016,7 +8070,7 @@ impl GetAccountAuthorizationDetailsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8124,8 +8178,9 @@ impl GetAccountPasswordPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8133,7 +8188,7 @@ impl GetAccountPasswordPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8240,8 +8295,9 @@ impl GetAccountSummaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8249,7 +8305,7 @@ impl GetAccountSummaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8375,8 +8431,9 @@ impl GetContextKeysForCustomPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8384,7 +8441,7 @@ impl GetContextKeysForCustomPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8533,8 +8590,9 @@ impl GetContextKeysForPrincipalPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8542,7 +8600,7 @@ impl GetContextKeysForPrincipalPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8649,8 +8707,9 @@ impl GetCredentialReportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8658,7 +8717,7 @@ impl GetCredentialReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8805,8 +8864,9 @@ impl GetGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8814,7 +8874,7 @@ impl GetGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8948,8 +9008,9 @@ impl GetGroupPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8957,7 +9018,7 @@ impl GetGroupPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9082,8 +9143,9 @@ impl GetInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9091,7 +9153,7 @@ impl GetInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9212,8 +9274,9 @@ impl GetLoginProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9221,7 +9284,7 @@ impl GetLoginProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9247,9 +9310,9 @@ impl GetLoginProfileInput { } } -/// See [`GetOpenIDConnectProviderInput`](crate::input::GetOpenIDConnectProviderInput) +/// See [`GetOpenIdConnectProviderInput`](crate::input::GetOpenIdConnectProviderInput) pub mod get_open_id_connect_provider_input { - /// A builder for [`GetOpenIDConnectProviderInput`](crate::input::GetOpenIDConnectProviderInput) + /// A builder for [`GetOpenIdConnectProviderInput`](crate::input::GetOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9273,14 +9336,14 @@ pub mod get_open_id_connect_provider_input { self.open_id_connect_provider_arn = input; self } - /// Consumes the builder and constructs a [`GetOpenIDConnectProviderInput`](crate::input::GetOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`GetOpenIdConnectProviderInput`](crate::input::GetOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::GetOpenIDConnectProviderInput, + crate::input::GetOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetOpenIDConnectProviderInput { + Ok(crate::input::GetOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, }) } @@ -9291,7 +9354,7 @@ pub type GetOpenIDConnectProviderInputOperationOutputAlias = crate::operation::GetOpenIDConnectProvider; #[doc(hidden)] pub type GetOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetOpenIDConnectProviderInput { +impl GetOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`GetOpenIDConnectProvider`](crate::operation::GetOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9351,8 +9414,9 @@ impl GetOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9360,7 +9424,7 @@ impl GetOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9380,7 +9444,7 @@ impl GetOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetOpenIDConnectProviderInput`](crate::input::GetOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`GetOpenIdConnectProviderInput`](crate::input::GetOpenIdConnectProviderInput) pub fn builder() -> crate::input::get_open_id_connect_provider_input::Builder { crate::input::get_open_id_connect_provider_input::Builder::default() } @@ -9530,8 +9594,9 @@ impl GetOrganizationsAccessReportInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9539,7 +9604,7 @@ impl GetOrganizationsAccessReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9654,8 +9719,9 @@ impl GetPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9663,7 +9729,7 @@ impl GetPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9799,8 +9865,9 @@ impl GetPolicyVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9808,7 +9875,7 @@ impl GetPolicyVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9920,8 +9987,9 @@ impl GetRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9929,7 +9997,7 @@ impl GetRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10061,8 +10129,9 @@ impl GetRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10070,7 +10139,7 @@ impl GetRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10096,9 +10165,9 @@ impl GetRolePolicyInput { } } -/// See [`GetSAMLProviderInput`](crate::input::GetSAMLProviderInput) +/// See [`GetSamlProviderInput`](crate::input::GetSamlProviderInput) pub mod get_saml_provider_input { - /// A builder for [`GetSAMLProviderInput`](crate::input::GetSAMLProviderInput) + /// A builder for [`GetSamlProviderInput`](crate::input::GetSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10119,14 +10188,14 @@ pub mod get_saml_provider_input { self.saml_provider_arn = input; self } - /// Consumes the builder and constructs a [`GetSAMLProviderInput`](crate::input::GetSAMLProviderInput) + /// Consumes the builder and constructs a [`GetSamlProviderInput`](crate::input::GetSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::GetSAMLProviderInput, + crate::input::GetSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetSAMLProviderInput { + Ok(crate::input::GetSamlProviderInput { saml_provider_arn: self.saml_provider_arn, }) } @@ -10136,7 +10205,7 @@ pub mod get_saml_provider_input { pub type GetSAMLProviderInputOperationOutputAlias = crate::operation::GetSAMLProvider; #[doc(hidden)] pub type GetSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetSAMLProviderInput { +impl GetSamlProviderInput { /// Consumes the builder and constructs an Operation<[`GetSAMLProvider`](crate::operation::GetSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -10194,8 +10263,9 @@ impl GetSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10203,7 +10273,7 @@ impl GetSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10223,7 +10293,7 @@ impl GetSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetSAMLProviderInput`](crate::input::GetSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`GetSamlProviderInput`](crate::input::GetSamlProviderInput) pub fn builder() -> crate::input::get_saml_provider_input::Builder { crate::input::get_saml_provider_input::Builder::default() } @@ -10328,8 +10398,9 @@ impl GetServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10337,7 +10408,7 @@ impl GetServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10494,8 +10565,9 @@ impl GetServiceLastAccessedDetailsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10503,7 +10575,7 @@ impl GetServiceLastAccessedDetailsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10680,8 +10752,9 @@ impl GetServiceLastAccessedDetailsWithEntitiesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10689,7 +10762,7 @@ impl GetServiceLastAccessedDetailsWithEntitiesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10818,8 +10891,9 @@ impl GetServiceLinkedRoleDeletionStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10827,7 +10901,7 @@ impl GetServiceLinkedRoleDeletionStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10853,9 +10927,9 @@ impl GetServiceLinkedRoleDeletionStatusInput { } } -/// See [`GetSSHPublicKeyInput`](crate::input::GetSSHPublicKeyInput) +/// See [`GetSshPublicKeyInput`](crate::input::GetSshPublicKeyInput) pub mod get_ssh_public_key_input { - /// A builder for [`GetSSHPublicKeyInput`](crate::input::GetSSHPublicKeyInput) + /// A builder for [`GetSshPublicKeyInput`](crate::input::GetSshPublicKeyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10903,14 +10977,14 @@ pub mod get_ssh_public_key_input { self.encoding = input; self } - /// Consumes the builder and constructs a [`GetSSHPublicKeyInput`](crate::input::GetSSHPublicKeyInput) + /// Consumes the builder and constructs a [`GetSshPublicKeyInput`](crate::input::GetSshPublicKeyInput) pub fn build( self, ) -> std::result::Result< - crate::input::GetSSHPublicKeyInput, + crate::input::GetSshPublicKeyInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetSSHPublicKeyInput { + Ok(crate::input::GetSshPublicKeyInput { user_name: self.user_name, ssh_public_key_id: self.ssh_public_key_id, encoding: self.encoding, @@ -10922,7 +10996,7 @@ pub mod get_ssh_public_key_input { pub type GetSSHPublicKeyInputOperationOutputAlias = crate::operation::GetSSHPublicKey; #[doc(hidden)] pub type GetSSHPublicKeyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetSSHPublicKeyInput { +impl GetSshPublicKeyInput { /// Consumes the builder and constructs an Operation<[`GetSSHPublicKey`](crate::operation::GetSSHPublicKey)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -10981,8 +11055,9 @@ impl GetSSHPublicKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10990,7 +11065,7 @@ impl GetSSHPublicKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11010,7 +11085,7 @@ impl GetSSHPublicKeyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetSSHPublicKeyInput`](crate::input::GetSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`GetSshPublicKeyInput`](crate::input::GetSshPublicKeyInput) pub fn builder() -> crate::input::get_ssh_public_key_input::Builder { crate::input::get_ssh_public_key_input::Builder::default() } @@ -11103,8 +11178,9 @@ impl GetUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11112,7 +11188,7 @@ impl GetUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11244,8 +11320,9 @@ impl GetUserPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11253,7 +11330,7 @@ impl GetUserPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11406,8 +11483,9 @@ impl ListAccessKeysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11415,7 +11493,7 @@ impl ListAccessKeysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11556,8 +11634,9 @@ impl ListAccountAliasesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11565,7 +11644,7 @@ impl ListAccountAliasesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11737,8 +11816,9 @@ impl ListAttachedGroupPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11746,7 +11826,7 @@ impl ListAttachedGroupPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11917,8 +11997,9 @@ impl ListAttachedRolePoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11926,7 +12007,7 @@ impl ListAttachedRolePoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12097,8 +12178,9 @@ impl ListAttachedUserPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12106,7 +12188,7 @@ impl ListAttachedUserPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12313,8 +12395,9 @@ impl ListEntitiesForPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12322,7 +12405,7 @@ impl ListEntitiesForPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12476,8 +12559,9 @@ impl ListGroupPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12485,7 +12569,7 @@ impl ListGroupPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12639,8 +12723,9 @@ impl ListGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12648,7 +12733,7 @@ impl ListGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12802,8 +12887,9 @@ impl ListGroupsForUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12811,7 +12897,7 @@ impl ListGroupsForUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12970,8 +13056,9 @@ impl ListInstanceProfilesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12979,7 +13066,7 @@ impl ListInstanceProfilesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13135,8 +13222,9 @@ impl ListInstanceProfilesForRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13144,7 +13232,7 @@ impl ListInstanceProfilesForRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13301,8 +13389,9 @@ impl ListInstanceProfileTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13310,7 +13399,7 @@ impl ListInstanceProfileTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13336,9 +13425,9 @@ impl ListInstanceProfileTagsInput { } } -/// See [`ListMFADevicesInput`](crate::input::ListMFADevicesInput) +/// See [`ListMfaDevicesInput`](crate::input::ListMfaDevicesInput) pub mod list_mfa_devices_input { - /// A builder for [`ListMFADevicesInput`](crate::input::ListMFADevicesInput) + /// A builder for [`ListMfaDevicesInput`](crate::input::ListMfaDevicesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13386,14 +13475,14 @@ pub mod list_mfa_devices_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListMFADevicesInput`](crate::input::ListMFADevicesInput) + /// Consumes the builder and constructs a [`ListMfaDevicesInput`](crate::input::ListMfaDevicesInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListMFADevicesInput, + crate::input::ListMfaDevicesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListMFADevicesInput { + Ok(crate::input::ListMfaDevicesInput { user_name: self.user_name, marker: self.marker, max_items: self.max_items, @@ -13405,7 +13494,7 @@ pub mod list_mfa_devices_input { pub type ListMFADevicesInputOperationOutputAlias = crate::operation::ListMFADevices; #[doc(hidden)] pub type ListMFADevicesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListMFADevicesInput { +impl ListMfaDevicesInput { /// Consumes the builder and constructs an Operation<[`ListMFADevices`](crate::operation::ListMFADevices)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13463,8 +13552,9 @@ impl ListMFADevicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13472,7 +13562,7 @@ impl ListMFADevicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13492,15 +13582,15 @@ impl ListMFADevicesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListMFADevicesInput`](crate::input::ListMFADevicesInput) + /// Creates a new builder-style object to manufacture [`ListMfaDevicesInput`](crate::input::ListMfaDevicesInput) pub fn builder() -> crate::input::list_mfa_devices_input::Builder { crate::input::list_mfa_devices_input::Builder::default() } } -/// See [`ListMFADeviceTagsInput`](crate::input::ListMFADeviceTagsInput) +/// See [`ListMfaDeviceTagsInput`](crate::input::ListMfaDeviceTagsInput) pub mod list_mfa_device_tags_input { - /// A builder for [`ListMFADeviceTagsInput`](crate::input::ListMFADeviceTagsInput) + /// A builder for [`ListMfaDeviceTagsInput`](crate::input::ListMfaDeviceTagsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13551,14 +13641,14 @@ pub mod list_mfa_device_tags_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListMFADeviceTagsInput`](crate::input::ListMFADeviceTagsInput) + /// Consumes the builder and constructs a [`ListMfaDeviceTagsInput`](crate::input::ListMfaDeviceTagsInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListMFADeviceTagsInput, + crate::input::ListMfaDeviceTagsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListMFADeviceTagsInput { + Ok(crate::input::ListMfaDeviceTagsInput { serial_number: self.serial_number, marker: self.marker, max_items: self.max_items, @@ -13570,7 +13660,7 @@ pub mod list_mfa_device_tags_input { pub type ListMFADeviceTagsInputOperationOutputAlias = crate::operation::ListMFADeviceTags; #[doc(hidden)] pub type ListMFADeviceTagsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListMFADeviceTagsInput { +impl ListMfaDeviceTagsInput { /// Consumes the builder and constructs an Operation<[`ListMFADeviceTags`](crate::operation::ListMFADeviceTags)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13629,8 +13719,9 @@ impl ListMFADeviceTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13638,7 +13729,7 @@ impl ListMFADeviceTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13658,27 +13749,27 @@ impl ListMFADeviceTagsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListMFADeviceTagsInput`](crate::input::ListMFADeviceTagsInput) + /// Creates a new builder-style object to manufacture [`ListMfaDeviceTagsInput`](crate::input::ListMfaDeviceTagsInput) pub fn builder() -> crate::input::list_mfa_device_tags_input::Builder { crate::input::list_mfa_device_tags_input::Builder::default() } } -/// See [`ListOpenIDConnectProvidersInput`](crate::input::ListOpenIDConnectProvidersInput) +/// See [`ListOpenIdConnectProvidersInput`](crate::input::ListOpenIdConnectProvidersInput) pub mod list_open_id_connect_providers_input { - /// A builder for [`ListOpenIDConnectProvidersInput`](crate::input::ListOpenIDConnectProvidersInput) + /// A builder for [`ListOpenIdConnectProvidersInput`](crate::input::ListOpenIdConnectProvidersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`ListOpenIDConnectProvidersInput`](crate::input::ListOpenIDConnectProvidersInput) + /// Consumes the builder and constructs a [`ListOpenIdConnectProvidersInput`](crate::input::ListOpenIdConnectProvidersInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListOpenIDConnectProvidersInput, + crate::input::ListOpenIdConnectProvidersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListOpenIDConnectProvidersInput {}) + Ok(crate::input::ListOpenIdConnectProvidersInput {}) } } } @@ -13687,7 +13778,7 @@ pub type ListOpenIDConnectProvidersInputOperationOutputAlias = crate::operation::ListOpenIDConnectProviders; #[doc(hidden)] pub type ListOpenIDConnectProvidersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListOpenIDConnectProvidersInput { +impl ListOpenIdConnectProvidersInput { /// Consumes the builder and constructs an Operation<[`ListOpenIDConnectProviders`](crate::operation::ListOpenIDConnectProviders)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13747,8 +13838,9 @@ impl ListOpenIDConnectProvidersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13756,7 +13848,7 @@ impl ListOpenIDConnectProvidersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13776,15 +13868,15 @@ impl ListOpenIDConnectProvidersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProvidersInput`](crate::input::ListOpenIDConnectProvidersInput) + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProvidersInput`](crate::input::ListOpenIdConnectProvidersInput) pub fn builder() -> crate::input::list_open_id_connect_providers_input::Builder { crate::input::list_open_id_connect_providers_input::Builder::default() } } -/// See [`ListOpenIDConnectProviderTagsInput`](crate::input::ListOpenIDConnectProviderTagsInput) +/// See [`ListOpenIdConnectProviderTagsInput`](crate::input::ListOpenIdConnectProviderTagsInput) pub mod list_open_id_connect_provider_tags_input { - /// A builder for [`ListOpenIDConnectProviderTagsInput`](crate::input::ListOpenIDConnectProviderTagsInput) + /// A builder for [`ListOpenIdConnectProviderTagsInput`](crate::input::ListOpenIdConnectProviderTagsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13838,14 +13930,14 @@ pub mod list_open_id_connect_provider_tags_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListOpenIDConnectProviderTagsInput`](crate::input::ListOpenIDConnectProviderTagsInput) + /// Consumes the builder and constructs a [`ListOpenIdConnectProviderTagsInput`](crate::input::ListOpenIdConnectProviderTagsInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListOpenIDConnectProviderTagsInput, + crate::input::ListOpenIdConnectProviderTagsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListOpenIDConnectProviderTagsInput { + Ok(crate::input::ListOpenIdConnectProviderTagsInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, marker: self.marker, max_items: self.max_items, @@ -13858,7 +13950,7 @@ pub type ListOpenIDConnectProviderTagsInputOperationOutputAlias = crate::operation::ListOpenIDConnectProviderTags; #[doc(hidden)] pub type ListOpenIDConnectProviderTagsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListOpenIDConnectProviderTagsInput { +impl ListOpenIdConnectProviderTagsInput { /// Consumes the builder and constructs an Operation<[`ListOpenIDConnectProviderTags`](crate::operation::ListOpenIDConnectProviderTags)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13918,8 +14010,9 @@ impl ListOpenIDConnectProviderTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13927,7 +14020,7 @@ impl ListOpenIDConnectProviderTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13947,7 +14040,7 @@ impl ListOpenIDConnectProviderTagsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProviderTagsInput`](crate::input::ListOpenIDConnectProviderTagsInput) + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProviderTagsInput`](crate::input::ListOpenIdConnectProviderTagsInput) pub fn builder() -> crate::input::list_open_id_connect_provider_tags_input::Builder { crate::input::list_open_id_connect_provider_tags_input::Builder::default() } @@ -14131,8 +14224,9 @@ impl ListPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14140,7 +14234,7 @@ impl ListPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14294,8 +14388,9 @@ impl ListPoliciesGrantingServiceAccessInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14303,7 +14398,7 @@ impl ListPoliciesGrantingServiceAccessInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14455,8 +14550,9 @@ impl ListPolicyTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14464,7 +14560,7 @@ impl ListPolicyTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14618,8 +14714,9 @@ impl ListPolicyVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14627,7 +14724,7 @@ impl ListPolicyVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14781,8 +14878,9 @@ impl ListRolePoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14790,7 +14888,7 @@ impl ListRolePoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14942,8 +15040,9 @@ impl ListRolesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14951,7 +15050,7 @@ impl ListRolesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15099,8 +15198,9 @@ impl ListRoleTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15108,7 +15208,7 @@ impl ListRoleTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15134,21 +15234,21 @@ impl ListRoleTagsInput { } } -/// See [`ListSAMLProvidersInput`](crate::input::ListSAMLProvidersInput) +/// See [`ListSamlProvidersInput`](crate::input::ListSamlProvidersInput) pub mod list_saml_providers_input { - /// A builder for [`ListSAMLProvidersInput`](crate::input::ListSAMLProvidersInput) + /// A builder for [`ListSamlProvidersInput`](crate::input::ListSamlProvidersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`ListSAMLProvidersInput`](crate::input::ListSAMLProvidersInput) + /// Consumes the builder and constructs a [`ListSamlProvidersInput`](crate::input::ListSamlProvidersInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListSAMLProvidersInput, + crate::input::ListSamlProvidersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListSAMLProvidersInput {}) + Ok(crate::input::ListSamlProvidersInput {}) } } } @@ -15156,7 +15256,7 @@ pub mod list_saml_providers_input { pub type ListSAMLProvidersInputOperationOutputAlias = crate::operation::ListSAMLProviders; #[doc(hidden)] pub type ListSAMLProvidersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListSAMLProvidersInput { +impl ListSamlProvidersInput { /// Consumes the builder and constructs an Operation<[`ListSAMLProviders`](crate::operation::ListSAMLProviders)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15215,8 +15315,9 @@ impl ListSAMLProvidersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15224,7 +15325,7 @@ impl ListSAMLProvidersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15244,15 +15345,15 @@ impl ListSAMLProvidersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListSAMLProvidersInput`](crate::input::ListSAMLProvidersInput) + /// Creates a new builder-style object to manufacture [`ListSamlProvidersInput`](crate::input::ListSamlProvidersInput) pub fn builder() -> crate::input::list_saml_providers_input::Builder { crate::input::list_saml_providers_input::Builder::default() } } -/// See [`ListSAMLProviderTagsInput`](crate::input::ListSAMLProviderTagsInput) +/// See [`ListSamlProviderTagsInput`](crate::input::ListSamlProviderTagsInput) pub mod list_saml_provider_tags_input { - /// A builder for [`ListSAMLProviderTagsInput`](crate::input::ListSAMLProviderTagsInput) + /// A builder for [`ListSamlProviderTagsInput`](crate::input::ListSamlProviderTagsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15303,14 +15404,14 @@ pub mod list_saml_provider_tags_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListSAMLProviderTagsInput`](crate::input::ListSAMLProviderTagsInput) + /// Consumes the builder and constructs a [`ListSamlProviderTagsInput`](crate::input::ListSamlProviderTagsInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListSAMLProviderTagsInput, + crate::input::ListSamlProviderTagsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListSAMLProviderTagsInput { + Ok(crate::input::ListSamlProviderTagsInput { saml_provider_arn: self.saml_provider_arn, marker: self.marker, max_items: self.max_items, @@ -15322,7 +15423,7 @@ pub mod list_saml_provider_tags_input { pub type ListSAMLProviderTagsInputOperationOutputAlias = crate::operation::ListSAMLProviderTags; #[doc(hidden)] pub type ListSAMLProviderTagsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListSAMLProviderTagsInput { +impl ListSamlProviderTagsInput { /// Consumes the builder and constructs an Operation<[`ListSAMLProviderTags`](crate::operation::ListSAMLProviderTags)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15381,8 +15482,9 @@ impl ListSAMLProviderTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15390,7 +15492,7 @@ impl ListSAMLProviderTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15410,7 +15512,7 @@ impl ListSAMLProviderTagsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListSAMLProviderTagsInput`](crate::input::ListSAMLProviderTagsInput) + /// Creates a new builder-style object to manufacture [`ListSamlProviderTagsInput`](crate::input::ListSamlProviderTagsInput) pub fn builder() -> crate::input::list_saml_provider_tags_input::Builder { crate::input::list_saml_provider_tags_input::Builder::default() } @@ -15549,8 +15651,9 @@ impl ListServerCertificatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15558,7 +15661,7 @@ impl ListServerCertificatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15716,8 +15819,9 @@ impl ListServerCertificateTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15725,7 +15829,7 @@ impl ListServerCertificateTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15863,8 +15967,9 @@ impl ListServiceSpecificCredentialsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15872,7 +15977,7 @@ impl ListServiceSpecificCredentialsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16027,8 +16132,9 @@ impl ListSigningCertificatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16036,7 +16142,7 @@ impl ListSigningCertificatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16062,9 +16168,9 @@ impl ListSigningCertificatesInput { } } -/// See [`ListSSHPublicKeysInput`](crate::input::ListSSHPublicKeysInput) +/// See [`ListSshPublicKeysInput`](crate::input::ListSshPublicKeysInput) pub mod list_ssh_public_keys_input { - /// A builder for [`ListSSHPublicKeysInput`](crate::input::ListSSHPublicKeysInput) + /// A builder for [`ListSshPublicKeysInput`](crate::input::ListSshPublicKeysInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16114,14 +16220,14 @@ pub mod list_ssh_public_keys_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListSSHPublicKeysInput`](crate::input::ListSSHPublicKeysInput) + /// Consumes the builder and constructs a [`ListSshPublicKeysInput`](crate::input::ListSshPublicKeysInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListSSHPublicKeysInput, + crate::input::ListSshPublicKeysInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListSSHPublicKeysInput { + Ok(crate::input::ListSshPublicKeysInput { user_name: self.user_name, marker: self.marker, max_items: self.max_items, @@ -16133,7 +16239,7 @@ pub mod list_ssh_public_keys_input { pub type ListSSHPublicKeysInputOperationOutputAlias = crate::operation::ListSSHPublicKeys; #[doc(hidden)] pub type ListSSHPublicKeysInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListSSHPublicKeysInput { +impl ListSshPublicKeysInput { /// Consumes the builder and constructs an Operation<[`ListSSHPublicKeys`](crate::operation::ListSSHPublicKeys)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -16192,8 +16298,9 @@ impl ListSSHPublicKeysInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16201,7 +16308,7 @@ impl ListSSHPublicKeysInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16221,7 +16328,7 @@ impl ListSSHPublicKeysInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListSSHPublicKeysInput`](crate::input::ListSSHPublicKeysInput) + /// Creates a new builder-style object to manufacture [`ListSshPublicKeysInput`](crate::input::ListSshPublicKeysInput) pub fn builder() -> crate::input::list_ssh_public_keys_input::Builder { crate::input::list_ssh_public_keys_input::Builder::default() } @@ -16355,8 +16462,9 @@ impl ListUserPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16364,7 +16472,7 @@ impl ListUserPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16516,8 +16624,9 @@ impl ListUsersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16525,7 +16634,7 @@ impl ListUsersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16673,8 +16782,9 @@ impl ListUserTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16682,7 +16792,7 @@ impl ListUserTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16708,9 +16818,9 @@ impl ListUserTagsInput { } } -/// See [`ListVirtualMFADevicesInput`](crate::input::ListVirtualMFADevicesInput) +/// See [`ListVirtualMfaDevicesInput`](crate::input::ListVirtualMfaDevicesInput) pub mod list_virtual_mfa_devices_input { - /// A builder for [`ListVirtualMFADevicesInput`](crate::input::ListVirtualMFADevicesInput) + /// A builder for [`ListVirtualMfaDevicesInput`](crate::input::ListVirtualMfaDevicesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16762,14 +16872,14 @@ pub mod list_virtual_mfa_devices_input { self.max_items = input; self } - /// Consumes the builder and constructs a [`ListVirtualMFADevicesInput`](crate::input::ListVirtualMFADevicesInput) + /// Consumes the builder and constructs a [`ListVirtualMfaDevicesInput`](crate::input::ListVirtualMfaDevicesInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListVirtualMFADevicesInput, + crate::input::ListVirtualMfaDevicesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListVirtualMFADevicesInput { + Ok(crate::input::ListVirtualMfaDevicesInput { assignment_status: self.assignment_status, marker: self.marker, max_items: self.max_items, @@ -16781,7 +16891,7 @@ pub mod list_virtual_mfa_devices_input { pub type ListVirtualMFADevicesInputOperationOutputAlias = crate::operation::ListVirtualMFADevices; #[doc(hidden)] pub type ListVirtualMFADevicesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListVirtualMFADevicesInput { +impl ListVirtualMfaDevicesInput { /// Consumes the builder and constructs an Operation<[`ListVirtualMFADevices`](crate::operation::ListVirtualMFADevices)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -16840,8 +16950,9 @@ impl ListVirtualMFADevicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16849,7 +16960,7 @@ impl ListVirtualMFADevicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16869,7 +16980,7 @@ impl ListVirtualMFADevicesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListVirtualMFADevicesInput`](crate::input::ListVirtualMFADevicesInput) + /// Creates a new builder-style object to manufacture [`ListVirtualMfaDevicesInput`](crate::input::ListVirtualMfaDevicesInput) pub fn builder() -> crate::input::list_virtual_mfa_devices_input::Builder { crate::input::list_virtual_mfa_devices_input::Builder::default() } @@ -17017,8 +17128,9 @@ impl PutGroupPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17026,7 +17138,7 @@ impl PutGroupPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17164,8 +17276,9 @@ impl PutRolePermissionsBoundaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17173,7 +17286,7 @@ impl PutRolePermissionsBoundaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17339,8 +17452,9 @@ impl PutRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17348,7 +17462,7 @@ impl PutRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17486,8 +17600,9 @@ impl PutUserPermissionsBoundaryInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17495,7 +17610,7 @@ impl PutUserPermissionsBoundaryInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17661,8 +17776,9 @@ impl PutUserPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17670,7 +17786,7 @@ impl PutUserPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17696,9 +17812,9 @@ impl PutUserPolicyInput { } } -/// See [`RemoveClientIDFromOpenIDConnectProviderInput`](crate::input::RemoveClientIDFromOpenIDConnectProviderInput) +/// See [`RemoveClientIdFromOpenIdConnectProviderInput`](crate::input::RemoveClientIdFromOpenIdConnectProviderInput) pub mod remove_client_id_from_open_id_connect_provider_input { - /// A builder for [`RemoveClientIDFromOpenIDConnectProviderInput`](crate::input::RemoveClientIDFromOpenIDConnectProviderInput) + /// A builder for [`RemoveClientIdFromOpenIdConnectProviderInput`](crate::input::RemoveClientIdFromOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17733,14 +17849,14 @@ pub mod remove_client_id_from_open_id_connect_provider_input { self.client_id = input; self } - /// Consumes the builder and constructs a [`RemoveClientIDFromOpenIDConnectProviderInput`](crate::input::RemoveClientIDFromOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`RemoveClientIdFromOpenIdConnectProviderInput`](crate::input::RemoveClientIdFromOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::RemoveClientIDFromOpenIDConnectProviderInput, + crate::input::RemoveClientIdFromOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RemoveClientIDFromOpenIDConnectProviderInput { + Ok(crate::input::RemoveClientIdFromOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, client_id: self.client_id, }) @@ -17753,7 +17869,7 @@ pub type RemoveClientIDFromOpenIDConnectProviderInputOperationOutputAlias = #[doc(hidden)] pub type RemoveClientIDFromOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RemoveClientIDFromOpenIDConnectProviderInput { +impl RemoveClientIdFromOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`RemoveClientIDFromOpenIDConnectProvider`](crate::operation::RemoveClientIDFromOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -17811,8 +17927,9 @@ impl RemoveClientIDFromOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17820,7 +17937,7 @@ impl RemoveClientIDFromOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17840,7 +17957,7 @@ impl RemoveClientIDFromOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RemoveClientIDFromOpenIDConnectProviderInput`](crate::input::RemoveClientIDFromOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`RemoveClientIdFromOpenIdConnectProviderInput`](crate::input::RemoveClientIdFromOpenIdConnectProviderInput) pub fn builder() -> crate::input::remove_client_id_from_open_id_connect_provider_input::Builder { crate::input::remove_client_id_from_open_id_connect_provider_input::Builder::default() @@ -17961,8 +18078,9 @@ impl RemoveRoleFromInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17970,7 +18088,7 @@ impl RemoveRoleFromInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18105,8 +18223,9 @@ impl RemoveUserFromGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18114,7 +18233,7 @@ impl RemoveUserFromGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18259,8 +18378,9 @@ impl ResetServiceSpecificCredentialInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18268,7 +18388,7 @@ impl ResetServiceSpecificCredentialInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18294,9 +18414,9 @@ impl ResetServiceSpecificCredentialInput { } } -/// See [`ResyncMFADeviceInput`](crate::input::ResyncMFADeviceInput) +/// See [`ResyncMfaDeviceInput`](crate::input::ResyncMfaDeviceInput) pub mod resync_mfa_device_input { - /// A builder for [`ResyncMFADeviceInput`](crate::input::ResyncMFADeviceInput) + /// A builder for [`ResyncMfaDeviceInput`](crate::input::ResyncMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18357,14 +18477,14 @@ pub mod resync_mfa_device_input { self.authentication_code2 = input; self } - /// Consumes the builder and constructs a [`ResyncMFADeviceInput`](crate::input::ResyncMFADeviceInput) + /// Consumes the builder and constructs a [`ResyncMfaDeviceInput`](crate::input::ResyncMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::ResyncMFADeviceInput, + crate::input::ResyncMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ResyncMFADeviceInput { + Ok(crate::input::ResyncMfaDeviceInput { user_name: self.user_name, serial_number: self.serial_number, authentication_code1: self.authentication_code1, @@ -18377,7 +18497,7 @@ pub mod resync_mfa_device_input { pub type ResyncMFADeviceInputOperationOutputAlias = crate::operation::ResyncMFADevice; #[doc(hidden)] pub type ResyncMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ResyncMFADeviceInput { +impl ResyncMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`ResyncMFADevice`](crate::operation::ResyncMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -18435,8 +18555,9 @@ impl ResyncMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18444,7 +18565,7 @@ impl ResyncMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18464,7 +18585,7 @@ impl ResyncMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ResyncMFADeviceInput`](crate::input::ResyncMFADeviceInput) + /// Creates a new builder-style object to manufacture [`ResyncMfaDeviceInput`](crate::input::ResyncMfaDeviceInput) pub fn builder() -> crate::input::resync_mfa_device_input::Builder { crate::input::resync_mfa_device_input::Builder::default() } @@ -18580,8 +18701,9 @@ impl SetDefaultPolicyVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18589,7 +18711,7 @@ impl SetDefaultPolicyVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18727,8 +18849,9 @@ impl SetSecurityTokenServicePreferencesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18736,7 +18859,7 @@ impl SetSecurityTokenServicePreferencesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19096,8 +19219,9 @@ impl SimulateCustomPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19105,7 +19229,7 @@ impl SimulateCustomPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19490,8 +19614,9 @@ impl SimulatePrincipalPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19499,7 +19624,7 @@ impl SimulatePrincipalPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19639,8 +19764,9 @@ impl TagInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19648,7 +19774,7 @@ impl TagInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19674,9 +19800,9 @@ impl TagInstanceProfileInput { } } -/// See [`TagMFADeviceInput`](crate::input::TagMFADeviceInput) +/// See [`TagMfaDeviceInput`](crate::input::TagMfaDeviceInput) pub mod tag_mfa_device_input { - /// A builder for [`TagMFADeviceInput`](crate::input::TagMFADeviceInput) + /// A builder for [`TagMfaDeviceInput`](crate::input::TagMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19712,12 +19838,12 @@ pub mod tag_mfa_device_input { self.tags = input; self } - /// Consumes the builder and constructs a [`TagMFADeviceInput`](crate::input::TagMFADeviceInput) + /// Consumes the builder and constructs a [`TagMfaDeviceInput`](crate::input::TagMfaDeviceInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::TagMFADeviceInput { + Ok(crate::input::TagMfaDeviceInput { serial_number: self.serial_number, tags: self.tags, }) @@ -19728,7 +19854,7 @@ pub mod tag_mfa_device_input { pub type TagMFADeviceInputOperationOutputAlias = crate::operation::TagMFADevice; #[doc(hidden)] pub type TagMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl TagMFADeviceInput { +impl TagMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`TagMFADevice`](crate::operation::TagMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19784,8 +19910,9 @@ impl TagMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19793,7 +19920,7 @@ impl TagMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19813,15 +19940,15 @@ impl TagMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`TagMFADeviceInput`](crate::input::TagMFADeviceInput) + /// Creates a new builder-style object to manufacture [`TagMfaDeviceInput`](crate::input::TagMfaDeviceInput) pub fn builder() -> crate::input::tag_mfa_device_input::Builder { crate::input::tag_mfa_device_input::Builder::default() } } -/// See [`TagOpenIDConnectProviderInput`](crate::input::TagOpenIDConnectProviderInput) +/// See [`TagOpenIdConnectProviderInput`](crate::input::TagOpenIdConnectProviderInput) pub mod tag_open_id_connect_provider_input { - /// A builder for [`TagOpenIDConnectProviderInput`](crate::input::TagOpenIDConnectProviderInput) + /// A builder for [`TagOpenIdConnectProviderInput`](crate::input::TagOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19859,14 +19986,14 @@ pub mod tag_open_id_connect_provider_input { self.tags = input; self } - /// Consumes the builder and constructs a [`TagOpenIDConnectProviderInput`](crate::input::TagOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`TagOpenIdConnectProviderInput`](crate::input::TagOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::TagOpenIDConnectProviderInput, + crate::input::TagOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::TagOpenIDConnectProviderInput { + Ok(crate::input::TagOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, tags: self.tags, }) @@ -19878,7 +20005,7 @@ pub type TagOpenIDConnectProviderInputOperationOutputAlias = crate::operation::TagOpenIDConnectProvider; #[doc(hidden)] pub type TagOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl TagOpenIDConnectProviderInput { +impl TagOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`TagOpenIDConnectProvider`](crate::operation::TagOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19938,8 +20065,9 @@ impl TagOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19947,7 +20075,7 @@ impl TagOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19967,7 +20095,7 @@ impl TagOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`TagOpenIDConnectProviderInput`](crate::input::TagOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`TagOpenIdConnectProviderInput`](crate::input::TagOpenIdConnectProviderInput) pub fn builder() -> crate::input::tag_open_id_connect_provider_input::Builder { crate::input::tag_open_id_connect_provider_input::Builder::default() } @@ -20077,8 +20205,9 @@ impl TagPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20086,7 +20215,7 @@ impl TagPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20213,8 +20342,9 @@ impl TagRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20222,7 +20352,7 @@ impl TagRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20248,9 +20378,9 @@ impl TagRoleInput { } } -/// See [`TagSAMLProviderInput`](crate::input::TagSAMLProviderInput) +/// See [`TagSamlProviderInput`](crate::input::TagSamlProviderInput) pub mod tag_saml_provider_input { - /// A builder for [`TagSAMLProviderInput`](crate::input::TagSAMLProviderInput) + /// A builder for [`TagSamlProviderInput`](crate::input::TagSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20285,14 +20415,14 @@ pub mod tag_saml_provider_input { self.tags = input; self } - /// Consumes the builder and constructs a [`TagSAMLProviderInput`](crate::input::TagSAMLProviderInput) + /// Consumes the builder and constructs a [`TagSamlProviderInput`](crate::input::TagSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::TagSAMLProviderInput, + crate::input::TagSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::TagSAMLProviderInput { + Ok(crate::input::TagSamlProviderInput { saml_provider_arn: self.saml_provider_arn, tags: self.tags, }) @@ -20303,7 +20433,7 @@ pub mod tag_saml_provider_input { pub type TagSAMLProviderInputOperationOutputAlias = crate::operation::TagSAMLProvider; #[doc(hidden)] pub type TagSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl TagSAMLProviderInput { +impl TagSamlProviderInput { /// Consumes the builder and constructs an Operation<[`TagSAMLProvider`](crate::operation::TagSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -20361,8 +20491,9 @@ impl TagSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20370,7 +20501,7 @@ impl TagSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20390,7 +20521,7 @@ impl TagSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`TagSAMLProviderInput`](crate::input::TagSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`TagSamlProviderInput`](crate::input::TagSamlProviderInput) pub fn builder() -> crate::input::tag_saml_provider_input::Builder { crate::input::tag_saml_provider_input::Builder::default() } @@ -20510,8 +20641,9 @@ impl TagServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20519,7 +20651,7 @@ impl TagServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20646,8 +20778,9 @@ impl TagUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20655,7 +20788,7 @@ impl TagUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20795,8 +20928,9 @@ impl UntagInstanceProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20804,7 +20938,7 @@ impl UntagInstanceProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20830,9 +20964,9 @@ impl UntagInstanceProfileInput { } } -/// See [`UntagMFADeviceInput`](crate::input::UntagMFADeviceInput) +/// See [`UntagMfaDeviceInput`](crate::input::UntagMfaDeviceInput) pub mod untag_mfa_device_input { - /// A builder for [`UntagMFADeviceInput`](crate::input::UntagMFADeviceInput) + /// A builder for [`UntagMfaDeviceInput`](crate::input::UntagMfaDeviceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20868,14 +21002,14 @@ pub mod untag_mfa_device_input { self.tag_keys = input; self } - /// Consumes the builder and constructs a [`UntagMFADeviceInput`](crate::input::UntagMFADeviceInput) + /// Consumes the builder and constructs a [`UntagMfaDeviceInput`](crate::input::UntagMfaDeviceInput) pub fn build( self, ) -> std::result::Result< - crate::input::UntagMFADeviceInput, + crate::input::UntagMfaDeviceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UntagMFADeviceInput { + Ok(crate::input::UntagMfaDeviceInput { serial_number: self.serial_number, tag_keys: self.tag_keys, }) @@ -20886,7 +21020,7 @@ pub mod untag_mfa_device_input { pub type UntagMFADeviceInputOperationOutputAlias = crate::operation::UntagMFADevice; #[doc(hidden)] pub type UntagMFADeviceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UntagMFADeviceInput { +impl UntagMfaDeviceInput { /// Consumes the builder and constructs an Operation<[`UntagMFADevice`](crate::operation::UntagMFADevice)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -20944,8 +21078,9 @@ impl UntagMFADeviceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20953,7 +21088,7 @@ impl UntagMFADeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20973,15 +21108,15 @@ impl UntagMFADeviceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UntagMFADeviceInput`](crate::input::UntagMFADeviceInput) + /// Creates a new builder-style object to manufacture [`UntagMfaDeviceInput`](crate::input::UntagMfaDeviceInput) pub fn builder() -> crate::input::untag_mfa_device_input::Builder { crate::input::untag_mfa_device_input::Builder::default() } } -/// See [`UntagOpenIDConnectProviderInput`](crate::input::UntagOpenIDConnectProviderInput) +/// See [`UntagOpenIdConnectProviderInput`](crate::input::UntagOpenIdConnectProviderInput) pub mod untag_open_id_connect_provider_input { - /// A builder for [`UntagOpenIDConnectProviderInput`](crate::input::UntagOpenIDConnectProviderInput) + /// A builder for [`UntagOpenIdConnectProviderInput`](crate::input::UntagOpenIdConnectProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21019,14 +21154,14 @@ pub mod untag_open_id_connect_provider_input { self.tag_keys = input; self } - /// Consumes the builder and constructs a [`UntagOpenIDConnectProviderInput`](crate::input::UntagOpenIDConnectProviderInput) + /// Consumes the builder and constructs a [`UntagOpenIdConnectProviderInput`](crate::input::UntagOpenIdConnectProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::UntagOpenIDConnectProviderInput, + crate::input::UntagOpenIdConnectProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UntagOpenIDConnectProviderInput { + Ok(crate::input::UntagOpenIdConnectProviderInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, tag_keys: self.tag_keys, }) @@ -21038,7 +21173,7 @@ pub type UntagOpenIDConnectProviderInputOperationOutputAlias = crate::operation::UntagOpenIDConnectProvider; #[doc(hidden)] pub type UntagOpenIDConnectProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UntagOpenIDConnectProviderInput { +impl UntagOpenIdConnectProviderInput { /// Consumes the builder and constructs an Operation<[`UntagOpenIDConnectProvider`](crate::operation::UntagOpenIDConnectProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21098,8 +21233,9 @@ impl UntagOpenIDConnectProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21107,7 +21243,7 @@ impl UntagOpenIDConnectProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21127,7 +21263,7 @@ impl UntagOpenIDConnectProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UntagOpenIDConnectProviderInput`](crate::input::UntagOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`UntagOpenIdConnectProviderInput`](crate::input::UntagOpenIdConnectProviderInput) pub fn builder() -> crate::input::untag_open_id_connect_provider_input::Builder { crate::input::untag_open_id_connect_provider_input::Builder::default() } @@ -21240,8 +21376,9 @@ impl UntagPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21249,7 +21386,7 @@ impl UntagPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21379,8 +21516,9 @@ impl UntagRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21388,7 +21526,7 @@ impl UntagRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21414,9 +21552,9 @@ impl UntagRoleInput { } } -/// See [`UntagSAMLProviderInput`](crate::input::UntagSAMLProviderInput) +/// See [`UntagSamlProviderInput`](crate::input::UntagSamlProviderInput) pub mod untag_saml_provider_input { - /// A builder for [`UntagSAMLProviderInput`](crate::input::UntagSAMLProviderInput) + /// A builder for [`UntagSamlProviderInput`](crate::input::UntagSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21452,14 +21590,14 @@ pub mod untag_saml_provider_input { self.tag_keys = input; self } - /// Consumes the builder and constructs a [`UntagSAMLProviderInput`](crate::input::UntagSAMLProviderInput) + /// Consumes the builder and constructs a [`UntagSamlProviderInput`](crate::input::UntagSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::UntagSAMLProviderInput, + crate::input::UntagSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UntagSAMLProviderInput { + Ok(crate::input::UntagSamlProviderInput { saml_provider_arn: self.saml_provider_arn, tag_keys: self.tag_keys, }) @@ -21470,7 +21608,7 @@ pub mod untag_saml_provider_input { pub type UntagSAMLProviderInputOperationOutputAlias = crate::operation::UntagSAMLProvider; #[doc(hidden)] pub type UntagSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UntagSAMLProviderInput { +impl UntagSamlProviderInput { /// Consumes the builder and constructs an Operation<[`UntagSAMLProvider`](crate::operation::UntagSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21529,8 +21667,9 @@ impl UntagSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21538,7 +21677,7 @@ impl UntagSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21558,7 +21697,7 @@ impl UntagSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UntagSAMLProviderInput`](crate::input::UntagSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`UntagSamlProviderInput`](crate::input::UntagSamlProviderInput) pub fn builder() -> crate::input::untag_saml_provider_input::Builder { crate::input::untag_saml_provider_input::Builder::default() } @@ -21678,8 +21817,9 @@ impl UntagServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21687,7 +21827,7 @@ impl UntagServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21817,8 +21957,9 @@ impl UntagUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21826,7 +21967,7 @@ impl UntagUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21976,8 +22117,9 @@ impl UpdateAccessKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21985,7 +22127,7 @@ impl UpdateAccessKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22240,8 +22382,9 @@ impl UpdateAccountPasswordPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22249,7 +22392,7 @@ impl UpdateAccountPasswordPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22405,8 +22548,9 @@ impl UpdateAssumeRolePolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22414,7 +22558,7 @@ impl UpdateAssumeRolePolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22564,8 +22708,9 @@ impl UpdateGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22573,7 +22718,7 @@ impl UpdateGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22736,8 +22881,9 @@ impl UpdateLoginProfileInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22745,7 +22891,7 @@ impl UpdateLoginProfileInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22771,9 +22917,9 @@ impl UpdateLoginProfileInput { } } -/// See [`UpdateOpenIDConnectProviderThumbprintInput`](crate::input::UpdateOpenIDConnectProviderThumbprintInput) +/// See [`UpdateOpenIdConnectProviderThumbprintInput`](crate::input::UpdateOpenIdConnectProviderThumbprintInput) pub mod update_open_id_connect_provider_thumbprint_input { - /// A builder for [`UpdateOpenIDConnectProviderThumbprintInput`](crate::input::UpdateOpenIDConnectProviderThumbprintInput) + /// A builder for [`UpdateOpenIdConnectProviderThumbprintInput`](crate::input::UpdateOpenIdConnectProviderThumbprintInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22812,14 +22958,14 @@ pub mod update_open_id_connect_provider_thumbprint_input { self.thumbprint_list = input; self } - /// Consumes the builder and constructs a [`UpdateOpenIDConnectProviderThumbprintInput`](crate::input::UpdateOpenIDConnectProviderThumbprintInput) + /// Consumes the builder and constructs a [`UpdateOpenIdConnectProviderThumbprintInput`](crate::input::UpdateOpenIdConnectProviderThumbprintInput) pub fn build( self, ) -> std::result::Result< - crate::input::UpdateOpenIDConnectProviderThumbprintInput, + crate::input::UpdateOpenIdConnectProviderThumbprintInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UpdateOpenIDConnectProviderThumbprintInput { + Ok(crate::input::UpdateOpenIdConnectProviderThumbprintInput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, thumbprint_list: self.thumbprint_list, }) @@ -22832,7 +22978,7 @@ pub type UpdateOpenIDConnectProviderThumbprintInputOperationOutputAlias = #[doc(hidden)] pub type UpdateOpenIDConnectProviderThumbprintInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UpdateOpenIDConnectProviderThumbprintInput { +impl UpdateOpenIdConnectProviderThumbprintInput { /// Consumes the builder and constructs an Operation<[`UpdateOpenIDConnectProviderThumbprint`](crate::operation::UpdateOpenIDConnectProviderThumbprint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -22890,8 +23036,9 @@ impl UpdateOpenIDConnectProviderThumbprintInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22899,7 +23046,7 @@ impl UpdateOpenIDConnectProviderThumbprintInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22919,7 +23066,7 @@ impl UpdateOpenIDConnectProviderThumbprintInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UpdateOpenIDConnectProviderThumbprintInput`](crate::input::UpdateOpenIDConnectProviderThumbprintInput) + /// Creates a new builder-style object to manufacture [`UpdateOpenIdConnectProviderThumbprintInput`](crate::input::UpdateOpenIdConnectProviderThumbprintInput) pub fn builder() -> crate::input::update_open_id_connect_provider_thumbprint_input::Builder { crate::input::update_open_id_connect_provider_thumbprint_input::Builder::default() } @@ -23048,8 +23195,9 @@ impl UpdateRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23057,7 +23205,7 @@ impl UpdateRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23188,8 +23336,9 @@ impl UpdateRoleDescriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23197,7 +23346,7 @@ impl UpdateRoleDescriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23223,9 +23372,9 @@ impl UpdateRoleDescriptionInput { } } -/// See [`UpdateSAMLProviderInput`](crate::input::UpdateSAMLProviderInput) +/// See [`UpdateSamlProviderInput`](crate::input::UpdateSamlProviderInput) pub mod update_saml_provider_input { - /// A builder for [`UpdateSAMLProviderInput`](crate::input::UpdateSAMLProviderInput) + /// A builder for [`UpdateSamlProviderInput`](crate::input::UpdateSamlProviderInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23262,14 +23411,14 @@ pub mod update_saml_provider_input { self.saml_provider_arn = input; self } - /// Consumes the builder and constructs a [`UpdateSAMLProviderInput`](crate::input::UpdateSAMLProviderInput) + /// Consumes the builder and constructs a [`UpdateSamlProviderInput`](crate::input::UpdateSamlProviderInput) pub fn build( self, ) -> std::result::Result< - crate::input::UpdateSAMLProviderInput, + crate::input::UpdateSamlProviderInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UpdateSAMLProviderInput { + Ok(crate::input::UpdateSamlProviderInput { saml_metadata_document: self.saml_metadata_document, saml_provider_arn: self.saml_provider_arn, }) @@ -23280,7 +23429,7 @@ pub mod update_saml_provider_input { pub type UpdateSAMLProviderInputOperationOutputAlias = crate::operation::UpdateSAMLProvider; #[doc(hidden)] pub type UpdateSAMLProviderInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UpdateSAMLProviderInput { +impl UpdateSamlProviderInput { /// Consumes the builder and constructs an Operation<[`UpdateSAMLProvider`](crate::operation::UpdateSAMLProvider)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23339,8 +23488,9 @@ impl UpdateSAMLProviderInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23348,7 +23498,7 @@ impl UpdateSAMLProviderInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23368,7 +23518,7 @@ impl UpdateSAMLProviderInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UpdateSAMLProviderInput`](crate::input::UpdateSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`UpdateSamlProviderInput`](crate::input::UpdateSamlProviderInput) pub fn builder() -> crate::input::update_saml_provider_input::Builder { crate::input::update_saml_provider_input::Builder::default() } @@ -23510,8 +23660,9 @@ impl UpdateServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23519,7 +23670,7 @@ impl UpdateServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23675,8 +23826,9 @@ impl UpdateServiceSpecificCredentialInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23684,7 +23836,7 @@ impl UpdateServiceSpecificCredentialInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23836,8 +23988,9 @@ impl UpdateSigningCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23845,7 +23998,7 @@ impl UpdateSigningCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23871,9 +24024,9 @@ impl UpdateSigningCertificateInput { } } -/// See [`UpdateSSHPublicKeyInput`](crate::input::UpdateSSHPublicKeyInput) +/// See [`UpdateSshPublicKeyInput`](crate::input::UpdateSshPublicKeyInput) pub mod update_ssh_public_key_input { - /// A builder for [`UpdateSSHPublicKeyInput`](crate::input::UpdateSSHPublicKeyInput) + /// A builder for [`UpdateSshPublicKeyInput`](crate::input::UpdateSshPublicKeyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23918,14 +24071,14 @@ pub mod update_ssh_public_key_input { self.status = input; self } - /// Consumes the builder and constructs a [`UpdateSSHPublicKeyInput`](crate::input::UpdateSSHPublicKeyInput) + /// Consumes the builder and constructs a [`UpdateSshPublicKeyInput`](crate::input::UpdateSshPublicKeyInput) pub fn build( self, ) -> std::result::Result< - crate::input::UpdateSSHPublicKeyInput, + crate::input::UpdateSshPublicKeyInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UpdateSSHPublicKeyInput { + Ok(crate::input::UpdateSshPublicKeyInput { user_name: self.user_name, ssh_public_key_id: self.ssh_public_key_id, status: self.status, @@ -23937,7 +24090,7 @@ pub mod update_ssh_public_key_input { pub type UpdateSSHPublicKeyInputOperationOutputAlias = crate::operation::UpdateSSHPublicKey; #[doc(hidden)] pub type UpdateSSHPublicKeyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UpdateSSHPublicKeyInput { +impl UpdateSshPublicKeyInput { /// Consumes the builder and constructs an Operation<[`UpdateSSHPublicKey`](crate::operation::UpdateSSHPublicKey)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23996,8 +24149,9 @@ impl UpdateSSHPublicKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24005,7 +24159,7 @@ impl UpdateSSHPublicKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24025,7 +24179,7 @@ impl UpdateSSHPublicKeyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UpdateSSHPublicKeyInput`](crate::input::UpdateSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`UpdateSshPublicKeyInput`](crate::input::UpdateSshPublicKeyInput) pub fn builder() -> crate::input::update_ssh_public_key_input::Builder { crate::input::update_ssh_public_key_input::Builder::default() } @@ -24157,8 +24311,9 @@ impl UpdateUserInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24166,7 +24321,7 @@ impl UpdateUserInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24419,8 +24574,9 @@ impl UploadServerCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24428,7 +24584,7 @@ impl UploadServerCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24581,8 +24737,9 @@ impl UploadSigningCertificateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24590,7 +24747,7 @@ impl UploadSigningCertificateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24616,9 +24773,9 @@ impl UploadSigningCertificateInput { } } -/// See [`UploadSSHPublicKeyInput`](crate::input::UploadSSHPublicKeyInput) +/// See [`UploadSshPublicKeyInput`](crate::input::UploadSshPublicKeyInput) pub mod upload_ssh_public_key_input { - /// A builder for [`UploadSSHPublicKeyInput`](crate::input::UploadSSHPublicKeyInput) + /// A builder for [`UploadSshPublicKeyInput`](crate::input::UploadSshPublicKeyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -24667,14 +24824,14 @@ pub mod upload_ssh_public_key_input { self.ssh_public_key_body = input; self } - /// Consumes the builder and constructs a [`UploadSSHPublicKeyInput`](crate::input::UploadSSHPublicKeyInput) + /// Consumes the builder and constructs a [`UploadSshPublicKeyInput`](crate::input::UploadSshPublicKeyInput) pub fn build( self, ) -> std::result::Result< - crate::input::UploadSSHPublicKeyInput, + crate::input::UploadSshPublicKeyInput, smithy_http::operation::BuildError, > { - Ok(crate::input::UploadSSHPublicKeyInput { + Ok(crate::input::UploadSshPublicKeyInput { user_name: self.user_name, ssh_public_key_body: self.ssh_public_key_body, }) @@ -24685,7 +24842,7 @@ pub mod upload_ssh_public_key_input { pub type UploadSSHPublicKeyInputOperationOutputAlias = crate::operation::UploadSSHPublicKey; #[doc(hidden)] pub type UploadSSHPublicKeyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl UploadSSHPublicKeyInput { +impl UploadSshPublicKeyInput { /// Consumes the builder and constructs an Operation<[`UploadSSHPublicKey`](crate::operation::UploadSSHPublicKey)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -24744,8 +24901,9 @@ impl UploadSSHPublicKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24753,7 +24911,7 @@ impl UploadSSHPublicKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24773,7 +24931,7 @@ impl UploadSSHPublicKeyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`UploadSSHPublicKeyInput`](crate::input::UploadSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`UploadSshPublicKeyInput`](crate::input::UploadSshPublicKeyInput) pub fn builder() -> crate::input::upload_ssh_public_key_input::Builder { crate::input::upload_ssh_public_key_input::Builder::default() } @@ -24781,7 +24939,7 @@ impl UploadSSHPublicKeyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UploadSSHPublicKeyInput { +pub struct UploadSshPublicKeyInput { ///

    The name of the IAM user to associate the SSH public key with.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -24807,9 +24965,9 @@ pub struct UploadSSHPublicKeyInput { /// pub ssh_public_key_body: std::option::Option, } -impl std::fmt::Debug for UploadSSHPublicKeyInput { +impl std::fmt::Debug for UploadSshPublicKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UploadSSHPublicKeyInput"); + let mut formatter = f.debug_struct("UploadSshPublicKeyInput"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_body", &self.ssh_public_key_body); formatter.finish() @@ -24984,7 +25142,7 @@ impl std::fmt::Debug for UpdateUserInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSSHPublicKeyInput { +pub struct UpdateSshPublicKeyInput { ///

    The name of the IAM user associated with the SSH public key.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -24998,9 +25156,9 @@ pub struct UpdateSSHPublicKeyInput { /// the key cannot be used.

    pub status: std::option::Option, } -impl std::fmt::Debug for UpdateSSHPublicKeyInput { +impl std::fmt::Debug for UpdateSshPublicKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSSHPublicKeyInput"); + let mut formatter = f.debug_struct("UpdateSshPublicKeyInput"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_id", &self.ssh_public_key_id); formatter.field("status", &self.status); @@ -25098,7 +25256,7 @@ impl std::fmt::Debug for UpdateServerCertificateInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSAMLProviderInput { +pub struct UpdateSamlProviderInput { ///

    An XML document generated by an identity provider (IdP) that supports SAML 2.0. The /// document includes the issuer's name, expiration information, and keys that can be used /// to validate the SAML authentication response (assertions) that are received from the @@ -25109,9 +25267,9 @@ pub struct UpdateSAMLProviderInput { ///

    For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

    pub saml_provider_arn: std::option::Option, } -impl std::fmt::Debug for UpdateSAMLProviderInput { +impl std::fmt::Debug for UpdateSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSAMLProviderInput"); + let mut formatter = f.debug_struct("UpdateSamlProviderInput"); formatter.field("saml_metadata_document", &self.saml_metadata_document); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.finish() @@ -25169,7 +25327,7 @@ impl std::fmt::Debug for UpdateRoleInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOpenIDConnectProviderThumbprintInput { +pub struct UpdateOpenIdConnectProviderThumbprintInput { ///

    The Amazon Resource Name (ARN) of the IAM OIDC provider resource object for which /// you want to update the thumbprint. You can get a list of OIDC provider ARNs by using the /// ListOpenIDConnectProviders operation.

    @@ -25179,9 +25337,9 @@ pub struct UpdateOpenIDConnectProviderThumbprintInput { /// Connect provider. For more information, see CreateOpenIDConnectProvider.

    pub thumbprint_list: std::option::Option>, } -impl std::fmt::Debug for UpdateOpenIDConnectProviderThumbprintInput { +impl std::fmt::Debug for UpdateOpenIdConnectProviderThumbprintInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOpenIDConnectProviderThumbprintInput"); + let mut formatter = f.debug_struct("UpdateOpenIdConnectProviderThumbprintInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -25450,7 +25608,7 @@ impl std::fmt::Debug for UntagServerCertificateInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagSAMLProviderInput { +pub struct UntagSamlProviderInput { ///

    The ARN of the SAML identity provider in IAM from which you want to remove /// tags.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -25460,9 +25618,9 @@ pub struct UntagSAMLProviderInput { /// removed from the specified SAML identity provider.

    pub tag_keys: std::option::Option>, } -impl std::fmt::Debug for UntagSAMLProviderInput { +impl std::fmt::Debug for UntagSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagSAMLProviderInput"); + let mut formatter = f.debug_struct("UntagSamlProviderInput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.field("tag_keys", &self.tag_keys); formatter.finish() @@ -25512,7 +25670,7 @@ impl std::fmt::Debug for UntagPolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagOpenIDConnectProviderInput { +pub struct UntagOpenIdConnectProviderInput { ///

    The ARN of the OIDC provider in IAM from which you want to remove tags.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: =,.@-

    @@ -25521,9 +25679,9 @@ pub struct UntagOpenIDConnectProviderInput { /// removed from the specified OIDC provider.

    pub tag_keys: std::option::Option>, } -impl std::fmt::Debug for UntagOpenIDConnectProviderInput { +impl std::fmt::Debug for UntagOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("UntagOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -25535,7 +25693,7 @@ impl std::fmt::Debug for UntagOpenIDConnectProviderInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagMFADeviceInput { +pub struct UntagMfaDeviceInput { ///

    The unique identifier for the IAM virtual MFA device from which you want to remove /// tags. For virtual MFA devices, the serial number is the same as the ARN.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -25545,9 +25703,9 @@ pub struct UntagMFADeviceInput { /// removed from the specified instance profile.

    pub tag_keys: std::option::Option>, } -impl std::fmt::Debug for UntagMFADeviceInput { +impl std::fmt::Debug for UntagMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagMFADeviceInput"); + let mut formatter = f.debug_struct("UntagMfaDeviceInput"); formatter.field("serial_number", &self.serial_number); formatter.field("tag_keys", &self.tag_keys); formatter.finish() @@ -25615,7 +25773,7 @@ impl std::fmt::Debug for TagServerCertificateInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagSAMLProviderInput { +pub struct TagSamlProviderInput { ///

    The ARN of the SAML identity provider in IAM to which you want to add tags.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: =,.@-

    @@ -25624,9 +25782,9 @@ pub struct TagSAMLProviderInput { /// Each tag consists of a key name and an associated value.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for TagSAMLProviderInput { +impl std::fmt::Debug for TagSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagSAMLProviderInput"); + let mut formatter = f.debug_struct("TagSamlProviderInput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.field("tags", &self.tags); formatter.finish() @@ -25674,7 +25832,7 @@ impl std::fmt::Debug for TagPolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagOpenIDConnectProviderInput { +pub struct TagOpenIdConnectProviderInput { ///

    The ARN of the OIDC identity provider in IAM to which you want to add tags.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: =,.@-

    @@ -25683,9 +25841,9 @@ pub struct TagOpenIDConnectProviderInput { /// Each tag consists of a key name and an associated value.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for TagOpenIDConnectProviderInput { +impl std::fmt::Debug for TagOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("TagOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -25697,7 +25855,7 @@ impl std::fmt::Debug for TagOpenIDConnectProviderInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagMFADeviceInput { +pub struct TagMfaDeviceInput { ///

    The unique identifier for the IAM virtual MFA device to which you want to add tags. /// For virtual MFA devices, the serial number is the same as the ARN.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -25707,9 +25865,9 @@ pub struct TagMFADeviceInput { /// Each tag consists of a key name and an associated value.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for TagMFADeviceInput { +impl std::fmt::Debug for TagMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagMFADeviceInput"); + let mut formatter = f.debug_struct("TagMfaDeviceInput"); formatter.field("serial_number", &self.serial_number); formatter.field("tags", &self.tags); formatter.finish() @@ -26199,7 +26357,7 @@ impl std::fmt::Debug for SetDefaultPolicyVersionInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResyncMFADeviceInput { +pub struct ResyncMfaDeviceInput { ///

    The name of the user whose MFA device you want to resynchronize.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -26215,9 +26373,9 @@ pub struct ResyncMFADeviceInput { ///

    The format for this parameter is a sequence of six digits.

    pub authentication_code2: std::option::Option, } -impl std::fmt::Debug for ResyncMFADeviceInput { +impl std::fmt::Debug for ResyncMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResyncMFADeviceInput"); + let mut formatter = f.debug_struct("ResyncMfaDeviceInput"); formatter.field("user_name", &self.user_name); formatter.field("serial_number", &self.serial_number); formatter.field("authentication_code1", &self.authentication_code1); @@ -26296,7 +26454,7 @@ impl std::fmt::Debug for RemoveRoleFromInstanceProfileInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveClientIDFromOpenIDConnectProviderInput { +pub struct RemoveClientIdFromOpenIdConnectProviderInput { ///

    The Amazon Resource Name (ARN) of the IAM OIDC provider resource to remove the /// client ID from. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders operation.

    ///

    For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

    @@ -26305,9 +26463,9 @@ pub struct RemoveClientIDFromOpenIDConnectProviderInput { /// resource. For more information about client IDs, see CreateOpenIDConnectProvider.

    pub client_id: std::option::Option, } -impl std::fmt::Debug for RemoveClientIDFromOpenIDConnectProviderInput { +impl std::fmt::Debug for RemoveClientIdFromOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveClientIDFromOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("RemoveClientIdFromOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -26489,7 +26647,7 @@ impl std::fmt::Debug for PutGroupPolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListVirtualMFADevicesInput { +pub struct ListVirtualMfaDevicesInput { ///

    The status (Unassigned or Assigned) of the devices to list. /// If you do not specify an AssignmentStatus, the operation defaults to /// Any, which lists both assigned and unassigned virtual MFA @@ -26510,9 +26668,9 @@ pub struct ListVirtualMFADevicesInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListVirtualMFADevicesInput { +impl std::fmt::Debug for ListVirtualMfaDevicesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListVirtualMFADevicesInput"); + let mut formatter = f.debug_struct("ListVirtualMfaDevicesInput"); formatter.field("assignment_status", &self.assignment_status); formatter.field("marker", &self.marker); formatter.field("max_items", &self.max_items); @@ -26622,7 +26780,7 @@ impl std::fmt::Debug for ListUserPoliciesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSSHPublicKeysInput { +pub struct ListSshPublicKeysInput { ///

    The name of the IAM user to list SSH public keys for. If none is specified, the /// UserName field is determined implicitly based on the AWS access key /// used to sign the request.

    @@ -26644,9 +26802,9 @@ pub struct ListSSHPublicKeysInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListSSHPublicKeysInput { +impl std::fmt::Debug for ListSshPublicKeysInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSSHPublicKeysInput"); + let mut formatter = f.debug_struct("ListSshPublicKeysInput"); formatter.field("user_name", &self.user_name); formatter.field("marker", &self.marker); formatter.field("max_items", &self.max_items); @@ -26778,7 +26936,7 @@ impl std::fmt::Debug for ListServerCertificatesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSAMLProviderTagsInput { +pub struct ListSamlProviderTagsInput { ///

    The ARN of the Security Assertion Markup Language (SAML) identity provider whose tags /// you want to see.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -26798,9 +26956,9 @@ pub struct ListSAMLProviderTagsInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListSAMLProviderTagsInput { +impl std::fmt::Debug for ListSamlProviderTagsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSAMLProviderTagsInput"); + let mut formatter = f.debug_struct("ListSamlProviderTagsInput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.field("marker", &self.marker); formatter.field("max_items", &self.max_items); @@ -26810,10 +26968,10 @@ impl std::fmt::Debug for ListSAMLProviderTagsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSAMLProvidersInput {} -impl std::fmt::Debug for ListSAMLProvidersInput { +pub struct ListSamlProvidersInput {} +impl std::fmt::Debug for ListSamlProvidersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSAMLProvidersInput"); + let mut formatter = f.debug_struct("ListSamlProvidersInput"); formatter.finish() } } @@ -27070,7 +27228,7 @@ impl std::fmt::Debug for ListPoliciesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpenIDConnectProviderTagsInput { +pub struct ListOpenIdConnectProviderTagsInput { ///

    The ARN of the OpenID Connect (OIDC) identity provider whose tags you want to /// see.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -27090,9 +27248,9 @@ pub struct ListOpenIDConnectProviderTagsInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListOpenIDConnectProviderTagsInput { +impl std::fmt::Debug for ListOpenIdConnectProviderTagsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpenIDConnectProviderTagsInput"); + let mut formatter = f.debug_struct("ListOpenIdConnectProviderTagsInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -27105,17 +27263,17 @@ impl std::fmt::Debug for ListOpenIDConnectProviderTagsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpenIDConnectProvidersInput {} -impl std::fmt::Debug for ListOpenIDConnectProvidersInput { +pub struct ListOpenIdConnectProvidersInput {} +impl std::fmt::Debug for ListOpenIdConnectProvidersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpenIDConnectProvidersInput"); + let mut formatter = f.debug_struct("ListOpenIdConnectProvidersInput"); formatter.finish() } } #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMFADeviceTagsInput { +pub struct ListMfaDeviceTagsInput { ///

    The unique identifier for the IAM virtual MFA device whose tags you want to see. /// For virtual MFA devices, the serial number is the same as the ARN.

    ///

    This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric @@ -27135,9 +27293,9 @@ pub struct ListMFADeviceTagsInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListMFADeviceTagsInput { +impl std::fmt::Debug for ListMfaDeviceTagsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMFADeviceTagsInput"); + let mut formatter = f.debug_struct("ListMfaDeviceTagsInput"); formatter.field("serial_number", &self.serial_number); formatter.field("marker", &self.marker); formatter.field("max_items", &self.max_items); @@ -27147,7 +27305,7 @@ impl std::fmt::Debug for ListMFADeviceTagsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMFADevicesInput { +pub struct ListMfaDevicesInput { ///

    The name of the user whose MFA devices you want to list.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -27167,9 +27325,9 @@ pub struct ListMFADevicesInput { /// from.

    pub max_items: std::option::Option, } -impl std::fmt::Debug for ListMFADevicesInput { +impl std::fmt::Debug for ListMfaDevicesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMFADevicesInput"); + let mut formatter = f.debug_struct("ListMfaDevicesInput"); formatter.field("user_name", &self.user_name); formatter.field("marker", &self.marker); formatter.field("max_items", &self.max_items); @@ -27652,7 +27810,7 @@ impl std::fmt::Debug for GetUserInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSSHPublicKeyInput { +pub struct GetSshPublicKeyInput { ///

    The name of the IAM user associated with the SSH public key.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -27666,9 +27824,9 @@ pub struct GetSSHPublicKeyInput { /// format, use PEM.

    pub encoding: std::option::Option, } -impl std::fmt::Debug for GetSSHPublicKeyInput { +impl std::fmt::Debug for GetSshPublicKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSSHPublicKeyInput"); + let mut formatter = f.debug_struct("GetSshPublicKeyInput"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_id", &self.ssh_public_key_id); formatter.field("encoding", &self.encoding); @@ -27783,15 +27941,15 @@ impl std::fmt::Debug for GetServerCertificateInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSAMLProviderInput { +pub struct GetSamlProviderInput { ///

    The Amazon Resource Name (ARN) of the SAML provider resource object in IAM to get /// information about.

    ///

    For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

    pub saml_provider_arn: std::option::Option, } -impl std::fmt::Debug for GetSAMLProviderInput { +impl std::fmt::Debug for GetSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSAMLProviderInput"); + let mut formatter = f.debug_struct("GetSamlProviderInput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.finish() } @@ -27909,15 +28067,15 @@ impl std::fmt::Debug for GetOrganizationsAccessReportInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpenIDConnectProviderInput { +pub struct GetOpenIdConnectProviderInput { ///

    The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM to get /// information for. You can get a list of OIDC provider resource ARNs by using the ListOpenIDConnectProviders operation.

    ///

    For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

    pub open_id_connect_provider_arn: std::option::Option, } -impl std::fmt::Debug for GetOpenIDConnectProviderInput { +impl std::fmt::Debug for GetOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("GetOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -28224,7 +28382,7 @@ impl std::fmt::Debug for GenerateCredentialReportInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableMFADeviceInput { +pub struct EnableMfaDeviceInput { ///

    The name of the IAM user for whom you want to enable the MFA device.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -28258,9 +28416,9 @@ pub struct EnableMFADeviceInput { /// pub authentication_code2: std::option::Option, } -impl std::fmt::Debug for EnableMFADeviceInput { +impl std::fmt::Debug for EnableMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableMFADeviceInput"); + let mut formatter = f.debug_struct("EnableMfaDeviceInput"); formatter.field("user_name", &self.user_name); formatter.field("serial_number", &self.serial_number); formatter.field("authentication_code1", &self.authentication_code1); @@ -28331,7 +28489,7 @@ impl std::fmt::Debug for DetachGroupPolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteVirtualMFADeviceInput { +pub struct DeleteVirtualMfaDeviceInput { ///

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, /// the serial number is the same as the ARN.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting @@ -28339,9 +28497,9 @@ pub struct DeleteVirtualMFADeviceInput { /// following characters: =,.@:/-

    pub serial_number: std::option::Option, } -impl std::fmt::Debug for DeleteVirtualMFADeviceInput { +impl std::fmt::Debug for DeleteVirtualMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteVirtualMFADeviceInput"); + let mut formatter = f.debug_struct("DeleteVirtualMfaDeviceInput"); formatter.field("serial_number", &self.serial_number); formatter.finish() } @@ -28402,7 +28560,7 @@ impl std::fmt::Debug for DeleteUserInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSSHPublicKeyInput { +pub struct DeleteSshPublicKeyInput { ///

    The name of the IAM user associated with the SSH public key.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -28412,9 +28570,9 @@ pub struct DeleteSSHPublicKeyInput { /// consist of any upper or lowercased letter or digit.

    pub ssh_public_key_id: std::option::Option, } -impl std::fmt::Debug for DeleteSSHPublicKeyInput { +impl std::fmt::Debug for DeleteSshPublicKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSSHPublicKeyInput"); + let mut formatter = f.debug_struct("DeleteSshPublicKeyInput"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_id", &self.ssh_public_key_id); formatter.finish() @@ -28501,13 +28659,13 @@ impl std::fmt::Debug for DeleteServerCertificateInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSAMLProviderInput { +pub struct DeleteSamlProviderInput { ///

    The Amazon Resource Name (ARN) of the SAML provider to delete.

    pub saml_provider_arn: std::option::Option, } -impl std::fmt::Debug for DeleteSAMLProviderInput { +impl std::fmt::Debug for DeleteSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSAMLProviderInput"); + let mut formatter = f.debug_struct("DeleteSamlProviderInput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.finish() } @@ -28607,14 +28765,14 @@ impl std::fmt::Debug for DeletePolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteOpenIDConnectProviderInput { +pub struct DeleteOpenIdConnectProviderInput { ///

    The Amazon Resource Name (ARN) of the IAM OpenID Connect provider resource object to /// delete. You can get a list of OpenID Connect provider resource ARNs by using the ListOpenIDConnectProviders operation.

    pub open_id_connect_provider_arn: std::option::Option, } -impl std::fmt::Debug for DeleteOpenIDConnectProviderInput { +impl std::fmt::Debug for DeleteOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("DeleteOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -28744,7 +28902,7 @@ impl std::fmt::Debug for DeleteAccessKeyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeactivateMFADeviceInput { +pub struct DeactivateMfaDeviceInput { ///

    The name of the user whose MFA device you want to deactivate.

    ///

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric /// characters with no spaces. You can also include any of the following characters: _+=,.@-

    @@ -28756,9 +28914,9 @@ pub struct DeactivateMFADeviceInput { /// following characters: =,.@:/-

    pub serial_number: std::option::Option, } -impl std::fmt::Debug for DeactivateMFADeviceInput { +impl std::fmt::Debug for DeactivateMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeactivateMFADeviceInput"); + let mut formatter = f.debug_struct("DeactivateMfaDeviceInput"); formatter.field("user_name", &self.user_name); formatter.field("serial_number", &self.serial_number); formatter.finish() @@ -28767,7 +28925,7 @@ impl std::fmt::Debug for DeactivateMFADeviceInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVirtualMFADeviceInput { +pub struct CreateVirtualMfaDeviceInput { ///

    The path for the virtual MFA device. For more information about paths, see IAM /// identifiers in the IAM User Guide.

    ///

    This parameter is optional. If it is not included, it defaults to a slash (/).

    @@ -28790,9 +28948,9 @@ pub struct CreateVirtualMFADeviceInput { /// pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateVirtualMFADeviceInput { +impl std::fmt::Debug for CreateVirtualMfaDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVirtualMFADeviceInput"); + let mut formatter = f.debug_struct("CreateVirtualMfaDeviceInput"); formatter.field("path", &self.path); formatter.field("virtual_mfa_device_name", &self.virtual_mfa_device_name); formatter.field("tags", &self.tags); @@ -28899,7 +29057,7 @@ impl std::fmt::Debug for CreateServiceLinkedRoleInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSAMLProviderInput { +pub struct CreateSamlProviderInput { ///

    An XML document generated by an identity provider (IdP) that supports SAML 2.0. The /// document includes the issuer's name, expiration information, and keys that can be used /// to validate the SAML authentication response (assertions) that are received from the @@ -28922,9 +29080,9 @@ pub struct CreateSAMLProviderInput { /// pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateSAMLProviderInput { +impl std::fmt::Debug for CreateSamlProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSAMLProviderInput"); + let mut formatter = f.debug_struct("CreateSamlProviderInput"); formatter.field("saml_metadata_document", &self.saml_metadata_document); formatter.field("name", &self.name); formatter.field("tags", &self.tags); @@ -29136,7 +29294,7 @@ impl std::fmt::Debug for CreatePolicyInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpenIDConnectProviderInput { +pub struct CreateOpenIdConnectProviderInput { ///

    The URL of the identity provider. The URL must begin with https:// and /// should correspond to the iss claim in the provider's OpenID Connect ID /// tokens. Per the OIDC standard, path components are allowed but query parameters are not. @@ -29182,9 +29340,9 @@ pub struct CreateOpenIDConnectProviderInput { /// pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateOpenIDConnectProviderInput { +impl std::fmt::Debug for CreateOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("CreateOpenIdConnectProviderInput"); formatter.field("url", &self.url); formatter.field("client_id_list", &self.client_id_list); formatter.field("thumbprint_list", &self.thumbprint_list); @@ -29445,7 +29603,7 @@ impl std::fmt::Debug for AddRoleToInstanceProfileInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddClientIDToOpenIDConnectProviderInput { +pub struct AddClientIdToOpenIdConnectProviderInput { ///

    The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to /// add the client ID to. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders operation.

    pub open_id_connect_provider_arn: std::option::Option, @@ -29453,9 +29611,9 @@ pub struct AddClientIDToOpenIDConnectProviderInput { /// resource.

    pub client_id: std::option::Option, } -impl std::fmt::Debug for AddClientIDToOpenIDConnectProviderInput { +impl std::fmt::Debug for AddClientIdToOpenIdConnectProviderInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddClientIDToOpenIDConnectProviderInput"); + let mut formatter = f.debug_struct("AddClientIdToOpenIdConnectProviderInput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, diff --git a/sdk/iam/src/lib.rs b/sdk/iam/src/lib.rs index 7abae734788d..706e47313473 100644 --- a/sdk/iam/src/lib.rs +++ b/sdk/iam/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Identity and Access Management //!

    AWS Identity and Access Management (IAM) is a web service for securely controlling //! access to AWS services. With IAM, you can centrally manage users, security credentials diff --git a/sdk/iam/src/model.rs b/sdk/iam/src/model.rs index a4ecb355fe27..e6a9d5b61731 100644 --- a/sdk/iam/src/model.rs +++ b/sdk/iam/src/model.rs @@ -4,7 +4,7 @@ /// and UploadSSHPublicKey operations.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SSHPublicKey { +pub struct SshPublicKey { ///

    The name of the IAM user associated with the SSH public key.

    pub user_name: std::option::Option, ///

    The unique identifier for the SSH public key.

    @@ -21,9 +21,9 @@ pub struct SSHPublicKey { /// format, when the SSH public key was uploaded.

    pub upload_date: std::option::Option, } -impl std::fmt::Debug for SSHPublicKey { +impl std::fmt::Debug for SshPublicKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSHPublicKey"); + let mut formatter = f.debug_struct("SshPublicKey"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_id", &self.ssh_public_key_id); formatter.field("fingerprint", &self.fingerprint); @@ -33,9 +33,9 @@ impl std::fmt::Debug for SSHPublicKey { formatter.finish() } } -/// See [`SSHPublicKey`](crate::model::SSHPublicKey) +/// See [`SshPublicKey`](crate::model::SshPublicKey) pub mod ssh_public_key { - /// A builder for [`SSHPublicKey`](crate::model::SSHPublicKey) + /// A builder for [`SshPublicKey`](crate::model::SshPublicKey) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -113,9 +113,9 @@ pub mod ssh_public_key { self.upload_date = input; self } - /// Consumes the builder and constructs a [`SSHPublicKey`](crate::model::SSHPublicKey) - pub fn build(self) -> crate::model::SSHPublicKey { - crate::model::SSHPublicKey { + /// Consumes the builder and constructs a [`SshPublicKey`](crate::model::SshPublicKey) + pub fn build(self) -> crate::model::SshPublicKey { + crate::model::SshPublicKey { user_name: self.user_name, ssh_public_key_id: self.ssh_public_key_id, fingerprint: self.fingerprint, @@ -126,8 +126,8 @@ pub mod ssh_public_key { } } } -impl SSHPublicKey { - /// Creates a new builder-style object to manufacture [`SSHPublicKey`](crate::model::SSHPublicKey) +impl SshPublicKey { + /// Creates a new builder-style object to manufacture [`SshPublicKey`](crate::model::SshPublicKey) pub fn builder() -> crate::model::ssh_public_key::Builder { crate::model::ssh_public_key::Builder::default() } @@ -161,7 +161,7 @@ impl std::convert::From<&str> for StatusType { impl std::str::FromStr for StatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StatusType::from(s)) } } @@ -179,15 +179,6 @@ impl AsRef for StatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about an X.509 signing certificate.

    ///

    This data type is used as a response element in the UploadSigningCertificate and ListSigningCertificates @@ -957,7 +948,7 @@ impl std::convert::From<&str> for PermissionsBoundaryAttachmentType { impl std::str::FromStr for PermissionsBoundaryAttachmentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PermissionsBoundaryAttachmentType::from(s)) } } @@ -974,15 +965,6 @@ impl AsRef for PermissionsBoundaryAttachmentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PermissionsBoundaryAttachmentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the results of a simulation.

    ///

    This data type is used by the return parameter of @@ -1529,7 +1511,7 @@ impl std::convert::From<&str> for PolicyEvaluationDecisionType { impl std::str::FromStr for PolicyEvaluationDecisionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicyEvaluationDecisionType::from(s)) } } @@ -1548,15 +1530,6 @@ impl AsRef for PolicyEvaluationDecisionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicyEvaluationDecisionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains a reference to a Statement element in a policy document that /// determines the result of the simulation.

    @@ -1768,7 +1741,7 @@ impl std::convert::From<&str> for PolicySourceType { impl std::str::FromStr for PolicySourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicySourceType::from(s)) } } @@ -1791,15 +1764,6 @@ impl AsRef for PolicySourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicySourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about the effect that Organizations has on a policy simulation.

    #[non_exhaustive] @@ -1993,7 +1957,7 @@ impl std::convert::From<&str> for ContextKeyTypeEnum { impl std::str::FromStr for ContextKeyTypeEnum { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContextKeyTypeEnum::from(s)) } } @@ -2021,15 +1985,6 @@ impl AsRef for ContextKeyTypeEnum { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContextKeyTypeEnum { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2059,7 +2014,7 @@ impl std::convert::From<&str> for GlobalEndpointTokenVersion { impl std::str::FromStr for GlobalEndpointTokenVersion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalEndpointTokenVersion::from(s)) } } @@ -2077,15 +2032,6 @@ impl AsRef for GlobalEndpointTokenVersion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalEndpointTokenVersion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the details of a service-specific credential.

    #[non_exhaustive] @@ -2249,7 +2195,7 @@ impl ServiceSpecificCredential { ///

    Contains information about a virtual MFA device.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VirtualMFADevice { +pub struct VirtualMfaDevice { ///

    The serial number associated with VirtualMFADevice.

    pub serial_number: std::option::Option, ///

    The base32 seed defined as specified in RFC3548. The Base32StringSeed is base64-encoded.

    @@ -2269,9 +2215,9 @@ pub struct VirtualMFADevice { /// IAM User Guide.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for VirtualMFADevice { +impl std::fmt::Debug for VirtualMfaDevice { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VirtualMFADevice"); + let mut formatter = f.debug_struct("VirtualMfaDevice"); formatter.field("serial_number", &self.serial_number); formatter.field("base32_string_seed", &"*** Sensitive Data Redacted ***"); formatter.field("qr_code_png", &"*** Sensitive Data Redacted ***"); @@ -2281,9 +2227,9 @@ impl std::fmt::Debug for VirtualMFADevice { formatter.finish() } } -/// See [`VirtualMFADevice`](crate::model::VirtualMFADevice) +/// See [`VirtualMfaDevice`](crate::model::VirtualMfaDevice) pub mod virtual_mfa_device { - /// A builder for [`VirtualMFADevice`](crate::model::VirtualMFADevice) + /// A builder for [`VirtualMfaDevice`](crate::model::VirtualMfaDevice) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2367,9 +2313,9 @@ pub mod virtual_mfa_device { self.tags = input; self } - /// Consumes the builder and constructs a [`VirtualMFADevice`](crate::model::VirtualMFADevice) - pub fn build(self) -> crate::model::VirtualMFADevice { - crate::model::VirtualMFADevice { + /// Consumes the builder and constructs a [`VirtualMfaDevice`](crate::model::VirtualMfaDevice) + pub fn build(self) -> crate::model::VirtualMfaDevice { + crate::model::VirtualMfaDevice { serial_number: self.serial_number, base32_string_seed: self.base32_string_seed, qr_code_png: self.qr_code_png, @@ -2380,8 +2326,8 @@ pub mod virtual_mfa_device { } } } -impl VirtualMFADevice { - /// Creates a new builder-style object to manufacture [`VirtualMFADevice`](crate::model::VirtualMFADevice) +impl VirtualMfaDevice { + /// Creates a new builder-style object to manufacture [`VirtualMfaDevice`](crate::model::VirtualMfaDevice) pub fn builder() -> crate::model::virtual_mfa_device::Builder { crate::model::virtual_mfa_device::Builder::default() } @@ -2652,7 +2598,7 @@ impl std::convert::From<&str> for AssignmentStatusType { impl std::str::FromStr for AssignmentStatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssignmentStatusType::from(s)) } } @@ -2671,15 +2617,6 @@ impl AsRef for AssignmentStatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssignmentStatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about an SSH public key, without the key's body or /// fingerprint.

    @@ -2687,7 +2624,7 @@ impl<'de> serde::Deserialize<'de> for AssignmentStatusType { /// operation.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SSHPublicKeyMetadata { +pub struct SshPublicKeyMetadata { ///

    The name of the IAM user associated with the SSH public key.

    pub user_name: std::option::Option, ///

    The unique identifier for the SSH public key.

    @@ -2700,9 +2637,9 @@ pub struct SSHPublicKeyMetadata { /// format, when the SSH public key was uploaded.

    pub upload_date: std::option::Option, } -impl std::fmt::Debug for SSHPublicKeyMetadata { +impl std::fmt::Debug for SshPublicKeyMetadata { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSHPublicKeyMetadata"); + let mut formatter = f.debug_struct("SshPublicKeyMetadata"); formatter.field("user_name", &self.user_name); formatter.field("ssh_public_key_id", &self.ssh_public_key_id); formatter.field("status", &self.status); @@ -2710,9 +2647,9 @@ impl std::fmt::Debug for SSHPublicKeyMetadata { formatter.finish() } } -/// See [`SSHPublicKeyMetadata`](crate::model::SSHPublicKeyMetadata) +/// See [`SshPublicKeyMetadata`](crate::model::SshPublicKeyMetadata) pub mod ssh_public_key_metadata { - /// A builder for [`SSHPublicKeyMetadata`](crate::model::SSHPublicKeyMetadata) + /// A builder for [`SshPublicKeyMetadata`](crate::model::SshPublicKeyMetadata) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2767,9 +2704,9 @@ pub mod ssh_public_key_metadata { self.upload_date = input; self } - /// Consumes the builder and constructs a [`SSHPublicKeyMetadata`](crate::model::SSHPublicKeyMetadata) - pub fn build(self) -> crate::model::SSHPublicKeyMetadata { - crate::model::SSHPublicKeyMetadata { + /// Consumes the builder and constructs a [`SshPublicKeyMetadata`](crate::model::SshPublicKeyMetadata) + pub fn build(self) -> crate::model::SshPublicKeyMetadata { + crate::model::SshPublicKeyMetadata { user_name: self.user_name, ssh_public_key_id: self.ssh_public_key_id, status: self.status, @@ -2778,8 +2715,8 @@ pub mod ssh_public_key_metadata { } } } -impl SSHPublicKeyMetadata { - /// Creates a new builder-style object to manufacture [`SSHPublicKeyMetadata`](crate::model::SSHPublicKeyMetadata) +impl SshPublicKeyMetadata { + /// Creates a new builder-style object to manufacture [`SshPublicKeyMetadata`](crate::model::SshPublicKeyMetadata) pub fn builder() -> crate::model::ssh_public_key_metadata::Builder { crate::model::ssh_public_key_metadata::Builder::default() } @@ -2924,7 +2861,7 @@ impl ServiceSpecificCredentialMetadata { ///

    Contains the list of SAML providers for this account.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SAMLProviderListEntry { +pub struct SamlProviderListEntry { ///

    The Amazon Resource Name (ARN) of the SAML provider.

    pub arn: std::option::Option, ///

    The expiration date and time for the SAML provider.

    @@ -2932,18 +2869,18 @@ pub struct SAMLProviderListEntry { ///

    The date and time when the SAML provider was created.

    pub create_date: std::option::Option, } -impl std::fmt::Debug for SAMLProviderListEntry { +impl std::fmt::Debug for SamlProviderListEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SAMLProviderListEntry"); + let mut formatter = f.debug_struct("SamlProviderListEntry"); formatter.field("arn", &self.arn); formatter.field("valid_until", &self.valid_until); formatter.field("create_date", &self.create_date); formatter.finish() } } -/// See [`SAMLProviderListEntry`](crate::model::SAMLProviderListEntry) +/// See [`SamlProviderListEntry`](crate::model::SamlProviderListEntry) pub mod saml_provider_list_entry { - /// A builder for [`SAMLProviderListEntry`](crate::model::SAMLProviderListEntry) + /// A builder for [`SamlProviderListEntry`](crate::model::SamlProviderListEntry) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2985,9 +2922,9 @@ pub mod saml_provider_list_entry { self.create_date = input; self } - /// Consumes the builder and constructs a [`SAMLProviderListEntry`](crate::model::SAMLProviderListEntry) - pub fn build(self) -> crate::model::SAMLProviderListEntry { - crate::model::SAMLProviderListEntry { + /// Consumes the builder and constructs a [`SamlProviderListEntry`](crate::model::SamlProviderListEntry) + pub fn build(self) -> crate::model::SamlProviderListEntry { + crate::model::SamlProviderListEntry { arn: self.arn, valid_until: self.valid_until, create_date: self.create_date, @@ -2995,8 +2932,8 @@ pub mod saml_provider_list_entry { } } } -impl SAMLProviderListEntry { - /// Creates a new builder-style object to manufacture [`SAMLProviderListEntry`](crate::model::SAMLProviderListEntry) +impl SamlProviderListEntry { + /// Creates a new builder-style object to manufacture [`SamlProviderListEntry`](crate::model::SamlProviderListEntry) pub fn builder() -> crate::model::saml_provider_list_entry::Builder { crate::model::saml_provider_list_entry::Builder::default() } @@ -3365,7 +3302,7 @@ impl std::convert::From<&str> for PolicyOwnerEntityType { impl std::str::FromStr for PolicyOwnerEntityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicyOwnerEntityType::from(s)) } } @@ -3384,15 +3321,6 @@ impl AsRef for PolicyOwnerEntityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicyOwnerEntityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3422,7 +3350,7 @@ impl std::convert::From<&str> for PolicyType { impl std::str::FromStr for PolicyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicyType::from(s)) } } @@ -3440,15 +3368,6 @@ impl AsRef for PolicyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about a managed policy.

    ///

    This data type is used as a response element in the CreatePolicy, @@ -3739,7 +3658,7 @@ impl std::convert::From<&str> for PolicyUsageType { impl std::str::FromStr for PolicyUsageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicyUsageType::from(s)) } } @@ -3757,15 +3676,6 @@ impl AsRef for PolicyUsageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicyUsageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3797,7 +3707,7 @@ impl std::convert::From<&str> for PolicyScopeType { impl std::str::FromStr for PolicyScopeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PolicyScopeType::from(s)) } } @@ -3816,35 +3726,26 @@ impl AsRef for PolicyScopeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PolicyScopeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OpenIDConnectProviderListEntry { +pub struct OpenIdConnectProviderListEntry { ///

    The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.

    ///

    For more information about ARNs, go to Amazon Resource Names (ARNs) in /// the AWS General Reference.

    pub arn: std::option::Option, } -impl std::fmt::Debug for OpenIDConnectProviderListEntry { +impl std::fmt::Debug for OpenIdConnectProviderListEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpenIDConnectProviderListEntry"); + let mut formatter = f.debug_struct("OpenIdConnectProviderListEntry"); formatter.field("arn", &self.arn); formatter.finish() } } -/// See [`OpenIDConnectProviderListEntry`](crate::model::OpenIDConnectProviderListEntry) +/// See [`OpenIdConnectProviderListEntry`](crate::model::OpenIdConnectProviderListEntry) pub mod open_id_connect_provider_list_entry { - /// A builder for [`OpenIDConnectProviderListEntry`](crate::model::OpenIDConnectProviderListEntry) + /// A builder for [`OpenIdConnectProviderListEntry`](crate::model::OpenIdConnectProviderListEntry) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3862,14 +3763,14 @@ pub mod open_id_connect_provider_list_entry { self.arn = input; self } - /// Consumes the builder and constructs a [`OpenIDConnectProviderListEntry`](crate::model::OpenIDConnectProviderListEntry) - pub fn build(self) -> crate::model::OpenIDConnectProviderListEntry { - crate::model::OpenIDConnectProviderListEntry { arn: self.arn } + /// Consumes the builder and constructs a [`OpenIdConnectProviderListEntry`](crate::model::OpenIdConnectProviderListEntry) + pub fn build(self) -> crate::model::OpenIdConnectProviderListEntry { + crate::model::OpenIdConnectProviderListEntry { arn: self.arn } } } } -impl OpenIDConnectProviderListEntry { - /// Creates a new builder-style object to manufacture [`OpenIDConnectProviderListEntry`](crate::model::OpenIDConnectProviderListEntry) +impl OpenIdConnectProviderListEntry { + /// Creates a new builder-style object to manufacture [`OpenIdConnectProviderListEntry`](crate::model::OpenIdConnectProviderListEntry) pub fn builder() -> crate::model::open_id_connect_provider_list_entry::Builder { crate::model::open_id_connect_provider_list_entry::Builder::default() } @@ -3880,7 +3781,7 @@ impl OpenIDConnectProviderListEntry { /// operation.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct MFADevice { +pub struct MfaDevice { ///

    The user with whom the MFA device is associated.

    pub user_name: std::option::Option, ///

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, the @@ -3889,18 +3790,18 @@ pub struct MFADevice { ///

    The date when the MFA device was enabled for the user.

    pub enable_date: std::option::Option, } -impl std::fmt::Debug for MFADevice { +impl std::fmt::Debug for MfaDevice { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MFADevice"); + let mut formatter = f.debug_struct("MfaDevice"); formatter.field("user_name", &self.user_name); formatter.field("serial_number", &self.serial_number); formatter.field("enable_date", &self.enable_date); formatter.finish() } } -/// See [`MFADevice`](crate::model::MFADevice) +/// See [`MfaDevice`](crate::model::MfaDevice) pub mod mfa_device { - /// A builder for [`MFADevice`](crate::model::MFADevice) + /// A builder for [`MfaDevice`](crate::model::MfaDevice) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3943,9 +3844,9 @@ pub mod mfa_device { self.enable_date = input; self } - /// Consumes the builder and constructs a [`MFADevice`](crate::model::MFADevice) - pub fn build(self) -> crate::model::MFADevice { - crate::model::MFADevice { + /// Consumes the builder and constructs a [`MfaDevice`](crate::model::MfaDevice) + pub fn build(self) -> crate::model::MfaDevice { + crate::model::MfaDevice { user_name: self.user_name, serial_number: self.serial_number, enable_date: self.enable_date, @@ -3953,8 +3854,8 @@ pub mod mfa_device { } } } -impl MFADevice { - /// Creates a new builder-style object to manufacture [`MFADevice`](crate::model::MFADevice) +impl MfaDevice { + /// Creates a new builder-style object to manufacture [`MfaDevice`](crate::model::MfaDevice) pub fn builder() -> crate::model::mfa_device::Builder { crate::model::mfa_device::Builder::default() } @@ -4514,7 +4415,7 @@ impl std::convert::From<&str> for EntityType { impl std::str::FromStr for EntityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EntityType::from(s)) } } @@ -4535,15 +4436,6 @@ impl AsRef for EntityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EntityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about an attached policy.

    ///

    An attached policy is a managed policy that has been attached to a user, group, or role. @@ -4741,7 +4633,7 @@ impl std::convert::From<&str> for EncodingType { impl std::str::FromStr for EncodingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EncodingType::from(s)) } } @@ -4759,15 +4651,6 @@ impl AsRef for EncodingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EncodingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The reason that the service-linked role deletion failed.

    ///

    This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus operation.

    @@ -4939,7 +4822,7 @@ impl std::convert::From<&str> for DeletionTaskStatusType { impl std::str::FromStr for DeletionTaskStatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeletionTaskStatusType::from(s)) } } @@ -4959,15 +4842,6 @@ impl AsRef for DeletionTaskStatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeletionTaskStatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about the reason that the operation failed.

    ///

    This data type is used as a response element in the GetOrganizationsAccessReport, GetServiceLastAccessedDetails, and GetServiceLastAccessedDetailsWithEntities operations.

    @@ -5253,7 +5127,7 @@ impl std::convert::From<&str> for JobStatusType { impl std::str::FromStr for JobStatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JobStatusType::from(s)) } } @@ -5272,15 +5146,6 @@ impl AsRef for JobStatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JobStatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains details about the most recent attempt to access the service.

    ///

    This data type is used as a response element in the GetServiceLastAccessedDetails operation.

    @@ -5629,7 +5494,7 @@ impl std::convert::From<&str> for AccessAdvisorUsageGranularityType { impl std::str::FromStr for AccessAdvisorUsageGranularityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AccessAdvisorUsageGranularityType::from(s)) } } @@ -5647,15 +5512,6 @@ impl AsRef for AccessAdvisorUsageGranularityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AccessAdvisorUsageGranularityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about a server certificate.

    ///

    This data type is used as a response element in the GetServerCertificate operation.

    @@ -5965,7 +5821,7 @@ impl std::convert::From<&str> for SortKeyType { impl std::str::FromStr for SortKeyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortKeyType::from(s)) } } @@ -5985,15 +5841,6 @@ impl AsRef for SortKeyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortKeyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains the user name and password create date for a user.

    ///

    This data type is used as a response element in the CreateLoginProfile and GetLoginProfile operations.

    @@ -6102,7 +5949,7 @@ impl std::convert::From<&str> for ReportFormatType { impl std::str::FromStr for ReportFormatType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReportFormatType::from(s)) } } @@ -6119,15 +5966,6 @@ impl AsRef for ReportFormatType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReportFormatType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6207,7 +6045,7 @@ impl std::convert::From<&str> for SummaryKeyType { impl std::str::FromStr for SummaryKeyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SummaryKeyType::from(s)) } } @@ -6251,15 +6089,6 @@ impl AsRef for SummaryKeyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SummaryKeyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about the account password policy.

    ///

    This data type is used as a response element in the GetAccountPasswordPolicy operation.

    @@ -7648,7 +7477,7 @@ impl std::convert::From<&str> for ReportStateType { impl std::str::FromStr for ReportStateType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReportStateType::from(s)) } } @@ -7667,15 +7496,6 @@ impl AsRef for ReportStateType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReportStateType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about an AWS access key.

    ///

    This data type is used as a response element in the CreateAccessKey diff --git a/sdk/iam/src/operation.rs b/sdk/iam/src/operation.rs index f2031763c3cd..c27f93f9226e 100644 --- a/sdk/iam/src/operation.rs +++ b/sdk/iam/src/operation.rs @@ -8,7 +8,7 @@ pub struct AddClientIDToOpenIDConnectProvider { _private: (), } impl AddClientIDToOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`AddClientIDToOpenIDConnectProviderInput`](crate::input::AddClientIDToOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`AddClientIdToOpenIdConnectProviderInput`](crate::input::AddClientIdToOpenIdConnectProviderInput) pub fn builder() -> crate::input::add_client_id_to_open_id_connect_provider_input::Builder { crate::input::add_client_id_to_open_id_connect_provider_input::Builder::default() } @@ -18,7 +18,7 @@ impl AddClientIDToOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for AddClientIDToOpenIDConnectProvider { type Output = std::result::Result< - crate::output::AddClientIDToOpenIDConnectProviderOutput, + crate::output::AddClientIdToOpenIdConnectProviderOutput, crate::error::AddClientIDToOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -446,7 +446,7 @@ pub struct CreateOpenIDConnectProvider { _private: (), } impl CreateOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`CreateOpenIDConnectProviderInput`](crate::input::CreateOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`CreateOpenIdConnectProviderInput`](crate::input::CreateOpenIdConnectProviderInput) pub fn builder() -> crate::input::create_open_id_connect_provider_input::Builder { crate::input::create_open_id_connect_provider_input::Builder::default() } @@ -456,7 +456,7 @@ impl CreateOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for CreateOpenIDConnectProvider { type Output = std::result::Result< - crate::output::CreateOpenIDConnectProviderOutput, + crate::output::CreateOpenIdConnectProviderOutput, crate::error::CreateOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -592,7 +592,7 @@ pub struct CreateSAMLProvider { _private: (), } impl CreateSAMLProvider { - /// Creates a new builder-style object to manufacture [`CreateSAMLProviderInput`](crate::input::CreateSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`CreateSamlProviderInput`](crate::input::CreateSamlProviderInput) pub fn builder() -> crate::input::create_saml_provider_input::Builder { crate::input::create_saml_provider_input::Builder::default() } @@ -602,7 +602,7 @@ impl CreateSAMLProvider { } impl smithy_http::response::ParseStrictResponse for CreateSAMLProvider { type Output = std::result::Result< - crate::output::CreateSAMLProviderOutput, + crate::output::CreateSamlProviderOutput, crate::error::CreateSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -734,7 +734,7 @@ pub struct CreateVirtualMFADevice { _private: (), } impl CreateVirtualMFADevice { - /// Creates a new builder-style object to manufacture [`CreateVirtualMFADeviceInput`](crate::input::CreateVirtualMFADeviceInput) + /// Creates a new builder-style object to manufacture [`CreateVirtualMfaDeviceInput`](crate::input::CreateVirtualMfaDeviceInput) pub fn builder() -> crate::input::create_virtual_mfa_device_input::Builder { crate::input::create_virtual_mfa_device_input::Builder::default() } @@ -744,7 +744,7 @@ impl CreateVirtualMFADevice { } impl smithy_http::response::ParseStrictResponse for CreateVirtualMFADevice { type Output = std::result::Result< - crate::output::CreateVirtualMFADeviceOutput, + crate::output::CreateVirtualMfaDeviceOutput, crate::error::CreateVirtualMFADeviceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -766,7 +766,7 @@ pub struct DeactivateMFADevice { _private: (), } impl DeactivateMFADevice { - /// Creates a new builder-style object to manufacture [`DeactivateMFADeviceInput`](crate::input::DeactivateMFADeviceInput) + /// Creates a new builder-style object to manufacture [`DeactivateMfaDeviceInput`](crate::input::DeactivateMfaDeviceInput) pub fn builder() -> crate::input::deactivate_mfa_device_input::Builder { crate::input::deactivate_mfa_device_input::Builder::default() } @@ -776,7 +776,7 @@ impl DeactivateMFADevice { } impl smithy_http::response::ParseStrictResponse for DeactivateMFADevice { type Output = std::result::Result< - crate::output::DeactivateMFADeviceOutput, + crate::output::DeactivateMfaDeviceOutput, crate::error::DeactivateMFADeviceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1026,7 +1026,7 @@ pub struct DeleteOpenIDConnectProvider { _private: (), } impl DeleteOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`DeleteOpenIDConnectProviderInput`](crate::input::DeleteOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`DeleteOpenIdConnectProviderInput`](crate::input::DeleteOpenIdConnectProviderInput) pub fn builder() -> crate::input::delete_open_id_connect_provider_input::Builder { crate::input::delete_open_id_connect_provider_input::Builder::default() } @@ -1036,7 +1036,7 @@ impl DeleteOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for DeleteOpenIDConnectProvider { type Output = std::result::Result< - crate::output::DeleteOpenIDConnectProviderOutput, + crate::output::DeleteOpenIdConnectProviderOutput, crate::error::DeleteOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1241,7 +1241,7 @@ pub struct DeleteSAMLProvider { _private: (), } impl DeleteSAMLProvider { - /// Creates a new builder-style object to manufacture [`DeleteSAMLProviderInput`](crate::input::DeleteSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`DeleteSamlProviderInput`](crate::input::DeleteSamlProviderInput) pub fn builder() -> crate::input::delete_saml_provider_input::Builder { crate::input::delete_saml_provider_input::Builder::default() } @@ -1251,7 +1251,7 @@ impl DeleteSAMLProvider { } impl smithy_http::response::ParseStrictResponse for DeleteSAMLProvider { type Output = std::result::Result< - crate::output::DeleteSAMLProviderOutput, + crate::output::DeleteSamlProviderOutput, crate::error::DeleteSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1419,7 +1419,7 @@ pub struct DeleteSSHPublicKey { _private: (), } impl DeleteSSHPublicKey { - /// Creates a new builder-style object to manufacture [`DeleteSSHPublicKeyInput`](crate::input::DeleteSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`DeleteSshPublicKeyInput`](crate::input::DeleteSshPublicKeyInput) pub fn builder() -> crate::input::delete_ssh_public_key_input::Builder { crate::input::delete_ssh_public_key_input::Builder::default() } @@ -1429,7 +1429,7 @@ impl DeleteSSHPublicKey { } impl smithy_http::response::ParseStrictResponse for DeleteSSHPublicKey { type Output = std::result::Result< - crate::output::DeleteSSHPublicKeyOutput, + crate::output::DeleteSshPublicKeyOutput, crate::error::DeleteSSHPublicKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1575,7 +1575,7 @@ pub struct DeleteVirtualMFADevice { _private: (), } impl DeleteVirtualMFADevice { - /// Creates a new builder-style object to manufacture [`DeleteVirtualMFADeviceInput`](crate::input::DeleteVirtualMFADeviceInput) + /// Creates a new builder-style object to manufacture [`DeleteVirtualMfaDeviceInput`](crate::input::DeleteVirtualMfaDeviceInput) pub fn builder() -> crate::input::delete_virtual_mfa_device_input::Builder { crate::input::delete_virtual_mfa_device_input::Builder::default() } @@ -1585,7 +1585,7 @@ impl DeleteVirtualMFADevice { } impl smithy_http::response::ParseStrictResponse for DeleteVirtualMFADevice { type Output = std::result::Result< - crate::output::DeleteVirtualMFADeviceOutput, + crate::output::DeleteVirtualMfaDeviceOutput, crate::error::DeleteVirtualMFADeviceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1701,7 +1701,7 @@ pub struct EnableMFADevice { _private: (), } impl EnableMFADevice { - /// Creates a new builder-style object to manufacture [`EnableMFADeviceInput`](crate::input::EnableMFADeviceInput) + /// Creates a new builder-style object to manufacture [`EnableMfaDeviceInput`](crate::input::EnableMfaDeviceInput) pub fn builder() -> crate::input::enable_mfa_device_input::Builder { crate::input::enable_mfa_device_input::Builder::default() } @@ -1711,7 +1711,7 @@ impl EnableMFADevice { } impl smithy_http::response::ParseStrictResponse for EnableMFADevice { type Output = std::result::Result< - crate::output::EnableMFADeviceOutput, + crate::output::EnableMfaDeviceOutput, crate::error::EnableMFADeviceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2368,7 +2368,7 @@ pub struct GetOpenIDConnectProvider { _private: (), } impl GetOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`GetOpenIDConnectProviderInput`](crate::input::GetOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`GetOpenIdConnectProviderInput`](crate::input::GetOpenIdConnectProviderInput) pub fn builder() -> crate::input::get_open_id_connect_provider_input::Builder { crate::input::get_open_id_connect_provider_input::Builder::default() } @@ -2378,7 +2378,7 @@ impl GetOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for GetOpenIDConnectProvider { type Output = std::result::Result< - crate::output::GetOpenIDConnectProviderOutput, + crate::output::GetOpenIdConnectProviderOutput, crate::error::GetOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2598,7 +2598,7 @@ pub struct GetSAMLProvider { _private: (), } impl GetSAMLProvider { - /// Creates a new builder-style object to manufacture [`GetSAMLProviderInput`](crate::input::GetSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`GetSamlProviderInput`](crate::input::GetSamlProviderInput) pub fn builder() -> crate::input::get_saml_provider_input::Builder { crate::input::get_saml_provider_input::Builder::default() } @@ -2608,7 +2608,7 @@ impl GetSAMLProvider { } impl smithy_http::response::ParseStrictResponse for GetSAMLProvider { type Output = std::result::Result< - crate::output::GetSAMLProviderOutput, + crate::output::GetSamlProviderOutput, crate::error::GetSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2831,7 +2831,7 @@ pub struct GetSSHPublicKey { _private: (), } impl GetSSHPublicKey { - /// Creates a new builder-style object to manufacture [`GetSSHPublicKeyInput`](crate::input::GetSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`GetSshPublicKeyInput`](crate::input::GetSshPublicKeyInput) pub fn builder() -> crate::input::get_ssh_public_key_input::Builder { crate::input::get_ssh_public_key_input::Builder::default() } @@ -2841,7 +2841,7 @@ impl GetSSHPublicKey { } impl smithy_http::response::ParseStrictResponse for GetSSHPublicKey { type Output = std::result::Result< - crate::output::GetSSHPublicKeyOutput, + crate::output::GetSshPublicKeyOutput, crate::error::GetSSHPublicKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3340,7 +3340,7 @@ pub struct ListMFADevices { _private: (), } impl ListMFADevices { - /// Creates a new builder-style object to manufacture [`ListMFADevicesInput`](crate::input::ListMFADevicesInput) + /// Creates a new builder-style object to manufacture [`ListMfaDevicesInput`](crate::input::ListMfaDevicesInput) pub fn builder() -> crate::input::list_mfa_devices_input::Builder { crate::input::list_mfa_devices_input::Builder::default() } @@ -3350,7 +3350,7 @@ impl ListMFADevices { } impl smithy_http::response::ParseStrictResponse for ListMFADevices { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_list_mfa_devices_error(response) @@ -3368,7 +3368,7 @@ pub struct ListMFADeviceTags { _private: (), } impl ListMFADeviceTags { - /// Creates a new builder-style object to manufacture [`ListMFADeviceTagsInput`](crate::input::ListMFADeviceTagsInput) + /// Creates a new builder-style object to manufacture [`ListMfaDeviceTagsInput`](crate::input::ListMfaDeviceTagsInput) pub fn builder() -> crate::input::list_mfa_device_tags_input::Builder { crate::input::list_mfa_device_tags_input::Builder::default() } @@ -3378,7 +3378,7 @@ impl ListMFADeviceTags { } impl smithy_http::response::ParseStrictResponse for ListMFADeviceTags { type Output = std::result::Result< - crate::output::ListMFADeviceTagsOutput, + crate::output::ListMfaDeviceTagsOutput, crate::error::ListMFADeviceTagsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3401,7 +3401,7 @@ pub struct ListOpenIDConnectProviders { _private: (), } impl ListOpenIDConnectProviders { - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProvidersInput`](crate::input::ListOpenIDConnectProvidersInput) + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProvidersInput`](crate::input::ListOpenIdConnectProvidersInput) pub fn builder() -> crate::input::list_open_id_connect_providers_input::Builder { crate::input::list_open_id_connect_providers_input::Builder::default() } @@ -3411,7 +3411,7 @@ impl ListOpenIDConnectProviders { } impl smithy_http::response::ParseStrictResponse for ListOpenIDConnectProviders { type Output = std::result::Result< - crate::output::ListOpenIDConnectProvidersOutput, + crate::output::ListOpenIdConnectProvidersOutput, crate::error::ListOpenIDConnectProvidersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3433,7 +3433,7 @@ pub struct ListOpenIDConnectProviderTags { _private: (), } impl ListOpenIDConnectProviderTags { - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProviderTagsInput`](crate::input::ListOpenIDConnectProviderTagsInput) + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProviderTagsInput`](crate::input::ListOpenIdConnectProviderTagsInput) pub fn builder() -> crate::input::list_open_id_connect_provider_tags_input::Builder { crate::input::list_open_id_connect_provider_tags_input::Builder::default() } @@ -3443,7 +3443,7 @@ impl ListOpenIDConnectProviderTags { } impl smithy_http::response::ParseStrictResponse for ListOpenIDConnectProviderTags { type Output = std::result::Result< - crate::output::ListOpenIDConnectProviderTagsOutput, + crate::output::ListOpenIdConnectProviderTagsOutput, crate::error::ListOpenIDConnectProviderTagsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3730,7 +3730,7 @@ pub struct ListSAMLProviders { _private: (), } impl ListSAMLProviders { - /// Creates a new builder-style object to manufacture [`ListSAMLProvidersInput`](crate::input::ListSAMLProvidersInput) + /// Creates a new builder-style object to manufacture [`ListSamlProvidersInput`](crate::input::ListSamlProvidersInput) pub fn builder() -> crate::input::list_saml_providers_input::Builder { crate::input::list_saml_providers_input::Builder::default() } @@ -3740,7 +3740,7 @@ impl ListSAMLProviders { } impl smithy_http::response::ParseStrictResponse for ListSAMLProviders { type Output = std::result::Result< - crate::output::ListSAMLProvidersOutput, + crate::output::ListSamlProvidersOutput, crate::error::ListSAMLProvidersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3762,7 +3762,7 @@ pub struct ListSAMLProviderTags { _private: (), } impl ListSAMLProviderTags { - /// Creates a new builder-style object to manufacture [`ListSAMLProviderTagsInput`](crate::input::ListSAMLProviderTagsInput) + /// Creates a new builder-style object to manufacture [`ListSamlProviderTagsInput`](crate::input::ListSamlProviderTagsInput) pub fn builder() -> crate::input::list_saml_provider_tags_input::Builder { crate::input::list_saml_provider_tags_input::Builder::default() } @@ -3772,7 +3772,7 @@ impl ListSAMLProviderTags { } impl smithy_http::response::ParseStrictResponse for ListSAMLProviderTags { type Output = std::result::Result< - crate::output::ListSAMLProviderTagsOutput, + crate::output::ListSamlProviderTagsOutput, crate::error::ListSAMLProviderTagsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3943,7 +3943,7 @@ pub struct ListSSHPublicKeys { _private: (), } impl ListSSHPublicKeys { - /// Creates a new builder-style object to manufacture [`ListSSHPublicKeysInput`](crate::input::ListSSHPublicKeysInput) + /// Creates a new builder-style object to manufacture [`ListSshPublicKeysInput`](crate::input::ListSshPublicKeysInput) pub fn builder() -> crate::input::list_ssh_public_keys_input::Builder { crate::input::list_ssh_public_keys_input::Builder::default() } @@ -3953,7 +3953,7 @@ impl ListSSHPublicKeys { } impl smithy_http::response::ParseStrictResponse for ListSSHPublicKeys { type Output = std::result::Result< - crate::output::ListSSHPublicKeysOutput, + crate::output::ListSshPublicKeysOutput, crate::error::ListSSHPublicKeysError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4076,7 +4076,7 @@ pub struct ListVirtualMFADevices { _private: (), } impl ListVirtualMFADevices { - /// Creates a new builder-style object to manufacture [`ListVirtualMFADevicesInput`](crate::input::ListVirtualMFADevicesInput) + /// Creates a new builder-style object to manufacture [`ListVirtualMfaDevicesInput`](crate::input::ListVirtualMfaDevicesInput) pub fn builder() -> crate::input::list_virtual_mfa_devices_input::Builder { crate::input::list_virtual_mfa_devices_input::Builder::default() } @@ -4086,7 +4086,7 @@ impl ListVirtualMFADevices { } impl smithy_http::response::ParseStrictResponse for ListVirtualMFADevices { type Output = std::result::Result< - crate::output::ListVirtualMFADevicesOutput, + crate::output::ListVirtualMfaDevicesOutput, crate::error::ListVirtualMFADevicesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4310,7 +4310,7 @@ pub struct RemoveClientIDFromOpenIDConnectProvider { _private: (), } impl RemoveClientIDFromOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`RemoveClientIDFromOpenIDConnectProviderInput`](crate::input::RemoveClientIDFromOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`RemoveClientIdFromOpenIdConnectProviderInput`](crate::input::RemoveClientIdFromOpenIdConnectProviderInput) pub fn builder() -> crate::input::remove_client_id_from_open_id_connect_provider_input::Builder { crate::input::remove_client_id_from_open_id_connect_provider_input::Builder::default() @@ -4321,7 +4321,7 @@ impl RemoveClientIDFromOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for RemoveClientIDFromOpenIDConnectProvider { type Output = std::result::Result< - crate::output::RemoveClientIDFromOpenIDConnectProviderOutput, + crate::output::RemoveClientIdFromOpenIdConnectProviderOutput, crate::error::RemoveClientIDFromOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4442,7 +4442,7 @@ pub struct ResyncMFADevice { _private: (), } impl ResyncMFADevice { - /// Creates a new builder-style object to manufacture [`ResyncMFADeviceInput`](crate::input::ResyncMFADeviceInput) + /// Creates a new builder-style object to manufacture [`ResyncMfaDeviceInput`](crate::input::ResyncMfaDeviceInput) pub fn builder() -> crate::input::resync_mfa_device_input::Builder { crate::input::resync_mfa_device_input::Builder::default() } @@ -4452,7 +4452,7 @@ impl ResyncMFADevice { } impl smithy_http::response::ParseStrictResponse for ResyncMFADevice { type Output = std::result::Result< - crate::output::ResyncMFADeviceOutput, + crate::output::ResyncMfaDeviceOutput, crate::error::ResyncMFADeviceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4746,7 +4746,7 @@ pub struct TagMFADevice { _private: (), } impl TagMFADevice { - /// Creates a new builder-style object to manufacture [`TagMFADeviceInput`](crate::input::TagMFADeviceInput) + /// Creates a new builder-style object to manufacture [`TagMfaDeviceInput`](crate::input::TagMfaDeviceInput) pub fn builder() -> crate::input::tag_mfa_device_input::Builder { crate::input::tag_mfa_device_input::Builder::default() } @@ -4756,7 +4756,7 @@ impl TagMFADevice { } impl smithy_http::response::ParseStrictResponse for TagMFADevice { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_tag_mfa_device_error(response) @@ -4809,7 +4809,7 @@ pub struct TagOpenIDConnectProvider { _private: (), } impl TagOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`TagOpenIDConnectProviderInput`](crate::input::TagOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`TagOpenIdConnectProviderInput`](crate::input::TagOpenIdConnectProviderInput) pub fn builder() -> crate::input::tag_open_id_connect_provider_input::Builder { crate::input::tag_open_id_connect_provider_input::Builder::default() } @@ -4819,7 +4819,7 @@ impl TagOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for TagOpenIDConnectProvider { type Output = std::result::Result< - crate::output::TagOpenIDConnectProviderOutput, + crate::output::TagOpenIdConnectProviderOutput, crate::error::TagOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5003,7 +5003,7 @@ pub struct TagSAMLProvider { _private: (), } impl TagSAMLProvider { - /// Creates a new builder-style object to manufacture [`TagSAMLProviderInput`](crate::input::TagSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`TagSamlProviderInput`](crate::input::TagSamlProviderInput) pub fn builder() -> crate::input::tag_saml_provider_input::Builder { crate::input::tag_saml_provider_input::Builder::default() } @@ -5013,7 +5013,7 @@ impl TagSAMLProvider { } impl smithy_http::response::ParseStrictResponse for TagSAMLProvider { type Output = std::result::Result< - crate::output::TagSAMLProviderOutput, + crate::output::TagSamlProviderOutput, crate::error::TagSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5205,7 +5205,7 @@ pub struct UntagMFADevice { _private: (), } impl UntagMFADevice { - /// Creates a new builder-style object to manufacture [`UntagMFADeviceInput`](crate::input::UntagMFADeviceInput) + /// Creates a new builder-style object to manufacture [`UntagMfaDeviceInput`](crate::input::UntagMfaDeviceInput) pub fn builder() -> crate::input::untag_mfa_device_input::Builder { crate::input::untag_mfa_device_input::Builder::default() } @@ -5215,7 +5215,7 @@ impl UntagMFADevice { } impl smithy_http::response::ParseStrictResponse for UntagMFADevice { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_untag_mfa_device_error(response) @@ -5234,7 +5234,7 @@ pub struct UntagOpenIDConnectProvider { _private: (), } impl UntagOpenIDConnectProvider { - /// Creates a new builder-style object to manufacture [`UntagOpenIDConnectProviderInput`](crate::input::UntagOpenIDConnectProviderInput) + /// Creates a new builder-style object to manufacture [`UntagOpenIdConnectProviderInput`](crate::input::UntagOpenIdConnectProviderInput) pub fn builder() -> crate::input::untag_open_id_connect_provider_input::Builder { crate::input::untag_open_id_connect_provider_input::Builder::default() } @@ -5244,7 +5244,7 @@ impl UntagOpenIDConnectProvider { } impl smithy_http::response::ParseStrictResponse for UntagOpenIDConnectProvider { type Output = std::result::Result< - crate::output::UntagOpenIDConnectProviderOutput, + crate::output::UntagOpenIdConnectProviderOutput, crate::error::UntagOpenIDConnectProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5318,7 +5318,7 @@ pub struct UntagSAMLProvider { _private: (), } impl UntagSAMLProvider { - /// Creates a new builder-style object to manufacture [`UntagSAMLProviderInput`](crate::input::UntagSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`UntagSamlProviderInput`](crate::input::UntagSamlProviderInput) pub fn builder() -> crate::input::untag_saml_provider_input::Builder { crate::input::untag_saml_provider_input::Builder::default() } @@ -5328,7 +5328,7 @@ impl UntagSAMLProvider { } impl smithy_http::response::ParseStrictResponse for UntagSAMLProvider { type Output = std::result::Result< - crate::output::UntagSAMLProviderOutput, + crate::output::UntagSamlProviderOutput, crate::error::UntagSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5608,7 +5608,7 @@ pub struct UpdateOpenIDConnectProviderThumbprint { _private: (), } impl UpdateOpenIDConnectProviderThumbprint { - /// Creates a new builder-style object to manufacture [`UpdateOpenIDConnectProviderThumbprintInput`](crate::input::UpdateOpenIDConnectProviderThumbprintInput) + /// Creates a new builder-style object to manufacture [`UpdateOpenIdConnectProviderThumbprintInput`](crate::input::UpdateOpenIdConnectProviderThumbprintInput) pub fn builder() -> crate::input::update_open_id_connect_provider_thumbprint_input::Builder { crate::input::update_open_id_connect_provider_thumbprint_input::Builder::default() } @@ -5618,7 +5618,7 @@ impl UpdateOpenIDConnectProviderThumbprint { } impl smithy_http::response::ParseStrictResponse for UpdateOpenIDConnectProviderThumbprint { type Output = std::result::Result< - crate::output::UpdateOpenIDConnectProviderThumbprintOutput, + crate::output::UpdateOpenIdConnectProviderThumbprintOutput, crate::error::UpdateOpenIDConnectProviderThumbprintError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5697,7 +5697,7 @@ pub struct UpdateSAMLProvider { _private: (), } impl UpdateSAMLProvider { - /// Creates a new builder-style object to manufacture [`UpdateSAMLProviderInput`](crate::input::UpdateSAMLProviderInput) + /// Creates a new builder-style object to manufacture [`UpdateSamlProviderInput`](crate::input::UpdateSamlProviderInput) pub fn builder() -> crate::input::update_saml_provider_input::Builder { crate::input::update_saml_provider_input::Builder::default() } @@ -5707,7 +5707,7 @@ impl UpdateSAMLProvider { } impl smithy_http::response::ParseStrictResponse for UpdateSAMLProvider { type Output = std::result::Result< - crate::output::UpdateSAMLProviderOutput, + crate::output::UpdateSamlProviderOutput, crate::error::UpdateSAMLProviderError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -5844,7 +5844,7 @@ pub struct UpdateSSHPublicKey { _private: (), } impl UpdateSSHPublicKey { - /// Creates a new builder-style object to manufacture [`UpdateSSHPublicKeyInput`](crate::input::UpdateSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`UpdateSshPublicKeyInput`](crate::input::UpdateSshPublicKeyInput) pub fn builder() -> crate::input::update_ssh_public_key_input::Builder { crate::input::update_ssh_public_key_input::Builder::default() } @@ -5854,7 +5854,7 @@ impl UpdateSSHPublicKey { } impl smithy_http::response::ParseStrictResponse for UpdateSSHPublicKey { type Output = std::result::Result< - crate::output::UpdateSSHPublicKeyOutput, + crate::output::UpdateSshPublicKeyOutput, crate::error::UpdateSSHPublicKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -6011,7 +6011,7 @@ pub struct UploadSSHPublicKey { _private: (), } impl UploadSSHPublicKey { - /// Creates a new builder-style object to manufacture [`UploadSSHPublicKeyInput`](crate::input::UploadSSHPublicKeyInput) + /// Creates a new builder-style object to manufacture [`UploadSshPublicKeyInput`](crate::input::UploadSshPublicKeyInput) pub fn builder() -> crate::input::upload_ssh_public_key_input::Builder { crate::input::upload_ssh_public_key_input::Builder::default() } @@ -6021,7 +6021,7 @@ impl UploadSSHPublicKey { } impl smithy_http::response::ParseStrictResponse for UploadSSHPublicKey { type Output = std::result::Result< - crate::output::UploadSSHPublicKeyOutput, + crate::output::UploadSshPublicKeyOutput, crate::error::UploadSSHPublicKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { diff --git a/sdk/iam/src/operation_deser.rs b/sdk/iam/src/operation_deser.rs index 65cb92c10339..8bd0b20feab6 100644 --- a/sdk/iam/src/operation_deser.rs +++ b/sdk/iam/src/operation_deser.rs @@ -3,7 +3,7 @@ pub fn parse_add_client_id_to_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::AddClientIDToOpenIDConnectProviderOutput, + crate::output::AddClientIdToOpenIdConnectProviderOutput, crate::error::AddClientIDToOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -15,61 +15,74 @@ pub fn parse_add_client_id_to_open_id_connect_provider_error( } }; Err(match error_code { - "InvalidInputException" => crate::error::AddClientIDToOpenIDConnectProviderError { - meta: generic, - kind: crate::error::AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; - output.build() - }), - }, + "InvalidInputException" => { + crate::error::AddClientIDToOpenIDConnectProviderError { + meta: generic, + kind: + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::InvalidInputException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), + } + } "LimitExceededException" => crate::error::AddClientIDToOpenIDConnectProviderError { meta: generic, - kind: crate::error::AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; - output.build() - }), - }, - "NoSuchEntityException" => crate::error::AddClientIDToOpenIDConnectProviderError { - meta: generic, - kind: crate::error::AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; - output.build() - }), + kind: crate::error::AddClientIDToOpenIDConnectProviderErrorKind::LimitExceededException( + { + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), }, + "NoSuchEntityException" => { + crate::error::AddClientIDToOpenIDConnectProviderError { + meta: generic, + kind: + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::NoSuchEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::AddClientIDToOpenIDConnectProviderError { meta: generic, - kind: crate::error::AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureError({ - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddClientIDToOpenIDConnectProviderError::unhandled)?; - output.build() - }), + kind: + crate::error::AddClientIDToOpenIDConnectProviderErrorKind::ServiceFailureException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_failure_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_service_failure_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::AddClientIDToOpenIDConnectProviderError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::AddClientIDToOpenIDConnectProviderError::generic(generic), }) @@ -79,7 +92,7 @@ pub fn parse_add_client_id_to_open_id_connect_provider_error( pub fn parse_add_client_id_to_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::AddClientIDToOpenIDConnectProviderOutput, + crate::output::AddClientIdToOpenIdConnectProviderOutput, crate::error::AddClientIDToOpenIDConnectProviderError, > { Ok({ @@ -111,11 +124,11 @@ pub fn parse_add_role_to_instance_profile_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::AddRoleToInstanceProfileError { meta: generic, - kind: crate::error::AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsError({ + kind: crate::error::AddRoleToInstanceProfileErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -125,11 +138,11 @@ pub fn parse_add_role_to_instance_profile_error( }, "LimitExceededException" => crate::error::AddRoleToInstanceProfileError { meta: generic, - kind: crate::error::AddRoleToInstanceProfileErrorKind::LimitExceededError({ + kind: crate::error::AddRoleToInstanceProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -139,11 +152,11 @@ pub fn parse_add_role_to_instance_profile_error( }, "NoSuchEntityException" => crate::error::AddRoleToInstanceProfileError { meta: generic, - kind: crate::error::AddRoleToInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::AddRoleToInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -153,11 +166,11 @@ pub fn parse_add_role_to_instance_profile_error( }, "ServiceFailureException" => crate::error::AddRoleToInstanceProfileError { meta: generic, - kind: crate::error::AddRoleToInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::AddRoleToInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -167,11 +180,11 @@ pub fn parse_add_role_to_instance_profile_error( }, "UnmodifiableEntityException" => crate::error::AddRoleToInstanceProfileError { meta: generic, - kind: crate::error::AddRoleToInstanceProfileErrorKind::UnmodifiableEntityError({ + kind: crate::error::AddRoleToInstanceProfileErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -211,11 +224,11 @@ pub fn parse_add_user_to_group_error( Err(match error_code { "LimitExceededException" => crate::error::AddUserToGroupError { meta: generic, - kind: crate::error::AddUserToGroupErrorKind::LimitExceededError({ + kind: crate::error::AddUserToGroupErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -225,11 +238,11 @@ pub fn parse_add_user_to_group_error( }, "NoSuchEntityException" => crate::error::AddUserToGroupError { meta: generic, - kind: crate::error::AddUserToGroupErrorKind::NoSuchEntityError({ + kind: crate::error::AddUserToGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -239,11 +252,11 @@ pub fn parse_add_user_to_group_error( }, "ServiceFailureException" => crate::error::AddUserToGroupError { meta: generic, - kind: crate::error::AddUserToGroupErrorKind::ServiceFailureError({ + kind: crate::error::AddUserToGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -281,11 +294,11 @@ pub fn parse_attach_group_policy_error( Err(match error_code { "InvalidInputException" => crate::error::AttachGroupPolicyError { meta: generic, - kind: crate::error::AttachGroupPolicyErrorKind::InvalidInputError({ + kind: crate::error::AttachGroupPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -295,11 +308,11 @@ pub fn parse_attach_group_policy_error( }, "LimitExceededException" => crate::error::AttachGroupPolicyError { meta: generic, - kind: crate::error::AttachGroupPolicyErrorKind::LimitExceededError({ + kind: crate::error::AttachGroupPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -309,11 +322,11 @@ pub fn parse_attach_group_policy_error( }, "NoSuchEntityException" => crate::error::AttachGroupPolicyError { meta: generic, - kind: crate::error::AttachGroupPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::AttachGroupPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -323,11 +336,11 @@ pub fn parse_attach_group_policy_error( }, "PolicyNotAttachableException" => crate::error::AttachGroupPolicyError { meta: generic, - kind: crate::error::AttachGroupPolicyErrorKind::PolicyNotAttachableError({ + kind: crate::error::AttachGroupPolicyErrorKind::PolicyNotAttachableException({ #[allow(unused_mut)] - let mut output = crate::error::policy_not_attachable_error::Builder::default(); + let mut output = crate::error::policy_not_attachable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_not_attachable_error_xml_err( + output = crate::xml_deser::deser_structure_policy_not_attachable_exception_xml_err( response.body().as_ref(), output, ) @@ -337,11 +350,11 @@ pub fn parse_attach_group_policy_error( }, "ServiceFailureException" => crate::error::AttachGroupPolicyError { meta: generic, - kind: crate::error::AttachGroupPolicyErrorKind::ServiceFailureError({ + kind: crate::error::AttachGroupPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -380,11 +393,11 @@ pub fn parse_attach_role_policy_error( Err(match error_code { "InvalidInputException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::InvalidInputError({ + kind: crate::error::AttachRolePolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -394,11 +407,11 @@ pub fn parse_attach_role_policy_error( }, "LimitExceededException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::LimitExceededError({ + kind: crate::error::AttachRolePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -408,11 +421,11 @@ pub fn parse_attach_role_policy_error( }, "NoSuchEntityException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::AttachRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -422,11 +435,11 @@ pub fn parse_attach_role_policy_error( }, "PolicyNotAttachableException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::PolicyNotAttachableError({ + kind: crate::error::AttachRolePolicyErrorKind::PolicyNotAttachableException({ #[allow(unused_mut)] - let mut output = crate::error::policy_not_attachable_error::Builder::default(); + let mut output = crate::error::policy_not_attachable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_not_attachable_error_xml_err( + output = crate::xml_deser::deser_structure_policy_not_attachable_exception_xml_err( response.body().as_ref(), output, ) @@ -436,11 +449,11 @@ pub fn parse_attach_role_policy_error( }, "ServiceFailureException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::AttachRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -450,11 +463,11 @@ pub fn parse_attach_role_policy_error( }, "UnmodifiableEntityException" => crate::error::AttachRolePolicyError { meta: generic, - kind: crate::error::AttachRolePolicyErrorKind::UnmodifiableEntityError({ + kind: crate::error::AttachRolePolicyErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -493,11 +506,11 @@ pub fn parse_attach_user_policy_error( Err(match error_code { "InvalidInputException" => crate::error::AttachUserPolicyError { meta: generic, - kind: crate::error::AttachUserPolicyErrorKind::InvalidInputError({ + kind: crate::error::AttachUserPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -507,11 +520,11 @@ pub fn parse_attach_user_policy_error( }, "LimitExceededException" => crate::error::AttachUserPolicyError { meta: generic, - kind: crate::error::AttachUserPolicyErrorKind::LimitExceededError({ + kind: crate::error::AttachUserPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -521,11 +534,11 @@ pub fn parse_attach_user_policy_error( }, "NoSuchEntityException" => crate::error::AttachUserPolicyError { meta: generic, - kind: crate::error::AttachUserPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::AttachUserPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -535,11 +548,11 @@ pub fn parse_attach_user_policy_error( }, "PolicyNotAttachableException" => crate::error::AttachUserPolicyError { meta: generic, - kind: crate::error::AttachUserPolicyErrorKind::PolicyNotAttachableError({ + kind: crate::error::AttachUserPolicyErrorKind::PolicyNotAttachableException({ #[allow(unused_mut)] - let mut output = crate::error::policy_not_attachable_error::Builder::default(); + let mut output = crate::error::policy_not_attachable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_not_attachable_error_xml_err( + output = crate::xml_deser::deser_structure_policy_not_attachable_exception_xml_err( response.body().as_ref(), output, ) @@ -549,11 +562,11 @@ pub fn parse_attach_user_policy_error( }, "ServiceFailureException" => crate::error::AttachUserPolicyError { meta: generic, - kind: crate::error::AttachUserPolicyErrorKind::ServiceFailureError({ + kind: crate::error::AttachUserPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -591,22 +604,22 @@ pub fn parse_change_password_error( Err(match error_code { "EntityTemporarilyUnmodifiableException" => crate::error::ChangePasswordError { meta: generic, - kind: crate::error::ChangePasswordErrorKind::EntityTemporarilyUnmodifiableError({ + kind: crate::error::ChangePasswordErrorKind::EntityTemporarilyUnmodifiableException({ #[allow(unused_mut)] let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); + crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ChangePasswordError::unhandled)?; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ChangePasswordError::unhandled)?; output.build() }), }, "InvalidUserTypeException" => crate::error::ChangePasswordError { meta: generic, - kind: crate::error::ChangePasswordErrorKind::InvalidUserTypeError({ + kind: crate::error::ChangePasswordErrorKind::InvalidUserTypeException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_user_type_error::Builder::default(); + let mut output = crate::error::invalid_user_type_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_user_type_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_user_type_exception_xml_err( response.body().as_ref(), output, ) @@ -616,11 +629,11 @@ pub fn parse_change_password_error( }, "LimitExceededException" => crate::error::ChangePasswordError { meta: generic, - kind: crate::error::ChangePasswordErrorKind::LimitExceededError({ + kind: crate::error::ChangePasswordErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -630,25 +643,11 @@ pub fn parse_change_password_error( }, "NoSuchEntityException" => crate::error::ChangePasswordError { meta: generic, - kind: crate::error::ChangePasswordErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ChangePasswordError::unhandled)?; - output.build() - }), - }, - "PasswordPolicyViolationException" => crate::error::ChangePasswordError { - meta: generic, - kind: crate::error::ChangePasswordErrorKind::PasswordPolicyViolationError({ + kind: crate::error::ChangePasswordErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::password_policy_violation_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_password_policy_violation_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -656,13 +655,26 @@ pub fn parse_change_password_error( output.build() }), }, + "PasswordPolicyViolationException" => { + crate::error::ChangePasswordError { + meta: generic, + kind: crate::error::ChangePasswordErrorKind::PasswordPolicyViolationException({ + #[allow(unused_mut)] + let mut output = + crate::error::password_policy_violation_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_password_policy_violation_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ChangePasswordError::unhandled)?; + output.build() + }), + } + } "ServiceFailureException" => crate::error::ChangePasswordError { meta: generic, - kind: crate::error::ChangePasswordErrorKind::ServiceFailureError({ + kind: crate::error::ChangePasswordErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -699,11 +711,11 @@ pub fn parse_create_access_key_error( Err(match error_code { "LimitExceededException" => crate::error::CreateAccessKeyError { meta: generic, - kind: crate::error::CreateAccessKeyErrorKind::LimitExceededError({ + kind: crate::error::CreateAccessKeyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -713,11 +725,11 @@ pub fn parse_create_access_key_error( }, "NoSuchEntityException" => crate::error::CreateAccessKeyError { meta: generic, - kind: crate::error::CreateAccessKeyErrorKind::NoSuchEntityError({ + kind: crate::error::CreateAccessKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -727,11 +739,11 @@ pub fn parse_create_access_key_error( }, "ServiceFailureException" => crate::error::CreateAccessKeyError { meta: generic, - kind: crate::error::CreateAccessKeyErrorKind::ServiceFailureError({ + kind: crate::error::CreateAccessKeyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -774,11 +786,11 @@ pub fn parse_create_account_alias_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::CreateAccountAliasError { meta: generic, - kind: crate::error::CreateAccountAliasErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateAccountAliasErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -788,11 +800,11 @@ pub fn parse_create_account_alias_error( }, "LimitExceededException" => crate::error::CreateAccountAliasError { meta: generic, - kind: crate::error::CreateAccountAliasErrorKind::LimitExceededError({ + kind: crate::error::CreateAccountAliasErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -802,11 +814,11 @@ pub fn parse_create_account_alias_error( }, "ServiceFailureException" => crate::error::CreateAccountAliasError { meta: generic, - kind: crate::error::CreateAccountAliasErrorKind::ServiceFailureError({ + kind: crate::error::CreateAccountAliasErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -846,11 +858,11 @@ pub fn parse_create_group_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::CreateGroupError { meta: generic, - kind: crate::error::CreateGroupErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateGroupErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -860,11 +872,11 @@ pub fn parse_create_group_error( }, "LimitExceededException" => crate::error::CreateGroupError { meta: generic, - kind: crate::error::CreateGroupErrorKind::LimitExceededError({ + kind: crate::error::CreateGroupErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -874,11 +886,11 @@ pub fn parse_create_group_error( }, "NoSuchEntityException" => crate::error::CreateGroupError { meta: generic, - kind: crate::error::CreateGroupErrorKind::NoSuchEntityError({ + kind: crate::error::CreateGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -888,11 +900,11 @@ pub fn parse_create_group_error( }, "ServiceFailureException" => crate::error::CreateGroupError { meta: generic, - kind: crate::error::CreateGroupErrorKind::ServiceFailureError({ + kind: crate::error::CreateGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -932,27 +944,28 @@ pub fn parse_create_instance_profile_error( None => return Err(crate::error::CreateInstanceProfileError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreateInstanceProfileError { - meta: generic, - kind: crate::error::CreateInstanceProfileErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateInstanceProfileError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreateInstanceProfileError { + meta: generic, + kind: crate::error::CreateInstanceProfileErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateInstanceProfileError::unhandled)?; + output.build() + }, + ), + } + } "EntityAlreadyExistsException" => crate::error::CreateInstanceProfileError { meta: generic, - kind: crate::error::CreateInstanceProfileErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateInstanceProfileErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -962,11 +975,11 @@ pub fn parse_create_instance_profile_error( }, "InvalidInputException" => crate::error::CreateInstanceProfileError { meta: generic, - kind: crate::error::CreateInstanceProfileErrorKind::InvalidInputError({ + kind: crate::error::CreateInstanceProfileErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -976,11 +989,11 @@ pub fn parse_create_instance_profile_error( }, "LimitExceededException" => crate::error::CreateInstanceProfileError { meta: generic, - kind: crate::error::CreateInstanceProfileErrorKind::LimitExceededError({ + kind: crate::error::CreateInstanceProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -990,11 +1003,11 @@ pub fn parse_create_instance_profile_error( }, "ServiceFailureException" => crate::error::CreateInstanceProfileError { meta: generic, - kind: crate::error::CreateInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::CreateInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1042,11 +1055,11 @@ pub fn parse_create_login_profile_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::CreateLoginProfileError { meta: generic, - kind: crate::error::CreateLoginProfileErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateLoginProfileErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1056,11 +1069,11 @@ pub fn parse_create_login_profile_error( }, "LimitExceededException" => crate::error::CreateLoginProfileError { meta: generic, - kind: crate::error::CreateLoginProfileErrorKind::LimitExceededError({ + kind: crate::error::CreateLoginProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1070,25 +1083,11 @@ pub fn parse_create_login_profile_error( }, "NoSuchEntityException" => crate::error::CreateLoginProfileError { meta: generic, - kind: crate::error::CreateLoginProfileErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateLoginProfileError::unhandled)?; - output.build() - }), - }, - "PasswordPolicyViolationException" => crate::error::CreateLoginProfileError { - meta: generic, - kind: crate::error::CreateLoginProfileErrorKind::PasswordPolicyViolationError({ + kind: crate::error::CreateLoginProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::password_policy_violation_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_password_policy_violation_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -1096,13 +1095,28 @@ pub fn parse_create_login_profile_error( output.build() }), }, + "PasswordPolicyViolationException" => { + crate::error::CreateLoginProfileError { + meta: generic, + kind: crate::error::CreateLoginProfileErrorKind::PasswordPolicyViolationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::password_policy_violation_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_password_policy_violation_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateLoginProfileError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::CreateLoginProfileError { meta: generic, - kind: crate::error::CreateLoginProfileErrorKind::ServiceFailureError({ + kind: crate::error::CreateLoginProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1138,7 +1152,7 @@ pub fn parse_create_login_profile_response( pub fn parse_create_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateOpenIDConnectProviderOutput, + crate::output::CreateOpenIdConnectProviderOutput, crate::error::CreateOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1152,43 +1166,43 @@ pub fn parse_create_open_id_connect_provider_error( } }; Err(match error_code { - "ConcurrentModificationException" => { + "ConcurrentModificationException" => crate::error::CreateOpenIDConnectProviderError { + meta: generic, + kind: + crate::error::CreateOpenIDConnectProviderErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), + }, + "EntityAlreadyExistsException" => { crate::error::CreateOpenIDConnectProviderError { meta: generic, kind: - crate::error::CreateOpenIDConnectProviderErrorKind::ConcurrentModificationError( + crate::error::CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsException( { #[allow(unused_mut)] let mut output = - crate::error::concurrent_modification_error::Builder::default(); + crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateOpenIDConnectProviderError::unhandled)?; + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateOpenIDConnectProviderError::unhandled)?; output.build() }, ), } } - "EntityAlreadyExistsException" => crate::error::CreateOpenIDConnectProviderError { - meta: generic, - kind: crate::error::CreateOpenIDConnectProviderErrorKind::EntityAlreadyExistsError({ - #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateOpenIDConnectProviderError::unhandled)?; - output.build() - }), - }, "InvalidInputException" => crate::error::CreateOpenIDConnectProviderError { meta: generic, - kind: crate::error::CreateOpenIDConnectProviderErrorKind::InvalidInputError({ + kind: crate::error::CreateOpenIDConnectProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1198,11 +1212,11 @@ pub fn parse_create_open_id_connect_provider_error( }, "LimitExceededException" => crate::error::CreateOpenIDConnectProviderError { meta: generic, - kind: crate::error::CreateOpenIDConnectProviderErrorKind::LimitExceededError({ + kind: crate::error::CreateOpenIDConnectProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1212,11 +1226,11 @@ pub fn parse_create_open_id_connect_provider_error( }, "ServiceFailureException" => crate::error::CreateOpenIDConnectProviderError { meta: generic, - kind: crate::error::CreateOpenIDConnectProviderErrorKind::ServiceFailureError({ + kind: crate::error::CreateOpenIDConnectProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1232,7 +1246,7 @@ pub fn parse_create_open_id_connect_provider_error( pub fn parse_create_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateOpenIDConnectProviderOutput, + crate::output::CreateOpenIdConnectProviderOutput, crate::error::CreateOpenIDConnectProviderError, > { Ok({ @@ -1259,27 +1273,26 @@ pub fn parse_create_policy_error( None => return Err(crate::error::CreatePolicyError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreatePolicyError { - meta: generic, - kind: crate::error::CreatePolicyErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreatePolicyError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreatePolicyError { + meta: generic, + kind: crate::error::CreatePolicyErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreatePolicyError::unhandled)?; + output.build() + }), + } + } "EntityAlreadyExistsException" => crate::error::CreatePolicyError { meta: generic, - kind: crate::error::CreatePolicyErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreatePolicyErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1289,11 +1302,11 @@ pub fn parse_create_policy_error( }, "InvalidInputException" => crate::error::CreatePolicyError { meta: generic, - kind: crate::error::CreatePolicyErrorKind::InvalidInputError({ + kind: crate::error::CreatePolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1303,25 +1316,11 @@ pub fn parse_create_policy_error( }, "LimitExceededException" => crate::error::CreatePolicyError { meta: generic, - kind: crate::error::CreatePolicyErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreatePolicyError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::CreatePolicyError { - meta: generic, - kind: crate::error::CreatePolicyErrorKind::MalformedPolicyDocumentError({ + kind: crate::error::CreatePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1329,13 +1328,26 @@ pub fn parse_create_policy_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::CreatePolicyError { + meta: generic, + kind: crate::error::CreatePolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreatePolicyError::unhandled)?; + output.build() + }), + } + } "ServiceFailureException" => crate::error::CreatePolicyError { meta: generic, - kind: crate::error::CreatePolicyErrorKind::ServiceFailureError({ + kind: crate::error::CreatePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1377,11 +1389,11 @@ pub fn parse_create_policy_version_error( Err(match error_code { "InvalidInputException" => crate::error::CreatePolicyVersionError { meta: generic, - kind: crate::error::CreatePolicyVersionErrorKind::InvalidInputError({ + kind: crate::error::CreatePolicyVersionErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1391,25 +1403,11 @@ pub fn parse_create_policy_version_error( }, "LimitExceededException" => crate::error::CreatePolicyVersionError { meta: generic, - kind: crate::error::CreatePolicyVersionErrorKind::LimitExceededError({ + kind: crate::error::CreatePolicyVersionErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreatePolicyVersionError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::CreatePolicyVersionError { - meta: generic, - kind: crate::error::CreatePolicyVersionErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1417,13 +1415,28 @@ pub fn parse_create_policy_version_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::CreatePolicyVersionError { + meta: generic, + kind: crate::error::CreatePolicyVersionErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreatePolicyVersionError::unhandled)?; + output.build() + }, + ), + } + } "NoSuchEntityException" => crate::error::CreatePolicyVersionError { meta: generic, - kind: crate::error::CreatePolicyVersionErrorKind::NoSuchEntityError({ + kind: crate::error::CreatePolicyVersionErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -1433,11 +1446,11 @@ pub fn parse_create_policy_version_error( }, "ServiceFailureException" => crate::error::CreatePolicyVersionError { meta: generic, - kind: crate::error::CreatePolicyVersionErrorKind::ServiceFailureError({ + kind: crate::error::CreatePolicyVersionErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1480,27 +1493,26 @@ pub fn parse_create_role_error( None => return Err(crate::error::CreateRoleError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreateRoleError { - meta: generic, - kind: crate::error::CreateRoleErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateRoleError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreateRoleError { + meta: generic, + kind: crate::error::CreateRoleErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateRoleError::unhandled)?; + output.build() + }), + } + } "EntityAlreadyExistsException" => crate::error::CreateRoleError { meta: generic, - kind: crate::error::CreateRoleErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateRoleErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1510,11 +1522,11 @@ pub fn parse_create_role_error( }, "InvalidInputException" => crate::error::CreateRoleError { meta: generic, - kind: crate::error::CreateRoleErrorKind::InvalidInputError({ + kind: crate::error::CreateRoleErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1524,25 +1536,11 @@ pub fn parse_create_role_error( }, "LimitExceededException" => crate::error::CreateRoleError { meta: generic, - kind: crate::error::CreateRoleErrorKind::LimitExceededError({ + kind: crate::error::CreateRoleErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateRoleError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::CreateRoleError { - meta: generic, - kind: crate::error::CreateRoleErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1550,13 +1548,26 @@ pub fn parse_create_role_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::CreateRoleError { + meta: generic, + kind: crate::error::CreateRoleErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateRoleError::unhandled)?; + output.build() + }), + } + } "ServiceFailureException" => crate::error::CreateRoleError { meta: generic, - kind: crate::error::CreateRoleErrorKind::ServiceFailureError({ + kind: crate::error::CreateRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1586,7 +1597,7 @@ pub fn parse_create_role_response( pub fn parse_create_saml_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateSAMLProviderOutput, + crate::output::CreateSamlProviderOutput, crate::error::CreateSAMLProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1596,27 +1607,26 @@ pub fn parse_create_saml_provider_error( None => return Err(crate::error::CreateSAMLProviderError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreateSAMLProviderError { - meta: generic, - kind: crate::error::CreateSAMLProviderErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateSAMLProviderError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreateSAMLProviderError { + meta: generic, + kind: crate::error::CreateSAMLProviderErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateSAMLProviderError::unhandled)?; + output.build() + }), + } + } "EntityAlreadyExistsException" => crate::error::CreateSAMLProviderError { meta: generic, - kind: crate::error::CreateSAMLProviderErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateSAMLProviderErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1626,11 +1636,11 @@ pub fn parse_create_saml_provider_error( }, "InvalidInputException" => crate::error::CreateSAMLProviderError { meta: generic, - kind: crate::error::CreateSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::CreateSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1640,11 +1650,11 @@ pub fn parse_create_saml_provider_error( }, "LimitExceededException" => crate::error::CreateSAMLProviderError { meta: generic, - kind: crate::error::CreateSAMLProviderErrorKind::LimitExceededError({ + kind: crate::error::CreateSAMLProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1654,11 +1664,11 @@ pub fn parse_create_saml_provider_error( }, "ServiceFailureException" => crate::error::CreateSAMLProviderError { meta: generic, - kind: crate::error::CreateSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::CreateSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1674,7 +1684,7 @@ pub fn parse_create_saml_provider_error( pub fn parse_create_saml_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateSAMLProviderOutput, + crate::output::CreateSamlProviderOutput, crate::error::CreateSAMLProviderError, > { Ok({ @@ -1710,11 +1720,11 @@ pub fn parse_create_service_linked_role_error( Err(match error_code { "InvalidInputException" => crate::error::CreateServiceLinkedRoleError { meta: generic, - kind: crate::error::CreateServiceLinkedRoleErrorKind::InvalidInputError({ + kind: crate::error::CreateServiceLinkedRoleErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1724,11 +1734,11 @@ pub fn parse_create_service_linked_role_error( }, "LimitExceededException" => crate::error::CreateServiceLinkedRoleError { meta: generic, - kind: crate::error::CreateServiceLinkedRoleErrorKind::LimitExceededError({ + kind: crate::error::CreateServiceLinkedRoleErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1738,11 +1748,11 @@ pub fn parse_create_service_linked_role_error( }, "NoSuchEntityException" => crate::error::CreateServiceLinkedRoleError { meta: generic, - kind: crate::error::CreateServiceLinkedRoleErrorKind::NoSuchEntityError({ + kind: crate::error::CreateServiceLinkedRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -1752,11 +1762,11 @@ pub fn parse_create_service_linked_role_error( }, "ServiceFailureException" => crate::error::CreateServiceLinkedRoleError { meta: generic, - kind: crate::error::CreateServiceLinkedRoleErrorKind::ServiceFailureError({ + kind: crate::error::CreateServiceLinkedRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1804,11 +1814,11 @@ pub fn parse_create_service_specific_credential_error( Err(match error_code { "LimitExceededException" => crate::error::CreateServiceSpecificCredentialError { meta: generic, - kind: crate::error::CreateServiceSpecificCredentialErrorKind::LimitExceededError({ + kind: crate::error::CreateServiceSpecificCredentialErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1818,11 +1828,11 @@ pub fn parse_create_service_specific_credential_error( }, "NoSuchEntityException" => crate::error::CreateServiceSpecificCredentialError { meta: generic, - kind: crate::error::CreateServiceSpecificCredentialErrorKind::NoSuchEntityError({ + kind: crate::error::CreateServiceSpecificCredentialErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -1830,22 +1840,20 @@ pub fn parse_create_service_specific_credential_error( output.build() }), }, - "ServiceNotSupportedException" => { - crate::error::CreateServiceSpecificCredentialError { - meta: generic, - kind: - crate::error::CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedError( - { - #[allow(unused_mut)] - let mut output = - crate::error::service_not_supported_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_not_supported_error_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateServiceSpecificCredentialError::unhandled)?; - output.build() - }, - ), - } - } + "ServiceNotSupportedException" => crate::error::CreateServiceSpecificCredentialError { + meta: generic, + kind: + crate::error::CreateServiceSpecificCredentialErrorKind::ServiceNotSupportedException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_not_supported_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_service_not_supported_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateServiceSpecificCredentialError::unhandled)?; + output.build() + }, + ), + }, _ => crate::error::CreateServiceSpecificCredentialError::generic(generic), }) } @@ -1882,27 +1890,26 @@ pub fn parse_create_user_error( None => return Err(crate::error::CreateUserError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreateUserError { - meta: generic, - kind: crate::error::CreateUserErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateUserError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreateUserError { + meta: generic, + kind: crate::error::CreateUserErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateUserError::unhandled)?; + output.build() + }), + } + } "EntityAlreadyExistsException" => crate::error::CreateUserError { meta: generic, - kind: crate::error::CreateUserErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateUserErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -1912,11 +1919,11 @@ pub fn parse_create_user_error( }, "InvalidInputException" => crate::error::CreateUserError { meta: generic, - kind: crate::error::CreateUserErrorKind::InvalidInputError({ + kind: crate::error::CreateUserErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -1926,11 +1933,11 @@ pub fn parse_create_user_error( }, "LimitExceededException" => crate::error::CreateUserError { meta: generic, - kind: crate::error::CreateUserErrorKind::LimitExceededError({ + kind: crate::error::CreateUserErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -1940,11 +1947,11 @@ pub fn parse_create_user_error( }, "NoSuchEntityException" => crate::error::CreateUserError { meta: generic, - kind: crate::error::CreateUserErrorKind::NoSuchEntityError({ + kind: crate::error::CreateUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -1954,11 +1961,11 @@ pub fn parse_create_user_error( }, "ServiceFailureException" => crate::error::CreateUserError { meta: generic, - kind: crate::error::CreateUserErrorKind::ServiceFailureError({ + kind: crate::error::CreateUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -1988,7 +1995,7 @@ pub fn parse_create_user_response( pub fn parse_create_virtual_mfa_device_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateVirtualMFADeviceOutput, + crate::output::CreateVirtualMfaDeviceOutput, crate::error::CreateVirtualMFADeviceError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2002,27 +2009,29 @@ pub fn parse_create_virtual_mfa_device_error( } }; Err(match error_code { - "ConcurrentModificationException" => crate::error::CreateVirtualMFADeviceError { - meta: generic, - kind: crate::error::CreateVirtualMFADeviceErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateVirtualMFADeviceError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::CreateVirtualMFADeviceError { + meta: generic, + kind: + crate::error::CreateVirtualMFADeviceErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateVirtualMFADeviceError::unhandled)?; + output.build() + }, + ), + } + } "EntityAlreadyExistsException" => crate::error::CreateVirtualMFADeviceError { meta: generic, - kind: crate::error::CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsError({ + kind: crate::error::CreateVirtualMFADeviceErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -2032,11 +2041,11 @@ pub fn parse_create_virtual_mfa_device_error( }, "InvalidInputException" => crate::error::CreateVirtualMFADeviceError { meta: generic, - kind: crate::error::CreateVirtualMFADeviceErrorKind::InvalidInputError({ + kind: crate::error::CreateVirtualMFADeviceErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -2046,11 +2055,11 @@ pub fn parse_create_virtual_mfa_device_error( }, "LimitExceededException" => crate::error::CreateVirtualMFADeviceError { meta: generic, - kind: crate::error::CreateVirtualMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::CreateVirtualMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2060,11 +2069,11 @@ pub fn parse_create_virtual_mfa_device_error( }, "ServiceFailureException" => crate::error::CreateVirtualMFADeviceError { meta: generic, - kind: crate::error::CreateVirtualMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::CreateVirtualMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2080,7 +2089,7 @@ pub fn parse_create_virtual_mfa_device_error( pub fn parse_create_virtual_mfa_device_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateVirtualMFADeviceOutput, + crate::output::CreateVirtualMfaDeviceOutput, crate::error::CreateVirtualMFADeviceError, > { Ok({ @@ -2100,7 +2109,7 @@ pub fn parse_create_virtual_mfa_device_response( pub fn parse_deactivate_mfa_device_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeactivateMFADeviceOutput, + crate::output::DeactivateMfaDeviceOutput, crate::error::DeactivateMFADeviceError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2112,22 +2121,23 @@ pub fn parse_deactivate_mfa_device_error( Err(match error_code { "EntityTemporarilyUnmodifiableException" => crate::error::DeactivateMFADeviceError { meta: generic, - kind: crate::error::DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableError({ - #[allow(unused_mut)] - let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::DeactivateMFADeviceError::unhandled)?; - output.build() - }), + kind: + crate::error::DeactivateMFADeviceErrorKind::EntityTemporarilyUnmodifiableException( + { + #[allow(unused_mut)]let mut output = crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeactivateMFADeviceError::unhandled)?; + output.build() + }, + ), }, "LimitExceededException" => crate::error::DeactivateMFADeviceError { meta: generic, - kind: crate::error::DeactivateMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::DeactivateMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2137,11 +2147,11 @@ pub fn parse_deactivate_mfa_device_error( }, "NoSuchEntityException" => crate::error::DeactivateMFADeviceError { meta: generic, - kind: crate::error::DeactivateMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::DeactivateMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2151,11 +2161,11 @@ pub fn parse_deactivate_mfa_device_error( }, "ServiceFailureException" => crate::error::DeactivateMFADeviceError { meta: generic, - kind: crate::error::DeactivateMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::DeactivateMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2171,7 +2181,7 @@ pub fn parse_deactivate_mfa_device_error( pub fn parse_deactivate_mfa_device_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeactivateMFADeviceOutput, + crate::output::DeactivateMfaDeviceOutput, crate::error::DeactivateMFADeviceError, > { Ok({ @@ -2195,11 +2205,11 @@ pub fn parse_delete_access_key_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteAccessKeyError { meta: generic, - kind: crate::error::DeleteAccessKeyErrorKind::LimitExceededError({ + kind: crate::error::DeleteAccessKeyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2209,11 +2219,11 @@ pub fn parse_delete_access_key_error( }, "NoSuchEntityException" => crate::error::DeleteAccessKeyError { meta: generic, - kind: crate::error::DeleteAccessKeyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteAccessKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2223,11 +2233,11 @@ pub fn parse_delete_access_key_error( }, "ServiceFailureException" => crate::error::DeleteAccessKeyError { meta: generic, - kind: crate::error::DeleteAccessKeyErrorKind::ServiceFailureError({ + kind: crate::error::DeleteAccessKeyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2267,11 +2277,11 @@ pub fn parse_delete_account_alias_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteAccountAliasError { meta: generic, - kind: crate::error::DeleteAccountAliasErrorKind::LimitExceededError({ + kind: crate::error::DeleteAccountAliasErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2281,11 +2291,11 @@ pub fn parse_delete_account_alias_error( }, "NoSuchEntityException" => crate::error::DeleteAccountAliasError { meta: generic, - kind: crate::error::DeleteAccountAliasErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteAccountAliasErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2295,11 +2305,11 @@ pub fn parse_delete_account_alias_error( }, "ServiceFailureException" => crate::error::DeleteAccountAliasError { meta: generic, - kind: crate::error::DeleteAccountAliasErrorKind::ServiceFailureError({ + kind: crate::error::DeleteAccountAliasErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2346,11 +2356,11 @@ pub fn parse_delete_account_password_policy_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteAccountPasswordPolicyError { meta: generic, - kind: crate::error::DeleteAccountPasswordPolicyErrorKind::LimitExceededError({ + kind: crate::error::DeleteAccountPasswordPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2360,11 +2370,11 @@ pub fn parse_delete_account_password_policy_error( }, "NoSuchEntityException" => crate::error::DeleteAccountPasswordPolicyError { meta: generic, - kind: crate::error::DeleteAccountPasswordPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteAccountPasswordPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2374,11 +2384,11 @@ pub fn parse_delete_account_password_policy_error( }, "ServiceFailureException" => crate::error::DeleteAccountPasswordPolicyError { meta: generic, - kind: crate::error::DeleteAccountPasswordPolicyErrorKind::ServiceFailureError({ + kind: crate::error::DeleteAccountPasswordPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2418,11 +2428,11 @@ pub fn parse_delete_group_error( Err(match error_code { "DeleteConflictException" => crate::error::DeleteGroupError { meta: generic, - kind: crate::error::DeleteGroupErrorKind::DeleteConflictError({ + kind: crate::error::DeleteGroupErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -2432,11 +2442,11 @@ pub fn parse_delete_group_error( }, "LimitExceededException" => crate::error::DeleteGroupError { meta: generic, - kind: crate::error::DeleteGroupErrorKind::LimitExceededError({ + kind: crate::error::DeleteGroupErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2446,11 +2456,11 @@ pub fn parse_delete_group_error( }, "NoSuchEntityException" => crate::error::DeleteGroupError { meta: generic, - kind: crate::error::DeleteGroupErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2460,11 +2470,11 @@ pub fn parse_delete_group_error( }, "ServiceFailureException" => crate::error::DeleteGroupError { meta: generic, - kind: crate::error::DeleteGroupErrorKind::ServiceFailureError({ + kind: crate::error::DeleteGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2502,11 +2512,11 @@ pub fn parse_delete_group_policy_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteGroupPolicyError { meta: generic, - kind: crate::error::DeleteGroupPolicyErrorKind::LimitExceededError({ + kind: crate::error::DeleteGroupPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2516,11 +2526,11 @@ pub fn parse_delete_group_policy_error( }, "NoSuchEntityException" => crate::error::DeleteGroupPolicyError { meta: generic, - kind: crate::error::DeleteGroupPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteGroupPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2530,11 +2540,11 @@ pub fn parse_delete_group_policy_error( }, "ServiceFailureException" => crate::error::DeleteGroupPolicyError { meta: generic, - kind: crate::error::DeleteGroupPolicyErrorKind::ServiceFailureError({ + kind: crate::error::DeleteGroupPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2575,11 +2585,11 @@ pub fn parse_delete_instance_profile_error( Err(match error_code { "DeleteConflictException" => crate::error::DeleteInstanceProfileError { meta: generic, - kind: crate::error::DeleteInstanceProfileErrorKind::DeleteConflictError({ + kind: crate::error::DeleteInstanceProfileErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -2589,11 +2599,11 @@ pub fn parse_delete_instance_profile_error( }, "LimitExceededException" => crate::error::DeleteInstanceProfileError { meta: generic, - kind: crate::error::DeleteInstanceProfileErrorKind::LimitExceededError({ + kind: crate::error::DeleteInstanceProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2603,11 +2613,11 @@ pub fn parse_delete_instance_profile_error( }, "NoSuchEntityException" => crate::error::DeleteInstanceProfileError { meta: generic, - kind: crate::error::DeleteInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2617,11 +2627,11 @@ pub fn parse_delete_instance_profile_error( }, "ServiceFailureException" => crate::error::DeleteInstanceProfileError { meta: generic, - kind: crate::error::DeleteInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::DeleteInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2664,22 +2674,24 @@ pub fn parse_delete_login_profile_error( Err(match error_code { "EntityTemporarilyUnmodifiableException" => crate::error::DeleteLoginProfileError { meta: generic, - kind: crate::error::DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableError({ - #[allow(unused_mut)] - let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteLoginProfileError::unhandled)?; - output.build() - }), + kind: crate::error::DeleteLoginProfileErrorKind::EntityTemporarilyUnmodifiableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteLoginProfileError::unhandled)?; + output.build() + }, + ), }, "LimitExceededException" => crate::error::DeleteLoginProfileError { meta: generic, - kind: crate::error::DeleteLoginProfileErrorKind::LimitExceededError({ + kind: crate::error::DeleteLoginProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2689,11 +2701,11 @@ pub fn parse_delete_login_profile_error( }, "NoSuchEntityException" => crate::error::DeleteLoginProfileError { meta: generic, - kind: crate::error::DeleteLoginProfileErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteLoginProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2703,11 +2715,11 @@ pub fn parse_delete_login_profile_error( }, "ServiceFailureException" => crate::error::DeleteLoginProfileError { meta: generic, - kind: crate::error::DeleteLoginProfileErrorKind::ServiceFailureError({ + kind: crate::error::DeleteLoginProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2738,7 +2750,7 @@ pub fn parse_delete_login_profile_response( pub fn parse_delete_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteOpenIDConnectProviderOutput, + crate::output::DeleteOpenIdConnectProviderOutput, crate::error::DeleteOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2754,11 +2766,11 @@ pub fn parse_delete_open_id_connect_provider_error( Err(match error_code { "InvalidInputException" => crate::error::DeleteOpenIDConnectProviderError { meta: generic, - kind: crate::error::DeleteOpenIDConnectProviderErrorKind::InvalidInputError({ + kind: crate::error::DeleteOpenIDConnectProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -2768,11 +2780,11 @@ pub fn parse_delete_open_id_connect_provider_error( }, "NoSuchEntityException" => crate::error::DeleteOpenIDConnectProviderError { meta: generic, - kind: crate::error::DeleteOpenIDConnectProviderErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteOpenIDConnectProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2782,11 +2794,11 @@ pub fn parse_delete_open_id_connect_provider_error( }, "ServiceFailureException" => crate::error::DeleteOpenIDConnectProviderError { meta: generic, - kind: crate::error::DeleteOpenIDConnectProviderErrorKind::ServiceFailureError({ + kind: crate::error::DeleteOpenIDConnectProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2802,7 +2814,7 @@ pub fn parse_delete_open_id_connect_provider_error( pub fn parse_delete_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteOpenIDConnectProviderOutput, + crate::output::DeleteOpenIdConnectProviderOutput, crate::error::DeleteOpenIDConnectProviderError, > { Ok({ @@ -2826,11 +2838,11 @@ pub fn parse_delete_policy_error( Err(match error_code { "DeleteConflictException" => crate::error::DeletePolicyError { meta: generic, - kind: crate::error::DeletePolicyErrorKind::DeleteConflictError({ + kind: crate::error::DeletePolicyErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -2840,11 +2852,11 @@ pub fn parse_delete_policy_error( }, "InvalidInputException" => crate::error::DeletePolicyError { meta: generic, - kind: crate::error::DeletePolicyErrorKind::InvalidInputError({ + kind: crate::error::DeletePolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -2854,11 +2866,11 @@ pub fn parse_delete_policy_error( }, "LimitExceededException" => crate::error::DeletePolicyError { meta: generic, - kind: crate::error::DeletePolicyErrorKind::LimitExceededError({ + kind: crate::error::DeletePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2868,11 +2880,11 @@ pub fn parse_delete_policy_error( }, "NoSuchEntityException" => crate::error::DeletePolicyError { meta: generic, - kind: crate::error::DeletePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DeletePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2882,11 +2894,11 @@ pub fn parse_delete_policy_error( }, "ServiceFailureException" => crate::error::DeletePolicyError { meta: generic, - kind: crate::error::DeletePolicyErrorKind::ServiceFailureError({ + kind: crate::error::DeletePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -2926,11 +2938,11 @@ pub fn parse_delete_policy_version_error( Err(match error_code { "DeleteConflictException" => crate::error::DeletePolicyVersionError { meta: generic, - kind: crate::error::DeletePolicyVersionErrorKind::DeleteConflictError({ + kind: crate::error::DeletePolicyVersionErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -2940,11 +2952,11 @@ pub fn parse_delete_policy_version_error( }, "InvalidInputException" => crate::error::DeletePolicyVersionError { meta: generic, - kind: crate::error::DeletePolicyVersionErrorKind::InvalidInputError({ + kind: crate::error::DeletePolicyVersionErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -2954,11 +2966,11 @@ pub fn parse_delete_policy_version_error( }, "LimitExceededException" => crate::error::DeletePolicyVersionError { meta: generic, - kind: crate::error::DeletePolicyVersionErrorKind::LimitExceededError({ + kind: crate::error::DeletePolicyVersionErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -2968,11 +2980,11 @@ pub fn parse_delete_policy_version_error( }, "NoSuchEntityException" => crate::error::DeletePolicyVersionError { meta: generic, - kind: crate::error::DeletePolicyVersionErrorKind::NoSuchEntityError({ + kind: crate::error::DeletePolicyVersionErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -2982,11 +2994,11 @@ pub fn parse_delete_policy_version_error( }, "ServiceFailureException" => crate::error::DeletePolicyVersionError { meta: generic, - kind: crate::error::DeletePolicyVersionErrorKind::ServiceFailureError({ + kind: crate::error::DeletePolicyVersionErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3024,27 +3036,26 @@ pub fn parse_delete_role_error( None => return Err(crate::error::DeleteRoleError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::DeleteRoleError { - meta: generic, - kind: crate::error::DeleteRoleErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteRoleError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::DeleteRoleError { + meta: generic, + kind: crate::error::DeleteRoleErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteRoleError::unhandled)?; + output.build() + }), + } + } "DeleteConflictException" => crate::error::DeleteRoleError { meta: generic, - kind: crate::error::DeleteRoleErrorKind::DeleteConflictError({ + kind: crate::error::DeleteRoleErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -3054,11 +3065,11 @@ pub fn parse_delete_role_error( }, "LimitExceededException" => crate::error::DeleteRoleError { meta: generic, - kind: crate::error::DeleteRoleErrorKind::LimitExceededError({ + kind: crate::error::DeleteRoleErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3068,11 +3079,11 @@ pub fn parse_delete_role_error( }, "NoSuchEntityException" => crate::error::DeleteRoleError { meta: generic, - kind: crate::error::DeleteRoleErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3082,11 +3093,11 @@ pub fn parse_delete_role_error( }, "ServiceFailureException" => crate::error::DeleteRoleError { meta: generic, - kind: crate::error::DeleteRoleErrorKind::ServiceFailureError({ + kind: crate::error::DeleteRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3096,11 +3107,11 @@ pub fn parse_delete_role_error( }, "UnmodifiableEntityException" => crate::error::DeleteRoleError { meta: generic, - kind: crate::error::DeleteRoleErrorKind::UnmodifiableEntityError({ + kind: crate::error::DeleteRoleErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3144,11 +3155,11 @@ pub fn parse_delete_role_permissions_boundary_error( Err(match error_code { "NoSuchEntityException" => crate::error::DeleteRolePermissionsBoundaryError { meta: generic, - kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3158,11 +3169,11 @@ pub fn parse_delete_role_permissions_boundary_error( }, "ServiceFailureException" => crate::error::DeleteRolePermissionsBoundaryError { meta: generic, - kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::ServiceFailureError({ + kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3172,17 +3183,21 @@ pub fn parse_delete_role_permissions_boundary_error( }, "UnmodifiableEntityException" => crate::error::DeleteRolePermissionsBoundaryError { meta: generic, - kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteRolePermissionsBoundaryError::unhandled)?; - output.build() - }), + kind: crate::error::DeleteRolePermissionsBoundaryErrorKind::UnmodifiableEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unmodifiable_entity_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRolePermissionsBoundaryError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::DeleteRolePermissionsBoundaryError::generic(generic), }) @@ -3217,11 +3232,11 @@ pub fn parse_delete_role_policy_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteRolePolicyError { meta: generic, - kind: crate::error::DeleteRolePolicyErrorKind::LimitExceededError({ + kind: crate::error::DeleteRolePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3231,11 +3246,11 @@ pub fn parse_delete_role_policy_error( }, "NoSuchEntityException" => crate::error::DeleteRolePolicyError { meta: generic, - kind: crate::error::DeleteRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3245,11 +3260,11 @@ pub fn parse_delete_role_policy_error( }, "ServiceFailureException" => crate::error::DeleteRolePolicyError { meta: generic, - kind: crate::error::DeleteRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::DeleteRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3259,11 +3274,11 @@ pub fn parse_delete_role_policy_error( }, "UnmodifiableEntityException" => crate::error::DeleteRolePolicyError { meta: generic, - kind: crate::error::DeleteRolePolicyErrorKind::UnmodifiableEntityError({ + kind: crate::error::DeleteRolePolicyErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3292,7 +3307,7 @@ pub fn parse_delete_role_policy_response( pub fn parse_delete_saml_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSAMLProviderOutput, + crate::output::DeleteSamlProviderOutput, crate::error::DeleteSAMLProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3304,11 +3319,11 @@ pub fn parse_delete_saml_provider_error( Err(match error_code { "InvalidInputException" => crate::error::DeleteSAMLProviderError { meta: generic, - kind: crate::error::DeleteSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::DeleteSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -3318,11 +3333,11 @@ pub fn parse_delete_saml_provider_error( }, "LimitExceededException" => crate::error::DeleteSAMLProviderError { meta: generic, - kind: crate::error::DeleteSAMLProviderErrorKind::LimitExceededError({ + kind: crate::error::DeleteSAMLProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3332,11 +3347,11 @@ pub fn parse_delete_saml_provider_error( }, "NoSuchEntityException" => crate::error::DeleteSAMLProviderError { meta: generic, - kind: crate::error::DeleteSAMLProviderErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteSAMLProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3346,11 +3361,11 @@ pub fn parse_delete_saml_provider_error( }, "ServiceFailureException" => crate::error::DeleteSAMLProviderError { meta: generic, - kind: crate::error::DeleteSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::DeleteSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3366,7 +3381,7 @@ pub fn parse_delete_saml_provider_error( pub fn parse_delete_saml_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSAMLProviderOutput, + crate::output::DeleteSamlProviderOutput, crate::error::DeleteSAMLProviderError, > { Ok({ @@ -3397,11 +3412,11 @@ pub fn parse_delete_server_certificate_error( Err(match error_code { "DeleteConflictException" => crate::error::DeleteServerCertificateError { meta: generic, - kind: crate::error::DeleteServerCertificateErrorKind::DeleteConflictError({ + kind: crate::error::DeleteServerCertificateErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -3411,11 +3426,11 @@ pub fn parse_delete_server_certificate_error( }, "LimitExceededException" => crate::error::DeleteServerCertificateError { meta: generic, - kind: crate::error::DeleteServerCertificateErrorKind::LimitExceededError({ + kind: crate::error::DeleteServerCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3425,11 +3440,11 @@ pub fn parse_delete_server_certificate_error( }, "NoSuchEntityException" => crate::error::DeleteServerCertificateError { meta: generic, - kind: crate::error::DeleteServerCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteServerCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3439,11 +3454,11 @@ pub fn parse_delete_server_certificate_error( }, "ServiceFailureException" => crate::error::DeleteServerCertificateError { meta: generic, - kind: crate::error::DeleteServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::DeleteServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3490,11 +3505,11 @@ pub fn parse_delete_service_linked_role_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteServiceLinkedRoleError { meta: generic, - kind: crate::error::DeleteServiceLinkedRoleErrorKind::LimitExceededError({ + kind: crate::error::DeleteServiceLinkedRoleErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3504,11 +3519,11 @@ pub fn parse_delete_service_linked_role_error( }, "NoSuchEntityException" => crate::error::DeleteServiceLinkedRoleError { meta: generic, - kind: crate::error::DeleteServiceLinkedRoleErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteServiceLinkedRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3518,11 +3533,11 @@ pub fn parse_delete_service_linked_role_error( }, "ServiceFailureException" => crate::error::DeleteServiceLinkedRoleError { meta: generic, - kind: crate::error::DeleteServiceLinkedRoleErrorKind::ServiceFailureError({ + kind: crate::error::DeleteServiceLinkedRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3570,11 +3585,11 @@ pub fn parse_delete_service_specific_credential_error( Err(match error_code { "NoSuchEntityException" => crate::error::DeleteServiceSpecificCredentialError { meta: generic, - kind: crate::error::DeleteServiceSpecificCredentialErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteServiceSpecificCredentialErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3622,11 +3637,11 @@ pub fn parse_delete_signing_certificate_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteSigningCertificateError { meta: generic, - kind: crate::error::DeleteSigningCertificateErrorKind::LimitExceededError({ + kind: crate::error::DeleteSigningCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3636,11 +3651,11 @@ pub fn parse_delete_signing_certificate_error( }, "NoSuchEntityException" => crate::error::DeleteSigningCertificateError { meta: generic, - kind: crate::error::DeleteSigningCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteSigningCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3650,11 +3665,11 @@ pub fn parse_delete_signing_certificate_error( }, "ServiceFailureException" => crate::error::DeleteSigningCertificateError { meta: generic, - kind: crate::error::DeleteSigningCertificateErrorKind::ServiceFailureError({ + kind: crate::error::DeleteSigningCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3685,7 +3700,7 @@ pub fn parse_delete_signing_certificate_response( pub fn parse_delete_ssh_public_key_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSSHPublicKeyOutput, + crate::output::DeleteSshPublicKeyOutput, crate::error::DeleteSSHPublicKeyError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3697,11 +3712,11 @@ pub fn parse_delete_ssh_public_key_error( Err(match error_code { "NoSuchEntityException" => crate::error::DeleteSSHPublicKeyError { meta: generic, - kind: crate::error::DeleteSSHPublicKeyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteSSHPublicKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3717,7 +3732,7 @@ pub fn parse_delete_ssh_public_key_error( pub fn parse_delete_ssh_public_key_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSSHPublicKeyOutput, + crate::output::DeleteSshPublicKeyOutput, crate::error::DeleteSSHPublicKeyError, > { Ok({ @@ -3739,27 +3754,26 @@ pub fn parse_delete_user_error( None => return Err(crate::error::DeleteUserError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::DeleteUserError { - meta: generic, - kind: crate::error::DeleteUserErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteUserError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::DeleteUserError { + meta: generic, + kind: crate::error::DeleteUserErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteUserError::unhandled)?; + output.build() + }), + } + } "DeleteConflictException" => crate::error::DeleteUserError { meta: generic, - kind: crate::error::DeleteUserErrorKind::DeleteConflictError({ + kind: crate::error::DeleteUserErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -3769,11 +3783,11 @@ pub fn parse_delete_user_error( }, "LimitExceededException" => crate::error::DeleteUserError { meta: generic, - kind: crate::error::DeleteUserErrorKind::LimitExceededError({ + kind: crate::error::DeleteUserErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3783,11 +3797,11 @@ pub fn parse_delete_user_error( }, "NoSuchEntityException" => crate::error::DeleteUserError { meta: generic, - kind: crate::error::DeleteUserErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3797,11 +3811,11 @@ pub fn parse_delete_user_error( }, "ServiceFailureException" => crate::error::DeleteUserError { meta: generic, - kind: crate::error::DeleteUserErrorKind::ServiceFailureError({ + kind: crate::error::DeleteUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3845,11 +3859,11 @@ pub fn parse_delete_user_permissions_boundary_error( Err(match error_code { "NoSuchEntityException" => crate::error::DeleteUserPermissionsBoundaryError { meta: generic, - kind: crate::error::DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteUserPermissionsBoundaryErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3859,11 +3873,11 @@ pub fn parse_delete_user_permissions_boundary_error( }, "ServiceFailureException" => crate::error::DeleteUserPermissionsBoundaryError { meta: generic, - kind: crate::error::DeleteUserPermissionsBoundaryErrorKind::ServiceFailureError({ + kind: crate::error::DeleteUserPermissionsBoundaryErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3904,11 +3918,11 @@ pub fn parse_delete_user_policy_error( Err(match error_code { "LimitExceededException" => crate::error::DeleteUserPolicyError { meta: generic, - kind: crate::error::DeleteUserPolicyErrorKind::LimitExceededError({ + kind: crate::error::DeleteUserPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3918,11 +3932,11 @@ pub fn parse_delete_user_policy_error( }, "NoSuchEntityException" => crate::error::DeleteUserPolicyError { meta: generic, - kind: crate::error::DeleteUserPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteUserPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -3932,11 +3946,11 @@ pub fn parse_delete_user_policy_error( }, "ServiceFailureException" => crate::error::DeleteUserPolicyError { meta: generic, - kind: crate::error::DeleteUserPolicyErrorKind::ServiceFailureError({ + kind: crate::error::DeleteUserPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -3965,7 +3979,7 @@ pub fn parse_delete_user_policy_response( pub fn parse_delete_virtual_mfa_device_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteVirtualMFADeviceOutput, + crate::output::DeleteVirtualMfaDeviceOutput, crate::error::DeleteVirtualMFADeviceError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3981,11 +3995,11 @@ pub fn parse_delete_virtual_mfa_device_error( Err(match error_code { "DeleteConflictException" => crate::error::DeleteVirtualMFADeviceError { meta: generic, - kind: crate::error::DeleteVirtualMFADeviceErrorKind::DeleteConflictError({ + kind: crate::error::DeleteVirtualMFADeviceErrorKind::DeleteConflictException({ #[allow(unused_mut)] - let mut output = crate::error::delete_conflict_error::Builder::default(); + let mut output = crate::error::delete_conflict_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_delete_conflict_error_xml_err( + output = crate::xml_deser::deser_structure_delete_conflict_exception_xml_err( response.body().as_ref(), output, ) @@ -3995,11 +4009,11 @@ pub fn parse_delete_virtual_mfa_device_error( }, "LimitExceededException" => crate::error::DeleteVirtualMFADeviceError { meta: generic, - kind: crate::error::DeleteVirtualMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::DeleteVirtualMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4009,11 +4023,11 @@ pub fn parse_delete_virtual_mfa_device_error( }, "NoSuchEntityException" => crate::error::DeleteVirtualMFADeviceError { meta: generic, - kind: crate::error::DeleteVirtualMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::DeleteVirtualMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4023,11 +4037,11 @@ pub fn parse_delete_virtual_mfa_device_error( }, "ServiceFailureException" => crate::error::DeleteVirtualMFADeviceError { meta: generic, - kind: crate::error::DeleteVirtualMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::DeleteVirtualMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4043,7 +4057,7 @@ pub fn parse_delete_virtual_mfa_device_error( pub fn parse_delete_virtual_mfa_device_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteVirtualMFADeviceOutput, + crate::output::DeleteVirtualMfaDeviceOutput, crate::error::DeleteVirtualMFADeviceError, > { Ok({ @@ -4068,11 +4082,11 @@ pub fn parse_detach_group_policy_error( Err(match error_code { "InvalidInputException" => crate::error::DetachGroupPolicyError { meta: generic, - kind: crate::error::DetachGroupPolicyErrorKind::InvalidInputError({ + kind: crate::error::DetachGroupPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -4082,11 +4096,11 @@ pub fn parse_detach_group_policy_error( }, "LimitExceededException" => crate::error::DetachGroupPolicyError { meta: generic, - kind: crate::error::DetachGroupPolicyErrorKind::LimitExceededError({ + kind: crate::error::DetachGroupPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4096,11 +4110,11 @@ pub fn parse_detach_group_policy_error( }, "NoSuchEntityException" => crate::error::DetachGroupPolicyError { meta: generic, - kind: crate::error::DetachGroupPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DetachGroupPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4110,11 +4124,11 @@ pub fn parse_detach_group_policy_error( }, "ServiceFailureException" => crate::error::DetachGroupPolicyError { meta: generic, - kind: crate::error::DetachGroupPolicyErrorKind::ServiceFailureError({ + kind: crate::error::DetachGroupPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4153,11 +4167,11 @@ pub fn parse_detach_role_policy_error( Err(match error_code { "InvalidInputException" => crate::error::DetachRolePolicyError { meta: generic, - kind: crate::error::DetachRolePolicyErrorKind::InvalidInputError({ + kind: crate::error::DetachRolePolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -4167,11 +4181,11 @@ pub fn parse_detach_role_policy_error( }, "LimitExceededException" => crate::error::DetachRolePolicyError { meta: generic, - kind: crate::error::DetachRolePolicyErrorKind::LimitExceededError({ + kind: crate::error::DetachRolePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4181,11 +4195,11 @@ pub fn parse_detach_role_policy_error( }, "NoSuchEntityException" => crate::error::DetachRolePolicyError { meta: generic, - kind: crate::error::DetachRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DetachRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4195,11 +4209,11 @@ pub fn parse_detach_role_policy_error( }, "ServiceFailureException" => crate::error::DetachRolePolicyError { meta: generic, - kind: crate::error::DetachRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::DetachRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4209,11 +4223,11 @@ pub fn parse_detach_role_policy_error( }, "UnmodifiableEntityException" => crate::error::DetachRolePolicyError { meta: generic, - kind: crate::error::DetachRolePolicyErrorKind::UnmodifiableEntityError({ + kind: crate::error::DetachRolePolicyErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4252,11 +4266,11 @@ pub fn parse_detach_user_policy_error( Err(match error_code { "InvalidInputException" => crate::error::DetachUserPolicyError { meta: generic, - kind: crate::error::DetachUserPolicyErrorKind::InvalidInputError({ + kind: crate::error::DetachUserPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -4266,11 +4280,11 @@ pub fn parse_detach_user_policy_error( }, "LimitExceededException" => crate::error::DetachUserPolicyError { meta: generic, - kind: crate::error::DetachUserPolicyErrorKind::LimitExceededError({ + kind: crate::error::DetachUserPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4280,11 +4294,11 @@ pub fn parse_detach_user_policy_error( }, "NoSuchEntityException" => crate::error::DetachUserPolicyError { meta: generic, - kind: crate::error::DetachUserPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::DetachUserPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4294,11 +4308,11 @@ pub fn parse_detach_user_policy_error( }, "ServiceFailureException" => crate::error::DetachUserPolicyError { meta: generic, - kind: crate::error::DetachUserPolicyErrorKind::ServiceFailureError({ + kind: crate::error::DetachUserPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4326,7 +4340,7 @@ pub fn parse_detach_user_policy_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_enable_mfa_device_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::EnableMFADeviceError::unhandled)?; let error_code = match generic.code() { @@ -4336,11 +4350,11 @@ pub fn parse_enable_mfa_device_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::EnableMFADeviceError { meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::EntityAlreadyExistsError({ + kind: crate::error::EnableMFADeviceErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -4350,35 +4364,33 @@ pub fn parse_enable_mfa_device_error( }, "EntityTemporarilyUnmodifiableException" => crate::error::EnableMFADeviceError { meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableError({ + kind: crate::error::EnableMFADeviceErrorKind::EntityTemporarilyUnmodifiableException({ #[allow(unused_mut)] let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); + crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableMFADeviceError::unhandled)?; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableMFADeviceError::unhandled)?; + output.build() + }), + }, + "InvalidAuthenticationCodeException" => crate::error::EnableMFADeviceError { + meta: generic, + kind: crate::error::EnableMFADeviceErrorKind::InvalidAuthenticationCodeException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_authentication_code_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_authentication_code_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableMFADeviceError::unhandled)?; output.build() }), }, - "InvalidAuthenticationCodeException" => { - crate::error::EnableMFADeviceError { - meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::InvalidAuthenticationCodeError({ - #[allow(unused_mut)] - let mut output = - crate::error::invalid_authentication_code_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_authentication_code_error_xml_err(response.body().as_ref(), output).map_err(crate::error::EnableMFADeviceError::unhandled)?; - output.build() - }), - } - } "LimitExceededException" => crate::error::EnableMFADeviceError { meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::EnableMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4388,11 +4400,11 @@ pub fn parse_enable_mfa_device_error( }, "NoSuchEntityException" => crate::error::EnableMFADeviceError { meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::EnableMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4402,11 +4414,11 @@ pub fn parse_enable_mfa_device_error( }, "ServiceFailureException" => crate::error::EnableMFADeviceError { meta: generic, - kind: crate::error::EnableMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::EnableMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4421,7 +4433,7 @@ pub fn parse_enable_mfa_device_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_enable_mfa_device_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::enable_mfa_device_output::Builder::default(); @@ -4450,11 +4462,11 @@ pub fn parse_generate_credential_report_error( Err(match error_code { "LimitExceededException" => crate::error::GenerateCredentialReportError { meta: generic, - kind: crate::error::GenerateCredentialReportErrorKind::LimitExceededError({ + kind: crate::error::GenerateCredentialReportErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -4464,11 +4476,11 @@ pub fn parse_generate_credential_report_error( }, "ServiceFailureException" => crate::error::GenerateCredentialReportError { meta: generic, - kind: crate::error::GenerateCredentialReportErrorKind::ServiceFailureError({ + kind: crate::error::GenerateCredentialReportErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4516,10 +4528,10 @@ pub fn parse_generate_organizations_access_report_error( } }; Err(match error_code { - "ReportGenerationLimitExceededException" => crate::error::GenerateOrganizationsAccessReportError { meta: generic, kind: crate::error::GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededError({ - #[allow(unused_mut)]let mut output = crate::error::report_generation_limit_exceeded_error::Builder::default(); + "ReportGenerationLimitExceededException" => crate::error::GenerateOrganizationsAccessReportError { meta: generic, kind: crate::error::GenerateOrganizationsAccessReportErrorKind::ReportGenerationLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::report_generation_limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_report_generation_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::GenerateOrganizationsAccessReportError::unhandled)?; + output = crate::xml_deser::deser_structure_report_generation_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GenerateOrganizationsAccessReportError::unhandled)?; output.build() })}, _ => crate::error::GenerateOrganizationsAccessReportError::generic(generic) @@ -4563,34 +4575,38 @@ pub fn parse_generate_service_last_accessed_details_error( } }; Err(match error_code { - "InvalidInputException" => crate::error::GenerateServiceLastAccessedDetailsError { - meta: generic, - kind: crate::error::GenerateServiceLastAccessedDetailsErrorKind::InvalidInputError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GenerateServiceLastAccessedDetailsError::unhandled)?; - output.build() - }), - }, - "NoSuchEntityException" => crate::error::GenerateServiceLastAccessedDetailsError { - meta: generic, - kind: crate::error::GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GenerateServiceLastAccessedDetailsError::unhandled)?; - output.build() - }), - }, + "InvalidInputException" => { + crate::error::GenerateServiceLastAccessedDetailsError { + meta: generic, + kind: + crate::error::GenerateServiceLastAccessedDetailsErrorKind::InvalidInputException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GenerateServiceLastAccessedDetailsError::unhandled)?; + output.build() + }, + ), + } + } + "NoSuchEntityException" => { + crate::error::GenerateServiceLastAccessedDetailsError { + meta: generic, + kind: + crate::error::GenerateServiceLastAccessedDetailsErrorKind::NoSuchEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GenerateServiceLastAccessedDetailsError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::GenerateServiceLastAccessedDetailsError::generic(generic), }) } @@ -4632,11 +4648,11 @@ pub fn parse_get_access_key_last_used_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetAccessKeyLastUsedError { meta: generic, - kind: crate::error::GetAccessKeyLastUsedErrorKind::NoSuchEntityError({ + kind: crate::error::GetAccessKeyLastUsedErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4684,11 +4700,11 @@ pub fn parse_get_account_authorization_details_error( Err(match error_code { "ServiceFailureException" => crate::error::GetAccountAuthorizationDetailsError { meta: generic, - kind: crate::error::GetAccountAuthorizationDetailsErrorKind::ServiceFailureError({ + kind: crate::error::GetAccountAuthorizationDetailsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4741,11 +4757,11 @@ pub fn parse_get_account_password_policy_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetAccountPasswordPolicyError { meta: generic, - kind: crate::error::GetAccountPasswordPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetAccountPasswordPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4755,11 +4771,11 @@ pub fn parse_get_account_password_policy_error( }, "ServiceFailureException" => crate::error::GetAccountPasswordPolicyError { meta: generic, - kind: crate::error::GetAccountPasswordPolicyErrorKind::ServiceFailureError({ + kind: crate::error::GetAccountPasswordPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4805,11 +4821,11 @@ pub fn parse_get_account_summary_error( Err(match error_code { "ServiceFailureException" => crate::error::GetAccountSummaryError { meta: generic, - kind: crate::error::GetAccountSummaryErrorKind::ServiceFailureError({ + kind: crate::error::GetAccountSummaryErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -4857,11 +4873,11 @@ pub fn parse_get_context_keys_for_custom_policy_error( Err(match error_code { "InvalidInputException" => crate::error::GetContextKeysForCustomPolicyError { meta: generic, - kind: crate::error::GetContextKeysForCustomPolicyErrorKind::InvalidInputError({ + kind: crate::error::GetContextKeysForCustomPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -4912,11 +4928,11 @@ pub fn parse_get_context_keys_for_principal_policy_error( Err(match error_code { "InvalidInputException" => crate::error::GetContextKeysForPrincipalPolicyError { meta: generic, - kind: crate::error::GetContextKeysForPrincipalPolicyErrorKind::InvalidInputError({ + kind: crate::error::GetContextKeysForPrincipalPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -4926,11 +4942,11 @@ pub fn parse_get_context_keys_for_principal_policy_error( }, "NoSuchEntityException" => crate::error::GetContextKeysForPrincipalPolicyError { meta: generic, - kind: crate::error::GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetContextKeysForPrincipalPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -4977,55 +4993,52 @@ pub fn parse_get_credential_report_error( None => return Err(crate::error::GetCredentialReportError::unhandled(generic)), }; Err(match error_code { - "CredentialReportExpiredException" => crate::error::GetCredentialReportError { - meta: generic, - kind: crate::error::GetCredentialReportErrorKind::CredentialReportExpiredError({ - #[allow(unused_mut)] - let mut output = crate::error::credential_report_expired_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_credential_report_expired_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetCredentialReportError::unhandled)?; - output.build() - }), - }, - "CredentialReportNotPresentException" => { + "CredentialReportExpiredException" => { crate::error::GetCredentialReportError { meta: generic, - kind: crate::error::GetCredentialReportErrorKind::CredentialReportNotPresentError( + kind: crate::error::GetCredentialReportErrorKind::CredentialReportExpiredException( { #[allow(unused_mut)] let mut output = - crate::error::credential_report_not_present_error::Builder::default(); + crate::error::credential_report_expired_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_credential_report_not_present_error_xml_err(response.body().as_ref(), output).map_err(crate::error::GetCredentialReportError::unhandled)?; + output = crate::xml_deser::deser_structure_credential_report_expired_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetCredentialReportError::unhandled)?; output.build() }, ), } } - "CredentialReportNotReadyException" => { - crate::error::GetCredentialReportError { - meta: generic, - kind: crate::error::GetCredentialReportErrorKind::CredentialReportNotReadyError({ + "CredentialReportNotPresentException" => crate::error::GetCredentialReportError { + meta: generic, + kind: crate::error::GetCredentialReportErrorKind::CredentialReportNotPresentException( + { #[allow(unused_mut)] let mut output = - crate::error::credential_report_not_ready_error::Builder::default(); + crate::error::credential_report_not_present_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_credential_report_not_ready_error_xml_err(response.body().as_ref(), output).map_err(crate::error::GetCredentialReportError::unhandled)?; + output = crate::xml_deser::deser_structure_credential_report_not_present_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetCredentialReportError::unhandled)?; output.build() - }), - } - } + }, + ), + }, + "CredentialReportNotReadyException" => crate::error::GetCredentialReportError { + meta: generic, + kind: crate::error::GetCredentialReportErrorKind::CredentialReportNotReadyException({ + #[allow(unused_mut)] + let mut output = + crate::error::credential_report_not_ready_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_credential_report_not_ready_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetCredentialReportError::unhandled)?; + output.build() + }), + }, "ServiceFailureException" => crate::error::GetCredentialReportError { meta: generic, - kind: crate::error::GetCredentialReportErrorKind::ServiceFailureError({ + kind: crate::error::GetCredentialReportErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5070,11 +5083,11 @@ pub fn parse_get_group_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetGroupError { meta: generic, - kind: crate::error::GetGroupErrorKind::NoSuchEntityError({ + kind: crate::error::GetGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5084,11 +5097,11 @@ pub fn parse_get_group_error( }, "ServiceFailureException" => crate::error::GetGroupError { meta: generic, - kind: crate::error::GetGroupErrorKind::ServiceFailureError({ + kind: crate::error::GetGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5127,11 +5140,11 @@ pub fn parse_get_group_policy_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetGroupPolicyError { meta: generic, - kind: crate::error::GetGroupPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetGroupPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5141,11 +5154,11 @@ pub fn parse_get_group_policy_error( }, "ServiceFailureException" => crate::error::GetGroupPolicyError { meta: generic, - kind: crate::error::GetGroupPolicyErrorKind::ServiceFailureError({ + kind: crate::error::GetGroupPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5188,11 +5201,11 @@ pub fn parse_get_instance_profile_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetInstanceProfileError { meta: generic, - kind: crate::error::GetInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::GetInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5202,11 +5215,11 @@ pub fn parse_get_instance_profile_error( }, "ServiceFailureException" => crate::error::GetInstanceProfileError { meta: generic, - kind: crate::error::GetInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::GetInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5251,11 +5264,11 @@ pub fn parse_get_login_profile_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetLoginProfileError { meta: generic, - kind: crate::error::GetLoginProfileErrorKind::NoSuchEntityError({ + kind: crate::error::GetLoginProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5265,11 +5278,11 @@ pub fn parse_get_login_profile_error( }, "ServiceFailureException" => crate::error::GetLoginProfileError { meta: generic, - kind: crate::error::GetLoginProfileErrorKind::ServiceFailureError({ + kind: crate::error::GetLoginProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5300,7 +5313,7 @@ pub fn parse_get_login_profile_response( pub fn parse_get_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::GetOpenIDConnectProviderOutput, + crate::output::GetOpenIdConnectProviderOutput, crate::error::GetOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5316,11 +5329,11 @@ pub fn parse_get_open_id_connect_provider_error( Err(match error_code { "InvalidInputException" => crate::error::GetOpenIDConnectProviderError { meta: generic, - kind: crate::error::GetOpenIDConnectProviderErrorKind::InvalidInputError({ + kind: crate::error::GetOpenIDConnectProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -5330,11 +5343,11 @@ pub fn parse_get_open_id_connect_provider_error( }, "NoSuchEntityException" => crate::error::GetOpenIDConnectProviderError { meta: generic, - kind: crate::error::GetOpenIDConnectProviderErrorKind::NoSuchEntityError({ + kind: crate::error::GetOpenIDConnectProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5344,11 +5357,11 @@ pub fn parse_get_open_id_connect_provider_error( }, "ServiceFailureException" => crate::error::GetOpenIDConnectProviderError { meta: generic, - kind: crate::error::GetOpenIDConnectProviderErrorKind::ServiceFailureError({ + kind: crate::error::GetOpenIDConnectProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5364,7 +5377,7 @@ pub fn parse_get_open_id_connect_provider_error( pub fn parse_get_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::GetOpenIDConnectProviderOutput, + crate::output::GetOpenIdConnectProviderOutput, crate::error::GetOpenIDConnectProviderError, > { Ok({ @@ -5400,11 +5413,11 @@ pub fn parse_get_organizations_access_report_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetOrganizationsAccessReportError { meta: generic, - kind: crate::error::GetOrganizationsAccessReportErrorKind::NoSuchEntityError({ + kind: crate::error::GetOrganizationsAccessReportErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5449,11 +5462,11 @@ pub fn parse_get_policy_error( Err(match error_code { "InvalidInputException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::InvalidInputError({ + kind: crate::error::GetPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -5463,11 +5476,11 @@ pub fn parse_get_policy_error( }, "NoSuchEntityException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5477,11 +5490,11 @@ pub fn parse_get_policy_error( }, "ServiceFailureException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::ServiceFailureError({ + kind: crate::error::GetPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5521,11 +5534,11 @@ pub fn parse_get_policy_version_error( Err(match error_code { "InvalidInputException" => crate::error::GetPolicyVersionError { meta: generic, - kind: crate::error::GetPolicyVersionErrorKind::InvalidInputError({ + kind: crate::error::GetPolicyVersionErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -5535,11 +5548,11 @@ pub fn parse_get_policy_version_error( }, "NoSuchEntityException" => crate::error::GetPolicyVersionError { meta: generic, - kind: crate::error::GetPolicyVersionErrorKind::NoSuchEntityError({ + kind: crate::error::GetPolicyVersionErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5549,11 +5562,11 @@ pub fn parse_get_policy_version_error( }, "ServiceFailureException" => crate::error::GetPolicyVersionError { meta: generic, - kind: crate::error::GetPolicyVersionErrorKind::ServiceFailureError({ + kind: crate::error::GetPolicyVersionErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5594,11 +5607,11 @@ pub fn parse_get_role_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetRoleError { meta: generic, - kind: crate::error::GetRoleErrorKind::NoSuchEntityError({ + kind: crate::error::GetRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5608,11 +5621,11 @@ pub fn parse_get_role_error( }, "ServiceFailureException" => crate::error::GetRoleError { meta: generic, - kind: crate::error::GetRoleErrorKind::ServiceFailureError({ + kind: crate::error::GetRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5651,11 +5664,11 @@ pub fn parse_get_role_policy_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetRolePolicyError { meta: generic, - kind: crate::error::GetRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5665,11 +5678,11 @@ pub fn parse_get_role_policy_error( }, "ServiceFailureException" => crate::error::GetRolePolicyError { meta: generic, - kind: crate::error::GetRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::GetRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5699,7 +5712,7 @@ pub fn parse_get_role_policy_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_saml_provider_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::GetSAMLProviderError::unhandled)?; let error_code = match generic.code() { @@ -5709,11 +5722,11 @@ pub fn parse_get_saml_provider_error( Err(match error_code { "InvalidInputException" => crate::error::GetSAMLProviderError { meta: generic, - kind: crate::error::GetSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::GetSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -5723,11 +5736,11 @@ pub fn parse_get_saml_provider_error( }, "NoSuchEntityException" => crate::error::GetSAMLProviderError { meta: generic, - kind: crate::error::GetSAMLProviderErrorKind::NoSuchEntityError({ + kind: crate::error::GetSAMLProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5737,11 +5750,11 @@ pub fn parse_get_saml_provider_error( }, "ServiceFailureException" => crate::error::GetSAMLProviderError { meta: generic, - kind: crate::error::GetSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::GetSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5756,7 +5769,7 @@ pub fn parse_get_saml_provider_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_saml_provider_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_saml_provider_output::Builder::default(); @@ -5784,11 +5797,11 @@ pub fn parse_get_server_certificate_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetServerCertificateError { meta: generic, - kind: crate::error::GetServerCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::GetServerCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5798,11 +5811,11 @@ pub fn parse_get_server_certificate_error( }, "ServiceFailureException" => crate::error::GetServerCertificateError { meta: generic, - kind: crate::error::GetServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::GetServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -5854,11 +5867,11 @@ pub fn parse_get_service_last_accessed_details_error( Err(match error_code { "InvalidInputException" => crate::error::GetServiceLastAccessedDetailsError { meta: generic, - kind: crate::error::GetServiceLastAccessedDetailsErrorKind::InvalidInputError({ + kind: crate::error::GetServiceLastAccessedDetailsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -5868,11 +5881,11 @@ pub fn parse_get_service_last_accessed_details_error( }, "NoSuchEntityException" => crate::error::GetServiceLastAccessedDetailsError { meta: generic, - kind: crate::error::GetServiceLastAccessedDetailsErrorKind::NoSuchEntityError({ + kind: crate::error::GetServiceLastAccessedDetailsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -5923,45 +5936,19 @@ pub fn parse_get_service_last_accessed_details_with_entities_error( } }; Err(match error_code { - "InvalidInputException" => crate::error::GetServiceLastAccessedDetailsWithEntitiesError { - meta: generic, - kind: - crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputError( - { - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::GetServiceLastAccessedDetailsWithEntitiesError::unhandled, - )?; - output.build() - }, - ), - }, - "NoSuchEntityException" => crate::error::GetServiceLastAccessedDetailsWithEntitiesError { - meta: generic, - kind: - crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityError( - { - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::GetServiceLastAccessedDetailsWithEntitiesError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::GetServiceLastAccessedDetailsWithEntitiesError::generic(generic), + "InvalidInputException" => crate::error::GetServiceLastAccessedDetailsWithEntitiesError { meta: generic, kind: crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::InvalidInputException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetServiceLastAccessedDetailsWithEntitiesError::unhandled)?; + output.build() + })}, + "NoSuchEntityException" => crate::error::GetServiceLastAccessedDetailsWithEntitiesError { meta: generic, kind: crate::error::GetServiceLastAccessedDetailsWithEntitiesErrorKind::NoSuchEntityException({ + #[allow(unused_mut)]let mut output = crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetServiceLastAccessedDetailsWithEntitiesError::unhandled)?; + output.build() + })}, + _ => crate::error::GetServiceLastAccessedDetailsWithEntitiesError::generic(generic) }) } @@ -6001,49 +5988,60 @@ pub fn parse_get_service_linked_role_deletion_status_error( None => { return Err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled(generic)) } - }; - Err(match error_code { - "InvalidInputException" => crate::error::GetServiceLinkedRoleDeletionStatusError { - meta: generic, - kind: crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled)?; - output.build() - }), - }, - "NoSuchEntityException" => crate::error::GetServiceLinkedRoleDeletionStatusError { - meta: generic, - kind: crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled)?; - output.build() - }), - }, + }; + Err(match error_code { + "InvalidInputException" => { + crate::error::GetServiceLinkedRoleDeletionStatusError { + meta: generic, + kind: + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::InvalidInputException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled)?; + output.build() + }, + ), + } + } + "NoSuchEntityException" => { + crate::error::GetServiceLinkedRoleDeletionStatusError { + meta: generic, + kind: + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::NoSuchEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::GetServiceLinkedRoleDeletionStatusError { meta: generic, - kind: crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureError({ - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled)?; - output.build() - }), + kind: + crate::error::GetServiceLinkedRoleDeletionStatusErrorKind::ServiceFailureException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_failure_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_service_failure_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::GetServiceLinkedRoleDeletionStatusError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::GetServiceLinkedRoleDeletionStatusError::generic(generic), }) @@ -6073,7 +6071,7 @@ pub fn parse_get_service_linked_role_deletion_status_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_ssh_public_key_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::GetSSHPublicKeyError::unhandled)?; let error_code = match generic.code() { @@ -6083,11 +6081,11 @@ pub fn parse_get_ssh_public_key_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetSSHPublicKeyError { meta: generic, - kind: crate::error::GetSSHPublicKeyErrorKind::NoSuchEntityError({ + kind: crate::error::GetSSHPublicKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6097,12 +6095,12 @@ pub fn parse_get_ssh_public_key_error( }, "UnrecognizedPublicKeyEncodingException" => crate::error::GetSSHPublicKeyError { meta: generic, - kind: crate::error::GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError({ + kind: crate::error::GetSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException({ #[allow(unused_mut)] let mut output = - crate::error::unrecognized_public_key_encoding_error::Builder::default(); + crate::error::unrecognized_public_key_encoding_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unrecognized_public_key_encoding_error_xml_err(response.body().as_ref(), output).map_err(crate::error::GetSSHPublicKeyError::unhandled)?; + output = crate::xml_deser::deser_structure_unrecognized_public_key_encoding_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetSSHPublicKeyError::unhandled)?; output.build() }), }, @@ -6113,7 +6111,7 @@ pub fn parse_get_ssh_public_key_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_ssh_public_key_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_ssh_public_key_output::Builder::default(); @@ -6138,11 +6136,11 @@ pub fn parse_get_user_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetUserError { meta: generic, - kind: crate::error::GetUserErrorKind::NoSuchEntityError({ + kind: crate::error::GetUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6152,11 +6150,11 @@ pub fn parse_get_user_error( }, "ServiceFailureException" => crate::error::GetUserError { meta: generic, - kind: crate::error::GetUserErrorKind::ServiceFailureError({ + kind: crate::error::GetUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6195,11 +6193,11 @@ pub fn parse_get_user_policy_error( Err(match error_code { "NoSuchEntityException" => crate::error::GetUserPolicyError { meta: generic, - kind: crate::error::GetUserPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::GetUserPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6209,11 +6207,11 @@ pub fn parse_get_user_policy_error( }, "ServiceFailureException" => crate::error::GetUserPolicyError { meta: generic, - kind: crate::error::GetUserPolicyErrorKind::ServiceFailureError({ + kind: crate::error::GetUserPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6253,11 +6251,11 @@ pub fn parse_list_access_keys_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListAccessKeysError { meta: generic, - kind: crate::error::ListAccessKeysErrorKind::NoSuchEntityError({ + kind: crate::error::ListAccessKeysErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6267,11 +6265,11 @@ pub fn parse_list_access_keys_error( }, "ServiceFailureException" => crate::error::ListAccessKeysError { meta: generic, - kind: crate::error::ListAccessKeysErrorKind::ServiceFailureError({ + kind: crate::error::ListAccessKeysErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6314,11 +6312,11 @@ pub fn parse_list_account_aliases_error( Err(match error_code { "ServiceFailureException" => crate::error::ListAccountAliasesError { meta: generic, - kind: crate::error::ListAccountAliasesErrorKind::ServiceFailureError({ + kind: crate::error::ListAccountAliasesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6370,11 +6368,11 @@ pub fn parse_list_attached_group_policies_error( Err(match error_code { "InvalidInputException" => crate::error::ListAttachedGroupPoliciesError { meta: generic, - kind: crate::error::ListAttachedGroupPoliciesErrorKind::InvalidInputError({ + kind: crate::error::ListAttachedGroupPoliciesErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -6384,11 +6382,11 @@ pub fn parse_list_attached_group_policies_error( }, "NoSuchEntityException" => crate::error::ListAttachedGroupPoliciesError { meta: generic, - kind: crate::error::ListAttachedGroupPoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListAttachedGroupPoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6398,11 +6396,11 @@ pub fn parse_list_attached_group_policies_error( }, "ServiceFailureException" => crate::error::ListAttachedGroupPoliciesError { meta: generic, - kind: crate::error::ListAttachedGroupPoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListAttachedGroupPoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6454,11 +6452,11 @@ pub fn parse_list_attached_role_policies_error( Err(match error_code { "InvalidInputException" => crate::error::ListAttachedRolePoliciesError { meta: generic, - kind: crate::error::ListAttachedRolePoliciesErrorKind::InvalidInputError({ + kind: crate::error::ListAttachedRolePoliciesErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -6468,11 +6466,11 @@ pub fn parse_list_attached_role_policies_error( }, "NoSuchEntityException" => crate::error::ListAttachedRolePoliciesError { meta: generic, - kind: crate::error::ListAttachedRolePoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListAttachedRolePoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6482,11 +6480,11 @@ pub fn parse_list_attached_role_policies_error( }, "ServiceFailureException" => crate::error::ListAttachedRolePoliciesError { meta: generic, - kind: crate::error::ListAttachedRolePoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListAttachedRolePoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6538,11 +6536,11 @@ pub fn parse_list_attached_user_policies_error( Err(match error_code { "InvalidInputException" => crate::error::ListAttachedUserPoliciesError { meta: generic, - kind: crate::error::ListAttachedUserPoliciesErrorKind::InvalidInputError({ + kind: crate::error::ListAttachedUserPoliciesErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -6552,11 +6550,11 @@ pub fn parse_list_attached_user_policies_error( }, "NoSuchEntityException" => crate::error::ListAttachedUserPoliciesError { meta: generic, - kind: crate::error::ListAttachedUserPoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListAttachedUserPoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6566,11 +6564,11 @@ pub fn parse_list_attached_user_policies_error( }, "ServiceFailureException" => crate::error::ListAttachedUserPoliciesError { meta: generic, - kind: crate::error::ListAttachedUserPoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListAttachedUserPoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6618,11 +6616,11 @@ pub fn parse_list_entities_for_policy_error( Err(match error_code { "InvalidInputException" => crate::error::ListEntitiesForPolicyError { meta: generic, - kind: crate::error::ListEntitiesForPolicyErrorKind::InvalidInputError({ + kind: crate::error::ListEntitiesForPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -6632,11 +6630,11 @@ pub fn parse_list_entities_for_policy_error( }, "NoSuchEntityException" => crate::error::ListEntitiesForPolicyError { meta: generic, - kind: crate::error::ListEntitiesForPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::ListEntitiesForPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6646,11 +6644,11 @@ pub fn parse_list_entities_for_policy_error( }, "ServiceFailureException" => crate::error::ListEntitiesForPolicyError { meta: generic, - kind: crate::error::ListEntitiesForPolicyErrorKind::ServiceFailureError({ + kind: crate::error::ListEntitiesForPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6696,11 +6694,11 @@ pub fn parse_list_group_policies_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListGroupPoliciesError { meta: generic, - kind: crate::error::ListGroupPoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListGroupPoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6710,11 +6708,11 @@ pub fn parse_list_group_policies_error( }, "ServiceFailureException" => crate::error::ListGroupPoliciesError { meta: generic, - kind: crate::error::ListGroupPoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListGroupPoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6755,11 +6753,11 @@ pub fn parse_list_groups_error( Err(match error_code { "ServiceFailureException" => crate::error::ListGroupsError { meta: generic, - kind: crate::error::ListGroupsErrorKind::ServiceFailureError({ + kind: crate::error::ListGroupsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6799,11 +6797,11 @@ pub fn parse_list_groups_for_user_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListGroupsForUserError { meta: generic, - kind: crate::error::ListGroupsForUserErrorKind::NoSuchEntityError({ + kind: crate::error::ListGroupsForUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6813,11 +6811,11 @@ pub fn parse_list_groups_for_user_error( }, "ServiceFailureException" => crate::error::ListGroupsForUserError { meta: generic, - kind: crate::error::ListGroupsForUserErrorKind::ServiceFailureError({ + kind: crate::error::ListGroupsForUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6863,11 +6861,11 @@ pub fn parse_list_instance_profiles_error( Err(match error_code { "ServiceFailureException" => crate::error::ListInstanceProfilesError { meta: generic, - kind: crate::error::ListInstanceProfilesErrorKind::ServiceFailureError({ + kind: crate::error::ListInstanceProfilesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6919,11 +6917,11 @@ pub fn parse_list_instance_profiles_for_role_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListInstanceProfilesForRoleError { meta: generic, - kind: crate::error::ListInstanceProfilesForRoleErrorKind::NoSuchEntityError({ + kind: crate::error::ListInstanceProfilesForRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -6933,11 +6931,11 @@ pub fn parse_list_instance_profiles_for_role_error( }, "ServiceFailureException" => crate::error::ListInstanceProfilesForRoleError { meta: generic, - kind: crate::error::ListInstanceProfilesForRoleErrorKind::ServiceFailureError({ + kind: crate::error::ListInstanceProfilesForRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -6989,11 +6987,11 @@ pub fn parse_list_instance_profile_tags_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListInstanceProfileTagsError { meta: generic, - kind: crate::error::ListInstanceProfileTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListInstanceProfileTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7003,11 +7001,11 @@ pub fn parse_list_instance_profile_tags_error( }, "ServiceFailureException" => crate::error::ListInstanceProfileTagsError { meta: generic, - kind: crate::error::ListInstanceProfileTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListInstanceProfileTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7042,7 +7040,7 @@ pub fn parse_list_instance_profile_tags_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_mfa_devices_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ListMFADevicesError::unhandled)?; let error_code = match generic.code() { @@ -7052,11 +7050,11 @@ pub fn parse_list_mfa_devices_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListMFADevicesError { meta: generic, - kind: crate::error::ListMFADevicesErrorKind::NoSuchEntityError({ + kind: crate::error::ListMFADevicesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7066,11 +7064,11 @@ pub fn parse_list_mfa_devices_error( }, "ServiceFailureException" => crate::error::ListMFADevicesError { meta: generic, - kind: crate::error::ListMFADevicesErrorKind::ServiceFailureError({ + kind: crate::error::ListMFADevicesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7085,7 +7083,7 @@ pub fn parse_list_mfa_devices_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_mfa_devices_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_mfa_devices_output::Builder::default(); @@ -7100,7 +7098,7 @@ pub fn parse_list_mfa_devices_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_mfa_device_tags_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ListMFADeviceTagsError::unhandled)?; @@ -7111,11 +7109,11 @@ pub fn parse_list_mfa_device_tags_error( Err(match error_code { "InvalidInputException" => crate::error::ListMFADeviceTagsError { meta: generic, - kind: crate::error::ListMFADeviceTagsErrorKind::InvalidInputError({ + kind: crate::error::ListMFADeviceTagsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -7125,11 +7123,11 @@ pub fn parse_list_mfa_device_tags_error( }, "NoSuchEntityException" => crate::error::ListMFADeviceTagsError { meta: generic, - kind: crate::error::ListMFADeviceTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListMFADeviceTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7139,11 +7137,11 @@ pub fn parse_list_mfa_device_tags_error( }, "ServiceFailureException" => crate::error::ListMFADeviceTagsError { meta: generic, - kind: crate::error::ListMFADeviceTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListMFADeviceTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7158,7 +7156,7 @@ pub fn parse_list_mfa_device_tags_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_mfa_device_tags_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -7177,7 +7175,7 @@ pub fn parse_list_mfa_device_tags_response( pub fn parse_list_open_id_connect_providers_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListOpenIDConnectProvidersOutput, + crate::output::ListOpenIdConnectProvidersOutput, crate::error::ListOpenIDConnectProvidersError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7193,11 +7191,11 @@ pub fn parse_list_open_id_connect_providers_error( Err(match error_code { "ServiceFailureException" => crate::error::ListOpenIDConnectProvidersError { meta: generic, - kind: crate::error::ListOpenIDConnectProvidersErrorKind::ServiceFailureError({ + kind: crate::error::ListOpenIDConnectProvidersErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7213,7 +7211,7 @@ pub fn parse_list_open_id_connect_providers_error( pub fn parse_list_open_id_connect_providers_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListOpenIDConnectProvidersOutput, + crate::output::ListOpenIdConnectProvidersOutput, crate::error::ListOpenIDConnectProvidersError, > { Ok({ @@ -7233,7 +7231,7 @@ pub fn parse_list_open_id_connect_providers_response( pub fn parse_list_open_id_connect_provider_tags_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListOpenIDConnectProviderTagsOutput, + crate::output::ListOpenIdConnectProviderTagsOutput, crate::error::ListOpenIDConnectProviderTagsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7249,11 +7247,11 @@ pub fn parse_list_open_id_connect_provider_tags_error( Err(match error_code { "InvalidInputException" => crate::error::ListOpenIDConnectProviderTagsError { meta: generic, - kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::InvalidInputError({ + kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -7263,11 +7261,11 @@ pub fn parse_list_open_id_connect_provider_tags_error( }, "NoSuchEntityException" => crate::error::ListOpenIDConnectProviderTagsError { meta: generic, - kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7277,11 +7275,11 @@ pub fn parse_list_open_id_connect_provider_tags_error( }, "ServiceFailureException" => crate::error::ListOpenIDConnectProviderTagsError { meta: generic, - kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListOpenIDConnectProviderTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7297,7 +7295,7 @@ pub fn parse_list_open_id_connect_provider_tags_error( pub fn parse_list_open_id_connect_provider_tags_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListOpenIDConnectProviderTagsOutput, + crate::output::ListOpenIdConnectProviderTagsOutput, crate::error::ListOpenIDConnectProviderTagsError, > { Ok({ @@ -7327,11 +7325,11 @@ pub fn parse_list_policies_error( Err(match error_code { "ServiceFailureException" => crate::error::ListPoliciesError { meta: generic, - kind: crate::error::ListPoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListPoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7375,31 +7373,35 @@ pub fn parse_list_policies_granting_service_access_error( Err(match error_code { "InvalidInputException" => crate::error::ListPoliciesGrantingServiceAccessError { meta: generic, - kind: crate::error::ListPoliciesGrantingServiceAccessErrorKind::InvalidInputError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListPoliciesGrantingServiceAccessError::unhandled)?; - output.build() - }), + kind: crate::error::ListPoliciesGrantingServiceAccessErrorKind::InvalidInputException( + { + #[allow(unused_mut)] + let mut output = crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPoliciesGrantingServiceAccessError::unhandled)?; + output.build() + }, + ), }, "NoSuchEntityException" => crate::error::ListPoliciesGrantingServiceAccessError { meta: generic, - kind: crate::error::ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListPoliciesGrantingServiceAccessError::unhandled)?; - output.build() - }), + kind: crate::error::ListPoliciesGrantingServiceAccessErrorKind::NoSuchEntityException( + { + #[allow(unused_mut)] + let mut output = crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPoliciesGrantingServiceAccessError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::ListPoliciesGrantingServiceAccessError::generic(generic), }) @@ -7439,11 +7441,11 @@ pub fn parse_list_policy_tags_error( Err(match error_code { "InvalidInputException" => crate::error::ListPolicyTagsError { meta: generic, - kind: crate::error::ListPolicyTagsErrorKind::InvalidInputError({ + kind: crate::error::ListPolicyTagsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -7453,11 +7455,11 @@ pub fn parse_list_policy_tags_error( }, "NoSuchEntityException" => crate::error::ListPolicyTagsError { meta: generic, - kind: crate::error::ListPolicyTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListPolicyTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7467,11 +7469,11 @@ pub fn parse_list_policy_tags_error( }, "ServiceFailureException" => crate::error::ListPolicyTagsError { meta: generic, - kind: crate::error::ListPolicyTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListPolicyTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7514,11 +7516,11 @@ pub fn parse_list_policy_versions_error( Err(match error_code { "InvalidInputException" => crate::error::ListPolicyVersionsError { meta: generic, - kind: crate::error::ListPolicyVersionsErrorKind::InvalidInputError({ + kind: crate::error::ListPolicyVersionsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -7528,11 +7530,11 @@ pub fn parse_list_policy_versions_error( }, "NoSuchEntityException" => crate::error::ListPolicyVersionsError { meta: generic, - kind: crate::error::ListPolicyVersionsErrorKind::NoSuchEntityError({ + kind: crate::error::ListPolicyVersionsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7542,11 +7544,11 @@ pub fn parse_list_policy_versions_error( }, "ServiceFailureException" => crate::error::ListPolicyVersionsError { meta: generic, - kind: crate::error::ListPolicyVersionsErrorKind::ServiceFailureError({ + kind: crate::error::ListPolicyVersionsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7592,11 +7594,11 @@ pub fn parse_list_role_policies_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListRolePoliciesError { meta: generic, - kind: crate::error::ListRolePoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListRolePoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7606,11 +7608,11 @@ pub fn parse_list_role_policies_error( }, "ServiceFailureException" => crate::error::ListRolePoliciesError { meta: generic, - kind: crate::error::ListRolePoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListRolePoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7651,11 +7653,11 @@ pub fn parse_list_roles_error( Err(match error_code { "ServiceFailureException" => crate::error::ListRolesError { meta: generic, - kind: crate::error::ListRolesErrorKind::ServiceFailureError({ + kind: crate::error::ListRolesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7694,11 +7696,11 @@ pub fn parse_list_role_tags_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListRoleTagsError { meta: generic, - kind: crate::error::ListRoleTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListRoleTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7708,11 +7710,11 @@ pub fn parse_list_role_tags_error( }, "ServiceFailureException" => crate::error::ListRoleTagsError { meta: generic, - kind: crate::error::ListRoleTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListRoleTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7741,7 +7743,7 @@ pub fn parse_list_role_tags_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_saml_providers_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ListSAMLProvidersError::unhandled)?; @@ -7752,11 +7754,11 @@ pub fn parse_list_saml_providers_error( Err(match error_code { "ServiceFailureException" => crate::error::ListSAMLProvidersError { meta: generic, - kind: crate::error::ListSAMLProvidersErrorKind::ServiceFailureError({ + kind: crate::error::ListSAMLProvidersErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7771,7 +7773,7 @@ pub fn parse_list_saml_providers_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_saml_providers_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -7788,7 +7790,7 @@ pub fn parse_list_saml_providers_response( pub fn parse_list_saml_provider_tags_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListSAMLProviderTagsOutput, + crate::output::ListSamlProviderTagsOutput, crate::error::ListSAMLProviderTagsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7800,11 +7802,11 @@ pub fn parse_list_saml_provider_tags_error( Err(match error_code { "InvalidInputException" => crate::error::ListSAMLProviderTagsError { meta: generic, - kind: crate::error::ListSAMLProviderTagsErrorKind::InvalidInputError({ + kind: crate::error::ListSAMLProviderTagsErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -7814,11 +7816,11 @@ pub fn parse_list_saml_provider_tags_error( }, "NoSuchEntityException" => crate::error::ListSAMLProviderTagsError { meta: generic, - kind: crate::error::ListSAMLProviderTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListSAMLProviderTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7828,11 +7830,11 @@ pub fn parse_list_saml_provider_tags_error( }, "ServiceFailureException" => crate::error::ListSAMLProviderTagsError { meta: generic, - kind: crate::error::ListSAMLProviderTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListSAMLProviderTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7848,7 +7850,7 @@ pub fn parse_list_saml_provider_tags_error( pub fn parse_list_saml_provider_tags_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListSAMLProviderTagsOutput, + crate::output::ListSamlProviderTagsOutput, crate::error::ListSAMLProviderTagsError, > { Ok({ @@ -7884,11 +7886,11 @@ pub fn parse_list_server_certificates_error( Err(match error_code { "ServiceFailureException" => crate::error::ListServerCertificatesError { meta: generic, - kind: crate::error::ListServerCertificatesErrorKind::ServiceFailureError({ + kind: crate::error::ListServerCertificatesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -7940,11 +7942,11 @@ pub fn parse_list_server_certificate_tags_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListServerCertificateTagsError { meta: generic, - kind: crate::error::ListServerCertificateTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListServerCertificateTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -7954,11 +7956,11 @@ pub fn parse_list_server_certificate_tags_error( }, "ServiceFailureException" => crate::error::ListServerCertificateTagsError { meta: generic, - kind: crate::error::ListServerCertificateTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListServerCertificateTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8006,11 +8008,11 @@ pub fn parse_list_service_specific_credentials_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListServiceSpecificCredentialsError { meta: generic, - kind: crate::error::ListServiceSpecificCredentialsErrorKind::NoSuchEntityError({ + kind: crate::error::ListServiceSpecificCredentialsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8018,22 +8020,20 @@ pub fn parse_list_service_specific_credentials_error( output.build() }), }, - "ServiceNotSupportedException" => { - crate::error::ListServiceSpecificCredentialsError { - meta: generic, - kind: - crate::error::ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedError( - { - #[allow(unused_mut)] - let mut output = - crate::error::service_not_supported_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_not_supported_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ListServiceSpecificCredentialsError::unhandled)?; - output.build() - }, - ), - } - } + "ServiceNotSupportedException" => crate::error::ListServiceSpecificCredentialsError { + meta: generic, + kind: + crate::error::ListServiceSpecificCredentialsErrorKind::ServiceNotSupportedException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_not_supported_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_service_not_supported_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListServiceSpecificCredentialsError::unhandled)?; + output.build() + }, + ), + }, _ => crate::error::ListServiceSpecificCredentialsError::generic(generic), }) } @@ -8079,11 +8079,11 @@ pub fn parse_list_signing_certificates_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListSigningCertificatesError { meta: generic, - kind: crate::error::ListSigningCertificatesErrorKind::NoSuchEntityError({ + kind: crate::error::ListSigningCertificatesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8093,11 +8093,11 @@ pub fn parse_list_signing_certificates_error( }, "ServiceFailureException" => crate::error::ListSigningCertificatesError { meta: generic, - kind: crate::error::ListSigningCertificatesErrorKind::ServiceFailureError({ + kind: crate::error::ListSigningCertificatesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8132,7 +8132,7 @@ pub fn parse_list_signing_certificates_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_ssh_public_keys_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ListSSHPublicKeysError::unhandled)?; @@ -8143,11 +8143,11 @@ pub fn parse_list_ssh_public_keys_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListSSHPublicKeysError { meta: generic, - kind: crate::error::ListSSHPublicKeysErrorKind::NoSuchEntityError({ + kind: crate::error::ListSSHPublicKeysErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8162,7 +8162,7 @@ pub fn parse_list_ssh_public_keys_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_list_ssh_public_keys_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -8191,11 +8191,11 @@ pub fn parse_list_user_policies_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListUserPoliciesError { meta: generic, - kind: crate::error::ListUserPoliciesErrorKind::NoSuchEntityError({ + kind: crate::error::ListUserPoliciesErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8205,11 +8205,11 @@ pub fn parse_list_user_policies_error( }, "ServiceFailureException" => crate::error::ListUserPoliciesError { meta: generic, - kind: crate::error::ListUserPoliciesErrorKind::ServiceFailureError({ + kind: crate::error::ListUserPoliciesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8250,11 +8250,11 @@ pub fn parse_list_users_error( Err(match error_code { "ServiceFailureException" => crate::error::ListUsersError { meta: generic, - kind: crate::error::ListUsersErrorKind::ServiceFailureError({ + kind: crate::error::ListUsersErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8293,11 +8293,11 @@ pub fn parse_list_user_tags_error( Err(match error_code { "NoSuchEntityException" => crate::error::ListUserTagsError { meta: generic, - kind: crate::error::ListUserTagsErrorKind::NoSuchEntityError({ + kind: crate::error::ListUserTagsErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8307,11 +8307,11 @@ pub fn parse_list_user_tags_error( }, "ServiceFailureException" => crate::error::ListUserTagsError { meta: generic, - kind: crate::error::ListUserTagsErrorKind::ServiceFailureError({ + kind: crate::error::ListUserTagsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8341,7 +8341,7 @@ pub fn parse_list_user_tags_response( pub fn parse_list_virtual_mfa_devices_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListVirtualMFADevicesOutput, + crate::output::ListVirtualMfaDevicesOutput, crate::error::ListVirtualMFADevicesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8353,7 +8353,7 @@ pub fn parse_list_virtual_mfa_devices_error( pub fn parse_list_virtual_mfa_devices_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListVirtualMFADevicesOutput, + crate::output::ListVirtualMfaDevicesOutput, crate::error::ListVirtualMFADevicesError, > { Ok({ @@ -8382,25 +8382,11 @@ pub fn parse_put_group_policy_error( Err(match error_code { "LimitExceededException" => crate::error::PutGroupPolicyError { meta: generic, - kind: crate::error::PutGroupPolicyErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutGroupPolicyError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::PutGroupPolicyError { - meta: generic, - kind: crate::error::PutGroupPolicyErrorKind::MalformedPolicyDocumentError({ + kind: crate::error::PutGroupPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -8408,13 +8394,26 @@ pub fn parse_put_group_policy_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::PutGroupPolicyError { + meta: generic, + kind: crate::error::PutGroupPolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutGroupPolicyError::unhandled)?; + output.build() + }), + } + } "NoSuchEntityException" => crate::error::PutGroupPolicyError { meta: generic, - kind: crate::error::PutGroupPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::PutGroupPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8424,11 +8423,11 @@ pub fn parse_put_group_policy_error( }, "ServiceFailureException" => crate::error::PutGroupPolicyError { meta: generic, - kind: crate::error::PutGroupPolicyErrorKind::ServiceFailureError({ + kind: crate::error::PutGroupPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8472,11 +8471,11 @@ pub fn parse_put_role_permissions_boundary_error( Err(match error_code { "InvalidInputException" => crate::error::PutRolePermissionsBoundaryError { meta: generic, - kind: crate::error::PutRolePermissionsBoundaryErrorKind::InvalidInputError({ + kind: crate::error::PutRolePermissionsBoundaryErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -8486,25 +8485,11 @@ pub fn parse_put_role_permissions_boundary_error( }, "NoSuchEntityException" => crate::error::PutRolePermissionsBoundaryError { meta: generic, - kind: crate::error::PutRolePermissionsBoundaryErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutRolePermissionsBoundaryError::unhandled)?; - output.build() - }), - }, - "PolicyNotAttachableException" => crate::error::PutRolePermissionsBoundaryError { - meta: generic, - kind: crate::error::PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableError({ + kind: crate::error::PutRolePermissionsBoundaryErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::policy_not_attachable_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_not_attachable_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8512,13 +8497,29 @@ pub fn parse_put_role_permissions_boundary_error( output.build() }), }, + "PolicyNotAttachableException" => { + crate::error::PutRolePermissionsBoundaryError { + meta: generic, + kind: + crate::error::PutRolePermissionsBoundaryErrorKind::PolicyNotAttachableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::policy_not_attachable_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_policy_not_attachable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutRolePermissionsBoundaryError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::PutRolePermissionsBoundaryError { meta: generic, - kind: crate::error::PutRolePermissionsBoundaryErrorKind::ServiceFailureError({ + kind: crate::error::PutRolePermissionsBoundaryErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8528,11 +8529,11 @@ pub fn parse_put_role_permissions_boundary_error( }, "UnmodifiableEntityException" => crate::error::PutRolePermissionsBoundaryError { meta: generic, - kind: crate::error::PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityError({ + kind: crate::error::PutRolePermissionsBoundaryErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8572,25 +8573,11 @@ pub fn parse_put_role_policy_error( Err(match error_code { "LimitExceededException" => crate::error::PutRolePolicyError { meta: generic, - kind: crate::error::PutRolePolicyErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutRolePolicyError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::PutRolePolicyError { - meta: generic, - kind: crate::error::PutRolePolicyErrorKind::MalformedPolicyDocumentError({ + kind: crate::error::PutRolePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -8598,13 +8585,26 @@ pub fn parse_put_role_policy_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::PutRolePolicyError { + meta: generic, + kind: crate::error::PutRolePolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutRolePolicyError::unhandled)?; + output.build() + }), + } + } "NoSuchEntityException" => crate::error::PutRolePolicyError { meta: generic, - kind: crate::error::PutRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::PutRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8614,11 +8614,11 @@ pub fn parse_put_role_policy_error( }, "ServiceFailureException" => crate::error::PutRolePolicyError { meta: generic, - kind: crate::error::PutRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::PutRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8628,11 +8628,11 @@ pub fn parse_put_role_policy_error( }, "UnmodifiableEntityException" => crate::error::PutRolePolicyError { meta: generic, - kind: crate::error::PutRolePolicyErrorKind::UnmodifiableEntityError({ + kind: crate::error::PutRolePolicyErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8676,11 +8676,11 @@ pub fn parse_put_user_permissions_boundary_error( Err(match error_code { "InvalidInputException" => crate::error::PutUserPermissionsBoundaryError { meta: generic, - kind: crate::error::PutUserPermissionsBoundaryErrorKind::InvalidInputError({ + kind: crate::error::PutUserPermissionsBoundaryErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -8690,25 +8690,11 @@ pub fn parse_put_user_permissions_boundary_error( }, "NoSuchEntityException" => crate::error::PutUserPermissionsBoundaryError { meta: generic, - kind: crate::error::PutUserPermissionsBoundaryErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutUserPermissionsBoundaryError::unhandled)?; - output.build() - }), - }, - "PolicyNotAttachableException" => crate::error::PutUserPermissionsBoundaryError { - meta: generic, - kind: crate::error::PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableError({ + kind: crate::error::PutUserPermissionsBoundaryErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::policy_not_attachable_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_not_attachable_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8716,13 +8702,29 @@ pub fn parse_put_user_permissions_boundary_error( output.build() }), }, + "PolicyNotAttachableException" => { + crate::error::PutUserPermissionsBoundaryError { + meta: generic, + kind: + crate::error::PutUserPermissionsBoundaryErrorKind::PolicyNotAttachableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::policy_not_attachable_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_policy_not_attachable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutUserPermissionsBoundaryError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::PutUserPermissionsBoundaryError { meta: generic, - kind: crate::error::PutUserPermissionsBoundaryErrorKind::ServiceFailureError({ + kind: crate::error::PutUserPermissionsBoundaryErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8762,25 +8764,11 @@ pub fn parse_put_user_policy_error( Err(match error_code { "LimitExceededException" => crate::error::PutUserPolicyError { meta: generic, - kind: crate::error::PutUserPolicyErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutUserPolicyError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::PutUserPolicyError { - meta: generic, - kind: crate::error::PutUserPolicyErrorKind::MalformedPolicyDocumentError({ + kind: crate::error::PutUserPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -8788,13 +8776,26 @@ pub fn parse_put_user_policy_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::PutUserPolicyError { + meta: generic, + kind: crate::error::PutUserPolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PutUserPolicyError::unhandled)?; + output.build() + }), + } + } "NoSuchEntityException" => crate::error::PutUserPolicyError { meta: generic, - kind: crate::error::PutUserPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::PutUserPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8804,11 +8805,11 @@ pub fn parse_put_user_policy_error( }, "ServiceFailureException" => crate::error::PutUserPolicyError { meta: generic, - kind: crate::error::PutUserPolicyErrorKind::ServiceFailureError({ + kind: crate::error::PutUserPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8836,7 +8837,7 @@ pub fn parse_put_user_policy_response( pub fn parse_remove_client_id_from_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveClientIDFromOpenIDConnectProviderOutput, + crate::output::RemoveClientIdFromOpenIdConnectProviderOutput, crate::error::RemoveClientIDFromOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8850,62 +8851,25 @@ pub fn parse_remove_client_id_from_open_id_connect_provider_error( } }; Err(match error_code { - "InvalidInputException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { - meta: generic, - kind: crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputError( - { - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled, - )?; - output.build() - }, - ), - }, - "NoSuchEntityException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { - meta: generic, - kind: crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityError( - { - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled, - )?; - output.build() - }, - ), - }, - "ServiceFailureException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { - meta: generic, - kind: - crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureError( - { - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::RemoveClientIDFromOpenIDConnectProviderError::generic(generic), + "InvalidInputException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { meta: generic, kind: crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::InvalidInputException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled)?; + output.build() + })}, + "NoSuchEntityException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { meta: generic, kind: crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::NoSuchEntityException({ + #[allow(unused_mut)]let mut output = crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled)?; + output.build() + })}, + "ServiceFailureException" => crate::error::RemoveClientIDFromOpenIDConnectProviderError { meta: generic, kind: crate::error::RemoveClientIDFromOpenIDConnectProviderErrorKind::ServiceFailureException({ + #[allow(unused_mut)]let mut output = crate::error::service_failure_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::RemoveClientIDFromOpenIDConnectProviderError::unhandled)?; + output.build() + })}, + _ => crate::error::RemoveClientIDFromOpenIDConnectProviderError::generic(generic) }) } @@ -8913,7 +8877,7 @@ pub fn parse_remove_client_id_from_open_id_connect_provider_error( pub fn parse_remove_client_id_from_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveClientIDFromOpenIDConnectProviderOutput, + crate::output::RemoveClientIdFromOpenIdConnectProviderOutput, crate::error::RemoveClientIDFromOpenIDConnectProviderError, > { Ok({ @@ -8946,11 +8910,11 @@ pub fn parse_remove_role_from_instance_profile_error( Err(match error_code { "LimitExceededException" => crate::error::RemoveRoleFromInstanceProfileError { meta: generic, - kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::LimitExceededError({ + kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -8960,11 +8924,11 @@ pub fn parse_remove_role_from_instance_profile_error( }, "NoSuchEntityException" => crate::error::RemoveRoleFromInstanceProfileError { meta: generic, - kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -8974,11 +8938,11 @@ pub fn parse_remove_role_from_instance_profile_error( }, "ServiceFailureException" => crate::error::RemoveRoleFromInstanceProfileError { meta: generic, - kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -8988,17 +8952,21 @@ pub fn parse_remove_role_from_instance_profile_error( }, "UnmodifiableEntityException" => crate::error::RemoveRoleFromInstanceProfileError { meta: generic, - kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RemoveRoleFromInstanceProfileError::unhandled)?; - output.build() - }), + kind: crate::error::RemoveRoleFromInstanceProfileErrorKind::UnmodifiableEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unmodifiable_entity_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRoleFromInstanceProfileError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::RemoveRoleFromInstanceProfileError::generic(generic), }) @@ -9036,11 +9004,11 @@ pub fn parse_remove_user_from_group_error( Err(match error_code { "LimitExceededException" => crate::error::RemoveUserFromGroupError { meta: generic, - kind: crate::error::RemoveUserFromGroupErrorKind::LimitExceededError({ + kind: crate::error::RemoveUserFromGroupErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9050,11 +9018,11 @@ pub fn parse_remove_user_from_group_error( }, "NoSuchEntityException" => crate::error::RemoveUserFromGroupError { meta: generic, - kind: crate::error::RemoveUserFromGroupErrorKind::NoSuchEntityError({ + kind: crate::error::RemoveUserFromGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9064,11 +9032,11 @@ pub fn parse_remove_user_from_group_error( }, "ServiceFailureException" => crate::error::RemoveUserFromGroupError { meta: generic, - kind: crate::error::RemoveUserFromGroupErrorKind::ServiceFailureError({ + kind: crate::error::RemoveUserFromGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9111,11 +9079,11 @@ pub fn parse_reset_service_specific_credential_error( Err(match error_code { "NoSuchEntityException" => crate::error::ResetServiceSpecificCredentialError { meta: generic, - kind: crate::error::ResetServiceSpecificCredentialErrorKind::NoSuchEntityError({ + kind: crate::error::ResetServiceSpecificCredentialErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9151,7 +9119,7 @@ pub fn parse_reset_service_specific_credential_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_resync_mfa_device_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ResyncMFADeviceError::unhandled)?; let error_code = match generic.code() { @@ -9159,26 +9127,24 @@ pub fn parse_resync_mfa_device_error( None => return Err(crate::error::ResyncMFADeviceError::unhandled(generic)), }; Err(match error_code { - "InvalidAuthenticationCodeException" => { - crate::error::ResyncMFADeviceError { - meta: generic, - kind: crate::error::ResyncMFADeviceErrorKind::InvalidAuthenticationCodeError({ - #[allow(unused_mut)] - let mut output = - crate::error::invalid_authentication_code_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_authentication_code_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ResyncMFADeviceError::unhandled)?; - output.build() - }), - } - } + "InvalidAuthenticationCodeException" => crate::error::ResyncMFADeviceError { + meta: generic, + kind: crate::error::ResyncMFADeviceErrorKind::InvalidAuthenticationCodeException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_authentication_code_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_authentication_code_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ResyncMFADeviceError::unhandled)?; + output.build() + }), + }, "LimitExceededException" => crate::error::ResyncMFADeviceError { meta: generic, - kind: crate::error::ResyncMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::ResyncMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9188,11 +9154,11 @@ pub fn parse_resync_mfa_device_error( }, "NoSuchEntityException" => crate::error::ResyncMFADeviceError { meta: generic, - kind: crate::error::ResyncMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::ResyncMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9202,11 +9168,11 @@ pub fn parse_resync_mfa_device_error( }, "ServiceFailureException" => crate::error::ResyncMFADeviceError { meta: generic, - kind: crate::error::ResyncMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::ResyncMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9221,7 +9187,7 @@ pub fn parse_resync_mfa_device_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_resync_mfa_device_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::resync_mfa_device_output::Builder::default(); @@ -9250,11 +9216,11 @@ pub fn parse_set_default_policy_version_error( Err(match error_code { "InvalidInputException" => crate::error::SetDefaultPolicyVersionError { meta: generic, - kind: crate::error::SetDefaultPolicyVersionErrorKind::InvalidInputError({ + kind: crate::error::SetDefaultPolicyVersionErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9264,11 +9230,11 @@ pub fn parse_set_default_policy_version_error( }, "LimitExceededException" => crate::error::SetDefaultPolicyVersionError { meta: generic, - kind: crate::error::SetDefaultPolicyVersionErrorKind::LimitExceededError({ + kind: crate::error::SetDefaultPolicyVersionErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9278,11 +9244,11 @@ pub fn parse_set_default_policy_version_error( }, "NoSuchEntityException" => crate::error::SetDefaultPolicyVersionError { meta: generic, - kind: crate::error::SetDefaultPolicyVersionErrorKind::NoSuchEntityError({ + kind: crate::error::SetDefaultPolicyVersionErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9292,11 +9258,11 @@ pub fn parse_set_default_policy_version_error( }, "ServiceFailureException" => crate::error::SetDefaultPolicyVersionError { meta: generic, - kind: crate::error::SetDefaultPolicyVersionErrorKind::ServiceFailureError({ + kind: crate::error::SetDefaultPolicyVersionErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9341,17 +9307,24 @@ pub fn parse_set_security_token_service_preferences_error( Err(match error_code { "ServiceFailureException" => crate::error::SetSecurityTokenServicePreferencesError { meta: generic, - kind: crate::error::SetSecurityTokenServicePreferencesErrorKind::ServiceFailureError({ - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SetSecurityTokenServicePreferencesError::unhandled)?; - output.build() - }), + kind: + crate::error::SetSecurityTokenServicePreferencesErrorKind::ServiceFailureException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_failure_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_service_failure_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::SetSecurityTokenServicePreferencesError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::SetSecurityTokenServicePreferencesError::generic(generic), }) @@ -9389,11 +9362,11 @@ pub fn parse_simulate_custom_policy_error( Err(match error_code { "InvalidInputException" => crate::error::SimulateCustomPolicyError { meta: generic, - kind: crate::error::SimulateCustomPolicyErrorKind::InvalidInputError({ + kind: crate::error::SimulateCustomPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9403,11 +9376,11 @@ pub fn parse_simulate_custom_policy_error( }, "PolicyEvaluationException" => crate::error::SimulateCustomPolicyError { meta: generic, - kind: crate::error::SimulateCustomPolicyErrorKind::PolicyEvaluationError({ + kind: crate::error::SimulateCustomPolicyErrorKind::PolicyEvaluationException({ #[allow(unused_mut)] - let mut output = crate::error::policy_evaluation_error::Builder::default(); + let mut output = crate::error::policy_evaluation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_evaluation_error_xml_err( + output = crate::xml_deser::deser_structure_policy_evaluation_exception_xml_err( response.body().as_ref(), output, ) @@ -9459,11 +9432,11 @@ pub fn parse_simulate_principal_policy_error( Err(match error_code { "InvalidInputException" => crate::error::SimulatePrincipalPolicyError { meta: generic, - kind: crate::error::SimulatePrincipalPolicyErrorKind::InvalidInputError({ + kind: crate::error::SimulatePrincipalPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9473,11 +9446,11 @@ pub fn parse_simulate_principal_policy_error( }, "NoSuchEntityException" => crate::error::SimulatePrincipalPolicyError { meta: generic, - kind: crate::error::SimulatePrincipalPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::SimulatePrincipalPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9487,11 +9460,11 @@ pub fn parse_simulate_principal_policy_error( }, "PolicyEvaluationException" => crate::error::SimulatePrincipalPolicyError { meta: generic, - kind: crate::error::SimulatePrincipalPolicyErrorKind::PolicyEvaluationError({ + kind: crate::error::SimulatePrincipalPolicyErrorKind::PolicyEvaluationException({ #[allow(unused_mut)] - let mut output = crate::error::policy_evaluation_error::Builder::default(); + let mut output = crate::error::policy_evaluation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_policy_evaluation_error_xml_err( + output = crate::xml_deser::deser_structure_policy_evaluation_exception_xml_err( response.body().as_ref(), output, ) @@ -9537,27 +9510,26 @@ pub fn parse_tag_instance_profile_error( None => return Err(crate::error::TagInstanceProfileError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagInstanceProfileError { - meta: generic, - kind: crate::error::TagInstanceProfileErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagInstanceProfileError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagInstanceProfileError { + meta: generic, + kind: crate::error::TagInstanceProfileErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagInstanceProfileError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagInstanceProfileError { meta: generic, - kind: crate::error::TagInstanceProfileErrorKind::InvalidInputError({ + kind: crate::error::TagInstanceProfileErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9567,11 +9539,11 @@ pub fn parse_tag_instance_profile_error( }, "LimitExceededException" => crate::error::TagInstanceProfileError { meta: generic, - kind: crate::error::TagInstanceProfileErrorKind::LimitExceededError({ + kind: crate::error::TagInstanceProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9581,11 +9553,11 @@ pub fn parse_tag_instance_profile_error( }, "NoSuchEntityException" => crate::error::TagInstanceProfileError { meta: generic, - kind: crate::error::TagInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::TagInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9595,11 +9567,11 @@ pub fn parse_tag_instance_profile_error( }, "ServiceFailureException" => crate::error::TagInstanceProfileError { meta: generic, - kind: crate::error::TagInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::TagInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9629,7 +9601,7 @@ pub fn parse_tag_instance_profile_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_mfa_device_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::TagMFADeviceError::unhandled)?; let error_code = match generic.code() { @@ -9637,27 +9609,26 @@ pub fn parse_tag_mfa_device_error( None => return Err(crate::error::TagMFADeviceError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagMFADeviceError { - meta: generic, - kind: crate::error::TagMFADeviceErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagMFADeviceError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagMFADeviceError { + meta: generic, + kind: crate::error::TagMFADeviceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagMFADeviceError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagMFADeviceError { meta: generic, - kind: crate::error::TagMFADeviceErrorKind::InvalidInputError({ + kind: crate::error::TagMFADeviceErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9667,11 +9638,11 @@ pub fn parse_tag_mfa_device_error( }, "LimitExceededException" => crate::error::TagMFADeviceError { meta: generic, - kind: crate::error::TagMFADeviceErrorKind::LimitExceededError({ + kind: crate::error::TagMFADeviceErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9681,11 +9652,11 @@ pub fn parse_tag_mfa_device_error( }, "NoSuchEntityException" => crate::error::TagMFADeviceError { meta: generic, - kind: crate::error::TagMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::TagMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9695,11 +9666,11 @@ pub fn parse_tag_mfa_device_error( }, "ServiceFailureException" => crate::error::TagMFADeviceError { meta: generic, - kind: crate::error::TagMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::TagMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9714,7 +9685,7 @@ pub fn parse_tag_mfa_device_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_mfa_device_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::tag_mfa_device_output::Builder::default(); @@ -9727,7 +9698,7 @@ pub fn parse_tag_mfa_device_response( pub fn parse_tag_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::TagOpenIDConnectProviderOutput, + crate::output::TagOpenIdConnectProviderOutput, crate::error::TagOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9743,25 +9714,24 @@ pub fn parse_tag_open_id_connect_provider_error( Err(match error_code { "ConcurrentModificationException" => crate::error::TagOpenIDConnectProviderError { meta: generic, - kind: crate::error::TagOpenIDConnectProviderErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagOpenIDConnectProviderError::unhandled)?; - output.build() - }), + kind: crate::error::TagOpenIDConnectProviderErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), }, "InvalidInputException" => crate::error::TagOpenIDConnectProviderError { meta: generic, - kind: crate::error::TagOpenIDConnectProviderErrorKind::InvalidInputError({ + kind: crate::error::TagOpenIDConnectProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9771,11 +9741,11 @@ pub fn parse_tag_open_id_connect_provider_error( }, "LimitExceededException" => crate::error::TagOpenIDConnectProviderError { meta: generic, - kind: crate::error::TagOpenIDConnectProviderErrorKind::LimitExceededError({ + kind: crate::error::TagOpenIDConnectProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9785,11 +9755,11 @@ pub fn parse_tag_open_id_connect_provider_error( }, "NoSuchEntityException" => crate::error::TagOpenIDConnectProviderError { meta: generic, - kind: crate::error::TagOpenIDConnectProviderErrorKind::NoSuchEntityError({ + kind: crate::error::TagOpenIDConnectProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9799,11 +9769,11 @@ pub fn parse_tag_open_id_connect_provider_error( }, "ServiceFailureException" => crate::error::TagOpenIDConnectProviderError { meta: generic, - kind: crate::error::TagOpenIDConnectProviderErrorKind::ServiceFailureError({ + kind: crate::error::TagOpenIDConnectProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9819,7 +9789,7 @@ pub fn parse_tag_open_id_connect_provider_error( pub fn parse_tag_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::TagOpenIDConnectProviderOutput, + crate::output::TagOpenIdConnectProviderOutput, crate::error::TagOpenIDConnectProviderError, > { Ok({ @@ -9841,27 +9811,26 @@ pub fn parse_tag_policy_error( None => return Err(crate::error::TagPolicyError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagPolicyError { - meta: generic, - kind: crate::error::TagPolicyErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagPolicyError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagPolicyError { + meta: generic, + kind: crate::error::TagPolicyErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagPolicyError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagPolicyError { meta: generic, - kind: crate::error::TagPolicyErrorKind::InvalidInputError({ + kind: crate::error::TagPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9871,11 +9840,11 @@ pub fn parse_tag_policy_error( }, "LimitExceededException" => crate::error::TagPolicyError { meta: generic, - kind: crate::error::TagPolicyErrorKind::LimitExceededError({ + kind: crate::error::TagPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9885,11 +9854,11 @@ pub fn parse_tag_policy_error( }, "NoSuchEntityException" => crate::error::TagPolicyError { meta: generic, - kind: crate::error::TagPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::TagPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9899,11 +9868,11 @@ pub fn parse_tag_policy_error( }, "ServiceFailureException" => crate::error::TagPolicyError { meta: generic, - kind: crate::error::TagPolicyErrorKind::ServiceFailureError({ + kind: crate::error::TagPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -9938,27 +9907,26 @@ pub fn parse_tag_role_error( None => return Err(crate::error::TagRoleError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagRoleError { - meta: generic, - kind: crate::error::TagRoleErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagRoleError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagRoleError { + meta: generic, + kind: crate::error::TagRoleErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagRoleError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagRoleError { meta: generic, - kind: crate::error::TagRoleErrorKind::InvalidInputError({ + kind: crate::error::TagRoleErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -9968,11 +9936,11 @@ pub fn parse_tag_role_error( }, "LimitExceededException" => crate::error::TagRoleError { meta: generic, - kind: crate::error::TagRoleErrorKind::LimitExceededError({ + kind: crate::error::TagRoleErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -9982,11 +9950,11 @@ pub fn parse_tag_role_error( }, "NoSuchEntityException" => crate::error::TagRoleError { meta: generic, - kind: crate::error::TagRoleErrorKind::NoSuchEntityError({ + kind: crate::error::TagRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -9996,11 +9964,11 @@ pub fn parse_tag_role_error( }, "ServiceFailureException" => crate::error::TagRoleError { meta: generic, - kind: crate::error::TagRoleErrorKind::ServiceFailureError({ + kind: crate::error::TagRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10027,7 +9995,7 @@ pub fn parse_tag_role_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_saml_provider_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::TagSAMLProviderError::unhandled)?; let error_code = match generic.code() { @@ -10035,27 +10003,26 @@ pub fn parse_tag_saml_provider_error( None => return Err(crate::error::TagSAMLProviderError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagSAMLProviderError { - meta: generic, - kind: crate::error::TagSAMLProviderErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagSAMLProviderError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagSAMLProviderError { + meta: generic, + kind: crate::error::TagSAMLProviderErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagSAMLProviderError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagSAMLProviderError { meta: generic, - kind: crate::error::TagSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::TagSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10065,11 +10032,11 @@ pub fn parse_tag_saml_provider_error( }, "LimitExceededException" => crate::error::TagSAMLProviderError { meta: generic, - kind: crate::error::TagSAMLProviderErrorKind::LimitExceededError({ + kind: crate::error::TagSAMLProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -10079,11 +10046,11 @@ pub fn parse_tag_saml_provider_error( }, "NoSuchEntityException" => crate::error::TagSAMLProviderError { meta: generic, - kind: crate::error::TagSAMLProviderErrorKind::NoSuchEntityError({ + kind: crate::error::TagSAMLProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10093,11 +10060,11 @@ pub fn parse_tag_saml_provider_error( }, "ServiceFailureException" => crate::error::TagSAMLProviderError { meta: generic, - kind: crate::error::TagSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::TagSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10112,7 +10079,7 @@ pub fn parse_tag_saml_provider_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_saml_provider_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::tag_saml_provider_output::Builder::default(); @@ -10135,27 +10102,28 @@ pub fn parse_tag_server_certificate_error( None => return Err(crate::error::TagServerCertificateError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagServerCertificateError { - meta: generic, - kind: crate::error::TagServerCertificateErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagServerCertificateError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagServerCertificateError { + meta: generic, + kind: crate::error::TagServerCertificateErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagServerCertificateError::unhandled)?; + output.build() + }, + ), + } + } "InvalidInputException" => crate::error::TagServerCertificateError { meta: generic, - kind: crate::error::TagServerCertificateErrorKind::InvalidInputError({ + kind: crate::error::TagServerCertificateErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10165,11 +10133,11 @@ pub fn parse_tag_server_certificate_error( }, "LimitExceededException" => crate::error::TagServerCertificateError { meta: generic, - kind: crate::error::TagServerCertificateErrorKind::LimitExceededError({ + kind: crate::error::TagServerCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -10179,11 +10147,11 @@ pub fn parse_tag_server_certificate_error( }, "NoSuchEntityException" => crate::error::TagServerCertificateError { meta: generic, - kind: crate::error::TagServerCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::TagServerCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10193,11 +10161,11 @@ pub fn parse_tag_server_certificate_error( }, "ServiceFailureException" => crate::error::TagServerCertificateError { meta: generic, - kind: crate::error::TagServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::TagServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10235,27 +10203,26 @@ pub fn parse_tag_user_error( None => return Err(crate::error::TagUserError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::TagUserError { - meta: generic, - kind: crate::error::TagUserErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TagUserError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::TagUserError { + meta: generic, + kind: crate::error::TagUserErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::TagUserError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::TagUserError { meta: generic, - kind: crate::error::TagUserErrorKind::InvalidInputError({ + kind: crate::error::TagUserErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10265,11 +10232,11 @@ pub fn parse_tag_user_error( }, "LimitExceededException" => crate::error::TagUserError { meta: generic, - kind: crate::error::TagUserErrorKind::LimitExceededError({ + kind: crate::error::TagUserErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -10279,11 +10246,11 @@ pub fn parse_tag_user_error( }, "NoSuchEntityException" => crate::error::TagUserError { meta: generic, - kind: crate::error::TagUserErrorKind::NoSuchEntityError({ + kind: crate::error::TagUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10293,11 +10260,11 @@ pub fn parse_tag_user_error( }, "ServiceFailureException" => crate::error::TagUserError { meta: generic, - kind: crate::error::TagUserErrorKind::ServiceFailureError({ + kind: crate::error::TagUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10335,27 +10302,28 @@ pub fn parse_untag_instance_profile_error( None => return Err(crate::error::UntagInstanceProfileError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagInstanceProfileError { - meta: generic, - kind: crate::error::UntagInstanceProfileErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagInstanceProfileError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagInstanceProfileError { + meta: generic, + kind: crate::error::UntagInstanceProfileErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagInstanceProfileError::unhandled)?; + output.build() + }, + ), + } + } "InvalidInputException" => crate::error::UntagInstanceProfileError { meta: generic, - kind: crate::error::UntagInstanceProfileErrorKind::InvalidInputError({ + kind: crate::error::UntagInstanceProfileErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10365,11 +10333,11 @@ pub fn parse_untag_instance_profile_error( }, "NoSuchEntityException" => crate::error::UntagInstanceProfileError { meta: generic, - kind: crate::error::UntagInstanceProfileErrorKind::NoSuchEntityError({ + kind: crate::error::UntagInstanceProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10379,11 +10347,11 @@ pub fn parse_untag_instance_profile_error( }, "ServiceFailureException" => crate::error::UntagInstanceProfileError { meta: generic, - kind: crate::error::UntagInstanceProfileErrorKind::ServiceFailureError({ + kind: crate::error::UntagInstanceProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10413,7 +10381,7 @@ pub fn parse_untag_instance_profile_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_mfa_device_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::UntagMFADeviceError::unhandled)?; let error_code = match generic.code() { @@ -10421,27 +10389,26 @@ pub fn parse_untag_mfa_device_error( None => return Err(crate::error::UntagMFADeviceError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagMFADeviceError { - meta: generic, - kind: crate::error::UntagMFADeviceErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagMFADeviceError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagMFADeviceError { + meta: generic, + kind: crate::error::UntagMFADeviceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagMFADeviceError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::UntagMFADeviceError { meta: generic, - kind: crate::error::UntagMFADeviceErrorKind::InvalidInputError({ + kind: crate::error::UntagMFADeviceErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10451,11 +10418,11 @@ pub fn parse_untag_mfa_device_error( }, "NoSuchEntityException" => crate::error::UntagMFADeviceError { meta: generic, - kind: crate::error::UntagMFADeviceErrorKind::NoSuchEntityError({ + kind: crate::error::UntagMFADeviceErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10465,11 +10432,11 @@ pub fn parse_untag_mfa_device_error( }, "ServiceFailureException" => crate::error::UntagMFADeviceError { meta: generic, - kind: crate::error::UntagMFADeviceErrorKind::ServiceFailureError({ + kind: crate::error::UntagMFADeviceErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10484,7 +10451,7 @@ pub fn parse_untag_mfa_device_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_mfa_device_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::untag_mfa_device_output::Builder::default(); @@ -10497,7 +10464,7 @@ pub fn parse_untag_mfa_device_response( pub fn parse_untag_open_id_connect_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::UntagOpenIDConnectProviderOutput, + crate::output::UntagOpenIdConnectProviderOutput, crate::error::UntagOpenIDConnectProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -10513,25 +10480,25 @@ pub fn parse_untag_open_id_connect_provider_error( Err(match error_code { "ConcurrentModificationException" => crate::error::UntagOpenIDConnectProviderError { meta: generic, - kind: crate::error::UntagOpenIDConnectProviderErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagOpenIDConnectProviderError::unhandled)?; - output.build() - }), + kind: + crate::error::UntagOpenIDConnectProviderErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagOpenIDConnectProviderError::unhandled)?; + output.build() + }, + ), }, "InvalidInputException" => crate::error::UntagOpenIDConnectProviderError { meta: generic, - kind: crate::error::UntagOpenIDConnectProviderErrorKind::InvalidInputError({ + kind: crate::error::UntagOpenIDConnectProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10541,11 +10508,11 @@ pub fn parse_untag_open_id_connect_provider_error( }, "NoSuchEntityException" => crate::error::UntagOpenIDConnectProviderError { meta: generic, - kind: crate::error::UntagOpenIDConnectProviderErrorKind::NoSuchEntityError({ + kind: crate::error::UntagOpenIDConnectProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10555,11 +10522,11 @@ pub fn parse_untag_open_id_connect_provider_error( }, "ServiceFailureException" => crate::error::UntagOpenIDConnectProviderError { meta: generic, - kind: crate::error::UntagOpenIDConnectProviderErrorKind::ServiceFailureError({ + kind: crate::error::UntagOpenIDConnectProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10575,7 +10542,7 @@ pub fn parse_untag_open_id_connect_provider_error( pub fn parse_untag_open_id_connect_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::UntagOpenIDConnectProviderOutput, + crate::output::UntagOpenIdConnectProviderOutput, crate::error::UntagOpenIDConnectProviderError, > { Ok({ @@ -10597,27 +10564,26 @@ pub fn parse_untag_policy_error( None => return Err(crate::error::UntagPolicyError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagPolicyError { - meta: generic, - kind: crate::error::UntagPolicyErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagPolicyError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagPolicyError { + meta: generic, + kind: crate::error::UntagPolicyErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagPolicyError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::UntagPolicyError { meta: generic, - kind: crate::error::UntagPolicyErrorKind::InvalidInputError({ + kind: crate::error::UntagPolicyErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10627,11 +10593,11 @@ pub fn parse_untag_policy_error( }, "NoSuchEntityException" => crate::error::UntagPolicyError { meta: generic, - kind: crate::error::UntagPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::UntagPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10641,11 +10607,11 @@ pub fn parse_untag_policy_error( }, "ServiceFailureException" => crate::error::UntagPolicyError { meta: generic, - kind: crate::error::UntagPolicyErrorKind::ServiceFailureError({ + kind: crate::error::UntagPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10680,27 +10646,26 @@ pub fn parse_untag_role_error( None => return Err(crate::error::UntagRoleError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagRoleError { - meta: generic, - kind: crate::error::UntagRoleErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagRoleError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagRoleError { + meta: generic, + kind: crate::error::UntagRoleErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagRoleError::unhandled)?; + output.build() + }), + } + } "NoSuchEntityException" => crate::error::UntagRoleError { meta: generic, - kind: crate::error::UntagRoleErrorKind::NoSuchEntityError({ + kind: crate::error::UntagRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10710,11 +10675,11 @@ pub fn parse_untag_role_error( }, "ServiceFailureException" => crate::error::UntagRoleError { meta: generic, - kind: crate::error::UntagRoleErrorKind::ServiceFailureError({ + kind: crate::error::UntagRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10741,7 +10706,7 @@ pub fn parse_untag_role_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_saml_provider_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::UntagSAMLProviderError::unhandled)?; @@ -10750,27 +10715,26 @@ pub fn parse_untag_saml_provider_error( None => return Err(crate::error::UntagSAMLProviderError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagSAMLProviderError { - meta: generic, - kind: crate::error::UntagSAMLProviderErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagSAMLProviderError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagSAMLProviderError { + meta: generic, + kind: crate::error::UntagSAMLProviderErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagSAMLProviderError::unhandled)?; + output.build() + }), + } + } "InvalidInputException" => crate::error::UntagSAMLProviderError { meta: generic, - kind: crate::error::UntagSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::UntagSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10780,11 +10744,11 @@ pub fn parse_untag_saml_provider_error( }, "NoSuchEntityException" => crate::error::UntagSAMLProviderError { meta: generic, - kind: crate::error::UntagSAMLProviderErrorKind::NoSuchEntityError({ + kind: crate::error::UntagSAMLProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10794,11 +10758,11 @@ pub fn parse_untag_saml_provider_error( }, "ServiceFailureException" => crate::error::UntagSAMLProviderError { meta: generic, - kind: crate::error::UntagSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::UntagSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10813,7 +10777,7 @@ pub fn parse_untag_saml_provider_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_saml_provider_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -10841,27 +10805,29 @@ pub fn parse_untag_server_certificate_error( } }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagServerCertificateError { - meta: generic, - kind: crate::error::UntagServerCertificateErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagServerCertificateError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagServerCertificateError { + meta: generic, + kind: + crate::error::UntagServerCertificateErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagServerCertificateError::unhandled)?; + output.build() + }, + ), + } + } "InvalidInputException" => crate::error::UntagServerCertificateError { meta: generic, - kind: crate::error::UntagServerCertificateErrorKind::InvalidInputError({ + kind: crate::error::UntagServerCertificateErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -10871,11 +10837,11 @@ pub fn parse_untag_server_certificate_error( }, "NoSuchEntityException" => crate::error::UntagServerCertificateError { meta: generic, - kind: crate::error::UntagServerCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::UntagServerCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10885,11 +10851,11 @@ pub fn parse_untag_server_certificate_error( }, "ServiceFailureException" => crate::error::UntagServerCertificateError { meta: generic, - kind: crate::error::UntagServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::UntagServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10927,27 +10893,26 @@ pub fn parse_untag_user_error( None => return Err(crate::error::UntagUserError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UntagUserError { - meta: generic, - kind: crate::error::UntagUserErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UntagUserError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UntagUserError { + meta: generic, + kind: crate::error::UntagUserErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UntagUserError::unhandled)?; + output.build() + }), + } + } "NoSuchEntityException" => crate::error::UntagUserError { meta: generic, - kind: crate::error::UntagUserErrorKind::NoSuchEntityError({ + kind: crate::error::UntagUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -10957,11 +10922,11 @@ pub fn parse_untag_user_error( }, "ServiceFailureException" => crate::error::UntagUserError { meta: generic, - kind: crate::error::UntagUserErrorKind::ServiceFailureError({ + kind: crate::error::UntagUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -10998,11 +10963,11 @@ pub fn parse_update_access_key_error( Err(match error_code { "LimitExceededException" => crate::error::UpdateAccessKeyError { meta: generic, - kind: crate::error::UpdateAccessKeyErrorKind::LimitExceededError({ + kind: crate::error::UpdateAccessKeyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11012,11 +10977,11 @@ pub fn parse_update_access_key_error( }, "NoSuchEntityException" => crate::error::UpdateAccessKeyError { meta: generic, - kind: crate::error::UpdateAccessKeyErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateAccessKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11026,11 +10991,11 @@ pub fn parse_update_access_key_error( }, "ServiceFailureException" => crate::error::UpdateAccessKeyError { meta: generic, - kind: crate::error::UpdateAccessKeyErrorKind::ServiceFailureError({ + kind: crate::error::UpdateAccessKeyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11074,11 +11039,11 @@ pub fn parse_update_account_password_policy_error( Err(match error_code { "LimitExceededException" => crate::error::UpdateAccountPasswordPolicyError { meta: generic, - kind: crate::error::UpdateAccountPasswordPolicyErrorKind::LimitExceededError({ + kind: crate::error::UpdateAccountPasswordPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11086,29 +11051,27 @@ pub fn parse_update_account_password_policy_error( output.build() }), }, - "MalformedPolicyDocumentException" => { - crate::error::UpdateAccountPasswordPolicyError { - meta: generic, - kind: - crate::error::UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentError( - { - #[allow(unused_mut)] - let mut output = - crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateAccountPasswordPolicyError::unhandled)?; - output.build() - }, - ), - } - } + "MalformedPolicyDocumentException" => crate::error::UpdateAccountPasswordPolicyError { + meta: generic, + kind: + crate::error::UpdateAccountPasswordPolicyErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateAccountPasswordPolicyError::unhandled)?; + output.build() + }, + ), + }, "NoSuchEntityException" => crate::error::UpdateAccountPasswordPolicyError { meta: generic, - kind: crate::error::UpdateAccountPasswordPolicyErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateAccountPasswordPolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11118,11 +11081,11 @@ pub fn parse_update_account_password_policy_error( }, "ServiceFailureException" => crate::error::UpdateAccountPasswordPolicyError { meta: generic, - kind: crate::error::UpdateAccountPasswordPolicyErrorKind::ServiceFailureError({ + kind: crate::error::UpdateAccountPasswordPolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11169,11 +11132,11 @@ pub fn parse_update_assume_role_policy_error( Err(match error_code { "LimitExceededException" => crate::error::UpdateAssumeRolePolicyError { meta: generic, - kind: crate::error::UpdateAssumeRolePolicyErrorKind::LimitExceededError({ + kind: crate::error::UpdateAssumeRolePolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11183,25 +11146,24 @@ pub fn parse_update_assume_role_policy_error( }, "MalformedPolicyDocumentException" => crate::error::UpdateAssumeRolePolicyError { meta: generic, - kind: crate::error::UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateAssumeRolePolicyError::unhandled)?; - output.build() - }), + kind: crate::error::UpdateAssumeRolePolicyErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateAssumeRolePolicyError::unhandled)?; + output.build() + }, + ), }, "NoSuchEntityException" => crate::error::UpdateAssumeRolePolicyError { meta: generic, - kind: crate::error::UpdateAssumeRolePolicyErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateAssumeRolePolicyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11211,11 +11173,11 @@ pub fn parse_update_assume_role_policy_error( }, "ServiceFailureException" => crate::error::UpdateAssumeRolePolicyError { meta: generic, - kind: crate::error::UpdateAssumeRolePolicyErrorKind::ServiceFailureError({ + kind: crate::error::UpdateAssumeRolePolicyErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11225,11 +11187,11 @@ pub fn parse_update_assume_role_policy_error( }, "UnmodifiableEntityException" => crate::error::UpdateAssumeRolePolicyError { meta: generic, - kind: crate::error::UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityError({ + kind: crate::error::UpdateAssumeRolePolicyErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11269,11 +11231,11 @@ pub fn parse_update_group_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::UpdateGroupError { meta: generic, - kind: crate::error::UpdateGroupErrorKind::EntityAlreadyExistsError({ + kind: crate::error::UpdateGroupErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -11283,11 +11245,11 @@ pub fn parse_update_group_error( }, "LimitExceededException" => crate::error::UpdateGroupError { meta: generic, - kind: crate::error::UpdateGroupErrorKind::LimitExceededError({ + kind: crate::error::UpdateGroupErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11297,11 +11259,11 @@ pub fn parse_update_group_error( }, "NoSuchEntityException" => crate::error::UpdateGroupError { meta: generic, - kind: crate::error::UpdateGroupErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateGroupErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11311,11 +11273,11 @@ pub fn parse_update_group_error( }, "ServiceFailureException" => crate::error::UpdateGroupError { meta: generic, - kind: crate::error::UpdateGroupErrorKind::ServiceFailureError({ + kind: crate::error::UpdateGroupErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11355,22 +11317,24 @@ pub fn parse_update_login_profile_error( Err(match error_code { "EntityTemporarilyUnmodifiableException" => crate::error::UpdateLoginProfileError { meta: generic, - kind: crate::error::UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableError({ - #[allow(unused_mut)] - let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateLoginProfileError::unhandled)?; - output.build() - }), + kind: crate::error::UpdateLoginProfileErrorKind::EntityTemporarilyUnmodifiableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateLoginProfileError::unhandled)?; + output.build() + }, + ), }, "LimitExceededException" => crate::error::UpdateLoginProfileError { meta: generic, - kind: crate::error::UpdateLoginProfileErrorKind::LimitExceededError({ + kind: crate::error::UpdateLoginProfileErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11380,25 +11344,11 @@ pub fn parse_update_login_profile_error( }, "NoSuchEntityException" => crate::error::UpdateLoginProfileError { meta: generic, - kind: crate::error::UpdateLoginProfileErrorKind::NoSuchEntityError({ - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateLoginProfileError::unhandled)?; - output.build() - }), - }, - "PasswordPolicyViolationException" => crate::error::UpdateLoginProfileError { - meta: generic, - kind: crate::error::UpdateLoginProfileErrorKind::PasswordPolicyViolationError({ + kind: crate::error::UpdateLoginProfileErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::password_policy_violation_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_password_policy_violation_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11406,13 +11356,28 @@ pub fn parse_update_login_profile_error( output.build() }), }, + "PasswordPolicyViolationException" => { + crate::error::UpdateLoginProfileError { + meta: generic, + kind: crate::error::UpdateLoginProfileErrorKind::PasswordPolicyViolationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::password_policy_violation_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_password_policy_violation_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateLoginProfileError::unhandled)?; + output.build() + }, + ), + } + } "ServiceFailureException" => crate::error::UpdateLoginProfileError { meta: generic, - kind: crate::error::UpdateLoginProfileErrorKind::ServiceFailureError({ + kind: crate::error::UpdateLoginProfileErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11443,7 +11408,7 @@ pub fn parse_update_login_profile_response( pub fn parse_update_open_id_connect_provider_thumbprint_error( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateOpenIDConnectProviderThumbprintOutput, + crate::output::UpdateOpenIdConnectProviderThumbprintOutput, crate::error::UpdateOpenIDConnectProviderThumbprintError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -11457,54 +11422,25 @@ pub fn parse_update_open_id_connect_provider_thumbprint_error( } }; Err(match error_code { - "InvalidInputException" => crate::error::UpdateOpenIDConnectProviderThumbprintError { - meta: generic, - kind: crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputError( - { - #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; - output.build() - }, - ), - }, - "NoSuchEntityException" => { - crate::error::UpdateOpenIDConnectProviderThumbprintError { - meta: generic, - kind: - crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityError( - { - #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; - output.build() - }, - ), - } - } - "ServiceFailureException" => crate::error::UpdateOpenIDConnectProviderThumbprintError { - meta: generic, - kind: crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureError( - { - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::UpdateOpenIDConnectProviderThumbprintError::generic(generic), + "InvalidInputException" => crate::error::UpdateOpenIDConnectProviderThumbprintError { meta: generic, kind: crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::InvalidInputException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_input_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; + output.build() + })}, + "NoSuchEntityException" => crate::error::UpdateOpenIDConnectProviderThumbprintError { meta: generic, kind: crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::NoSuchEntityException({ + #[allow(unused_mut)]let mut output = crate::error::no_such_entity_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; + output.build() + })}, + "ServiceFailureException" => crate::error::UpdateOpenIDConnectProviderThumbprintError { meta: generic, kind: crate::error::UpdateOpenIDConnectProviderThumbprintErrorKind::ServiceFailureException({ + #[allow(unused_mut)]let mut output = crate::error::service_failure_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpenIDConnectProviderThumbprintError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateOpenIDConnectProviderThumbprintError::generic(generic) }) } @@ -11512,7 +11448,7 @@ pub fn parse_update_open_id_connect_provider_thumbprint_error( pub fn parse_update_open_id_connect_provider_thumbprint_response( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateOpenIDConnectProviderThumbprintOutput, + crate::output::UpdateOpenIdConnectProviderThumbprintOutput, crate::error::UpdateOpenIDConnectProviderThumbprintError, > { Ok({ @@ -11537,11 +11473,11 @@ pub fn parse_update_role_error( Err(match error_code { "NoSuchEntityException" => crate::error::UpdateRoleError { meta: generic, - kind: crate::error::UpdateRoleErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateRoleErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11551,11 +11487,11 @@ pub fn parse_update_role_error( }, "ServiceFailureException" => crate::error::UpdateRoleError { meta: generic, - kind: crate::error::UpdateRoleErrorKind::ServiceFailureError({ + kind: crate::error::UpdateRoleErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11565,11 +11501,11 @@ pub fn parse_update_role_error( }, "UnmodifiableEntityException" => crate::error::UpdateRoleError { meta: generic, - kind: crate::error::UpdateRoleErrorKind::UnmodifiableEntityError({ + kind: crate::error::UpdateRoleErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11609,11 +11545,11 @@ pub fn parse_update_role_description_error( Err(match error_code { "NoSuchEntityException" => crate::error::UpdateRoleDescriptionError { meta: generic, - kind: crate::error::UpdateRoleDescriptionErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateRoleDescriptionErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11623,11 +11559,11 @@ pub fn parse_update_role_description_error( }, "ServiceFailureException" => crate::error::UpdateRoleDescriptionError { meta: generic, - kind: crate::error::UpdateRoleDescriptionErrorKind::ServiceFailureError({ + kind: crate::error::UpdateRoleDescriptionErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11637,11 +11573,11 @@ pub fn parse_update_role_description_error( }, "UnmodifiableEntityException" => crate::error::UpdateRoleDescriptionError { meta: generic, - kind: crate::error::UpdateRoleDescriptionErrorKind::UnmodifiableEntityError({ + kind: crate::error::UpdateRoleDescriptionErrorKind::UnmodifiableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unmodifiable_entity_error::Builder::default(); + let mut output = crate::error::unmodifiable_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_unmodifiable_entity_error_xml_err( + output = crate::xml_deser::deser_structure_unmodifiable_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11677,7 +11613,7 @@ pub fn parse_update_role_description_response( pub fn parse_update_saml_provider_error( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateSAMLProviderOutput, + crate::output::UpdateSamlProviderOutput, crate::error::UpdateSAMLProviderError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -11689,11 +11625,11 @@ pub fn parse_update_saml_provider_error( Err(match error_code { "InvalidInputException" => crate::error::UpdateSAMLProviderError { meta: generic, - kind: crate::error::UpdateSAMLProviderErrorKind::InvalidInputError({ + kind: crate::error::UpdateSAMLProviderErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -11703,11 +11639,11 @@ pub fn parse_update_saml_provider_error( }, "LimitExceededException" => crate::error::UpdateSAMLProviderError { meta: generic, - kind: crate::error::UpdateSAMLProviderErrorKind::LimitExceededError({ + kind: crate::error::UpdateSAMLProviderErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11717,11 +11653,11 @@ pub fn parse_update_saml_provider_error( }, "NoSuchEntityException" => crate::error::UpdateSAMLProviderError { meta: generic, - kind: crate::error::UpdateSAMLProviderErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateSAMLProviderErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11731,11 +11667,11 @@ pub fn parse_update_saml_provider_error( }, "ServiceFailureException" => crate::error::UpdateSAMLProviderError { meta: generic, - kind: crate::error::UpdateSAMLProviderErrorKind::ServiceFailureError({ + kind: crate::error::UpdateSAMLProviderErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11751,7 +11687,7 @@ pub fn parse_update_saml_provider_error( pub fn parse_update_saml_provider_response( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateSAMLProviderOutput, + crate::output::UpdateSamlProviderOutput, crate::error::UpdateSAMLProviderError, > { Ok({ @@ -11787,11 +11723,11 @@ pub fn parse_update_server_certificate_error( Err(match error_code { "EntityAlreadyExistsException" => crate::error::UpdateServerCertificateError { meta: generic, - kind: crate::error::UpdateServerCertificateErrorKind::EntityAlreadyExistsError({ + kind: crate::error::UpdateServerCertificateErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -11801,11 +11737,11 @@ pub fn parse_update_server_certificate_error( }, "LimitExceededException" => crate::error::UpdateServerCertificateError { meta: generic, - kind: crate::error::UpdateServerCertificateErrorKind::LimitExceededError({ + kind: crate::error::UpdateServerCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11815,11 +11751,11 @@ pub fn parse_update_server_certificate_error( }, "NoSuchEntityException" => crate::error::UpdateServerCertificateError { meta: generic, - kind: crate::error::UpdateServerCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateServerCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11829,11 +11765,11 @@ pub fn parse_update_server_certificate_error( }, "ServiceFailureException" => crate::error::UpdateServerCertificateError { meta: generic, - kind: crate::error::UpdateServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::UpdateServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11876,11 +11812,11 @@ pub fn parse_update_service_specific_credential_error( Err(match error_code { "NoSuchEntityException" => crate::error::UpdateServiceSpecificCredentialError { meta: generic, - kind: crate::error::UpdateServiceSpecificCredentialErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateServiceSpecificCredentialErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11928,11 +11864,11 @@ pub fn parse_update_signing_certificate_error( Err(match error_code { "LimitExceededException" => crate::error::UpdateSigningCertificateError { meta: generic, - kind: crate::error::UpdateSigningCertificateErrorKind::LimitExceededError({ + kind: crate::error::UpdateSigningCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -11942,11 +11878,11 @@ pub fn parse_update_signing_certificate_error( }, "NoSuchEntityException" => crate::error::UpdateSigningCertificateError { meta: generic, - kind: crate::error::UpdateSigningCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateSigningCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -11956,11 +11892,11 @@ pub fn parse_update_signing_certificate_error( }, "ServiceFailureException" => crate::error::UpdateSigningCertificateError { meta: generic, - kind: crate::error::UpdateSigningCertificateErrorKind::ServiceFailureError({ + kind: crate::error::UpdateSigningCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -11991,7 +11927,7 @@ pub fn parse_update_signing_certificate_response( pub fn parse_update_ssh_public_key_error( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateSSHPublicKeyOutput, + crate::output::UpdateSshPublicKeyOutput, crate::error::UpdateSSHPublicKeyError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -12003,11 +11939,11 @@ pub fn parse_update_ssh_public_key_error( Err(match error_code { "NoSuchEntityException" => crate::error::UpdateSSHPublicKeyError { meta: generic, - kind: crate::error::UpdateSSHPublicKeyErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateSSHPublicKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -12023,7 +11959,7 @@ pub fn parse_update_ssh_public_key_error( pub fn parse_update_ssh_public_key_response( response: &http::Response, ) -> std::result::Result< - crate::output::UpdateSSHPublicKeyOutput, + crate::output::UpdateSshPublicKeyOutput, crate::error::UpdateSSHPublicKeyError, > { Ok({ @@ -12045,27 +11981,26 @@ pub fn parse_update_user_error( None => return Err(crate::error::UpdateUserError::unhandled(generic)), }; Err(match error_code { - "ConcurrentModificationException" => crate::error::UpdateUserError { - meta: generic, - kind: crate::error::UpdateUserErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateUserError::unhandled)?; - output.build() - }), - }, + "ConcurrentModificationException" => { + crate::error::UpdateUserError { + meta: generic, + kind: crate::error::UpdateUserErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateUserError::unhandled)?; + output.build() + }), + } + } "EntityAlreadyExistsException" => crate::error::UpdateUserError { meta: generic, - kind: crate::error::UpdateUserErrorKind::EntityAlreadyExistsError({ + kind: crate::error::UpdateUserErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -12075,22 +12010,22 @@ pub fn parse_update_user_error( }, "EntityTemporarilyUnmodifiableException" => crate::error::UpdateUserError { meta: generic, - kind: crate::error::UpdateUserErrorKind::EntityTemporarilyUnmodifiableError({ + kind: crate::error::UpdateUserErrorKind::EntityTemporarilyUnmodifiableException({ #[allow(unused_mut)] let mut output = - crate::error::entity_temporarily_unmodifiable_error::Builder::default(); + crate::error::entity_temporarily_unmodifiable_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateUserError::unhandled)?; + output = crate::xml_deser::deser_structure_entity_temporarily_unmodifiable_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UpdateUserError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::UpdateUserError { meta: generic, - kind: crate::error::UpdateUserErrorKind::LimitExceededError({ + kind: crate::error::UpdateUserErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -12100,11 +12035,11 @@ pub fn parse_update_user_error( }, "NoSuchEntityException" => crate::error::UpdateUserError { meta: generic, - kind: crate::error::UpdateUserErrorKind::NoSuchEntityError({ + kind: crate::error::UpdateUserErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -12114,11 +12049,11 @@ pub fn parse_update_user_error( }, "ServiceFailureException" => crate::error::UpdateUserError { meta: generic, - kind: crate::error::UpdateUserErrorKind::ServiceFailureError({ + kind: crate::error::UpdateUserErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -12162,25 +12097,24 @@ pub fn parse_upload_server_certificate_error( Err(match error_code { "ConcurrentModificationException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_concurrent_modification_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UploadServerCertificateError::unhandled)?; - output.build() - }), + kind: crate::error::UploadServerCertificateErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_concurrent_modification_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UploadServerCertificateError::unhandled)?; + output.build() + }, + ), }, "EntityAlreadyExistsException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::EntityAlreadyExistsError({ + kind: crate::error::UploadServerCertificateErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -12190,11 +12124,11 @@ pub fn parse_upload_server_certificate_error( }, "InvalidInputException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::InvalidInputError({ + kind: crate::error::UploadServerCertificateErrorKind::InvalidInputException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_input_error::Builder::default(); + let mut output = crate::error::invalid_input_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_input_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_input_exception_xml_err( response.body().as_ref(), output, ) @@ -12204,11 +12138,11 @@ pub fn parse_upload_server_certificate_error( }, "KeyPairMismatchException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::KeyPairMismatchError({ + kind: crate::error::UploadServerCertificateErrorKind::KeyPairMismatchException({ #[allow(unused_mut)] - let mut output = crate::error::key_pair_mismatch_error::Builder::default(); + let mut output = crate::error::key_pair_mismatch_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_key_pair_mismatch_error_xml_err( + output = crate::xml_deser::deser_structure_key_pair_mismatch_exception_xml_err( response.body().as_ref(), output, ) @@ -12218,11 +12152,11 @@ pub fn parse_upload_server_certificate_error( }, "LimitExceededException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::LimitExceededError({ + kind: crate::error::UploadServerCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -12232,11 +12166,11 @@ pub fn parse_upload_server_certificate_error( }, "MalformedCertificateException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::MalformedCertificateError({ + kind: crate::error::UploadServerCertificateErrorKind::MalformedCertificateException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_certificate_error::Builder::default(); + let mut output = crate::error::malformed_certificate_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_certificate_error_xml_err( + output = crate::xml_deser::deser_structure_malformed_certificate_exception_xml_err( response.body().as_ref(), output, ) @@ -12246,11 +12180,11 @@ pub fn parse_upload_server_certificate_error( }, "ServiceFailureException" => crate::error::UploadServerCertificateError { meta: generic, - kind: crate::error::UploadServerCertificateErrorKind::ServiceFailureError({ + kind: crate::error::UploadServerCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -12302,11 +12236,11 @@ pub fn parse_upload_signing_certificate_error( Err(match error_code { "DuplicateCertificateException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::DuplicateCertificateError({ + kind: crate::error::UploadSigningCertificateErrorKind::DuplicateCertificateException({ #[allow(unused_mut)] - let mut output = crate::error::duplicate_certificate_error::Builder::default(); + let mut output = crate::error::duplicate_certificate_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_duplicate_certificate_error_xml_err( + output = crate::xml_deser::deser_structure_duplicate_certificate_exception_xml_err( response.body().as_ref(), output, ) @@ -12316,11 +12250,11 @@ pub fn parse_upload_signing_certificate_error( }, "EntityAlreadyExistsException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::EntityAlreadyExistsError({ + kind: crate::error::UploadSigningCertificateErrorKind::EntityAlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::entity_already_exists_error::Builder::default(); + let mut output = crate::error::entity_already_exists_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_entity_already_exists_error_xml_err( + output = crate::xml_deser::deser_structure_entity_already_exists_exception_xml_err( response.body().as_ref(), output, ) @@ -12330,11 +12264,11 @@ pub fn parse_upload_signing_certificate_error( }, "InvalidCertificateException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::InvalidCertificateError({ + kind: crate::error::UploadSigningCertificateErrorKind::InvalidCertificateException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_certificate_error::Builder::default(); + let mut output = crate::error::invalid_certificate_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_certificate_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_certificate_exception_xml_err( response.body().as_ref(), output, ) @@ -12344,11 +12278,11 @@ pub fn parse_upload_signing_certificate_error( }, "LimitExceededException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::LimitExceededError({ + kind: crate::error::UploadSigningCertificateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -12358,11 +12292,11 @@ pub fn parse_upload_signing_certificate_error( }, "MalformedCertificateException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::MalformedCertificateError({ + kind: crate::error::UploadSigningCertificateErrorKind::MalformedCertificateException({ #[allow(unused_mut)] - let mut output = crate::error::malformed_certificate_error::Builder::default(); + let mut output = crate::error::malformed_certificate_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_malformed_certificate_error_xml_err( + output = crate::xml_deser::deser_structure_malformed_certificate_exception_xml_err( response.body().as_ref(), output, ) @@ -12372,11 +12306,11 @@ pub fn parse_upload_signing_certificate_error( }, "NoSuchEntityException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::NoSuchEntityError({ + kind: crate::error::UploadSigningCertificateErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -12386,11 +12320,11 @@ pub fn parse_upload_signing_certificate_error( }, "ServiceFailureException" => crate::error::UploadSigningCertificateError { meta: generic, - kind: crate::error::UploadSigningCertificateErrorKind::ServiceFailureError({ + kind: crate::error::UploadSigningCertificateErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_service_failure_error_xml_err( + output = crate::xml_deser::deser_structure_service_failure_exception_xml_err( response.body().as_ref(), output, ) @@ -12426,7 +12360,7 @@ pub fn parse_upload_signing_certificate_response( pub fn parse_upload_ssh_public_key_error( response: &http::Response, ) -> std::result::Result< - crate::output::UploadSSHPublicKeyOutput, + crate::output::UploadSshPublicKeyOutput, crate::error::UploadSSHPublicKeyError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -12436,27 +12370,26 @@ pub fn parse_upload_ssh_public_key_error( None => return Err(crate::error::UploadSSHPublicKeyError::unhandled(generic)), }; Err(match error_code { - "DuplicateSSHPublicKeyException" => crate::error::UploadSSHPublicKeyError { - meta: generic, - kind: crate::error::UploadSSHPublicKeyErrorKind::DuplicateSSHPublicKeyError({ - #[allow(unused_mut)] - let mut output = crate::error::duplicate_ssh_public_key_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_duplicate_ssh_public_key_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UploadSSHPublicKeyError::unhandled)?; - output.build() - }), - }, + "DuplicateSSHPublicKeyException" => { + crate::error::UploadSSHPublicKeyError { + meta: generic, + kind: crate::error::UploadSSHPublicKeyErrorKind::DuplicateSshPublicKeyException({ + #[allow(unused_mut)] + let mut output = + crate::error::duplicate_ssh_public_key_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_duplicate_ssh_public_key_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UploadSSHPublicKeyError::unhandled)?; + output.build() + }), + } + } "InvalidPublicKeyException" => crate::error::UploadSSHPublicKeyError { meta: generic, - kind: crate::error::UploadSSHPublicKeyErrorKind::InvalidPublicKeyError({ + kind: crate::error::UploadSSHPublicKeyErrorKind::InvalidPublicKeyException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_public_key_error::Builder::default(); + let mut output = crate::error::invalid_public_key_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_public_key_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_public_key_exception_xml_err( response.body().as_ref(), output, ) @@ -12466,11 +12399,11 @@ pub fn parse_upload_ssh_public_key_error( }, "LimitExceededException" => crate::error::UploadSSHPublicKeyError { meta: generic, - kind: crate::error::UploadSSHPublicKeyErrorKind::LimitExceededError({ + kind: crate::error::UploadSSHPublicKeyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -12480,11 +12413,11 @@ pub fn parse_upload_ssh_public_key_error( }, "NoSuchEntityException" => crate::error::UploadSSHPublicKeyError { meta: generic, - kind: crate::error::UploadSSHPublicKeyErrorKind::NoSuchEntityError({ + kind: crate::error::UploadSSHPublicKeyErrorKind::NoSuchEntityException({ #[allow(unused_mut)] - let mut output = crate::error::no_such_entity_error::Builder::default(); + let mut output = crate::error::no_such_entity_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_no_such_entity_error_xml_err( + output = crate::xml_deser::deser_structure_no_such_entity_exception_xml_err( response.body().as_ref(), output, ) @@ -12494,14 +12427,17 @@ pub fn parse_upload_ssh_public_key_error( }, "UnrecognizedPublicKeyEncodingException" => crate::error::UploadSSHPublicKeyError { meta: generic, - kind: crate::error::UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingError({ - #[allow(unused_mut)] - let mut output = - crate::error::unrecognized_public_key_encoding_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_unrecognized_public_key_encoding_error_xml_err(response.body().as_ref(), output).map_err(crate::error::UploadSSHPublicKeyError::unhandled)?; - output.build() - }), + kind: crate::error::UploadSSHPublicKeyErrorKind::UnrecognizedPublicKeyEncodingException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unrecognized_public_key_encoding_exception::Builder::default( + ); + let _ = response; + output = crate::xml_deser::deser_structure_unrecognized_public_key_encoding_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::UploadSSHPublicKeyError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::UploadSSHPublicKeyError::generic(generic), }) @@ -12511,7 +12447,7 @@ pub fn parse_upload_ssh_public_key_error( pub fn parse_upload_ssh_public_key_response( response: &http::Response, ) -> std::result::Result< - crate::output::UploadSSHPublicKeyOutput, + crate::output::UploadSshPublicKeyOutput, crate::error::UploadSSHPublicKeyError, > { Ok({ diff --git a/sdk/iam/src/operation_ser.rs b/sdk/iam/src/operation_ser.rs index f525568f61d6..90ff9da076d5 100644 --- a/sdk/iam/src/operation_ser.rs +++ b/sdk/iam/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_client_id_to_open_id_connect_provider( - input: &crate::input::AddClientIDToOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::AddClientIdToOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -25,7 +25,7 @@ pub fn serialize_operation_add_client_id_to_open_id_connect_provider( pub fn serialize_operation_add_role_to_instance_profile( input: &crate::input::AddRoleToInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -46,7 +46,7 @@ pub fn serialize_operation_add_role_to_instance_profile( pub fn serialize_operation_add_user_to_group( input: &crate::input::AddUserToGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddUserToGroup", "2010-05-08"); @@ -66,7 +66,7 @@ pub fn serialize_operation_add_user_to_group( pub fn serialize_operation_attach_group_policy( input: &crate::input::AttachGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachGroupPolicy", "2010-05-08"); @@ -86,7 +86,7 @@ pub fn serialize_operation_attach_group_policy( pub fn serialize_operation_attach_role_policy( input: &crate::input::AttachRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachRolePolicy", "2010-05-08"); @@ -106,7 +106,7 @@ pub fn serialize_operation_attach_role_policy( pub fn serialize_operation_attach_user_policy( input: &crate::input::AttachUserPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AttachUserPolicy", "2010-05-08"); @@ -126,7 +126,7 @@ pub fn serialize_operation_attach_user_policy( pub fn serialize_operation_change_password( input: &crate::input::ChangePasswordInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ChangePassword", "2010-05-08"); @@ -146,7 +146,7 @@ pub fn serialize_operation_change_password( pub fn serialize_operation_create_access_key( input: &crate::input::CreateAccessKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateAccessKey", "2010-05-08"); @@ -161,7 +161,7 @@ pub fn serialize_operation_create_access_key( pub fn serialize_operation_create_account_alias( input: &crate::input::CreateAccountAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateAccountAlias", "2010-05-08"); @@ -176,7 +176,7 @@ pub fn serialize_operation_create_account_alias( pub fn serialize_operation_create_group( input: &crate::input::CreateGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateGroup", "2010-05-08"); @@ -196,7 +196,7 @@ pub fn serialize_operation_create_group( pub fn serialize_operation_create_instance_profile( input: &crate::input::CreateInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -228,7 +228,7 @@ pub fn serialize_operation_create_instance_profile( pub fn serialize_operation_create_login_profile( input: &crate::input::CreateLoginProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateLoginProfile", "2010-05-08"); @@ -252,8 +252,8 @@ pub fn serialize_operation_create_login_profile( } pub fn serialize_operation_create_open_id_connect_provider( - input: &crate::input::CreateOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::CreateOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -302,7 +302,7 @@ pub fn serialize_operation_create_open_id_connect_provider( pub fn serialize_operation_create_policy( input: &crate::input::CreatePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreatePolicy", "2010-05-08"); @@ -343,7 +343,7 @@ pub fn serialize_operation_create_policy( pub fn serialize_operation_create_policy_version( input: &crate::input::CreatePolicyVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreatePolicyVersion", "2010-05-08"); @@ -368,7 +368,7 @@ pub fn serialize_operation_create_policy_version( pub fn serialize_operation_create_role( input: &crate::input::CreateRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateRole", "2010-05-08"); @@ -421,8 +421,8 @@ pub fn serialize_operation_create_role( } pub fn serialize_operation_create_saml_provider( - input: &crate::input::CreateSAMLProviderInput, -) -> Result { + input: &crate::input::CreateSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateSAMLProvider", "2010-05-08"); @@ -453,7 +453,7 @@ pub fn serialize_operation_create_saml_provider( pub fn serialize_operation_create_service_linked_role( input: &crate::input::CreateServiceLinkedRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -479,7 +479,7 @@ pub fn serialize_operation_create_service_linked_role( pub fn serialize_operation_create_service_specific_credential( input: &crate::input::CreateServiceSpecificCredentialInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -500,7 +500,7 @@ pub fn serialize_operation_create_service_specific_credential( pub fn serialize_operation_create_user( input: &crate::input::CreateUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateUser", "2010-05-08"); @@ -535,8 +535,8 @@ pub fn serialize_operation_create_user( } pub fn serialize_operation_create_virtual_mfa_device( - input: &crate::input::CreateVirtualMFADeviceInput, -) -> Result { + input: &crate::input::CreateVirtualMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -567,8 +567,8 @@ pub fn serialize_operation_create_virtual_mfa_device( } pub fn serialize_operation_deactivate_mfa_device( - input: &crate::input::DeactivateMFADeviceInput, -) -> Result { + input: &crate::input::DeactivateMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeactivateMFADevice", "2010-05-08"); @@ -588,7 +588,7 @@ pub fn serialize_operation_deactivate_mfa_device( pub fn serialize_operation_delete_access_key( input: &crate::input::DeleteAccessKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteAccessKey", "2010-05-08"); @@ -608,7 +608,7 @@ pub fn serialize_operation_delete_access_key( pub fn serialize_operation_delete_account_alias( input: &crate::input::DeleteAccountAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteAccountAlias", "2010-05-08"); @@ -623,7 +623,7 @@ pub fn serialize_operation_delete_account_alias( pub fn serialize_operation_delete_account_password_policy( input: &crate::input::DeleteAccountPasswordPolicyInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -635,7 +635,7 @@ pub fn serialize_operation_delete_account_password_policy( pub fn serialize_operation_delete_group( input: &crate::input::DeleteGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteGroup", "2010-05-08"); @@ -650,7 +650,7 @@ pub fn serialize_operation_delete_group( pub fn serialize_operation_delete_group_policy( input: &crate::input::DeleteGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteGroupPolicy", "2010-05-08"); @@ -670,7 +670,7 @@ pub fn serialize_operation_delete_group_policy( pub fn serialize_operation_delete_instance_profile( input: &crate::input::DeleteInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -686,7 +686,7 @@ pub fn serialize_operation_delete_instance_profile( pub fn serialize_operation_delete_login_profile( input: &crate::input::DeleteLoginProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteLoginProfile", "2010-05-08"); @@ -700,8 +700,8 @@ pub fn serialize_operation_delete_login_profile( } pub fn serialize_operation_delete_open_id_connect_provider( - input: &crate::input::DeleteOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::DeleteOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -717,7 +717,7 @@ pub fn serialize_operation_delete_open_id_connect_provider( pub fn serialize_operation_delete_policy( input: &crate::input::DeletePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeletePolicy", "2010-05-08"); @@ -732,7 +732,7 @@ pub fn serialize_operation_delete_policy( pub fn serialize_operation_delete_policy_version( input: &crate::input::DeletePolicyVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeletePolicyVersion", "2010-05-08"); @@ -752,7 +752,7 @@ pub fn serialize_operation_delete_policy_version( pub fn serialize_operation_delete_role( input: &crate::input::DeleteRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteRole", "2010-05-08"); @@ -767,7 +767,7 @@ pub fn serialize_operation_delete_role( pub fn serialize_operation_delete_role_permissions_boundary( input: &crate::input::DeleteRolePermissionsBoundaryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -783,7 +783,7 @@ pub fn serialize_operation_delete_role_permissions_boundary( pub fn serialize_operation_delete_role_policy( input: &crate::input::DeleteRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteRolePolicy", "2010-05-08"); @@ -802,8 +802,8 @@ pub fn serialize_operation_delete_role_policy( } pub fn serialize_operation_delete_saml_provider( - input: &crate::input::DeleteSAMLProviderInput, -) -> Result { + input: &crate::input::DeleteSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteSAMLProvider", "2010-05-08"); @@ -818,7 +818,7 @@ pub fn serialize_operation_delete_saml_provider( pub fn serialize_operation_delete_server_certificate( input: &crate::input::DeleteServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -834,7 +834,7 @@ pub fn serialize_operation_delete_server_certificate( pub fn serialize_operation_delete_service_linked_role( input: &crate::input::DeleteServiceLinkedRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -850,7 +850,7 @@ pub fn serialize_operation_delete_service_linked_role( pub fn serialize_operation_delete_service_specific_credential( input: &crate::input::DeleteServiceSpecificCredentialInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -871,7 +871,7 @@ pub fn serialize_operation_delete_service_specific_credential( pub fn serialize_operation_delete_signing_certificate( input: &crate::input::DeleteSigningCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -891,8 +891,8 @@ pub fn serialize_operation_delete_signing_certificate( } pub fn serialize_operation_delete_ssh_public_key( - input: &crate::input::DeleteSSHPublicKeyInput, -) -> Result { + input: &crate::input::DeleteSshPublicKeyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteSSHPublicKey", "2010-05-08"); @@ -912,7 +912,7 @@ pub fn serialize_operation_delete_ssh_public_key( pub fn serialize_operation_delete_user( input: &crate::input::DeleteUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteUser", "2010-05-08"); @@ -927,7 +927,7 @@ pub fn serialize_operation_delete_user( pub fn serialize_operation_delete_user_permissions_boundary( input: &crate::input::DeleteUserPermissionsBoundaryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -943,7 +943,7 @@ pub fn serialize_operation_delete_user_permissions_boundary( pub fn serialize_operation_delete_user_policy( input: &crate::input::DeleteUserPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteUserPolicy", "2010-05-08"); @@ -962,8 +962,8 @@ pub fn serialize_operation_delete_user_policy( } pub fn serialize_operation_delete_virtual_mfa_device( - input: &crate::input::DeleteVirtualMFADeviceInput, -) -> Result { + input: &crate::input::DeleteVirtualMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -979,7 +979,7 @@ pub fn serialize_operation_delete_virtual_mfa_device( pub fn serialize_operation_detach_group_policy( input: &crate::input::DetachGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachGroupPolicy", "2010-05-08"); @@ -999,7 +999,7 @@ pub fn serialize_operation_detach_group_policy( pub fn serialize_operation_detach_role_policy( input: &crate::input::DetachRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachRolePolicy", "2010-05-08"); @@ -1019,7 +1019,7 @@ pub fn serialize_operation_detach_role_policy( pub fn serialize_operation_detach_user_policy( input: &crate::input::DetachUserPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DetachUserPolicy", "2010-05-08"); @@ -1038,8 +1038,8 @@ pub fn serialize_operation_detach_user_policy( } pub fn serialize_operation_enable_mfa_device( - input: &crate::input::EnableMFADeviceInput, -) -> Result { + input: &crate::input::EnableMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "EnableMFADevice", "2010-05-08"); @@ -1069,7 +1069,7 @@ pub fn serialize_operation_enable_mfa_device( pub fn serialize_operation_generate_credential_report( input: &crate::input::GenerateCredentialReportInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -1081,7 +1081,7 @@ pub fn serialize_operation_generate_credential_report( pub fn serialize_operation_generate_organizations_access_report( input: &crate::input::GenerateOrganizationsAccessReportInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1102,7 +1102,7 @@ pub fn serialize_operation_generate_organizations_access_report( pub fn serialize_operation_generate_service_last_accessed_details( input: &crate::input::GenerateServiceLastAccessedDetailsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -1126,7 +1126,7 @@ pub fn serialize_operation_generate_service_last_accessed_details( pub fn serialize_operation_get_access_key_last_used( input: &crate::input::GetAccessKeyLastUsedInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetAccessKeyLastUsed", "2010-05-08"); @@ -1141,7 +1141,7 @@ pub fn serialize_operation_get_access_key_last_used( pub fn serialize_operation_get_account_authorization_details( input: &crate::input::GetAccountAuthorizationDetailsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1176,7 +1176,7 @@ pub fn serialize_operation_get_account_authorization_details( pub fn serialize_operation_get_account_password_policy( input: &crate::input::GetAccountPasswordPolicyInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -1188,7 +1188,7 @@ pub fn serialize_operation_get_account_password_policy( pub fn serialize_operation_get_account_summary( input: &crate::input::GetAccountSummaryInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -1199,7 +1199,7 @@ pub fn serialize_operation_get_account_summary( pub fn serialize_operation_get_context_keys_for_custom_policy( input: &crate::input::GetContextKeysForCustomPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1221,7 +1221,7 @@ pub fn serialize_operation_get_context_keys_for_custom_policy( pub fn serialize_operation_get_context_keys_for_principal_policy( input: &crate::input::GetContextKeysForPrincipalPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1248,7 +1248,7 @@ pub fn serialize_operation_get_context_keys_for_principal_policy( pub fn serialize_operation_get_credential_report( input: &crate::input::GetCredentialReportInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -1259,7 +1259,7 @@ pub fn serialize_operation_get_credential_report( pub fn serialize_operation_get_group( input: &crate::input::GetGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetGroup", "2010-05-08"); @@ -1287,7 +1287,7 @@ pub fn serialize_operation_get_group( pub fn serialize_operation_get_group_policy( input: &crate::input::GetGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetGroupPolicy", "2010-05-08"); @@ -1307,7 +1307,7 @@ pub fn serialize_operation_get_group_policy( pub fn serialize_operation_get_instance_profile( input: &crate::input::GetInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetInstanceProfile", "2010-05-08"); @@ -1322,7 +1322,7 @@ pub fn serialize_operation_get_instance_profile( pub fn serialize_operation_get_login_profile( input: &crate::input::GetLoginProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetLoginProfile", "2010-05-08"); @@ -1336,8 +1336,8 @@ pub fn serialize_operation_get_login_profile( } pub fn serialize_operation_get_open_id_connect_provider( - input: &crate::input::GetOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::GetOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1353,7 +1353,7 @@ pub fn serialize_operation_get_open_id_connect_provider( pub fn serialize_operation_get_organizations_access_report( input: &crate::input::GetOrganizationsAccessReportInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1387,7 +1387,7 @@ pub fn serialize_operation_get_organizations_access_report( pub fn serialize_operation_get_policy( input: &crate::input::GetPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetPolicy", "2010-05-08"); @@ -1402,7 +1402,7 @@ pub fn serialize_operation_get_policy( pub fn serialize_operation_get_policy_version( input: &crate::input::GetPolicyVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetPolicyVersion", "2010-05-08"); @@ -1422,7 +1422,7 @@ pub fn serialize_operation_get_policy_version( pub fn serialize_operation_get_role( input: &crate::input::GetRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetRole", "2010-05-08"); @@ -1437,7 +1437,7 @@ pub fn serialize_operation_get_role( pub fn serialize_operation_get_role_policy( input: &crate::input::GetRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetRolePolicy", "2010-05-08"); @@ -1456,8 +1456,8 @@ pub fn serialize_operation_get_role_policy( } pub fn serialize_operation_get_saml_provider( - input: &crate::input::GetSAMLProviderInput, -) -> Result { + input: &crate::input::GetSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetSAMLProvider", "2010-05-08"); @@ -1472,7 +1472,7 @@ pub fn serialize_operation_get_saml_provider( pub fn serialize_operation_get_server_certificate( input: &crate::input::GetServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetServerCertificate", "2010-05-08"); @@ -1487,7 +1487,7 @@ pub fn serialize_operation_get_server_certificate( pub fn serialize_operation_get_service_last_accessed_details( input: &crate::input::GetServiceLastAccessedDetailsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1516,7 +1516,7 @@ pub fn serialize_operation_get_service_last_accessed_details( pub fn serialize_operation_get_service_last_accessed_details_with_entities( input: &crate::input::GetServiceLastAccessedDetailsWithEntitiesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -1553,7 +1553,7 @@ pub fn serialize_operation_get_service_last_accessed_details_with_entities( pub fn serialize_operation_get_service_linked_role_deletion_status( input: &crate::input::GetServiceLinkedRoleDeletionStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -1571,8 +1571,8 @@ pub fn serialize_operation_get_service_linked_role_deletion_status( } pub fn serialize_operation_get_ssh_public_key( - input: &crate::input::GetSSHPublicKeyInput, -) -> Result { + input: &crate::input::GetSshPublicKeyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetSSHPublicKey", "2010-05-08"); @@ -1597,7 +1597,7 @@ pub fn serialize_operation_get_ssh_public_key( pub fn serialize_operation_get_user( input: &crate::input::GetUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetUser", "2010-05-08"); @@ -1612,7 +1612,7 @@ pub fn serialize_operation_get_user( pub fn serialize_operation_get_user_policy( input: &crate::input::GetUserPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetUserPolicy", "2010-05-08"); @@ -1632,7 +1632,7 @@ pub fn serialize_operation_get_user_policy( pub fn serialize_operation_list_access_keys( input: &crate::input::ListAccessKeysInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListAccessKeys", "2010-05-08"); @@ -1660,7 +1660,7 @@ pub fn serialize_operation_list_access_keys( pub fn serialize_operation_list_account_aliases( input: &crate::input::ListAccountAliasesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListAccountAliases", "2010-05-08"); @@ -1683,7 +1683,7 @@ pub fn serialize_operation_list_account_aliases( pub fn serialize_operation_list_attached_group_policies( input: &crate::input::ListAttachedGroupPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1717,7 +1717,7 @@ pub fn serialize_operation_list_attached_group_policies( pub fn serialize_operation_list_attached_role_policies( input: &crate::input::ListAttachedRolePoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1751,7 +1751,7 @@ pub fn serialize_operation_list_attached_role_policies( pub fn serialize_operation_list_attached_user_policies( input: &crate::input::ListAttachedUserPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1785,7 +1785,7 @@ pub fn serialize_operation_list_attached_user_policies( pub fn serialize_operation_list_entities_for_policy( input: &crate::input::ListEntitiesForPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1829,7 +1829,7 @@ pub fn serialize_operation_list_entities_for_policy( pub fn serialize_operation_list_group_policies( input: &crate::input::ListGroupPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListGroupPolicies", "2010-05-08"); @@ -1857,7 +1857,7 @@ pub fn serialize_operation_list_group_policies( pub fn serialize_operation_list_groups( input: &crate::input::ListGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListGroups", "2010-05-08"); @@ -1885,7 +1885,7 @@ pub fn serialize_operation_list_groups( pub fn serialize_operation_list_groups_for_user( input: &crate::input::ListGroupsForUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListGroupsForUser", "2010-05-08"); @@ -1913,7 +1913,7 @@ pub fn serialize_operation_list_groups_for_user( pub fn serialize_operation_list_instance_profiles( input: &crate::input::ListInstanceProfilesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListInstanceProfiles", "2010-05-08"); @@ -1941,7 +1941,7 @@ pub fn serialize_operation_list_instance_profiles( pub fn serialize_operation_list_instance_profiles_for_role( input: &crate::input::ListInstanceProfilesForRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1970,7 +1970,7 @@ pub fn serialize_operation_list_instance_profiles_for_role( pub fn serialize_operation_list_instance_profile_tags( input: &crate::input::ListInstanceProfileTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1998,8 +1998,8 @@ pub fn serialize_operation_list_instance_profile_tags( } pub fn serialize_operation_list_mfa_devices( - input: &crate::input::ListMFADevicesInput, -) -> Result { + input: &crate::input::ListMfaDevicesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListMFADevices", "2010-05-08"); @@ -2026,8 +2026,8 @@ pub fn serialize_operation_list_mfa_devices( } pub fn serialize_operation_list_mfa_device_tags( - input: &crate::input::ListMFADeviceTagsInput, -) -> Result { + input: &crate::input::ListMfaDeviceTagsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListMFADeviceTags", "2010-05-08"); @@ -2054,8 +2054,8 @@ pub fn serialize_operation_list_mfa_device_tags( } pub fn serialize_operation_list_open_id_connect_providers( - input: &crate::input::ListOpenIDConnectProvidersInput, -) -> Result { + input: &crate::input::ListOpenIdConnectProvidersInput, +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -2066,8 +2066,8 @@ pub fn serialize_operation_list_open_id_connect_providers( } pub fn serialize_operation_list_open_id_connect_provider_tags( - input: &crate::input::ListOpenIDConnectProviderTagsInput, -) -> Result { + input: &crate::input::ListOpenIdConnectProviderTagsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2096,7 +2096,7 @@ pub fn serialize_operation_list_open_id_connect_provider_tags( pub fn serialize_operation_list_policies( input: &crate::input::ListPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListPolicies", "2010-05-08"); @@ -2139,7 +2139,7 @@ pub fn serialize_operation_list_policies( pub fn serialize_operation_list_policies_granting_service_access( input: &crate::input::ListPoliciesGrantingServiceAccessInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2171,7 +2171,7 @@ pub fn serialize_operation_list_policies_granting_service_access( pub fn serialize_operation_list_policy_tags( input: &crate::input::ListPolicyTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListPolicyTags", "2010-05-08"); @@ -2199,7 +2199,7 @@ pub fn serialize_operation_list_policy_tags( pub fn serialize_operation_list_policy_versions( input: &crate::input::ListPolicyVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListPolicyVersions", "2010-05-08"); @@ -2227,7 +2227,7 @@ pub fn serialize_operation_list_policy_versions( pub fn serialize_operation_list_role_policies( input: &crate::input::ListRolePoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListRolePolicies", "2010-05-08"); @@ -2255,7 +2255,7 @@ pub fn serialize_operation_list_role_policies( pub fn serialize_operation_list_roles( input: &crate::input::ListRolesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListRoles", "2010-05-08"); @@ -2283,7 +2283,7 @@ pub fn serialize_operation_list_roles( pub fn serialize_operation_list_role_tags( input: &crate::input::ListRoleTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListRoleTags", "2010-05-08"); @@ -2310,8 +2310,8 @@ pub fn serialize_operation_list_role_tags( } pub fn serialize_operation_list_saml_providers( - input: &crate::input::ListSAMLProvidersInput, -) -> Result { + input: &crate::input::ListSamlProvidersInput, +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -2321,8 +2321,8 @@ pub fn serialize_operation_list_saml_providers( } pub fn serialize_operation_list_saml_provider_tags( - input: &crate::input::ListSAMLProviderTagsInput, -) -> Result { + input: &crate::input::ListSamlProviderTagsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListSAMLProviderTags", "2010-05-08"); @@ -2350,7 +2350,7 @@ pub fn serialize_operation_list_saml_provider_tags( pub fn serialize_operation_list_server_certificates( input: &crate::input::ListServerCertificatesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2379,7 +2379,7 @@ pub fn serialize_operation_list_server_certificates( pub fn serialize_operation_list_server_certificate_tags( input: &crate::input::ListServerCertificateTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2408,7 +2408,7 @@ pub fn serialize_operation_list_server_certificate_tags( pub fn serialize_operation_list_service_specific_credentials( input: &crate::input::ListServiceSpecificCredentialsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2429,7 +2429,7 @@ pub fn serialize_operation_list_service_specific_credentials( pub fn serialize_operation_list_signing_certificates( input: &crate::input::ListSigningCertificatesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2457,8 +2457,8 @@ pub fn serialize_operation_list_signing_certificates( } pub fn serialize_operation_list_ssh_public_keys( - input: &crate::input::ListSSHPublicKeysInput, -) -> Result { + input: &crate::input::ListSshPublicKeysInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListSSHPublicKeys", "2010-05-08"); @@ -2486,7 +2486,7 @@ pub fn serialize_operation_list_ssh_public_keys( pub fn serialize_operation_list_user_policies( input: &crate::input::ListUserPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListUserPolicies", "2010-05-08"); @@ -2514,7 +2514,7 @@ pub fn serialize_operation_list_user_policies( pub fn serialize_operation_list_users( input: &crate::input::ListUsersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListUsers", "2010-05-08"); @@ -2542,7 +2542,7 @@ pub fn serialize_operation_list_users( pub fn serialize_operation_list_user_tags( input: &crate::input::ListUserTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListUserTags", "2010-05-08"); @@ -2569,8 +2569,8 @@ pub fn serialize_operation_list_user_tags( } pub fn serialize_operation_list_virtual_mfa_devices( - input: &crate::input::ListVirtualMFADevicesInput, -) -> Result { + input: &crate::input::ListVirtualMfaDevicesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2599,7 +2599,7 @@ pub fn serialize_operation_list_virtual_mfa_devices( pub fn serialize_operation_put_group_policy( input: &crate::input::PutGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "PutGroupPolicy", "2010-05-08"); @@ -2624,7 +2624,7 @@ pub fn serialize_operation_put_group_policy( pub fn serialize_operation_put_role_permissions_boundary( input: &crate::input::PutRolePermissionsBoundaryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2645,7 +2645,7 @@ pub fn serialize_operation_put_role_permissions_boundary( pub fn serialize_operation_put_role_policy( input: &crate::input::PutRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "PutRolePolicy", "2010-05-08"); @@ -2670,7 +2670,7 @@ pub fn serialize_operation_put_role_policy( pub fn serialize_operation_put_user_permissions_boundary( input: &crate::input::PutUserPermissionsBoundaryInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2691,7 +2691,7 @@ pub fn serialize_operation_put_user_permissions_boundary( pub fn serialize_operation_put_user_policy( input: &crate::input::PutUserPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "PutUserPolicy", "2010-05-08"); @@ -2715,8 +2715,8 @@ pub fn serialize_operation_put_user_policy( } pub fn serialize_operation_remove_client_id_from_open_id_connect_provider( - input: &crate::input::RemoveClientIDFromOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::RemoveClientIdFromOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -2740,7 +2740,7 @@ pub fn serialize_operation_remove_client_id_from_open_id_connect_provider( pub fn serialize_operation_remove_role_from_instance_profile( input: &crate::input::RemoveRoleFromInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2761,7 +2761,7 @@ pub fn serialize_operation_remove_role_from_instance_profile( pub fn serialize_operation_remove_user_from_group( input: &crate::input::RemoveUserFromGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RemoveUserFromGroup", "2010-05-08"); @@ -2781,7 +2781,7 @@ pub fn serialize_operation_remove_user_from_group( pub fn serialize_operation_reset_service_specific_credential( input: &crate::input::ResetServiceSpecificCredentialInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2801,8 +2801,8 @@ pub fn serialize_operation_reset_service_specific_credential( } pub fn serialize_operation_resync_mfa_device( - input: &crate::input::ResyncMFADeviceInput, -) -> Result { + input: &crate::input::ResyncMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ResyncMFADevice", "2010-05-08"); @@ -2832,7 +2832,7 @@ pub fn serialize_operation_resync_mfa_device( pub fn serialize_operation_set_default_policy_version( input: &crate::input::SetDefaultPolicyVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2853,7 +2853,7 @@ pub fn serialize_operation_set_default_policy_version( pub fn serialize_operation_set_security_token_service_preferences( input: &crate::input::SetSecurityTokenServicePreferencesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -2872,7 +2872,7 @@ pub fn serialize_operation_set_security_token_service_preferences( pub fn serialize_operation_simulate_custom_policy( input: &crate::input::SimulateCustomPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SimulateCustomPolicy", "2010-05-08"); @@ -2970,7 +2970,7 @@ pub fn serialize_operation_simulate_custom_policy( pub fn serialize_operation_simulate_principal_policy( input: &crate::input::SimulatePrincipalPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3074,7 +3074,7 @@ pub fn serialize_operation_simulate_principal_policy( pub fn serialize_operation_tag_instance_profile( input: &crate::input::TagInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagInstanceProfile", "2010-05-08"); @@ -3099,8 +3099,8 @@ pub fn serialize_operation_tag_instance_profile( } pub fn serialize_operation_tag_mfa_device( - input: &crate::input::TagMFADeviceInput, -) -> Result { + input: &crate::input::TagMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagMFADevice", "2010-05-08"); @@ -3125,8 +3125,8 @@ pub fn serialize_operation_tag_mfa_device( } pub fn serialize_operation_tag_open_id_connect_provider( - input: &crate::input::TagOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::TagOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3153,7 +3153,7 @@ pub fn serialize_operation_tag_open_id_connect_provider( pub fn serialize_operation_tag_policy( input: &crate::input::TagPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagPolicy", "2010-05-08"); @@ -3179,7 +3179,7 @@ pub fn serialize_operation_tag_policy( pub fn serialize_operation_tag_role( input: &crate::input::TagRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagRole", "2010-05-08"); @@ -3204,8 +3204,8 @@ pub fn serialize_operation_tag_role( } pub fn serialize_operation_tag_saml_provider( - input: &crate::input::TagSAMLProviderInput, -) -> Result { + input: &crate::input::TagSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagSAMLProvider", "2010-05-08"); @@ -3231,7 +3231,7 @@ pub fn serialize_operation_tag_saml_provider( pub fn serialize_operation_tag_server_certificate( input: &crate::input::TagServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagServerCertificate", "2010-05-08"); @@ -3257,7 +3257,7 @@ pub fn serialize_operation_tag_server_certificate( pub fn serialize_operation_tag_user( input: &crate::input::TagUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagUser", "2010-05-08"); @@ -3283,7 +3283,7 @@ pub fn serialize_operation_tag_user( pub fn serialize_operation_untag_instance_profile( input: &crate::input::UntagInstanceProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagInstanceProfile", "2010-05-08"); @@ -3308,8 +3308,8 @@ pub fn serialize_operation_untag_instance_profile( } pub fn serialize_operation_untag_mfa_device( - input: &crate::input::UntagMFADeviceInput, -) -> Result { + input: &crate::input::UntagMfaDeviceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagMFADevice", "2010-05-08"); @@ -3334,8 +3334,8 @@ pub fn serialize_operation_untag_mfa_device( } pub fn serialize_operation_untag_open_id_connect_provider( - input: &crate::input::UntagOpenIDConnectProviderInput, -) -> Result { + input: &crate::input::UntagOpenIdConnectProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3362,7 +3362,7 @@ pub fn serialize_operation_untag_open_id_connect_provider( pub fn serialize_operation_untag_policy( input: &crate::input::UntagPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagPolicy", "2010-05-08"); @@ -3388,7 +3388,7 @@ pub fn serialize_operation_untag_policy( pub fn serialize_operation_untag_role( input: &crate::input::UntagRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagRole", "2010-05-08"); @@ -3413,8 +3413,8 @@ pub fn serialize_operation_untag_role( } pub fn serialize_operation_untag_saml_provider( - input: &crate::input::UntagSAMLProviderInput, -) -> Result { + input: &crate::input::UntagSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagSAMLProvider", "2010-05-08"); @@ -3440,7 +3440,7 @@ pub fn serialize_operation_untag_saml_provider( pub fn serialize_operation_untag_server_certificate( input: &crate::input::UntagServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3467,7 +3467,7 @@ pub fn serialize_operation_untag_server_certificate( pub fn serialize_operation_untag_user( input: &crate::input::UntagUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagUser", "2010-05-08"); @@ -3493,7 +3493,7 @@ pub fn serialize_operation_untag_user( pub fn serialize_operation_update_access_key( input: &crate::input::UpdateAccessKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateAccessKey", "2010-05-08"); @@ -3518,7 +3518,7 @@ pub fn serialize_operation_update_access_key( pub fn serialize_operation_update_account_password_policy( input: &crate::input::UpdateAccountPasswordPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3583,7 +3583,7 @@ pub fn serialize_operation_update_account_password_policy( pub fn serialize_operation_update_assume_role_policy( input: &crate::input::UpdateAssumeRolePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3604,7 +3604,7 @@ pub fn serialize_operation_update_assume_role_policy( pub fn serialize_operation_update_group( input: &crate::input::UpdateGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateGroup", "2010-05-08"); @@ -3629,7 +3629,7 @@ pub fn serialize_operation_update_group( pub fn serialize_operation_update_login_profile( input: &crate::input::UpdateLoginProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateLoginProfile", "2010-05-08"); @@ -3653,8 +3653,8 @@ pub fn serialize_operation_update_login_profile( } pub fn serialize_operation_update_open_id_connect_provider_thumbprint( - input: &crate::input::UpdateOpenIDConnectProviderThumbprintInput, -) -> Result { + input: &crate::input::UpdateOpenIdConnectProviderThumbprintInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3684,7 +3684,7 @@ pub fn serialize_operation_update_open_id_connect_provider_thumbprint( pub fn serialize_operation_update_role( input: &crate::input::UpdateRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateRole", "2010-05-08"); @@ -3712,7 +3712,7 @@ pub fn serialize_operation_update_role( pub fn serialize_operation_update_role_description( input: &crate::input::UpdateRoleDescriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3732,8 +3732,8 @@ pub fn serialize_operation_update_role_description( } pub fn serialize_operation_update_saml_provider( - input: &crate::input::UpdateSAMLProviderInput, -) -> Result { + input: &crate::input::UpdateSamlProviderInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateSAMLProvider", "2010-05-08"); @@ -3753,7 +3753,7 @@ pub fn serialize_operation_update_saml_provider( pub fn serialize_operation_update_server_certificate( input: &crate::input::UpdateServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3779,7 +3779,7 @@ pub fn serialize_operation_update_server_certificate( pub fn serialize_operation_update_service_specific_credential( input: &crate::input::UpdateServiceSpecificCredentialInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3805,7 +3805,7 @@ pub fn serialize_operation_update_service_specific_credential( pub fn serialize_operation_update_signing_certificate( input: &crate::input::UpdateSigningCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3830,8 +3830,8 @@ pub fn serialize_operation_update_signing_certificate( } pub fn serialize_operation_update_ssh_public_key( - input: &crate::input::UpdateSSHPublicKeyInput, -) -> Result { + input: &crate::input::UpdateSshPublicKeyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateSSHPublicKey", "2010-05-08"); @@ -3856,7 +3856,7 @@ pub fn serialize_operation_update_ssh_public_key( pub fn serialize_operation_update_user( input: &crate::input::UpdateUserInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UpdateUser", "2010-05-08"); @@ -3881,7 +3881,7 @@ pub fn serialize_operation_update_user( pub fn serialize_operation_upload_server_certificate( input: &crate::input::UploadServerCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3928,7 +3928,7 @@ pub fn serialize_operation_upload_server_certificate( pub fn serialize_operation_upload_signing_certificate( input: &crate::input::UploadSigningCertificateInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3948,8 +3948,8 @@ pub fn serialize_operation_upload_signing_certificate( } pub fn serialize_operation_upload_ssh_public_key( - input: &crate::input::UploadSSHPublicKeyInput, -) -> Result { + input: &crate::input::UploadSshPublicKeyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UploadSSHPublicKey", "2010-05-08"); diff --git a/sdk/iam/src/output.rs b/sdk/iam/src/output.rs index 488caaff13d8..935f398e55ec 100644 --- a/sdk/iam/src/output.rs +++ b/sdk/iam/src/output.rs @@ -3,48 +3,48 @@ /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UploadSSHPublicKeyOutput { +pub struct UploadSshPublicKeyOutput { ///

    Contains information about the SSH public key.

    - pub ssh_public_key: std::option::Option, + pub ssh_public_key: std::option::Option, } -impl std::fmt::Debug for UploadSSHPublicKeyOutput { +impl std::fmt::Debug for UploadSshPublicKeyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UploadSSHPublicKeyOutput"); + let mut formatter = f.debug_struct("UploadSshPublicKeyOutput"); formatter.field("ssh_public_key", &self.ssh_public_key); formatter.finish() } } -/// See [`UploadSSHPublicKeyOutput`](crate::output::UploadSSHPublicKeyOutput) +/// See [`UploadSshPublicKeyOutput`](crate::output::UploadSshPublicKeyOutput) pub mod upload_ssh_public_key_output { - /// A builder for [`UploadSSHPublicKeyOutput`](crate::output::UploadSSHPublicKeyOutput) + /// A builder for [`UploadSshPublicKeyOutput`](crate::output::UploadSshPublicKeyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) ssh_public_key: std::option::Option, + pub(crate) ssh_public_key: std::option::Option, } impl Builder { ///

    Contains information about the SSH public key.

    - pub fn ssh_public_key(mut self, input: crate::model::SSHPublicKey) -> Self { + pub fn ssh_public_key(mut self, input: crate::model::SshPublicKey) -> Self { self.ssh_public_key = Some(input); self } pub fn set_ssh_public_key( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.ssh_public_key = input; self } - /// Consumes the builder and constructs a [`UploadSSHPublicKeyOutput`](crate::output::UploadSSHPublicKeyOutput) - pub fn build(self) -> crate::output::UploadSSHPublicKeyOutput { - crate::output::UploadSSHPublicKeyOutput { + /// Consumes the builder and constructs a [`UploadSshPublicKeyOutput`](crate::output::UploadSshPublicKeyOutput) + pub fn build(self) -> crate::output::UploadSshPublicKeyOutput { + crate::output::UploadSshPublicKeyOutput { ssh_public_key: self.ssh_public_key, } } } } -impl UploadSSHPublicKeyOutput { - /// Creates a new builder-style object to manufacture [`UploadSSHPublicKeyOutput`](crate::output::UploadSSHPublicKeyOutput) +impl UploadSshPublicKeyOutput { + /// Creates a new builder-style object to manufacture [`UploadSshPublicKeyOutput`](crate::output::UploadSshPublicKeyOutput) pub fn builder() -> crate::output::upload_ssh_public_key_output::Builder { crate::output::upload_ssh_public_key_output::Builder::default() } @@ -212,28 +212,28 @@ impl UpdateUserOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSSHPublicKeyOutput {} -impl std::fmt::Debug for UpdateSSHPublicKeyOutput { +pub struct UpdateSshPublicKeyOutput {} +impl std::fmt::Debug for UpdateSshPublicKeyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSSHPublicKeyOutput"); + let mut formatter = f.debug_struct("UpdateSshPublicKeyOutput"); formatter.finish() } } -/// See [`UpdateSSHPublicKeyOutput`](crate::output::UpdateSSHPublicKeyOutput) +/// See [`UpdateSshPublicKeyOutput`](crate::output::UpdateSshPublicKeyOutput) pub mod update_ssh_public_key_output { - /// A builder for [`UpdateSSHPublicKeyOutput`](crate::output::UpdateSSHPublicKeyOutput) + /// A builder for [`UpdateSshPublicKeyOutput`](crate::output::UpdateSshPublicKeyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`UpdateSSHPublicKeyOutput`](crate::output::UpdateSSHPublicKeyOutput) - pub fn build(self) -> crate::output::UpdateSSHPublicKeyOutput { - crate::output::UpdateSSHPublicKeyOutput {} + /// Consumes the builder and constructs a [`UpdateSshPublicKeyOutput`](crate::output::UpdateSshPublicKeyOutput) + pub fn build(self) -> crate::output::UpdateSshPublicKeyOutput { + crate::output::UpdateSshPublicKeyOutput {} } } } -impl UpdateSSHPublicKeyOutput { - /// Creates a new builder-style object to manufacture [`UpdateSSHPublicKeyOutput`](crate::output::UpdateSSHPublicKeyOutput) +impl UpdateSshPublicKeyOutput { + /// Creates a new builder-style object to manufacture [`UpdateSshPublicKeyOutput`](crate::output::UpdateSshPublicKeyOutput) pub fn builder() -> crate::output::update_ssh_public_key_output::Builder { crate::output::update_ssh_public_key_output::Builder::default() } @@ -330,20 +330,20 @@ impl UpdateServerCertificateOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSAMLProviderOutput { +pub struct UpdateSamlProviderOutput { ///

    The Amazon Resource Name (ARN) of the SAML provider that was updated.

    pub saml_provider_arn: std::option::Option, } -impl std::fmt::Debug for UpdateSAMLProviderOutput { +impl std::fmt::Debug for UpdateSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSAMLProviderOutput"); + let mut formatter = f.debug_struct("UpdateSamlProviderOutput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.finish() } } -/// See [`UpdateSAMLProviderOutput`](crate::output::UpdateSAMLProviderOutput) +/// See [`UpdateSamlProviderOutput`](crate::output::UpdateSamlProviderOutput) pub mod update_saml_provider_output { - /// A builder for [`UpdateSAMLProviderOutput`](crate::output::UpdateSAMLProviderOutput) + /// A builder for [`UpdateSamlProviderOutput`](crate::output::UpdateSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -362,16 +362,16 @@ pub mod update_saml_provider_output { self.saml_provider_arn = input; self } - /// Consumes the builder and constructs a [`UpdateSAMLProviderOutput`](crate::output::UpdateSAMLProviderOutput) - pub fn build(self) -> crate::output::UpdateSAMLProviderOutput { - crate::output::UpdateSAMLProviderOutput { + /// Consumes the builder and constructs a [`UpdateSamlProviderOutput`](crate::output::UpdateSamlProviderOutput) + pub fn build(self) -> crate::output::UpdateSamlProviderOutput { + crate::output::UpdateSamlProviderOutput { saml_provider_arn: self.saml_provider_arn, } } } } -impl UpdateSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`UpdateSAMLProviderOutput`](crate::output::UpdateSAMLProviderOutput) +impl UpdateSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`UpdateSamlProviderOutput`](crate::output::UpdateSamlProviderOutput) pub fn builder() -> crate::output::update_saml_provider_output::Builder { crate::output::update_saml_provider_output::Builder::default() } @@ -452,28 +452,28 @@ impl UpdateRoleOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOpenIDConnectProviderThumbprintOutput {} -impl std::fmt::Debug for UpdateOpenIDConnectProviderThumbprintOutput { +pub struct UpdateOpenIdConnectProviderThumbprintOutput {} +impl std::fmt::Debug for UpdateOpenIdConnectProviderThumbprintOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOpenIDConnectProviderThumbprintOutput"); + let mut formatter = f.debug_struct("UpdateOpenIdConnectProviderThumbprintOutput"); formatter.finish() } } -/// See [`UpdateOpenIDConnectProviderThumbprintOutput`](crate::output::UpdateOpenIDConnectProviderThumbprintOutput) +/// See [`UpdateOpenIdConnectProviderThumbprintOutput`](crate::output::UpdateOpenIdConnectProviderThumbprintOutput) pub mod update_open_id_connect_provider_thumbprint_output { - /// A builder for [`UpdateOpenIDConnectProviderThumbprintOutput`](crate::output::UpdateOpenIDConnectProviderThumbprintOutput) + /// A builder for [`UpdateOpenIdConnectProviderThumbprintOutput`](crate::output::UpdateOpenIdConnectProviderThumbprintOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`UpdateOpenIDConnectProviderThumbprintOutput`](crate::output::UpdateOpenIDConnectProviderThumbprintOutput) - pub fn build(self) -> crate::output::UpdateOpenIDConnectProviderThumbprintOutput { - crate::output::UpdateOpenIDConnectProviderThumbprintOutput {} + /// Consumes the builder and constructs a [`UpdateOpenIdConnectProviderThumbprintOutput`](crate::output::UpdateOpenIdConnectProviderThumbprintOutput) + pub fn build(self) -> crate::output::UpdateOpenIdConnectProviderThumbprintOutput { + crate::output::UpdateOpenIdConnectProviderThumbprintOutput {} } } } -impl UpdateOpenIDConnectProviderThumbprintOutput { - /// Creates a new builder-style object to manufacture [`UpdateOpenIDConnectProviderThumbprintOutput`](crate::output::UpdateOpenIDConnectProviderThumbprintOutput) +impl UpdateOpenIdConnectProviderThumbprintOutput { + /// Creates a new builder-style object to manufacture [`UpdateOpenIdConnectProviderThumbprintOutput`](crate::output::UpdateOpenIdConnectProviderThumbprintOutput) pub fn builder() -> crate::output::update_open_id_connect_provider_thumbprint_output::Builder { crate::output::update_open_id_connect_provider_thumbprint_output::Builder::default() } @@ -684,28 +684,28 @@ impl UntagServerCertificateOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagSAMLProviderOutput {} -impl std::fmt::Debug for UntagSAMLProviderOutput { +pub struct UntagSamlProviderOutput {} +impl std::fmt::Debug for UntagSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagSAMLProviderOutput"); + let mut formatter = f.debug_struct("UntagSamlProviderOutput"); formatter.finish() } } -/// See [`UntagSAMLProviderOutput`](crate::output::UntagSAMLProviderOutput) +/// See [`UntagSamlProviderOutput`](crate::output::UntagSamlProviderOutput) pub mod untag_saml_provider_output { - /// A builder for [`UntagSAMLProviderOutput`](crate::output::UntagSAMLProviderOutput) + /// A builder for [`UntagSamlProviderOutput`](crate::output::UntagSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`UntagSAMLProviderOutput`](crate::output::UntagSAMLProviderOutput) - pub fn build(self) -> crate::output::UntagSAMLProviderOutput { - crate::output::UntagSAMLProviderOutput {} + /// Consumes the builder and constructs a [`UntagSamlProviderOutput`](crate::output::UntagSamlProviderOutput) + pub fn build(self) -> crate::output::UntagSamlProviderOutput { + crate::output::UntagSamlProviderOutput {} } } } -impl UntagSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`UntagSAMLProviderOutput`](crate::output::UntagSAMLProviderOutput) +impl UntagSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`UntagSamlProviderOutput`](crate::output::UntagSamlProviderOutput) pub fn builder() -> crate::output::untag_saml_provider_output::Builder { crate::output::untag_saml_provider_output::Builder::default() } @@ -771,28 +771,28 @@ impl UntagPolicyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagOpenIDConnectProviderOutput {} -impl std::fmt::Debug for UntagOpenIDConnectProviderOutput { +pub struct UntagOpenIdConnectProviderOutput {} +impl std::fmt::Debug for UntagOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("UntagOpenIdConnectProviderOutput"); formatter.finish() } } -/// See [`UntagOpenIDConnectProviderOutput`](crate::output::UntagOpenIDConnectProviderOutput) +/// See [`UntagOpenIdConnectProviderOutput`](crate::output::UntagOpenIdConnectProviderOutput) pub mod untag_open_id_connect_provider_output { - /// A builder for [`UntagOpenIDConnectProviderOutput`](crate::output::UntagOpenIDConnectProviderOutput) + /// A builder for [`UntagOpenIdConnectProviderOutput`](crate::output::UntagOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`UntagOpenIDConnectProviderOutput`](crate::output::UntagOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::UntagOpenIDConnectProviderOutput { - crate::output::UntagOpenIDConnectProviderOutput {} + /// Consumes the builder and constructs a [`UntagOpenIdConnectProviderOutput`](crate::output::UntagOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::UntagOpenIdConnectProviderOutput { + crate::output::UntagOpenIdConnectProviderOutput {} } } } -impl UntagOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`UntagOpenIDConnectProviderOutput`](crate::output::UntagOpenIDConnectProviderOutput) +impl UntagOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`UntagOpenIdConnectProviderOutput`](crate::output::UntagOpenIdConnectProviderOutput) pub fn builder() -> crate::output::untag_open_id_connect_provider_output::Builder { crate::output::untag_open_id_connect_provider_output::Builder::default() } @@ -800,28 +800,28 @@ impl UntagOpenIDConnectProviderOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagMFADeviceOutput {} -impl std::fmt::Debug for UntagMFADeviceOutput { +pub struct UntagMfaDeviceOutput {} +impl std::fmt::Debug for UntagMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagMFADeviceOutput"); + let mut formatter = f.debug_struct("UntagMfaDeviceOutput"); formatter.finish() } } -/// See [`UntagMFADeviceOutput`](crate::output::UntagMFADeviceOutput) +/// See [`UntagMfaDeviceOutput`](crate::output::UntagMfaDeviceOutput) pub mod untag_mfa_device_output { - /// A builder for [`UntagMFADeviceOutput`](crate::output::UntagMFADeviceOutput) + /// A builder for [`UntagMfaDeviceOutput`](crate::output::UntagMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`UntagMFADeviceOutput`](crate::output::UntagMFADeviceOutput) - pub fn build(self) -> crate::output::UntagMFADeviceOutput { - crate::output::UntagMFADeviceOutput {} + /// Consumes the builder and constructs a [`UntagMfaDeviceOutput`](crate::output::UntagMfaDeviceOutput) + pub fn build(self) -> crate::output::UntagMfaDeviceOutput { + crate::output::UntagMfaDeviceOutput {} } } } -impl UntagMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`UntagMFADeviceOutput`](crate::output::UntagMFADeviceOutput) +impl UntagMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`UntagMfaDeviceOutput`](crate::output::UntagMfaDeviceOutput) pub fn builder() -> crate::output::untag_mfa_device_output::Builder { crate::output::untag_mfa_device_output::Builder::default() } @@ -916,28 +916,28 @@ impl TagServerCertificateOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagSAMLProviderOutput {} -impl std::fmt::Debug for TagSAMLProviderOutput { +pub struct TagSamlProviderOutput {} +impl std::fmt::Debug for TagSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagSAMLProviderOutput"); + let mut formatter = f.debug_struct("TagSamlProviderOutput"); formatter.finish() } } -/// See [`TagSAMLProviderOutput`](crate::output::TagSAMLProviderOutput) +/// See [`TagSamlProviderOutput`](crate::output::TagSamlProviderOutput) pub mod tag_saml_provider_output { - /// A builder for [`TagSAMLProviderOutput`](crate::output::TagSAMLProviderOutput) + /// A builder for [`TagSamlProviderOutput`](crate::output::TagSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`TagSAMLProviderOutput`](crate::output::TagSAMLProviderOutput) - pub fn build(self) -> crate::output::TagSAMLProviderOutput { - crate::output::TagSAMLProviderOutput {} + /// Consumes the builder and constructs a [`TagSamlProviderOutput`](crate::output::TagSamlProviderOutput) + pub fn build(self) -> crate::output::TagSamlProviderOutput { + crate::output::TagSamlProviderOutput {} } } } -impl TagSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`TagSAMLProviderOutput`](crate::output::TagSAMLProviderOutput) +impl TagSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`TagSamlProviderOutput`](crate::output::TagSamlProviderOutput) pub fn builder() -> crate::output::tag_saml_provider_output::Builder { crate::output::tag_saml_provider_output::Builder::default() } @@ -1003,28 +1003,28 @@ impl TagPolicyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagOpenIDConnectProviderOutput {} -impl std::fmt::Debug for TagOpenIDConnectProviderOutput { +pub struct TagOpenIdConnectProviderOutput {} +impl std::fmt::Debug for TagOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("TagOpenIdConnectProviderOutput"); formatter.finish() } } -/// See [`TagOpenIDConnectProviderOutput`](crate::output::TagOpenIDConnectProviderOutput) +/// See [`TagOpenIdConnectProviderOutput`](crate::output::TagOpenIdConnectProviderOutput) pub mod tag_open_id_connect_provider_output { - /// A builder for [`TagOpenIDConnectProviderOutput`](crate::output::TagOpenIDConnectProviderOutput) + /// A builder for [`TagOpenIdConnectProviderOutput`](crate::output::TagOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`TagOpenIDConnectProviderOutput`](crate::output::TagOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::TagOpenIDConnectProviderOutput { - crate::output::TagOpenIDConnectProviderOutput {} + /// Consumes the builder and constructs a [`TagOpenIdConnectProviderOutput`](crate::output::TagOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::TagOpenIdConnectProviderOutput { + crate::output::TagOpenIdConnectProviderOutput {} } } } -impl TagOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`TagOpenIDConnectProviderOutput`](crate::output::TagOpenIDConnectProviderOutput) +impl TagOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`TagOpenIdConnectProviderOutput`](crate::output::TagOpenIdConnectProviderOutput) pub fn builder() -> crate::output::tag_open_id_connect_provider_output::Builder { crate::output::tag_open_id_connect_provider_output::Builder::default() } @@ -1032,28 +1032,28 @@ impl TagOpenIDConnectProviderOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagMFADeviceOutput {} -impl std::fmt::Debug for TagMFADeviceOutput { +pub struct TagMfaDeviceOutput {} +impl std::fmt::Debug for TagMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagMFADeviceOutput"); + let mut formatter = f.debug_struct("TagMfaDeviceOutput"); formatter.finish() } } -/// See [`TagMFADeviceOutput`](crate::output::TagMFADeviceOutput) +/// See [`TagMfaDeviceOutput`](crate::output::TagMfaDeviceOutput) pub mod tag_mfa_device_output { - /// A builder for [`TagMFADeviceOutput`](crate::output::TagMFADeviceOutput) + /// A builder for [`TagMfaDeviceOutput`](crate::output::TagMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`TagMFADeviceOutput`](crate::output::TagMFADeviceOutput) - pub fn build(self) -> crate::output::TagMFADeviceOutput { - crate::output::TagMFADeviceOutput {} + /// Consumes the builder and constructs a [`TagMfaDeviceOutput`](crate::output::TagMfaDeviceOutput) + pub fn build(self) -> crate::output::TagMfaDeviceOutput { + crate::output::TagMfaDeviceOutput {} } } } -impl TagMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`TagMFADeviceOutput`](crate::output::TagMFADeviceOutput) +impl TagMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`TagMfaDeviceOutput`](crate::output::TagMfaDeviceOutput) pub fn builder() -> crate::output::tag_mfa_device_output::Builder { crate::output::tag_mfa_device_output::Builder::default() } @@ -1344,28 +1344,28 @@ impl SetDefaultPolicyVersionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResyncMFADeviceOutput {} -impl std::fmt::Debug for ResyncMFADeviceOutput { +pub struct ResyncMfaDeviceOutput {} +impl std::fmt::Debug for ResyncMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResyncMFADeviceOutput"); + let mut formatter = f.debug_struct("ResyncMfaDeviceOutput"); formatter.finish() } } -/// See [`ResyncMFADeviceOutput`](crate::output::ResyncMFADeviceOutput) +/// See [`ResyncMfaDeviceOutput`](crate::output::ResyncMfaDeviceOutput) pub mod resync_mfa_device_output { - /// A builder for [`ResyncMFADeviceOutput`](crate::output::ResyncMFADeviceOutput) + /// A builder for [`ResyncMfaDeviceOutput`](crate::output::ResyncMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`ResyncMFADeviceOutput`](crate::output::ResyncMFADeviceOutput) - pub fn build(self) -> crate::output::ResyncMFADeviceOutput { - crate::output::ResyncMFADeviceOutput {} + /// Consumes the builder and constructs a [`ResyncMfaDeviceOutput`](crate::output::ResyncMfaDeviceOutput) + pub fn build(self) -> crate::output::ResyncMfaDeviceOutput { + crate::output::ResyncMfaDeviceOutput {} } } } -impl ResyncMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`ResyncMFADeviceOutput`](crate::output::ResyncMFADeviceOutput) +impl ResyncMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`ResyncMfaDeviceOutput`](crate::output::ResyncMfaDeviceOutput) pub fn builder() -> crate::output::resync_mfa_device_output::Builder { crate::output::resync_mfa_device_output::Builder::default() } @@ -1497,28 +1497,28 @@ impl RemoveRoleFromInstanceProfileOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveClientIDFromOpenIDConnectProviderOutput {} -impl std::fmt::Debug for RemoveClientIDFromOpenIDConnectProviderOutput { +pub struct RemoveClientIdFromOpenIdConnectProviderOutput {} +impl std::fmt::Debug for RemoveClientIdFromOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveClientIDFromOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("RemoveClientIdFromOpenIdConnectProviderOutput"); formatter.finish() } } -/// See [`RemoveClientIDFromOpenIDConnectProviderOutput`](crate::output::RemoveClientIDFromOpenIDConnectProviderOutput) +/// See [`RemoveClientIdFromOpenIdConnectProviderOutput`](crate::output::RemoveClientIdFromOpenIdConnectProviderOutput) pub mod remove_client_id_from_open_id_connect_provider_output { - /// A builder for [`RemoveClientIDFromOpenIDConnectProviderOutput`](crate::output::RemoveClientIDFromOpenIDConnectProviderOutput) + /// A builder for [`RemoveClientIdFromOpenIdConnectProviderOutput`](crate::output::RemoveClientIdFromOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`RemoveClientIDFromOpenIDConnectProviderOutput`](crate::output::RemoveClientIDFromOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::RemoveClientIDFromOpenIDConnectProviderOutput { - crate::output::RemoveClientIDFromOpenIDConnectProviderOutput {} + /// Consumes the builder and constructs a [`RemoveClientIdFromOpenIdConnectProviderOutput`](crate::output::RemoveClientIdFromOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::RemoveClientIdFromOpenIdConnectProviderOutput { + crate::output::RemoveClientIdFromOpenIdConnectProviderOutput {} } } } -impl RemoveClientIDFromOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`RemoveClientIDFromOpenIDConnectProviderOutput`](crate::output::RemoveClientIDFromOpenIDConnectProviderOutput) +impl RemoveClientIdFromOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`RemoveClientIdFromOpenIdConnectProviderOutput`](crate::output::RemoveClientIdFromOpenIdConnectProviderOutput) pub fn builder() -> crate::output::remove_client_id_from_open_id_connect_provider_output::Builder { crate::output::remove_client_id_from_open_id_connect_provider_output::Builder::default() @@ -1674,10 +1674,10 @@ impl PutGroupPolicyOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListVirtualMFADevicesOutput { +pub struct ListVirtualMfaDevicesOutput { ///

    The list of virtual MFA devices in the current account that match the /// AssignmentStatus value that was passed in the request.

    - pub virtual_mfa_devices: std::option::Option>, + pub virtual_mfa_devices: std::option::Option>, ///

    A flag that indicates whether there are more items to return. If your /// results were truncated, you can make a subsequent pagination request using the Marker /// request parameter to retrieve more items. Note that IAM might return fewer than the @@ -1690,30 +1690,30 @@ pub struct ListVirtualMFADevicesOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListVirtualMFADevicesOutput { +impl std::fmt::Debug for ListVirtualMfaDevicesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListVirtualMFADevicesOutput"); + let mut formatter = f.debug_struct("ListVirtualMfaDevicesOutput"); formatter.field("virtual_mfa_devices", &self.virtual_mfa_devices); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListVirtualMFADevicesOutput`](crate::output::ListVirtualMFADevicesOutput) +/// See [`ListVirtualMfaDevicesOutput`](crate::output::ListVirtualMfaDevicesOutput) pub mod list_virtual_mfa_devices_output { - /// A builder for [`ListVirtualMFADevicesOutput`](crate::output::ListVirtualMFADevicesOutput) + /// A builder for [`ListVirtualMfaDevicesOutput`](crate::output::ListVirtualMfaDevicesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) virtual_mfa_devices: - std::option::Option>, + std::option::Option>, pub(crate) is_truncated: std::option::Option, pub(crate) marker: std::option::Option, } impl Builder { pub fn virtual_mfa_devices( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.virtual_mfa_devices.unwrap_or_default(); v.push(input.into()); @@ -1722,7 +1722,7 @@ pub mod list_virtual_mfa_devices_output { } pub fn set_virtual_mfa_devices( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.virtual_mfa_devices = input; self @@ -1752,9 +1752,9 @@ pub mod list_virtual_mfa_devices_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListVirtualMFADevicesOutput`](crate::output::ListVirtualMFADevicesOutput) - pub fn build(self) -> crate::output::ListVirtualMFADevicesOutput { - crate::output::ListVirtualMFADevicesOutput { + /// Consumes the builder and constructs a [`ListVirtualMfaDevicesOutput`](crate::output::ListVirtualMfaDevicesOutput) + pub fn build(self) -> crate::output::ListVirtualMfaDevicesOutput { + crate::output::ListVirtualMfaDevicesOutput { virtual_mfa_devices: self.virtual_mfa_devices, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -1762,8 +1762,8 @@ pub mod list_virtual_mfa_devices_output { } } } -impl ListVirtualMFADevicesOutput { - /// Creates a new builder-style object to manufacture [`ListVirtualMFADevicesOutput`](crate::output::ListVirtualMFADevicesOutput) +impl ListVirtualMfaDevicesOutput { + /// Creates a new builder-style object to manufacture [`ListVirtualMfaDevicesOutput`](crate::output::ListVirtualMfaDevicesOutput) pub fn builder() -> crate::output::list_virtual_mfa_devices_output::Builder { crate::output::list_virtual_mfa_devices_output::Builder::default() } @@ -2048,9 +2048,9 @@ impl ListUserPoliciesOutput { /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSSHPublicKeysOutput { +pub struct ListSshPublicKeysOutput { ///

    A list of the SSH public keys assigned to IAM user.

    - pub ssh_public_keys: std::option::Option>, + pub ssh_public_keys: std::option::Option>, ///

    A flag that indicates whether there are more items to return. If your /// results were truncated, you can make a subsequent pagination request using the Marker /// request parameter to retrieve more items. Note that IAM might return fewer than the @@ -2063,30 +2063,30 @@ pub struct ListSSHPublicKeysOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListSSHPublicKeysOutput { +impl std::fmt::Debug for ListSshPublicKeysOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSSHPublicKeysOutput"); + let mut formatter = f.debug_struct("ListSshPublicKeysOutput"); formatter.field("ssh_public_keys", &self.ssh_public_keys); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListSSHPublicKeysOutput`](crate::output::ListSSHPublicKeysOutput) +/// See [`ListSshPublicKeysOutput`](crate::output::ListSshPublicKeysOutput) pub mod list_ssh_public_keys_output { - /// A builder for [`ListSSHPublicKeysOutput`](crate::output::ListSSHPublicKeysOutput) + /// A builder for [`ListSshPublicKeysOutput`](crate::output::ListSshPublicKeysOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) ssh_public_keys: - std::option::Option>, + std::option::Option>, pub(crate) is_truncated: std::option::Option, pub(crate) marker: std::option::Option, } impl Builder { pub fn ssh_public_keys( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.ssh_public_keys.unwrap_or_default(); v.push(input.into()); @@ -2095,7 +2095,7 @@ pub mod list_ssh_public_keys_output { } pub fn set_ssh_public_keys( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ssh_public_keys = input; self @@ -2125,9 +2125,9 @@ pub mod list_ssh_public_keys_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListSSHPublicKeysOutput`](crate::output::ListSSHPublicKeysOutput) - pub fn build(self) -> crate::output::ListSSHPublicKeysOutput { - crate::output::ListSSHPublicKeysOutput { + /// Consumes the builder and constructs a [`ListSshPublicKeysOutput`](crate::output::ListSshPublicKeysOutput) + pub fn build(self) -> crate::output::ListSshPublicKeysOutput { + crate::output::ListSshPublicKeysOutput { ssh_public_keys: self.ssh_public_keys, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -2135,8 +2135,8 @@ pub mod list_ssh_public_keys_output { } } } -impl ListSSHPublicKeysOutput { - /// Creates a new builder-style object to manufacture [`ListSSHPublicKeysOutput`](crate::output::ListSSHPublicKeysOutput) +impl ListSshPublicKeysOutput { + /// Creates a new builder-style object to manufacture [`ListSshPublicKeysOutput`](crate::output::ListSshPublicKeysOutput) pub fn builder() -> crate::output::list_ssh_public_keys_output::Builder { crate::output::list_ssh_public_keys_output::Builder::default() } @@ -2491,7 +2491,7 @@ impl ListServerCertificatesOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSAMLProviderTagsOutput { +pub struct ListSamlProviderTagsOutput { ///

    The list of tags that are currently attached to the Security Assertion Markup Language /// (SAML) identity provider. Each tag consists of a key name and an associated value. If no tags are attached to the specified resource, the response contains an empty list.

    pub tags: std::option::Option>, @@ -2505,18 +2505,18 @@ pub struct ListSAMLProviderTagsOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListSAMLProviderTagsOutput { +impl std::fmt::Debug for ListSamlProviderTagsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSAMLProviderTagsOutput"); + let mut formatter = f.debug_struct("ListSamlProviderTagsOutput"); formatter.field("tags", &self.tags); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListSAMLProviderTagsOutput`](crate::output::ListSAMLProviderTagsOutput) +/// See [`ListSamlProviderTagsOutput`](crate::output::ListSamlProviderTagsOutput) pub mod list_saml_provider_tags_output { - /// A builder for [`ListSAMLProviderTagsOutput`](crate::output::ListSAMLProviderTagsOutput) + /// A builder for [`ListSamlProviderTagsOutput`](crate::output::ListSamlProviderTagsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2561,9 +2561,9 @@ pub mod list_saml_provider_tags_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListSAMLProviderTagsOutput`](crate::output::ListSAMLProviderTagsOutput) - pub fn build(self) -> crate::output::ListSAMLProviderTagsOutput { - crate::output::ListSAMLProviderTagsOutput { + /// Consumes the builder and constructs a [`ListSamlProviderTagsOutput`](crate::output::ListSamlProviderTagsOutput) + pub fn build(self) -> crate::output::ListSamlProviderTagsOutput { + crate::output::ListSamlProviderTagsOutput { tags: self.tags, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -2571,8 +2571,8 @@ pub mod list_saml_provider_tags_output { } } } -impl ListSAMLProviderTagsOutput { - /// Creates a new builder-style object to manufacture [`ListSAMLProviderTagsOutput`](crate::output::ListSAMLProviderTagsOutput) +impl ListSamlProviderTagsOutput { + /// Creates a new builder-style object to manufacture [`ListSamlProviderTagsOutput`](crate::output::ListSamlProviderTagsOutput) pub fn builder() -> crate::output::list_saml_provider_tags_output::Builder { crate::output::list_saml_provider_tags_output::Builder::default() } @@ -2582,31 +2582,31 @@ impl ListSAMLProviderTagsOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSAMLProvidersOutput { +pub struct ListSamlProvidersOutput { ///

    The list of SAML provider resource objects defined in IAM for this AWS /// account.

    - pub saml_provider_list: std::option::Option>, + pub saml_provider_list: std::option::Option>, } -impl std::fmt::Debug for ListSAMLProvidersOutput { +impl std::fmt::Debug for ListSamlProvidersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSAMLProvidersOutput"); + let mut formatter = f.debug_struct("ListSamlProvidersOutput"); formatter.field("saml_provider_list", &self.saml_provider_list); formatter.finish() } } -/// See [`ListSAMLProvidersOutput`](crate::output::ListSAMLProvidersOutput) +/// See [`ListSamlProvidersOutput`](crate::output::ListSamlProvidersOutput) pub mod list_saml_providers_output { - /// A builder for [`ListSAMLProvidersOutput`](crate::output::ListSAMLProvidersOutput) + /// A builder for [`ListSamlProvidersOutput`](crate::output::ListSamlProvidersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) saml_provider_list: - std::option::Option>, + std::option::Option>, } impl Builder { pub fn saml_provider_list( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.saml_provider_list.unwrap_or_default(); v.push(input.into()); @@ -2615,21 +2615,21 @@ pub mod list_saml_providers_output { } pub fn set_saml_provider_list( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.saml_provider_list = input; self } - /// Consumes the builder and constructs a [`ListSAMLProvidersOutput`](crate::output::ListSAMLProvidersOutput) - pub fn build(self) -> crate::output::ListSAMLProvidersOutput { - crate::output::ListSAMLProvidersOutput { + /// Consumes the builder and constructs a [`ListSamlProvidersOutput`](crate::output::ListSamlProvidersOutput) + pub fn build(self) -> crate::output::ListSamlProvidersOutput { + crate::output::ListSamlProvidersOutput { saml_provider_list: self.saml_provider_list, } } } } -impl ListSAMLProvidersOutput { - /// Creates a new builder-style object to manufacture [`ListSAMLProvidersOutput`](crate::output::ListSAMLProvidersOutput) +impl ListSamlProvidersOutput { + /// Creates a new builder-style object to manufacture [`ListSamlProvidersOutput`](crate::output::ListSamlProvidersOutput) pub fn builder() -> crate::output::list_saml_providers_output::Builder { crate::output::list_saml_providers_output::Builder::default() } @@ -3294,7 +3294,7 @@ impl ListPoliciesOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpenIDConnectProviderTagsOutput { +pub struct ListOpenIdConnectProviderTagsOutput { ///

    The list of tags that are currently attached to the OpenID Connect (OIDC) identity /// provider. Each tag consists of a key name and an associated value. If no tags are attached to the specified resource, the response contains an empty list.

    pub tags: std::option::Option>, @@ -3308,18 +3308,18 @@ pub struct ListOpenIDConnectProviderTagsOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListOpenIDConnectProviderTagsOutput { +impl std::fmt::Debug for ListOpenIdConnectProviderTagsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpenIDConnectProviderTagsOutput"); + let mut formatter = f.debug_struct("ListOpenIdConnectProviderTagsOutput"); formatter.field("tags", &self.tags); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListOpenIDConnectProviderTagsOutput`](crate::output::ListOpenIDConnectProviderTagsOutput) +/// See [`ListOpenIdConnectProviderTagsOutput`](crate::output::ListOpenIdConnectProviderTagsOutput) pub mod list_open_id_connect_provider_tags_output { - /// A builder for [`ListOpenIDConnectProviderTagsOutput`](crate::output::ListOpenIDConnectProviderTagsOutput) + /// A builder for [`ListOpenIdConnectProviderTagsOutput`](crate::output::ListOpenIdConnectProviderTagsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3364,9 +3364,9 @@ pub mod list_open_id_connect_provider_tags_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListOpenIDConnectProviderTagsOutput`](crate::output::ListOpenIDConnectProviderTagsOutput) - pub fn build(self) -> crate::output::ListOpenIDConnectProviderTagsOutput { - crate::output::ListOpenIDConnectProviderTagsOutput { + /// Consumes the builder and constructs a [`ListOpenIdConnectProviderTagsOutput`](crate::output::ListOpenIdConnectProviderTagsOutput) + pub fn build(self) -> crate::output::ListOpenIdConnectProviderTagsOutput { + crate::output::ListOpenIdConnectProviderTagsOutput { tags: self.tags, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -3374,8 +3374,8 @@ pub mod list_open_id_connect_provider_tags_output { } } } -impl ListOpenIDConnectProviderTagsOutput { - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProviderTagsOutput`](crate::output::ListOpenIDConnectProviderTagsOutput) +impl ListOpenIdConnectProviderTagsOutput { + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProviderTagsOutput`](crate::output::ListOpenIdConnectProviderTagsOutput) pub fn builder() -> crate::output::list_open_id_connect_provider_tags_output::Builder { crate::output::list_open_id_connect_provider_tags_output::Builder::default() } @@ -3385,14 +3385,14 @@ impl ListOpenIDConnectProviderTagsOutput { /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpenIDConnectProvidersOutput { +pub struct ListOpenIdConnectProvidersOutput { ///

    The list of IAM OIDC provider resource objects defined in the AWS account.

    pub open_id_connect_provider_list: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for ListOpenIDConnectProvidersOutput { +impl std::fmt::Debug for ListOpenIdConnectProvidersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpenIDConnectProvidersOutput"); + let mut formatter = f.debug_struct("ListOpenIdConnectProvidersOutput"); formatter.field( "open_id_connect_provider_list", &self.open_id_connect_provider_list, @@ -3400,19 +3400,19 @@ impl std::fmt::Debug for ListOpenIDConnectProvidersOutput { formatter.finish() } } -/// See [`ListOpenIDConnectProvidersOutput`](crate::output::ListOpenIDConnectProvidersOutput) +/// See [`ListOpenIdConnectProvidersOutput`](crate::output::ListOpenIdConnectProvidersOutput) pub mod list_open_id_connect_providers_output { - /// A builder for [`ListOpenIDConnectProvidersOutput`](crate::output::ListOpenIDConnectProvidersOutput) + /// A builder for [`ListOpenIdConnectProvidersOutput`](crate::output::ListOpenIdConnectProvidersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) open_id_connect_provider_list: - std::option::Option>, + std::option::Option>, } impl Builder { pub fn open_id_connect_provider_list( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.open_id_connect_provider_list.unwrap_or_default(); v.push(input.into()); @@ -3421,21 +3421,21 @@ pub mod list_open_id_connect_providers_output { } pub fn set_open_id_connect_provider_list( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.open_id_connect_provider_list = input; self } - /// Consumes the builder and constructs a [`ListOpenIDConnectProvidersOutput`](crate::output::ListOpenIDConnectProvidersOutput) - pub fn build(self) -> crate::output::ListOpenIDConnectProvidersOutput { - crate::output::ListOpenIDConnectProvidersOutput { + /// Consumes the builder and constructs a [`ListOpenIdConnectProvidersOutput`](crate::output::ListOpenIdConnectProvidersOutput) + pub fn build(self) -> crate::output::ListOpenIdConnectProvidersOutput { + crate::output::ListOpenIdConnectProvidersOutput { open_id_connect_provider_list: self.open_id_connect_provider_list, } } } } -impl ListOpenIDConnectProvidersOutput { - /// Creates a new builder-style object to manufacture [`ListOpenIDConnectProvidersOutput`](crate::output::ListOpenIDConnectProvidersOutput) +impl ListOpenIdConnectProvidersOutput { + /// Creates a new builder-style object to manufacture [`ListOpenIdConnectProvidersOutput`](crate::output::ListOpenIdConnectProvidersOutput) pub fn builder() -> crate::output::list_open_id_connect_providers_output::Builder { crate::output::list_open_id_connect_providers_output::Builder::default() } @@ -3443,7 +3443,7 @@ impl ListOpenIDConnectProvidersOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMFADeviceTagsOutput { +pub struct ListMfaDeviceTagsOutput { ///

    The list of tags that are currently attached to the virtual MFA device. Each tag consists of a key name and an associated value. If no tags are attached to the specified resource, the response contains an empty list.

    pub tags: std::option::Option>, ///

    A flag that indicates whether there are more items to return. If your @@ -3456,18 +3456,18 @@ pub struct ListMFADeviceTagsOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListMFADeviceTagsOutput { +impl std::fmt::Debug for ListMfaDeviceTagsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMFADeviceTagsOutput"); + let mut formatter = f.debug_struct("ListMfaDeviceTagsOutput"); formatter.field("tags", &self.tags); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListMFADeviceTagsOutput`](crate::output::ListMFADeviceTagsOutput) +/// See [`ListMfaDeviceTagsOutput`](crate::output::ListMfaDeviceTagsOutput) pub mod list_mfa_device_tags_output { - /// A builder for [`ListMFADeviceTagsOutput`](crate::output::ListMFADeviceTagsOutput) + /// A builder for [`ListMfaDeviceTagsOutput`](crate::output::ListMfaDeviceTagsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3512,9 +3512,9 @@ pub mod list_mfa_device_tags_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListMFADeviceTagsOutput`](crate::output::ListMFADeviceTagsOutput) - pub fn build(self) -> crate::output::ListMFADeviceTagsOutput { - crate::output::ListMFADeviceTagsOutput { + /// Consumes the builder and constructs a [`ListMfaDeviceTagsOutput`](crate::output::ListMfaDeviceTagsOutput) + pub fn build(self) -> crate::output::ListMfaDeviceTagsOutput { + crate::output::ListMfaDeviceTagsOutput { tags: self.tags, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -3522,8 +3522,8 @@ pub mod list_mfa_device_tags_output { } } } -impl ListMFADeviceTagsOutput { - /// Creates a new builder-style object to manufacture [`ListMFADeviceTagsOutput`](crate::output::ListMFADeviceTagsOutput) +impl ListMfaDeviceTagsOutput { + /// Creates a new builder-style object to manufacture [`ListMfaDeviceTagsOutput`](crate::output::ListMfaDeviceTagsOutput) pub fn builder() -> crate::output::list_mfa_device_tags_output::Builder { crate::output::list_mfa_device_tags_output::Builder::default() } @@ -3533,9 +3533,9 @@ impl ListMFADeviceTagsOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMFADevicesOutput { +pub struct ListMfaDevicesOutput { ///

    A list of MFA devices.

    - pub mfa_devices: std::option::Option>, + pub mfa_devices: std::option::Option>, ///

    A flag that indicates whether there are more items to return. If your /// results were truncated, you can make a subsequent pagination request using the Marker /// request parameter to retrieve more items. Note that IAM might return fewer than the @@ -3548,27 +3548,27 @@ pub struct ListMFADevicesOutput { /// pagination request.

    pub marker: std::option::Option, } -impl std::fmt::Debug for ListMFADevicesOutput { +impl std::fmt::Debug for ListMfaDevicesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMFADevicesOutput"); + let mut formatter = f.debug_struct("ListMfaDevicesOutput"); formatter.field("mfa_devices", &self.mfa_devices); formatter.field("is_truncated", &self.is_truncated); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`ListMFADevicesOutput`](crate::output::ListMFADevicesOutput) +/// See [`ListMfaDevicesOutput`](crate::output::ListMfaDevicesOutput) pub mod list_mfa_devices_output { - /// A builder for [`ListMFADevicesOutput`](crate::output::ListMFADevicesOutput) + /// A builder for [`ListMfaDevicesOutput`](crate::output::ListMfaDevicesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) mfa_devices: std::option::Option>, + pub(crate) mfa_devices: std::option::Option>, pub(crate) is_truncated: std::option::Option, pub(crate) marker: std::option::Option, } impl Builder { - pub fn mfa_devices(mut self, input: impl Into) -> Self { + pub fn mfa_devices(mut self, input: impl Into) -> Self { let mut v = self.mfa_devices.unwrap_or_default(); v.push(input.into()); self.mfa_devices = Some(v); @@ -3576,7 +3576,7 @@ pub mod list_mfa_devices_output { } pub fn set_mfa_devices( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.mfa_devices = input; self @@ -3606,9 +3606,9 @@ pub mod list_mfa_devices_output { self.marker = input; self } - /// Consumes the builder and constructs a [`ListMFADevicesOutput`](crate::output::ListMFADevicesOutput) - pub fn build(self) -> crate::output::ListMFADevicesOutput { - crate::output::ListMFADevicesOutput { + /// Consumes the builder and constructs a [`ListMfaDevicesOutput`](crate::output::ListMfaDevicesOutput) + pub fn build(self) -> crate::output::ListMfaDevicesOutput { + crate::output::ListMfaDevicesOutput { mfa_devices: self.mfa_devices, is_truncated: self.is_truncated.unwrap_or_default(), marker: self.marker, @@ -3616,8 +3616,8 @@ pub mod list_mfa_devices_output { } } } -impl ListMFADevicesOutput { - /// Creates a new builder-style object to manufacture [`ListMFADevicesOutput`](crate::output::ListMFADevicesOutput) +impl ListMfaDevicesOutput { + /// Creates a new builder-style object to manufacture [`ListMfaDevicesOutput`](crate::output::ListMfaDevicesOutput) pub fn builder() -> crate::output::list_mfa_devices_output::Builder { crate::output::list_mfa_devices_output::Builder::default() } @@ -4962,48 +4962,48 @@ impl GetUserOutput { /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSSHPublicKeyOutput { +pub struct GetSshPublicKeyOutput { ///

    A structure containing details about the SSH public key.

    - pub ssh_public_key: std::option::Option, + pub ssh_public_key: std::option::Option, } -impl std::fmt::Debug for GetSSHPublicKeyOutput { +impl std::fmt::Debug for GetSshPublicKeyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSSHPublicKeyOutput"); + let mut formatter = f.debug_struct("GetSshPublicKeyOutput"); formatter.field("ssh_public_key", &self.ssh_public_key); formatter.finish() } } -/// See [`GetSSHPublicKeyOutput`](crate::output::GetSSHPublicKeyOutput) +/// See [`GetSshPublicKeyOutput`](crate::output::GetSshPublicKeyOutput) pub mod get_ssh_public_key_output { - /// A builder for [`GetSSHPublicKeyOutput`](crate::output::GetSSHPublicKeyOutput) + /// A builder for [`GetSshPublicKeyOutput`](crate::output::GetSshPublicKeyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) ssh_public_key: std::option::Option, + pub(crate) ssh_public_key: std::option::Option, } impl Builder { ///

    A structure containing details about the SSH public key.

    - pub fn ssh_public_key(mut self, input: crate::model::SSHPublicKey) -> Self { + pub fn ssh_public_key(mut self, input: crate::model::SshPublicKey) -> Self { self.ssh_public_key = Some(input); self } pub fn set_ssh_public_key( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.ssh_public_key = input; self } - /// Consumes the builder and constructs a [`GetSSHPublicKeyOutput`](crate::output::GetSSHPublicKeyOutput) - pub fn build(self) -> crate::output::GetSSHPublicKeyOutput { - crate::output::GetSSHPublicKeyOutput { + /// Consumes the builder and constructs a [`GetSshPublicKeyOutput`](crate::output::GetSshPublicKeyOutput) + pub fn build(self) -> crate::output::GetSshPublicKeyOutput { + crate::output::GetSshPublicKeyOutput { ssh_public_key: self.ssh_public_key, } } } } -impl GetSSHPublicKeyOutput { - /// Creates a new builder-style object to manufacture [`GetSSHPublicKeyOutput`](crate::output::GetSSHPublicKeyOutput) +impl GetSshPublicKeyOutput { + /// Creates a new builder-style object to manufacture [`GetSshPublicKeyOutput`](crate::output::GetSshPublicKeyOutput) pub fn builder() -> crate::output::get_ssh_public_key_output::Builder { crate::output::get_ssh_public_key_output::Builder::default() } @@ -5494,7 +5494,7 @@ impl GetServerCertificateOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSAMLProviderOutput { +pub struct GetSamlProviderOutput { ///

    The XML metadata document that includes information about an identity provider.

    pub saml_metadata_document: std::option::Option, ///

    The date and time when the SAML provider was created.

    @@ -5506,9 +5506,9 @@ pub struct GetSAMLProviderOutput { /// IAM User Guide.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for GetSAMLProviderOutput { +impl std::fmt::Debug for GetSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSAMLProviderOutput"); + let mut formatter = f.debug_struct("GetSamlProviderOutput"); formatter.field("saml_metadata_document", &self.saml_metadata_document); formatter.field("create_date", &self.create_date); formatter.field("valid_until", &self.valid_until); @@ -5516,9 +5516,9 @@ impl std::fmt::Debug for GetSAMLProviderOutput { formatter.finish() } } -/// See [`GetSAMLProviderOutput`](crate::output::GetSAMLProviderOutput) +/// See [`GetSamlProviderOutput`](crate::output::GetSamlProviderOutput) pub mod get_saml_provider_output { - /// A builder for [`GetSAMLProviderOutput`](crate::output::GetSAMLProviderOutput) + /// A builder for [`GetSamlProviderOutput`](crate::output::GetSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5577,9 +5577,9 @@ pub mod get_saml_provider_output { self.tags = input; self } - /// Consumes the builder and constructs a [`GetSAMLProviderOutput`](crate::output::GetSAMLProviderOutput) - pub fn build(self) -> crate::output::GetSAMLProviderOutput { - crate::output::GetSAMLProviderOutput { + /// Consumes the builder and constructs a [`GetSamlProviderOutput`](crate::output::GetSamlProviderOutput) + pub fn build(self) -> crate::output::GetSamlProviderOutput { + crate::output::GetSamlProviderOutput { saml_metadata_document: self.saml_metadata_document, create_date: self.create_date, valid_until: self.valid_until, @@ -5588,8 +5588,8 @@ pub mod get_saml_provider_output { } } } -impl GetSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`GetSAMLProviderOutput`](crate::output::GetSAMLProviderOutput) +impl GetSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`GetSamlProviderOutput`](crate::output::GetSamlProviderOutput) pub fn builder() -> crate::output::get_saml_provider_output::Builder { crate::output::get_saml_provider_output::Builder::default() } @@ -6042,7 +6042,7 @@ impl GetOrganizationsAccessReportOutput { /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpenIDConnectProviderOutput { +pub struct GetOpenIdConnectProviderOutput { ///

    The URL that the IAM OIDC provider resource object is associated with. For more /// information, see CreateOpenIDConnectProvider.

    pub url: std::option::Option, @@ -6060,9 +6060,9 @@ pub struct GetOpenIDConnectProviderOutput { /// IAM User Guide.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for GetOpenIDConnectProviderOutput { +impl std::fmt::Debug for GetOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("GetOpenIdConnectProviderOutput"); formatter.field("url", &self.url); formatter.field("client_id_list", &self.client_id_list); formatter.field("thumbprint_list", &self.thumbprint_list); @@ -6071,9 +6071,9 @@ impl std::fmt::Debug for GetOpenIDConnectProviderOutput { formatter.finish() } } -/// See [`GetOpenIDConnectProviderOutput`](crate::output::GetOpenIDConnectProviderOutput) +/// See [`GetOpenIdConnectProviderOutput`](crate::output::GetOpenIdConnectProviderOutput) pub mod get_open_id_connect_provider_output { - /// A builder for [`GetOpenIDConnectProviderOutput`](crate::output::GetOpenIDConnectProviderOutput) + /// A builder for [`GetOpenIdConnectProviderOutput`](crate::output::GetOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6146,9 +6146,9 @@ pub mod get_open_id_connect_provider_output { self.tags = input; self } - /// Consumes the builder and constructs a [`GetOpenIDConnectProviderOutput`](crate::output::GetOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::GetOpenIDConnectProviderOutput { - crate::output::GetOpenIDConnectProviderOutput { + /// Consumes the builder and constructs a [`GetOpenIdConnectProviderOutput`](crate::output::GetOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::GetOpenIdConnectProviderOutput { + crate::output::GetOpenIdConnectProviderOutput { url: self.url, client_id_list: self.client_id_list, thumbprint_list: self.thumbprint_list, @@ -6158,8 +6158,8 @@ pub mod get_open_id_connect_provider_output { } } } -impl GetOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`GetOpenIDConnectProviderOutput`](crate::output::GetOpenIDConnectProviderOutput) +impl GetOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`GetOpenIdConnectProviderOutput`](crate::output::GetOpenIdConnectProviderOutput) pub fn builder() -> crate::output::get_open_id_connect_provider_output::Builder { crate::output::get_open_id_connect_provider_output::Builder::default() } @@ -7136,28 +7136,28 @@ impl GenerateCredentialReportOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableMFADeviceOutput {} -impl std::fmt::Debug for EnableMFADeviceOutput { +pub struct EnableMfaDeviceOutput {} +impl std::fmt::Debug for EnableMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableMFADeviceOutput"); + let mut formatter = f.debug_struct("EnableMfaDeviceOutput"); formatter.finish() } } -/// See [`EnableMFADeviceOutput`](crate::output::EnableMFADeviceOutput) +/// See [`EnableMfaDeviceOutput`](crate::output::EnableMfaDeviceOutput) pub mod enable_mfa_device_output { - /// A builder for [`EnableMFADeviceOutput`](crate::output::EnableMFADeviceOutput) + /// A builder for [`EnableMfaDeviceOutput`](crate::output::EnableMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`EnableMFADeviceOutput`](crate::output::EnableMFADeviceOutput) - pub fn build(self) -> crate::output::EnableMFADeviceOutput { - crate::output::EnableMFADeviceOutput {} + /// Consumes the builder and constructs a [`EnableMfaDeviceOutput`](crate::output::EnableMfaDeviceOutput) + pub fn build(self) -> crate::output::EnableMfaDeviceOutput { + crate::output::EnableMfaDeviceOutput {} } } } -impl EnableMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`EnableMFADeviceOutput`](crate::output::EnableMFADeviceOutput) +impl EnableMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`EnableMfaDeviceOutput`](crate::output::EnableMfaDeviceOutput) pub fn builder() -> crate::output::enable_mfa_device_output::Builder { crate::output::enable_mfa_device_output::Builder::default() } @@ -7252,28 +7252,28 @@ impl DetachGroupPolicyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteVirtualMFADeviceOutput {} -impl std::fmt::Debug for DeleteVirtualMFADeviceOutput { +pub struct DeleteVirtualMfaDeviceOutput {} +impl std::fmt::Debug for DeleteVirtualMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteVirtualMFADeviceOutput"); + let mut formatter = f.debug_struct("DeleteVirtualMfaDeviceOutput"); formatter.finish() } } -/// See [`DeleteVirtualMFADeviceOutput`](crate::output::DeleteVirtualMFADeviceOutput) +/// See [`DeleteVirtualMfaDeviceOutput`](crate::output::DeleteVirtualMfaDeviceOutput) pub mod delete_virtual_mfa_device_output { - /// A builder for [`DeleteVirtualMFADeviceOutput`](crate::output::DeleteVirtualMFADeviceOutput) + /// A builder for [`DeleteVirtualMfaDeviceOutput`](crate::output::DeleteVirtualMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteVirtualMFADeviceOutput`](crate::output::DeleteVirtualMFADeviceOutput) - pub fn build(self) -> crate::output::DeleteVirtualMFADeviceOutput { - crate::output::DeleteVirtualMFADeviceOutput {} + /// Consumes the builder and constructs a [`DeleteVirtualMfaDeviceOutput`](crate::output::DeleteVirtualMfaDeviceOutput) + pub fn build(self) -> crate::output::DeleteVirtualMfaDeviceOutput { + crate::output::DeleteVirtualMfaDeviceOutput {} } } } -impl DeleteVirtualMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`DeleteVirtualMFADeviceOutput`](crate::output::DeleteVirtualMFADeviceOutput) +impl DeleteVirtualMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`DeleteVirtualMfaDeviceOutput`](crate::output::DeleteVirtualMfaDeviceOutput) pub fn builder() -> crate::output::delete_virtual_mfa_device_output::Builder { crate::output::delete_virtual_mfa_device_output::Builder::default() } @@ -7368,28 +7368,28 @@ impl DeleteUserOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSSHPublicKeyOutput {} -impl std::fmt::Debug for DeleteSSHPublicKeyOutput { +pub struct DeleteSshPublicKeyOutput {} +impl std::fmt::Debug for DeleteSshPublicKeyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSSHPublicKeyOutput"); + let mut formatter = f.debug_struct("DeleteSshPublicKeyOutput"); formatter.finish() } } -/// See [`DeleteSSHPublicKeyOutput`](crate::output::DeleteSSHPublicKeyOutput) +/// See [`DeleteSshPublicKeyOutput`](crate::output::DeleteSshPublicKeyOutput) pub mod delete_ssh_public_key_output { - /// A builder for [`DeleteSSHPublicKeyOutput`](crate::output::DeleteSSHPublicKeyOutput) + /// A builder for [`DeleteSshPublicKeyOutput`](crate::output::DeleteSshPublicKeyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteSSHPublicKeyOutput`](crate::output::DeleteSSHPublicKeyOutput) - pub fn build(self) -> crate::output::DeleteSSHPublicKeyOutput { - crate::output::DeleteSSHPublicKeyOutput {} + /// Consumes the builder and constructs a [`DeleteSshPublicKeyOutput`](crate::output::DeleteSshPublicKeyOutput) + pub fn build(self) -> crate::output::DeleteSshPublicKeyOutput { + crate::output::DeleteSshPublicKeyOutput {} } } } -impl DeleteSSHPublicKeyOutput { - /// Creates a new builder-style object to manufacture [`DeleteSSHPublicKeyOutput`](crate::output::DeleteSSHPublicKeyOutput) +impl DeleteSshPublicKeyOutput { + /// Creates a new builder-style object to manufacture [`DeleteSshPublicKeyOutput`](crate::output::DeleteSshPublicKeyOutput) pub fn builder() -> crate::output::delete_ssh_public_key_output::Builder { crate::output::delete_ssh_public_key_output::Builder::default() } @@ -7537,28 +7537,28 @@ impl DeleteServerCertificateOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSAMLProviderOutput {} -impl std::fmt::Debug for DeleteSAMLProviderOutput { +pub struct DeleteSamlProviderOutput {} +impl std::fmt::Debug for DeleteSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSAMLProviderOutput"); + let mut formatter = f.debug_struct("DeleteSamlProviderOutput"); formatter.finish() } } -/// See [`DeleteSAMLProviderOutput`](crate::output::DeleteSAMLProviderOutput) +/// See [`DeleteSamlProviderOutput`](crate::output::DeleteSamlProviderOutput) pub mod delete_saml_provider_output { - /// A builder for [`DeleteSAMLProviderOutput`](crate::output::DeleteSAMLProviderOutput) + /// A builder for [`DeleteSamlProviderOutput`](crate::output::DeleteSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteSAMLProviderOutput`](crate::output::DeleteSAMLProviderOutput) - pub fn build(self) -> crate::output::DeleteSAMLProviderOutput { - crate::output::DeleteSAMLProviderOutput {} + /// Consumes the builder and constructs a [`DeleteSamlProviderOutput`](crate::output::DeleteSamlProviderOutput) + pub fn build(self) -> crate::output::DeleteSamlProviderOutput { + crate::output::DeleteSamlProviderOutput {} } } } -impl DeleteSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`DeleteSAMLProviderOutput`](crate::output::DeleteSAMLProviderOutput) +impl DeleteSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`DeleteSamlProviderOutput`](crate::output::DeleteSamlProviderOutput) pub fn builder() -> crate::output::delete_saml_provider_output::Builder { crate::output::delete_saml_provider_output::Builder::default() } @@ -7711,28 +7711,28 @@ impl DeletePolicyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteOpenIDConnectProviderOutput {} -impl std::fmt::Debug for DeleteOpenIDConnectProviderOutput { +pub struct DeleteOpenIdConnectProviderOutput {} +impl std::fmt::Debug for DeleteOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("DeleteOpenIdConnectProviderOutput"); formatter.finish() } } -/// See [`DeleteOpenIDConnectProviderOutput`](crate::output::DeleteOpenIDConnectProviderOutput) +/// See [`DeleteOpenIdConnectProviderOutput`](crate::output::DeleteOpenIdConnectProviderOutput) pub mod delete_open_id_connect_provider_output { - /// A builder for [`DeleteOpenIDConnectProviderOutput`](crate::output::DeleteOpenIDConnectProviderOutput) + /// A builder for [`DeleteOpenIdConnectProviderOutput`](crate::output::DeleteOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteOpenIDConnectProviderOutput`](crate::output::DeleteOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::DeleteOpenIDConnectProviderOutput { - crate::output::DeleteOpenIDConnectProviderOutput {} + /// Consumes the builder and constructs a [`DeleteOpenIdConnectProviderOutput`](crate::output::DeleteOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::DeleteOpenIdConnectProviderOutput { + crate::output::DeleteOpenIdConnectProviderOutput {} } } } -impl DeleteOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`DeleteOpenIDConnectProviderOutput`](crate::output::DeleteOpenIDConnectProviderOutput) +impl DeleteOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`DeleteOpenIdConnectProviderOutput`](crate::output::DeleteOpenIdConnectProviderOutput) pub fn builder() -> crate::output::delete_open_id_connect_provider_output::Builder { crate::output::delete_open_id_connect_provider_output::Builder::default() } @@ -7943,28 +7943,28 @@ impl DeleteAccessKeyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeactivateMFADeviceOutput {} -impl std::fmt::Debug for DeactivateMFADeviceOutput { +pub struct DeactivateMfaDeviceOutput {} +impl std::fmt::Debug for DeactivateMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeactivateMFADeviceOutput"); + let mut formatter = f.debug_struct("DeactivateMfaDeviceOutput"); formatter.finish() } } -/// See [`DeactivateMFADeviceOutput`](crate::output::DeactivateMFADeviceOutput) +/// See [`DeactivateMfaDeviceOutput`](crate::output::DeactivateMfaDeviceOutput) pub mod deactivate_mfa_device_output { - /// A builder for [`DeactivateMFADeviceOutput`](crate::output::DeactivateMFADeviceOutput) + /// A builder for [`DeactivateMfaDeviceOutput`](crate::output::DeactivateMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeactivateMFADeviceOutput`](crate::output::DeactivateMFADeviceOutput) - pub fn build(self) -> crate::output::DeactivateMFADeviceOutput { - crate::output::DeactivateMFADeviceOutput {} + /// Consumes the builder and constructs a [`DeactivateMfaDeviceOutput`](crate::output::DeactivateMfaDeviceOutput) + pub fn build(self) -> crate::output::DeactivateMfaDeviceOutput { + crate::output::DeactivateMfaDeviceOutput {} } } } -impl DeactivateMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`DeactivateMFADeviceOutput`](crate::output::DeactivateMFADeviceOutput) +impl DeactivateMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`DeactivateMfaDeviceOutput`](crate::output::DeactivateMfaDeviceOutput) pub fn builder() -> crate::output::deactivate_mfa_device_output::Builder { crate::output::deactivate_mfa_device_output::Builder::default() } @@ -7974,48 +7974,48 @@ impl DeactivateMFADeviceOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVirtualMFADeviceOutput { +pub struct CreateVirtualMfaDeviceOutput { ///

    A structure containing details about the new virtual MFA device.

    - pub virtual_mfa_device: std::option::Option, + pub virtual_mfa_device: std::option::Option, } -impl std::fmt::Debug for CreateVirtualMFADeviceOutput { +impl std::fmt::Debug for CreateVirtualMfaDeviceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVirtualMFADeviceOutput"); + let mut formatter = f.debug_struct("CreateVirtualMfaDeviceOutput"); formatter.field("virtual_mfa_device", &self.virtual_mfa_device); formatter.finish() } } -/// See [`CreateVirtualMFADeviceOutput`](crate::output::CreateVirtualMFADeviceOutput) +/// See [`CreateVirtualMfaDeviceOutput`](crate::output::CreateVirtualMfaDeviceOutput) pub mod create_virtual_mfa_device_output { - /// A builder for [`CreateVirtualMFADeviceOutput`](crate::output::CreateVirtualMFADeviceOutput) + /// A builder for [`CreateVirtualMfaDeviceOutput`](crate::output::CreateVirtualMfaDeviceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) virtual_mfa_device: std::option::Option, + pub(crate) virtual_mfa_device: std::option::Option, } impl Builder { ///

    A structure containing details about the new virtual MFA device.

    - pub fn virtual_mfa_device(mut self, input: crate::model::VirtualMFADevice) -> Self { + pub fn virtual_mfa_device(mut self, input: crate::model::VirtualMfaDevice) -> Self { self.virtual_mfa_device = Some(input); self } pub fn set_virtual_mfa_device( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.virtual_mfa_device = input; self } - /// Consumes the builder and constructs a [`CreateVirtualMFADeviceOutput`](crate::output::CreateVirtualMFADeviceOutput) - pub fn build(self) -> crate::output::CreateVirtualMFADeviceOutput { - crate::output::CreateVirtualMFADeviceOutput { + /// Consumes the builder and constructs a [`CreateVirtualMfaDeviceOutput`](crate::output::CreateVirtualMfaDeviceOutput) + pub fn build(self) -> crate::output::CreateVirtualMfaDeviceOutput { + crate::output::CreateVirtualMfaDeviceOutput { virtual_mfa_device: self.virtual_mfa_device, } } } } -impl CreateVirtualMFADeviceOutput { - /// Creates a new builder-style object to manufacture [`CreateVirtualMFADeviceOutput`](crate::output::CreateVirtualMFADeviceOutput) +impl CreateVirtualMfaDeviceOutput { + /// Creates a new builder-style object to manufacture [`CreateVirtualMfaDeviceOutput`](crate::output::CreateVirtualMfaDeviceOutput) pub fn builder() -> crate::output::create_virtual_mfa_device_output::Builder { crate::output::create_virtual_mfa_device_output::Builder::default() } @@ -8182,7 +8182,7 @@ impl CreateServiceLinkedRoleOutput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSAMLProviderOutput { +pub struct CreateSamlProviderOutput { ///

    The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.

    pub saml_provider_arn: std::option::Option, ///

    A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. @@ -8190,17 +8190,17 @@ pub struct CreateSAMLProviderOutput { /// IAM User Guide.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateSAMLProviderOutput { +impl std::fmt::Debug for CreateSamlProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSAMLProviderOutput"); + let mut formatter = f.debug_struct("CreateSamlProviderOutput"); formatter.field("saml_provider_arn", &self.saml_provider_arn); formatter.field("tags", &self.tags); formatter.finish() } } -/// See [`CreateSAMLProviderOutput`](crate::output::CreateSAMLProviderOutput) +/// See [`CreateSamlProviderOutput`](crate::output::CreateSamlProviderOutput) pub mod create_saml_provider_output { - /// A builder for [`CreateSAMLProviderOutput`](crate::output::CreateSAMLProviderOutput) + /// A builder for [`CreateSamlProviderOutput`](crate::output::CreateSamlProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8233,17 +8233,17 @@ pub mod create_saml_provider_output { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateSAMLProviderOutput`](crate::output::CreateSAMLProviderOutput) - pub fn build(self) -> crate::output::CreateSAMLProviderOutput { - crate::output::CreateSAMLProviderOutput { + /// Consumes the builder and constructs a [`CreateSamlProviderOutput`](crate::output::CreateSamlProviderOutput) + pub fn build(self) -> crate::output::CreateSamlProviderOutput { + crate::output::CreateSamlProviderOutput { saml_provider_arn: self.saml_provider_arn, tags: self.tags, } } } } -impl CreateSAMLProviderOutput { - /// Creates a new builder-style object to manufacture [`CreateSAMLProviderOutput`](crate::output::CreateSAMLProviderOutput) +impl CreateSamlProviderOutput { + /// Creates a new builder-style object to manufacture [`CreateSamlProviderOutput`](crate::output::CreateSamlProviderOutput) pub fn builder() -> crate::output::create_saml_provider_output::Builder { crate::output::create_saml_provider_output::Builder::default() } @@ -8397,7 +8397,7 @@ impl CreatePolicyOutput { /// request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpenIDConnectProviderOutput { +pub struct CreateOpenIdConnectProviderOutput { ///

    The Amazon Resource Name (ARN) of the new IAM OpenID Connect provider that is /// created. For more information, see OpenIDConnectProviderListEntry. ///

    @@ -8407,9 +8407,9 @@ pub struct CreateOpenIDConnectProviderOutput { /// IAM User Guide.

    pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateOpenIDConnectProviderOutput { +impl std::fmt::Debug for CreateOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("CreateOpenIdConnectProviderOutput"); formatter.field( "open_id_connect_provider_arn", &self.open_id_connect_provider_arn, @@ -8418,9 +8418,9 @@ impl std::fmt::Debug for CreateOpenIDConnectProviderOutput { formatter.finish() } } -/// See [`CreateOpenIDConnectProviderOutput`](crate::output::CreateOpenIDConnectProviderOutput) +/// See [`CreateOpenIdConnectProviderOutput`](crate::output::CreateOpenIdConnectProviderOutput) pub mod create_open_id_connect_provider_output { - /// A builder for [`CreateOpenIDConnectProviderOutput`](crate::output::CreateOpenIDConnectProviderOutput) + /// A builder for [`CreateOpenIdConnectProviderOutput`](crate::output::CreateOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8458,17 +8458,17 @@ pub mod create_open_id_connect_provider_output { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateOpenIDConnectProviderOutput`](crate::output::CreateOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::CreateOpenIDConnectProviderOutput { - crate::output::CreateOpenIDConnectProviderOutput { + /// Consumes the builder and constructs a [`CreateOpenIdConnectProviderOutput`](crate::output::CreateOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::CreateOpenIdConnectProviderOutput { + crate::output::CreateOpenIdConnectProviderOutput { open_id_connect_provider_arn: self.open_id_connect_provider_arn, tags: self.tags, } } } } -impl CreateOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`CreateOpenIDConnectProviderOutput`](crate::output::CreateOpenIDConnectProviderOutput) +impl CreateOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`CreateOpenIdConnectProviderOutput`](crate::output::CreateOpenIdConnectProviderOutput) pub fn builder() -> crate::output::create_open_id_connect_provider_output::Builder { crate::output::create_open_id_connect_provider_output::Builder::default() } @@ -8877,28 +8877,28 @@ impl AddRoleToInstanceProfileOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddClientIDToOpenIDConnectProviderOutput {} -impl std::fmt::Debug for AddClientIDToOpenIDConnectProviderOutput { +pub struct AddClientIdToOpenIdConnectProviderOutput {} +impl std::fmt::Debug for AddClientIdToOpenIdConnectProviderOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddClientIDToOpenIDConnectProviderOutput"); + let mut formatter = f.debug_struct("AddClientIdToOpenIdConnectProviderOutput"); formatter.finish() } } -/// See [`AddClientIDToOpenIDConnectProviderOutput`](crate::output::AddClientIDToOpenIDConnectProviderOutput) +/// See [`AddClientIdToOpenIdConnectProviderOutput`](crate::output::AddClientIdToOpenIdConnectProviderOutput) pub mod add_client_id_to_open_id_connect_provider_output { - /// A builder for [`AddClientIDToOpenIDConnectProviderOutput`](crate::output::AddClientIDToOpenIDConnectProviderOutput) + /// A builder for [`AddClientIdToOpenIdConnectProviderOutput`](crate::output::AddClientIdToOpenIdConnectProviderOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`AddClientIDToOpenIDConnectProviderOutput`](crate::output::AddClientIDToOpenIDConnectProviderOutput) - pub fn build(self) -> crate::output::AddClientIDToOpenIDConnectProviderOutput { - crate::output::AddClientIDToOpenIDConnectProviderOutput {} + /// Consumes the builder and constructs a [`AddClientIdToOpenIdConnectProviderOutput`](crate::output::AddClientIdToOpenIdConnectProviderOutput) + pub fn build(self) -> crate::output::AddClientIdToOpenIdConnectProviderOutput { + crate::output::AddClientIdToOpenIdConnectProviderOutput {} } } } -impl AddClientIDToOpenIDConnectProviderOutput { - /// Creates a new builder-style object to manufacture [`AddClientIDToOpenIDConnectProviderOutput`](crate::output::AddClientIDToOpenIDConnectProviderOutput) +impl AddClientIdToOpenIdConnectProviderOutput { + /// Creates a new builder-style object to manufacture [`AddClientIdToOpenIdConnectProviderOutput`](crate::output::AddClientIdToOpenIdConnectProviderOutput) pub fn builder() -> crate::output::add_client_id_to_open_id_connect_provider_output::Builder { crate::output::add_client_id_to_open_id_connect_provider_output::Builder::default() } diff --git a/sdk/iam/src/xml_deser.rs b/sdk/iam/src/xml_deser.rs index 2f04d6dd8c04..fcb416fc01d0 100644 --- a/sdk/iam/src/xml_deser.rs +++ b/sdk/iam/src/xml_deser.rs @@ -6,10 +6,10 @@ pub fn parse_generic_error( } #[allow(unused_mut)] -pub fn deser_structure_invalid_input_error_xml_err( +pub fn deser_structure_invalid_input_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_input_error::Builder, -) -> Result { + mut builder: crate::error::invalid_input_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -36,10 +36,10 @@ pub fn deser_structure_invalid_input_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_limit_exceeded_error_xml_err( +pub fn deser_structure_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::limit_exceeded_error::Builder, -) -> Result { + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -66,10 +66,10 @@ pub fn deser_structure_limit_exceeded_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_no_such_entity_error_xml_err( +pub fn deser_structure_no_such_entity_exception_xml_err( inp: &[u8], - mut builder: crate::error::no_such_entity_error::Builder, -) -> Result { + mut builder: crate::error::no_such_entity_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -96,10 +96,10 @@ pub fn deser_structure_no_such_entity_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_service_failure_error_xml_err( +pub fn deser_structure_service_failure_exception_xml_err( inp: &[u8], - mut builder: crate::error::service_failure_error::Builder, -) -> Result { + mut builder: crate::error::service_failure_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -126,10 +126,10 @@ pub fn deser_structure_service_failure_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_entity_already_exists_error_xml_err( +pub fn deser_structure_entity_already_exists_exception_xml_err( inp: &[u8], - mut builder: crate::error::entity_already_exists_error::Builder, -) -> Result { + mut builder: crate::error::entity_already_exists_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -156,10 +156,10 @@ pub fn deser_structure_entity_already_exists_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_unmodifiable_entity_error_xml_err( +pub fn deser_structure_unmodifiable_entity_exception_xml_err( inp: &[u8], - mut builder: crate::error::unmodifiable_entity_error::Builder, -) -> Result { + mut builder: crate::error::unmodifiable_entity_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -186,10 +186,10 @@ pub fn deser_structure_unmodifiable_entity_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_policy_not_attachable_error_xml_err( +pub fn deser_structure_policy_not_attachable_exception_xml_err( inp: &[u8], - mut builder: crate::error::policy_not_attachable_error::Builder, -) -> Result { + mut builder: crate::error::policy_not_attachable_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -216,11 +216,11 @@ pub fn deser_structure_policy_not_attachable_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_entity_temporarily_unmodifiable_error_xml_err( +pub fn deser_structure_entity_temporarily_unmodifiable_exception_xml_err( inp: &[u8], - mut builder: crate::error::entity_temporarily_unmodifiable_error::Builder, + mut builder: crate::error::entity_temporarily_unmodifiable_exception::Builder, ) -> Result< - crate::error::entity_temporarily_unmodifiable_error::Builder, + crate::error::entity_temporarily_unmodifiable_exception::Builder, smithy_xml::decode::XmlError, > { use std::convert::TryFrom; @@ -249,10 +249,10 @@ pub fn deser_structure_entity_temporarily_unmodifiable_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_user_type_error_xml_err( +pub fn deser_structure_invalid_user_type_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_user_type_error::Builder, -) -> Result { + mut builder: crate::error::invalid_user_type_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -279,10 +279,11 @@ pub fn deser_structure_invalid_user_type_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_password_policy_violation_error_xml_err( +pub fn deser_structure_password_policy_violation_exception_xml_err( inp: &[u8], - mut builder: crate::error::password_policy_violation_error::Builder, -) -> Result { + mut builder: crate::error::password_policy_violation_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -405,10 +406,11 @@ pub fn deser_operation_create_group( } #[allow(unused_mut)] -pub fn deser_structure_concurrent_modification_error_xml_err( +pub fn deser_structure_concurrent_modification_exception_xml_err( inp: &[u8], - mut builder: crate::error::concurrent_modification_error::Builder, -) -> Result { + mut builder: crate::error::concurrent_modification_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -595,10 +597,11 @@ pub fn deser_operation_create_open_id_connect_provider( } #[allow(unused_mut)] -pub fn deser_structure_malformed_policy_document_error_xml_err( +pub fn deser_structure_malformed_policy_document_exception_xml_err( inp: &[u8], - mut builder: crate::error::malformed_policy_document_error::Builder, -) -> Result { + mut builder: crate::error::malformed_policy_document_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -879,10 +882,10 @@ pub fn deser_operation_create_service_linked_role( } #[allow(unused_mut)] -pub fn deser_structure_service_not_supported_error_xml_err( +pub fn deser_structure_service_not_supported_exception_xml_err( inp: &[u8], - mut builder: crate::error::service_not_supported_error::Builder, -) -> Result { + mut builder: crate::error::service_not_supported_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1057,10 +1060,10 @@ pub fn deser_operation_create_virtual_mfa_device( } #[allow(unused_mut)] -pub fn deser_structure_delete_conflict_error_xml_err( +pub fn deser_structure_delete_conflict_exception_xml_err( inp: &[u8], - mut builder: crate::error::delete_conflict_error::Builder, -) -> Result { + mut builder: crate::error::delete_conflict_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1139,11 +1142,13 @@ pub fn deser_operation_delete_service_linked_role( } #[allow(unused_mut)] -pub fn deser_structure_invalid_authentication_code_error_xml_err( +pub fn deser_structure_invalid_authentication_code_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_authentication_code_error::Builder, -) -> Result -{ + mut builder: crate::error::invalid_authentication_code_exception::Builder, +) -> Result< + crate::error::invalid_authentication_code_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1236,11 +1241,11 @@ pub fn deser_operation_generate_credential_report( } #[allow(unused_mut)] -pub fn deser_structure_report_generation_limit_exceeded_error_xml_err( +pub fn deser_structure_report_generation_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::report_generation_limit_exceeded_error::Builder, + mut builder: crate::error::report_generation_limit_exceeded_exception::Builder, ) -> Result< - crate::error::report_generation_limit_exceeded_error::Builder, + crate::error::report_generation_limit_exceeded_exception::Builder, smithy_xml::decode::XmlError, > { use std::convert::TryFrom; @@ -1747,10 +1752,11 @@ pub fn deser_operation_get_context_keys_for_principal_policy( } #[allow(unused_mut)] -pub fn deser_structure_credential_report_expired_error_xml_err( +pub fn deser_structure_credential_report_expired_exception_xml_err( inp: &[u8], - mut builder: crate::error::credential_report_expired_error::Builder, -) -> Result { + mut builder: crate::error::credential_report_expired_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1777,11 +1783,13 @@ pub fn deser_structure_credential_report_expired_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_credential_report_not_present_error_xml_err( +pub fn deser_structure_credential_report_not_present_exception_xml_err( inp: &[u8], - mut builder: crate::error::credential_report_not_present_error::Builder, -) -> Result -{ + mut builder: crate::error::credential_report_not_present_exception::Builder, +) -> Result< + crate::error::credential_report_not_present_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1808,11 +1816,13 @@ pub fn deser_structure_credential_report_not_present_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_credential_report_not_ready_error_xml_err( +pub fn deser_structure_credential_report_not_ready_exception_xml_err( inp: &[u8], - mut builder: crate::error::credential_report_not_ready_error::Builder, -) -> Result -{ + mut builder: crate::error::credential_report_not_ready_exception::Builder, +) -> Result< + crate::error::credential_report_not_ready_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -3139,11 +3149,11 @@ pub fn deser_operation_get_service_linked_role_deletion_status( } #[allow(unused_mut)] -pub fn deser_structure_unrecognized_public_key_encoding_error_xml_err( +pub fn deser_structure_unrecognized_public_key_encoding_exception_xml_err( inp: &[u8], - mut builder: crate::error::unrecognized_public_key_encoding_error::Builder, + mut builder: crate::error::unrecognized_public_key_encoding_exception::Builder, ) -> Result< - crate::error::unrecognized_public_key_encoding_error::Builder, + crate::error::unrecognized_public_key_encoding_exception::Builder, smithy_xml::decode::XmlError, > { use std::convert::TryFrom; @@ -5968,10 +5978,10 @@ pub fn deser_operation_reset_service_specific_credential( } #[allow(unused_mut)] -pub fn deser_structure_policy_evaluation_error_xml_err( +pub fn deser_structure_policy_evaluation_exception_xml_err( inp: &[u8], - mut builder: crate::error::policy_evaluation_error::Builder, -) -> Result { + mut builder: crate::error::policy_evaluation_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6252,10 +6262,10 @@ pub fn deser_operation_update_saml_provider( } #[allow(unused_mut)] -pub fn deser_structure_key_pair_mismatch_error_xml_err( +pub fn deser_structure_key_pair_mismatch_exception_xml_err( inp: &[u8], - mut builder: crate::error::key_pair_mismatch_error::Builder, -) -> Result { + mut builder: crate::error::key_pair_mismatch_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6282,10 +6292,10 @@ pub fn deser_structure_key_pair_mismatch_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_malformed_certificate_error_xml_err( +pub fn deser_structure_malformed_certificate_exception_xml_err( inp: &[u8], - mut builder: crate::error::malformed_certificate_error::Builder, -) -> Result { + mut builder: crate::error::malformed_certificate_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6371,10 +6381,10 @@ pub fn deser_operation_upload_server_certificate( } #[allow(unused_mut)] -pub fn deser_structure_duplicate_certificate_error_xml_err( +pub fn deser_structure_duplicate_certificate_exception_xml_err( inp: &[u8], - mut builder: crate::error::duplicate_certificate_error::Builder, -) -> Result { + mut builder: crate::error::duplicate_certificate_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6401,10 +6411,10 @@ pub fn deser_structure_duplicate_certificate_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_certificate_error_xml_err( +pub fn deser_structure_invalid_certificate_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_certificate_error::Builder, -) -> Result { + mut builder: crate::error::invalid_certificate_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6480,10 +6490,11 @@ pub fn deser_operation_upload_signing_certificate( } #[allow(unused_mut)] -pub fn deser_structure_duplicate_ssh_public_key_error_xml_err( +pub fn deser_structure_duplicate_ssh_public_key_exception_xml_err( inp: &[u8], - mut builder: crate::error::duplicate_ssh_public_key_error::Builder, -) -> Result { + mut builder: crate::error::duplicate_ssh_public_key_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -6510,10 +6521,10 @@ pub fn deser_structure_duplicate_ssh_public_key_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_public_key_error_xml_err( +pub fn deser_structure_invalid_public_key_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_public_key_error::Builder, -) -> Result { + mut builder: crate::error::invalid_public_key_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -7538,9 +7549,9 @@ pub fn deser_structure_user( pub fn deser_structure_virtual_mfa_device( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::VirtualMFADevice::builder(); + let mut builder = crate::model::VirtualMfaDevice::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("SerialNumber") /* SerialNumber com.amazonaws.iam#VirtualMFADevice$SerialNumber */ => { @@ -8220,9 +8231,9 @@ pub fn deser_structure_deletion_task_failure_reason_type( pub fn deser_structure_ssh_public_key( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SSHPublicKey::builder(); + let mut builder = crate::model::SshPublicKey::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("UserName") /* UserName com.amazonaws.iam#SSHPublicKey$UserName */ => { @@ -8490,7 +8501,7 @@ pub fn deser_list_instance_profile_list_type( pub fn deser_list_mfa_device_list_type( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -8509,7 +8520,7 @@ pub fn deser_list_mfa_device_list_type( pub fn deser_list_open_id_connect_provider_list_type( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { @@ -8608,7 +8619,7 @@ pub fn deser_list_role_list_type( pub fn deser_list_saml_provider_list_type( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -8687,7 +8698,7 @@ pub fn deser_list_certificate_list_type( pub fn deser_list_ssh_public_key_list_type( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -8706,7 +8717,7 @@ pub fn deser_list_ssh_public_key_list_type( pub fn deser_list_virtual_mfa_device_list_type( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -10113,9 +10124,9 @@ pub fn deser_structure_policy_role( pub fn deser_structure_mfa_device( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::MFADevice::builder(); + let mut builder = crate::model::MfaDevice::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("UserName") /* UserName com.amazonaws.iam#MFADevice$UserName */ => { @@ -10166,9 +10177,9 @@ pub fn deser_structure_mfa_device( pub fn deser_structure_open_id_connect_provider_list_entry( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::OpenIDConnectProviderListEntry::builder(); + let mut builder = crate::model::OpenIdConnectProviderListEntry::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Arn") /* Arn com.amazonaws.iam#OpenIDConnectProviderListEntry$Arn */ => { @@ -10228,9 +10239,9 @@ pub fn deser_structure_list_policies_granting_service_access_entry( pub fn deser_structure_saml_provider_list_entry( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SAMLProviderListEntry::builder(); + let mut builder = crate::model::SamlProviderListEntry::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Arn") /* Arn com.amazonaws.iam#SAMLProviderListEntry$Arn */ => { @@ -10375,9 +10386,9 @@ pub fn deser_structure_service_specific_credential_metadata( pub fn deser_structure_ssh_public_key_metadata( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SSHPublicKeyMetadata::builder(); + let mut builder = crate::model::SshPublicKeyMetadata::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("UserName") /* UserName com.amazonaws.iam#SSHPublicKeyMetadata$UserName */ => { diff --git a/sdk/kinesis/Cargo.toml b/sdk/kinesis/Cargo.toml index 12171ced6e59..d9ea24114a21 100644 --- a/sdk/kinesis/Cargo.toml +++ b/sdk/kinesis/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-kinesis" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon Kinesis Data Streams Service API Reference\n

    Amazon Kinesis Data Streams is a managed service that scales elastically for\n real-time processing of streaming big data.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,22 +20,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/kinesis/src/aws_json_errors.rs b/sdk/kinesis/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/kinesis/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/kinesis/src/blob_serde.rs b/sdk/kinesis/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/kinesis/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/kinesis/src/error.rs b/sdk/kinesis/src/error.rs index 325973b1bf81..f7dedddf0b33 100644 --- a/sdk/kinesis/src/error.rs +++ b/sdk/kinesis/src/error.rs @@ -8,20 +8,20 @@ pub struct AddTagsToStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddTagsToStreamErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddTagsToStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddTagsToStreamErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - AddTagsToStreamErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - AddTagsToStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - AddTagsToStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + AddTagsToStreamErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + AddTagsToStreamErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + AddTagsToStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + AddTagsToStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), AddTagsToStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -70,32 +70,38 @@ impl AddTagsToStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - AddTagsToStreamErrorKind::InvalidArgumentError(_) + AddTagsToStreamErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, AddTagsToStreamErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + AddTagsToStreamErrorKind::ResourceInUseException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, AddTagsToStreamErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + AddTagsToStreamErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - AddTagsToStreamErrorKind::ResourceNotFoundError(_) + AddTagsToStreamErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for AddTagsToStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddTagsToStreamErrorKind::InvalidArgumentError(_inner) => Some(_inner), - AddTagsToStreamErrorKind::ResourceInUseError(_inner) => Some(_inner), - AddTagsToStreamErrorKind::LimitExceededError(_inner) => Some(_inner), - AddTagsToStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + AddTagsToStreamErrorKind::InvalidArgumentException(_inner) => Some(_inner), + AddTagsToStreamErrorKind::ResourceInUseException(_inner) => Some(_inner), + AddTagsToStreamErrorKind::LimitExceededException(_inner) => Some(_inner), + AddTagsToStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), AddTagsToStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -110,18 +116,18 @@ pub struct CreateStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateStreamErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateStreamErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - CreateStreamErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - CreateStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + CreateStreamErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + CreateStreamErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + CreateStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), CreateStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -170,22 +176,25 @@ impl CreateStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, CreateStreamErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!( + &self.kind, + CreateStreamErrorKind::InvalidArgumentException(_) + ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, CreateStreamErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateStreamErrorKind::ResourceInUseException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateStreamErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateStreamErrorKind::LimitExceededException(_)) } } impl std::error::Error for CreateStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateStreamErrorKind::InvalidArgumentError(_inner) => Some(_inner), - CreateStreamErrorKind::ResourceInUseError(_inner) => Some(_inner), - CreateStreamErrorKind::LimitExceededError(_inner) => Some(_inner), + CreateStreamErrorKind::InvalidArgumentException(_inner) => Some(_inner), + CreateStreamErrorKind::ResourceInUseException(_inner) => Some(_inner), + CreateStreamErrorKind::LimitExceededException(_inner) => Some(_inner), CreateStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -200,20 +209,24 @@ pub struct DecreaseStreamRetentionPeriodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DecreaseStreamRetentionPeriodErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DecreaseStreamRetentionPeriodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - DecreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DecreaseStreamRetentionPeriodErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_inner) => { + _inner.fmt(f) + } + DecreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DecreaseStreamRetentionPeriodErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } DecreaseStreamRetentionPeriodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -262,38 +275,42 @@ impl DecreaseStreamRetentionPeriodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_) + DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - DecreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_) + DecreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DecreaseStreamRetentionPeriodErrorKind::LimitExceededError(_) + DecreaseStreamRetentionPeriodErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_) + DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DecreaseStreamRetentionPeriodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_inner) => Some(_inner), - DecreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_inner) => Some(_inner), - DecreaseStreamRetentionPeriodErrorKind::LimitExceededError(_inner) => Some(_inner), - DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_inner) => { + Some(_inner) + } + DecreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_inner) => Some(_inner), + DecreaseStreamRetentionPeriodErrorKind::LimitExceededException(_inner) => Some(_inner), + DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } DecreaseStreamRetentionPeriodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -308,18 +325,18 @@ pub struct DeleteStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteStreamErrorKind { - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteStreamErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DeleteStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeleteStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DeleteStreamErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeleteStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DeleteStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -368,22 +385,25 @@ impl DeleteStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, DeleteStreamErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, DeleteStreamErrorKind::ResourceInUseException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DeleteStreamErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, DeleteStreamErrorKind::LimitExceededException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteStreamErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteStreamErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for DeleteStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteStreamErrorKind::ResourceInUseError(_inner) => Some(_inner), - DeleteStreamErrorKind::LimitExceededError(_inner) => Some(_inner), - DeleteStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DeleteStreamErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteStreamErrorKind::LimitExceededException(_inner) => Some(_inner), + DeleteStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DeleteStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -398,18 +418,18 @@ pub struct DeregisterStreamConsumerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterStreamConsumerErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterStreamConsumerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterStreamConsumerErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - DeregisterStreamConsumerErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DeregisterStreamConsumerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DeregisterStreamConsumerErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + DeregisterStreamConsumerErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DeregisterStreamConsumerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DeregisterStreamConsumerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -458,31 +478,31 @@ impl DeregisterStreamConsumerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - DeregisterStreamConsumerErrorKind::InvalidArgumentError(_) + DeregisterStreamConsumerErrorKind::InvalidArgumentException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DeregisterStreamConsumerErrorKind::LimitExceededError(_) + DeregisterStreamConsumerErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeregisterStreamConsumerErrorKind::ResourceNotFoundError(_) + DeregisterStreamConsumerErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DeregisterStreamConsumerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterStreamConsumerErrorKind::InvalidArgumentError(_inner) => Some(_inner), - DeregisterStreamConsumerErrorKind::LimitExceededError(_inner) => Some(_inner), - DeregisterStreamConsumerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DeregisterStreamConsumerErrorKind::InvalidArgumentException(_inner) => Some(_inner), + DeregisterStreamConsumerErrorKind::LimitExceededException(_inner) => Some(_inner), + DeregisterStreamConsumerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DeregisterStreamConsumerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -497,14 +517,14 @@ pub struct DescribeLimitsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeLimitsErrorKind { - LimitExceededError(crate::error::LimitExceededError), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeLimitsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeLimitsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + DescribeLimitsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), DescribeLimitsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -553,14 +573,17 @@ impl DescribeLimitsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DescribeLimitsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DescribeLimitsErrorKind::LimitExceededException(_) + ) } } impl std::error::Error for DescribeLimitsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeLimitsErrorKind::LimitExceededError(_inner) => Some(_inner), + DescribeLimitsErrorKind::LimitExceededException(_inner) => Some(_inner), DescribeLimitsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -575,16 +598,16 @@ pub struct DescribeStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStreamErrorKind { - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DescribeStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DescribeStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -633,21 +656,24 @@ impl DescribeStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, DescribeStreamErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + DescribeStreamErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamErrorKind::ResourceNotFoundError(_) + DescribeStreamErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DescribeStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStreamErrorKind::LimitExceededError(_inner) => Some(_inner), - DescribeStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeStreamErrorKind::LimitExceededException(_inner) => Some(_inner), + DescribeStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -662,18 +688,18 @@ pub struct DescribeStreamConsumerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStreamConsumerErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStreamConsumerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStreamConsumerErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - DescribeStreamConsumerErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DescribeStreamConsumerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeStreamConsumerErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + DescribeStreamConsumerErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DescribeStreamConsumerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeStreamConsumerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -722,31 +748,31 @@ impl DescribeStreamConsumerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamConsumerErrorKind::InvalidArgumentError(_) + DescribeStreamConsumerErrorKind::InvalidArgumentException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamConsumerErrorKind::LimitExceededError(_) + DescribeStreamConsumerErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamConsumerErrorKind::ResourceNotFoundError(_) + DescribeStreamConsumerErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DescribeStreamConsumerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStreamConsumerErrorKind::InvalidArgumentError(_inner) => Some(_inner), - DescribeStreamConsumerErrorKind::LimitExceededError(_inner) => Some(_inner), - DescribeStreamConsumerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeStreamConsumerErrorKind::InvalidArgumentException(_inner) => Some(_inner), + DescribeStreamConsumerErrorKind::LimitExceededException(_inner) => Some(_inner), + DescribeStreamConsumerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeStreamConsumerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -761,16 +787,16 @@ pub struct DescribeStreamSummaryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeStreamSummaryErrorKind { - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeStreamSummaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeStreamSummaryErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DescribeStreamSummaryErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeStreamSummaryErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DescribeStreamSummaryErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeStreamSummaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -819,24 +845,24 @@ impl DescribeStreamSummaryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamSummaryErrorKind::LimitExceededError(_) + DescribeStreamSummaryErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeStreamSummaryErrorKind::ResourceNotFoundError(_) + DescribeStreamSummaryErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DescribeStreamSummaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeStreamSummaryErrorKind::LimitExceededError(_inner) => Some(_inner), - DescribeStreamSummaryErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeStreamSummaryErrorKind::LimitExceededException(_inner) => Some(_inner), + DescribeStreamSummaryErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeStreamSummaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -851,20 +877,20 @@ pub struct DisableEnhancedMonitoringError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DisableEnhancedMonitoringErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DisableEnhancedMonitoringError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisableEnhancedMonitoringErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - DisableEnhancedMonitoringErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DisableEnhancedMonitoringErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - DisableEnhancedMonitoringErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DisableEnhancedMonitoringErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + DisableEnhancedMonitoringErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DisableEnhancedMonitoringErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + DisableEnhancedMonitoringErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DisableEnhancedMonitoringErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -913,38 +939,38 @@ impl DisableEnhancedMonitoringError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - DisableEnhancedMonitoringErrorKind::InvalidArgumentError(_) + DisableEnhancedMonitoringErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - DisableEnhancedMonitoringErrorKind::ResourceInUseError(_) + DisableEnhancedMonitoringErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - DisableEnhancedMonitoringErrorKind::LimitExceededError(_) + DisableEnhancedMonitoringErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DisableEnhancedMonitoringErrorKind::ResourceNotFoundError(_) + DisableEnhancedMonitoringErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DisableEnhancedMonitoringError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisableEnhancedMonitoringErrorKind::InvalidArgumentError(_inner) => Some(_inner), - DisableEnhancedMonitoringErrorKind::ResourceInUseError(_inner) => Some(_inner), - DisableEnhancedMonitoringErrorKind::LimitExceededError(_inner) => Some(_inner), - DisableEnhancedMonitoringErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DisableEnhancedMonitoringErrorKind::InvalidArgumentException(_inner) => Some(_inner), + DisableEnhancedMonitoringErrorKind::ResourceInUseException(_inner) => Some(_inner), + DisableEnhancedMonitoringErrorKind::LimitExceededException(_inner) => Some(_inner), + DisableEnhancedMonitoringErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DisableEnhancedMonitoringErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -959,20 +985,20 @@ pub struct EnableEnhancedMonitoringError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum EnableEnhancedMonitoringErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for EnableEnhancedMonitoringError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - EnableEnhancedMonitoringErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - EnableEnhancedMonitoringErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - EnableEnhancedMonitoringErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - EnableEnhancedMonitoringErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + EnableEnhancedMonitoringErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + EnableEnhancedMonitoringErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + EnableEnhancedMonitoringErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + EnableEnhancedMonitoringErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), EnableEnhancedMonitoringErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1021,38 +1047,38 @@ impl EnableEnhancedMonitoringError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - EnableEnhancedMonitoringErrorKind::InvalidArgumentError(_) + EnableEnhancedMonitoringErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - EnableEnhancedMonitoringErrorKind::ResourceInUseError(_) + EnableEnhancedMonitoringErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - EnableEnhancedMonitoringErrorKind::LimitExceededError(_) + EnableEnhancedMonitoringErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - EnableEnhancedMonitoringErrorKind::ResourceNotFoundError(_) + EnableEnhancedMonitoringErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for EnableEnhancedMonitoringError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - EnableEnhancedMonitoringErrorKind::InvalidArgumentError(_inner) => Some(_inner), - EnableEnhancedMonitoringErrorKind::ResourceInUseError(_inner) => Some(_inner), - EnableEnhancedMonitoringErrorKind::LimitExceededError(_inner) => Some(_inner), - EnableEnhancedMonitoringErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + EnableEnhancedMonitoringErrorKind::InvalidArgumentException(_inner) => Some(_inner), + EnableEnhancedMonitoringErrorKind::ResourceInUseException(_inner) => Some(_inner), + EnableEnhancedMonitoringErrorKind::LimitExceededException(_inner) => Some(_inner), + EnableEnhancedMonitoringErrorKind::ResourceNotFoundException(_inner) => Some(_inner), EnableEnhancedMonitoringErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1067,32 +1093,32 @@ pub struct GetRecordsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRecordsErrorKind { - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSNotFoundError(crate::error::KMSNotFoundError), - ExpiredIteratorError(crate::error::ExpiredIteratorError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - InvalidArgumentError(crate::error::InvalidArgumentError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsNotFoundException(crate::error::KmsNotFoundException), + ExpiredIteratorException(crate::error::ExpiredIteratorException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + InvalidArgumentException(crate::error::InvalidArgumentException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRecordsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRecordsErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::ExpiredIteratorError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::KMSOptInRequired(_inner) => _inner.fmt(f), - GetRecordsErrorKind::KMSThrottlingError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GetRecordsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::ExpiredIteratorException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsOptInRequired(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsThrottlingException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GetRecordsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), GetRecordsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1141,53 +1167,56 @@ impl GetRecordsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_kms_access_denied_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSAccessDeniedError(_)) + pub fn is_kms_access_denied_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::KmsAccessDeniedException(_)) } - pub fn is_kms_disabled_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSDisabledError(_)) + pub fn is_kms_disabled_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::KmsDisabledException(_)) } - pub fn is_kms_not_found_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSNotFoundError(_)) + pub fn is_kms_not_found_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::KmsNotFoundException(_)) } - pub fn is_expired_iterator_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::ExpiredIteratorError(_)) + pub fn is_expired_iterator_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::ExpiredIteratorException(_)) } pub fn is_kms_opt_in_required(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSOptInRequired(_)) + matches!(&self.kind, GetRecordsErrorKind::KmsOptInRequired(_)) } - pub fn is_kms_throttling_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSThrottlingError(_)) + pub fn is_kms_throttling_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::KmsThrottlingException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - GetRecordsErrorKind::ProvisionedThroughputExceededError(_) + GetRecordsErrorKind::ProvisionedThroughputExceededException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::InvalidArgumentException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, GetRecordsErrorKind::KmsInvalidStateException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetRecordsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRecordsErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for GetRecordsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRecordsErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - GetRecordsErrorKind::KMSDisabledError(_inner) => Some(_inner), - GetRecordsErrorKind::KMSNotFoundError(_inner) => Some(_inner), - GetRecordsErrorKind::ExpiredIteratorError(_inner) => Some(_inner), - GetRecordsErrorKind::KMSOptInRequired(_inner) => Some(_inner), - GetRecordsErrorKind::KMSThrottlingError(_inner) => Some(_inner), - GetRecordsErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), - GetRecordsErrorKind::InvalidArgumentError(_inner) => Some(_inner), - GetRecordsErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GetRecordsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + GetRecordsErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + GetRecordsErrorKind::KmsDisabledException(_inner) => Some(_inner), + GetRecordsErrorKind::KmsNotFoundException(_inner) => Some(_inner), + GetRecordsErrorKind::ExpiredIteratorException(_inner) => Some(_inner), + GetRecordsErrorKind::KmsOptInRequired(_inner) => Some(_inner), + GetRecordsErrorKind::KmsThrottlingException(_inner) => Some(_inner), + GetRecordsErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), + GetRecordsErrorKind::InvalidArgumentException(_inner) => Some(_inner), + GetRecordsErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GetRecordsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), GetRecordsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1202,18 +1231,20 @@ pub struct GetShardIteratorError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetShardIteratorErrorKind { - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetShardIteratorError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetShardIteratorErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), - GetShardIteratorErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - GetShardIteratorErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + GetShardIteratorErrorKind::ProvisionedThroughputExceededException(_inner) => { + _inner.fmt(f) + } + GetShardIteratorErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + GetShardIteratorErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), GetShardIteratorErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1262,31 +1293,33 @@ impl GetShardIteratorError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - GetShardIteratorErrorKind::ProvisionedThroughputExceededError(_) + GetShardIteratorErrorKind::ProvisionedThroughputExceededException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - GetShardIteratorErrorKind::InvalidArgumentError(_) + GetShardIteratorErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetShardIteratorErrorKind::ResourceNotFoundError(_) + GetShardIteratorErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for GetShardIteratorError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetShardIteratorErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), - GetShardIteratorErrorKind::InvalidArgumentError(_inner) => Some(_inner), - GetShardIteratorErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + GetShardIteratorErrorKind::ProvisionedThroughputExceededException(_inner) => { + Some(_inner) + } + GetShardIteratorErrorKind::InvalidArgumentException(_inner) => Some(_inner), + GetShardIteratorErrorKind::ResourceNotFoundException(_inner) => Some(_inner), GetShardIteratorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1301,20 +1334,24 @@ pub struct IncreaseStreamRetentionPeriodError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum IncreaseStreamRetentionPeriodErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for IncreaseStreamRetentionPeriodError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - IncreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - IncreaseStreamRetentionPeriodErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_inner) => { + _inner.fmt(f) + } + IncreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + IncreaseStreamRetentionPeriodErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } IncreaseStreamRetentionPeriodErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1363,38 +1400,42 @@ impl IncreaseStreamRetentionPeriodError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_) + IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - IncreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_) + IncreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - IncreaseStreamRetentionPeriodErrorKind::LimitExceededError(_) + IncreaseStreamRetentionPeriodErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_) + IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for IncreaseStreamRetentionPeriodError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(_inner) => Some(_inner), - IncreaseStreamRetentionPeriodErrorKind::ResourceInUseError(_inner) => Some(_inner), - IncreaseStreamRetentionPeriodErrorKind::LimitExceededError(_inner) => Some(_inner), - IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentException(_inner) => { + Some(_inner) + } + IncreaseStreamRetentionPeriodErrorKind::ResourceInUseException(_inner) => Some(_inner), + IncreaseStreamRetentionPeriodErrorKind::LimitExceededException(_inner) => Some(_inner), + IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } IncreaseStreamRetentionPeriodErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1409,22 +1450,22 @@ pub struct ListShardsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListShardsErrorKind { - ExpiredNextTokenError(crate::error::ExpiredNextTokenError), - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ExpiredNextTokenException(crate::error::ExpiredNextTokenException), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListShardsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListShardsErrorKind::ExpiredNextTokenError(_inner) => _inner.fmt(f), - ListShardsErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - ListShardsErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - ListShardsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ListShardsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListShardsErrorKind::ExpiredNextTokenException(_inner) => _inner.fmt(f), + ListShardsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + ListShardsErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + ListShardsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ListShardsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListShardsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1473,30 +1514,36 @@ impl ListShardsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_expired_next_token_error(&self) -> bool { - matches!(&self.kind, ListShardsErrorKind::ExpiredNextTokenError(_)) + pub fn is_expired_next_token_exception(&self) -> bool { + matches!( + &self.kind, + ListShardsErrorKind::ExpiredNextTokenException(_) + ) } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, ListShardsErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!(&self.kind, ListShardsErrorKind::InvalidArgumentException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, ListShardsErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, ListShardsErrorKind::ResourceInUseException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ListShardsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, ListShardsErrorKind::LimitExceededException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, ListShardsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListShardsErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for ListShardsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListShardsErrorKind::ExpiredNextTokenError(_inner) => Some(_inner), - ListShardsErrorKind::InvalidArgumentError(_inner) => Some(_inner), - ListShardsErrorKind::ResourceInUseError(_inner) => Some(_inner), - ListShardsErrorKind::LimitExceededError(_inner) => Some(_inner), - ListShardsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListShardsErrorKind::ExpiredNextTokenException(_inner) => Some(_inner), + ListShardsErrorKind::InvalidArgumentException(_inner) => Some(_inner), + ListShardsErrorKind::ResourceInUseException(_inner) => Some(_inner), + ListShardsErrorKind::LimitExceededException(_inner) => Some(_inner), + ListShardsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListShardsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1511,22 +1558,22 @@ pub struct ListStreamConsumersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListStreamConsumersErrorKind { - ExpiredNextTokenError(crate::error::ExpiredNextTokenError), - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ExpiredNextTokenException(crate::error::ExpiredNextTokenException), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListStreamConsumersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListStreamConsumersErrorKind::ExpiredNextTokenError(_inner) => _inner.fmt(f), - ListStreamConsumersErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - ListStreamConsumersErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - ListStreamConsumersErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ListStreamConsumersErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListStreamConsumersErrorKind::ExpiredNextTokenException(_inner) => _inner.fmt(f), + ListStreamConsumersErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + ListStreamConsumersErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + ListStreamConsumersErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ListStreamConsumersErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListStreamConsumersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1575,45 +1622,45 @@ impl ListStreamConsumersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_expired_next_token_error(&self) -> bool { + pub fn is_expired_next_token_exception(&self) -> bool { matches!( &self.kind, - ListStreamConsumersErrorKind::ExpiredNextTokenError(_) + ListStreamConsumersErrorKind::ExpiredNextTokenException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - ListStreamConsumersErrorKind::InvalidArgumentError(_) + ListStreamConsumersErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - ListStreamConsumersErrorKind::ResourceInUseError(_) + ListStreamConsumersErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ListStreamConsumersErrorKind::LimitExceededError(_) + ListStreamConsumersErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListStreamConsumersErrorKind::ResourceNotFoundError(_) + ListStreamConsumersErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for ListStreamConsumersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListStreamConsumersErrorKind::ExpiredNextTokenError(_inner) => Some(_inner), - ListStreamConsumersErrorKind::InvalidArgumentError(_inner) => Some(_inner), - ListStreamConsumersErrorKind::ResourceInUseError(_inner) => Some(_inner), - ListStreamConsumersErrorKind::LimitExceededError(_inner) => Some(_inner), - ListStreamConsumersErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListStreamConsumersErrorKind::ExpiredNextTokenException(_inner) => Some(_inner), + ListStreamConsumersErrorKind::InvalidArgumentException(_inner) => Some(_inner), + ListStreamConsumersErrorKind::ResourceInUseException(_inner) => Some(_inner), + ListStreamConsumersErrorKind::LimitExceededException(_inner) => Some(_inner), + ListStreamConsumersErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListStreamConsumersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1628,14 +1675,14 @@ pub struct ListStreamsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListStreamsErrorKind { - LimitExceededError(crate::error::LimitExceededError), + LimitExceededException(crate::error::LimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListStreamsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListStreamsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), + ListStreamsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), ListStreamsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1684,14 +1731,14 @@ impl ListStreamsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, ListStreamsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, ListStreamsErrorKind::LimitExceededException(_)) } } impl std::error::Error for ListStreamsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListStreamsErrorKind::LimitExceededError(_inner) => Some(_inner), + ListStreamsErrorKind::LimitExceededException(_inner) => Some(_inner), ListStreamsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1706,18 +1753,18 @@ pub struct ListTagsForStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForStreamErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForStreamErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - ListTagsForStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - ListTagsForStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListTagsForStreamErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + ListTagsForStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + ListTagsForStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListTagsForStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1766,31 +1813,31 @@ impl ListTagsForStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - ListTagsForStreamErrorKind::InvalidArgumentError(_) + ListTagsForStreamErrorKind::InvalidArgumentException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ListTagsForStreamErrorKind::LimitExceededError(_) + ListTagsForStreamErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsForStreamErrorKind::ResourceNotFoundError(_) + ListTagsForStreamErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for ListTagsForStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForStreamErrorKind::InvalidArgumentError(_inner) => Some(_inner), - ListTagsForStreamErrorKind::LimitExceededError(_inner) => Some(_inner), - ListTagsForStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListTagsForStreamErrorKind::InvalidArgumentException(_inner) => Some(_inner), + ListTagsForStreamErrorKind::LimitExceededException(_inner) => Some(_inner), + ListTagsForStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListTagsForStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1805,20 +1852,20 @@ pub struct MergeShardsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum MergeShardsErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for MergeShardsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - MergeShardsErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - MergeShardsErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - MergeShardsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - MergeShardsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + MergeShardsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + MergeShardsErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + MergeShardsErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + MergeShardsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), MergeShardsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1867,26 +1914,32 @@ impl MergeShardsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, MergeShardsErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!( + &self.kind, + MergeShardsErrorKind::InvalidArgumentException(_) + ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, MergeShardsErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, MergeShardsErrorKind::ResourceInUseException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, MergeShardsErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, MergeShardsErrorKind::LimitExceededException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, MergeShardsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + MergeShardsErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for MergeShardsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - MergeShardsErrorKind::InvalidArgumentError(_inner) => Some(_inner), - MergeShardsErrorKind::ResourceInUseError(_inner) => Some(_inner), - MergeShardsErrorKind::LimitExceededError(_inner) => Some(_inner), - MergeShardsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + MergeShardsErrorKind::InvalidArgumentException(_inner) => Some(_inner), + MergeShardsErrorKind::ResourceInUseException(_inner) => Some(_inner), + MergeShardsErrorKind::LimitExceededException(_inner) => Some(_inner), + MergeShardsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), MergeShardsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1901,30 +1954,30 @@ pub struct PutRecordError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRecordErrorKind { - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - InvalidArgumentError(crate::error::InvalidArgumentError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + InvalidArgumentException(crate::error::InvalidArgumentException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRecordError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRecordErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - PutRecordErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - PutRecordErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - PutRecordErrorKind::KMSOptInRequired(_inner) => _inner.fmt(f), - PutRecordErrorKind::KMSThrottlingError(_inner) => _inner.fmt(f), - PutRecordErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), - PutRecordErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - PutRecordErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - PutRecordErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsOptInRequired(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsThrottlingException(_inner) => _inner.fmt(f), + PutRecordErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), + PutRecordErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + PutRecordErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + PutRecordErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), PutRecordErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1973,49 +2026,49 @@ impl PutRecordError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_kms_access_denied_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSAccessDeniedError(_)) + pub fn is_kms_access_denied_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::KmsAccessDeniedException(_)) } - pub fn is_kms_disabled_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSDisabledError(_)) + pub fn is_kms_disabled_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::KmsDisabledException(_)) } - pub fn is_kms_not_found_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSNotFoundError(_)) + pub fn is_kms_not_found_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::KmsNotFoundException(_)) } pub fn is_kms_opt_in_required(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSOptInRequired(_)) + matches!(&self.kind, PutRecordErrorKind::KmsOptInRequired(_)) } - pub fn is_kms_throttling_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSThrottlingError(_)) + pub fn is_kms_throttling_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::KmsThrottlingException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutRecordErrorKind::ProvisionedThroughputExceededError(_) + PutRecordErrorKind::ProvisionedThroughputExceededException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::InvalidArgumentException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::KmsInvalidStateException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, PutRecordErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, PutRecordErrorKind::ResourceNotFoundException(_)) } } impl std::error::Error for PutRecordError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRecordErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - PutRecordErrorKind::KMSDisabledError(_inner) => Some(_inner), - PutRecordErrorKind::KMSNotFoundError(_inner) => Some(_inner), - PutRecordErrorKind::KMSOptInRequired(_inner) => Some(_inner), - PutRecordErrorKind::KMSThrottlingError(_inner) => Some(_inner), - PutRecordErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), - PutRecordErrorKind::InvalidArgumentError(_inner) => Some(_inner), - PutRecordErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - PutRecordErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + PutRecordErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + PutRecordErrorKind::KmsDisabledException(_inner) => Some(_inner), + PutRecordErrorKind::KmsNotFoundException(_inner) => Some(_inner), + PutRecordErrorKind::KmsOptInRequired(_inner) => Some(_inner), + PutRecordErrorKind::KmsThrottlingException(_inner) => Some(_inner), + PutRecordErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), + PutRecordErrorKind::InvalidArgumentException(_inner) => Some(_inner), + PutRecordErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + PutRecordErrorKind::ResourceNotFoundException(_inner) => Some(_inner), PutRecordErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2030,30 +2083,30 @@ pub struct PutRecordsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutRecordsErrorKind { - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - InvalidArgumentError(crate::error::InvalidArgumentError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + InvalidArgumentException(crate::error::InvalidArgumentException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutRecordsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutRecordsErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::KMSOptInRequired(_inner) => _inner.fmt(f), - PutRecordsErrorKind::KMSThrottlingError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - PutRecordsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsOptInRequired(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsThrottlingException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::ProvisionedThroughputExceededException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + PutRecordsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), PutRecordsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2102,49 +2155,52 @@ impl PutRecordsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_kms_access_denied_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSAccessDeniedError(_)) + pub fn is_kms_access_denied_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::KmsAccessDeniedException(_)) } - pub fn is_kms_disabled_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSDisabledError(_)) + pub fn is_kms_disabled_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::KmsDisabledException(_)) } - pub fn is_kms_not_found_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSNotFoundError(_)) + pub fn is_kms_not_found_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::KmsNotFoundException(_)) } pub fn is_kms_opt_in_required(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSOptInRequired(_)) + matches!(&self.kind, PutRecordsErrorKind::KmsOptInRequired(_)) } - pub fn is_kms_throttling_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSThrottlingError(_)) + pub fn is_kms_throttling_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::KmsThrottlingException(_)) } - pub fn is_provisioned_throughput_exceeded_error(&self) -> bool { + pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutRecordsErrorKind::ProvisionedThroughputExceededError(_) + PutRecordsErrorKind::ProvisionedThroughputExceededException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::InvalidArgumentException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, PutRecordsErrorKind::KmsInvalidStateException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, PutRecordsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutRecordsErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for PutRecordsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutRecordsErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - PutRecordsErrorKind::KMSDisabledError(_inner) => Some(_inner), - PutRecordsErrorKind::KMSNotFoundError(_inner) => Some(_inner), - PutRecordsErrorKind::KMSOptInRequired(_inner) => Some(_inner), - PutRecordsErrorKind::KMSThrottlingError(_inner) => Some(_inner), - PutRecordsErrorKind::ProvisionedThroughputExceededError(_inner) => Some(_inner), - PutRecordsErrorKind::InvalidArgumentError(_inner) => Some(_inner), - PutRecordsErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - PutRecordsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + PutRecordsErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + PutRecordsErrorKind::KmsDisabledException(_inner) => Some(_inner), + PutRecordsErrorKind::KmsNotFoundException(_inner) => Some(_inner), + PutRecordsErrorKind::KmsOptInRequired(_inner) => Some(_inner), + PutRecordsErrorKind::KmsThrottlingException(_inner) => Some(_inner), + PutRecordsErrorKind::ProvisionedThroughputExceededException(_inner) => Some(_inner), + PutRecordsErrorKind::InvalidArgumentException(_inner) => Some(_inner), + PutRecordsErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + PutRecordsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), PutRecordsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2159,20 +2215,20 @@ pub struct RegisterStreamConsumerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterStreamConsumerErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterStreamConsumerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterStreamConsumerErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - RegisterStreamConsumerErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - RegisterStreamConsumerErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RegisterStreamConsumerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + RegisterStreamConsumerErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + RegisterStreamConsumerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + RegisterStreamConsumerErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RegisterStreamConsumerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), RegisterStreamConsumerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2221,38 +2277,38 @@ impl RegisterStreamConsumerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - RegisterStreamConsumerErrorKind::InvalidArgumentError(_) + RegisterStreamConsumerErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - RegisterStreamConsumerErrorKind::ResourceInUseError(_) + RegisterStreamConsumerErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RegisterStreamConsumerErrorKind::LimitExceededError(_) + RegisterStreamConsumerErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - RegisterStreamConsumerErrorKind::ResourceNotFoundError(_) + RegisterStreamConsumerErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for RegisterStreamConsumerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterStreamConsumerErrorKind::InvalidArgumentError(_inner) => Some(_inner), - RegisterStreamConsumerErrorKind::ResourceInUseError(_inner) => Some(_inner), - RegisterStreamConsumerErrorKind::LimitExceededError(_inner) => Some(_inner), - RegisterStreamConsumerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + RegisterStreamConsumerErrorKind::InvalidArgumentException(_inner) => Some(_inner), + RegisterStreamConsumerErrorKind::ResourceInUseException(_inner) => Some(_inner), + RegisterStreamConsumerErrorKind::LimitExceededException(_inner) => Some(_inner), + RegisterStreamConsumerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), RegisterStreamConsumerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2267,20 +2323,20 @@ pub struct RemoveTagsFromStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveTagsFromStreamErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveTagsFromStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveTagsFromStreamErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - RemoveTagsFromStreamErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - RemoveTagsFromStreamErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - RemoveTagsFromStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + RemoveTagsFromStreamErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + RemoveTagsFromStreamErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + RemoveTagsFromStreamErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + RemoveTagsFromStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), RemoveTagsFromStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2329,38 +2385,38 @@ impl RemoveTagsFromStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - RemoveTagsFromStreamErrorKind::InvalidArgumentError(_) + RemoveTagsFromStreamErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - RemoveTagsFromStreamErrorKind::ResourceInUseError(_) + RemoveTagsFromStreamErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RemoveTagsFromStreamErrorKind::LimitExceededError(_) + RemoveTagsFromStreamErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - RemoveTagsFromStreamErrorKind::ResourceNotFoundError(_) + RemoveTagsFromStreamErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for RemoveTagsFromStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveTagsFromStreamErrorKind::InvalidArgumentError(_inner) => Some(_inner), - RemoveTagsFromStreamErrorKind::ResourceInUseError(_inner) => Some(_inner), - RemoveTagsFromStreamErrorKind::LimitExceededError(_inner) => Some(_inner), - RemoveTagsFromStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + RemoveTagsFromStreamErrorKind::InvalidArgumentException(_inner) => Some(_inner), + RemoveTagsFromStreamErrorKind::ResourceInUseException(_inner) => Some(_inner), + RemoveTagsFromStreamErrorKind::LimitExceededException(_inner) => Some(_inner), + RemoveTagsFromStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), RemoveTagsFromStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2375,20 +2431,20 @@ pub struct SplitShardError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SplitShardErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SplitShardError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SplitShardErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - SplitShardErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - SplitShardErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SplitShardErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + SplitShardErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + SplitShardErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + SplitShardErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SplitShardErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), SplitShardErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2437,26 +2493,29 @@ impl SplitShardError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { - matches!(&self.kind, SplitShardErrorKind::InvalidArgumentError(_)) + pub fn is_invalid_argument_exception(&self) -> bool { + matches!(&self.kind, SplitShardErrorKind::InvalidArgumentException(_)) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, SplitShardErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, SplitShardErrorKind::ResourceInUseException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, SplitShardErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, SplitShardErrorKind::LimitExceededException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, SplitShardErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + SplitShardErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for SplitShardError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SplitShardErrorKind::InvalidArgumentError(_inner) => Some(_inner), - SplitShardErrorKind::ResourceInUseError(_inner) => Some(_inner), - SplitShardErrorKind::LimitExceededError(_inner) => Some(_inner), - SplitShardErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + SplitShardErrorKind::InvalidArgumentException(_inner) => Some(_inner), + SplitShardErrorKind::ResourceInUseException(_inner) => Some(_inner), + SplitShardErrorKind::LimitExceededException(_inner) => Some(_inner), + SplitShardErrorKind::ResourceNotFoundException(_inner) => Some(_inner), SplitShardErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2471,32 +2530,32 @@ pub struct StartStreamEncryptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartStreamEncryptionErrorKind { - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - InvalidArgumentError(crate::error::InvalidArgumentError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + InvalidArgumentException(crate::error::InvalidArgumentException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartStreamEncryptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartStreamEncryptionErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::KMSOptInRequired(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::KMSThrottlingError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - StartStreamEncryptionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsOptInRequired(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsThrottlingException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + StartStreamEncryptionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), StartStreamEncryptionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2545,80 +2604,80 @@ impl StartStreamEncryptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_kms_access_denied_error(&self) -> bool { + pub fn is_kms_access_denied_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSAccessDeniedError(_) + StartStreamEncryptionErrorKind::KmsAccessDeniedException(_) ) } - pub fn is_kms_disabled_error(&self) -> bool { + pub fn is_kms_disabled_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSDisabledError(_) + StartStreamEncryptionErrorKind::KmsDisabledException(_) ) } - pub fn is_kms_not_found_error(&self) -> bool { + pub fn is_kms_not_found_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSNotFoundError(_) + StartStreamEncryptionErrorKind::KmsNotFoundException(_) ) } pub fn is_kms_opt_in_required(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSOptInRequired(_) + StartStreamEncryptionErrorKind::KmsOptInRequired(_) ) } - pub fn is_kms_throttling_error(&self) -> bool { + pub fn is_kms_throttling_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSThrottlingError(_) + StartStreamEncryptionErrorKind::KmsThrottlingException(_) ) } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::InvalidArgumentError(_) + StartStreamEncryptionErrorKind::InvalidArgumentException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::KMSInvalidStateError(_) + StartStreamEncryptionErrorKind::KmsInvalidStateException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::ResourceInUseError(_) + StartStreamEncryptionErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::LimitExceededError(_) + StartStreamEncryptionErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - StartStreamEncryptionErrorKind::ResourceNotFoundError(_) + StartStreamEncryptionErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for StartStreamEncryptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartStreamEncryptionErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::KMSDisabledError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::KMSNotFoundError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::KMSOptInRequired(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::KMSThrottlingError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::InvalidArgumentError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::ResourceInUseError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::LimitExceededError(_inner) => Some(_inner), - StartStreamEncryptionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsDisabledException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsNotFoundException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsOptInRequired(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsThrottlingException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::InvalidArgumentException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::ResourceInUseException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::LimitExceededException(_inner) => Some(_inner), + StartStreamEncryptionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), StartStreamEncryptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2633,20 +2692,20 @@ pub struct StopStreamEncryptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopStreamEncryptionErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopStreamEncryptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopStreamEncryptionErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - StopStreamEncryptionErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - StopStreamEncryptionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - StopStreamEncryptionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + StopStreamEncryptionErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + StopStreamEncryptionErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + StopStreamEncryptionErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + StopStreamEncryptionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), StopStreamEncryptionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2695,38 +2754,38 @@ impl StopStreamEncryptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - StopStreamEncryptionErrorKind::InvalidArgumentError(_) + StopStreamEncryptionErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - StopStreamEncryptionErrorKind::ResourceInUseError(_) + StopStreamEncryptionErrorKind::ResourceInUseException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - StopStreamEncryptionErrorKind::LimitExceededError(_) + StopStreamEncryptionErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - StopStreamEncryptionErrorKind::ResourceNotFoundError(_) + StopStreamEncryptionErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for StopStreamEncryptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopStreamEncryptionErrorKind::InvalidArgumentError(_inner) => Some(_inner), - StopStreamEncryptionErrorKind::ResourceInUseError(_inner) => Some(_inner), - StopStreamEncryptionErrorKind::LimitExceededError(_inner) => Some(_inner), - StopStreamEncryptionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + StopStreamEncryptionErrorKind::InvalidArgumentException(_inner) => Some(_inner), + StopStreamEncryptionErrorKind::ResourceInUseException(_inner) => Some(_inner), + StopStreamEncryptionErrorKind::LimitExceededException(_inner) => Some(_inner), + StopStreamEncryptionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), StopStreamEncryptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2741,20 +2800,20 @@ pub struct UpdateShardCountError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateShardCountErrorKind { - InvalidArgumentError(crate::error::InvalidArgumentError), - ResourceInUseError(crate::error::ResourceInUseError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidArgumentException(crate::error::InvalidArgumentException), + ResourceInUseException(crate::error::ResourceInUseException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateShardCountError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateShardCountErrorKind::InvalidArgumentError(_inner) => _inner.fmt(f), - UpdateShardCountErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UpdateShardCountErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateShardCountErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateShardCountErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f), + UpdateShardCountErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateShardCountErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateShardCountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateShardCountErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2803,32 +2862,38 @@ impl UpdateShardCountError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_argument_error(&self) -> bool { + pub fn is_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - UpdateShardCountErrorKind::InvalidArgumentError(_) + UpdateShardCountErrorKind::InvalidArgumentException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, UpdateShardCountErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!( + &self.kind, + UpdateShardCountErrorKind::ResourceInUseException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateShardCountErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UpdateShardCountErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateShardCountErrorKind::ResourceNotFoundError(_) + UpdateShardCountErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for UpdateShardCountError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateShardCountErrorKind::InvalidArgumentError(_inner) => Some(_inner), - UpdateShardCountErrorKind::ResourceInUseError(_inner) => Some(_inner), - UpdateShardCountErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateShardCountErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateShardCountErrorKind::InvalidArgumentException(_inner) => Some(_inner), + UpdateShardCountErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateShardCountErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateShardCountErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateShardCountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2837,38 +2902,36 @@ impl std::error::Error for UpdateShardCountError { ///

    The requested resource could not be found. The stream might not be specified /// correctly.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2884,56 +2947,54 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

    The requested resource exceeds the maximum number allowed, or the number of /// concurrent stream requests exceeds the maximum number allowed.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2949,56 +3010,54 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    The resource is not available for this operation. For successful operation, the /// resource must be in the ACTIVE state.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3014,56 +3073,54 @@ pub mod resource_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { message: self.message, } } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } ///

    A specified parameter exceeds its restrictions, is not supported, or can't be used. /// For more information, see the returned message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidArgumentError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidArgumentException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidArgumentError { +impl std::fmt::Debug for InvalidArgumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidArgumentError"); + let mut formatter = f.debug_struct("InvalidArgumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidArgumentError { +impl InvalidArgumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidArgumentError { +impl std::fmt::Display for InvalidArgumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidArgumentError [InvalidArgumentException]")?; + write!(f, "InvalidArgumentException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidArgumentError {} -/// See [`InvalidArgumentError`](crate::error::InvalidArgumentError) -pub mod invalid_argument_error { - /// A builder for [`InvalidArgumentError`](crate::error::InvalidArgumentError) +impl std::error::Error for InvalidArgumentException {} +/// See [`InvalidArgumentException`](crate::error::InvalidArgumentException) +pub mod invalid_argument_exception { + /// A builder for [`InvalidArgumentException`](crate::error::InvalidArgumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3079,18 +3136,18 @@ pub mod invalid_argument_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidArgumentError`](crate::error::InvalidArgumentError) - pub fn build(self) -> crate::error::InvalidArgumentError { - crate::error::InvalidArgumentError { + /// Consumes the builder and constructs a [`InvalidArgumentException`](crate::error::InvalidArgumentException) + pub fn build(self) -> crate::error::InvalidArgumentException { + crate::error::InvalidArgumentException { message: self.message, } } } } -impl InvalidArgumentError { - /// Creates a new builder-style object to manufacture [`InvalidArgumentError`](crate::error::InvalidArgumentError) - pub fn builder() -> crate::error::invalid_argument_error::Builder { - crate::error::invalid_argument_error::Builder::default() +impl InvalidArgumentException { + /// Creates a new builder-style object to manufacture [`InvalidArgumentException`](crate::error::InvalidArgumentException) + pub fn builder() -> crate::error::invalid_argument_exception::Builder { + crate::error::invalid_argument_exception::Builder::default() } } @@ -3099,38 +3156,36 @@ impl InvalidArgumentError { /// Customer Master Key in the AWS Key Management Service Developer /// Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInvalidStateError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsInvalidStateException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSInvalidStateError { +impl std::fmt::Debug for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInvalidStateError"); + let mut formatter = f.debug_struct("KmsInvalidStateException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInvalidStateError { +impl KmsInvalidStateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInvalidStateError { +impl std::fmt::Display for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInvalidStateError [KMSInvalidStateException]")?; + write!(f, "KmsInvalidStateException [KMSInvalidStateException]")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for KMSInvalidStateError {} -/// See [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) -pub mod kms_invalid_state_error { - /// A builder for [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) +impl std::error::Error for KmsInvalidStateException {} +/// See [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) +pub mod kms_invalid_state_exception { + /// A builder for [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3146,18 +3201,18 @@ pub mod kms_invalid_state_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn build(self) -> crate::error::KMSInvalidStateError { - crate::error::KMSInvalidStateError { + /// Consumes the builder and constructs a [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn build(self) -> crate::error::KmsInvalidStateException { + crate::error::KmsInvalidStateException { message: self.message, } } } } -impl KMSInvalidStateError { - /// Creates a new builder-style object to manufacture [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn builder() -> crate::error::kms_invalid_state_error::Builder { - crate::error::kms_invalid_state_error::Builder::default() +impl KmsInvalidStateException { + /// Creates a new builder-style object to manufacture [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn builder() -> crate::error::kms_invalid_state_exception::Builder { + crate::error::kms_invalid_state_exception::Builder::default() } } @@ -3165,38 +3220,36 @@ impl KMSInvalidStateError { /// throttling, see Limits in /// the AWS Key Management Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSThrottlingError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsThrottlingException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSThrottlingError { +impl std::fmt::Debug for KmsThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSThrottlingError"); + let mut formatter = f.debug_struct("KmsThrottlingException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSThrottlingError { +impl KmsThrottlingException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSThrottlingError { +impl std::fmt::Display for KmsThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSThrottlingError [KMSThrottlingException]")?; + write!(f, "KmsThrottlingException [KMSThrottlingException]")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for KMSThrottlingError {} -/// See [`KMSThrottlingError`](crate::error::KMSThrottlingError) -pub mod kms_throttling_error { - /// A builder for [`KMSThrottlingError`](crate::error::KMSThrottlingError) +impl std::error::Error for KmsThrottlingException {} +/// See [`KmsThrottlingException`](crate::error::KmsThrottlingException) +pub mod kms_throttling_exception { + /// A builder for [`KmsThrottlingException`](crate::error::KmsThrottlingException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3212,55 +3265,53 @@ pub mod kms_throttling_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSThrottlingError`](crate::error::KMSThrottlingError) - pub fn build(self) -> crate::error::KMSThrottlingError { - crate::error::KMSThrottlingError { + /// Consumes the builder and constructs a [`KmsThrottlingException`](crate::error::KmsThrottlingException) + pub fn build(self) -> crate::error::KmsThrottlingException { + crate::error::KmsThrottlingException { message: self.message, } } } } -impl KMSThrottlingError { - /// Creates a new builder-style object to manufacture [`KMSThrottlingError`](crate::error::KMSThrottlingError) - pub fn builder() -> crate::error::kms_throttling_error::Builder { - crate::error::kms_throttling_error::Builder::default() +impl KmsThrottlingException { + /// Creates a new builder-style object to manufacture [`KmsThrottlingException`](crate::error::KmsThrottlingException) + pub fn builder() -> crate::error::kms_throttling_exception::Builder { + crate::error::kms_throttling_exception::Builder::default() } } ///

    The AWS access key ID needs a subscription for the service.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSOptInRequired { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsOptInRequired { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSOptInRequired { +impl std::fmt::Debug for KmsOptInRequired { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSOptInRequired"); + let mut formatter = f.debug_struct("KmsOptInRequired"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSOptInRequired { +impl KmsOptInRequired { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSOptInRequired { +impl std::fmt::Display for KmsOptInRequired { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSOptInRequired")?; + write!(f, "KmsOptInRequired [KMSOptInRequired]")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for KMSOptInRequired {} -/// See [`KMSOptInRequired`](crate::error::KMSOptInRequired) +impl std::error::Error for KmsOptInRequired {} +/// See [`KmsOptInRequired`](crate::error::KmsOptInRequired) pub mod kms_opt_in_required { - /// A builder for [`KMSOptInRequired`](crate::error::KMSOptInRequired) + /// A builder for [`KmsOptInRequired`](crate::error::KmsOptInRequired) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3276,16 +3327,16 @@ pub mod kms_opt_in_required { self.message = input; self } - /// Consumes the builder and constructs a [`KMSOptInRequired`](crate::error::KMSOptInRequired) - pub fn build(self) -> crate::error::KMSOptInRequired { - crate::error::KMSOptInRequired { + /// Consumes the builder and constructs a [`KmsOptInRequired`](crate::error::KmsOptInRequired) + pub fn build(self) -> crate::error::KmsOptInRequired { + crate::error::KmsOptInRequired { message: self.message, } } } } -impl KMSOptInRequired { - /// Creates a new builder-style object to manufacture [`KMSOptInRequired`](crate::error::KMSOptInRequired) +impl KmsOptInRequired { + /// Creates a new builder-style object to manufacture [`KmsOptInRequired`](crate::error::KmsOptInRequired) pub fn builder() -> crate::error::kms_opt_in_required::Builder { crate::error::kms_opt_in_required::Builder::default() } @@ -3294,38 +3345,36 @@ impl KMSOptInRequired { ///

    The request was rejected because the specified entity or resource can't be /// found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSNotFoundError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsNotFoundException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSNotFoundError { +impl std::fmt::Debug for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSNotFoundError"); + let mut formatter = f.debug_struct("KmsNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSNotFoundError { +impl KmsNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSNotFoundError { +impl std::fmt::Display for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSNotFoundError [KMSNotFoundException]")?; + write!(f, "KmsNotFoundException [KMSNotFoundException]")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for KMSNotFoundError {} -/// See [`KMSNotFoundError`](crate::error::KMSNotFoundError) -pub mod kms_not_found_error { - /// A builder for [`KMSNotFoundError`](crate::error::KMSNotFoundError) +impl std::error::Error for KmsNotFoundException {} +/// See [`KmsNotFoundException`](crate::error::KmsNotFoundException) +pub mod kms_not_found_exception { + /// A builder for [`KmsNotFoundException`](crate::error::KmsNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3341,56 +3390,54 @@ pub mod kms_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn build(self) -> crate::error::KMSNotFoundError { - crate::error::KMSNotFoundError { + /// Consumes the builder and constructs a [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn build(self) -> crate::error::KmsNotFoundException { + crate::error::KmsNotFoundException { message: self.message, } } } } -impl KMSNotFoundError { - /// Creates a new builder-style object to manufacture [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn builder() -> crate::error::kms_not_found_error::Builder { - crate::error::kms_not_found_error::Builder::default() +impl KmsNotFoundException { + /// Creates a new builder-style object to manufacture [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn builder() -> crate::error::kms_not_found_exception::Builder { + crate::error::kms_not_found_exception::Builder::default() } } ///

    The request was rejected because the specified customer master key (CMK) isn't /// enabled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSDisabledError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsDisabledException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSDisabledError { +impl std::fmt::Debug for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSDisabledError"); + let mut formatter = f.debug_struct("KmsDisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSDisabledError { +impl KmsDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSDisabledError { +impl std::fmt::Display for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSDisabledError [KMSDisabledException]")?; + write!(f, "KmsDisabledException [KMSDisabledException]")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for KMSDisabledError {} -/// See [`KMSDisabledError`](crate::error::KMSDisabledError) -pub mod kms_disabled_error { - /// A builder for [`KMSDisabledError`](crate::error::KMSDisabledError) +impl std::error::Error for KmsDisabledException {} +/// See [`KmsDisabledException`](crate::error::KmsDisabledException) +pub mod kms_disabled_exception { + /// A builder for [`KmsDisabledException`](crate::error::KmsDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3406,56 +3453,54 @@ pub mod kms_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn build(self) -> crate::error::KMSDisabledError { - crate::error::KMSDisabledError { + /// Consumes the builder and constructs a [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn build(self) -> crate::error::KmsDisabledException { + crate::error::KmsDisabledException { message: self.message, } } } } -impl KMSDisabledError { - /// Creates a new builder-style object to manufacture [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn builder() -> crate::error::kms_disabled_error::Builder { - crate::error::kms_disabled_error::Builder::default() +impl KmsDisabledException { + /// Creates a new builder-style object to manufacture [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn builder() -> crate::error::kms_disabled_exception::Builder { + crate::error::kms_disabled_exception::Builder::default() } } ///

    The ciphertext references a key that doesn't exist or that you don't have access /// to.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSAccessDeniedError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsAccessDeniedException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSAccessDeniedError { +impl std::fmt::Debug for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSAccessDeniedError"); + let mut formatter = f.debug_struct("KmsAccessDeniedException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSAccessDeniedError { +impl KmsAccessDeniedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSAccessDeniedError { +impl std::fmt::Display for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSAccessDeniedError [KMSAccessDeniedException]")?; + write!(f, "KmsAccessDeniedException [KMSAccessDeniedException]")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for KMSAccessDeniedError {} -/// See [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) -pub mod kms_access_denied_error { - /// A builder for [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) +impl std::error::Error for KmsAccessDeniedException {} +/// See [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) +pub mod kms_access_denied_exception { + /// A builder for [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3471,18 +3516,18 @@ pub mod kms_access_denied_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn build(self) -> crate::error::KMSAccessDeniedError { - crate::error::KMSAccessDeniedError { + /// Consumes the builder and constructs a [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn build(self) -> crate::error::KmsAccessDeniedException { + crate::error::KmsAccessDeniedException { message: self.message, } } } } -impl KMSAccessDeniedError { - /// Creates a new builder-style object to manufacture [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn builder() -> crate::error::kms_access_denied_error::Builder { - crate::error::kms_access_denied_error::Builder::default() +impl KmsAccessDeniedException { + /// Creates a new builder-style object to manufacture [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn builder() -> crate::error::kms_access_denied_exception::Builder { + crate::error::kms_access_denied_exception::Builder::default() } } @@ -3493,41 +3538,36 @@ impl KMSAccessDeniedError { /// Exponential Backoff in AWS in the AWS General /// Reference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ProvisionedThroughputExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ProvisionedThroughputExceededException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ProvisionedThroughputExceededError { +impl std::fmt::Debug for ProvisionedThroughputExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ProvisionedThroughputExceededError"); + let mut formatter = f.debug_struct("ProvisionedThroughputExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ProvisionedThroughputExceededError { +impl ProvisionedThroughputExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ProvisionedThroughputExceededError { +impl std::fmt::Display for ProvisionedThroughputExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ProvisionedThroughputExceededError [ProvisionedThroughputExceededException]" - )?; + write!(f, "ProvisionedThroughputExceededException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for ProvisionedThroughputExceededError {} -/// See [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) -pub mod provisioned_throughput_exceeded_error { - /// A builder for [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) +impl std::error::Error for ProvisionedThroughputExceededException {} +/// See [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) +pub mod provisioned_throughput_exceeded_exception { + /// A builder for [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3543,54 +3583,52 @@ pub mod provisioned_throughput_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) - pub fn build(self) -> crate::error::ProvisionedThroughputExceededError { - crate::error::ProvisionedThroughputExceededError { + /// Consumes the builder and constructs a [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) + pub fn build(self) -> crate::error::ProvisionedThroughputExceededException { + crate::error::ProvisionedThroughputExceededException { message: self.message, } } } } -impl ProvisionedThroughputExceededError { - /// Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededError`](crate::error::ProvisionedThroughputExceededError) - pub fn builder() -> crate::error::provisioned_throughput_exceeded_error::Builder { - crate::error::provisioned_throughput_exceeded_error::Builder::default() +impl ProvisionedThroughputExceededException { + /// Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededException`](crate::error::ProvisionedThroughputExceededException) + pub fn builder() -> crate::error::provisioned_throughput_exceeded_exception::Builder { + crate::error::provisioned_throughput_exceeded_exception::Builder::default() } } ///

    The pagination token passed to the operation is expired.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExpiredNextTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ExpiredNextTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for ExpiredNextTokenError { +impl std::fmt::Debug for ExpiredNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExpiredNextTokenError"); + let mut formatter = f.debug_struct("ExpiredNextTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExpiredNextTokenError { +impl ExpiredNextTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExpiredNextTokenError { +impl std::fmt::Display for ExpiredNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExpiredNextTokenError [ExpiredNextTokenException]")?; + write!(f, "ExpiredNextTokenException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for ExpiredNextTokenError {} -/// See [`ExpiredNextTokenError`](crate::error::ExpiredNextTokenError) -pub mod expired_next_token_error { - /// A builder for [`ExpiredNextTokenError`](crate::error::ExpiredNextTokenError) +impl std::error::Error for ExpiredNextTokenException {} +/// See [`ExpiredNextTokenException`](crate::error::ExpiredNextTokenException) +pub mod expired_next_token_exception { + /// A builder for [`ExpiredNextTokenException`](crate::error::ExpiredNextTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3605,55 +3643,53 @@ pub mod expired_next_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExpiredNextTokenError`](crate::error::ExpiredNextTokenError) - pub fn build(self) -> crate::error::ExpiredNextTokenError { - crate::error::ExpiredNextTokenError { + /// Consumes the builder and constructs a [`ExpiredNextTokenException`](crate::error::ExpiredNextTokenException) + pub fn build(self) -> crate::error::ExpiredNextTokenException { + crate::error::ExpiredNextTokenException { message: self.message, } } } } -impl ExpiredNextTokenError { - /// Creates a new builder-style object to manufacture [`ExpiredNextTokenError`](crate::error::ExpiredNextTokenError) - pub fn builder() -> crate::error::expired_next_token_error::Builder { - crate::error::expired_next_token_error::Builder::default() +impl ExpiredNextTokenException { + /// Creates a new builder-style object to manufacture [`ExpiredNextTokenException`](crate::error::ExpiredNextTokenException) + pub fn builder() -> crate::error::expired_next_token_exception::Builder { + crate::error::expired_next_token_exception::Builder::default() } } ///

    The provided iterator exceeds the maximum age allowed.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExpiredIteratorError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ExpiredIteratorException { ///

    A message that provides information about the error.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ExpiredIteratorError { +impl std::fmt::Debug for ExpiredIteratorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExpiredIteratorError"); + let mut formatter = f.debug_struct("ExpiredIteratorException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExpiredIteratorError { +impl ExpiredIteratorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExpiredIteratorError { +impl std::fmt::Display for ExpiredIteratorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExpiredIteratorError [ExpiredIteratorException]")?; + write!(f, "ExpiredIteratorException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for ExpiredIteratorError {} -/// See [`ExpiredIteratorError`](crate::error::ExpiredIteratorError) -pub mod expired_iterator_error { - /// A builder for [`ExpiredIteratorError`](crate::error::ExpiredIteratorError) +impl std::error::Error for ExpiredIteratorException {} +/// See [`ExpiredIteratorException`](crate::error::ExpiredIteratorException) +pub mod expired_iterator_exception { + /// A builder for [`ExpiredIteratorException`](crate::error::ExpiredIteratorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3669,17 +3705,17 @@ pub mod expired_iterator_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExpiredIteratorError`](crate::error::ExpiredIteratorError) - pub fn build(self) -> crate::error::ExpiredIteratorError { - crate::error::ExpiredIteratorError { + /// Consumes the builder and constructs a [`ExpiredIteratorException`](crate::error::ExpiredIteratorException) + pub fn build(self) -> crate::error::ExpiredIteratorException { + crate::error::ExpiredIteratorException { message: self.message, } } } } -impl ExpiredIteratorError { - /// Creates a new builder-style object to manufacture [`ExpiredIteratorError`](crate::error::ExpiredIteratorError) - pub fn builder() -> crate::error::expired_iterator_error::Builder { - crate::error::expired_iterator_error::Builder::default() +impl ExpiredIteratorException { + /// Creates a new builder-style object to manufacture [`ExpiredIteratorException`](crate::error::ExpiredIteratorException) + pub fn builder() -> crate::error::expired_iterator_exception::Builder { + crate::error::expired_iterator_exception::Builder::default() } } diff --git a/sdk/kinesis/src/error_meta.rs b/sdk/kinesis/src/error_meta.rs index 4f28f608df5b..4c36d6104292 100644 --- a/sdk/kinesis/src/error_meta.rs +++ b/sdk/kinesis/src/error_meta.rs @@ -2,37 +2,37 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ExpiredIteratorError(crate::error::ExpiredIteratorError), - ExpiredNextTokenError(crate::error::ExpiredNextTokenError), - InvalidArgumentError(crate::error::InvalidArgumentError), - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - LimitExceededError(crate::error::LimitExceededError), - ProvisionedThroughputExceededError(crate::error::ProvisionedThroughputExceededError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ExpiredIteratorException(crate::error::ExpiredIteratorException), + ExpiredNextTokenException(crate::error::ExpiredNextTokenException), + InvalidArgumentException(crate::error::InvalidArgumentException), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + LimitExceededException(crate::error::LimitExceededException), + ProvisionedThroughputExceededException(crate::error::ProvisionedThroughputExceededException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ExpiredIteratorError(inner) => inner.fmt(f), - Error::ExpiredNextTokenError(inner) => inner.fmt(f), - Error::InvalidArgumentError(inner) => inner.fmt(f), - Error::KMSAccessDeniedError(inner) => inner.fmt(f), - Error::KMSDisabledError(inner) => inner.fmt(f), - Error::KMSInvalidStateError(inner) => inner.fmt(f), - Error::KMSNotFoundError(inner) => inner.fmt(f), - Error::KMSOptInRequired(inner) => inner.fmt(f), - Error::KMSThrottlingError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::ProvisionedThroughputExceededError(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), + Error::ExpiredIteratorException(inner) => inner.fmt(f), + Error::ExpiredNextTokenException(inner) => inner.fmt(f), + Error::InvalidArgumentException(inner) => inner.fmt(f), + Error::KmsAccessDeniedException(inner) => inner.fmt(f), + Error::KmsDisabledException(inner) => inner.fmt(f), + Error::KmsInvalidStateException(inner) => inner.fmt(f), + Error::KmsNotFoundException(inner) => inner.fmt(f), + Error::KmsOptInRequired(inner) => inner.fmt(f), + Error::KmsThrottlingException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::ProvisionedThroughputExceededException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -41,17 +41,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddTagsToStreamErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::AddTagsToStreamErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::AddTagsToStreamErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::AddTagsToStreamErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::AddTagsToStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::AddTagsToStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::AddTagsToStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::AddTagsToStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::AddTagsToStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -63,14 +63,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateStreamErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::CreateStreamErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::CreateStreamErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::CreateStreamErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::CreateStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::CreateStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -86,18 +86,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentError( + crate::error::DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentException( inner, - ) => Error::InvalidArgumentError(inner), - crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::DecreaseStreamRetentionPeriodErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError( + ) => Error::InvalidArgumentException(inner), + crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceInUseException( + inner, + ) => Error::ResourceInUseException(inner), + crate::error::DecreaseStreamRetentionPeriodErrorKind::LimitExceededException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::LimitExceededException(inner), + crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::DecreaseStreamRetentionPeriodErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -110,14 +110,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteStreamErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::DeleteStreamErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::DeleteStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DeleteStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DeleteStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DeleteStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -131,15 +131,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterStreamConsumerErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) - } - crate::error::DeregisterStreamConsumerErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::DeregisterStreamConsumerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeregisterStreamConsumerErrorKind::InvalidArgumentException( + inner, + ) => Error::InvalidArgumentException(inner), + crate::error::DeregisterStreamConsumerErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } + crate::error::DeregisterStreamConsumerErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::DeregisterStreamConsumerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -152,8 +152,8 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeLimitsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DescribeLimitsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::DescribeLimitsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -165,11 +165,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DescribeStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DescribeStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -181,14 +181,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStreamConsumerErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::DescribeStreamConsumerErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::DescribeStreamConsumerErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DescribeStreamConsumerErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DescribeStreamConsumerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeStreamConsumerErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeStreamConsumerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -202,11 +202,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeStreamSummaryErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DescribeStreamSummaryErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::DescribeStreamSummaryErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeStreamSummaryErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeStreamSummaryErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -222,18 +222,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DisableEnhancedMonitoringErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) - } - crate::error::DisableEnhancedMonitoringErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::DisableEnhancedMonitoringErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::DisableEnhancedMonitoringErrorKind::InvalidArgumentException( + inner, + ) => Error::InvalidArgumentException(inner), + crate::error::DisableEnhancedMonitoringErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::DisableEnhancedMonitoringErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DisableEnhancedMonitoringErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } + crate::error::DisableEnhancedMonitoringErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::DisableEnhancedMonitoringErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -248,18 +248,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EnableEnhancedMonitoringErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) - } - crate::error::EnableEnhancedMonitoringErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::EnableEnhancedMonitoringErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::EnableEnhancedMonitoringErrorKind::InvalidArgumentException( + inner, + ) => Error::InvalidArgumentException(inner), + crate::error::EnableEnhancedMonitoringErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::EnableEnhancedMonitoringErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::EnableEnhancedMonitoringErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } + crate::error::EnableEnhancedMonitoringErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::EnableEnhancedMonitoringErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -272,35 +272,35 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRecordsErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) - } - crate::error::GetRecordsErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::GetRecordsErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::GetRecordsErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::GetRecordsErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::GetRecordsErrorKind::ExpiredIteratorError(inner) => { - Error::ExpiredIteratorError(inner) + crate::error::GetRecordsErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::GetRecordsErrorKind::KMSOptInRequired(inner) => { - Error::KMSOptInRequired(inner) + crate::error::GetRecordsErrorKind::ExpiredIteratorException(inner) => { + Error::ExpiredIteratorException(inner) } - crate::error::GetRecordsErrorKind::KMSThrottlingError(inner) => { - Error::KMSThrottlingError(inner) + crate::error::GetRecordsErrorKind::KmsOptInRequired(inner) => { + Error::KmsOptInRequired(inner) } - crate::error::GetRecordsErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::GetRecordsErrorKind::KmsThrottlingException(inner) => { + Error::KmsThrottlingException(inner) } - crate::error::GetRecordsErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::GetRecordsErrorKind::ProvisionedThroughputExceededException( + inner, + ) => Error::ProvisionedThroughputExceededException(inner), + crate::error::GetRecordsErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::GetRecordsErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GetRecordsErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GetRecordsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetRecordsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::GetRecordsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -312,14 +312,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetShardIteratorErrorKind::ProvisionedThroughputExceededError( + crate::error::GetShardIteratorErrorKind::ProvisionedThroughputExceededException( inner, - ) => Error::ProvisionedThroughputExceededError(inner), - crate::error::GetShardIteratorErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + ) => Error::ProvisionedThroughputExceededException(inner), + crate::error::GetShardIteratorErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::GetShardIteratorErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetShardIteratorErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::GetShardIteratorErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -337,18 +337,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentError( + crate::error::IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentException( inner, - ) => Error::InvalidArgumentError(inner), - crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::IncreaseStreamRetentionPeriodErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) - } - crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError( + ) => Error::InvalidArgumentException(inner), + crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceInUseException( + inner, + ) => Error::ResourceInUseException(inner), + crate::error::IncreaseStreamRetentionPeriodErrorKind::LimitExceededException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::LimitExceededException(inner), + crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::IncreaseStreamRetentionPeriodErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -361,20 +361,20 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListShardsErrorKind::ExpiredNextTokenError(inner) => { - Error::ExpiredNextTokenError(inner) + crate::error::ListShardsErrorKind::ExpiredNextTokenException(inner) => { + Error::ExpiredNextTokenException(inner) } - crate::error::ListShardsErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::ListShardsErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::ListShardsErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::ListShardsErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::ListShardsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ListShardsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ListShardsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListShardsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListShardsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -386,20 +386,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListStreamConsumersErrorKind::ExpiredNextTokenError(inner) => { - Error::ExpiredNextTokenError(inner) + crate::error::ListStreamConsumersErrorKind::ExpiredNextTokenException(inner) => { + Error::ExpiredNextTokenException(inner) } - crate::error::ListStreamConsumersErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::ListStreamConsumersErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::ListStreamConsumersErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::ListStreamConsumersErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::ListStreamConsumersErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ListStreamConsumersErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ListStreamConsumersErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListStreamConsumersErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListStreamConsumersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -413,8 +413,8 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListStreamsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ListStreamsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } crate::error::ListStreamsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -426,14 +426,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForStreamErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::ListTagsForStreamErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::ListTagsForStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::ListTagsForStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::ListTagsForStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsForStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListTagsForStreamErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -447,17 +447,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::MergeShardsErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::MergeShardsErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::MergeShardsErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::MergeShardsErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::MergeShardsErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::MergeShardsErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::MergeShardsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::MergeShardsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::MergeShardsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -469,32 +469,32 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRecordErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) + crate::error::PutRecordErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::PutRecordErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::PutRecordErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::PutRecordErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::PutRecordErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::PutRecordErrorKind::KMSOptInRequired(inner) => { - Error::KMSOptInRequired(inner) + crate::error::PutRecordErrorKind::KmsOptInRequired(inner) => { + Error::KmsOptInRequired(inner) } - crate::error::PutRecordErrorKind::KMSThrottlingError(inner) => { - Error::KMSThrottlingError(inner) + crate::error::PutRecordErrorKind::KmsThrottlingException(inner) => { + Error::KmsThrottlingException(inner) } - crate::error::PutRecordErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::PutRecordErrorKind::ProvisionedThroughputExceededException(inner) => { + Error::ProvisionedThroughputExceededException(inner) } - crate::error::PutRecordErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::PutRecordErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::PutRecordErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::PutRecordErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::PutRecordErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutRecordErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::PutRecordErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -506,32 +506,32 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutRecordsErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) - } - crate::error::PutRecordsErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::PutRecordsErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::PutRecordsErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::PutRecordsErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::PutRecordsErrorKind::KMSOptInRequired(inner) => { - Error::KMSOptInRequired(inner) + crate::error::PutRecordsErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::PutRecordsErrorKind::KMSThrottlingError(inner) => { - Error::KMSThrottlingError(inner) + crate::error::PutRecordsErrorKind::KmsOptInRequired(inner) => { + Error::KmsOptInRequired(inner) } - crate::error::PutRecordsErrorKind::ProvisionedThroughputExceededError(inner) => { - Error::ProvisionedThroughputExceededError(inner) + crate::error::PutRecordsErrorKind::KmsThrottlingException(inner) => { + Error::KmsThrottlingException(inner) } - crate::error::PutRecordsErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::PutRecordsErrorKind::ProvisionedThroughputExceededException( + inner, + ) => Error::ProvisionedThroughputExceededException(inner), + crate::error::PutRecordsErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::PutRecordsErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::PutRecordsErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::PutRecordsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutRecordsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::PutRecordsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -543,17 +543,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterStreamConsumerErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::RegisterStreamConsumerErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::RegisterStreamConsumerErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::RegisterStreamConsumerErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::RegisterStreamConsumerErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::RegisterStreamConsumerErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::RegisterStreamConsumerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::RegisterStreamConsumerErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::RegisterStreamConsumerErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -567,17 +567,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveTagsFromStreamErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::RemoveTagsFromStreamErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::RemoveTagsFromStreamErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::RemoveTagsFromStreamErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::RemoveTagsFromStreamErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::RemoveTagsFromStreamErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::RemoveTagsFromStreamErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::RemoveTagsFromStreamErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::RemoveTagsFromStreamErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -591,17 +591,17 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SplitShardErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::SplitShardErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::SplitShardErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::SplitShardErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::SplitShardErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::SplitShardErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::SplitShardErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::SplitShardErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::SplitShardErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -613,35 +613,35 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartStreamEncryptionErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) + crate::error::StartStreamEncryptionErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::StartStreamEncryptionErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::StartStreamEncryptionErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::StartStreamEncryptionErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::StartStreamEncryptionErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::StartStreamEncryptionErrorKind::KMSOptInRequired(inner) => { - Error::KMSOptInRequired(inner) + crate::error::StartStreamEncryptionErrorKind::KmsOptInRequired(inner) => { + Error::KmsOptInRequired(inner) } - crate::error::StartStreamEncryptionErrorKind::KMSThrottlingError(inner) => { - Error::KMSThrottlingError(inner) + crate::error::StartStreamEncryptionErrorKind::KmsThrottlingException(inner) => { + Error::KmsThrottlingException(inner) } - crate::error::StartStreamEncryptionErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::StartStreamEncryptionErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::StartStreamEncryptionErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::StartStreamEncryptionErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::StartStreamEncryptionErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::StartStreamEncryptionErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::StartStreamEncryptionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::StartStreamEncryptionErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::StartStreamEncryptionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StartStreamEncryptionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::StartStreamEncryptionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -655,17 +655,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopStreamEncryptionErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::StopStreamEncryptionErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::StopStreamEncryptionErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::StopStreamEncryptionErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::StopStreamEncryptionErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::StopStreamEncryptionErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::StopStreamEncryptionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StopStreamEncryptionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::StopStreamEncryptionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -679,17 +679,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateShardCountErrorKind::InvalidArgumentError(inner) => { - Error::InvalidArgumentError(inner) + crate::error::UpdateShardCountErrorKind::InvalidArgumentException(inner) => { + Error::InvalidArgumentException(inner) } - crate::error::UpdateShardCountErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::UpdateShardCountErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::UpdateShardCountErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateShardCountErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateShardCountErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateShardCountErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UpdateShardCountErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/kinesis/src/input.rs b/sdk/kinesis/src/input.rs index 06039e9f8465..0a528ede12f7 100644 --- a/sdk/kinesis/src/input.rs +++ b/sdk/kinesis/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`AddTagsToStreamInput`](crate::input::AddTagsToStreamInput) pub mod add_tags_to_stream_input { /// A builder for [`AddTagsToStreamInput`](crate::input::AddTagsToStreamInput) @@ -116,15 +117,27 @@ impl AddTagsToStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.AddTagsToStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.AddTagsToStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -249,15 +262,27 @@ impl CreateStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.CreateStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.CreateStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -382,18 +407,30 @@ impl DecreaseStreamRetentionPeriodInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "Kinesis_20131202.DecreaseStreamRetentionPeriod", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "Kinesis_20131202.DecreaseStreamRetentionPeriod", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -515,15 +552,27 @@ impl DeleteStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DeleteStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DeleteStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -665,15 +714,27 @@ impl DeregisterStreamConsumerInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DeregisterStreamConsumer")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DeregisterStreamConsumer"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -727,7 +788,9 @@ impl DescribeLimitsInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = crate::operation_ser::serialize_operation_describe_limits(&self).map_err( + |err| smithy_http::operation::BuildError::SerializationError(err.into()), + )?; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -768,15 +831,27 @@ impl DescribeLimitsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DescribeLimits")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DescribeLimits"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -912,15 +987,27 @@ impl DescribeStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DescribeStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DescribeStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1057,15 +1144,27 @@ impl DescribeStreamConsumerInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DescribeStreamConsumer")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DescribeStreamConsumer"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1176,15 +1275,27 @@ impl DescribeStreamSummaryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DescribeStreamSummary")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DescribeStreamSummary"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1313,15 +1424,27 @@ impl DisableEnhancedMonitoringInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.DisableEnhancedMonitoring")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.DisableEnhancedMonitoring"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1449,15 +1572,27 @@ impl EnableEnhancedMonitoringInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.EnableEnhancedMonitoring")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.EnableEnhancedMonitoring"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1584,15 +1719,27 @@ impl GetRecordsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.GetRecords")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.GetRecords"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1786,15 +1933,27 @@ impl GetShardIteratorInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.GetShardIterator")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.GetShardIterator"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1919,18 +2078,30 @@ impl IncreaseStreamRetentionPeriodInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "Kinesis_20131202.IncreaseStreamRetentionPeriod", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "Kinesis_20131202.IncreaseStreamRetentionPeriod", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2141,15 +2312,27 @@ impl ListShardsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.ListShards")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.ListShards"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2324,15 +2507,27 @@ impl ListStreamConsumersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.ListStreamConsumers")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.ListStreamConsumers"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2458,15 +2653,27 @@ impl ListStreamsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.ListStreams")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.ListStreams"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2607,15 +2814,27 @@ impl ListTagsForStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.ListTagsForStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.ListTagsForStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2753,15 +2972,27 @@ impl MergeShardsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.MergeShards")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.MergeShards"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2938,15 +3169,27 @@ impl PutRecordInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.PutRecord")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.PutRecord"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3071,15 +3314,27 @@ impl PutRecordsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.PutRecords")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.PutRecords"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3206,15 +3461,27 @@ impl RegisterStreamConsumerInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.RegisterStreamConsumer")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.RegisterStreamConsumer"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3340,15 +3607,27 @@ impl RemoveTagsFromStreamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.RemoveTagsFromStream")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.RemoveTagsFromStream"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3491,15 +3770,27 @@ impl SplitShardInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.SplitShard")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.SplitShard"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3665,15 +3956,27 @@ impl StartStreamEncryptionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.StartStreamEncryption")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.StartStreamEncryption"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3839,15 +4142,27 @@ impl StopStreamEncryptionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.StopStreamEncryption")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.StopStreamEncryption"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4002,15 +4317,27 @@ impl UpdateShardCountInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "Kinesis_20131202.UpdateShardCount")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "Kinesis_20131202.UpdateShardCount"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/kinesis/src/instant_epoch.rs b/sdk/kinesis/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/kinesis/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/kinesis/src/json_deser.rs b/sdk/kinesis/src/json_deser.rs index 93b756d21513..890f3e2c2a20 100644 --- a/sdk/kinesis/src/json_deser.rs +++ b/sdk/kinesis/src/json_deser.rs @@ -1,281 +1,2495 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn describe_limits_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_invalid_argument_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_argument_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_limits( input: &[u8], mut builder: crate::output::describe_limits_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLimitsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_shard_limit(parsed_body.shard_limit); - builder = builder.set_open_shard_count(parsed_body.open_shard_count); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardLimit" => { + builder = builder.set_shard_limit( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "OpenShardCount" => { + builder = builder.set_open_shard_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_stream_deser_operation( +pub fn deser_operation_describe_stream( input: &[u8], mut builder: crate::output::describe_stream_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeStreamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_description(parsed_body.stream_description); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamDescription" => { + builder = builder.set_stream_description( + crate::json_deser::deser_structure_stream_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_stream_consumer_deser_operation( +pub fn deser_operation_describe_stream_consumer( input: &[u8], mut builder: crate::output::describe_stream_consumer_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeStreamConsumerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_consumer_description(parsed_body.consumer_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConsumerDescription" => { + builder = builder.set_consumer_description( + crate::json_deser::deser_structure_consumer_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_stream_summary_deser_operation( +pub fn deser_operation_describe_stream_summary( input: &[u8], mut builder: crate::output::describe_stream_summary_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeStreamSummaryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_description_summary(parsed_body.stream_description_summary); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamDescriptionSummary" => { + builder = builder.set_stream_description_summary( + crate::json_deser::deser_structure_stream_description_summary(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn disable_enhanced_monitoring_deser_operation( +pub fn deser_operation_disable_enhanced_monitoring( input: &[u8], mut builder: crate::output::disable_enhanced_monitoring_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::disable_enhanced_monitoring_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DisableEnhancedMonitoringOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_name(parsed_body.stream_name); - builder = builder.set_current_shard_level_metrics(parsed_body.current_shard_level_metrics); - builder = builder.set_desired_shard_level_metrics(parsed_body.desired_shard_level_metrics); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentShardLevelMetrics" => { + builder = builder.set_current_shard_level_metrics( + crate::json_deser::deser_list_metrics_name_list(tokens)?, + ); + } + "DesiredShardLevelMetrics" => { + builder = builder.set_desired_shard_level_metrics( + crate::json_deser::deser_list_metrics_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn enable_enhanced_monitoring_deser_operation( +pub fn deser_operation_enable_enhanced_monitoring( input: &[u8], mut builder: crate::output::enable_enhanced_monitoring_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::EnableEnhancedMonitoringOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_name(parsed_body.stream_name); - builder = builder.set_current_shard_level_metrics(parsed_body.current_shard_level_metrics); - builder = builder.set_desired_shard_level_metrics(parsed_body.desired_shard_level_metrics); +) -> Result< + crate::output::enable_enhanced_monitoring_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentShardLevelMetrics" => { + builder = builder.set_current_shard_level_metrics( + crate::json_deser::deser_list_metrics_name_list(tokens)?, + ); + } + "DesiredShardLevelMetrics" => { + builder = builder.set_desired_shard_level_metrics( + crate::json_deser::deser_list_metrics_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_access_denied_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_access_denied_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_records_deser_operation( +pub fn deser_structure_kms_disabled_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_disabled_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_expired_iterator_exceptionjson_err( + input: &[u8], + mut builder: crate::error::expired_iterator_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_opt_in_requiredjson_err( + input: &[u8], + mut builder: crate::error::kms_opt_in_required::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_throttling_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_throttling_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_provisioned_throughput_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::provisioned_throughput_exceeded_exception::Builder, +) -> Result< + crate::error::provisioned_throughput_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_invalid_state_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_invalid_state_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_records( input: &[u8], mut builder: crate::output::get_records_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRecordsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_records(parsed_body.records); - builder = builder.set_next_shard_iterator(parsed_body.next_shard_iterator); - builder = builder.set_millis_behind_latest(parsed_body.millis_behind_latest); - builder = builder.set_child_shards(parsed_body.child_shards); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Records" => { + builder = + builder.set_records(crate::json_deser::deser_list_record_list(tokens)?); + } + "NextShardIterator" => { + builder = builder.set_next_shard_iterator( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MillisBehindLatest" => { + builder = builder.set_millis_behind_latest( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "ChildShards" => { + builder = builder.set_child_shards( + crate::json_deser::deser_list_child_shard_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_shard_iterator_deser_operation( +pub fn deser_operation_get_shard_iterator( input: &[u8], mut builder: crate::output::get_shard_iterator_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetShardIteratorOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_shard_iterator(parsed_body.shard_iterator); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardIterator" => { + builder = builder.set_shard_iterator( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_shards_deser_operation( +pub fn deser_structure_expired_next_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::expired_next_token_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_shards( input: &[u8], mut builder: crate::output::list_shards_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListShardsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_shards(parsed_body.shards); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Shards" => { + builder = + builder.set_shards(crate::json_deser::deser_list_shard_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_stream_consumers_deser_operation( +pub fn deser_operation_list_stream_consumers( input: &[u8], mut builder: crate::output::list_stream_consumers_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListStreamConsumersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_consumers(parsed_body.consumers); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Consumers" => { + builder = builder + .set_consumers(crate::json_deser::deser_list_consumer_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_streams_deser_operation( +pub fn deser_operation_list_streams( input: &[u8], mut builder: crate::output::list_streams_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListStreamsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_names(parsed_body.stream_names); - builder = builder.set_has_more_streams(parsed_body.has_more_streams); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamNames" => { + builder = builder.set_stream_names( + crate::json_deser::deser_list_stream_name_list(tokens)?, + ); + } + "HasMoreStreams" => { + builder = builder.set_has_more_streams( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_stream_deser_operation( +pub fn deser_operation_list_tags_for_stream( input: &[u8], mut builder: crate::output::list_tags_for_stream_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForStreamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_has_more_tags(parsed_body.has_more_tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "HasMoreTags" => { + builder = builder.set_has_more_tags( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_record_deser_operation( +pub fn deser_operation_put_record( input: &[u8], mut builder: crate::output::put_record_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutRecordOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_shard_id(parsed_body.shard_id); - builder = builder.set_sequence_number(parsed_body.sequence_number); - builder = builder.set_encryption_type(parsed_body.encryption_type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardId" => { + builder = builder.set_shard_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SequenceNumber" => { + builder = builder.set_sequence_number( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EncryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_records_deser_operation( +pub fn deser_operation_put_records( input: &[u8], mut builder: crate::output::put_records_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutRecordsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_failed_record_count(parsed_body.failed_record_count); - builder = builder.set_records(parsed_body.records); - builder = builder.set_encryption_type(parsed_body.encryption_type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FailedRecordCount" => { + builder = builder.set_failed_record_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Records" => { + builder = builder.set_records( + crate::json_deser::deser_list_put_records_result_entry_list(tokens)?, + ); + } + "EncryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_stream_consumer_deser_operation( +pub fn deser_operation_register_stream_consumer( input: &[u8], mut builder: crate::output::register_stream_consumer_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::RegisterStreamConsumerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_consumer(parsed_body.consumer); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Consumer" => { + builder = builder + .set_consumer(crate::json_deser::deser_structure_consumer(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_shard_count_deser_operation( +pub fn deser_operation_update_shard_count( input: &[u8], mut builder: crate::output::update_shard_count_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateShardCountOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_name(parsed_body.stream_name); - builder = builder.set_current_shard_count(parsed_body.current_shard_count); - builder = builder.set_target_shard_count(parsed_body.target_shard_count); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentShardCount" => { + builder = builder.set_current_shard_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TargetShardCount" => { + builder = builder.set_target_shard_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_stream_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StreamDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamARN" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamStatus" => { + builder = builder.set_stream_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StreamStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Shards" => { + builder = builder + .set_shards(crate::json_deser::deser_list_shard_list(tokens)?); + } + "HasMoreShards" => { + builder = builder.set_has_more_shards( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "RetentionPeriodHours" => { + builder = builder.set_retention_period_hours( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "StreamCreationTimestamp" => { + builder = builder.set_stream_creation_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EnhancedMonitoring" => { + builder = builder.set_enhanced_monitoring( + crate::json_deser::deser_list_enhanced_monitoring_list(tokens)?, + ); + } + "EncryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_consumer_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ConsumerDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConsumerName" => { + builder = builder.set_consumer_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConsumerARN" => { + builder = builder.set_consumer_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConsumerStatus" => { + builder = builder.set_consumer_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConsumerStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ConsumerCreationTimestamp" => { + builder = builder.set_consumer_creation_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "StreamARN" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_stream_description_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StreamDescriptionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamARN" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamStatus" => { + builder = builder.set_stream_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StreamStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RetentionPeriodHours" => { + builder = builder.set_retention_period_hours( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "StreamCreationTimestamp" => { + builder = builder.set_stream_creation_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EnhancedMonitoring" => { + builder = builder.set_enhanced_monitoring( + crate::json_deser::deser_list_enhanced_monitoring_list(tokens)?, + ); + } + "EncryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpenShardCount" => { + builder = builder.set_open_shard_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ConsumerCount" => { + builder = builder.set_consumer_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metrics_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MetricsName::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_record_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_record(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_child_shard_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_child_shard(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_shard_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_shard(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_consumer_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_consumer(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_stream_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_put_records_result_entry_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_put_records_result_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_consumer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Consumer::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConsumerName" => { + builder = builder.set_consumer_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConsumerARN" => { + builder = builder.set_consumer_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConsumerStatus" => { + builder = builder.set_consumer_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConsumerStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ConsumerCreationTimestamp" => { + builder = builder.set_consumer_creation_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_enhanced_monitoring_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_enhanced_metrics(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Record::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SequenceNumber" => { + builder = builder.set_sequence_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ApproximateArrivalTimestamp" => { + builder = builder.set_approximate_arrival_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Data" => { + builder = builder.set_data( + smithy_json::deserialize::token::expect_blob_or_null( + tokens.next(), + )?, + ); + } + "PartitionKey" => { + builder = builder.set_partition_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EncryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EncryptionType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_child_shard<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ChildShard::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardId" => { + builder = builder.set_shard_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ParentShards" => { + builder = builder.set_parent_shards( + crate::json_deser::deser_list_shard_id_list(tokens)?, + ); + } + "HashKeyRange" => { + builder = builder.set_hash_key_range( + crate::json_deser::deser_structure_hash_key_range(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_shard<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Shard::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardId" => { + builder = builder.set_shard_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ParentShardId" => { + builder = builder.set_parent_shard_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdjacentParentShardId" => { + builder = builder.set_adjacent_parent_shard_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HashKeyRange" => { + builder = builder.set_hash_key_range( + crate::json_deser::deser_structure_hash_key_range(tokens)?, + ); + } + "SequenceNumberRange" => { + builder = builder.set_sequence_number_range( + crate::json_deser::deser_structure_sequence_number_range( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_put_records_result_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PutRecordsResultEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SequenceNumber" => { + builder = builder.set_sequence_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ShardId" => { + builder = builder.set_shard_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_enhanced_metrics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EnhancedMetrics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ShardLevelMetrics" => { + builder = builder.set_shard_level_metrics( + crate::json_deser::deser_list_metrics_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_shard_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_hash_key_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HashKeyRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StartingHashKey" => { + builder = builder.set_starting_hash_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndingHashKey" => { + builder = builder.set_ending_hash_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sequence_number_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SequenceNumberRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StartingSequenceNumber" => { + builder = builder.set_starting_sequence_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndingSequenceNumber" => { + builder = builder.set_ending_sequence_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/kinesis/src/json_errors.rs b/sdk/kinesis/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/kinesis/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/kinesis/src/lib.rs b/sdk/kinesis/src/lib.rs index e1f813ce5602..40a0ff927cb0 100644 --- a/sdk/kinesis/src/lib.rs +++ b/sdk/kinesis/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon Kinesis Data Streams Service API Reference //!

    Amazon Kinesis Data Streams is a managed service that scales elastically for //! real-time processing of streaming big data.

    @@ -13,23 +14,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/kinesis/src/model.rs b/sdk/kinesis/src/model.rs index 46ff88fb9872..c0c5abe5b384 100644 --- a/sdk/kinesis/src/model.rs +++ b/sdk/kinesis/src/model.rs @@ -25,7 +25,7 @@ impl std::convert::From<&str> for ScalingType { impl std::str::FromStr for ScalingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ScalingType::from(s)) } } @@ -42,15 +42,6 @@ impl AsRef for ScalingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ScalingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -80,7 +71,7 @@ impl std::convert::From<&str> for EncryptionType { impl std::str::FromStr for EncryptionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EncryptionType::from(s)) } } @@ -98,45 +89,25 @@ impl AsRef for EncryptionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EncryptionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that represents the details of the consumer you registered. This type of /// object is returned by RegisterStreamConsumer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Consumer { ///

    The name of the consumer is something you choose when you register the /// consumer.

    - #[serde(rename = "ConsumerName")] - #[serde(default)] pub consumer_name: std::option::Option, ///

    When you register a consumer, Kinesis Data Streams generates an ARN for it. You need /// this ARN to be able to call SubscribeToShard.

    ///

    If you delete a consumer and then create a new one with the same name, it won't have /// the same ARN. That's because consumer ARNs contain the creation timestamp. This is /// important to keep in mind if you have IAM policies that reference consumer ARNs.

    - #[serde(rename = "ConsumerARN")] - #[serde(default)] pub consumer_arn: std::option::Option, ///

    A consumer can't read data while in the CREATING or DELETING /// states.

    - #[serde(rename = "ConsumerStatus")] - #[serde(default)] pub consumer_status: std::option::Option, ///

    - #[serde(rename = "ConsumerCreationTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub consumer_creation_timestamp: std::option::Option, } impl std::fmt::Debug for Consumer { @@ -263,7 +234,7 @@ impl std::convert::From<&str> for ConsumerStatus { impl std::str::FromStr for ConsumerStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConsumerStatus::from(s)) } } @@ -282,15 +253,6 @@ impl AsRef for ConsumerStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConsumerStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the result of an individual record from a PutRecords /// request. A record that is successfully added to a stream includes @@ -298,29 +260,21 @@ impl<'de> serde::Deserialize<'de> for ConsumerStatus { /// fails to be added to the stream includes ErrorCode and /// ErrorMessage in the result.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutRecordsResultEntry { ///

    The sequence number for an individual record result.

    - #[serde(rename = "SequenceNumber")] - #[serde(default)] pub sequence_number: std::option::Option, ///

    The shard ID for an individual record result.

    - #[serde(rename = "ShardId")] - #[serde(default)] pub shard_id: std::option::Option, ///

    The error code for an individual record result. ErrorCodes can be /// either ProvisionedThroughputExceededException or /// InternalFailure.

    - #[serde(rename = "ErrorCode")] - #[serde(default)] pub error_code: std::option::Option, ///

    The error message for an individual record result. An ErrorCode value /// of ProvisionedThroughputExceededException has an error message that /// includes the account ID, stream name, and shard ID. An ErrorCode value of /// InternalFailure has the error message "Internal Service /// Failure".

    - #[serde(rename = "ErrorMessage")] - #[serde(default)] pub error_message: std::option::Option, } impl std::fmt::Debug for PutRecordsResultEntry { @@ -413,20 +367,15 @@ impl PutRecordsResultEntry { ///

    Represents the output for PutRecords.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutRecordsRequestEntry { ///

    The data blob to put into the record, which is base64-encoded when the blob is /// serialized. When the data blob (the payload before base64-encoding) is added to the /// partition key size, the total size must not exceed the maximum record size (1 /// MiB).

    - #[serde(rename = "Data")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub data: std::option::Option, ///

    The hash value used to determine explicitly the shard that the data record is /// assigned to by overriding the partition key hash.

    - #[serde(rename = "ExplicitHashKey")] - #[serde(default)] pub explicit_hash_key: std::option::Option, ///

    Determines which shard in the stream the data record is assigned to. Partition keys /// are Unicode strings with a maximum length limit of 256 characters for each key. Amazon @@ -435,8 +384,6 @@ pub struct PutRecordsRequestEntry { /// function is used to map partition keys to 128-bit integer values and to map associated /// data records to shards. As a result of this hashing mechanism, all data records with the /// same partition key map to the same shard within the stream.

    - #[serde(rename = "PartitionKey")] - #[serde(default)] pub partition_key: std::option::Option, } impl std::fmt::Debug for PutRecordsRequestEntry { @@ -521,18 +468,14 @@ impl PutRecordsRequestEntry { ///

    Metadata assigned to the stream, consisting of a key-value pair.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    A unique identifier for the tag. Maximum length: 128 characters. Valid characters: /// Unicode letters, digits, white space, _ . / = + - % @

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    An optional string, typically used to describe or define the tag. Maximum length: /// 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % /// @

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -592,28 +535,18 @@ impl Tag { ///

    A uniquely identified group of data records in a Kinesis data stream.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Shard { ///

    The unique identifier of the shard within the stream.

    - #[serde(rename = "ShardId")] - #[serde(default)] pub shard_id: std::option::Option, ///

    The shard ID of the shard's parent.

    - #[serde(rename = "ParentShardId")] - #[serde(default)] pub parent_shard_id: std::option::Option, ///

    The shard ID of the shard adjacent to the shard's parent.

    - #[serde(rename = "AdjacentParentShardId")] - #[serde(default)] pub adjacent_parent_shard_id: std::option::Option, ///

    The range of possible hash key values for the shard, which is a set of ordered /// contiguous positive integers.

    - #[serde(rename = "HashKeyRange")] - #[serde(default)] pub hash_key_range: std::option::Option, ///

    The range of possible sequence numbers for the shard.

    - #[serde(rename = "SequenceNumberRange")] - #[serde(default)] pub sequence_number_range: std::option::Option, } impl std::fmt::Debug for Shard { @@ -719,16 +652,12 @@ impl Shard { ///

    The range of possible sequence numbers for the shard.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SequenceNumberRange { ///

    The starting sequence number for the range.

    - #[serde(rename = "StartingSequenceNumber")] - #[serde(default)] pub starting_sequence_number: std::option::Option, ///

    The ending sequence number for the range. Shards that are in the OPEN state have an /// ending sequence number of null.

    - #[serde(rename = "EndingSequenceNumber")] - #[serde(default)] pub ending_sequence_number: std::option::Option, } impl std::fmt::Debug for SequenceNumberRange { @@ -793,15 +722,11 @@ impl SequenceNumberRange { ///

    The range of possible hash key values for the shard, which is a set of ordered /// contiguous positive integers.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HashKeyRange { ///

    The starting hash key of the hash key range.

    - #[serde(rename = "StartingHashKey")] - #[serde(default)] pub starting_hash_key: std::option::Option, ///

    The ending hash key of the hash key range.

    - #[serde(rename = "EndingHashKey")] - #[serde(default)] pub ending_hash_key: std::option::Option, } impl std::fmt::Debug for HashKeyRange { @@ -863,19 +788,10 @@ impl HashKeyRange { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ShardFilter { - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, - #[serde(rename = "ShardId")] - #[serde(default)] pub shard_id: std::option::Option, - #[serde(rename = "Timestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub timestamp: std::option::Option, } impl std::fmt::Debug for ShardFilter { @@ -978,7 +894,7 @@ impl std::convert::From<&str> for ShardFilterType { impl std::str::FromStr for ShardFilterType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ShardFilterType::from(s)) } } @@ -1000,15 +916,6 @@ impl AsRef for ShardFilterType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ShardFilterType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1044,7 +951,7 @@ impl std::convert::From<&str> for ShardIteratorType { impl std::str::FromStr for ShardIteratorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ShardIteratorType::from(s)) } } @@ -1065,29 +972,14 @@ impl AsRef for ShardIteratorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ShardIteratorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ChildShard { - #[serde(rename = "ShardId")] - #[serde(default)] pub shard_id: std::option::Option, - #[serde(rename = "ParentShards")] - #[serde(default)] pub parent_shards: std::option::Option>, ///

    The range of possible hash key values for the shard, which is a set of ordered /// contiguous positive integers.

    - #[serde(rename = "HashKeyRange")] - #[serde(default)] pub hash_key_range: std::option::Option, } impl std::fmt::Debug for ChildShard { @@ -1164,30 +1056,18 @@ impl ChildShard { ///

    The unit of data of the Kinesis data stream, which is composed of a sequence /// number, a partition key, and a data blob.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Record { ///

    The unique identifier of the record within its shard.

    - #[serde(rename = "SequenceNumber")] - #[serde(default)] pub sequence_number: std::option::Option, ///

    The approximate time that the record was inserted into the stream.

    - #[serde(rename = "ApproximateArrivalTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub approximate_arrival_timestamp: std::option::Option, ///

    The data blob. The data in the blob is both opaque and immutable to Kinesis Data /// Streams, which does not inspect, interpret, or change the data in the blob in any way. /// When the data blob (the payload before base64-encoding) is added to the partition key /// size, the total size must not exceed the maximum record size (1 MiB).

    - #[serde(rename = "Data")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub data: std::option::Option, ///

    Identifies which shard in the stream the data record is assigned to.

    - #[serde(rename = "PartitionKey")] - #[serde(default)] pub partition_key: std::option::Option, ///

    The encryption type used on the record. This parameter can be one of the following /// values:

    @@ -1202,8 +1082,6 @@ pub struct Record { /// using a customer-managed AWS KMS key.

    /// /// - #[serde(rename = "EncryptionType")] - #[serde(default)] pub encryption_type: std::option::Option, } impl std::fmt::Debug for Record { @@ -1364,7 +1242,7 @@ impl std::convert::From<&str> for MetricsName { impl std::str::FromStr for MetricsName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MetricsName::from(s)) } } @@ -1388,28 +1266,15 @@ impl AsRef for MetricsName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MetricsName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents the output for DescribeStreamSummary ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StreamDescriptionSummary { ///

    The name of the stream being described.

    - #[serde(rename = "StreamName")] - #[serde(default)] pub stream_name: std::option::Option, ///

    The Amazon Resource Name (ARN) for the stream being described.

    - #[serde(rename = "StreamARN")] - #[serde(default)] pub stream_arn: std::option::Option, ///

    The current status of the stream being described. The stream status is one of the /// following states:

    @@ -1439,23 +1304,12 @@ pub struct StreamDescriptionSummary { /// UPDATING state.

    /// /// - #[serde(rename = "StreamStatus")] - #[serde(default)] pub stream_status: std::option::Option, ///

    The current retention period, in hours.

    - #[serde(rename = "RetentionPeriodHours")] - #[serde(default)] pub retention_period_hours: std::option::Option, ///

    The approximate time that the stream was created.

    - #[serde(rename = "StreamCreationTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub stream_creation_timestamp: std::option::Option, ///

    Represents the current enhanced monitoring settings of the stream.

    - #[serde(rename = "EnhancedMonitoring")] - #[serde(default)] pub enhanced_monitoring: std::option::Option>, ///

    The encryption type used. This value is one of the following:

    ///
      @@ -1470,8 +1324,6 @@ pub struct StreamDescriptionSummary { ///

      /// ///
    - #[serde(rename = "EncryptionType")] - #[serde(default)] pub encryption_type: std::option::Option, ///

    The GUID for the customer-managed AWS KMS key to use for encryption. This value can /// be a globally unique identifier, a fully specified ARN to either an alias or a key, or @@ -1503,16 +1355,10 @@ pub struct StreamDescriptionSummary { ///

    /// /// - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    The number of open shards in the stream.

    - #[serde(rename = "OpenShardCount")] - #[serde(default)] pub open_shard_count: std::option::Option, ///

    The number of enhanced fan-out consumers registered with the stream.

    - #[serde(rename = "ConsumerCount")] - #[serde(default)] pub consumer_count: std::option::Option, } impl std::fmt::Debug for StreamDescriptionSummary { @@ -1750,7 +1596,7 @@ impl StreamDescriptionSummary { ///

    Represents enhanced metrics types.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EnhancedMetrics { ///

    List of shard-level metrics.

    ///

    The following are the valid shard-level metrics. The value "ALL" @@ -1800,8 +1646,6 @@ pub struct EnhancedMetrics { ///

    For more information, see Monitoring the Amazon /// Kinesis Data Streams Service with Amazon CloudWatch in the Amazon /// Kinesis Data Streams Developer Guide.

    - #[serde(rename = "ShardLevelMetrics")] - #[serde(default)] pub shard_level_metrics: std::option::Option>, } impl std::fmt::Debug for EnhancedMetrics { @@ -1881,7 +1725,7 @@ impl std::convert::From<&str> for StreamStatus { impl std::str::FromStr for StreamStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StreamStatus::from(s)) } } @@ -1901,49 +1745,27 @@ impl AsRef for StreamStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StreamStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that represents the details of a registered consumer. This type of object is /// returned by DescribeStreamConsumer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ConsumerDescription { ///

    The name of the consumer is something you choose when you register the /// consumer.

    - #[serde(rename = "ConsumerName")] - #[serde(default)] pub consumer_name: std::option::Option, ///

    When you register a consumer, Kinesis Data Streams generates an ARN for it. You need /// this ARN to be able to call SubscribeToShard.

    ///

    If you delete a consumer and then create a new one with the same name, it won't have /// the same ARN. That's because consumer ARNs contain the creation timestamp. This is /// important to keep in mind if you have IAM policies that reference consumer ARNs.

    - #[serde(rename = "ConsumerARN")] - #[serde(default)] pub consumer_arn: std::option::Option, ///

    A consumer can't read data while in the CREATING or DELETING /// states.

    - #[serde(rename = "ConsumerStatus")] - #[serde(default)] pub consumer_status: std::option::Option, ///

    - #[serde(rename = "ConsumerCreationTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub consumer_creation_timestamp: std::option::Option, ///

    The ARN of the stream with which you registered the consumer.

    - #[serde(rename = "StreamARN")] - #[serde(default)] pub stream_arn: std::option::Option, } impl std::fmt::Debug for ConsumerDescription { @@ -2054,15 +1876,11 @@ impl ConsumerDescription { ///

    Represents the output for DescribeStream.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StreamDescription { ///

    The name of the stream being described.

    - #[serde(rename = "StreamName")] - #[serde(default)] pub stream_name: std::option::Option, ///

    The Amazon Resource Name (ARN) for the stream being described.

    - #[serde(rename = "StreamARN")] - #[serde(default)] pub stream_arn: std::option::Option, ///

    The current status of the stream being described. The stream status is one of the /// following states:

    @@ -2092,33 +1910,18 @@ pub struct StreamDescription { /// UPDATING state.

    /// /// - #[serde(rename = "StreamStatus")] - #[serde(default)] pub stream_status: std::option::Option, ///

    The shards that comprise the stream.

    - #[serde(rename = "Shards")] - #[serde(default)] pub shards: std::option::Option>, ///

    If set to true, more shards in the stream are available to /// describe.

    - #[serde(rename = "HasMoreShards")] - #[serde(default)] pub has_more_shards: std::option::Option, ///

    The current retention period, in hours. Minimum value of 24. Maximum value of /// 168.

    - #[serde(rename = "RetentionPeriodHours")] - #[serde(default)] pub retention_period_hours: std::option::Option, ///

    The approximate time that the stream was created.

    - #[serde(rename = "StreamCreationTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub stream_creation_timestamp: std::option::Option, ///

    Represents the current enhanced monitoring settings of the stream.

    - #[serde(rename = "EnhancedMonitoring")] - #[serde(default)] pub enhanced_monitoring: std::option::Option>, ///

    The server-side encryption type used on the stream. This parameter can be one of /// the following values:

    @@ -2133,8 +1936,6 @@ pub struct StreamDescription { /// using a customer-managed AWS KMS key.

    /// /// - #[serde(rename = "EncryptionType")] - #[serde(default)] pub encryption_type: std::option::Option, ///

    The GUID for the customer-managed AWS KMS key to use for encryption. This value can /// be a globally unique identifier, a fully specified ARN to either an alias or a key, or @@ -2166,8 +1967,6 @@ pub struct StreamDescription { ///

    /// /// - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, } impl std::fmt::Debug for StreamDescription { diff --git a/sdk/kinesis/src/operation.rs b/sdk/kinesis/src/operation.rs index d063ac61c177..cb1040e70e4e 100644 --- a/sdk/kinesis/src/operation.rs +++ b/sdk/kinesis/src/operation.rs @@ -17,57 +17,6 @@ impl AddTagsToStream { pub fn builder() -> crate::input::add_tags_to_stream_input::Builder { crate::input::add_tags_to_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::AddTagsToStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToStreamError { - kind: crate::error::AddTagsToStreamErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToStreamError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToStreamError { - kind: crate::error::AddTagsToStreamErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToStreamError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToStreamError { - kind: crate::error::AddTagsToStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToStreamError { - kind: crate::error::AddTagsToStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToStreamError::unhandled(e), - }, - _ => crate::error::AddTagsToStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::add_tags_to_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -78,7 +27,11 @@ impl smithy_http::response::ParseStrictResponse for AddTagsToStream { crate::error::AddTagsToStreamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_add_tags_to_stream_error(response) + } else { + crate::operation_deser::parse_add_tags_to_stream_response(response) + } } } @@ -130,50 +83,6 @@ impl CreateStream { pub fn builder() -> crate::input::create_stream_input::Builder { crate::input::create_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateStreamError { - kind: crate::error::CreateStreamErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::CreateStreamError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateStreamError { - kind: crate::error::CreateStreamErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::CreateStreamError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateStreamError { - kind: crate::error::CreateStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateStreamError::unhandled(e), - }, - _ => crate::error::CreateStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -182,7 +91,11 @@ impl smithy_http::response::ParseStrictResponse for CreateStream { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_stream_error(response) + } else { + crate::operation_deser::parse_create_stream_response(response) + } } } @@ -201,52 +114,6 @@ impl DecreaseStreamRetentionPeriod { pub fn builder() -> crate::input::decrease_stream_retention_period_input::Builder { crate::input::decrease_stream_retention_period_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DecreaseStreamRetentionPeriodOutput, - crate::error::DecreaseStreamRetentionPeriodError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DecreaseStreamRetentionPeriodError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecreaseStreamRetentionPeriodError { kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::DecreaseStreamRetentionPeriodError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecreaseStreamRetentionPeriodError { kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::DecreaseStreamRetentionPeriodError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecreaseStreamRetentionPeriodError { kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::DecreaseStreamRetentionPeriodError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecreaseStreamRetentionPeriodError { kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::DecreaseStreamRetentionPeriodError::unhandled(e) - } - _ => crate::error::DecreaseStreamRetentionPeriodError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::decrease_stream_retention_period_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -257,7 +124,11 @@ impl smithy_http::response::ParseStrictResponse for DecreaseStreamRetentionPerio crate::error::DecreaseStreamRetentionPeriodError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_decrease_stream_retention_period_error(response) + } else { + crate::operation_deser::parse_decrease_stream_retention_period_response(response) + } } } @@ -289,50 +160,6 @@ impl DeleteStream { pub fn builder() -> crate::input::delete_stream_input::Builder { crate::input::delete_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteStreamError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteStreamError { - kind: crate::error::DeleteStreamErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteStreamError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteStreamError { - kind: crate::error::DeleteStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteStreamError { - kind: crate::error::DeleteStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteStreamError::unhandled(e), - }, - _ => crate::error::DeleteStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -341,7 +168,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteStream { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_stream_error(response) + } else { + crate::operation_deser::parse_delete_stream_response(response) + } } } @@ -362,63 +193,6 @@ impl DeregisterStreamConsumer { pub fn builder() -> crate::input::deregister_stream_consumer_input::Builder { crate::input::deregister_stream_consumer_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterStreamConsumerOutput, - crate::error::DeregisterStreamConsumerError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeregisterStreamConsumerError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterStreamConsumerError { - kind: crate::error::DeregisterStreamConsumerErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterStreamConsumerError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterStreamConsumerError { - kind: crate::error::DeregisterStreamConsumerErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterStreamConsumerError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterStreamConsumerError { - kind: - crate::error::DeregisterStreamConsumerErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterStreamConsumerError::unhandled(e), - }, - _ => crate::error::DeregisterStreamConsumerError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::deregister_stream_consumer_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -429,7 +203,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterStreamConsumer { crate::error::DeregisterStreamConsumerError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_stream_consumer_error(response) + } else { + crate::operation_deser::parse_deregister_stream_consumer_response(response) + } } } @@ -446,39 +224,6 @@ impl DescribeLimits { pub fn builder() -> crate::input::describe_limits_input::Builder { crate::input::describe_limits_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeLimitsError::unhandled(generic)), - }; - return Err(match error_code { - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLimitsError { - kind: crate::error::DescribeLimitsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeLimitsError::unhandled(e), - }, - _ => crate::error::DescribeLimitsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_limits_output::Builder::default(); - builder = - crate::json_deser::describe_limits_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeLimitsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -487,7 +232,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeLimits { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_limits_error(response) + } else { + crate::operation_deser::parse_describe_limits_response(response) + } } } @@ -515,46 +264,6 @@ impl DescribeStream { pub fn builder() -> crate::input::describe_stream_input::Builder { crate::input::describe_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeStreamError::unhandled(generic)), - }; - return Err(match error_code { - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamError { - kind: crate::error::DescribeStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamError { - kind: crate::error::DescribeStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamError::unhandled(e), - }, - _ => crate::error::DescribeStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_stream_output::Builder::default(); - builder = - crate::json_deser::describe_stream_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeStreamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -563,7 +272,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeStream { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_stream_error(response) + } else { + crate::operation_deser::parse_describe_stream_response(response) + } } } @@ -584,67 +297,6 @@ impl DescribeStreamConsumer { pub fn builder() -> crate::input::describe_stream_consumer_input::Builder { crate::input::describe_stream_consumer_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeStreamConsumerOutput, - crate::error::DescribeStreamConsumerError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeStreamConsumerError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamConsumerError { - kind: crate::error::DescribeStreamConsumerErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamConsumerError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamConsumerError { - kind: crate::error::DescribeStreamConsumerErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamConsumerError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamConsumerError { - kind: crate::error::DescribeStreamConsumerErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamConsumerError::unhandled(e), - }, - _ => crate::error::DescribeStreamConsumerError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_stream_consumer_output::Builder::default(); - builder = crate::json_deser::describe_stream_consumer_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -655,7 +307,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeStreamConsumer { crate::error::DescribeStreamConsumerError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_stream_consumer_error(response) + } else { + crate::operation_deser::parse_describe_stream_consumer_response(response) + } } } @@ -676,54 +332,6 @@ impl DescribeStreamSummary { pub fn builder() -> crate::input::describe_stream_summary_input::Builder { crate::input::describe_stream_summary_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeStreamSummaryOutput, - crate::error::DescribeStreamSummaryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeStreamSummaryError::unhandled(generic)), - }; - return Err(match error_code { - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamSummaryError { - kind: crate::error::DescribeStreamSummaryErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamSummaryError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeStreamSummaryError { - kind: crate::error::DescribeStreamSummaryErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeStreamSummaryError::unhandled(e), - }, - _ => crate::error::DescribeStreamSummaryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_stream_summary_output::Builder::default(); - builder = crate::json_deser::describe_stream_summary_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeStreamSummaryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -734,7 +342,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeStreamSummary { crate::error::DescribeStreamSummaryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_stream_summary_error(response) + } else { + crate::operation_deser::parse_describe_stream_summary_response(response) + } } } @@ -748,78 +360,6 @@ impl DisableEnhancedMonitoring { pub fn builder() -> crate::input::disable_enhanced_monitoring_input::Builder { crate::input::disable_enhanced_monitoring_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisableEnhancedMonitoringOutput, - crate::error::DisableEnhancedMonitoringError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DisableEnhancedMonitoringError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableEnhancedMonitoringError { - kind: - crate::error::DisableEnhancedMonitoringErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableEnhancedMonitoringError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableEnhancedMonitoringError { - kind: crate::error::DisableEnhancedMonitoringErrorKind::ResourceInUseError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableEnhancedMonitoringError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableEnhancedMonitoringError { - kind: crate::error::DisableEnhancedMonitoringErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableEnhancedMonitoringError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableEnhancedMonitoringError { - kind: - crate::error::DisableEnhancedMonitoringErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableEnhancedMonitoringError::unhandled(e), - }, - _ => crate::error::DisableEnhancedMonitoringError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disable_enhanced_monitoring_output::Builder::default(); - builder = crate::json_deser::disable_enhanced_monitoring_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -830,7 +370,11 @@ impl smithy_http::response::ParseStrictResponse for DisableEnhancedMonitoring { crate::error::DisableEnhancedMonitoringError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_enhanced_monitoring_error(response) + } else { + crate::operation_deser::parse_disable_enhanced_monitoring_response(response) + } } } @@ -844,77 +388,6 @@ impl EnableEnhancedMonitoring { pub fn builder() -> crate::input::enable_enhanced_monitoring_input::Builder { crate::input::enable_enhanced_monitoring_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::EnableEnhancedMonitoringOutput, - crate::error::EnableEnhancedMonitoringError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::EnableEnhancedMonitoringError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableEnhancedMonitoringError { - kind: crate::error::EnableEnhancedMonitoringErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableEnhancedMonitoringError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableEnhancedMonitoringError { - kind: crate::error::EnableEnhancedMonitoringErrorKind::ResourceInUseError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableEnhancedMonitoringError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableEnhancedMonitoringError { - kind: crate::error::EnableEnhancedMonitoringErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableEnhancedMonitoringError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableEnhancedMonitoringError { - kind: - crate::error::EnableEnhancedMonitoringErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableEnhancedMonitoringError::unhandled(e), - }, - _ => crate::error::EnableEnhancedMonitoringError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::enable_enhanced_monitoring_output::Builder::default(); - builder = crate::json_deser::enable_enhanced_monitoring_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -925,7 +398,11 @@ impl smithy_http::response::ParseStrictResponse for EnableEnhancedMonitoring { crate::error::EnableEnhancedMonitoringError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_enhanced_monitoring_error(response) + } else { + crate::operation_deser::parse_enable_enhanced_monitoring_response(response) + } } } @@ -984,102 +461,6 @@ impl GetRecords { pub fn builder() -> crate::input::get_records_input::Builder { crate::input::get_records_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetRecordsError::unhandled(generic)), - }; - return Err(match error_code { - "KMSAccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSAccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "KMSDisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSDisabledError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "KMSNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "ExpiredIteratorException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::ExpiredIteratorError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "KMSOptInRequired" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSOptInRequired(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "KMSThrottlingException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSThrottlingError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRecordsError { - kind: crate::error::GetRecordsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetRecordsError::unhandled(e), - }, - _ => crate::error::GetRecordsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_records_output::Builder::default(); - builder = crate::json_deser::get_records_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetRecordsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1088,7 +469,11 @@ impl smithy_http::response::ParseStrictResponse for GetRecords { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_records_error(response) + } else { + crate::operation_deser::parse_get_records_response(response) + } } } @@ -1135,48 +520,6 @@ impl GetShardIterator { pub fn builder() -> crate::input::get_shard_iterator_input::Builder { crate::input::get_shard_iterator_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetShardIteratorOutput, - crate::error::GetShardIteratorError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetShardIteratorError::unhandled(generic)), - }; - return Err(match error_code { - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetShardIteratorError { kind: crate::error::GetShardIteratorErrorKind::ProvisionedThroughputExceededError(body), meta: generic }, - Err(e) => crate::error::GetShardIteratorError::unhandled(e) - } - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetShardIteratorError { kind: crate::error::GetShardIteratorErrorKind::InvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::GetShardIteratorError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetShardIteratorError { kind: crate::error::GetShardIteratorErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::GetShardIteratorError::unhandled(e) - } - _ => crate::error::GetShardIteratorError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_shard_iterator_output::Builder::default(); - builder = crate::json_deser::get_shard_iterator_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetShardIteratorError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1187,7 +530,11 @@ impl smithy_http::response::ParseStrictResponse for GetShardIterator { crate::error::GetShardIteratorError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_shard_iterator_error(response) + } else { + crate::operation_deser::parse_get_shard_iterator_response(response) + } } } @@ -1209,52 +556,6 @@ impl IncreaseStreamRetentionPeriod { pub fn builder() -> crate::input::increase_stream_retention_period_input::Builder { crate::input::increase_stream_retention_period_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::IncreaseStreamRetentionPeriodOutput, - crate::error::IncreaseStreamRetentionPeriodError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::IncreaseStreamRetentionPeriodError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::IncreaseStreamRetentionPeriodError { kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::IncreaseStreamRetentionPeriodError::unhandled(e) - } - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::IncreaseStreamRetentionPeriodError { kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceInUseError(body), meta: generic }, - Err(e) => crate::error::IncreaseStreamRetentionPeriodError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::IncreaseStreamRetentionPeriodError { kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::IncreaseStreamRetentionPeriodError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::IncreaseStreamRetentionPeriodError { kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::IncreaseStreamRetentionPeriodError::unhandled(e) - } - _ => crate::error::IncreaseStreamRetentionPeriodError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::increase_stream_retention_period_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1265,7 +566,11 @@ impl smithy_http::response::ParseStrictResponse for IncreaseStreamRetentionPerio crate::error::IncreaseStreamRetentionPeriodError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_increase_stream_retention_period_error(response) + } else { + crate::operation_deser::parse_increase_stream_retention_period_response(response) + } } } @@ -1287,65 +592,6 @@ impl ListShards { pub fn builder() -> crate::input::list_shards_input::Builder { crate::input::list_shards_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListShardsError::unhandled(generic)), - }; - return Err(match error_code { - "ExpiredNextTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListShardsError { - kind: crate::error::ListShardsErrorKind::ExpiredNextTokenError(body), - meta: generic, - }, - Err(e) => crate::error::ListShardsError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListShardsError { - kind: crate::error::ListShardsErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::ListShardsError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListShardsError { - kind: crate::error::ListShardsErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::ListShardsError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListShardsError { - kind: crate::error::ListShardsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ListShardsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListShardsError { - kind: crate::error::ListShardsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListShardsError::unhandled(e), - }, - _ => crate::error::ListShardsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_shards_output::Builder::default(); - builder = crate::json_deser::list_shards_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListShardsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1354,7 +600,11 @@ impl smithy_http::response::ParseStrictResponse for ListShards { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_shards_error(response) + } else { + crate::operation_deser::parse_list_shards_response(response) + } } } @@ -1370,77 +620,6 @@ impl ListStreamConsumers { pub fn builder() -> crate::input::list_stream_consumers_input::Builder { crate::input::list_stream_consumers_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListStreamConsumersOutput, - crate::error::ListStreamConsumersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListStreamConsumersError::unhandled(generic)), - }; - return Err(match error_code { - "ExpiredNextTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamConsumersError { - kind: crate::error::ListStreamConsumersErrorKind::ExpiredNextTokenError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListStreamConsumersError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamConsumersError { - kind: crate::error::ListStreamConsumersErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListStreamConsumersError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamConsumersError { - kind: crate::error::ListStreamConsumersErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::ListStreamConsumersError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamConsumersError { - kind: crate::error::ListStreamConsumersErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ListStreamConsumersError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamConsumersError { - kind: crate::error::ListStreamConsumersErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListStreamConsumersError::unhandled(e), - }, - _ => crate::error::ListStreamConsumersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_stream_consumers_output::Builder::default(); - builder = crate::json_deser::list_stream_consumers_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListStreamConsumersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1451,7 +630,11 @@ impl smithy_http::response::ParseStrictResponse for ListStreamConsumers { crate::error::ListStreamConsumersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_stream_consumers_error(response) + } else { + crate::operation_deser::parse_list_stream_consumers_response(response) + } } } @@ -1480,38 +663,6 @@ impl ListStreams { pub fn builder() -> crate::input::list_streams_input::Builder { crate::input::list_streams_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListStreamsError::unhandled(generic)), - }; - return Err(match error_code { - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListStreamsError { - kind: crate::error::ListStreamsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ListStreamsError::unhandled(e), - }, - _ => crate::error::ListStreamsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_streams_output::Builder::default(); - builder = - crate::json_deser::list_streams_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListStreamsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1520,7 +671,11 @@ impl smithy_http::response::ParseStrictResponse for ListStreams { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_streams_error(response) + } else { + crate::operation_deser::parse_list_streams_response(response) + } } } @@ -1535,57 +690,6 @@ impl ListTagsForStream { pub fn builder() -> crate::input::list_tags_for_stream_input::Builder { crate::input::list_tags_for_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTagsForStreamOutput, - crate::error::ListTagsForStreamError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTagsForStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForStreamError { - kind: crate::error::ListTagsForStreamErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForStreamError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForStreamError { - kind: crate::error::ListTagsForStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForStreamError { - kind: crate::error::ListTagsForStreamErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForStreamError::unhandled(e), - }, - _ => crate::error::ListTagsForStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_for_stream_output::Builder::default(); - builder = crate::json_deser::list_tags_for_stream_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTagsForStreamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1596,7 +700,11 @@ impl smithy_http::response::ParseStrictResponse for ListTagsForStream { crate::error::ListTagsForStreamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_stream_error(response) + } else { + crate::operation_deser::parse_list_tags_for_stream_response(response) + } } } @@ -1645,56 +753,6 @@ impl MergeShards { pub fn builder() -> crate::input::merge_shards_input::Builder { crate::input::merge_shards_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::MergeShardsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::MergeShardsError { - kind: crate::error::MergeShardsErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::MergeShardsError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::MergeShardsError { - kind: crate::error::MergeShardsErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::MergeShardsError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::MergeShardsError { - kind: crate::error::MergeShardsErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::MergeShardsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::MergeShardsError { - kind: crate::error::MergeShardsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::MergeShardsError::unhandled(e), - }, - _ => crate::error::MergeShardsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::merge_shards_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1703,7 +761,11 @@ impl smithy_http::response::ParseStrictResponse for MergeShards { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_merge_shards_error(response) + } else { + crate::operation_deser::parse_merge_shards_response(response) + } } } @@ -1752,95 +814,6 @@ impl PutRecord { pub fn builder() -> crate::input::put_record_input::Builder { crate::input::put_record_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutRecordError::unhandled(generic)), - }; - return Err(match error_code { - "KMSAccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSAccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "KMSDisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSDisabledError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "KMSNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "KMSOptInRequired" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSOptInRequired(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "KMSThrottlingException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSThrottlingError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordError { - kind: crate::error::PutRecordErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordError::unhandled(e), - }, - _ => crate::error::PutRecordError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_record_output::Builder::default(); - builder = crate::json_deser::put_record_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutRecordError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1848,7 +821,11 @@ impl PutRecord { impl smithy_http::response::ParseStrictResponse for PutRecord { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_record_error(response) + } else { + crate::operation_deser::parse_put_record_response(response) + } } } @@ -1917,95 +894,6 @@ impl PutRecords { pub fn builder() -> crate::input::put_records_input::Builder { crate::input::put_records_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutRecordsError::unhandled(generic)), - }; - return Err(match error_code { - "KMSAccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSAccessDeniedError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "KMSDisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSDisabledError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "KMSNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "KMSOptInRequired" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSOptInRequired(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "KMSThrottlingException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSThrottlingError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "ProvisionedThroughputExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::ProvisionedThroughputExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutRecordsError { - kind: crate::error::PutRecordsErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutRecordsError::unhandled(e), - }, - _ => crate::error::PutRecordsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_records_output::Builder::default(); - builder = crate::json_deser::put_records_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutRecordsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2014,7 +902,11 @@ impl smithy_http::response::ParseStrictResponse for PutRecords { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_records_error(response) + } else { + crate::operation_deser::parse_put_records_response(response) + } } } @@ -2041,76 +933,6 @@ impl RegisterStreamConsumer { pub fn builder() -> crate::input::register_stream_consumer_input::Builder { crate::input::register_stream_consumer_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterStreamConsumerOutput, - crate::error::RegisterStreamConsumerError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RegisterStreamConsumerError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterStreamConsumerError { - kind: crate::error::RegisterStreamConsumerErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterStreamConsumerError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterStreamConsumerError { - kind: crate::error::RegisterStreamConsumerErrorKind::ResourceInUseError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterStreamConsumerError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterStreamConsumerError { - kind: crate::error::RegisterStreamConsumerErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterStreamConsumerError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterStreamConsumerError { - kind: crate::error::RegisterStreamConsumerErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterStreamConsumerError::unhandled(e), - }, - _ => crate::error::RegisterStreamConsumerError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::register_stream_consumer_output::Builder::default(); - builder = crate::json_deser::register_stream_consumer_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2121,7 +943,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterStreamConsumer { crate::error::RegisterStreamConsumerError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_stream_consumer_error(response) + } else { + crate::operation_deser::parse_register_stream_consumer_response(response) + } } } @@ -2140,63 +966,6 @@ impl RemoveTagsFromStream { pub fn builder() -> crate::input::remove_tags_from_stream_input::Builder { crate::input::remove_tags_from_stream_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RemoveTagsFromStreamOutput, - crate::error::RemoveTagsFromStreamError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RemoveTagsFromStreamError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromStreamError { - kind: crate::error::RemoveTagsFromStreamErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromStreamError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromStreamError { - kind: crate::error::RemoveTagsFromStreamErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromStreamError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromStreamError { - kind: crate::error::RemoveTagsFromStreamErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromStreamError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromStreamError { - kind: crate::error::RemoveTagsFromStreamErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromStreamError::unhandled(e), - }, - _ => crate::error::RemoveTagsFromStreamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::remove_tags_from_stream_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2207,7 +976,11 @@ impl smithy_http::response::ParseStrictResponse for RemoveTagsFromStream { crate::error::RemoveTagsFromStreamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_remove_tags_from_stream_error(response) + } else { + crate::operation_deser::parse_remove_tags_from_stream_response(response) + } } } @@ -2262,56 +1035,6 @@ impl SplitShard { pub fn builder() -> crate::input::split_shard_input::Builder { crate::input::split_shard_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SplitShardError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SplitShardError { - kind: crate::error::SplitShardErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::SplitShardError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SplitShardError { - kind: crate::error::SplitShardErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::SplitShardError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SplitShardError { - kind: crate::error::SplitShardErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::SplitShardError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SplitShardError { - kind: crate::error::SplitShardErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::SplitShardError::unhandled(e), - }, - _ => crate::error::SplitShardError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::split_shard_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2320,7 +1043,11 @@ impl smithy_http::response::ParseStrictResponse for SplitShard { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_split_shard_error(response) + } else { + crate::operation_deser::parse_split_shard_response(response) + } } } @@ -2349,115 +1076,6 @@ impl StartStreamEncryption { pub fn builder() -> crate::input::start_stream_encryption_input::Builder { crate::input::start_stream_encryption_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartStreamEncryptionOutput, - crate::error::StartStreamEncryptionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartStreamEncryptionError::unhandled(generic)), - }; - return Err(match error_code { - "KMSAccessDeniedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSAccessDeniedError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "KMSDisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSDisabledError(body), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "KMSNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "KMSOptInRequired" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSOptInRequired(body), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "KMSThrottlingException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSThrottlingError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::ResourceInUseError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartStreamEncryptionError { - kind: crate::error::StartStreamEncryptionErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartStreamEncryptionError::unhandled(e), - }, - _ => crate::error::StartStreamEncryptionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_stream_encryption_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2468,7 +1086,11 @@ impl smithy_http::response::ParseStrictResponse for StartStreamEncryption { crate::error::StartStreamEncryptionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_stream_encryption_error(response) + } else { + crate::operation_deser::parse_start_stream_encryption_response(response) + } } } @@ -2497,63 +1119,6 @@ impl StopStreamEncryption { pub fn builder() -> crate::input::stop_stream_encryption_input::Builder { crate::input::stop_stream_encryption_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopStreamEncryptionOutput, - crate::error::StopStreamEncryptionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopStreamEncryptionError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopStreamEncryptionError { - kind: crate::error::StopStreamEncryptionErrorKind::InvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopStreamEncryptionError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopStreamEncryptionError { - kind: crate::error::StopStreamEncryptionErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::StopStreamEncryptionError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopStreamEncryptionError { - kind: crate::error::StopStreamEncryptionErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::StopStreamEncryptionError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopStreamEncryptionError { - kind: crate::error::StopStreamEncryptionErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopStreamEncryptionError::unhandled(e), - }, - _ => crate::error::StopStreamEncryptionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_stream_encryption_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2564,7 +1129,11 @@ impl smithy_http::response::ParseStrictResponse for StopStreamEncryption { crate::error::StopStreamEncryptionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_stream_encryption_error(response) + } else { + crate::operation_deser::parse_stop_stream_encryption_response(response) + } } } @@ -2621,64 +1190,6 @@ impl UpdateShardCount { pub fn builder() -> crate::input::update_shard_count_input::Builder { crate::input::update_shard_count_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateShardCountOutput, - crate::error::UpdateShardCountError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateShardCountError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateShardCountError { - kind: crate::error::UpdateShardCountErrorKind::InvalidArgumentError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateShardCountError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateShardCountError { - kind: crate::error::UpdateShardCountErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateShardCountError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateShardCountError { - kind: crate::error::UpdateShardCountErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateShardCountError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateShardCountError { - kind: crate::error::UpdateShardCountErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateShardCountError::unhandled(e), - }, - _ => crate::error::UpdateShardCountError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_shard_count_output::Builder::default(); - builder = crate::json_deser::update_shard_count_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateShardCountError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2689,6 +1200,10 @@ impl smithy_http::response::ParseStrictResponse for UpdateShardCount { crate::error::UpdateShardCountError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_shard_count_error(response) + } else { + crate::operation_deser::parse_update_shard_count_response(response) + } } } diff --git a/sdk/kinesis/src/operation_deser.rs b/sdk/kinesis/src/operation_deser.rs new file mode 100644 index 000000000000..68d16ab76d3d --- /dev/null +++ b/sdk/kinesis/src/operation_deser.rs @@ -0,0 +1,2510 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_to_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AddTagsToStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::AddTagsToStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::AddTagsToStreamError { + meta: generic, + kind: crate::error::AddTagsToStreamErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToStreamError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::AddTagsToStreamError { + meta: generic, + kind: crate::error::AddTagsToStreamErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToStreamError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::AddTagsToStreamError { + meta: generic, + kind: crate::error::AddTagsToStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::AddTagsToStreamError { + meta: generic, + kind: crate::error::AddTagsToStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AddTagsToStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_to_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::add_tags_to_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::CreateStreamError { + meta: generic, + kind: crate::error::CreateStreamErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStreamError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::CreateStreamError { + meta: generic, + kind: crate::error::CreateStreamErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStreamError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateStreamError { + meta: generic, + kind: crate::error::CreateStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_decrease_stream_retention_period_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DecreaseStreamRetentionPeriodOutput, + crate::error::DecreaseStreamRetentionPeriodError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DecreaseStreamRetentionPeriodError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DecreaseStreamRetentionPeriodError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::DecreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DecreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DecreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::DecreaseStreamRetentionPeriodErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => { + crate::error::DecreaseStreamRetentionPeriodError { + meta: generic, + kind: + crate::error::DecreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DecreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DecreaseStreamRetentionPeriodError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_decrease_stream_retention_period_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DecreaseStreamRetentionPeriodOutput, + crate::error::DecreaseStreamRetentionPeriodError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::decrease_stream_retention_period_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteStreamError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUseException" => crate::error::DeleteStreamError { + meta: generic, + kind: crate::error::DeleteStreamErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStreamError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DeleteStreamError { + meta: generic, + kind: crate::error::DeleteStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteStreamError { + meta: generic, + kind: crate::error::DeleteStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_stream_consumer_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterStreamConsumerOutput, + crate::error::DeregisterStreamConsumerError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterStreamConsumerError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterStreamConsumerError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::DeregisterStreamConsumerError { + meta: generic, + kind: crate::error::DeregisterStreamConsumerErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DeregisterStreamConsumerError { + meta: generic, + kind: crate::error::DeregisterStreamConsumerErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeregisterStreamConsumerError { + meta: generic, + kind: crate::error::DeregisterStreamConsumerErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeregisterStreamConsumerError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_stream_consumer_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterStreamConsumerOutput, + crate::error::DeregisterStreamConsumerError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::deregister_stream_consumer_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_limits_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeLimitsError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededException" => crate::error::DescribeLimitsError { + meta: generic, + kind: crate::error::DescribeLimitsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeLimitsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_limits_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_limits_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_limits(response.body().as_ref(), output) + .map_err(crate::error::DescribeLimitsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeStreamError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededException" => crate::error::DescribeStreamError { + meta: generic, + kind: crate::error::DescribeStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeStreamError { + meta: generic, + kind: crate::error::DescribeStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_stream_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_stream(response.body().as_ref(), output) + .map_err(crate::error::DescribeStreamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_consumer_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeStreamConsumerOutput, + crate::error::DescribeStreamConsumerError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeStreamConsumerError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::DescribeStreamConsumerError { + meta: generic, + kind: crate::error::DescribeStreamConsumerErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DescribeStreamConsumerError { + meta: generic, + kind: crate::error::DescribeStreamConsumerErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeStreamConsumerError { + meta: generic, + kind: crate::error::DescribeStreamConsumerErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeStreamConsumerError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_consumer_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeStreamConsumerOutput, + crate::error::DescribeStreamConsumerError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_stream_consumer_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_stream_consumer( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamConsumerError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_summary_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeStreamSummaryOutput, + crate::error::DescribeStreamSummaryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeStreamSummaryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeStreamSummaryError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededException" => crate::error::DescribeStreamSummaryError { + meta: generic, + kind: crate::error::DescribeStreamSummaryErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamSummaryError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeStreamSummaryError { + meta: generic, + kind: crate::error::DescribeStreamSummaryErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamSummaryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeStreamSummaryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_stream_summary_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeStreamSummaryOutput, + crate::error::DescribeStreamSummaryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_stream_summary_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_stream_summary( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeStreamSummaryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_enhanced_monitoring_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableEnhancedMonitoringOutput, + crate::error::DisableEnhancedMonitoringError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DisableEnhancedMonitoringError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::DisableEnhancedMonitoringError { + meta: generic, + kind: crate::error::DisableEnhancedMonitoringErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DisableEnhancedMonitoringError { + meta: generic, + kind: crate::error::DisableEnhancedMonitoringErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::DisableEnhancedMonitoringError { + meta: generic, + kind: crate::error::DisableEnhancedMonitoringErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DisableEnhancedMonitoringError { + meta: generic, + kind: crate::error::DisableEnhancedMonitoringErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisableEnhancedMonitoringError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_enhanced_monitoring_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableEnhancedMonitoringOutput, + crate::error::DisableEnhancedMonitoringError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disable_enhanced_monitoring_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_disable_enhanced_monitoring( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableEnhancedMonitoringError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_enhanced_monitoring_error( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableEnhancedMonitoringOutput, + crate::error::EnableEnhancedMonitoringError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::EnableEnhancedMonitoringError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::EnableEnhancedMonitoringError { + meta: generic, + kind: crate::error::EnableEnhancedMonitoringErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::EnableEnhancedMonitoringError { + meta: generic, + kind: crate::error::EnableEnhancedMonitoringErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::EnableEnhancedMonitoringError { + meta: generic, + kind: crate::error::EnableEnhancedMonitoringErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::EnableEnhancedMonitoringError { + meta: generic, + kind: crate::error::EnableEnhancedMonitoringErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + output.build() + }), + }, + _ => crate::error::EnableEnhancedMonitoringError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_enhanced_monitoring_response( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableEnhancedMonitoringOutput, + crate::error::EnableEnhancedMonitoringError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::enable_enhanced_monitoring_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_enable_enhanced_monitoring( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableEnhancedMonitoringError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_records_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetRecordsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetRecordsError::unhandled(generic)), + }; + Err(match error_code { + "KMSAccessDeniedException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsAccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "KMSDisabledException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsDisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "KMSNotFoundException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "ExpiredIteratorException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::ExpiredIteratorException({ + #[allow(unused_mut)] + let mut output = crate::error::expired_iterator_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_expired_iterator_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "KMSOptInRequired" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsOptInRequired({ + #[allow(unused_mut)] + let mut output = crate::error::kms_opt_in_required::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_opt_in_requiredjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "KMSThrottlingException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsThrottlingException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_throttling_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetRecordsError { + meta: generic, + kind: crate::error::GetRecordsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetRecordsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_records_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_records_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_records(response.body().as_ref(), output) + .map_err(crate::error::GetRecordsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_shard_iterator_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetShardIteratorError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetShardIteratorError::unhandled(generic)), + }; + Err(match error_code { + "ProvisionedThroughputExceededException" => crate::error::GetShardIteratorError { + meta: generic, + kind: crate::error::GetShardIteratorErrorKind::ProvisionedThroughputExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetShardIteratorError::unhandled)?; + output.build() + }, + ), + }, + "InvalidArgumentException" => crate::error::GetShardIteratorError { + meta: generic, + kind: crate::error::GetShardIteratorErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetShardIteratorError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetShardIteratorError { + meta: generic, + kind: crate::error::GetShardIteratorErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetShardIteratorError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetShardIteratorError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_shard_iterator_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_shard_iterator_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_shard_iterator(response.body().as_ref(), output) + .map_err(crate::error::GetShardIteratorError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_increase_stream_retention_period_error( + response: &http::Response, +) -> std::result::Result< + crate::output::IncreaseStreamRetentionPeriodOutput, + crate::error::IncreaseStreamRetentionPeriodError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::IncreaseStreamRetentionPeriodError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::IncreaseStreamRetentionPeriodError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::IncreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::IncreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::IncreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::IncreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::IncreaseStreamRetentionPeriodError { + meta: generic, + kind: crate::error::IncreaseStreamRetentionPeriodErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::IncreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => { + crate::error::IncreaseStreamRetentionPeriodError { + meta: generic, + kind: + crate::error::IncreaseStreamRetentionPeriodErrorKind::ResourceNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::IncreaseStreamRetentionPeriodError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::IncreaseStreamRetentionPeriodError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_increase_stream_retention_period_response( + response: &http::Response, +) -> std::result::Result< + crate::output::IncreaseStreamRetentionPeriodOutput, + crate::error::IncreaseStreamRetentionPeriodError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::increase_stream_retention_period_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_shards_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListShardsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListShardsError::unhandled(generic)), + }; + Err(match error_code { + "ExpiredNextTokenException" => crate::error::ListShardsError { + meta: generic, + kind: crate::error::ListShardsErrorKind::ExpiredNextTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::expired_next_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_expired_next_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::ListShardsError { + meta: generic, + kind: crate::error::ListShardsErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::ListShardsError { + meta: generic, + kind: crate::error::ListShardsErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::ListShardsError { + meta: generic, + kind: crate::error::ListShardsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListShardsError { + meta: generic, + kind: crate::error::ListShardsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListShardsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_shards_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_shards_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_shards(response.body().as_ref(), output) + .map_err(crate::error::ListShardsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_stream_consumers_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListStreamConsumersOutput, + crate::error::ListStreamConsumersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListStreamConsumersError::unhandled(generic)), + }; + Err(match error_code { + "ExpiredNextTokenException" => crate::error::ListStreamConsumersError { + meta: generic, + kind: crate::error::ListStreamConsumersErrorKind::ExpiredNextTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::expired_next_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_expired_next_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::ListStreamConsumersError { + meta: generic, + kind: crate::error::ListStreamConsumersErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::ListStreamConsumersError { + meta: generic, + kind: crate::error::ListStreamConsumersErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::ListStreamConsumersError { + meta: generic, + kind: crate::error::ListStreamConsumersErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListStreamConsumersError { + meta: generic, + kind: crate::error::ListStreamConsumersErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListStreamConsumersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_stream_consumers_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListStreamConsumersOutput, + crate::error::ListStreamConsumersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_stream_consumers_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_stream_consumers( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamConsumersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_streams_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListStreamsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListStreamsError::unhandled(generic)), + }; + Err(match error_code { + "LimitExceededException" => crate::error::ListStreamsError { + meta: generic, + kind: crate::error::ListStreamsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListStreamsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListStreamsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_streams_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_streams_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_streams(response.body().as_ref(), output) + .map_err(crate::error::ListStreamsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_stream_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::ListTagsForStreamError { + meta: generic, + kind: crate::error::ListTagsForStreamErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForStreamError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::ListTagsForStreamError { + meta: generic, + kind: crate::error::ListTagsForStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListTagsForStreamError { + meta: generic, + kind: crate::error::ListTagsForStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTagsForStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_stream_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_stream_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_for_stream( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForStreamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_merge_shards_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::MergeShardsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::MergeShardsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::MergeShardsError { + meta: generic, + kind: crate::error::MergeShardsErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::MergeShardsError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::MergeShardsError { + meta: generic, + kind: crate::error::MergeShardsErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::MergeShardsError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::MergeShardsError { + meta: generic, + kind: crate::error::MergeShardsErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::MergeShardsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::MergeShardsError { + meta: generic, + kind: crate::error::MergeShardsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::MergeShardsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::MergeShardsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_merge_shards_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::merge_shards_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_record_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutRecordError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutRecordError::unhandled(generic)), + }; + Err(match error_code { + "KMSAccessDeniedException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsAccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "KMSDisabledException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsDisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "KMSNotFoundException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "KMSOptInRequired" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsOptInRequired({ + #[allow(unused_mut)] + let mut output = crate::error::kms_opt_in_required::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_opt_in_requiredjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "KMSThrottlingException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsThrottlingException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_throttling_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutRecordError { + meta: generic, + kind: crate::error::PutRecordErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutRecordError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_record_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_record_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_record(response.body().as_ref(), output) + .map_err(crate::error::PutRecordError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_records_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutRecordsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutRecordsError::unhandled(generic)), + }; + Err(match error_code { + "KMSAccessDeniedException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsAccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "KMSDisabledException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsDisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "KMSNotFoundException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "KMSOptInRequired" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsOptInRequired({ + #[allow(unused_mut)] + let mut output = crate::error::kms_opt_in_required::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_opt_in_requiredjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "KMSThrottlingException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsThrottlingException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_throttling_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "ProvisionedThroughputExceededException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::ProvisionedThroughputExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::provisioned_throughput_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_provisioned_throughput_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutRecordsError { + meta: generic, + kind: crate::error::PutRecordsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutRecordsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_records_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_records_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_records(response.body().as_ref(), output) + .map_err(crate::error::PutRecordsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_stream_consumer_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterStreamConsumerOutput, + crate::error::RegisterStreamConsumerError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterStreamConsumerError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::RegisterStreamConsumerError { + meta: generic, + kind: crate::error::RegisterStreamConsumerErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::RegisterStreamConsumerError { + meta: generic, + kind: crate::error::RegisterStreamConsumerErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::RegisterStreamConsumerError { + meta: generic, + kind: crate::error::RegisterStreamConsumerErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::RegisterStreamConsumerError { + meta: generic, + kind: crate::error::RegisterStreamConsumerErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RegisterStreamConsumerError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_stream_consumer_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterStreamConsumerOutput, + crate::error::RegisterStreamConsumerError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::register_stream_consumer_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_stream_consumer( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterStreamConsumerError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_tags_from_stream_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveTagsFromStreamOutput, + crate::error::RemoveTagsFromStreamError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RemoveTagsFromStreamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RemoveTagsFromStreamError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::RemoveTagsFromStreamError { + meta: generic, + kind: crate::error::RemoveTagsFromStreamErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromStreamError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::RemoveTagsFromStreamError { + meta: generic, + kind: crate::error::RemoveTagsFromStreamErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromStreamError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::RemoveTagsFromStreamError { + meta: generic, + kind: crate::error::RemoveTagsFromStreamErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromStreamError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::RemoveTagsFromStreamError { + meta: generic, + kind: crate::error::RemoveTagsFromStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromStreamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RemoveTagsFromStreamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_tags_from_stream_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveTagsFromStreamOutput, + crate::error::RemoveTagsFromStreamError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::remove_tags_from_stream_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_split_shard_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SplitShardError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SplitShardError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::SplitShardError { + meta: generic, + kind: crate::error::SplitShardErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SplitShardError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::SplitShardError { + meta: generic, + kind: crate::error::SplitShardErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SplitShardError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::SplitShardError { + meta: generic, + kind: crate::error::SplitShardErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SplitShardError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::SplitShardError { + meta: generic, + kind: crate::error::SplitShardErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SplitShardError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SplitShardError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_split_shard_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::split_shard_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_stream_encryption_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartStreamEncryptionOutput, + crate::error::StartStreamEncryptionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartStreamEncryptionError::unhandled(generic)), + }; + Err(match error_code { + "KMSAccessDeniedException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsAccessDeniedException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_access_denied_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "KMSDisabledException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsDisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "KMSNotFoundException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "KMSOptInRequired" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsOptInRequired({ + #[allow(unused_mut)] + let mut output = crate::error::kms_opt_in_required::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_opt_in_requiredjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "KMSThrottlingException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsThrottlingException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_throttling_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "InvalidArgumentException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::StartStreamEncryptionError { + meta: generic, + kind: crate::error::StartStreamEncryptionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartStreamEncryptionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartStreamEncryptionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_stream_encryption_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartStreamEncryptionOutput, + crate::error::StartStreamEncryptionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_stream_encryption_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_stream_encryption_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopStreamEncryptionOutput, + crate::error::StopStreamEncryptionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopStreamEncryptionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopStreamEncryptionError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::StopStreamEncryptionError { + meta: generic, + kind: crate::error::StopStreamEncryptionErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::StopStreamEncryptionError { + meta: generic, + kind: crate::error::StopStreamEncryptionErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::StopStreamEncryptionError { + meta: generic, + kind: crate::error::StopStreamEncryptionErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopStreamEncryptionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::StopStreamEncryptionError { + meta: generic, + kind: crate::error::StopStreamEncryptionErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopStreamEncryptionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopStreamEncryptionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_stream_encryption_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopStreamEncryptionOutput, + crate::error::StopStreamEncryptionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_stream_encryption_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_shard_count_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateShardCountError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArgumentException" => crate::error::UpdateShardCountError { + meta: generic, + kind: crate::error::UpdateShardCountErrorKind::InvalidArgumentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_argument_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::UpdateShardCountError { + meta: generic, + kind: crate::error::UpdateShardCountErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateShardCountError { + meta: generic, + kind: crate::error::UpdateShardCountErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateShardCountError { + meta: generic, + kind: crate::error::UpdateShardCountErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateShardCountError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_shard_count_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_shard_count_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_shard_count(response.body().as_ref(), output) + .map_err(crate::error::UpdateShardCountError::unhandled)?; + output.build() + }) +} diff --git a/sdk/kinesis/src/operation_ser.rs b/sdk/kinesis/src/operation_ser.rs index 70bac3f830d6..6b729ca5c81d 100644 --- a/sdk/kinesis/src/operation_ser.rs +++ b/sdk/kinesis/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_tags_to_stream( input: &crate::input::AddTagsToStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_tags_to_stream_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_add_tags_to_stream( pub fn serialize_operation_create_stream( input: &crate::input::CreateStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_stream_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_stream( pub fn serialize_operation_decrease_stream_retention_period( input: &crate::input::DecreaseStreamRetentionPeriodInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_decrease_stream_retention_period_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_decrease_stream_retention_period( pub fn serialize_operation_delete_stream( input: &crate::input::DeleteStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_stream_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_delete_stream( pub fn serialize_operation_deregister_stream_consumer( input: &crate::input::DeregisterStreamConsumerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_stream_consumer_input(&mut object, input); @@ -49,9 +49,15 @@ pub fn serialize_operation_deregister_stream_consumer( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_describe_limits( + _input: &crate::input::DescribeLimitsInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_describe_stream( input: &crate::input::DescribeStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_stream_input(&mut object, input); @@ -61,7 +67,7 @@ pub fn serialize_operation_describe_stream( pub fn serialize_operation_describe_stream_consumer( input: &crate::input::DescribeStreamConsumerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_stream_consumer_input(&mut object, input); @@ -71,7 +77,7 @@ pub fn serialize_operation_describe_stream_consumer( pub fn serialize_operation_describe_stream_summary( input: &crate::input::DescribeStreamSummaryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_stream_summary_input(&mut object, input); @@ -81,7 +87,7 @@ pub fn serialize_operation_describe_stream_summary( pub fn serialize_operation_disable_enhanced_monitoring( input: &crate::input::DisableEnhancedMonitoringInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disable_enhanced_monitoring_input(&mut object, input); @@ -91,7 +97,7 @@ pub fn serialize_operation_disable_enhanced_monitoring( pub fn serialize_operation_enable_enhanced_monitoring( input: &crate::input::EnableEnhancedMonitoringInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_enable_enhanced_monitoring_input(&mut object, input); @@ -101,7 +107,7 @@ pub fn serialize_operation_enable_enhanced_monitoring( pub fn serialize_operation_get_records( input: &crate::input::GetRecordsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_records_input(&mut object, input); @@ -111,7 +117,7 @@ pub fn serialize_operation_get_records( pub fn serialize_operation_get_shard_iterator( input: &crate::input::GetShardIteratorInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_shard_iterator_input(&mut object, input); @@ -121,7 +127,7 @@ pub fn serialize_operation_get_shard_iterator( pub fn serialize_operation_increase_stream_retention_period( input: &crate::input::IncreaseStreamRetentionPeriodInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_increase_stream_retention_period_input(&mut object, input); @@ -131,7 +137,7 @@ pub fn serialize_operation_increase_stream_retention_period( pub fn serialize_operation_list_shards( input: &crate::input::ListShardsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_shards_input(&mut object, input); @@ -141,7 +147,7 @@ pub fn serialize_operation_list_shards( pub fn serialize_operation_list_stream_consumers( input: &crate::input::ListStreamConsumersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_stream_consumers_input(&mut object, input); @@ -151,7 +157,7 @@ pub fn serialize_operation_list_stream_consumers( pub fn serialize_operation_list_streams( input: &crate::input::ListStreamsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_streams_input(&mut object, input); @@ -161,7 +167,7 @@ pub fn serialize_operation_list_streams( pub fn serialize_operation_list_tags_for_stream( input: &crate::input::ListTagsForStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_for_stream_input(&mut object, input); @@ -171,7 +177,7 @@ pub fn serialize_operation_list_tags_for_stream( pub fn serialize_operation_merge_shards( input: &crate::input::MergeShardsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_merge_shards_input(&mut object, input); @@ -181,7 +187,7 @@ pub fn serialize_operation_merge_shards( pub fn serialize_operation_put_record( input: &crate::input::PutRecordInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_record_input(&mut object, input); @@ -191,7 +197,7 @@ pub fn serialize_operation_put_record( pub fn serialize_operation_put_records( input: &crate::input::PutRecordsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_records_input(&mut object, input); @@ -201,7 +207,7 @@ pub fn serialize_operation_put_records( pub fn serialize_operation_register_stream_consumer( input: &crate::input::RegisterStreamConsumerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_stream_consumer_input(&mut object, input); @@ -211,7 +217,7 @@ pub fn serialize_operation_register_stream_consumer( pub fn serialize_operation_remove_tags_from_stream( input: &crate::input::RemoveTagsFromStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_remove_tags_from_stream_input(&mut object, input); @@ -221,7 +227,7 @@ pub fn serialize_operation_remove_tags_from_stream( pub fn serialize_operation_split_shard( input: &crate::input::SplitShardInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_split_shard_input(&mut object, input); @@ -231,7 +237,7 @@ pub fn serialize_operation_split_shard( pub fn serialize_operation_start_stream_encryption( input: &crate::input::StartStreamEncryptionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_stream_encryption_input(&mut object, input); @@ -241,7 +247,7 @@ pub fn serialize_operation_start_stream_encryption( pub fn serialize_operation_stop_stream_encryption( input: &crate::input::StopStreamEncryptionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_stream_encryption_input(&mut object, input); @@ -251,7 +257,7 @@ pub fn serialize_operation_stop_stream_encryption( pub fn serialize_operation_update_shard_count( input: &crate::input::UpdateShardCountInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_shard_count_input(&mut object, input); diff --git a/sdk/kinesis/src/serde_util.rs b/sdk/kinesis/src/serde_util.rs deleted file mode 100644 index 52f46e107033..000000000000 --- a/sdk/kinesis/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} - -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} diff --git a/sdk/kinesis/src/serializer.rs b/sdk/kinesis/src/serializer.rs deleted file mode 100644 index fe879fdbc51e..000000000000 --- a/sdk/kinesis/src/serializer.rs +++ /dev/null @@ -1,1298 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

    Represents the input for AddTagsToStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddTagsToStreamInputBody<'a> { - ///

    The name of the stream.

    - pub stream_name: &'a std::option::Option, - ///

    A set of up to 10 key-value pairs to use to create the tags.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for AddTagsToStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddTagsToStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents the input for CreateStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateStreamInputBody<'a> { - ///

    A name to identify the stream. The stream name is scoped to the AWS account used by - /// the application that creates the stream. It is also scoped by AWS Region. That is, two - /// streams in two different AWS accounts can have the same name. Two streams in the same - /// AWS account but in two different Regions can also have the same name.

    - pub stream_name: &'a std::option::Option, - ///

    The number of shards that the stream will use. The throughput of the stream is a - /// function of the number of shards; more shards are required for greater provisioned - /// throughput.

    - pub shard_count: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_count", &self.shard_count); - formatter.finish() - } -} - -///

    Represents the input for DecreaseStreamRetentionPeriod.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DecreaseStreamRetentionPeriodInputBody<'a> { - ///

    The name of the stream to modify.

    - pub stream_name: &'a std::option::Option, - ///

    The new retention period of the stream, in hours. Must be less than the current - /// retention period.

    - pub retention_period_hours: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DecreaseStreamRetentionPeriodInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DecreaseStreamRetentionPeriodInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("retention_period_hours", &self.retention_period_hours); - formatter.finish() - } -} - -///

    Represents the input for DeleteStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteStreamInputBody<'a> { - ///

    The name of the stream to delete.

    - pub stream_name: &'a std::option::Option, - ///

    If this parameter is unset (null) or if you set it to false, - /// and the stream has registered consumers, the call to DeleteStream fails - /// with a ResourceInUseException.

    - pub enforce_consumer_deletion: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("enforce_consumer_deletion", &self.enforce_consumer_deletion); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterStreamConsumerInputBody<'a> { - ///

    The ARN of the Kinesis data stream that the consumer is registered with. For more - /// information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    - pub stream_arn: &'a std::option::Option, - ///

    The name that you gave to the consumer.

    - pub consumer_name: &'a std::option::Option, - ///

    The ARN returned by Kinesis Data Streams when you registered the consumer. If you - /// don't know the ARN of the consumer that you want to deregister, you can use the - /// ListStreamConsumers operation to get a list of the descriptions of all the consumers - /// that are currently registered with a given data stream. The description of a consumer - /// contains its ARN.

    - pub consumer_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterStreamConsumerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterStreamConsumerInputBody"); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("consumer_name", &self.consumer_name); - formatter.field("consumer_arn", &self.consumer_arn); - formatter.finish() - } -} - -///

    Represents the input for DescribeStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamInputBody<'a> { - ///

    The name of the stream to describe.

    - pub stream_name: &'a std::option::Option, - ///

    The maximum number of shards to return in a single call. The default value is 100. - /// If you specify a value greater than 100, at most 100 shards are returned.

    - pub limit: &'a std::option::Option, - ///

    The shard ID of the shard to start with.

    - pub exclusive_start_shard_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("limit", &self.limit); - formatter.field("exclusive_start_shard_id", &self.exclusive_start_shard_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamConsumerInputBody<'a> { - ///

    The ARN of the Kinesis data stream that the consumer is registered with. For more - /// information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    - pub stream_arn: &'a std::option::Option, - ///

    The name that you gave to the consumer.

    - pub consumer_name: &'a std::option::Option, - ///

    The ARN returned by Kinesis Data Streams when you registered the consumer.

    - pub consumer_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeStreamConsumerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamConsumerInputBody"); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("consumer_name", &self.consumer_name); - formatter.field("consumer_arn", &self.consumer_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamSummaryInputBody<'a> { - ///

    The name of the stream to describe.

    - pub stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeStreamSummaryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamSummaryInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.finish() - } -} - -///

    Represents the input for DisableEnhancedMonitoring.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableEnhancedMonitoringInputBody<'a> { - ///

    The name of the Kinesis data stream for which to disable enhanced - /// monitoring.

    - pub stream_name: &'a std::option::Option, - ///

    List of shard-level metrics to disable.

    - ///

    The following are the valid shard-level metrics. The value "ALL" - /// disables every metric.

    - ///
      - ///
    • - ///

      - /// IncomingBytes - ///

      - ///
    • - ///
    • - ///

      - /// IncomingRecords - ///

      - ///
    • - ///
    • - ///

      - /// OutgoingBytes - ///

      - ///
    • - ///
    • - ///

      - /// OutgoingRecords - ///

      - ///
    • - ///
    • - ///

      - /// WriteProvisionedThroughputExceeded - ///

      - ///
    • - ///
    • - ///

      - /// ReadProvisionedThroughputExceeded - ///

      - ///
    • - ///
    • - ///

      - /// IteratorAgeMilliseconds - ///

      - ///
    • - ///
    • - ///

      - /// ALL - ///

      - ///
    • - ///
    - ///

    For more information, see Monitoring the Amazon - /// Kinesis Data Streams Service with Amazon CloudWatch in the Amazon - /// Kinesis Data Streams Developer Guide.

    - pub shard_level_metrics: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DisableEnhancedMonitoringInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableEnhancedMonitoringInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_level_metrics", &self.shard_level_metrics); - formatter.finish() - } -} - -///

    Represents the input for EnableEnhancedMonitoring.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableEnhancedMonitoringInputBody<'a> { - ///

    The name of the stream for which to enable enhanced monitoring.

    - pub stream_name: &'a std::option::Option, - ///

    List of shard-level metrics to enable.

    - ///

    The following are the valid shard-level metrics. The value "ALL" - /// enables every metric.

    - ///
      - ///
    • - ///

      - /// IncomingBytes - ///

      - ///
    • - ///
    • - ///

      - /// IncomingRecords - ///

      - ///
    • - ///
    • - ///

      - /// OutgoingBytes - ///

      - ///
    • - ///
    • - ///

      - /// OutgoingRecords - ///

      - ///
    • - ///
    • - ///

      - /// WriteProvisionedThroughputExceeded - ///

      - ///
    • - ///
    • - ///

      - /// ReadProvisionedThroughputExceeded - ///

      - ///
    • - ///
    • - ///

      - /// IteratorAgeMilliseconds - ///

      - ///
    • - ///
    • - ///

      - /// ALL - ///

      - ///
    • - ///
    - ///

    For more information, see Monitoring the Amazon - /// Kinesis Data Streams Service with Amazon CloudWatch in the Amazon - /// Kinesis Data Streams Developer Guide.

    - pub shard_level_metrics: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for EnableEnhancedMonitoringInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableEnhancedMonitoringInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_level_metrics", &self.shard_level_metrics); - formatter.finish() - } -} - -///

    Represents the input for GetRecords.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRecordsInputBody<'a> { - ///

    The position in the shard from which you want to start sequentially reading data - /// records. A shard iterator specifies this position using the sequence number of a data - /// record in the shard.

    - pub shard_iterator: &'a std::option::Option, - ///

    The maximum number of records to return. Specify a value of up to 10,000. If you - /// specify a value that is greater than 10,000, GetRecords throws - /// InvalidArgumentException. The default value is 10,000.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetRecordsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRecordsInputBody"); - formatter.field("shard_iterator", &self.shard_iterator); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -///

    Represents the input for GetShardIterator.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetShardIteratorInputBody<'a> { - ///

    The name of the Amazon Kinesis data stream.

    - pub stream_name: &'a std::option::Option, - ///

    The shard ID of the Kinesis Data Streams shard to get the iterator for.

    - pub shard_id: &'a std::option::Option, - ///

    Determines how the shard iterator is used to start reading data records from the - /// shard.

    - ///

    The following are the valid Amazon Kinesis shard iterator types:

    - ///
      - ///
    • - ///

      AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific - /// sequence number, provided in the value - /// StartingSequenceNumber.

      - ///
    • - ///
    • - ///

      AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a - /// specific sequence number, provided in the value - /// StartingSequenceNumber.

      - ///
    • - ///
    • - ///

      AT_TIMESTAMP - Start reading from the position denoted by a specific time - /// stamp, provided in the value Timestamp.

      - ///
    • - ///
    • - ///

      TRIM_HORIZON - Start reading at the last untrimmed record in the shard in - /// the system, which is the oldest data record in the shard.

      - ///
    • - ///
    • - ///

      LATEST - Start reading just after the most recent record in the shard, so - /// that you always read the most recent data in the shard.

      - ///
    • - ///
    - pub shard_iterator_type: &'a std::option::Option, - ///

    The sequence number of the data record in the shard from which to start reading. - /// Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.

    - pub starting_sequence_number: &'a std::option::Option, - ///

    The time stamp of the data record from which to start reading. Used with shard - /// iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in - /// milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or - /// 1459799926.480. If a record with this exact time stamp does not exist, - /// the iterator returned is for the next (later) record. If the time stamp is older than - /// the current trim horizon, the iterator returned is for the oldest untrimmed data record - /// (TRIM_HORIZON).

    - pub timestamp: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetShardIteratorInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetShardIteratorInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_id", &self.shard_id); - formatter.field("shard_iterator_type", &self.shard_iterator_type); - formatter.field("starting_sequence_number", &self.starting_sequence_number); - formatter.field("timestamp", &self.timestamp); - formatter.finish() - } -} - -///

    Represents the input for IncreaseStreamRetentionPeriod.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IncreaseStreamRetentionPeriodInputBody<'a> { - ///

    The name of the stream to modify.

    - pub stream_name: &'a std::option::Option, - ///

    The new retention period of the stream, in hours. Must be more than the current - /// retention period.

    - pub retention_period_hours: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for IncreaseStreamRetentionPeriodInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IncreaseStreamRetentionPeriodInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("retention_period_hours", &self.retention_period_hours); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListShardsInputBody<'a> { - ///

    The name of the data stream whose shards you want to list.

    - ///

    You cannot specify this parameter if you specify the NextToken - /// parameter.

    - pub stream_name: &'a std::option::Option, - ///

    When the number of shards in the data stream is greater than the default value for - /// the MaxResults parameter, or if you explicitly specify a value for - /// MaxResults that is less than the number of shards in the data stream, - /// the response includes a pagination token named NextToken. You can specify - /// this NextToken value in a subsequent call to ListShards to - /// list the next set of shards.

    - ///

    Don't specify StreamName or StreamCreationTimestamp if - /// you specify NextToken because the latter unambiguously identifies the - /// stream.

    - ///

    You can optionally specify a value for the MaxResults parameter when - /// you specify NextToken. If you specify a MaxResults value that - /// is less than the number of shards that the operation returns if you don't specify - /// MaxResults, the response will contain a new NextToken - /// value. You can use the new NextToken value in a subsequent call to the - /// ListShards operation.

    - /// - ///

    Tokens expire after 300 seconds. When you obtain a value for - /// NextToken in the response to a call to ListShards, you - /// have 300 seconds to use that value. If you specify an expired token in a call to - /// ListShards, you get - /// ExpiredNextTokenException.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    Specify this parameter to indicate that you want to list the shards starting with - /// the shard whose ID immediately follows ExclusiveStartShardId.

    - ///

    If you don't specify this parameter, the default behavior is for - /// ListShards to list the shards starting with the first one in the - /// stream.

    - ///

    You cannot specify this parameter if you specify NextToken.

    - pub exclusive_start_shard_id: &'a std::option::Option, - ///

    The maximum number of shards to return in a single call to ListShards. - /// The minimum value you can specify for this parameter is 1, and the maximum is 10,000, - /// which is also the default.

    - ///

    When the number of shards to be listed is greater than the value of - /// MaxResults, the response contains a NextToken value that - /// you can use in a subsequent call to ListShards to list the next set of - /// shards.

    - pub max_results: &'a std::option::Option, - ///

    Specify this input parameter to distinguish data streams that have the same name. - /// For example, if you create a data stream and then delete it, and you later create - /// another data stream with the same name, you can use this input parameter to specify - /// which of the two streams you want to list the shards for.

    - ///

    You cannot specify this parameter if you specify the NextToken - /// parameter.

    - pub stream_creation_timestamp: &'a std::option::Option, - pub shard_filter: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListShardsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListShardsInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("next_token", &self.next_token); - formatter.field("exclusive_start_shard_id", &self.exclusive_start_shard_id); - formatter.field("max_results", &self.max_results); - formatter.field("stream_creation_timestamp", &self.stream_creation_timestamp); - formatter.field("shard_filter", &self.shard_filter); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListStreamConsumersInputBody<'a> { - ///

    The ARN of the Kinesis data stream for which you want to list the registered - /// consumers. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    - pub stream_arn: &'a std::option::Option, - ///

    When the number of consumers that are registered with the data stream is greater than - /// the default value for the MaxResults parameter, or if you explicitly - /// specify a value for MaxResults that is less than the number of consumers - /// that are registered with the data stream, the response includes a pagination token named - /// NextToken. You can specify this NextToken value in a - /// subsequent call to ListStreamConsumers to list the next set of registered - /// consumers.

    - ///

    Don't specify StreamName or StreamCreationTimestamp if you - /// specify NextToken because the latter unambiguously identifies the - /// stream.

    - ///

    You can optionally specify a value for the MaxResults parameter when you - /// specify NextToken. If you specify a MaxResults value that is - /// less than the number of consumers that the operation returns if you don't specify - /// MaxResults, the response will contain a new NextToken - /// value. You can use the new NextToken value in a subsequent call to the - /// ListStreamConsumers operation to list the next set of consumers.

    - /// - ///

    Tokens expire after 300 seconds. When you obtain a value for - /// NextToken in the response to a call to - /// ListStreamConsumers, you have 300 seconds to use that value. If you - /// specify an expired token in a call to ListStreamConsumers, you get - /// ExpiredNextTokenException.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of consumers that you want a single call of - /// ListStreamConsumers to return.

    - pub max_results: &'a std::option::Option, - ///

    Specify this input parameter to distinguish data streams that have the same name. For - /// example, if you create a data stream and then delete it, and you later create another - /// data stream with the same name, you can use this input parameter to specify which of the - /// two streams you want to list the consumers for.

    - ///

    You can't specify this parameter if you specify the NextToken parameter.

    - pub stream_creation_timestamp: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListStreamConsumersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListStreamConsumersInputBody"); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("stream_creation_timestamp", &self.stream_creation_timestamp); - formatter.finish() - } -} - -///

    Represents the input for ListStreams.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListStreamsInputBody<'a> { - ///

    The maximum number of streams to list.

    - pub limit: &'a std::option::Option, - ///

    The name of the stream to start the list with.

    - pub exclusive_start_stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListStreamsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListStreamsInputBody"); - formatter.field("limit", &self.limit); - formatter.field( - "exclusive_start_stream_name", - &self.exclusive_start_stream_name, - ); - formatter.finish() - } -} - -///

    Represents the input for ListTagsForStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForStreamInputBody<'a> { - ///

    The name of the stream.

    - pub stream_name: &'a std::option::Option, - ///

    The key to use as the starting point for the list of tags. If this parameter is - /// set, ListTagsForStream gets all tags that occur after - /// ExclusiveStartTagKey.

    - pub exclusive_start_tag_key: &'a std::option::Option, - ///

    The number of tags to return. If this number is less than the total number of tags - /// associated with the stream, HasMoreTags is set to true. To - /// list additional tags, set ExclusiveStartTagKey to the last key in the - /// response.

    - pub limit: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsForStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("exclusive_start_tag_key", &self.exclusive_start_tag_key); - formatter.field("limit", &self.limit); - formatter.finish() - } -} - -///

    Represents the input for MergeShards.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct MergeShardsInputBody<'a> { - ///

    The name of the stream for the merge.

    - pub stream_name: &'a std::option::Option, - ///

    The shard ID of the shard to combine with the adjacent shard for the - /// merge.

    - pub shard_to_merge: &'a std::option::Option, - ///

    The shard ID of the adjacent shard for the merge.

    - pub adjacent_shard_to_merge: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for MergeShardsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MergeShardsInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_to_merge", &self.shard_to_merge); - formatter.field("adjacent_shard_to_merge", &self.adjacent_shard_to_merge); - formatter.finish() - } -} - -///

    Represents the input for PutRecord.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRecordInputBody<'a> { - ///

    The name of the stream to put the data record into.

    - pub stream_name: &'a std::option::Option, - ///

    The data blob to put into the record, which is base64-encoded when the blob is - /// serialized. When the data blob (the payload before base64-encoding) is added to the - /// partition key size, the total size must not exceed the maximum record size (1 - /// MiB).

    - pub data: &'a std::option::Option, - ///

    Determines which shard in the stream the data record is assigned to. Partition keys - /// are Unicode strings with a maximum length limit of 256 characters for each key. Amazon - /// Kinesis Data Streams uses the partition key as input to a hash function that maps the - /// partition key and associated data to a specific shard. Specifically, an MD5 hash - /// function is used to map partition keys to 128-bit integer values and to map associated - /// data records to shards. As a result of this hashing mechanism, all data records with the - /// same partition key map to the same shard within the stream.

    - pub partition_key: &'a std::option::Option, - ///

    The hash value used to explicitly determine the shard the data record is assigned - /// to by overriding the partition key hash.

    - pub explicit_hash_key: &'a std::option::Option, - ///

    Guarantees strictly increasing sequence numbers, for puts from the same client and - /// to the same partition key. Usage: set the SequenceNumberForOrdering of - /// record n to the sequence number of record n-1 - /// (as returned in the result when putting record n-1). If this - /// parameter is not set, records are coarsely ordered based on arrival time.

    - pub sequence_number_for_ordering: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutRecordInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRecordInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("data", &self.data); - formatter.field("partition_key", &self.partition_key); - formatter.field("explicit_hash_key", &self.explicit_hash_key); - formatter.field( - "sequence_number_for_ordering", - &self.sequence_number_for_ordering, - ); - formatter.finish() - } -} - -///

    A PutRecords request.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRecordsInputBody<'a> { - ///

    The records associated with the request.

    - pub records: &'a std::option::Option>, - ///

    The stream name associated with the request.

    - pub stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutRecordsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRecordsInputBody"); - formatter.field("records", &self.records); - formatter.field("stream_name", &self.stream_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterStreamConsumerInputBody<'a> { - ///

    The ARN of the Kinesis data stream that you want to register the consumer with. For - /// more info, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    - pub stream_arn: &'a std::option::Option, - ///

    For a given Kinesis data stream, each consumer must have a unique name. However, - /// consumer names don't have to be unique across data streams.

    - pub consumer_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterStreamConsumerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterStreamConsumerInputBody"); - formatter.field("stream_arn", &self.stream_arn); - formatter.field("consumer_name", &self.consumer_name); - formatter.finish() - } -} - -///

    Represents the input for RemoveTagsFromStream.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveTagsFromStreamInputBody<'a> { - ///

    The name of the stream.

    - pub stream_name: &'a std::option::Option, - ///

    A list of tag keys. Each corresponding tag is removed from the stream.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RemoveTagsFromStreamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveTagsFromStreamInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -///

    Represents the input for SplitShard.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SplitShardInputBody<'a> { - ///

    The name of the stream for the shard split.

    - pub stream_name: &'a std::option::Option, - ///

    The shard ID of the shard to split.

    - pub shard_to_split: &'a std::option::Option, - ///

    A hash key value for the starting hash key of one of the child shards created by - /// the split. The hash key range for a given shard constitutes a set of ordered contiguous - /// positive integers. The value for NewStartingHashKey must be in the range of - /// hash keys being mapped into the shard. The NewStartingHashKey hash key - /// value and all higher hash key values in hash key range are distributed to one of the - /// child shards. All the lower hash key values in the range are distributed to the other - /// child shard.

    - pub new_starting_hash_key: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SplitShardInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SplitShardInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("shard_to_split", &self.shard_to_split); - formatter.field("new_starting_hash_key", &self.new_starting_hash_key); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartStreamEncryptionInputBody<'a> { - ///

    The name of the stream for which to start encrypting records.

    - pub stream_name: &'a std::option::Option, - ///

    The encryption type to use. The only valid value is KMS.

    - pub encryption_type: &'a std::option::Option, - ///

    The GUID for the customer-managed AWS KMS key to use for encryption. This value can - /// be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either - /// an alias or a key, or an alias name prefixed by "alias/".You can also use a master key - /// owned by Kinesis Data Streams by specifying the alias - /// aws/kinesis.

    - ///
      - ///
    • - ///

      Key ARN example: - /// arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - ///

      - ///
    • - ///
    • - ///

      Alias ARN example: - /// arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - ///

      - ///
    • - ///
    • - ///

      Globally unique key ID example: - /// 12345678-1234-1234-1234-123456789012 - ///

      - ///
    • - ///
    • - ///

      Alias name example: alias/MyAliasName - ///

      - ///
    • - ///
    • - ///

      Master key owned by Kinesis Data Streams: - /// alias/aws/kinesis - ///

      - ///
    • - ///
    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartStreamEncryptionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartStreamEncryptionInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("encryption_type", &self.encryption_type); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopStreamEncryptionInputBody<'a> { - ///

    The name of the stream on which to stop encrypting records.

    - pub stream_name: &'a std::option::Option, - ///

    The encryption type. The only valid value is KMS.

    - pub encryption_type: &'a std::option::Option, - ///

    The GUID for the customer-managed AWS KMS key to use for encryption. This value can - /// be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either - /// an alias or a key, or an alias name prefixed by "alias/".You can also use a master key - /// owned by Kinesis Data Streams by specifying the alias - /// aws/kinesis.

    - ///
      - ///
    • - ///

      Key ARN example: - /// arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - ///

      - ///
    • - ///
    • - ///

      Alias ARN example: - /// arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - ///

      - ///
    • - ///
    • - ///

      Globally unique key ID example: - /// 12345678-1234-1234-1234-123456789012 - ///

      - ///
    • - ///
    • - ///

      Alias name example: alias/MyAliasName - ///

      - ///
    • - ///
    • - ///

      Master key owned by Kinesis Data Streams: - /// alias/aws/kinesis - ///

      - ///
    • - ///
    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopStreamEncryptionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopStreamEncryptionInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("encryption_type", &self.encryption_type); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateShardCountInputBody<'a> { - ///

    The name of the stream.

    - pub stream_name: &'a std::option::Option, - ///

    The new number of shards. This value has the following default limits. By default, - /// you cannot do the following:

    - ///
      - ///
    • - ///

      Set this value to more than double your current shard count for a - /// stream.

      - ///
    • - ///
    • - ///

      Set this value below half your current shard count for a stream.

      - ///
    • - ///
    • - ///

      Set this value to more than 500 shards in a stream (the default limit for - /// shard count per stream is 500 per account per region), unless you request a - /// limit increase.

      - ///
    • - ///
    • - ///

      Scale a stream with more than 500 shards down unless you set this value to - /// less than 500 shards.

      - ///
    • - ///
    - pub target_shard_count: &'a std::option::Option, - ///

    The scaling type. Uniform scaling creates shards of equal size.

    - pub scaling_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateShardCountInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateShardCountInputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("target_shard_count", &self.target_shard_count); - formatter.field("scaling_type", &self.scaling_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLimitsOutputBody { - ///

    The maximum number of shards.

    - #[serde(rename = "ShardLimit")] - #[serde(default)] - pub shard_limit: std::option::Option, - ///

    The number of open shards.

    - #[serde(rename = "OpenShardCount")] - #[serde(default)] - pub open_shard_count: std::option::Option, -} -impl std::fmt::Debug for DescribeLimitsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLimitsOutputBody"); - formatter.field("shard_limit", &self.shard_limit); - formatter.field("open_shard_count", &self.open_shard_count); - formatter.finish() - } -} - -///

    Represents the output for DescribeStream.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamOutputBody { - ///

    The current status of the stream, the stream Amazon Resource Name (ARN), an array - /// of shard objects that comprise the stream, and whether there are more shards - /// available.

    - #[serde(rename = "StreamDescription")] - #[serde(default)] - pub stream_description: std::option::Option, -} -impl std::fmt::Debug for DescribeStreamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamOutputBody"); - formatter.field("stream_description", &self.stream_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamConsumerOutputBody { - ///

    An object that represents the details of the consumer.

    - #[serde(rename = "ConsumerDescription")] - #[serde(default)] - pub consumer_description: std::option::Option, -} -impl std::fmt::Debug for DescribeStreamConsumerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamConsumerOutputBody"); - formatter.field("consumer_description", &self.consumer_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeStreamSummaryOutputBody { - ///

    A StreamDescriptionSummary containing information about the - /// stream.

    - #[serde(rename = "StreamDescriptionSummary")] - #[serde(default)] - pub stream_description_summary: std::option::Option, -} -impl std::fmt::Debug for DescribeStreamSummaryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeStreamSummaryOutputBody"); - formatter.field( - "stream_description_summary", - &self.stream_description_summary, - ); - formatter.finish() - } -} - -///

    Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableEnhancedMonitoringOutputBody { - ///

    The name of the Kinesis data stream.

    - #[serde(rename = "StreamName")] - #[serde(default)] - pub stream_name: std::option::Option, - ///

    Represents the current state of the metrics that are in the enhanced state before - /// the operation.

    - #[serde(rename = "CurrentShardLevelMetrics")] - #[serde(default)] - pub current_shard_level_metrics: std::option::Option>, - ///

    Represents the list of all the metrics that would be in the enhanced state after - /// the operation.

    - #[serde(rename = "DesiredShardLevelMetrics")] - #[serde(default)] - pub desired_shard_level_metrics: std::option::Option>, -} -impl std::fmt::Debug for DisableEnhancedMonitoringOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableEnhancedMonitoringOutputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field( - "current_shard_level_metrics", - &self.current_shard_level_metrics, - ); - formatter.field( - "desired_shard_level_metrics", - &self.desired_shard_level_metrics, - ); - formatter.finish() - } -} - -///

    Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableEnhancedMonitoringOutputBody { - ///

    The name of the Kinesis data stream.

    - #[serde(rename = "StreamName")] - #[serde(default)] - pub stream_name: std::option::Option, - ///

    Represents the current state of the metrics that are in the enhanced state before - /// the operation.

    - #[serde(rename = "CurrentShardLevelMetrics")] - #[serde(default)] - pub current_shard_level_metrics: std::option::Option>, - ///

    Represents the list of all the metrics that would be in the enhanced state after - /// the operation.

    - #[serde(rename = "DesiredShardLevelMetrics")] - #[serde(default)] - pub desired_shard_level_metrics: std::option::Option>, -} -impl std::fmt::Debug for EnableEnhancedMonitoringOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableEnhancedMonitoringOutputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field( - "current_shard_level_metrics", - &self.current_shard_level_metrics, - ); - formatter.field( - "desired_shard_level_metrics", - &self.desired_shard_level_metrics, - ); - formatter.finish() - } -} - -///

    Represents the output for GetRecords.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRecordsOutputBody { - ///

    The data records retrieved from the shard.

    - #[serde(rename = "Records")] - #[serde(default)] - pub records: std::option::Option>, - ///

    The next position in the shard from which to start sequentially reading data - /// records. If set to null, the shard has been closed and the requested - /// iterator does not return any more data.

    - #[serde(rename = "NextShardIterator")] - #[serde(default)] - pub next_shard_iterator: std::option::Option, - ///

    The number of milliseconds the GetRecords response is from the - /// tip of the stream, indicating how far behind current time the consumer is. A value of - /// zero indicates that record processing is caught up, and there are no new records to - /// process at this moment.

    - #[serde(rename = "MillisBehindLatest")] - #[serde(default)] - pub millis_behind_latest: std::option::Option, - #[serde(rename = "ChildShards")] - #[serde(default)] - pub child_shards: std::option::Option>, -} -impl std::fmt::Debug for GetRecordsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRecordsOutputBody"); - formatter.field("records", &self.records); - formatter.field("next_shard_iterator", &self.next_shard_iterator); - formatter.field("millis_behind_latest", &self.millis_behind_latest); - formatter.field("child_shards", &self.child_shards); - formatter.finish() - } -} - -///

    Represents the output for GetShardIterator.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetShardIteratorOutputBody { - ///

    The position in the shard from which to start reading data records sequentially. A - /// shard iterator specifies this position using the sequence number of a data record in a - /// shard.

    - #[serde(rename = "ShardIterator")] - #[serde(default)] - pub shard_iterator: std::option::Option, -} -impl std::fmt::Debug for GetShardIteratorOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetShardIteratorOutputBody"); - formatter.field("shard_iterator", &self.shard_iterator); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListShardsOutputBody { - ///

    An array of JSON objects. Each object represents one shard and specifies the IDs of - /// the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each - /// object also contains the starting and ending hash keys and the starting and ending - /// sequence numbers for the shard.

    - #[serde(rename = "Shards")] - #[serde(default)] - pub shards: std::option::Option>, - ///

    When the number of shards in the data stream is greater than the default value for - /// the MaxResults parameter, or if you explicitly specify a value for - /// MaxResults that is less than the number of shards in the data stream, - /// the response includes a pagination token named NextToken. You can specify - /// this NextToken value in a subsequent call to ListShards to - /// list the next set of shards. For more information about the use of this pagination token - /// when calling the ListShards operation, see ListShardsInput$NextToken.

    - /// - ///

    Tokens expire after 300 seconds. When you obtain a value for - /// NextToken in the response to a call to ListShards, you - /// have 300 seconds to use that value. If you specify an expired token in a call to - /// ListShards, you get - /// ExpiredNextTokenException.

    - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListShardsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListShardsOutputBody"); - formatter.field("shards", &self.shards); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListStreamConsumersOutputBody { - ///

    An array of JSON objects. Each object represents one registered consumer.

    - #[serde(rename = "Consumers")] - #[serde(default)] - pub consumers: std::option::Option>, - ///

    When the number of consumers that are registered with the data stream is greater than - /// the default value for the MaxResults parameter, or if you explicitly - /// specify a value for MaxResults that is less than the number of registered - /// consumers, the response includes a pagination token named NextToken. You - /// can specify this NextToken value in a subsequent call to - /// ListStreamConsumers to list the next set of registered consumers. For - /// more information about the use of this pagination token when calling the - /// ListStreamConsumers operation, see ListStreamConsumersInput$NextToken.

    - /// - ///

    Tokens expire after 300 seconds. When you obtain a value for - /// NextToken in the response to a call to - /// ListStreamConsumers, you have 300 seconds to use that value. If you - /// specify an expired token in a call to ListStreamConsumers, you get - /// ExpiredNextTokenException.

    - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListStreamConsumersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListStreamConsumersOutputBody"); - formatter.field("consumers", &self.consumers); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    Represents the output for ListStreams.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListStreamsOutputBody { - ///

    The names of the streams that are associated with the AWS account making the - /// ListStreams request.

    - #[serde(rename = "StreamNames")] - #[serde(default)] - pub stream_names: std::option::Option>, - ///

    If set to true, there are more streams available to list.

    - #[serde(rename = "HasMoreStreams")] - #[serde(default)] - pub has_more_streams: std::option::Option, -} -impl std::fmt::Debug for ListStreamsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListStreamsOutputBody"); - formatter.field("stream_names", &self.stream_names); - formatter.field("has_more_streams", &self.has_more_streams); - formatter.finish() - } -} - -///

    Represents the output for ListTagsForStream.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForStreamOutputBody { - ///

    A list of tags associated with StreamName, starting with the first tag - /// after ExclusiveStartTagKey and up to the specified Limit. - ///

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    If set to true, more tags are available. To request additional tags, - /// set ExclusiveStartTagKey to the key of the last tag returned.

    - #[serde(rename = "HasMoreTags")] - #[serde(default)] - pub has_more_tags: std::option::Option, -} -impl std::fmt::Debug for ListTagsForStreamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForStreamOutputBody"); - formatter.field("tags", &self.tags); - formatter.field("has_more_tags", &self.has_more_tags); - formatter.finish() - } -} - -///

    Represents the output for PutRecord.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRecordOutputBody { - ///

    The shard ID of the shard where the data record was placed.

    - #[serde(rename = "ShardId")] - #[serde(default)] - pub shard_id: std::option::Option, - ///

    The sequence number identifier that was assigned to the put data record. The - /// sequence number for the record is unique across all records in the stream. A sequence - /// number is the identifier associated with every record put into the stream.

    - #[serde(rename = "SequenceNumber")] - #[serde(default)] - pub sequence_number: std::option::Option, - ///

    The encryption type to use on the record. This parameter can be one of the - /// following values:

    - ///
      - ///
    • - ///

      - /// NONE: Do not encrypt the records in the stream.

      - ///
    • - ///
    • - ///

      - /// KMS: Use server-side encryption on the records in the stream - /// using a customer-managed AWS KMS key.

      - ///
    • - ///
    - #[serde(rename = "EncryptionType")] - #[serde(default)] - pub encryption_type: std::option::Option, -} -impl std::fmt::Debug for PutRecordOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRecordOutputBody"); - formatter.field("shard_id", &self.shard_id); - formatter.field("sequence_number", &self.sequence_number); - formatter.field("encryption_type", &self.encryption_type); - formatter.finish() - } -} - -///

    -/// PutRecords results.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRecordsOutputBody { - ///

    The number of unsuccessfully processed records in a PutRecords - /// request.

    - #[serde(rename = "FailedRecordCount")] - #[serde(default)] - pub failed_record_count: std::option::Option, - ///

    An array of successfully and unsuccessfully processed record results, correlated - /// with the request by natural ordering. A record that is successfully added to a stream - /// includes SequenceNumber and ShardId in the result. A record - /// that fails to be added to a stream includes ErrorCode and - /// ErrorMessage in the result.

    - #[serde(rename = "Records")] - #[serde(default)] - pub records: std::option::Option>, - ///

    The encryption type used on the records. This parameter can be one of the following - /// values:

    - ///
      - ///
    • - ///

      - /// NONE: Do not encrypt the records.

      - ///
    • - ///
    • - ///

      - /// KMS: Use server-side encryption on the records using a - /// customer-managed AWS KMS key.

      - ///
    • - ///
    - #[serde(rename = "EncryptionType")] - #[serde(default)] - pub encryption_type: std::option::Option, -} -impl std::fmt::Debug for PutRecordsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRecordsOutputBody"); - formatter.field("failed_record_count", &self.failed_record_count); - formatter.field("records", &self.records); - formatter.field("encryption_type", &self.encryption_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterStreamConsumerOutputBody { - ///

    An object that represents the details of the consumer you registered. When you - /// register a consumer, it gets an ARN that is generated by Kinesis Data Streams.

    - #[serde(rename = "Consumer")] - #[serde(default)] - pub consumer: std::option::Option, -} -impl std::fmt::Debug for RegisterStreamConsumerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterStreamConsumerOutputBody"); - formatter.field("consumer", &self.consumer); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateShardCountOutputBody { - ///

    The name of the stream.

    - #[serde(rename = "StreamName")] - #[serde(default)] - pub stream_name: std::option::Option, - ///

    The current number of shards.

    - #[serde(rename = "CurrentShardCount")] - #[serde(default)] - pub current_shard_count: std::option::Option, - ///

    The updated number of shards.

    - #[serde(rename = "TargetShardCount")] - #[serde(default)] - pub target_shard_count: std::option::Option, -} -impl std::fmt::Debug for UpdateShardCountOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateShardCountOutputBody"); - formatter.field("stream_name", &self.stream_name); - formatter.field("current_shard_count", &self.current_shard_count); - formatter.field("target_shard_count", &self.target_shard_count); - formatter.finish() - } -} diff --git a/sdk/kms/Cargo.toml b/sdk/kms/Cargo.toml index aa3635376654..2fee1cc9fdbf 100644 --- a/sdk/kms/Cargo.toml +++ b/sdk/kms/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-kms" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Key Management Service\n

    AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes\n the AWS KMS operations that you can call programmatically. For general information about AWS KMS,\n see the \n AWS Key Management Service Developer Guide\n .

    \n \n

    AWS provides SDKs that consist of libraries and sample code for various programming\n languages and platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a\n convenient way to create programmatic access to AWS KMS and other AWS services. For example,\n the SDKs take care of tasks such as signing requests (see below), managing errors, and\n retrying requests automatically. For more information about the AWS SDKs, including how to\n download and install them, see Tools for Amazon Web\n Services.

    \n
    \n

    We recommend that you use the AWS SDKs to make programmatic API calls to AWS KMS.

    \n

    Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients\n must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral\n Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems\n such as Java 7 and later support these modes.

    \n

    \n Signing Requests\n

    \n

    Requests must be signed by using an access key ID and a secret access key. We strongly\n recommend that you do not use your AWS account (root) access key ID and\n secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key\n for an IAM user. You can also use the AWS Security Token Service to generate temporary\n security credentials that you can use to sign requests.

    \n

    All AWS KMS operations require Signature Version 4.

    \n

    \n Logging API Requests\n

    \n

    AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related events for your AWS\n account and delivers them to an Amazon S3 bucket that you specify. By using the information\n collected by CloudTrail, you can determine what requests were made to AWS KMS, who made the request,\n when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find\n your log files, see the AWS CloudTrail User Guide.

    \n

    \n Additional Resources\n

    \n

    For more information about credentials and request signing, see the following:

    \n \n

    \n Commonly Used API Operations\n

    \n

    Of the API operations discussed in this guide, the following will prove the most useful\n for most applications. You will likely perform operations other than these, such as creating\n keys and assigning policies, by using the console.

    \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,21 +20,17 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] +[dependencies.serde_json] version = "1" [dev-dependencies.aws-hyper] path = "..//aws-hyper" diff --git a/sdk/kms/src/aws_json_errors.rs b/sdk/kms/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/kms/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/kms/src/blob_serde.rs b/sdk/kms/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/kms/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/kms/src/error.rs b/sdk/kms/src/error.rs index 4faa7b8323b8..26daaa4a5413 100644 --- a/sdk/kms/src/error.rs +++ b/sdk/kms/src/error.rs @@ -8,22 +8,22 @@ pub struct CancelKeyDeletionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelKeyDeletionErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelKeyDeletionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelKeyDeletionErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - CancelKeyDeletionErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - CancelKeyDeletionErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - CancelKeyDeletionErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - CancelKeyDeletionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CancelKeyDeletionErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + CancelKeyDeletionErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + CancelKeyDeletionErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + CancelKeyDeletionErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + CancelKeyDeletionErrorKind::NotFoundException(_inner) => _inner.fmt(f), CancelKeyDeletionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -72,36 +72,42 @@ impl CancelKeyDeletionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - CancelKeyDeletionErrorKind::DependencyTimeoutError(_) + CancelKeyDeletionErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, CancelKeyDeletionErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + CancelKeyDeletionErrorKind::InvalidArnException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, CancelKeyDeletionErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + CancelKeyDeletionErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - CancelKeyDeletionErrorKind::KMSInvalidStateError(_) + CancelKeyDeletionErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CancelKeyDeletionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CancelKeyDeletionErrorKind::NotFoundException(_)) } } impl std::error::Error for CancelKeyDeletionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelKeyDeletionErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - CancelKeyDeletionErrorKind::InvalidArnError(_inner) => Some(_inner), - CancelKeyDeletionErrorKind::KMSInternalError(_inner) => Some(_inner), - CancelKeyDeletionErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - CancelKeyDeletionErrorKind::NotFoundError(_inner) => Some(_inner), + CancelKeyDeletionErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + CancelKeyDeletionErrorKind::InvalidArnException(_inner) => Some(_inner), + CancelKeyDeletionErrorKind::KmsInternalException(_inner) => Some(_inner), + CancelKeyDeletionErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + CancelKeyDeletionErrorKind::NotFoundException(_inner) => Some(_inner), CancelKeyDeletionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -116,28 +122,32 @@ pub struct ConnectCustomKeyStoreError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ConnectCustomKeyStoreErrorKind { - CloudHsmClusterInvalidConfigurationError( - crate::error::CloudHsmClusterInvalidConfigurationError, + CloudHsmClusterInvalidConfigurationException( + crate::error::CloudHsmClusterInvalidConfigurationException, ), - CloudHsmClusterNotActiveError(crate::error::CloudHsmClusterNotActiveError), - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - KMSInternalError(crate::error::KMSInternalError), + CloudHsmClusterNotActiveException(crate::error::CloudHsmClusterNotActiveException), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ConnectCustomKeyStoreError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException( + _inner, + ) => _inner.fmt(f), + ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { + _inner.fmt(f) + } + ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { _inner.fmt(f) } - ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => _inner.fmt(f), - ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => { + ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => { _inner.fmt(f) } - ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - ConnectCustomKeyStoreErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + ConnectCustomKeyStoreErrorKind::KmsInternalException(_inner) => _inner.fmt(f), ConnectCustomKeyStoreErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -186,47 +196,51 @@ impl ConnectCustomKeyStoreError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cloud_hsm_cluster_invalid_configuration_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_) + ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_) ) } - pub fn is_cloud_hsm_cluster_not_active_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_active_exception(&self) -> bool { matches!( &self.kind, - ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_) + ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_) ) } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_) + ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_) + ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - ConnectCustomKeyStoreErrorKind::KMSInternalError(_) + ConnectCustomKeyStoreErrorKind::KmsInternalException(_) ) } } impl std::error::Error for ConnectCustomKeyStoreError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException( + _inner, + ) => Some(_inner), + ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { + Some(_inner) + } + ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { Some(_inner) } - ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => Some(_inner), - ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => Some(_inner), - ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - ConnectCustomKeyStoreErrorKind::KMSInternalError(_inner) => Some(_inner), + ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => Some(_inner), + ConnectCustomKeyStoreErrorKind::KmsInternalException(_inner) => Some(_inner), ConnectCustomKeyStoreErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -241,26 +255,26 @@ pub struct CreateAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateAliasErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidAliasNameError(crate::error::InvalidAliasNameError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), + AlreadyExistsException(crate::error::AlreadyExistsException), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidAliasNameException(crate::error::InvalidAliasNameException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateAliasErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::InvalidAliasNameError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CreateAliasErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::InvalidAliasNameException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f), CreateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -309,38 +323,47 @@ impl CreateAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::AlreadyExistsError(_)) + pub fn is_already_exists_exception(&self) -> bool { + matches!(&self.kind, CreateAliasErrorKind::AlreadyExistsException(_)) } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_alias_name_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::InvalidAliasNameError(_)) + pub fn is_invalid_alias_name_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::InvalidAliasNameException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, CreateAliasErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateAliasErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateAliasErrorKind::NotFoundException(_)) } } impl std::error::Error for CreateAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateAliasErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateAliasErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - CreateAliasErrorKind::InvalidAliasNameError(_inner) => Some(_inner), - CreateAliasErrorKind::KMSInternalError(_inner) => Some(_inner), - CreateAliasErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - CreateAliasErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateAliasErrorKind::NotFoundError(_inner) => Some(_inner), + CreateAliasErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateAliasErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + CreateAliasErrorKind::InvalidAliasNameException(_inner) => Some(_inner), + CreateAliasErrorKind::KmsInternalException(_inner) => Some(_inner), + CreateAliasErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + CreateAliasErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateAliasErrorKind::NotFoundException(_inner) => Some(_inner), CreateAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -355,30 +378,36 @@ pub struct CreateCustomKeyStoreError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateCustomKeyStoreErrorKind { - CloudHsmClusterInUseError(crate::error::CloudHsmClusterInUseError), - CloudHsmClusterInvalidConfigurationError( - crate::error::CloudHsmClusterInvalidConfigurationError, + CloudHsmClusterInUseException(crate::error::CloudHsmClusterInUseException), + CloudHsmClusterInvalidConfigurationException( + crate::error::CloudHsmClusterInvalidConfigurationException, ), - CloudHsmClusterNotActiveError(crate::error::CloudHsmClusterNotActiveError), - CloudHsmClusterNotFoundError(crate::error::CloudHsmClusterNotFoundError), - CustomKeyStoreNameInUseError(crate::error::CustomKeyStoreNameInUseError), - IncorrectTrustAnchorError(crate::error::IncorrectTrustAnchorError), - KMSInternalError(crate::error::KMSInternalError), + CloudHsmClusterNotActiveException(crate::error::CloudHsmClusterNotActiveException), + CloudHsmClusterNotFoundException(crate::error::CloudHsmClusterNotFoundException), + CustomKeyStoreNameInUseException(crate::error::CustomKeyStoreNameInUseException), + IncorrectTrustAnchorException(crate::error::IncorrectTrustAnchorException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateCustomKeyStoreError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseError(_inner) => _inner.fmt(f), - CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseException(_inner) => _inner.fmt(f), + CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + _inner.fmt(f) + } + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { + _inner.fmt(f) + } + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_inner) => { _inner.fmt(f) } - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => _inner.fmt(f), - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_inner) => _inner.fmt(f), - CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_inner) => _inner.fmt(f), - CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorError(_inner) => _inner.fmt(f), - CreateCustomKeyStoreErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_inner) => { + _inner.fmt(f) + } + CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorException(_inner) => _inner.fmt(f), + CreateCustomKeyStoreErrorKind::KmsInternalException(_inner) => _inner.fmt(f), CreateCustomKeyStoreErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -427,61 +456,63 @@ impl CreateCustomKeyStoreError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cloud_hsm_cluster_in_use_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_in_use_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseError(_) + CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseException(_) ) } - pub fn is_cloud_hsm_cluster_invalid_configuration_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_) + CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_) ) } - pub fn is_cloud_hsm_cluster_not_active_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_active_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_) + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_) ) } - pub fn is_cloud_hsm_cluster_not_found_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_) + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_) ) } - pub fn is_custom_key_store_name_in_use_error(&self) -> bool { + pub fn is_custom_key_store_name_in_use_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_) + CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_) ) } - pub fn is_incorrect_trust_anchor_error(&self) -> bool { + pub fn is_incorrect_trust_anchor_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorError(_) + CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - CreateCustomKeyStoreErrorKind::KMSInternalError(_) + CreateCustomKeyStoreErrorKind::KmsInternalException(_) ) } } impl std::error::Error for CreateCustomKeyStoreError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseError(_inner) => Some(_inner), - CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseException(_inner) => Some(_inner), + CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + Some(_inner) + } + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { Some(_inner) } - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => Some(_inner), - CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_inner) => Some(_inner), - CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_inner) => Some(_inner), - CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorError(_inner) => Some(_inner), - CreateCustomKeyStoreErrorKind::KMSInternalError(_inner) => Some(_inner), + CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_inner) => Some(_inner), + CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_inner) => Some(_inner), + CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorException(_inner) => Some(_inner), + CreateCustomKeyStoreErrorKind::KmsInternalException(_inner) => Some(_inner), CreateCustomKeyStoreErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -496,28 +527,28 @@ pub struct CreateGrantError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateGrantErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidArnError(crate::error::InvalidArnError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidArnException(crate::error::InvalidArnException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateGrantError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateGrantErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::DisabledError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateGrantErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CreateGrantErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::DisabledException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateGrantErrorKind::NotFoundException(_inner) => _inner.fmt(f), CreateGrantErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -566,42 +597,51 @@ impl CreateGrantError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + CreateGrantErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, CreateGrantErrorKind::DisabledException(_)) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, CreateGrantErrorKind::InvalidArnException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!( + &self.kind, + CreateGrantErrorKind::InvalidGrantTokenException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, CreateGrantErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + CreateGrantErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateGrantErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateGrantErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateGrantErrorKind::NotFoundException(_)) } } impl std::error::Error for CreateGrantError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateGrantErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - CreateGrantErrorKind::DisabledError(_inner) => Some(_inner), - CreateGrantErrorKind::InvalidArnError(_inner) => Some(_inner), - CreateGrantErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - CreateGrantErrorKind::KMSInternalError(_inner) => Some(_inner), - CreateGrantErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - CreateGrantErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateGrantErrorKind::NotFoundError(_inner) => Some(_inner), + CreateGrantErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + CreateGrantErrorKind::DisabledException(_inner) => Some(_inner), + CreateGrantErrorKind::InvalidArnException(_inner) => Some(_inner), + CreateGrantErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + CreateGrantErrorKind::KmsInternalException(_inner) => Some(_inner), + CreateGrantErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + CreateGrantErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateGrantErrorKind::NotFoundException(_inner) => Some(_inner), CreateGrantErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -616,34 +656,36 @@ pub struct CreateKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateKeyErrorKind { - CloudHsmClusterInvalidConfigurationError( - crate::error::CloudHsmClusterInvalidConfigurationError, + CloudHsmClusterInvalidConfigurationException( + crate::error::CloudHsmClusterInvalidConfigurationException, ), - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - TagError(crate::error::TagError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + TagException(crate::error::TagException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::CustomKeyStoreInvalidStateError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::TagError(_inner) => _inner.fmt(f), - CreateKeyErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + _inner.fmt(f) + } + CreateKeyErrorKind::CustomKeyStoreInvalidStateException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::CustomKeyStoreNotFoundException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::TagException(_inner) => _inner.fmt(f), + CreateKeyErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), CreateKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -692,62 +734,70 @@ impl CreateKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cloud_hsm_cluster_invalid_configuration_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationError(_) + CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationException(_) ) } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - CreateKeyErrorKind::CustomKeyStoreInvalidStateError(_) + CreateKeyErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateKeyErrorKind::CustomKeyStoreNotFoundError(_) + CreateKeyErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + CreateKeyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, CreateKeyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, CreateKeyErrorKind::KmsInternalException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateKeyErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - CreateKeyErrorKind::MalformedPolicyDocumentError(_) + CreateKeyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_tag_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::TagError(_)) + pub fn is_tag_exception(&self) -> bool { + matches!(&self.kind, CreateKeyErrorKind::TagException(_)) } - pub fn is_unsupported_operation_error(&self) -> bool { - matches!(&self.kind, CreateKeyErrorKind::UnsupportedOperationError(_)) + pub fn is_unsupported_operation_exception(&self) -> bool { + matches!( + &self.kind, + CreateKeyErrorKind::UnsupportedOperationException(_) + ) } } impl std::error::Error for CreateKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => Some(_inner), - CreateKeyErrorKind::CustomKeyStoreInvalidStateError(_inner) => Some(_inner), - CreateKeyErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - CreateKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - CreateKeyErrorKind::InvalidArnError(_inner) => Some(_inner), - CreateKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - CreateKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateKeyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - CreateKeyErrorKind::TagError(_inner) => Some(_inner), - CreateKeyErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + Some(_inner) + } + CreateKeyErrorKind::CustomKeyStoreInvalidStateException(_inner) => Some(_inner), + CreateKeyErrorKind::CustomKeyStoreNotFoundException(_inner) => Some(_inner), + CreateKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + CreateKeyErrorKind::InvalidArnException(_inner) => Some(_inner), + CreateKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + CreateKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateKeyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + CreateKeyErrorKind::TagException(_inner) => Some(_inner), + CreateKeyErrorKind::UnsupportedOperationException(_inner) => Some(_inner), CreateKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -762,32 +812,32 @@ pub struct DecryptError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DecryptErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - IncorrectKeyError(crate::error::IncorrectKeyError), - InvalidCiphertextError(crate::error::InvalidCiphertextError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + IncorrectKeyException(crate::error::IncorrectKeyException), + InvalidCiphertextException(crate::error::InvalidCiphertextException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DecryptError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DecryptErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DecryptErrorKind::DisabledError(_inner) => _inner.fmt(f), - DecryptErrorKind::IncorrectKeyError(_inner) => _inner.fmt(f), - DecryptErrorKind::InvalidCiphertextError(_inner) => _inner.fmt(f), - DecryptErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - DecryptErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - DecryptErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - DecryptErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DecryptErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - DecryptErrorKind::NotFoundError(_inner) => _inner.fmt(f), + DecryptErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DecryptErrorKind::DisabledException(_inner) => _inner.fmt(f), + DecryptErrorKind::IncorrectKeyException(_inner) => _inner.fmt(f), + DecryptErrorKind::InvalidCiphertextException(_inner) => _inner.fmt(f), + DecryptErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + DecryptErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + DecryptErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + DecryptErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DecryptErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + DecryptErrorKind::NotFoundException(_inner) => _inner.fmt(f), DecryptErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -836,50 +886,50 @@ impl DecryptError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::DependencyTimeoutException(_)) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::DisabledException(_)) } - pub fn is_incorrect_key_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::IncorrectKeyError(_)) + pub fn is_incorrect_key_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::IncorrectKeyException(_)) } - pub fn is_invalid_ciphertext_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::InvalidCiphertextError(_)) + pub fn is_invalid_ciphertext_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::InvalidCiphertextException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::InvalidGrantTokenException(_)) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::InvalidKeyUsageException(_)) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::KeyUnavailableException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DecryptErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DecryptErrorKind::NotFoundException(_)) } } impl std::error::Error for DecryptError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DecryptErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DecryptErrorKind::DisabledError(_inner) => Some(_inner), - DecryptErrorKind::IncorrectKeyError(_inner) => Some(_inner), - DecryptErrorKind::InvalidCiphertextError(_inner) => Some(_inner), - DecryptErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - DecryptErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - DecryptErrorKind::KeyUnavailableError(_inner) => Some(_inner), - DecryptErrorKind::KMSInternalError(_inner) => Some(_inner), - DecryptErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - DecryptErrorKind::NotFoundError(_inner) => Some(_inner), + DecryptErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DecryptErrorKind::DisabledException(_inner) => Some(_inner), + DecryptErrorKind::IncorrectKeyException(_inner) => Some(_inner), + DecryptErrorKind::InvalidCiphertextException(_inner) => Some(_inner), + DecryptErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + DecryptErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + DecryptErrorKind::KeyUnavailableException(_inner) => Some(_inner), + DecryptErrorKind::KmsInternalException(_inner) => Some(_inner), + DecryptErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + DecryptErrorKind::NotFoundException(_inner) => Some(_inner), DecryptErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -894,20 +944,20 @@ pub struct DeleteAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAliasErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAliasErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::NotFoundError(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f), DeleteAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -956,26 +1006,32 @@ impl DeleteAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAliasErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, DeleteAliasErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAliasErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteAliasErrorKind::NotFoundException(_)) } } impl std::error::Error for DeleteAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAliasErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DeleteAliasErrorKind::KMSInternalError(_inner) => Some(_inner), - DeleteAliasErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - DeleteAliasErrorKind::NotFoundError(_inner) => Some(_inner), + DeleteAliasErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DeleteAliasErrorKind::KmsInternalException(_inner) => Some(_inner), + DeleteAliasErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + DeleteAliasErrorKind::NotFoundException(_inner) => Some(_inner), DeleteAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -990,20 +1046,22 @@ pub struct DeleteCustomKeyStoreError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteCustomKeyStoreErrorKind { - CustomKeyStoreHasCMKsError(crate::error::CustomKeyStoreHasCMKsError), - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - KMSInternalError(crate::error::KMSInternalError), + CustomKeyStoreHasCmKsException(crate::error::CustomKeyStoreHasCmKsException), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteCustomKeyStoreError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCMKsError(_inner) => _inner.fmt(f), - DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => _inner.fmt(f), - DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - DeleteCustomKeyStoreErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCmKsException(_inner) => _inner.fmt(f), + DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { + _inner.fmt(f) + } + DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => _inner.fmt(f), + DeleteCustomKeyStoreErrorKind::KmsInternalException(_inner) => _inner.fmt(f), DeleteCustomKeyStoreErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1052,38 +1110,40 @@ impl DeleteCustomKeyStoreError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_custom_key_store_has_cm_ks_error(&self) -> bool { + pub fn is_custom_key_store_has_cm_ks_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCMKsError(_) + DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCmKsException(_) ) } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_) + DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_) + DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomKeyStoreErrorKind::KMSInternalError(_) + DeleteCustomKeyStoreErrorKind::KmsInternalException(_) ) } } impl std::error::Error for DeleteCustomKeyStoreError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCMKsError(_inner) => Some(_inner), - DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => Some(_inner), - DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - DeleteCustomKeyStoreErrorKind::KMSInternalError(_inner) => Some(_inner), + DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCmKsException(_inner) => Some(_inner), + DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { + Some(_inner) + } + DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => Some(_inner), + DeleteCustomKeyStoreErrorKind::KmsInternalException(_inner) => Some(_inner), DeleteCustomKeyStoreErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1098,24 +1158,26 @@ pub struct DeleteImportedKeyMaterialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteImportedKeyMaterialErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteImportedKeyMaterialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteImportedKeyMaterialErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DeleteImportedKeyMaterialErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - DeleteImportedKeyMaterialErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DeleteImportedKeyMaterialErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - DeleteImportedKeyMaterialErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteImportedKeyMaterialErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteImportedKeyMaterialErrorKind::UnsupportedOperationException(_inner) => { + _inner.fmt(f) + } DeleteImportedKeyMaterialErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1164,52 +1226,54 @@ impl DeleteImportedKeyMaterialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::DependencyTimeoutError(_) + DeleteImportedKeyMaterialErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { + pub fn is_invalid_arn_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::InvalidArnError(_) + DeleteImportedKeyMaterialErrorKind::InvalidArnException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::KMSInternalError(_) + DeleteImportedKeyMaterialErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::KMSInvalidStateError(_) + DeleteImportedKeyMaterialErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::NotFoundError(_) + DeleteImportedKeyMaterialErrorKind::NotFoundException(_) ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - DeleteImportedKeyMaterialErrorKind::UnsupportedOperationError(_) + DeleteImportedKeyMaterialErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for DeleteImportedKeyMaterialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteImportedKeyMaterialErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DeleteImportedKeyMaterialErrorKind::InvalidArnError(_inner) => Some(_inner), - DeleteImportedKeyMaterialErrorKind::KMSInternalError(_inner) => Some(_inner), - DeleteImportedKeyMaterialErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - DeleteImportedKeyMaterialErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteImportedKeyMaterialErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::InvalidArnException(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::KmsInternalException(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteImportedKeyMaterialErrorKind::UnsupportedOperationException(_inner) => { + Some(_inner) + } DeleteImportedKeyMaterialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1224,16 +1288,18 @@ pub struct DescribeCustomKeyStoresError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeCustomKeyStoresErrorKind { - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - KMSInternalError(crate::error::KMSInternalError), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeCustomKeyStoresError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - DescribeCustomKeyStoresErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundException(_inner) => { + _inner.fmt(f) + } + DescribeCustomKeyStoresErrorKind::KmsInternalException(_inner) => _inner.fmt(f), DescribeCustomKeyStoresErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1282,24 +1348,26 @@ impl DescribeCustomKeyStoresError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundError(_) + DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - DescribeCustomKeyStoresErrorKind::KMSInternalError(_) + DescribeCustomKeyStoresErrorKind::KmsInternalException(_) ) } } impl std::error::Error for DescribeCustomKeyStoresError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - DescribeCustomKeyStoresErrorKind::KMSInternalError(_inner) => Some(_inner), + DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundException(_inner) => { + Some(_inner) + } + DescribeCustomKeyStoresErrorKind::KmsInternalException(_inner) => Some(_inner), DescribeCustomKeyStoresErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1314,20 +1382,20 @@ pub struct DescribeKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeKeyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DescribeKeyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - DescribeKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DescribeKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + DescribeKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DescribeKeyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + DescribeKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DescribeKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), DescribeKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1376,26 +1444,29 @@ impl DescribeKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, DescribeKeyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DescribeKeyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, DescribeKeyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, DescribeKeyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, DescribeKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, DescribeKeyErrorKind::KmsInternalException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeKeyErrorKind::NotFoundException(_)) } } impl std::error::Error for DescribeKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DescribeKeyErrorKind::InvalidArnError(_inner) => Some(_inner), - DescribeKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - DescribeKeyErrorKind::NotFoundError(_inner) => Some(_inner), + DescribeKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DescribeKeyErrorKind::InvalidArnException(_inner) => Some(_inner), + DescribeKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + DescribeKeyErrorKind::NotFoundException(_inner) => Some(_inner), DescribeKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1410,22 +1481,22 @@ pub struct DisableKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DisableKeyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DisableKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisableKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DisableKeyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - DisableKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DisableKeyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - DisableKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + DisableKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DisableKeyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + DisableKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DisableKeyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + DisableKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), DisableKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1474,30 +1545,33 @@ impl DisableKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, DisableKeyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DisableKeyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, DisableKeyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, DisableKeyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, DisableKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, DisableKeyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, DisableKeyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, DisableKeyErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DisableKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DisableKeyErrorKind::NotFoundException(_)) } } impl std::error::Error for DisableKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisableKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DisableKeyErrorKind::InvalidArnError(_inner) => Some(_inner), - DisableKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - DisableKeyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - DisableKeyErrorKind::NotFoundError(_inner) => Some(_inner), + DisableKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DisableKeyErrorKind::InvalidArnException(_inner) => Some(_inner), + DisableKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + DisableKeyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + DisableKeyErrorKind::NotFoundException(_inner) => Some(_inner), DisableKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1512,26 +1586,26 @@ pub struct DisableKeyRotationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DisableKeyRotationErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DisableKeyRotationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisableKeyRotationErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::DisabledError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DisableKeyRotationErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::DisabledException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DisableKeyRotationErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), DisableKeyRotationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1580,47 +1654,59 @@ impl DisableKeyRotationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - DisableKeyRotationErrorKind::DependencyTimeoutError(_) + DisableKeyRotationErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, DisableKeyRotationErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!( + &self.kind, + DisableKeyRotationErrorKind::DisabledException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, DisableKeyRotationErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + DisableKeyRotationErrorKind::InvalidArnException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, DisableKeyRotationErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + DisableKeyRotationErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - DisableKeyRotationErrorKind::KMSInvalidStateError(_) + DisableKeyRotationErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DisableKeyRotationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DisableKeyRotationErrorKind::NotFoundException(_) + ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - DisableKeyRotationErrorKind::UnsupportedOperationError(_) + DisableKeyRotationErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for DisableKeyRotationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisableKeyRotationErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::DisabledError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::InvalidArnError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::KMSInternalError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::NotFoundError(_inner) => Some(_inner), - DisableKeyRotationErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + DisableKeyRotationErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::DisabledException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::InvalidArnException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::KmsInternalException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::NotFoundException(_inner) => Some(_inner), + DisableKeyRotationErrorKind::UnsupportedOperationException(_inner) => Some(_inner), DisableKeyRotationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1635,20 +1721,22 @@ pub struct DisconnectCustomKeyStoreError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DisconnectCustomKeyStoreErrorKind { - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - KMSInternalError(crate::error::KMSInternalError), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DisconnectCustomKeyStoreError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => { + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { _inner.fmt(f) } - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - DisconnectCustomKeyStoreErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => { + _inner.fmt(f) + } + DisconnectCustomKeyStoreErrorKind::KmsInternalException(_inner) => _inner.fmt(f), DisconnectCustomKeyStoreErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1697,33 +1785,35 @@ impl DisconnectCustomKeyStoreError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_) + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_) + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - DisconnectCustomKeyStoreErrorKind::KMSInternalError(_) + DisconnectCustomKeyStoreErrorKind::KmsInternalException(_) ) } } impl std::error::Error for DisconnectCustomKeyStoreError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => { + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { Some(_inner) } - DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - DisconnectCustomKeyStoreErrorKind::KMSInternalError(_inner) => Some(_inner), + DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => { + Some(_inner) + } + DisconnectCustomKeyStoreErrorKind::KmsInternalException(_inner) => Some(_inner), DisconnectCustomKeyStoreErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1738,24 +1828,24 @@ pub struct EnableKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum EnableKeyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for EnableKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - EnableKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - EnableKeyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - EnableKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - EnableKeyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - EnableKeyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - EnableKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + EnableKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + EnableKeyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + EnableKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + EnableKeyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + EnableKeyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + EnableKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), EnableKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1804,34 +1894,37 @@ impl EnableKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + EnableKeyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, EnableKeyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, EnableKeyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, EnableKeyErrorKind::KmsInvalidStateException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, EnableKeyErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, EnableKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, EnableKeyErrorKind::NotFoundException(_)) } } impl std::error::Error for EnableKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - EnableKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - EnableKeyErrorKind::InvalidArnError(_inner) => Some(_inner), - EnableKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - EnableKeyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - EnableKeyErrorKind::LimitExceededError(_inner) => Some(_inner), - EnableKeyErrorKind::NotFoundError(_inner) => Some(_inner), + EnableKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + EnableKeyErrorKind::InvalidArnException(_inner) => Some(_inner), + EnableKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + EnableKeyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + EnableKeyErrorKind::LimitExceededException(_inner) => Some(_inner), + EnableKeyErrorKind::NotFoundException(_inner) => Some(_inner), EnableKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1846,26 +1939,26 @@ pub struct EnableKeyRotationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum EnableKeyRotationErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for EnableKeyRotationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - EnableKeyRotationErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::DisabledError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - EnableKeyRotationErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::DisabledException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + EnableKeyRotationErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), EnableKeyRotationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1914,47 +2007,53 @@ impl EnableKeyRotationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - EnableKeyRotationErrorKind::DependencyTimeoutError(_) + EnableKeyRotationErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, EnableKeyRotationErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, EnableKeyRotationErrorKind::DisabledException(_)) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, EnableKeyRotationErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + EnableKeyRotationErrorKind::InvalidArnException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, EnableKeyRotationErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + EnableKeyRotationErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - EnableKeyRotationErrorKind::KMSInvalidStateError(_) + EnableKeyRotationErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, EnableKeyRotationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, EnableKeyRotationErrorKind::NotFoundException(_)) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - EnableKeyRotationErrorKind::UnsupportedOperationError(_) + EnableKeyRotationErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for EnableKeyRotationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - EnableKeyRotationErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::DisabledError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::InvalidArnError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::KMSInternalError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::NotFoundError(_inner) => Some(_inner), - EnableKeyRotationErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + EnableKeyRotationErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::DisabledException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::InvalidArnException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::KmsInternalException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::NotFoundException(_inner) => Some(_inner), + EnableKeyRotationErrorKind::UnsupportedOperationException(_inner) => Some(_inner), EnableKeyRotationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1969,28 +2068,28 @@ pub struct EncryptError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum EncryptErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for EncryptError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - EncryptErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - EncryptErrorKind::DisabledError(_inner) => _inner.fmt(f), - EncryptErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - EncryptErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - EncryptErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - EncryptErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - EncryptErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - EncryptErrorKind::NotFoundError(_inner) => _inner.fmt(f), + EncryptErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + EncryptErrorKind::DisabledException(_inner) => _inner.fmt(f), + EncryptErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + EncryptErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + EncryptErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + EncryptErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + EncryptErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + EncryptErrorKind::NotFoundException(_inner) => _inner.fmt(f), EncryptErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2039,42 +2138,42 @@ impl EncryptError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::DependencyTimeoutException(_)) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::DisabledException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::InvalidGrantTokenException(_)) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::InvalidKeyUsageException(_)) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::KeyUnavailableException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, EncryptErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, EncryptErrorKind::NotFoundException(_)) } } impl std::error::Error for EncryptError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - EncryptErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - EncryptErrorKind::DisabledError(_inner) => Some(_inner), - EncryptErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - EncryptErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - EncryptErrorKind::KeyUnavailableError(_inner) => Some(_inner), - EncryptErrorKind::KMSInternalError(_inner) => Some(_inner), - EncryptErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - EncryptErrorKind::NotFoundError(_inner) => Some(_inner), + EncryptErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + EncryptErrorKind::DisabledException(_inner) => Some(_inner), + EncryptErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + EncryptErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + EncryptErrorKind::KeyUnavailableException(_inner) => Some(_inner), + EncryptErrorKind::KmsInternalException(_inner) => Some(_inner), + EncryptErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + EncryptErrorKind::NotFoundException(_inner) => Some(_inner), EncryptErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2089,28 +2188,28 @@ pub struct GenerateDataKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateDataKeyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateDataKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateDataKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::DisabledError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GenerateDataKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::DisabledException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GenerateDataKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), GenerateDataKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2159,54 +2258,60 @@ impl GenerateDataKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyErrorKind::DependencyTimeoutError(_) + GenerateDataKeyErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, GenerateDataKeyErrorKind::DisabledException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { + pub fn is_invalid_grant_token_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyErrorKind::InvalidGrantTokenError(_) + GenerateDataKeyErrorKind::InvalidGrantTokenException(_) ) } - pub fn is_invalid_key_usage_error(&self) -> bool { + pub fn is_invalid_key_usage_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyErrorKind::InvalidKeyUsageError(_) + GenerateDataKeyErrorKind::InvalidKeyUsageException(_) ) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + GenerateDataKeyErrorKind::KeyUnavailableException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + GenerateDataKeyErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyErrorKind::KMSInvalidStateError(_) + GenerateDataKeyErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GenerateDataKeyErrorKind::NotFoundException(_)) } } impl std::error::Error for GenerateDataKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateDataKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::DisabledError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::KeyUnavailableError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GenerateDataKeyErrorKind::NotFoundError(_inner) => Some(_inner), + GenerateDataKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::DisabledException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::KeyUnavailableException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GenerateDataKeyErrorKind::NotFoundException(_inner) => Some(_inner), GenerateDataKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2221,30 +2326,30 @@ pub struct GenerateDataKeyPairError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateDataKeyPairErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateDataKeyPairError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateDataKeyPairErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::DisabledError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GenerateDataKeyPairErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::DisabledException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GenerateDataKeyPairErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), GenerateDataKeyPairErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2293,67 +2398,73 @@ impl GenerateDataKeyPairError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::DependencyTimeoutError(_) + GenerateDataKeyPairErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyPairErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!( + &self.kind, + GenerateDataKeyPairErrorKind::DisabledException(_) + ) } - pub fn is_invalid_grant_token_error(&self) -> bool { + pub fn is_invalid_grant_token_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::InvalidGrantTokenError(_) + GenerateDataKeyPairErrorKind::InvalidGrantTokenException(_) ) } - pub fn is_invalid_key_usage_error(&self) -> bool { + pub fn is_invalid_key_usage_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::InvalidKeyUsageError(_) + GenerateDataKeyPairErrorKind::InvalidKeyUsageException(_) ) } - pub fn is_key_unavailable_error(&self) -> bool { + pub fn is_key_unavailable_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::KeyUnavailableError(_) + GenerateDataKeyPairErrorKind::KeyUnavailableException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::KMSInternalError(_) + GenerateDataKeyPairErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::KMSInvalidStateError(_) + GenerateDataKeyPairErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GenerateDataKeyPairErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GenerateDataKeyPairErrorKind::NotFoundException(_) + ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairErrorKind::UnsupportedOperationError(_) + GenerateDataKeyPairErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for GenerateDataKeyPairError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateDataKeyPairErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::DisabledError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::KeyUnavailableError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::KMSInternalError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::NotFoundError(_inner) => Some(_inner), - GenerateDataKeyPairErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::DisabledException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::KeyUnavailableException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::KmsInternalException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::NotFoundException(_inner) => Some(_inner), + GenerateDataKeyPairErrorKind::UnsupportedOperationException(_inner) => Some(_inner), GenerateDataKeyPairErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2368,40 +2479,46 @@ pub struct GenerateDataKeyPairWithoutPlaintextError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateDataKeyPairWithoutPlaintextErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateDataKeyPairWithoutPlaintextError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutException(_inner) => { _inner.fmt(f) } - GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledError(_inner) => _inner.fmt(f), - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledException(_inner) => { _inner.fmt(f) } - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenException(_inner) => { _inner.fmt(f) } - GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageException(_inner) => { _inner.fmt(f) } - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInvalidStateError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableException(_inner) => { _inner.fmt(f) } - GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInternalException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInvalidStateException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationException(_inner) => { _inner.fmt(f) } GenerateDataKeyPairWithoutPlaintextErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2455,83 +2572,85 @@ impl GenerateDataKeyPairWithoutPlaintextError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { + pub fn is_disabled_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledException(_) ) } - pub fn is_invalid_grant_token_error(&self) -> bool { + pub fn is_invalid_grant_token_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenException(_) ) } - pub fn is_invalid_key_usage_error(&self) -> bool { + pub fn is_invalid_key_usage_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageException(_) ) } - pub fn is_key_unavailable_error(&self) -> bool { + pub fn is_key_unavailable_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInternalError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInvalidStateError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundException(_) ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationError(_) + GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for GenerateDataKeyPairWithoutPlaintextError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutException(_inner) => { + Some(_inner) + } + GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledException(_inner) => Some(_inner), + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenException(_inner) => { Some(_inner) } - GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledError(_inner) => Some(_inner), - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageException(_inner) => { Some(_inner) } - GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableException(_inner) => { Some(_inner) } - GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInternalException(_inner) => { Some(_inner) } - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInternalError(_inner) => Some(_inner), - GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInvalidStateError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInvalidStateException(_inner) => { Some(_inner) } - GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundError(_inner) => Some(_inner), - GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationError(_inner) => { + GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundException(_inner) => Some(_inner), + GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationException(_inner) => { Some(_inner) } GenerateDataKeyPairWithoutPlaintextErrorKind::Unhandled(_inner) => { @@ -2550,32 +2669,38 @@ pub struct GenerateDataKeyWithoutPlaintextError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateDataKeyWithoutPlaintextErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateDataKeyWithoutPlaintextError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutError(_inner) => { + GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyWithoutPlaintextErrorKind::DisabledException(_inner) => _inner.fmt(f), + GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageException(_inner) => { + _inner.fmt(f) + } + GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableException(_inner) => { _inner.fmt(f) } - GenerateDataKeyWithoutPlaintextErrorKind::DisabledError(_inner) => _inner.fmt(f), - GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenError(_inner) => { + GenerateDataKeyWithoutPlaintextErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GenerateDataKeyWithoutPlaintextErrorKind::KmsInvalidStateException(_inner) => { _inner.fmt(f) } - GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - GenerateDataKeyWithoutPlaintextErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GenerateDataKeyWithoutPlaintextErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GenerateDataKeyWithoutPlaintextErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GenerateDataKeyWithoutPlaintextErrorKind::NotFoundException(_inner) => _inner.fmt(f), GenerateDataKeyWithoutPlaintextErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2624,70 +2749,76 @@ impl GenerateDataKeyWithoutPlaintextError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutError(_) + GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutException(_) ) } - pub fn is_disabled_error(&self) -> bool { + pub fn is_disabled_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::DisabledError(_) + GenerateDataKeyWithoutPlaintextErrorKind::DisabledException(_) ) } - pub fn is_invalid_grant_token_error(&self) -> bool { + pub fn is_invalid_grant_token_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenError(_) + GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenException(_) ) } - pub fn is_invalid_key_usage_error(&self) -> bool { + pub fn is_invalid_key_usage_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageError(_) + GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageException(_) ) } - pub fn is_key_unavailable_error(&self) -> bool { + pub fn is_key_unavailable_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableError(_) + GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::KMSInternalError(_) + GenerateDataKeyWithoutPlaintextErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::KMSInvalidStateError(_) + GenerateDataKeyWithoutPlaintextErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GenerateDataKeyWithoutPlaintextErrorKind::NotFoundError(_) + GenerateDataKeyWithoutPlaintextErrorKind::NotFoundException(_) ) } } impl std::error::Error for GenerateDataKeyWithoutPlaintextError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutError(_inner) => { + GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutException(_inner) => { + Some(_inner) + } + GenerateDataKeyWithoutPlaintextErrorKind::DisabledException(_inner) => Some(_inner), + GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenException(_inner) => { + Some(_inner) + } + GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageException(_inner) => { Some(_inner) } - GenerateDataKeyWithoutPlaintextErrorKind::DisabledError(_inner) => Some(_inner), - GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenError(_inner) => { + GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableException(_inner) => { Some(_inner) } - GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableError(_inner) => Some(_inner), - GenerateDataKeyWithoutPlaintextErrorKind::KMSInternalError(_inner) => Some(_inner), - GenerateDataKeyWithoutPlaintextErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GenerateDataKeyWithoutPlaintextErrorKind::NotFoundError(_inner) => Some(_inner), + GenerateDataKeyWithoutPlaintextErrorKind::KmsInternalException(_inner) => Some(_inner), + GenerateDataKeyWithoutPlaintextErrorKind::KmsInvalidStateException(_inner) => { + Some(_inner) + } + GenerateDataKeyWithoutPlaintextErrorKind::NotFoundException(_inner) => Some(_inner), GenerateDataKeyWithoutPlaintextErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2702,20 +2833,20 @@ pub struct GenerateRandomError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GenerateRandomErrorKind { - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - DependencyTimeoutError(crate::error::DependencyTimeoutError), - KMSInternalError(crate::error::KMSInternalError), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GenerateRandomError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GenerateRandomErrorKind::CustomKeyStoreInvalidStateError(_inner) => _inner.fmt(f), - GenerateRandomErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - GenerateRandomErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GenerateRandomErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + GenerateRandomErrorKind::CustomKeyStoreInvalidStateException(_inner) => _inner.fmt(f), + GenerateRandomErrorKind::CustomKeyStoreNotFoundException(_inner) => _inner.fmt(f), + GenerateRandomErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GenerateRandomErrorKind::KmsInternalException(_inner) => _inner.fmt(f), GenerateRandomErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2764,35 +2895,35 @@ impl GenerateRandomError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GenerateRandomErrorKind::CustomKeyStoreInvalidStateError(_) + GenerateRandomErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - GenerateRandomErrorKind::CustomKeyStoreNotFoundError(_) + GenerateRandomErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GenerateRandomErrorKind::DependencyTimeoutError(_) + GenerateRandomErrorKind::DependencyTimeoutException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, GenerateRandomErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, GenerateRandomErrorKind::KmsInternalException(_)) } } impl std::error::Error for GenerateRandomError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GenerateRandomErrorKind::CustomKeyStoreInvalidStateError(_inner) => Some(_inner), - GenerateRandomErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - GenerateRandomErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GenerateRandomErrorKind::KMSInternalError(_inner) => Some(_inner), + GenerateRandomErrorKind::CustomKeyStoreInvalidStateException(_inner) => Some(_inner), + GenerateRandomErrorKind::CustomKeyStoreNotFoundException(_inner) => Some(_inner), + GenerateRandomErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GenerateRandomErrorKind::KmsInternalException(_inner) => Some(_inner), GenerateRandomErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2807,22 +2938,22 @@ pub struct GetKeyPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetKeyPolicyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetKeyPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetKeyPolicyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GetKeyPolicyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - GetKeyPolicyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GetKeyPolicyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GetKeyPolicyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GetKeyPolicyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GetKeyPolicyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + GetKeyPolicyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GetKeyPolicyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GetKeyPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f), GetKeyPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2871,30 +3002,36 @@ impl GetKeyPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, GetKeyPolicyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + GetKeyPolicyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, GetKeyPolicyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, GetKeyPolicyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, GetKeyPolicyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, GetKeyPolicyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, GetKeyPolicyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + GetKeyPolicyErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetKeyPolicyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetKeyPolicyErrorKind::NotFoundException(_)) } } impl std::error::Error for GetKeyPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetKeyPolicyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GetKeyPolicyErrorKind::InvalidArnError(_inner) => Some(_inner), - GetKeyPolicyErrorKind::KMSInternalError(_inner) => Some(_inner), - GetKeyPolicyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GetKeyPolicyErrorKind::NotFoundError(_inner) => Some(_inner), + GetKeyPolicyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GetKeyPolicyErrorKind::InvalidArnException(_inner) => Some(_inner), + GetKeyPolicyErrorKind::KmsInternalException(_inner) => Some(_inner), + GetKeyPolicyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GetKeyPolicyErrorKind::NotFoundException(_inner) => Some(_inner), GetKeyPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2909,24 +3046,24 @@ pub struct GetKeyRotationStatusError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetKeyRotationStatusErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetKeyRotationStatusError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetKeyRotationStatusErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GetKeyRotationStatusErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - GetKeyRotationStatusErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GetKeyRotationStatusErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GetKeyRotationStatusErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetKeyRotationStatusErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetKeyRotationStatusErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), GetKeyRotationStatusErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2975,49 +3112,52 @@ impl GetKeyRotationStatusError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GetKeyRotationStatusErrorKind::DependencyTimeoutError(_) + GetKeyRotationStatusErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { + pub fn is_invalid_arn_exception(&self) -> bool { matches!( &self.kind, - GetKeyRotationStatusErrorKind::InvalidArnError(_) + GetKeyRotationStatusErrorKind::InvalidArnException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - GetKeyRotationStatusErrorKind::KMSInternalError(_) + GetKeyRotationStatusErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GetKeyRotationStatusErrorKind::KMSInvalidStateError(_) + GetKeyRotationStatusErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetKeyRotationStatusErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetKeyRotationStatusErrorKind::NotFoundException(_) + ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - GetKeyRotationStatusErrorKind::UnsupportedOperationError(_) + GetKeyRotationStatusErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for GetKeyRotationStatusError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetKeyRotationStatusErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GetKeyRotationStatusErrorKind::InvalidArnError(_inner) => Some(_inner), - GetKeyRotationStatusErrorKind::KMSInternalError(_inner) => Some(_inner), - GetKeyRotationStatusErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GetKeyRotationStatusErrorKind::NotFoundError(_inner) => Some(_inner), - GetKeyRotationStatusErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::InvalidArnException(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::KmsInternalException(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::NotFoundException(_inner) => Some(_inner), + GetKeyRotationStatusErrorKind::UnsupportedOperationException(_inner) => Some(_inner), GetKeyRotationStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3032,24 +3172,24 @@ pub struct GetParametersForImportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetParametersForImportErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetParametersForImportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetParametersForImportErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GetParametersForImportErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - GetParametersForImportErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GetParametersForImportErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GetParametersForImportErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetParametersForImportErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetParametersForImportErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), GetParametersForImportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3098,52 +3238,52 @@ impl GetParametersForImportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::DependencyTimeoutError(_) + GetParametersForImportErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { + pub fn is_invalid_arn_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::InvalidArnError(_) + GetParametersForImportErrorKind::InvalidArnException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::KMSInternalError(_) + GetParametersForImportErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::KMSInvalidStateError(_) + GetParametersForImportErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::NotFoundError(_) + GetParametersForImportErrorKind::NotFoundException(_) ) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - GetParametersForImportErrorKind::UnsupportedOperationError(_) + GetParametersForImportErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for GetParametersForImportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetParametersForImportErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GetParametersForImportErrorKind::InvalidArnError(_inner) => Some(_inner), - GetParametersForImportErrorKind::KMSInternalError(_inner) => Some(_inner), - GetParametersForImportErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GetParametersForImportErrorKind::NotFoundError(_inner) => Some(_inner), - GetParametersForImportErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + GetParametersForImportErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GetParametersForImportErrorKind::InvalidArnException(_inner) => Some(_inner), + GetParametersForImportErrorKind::KmsInternalException(_inner) => Some(_inner), + GetParametersForImportErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GetParametersForImportErrorKind::NotFoundException(_inner) => Some(_inner), + GetParametersForImportErrorKind::UnsupportedOperationException(_inner) => Some(_inner), GetParametersForImportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3158,32 +3298,32 @@ pub struct GetPublicKeyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPublicKeyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidArnError(crate::error::InvalidArnError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidArnException(crate::error::InvalidArnException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetPublicKeyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPublicKeyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::DisabledError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetPublicKeyErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::DisabledException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetPublicKeyErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), GetPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3232,53 +3372,68 @@ impl GetPublicKeyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + GetPublicKeyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, GetPublicKeyErrorKind::DisabledException(_)) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, GetPublicKeyErrorKind::InvalidArnException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!( + &self.kind, + GetPublicKeyErrorKind::InvalidGrantTokenException(_) + ) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!( + &self.kind, + GetPublicKeyErrorKind::InvalidKeyUsageException(_) + ) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!( + &self.kind, + GetPublicKeyErrorKind::KeyUnavailableException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, GetPublicKeyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + GetPublicKeyErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetPublicKeyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetPublicKeyErrorKind::NotFoundException(_)) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - GetPublicKeyErrorKind::UnsupportedOperationError(_) + GetPublicKeyErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for GetPublicKeyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPublicKeyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - GetPublicKeyErrorKind::DisabledError(_inner) => Some(_inner), - GetPublicKeyErrorKind::InvalidArnError(_inner) => Some(_inner), - GetPublicKeyErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - GetPublicKeyErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - GetPublicKeyErrorKind::KeyUnavailableError(_inner) => Some(_inner), - GetPublicKeyErrorKind::KMSInternalError(_inner) => Some(_inner), - GetPublicKeyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - GetPublicKeyErrorKind::NotFoundError(_inner) => Some(_inner), - GetPublicKeyErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + GetPublicKeyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + GetPublicKeyErrorKind::DisabledException(_inner) => Some(_inner), + GetPublicKeyErrorKind::InvalidArnException(_inner) => Some(_inner), + GetPublicKeyErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + GetPublicKeyErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + GetPublicKeyErrorKind::KeyUnavailableException(_inner) => Some(_inner), + GetPublicKeyErrorKind::KmsInternalException(_inner) => Some(_inner), + GetPublicKeyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + GetPublicKeyErrorKind::NotFoundException(_inner) => Some(_inner), + GetPublicKeyErrorKind::UnsupportedOperationException(_inner) => Some(_inner), GetPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3293,32 +3448,32 @@ pub struct ImportKeyMaterialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ImportKeyMaterialErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - ExpiredImportTokenError(crate::error::ExpiredImportTokenError), - IncorrectKeyMaterialError(crate::error::IncorrectKeyMaterialError), - InvalidArnError(crate::error::InvalidArnError), - InvalidCiphertextError(crate::error::InvalidCiphertextError), - InvalidImportTokenError(crate::error::InvalidImportTokenError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + ExpiredImportTokenException(crate::error::ExpiredImportTokenException), + IncorrectKeyMaterialException(crate::error::IncorrectKeyMaterialException), + InvalidArnException(crate::error::InvalidArnException), + InvalidCiphertextException(crate::error::InvalidCiphertextException), + InvalidImportTokenException(crate::error::InvalidImportTokenException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ImportKeyMaterialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ImportKeyMaterialErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::ExpiredImportTokenError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::IncorrectKeyMaterialError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::InvalidCiphertextError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::InvalidImportTokenError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ImportKeyMaterialErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::ExpiredImportTokenException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::IncorrectKeyMaterialException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::InvalidCiphertextException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::InvalidImportTokenException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ImportKeyMaterialErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), ImportKeyMaterialErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3367,71 +3522,77 @@ impl ImportKeyMaterialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::DependencyTimeoutError(_) + ImportKeyMaterialErrorKind::DependencyTimeoutException(_) ) } - pub fn is_expired_import_token_error(&self) -> bool { + pub fn is_expired_import_token_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::ExpiredImportTokenError(_) + ImportKeyMaterialErrorKind::ExpiredImportTokenException(_) ) } - pub fn is_incorrect_key_material_error(&self) -> bool { + pub fn is_incorrect_key_material_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::IncorrectKeyMaterialError(_) + ImportKeyMaterialErrorKind::IncorrectKeyMaterialException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ImportKeyMaterialErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + ImportKeyMaterialErrorKind::InvalidArnException(_) + ) } - pub fn is_invalid_ciphertext_error(&self) -> bool { + pub fn is_invalid_ciphertext_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::InvalidCiphertextError(_) + ImportKeyMaterialErrorKind::InvalidCiphertextException(_) ) } - pub fn is_invalid_import_token_error(&self) -> bool { + pub fn is_invalid_import_token_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::InvalidImportTokenError(_) + ImportKeyMaterialErrorKind::InvalidImportTokenException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ImportKeyMaterialErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + ImportKeyMaterialErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::KMSInvalidStateError(_) + ImportKeyMaterialErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ImportKeyMaterialErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ImportKeyMaterialErrorKind::NotFoundException(_)) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - ImportKeyMaterialErrorKind::UnsupportedOperationError(_) + ImportKeyMaterialErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for ImportKeyMaterialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ImportKeyMaterialErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::ExpiredImportTokenError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::IncorrectKeyMaterialError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::InvalidArnError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::InvalidCiphertextError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::InvalidImportTokenError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::KMSInternalError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::NotFoundError(_inner) => Some(_inner), - ImportKeyMaterialErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::ExpiredImportTokenException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::IncorrectKeyMaterialException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::InvalidArnException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::InvalidCiphertextException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::InvalidImportTokenException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::KmsInternalException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::NotFoundException(_inner) => Some(_inner), + ImportKeyMaterialErrorKind::UnsupportedOperationException(_inner) => Some(_inner), ImportKeyMaterialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3446,22 +3607,22 @@ pub struct ListAliasesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAliasesErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAliasesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAliasesErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::InvalidMarkerError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListAliasesErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::InvalidMarkerException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListAliasesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3510,30 +3671,33 @@ impl ListAliasesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ListAliasesErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, ListAliasesErrorKind::InvalidArnException(_)) } - pub fn is_invalid_marker_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::InvalidMarkerError(_)) + pub fn is_invalid_marker_exception(&self) -> bool { + matches!(&self.kind, ListAliasesErrorKind::InvalidMarkerException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, ListAliasesErrorKind::KmsInternalException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListAliasesErrorKind::NotFoundException(_)) } } impl std::error::Error for ListAliasesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAliasesErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ListAliasesErrorKind::InvalidArnError(_inner) => Some(_inner), - ListAliasesErrorKind::InvalidMarkerError(_inner) => Some(_inner), - ListAliasesErrorKind::KMSInternalError(_inner) => Some(_inner), - ListAliasesErrorKind::NotFoundError(_inner) => Some(_inner), + ListAliasesErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ListAliasesErrorKind::InvalidArnException(_inner) => Some(_inner), + ListAliasesErrorKind::InvalidMarkerException(_inner) => Some(_inner), + ListAliasesErrorKind::KmsInternalException(_inner) => Some(_inner), + ListAliasesErrorKind::NotFoundException(_inner) => Some(_inner), ListAliasesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3548,26 +3712,26 @@ pub struct ListGrantsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListGrantsErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - InvalidGrantIdError(crate::error::InvalidGrantIdError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + InvalidGrantIdException(crate::error::InvalidGrantIdException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListGrantsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListGrantsErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::InvalidGrantIdError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::InvalidMarkerError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - ListGrantsErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListGrantsErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::InvalidGrantIdException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::InvalidMarkerException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + ListGrantsErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListGrantsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3616,38 +3780,41 @@ impl ListGrantsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ListGrantsErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::InvalidArnException(_)) } - pub fn is_invalid_grant_id_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::InvalidGrantIdError(_)) + pub fn is_invalid_grant_id_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::InvalidGrantIdException(_)) } - pub fn is_invalid_marker_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::InvalidMarkerError(_)) + pub fn is_invalid_marker_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::InvalidMarkerException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListGrantsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListGrantsErrorKind::NotFoundException(_)) } } impl std::error::Error for ListGrantsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListGrantsErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ListGrantsErrorKind::InvalidArnError(_inner) => Some(_inner), - ListGrantsErrorKind::InvalidGrantIdError(_inner) => Some(_inner), - ListGrantsErrorKind::InvalidMarkerError(_inner) => Some(_inner), - ListGrantsErrorKind::KMSInternalError(_inner) => Some(_inner), - ListGrantsErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - ListGrantsErrorKind::NotFoundError(_inner) => Some(_inner), + ListGrantsErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ListGrantsErrorKind::InvalidArnException(_inner) => Some(_inner), + ListGrantsErrorKind::InvalidGrantIdException(_inner) => Some(_inner), + ListGrantsErrorKind::InvalidMarkerException(_inner) => Some(_inner), + ListGrantsErrorKind::KmsInternalException(_inner) => Some(_inner), + ListGrantsErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + ListGrantsErrorKind::NotFoundException(_inner) => Some(_inner), ListGrantsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3662,22 +3829,22 @@ pub struct ListKeyPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListKeyPoliciesErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListKeyPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListKeyPoliciesErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ListKeyPoliciesErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ListKeyPoliciesErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ListKeyPoliciesErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - ListKeyPoliciesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListKeyPoliciesErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ListKeyPoliciesErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ListKeyPoliciesErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ListKeyPoliciesErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + ListKeyPoliciesErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListKeyPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3726,36 +3893,39 @@ impl ListKeyPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - ListKeyPoliciesErrorKind::DependencyTimeoutError(_) + ListKeyPoliciesErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ListKeyPoliciesErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, ListKeyPoliciesErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ListKeyPoliciesErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + ListKeyPoliciesErrorKind::KmsInternalException(_) + ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - ListKeyPoliciesErrorKind::KMSInvalidStateError(_) + ListKeyPoliciesErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListKeyPoliciesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListKeyPoliciesErrorKind::NotFoundException(_)) } } impl std::error::Error for ListKeyPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListKeyPoliciesErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ListKeyPoliciesErrorKind::InvalidArnError(_inner) => Some(_inner), - ListKeyPoliciesErrorKind::KMSInternalError(_inner) => Some(_inner), - ListKeyPoliciesErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - ListKeyPoliciesErrorKind::NotFoundError(_inner) => Some(_inner), + ListKeyPoliciesErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ListKeyPoliciesErrorKind::InvalidArnException(_inner) => Some(_inner), + ListKeyPoliciesErrorKind::KmsInternalException(_inner) => Some(_inner), + ListKeyPoliciesErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + ListKeyPoliciesErrorKind::NotFoundException(_inner) => Some(_inner), ListKeyPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3770,18 +3940,18 @@ pub struct ListKeysError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListKeysErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListKeysError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListKeysErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ListKeysErrorKind::InvalidMarkerError(_inner) => _inner.fmt(f), - ListKeysErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + ListKeysErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ListKeysErrorKind::InvalidMarkerException(_inner) => _inner.fmt(f), + ListKeysErrorKind::KmsInternalException(_inner) => _inner.fmt(f), ListKeysErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3830,22 +4000,22 @@ impl ListKeysError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, ListKeysErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!(&self.kind, ListKeysErrorKind::DependencyTimeoutException(_)) } - pub fn is_invalid_marker_error(&self) -> bool { - matches!(&self.kind, ListKeysErrorKind::InvalidMarkerError(_)) + pub fn is_invalid_marker_exception(&self) -> bool { + matches!(&self.kind, ListKeysErrorKind::InvalidMarkerException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ListKeysErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, ListKeysErrorKind::KmsInternalException(_)) } } impl std::error::Error for ListKeysError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListKeysErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ListKeysErrorKind::InvalidMarkerError(_inner) => Some(_inner), - ListKeysErrorKind::KMSInternalError(_inner) => Some(_inner), + ListKeysErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ListKeysErrorKind::InvalidMarkerException(_inner) => Some(_inner), + ListKeysErrorKind::KmsInternalException(_inner) => Some(_inner), ListKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3860,20 +4030,20 @@ pub struct ListResourceTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListResourceTagsErrorKind { - InvalidArnError(crate::error::InvalidArnError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), - NotFoundError(crate::error::NotFoundError), + InvalidArnException(crate::error::InvalidArnException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListResourceTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListResourceTagsErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ListResourceTagsErrorKind::InvalidMarkerError(_inner) => _inner.fmt(f), - ListResourceTagsErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ListResourceTagsErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListResourceTagsErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ListResourceTagsErrorKind::InvalidMarkerException(_inner) => _inner.fmt(f), + ListResourceTagsErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ListResourceTagsErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListResourceTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3922,26 +4092,35 @@ impl ListResourceTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ListResourceTagsErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + ListResourceTagsErrorKind::InvalidArnException(_) + ) } - pub fn is_invalid_marker_error(&self) -> bool { - matches!(&self.kind, ListResourceTagsErrorKind::InvalidMarkerError(_)) + pub fn is_invalid_marker_exception(&self) -> bool { + matches!( + &self.kind, + ListResourceTagsErrorKind::InvalidMarkerException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ListResourceTagsErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!( + &self.kind, + ListResourceTagsErrorKind::KmsInternalException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListResourceTagsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListResourceTagsErrorKind::NotFoundException(_)) } } impl std::error::Error for ListResourceTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListResourceTagsErrorKind::InvalidArnError(_inner) => Some(_inner), - ListResourceTagsErrorKind::InvalidMarkerError(_inner) => Some(_inner), - ListResourceTagsErrorKind::KMSInternalError(_inner) => Some(_inner), - ListResourceTagsErrorKind::NotFoundError(_inner) => Some(_inner), + ListResourceTagsErrorKind::InvalidArnException(_inner) => Some(_inner), + ListResourceTagsErrorKind::InvalidMarkerException(_inner) => Some(_inner), + ListResourceTagsErrorKind::KmsInternalException(_inner) => Some(_inner), + ListResourceTagsErrorKind::NotFoundException(_inner) => Some(_inner), ListResourceTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3956,22 +4135,22 @@ pub struct ListRetirableGrantsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListRetirableGrantsErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListRetirableGrantsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListRetirableGrantsErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ListRetirableGrantsErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ListRetirableGrantsErrorKind::InvalidMarkerError(_inner) => _inner.fmt(f), - ListRetirableGrantsErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ListRetirableGrantsErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListRetirableGrantsErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ListRetirableGrantsErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ListRetirableGrantsErrorKind::InvalidMarkerException(_inner) => _inner.fmt(f), + ListRetirableGrantsErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ListRetirableGrantsErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListRetirableGrantsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4020,39 +4199,45 @@ impl ListRetirableGrantsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - ListRetirableGrantsErrorKind::DependencyTimeoutError(_) + ListRetirableGrantsErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ListRetirableGrantsErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + ListRetirableGrantsErrorKind::InvalidArnException(_) + ) } - pub fn is_invalid_marker_error(&self) -> bool { + pub fn is_invalid_marker_exception(&self) -> bool { matches!( &self.kind, - ListRetirableGrantsErrorKind::InvalidMarkerError(_) + ListRetirableGrantsErrorKind::InvalidMarkerException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - ListRetirableGrantsErrorKind::KMSInternalError(_) + ListRetirableGrantsErrorKind::KmsInternalException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListRetirableGrantsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListRetirableGrantsErrorKind::NotFoundException(_) + ) } } impl std::error::Error for ListRetirableGrantsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListRetirableGrantsErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ListRetirableGrantsErrorKind::InvalidArnError(_inner) => Some(_inner), - ListRetirableGrantsErrorKind::InvalidMarkerError(_inner) => Some(_inner), - ListRetirableGrantsErrorKind::KMSInternalError(_inner) => Some(_inner), - ListRetirableGrantsErrorKind::NotFoundError(_inner) => Some(_inner), + ListRetirableGrantsErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ListRetirableGrantsErrorKind::InvalidArnException(_inner) => Some(_inner), + ListRetirableGrantsErrorKind::InvalidMarkerException(_inner) => Some(_inner), + ListRetirableGrantsErrorKind::KmsInternalException(_inner) => Some(_inner), + ListRetirableGrantsErrorKind::NotFoundException(_inner) => Some(_inner), ListRetirableGrantsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4067,28 +4252,28 @@ pub struct PutKeyPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutKeyPolicyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NotFoundError(crate::error::NotFoundError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NotFoundException(crate::error::NotFoundException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutKeyPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutKeyPolicyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutKeyPolicyErrorKind::UnsupportedOperationError(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutKeyPolicyErrorKind::UnsupportedOperationException(_inner) => _inner.fmt(f), PutKeyPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4137,48 +4322,54 @@ impl PutKeyPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + PutKeyPolicyErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, PutKeyPolicyErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, PutKeyPolicyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + PutKeyPolicyErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, PutKeyPolicyErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - PutKeyPolicyErrorKind::MalformedPolicyDocumentError(_) + PutKeyPolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutKeyPolicyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PutKeyPolicyErrorKind::NotFoundException(_)) } - pub fn is_unsupported_operation_error(&self) -> bool { + pub fn is_unsupported_operation_exception(&self) -> bool { matches!( &self.kind, - PutKeyPolicyErrorKind::UnsupportedOperationError(_) + PutKeyPolicyErrorKind::UnsupportedOperationException(_) ) } } impl std::error::Error for PutKeyPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutKeyPolicyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::InvalidArnError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::KMSInternalError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::NotFoundError(_inner) => Some(_inner), - PutKeyPolicyErrorKind::UnsupportedOperationError(_inner) => Some(_inner), + PutKeyPolicyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::InvalidArnException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::KmsInternalException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::NotFoundException(_inner) => Some(_inner), + PutKeyPolicyErrorKind::UnsupportedOperationException(_inner) => Some(_inner), PutKeyPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4193,32 +4384,32 @@ pub struct ReEncryptError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ReEncryptErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - IncorrectKeyError(crate::error::IncorrectKeyError), - InvalidCiphertextError(crate::error::InvalidCiphertextError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + IncorrectKeyException(crate::error::IncorrectKeyException), + InvalidCiphertextException(crate::error::InvalidCiphertextException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ReEncryptError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ReEncryptErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::DisabledError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::IncorrectKeyError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::InvalidCiphertextError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - ReEncryptErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ReEncryptErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::DisabledException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::IncorrectKeyException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::InvalidCiphertextException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + ReEncryptErrorKind::NotFoundException(_inner) => _inner.fmt(f), ReEncryptErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4267,50 +4458,59 @@ impl ReEncryptError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ReEncryptErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::DisabledException(_)) } - pub fn is_incorrect_key_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::IncorrectKeyError(_)) + pub fn is_incorrect_key_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::IncorrectKeyException(_)) } - pub fn is_invalid_ciphertext_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::InvalidCiphertextError(_)) + pub fn is_invalid_ciphertext_exception(&self) -> bool { + matches!( + &self.kind, + ReEncryptErrorKind::InvalidCiphertextException(_) + ) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!( + &self.kind, + ReEncryptErrorKind::InvalidGrantTokenException(_) + ) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::InvalidKeyUsageException(_)) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::KeyUnavailableException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ReEncryptErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ReEncryptErrorKind::NotFoundException(_)) } } impl std::error::Error for ReEncryptError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ReEncryptErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ReEncryptErrorKind::DisabledError(_inner) => Some(_inner), - ReEncryptErrorKind::IncorrectKeyError(_inner) => Some(_inner), - ReEncryptErrorKind::InvalidCiphertextError(_inner) => Some(_inner), - ReEncryptErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - ReEncryptErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - ReEncryptErrorKind::KeyUnavailableError(_inner) => Some(_inner), - ReEncryptErrorKind::KMSInternalError(_inner) => Some(_inner), - ReEncryptErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - ReEncryptErrorKind::NotFoundError(_inner) => Some(_inner), + ReEncryptErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ReEncryptErrorKind::DisabledException(_inner) => Some(_inner), + ReEncryptErrorKind::IncorrectKeyException(_inner) => Some(_inner), + ReEncryptErrorKind::InvalidCiphertextException(_inner) => Some(_inner), + ReEncryptErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + ReEncryptErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + ReEncryptErrorKind::KeyUnavailableException(_inner) => Some(_inner), + ReEncryptErrorKind::KmsInternalException(_inner) => Some(_inner), + ReEncryptErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + ReEncryptErrorKind::NotFoundException(_inner) => Some(_inner), ReEncryptErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4325,26 +4525,26 @@ pub struct RetireGrantError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RetireGrantErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - InvalidGrantIdError(crate::error::InvalidGrantIdError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + InvalidGrantIdException(crate::error::InvalidGrantIdException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RetireGrantError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RetireGrantErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::InvalidGrantIdError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - RetireGrantErrorKind::NotFoundError(_inner) => _inner.fmt(f), + RetireGrantErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::InvalidGrantIdException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + RetireGrantErrorKind::NotFoundException(_inner) => _inner.fmt(f), RetireGrantErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4393,38 +4593,47 @@ impl RetireGrantError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + RetireGrantErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, RetireGrantErrorKind::InvalidArnException(_)) } - pub fn is_invalid_grant_id_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::InvalidGrantIdError(_)) + pub fn is_invalid_grant_id_exception(&self) -> bool { + matches!(&self.kind, RetireGrantErrorKind::InvalidGrantIdException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!( + &self.kind, + RetireGrantErrorKind::InvalidGrantTokenException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, RetireGrantErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + RetireGrantErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, RetireGrantErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, RetireGrantErrorKind::NotFoundException(_)) } } impl std::error::Error for RetireGrantError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RetireGrantErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - RetireGrantErrorKind::InvalidArnError(_inner) => Some(_inner), - RetireGrantErrorKind::InvalidGrantIdError(_inner) => Some(_inner), - RetireGrantErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - RetireGrantErrorKind::KMSInternalError(_inner) => Some(_inner), - RetireGrantErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - RetireGrantErrorKind::NotFoundError(_inner) => Some(_inner), + RetireGrantErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + RetireGrantErrorKind::InvalidArnException(_inner) => Some(_inner), + RetireGrantErrorKind::InvalidGrantIdException(_inner) => Some(_inner), + RetireGrantErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + RetireGrantErrorKind::KmsInternalException(_inner) => Some(_inner), + RetireGrantErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + RetireGrantErrorKind::NotFoundException(_inner) => Some(_inner), RetireGrantErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4439,24 +4648,24 @@ pub struct RevokeGrantError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RevokeGrantErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - InvalidGrantIdError(crate::error::InvalidGrantIdError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + InvalidGrantIdException(crate::error::InvalidGrantIdException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RevokeGrantError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RevokeGrantErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - RevokeGrantErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - RevokeGrantErrorKind::InvalidGrantIdError(_inner) => _inner.fmt(f), - RevokeGrantErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - RevokeGrantErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - RevokeGrantErrorKind::NotFoundError(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::InvalidGrantIdException(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + RevokeGrantErrorKind::NotFoundException(_inner) => _inner.fmt(f), RevokeGrantErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4505,34 +4714,40 @@ impl RevokeGrantError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + RevokeGrantErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, RevokeGrantErrorKind::InvalidArnException(_)) } - pub fn is_invalid_grant_id_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::InvalidGrantIdError(_)) + pub fn is_invalid_grant_id_exception(&self) -> bool { + matches!(&self.kind, RevokeGrantErrorKind::InvalidGrantIdException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, RevokeGrantErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + RevokeGrantErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, RevokeGrantErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, RevokeGrantErrorKind::NotFoundException(_)) } } impl std::error::Error for RevokeGrantError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RevokeGrantErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - RevokeGrantErrorKind::InvalidArnError(_inner) => Some(_inner), - RevokeGrantErrorKind::InvalidGrantIdError(_inner) => Some(_inner), - RevokeGrantErrorKind::KMSInternalError(_inner) => Some(_inner), - RevokeGrantErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - RevokeGrantErrorKind::NotFoundError(_inner) => Some(_inner), + RevokeGrantErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + RevokeGrantErrorKind::InvalidArnException(_inner) => Some(_inner), + RevokeGrantErrorKind::InvalidGrantIdException(_inner) => Some(_inner), + RevokeGrantErrorKind::KmsInternalException(_inner) => Some(_inner), + RevokeGrantErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + RevokeGrantErrorKind::NotFoundException(_inner) => Some(_inner), RevokeGrantErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4547,22 +4762,22 @@ pub struct ScheduleKeyDeletionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ScheduleKeyDeletionErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ScheduleKeyDeletionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ScheduleKeyDeletionErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - ScheduleKeyDeletionErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - ScheduleKeyDeletionErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - ScheduleKeyDeletionErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - ScheduleKeyDeletionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ScheduleKeyDeletionErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + ScheduleKeyDeletionErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + ScheduleKeyDeletionErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + ScheduleKeyDeletionErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + ScheduleKeyDeletionErrorKind::NotFoundException(_inner) => _inner.fmt(f), ScheduleKeyDeletionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4611,39 +4826,45 @@ impl ScheduleKeyDeletionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - ScheduleKeyDeletionErrorKind::DependencyTimeoutError(_) + ScheduleKeyDeletionErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, ScheduleKeyDeletionErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!( + &self.kind, + ScheduleKeyDeletionErrorKind::InvalidArnException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - ScheduleKeyDeletionErrorKind::KMSInternalError(_) + ScheduleKeyDeletionErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - ScheduleKeyDeletionErrorKind::KMSInvalidStateError(_) + ScheduleKeyDeletionErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ScheduleKeyDeletionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ScheduleKeyDeletionErrorKind::NotFoundException(_) + ) } } impl std::error::Error for ScheduleKeyDeletionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ScheduleKeyDeletionErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - ScheduleKeyDeletionErrorKind::InvalidArnError(_inner) => Some(_inner), - ScheduleKeyDeletionErrorKind::KMSInternalError(_inner) => Some(_inner), - ScheduleKeyDeletionErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - ScheduleKeyDeletionErrorKind::NotFoundError(_inner) => Some(_inner), + ScheduleKeyDeletionErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + ScheduleKeyDeletionErrorKind::InvalidArnException(_inner) => Some(_inner), + ScheduleKeyDeletionErrorKind::KmsInternalException(_inner) => Some(_inner), + ScheduleKeyDeletionErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + ScheduleKeyDeletionErrorKind::NotFoundException(_inner) => Some(_inner), ScheduleKeyDeletionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4658,28 +4879,28 @@ pub struct SignError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SignErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SignError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SignErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - SignErrorKind::DisabledError(_inner) => _inner.fmt(f), - SignErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - SignErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - SignErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - SignErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - SignErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - SignErrorKind::NotFoundError(_inner) => _inner.fmt(f), + SignErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + SignErrorKind::DisabledException(_inner) => _inner.fmt(f), + SignErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + SignErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + SignErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + SignErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + SignErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + SignErrorKind::NotFoundException(_inner) => _inner.fmt(f), SignErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4728,42 +4949,42 @@ impl SignError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::DependencyTimeoutException(_)) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::DisabledException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::InvalidGrantTokenException(_)) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::InvalidKeyUsageException(_)) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::KeyUnavailableException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SignErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, SignErrorKind::NotFoundException(_)) } } impl std::error::Error for SignError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SignErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - SignErrorKind::DisabledError(_inner) => Some(_inner), - SignErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - SignErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - SignErrorKind::KeyUnavailableError(_inner) => Some(_inner), - SignErrorKind::KMSInternalError(_inner) => Some(_inner), - SignErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - SignErrorKind::NotFoundError(_inner) => Some(_inner), + SignErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + SignErrorKind::DisabledException(_inner) => Some(_inner), + SignErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + SignErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + SignErrorKind::KeyUnavailableException(_inner) => Some(_inner), + SignErrorKind::KmsInternalException(_inner) => Some(_inner), + SignErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + SignErrorKind::NotFoundException(_inner) => Some(_inner), SignErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4778,24 +4999,24 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TagError(crate::error::TagError), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TagException(crate::error::TagException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - TagResourceErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - TagResourceErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - TagResourceErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - TagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TagError(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + TagResourceErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + TagResourceErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + TagResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + TagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TagException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4844,34 +5065,37 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::NotFoundException(_)) } - pub fn is_tag_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TagError(_)) + pub fn is_tag_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::TagException(_)) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::InvalidArnError(_inner) => Some(_inner), - TagResourceErrorKind::KMSInternalError(_inner) => Some(_inner), - TagResourceErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - TagResourceErrorKind::LimitExceededError(_inner) => Some(_inner), - TagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::TagError(_inner) => Some(_inner), + TagResourceErrorKind::InvalidArnException(_inner) => Some(_inner), + TagResourceErrorKind::KmsInternalException(_inner) => Some(_inner), + TagResourceErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + TagResourceErrorKind::LimitExceededException(_inner) => Some(_inner), + TagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::TagException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4886,22 +5110,22 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), - TagError(crate::error::TagError), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), + TagException(crate::error::TagException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TagError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TagException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4950,30 +5174,33 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_arn_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidArnError(_)) + pub fn is_invalid_arn_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::InvalidArnException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::NotFoundException(_)) } - pub fn is_tag_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TagError(_)) + pub fn is_tag_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::TagException(_)) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::InvalidArnError(_inner) => Some(_inner), - UntagResourceErrorKind::KMSInternalError(_inner) => Some(_inner), - UntagResourceErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - UntagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::TagError(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidArnException(_inner) => Some(_inner), + UntagResourceErrorKind::KmsInternalException(_inner) => Some(_inner), + UntagResourceErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + UntagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::TagException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4988,22 +5215,22 @@ pub struct UpdateAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAliasErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAliasErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::NotFoundError(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f), UpdateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5052,30 +5279,36 @@ impl UpdateAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::DependencyTimeoutException(_) + ) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, UpdateAliasErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::KmsInvalidStateException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, UpdateAliasErrorKind::LimitExceededException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateAliasErrorKind::NotFoundException(_)) } } impl std::error::Error for UpdateAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAliasErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - UpdateAliasErrorKind::KMSInternalError(_inner) => Some(_inner), - UpdateAliasErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - UpdateAliasErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateAliasErrorKind::NotFoundError(_inner) => Some(_inner), + UpdateAliasErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + UpdateAliasErrorKind::KmsInternalException(_inner) => Some(_inner), + UpdateAliasErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + UpdateAliasErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateAliasErrorKind::NotFoundException(_inner) => Some(_inner), UpdateAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5090,32 +5323,42 @@ pub struct UpdateCustomKeyStoreError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateCustomKeyStoreErrorKind { - CloudHsmClusterInvalidConfigurationError( - crate::error::CloudHsmClusterInvalidConfigurationError, + CloudHsmClusterInvalidConfigurationException( + crate::error::CloudHsmClusterInvalidConfigurationException, ), - CloudHsmClusterNotActiveError(crate::error::CloudHsmClusterNotActiveError), - CloudHsmClusterNotFoundError(crate::error::CloudHsmClusterNotFoundError), - CloudHsmClusterNotRelatedError(crate::error::CloudHsmClusterNotRelatedError), - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNameInUseError(crate::error::CustomKeyStoreNameInUseError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - KMSInternalError(crate::error::KMSInternalError), + CloudHsmClusterNotActiveException(crate::error::CloudHsmClusterNotActiveException), + CloudHsmClusterNotFoundException(crate::error::CloudHsmClusterNotFoundException), + CloudHsmClusterNotRelatedException(crate::error::CloudHsmClusterNotRelatedException), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNameInUseException(crate::error::CustomKeyStoreNameInUseException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + KmsInternalException(crate::error::KmsInternalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateCustomKeyStoreError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + _inner.fmt(f) + } + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { _inner.fmt(f) } - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => _inner.fmt(f), - UpdateCustomKeyStoreErrorKind::KMSInternalError(_inner) => _inner.fmt(f), + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedException(_inner) => { + _inner.fmt(f) + } + UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { + _inner.fmt(f) + } + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_inner) => { + _inner.fmt(f) + } + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => _inner.fmt(f), + UpdateCustomKeyStoreErrorKind::KmsInternalException(_inner) => _inner.fmt(f), UpdateCustomKeyStoreErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5164,68 +5407,74 @@ impl UpdateCustomKeyStoreError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_cloud_hsm_cluster_invalid_configuration_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_) + UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_) ) } - pub fn is_cloud_hsm_cluster_not_active_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_active_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_) + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_) ) } - pub fn is_cloud_hsm_cluster_not_found_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_) + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_) ) } - pub fn is_cloud_hsm_cluster_not_related_error(&self) -> bool { + pub fn is_cloud_hsm_cluster_not_related_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedError(_) + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedException(_) ) } - pub fn is_custom_key_store_invalid_state_error(&self) -> bool { + pub fn is_custom_key_store_invalid_state_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_) + UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_) ) } - pub fn is_custom_key_store_name_in_use_error(&self) -> bool { + pub fn is_custom_key_store_name_in_use_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_) + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_) ) } - pub fn is_custom_key_store_not_found_error(&self) -> bool { + pub fn is_custom_key_store_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_) + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomKeyStoreErrorKind::KMSInternalError(_) + UpdateCustomKeyStoreErrorKind::KmsInternalException(_) ) } } impl std::error::Error for UpdateCustomKeyStoreError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(_inner) => { + UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(_inner) => { + Some(_inner) + } + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(_inner) => { + Some(_inner) + } + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(_inner) => Some(_inner), + UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedException(_inner) => { + Some(_inner) + } + UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(_inner) => { Some(_inner) } - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(_inner) => Some(_inner), - UpdateCustomKeyStoreErrorKind::KMSInternalError(_inner) => Some(_inner), + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(_inner) => Some(_inner), + UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(_inner) => Some(_inner), + UpdateCustomKeyStoreErrorKind::KmsInternalException(_inner) => Some(_inner), UpdateCustomKeyStoreErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5240,22 +5489,22 @@ pub struct UpdateKeyDescriptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateKeyDescriptionErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - InvalidArnError(crate::error::InvalidArnError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + InvalidArnException(crate::error::InvalidArnException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateKeyDescriptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateKeyDescriptionErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - UpdateKeyDescriptionErrorKind::InvalidArnError(_inner) => _inner.fmt(f), - UpdateKeyDescriptionErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - UpdateKeyDescriptionErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - UpdateKeyDescriptionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + UpdateKeyDescriptionErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + UpdateKeyDescriptionErrorKind::InvalidArnException(_inner) => _inner.fmt(f), + UpdateKeyDescriptionErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + UpdateKeyDescriptionErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + UpdateKeyDescriptionErrorKind::NotFoundException(_inner) => _inner.fmt(f), UpdateKeyDescriptionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5304,42 +5553,45 @@ impl UpdateKeyDescriptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { + pub fn is_dependency_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateKeyDescriptionErrorKind::DependencyTimeoutError(_) + UpdateKeyDescriptionErrorKind::DependencyTimeoutException(_) ) } - pub fn is_invalid_arn_error(&self) -> bool { + pub fn is_invalid_arn_exception(&self) -> bool { matches!( &self.kind, - UpdateKeyDescriptionErrorKind::InvalidArnError(_) + UpdateKeyDescriptionErrorKind::InvalidArnException(_) ) } - pub fn is_kms_internal_error(&self) -> bool { + pub fn is_kms_internal_exception(&self) -> bool { matches!( &self.kind, - UpdateKeyDescriptionErrorKind::KMSInternalError(_) + UpdateKeyDescriptionErrorKind::KmsInternalException(_) ) } - pub fn is_kms_invalid_state_error(&self) -> bool { + pub fn is_kms_invalid_state_exception(&self) -> bool { matches!( &self.kind, - UpdateKeyDescriptionErrorKind::KMSInvalidStateError(_) + UpdateKeyDescriptionErrorKind::KmsInvalidStateException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateKeyDescriptionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateKeyDescriptionErrorKind::NotFoundException(_) + ) } } impl std::error::Error for UpdateKeyDescriptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateKeyDescriptionErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - UpdateKeyDescriptionErrorKind::InvalidArnError(_inner) => Some(_inner), - UpdateKeyDescriptionErrorKind::KMSInternalError(_inner) => Some(_inner), - UpdateKeyDescriptionErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - UpdateKeyDescriptionErrorKind::NotFoundError(_inner) => Some(_inner), + UpdateKeyDescriptionErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + UpdateKeyDescriptionErrorKind::InvalidArnException(_inner) => Some(_inner), + UpdateKeyDescriptionErrorKind::KmsInternalException(_inner) => Some(_inner), + UpdateKeyDescriptionErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + UpdateKeyDescriptionErrorKind::NotFoundException(_inner) => Some(_inner), UpdateKeyDescriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5354,30 +5606,30 @@ pub struct VerifyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum VerifyErrorKind { - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - KeyUnavailableError(crate::error::KeyUnavailableError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidSignatureError(crate::error::KMSInvalidSignatureError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - NotFoundError(crate::error::NotFoundError), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + KeyUnavailableException(crate::error::KeyUnavailableException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidSignatureException(crate::error::KmsInvalidSignatureException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for VerifyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - VerifyErrorKind::DependencyTimeoutError(_inner) => _inner.fmt(f), - VerifyErrorKind::DisabledError(_inner) => _inner.fmt(f), - VerifyErrorKind::InvalidGrantTokenError(_inner) => _inner.fmt(f), - VerifyErrorKind::InvalidKeyUsageError(_inner) => _inner.fmt(f), - VerifyErrorKind::KeyUnavailableError(_inner) => _inner.fmt(f), - VerifyErrorKind::KMSInternalError(_inner) => _inner.fmt(f), - VerifyErrorKind::KMSInvalidSignatureError(_inner) => _inner.fmt(f), - VerifyErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - VerifyErrorKind::NotFoundError(_inner) => _inner.fmt(f), + VerifyErrorKind::DependencyTimeoutException(_inner) => _inner.fmt(f), + VerifyErrorKind::DisabledException(_inner) => _inner.fmt(f), + VerifyErrorKind::InvalidGrantTokenException(_inner) => _inner.fmt(f), + VerifyErrorKind::InvalidKeyUsageException(_inner) => _inner.fmt(f), + VerifyErrorKind::KeyUnavailableException(_inner) => _inner.fmt(f), + VerifyErrorKind::KmsInternalException(_inner) => _inner.fmt(f), + VerifyErrorKind::KmsInvalidSignatureException(_inner) => _inner.fmt(f), + VerifyErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + VerifyErrorKind::NotFoundException(_inner) => _inner.fmt(f), VerifyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5426,46 +5678,46 @@ impl VerifyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_dependency_timeout_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::DependencyTimeoutError(_)) + pub fn is_dependency_timeout_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::DependencyTimeoutException(_)) } - pub fn is_disabled_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::DisabledError(_)) + pub fn is_disabled_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::DisabledException(_)) } - pub fn is_invalid_grant_token_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::InvalidGrantTokenError(_)) + pub fn is_invalid_grant_token_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::InvalidGrantTokenException(_)) } - pub fn is_invalid_key_usage_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::InvalidKeyUsageError(_)) + pub fn is_invalid_key_usage_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::InvalidKeyUsageException(_)) } - pub fn is_key_unavailable_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::KeyUnavailableError(_)) + pub fn is_key_unavailable_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::KeyUnavailableException(_)) } - pub fn is_kms_internal_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::KMSInternalError(_)) + pub fn is_kms_internal_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::KmsInternalException(_)) } - pub fn is_kms_invalid_signature_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::KMSInvalidSignatureError(_)) + pub fn is_kms_invalid_signature_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::KmsInvalidSignatureException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::KmsInvalidStateException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, VerifyErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, VerifyErrorKind::NotFoundException(_)) } } impl std::error::Error for VerifyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - VerifyErrorKind::DependencyTimeoutError(_inner) => Some(_inner), - VerifyErrorKind::DisabledError(_inner) => Some(_inner), - VerifyErrorKind::InvalidGrantTokenError(_inner) => Some(_inner), - VerifyErrorKind::InvalidKeyUsageError(_inner) => Some(_inner), - VerifyErrorKind::KeyUnavailableError(_inner) => Some(_inner), - VerifyErrorKind::KMSInternalError(_inner) => Some(_inner), - VerifyErrorKind::KMSInvalidSignatureError(_inner) => Some(_inner), - VerifyErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - VerifyErrorKind::NotFoundError(_inner) => Some(_inner), + VerifyErrorKind::DependencyTimeoutException(_inner) => Some(_inner), + VerifyErrorKind::DisabledException(_inner) => Some(_inner), + VerifyErrorKind::InvalidGrantTokenException(_inner) => Some(_inner), + VerifyErrorKind::InvalidKeyUsageException(_inner) => Some(_inner), + VerifyErrorKind::KeyUnavailableException(_inner) => Some(_inner), + VerifyErrorKind::KmsInternalException(_inner) => Some(_inner), + VerifyErrorKind::KmsInvalidSignatureException(_inner) => Some(_inner), + VerifyErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + VerifyErrorKind::NotFoundException(_inner) => Some(_inner), VerifyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5474,37 +5726,35 @@ impl std::error::Error for VerifyError { ///

    The request was rejected because the specified entity or resource could not be /// found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5519,18 +5769,18 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } @@ -5541,37 +5791,35 @@ impl NotFoundError { /// AWS Key Management Service Developer Guide ///
    .

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInvalidStateError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsInvalidStateException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSInvalidStateError { +impl std::fmt::Debug for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInvalidStateError"); + let mut formatter = f.debug_struct("KmsInvalidStateException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInvalidStateError { +impl KmsInvalidStateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInvalidStateError { +impl std::fmt::Display for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInvalidStateError [KMSInvalidStateException]")?; + write!(f, "KmsInvalidStateException [KMSInvalidStateException]")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for KMSInvalidStateError {} -/// See [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) -pub mod kms_invalid_state_error { - /// A builder for [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) +impl std::error::Error for KmsInvalidStateException {} +/// See [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) +pub mod kms_invalid_state_exception { + /// A builder for [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5586,18 +5834,18 @@ pub mod kms_invalid_state_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn build(self) -> crate::error::KMSInvalidStateError { - crate::error::KMSInvalidStateError { + /// Consumes the builder and constructs a [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn build(self) -> crate::error::KmsInvalidStateException { + crate::error::KmsInvalidStateException { message: self.message, } } } } -impl KMSInvalidStateError { - /// Creates a new builder-style object to manufacture [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn builder() -> crate::error::kms_invalid_state_error::Builder { - crate::error::kms_invalid_state_error::Builder::default() +impl KmsInvalidStateException { + /// Creates a new builder-style object to manufacture [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn builder() -> crate::error::kms_invalid_state_exception::Builder { + crate::error::kms_invalid_state_exception::Builder::default() } } @@ -5605,37 +5853,38 @@ impl KMSInvalidStateError { /// verification fails when it cannot confirm that signature was produced by signing the specified /// message with the specified CMK and signing algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInvalidSignatureError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsInvalidSignatureException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSInvalidSignatureError { +impl std::fmt::Debug for KmsInvalidSignatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInvalidSignatureError"); + let mut formatter = f.debug_struct("KmsInvalidSignatureException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInvalidSignatureError { +impl KmsInvalidSignatureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInvalidSignatureError { +impl std::fmt::Display for KmsInvalidSignatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInvalidSignatureError [KMSInvalidSignatureException]")?; + write!( + f, + "KmsInvalidSignatureException [KMSInvalidSignatureException]" + )?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for KMSInvalidSignatureError {} -/// See [`KMSInvalidSignatureError`](crate::error::KMSInvalidSignatureError) -pub mod kms_invalid_signature_error { - /// A builder for [`KMSInvalidSignatureError`](crate::error::KMSInvalidSignatureError) +impl std::error::Error for KmsInvalidSignatureException {} +/// See [`KmsInvalidSignatureException`](crate::error::KmsInvalidSignatureException) +pub mod kms_invalid_signature_exception { + /// A builder for [`KmsInvalidSignatureException`](crate::error::KmsInvalidSignatureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5650,55 +5899,53 @@ pub mod kms_invalid_signature_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInvalidSignatureError`](crate::error::KMSInvalidSignatureError) - pub fn build(self) -> crate::error::KMSInvalidSignatureError { - crate::error::KMSInvalidSignatureError { + /// Consumes the builder and constructs a [`KmsInvalidSignatureException`](crate::error::KmsInvalidSignatureException) + pub fn build(self) -> crate::error::KmsInvalidSignatureException { + crate::error::KmsInvalidSignatureException { message: self.message, } } } } -impl KMSInvalidSignatureError { - /// Creates a new builder-style object to manufacture [`KMSInvalidSignatureError`](crate::error::KMSInvalidSignatureError) - pub fn builder() -> crate::error::kms_invalid_signature_error::Builder { - crate::error::kms_invalid_signature_error::Builder::default() +impl KmsInvalidSignatureException { + /// Creates a new builder-style object to manufacture [`KmsInvalidSignatureException`](crate::error::KmsInvalidSignatureException) + pub fn builder() -> crate::error::kms_invalid_signature_exception::Builder { + crate::error::kms_invalid_signature_exception::Builder::default() } } ///

    The request was rejected because an internal exception occurred. The request can be /// retried.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInternalError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsInternalException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSInternalError { +impl std::fmt::Debug for KmsInternalException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInternalError"); + let mut formatter = f.debug_struct("KmsInternalException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInternalError { +impl KmsInternalException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInternalError { +impl std::fmt::Display for KmsInternalException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInternalError [KMSInternalException]")?; + write!(f, "KmsInternalException [KMSInternalException]")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for KMSInternalError {} -/// See [`KMSInternalError`](crate::error::KMSInternalError) -pub mod kms_internal_error { - /// A builder for [`KMSInternalError`](crate::error::KMSInternalError) +impl std::error::Error for KmsInternalException {} +/// See [`KmsInternalException`](crate::error::KmsInternalException) +pub mod kms_internal_exception { + /// A builder for [`KmsInternalException`](crate::error::KmsInternalException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5713,55 +5960,53 @@ pub mod kms_internal_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInternalError`](crate::error::KMSInternalError) - pub fn build(self) -> crate::error::KMSInternalError { - crate::error::KMSInternalError { + /// Consumes the builder and constructs a [`KmsInternalException`](crate::error::KmsInternalException) + pub fn build(self) -> crate::error::KmsInternalException { + crate::error::KmsInternalException { message: self.message, } } } } -impl KMSInternalError { - /// Creates a new builder-style object to manufacture [`KMSInternalError`](crate::error::KMSInternalError) - pub fn builder() -> crate::error::kms_internal_error::Builder { - crate::error::kms_internal_error::Builder::default() +impl KmsInternalException { + /// Creates a new builder-style object to manufacture [`KmsInternalException`](crate::error::KmsInternalException) + pub fn builder() -> crate::error::kms_internal_exception::Builder { + crate::error::kms_internal_exception::Builder::default() } } ///

    The request was rejected because the specified CMK was not available. You can retry the /// request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KeyUnavailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KeyUnavailableException { pub message: std::option::Option, } -impl std::fmt::Debug for KeyUnavailableError { +impl std::fmt::Debug for KeyUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KeyUnavailableError"); + let mut formatter = f.debug_struct("KeyUnavailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl KeyUnavailableError { +impl KeyUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KeyUnavailableError { +impl std::fmt::Display for KeyUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KeyUnavailableError [KeyUnavailableException]")?; + write!(f, "KeyUnavailableException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for KeyUnavailableError {} -/// See [`KeyUnavailableError`](crate::error::KeyUnavailableError) -pub mod key_unavailable_error { - /// A builder for [`KeyUnavailableError`](crate::error::KeyUnavailableError) +impl std::error::Error for KeyUnavailableException {} +/// See [`KeyUnavailableException`](crate::error::KeyUnavailableException) +pub mod key_unavailable_exception { + /// A builder for [`KeyUnavailableException`](crate::error::KeyUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5776,18 +6021,18 @@ pub mod key_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`KeyUnavailableError`](crate::error::KeyUnavailableError) - pub fn build(self) -> crate::error::KeyUnavailableError { - crate::error::KeyUnavailableError { + /// Consumes the builder and constructs a [`KeyUnavailableException`](crate::error::KeyUnavailableException) + pub fn build(self) -> crate::error::KeyUnavailableException { + crate::error::KeyUnavailableException { message: self.message, } } } } -impl KeyUnavailableError { - /// Creates a new builder-style object to manufacture [`KeyUnavailableError`](crate::error::KeyUnavailableError) - pub fn builder() -> crate::error::key_unavailable_error::Builder { - crate::error::key_unavailable_error::Builder::default() +impl KeyUnavailableException { + /// Creates a new builder-style object to manufacture [`KeyUnavailableException`](crate::error::KeyUnavailableException) + pub fn builder() -> crate::error::key_unavailable_exception::Builder { + crate::error::key_unavailable_exception::Builder::default() } } @@ -5809,37 +6054,35 @@ impl KeyUnavailableError { /// a CMK, use the DescribeKey operation.

    ///

    To find the encryption or signing algorithms supported for a particular CMK, use the DescribeKey operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidKeyUsageError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidKeyUsageException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidKeyUsageError { +impl std::fmt::Debug for InvalidKeyUsageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidKeyUsageError"); + let mut formatter = f.debug_struct("InvalidKeyUsageException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidKeyUsageError { +impl InvalidKeyUsageException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidKeyUsageError { +impl std::fmt::Display for InvalidKeyUsageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidKeyUsageError [InvalidKeyUsageException]")?; + write!(f, "InvalidKeyUsageException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for InvalidKeyUsageError {} -/// See [`InvalidKeyUsageError`](crate::error::InvalidKeyUsageError) -pub mod invalid_key_usage_error { - /// A builder for [`InvalidKeyUsageError`](crate::error::InvalidKeyUsageError) +impl std::error::Error for InvalidKeyUsageException {} +/// See [`InvalidKeyUsageException`](crate::error::InvalidKeyUsageException) +pub mod invalid_key_usage_exception { + /// A builder for [`InvalidKeyUsageException`](crate::error::InvalidKeyUsageException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5854,54 +6097,52 @@ pub mod invalid_key_usage_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidKeyUsageError`](crate::error::InvalidKeyUsageError) - pub fn build(self) -> crate::error::InvalidKeyUsageError { - crate::error::InvalidKeyUsageError { + /// Consumes the builder and constructs a [`InvalidKeyUsageException`](crate::error::InvalidKeyUsageException) + pub fn build(self) -> crate::error::InvalidKeyUsageException { + crate::error::InvalidKeyUsageException { message: self.message, } } } } -impl InvalidKeyUsageError { - /// Creates a new builder-style object to manufacture [`InvalidKeyUsageError`](crate::error::InvalidKeyUsageError) - pub fn builder() -> crate::error::invalid_key_usage_error::Builder { - crate::error::invalid_key_usage_error::Builder::default() +impl InvalidKeyUsageException { + /// Creates a new builder-style object to manufacture [`InvalidKeyUsageException`](crate::error::InvalidKeyUsageException) + pub fn builder() -> crate::error::invalid_key_usage_exception::Builder { + crate::error::invalid_key_usage_exception::Builder::default() } } ///

    The request was rejected because the specified grant token is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidGrantTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidGrantTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidGrantTokenError { +impl std::fmt::Debug for InvalidGrantTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidGrantTokenError"); + let mut formatter = f.debug_struct("InvalidGrantTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidGrantTokenError { +impl InvalidGrantTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidGrantTokenError { +impl std::fmt::Display for InvalidGrantTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidGrantTokenError [InvalidGrantTokenException]")?; + write!(f, "InvalidGrantTokenException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for InvalidGrantTokenError {} -/// See [`InvalidGrantTokenError`](crate::error::InvalidGrantTokenError) -pub mod invalid_grant_token_error { - /// A builder for [`InvalidGrantTokenError`](crate::error::InvalidGrantTokenError) +impl std::error::Error for InvalidGrantTokenException {} +/// See [`InvalidGrantTokenException`](crate::error::InvalidGrantTokenException) +pub mod invalid_grant_token_exception { + /// A builder for [`InvalidGrantTokenException`](crate::error::InvalidGrantTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5916,54 +6157,52 @@ pub mod invalid_grant_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidGrantTokenError`](crate::error::InvalidGrantTokenError) - pub fn build(self) -> crate::error::InvalidGrantTokenError { - crate::error::InvalidGrantTokenError { + /// Consumes the builder and constructs a [`InvalidGrantTokenException`](crate::error::InvalidGrantTokenException) + pub fn build(self) -> crate::error::InvalidGrantTokenException { + crate::error::InvalidGrantTokenException { message: self.message, } } } } -impl InvalidGrantTokenError { - /// Creates a new builder-style object to manufacture [`InvalidGrantTokenError`](crate::error::InvalidGrantTokenError) - pub fn builder() -> crate::error::invalid_grant_token_error::Builder { - crate::error::invalid_grant_token_error::Builder::default() +impl InvalidGrantTokenException { + /// Creates a new builder-style object to manufacture [`InvalidGrantTokenException`](crate::error::InvalidGrantTokenException) + pub fn builder() -> crate::error::invalid_grant_token_exception::Builder { + crate::error::invalid_grant_token_exception::Builder::default() } } ///

    The request was rejected because the specified CMK is not enabled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DisabledError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DisabledException { pub message: std::option::Option, } -impl std::fmt::Debug for DisabledError { +impl std::fmt::Debug for DisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisabledError"); + let mut formatter = f.debug_struct("DisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl DisabledError { +impl DisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DisabledError { +impl std::fmt::Display for DisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DisabledError [DisabledException]")?; + write!(f, "DisabledException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for DisabledError {} -/// See [`DisabledError`](crate::error::DisabledError) -pub mod disabled_error { - /// A builder for [`DisabledError`](crate::error::DisabledError) +impl std::error::Error for DisabledException {} +/// See [`DisabledException`](crate::error::DisabledException) +pub mod disabled_exception { + /// A builder for [`DisabledException`](crate::error::DisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5978,55 +6217,53 @@ pub mod disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`DisabledError`](crate::error::DisabledError) - pub fn build(self) -> crate::error::DisabledError { - crate::error::DisabledError { + /// Consumes the builder and constructs a [`DisabledException`](crate::error::DisabledException) + pub fn build(self) -> crate::error::DisabledException { + crate::error::DisabledException { message: self.message, } } } } -impl DisabledError { - /// Creates a new builder-style object to manufacture [`DisabledError`](crate::error::DisabledError) - pub fn builder() -> crate::error::disabled_error::Builder { - crate::error::disabled_error::Builder::default() +impl DisabledException { + /// Creates a new builder-style object to manufacture [`DisabledException`](crate::error::DisabledException) + pub fn builder() -> crate::error::disabled_exception::Builder { + crate::error::disabled_exception::Builder::default() } } ///

    The system timed out while trying to fulfill the request. The request can be /// retried.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DependencyTimeoutError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DependencyTimeoutException { pub message: std::option::Option, } -impl std::fmt::Debug for DependencyTimeoutError { +impl std::fmt::Debug for DependencyTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DependencyTimeoutError"); + let mut formatter = f.debug_struct("DependencyTimeoutException"); formatter.field("message", &self.message); formatter.finish() } } -impl DependencyTimeoutError { +impl DependencyTimeoutException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DependencyTimeoutError { +impl std::fmt::Display for DependencyTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DependencyTimeoutError [DependencyTimeoutException]")?; + write!(f, "DependencyTimeoutException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for DependencyTimeoutError {} -/// See [`DependencyTimeoutError`](crate::error::DependencyTimeoutError) -pub mod dependency_timeout_error { - /// A builder for [`DependencyTimeoutError`](crate::error::DependencyTimeoutError) +impl std::error::Error for DependencyTimeoutException {} +/// See [`DependencyTimeoutException`](crate::error::DependencyTimeoutException) +pub mod dependency_timeout_exception { + /// A builder for [`DependencyTimeoutException`](crate::error::DependencyTimeoutException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6041,55 +6278,53 @@ pub mod dependency_timeout_error { self.message = input; self } - /// Consumes the builder and constructs a [`DependencyTimeoutError`](crate::error::DependencyTimeoutError) - pub fn build(self) -> crate::error::DependencyTimeoutError { - crate::error::DependencyTimeoutError { + /// Consumes the builder and constructs a [`DependencyTimeoutException`](crate::error::DependencyTimeoutException) + pub fn build(self) -> crate::error::DependencyTimeoutException { + crate::error::DependencyTimeoutException { message: self.message, } } } } -impl DependencyTimeoutError { - /// Creates a new builder-style object to manufacture [`DependencyTimeoutError`](crate::error::DependencyTimeoutError) - pub fn builder() -> crate::error::dependency_timeout_error::Builder { - crate::error::dependency_timeout_error::Builder::default() +impl DependencyTimeoutException { + /// Creates a new builder-style object to manufacture [`DependencyTimeoutException`](crate::error::DependencyTimeoutException) + pub fn builder() -> crate::error::dependency_timeout_exception::Builder { + crate::error::dependency_timeout_exception::Builder::default() } } ///

    The request was rejected because a specified ARN, or an ARN in a key policy, is not /// valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidArnError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidArnException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidArnError { +impl std::fmt::Debug for InvalidArnException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidArnError"); + let mut formatter = f.debug_struct("InvalidArnException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidArnError { +impl InvalidArnException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidArnError { +impl std::fmt::Display for InvalidArnException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidArnError [InvalidArnException]")?; + write!(f, "InvalidArnException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for InvalidArnError {} -/// See [`InvalidArnError`](crate::error::InvalidArnError) -pub mod invalid_arn_error { - /// A builder for [`InvalidArnError`](crate::error::InvalidArnError) +impl std::error::Error for InvalidArnException {} +/// See [`InvalidArnException`](crate::error::InvalidArnException) +pub mod invalid_arn_exception { + /// A builder for [`InvalidArnException`](crate::error::InvalidArnException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6104,58 +6339,53 @@ pub mod invalid_arn_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidArnError`](crate::error::InvalidArnError) - pub fn build(self) -> crate::error::InvalidArnError { - crate::error::InvalidArnError { + /// Consumes the builder and constructs a [`InvalidArnException`](crate::error::InvalidArnException) + pub fn build(self) -> crate::error::InvalidArnException { + crate::error::InvalidArnException { message: self.message, } } } } -impl InvalidArnError { - /// Creates a new builder-style object to manufacture [`InvalidArnError`](crate::error::InvalidArnError) - pub fn builder() -> crate::error::invalid_arn_error::Builder { - crate::error::invalid_arn_error::Builder::default() +impl InvalidArnException { + /// Creates a new builder-style object to manufacture [`InvalidArnException`](crate::error::InvalidArnException) + pub fn builder() -> crate::error::invalid_arn_exception::Builder { + crate::error::invalid_arn_exception::Builder::default() } } ///

    The request was rejected because AWS KMS cannot find a custom key store with the specified /// key store name or ID.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CustomKeyStoreNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CustomKeyStoreNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for CustomKeyStoreNotFoundError { +impl std::fmt::Debug for CustomKeyStoreNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CustomKeyStoreNotFoundError"); + let mut formatter = f.debug_struct("CustomKeyStoreNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl CustomKeyStoreNotFoundError { +impl CustomKeyStoreNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CustomKeyStoreNotFoundError { +impl std::fmt::Display for CustomKeyStoreNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CustomKeyStoreNotFoundError [CustomKeyStoreNotFoundException]" - )?; + write!(f, "CustomKeyStoreNotFoundException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for CustomKeyStoreNotFoundError {} -/// See [`CustomKeyStoreNotFoundError`](crate::error::CustomKeyStoreNotFoundError) -pub mod custom_key_store_not_found_error { - /// A builder for [`CustomKeyStoreNotFoundError`](crate::error::CustomKeyStoreNotFoundError) +impl std::error::Error for CustomKeyStoreNotFoundException {} +/// See [`CustomKeyStoreNotFoundException`](crate::error::CustomKeyStoreNotFoundException) +pub mod custom_key_store_not_found_exception { + /// A builder for [`CustomKeyStoreNotFoundException`](crate::error::CustomKeyStoreNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6170,18 +6400,18 @@ pub mod custom_key_store_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`CustomKeyStoreNotFoundError`](crate::error::CustomKeyStoreNotFoundError) - pub fn build(self) -> crate::error::CustomKeyStoreNotFoundError { - crate::error::CustomKeyStoreNotFoundError { + /// Consumes the builder and constructs a [`CustomKeyStoreNotFoundException`](crate::error::CustomKeyStoreNotFoundException) + pub fn build(self) -> crate::error::CustomKeyStoreNotFoundException { + crate::error::CustomKeyStoreNotFoundException { message: self.message, } } } } -impl CustomKeyStoreNotFoundError { - /// Creates a new builder-style object to manufacture [`CustomKeyStoreNotFoundError`](crate::error::CustomKeyStoreNotFoundError) - pub fn builder() -> crate::error::custom_key_store_not_found_error::Builder { - crate::error::custom_key_store_not_found_error::Builder::default() +impl CustomKeyStoreNotFoundException { + /// Creates a new builder-style object to manufacture [`CustomKeyStoreNotFoundException`](crate::error::CustomKeyStoreNotFoundException) + pub fn builder() -> crate::error::custom_key_store_not_found_exception::Builder { + crate::error::custom_key_store_not_found_exception::Builder::default() } } @@ -6189,40 +6419,35 @@ impl CustomKeyStoreNotFoundError { /// to another custom key store in the account. Try again with a custom key store name that is /// unique in the account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CustomKeyStoreNameInUseError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CustomKeyStoreNameInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for CustomKeyStoreNameInUseError { +impl std::fmt::Debug for CustomKeyStoreNameInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CustomKeyStoreNameInUseError"); + let mut formatter = f.debug_struct("CustomKeyStoreNameInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl CustomKeyStoreNameInUseError { +impl CustomKeyStoreNameInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CustomKeyStoreNameInUseError { +impl std::fmt::Display for CustomKeyStoreNameInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CustomKeyStoreNameInUseError [CustomKeyStoreNameInUseException]" - )?; + write!(f, "CustomKeyStoreNameInUseException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for CustomKeyStoreNameInUseError {} -/// See [`CustomKeyStoreNameInUseError`](crate::error::CustomKeyStoreNameInUseError) -pub mod custom_key_store_name_in_use_error { - /// A builder for [`CustomKeyStoreNameInUseError`](crate::error::CustomKeyStoreNameInUseError) +impl std::error::Error for CustomKeyStoreNameInUseException {} +/// See [`CustomKeyStoreNameInUseException`](crate::error::CustomKeyStoreNameInUseException) +pub mod custom_key_store_name_in_use_exception { + /// A builder for [`CustomKeyStoreNameInUseException`](crate::error::CustomKeyStoreNameInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6237,18 +6462,18 @@ pub mod custom_key_store_name_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`CustomKeyStoreNameInUseError`](crate::error::CustomKeyStoreNameInUseError) - pub fn build(self) -> crate::error::CustomKeyStoreNameInUseError { - crate::error::CustomKeyStoreNameInUseError { + /// Consumes the builder and constructs a [`CustomKeyStoreNameInUseException`](crate::error::CustomKeyStoreNameInUseException) + pub fn build(self) -> crate::error::CustomKeyStoreNameInUseException { + crate::error::CustomKeyStoreNameInUseException { message: self.message, } } } } -impl CustomKeyStoreNameInUseError { - /// Creates a new builder-style object to manufacture [`CustomKeyStoreNameInUseError`](crate::error::CustomKeyStoreNameInUseError) - pub fn builder() -> crate::error::custom_key_store_name_in_use_error::Builder { - crate::error::custom_key_store_name_in_use_error::Builder::default() +impl CustomKeyStoreNameInUseException { + /// Creates a new builder-style object to manufacture [`CustomKeyStoreNameInUseException`](crate::error::CustomKeyStoreNameInUseException) + pub fn builder() -> crate::error::custom_key_store_name_in_use_exception::Builder { + crate::error::custom_key_store_name_in_use_exception::Builder::default() } } @@ -6274,40 +6499,35 @@ impl CustomKeyStoreNameInUseError { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CustomKeyStoreInvalidStateError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CustomKeyStoreInvalidStateException { pub message: std::option::Option, } -impl std::fmt::Debug for CustomKeyStoreInvalidStateError { +impl std::fmt::Debug for CustomKeyStoreInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CustomKeyStoreInvalidStateError"); + let mut formatter = f.debug_struct("CustomKeyStoreInvalidStateException"); formatter.field("message", &self.message); formatter.finish() } } -impl CustomKeyStoreInvalidStateError { +impl CustomKeyStoreInvalidStateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CustomKeyStoreInvalidStateError { +impl std::fmt::Display for CustomKeyStoreInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CustomKeyStoreInvalidStateError [CustomKeyStoreInvalidStateException]" - )?; + write!(f, "CustomKeyStoreInvalidStateException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for CustomKeyStoreInvalidStateError {} -/// See [`CustomKeyStoreInvalidStateError`](crate::error::CustomKeyStoreInvalidStateError) -pub mod custom_key_store_invalid_state_error { - /// A builder for [`CustomKeyStoreInvalidStateError`](crate::error::CustomKeyStoreInvalidStateError) +impl std::error::Error for CustomKeyStoreInvalidStateException {} +/// See [`CustomKeyStoreInvalidStateException`](crate::error::CustomKeyStoreInvalidStateException) +pub mod custom_key_store_invalid_state_exception { + /// A builder for [`CustomKeyStoreInvalidStateException`](crate::error::CustomKeyStoreInvalidStateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6322,18 +6542,18 @@ pub mod custom_key_store_invalid_state_error { self.message = input; self } - /// Consumes the builder and constructs a [`CustomKeyStoreInvalidStateError`](crate::error::CustomKeyStoreInvalidStateError) - pub fn build(self) -> crate::error::CustomKeyStoreInvalidStateError { - crate::error::CustomKeyStoreInvalidStateError { + /// Consumes the builder and constructs a [`CustomKeyStoreInvalidStateException`](crate::error::CustomKeyStoreInvalidStateException) + pub fn build(self) -> crate::error::CustomKeyStoreInvalidStateException { + crate::error::CustomKeyStoreInvalidStateException { message: self.message, } } } } -impl CustomKeyStoreInvalidStateError { - /// Creates a new builder-style object to manufacture [`CustomKeyStoreInvalidStateError`](crate::error::CustomKeyStoreInvalidStateError) - pub fn builder() -> crate::error::custom_key_store_invalid_state_error::Builder { - crate::error::custom_key_store_invalid_state_error::Builder::default() +impl CustomKeyStoreInvalidStateException { + /// Creates a new builder-style object to manufacture [`CustomKeyStoreInvalidStateException`](crate::error::CustomKeyStoreInvalidStateException) + pub fn builder() -> crate::error::custom_key_store_invalid_state_exception::Builder { + crate::error::custom_key_store_invalid_state_exception::Builder::default() } } @@ -6346,40 +6566,35 @@ impl CustomKeyStoreInvalidStateError { ///

    Clusters that share a backup history have the same cluster certificate. To view the /// cluster certificate of a cluster, use the DescribeClusters operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CloudHsmClusterNotRelatedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CloudHsmClusterNotRelatedException { pub message: std::option::Option, } -impl std::fmt::Debug for CloudHsmClusterNotRelatedError { +impl std::fmt::Debug for CloudHsmClusterNotRelatedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CloudHsmClusterNotRelatedError"); + let mut formatter = f.debug_struct("CloudHsmClusterNotRelatedException"); formatter.field("message", &self.message); formatter.finish() } } -impl CloudHsmClusterNotRelatedError { +impl CloudHsmClusterNotRelatedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CloudHsmClusterNotRelatedError { +impl std::fmt::Display for CloudHsmClusterNotRelatedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CloudHsmClusterNotRelatedError [CloudHsmClusterNotRelatedException]" - )?; + write!(f, "CloudHsmClusterNotRelatedException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for CloudHsmClusterNotRelatedError {} -/// See [`CloudHsmClusterNotRelatedError`](crate::error::CloudHsmClusterNotRelatedError) -pub mod cloud_hsm_cluster_not_related_error { - /// A builder for [`CloudHsmClusterNotRelatedError`](crate::error::CloudHsmClusterNotRelatedError) +impl std::error::Error for CloudHsmClusterNotRelatedException {} +/// See [`CloudHsmClusterNotRelatedException`](crate::error::CloudHsmClusterNotRelatedException) +pub mod cloud_hsm_cluster_not_related_exception { + /// A builder for [`CloudHsmClusterNotRelatedException`](crate::error::CloudHsmClusterNotRelatedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6394,58 +6609,53 @@ pub mod cloud_hsm_cluster_not_related_error { self.message = input; self } - /// Consumes the builder and constructs a [`CloudHsmClusterNotRelatedError`](crate::error::CloudHsmClusterNotRelatedError) - pub fn build(self) -> crate::error::CloudHsmClusterNotRelatedError { - crate::error::CloudHsmClusterNotRelatedError { + /// Consumes the builder and constructs a [`CloudHsmClusterNotRelatedException`](crate::error::CloudHsmClusterNotRelatedException) + pub fn build(self) -> crate::error::CloudHsmClusterNotRelatedException { + crate::error::CloudHsmClusterNotRelatedException { message: self.message, } } } } -impl CloudHsmClusterNotRelatedError { - /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotRelatedError`](crate::error::CloudHsmClusterNotRelatedError) - pub fn builder() -> crate::error::cloud_hsm_cluster_not_related_error::Builder { - crate::error::cloud_hsm_cluster_not_related_error::Builder::default() +impl CloudHsmClusterNotRelatedException { + /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotRelatedException`](crate::error::CloudHsmClusterNotRelatedException) + pub fn builder() -> crate::error::cloud_hsm_cluster_not_related_exception::Builder { + crate::error::cloud_hsm_cluster_not_related_exception::Builder::default() } } ///

    The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster with the specified /// cluster ID. Retry the request with a different cluster ID.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CloudHsmClusterNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CloudHsmClusterNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for CloudHsmClusterNotFoundError { +impl std::fmt::Debug for CloudHsmClusterNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CloudHsmClusterNotFoundError"); + let mut formatter = f.debug_struct("CloudHsmClusterNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl CloudHsmClusterNotFoundError { +impl CloudHsmClusterNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CloudHsmClusterNotFoundError { +impl std::fmt::Display for CloudHsmClusterNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CloudHsmClusterNotFoundError [CloudHsmClusterNotFoundException]" - )?; + write!(f, "CloudHsmClusterNotFoundException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for CloudHsmClusterNotFoundError {} -/// See [`CloudHsmClusterNotFoundError`](crate::error::CloudHsmClusterNotFoundError) -pub mod cloud_hsm_cluster_not_found_error { - /// A builder for [`CloudHsmClusterNotFoundError`](crate::error::CloudHsmClusterNotFoundError) +impl std::error::Error for CloudHsmClusterNotFoundException {} +/// See [`CloudHsmClusterNotFoundException`](crate::error::CloudHsmClusterNotFoundException) +pub mod cloud_hsm_cluster_not_found_exception { + /// A builder for [`CloudHsmClusterNotFoundException`](crate::error::CloudHsmClusterNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6460,18 +6670,18 @@ pub mod cloud_hsm_cluster_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`CloudHsmClusterNotFoundError`](crate::error::CloudHsmClusterNotFoundError) - pub fn build(self) -> crate::error::CloudHsmClusterNotFoundError { - crate::error::CloudHsmClusterNotFoundError { + /// Consumes the builder and constructs a [`CloudHsmClusterNotFoundException`](crate::error::CloudHsmClusterNotFoundException) + pub fn build(self) -> crate::error::CloudHsmClusterNotFoundException { + crate::error::CloudHsmClusterNotFoundException { message: self.message, } } } } -impl CloudHsmClusterNotFoundError { - /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotFoundError`](crate::error::CloudHsmClusterNotFoundError) - pub fn builder() -> crate::error::cloud_hsm_cluster_not_found_error::Builder { - crate::error::cloud_hsm_cluster_not_found_error::Builder::default() +impl CloudHsmClusterNotFoundException { + /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotFoundException`](crate::error::CloudHsmClusterNotFoundException) + pub fn builder() -> crate::error::cloud_hsm_cluster_not_found_exception::Builder { + crate::error::cloud_hsm_cluster_not_found_exception::Builder::default() } } @@ -6479,40 +6689,35 @@ impl CloudHsmClusterNotFoundError { /// store is not active. Initialize and activate the cluster and try the command again. For /// detailed instructions, see Getting Started in the AWS CloudHSM User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CloudHsmClusterNotActiveError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CloudHsmClusterNotActiveException { pub message: std::option::Option, } -impl std::fmt::Debug for CloudHsmClusterNotActiveError { +impl std::fmt::Debug for CloudHsmClusterNotActiveException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CloudHsmClusterNotActiveError"); + let mut formatter = f.debug_struct("CloudHsmClusterNotActiveException"); formatter.field("message", &self.message); formatter.finish() } } -impl CloudHsmClusterNotActiveError { +impl CloudHsmClusterNotActiveException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CloudHsmClusterNotActiveError { +impl std::fmt::Display for CloudHsmClusterNotActiveException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CloudHsmClusterNotActiveError [CloudHsmClusterNotActiveException]" - )?; + write!(f, "CloudHsmClusterNotActiveException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for CloudHsmClusterNotActiveError {} -/// See [`CloudHsmClusterNotActiveError`](crate::error::CloudHsmClusterNotActiveError) -pub mod cloud_hsm_cluster_not_active_error { - /// A builder for [`CloudHsmClusterNotActiveError`](crate::error::CloudHsmClusterNotActiveError) +impl std::error::Error for CloudHsmClusterNotActiveException {} +/// See [`CloudHsmClusterNotActiveException`](crate::error::CloudHsmClusterNotActiveException) +pub mod cloud_hsm_cluster_not_active_exception { + /// A builder for [`CloudHsmClusterNotActiveException`](crate::error::CloudHsmClusterNotActiveException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6527,18 +6732,18 @@ pub mod cloud_hsm_cluster_not_active_error { self.message = input; self } - /// Consumes the builder and constructs a [`CloudHsmClusterNotActiveError`](crate::error::CloudHsmClusterNotActiveError) - pub fn build(self) -> crate::error::CloudHsmClusterNotActiveError { - crate::error::CloudHsmClusterNotActiveError { + /// Consumes the builder and constructs a [`CloudHsmClusterNotActiveException`](crate::error::CloudHsmClusterNotActiveException) + pub fn build(self) -> crate::error::CloudHsmClusterNotActiveException { + crate::error::CloudHsmClusterNotActiveException { message: self.message, } } } } -impl CloudHsmClusterNotActiveError { - /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotActiveError`](crate::error::CloudHsmClusterNotActiveError) - pub fn builder() -> crate::error::cloud_hsm_cluster_not_active_error::Builder { - crate::error::cloud_hsm_cluster_not_active_error::Builder::default() +impl CloudHsmClusterNotActiveException { + /// Creates a new builder-style object to manufacture [`CloudHsmClusterNotActiveException`](crate::error::CloudHsmClusterNotActiveException) + pub fn builder() -> crate::error::cloud_hsm_cluster_not_active_exception::Builder { + crate::error::cloud_hsm_cluster_not_active_exception::Builder::default() } } @@ -6575,37 +6780,35 @@ impl CloudHsmClusterNotActiveError { /// AWS CloudHSM User Guide ///
    .

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CloudHsmClusterInvalidConfigurationError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CloudHsmClusterInvalidConfigurationException { pub message: std::option::Option, } -impl std::fmt::Debug for CloudHsmClusterInvalidConfigurationError { +impl std::fmt::Debug for CloudHsmClusterInvalidConfigurationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CloudHsmClusterInvalidConfigurationError"); + let mut formatter = f.debug_struct("CloudHsmClusterInvalidConfigurationException"); formatter.field("message", &self.message); formatter.finish() } } -impl CloudHsmClusterInvalidConfigurationError { +impl CloudHsmClusterInvalidConfigurationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CloudHsmClusterInvalidConfigurationError { +impl std::fmt::Display for CloudHsmClusterInvalidConfigurationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "CloudHsmClusterInvalidConfigurationError [CloudHsmClusterInvalidConfigurationException]")?; + write!(f, "CloudHsmClusterInvalidConfigurationException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for CloudHsmClusterInvalidConfigurationError {} -/// See [`CloudHsmClusterInvalidConfigurationError`](crate::error::CloudHsmClusterInvalidConfigurationError) -pub mod cloud_hsm_cluster_invalid_configuration_error { - /// A builder for [`CloudHsmClusterInvalidConfigurationError`](crate::error::CloudHsmClusterInvalidConfigurationError) +impl std::error::Error for CloudHsmClusterInvalidConfigurationException {} +/// See [`CloudHsmClusterInvalidConfigurationException`](crate::error::CloudHsmClusterInvalidConfigurationException) +pub mod cloud_hsm_cluster_invalid_configuration_exception { + /// A builder for [`CloudHsmClusterInvalidConfigurationException`](crate::error::CloudHsmClusterInvalidConfigurationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6620,55 +6823,53 @@ pub mod cloud_hsm_cluster_invalid_configuration_error { self.message = input; self } - /// Consumes the builder and constructs a [`CloudHsmClusterInvalidConfigurationError`](crate::error::CloudHsmClusterInvalidConfigurationError) - pub fn build(self) -> crate::error::CloudHsmClusterInvalidConfigurationError { - crate::error::CloudHsmClusterInvalidConfigurationError { + /// Consumes the builder and constructs a [`CloudHsmClusterInvalidConfigurationException`](crate::error::CloudHsmClusterInvalidConfigurationException) + pub fn build(self) -> crate::error::CloudHsmClusterInvalidConfigurationException { + crate::error::CloudHsmClusterInvalidConfigurationException { message: self.message, } } } } -impl CloudHsmClusterInvalidConfigurationError { - /// Creates a new builder-style object to manufacture [`CloudHsmClusterInvalidConfigurationError`](crate::error::CloudHsmClusterInvalidConfigurationError) - pub fn builder() -> crate::error::cloud_hsm_cluster_invalid_configuration_error::Builder { - crate::error::cloud_hsm_cluster_invalid_configuration_error::Builder::default() +impl CloudHsmClusterInvalidConfigurationException { + /// Creates a new builder-style object to manufacture [`CloudHsmClusterInvalidConfigurationException`](crate::error::CloudHsmClusterInvalidConfigurationException) + pub fn builder() -> crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder { + crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder::default() } } ///

    The request was rejected because a quota was exceeded. For more information, see Quotas in the /// AWS Key Management Service Developer Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6683,54 +6884,52 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    The request was rejected because one or more tags are not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TagError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TagException { pub message: std::option::Option, } -impl std::fmt::Debug for TagError { +impl std::fmt::Debug for TagException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagError"); + let mut formatter = f.debug_struct("TagException"); formatter.field("message", &self.message); formatter.finish() } } -impl TagError { +impl TagException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TagError { +impl std::fmt::Display for TagException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TagError [TagException]")?; + write!(f, "TagException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for TagError {} -/// See [`TagError`](crate::error::TagError) -pub mod tag_error { - /// A builder for [`TagError`](crate::error::TagError) +impl std::error::Error for TagException {} +/// See [`TagException`](crate::error::TagException) +pub mod tag_exception { + /// A builder for [`TagException`](crate::error::TagException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6745,54 +6944,52 @@ pub mod tag_error { self.message = input; self } - /// Consumes the builder and constructs a [`TagError`](crate::error::TagError) - pub fn build(self) -> crate::error::TagError { - crate::error::TagError { + /// Consumes the builder and constructs a [`TagException`](crate::error::TagException) + pub fn build(self) -> crate::error::TagException { + crate::error::TagException { message: self.message, } } } } -impl TagError { - /// Creates a new builder-style object to manufacture [`TagError`](crate::error::TagError) - pub fn builder() -> crate::error::tag_error::Builder { - crate::error::tag_error::Builder::default() +impl TagException { + /// Creates a new builder-style object to manufacture [`TagException`](crate::error::TagException) + pub fn builder() -> crate::error::tag_exception::Builder { + crate::error::tag_exception::Builder::default() } } ///

    The request was rejected because the specified GrantId is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidGrantIdError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidGrantIdException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidGrantIdError { +impl std::fmt::Debug for InvalidGrantIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidGrantIdError"); + let mut formatter = f.debug_struct("InvalidGrantIdException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidGrantIdError { +impl InvalidGrantIdException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidGrantIdError { +impl std::fmt::Display for InvalidGrantIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidGrantIdError [InvalidGrantIdException]")?; + write!(f, "InvalidGrantIdException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for InvalidGrantIdError {} -/// See [`InvalidGrantIdError`](crate::error::InvalidGrantIdError) -pub mod invalid_grant_id_error { - /// A builder for [`InvalidGrantIdError`](crate::error::InvalidGrantIdError) +impl std::error::Error for InvalidGrantIdException {} +/// See [`InvalidGrantIdException`](crate::error::InvalidGrantIdException) +pub mod invalid_grant_id_exception { + /// A builder for [`InvalidGrantIdException`](crate::error::InvalidGrantIdException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6807,18 +7004,18 @@ pub mod invalid_grant_id_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidGrantIdError`](crate::error::InvalidGrantIdError) - pub fn build(self) -> crate::error::InvalidGrantIdError { - crate::error::InvalidGrantIdError { + /// Consumes the builder and constructs a [`InvalidGrantIdException`](crate::error::InvalidGrantIdException) + pub fn build(self) -> crate::error::InvalidGrantIdException { + crate::error::InvalidGrantIdException { message: self.message, } } } } -impl InvalidGrantIdError { - /// Creates a new builder-style object to manufacture [`InvalidGrantIdError`](crate::error::InvalidGrantIdError) - pub fn builder() -> crate::error::invalid_grant_id_error::Builder { - crate::error::invalid_grant_id_error::Builder::default() +impl InvalidGrantIdException { + /// Creates a new builder-style object to manufacture [`InvalidGrantIdException`](crate::error::InvalidGrantIdException) + pub fn builder() -> crate::error::invalid_grant_id_exception::Builder { + crate::error::invalid_grant_id_exception::Builder::default() } } @@ -6829,37 +7026,35 @@ impl InvalidGrantIdError { ///

    From the ImportKeyMaterial operation, the request was rejected because /// AWS KMS could not decrypt the encrypted (wrapped) key material.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidCiphertextError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidCiphertextException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidCiphertextError { +impl std::fmt::Debug for InvalidCiphertextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidCiphertextError"); + let mut formatter = f.debug_struct("InvalidCiphertextException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidCiphertextError { +impl InvalidCiphertextException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidCiphertextError { +impl std::fmt::Display for InvalidCiphertextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidCiphertextError [InvalidCiphertextException]")?; + write!(f, "InvalidCiphertextException")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for InvalidCiphertextError {} -/// See [`InvalidCiphertextError`](crate::error::InvalidCiphertextError) -pub mod invalid_ciphertext_error { - /// A builder for [`InvalidCiphertextError`](crate::error::InvalidCiphertextError) +impl std::error::Error for InvalidCiphertextException {} +/// See [`InvalidCiphertextException`](crate::error::InvalidCiphertextException) +pub mod invalid_ciphertext_exception { + /// A builder for [`InvalidCiphertextException`](crate::error::InvalidCiphertextException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6874,18 +7069,18 @@ pub mod invalid_ciphertext_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidCiphertextError`](crate::error::InvalidCiphertextError) - pub fn build(self) -> crate::error::InvalidCiphertextError { - crate::error::InvalidCiphertextError { + /// Consumes the builder and constructs a [`InvalidCiphertextException`](crate::error::InvalidCiphertextException) + pub fn build(self) -> crate::error::InvalidCiphertextException { + crate::error::InvalidCiphertextException { message: self.message, } } } } -impl InvalidCiphertextError { - /// Creates a new builder-style object to manufacture [`InvalidCiphertextError`](crate::error::InvalidCiphertextError) - pub fn builder() -> crate::error::invalid_ciphertext_error::Builder { - crate::error::invalid_ciphertext_error::Builder::default() +impl InvalidCiphertextException { + /// Creates a new builder-style object to manufacture [`InvalidCiphertextException`](crate::error::InvalidCiphertextException) + pub fn builder() -> crate::error::invalid_ciphertext_exception::Builder { + crate::error::invalid_ciphertext_exception::Builder::default() } } @@ -6894,37 +7089,35 @@ impl InvalidCiphertextError { /// in a ReEncrypt request must identify the same CMK that was used to encrypt /// the ciphertext.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IncorrectKeyError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IncorrectKeyException { pub message: std::option::Option, } -impl std::fmt::Debug for IncorrectKeyError { +impl std::fmt::Debug for IncorrectKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IncorrectKeyError"); + let mut formatter = f.debug_struct("IncorrectKeyException"); formatter.field("message", &self.message); formatter.finish() } } -impl IncorrectKeyError { +impl IncorrectKeyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IncorrectKeyError { +impl std::fmt::Display for IncorrectKeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "IncorrectKeyError [IncorrectKeyException]")?; + write!(f, "IncorrectKeyException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for IncorrectKeyError {} -/// See [`IncorrectKeyError`](crate::error::IncorrectKeyError) -pub mod incorrect_key_error { - /// A builder for [`IncorrectKeyError`](crate::error::IncorrectKeyError) +impl std::error::Error for IncorrectKeyException {} +/// See [`IncorrectKeyException`](crate::error::IncorrectKeyException) +pub mod incorrect_key_exception { + /// A builder for [`IncorrectKeyException`](crate::error::IncorrectKeyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6939,58 +7132,53 @@ pub mod incorrect_key_error { self.message = input; self } - /// Consumes the builder and constructs a [`IncorrectKeyError`](crate::error::IncorrectKeyError) - pub fn build(self) -> crate::error::IncorrectKeyError { - crate::error::IncorrectKeyError { + /// Consumes the builder and constructs a [`IncorrectKeyException`](crate::error::IncorrectKeyException) + pub fn build(self) -> crate::error::IncorrectKeyException { + crate::error::IncorrectKeyException { message: self.message, } } } } -impl IncorrectKeyError { - /// Creates a new builder-style object to manufacture [`IncorrectKeyError`](crate::error::IncorrectKeyError) - pub fn builder() -> crate::error::incorrect_key_error::Builder { - crate::error::incorrect_key_error::Builder::default() +impl IncorrectKeyException { + /// Creates a new builder-style object to manufacture [`IncorrectKeyException`](crate::error::IncorrectKeyException) + pub fn builder() -> crate::error::incorrect_key_exception::Builder { + crate::error::incorrect_key_exception::Builder::default() } } ///

    The request was rejected because a specified parameter is not supported or a specified /// resource is not valid for this operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedOperationError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedOperationException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedOperationError { +impl std::fmt::Debug for UnsupportedOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedOperationError"); + let mut formatter = f.debug_struct("UnsupportedOperationException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedOperationError { +impl UnsupportedOperationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedOperationError { +impl std::fmt::Display for UnsupportedOperationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedOperationError [UnsupportedOperationException]" - )?; + write!(f, "UnsupportedOperationException")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for UnsupportedOperationError {} -/// See [`UnsupportedOperationError`](crate::error::UnsupportedOperationError) -pub mod unsupported_operation_error { - /// A builder for [`UnsupportedOperationError`](crate::error::UnsupportedOperationError) +impl std::error::Error for UnsupportedOperationException {} +/// See [`UnsupportedOperationException`](crate::error::UnsupportedOperationException) +pub mod unsupported_operation_exception { + /// A builder for [`UnsupportedOperationException`](crate::error::UnsupportedOperationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7005,58 +7193,53 @@ pub mod unsupported_operation_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedOperationError`](crate::error::UnsupportedOperationError) - pub fn build(self) -> crate::error::UnsupportedOperationError { - crate::error::UnsupportedOperationError { + /// Consumes the builder and constructs a [`UnsupportedOperationException`](crate::error::UnsupportedOperationException) + pub fn build(self) -> crate::error::UnsupportedOperationException { + crate::error::UnsupportedOperationException { message: self.message, } } } } -impl UnsupportedOperationError { - /// Creates a new builder-style object to manufacture [`UnsupportedOperationError`](crate::error::UnsupportedOperationError) - pub fn builder() -> crate::error::unsupported_operation_error::Builder { - crate::error::unsupported_operation_error::Builder::default() +impl UnsupportedOperationException { + /// Creates a new builder-style object to manufacture [`UnsupportedOperationException`](crate::error::UnsupportedOperationException) + pub fn builder() -> crate::error::unsupported_operation_exception::Builder { + crate::error::unsupported_operation_exception::Builder::default() } } ///

    The request was rejected because the specified policy is not syntactically or semantically /// correct.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedPolicyDocumentError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MalformedPolicyDocumentException { pub message: std::option::Option, } -impl std::fmt::Debug for MalformedPolicyDocumentError { +impl std::fmt::Debug for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedPolicyDocumentError"); + let mut formatter = f.debug_struct("MalformedPolicyDocumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedPolicyDocumentError { +impl MalformedPolicyDocumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedPolicyDocumentError { +impl std::fmt::Display for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MalformedPolicyDocumentError [MalformedPolicyDocumentException]" - )?; + write!(f, "MalformedPolicyDocumentException")?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; } Ok(()) } } -impl std::error::Error for MalformedPolicyDocumentError {} -/// See [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) -pub mod malformed_policy_document_error { - /// A builder for [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) +impl std::error::Error for MalformedPolicyDocumentException {} +/// See [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) +pub mod malformed_policy_document_exception { + /// A builder for [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7071,55 +7254,53 @@ pub mod malformed_policy_document_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn build(self) -> crate::error::MalformedPolicyDocumentError { - crate::error::MalformedPolicyDocumentError { + /// Consumes the builder and constructs a [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn build(self) -> crate::error::MalformedPolicyDocumentException { + crate::error::MalformedPolicyDocumentException { message: self.message, } } } } -impl MalformedPolicyDocumentError { - /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn builder() -> crate::error::malformed_policy_document_error::Builder { - crate::error::malformed_policy_document_error::Builder::default() +impl MalformedPolicyDocumentException { + /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn builder() -> crate::error::malformed_policy_document_exception::Builder { + crate::error::malformed_policy_document_exception::Builder::default() } } ///

    The request was rejected because the marker that specifies where pagination should next /// begin is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidMarkerError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidMarkerException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidMarkerError { +impl std::fmt::Debug for InvalidMarkerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidMarkerError"); + let mut formatter = f.debug_struct("InvalidMarkerException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidMarkerError { +impl InvalidMarkerException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidMarkerError { +impl std::fmt::Display for InvalidMarkerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidMarkerError [InvalidMarkerException]")?; + write!(f, "InvalidMarkerException")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for InvalidMarkerError {} -/// See [`InvalidMarkerError`](crate::error::InvalidMarkerError) -pub mod invalid_marker_error { - /// A builder for [`InvalidMarkerError`](crate::error::InvalidMarkerError) +impl std::error::Error for InvalidMarkerException {} +/// See [`InvalidMarkerException`](crate::error::InvalidMarkerException) +pub mod invalid_marker_exception { + /// A builder for [`InvalidMarkerException`](crate::error::InvalidMarkerException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7134,55 +7315,53 @@ pub mod invalid_marker_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidMarkerError`](crate::error::InvalidMarkerError) - pub fn build(self) -> crate::error::InvalidMarkerError { - crate::error::InvalidMarkerError { + /// Consumes the builder and constructs a [`InvalidMarkerException`](crate::error::InvalidMarkerException) + pub fn build(self) -> crate::error::InvalidMarkerException { + crate::error::InvalidMarkerException { message: self.message, } } } } -impl InvalidMarkerError { - /// Creates a new builder-style object to manufacture [`InvalidMarkerError`](crate::error::InvalidMarkerError) - pub fn builder() -> crate::error::invalid_marker_error::Builder { - crate::error::invalid_marker_error::Builder::default() +impl InvalidMarkerException { + /// Creates a new builder-style object to manufacture [`InvalidMarkerException`](crate::error::InvalidMarkerException) + pub fn builder() -> crate::error::invalid_marker_exception::Builder { + crate::error::invalid_marker_exception::Builder::default() } } ///

    The request was rejected because the provided import token is invalid or is associated /// with a different customer master key (CMK).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidImportTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidImportTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidImportTokenError { +impl std::fmt::Debug for InvalidImportTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidImportTokenError"); + let mut formatter = f.debug_struct("InvalidImportTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidImportTokenError { +impl InvalidImportTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidImportTokenError { +impl std::fmt::Display for InvalidImportTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidImportTokenError [InvalidImportTokenException]")?; + write!(f, "InvalidImportTokenException")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for InvalidImportTokenError {} -/// See [`InvalidImportTokenError`](crate::error::InvalidImportTokenError) -pub mod invalid_import_token_error { - /// A builder for [`InvalidImportTokenError`](crate::error::InvalidImportTokenError) +impl std::error::Error for InvalidImportTokenException {} +/// See [`InvalidImportTokenException`](crate::error::InvalidImportTokenException) +pub mod invalid_import_token_exception { + /// A builder for [`InvalidImportTokenException`](crate::error::InvalidImportTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7197,18 +7376,18 @@ pub mod invalid_import_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidImportTokenError`](crate::error::InvalidImportTokenError) - pub fn build(self) -> crate::error::InvalidImportTokenError { - crate::error::InvalidImportTokenError { + /// Consumes the builder and constructs a [`InvalidImportTokenException`](crate::error::InvalidImportTokenException) + pub fn build(self) -> crate::error::InvalidImportTokenException { + crate::error::InvalidImportTokenException { message: self.message, } } } } -impl InvalidImportTokenError { - /// Creates a new builder-style object to manufacture [`InvalidImportTokenError`](crate::error::InvalidImportTokenError) - pub fn builder() -> crate::error::invalid_import_token_error::Builder { - crate::error::invalid_import_token_error::Builder::default() +impl InvalidImportTokenException { + /// Creates a new builder-style object to manufacture [`InvalidImportTokenException`](crate::error::InvalidImportTokenException) + pub fn builder() -> crate::error::invalid_import_token_exception::Builder { + crate::error::invalid_import_token_exception::Builder::default() } } @@ -7216,40 +7395,35 @@ impl InvalidImportTokenError { /// is not the same key material that was previously imported into this customer master key /// (CMK).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IncorrectKeyMaterialError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IncorrectKeyMaterialException { pub message: std::option::Option, } -impl std::fmt::Debug for IncorrectKeyMaterialError { +impl std::fmt::Debug for IncorrectKeyMaterialException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IncorrectKeyMaterialError"); + let mut formatter = f.debug_struct("IncorrectKeyMaterialException"); formatter.field("message", &self.message); formatter.finish() } } -impl IncorrectKeyMaterialError { +impl IncorrectKeyMaterialException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IncorrectKeyMaterialError { +impl std::fmt::Display for IncorrectKeyMaterialException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "IncorrectKeyMaterialError [IncorrectKeyMaterialException]" - )?; + write!(f, "IncorrectKeyMaterialException")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for IncorrectKeyMaterialError {} -/// See [`IncorrectKeyMaterialError`](crate::error::IncorrectKeyMaterialError) -pub mod incorrect_key_material_error { - /// A builder for [`IncorrectKeyMaterialError`](crate::error::IncorrectKeyMaterialError) +impl std::error::Error for IncorrectKeyMaterialException {} +/// See [`IncorrectKeyMaterialException`](crate::error::IncorrectKeyMaterialException) +pub mod incorrect_key_material_exception { + /// A builder for [`IncorrectKeyMaterialException`](crate::error::IncorrectKeyMaterialException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7264,55 +7438,53 @@ pub mod incorrect_key_material_error { self.message = input; self } - /// Consumes the builder and constructs a [`IncorrectKeyMaterialError`](crate::error::IncorrectKeyMaterialError) - pub fn build(self) -> crate::error::IncorrectKeyMaterialError { - crate::error::IncorrectKeyMaterialError { + /// Consumes the builder and constructs a [`IncorrectKeyMaterialException`](crate::error::IncorrectKeyMaterialException) + pub fn build(self) -> crate::error::IncorrectKeyMaterialException { + crate::error::IncorrectKeyMaterialException { message: self.message, } } } } -impl IncorrectKeyMaterialError { - /// Creates a new builder-style object to manufacture [`IncorrectKeyMaterialError`](crate::error::IncorrectKeyMaterialError) - pub fn builder() -> crate::error::incorrect_key_material_error::Builder { - crate::error::incorrect_key_material_error::Builder::default() +impl IncorrectKeyMaterialException { + /// Creates a new builder-style object to manufacture [`IncorrectKeyMaterialException`](crate::error::IncorrectKeyMaterialException) + pub fn builder() -> crate::error::incorrect_key_material_exception::Builder { + crate::error::incorrect_key_material_exception::Builder::default() } } ///

    The request was rejected because the specified import token is expired. Use GetParametersForImport to get a new import token and public key, use the new /// public key to encrypt the key material, and then try the request again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExpiredImportTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ExpiredImportTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for ExpiredImportTokenError { +impl std::fmt::Debug for ExpiredImportTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExpiredImportTokenError"); + let mut formatter = f.debug_struct("ExpiredImportTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExpiredImportTokenError { +impl ExpiredImportTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExpiredImportTokenError { +impl std::fmt::Display for ExpiredImportTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExpiredImportTokenError [ExpiredImportTokenException]")?; + write!(f, "ExpiredImportTokenException")?; if let Some(inner_28) = &self.message { write!(f, ": {}", inner_28)?; } Ok(()) } } -impl std::error::Error for ExpiredImportTokenError {} -/// See [`ExpiredImportTokenError`](crate::error::ExpiredImportTokenError) -pub mod expired_import_token_error { - /// A builder for [`ExpiredImportTokenError`](crate::error::ExpiredImportTokenError) +impl std::error::Error for ExpiredImportTokenException {} +/// See [`ExpiredImportTokenException`](crate::error::ExpiredImportTokenException) +pub mod expired_import_token_exception { + /// A builder for [`ExpiredImportTokenException`](crate::error::ExpiredImportTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7327,18 +7499,18 @@ pub mod expired_import_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExpiredImportTokenError`](crate::error::ExpiredImportTokenError) - pub fn build(self) -> crate::error::ExpiredImportTokenError { - crate::error::ExpiredImportTokenError { + /// Consumes the builder and constructs a [`ExpiredImportTokenException`](crate::error::ExpiredImportTokenException) + pub fn build(self) -> crate::error::ExpiredImportTokenException { + crate::error::ExpiredImportTokenException { message: self.message, } } } } -impl ExpiredImportTokenError { - /// Creates a new builder-style object to manufacture [`ExpiredImportTokenError`](crate::error::ExpiredImportTokenError) - pub fn builder() -> crate::error::expired_import_token_error::Builder { - crate::error::expired_import_token_error::Builder::default() +impl ExpiredImportTokenException { + /// Creates a new builder-style object to manufacture [`ExpiredImportTokenException`](crate::error::ExpiredImportTokenException) + pub fn builder() -> crate::error::expired_import_token_exception::Builder { + crate::error::expired_import_token_exception::Builder::default() } } @@ -7346,29 +7518,27 @@ impl ExpiredImportTokenError { /// (CMKs). After verifying that you do not need to use the CMKs, use the ScheduleKeyDeletion operation to delete the CMKs. After they are deleted, you /// can delete the custom key store.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CustomKeyStoreHasCMKsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CustomKeyStoreHasCmKsException { pub message: std::option::Option, } -impl std::fmt::Debug for CustomKeyStoreHasCMKsError { +impl std::fmt::Debug for CustomKeyStoreHasCmKsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CustomKeyStoreHasCMKsError"); + let mut formatter = f.debug_struct("CustomKeyStoreHasCmKsException"); formatter.field("message", &self.message); formatter.finish() } } -impl CustomKeyStoreHasCMKsError { +impl CustomKeyStoreHasCmKsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CustomKeyStoreHasCMKsError { +impl std::fmt::Display for CustomKeyStoreHasCmKsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "CustomKeyStoreHasCMKsError [CustomKeyStoreHasCMKsException]" + "CustomKeyStoreHasCmKsException [CustomKeyStoreHasCMKsException]" )?; if let Some(inner_29) = &self.message { write!(f, ": {}", inner_29)?; @@ -7376,10 +7546,10 @@ impl std::fmt::Display for CustomKeyStoreHasCMKsError { Ok(()) } } -impl std::error::Error for CustomKeyStoreHasCMKsError {} -/// See [`CustomKeyStoreHasCMKsError`](crate::error::CustomKeyStoreHasCMKsError) -pub mod custom_key_store_has_cm_ks_error { - /// A builder for [`CustomKeyStoreHasCMKsError`](crate::error::CustomKeyStoreHasCMKsError) +impl std::error::Error for CustomKeyStoreHasCmKsException {} +/// See [`CustomKeyStoreHasCmKsException`](crate::error::CustomKeyStoreHasCmKsException) +pub mod custom_key_store_has_cm_ks_exception { + /// A builder for [`CustomKeyStoreHasCmKsException`](crate::error::CustomKeyStoreHasCmKsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7394,18 +7564,18 @@ pub mod custom_key_store_has_cm_ks_error { self.message = input; self } - /// Consumes the builder and constructs a [`CustomKeyStoreHasCMKsError`](crate::error::CustomKeyStoreHasCMKsError) - pub fn build(self) -> crate::error::CustomKeyStoreHasCMKsError { - crate::error::CustomKeyStoreHasCMKsError { + /// Consumes the builder and constructs a [`CustomKeyStoreHasCmKsException`](crate::error::CustomKeyStoreHasCmKsException) + pub fn build(self) -> crate::error::CustomKeyStoreHasCmKsException { + crate::error::CustomKeyStoreHasCmKsException { message: self.message, } } } } -impl CustomKeyStoreHasCMKsError { - /// Creates a new builder-style object to manufacture [`CustomKeyStoreHasCMKsError`](crate::error::CustomKeyStoreHasCMKsError) - pub fn builder() -> crate::error::custom_key_store_has_cm_ks_error::Builder { - crate::error::custom_key_store_has_cm_ks_error::Builder::default() +impl CustomKeyStoreHasCmKsException { + /// Creates a new builder-style object to manufacture [`CustomKeyStoreHasCmKsException`](crate::error::CustomKeyStoreHasCmKsException) + pub fn builder() -> crate::error::custom_key_store_has_cm_ks_exception::Builder { + crate::error::custom_key_store_has_cm_ks_exception::Builder::default() } } @@ -7414,40 +7584,35 @@ impl CustomKeyStoreHasCMKsError { ///

    When you initialize the cluster, you create the trust anchor certificate and save it in the /// customerCA.crt file.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IncorrectTrustAnchorError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IncorrectTrustAnchorException { pub message: std::option::Option, } -impl std::fmt::Debug for IncorrectTrustAnchorError { +impl std::fmt::Debug for IncorrectTrustAnchorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IncorrectTrustAnchorError"); + let mut formatter = f.debug_struct("IncorrectTrustAnchorException"); formatter.field("message", &self.message); formatter.finish() } } -impl IncorrectTrustAnchorError { +impl IncorrectTrustAnchorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IncorrectTrustAnchorError { +impl std::fmt::Display for IncorrectTrustAnchorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "IncorrectTrustAnchorError [IncorrectTrustAnchorException]" - )?; + write!(f, "IncorrectTrustAnchorException")?; if let Some(inner_30) = &self.message { write!(f, ": {}", inner_30)?; } Ok(()) } } -impl std::error::Error for IncorrectTrustAnchorError {} -/// See [`IncorrectTrustAnchorError`](crate::error::IncorrectTrustAnchorError) -pub mod incorrect_trust_anchor_error { - /// A builder for [`IncorrectTrustAnchorError`](crate::error::IncorrectTrustAnchorError) +impl std::error::Error for IncorrectTrustAnchorException {} +/// See [`IncorrectTrustAnchorException`](crate::error::IncorrectTrustAnchorException) +pub mod incorrect_trust_anchor_exception { + /// A builder for [`IncorrectTrustAnchorException`](crate::error::IncorrectTrustAnchorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7462,18 +7627,18 @@ pub mod incorrect_trust_anchor_error { self.message = input; self } - /// Consumes the builder and constructs a [`IncorrectTrustAnchorError`](crate::error::IncorrectTrustAnchorError) - pub fn build(self) -> crate::error::IncorrectTrustAnchorError { - crate::error::IncorrectTrustAnchorError { + /// Consumes the builder and constructs a [`IncorrectTrustAnchorException`](crate::error::IncorrectTrustAnchorException) + pub fn build(self) -> crate::error::IncorrectTrustAnchorException { + crate::error::IncorrectTrustAnchorException { message: self.message, } } } } -impl IncorrectTrustAnchorError { - /// Creates a new builder-style object to manufacture [`IncorrectTrustAnchorError`](crate::error::IncorrectTrustAnchorError) - pub fn builder() -> crate::error::incorrect_trust_anchor_error::Builder { - crate::error::incorrect_trust_anchor_error::Builder::default() +impl IncorrectTrustAnchorException { + /// Creates a new builder-style object to manufacture [`IncorrectTrustAnchorException`](crate::error::IncorrectTrustAnchorException) + pub fn builder() -> crate::error::incorrect_trust_anchor_exception::Builder { + crate::error::incorrect_trust_anchor_exception::Builder::default() } } @@ -7483,40 +7648,35 @@ impl IncorrectTrustAnchorError { ///

    Clusters that share a backup history have the same cluster certificate. To view the /// cluster certificate of a cluster, use the DescribeClusters operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CloudHsmClusterInUseError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CloudHsmClusterInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for CloudHsmClusterInUseError { +impl std::fmt::Debug for CloudHsmClusterInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CloudHsmClusterInUseError"); + let mut formatter = f.debug_struct("CloudHsmClusterInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl CloudHsmClusterInUseError { +impl CloudHsmClusterInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CloudHsmClusterInUseError { +impl std::fmt::Display for CloudHsmClusterInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CloudHsmClusterInUseError [CloudHsmClusterInUseException]" - )?; + write!(f, "CloudHsmClusterInUseException")?; if let Some(inner_31) = &self.message { write!(f, ": {}", inner_31)?; } Ok(()) } } -impl std::error::Error for CloudHsmClusterInUseError {} -/// See [`CloudHsmClusterInUseError`](crate::error::CloudHsmClusterInUseError) -pub mod cloud_hsm_cluster_in_use_error { - /// A builder for [`CloudHsmClusterInUseError`](crate::error::CloudHsmClusterInUseError) +impl std::error::Error for CloudHsmClusterInUseException {} +/// See [`CloudHsmClusterInUseException`](crate::error::CloudHsmClusterInUseException) +pub mod cloud_hsm_cluster_in_use_exception { + /// A builder for [`CloudHsmClusterInUseException`](crate::error::CloudHsmClusterInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7531,54 +7691,52 @@ pub mod cloud_hsm_cluster_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`CloudHsmClusterInUseError`](crate::error::CloudHsmClusterInUseError) - pub fn build(self) -> crate::error::CloudHsmClusterInUseError { - crate::error::CloudHsmClusterInUseError { + /// Consumes the builder and constructs a [`CloudHsmClusterInUseException`](crate::error::CloudHsmClusterInUseException) + pub fn build(self) -> crate::error::CloudHsmClusterInUseException { + crate::error::CloudHsmClusterInUseException { message: self.message, } } } } -impl CloudHsmClusterInUseError { - /// Creates a new builder-style object to manufacture [`CloudHsmClusterInUseError`](crate::error::CloudHsmClusterInUseError) - pub fn builder() -> crate::error::cloud_hsm_cluster_in_use_error::Builder { - crate::error::cloud_hsm_cluster_in_use_error::Builder::default() +impl CloudHsmClusterInUseException { + /// Creates a new builder-style object to manufacture [`CloudHsmClusterInUseException`](crate::error::CloudHsmClusterInUseException) + pub fn builder() -> crate::error::cloud_hsm_cluster_in_use_exception::Builder { + crate::error::cloud_hsm_cluster_in_use_exception::Builder::default() } } ///

    The request was rejected because the specified alias name is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAliasNameError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAliasNameException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAliasNameError { +impl std::fmt::Debug for InvalidAliasNameException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAliasNameError"); + let mut formatter = f.debug_struct("InvalidAliasNameException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAliasNameError { +impl InvalidAliasNameException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAliasNameError { +impl std::fmt::Display for InvalidAliasNameException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidAliasNameError [InvalidAliasNameException]")?; + write!(f, "InvalidAliasNameException")?; if let Some(inner_32) = &self.message { write!(f, ": {}", inner_32)?; } Ok(()) } } -impl std::error::Error for InvalidAliasNameError {} -/// See [`InvalidAliasNameError`](crate::error::InvalidAliasNameError) -pub mod invalid_alias_name_error { - /// A builder for [`InvalidAliasNameError`](crate::error::InvalidAliasNameError) +impl std::error::Error for InvalidAliasNameException {} +/// See [`InvalidAliasNameException`](crate::error::InvalidAliasNameException) +pub mod invalid_alias_name_exception { + /// A builder for [`InvalidAliasNameException`](crate::error::InvalidAliasNameException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7593,55 +7751,53 @@ pub mod invalid_alias_name_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAliasNameError`](crate::error::InvalidAliasNameError) - pub fn build(self) -> crate::error::InvalidAliasNameError { - crate::error::InvalidAliasNameError { + /// Consumes the builder and constructs a [`InvalidAliasNameException`](crate::error::InvalidAliasNameException) + pub fn build(self) -> crate::error::InvalidAliasNameException { + crate::error::InvalidAliasNameException { message: self.message, } } } } -impl InvalidAliasNameError { - /// Creates a new builder-style object to manufacture [`InvalidAliasNameError`](crate::error::InvalidAliasNameError) - pub fn builder() -> crate::error::invalid_alias_name_error::Builder { - crate::error::invalid_alias_name_error::Builder::default() +impl InvalidAliasNameException { + /// Creates a new builder-style object to manufacture [`InvalidAliasNameException`](crate::error::InvalidAliasNameException) + pub fn builder() -> crate::error::invalid_alias_name_exception::Builder { + crate::error::invalid_alias_name_exception::Builder::default() } } ///

    The request was rejected because it attempted to create a resource that already /// exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for AlreadyExistsError { +impl std::fmt::Debug for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AlreadyExistsError"); + let mut formatter = f.debug_struct("AlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl AlreadyExistsError { +impl AlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AlreadyExistsError { +impl std::fmt::Display for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AlreadyExistsError [AlreadyExistsException]")?; + write!(f, "AlreadyExistsException")?; if let Some(inner_33) = &self.message { write!(f, ": {}", inner_33)?; } Ok(()) } } -impl std::error::Error for AlreadyExistsError {} -/// See [`AlreadyExistsError`](crate::error::AlreadyExistsError) -pub mod already_exists_error { - /// A builder for [`AlreadyExistsError`](crate::error::AlreadyExistsError) +impl std::error::Error for AlreadyExistsException {} +/// See [`AlreadyExistsException`](crate::error::AlreadyExistsException) +pub mod already_exists_exception { + /// A builder for [`AlreadyExistsException`](crate::error::AlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7656,17 +7812,17 @@ pub mod already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn build(self) -> crate::error::AlreadyExistsError { - crate::error::AlreadyExistsError { + /// Consumes the builder and constructs a [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn build(self) -> crate::error::AlreadyExistsException { + crate::error::AlreadyExistsException { message: self.message, } } } } -impl AlreadyExistsError { - /// Creates a new builder-style object to manufacture [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn builder() -> crate::error::already_exists_error::Builder { - crate::error::already_exists_error::Builder::default() +impl AlreadyExistsException { + /// Creates a new builder-style object to manufacture [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn builder() -> crate::error::already_exists_exception::Builder { + crate::error::already_exists_exception::Builder::default() } } diff --git a/sdk/kms/src/error_meta.rs b/sdk/kms/src/error_meta.rs index bc591e9fdfb9..dbd28201d67c 100644 --- a/sdk/kms/src/error_meta.rs +++ b/sdk/kms/src/error_meta.rs @@ -2,79 +2,79 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AlreadyExistsError(crate::error::AlreadyExistsError), - CloudHsmClusterInUseError(crate::error::CloudHsmClusterInUseError), - CloudHsmClusterInvalidConfigurationError( - crate::error::CloudHsmClusterInvalidConfigurationError, + AlreadyExistsException(crate::error::AlreadyExistsException), + CloudHsmClusterInUseException(crate::error::CloudHsmClusterInUseException), + CloudHsmClusterInvalidConfigurationException( + crate::error::CloudHsmClusterInvalidConfigurationException, ), - CloudHsmClusterNotActiveError(crate::error::CloudHsmClusterNotActiveError), - CloudHsmClusterNotFoundError(crate::error::CloudHsmClusterNotFoundError), - CloudHsmClusterNotRelatedError(crate::error::CloudHsmClusterNotRelatedError), - CustomKeyStoreHasCMKsError(crate::error::CustomKeyStoreHasCMKsError), - CustomKeyStoreInvalidStateError(crate::error::CustomKeyStoreInvalidStateError), - CustomKeyStoreNameInUseError(crate::error::CustomKeyStoreNameInUseError), - CustomKeyStoreNotFoundError(crate::error::CustomKeyStoreNotFoundError), - DependencyTimeoutError(crate::error::DependencyTimeoutError), - DisabledError(crate::error::DisabledError), - ExpiredImportTokenError(crate::error::ExpiredImportTokenError), - IncorrectKeyError(crate::error::IncorrectKeyError), - IncorrectKeyMaterialError(crate::error::IncorrectKeyMaterialError), - IncorrectTrustAnchorError(crate::error::IncorrectTrustAnchorError), - InvalidAliasNameError(crate::error::InvalidAliasNameError), - InvalidArnError(crate::error::InvalidArnError), - InvalidCiphertextError(crate::error::InvalidCiphertextError), - InvalidGrantIdError(crate::error::InvalidGrantIdError), - InvalidGrantTokenError(crate::error::InvalidGrantTokenError), - InvalidImportTokenError(crate::error::InvalidImportTokenError), - InvalidKeyUsageError(crate::error::InvalidKeyUsageError), - InvalidMarkerError(crate::error::InvalidMarkerError), - KMSInternalError(crate::error::KMSInternalError), - KMSInvalidSignatureError(crate::error::KMSInvalidSignatureError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KeyUnavailableError(crate::error::KeyUnavailableError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - NotFoundError(crate::error::NotFoundError), - TagError(crate::error::TagError), - UnsupportedOperationError(crate::error::UnsupportedOperationError), + CloudHsmClusterNotActiveException(crate::error::CloudHsmClusterNotActiveException), + CloudHsmClusterNotFoundException(crate::error::CloudHsmClusterNotFoundException), + CloudHsmClusterNotRelatedException(crate::error::CloudHsmClusterNotRelatedException), + CustomKeyStoreHasCmKsException(crate::error::CustomKeyStoreHasCmKsException), + CustomKeyStoreInvalidStateException(crate::error::CustomKeyStoreInvalidStateException), + CustomKeyStoreNameInUseException(crate::error::CustomKeyStoreNameInUseException), + CustomKeyStoreNotFoundException(crate::error::CustomKeyStoreNotFoundException), + DependencyTimeoutException(crate::error::DependencyTimeoutException), + DisabledException(crate::error::DisabledException), + ExpiredImportTokenException(crate::error::ExpiredImportTokenException), + IncorrectKeyException(crate::error::IncorrectKeyException), + IncorrectKeyMaterialException(crate::error::IncorrectKeyMaterialException), + IncorrectTrustAnchorException(crate::error::IncorrectTrustAnchorException), + InvalidAliasNameException(crate::error::InvalidAliasNameException), + InvalidArnException(crate::error::InvalidArnException), + InvalidCiphertextException(crate::error::InvalidCiphertextException), + InvalidGrantIdException(crate::error::InvalidGrantIdException), + InvalidGrantTokenException(crate::error::InvalidGrantTokenException), + InvalidImportTokenException(crate::error::InvalidImportTokenException), + InvalidKeyUsageException(crate::error::InvalidKeyUsageException), + InvalidMarkerException(crate::error::InvalidMarkerException), + KmsInternalException(crate::error::KmsInternalException), + KmsInvalidSignatureException(crate::error::KmsInvalidSignatureException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KeyUnavailableException(crate::error::KeyUnavailableException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + NotFoundException(crate::error::NotFoundException), + TagException(crate::error::TagException), + UnsupportedOperationException(crate::error::UnsupportedOperationException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AlreadyExistsError(inner) => inner.fmt(f), - Error::CloudHsmClusterInUseError(inner) => inner.fmt(f), - Error::CloudHsmClusterInvalidConfigurationError(inner) => inner.fmt(f), - Error::CloudHsmClusterNotActiveError(inner) => inner.fmt(f), - Error::CloudHsmClusterNotFoundError(inner) => inner.fmt(f), - Error::CloudHsmClusterNotRelatedError(inner) => inner.fmt(f), - Error::CustomKeyStoreHasCMKsError(inner) => inner.fmt(f), - Error::CustomKeyStoreInvalidStateError(inner) => inner.fmt(f), - Error::CustomKeyStoreNameInUseError(inner) => inner.fmt(f), - Error::CustomKeyStoreNotFoundError(inner) => inner.fmt(f), - Error::DependencyTimeoutError(inner) => inner.fmt(f), - Error::DisabledError(inner) => inner.fmt(f), - Error::ExpiredImportTokenError(inner) => inner.fmt(f), - Error::IncorrectKeyError(inner) => inner.fmt(f), - Error::IncorrectKeyMaterialError(inner) => inner.fmt(f), - Error::IncorrectTrustAnchorError(inner) => inner.fmt(f), - Error::InvalidAliasNameError(inner) => inner.fmt(f), - Error::InvalidArnError(inner) => inner.fmt(f), - Error::InvalidCiphertextError(inner) => inner.fmt(f), - Error::InvalidGrantIdError(inner) => inner.fmt(f), - Error::InvalidGrantTokenError(inner) => inner.fmt(f), - Error::InvalidImportTokenError(inner) => inner.fmt(f), - Error::InvalidKeyUsageError(inner) => inner.fmt(f), - Error::InvalidMarkerError(inner) => inner.fmt(f), - Error::KMSInternalError(inner) => inner.fmt(f), - Error::KMSInvalidSignatureError(inner) => inner.fmt(f), - Error::KMSInvalidStateError(inner) => inner.fmt(f), - Error::KeyUnavailableError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MalformedPolicyDocumentError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::TagError(inner) => inner.fmt(f), - Error::UnsupportedOperationError(inner) => inner.fmt(f), + Error::AlreadyExistsException(inner) => inner.fmt(f), + Error::CloudHsmClusterInUseException(inner) => inner.fmt(f), + Error::CloudHsmClusterInvalidConfigurationException(inner) => inner.fmt(f), + Error::CloudHsmClusterNotActiveException(inner) => inner.fmt(f), + Error::CloudHsmClusterNotFoundException(inner) => inner.fmt(f), + Error::CloudHsmClusterNotRelatedException(inner) => inner.fmt(f), + Error::CustomKeyStoreHasCmKsException(inner) => inner.fmt(f), + Error::CustomKeyStoreInvalidStateException(inner) => inner.fmt(f), + Error::CustomKeyStoreNameInUseException(inner) => inner.fmt(f), + Error::CustomKeyStoreNotFoundException(inner) => inner.fmt(f), + Error::DependencyTimeoutException(inner) => inner.fmt(f), + Error::DisabledException(inner) => inner.fmt(f), + Error::ExpiredImportTokenException(inner) => inner.fmt(f), + Error::IncorrectKeyException(inner) => inner.fmt(f), + Error::IncorrectKeyMaterialException(inner) => inner.fmt(f), + Error::IncorrectTrustAnchorException(inner) => inner.fmt(f), + Error::InvalidAliasNameException(inner) => inner.fmt(f), + Error::InvalidArnException(inner) => inner.fmt(f), + Error::InvalidCiphertextException(inner) => inner.fmt(f), + Error::InvalidGrantIdException(inner) => inner.fmt(f), + Error::InvalidGrantTokenException(inner) => inner.fmt(f), + Error::InvalidImportTokenException(inner) => inner.fmt(f), + Error::InvalidKeyUsageException(inner) => inner.fmt(f), + Error::InvalidMarkerException(inner) => inner.fmt(f), + Error::KmsInternalException(inner) => inner.fmt(f), + Error::KmsInvalidSignatureException(inner) => inner.fmt(f), + Error::KmsInvalidStateException(inner) => inner.fmt(f), + Error::KeyUnavailableException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MalformedPolicyDocumentException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::TagException(inner) => inner.fmt(f), + Error::UnsupportedOperationException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -83,20 +83,20 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelKeyDeletionErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::CancelKeyDeletionErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::CancelKeyDeletionErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::CancelKeyDeletionErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::CancelKeyDeletionErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::CancelKeyDeletionErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::CancelKeyDeletionErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::CancelKeyDeletionErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::CancelKeyDeletionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CancelKeyDeletionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CancelKeyDeletionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -110,11 +110,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(inner) => Error::CloudHsmClusterInvalidConfigurationError(inner), - crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(inner) => Error::CloudHsmClusterNotActiveError(inner), - crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(inner) => Error::CustomKeyStoreInvalidStateError(inner), - crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(inner) => Error::CustomKeyStoreNotFoundError(inner), - crate::error::ConnectCustomKeyStoreErrorKind::KMSInternalError(inner) => Error::KMSInternalError(inner), + crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(inner) => Error::CloudHsmClusterInvalidConfigurationException(inner), + crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(inner) => Error::CloudHsmClusterNotActiveException(inner), + crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(inner) => Error::CustomKeyStoreInvalidStateException(inner), + crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(inner) => Error::CustomKeyStoreNotFoundException(inner), + crate::error::ConnectCustomKeyStoreErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), crate::error::ConnectCustomKeyStoreErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -125,26 +125,26 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateAliasErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateAliasErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateAliasErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::CreateAliasErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::CreateAliasErrorKind::InvalidAliasNameError(inner) => { - Error::InvalidAliasNameError(inner) + crate::error::CreateAliasErrorKind::InvalidAliasNameException(inner) => { + Error::InvalidAliasNameException(inner) } - crate::error::CreateAliasErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::CreateAliasErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::CreateAliasErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::CreateAliasErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::CreateAliasErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateAliasErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateAliasErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateAliasErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CreateAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -156,13 +156,13 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseError(inner) => Error::CloudHsmClusterInUseError(inner), - crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(inner) => Error::CloudHsmClusterInvalidConfigurationError(inner), - crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(inner) => Error::CloudHsmClusterNotActiveError(inner), - crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(inner) => Error::CloudHsmClusterNotFoundError(inner), - crate::error::CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(inner) => Error::CustomKeyStoreNameInUseError(inner), - crate::error::CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorError(inner) => Error::IncorrectTrustAnchorError(inner), - crate::error::CreateCustomKeyStoreErrorKind::KMSInternalError(inner) => Error::KMSInternalError(inner), + crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseException(inner) => Error::CloudHsmClusterInUseException(inner), + crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(inner) => Error::CloudHsmClusterInvalidConfigurationException(inner), + crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(inner) => Error::CloudHsmClusterNotActiveException(inner), + crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(inner) => Error::CloudHsmClusterNotFoundException(inner), + crate::error::CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(inner) => Error::CustomKeyStoreNameInUseException(inner), + crate::error::CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorException(inner) => Error::IncorrectTrustAnchorException(inner), + crate::error::CreateCustomKeyStoreErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), crate::error::CreateCustomKeyStoreErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -173,29 +173,29 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateGrantErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::CreateGrantErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::CreateGrantErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::CreateGrantErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::CreateGrantErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::CreateGrantErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::CreateGrantErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::CreateGrantErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::CreateGrantErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::CreateGrantErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::CreateGrantErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::CreateGrantErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::CreateGrantErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateGrantErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateGrantErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateGrantErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CreateGrantErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -207,33 +207,33 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationError( + crate::error::CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationException( inner, - ) => Error::CloudHsmClusterInvalidConfigurationError(inner), - crate::error::CreateKeyErrorKind::CustomKeyStoreInvalidStateError(inner) => { - Error::CustomKeyStoreInvalidStateError(inner) + ) => Error::CloudHsmClusterInvalidConfigurationException(inner), + crate::error::CreateKeyErrorKind::CustomKeyStoreInvalidStateException(inner) => { + Error::CustomKeyStoreInvalidStateException(inner) } - crate::error::CreateKeyErrorKind::CustomKeyStoreNotFoundError(inner) => { - Error::CustomKeyStoreNotFoundError(inner) + crate::error::CreateKeyErrorKind::CustomKeyStoreNotFoundException(inner) => { + Error::CustomKeyStoreNotFoundException(inner) } - crate::error::CreateKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::CreateKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::CreateKeyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::CreateKeyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::CreateKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::CreateKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::CreateKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateKeyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::CreateKeyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::CreateKeyErrorKind::TagError(inner) => Error::TagError(inner), - crate::error::CreateKeyErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::CreateKeyErrorKind::TagException(inner) => Error::TagException(inner), + crate::error::CreateKeyErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::CreateKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -245,32 +245,36 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DecryptErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::DecryptErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::DecryptErrorKind::DisabledError(inner) => Error::DisabledError(inner), - crate::error::DecryptErrorKind::IncorrectKeyError(inner) => { - Error::IncorrectKeyError(inner) + crate::error::DecryptErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::DecryptErrorKind::InvalidCiphertextError(inner) => { - Error::InvalidCiphertextError(inner) + crate::error::DecryptErrorKind::IncorrectKeyException(inner) => { + Error::IncorrectKeyException(inner) } - crate::error::DecryptErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::DecryptErrorKind::InvalidCiphertextException(inner) => { + Error::InvalidCiphertextException(inner) } - crate::error::DecryptErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::DecryptErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::DecryptErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::DecryptErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::DecryptErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DecryptErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::DecryptErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::DecryptErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) + } + crate::error::DecryptErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) + } + crate::error::DecryptErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DecryptErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), crate::error::DecryptErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -281,17 +285,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAliasErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::DeleteAliasErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::DeleteAliasErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DeleteAliasErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::DeleteAliasErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::DeleteAliasErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::DeleteAliasErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteAliasErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::DeleteAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -302,23 +306,13 @@ impl From> for Err impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCMKsError(inner) => { - Error::CustomKeyStoreHasCMKsError(inner) - } - crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError( - inner, - ) => Error::CustomKeyStoreInvalidStateError(inner), - crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(inner) => { - Error::CustomKeyStoreNotFoundError(inner) - } - crate::error::DeleteCustomKeyStoreErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) - } - crate::error::DeleteCustomKeyStoreErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCmKsException(inner) => Error::CustomKeyStoreHasCmKsException(inner), + crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(inner) => Error::CustomKeyStoreInvalidStateException(inner), + crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(inner) => Error::CustomKeyStoreNotFoundException(inner), + crate::error::DeleteCustomKeyStoreErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), + crate::error::DeleteCustomKeyStoreErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -329,24 +323,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteImportedKeyMaterialErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) - } - crate::error::DeleteImportedKeyMaterialErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) - } - crate::error::DeleteImportedKeyMaterialErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DeleteImportedKeyMaterialErrorKind::DependencyTimeoutException( + inner, + ) => Error::DependencyTimeoutException(inner), + crate::error::DeleteImportedKeyMaterialErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::DeleteImportedKeyMaterialErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::DeleteImportedKeyMaterialErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::DeleteImportedKeyMaterialErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteImportedKeyMaterialErrorKind::KmsInvalidStateException( + inner, + ) => Error::KmsInvalidStateException(inner), + crate::error::DeleteImportedKeyMaterialErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteImportedKeyMaterialErrorKind::UnsupportedOperationError( + crate::error::DeleteImportedKeyMaterialErrorKind::UnsupportedOperationException( inner, - ) => Error::UnsupportedOperationError(inner), + ) => Error::UnsupportedOperationException(inner), crate::error::DeleteImportedKeyMaterialErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -361,11 +355,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundError( + crate::error::DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundException( inner, - ) => Error::CustomKeyStoreNotFoundError(inner), - crate::error::DescribeCustomKeyStoresErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + ) => Error::CustomKeyStoreNotFoundException(inner), + crate::error::DescribeCustomKeyStoresErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } crate::error::DescribeCustomKeyStoresErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -379,17 +373,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::DescribeKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::DescribeKeyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::DescribeKeyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::DescribeKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DescribeKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::DescribeKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::DescribeKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -401,20 +395,20 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DisableKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::DisableKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::DisableKeyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::DisableKeyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::DisableKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DisableKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::DisableKeyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::DisableKeyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::DisableKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DisableKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::DisableKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -426,26 +420,26 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DisableKeyRotationErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::DisableKeyRotationErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::DisableKeyRotationErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::DisableKeyRotationErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::DisableKeyRotationErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::DisableKeyRotationErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::DisableKeyRotationErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::DisableKeyRotationErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::DisableKeyRotationErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::DisableKeyRotationErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::DisableKeyRotationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DisableKeyRotationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DisableKeyRotationErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::DisableKeyRotationErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::DisableKeyRotationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -461,9 +455,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(inner) => Error::CustomKeyStoreInvalidStateError(inner), - crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(inner) => Error::CustomKeyStoreNotFoundError(inner), - crate::error::DisconnectCustomKeyStoreErrorKind::KMSInternalError(inner) => Error::KMSInternalError(inner), + crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(inner) => Error::CustomKeyStoreInvalidStateException(inner), + crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(inner) => Error::CustomKeyStoreNotFoundException(inner), + crate::error::DisconnectCustomKeyStoreErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), crate::error::DisconnectCustomKeyStoreErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -474,23 +468,23 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EnableKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::EnableKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::EnableKeyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::EnableKeyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::EnableKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::EnableKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::EnableKeyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::EnableKeyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::EnableKeyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::EnableKeyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::EnableKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::EnableKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::EnableKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -502,26 +496,26 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EnableKeyRotationErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::EnableKeyRotationErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::EnableKeyRotationErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::EnableKeyRotationErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::EnableKeyRotationErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::EnableKeyRotationErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::EnableKeyRotationErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::EnableKeyRotationErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::EnableKeyRotationErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::EnableKeyRotationErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::EnableKeyRotationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::EnableKeyRotationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::EnableKeyRotationErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::EnableKeyRotationErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::EnableKeyRotationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -535,26 +529,30 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::EncryptErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::EncryptErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) + } + crate::error::EncryptErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) + } + crate::error::EncryptErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::EncryptErrorKind::DisabledError(inner) => Error::DisabledError(inner), - crate::error::EncryptErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::EncryptErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::EncryptErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::EncryptErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::EncryptErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::EncryptErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::EncryptErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::EncryptErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::EncryptErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::EncryptErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::EncryptErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), crate::error::EncryptErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -565,29 +563,29 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateDataKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GenerateDataKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GenerateDataKeyErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::GenerateDataKeyErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::GenerateDataKeyErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::GenerateDataKeyErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::GenerateDataKeyErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::GenerateDataKeyErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::GenerateDataKeyErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::GenerateDataKeyErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::GenerateDataKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GenerateDataKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GenerateDataKeyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GenerateDataKeyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GenerateDataKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GenerateDataKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::GenerateDataKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -599,33 +597,33 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateDataKeyPairErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GenerateDataKeyPairErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GenerateDataKeyPairErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::GenerateDataKeyPairErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::GenerateDataKeyPairErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::GenerateDataKeyPairErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::GenerateDataKeyPairErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::GenerateDataKeyPairErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::GenerateDataKeyPairErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::GenerateDataKeyPairErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::GenerateDataKeyPairErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GenerateDataKeyPairErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GenerateDataKeyPairErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GenerateDataKeyPairErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GenerateDataKeyPairErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::GenerateDataKeyPairErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::GenerateDataKeyPairErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GenerateDataKeyPairErrorKind::UnsupportedOperationException( + inner, + ) => Error::UnsupportedOperationException(inner), crate::error::GenerateDataKeyPairErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -642,15 +640,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutError(inner) => Error::DependencyTimeoutError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledError(inner) => Error::DisabledError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenError(inner) => Error::InvalidGrantTokenError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageError(inner) => Error::InvalidKeyUsageError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableError(inner) => Error::KeyUnavailableError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInternalError(inner) => Error::KMSInternalError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInvalidStateError(inner) => Error::KMSInvalidStateError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationError(inner) => Error::UnsupportedOperationError(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledException(inner) => Error::DisabledException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner), crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -664,35 +662,17 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutError( - inner, - ) => Error::DependencyTimeoutError(inner), - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) - } - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenError( - inner, - ) => Error::InvalidGrantTokenError(inner), - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageError( - inner, - ) => Error::InvalidKeyUsageError(inner), - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableError( - inner, - ) => Error::KeyUnavailableError(inner), - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) - } - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KMSInvalidStateError( - inner, - ) => Error::KMSInvalidStateError(inner), - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::GenerateDataKeyWithoutPlaintextErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DisabledException(inner) => Error::DisabledException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -701,17 +681,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GenerateRandomErrorKind::CustomKeyStoreInvalidStateError(inner) => { - Error::CustomKeyStoreInvalidStateError(inner) - } - crate::error::GenerateRandomErrorKind::CustomKeyStoreNotFoundError(inner) => { - Error::CustomKeyStoreNotFoundError(inner) + crate::error::GenerateRandomErrorKind::CustomKeyStoreInvalidStateException( + inner, + ) => Error::CustomKeyStoreInvalidStateException(inner), + crate::error::GenerateRandomErrorKind::CustomKeyStoreNotFoundException(inner) => { + Error::CustomKeyStoreNotFoundException(inner) } - crate::error::GenerateRandomErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GenerateRandomErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GenerateRandomErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GenerateRandomErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } crate::error::GenerateRandomErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -723,20 +703,20 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetKeyPolicyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GetKeyPolicyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GetKeyPolicyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::GetKeyPolicyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::GetKeyPolicyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GetKeyPolicyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GetKeyPolicyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GetKeyPolicyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GetKeyPolicyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetKeyPolicyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::GetKeyPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -748,24 +728,24 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetKeyRotationStatusErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GetKeyRotationStatusErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GetKeyRotationStatusErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::GetKeyRotationStatusErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::GetKeyRotationStatusErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GetKeyRotationStatusErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GetKeyRotationStatusErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GetKeyRotationStatusErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GetKeyRotationStatusErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::GetKeyRotationStatusErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::GetKeyRotationStatusErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetKeyRotationStatusErrorKind::UnsupportedOperationException( + inner, + ) => Error::UnsupportedOperationException(inner), crate::error::GetKeyRotationStatusErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -778,24 +758,24 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetParametersForImportErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) - } - crate::error::GetParametersForImportErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) - } - crate::error::GetParametersForImportErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GetParametersForImportErrorKind::DependencyTimeoutException( + inner, + ) => Error::DependencyTimeoutException(inner), + crate::error::GetParametersForImportErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::GetParametersForImportErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GetParametersForImportErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GetParametersForImportErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetParametersForImportErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GetParametersForImportErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::GetParametersForImportErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetParametersForImportErrorKind::UnsupportedOperationException( + inner, + ) => Error::UnsupportedOperationException(inner), crate::error::GetParametersForImportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -808,35 +788,35 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetPublicKeyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::GetPublicKeyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::GetPublicKeyErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::GetPublicKeyErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::GetPublicKeyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::GetPublicKeyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::GetPublicKeyErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::GetPublicKeyErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::GetPublicKeyErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::GetPublicKeyErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::GetPublicKeyErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::GetPublicKeyErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::GetPublicKeyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::GetPublicKeyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::GetPublicKeyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::GetPublicKeyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::GetPublicKeyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetPublicKeyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetPublicKeyErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::GetPublicKeyErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::GetPublicKeyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -848,35 +828,35 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ImportKeyMaterialErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ImportKeyMaterialErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ImportKeyMaterialErrorKind::ExpiredImportTokenError(inner) => { - Error::ExpiredImportTokenError(inner) + crate::error::ImportKeyMaterialErrorKind::ExpiredImportTokenException(inner) => { + Error::ExpiredImportTokenException(inner) } - crate::error::ImportKeyMaterialErrorKind::IncorrectKeyMaterialError(inner) => { - Error::IncorrectKeyMaterialError(inner) + crate::error::ImportKeyMaterialErrorKind::IncorrectKeyMaterialException(inner) => { + Error::IncorrectKeyMaterialException(inner) } - crate::error::ImportKeyMaterialErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ImportKeyMaterialErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ImportKeyMaterialErrorKind::InvalidCiphertextError(inner) => { - Error::InvalidCiphertextError(inner) + crate::error::ImportKeyMaterialErrorKind::InvalidCiphertextException(inner) => { + Error::InvalidCiphertextException(inner) } - crate::error::ImportKeyMaterialErrorKind::InvalidImportTokenError(inner) => { - Error::InvalidImportTokenError(inner) + crate::error::ImportKeyMaterialErrorKind::InvalidImportTokenException(inner) => { + Error::InvalidImportTokenException(inner) } - crate::error::ImportKeyMaterialErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ImportKeyMaterialErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ImportKeyMaterialErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::ImportKeyMaterialErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::ImportKeyMaterialErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ImportKeyMaterialErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ImportKeyMaterialErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::ImportKeyMaterialErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::ImportKeyMaterialErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -890,20 +870,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAliasesErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ListAliasesErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ListAliasesErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ListAliasesErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ListAliasesErrorKind::InvalidMarkerError(inner) => { - Error::InvalidMarkerError(inner) + crate::error::ListAliasesErrorKind::InvalidMarkerException(inner) => { + Error::InvalidMarkerException(inner) } - crate::error::ListAliasesErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListAliasesErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ListAliasesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListAliasesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListAliasesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -915,26 +895,26 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListGrantsErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ListGrantsErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ListGrantsErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ListGrantsErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ListGrantsErrorKind::InvalidGrantIdError(inner) => { - Error::InvalidGrantIdError(inner) + crate::error::ListGrantsErrorKind::InvalidGrantIdException(inner) => { + Error::InvalidGrantIdException(inner) } - crate::error::ListGrantsErrorKind::InvalidMarkerError(inner) => { - Error::InvalidMarkerError(inner) + crate::error::ListGrantsErrorKind::InvalidMarkerException(inner) => { + Error::InvalidMarkerException(inner) } - crate::error::ListGrantsErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListGrantsErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ListGrantsErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::ListGrantsErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::ListGrantsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListGrantsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListGrantsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -946,20 +926,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListKeyPoliciesErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ListKeyPoliciesErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ListKeyPoliciesErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ListKeyPoliciesErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ListKeyPoliciesErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListKeyPoliciesErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ListKeyPoliciesErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::ListKeyPoliciesErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::ListKeyPoliciesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListKeyPoliciesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListKeyPoliciesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -971,14 +951,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListKeysErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ListKeysErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ListKeysErrorKind::InvalidMarkerError(inner) => { - Error::InvalidMarkerError(inner) + crate::error::ListKeysErrorKind::InvalidMarkerException(inner) => { + Error::InvalidMarkerException(inner) } - crate::error::ListKeysErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListKeysErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } crate::error::ListKeysErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -990,17 +970,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListResourceTagsErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ListResourceTagsErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ListResourceTagsErrorKind::InvalidMarkerError(inner) => { - Error::InvalidMarkerError(inner) + crate::error::ListResourceTagsErrorKind::InvalidMarkerException(inner) => { + Error::InvalidMarkerException(inner) } - crate::error::ListResourceTagsErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListResourceTagsErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ListResourceTagsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListResourceTagsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListResourceTagsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1014,20 +994,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListRetirableGrantsErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ListRetirableGrantsErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ListRetirableGrantsErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ListRetirableGrantsErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ListRetirableGrantsErrorKind::InvalidMarkerError(inner) => { - Error::InvalidMarkerError(inner) + crate::error::ListRetirableGrantsErrorKind::InvalidMarkerException(inner) => { + Error::InvalidMarkerException(inner) } - crate::error::ListRetirableGrantsErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ListRetirableGrantsErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ListRetirableGrantsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListRetirableGrantsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListRetirableGrantsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1041,29 +1021,29 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutKeyPolicyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::PutKeyPolicyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::PutKeyPolicyErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::PutKeyPolicyErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::PutKeyPolicyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::PutKeyPolicyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::PutKeyPolicyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::PutKeyPolicyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::PutKeyPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutKeyPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutKeyPolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::PutKeyPolicyErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::PutKeyPolicyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutKeyPolicyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutKeyPolicyErrorKind::UnsupportedOperationError(inner) => { - Error::UnsupportedOperationError(inner) + crate::error::PutKeyPolicyErrorKind::UnsupportedOperationException(inner) => { + Error::UnsupportedOperationException(inner) } crate::error::PutKeyPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1075,35 +1055,35 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ReEncryptErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ReEncryptErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ReEncryptErrorKind::DisabledError(inner) => { - Error::DisabledError(inner) + crate::error::ReEncryptErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::ReEncryptErrorKind::IncorrectKeyError(inner) => { - Error::IncorrectKeyError(inner) + crate::error::ReEncryptErrorKind::IncorrectKeyException(inner) => { + Error::IncorrectKeyException(inner) } - crate::error::ReEncryptErrorKind::InvalidCiphertextError(inner) => { - Error::InvalidCiphertextError(inner) + crate::error::ReEncryptErrorKind::InvalidCiphertextException(inner) => { + Error::InvalidCiphertextException(inner) } - crate::error::ReEncryptErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::ReEncryptErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::ReEncryptErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::ReEncryptErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::ReEncryptErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::ReEncryptErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::ReEncryptErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ReEncryptErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ReEncryptErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::ReEncryptErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::ReEncryptErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ReEncryptErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ReEncryptErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1115,26 +1095,26 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RetireGrantErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::RetireGrantErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::RetireGrantErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::RetireGrantErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::RetireGrantErrorKind::InvalidGrantIdError(inner) => { - Error::InvalidGrantIdError(inner) + crate::error::RetireGrantErrorKind::InvalidGrantIdException(inner) => { + Error::InvalidGrantIdException(inner) } - crate::error::RetireGrantErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::RetireGrantErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::RetireGrantErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::RetireGrantErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::RetireGrantErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::RetireGrantErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::RetireGrantErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::RetireGrantErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::RetireGrantErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1146,23 +1126,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RevokeGrantErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::RevokeGrantErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::RevokeGrantErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::RevokeGrantErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::RevokeGrantErrorKind::InvalidGrantIdError(inner) => { - Error::InvalidGrantIdError(inner) + crate::error::RevokeGrantErrorKind::InvalidGrantIdException(inner) => { + Error::InvalidGrantIdException(inner) } - crate::error::RevokeGrantErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::RevokeGrantErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::RevokeGrantErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::RevokeGrantErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::RevokeGrantErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::RevokeGrantErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::RevokeGrantErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1174,20 +1154,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ScheduleKeyDeletionErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::ScheduleKeyDeletionErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::ScheduleKeyDeletionErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::ScheduleKeyDeletionErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::ScheduleKeyDeletionErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::ScheduleKeyDeletionErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::ScheduleKeyDeletionErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::ScheduleKeyDeletionErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::ScheduleKeyDeletionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ScheduleKeyDeletionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ScheduleKeyDeletionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1201,26 +1181,30 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SignErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::SignErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::SignErrorKind::DisabledError(inner) => Error::DisabledError(inner), - crate::error::SignErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::SignErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) } - crate::error::SignErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::SignErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::SignErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::SignErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::SignErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::SignErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::SignErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::SignErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) + } + crate::error::SignErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) + } + crate::error::SignErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::SignErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), crate::error::SignErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -1231,22 +1215,24 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::TagResourceErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) + } + crate::error::TagResourceErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::TagResourceErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::TagResourceErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::TagResourceErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::TagResourceErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::TagResourceErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::TagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TagResourceErrorKind::TagException(inner) => { + Error::TagException(inner) } - crate::error::TagResourceErrorKind::TagError(inner) => Error::TagError(inner), crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -1257,19 +1243,21 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::UntagResourceErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::UntagResourceErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::UntagResourceErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::UntagResourceErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::UntagResourceErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::UntagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UntagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) + } + crate::error::UntagResourceErrorKind::TagException(inner) => { + Error::TagException(inner) } - crate::error::UntagResourceErrorKind::TagError(inner) => Error::TagError(inner), crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -1280,20 +1268,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAliasErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::UpdateAliasErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::UpdateAliasErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::UpdateAliasErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::UpdateAliasErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::UpdateAliasErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::UpdateAliasErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateAliasErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateAliasErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateAliasErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::UpdateAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1305,14 +1293,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(inner) => Error::CloudHsmClusterInvalidConfigurationError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(inner) => Error::CloudHsmClusterNotActiveError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(inner) => Error::CloudHsmClusterNotFoundError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedError(inner) => Error::CloudHsmClusterNotRelatedError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(inner) => Error::CustomKeyStoreInvalidStateError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(inner) => Error::CustomKeyStoreNameInUseError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(inner) => Error::CustomKeyStoreNotFoundError(inner), - crate::error::UpdateCustomKeyStoreErrorKind::KMSInternalError(inner) => Error::KMSInternalError(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException(inner) => Error::CloudHsmClusterInvalidConfigurationException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException(inner) => Error::CloudHsmClusterNotActiveException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException(inner) => Error::CloudHsmClusterNotFoundException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedException(inner) => Error::CloudHsmClusterNotRelatedException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException(inner) => Error::CustomKeyStoreInvalidStateException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException(inner) => Error::CustomKeyStoreNameInUseException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException(inner) => Error::CustomKeyStoreNotFoundException(inner), + crate::error::UpdateCustomKeyStoreErrorKind::KmsInternalException(inner) => Error::KmsInternalException(inner), crate::error::UpdateCustomKeyStoreErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1323,20 +1311,20 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateKeyDescriptionErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::UpdateKeyDescriptionErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) } - crate::error::UpdateKeyDescriptionErrorKind::InvalidArnError(inner) => { - Error::InvalidArnError(inner) + crate::error::UpdateKeyDescriptionErrorKind::InvalidArnException(inner) => { + Error::InvalidArnException(inner) } - crate::error::UpdateKeyDescriptionErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::UpdateKeyDescriptionErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::UpdateKeyDescriptionErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::UpdateKeyDescriptionErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::UpdateKeyDescriptionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateKeyDescriptionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::UpdateKeyDescriptionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1350,29 +1338,33 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::VerifyErrorKind::DependencyTimeoutError(inner) => { - Error::DependencyTimeoutError(inner) + crate::error::VerifyErrorKind::DependencyTimeoutException(inner) => { + Error::DependencyTimeoutException(inner) + } + crate::error::VerifyErrorKind::DisabledException(inner) => { + Error::DisabledException(inner) + } + crate::error::VerifyErrorKind::InvalidGrantTokenException(inner) => { + Error::InvalidGrantTokenException(inner) } - crate::error::VerifyErrorKind::DisabledError(inner) => Error::DisabledError(inner), - crate::error::VerifyErrorKind::InvalidGrantTokenError(inner) => { - Error::InvalidGrantTokenError(inner) + crate::error::VerifyErrorKind::InvalidKeyUsageException(inner) => { + Error::InvalidKeyUsageException(inner) } - crate::error::VerifyErrorKind::InvalidKeyUsageError(inner) => { - Error::InvalidKeyUsageError(inner) + crate::error::VerifyErrorKind::KeyUnavailableException(inner) => { + Error::KeyUnavailableException(inner) } - crate::error::VerifyErrorKind::KeyUnavailableError(inner) => { - Error::KeyUnavailableError(inner) + crate::error::VerifyErrorKind::KmsInternalException(inner) => { + Error::KmsInternalException(inner) } - crate::error::VerifyErrorKind::KMSInternalError(inner) => { - Error::KMSInternalError(inner) + crate::error::VerifyErrorKind::KmsInvalidSignatureException(inner) => { + Error::KmsInvalidSignatureException(inner) } - crate::error::VerifyErrorKind::KMSInvalidSignatureError(inner) => { - Error::KMSInvalidSignatureError(inner) + crate::error::VerifyErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::VerifyErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::VerifyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::VerifyErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), crate::error::VerifyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), diff --git a/sdk/kms/src/input.rs b/sdk/kms/src/input.rs index b24f629fd82f..74c124090b1d 100644 --- a/sdk/kms/src/input.rs +++ b/sdk/kms/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`CancelKeyDeletionInput`](crate::input::CancelKeyDeletionInput) pub mod cancel_key_deletion_input { /// A builder for [`CancelKeyDeletionInput`](crate::input::CancelKeyDeletionInput) @@ -107,15 +108,27 @@ impl CancelKeyDeletionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.CancelKeyDeletion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.CancelKeyDeletion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -230,15 +243,27 @@ impl ConnectCustomKeyStoreInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ConnectCustomKeyStore")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ConnectCustomKeyStore"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -380,15 +405,27 @@ impl CreateAliasInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.CreateAlias")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.CreateAlias"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -554,15 +591,27 @@ impl CreateCustomKeyStoreInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.CreateCustomKeyStore")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.CreateCustomKeyStore"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -793,15 +842,27 @@ impl CreateGrantInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.CreateGrant")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.CreateGrant"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1155,15 +1216,27 @@ impl CreateKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.CreateKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.CreateKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1363,15 +1436,27 @@ impl DecryptInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.Decrypt")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.Decrypt"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1478,15 +1563,27 @@ impl DeleteAliasInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DeleteAlias")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DeleteAlias"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1600,15 +1697,27 @@ impl DeleteCustomKeyStoreInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DeleteCustomKeyStore")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DeleteCustomKeyStore"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1735,15 +1844,27 @@ impl DeleteImportedKeyMaterialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DeleteImportedKeyMaterial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DeleteImportedKeyMaterial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1907,15 +2028,27 @@ impl DescribeCustomKeyStoresInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DescribeCustomKeyStores")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DescribeCustomKeyStores"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2061,15 +2194,27 @@ impl DescribeKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DescribeKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DescribeKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2188,15 +2333,27 @@ impl DisableKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DisableKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DisableKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2323,15 +2480,27 @@ impl DisableKeyRotationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DisableKeyRotation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DisableKeyRotation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2446,15 +2615,27 @@ impl DisconnectCustomKeyStoreInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.DisconnectCustomKeyStore")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.DisconnectCustomKeyStore"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2571,15 +2752,27 @@ impl EnableKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.EnableKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.EnableKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2703,15 +2896,27 @@ impl EnableKeyRotationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.EnableKeyRotation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.EnableKeyRotation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2902,15 +3107,27 @@ impl EncryptInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.Encrypt")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.Encrypt"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3111,15 +3328,27 @@ impl GenerateDataKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GenerateDataKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GenerateDataKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3306,15 +3535,27 @@ impl GenerateDataKeyPairInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GenerateDataKeyPair")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GenerateDataKeyPair"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3506,18 +3747,30 @@ impl GenerateDataKeyPairWithoutPlaintextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "TrentService.GenerateDataKeyPairWithoutPlaintext", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "TrentService.GenerateDataKeyPairWithoutPlaintext", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3720,18 +3973,30 @@ impl GenerateDataKeyWithoutPlaintextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "TrentService.GenerateDataKeyWithoutPlaintext", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "TrentService.GenerateDataKeyWithoutPlaintext", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3856,15 +4121,27 @@ impl GenerateRandomInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GenerateRandom")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GenerateRandom"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3995,15 +4272,27 @@ impl GetKeyPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GetKeyPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GetKeyPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4128,15 +4417,27 @@ impl GetKeyRotationStatusInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GetKeyRotationStatus")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GetKeyRotationStatus"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4291,15 +4592,27 @@ impl GetParametersForImportInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GetParametersForImport")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GetParametersForImport"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4441,15 +4754,27 @@ impl GetPublicKeyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.GetPublicKey")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.GetPublicKey"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4635,15 +4960,27 @@ impl ImportKeyMaterialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ImportKeyMaterial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ImportKeyMaterial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4793,15 +5130,27 @@ impl ListAliasesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListAliases")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListAliases"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4977,15 +5326,27 @@ impl ListGrantsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListGrants")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListGrants"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5137,15 +5498,27 @@ impl ListKeyPoliciesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListKeyPolicies")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListKeyPolicies"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5266,15 +5639,27 @@ impl ListKeysInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListKeys")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListKeys"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5428,15 +5813,27 @@ impl ListResourceTagsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListResourceTags")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListResourceTags"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5584,15 +5981,27 @@ impl ListRetirableGrantsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ListRetirableGrants")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ListRetirableGrants"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5775,15 +6184,27 @@ impl PutKeyPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.PutKeyPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.PutKeyPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6075,15 +6496,27 @@ impl ReEncryptInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ReEncrypt")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ReEncrypt"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6220,15 +6653,27 @@ impl RetireGrantInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.RetireGrant")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.RetireGrant"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6359,15 +6804,27 @@ impl RevokeGrantInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.RevokeGrant")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.RevokeGrant"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6505,15 +6962,27 @@ impl ScheduleKeyDeletionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.ScheduleKeyDeletion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.ScheduleKeyDeletion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6696,15 +7165,27 @@ impl SignInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.Sign")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.Sign"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6838,15 +7319,27 @@ impl TagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.TagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.TagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6983,15 +7476,27 @@ impl UntagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.UntagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.UntagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7132,15 +7637,27 @@ impl UpdateAliasInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.UpdateAlias")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.UpdateAlias"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7307,15 +7824,27 @@ impl UpdateCustomKeyStoreInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.UpdateCustomKeyStore")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.UpdateCustomKeyStore"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7450,15 +7979,27 @@ impl UpdateKeyDescriptionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.UpdateKeyDescription")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.UpdateKeyDescription"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7659,15 +8200,27 @@ impl VerifyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "TrentService.Verify")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "TrentService.Verify"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/kms/src/instant_epoch.rs b/sdk/kms/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/kms/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/kms/src/json_deser.rs b/sdk/kms/src/json_deser.rs index e6008ce5f6bd..73005007f333 100644 --- a/sdk/kms/src/json_deser.rs +++ b/sdk/kms/src/json_deser.rs @@ -1,491 +1,3735 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn cancel_key_deletion_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_dependency_timeout_exceptionjson_err( + input: &[u8], + mut builder: crate::error::dependency_timeout_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_arn_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_arn_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_internal_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_internal_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_invalid_state_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_invalid_state_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_cancel_key_deletion( input: &[u8], mut builder: crate::output::cancel_key_deletion_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CancelKeyDeletionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cloud_hsm_cluster_invalid_configuration_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder, +) -> Result< + crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cloud_hsm_cluster_not_active_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cloud_hsm_cluster_not_active_exception::Builder, +) -> Result< + crate::error::cloud_hsm_cluster_not_active_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_custom_key_store_invalid_state_exceptionjson_err( + input: &[u8], + mut builder: crate::error::custom_key_store_invalid_state_exception::Builder, +) -> Result< + crate::error::custom_key_store_invalid_state_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_custom_key_store_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::custom_key_store_not_found_exception::Builder, +) -> Result< + crate::error::custom_key_store_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::already_exists_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_alias_name_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_alias_name_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cloud_hsm_cluster_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cloud_hsm_cluster_in_use_exception::Builder, +) -> Result< + crate::error::cloud_hsm_cluster_in_use_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cloud_hsm_cluster_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cloud_hsm_cluster_not_found_exception::Builder, +) -> Result< + crate::error::cloud_hsm_cluster_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_custom_key_store_deser_operation( +pub fn deser_structure_custom_key_store_name_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::custom_key_store_name_in_use_exception::Builder, +) -> Result< + crate::error::custom_key_store_name_in_use_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_incorrect_trust_anchor_exceptionjson_err( + input: &[u8], + mut builder: crate::error::incorrect_trust_anchor_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_custom_key_store( input: &[u8], mut builder: crate::output::create_custom_key_store_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateCustomKeyStoreOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_custom_key_store_id(parsed_body.custom_key_store_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CustomKeyStoreId" => { + builder = builder.set_custom_key_store_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_disabled_exceptionjson_err( + input: &[u8], + mut builder: crate::error::disabled_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_grant_deser_operation( +pub fn deser_structure_invalid_grant_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_grant_token_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_grant( input: &[u8], mut builder: crate::output::create_grant_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateGrantOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_grant_token(parsed_body.grant_token); - builder = builder.set_grant_id(parsed_body.grant_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "GrantToken" => { + builder = builder.set_grant_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "GrantId" => { + builder = builder.set_grant_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_malformed_policy_document_exceptionjson_err( + input: &[u8], + mut builder: crate::error::malformed_policy_document_exception::Builder, +) -> Result< + crate::error::malformed_policy_document_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_tag_exceptionjson_err( + input: &[u8], + mut builder: crate::error::tag_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_key_deser_operation( +pub fn deser_structure_unsupported_operation_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_operation_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_key( input: &[u8], mut builder: crate::output::create_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_metadata(parsed_body.key_metadata); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyMetadata" => { + builder = builder.set_key_metadata( + crate::json_deser::deser_structure_key_metadata(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_incorrect_key_exceptionjson_err( + input: &[u8], + mut builder: crate::error::incorrect_key_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_ciphertext_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_ciphertext_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_key_usage_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_key_usage_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_key_unavailable_exceptionjson_err( + input: &[u8], + mut builder: crate::error::key_unavailable_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn decrypt_deser_operation( +pub fn deser_operation_decrypt( input: &[u8], mut builder: crate::output::decrypt_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DecryptOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_plaintext(parsed_body.plaintext); - builder = builder.set_encryption_algorithm(parsed_body.encryption_algorithm); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Plaintext" => { + builder = builder.set_plaintext( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "EncryptionAlgorithm" => { + builder = builder.set_encryption_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_custom_key_store_has_cm_ks_exceptionjson_err( + input: &[u8], + mut builder: crate::error::custom_key_store_has_cm_ks_exception::Builder, +) -> Result< + crate::error::custom_key_store_has_cm_ks_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_custom_key_stores_deser_operation( +pub fn deser_operation_describe_custom_key_stores( input: &[u8], mut builder: crate::output::describe_custom_key_stores_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeCustomKeyStoresOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_custom_key_stores(parsed_body.custom_key_stores); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result< + crate::output::describe_custom_key_stores_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CustomKeyStores" => { + builder = builder.set_custom_key_stores( + crate::json_deser::deser_list_custom_key_stores_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_key_deser_operation( +pub fn deser_operation_describe_key( input: &[u8], mut builder: crate::output::describe_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_metadata(parsed_body.key_metadata); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyMetadata" => { + builder = builder.set_key_metadata( + crate::json_deser::deser_structure_key_metadata(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn encrypt_deser_operation( +pub fn deser_operation_encrypt( input: &[u8], mut builder: crate::output::encrypt_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::EncryptOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ciphertext_blob(parsed_body.ciphertext_blob); - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_encryption_algorithm(parsed_body.encryption_algorithm); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CiphertextBlob" => { + builder = builder.set_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EncryptionAlgorithm" => { + builder = builder.set_encryption_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_data_key_deser_operation( +pub fn deser_operation_generate_data_key( input: &[u8], mut builder: crate::output::generate_data_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GenerateDataKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ciphertext_blob(parsed_body.ciphertext_blob); - builder = builder.set_plaintext(parsed_body.plaintext); - builder = builder.set_key_id(parsed_body.key_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CiphertextBlob" => { + builder = builder.set_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "Plaintext" => { + builder = builder.set_plaintext( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_data_key_pair_deser_operation( +pub fn deser_operation_generate_data_key_pair( input: &[u8], mut builder: crate::output::generate_data_key_pair_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GenerateDataKeyPairOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_private_key_ciphertext_blob(parsed_body.private_key_ciphertext_blob); - builder = builder.set_private_key_plaintext(parsed_body.private_key_plaintext); - builder = builder.set_public_key(parsed_body.public_key); - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_key_pair_spec(parsed_body.key_pair_spec); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PrivateKeyCiphertextBlob" => { + builder = builder.set_private_key_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "PrivateKeyPlaintext" => { + builder = builder.set_private_key_plaintext( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "PublicKey" => { + builder = builder.set_public_key( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyPairSpec" => { + builder = builder.set_key_pair_spec( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DataKeyPairSpec::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_data_key_pair_without_plaintext_deser_operation( +pub fn deser_operation_generate_data_key_pair_without_plaintext( input: &[u8], mut builder: crate::output::generate_data_key_pair_without_plaintext_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::generate_data_key_pair_without_plaintext_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GenerateDataKeyPairWithoutPlaintextOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_private_key_ciphertext_blob(parsed_body.private_key_ciphertext_blob); - builder = builder.set_public_key(parsed_body.public_key); - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_key_pair_spec(parsed_body.key_pair_spec); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PrivateKeyCiphertextBlob" => { + builder = builder.set_private_key_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "PublicKey" => { + builder = builder.set_public_key( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyPairSpec" => { + builder = builder.set_key_pair_spec( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DataKeyPairSpec::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_data_key_without_plaintext_deser_operation( +pub fn deser_operation_generate_data_key_without_plaintext( input: &[u8], mut builder: crate::output::generate_data_key_without_plaintext_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::generate_data_key_without_plaintext_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GenerateDataKeyWithoutPlaintextOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ciphertext_blob(parsed_body.ciphertext_blob); - builder = builder.set_key_id(parsed_body.key_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CiphertextBlob" => { + builder = builder.set_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn generate_random_deser_operation( +pub fn deser_operation_generate_random( input: &[u8], mut builder: crate::output::generate_random_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GenerateRandomOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_plaintext(parsed_body.plaintext); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Plaintext" => { + builder = builder.set_plaintext( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_key_policy_deser_operation( +pub fn deser_operation_get_key_policy( input: &[u8], mut builder: crate::output::get_key_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetKeyPolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policy(parsed_body.policy); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_key_rotation_status_deser_operation( +pub fn deser_operation_get_key_rotation_status( input: &[u8], mut builder: crate::output::get_key_rotation_status_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetKeyRotationStatusOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_rotation_enabled(Some(parsed_body.key_rotation_enabled)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyRotationEnabled" => { + builder = builder.set_key_rotation_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_parameters_for_import_deser_operation( +pub fn deser_operation_get_parameters_for_import( input: &[u8], mut builder: crate::output::get_parameters_for_import_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetParametersForImportOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_import_token(parsed_body.import_token); - builder = builder.set_public_key(parsed_body.public_key); - builder = builder.set_parameters_valid_to(parsed_body.parameters_valid_to); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImportToken" => { + builder = builder.set_import_token( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "PublicKey" => { + builder = builder.set_public_key( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "ParametersValidTo" => { + builder = builder.set_parameters_valid_to( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_public_key_deser_operation( +pub fn deser_operation_get_public_key( input: &[u8], mut builder: crate::output::get_public_key_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetPublicKeyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_public_key(parsed_body.public_key); - builder = builder.set_customer_master_key_spec(parsed_body.customer_master_key_spec); - builder = builder.set_key_usage(parsed_body.key_usage); - builder = builder.set_encryption_algorithms(parsed_body.encryption_algorithms); - builder = builder.set_signing_algorithms(parsed_body.signing_algorithms); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PublicKey" => { + builder = builder.set_public_key( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "CustomerMasterKeySpec" => { + builder = builder.set_customer_master_key_spec( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CustomerMasterKeySpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "KeyUsage" => { + builder = builder.set_key_usage( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::KeyUsageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "EncryptionAlgorithms" => { + builder = builder.set_encryption_algorithms( + crate::json_deser::deser_list_encryption_algorithm_spec_list(tokens)?, + ); + } + "SigningAlgorithms" => { + builder = builder.set_signing_algorithms( + crate::json_deser::deser_list_signing_algorithm_spec_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_expired_import_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::expired_import_token_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_incorrect_key_material_exceptionjson_err( + input: &[u8], + mut builder: crate::error::incorrect_key_material_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_aliases_deser_operation( +pub fn deser_structure_invalid_import_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_import_token_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_marker_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_marker_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_aliases( input: &[u8], mut builder: crate::output::list_aliases_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAliasesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_aliases(parsed_body.aliases); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Aliases" => { + builder = + builder.set_aliases(crate::json_deser::deser_list_alias_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_grants_deser_operation( +pub fn deser_structure_invalid_grant_id_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_grant_id_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_grants( input: &[u8], mut builder: crate::output::list_grants_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListGrantsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_grants(parsed_body.grants); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Grants" => { + builder = + builder.set_grants(crate::json_deser::deser_list_grant_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_key_policies_deser_operation( +pub fn deser_operation_list_key_policies( input: &[u8], mut builder: crate::output::list_key_policies_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListKeyPoliciesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policy_names(parsed_body.policy_names); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PolicyNames" => { + builder = builder.set_policy_names( + crate::json_deser::deser_list_policy_name_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_keys_deser_operation( +pub fn deser_operation_list_keys( input: &[u8], mut builder: crate::output::list_keys_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListKeysOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_keys(parsed_body.keys); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Keys" => { + builder = builder.set_keys(crate::json_deser::deser_list_key_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_resource_tags_deser_operation( +pub fn deser_operation_list_resource_tags( input: &[u8], mut builder: crate::output::list_resource_tags_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListResourceTagsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_retirable_grants_deser_operation( +pub fn deser_operation_list_retirable_grants( input: &[u8], mut builder: crate::output::list_retirable_grants_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListRetirableGrantsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_grants(parsed_body.grants); - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_truncated(Some(parsed_body.truncated)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Grants" => { + builder = + builder.set_grants(crate::json_deser::deser_list_grant_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn re_encrypt_deser_operation( +pub fn deser_operation_re_encrypt( input: &[u8], mut builder: crate::output::re_encrypt_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ReEncryptOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ciphertext_blob(parsed_body.ciphertext_blob); - builder = builder.set_source_key_id(parsed_body.source_key_id); - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_source_encryption_algorithm(parsed_body.source_encryption_algorithm); - builder = - builder.set_destination_encryption_algorithm(parsed_body.destination_encryption_algorithm); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CiphertextBlob" => { + builder = builder.set_ciphertext_blob( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "SourceKeyId" => { + builder = builder.set_source_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceEncryptionAlgorithm" => { + builder = builder.set_source_encryption_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "DestinationEncryptionAlgorithm" => { + builder = builder.set_destination_encryption_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn schedule_key_deletion_deser_operation( +pub fn deser_operation_schedule_key_deletion( input: &[u8], mut builder: crate::output::schedule_key_deletion_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ScheduleKeyDeletionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_deletion_date(parsed_body.deletion_date); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeletionDate" => { + builder = builder.set_deletion_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn sign_deser_operation( +pub fn deser_operation_sign( input: &[u8], mut builder: crate::output::sign_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SignOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_signature(parsed_body.signature); - builder = builder.set_signing_algorithm(parsed_body.signing_algorithm); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Signature" => { + builder = builder.set_signature( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "SigningAlgorithm" => { + builder = builder.set_signing_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SigningAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_cloud_hsm_cluster_not_related_exceptionjson_err( + input: &[u8], + mut builder: crate::error::cloud_hsm_cluster_not_related_exception::Builder, +) -> Result< + crate::error::cloud_hsm_cluster_not_related_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_kms_invalid_signature_exceptionjson_err( + input: &[u8], + mut builder: crate::error::kms_invalid_signature_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn verify_deser_operation( +pub fn deser_operation_verify( input: &[u8], mut builder: crate::output::verify_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::VerifyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_key_id(parsed_body.key_id); - builder = builder.set_signature_valid(Some(parsed_body.signature_valid)); - builder = builder.set_signing_algorithm(parsed_body.signing_algorithm); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SignatureValid" => { + builder = builder.set_signature_valid( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "SigningAlgorithm" => { + builder = builder.set_signing_algorithm( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SigningAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_key_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeyMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AWSAccountId" => { + builder = builder.set_aws_account_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDate" => { + builder = builder.set_creation_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyUsage" => { + builder = builder.set_key_usage( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::KeyUsageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KeyState" => { + builder = builder.set_key_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::KeyState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "DeletionDate" => { + builder = builder.set_deletion_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ValidTo" => { + builder = builder.set_valid_to( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Origin" => { + builder = builder.set_origin( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OriginType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CustomKeyStoreId" => { + builder = builder.set_custom_key_store_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudHsmClusterId" => { + builder = builder.set_cloud_hsm_cluster_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExpirationModel" => { + builder = builder.set_expiration_model( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ExpirationModelType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "KeyManager" => { + builder = builder.set_key_manager( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::KeyManagerType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CustomerMasterKeySpec" => { + builder = builder.set_customer_master_key_spec( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CustomerMasterKeySpec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "EncryptionAlgorithms" => { + builder = builder.set_encryption_algorithms( + crate::json_deser::deser_list_encryption_algorithm_spec_list( + tokens, + )?, + ); + } + "SigningAlgorithms" => { + builder = builder.set_signing_algorithms( + crate::json_deser::deser_list_signing_algorithm_spec_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_custom_key_stores_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_custom_key_stores_list_entry( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_encryption_algorithm_spec_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_signing_algorithm_spec_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SigningAlgorithmSpec::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_alias_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_alias_list_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_grant_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_grant_list_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_policy_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_key_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_key_list_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_custom_key_stores_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CustomKeyStoresListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CustomKeyStoreId" => { + builder = builder.set_custom_key_store_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CustomKeyStoreName" => { + builder = builder.set_custom_key_store_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudHsmClusterId" => { + builder = builder.set_cloud_hsm_cluster_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrustAnchorCertificate" => { + builder = builder.set_trust_anchor_certificate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConnectionState" => { + builder = builder.set_connection_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ConnectionStateType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ConnectionErrorCode" => { + builder = builder.set_connection_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ConnectionErrorCodeType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationDate" => { + builder = builder.set_creation_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_alias_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AliasListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AliasName" => { + builder = builder.set_alias_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AliasArn" => { + builder = builder.set_alias_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetKeyId" => { + builder = builder.set_target_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDate" => { + builder = builder.set_creation_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_grant_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GrantListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "GrantId" => { + builder = builder.set_grant_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDate" => { + builder = builder.set_creation_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "GranteePrincipal" => { + builder = builder.set_grantee_principal( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RetiringPrincipal" => { + builder = builder.set_retiring_principal( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IssuingAccount" => { + builder = builder.set_issuing_account( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Operations" => { + builder = builder.set_operations( + crate::json_deser::deser_list_grant_operation_list(tokens)?, + ); + } + "Constraints" => { + builder = builder.set_constraints( + crate::json_deser::deser_structure_grant_constraints(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_key_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeyListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KeyArn" => { + builder = builder.set_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TagKey" => { + builder = builder.set_tag_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TagValue" => { + builder = builder.set_tag_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_grant_operation_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::GrantOperation::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_grant_constraints<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GrantConstraints::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EncryptionContextSubset" => { + builder = builder.set_encryption_context_subset( + crate::json_deser::deser_map_encryption_context_type(tokens)?, + ); + } + "EncryptionContextEquals" => { + builder = builder.set_encryption_context_equals( + crate::json_deser::deser_map_encryption_context_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_encryption_context_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/kms/src/json_errors.rs b/sdk/kms/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/kms/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/kms/src/lib.rs b/sdk/kms/src/lib.rs index aea695e1915e..357d03e59d08 100644 --- a/sdk/kms/src/lib.rs +++ b/sdk/kms/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Key Management Service //!

    AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes //! the AWS KMS operations that you can call programmatically. For general information about AWS KMS, @@ -99,23 +100,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/kms/src/model.rs b/sdk/kms/src/model.rs index 962df2ae610a..ff28c6f23018 100644 --- a/sdk/kms/src/model.rs +++ b/sdk/kms/src/model.rs @@ -41,7 +41,7 @@ impl std::convert::From<&str> for SigningAlgorithmSpec { impl std::str::FromStr for SigningAlgorithmSpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SigningAlgorithmSpec::from(s)) } } @@ -66,15 +66,6 @@ impl AsRef for SigningAlgorithmSpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SigningAlgorithmSpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -104,7 +95,7 @@ impl std::convert::From<&str> for MessageType { impl std::str::FromStr for MessageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MessageType::from(s)) } } @@ -122,30 +113,17 @@ impl AsRef for MessageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MessageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are /// both required, but tag values can be empty (null) strings.

    ///

    For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User /// Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    The key of the tag.

    - #[serde(rename = "TagKey")] - #[serde(default)] pub tag_key: std::option::Option, ///

    The value of the tag.

    - #[serde(rename = "TagValue")] - #[serde(default)] pub tag_value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -230,7 +208,7 @@ impl std::convert::From<&str> for EncryptionAlgorithmSpec { impl std::str::FromStr for EncryptionAlgorithmSpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EncryptionAlgorithmSpec::from(s)) } } @@ -249,38 +227,18 @@ impl AsRef for EncryptionAlgorithmSpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EncryptionAlgorithmSpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about a grant.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GrantListEntry { ///

    The unique identifier for the customer master key (CMK) to which the grant applies.

    - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    The unique identifier for the grant.

    - #[serde(rename = "GrantId")] - #[serde(default)] pub grant_id: std::option::Option, ///

    The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The date and time when the grant was created.

    - #[serde(rename = "CreationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date: std::option::Option, ///

    The identity that gets the permissions in the grant.

    ///

    The GranteePrincipal field in the ListGrants response usually contains the @@ -288,25 +246,15 @@ pub struct GrantListEntry { /// principal in the grant is an AWS service, the GranteePrincipal field contains /// the service /// principal, which might represent several different grantee principals.

    - #[serde(rename = "GranteePrincipal")] - #[serde(default)] pub grantee_principal: std::option::Option, ///

    The principal that can retire the grant.

    - #[serde(rename = "RetiringPrincipal")] - #[serde(default)] pub retiring_principal: std::option::Option, ///

    The AWS account under which the grant was issued.

    - #[serde(rename = "IssuingAccount")] - #[serde(default)] pub issuing_account: std::option::Option, ///

    The list of operations permitted by the grant.

    - #[serde(rename = "Operations")] - #[serde(default)] pub operations: std::option::Option>, ///

    A list of key-value pairs that must be present in the encryption context of certain /// subsequent operations that the grant allows.

    - #[serde(rename = "Constraints")] - #[serde(default)] pub constraints: std::option::Option, } impl std::fmt::Debug for GrantListEntry { @@ -490,20 +438,16 @@ impl GrantListEntry { ///
    .

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GrantConstraints { ///

    A list of key-value pairs that must be included in the encryption context of the /// cryptographic operation request. The grant allows the cryptographic operation only when the /// encryption context in the request includes the key-value pairs specified in this constraint, /// although it can include additional key-value pairs.

    - #[serde(rename = "EncryptionContextSubset")] - #[serde(default)] pub encryption_context_subset: std::option::Option>, ///

    A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the /// request is the same as the encryption context specified in this constraint.

    - #[serde(rename = "EncryptionContextEquals")] - #[serde(default)] pub encryption_context_equals: std::option::Option>, } @@ -637,7 +581,7 @@ impl std::convert::From<&str> for GrantOperation { impl std::str::FromStr for GrantOperation { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GrantOperation::from(s)) } } @@ -669,27 +613,14 @@ impl AsRef for GrantOperation { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GrantOperation { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about each entry in the key list.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeyListEntry { ///

    Unique identifier of the key.

    - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    ARN of the key.

    - #[serde(rename = "KeyArn")] - #[serde(default)] pub key_arn: std::option::Option, } impl std::fmt::Debug for KeyListEntry { @@ -746,31 +677,15 @@ impl KeyListEntry { ///

    Contains information about an alias.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AliasListEntry { ///

    String that contains the alias. This value begins with alias/.

    - #[serde(rename = "AliasName")] - #[serde(default)] pub alias_name: std::option::Option, ///

    String that contains the key ARN.

    - #[serde(rename = "AliasArn")] - #[serde(default)] pub alias_arn: std::option::Option, ///

    String that contains the key identifier referred to by the alias.

    - #[serde(rename = "TargetKeyId")] - #[serde(default)] pub target_key_id: std::option::Option, - #[serde(rename = "CreationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date: std::option::Option, - #[serde(rename = "LastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_date: std::option::Option, } impl std::fmt::Debug for AliasListEntry { @@ -896,7 +811,7 @@ impl std::convert::From<&str> for ExpirationModelType { impl std::str::FromStr for ExpirationModelType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExpirationModelType::from(s)) } } @@ -914,15 +829,6 @@ impl AsRef for ExpirationModelType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExpirationModelType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -952,7 +858,7 @@ impl std::convert::From<&str> for KeyUsageType { impl std::str::FromStr for KeyUsageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(KeyUsageType::from(s)) } } @@ -970,15 +876,6 @@ impl AsRef for KeyUsageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for KeyUsageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1020,7 +917,7 @@ impl std::convert::From<&str> for CustomerMasterKeySpec { impl std::str::FromStr for CustomerMasterKeySpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CustomerMasterKeySpec::from(s)) } } @@ -1044,15 +941,6 @@ impl AsRef for CustomerMasterKeySpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CustomerMasterKeySpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1080,7 +968,7 @@ impl std::convert::From<&str> for WrappingKeySpec { impl std::str::FromStr for WrappingKeySpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(WrappingKeySpec::from(s)) } } @@ -1097,15 +985,6 @@ impl AsRef for WrappingKeySpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for WrappingKeySpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1137,7 +1016,7 @@ impl std::convert::From<&str> for AlgorithmSpec { impl std::str::FromStr for AlgorithmSpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AlgorithmSpec::from(s)) } } @@ -1156,15 +1035,6 @@ impl AsRef for AlgorithmSpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AlgorithmSpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1194,7 +1064,7 @@ impl std::convert::From<&str> for DataKeySpec { impl std::str::FromStr for DataKeySpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DataKeySpec::from(s)) } } @@ -1212,15 +1082,6 @@ impl AsRef for DataKeySpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DataKeySpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1260,7 +1121,7 @@ impl std::convert::From<&str> for DataKeyPairSpec { impl std::str::FromStr for DataKeyPairSpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DataKeyPairSpec::from(s)) } } @@ -1283,127 +1144,73 @@ impl AsRef for DataKeyPairSpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DataKeyPairSpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains metadata about a customer master key (CMK).

    ///

    This data type is used as a response element for the CreateKey and DescribeKey operations.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeyMetadata { ///

    The twelve-digit account ID of the AWS account that owns the CMK.

    - #[serde(rename = "AWSAccountId")] - #[serde(default)] pub aws_account_id: std::option::Option, ///

    The globally unique identifier for the CMK.

    - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management Service /// (AWS KMS) in the Example ARNs section of the AWS General /// Reference.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The date and time when the CMK was created.

    - #[serde(rename = "CreationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date: std::option::Option, ///

    Specifies whether the CMK is enabled. When KeyState is Enabled /// this value is true, otherwise it is false.

    - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: bool, ///

    The description of the CMK.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The cryptographic operations for which you can use the CMK.

    - #[serde(rename = "KeyUsage")] - #[serde(default)] pub key_usage: std::option::Option, ///

    The current status of the CMK.

    ///

    For more information about how key state affects the use of a CMK, see Key state: Effect on your CMK in the AWS Key Management Service Developer Guide.

    - #[serde(rename = "KeyState")] - #[serde(default)] pub key_state: std::option::Option, ///

    The date and time after which AWS KMS deletes the CMK. This value is present only when /// KeyState is PendingDeletion.

    - #[serde(rename = "DeletionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub deletion_date: std::option::Option, ///

    The time at which the imported key material expires. When the key material expires, AWS KMS /// deletes the key material and the CMK becomes unusable. This value is present only for CMKs /// whose Origin is EXTERNAL and whose ExpirationModel is /// KEY_MATERIAL_EXPIRES, otherwise this value is omitted.

    - #[serde(rename = "ValidTo")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub valid_to: std::option::Option, ///

    The source of the CMK's key material. When this value is AWS_KMS, AWS KMS /// created the key material. When this value is EXTERNAL, the key material was /// imported from your existing key management infrastructure or the CMK lacks key material. When /// this value is AWS_CLOUDHSM, the key material was created in the AWS CloudHSM cluster /// associated with a custom key store.

    - #[serde(rename = "Origin")] - #[serde(default)] pub origin: std::option::Option, ///

    A unique identifier for the custom key store that contains the CMK. This value is present /// only when the CMK is created in a custom key store.

    - #[serde(rename = "CustomKeyStoreId")] - #[serde(default)] pub custom_key_store_id: std::option::Option, ///

    The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you /// create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the /// associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key /// store.

    - #[serde(rename = "CloudHsmClusterId")] - #[serde(default)] pub cloud_hsm_cluster_id: std::option::Option, ///

    Specifies whether the CMK's key material expires. This value is present only when /// Origin is EXTERNAL, otherwise this value is omitted.

    - #[serde(rename = "ExpirationModel")] - #[serde(default)] pub expiration_model: std::option::Option, ///

    The manager of the CMK. CMKs in your AWS account are either customer managed or AWS /// managed. For more information about the difference, see Customer Master Keys in the /// AWS Key Management Service Developer Guide.

    - #[serde(rename = "KeyManager")] - #[serde(default)] pub key_manager: std::option::Option, ///

    Describes the type of key material in the CMK.

    - #[serde(rename = "CustomerMasterKeySpec")] - #[serde(default)] pub customer_master_key_spec: std::option::Option, ///

    The encryption algorithms that the CMK supports. You cannot use the CMK with other /// encryption algorithms within AWS KMS.

    ///

    This field appears only when the KeyUsage of the CMK is /// ENCRYPT_DECRYPT.

    - #[serde(rename = "EncryptionAlgorithms")] - #[serde(default)] pub encryption_algorithms: std::option::Option>, ///

    The signing algorithms that the CMK supports. You cannot use the CMK with other /// signing algorithms within AWS KMS.

    ///

    This field appears only when the KeyUsage of the CMK is /// SIGN_VERIFY.

    - #[serde(rename = "SigningAlgorithms")] - #[serde(default)] pub signing_algorithms: std::option::Option>, } impl std::fmt::Debug for KeyMetadata { @@ -1744,7 +1551,7 @@ impl std::convert::From<&str> for KeyManagerType { impl std::str::FromStr for KeyManagerType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(KeyManagerType::from(s)) } } @@ -1762,15 +1569,6 @@ impl AsRef for KeyManagerType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for KeyManagerType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1802,7 +1600,7 @@ impl std::convert::From<&str> for OriginType { impl std::str::FromStr for OriginType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OriginType::from(s)) } } @@ -1821,15 +1619,6 @@ impl AsRef for OriginType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OriginType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1865,7 +1654,7 @@ impl std::convert::From<&str> for KeyState { impl std::str::FromStr for KeyState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(KeyState::from(s)) } } @@ -1886,38 +1675,21 @@ impl AsRef for KeyState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for KeyState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about each custom key store in the custom key store list.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CustomKeyStoresListEntry { ///

    A unique identifier for the custom key store.

    - #[serde(rename = "CustomKeyStoreId")] - #[serde(default)] pub custom_key_store_id: std::option::Option, ///

    The user-specified friendly name for the custom key store.

    - #[serde(rename = "CustomKeyStoreName")] - #[serde(default)] pub custom_key_store_name: std::option::Option, ///

    A unique identifier for the AWS CloudHSM cluster that is associated with the custom key /// store.

    - #[serde(rename = "CloudHsmClusterId")] - #[serde(default)] pub cloud_hsm_cluster_id: std::option::Option, ///

    The trust anchor certificate of the associated AWS CloudHSM cluster. When you initialize the /// cluster, you create this certificate and save it in the customerCA.crt /// file.

    - #[serde(rename = "TrustAnchorCertificate")] - #[serde(default)] pub trust_anchor_certificate: std::option::Option, ///

    Indicates whether the custom key store is connected to its AWS CloudHSM cluster.

    ///

    You can create and use CMKs in your custom key stores only when its connection state is @@ -1929,8 +1701,6 @@ pub struct CustomKeyStoresListEntry { ///

    A value of FAILED indicates that an attempt to connect was unsuccessful. The ConnectionErrorCode field in the response indicates the cause of the failure. For /// help resolving a connection failure, see Troubleshooting a Custom Key Store in the /// AWS Key Management Service Developer Guide.

    - #[serde(rename = "ConnectionState")] - #[serde(default)] pub connection_state: std::option::Option, ///

    Describes the connection error. This field appears in the response only when the ConnectionState is FAILED. For help resolving these errors, see How to Fix a Connection Failure in AWS Key Management Service Developer Guide.

    ///

    Valid values are:

    @@ -1992,15 +1762,8 @@ pub struct CustomKeyStoresListEntry { /// store.

    /// /// - #[serde(rename = "ConnectionErrorCode")] - #[serde(default)] pub connection_error_code: std::option::Option, ///

    The date and time when the custom key store was created.

    - #[serde(rename = "CreationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date: std::option::Option, } impl std::fmt::Debug for CustomKeyStoresListEntry { @@ -2253,7 +2016,7 @@ impl std::convert::From<&str> for ConnectionErrorCodeType { impl std::str::FromStr for ConnectionErrorCodeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionErrorCodeType::from(s)) } } @@ -2278,15 +2041,6 @@ impl AsRef for ConnectionErrorCodeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionErrorCodeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2322,7 +2076,7 @@ impl std::convert::From<&str> for ConnectionStateType { impl std::str::FromStr for ConnectionStateType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionStateType::from(s)) } } @@ -2343,12 +2097,3 @@ impl AsRef for ConnectionStateType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionStateType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/kms/src/operation.rs b/sdk/kms/src/operation.rs index e35051a85276..25b445423b88 100644 --- a/sdk/kms/src/operation.rs +++ b/sdk/kms/src/operation.rs @@ -22,73 +22,6 @@ impl CancelKeyDeletion { pub fn builder() -> crate::input::cancel_key_deletion_input::Builder { crate::input::cancel_key_deletion_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CancelKeyDeletionOutput, - crate::error::CancelKeyDeletionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CancelKeyDeletionError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelKeyDeletionError { - kind: crate::error::CancelKeyDeletionErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CancelKeyDeletionError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelKeyDeletionError { - kind: crate::error::CancelKeyDeletionErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::CancelKeyDeletionError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelKeyDeletionError { - kind: crate::error::CancelKeyDeletionErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::CancelKeyDeletionError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelKeyDeletionError { - kind: crate::error::CancelKeyDeletionErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::CancelKeyDeletionError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelKeyDeletionError { - kind: crate::error::CancelKeyDeletionErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CancelKeyDeletionError::unhandled(e), - }, - _ => crate::error::CancelKeyDeletionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::cancel_key_deletion_output::Builder::default(); - builder = crate::json_deser::cancel_key_deletion_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CancelKeyDeletionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -99,7 +32,11 @@ impl smithy_http::response::ParseStrictResponse for CancelKeyDeletion { crate::error::CancelKeyDeletionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_cancel_key_deletion_error(response) + } else { + crate::operation_deser::parse_cancel_key_deletion_response(response) + } } } @@ -173,51 +110,6 @@ impl ConnectCustomKeyStore { pub fn builder() -> crate::input::connect_custom_key_store_input::Builder { crate::input::connect_custom_key_store_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ConnectCustomKeyStoreOutput, - crate::error::ConnectCustomKeyStoreError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ConnectCustomKeyStoreError::unhandled(generic)), - }; - return Err(match error_code { - "CloudHsmClusterInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ConnectCustomKeyStoreError { kind: crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::ConnectCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ConnectCustomKeyStoreError { kind: crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(body), meta: generic }, - Err(e) => crate::error::ConnectCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ConnectCustomKeyStoreError { kind: crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(body), meta: generic }, - Err(e) => crate::error::ConnectCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ConnectCustomKeyStoreError { kind: crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::ConnectCustomKeyStoreError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ConnectCustomKeyStoreError { kind: crate::error::ConnectCustomKeyStoreErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::ConnectCustomKeyStoreError::unhandled(e) - } - _ => crate::error::ConnectCustomKeyStoreError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::connect_custom_key_store_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -228,7 +120,11 @@ impl smithy_http::response::ParseStrictResponse for ConnectCustomKeyStore { crate::error::ConnectCustomKeyStoreError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_connect_custom_key_store_error(response) + } else { + crate::operation_deser::parse_connect_custom_key_store_response(response) + } } } @@ -293,77 +189,6 @@ impl CreateAlias { pub fn builder() -> crate::input::create_alias_input::Builder { crate::input::create_alias_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateAliasError::unhandled(generic)), - }; - return Err(match error_code { - "AlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::AlreadyExistsError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "InvalidAliasNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::InvalidAliasNameError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAliasError { - kind: crate::error::CreateAliasErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAliasError::unhandled(e), - }, - _ => crate::error::CreateAliasError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_alias_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -372,7 +197,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAlias { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_alias_error(response) + } else { + crate::operation_deser::parse_create_alias_response(response) + } } } @@ -435,64 +264,6 @@ impl CreateCustomKeyStore { pub fn builder() -> crate::input::create_custom_key_store_input::Builder { crate::input::create_custom_key_store_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateCustomKeyStoreOutput, - crate::error::CreateCustomKeyStoreError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateCustomKeyStoreError::unhandled(generic)), - }; - return Err(match error_code { - "CloudHsmClusterInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNameInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "IncorrectTrustAnchorException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCustomKeyStoreError { kind: crate::error::CreateCustomKeyStoreErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::CreateCustomKeyStoreError::unhandled(e) - } - _ => crate::error::CreateCustomKeyStoreError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_custom_key_store_output::Builder::default(); - builder = crate::json_deser::create_custom_key_store_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -503,7 +274,11 @@ impl smithy_http::response::ParseStrictResponse for CreateCustomKeyStore { crate::error::CreateCustomKeyStoreError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_custom_key_store_error(response) + } else { + crate::operation_deser::parse_create_custom_key_store_response(response) + } } } @@ -585,87 +360,6 @@ impl CreateGrant { pub fn builder() -> crate::input::create_grant_input::Builder { crate::input::create_grant_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateGrantError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateGrantError { - kind: crate::error::CreateGrantErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateGrantError::unhandled(e), - }, - _ => crate::error::CreateGrantError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_grant_output::Builder::default(); - builder = - crate::json_deser::create_grant_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateGrantError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -674,7 +368,11 @@ impl smithy_http::response::ParseStrictResponse for CreateGrant { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_grant_error(response) + } else { + crate::operation_deser::parse_create_grant_response(response) + } } } @@ -786,70 +484,6 @@ impl CreateKey { pub fn builder() -> crate::input::create_key_input::Builder { crate::input::create_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateKeyError::unhandled(generic)), - }; - return Err(match error_code { - "CloudHsmClusterInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::CustomKeyStoreInvalidStateError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::DependencyTimeoutError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::InvalidArnError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::LimitExceededError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::MalformedPolicyDocumentError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "TagException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::TagError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateKeyError { kind: crate::error::CreateKeyErrorKind::UnsupportedOperationError(body), meta: generic }, - Err(e) => crate::error::CreateKeyError::unhandled(e) - } - _ => crate::error::CreateKeyError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_key_output::Builder::default(); - builder = crate::json_deser::create_key_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateKeyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -857,7 +491,11 @@ impl CreateKey { impl smithy_http::response::ParseStrictResponse for CreateKey { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_key_error(response) + } else { + crate::operation_deser::parse_create_key_response(response) + } } } @@ -955,100 +593,6 @@ impl Decrypt { pub fn builder() -> crate::input::decrypt_input::Builder { crate::input::decrypt_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DecryptError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "IncorrectKeyException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::IncorrectKeyError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "InvalidCiphertextException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::InvalidCiphertextError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DecryptError { - kind: crate::error::DecryptErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DecryptError::unhandled(e), - }, - _ => crate::error::DecryptError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::decrypt_output::Builder::default(); - builder = crate::json_deser::decrypt_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DecryptError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1056,7 +600,11 @@ impl Decrypt { impl smithy_http::response::ParseStrictResponse for Decrypt { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_decrypt_error(response) + } else { + crate::operation_deser::parse_decrypt_response(response) + } } } @@ -1111,56 +659,6 @@ impl DeleteAlias { pub fn builder() -> crate::input::delete_alias_input::Builder { crate::input::delete_alias_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAliasError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAliasError { - kind: crate::error::DeleteAliasErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAliasError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAliasError { - kind: crate::error::DeleteAliasErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAliasError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAliasError { - kind: crate::error::DeleteAliasErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAliasError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAliasError { - kind: crate::error::DeleteAliasErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAliasError::unhandled(e), - }, - _ => crate::error::DeleteAliasError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_alias_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1169,7 +667,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAlias { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_alias_error(response) + } else { + crate::operation_deser::parse_delete_alias_response(response) + } } } @@ -1236,47 +738,6 @@ impl DeleteCustomKeyStore { pub fn builder() -> crate::input::delete_custom_key_store_input::Builder { crate::input::delete_custom_key_store_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteCustomKeyStoreOutput, - crate::error::DeleteCustomKeyStoreError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteCustomKeyStoreError::unhandled(generic)), - }; - return Err(match error_code { - "CustomKeyStoreHasCMKsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCustomKeyStoreError { kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCMKsError(body), meta: generic }, - Err(e) => crate::error::DeleteCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCustomKeyStoreError { kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(body), meta: generic }, - Err(e) => crate::error::DeleteCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCustomKeyStoreError { kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::DeleteCustomKeyStoreError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteCustomKeyStoreError { kind: crate::error::DeleteCustomKeyStoreErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::DeleteCustomKeyStoreError::unhandled(e) - } - _ => crate::error::DeleteCustomKeyStoreError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_custom_key_store_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1287,7 +748,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteCustomKeyStore { crate::error::DeleteCustomKeyStoreError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_custom_key_store_error(response) + } else { + crate::operation_deser::parse_delete_custom_key_store_response(response) + } } } @@ -1331,59 +796,6 @@ impl DeleteImportedKeyMaterial { pub fn builder() -> crate::input::delete_imported_key_material_input::Builder { crate::input::delete_imported_key_material_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteImportedKeyMaterialOutput, - crate::error::DeleteImportedKeyMaterialError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteImportedKeyMaterialError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::DependencyTimeoutError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::InvalidArnError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::KMSInvalidStateError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::NotFoundError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImportedKeyMaterialError { kind: crate::error::DeleteImportedKeyMaterialErrorKind::UnsupportedOperationError(body), meta: generic }, - Err(e) => crate::error::DeleteImportedKeyMaterialError::unhandled(e) - } - _ => crate::error::DeleteImportedKeyMaterialError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_imported_key_material_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1394,7 +806,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteImportedKeyMaterial { crate::error::DeleteImportedKeyMaterialError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_imported_key_material_error(response) + } else { + crate::operation_deser::parse_delete_imported_key_material_response(response) + } } } @@ -1461,48 +877,6 @@ impl DescribeCustomKeyStores { pub fn builder() -> crate::input::describe_custom_key_stores_input::Builder { crate::input::describe_custom_key_stores_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeCustomKeyStoresOutput, - crate::error::DescribeCustomKeyStoresError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeCustomKeyStoresError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCustomKeyStoresError { kind: crate::error::DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeCustomKeyStoresError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCustomKeyStoresError { kind: crate::error::DescribeCustomKeyStoresErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::DescribeCustomKeyStoresError::unhandled(e) - } - _ => crate::error::DescribeCustomKeyStoresError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_custom_key_stores_output::Builder::default(); - builder = crate::json_deser::describe_custom_key_stores_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeCustomKeyStoresError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1513,7 +887,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeCustomKeyStores { crate::error::DescribeCustomKeyStoresError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_custom_key_stores_error(response) + } else { + crate::operation_deser::parse_describe_custom_key_stores_response(response) + } } } @@ -1604,59 +982,6 @@ impl DescribeKey { pub fn builder() -> crate::input::describe_key_input::Builder { crate::input::describe_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeKeyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKeyError { - kind: crate::error::DescribeKeyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeKeyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKeyError { - kind: crate::error::DescribeKeyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeKeyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKeyError { - kind: crate::error::DescribeKeyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeKeyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeKeyError { - kind: crate::error::DescribeKeyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeKeyError::unhandled(e), - }, - _ => crate::error::DescribeKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_key_output::Builder::default(); - builder = - crate::json_deser::describe_key_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeKeyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1665,7 +990,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeKey { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_key_error(response) + } else { + crate::operation_deser::parse_describe_key_response(response) + } } } @@ -1694,63 +1023,6 @@ impl DisableKey { pub fn builder() -> crate::input::disable_key_input::Builder { crate::input::disable_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DisableKeyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyError { - kind: crate::error::DisableKeyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyError { - kind: crate::error::DisableKeyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyError { - kind: crate::error::DisableKeyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyError { - kind: crate::error::DisableKeyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyError { - kind: crate::error::DisableKeyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyError::unhandled(e), - }, - _ => crate::error::DisableKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disable_key_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1759,7 +1031,11 @@ impl smithy_http::response::ParseStrictResponse for DisableKey { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_key_error(response) + } else { + crate::operation_deser::parse_disable_key_response(response) + } } } @@ -1798,84 +1074,6 @@ impl DisableKeyRotation { pub fn builder() -> crate::input::disable_key_rotation_input::Builder { crate::input::disable_key_rotation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisableKeyRotationOutput, - crate::error::DisableKeyRotationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DisableKeyRotationError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisableKeyRotationError { - kind: crate::error::DisableKeyRotationErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisableKeyRotationError::unhandled(e), - }, - _ => crate::error::DisableKeyRotationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disable_key_rotation_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1886,7 +1084,11 @@ impl smithy_http::response::ParseStrictResponse for DisableKeyRotation { crate::error::DisableKeyRotationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_key_rotation_error(response) + } else { + crate::operation_deser::parse_disable_key_rotation_response(response) + } } } @@ -1950,47 +1152,6 @@ impl DisconnectCustomKeyStore { pub fn builder() -> crate::input::disconnect_custom_key_store_input::Builder { crate::input::disconnect_custom_key_store_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisconnectCustomKeyStoreOutput, - crate::error::DisconnectCustomKeyStoreError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DisconnectCustomKeyStoreError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisconnectCustomKeyStoreError { kind: crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(body), meta: generic }, - Err(e) => crate::error::DisconnectCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisconnectCustomKeyStoreError { kind: crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::DisconnectCustomKeyStoreError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisconnectCustomKeyStoreError { kind: crate::error::DisconnectCustomKeyStoreErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::DisconnectCustomKeyStoreError::unhandled(e) - } - _ => crate::error::DisconnectCustomKeyStoreError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disconnect_custom_key_store_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2001,7 +1162,11 @@ impl smithy_http::response::ParseStrictResponse for DisconnectCustomKeyStore { crate::error::DisconnectCustomKeyStoreError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disconnect_custom_key_store_error(response) + } else { + crate::operation_deser::parse_disconnect_custom_key_store_response(response) + } } } @@ -2026,70 +1191,6 @@ impl EnableKey { pub fn builder() -> crate::input::enable_key_input::Builder { crate::input::enable_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::EnableKeyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyError { - kind: crate::error::EnableKeyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyError::unhandled(e), - }, - _ => crate::error::EnableKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::enable_key_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2097,7 +1198,11 @@ impl EnableKey { impl smithy_http::response::ParseStrictResponse for EnableKey { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_key_error(response) + } else { + crate::operation_deser::parse_enable_key_response(response) + } } } @@ -2135,84 +1240,6 @@ impl EnableKeyRotation { pub fn builder() -> crate::input::enable_key_rotation_input::Builder { crate::input::enable_key_rotation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::EnableKeyRotationOutput, - crate::error::EnableKeyRotationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::EnableKeyRotationError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EnableKeyRotationError { - kind: crate::error::EnableKeyRotationErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::EnableKeyRotationError::unhandled(e), - }, - _ => crate::error::EnableKeyRotationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::enable_key_rotation_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2223,7 +1250,11 @@ impl smithy_http::response::ParseStrictResponse for EnableKeyRotation { crate::error::EnableKeyRotationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_key_rotation_error(response) + } else { + crate::operation_deser::parse_enable_key_rotation_response(response) + } } } @@ -2355,86 +1386,6 @@ impl Encrypt { pub fn builder() -> crate::input::encrypt_input::Builder { crate::input::encrypt_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::EncryptError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::EncryptError { - kind: crate::error::EncryptErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::EncryptError::unhandled(e), - }, - _ => crate::error::EncryptError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::encrypt_output::Builder::default(); - builder = crate::json_deser::encrypt_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::EncryptError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2442,7 +1393,11 @@ impl Encrypt { impl smithy_http::response::ParseStrictResponse for Encrypt { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_encrypt_error(response) + } else { + crate::operation_deser::parse_encrypt_response(response) + } } } @@ -2545,88 +1500,6 @@ impl GenerateDataKey { pub fn builder() -> crate::input::generate_data_key_input::Builder { crate::input::generate_data_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GenerateDataKeyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyError { - kind: crate::error::GenerateDataKeyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyError::unhandled(e), - }, - _ => crate::error::GenerateDataKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::generate_data_key_output::Builder::default(); - builder = - crate::json_deser::generate_data_key_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GenerateDataKeyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2637,7 +1510,11 @@ impl smithy_http::response::ParseStrictResponse for GenerateDataKey { crate::error::GenerateDataKeyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_generate_data_key_error(response) + } else { + crate::operation_deser::parse_generate_data_key_response(response) + } } } @@ -2714,109 +1591,6 @@ impl GenerateDataKeyPair { pub fn builder() -> crate::input::generate_data_key_pair_input::Builder { crate::input::generate_data_key_pair_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GenerateDataKeyPairOutput, - crate::error::GenerateDataKeyPairError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GenerateDataKeyPairError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::InvalidGrantTokenError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::InvalidKeyUsageError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairError { - kind: crate::error::GenerateDataKeyPairErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateDataKeyPairError::unhandled(e), - }, - _ => crate::error::GenerateDataKeyPairError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::generate_data_key_pair_output::Builder::default(); - builder = crate::json_deser::generate_data_key_pair_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2827,7 +1601,11 @@ impl smithy_http::response::ParseStrictResponse for GenerateDataKeyPair { crate::error::GenerateDataKeyPairError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_generate_data_key_pair_error(response) + } else { + crate::operation_deser::parse_generate_data_key_pair_response(response) + } } } @@ -2899,77 +1677,6 @@ impl GenerateDataKeyPairWithoutPlaintext { pub fn builder() -> crate::input::generate_data_key_pair_without_plaintext_input::Builder { crate::input::generate_data_key_pair_without_plaintext_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GenerateDataKeyPairWithoutPlaintextOutput, - crate::error::GenerateDataKeyPairWithoutPlaintextError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KMSInvalidStateError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyPairWithoutPlaintextError { kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(e) - } - _ => crate::error::GenerateDataKeyPairWithoutPlaintextError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::generate_data_key_pair_without_plaintext_output::Builder::default(); - builder = crate::json_deser::generate_data_key_pair_without_plaintext_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2980,7 +1687,13 @@ impl smithy_http::response::ParseStrictResponse for GenerateDataKeyPairWithoutPl crate::error::GenerateDataKeyPairWithoutPlaintextError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_generate_data_key_pair_without_plaintext_error(response) + } else { + crate::operation_deser::parse_generate_data_key_pair_without_plaintext_response( + response, + ) + } } } @@ -3060,73 +1773,6 @@ impl GenerateDataKeyWithoutPlaintext { pub fn builder() -> crate::input::generate_data_key_without_plaintext_input::Builder { crate::input::generate_data_key_without_plaintext_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GenerateDataKeyWithoutPlaintextOutput, - crate::error::GenerateDataKeyWithoutPlaintextError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DisabledError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KMSInvalidStateError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateDataKeyWithoutPlaintextError { kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::NotFoundError(body), meta: generic }, - Err(e) => crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(e) - } - _ => crate::error::GenerateDataKeyWithoutPlaintextError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::generate_data_key_without_plaintext_output::Builder::default(); - builder = crate::json_deser::generate_data_key_without_plaintext_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3137,7 +1783,11 @@ impl smithy_http::response::ParseStrictResponse for GenerateDataKeyWithoutPlaint crate::error::GenerateDataKeyWithoutPlaintextError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_generate_data_key_without_plaintext_error(response) + } else { + crate::operation_deser::parse_generate_data_key_without_plaintext_response(response) + } } } @@ -3158,65 +1808,6 @@ impl GenerateRandom { pub fn builder() -> crate::input::generate_random_input::Builder { crate::input::generate_random_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GenerateRandomError::unhandled(generic)), - }; - return Err(match error_code { - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateRandomError { - kind: - crate::error::GenerateRandomErrorKind::CustomKeyStoreInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateRandomError::unhandled(e), - }, - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateRandomError { - kind: crate::error::GenerateRandomErrorKind::CustomKeyStoreNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GenerateRandomError::unhandled(e), - }, - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateRandomError { - kind: crate::error::GenerateRandomErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateRandomError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GenerateRandomError { - kind: crate::error::GenerateRandomErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GenerateRandomError::unhandled(e), - }, - _ => crate::error::GenerateRandomError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::generate_random_output::Builder::default(); - builder = - crate::json_deser::generate_random_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GenerateRandomError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3225,7 +1816,11 @@ impl smithy_http::response::ParseStrictResponse for GenerateRandom { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_generate_random_error(response) + } else { + crate::operation_deser::parse_generate_random_response(response) + } } } @@ -3246,67 +1841,6 @@ impl GetKeyPolicy { pub fn builder() -> crate::input::get_key_policy_input::Builder { crate::input::get_key_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetKeyPolicyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyPolicyError { - kind: crate::error::GetKeyPolicyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyPolicyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyPolicyError { - kind: crate::error::GetKeyPolicyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyPolicyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyPolicyError { - kind: crate::error::GetKeyPolicyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyPolicyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyPolicyError { - kind: crate::error::GetKeyPolicyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyPolicyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyPolicyError { - kind: crate::error::GetKeyPolicyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyPolicyError::unhandled(e), - }, - _ => crate::error::GetKeyPolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_key_policy_output::Builder::default(); - builder = - crate::json_deser::get_key_policy_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetKeyPolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3315,7 +1849,11 @@ impl smithy_http::response::ParseStrictResponse for GetKeyPolicy { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_key_policy_error(response) + } else { + crate::operation_deser::parse_get_key_policy_response(response) + } } } @@ -3365,85 +1903,6 @@ impl GetKeyRotationStatus { pub fn builder() -> crate::input::get_key_rotation_status_input::Builder { crate::input::get_key_rotation_status_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetKeyRotationStatusOutput, - crate::error::GetKeyRotationStatusError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetKeyRotationStatusError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: crate::error::GetKeyRotationStatusErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: crate::error::GetKeyRotationStatusErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: crate::error::GetKeyRotationStatusErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: crate::error::GetKeyRotationStatusErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: crate::error::GetKeyRotationStatusErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetKeyRotationStatusError { - kind: - crate::error::GetKeyRotationStatusErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetKeyRotationStatusError::unhandled(e), - }, - _ => crate::error::GetKeyRotationStatusError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_key_rotation_status_output::Builder::default(); - builder = crate::json_deser::get_key_rotation_status_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3454,7 +1913,11 @@ impl smithy_http::response::ParseStrictResponse for GetKeyRotationStatus { crate::error::GetKeyRotationStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_key_rotation_status_error(response) + } else { + crate::operation_deser::parse_get_key_rotation_status_response(response) + } } } @@ -3503,89 +1966,6 @@ impl GetParametersForImport { pub fn builder() -> crate::input::get_parameters_for_import_input::Builder { crate::input::get_parameters_for_import_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetParametersForImportOutput, - crate::error::GetParametersForImportError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetParametersForImportError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: crate::error::GetParametersForImportErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: crate::error::GetParametersForImportErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: crate::error::GetParametersForImportErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: crate::error::GetParametersForImportErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: crate::error::GetParametersForImportErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersForImportError { - kind: - crate::error::GetParametersForImportErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetParametersForImportError::unhandled(e), - }, - _ => crate::error::GetParametersForImportError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_parameters_for_import_output::Builder::default(); - builder = crate::json_deser::get_parameters_for_import_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetParametersForImportError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3596,7 +1976,11 @@ impl smithy_http::response::ParseStrictResponse for GetParametersForImport { crate::error::GetParametersForImportError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_parameters_for_import_error(response) + } else { + crate::operation_deser::parse_get_parameters_for_import_response(response) + } } } @@ -3654,102 +2038,6 @@ impl GetPublicKey { pub fn builder() -> crate::input::get_public_key_input::Builder { crate::input::get_public_key_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetPublicKeyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPublicKeyError { - kind: crate::error::GetPublicKeyErrorKind::UnsupportedOperationError(body), - meta: generic, - }, - Err(e) => crate::error::GetPublicKeyError::unhandled(e), - }, - _ => crate::error::GetPublicKeyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_public_key_output::Builder::default(); - builder = - crate::json_deser::get_public_key_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetPublicKeyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3758,7 +2046,11 @@ impl smithy_http::response::ParseStrictResponse for GetPublicKey { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_public_key_error(response) + } else { + crate::operation_deser::parse_get_public_key_response(response) + } } } @@ -3835,113 +2127,6 @@ impl ImportKeyMaterial { pub fn builder() -> crate::input::import_key_material_input::Builder { crate::input::import_key_material_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ImportKeyMaterialOutput, - crate::error::ImportKeyMaterialError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ImportKeyMaterialError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "ExpiredImportTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::ExpiredImportTokenError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "IncorrectKeyMaterialException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::IncorrectKeyMaterialError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "InvalidCiphertextException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::InvalidCiphertextError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "InvalidImportTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::InvalidImportTokenError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ImportKeyMaterialError { - kind: crate::error::ImportKeyMaterialErrorKind::UnsupportedOperationError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ImportKeyMaterialError::unhandled(e), - }, - _ => crate::error::ImportKeyMaterialError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::import_key_material_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3952,7 +2137,11 @@ impl smithy_http::response::ParseStrictResponse for ImportKeyMaterial { crate::error::ImportKeyMaterialError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_import_key_material_error(response) + } else { + crate::operation_deser::parse_import_key_material_response(response) + } } } @@ -4005,66 +2194,6 @@ impl ListAliases { pub fn builder() -> crate::input::list_aliases_input::Builder { crate::input::list_aliases_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListAliasesError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAliasesError { - kind: crate::error::ListAliasesErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::ListAliasesError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAliasesError { - kind: crate::error::ListAliasesErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ListAliasesError::unhandled(e), - }, - "InvalidMarkerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAliasesError { - kind: crate::error::ListAliasesErrorKind::InvalidMarkerError(body), - meta: generic, - }, - Err(e) => crate::error::ListAliasesError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAliasesError { - kind: crate::error::ListAliasesErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListAliasesError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAliasesError { - kind: crate::error::ListAliasesErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListAliasesError::unhandled(e), - }, - _ => crate::error::ListAliasesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_aliases_output::Builder::default(); - builder = - crate::json_deser::list_aliases_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAliasesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4073,7 +2202,11 @@ impl smithy_http::response::ParseStrictResponse for ListAliases { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_aliases_error(response) + } else { + crate::operation_deser::parse_list_aliases_response(response) + } } } @@ -4126,79 +2259,6 @@ impl ListGrants { pub fn builder() -> crate::input::list_grants_input::Builder { crate::input::list_grants_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListGrantsError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "InvalidGrantIdException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::InvalidGrantIdError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "InvalidMarkerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::InvalidMarkerError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListGrantsError { - kind: crate::error::ListGrantsErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListGrantsError::unhandled(e), - }, - _ => crate::error::ListGrantsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_grants_output::Builder::default(); - builder = crate::json_deser::list_grants_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListGrantsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4207,7 +2267,11 @@ impl smithy_http::response::ParseStrictResponse for ListGrants { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_grants_error(response) + } else { + crate::operation_deser::parse_list_grants_response(response) + } } } @@ -4242,67 +2306,6 @@ impl ListKeyPolicies { pub fn builder() -> crate::input::list_key_policies_input::Builder { crate::input::list_key_policies_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListKeyPoliciesError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeyPoliciesError { - kind: crate::error::ListKeyPoliciesErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeyPoliciesError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeyPoliciesError { - kind: crate::error::ListKeyPoliciesErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeyPoliciesError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeyPoliciesError { - kind: crate::error::ListKeyPoliciesErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeyPoliciesError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeyPoliciesError { - kind: crate::error::ListKeyPoliciesErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeyPoliciesError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeyPoliciesError { - kind: crate::error::ListKeyPoliciesErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeyPoliciesError::unhandled(e), - }, - _ => crate::error::ListKeyPoliciesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_key_policies_output::Builder::default(); - builder = - crate::json_deser::list_key_policies_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListKeyPoliciesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4313,7 +2316,11 @@ impl smithy_http::response::ParseStrictResponse for ListKeyPolicies { crate::error::ListKeyPoliciesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_key_policies_error(response) + } else { + crate::operation_deser::parse_list_key_policies_response(response) + } } } @@ -4357,51 +2364,6 @@ impl ListKeys { pub fn builder() -> crate::input::list_keys_input::Builder { crate::input::list_keys_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListKeysError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeysError { - kind: crate::error::ListKeysErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeysError::unhandled(e), - }, - "InvalidMarkerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeysError { - kind: crate::error::ListKeysErrorKind::InvalidMarkerError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeysError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListKeysError { - kind: crate::error::ListKeysErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListKeysError::unhandled(e), - }, - _ => crate::error::ListKeysError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_keys_output::Builder::default(); - builder = crate::json_deser::list_keys_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListKeysError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4409,7 +2371,11 @@ impl ListKeys { impl smithy_http::response::ParseStrictResponse for ListKeys { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_keys_error(response) + } else { + crate::operation_deser::parse_list_keys_response(response) + } } } @@ -4446,64 +2412,6 @@ impl ListResourceTags { pub fn builder() -> crate::input::list_resource_tags_input::Builder { crate::input::list_resource_tags_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListResourceTagsOutput, - crate::error::ListResourceTagsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListResourceTagsError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceTagsError { - kind: crate::error::ListResourceTagsErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ListResourceTagsError::unhandled(e), - }, - "InvalidMarkerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceTagsError { - kind: crate::error::ListResourceTagsErrorKind::InvalidMarkerError(body), - meta: generic, - }, - Err(e) => crate::error::ListResourceTagsError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceTagsError { - kind: crate::error::ListResourceTagsErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListResourceTagsError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceTagsError { - kind: crate::error::ListResourceTagsErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListResourceTagsError::unhandled(e), - }, - _ => crate::error::ListResourceTagsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_resource_tags_output::Builder::default(); - builder = crate::json_deser::list_resource_tags_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListResourceTagsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4514,7 +2422,11 @@ impl smithy_http::response::ParseStrictResponse for ListResourceTags { crate::error::ListResourceTagsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_resource_tags_error(response) + } else { + crate::operation_deser::parse_list_resource_tags_response(response) + } } } @@ -4566,73 +2478,6 @@ impl ListRetirableGrants { pub fn builder() -> crate::input::list_retirable_grants_input::Builder { crate::input::list_retirable_grants_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListRetirableGrantsOutput, - crate::error::ListRetirableGrantsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListRetirableGrantsError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListRetirableGrantsError { - kind: crate::error::ListRetirableGrantsErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListRetirableGrantsError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListRetirableGrantsError { - kind: crate::error::ListRetirableGrantsErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ListRetirableGrantsError::unhandled(e), - }, - "InvalidMarkerException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListRetirableGrantsError { - kind: crate::error::ListRetirableGrantsErrorKind::InvalidMarkerError(body), - meta: generic, - }, - Err(e) => crate::error::ListRetirableGrantsError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListRetirableGrantsError { - kind: crate::error::ListRetirableGrantsErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ListRetirableGrantsError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListRetirableGrantsError { - kind: crate::error::ListRetirableGrantsErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListRetirableGrantsError::unhandled(e), - }, - _ => crate::error::ListRetirableGrantsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_retirable_grants_output::Builder::default(); - builder = crate::json_deser::list_retirable_grants_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListRetirableGrantsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4643,7 +2488,11 @@ impl smithy_http::response::ParseStrictResponse for ListRetirableGrants { crate::error::ListRetirableGrantsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_retirable_grants_error(response) + } else { + crate::operation_deser::parse_list_retirable_grants_response(response) + } } } @@ -4669,87 +2518,6 @@ impl PutKeyPolicy { pub fn builder() -> crate::input::put_key_policy_input::Builder { crate::input::put_key_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutKeyPolicyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::MalformedPolicyDocumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - "UnsupportedOperationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutKeyPolicyError { - kind: crate::error::PutKeyPolicyErrorKind::UnsupportedOperationError(body), - meta: generic, - }, - Err(e) => crate::error::PutKeyPolicyError::unhandled(e), - }, - _ => crate::error::PutKeyPolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_key_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4758,7 +2526,11 @@ impl smithy_http::response::ParseStrictResponse for PutKeyPolicy { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_key_policy_error(response) + } else { + crate::operation_deser::parse_put_key_policy_response(response) + } } } @@ -4861,100 +2633,6 @@ impl ReEncrypt { pub fn builder() -> crate::input::re_encrypt_input::Builder { crate::input::re_encrypt_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ReEncryptError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "IncorrectKeyException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::IncorrectKeyError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "InvalidCiphertextException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::InvalidCiphertextError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReEncryptError { - kind: crate::error::ReEncryptErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ReEncryptError::unhandled(e), - }, - _ => crate::error::ReEncryptError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::re_encrypt_output::Builder::default(); - builder = crate::json_deser::re_encrypt_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ReEncryptError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4962,7 +2640,11 @@ impl ReEncrypt { impl smithy_http::response::ParseStrictResponse for ReEncrypt { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_re_encrypt_error(response) + } else { + crate::operation_deser::parse_re_encrypt_response(response) + } } } @@ -5027,77 +2709,6 @@ impl RetireGrant { pub fn builder() -> crate::input::retire_grant_input::Builder { crate::input::retire_grant_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RetireGrantError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "InvalidGrantIdException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::InvalidGrantIdError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RetireGrantError { - kind: crate::error::RetireGrantErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::RetireGrantError::unhandled(e), - }, - _ => crate::error::RetireGrantError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::retire_grant_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5106,7 +2717,11 @@ impl smithy_http::response::ParseStrictResponse for RetireGrant { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_retire_grant_error(response) + } else { + crate::operation_deser::parse_retire_grant_response(response) + } } } @@ -5151,70 +2766,6 @@ impl RevokeGrant { pub fn builder() -> crate::input::revoke_grant_input::Builder { crate::input::revoke_grant_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RevokeGrantError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - "InvalidGrantIdException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::InvalidGrantIdError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RevokeGrantError { - kind: crate::error::RevokeGrantErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::RevokeGrantError::unhandled(e), - }, - _ => crate::error::RevokeGrantError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::revoke_grant_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5223,7 +2774,11 @@ impl smithy_http::response::ParseStrictResponse for RevokeGrant { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_revoke_grant_error(response) + } else { + crate::operation_deser::parse_revoke_grant_response(response) + } } } @@ -5276,75 +2831,6 @@ impl ScheduleKeyDeletion { pub fn builder() -> crate::input::schedule_key_deletion_input::Builder { crate::input::schedule_key_deletion_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ScheduleKeyDeletionOutput, - crate::error::ScheduleKeyDeletionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ScheduleKeyDeletionError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScheduleKeyDeletionError { - kind: crate::error::ScheduleKeyDeletionErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ScheduleKeyDeletionError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScheduleKeyDeletionError { - kind: crate::error::ScheduleKeyDeletionErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::ScheduleKeyDeletionError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScheduleKeyDeletionError { - kind: crate::error::ScheduleKeyDeletionErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::ScheduleKeyDeletionError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScheduleKeyDeletionError { - kind: crate::error::ScheduleKeyDeletionErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ScheduleKeyDeletionError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ScheduleKeyDeletionError { - kind: crate::error::ScheduleKeyDeletionErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ScheduleKeyDeletionError::unhandled(e), - }, - _ => crate::error::ScheduleKeyDeletionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::schedule_key_deletion_output::Builder::default(); - builder = crate::json_deser::schedule_key_deletion_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5355,7 +2841,11 @@ impl smithy_http::response::ParseStrictResponse for ScheduleKeyDeletion { crate::error::ScheduleKeyDeletionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_schedule_key_deletion_error(response) + } else { + crate::operation_deser::parse_schedule_key_deletion_response(response) + } } } @@ -5414,86 +2904,6 @@ impl Sign { pub fn builder() -> crate::input::sign_input::Builder { crate::input::sign_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SignError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SignError { - kind: crate::error::SignErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::SignError::unhandled(e), - }, - _ => crate::error::SignError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::sign_output::Builder::default(); - builder = crate::json_deser::sign_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::SignError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5501,7 +2911,11 @@ impl Sign { impl smithy_http::response::ParseStrictResponse for Sign { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_sign_error(response) + } else { + crate::operation_deser::parse_sign_response(response) + } } } @@ -5548,70 +2962,6 @@ impl TagResource { pub fn builder() -> crate::input::tag_resource_input::Builder { crate::input::tag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "TagException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::TagError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - _ => crate::error::TagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::tag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5620,7 +2970,11 @@ impl smithy_http::response::ParseStrictResponse for TagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } } } @@ -5664,64 +3018,6 @@ impl UntagResource { pub fn builder() -> crate::input::untag_resource_input::Builder { crate::input::untag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UntagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "TagException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::TagError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - _ => crate::error::UntagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::untag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5730,7 +3026,11 @@ impl smithy_http::response::ParseStrictResponse for UntagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } } } @@ -5800,63 +3100,6 @@ impl UpdateAlias { pub fn builder() -> crate::input::update_alias_input::Builder { crate::input::update_alias_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateAliasError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAliasError { - kind: crate::error::UpdateAliasErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAliasError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAliasError { - kind: crate::error::UpdateAliasErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAliasError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAliasError { - kind: crate::error::UpdateAliasErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAliasError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAliasError { - kind: crate::error::UpdateAliasErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAliasError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAliasError { - kind: crate::error::UpdateAliasErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAliasError::unhandled(e), - }, - _ => crate::error::UpdateAliasError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_alias_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5865,7 +3108,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateAlias { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_alias_error(response) + } else { + crate::operation_deser::parse_update_alias_response(response) + } } } @@ -5950,63 +3197,6 @@ impl UpdateCustomKeyStore { pub fn builder() -> crate::input::update_custom_key_store_input::Builder { crate::input::update_custom_key_store_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateCustomKeyStoreOutput, - crate::error::UpdateCustomKeyStoreError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateCustomKeyStoreError::unhandled(generic)), - }; - return Err(match error_code { - "CloudHsmClusterInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotActiveException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CloudHsmClusterNotRelatedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNameInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "CustomKeyStoreNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateCustomKeyStoreError { kind: crate::error::UpdateCustomKeyStoreErrorKind::KMSInternalError(body), meta: generic }, - Err(e) => crate::error::UpdateCustomKeyStoreError::unhandled(e) - } - _ => crate::error::UpdateCustomKeyStoreError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_custom_key_store_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6017,7 +3207,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateCustomKeyStore { crate::error::UpdateCustomKeyStoreError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_custom_key_store_error(response) + } else { + crate::operation_deser::parse_update_custom_key_store_response(response) + } } } @@ -6054,70 +3248,6 @@ impl UpdateKeyDescription { pub fn builder() -> crate::input::update_key_description_input::Builder { crate::input::update_key_description_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateKeyDescriptionOutput, - crate::error::UpdateKeyDescriptionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateKeyDescriptionError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateKeyDescriptionError { - kind: crate::error::UpdateKeyDescriptionErrorKind::DependencyTimeoutError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateKeyDescriptionError::unhandled(e), - }, - "InvalidArnException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateKeyDescriptionError { - kind: crate::error::UpdateKeyDescriptionErrorKind::InvalidArnError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateKeyDescriptionError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateKeyDescriptionError { - kind: crate::error::UpdateKeyDescriptionErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateKeyDescriptionError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateKeyDescriptionError { - kind: crate::error::UpdateKeyDescriptionErrorKind::KMSInvalidStateError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateKeyDescriptionError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateKeyDescriptionError { - kind: crate::error::UpdateKeyDescriptionErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateKeyDescriptionError::unhandled(e), - }, - _ => crate::error::UpdateKeyDescriptionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_key_description_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6128,7 +3258,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateKeyDescription { crate::error::UpdateKeyDescriptionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_key_description_error(response) + } else { + crate::operation_deser::parse_update_key_description_response(response) + } } } @@ -6172,93 +3306,6 @@ impl Verify { pub fn builder() -> crate::input::verify_input::Builder { crate::input::verify_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::VerifyError::unhandled(generic)), - }; - return Err(match error_code { - "DependencyTimeoutException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::DependencyTimeoutError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "DisabledException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::DisabledError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "InvalidGrantTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::InvalidGrantTokenError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "InvalidKeyUsageException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::InvalidKeyUsageError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "KeyUnavailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::KeyUnavailableError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "KMSInternalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::KMSInternalError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "KMSInvalidSignatureException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::KMSInvalidSignatureError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "KMSInvalidStateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::KMSInvalidStateError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - "NotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::VerifyError { - kind: crate::error::VerifyErrorKind::NotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::VerifyError::unhandled(e), - }, - _ => crate::error::VerifyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::verify_output::Builder::default(); - builder = crate::json_deser::verify_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::VerifyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6266,6 +3313,10 @@ impl Verify { impl smithy_http::response::ParseStrictResponse for Verify { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_verify_error(response) + } else { + crate::operation_deser::parse_verify_response(response) + } } } diff --git a/sdk/kms/src/operation_deser.rs b/sdk/kms/src/operation_deser.rs new file mode 100644 index 000000000000..97ac6a2a07eb --- /dev/null +++ b/sdk/kms/src/operation_deser.rs @@ -0,0 +1,5327 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_key_deletion_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CancelKeyDeletionError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::CancelKeyDeletionError { + meta: generic, + kind: crate::error::CancelKeyDeletionErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::CancelKeyDeletionError { + meta: generic, + kind: crate::error::CancelKeyDeletionErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::CancelKeyDeletionError { + meta: generic, + kind: crate::error::CancelKeyDeletionErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::CancelKeyDeletionError { + meta: generic, + kind: crate::error::CancelKeyDeletionErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::CancelKeyDeletionError { + meta: generic, + kind: crate::error::CancelKeyDeletionErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CancelKeyDeletionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_key_deletion_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::cancel_key_deletion_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_cancel_key_deletion( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelKeyDeletionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_connect_custom_key_store_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ConnectCustomKeyStoreOutput, + crate::error::ConnectCustomKeyStoreError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ConnectCustomKeyStoreError::unhandled(generic)), + }; + Err(match error_code { + "CloudHsmClusterInvalidConfigurationException" => crate::error::ConnectCustomKeyStoreError { meta: generic, kind: crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotActiveException" => crate::error::ConnectCustomKeyStoreError { meta: generic, kind: crate::error::ConnectCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_active_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreInvalidStateException" => crate::error::ConnectCustomKeyStoreError { meta: generic, kind: crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreNotFoundException" => crate::error::ConnectCustomKeyStoreError { meta: generic, kind: crate::error::ConnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + output.build() + })}, + "KMSInternalException" => crate::error::ConnectCustomKeyStoreError { meta: generic, kind: crate::error::ConnectCustomKeyStoreErrorKind::KmsInternalException({ + #[allow(unused_mut)]let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ConnectCustomKeyStoreError::unhandled)?; + output.build() + })}, + _ => crate::error::ConnectCustomKeyStoreError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_connect_custom_key_store_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ConnectCustomKeyStoreOutput, + crate::error::ConnectCustomKeyStoreError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::connect_custom_key_store_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_alias_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAliasError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAliasError::unhandled(generic)), + }; + Err(match error_code { + "AlreadyExistsException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::AlreadyExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "DependencyTimeoutException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "InvalidAliasNameException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::InvalidAliasNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_alias_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_alias_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAliasError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_alias_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_alias_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_custom_key_store_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCustomKeyStoreOutput, + crate::error::CreateCustomKeyStoreError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateCustomKeyStoreError::unhandled(generic)), + }; + Err(match error_code { + "CloudHsmClusterInUseException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInUseException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_in_use_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterInvalidConfigurationException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotActiveException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_active_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotFoundException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreNameInUseException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_name_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_name_in_use_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "IncorrectTrustAnchorException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::IncorrectTrustAnchorException({ + #[allow(unused_mut)]let mut output = crate::error::incorrect_trust_anchor_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_incorrect_trust_anchor_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "KMSInternalException" => crate::error::CreateCustomKeyStoreError { meta: generic, kind: crate::error::CreateCustomKeyStoreErrorKind::KmsInternalException({ + #[allow(unused_mut)]let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + })}, + _ => crate::error::CreateCustomKeyStoreError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_custom_key_store_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCustomKeyStoreOutput, + crate::error::CreateCustomKeyStoreError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_custom_key_store_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_custom_key_store( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCustomKeyStoreError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_grant_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateGrantError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateGrantError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::CreateGrantError { + meta: generic, + kind: crate::error::CreateGrantErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateGrantError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_grant_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_grant_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_grant(response.body().as_ref(), output) + .map_err(crate::error::CreateGrantError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateKeyError::unhandled(generic)), + }; + Err(match error_code { + "CloudHsmClusterInvalidConfigurationException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::CloudHsmClusterInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "CustomKeyStoreInvalidStateException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::CustomKeyStoreInvalidStateException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "CustomKeyStoreNotFoundException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::CustomKeyStoreNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "DependencyTimeoutException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => { + crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + } + } + "TagException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::TagException({ + #[allow(unused_mut)] + let mut output = crate::error::tag_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_tag_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::CreateKeyError { + meta: generic, + kind: crate::error::CreateKeyErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_key_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_key(response.body().as_ref(), output) + .map_err(crate::error::CreateKeyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_decrypt_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DecryptError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DecryptError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "IncorrectKeyException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::IncorrectKeyException({ + #[allow(unused_mut)] + let mut output = crate::error::incorrect_key_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_incorrect_key_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "InvalidCiphertextException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::InvalidCiphertextException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_ciphertext_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_ciphertext_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DecryptError { + meta: generic, + kind: crate::error::DecryptErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DecryptError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_decrypt_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::decrypt_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_decrypt(response.body().as_ref(), output) + .map_err(crate::error::DecryptError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_alias_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAliasError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAliasError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DeleteAliasError { + meta: generic, + kind: crate::error::DeleteAliasErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAliasError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DeleteAliasError { + meta: generic, + kind: crate::error::DeleteAliasErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAliasError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::DeleteAliasError { + meta: generic, + kind: crate::error::DeleteAliasErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAliasError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DeleteAliasError { + meta: generic, + kind: crate::error::DeleteAliasErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAliasError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAliasError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_alias_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_alias_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_custom_key_store_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCustomKeyStoreOutput, + crate::error::DeleteCustomKeyStoreError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteCustomKeyStoreError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteCustomKeyStoreError::unhandled(generic)), + }; + Err(match error_code { + "CustomKeyStoreHasCMKsException" => crate::error::DeleteCustomKeyStoreError { + meta: generic, + kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreHasCmKsException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_has_cm_ks_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_has_cm_ks_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomKeyStoreError::unhandled)?; + output.build() + }), + }, + "CustomKeyStoreInvalidStateException" => crate::error::DeleteCustomKeyStoreError { + meta: generic, + kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException( + { + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomKeyStoreError::unhandled)?; + output.build() + }, + ), + }, + "CustomKeyStoreNotFoundException" => crate::error::DeleteCustomKeyStoreError { + meta: generic, + kind: crate::error::DeleteCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomKeyStoreError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DeleteCustomKeyStoreError { + meta: generic, + kind: crate::error::DeleteCustomKeyStoreErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteCustomKeyStoreError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteCustomKeyStoreError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_custom_key_store_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCustomKeyStoreOutput, + crate::error::DeleteCustomKeyStoreError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_custom_key_store_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_imported_key_material_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteImportedKeyMaterialOutput, + crate::error::DeleteImportedKeyMaterialError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteImportedKeyMaterialError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: crate::error::DeleteImportedKeyMaterialErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: crate::error::DeleteImportedKeyMaterialErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: crate::error::DeleteImportedKeyMaterialErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: crate::error::DeleteImportedKeyMaterialErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: crate::error::DeleteImportedKeyMaterialErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => { + crate::error::DeleteImportedKeyMaterialError { + meta: generic, + kind: + crate::error::DeleteImportedKeyMaterialErrorKind::UnsupportedOperationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteImportedKeyMaterialError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DeleteImportedKeyMaterialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_imported_key_material_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteImportedKeyMaterialOutput, + crate::error::DeleteImportedKeyMaterialError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_imported_key_material_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_custom_key_stores_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCustomKeyStoresOutput, + crate::error::DescribeCustomKeyStoresError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeCustomKeyStoresError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeCustomKeyStoresError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "CustomKeyStoreNotFoundException" => crate::error::DescribeCustomKeyStoresError { + meta: generic, + kind: crate::error::DescribeCustomKeyStoresErrorKind::CustomKeyStoreNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeCustomKeyStoresError::unhandled)?; + output.build() + }, + ), + }, + "KMSInternalException" => crate::error::DescribeCustomKeyStoresError { + meta: generic, + kind: crate::error::DescribeCustomKeyStoresErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCustomKeyStoresError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeCustomKeyStoresError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_custom_key_stores_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCustomKeyStoresOutput, + crate::error::DescribeCustomKeyStoresError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_custom_key_stores_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_custom_key_stores( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCustomKeyStoresError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeKeyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DescribeKeyError { + meta: generic, + kind: crate::error::DescribeKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeKeyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::DescribeKeyError { + meta: generic, + kind: crate::error::DescribeKeyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DescribeKeyError { + meta: generic, + kind: crate::error::DescribeKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeKeyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DescribeKeyError { + meta: generic, + kind: crate::error::DescribeKeyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_key_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_key(response.body().as_ref(), output) + .map_err(crate::error::DescribeKeyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisableKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DisableKeyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DisableKeyError { + meta: generic, + kind: crate::error::DisableKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::DisableKeyError { + meta: generic, + kind: crate::error::DisableKeyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DisableKeyError { + meta: generic, + kind: crate::error::DisableKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::DisableKeyError { + meta: generic, + kind: crate::error::DisableKeyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DisableKeyError { + meta: generic, + kind: crate::error::DisableKeyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisableKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disable_key_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_key_rotation_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableKeyRotationOutput, + crate::error::DisableKeyRotationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DisableKeyRotationError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::DisableKeyRotationError { + meta: generic, + kind: crate::error::DisableKeyRotationErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisableKeyRotationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisableKeyRotationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_key_rotation_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableKeyRotationOutput, + crate::error::DisableKeyRotationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disable_key_rotation_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disconnect_custom_key_store_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisconnectCustomKeyStoreOutput, + crate::error::DisconnectCustomKeyStoreError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisconnectCustomKeyStoreError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DisconnectCustomKeyStoreError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "CustomKeyStoreInvalidStateException" => crate::error::DisconnectCustomKeyStoreError { + meta: generic, + kind: + crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException( + { + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisconnectCustomKeyStoreError::unhandled)?; + output.build() + }, + ), + }, + "CustomKeyStoreNotFoundException" => crate::error::DisconnectCustomKeyStoreError { + meta: generic, + kind: crate::error::DisconnectCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisconnectCustomKeyStoreError::unhandled)?; + output.build() + }, + ), + }, + "KMSInternalException" => crate::error::DisconnectCustomKeyStoreError { + meta: generic, + kind: crate::error::DisconnectCustomKeyStoreErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisconnectCustomKeyStoreError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisconnectCustomKeyStoreError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disconnect_custom_key_store_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisconnectCustomKeyStoreOutput, + crate::error::DisconnectCustomKeyStoreError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disconnect_custom_key_store_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EnableKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::EnableKeyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::EnableKeyError { + meta: generic, + kind: crate::error::EnableKeyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::EnableKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::enable_key_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_key_rotation_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::EnableKeyRotationError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::EnableKeyRotationError { + meta: generic, + kind: crate::error::EnableKeyRotationErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EnableKeyRotationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::EnableKeyRotationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_key_rotation_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::enable_key_rotation_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_encrypt_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EncryptError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::EncryptError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::EncryptError { + meta: generic, + kind: crate::error::EncryptErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }), + }, + _ => crate::error::EncryptError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_encrypt_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::encrypt_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_encrypt(response.body().as_ref(), output) + .map_err(crate::error::EncryptError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GenerateDataKeyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GenerateDataKeyError { + meta: generic, + kind: crate::error::GenerateDataKeyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GenerateDataKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::generate_data_key_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_generate_data_key(response.body().as_ref(), output) + .map_err(crate::error::GenerateDataKeyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_pair_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyPairOutput, + crate::error::GenerateDataKeyPairError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GenerateDataKeyPairError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::GenerateDataKeyPairError { + meta: generic, + kind: crate::error::GenerateDataKeyPairErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GenerateDataKeyPairError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_pair_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyPairOutput, + crate::error::GenerateDataKeyPairError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::generate_data_key_pair_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_generate_data_key_pair( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_pair_without_plaintext_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyPairWithoutPlaintextOutput, + crate::error::GenerateDataKeyPairWithoutPlaintextError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled(generic)) + } + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)]let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "DisabledException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::DisabledException({ + #[allow(unused_mut)]let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "InvalidGrantTokenException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "InvalidKeyUsageException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "KeyUnavailableException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KeyUnavailableException({ + #[allow(unused_mut)]let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "KMSInternalException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInternalException({ + #[allow(unused_mut)]let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "KMSInvalidStateException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)]let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + "UnsupportedOperationException" => crate::error::GenerateDataKeyPairWithoutPlaintextError { meta: generic, kind: crate::error::GenerateDataKeyPairWithoutPlaintextErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)]let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + })}, + _ => crate::error::GenerateDataKeyPairWithoutPlaintextError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_pair_without_plaintext_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyPairWithoutPlaintextOutput, + crate::error::GenerateDataKeyPairWithoutPlaintextError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::generate_data_key_pair_without_plaintext_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_generate_data_key_pair_without_plaintext( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyPairWithoutPlaintextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_without_plaintext_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyWithoutPlaintextOutput, + crate::error::GenerateDataKeyWithoutPlaintextError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DependencyTimeoutException( + { + #[allow(unused_mut)] + let mut output = + crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }, + ), + }, + "DisabledException" => crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidGrantTokenException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }, + ), + }, + "InvalidKeyUsageException" => { + crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::InvalidKeyUsageException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }, + ), + } + } + "KeyUnavailableException" => { + crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KeyUnavailableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }, + ), + } + } + "KMSInternalException" => crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => { + crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: + crate::error::GenerateDataKeyWithoutPlaintextErrorKind::KmsInvalidStateException( + { + #[allow(unused_mut)] + let mut output = + crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }, + ), + } + } + "NotFoundException" => crate::error::GenerateDataKeyWithoutPlaintextError { + meta: generic, + kind: crate::error::GenerateDataKeyWithoutPlaintextErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GenerateDataKeyWithoutPlaintextError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_data_key_without_plaintext_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GenerateDataKeyWithoutPlaintextOutput, + crate::error::GenerateDataKeyWithoutPlaintextError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::generate_data_key_without_plaintext_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_generate_data_key_without_plaintext( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateDataKeyWithoutPlaintextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_random_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GenerateRandomError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GenerateRandomError::unhandled(generic)), + }; + Err(match error_code { + "CustomKeyStoreInvalidStateException" => crate::error::GenerateRandomError { + meta: generic, + kind: crate::error::GenerateRandomErrorKind::CustomKeyStoreInvalidStateException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateRandomError::unhandled)?; + output.build() + }), + }, + "CustomKeyStoreNotFoundException" => crate::error::GenerateRandomError { + meta: generic, + kind: crate::error::GenerateRandomErrorKind::CustomKeyStoreNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GenerateRandomError::unhandled)?; + output.build() + }), + }, + "DependencyTimeoutException" => crate::error::GenerateRandomError { + meta: generic, + kind: crate::error::GenerateRandomErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateRandomError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GenerateRandomError { + meta: generic, + kind: crate::error::GenerateRandomErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GenerateRandomError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GenerateRandomError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_generate_random_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::generate_random_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_generate_random(response.body().as_ref(), output) + .map_err(crate::error::GenerateRandomError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_key_policy_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetKeyPolicyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GetKeyPolicyError { + meta: generic, + kind: crate::error::GetKeyPolicyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::GetKeyPolicyError { + meta: generic, + kind: crate::error::GetKeyPolicyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GetKeyPolicyError { + meta: generic, + kind: crate::error::GetKeyPolicyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GetKeyPolicyError { + meta: generic, + kind: crate::error::GetKeyPolicyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GetKeyPolicyError { + meta: generic, + kind: crate::error::GetKeyPolicyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetKeyPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_key_policy_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_key_policy_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_key_policy(response.body().as_ref(), output) + .map_err(crate::error::GetKeyPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_key_rotation_status_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetKeyRotationStatusOutput, + crate::error::GetKeyRotationStatusError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetKeyRotationStatusError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::GetKeyRotationStatusError { + meta: generic, + kind: crate::error::GetKeyRotationStatusErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetKeyRotationStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_key_rotation_status_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetKeyRotationStatusOutput, + crate::error::GetKeyRotationStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_key_rotation_status_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_key_rotation_status( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetKeyRotationStatusError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_for_import_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParametersForImportOutput, + crate::error::GetParametersForImportError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetParametersForImportError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => { + crate::error::GetParametersForImportError { + meta: generic, + kind: crate::error::GetParametersForImportErrorKind::UnsupportedOperationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::GetParametersForImportError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_for_import_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParametersForImportOutput, + crate::error::GetParametersForImportError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_parameters_for_import_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_parameters_for_import( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersForImportError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_public_key_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetPublicKeyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::GetPublicKeyError { + meta: generic, + kind: crate::error::GetPublicKeyErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetPublicKeyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_public_key_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_public_key_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_public_key(response.body().as_ref(), output) + .map_err(crate::error::GetPublicKeyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_import_key_material_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ImportKeyMaterialError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "ExpiredImportTokenException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::ExpiredImportTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::expired_import_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_expired_import_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "IncorrectKeyMaterialException" => { + crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::IncorrectKeyMaterialException({ + #[allow(unused_mut)] + let mut output = + crate::error::incorrect_key_material_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_incorrect_key_material_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + } + } + "InvalidArnException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "InvalidCiphertextException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::InvalidCiphertextException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_ciphertext_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_ciphertext_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "InvalidImportTokenException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::InvalidImportTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_import_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_import_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::ImportKeyMaterialError { + meta: generic, + kind: crate::error::ImportKeyMaterialErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ImportKeyMaterialError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ImportKeyMaterialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_import_key_material_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::import_key_material_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_aliases_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAliasesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAliasesError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + }, + "InvalidMarkerException" => crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::InvalidMarkerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_marker_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_marker_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAliasesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_aliases_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_aliases_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_aliases(response.body().as_ref(), output) + .map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_grants_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListGrantsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListGrantsError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "InvalidGrantIdException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::InvalidGrantIdException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_id_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_id_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "InvalidMarkerException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::InvalidMarkerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_marker_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_marker_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListGrantsError { + meta: generic, + kind: crate::error::ListGrantsErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListGrantsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_grants_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_grants_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_grants(response.body().as_ref(), output) + .map_err(crate::error::ListGrantsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_key_policies_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListKeyPoliciesError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ListKeyPoliciesError { + meta: generic, + kind: crate::error::ListKeyPoliciesErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::ListKeyPoliciesError { + meta: generic, + kind: crate::error::ListKeyPoliciesErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListKeyPoliciesError { + meta: generic, + kind: crate::error::ListKeyPoliciesErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::ListKeyPoliciesError { + meta: generic, + kind: crate::error::ListKeyPoliciesErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListKeyPoliciesError { + meta: generic, + kind: crate::error::ListKeyPoliciesErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListKeyPoliciesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_key_policies_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_key_policies_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_key_policies(response.body().as_ref(), output) + .map_err(crate::error::ListKeyPoliciesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_keys_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListKeysError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListKeysError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ListKeysError { + meta: generic, + kind: crate::error::ListKeysErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeysError::unhandled)?; + output.build() + }), + }, + "InvalidMarkerException" => crate::error::ListKeysError { + meta: generic, + kind: crate::error::ListKeysErrorKind::InvalidMarkerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_marker_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_marker_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeysError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListKeysError { + meta: generic, + kind: crate::error::ListKeysErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListKeysError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListKeysError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_keys_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_keys_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_keys(response.body().as_ref(), output) + .map_err(crate::error::ListKeysError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_tags_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListResourceTagsError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArnException" => crate::error::ListResourceTagsError { + meta: generic, + kind: crate::error::ListResourceTagsErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + output.build() + }), + }, + "InvalidMarkerException" => crate::error::ListResourceTagsError { + meta: generic, + kind: crate::error::ListResourceTagsErrorKind::InvalidMarkerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_marker_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_marker_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListResourceTagsError { + meta: generic, + kind: crate::error::ListResourceTagsErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListResourceTagsError { + meta: generic, + kind: crate::error::ListResourceTagsErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListResourceTagsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_tags_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_resource_tags_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_resource_tags(response.body().as_ref(), output) + .map_err(crate::error::ListResourceTagsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_retirable_grants_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListRetirableGrantsOutput, + crate::error::ListRetirableGrantsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListRetirableGrantsError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ListRetirableGrantsError { + meta: generic, + kind: crate::error::ListRetirableGrantsErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::ListRetirableGrantsError { + meta: generic, + kind: crate::error::ListRetirableGrantsErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }), + }, + "InvalidMarkerException" => crate::error::ListRetirableGrantsError { + meta: generic, + kind: crate::error::ListRetirableGrantsErrorKind::InvalidMarkerException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_marker_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_marker_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ListRetirableGrantsError { + meta: generic, + kind: crate::error::ListRetirableGrantsErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ListRetirableGrantsError { + meta: generic, + kind: crate::error::ListRetirableGrantsErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListRetirableGrantsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_retirable_grants_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListRetirableGrantsOutput, + crate::error::ListRetirableGrantsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_retirable_grants_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_retirable_grants( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListRetirableGrantsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_key_policy_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutKeyPolicyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => { + crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + } + } + "NotFoundException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + "UnsupportedOperationException" => crate::error::PutKeyPolicyError { + meta: generic, + kind: crate::error::PutKeyPolicyErrorKind::UnsupportedOperationException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_operation_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_unsupported_operation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutKeyPolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutKeyPolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_key_policy_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_key_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_re_encrypt_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ReEncryptError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ReEncryptError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "IncorrectKeyException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::IncorrectKeyException({ + #[allow(unused_mut)] + let mut output = crate::error::incorrect_key_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_incorrect_key_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "InvalidCiphertextException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::InvalidCiphertextException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_ciphertext_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_ciphertext_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ReEncryptError { + meta: generic, + kind: crate::error::ReEncryptErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ReEncryptError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_re_encrypt_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::re_encrypt_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_re_encrypt(response.body().as_ref(), output) + .map_err(crate::error::ReEncryptError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_retire_grant_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RetireGrantError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RetireGrantError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "InvalidGrantIdException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::InvalidGrantIdException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_id_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_id_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::RetireGrantError { + meta: generic, + kind: crate::error::RetireGrantErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RetireGrantError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RetireGrantError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_retire_grant_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::retire_grant_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_revoke_grant_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RevokeGrantError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RevokeGrantError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + "InvalidGrantIdException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::InvalidGrantIdException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_id_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_id_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::RevokeGrantError { + meta: generic, + kind: crate::error::RevokeGrantErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RevokeGrantError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RevokeGrantError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_revoke_grant_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::revoke_grant_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_schedule_key_deletion_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ScheduleKeyDeletionOutput, + crate::error::ScheduleKeyDeletionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ScheduleKeyDeletionError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::ScheduleKeyDeletionError { + meta: generic, + kind: crate::error::ScheduleKeyDeletionErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::ScheduleKeyDeletionError { + meta: generic, + kind: crate::error::ScheduleKeyDeletionErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::ScheduleKeyDeletionError { + meta: generic, + kind: crate::error::ScheduleKeyDeletionErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::ScheduleKeyDeletionError { + meta: generic, + kind: crate::error::ScheduleKeyDeletionErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::ScheduleKeyDeletionError { + meta: generic, + kind: crate::error::ScheduleKeyDeletionErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ScheduleKeyDeletionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_schedule_key_deletion_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ScheduleKeyDeletionOutput, + crate::error::ScheduleKeyDeletionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::schedule_key_deletion_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_schedule_key_deletion( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ScheduleKeyDeletionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_sign_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SignError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SignError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::SignError { + meta: generic, + kind: crate::error::SignErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SignError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_sign_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::sign_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_sign(response.body().as_ref(), output) + .map_err(crate::error::SignError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArnException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "TagException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::TagException({ + #[allow(unused_mut)] + let mut output = crate::error::tag_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_tag_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InvalidArnException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "TagException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::TagException({ + #[allow(unused_mut)] + let mut output = crate::error::tag_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_tag_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_alias_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateAliasError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateAliasError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateAliasError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_alias_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_alias_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_custom_key_store_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCustomKeyStoreOutput, + crate::error::UpdateCustomKeyStoreError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateCustomKeyStoreError::unhandled(generic)), + }; + Err(match error_code { + "CloudHsmClusterInvalidConfigurationException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotActiveException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotActiveException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_active_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_active_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotFoundException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CloudHsmClusterNotRelatedException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CloudHsmClusterNotRelatedException({ + #[allow(unused_mut)]let mut output = crate::error::cloud_hsm_cluster_not_related_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_cloud_hsm_cluster_not_related_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreInvalidStateException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreInvalidStateException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_invalid_state_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreNameInUseException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNameInUseException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_name_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_name_in_use_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "CustomKeyStoreNotFoundException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::CustomKeyStoreNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::custom_key_store_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_key_store_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + "KMSInternalException" => crate::error::UpdateCustomKeyStoreError { meta: generic, kind: crate::error::UpdateCustomKeyStoreErrorKind::KmsInternalException({ + #[allow(unused_mut)]let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomKeyStoreError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateCustomKeyStoreError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_custom_key_store_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCustomKeyStoreOutput, + crate::error::UpdateCustomKeyStoreError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_custom_key_store_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_key_description_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateKeyDescriptionOutput, + crate::error::UpdateKeyDescriptionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateKeyDescriptionError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::UpdateKeyDescriptionError { + meta: generic, + kind: crate::error::UpdateKeyDescriptionErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + output.build() + }), + }, + "InvalidArnException" => crate::error::UpdateKeyDescriptionError { + meta: generic, + kind: crate::error::UpdateKeyDescriptionErrorKind::InvalidArnException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_arn_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_arn_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::UpdateKeyDescriptionError { + meta: generic, + kind: crate::error::UpdateKeyDescriptionErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::UpdateKeyDescriptionError { + meta: generic, + kind: crate::error::UpdateKeyDescriptionErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::UpdateKeyDescriptionError { + meta: generic, + kind: crate::error::UpdateKeyDescriptionErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateKeyDescriptionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateKeyDescriptionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_key_description_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateKeyDescriptionOutput, + crate::error::UpdateKeyDescriptionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_key_description_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_verify_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::VerifyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::VerifyError::unhandled(generic)), + }; + Err(match error_code { + "DependencyTimeoutException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::DependencyTimeoutException({ + #[allow(unused_mut)] + let mut output = crate::error::dependency_timeout_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_dependency_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "DisabledException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::DisabledException({ + #[allow(unused_mut)] + let mut output = crate::error::disabled_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "InvalidGrantTokenException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::InvalidGrantTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_grant_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_grant_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "InvalidKeyUsageException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::InvalidKeyUsageException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_usage_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_usage_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "KeyUnavailableException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::KeyUnavailableException({ + #[allow(unused_mut)] + let mut output = crate::error::key_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_key_unavailable_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "KMSInternalException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::KmsInternalException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_internal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_internal_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidSignatureException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::KmsInvalidSignatureException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_signature_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_kms_invalid_signature_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "KMSInvalidStateException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::KmsInvalidStateException({ + #[allow(unused_mut)] + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + "NotFoundException" => crate::error::VerifyError { + meta: generic, + kind: crate::error::VerifyErrorKind::NotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::VerifyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_verify_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::verify_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_verify(response.body().as_ref(), output) + .map_err(crate::error::VerifyError::unhandled)?; + output.build() + }) +} diff --git a/sdk/kms/src/operation_ser.rs b/sdk/kms/src/operation_ser.rs index 68ac8011dbe4..99fc059c47c9 100644 --- a/sdk/kms/src/operation_ser.rs +++ b/sdk/kms/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_cancel_key_deletion( input: &crate::input::CancelKeyDeletionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_key_deletion_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_cancel_key_deletion( pub fn serialize_operation_connect_custom_key_store( input: &crate::input::ConnectCustomKeyStoreInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_connect_custom_key_store_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_connect_custom_key_store( pub fn serialize_operation_create_alias( input: &crate::input::CreateAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_alias_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_alias( pub fn serialize_operation_create_custom_key_store( input: &crate::input::CreateCustomKeyStoreInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_custom_key_store_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_custom_key_store( pub fn serialize_operation_create_grant( input: &crate::input::CreateGrantInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_grant_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_grant( pub fn serialize_operation_create_key( input: &crate::input::CreateKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_key_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_create_key( pub fn serialize_operation_decrypt( input: &crate::input::DecryptInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_decrypt_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_decrypt( pub fn serialize_operation_delete_alias( input: &crate::input::DeleteAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_alias_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_delete_alias( pub fn serialize_operation_delete_custom_key_store( input: &crate::input::DeleteCustomKeyStoreInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_custom_key_store_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_delete_custom_key_store( pub fn serialize_operation_delete_imported_key_material( input: &crate::input::DeleteImportedKeyMaterialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_imported_key_material_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_delete_imported_key_material( pub fn serialize_operation_describe_custom_key_stores( input: &crate::input::DescribeCustomKeyStoresInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_custom_key_stores_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_describe_custom_key_stores( pub fn serialize_operation_describe_key( input: &crate::input::DescribeKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_key_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_describe_key( pub fn serialize_operation_disable_key( input: &crate::input::DisableKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disable_key_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_disable_key( pub fn serialize_operation_disable_key_rotation( input: &crate::input::DisableKeyRotationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disable_key_rotation_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_disable_key_rotation( pub fn serialize_operation_disconnect_custom_key_store( input: &crate::input::DisconnectCustomKeyStoreInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disconnect_custom_key_store_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_disconnect_custom_key_store( pub fn serialize_operation_enable_key( input: &crate::input::EnableKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_enable_key_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_enable_key( pub fn serialize_operation_enable_key_rotation( input: &crate::input::EnableKeyRotationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_enable_key_rotation_input(&mut object, input); @@ -171,7 +171,7 @@ pub fn serialize_operation_enable_key_rotation( pub fn serialize_operation_encrypt( input: &crate::input::EncryptInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_encrypt_input(&mut object, input); @@ -181,7 +181,7 @@ pub fn serialize_operation_encrypt( pub fn serialize_operation_generate_data_key( input: &crate::input::GenerateDataKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_data_key_input(&mut object, input); @@ -191,7 +191,7 @@ pub fn serialize_operation_generate_data_key( pub fn serialize_operation_generate_data_key_pair( input: &crate::input::GenerateDataKeyPairInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_data_key_pair_input(&mut object, input); @@ -201,7 +201,7 @@ pub fn serialize_operation_generate_data_key_pair( pub fn serialize_operation_generate_data_key_pair_without_plaintext( input: &crate::input::GenerateDataKeyPairWithoutPlaintextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_data_key_pair_without_plaintext_input( @@ -214,7 +214,7 @@ pub fn serialize_operation_generate_data_key_pair_without_plaintext( pub fn serialize_operation_generate_data_key_without_plaintext( input: &crate::input::GenerateDataKeyWithoutPlaintextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_data_key_without_plaintext_input( @@ -227,7 +227,7 @@ pub fn serialize_operation_generate_data_key_without_plaintext( pub fn serialize_operation_generate_random( input: &crate::input::GenerateRandomInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_generate_random_input(&mut object, input); @@ -237,7 +237,7 @@ pub fn serialize_operation_generate_random( pub fn serialize_operation_get_key_policy( input: &crate::input::GetKeyPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_key_policy_input(&mut object, input); @@ -247,7 +247,7 @@ pub fn serialize_operation_get_key_policy( pub fn serialize_operation_get_key_rotation_status( input: &crate::input::GetKeyRotationStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_key_rotation_status_input(&mut object, input); @@ -257,7 +257,7 @@ pub fn serialize_operation_get_key_rotation_status( pub fn serialize_operation_get_parameters_for_import( input: &crate::input::GetParametersForImportInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_parameters_for_import_input(&mut object, input); @@ -267,7 +267,7 @@ pub fn serialize_operation_get_parameters_for_import( pub fn serialize_operation_get_public_key( input: &crate::input::GetPublicKeyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_public_key_input(&mut object, input); @@ -277,7 +277,7 @@ pub fn serialize_operation_get_public_key( pub fn serialize_operation_import_key_material( input: &crate::input::ImportKeyMaterialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_import_key_material_input(&mut object, input); @@ -287,7 +287,7 @@ pub fn serialize_operation_import_key_material( pub fn serialize_operation_list_aliases( input: &crate::input::ListAliasesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_aliases_input(&mut object, input); @@ -297,7 +297,7 @@ pub fn serialize_operation_list_aliases( pub fn serialize_operation_list_grants( input: &crate::input::ListGrantsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_grants_input(&mut object, input); @@ -307,7 +307,7 @@ pub fn serialize_operation_list_grants( pub fn serialize_operation_list_key_policies( input: &crate::input::ListKeyPoliciesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_key_policies_input(&mut object, input); @@ -317,7 +317,7 @@ pub fn serialize_operation_list_key_policies( pub fn serialize_operation_list_keys( input: &crate::input::ListKeysInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_keys_input(&mut object, input); @@ -327,7 +327,7 @@ pub fn serialize_operation_list_keys( pub fn serialize_operation_list_resource_tags( input: &crate::input::ListResourceTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_resource_tags_input(&mut object, input); @@ -337,7 +337,7 @@ pub fn serialize_operation_list_resource_tags( pub fn serialize_operation_list_retirable_grants( input: &crate::input::ListRetirableGrantsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_retirable_grants_input(&mut object, input); @@ -347,7 +347,7 @@ pub fn serialize_operation_list_retirable_grants( pub fn serialize_operation_put_key_policy( input: &crate::input::PutKeyPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_key_policy_input(&mut object, input); @@ -357,7 +357,7 @@ pub fn serialize_operation_put_key_policy( pub fn serialize_operation_re_encrypt( input: &crate::input::ReEncryptInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_re_encrypt_input(&mut object, input); @@ -367,7 +367,7 @@ pub fn serialize_operation_re_encrypt( pub fn serialize_operation_retire_grant( input: &crate::input::RetireGrantInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_retire_grant_input(&mut object, input); @@ -377,7 +377,7 @@ pub fn serialize_operation_retire_grant( pub fn serialize_operation_revoke_grant( input: &crate::input::RevokeGrantInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_revoke_grant_input(&mut object, input); @@ -387,7 +387,7 @@ pub fn serialize_operation_revoke_grant( pub fn serialize_operation_schedule_key_deletion( input: &crate::input::ScheduleKeyDeletionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_schedule_key_deletion_input(&mut object, input); @@ -397,7 +397,7 @@ pub fn serialize_operation_schedule_key_deletion( pub fn serialize_operation_sign( input: &crate::input::SignInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_sign_input(&mut object, input); @@ -407,7 +407,7 @@ pub fn serialize_operation_sign( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -417,7 +417,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_untag_resource( input: &crate::input::UntagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_untag_resource_input(&mut object, input); @@ -427,7 +427,7 @@ pub fn serialize_operation_untag_resource( pub fn serialize_operation_update_alias( input: &crate::input::UpdateAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_alias_input(&mut object, input); @@ -437,7 +437,7 @@ pub fn serialize_operation_update_alias( pub fn serialize_operation_update_custom_key_store( input: &crate::input::UpdateCustomKeyStoreInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_custom_key_store_input(&mut object, input); @@ -447,7 +447,7 @@ pub fn serialize_operation_update_custom_key_store( pub fn serialize_operation_update_key_description( input: &crate::input::UpdateKeyDescriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_key_description_input(&mut object, input); @@ -457,7 +457,7 @@ pub fn serialize_operation_update_key_description( pub fn serialize_operation_verify( input: &crate::input::VerifyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_verify_input(&mut object, input); diff --git a/sdk/kms/src/serde_util.rs b/sdk/kms/src/serde_util.rs deleted file mode 100644 index 52f46e107033..000000000000 --- a/sdk/kms/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} - -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} diff --git a/sdk/kms/src/serializer.rs b/sdk/kms/src/serializer.rs deleted file mode 100644 index f6af7c92d83d..000000000000 --- a/sdk/kms/src/serializer.rs +++ /dev/null @@ -1,2782 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelKeyDeletionInputBody<'a> { - ///

    The unique identifier for the customer master key (CMK) for which to cancel - /// deletion.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CancelKeyDeletionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelKeyDeletionInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ConnectCustomKeyStoreInputBody<'a> { - ///

    Enter the key store ID of the custom key store that you want to connect. - /// To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - pub custom_key_store_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ConnectCustomKeyStoreInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConnectCustomKeyStoreInputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAliasInputBody<'a> { - ///

    Specifies the alias name. This value must begin with alias/ followed by a - /// name, such as alias/ExampleAlias.

    - ///

    The AliasName value must be string of 1-256 characters. It can contain only alphanumeric characters, - /// forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved - /// for AWS managed CMKs.

    - pub alias_name: &'a std::option::Option, - ///

    Associates the alias with the specified customer managed CMK. The CMK must be - /// in the same AWS Region.

    - ///

    A valid CMK ID is required. If you supply a null or empty string value, this operation - /// returns an error.

    - ///

    For help finding the key ID and ARN, see Finding the Key ID and - /// ARN in the AWS Key Management Service Developer Guide.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub target_key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAliasInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAliasInputBody"); - formatter.field("alias_name", &self.alias_name); - formatter.field("target_key_id", &self.target_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCustomKeyStoreInputBody<'a> { - ///

    Specifies a friendly name for the custom key store. The name must be unique in your AWS - /// account.

    - pub custom_key_store_name: &'a std::option::Option, - ///

    Identifies the AWS CloudHSM cluster for the custom key store. Enter the cluster ID of any active - /// AWS CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, - /// use the DescribeClusters operation.

    - pub cloud_hsm_cluster_id: &'a std::option::Option, - ///

    Enter the content of the trust anchor certificate for the cluster. This is the content of - /// the customerCA.crt file that you created when you initialized the cluster.

    - pub trust_anchor_certificate: &'a std::option::Option, - ///

    Enter the password of the - /// kmsuser crypto user - /// (CU) account in the specified AWS CloudHSM cluster. AWS KMS logs into the cluster as this - /// user to manage key material on your behalf.

    - ///

    The password must be a string of 7 to 32 characters. Its value is case sensitive.

    - ///

    This parameter tells AWS KMS the kmsuser account password; it does not change - /// the password in the AWS CloudHSM cluster.

    - pub key_store_password: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateCustomKeyStoreInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCustomKeyStoreInputBody"); - formatter.field("custom_key_store_name", &self.custom_key_store_name); - formatter.field("cloud_hsm_cluster_id", &self.cloud_hsm_cluster_id); - formatter.field("trust_anchor_certificate", &self.trust_anchor_certificate); - formatter.field("key_store_password", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateGrantInputBody<'a> { - ///

    The unique identifier for the customer master key (CMK) that the grant applies to.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a - /// different AWS account, you must use the key ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    The principal that is given permission to perform the operations that the grant - /// permits.

    - ///

    To specify the principal, use the Amazon Resource Name (ARN) of an AWS - /// principal. Valid AWS principals include AWS accounts (root), IAM users, IAM roles, federated - /// users, and assumed role users. For examples of the ARN syntax to use for specifying a - /// principal, see AWS Identity and Access - /// Management (IAM) in the Example ARNs section of the AWS General - /// Reference.

    - pub grantee_principal: &'a std::option::Option, - ///

    The principal that is given permission to retire the grant by using RetireGrant operation.

    - ///

    To specify the principal, use the Amazon Resource Name (ARN) of an AWS - /// principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and - /// assumed role users. For examples of the ARN syntax to use for specifying a principal, see - /// AWS Identity and Access Management (IAM) in the Example ARNs section of the - /// AWS General Reference.

    - pub retiring_principal: &'a std::option::Option, - ///

    A list of operations that the grant permits.

    - pub operations: &'a std::option::Option>, - ///

    Allows a cryptographic operation only when the encryption context matches or includes the encryption - /// context specified in this structure. For more information about encryption context, see Encryption - /// Context in the - /// AWS Key Management Service Developer Guide - /// .

    - ///

    Grant constraints are not applied to operations that do not support an encryption context, - /// such as cryptographic operations with asymmetric CMKs and management operations, such as - /// DescribeKey or RetireGrant.

    - pub constraints: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, - ///

    A friendly name for the grant. Use this value to prevent the unintended - /// creation of duplicate grants when retrying this request.

    - ///

    When this value is absent, all CreateGrant requests result in a new grant - /// with a unique GrantId even if all the supplied parameters are identical. This can - /// result in unintended duplicates when you retry the CreateGrant request.

    - ///

    When this value is present, you can retry a CreateGrant request with - /// identical parameters; if the grant already exists, the original GrantId is - /// returned without creating a new grant. Note that the returned grant token is unique with every - /// CreateGrant request, even when a duplicate GrantId is returned. - /// All grant tokens for the same grant ID can be used interchangeably.

    - pub name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateGrantInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateGrantInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("grantee_principal", &self.grantee_principal); - formatter.field("retiring_principal", &self.retiring_principal); - formatter.field("operations", &self.operations); - formatter.field("constraints", &self.constraints); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateKeyInputBody<'a> { - ///

    The key policy to attach to the CMK.

    - ///

    If you provide a key policy, it must meet the following criteria:

    - ///
      - ///
    • - ///

      If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy - /// must allow the principal that is making the CreateKey request to make a - /// subsequent PutKeyPolicy request on the CMK. This reduces the risk that - /// the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the - /// AWS Key Management Service Developer Guide - /// .

      - ///
    • - ///
    • - ///

      Each statement in the key policy must contain one or more principals. The principals - /// in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal - /// (for example, an IAM user or role), you might need to enforce a delay before including the - /// new principal in a key policy because the new principal might not be immediately visible - /// to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS - /// Identity and Access Management User Guide.

      - ///
    • - ///
    - ///

    If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. For - /// more information, see Default Key Policy in the - /// AWS Key Management Service Developer Guide.

    - ///

    The key policy size quota is 32 kilobytes (32768 bytes).

    - ///

    For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the - /// IAM User Guide - /// .

    - pub policy: &'a std::option::Option, - ///

    A description of the CMK.

    - ///

    Use a description that helps you decide whether the CMK is appropriate for a task.

    - pub description: &'a std::option::Option, - ///

    Determines the cryptographic operations for which you can use the CMK. The default value - /// is ENCRYPT_DECRYPT. This parameter is required only for asymmetric CMKs. You - /// can't change the KeyUsage value after the CMK is created.

    - ///

    Select only one valid value.

    - ///
      - ///
    • - ///

      For symmetric CMKs, omit the parameter or specify ENCRYPT_DECRYPT.

      - ///
    • - ///
    • - ///

      For asymmetric CMKs with RSA key material, specify ENCRYPT_DECRYPT or - /// SIGN_VERIFY.

      - ///
    • - ///
    • - ///

      For asymmetric CMKs with ECC key material, specify SIGN_VERIFY.

      - ///
    • - ///
    - pub key_usage: &'a std::option::Option, - ///

    Specifies the type of CMK to create. The default value, SYMMETRIC_DEFAULT, - /// creates a CMK with a 256-bit symmetric key for encryption and decryption. For help choosing a - /// key spec for your CMK, see How to Choose Your CMK - /// Configuration in the AWS Key Management Service Developer - /// Guide.

    - ///

    The CustomerMasterKeySpec determines whether the CMK contains a symmetric key - /// or an asymmetric key pair. It also determines the encryption algorithms or signing algorithms - /// that the CMK supports. You can't change the CustomerMasterKeySpec after the CMK - /// is created. To further restrict the algorithms that can be used with the CMK, use a condition - /// key in its key policy or IAM policy. For more information, see kms:EncryptionAlgorithm or kms:Signing Algorithm in the AWS Key Management Service Developer - /// Guide.

    - /// - ///

    - /// AWS services that - /// are integrated with AWS KMS use symmetric CMKs to protect your data. These - /// services do not support asymmetric CMKs. For help determining whether a CMK is symmetric or - /// asymmetric, see Identifying Symmetric and Asymmetric - /// CMKs in the AWS Key Management Service Developer - /// Guide.

    - ///
    - ///

    AWS KMS supports the following key specs for CMKs:

    - ///
      - ///
    • - ///

      Symmetric key (default)

      - ///
        - ///
      • - ///

        - /// SYMMETRIC_DEFAULT (AES-256-GCM)

        - ///
      • - ///
      - ///
    • - ///
    • - ///

      Asymmetric RSA key pairs

      - ///
        - ///
      • - ///

        - /// RSA_2048 - ///

        - ///
      • - ///
      • - ///

        - /// RSA_3072 - ///

        - ///
      • - ///
      • - ///

        - /// RSA_4096 - ///

        - ///
      • - ///
      - ///
    • - ///
    • - ///

      Asymmetric NIST-recommended elliptic curve key pairs

      - ///
        - ///
      • - ///

        - /// ECC_NIST_P256 (secp256r1)

        - ///
      • - ///
      • - ///

        - /// ECC_NIST_P384 (secp384r1)

        - ///
      • - ///
      • - ///

        - /// ECC_NIST_P521 (secp521r1)

        - ///
      • - ///
      - ///
    • - ///
    • - ///

      Other asymmetric elliptic curve key pairs

      - ///
        - ///
      • - ///

        - /// ECC_SECG_P256K1 (secp256k1), commonly used for - /// cryptocurrencies.

        - ///
      • - ///
      - ///
    • - ///
    - pub customer_master_key_spec: &'a std::option::Option, - ///

    The source of the key material for the CMK. You cannot change the origin after you create - /// the CMK. The default is AWS_KMS, which means AWS KMS creates the key - /// material.

    - ///

    When the parameter value is EXTERNAL, AWS KMS creates a CMK without key - /// material so that you can import key material from your existing key management infrastructure. - /// For more information about importing key material into AWS KMS, see Importing Key Material in the - /// AWS Key Management Service Developer Guide. This value is valid only for symmetric CMKs.

    - ///

    When the parameter value is AWS_CLOUDHSM, AWS KMS creates the CMK in an AWS KMS - /// custom key store and creates its key material in the associated AWS CloudHSM cluster. You must also - /// use the CustomKeyStoreId parameter to identify the custom key store. This value - /// is valid only for symmetric CMKs.

    - pub origin: &'a std::option::Option, - ///

    Creates the CMK in the specified custom key store and the key material in its associated - /// AWS CloudHSM cluster. To create a CMK in a custom key store, you must also specify the - /// Origin parameter with a value of AWS_CLOUDHSM. The AWS CloudHSM cluster - /// that is associated with the custom key store must have at least two active HSMs, each in a - /// different Availability Zone in the Region.

    - ///

    This parameter is valid only for symmetric CMKs. You cannot create an asymmetric CMK in a - /// custom key store.

    - ///

    To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - ///

    The response includes the custom key store ID and the ID of the AWS CloudHSM cluster.

    - ///

    This operation is part of the Custom Key Store feature feature in AWS KMS, which - /// combines the convenience and extensive integration of AWS KMS with the isolation and control of a - /// single-tenant key store.

    - pub custom_key_store_id: &'a std::option::Option, - ///

    A flag to indicate whether to bypass the key policy lockout safety check.

    - /// - ///

    Setting this value to true increases the risk that the CMK becomes unmanageable. Do not - /// set this value to true indiscriminately.

    - ///

    For more information, refer to the scenario in the Default Key Policy section in the - /// AWS Key Management Service Developer Guide - /// .

    - ///
    - ///

    Use this parameter only when you include a policy in the request and you intend to prevent - /// the principal that is making the request from making a subsequent PutKeyPolicy request on the CMK.

    - ///

    The default value is false.

    - pub bypass_policy_lockout_safety_check: &'a bool, - ///

    One or more tags. Each tag consists of a tag key and a tag value. Both the tag key and the - /// tag value are required, but the tag value can be an empty (null) string.

    - ///

    When you add tags to an AWS resource, AWS generates a cost allocation - /// report with usage and costs aggregated by tags. For information about adding, changing, deleting and listing tags for CMKs, - /// see Tagging Keys.

    - ///

    Use this parameter to tag the CMK when it is created. To add tags to an - /// existing CMK, use the TagResource operation.

    - ///

    To use this parameter, you must have kms:TagResource permission in an IAM policy.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateKeyInputBody"); - formatter.field("policy", &self.policy); - formatter.field("description", &self.description); - formatter.field("key_usage", &self.key_usage); - formatter.field("customer_master_key_spec", &self.customer_master_key_spec); - formatter.field("origin", &self.origin); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.field( - "bypass_policy_lockout_safety_check", - &self.bypass_policy_lockout_safety_check, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DecryptInputBody<'a> { - ///

    Ciphertext to be decrypted. The blob includes metadata.

    - pub ciphertext_blob: &'a std::option::Option, - ///

    Specifies the encryption context to use when decrypting the data. - /// An encryption context is valid only for cryptographic operations with a symmetric CMK. The standard asymmetric encryption algorithms that AWS KMS uses do not support an encryption context.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, - ///

    Specifies the customer master key (CMK) that AWS KMS uses to decrypt the ciphertext. Enter a - /// key ID of the CMK that was used to encrypt the ciphertext.

    - ///

    This parameter is required only when the ciphertext was encrypted under an asymmetric CMK. - /// If you used a symmetric CMK, AWS KMS can get the CMK from metadata that it adds to the - /// symmetric ciphertext blob. However, it is always recommended as a best practice. This practice - /// ensures that you use the CMK that you intend.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify - /// the same algorithm that was used to encrypt the data. If you specify a different algorithm, - /// the Decrypt operation fails.

    - ///

    This parameter is required only when the ciphertext was encrypted under an asymmetric CMK. - /// The default value, SYMMETRIC_DEFAULT, represents the only supported algorithm - /// that is valid for symmetric CMKs.

    - pub encryption_algorithm: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DecryptInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DecryptInputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.field("key_id", &self.key_id); - formatter.field("encryption_algorithm", &self.encryption_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAliasInputBody<'a> { - ///

    The alias to be deleted. The alias name must begin with alias/ followed by - /// the alias name, such as alias/ExampleAlias.

    - pub alias_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAliasInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAliasInputBody"); - formatter.field("alias_name", &self.alias_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteCustomKeyStoreInputBody<'a> { - ///

    Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - pub custom_key_store_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteCustomKeyStoreInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteCustomKeyStoreInputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteImportedKeyMaterialInputBody<'a> { - ///

    Identifies the CMK from which you are deleting imported key material. The - /// Origin of the CMK must be EXTERNAL.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteImportedKeyMaterialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteImportedKeyMaterialInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCustomKeyStoresInputBody<'a> { - ///

    Gets only information about the specified custom key store. Enter the key store ID.

    - ///

    By default, this operation gets information about all custom key stores in the account and - /// region. To limit the output to a particular custom key store, you can use either the - /// CustomKeyStoreId or CustomKeyStoreName parameter, but not - /// both.

    - pub custom_key_store_id: &'a std::option::Option, - ///

    Gets only information about the specified custom key store. Enter the friendly name of the - /// custom key store.

    - ///

    By default, this operation gets information about all custom key stores in the account and - /// region. To limit the output to a particular custom key store, you can use either the - /// CustomKeyStoreId or CustomKeyStoreName parameter, but not - /// both.

    - pub custom_key_store_name: &'a std::option::Option, - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeCustomKeyStoresInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCustomKeyStoresInputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.field("custom_key_store_name", &self.custom_key_store_name); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeKeyInputBody<'a> { - ///

    Describes the specified customer master key (CMK).

    - ///

    If you specify a predefined AWS alias (an AWS alias with no key ID), KMS associates the - /// alias with an AWS - /// managed CMK and returns its KeyId and Arn in the - /// response.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableKeyInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisableKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableKeyRotationInputBody<'a> { - ///

    Identifies a symmetric customer master key (CMK). You cannot enable or disable automatic - /// rotation of asymmetric CMKs, CMKs - /// with imported key - /// material, or CMKs in a custom key store.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisableKeyRotationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableKeyRotationInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisconnectCustomKeyStoreInputBody<'a> { - ///

    Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - pub custom_key_store_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisconnectCustomKeyStoreInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisconnectCustomKeyStoreInputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableKeyInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for EnableKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableKeyRotationInputBody<'a> { - ///

    Identifies a symmetric customer master key (CMK). You cannot enable automatic rotation of asymmetric CMKs, CMKs with imported key material, or CMKs in a custom key store.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for EnableKeyRotationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableKeyRotationInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EncryptInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Data to be encrypted.

    - pub plaintext: &'a std::option::Option, - ///

    Specifies the encryption context that will be used to encrypt the data. - /// An encryption context is valid only for cryptographic operations with a symmetric CMK. The standard asymmetric encryption algorithms that AWS KMS uses do not support an encryption context.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, - ///

    Specifies the encryption algorithm that AWS KMS will use to encrypt the plaintext message. - /// The algorithm must be compatible with the CMK that you specify.

    - ///

    This parameter is required only for asymmetric CMKs. The default value, - /// SYMMETRIC_DEFAULT, is the algorithm used for symmetric CMKs. If you are using - /// an asymmetric CMK, we recommend RSAES_OAEP_SHA_256.

    - pub encryption_algorithm: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for EncryptInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EncryptInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("plaintext", &"*** Sensitive Data Redacted ***"); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.field("encryption_algorithm", &self.encryption_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyInputBody<'a> { - ///

    Identifies the symmetric CMK that encrypts the data key.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the encryption context that will be used when encrypting the data key.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the length of the data key in bytes. For example, use the value 64 to generate a - /// 512-bit data key (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data - /// keys, use the KeySpec parameter.

    - ///

    You must specify either the KeySpec or the NumberOfBytes - /// parameter (but not both) in every GenerateDataKey request.

    - pub number_of_bytes: &'a std::option::Option, - ///

    Specifies the length of the data key. Use AES_128 to generate a 128-bit - /// symmetric key, or AES_256 to generate a 256-bit symmetric key.

    - ///

    You must specify either the KeySpec or the NumberOfBytes - /// parameter (but not both) in every GenerateDataKey request.

    - pub key_spec: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for GenerateDataKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("number_of_bytes", &self.number_of_bytes); - formatter.field("key_spec", &self.key_spec); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyPairInputBody<'a> { - ///

    Specifies the encryption context that will be used when encrypting the private key in the - /// data key pair.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the symmetric CMK that encrypts the private key in the data key pair. You cannot - /// specify an asymmetric CMK or a CMK in a custom key store. To get the type and origin of your - /// CMK, use the DescribeKey operation.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Determines the type of data key pair that is generated.

    - ///

    The AWS KMS rule that restricts the use of asymmetric RSA CMKs to encrypt and decrypt or to sign and verify (but not both), and the rule that permits you to use ECC CMKs only to sign and verify, are not effective outside of AWS KMS.

    - pub key_pair_spec: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for GenerateDataKeyPairInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyPairInputBody"); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("key_id", &self.key_id); - formatter.field("key_pair_spec", &self.key_pair_spec); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyPairWithoutPlaintextInputBody<'a> { - ///

    Specifies the encryption context that will be used when encrypting the private key in the - /// data key pair.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the CMK that encrypts the private key in the data key pair. You must specify a - /// symmetric CMK. You cannot use an asymmetric CMK or a CMK in a custom key store. To get the - /// type and origin of your CMK, use the DescribeKey operation.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Determines the type of data key pair that is generated.

    - ///

    The AWS KMS rule that restricts the use of asymmetric RSA CMKs to encrypt and decrypt or to sign and verify (but not both), and the rule that permits you to use ECC CMKs only to sign and verify, are not effective outside of AWS KMS.

    - pub key_pair_spec: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for GenerateDataKeyPairWithoutPlaintextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyPairWithoutPlaintextInputBody"); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("key_id", &self.key_id); - formatter.field("key_pair_spec", &self.key_pair_spec); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyWithoutPlaintextInputBody<'a> { - ///

    The identifier of the symmetric customer master key (CMK) that encrypts the data - /// key.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the encryption context that will be used when encrypting the data key.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The length of the data key. Use AES_128 to generate a 128-bit symmetric key, - /// or AES_256 to generate a 256-bit symmetric key.

    - pub key_spec: &'a std::option::Option, - ///

    The length of the data key in bytes. For example, use the value 64 to generate a 512-bit - /// data key (64 bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), - /// we recommend that you use the KeySpec field instead of this one.

    - pub number_of_bytes: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for GenerateDataKeyWithoutPlaintextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyWithoutPlaintextInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("encryption_context", &self.encryption_context); - formatter.field("key_spec", &self.key_spec); - formatter.field("number_of_bytes", &self.number_of_bytes); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateRandomInputBody<'a> { - ///

    The length of the byte string.

    - pub number_of_bytes: &'a std::option::Option, - ///

    Generates the random byte string in the AWS CloudHSM cluster that is associated with the - /// specified custom key store. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - pub custom_key_store_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GenerateRandomInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateRandomInputBody"); - formatter.field("number_of_bytes", &self.number_of_bytes); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetKeyPolicyInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the name of the key policy. The only valid name is default. To get - /// the names of key policies, use ListKeyPolicies.

    - pub policy_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetKeyPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetKeyPolicyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("policy_name", &self.policy_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetKeyRotationStatusInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a - /// different AWS account, you must use the key ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetKeyRotationStatusInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetKeyRotationStatusInputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersForImportInputBody<'a> { - ///

    The identifier of the symmetric CMK into which you will import key material. The - /// Origin of the CMK must be EXTERNAL.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    The algorithm you will use to encrypt the key material before importing it with ImportKeyMaterial. For more information, see Encrypt the Key Material - /// in the AWS Key Management Service Developer Guide.

    - pub wrapping_algorithm: &'a std::option::Option, - ///

    The type of wrapping key (public key) to return in the response. Only 2048-bit RSA public - /// keys are supported.

    - pub wrapping_key_spec: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetParametersForImportInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersForImportInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("wrapping_algorithm", &self.wrapping_algorithm); - formatter.field("wrapping_key_spec", &self.wrapping_key_spec); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPublicKeyInputBody<'a> { - ///

    Identifies the asymmetric CMK that includes the public key.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for GetPublicKeyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPublicKeyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ImportKeyMaterialInputBody<'a> { - ///

    The identifier of the symmetric CMK that receives the imported key material. The CMK's - /// Origin must be EXTERNAL. This must be the same CMK specified in - /// the KeyID parameter of the corresponding GetParametersForImport - /// request.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained - /// the public key that you used to encrypt the key material.

    - pub import_token: &'a std::option::Option, - ///

    The encrypted key material to import. The key material must be encrypted with the public - /// wrapping key that GetParametersForImport returned, using the wrapping - /// algorithm that you specified in the same GetParametersForImport request.

    - pub encrypted_key_material: &'a std::option::Option, - ///

    The time at which the imported key material expires. When the key material expires, AWS KMS - /// deletes the key material and the CMK becomes unusable. You must omit this parameter when the - /// ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. - /// Otherwise it is required.

    - pub valid_to: &'a std::option::Option, - ///

    Specifies whether the key material expires. The default is - /// KEY_MATERIAL_EXPIRES, in which case you must include the ValidTo - /// parameter. When this parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE, you must - /// omit the ValidTo parameter.

    - pub expiration_model: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ImportKeyMaterialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ImportKeyMaterialInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("import_token", &self.import_token); - formatter.field("encrypted_key_material", &self.encrypted_key_material); - formatter.field("valid_to", &self.valid_to); - formatter.field("expiration_model", &self.expiration_model); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAliasesInputBody<'a> { - ///

    Lists only aliases that are associated with the specified CMK. Enter a CMK in your AWS - /// account.

    - ///

    This parameter is optional. If you omit it, ListAliases returns all aliases - /// in the account and Region.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between 1 - /// and 100, inclusive. If you do not include a value, it defaults to 50.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAliasesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAliasesInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListGrantsInputBody<'a> { - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between 1 - /// and 100, inclusive. If you do not include a value, it defaults to 50.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, - ///

    Returns only grants for the specified customer master key (CMK). This parameter is - /// required.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a - /// different AWS account, you must use the key ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Returns only the grant with the specified grant ID. The grant ID uniquely identifies the - /// grant.

    - pub grant_id: &'a std::option::Option, - ///

    Returns only grants where the specified principal is the grantee principal for the - /// grant.

    - pub grantee_principal: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListGrantsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListGrantsInputBody"); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.field("key_id", &self.key_id); - formatter.field("grant_id", &self.grant_id); - formatter.field("grantee_principal", &self.grantee_principal); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListKeyPoliciesInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between - /// 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

    - ///

    Only one policy can be attached to a key.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListKeyPoliciesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListKeyPoliciesInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListKeysInputBody<'a> { - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between - /// 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListKeysInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListKeysInputBody"); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceTagsInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between 1 and 50, inclusive. If - /// you do not include a value, it defaults to 50.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - ///

    Do not attempt to construct this value. Use only the value of NextMarker from - /// the truncated response you just received.

    - pub marker: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListResourceTagsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceTagsInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListRetirableGrantsInputBody<'a> { - ///

    Use this parameter to specify the maximum number of items to return. When this - /// value is present, AWS KMS does not return more than the specified number of items, but it might - /// return fewer.

    - ///

    This value is optional. If you include a value, it must be between 1 - /// and 100, inclusive. If you do not include a value, it defaults to 50.

    - pub limit: &'a std::option::Option, - ///

    Use this parameter in a subsequent request after you receive a response with - /// truncated results. Set it to the value of NextMarker from the truncated response - /// you just received.

    - pub marker: &'a std::option::Option, - ///

    The retiring principal for which to list grants. Enter a principal in your AWS - /// account.

    - ///

    To specify the retiring principal, use the Amazon Resource Name (ARN) of an AWS - /// principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and - /// assumed role users. For examples of the ARN syntax for specifying a principal, see AWS - /// Identity and Access Management (IAM) in the Example ARNs section of the - /// Amazon Web Services General Reference.

    - pub retiring_principal: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListRetirableGrantsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListRetirableGrantsInputBody"); - formatter.field("limit", &self.limit); - formatter.field("marker", &self.marker); - formatter.field("retiring_principal", &self.retiring_principal); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutKeyPolicyInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    The name of the key policy. The only valid value is default.

    - pub policy_name: &'a std::option::Option, - ///

    The key policy to attach to the CMK.

    - ///

    The key policy must meet the following criteria:

    - ///
      - ///
    • - ///

      If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy - /// must allow the principal that is making the PutKeyPolicy request to make a - /// subsequent PutKeyPolicy request on the CMK. This reduces the risk that the - /// CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the AWS Key Management Service Developer Guide.

      - ///
    • - ///
    • - ///

      Each statement in the key policy must contain one or more principals. The principals - /// in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal - /// (for example, an IAM user or role), you might need to enforce a delay before including the - /// new principal in a key policy because the new principal might not be immediately visible - /// to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS - /// Identity and Access Management User Guide.

      - ///
    • - ///
    - ///

    The key policy cannot exceed 32 kilobytes (32768 bytes). For more information, see Resource Quotas in the AWS Key Management Service Developer Guide.

    - pub policy: &'a std::option::Option, - ///

    A flag to indicate whether to bypass the key policy lockout safety check.

    - /// - ///

    Setting this value to true increases the risk that the CMK becomes unmanageable. Do not - /// set this value to true indiscriminately.

    - ///

    For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

    - ///
    - ///

    Use this parameter only when you intend to prevent the principal that is making the - /// request from making a subsequent PutKeyPolicy request on the CMK.

    - ///

    The default value is false.

    - pub bypass_policy_lockout_safety_check: &'a bool, -} -impl<'a> std::fmt::Debug for PutKeyPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutKeyPolicyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("policy_name", &self.policy_name); - formatter.field("policy", &self.policy); - formatter.field( - "bypass_policy_lockout_safety_check", - &self.bypass_policy_lockout_safety_check, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReEncryptInputBody<'a> { - ///

    Ciphertext of the data to reencrypt.

    - pub ciphertext_blob: &'a std::option::Option, - ///

    Specifies the encryption context to use to decrypt the ciphertext. Enter the same - /// encryption context that was used to encrypt the ciphertext.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub source_encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the customer master key (CMK) that - /// AWS KMS will use to decrypt the ciphertext before it is re-encrypted. Enter a key ID of the CMK - /// that was used to encrypt the ciphertext.

    - ///

    This parameter is required only when the ciphertext was encrypted under an asymmetric CMK. - /// If you used a symmetric CMK, AWS KMS can get the CMK from metadata that it adds to the - /// symmetric ciphertext blob. However, it is always recommended as a best practice. This practice - /// ensures that you use the CMK that you intend.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub source_key_id: &'a std::option::Option, - ///

    A unique identifier for the CMK that is used to reencrypt the data. Specify a symmetric or - /// asymmetric CMK with a KeyUsage value of ENCRYPT_DECRYPT. To find the - /// KeyUsage value of a CMK, use the DescribeKey - /// operation.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub destination_key_id: &'a std::option::Option, - ///

    Specifies that encryption context to use when the reencrypting the data.

    - ///

    A destination encryption context is valid only when the destination CMK is a symmetric - /// CMK. The standard ciphertext format for asymmetric CMKs does not include fields for - /// metadata.

    - ///

    An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric CMK, but it is highly recommended.

    - ///

    For more information, see - /// Encryption - /// Context in the AWS Key Management Service Developer Guide.

    - pub destination_encryption_context: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Specifies the encryption algorithm that AWS KMS will use to decrypt the ciphertext before it - /// is reencrypted. The default value, SYMMETRIC_DEFAULT, represents the algorithm - /// used for symmetric CMKs.

    - ///

    Specify the same algorithm that was used to encrypt the ciphertext. If you specify a - /// different algorithm, the decrypt attempt fails.

    - ///

    This parameter is required only when the ciphertext was encrypted under an asymmetric - /// CMK.

    - pub source_encryption_algorithm: &'a std::option::Option, - ///

    Specifies the encryption algorithm that AWS KMS will use to reecrypt the data after it has - /// decrypted it. The default value, SYMMETRIC_DEFAULT, represents the encryption - /// algorithm used for symmetric CMKs.

    - ///

    This parameter is required only when the destination CMK is an asymmetric CMK.

    - pub destination_encryption_algorithm: - &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for ReEncryptInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReEncryptInputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("source_encryption_context", &self.source_encryption_context); - formatter.field("source_key_id", &self.source_key_id); - formatter.field("destination_key_id", &self.destination_key_id); - formatter.field( - "destination_encryption_context", - &self.destination_encryption_context, - ); - formatter.field( - "source_encryption_algorithm", - &self.source_encryption_algorithm, - ); - formatter.field( - "destination_encryption_algorithm", - &self.destination_encryption_algorithm, - ); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RetireGrantInputBody<'a> { - ///

    Token that identifies the grant to be retired.

    - pub grant_token: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the CMK associated with the grant.

    - ///

    For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

    - pub key_id: &'a std::option::Option, - ///

    Unique identifier of the grant to retire. The grant ID is returned in the response to a - /// CreateGrant operation.

    - ///
      - ///
    • - ///

      Grant ID Example - - /// 0123456789012345678901234567890123456789012345678901234567890123

      - ///
    • - ///
    - pub grant_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RetireGrantInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RetireGrantInputBody"); - formatter.field("grant_token", &self.grant_token); - formatter.field("key_id", &self.key_id); - formatter.field("grant_id", &self.grant_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RevokeGrantInputBody<'a> { - ///

    A unique identifier for the customer master key associated with the grant.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a - /// different AWS account, you must use the key ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    Identifier of the grant to be revoked.

    - pub grant_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RevokeGrantInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RevokeGrantInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("grant_id", &self.grant_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ScheduleKeyDeletionInputBody<'a> { - ///

    The unique identifier of the customer master key (CMK) to delete.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    The waiting period, specified in number of days. After the waiting period ends, AWS KMS - /// deletes the customer master key (CMK).

    - ///

    This value is optional. If you include a value, it must be between 7 and 30, inclusive. If - /// you do not include a value, it defaults to 30.

    - pub pending_window_in_days: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ScheduleKeyDeletionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ScheduleKeyDeletionInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("pending_window_in_days", &self.pending_window_in_days); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SignInputBody<'a> { - ///

    Identifies an asymmetric CMK. AWS KMS uses the private key in the asymmetric CMK to sign the - /// message. The KeyUsage type of the CMK must be SIGN_VERIFY. To find - /// the KeyUsage of a CMK, use the DescribeKey operation.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a - /// larger message, provide the message digest.

    - ///

    If you provide a message, AWS KMS generates a hash digest of the message and then signs - /// it.

    - pub message: &'a std::option::Option, - ///

    Tells AWS KMS whether the value of the Message parameter is a message or - /// message digest. The default value, RAW, indicates a message. To indicate a message digest, - /// enter DIGEST.

    - pub message_type: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, - ///

    Specifies the signing algorithm to use when signing the message.

    - ///

    Choose an algorithm that is compatible with the type and size of the specified asymmetric - /// CMK.

    - pub signing_algorithm: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SignInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SignInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("message", &"*** Sensitive Data Redacted ***"); - formatter.field("message_type", &self.message_type); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.field("signing_algorithm", &self.signing_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    Identifies a customer managed CMK in the account and Region.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    One or more tags.

    - ///

    Each tag consists of a tag key and a tag value. The tag value can be an empty (null) - /// string.

    - ///

    You cannot have more than one tag on a CMK with the same tag key. If you specify an - /// existing tag key with a different tag value, AWS KMS replaces the current tag value with the - /// specified one.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagResourceInputBody<'a> { - ///

    Identifies the CMK from which you are removing tags.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    One or more tag keys. Specify only the tag keys, not the tag values.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UntagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagResourceInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAliasInputBody<'a> { - ///

    Identifies the alias that is changing its CMK. This value must begin with - /// alias/ followed by the alias name, such as alias/ExampleAlias. You - /// cannot use UpdateAlias to change the alias name.

    - pub alias_name: &'a std::option::Option, - ///

    Identifies the customer managed CMK to associate with the alias. You don't have permission - /// to associate an alias with an AWS managed CMK.

    - ///

    The CMK must be in the same AWS account and Region as the alias. Also, the new target CMK - /// must be the same type as the current target CMK (both symmetric or both asymmetric) and they - /// must have the same key usage.

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - ///

    To verify that the alias - /// is mapped to the correct CMK, use ListAliases.

    - pub target_key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateAliasInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAliasInputBody"); - formatter.field("alias_name", &self.alias_name); - formatter.field("target_key_id", &self.target_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCustomKeyStoreInputBody<'a> { - ///

    Identifies the custom key store that you want to update. Enter the ID of the custom key - /// store. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

    - pub custom_key_store_id: &'a std::option::Option, - ///

    Changes the friendly name of the custom key store to the value that you specify. The - /// custom key store name must be unique in the AWS account.

    - pub new_custom_key_store_name: &'a std::option::Option, - ///

    Enter the current password of the kmsuser crypto user (CU) in the AWS CloudHSM - /// cluster that is associated with the custom key store.

    - ///

    This parameter tells AWS KMS the current password of the kmsuser crypto user - /// (CU). It does not set or change the password of any users in the AWS CloudHSM cluster.

    - pub key_store_password: &'a std::option::Option, - ///

    Associates the custom key store with a related AWS CloudHSM cluster.

    - ///

    Enter the cluster ID of the cluster that you used to create the custom key store or a - /// cluster that shares a backup history and has the same cluster certificate as the original - /// cluster. You cannot use this parameter to associate a custom key store with an unrelated - /// cluster. In addition, the replacement cluster must fulfill the requirements for - /// a cluster associated with a custom key store. To view the cluster certificate of a cluster, - /// use the DescribeClusters operation.

    - pub cloud_hsm_cluster_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateCustomKeyStoreInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCustomKeyStoreInputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.field("new_custom_key_store_name", &self.new_custom_key_store_name); - formatter.field("key_store_password", &"*** Sensitive Data Redacted ***"); - formatter.field("cloud_hsm_cluster_id", &self.cloud_hsm_cluster_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateKeyDescriptionInputBody<'a> { - ///

    A unique identifier for the customer master key (CMK).

    - ///

    Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

    - pub key_id: &'a std::option::Option, - ///

    New description for the CMK.

    - pub description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateKeyDescriptionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateKeyDescriptionInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("description", &self.description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VerifyInputBody<'a> { - ///

    Identifies the asymmetric CMK that will be used to verify the signature. This must be the - /// same CMK that was used to generate the signature. If you specify a different CMK, the - /// signature verification fails.

    - ///

    To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

    - ///

    For example:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

    - pub key_id: &'a std::option::Option, - ///

    Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, - /// or a hash digest of the message. If you submit a digest, use the MessageType - /// parameter with a value of DIGEST.

    - ///

    If the message specified here is different from the message that was signed, the signature - /// verification fails. A message and its hash digest are considered to be the same - /// message.

    - pub message: &'a std::option::Option, - ///

    Tells AWS KMS whether the value of the Message parameter is a message or - /// message digest. The default value, RAW, indicates a message. To indicate a message digest, - /// enter DIGEST.

    - /// - ///

    Use the DIGEST value only when the value of the Message - /// parameter is a message digest. If you use the DIGEST value with a raw message, - /// the security of the verification operation can be compromised.

    - ///
    - pub message_type: &'a std::option::Option, - ///

    The signature that the Sign operation generated.

    - pub signature: &'a std::option::Option, - ///

    The signing algorithm that was used to sign the message. If you submit a different - /// algorithm, the signature verification fails.

    - pub signing_algorithm: &'a std::option::Option, - ///

    A list of grant tokens.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - pub grant_tokens: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for VerifyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VerifyInputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("message", &"*** Sensitive Data Redacted ***"); - formatter.field("message_type", &self.message_type); - formatter.field("signature", &self.signature); - formatter.field("signing_algorithm", &self.signing_algorithm); - formatter.field("grant_tokens", &self.grant_tokens); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelKeyDeletionOutputBody { - ///

    The Amazon Resource Name (key ARN) of the CMK whose deletion is canceled.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, -} -impl std::fmt::Debug for CancelKeyDeletionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelKeyDeletionOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCustomKeyStoreOutputBody { - ///

    A unique identifier for the new custom key store.

    - #[serde(rename = "CustomKeyStoreId")] - #[serde(default)] - pub custom_key_store_id: std::option::Option, -} -impl std::fmt::Debug for CreateCustomKeyStoreOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCustomKeyStoreOutputBody"); - formatter.field("custom_key_store_id", &self.custom_key_store_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateGrantOutputBody { - ///

    The grant token.

    - ///

    For more information, see Grant Tokens in the - /// AWS Key Management Service Developer Guide.

    - #[serde(rename = "GrantToken")] - #[serde(default)] - pub grant_token: std::option::Option, - ///

    The unique identifier for the grant.

    - ///

    You can use the GrantId in a ListGrants, RetireGrant, or RevokeGrant operation.

    - #[serde(rename = "GrantId")] - #[serde(default)] - pub grant_id: std::option::Option, -} -impl std::fmt::Debug for CreateGrantOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateGrantOutputBody"); - formatter.field("grant_token", &self.grant_token); - formatter.field("grant_id", &self.grant_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateKeyOutputBody { - ///

    Metadata associated with the CMK.

    - #[serde(rename = "KeyMetadata")] - #[serde(default)] - pub key_metadata: std::option::Option, -} -impl std::fmt::Debug for CreateKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateKeyOutputBody"); - formatter.field("key_metadata", &self.key_metadata); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DecryptOutputBody { - ///

    The Amazon Resource Name (key ARN) of the CMK that was used to decrypt the ciphertext.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "Plaintext")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub plaintext: std::option::Option, - ///

    The encryption algorithm that was used to decrypt the ciphertext.

    - #[serde(rename = "EncryptionAlgorithm")] - #[serde(default)] - pub encryption_algorithm: std::option::Option, -} -impl std::fmt::Debug for DecryptOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DecryptOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("plaintext", &"*** Sensitive Data Redacted ***"); - formatter.field("encryption_algorithm", &self.encryption_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCustomKeyStoresOutputBody { - ///

    Contains metadata about each custom key store.

    - #[serde(rename = "CustomKeyStores")] - #[serde(default)] - pub custom_key_stores: - std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for DescribeCustomKeyStoresOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCustomKeyStoresOutputBody"); - formatter.field("custom_key_stores", &self.custom_key_stores); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeKeyOutputBody { - ///

    Metadata associated with the key.

    - #[serde(rename = "KeyMetadata")] - #[serde(default)] - pub key_metadata: std::option::Option, -} -impl std::fmt::Debug for DescribeKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeKeyOutputBody"); - formatter.field("key_metadata", &self.key_metadata); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EncryptOutputBody { - ///

    The encrypted plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "CiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub ciphertext_blob: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that was used to encrypt the plaintext.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The encryption algorithm that was used to encrypt the plaintext.

    - #[serde(rename = "EncryptionAlgorithm")] - #[serde(default)] - pub encryption_algorithm: std::option::Option, -} -impl std::fmt::Debug for EncryptOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EncryptOutputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("key_id", &self.key_id); - formatter.field("encryption_algorithm", &self.encryption_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyOutputBody { - ///

    The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "CiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub ciphertext_blob: std::option::Option, - ///

    The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of - /// KMS. Then, remove it from memory as soon as possible.

    - #[serde(rename = "Plaintext")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub plaintext: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, -} -impl std::fmt::Debug for GenerateDataKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyOutputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("plaintext", &"*** Sensitive Data Redacted ***"); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyPairOutputBody { - ///

    The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "PrivateKeyCiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub private_key_ciphertext_blob: std::option::Option, - ///

    The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "PrivateKeyPlaintext")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub private_key_plaintext: std::option::Option, - ///

    The public key (in plaintext).

    - #[serde(rename = "PublicKey")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub public_key: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The type of data key pair that was generated.

    - #[serde(rename = "KeyPairSpec")] - #[serde(default)] - pub key_pair_spec: std::option::Option, -} -impl std::fmt::Debug for GenerateDataKeyPairOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyPairOutputBody"); - formatter.field( - "private_key_ciphertext_blob", - &self.private_key_ciphertext_blob, - ); - formatter.field("private_key_plaintext", &"*** Sensitive Data Redacted ***"); - formatter.field("public_key", &self.public_key); - formatter.field("key_id", &self.key_id); - formatter.field("key_pair_spec", &self.key_pair_spec); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyPairWithoutPlaintextOutputBody { - ///

    The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "PrivateKeyCiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub private_key_ciphertext_blob: std::option::Option, - ///

    The public key (in plaintext).

    - #[serde(rename = "PublicKey")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub public_key: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The type of data key pair that was generated.

    - #[serde(rename = "KeyPairSpec")] - #[serde(default)] - pub key_pair_spec: std::option::Option, -} -impl std::fmt::Debug for GenerateDataKeyPairWithoutPlaintextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyPairWithoutPlaintextOutputBody"); - formatter.field( - "private_key_ciphertext_blob", - &self.private_key_ciphertext_blob, - ); - formatter.field("public_key", &self.public_key); - formatter.field("key_id", &self.key_id); - formatter.field("key_pair_spec", &self.key_pair_spec); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateDataKeyWithoutPlaintextOutputBody { - ///

    The encrypted data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "CiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub ciphertext_blob: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, -} -impl std::fmt::Debug for GenerateDataKeyWithoutPlaintextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateDataKeyWithoutPlaintextOutputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("key_id", &self.key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GenerateRandomOutputBody { - ///

    The random byte string. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "Plaintext")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub plaintext: std::option::Option, -} -impl std::fmt::Debug for GenerateRandomOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GenerateRandomOutputBody"); - formatter.field("plaintext", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetKeyPolicyOutputBody { - ///

    A key policy document in JSON format.

    - #[serde(rename = "Policy")] - #[serde(default)] - pub policy: std::option::Option, -} -impl std::fmt::Debug for GetKeyPolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetKeyPolicyOutputBody"); - formatter.field("policy", &self.policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetKeyRotationStatusOutputBody { - ///

    A Boolean value that specifies whether key rotation is enabled.

    - #[serde(rename = "KeyRotationEnabled")] - #[serde(default)] - pub key_rotation_enabled: bool, -} -impl std::fmt::Debug for GetKeyRotationStatusOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetKeyRotationStatusOutputBody"); - formatter.field("key_rotation_enabled", &self.key_rotation_enabled); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersForImportOutputBody { - ///

    The Amazon Resource Name (key ARN) of the CMK to use in a subsequent ImportKeyMaterial - /// request. This is the same CMK specified in the GetParametersForImport - /// request.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The import token to send in a subsequent ImportKeyMaterial - /// request.

    - #[serde(rename = "ImportToken")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub import_token: std::option::Option, - ///

    The public key to use to encrypt the key material before importing it with ImportKeyMaterial.

    - #[serde(rename = "PublicKey")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub public_key: std::option::Option, - ///

    The time at which the import token and public key are no longer valid. After this time, - /// you cannot use them to make an ImportKeyMaterial request and you must send - /// another GetParametersForImport request to get new ones.

    - #[serde(rename = "ParametersValidTo")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub parameters_valid_to: std::option::Option, -} -impl std::fmt::Debug for GetParametersForImportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersForImportOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("import_token", &self.import_token); - formatter.field("public_key", &"*** Sensitive Data Redacted ***"); - formatter.field("parameters_valid_to", &self.parameters_valid_to); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPublicKeyOutputBody { - ///

    The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The exported public key.

    - ///

    The value is a DER-encoded X.509 public key, also known as - /// SubjectPublicKeyInfo (SPKI), as defined in RFC 5280. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - ///

    - #[serde(rename = "PublicKey")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub public_key: std::option::Option, - ///

    The type of the of the public key that was downloaded.

    - #[serde(rename = "CustomerMasterKeySpec")] - #[serde(default)] - pub customer_master_key_spec: std::option::Option, - ///

    The permitted use of the public key. Valid values are ENCRYPT_DECRYPT or - /// SIGN_VERIFY.

    - ///

    This information is critical. If a public key with SIGN_VERIFY key usage - /// encrypts data outside of AWS KMS, the ciphertext cannot be decrypted.

    - #[serde(rename = "KeyUsage")] - #[serde(default)] - pub key_usage: std::option::Option, - ///

    The encryption algorithms that AWS KMS supports for this key.

    - ///

    This information is critical. If a public key encrypts data outside of AWS KMS by using an - /// unsupported encryption algorithm, the ciphertext cannot be decrypted.

    - ///

    This field appears in the response only when the KeyUsage of the public key - /// is ENCRYPT_DECRYPT.

    - #[serde(rename = "EncryptionAlgorithms")] - #[serde(default)] - pub encryption_algorithms: - std::option::Option>, - ///

    The signing algorithms that AWS KMS supports for this key.

    - ///

    This field appears in the response only when the KeyUsage of the public key - /// is SIGN_VERIFY.

    - #[serde(rename = "SigningAlgorithms")] - #[serde(default)] - pub signing_algorithms: std::option::Option>, -} -impl std::fmt::Debug for GetPublicKeyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPublicKeyOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("public_key", &self.public_key); - formatter.field("customer_master_key_spec", &self.customer_master_key_spec); - formatter.field("key_usage", &self.key_usage); - formatter.field("encryption_algorithms", &self.encryption_algorithms); - formatter.field("signing_algorithms", &self.signing_algorithms); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAliasesOutputBody { - ///

    A list of aliases.

    - #[serde(rename = "Aliases")] - #[serde(default)] - pub aliases: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListAliasesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAliasesOutputBody"); - formatter.field("aliases", &self.aliases); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListGrantsOutputBody { - ///

    A list of grants.

    - #[serde(rename = "Grants")] - #[serde(default)] - pub grants: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListGrantsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListGrantsOutputBody"); - formatter.field("grants", &self.grants); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListKeyPoliciesOutputBody { - ///

    A list of key policy names. The only valid value is default.

    - #[serde(rename = "PolicyNames")] - #[serde(default)] - pub policy_names: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListKeyPoliciesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListKeyPoliciesOutputBody"); - formatter.field("policy_names", &self.policy_names); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListKeysOutputBody { - ///

    A list of customer master keys (CMKs).

    - #[serde(rename = "Keys")] - #[serde(default)] - pub keys: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListKeysOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListKeysOutputBody"); - formatter.field("keys", &self.keys); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceTagsOutputBody { - ///

    A list of tags. Each tag consists of a tag key and a tag value.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - ///

    Do not assume or infer any information from this value.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListResourceTagsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceTagsOutputBody"); - formatter.field("tags", &self.tags); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListRetirableGrantsOutputBody { - ///

    A list of grants.

    - #[serde(rename = "Grants")] - #[serde(default)] - pub grants: std::option::Option>, - ///

    When Truncated is true, this element is present and contains the - /// value to use for the Marker parameter in a subsequent request.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A flag that indicates whether there are more items in the list. When this - /// value is true, the list in this response is truncated. To get more items, pass the value of - /// the NextMarker element in thisresponse to the Marker parameter in a - /// subsequent request.

    - #[serde(rename = "Truncated")] - #[serde(default)] - pub truncated: bool, -} -impl std::fmt::Debug for ListRetirableGrantsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListRetirableGrantsOutputBody"); - formatter.field("grants", &self.grants); - formatter.field("next_marker", &self.next_marker); - formatter.field("truncated", &self.truncated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ReEncryptOutputBody { - ///

    The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "CiphertextBlob")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub ciphertext_blob: std::option::Option, - ///

    Unique identifier of the CMK used to originally encrypt the data.

    - #[serde(rename = "SourceKeyId")] - #[serde(default)] - pub source_key_id: std::option::Option, - ///

    The Amazon Resource Name (key ARN) of the CMK that was used to reencrypt the data.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The encryption algorithm that was used to decrypt the ciphertext before it was - /// reencrypted.

    - #[serde(rename = "SourceEncryptionAlgorithm")] - #[serde(default)] - pub source_encryption_algorithm: std::option::Option, - ///

    The encryption algorithm that was used to reencrypt the data.

    - #[serde(rename = "DestinationEncryptionAlgorithm")] - #[serde(default)] - pub destination_encryption_algorithm: - std::option::Option, -} -impl std::fmt::Debug for ReEncryptOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReEncryptOutputBody"); - formatter.field("ciphertext_blob", &self.ciphertext_blob); - formatter.field("source_key_id", &self.source_key_id); - formatter.field("key_id", &self.key_id); - formatter.field( - "source_encryption_algorithm", - &self.source_encryption_algorithm, - ); - formatter.field( - "destination_encryption_algorithm", - &self.destination_encryption_algorithm, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ScheduleKeyDeletionOutputBody { - ///

    The Amazon Resource Name (key ARN) of the CMK whose deletion is scheduled.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The date and time after which AWS KMS deletes the customer master key (CMK).

    - #[serde(rename = "DeletionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub deletion_date: std::option::Option, -} -impl std::fmt::Debug for ScheduleKeyDeletionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ScheduleKeyDeletionOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("deletion_date", &self.deletion_date); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SignOutputBody { - ///

    The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the - /// message.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    The cryptographic signature that was generated for the message.

    - ///
      - ///
    • - ///

      When used with the supported RSA signing algorithms, the encoding of this value is - /// defined by PKCS #1 in RFC - /// 8017.

      - ///
    • - ///
    • - ///

      When used with the ECDSA_SHA_256, ECDSA_SHA_384, or - /// ECDSA_SHA_512 signing algorithms, this value is a DER-encoded object as - /// defined by ANS X9.62–2005 and RFC 3279 Section 2.2.3. - /// This is the most commonly used signature format and is appropriate for most uses. - ///

      - ///
    • - ///
    - ///

    When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

    - #[serde(rename = "Signature")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub signature: std::option::Option, - ///

    The signing algorithm that was used to sign the message.

    - #[serde(rename = "SigningAlgorithm")] - #[serde(default)] - pub signing_algorithm: std::option::Option, -} -impl std::fmt::Debug for SignOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SignOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("signature", &self.signature); - formatter.field("signing_algorithm", &self.signing_algorithm); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct VerifyOutputBody { - ///

    The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.

    - #[serde(rename = "KeyId")] - #[serde(default)] - pub key_id: std::option::Option, - ///

    A Boolean value that indicates whether the signature was verified. A value of - /// True indicates that the Signature was produced by signing the - /// Message with the specified KeyID and - /// SigningAlgorithm. If the signature is not verified, the Verify - /// operation fails with a KMSInvalidSignatureException exception.

    - #[serde(rename = "SignatureValid")] - #[serde(default)] - pub signature_valid: bool, - ///

    The signing algorithm that was used to verify the signature.

    - #[serde(rename = "SigningAlgorithm")] - #[serde(default)] - pub signing_algorithm: std::option::Option, -} -impl std::fmt::Debug for VerifyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VerifyOutputBody"); - formatter.field("key_id", &self.key_id); - formatter.field("signature_valid", &self.signature_valid); - formatter.field("signing_algorithm", &self.signing_algorithm); - formatter.finish() - } -} diff --git a/sdk/kms/tests/integration.rs b/sdk/kms/tests/integration.rs index 434dae8af55c..cb9a4cf2a80d 100644 --- a/sdk/kms/tests/integration.rs +++ b/sdk/kms/tests/integration.rs @@ -10,7 +10,6 @@ use aws_hyper::{Client, SdkError}; use aws_sdk_kms as kms; use http::header::AUTHORIZATION; use http::Uri; -use kms::error::GenerateRandomErrorKind; use kms::operation::GenerateRandom; use kms::{Config, Region}; use smithy_http::body::SdkBody; @@ -191,10 +190,7 @@ async fn generate_random_keystore_not_found() { SdkError::ServiceError { err, .. } => err, other => panic!("Incorrect error received: {:}", other), }; - assert!(matches!( - inner.kind, - GenerateRandomErrorKind::CustomKeyStoreNotFoundError(_) - )); + assert!(inner.is_custom_key_store_not_found_exception()); assert_eq!( inner.request_id(), Some("bfe81a0a-9a08-4e71-9910-cdb5ab6ea3b6") diff --git a/sdk/lambda/Cargo.toml b/sdk/lambda/Cargo.toml index 5f3ac2f90254..26aad655656c 100644 --- a/sdk/lambda/Cargo.toml +++ b/sdk/lambda/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-lambda" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Lambda\n

    \n Overview\n

    \n

    This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional\n information. For the service overview, see What is\n AWS Lambda, and for information about how the service works, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.http] version = "0.2" [dependencies.aws-http] @@ -31,9 +28,6 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/lambda/src/aws_json_errors.rs b/sdk/lambda/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/lambda/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/lambda/src/blob_serde.rs b/sdk/lambda/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/lambda/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/lambda/src/error.rs b/sdk/lambda/src/error.rs index 2a88e23e05e9..e7f810d9b719 100644 --- a/sdk/lambda/src/error.rs +++ b/sdk/lambda/src/error.rs @@ -8,26 +8,32 @@ pub struct AddLayerVersionPermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddLayerVersionPermissionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PolicyLengthExceededError(crate::error::PolicyLengthExceededError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PolicyLengthExceededException(crate::error::PolicyLengthExceededException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddLayerVersionPermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddLayerVersionPermissionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::PolicyLengthExceededError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::ServiceError(_inner) => _inner.fmt(f), - AddLayerVersionPermissionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + AddLayerVersionPermissionErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + AddLayerVersionPermissionErrorKind::PolicyLengthExceededException(_inner) => { + _inner.fmt(f) + } + AddLayerVersionPermissionErrorKind::PreconditionFailedException(_inner) => { + _inner.fmt(f) + } + AddLayerVersionPermissionErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + AddLayerVersionPermissionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + AddLayerVersionPermissionErrorKind::ServiceException(_inner) => _inner.fmt(f), + AddLayerVersionPermissionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), AddLayerVersionPermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -76,59 +82,63 @@ impl AddLayerVersionPermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::InvalidParameterValueError(_) + AddLayerVersionPermissionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_policy_length_exceeded_error(&self) -> bool { + pub fn is_policy_length_exceeded_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::PolicyLengthExceededError(_) + AddLayerVersionPermissionErrorKind::PolicyLengthExceededException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::PreconditionFailedError(_) + AddLayerVersionPermissionErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::ResourceConflictError(_) + AddLayerVersionPermissionErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::ResourceNotFoundError(_) + AddLayerVersionPermissionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::ServiceError(_) + AddLayerVersionPermissionErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - AddLayerVersionPermissionErrorKind::TooManyRequestsError(_) + AddLayerVersionPermissionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for AddLayerVersionPermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddLayerVersionPermissionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::PolicyLengthExceededError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::PreconditionFailedError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::ResourceConflictError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::ServiceError(_inner) => Some(_inner), - AddLayerVersionPermissionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + AddLayerVersionPermissionErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + AddLayerVersionPermissionErrorKind::PolicyLengthExceededException(_inner) => { + Some(_inner) + } + AddLayerVersionPermissionErrorKind::PreconditionFailedException(_inner) => Some(_inner), + AddLayerVersionPermissionErrorKind::ResourceConflictException(_inner) => Some(_inner), + AddLayerVersionPermissionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + AddLayerVersionPermissionErrorKind::ServiceException(_inner) => Some(_inner), + AddLayerVersionPermissionErrorKind::TooManyRequestsException(_inner) => Some(_inner), AddLayerVersionPermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -143,26 +153,26 @@ pub struct AddPermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddPermissionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PolicyLengthExceededError(crate::error::PolicyLengthExceededError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PolicyLengthExceededException(crate::error::PolicyLengthExceededException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddPermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddPermissionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::PolicyLengthExceededError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::ServiceError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + AddPermissionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::PolicyLengthExceededException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::PreconditionFailedException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::ServiceException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), AddPermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -211,47 +221,56 @@ impl AddPermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - AddPermissionErrorKind::InvalidParameterValueError(_) + AddPermissionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_policy_length_exceeded_error(&self) -> bool { + pub fn is_policy_length_exceeded_exception(&self) -> bool { matches!( &self.kind, - AddPermissionErrorKind::PolicyLengthExceededError(_) + AddPermissionErrorKind::PolicyLengthExceededException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - AddPermissionErrorKind::PreconditionFailedError(_) + AddPermissionErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + AddPermissionErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + AddPermissionErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, AddPermissionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + AddPermissionErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for AddPermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddPermissionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - AddPermissionErrorKind::PolicyLengthExceededError(_inner) => Some(_inner), - AddPermissionErrorKind::PreconditionFailedError(_inner) => Some(_inner), - AddPermissionErrorKind::ResourceConflictError(_inner) => Some(_inner), - AddPermissionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - AddPermissionErrorKind::ServiceError(_inner) => Some(_inner), - AddPermissionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + AddPermissionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + AddPermissionErrorKind::PolicyLengthExceededException(_inner) => Some(_inner), + AddPermissionErrorKind::PreconditionFailedException(_inner) => Some(_inner), + AddPermissionErrorKind::ResourceConflictException(_inner) => Some(_inner), + AddPermissionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + AddPermissionErrorKind::ServiceException(_inner) => Some(_inner), + AddPermissionErrorKind::TooManyRequestsException(_inner) => Some(_inner), AddPermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -266,22 +285,22 @@ pub struct CreateAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateAliasErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateAliasErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::ServiceError(_inner) => _inner.fmt(f), - CreateAliasErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateAliasErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::ServiceException(_inner) => _inner.fmt(f), + CreateAliasErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -330,33 +349,42 @@ impl CreateAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - CreateAliasErrorKind::InvalidParameterValueError(_) + CreateAliasErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, CreateAliasErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateAliasErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateAliasErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for CreateAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateAliasErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - CreateAliasErrorKind::ResourceConflictError(_inner) => Some(_inner), - CreateAliasErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CreateAliasErrorKind::ServiceError(_inner) => Some(_inner), - CreateAliasErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateAliasErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + CreateAliasErrorKind::ResourceConflictException(_inner) => Some(_inner), + CreateAliasErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateAliasErrorKind::ServiceException(_inner) => Some(_inner), + CreateAliasErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -371,16 +399,18 @@ pub struct CreateCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - CreateCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), + CreateCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + CreateCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), CreateCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -429,24 +459,26 @@ impl CreateCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - CreateCodeSigningConfigErrorKind::InvalidParameterValueError(_) + CreateCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - CreateCodeSigningConfigErrorKind::ServiceError(_) + CreateCodeSigningConfigErrorKind::ServiceException(_) ) } } impl std::error::Error for CreateCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - CreateCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), + CreateCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + CreateCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), CreateCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -461,22 +493,24 @@ pub struct CreateEventSourceMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateEventSourceMappingErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateEventSourceMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - CreateEventSourceMappingErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - CreateEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CreateEventSourceMappingErrorKind::ServiceError(_inner) => _inner.fmt(f), - CreateEventSourceMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + CreateEventSourceMappingErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + CreateEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateEventSourceMappingErrorKind::ServiceException(_inner) => _inner.fmt(f), + CreateEventSourceMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateEventSourceMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -525,45 +559,47 @@ impl CreateEventSourceMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - CreateEventSourceMappingErrorKind::InvalidParameterValueError(_) + CreateEventSourceMappingErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - CreateEventSourceMappingErrorKind::ResourceConflictError(_) + CreateEventSourceMappingErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateEventSourceMappingErrorKind::ResourceNotFoundError(_) + CreateEventSourceMappingErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - CreateEventSourceMappingErrorKind::ServiceError(_) + CreateEventSourceMappingErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateEventSourceMappingErrorKind::TooManyRequestsError(_) + CreateEventSourceMappingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateEventSourceMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - CreateEventSourceMappingErrorKind::ResourceConflictError(_inner) => Some(_inner), - CreateEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CreateEventSourceMappingErrorKind::ServiceError(_inner) => Some(_inner), - CreateEventSourceMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + CreateEventSourceMappingErrorKind::ResourceConflictException(_inner) => Some(_inner), + CreateEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateEventSourceMappingErrorKind::ServiceException(_inner) => Some(_inner), + CreateEventSourceMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateEventSourceMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -578,30 +614,30 @@ pub struct CreateFunctionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateFunctionErrorKind { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - CodeStorageExceededError(crate::error::CodeStorageExceededError), - CodeVerificationFailedError(crate::error::CodeVerificationFailedError), - InvalidCodeSignatureError(crate::error::InvalidCodeSignatureError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + CodeStorageExceededException(crate::error::CodeStorageExceededException), + CodeVerificationFailedException(crate::error::CodeVerificationFailedException), + InvalidCodeSignatureException(crate::error::InvalidCodeSignatureException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateFunctionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateFunctionErrorKind::CodeSigningConfigNotFoundError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::CodeStorageExceededError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::CodeVerificationFailedError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::InvalidCodeSignatureError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::ServiceError(_inner) => _inner.fmt(f), - CreateFunctionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::CodeSigningConfigNotFoundException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::CodeStorageExceededException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::CodeVerificationFailedException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::InvalidCodeSignatureException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::ServiceException(_inner) => _inner.fmt(f), + CreateFunctionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -650,67 +686,70 @@ impl CreateFunctionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_signing_config_not_found_error(&self) -> bool { + pub fn is_code_signing_config_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::CodeSigningConfigNotFoundError(_) + CreateFunctionErrorKind::CodeSigningConfigNotFoundException(_) ) } - pub fn is_code_storage_exceeded_error(&self) -> bool { + pub fn is_code_storage_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::CodeStorageExceededError(_) + CreateFunctionErrorKind::CodeStorageExceededException(_) ) } - pub fn is_code_verification_failed_error(&self) -> bool { + pub fn is_code_verification_failed_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::CodeVerificationFailedError(_) + CreateFunctionErrorKind::CodeVerificationFailedException(_) ) } - pub fn is_invalid_code_signature_error(&self) -> bool { + pub fn is_invalid_code_signature_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::InvalidCodeSignatureError(_) + CreateFunctionErrorKind::InvalidCodeSignatureException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::InvalidParameterValueError(_) + CreateFunctionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::ResourceConflictError(_) + CreateFunctionErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateFunctionErrorKind::ResourceNotFoundError(_) + CreateFunctionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, CreateFunctionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, CreateFunctionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateFunctionErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateFunctionErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for CreateFunctionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateFunctionErrorKind::CodeSigningConfigNotFoundError(_inner) => Some(_inner), - CreateFunctionErrorKind::CodeStorageExceededError(_inner) => Some(_inner), - CreateFunctionErrorKind::CodeVerificationFailedError(_inner) => Some(_inner), - CreateFunctionErrorKind::InvalidCodeSignatureError(_inner) => Some(_inner), - CreateFunctionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - CreateFunctionErrorKind::ResourceConflictError(_inner) => Some(_inner), - CreateFunctionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CreateFunctionErrorKind::ServiceError(_inner) => Some(_inner), - CreateFunctionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateFunctionErrorKind::CodeSigningConfigNotFoundException(_inner) => Some(_inner), + CreateFunctionErrorKind::CodeStorageExceededException(_inner) => Some(_inner), + CreateFunctionErrorKind::CodeVerificationFailedException(_inner) => Some(_inner), + CreateFunctionErrorKind::InvalidCodeSignatureException(_inner) => Some(_inner), + CreateFunctionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + CreateFunctionErrorKind::ResourceConflictException(_inner) => Some(_inner), + CreateFunctionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CreateFunctionErrorKind::ServiceException(_inner) => Some(_inner), + CreateFunctionErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -725,20 +764,20 @@ pub struct DeleteAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteAliasErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteAliasErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteAliasErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteAliasErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -787,29 +826,35 @@ impl DeleteAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteAliasErrorKind::InvalidParameterValueError(_) + DeleteAliasErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAliasErrorKind::ResourceConflictException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, DeleteAliasErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteAliasErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteAliasErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteAliasErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - DeleteAliasErrorKind::ResourceConflictError(_inner) => Some(_inner), - DeleteAliasErrorKind::ServiceError(_inner) => Some(_inner), - DeleteAliasErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteAliasErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteAliasErrorKind::ResourceConflictException(_inner) => Some(_inner), + DeleteAliasErrorKind::ServiceException(_inner) => Some(_inner), + DeleteAliasErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -824,20 +869,22 @@ pub struct DeleteCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - DeleteCodeSigningConfigErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - DeleteCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), + DeleteCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + DeleteCodeSigningConfigErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + DeleteCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), DeleteCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -886,38 +933,40 @@ impl DeleteCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteCodeSigningConfigErrorKind::InvalidParameterValueError(_) + DeleteCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteCodeSigningConfigErrorKind::ResourceConflictError(_) + DeleteCodeSigningConfigErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteCodeSigningConfigErrorKind::ResourceNotFoundError(_) + DeleteCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteCodeSigningConfigErrorKind::ServiceError(_) + DeleteCodeSigningConfigErrorKind::ServiceException(_) ) } } impl std::error::Error for DeleteCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - DeleteCodeSigningConfigErrorKind::ResourceConflictError(_inner) => Some(_inner), - DeleteCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), + DeleteCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DeleteCodeSigningConfigErrorKind::ResourceConflictException(_inner) => Some(_inner), + DeleteCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), DeleteCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -932,22 +981,24 @@ pub struct DeleteEventSourceMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteEventSourceMappingErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteEventSourceMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - DeleteEventSourceMappingErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DeleteEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteEventSourceMappingErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteEventSourceMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + DeleteEventSourceMappingErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteEventSourceMappingErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteEventSourceMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteEventSourceMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -996,45 +1047,47 @@ impl DeleteEventSourceMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteEventSourceMappingErrorKind::InvalidParameterValueError(_) + DeleteEventSourceMappingErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - DeleteEventSourceMappingErrorKind::ResourceInUseError(_) + DeleteEventSourceMappingErrorKind::ResourceInUseException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteEventSourceMappingErrorKind::ResourceNotFoundError(_) + DeleteEventSourceMappingErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteEventSourceMappingErrorKind::ServiceError(_) + DeleteEventSourceMappingErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteEventSourceMappingErrorKind::TooManyRequestsError(_) + DeleteEventSourceMappingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteEventSourceMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - DeleteEventSourceMappingErrorKind::ResourceInUseError(_inner) => Some(_inner), - DeleteEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteEventSourceMappingErrorKind::ServiceError(_inner) => Some(_inner), - DeleteEventSourceMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DeleteEventSourceMappingErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteEventSourceMappingErrorKind::ServiceException(_inner) => Some(_inner), + DeleteEventSourceMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteEventSourceMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1049,22 +1102,22 @@ pub struct DeleteFunctionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteFunctionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteFunctionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteFunctionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - DeleteFunctionErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - DeleteFunctionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteFunctionErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteFunctionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteFunctionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + DeleteFunctionErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + DeleteFunctionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteFunctionErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteFunctionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1113,39 +1166,42 @@ impl DeleteFunctionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionErrorKind::InvalidParameterValueError(_) + DeleteFunctionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionErrorKind::ResourceConflictError(_) + DeleteFunctionErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionErrorKind::ResourceNotFoundError(_) + DeleteFunctionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, DeleteFunctionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, DeleteFunctionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteFunctionErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteFunctionErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteFunctionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteFunctionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - DeleteFunctionErrorKind::ResourceConflictError(_inner) => Some(_inner), - DeleteFunctionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteFunctionErrorKind::ServiceError(_inner) => Some(_inner), - DeleteFunctionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteFunctionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + DeleteFunctionErrorKind::ResourceConflictException(_inner) => Some(_inner), + DeleteFunctionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteFunctionErrorKind::ServiceException(_inner) => Some(_inner), + DeleteFunctionErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1160,32 +1216,34 @@ pub struct DeleteFunctionCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteFunctionCodeSigningConfigErrorKind { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteFunctionCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException( + _inner, + ) => _inner.fmt(f), + DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException(_inner) => { _inner.fmt(f) } - DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - DeleteFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), DeleteFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1234,56 +1292,62 @@ impl DeleteFunctionCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_signing_config_not_found_error(&self) -> bool { + pub fn is_code_signing_config_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_) + DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_) + DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictError(_) + DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_) + DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::ServiceError(_) + DeleteFunctionCodeSigningConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_) + DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteFunctionCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException( + _inner, + ) => Some(_inner), + DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException(_inner) => { Some(_inner) } - DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + DeleteFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), + DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictError(_inner) => Some(_inner), - DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), - DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), DeleteFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1298,22 +1362,24 @@ pub struct DeleteFunctionConcurrencyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteFunctionConcurrencyErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteFunctionConcurrencyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - DeleteFunctionConcurrencyErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - DeleteFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteFunctionConcurrencyErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + DeleteFunctionConcurrencyErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteFunctionConcurrencyErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteFunctionConcurrencyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1362,45 +1428,47 @@ impl DeleteFunctionConcurrencyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionConcurrencyErrorKind::InvalidParameterValueError(_) + DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionConcurrencyErrorKind::ResourceConflictError(_) + DeleteFunctionConcurrencyErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionConcurrencyErrorKind::ResourceNotFoundError(_) + DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionConcurrencyErrorKind::ServiceError(_) + DeleteFunctionConcurrencyErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionConcurrencyErrorKind::TooManyRequestsError(_) + DeleteFunctionConcurrencyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteFunctionConcurrencyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - DeleteFunctionConcurrencyErrorKind::ResourceConflictError(_inner) => Some(_inner), - DeleteFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteFunctionConcurrencyErrorKind::ServiceError(_inner) => Some(_inner), - DeleteFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DeleteFunctionConcurrencyErrorKind::ResourceConflictException(_inner) => Some(_inner), + DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteFunctionConcurrencyErrorKind::ServiceException(_inner) => Some(_inner), + DeleteFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteFunctionConcurrencyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1415,24 +1483,26 @@ pub struct DeleteFunctionEventInvokeConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteFunctionEventInvokeConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteFunctionEventInvokeConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => { + DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DeleteFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - DeleteFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), DeleteFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1481,40 +1551,44 @@ impl DeleteFunctionEventInvokeConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_) + DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_) + DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionEventInvokeConfigErrorKind::ServiceError(_) + DeleteFunctionEventInvokeConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_) + DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteFunctionEventInvokeConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + DeleteFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => Some(_inner), + DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => Some(_inner), - DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), DeleteFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1529,16 +1603,16 @@ pub struct DeleteLayerVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLayerVersionErrorKind { - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLayerVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLayerVersionErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteLayerVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteLayerVersionErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteLayerVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteLayerVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1587,21 +1661,21 @@ impl DeleteLayerVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, DeleteLayerVersionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, DeleteLayerVersionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteLayerVersionErrorKind::TooManyRequestsError(_) + DeleteLayerVersionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteLayerVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLayerVersionErrorKind::ServiceError(_inner) => Some(_inner), - DeleteLayerVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteLayerVersionErrorKind::ServiceException(_inner) => Some(_inner), + DeleteLayerVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteLayerVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1616,28 +1690,28 @@ pub struct DeleteProvisionedConcurrencyConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteProvisionedConcurrencyConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteProvisionedConcurrencyConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_inner) => { _inner.fmt(f) } - DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - DeleteProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } DeleteProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1691,51 +1765,51 @@ impl DeleteProvisionedConcurrencyConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_) + DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_) + DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_) + DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - DeleteProvisionedConcurrencyConfigErrorKind::ServiceError(_) + DeleteProvisionedConcurrencyConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_) + DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteProvisionedConcurrencyConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_inner) => { Some(_inner) } - DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - DeleteProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => Some(_inner), - DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => { + DeleteProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => Some(_inner), + DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } DeleteProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1752,16 +1826,16 @@ pub struct GetAccountSettingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountSettingsErrorKind { - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountSettingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountSettingsErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetAccountSettingsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetAccountSettingsErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetAccountSettingsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetAccountSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1810,21 +1884,21 @@ impl GetAccountSettingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetAccountSettingsErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, GetAccountSettingsErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetAccountSettingsErrorKind::TooManyRequestsError(_) + GetAccountSettingsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetAccountSettingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountSettingsErrorKind::ServiceError(_inner) => Some(_inner), - GetAccountSettingsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetAccountSettingsErrorKind::ServiceException(_inner) => Some(_inner), + GetAccountSettingsErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetAccountSettingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1839,20 +1913,20 @@ pub struct GetAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAliasErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAliasErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetAliasErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetAliasErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetAliasErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetAliasErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetAliasErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetAliasErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetAliasErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1901,26 +1975,29 @@ impl GetAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { - matches!(&self.kind, GetAliasErrorKind::InvalidParameterValueError(_)) + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + GetAliasErrorKind::InvalidParameterValueException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetAliasErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, GetAliasErrorKind::ResourceNotFoundException(_)) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetAliasErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, GetAliasErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetAliasErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetAliasErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for GetAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAliasErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetAliasErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetAliasErrorKind::ServiceError(_inner) => Some(_inner), - GetAliasErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetAliasErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetAliasErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetAliasErrorKind::ServiceException(_inner) => Some(_inner), + GetAliasErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1935,18 +2012,18 @@ pub struct GetCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), + GetCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), GetCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1995,28 +2072,31 @@ impl GetCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetCodeSigningConfigErrorKind::InvalidParameterValueError(_) + GetCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetCodeSigningConfigErrorKind::ResourceNotFoundError(_) + GetCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetCodeSigningConfigErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + GetCodeSigningConfigErrorKind::ServiceException(_) + ) } } impl std::error::Error for GetCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), + GetCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), GetCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2031,20 +2111,20 @@ pub struct GetEventSourceMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetEventSourceMappingErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetEventSourceMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetEventSourceMappingErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetEventSourceMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetEventSourceMappingErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetEventSourceMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetEventSourceMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2093,35 +2173,38 @@ impl GetEventSourceMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetEventSourceMappingErrorKind::InvalidParameterValueError(_) + GetEventSourceMappingErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetEventSourceMappingErrorKind::ResourceNotFoundError(_) + GetEventSourceMappingErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetEventSourceMappingErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + GetEventSourceMappingErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetEventSourceMappingErrorKind::TooManyRequestsError(_) + GetEventSourceMappingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetEventSourceMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetEventSourceMappingErrorKind::ServiceError(_inner) => Some(_inner), - GetEventSourceMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetEventSourceMappingErrorKind::ServiceException(_inner) => Some(_inner), + GetEventSourceMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetEventSourceMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2136,20 +2219,20 @@ pub struct GetFunctionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFunctionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFunctionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFunctionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetFunctionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetFunctionErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetFunctionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetFunctionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetFunctionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetFunctionErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetFunctionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2198,29 +2281,35 @@ impl GetFunctionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetFunctionErrorKind::InvalidParameterValueError(_) + GetFunctionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetFunctionErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetFunctionErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetFunctionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, GetFunctionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetFunctionErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetFunctionErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for GetFunctionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFunctionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetFunctionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetFunctionErrorKind::ServiceError(_inner) => Some(_inner), - GetFunctionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetFunctionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetFunctionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetFunctionErrorKind::ServiceException(_inner) => Some(_inner), + GetFunctionErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2235,22 +2324,26 @@ pub struct GetFunctionCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFunctionCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFunctionCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + GetFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), GetFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2299,40 +2392,42 @@ impl GetFunctionCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_) + GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_) + GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - GetFunctionCodeSigningConfigErrorKind::ServiceError(_) + GetFunctionCodeSigningConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_) + GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetFunctionCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), - GetFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), + GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2347,20 +2442,22 @@ pub struct GetFunctionConcurrencyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFunctionConcurrencyErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFunctionConcurrencyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetFunctionConcurrencyErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + GetFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetFunctionConcurrencyErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetFunctionConcurrencyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2409,35 +2506,38 @@ impl GetFunctionConcurrencyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConcurrencyErrorKind::InvalidParameterValueError(_) + GetFunctionConcurrencyErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConcurrencyErrorKind::ResourceNotFoundError(_) + GetFunctionConcurrencyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetFunctionConcurrencyErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + GetFunctionConcurrencyErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConcurrencyErrorKind::TooManyRequestsError(_) + GetFunctionConcurrencyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetFunctionConcurrencyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetFunctionConcurrencyErrorKind::ServiceError(_inner) => Some(_inner), - GetFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetFunctionConcurrencyErrorKind::ServiceException(_inner) => Some(_inner), + GetFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetFunctionConcurrencyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2452,20 +2552,22 @@ pub struct GetFunctionConfigurationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFunctionConfigurationErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFunctionConfigurationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFunctionConfigurationErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetFunctionConfigurationErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetFunctionConfigurationErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetFunctionConfigurationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetFunctionConfigurationErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + GetFunctionConfigurationErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetFunctionConfigurationErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetFunctionConfigurationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetFunctionConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2514,38 +2616,40 @@ impl GetFunctionConfigurationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConfigurationErrorKind::InvalidParameterValueError(_) + GetFunctionConfigurationErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConfigurationErrorKind::ResourceNotFoundError(_) + GetFunctionConfigurationErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConfigurationErrorKind::ServiceError(_) + GetFunctionConfigurationErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetFunctionConfigurationErrorKind::TooManyRequestsError(_) + GetFunctionConfigurationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetFunctionConfigurationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFunctionConfigurationErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetFunctionConfigurationErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetFunctionConfigurationErrorKind::ServiceError(_inner) => Some(_inner), - GetFunctionConfigurationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetFunctionConfigurationErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + GetFunctionConfigurationErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetFunctionConfigurationErrorKind::ServiceException(_inner) => Some(_inner), + GetFunctionConfigurationErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetFunctionConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2560,22 +2664,26 @@ pub struct GetFunctionEventInvokeConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFunctionEventInvokeConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFunctionEventInvokeConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + GetFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), GetFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2624,40 +2732,42 @@ impl GetFunctionEventInvokeConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_) + GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_) + GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - GetFunctionEventInvokeConfigErrorKind::ServiceError(_) + GetFunctionEventInvokeConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_) + GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetFunctionEventInvokeConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => Some(_inner), - GetFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + GetFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => Some(_inner), + GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2672,20 +2782,20 @@ pub struct GetLayerVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLayerVersionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLayerVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLayerVersionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetLayerVersionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLayerVersionErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetLayerVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetLayerVersionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetLayerVersionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLayerVersionErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetLayerVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetLayerVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2734,35 +2844,35 @@ impl GetLayerVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionErrorKind::InvalidParameterValueError(_) + GetLayerVersionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionErrorKind::ResourceNotFoundError(_) + GetLayerVersionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetLayerVersionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, GetLayerVersionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionErrorKind::TooManyRequestsError(_) + GetLayerVersionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetLayerVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLayerVersionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetLayerVersionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLayerVersionErrorKind::ServiceError(_inner) => Some(_inner), - GetLayerVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetLayerVersionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetLayerVersionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLayerVersionErrorKind::ServiceException(_inner) => Some(_inner), + GetLayerVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetLayerVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2777,20 +2887,20 @@ pub struct GetLayerVersionByArnError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLayerVersionByArnErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLayerVersionByArnError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLayerVersionByArnErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetLayerVersionByArnErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLayerVersionByArnErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetLayerVersionByArnErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetLayerVersionByArnErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetLayerVersionByArnErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLayerVersionByArnErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetLayerVersionByArnErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetLayerVersionByArnErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2839,35 +2949,38 @@ impl GetLayerVersionByArnError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionByArnErrorKind::InvalidParameterValueError(_) + GetLayerVersionByArnErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionByArnErrorKind::ResourceNotFoundError(_) + GetLayerVersionByArnErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetLayerVersionByArnErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + GetLayerVersionByArnErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionByArnErrorKind::TooManyRequestsError(_) + GetLayerVersionByArnErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetLayerVersionByArnError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLayerVersionByArnErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetLayerVersionByArnErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLayerVersionByArnErrorKind::ServiceError(_inner) => Some(_inner), - GetLayerVersionByArnErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetLayerVersionByArnErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetLayerVersionByArnErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLayerVersionByArnErrorKind::ServiceException(_inner) => Some(_inner), + GetLayerVersionByArnErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetLayerVersionByArnErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2882,20 +2995,20 @@ pub struct GetLayerVersionPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLayerVersionPolicyErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLayerVersionPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLayerVersionPolicyErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetLayerVersionPolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetLayerVersionPolicyErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetLayerVersionPolicyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetLayerVersionPolicyErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetLayerVersionPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetLayerVersionPolicyErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetLayerVersionPolicyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetLayerVersionPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2944,35 +3057,38 @@ impl GetLayerVersionPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionPolicyErrorKind::InvalidParameterValueError(_) + GetLayerVersionPolicyErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionPolicyErrorKind::ResourceNotFoundError(_) + GetLayerVersionPolicyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetLayerVersionPolicyErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + GetLayerVersionPolicyErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetLayerVersionPolicyErrorKind::TooManyRequestsError(_) + GetLayerVersionPolicyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetLayerVersionPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLayerVersionPolicyErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetLayerVersionPolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetLayerVersionPolicyErrorKind::ServiceError(_inner) => Some(_inner), - GetLayerVersionPolicyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetLayerVersionPolicyErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetLayerVersionPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetLayerVersionPolicyErrorKind::ServiceException(_inner) => Some(_inner), + GetLayerVersionPolicyErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetLayerVersionPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2987,20 +3103,20 @@ pub struct GetPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPolicyErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPolicyErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - GetPolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetPolicyErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetPolicyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetPolicyErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + GetPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetPolicyErrorKind::ServiceException(_inner) => _inner.fmt(f), + GetPolicyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3049,29 +3165,29 @@ impl GetPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetPolicyErrorKind::InvalidParameterValueError(_) + GetPolicyErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::ResourceNotFoundException(_)) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetPolicyErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetPolicyErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for GetPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPolicyErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - GetPolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetPolicyErrorKind::ServiceError(_inner) => Some(_inner), - GetPolicyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetPolicyErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + GetPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetPolicyErrorKind::ServiceException(_inner) => Some(_inner), + GetPolicyErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3086,31 +3202,37 @@ pub struct GetProvisionedConcurrencyConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetProvisionedConcurrencyConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ProvisionedConcurrencyConfigNotFoundError( - crate::error::ProvisionedConcurrencyConfigNotFoundError, + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ProvisionedConcurrencyConfigNotFoundException( + crate::error::ProvisionedConcurrencyConfigNotFoundException, ), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetProvisionedConcurrencyConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { - _inner.fmt(f) - } - GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundError( - _inner, - ) => _inner.fmt(f), - GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => { + GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => + _inner.fmt(f) + , + GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException(_inner) => + _inner.fmt(f) + , + GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => + _inner.fmt(f) + , + GetProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => + _inner.fmt(f) + , + GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => + _inner.fmt(f) + , + GetProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => { _inner.fmt(f) } - GetProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - GetProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } } @@ -3158,50 +3280,60 @@ impl GetProvisionedConcurrencyConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_) + GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_provisioned_concurrency_config_not_found_error(&self) -> bool { + pub fn is_provisioned_concurrency_config_not_found_exception(&self) -> bool { matches!( &self.kind, - GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundError(_) + GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException( + _ + ) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_) + GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - GetProvisionedConcurrencyConfigErrorKind::ServiceError(_) + GetProvisionedConcurrencyConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_) + GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetProvisionedConcurrencyConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { - Some(_inner) + GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => + Some(_inner) + , + GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException(_inner) => + Some(_inner) + , + GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => + Some(_inner) + , + GetProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => + Some(_inner) + , + GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => + Some(_inner) + , + GetProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => { + Some(_inner.as_ref()) } - GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundError( - _inner, - ) => Some(_inner), - GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => Some(_inner), - GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), - GetProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } } @@ -3215,64 +3347,64 @@ pub struct InvokeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum InvokeErrorKind { - EC2AccessDeniedError(crate::error::EC2AccessDeniedError), - EC2ThrottledError(crate::error::EC2ThrottledError), - EC2UnexpectedError(crate::error::EC2UnexpectedError), - EFSIOError(crate::error::EFSIOError), - EFSMountConnectivityError(crate::error::EFSMountConnectivityError), - EFSMountFailureError(crate::error::EFSMountFailureError), - EFSMountTimeoutError(crate::error::EFSMountTimeoutError), - ENILimitReachedError(crate::error::ENILimitReachedError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - InvalidRequestContentError(crate::error::InvalidRequestContentError), - InvalidRuntimeError(crate::error::InvalidRuntimeError), - InvalidSecurityGroupIDError(crate::error::InvalidSecurityGroupIDError), - InvalidSubnetIDError(crate::error::InvalidSubnetIDError), - InvalidZipFileError(crate::error::InvalidZipFileError), - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KMSNotFoundError(crate::error::KMSNotFoundError), - RequestTooLargeError(crate::error::RequestTooLargeError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourceNotReadyError(crate::error::ResourceNotReadyError), - ServiceError(crate::error::ServiceError), - SubnetIPAddressLimitReachedError(crate::error::SubnetIPAddressLimitReachedError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnsupportedMediaTypeError(crate::error::UnsupportedMediaTypeError), + Ec2AccessDeniedException(crate::error::Ec2AccessDeniedException), + Ec2ThrottledException(crate::error::Ec2ThrottledException), + Ec2UnexpectedException(crate::error::Ec2UnexpectedException), + EfsioException(crate::error::EfsioException), + EfsMountConnectivityException(crate::error::EfsMountConnectivityException), + EfsMountFailureException(crate::error::EfsMountFailureException), + EfsMountTimeoutException(crate::error::EfsMountTimeoutException), + EniLimitReachedException(crate::error::EniLimitReachedException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + InvalidRequestContentException(crate::error::InvalidRequestContentException), + InvalidRuntimeException(crate::error::InvalidRuntimeException), + InvalidSecurityGroupIdException(crate::error::InvalidSecurityGroupIdException), + InvalidSubnetIdException(crate::error::InvalidSubnetIdException), + InvalidZipFileException(crate::error::InvalidZipFileException), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KmsNotFoundException(crate::error::KmsNotFoundException), + RequestTooLargeException(crate::error::RequestTooLargeException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourceNotReadyException(crate::error::ResourceNotReadyException), + ServiceException(crate::error::ServiceException), + SubnetIpAddressLimitReachedException(crate::error::SubnetIpAddressLimitReachedException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnsupportedMediaTypeException(crate::error::UnsupportedMediaTypeException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for InvokeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - InvokeErrorKind::EC2AccessDeniedError(_inner) => _inner.fmt(f), - InvokeErrorKind::EC2ThrottledError(_inner) => _inner.fmt(f), - InvokeErrorKind::EC2UnexpectedError(_inner) => _inner.fmt(f), - InvokeErrorKind::EFSIOError(_inner) => _inner.fmt(f), - InvokeErrorKind::EFSMountConnectivityError(_inner) => _inner.fmt(f), - InvokeErrorKind::EFSMountFailureError(_inner) => _inner.fmt(f), - InvokeErrorKind::EFSMountTimeoutError(_inner) => _inner.fmt(f), - InvokeErrorKind::ENILimitReachedError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidRequestContentError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidRuntimeError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidSecurityGroupIDError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidSubnetIDError(_inner) => _inner.fmt(f), - InvokeErrorKind::InvalidZipFileError(_inner) => _inner.fmt(f), - InvokeErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - InvokeErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - InvokeErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - InvokeErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - InvokeErrorKind::RequestTooLargeError(_inner) => _inner.fmt(f), - InvokeErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - InvokeErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - InvokeErrorKind::ResourceNotReadyError(_inner) => _inner.fmt(f), - InvokeErrorKind::ServiceError(_inner) => _inner.fmt(f), - InvokeErrorKind::SubnetIPAddressLimitReachedError(_inner) => _inner.fmt(f), - InvokeErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - InvokeErrorKind::UnsupportedMediaTypeError(_inner) => _inner.fmt(f), + InvokeErrorKind::Ec2AccessDeniedException(_inner) => _inner.fmt(f), + InvokeErrorKind::Ec2ThrottledException(_inner) => _inner.fmt(f), + InvokeErrorKind::Ec2UnexpectedException(_inner) => _inner.fmt(f), + InvokeErrorKind::EfsioException(_inner) => _inner.fmt(f), + InvokeErrorKind::EfsMountConnectivityException(_inner) => _inner.fmt(f), + InvokeErrorKind::EfsMountFailureException(_inner) => _inner.fmt(f), + InvokeErrorKind::EfsMountTimeoutException(_inner) => _inner.fmt(f), + InvokeErrorKind::EniLimitReachedException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidRequestContentException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidRuntimeException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidSecurityGroupIdException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidSubnetIdException(_inner) => _inner.fmt(f), + InvokeErrorKind::InvalidZipFileException(_inner) => _inner.fmt(f), + InvokeErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + InvokeErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + InvokeErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + InvokeErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + InvokeErrorKind::RequestTooLargeException(_inner) => _inner.fmt(f), + InvokeErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + InvokeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + InvokeErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f), + InvokeErrorKind::ServiceException(_inner) => _inner.fmt(f), + InvokeErrorKind::SubnetIpAddressLimitReachedException(_inner) => _inner.fmt(f), + InvokeErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + InvokeErrorKind::UnsupportedMediaTypeException(_inner) => _inner.fmt(f), InvokeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3321,117 +3453,132 @@ impl InvokeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_ec2_access_denied_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EC2AccessDeniedError(_)) + pub fn is_ec2_access_denied_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::Ec2AccessDeniedException(_)) } - pub fn is_ec2_throttled_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EC2ThrottledError(_)) + pub fn is_ec2_throttled_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::Ec2ThrottledException(_)) } - pub fn is_ec2_unexpected_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EC2UnexpectedError(_)) + pub fn is_ec2_unexpected_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::Ec2UnexpectedException(_)) } - pub fn is_efsio_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EFSIOError(_)) + pub fn is_efsio_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::EfsioException(_)) } - pub fn is_efs_mount_connectivity_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EFSMountConnectivityError(_)) + pub fn is_efs_mount_connectivity_exception(&self) -> bool { + matches!( + &self.kind, + InvokeErrorKind::EfsMountConnectivityException(_) + ) } - pub fn is_efs_mount_failure_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EFSMountFailureError(_)) + pub fn is_efs_mount_failure_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::EfsMountFailureException(_)) } - pub fn is_efs_mount_timeout_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::EFSMountTimeoutError(_)) + pub fn is_efs_mount_timeout_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::EfsMountTimeoutException(_)) } - pub fn is_eni_limit_reached_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::ENILimitReachedError(_)) + pub fn is_eni_limit_reached_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::EniLimitReachedException(_)) } - pub fn is_invalid_parameter_value_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidParameterValueError(_)) + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + InvokeErrorKind::InvalidParameterValueException(_) + ) } - pub fn is_invalid_request_content_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidRequestContentError(_)) + pub fn is_invalid_request_content_exception(&self) -> bool { + matches!( + &self.kind, + InvokeErrorKind::InvalidRequestContentException(_) + ) } - pub fn is_invalid_runtime_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidRuntimeError(_)) + pub fn is_invalid_runtime_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::InvalidRuntimeException(_)) } - pub fn is_invalid_security_group_id_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidSecurityGroupIDError(_)) + pub fn is_invalid_security_group_id_exception(&self) -> bool { + matches!( + &self.kind, + InvokeErrorKind::InvalidSecurityGroupIdException(_) + ) } - pub fn is_invalid_subnet_id_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidSubnetIDError(_)) + pub fn is_invalid_subnet_id_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::InvalidSubnetIdException(_)) } - pub fn is_invalid_zip_file_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::InvalidZipFileError(_)) + pub fn is_invalid_zip_file_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::InvalidZipFileException(_)) } - pub fn is_kms_access_denied_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::KMSAccessDeniedError(_)) + pub fn is_kms_access_denied_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::KmsAccessDeniedException(_)) } - pub fn is_kms_disabled_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::KMSDisabledError(_)) + pub fn is_kms_disabled_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::KmsDisabledException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::KmsInvalidStateException(_)) } - pub fn is_kms_not_found_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::KMSNotFoundError(_)) + pub fn is_kms_not_found_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::KmsNotFoundException(_)) } - pub fn is_request_too_large_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::RequestTooLargeError(_)) + pub fn is_request_too_large_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::RequestTooLargeException(_)) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::ResourceConflictException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::ResourceNotFoundException(_)) } - pub fn is_resource_not_ready_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::ResourceNotReadyError(_)) + pub fn is_resource_not_ready_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::ResourceNotReadyException(_)) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::ServiceException(_)) } - pub fn is_subnet_ip_address_limit_reached_error(&self) -> bool { + pub fn is_subnet_ip_address_limit_reached_exception(&self) -> bool { matches!( &self.kind, - InvokeErrorKind::SubnetIPAddressLimitReachedError(_) + InvokeErrorKind::SubnetIpAddressLimitReachedException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, InvokeErrorKind::TooManyRequestsException(_)) } - pub fn is_unsupported_media_type_error(&self) -> bool { - matches!(&self.kind, InvokeErrorKind::UnsupportedMediaTypeError(_)) + pub fn is_unsupported_media_type_exception(&self) -> bool { + matches!( + &self.kind, + InvokeErrorKind::UnsupportedMediaTypeException(_) + ) } } impl std::error::Error for InvokeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - InvokeErrorKind::EC2AccessDeniedError(_inner) => Some(_inner), - InvokeErrorKind::EC2ThrottledError(_inner) => Some(_inner), - InvokeErrorKind::EC2UnexpectedError(_inner) => Some(_inner), - InvokeErrorKind::EFSIOError(_inner) => Some(_inner), - InvokeErrorKind::EFSMountConnectivityError(_inner) => Some(_inner), - InvokeErrorKind::EFSMountFailureError(_inner) => Some(_inner), - InvokeErrorKind::EFSMountTimeoutError(_inner) => Some(_inner), - InvokeErrorKind::ENILimitReachedError(_inner) => Some(_inner), - InvokeErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - InvokeErrorKind::InvalidRequestContentError(_inner) => Some(_inner), - InvokeErrorKind::InvalidRuntimeError(_inner) => Some(_inner), - InvokeErrorKind::InvalidSecurityGroupIDError(_inner) => Some(_inner), - InvokeErrorKind::InvalidSubnetIDError(_inner) => Some(_inner), - InvokeErrorKind::InvalidZipFileError(_inner) => Some(_inner), - InvokeErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - InvokeErrorKind::KMSDisabledError(_inner) => Some(_inner), - InvokeErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - InvokeErrorKind::KMSNotFoundError(_inner) => Some(_inner), - InvokeErrorKind::RequestTooLargeError(_inner) => Some(_inner), - InvokeErrorKind::ResourceConflictError(_inner) => Some(_inner), - InvokeErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - InvokeErrorKind::ResourceNotReadyError(_inner) => Some(_inner), - InvokeErrorKind::ServiceError(_inner) => Some(_inner), - InvokeErrorKind::SubnetIPAddressLimitReachedError(_inner) => Some(_inner), - InvokeErrorKind::TooManyRequestsError(_inner) => Some(_inner), - InvokeErrorKind::UnsupportedMediaTypeError(_inner) => Some(_inner), + InvokeErrorKind::Ec2AccessDeniedException(_inner) => Some(_inner), + InvokeErrorKind::Ec2ThrottledException(_inner) => Some(_inner), + InvokeErrorKind::Ec2UnexpectedException(_inner) => Some(_inner), + InvokeErrorKind::EfsioException(_inner) => Some(_inner), + InvokeErrorKind::EfsMountConnectivityException(_inner) => Some(_inner), + InvokeErrorKind::EfsMountFailureException(_inner) => Some(_inner), + InvokeErrorKind::EfsMountTimeoutException(_inner) => Some(_inner), + InvokeErrorKind::EniLimitReachedException(_inner) => Some(_inner), + InvokeErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + InvokeErrorKind::InvalidRequestContentException(_inner) => Some(_inner), + InvokeErrorKind::InvalidRuntimeException(_inner) => Some(_inner), + InvokeErrorKind::InvalidSecurityGroupIdException(_inner) => Some(_inner), + InvokeErrorKind::InvalidSubnetIdException(_inner) => Some(_inner), + InvokeErrorKind::InvalidZipFileException(_inner) => Some(_inner), + InvokeErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + InvokeErrorKind::KmsDisabledException(_inner) => Some(_inner), + InvokeErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + InvokeErrorKind::KmsNotFoundException(_inner) => Some(_inner), + InvokeErrorKind::RequestTooLargeException(_inner) => Some(_inner), + InvokeErrorKind::ResourceConflictException(_inner) => Some(_inner), + InvokeErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + InvokeErrorKind::ResourceNotReadyException(_inner) => Some(_inner), + InvokeErrorKind::ServiceException(_inner) => Some(_inner), + InvokeErrorKind::SubnetIpAddressLimitReachedException(_inner) => Some(_inner), + InvokeErrorKind::TooManyRequestsException(_inner) => Some(_inner), + InvokeErrorKind::UnsupportedMediaTypeException(_inner) => Some(_inner), InvokeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3446,22 +3593,22 @@ pub struct InvokeAsyncError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum InvokeAsyncErrorKind { - InvalidRequestContentError(crate::error::InvalidRequestContentError), - InvalidRuntimeError(crate::error::InvalidRuntimeError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), + InvalidRequestContentException(crate::error::InvalidRequestContentException), + InvalidRuntimeException(crate::error::InvalidRuntimeException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for InvokeAsyncError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - InvokeAsyncErrorKind::InvalidRequestContentError(_inner) => _inner.fmt(f), - InvokeAsyncErrorKind::InvalidRuntimeError(_inner) => _inner.fmt(f), - InvokeAsyncErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - InvokeAsyncErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - InvokeAsyncErrorKind::ServiceError(_inner) => _inner.fmt(f), + InvokeAsyncErrorKind::InvalidRequestContentException(_inner) => _inner.fmt(f), + InvokeAsyncErrorKind::InvalidRuntimeException(_inner) => _inner.fmt(f), + InvokeAsyncErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + InvokeAsyncErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + InvokeAsyncErrorKind::ServiceException(_inner) => _inner.fmt(f), InvokeAsyncErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3510,33 +3657,39 @@ impl InvokeAsyncError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_request_content_error(&self) -> bool { + pub fn is_invalid_request_content_exception(&self) -> bool { matches!( &self.kind, - InvokeAsyncErrorKind::InvalidRequestContentError(_) + InvokeAsyncErrorKind::InvalidRequestContentException(_) ) } - pub fn is_invalid_runtime_error(&self) -> bool { - matches!(&self.kind, InvokeAsyncErrorKind::InvalidRuntimeError(_)) + pub fn is_invalid_runtime_exception(&self) -> bool { + matches!(&self.kind, InvokeAsyncErrorKind::InvalidRuntimeException(_)) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, InvokeAsyncErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + InvokeAsyncErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, InvokeAsyncErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + InvokeAsyncErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, InvokeAsyncErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, InvokeAsyncErrorKind::ServiceException(_)) } } impl std::error::Error for InvokeAsyncError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - InvokeAsyncErrorKind::InvalidRequestContentError(_inner) => Some(_inner), - InvokeAsyncErrorKind::InvalidRuntimeError(_inner) => Some(_inner), - InvokeAsyncErrorKind::ResourceConflictError(_inner) => Some(_inner), - InvokeAsyncErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - InvokeAsyncErrorKind::ServiceError(_inner) => Some(_inner), + InvokeAsyncErrorKind::InvalidRequestContentException(_inner) => Some(_inner), + InvokeAsyncErrorKind::InvalidRuntimeException(_inner) => Some(_inner), + InvokeAsyncErrorKind::ResourceConflictException(_inner) => Some(_inner), + InvokeAsyncErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + InvokeAsyncErrorKind::ServiceException(_inner) => Some(_inner), InvokeAsyncErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3551,20 +3704,20 @@ pub struct ListAliasesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListAliasesErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListAliasesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListAliasesErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListAliasesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListAliasesErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListAliasesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListAliasesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3613,29 +3766,35 @@ impl ListAliasesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListAliasesErrorKind::InvalidParameterValueError(_) + ListAliasesErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListAliasesErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, ListAliasesErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListAliasesErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListAliasesErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListAliasesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListAliasesErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListAliasesErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListAliasesErrorKind::ServiceError(_inner) => Some(_inner), - ListAliasesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListAliasesErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListAliasesErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListAliasesErrorKind::ServiceException(_inner) => Some(_inner), + ListAliasesErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListAliasesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3650,16 +3809,18 @@ pub struct ListCodeSigningConfigsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListCodeSigningConfigsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListCodeSigningConfigsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListCodeSigningConfigsErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListCodeSigningConfigsErrorKind::ServiceError(_inner) => _inner.fmt(f), + ListCodeSigningConfigsErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + ListCodeSigningConfigsErrorKind::ServiceException(_inner) => _inner.fmt(f), ListCodeSigningConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3708,21 +3869,24 @@ impl ListCodeSigningConfigsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListCodeSigningConfigsErrorKind::InvalidParameterValueError(_) + ListCodeSigningConfigsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListCodeSigningConfigsErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + ListCodeSigningConfigsErrorKind::ServiceException(_) + ) } } impl std::error::Error for ListCodeSigningConfigsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListCodeSigningConfigsErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListCodeSigningConfigsErrorKind::ServiceError(_inner) => Some(_inner), + ListCodeSigningConfigsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListCodeSigningConfigsErrorKind::ServiceException(_inner) => Some(_inner), ListCodeSigningConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3737,20 +3901,22 @@ pub struct ListEventSourceMappingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListEventSourceMappingsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListEventSourceMappingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListEventSourceMappingsErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListEventSourceMappingsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListEventSourceMappingsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListEventSourceMappingsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListEventSourceMappingsErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + ListEventSourceMappingsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListEventSourceMappingsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListEventSourceMappingsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListEventSourceMappingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3799,38 +3965,40 @@ impl ListEventSourceMappingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListEventSourceMappingsErrorKind::InvalidParameterValueError(_) + ListEventSourceMappingsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListEventSourceMappingsErrorKind::ResourceNotFoundError(_) + ListEventSourceMappingsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - ListEventSourceMappingsErrorKind::ServiceError(_) + ListEventSourceMappingsErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListEventSourceMappingsErrorKind::TooManyRequestsError(_) + ListEventSourceMappingsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListEventSourceMappingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListEventSourceMappingsErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListEventSourceMappingsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListEventSourceMappingsErrorKind::ServiceError(_inner) => Some(_inner), - ListEventSourceMappingsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListEventSourceMappingsErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + ListEventSourceMappingsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListEventSourceMappingsErrorKind::ServiceException(_inner) => Some(_inner), + ListEventSourceMappingsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListEventSourceMappingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3845,22 +4013,26 @@ pub struct ListFunctionEventInvokeConfigsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListFunctionEventInvokeConfigsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListFunctionEventInvokeConfigsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueError(_inner) => { + ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + ListFunctionEventInvokeConfigsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListFunctionEventInvokeConfigsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), ListFunctionEventInvokeConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3909,40 +4081,44 @@ impl ListFunctionEventInvokeConfigsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueError(_) + ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundError(_) + ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - ListFunctionEventInvokeConfigsErrorKind::ServiceError(_) + ListFunctionEventInvokeConfigsErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsError(_) + ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListFunctionEventInvokeConfigsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueError(_inner) => { + ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + ListFunctionEventInvokeConfigsErrorKind::ServiceException(_inner) => Some(_inner), + ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListFunctionEventInvokeConfigsErrorKind::ServiceError(_inner) => Some(_inner), - ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsError(_inner) => Some(_inner), ListFunctionEventInvokeConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3957,18 +4133,18 @@ pub struct ListFunctionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListFunctionsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListFunctionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListFunctionsErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListFunctionsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListFunctionsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListFunctionsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListFunctionsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListFunctionsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListFunctionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4017,25 +4193,28 @@ impl ListFunctionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListFunctionsErrorKind::InvalidParameterValueError(_) + ListFunctionsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListFunctionsErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, ListFunctionsErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListFunctionsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListFunctionsErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListFunctionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListFunctionsErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListFunctionsErrorKind::ServiceError(_inner) => Some(_inner), - ListFunctionsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListFunctionsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListFunctionsErrorKind::ServiceException(_inner) => Some(_inner), + ListFunctionsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListFunctionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4050,22 +4229,22 @@ pub struct ListFunctionsByCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListFunctionsByCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListFunctionsByCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => { + ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - ListFunctionsByCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), + ListFunctionsByCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), ListFunctionsByCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4114,35 +4293,35 @@ impl ListFunctionsByCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueError(_) + ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundError(_) + ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - ListFunctionsByCodeSigningConfigErrorKind::ServiceError(_) + ListFunctionsByCodeSigningConfigErrorKind::ServiceException(_) ) } } impl std::error::Error for ListFunctionsByCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => { + ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - ListFunctionsByCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), + ListFunctionsByCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), ListFunctionsByCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4157,18 +4336,18 @@ pub struct ListLayersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListLayersErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListLayersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListLayersErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListLayersErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListLayersErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListLayersErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListLayersErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListLayersErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListLayersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4217,25 +4396,25 @@ impl ListLayersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListLayersErrorKind::InvalidParameterValueError(_) + ListLayersErrorKind::InvalidParameterValueException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListLayersErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, ListLayersErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListLayersErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, ListLayersErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for ListLayersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListLayersErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListLayersErrorKind::ServiceError(_inner) => Some(_inner), - ListLayersErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListLayersErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListLayersErrorKind::ServiceException(_inner) => Some(_inner), + ListLayersErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListLayersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4250,20 +4429,20 @@ pub struct ListLayerVersionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListLayerVersionsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListLayerVersionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListLayerVersionsErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListLayerVersionsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListLayerVersionsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListLayerVersionsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListLayerVersionsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListLayerVersionsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListLayerVersionsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListLayerVersionsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListLayerVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4312,35 +4491,35 @@ impl ListLayerVersionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListLayerVersionsErrorKind::InvalidParameterValueError(_) + ListLayerVersionsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListLayerVersionsErrorKind::ResourceNotFoundError(_) + ListLayerVersionsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListLayerVersionsErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, ListLayerVersionsErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListLayerVersionsErrorKind::TooManyRequestsError(_) + ListLayerVersionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListLayerVersionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListLayerVersionsErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListLayerVersionsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListLayerVersionsErrorKind::ServiceError(_inner) => Some(_inner), - ListLayerVersionsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListLayerVersionsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListLayerVersionsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListLayerVersionsErrorKind::ServiceException(_inner) => Some(_inner), + ListLayerVersionsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListLayerVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4355,24 +4534,24 @@ pub struct ListProvisionedConcurrencyConfigsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListProvisionedConcurrencyConfigsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListProvisionedConcurrencyConfigsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - ListProvisionedConcurrencyConfigsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } ListProvisionedConcurrencyConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4426,42 +4605,42 @@ impl ListProvisionedConcurrencyConfigsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueError(_) + ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundError(_) + ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - ListProvisionedConcurrencyConfigsErrorKind::ServiceError(_) + ListProvisionedConcurrencyConfigsErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsError(_) + ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListProvisionedConcurrencyConfigsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - ListProvisionedConcurrencyConfigsErrorKind::ServiceError(_inner) => Some(_inner), - ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsError(_inner) => { + ListProvisionedConcurrencyConfigsErrorKind::ServiceException(_inner) => Some(_inner), + ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } ListProvisionedConcurrencyConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4478,20 +4657,20 @@ pub struct ListTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListTagsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListTagsErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListTagsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListTagsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + ListTagsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListTagsErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListTagsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4540,26 +4719,29 @@ impl ListTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { - matches!(&self.kind, ListTagsErrorKind::InvalidParameterValueError(_)) + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsErrorKind::InvalidParameterValueException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, ListTagsErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, ListTagsErrorKind::ResourceNotFoundException(_)) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListTagsErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, ListTagsErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListTagsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, ListTagsErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for ListTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListTagsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListTagsErrorKind::ServiceError(_inner) => Some(_inner), - ListTagsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListTagsErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListTagsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListTagsErrorKind::ServiceException(_inner) => Some(_inner), + ListTagsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4574,20 +4756,22 @@ pub struct ListVersionsByFunctionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListVersionsByFunctionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListVersionsByFunctionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListVersionsByFunctionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - ListVersionsByFunctionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListVersionsByFunctionErrorKind::ServiceError(_inner) => _inner.fmt(f), - ListVersionsByFunctionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListVersionsByFunctionErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + ListVersionsByFunctionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListVersionsByFunctionErrorKind::ServiceException(_inner) => _inner.fmt(f), + ListVersionsByFunctionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListVersionsByFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4636,35 +4820,38 @@ impl ListVersionsByFunctionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - ListVersionsByFunctionErrorKind::InvalidParameterValueError(_) + ListVersionsByFunctionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListVersionsByFunctionErrorKind::ResourceNotFoundError(_) + ListVersionsByFunctionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, ListVersionsByFunctionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + ListVersionsByFunctionErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListVersionsByFunctionErrorKind::TooManyRequestsError(_) + ListVersionsByFunctionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListVersionsByFunctionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListVersionsByFunctionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - ListVersionsByFunctionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListVersionsByFunctionErrorKind::ServiceError(_inner) => Some(_inner), - ListVersionsByFunctionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListVersionsByFunctionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + ListVersionsByFunctionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListVersionsByFunctionErrorKind::ServiceException(_inner) => Some(_inner), + ListVersionsByFunctionErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListVersionsByFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4679,22 +4866,22 @@ pub struct PublishLayerVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PublishLayerVersionErrorKind { - CodeStorageExceededError(crate::error::CodeStorageExceededError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeStorageExceededException(crate::error::CodeStorageExceededException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PublishLayerVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PublishLayerVersionErrorKind::CodeStorageExceededError(_inner) => _inner.fmt(f), - PublishLayerVersionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - PublishLayerVersionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PublishLayerVersionErrorKind::ServiceError(_inner) => _inner.fmt(f), - PublishLayerVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PublishLayerVersionErrorKind::CodeStorageExceededException(_inner) => _inner.fmt(f), + PublishLayerVersionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PublishLayerVersionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PublishLayerVersionErrorKind::ServiceException(_inner) => _inner.fmt(f), + PublishLayerVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PublishLayerVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4743,42 +4930,45 @@ impl PublishLayerVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_storage_exceeded_error(&self) -> bool { + pub fn is_code_storage_exceeded_exception(&self) -> bool { matches!( &self.kind, - PublishLayerVersionErrorKind::CodeStorageExceededError(_) + PublishLayerVersionErrorKind::CodeStorageExceededException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PublishLayerVersionErrorKind::InvalidParameterValueError(_) + PublishLayerVersionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PublishLayerVersionErrorKind::ResourceNotFoundError(_) + PublishLayerVersionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, PublishLayerVersionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + PublishLayerVersionErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PublishLayerVersionErrorKind::TooManyRequestsError(_) + PublishLayerVersionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PublishLayerVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PublishLayerVersionErrorKind::CodeStorageExceededError(_inner) => Some(_inner), - PublishLayerVersionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - PublishLayerVersionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PublishLayerVersionErrorKind::ServiceError(_inner) => Some(_inner), - PublishLayerVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PublishLayerVersionErrorKind::CodeStorageExceededException(_inner) => Some(_inner), + PublishLayerVersionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PublishLayerVersionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PublishLayerVersionErrorKind::ServiceException(_inner) => Some(_inner), + PublishLayerVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), PublishLayerVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4793,26 +4983,26 @@ pub struct PublishVersionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PublishVersionErrorKind { - CodeStorageExceededError(crate::error::CodeStorageExceededError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeStorageExceededException(crate::error::CodeStorageExceededException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PublishVersionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PublishVersionErrorKind::CodeStorageExceededError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::ServiceError(_inner) => _inner.fmt(f), - PublishVersionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PublishVersionErrorKind::CodeStorageExceededException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::PreconditionFailedException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::ServiceException(_inner) => _inner.fmt(f), + PublishVersionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PublishVersionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4861,53 +5051,56 @@ impl PublishVersionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_storage_exceeded_error(&self) -> bool { + pub fn is_code_storage_exceeded_exception(&self) -> bool { matches!( &self.kind, - PublishVersionErrorKind::CodeStorageExceededError(_) + PublishVersionErrorKind::CodeStorageExceededException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PublishVersionErrorKind::InvalidParameterValueError(_) + PublishVersionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - PublishVersionErrorKind::PreconditionFailedError(_) + PublishVersionErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - PublishVersionErrorKind::ResourceConflictError(_) + PublishVersionErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PublishVersionErrorKind::ResourceNotFoundError(_) + PublishVersionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, PublishVersionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, PublishVersionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, PublishVersionErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + PublishVersionErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for PublishVersionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PublishVersionErrorKind::CodeStorageExceededError(_inner) => Some(_inner), - PublishVersionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - PublishVersionErrorKind::PreconditionFailedError(_inner) => Some(_inner), - PublishVersionErrorKind::ResourceConflictError(_inner) => Some(_inner), - PublishVersionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PublishVersionErrorKind::ServiceError(_inner) => Some(_inner), - PublishVersionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PublishVersionErrorKind::CodeStorageExceededException(_inner) => Some(_inner), + PublishVersionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PublishVersionErrorKind::PreconditionFailedException(_inner) => Some(_inner), + PublishVersionErrorKind::ResourceConflictException(_inner) => Some(_inner), + PublishVersionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PublishVersionErrorKind::ServiceException(_inner) => Some(_inner), + PublishVersionErrorKind::TooManyRequestsException(_inner) => Some(_inner), PublishVersionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4922,28 +5115,34 @@ pub struct PutFunctionCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutFunctionCodeSigningConfigErrorKind { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutFunctionCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_inner) => { + PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(_inner) => { + _inner.fmt(f) + } + PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + PutFunctionCodeSigningConfigErrorKind::ResourceConflictException(_inner) => { _inner.fmt(f) } - PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + PutFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - PutFunctionCodeSigningConfigErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - PutFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), PutFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4992,56 +5191,60 @@ impl PutFunctionCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_signing_config_not_found_error(&self) -> bool { + pub fn is_code_signing_config_not_found_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_) + PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_) + PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::ResourceConflictError(_) + PutFunctionCodeSigningConfigErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_) + PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::ServiceError(_) + PutFunctionCodeSigningConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_) + PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutFunctionCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(_inner) => { + PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(_inner) => { + Some(_inner) + } + PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + PutFunctionCodeSigningConfigErrorKind::ResourceConflictException(_inner) => { Some(_inner) } - PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => { + PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - PutFunctionCodeSigningConfigErrorKind::ResourceConflictError(_inner) => Some(_inner), - PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutFunctionCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), - PutFunctionCodeSigningConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutFunctionCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), + PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutFunctionCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5056,22 +5259,24 @@ pub struct PutFunctionConcurrencyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutFunctionConcurrencyErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutFunctionConcurrencyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - PutFunctionConcurrencyErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - PutFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutFunctionConcurrencyErrorKind::ServiceError(_inner) => _inner.fmt(f), - PutFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + PutFunctionConcurrencyErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + PutFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + PutFunctionConcurrencyErrorKind::ServiceException(_inner) => _inner.fmt(f), + PutFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PutFunctionConcurrencyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5120,42 +5325,45 @@ impl PutFunctionConcurrencyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PutFunctionConcurrencyErrorKind::InvalidParameterValueError(_) + PutFunctionConcurrencyErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - PutFunctionConcurrencyErrorKind::ResourceConflictError(_) + PutFunctionConcurrencyErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutFunctionConcurrencyErrorKind::ResourceNotFoundError(_) + PutFunctionConcurrencyErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, PutFunctionConcurrencyErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!( + &self.kind, + PutFunctionConcurrencyErrorKind::ServiceException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutFunctionConcurrencyErrorKind::TooManyRequestsError(_) + PutFunctionConcurrencyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutFunctionConcurrencyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutFunctionConcurrencyErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - PutFunctionConcurrencyErrorKind::ResourceConflictError(_inner) => Some(_inner), - PutFunctionConcurrencyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutFunctionConcurrencyErrorKind::ServiceError(_inner) => Some(_inner), - PutFunctionConcurrencyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutFunctionConcurrencyErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PutFunctionConcurrencyErrorKind::ResourceConflictException(_inner) => Some(_inner), + PutFunctionConcurrencyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + PutFunctionConcurrencyErrorKind::ServiceException(_inner) => Some(_inner), + PutFunctionConcurrencyErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutFunctionConcurrencyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5170,22 +5378,26 @@ pub struct PutFunctionEventInvokeConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutFunctionEventInvokeConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutFunctionEventInvokeConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + PutFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - PutFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - PutFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), PutFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5234,40 +5446,42 @@ impl PutFunctionEventInvokeConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_) + PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_) + PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - PutFunctionEventInvokeConfigErrorKind::ServiceError(_) + PutFunctionEventInvokeConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_) + PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutFunctionEventInvokeConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => Some(_inner), - PutFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + PutFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => Some(_inner), + PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5282,28 +5496,30 @@ pub struct PutProvisionedConcurrencyConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutProvisionedConcurrencyConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutProvisionedConcurrencyConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { + PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_inner) => { _inner.fmt(f) } - PutProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_inner) => { + PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => { + PutProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - PutProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), PutProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5352,47 +5568,53 @@ impl PutProvisionedConcurrencyConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_) + PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - PutProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_) + PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_) + PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - PutProvisionedConcurrencyConfigErrorKind::ServiceError(_) + PutProvisionedConcurrencyConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_) + PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutProvisionedConcurrencyConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(_inner) => { + PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException(_inner) => { + Some(_inner) + } + PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + PutProvisionedConcurrencyConfigErrorKind::ServiceException(_inner) => Some(_inner), + PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - PutProvisionedConcurrencyConfigErrorKind::ResourceConflictError(_inner) => Some(_inner), - PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - PutProvisionedConcurrencyConfigErrorKind::ServiceError(_inner) => Some(_inner), - PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), PutProvisionedConcurrencyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5407,24 +5629,30 @@ pub struct RemoveLayerVersionPermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveLayerVersionPermissionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveLayerVersionPermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveLayerVersionPermissionErrorKind::InvalidParameterValueError(_inner) => { + RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + RemoveLayerVersionPermissionErrorKind::PreconditionFailedException(_inner) => { + _inner.fmt(f) + } + RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + RemoveLayerVersionPermissionErrorKind::ServiceException(_inner) => _inner.fmt(f), + RemoveLayerVersionPermissionErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - RemoveLayerVersionPermissionErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - RemoveLayerVersionPermissionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - RemoveLayerVersionPermissionErrorKind::ServiceError(_inner) => _inner.fmt(f), - RemoveLayerVersionPermissionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), RemoveLayerVersionPermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5473,47 +5701,51 @@ impl RemoveLayerVersionPermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - RemoveLayerVersionPermissionErrorKind::InvalidParameterValueError(_) + RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - RemoveLayerVersionPermissionErrorKind::PreconditionFailedError(_) + RemoveLayerVersionPermissionErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - RemoveLayerVersionPermissionErrorKind::ResourceNotFoundError(_) + RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - RemoveLayerVersionPermissionErrorKind::ServiceError(_) + RemoveLayerVersionPermissionErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - RemoveLayerVersionPermissionErrorKind::TooManyRequestsError(_) + RemoveLayerVersionPermissionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for RemoveLayerVersionPermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveLayerVersionPermissionErrorKind::InvalidParameterValueError(_inner) => { + RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + RemoveLayerVersionPermissionErrorKind::PreconditionFailedException(_inner) => { Some(_inner) } - RemoveLayerVersionPermissionErrorKind::PreconditionFailedError(_inner) => Some(_inner), - RemoveLayerVersionPermissionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - RemoveLayerVersionPermissionErrorKind::ServiceError(_inner) => Some(_inner), - RemoveLayerVersionPermissionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + RemoveLayerVersionPermissionErrorKind::ServiceException(_inner) => Some(_inner), + RemoveLayerVersionPermissionErrorKind::TooManyRequestsException(_inner) => Some(_inner), RemoveLayerVersionPermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5528,22 +5760,22 @@ pub struct RemovePermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemovePermissionErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemovePermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemovePermissionErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::ServiceError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::PreconditionFailedException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::ServiceException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), RemovePermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5592,42 +5824,42 @@ impl RemovePermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::InvalidParameterValueError(_) + RemovePermissionErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::PreconditionFailedError(_) + RemovePermissionErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::ResourceNotFoundError(_) + RemovePermissionErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, RemovePermissionErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, RemovePermissionErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::TooManyRequestsError(_) + RemovePermissionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for RemovePermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemovePermissionErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - RemovePermissionErrorKind::PreconditionFailedError(_inner) => Some(_inner), - RemovePermissionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - RemovePermissionErrorKind::ServiceError(_inner) => Some(_inner), - RemovePermissionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + RemovePermissionErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + RemovePermissionErrorKind::PreconditionFailedException(_inner) => Some(_inner), + RemovePermissionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + RemovePermissionErrorKind::ServiceException(_inner) => Some(_inner), + RemovePermissionErrorKind::TooManyRequestsException(_inner) => Some(_inner), RemovePermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5642,22 +5874,22 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ServiceError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ServiceException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5706,33 +5938,42 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - TagResourceErrorKind::InvalidParameterValueError(_) + TagResourceErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceConflictError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::ServiceError(_inner) => Some(_inner), - TagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceConflictException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::ServiceException(_inner) => Some(_inner), + TagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5747,22 +5988,22 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ServiceError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ServiceException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5811,33 +6052,42 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UntagResourceErrorKind::InvalidParameterValueError(_) + UntagResourceErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceConflictError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::ServiceError(_inner) => Some(_inner), - UntagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceConflictException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::ServiceException(_inner) => Some(_inner), + UntagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5852,24 +6102,24 @@ pub struct UpdateAliasError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateAliasErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateAliasError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateAliasErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::ServiceError(_inner) => _inner.fmt(f), - UpdateAliasErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::PreconditionFailedException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::ServiceException(_inner) => _inner.fmt(f), + UpdateAliasErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5918,37 +6168,49 @@ impl UpdateAliasError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateAliasErrorKind::InvalidParameterValueError(_) + UpdateAliasErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::PreconditionFailedError(_)) + pub fn is_precondition_failed_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::PreconditionFailedException(_) + ) } - pub fn is_resource_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::ResourceConflictError(_)) + pub fn is_resource_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::ResourceConflictException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, UpdateAliasErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateAliasErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateAliasErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for UpdateAliasError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateAliasErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - UpdateAliasErrorKind::PreconditionFailedError(_inner) => Some(_inner), - UpdateAliasErrorKind::ResourceConflictError(_inner) => Some(_inner), - UpdateAliasErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateAliasErrorKind::ServiceError(_inner) => Some(_inner), - UpdateAliasErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateAliasErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + UpdateAliasErrorKind::PreconditionFailedException(_inner) => Some(_inner), + UpdateAliasErrorKind::ResourceConflictException(_inner) => Some(_inner), + UpdateAliasErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateAliasErrorKind::ServiceException(_inner) => Some(_inner), + UpdateAliasErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5963,18 +6225,20 @@ pub struct UpdateCodeSigningConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateCodeSigningConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateCodeSigningConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - UpdateCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateCodeSigningConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), + UpdateCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + UpdateCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateCodeSigningConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), UpdateCodeSigningConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6023,31 +6287,33 @@ impl UpdateCodeSigningConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateCodeSigningConfigErrorKind::InvalidParameterValueError(_) + UpdateCodeSigningConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateCodeSigningConfigErrorKind::ResourceNotFoundError(_) + UpdateCodeSigningConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - UpdateCodeSigningConfigErrorKind::ServiceError(_) + UpdateCodeSigningConfigErrorKind::ServiceException(_) ) } } impl std::error::Error for UpdateCodeSigningConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateCodeSigningConfigErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - UpdateCodeSigningConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateCodeSigningConfigErrorKind::ServiceError(_inner) => Some(_inner), + UpdateCodeSigningConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + UpdateCodeSigningConfigErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateCodeSigningConfigErrorKind::ServiceException(_inner) => Some(_inner), UpdateCodeSigningConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6062,24 +6328,26 @@ pub struct UpdateEventSourceMappingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateEventSourceMappingErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateEventSourceMappingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - UpdateEventSourceMappingErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - UpdateEventSourceMappingErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - UpdateEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateEventSourceMappingErrorKind::ServiceError(_inner) => _inner.fmt(f), - UpdateEventSourceMappingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + _inner.fmt(f) + } + UpdateEventSourceMappingErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + UpdateEventSourceMappingErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + UpdateEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateEventSourceMappingErrorKind::ServiceException(_inner) => _inner.fmt(f), + UpdateEventSourceMappingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateEventSourceMappingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6128,52 +6396,54 @@ impl UpdateEventSourceMappingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::InvalidParameterValueError(_) + UpdateEventSourceMappingErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::ResourceConflictError(_) + UpdateEventSourceMappingErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::ResourceInUseError(_) + UpdateEventSourceMappingErrorKind::ResourceInUseException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::ResourceNotFoundError(_) + UpdateEventSourceMappingErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::ServiceError(_) + UpdateEventSourceMappingErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateEventSourceMappingErrorKind::TooManyRequestsError(_) + UpdateEventSourceMappingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateEventSourceMappingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateEventSourceMappingErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - UpdateEventSourceMappingErrorKind::ResourceConflictError(_inner) => Some(_inner), - UpdateEventSourceMappingErrorKind::ResourceInUseError(_inner) => Some(_inner), - UpdateEventSourceMappingErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateEventSourceMappingErrorKind::ServiceError(_inner) => Some(_inner), - UpdateEventSourceMappingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateEventSourceMappingErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + UpdateEventSourceMappingErrorKind::ResourceConflictException(_inner) => Some(_inner), + UpdateEventSourceMappingErrorKind::ResourceInUseException(_inner) => Some(_inner), + UpdateEventSourceMappingErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateEventSourceMappingErrorKind::ServiceException(_inner) => Some(_inner), + UpdateEventSourceMappingErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateEventSourceMappingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6188,32 +6458,34 @@ pub struct UpdateFunctionCodeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateFunctionCodeErrorKind { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - CodeStorageExceededError(crate::error::CodeStorageExceededError), - CodeVerificationFailedError(crate::error::CodeVerificationFailedError), - InvalidCodeSignatureError(crate::error::InvalidCodeSignatureError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + CodeStorageExceededException(crate::error::CodeStorageExceededException), + CodeVerificationFailedException(crate::error::CodeVerificationFailedException), + InvalidCodeSignatureException(crate::error::InvalidCodeSignatureException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateFunctionCodeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::CodeStorageExceededError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::CodeVerificationFailedError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::InvalidCodeSignatureError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::ServiceError(_inner) => _inner.fmt(f), - UpdateFunctionCodeErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateFunctionCodeErrorKind::CodeStorageExceededException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::CodeVerificationFailedException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::InvalidCodeSignatureException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::PreconditionFailedException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::ResourceConflictException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::ServiceException(_inner) => _inner.fmt(f), + UpdateFunctionCodeErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateFunctionCodeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6262,77 +6534,77 @@ impl UpdateFunctionCodeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_signing_config_not_found_error(&self) -> bool { + pub fn is_code_signing_config_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundError(_) + UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException(_) ) } - pub fn is_code_storage_exceeded_error(&self) -> bool { + pub fn is_code_storage_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::CodeStorageExceededError(_) + UpdateFunctionCodeErrorKind::CodeStorageExceededException(_) ) } - pub fn is_code_verification_failed_error(&self) -> bool { + pub fn is_code_verification_failed_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::CodeVerificationFailedError(_) + UpdateFunctionCodeErrorKind::CodeVerificationFailedException(_) ) } - pub fn is_invalid_code_signature_error(&self) -> bool { + pub fn is_invalid_code_signature_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::InvalidCodeSignatureError(_) + UpdateFunctionCodeErrorKind::InvalidCodeSignatureException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::InvalidParameterValueError(_) + UpdateFunctionCodeErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::PreconditionFailedError(_) + UpdateFunctionCodeErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::ResourceConflictError(_) + UpdateFunctionCodeErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::ResourceNotFoundError(_) + UpdateFunctionCodeErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { - matches!(&self.kind, UpdateFunctionCodeErrorKind::ServiceError(_)) + pub fn is_service_exception(&self) -> bool { + matches!(&self.kind, UpdateFunctionCodeErrorKind::ServiceException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionCodeErrorKind::TooManyRequestsError(_) + UpdateFunctionCodeErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateFunctionCodeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::CodeStorageExceededError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::CodeVerificationFailedError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::InvalidCodeSignatureError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::PreconditionFailedError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::ResourceConflictError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::ServiceError(_inner) => Some(_inner), - UpdateFunctionCodeErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::CodeStorageExceededException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::CodeVerificationFailedException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::InvalidCodeSignatureException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::PreconditionFailedException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::ResourceConflictException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::ServiceException(_inner) => Some(_inner), + UpdateFunctionCodeErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateFunctionCodeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6347,38 +6619,44 @@ pub struct UpdateFunctionConfigurationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateFunctionConfigurationErrorKind { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - CodeVerificationFailedError(crate::error::CodeVerificationFailedError), - InvalidCodeSignatureError(crate::error::InvalidCodeSignatureError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + CodeVerificationFailedException(crate::error::CodeVerificationFailedException), + InvalidCodeSignatureException(crate::error::InvalidCodeSignatureException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateFunctionConfigurationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundError(_inner) => { + UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException(_inner) => { _inner.fmt(f) } - UpdateFunctionConfigurationErrorKind::CodeVerificationFailedError(_inner) => { + UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException(_inner) => { _inner.fmt(f) } - UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureError(_inner) => { + UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException(_inner) => { _inner.fmt(f) } - UpdateFunctionConfigurationErrorKind::InvalidParameterValueError(_inner) => { + UpdateFunctionConfigurationErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - UpdateFunctionConfigurationErrorKind::PreconditionFailedError(_inner) => _inner.fmt(f), - UpdateFunctionConfigurationErrorKind::ResourceConflictError(_inner) => _inner.fmt(f), - UpdateFunctionConfigurationErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UpdateFunctionConfigurationErrorKind::ServiceError(_inner) => _inner.fmt(f), - UpdateFunctionConfigurationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateFunctionConfigurationErrorKind::PreconditionFailedException(_inner) => { + _inner.fmt(f) + } + UpdateFunctionConfigurationErrorKind::ResourceConflictException(_inner) => { + _inner.fmt(f) + } + UpdateFunctionConfigurationErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateFunctionConfigurationErrorKind::ServiceException(_inner) => _inner.fmt(f), + UpdateFunctionConfigurationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateFunctionConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6427,79 +6705,83 @@ impl UpdateFunctionConfigurationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_code_signing_config_not_found_error(&self) -> bool { + pub fn is_code_signing_config_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundError(_) + UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException(_) ) } - pub fn is_code_verification_failed_error(&self) -> bool { + pub fn is_code_verification_failed_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::CodeVerificationFailedError(_) + UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException(_) ) } - pub fn is_invalid_code_signature_error(&self) -> bool { + pub fn is_invalid_code_signature_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureError(_) + UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException(_) ) } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::InvalidParameterValueError(_) + UpdateFunctionConfigurationErrorKind::InvalidParameterValueException(_) ) } - pub fn is_precondition_failed_error(&self) -> bool { + pub fn is_precondition_failed_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::PreconditionFailedError(_) + UpdateFunctionConfigurationErrorKind::PreconditionFailedException(_) ) } - pub fn is_resource_conflict_error(&self) -> bool { + pub fn is_resource_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::ResourceConflictError(_) + UpdateFunctionConfigurationErrorKind::ResourceConflictException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::ResourceNotFoundError(_) + UpdateFunctionConfigurationErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::ServiceError(_) + UpdateFunctionConfigurationErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionConfigurationErrorKind::TooManyRequestsError(_) + UpdateFunctionConfigurationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateFunctionConfigurationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundError(_inner) => { + UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException(_inner) => { + Some(_inner) + } + UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException(_inner) => { + Some(_inner) + } + UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException(_inner) => { Some(_inner) } - UpdateFunctionConfigurationErrorKind::CodeVerificationFailedError(_inner) => { + UpdateFunctionConfigurationErrorKind::InvalidParameterValueException(_inner) => { Some(_inner) } - UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureError(_inner) => Some(_inner), - UpdateFunctionConfigurationErrorKind::InvalidParameterValueError(_inner) => { + UpdateFunctionConfigurationErrorKind::PreconditionFailedException(_inner) => { Some(_inner) } - UpdateFunctionConfigurationErrorKind::PreconditionFailedError(_inner) => Some(_inner), - UpdateFunctionConfigurationErrorKind::ResourceConflictError(_inner) => Some(_inner), - UpdateFunctionConfigurationErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateFunctionConfigurationErrorKind::ServiceError(_inner) => Some(_inner), - UpdateFunctionConfigurationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateFunctionConfigurationErrorKind::ResourceConflictException(_inner) => Some(_inner), + UpdateFunctionConfigurationErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UpdateFunctionConfigurationErrorKind::ServiceException(_inner) => Some(_inner), + UpdateFunctionConfigurationErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateFunctionConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6514,24 +6796,26 @@ pub struct UpdateFunctionEventInvokeConfigError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateFunctionEventInvokeConfigErrorKind { - InvalidParameterValueError(crate::error::InvalidParameterValueError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceError(crate::error::ServiceError), - TooManyRequestsError(crate::error::TooManyRequestsError), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceException(crate::error::ServiceException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateFunctionEventInvokeConfigError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { _inner.fmt(f) } - UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => { + UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => _inner.fmt(f), + UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - UpdateFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => _inner.fmt(f), - UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), UpdateFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6580,40 +6864,44 @@ impl UpdateFunctionEventInvokeConfigError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_value_error(&self) -> bool { + pub fn is_invalid_parameter_value_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_) + UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_) + UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_) ) } - pub fn is_service_error(&self) -> bool { + pub fn is_service_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionEventInvokeConfigErrorKind::ServiceError(_) + UpdateFunctionEventInvokeConfigErrorKind::ServiceException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_) + UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateFunctionEventInvokeConfigError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(_inner) => { + UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(_inner) => { + Some(_inner) + } + UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + UpdateFunctionEventInvokeConfigErrorKind::ServiceException(_inner) => Some(_inner), + UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UpdateFunctionEventInvokeConfigErrorKind::ServiceError(_inner) => Some(_inner), - UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsError(_inner) => Some(_inner), UpdateFunctionEventInvokeConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6621,25 +6909,17 @@ impl std::error::Error for UpdateFunctionEventInvokeConfigError { ///

    The request throughput limit was exceeded.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyRequestsError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyRequestsException { ///

    The number of seconds the caller should wait before retrying.

    - #[serde(rename = "retryAfterSeconds")] - #[serde(default)] pub retry_after_seconds: std::option::Option, - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, - #[serde(rename = "Reason")] - #[serde(default)] pub reason: std::option::Option, } -impl std::fmt::Debug for TooManyRequestsError { +impl std::fmt::Debug for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyRequestsError"); + let mut formatter = f.debug_struct("TooManyRequestsException"); formatter.field("retry_after_seconds", &self.retry_after_seconds); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); @@ -6647,24 +6927,24 @@ impl std::fmt::Debug for TooManyRequestsError { formatter.finish() } } -impl TooManyRequestsError { +impl TooManyRequestsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyRequestsError { +impl std::fmt::Display for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyRequestsError [TooManyRequestsException]")?; + write!(f, "TooManyRequestsException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for TooManyRequestsError {} -/// See [`TooManyRequestsError`](crate::error::TooManyRequestsError) -pub mod too_many_requests_error { - /// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError) +impl std::error::Error for TooManyRequestsException {} +/// See [`TooManyRequestsException`](crate::error::TooManyRequestsException) +pub mod too_many_requests_exception { + /// A builder for [`TooManyRequestsException`](crate::error::TooManyRequestsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6713,9 +6993,9 @@ pub mod too_many_requests_error { self.reason = input; self } - /// Consumes the builder and constructs a [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn build(self) -> crate::error::TooManyRequestsError { - crate::error::TooManyRequestsError { + /// Consumes the builder and constructs a [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn build(self) -> crate::error::TooManyRequestsException { + crate::error::TooManyRequestsException { retry_after_seconds: self.retry_after_seconds, r#type: self.r#type, message: self.message, @@ -6724,50 +7004,46 @@ pub mod too_many_requests_error { } } } -impl TooManyRequestsError { - /// Creates a new builder-style object to manufacture [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn builder() -> crate::error::too_many_requests_error::Builder { - crate::error::too_many_requests_error::Builder::default() +impl TooManyRequestsException { + /// Creates a new builder-style object to manufacture [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn builder() -> crate::error::too_many_requests_exception::Builder { + crate::error::too_many_requests_exception::Builder::default() } } ///

    The AWS Lambda service encountered an internal error.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ServiceError { +impl std::fmt::Debug for ServiceException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceError"); + let mut formatter = f.debug_struct("ServiceException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceError { +impl ServiceException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceError { +impl std::fmt::Display for ServiceException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceError [ServiceException]")?; + write!(f, "ServiceException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ServiceError {} -/// See [`ServiceError`](crate::error::ServiceError) -pub mod service_error { - /// A builder for [`ServiceError`](crate::error::ServiceError) +impl std::error::Error for ServiceException {} +/// See [`ServiceException`](crate::error::ServiceException) +pub mod service_exception { + /// A builder for [`ServiceException`](crate::error::ServiceException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6791,59 +7067,55 @@ pub mod service_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceError`](crate::error::ServiceError) - pub fn build(self) -> crate::error::ServiceError { - crate::error::ServiceError { + /// Consumes the builder and constructs a [`ServiceException`](crate::error::ServiceException) + pub fn build(self) -> crate::error::ServiceException { + crate::error::ServiceException { r#type: self.r#type, message: self.message, } } } } -impl ServiceError { - /// Creates a new builder-style object to manufacture [`ServiceError`](crate::error::ServiceError) - pub fn builder() -> crate::error::service_error::Builder { - crate::error::service_error::Builder::default() +impl ServiceException { + /// Creates a new builder-style object to manufacture [`ServiceException`](crate::error::ServiceException) + pub fn builder() -> crate::error::service_exception::Builder { + crate::error::service_exception::Builder::default() } } ///

    The resource specified in the request does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6867,64 +7139,57 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { r#type: self.r#type, message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

    One of the parameters in the request is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterValueError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterValueException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The exception message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterValueError { +impl std::fmt::Debug for InvalidParameterValueException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterValueError"); + let mut formatter = f.debug_struct("InvalidParameterValueException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterValueError { +impl InvalidParameterValueException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterValueError { +impl std::fmt::Display for InvalidParameterValueException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidParameterValueError [InvalidParameterValueException]" - )?; + write!(f, "InvalidParameterValueException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidParameterValueError {} -/// See [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) -pub mod invalid_parameter_value_error { - /// A builder for [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) +impl std::error::Error for InvalidParameterValueException {} +/// See [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) +pub mod invalid_parameter_value_exception { + /// A builder for [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6950,61 +7215,57 @@ pub mod invalid_parameter_value_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) - pub fn build(self) -> crate::error::InvalidParameterValueError { - crate::error::InvalidParameterValueError { + /// Consumes the builder and constructs a [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn build(self) -> crate::error::InvalidParameterValueException { + crate::error::InvalidParameterValueException { r#type: self.r#type, message: self.message, } } } } -impl InvalidParameterValueError { - /// Creates a new builder-style object to manufacture [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) - pub fn builder() -> crate::error::invalid_parameter_value_error::Builder { - crate::error::invalid_parameter_value_error::Builder::default() +impl InvalidParameterValueException { + /// Creates a new builder-style object to manufacture [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn builder() -> crate::error::invalid_parameter_value_exception::Builder { + crate::error::invalid_parameter_value_exception::Builder::default() } } ///

    The resource already exists, or another operation is in progress.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceConflictError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceConflictException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The exception message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceConflictError { +impl std::fmt::Debug for ResourceConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceConflictError"); + let mut formatter = f.debug_struct("ResourceConflictException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceConflictError { +impl ResourceConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceConflictError { +impl std::fmt::Display for ResourceConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceConflictError [ResourceConflictException]")?; + write!(f, "ResourceConflictException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ResourceConflictError {} -/// See [`ResourceConflictError`](crate::error::ResourceConflictError) -pub mod resource_conflict_error { - /// A builder for [`ResourceConflictError`](crate::error::ResourceConflictError) +impl std::error::Error for ResourceConflictException {} +/// See [`ResourceConflictException`](crate::error::ResourceConflictException) +pub mod resource_conflict_exception { + /// A builder for [`ResourceConflictException`](crate::error::ResourceConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7030,19 +7291,19 @@ pub mod resource_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceConflictError`](crate::error::ResourceConflictError) - pub fn build(self) -> crate::error::ResourceConflictError { - crate::error::ResourceConflictError { + /// Consumes the builder and constructs a [`ResourceConflictException`](crate::error::ResourceConflictException) + pub fn build(self) -> crate::error::ResourceConflictException { + crate::error::ResourceConflictException { r#type: self.r#type, message: self.message, } } } } -impl ResourceConflictError { - /// Creates a new builder-style object to manufacture [`ResourceConflictError`](crate::error::ResourceConflictError) - pub fn builder() -> crate::error::resource_conflict_error::Builder { - crate::error::resource_conflict_error::Builder::default() +impl ResourceConflictException { + /// Creates a new builder-style object to manufacture [`ResourceConflictException`](crate::error::ResourceConflictException) + pub fn builder() -> crate::error::resource_conflict_exception::Builder { + crate::error::resource_conflict_exception::Builder::default() } } @@ -7050,43 +7311,39 @@ impl ResourceConflictError { /// GetFunction or the GetAlias API to retrieve the latest RevisionId for your /// resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PreconditionFailedError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PreconditionFailedException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The exception message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for PreconditionFailedError { +impl std::fmt::Debug for PreconditionFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PreconditionFailedError"); + let mut formatter = f.debug_struct("PreconditionFailedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl PreconditionFailedError { +impl PreconditionFailedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PreconditionFailedError { +impl std::fmt::Display for PreconditionFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PreconditionFailedError [PreconditionFailedException]")?; + write!(f, "PreconditionFailedException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for PreconditionFailedError {} -/// See [`PreconditionFailedError`](crate::error::PreconditionFailedError) -pub mod precondition_failed_error { - /// A builder for [`PreconditionFailedError`](crate::error::PreconditionFailedError) +impl std::error::Error for PreconditionFailedException {} +/// See [`PreconditionFailedException`](crate::error::PreconditionFailedException) +pub mod precondition_failed_exception { + /// A builder for [`PreconditionFailedException`](crate::error::PreconditionFailedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7112,63 +7369,56 @@ pub mod precondition_failed_error { self.message = input; self } - /// Consumes the builder and constructs a [`PreconditionFailedError`](crate::error::PreconditionFailedError) - pub fn build(self) -> crate::error::PreconditionFailedError { - crate::error::PreconditionFailedError { + /// Consumes the builder and constructs a [`PreconditionFailedException`](crate::error::PreconditionFailedException) + pub fn build(self) -> crate::error::PreconditionFailedException { + crate::error::PreconditionFailedException { r#type: self.r#type, message: self.message, } } } } -impl PreconditionFailedError { - /// Creates a new builder-style object to manufacture [`PreconditionFailedError`](crate::error::PreconditionFailedError) - pub fn builder() -> crate::error::precondition_failed_error::Builder { - crate::error::precondition_failed_error::Builder::default() +impl PreconditionFailedException { + /// Creates a new builder-style object to manufacture [`PreconditionFailedException`](crate::error::PreconditionFailedException) + pub fn builder() -> crate::error::precondition_failed_exception::Builder { + crate::error::precondition_failed_exception::Builder::default() } } ///

    The code signature failed the integrity check. Lambda always blocks deployment if the integrity check /// fails, even if code signing policy is set to WARN.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidCodeSignatureError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidCodeSignatureException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidCodeSignatureError { +impl std::fmt::Debug for InvalidCodeSignatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidCodeSignatureError"); + let mut formatter = f.debug_struct("InvalidCodeSignatureException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidCodeSignatureError { +impl InvalidCodeSignatureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidCodeSignatureError { +impl std::fmt::Display for InvalidCodeSignatureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidCodeSignatureError [InvalidCodeSignatureException]" - )?; + write!(f, "InvalidCodeSignatureException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for InvalidCodeSignatureError {} -/// See [`InvalidCodeSignatureError`](crate::error::InvalidCodeSignatureError) -pub mod invalid_code_signature_error { - /// A builder for [`InvalidCodeSignatureError`](crate::error::InvalidCodeSignatureError) +impl std::error::Error for InvalidCodeSignatureException {} +/// See [`InvalidCodeSignatureException`](crate::error::InvalidCodeSignatureException) +pub mod invalid_code_signature_exception { + /// A builder for [`InvalidCodeSignatureException`](crate::error::InvalidCodeSignatureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7192,63 +7442,56 @@ pub mod invalid_code_signature_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidCodeSignatureError`](crate::error::InvalidCodeSignatureError) - pub fn build(self) -> crate::error::InvalidCodeSignatureError { - crate::error::InvalidCodeSignatureError { + /// Consumes the builder and constructs a [`InvalidCodeSignatureException`](crate::error::InvalidCodeSignatureException) + pub fn build(self) -> crate::error::InvalidCodeSignatureException { + crate::error::InvalidCodeSignatureException { r#type: self.r#type, message: self.message, } } } } -impl InvalidCodeSignatureError { - /// Creates a new builder-style object to manufacture [`InvalidCodeSignatureError`](crate::error::InvalidCodeSignatureError) - pub fn builder() -> crate::error::invalid_code_signature_error::Builder { - crate::error::invalid_code_signature_error::Builder::default() +impl InvalidCodeSignatureException { + /// Creates a new builder-style object to manufacture [`InvalidCodeSignatureException`](crate::error::InvalidCodeSignatureException) + pub fn builder() -> crate::error::invalid_code_signature_exception::Builder { + crate::error::invalid_code_signature_exception::Builder::default() } } ///

    The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy /// is set to ENFORCE. Lambda blocks the deployment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CodeVerificationFailedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CodeVerificationFailedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for CodeVerificationFailedError { +impl std::fmt::Debug for CodeVerificationFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CodeVerificationFailedError"); + let mut formatter = f.debug_struct("CodeVerificationFailedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl CodeVerificationFailedError { +impl CodeVerificationFailedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CodeVerificationFailedError { +impl std::fmt::Display for CodeVerificationFailedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CodeVerificationFailedError [CodeVerificationFailedException]" - )?; + write!(f, "CodeVerificationFailedException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for CodeVerificationFailedError {} -/// See [`CodeVerificationFailedError`](crate::error::CodeVerificationFailedError) -pub mod code_verification_failed_error { - /// A builder for [`CodeVerificationFailedError`](crate::error::CodeVerificationFailedError) +impl std::error::Error for CodeVerificationFailedException {} +/// See [`CodeVerificationFailedException`](crate::error::CodeVerificationFailedException) +pub mod code_verification_failed_exception { + /// A builder for [`CodeVerificationFailedException`](crate::error::CodeVerificationFailedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7272,62 +7515,55 @@ pub mod code_verification_failed_error { self.message = input; self } - /// Consumes the builder and constructs a [`CodeVerificationFailedError`](crate::error::CodeVerificationFailedError) - pub fn build(self) -> crate::error::CodeVerificationFailedError { - crate::error::CodeVerificationFailedError { + /// Consumes the builder and constructs a [`CodeVerificationFailedException`](crate::error::CodeVerificationFailedException) + pub fn build(self) -> crate::error::CodeVerificationFailedException { + crate::error::CodeVerificationFailedException { r#type: self.r#type, message: self.message, } } } } -impl CodeVerificationFailedError { - /// Creates a new builder-style object to manufacture [`CodeVerificationFailedError`](crate::error::CodeVerificationFailedError) - pub fn builder() -> crate::error::code_verification_failed_error::Builder { - crate::error::code_verification_failed_error::Builder::default() +impl CodeVerificationFailedException { + /// Creates a new builder-style object to manufacture [`CodeVerificationFailedException`](crate::error::CodeVerificationFailedException) + pub fn builder() -> crate::error::code_verification_failed_exception::Builder { + crate::error::code_verification_failed_exception::Builder::default() } } ///

    The specified code signing configuration does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CodeSigningConfigNotFoundError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CodeSigningConfigNotFoundException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for CodeSigningConfigNotFoundError { +impl std::fmt::Debug for CodeSigningConfigNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CodeSigningConfigNotFoundError"); + let mut formatter = f.debug_struct("CodeSigningConfigNotFoundException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl CodeSigningConfigNotFoundError { +impl CodeSigningConfigNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CodeSigningConfigNotFoundError { +impl std::fmt::Display for CodeSigningConfigNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CodeSigningConfigNotFoundError [CodeSigningConfigNotFoundException]" - )?; + write!(f, "CodeSigningConfigNotFoundException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for CodeSigningConfigNotFoundError {} -/// See [`CodeSigningConfigNotFoundError`](crate::error::CodeSigningConfigNotFoundError) -pub mod code_signing_config_not_found_error { - /// A builder for [`CodeSigningConfigNotFoundError`](crate::error::CodeSigningConfigNotFoundError) +impl std::error::Error for CodeSigningConfigNotFoundException {} +/// See [`CodeSigningConfigNotFoundException`](crate::error::CodeSigningConfigNotFoundException) +pub mod code_signing_config_not_found_exception { + /// A builder for [`CodeSigningConfigNotFoundException`](crate::error::CodeSigningConfigNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7351,61 +7587,57 @@ pub mod code_signing_config_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`CodeSigningConfigNotFoundError`](crate::error::CodeSigningConfigNotFoundError) - pub fn build(self) -> crate::error::CodeSigningConfigNotFoundError { - crate::error::CodeSigningConfigNotFoundError { + /// Consumes the builder and constructs a [`CodeSigningConfigNotFoundException`](crate::error::CodeSigningConfigNotFoundException) + pub fn build(self) -> crate::error::CodeSigningConfigNotFoundException { + crate::error::CodeSigningConfigNotFoundException { r#type: self.r#type, message: self.message, } } } } -impl CodeSigningConfigNotFoundError { - /// Creates a new builder-style object to manufacture [`CodeSigningConfigNotFoundError`](crate::error::CodeSigningConfigNotFoundError) - pub fn builder() -> crate::error::code_signing_config_not_found_error::Builder { - crate::error::code_signing_config_not_found_error::Builder::default() +impl CodeSigningConfigNotFoundException { + /// Creates a new builder-style object to manufacture [`CodeSigningConfigNotFoundException`](crate::error::CodeSigningConfigNotFoundException) + pub fn builder() -> crate::error::code_signing_config_not_found_exception::Builder { + crate::error::code_signing_config_not_found_exception::Builder::default() } } ///

    You have exceeded your maximum total code size per account. Learn more ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CodeStorageExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CodeStorageExceededException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for CodeStorageExceededError { +impl std::fmt::Debug for CodeStorageExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CodeStorageExceededError"); + let mut formatter = f.debug_struct("CodeStorageExceededException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl CodeStorageExceededError { +impl CodeStorageExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CodeStorageExceededError { +impl std::fmt::Display for CodeStorageExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "CodeStorageExceededError [CodeStorageExceededException]")?; + write!(f, "CodeStorageExceededException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for CodeStorageExceededError {} -/// See [`CodeStorageExceededError`](crate::error::CodeStorageExceededError) -pub mod code_storage_exceeded_error { - /// A builder for [`CodeStorageExceededError`](crate::error::CodeStorageExceededError) +impl std::error::Error for CodeStorageExceededException {} +/// See [`CodeStorageExceededException`](crate::error::CodeStorageExceededException) +pub mod code_storage_exceeded_exception { + /// A builder for [`CodeStorageExceededException`](crate::error::CodeStorageExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7430,60 +7662,56 @@ pub mod code_storage_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`CodeStorageExceededError`](crate::error::CodeStorageExceededError) - pub fn build(self) -> crate::error::CodeStorageExceededError { - crate::error::CodeStorageExceededError { + /// Consumes the builder and constructs a [`CodeStorageExceededException`](crate::error::CodeStorageExceededException) + pub fn build(self) -> crate::error::CodeStorageExceededException { + crate::error::CodeStorageExceededException { r#type: self.r#type, message: self.message, } } } } -impl CodeStorageExceededError { - /// Creates a new builder-style object to manufacture [`CodeStorageExceededError`](crate::error::CodeStorageExceededError) - pub fn builder() -> crate::error::code_storage_exceeded_error::Builder { - crate::error::code_storage_exceeded_error::Builder::default() +impl CodeStorageExceededException { + /// Creates a new builder-style object to manufacture [`CodeStorageExceededException`](crate::error::CodeStorageExceededException) + pub fn builder() -> crate::error::code_storage_exceeded_exception::Builder { + crate::error::code_storage_exceeded_exception::Builder::default() } } ///

    The operation conflicts with the resource's availability. For example, you attempted to update an EventSource /// Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7507,59 +7735,55 @@ pub mod resource_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { r#type: self.r#type, message: self.message, } } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } ///

    The runtime or runtime version specified is not supported.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidRuntimeError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidRuntimeException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidRuntimeError { +impl std::fmt::Debug for InvalidRuntimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidRuntimeError"); + let mut formatter = f.debug_struct("InvalidRuntimeException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidRuntimeError { +impl InvalidRuntimeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidRuntimeError { +impl std::fmt::Display for InvalidRuntimeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidRuntimeError [InvalidRuntimeException]")?; + write!(f, "InvalidRuntimeException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for InvalidRuntimeError {} -/// See [`InvalidRuntimeError`](crate::error::InvalidRuntimeError) -pub mod invalid_runtime_error { - /// A builder for [`InvalidRuntimeError`](crate::error::InvalidRuntimeError) +impl std::error::Error for InvalidRuntimeException {} +/// See [`InvalidRuntimeException`](crate::error::InvalidRuntimeException) +pub mod invalid_runtime_exception { + /// A builder for [`InvalidRuntimeException`](crate::error::InvalidRuntimeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7583,64 +7807,57 @@ pub mod invalid_runtime_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidRuntimeError`](crate::error::InvalidRuntimeError) - pub fn build(self) -> crate::error::InvalidRuntimeError { - crate::error::InvalidRuntimeError { + /// Consumes the builder and constructs a [`InvalidRuntimeException`](crate::error::InvalidRuntimeException) + pub fn build(self) -> crate::error::InvalidRuntimeException { + crate::error::InvalidRuntimeException { r#type: self.r#type, message: self.message, } } } } -impl InvalidRuntimeError { - /// Creates a new builder-style object to manufacture [`InvalidRuntimeError`](crate::error::InvalidRuntimeError) - pub fn builder() -> crate::error::invalid_runtime_error::Builder { - crate::error::invalid_runtime_error::Builder::default() +impl InvalidRuntimeException { + /// Creates a new builder-style object to manufacture [`InvalidRuntimeException`](crate::error::InvalidRuntimeException) + pub fn builder() -> crate::error::invalid_runtime_exception::Builder { + crate::error::invalid_runtime_exception::Builder::default() } } ///

    The request body could not be parsed as JSON.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidRequestContentError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidRequestContentException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The exception message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidRequestContentError { +impl std::fmt::Debug for InvalidRequestContentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidRequestContentError"); + let mut formatter = f.debug_struct("InvalidRequestContentException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidRequestContentError { +impl InvalidRequestContentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidRequestContentError { +impl std::fmt::Display for InvalidRequestContentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidRequestContentError [InvalidRequestContentException]" - )?; + write!(f, "InvalidRequestContentException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for InvalidRequestContentError {} -/// See [`InvalidRequestContentError`](crate::error::InvalidRequestContentError) -pub mod invalid_request_content_error { - /// A builder for [`InvalidRequestContentError`](crate::error::InvalidRequestContentError) +impl std::error::Error for InvalidRequestContentException {} +/// See [`InvalidRequestContentException`](crate::error::InvalidRequestContentException) +pub mod invalid_request_content_exception { + /// A builder for [`InvalidRequestContentException`](crate::error::InvalidRequestContentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7666,62 +7883,55 @@ pub mod invalid_request_content_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidRequestContentError`](crate::error::InvalidRequestContentError) - pub fn build(self) -> crate::error::InvalidRequestContentError { - crate::error::InvalidRequestContentError { + /// Consumes the builder and constructs a [`InvalidRequestContentException`](crate::error::InvalidRequestContentException) + pub fn build(self) -> crate::error::InvalidRequestContentException { + crate::error::InvalidRequestContentException { r#type: self.r#type, message: self.message, } } } } -impl InvalidRequestContentError { - /// Creates a new builder-style object to manufacture [`InvalidRequestContentError`](crate::error::InvalidRequestContentError) - pub fn builder() -> crate::error::invalid_request_content_error::Builder { - crate::error::invalid_request_content_error::Builder::default() +impl InvalidRequestContentException { + /// Creates a new builder-style object to manufacture [`InvalidRequestContentException`](crate::error::InvalidRequestContentException) + pub fn builder() -> crate::error::invalid_request_content_exception::Builder { + crate::error::invalid_request_content_exception::Builder::default() } } ///

    The content type of the Invoke request body is not JSON.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedMediaTypeError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedMediaTypeException { pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedMediaTypeError { +impl std::fmt::Debug for UnsupportedMediaTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedMediaTypeError"); + let mut formatter = f.debug_struct("UnsupportedMediaTypeException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedMediaTypeError { +impl UnsupportedMediaTypeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedMediaTypeError { +impl std::fmt::Display for UnsupportedMediaTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedMediaTypeError [UnsupportedMediaTypeException]" - )?; + write!(f, "UnsupportedMediaTypeException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for UnsupportedMediaTypeError {} -/// See [`UnsupportedMediaTypeError`](crate::error::UnsupportedMediaTypeError) -pub mod unsupported_media_type_error { - /// A builder for [`UnsupportedMediaTypeError`](crate::error::UnsupportedMediaTypeError) +impl std::error::Error for UnsupportedMediaTypeException {} +/// See [`UnsupportedMediaTypeException`](crate::error::UnsupportedMediaTypeException) +pub mod unsupported_media_type_exception { + /// A builder for [`UnsupportedMediaTypeException`](crate::error::UnsupportedMediaTypeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7745,52 +7955,48 @@ pub mod unsupported_media_type_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedMediaTypeError`](crate::error::UnsupportedMediaTypeError) - pub fn build(self) -> crate::error::UnsupportedMediaTypeError { - crate::error::UnsupportedMediaTypeError { + /// Consumes the builder and constructs a [`UnsupportedMediaTypeException`](crate::error::UnsupportedMediaTypeException) + pub fn build(self) -> crate::error::UnsupportedMediaTypeException { + crate::error::UnsupportedMediaTypeException { r#type: self.r#type, message: self.message, } } } } -impl UnsupportedMediaTypeError { - /// Creates a new builder-style object to manufacture [`UnsupportedMediaTypeError`](crate::error::UnsupportedMediaTypeError) - pub fn builder() -> crate::error::unsupported_media_type_error::Builder { - crate::error::unsupported_media_type_error::Builder::default() +impl UnsupportedMediaTypeException { + /// Creates a new builder-style object to manufacture [`UnsupportedMediaTypeException`](crate::error::UnsupportedMediaTypeException) + pub fn builder() -> crate::error::unsupported_media_type_exception::Builder { + crate::error::unsupported_media_type_exception::Builder::default() } } ///

    AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets /// has no available IP addresses.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubnetIPAddressLimitReachedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SubnetIpAddressLimitReachedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for SubnetIPAddressLimitReachedError { +impl std::fmt::Debug for SubnetIpAddressLimitReachedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubnetIPAddressLimitReachedError"); + let mut formatter = f.debug_struct("SubnetIpAddressLimitReachedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl SubnetIPAddressLimitReachedError { +impl SubnetIpAddressLimitReachedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SubnetIPAddressLimitReachedError { +impl std::fmt::Display for SubnetIpAddressLimitReachedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "SubnetIPAddressLimitReachedError [SubnetIPAddressLimitReachedException]" + "SubnetIpAddressLimitReachedException [SubnetIPAddressLimitReachedException]" )?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; @@ -7798,10 +8004,10 @@ impl std::fmt::Display for SubnetIPAddressLimitReachedError { Ok(()) } } -impl std::error::Error for SubnetIPAddressLimitReachedError {} -/// See [`SubnetIPAddressLimitReachedError`](crate::error::SubnetIPAddressLimitReachedError) -pub mod subnet_ip_address_limit_reached_error { - /// A builder for [`SubnetIPAddressLimitReachedError`](crate::error::SubnetIPAddressLimitReachedError) +impl std::error::Error for SubnetIpAddressLimitReachedException {} +/// See [`SubnetIpAddressLimitReachedException`](crate::error::SubnetIpAddressLimitReachedException) +pub mod subnet_ip_address_limit_reached_exception { + /// A builder for [`SubnetIpAddressLimitReachedException`](crate::error::SubnetIpAddressLimitReachedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7825,62 +8031,58 @@ pub mod subnet_ip_address_limit_reached_error { self.message = input; self } - /// Consumes the builder and constructs a [`SubnetIPAddressLimitReachedError`](crate::error::SubnetIPAddressLimitReachedError) - pub fn build(self) -> crate::error::SubnetIPAddressLimitReachedError { - crate::error::SubnetIPAddressLimitReachedError { + /// Consumes the builder and constructs a [`SubnetIpAddressLimitReachedException`](crate::error::SubnetIpAddressLimitReachedException) + pub fn build(self) -> crate::error::SubnetIpAddressLimitReachedException { + crate::error::SubnetIpAddressLimitReachedException { r#type: self.r#type, message: self.message, } } } } -impl SubnetIPAddressLimitReachedError { - /// Creates a new builder-style object to manufacture [`SubnetIPAddressLimitReachedError`](crate::error::SubnetIPAddressLimitReachedError) - pub fn builder() -> crate::error::subnet_ip_address_limit_reached_error::Builder { - crate::error::subnet_ip_address_limit_reached_error::Builder::default() +impl SubnetIpAddressLimitReachedException { + /// Creates a new builder-style object to manufacture [`SubnetIpAddressLimitReachedException`](crate::error::SubnetIpAddressLimitReachedException) + pub fn builder() -> crate::error::subnet_ip_address_limit_reached_exception::Builder { + crate::error::subnet_ip_address_limit_reached_exception::Builder::default() } } ///

    The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to /// reestablish and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotReadyError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotReadyException { ///

    The exception type.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The exception message.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotReadyError { +impl std::fmt::Debug for ResourceNotReadyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotReadyError"); + let mut formatter = f.debug_struct("ResourceNotReadyException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotReadyError { +impl ResourceNotReadyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotReadyError { +impl std::fmt::Display for ResourceNotReadyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotReadyError [ResourceNotReadyException]")?; + write!(f, "ResourceNotReadyException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for ResourceNotReadyError {} -/// See [`ResourceNotReadyError`](crate::error::ResourceNotReadyError) -pub mod resource_not_ready_error { - /// A builder for [`ResourceNotReadyError`](crate::error::ResourceNotReadyError) +impl std::error::Error for ResourceNotReadyException {} +/// See [`ResourceNotReadyException`](crate::error::ResourceNotReadyException) +pub mod resource_not_ready_exception { + /// A builder for [`ResourceNotReadyException`](crate::error::ResourceNotReadyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7906,60 +8108,56 @@ pub mod resource_not_ready_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotReadyError`](crate::error::ResourceNotReadyError) - pub fn build(self) -> crate::error::ResourceNotReadyError { - crate::error::ResourceNotReadyError { + /// Consumes the builder and constructs a [`ResourceNotReadyException`](crate::error::ResourceNotReadyException) + pub fn build(self) -> crate::error::ResourceNotReadyException { + crate::error::ResourceNotReadyException { r#type: self.r#type, message: self.message, } } } } -impl ResourceNotReadyError { - /// Creates a new builder-style object to manufacture [`ResourceNotReadyError`](crate::error::ResourceNotReadyError) - pub fn builder() -> crate::error::resource_not_ready_error::Builder { - crate::error::resource_not_ready_error::Builder::default() +impl ResourceNotReadyException { + /// Creates a new builder-style object to manufacture [`ResourceNotReadyException`](crate::error::ResourceNotReadyException) + pub fn builder() -> crate::error::resource_not_ready_exception::Builder { + crate::error::resource_not_ready_exception::Builder::default() } } ///

    The request payload exceeded the Invoke request body JSON input limit. For more information, see /// Limits.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RequestTooLargeError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RequestTooLargeException { pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for RequestTooLargeError { +impl std::fmt::Debug for RequestTooLargeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RequestTooLargeError"); + let mut formatter = f.debug_struct("RequestTooLargeException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl RequestTooLargeError { +impl RequestTooLargeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for RequestTooLargeError { +impl std::fmt::Display for RequestTooLargeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "RequestTooLargeError [RequestTooLargeException]")?; + write!(f, "RequestTooLargeException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for RequestTooLargeError {} -/// See [`RequestTooLargeError`](crate::error::RequestTooLargeError) -pub mod request_too_large_error { - /// A builder for [`RequestTooLargeError`](crate::error::RequestTooLargeError) +impl std::error::Error for RequestTooLargeException {} +/// See [`RequestTooLargeException`](crate::error::RequestTooLargeException) +pub mod request_too_large_exception { + /// A builder for [`RequestTooLargeException`](crate::error::RequestTooLargeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7983,60 +8181,56 @@ pub mod request_too_large_error { self.message = input; self } - /// Consumes the builder and constructs a [`RequestTooLargeError`](crate::error::RequestTooLargeError) - pub fn build(self) -> crate::error::RequestTooLargeError { - crate::error::RequestTooLargeError { + /// Consumes the builder and constructs a [`RequestTooLargeException`](crate::error::RequestTooLargeException) + pub fn build(self) -> crate::error::RequestTooLargeException { + crate::error::RequestTooLargeException { r#type: self.r#type, message: self.message, } } } } -impl RequestTooLargeError { - /// Creates a new builder-style object to manufacture [`RequestTooLargeError`](crate::error::RequestTooLargeError) - pub fn builder() -> crate::error::request_too_large_error::Builder { - crate::error::request_too_large_error::Builder::default() +impl RequestTooLargeException { + /// Creates a new builder-style object to manufacture [`RequestTooLargeException`](crate::error::RequestTooLargeException) + pub fn builder() -> crate::error::request_too_large_exception::Builder { + crate::error::request_too_large_exception::Builder::default() } } ///

    Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's /// KMS key settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSNotFoundError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsNotFoundException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSNotFoundError { +impl std::fmt::Debug for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSNotFoundError"); + let mut formatter = f.debug_struct("KmsNotFoundException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl KMSNotFoundError { +impl KmsNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSNotFoundError { +impl std::fmt::Display for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSNotFoundError [KMSNotFoundException]")?; + write!(f, "KmsNotFoundException [KMSNotFoundException]")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for KMSNotFoundError {} -/// See [`KMSNotFoundError`](crate::error::KMSNotFoundError) -pub mod kms_not_found_error { - /// A builder for [`KMSNotFoundError`](crate::error::KMSNotFoundError) +impl std::error::Error for KmsNotFoundException {} +/// See [`KmsNotFoundException`](crate::error::KmsNotFoundException) +pub mod kms_not_found_exception { + /// A builder for [`KmsNotFoundException`](crate::error::KmsNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8060,60 +8254,56 @@ pub mod kms_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn build(self) -> crate::error::KMSNotFoundError { - crate::error::KMSNotFoundError { + /// Consumes the builder and constructs a [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn build(self) -> crate::error::KmsNotFoundException { + crate::error::KmsNotFoundException { r#type: self.r#type, message: self.message, } } } } -impl KMSNotFoundError { - /// Creates a new builder-style object to manufacture [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn builder() -> crate::error::kms_not_found_error::Builder { - crate::error::kms_not_found_error::Builder::default() +impl KmsNotFoundException { + /// Creates a new builder-style object to manufacture [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn builder() -> crate::error::kms_not_found_exception::Builder { + crate::error::kms_not_found_exception::Builder::default() } } ///

    Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for /// Decrypt. Check the function's KMS key settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInvalidStateError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsInvalidStateException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSInvalidStateError { +impl std::fmt::Debug for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInvalidStateError"); + let mut formatter = f.debug_struct("KmsInvalidStateException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInvalidStateError { +impl KmsInvalidStateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInvalidStateError { +impl std::fmt::Display for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInvalidStateError [KMSInvalidStateException]")?; + write!(f, "KmsInvalidStateException [KMSInvalidStateException]")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for KMSInvalidStateError {} -/// See [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) -pub mod kms_invalid_state_error { - /// A builder for [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) +impl std::error::Error for KmsInvalidStateException {} +/// See [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) +pub mod kms_invalid_state_exception { + /// A builder for [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8137,60 +8327,56 @@ pub mod kms_invalid_state_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn build(self) -> crate::error::KMSInvalidStateError { - crate::error::KMSInvalidStateError { + /// Consumes the builder and constructs a [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn build(self) -> crate::error::KmsInvalidStateException { + crate::error::KmsInvalidStateException { r#type: self.r#type, message: self.message, } } } } -impl KMSInvalidStateError { - /// Creates a new builder-style object to manufacture [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn builder() -> crate::error::kms_invalid_state_error::Builder { - crate::error::kms_invalid_state_error::Builder::default() +impl KmsInvalidStateException { + /// Creates a new builder-style object to manufacture [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn builder() -> crate::error::kms_invalid_state_exception::Builder { + crate::error::kms_invalid_state_exception::Builder::default() } } ///

    Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda /// function's KMS key settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSDisabledError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsDisabledException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSDisabledError { +impl std::fmt::Debug for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSDisabledError"); + let mut formatter = f.debug_struct("KmsDisabledException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl KMSDisabledError { +impl KmsDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSDisabledError { +impl std::fmt::Display for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSDisabledError [KMSDisabledException]")?; + write!(f, "KmsDisabledException [KMSDisabledException]")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for KMSDisabledError {} -/// See [`KMSDisabledError`](crate::error::KMSDisabledError) -pub mod kms_disabled_error { - /// A builder for [`KMSDisabledError`](crate::error::KMSDisabledError) +impl std::error::Error for KmsDisabledException {} +/// See [`KmsDisabledException`](crate::error::KmsDisabledException) +pub mod kms_disabled_exception { + /// A builder for [`KmsDisabledException`](crate::error::KmsDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8214,60 +8400,56 @@ pub mod kms_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn build(self) -> crate::error::KMSDisabledError { - crate::error::KMSDisabledError { + /// Consumes the builder and constructs a [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn build(self) -> crate::error::KmsDisabledException { + crate::error::KmsDisabledException { r#type: self.r#type, message: self.message, } } } } -impl KMSDisabledError { - /// Creates a new builder-style object to manufacture [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn builder() -> crate::error::kms_disabled_error::Builder { - crate::error::kms_disabled_error::Builder::default() +impl KmsDisabledException { + /// Creates a new builder-style object to manufacture [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn builder() -> crate::error::kms_disabled_exception::Builder { + crate::error::kms_disabled_exception::Builder::default() } } ///

    Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda /// function's KMS permissions.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSAccessDeniedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct KmsAccessDeniedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for KMSAccessDeniedError { +impl std::fmt::Debug for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSAccessDeniedError"); + let mut formatter = f.debug_struct("KmsAccessDeniedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl KMSAccessDeniedError { +impl KmsAccessDeniedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSAccessDeniedError { +impl std::fmt::Display for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSAccessDeniedError [KMSAccessDeniedException]")?; + write!(f, "KmsAccessDeniedException [KMSAccessDeniedException]")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for KMSAccessDeniedError {} -/// See [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) -pub mod kms_access_denied_error { - /// A builder for [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) +impl std::error::Error for KmsAccessDeniedException {} +/// See [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) +pub mod kms_access_denied_exception { + /// A builder for [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8291,59 +8473,55 @@ pub mod kms_access_denied_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn build(self) -> crate::error::KMSAccessDeniedError { - crate::error::KMSAccessDeniedError { + /// Consumes the builder and constructs a [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn build(self) -> crate::error::KmsAccessDeniedException { + crate::error::KmsAccessDeniedException { r#type: self.r#type, message: self.message, } } } } -impl KMSAccessDeniedError { - /// Creates a new builder-style object to manufacture [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn builder() -> crate::error::kms_access_denied_error::Builder { - crate::error::kms_access_denied_error::Builder::default() +impl KmsAccessDeniedException { + /// Creates a new builder-style object to manufacture [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn builder() -> crate::error::kms_access_denied_exception::Builder { + crate::error::kms_access_denied_exception::Builder::default() } } ///

    AWS Lambda could not unzip the deployment package.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidZipFileError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidZipFileException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidZipFileError { +impl std::fmt::Debug for InvalidZipFileException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidZipFileError"); + let mut formatter = f.debug_struct("InvalidZipFileException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidZipFileError { +impl InvalidZipFileException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidZipFileError { +impl std::fmt::Display for InvalidZipFileException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidZipFileError [InvalidZipFileException]")?; + write!(f, "InvalidZipFileException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for InvalidZipFileError {} -/// See [`InvalidZipFileError`](crate::error::InvalidZipFileError) -pub mod invalid_zip_file_error { - /// A builder for [`InvalidZipFileError`](crate::error::InvalidZipFileError) +impl std::error::Error for InvalidZipFileException {} +/// See [`InvalidZipFileException`](crate::error::InvalidZipFileException) +pub mod invalid_zip_file_exception { + /// A builder for [`InvalidZipFileException`](crate::error::InvalidZipFileException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8367,59 +8545,55 @@ pub mod invalid_zip_file_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidZipFileError`](crate::error::InvalidZipFileError) - pub fn build(self) -> crate::error::InvalidZipFileError { - crate::error::InvalidZipFileError { + /// Consumes the builder and constructs a [`InvalidZipFileException`](crate::error::InvalidZipFileException) + pub fn build(self) -> crate::error::InvalidZipFileException { + crate::error::InvalidZipFileException { r#type: self.r#type, message: self.message, } } } } -impl InvalidZipFileError { - /// Creates a new builder-style object to manufacture [`InvalidZipFileError`](crate::error::InvalidZipFileError) - pub fn builder() -> crate::error::invalid_zip_file_error::Builder { - crate::error::invalid_zip_file_error::Builder::default() +impl InvalidZipFileException { + /// Creates a new builder-style object to manufacture [`InvalidZipFileException`](crate::error::InvalidZipFileException) + pub fn builder() -> crate::error::invalid_zip_file_exception::Builder { + crate::error::invalid_zip_file_exception::Builder::default() } } ///

    The Subnet ID provided in the Lambda function VPC configuration is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSubnetIDError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSubnetIdException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSubnetIDError { +impl std::fmt::Debug for InvalidSubnetIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSubnetIDError"); + let mut formatter = f.debug_struct("InvalidSubnetIdException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSubnetIDError { +impl InvalidSubnetIdException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSubnetIDError { +impl std::fmt::Display for InvalidSubnetIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSubnetIDError [InvalidSubnetIDException]")?; + write!(f, "InvalidSubnetIdException [InvalidSubnetIDException]")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for InvalidSubnetIDError {} -/// See [`InvalidSubnetIDError`](crate::error::InvalidSubnetIDError) -pub mod invalid_subnet_id_error { - /// A builder for [`InvalidSubnetIDError`](crate::error::InvalidSubnetIDError) +impl std::error::Error for InvalidSubnetIdException {} +/// See [`InvalidSubnetIdException`](crate::error::InvalidSubnetIdException) +pub mod invalid_subnet_id_exception { + /// A builder for [`InvalidSubnetIdException`](crate::error::InvalidSubnetIdException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8443,51 +8617,47 @@ pub mod invalid_subnet_id_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSubnetIDError`](crate::error::InvalidSubnetIDError) - pub fn build(self) -> crate::error::InvalidSubnetIDError { - crate::error::InvalidSubnetIDError { + /// Consumes the builder and constructs a [`InvalidSubnetIdException`](crate::error::InvalidSubnetIdException) + pub fn build(self) -> crate::error::InvalidSubnetIdException { + crate::error::InvalidSubnetIdException { r#type: self.r#type, message: self.message, } } } } -impl InvalidSubnetIDError { - /// Creates a new builder-style object to manufacture [`InvalidSubnetIDError`](crate::error::InvalidSubnetIDError) - pub fn builder() -> crate::error::invalid_subnet_id_error::Builder { - crate::error::invalid_subnet_id_error::Builder::default() +impl InvalidSubnetIdException { + /// Creates a new builder-style object to manufacture [`InvalidSubnetIdException`](crate::error::InvalidSubnetIdException) + pub fn builder() -> crate::error::invalid_subnet_id_exception::Builder { + crate::error::invalid_subnet_id_exception::Builder::default() } } ///

    The Security Group ID provided in the Lambda function VPC configuration is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSecurityGroupIDError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSecurityGroupIdException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSecurityGroupIDError { +impl std::fmt::Debug for InvalidSecurityGroupIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSecurityGroupIDError"); + let mut formatter = f.debug_struct("InvalidSecurityGroupIdException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSecurityGroupIDError { +impl InvalidSecurityGroupIdException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSecurityGroupIDError { +impl std::fmt::Display for InvalidSecurityGroupIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "InvalidSecurityGroupIDError [InvalidSecurityGroupIDException]" + "InvalidSecurityGroupIdException [InvalidSecurityGroupIDException]" )?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; @@ -8495,10 +8665,10 @@ impl std::fmt::Display for InvalidSecurityGroupIDError { Ok(()) } } -impl std::error::Error for InvalidSecurityGroupIDError {} -/// See [`InvalidSecurityGroupIDError`](crate::error::InvalidSecurityGroupIDError) -pub mod invalid_security_group_id_error { - /// A builder for [`InvalidSecurityGroupIDError`](crate::error::InvalidSecurityGroupIDError) +impl std::error::Error for InvalidSecurityGroupIdException {} +/// See [`InvalidSecurityGroupIdException`](crate::error::InvalidSecurityGroupIdException) +pub mod invalid_security_group_id_exception { + /// A builder for [`InvalidSecurityGroupIdException`](crate::error::InvalidSecurityGroupIdException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8522,60 +8692,56 @@ pub mod invalid_security_group_id_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSecurityGroupIDError`](crate::error::InvalidSecurityGroupIDError) - pub fn build(self) -> crate::error::InvalidSecurityGroupIDError { - crate::error::InvalidSecurityGroupIDError { + /// Consumes the builder and constructs a [`InvalidSecurityGroupIdException`](crate::error::InvalidSecurityGroupIdException) + pub fn build(self) -> crate::error::InvalidSecurityGroupIdException { + crate::error::InvalidSecurityGroupIdException { r#type: self.r#type, message: self.message, } } } } -impl InvalidSecurityGroupIDError { - /// Creates a new builder-style object to manufacture [`InvalidSecurityGroupIDError`](crate::error::InvalidSecurityGroupIDError) - pub fn builder() -> crate::error::invalid_security_group_id_error::Builder { - crate::error::invalid_security_group_id_error::Builder::default() +impl InvalidSecurityGroupIdException { + /// Creates a new builder-style object to manufacture [`InvalidSecurityGroupIdException`](crate::error::InvalidSecurityGroupIdException) + pub fn builder() -> crate::error::invalid_security_group_id_exception::Builder { + crate::error::invalid_security_group_id_exception::Builder::default() } } ///

    AWS Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda /// function configuration, because the limit for network interfaces has been reached.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ENILimitReachedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EniLimitReachedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ENILimitReachedError { +impl std::fmt::Debug for EniLimitReachedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ENILimitReachedError"); + let mut formatter = f.debug_struct("EniLimitReachedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ENILimitReachedError { +impl EniLimitReachedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ENILimitReachedError { +impl std::fmt::Display for EniLimitReachedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ENILimitReachedError [ENILimitReachedException]")?; + write!(f, "EniLimitReachedException [ENILimitReachedException]")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for ENILimitReachedError {} -/// See [`ENILimitReachedError`](crate::error::ENILimitReachedError) -pub mod eni_limit_reached_error { - /// A builder for [`ENILimitReachedError`](crate::error::ENILimitReachedError) +impl std::error::Error for EniLimitReachedException {} +/// See [`EniLimitReachedException`](crate::error::EniLimitReachedException) +pub mod eni_limit_reached_exception { + /// A builder for [`EniLimitReachedException`](crate::error::EniLimitReachedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8599,60 +8765,56 @@ pub mod eni_limit_reached_error { self.message = input; self } - /// Consumes the builder and constructs a [`ENILimitReachedError`](crate::error::ENILimitReachedError) - pub fn build(self) -> crate::error::ENILimitReachedError { - crate::error::ENILimitReachedError { + /// Consumes the builder and constructs a [`EniLimitReachedException`](crate::error::EniLimitReachedException) + pub fn build(self) -> crate::error::EniLimitReachedException { + crate::error::EniLimitReachedException { r#type: self.r#type, message: self.message, } } } } -impl ENILimitReachedError { - /// Creates a new builder-style object to manufacture [`ENILimitReachedError`](crate::error::ENILimitReachedError) - pub fn builder() -> crate::error::eni_limit_reached_error::Builder { - crate::error::eni_limit_reached_error::Builder::default() +impl EniLimitReachedException { + /// Creates a new builder-style object to manufacture [`EniLimitReachedException`](crate::error::EniLimitReachedException) + pub fn builder() -> crate::error::eni_limit_reached_exception::Builder { + crate::error::eni_limit_reached_exception::Builder::default() } } ///

    The function was able to make a network connection to the configured file system, but the mount operation /// timed out.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSMountTimeoutError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsMountTimeoutException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EFSMountTimeoutError { +impl std::fmt::Debug for EfsMountTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSMountTimeoutError"); + let mut formatter = f.debug_struct("EfsMountTimeoutException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EFSMountTimeoutError { +impl EfsMountTimeoutException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EFSMountTimeoutError { +impl std::fmt::Display for EfsMountTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EFSMountTimeoutError [EFSMountTimeoutException]")?; + write!(f, "EfsMountTimeoutException [EFSMountTimeoutException]")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for EFSMountTimeoutError {} -/// See [`EFSMountTimeoutError`](crate::error::EFSMountTimeoutError) -pub mod efs_mount_timeout_error { - /// A builder for [`EFSMountTimeoutError`](crate::error::EFSMountTimeoutError) +impl std::error::Error for EfsMountTimeoutException {} +/// See [`EfsMountTimeoutException`](crate::error::EfsMountTimeoutException) +pub mod efs_mount_timeout_exception { + /// A builder for [`EfsMountTimeoutException`](crate::error::EfsMountTimeoutException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8676,59 +8838,55 @@ pub mod efs_mount_timeout_error { self.message = input; self } - /// Consumes the builder and constructs a [`EFSMountTimeoutError`](crate::error::EFSMountTimeoutError) - pub fn build(self) -> crate::error::EFSMountTimeoutError { - crate::error::EFSMountTimeoutError { + /// Consumes the builder and constructs a [`EfsMountTimeoutException`](crate::error::EfsMountTimeoutException) + pub fn build(self) -> crate::error::EfsMountTimeoutException { + crate::error::EfsMountTimeoutException { r#type: self.r#type, message: self.message, } } } } -impl EFSMountTimeoutError { - /// Creates a new builder-style object to manufacture [`EFSMountTimeoutError`](crate::error::EFSMountTimeoutError) - pub fn builder() -> crate::error::efs_mount_timeout_error::Builder { - crate::error::efs_mount_timeout_error::Builder::default() +impl EfsMountTimeoutException { + /// Creates a new builder-style object to manufacture [`EfsMountTimeoutException`](crate::error::EfsMountTimeoutException) + pub fn builder() -> crate::error::efs_mount_timeout_exception::Builder { + crate::error::efs_mount_timeout_exception::Builder::default() } } ///

    The function couldn't mount the configured file system due to a permission or configuration issue.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSMountFailureError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsMountFailureException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EFSMountFailureError { +impl std::fmt::Debug for EfsMountFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSMountFailureError"); + let mut formatter = f.debug_struct("EfsMountFailureException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EFSMountFailureError { +impl EfsMountFailureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EFSMountFailureError { +impl std::fmt::Display for EfsMountFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EFSMountFailureError [EFSMountFailureException]")?; + write!(f, "EfsMountFailureException [EFSMountFailureException]")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for EFSMountFailureError {} -/// See [`EFSMountFailureError`](crate::error::EFSMountFailureError) -pub mod efs_mount_failure_error { - /// A builder for [`EFSMountFailureError`](crate::error::EFSMountFailureError) +impl std::error::Error for EfsMountFailureException {} +/// See [`EfsMountFailureException`](crate::error::EfsMountFailureException) +pub mod efs_mount_failure_exception { + /// A builder for [`EfsMountFailureException`](crate::error::EfsMountFailureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8752,51 +8910,47 @@ pub mod efs_mount_failure_error { self.message = input; self } - /// Consumes the builder and constructs a [`EFSMountFailureError`](crate::error::EFSMountFailureError) - pub fn build(self) -> crate::error::EFSMountFailureError { - crate::error::EFSMountFailureError { + /// Consumes the builder and constructs a [`EfsMountFailureException`](crate::error::EfsMountFailureException) + pub fn build(self) -> crate::error::EfsMountFailureException { + crate::error::EfsMountFailureException { r#type: self.r#type, message: self.message, } } } } -impl EFSMountFailureError { - /// Creates a new builder-style object to manufacture [`EFSMountFailureError`](crate::error::EFSMountFailureError) - pub fn builder() -> crate::error::efs_mount_failure_error::Builder { - crate::error::efs_mount_failure_error::Builder::default() +impl EfsMountFailureException { + /// Creates a new builder-style object to manufacture [`EfsMountFailureException`](crate::error::EfsMountFailureException) + pub fn builder() -> crate::error::efs_mount_failure_exception::Builder { + crate::error::efs_mount_failure_exception::Builder::default() } } ///

    The function couldn't make a network connection to the configured file system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSMountConnectivityError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsMountConnectivityException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EFSMountConnectivityError { +impl std::fmt::Debug for EfsMountConnectivityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSMountConnectivityError"); + let mut formatter = f.debug_struct("EfsMountConnectivityException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EFSMountConnectivityError { +impl EfsMountConnectivityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EFSMountConnectivityError { +impl std::fmt::Display for EfsMountConnectivityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "EFSMountConnectivityError [EFSMountConnectivityException]" + "EfsMountConnectivityException [EFSMountConnectivityException]" )?; if let Some(inner_28) = &self.message { write!(f, ": {}", inner_28)?; @@ -8804,10 +8958,10 @@ impl std::fmt::Display for EFSMountConnectivityError { Ok(()) } } -impl std::error::Error for EFSMountConnectivityError {} -/// See [`EFSMountConnectivityError`](crate::error::EFSMountConnectivityError) -pub mod efs_mount_connectivity_error { - /// A builder for [`EFSMountConnectivityError`](crate::error::EFSMountConnectivityError) +impl std::error::Error for EfsMountConnectivityException {} +/// See [`EfsMountConnectivityException`](crate::error::EfsMountConnectivityException) +pub mod efs_mount_connectivity_exception { + /// A builder for [`EfsMountConnectivityException`](crate::error::EfsMountConnectivityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8831,59 +8985,55 @@ pub mod efs_mount_connectivity_error { self.message = input; self } - /// Consumes the builder and constructs a [`EFSMountConnectivityError`](crate::error::EFSMountConnectivityError) - pub fn build(self) -> crate::error::EFSMountConnectivityError { - crate::error::EFSMountConnectivityError { + /// Consumes the builder and constructs a [`EfsMountConnectivityException`](crate::error::EfsMountConnectivityException) + pub fn build(self) -> crate::error::EfsMountConnectivityException { + crate::error::EfsMountConnectivityException { r#type: self.r#type, message: self.message, } } } } -impl EFSMountConnectivityError { - /// Creates a new builder-style object to manufacture [`EFSMountConnectivityError`](crate::error::EFSMountConnectivityError) - pub fn builder() -> crate::error::efs_mount_connectivity_error::Builder { - crate::error::efs_mount_connectivity_error::Builder::default() +impl EfsMountConnectivityException { + /// Creates a new builder-style object to manufacture [`EfsMountConnectivityException`](crate::error::EfsMountConnectivityException) + pub fn builder() -> crate::error::efs_mount_connectivity_exception::Builder { + crate::error::efs_mount_connectivity_exception::Builder::default() } } ///

    An error occured when reading from or writing to a connected file system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EFSIOError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EfsioException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EFSIOError { +impl std::fmt::Debug for EfsioException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EFSIOError"); + let mut formatter = f.debug_struct("EfsioException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EFSIOError { +impl EfsioException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EFSIOError { +impl std::fmt::Display for EfsioException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EFSIOError [EFSIOException]")?; + write!(f, "EfsioException [EFSIOException]")?; if let Some(inner_29) = &self.message { write!(f, ": {}", inner_29)?; } Ok(()) } } -impl std::error::Error for EFSIOError {} -/// See [`EFSIOError`](crate::error::EFSIOError) -pub mod efsio_error { - /// A builder for [`EFSIOError`](crate::error::EFSIOError) +impl std::error::Error for EfsioException {} +/// See [`EfsioException`](crate::error::EfsioException) +pub mod efsio_exception { + /// A builder for [`EfsioException`](crate::error::EfsioException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8907,63 +9057,57 @@ pub mod efsio_error { self.message = input; self } - /// Consumes the builder and constructs a [`EFSIOError`](crate::error::EFSIOError) - pub fn build(self) -> crate::error::EFSIOError { - crate::error::EFSIOError { + /// Consumes the builder and constructs a [`EfsioException`](crate::error::EfsioException) + pub fn build(self) -> crate::error::EfsioException { + crate::error::EfsioException { r#type: self.r#type, message: self.message, } } } } -impl EFSIOError { - /// Creates a new builder-style object to manufacture [`EFSIOError`](crate::error::EFSIOError) - pub fn builder() -> crate::error::efsio_error::Builder { - crate::error::efsio_error::Builder::default() +impl EfsioException { + /// Creates a new builder-style object to manufacture [`EfsioException`](crate::error::EfsioException) + pub fn builder() -> crate::error::efsio_exception::Builder { + crate::error::efsio_exception::Builder::default() } } ///

    AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EC2UnexpectedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Ec2UnexpectedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, - #[serde(rename = "EC2ErrorCode")] - #[serde(default)] pub ec2_error_code: std::option::Option, } -impl std::fmt::Debug for EC2UnexpectedError { +impl std::fmt::Debug for Ec2UnexpectedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EC2UnexpectedError"); + let mut formatter = f.debug_struct("Ec2UnexpectedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.field("ec2_error_code", &self.ec2_error_code); formatter.finish() } } -impl EC2UnexpectedError { +impl Ec2UnexpectedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EC2UnexpectedError { +impl std::fmt::Display for Ec2UnexpectedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EC2UnexpectedError [EC2UnexpectedException]")?; + write!(f, "Ec2UnexpectedException [EC2UnexpectedException]")?; if let Some(inner_30) = &self.message { write!(f, ": {}", inner_30)?; } Ok(()) } } -impl std::error::Error for EC2UnexpectedError {} -/// See [`EC2UnexpectedError`](crate::error::EC2UnexpectedError) -pub mod ec2_unexpected_error { - /// A builder for [`EC2UnexpectedError`](crate::error::EC2UnexpectedError) +impl std::error::Error for Ec2UnexpectedException {} +/// See [`Ec2UnexpectedException`](crate::error::Ec2UnexpectedException) +pub mod ec2_unexpected_exception { + /// A builder for [`Ec2UnexpectedException`](crate::error::Ec2UnexpectedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8999,9 +9143,9 @@ pub mod ec2_unexpected_error { self.ec2_error_code = input; self } - /// Consumes the builder and constructs a [`EC2UnexpectedError`](crate::error::EC2UnexpectedError) - pub fn build(self) -> crate::error::EC2UnexpectedError { - crate::error::EC2UnexpectedError { + /// Consumes the builder and constructs a [`Ec2UnexpectedException`](crate::error::Ec2UnexpectedException) + pub fn build(self) -> crate::error::Ec2UnexpectedException { + crate::error::Ec2UnexpectedException { r#type: self.r#type, message: self.message, ec2_error_code: self.ec2_error_code, @@ -9009,51 +9153,47 @@ pub mod ec2_unexpected_error { } } } -impl EC2UnexpectedError { - /// Creates a new builder-style object to manufacture [`EC2UnexpectedError`](crate::error::EC2UnexpectedError) - pub fn builder() -> crate::error::ec2_unexpected_error::Builder { - crate::error::ec2_unexpected_error::Builder::default() +impl Ec2UnexpectedException { + /// Creates a new builder-style object to manufacture [`Ec2UnexpectedException`](crate::error::Ec2UnexpectedException) + pub fn builder() -> crate::error::ec2_unexpected_exception::Builder { + crate::error::ec2_unexpected_exception::Builder::default() } } ///

    AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided /// for the Lambda function.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EC2ThrottledError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Ec2ThrottledException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EC2ThrottledError { +impl std::fmt::Debug for Ec2ThrottledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EC2ThrottledError"); + let mut formatter = f.debug_struct("Ec2ThrottledException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EC2ThrottledError { +impl Ec2ThrottledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EC2ThrottledError { +impl std::fmt::Display for Ec2ThrottledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EC2ThrottledError [EC2ThrottledException]")?; + write!(f, "Ec2ThrottledException [EC2ThrottledException]")?; if let Some(inner_31) = &self.message { write!(f, ": {}", inner_31)?; } Ok(()) } } -impl std::error::Error for EC2ThrottledError {} -/// See [`EC2ThrottledError`](crate::error::EC2ThrottledError) -pub mod ec2_throttled_error { - /// A builder for [`EC2ThrottledError`](crate::error::EC2ThrottledError) +impl std::error::Error for Ec2ThrottledException {} +/// See [`Ec2ThrottledException`](crate::error::Ec2ThrottledException) +pub mod ec2_throttled_exception { + /// A builder for [`Ec2ThrottledException`](crate::error::Ec2ThrottledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9077,59 +9217,55 @@ pub mod ec2_throttled_error { self.message = input; self } - /// Consumes the builder and constructs a [`EC2ThrottledError`](crate::error::EC2ThrottledError) - pub fn build(self) -> crate::error::EC2ThrottledError { - crate::error::EC2ThrottledError { + /// Consumes the builder and constructs a [`Ec2ThrottledException`](crate::error::Ec2ThrottledException) + pub fn build(self) -> crate::error::Ec2ThrottledException { + crate::error::Ec2ThrottledException { r#type: self.r#type, message: self.message, } } } } -impl EC2ThrottledError { - /// Creates a new builder-style object to manufacture [`EC2ThrottledError`](crate::error::EC2ThrottledError) - pub fn builder() -> crate::error::ec2_throttled_error::Builder { - crate::error::ec2_throttled_error::Builder::default() +impl Ec2ThrottledException { + /// Creates a new builder-style object to manufacture [`Ec2ThrottledException`](crate::error::Ec2ThrottledException) + pub fn builder() -> crate::error::ec2_throttled_exception::Builder { + crate::error::ec2_throttled_exception::Builder::default() } } ///

    Need additional permissions to configure VPC settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EC2AccessDeniedError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Ec2AccessDeniedException { pub r#type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for EC2AccessDeniedError { +impl std::fmt::Debug for Ec2AccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EC2AccessDeniedError"); + let mut formatter = f.debug_struct("Ec2AccessDeniedException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl EC2AccessDeniedError { +impl Ec2AccessDeniedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EC2AccessDeniedError { +impl std::fmt::Display for Ec2AccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EC2AccessDeniedError [EC2AccessDeniedException]")?; + write!(f, "Ec2AccessDeniedException [EC2AccessDeniedException]")?; if let Some(inner_32) = &self.message { write!(f, ": {}", inner_32)?; } Ok(()) } } -impl std::error::Error for EC2AccessDeniedError {} -/// See [`EC2AccessDeniedError`](crate::error::EC2AccessDeniedError) -pub mod ec2_access_denied_error { - /// A builder for [`EC2AccessDeniedError`](crate::error::EC2AccessDeniedError) +impl std::error::Error for Ec2AccessDeniedException {} +/// See [`Ec2AccessDeniedException`](crate::error::Ec2AccessDeniedException) +pub mod ec2_access_denied_exception { + /// A builder for [`Ec2AccessDeniedException`](crate::error::Ec2AccessDeniedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9153,59 +9289,55 @@ pub mod ec2_access_denied_error { self.message = input; self } - /// Consumes the builder and constructs a [`EC2AccessDeniedError`](crate::error::EC2AccessDeniedError) - pub fn build(self) -> crate::error::EC2AccessDeniedError { - crate::error::EC2AccessDeniedError { + /// Consumes the builder and constructs a [`Ec2AccessDeniedException`](crate::error::Ec2AccessDeniedException) + pub fn build(self) -> crate::error::Ec2AccessDeniedException { + crate::error::Ec2AccessDeniedException { r#type: self.r#type, message: self.message, } } } } -impl EC2AccessDeniedError { - /// Creates a new builder-style object to manufacture [`EC2AccessDeniedError`](crate::error::EC2AccessDeniedError) - pub fn builder() -> crate::error::ec2_access_denied_error::Builder { - crate::error::ec2_access_denied_error::Builder::default() +impl Ec2AccessDeniedException { + /// Creates a new builder-style object to manufacture [`Ec2AccessDeniedException`](crate::error::Ec2AccessDeniedException) + pub fn builder() -> crate::error::ec2_access_denied_exception::Builder { + crate::error::ec2_access_denied_exception::Builder::default() } } ///

    The specified configuration does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ProvisionedConcurrencyConfigNotFoundError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ProvisionedConcurrencyConfigNotFoundException { pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ProvisionedConcurrencyConfigNotFoundError { +impl std::fmt::Debug for ProvisionedConcurrencyConfigNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ProvisionedConcurrencyConfigNotFoundError"); + let mut formatter = f.debug_struct("ProvisionedConcurrencyConfigNotFoundException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl ProvisionedConcurrencyConfigNotFoundError { +impl ProvisionedConcurrencyConfigNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ProvisionedConcurrencyConfigNotFoundError { +impl std::fmt::Display for ProvisionedConcurrencyConfigNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ProvisionedConcurrencyConfigNotFoundError [ProvisionedConcurrencyConfigNotFoundException]")?; + write!(f, "ProvisionedConcurrencyConfigNotFoundException")?; if let Some(inner_33) = &self.message { write!(f, ": {}", inner_33)?; } Ok(()) } } -impl std::error::Error for ProvisionedConcurrencyConfigNotFoundError {} -/// See [`ProvisionedConcurrencyConfigNotFoundError`](crate::error::ProvisionedConcurrencyConfigNotFoundError) -pub mod provisioned_concurrency_config_not_found_error { - /// A builder for [`ProvisionedConcurrencyConfigNotFoundError`](crate::error::ProvisionedConcurrencyConfigNotFoundError) +impl std::error::Error for ProvisionedConcurrencyConfigNotFoundException {} +/// See [`ProvisionedConcurrencyConfigNotFoundException`](crate::error::ProvisionedConcurrencyConfigNotFoundException) +pub mod provisioned_concurrency_config_not_found_exception { + /// A builder for [`ProvisionedConcurrencyConfigNotFoundException`](crate::error::ProvisionedConcurrencyConfigNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9229,63 +9361,56 @@ pub mod provisioned_concurrency_config_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ProvisionedConcurrencyConfigNotFoundError`](crate::error::ProvisionedConcurrencyConfigNotFoundError) - pub fn build(self) -> crate::error::ProvisionedConcurrencyConfigNotFoundError { - crate::error::ProvisionedConcurrencyConfigNotFoundError { + /// Consumes the builder and constructs a [`ProvisionedConcurrencyConfigNotFoundException`](crate::error::ProvisionedConcurrencyConfigNotFoundException) + pub fn build(self) -> crate::error::ProvisionedConcurrencyConfigNotFoundException { + crate::error::ProvisionedConcurrencyConfigNotFoundException { r#type: self.r#type, message: self.message, } } } } -impl ProvisionedConcurrencyConfigNotFoundError { - /// Creates a new builder-style object to manufacture [`ProvisionedConcurrencyConfigNotFoundError`](crate::error::ProvisionedConcurrencyConfigNotFoundError) - pub fn builder() -> crate::error::provisioned_concurrency_config_not_found_error::Builder { - crate::error::provisioned_concurrency_config_not_found_error::Builder::default() +impl ProvisionedConcurrencyConfigNotFoundException { + /// Creates a new builder-style object to manufacture [`ProvisionedConcurrencyConfigNotFoundException`](crate::error::ProvisionedConcurrencyConfigNotFoundException) + pub fn builder() -> crate::error::provisioned_concurrency_config_not_found_exception::Builder { + crate::error::provisioned_concurrency_config_not_found_exception::Builder::default() } } ///

    The permissions policy for the resource is too large. Learn more ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PolicyLengthExceededError { - #[serde(rename = "Type")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PolicyLengthExceededException { pub r#type: std::option::Option, - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for PolicyLengthExceededError { +impl std::fmt::Debug for PolicyLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PolicyLengthExceededError"); + let mut formatter = f.debug_struct("PolicyLengthExceededException"); formatter.field("r#type", &self.r#type); formatter.field("message", &self.message); formatter.finish() } } -impl PolicyLengthExceededError { +impl PolicyLengthExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PolicyLengthExceededError { +impl std::fmt::Display for PolicyLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PolicyLengthExceededError [PolicyLengthExceededException]" - )?; + write!(f, "PolicyLengthExceededException")?; if let Some(inner_34) = &self.message { write!(f, ": {}", inner_34)?; } Ok(()) } } -impl std::error::Error for PolicyLengthExceededError {} -/// See [`PolicyLengthExceededError`](crate::error::PolicyLengthExceededError) -pub mod policy_length_exceeded_error { - /// A builder for [`PolicyLengthExceededError`](crate::error::PolicyLengthExceededError) +impl std::error::Error for PolicyLengthExceededException {} +/// See [`PolicyLengthExceededException`](crate::error::PolicyLengthExceededException) +pub mod policy_length_exceeded_exception { + /// A builder for [`PolicyLengthExceededException`](crate::error::PolicyLengthExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9309,18 +9434,18 @@ pub mod policy_length_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`PolicyLengthExceededError`](crate::error::PolicyLengthExceededError) - pub fn build(self) -> crate::error::PolicyLengthExceededError { - crate::error::PolicyLengthExceededError { + /// Consumes the builder and constructs a [`PolicyLengthExceededException`](crate::error::PolicyLengthExceededException) + pub fn build(self) -> crate::error::PolicyLengthExceededException { + crate::error::PolicyLengthExceededException { r#type: self.r#type, message: self.message, } } } } -impl PolicyLengthExceededError { - /// Creates a new builder-style object to manufacture [`PolicyLengthExceededError`](crate::error::PolicyLengthExceededError) - pub fn builder() -> crate::error::policy_length_exceeded_error::Builder { - crate::error::policy_length_exceeded_error::Builder::default() +impl PolicyLengthExceededException { + /// Creates a new builder-style object to manufacture [`PolicyLengthExceededException`](crate::error::PolicyLengthExceededException) + pub fn builder() -> crate::error::policy_length_exceeded_exception::Builder { + crate::error::policy_length_exceeded_exception::Builder::default() } } diff --git a/sdk/lambda/src/error_meta.rs b/sdk/lambda/src/error_meta.rs index 0bc928916c98..87810d825b28 100644 --- a/sdk/lambda/src/error_meta.rs +++ b/sdk/lambda/src/error_meta.rs @@ -2,81 +2,81 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - CodeSigningConfigNotFoundError(crate::error::CodeSigningConfigNotFoundError), - CodeStorageExceededError(crate::error::CodeStorageExceededError), - CodeVerificationFailedError(crate::error::CodeVerificationFailedError), - EC2AccessDeniedError(crate::error::EC2AccessDeniedError), - EC2ThrottledError(crate::error::EC2ThrottledError), - EC2UnexpectedError(crate::error::EC2UnexpectedError), - EFSIOError(crate::error::EFSIOError), - EFSMountConnectivityError(crate::error::EFSMountConnectivityError), - EFSMountFailureError(crate::error::EFSMountFailureError), - EFSMountTimeoutError(crate::error::EFSMountTimeoutError), - ENILimitReachedError(crate::error::ENILimitReachedError), - InvalidCodeSignatureError(crate::error::InvalidCodeSignatureError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - InvalidRequestContentError(crate::error::InvalidRequestContentError), - InvalidRuntimeError(crate::error::InvalidRuntimeError), - InvalidSecurityGroupIDError(crate::error::InvalidSecurityGroupIDError), - InvalidSubnetIDError(crate::error::InvalidSubnetIDError), - InvalidZipFileError(crate::error::InvalidZipFileError), - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KMSNotFoundError(crate::error::KMSNotFoundError), - PolicyLengthExceededError(crate::error::PolicyLengthExceededError), - PreconditionFailedError(crate::error::PreconditionFailedError), - ProvisionedConcurrencyConfigNotFoundError( - crate::error::ProvisionedConcurrencyConfigNotFoundError, + CodeSigningConfigNotFoundException(crate::error::CodeSigningConfigNotFoundException), + CodeStorageExceededException(crate::error::CodeStorageExceededException), + CodeVerificationFailedException(crate::error::CodeVerificationFailedException), + Ec2AccessDeniedException(crate::error::Ec2AccessDeniedException), + Ec2ThrottledException(crate::error::Ec2ThrottledException), + Ec2UnexpectedException(crate::error::Ec2UnexpectedException), + EfsioException(crate::error::EfsioException), + EfsMountConnectivityException(crate::error::EfsMountConnectivityException), + EfsMountFailureException(crate::error::EfsMountFailureException), + EfsMountTimeoutException(crate::error::EfsMountTimeoutException), + EniLimitReachedException(crate::error::EniLimitReachedException), + InvalidCodeSignatureException(crate::error::InvalidCodeSignatureException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + InvalidRequestContentException(crate::error::InvalidRequestContentException), + InvalidRuntimeException(crate::error::InvalidRuntimeException), + InvalidSecurityGroupIdException(crate::error::InvalidSecurityGroupIdException), + InvalidSubnetIdException(crate::error::InvalidSubnetIdException), + InvalidZipFileException(crate::error::InvalidZipFileException), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KmsNotFoundException(crate::error::KmsNotFoundException), + PolicyLengthExceededException(crate::error::PolicyLengthExceededException), + PreconditionFailedException(crate::error::PreconditionFailedException), + ProvisionedConcurrencyConfigNotFoundException( + crate::error::ProvisionedConcurrencyConfigNotFoundException, ), - RequestTooLargeError(crate::error::RequestTooLargeError), - ResourceConflictError(crate::error::ResourceConflictError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourceNotReadyError(crate::error::ResourceNotReadyError), - ServiceError(crate::error::ServiceError), - SubnetIPAddressLimitReachedError(crate::error::SubnetIPAddressLimitReachedError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnsupportedMediaTypeError(crate::error::UnsupportedMediaTypeError), + RequestTooLargeException(crate::error::RequestTooLargeException), + ResourceConflictException(crate::error::ResourceConflictException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourceNotReadyException(crate::error::ResourceNotReadyException), + ServiceException(crate::error::ServiceException), + SubnetIpAddressLimitReachedException(crate::error::SubnetIpAddressLimitReachedException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnsupportedMediaTypeException(crate::error::UnsupportedMediaTypeException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::CodeSigningConfigNotFoundError(inner) => inner.fmt(f), - Error::CodeStorageExceededError(inner) => inner.fmt(f), - Error::CodeVerificationFailedError(inner) => inner.fmt(f), - Error::EC2AccessDeniedError(inner) => inner.fmt(f), - Error::EC2ThrottledError(inner) => inner.fmt(f), - Error::EC2UnexpectedError(inner) => inner.fmt(f), - Error::EFSIOError(inner) => inner.fmt(f), - Error::EFSMountConnectivityError(inner) => inner.fmt(f), - Error::EFSMountFailureError(inner) => inner.fmt(f), - Error::EFSMountTimeoutError(inner) => inner.fmt(f), - Error::ENILimitReachedError(inner) => inner.fmt(f), - Error::InvalidCodeSignatureError(inner) => inner.fmt(f), - Error::InvalidParameterValueError(inner) => inner.fmt(f), - Error::InvalidRequestContentError(inner) => inner.fmt(f), - Error::InvalidRuntimeError(inner) => inner.fmt(f), - Error::InvalidSecurityGroupIDError(inner) => inner.fmt(f), - Error::InvalidSubnetIDError(inner) => inner.fmt(f), - Error::InvalidZipFileError(inner) => inner.fmt(f), - Error::KMSAccessDeniedError(inner) => inner.fmt(f), - Error::KMSDisabledError(inner) => inner.fmt(f), - Error::KMSInvalidStateError(inner) => inner.fmt(f), - Error::KMSNotFoundError(inner) => inner.fmt(f), - Error::PolicyLengthExceededError(inner) => inner.fmt(f), - Error::PreconditionFailedError(inner) => inner.fmt(f), - Error::ProvisionedConcurrencyConfigNotFoundError(inner) => inner.fmt(f), - Error::RequestTooLargeError(inner) => inner.fmt(f), - Error::ResourceConflictError(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::ResourceNotReadyError(inner) => inner.fmt(f), - Error::ServiceError(inner) => inner.fmt(f), - Error::SubnetIPAddressLimitReachedError(inner) => inner.fmt(f), - Error::TooManyRequestsError(inner) => inner.fmt(f), - Error::UnsupportedMediaTypeError(inner) => inner.fmt(f), + Error::CodeSigningConfigNotFoundException(inner) => inner.fmt(f), + Error::CodeStorageExceededException(inner) => inner.fmt(f), + Error::CodeVerificationFailedException(inner) => inner.fmt(f), + Error::Ec2AccessDeniedException(inner) => inner.fmt(f), + Error::Ec2ThrottledException(inner) => inner.fmt(f), + Error::Ec2UnexpectedException(inner) => inner.fmt(f), + Error::EfsioException(inner) => inner.fmt(f), + Error::EfsMountConnectivityException(inner) => inner.fmt(f), + Error::EfsMountFailureException(inner) => inner.fmt(f), + Error::EfsMountTimeoutException(inner) => inner.fmt(f), + Error::EniLimitReachedException(inner) => inner.fmt(f), + Error::InvalidCodeSignatureException(inner) => inner.fmt(f), + Error::InvalidParameterValueException(inner) => inner.fmt(f), + Error::InvalidRequestContentException(inner) => inner.fmt(f), + Error::InvalidRuntimeException(inner) => inner.fmt(f), + Error::InvalidSecurityGroupIdException(inner) => inner.fmt(f), + Error::InvalidSubnetIdException(inner) => inner.fmt(f), + Error::InvalidZipFileException(inner) => inner.fmt(f), + Error::KmsAccessDeniedException(inner) => inner.fmt(f), + Error::KmsDisabledException(inner) => inner.fmt(f), + Error::KmsInvalidStateException(inner) => inner.fmt(f), + Error::KmsNotFoundException(inner) => inner.fmt(f), + Error::PolicyLengthExceededException(inner) => inner.fmt(f), + Error::PreconditionFailedException(inner) => inner.fmt(f), + Error::ProvisionedConcurrencyConfigNotFoundException(inner) => inner.fmt(f), + Error::RequestTooLargeException(inner) => inner.fmt(f), + Error::ResourceConflictException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ResourceNotReadyException(inner) => inner.fmt(f), + Error::ServiceException(inner) => inner.fmt(f), + Error::SubnetIpAddressLimitReachedException(inner) => inner.fmt(f), + Error::TooManyRequestsException(inner) => inner.fmt(f), + Error::UnsupportedMediaTypeException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -86,32 +86,16 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddLayerVersionPermissionErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::AddLayerVersionPermissionErrorKind::PolicyLengthExceededError( - inner, - ) => Error::PolicyLengthExceededError(inner), - crate::error::AddLayerVersionPermissionErrorKind::PreconditionFailedError( - inner, - ) => Error::PreconditionFailedError(inner), - crate::error::AddLayerVersionPermissionErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) - } - crate::error::AddLayerVersionPermissionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::AddLayerVersionPermissionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::AddLayerVersionPermissionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::AddLayerVersionPermissionErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::AddLayerVersionPermissionErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::AddLayerVersionPermissionErrorKind::PolicyLengthExceededException(inner) => Error::PolicyLengthExceededException(inner), + crate::error::AddLayerVersionPermissionErrorKind::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner), + crate::error::AddLayerVersionPermissionErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::AddLayerVersionPermissionErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::AddLayerVersionPermissionErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::AddLayerVersionPermissionErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::AddLayerVersionPermissionErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -120,26 +104,26 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddPermissionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::AddPermissionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::AddPermissionErrorKind::PolicyLengthExceededError(inner) => { - Error::PolicyLengthExceededError(inner) + crate::error::AddPermissionErrorKind::PolicyLengthExceededException(inner) => { + Error::PolicyLengthExceededException(inner) } - crate::error::AddPermissionErrorKind::PreconditionFailedError(inner) => { - Error::PreconditionFailedError(inner) + crate::error::AddPermissionErrorKind::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) } - crate::error::AddPermissionErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::AddPermissionErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::AddPermissionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::AddPermissionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::AddPermissionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::AddPermissionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::AddPermissionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::AddPermissionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::AddPermissionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -151,20 +135,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateAliasErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::CreateAliasErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::CreateAliasErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::CreateAliasErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::CreateAliasErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CreateAliasErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::CreateAliasErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::CreateAliasErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::CreateAliasErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateAliasErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -178,11 +162,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateCodeSigningConfigErrorKind::InvalidParameterValueError( + crate::error::CreateCodeSigningConfigErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::CreateCodeSigningConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::CreateCodeSigningConfigErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::CreateCodeSigningConfigErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -198,21 +182,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateEventSourceMappingErrorKind::InvalidParameterValueError( + crate::error::CreateEventSourceMappingErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::CreateEventSourceMappingErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) - } - crate::error::CreateEventSourceMappingErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::CreateEventSourceMappingErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::CreateEventSourceMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::CreateEventSourceMappingErrorKind::ResourceConflictException( + inner, + ) => Error::ResourceConflictException(inner), + crate::error::CreateEventSourceMappingErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::CreateEventSourceMappingErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } + crate::error::CreateEventSourceMappingErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::CreateEventSourceMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -225,32 +209,32 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateFunctionErrorKind::CodeSigningConfigNotFoundError(inner) => { - Error::CodeSigningConfigNotFoundError(inner) - } - crate::error::CreateFunctionErrorKind::CodeStorageExceededError(inner) => { - Error::CodeStorageExceededError(inner) + crate::error::CreateFunctionErrorKind::CodeSigningConfigNotFoundException( + inner, + ) => Error::CodeSigningConfigNotFoundException(inner), + crate::error::CreateFunctionErrorKind::CodeStorageExceededException(inner) => { + Error::CodeStorageExceededException(inner) } - crate::error::CreateFunctionErrorKind::CodeVerificationFailedError(inner) => { - Error::CodeVerificationFailedError(inner) + crate::error::CreateFunctionErrorKind::CodeVerificationFailedException(inner) => { + Error::CodeVerificationFailedException(inner) } - crate::error::CreateFunctionErrorKind::InvalidCodeSignatureError(inner) => { - Error::InvalidCodeSignatureError(inner) + crate::error::CreateFunctionErrorKind::InvalidCodeSignatureException(inner) => { + Error::InvalidCodeSignatureException(inner) } - crate::error::CreateFunctionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::CreateFunctionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::CreateFunctionErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::CreateFunctionErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::CreateFunctionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CreateFunctionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::CreateFunctionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::CreateFunctionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::CreateFunctionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateFunctionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -262,17 +246,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteAliasErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::DeleteAliasErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::DeleteAliasErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::DeleteAliasErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::DeleteAliasErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::DeleteAliasErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::DeleteAliasErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteAliasErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -286,17 +270,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteCodeSigningConfigErrorKind::InvalidParameterValueError( + crate::error::DeleteCodeSigningConfigErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::DeleteCodeSigningConfigErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) - } - crate::error::DeleteCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::DeleteCodeSigningConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::DeleteCodeSigningConfigErrorKind::ResourceConflictException( + inner, + ) => Error::ResourceConflictException(inner), + crate::error::DeleteCodeSigningConfigErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::DeleteCodeSigningConfigErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::DeleteCodeSigningConfigErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -312,21 +296,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteEventSourceMappingErrorKind::InvalidParameterValueError( + crate::error::DeleteEventSourceMappingErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::DeleteEventSourceMappingErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::DeleteEventSourceMappingErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::DeleteEventSourceMappingErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::DeleteEventSourceMappingErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::DeleteEventSourceMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteEventSourceMappingErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::DeleteEventSourceMappingErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } + crate::error::DeleteEventSourceMappingErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DeleteEventSourceMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -339,20 +323,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteFunctionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::DeleteFunctionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::DeleteFunctionErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::DeleteFunctionErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::DeleteFunctionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteFunctionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteFunctionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::DeleteFunctionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::DeleteFunctionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteFunctionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -368,12 +352,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(inner) => Error::CodeSigningConfigNotFoundError(inner), - crate::error::DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner), - crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::DeleteFunctionCodeSigningConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(inner) => Error::CodeSigningConfigNotFoundException(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::DeleteFunctionCodeSigningConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -385,26 +369,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteFunctionConcurrencyErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::DeleteFunctionConcurrencyErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) - } - crate::error::DeleteFunctionConcurrencyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::DeleteFunctionConcurrencyErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::DeleteFunctionConcurrencyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::DeleteFunctionConcurrencyErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::DeleteFunctionConcurrencyErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DeleteFunctionConcurrencyErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::DeleteFunctionConcurrencyErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::DeleteFunctionConcurrencyErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -417,10 +389,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::DeleteFunctionEventInvokeConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DeleteFunctionEventInvokeConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::DeleteFunctionEventInvokeConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -431,11 +403,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLayerVersionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::DeleteLayerVersionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::DeleteLayerVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteLayerVersionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteLayerVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -453,11 +425,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner), - crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::DeleteProvisionedConcurrencyConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -468,11 +440,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountSettingsErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetAccountSettingsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetAccountSettingsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAccountSettingsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetAccountSettingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -486,15 +458,17 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAliasErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::GetAliasErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::GetAliasErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetAliasErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetAliasErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::GetAliasErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAliasErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) + } + crate::error::GetAliasErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -506,14 +480,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetCodeSigningConfigErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) - } - crate::error::GetCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetCodeSigningConfigErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::GetCodeSigningConfigErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetCodeSigningConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetCodeSigningConfigErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::GetCodeSigningConfigErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -527,17 +501,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetEventSourceMappingErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) - } - crate::error::GetEventSourceMappingErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetEventSourceMappingErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::GetEventSourceMappingErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetEventSourceMappingErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetEventSourceMappingErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetEventSourceMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetEventSourceMappingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetEventSourceMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -551,17 +525,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFunctionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::GetFunctionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::GetFunctionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetFunctionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetFunctionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetFunctionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetFunctionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetFunctionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetFunctionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -576,23 +550,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::GetFunctionCodeSigningConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::GetFunctionCodeSigningConfigErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::GetFunctionCodeSigningConfigErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::GetFunctionCodeSigningConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::GetFunctionCodeSigningConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -601,17 +565,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFunctionConcurrencyErrorKind::InvalidParameterValueError( + crate::error::GetFunctionConcurrencyErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::GetFunctionConcurrencyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::GetFunctionConcurrencyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetFunctionConcurrencyErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetFunctionConcurrencyErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetFunctionConcurrencyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetFunctionConcurrencyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetFunctionConcurrencyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -627,18 +591,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFunctionConfigurationErrorKind::InvalidParameterValueError( + crate::error::GetFunctionConfigurationErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::GetFunctionConfigurationErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::GetFunctionConfigurationErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::GetFunctionConfigurationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::GetFunctionConfigurationErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::GetFunctionConfigurationErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } + crate::error::GetFunctionConfigurationErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::GetFunctionConfigurationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -654,23 +618,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::GetFunctionEventInvokeConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::GetFunctionEventInvokeConfigErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::GetFunctionEventInvokeConfigErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::GetFunctionEventInvokeConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::GetFunctionEventInvokeConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -679,17 +633,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLayerVersionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::GetLayerVersionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::GetLayerVersionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLayerVersionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLayerVersionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetLayerVersionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetLayerVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetLayerVersionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetLayerVersionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -701,17 +655,17 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLayerVersionByArnErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) - } - crate::error::GetLayerVersionByArnErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLayerVersionByArnErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::GetLayerVersionByArnErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLayerVersionByArnErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetLayerVersionByArnErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetLayerVersionByArnErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetLayerVersionByArnErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetLayerVersionByArnErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -725,17 +679,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLayerVersionPolicyErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) - } - crate::error::GetLayerVersionPolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetLayerVersionPolicyErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::GetLayerVersionPolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetLayerVersionPolicyErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::GetLayerVersionPolicyErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetLayerVersionPolicyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetLayerVersionPolicyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetLayerVersionPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -749,15 +703,17 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetPolicyErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::GetPolicyErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::GetPolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetPolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetPolicyErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::GetPolicyErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::GetPolicyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetPolicyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -773,11 +729,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundError(inner) => Error::ProvisionedConcurrencyConfigNotFoundError(inner), - crate::error::GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::GetProvisionedConcurrencyConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException(inner) => Error::ProvisionedConcurrencyConfigNotFoundException(inner), + crate::error::GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::GetProvisionedConcurrencyConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::GetProvisionedConcurrencyConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -788,79 +744,83 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::InvokeErrorKind::EC2AccessDeniedError(inner) => { - Error::EC2AccessDeniedError(inner) + crate::error::InvokeErrorKind::Ec2AccessDeniedException(inner) => { + Error::Ec2AccessDeniedException(inner) + } + crate::error::InvokeErrorKind::Ec2ThrottledException(inner) => { + Error::Ec2ThrottledException(inner) + } + crate::error::InvokeErrorKind::Ec2UnexpectedException(inner) => { + Error::Ec2UnexpectedException(inner) } - crate::error::InvokeErrorKind::EC2ThrottledError(inner) => { - Error::EC2ThrottledError(inner) + crate::error::InvokeErrorKind::EfsioException(inner) => { + Error::EfsioException(inner) } - crate::error::InvokeErrorKind::EC2UnexpectedError(inner) => { - Error::EC2UnexpectedError(inner) + crate::error::InvokeErrorKind::EfsMountConnectivityException(inner) => { + Error::EfsMountConnectivityException(inner) } - crate::error::InvokeErrorKind::EFSIOError(inner) => Error::EFSIOError(inner), - crate::error::InvokeErrorKind::EFSMountConnectivityError(inner) => { - Error::EFSMountConnectivityError(inner) + crate::error::InvokeErrorKind::EfsMountFailureException(inner) => { + Error::EfsMountFailureException(inner) } - crate::error::InvokeErrorKind::EFSMountFailureError(inner) => { - Error::EFSMountFailureError(inner) + crate::error::InvokeErrorKind::EfsMountTimeoutException(inner) => { + Error::EfsMountTimeoutException(inner) } - crate::error::InvokeErrorKind::EFSMountTimeoutError(inner) => { - Error::EFSMountTimeoutError(inner) + crate::error::InvokeErrorKind::EniLimitReachedException(inner) => { + Error::EniLimitReachedException(inner) } - crate::error::InvokeErrorKind::ENILimitReachedError(inner) => { - Error::ENILimitReachedError(inner) + crate::error::InvokeErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::InvokeErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::InvokeErrorKind::InvalidRequestContentException(inner) => { + Error::InvalidRequestContentException(inner) } - crate::error::InvokeErrorKind::InvalidRequestContentError(inner) => { - Error::InvalidRequestContentError(inner) + crate::error::InvokeErrorKind::InvalidRuntimeException(inner) => { + Error::InvalidRuntimeException(inner) } - crate::error::InvokeErrorKind::InvalidRuntimeError(inner) => { - Error::InvalidRuntimeError(inner) + crate::error::InvokeErrorKind::InvalidSecurityGroupIdException(inner) => { + Error::InvalidSecurityGroupIdException(inner) } - crate::error::InvokeErrorKind::InvalidSecurityGroupIDError(inner) => { - Error::InvalidSecurityGroupIDError(inner) + crate::error::InvokeErrorKind::InvalidSubnetIdException(inner) => { + Error::InvalidSubnetIdException(inner) } - crate::error::InvokeErrorKind::InvalidSubnetIDError(inner) => { - Error::InvalidSubnetIDError(inner) + crate::error::InvokeErrorKind::InvalidZipFileException(inner) => { + Error::InvalidZipFileException(inner) } - crate::error::InvokeErrorKind::InvalidZipFileError(inner) => { - Error::InvalidZipFileError(inner) + crate::error::InvokeErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::InvokeErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) + crate::error::InvokeErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::InvokeErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::InvokeErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::InvokeErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::InvokeErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::InvokeErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::InvokeErrorKind::RequestTooLargeException(inner) => { + Error::RequestTooLargeException(inner) } - crate::error::InvokeErrorKind::RequestTooLargeError(inner) => { - Error::RequestTooLargeError(inner) + crate::error::InvokeErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::InvokeErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::InvokeErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::InvokeErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::InvokeErrorKind::ResourceNotReadyException(inner) => { + Error::ResourceNotReadyException(inner) } - crate::error::InvokeErrorKind::ResourceNotReadyError(inner) => { - Error::ResourceNotReadyError(inner) + crate::error::InvokeErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::InvokeErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::InvokeErrorKind::SubnetIPAddressLimitReachedError(inner) => { - Error::SubnetIPAddressLimitReachedError(inner) + crate::error::InvokeErrorKind::SubnetIpAddressLimitReachedException(inner) => { + Error::SubnetIpAddressLimitReachedException(inner) } - crate::error::InvokeErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::InvokeErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::InvokeErrorKind::UnsupportedMediaTypeError(inner) => { - Error::UnsupportedMediaTypeError(inner) + crate::error::InvokeErrorKind::UnsupportedMediaTypeException(inner) => { + Error::UnsupportedMediaTypeException(inner) } crate::error::InvokeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -872,20 +832,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::InvokeAsyncErrorKind::InvalidRequestContentError(inner) => { - Error::InvalidRequestContentError(inner) + crate::error::InvokeAsyncErrorKind::InvalidRequestContentException(inner) => { + Error::InvalidRequestContentException(inner) } - crate::error::InvokeAsyncErrorKind::InvalidRuntimeError(inner) => { - Error::InvalidRuntimeError(inner) + crate::error::InvokeAsyncErrorKind::InvalidRuntimeException(inner) => { + Error::InvalidRuntimeException(inner) } - crate::error::InvokeAsyncErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::InvokeAsyncErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::InvokeAsyncErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::InvokeAsyncErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::InvokeAsyncErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::InvokeAsyncErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::InvokeAsyncErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -897,17 +857,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListAliasesErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::ListAliasesErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::ListAliasesErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListAliasesErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListAliasesErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::ListAliasesErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListAliasesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListAliasesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListAliasesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -919,11 +879,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListCodeSigningConfigsErrorKind::InvalidParameterValueError( + crate::error::ListCodeSigningConfigsErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::ListCodeSigningConfigsErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::ListCodeSigningConfigsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::ListCodeSigningConfigsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -939,17 +899,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListEventSourceMappingsErrorKind::InvalidParameterValueError( + crate::error::ListEventSourceMappingsErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::ListEventSourceMappingsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::ListEventSourceMappingsErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::ListEventSourceMappingsErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::ListEventSourceMappingsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListEventSourceMappingsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListEventSourceMappingsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListEventSourceMappingsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -967,10 +927,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::ListFunctionEventInvokeConfigsErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ListFunctionEventInvokeConfigsErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::ListFunctionEventInvokeConfigsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -981,14 +941,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListFunctionsErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::ListFunctionsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::ListFunctionsErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::ListFunctionsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListFunctionsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListFunctionsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListFunctionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1004,9 +964,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::ListFunctionsByCodeSigningConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), + crate::error::ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ListFunctionsByCodeSigningConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), crate::error::ListFunctionsByCodeSigningConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1017,14 +977,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListLayersErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::ListLayersErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::ListLayersErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::ListLayersErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListLayersErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListLayersErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListLayersErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1036,17 +996,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListLayerVersionsErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::ListLayerVersionsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::ListLayerVersionsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListLayerVersionsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListLayerVersionsErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::ListLayerVersionsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListLayerVersionsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListLayerVersionsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListLayerVersionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1064,10 +1024,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::ListProvisionedConcurrencyConfigsErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ListProvisionedConcurrencyConfigsErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::ListProvisionedConcurrencyConfigsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1078,15 +1038,17 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::ListTagsErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::error::ListTagsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListTagsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListTagsErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::ListTagsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListTagsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1098,17 +1060,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListVersionsByFunctionErrorKind::InvalidParameterValueError( + crate::error::ListVersionsByFunctionErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::ListVersionsByFunctionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::ListVersionsByFunctionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListVersionsByFunctionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::ListVersionsByFunctionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::ListVersionsByFunctionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListVersionsByFunctionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListVersionsByFunctionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1122,20 +1084,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PublishLayerVersionErrorKind::CodeStorageExceededError(inner) => { - Error::CodeStorageExceededError(inner) + crate::error::PublishLayerVersionErrorKind::CodeStorageExceededException(inner) => { + Error::CodeStorageExceededException(inner) } - crate::error::PublishLayerVersionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) - } - crate::error::PublishLayerVersionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PublishLayerVersionErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::PublishLayerVersionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PublishLayerVersionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::PublishLayerVersionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::PublishLayerVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PublishLayerVersionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PublishLayerVersionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1149,26 +1111,26 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PublishVersionErrorKind::CodeStorageExceededError(inner) => { - Error::CodeStorageExceededError(inner) + crate::error::PublishVersionErrorKind::CodeStorageExceededException(inner) => { + Error::CodeStorageExceededException(inner) } - crate::error::PublishVersionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::PublishVersionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::PublishVersionErrorKind::PreconditionFailedError(inner) => { - Error::PreconditionFailedError(inner) + crate::error::PublishVersionErrorKind::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) } - crate::error::PublishVersionErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::PublishVersionErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::PublishVersionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PublishVersionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PublishVersionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::PublishVersionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::PublishVersionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PublishVersionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PublishVersionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1184,12 +1146,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError(inner) => Error::CodeSigningConfigNotFoundError(inner), - crate::error::PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner), - crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::PutFunctionCodeSigningConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::PutFunctionCodeSigningConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException(inner) => Error::CodeSigningConfigNotFoundException(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutFunctionCodeSigningConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1200,20 +1162,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutFunctionConcurrencyErrorKind::InvalidParameterValueError( + crate::error::PutFunctionConcurrencyErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::PutFunctionConcurrencyErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::PutFunctionConcurrencyErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::PutFunctionConcurrencyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutFunctionConcurrencyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::PutFunctionConcurrencyErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::PutFunctionConcurrencyErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::PutFunctionConcurrencyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutFunctionConcurrencyErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PutFunctionConcurrencyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1230,23 +1192,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::PutFunctionEventInvokeConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::PutFunctionEventInvokeConfigErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutFunctionEventInvokeConfigErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::PutFunctionEventInvokeConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutFunctionEventInvokeConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1259,11 +1211,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner), - crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::PutProvisionedConcurrencyConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::PutProvisionedConcurrencyConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutProvisionedConcurrencyConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1277,26 +1229,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveLayerVersionPermissionErrorKind::InvalidParameterValueError( - inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::RemoveLayerVersionPermissionErrorKind::PreconditionFailedError( - inner, - ) => Error::PreconditionFailedError(inner), - crate::error::RemoveLayerVersionPermissionErrorKind::ResourceNotFoundError( - inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::RemoveLayerVersionPermissionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) - } - crate::error::RemoveLayerVersionPermissionErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::RemoveLayerVersionPermissionErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::RemoveLayerVersionPermissionErrorKind::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner), + crate::error::RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::RemoveLayerVersionPermissionErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::RemoveLayerVersionPermissionErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::RemoveLayerVersionPermissionErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1305,20 +1245,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemovePermissionErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::RemovePermissionErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::RemovePermissionErrorKind::PreconditionFailedError(inner) => { - Error::PreconditionFailedError(inner) + crate::error::RemovePermissionErrorKind::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) } - crate::error::RemovePermissionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::RemovePermissionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::RemovePermissionErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::RemovePermissionErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::RemovePermissionErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::RemovePermissionErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::RemovePermissionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1332,20 +1272,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::TagResourceErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::TagResourceErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::TagResourceErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::TagResourceErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::TagResourceErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::TagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1357,20 +1297,20 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::UntagResourceErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::UntagResourceErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::UntagResourceErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UntagResourceErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::UntagResourceErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::UntagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UntagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1382,23 +1322,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateAliasErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::UpdateAliasErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::UpdateAliasErrorKind::PreconditionFailedError(inner) => { - Error::PreconditionFailedError(inner) + crate::error::UpdateAliasErrorKind::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) } - crate::error::UpdateAliasErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::UpdateAliasErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::UpdateAliasErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateAliasErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UpdateAliasErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::UpdateAliasErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::UpdateAliasErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateAliasErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateAliasErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1412,14 +1352,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateCodeSigningConfigErrorKind::InvalidParameterValueError( + crate::error::UpdateCodeSigningConfigErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::UpdateCodeSigningConfigErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::UpdateCodeSigningConfigErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::UpdateCodeSigningConfigErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::UpdateCodeSigningConfigErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } crate::error::UpdateCodeSigningConfigErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1435,24 +1375,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateEventSourceMappingErrorKind::InvalidParameterValueError( + crate::error::UpdateEventSourceMappingErrorKind::InvalidParameterValueException( inner, - ) => Error::InvalidParameterValueError(inner), - crate::error::UpdateEventSourceMappingErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) - } - crate::error::UpdateEventSourceMappingErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) - } - crate::error::UpdateEventSourceMappingErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::UpdateEventSourceMappingErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + ) => Error::InvalidParameterValueException(inner), + crate::error::UpdateEventSourceMappingErrorKind::ResourceConflictException( + inner, + ) => Error::ResourceConflictException(inner), + crate::error::UpdateEventSourceMappingErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::UpdateEventSourceMappingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateEventSourceMappingErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::UpdateEventSourceMappingErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } + crate::error::UpdateEventSourceMappingErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::UpdateEventSourceMappingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1465,35 +1405,35 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundError( + crate::error::UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException( inner, - ) => Error::CodeSigningConfigNotFoundError(inner), - crate::error::UpdateFunctionCodeErrorKind::CodeStorageExceededError(inner) => { - Error::CodeStorageExceededError(inner) - } - crate::error::UpdateFunctionCodeErrorKind::CodeVerificationFailedError(inner) => { - Error::CodeVerificationFailedError(inner) + ) => Error::CodeSigningConfigNotFoundException(inner), + crate::error::UpdateFunctionCodeErrorKind::CodeStorageExceededException(inner) => { + Error::CodeStorageExceededException(inner) } - crate::error::UpdateFunctionCodeErrorKind::InvalidCodeSignatureError(inner) => { - Error::InvalidCodeSignatureError(inner) - } - crate::error::UpdateFunctionCodeErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::UpdateFunctionCodeErrorKind::CodeVerificationFailedException( + inner, + ) => Error::CodeVerificationFailedException(inner), + crate::error::UpdateFunctionCodeErrorKind::InvalidCodeSignatureException(inner) => { + Error::InvalidCodeSignatureException(inner) } - crate::error::UpdateFunctionCodeErrorKind::PreconditionFailedError(inner) => { - Error::PreconditionFailedError(inner) + crate::error::UpdateFunctionCodeErrorKind::InvalidParameterValueException( + inner, + ) => Error::InvalidParameterValueException(inner), + crate::error::UpdateFunctionCodeErrorKind::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) } - crate::error::UpdateFunctionCodeErrorKind::ResourceConflictError(inner) => { - Error::ResourceConflictError(inner) + crate::error::UpdateFunctionCodeErrorKind::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) } - crate::error::UpdateFunctionCodeErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateFunctionCodeErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UpdateFunctionCodeErrorKind::ServiceError(inner) => { - Error::ServiceError(inner) + crate::error::UpdateFunctionCodeErrorKind::ServiceException(inner) => { + Error::ServiceException(inner) } - crate::error::UpdateFunctionCodeErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateFunctionCodeErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateFunctionCodeErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1509,15 +1449,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundError(inner) => Error::CodeSigningConfigNotFoundError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::CodeVerificationFailedError(inner) => Error::CodeVerificationFailedError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureError(inner) => Error::InvalidCodeSignatureError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::PreconditionFailedError(inner) => Error::PreconditionFailedError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::UpdateFunctionConfigurationErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException(inner) => Error::CodeSigningConfigNotFoundException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException(inner) => Error::CodeVerificationFailedException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException(inner) => Error::InvalidCodeSignatureException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::ResourceConflictException(inner) => Error::ResourceConflictException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::UpdateFunctionConfigurationErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::UpdateFunctionConfigurationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1532,10 +1472,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueError(inner) => Error::InvalidParameterValueError(inner), - crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::UpdateFunctionEventInvokeConfigErrorKind::ServiceError(inner) => Error::ServiceError(inner), - crate::error::UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner), + crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::UpdateFunctionEventInvokeConfigErrorKind::ServiceException(inner) => Error::ServiceException(inner), + crate::error::UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::UpdateFunctionEventInvokeConfigErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), diff --git a/sdk/lambda/src/http_serde.rs b/sdk/lambda/src/http_serde.rs index 6159fbbf4203..9ffd92067eaa 100644 --- a/sdk/lambda/src/http_serde.rs +++ b/sdk/lambda/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_header_add_layer_version_permission_retry_after_seconds( +pub fn deser_header_add_layer_version_permission_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -7,7 +7,7 @@ pub fn deser_header_add_layer_version_permission_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_add_permission_retry_after_seconds( +pub fn deser_header_add_permission_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -15,7 +15,7 @@ pub fn deser_header_add_permission_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_alias_retry_after_seconds( +pub fn deser_header_create_alias_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -23,7 +23,7 @@ pub fn deser_header_create_alias_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_event_source_mapping_retry_after_seconds( +pub fn deser_header_create_event_source_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -31,7 +31,7 @@ pub fn deser_header_create_event_source_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_function_retry_after_seconds( +pub fn deser_header_create_function_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -39,7 +39,7 @@ pub fn deser_header_create_function_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_alias_retry_after_seconds( +pub fn deser_header_delete_alias_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -47,7 +47,7 @@ pub fn deser_header_delete_alias_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_event_source_mapping_retry_after_seconds( +pub fn deser_header_delete_event_source_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -55,7 +55,7 @@ pub fn deser_header_delete_event_source_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_function_retry_after_seconds( +pub fn deser_header_delete_function_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -63,7 +63,7 @@ pub fn deser_header_delete_function_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_function_code_signing_config_retry_after_seconds( +pub fn deser_header_delete_function_code_signing_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -71,7 +71,7 @@ pub fn deser_header_delete_function_code_signing_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_function_concurrency_retry_after_seconds( +pub fn deser_header_delete_function_concurrency_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -79,7 +79,7 @@ pub fn deser_header_delete_function_concurrency_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_function_event_invoke_config_retry_after_seconds( +pub fn deser_header_delete_function_event_invoke_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -87,7 +87,7 @@ pub fn deser_header_delete_function_event_invoke_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_layer_version_retry_after_seconds( +pub fn deser_header_delete_layer_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -95,7 +95,7 @@ pub fn deser_header_delete_layer_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_provisioned_concurrency_config_retry_after_seconds( +pub fn deser_header_delete_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -103,7 +103,7 @@ pub fn deser_header_delete_provisioned_concurrency_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_account_settings_retry_after_seconds( +pub fn deser_header_get_account_settings_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -111,7 +111,7 @@ pub fn deser_header_get_account_settings_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_alias_retry_after_seconds( +pub fn deser_header_get_alias_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -119,7 +119,7 @@ pub fn deser_header_get_alias_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_event_source_mapping_retry_after_seconds( +pub fn deser_header_get_event_source_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -127,7 +127,7 @@ pub fn deser_header_get_event_source_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_function_retry_after_seconds( +pub fn deser_header_get_function_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -135,7 +135,7 @@ pub fn deser_header_get_function_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_function_code_signing_config_retry_after_seconds( +pub fn deser_header_get_function_code_signing_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -143,7 +143,7 @@ pub fn deser_header_get_function_code_signing_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_function_concurrency_retry_after_seconds( +pub fn deser_header_get_function_concurrency_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -151,7 +151,7 @@ pub fn deser_header_get_function_concurrency_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_function_configuration_retry_after_seconds( +pub fn deser_header_get_function_configuration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -159,7 +159,7 @@ pub fn deser_header_get_function_configuration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_function_event_invoke_config_retry_after_seconds( +pub fn deser_header_get_function_event_invoke_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -167,7 +167,7 @@ pub fn deser_header_get_function_event_invoke_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_layer_version_retry_after_seconds( +pub fn deser_header_get_layer_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -175,7 +175,7 @@ pub fn deser_header_get_layer_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_layer_version_by_arn_retry_after_seconds( +pub fn deser_header_get_layer_version_by_arn_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -183,7 +183,7 @@ pub fn deser_header_get_layer_version_by_arn_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_layer_version_policy_retry_after_seconds( +pub fn deser_header_get_layer_version_policy_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -191,7 +191,7 @@ pub fn deser_header_get_layer_version_policy_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_policy_retry_after_seconds( +pub fn deser_header_get_policy_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -199,7 +199,7 @@ pub fn deser_header_get_policy_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_provisioned_concurrency_config_retry_after_seconds( +pub fn deser_header_get_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -207,7 +207,7 @@ pub fn deser_header_get_provisioned_concurrency_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_invoke_retry_after_seconds( +pub fn deser_header_invoke_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -215,7 +215,7 @@ pub fn deser_header_invoke_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_invoke_executed_version( +pub fn deser_header_invoke_invoke_output_executed_version( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -223,7 +223,7 @@ pub fn deser_header_invoke_executed_version( smithy_http::header::one_or_none(headers) } -pub fn deser_header_invoke_function_error( +pub fn deser_header_invoke_invoke_output_function_error( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -231,7 +231,7 @@ pub fn deser_header_invoke_function_error( smithy_http::header::one_or_none(headers) } -pub fn deser_header_invoke_log_result( +pub fn deser_header_invoke_invoke_output_log_result( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -239,7 +239,7 @@ pub fn deser_header_invoke_log_result( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_invoke_payload( +pub fn deser_payload_invoke_invoke_output_payload( body: &[u8], ) -> std::result::Result, crate::error::InvokeError> { (!body.is_empty()) @@ -247,7 +247,7 @@ pub fn deser_payload_invoke_payload( .transpose() } -pub fn deser_header_list_aliases_retry_after_seconds( +pub fn deser_header_list_aliases_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -255,7 +255,7 @@ pub fn deser_header_list_aliases_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_event_source_mappings_retry_after_seconds( +pub fn deser_header_list_event_source_mappings_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -263,7 +263,7 @@ pub fn deser_header_list_event_source_mappings_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_function_event_invoke_configs_retry_after_seconds( +pub fn deser_header_list_function_event_invoke_configs_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -271,7 +271,7 @@ pub fn deser_header_list_function_event_invoke_configs_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_functions_retry_after_seconds( +pub fn deser_header_list_functions_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -279,7 +279,7 @@ pub fn deser_header_list_functions_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_layers_retry_after_seconds( +pub fn deser_header_list_layers_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -287,7 +287,7 @@ pub fn deser_header_list_layers_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_layer_versions_retry_after_seconds( +pub fn deser_header_list_layer_versions_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -295,7 +295,7 @@ pub fn deser_header_list_layer_versions_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_provisioned_concurrency_configs_retry_after_seconds( +pub fn deser_header_list_provisioned_concurrency_configs_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -303,7 +303,7 @@ pub fn deser_header_list_provisioned_concurrency_configs_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_tags_retry_after_seconds( +pub fn deser_header_list_tags_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -311,7 +311,7 @@ pub fn deser_header_list_tags_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_versions_by_function_retry_after_seconds( +pub fn deser_header_list_versions_by_function_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -319,7 +319,7 @@ pub fn deser_header_list_versions_by_function_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_publish_layer_version_retry_after_seconds( +pub fn deser_header_publish_layer_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -327,7 +327,7 @@ pub fn deser_header_publish_layer_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_publish_version_retry_after_seconds( +pub fn deser_header_publish_version_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -335,7 +335,7 @@ pub fn deser_header_publish_version_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_function_code_signing_config_retry_after_seconds( +pub fn deser_header_put_function_code_signing_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -343,7 +343,7 @@ pub fn deser_header_put_function_code_signing_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_function_concurrency_retry_after_seconds( +pub fn deser_header_put_function_concurrency_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -351,7 +351,7 @@ pub fn deser_header_put_function_concurrency_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_function_event_invoke_config_retry_after_seconds( +pub fn deser_header_put_function_event_invoke_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -359,7 +359,7 @@ pub fn deser_header_put_function_event_invoke_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_provisioned_concurrency_config_retry_after_seconds( +pub fn deser_header_put_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -367,7 +367,7 @@ pub fn deser_header_put_provisioned_concurrency_config_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_remove_layer_version_permission_retry_after_seconds( +pub fn deser_header_remove_layer_version_permission_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -375,7 +375,7 @@ pub fn deser_header_remove_layer_version_permission_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_remove_permission_retry_after_seconds( +pub fn deser_header_remove_permission_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -383,7 +383,7 @@ pub fn deser_header_remove_permission_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_tag_resource_retry_after_seconds( +pub fn deser_header_tag_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -391,7 +391,7 @@ pub fn deser_header_tag_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_untag_resource_retry_after_seconds( +pub fn deser_header_untag_resource_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -399,7 +399,7 @@ pub fn deser_header_untag_resource_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_alias_retry_after_seconds( +pub fn deser_header_update_alias_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -407,7 +407,7 @@ pub fn deser_header_update_alias_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_event_source_mapping_retry_after_seconds( +pub fn deser_header_update_event_source_mapping_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -415,7 +415,7 @@ pub fn deser_header_update_event_source_mapping_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_function_code_retry_after_seconds( +pub fn deser_header_update_function_code_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -423,7 +423,7 @@ pub fn deser_header_update_function_code_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_function_configuration_retry_after_seconds( +pub fn deser_header_update_function_configuration_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -431,7 +431,7 @@ pub fn deser_header_update_function_configuration_retry_after_seconds( smithy_http::header::one_or_none(headers) } -pub fn deser_header_update_function_event_invoke_config_retry_after_seconds( +pub fn deser_header_update_function_event_invoke_config_too_many_requests_exception_retry_after_seconds( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { diff --git a/sdk/lambda/src/input.rs b/sdk/lambda/src/input.rs index eb1938e6d3e3..35525f610fe4 100644 --- a/sdk/lambda/src/input.rs +++ b/sdk/lambda/src/input.rs @@ -91,7 +91,7 @@ pub mod add_layer_version_permission_input { smithy_http::operation::BuildError, > { Ok(crate::input::AddLayerVersionPermissionInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, version_number: self.version_number.unwrap_or_default(), statement_id: self.statement_id, action: self.action, @@ -167,14 +167,43 @@ impl AddLayerVersionPermissionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version_number = { + let input = &self.version_number; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version_number", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false), - VersionNumber = smithy_http::label::fmt_default(&self.version_number) + LayerName = layer_name, + VersionNumber = version_number ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -188,7 +217,7 @@ impl AddLayerVersionPermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("POST").uri(uri)) } @@ -353,7 +382,7 @@ pub mod add_permission_input { ) -> std::result::Result { Ok(crate::input::AddPermissionInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, statement_id: self.statement_id, action: self.action, principal: self.principal, @@ -429,13 +458,31 @@ impl AddPermissionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/policy", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -449,7 +496,7 @@ impl AddPermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("POST").uri(uri)) } @@ -569,7 +616,7 @@ pub mod create_alias_input { ) -> std::result::Result { Ok(crate::input::CreateAliasInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, name: self.name, function_version: self.function_version, description: self.description, @@ -641,13 +688,31 @@ impl CreateAliasInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/aliases", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -655,7 +720,7 @@ impl CreateAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -804,8 +869,9 @@ impl CreateCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2020-04-22/code-signing-configs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2020-04-22/code-signing-configs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -813,7 +879,7 @@ impl CreateCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1241,8 +1307,9 @@ impl CreateEventSourceMappingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2015-03-31/event-source-mappings").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2015-03-31/event-source-mappings").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1250,7 +1317,7 @@ impl CreateEventSourceMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1657,8 +1724,9 @@ impl CreateFunctionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2015-03-31/functions").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2015-03-31/functions").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1666,7 +1734,7 @@ impl CreateFunctionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1748,8 +1816,8 @@ pub mod delete_alias_input { ) -> std::result::Result { Ok(crate::input::DeleteAliasInput { - function_name: self.function_name.unwrap_or_default(), - name: self.name.unwrap_or_default(), + function_name: self.function_name, + name: self.name, }) } } @@ -1814,14 +1882,49 @@ impl DeleteAliasInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false), - Name = smithy_http::label::fmt_string(&self.name, false) + FunctionName = function_name, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1829,7 +1932,7 @@ impl DeleteAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1884,7 +1987,7 @@ pub mod delete_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteCodeSigningConfigInput { - code_signing_config_arn: self.code_signing_config_arn.unwrap_or_default(), + code_signing_config_arn: self.code_signing_config_arn, }) } } @@ -1950,14 +2053,31 @@ impl DeleteCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let code_signing_config_arn = { + let input = &self.code_signing_config_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", - CodeSigningConfigArn = - smithy_http::label::fmt_string(&self.code_signing_config_arn, false) + CodeSigningConfigArn = code_signing_config_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1965,7 +2085,7 @@ impl DeleteCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2016,9 +2136,7 @@ pub mod delete_event_source_mapping_input { crate::input::DeleteEventSourceMappingInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteEventSourceMappingInput { - uuid: self.uuid.unwrap_or_default(), - }) + Ok(crate::input::DeleteEventSourceMappingInput { uuid: self.uuid }) } } } @@ -2083,13 +2201,31 @@ impl DeleteEventSourceMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let uuid = { + let input = &self.uuid; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/event-source-mappings/{UUID}", - UUID = smithy_http::label::fmt_string(&self.uuid, false) + UUID = uuid ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2097,7 +2233,7 @@ impl DeleteEventSourceMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2181,7 +2317,7 @@ pub mod delete_function_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteFunctionInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -2247,13 +2383,31 @@ impl DeleteFunctionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2267,7 +2421,7 @@ impl DeleteFunctionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -2342,7 +2496,7 @@ pub mod delete_function_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteFunctionCodeSigningConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, }) } } @@ -2408,13 +2562,31 @@ impl DeleteFunctionCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-06-30/functions/{FunctionName}/code-signing-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2422,7 +2594,7 @@ impl DeleteFunctionCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2496,7 +2668,7 @@ pub mod delete_function_concurrency_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteFunctionConcurrencyInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, }) } } @@ -2562,13 +2734,31 @@ impl DeleteFunctionConcurrencyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2017-10-31/functions/{FunctionName}/concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2576,7 +2766,7 @@ impl DeleteFunctionConcurrencyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2660,7 +2850,7 @@ pub mod delete_function_event_invoke_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteFunctionEventInvokeConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -2727,13 +2917,31 @@ impl DeleteFunctionEventInvokeConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-25/functions/{FunctionName}/event-invoke-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2747,7 +2955,7 @@ impl DeleteFunctionEventInvokeConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -2810,7 +3018,7 @@ pub mod delete_layer_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteLayerVersionInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, version_number: self.version_number.unwrap_or_default(), }) } @@ -2876,14 +3084,43 @@ impl DeleteLayerVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version_number = { + let input = &self.version_number; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version_number", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false), - VersionNumber = smithy_http::label::fmt_default(&self.version_number) + LayerName = layer_name, + VersionNumber = version_number ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2891,7 +3128,7 @@ impl DeleteLayerVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2975,7 +3212,7 @@ pub mod delete_provisioned_concurrency_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteProvisionedConcurrencyConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -3042,13 +3279,31 @@ impl DeleteProvisionedConcurrencyConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -3062,7 +3317,7 @@ impl DeleteProvisionedConcurrencyConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -3167,8 +3422,9 @@ impl GetAccountSettingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2016-08-19/account-settings").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2016-08-19/account-settings").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3176,7 +3432,7 @@ impl GetAccountSettingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3258,8 +3514,8 @@ pub mod get_alias_input { ) -> std::result::Result { Ok(crate::input::GetAliasInput { - function_name: self.function_name.unwrap_or_default(), - name: self.name.unwrap_or_default(), + function_name: self.function_name, + name: self.name, }) } } @@ -3319,14 +3575,49 @@ impl GetAliasInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false), - Name = smithy_http::label::fmt_string(&self.name, false) + FunctionName = function_name, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3334,7 +3625,7 @@ impl GetAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3389,7 +3680,7 @@ pub mod get_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetCodeSigningConfigInput { - code_signing_config_arn: self.code_signing_config_arn.unwrap_or_default(), + code_signing_config_arn: self.code_signing_config_arn, }) } } @@ -3454,14 +3745,31 @@ impl GetCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let code_signing_config_arn = { + let input = &self.code_signing_config_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", - CodeSigningConfigArn = - smithy_http::label::fmt_string(&self.code_signing_config_arn, false) + CodeSigningConfigArn = code_signing_config_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3469,7 +3777,7 @@ impl GetCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3520,9 +3828,7 @@ pub mod get_event_source_mapping_input { crate::input::GetEventSourceMappingInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetEventSourceMappingInput { - uuid: self.uuid.unwrap_or_default(), - }) + Ok(crate::input::GetEventSourceMappingInput { uuid: self.uuid }) } } } @@ -3586,13 +3892,31 @@ impl GetEventSourceMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let uuid = { + let input = &self.uuid; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/event-source-mappings/{UUID}", - UUID = smithy_http::label::fmt_string(&self.uuid, false) + UUID = uuid ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3600,7 +3924,7 @@ impl GetEventSourceMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3682,7 +4006,7 @@ pub mod get_function_input { ) -> std::result::Result { Ok(crate::input::GetFunctionInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -3748,13 +4072,31 @@ impl GetFunctionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -3768,7 +4110,7 @@ impl GetFunctionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -3843,7 +4185,7 @@ pub mod get_function_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetFunctionCodeSigningConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, }) } } @@ -3909,13 +4251,31 @@ impl GetFunctionCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-06-30/functions/{FunctionName}/code-signing-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3923,7 +4283,7 @@ impl GetFunctionCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3997,7 +4357,7 @@ pub mod get_function_concurrency_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetFunctionConcurrencyInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, }) } } @@ -4062,13 +4422,31 @@ impl GetFunctionConcurrencyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-30/functions/{FunctionName}/concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4076,7 +4454,7 @@ impl GetFunctionConcurrencyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4160,7 +4538,7 @@ pub mod get_function_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetFunctionConfigurationInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -4227,13 +4605,31 @@ impl GetFunctionConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/configuration", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4247,7 +4643,7 @@ impl GetFunctionConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4332,7 +4728,7 @@ pub mod get_function_event_invoke_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetFunctionEventInvokeConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -4399,13 +4795,31 @@ impl GetFunctionEventInvokeConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-25/functions/{FunctionName}/event-invoke-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4419,7 +4833,7 @@ impl GetFunctionEventInvokeConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4482,7 +4896,7 @@ pub mod get_layer_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetLayerVersionInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, version_number: self.version_number.unwrap_or_default(), }) } @@ -4548,14 +4962,43 @@ impl GetLayerVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version_number = { + let input = &self.version_number; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version_number", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false), - VersionNumber = smithy_http::label::fmt_default(&self.version_number) + LayerName = layer_name, + VersionNumber = version_number ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4563,7 +5006,7 @@ impl GetLayerVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4678,8 +5121,9 @@ impl GetLayerVersionByArnInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2018-10-31/layers").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2018-10-31/layers").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4694,7 +5138,7 @@ impl GetLayerVersionByArnInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4757,7 +5201,7 @@ pub mod get_layer_version_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetLayerVersionPolicyInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, version_number: self.version_number.unwrap_or_default(), }) } @@ -4823,14 +5267,43 @@ impl GetLayerVersionPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version_number = { + let input = &self.version_number; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version_number", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false), - VersionNumber = smithy_http::label::fmt_default(&self.version_number) + LayerName = layer_name, + VersionNumber = version_number ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4838,7 +5311,7 @@ impl GetLayerVersionPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4920,7 +5393,7 @@ pub mod get_policy_input { ) -> std::result::Result { Ok(crate::input::GetPolicyInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -4981,13 +5454,31 @@ impl GetPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/policy", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5001,7 +5492,7 @@ impl GetPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5086,7 +5577,7 @@ pub mod get_provisioned_concurrency_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetProvisionedConcurrencyConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, }) } @@ -5153,13 +5644,31 @@ impl GetProvisionedConcurrencyConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5173,7 +5682,7 @@ impl GetProvisionedConcurrencyConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5321,7 +5830,7 @@ pub mod invoke_input { ) -> std::result::Result { Ok(crate::input::InvokeInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, invocation_type: self.invocation_type, log_type: self.log_type, client_context: self.client_context, @@ -5383,13 +5892,31 @@ impl InvokeInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/invocations", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5463,7 +5990,7 @@ impl InvokeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -5550,7 +6077,7 @@ pub mod invoke_async_input { ) -> std::result::Result { Ok(crate::input::InvokeAsyncInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, invoke_args: self.invoke_args.unwrap_or_default(), }) } @@ -5616,13 +6143,31 @@ impl InvokeAsyncInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2014-11-13/functions/{FunctionName}/invoke-async", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5630,7 +6175,7 @@ impl InvokeAsyncInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5735,7 +6280,7 @@ pub mod list_aliases_input { ) -> std::result::Result { Ok(crate::input::ListAliasesInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, function_version: self.function_version, marker: self.marker, max_items: self.max_items, @@ -5803,13 +6348,31 @@ impl ListAliasesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/aliases", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5832,7 +6395,7 @@ impl ListAliasesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5961,8 +6524,9 @@ impl ListCodeSigningConfigsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2020-04-22/code-signing-configs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2020-04-22/code-signing-configs").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5979,7 +6543,7 @@ impl ListCodeSigningConfigsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6178,8 +6742,9 @@ impl ListEventSourceMappingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2015-03-31/event-source-mappings").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2015-03-31/event-source-mappings").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6202,7 +6767,7 @@ impl ListEventSourceMappingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6297,7 +6862,7 @@ pub mod list_function_event_invoke_configs_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListFunctionEventInvokeConfigsInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, marker: self.marker, max_items: self.max_items, }) @@ -6365,13 +6930,31 @@ impl ListFunctionEventInvokeConfigsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-25/functions/{FunctionName}/event-invoke-config/list", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6388,7 +6971,7 @@ impl ListFunctionEventInvokeConfigsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6546,8 +7129,9 @@ impl ListFunctionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2015-03-31/functions").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2015-03-31/functions").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6573,7 +7157,7 @@ impl ListFunctionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6649,7 +7233,7 @@ pub mod list_functions_by_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListFunctionsByCodeSigningConfigInput { - code_signing_config_arn: self.code_signing_config_arn.unwrap_or_default(), + code_signing_config_arn: self.code_signing_config_arn, marker: self.marker, max_items: self.max_items, }) @@ -6717,14 +7301,31 @@ impl ListFunctionsByCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let code_signing_config_arn = { + let input = &self.code_signing_config_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions", - CodeSigningConfigArn = - smithy_http::label::fmt_string(&self.code_signing_config_arn, false) + CodeSigningConfigArn = code_signing_config_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6741,7 +7342,7 @@ impl ListFunctionsByCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6882,8 +7483,9 @@ impl ListLayersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2018-10-31/layers").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2018-10-31/layers").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6906,7 +7508,7 @@ impl ListLayersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6993,7 +7595,7 @@ pub mod list_layer_versions_input { > { Ok(crate::input::ListLayerVersionsInput { compatible_runtime: self.compatible_runtime, - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, marker: self.marker, max_items: self.max_items, }) @@ -7060,13 +7662,31 @@ impl ListLayerVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false) + LayerName = layer_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7089,7 +7709,7 @@ impl ListLayerVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7184,7 +7804,7 @@ pub mod list_provisioned_concurrency_configs_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListProvisionedConcurrencyConfigsInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, marker: self.marker, max_items: self.max_items, }) @@ -7252,13 +7872,31 @@ impl ListProvisionedConcurrencyConfigsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7276,7 +7914,7 @@ impl ListProvisionedConcurrencyConfigsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7327,7 +7965,7 @@ pub mod list_tags_input { ) -> std::result::Result { Ok(crate::input::ListTagsInput { - resource: self.resource.unwrap_or_default(), + resource: self.resource, }) } } @@ -7387,13 +8025,27 @@ impl ListTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2017-03-31/tags/{Resource}", - Resource = smithy_http::label::fmt_string(&self.resource, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource = { + let input = &self.resource; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2017-03-31/tags/{Resource}", Resource = resource) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7401,7 +8053,7 @@ impl ListTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7495,7 +8147,7 @@ pub mod list_versions_by_function_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListVersionsByFunctionInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, marker: self.marker, max_items: self.max_items, }) @@ -7562,13 +8214,31 @@ impl ListVersionsByFunctionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/versions", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7585,7 +8255,7 @@ impl ListVersionsByFunctionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7698,7 +8368,7 @@ pub mod publish_layer_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::PublishLayerVersionInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, description: self.description, content: self.content, compatible_runtimes: self.compatible_runtimes, @@ -7770,13 +8440,31 @@ impl PublishLayerVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false) + LayerName = layer_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7784,7 +8472,7 @@ impl PublishLayerVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7891,7 +8579,7 @@ pub mod publish_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::PublishVersionInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, code_sha256: self.code_sha256, description: self.description, revision_id: self.revision_id, @@ -7961,13 +8649,31 @@ impl PublishVersionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/versions", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7975,7 +8681,7 @@ impl PublishVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8063,7 +8769,7 @@ pub mod put_function_code_signing_config_input { > { Ok(crate::input::PutFunctionCodeSigningConfigInput { code_signing_config_arn: self.code_signing_config_arn, - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, }) } } @@ -8133,13 +8839,31 @@ impl PutFunctionCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-06-30/functions/{FunctionName}/code-signing-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8147,7 +8871,7 @@ impl PutFunctionCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8234,7 +8958,7 @@ pub mod put_function_concurrency_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutFunctionConcurrencyInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, reserved_concurrent_executions: self.reserved_concurrent_executions, }) } @@ -8303,13 +9027,31 @@ impl PutFunctionConcurrencyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2017-10-31/functions/{FunctionName}/concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8317,7 +9059,7 @@ impl PutFunctionConcurrencyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8455,7 +9197,7 @@ pub mod put_function_event_invoke_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutFunctionEventInvokeConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, maximum_retry_attempts: self.maximum_retry_attempts, maximum_event_age_in_seconds: self.maximum_event_age_in_seconds, @@ -8529,13 +9271,31 @@ impl PutFunctionEventInvokeConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-25/functions/{FunctionName}/event-invoke-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8549,7 +9309,7 @@ impl PutFunctionEventInvokeConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("PUT").uri(uri)) } @@ -8647,7 +9407,7 @@ pub mod put_provisioned_concurrency_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutProvisionedConcurrencyConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, provisioned_concurrent_executions: self.provisioned_concurrent_executions, }) @@ -8719,13 +9479,31 @@ impl PutProvisionedConcurrencyConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-30/functions/{FunctionName}/provisioned-concurrency", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8739,7 +9517,7 @@ impl PutProvisionedConcurrencyConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("PUT").uri(uri)) } @@ -8823,9 +9601,9 @@ pub mod remove_layer_version_permission_input { smithy_http::operation::BuildError, > { Ok(crate::input::RemoveLayerVersionPermissionInput { - layer_name: self.layer_name.unwrap_or_default(), + layer_name: self.layer_name, version_number: self.version_number.unwrap_or_default(), - statement_id: self.statement_id.unwrap_or_default(), + statement_id: self.statement_id, revision_id: self.revision_id, }) } @@ -8892,15 +9670,61 @@ impl RemoveLayerVersionPermissionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let layer_name = { + let input = &self.layer_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "layer_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version_number = { + let input = &self.version_number; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version_number", + details: "cannot be empty or unset", + }); + } + formatted + }; + let statement_id = { + let input = &self.statement_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "statement_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "statement_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}", - LayerName = smithy_http::label::fmt_string(&self.layer_name, false), - VersionNumber = smithy_http::label::fmt_default(&self.version_number), - StatementId = smithy_http::label::fmt_string(&self.statement_id, false) + LayerName = layer_name, + VersionNumber = version_number, + StatementId = statement_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8914,7 +9738,7 @@ impl RemoveLayerVersionPermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -9020,8 +9844,8 @@ pub mod remove_permission_input { smithy_http::operation::BuildError, > { Ok(crate::input::RemovePermissionInput { - function_name: self.function_name.unwrap_or_default(), - statement_id: self.statement_id.unwrap_or_default(), + function_name: self.function_name, + statement_id: self.statement_id, qualifier: self.qualifier, revision_id: self.revision_id, }) @@ -9088,14 +9912,49 @@ impl RemovePermissionInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let statement_id = { + let input = &self.statement_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "statement_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "statement_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false), - StatementId = smithy_http::label::fmt_string(&self.statement_id, false) + FunctionName = function_name, + StatementId = statement_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9112,7 +9971,7 @@ impl RemovePermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -9185,7 +10044,7 @@ pub mod tag_resource_input { ) -> std::result::Result { Ok(crate::input::TagResourceInput { - resource: self.resource.unwrap_or_default(), + resource: self.resource, tags: self.tags, }) } @@ -9254,13 +10113,27 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2017-03-31/tags/{Resource}", - Resource = smithy_http::label::fmt_string(&self.resource, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource = { + let input = &self.resource; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2017-03-31/tags/{Resource}", Resource = resource) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9268,7 +10141,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9332,7 +10205,7 @@ pub mod untag_resource_input { ) -> std::result::Result { Ok(crate::input::UntagResourceInput { - resource: self.resource.unwrap_or_default(), + resource: self.resource, tag_keys: self.tag_keys, }) } @@ -9398,13 +10271,27 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2017-03-31/tags/{Resource}", - Resource = smithy_http::label::fmt_string(&self.resource, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource = { + let input = &self.resource; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2017-03-31/tags/{Resource}", Resource = resource) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9420,7 +10307,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -9551,8 +10438,8 @@ pub mod update_alias_input { ) -> std::result::Result { Ok(crate::input::UpdateAliasInput { - function_name: self.function_name.unwrap_or_default(), - name: self.name.unwrap_or_default(), + function_name: self.function_name, + name: self.name, function_version: self.function_version, description: self.description, routing_config: self.routing_config, @@ -9624,14 +10511,49 @@ impl UpdateAliasInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false), - Name = smithy_http::label::fmt_string(&self.name, false) + FunctionName = function_name, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9639,7 +10561,7 @@ impl UpdateAliasInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9730,7 +10652,7 @@ pub mod update_code_signing_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateCodeSigningConfigInput { - code_signing_config_arn: self.code_signing_config_arn.unwrap_or_default(), + code_signing_config_arn: self.code_signing_config_arn, description: self.description, allowed_publishers: self.allowed_publishers, code_signing_policies: self.code_signing_policies, @@ -9802,14 +10724,31 @@ impl UpdateCodeSigningConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let code_signing_config_arn = { + let input = &self.code_signing_config_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "code_signing_config_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}", - CodeSigningConfigArn = - smithy_http::label::fmt_string(&self.code_signing_config_arn, false) + CodeSigningConfigArn = code_signing_config_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9817,7 +10756,7 @@ impl UpdateCodeSigningConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10065,7 +11004,7 @@ pub mod update_event_source_mapping_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateEventSourceMappingInput { - uuid: self.uuid.unwrap_or_default(), + uuid: self.uuid, function_name: self.function_name, enabled: self.enabled, batch_size: self.batch_size, @@ -10146,13 +11085,31 @@ impl UpdateEventSourceMappingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let uuid = { + let input = &self.uuid; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "uuid", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/event-source-mappings/{UUID}", - UUID = smithy_http::label::fmt_string(&self.uuid, false) + UUID = uuid ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10160,7 +11117,7 @@ impl UpdateEventSourceMappingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10321,7 +11278,7 @@ pub mod update_function_code_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateFunctionCodeInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, zip_file: self.zip_file, s3_bucket: self.s3_bucket, s3_key: self.s3_key, @@ -10397,13 +11354,31 @@ impl UpdateFunctionCodeInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/code", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10411,7 +11386,7 @@ impl UpdateFunctionCodeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10674,7 +11649,7 @@ pub mod update_function_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateFunctionConfigurationInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, role: self.role, handler: self.handler, description: self.description, @@ -10759,13 +11734,31 @@ impl UpdateFunctionConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2015-03-31/functions/{FunctionName}/configuration", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10773,7 +11766,7 @@ impl UpdateFunctionConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10911,7 +11904,7 @@ pub mod update_function_event_invoke_config_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateFunctionEventInvokeConfigInput { - function_name: self.function_name.unwrap_or_default(), + function_name: self.function_name, qualifier: self.qualifier, maximum_retry_attempts: self.maximum_retry_attempts, maximum_event_age_in_seconds: self.maximum_event_age_in_seconds, @@ -10987,13 +11980,31 @@ impl UpdateFunctionEventInvokeConfigInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let function_name = { + let input = &self.function_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "function_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2019-09-25/functions/{FunctionName}/event-invoke-config", - FunctionName = smithy_http::label::fmt_string(&self.function_name, false) + FunctionName = function_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11007,7 +12018,7 @@ impl UpdateFunctionEventInvokeConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("POST").uri(uri)) } @@ -11057,7 +12068,7 @@ pub struct UpdateFunctionEventInvokeConfigInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    A version number or alias name.

    pub qualifier: std::option::Option, ///

    The maximum number of times to retry when the function returns an error.

    @@ -11126,7 +12137,7 @@ pub struct UpdateFunctionConfigurationInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the function's execution role.

    pub role: std::option::Option, ///

    The name of the method within your code that Lambda calls to execute your function. The format includes the @@ -11217,7 +12228,7 @@ pub struct UpdateFunctionCodeInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for /// you.

    pub zip_file: std::option::Option, @@ -11259,7 +12270,7 @@ impl std::fmt::Debug for UpdateFunctionCodeInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateEventSourceMappingInput { ///

    The identifier of the event source mapping.

    - pub uuid: std::string::String, + pub uuid: std::option::Option, ///

    The name of the Lambda function.

    ///

    /// Name formats @@ -11371,7 +12382,7 @@ impl std::fmt::Debug for UpdateEventSourceMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateCodeSigningConfigInput { ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - pub code_signing_config_arn: std::string::String, + pub code_signing_config_arn: std::option::Option, ///

    Descriptive name for this code signing configuration.

    pub description: std::option::Option, ///

    Signing profiles for this code signing configuration.

    @@ -11413,9 +12424,9 @@ pub struct UpdateAliasInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The name of the alias.

    - pub name: std::string::String, + pub name: std::option::Option, ///

    The function version that the alias invokes.

    pub function_version: std::option::Option, ///

    A description of the alias.

    @@ -11444,7 +12455,7 @@ impl std::fmt::Debug for UpdateAliasInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UntagResourceInput { ///

    The function's Amazon Resource Name (ARN).

    - pub resource: std::string::String, + pub resource: std::option::Option, ///

    A list of tag keys to remove from the function.

    pub tag_keys: std::option::Option>, } @@ -11461,7 +12472,7 @@ impl std::fmt::Debug for UntagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TagResourceInput { ///

    The function's Amazon Resource Name (ARN).

    - pub resource: std::string::String, + pub resource: std::option::Option, ///

    A list of tags to apply to the function.

    pub tags: std::option::Option>, @@ -11498,9 +12509,9 @@ pub struct RemovePermissionInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Statement ID of the permission to remove.

    - pub statement_id: std::string::String, + pub statement_id: std::option::Option, ///

    Specify a version or alias to remove permissions from a published version of the function.

    pub qualifier: std::option::Option, ///

    Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a @@ -11522,11 +12533,11 @@ impl std::fmt::Debug for RemovePermissionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RemoveLayerVersionPermissionInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The version number.

    pub version_number: i64, ///

    The identifier that was specified when the statement was added.

    - pub statement_id: std::string::String, + pub statement_id: std::option::Option, ///

    Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a /// policy that has changed since you last read it.

    pub revision_id: std::option::Option, @@ -11565,7 +12576,7 @@ pub struct PutProvisionedConcurrencyConfigInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The version number or alias name.

    pub qualifier: std::option::Option, ///

    The amount of provisioned concurrency to allocate for the version or alias.

    @@ -11607,7 +12618,7 @@ pub struct PutFunctionEventInvokeConfigInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    A version number or alias name.

    pub qualifier: std::option::Option, ///

    The maximum number of times to retry when the function returns an error.

    @@ -11676,7 +12687,7 @@ pub struct PutFunctionConcurrencyInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The number of simultaneous executions to reserve for the function.

    pub reserved_concurrent_executions: std::option::Option, } @@ -11717,7 +12728,7 @@ pub struct PutFunctionCodeSigningConfigInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, } impl std::fmt::Debug for PutFunctionCodeSigningConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11751,7 +12762,7 @@ pub struct PublishVersionInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Only publish a version if the hash value matches the value that's specified. Use this option to avoid /// publishing a version if the function code has changed since you last updated it. You can get the hash for the /// version that you uploaded from the output of UpdateFunctionCode.

    @@ -11777,7 +12788,7 @@ impl std::fmt::Debug for PublishVersionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PublishLayerVersionInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The description of the version.

    pub description: std::option::Option, ///

    The function layer archive.

    @@ -11836,7 +12847,7 @@ pub struct ListVersionsByFunctionInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    pub marker: std::option::Option, ///

    The maximum number of versions to return.

    @@ -11856,7 +12867,7 @@ impl std::fmt::Debug for ListVersionsByFunctionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListTagsInput { ///

    The function's Amazon Resource Name (ARN).

    - pub resource: std::string::String, + pub resource: std::option::Option, } impl std::fmt::Debug for ListTagsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11889,7 +12900,7 @@ pub struct ListProvisionedConcurrencyConfigsInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    pub marker: std::option::Option, ///

    Specify a number to limit the number of configurations returned.

    @@ -11911,7 +12922,7 @@ pub struct ListLayerVersionsInput { ///

    A runtime identifier. For example, go1.x.

    pub compatible_runtime: std::option::Option, ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    A pagination token returned by a previous call.

    pub marker: std::option::Option, ///

    The maximum number of versions to return.

    @@ -11952,7 +12963,7 @@ impl std::fmt::Debug for ListLayersInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListFunctionsByCodeSigningConfigInput { ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - pub code_signing_config_arn: std::string::String, + pub code_signing_config_arn: std::option::Option, ///

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    pub marker: std::option::Option, ///

    Maximum number of items to return.

    @@ -12017,7 +13028,7 @@ pub struct ListFunctionEventInvokeConfigsInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    pub marker: std::option::Option, ///

    The maximum number of configurations to return.

    @@ -12137,7 +13148,7 @@ pub struct ListAliasesInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify a function version to only list aliases that invoke that version.

    pub function_version: std::option::Option, ///

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    @@ -12178,7 +13189,7 @@ pub struct InvokeAsyncInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The JSON that you want to provide to your Lambda function as input.

    pub invoke_args: smithy_http::byte_stream::ByteStream, } @@ -12214,7 +13225,7 @@ pub struct InvokeInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Choose from the following options.

    ///
      ///
    • @@ -12281,7 +13292,7 @@ pub struct GetProvisionedConcurrencyConfigInput { ///
    ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The version number or alias name.

    pub qualifier: std::option::Option, } @@ -12317,7 +13328,7 @@ pub struct GetPolicyInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify a version or alias to get the policy for that resource.

    pub qualifier: std::option::Option, } @@ -12334,7 +13345,7 @@ impl std::fmt::Debug for GetPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetLayerVersionPolicyInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The version number.

    pub version_number: i64, } @@ -12365,7 +13376,7 @@ impl std::fmt::Debug for GetLayerVersionByArnInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetLayerVersionInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The version number.

    pub version_number: i64, } @@ -12401,7 +13412,7 @@ pub struct GetFunctionEventInvokeConfigInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    A version number or alias name.

    pub qualifier: std::option::Option, } @@ -12437,7 +13448,7 @@ pub struct GetFunctionConfigurationInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify a version or alias to get details about a published version of the function.

    pub qualifier: std::option::Option, } @@ -12473,7 +13484,7 @@ pub struct GetFunctionConcurrencyInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, } impl std::fmt::Debug for GetFunctionConcurrencyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12506,7 +13517,7 @@ pub struct GetFunctionCodeSigningConfigInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, } impl std::fmt::Debug for GetFunctionCodeSigningConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12539,7 +13550,7 @@ pub struct GetFunctionInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify a version or alias to get details about a published version of the function.

    pub qualifier: std::option::Option, } @@ -12556,7 +13567,7 @@ impl std::fmt::Debug for GetFunctionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetEventSourceMappingInput { ///

    The identifier of the event source mapping.

    - pub uuid: std::string::String, + pub uuid: std::option::Option, } impl std::fmt::Debug for GetEventSourceMappingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12570,7 +13581,7 @@ impl std::fmt::Debug for GetEventSourceMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetCodeSigningConfigInput { ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - pub code_signing_config_arn: std::string::String, + pub code_signing_config_arn: std::option::Option, } impl std::fmt::Debug for GetCodeSigningConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12603,9 +13614,9 @@ pub struct GetAliasInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The name of the alias.

    - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for GetAliasInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12649,7 +13660,7 @@ pub struct DeleteProvisionedConcurrencyConfigInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The version number or alias name.

    pub qualifier: std::option::Option, } @@ -12666,7 +13677,7 @@ impl std::fmt::Debug for DeleteProvisionedConcurrencyConfigInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteLayerVersionInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The version number.

    pub version_number: i64, } @@ -12702,7 +13713,7 @@ pub struct DeleteFunctionEventInvokeConfigInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    A version number or alias name.

    pub qualifier: std::option::Option, } @@ -12738,7 +13749,7 @@ pub struct DeleteFunctionConcurrencyInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, } impl std::fmt::Debug for DeleteFunctionConcurrencyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12771,7 +13782,7 @@ pub struct DeleteFunctionCodeSigningConfigInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, } impl std::fmt::Debug for DeleteFunctionCodeSigningConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12804,7 +13815,7 @@ pub struct DeleteFunctionInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    Specify a version to delete. You can't delete a version that's referenced by an alias.

    pub qualifier: std::option::Option, } @@ -12821,7 +13832,7 @@ impl std::fmt::Debug for DeleteFunctionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteEventSourceMappingInput { ///

    The identifier of the event source mapping.

    - pub uuid: std::string::String, + pub uuid: std::option::Option, } impl std::fmt::Debug for DeleteEventSourceMappingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12835,7 +13846,7 @@ impl std::fmt::Debug for DeleteEventSourceMappingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteCodeSigningConfigInput { ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - pub code_signing_config_arn: std::string::String, + pub code_signing_config_arn: std::option::Option, } impl std::fmt::Debug for DeleteCodeSigningConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12868,9 +13879,9 @@ pub struct DeleteAliasInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The name of the alias.

    - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DeleteAliasInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -13181,7 +14192,7 @@ pub struct CreateAliasInput { /// ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 /// characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    The name of the alias.

    pub name: std::option::Option, ///

    The function version that the alias invokes.

    @@ -13227,7 +14238,7 @@ pub struct AddPermissionInput { /// ///

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. /// If you specify only the function name, it is limited to 64 characters in length.

    - pub function_name: std::string::String, + pub function_name: std::option::Option, ///

    A statement identifier that differentiates the statement from others in the same policy.

    pub statement_id: std::option::Option, ///

    The action that the principal can use on the function. For example, lambda:InvokeFunction or @@ -13271,7 +14282,7 @@ impl std::fmt::Debug for AddPermissionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AddLayerVersionPermissionInput { ///

    The name or Amazon Resource Name (ARN) of the layer.

    - pub layer_name: std::string::String, + pub layer_name: std::option::Option, ///

    The version number.

    pub version_number: i64, ///

    An identifier that distinguishes the policy from others on the same layer version.

    diff --git a/sdk/lambda/src/instant_epoch.rs b/sdk/lambda/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/lambda/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/lambda/src/json_deser.rs b/sdk/lambda/src/json_deser.rs index 9d0a6a67f7cd..2217d118b16d 100644 --- a/sdk/lambda/src/json_deser.rs +++ b/sdk/lambda/src/json_deser.rs @@ -1,1712 +1,8675 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) -} - -pub fn invalid_parameter_value_exception( - input: &[u8], - mut builder: crate::error::invalid_parameter_value_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidParameterValueError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_invalid_parameter_value_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_value_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn policy_length_exceeded_exception( +pub fn deser_structure_policy_length_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::policy_length_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::PolicyLengthExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::policy_length_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn precondition_failed_exception( +pub fn deser_structure_precondition_failed_exceptionjson_err( input: &[u8], - mut builder: crate::error::precondition_failed_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::PreconditionFailedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::precondition_failed_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_conflict_exception( +pub fn deser_structure_resource_conflict_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_conflict_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceConflictError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::resource_conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_not_found_exception( +pub fn deser_structure_resource_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_exception( +pub fn deser_structure_service_exceptionjson_err( input: &[u8], - mut builder: crate::error::service_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::service_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn too_many_requests_exception( +pub fn deser_structure_too_many_requests_exceptionjson_err( input: &[u8], - mut builder: crate::error::too_many_requests_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TooManyRequestsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_retry_after_seconds(parsed_body.retry_after_seconds); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); - builder = builder.set_reason(parsed_body.reason); + mut builder: crate::error::too_many_requests_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "retryAfterSeconds" => { + builder = builder.set_retry_after_seconds( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ThrottleReason::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn add_layer_version_permission_deser_operation( +pub fn deser_operation_add_layer_version_permission( input: &[u8], mut builder: crate::output::add_layer_version_permission_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::add_layer_version_permission_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::AddLayerVersionPermissionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_statement(parsed_body.statement); - builder = builder.set_revision_id(parsed_body.revision_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Statement" => { + builder = builder.set_statement( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn add_permission_deser_operation( +pub fn deser_operation_add_permission( input: &[u8], mut builder: crate::output::add_permission_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::AddPermissionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_statement(parsed_body.statement); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Statement" => { + builder = builder.set_statement( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_alias_deser_operation( +pub fn deser_operation_create_alias( input: &[u8], mut builder: crate::output::create_alias_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAliasOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_alias_arn(parsed_body.alias_arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_function_version(parsed_body.function_version); - builder = builder.set_description(parsed_body.description); - builder = builder.set_routing_config(parsed_body.routing_config); - builder = builder.set_revision_id(parsed_body.revision_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AliasArn" => { + builder = builder.set_alias_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionVersion" => { + builder = builder.set_function_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoutingConfig" => { + builder = builder.set_routing_config( + crate::json_deser::deser_structure_alias_routing_configuration(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_code_signing_config_deser_operation( +pub fn deser_operation_create_code_signing_config( input: &[u8], mut builder: crate::output::create_code_signing_config_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::CreateCodeSigningConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_signing_config(parsed_body.code_signing_config); +) -> Result< + crate::output::create_code_signing_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfig" => { + builder = builder.set_code_signing_config( + crate::json_deser::deser_structure_code_signing_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_event_source_mapping_deser_operation( +pub fn deser_operation_create_event_source_mapping( input: &[u8], mut builder: crate::output::create_event_source_mapping_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_event_source_mapping_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateEventSourceMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_uuid(parsed_body.uuid); - builder = builder.set_starting_position(parsed_body.starting_position); - builder = builder.set_starting_position_timestamp(parsed_body.starting_position_timestamp); - builder = builder.set_batch_size(parsed_body.batch_size); - builder = builder - .set_maximum_batching_window_in_seconds(parsed_body.maximum_batching_window_in_seconds); - builder = builder.set_parallelization_factor(parsed_body.parallelization_factor); - builder = builder.set_event_source_arn(parsed_body.event_source_arn); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_last_processing_result(parsed_body.last_processing_result); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_transition_reason(parsed_body.state_transition_reason); - builder = builder.set_destination_config(parsed_body.destination_config); - builder = builder.set_topics(parsed_body.topics); - builder = builder.set_queues(parsed_body.queues); - builder = builder.set_source_access_configurations(parsed_body.source_access_configurations); - builder = builder.set_self_managed_event_source(parsed_body.self_managed_event_source); - builder = builder.set_maximum_record_age_in_seconds(parsed_body.maximum_record_age_in_seconds); - builder = - builder.set_bisect_batch_on_function_error(parsed_body.bisect_batch_on_function_error); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_tumbling_window_in_seconds(parsed_body.tumbling_window_in_seconds); - builder = builder.set_function_response_types(parsed_body.function_response_types); - Ok(builder) -} - -pub fn code_signing_config_not_found_exception( - input: &[u8], - mut builder: crate::error::code_signing_config_not_found_error::Builder, -) -> std::result::Result< - crate::error::code_signing_config_not_found_error::Builder, - serde_json::Error, + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BatchSize" => { + builder = builder.set_batch_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BisectBatchOnFunctionError" => { + builder = builder.set_bisect_batch_on_function_error( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "EventSourceArn" => { + builder = builder.set_event_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionResponseTypes" => { + builder = builder.set_function_response_types( + crate::json_deser::deser_list_function_response_type_list(tokens)?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastProcessingResult" => { + builder = builder.set_last_processing_result( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaximumBatchingWindowInSeconds" => { + builder = builder.set_maximum_batching_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRecordAgeInSeconds" => { + builder = builder.set_maximum_record_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ParallelizationFactor" => { + builder = builder.set_parallelization_factor( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Queues" => { + builder = builder.set_queues(crate::json_deser::deser_list_queues(tokens)?); + } + "SelfManagedEventSource" => { + builder = builder.set_self_managed_event_source( + crate::json_deser::deser_structure_self_managed_event_source(tokens)?, + ); + } + "SourceAccessConfigurations" => { + builder = builder.set_source_access_configurations( + crate::json_deser::deser_list_source_access_configurations(tokens)?, + ); + } + "StartingPosition" => { + builder = builder.set_starting_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EventSourcePosition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartingPositionTimestamp" => { + builder = builder.set_starting_position_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateTransitionReason" => { + builder = builder.set_state_transition_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Topics" => { + builder = builder.set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + "TumblingWindowInSeconds" => { + builder = builder.set_tumbling_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "UUID" => { + builder = builder.set_uuid( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_code_signing_config_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::code_signing_config_not_found_exception::Builder, +) -> Result< + crate::error::code_signing_config_not_found_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::CodeSigningConfigNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn code_storage_exceeded_exception( +pub fn deser_structure_code_storage_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::code_storage_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::CodeStorageExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::code_storage_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn code_verification_failed_exception( +pub fn deser_structure_code_verification_failed_exceptionjson_err( input: &[u8], - mut builder: crate::error::code_verification_failed_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::CodeVerificationFailedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::code_verification_failed_exception::Builder, +) -> Result< + crate::error::code_verification_failed_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_code_signature_exception( +pub fn deser_structure_invalid_code_signature_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_code_signature_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidCodeSignatureError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_code_signature_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_function_deser_operation( +pub fn deser_operation_create_function( input: &[u8], mut builder: crate::output::create_function_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateFunctionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_name(parsed_body.function_name); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_runtime(parsed_body.runtime); - builder = builder.set_role(parsed_body.role); - builder = builder.set_handler(parsed_body.handler); - builder = builder.set_code_size(Some(parsed_body.code_size)); - builder = builder.set_description(parsed_body.description); - builder = builder.set_timeout(parsed_body.timeout); - builder = builder.set_memory_size(parsed_body.memory_size); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_code_sha256(parsed_body.code_sha256); - builder = builder.set_version(parsed_body.version); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_dead_letter_config(parsed_body.dead_letter_config); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_kms_key_arn(parsed_body.kms_key_arn); - builder = builder.set_tracing_config(parsed_body.tracing_config); - builder = builder.set_master_arn(parsed_body.master_arn); - builder = builder.set_revision_id(parsed_body.revision_id); - builder = builder.set_layers(parsed_body.layers); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_reason(parsed_body.state_reason); - builder = builder.set_state_reason_code(parsed_body.state_reason_code); - builder = builder.set_last_update_status(parsed_body.last_update_status); - builder = builder.set_last_update_status_reason(parsed_body.last_update_status_reason); - builder = - builder.set_last_update_status_reason_code(parsed_body.last_update_status_reason_code); - builder = builder.set_file_system_configs(parsed_body.file_system_configs); - builder = builder.set_package_type(parsed_body.package_type); - builder = builder.set_image_config_response(parsed_body.image_config_response); - builder = builder.set_signing_profile_version_arn(parsed_body.signing_profile_version_arn); - builder = builder.set_signing_job_arn(parsed_body.signing_job_arn); - Ok(builder) -} - -pub fn resource_in_use_exception( - input: &[u8], - mut builder: crate::error::resource_in_use_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceInUseError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response(tokens)?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response(tokens)?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LastUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StateReasonCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response(tokens)?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_event_source_mapping_deser_operation( +pub fn deser_structure_resource_in_use_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_delete_event_source_mapping( input: &[u8], mut builder: crate::output::delete_event_source_mapping_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::delete_event_source_mapping_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DeleteEventSourceMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_uuid(parsed_body.uuid); - builder = builder.set_starting_position(parsed_body.starting_position); - builder = builder.set_starting_position_timestamp(parsed_body.starting_position_timestamp); - builder = builder.set_batch_size(parsed_body.batch_size); - builder = builder - .set_maximum_batching_window_in_seconds(parsed_body.maximum_batching_window_in_seconds); - builder = builder.set_parallelization_factor(parsed_body.parallelization_factor); - builder = builder.set_event_source_arn(parsed_body.event_source_arn); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_last_processing_result(parsed_body.last_processing_result); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_transition_reason(parsed_body.state_transition_reason); - builder = builder.set_destination_config(parsed_body.destination_config); - builder = builder.set_topics(parsed_body.topics); - builder = builder.set_queues(parsed_body.queues); - builder = builder.set_source_access_configurations(parsed_body.source_access_configurations); - builder = builder.set_self_managed_event_source(parsed_body.self_managed_event_source); - builder = builder.set_maximum_record_age_in_seconds(parsed_body.maximum_record_age_in_seconds); - builder = - builder.set_bisect_batch_on_function_error(parsed_body.bisect_batch_on_function_error); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_tumbling_window_in_seconds(parsed_body.tumbling_window_in_seconds); - builder = builder.set_function_response_types(parsed_body.function_response_types); - Ok(builder) -} - -pub fn get_account_settings_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BatchSize" => { + builder = builder.set_batch_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BisectBatchOnFunctionError" => { + builder = builder.set_bisect_batch_on_function_error( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "EventSourceArn" => { + builder = builder.set_event_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionResponseTypes" => { + builder = builder.set_function_response_types( + crate::json_deser::deser_list_function_response_type_list(tokens)?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastProcessingResult" => { + builder = builder.set_last_processing_result( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaximumBatchingWindowInSeconds" => { + builder = builder.set_maximum_batching_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRecordAgeInSeconds" => { + builder = builder.set_maximum_record_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ParallelizationFactor" => { + builder = builder.set_parallelization_factor( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Queues" => { + builder = builder.set_queues(crate::json_deser::deser_list_queues(tokens)?); + } + "SelfManagedEventSource" => { + builder = builder.set_self_managed_event_source( + crate::json_deser::deser_structure_self_managed_event_source(tokens)?, + ); + } + "SourceAccessConfigurations" => { + builder = builder.set_source_access_configurations( + crate::json_deser::deser_list_source_access_configurations(tokens)?, + ); + } + "StartingPosition" => { + builder = builder.set_starting_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EventSourcePosition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartingPositionTimestamp" => { + builder = builder.set_starting_position_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateTransitionReason" => { + builder = builder.set_state_transition_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Topics" => { + builder = builder.set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + "TumblingWindowInSeconds" => { + builder = builder.set_tumbling_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "UUID" => { + builder = builder.set_uuid( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_account_settings( input: &[u8], mut builder: crate::output::get_account_settings_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAccountSettingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_account_limit(parsed_body.account_limit); - builder = builder.set_account_usage(parsed_body.account_usage); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AccountLimit" => { + builder = builder.set_account_limit( + crate::json_deser::deser_structure_account_limit(tokens)?, + ); + } + "AccountUsage" => { + builder = builder.set_account_usage( + crate::json_deser::deser_structure_account_usage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_alias_deser_operation( +pub fn deser_operation_get_alias( input: &[u8], mut builder: crate::output::get_alias_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAliasOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_alias_arn(parsed_body.alias_arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_function_version(parsed_body.function_version); - builder = builder.set_description(parsed_body.description); - builder = builder.set_routing_config(parsed_body.routing_config); - builder = builder.set_revision_id(parsed_body.revision_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AliasArn" => { + builder = builder.set_alias_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionVersion" => { + builder = builder.set_function_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoutingConfig" => { + builder = builder.set_routing_config( + crate::json_deser::deser_structure_alias_routing_configuration(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_code_signing_config_deser_operation( +pub fn deser_operation_get_code_signing_config( input: &[u8], mut builder: crate::output::get_code_signing_config_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetCodeSigningConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_signing_config(parsed_body.code_signing_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfig" => { + builder = builder.set_code_signing_config( + crate::json_deser::deser_structure_code_signing_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_event_source_mapping_deser_operation( +pub fn deser_operation_get_event_source_mapping( input: &[u8], mut builder: crate::output::get_event_source_mapping_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetEventSourceMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_uuid(parsed_body.uuid); - builder = builder.set_starting_position(parsed_body.starting_position); - builder = builder.set_starting_position_timestamp(parsed_body.starting_position_timestamp); - builder = builder.set_batch_size(parsed_body.batch_size); - builder = builder - .set_maximum_batching_window_in_seconds(parsed_body.maximum_batching_window_in_seconds); - builder = builder.set_parallelization_factor(parsed_body.parallelization_factor); - builder = builder.set_event_source_arn(parsed_body.event_source_arn); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_last_processing_result(parsed_body.last_processing_result); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_transition_reason(parsed_body.state_transition_reason); - builder = builder.set_destination_config(parsed_body.destination_config); - builder = builder.set_topics(parsed_body.topics); - builder = builder.set_queues(parsed_body.queues); - builder = builder.set_source_access_configurations(parsed_body.source_access_configurations); - builder = builder.set_self_managed_event_source(parsed_body.self_managed_event_source); - builder = builder.set_maximum_record_age_in_seconds(parsed_body.maximum_record_age_in_seconds); - builder = - builder.set_bisect_batch_on_function_error(parsed_body.bisect_batch_on_function_error); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_tumbling_window_in_seconds(parsed_body.tumbling_window_in_seconds); - builder = builder.set_function_response_types(parsed_body.function_response_types); - Ok(builder) -} - -pub fn get_function_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BatchSize" => { + builder = builder.set_batch_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BisectBatchOnFunctionError" => { + builder = builder.set_bisect_batch_on_function_error( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "EventSourceArn" => { + builder = builder.set_event_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionResponseTypes" => { + builder = builder.set_function_response_types( + crate::json_deser::deser_list_function_response_type_list(tokens)?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastProcessingResult" => { + builder = builder.set_last_processing_result( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaximumBatchingWindowInSeconds" => { + builder = builder.set_maximum_batching_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRecordAgeInSeconds" => { + builder = builder.set_maximum_record_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ParallelizationFactor" => { + builder = builder.set_parallelization_factor( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Queues" => { + builder = builder.set_queues(crate::json_deser::deser_list_queues(tokens)?); + } + "SelfManagedEventSource" => { + builder = builder.set_self_managed_event_source( + crate::json_deser::deser_structure_self_managed_event_source(tokens)?, + ); + } + "SourceAccessConfigurations" => { + builder = builder.set_source_access_configurations( + crate::json_deser::deser_list_source_access_configurations(tokens)?, + ); + } + "StartingPosition" => { + builder = builder.set_starting_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EventSourcePosition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartingPositionTimestamp" => { + builder = builder.set_starting_position_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateTransitionReason" => { + builder = builder.set_state_transition_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Topics" => { + builder = builder.set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + "TumblingWindowInSeconds" => { + builder = builder.set_tumbling_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "UUID" => { + builder = builder.set_uuid( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_function( input: &[u8], mut builder: crate::output::get_function_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetFunctionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_configuration(parsed_body.configuration); - builder = builder.set_code(parsed_body.code); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_concurrency(parsed_body.concurrency); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Code" => { + builder = builder.set_code( + crate::json_deser::deser_structure_function_code_location(tokens)?, + ); + } + "Concurrency" => { + builder = builder.set_concurrency( + crate::json_deser::deser_structure_concurrency(tokens)?, + ); + } + "Configuration" => { + builder = builder.set_configuration( + crate::json_deser::deser_structure_function_configuration(tokens)?, + ); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_function_code_signing_config_deser_operation( +pub fn deser_operation_get_function_code_signing_config( input: &[u8], mut builder: crate::output::get_function_code_signing_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_function_code_signing_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetFunctionCodeSigningConfigOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_signing_config_arn(parsed_body.code_signing_config_arn); - builder = builder.set_function_name(parsed_body.function_name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfigArn" => { + builder = builder.set_code_signing_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_function_concurrency_deser_operation( +pub fn deser_operation_get_function_concurrency( input: &[u8], mut builder: crate::output::get_function_concurrency_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetFunctionConcurrencyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_reserved_concurrent_executions(parsed_body.reserved_concurrent_executions); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReservedConcurrentExecutions" => { + builder = builder.set_reserved_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_function_configuration_deser_operation( +pub fn deser_operation_get_function_configuration( input: &[u8], mut builder: crate::output::get_function_configuration_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::GetFunctionConfigurationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_name(parsed_body.function_name); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_runtime(parsed_body.runtime); - builder = builder.set_role(parsed_body.role); - builder = builder.set_handler(parsed_body.handler); - builder = builder.set_code_size(Some(parsed_body.code_size)); - builder = builder.set_description(parsed_body.description); - builder = builder.set_timeout(parsed_body.timeout); - builder = builder.set_memory_size(parsed_body.memory_size); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_code_sha256(parsed_body.code_sha256); - builder = builder.set_version(parsed_body.version); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_dead_letter_config(parsed_body.dead_letter_config); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_kms_key_arn(parsed_body.kms_key_arn); - builder = builder.set_tracing_config(parsed_body.tracing_config); - builder = builder.set_master_arn(parsed_body.master_arn); - builder = builder.set_revision_id(parsed_body.revision_id); - builder = builder.set_layers(parsed_body.layers); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_reason(parsed_body.state_reason); - builder = builder.set_state_reason_code(parsed_body.state_reason_code); - builder = builder.set_last_update_status(parsed_body.last_update_status); - builder = builder.set_last_update_status_reason(parsed_body.last_update_status_reason); - builder = - builder.set_last_update_status_reason_code(parsed_body.last_update_status_reason_code); - builder = builder.set_file_system_configs(parsed_body.file_system_configs); - builder = builder.set_package_type(parsed_body.package_type); - builder = builder.set_image_config_response(parsed_body.image_config_response); - builder = builder.set_signing_profile_version_arn(parsed_body.signing_profile_version_arn); - builder = builder.set_signing_job_arn(parsed_body.signing_job_arn); - Ok(builder) -} - -pub fn get_function_event_invoke_config_deser_operation( +) -> Result< + crate::output::get_function_configuration_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response(tokens)?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response(tokens)?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LastUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StateReasonCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response(tokens)?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_function_event_invoke_config( input: &[u8], mut builder: crate::output::get_function_event_invoke_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_function_event_invoke_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetFunctionEventInvokeConfigOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_maximum_event_age_in_seconds(parsed_body.maximum_event_age_in_seconds); - builder = builder.set_destination_config(parsed_body.destination_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MaximumEventAgeInSeconds" => { + builder = builder.set_maximum_event_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_layer_version_deser_operation( +pub fn deser_operation_get_layer_version( input: &[u8], mut builder: crate::output::get_layer_version_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetLayerVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_content(parsed_body.content); - builder = builder.set_layer_arn(parsed_body.layer_arn); - builder = builder.set_layer_version_arn(parsed_body.layer_version_arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(Some(parsed_body.version)); - builder = builder.set_compatible_runtimes(parsed_body.compatible_runtimes); - builder = builder.set_license_info(parsed_body.license_info); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompatibleRuntimes" => { + builder = builder.set_compatible_runtimes( + crate::json_deser::deser_list_compatible_runtimes(tokens)?, + ); + } + "Content" => { + builder = builder.set_content( + crate::json_deser::deser_structure_layer_version_content_output( + tokens, + )?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerArn" => { + builder = builder.set_layer_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerVersionArn" => { + builder = builder.set_layer_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LicenseInfo" => { + builder = builder.set_license_info( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_layer_version_by_arn_deser_operation( +pub fn deser_operation_get_layer_version_by_arn( input: &[u8], mut builder: crate::output::get_layer_version_by_arn_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetLayerVersionByArnOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_content(parsed_body.content); - builder = builder.set_layer_arn(parsed_body.layer_arn); - builder = builder.set_layer_version_arn(parsed_body.layer_version_arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(Some(parsed_body.version)); - builder = builder.set_compatible_runtimes(parsed_body.compatible_runtimes); - builder = builder.set_license_info(parsed_body.license_info); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompatibleRuntimes" => { + builder = builder.set_compatible_runtimes( + crate::json_deser::deser_list_compatible_runtimes(tokens)?, + ); + } + "Content" => { + builder = builder.set_content( + crate::json_deser::deser_structure_layer_version_content_output( + tokens, + )?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerArn" => { + builder = builder.set_layer_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerVersionArn" => { + builder = builder.set_layer_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LicenseInfo" => { + builder = builder.set_license_info( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_layer_version_policy_deser_operation( +pub fn deser_operation_get_layer_version_policy( input: &[u8], mut builder: crate::output::get_layer_version_policy_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetLayerVersionPolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_revision_id(parsed_body.revision_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_policy_deser_operation( +pub fn deser_operation_get_policy( input: &[u8], mut builder: crate::output::get_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetPolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policy(parsed_body.policy); - builder = builder.set_revision_id(parsed_body.revision_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Policy" => { + builder = builder.set_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn provisioned_concurrency_config_not_found_exception( +pub fn deser_structure_provisioned_concurrency_config_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::provisioned_concurrency_config_not_found_error::Builder, -) -> std::result::Result< - crate::error::provisioned_concurrency_config_not_found_error::Builder, - serde_json::Error, + mut builder: crate::error::provisioned_concurrency_config_not_found_exception::Builder, +) -> Result< + crate::error::provisioned_concurrency_config_not_found_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::ProvisionedConcurrencyConfigNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_provisioned_concurrency_config_deser_operation( +pub fn deser_operation_get_provisioned_concurrency_config( input: &[u8], mut builder: crate::output::get_provisioned_concurrency_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_provisioned_concurrency_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetProvisionedConcurrencyConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_requested_provisioned_concurrent_executions( - parsed_body.requested_provisioned_concurrent_executions, - ); - builder = builder.set_available_provisioned_concurrent_executions( - parsed_body.available_provisioned_concurrent_executions, - ); - builder = builder.set_allocated_provisioned_concurrent_executions( - parsed_body.allocated_provisioned_concurrent_executions, - ); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_reason(parsed_body.status_reason); - builder = builder.set_last_modified(parsed_body.last_modified); - Ok(builder) -} - -pub fn ec2_access_denied_exception( - input: &[u8], - mut builder: crate::error::ec2_access_denied_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EC2AccessDeniedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AllocatedProvisionedConcurrentExecutions" => { + builder = builder.set_allocated_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "AvailableProvisionedConcurrentExecutions" => { + builder = builder.set_available_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RequestedProvisionedConcurrentExecutions" => { + builder = builder.set_requested_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProvisionedConcurrencyStatusEnum::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn ec2_throttled_exception( +pub fn deser_structure_ec2_access_denied_exceptionjson_err( input: &[u8], - mut builder: crate::error::ec2_throttled_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EC2ThrottledError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::ec2_access_denied_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn ec2_unexpected_exception( +pub fn deser_structure_ec2_throttled_exceptionjson_err( input: &[u8], - mut builder: crate::error::ec2_unexpected_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EC2UnexpectedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); - builder = builder.set_ec2_error_code(parsed_body.ec2_error_code); + mut builder: crate::error::ec2_throttled_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn efsio_exception( +pub fn deser_structure_ec2_unexpected_exceptionjson_err( input: &[u8], - mut builder: crate::error::efsio_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EFSIOError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::ec2_unexpected_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EC2ErrorCode" => { + builder = builder.set_ec2_error_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn efs_mount_connectivity_exception( +pub fn deser_structure_efsio_exceptionjson_err( input: &[u8], - mut builder: crate::error::efs_mount_connectivity_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EFSMountConnectivityError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::efsio_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn efs_mount_failure_exception( +pub fn deser_structure_efs_mount_connectivity_exceptionjson_err( input: &[u8], - mut builder: crate::error::efs_mount_failure_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EFSMountFailureError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::efs_mount_connectivity_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn efs_mount_timeout_exception( +pub fn deser_structure_efs_mount_failure_exceptionjson_err( input: &[u8], - mut builder: crate::error::efs_mount_timeout_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EFSMountTimeoutError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::efs_mount_failure_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn eni_limit_reached_exception( +pub fn deser_structure_efs_mount_timeout_exceptionjson_err( input: &[u8], - mut builder: crate::error::eni_limit_reached_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ENILimitReachedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::efs_mount_timeout_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_request_content_exception( +pub fn deser_structure_eni_limit_reached_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_request_content_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidRequestContentError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::eni_limit_reached_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_runtime_exception( +pub fn deser_structure_invalid_request_content_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_runtime_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidRuntimeError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_request_content_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_security_group_id_exception( +pub fn deser_structure_invalid_runtime_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_security_group_id_error::Builder, -) -> std::result::Result -{ - let parsed_body: crate::error::InvalidSecurityGroupIDError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_runtime_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_subnet_id_exception( +pub fn deser_structure_invalid_security_group_id_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_subnet_id_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidSubnetIDError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_security_group_id_exception::Builder, +) -> Result< + crate::error::invalid_security_group_id_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_zip_file_exception( +pub fn deser_structure_invalid_subnet_id_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_zip_file_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidZipFileError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_subnet_id_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn kms_access_denied_exception( +pub fn deser_structure_invalid_zip_file_exceptionjson_err( input: &[u8], - mut builder: crate::error::kms_access_denied_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::KMSAccessDeniedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_zip_file_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn kms_disabled_exception( +pub fn deser_structure_kms_access_denied_exceptionjson_err( input: &[u8], - mut builder: crate::error::kms_disabled_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::KMSDisabledError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::kms_access_denied_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn kms_invalid_state_exception( +pub fn deser_structure_kms_disabled_exceptionjson_err( input: &[u8], - mut builder: crate::error::kms_invalid_state_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::KMSInvalidStateError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::kms_disabled_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn kms_not_found_exception( +pub fn deser_structure_kms_invalid_state_exceptionjson_err( input: &[u8], - mut builder: crate::error::kms_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::KMSNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::kms_invalid_state_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn request_too_large_exception( +pub fn deser_structure_kms_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::request_too_large_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::RequestTooLargeError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::kms_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_not_ready_exception( +pub fn deser_structure_request_too_large_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_not_ready_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceNotReadyError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::request_too_large_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn subnet_ip_address_limit_reached_exception( +pub fn deser_structure_resource_not_ready_exceptionjson_err( input: &[u8], - mut builder: crate::error::subnet_ip_address_limit_reached_error::Builder, -) -> std::result::Result< - crate::error::subnet_ip_address_limit_reached_error::Builder, - serde_json::Error, + mut builder: crate::error::resource_not_ready_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_subnet_ip_address_limit_reached_exceptionjson_err( + input: &[u8], + mut builder: crate::error::subnet_ip_address_limit_reached_exception::Builder, +) -> Result< + crate::error::subnet_ip_address_limit_reached_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::SubnetIPAddressLimitReachedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unsupported_media_type_exception( +pub fn deser_structure_unsupported_media_type_exceptionjson_err( input: &[u8], - mut builder: crate::error::unsupported_media_type_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnsupportedMediaTypeError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::unsupported_media_type_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_aliases_deser_operation( +pub fn deser_operation_list_aliases( input: &[u8], mut builder: crate::output::list_aliases_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAliasesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_aliases(parsed_body.aliases); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Aliases" => { + builder = + builder.set_aliases(crate::json_deser::deser_list_alias_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_code_signing_configs_deser_operation( +pub fn deser_operation_list_code_signing_configs( input: &[u8], mut builder: crate::output::list_code_signing_configs_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListCodeSigningConfigsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_code_signing_configs(parsed_body.code_signing_configs); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfigs" => { + builder = builder.set_code_signing_configs( + crate::json_deser::deser_list_code_signing_config_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_event_source_mappings_deser_operation( +pub fn deser_operation_list_event_source_mappings( input: &[u8], mut builder: crate::output::list_event_source_mappings_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListEventSourceMappingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_event_source_mappings(parsed_body.event_source_mappings); +) -> Result< + crate::output::list_event_source_mappings_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EventSourceMappings" => { + builder = builder.set_event_source_mappings( + crate::json_deser::deser_list_event_source_mappings_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_function_event_invoke_configs_deser_operation( +pub fn deser_operation_list_function_event_invoke_configs( input: &[u8], mut builder: crate::output::list_function_event_invoke_configs_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_function_event_invoke_configs_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListFunctionEventInvokeConfigsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_event_invoke_configs(parsed_body.function_event_invoke_configs); - builder = builder.set_next_marker(parsed_body.next_marker); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FunctionEventInvokeConfigs" => { + builder = builder.set_function_event_invoke_configs( + crate::json_deser::deser_list_function_event_invoke_config_list( + tokens, + )?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_functions_deser_operation( +pub fn deser_operation_list_functions( input: &[u8], mut builder: crate::output::list_functions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListFunctionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_functions(parsed_body.functions); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Functions" => { + builder = builder + .set_functions(crate::json_deser::deser_list_function_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_functions_by_code_signing_config_deser_operation( +pub fn deser_operation_list_functions_by_code_signing_config( input: &[u8], mut builder: crate::output::list_functions_by_code_signing_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_functions_by_code_signing_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListFunctionsByCodeSigningConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_function_arns(parsed_body.function_arns); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FunctionArns" => { + builder = builder.set_function_arns( + crate::json_deser::deser_list_function_arn_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_layers_deser_operation( +pub fn deser_operation_list_layers( input: &[u8], mut builder: crate::output::list_layers_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListLayersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_layers(parsed_body.layers); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Layers" => { + builder = + builder.set_layers(crate::json_deser::deser_list_layers_list(tokens)?); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_layer_versions_deser_operation( +pub fn deser_operation_list_layer_versions( input: &[u8], mut builder: crate::output::list_layer_versions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListLayerVersionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_layer_versions(parsed_body.layer_versions); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LayerVersions" => { + builder = builder.set_layer_versions( + crate::json_deser::deser_list_layer_versions_list(tokens)?, + ); + } + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_provisioned_concurrency_configs_deser_operation( +pub fn deser_operation_list_provisioned_concurrency_configs( input: &[u8], mut builder: crate::output::list_provisioned_concurrency_configs_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_provisioned_concurrency_configs_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListProvisionedConcurrencyConfigsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_provisioned_concurrency_configs(parsed_body.provisioned_concurrency_configs); - builder = builder.set_next_marker(parsed_body.next_marker); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisionedConcurrencyConfigs" => { + builder = builder.set_provisioned_concurrency_configs( + crate::json_deser::deser_list_provisioned_concurrency_config_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_deser_operation( +pub fn deser_operation_list_tags( input: &[u8], mut builder: crate::output::list_tags_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_versions_by_function_deser_operation( +pub fn deser_operation_list_versions_by_function( input: &[u8], mut builder: crate::output::list_versions_by_function_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListVersionsByFunctionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_marker(parsed_body.next_marker); - builder = builder.set_versions(parsed_body.versions); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextMarker" => { + builder = builder.set_next_marker( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Versions" => { + builder = builder + .set_versions(crate::json_deser::deser_list_function_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn publish_layer_version_deser_operation( +pub fn deser_operation_publish_layer_version( input: &[u8], mut builder: crate::output::publish_layer_version_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PublishLayerVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_content(parsed_body.content); - builder = builder.set_layer_arn(parsed_body.layer_arn); - builder = builder.set_layer_version_arn(parsed_body.layer_version_arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_version(Some(parsed_body.version)); - builder = builder.set_compatible_runtimes(parsed_body.compatible_runtimes); - builder = builder.set_license_info(parsed_body.license_info); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompatibleRuntimes" => { + builder = builder.set_compatible_runtimes( + crate::json_deser::deser_list_compatible_runtimes(tokens)?, + ); + } + "Content" => { + builder = builder.set_content( + crate::json_deser::deser_structure_layer_version_content_output( + tokens, + )?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerArn" => { + builder = builder.set_layer_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerVersionArn" => { + builder = builder.set_layer_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LicenseInfo" => { + builder = builder.set_license_info( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn publish_version_deser_operation( +pub fn deser_operation_publish_version( input: &[u8], mut builder: crate::output::publish_version_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PublishVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_name(parsed_body.function_name); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_runtime(parsed_body.runtime); - builder = builder.set_role(parsed_body.role); - builder = builder.set_handler(parsed_body.handler); - builder = builder.set_code_size(Some(parsed_body.code_size)); - builder = builder.set_description(parsed_body.description); - builder = builder.set_timeout(parsed_body.timeout); - builder = builder.set_memory_size(parsed_body.memory_size); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_code_sha256(parsed_body.code_sha256); - builder = builder.set_version(parsed_body.version); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_dead_letter_config(parsed_body.dead_letter_config); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_kms_key_arn(parsed_body.kms_key_arn); - builder = builder.set_tracing_config(parsed_body.tracing_config); - builder = builder.set_master_arn(parsed_body.master_arn); - builder = builder.set_revision_id(parsed_body.revision_id); - builder = builder.set_layers(parsed_body.layers); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_reason(parsed_body.state_reason); - builder = builder.set_state_reason_code(parsed_body.state_reason_code); - builder = builder.set_last_update_status(parsed_body.last_update_status); - builder = builder.set_last_update_status_reason(parsed_body.last_update_status_reason); - builder = - builder.set_last_update_status_reason_code(parsed_body.last_update_status_reason_code); - builder = builder.set_file_system_configs(parsed_body.file_system_configs); - builder = builder.set_package_type(parsed_body.package_type); - builder = builder.set_image_config_response(parsed_body.image_config_response); - builder = builder.set_signing_profile_version_arn(parsed_body.signing_profile_version_arn); - builder = builder.set_signing_job_arn(parsed_body.signing_job_arn); - Ok(builder) -} - -pub fn put_function_code_signing_config_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response(tokens)?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response(tokens)?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LastUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StateReasonCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response(tokens)?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_function_code_signing_config( input: &[u8], mut builder: crate::output::put_function_code_signing_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_function_code_signing_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutFunctionCodeSigningConfigOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_signing_config_arn(parsed_body.code_signing_config_arn); - builder = builder.set_function_name(parsed_body.function_name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfigArn" => { + builder = builder.set_code_signing_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_function_concurrency_deser_operation( +pub fn deser_operation_put_function_concurrency( input: &[u8], mut builder: crate::output::put_function_concurrency_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::PutFunctionConcurrencyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_reserved_concurrent_executions(parsed_body.reserved_concurrent_executions); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReservedConcurrentExecutions" => { + builder = builder.set_reserved_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_function_event_invoke_config_deser_operation( +pub fn deser_operation_put_function_event_invoke_config( input: &[u8], mut builder: crate::output::put_function_event_invoke_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_function_event_invoke_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutFunctionEventInvokeConfigOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_maximum_event_age_in_seconds(parsed_body.maximum_event_age_in_seconds); - builder = builder.set_destination_config(parsed_body.destination_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MaximumEventAgeInSeconds" => { + builder = builder.set_maximum_event_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_provisioned_concurrency_config_deser_operation( +pub fn deser_operation_put_provisioned_concurrency_config( input: &[u8], mut builder: crate::output::put_provisioned_concurrency_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_provisioned_concurrency_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutProvisionedConcurrencyConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_requested_provisioned_concurrent_executions( - parsed_body.requested_provisioned_concurrent_executions, - ); - builder = builder.set_available_provisioned_concurrent_executions( - parsed_body.available_provisioned_concurrent_executions, - ); - builder = builder.set_allocated_provisioned_concurrent_executions( - parsed_body.allocated_provisioned_concurrent_executions, - ); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_reason(parsed_body.status_reason); - builder = builder.set_last_modified(parsed_body.last_modified); - Ok(builder) -} - -pub fn update_alias_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AllocatedProvisionedConcurrentExecutions" => { + builder = builder.set_allocated_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "AvailableProvisionedConcurrentExecutions" => { + builder = builder.set_available_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RequestedProvisionedConcurrentExecutions" => { + builder = builder.set_requested_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProvisionedConcurrencyStatusEnum::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_alias( input: &[u8], mut builder: crate::output::update_alias_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateAliasOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_alias_arn(parsed_body.alias_arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_function_version(parsed_body.function_version); - builder = builder.set_description(parsed_body.description); - builder = builder.set_routing_config(parsed_body.routing_config); - builder = builder.set_revision_id(parsed_body.revision_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AliasArn" => { + builder = builder.set_alias_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionVersion" => { + builder = builder.set_function_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoutingConfig" => { + builder = builder.set_routing_config( + crate::json_deser::deser_structure_alias_routing_configuration(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_code_signing_config_deser_operation( +pub fn deser_operation_update_code_signing_config( input: &[u8], mut builder: crate::output::update_code_signing_config_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::UpdateCodeSigningConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_signing_config(parsed_body.code_signing_config); +) -> Result< + crate::output::update_code_signing_config_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfig" => { + builder = builder.set_code_signing_config( + crate::json_deser::deser_structure_code_signing_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_event_source_mapping_deser_operation( +pub fn deser_operation_update_event_source_mapping( input: &[u8], mut builder: crate::output::update_event_source_mapping_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_event_source_mapping_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateEventSourceMappingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_uuid(parsed_body.uuid); - builder = builder.set_starting_position(parsed_body.starting_position); - builder = builder.set_starting_position_timestamp(parsed_body.starting_position_timestamp); - builder = builder.set_batch_size(parsed_body.batch_size); - builder = builder - .set_maximum_batching_window_in_seconds(parsed_body.maximum_batching_window_in_seconds); - builder = builder.set_parallelization_factor(parsed_body.parallelization_factor); - builder = builder.set_event_source_arn(parsed_body.event_source_arn); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_last_processing_result(parsed_body.last_processing_result); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_transition_reason(parsed_body.state_transition_reason); - builder = builder.set_destination_config(parsed_body.destination_config); - builder = builder.set_topics(parsed_body.topics); - builder = builder.set_queues(parsed_body.queues); - builder = builder.set_source_access_configurations(parsed_body.source_access_configurations); - builder = builder.set_self_managed_event_source(parsed_body.self_managed_event_source); - builder = builder.set_maximum_record_age_in_seconds(parsed_body.maximum_record_age_in_seconds); - builder = - builder.set_bisect_batch_on_function_error(parsed_body.bisect_batch_on_function_error); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_tumbling_window_in_seconds(parsed_body.tumbling_window_in_seconds); - builder = builder.set_function_response_types(parsed_body.function_response_types); - Ok(builder) -} - -pub fn update_function_code_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BatchSize" => { + builder = builder.set_batch_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BisectBatchOnFunctionError" => { + builder = builder.set_bisect_batch_on_function_error( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "EventSourceArn" => { + builder = builder.set_event_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionResponseTypes" => { + builder = builder.set_function_response_types( + crate::json_deser::deser_list_function_response_type_list(tokens)?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastProcessingResult" => { + builder = builder.set_last_processing_result( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaximumBatchingWindowInSeconds" => { + builder = builder.set_maximum_batching_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRecordAgeInSeconds" => { + builder = builder.set_maximum_record_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ParallelizationFactor" => { + builder = builder.set_parallelization_factor( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Queues" => { + builder = builder.set_queues(crate::json_deser::deser_list_queues(tokens)?); + } + "SelfManagedEventSource" => { + builder = builder.set_self_managed_event_source( + crate::json_deser::deser_structure_self_managed_event_source(tokens)?, + ); + } + "SourceAccessConfigurations" => { + builder = builder.set_source_access_configurations( + crate::json_deser::deser_list_source_access_configurations(tokens)?, + ); + } + "StartingPosition" => { + builder = builder.set_starting_position( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EventSourcePosition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartingPositionTimestamp" => { + builder = builder.set_starting_position_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateTransitionReason" => { + builder = builder.set_state_transition_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Topics" => { + builder = builder.set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + "TumblingWindowInSeconds" => { + builder = builder.set_tumbling_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "UUID" => { + builder = builder.set_uuid( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_function_code( input: &[u8], mut builder: crate::output::update_function_code_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateFunctionCodeOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_name(parsed_body.function_name); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_runtime(parsed_body.runtime); - builder = builder.set_role(parsed_body.role); - builder = builder.set_handler(parsed_body.handler); - builder = builder.set_code_size(Some(parsed_body.code_size)); - builder = builder.set_description(parsed_body.description); - builder = builder.set_timeout(parsed_body.timeout); - builder = builder.set_memory_size(parsed_body.memory_size); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_code_sha256(parsed_body.code_sha256); - builder = builder.set_version(parsed_body.version); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_dead_letter_config(parsed_body.dead_letter_config); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_kms_key_arn(parsed_body.kms_key_arn); - builder = builder.set_tracing_config(parsed_body.tracing_config); - builder = builder.set_master_arn(parsed_body.master_arn); - builder = builder.set_revision_id(parsed_body.revision_id); - builder = builder.set_layers(parsed_body.layers); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_reason(parsed_body.state_reason); - builder = builder.set_state_reason_code(parsed_body.state_reason_code); - builder = builder.set_last_update_status(parsed_body.last_update_status); - builder = builder.set_last_update_status_reason(parsed_body.last_update_status_reason); - builder = - builder.set_last_update_status_reason_code(parsed_body.last_update_status_reason_code); - builder = builder.set_file_system_configs(parsed_body.file_system_configs); - builder = builder.set_package_type(parsed_body.package_type); - builder = builder.set_image_config_response(parsed_body.image_config_response); - builder = builder.set_signing_profile_version_arn(parsed_body.signing_profile_version_arn); - builder = builder.set_signing_job_arn(parsed_body.signing_job_arn); - Ok(builder) -} - -pub fn update_function_configuration_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response(tokens)?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response(tokens)?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LastUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StateReasonCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response(tokens)?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_function_configuration( input: &[u8], mut builder: crate::output::update_function_configuration_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_function_configuration_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateFunctionConfigurationOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_function_name(parsed_body.function_name); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_runtime(parsed_body.runtime); - builder = builder.set_role(parsed_body.role); - builder = builder.set_handler(parsed_body.handler); - builder = builder.set_code_size(Some(parsed_body.code_size)); - builder = builder.set_description(parsed_body.description); - builder = builder.set_timeout(parsed_body.timeout); - builder = builder.set_memory_size(parsed_body.memory_size); - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_code_sha256(parsed_body.code_sha256); - builder = builder.set_version(parsed_body.version); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_dead_letter_config(parsed_body.dead_letter_config); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_kms_key_arn(parsed_body.kms_key_arn); - builder = builder.set_tracing_config(parsed_body.tracing_config); - builder = builder.set_master_arn(parsed_body.master_arn); - builder = builder.set_revision_id(parsed_body.revision_id); - builder = builder.set_layers(parsed_body.layers); - builder = builder.set_state(parsed_body.state); - builder = builder.set_state_reason(parsed_body.state_reason); - builder = builder.set_state_reason_code(parsed_body.state_reason_code); - builder = builder.set_last_update_status(parsed_body.last_update_status); - builder = builder.set_last_update_status_reason(parsed_body.last_update_status_reason); - builder = - builder.set_last_update_status_reason_code(parsed_body.last_update_status_reason_code); - builder = builder.set_file_system_configs(parsed_body.file_system_configs); - builder = builder.set_package_type(parsed_body.package_type); - builder = builder.set_image_config_response(parsed_body.image_config_response); - builder = builder.set_signing_profile_version_arn(parsed_body.signing_profile_version_arn); - builder = builder.set_signing_job_arn(parsed_body.signing_job_arn); - Ok(builder) -} - -pub fn update_function_event_invoke_config_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response(tokens)?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response(tokens)?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LastUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StateReasonCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response(tokens)?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_function_event_invoke_config( input: &[u8], mut builder: crate::output::update_function_event_invoke_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_function_event_invoke_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateFunctionEventInvokeConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_last_modified(parsed_body.last_modified); - builder = builder.set_function_arn(parsed_body.function_arn); - builder = builder.set_maximum_retry_attempts(parsed_body.maximum_retry_attempts); - builder = builder.set_maximum_event_age_in_seconds(parsed_body.maximum_event_age_in_seconds); - builder = builder.set_destination_config(parsed_body.destination_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MaximumEventAgeInSeconds" => { + builder = builder.set_maximum_event_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_alias_routing_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AliasRoutingConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AdditionalVersionWeights" => { + builder = builder.set_additional_version_weights( + crate::json_deser::deser_map_additional_version_weights( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_code_signing_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CodeSigningConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeSigningConfigId" => { + builder = builder.set_code_signing_config_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSigningConfigArn" => { + builder = builder.set_code_signing_config_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AllowedPublishers" => { + builder = builder.set_allowed_publishers( + crate::json_deser::deser_structure_allowed_publishers(tokens)?, + ); + } + "CodeSigningPolicies" => { + builder = builder.set_code_signing_policies( + crate::json_deser::deser_structure_code_signing_policies( + tokens, + )?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_destination_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DestinationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OnSuccess" => { + builder = builder.set_on_success( + crate::json_deser::deser_structure_on_success(tokens)?, + ); + } + "OnFailure" => { + builder = builder.set_on_failure( + crate::json_deser::deser_structure_on_failure(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_function_response_type_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FunctionResponseType::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_queues<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_self_managed_event_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SelfManagedEventSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Endpoints" => { + builder = builder + .set_endpoints(crate::json_deser::deser_map_endpoints(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_source_access_configurations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_source_access_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_topics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_dead_letter_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeadLetterConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TargetArn" => { + builder = builder.set_target_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_environment_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EnvironmentResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Variables" => { + builder = builder.set_variables( + crate::json_deser::deser_map_environment_variables(tokens)?, + ); + } + "Error" => { + builder = builder.set_error( + crate::json_deser::deser_structure_environment_error(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_file_system_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_file_system_config(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_image_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageConfig" => { + builder = builder.set_image_config( + crate::json_deser::deser_structure_image_config(tokens)?, + ); + } + "Error" => { + builder = builder.set_error( + crate::json_deser::deser_structure_image_config_error(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_layers_reference_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_layer(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_tracing_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TracingConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TracingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_vpc_config_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VpcConfigResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SubnetIds" => { + builder = builder.set_subnet_ids( + crate::json_deser::deser_list_subnet_ids(tokens)?, + ); + } + "SecurityGroupIds" => { + builder = builder.set_security_group_ids( + crate::json_deser::deser_list_security_group_ids(tokens)?, + ); + } + "VpcId" => { + builder = builder.set_vpc_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_account_limit<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AccountLimit::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TotalCodeSize" => { + builder = builder.set_total_code_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "CodeSizeUnzipped" => { + builder = builder.set_code_size_unzipped( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "CodeSizeZipped" => { + builder = builder.set_code_size_zipped( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ConcurrentExecutions" => { + builder = builder.set_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "UnreservedConcurrentExecutions" => { + builder = builder.set_unreserved_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_account_usage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AccountUsage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TotalCodeSize" => { + builder = builder.set_total_code_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "FunctionCount" => { + builder = builder.set_function_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_function_code_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FunctionCodeLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RepositoryType" => { + builder = builder.set_repository_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Location" => { + builder = builder.set_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResolvedImageUri" => { + builder = builder.set_resolved_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_concurrency<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Concurrency::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReservedConcurrentExecutions" => { + builder = builder.set_reserved_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_function_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FunctionConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FunctionName" => { + builder = builder.set_function_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Runtime" => { + builder = builder.set_runtime( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Role" => { + builder = builder.set_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Handler" => { + builder = builder.set_handler( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Timeout" => { + builder = builder.set_timeout( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MemorySize" => { + builder = builder.set_memory_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config_response(tokens)?, + ); + } + "DeadLetterConfig" => { + builder = builder.set_dead_letter_config( + crate::json_deser::deser_structure_dead_letter_config(tokens)?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_structure_environment_response( + tokens, + )?, + ); + } + "KMSKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TracingConfig" => { + builder = builder.set_tracing_config( + crate::json_deser::deser_structure_tracing_config_response( + tokens, + )?, + ); + } + "MasterArn" => { + builder = builder.set_master_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Layers" => { + builder = builder.set_layers( + crate::json_deser::deser_list_layers_reference_list(tokens)?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::State::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StateReason" => { + builder = builder.set_state_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateReasonCode" => { + builder = builder.set_state_reason_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::StateReasonCode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastUpdateStatus" => { + builder = builder.set_last_update_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastUpdateStatusReason" => { + builder = builder.set_last_update_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdateStatusReasonCode" => { + builder = builder.set_last_update_status_reason_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastUpdateStatusReasonCode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "FileSystemConfigs" => { + builder = builder.set_file_system_configs( + crate::json_deser::deser_list_file_system_config_list(tokens)?, + ); + } + "PackageType" => { + builder = builder.set_package_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PackageType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ImageConfigResponse" => { + builder = builder.set_image_config_response( + crate::json_deser::deser_structure_image_config_response( + tokens, + )?, + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compatible_runtimes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Runtime::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_layer_version_content_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LayerVersionContentOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Location" => { + builder = builder.set_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSha256" => { + builder = builder.set_code_sha256( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_alias_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_alias_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_code_signing_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_code_signing_config(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_event_source_mappings_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_event_source_mapping_configuration( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_function_event_invoke_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_function_event_invoke_config( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_function_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_function_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_function_arn_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_layers_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_layers_list_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_layer_versions_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_layer_versions_list_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_provisioned_concurrency_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_provisioned_concurrency_config_list_item(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_additional_version_weights<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()); + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_allowed_publishers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AllowedPublishers::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SigningProfileVersionArns" => { + builder = builder.set_signing_profile_version_arns( + crate::json_deser::deser_list_signing_profile_version_arns( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_code_signing_policies<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CodeSigningPolicies::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UntrustedArtifactOnDeployment" => { + builder = builder.set_untrusted_artifact_on_deployment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CodeSigningPolicy::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_on_success<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OnSuccess::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Destination" => { + builder = builder.set_destination( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_on_failure<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OnFailure::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Destination" => { + builder = builder.set_destination( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_endpoints<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key + .to_unescaped() + .map(|u| crate::model::EndPointType::from(u.as_ref()))?; + let value = crate::json_deser::deser_list_endpoint_lists(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_access_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceAccessConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SourceAccessType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "URI" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_environment_variables<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_environment_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EnvironmentError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ErrorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_file_system_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FileSystemConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalMountPath" => { + builder = builder.set_local_mount_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EntryPoint" => { + builder = builder.set_entry_point( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "Command" => { + builder = builder.set_command( + crate::json_deser::deser_list_string_list(tokens)?, + ); + } + "WorkingDirectory" => { + builder = builder.set_working_directory( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_config_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageConfigError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ErrorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_layer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Layer::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeSize" => { + builder = builder.set_code_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SigningProfileVersionArn" => { + builder = builder.set_signing_profile_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SigningJobArn" => { + builder = builder.set_signing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_subnet_ids<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_security_group_ids<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_alias_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AliasConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AliasArn" => { + builder = builder.set_alias_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionVersion" => { + builder = builder.set_function_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoutingConfig" => { + builder = builder.set_routing_config( + crate::json_deser::deser_structure_alias_routing_configuration( + tokens, + )?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_event_source_mapping_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EventSourceMappingConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UUID" => { + builder = builder.set_uuid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartingPosition" => { + builder = builder.set_starting_position( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EventSourcePosition::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartingPositionTimestamp" => { + builder = builder.set_starting_position_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "BatchSize" => { + builder = builder.set_batch_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaximumBatchingWindowInSeconds" => { + builder = builder.set_maximum_batching_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ParallelizationFactor" => { + builder = builder.set_parallelization_factor( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "EventSourceArn" => { + builder = builder.set_event_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastProcessingResult" => { + builder = builder.set_last_processing_result( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StateTransitionReason" => { + builder = builder.set_state_transition_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + "Topics" => { + builder = builder + .set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + "Queues" => { + builder = builder + .set_queues(crate::json_deser::deser_list_queues(tokens)?); + } + "SourceAccessConfigurations" => { + builder = builder.set_source_access_configurations( + crate::json_deser::deser_list_source_access_configurations( + tokens, + )?, + ); + } + "SelfManagedEventSource" => { + builder = builder.set_self_managed_event_source( + crate::json_deser::deser_structure_self_managed_event_source( + tokens, + )?, + ); + } + "MaximumRecordAgeInSeconds" => { + builder = builder.set_maximum_record_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "BisectBatchOnFunctionError" => { + builder = builder.set_bisect_batch_on_function_error( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TumblingWindowInSeconds" => { + builder = builder.set_tumbling_window_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "FunctionResponseTypes" => { + builder = builder.set_function_response_types( + crate::json_deser::deser_list_function_response_type_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_function_event_invoke_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FunctionEventInvokeConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaximumEventAgeInSeconds" => { + builder = builder.set_maximum_event_age_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DestinationConfig" => { + builder = builder.set_destination_config( + crate::json_deser::deser_structure_destination_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_layers_list_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LayersListItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LayerName" => { + builder = builder.set_layer_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LayerArn" => { + builder = builder.set_layer_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LatestMatchingVersion" => { + builder = builder.set_latest_matching_version( + crate::json_deser::deser_structure_layer_versions_list_item( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_layer_versions_list_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LayerVersionsListItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LayerVersionArn" => { + builder = builder.set_layer_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompatibleRuntimes" => { + builder = builder.set_compatible_runtimes( + crate::json_deser::deser_list_compatible_runtimes(tokens)?, + ); + } + "LicenseInfo" => { + builder = builder.set_license_info( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_provisioned_concurrency_config_list_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProvisionedConcurrencyConfigListItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FunctionArn" => { + builder = builder.set_function_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RequestedProvisionedConcurrentExecutions" => { + builder = builder.set_requested_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "AvailableProvisionedConcurrentExecutions" => { + builder = builder.set_available_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "AllocatedProvisionedConcurrentExecutions" => { + builder = builder.set_allocated_provisioned_concurrent_executions( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProvisionedConcurrencyStatusEnum::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusReason" => { + builder = builder.set_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_signing_profile_version_arns<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_endpoint_lists<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/lambda/src/json_errors.rs b/sdk/lambda/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/lambda/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/lambda/src/lib.rs b/sdk/lambda/src/lib.rs index c84ff8a35a41..b53afba7821c 100644 --- a/sdk/lambda/src/lib.rs +++ b/sdk/lambda/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Lambda //!

    //! Overview @@ -17,8 +18,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -26,16 +25,14 @@ pub mod error; mod error_meta; mod http_serde; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/lambda/src/model.rs b/sdk/lambda/src/model.rs index d5b3aa33f21f..27ebd5606990 100644 --- a/sdk/lambda/src/model.rs +++ b/sdk/lambda/src/model.rs @@ -41,7 +41,7 @@ impl std::convert::From<&str> for ThrottleReason { impl std::str::FromStr for ThrottleReason { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ThrottleReason::from(s)) } } @@ -70,27 +70,14 @@ impl AsRef for ThrottleReason { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ThrottleReason { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A configuration object that specifies the destination of an event after Lambda processes it.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DestinationConfig { ///

    The destination configuration for successful invocations.

    - #[serde(rename = "OnSuccess")] - #[serde(default)] pub on_success: std::option::Option, ///

    The destination configuration for failed invocations.

    - #[serde(rename = "OnFailure")] - #[serde(default)] pub on_failure: std::option::Option, } impl std::fmt::Debug for DestinationConfig { @@ -153,11 +140,9 @@ impl DestinationConfig { ///

    A destination for events that failed processing.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OnFailure { ///

    The Amazon Resource Name (ARN) of the destination resource.

    - #[serde(rename = "Destination")] - #[serde(default)] pub destination: std::option::Option, } impl std::fmt::Debug for OnFailure { @@ -202,11 +187,9 @@ impl OnFailure { ///

    A destination for events that were processed successfully.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OnSuccess { ///

    The Amazon Resource Name (ARN) of the destination resource.

    - #[serde(rename = "Destination")] - #[serde(default)] pub destination: std::option::Option, } impl std::fmt::Debug for OnSuccess { @@ -251,15 +234,11 @@ impl OnSuccess { ///

    Response to GetFunctionConfiguration request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImageConfigResponse { ///

    Configuration values that override the container image Dockerfile.

    - #[serde(rename = "ImageConfig")] - #[serde(default)] pub image_config: std::option::Option, ///

    Error response to GetFunctionConfiguration.

    - #[serde(rename = "Error")] - #[serde(default)] pub error: std::option::Option, } impl std::fmt::Debug for ImageConfigResponse { @@ -322,15 +301,11 @@ impl ImageConfigResponse { ///

    Error response to GetFunctionConfiguration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImageConfigError { ///

    Error code.

    - #[serde(rename = "ErrorCode")] - #[serde(default)] pub error_code: std::option::Option, ///

    Error message.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ImageConfigError { @@ -388,20 +363,14 @@ impl ImageConfigError { ///

    Configuration values that override the container image Dockerfile settings. See /// Container settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImageConfig { ///

    Specifies the entry point to their application, which is typically the location of the runtime /// executable.

    - #[serde(rename = "EntryPoint")] - #[serde(default)] pub entry_point: std::option::Option>, ///

    Specifies parameters that you want to pass in with ENTRYPOINT.

    - #[serde(rename = "Command")] - #[serde(default)] pub command: std::option::Option>, ///

    Specifies the working directory.

    - #[serde(rename = "WorkingDirectory")] - #[serde(default)] pub working_directory: std::option::Option, } impl std::fmt::Debug for ImageConfig { @@ -507,7 +476,7 @@ impl std::convert::From<&str> for PackageType { impl std::str::FromStr for PackageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PackageType::from(s)) } } @@ -525,27 +494,14 @@ impl AsRef for PackageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PackageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about the connection between a Lambda function and an Amazon EFS file system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FileSystemConfig { ///

    The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The path where the function can access the file system, starting with /mnt/.

    - #[serde(rename = "LocalMountPath")] - #[serde(default)] pub local_mount_path: std::option::Option, } impl std::fmt::Debug for FileSystemConfig { @@ -649,7 +605,7 @@ impl std::convert::From<&str> for LastUpdateStatusReasonCode { impl std::str::FromStr for LastUpdateStatusReasonCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LastUpdateStatusReasonCode::from(s)) } } @@ -677,15 +633,6 @@ impl AsRef for LastUpdateStatusReasonCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LastUpdateStatusReasonCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -717,7 +664,7 @@ impl std::convert::From<&str> for LastUpdateStatus { impl std::str::FromStr for LastUpdateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LastUpdateStatus::from(s)) } } @@ -736,15 +683,6 @@ impl AsRef for LastUpdateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LastUpdateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -796,7 +734,7 @@ impl std::convert::From<&str> for StateReasonCode { impl std::str::FromStr for StateReasonCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StateReasonCode::from(s)) } } @@ -825,15 +763,6 @@ impl AsRef for StateReasonCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StateReasonCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -867,7 +796,7 @@ impl std::convert::From<&str> for State { impl std::str::FromStr for State { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(State::from(s)) } } @@ -887,36 +816,19 @@ impl AsRef for State { self.as_str() } } -impl<'de> serde::Deserialize<'de> for State { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An AWS Lambda /// layer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Layer { ///

    The Amazon Resource Name (ARN) of the function layer.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The size of the layer archive in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] pub code_size: i64, ///

    The Amazon Resource Name (ARN) for a signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] pub signing_profile_version_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of a signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] pub signing_job_arn: std::option::Option, } impl std::fmt::Debug for Layer { @@ -1009,11 +921,9 @@ impl Layer { ///

    The function's AWS X-Ray tracing configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TracingConfigResponse { ///

    The tracing mode.

    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, } impl std::fmt::Debug for TracingConfigResponse { @@ -1082,7 +992,7 @@ impl std::convert::From<&str> for TracingMode { impl std::str::FromStr for TracingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TracingMode::from(s)) } } @@ -1100,29 +1010,16 @@ impl AsRef for TracingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TracingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The results of an operation to update or read environment variables. If the operation is successful, the /// response contains the environment variables. If it failed, the response contains details about the error.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EnvironmentResponse { ///

    Environment variable key-value pairs.

    - #[serde(rename = "Variables")] - #[serde(default)] pub variables: std::option::Option>, ///

    Error messages for environment variables that couldn't be applied.

    - #[serde(rename = "Error")] - #[serde(default)] pub error: std::option::Option, } impl std::fmt::Debug for EnvironmentResponse { @@ -1194,15 +1091,11 @@ impl EnvironmentResponse { ///

    Error messages for environment variables that couldn't be applied.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EnvironmentError { ///

    The error code.

    - #[serde(rename = "ErrorCode")] - #[serde(default)] pub error_code: std::option::Option, ///

    The error message.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for EnvironmentError { @@ -1260,11 +1153,9 @@ impl EnvironmentError { ///

    The dead-letter queue for /// failed asynchronous invocations.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeadLetterConfig { ///

    The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

    - #[serde(rename = "TargetArn")] - #[serde(default)] pub target_arn: std::option::Option, } impl std::fmt::Debug for DeadLetterConfig { @@ -1309,19 +1200,13 @@ impl DeadLetterConfig { ///

    The VPC security groups and subnets that are attached to a Lambda function.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcConfigResponse { ///

    A list of VPC subnet IDs.

    - #[serde(rename = "SubnetIds")] - #[serde(default)] pub subnet_ids: std::option::Option>, ///

    A list of VPC security groups IDs.

    - #[serde(rename = "SecurityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, ///

    The ID of the VPC.

    - #[serde(rename = "VpcId")] - #[serde(default)] pub vpc_id: std::option::Option, } impl std::fmt::Debug for VpcConfigResponse { @@ -1468,7 +1353,7 @@ impl std::convert::From<&str> for Runtime { impl std::str::FromStr for Runtime { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Runtime::from(s)) } } @@ -1508,24 +1393,13 @@ impl AsRef for Runtime { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Runtime { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The function's AWS X-Ray tracing configuration. To sample and record incoming requests, set Mode /// to Active.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TracingConfig { ///

    The tracing mode.

    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, } impl std::fmt::Debug for TracingConfig { @@ -1568,11 +1442,9 @@ impl TracingConfig { ///

    A function's environment variable settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Environment { ///

    Environment variable key-value pairs.

    - #[serde(rename = "Variables")] - #[serde(default)] pub variables: std::option::Option>, } @@ -1630,15 +1502,11 @@ impl Environment { ///

    The VPC security groups and subnets that are attached to a Lambda function. For more information, see VPC Settings.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcConfig { ///

    A list of VPC subnet IDs.

    - #[serde(rename = "SubnetIds")] - #[serde(default)] pub subnet_ids: std::option::Option>, ///

    A list of VPC security groups IDs.

    - #[serde(rename = "SecurityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, } impl std::fmt::Debug for VpcConfig { @@ -1727,7 +1595,7 @@ impl std::convert::From<&str> for FunctionResponseType { impl std::str::FromStr for FunctionResponseType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FunctionResponseType::from(s)) } } @@ -1744,23 +1612,12 @@ impl AsRef for FunctionResponseType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FunctionResponseType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The Self-Managed Apache Kafka cluster for your event source.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SelfManagedEventSource { ///

    The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    - #[serde(rename = "Endpoints")] - #[serde(default)] pub endpoints: std::option::Option< std::collections::HashMap>, >, @@ -1849,7 +1706,7 @@ impl std::convert::From<&str> for EndPointType { impl std::str::FromStr for EndPointType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndPointType::from(s)) } } @@ -1866,19 +1723,10 @@ impl AsRef for EndPointType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndPointType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    You can specify the authentication protocol, or the VPC components to secure access to your event source.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceAccessConfiguration { ///

    The type of authentication protocol or the VPC components for your event source. For example: "Type":"SASL_SCRAM_512_AUTH".

    ///
      @@ -1903,12 +1751,8 @@ pub struct SourceAccessConfiguration { /// SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your Self-Managed Apache Kafka brokers.

      /// ///
    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The value for your chosen configuration in Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    - #[serde(rename = "URI")] - #[serde(default)] pub uri: std::option::Option, } impl std::fmt::Debug for SourceAccessConfiguration { @@ -2022,7 +1866,7 @@ impl std::convert::From<&str> for SourceAccessType { impl std::str::FromStr for SourceAccessType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SourceAccessType::from(s)) } } @@ -2043,15 +1887,6 @@ impl AsRef for SourceAccessType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SourceAccessType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2083,7 +1918,7 @@ impl std::convert::From<&str> for EventSourcePosition { impl std::str::FromStr for EventSourcePosition { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EventSourcePosition::from(s)) } } @@ -2102,43 +1937,22 @@ impl AsRef for EventSourcePosition { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EventSourcePosition { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about a Code signing configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CodeSigningConfig { ///

    Unique identifer for the Code signing configuration.

    - #[serde(rename = "CodeSigningConfigId")] - #[serde(default)] pub code_signing_config_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Code signing configuration.

    - #[serde(rename = "CodeSigningConfigArn")] - #[serde(default)] pub code_signing_config_arn: std::option::Option, ///

    Code signing configuration description.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    List of allowed publishers.

    - #[serde(rename = "AllowedPublishers")] - #[serde(default)] pub allowed_publishers: std::option::Option, ///

    The code signing policy controls the validation failure action for signature mismatch or expiry.

    - #[serde(rename = "CodeSigningPolicies")] - #[serde(default)] pub code_signing_policies: std::option::Option, ///

    The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] pub last_modified: std::option::Option, } impl std::fmt::Debug for CodeSigningConfig { @@ -2259,15 +2073,13 @@ impl CodeSigningConfig { ///

    Code signing configuration policies specifies the validation failure action for signature mismatch or /// expiry.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CodeSigningPolicies { ///

    Code signing configuration policy for deployment validation failure. If you set the policy to /// Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the /// policy to Warn, Lambda allows the deployment and creates a CloudWatch log.

    ///

    Default value: Warn ///

    - #[serde(rename = "UntrustedArtifactOnDeployment")] - #[serde(default)] pub untrusted_artifact_on_deployment: std::option::Option, } impl std::fmt::Debug for CodeSigningPolicies { @@ -2352,7 +2164,7 @@ impl std::convert::From<&str> for CodeSigningPolicy { impl std::str::FromStr for CodeSigningPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CodeSigningPolicy::from(s)) } } @@ -2370,24 +2182,13 @@ impl AsRef for CodeSigningPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CodeSigningPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    List of signing profiles that can sign a code package.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AllowedPublishers { ///

    The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user /// who can sign a code package.

    - #[serde(rename = "SigningProfileVersionArns")] - #[serde(default)] pub signing_profile_version_arns: std::option::Option>, } impl std::fmt::Debug for AllowedPublishers { @@ -2443,11 +2244,9 @@ impl AllowedPublishers { ///

    The traffic-shifting configuration of a Lambda function alias.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AliasRoutingConfiguration { ///

    The second version, and the percentage of traffic that's routed to it.

    - #[serde(rename = "AdditionalVersionWeights")] - #[serde(default)] pub additional_version_weights: std::option::Option>, } @@ -2533,7 +2332,7 @@ impl std::convert::From<&str> for ProvisionedConcurrencyStatusEnum { impl std::str::FromStr for ProvisionedConcurrencyStatusEnum { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProvisionedConcurrencyStatusEnum::from(s)) } } @@ -2552,40 +2351,21 @@ impl AsRef for ProvisionedConcurrencyStatusEnum { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProvisionedConcurrencyStatusEnum { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about a version of an AWS Lambda /// layer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LayerVersionContentOutput { ///

    A link to the layer archive in Amazon S3 that is valid for 10 minutes.

    - #[serde(rename = "Location")] - #[serde(default)] pub location: std::option::Option, ///

    The SHA-256 hash of the layer archive.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] pub code_sha256: std::option::Option, ///

    The size of the layer archive in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] pub code_size: i64, ///

    The Amazon Resource Name (ARN) for a signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] pub signing_profile_version_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of a signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] pub signing_job_arn: std::option::Option, } impl std::fmt::Debug for LayerVersionContentOutput { @@ -2692,25 +2472,16 @@ impl LayerVersionContentOutput { /// layer. You can specify either an Amazon S3 location, /// or upload a layer archive directly.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LayerVersionContentInput { ///

    The Amazon S3 bucket of the layer archive.

    - #[serde(rename = "S3Bucket")] - #[serde(default)] pub s3_bucket: std::option::Option, ///

    The Amazon S3 key of the layer archive.

    - #[serde(rename = "S3Key")] - #[serde(default)] pub s3_key: std::option::Option, ///

    For versioned objects, the version of the layer archive object to use.

    - #[serde(rename = "S3ObjectVersion")] - #[serde(default)] pub s3_object_version: std::option::Option, ///

    The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for /// you.

    - #[serde(rename = "ZipFile")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub zip_file: std::option::Option, } impl std::fmt::Debug for LayerVersionContentInput { @@ -2795,137 +2566,75 @@ impl LayerVersionContentInput { ///

    Details about a function's configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FunctionConfiguration { ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] pub function_name: std::option::Option, ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] pub function_arn: std::option::Option, ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] pub runtime: std::option::Option, ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] pub role: std::option::Option, ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] pub handler: std::option::Option, ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] pub code_size: i64, ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] pub timeout: std::option::Option, ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] pub memory_size: std::option::Option, ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] pub last_modified: std::option::Option, ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] pub code_sha256: std::option::Option, ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] pub dead_letter_config: std::option::Option, ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option, ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] pub kms_key_arn: std::option::Option, ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] pub tracing_config: std::option::Option, ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] pub master_arn: std::option::Option, ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] pub revision_id: std::option::Option, ///

    The function's /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] pub layers: std::option::Option>, ///

    The current state of the function. When the state is Inactive, you can reactivate the function by /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] pub state: std::option::Option, ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] pub state_reason: std::option::Option, ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] pub state_reason_code: std::option::Option, ///

    The status of the last update that was performed on the function. This is first set to Successful /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] pub last_update_status: std::option::Option, ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] pub last_update_status_reason: std::option::Option, ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] pub last_update_status_reason_code: std::option::Option, ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] pub file_system_configs: std::option::Option>, ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] pub package_type: std::option::Option, ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] pub image_config_response: std::option::Option, ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] pub signing_profile_version_arn: std::option::Option, ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] pub signing_job_arn: std::option::Option, } impl std::fmt::Debug for FunctionConfiguration { @@ -3401,35 +3110,21 @@ impl FunctionConfiguration { ///

    Details about the provisioned concurrency configuration for a function alias or version.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProvisionedConcurrencyConfigListItem { ///

    The Amazon Resource Name (ARN) of the alias or version.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] pub function_arn: std::option::Option, ///

    The amount of provisioned concurrency requested.

    - #[serde(rename = "RequestedProvisionedConcurrentExecutions")] - #[serde(default)] pub requested_provisioned_concurrent_executions: std::option::Option, ///

    The amount of provisioned concurrency available.

    - #[serde(rename = "AvailableProvisionedConcurrentExecutions")] - #[serde(default)] pub available_provisioned_concurrent_executions: std::option::Option, ///

    The amount of provisioned concurrency allocated.

    - #[serde(rename = "AllocatedProvisionedConcurrentExecutions")] - #[serde(default)] pub allocated_provisioned_concurrent_executions: std::option::Option, ///

    The status of the allocation process.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    For failed allocations, the reason that provisioned concurrency could not be allocated.

    - #[serde(rename = "StatusReason")] - #[serde(default)] pub status_reason: std::option::Option, ///

    The date and time that a user last updated the configuration, in ISO 8601 format.

    - #[serde(rename = "LastModified")] - #[serde(default)] pub last_modified: std::option::Option, } impl std::fmt::Debug for ProvisionedConcurrencyConfigListItem { @@ -3577,31 +3272,19 @@ impl ProvisionedConcurrencyConfigListItem { ///

    Details about a version of an AWS Lambda /// layer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LayerVersionsListItem { ///

    The ARN of the layer version.

    - #[serde(rename = "LayerVersionArn")] - #[serde(default)] pub layer_version_arn: std::option::Option, ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: i64, ///

    The description of the version.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.

    - #[serde(rename = "CreatedDate")] - #[serde(default)] pub created_date: std::option::Option, ///

    The layer's compatible runtimes.

    - #[serde(rename = "CompatibleRuntimes")] - #[serde(default)] pub compatible_runtimes: std::option::Option>, ///

    The layer's open-source license.

    - #[serde(rename = "LicenseInfo")] - #[serde(default)] pub license_info: std::option::Option, } impl std::fmt::Debug for LayerVersionsListItem { @@ -3714,19 +3397,13 @@ impl LayerVersionsListItem { ///

    Details about an AWS Lambda /// layer.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LayersListItem { ///

    The name of the layer.

    - #[serde(rename = "LayerName")] - #[serde(default)] pub layer_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the function layer.

    - #[serde(rename = "LayerArn")] - #[serde(default)] pub layer_arn: std::option::Option, ///

    The newest version of the layer.

    - #[serde(rename = "LatestMatchingVersion")] - #[serde(default)] pub latest_matching_version: std::option::Option, } impl std::fmt::Debug for LayersListItem { @@ -3826,7 +3503,7 @@ impl std::convert::From<&str> for FunctionVersion { impl std::str::FromStr for FunctionVersion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FunctionVersion::from(s)) } } @@ -3843,37 +3520,17 @@ impl AsRef for FunctionVersion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FunctionVersion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FunctionEventInvokeConfig { ///

    The date and time that the configuration was last updated.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified: std::option::Option, ///

    The Amazon Resource Name (ARN) of the function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] pub function_arn: std::option::Option, ///

    The maximum number of times to retry when the function returns an error.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] pub maximum_retry_attempts: std::option::Option, ///

    The maximum age of a request that Lambda sends to a function for processing.

    - #[serde(rename = "MaximumEventAgeInSeconds")] - #[serde(default)] pub maximum_event_age_in_seconds: std::option::Option, ///

    A destination for events after they have been sent to a function for processing.

    ///

    @@ -3897,8 +3554,6 @@ pub struct FunctionEventInvokeConfig { /// Event Bus - The ARN of an Amazon EventBridge event bus.

    /// /// - #[serde(rename = "DestinationConfig")] - #[serde(default)] pub destination_config: std::option::Option, } impl std::fmt::Debug for FunctionEventInvokeConfig { @@ -4021,109 +3676,59 @@ impl FunctionEventInvokeConfig { ///

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EventSourceMappingConfiguration { ///

    The identifier of the event source mapping.

    - #[serde(rename = "UUID")] - #[serde(default)] pub uuid: std::option::Option, ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - #[serde(rename = "StartingPosition")] - #[serde(default)] pub starting_position: std::option::Option, ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start /// reading.

    - #[serde(rename = "StartingPositionTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub starting_position_timestamp: std::option::Option, ///

    The maximum number of items to retrieve in a single batch.

    - #[serde(rename = "BatchSize")] - #[serde(default)] pub batch_size: std::option::Option, ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    - #[serde(rename = "MaximumBatchingWindowInSeconds")] - #[serde(default)] pub maximum_batching_window_in_seconds: std::option::Option, ///

    (Streams) The number of batches to process from each shard concurrently. The default value is 1.

    - #[serde(rename = "ParallelizationFactor")] - #[serde(default)] pub parallelization_factor: std::option::Option, ///

    The Amazon Resource Name (ARN) of the event source.

    - #[serde(rename = "EventSourceArn")] - #[serde(default)] pub event_source_arn: std::option::Option, ///

    The ARN of the Lambda function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] pub function_arn: std::option::Option, ///

    The date that the event source mapping was last updated, or its state changed.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified: std::option::Option, ///

    The result of the last AWS Lambda invocation of your Lambda function.

    - #[serde(rename = "LastProcessingResult")] - #[serde(default)] pub last_processing_result: std::option::Option, ///

    The state of the event source mapping. It can be one of the following: Creating, /// Enabling, Enabled, Disabling, Disabled, /// Updating, or Deleting.

    - #[serde(rename = "State")] - #[serde(default)] pub state: std::option::Option, ///

    Indicates whether the last change to the event source mapping was made by a user, or by the Lambda /// service.

    - #[serde(rename = "StateTransitionReason")] - #[serde(default)] pub state_transition_reason: std::option::Option, ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - #[serde(rename = "DestinationConfig")] - #[serde(default)] pub destination_config: std::option::Option, ///

    The name of the Kafka topic.

    - #[serde(rename = "Topics")] - #[serde(default)] pub topics: std::option::Option>, ///

    /// (MQ) The name of the Amazon MQ broker destination queue to consume. ///

    - #[serde(rename = "Queues")] - #[serde(default)] pub queues: std::option::Option>, ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - #[serde(rename = "SourceAccessConfigurations")] - #[serde(default)] pub source_access_configurations: std::option::Option>, ///

    The Self-Managed Apache Kafka cluster for your event source.

    - #[serde(rename = "SelfManagedEventSource")] - #[serde(default)] pub self_managed_event_source: std::option::Option, ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRecordAgeInSeconds")] - #[serde(default)] pub maximum_record_age_in_seconds: std::option::Option, ///

    (Streams) If the function returns an error, split the batch in two and retry. The default value is false.

    - #[serde(rename = "BisectBatchOnFunctionError")] - #[serde(default)] pub bisect_batch_on_function_error: std::option::Option, ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] pub maximum_retry_attempts: std::option::Option, ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - #[serde(rename = "TumblingWindowInSeconds")] - #[serde(default)] pub tumbling_window_in_seconds: std::option::Option, ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - #[serde(rename = "FunctionResponseTypes")] - #[serde(default)] pub function_response_types: std::option::Option>, } @@ -4505,32 +4110,20 @@ impl EventSourceMappingConfiguration { ///

    Provides configuration information about a Lambda function alias.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AliasConfiguration { ///

    The Amazon Resource Name (ARN) of the alias.

    - #[serde(rename = "AliasArn")] - #[serde(default)] pub alias_arn: std::option::Option, ///

    The name of the alias.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The function version that the alias invokes.

    - #[serde(rename = "FunctionVersion")] - #[serde(default)] pub function_version: std::option::Option, ///

    A description of the alias.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The routing /// configuration of the alias.

    - #[serde(rename = "RoutingConfig")] - #[serde(default)] pub routing_config: std::option::Option, ///

    A unique identifier that changes when you update the alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] pub revision_id: std::option::Option, } impl std::fmt::Debug for AliasConfiguration { @@ -4668,7 +4261,7 @@ impl std::convert::From<&str> for LogType { impl std::str::FromStr for LogType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LogType::from(s)) } } @@ -4686,15 +4279,6 @@ impl AsRef for LogType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LogType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4726,7 +4310,7 @@ impl std::convert::From<&str> for InvocationType { impl std::str::FromStr for InvocationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InvocationType::from(s)) } } @@ -4745,22 +4329,11 @@ impl AsRef for InvocationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InvocationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Concurrency { ///

    The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.

    - #[serde(rename = "ReservedConcurrentExecutions")] - #[serde(default)] pub reserved_concurrent_executions: std::option::Option, } impl std::fmt::Debug for Concurrency { @@ -4811,23 +4384,15 @@ impl Concurrency { ///

    Details about a function's deployment package.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FunctionCodeLocation { ///

    The service that's hosting the file.

    - #[serde(rename = "RepositoryType")] - #[serde(default)] pub repository_type: std::option::Option, ///

    A presigned URL that you can use to download the deployment package.

    - #[serde(rename = "Location")] - #[serde(default)] pub location: std::option::Option, ///

    URI of a container image in the Amazon ECR registry.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

    The resolved URI for the image.

    - #[serde(rename = "ResolvedImageUri")] - #[serde(default)] pub resolved_image_uri: std::option::Option, } impl std::fmt::Debug for FunctionCodeLocation { @@ -4914,15 +4479,11 @@ impl FunctionCodeLocation { ///

    The number of functions and amount of storage in use.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccountUsage { ///

    The amount of storage space, in bytes, that's being used by deployment packages and layer archives.

    - #[serde(rename = "TotalCodeSize")] - #[serde(default)] pub total_code_size: i64, ///

    The number of Lambda functions.

    - #[serde(rename = "FunctionCount")] - #[serde(default)] pub function_count: i64, } impl std::fmt::Debug for AccountUsage { @@ -4979,29 +4540,19 @@ impl AccountUsage { ///

    Limits that are related to concurrency and storage. All file and storage sizes are in bytes.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccountLimit { ///

    The amount of storage space that you can use for all deployment packages and layer archives.

    - #[serde(rename = "TotalCodeSize")] - #[serde(default)] pub total_code_size: i64, ///

    The maximum size of a function's deployment package and layers when they're extracted.

    - #[serde(rename = "CodeSizeUnzipped")] - #[serde(default)] pub code_size_unzipped: i64, ///

    The maximum size of a deployment package when it's uploaded directly to AWS Lambda. Use Amazon S3 for larger /// files.

    - #[serde(rename = "CodeSizeZipped")] - #[serde(default)] pub code_size_zipped: i64, ///

    The maximum number of simultaneous function executions.

    - #[serde(rename = "ConcurrentExecutions")] - #[serde(default)] pub concurrent_executions: i32, ///

    The maximum number of simultaneous function executions, minus the capacity that's reserved for individual /// functions with PutFunctionConcurrency.

    - #[serde(rename = "UnreservedConcurrentExecutions")] - #[serde(default)] pub unreserved_concurrent_executions: std::option::Option, } impl std::fmt::Debug for AccountLimit { @@ -5103,29 +4654,18 @@ impl AccountLimit { ///

    The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment /// package directly, or specify the URI of a container image.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FunctionCode { ///

    The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for /// you.

    - #[serde(rename = "ZipFile")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub zip_file: std::option::Option, ///

    An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

    - #[serde(rename = "S3Bucket")] - #[serde(default)] pub s3_bucket: std::option::Option, ///

    The Amazon S3 key of the deployment package.

    - #[serde(rename = "S3Key")] - #[serde(default)] pub s3_key: std::option::Option, ///

    For versioned objects, the version of the deployment package object to use.

    - #[serde(rename = "S3ObjectVersion")] - #[serde(default)] pub s3_object_version: std::option::Option, ///

    URI of a container image in the Amazon ECR registry.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, } impl std::fmt::Debug for FunctionCode { diff --git a/sdk/lambda/src/operation_deser.rs b/sdk/lambda/src/operation_deser.rs index 4fc666e50cdc..a16adc3f0bdc 100644 --- a/sdk/lambda/src/operation_deser.rs +++ b/sdk/lambda/src/operation_deser.rs @@ -19,39 +19,37 @@ pub fn parse_add_layer_version_permission_error( Err(match error_code { "InvalidParameterValueException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; - output.build() - }), + kind: crate::error::AddLayerVersionPermissionErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; + output.build() + }, + ), }, "PolicyLengthExceededException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::PolicyLengthExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::policy_length_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::policy_length_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; - output.build() - }), + kind: crate::error::AddLayerVersionPermissionErrorKind::PolicyLengthExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::policy_length_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_policy_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; + output.build() + }, + ), }, "PreconditionFailedException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::PreconditionFailedError({ + kind: crate::error::AddLayerVersionPermissionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -61,11 +59,11 @@ pub fn parse_add_layer_version_permission_error( }, "ResourceConflictException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceConflictError({ + kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -75,11 +73,11 @@ pub fn parse_add_layer_version_permission_error( }, "ResourceNotFoundException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceNotFoundError({ + kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -89,28 +87,31 @@ pub fn parse_add_layer_version_permission_error( }, "ServiceException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::ServiceError({ + kind: crate::error::AddLayerVersionPermissionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::AddLayerVersionPermissionError { meta: generic, - kind: crate::error::AddLayerVersionPermissionErrorKind::TooManyRequestsError({ + kind: crate::error::AddLayerVersionPermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_add_layer_version_permission_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_add_layer_version_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::AddLayerVersionPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -131,7 +132,7 @@ pub fn parse_add_layer_version_permission_response( #[allow(unused_mut)] let mut output = crate::output::add_layer_version_permission_output::Builder::default(); let _ = response; - output = crate::json_deser::add_layer_version_permission_deser_operation( + output = crate::json_deser::deser_operation_add_layer_version_permission( response.body().as_ref(), output, ) @@ -151,41 +152,39 @@ pub fn parse_add_permission_error( None => return Err(crate::error::AddPermissionError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::AddPermissionError { - meta: generic, - kind: crate::error::AddPermissionErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddPermissionError::unhandled)?; - output.build() - }), - }, - "PolicyLengthExceededException" => crate::error::AddPermissionError { - meta: generic, - kind: crate::error::AddPermissionErrorKind::PolicyLengthExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::policy_length_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::policy_length_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AddPermissionError::unhandled)?; - output.build() - }), - }, + "InvalidParameterValueException" => { + crate::error::AddPermissionError { + meta: generic, + kind: crate::error::AddPermissionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; + output.build() + }), + } + } + "PolicyLengthExceededException" => { + crate::error::AddPermissionError { + meta: generic, + kind: crate::error::AddPermissionErrorKind::PolicyLengthExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::policy_length_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_policy_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; + output.build() + }), + } + } "PreconditionFailedException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::PreconditionFailedError({ + kind: crate::error::AddPermissionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -195,11 +194,11 @@ pub fn parse_add_permission_error( }, "ResourceConflictException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::ResourceConflictError({ + kind: crate::error::AddPermissionErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -209,11 +208,11 @@ pub fn parse_add_permission_error( }, "ResourceNotFoundException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::ResourceNotFoundError({ + kind: crate::error::AddPermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -223,36 +222,33 @@ pub fn parse_add_permission_error( }, "ServiceException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::ServiceError({ + kind: crate::error::AddPermissionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::AddPermissionError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddPermissionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::TooManyRequestsError({ + kind: crate::error::AddPermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddPermissionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_add_permission_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::AddPermissionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_add_permission_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::AddPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -269,7 +265,7 @@ pub fn parse_add_permission_response( let mut output = crate::output::add_permission_output::Builder::default(); let _ = response; output = - crate::json_deser::add_permission_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_add_permission(response.body().as_ref(), output) .map_err(crate::error::AddPermissionError::unhandled)?; output.build() }) @@ -286,13 +282,26 @@ pub fn parse_create_alias_error( None => return Err(crate::error::CreateAliasError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::CreateAliasError { + "InvalidParameterValueException" => { + crate::error::CreateAliasError { + meta: generic, + kind: crate::error::CreateAliasErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateAliasError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::CreateAliasError { meta: generic, - kind: crate::error::CreateAliasErrorKind::InvalidParameterValueError({ + kind: crate::error::CreateAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -300,13 +309,13 @@ pub fn parse_create_alias_error( output.build() }), }, - "ResourceConflictException" => crate::error::CreateAliasError { + "ResourceNotFoundException" => crate::error::CreateAliasError { meta: generic, - kind: crate::error::CreateAliasErrorKind::ResourceConflictError({ + kind: crate::error::CreateAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -314,13 +323,13 @@ pub fn parse_create_alias_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::CreateAliasError { + "ServiceException" => crate::error::CreateAliasError { meta: generic, - kind: crate::error::CreateAliasErrorKind::ResourceNotFoundError({ + kind: crate::error::CreateAliasErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -328,38 +337,21 @@ pub fn parse_create_alias_error( output.build() }), }, - "ServiceException" => crate::error::CreateAliasError { - meta: generic, - kind: crate::error::CreateAliasErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateAliasError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::CreateAliasError { meta: generic, - kind: crate::error::CreateAliasErrorKind::TooManyRequestsError({ + kind: crate::error::CreateAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateAliasError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_alias_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateAliasError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_alias_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -375,7 +367,7 @@ pub fn parse_create_alias_response( #[allow(unused_mut)] let mut output = crate::output::create_alias_output::Builder::default(); let _ = response; - output = crate::json_deser::create_alias_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_create_alias(response.body().as_ref(), output) .map_err(crate::error::CreateAliasError::unhandled)?; output.build() }) @@ -399,13 +391,29 @@ pub fn parse_create_code_signing_config_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::CreateCodeSigningConfigError { + "InvalidParameterValueException" => { + crate::error::CreateCodeSigningConfigError { + meta: generic, + kind: + crate::error::CreateCodeSigningConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ServiceException" => crate::error::CreateCodeSigningConfigError { meta: generic, - kind: crate::error::CreateCodeSigningConfigErrorKind::InvalidParameterValueError({ + kind: crate::error::CreateCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -413,17 +421,6 @@ pub fn parse_create_code_signing_config_error( output.build() }), }, - "ServiceException" => crate::error::CreateCodeSigningConfigError { - meta: generic, - kind: crate::error::CreateCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; - output.build() - }), - }, _ => crate::error::CreateCodeSigningConfigError::generic(generic), }) } @@ -439,7 +436,7 @@ pub fn parse_create_code_signing_config_response( #[allow(unused_mut)] let mut output = crate::output::create_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::create_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_create_code_signing_config( response.body().as_ref(), output, ) @@ -468,25 +465,24 @@ pub fn parse_create_event_source_mapping_error( Err(match error_code { "InvalidParameterValueException" => crate::error::CreateEventSourceMappingError { meta: generic, - kind: crate::error::CreateEventSourceMappingErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; - output.build() - }), + kind: crate::error::CreateEventSourceMappingErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateEventSourceMappingError::unhandled)?; + output.build() + }, + ), }, "ResourceConflictException" => crate::error::CreateEventSourceMappingError { meta: generic, - kind: crate::error::CreateEventSourceMappingErrorKind::ResourceConflictError({ + kind: crate::error::CreateEventSourceMappingErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -496,11 +492,11 @@ pub fn parse_create_event_source_mapping_error( }, "ResourceNotFoundException" => crate::error::CreateEventSourceMappingError { meta: generic, - kind: crate::error::CreateEventSourceMappingErrorKind::ResourceNotFoundError({ + kind: crate::error::CreateEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -510,28 +506,31 @@ pub fn parse_create_event_source_mapping_error( }, "ServiceException" => crate::error::CreateEventSourceMappingError { meta: generic, - kind: crate::error::CreateEventSourceMappingErrorKind::ServiceError({ + kind: crate::error::CreateEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateEventSourceMappingError { meta: generic, - kind: crate::error::CreateEventSourceMappingErrorKind::TooManyRequestsError({ + kind: crate::error::CreateEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_event_source_mapping_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_create_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -552,7 +551,7 @@ pub fn parse_create_event_source_mapping_response( #[allow(unused_mut)] let mut output = crate::output::create_event_source_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::create_event_source_mapping_deser_operation( + output = crate::json_deser::deser_operation_create_event_source_mapping( response.body().as_ref(), output, ) @@ -574,68 +573,76 @@ pub fn parse_create_function_error( Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::CodeSigningConfigNotFoundError({ + kind: crate::error::CreateFunctionErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)] let mut output = - crate::error::code_signing_config_not_found_error::Builder::default(); + crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::code_signing_config_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateFunctionError::unhandled)?; + output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }), }, "CodeStorageExceededException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::CodeStorageExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::code_storage_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_storage_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateFunctionError::unhandled)?; - output.build() - }), - }, - "CodeVerificationFailedException" => crate::error::CreateFunctionError { - meta: generic, - kind: crate::error::CreateFunctionErrorKind::CodeVerificationFailedError({ - #[allow(unused_mut)] - let mut output = crate::error::code_verification_failed_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_verification_failed_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateFunctionError::unhandled)?; - output.build() - }), - }, - "InvalidCodeSignatureException" => crate::error::CreateFunctionError { - meta: generic, - kind: crate::error::CreateFunctionErrorKind::InvalidCodeSignatureError({ + kind: crate::error::CreateFunctionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_code_signature_error::Builder::default(); + let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_code_signature_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateFunctionError::unhandled)?; + output = + crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }), }, - "InvalidParameterValueException" => crate::error::CreateFunctionError { + "CodeVerificationFailedException" => { + crate::error::CreateFunctionError { + meta: generic, + kind: crate::error::CreateFunctionErrorKind::CodeVerificationFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::code_verification_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; + output.build() + }), + } + } + "InvalidCodeSignatureException" => { + crate::error::CreateFunctionError { + meta: generic, + kind: crate::error::CreateFunctionErrorKind::InvalidCodeSignatureException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_code_signature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; + output.build() + }), + } + } + "InvalidParameterValueException" => { + crate::error::CreateFunctionError { + meta: generic, + kind: crate::error::CreateFunctionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::InvalidParameterValueError({ + kind: crate::error::CreateFunctionErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -643,13 +650,13 @@ pub fn parse_create_function_error( output.build() }), }, - "ResourceConflictException" => crate::error::CreateFunctionError { + "ResourceNotFoundException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::ResourceConflictError({ + kind: crate::error::CreateFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -657,13 +664,13 @@ pub fn parse_create_function_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::CreateFunctionError { + "ServiceException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::ResourceNotFoundError({ + kind: crate::error::CreateFunctionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -671,38 +678,21 @@ pub fn parse_create_function_error( output.build() }), }, - "ServiceException" => crate::error::CreateFunctionError { - meta: generic, - kind: crate::error::CreateFunctionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateFunctionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::CreateFunctionError { meta: generic, - kind: crate::error::CreateFunctionErrorKind::TooManyRequestsError({ + kind: crate::error::CreateFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateFunctionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_create_function_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateFunctionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_create_function_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::CreateFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -719,7 +709,7 @@ pub fn parse_create_function_response( let mut output = crate::output::create_function_output::Builder::default(); let _ = response; output = - crate::json_deser::create_function_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_function(response.body().as_ref(), output) .map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }) @@ -736,13 +726,26 @@ pub fn parse_delete_alias_error( None => return Err(crate::error::DeleteAliasError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::DeleteAliasError { + "InvalidParameterValueException" => { + crate::error::DeleteAliasError { + meta: generic, + kind: crate::error::DeleteAliasErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteAliasError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::DeleteAliasError { meta: generic, - kind: crate::error::DeleteAliasErrorKind::InvalidParameterValueError({ + kind: crate::error::DeleteAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -750,13 +753,13 @@ pub fn parse_delete_alias_error( output.build() }), }, - "ResourceConflictException" => crate::error::DeleteAliasError { + "ServiceException" => crate::error::DeleteAliasError { meta: generic, - kind: crate::error::DeleteAliasErrorKind::ResourceConflictError({ + kind: crate::error::DeleteAliasErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -764,38 +767,21 @@ pub fn parse_delete_alias_error( output.build() }), }, - "ServiceException" => crate::error::DeleteAliasError { - meta: generic, - kind: crate::error::DeleteAliasErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteAliasError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::DeleteAliasError { meta: generic, - kind: crate::error::DeleteAliasErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteAliasError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_alias_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteAliasError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_alias_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -833,13 +819,29 @@ pub fn parse_delete_code_signing_config_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::DeleteCodeSigningConfigError { + "InvalidParameterValueException" => { + crate::error::DeleteCodeSigningConfigError { + meta: generic, + kind: + crate::error::DeleteCodeSigningConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceConflictException" => crate::error::DeleteCodeSigningConfigError { meta: generic, - kind: crate::error::DeleteCodeSigningConfigErrorKind::InvalidParameterValueError({ + kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -847,13 +849,13 @@ pub fn parse_delete_code_signing_config_error( output.build() }), }, - "ResourceConflictException" => crate::error::DeleteCodeSigningConfigError { + "ResourceNotFoundException" => crate::error::DeleteCodeSigningConfigError { meta: generic, - kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceConflictError({ + kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -861,13 +863,13 @@ pub fn parse_delete_code_signing_config_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::DeleteCodeSigningConfigError { + "ServiceException" => crate::error::DeleteCodeSigningConfigError { meta: generic, - kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -875,17 +877,6 @@ pub fn parse_delete_code_signing_config_error( output.build() }), }, - "ServiceException" => crate::error::DeleteCodeSigningConfigError { - meta: generic, - kind: crate::error::DeleteCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; - output.build() - }), - }, _ => crate::error::DeleteCodeSigningConfigError::generic(generic), }) } @@ -925,11 +916,24 @@ pub fn parse_delete_event_source_mapping_error( Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteEventSourceMappingError { meta: generic, - kind: crate::error::DeleteEventSourceMappingErrorKind::InvalidParameterValueError({ + kind: crate::error::DeleteEventSourceMappingErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; + output.build() + }, + ), + }, + "ResourceInUseException" => crate::error::DeleteEventSourceMappingError { + meta: generic, + kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceInUseException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( response.body().as_ref(), output, ) @@ -937,25 +941,27 @@ pub fn parse_delete_event_source_mapping_error( output.build() }), }, - "ResourceInUseException" => crate::error::DeleteEventSourceMappingError { + "ResourceNotFoundException" => crate::error::DeleteEventSourceMappingError { meta: generic, - kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceInUseError({ + kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_in_use_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = - crate::json_deser::resource_in_use_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }), }, - "ResourceNotFoundException" => crate::error::DeleteEventSourceMappingError { + "ServiceException" => crate::error::DeleteEventSourceMappingError { meta: generic, - kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -963,30 +969,19 @@ pub fn parse_delete_event_source_mapping_error( output.build() }), }, - "ServiceException" => crate::error::DeleteEventSourceMappingError { + "TooManyRequestsException" => crate::error::DeleteEventSourceMappingError { meta: generic, - kind: crate::error::DeleteEventSourceMappingErrorKind::ServiceError({ + kind: crate::error::DeleteEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::DeleteEventSourceMappingError { - meta: generic, - kind: crate::error::DeleteEventSourceMappingErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_event_source_mapping_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -1007,7 +1002,7 @@ pub fn parse_delete_event_source_mapping_response( #[allow(unused_mut)] let mut output = crate::output::delete_event_source_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::delete_event_source_mapping_deser_operation( + output = crate::json_deser::deser_operation_delete_event_source_mapping( response.body().as_ref(), output, ) @@ -1027,13 +1022,26 @@ pub fn parse_delete_function_error( None => return Err(crate::error::DeleteFunctionError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::DeleteFunctionError { + "InvalidParameterValueException" => { + crate::error::DeleteFunctionError { + meta: generic, + kind: crate::error::DeleteFunctionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::DeleteFunctionError { meta: generic, - kind: crate::error::DeleteFunctionErrorKind::InvalidParameterValueError({ + kind: crate::error::DeleteFunctionErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -1041,13 +1049,13 @@ pub fn parse_delete_function_error( output.build() }), }, - "ResourceConflictException" => crate::error::DeleteFunctionError { + "ResourceNotFoundException" => crate::error::DeleteFunctionError { meta: generic, - kind: crate::error::DeleteFunctionErrorKind::ResourceConflictError({ + kind: crate::error::DeleteFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1055,13 +1063,13 @@ pub fn parse_delete_function_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::DeleteFunctionError { + "ServiceException" => crate::error::DeleteFunctionError { meta: generic, - kind: crate::error::DeleteFunctionErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteFunctionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -1069,38 +1077,21 @@ pub fn parse_delete_function_error( output.build() }), }, - "ServiceException" => crate::error::DeleteFunctionError { - meta: generic, - kind: crate::error::DeleteFunctionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteFunctionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::DeleteFunctionError { meta: generic, - kind: crate::error::DeleteFunctionErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_function_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteFunctionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_function_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -1134,42 +1125,42 @@ pub fn parse_delete_function_code_signing_config_error( None => return Err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled(generic)), }; Err(match error_code { - "CodeSigningConfigNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_error::Builder::default(); + "CodeSigningConfigNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::code_signing_config_not_found_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() })}, - "InvalidParameterValueException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + "InvalidParameterValueException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() })}, - "ResourceConflictException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictError({ - #[allow(unused_mut)]let mut output = crate::error::resource_conflict_error::Builder::default(); + "ResourceConflictException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() })}, - "ResourceNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::resource_not_found_error::Builder::default(); + "ResourceNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() })}, - "ServiceException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)]let mut output = crate::error::service_error::Builder::default(); + "ServiceException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() })}, - "TooManyRequestsException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)]let mut output = crate::error::too_many_requests_error::Builder::default(); + "TooManyRequestsException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_function_code_signing_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -1214,25 +1205,24 @@ pub fn parse_delete_function_concurrency_error( Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, - kind: crate::error::DeleteFunctionConcurrencyErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; - output.build() - }), + kind: crate::error::DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; + output.build() + }, + ), }, "ResourceConflictException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, - kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceConflictError({ + kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -1242,11 +1232,11 @@ pub fn parse_delete_function_concurrency_error( }, "ResourceNotFoundException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, - kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1256,28 +1246,31 @@ pub fn parse_delete_function_concurrency_error( }, "ServiceException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, - kind: crate::error::DeleteFunctionConcurrencyErrorKind::ServiceError({ + kind: crate::error::DeleteFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, - kind: crate::error::DeleteFunctionConcurrencyErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteFunctionConcurrencyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_function_concurrency_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -1316,68 +1309,35 @@ pub fn parse_delete_function_event_invoke_config_error( None => return Err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::DeleteFunctionEventInvokeConfigError { - meta: generic, - kind: - crate::error::DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; - output.build() - }, - ), - }, - "ResourceNotFoundException" => crate::error::DeleteFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::DeleteFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::DeleteFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_function_event_invoke_config_retry_after_seconds(response.headers()) + "InvalidParameterValueException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_delete_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::DeleteFunctionEventInvokeConfigError::generic(generic), + output.build() + })}, + _ => crate::error::DeleteFunctionEventInvokeConfigError::generic(generic) }) } @@ -1413,36 +1373,33 @@ pub fn parse_delete_layer_version_error( Err(match error_code { "ServiceException" => crate::error::DeleteLayerVersionError { meta: generic, - kind: crate::error::DeleteLayerVersionErrorKind::ServiceError({ + kind: crate::error::DeleteLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteLayerVersionError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLayerVersionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteLayerVersionError { meta: generic, - kind: crate::error::DeleteLayerVersionErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_layer_version_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::DeleteLayerVersionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_delete_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::DeleteLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -1481,36 +1438,36 @@ pub fn parse_delete_provisioned_concurrency_config_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + "InvalidParameterValueException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ResourceConflictException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictError({ - #[allow(unused_mut)]let mut output = crate::error::resource_conflict_error::Builder::default(); + "ResourceConflictException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ResourceNotFoundException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::resource_not_found_error::Builder::default(); + "ResourceNotFoundException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ServiceException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ServiceError({ - #[allow(unused_mut)]let mut output = crate::error::service_error::Builder::default(); + "ServiceException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "TooManyRequestsException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)]let mut output = crate::error::too_many_requests_error::Builder::default(); + "TooManyRequestsException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_delete_provisioned_concurrency_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_delete_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -1551,36 +1508,33 @@ pub fn parse_get_account_settings_error( Err(match error_code { "ServiceException" => crate::error::GetAccountSettingsError { meta: generic, - kind: crate::error::GetAccountSettingsErrorKind::ServiceError({ + kind: crate::error::GetAccountSettingsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAccountSettingsError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAccountSettingsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetAccountSettingsError { meta: generic, - kind: crate::error::GetAccountSettingsErrorKind::TooManyRequestsError({ + kind: crate::error::GetAccountSettingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAccountSettingsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_account_settings_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetAccountSettingsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_account_settings_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetAccountSettingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -1599,7 +1553,7 @@ pub fn parse_get_account_settings_response( #[allow(unused_mut)] let mut output = crate::output::get_account_settings_output::Builder::default(); let _ = response; - output = crate::json_deser::get_account_settings_deser_operation( + output = crate::json_deser::deser_operation_get_account_settings( response.body().as_ref(), output, ) @@ -1619,13 +1573,26 @@ pub fn parse_get_alias_error( None => return Err(crate::error::GetAliasError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetAliasError { + "InvalidParameterValueException" => { + crate::error::GetAliasError { + meta: generic, + kind: crate::error::GetAliasErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetAliasError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::GetAliasError { meta: generic, - kind: crate::error::GetAliasErrorKind::InvalidParameterValueError({ + kind: crate::error::GetAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1633,13 +1600,13 @@ pub fn parse_get_alias_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetAliasError { + "ServiceException" => crate::error::GetAliasError { meta: generic, - kind: crate::error::GetAliasErrorKind::ResourceNotFoundError({ + kind: crate::error::GetAliasErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -1647,38 +1614,21 @@ pub fn parse_get_alias_error( output.build() }), }, - "ServiceException" => crate::error::GetAliasError { - meta: generic, - kind: crate::error::GetAliasErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAliasError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::GetAliasError { meta: generic, - kind: crate::error::GetAliasErrorKind::TooManyRequestsError({ + kind: crate::error::GetAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAliasError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_alias_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetAliasError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_alias_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -1694,7 +1644,7 @@ pub fn parse_get_alias_response( #[allow(unused_mut)] let mut output = crate::output::get_alias_output::Builder::default(); let _ = response; - output = crate::json_deser::get_alias_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_alias(response.body().as_ref(), output) .map_err(crate::error::GetAliasError::unhandled)?; output.build() }) @@ -1714,13 +1664,28 @@ pub fn parse_get_code_signing_config_error( None => return Err(crate::error::GetCodeSigningConfigError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetCodeSigningConfigError { + "InvalidParameterValueException" => { + crate::error::GetCodeSigningConfigError { + meta: generic, + kind: crate::error::GetCodeSigningConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetCodeSigningConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetCodeSigningConfigError { meta: generic, - kind: crate::error::GetCodeSigningConfigErrorKind::InvalidParameterValueError({ + kind: crate::error::GetCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1728,13 +1693,13 @@ pub fn parse_get_code_signing_config_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetCodeSigningConfigError { + "ServiceException" => crate::error::GetCodeSigningConfigError { meta: generic, - kind: crate::error::GetCodeSigningConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::GetCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -1742,17 +1707,6 @@ pub fn parse_get_code_signing_config_error( output.build() }), }, - "ServiceException" => crate::error::GetCodeSigningConfigError { - meta: generic, - kind: crate::error::GetCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetCodeSigningConfigError::unhandled)?; - output.build() - }), - }, _ => crate::error::GetCodeSigningConfigError::generic(generic), }) } @@ -1768,7 +1722,7 @@ pub fn parse_get_code_signing_config_response( #[allow(unused_mut)] let mut output = crate::output::get_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::get_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_get_code_signing_config( response.body().as_ref(), output, ) @@ -1791,13 +1745,28 @@ pub fn parse_get_event_source_mapping_error( None => return Err(crate::error::GetEventSourceMappingError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetEventSourceMappingError { + "InvalidParameterValueException" => { + crate::error::GetEventSourceMappingError { + meta: generic, + kind: crate::error::GetEventSourceMappingErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetEventSourceMappingError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetEventSourceMappingError { meta: generic, - kind: crate::error::GetEventSourceMappingErrorKind::InvalidParameterValueError({ + kind: crate::error::GetEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1805,13 +1774,13 @@ pub fn parse_get_event_source_mapping_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetEventSourceMappingError { + "ServiceException" => crate::error::GetEventSourceMappingError { meta: generic, - kind: crate::error::GetEventSourceMappingErrorKind::ResourceNotFoundError({ + kind: crate::error::GetEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -1819,37 +1788,24 @@ pub fn parse_get_event_source_mapping_error( output.build() }), }, - "ServiceException" => crate::error::GetEventSourceMappingError { + "TooManyRequestsException" => crate::error::GetEventSourceMappingError { meta: generic, - kind: crate::error::GetEventSourceMappingErrorKind::ServiceError({ + kind: crate::error::GetEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEventSourceMappingError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEventSourceMappingError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetEventSourceMappingError { - meta: generic, - kind: crate::error::GetEventSourceMappingErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetEventSourceMappingError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_event_source_mapping_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::GetEventSourceMappingError::generic(generic), }) } @@ -1865,7 +1821,7 @@ pub fn parse_get_event_source_mapping_response( #[allow(unused_mut)] let mut output = crate::output::get_event_source_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::get_event_source_mapping_deser_operation( + output = crate::json_deser::deser_operation_get_event_source_mapping( response.body().as_ref(), output, ) @@ -1885,13 +1841,26 @@ pub fn parse_get_function_error( None => return Err(crate::error::GetFunctionError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetFunctionError { + "InvalidParameterValueException" => { + crate::error::GetFunctionError { + meta: generic, + kind: crate::error::GetFunctionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::GetFunctionError { meta: generic, - kind: crate::error::GetFunctionErrorKind::InvalidParameterValueError({ + kind: crate::error::GetFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1899,13 +1868,13 @@ pub fn parse_get_function_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetFunctionError { + "ServiceException" => crate::error::GetFunctionError { meta: generic, - kind: crate::error::GetFunctionErrorKind::ResourceNotFoundError({ + kind: crate::error::GetFunctionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -1913,38 +1882,21 @@ pub fn parse_get_function_error( output.build() }), }, - "ServiceException" => crate::error::GetFunctionError { - meta: generic, - kind: crate::error::GetFunctionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetFunctionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::GetFunctionError { meta: generic, - kind: crate::error::GetFunctionErrorKind::TooManyRequestsError({ + kind: crate::error::GetFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_function_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetFunctionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_function_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -1960,7 +1912,7 @@ pub fn parse_get_function_response( #[allow(unused_mut)] let mut output = crate::output::get_function_output::Builder::default(); let _ = response; - output = crate::json_deser::get_function_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_function(response.body().as_ref(), output) .map_err(crate::error::GetFunctionError::unhandled)?; output.build() }) @@ -1986,28 +1938,25 @@ pub fn parse_get_function_code_signing_config_error( Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, - kind: crate::error::GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; + output.build() + }, + ), }, "ResourceNotFoundException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, - kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2017,28 +1966,31 @@ pub fn parse_get_function_code_signing_config_error( }, "ServiceException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, - kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ServiceError({ + kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, - kind: crate::error::GetFunctionCodeSigningConfigErrorKind::TooManyRequestsError({ + kind: crate::error::GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_function_code_signing_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_get_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -2059,7 +2011,7 @@ pub fn parse_get_function_code_signing_config_response( #[allow(unused_mut)] let mut output = crate::output::get_function_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::get_function_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_get_function_code_signing_config( response.body().as_ref(), output, ) @@ -2086,13 +2038,28 @@ pub fn parse_get_function_concurrency_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetFunctionConcurrencyError { + "InvalidParameterValueException" => { + crate::error::GetFunctionConcurrencyError { + meta: generic, + kind: crate::error::GetFunctionConcurrencyErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetFunctionConcurrencyError { meta: generic, - kind: crate::error::GetFunctionConcurrencyErrorKind::InvalidParameterValueError({ + kind: crate::error::GetFunctionConcurrencyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2100,13 +2067,13 @@ pub fn parse_get_function_concurrency_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetFunctionConcurrencyError { + "ServiceException" => crate::error::GetFunctionConcurrencyError { meta: generic, - kind: crate::error::GetFunctionConcurrencyErrorKind::ResourceNotFoundError({ + kind: crate::error::GetFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2114,37 +2081,24 @@ pub fn parse_get_function_concurrency_error( output.build() }), }, - "ServiceException" => crate::error::GetFunctionConcurrencyError { + "TooManyRequestsException" => crate::error::GetFunctionConcurrencyError { meta: generic, - kind: crate::error::GetFunctionConcurrencyErrorKind::ServiceError({ + kind: crate::error::GetFunctionConcurrencyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetFunctionConcurrencyError { - meta: generic, - kind: crate::error::GetFunctionConcurrencyErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_function_concurrency_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::GetFunctionConcurrencyError::generic(generic), }) } @@ -2160,7 +2114,7 @@ pub fn parse_get_function_concurrency_response( #[allow(unused_mut)] let mut output = crate::output::get_function_concurrency_output::Builder::default(); let _ = response; - output = crate::json_deser::get_function_concurrency_deser_operation( + output = crate::json_deser::deser_operation_get_function_concurrency( response.body().as_ref(), output, ) @@ -2189,11 +2143,24 @@ pub fn parse_get_function_configuration_error( Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionConfigurationError { meta: generic, - kind: crate::error::GetFunctionConfigurationErrorKind::InvalidParameterValueError({ + kind: crate::error::GetFunctionConfigurationErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConfigurationError::unhandled)?; + output.build() + }, + ), + }, + "ResourceNotFoundException" => crate::error::GetFunctionConfigurationError { + meta: generic, + kind: crate::error::GetFunctionConfigurationErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2201,13 +2168,13 @@ pub fn parse_get_function_configuration_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetFunctionConfigurationError { + "ServiceException" => crate::error::GetFunctionConfigurationError { meta: generic, - kind: crate::error::GetFunctionConfigurationErrorKind::ResourceNotFoundError({ + kind: crate::error::GetFunctionConfigurationErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2215,37 +2182,24 @@ pub fn parse_get_function_configuration_error( output.build() }), }, - "ServiceException" => crate::error::GetFunctionConfigurationError { + "TooManyRequestsException" => crate::error::GetFunctionConfigurationError { meta: generic, - kind: crate::error::GetFunctionConfigurationErrorKind::ServiceError({ + kind: crate::error::GetFunctionConfigurationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_function_configuration_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetFunctionConfigurationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetFunctionConfigurationError { - meta: generic, - kind: crate::error::GetFunctionConfigurationErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_function_configuration_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetFunctionConfigurationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::GetFunctionConfigurationError::generic(generic), }) } @@ -2261,7 +2215,7 @@ pub fn parse_get_function_configuration_response( #[allow(unused_mut)] let mut output = crate::output::get_function_configuration_output::Builder::default(); let _ = response; - output = crate::json_deser::get_function_configuration_deser_operation( + output = crate::json_deser::deser_operation_get_function_configuration( response.body().as_ref(), output, ) @@ -2290,28 +2244,25 @@ pub fn parse_get_function_event_invoke_config_error( Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; + output.build() + }, + ), }, "ResourceNotFoundException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2321,28 +2272,31 @@ pub fn parse_get_function_event_invoke_config_error( }, "ServiceException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ServiceError({ + kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::GetFunctionEventInvokeConfigErrorKind::TooManyRequestsError({ + kind: crate::error::GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_function_event_invoke_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_get_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -2363,7 +2317,7 @@ pub fn parse_get_function_event_invoke_config_response( #[allow(unused_mut)] let mut output = crate::output::get_function_event_invoke_config_output::Builder::default(); let _ = response; - output = crate::json_deser::get_function_event_invoke_config_deser_operation( + output = crate::json_deser::deser_operation_get_function_event_invoke_config( response.body().as_ref(), output, ) @@ -2383,13 +2337,26 @@ pub fn parse_get_layer_version_error( None => return Err(crate::error::GetLayerVersionError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetLayerVersionError { + "InvalidParameterValueException" => { + crate::error::GetLayerVersionError { + meta: generic, + kind: crate::error::GetLayerVersionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::GetLayerVersionError { meta: generic, - kind: crate::error::GetLayerVersionErrorKind::InvalidParameterValueError({ + kind: crate::error::GetLayerVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2397,13 +2364,13 @@ pub fn parse_get_layer_version_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetLayerVersionError { + "ServiceException" => crate::error::GetLayerVersionError { meta: generic, - kind: crate::error::GetLayerVersionErrorKind::ResourceNotFoundError({ + kind: crate::error::GetLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2411,38 +2378,21 @@ pub fn parse_get_layer_version_error( output.build() }), }, - "ServiceException" => crate::error::GetLayerVersionError { - meta: generic, - kind: crate::error::GetLayerVersionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetLayerVersionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::GetLayerVersionError { meta: generic, - kind: crate::error::GetLayerVersionErrorKind::TooManyRequestsError({ + kind: crate::error::GetLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_layer_version_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetLayerVersionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -2459,7 +2409,7 @@ pub fn parse_get_layer_version_response( let mut output = crate::output::get_layer_version_output::Builder::default(); let _ = response; output = - crate::json_deser::get_layer_version_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_layer_version(response.body().as_ref(), output) .map_err(crate::error::GetLayerVersionError::unhandled)?; output.build() }) @@ -2479,13 +2429,28 @@ pub fn parse_get_layer_version_by_arn_error( None => return Err(crate::error::GetLayerVersionByArnError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetLayerVersionByArnError { + "InvalidParameterValueException" => { + crate::error::GetLayerVersionByArnError { + meta: generic, + kind: crate::error::GetLayerVersionByArnErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionByArnError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetLayerVersionByArnError { meta: generic, - kind: crate::error::GetLayerVersionByArnErrorKind::InvalidParameterValueError({ + kind: crate::error::GetLayerVersionByArnErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2493,13 +2458,13 @@ pub fn parse_get_layer_version_by_arn_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetLayerVersionByArnError { + "ServiceException" => crate::error::GetLayerVersionByArnError { meta: generic, - kind: crate::error::GetLayerVersionByArnErrorKind::ResourceNotFoundError({ + kind: crate::error::GetLayerVersionByArnErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2507,37 +2472,24 @@ pub fn parse_get_layer_version_by_arn_error( output.build() }), }, - "ServiceException" => crate::error::GetLayerVersionByArnError { + "TooManyRequestsException" => crate::error::GetLayerVersionByArnError { meta: generic, - kind: crate::error::GetLayerVersionByArnErrorKind::ServiceError({ + kind: crate::error::GetLayerVersionByArnErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_layer_version_by_arn_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetLayerVersionByArnError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetLayerVersionByArnError { - meta: generic, - kind: crate::error::GetLayerVersionByArnErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_layer_version_by_arn_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetLayerVersionByArnError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::GetLayerVersionByArnError::generic(generic), }) } @@ -2553,7 +2505,7 @@ pub fn parse_get_layer_version_by_arn_response( #[allow(unused_mut)] let mut output = crate::output::get_layer_version_by_arn_output::Builder::default(); let _ = response; - output = crate::json_deser::get_layer_version_by_arn_deser_operation( + output = crate::json_deser::deser_operation_get_layer_version_by_arn( response.body().as_ref(), output, ) @@ -2576,13 +2528,28 @@ pub fn parse_get_layer_version_policy_error( None => return Err(crate::error::GetLayerVersionPolicyError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetLayerVersionPolicyError { + "InvalidParameterValueException" => { + crate::error::GetLayerVersionPolicyError { + meta: generic, + kind: crate::error::GetLayerVersionPolicyErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::GetLayerVersionPolicyError { meta: generic, - kind: crate::error::GetLayerVersionPolicyErrorKind::InvalidParameterValueError({ + kind: crate::error::GetLayerVersionPolicyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2590,13 +2557,13 @@ pub fn parse_get_layer_version_policy_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetLayerVersionPolicyError { + "ServiceException" => crate::error::GetLayerVersionPolicyError { meta: generic, - kind: crate::error::GetLayerVersionPolicyErrorKind::ResourceNotFoundError({ + kind: crate::error::GetLayerVersionPolicyErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2604,37 +2571,24 @@ pub fn parse_get_layer_version_policy_error( output.build() }), }, - "ServiceException" => crate::error::GetLayerVersionPolicyError { + "TooManyRequestsException" => crate::error::GetLayerVersionPolicyError { meta: generic, - kind: crate::error::GetLayerVersionPolicyErrorKind::ServiceError({ + kind: crate::error::GetLayerVersionPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_get_layer_version_policy_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetLayerVersionPolicyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::GetLayerVersionPolicyError { - meta: generic, - kind: crate::error::GetLayerVersionPolicyErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_layer_version_policy_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::GetLayerVersionPolicyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::GetLayerVersionPolicyError::generic(generic), }) } @@ -2650,7 +2604,7 @@ pub fn parse_get_layer_version_policy_response( #[allow(unused_mut)] let mut output = crate::output::get_layer_version_policy_output::Builder::default(); let _ = response; - output = crate::json_deser::get_layer_version_policy_deser_operation( + output = crate::json_deser::deser_operation_get_layer_version_policy( response.body().as_ref(), output, ) @@ -2670,13 +2624,26 @@ pub fn parse_get_policy_error( None => return Err(crate::error::GetPolicyError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetPolicyError { + "InvalidParameterValueException" => { + crate::error::GetPolicyError { + meta: generic, + kind: crate::error::GetPolicyErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetPolicyError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::InvalidParameterValueError({ + kind: crate::error::GetPolicyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2684,13 +2651,13 @@ pub fn parse_get_policy_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::GetPolicyError { + "ServiceException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::ResourceNotFoundError({ + kind: crate::error::GetPolicyErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -2698,38 +2665,21 @@ pub fn parse_get_policy_error( output.build() }), }, - "ServiceException" => crate::error::GetPolicyError { - meta: generic, - kind: crate::error::GetPolicyErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetPolicyError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::GetPolicyError { meta: generic, - kind: crate::error::GetPolicyErrorKind::TooManyRequestsError({ + kind: crate::error::GetPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetPolicyError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_policy_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::GetPolicyError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_get_policy_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::GetPolicyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -2745,7 +2695,7 @@ pub fn parse_get_policy_response( #[allow(unused_mut)] let mut output = crate::output::get_policy_output::Builder::default(); let _ = response; - output = crate::json_deser::get_policy_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_policy(response.body().as_ref(), output) .map_err(crate::error::GetPolicyError::unhandled)?; output.build() }) @@ -2765,36 +2715,36 @@ pub fn parse_get_provisioned_concurrency_config_error( None => return Err(crate::error::GetProvisionedConcurrencyConfigError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + "InvalidParameterValueException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ProvisionedConcurrencyConfigNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::provisioned_concurrency_config_not_found_error::Builder::default(); + "ProvisionedConcurrencyConfigNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::provisioned_concurrency_config_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::provisioned_concurrency_config_not_found_exception(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_provisioned_concurrency_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ResourceNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::resource_not_found_error::Builder::default(); + "ResourceNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "ServiceException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ServiceError({ - #[allow(unused_mut)]let mut output = crate::error::service_error::Builder::default(); + "ServiceException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() })}, - "TooManyRequestsException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)]let mut output = crate::error::too_many_requests_error::Builder::default(); + "TooManyRequestsException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_get_provisioned_concurrency_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_get_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -2815,7 +2765,7 @@ pub fn parse_get_provisioned_concurrency_config_response( let mut output = crate::output::get_provisioned_concurrency_config_output::Builder::default(); let _ = response; - output = crate::json_deser::get_provisioned_concurrency_config_deser_operation( + output = crate::json_deser::deser_operation_get_provisioned_concurrency_config( response.body().as_ref(), output, ) @@ -2837,11 +2787,11 @@ pub fn parse_invoke_error( Err(match error_code { "EC2AccessDeniedException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::EC2AccessDeniedError({ + kind: crate::error::InvokeErrorKind::Ec2AccessDeniedException({ #[allow(unused_mut)] - let mut output = crate::error::ec2_access_denied_error::Builder::default(); + let mut output = crate::error::ec2_access_denied_exception::Builder::default(); let _ = response; - output = crate::json_deser::ec2_access_denied_exception( + output = crate::json_deser::deser_structure_ec2_access_denied_exceptionjson_err( response.body().as_ref(), output, ) @@ -2851,46 +2801,11 @@ pub fn parse_invoke_error( }, "EC2ThrottledException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::EC2ThrottledError({ - #[allow(unused_mut)] - let mut output = crate::error::ec2_throttled_error::Builder::default(); - let _ = response; - output = - crate::json_deser::ec2_throttled_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; - output.build() - }), - }, - "EC2UnexpectedException" => crate::error::InvokeError { - meta: generic, - kind: crate::error::InvokeErrorKind::EC2UnexpectedError({ + kind: crate::error::InvokeErrorKind::Ec2ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::ec2_unexpected_error::Builder::default(); + let mut output = crate::error::ec2_throttled_exception::Builder::default(); let _ = response; - output = - crate::json_deser::ec2_unexpected_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; - output.build() - }), - }, - "EFSIOException" => crate::error::InvokeError { - meta: generic, - kind: crate::error::InvokeErrorKind::EFSIOError({ - #[allow(unused_mut)] - let mut output = crate::error::efsio_error::Builder::default(); - let _ = response; - output = crate::json_deser::efsio_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; - output.build() - }), - }, - "EFSMountConnectivityException" => crate::error::InvokeError { - meta: generic, - kind: crate::error::InvokeErrorKind::EFSMountConnectivityError({ - #[allow(unused_mut)] - let mut output = crate::error::efs_mount_connectivity_error::Builder::default(); - let _ = response; - output = crate::json_deser::efs_mount_connectivity_exception( + output = crate::json_deser::deser_structure_ec2_throttled_exceptionjson_err( response.body().as_ref(), output, ) @@ -2898,13 +2813,13 @@ pub fn parse_invoke_error( output.build() }), }, - "EFSMountFailureException" => crate::error::InvokeError { + "EC2UnexpectedException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::EFSMountFailureError({ + kind: crate::error::InvokeErrorKind::Ec2UnexpectedException({ #[allow(unused_mut)] - let mut output = crate::error::efs_mount_failure_error::Builder::default(); + let mut output = crate::error::ec2_unexpected_exception::Builder::default(); let _ = response; - output = crate::json_deser::efs_mount_failure_exception( + output = crate::json_deser::deser_structure_ec2_unexpected_exceptionjson_err( response.body().as_ref(), output, ) @@ -2912,13 +2827,13 @@ pub fn parse_invoke_error( output.build() }), }, - "EFSMountTimeoutException" => crate::error::InvokeError { + "EFSIOException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::EFSMountTimeoutError({ + kind: crate::error::InvokeErrorKind::EfsioException({ #[allow(unused_mut)] - let mut output = crate::error::efs_mount_timeout_error::Builder::default(); + let mut output = crate::error::efsio_exception::Builder::default(); let _ = response; - output = crate::json_deser::efs_mount_timeout_exception( + output = crate::json_deser::deser_structure_efsio_exceptionjson_err( response.body().as_ref(), output, ) @@ -2926,13 +2841,26 @@ pub fn parse_invoke_error( output.build() }), }, - "ENILimitReachedException" => crate::error::InvokeError { + "EFSMountConnectivityException" => { + crate::error::InvokeError { + meta: generic, + kind: crate::error::InvokeErrorKind::EfsMountConnectivityException({ + #[allow(unused_mut)] + let mut output = + crate::error::efs_mount_connectivity_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_efs_mount_connectivity_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; + output.build() + }), + } + } + "EFSMountFailureException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::ENILimitReachedError({ + kind: crate::error::InvokeErrorKind::EfsMountFailureException({ #[allow(unused_mut)] - let mut output = crate::error::eni_limit_reached_error::Builder::default(); + let mut output = crate::error::efs_mount_failure_exception::Builder::default(); let _ = response; - output = crate::json_deser::eni_limit_reached_exception( + output = crate::json_deser::deser_structure_efs_mount_failure_exceptionjson_err( response.body().as_ref(), output, ) @@ -2940,13 +2868,13 @@ pub fn parse_invoke_error( output.build() }), }, - "InvalidParameterValueException" => crate::error::InvokeError { + "EFSMountTimeoutException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::InvalidParameterValueError({ + kind: crate::error::InvokeErrorKind::EfsMountTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::efs_mount_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_efs_mount_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -2954,13 +2882,13 @@ pub fn parse_invoke_error( output.build() }), }, - "InvalidRequestContentException" => crate::error::InvokeError { + "ENILimitReachedException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::InvalidRequestContentError({ + kind: crate::error::InvokeErrorKind::EniLimitReachedException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_request_content_error::Builder::default(); + let mut output = crate::error::eni_limit_reached_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_request_content_exception( + output = crate::json_deser::deser_structure_eni_limit_reached_exceptionjson_err( response.body().as_ref(), output, ) @@ -2968,25 +2896,39 @@ pub fn parse_invoke_error( output.build() }), }, + "InvalidParameterValueException" => { + crate::error::InvokeError { + meta: generic, + kind: crate::error::InvokeErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; + output.build() + }), + } + } + "InvalidRequestContentException" => { + crate::error::InvokeError { + meta: generic, + kind: crate::error::InvokeErrorKind::InvalidRequestContentException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_request_content_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_content_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; + output.build() + }), + } + } "InvalidRuntimeException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::InvalidRuntimeError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_runtime_error::Builder::default(); - let _ = response; - output = - crate::json_deser::invalid_runtime_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; - output.build() - }), - }, - "InvalidSecurityGroupIDException" => crate::error::InvokeError { - meta: generic, - kind: crate::error::InvokeErrorKind::InvalidSecurityGroupIDError({ + kind: crate::error::InvokeErrorKind::InvalidRuntimeException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_group_id_error::Builder::default(); + let mut output = crate::error::invalid_runtime_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_security_group_id_exception( + output = crate::json_deser::deser_structure_invalid_runtime_exceptionjson_err( response.body().as_ref(), output, ) @@ -2994,13 +2936,26 @@ pub fn parse_invoke_error( output.build() }), }, + "InvalidSecurityGroupIDException" => { + crate::error::InvokeError { + meta: generic, + kind: crate::error::InvokeErrorKind::InvalidSecurityGroupIdException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_security_group_id_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_security_group_id_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; + output.build() + }), + } + } "InvalidSubnetIDException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::InvalidSubnetIDError({ + kind: crate::error::InvokeErrorKind::InvalidSubnetIdException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_subnet_id_error::Builder::default(); + let mut output = crate::error::invalid_subnet_id_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_subnet_id_exception( + output = crate::json_deser::deser_structure_invalid_subnet_id_exceptionjson_err( response.body().as_ref(), output, ) @@ -3010,23 +2965,25 @@ pub fn parse_invoke_error( }, "InvalidZipFileException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::InvalidZipFileError({ + kind: crate::error::InvokeErrorKind::InvalidZipFileException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_zip_file_error::Builder::default(); + let mut output = crate::error::invalid_zip_file_exception::Builder::default(); let _ = response; - output = - crate::json_deser::invalid_zip_file_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_zip_file_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InvokeError::unhandled)?; output.build() }), }, "KMSAccessDeniedException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::KMSAccessDeniedError({ + kind: crate::error::InvokeErrorKind::KmsAccessDeniedException({ #[allow(unused_mut)] - let mut output = crate::error::kms_access_denied_error::Builder::default(); + let mut output = crate::error::kms_access_denied_exception::Builder::default(); let _ = response; - output = crate::json_deser::kms_access_denied_exception( + output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( response.body().as_ref(), output, ) @@ -3036,23 +2993,25 @@ pub fn parse_invoke_error( }, "KMSDisabledException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::KMSDisabledError({ + kind: crate::error::InvokeErrorKind::KmsDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::kms_disabled_error::Builder::default(); + let mut output = crate::error::kms_disabled_exception::Builder::default(); let _ = response; - output = - crate::json_deser::kms_disabled_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; + output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InvokeError::unhandled)?; output.build() }), }, "KMSInvalidStateException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::KMSInvalidStateError({ + kind: crate::error::InvokeErrorKind::KmsInvalidStateException({ #[allow(unused_mut)] - let mut output = crate::error::kms_invalid_state_error::Builder::default(); + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); let _ = response; - output = crate::json_deser::kms_invalid_state_exception( + output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( response.body().as_ref(), output, ) @@ -3062,23 +3021,25 @@ pub fn parse_invoke_error( }, "KMSNotFoundException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::KMSNotFoundError({ + kind: crate::error::InvokeErrorKind::KmsNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::kms_not_found_error::Builder::default(); + let mut output = crate::error::kms_not_found_exception::Builder::default(); let _ = response; - output = - crate::json_deser::kms_not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; + output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InvokeError::unhandled)?; output.build() }), }, "RequestTooLargeException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::RequestTooLargeError({ + kind: crate::error::InvokeErrorKind::RequestTooLargeException({ #[allow(unused_mut)] - let mut output = crate::error::request_too_large_error::Builder::default(); + let mut output = crate::error::request_too_large_exception::Builder::default(); let _ = response; - output = crate::json_deser::request_too_large_exception( + output = crate::json_deser::deser_structure_request_too_large_exceptionjson_err( response.body().as_ref(), output, ) @@ -3088,11 +3049,11 @@ pub fn parse_invoke_error( }, "ResourceConflictException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::ResourceConflictError({ + kind: crate::error::InvokeErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -3102,11 +3063,11 @@ pub fn parse_invoke_error( }, "ResourceNotFoundException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::ResourceNotFoundError({ + kind: crate::error::InvokeErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3116,11 +3077,11 @@ pub fn parse_invoke_error( }, "ResourceNotReadyException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::ResourceNotReadyError({ + kind: crate::error::InvokeErrorKind::ResourceNotReadyException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_ready_error::Builder::default(); + let mut output = crate::error::resource_not_ready_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_ready_exception( + output = crate::json_deser::deser_structure_resource_not_ready_exceptionjson_err( response.body().as_ref(), output, ) @@ -3130,66 +3091,60 @@ pub fn parse_invoke_error( }, "ServiceException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::ServiceError({ + kind: crate::error::InvokeErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InvokeError::unhandled)?; output.build() }), }, "SubnetIPAddressLimitReachedException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::SubnetIPAddressLimitReachedError({ + kind: crate::error::InvokeErrorKind::SubnetIpAddressLimitReachedException({ #[allow(unused_mut)] let mut output = - crate::error::subnet_ip_address_limit_reached_error::Builder::default(); + crate::error::subnet_ip_address_limit_reached_exception::Builder::default(); let _ = response; - output = crate::json_deser::subnet_ip_address_limit_reached_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::InvokeError::unhandled)?; + output = crate::json_deser::deser_structure_subnet_ip_address_limit_reached_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::InvokeError { meta: generic, - kind: crate::error::InvokeErrorKind::TooManyRequestsError({ + kind: crate::error::InvokeErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_invoke_retry_after_seconds(response.headers()) - .map_err(|_| { - crate::error::InvokeError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); - output.build() - }), - }, - "UnsupportedMediaTypeException" => crate::error::InvokeError { - meta: generic, - kind: crate::error::InvokeErrorKind::UnsupportedMediaTypeError({ - #[allow(unused_mut)] - let mut output = crate::error::unsupported_media_type_error::Builder::default(); - let _ = response; - output = crate::json_deser::unsupported_media_type_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::InvokeError::unhandled)?; + crate::http_serde::deser_header_invoke_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::InvokeError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, + "UnsupportedMediaTypeException" => { + crate::error::InvokeError { + meta: generic, + kind: crate::error::InvokeErrorKind::UnsupportedMediaTypeException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_media_type_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_media_type_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; + output.build() + }), + } + } _ => crate::error::InvokeError::generic(generic), }) } @@ -3203,35 +3158,36 @@ pub fn parse_invoke_response( let mut output = crate::output::invoke_output::Builder::default(); let _ = response; output = output.set_executed_version( - crate::http_serde::deser_header_invoke_executed_version(response.headers()).map_err( - |_| { - crate::error::InvokeError::unhandled( - "Failed to parse ExecutedVersion from header `X-Amz-Executed-Version", - ) - }, - )?, + crate::http_serde::deser_header_invoke_invoke_output_executed_version( + response.headers(), + ) + .map_err(|_| { + crate::error::InvokeError::unhandled( + "Failed to parse ExecutedVersion from header `X-Amz-Executed-Version", + ) + })?, ); output = output.set_function_error( - crate::http_serde::deser_header_invoke_function_error(response.headers()).map_err( - |_| { + crate::http_serde::deser_header_invoke_invoke_output_function_error(response.headers()) + .map_err(|_| { crate::error::InvokeError::unhandled( "Failed to parse FunctionError from header `X-Amz-Function-Error", ) - }, - )?, + })?, ); output = output.set_log_result( - crate::http_serde::deser_header_invoke_log_result(response.headers()).map_err( - |_| { + crate::http_serde::deser_header_invoke_invoke_output_log_result(response.headers()) + .map_err(|_| { crate::error::InvokeError::unhandled( "Failed to parse LogResult from header `X-Amz-Log-Result", ) - }, + })?, + ); + output = output.set_payload( + crate::http_serde::deser_payload_invoke_invoke_output_payload( + response.body().as_ref(), )?, ); - output = output.set_payload(crate::http_serde::deser_payload_invoke_payload( - response.body().as_ref(), - )?); output = output.set_status_code(Some(response.status().as_u16() as _)); output.build() }) @@ -3248,13 +3204,26 @@ pub fn parse_invoke_async_error( None => return Err(crate::error::InvokeAsyncError::unhandled(generic)), }; Err(match error_code { - "InvalidRequestContentException" => crate::error::InvokeAsyncError { + "InvalidRequestContentException" => { + crate::error::InvokeAsyncError { + meta: generic, + kind: crate::error::InvokeAsyncErrorKind::InvalidRequestContentException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_request_content_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_content_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeAsyncError::unhandled)?; + output.build() + }), + } + } + "InvalidRuntimeException" => crate::error::InvokeAsyncError { meta: generic, - kind: crate::error::InvokeAsyncErrorKind::InvalidRequestContentError({ + kind: crate::error::InvokeAsyncErrorKind::InvalidRuntimeException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_request_content_error::Builder::default(); + let mut output = crate::error::invalid_runtime_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_request_content_exception( + output = crate::json_deser::deser_structure_invalid_runtime_exceptionjson_err( response.body().as_ref(), output, ) @@ -3262,25 +3231,13 @@ pub fn parse_invoke_async_error( output.build() }), }, - "InvalidRuntimeException" => crate::error::InvokeAsyncError { - meta: generic, - kind: crate::error::InvokeAsyncErrorKind::InvalidRuntimeError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_runtime_error::Builder::default(); - let _ = response; - output = - crate::json_deser::invalid_runtime_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeAsyncError::unhandled)?; - output.build() - }), - }, "ResourceConflictException" => crate::error::InvokeAsyncError { meta: generic, - kind: crate::error::InvokeAsyncErrorKind::ResourceConflictError({ + kind: crate::error::InvokeAsyncErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -3290,11 +3247,11 @@ pub fn parse_invoke_async_error( }, "ResourceNotFoundException" => crate::error::InvokeAsyncError { meta: generic, - kind: crate::error::InvokeAsyncErrorKind::ResourceNotFoundError({ + kind: crate::error::InvokeAsyncErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3304,12 +3261,15 @@ pub fn parse_invoke_async_error( }, "ServiceException" => crate::error::InvokeAsyncError { meta: generic, - kind: crate::error::InvokeAsyncErrorKind::ServiceError({ + kind: crate::error::InvokeAsyncErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::InvokeAsyncError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }), }, @@ -3341,13 +3301,26 @@ pub fn parse_list_aliases_error( None => return Err(crate::error::ListAliasesError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListAliasesError { + "InvalidParameterValueException" => { + crate::error::ListAliasesError { + meta: generic, + kind: crate::error::ListAliasesErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListAliasesError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::ListAliasesError { meta: generic, - kind: crate::error::ListAliasesErrorKind::InvalidParameterValueError({ + kind: crate::error::ListAliasesErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3355,13 +3328,13 @@ pub fn parse_list_aliases_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::ListAliasesError { + "ServiceException" => crate::error::ListAliasesError { meta: generic, - kind: crate::error::ListAliasesErrorKind::ResourceNotFoundError({ + kind: crate::error::ListAliasesErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3369,38 +3342,21 @@ pub fn parse_list_aliases_error( output.build() }), }, - "ServiceException" => crate::error::ListAliasesError { - meta: generic, - kind: crate::error::ListAliasesErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListAliasesError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::ListAliasesError { meta: generic, - kind: crate::error::ListAliasesErrorKind::TooManyRequestsError({ + kind: crate::error::ListAliasesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListAliasesError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_aliases_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ListAliasesError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_list_aliases_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListAliasesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -3416,7 +3372,7 @@ pub fn parse_list_aliases_response( #[allow(unused_mut)] let mut output = crate::output::list_aliases_output::Builder::default(); let _ = response; - output = crate::json_deser::list_aliases_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_aliases(response.body().as_ref(), output) .map_err(crate::error::ListAliasesError::unhandled)?; output.build() }) @@ -3440,13 +3396,28 @@ pub fn parse_list_code_signing_configs_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListCodeSigningConfigsError { + "InvalidParameterValueException" => { + crate::error::ListCodeSigningConfigsError { + meta: generic, + kind: crate::error::ListCodeSigningConfigsErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; + output.build() + }, + ), + } + } + "ServiceException" => crate::error::ListCodeSigningConfigsError { meta: generic, - kind: crate::error::ListCodeSigningConfigsErrorKind::InvalidParameterValueError({ + kind: crate::error::ListCodeSigningConfigsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3454,17 +3425,6 @@ pub fn parse_list_code_signing_configs_error( output.build() }), }, - "ServiceException" => crate::error::ListCodeSigningConfigsError { - meta: generic, - kind: crate::error::ListCodeSigningConfigsErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; - output.build() - }), - }, _ => crate::error::ListCodeSigningConfigsError::generic(generic), }) } @@ -3480,7 +3440,7 @@ pub fn parse_list_code_signing_configs_response( #[allow(unused_mut)] let mut output = crate::output::list_code_signing_configs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_code_signing_configs_deser_operation( + output = crate::json_deser::deser_operation_list_code_signing_configs( response.body().as_ref(), output, ) @@ -3507,13 +3467,29 @@ pub fn parse_list_event_source_mappings_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListEventSourceMappingsError { + "InvalidParameterValueException" => { + crate::error::ListEventSourceMappingsError { + meta: generic, + kind: + crate::error::ListEventSourceMappingsErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListEventSourceMappingsError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::ListEventSourceMappingsError { meta: generic, - kind: crate::error::ListEventSourceMappingsErrorKind::InvalidParameterValueError({ + kind: crate::error::ListEventSourceMappingsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3521,13 +3497,13 @@ pub fn parse_list_event_source_mappings_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::ListEventSourceMappingsError { + "ServiceException" => crate::error::ListEventSourceMappingsError { meta: generic, - kind: crate::error::ListEventSourceMappingsErrorKind::ResourceNotFoundError({ + kind: crate::error::ListEventSourceMappingsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3535,37 +3511,24 @@ pub fn parse_list_event_source_mappings_error( output.build() }), }, - "ServiceException" => crate::error::ListEventSourceMappingsError { + "TooManyRequestsException" => crate::error::ListEventSourceMappingsError { meta: generic, - kind: crate::error::ListEventSourceMappingsErrorKind::ServiceError({ + kind: crate::error::ListEventSourceMappingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_list_event_source_mappings_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListEventSourceMappingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::ListEventSourceMappingsError { - meta: generic, - kind: crate::error::ListEventSourceMappingsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_event_source_mappings_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::ListEventSourceMappingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::ListEventSourceMappingsError::generic(generic), }) } @@ -3581,7 +3544,7 @@ pub fn parse_list_event_source_mappings_response( #[allow(unused_mut)] let mut output = crate::output::list_event_source_mappings_output::Builder::default(); let _ = response; - output = crate::json_deser::list_event_source_mappings_deser_operation( + output = crate::json_deser::deser_operation_list_event_source_mappings( response.body().as_ref(), output, ) @@ -3604,67 +3567,35 @@ pub fn parse_list_function_event_invoke_configs_error( None => return Err(crate::error::ListFunctionEventInvokeConfigsError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListFunctionEventInvokeConfigsError { - meta: generic, - kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; - output.build() - }, - ), - }, - "ResourceNotFoundException" => crate::error::ListFunctionEventInvokeConfigsError { - meta: generic, - kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::ListFunctionEventInvokeConfigsError { - meta: generic, - kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::ListFunctionEventInvokeConfigsError { - meta: generic, - kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_function_event_invoke_configs_retry_after_seconds(response.headers()) + "InvalidParameterValueException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_list_function_event_invoke_configs_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListFunctionEventInvokeConfigsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::ListFunctionEventInvokeConfigsError::generic(generic), + output.build() + })}, + _ => crate::error::ListFunctionEventInvokeConfigsError::generic(generic) }) } @@ -3680,7 +3611,7 @@ pub fn parse_list_function_event_invoke_configs_response( let mut output = crate::output::list_function_event_invoke_configs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_function_event_invoke_configs_deser_operation( + output = crate::json_deser::deser_operation_list_function_event_invoke_configs( response.body().as_ref(), output, ) @@ -3700,13 +3631,26 @@ pub fn parse_list_functions_error( None => return Err(crate::error::ListFunctionsError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListFunctionsError { + "InvalidParameterValueException" => { + crate::error::ListFunctionsError { + meta: generic, + kind: crate::error::ListFunctionsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsError::unhandled)?; + output.build() + }), + } + } + "ServiceException" => crate::error::ListFunctionsError { meta: generic, - kind: crate::error::ListFunctionsErrorKind::InvalidParameterValueError({ + kind: crate::error::ListFunctionsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3714,38 +3658,21 @@ pub fn parse_list_functions_error( output.build() }), }, - "ServiceException" => crate::error::ListFunctionsError { - meta: generic, - kind: crate::error::ListFunctionsErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListFunctionsError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::ListFunctionsError { meta: generic, - kind: crate::error::ListFunctionsErrorKind::TooManyRequestsError({ + kind: crate::error::ListFunctionsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListFunctionsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_functions_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ListFunctionsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_list_functions_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListFunctionsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -3762,7 +3689,7 @@ pub fn parse_list_functions_response( let mut output = crate::output::list_functions_output::Builder::default(); let _ = response; output = - crate::json_deser::list_functions_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_functions(response.body().as_ref(), output) .map_err(crate::error::ListFunctionsError::unhandled)?; output.build() }) @@ -3784,50 +3711,25 @@ pub fn parse_list_functions_by_code_signing_config_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListFunctionsByCodeSigningConfigError { - meta: generic, - kind: - crate::error::ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; - output.build() - }, - ), - }, - "ResourceNotFoundException" => crate::error::ListFunctionsByCodeSigningConfigError { - meta: generic, - kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::ListFunctionsByCodeSigningConfigError { - meta: generic, - kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; - output.build() - }), - }, - _ => crate::error::ListFunctionsByCodeSigningConfigError::generic(generic), + "InvalidParameterValueException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; + output.build() + })}, + _ => crate::error::ListFunctionsByCodeSigningConfigError::generic(generic) }) } @@ -3843,7 +3745,7 @@ pub fn parse_list_functions_by_code_signing_config_response( let mut output = crate::output::list_functions_by_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::list_functions_by_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_list_functions_by_code_signing_config( response.body().as_ref(), output, ) @@ -3863,13 +3765,26 @@ pub fn parse_list_layers_error( None => return Err(crate::error::ListLayersError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListLayersError { + "InvalidParameterValueException" => { + crate::error::ListLayersError { + meta: generic, + kind: crate::error::ListLayersErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListLayersError::unhandled)?; + output.build() + }), + } + } + "ServiceException" => crate::error::ListLayersError { meta: generic, - kind: crate::error::ListLayersErrorKind::InvalidParameterValueError({ + kind: crate::error::ListLayersErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3877,38 +3792,21 @@ pub fn parse_list_layers_error( output.build() }), }, - "ServiceException" => crate::error::ListLayersError { - meta: generic, - kind: crate::error::ListLayersErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListLayersError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::ListLayersError { meta: generic, - kind: crate::error::ListLayersErrorKind::TooManyRequestsError({ + kind: crate::error::ListLayersErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayersError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_layers_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ListLayersError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_list_layers_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListLayersError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -3924,7 +3822,7 @@ pub fn parse_list_layers_response( #[allow(unused_mut)] let mut output = crate::output::list_layers_output::Builder::default(); let _ = response; - output = crate::json_deser::list_layers_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_layers(response.body().as_ref(), output) .map_err(crate::error::ListLayersError::unhandled)?; output.build() }) @@ -3942,13 +3840,26 @@ pub fn parse_list_layer_versions_error( None => return Err(crate::error::ListLayerVersionsError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListLayerVersionsError { + "InvalidParameterValueException" => { + crate::error::ListLayerVersionsError { + meta: generic, + kind: crate::error::ListLayerVersionsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListLayerVersionsError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::ListLayerVersionsError { meta: generic, - kind: crate::error::ListLayerVersionsErrorKind::InvalidParameterValueError({ + kind: crate::error::ListLayerVersionsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3956,13 +3867,13 @@ pub fn parse_list_layer_versions_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::ListLayerVersionsError { + "ServiceException" => crate::error::ListLayerVersionsError { meta: generic, - kind: crate::error::ListLayerVersionsErrorKind::ResourceNotFoundError({ + kind: crate::error::ListLayerVersionsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -3970,38 +3881,21 @@ pub fn parse_list_layer_versions_error( output.build() }), }, - "ServiceException" => crate::error::ListLayerVersionsError { + "TooManyRequestsException" => crate::error::ListLayerVersionsError { meta: generic, - kind: crate::error::ListLayerVersionsErrorKind::ServiceError({ + kind: crate::error::ListLayerVersionsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListLayerVersionsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::ListLayerVersionsError { - meta: generic, - kind: crate::error::ListLayerVersionsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayerVersionsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_layer_versions_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ListLayerVersionsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_list_layer_versions_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListLayerVersionsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -4018,7 +3912,7 @@ pub fn parse_list_layer_versions_response( #[allow(unused_mut)] let mut output = crate::output::list_layer_versions_output::Builder::default(); let _ = response; - output = crate::json_deser::list_layer_versions_deser_operation( + output = crate::json_deser::deser_operation_list_layer_versions( response.body().as_ref(), output, ) @@ -4043,70 +3937,35 @@ pub fn parse_list_provisioned_concurrency_configs_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListProvisionedConcurrencyConfigsError { - meta: generic, - kind: - crate::error::ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; - output.build() - }, - ), - }, - "ResourceNotFoundException" => crate::error::ListProvisionedConcurrencyConfigsError { - meta: generic, - kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundError( - { - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; - output.build() - }, - ), - }, - "ServiceException" => crate::error::ListProvisionedConcurrencyConfigsError { - meta: generic, - kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::ListProvisionedConcurrencyConfigsError { - meta: generic, - kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_provisioned_concurrency_configs_retry_after_seconds(response.headers()) + "InvalidParameterValueException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_list_provisioned_concurrency_configs_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListProvisionedConcurrencyConfigsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::ListProvisionedConcurrencyConfigsError::generic(generic), + output.build() + })}, + _ => crate::error::ListProvisionedConcurrencyConfigsError::generic(generic) }) } @@ -4122,7 +3981,7 @@ pub fn parse_list_provisioned_concurrency_configs_response( let mut output = crate::output::list_provisioned_concurrency_configs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_provisioned_concurrency_configs_deser_operation( + output = crate::json_deser::deser_operation_list_provisioned_concurrency_configs( response.body().as_ref(), output, ) @@ -4142,13 +4001,26 @@ pub fn parse_list_tags_error( None => return Err(crate::error::ListTagsError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListTagsError { + "InvalidParameterValueException" => { + crate::error::ListTagsError { + meta: generic, + kind: crate::error::ListTagsErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListTagsError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::ListTagsError { meta: generic, - kind: crate::error::ListTagsErrorKind::InvalidParameterValueError({ + kind: crate::error::ListTagsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4156,13 +4028,13 @@ pub fn parse_list_tags_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::ListTagsError { + "ServiceException" => crate::error::ListTagsError { meta: generic, - kind: crate::error::ListTagsErrorKind::ResourceNotFoundError({ + kind: crate::error::ListTagsErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -4170,38 +4042,21 @@ pub fn parse_list_tags_error( output.build() }), }, - "ServiceException" => crate::error::ListTagsError { - meta: generic, - kind: crate::error::ListTagsErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::ListTagsError { meta: generic, - kind: crate::error::ListTagsErrorKind::TooManyRequestsError({ + kind: crate::error::ListTagsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListTagsError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_tags_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::ListTagsError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_list_tags_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListTagsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -4217,7 +4072,7 @@ pub fn parse_list_tags_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_tags(response.body().as_ref(), output) .map_err(crate::error::ListTagsError::unhandled)?; output.build() }) @@ -4241,13 +4096,28 @@ pub fn parse_list_versions_by_function_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::ListVersionsByFunctionError { + "InvalidParameterValueException" => { + crate::error::ListVersionsByFunctionError { + meta: generic, + kind: crate::error::ListVersionsByFunctionErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListVersionsByFunctionError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::ListVersionsByFunctionError { meta: generic, - kind: crate::error::ListVersionsByFunctionErrorKind::InvalidParameterValueError({ + kind: crate::error::ListVersionsByFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4255,13 +4125,13 @@ pub fn parse_list_versions_by_function_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::ListVersionsByFunctionError { + "ServiceException" => crate::error::ListVersionsByFunctionError { meta: generic, - kind: crate::error::ListVersionsByFunctionErrorKind::ResourceNotFoundError({ + kind: crate::error::ListVersionsByFunctionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -4269,37 +4139,24 @@ pub fn parse_list_versions_by_function_error( output.build() }), }, - "ServiceException" => crate::error::ListVersionsByFunctionError { + "TooManyRequestsException" => crate::error::ListVersionsByFunctionError { meta: generic, - kind: crate::error::ListVersionsByFunctionErrorKind::ServiceError({ + kind: crate::error::ListVersionsByFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_list_versions_by_function_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::ListVersionsByFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, - "TooManyRequestsException" => { - crate::error::ListVersionsByFunctionError { - meta: generic, - kind: crate::error::ListVersionsByFunctionErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_list_versions_by_function_retry_after_seconds(response.headers()) - .map_err(|_|crate::error::ListVersionsByFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? - ); - output.build() - }), - } - } _ => crate::error::ListVersionsByFunctionError::generic(generic), }) } @@ -4315,7 +4172,7 @@ pub fn parse_list_versions_by_function_response( #[allow(unused_mut)] let mut output = crate::output::list_versions_by_function_output::Builder::default(); let _ = response; - output = crate::json_deser::list_versions_by_function_deser_operation( + output = crate::json_deser::deser_operation_list_versions_by_function( response.body().as_ref(), output, ) @@ -4340,25 +4197,39 @@ pub fn parse_publish_layer_version_error( Err(match error_code { "CodeStorageExceededException" => crate::error::PublishLayerVersionError { meta: generic, - kind: crate::error::PublishLayerVersionErrorKind::CodeStorageExceededError({ + kind: crate::error::PublishLayerVersionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] - let mut output = crate::error::code_storage_exceeded_error::Builder::default(); + let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::code_storage_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PublishLayerVersionError::unhandled)?; + output = + crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }), }, - "InvalidParameterValueException" => crate::error::PublishLayerVersionError { + "InvalidParameterValueException" => { + crate::error::PublishLayerVersionError { + meta: generic, + kind: crate::error::PublishLayerVersionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishLayerVersionError::unhandled)?; + output.build() + }), + } + } + "ResourceNotFoundException" => crate::error::PublishLayerVersionError { meta: generic, - kind: crate::error::PublishLayerVersionErrorKind::InvalidParameterValueError({ + kind: crate::error::PublishLayerVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4366,13 +4237,13 @@ pub fn parse_publish_layer_version_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::PublishLayerVersionError { + "ServiceException" => crate::error::PublishLayerVersionError { meta: generic, - kind: crate::error::PublishLayerVersionErrorKind::ResourceNotFoundError({ + kind: crate::error::PublishLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -4380,38 +4251,21 @@ pub fn parse_publish_layer_version_error( output.build() }), }, - "ServiceException" => crate::error::PublishLayerVersionError { - meta: generic, - kind: crate::error::PublishLayerVersionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PublishLayerVersionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::PublishLayerVersionError { meta: generic, - kind: crate::error::PublishLayerVersionErrorKind::TooManyRequestsError({ + kind: crate::error::PublishLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_publish_layer_version_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PublishLayerVersionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_publish_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PublishLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -4430,7 +4284,7 @@ pub fn parse_publish_layer_version_response( #[allow(unused_mut)] let mut output = crate::output::publish_layer_version_output::Builder::default(); let _ = response; - output = crate::json_deser::publish_layer_version_deser_operation( + output = crate::json_deser::deser_operation_publish_layer_version( response.body().as_ref(), output, ) @@ -4452,39 +4306,39 @@ pub fn parse_publish_version_error( Err(match error_code { "CodeStorageExceededException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::CodeStorageExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::code_storage_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_storage_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PublishVersionError::unhandled)?; - output.build() - }), - }, - "InvalidParameterValueException" => crate::error::PublishVersionError { - meta: generic, - kind: crate::error::PublishVersionErrorKind::InvalidParameterValueError({ + kind: crate::error::PublishVersionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PublishVersionError::unhandled)?; + output = + crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }), }, + "InvalidParameterValueException" => { + crate::error::PublishVersionError { + meta: generic, + kind: crate::error::PublishVersionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishVersionError::unhandled)?; + output.build() + }), + } + } "PreconditionFailedException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::PreconditionFailedError({ + kind: crate::error::PublishVersionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -4494,11 +4348,11 @@ pub fn parse_publish_version_error( }, "ResourceConflictException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::ResourceConflictError({ + kind: crate::error::PublishVersionErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -4508,11 +4362,11 @@ pub fn parse_publish_version_error( }, "ResourceNotFoundException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::ResourceNotFoundError({ + kind: crate::error::PublishVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4522,36 +4376,33 @@ pub fn parse_publish_version_error( }, "ServiceException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::ServiceError({ + kind: crate::error::PublishVersionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PublishVersionError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PublishVersionError { meta: generic, - kind: crate::error::PublishVersionErrorKind::TooManyRequestsError({ + kind: crate::error::PublishVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishVersionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_publish_version_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::PublishVersionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_publish_version_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::PublishVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -4568,7 +4419,7 @@ pub fn parse_publish_version_response( let mut output = crate::output::publish_version_output::Builder::default(); let _ = response; output = - crate::json_deser::publish_version_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_publish_version(response.body().as_ref(), output) .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }) @@ -4592,99 +4443,47 @@ pub fn parse_put_function_code_signing_config_error( } }; Err(match error_code { - "CodeSigningConfigNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: - crate::error::PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundError( - { - #[allow(unused_mut)] - let mut output = - crate::error::code_signing_config_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_signing_config_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output.build() - }, - ), - }, - "InvalidParameterValueException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: crate::error::PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output.build() - }, - ), - }, - "ResourceConflictException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceConflictError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_conflict_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output.build() - }), - }, - "ResourceNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutFunctionCodeSigningConfigError { - meta: generic, - kind: crate::error::PutFunctionCodeSigningConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_function_code_signing_config_retry_after_seconds(response.headers()) + "CodeSigningConfigNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output.build() + })}, + "InvalidParameterValueException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output.build() + })}, + "ResourceConflictException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_put_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::PutFunctionCodeSigningConfigError::generic(generic), + output.build() + })}, + _ => crate::error::PutFunctionCodeSigningConfigError::generic(generic) }) } @@ -4699,7 +4498,7 @@ pub fn parse_put_function_code_signing_config_response( #[allow(unused_mut)] let mut output = crate::output::put_function_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::put_function_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_put_function_code_signing_config( response.body().as_ref(), output, ) @@ -4726,27 +4525,28 @@ pub fn parse_put_function_concurrency_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::PutFunctionConcurrencyError { - meta: generic, - kind: crate::error::PutFunctionConcurrencyErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; - output.build() - }), - }, + "InvalidParameterValueException" => { + crate::error::PutFunctionConcurrencyError { + meta: generic, + kind: crate::error::PutFunctionConcurrencyErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; + output.build() + }, + ), + } + } "ResourceConflictException" => crate::error::PutFunctionConcurrencyError { meta: generic, - kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceConflictError({ + kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -4756,11 +4556,11 @@ pub fn parse_put_function_concurrency_error( }, "ResourceNotFoundException" => crate::error::PutFunctionConcurrencyError { meta: generic, - kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceNotFoundError({ + kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4770,35 +4570,36 @@ pub fn parse_put_function_concurrency_error( }, "ServiceException" => crate::error::PutFunctionConcurrencyError { meta: generic, - kind: crate::error::PutFunctionConcurrencyErrorKind::ServiceError({ + kind: crate::error::PutFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }), }, - "TooManyRequestsException" => { - crate::error::PutFunctionConcurrencyError { - meta: generic, - kind: crate::error::PutFunctionConcurrencyErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_function_concurrency_retry_after_seconds(response.headers()) + "TooManyRequestsException" => crate::error::PutFunctionConcurrencyError { + meta: generic, + kind: crate::error::PutFunctionConcurrencyErrorKind::TooManyRequestsException({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_put_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - } - } + output.build() + }), + }, _ => crate::error::PutFunctionConcurrencyError::generic(generic), }) } @@ -4814,7 +4615,7 @@ pub fn parse_put_function_concurrency_response( #[allow(unused_mut)] let mut output = crate::output::put_function_concurrency_output::Builder::default(); let _ = response; - output = crate::json_deser::put_function_concurrency_deser_operation( + output = crate::json_deser::deser_operation_put_function_concurrency( response.body().as_ref(), output, ) @@ -4843,28 +4644,25 @@ pub fn parse_put_function_event_invoke_config_error( Err(match error_code { "InvalidParameterValueException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; + output.build() + }, + ), }, "ResourceNotFoundException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4874,28 +4672,31 @@ pub fn parse_put_function_event_invoke_config_error( }, "ServiceException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ServiceError({ + kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, - kind: crate::error::PutFunctionEventInvokeConfigErrorKind::TooManyRequestsError({ + kind: crate::error::PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_function_event_invoke_config_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_put_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -4916,7 +4717,7 @@ pub fn parse_put_function_event_invoke_config_response( #[allow(unused_mut)] let mut output = crate::output::put_function_event_invoke_config_output::Builder::default(); let _ = response; - output = crate::json_deser::put_function_event_invoke_config_deser_operation( + output = crate::json_deser::deser_operation_put_function_event_invoke_config( response.body().as_ref(), output, ) @@ -4939,82 +4740,41 @@ pub fn parse_put_provisioned_concurrency_config_error( None => return Err(crate::error::PutProvisionedConcurrencyConfigError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::PutProvisionedConcurrencyConfigError { - meta: generic, - kind: - crate::error::PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; - output.build() - }, - ), - }, - "ResourceConflictException" => crate::error::PutProvisionedConcurrencyConfigError { - meta: generic, - kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceConflictError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_conflict_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; - output.build() - }), - }, - "ResourceNotFoundException" => crate::error::PutProvisionedConcurrencyConfigError { - meta: generic, - kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::PutProvisionedConcurrencyConfigError { - meta: generic, - kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutProvisionedConcurrencyConfigError { - meta: generic, - kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_put_provisioned_concurrency_config_retry_after_seconds(response.headers()) + "InvalidParameterValueException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; + output.build() + })}, + "ResourceConflictException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_put_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::PutProvisionedConcurrencyConfigError::generic(generic), + output.build() + })}, + _ => crate::error::PutProvisionedConcurrencyConfigError::generic(generic) }) } @@ -5030,7 +4790,7 @@ pub fn parse_put_provisioned_concurrency_config_response( let mut output = crate::output::put_provisioned_concurrency_config_output::Builder::default(); let _ = response; - output = crate::json_deser::put_provisioned_concurrency_config_deser_operation( + output = crate::json_deser::deser_operation_put_provisioned_concurrency_config( response.body().as_ref(), output, ) @@ -5059,28 +4819,41 @@ pub fn parse_remove_layer_version_permission_error( Err(match error_code { "InvalidParameterValueException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, - kind: crate::error::RemoveLayerVersionPermissionErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; + output.build() + }, + ), }, - "PreconditionFailedException" => crate::error::RemoveLayerVersionPermissionError { + "PreconditionFailedException" => { + crate::error::RemoveLayerVersionPermissionError { + meta: generic, + kind: + crate::error::RemoveLayerVersionPermissionErrorKind::PreconditionFailedException( + { + #[allow(unused_mut)] + let mut output = + crate::error::precondition_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, - kind: crate::error::RemoveLayerVersionPermissionErrorKind::PreconditionFailedError({ + kind: crate::error::RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5088,13 +4861,13 @@ pub fn parse_remove_layer_version_permission_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::RemoveLayerVersionPermissionError { + "ServiceException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, - kind: crate::error::RemoveLayerVersionPermissionErrorKind::ResourceNotFoundError({ + kind: crate::error::RemoveLayerVersionPermissionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -5102,30 +4875,19 @@ pub fn parse_remove_layer_version_permission_error( output.build() }), }, - "ServiceException" => crate::error::RemoveLayerVersionPermissionError { - meta: generic, - kind: crate::error::RemoveLayerVersionPermissionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, - kind: crate::error::RemoveLayerVersionPermissionErrorKind::TooManyRequestsError({ + kind: crate::error::RemoveLayerVersionPermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_remove_layer_version_permission_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_remove_layer_version_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::RemoveLayerVersionPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -5162,13 +4924,26 @@ pub fn parse_remove_permission_error( None => return Err(crate::error::RemovePermissionError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::RemovePermissionError { + "InvalidParameterValueException" => { + crate::error::RemovePermissionError { + meta: generic, + kind: crate::error::RemovePermissionErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemovePermissionError::unhandled)?; + output.build() + }), + } + } + "PreconditionFailedException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::InvalidParameterValueError({ + kind: crate::error::RemovePermissionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -5176,13 +4951,13 @@ pub fn parse_remove_permission_error( output.build() }), }, - "PreconditionFailedException" => crate::error::RemovePermissionError { + "ResourceNotFoundException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::PreconditionFailedError({ + kind: crate::error::RemovePermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5190,13 +4965,13 @@ pub fn parse_remove_permission_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::RemovePermissionError { + "ServiceException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::ResourceNotFoundError({ + kind: crate::error::RemovePermissionErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -5204,38 +4979,21 @@ pub fn parse_remove_permission_error( output.build() }), }, - "ServiceException" => crate::error::RemovePermissionError { - meta: generic, - kind: crate::error::RemovePermissionErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::RemovePermissionError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::TooManyRequestsError({ + kind: crate::error::RemovePermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemovePermissionError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_remove_permission_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::RemovePermissionError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_remove_permission_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::RemovePermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -5267,13 +5025,26 @@ pub fn parse_tag_resource_error( None => return Err(crate::error::TagResourceError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::TagResourceError { + "InvalidParameterValueException" => { + crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::InvalidParameterValueError({ + kind: crate::error::TagResourceErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -5281,13 +5052,13 @@ pub fn parse_tag_resource_error( output.build() }), }, - "ResourceConflictException" => crate::error::TagResourceError { + "ResourceNotFoundException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ResourceConflictError({ + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5295,13 +5066,13 @@ pub fn parse_tag_resource_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::TagResourceError { + "ServiceException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::TagResourceErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -5309,38 +5080,21 @@ pub fn parse_tag_resource_error( output.build() }), }, - "ServiceException" => crate::error::TagResourceError { - meta: generic, - kind: crate::error::TagResourceErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::TagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TagResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_tag_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::TagResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_tag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::TagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -5371,13 +5125,26 @@ pub fn parse_untag_resource_error( None => return Err(crate::error::UntagResourceError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::UntagResourceError { + "InvalidParameterValueException" => { + crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + } + } + "ResourceConflictException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::InvalidParameterValueError({ + kind: crate::error::UntagResourceErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -5385,13 +5152,13 @@ pub fn parse_untag_resource_error( output.build() }), }, - "ResourceConflictException" => crate::error::UntagResourceError { + "ResourceNotFoundException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ResourceConflictError({ + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5399,13 +5166,13 @@ pub fn parse_untag_resource_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::UntagResourceError { + "ServiceException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::UntagResourceErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -5413,38 +5180,21 @@ pub fn parse_untag_resource_error( output.build() }), }, - "ServiceException" => crate::error::UntagResourceError { - meta: generic, - kind: crate::error::UntagResourceErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; - output.build() - }), - }, "TooManyRequestsException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::UntagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UntagResourceError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_untag_resource_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UntagResourceError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_untag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UntagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -5475,27 +5225,26 @@ pub fn parse_update_alias_error( None => return Err(crate::error::UpdateAliasError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::UpdateAliasError { - meta: generic, - kind: crate::error::UpdateAliasErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateAliasError::unhandled)?; - output.build() - }), - }, + "InvalidParameterValueException" => { + crate::error::UpdateAliasError { + meta: generic, + kind: crate::error::UpdateAliasErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateAliasError::unhandled)?; + output.build() + }), + } + } "PreconditionFailedException" => crate::error::UpdateAliasError { meta: generic, - kind: crate::error::UpdateAliasErrorKind::PreconditionFailedError({ + kind: crate::error::UpdateAliasErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -5505,11 +5254,11 @@ pub fn parse_update_alias_error( }, "ResourceConflictException" => crate::error::UpdateAliasError { meta: generic, - kind: crate::error::UpdateAliasErrorKind::ResourceConflictError({ + kind: crate::error::UpdateAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -5519,11 +5268,11 @@ pub fn parse_update_alias_error( }, "ResourceNotFoundException" => crate::error::UpdateAliasError { meta: generic, - kind: crate::error::UpdateAliasErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5533,36 +5282,33 @@ pub fn parse_update_alias_error( }, "ServiceException" => crate::error::UpdateAliasError { meta: generic, - kind: crate::error::UpdateAliasErrorKind::ServiceError({ + kind: crate::error::UpdateAliasErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateAliasError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateAliasError { meta: generic, - kind: crate::error::UpdateAliasErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAliasError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_alias_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateAliasError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_alias_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -5578,7 +5324,7 @@ pub fn parse_update_alias_response( #[allow(unused_mut)] let mut output = crate::output::update_alias_output::Builder::default(); let _ = response; - output = crate::json_deser::update_alias_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_alias(response.body().as_ref(), output) .map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }) @@ -5602,13 +5348,29 @@ pub fn parse_update_code_signing_config_error( } }; Err(match error_code { - "InvalidParameterValueException" => crate::error::UpdateCodeSigningConfigError { + "InvalidParameterValueException" => { + crate::error::UpdateCodeSigningConfigError { + meta: generic, + kind: + crate::error::UpdateCodeSigningConfigErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; + output.build() + }, + ), + } + } + "ResourceNotFoundException" => crate::error::UpdateCodeSigningConfigError { meta: generic, - kind: crate::error::UpdateCodeSigningConfigErrorKind::InvalidParameterValueError({ + kind: crate::error::UpdateCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5616,13 +5378,13 @@ pub fn parse_update_code_signing_config_error( output.build() }), }, - "ResourceNotFoundException" => crate::error::UpdateCodeSigningConfigError { + "ServiceException" => crate::error::UpdateCodeSigningConfigError { meta: generic, - kind: crate::error::UpdateCodeSigningConfigErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) @@ -5630,17 +5392,6 @@ pub fn parse_update_code_signing_config_error( output.build() }), }, - "ServiceException" => crate::error::UpdateCodeSigningConfigError { - meta: generic, - kind: crate::error::UpdateCodeSigningConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; - output.build() - }), - }, _ => crate::error::UpdateCodeSigningConfigError::generic(generic), }) } @@ -5656,7 +5407,7 @@ pub fn parse_update_code_signing_config_response( #[allow(unused_mut)] let mut output = crate::output::update_code_signing_config_output::Builder::default(); let _ = response; - output = crate::json_deser::update_code_signing_config_deser_operation( + output = crate::json_deser::deser_operation_update_code_signing_config( response.body().as_ref(), output, ) @@ -5685,25 +5436,24 @@ pub fn parse_update_event_source_mapping_error( Err(match error_code { "InvalidParameterValueException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; - output.build() - }), + kind: crate::error::UpdateEventSourceMappingErrorKind::InvalidParameterValueException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; + output.build() + }, + ), }, "ResourceConflictException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceConflictError({ + kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -5713,23 +5463,25 @@ pub fn parse_update_event_source_mapping_error( }, "ResourceInUseException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceInUseError({ + kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceInUseException({ #[allow(unused_mut)] - let mut output = crate::error::resource_in_use_error::Builder::default(); + let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; - output = - crate::json_deser::resource_in_use_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5739,28 +5491,31 @@ pub fn parse_update_event_source_mapping_error( }, "ServiceException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::ServiceError({ + kind: crate::error::UpdateEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateEventSourceMappingError { meta: generic, - kind: crate::error::UpdateEventSourceMappingErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_event_source_mapping_retry_after_seconds(response.headers()) + crate::http_serde::deser_header_update_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() @@ -5781,7 +5536,7 @@ pub fn parse_update_event_source_mapping_response( #[allow(unused_mut)] let mut output = crate::output::update_event_source_mapping_output::Builder::default(); let _ = response; - output = crate::json_deser::update_event_source_mapping_deser_operation( + output = crate::json_deser::deser_operation_update_event_source_mapping( response.body().as_ref(), output, ) @@ -5806,82 +5561,76 @@ pub fn parse_update_function_code_error( Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundError({ + kind: crate::error::UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)] let mut output = - crate::error::code_signing_config_not_found_error::Builder::default(); + crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::code_signing_config_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }), }, "CodeStorageExceededException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::CodeStorageExceededError({ + kind: crate::error::UpdateFunctionCodeErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] - let mut output = crate::error::code_storage_exceeded_error::Builder::default(); + let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::code_storage_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; - output.build() - }), - }, - "CodeVerificationFailedException" => crate::error::UpdateFunctionCodeError { - meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::CodeVerificationFailedError({ - #[allow(unused_mut)] - let mut output = crate::error::code_verification_failed_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_verification_failed_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; - output.build() - }), - }, - "InvalidCodeSignatureException" => crate::error::UpdateFunctionCodeError { - meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::InvalidCodeSignatureError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_code_signature_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_code_signature_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; - output.build() - }), - }, - "InvalidParameterValueException" => crate::error::UpdateFunctionCodeError { - meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output = + crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }), }, + "CodeVerificationFailedException" => { + crate::error::UpdateFunctionCodeError { + meta: generic, + kind: crate::error::UpdateFunctionCodeErrorKind::CodeVerificationFailedException({ + #[allow(unused_mut)] + let mut output = + crate::error::code_verification_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output.build() + }), + } + } + "InvalidCodeSignatureException" => { + crate::error::UpdateFunctionCodeError { + meta: generic, + kind: crate::error::UpdateFunctionCodeErrorKind::InvalidCodeSignatureException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_code_signature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output.build() + }), + } + } + "InvalidParameterValueException" => { + crate::error::UpdateFunctionCodeError { + meta: generic, + kind: crate::error::UpdateFunctionCodeErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output.build() + }), + } + } "PreconditionFailedException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::PreconditionFailedError({ + kind: crate::error::UpdateFunctionCodeErrorKind::PreconditionFailedException({ #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); + let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; - output = crate::json_deser::precondition_failed_exception( + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err( response.body().as_ref(), output, ) @@ -5891,11 +5640,11 @@ pub fn parse_update_function_code_error( }, "ResourceConflictException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::ResourceConflictError({ + kind: crate::error::UpdateFunctionCodeErrorKind::ResourceConflictException({ #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); + let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_conflict_exception( + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) @@ -5905,11 +5654,11 @@ pub fn parse_update_function_code_error( }, "ResourceNotFoundException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateFunctionCodeErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -5919,36 +5668,33 @@ pub fn parse_update_function_code_error( }, "ServiceException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::ServiceError({ + kind: crate::error::UpdateFunctionCodeErrorKind::ServiceException({ #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); + let mut output = crate::error::service_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; + output = crate::json_deser::deser_structure_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateFunctionCodeError { meta: generic, - kind: crate::error::UpdateFunctionCodeErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateFunctionCodeErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_function_code_retry_after_seconds( - response.headers(), - ) - .map_err(|_| { - crate::error::UpdateFunctionCodeError::unhandled( - "Failed to parse retryAfterSeconds from header `Retry-After", - ) - })?, - ); + crate::http_serde::deser_header_update_function_code_too_many_requests_exception_retry_after_seconds(response.headers()) + .map_err(|_|crate::error::UpdateFunctionCodeError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? + ); output.build() }), }, @@ -5967,7 +5713,7 @@ pub fn parse_update_function_code_response( #[allow(unused_mut)] let mut output = crate::output::update_function_code_output::Builder::default(); let _ = response; - output = crate::json_deser::update_function_code_deser_operation( + output = crate::json_deser::deser_operation_update_function_code( response.body().as_ref(), output, ) @@ -5994,141 +5740,65 @@ pub fn parse_update_function_configuration_error( } }; Err(match error_code { - "CodeSigningConfigNotFoundException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: - crate::error::UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundError( - { - #[allow(unused_mut)] - let mut output = - crate::error::code_signing_config_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_signing_config_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }, - ), - }, - "CodeVerificationFailedException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::CodeVerificationFailedError( - { - #[allow(unused_mut)] - let mut output = - crate::error::code_verification_failed_error::Builder::default(); - let _ = response; - output = crate::json_deser::code_verification_failed_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }, - ), - }, - "InvalidCodeSignatureException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_code_signature_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_code_signature_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "InvalidParameterValueException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "PreconditionFailedException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::PreconditionFailedError({ - #[allow(unused_mut)] - let mut output = crate::error::precondition_failed_error::Builder::default(); - let _ = response; - output = crate::json_deser::precondition_failed_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "ResourceConflictException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceConflictError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_conflict_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_conflict_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "ResourceNotFoundException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::UpdateFunctionConfigurationError { - meta: generic, - kind: crate::error::UpdateFunctionConfigurationErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_function_configuration_retry_after_seconds(response.headers()) + "CodeSigningConfigNotFoundException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "CodeVerificationFailedException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException({ + #[allow(unused_mut)]let mut output = crate::error::code_verification_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "InvalidCodeSignatureException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_code_signature_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "InvalidParameterValueException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "PreconditionFailedException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::PreconditionFailedException({ + #[allow(unused_mut)]let mut output = crate::error::precondition_failed_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "ResourceConflictException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_function_configuration_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateFunctionConfigurationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::UpdateFunctionConfigurationError::generic(generic), + output.build() + })}, + _ => crate::error::UpdateFunctionConfigurationError::generic(generic) }) } @@ -6143,7 +5813,7 @@ pub fn parse_update_function_configuration_response( #[allow(unused_mut)] let mut output = crate::output::update_function_configuration_output::Builder::default(); let _ = response; - output = crate::json_deser::update_function_configuration_deser_operation( + output = crate::json_deser::deser_operation_update_function_configuration( response.body().as_ref(), output, ) @@ -6166,68 +5836,35 @@ pub fn parse_update_function_event_invoke_config_error( None => return Err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled(generic)), }; Err(match error_code { - "InvalidParameterValueException" => crate::error::UpdateFunctionEventInvokeConfigError { - meta: generic, - kind: - crate::error::UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_value_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; - output.build() - }, - ), - }, - "ResourceNotFoundException" => crate::error::UpdateFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; - output.build() - }), - }, - "ServiceException" => crate::error::UpdateFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ServiceError({ - #[allow(unused_mut)] - let mut output = crate::error::service_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::UpdateFunctionEventInvokeConfigError { - meta: generic, - kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; - output = output.set_retry_after_seconds( - crate::http_serde::deser_header_update_function_event_invoke_config_retry_after_seconds(response.headers()) + "InvalidParameterValueException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "ServiceException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ServiceException({ + #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::http_serde::deser_header_update_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); - output.build() - }), - }, - _ => crate::error::UpdateFunctionEventInvokeConfigError::generic(generic), + output.build() + })}, + _ => crate::error::UpdateFunctionEventInvokeConfigError::generic(generic) }) } @@ -6243,7 +5880,7 @@ pub fn parse_update_function_event_invoke_config_response( let mut output = crate::output::update_function_event_invoke_config_output::Builder::default(); let _ = response; - output = crate::json_deser::update_function_event_invoke_config_deser_operation( + output = crate::json_deser::deser_operation_update_function_event_invoke_config( response.body().as_ref(), output, ) diff --git a/sdk/lambda/src/operation_ser.rs b/sdk/lambda/src/operation_ser.rs index 349a5955304e..16e8244954f8 100644 --- a/sdk/lambda/src/operation_ser.rs +++ b/sdk/lambda/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_layer_version_permission( input: &crate::input::AddLayerVersionPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_layer_version_permission_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_add_layer_version_permission( pub fn serialize_operation_add_permission( input: &crate::input::AddPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_permission_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_add_permission( pub fn serialize_operation_create_alias( input: &crate::input::CreateAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_alias_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_alias( pub fn serialize_operation_create_code_signing_config( input: &crate::input::CreateCodeSigningConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_code_signing_config_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_code_signing_config( pub fn serialize_operation_create_event_source_mapping( input: &crate::input::CreateEventSourceMappingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_event_source_mapping_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_event_source_mapping( pub fn serialize_operation_create_function( input: &crate::input::CreateFunctionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_function_input(&mut object, input); @@ -79,7 +79,7 @@ pub fn ser_payload_invoke_async_input( pub fn serialize_operation_publish_layer_version( input: &crate::input::PublishLayerVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_publish_layer_version_input(&mut object, input); @@ -89,7 +89,7 @@ pub fn serialize_operation_publish_layer_version( pub fn serialize_operation_publish_version( input: &crate::input::PublishVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_publish_version_input(&mut object, input); @@ -99,7 +99,7 @@ pub fn serialize_operation_publish_version( pub fn serialize_operation_put_function_code_signing_config( input: &crate::input::PutFunctionCodeSigningConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_function_code_signing_config_input(&mut object, input); @@ -109,7 +109,7 @@ pub fn serialize_operation_put_function_code_signing_config( pub fn serialize_operation_put_function_concurrency( input: &crate::input::PutFunctionConcurrencyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_function_concurrency_input(&mut object, input); @@ -119,7 +119,7 @@ pub fn serialize_operation_put_function_concurrency( pub fn serialize_operation_put_function_event_invoke_config( input: &crate::input::PutFunctionEventInvokeConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_function_event_invoke_config_input(&mut object, input); @@ -129,7 +129,7 @@ pub fn serialize_operation_put_function_event_invoke_config( pub fn serialize_operation_put_provisioned_concurrency_config( input: &crate::input::PutProvisionedConcurrencyConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_provisioned_concurrency_config_input( @@ -142,7 +142,7 @@ pub fn serialize_operation_put_provisioned_concurrency_config( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -152,7 +152,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_update_alias( input: &crate::input::UpdateAliasInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_alias_input(&mut object, input); @@ -162,7 +162,7 @@ pub fn serialize_operation_update_alias( pub fn serialize_operation_update_code_signing_config( input: &crate::input::UpdateCodeSigningConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_code_signing_config_input(&mut object, input); @@ -172,7 +172,7 @@ pub fn serialize_operation_update_code_signing_config( pub fn serialize_operation_update_event_source_mapping( input: &crate::input::UpdateEventSourceMappingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_event_source_mapping_input(&mut object, input); @@ -182,7 +182,7 @@ pub fn serialize_operation_update_event_source_mapping( pub fn serialize_operation_update_function_code( input: &crate::input::UpdateFunctionCodeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_function_code_input(&mut object, input); @@ -192,7 +192,7 @@ pub fn serialize_operation_update_function_code( pub fn serialize_operation_update_function_configuration( input: &crate::input::UpdateFunctionConfigurationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_function_configuration_input(&mut object, input); @@ -202,7 +202,7 @@ pub fn serialize_operation_update_function_configuration( pub fn serialize_operation_update_function_event_invoke_config( input: &crate::input::UpdateFunctionEventInvokeConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_function_event_invoke_config_input( diff --git a/sdk/lambda/src/serde_util.rs b/sdk/lambda/src/serde_util.rs deleted file mode 100644 index a8b1bc11744a..000000000000 --- a/sdk/lambda/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} - -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/lambda/src/serializer.rs b/sdk/lambda/src/serializer.rs deleted file mode 100644 index 42ad637e59b7..000000000000 --- a/sdk/lambda/src/serializer.rs +++ /dev/null @@ -1,3460 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddLayerVersionPermissionInputBody<'a> { - ///

    An identifier that distinguishes the policy from others on the same layer version.

    - pub statement_id: &'a std::option::Option, - ///

    The API action that grants access to the layer. For example, lambda:GetLayerVersion.

    - pub action: &'a std::option::Option, - ///

    An account ID, or * to grant permission to all AWS accounts.

    - pub principal: &'a std::option::Option, - ///

    With the principal set to *, grant permission to all accounts in the specified - /// organization.

    - pub organization_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AddLayerVersionPermissionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddLayerVersionPermissionInputBody"); - formatter.field("statement_id", &self.statement_id); - formatter.field("action", &self.action); - formatter.field("principal", &self.principal); - formatter.field("organization_id", &self.organization_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddPermissionInputBody<'a> { - ///

    A statement identifier that differentiates the statement from others in the same policy.

    - pub statement_id: &'a std::option::Option, - ///

    The action that the principal can use on the function. For example, lambda:InvokeFunction or - /// lambda:GetFunction.

    - pub action: &'a std::option::Option, - ///

    The AWS service or account that invokes the function. If you specify a service, use SourceArn or - /// SourceAccount to limit who can invoke the function through that service.

    - pub principal: &'a std::option::Option, - ///

    For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or - /// Amazon SNS topic.

    - pub source_arn: &'a std::option::Option, - ///

    For Amazon S3, the ID of the account that owns the resource. Use this together with SourceArn to - /// ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted - /// by its owner and recreated by another account.

    - pub source_account: &'a std::option::Option, - ///

    For Alexa Smart Home functions, a token that must be supplied by the invoker.

    - pub event_source_token: &'a std::option::Option, - ///

    Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a - /// policy that has changed since you last read it.

    - pub revision_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AddPermissionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddPermissionInputBody"); - formatter.field("statement_id", &self.statement_id); - formatter.field("action", &self.action); - formatter.field("principal", &self.principal); - formatter.field("source_arn", &self.source_arn); - formatter.field("source_account", &self.source_account); - formatter.field("event_source_token", &self.event_source_token); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAliasInputBody<'a> { - ///

    The name of the alias.

    - pub name: &'a std::option::Option, - ///

    The function version that the alias invokes.

    - pub function_version: &'a std::option::Option, - ///

    A description of the alias.

    - pub description: &'a std::option::Option, - ///

    The routing - /// configuration of the alias.

    - pub routing_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAliasInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAliasInputBody"); - formatter.field("name", &self.name); - formatter.field("function_version", &self.function_version); - formatter.field("description", &self.description); - formatter.field("routing_config", &self.routing_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCodeSigningConfigInputBody<'a> { - ///

    Descriptive name for this code signing configuration.

    - pub description: &'a std::option::Option, - ///

    Signing profiles for this code signing configuration.

    - pub allowed_publishers: &'a std::option::Option, - ///

    The code signing policies define the actions to take if the validation checks fail.

    - pub code_signing_policies: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateCodeSigningConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCodeSigningConfigInputBody"); - formatter.field("description", &self.description); - formatter.field("allowed_publishers", &self.allowed_publishers); - formatter.field("code_signing_policies", &self.code_signing_policies); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEventSourceMappingInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the event source.

    - ///
      - ///
    • - ///

      - /// Amazon Kinesis - The ARN of the data stream or a stream consumer.

      - ///
    • - ///
    • - ///

      - /// Amazon DynamoDB Streams - The ARN of the stream.

      - ///
    • - ///
    • - ///

      - /// Amazon Simple Queue Service - The ARN of the queue.

      - ///
    • - ///
    • - ///

      - /// Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.

      - ///
    • - ///
    - pub event_source_arn: &'a std::option::Option, - ///

    The name of the Lambda function.

    - ///

    - /// Name formats - ///

    - ///
      - ///
    • - ///

      - /// Function name - MyFunction.

      - ///
    • - ///
    • - ///

      - /// Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

      - ///
    • - ///
    • - ///

      - /// Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

      - ///
    • - ///
    • - ///

      - /// Partial ARN - 123456789012:function:MyFunction.

      - ///
    • - ///
    - ///

    The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 - /// characters in length.

    - pub function_name: &'a std::option::Option, - ///

    If true, the event source mapping is active. Set to false to pause polling and invocation.

    - pub enabled: &'a std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - ///
      - ///
    • - ///

      - /// Amazon Kinesis - Default 100. Max 10,000.

      - ///
    • - ///
    • - ///

      - /// Amazon DynamoDB Streams - Default 100. Max 1,000.

      - ///
    • - ///
    • - ///

      - /// Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

      - ///
    • - ///
    • - ///

      - /// Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

      - ///
    • - ///
    • - ///

      - /// Self-Managed Apache Kafka - Default 100. Max 10,000.

      - ///
    • - ///
    - pub batch_size: &'a std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds.

    - pub maximum_batching_window_in_seconds: &'a std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently.

    - pub parallelization_factor: &'a std::option::Option, - ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams - /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - pub starting_position: &'a std::option::Option, - ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start - /// reading.

    - pub starting_position_timestamp: &'a std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - pub destination_config: &'a std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1).

    - pub maximum_record_age_in_seconds: &'a std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry.

    - pub bisect_batch_on_function_error: &'a std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.

    - pub maximum_retry_attempts: &'a std::option::Option, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - pub tumbling_window_in_seconds: &'a std::option::Option, - ///

    The name of the Kafka topic.

    - pub topics: &'a std::option::Option>, - ///

    - /// (MQ) The name of the Amazon MQ broker destination queue to consume. - ///

    - pub queues: &'a std::option::Option>, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - pub source_access_configurations: - &'a std::option::Option>, - ///

    The Self-Managed Apache Kafka cluster to send records.

    - pub self_managed_event_source: &'a std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - pub function_response_types: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateEventSourceMappingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEventSourceMappingInputBody"); - formatter.field("event_source_arn", &self.event_source_arn); - formatter.field("function_name", &self.function_name); - formatter.field("enabled", &self.enabled); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field("starting_position", &self.starting_position); - formatter.field( - "starting_position_timestamp", - &self.starting_position_timestamp, - ); - formatter.field("destination_config", &self.destination_config); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("topics", &self.topics); - formatter.field("queues", &self.queues); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field("self_managed_event_source", &self.self_managed_event_source); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFunctionInputBody<'a> { - ///

    The name of the Lambda function.

    - ///

    - /// Name formats - ///

    - ///
      - ///
    • - ///

      - /// Function name - my-function.

      - ///
    • - ///
    • - ///

      - /// Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

      - ///
    • - ///
    • - ///

      - /// Partial ARN - 123456789012:function:my-function.

      - ///
    • - ///
    - ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 - /// characters in length.

    - pub function_name: &'a std::option::Option, - ///

    The identifier of the function's runtime.

    - pub runtime: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the function's execution role.

    - pub role: &'a std::option::Option, - ///

    The name of the method within your code that Lambda calls to execute your function. The format includes the - /// file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, - /// see Programming Model.

    - pub handler: &'a std::option::Option, - ///

    The code for the function.

    - pub code: &'a std::option::Option, - ///

    A description of the function.

    - pub description: &'a std::option::Option, - ///

    The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The - /// maximum allowed value is 900 seconds.

    - pub timeout: &'a std::option::Option, - ///

    The amount of memory available to the function at runtime. Increasing the function's memory also increases its CPU - /// allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

    - pub memory_size: &'a std::option::Option, - ///

    Set to true to publish the first version of the function during creation.

    - pub publish: &'a bool, - ///

    For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. - /// When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more - /// information, see VPC Settings.

    - pub vpc_config: &'a std::option::Option, - ///

    The type of deployment package. Set to Image for container image and set Zip for ZIP archive.

    - pub package_type: &'a std::option::Option, - ///

    A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events - /// when they fail processing. For more information, see Dead Letter Queues.

    - pub dead_letter_config: &'a std::option::Option, - ///

    Environment variables that are accessible from function code during execution.

    - pub environment: &'a std::option::Option, - ///

    The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment - /// variables. If it's not provided, AWS Lambda uses a default service key.

    - pub kms_key_arn: &'a std::option::Option, - ///

    Set Mode to Active to sample and trace a subset of incoming requests with AWS - /// X-Ray.

    - pub tracing_config: &'a std::option::Option, - ///

    A list of tags to apply to the - /// function.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of function layers - /// to add to the function's execution environment. Specify each layer by its ARN, including the version.

    - pub layers: &'a std::option::Option>, - ///

    Connection settings for an Amazon EFS file system.

    - pub file_system_configs: &'a std::option::Option>, - ///

    - /// Container image configuration - /// values that override the values in the container image Dockerfile.

    - pub image_config: &'a std::option::Option, - ///

    To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration - /// includes a set of signing profiles, which define the trusted publishers for this function.

    - pub code_signing_config_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateFunctionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFunctionInputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code", &self.code); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("publish", &self.publish); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("package_type", &self.package_type); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("tags", &self.tags); - formatter.field("layers", &self.layers); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("image_config", &self.image_config); - formatter.field("code_signing_config_arn", &self.code_signing_config_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PublishLayerVersionInputBody<'a> { - ///

    The description of the version.

    - pub description: &'a std::option::Option, - ///

    The function layer archive.

    - pub content: &'a std::option::Option, - ///

    A list of compatible function - /// runtimes. Used for filtering with ListLayers and ListLayerVersions.

    - pub compatible_runtimes: &'a std::option::Option>, - ///

    The layer's software license. It can be any of the following:

    - ///
      - ///
    • - ///

      An SPDX license identifier. For example, - /// MIT.

      - ///
    • - ///
    • - ///

      The URL of a license hosted on the internet. For example, - /// https://opensource.org/licenses/MIT.

      - ///
    • - ///
    • - ///

      The full text of the license.

      - ///
    • - ///
    - pub license_info: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PublishLayerVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublishLayerVersionInputBody"); - formatter.field("description", &self.description); - formatter.field("content", &self.content); - formatter.field("compatible_runtimes", &self.compatible_runtimes); - formatter.field("license_info", &self.license_info); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PublishVersionInputBody<'a> { - ///

    Only publish a version if the hash value matches the value that's specified. Use this option to avoid - /// publishing a version if the function code has changed since you last updated it. You can get the hash for the - /// version that you uploaded from the output of UpdateFunctionCode.

    - pub code_sha256: &'a std::option::Option, - ///

    A description for the version to override the description in the function configuration.

    - pub description: &'a std::option::Option, - ///

    Only update the function if the revision ID matches the ID that's specified. Use this option to avoid - /// publishing a version if the function configuration has changed since you last updated it.

    - pub revision_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PublishVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublishVersionInputBody"); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("description", &self.description); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionCodeSigningConfigInputBody<'a> { - ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - pub code_signing_config_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutFunctionCodeSigningConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionCodeSigningConfigInputBody"); - formatter.field("code_signing_config_arn", &self.code_signing_config_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionConcurrencyInputBody<'a> { - ///

    The number of simultaneous executions to reserve for the function.

    - pub reserved_concurrent_executions: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutFunctionConcurrencyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionConcurrencyInputBody"); - formatter.field( - "reserved_concurrent_executions", - &self.reserved_concurrent_executions, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionEventInvokeConfigInputBody<'a> { - ///

    The maximum number of times to retry when the function returns an error.

    - pub maximum_retry_attempts: &'a std::option::Option, - ///

    The maximum age of a request that Lambda sends to a function for processing.

    - pub maximum_event_age_in_seconds: &'a std::option::Option, - ///

    A destination for events after they have been sent to a function for processing.

    - ///

    - /// Destinations - ///

    - ///
      - ///
    • - ///

      - /// Function - The Amazon Resource Name (ARN) of a Lambda function.

      - ///
    • - ///
    • - ///

      - /// Queue - The ARN of an SQS queue.

      - ///
    • - ///
    • - ///

      - /// Topic - The ARN of an SNS topic.

      - ///
    • - ///
    • - ///

      - /// Event Bus - The ARN of an Amazon EventBridge event bus.

      - ///
    • - ///
    - pub destination_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutFunctionEventInvokeConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionEventInvokeConfigInputBody"); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "maximum_event_age_in_seconds", - &self.maximum_event_age_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutProvisionedConcurrencyConfigInputBody<'a> { - ///

    The amount of provisioned concurrency to allocate for the version or alias.

    - pub provisioned_concurrent_executions: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutProvisionedConcurrencyConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutProvisionedConcurrencyConfigInputBody"); - formatter.field( - "provisioned_concurrent_executions", - &self.provisioned_concurrent_executions, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    A list of tags to apply to the function.

    - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAliasInputBody<'a> { - ///

    The function version that the alias invokes.

    - pub function_version: &'a std::option::Option, - ///

    A description of the alias.

    - pub description: &'a std::option::Option, - ///

    The routing - /// configuration of the alias.

    - pub routing_config: &'a std::option::Option, - ///

    Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying - /// an alias that has changed since you last read it.

    - pub revision_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateAliasInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAliasInputBody"); - formatter.field("function_version", &self.function_version); - formatter.field("description", &self.description); - formatter.field("routing_config", &self.routing_config); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCodeSigningConfigInputBody<'a> { - ///

    Descriptive name for this code signing configuration.

    - pub description: &'a std::option::Option, - ///

    Signing profiles for this code signing configuration.

    - pub allowed_publishers: &'a std::option::Option, - ///

    The code signing policy.

    - pub code_signing_policies: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateCodeSigningConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCodeSigningConfigInputBody"); - formatter.field("description", &self.description); - formatter.field("allowed_publishers", &self.allowed_publishers); - formatter.field("code_signing_policies", &self.code_signing_policies); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEventSourceMappingInputBody<'a> { - ///

    The name of the Lambda function.

    - ///

    - /// Name formats - ///

    - ///
      - ///
    • - ///

      - /// Function name - MyFunction.

      - ///
    • - ///
    • - ///

      - /// Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

      - ///
    • - ///
    • - ///

      - /// Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

      - ///
    • - ///
    • - ///

      - /// Partial ARN - 123456789012:function:MyFunction.

      - ///
    • - ///
    - ///

    The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 - /// characters in length.

    - pub function_name: &'a std::option::Option, - ///

    If true, the event source mapping is active. Set to false to pause polling and invocation.

    - pub enabled: &'a std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - ///
      - ///
    • - ///

      - /// Amazon Kinesis - Default 100. Max 10,000.

      - ///
    • - ///
    • - ///

      - /// Amazon DynamoDB Streams - Default 100. Max 1,000.

      - ///
    • - ///
    • - ///

      - /// Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

      - ///
    • - ///
    • - ///

      - /// Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

      - ///
    • - ///
    • - ///

      - /// Self-Managed Apache Kafka - Default 100. Max 10,000.

      - ///
    • - ///
    - pub batch_size: &'a std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds.

    - pub maximum_batching_window_in_seconds: &'a std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - pub destination_config: &'a std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1).

    - pub maximum_record_age_in_seconds: &'a std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry.

    - pub bisect_batch_on_function_error: &'a std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.

    - pub maximum_retry_attempts: &'a std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently.

    - pub parallelization_factor: &'a std::option::Option, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - pub source_access_configurations: - &'a std::option::Option>, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - pub tumbling_window_in_seconds: &'a std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - pub function_response_types: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateEventSourceMappingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEventSourceMappingInputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("enabled", &self.enabled); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionCodeInputBody<'a> { - ///

    The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for - /// you.

    - pub zip_file: &'a std::option::Option, - ///

    An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

    - pub s3_bucket: &'a std::option::Option, - ///

    The Amazon S3 key of the deployment package.

    - pub s3_key: &'a std::option::Option, - ///

    For versioned objects, the version of the deployment package object to use.

    - pub s3_object_version: &'a std::option::Option, - ///

    URI of a container image in the Amazon ECR registry.

    - pub image_uri: &'a std::option::Option, - ///

    Set to true to publish a new version of the function after updating the code. This has the same effect as - /// calling PublishVersion separately.

    - pub publish: &'a bool, - ///

    Set to true to validate the request parameters and access permissions without modifying the function - /// code.

    - pub dry_run: &'a bool, - ///

    Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a - /// function that has changed since you last read it.

    - pub revision_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateFunctionCodeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionCodeInputBody"); - formatter.field("zip_file", &"*** Sensitive Data Redacted ***"); - formatter.field("s3_bucket", &self.s3_bucket); - formatter.field("s3_key", &self.s3_key); - formatter.field("s3_object_version", &self.s3_object_version); - formatter.field("image_uri", &self.image_uri); - formatter.field("publish", &self.publish); - formatter.field("dry_run", &self.dry_run); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionConfigurationInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the function's execution role.

    - pub role: &'a std::option::Option, - ///

    The name of the method within your code that Lambda calls to execute your function. The format includes the - /// file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, - /// see Programming Model.

    - pub handler: &'a std::option::Option, - ///

    A description of the function.

    - pub description: &'a std::option::Option, - ///

    The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The - /// maximum allowed value is 900 seconds.

    - pub timeout: &'a std::option::Option, - ///

    The amount of memory available to the function at runtime. Increasing the function's memory also increases its CPU - /// allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

    - pub memory_size: &'a std::option::Option, - ///

    For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. - /// When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more - /// information, see VPC Settings.

    - pub vpc_config: &'a std::option::Option, - ///

    Environment variables that are accessible from function code during execution.

    - pub environment: &'a std::option::Option, - ///

    The identifier of the function's runtime.

    - pub runtime: &'a std::option::Option, - ///

    A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events - /// when they fail processing. For more information, see Dead Letter Queues.

    - pub dead_letter_config: &'a std::option::Option, - ///

    The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment - /// variables. If it's not provided, AWS Lambda uses a default service key.

    - pub kms_key_arn: &'a std::option::Option, - ///

    Set Mode to Active to sample and trace a subset of incoming requests with AWS - /// X-Ray.

    - pub tracing_config: &'a std::option::Option, - ///

    Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a - /// function that has changed since you last read it.

    - pub revision_id: &'a std::option::Option, - ///

    A list of function layers - /// to add to the function's execution environment. Specify each layer by its ARN, including the version.

    - pub layers: &'a std::option::Option>, - ///

    Connection settings for an Amazon EFS file system.

    - pub file_system_configs: &'a std::option::Option>, - ///

    - /// Container image configuration - /// values that override the values in the container image Dockerfile.

    - pub image_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateFunctionConfigurationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionConfigurationInputBody"); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("environment", &self.environment); - formatter.field("runtime", &self.runtime); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("image_config", &self.image_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionEventInvokeConfigInputBody<'a> { - ///

    The maximum number of times to retry when the function returns an error.

    - pub maximum_retry_attempts: &'a std::option::Option, - ///

    The maximum age of a request that Lambda sends to a function for processing.

    - pub maximum_event_age_in_seconds: &'a std::option::Option, - ///

    A destination for events after they have been sent to a function for processing.

    - ///

    - /// Destinations - ///

    - ///
      - ///
    • - ///

      - /// Function - The Amazon Resource Name (ARN) of a Lambda function.

      - ///
    • - ///
    • - ///

      - /// Queue - The ARN of an SQS queue.

      - ///
    • - ///
    • - ///

      - /// Topic - The ARN of an SNS topic.

      - ///
    • - ///
    • - ///

      - /// Event Bus - The ARN of an Amazon EventBridge event bus.

      - ///
    • - ///
    - pub destination_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateFunctionEventInvokeConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionEventInvokeConfigInputBody"); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "maximum_event_age_in_seconds", - &self.maximum_event_age_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AddLayerVersionPermissionOutputBody { - ///

    The permission statement.

    - #[serde(rename = "Statement")] - #[serde(default)] - pub statement: std::option::Option, - ///

    A unique identifier for the current revision of the policy.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for AddLayerVersionPermissionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddLayerVersionPermissionOutputBody"); - formatter.field("statement", &self.statement); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AddPermissionOutputBody { - ///

    The permission statement that's added to the function policy.

    - #[serde(rename = "Statement")] - #[serde(default)] - pub statement: std::option::Option, -} -impl std::fmt::Debug for AddPermissionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddPermissionOutputBody"); - formatter.field("statement", &self.statement); - formatter.finish() - } -} - -///

    Provides configuration information about a Lambda function alias.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAliasOutputBody { - ///

    The Amazon Resource Name (ARN) of the alias.

    - #[serde(rename = "AliasArn")] - #[serde(default)] - pub alias_arn: std::option::Option, - ///

    The name of the alias.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The function version that the alias invokes.

    - #[serde(rename = "FunctionVersion")] - #[serde(default)] - pub function_version: std::option::Option, - ///

    A description of the alias.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The routing - /// configuration of the alias.

    - #[serde(rename = "RoutingConfig")] - #[serde(default)] - pub routing_config: std::option::Option, - ///

    A unique identifier that changes when you update the alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for CreateAliasOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAliasOutputBody"); - formatter.field("alias_arn", &self.alias_arn); - formatter.field("name", &self.name); - formatter.field("function_version", &self.function_version); - formatter.field("description", &self.description); - formatter.field("routing_config", &self.routing_config); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCodeSigningConfigOutputBody { - ///

    The code signing configuration.

    - #[serde(rename = "CodeSigningConfig")] - #[serde(default)] - pub code_signing_config: std::option::Option, -} -impl std::fmt::Debug for CreateCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCodeSigningConfigOutputBody"); - formatter.field("code_signing_config", &self.code_signing_config); - formatter.finish() - } -} - -///

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEventSourceMappingOutputBody { - ///

    The identifier of the event source mapping.

    - #[serde(rename = "UUID")] - #[serde(default)] - pub uuid: std::option::Option, - ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams - /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - #[serde(rename = "StartingPosition")] - #[serde(default)] - pub starting_position: std::option::Option, - ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start - /// reading.

    - #[serde(rename = "StartingPositionTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub starting_position_timestamp: std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - #[serde(rename = "BatchSize")] - #[serde(default)] - pub batch_size: std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    - #[serde(rename = "MaximumBatchingWindowInSeconds")] - #[serde(default)] - pub maximum_batching_window_in_seconds: std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently. The default value is 1.

    - #[serde(rename = "ParallelizationFactor")] - #[serde(default)] - pub parallelization_factor: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the event source.

    - #[serde(rename = "EventSourceArn")] - #[serde(default)] - pub event_source_arn: std::option::Option, - ///

    The ARN of the Lambda function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The date that the event source mapping was last updated, or its state changed.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The result of the last AWS Lambda invocation of your Lambda function.

    - #[serde(rename = "LastProcessingResult")] - #[serde(default)] - pub last_processing_result: std::option::Option, - ///

    The state of the event source mapping. It can be one of the following: Creating, - /// Enabling, Enabled, Disabling, Disabled, - /// Updating, or Deleting.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    Indicates whether the last change to the event source mapping was made by a user, or by the Lambda - /// service.

    - #[serde(rename = "StateTransitionReason")] - #[serde(default)] - pub state_transition_reason: std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, - ///

    The name of the Kafka topic.

    - #[serde(rename = "Topics")] - #[serde(default)] - pub topics: std::option::Option>, - ///

    - /// (MQ) The name of the Amazon MQ broker destination queue to consume. - ///

    - #[serde(rename = "Queues")] - #[serde(default)] - pub queues: std::option::Option>, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - #[serde(rename = "SourceAccessConfigurations")] - #[serde(default)] - pub source_access_configurations: - std::option::Option>, - ///

    The Self-Managed Apache Kafka cluster for your event source.

    - #[serde(rename = "SelfManagedEventSource")] - #[serde(default)] - pub self_managed_event_source: std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRecordAgeInSeconds")] - #[serde(default)] - pub maximum_record_age_in_seconds: std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry. The default value is false.

    - #[serde(rename = "BisectBatchOnFunctionError")] - #[serde(default)] - pub bisect_batch_on_function_error: std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - #[serde(rename = "TumblingWindowInSeconds")] - #[serde(default)] - pub tumbling_window_in_seconds: std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - #[serde(rename = "FunctionResponseTypes")] - #[serde(default)] - pub function_response_types: - std::option::Option>, -} -impl std::fmt::Debug for CreateEventSourceMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEventSourceMappingOutputBody"); - formatter.field("uuid", &self.uuid); - formatter.field("starting_position", &self.starting_position); - formatter.field( - "starting_position_timestamp", - &self.starting_position_timestamp, - ); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field("event_source_arn", &self.event_source_arn); - formatter.field("function_arn", &self.function_arn); - formatter.field("last_modified", &self.last_modified); - formatter.field("last_processing_result", &self.last_processing_result); - formatter.field("state", &self.state); - formatter.field("state_transition_reason", &self.state_transition_reason); - formatter.field("destination_config", &self.destination_config); - formatter.field("topics", &self.topics); - formatter.field("queues", &self.queues); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field("self_managed_event_source", &self.self_managed_event_source); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -///

    Details about a function's configuration.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFunctionOutputBody { - ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, - ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] - pub runtime: std::option::Option, - ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] - pub role: std::option::Option, - ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] - pub handler: std::option::Option, - ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] - pub code_size: i64, - ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] - pub timeout: std::option::Option, - ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] - pub memory_size: std::option::Option, - ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] - pub code_sha256: std::option::Option, - ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] - pub dead_letter_config: std::option::Option, - ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: std::option::Option, - ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've - /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] - pub kms_key_arn: std::option::Option, - ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] - pub tracing_config: std::option::Option, - ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] - pub master_arn: std::option::Option, - ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, - ///

    The function's - /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, - ///

    The current state of the function. When the state is Inactive, you can reactivate the function by - /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] - pub state_reason: std::option::Option, - ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or - /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] - pub state_reason_code: std::option::Option, - ///

    The status of the last update that was performed on the function. This is first set to Successful - /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] - pub last_update_status: std::option::Option, - ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] - pub last_update_status_reason: std::option::Option, - ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] - pub last_update_status_reason_code: - std::option::Option, - ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] - pub file_system_configs: std::option::Option>, - ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] - pub package_type: std::option::Option, - ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] - pub image_config_response: std::option::Option, - ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] - pub signing_profile_version_arn: std::option::Option, - ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] - pub signing_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateFunctionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFunctionOutputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("function_arn", &self.function_arn); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code_size", &self.code_size); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("last_modified", &self.last_modified); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("version", &self.version); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("master_arn", &self.master_arn); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("state", &self.state); - formatter.field("state_reason", &self.state_reason); - formatter.field("state_reason_code", &self.state_reason_code); - formatter.field("last_update_status", &self.last_update_status); - formatter.field("last_update_status_reason", &self.last_update_status_reason); - formatter.field( - "last_update_status_reason_code", - &self.last_update_status_reason_code, - ); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("package_type", &self.package_type); - formatter.field("image_config_response", &self.image_config_response); - formatter.field( - "signing_profile_version_arn", - &self.signing_profile_version_arn, - ); - formatter.field("signing_job_arn", &self.signing_job_arn); - formatter.finish() - } -} - -///

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteEventSourceMappingOutputBody { - ///

    The identifier of the event source mapping.

    - #[serde(rename = "UUID")] - #[serde(default)] - pub uuid: std::option::Option, - ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams - /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - #[serde(rename = "StartingPosition")] - #[serde(default)] - pub starting_position: std::option::Option, - ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start - /// reading.

    - #[serde(rename = "StartingPositionTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub starting_position_timestamp: std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - #[serde(rename = "BatchSize")] - #[serde(default)] - pub batch_size: std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    - #[serde(rename = "MaximumBatchingWindowInSeconds")] - #[serde(default)] - pub maximum_batching_window_in_seconds: std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently. The default value is 1.

    - #[serde(rename = "ParallelizationFactor")] - #[serde(default)] - pub parallelization_factor: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the event source.

    - #[serde(rename = "EventSourceArn")] - #[serde(default)] - pub event_source_arn: std::option::Option, - ///

    The ARN of the Lambda function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The date that the event source mapping was last updated, or its state changed.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The result of the last AWS Lambda invocation of your Lambda function.

    - #[serde(rename = "LastProcessingResult")] - #[serde(default)] - pub last_processing_result: std::option::Option, - ///

    The state of the event source mapping. It can be one of the following: Creating, - /// Enabling, Enabled, Disabling, Disabled, - /// Updating, or Deleting.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    Indicates whether the last change to the event source mapping was made by a user, or by the Lambda - /// service.

    - #[serde(rename = "StateTransitionReason")] - #[serde(default)] - pub state_transition_reason: std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, - ///

    The name of the Kafka topic.

    - #[serde(rename = "Topics")] - #[serde(default)] - pub topics: std::option::Option>, - ///

    - /// (MQ) The name of the Amazon MQ broker destination queue to consume. - ///

    - #[serde(rename = "Queues")] - #[serde(default)] - pub queues: std::option::Option>, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - #[serde(rename = "SourceAccessConfigurations")] - #[serde(default)] - pub source_access_configurations: - std::option::Option>, - ///

    The Self-Managed Apache Kafka cluster for your event source.

    - #[serde(rename = "SelfManagedEventSource")] - #[serde(default)] - pub self_managed_event_source: std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRecordAgeInSeconds")] - #[serde(default)] - pub maximum_record_age_in_seconds: std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry. The default value is false.

    - #[serde(rename = "BisectBatchOnFunctionError")] - #[serde(default)] - pub bisect_batch_on_function_error: std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - #[serde(rename = "TumblingWindowInSeconds")] - #[serde(default)] - pub tumbling_window_in_seconds: std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - #[serde(rename = "FunctionResponseTypes")] - #[serde(default)] - pub function_response_types: - std::option::Option>, -} -impl std::fmt::Debug for DeleteEventSourceMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteEventSourceMappingOutputBody"); - formatter.field("uuid", &self.uuid); - formatter.field("starting_position", &self.starting_position); - formatter.field( - "starting_position_timestamp", - &self.starting_position_timestamp, - ); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field("event_source_arn", &self.event_source_arn); - formatter.field("function_arn", &self.function_arn); - formatter.field("last_modified", &self.last_modified); - formatter.field("last_processing_result", &self.last_processing_result); - formatter.field("state", &self.state); - formatter.field("state_transition_reason", &self.state_transition_reason); - formatter.field("destination_config", &self.destination_config); - formatter.field("topics", &self.topics); - formatter.field("queues", &self.queues); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field("self_managed_event_source", &self.self_managed_event_source); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAccountSettingsOutputBody { - ///

    Limits that are related to concurrency and code storage.

    - #[serde(rename = "AccountLimit")] - #[serde(default)] - pub account_limit: std::option::Option, - ///

    The number of functions and amount of storage in use.

    - #[serde(rename = "AccountUsage")] - #[serde(default)] - pub account_usage: std::option::Option, -} -impl std::fmt::Debug for GetAccountSettingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAccountSettingsOutputBody"); - formatter.field("account_limit", &self.account_limit); - formatter.field("account_usage", &self.account_usage); - formatter.finish() - } -} - -///

    Provides configuration information about a Lambda function alias.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAliasOutputBody { - ///

    The Amazon Resource Name (ARN) of the alias.

    - #[serde(rename = "AliasArn")] - #[serde(default)] - pub alias_arn: std::option::Option, - ///

    The name of the alias.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The function version that the alias invokes.

    - #[serde(rename = "FunctionVersion")] - #[serde(default)] - pub function_version: std::option::Option, - ///

    A description of the alias.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The routing - /// configuration of the alias.

    - #[serde(rename = "RoutingConfig")] - #[serde(default)] - pub routing_config: std::option::Option, - ///

    A unique identifier that changes when you update the alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for GetAliasOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAliasOutputBody"); - formatter.field("alias_arn", &self.alias_arn); - formatter.field("name", &self.name); - formatter.field("function_version", &self.function_version); - formatter.field("description", &self.description); - formatter.field("routing_config", &self.routing_config); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCodeSigningConfigOutputBody { - ///

    The code signing configuration

    - #[serde(rename = "CodeSigningConfig")] - #[serde(default)] - pub code_signing_config: std::option::Option, -} -impl std::fmt::Debug for GetCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCodeSigningConfigOutputBody"); - formatter.field("code_signing_config", &self.code_signing_config); - formatter.finish() - } -} - -///

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetEventSourceMappingOutputBody { - ///

    The identifier of the event source mapping.

    - #[serde(rename = "UUID")] - #[serde(default)] - pub uuid: std::option::Option, - ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams - /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - #[serde(rename = "StartingPosition")] - #[serde(default)] - pub starting_position: std::option::Option, - ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start - /// reading.

    - #[serde(rename = "StartingPositionTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub starting_position_timestamp: std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - #[serde(rename = "BatchSize")] - #[serde(default)] - pub batch_size: std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    - #[serde(rename = "MaximumBatchingWindowInSeconds")] - #[serde(default)] - pub maximum_batching_window_in_seconds: std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently. The default value is 1.

    - #[serde(rename = "ParallelizationFactor")] - #[serde(default)] - pub parallelization_factor: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the event source.

    - #[serde(rename = "EventSourceArn")] - #[serde(default)] - pub event_source_arn: std::option::Option, - ///

    The ARN of the Lambda function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The date that the event source mapping was last updated, or its state changed.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The result of the last AWS Lambda invocation of your Lambda function.

    - #[serde(rename = "LastProcessingResult")] - #[serde(default)] - pub last_processing_result: std::option::Option, - ///

    The state of the event source mapping. It can be one of the following: Creating, - /// Enabling, Enabled, Disabling, Disabled, - /// Updating, or Deleting.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    Indicates whether the last change to the event source mapping was made by a user, or by the Lambda - /// service.

    - #[serde(rename = "StateTransitionReason")] - #[serde(default)] - pub state_transition_reason: std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, - ///

    The name of the Kafka topic.

    - #[serde(rename = "Topics")] - #[serde(default)] - pub topics: std::option::Option>, - ///

    - /// (MQ) The name of the Amazon MQ broker destination queue to consume. - ///

    - #[serde(rename = "Queues")] - #[serde(default)] - pub queues: std::option::Option>, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - #[serde(rename = "SourceAccessConfigurations")] - #[serde(default)] - pub source_access_configurations: - std::option::Option>, - ///

    The Self-Managed Apache Kafka cluster for your event source.

    - #[serde(rename = "SelfManagedEventSource")] - #[serde(default)] - pub self_managed_event_source: std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRecordAgeInSeconds")] - #[serde(default)] - pub maximum_record_age_in_seconds: std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry. The default value is false.

    - #[serde(rename = "BisectBatchOnFunctionError")] - #[serde(default)] - pub bisect_batch_on_function_error: std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - #[serde(rename = "TumblingWindowInSeconds")] - #[serde(default)] - pub tumbling_window_in_seconds: std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - #[serde(rename = "FunctionResponseTypes")] - #[serde(default)] - pub function_response_types: - std::option::Option>, -} -impl std::fmt::Debug for GetEventSourceMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetEventSourceMappingOutputBody"); - formatter.field("uuid", &self.uuid); - formatter.field("starting_position", &self.starting_position); - formatter.field( - "starting_position_timestamp", - &self.starting_position_timestamp, - ); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field("event_source_arn", &self.event_source_arn); - formatter.field("function_arn", &self.function_arn); - formatter.field("last_modified", &self.last_modified); - formatter.field("last_processing_result", &self.last_processing_result); - formatter.field("state", &self.state); - formatter.field("state_transition_reason", &self.state_transition_reason); - formatter.field("destination_config", &self.destination_config); - formatter.field("topics", &self.topics); - formatter.field("queues", &self.queues); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field("self_managed_event_source", &self.self_managed_event_source); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetFunctionOutputBody { - ///

    The configuration of the function or version.

    - #[serde(rename = "Configuration")] - #[serde(default)] - pub configuration: std::option::Option, - ///

    The deployment package of the function or version.

    - #[serde(rename = "Code")] - #[serde(default)] - pub code: std::option::Option, - ///

    The function's tags.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: - std::option::Option>, - ///

    The function's reserved - /// concurrency.

    - #[serde(rename = "Concurrency")] - #[serde(default)] - pub concurrency: std::option::Option, -} -impl std::fmt::Debug for GetFunctionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetFunctionOutputBody"); - formatter.field("configuration", &self.configuration); - formatter.field("code", &self.code); - formatter.field("tags", &self.tags); - formatter.field("concurrency", &self.concurrency); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetFunctionCodeSigningConfigOutputBody { - ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - #[serde(rename = "CodeSigningConfigArn")] - #[serde(default)] - pub code_signing_config_arn: std::option::Option, - ///

    The name of the Lambda function.

    - ///

    - /// Name formats - ///

    - ///
      - ///
    • - ///

      - /// Function name - MyFunction.

      - ///
    • - ///
    • - ///

      - /// Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

      - ///
    • - ///
    • - ///

      - /// Partial ARN - 123456789012:function:MyFunction.

      - ///
    • - ///
    - ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 - /// characters in length.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, -} -impl std::fmt::Debug for GetFunctionCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetFunctionCodeSigningConfigOutputBody"); - formatter.field("code_signing_config_arn", &self.code_signing_config_arn); - formatter.field("function_name", &self.function_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetFunctionConcurrencyOutputBody { - ///

    The number of simultaneous executions that are reserved for the function.

    - #[serde(rename = "ReservedConcurrentExecutions")] - #[serde(default)] - pub reserved_concurrent_executions: std::option::Option, -} -impl std::fmt::Debug for GetFunctionConcurrencyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetFunctionConcurrencyOutputBody"); - formatter.field( - "reserved_concurrent_executions", - &self.reserved_concurrent_executions, - ); - formatter.finish() - } -} - -///

    Details about a function's configuration.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetFunctionConfigurationOutputBody { - ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, - ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] - pub runtime: std::option::Option, - ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] - pub role: std::option::Option, - ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] - pub handler: std::option::Option, - ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] - pub code_size: i64, - ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] - pub timeout: std::option::Option, - ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] - pub memory_size: std::option::Option, - ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] - pub code_sha256: std::option::Option, - ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] - pub dead_letter_config: std::option::Option, - ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: std::option::Option, - ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've - /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] - pub kms_key_arn: std::option::Option, - ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] - pub tracing_config: std::option::Option, - ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] - pub master_arn: std::option::Option, - ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, - ///

    The function's - /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, - ///

    The current state of the function. When the state is Inactive, you can reactivate the function by - /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] - pub state_reason: std::option::Option, - ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or - /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] - pub state_reason_code: std::option::Option, - ///

    The status of the last update that was performed on the function. This is first set to Successful - /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] - pub last_update_status: std::option::Option, - ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] - pub last_update_status_reason: std::option::Option, - ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] - pub last_update_status_reason_code: - std::option::Option, - ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] - pub file_system_configs: std::option::Option>, - ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] - pub package_type: std::option::Option, - ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] - pub image_config_response: std::option::Option, - ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] - pub signing_profile_version_arn: std::option::Option, - ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] - pub signing_job_arn: std::option::Option, -} -impl std::fmt::Debug for GetFunctionConfigurationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetFunctionConfigurationOutputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("function_arn", &self.function_arn); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code_size", &self.code_size); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("last_modified", &self.last_modified); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("version", &self.version); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("master_arn", &self.master_arn); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("state", &self.state); - formatter.field("state_reason", &self.state_reason); - formatter.field("state_reason_code", &self.state_reason_code); - formatter.field("last_update_status", &self.last_update_status); - formatter.field("last_update_status_reason", &self.last_update_status_reason); - formatter.field( - "last_update_status_reason_code", - &self.last_update_status_reason_code, - ); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("package_type", &self.package_type); - formatter.field("image_config_response", &self.image_config_response); - formatter.field( - "signing_profile_version_arn", - &self.signing_profile_version_arn, - ); - formatter.field("signing_job_arn", &self.signing_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetFunctionEventInvokeConfigOutputBody { - ///

    The date and time that the configuration was last updated.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The maximum number of times to retry when the function returns an error.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    The maximum age of a request that Lambda sends to a function for processing.

    - #[serde(rename = "MaximumEventAgeInSeconds")] - #[serde(default)] - pub maximum_event_age_in_seconds: std::option::Option, - ///

    A destination for events after they have been sent to a function for processing.

    - ///

    - /// Destinations - ///

    - ///
      - ///
    • - ///

      - /// Function - The Amazon Resource Name (ARN) of a Lambda function.

      - ///
    • - ///
    • - ///

      - /// Queue - The ARN of an SQS queue.

      - ///
    • - ///
    • - ///

      - /// Topic - The ARN of an SNS topic.

      - ///
    • - ///
    • - ///

      - /// Event Bus - The ARN of an Amazon EventBridge event bus.

      - ///
    • - ///
    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, -} -impl std::fmt::Debug for GetFunctionEventInvokeConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetFunctionEventInvokeConfigOutputBody"); - formatter.field("last_modified", &self.last_modified); - formatter.field("function_arn", &self.function_arn); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "maximum_event_age_in_seconds", - &self.maximum_event_age_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLayerVersionOutputBody { - ///

    Details about the layer version.

    - #[serde(rename = "Content")] - #[serde(default)] - pub content: std::option::Option, - ///

    The ARN of the layer.

    - #[serde(rename = "LayerArn")] - #[serde(default)] - pub layer_arn: std::option::Option, - ///

    The ARN of the layer version.

    - #[serde(rename = "LayerVersionArn")] - #[serde(default)] - pub layer_version_arn: std::option::Option, - ///

    The description of the version.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "CreatedDate")] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: i64, - ///

    The layer's compatible runtimes.

    - #[serde(rename = "CompatibleRuntimes")] - #[serde(default)] - pub compatible_runtimes: std::option::Option>, - ///

    The layer's software license.

    - #[serde(rename = "LicenseInfo")] - #[serde(default)] - pub license_info: std::option::Option, -} -impl std::fmt::Debug for GetLayerVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLayerVersionOutputBody"); - formatter.field("content", &self.content); - formatter.field("layer_arn", &self.layer_arn); - formatter.field("layer_version_arn", &self.layer_version_arn); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("compatible_runtimes", &self.compatible_runtimes); - formatter.field("license_info", &self.license_info); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLayerVersionByArnOutputBody { - ///

    Details about the layer version.

    - #[serde(rename = "Content")] - #[serde(default)] - pub content: std::option::Option, - ///

    The ARN of the layer.

    - #[serde(rename = "LayerArn")] - #[serde(default)] - pub layer_arn: std::option::Option, - ///

    The ARN of the layer version.

    - #[serde(rename = "LayerVersionArn")] - #[serde(default)] - pub layer_version_arn: std::option::Option, - ///

    The description of the version.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "CreatedDate")] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: i64, - ///

    The layer's compatible runtimes.

    - #[serde(rename = "CompatibleRuntimes")] - #[serde(default)] - pub compatible_runtimes: std::option::Option>, - ///

    The layer's software license.

    - #[serde(rename = "LicenseInfo")] - #[serde(default)] - pub license_info: std::option::Option, -} -impl std::fmt::Debug for GetLayerVersionByArnOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLayerVersionByArnOutputBody"); - formatter.field("content", &self.content); - formatter.field("layer_arn", &self.layer_arn); - formatter.field("layer_version_arn", &self.layer_version_arn); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("compatible_runtimes", &self.compatible_runtimes); - formatter.field("license_info", &self.license_info); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLayerVersionPolicyOutputBody { - ///

    The policy document.

    - #[serde(rename = "Policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    A unique identifier for the current revision of the policy.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for GetLayerVersionPolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLayerVersionPolicyOutputBody"); - formatter.field("policy", &self.policy); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPolicyOutputBody { - ///

    The resource-based policy.

    - #[serde(rename = "Policy")] - #[serde(default)] - pub policy: std::option::Option, - ///

    A unique identifier for the current revision of the policy.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for GetPolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPolicyOutputBody"); - formatter.field("policy", &self.policy); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetProvisionedConcurrencyConfigOutputBody { - ///

    The amount of provisioned concurrency requested.

    - #[serde(rename = "RequestedProvisionedConcurrentExecutions")] - #[serde(default)] - pub requested_provisioned_concurrent_executions: std::option::Option, - ///

    The amount of provisioned concurrency available.

    - #[serde(rename = "AvailableProvisionedConcurrentExecutions")] - #[serde(default)] - pub available_provisioned_concurrent_executions: std::option::Option, - ///

    The amount of provisioned concurrency allocated.

    - #[serde(rename = "AllocatedProvisionedConcurrentExecutions")] - #[serde(default)] - pub allocated_provisioned_concurrent_executions: std::option::Option, - ///

    The status of the allocation process.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    For failed allocations, the reason that provisioned concurrency could not be allocated.

    - #[serde(rename = "StatusReason")] - #[serde(default)] - pub status_reason: std::option::Option, - ///

    The date and time that a user last updated the configuration, in ISO 8601 format.

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, -} -impl std::fmt::Debug for GetProvisionedConcurrencyConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetProvisionedConcurrencyConfigOutputBody"); - formatter.field( - "requested_provisioned_concurrent_executions", - &self.requested_provisioned_concurrent_executions, - ); - formatter.field( - "available_provisioned_concurrent_executions", - &self.available_provisioned_concurrent_executions, - ); - formatter.field( - "allocated_provisioned_concurrent_executions", - &self.allocated_provisioned_concurrent_executions, - ); - formatter.field("status", &self.status); - formatter.field("status_reason", &self.status_reason); - formatter.field("last_modified", &self.last_modified); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAliasesOutputBody { - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of aliases.

    - #[serde(rename = "Aliases")] - #[serde(default)] - pub aliases: std::option::Option>, -} -impl std::fmt::Debug for ListAliasesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAliasesOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("aliases", &self.aliases); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCodeSigningConfigsOutputBody { - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    The code signing configurations

    - #[serde(rename = "CodeSigningConfigs")] - #[serde(default)] - pub code_signing_configs: std::option::Option>, -} -impl std::fmt::Debug for ListCodeSigningConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCodeSigningConfigsOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("code_signing_configs", &self.code_signing_configs); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEventSourceMappingsOutputBody { - ///

    A pagination token that's returned when the response doesn't contain all event source mappings.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of event source mappings.

    - #[serde(rename = "EventSourceMappings")] - #[serde(default)] - pub event_source_mappings: - std::option::Option>, -} -impl std::fmt::Debug for ListEventSourceMappingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEventSourceMappingsOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("event_source_mappings", &self.event_source_mappings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFunctionEventInvokeConfigsOutputBody { - ///

    A list of configurations.

    - #[serde(rename = "FunctionEventInvokeConfigs")] - #[serde(default)] - pub function_event_invoke_configs: - std::option::Option>, - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, -} -impl std::fmt::Debug for ListFunctionEventInvokeConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFunctionEventInvokeConfigsOutputBody"); - formatter.field( - "function_event_invoke_configs", - &self.function_event_invoke_configs, - ); - formatter.field("next_marker", &self.next_marker); - formatter.finish() - } -} - -///

    A list of Lambda functions.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFunctionsOutputBody { - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of Lambda functions.

    - #[serde(rename = "Functions")] - #[serde(default)] - pub functions: std::option::Option>, -} -impl std::fmt::Debug for ListFunctionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFunctionsOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("functions", &self.functions); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFunctionsByCodeSigningConfigOutputBody { - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    The function ARNs.

    - #[serde(rename = "FunctionArns")] - #[serde(default)] - pub function_arns: std::option::Option>, -} -impl std::fmt::Debug for ListFunctionsByCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFunctionsByCodeSigningConfigOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("function_arns", &self.function_arns); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLayersOutputBody { - ///

    A pagination token returned when the response doesn't contain all layers.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of function layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, -} -impl std::fmt::Debug for ListLayersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLayersOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("layers", &self.layers); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLayerVersionsOutputBody { - ///

    A pagination token returned when the response doesn't contain all versions.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of versions.

    - #[serde(rename = "LayerVersions")] - #[serde(default)] - pub layer_versions: std::option::Option>, -} -impl std::fmt::Debug for ListLayerVersionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLayerVersionsOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("layer_versions", &self.layer_versions); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListProvisionedConcurrencyConfigsOutputBody { - ///

    A list of provisioned concurrency configurations.

    - #[serde(rename = "ProvisionedConcurrencyConfigs")] - #[serde(default)] - pub provisioned_concurrency_configs: - std::option::Option>, - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, -} -impl std::fmt::Debug for ListProvisionedConcurrencyConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListProvisionedConcurrencyConfigsOutputBody"); - formatter.field( - "provisioned_concurrency_configs", - &self.provisioned_concurrency_configs, - ); - formatter.field("next_marker", &self.next_marker); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsOutputBody { - ///

    The function's tags.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ListTagsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListVersionsByFunctionOutputBody { - ///

    The pagination token that's included if more results are available.

    - #[serde(rename = "NextMarker")] - #[serde(default)] - pub next_marker: std::option::Option, - ///

    A list of Lambda function versions.

    - #[serde(rename = "Versions")] - #[serde(default)] - pub versions: std::option::Option>, -} -impl std::fmt::Debug for ListVersionsByFunctionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListVersionsByFunctionOutputBody"); - formatter.field("next_marker", &self.next_marker); - formatter.field("versions", &self.versions); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PublishLayerVersionOutputBody { - ///

    Details about the layer version.

    - #[serde(rename = "Content")] - #[serde(default)] - pub content: std::option::Option, - ///

    The ARN of the layer.

    - #[serde(rename = "LayerArn")] - #[serde(default)] - pub layer_arn: std::option::Option, - ///

    The ARN of the layer version.

    - #[serde(rename = "LayerVersionArn")] - #[serde(default)] - pub layer_version_arn: std::option::Option, - ///

    The description of the version.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "CreatedDate")] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: i64, - ///

    The layer's compatible runtimes.

    - #[serde(rename = "CompatibleRuntimes")] - #[serde(default)] - pub compatible_runtimes: std::option::Option>, - ///

    The layer's software license.

    - #[serde(rename = "LicenseInfo")] - #[serde(default)] - pub license_info: std::option::Option, -} -impl std::fmt::Debug for PublishLayerVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublishLayerVersionOutputBody"); - formatter.field("content", &self.content); - formatter.field("layer_arn", &self.layer_arn); - formatter.field("layer_version_arn", &self.layer_version_arn); - formatter.field("description", &self.description); - formatter.field("created_date", &self.created_date); - formatter.field("version", &self.version); - formatter.field("compatible_runtimes", &self.compatible_runtimes); - formatter.field("license_info", &self.license_info); - formatter.finish() - } -} - -///

    Details about a function's configuration.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PublishVersionOutputBody { - ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, - ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] - pub runtime: std::option::Option, - ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] - pub role: std::option::Option, - ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] - pub handler: std::option::Option, - ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] - pub code_size: i64, - ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] - pub timeout: std::option::Option, - ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] - pub memory_size: std::option::Option, - ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] - pub code_sha256: std::option::Option, - ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] - pub dead_letter_config: std::option::Option, - ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: std::option::Option, - ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've - /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] - pub kms_key_arn: std::option::Option, - ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] - pub tracing_config: std::option::Option, - ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] - pub master_arn: std::option::Option, - ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, - ///

    The function's - /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, - ///

    The current state of the function. When the state is Inactive, you can reactivate the function by - /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] - pub state_reason: std::option::Option, - ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or - /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] - pub state_reason_code: std::option::Option, - ///

    The status of the last update that was performed on the function. This is first set to Successful - /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] - pub last_update_status: std::option::Option, - ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] - pub last_update_status_reason: std::option::Option, - ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] - pub last_update_status_reason_code: - std::option::Option, - ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] - pub file_system_configs: std::option::Option>, - ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] - pub package_type: std::option::Option, - ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] - pub image_config_response: std::option::Option, - ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] - pub signing_profile_version_arn: std::option::Option, - ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] - pub signing_job_arn: std::option::Option, -} -impl std::fmt::Debug for PublishVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublishVersionOutputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("function_arn", &self.function_arn); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code_size", &self.code_size); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("last_modified", &self.last_modified); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("version", &self.version); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("master_arn", &self.master_arn); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("state", &self.state); - formatter.field("state_reason", &self.state_reason); - formatter.field("state_reason_code", &self.state_reason_code); - formatter.field("last_update_status", &self.last_update_status); - formatter.field("last_update_status_reason", &self.last_update_status_reason); - formatter.field( - "last_update_status_reason_code", - &self.last_update_status_reason_code, - ); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("package_type", &self.package_type); - formatter.field("image_config_response", &self.image_config_response); - formatter.field( - "signing_profile_version_arn", - &self.signing_profile_version_arn, - ); - formatter.field("signing_job_arn", &self.signing_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionCodeSigningConfigOutputBody { - ///

    The The Amazon Resource Name (ARN) of the code signing configuration.

    - #[serde(rename = "CodeSigningConfigArn")] - #[serde(default)] - pub code_signing_config_arn: std::option::Option, - ///

    The name of the Lambda function.

    - ///

    - /// Name formats - ///

    - ///
      - ///
    • - ///

      - /// Function name - MyFunction.

      - ///
    • - ///
    • - ///

      - /// Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

      - ///
    • - ///
    • - ///

      - /// Partial ARN - 123456789012:function:MyFunction.

      - ///
    • - ///
    - ///

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 - /// characters in length.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, -} -impl std::fmt::Debug for PutFunctionCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionCodeSigningConfigOutputBody"); - formatter.field("code_signing_config_arn", &self.code_signing_config_arn); - formatter.field("function_name", &self.function_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionConcurrencyOutputBody { - ///

    The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.

    - #[serde(rename = "ReservedConcurrentExecutions")] - #[serde(default)] - pub reserved_concurrent_executions: std::option::Option, -} -impl std::fmt::Debug for PutFunctionConcurrencyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionConcurrencyOutputBody"); - formatter.field( - "reserved_concurrent_executions", - &self.reserved_concurrent_executions, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutFunctionEventInvokeConfigOutputBody { - ///

    The date and time that the configuration was last updated.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The maximum number of times to retry when the function returns an error.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    The maximum age of a request that Lambda sends to a function for processing.

    - #[serde(rename = "MaximumEventAgeInSeconds")] - #[serde(default)] - pub maximum_event_age_in_seconds: std::option::Option, - ///

    A destination for events after they have been sent to a function for processing.

    - ///

    - /// Destinations - ///

    - ///
      - ///
    • - ///

      - /// Function - The Amazon Resource Name (ARN) of a Lambda function.

      - ///
    • - ///
    • - ///

      - /// Queue - The ARN of an SQS queue.

      - ///
    • - ///
    • - ///

      - /// Topic - The ARN of an SNS topic.

      - ///
    • - ///
    • - ///

      - /// Event Bus - The ARN of an Amazon EventBridge event bus.

      - ///
    • - ///
    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, -} -impl std::fmt::Debug for PutFunctionEventInvokeConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutFunctionEventInvokeConfigOutputBody"); - formatter.field("last_modified", &self.last_modified); - formatter.field("function_arn", &self.function_arn); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "maximum_event_age_in_seconds", - &self.maximum_event_age_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutProvisionedConcurrencyConfigOutputBody { - ///

    The amount of provisioned concurrency requested.

    - #[serde(rename = "RequestedProvisionedConcurrentExecutions")] - #[serde(default)] - pub requested_provisioned_concurrent_executions: std::option::Option, - ///

    The amount of provisioned concurrency available.

    - #[serde(rename = "AvailableProvisionedConcurrentExecutions")] - #[serde(default)] - pub available_provisioned_concurrent_executions: std::option::Option, - ///

    The amount of provisioned concurrency allocated.

    - #[serde(rename = "AllocatedProvisionedConcurrentExecutions")] - #[serde(default)] - pub allocated_provisioned_concurrent_executions: std::option::Option, - ///

    The status of the allocation process.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    For failed allocations, the reason that provisioned concurrency could not be allocated.

    - #[serde(rename = "StatusReason")] - #[serde(default)] - pub status_reason: std::option::Option, - ///

    The date and time that a user last updated the configuration, in ISO 8601 format.

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, -} -impl std::fmt::Debug for PutProvisionedConcurrencyConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutProvisionedConcurrencyConfigOutputBody"); - formatter.field( - "requested_provisioned_concurrent_executions", - &self.requested_provisioned_concurrent_executions, - ); - formatter.field( - "available_provisioned_concurrent_executions", - &self.available_provisioned_concurrent_executions, - ); - formatter.field( - "allocated_provisioned_concurrent_executions", - &self.allocated_provisioned_concurrent_executions, - ); - formatter.field("status", &self.status); - formatter.field("status_reason", &self.status_reason); - formatter.field("last_modified", &self.last_modified); - formatter.finish() - } -} - -///

    Provides configuration information about a Lambda function alias.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAliasOutputBody { - ///

    The Amazon Resource Name (ARN) of the alias.

    - #[serde(rename = "AliasArn")] - #[serde(default)] - pub alias_arn: std::option::Option, - ///

    The name of the alias.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The function version that the alias invokes.

    - #[serde(rename = "FunctionVersion")] - #[serde(default)] - pub function_version: std::option::Option, - ///

    A description of the alias.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The routing - /// configuration of the alias.

    - #[serde(rename = "RoutingConfig")] - #[serde(default)] - pub routing_config: std::option::Option, - ///

    A unique identifier that changes when you update the alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, -} -impl std::fmt::Debug for UpdateAliasOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAliasOutputBody"); - formatter.field("alias_arn", &self.alias_arn); - formatter.field("name", &self.name); - formatter.field("function_version", &self.function_version); - formatter.field("description", &self.description); - formatter.field("routing_config", &self.routing_config); - formatter.field("revision_id", &self.revision_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCodeSigningConfigOutputBody { - ///

    The code signing configuration

    - #[serde(rename = "CodeSigningConfig")] - #[serde(default)] - pub code_signing_config: std::option::Option, -} -impl std::fmt::Debug for UpdateCodeSigningConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCodeSigningConfigOutputBody"); - formatter.field("code_signing_config", &self.code_signing_config); - formatter.finish() - } -} - -///

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEventSourceMappingOutputBody { - ///

    The identifier of the event source mapping.

    - #[serde(rename = "UUID")] - #[serde(default)] - pub uuid: std::option::Option, - ///

    The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams - /// sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

    - #[serde(rename = "StartingPosition")] - #[serde(default)] - pub starting_position: std::option::Option, - ///

    With StartingPosition set to AT_TIMESTAMP, the time from which to start - /// reading.

    - #[serde(rename = "StartingPositionTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub starting_position_timestamp: std::option::Option, - ///

    The maximum number of items to retrieve in a single batch.

    - #[serde(rename = "BatchSize")] - #[serde(default)] - pub batch_size: std::option::Option, - ///

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    - #[serde(rename = "MaximumBatchingWindowInSeconds")] - #[serde(default)] - pub maximum_batching_window_in_seconds: std::option::Option, - ///

    (Streams) The number of batches to process from each shard concurrently. The default value is 1.

    - #[serde(rename = "ParallelizationFactor")] - #[serde(default)] - pub parallelization_factor: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the event source.

    - #[serde(rename = "EventSourceArn")] - #[serde(default)] - pub event_source_arn: std::option::Option, - ///

    The ARN of the Lambda function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The date that the event source mapping was last updated, or its state changed.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The result of the last AWS Lambda invocation of your Lambda function.

    - #[serde(rename = "LastProcessingResult")] - #[serde(default)] - pub last_processing_result: std::option::Option, - ///

    The state of the event source mapping. It can be one of the following: Creating, - /// Enabling, Enabled, Disabling, Disabled, - /// Updating, or Deleting.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    Indicates whether the last change to the event source mapping was made by a user, or by the Lambda - /// service.

    - #[serde(rename = "StateTransitionReason")] - #[serde(default)] - pub state_transition_reason: std::option::Option, - ///

    (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, - ///

    The name of the Kafka topic.

    - #[serde(rename = "Topics")] - #[serde(default)] - pub topics: std::option::Option>, - ///

    - /// (MQ) The name of the Amazon MQ broker destination queue to consume. - ///

    - #[serde(rename = "Queues")] - #[serde(default)] - pub queues: std::option::Option>, - ///

    An array of the authentication protocol, or the VPC components to secure your event source.

    - #[serde(rename = "SourceAccessConfigurations")] - #[serde(default)] - pub source_access_configurations: - std::option::Option>, - ///

    The Self-Managed Apache Kafka cluster for your event source.

    - #[serde(rename = "SelfManagedEventSource")] - #[serde(default)] - pub self_managed_event_source: std::option::Option, - ///

    (Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRecordAgeInSeconds")] - #[serde(default)] - pub maximum_record_age_in_seconds: std::option::Option, - ///

    (Streams) If the function returns an error, split the batch in two and retry. The default value is false.

    - #[serde(rename = "BisectBatchOnFunctionError")] - #[serde(default)] - pub bisect_batch_on_function_error: std::option::Option, - ///

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    (Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

    - #[serde(rename = "TumblingWindowInSeconds")] - #[serde(default)] - pub tumbling_window_in_seconds: std::option::Option, - ///

    (Streams) A list of current response type enums applied to the event source mapping.

    - #[serde(rename = "FunctionResponseTypes")] - #[serde(default)] - pub function_response_types: - std::option::Option>, -} -impl std::fmt::Debug for UpdateEventSourceMappingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEventSourceMappingOutputBody"); - formatter.field("uuid", &self.uuid); - formatter.field("starting_position", &self.starting_position); - formatter.field( - "starting_position_timestamp", - &self.starting_position_timestamp, - ); - formatter.field("batch_size", &self.batch_size); - formatter.field( - "maximum_batching_window_in_seconds", - &self.maximum_batching_window_in_seconds, - ); - formatter.field("parallelization_factor", &self.parallelization_factor); - formatter.field("event_source_arn", &self.event_source_arn); - formatter.field("function_arn", &self.function_arn); - formatter.field("last_modified", &self.last_modified); - formatter.field("last_processing_result", &self.last_processing_result); - formatter.field("state", &self.state); - formatter.field("state_transition_reason", &self.state_transition_reason); - formatter.field("destination_config", &self.destination_config); - formatter.field("topics", &self.topics); - formatter.field("queues", &self.queues); - formatter.field( - "source_access_configurations", - &self.source_access_configurations, - ); - formatter.field("self_managed_event_source", &self.self_managed_event_source); - formatter.field( - "maximum_record_age_in_seconds", - &self.maximum_record_age_in_seconds, - ); - formatter.field( - "bisect_batch_on_function_error", - &self.bisect_batch_on_function_error, - ); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "tumbling_window_in_seconds", - &self.tumbling_window_in_seconds, - ); - formatter.field("function_response_types", &self.function_response_types); - formatter.finish() - } -} - -///

    Details about a function's configuration.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionCodeOutputBody { - ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, - ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] - pub runtime: std::option::Option, - ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] - pub role: std::option::Option, - ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] - pub handler: std::option::Option, - ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] - pub code_size: i64, - ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] - pub timeout: std::option::Option, - ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] - pub memory_size: std::option::Option, - ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] - pub code_sha256: std::option::Option, - ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] - pub dead_letter_config: std::option::Option, - ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: std::option::Option, - ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've - /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] - pub kms_key_arn: std::option::Option, - ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] - pub tracing_config: std::option::Option, - ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] - pub master_arn: std::option::Option, - ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, - ///

    The function's - /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, - ///

    The current state of the function. When the state is Inactive, you can reactivate the function by - /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] - pub state_reason: std::option::Option, - ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or - /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] - pub state_reason_code: std::option::Option, - ///

    The status of the last update that was performed on the function. This is first set to Successful - /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] - pub last_update_status: std::option::Option, - ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] - pub last_update_status_reason: std::option::Option, - ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] - pub last_update_status_reason_code: - std::option::Option, - ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] - pub file_system_configs: std::option::Option>, - ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] - pub package_type: std::option::Option, - ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] - pub image_config_response: std::option::Option, - ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] - pub signing_profile_version_arn: std::option::Option, - ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] - pub signing_job_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateFunctionCodeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionCodeOutputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("function_arn", &self.function_arn); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code_size", &self.code_size); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("last_modified", &self.last_modified); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("version", &self.version); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("master_arn", &self.master_arn); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("state", &self.state); - formatter.field("state_reason", &self.state_reason); - formatter.field("state_reason_code", &self.state_reason_code); - formatter.field("last_update_status", &self.last_update_status); - formatter.field("last_update_status_reason", &self.last_update_status_reason); - formatter.field( - "last_update_status_reason_code", - &self.last_update_status_reason_code, - ); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("package_type", &self.package_type); - formatter.field("image_config_response", &self.image_config_response); - formatter.field( - "signing_profile_version_arn", - &self.signing_profile_version_arn, - ); - formatter.field("signing_job_arn", &self.signing_job_arn); - formatter.finish() - } -} - -///

    Details about a function's configuration.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionConfigurationOutputBody { - ///

    The name of the function.

    - #[serde(rename = "FunctionName")] - #[serde(default)] - pub function_name: std::option::Option, - ///

    The function's Amazon Resource Name (ARN).

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The runtime environment for the Lambda function.

    - #[serde(rename = "Runtime")] - #[serde(default)] - pub runtime: std::option::Option, - ///

    The function's execution role.

    - #[serde(rename = "Role")] - #[serde(default)] - pub role: std::option::Option, - ///

    The function that Lambda calls to begin executing your function.

    - #[serde(rename = "Handler")] - #[serde(default)] - pub handler: std::option::Option, - ///

    The size of the function's deployment package, in bytes.

    - #[serde(rename = "CodeSize")] - #[serde(default)] - pub code_size: i64, - ///

    The function's description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The amount of time in seconds that Lambda allows a function to run before stopping it.

    - #[serde(rename = "Timeout")] - #[serde(default)] - pub timeout: std::option::Option, - ///

    The amount of memory available to the function at runtime.

    - #[serde(rename = "MemorySize")] - #[serde(default)] - pub memory_size: std::option::Option, - ///

    The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    - #[serde(rename = "LastModified")] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The SHA256 hash of the function's deployment package.

    - #[serde(rename = "CodeSha256")] - #[serde(default)] - pub code_sha256: std::option::Option, - ///

    The version of the Lambda function.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, - ///

    The function's networking configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    The function's dead letter queue.

    - #[serde(rename = "DeadLetterConfig")] - #[serde(default)] - pub dead_letter_config: std::option::Option, - ///

    The function's environment variables.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: std::option::Option, - ///

    The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've - /// configured a customer managed CMK.

    - #[serde(rename = "KMSKeyArn")] - #[serde(default)] - pub kms_key_arn: std::option::Option, - ///

    The function's AWS X-Ray tracing configuration.

    - #[serde(rename = "TracingConfig")] - #[serde(default)] - pub tracing_config: std::option::Option, - ///

    For Lambda@Edge functions, the ARN of the master function.

    - #[serde(rename = "MasterArn")] - #[serde(default)] - pub master_arn: std::option::Option, - ///

    The latest updated revision of the function or alias.

    - #[serde(rename = "RevisionId")] - #[serde(default)] - pub revision_id: std::option::Option, - ///

    The function's - /// layers.

    - #[serde(rename = "Layers")] - #[serde(default)] - pub layers: std::option::Option>, - ///

    The current state of the function. When the state is Inactive, you can reactivate the function by - /// invoking it.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The reason for the function's current state.

    - #[serde(rename = "StateReason")] - #[serde(default)] - pub state_reason: std::option::Option, - ///

    The reason code for the function's current state. When the code is Creating, you can't invoke or - /// modify the function.

    - #[serde(rename = "StateReasonCode")] - #[serde(default)] - pub state_reason_code: std::option::Option, - ///

    The status of the last update that was performed on the function. This is first set to Successful - /// after function creation completes.

    - #[serde(rename = "LastUpdateStatus")] - #[serde(default)] - pub last_update_status: std::option::Option, - ///

    The reason for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReason")] - #[serde(default)] - pub last_update_status_reason: std::option::Option, - ///

    The reason code for the last update that was performed on the function.

    - #[serde(rename = "LastUpdateStatusReasonCode")] - #[serde(default)] - pub last_update_status_reason_code: - std::option::Option, - ///

    Connection settings for an Amazon EFS file system.

    - #[serde(rename = "FileSystemConfigs")] - #[serde(default)] - pub file_system_configs: std::option::Option>, - ///

    The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

    - #[serde(rename = "PackageType")] - #[serde(default)] - pub package_type: std::option::Option, - ///

    The function's image configuration values.

    - #[serde(rename = "ImageConfigResponse")] - #[serde(default)] - pub image_config_response: std::option::Option, - ///

    The ARN of the signing profile version.

    - #[serde(rename = "SigningProfileVersionArn")] - #[serde(default)] - pub signing_profile_version_arn: std::option::Option, - ///

    The ARN of the signing job.

    - #[serde(rename = "SigningJobArn")] - #[serde(default)] - pub signing_job_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateFunctionConfigurationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionConfigurationOutputBody"); - formatter.field("function_name", &self.function_name); - formatter.field("function_arn", &self.function_arn); - formatter.field("runtime", &self.runtime); - formatter.field("role", &self.role); - formatter.field("handler", &self.handler); - formatter.field("code_size", &self.code_size); - formatter.field("description", &self.description); - formatter.field("timeout", &self.timeout); - formatter.field("memory_size", &self.memory_size); - formatter.field("last_modified", &self.last_modified); - formatter.field("code_sha256", &self.code_sha256); - formatter.field("version", &self.version); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("dead_letter_config", &self.dead_letter_config); - formatter.field("environment", &self.environment); - formatter.field("kms_key_arn", &self.kms_key_arn); - formatter.field("tracing_config", &self.tracing_config); - formatter.field("master_arn", &self.master_arn); - formatter.field("revision_id", &self.revision_id); - formatter.field("layers", &self.layers); - formatter.field("state", &self.state); - formatter.field("state_reason", &self.state_reason); - formatter.field("state_reason_code", &self.state_reason_code); - formatter.field("last_update_status", &self.last_update_status); - formatter.field("last_update_status_reason", &self.last_update_status_reason); - formatter.field( - "last_update_status_reason_code", - &self.last_update_status_reason_code, - ); - formatter.field("file_system_configs", &self.file_system_configs); - formatter.field("package_type", &self.package_type); - formatter.field("image_config_response", &self.image_config_response); - formatter.field( - "signing_profile_version_arn", - &self.signing_profile_version_arn, - ); - formatter.field("signing_job_arn", &self.signing_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateFunctionEventInvokeConfigOutputBody { - ///

    The date and time that the configuration was last updated.

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the function.

    - #[serde(rename = "FunctionArn")] - #[serde(default)] - pub function_arn: std::option::Option, - ///

    The maximum number of times to retry when the function returns an error.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] - pub maximum_retry_attempts: std::option::Option, - ///

    The maximum age of a request that Lambda sends to a function for processing.

    - #[serde(rename = "MaximumEventAgeInSeconds")] - #[serde(default)] - pub maximum_event_age_in_seconds: std::option::Option, - ///

    A destination for events after they have been sent to a function for processing.

    - ///

    - /// Destinations - ///

    - ///
      - ///
    • - ///

      - /// Function - The Amazon Resource Name (ARN) of a Lambda function.

      - ///
    • - ///
    • - ///

      - /// Queue - The ARN of an SQS queue.

      - ///
    • - ///
    • - ///

      - /// Topic - The ARN of an SNS topic.

      - ///
    • - ///
    • - ///

      - /// Event Bus - The ARN of an Amazon EventBridge event bus.

      - ///
    • - ///
    - #[serde(rename = "DestinationConfig")] - #[serde(default)] - pub destination_config: std::option::Option, -} -impl std::fmt::Debug for UpdateFunctionEventInvokeConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateFunctionEventInvokeConfigOutputBody"); - formatter.field("last_modified", &self.last_modified); - formatter.field("function_arn", &self.function_arn); - formatter.field("maximum_retry_attempts", &self.maximum_retry_attempts); - formatter.field( - "maximum_event_age_in_seconds", - &self.maximum_event_age_in_seconds, - ); - formatter.field("destination_config", &self.destination_config); - formatter.finish() - } -} diff --git a/sdk/medialive/Cargo.toml b/sdk/medialive/Cargo.toml index 2cfe74621603..675d23196185 100644 --- a/sdk/medialive/Cargo.toml +++ b/sdk/medialive/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-medialive" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "API for AWS Elemental MediaLive" authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -22,9 +22,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.http] version = "0.2" [dependencies.aws-http] @@ -33,9 +30,6 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/medialive/src/aws_json_errors.rs b/sdk/medialive/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/medialive/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/medialive/src/error.rs b/sdk/medialive/src/error.rs index a10e1a0404ce..f4bd6e3238a6 100644 --- a/sdk/medialive/src/error.rs +++ b/sdk/medialive/src/error.rs @@ -8,30 +8,34 @@ pub struct AcceptInputDeviceTransferError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AcceptInputDeviceTransferErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AcceptInputDeviceTransferError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AcceptInputDeviceTransferErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::BadRequestError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::ConflictError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::NotFoundError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - AcceptInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::BadRequestException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::ConflictException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + AcceptInputDeviceTransferErrorKind::NotFoundException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + AcceptInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + _inner.fmt(f) + } AcceptInputDeviceTransferErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -80,73 +84,77 @@ impl AcceptInputDeviceTransferError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::BadGatewayError(_) + AcceptInputDeviceTransferErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::BadRequestError(_) + AcceptInputDeviceTransferErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::ConflictError(_) + AcceptInputDeviceTransferErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::ForbiddenError(_) + AcceptInputDeviceTransferErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::GatewayTimeoutError(_) + AcceptInputDeviceTransferErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::InternalServerErrorError(_) + AcceptInputDeviceTransferErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::NotFoundError(_) + AcceptInputDeviceTransferErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::TooManyRequestsError(_) + AcceptInputDeviceTransferErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - AcceptInputDeviceTransferErrorKind::UnprocessableEntityError(_) + AcceptInputDeviceTransferErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for AcceptInputDeviceTransferError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AcceptInputDeviceTransferErrorKind::BadGatewayError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::BadRequestError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::ConflictError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::ForbiddenError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::NotFoundError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => Some(_inner), - AcceptInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::BadGatewayException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::BadRequestException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::ConflictException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::ForbiddenException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + AcceptInputDeviceTransferErrorKind::NotFoundException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => Some(_inner), + AcceptInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + Some(_inner) + } AcceptInputDeviceTransferErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -161,28 +169,28 @@ pub struct BatchDeleteError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BatchDeleteErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BatchDeleteError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BatchDeleteErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::ConflictError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::NotFoundError(_inner) => _inner.fmt(f), - BatchDeleteErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::ConflictException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::NotFoundException(_inner) => _inner.fmt(f), + BatchDeleteErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), BatchDeleteErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -231,45 +239,48 @@ impl BatchDeleteError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - BatchDeleteErrorKind::InternalServerErrorError(_) + BatchDeleteErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, BatchDeleteErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, BatchDeleteErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + BatchDeleteErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for BatchDeleteError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BatchDeleteErrorKind::BadGatewayError(_inner) => Some(_inner), - BatchDeleteErrorKind::BadRequestError(_inner) => Some(_inner), - BatchDeleteErrorKind::ConflictError(_inner) => Some(_inner), - BatchDeleteErrorKind::ForbiddenError(_inner) => Some(_inner), - BatchDeleteErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - BatchDeleteErrorKind::InternalServerErrorError(_inner) => Some(_inner), - BatchDeleteErrorKind::NotFoundError(_inner) => Some(_inner), - BatchDeleteErrorKind::TooManyRequestsError(_inner) => Some(_inner), + BatchDeleteErrorKind::BadGatewayException(_inner) => Some(_inner), + BatchDeleteErrorKind::BadRequestException(_inner) => Some(_inner), + BatchDeleteErrorKind::ConflictException(_inner) => Some(_inner), + BatchDeleteErrorKind::ForbiddenException(_inner) => Some(_inner), + BatchDeleteErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + BatchDeleteErrorKind::InternalServerErrorException(_inner) => Some(_inner), + BatchDeleteErrorKind::NotFoundException(_inner) => Some(_inner), + BatchDeleteErrorKind::TooManyRequestsException(_inner) => Some(_inner), BatchDeleteErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -284,28 +295,28 @@ pub struct BatchStartError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BatchStartErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BatchStartError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BatchStartErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - BatchStartErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BatchStartErrorKind::ConflictError(_inner) => _inner.fmt(f), - BatchStartErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BatchStartErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - BatchStartErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - BatchStartErrorKind::NotFoundError(_inner) => _inner.fmt(f), - BatchStartErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + BatchStartErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + BatchStartErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BatchStartErrorKind::ConflictException(_inner) => _inner.fmt(f), + BatchStartErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BatchStartErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + BatchStartErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + BatchStartErrorKind::NotFoundException(_inner) => _inner.fmt(f), + BatchStartErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), BatchStartErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -354,42 +365,45 @@ impl BatchStartError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + BatchStartErrorKind::InternalServerErrorException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, BatchStartErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, BatchStartErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for BatchStartError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BatchStartErrorKind::BadGatewayError(_inner) => Some(_inner), - BatchStartErrorKind::BadRequestError(_inner) => Some(_inner), - BatchStartErrorKind::ConflictError(_inner) => Some(_inner), - BatchStartErrorKind::ForbiddenError(_inner) => Some(_inner), - BatchStartErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - BatchStartErrorKind::InternalServerErrorError(_inner) => Some(_inner), - BatchStartErrorKind::NotFoundError(_inner) => Some(_inner), - BatchStartErrorKind::TooManyRequestsError(_inner) => Some(_inner), + BatchStartErrorKind::BadGatewayException(_inner) => Some(_inner), + BatchStartErrorKind::BadRequestException(_inner) => Some(_inner), + BatchStartErrorKind::ConflictException(_inner) => Some(_inner), + BatchStartErrorKind::ForbiddenException(_inner) => Some(_inner), + BatchStartErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + BatchStartErrorKind::InternalServerErrorException(_inner) => Some(_inner), + BatchStartErrorKind::NotFoundException(_inner) => Some(_inner), + BatchStartErrorKind::TooManyRequestsException(_inner) => Some(_inner), BatchStartErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -404,28 +418,28 @@ pub struct BatchStopError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BatchStopErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BatchStopError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BatchStopErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - BatchStopErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BatchStopErrorKind::ConflictError(_inner) => _inner.fmt(f), - BatchStopErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BatchStopErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - BatchStopErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - BatchStopErrorKind::NotFoundError(_inner) => _inner.fmt(f), - BatchStopErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + BatchStopErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + BatchStopErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BatchStopErrorKind::ConflictException(_inner) => _inner.fmt(f), + BatchStopErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BatchStopErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + BatchStopErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + BatchStopErrorKind::NotFoundException(_inner) => _inner.fmt(f), + BatchStopErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), BatchStopErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -474,42 +488,45 @@ impl BatchStopError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + BatchStopErrorKind::InternalServerErrorException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, BatchStopErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, BatchStopErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for BatchStopError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BatchStopErrorKind::BadGatewayError(_inner) => Some(_inner), - BatchStopErrorKind::BadRequestError(_inner) => Some(_inner), - BatchStopErrorKind::ConflictError(_inner) => Some(_inner), - BatchStopErrorKind::ForbiddenError(_inner) => Some(_inner), - BatchStopErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - BatchStopErrorKind::InternalServerErrorError(_inner) => Some(_inner), - BatchStopErrorKind::NotFoundError(_inner) => Some(_inner), - BatchStopErrorKind::TooManyRequestsError(_inner) => Some(_inner), + BatchStopErrorKind::BadGatewayException(_inner) => Some(_inner), + BatchStopErrorKind::BadRequestException(_inner) => Some(_inner), + BatchStopErrorKind::ConflictException(_inner) => Some(_inner), + BatchStopErrorKind::ForbiddenException(_inner) => Some(_inner), + BatchStopErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + BatchStopErrorKind::InternalServerErrorException(_inner) => Some(_inner), + BatchStopErrorKind::NotFoundException(_inner) => Some(_inner), + BatchStopErrorKind::TooManyRequestsException(_inner) => Some(_inner), BatchStopErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -524,28 +541,28 @@ pub struct BatchUpdateScheduleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BatchUpdateScheduleErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BatchUpdateScheduleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BatchUpdateScheduleErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::NotFoundError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - BatchUpdateScheduleErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::NotFoundException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + BatchUpdateScheduleErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), BatchUpdateScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -594,54 +611,66 @@ impl BatchUpdateScheduleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, BatchUpdateScheduleErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + BatchUpdateScheduleErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, BatchUpdateScheduleErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + BatchUpdateScheduleErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, BatchUpdateScheduleErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + BatchUpdateScheduleErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - BatchUpdateScheduleErrorKind::GatewayTimeoutError(_) + BatchUpdateScheduleErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - BatchUpdateScheduleErrorKind::InternalServerErrorError(_) + BatchUpdateScheduleErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, BatchUpdateScheduleErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + BatchUpdateScheduleErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - BatchUpdateScheduleErrorKind::TooManyRequestsError(_) + BatchUpdateScheduleErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - BatchUpdateScheduleErrorKind::UnprocessableEntityError(_) + BatchUpdateScheduleErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for BatchUpdateScheduleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BatchUpdateScheduleErrorKind::BadGatewayError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::BadRequestError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::ForbiddenError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::InternalServerErrorError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::NotFoundError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::TooManyRequestsError(_inner) => Some(_inner), - BatchUpdateScheduleErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::BadGatewayException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::BadRequestException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::ForbiddenException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::InternalServerErrorException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::NotFoundException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::TooManyRequestsException(_inner) => Some(_inner), + BatchUpdateScheduleErrorKind::UnprocessableEntityException(_inner) => Some(_inner), BatchUpdateScheduleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -656,30 +685,34 @@ pub struct CancelInputDeviceTransferError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelInputDeviceTransferErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelInputDeviceTransferError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelInputDeviceTransferErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::ConflictError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CancelInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::ConflictException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + CancelInputDeviceTransferErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CancelInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + _inner.fmt(f) + } CancelInputDeviceTransferErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -728,73 +761,77 @@ impl CancelInputDeviceTransferError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::BadGatewayError(_) + CancelInputDeviceTransferErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::BadRequestError(_) + CancelInputDeviceTransferErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::ConflictError(_) + CancelInputDeviceTransferErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::ForbiddenError(_) + CancelInputDeviceTransferErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::GatewayTimeoutError(_) + CancelInputDeviceTransferErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::InternalServerErrorError(_) + CancelInputDeviceTransferErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::NotFoundError(_) + CancelInputDeviceTransferErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::TooManyRequestsError(_) + CancelInputDeviceTransferErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CancelInputDeviceTransferErrorKind::UnprocessableEntityError(_) + CancelInputDeviceTransferErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CancelInputDeviceTransferError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelInputDeviceTransferErrorKind::BadGatewayError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::BadRequestError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::ConflictError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::ForbiddenError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::NotFoundError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CancelInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::BadGatewayException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::BadRequestException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::ConflictException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::ForbiddenException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + CancelInputDeviceTransferErrorKind::NotFoundException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CancelInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + Some(_inner) + } CancelInputDeviceTransferErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -809,28 +846,28 @@ pub struct CreateChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -879,48 +916,54 @@ impl CreateChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + CreateChannelErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateChannelErrorKind::InternalServerErrorError(_) + CreateChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateChannelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateChannelErrorKind::UnprocessableEntityError(_) + CreateChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - CreateChannelErrorKind::BadRequestError(_inner) => Some(_inner), - CreateChannelErrorKind::ConflictError(_inner) => Some(_inner), - CreateChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreateChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + CreateChannelErrorKind::BadRequestException(_inner) => Some(_inner), + CreateChannelErrorKind::ConflictException(_inner) => Some(_inner), + CreateChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreateChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -935,24 +978,24 @@ pub struct CreateInputError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateInputErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateInputError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateInputErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreateInputErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateInputErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateInputErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreateInputErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateInputErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateInputErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreateInputErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateInputErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateInputErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreateInputErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateInputErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateInputErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1001,37 +1044,40 @@ impl CreateInputError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, CreateInputErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, CreateInputErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateInputErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateInputErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateInputErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateInputErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, CreateInputErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, CreateInputErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateInputErrorKind::InternalServerErrorError(_) + CreateInputErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateInputErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateInputErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for CreateInputError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateInputErrorKind::BadGatewayError(_inner) => Some(_inner), - CreateInputErrorKind::BadRequestError(_inner) => Some(_inner), - CreateInputErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateInputErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreateInputErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateInputErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateInputErrorKind::BadGatewayException(_inner) => Some(_inner), + CreateInputErrorKind::BadRequestException(_inner) => Some(_inner), + CreateInputErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateInputErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreateInputErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateInputErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateInputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1046,24 +1092,26 @@ pub struct CreateInputSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateInputSecurityGroupErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateInputSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateInputSecurityGroupErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreateInputSecurityGroupErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateInputSecurityGroupErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreateInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateInputSecurityGroupErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreateInputSecurityGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateInputSecurityGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreateInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + CreateInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateInputSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1112,52 +1160,52 @@ impl CreateInputSecurityGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::BadGatewayError(_) + CreateInputSecurityGroupErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::BadRequestError(_) + CreateInputSecurityGroupErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::ForbiddenError(_) + CreateInputSecurityGroupErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::GatewayTimeoutError(_) + CreateInputSecurityGroupErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::InternalServerErrorError(_) + CreateInputSecurityGroupErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateInputSecurityGroupErrorKind::TooManyRequestsError(_) + CreateInputSecurityGroupErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateInputSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateInputSecurityGroupErrorKind::BadGatewayError(_inner) => Some(_inner), - CreateInputSecurityGroupErrorKind::BadRequestError(_inner) => Some(_inner), - CreateInputSecurityGroupErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreateInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::BadGatewayException(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::BadRequestException(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateInputSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1172,28 +1220,28 @@ pub struct CreateMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateMultiplexErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateMultiplexErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1242,51 +1290,54 @@ impl CreateMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, CreateMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, CreateMultiplexErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateMultiplexErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateMultiplexErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, CreateMultiplexErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateMultiplexErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, CreateMultiplexErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + CreateMultiplexErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexErrorKind::InternalServerErrorError(_) + CreateMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexErrorKind::TooManyRequestsError(_) + CreateMultiplexErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexErrorKind::UnprocessableEntityError(_) + CreateMultiplexErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - CreateMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - CreateMultiplexErrorKind::ConflictError(_inner) => Some(_inner), - CreateMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreateMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateMultiplexErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateMultiplexErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + CreateMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + CreateMultiplexErrorKind::ConflictException(_inner) => Some(_inner), + CreateMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreateMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateMultiplexErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateMultiplexErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1301,28 +1352,28 @@ pub struct CreateMultiplexProgramError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateMultiplexProgramErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateMultiplexProgramError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateMultiplexProgramErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::ConflictError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateMultiplexProgramErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::ConflictException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateMultiplexProgramErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateMultiplexProgramErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1371,66 +1422,66 @@ impl CreateMultiplexProgramError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::BadGatewayError(_) + CreateMultiplexProgramErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::BadRequestError(_) + CreateMultiplexProgramErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::ConflictError(_) + CreateMultiplexProgramErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::ForbiddenError(_) + CreateMultiplexProgramErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::GatewayTimeoutError(_) + CreateMultiplexProgramErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::InternalServerErrorError(_) + CreateMultiplexProgramErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::TooManyRequestsError(_) + CreateMultiplexProgramErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateMultiplexProgramErrorKind::UnprocessableEntityError(_) + CreateMultiplexProgramErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateMultiplexProgramError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateMultiplexProgramErrorKind::BadGatewayError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::BadRequestError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::ConflictError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateMultiplexProgramErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::BadGatewayException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::BadRequestException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::ConflictException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateMultiplexProgramErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateMultiplexProgramErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1445,24 +1496,24 @@ pub struct CreatePartnerInputError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreatePartnerInputErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreatePartnerInputError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreatePartnerInputErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - CreatePartnerInputErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreatePartnerInputErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreatePartnerInputErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - CreatePartnerInputErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreatePartnerInputErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreatePartnerInputErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreatePartnerInputErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1511,43 +1562,52 @@ impl CreatePartnerInputError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, CreatePartnerInputErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + CreatePartnerInputErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreatePartnerInputErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreatePartnerInputErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreatePartnerInputErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + CreatePartnerInputErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - CreatePartnerInputErrorKind::GatewayTimeoutError(_) + CreatePartnerInputErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreatePartnerInputErrorKind::InternalServerErrorError(_) + CreatePartnerInputErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreatePartnerInputErrorKind::TooManyRequestsError(_) + CreatePartnerInputErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreatePartnerInputError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreatePartnerInputErrorKind::BadGatewayError(_inner) => Some(_inner), - CreatePartnerInputErrorKind::BadRequestError(_inner) => Some(_inner), - CreatePartnerInputErrorKind::ForbiddenError(_inner) => Some(_inner), - CreatePartnerInputErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - CreatePartnerInputErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreatePartnerInputErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreatePartnerInputErrorKind::BadGatewayException(_inner) => Some(_inner), + CreatePartnerInputErrorKind::BadRequestException(_inner) => Some(_inner), + CreatePartnerInputErrorKind::ForbiddenException(_inner) => Some(_inner), + CreatePartnerInputErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + CreatePartnerInputErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreatePartnerInputErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreatePartnerInputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1562,20 +1622,20 @@ pub struct CreateTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateTagsErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateTagsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateTagsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateTagsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateTagsErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CreateTagsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateTagsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateTagsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateTagsErrorKind::NotFoundException(_inner) => _inner.fmt(f), CreateTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1624,26 +1684,29 @@ impl CreateTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateTagsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateTagsErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateTagsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateTagsErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, CreateTagsErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + CreateTagsErrorKind::InternalServerErrorException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateTagsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateTagsErrorKind::NotFoundException(_)) } } impl std::error::Error for CreateTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateTagsErrorKind::BadRequestError(_inner) => Some(_inner), - CreateTagsErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateTagsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateTagsErrorKind::NotFoundError(_inner) => Some(_inner), + CreateTagsErrorKind::BadRequestException(_inner) => Some(_inner), + CreateTagsErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateTagsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateTagsErrorKind::NotFoundException(_inner) => Some(_inner), CreateTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1658,28 +1721,28 @@ pub struct DeleteChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1728,45 +1791,51 @@ impl DeleteChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DeleteChannelErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteChannelErrorKind::InternalServerErrorError(_) + DeleteChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteChannelErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteChannelErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteChannelErrorKind::ConflictError(_inner) => Some(_inner), - DeleteChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteChannelErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteChannelErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteChannelErrorKind::ConflictException(_inner) => Some(_inner), + DeleteChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteChannelErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1781,28 +1850,28 @@ pub struct DeleteInputError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteInputErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteInputError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteInputErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteInputErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteInputErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteInputErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteInputErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1851,45 +1920,48 @@ impl DeleteInputError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteInputErrorKind::InternalServerErrorError(_) + DeleteInputErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteInputErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteInputErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteInputErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteInputError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteInputErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteInputErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteInputErrorKind::ConflictError(_inner) => Some(_inner), - DeleteInputErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteInputErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteInputErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteInputErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteInputErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteInputErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteInputErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteInputErrorKind::ConflictException(_inner) => Some(_inner), + DeleteInputErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteInputErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteInputErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteInputErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteInputErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteInputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1904,26 +1976,28 @@ pub struct DeleteInputSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteInputSecurityGroupErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteInputSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteInputSecurityGroupErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + DeleteInputSecurityGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteInputSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1972,59 +2046,59 @@ impl DeleteInputSecurityGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::BadGatewayError(_) + DeleteInputSecurityGroupErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::BadRequestError(_) + DeleteInputSecurityGroupErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::ForbiddenError(_) + DeleteInputSecurityGroupErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::GatewayTimeoutError(_) + DeleteInputSecurityGroupErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::InternalServerErrorError(_) + DeleteInputSecurityGroupErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::NotFoundError(_) + DeleteInputSecurityGroupErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteInputSecurityGroupErrorKind::TooManyRequestsError(_) + DeleteInputSecurityGroupErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteInputSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteInputSecurityGroupErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteInputSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2039,28 +2113,28 @@ pub struct DeleteMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteMultiplexErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteMultiplexErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2109,48 +2183,51 @@ impl DeleteMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DeleteMultiplexErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteMultiplexErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteMultiplexErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteMultiplexErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DeleteMultiplexErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexErrorKind::InternalServerErrorError(_) + DeleteMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteMultiplexErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteMultiplexErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexErrorKind::TooManyRequestsError(_) + DeleteMultiplexErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::ConflictError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteMultiplexErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::ConflictException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteMultiplexErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2165,28 +2242,28 @@ pub struct DeleteMultiplexProgramError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteMultiplexProgramErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteMultiplexProgramError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteMultiplexProgramErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteMultiplexProgramErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteMultiplexProgramErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteMultiplexProgramErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2235,66 +2312,66 @@ impl DeleteMultiplexProgramError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::BadGatewayError(_) + DeleteMultiplexProgramErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::BadRequestError(_) + DeleteMultiplexProgramErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::ConflictError(_) + DeleteMultiplexProgramErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::ForbiddenError(_) + DeleteMultiplexProgramErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::GatewayTimeoutError(_) + DeleteMultiplexProgramErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::InternalServerErrorError(_) + DeleteMultiplexProgramErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::NotFoundError(_) + DeleteMultiplexProgramErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteMultiplexProgramErrorKind::TooManyRequestsError(_) + DeleteMultiplexProgramErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteMultiplexProgramError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteMultiplexProgramErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::ConflictError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteMultiplexProgramErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::ConflictException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteMultiplexProgramErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteMultiplexProgramErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2309,28 +2386,28 @@ pub struct DeleteReservationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteReservationErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteReservationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteReservationErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::ConflictError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteReservationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::ConflictException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteReservationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteReservationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2379,51 +2456,60 @@ impl DeleteReservationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DeleteReservationErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DeleteReservationErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteReservationErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteReservationErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteReservationErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, DeleteReservationErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteReservationErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DeleteReservationErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DeleteReservationErrorKind::GatewayTimeoutError(_) + DeleteReservationErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteReservationErrorKind::InternalServerErrorError(_) + DeleteReservationErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteReservationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteReservationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteReservationErrorKind::TooManyRequestsError(_) + DeleteReservationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteReservationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteReservationErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteReservationErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteReservationErrorKind::ConflictError(_inner) => Some(_inner), - DeleteReservationErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteReservationErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteReservationErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteReservationErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteReservationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteReservationErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteReservationErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteReservationErrorKind::ConflictException(_inner) => Some(_inner), + DeleteReservationErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteReservationErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteReservationErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteReservationErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteReservationErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteReservationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2438,26 +2524,26 @@ pub struct DeleteScheduleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteScheduleErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteScheduleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteScheduleErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteScheduleErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteScheduleErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2506,41 +2592,47 @@ impl DeleteScheduleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DeleteScheduleErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteScheduleErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteScheduleErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DeleteScheduleErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteScheduleErrorKind::InternalServerErrorError(_) + DeleteScheduleErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteScheduleErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteScheduleErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteScheduleErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteScheduleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteScheduleErrorKind::BadGatewayError(_inner) => Some(_inner), - DeleteScheduleErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteScheduleErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteScheduleErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DeleteScheduleErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteScheduleErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteScheduleErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteScheduleErrorKind::BadGatewayException(_inner) => Some(_inner), + DeleteScheduleErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteScheduleErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteScheduleErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DeleteScheduleErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteScheduleErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteScheduleErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteScheduleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2555,20 +2647,20 @@ pub struct DeleteTagsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteTagsErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteTagsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteTagsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteTagsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteTagsErrorKind::NotFoundError(_inner) => _inner.fmt(f), + DeleteTagsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteTagsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteTagsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteTagsErrorKind::NotFoundException(_inner) => _inner.fmt(f), DeleteTagsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2617,26 +2709,29 @@ impl DeleteTagsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteTagsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteTagsErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteTagsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteTagsErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, DeleteTagsErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTagsErrorKind::InternalServerErrorException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTagsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteTagsErrorKind::NotFoundException(_)) } } impl std::error::Error for DeleteTagsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteTagsErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteTagsErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteTagsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteTagsErrorKind::NotFoundError(_inner) => Some(_inner), + DeleteTagsErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteTagsErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteTagsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteTagsErrorKind::NotFoundException(_inner) => Some(_inner), DeleteTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2651,26 +2746,26 @@ pub struct DescribeChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2719,44 +2814,47 @@ impl DescribeChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DescribeChannelErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::InternalServerErrorError(_) + DescribeChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::TooManyRequestsError(_) + DescribeChannelErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeChannelErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeChannelErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeChannelErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeChannelErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2771,26 +2869,26 @@ pub struct DescribeInputError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeInputErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeInputError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeInputErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeInputErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeInputErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeInputErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeInputErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2839,41 +2937,47 @@ impl DescribeInputError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, DescribeInputErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DescribeInputErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DescribeInputErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeInputErrorKind::InternalServerErrorError(_) + DescribeInputErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeInputErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DescribeInputErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DescribeInputError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeInputErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeInputErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeInputErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeInputErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeInputErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeInputErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeInputErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeInputErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeInputErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeInputErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeInputErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeInputErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeInputErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeInputErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeInputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2888,26 +2992,26 @@ pub struct DescribeInputDeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeInputDeviceErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeInputDeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeInputDeviceErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeInputDeviceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeInputDeviceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeInputDeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2956,47 +3060,59 @@ impl DescribeInputDeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeInputDeviceErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputDeviceErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeInputDeviceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputDeviceErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeInputDeviceErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputDeviceErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceErrorKind::GatewayTimeoutError(_) + DescribeInputDeviceErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceErrorKind::InternalServerErrorError(_) + DescribeInputDeviceErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeInputDeviceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeInputDeviceErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceErrorKind::TooManyRequestsError(_) + DescribeInputDeviceErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeInputDeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeInputDeviceErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeInputDeviceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeInputDeviceErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeInputDeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3011,28 +3127,30 @@ pub struct DescribeInputDeviceThumbnailError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeInputDeviceThumbnailErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeInputDeviceThumbnailError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeInputDeviceThumbnailErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeInputDeviceThumbnailErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeInputDeviceThumbnailErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeInputDeviceThumbnailErrorKind::InternalServerErrorError(_inner) => { + DescribeInputDeviceThumbnailErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeInputDeviceThumbnailErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeInputDeviceThumbnailErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeInputDeviceThumbnailErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + DescribeInputDeviceThumbnailErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeInputDeviceThumbnailErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } - DescribeInputDeviceThumbnailErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeInputDeviceThumbnailErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), DescribeInputDeviceThumbnailErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3081,59 +3199,61 @@ impl DescribeInputDeviceThumbnailError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::BadGatewayError(_) + DescribeInputDeviceThumbnailErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::BadRequestError(_) + DescribeInputDeviceThumbnailErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::ForbiddenError(_) + DescribeInputDeviceThumbnailErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutError(_) + DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::InternalServerErrorError(_) + DescribeInputDeviceThumbnailErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::NotFoundError(_) + DescribeInputDeviceThumbnailErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeInputDeviceThumbnailErrorKind::TooManyRequestsError(_) + DescribeInputDeviceThumbnailErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeInputDeviceThumbnailError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeInputDeviceThumbnailErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeInputDeviceThumbnailErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + DescribeInputDeviceThumbnailErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeInputDeviceThumbnailErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeInputDeviceThumbnailErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3148,26 +3268,28 @@ pub struct DescribeInputSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeInputSecurityGroupErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeInputSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeInputSecurityGroupErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + DescribeInputSecurityGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeInputSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3216,59 +3338,61 @@ impl DescribeInputSecurityGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::BadGatewayError(_) + DescribeInputSecurityGroupErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::BadRequestError(_) + DescribeInputSecurityGroupErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::ForbiddenError(_) + DescribeInputSecurityGroupErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::GatewayTimeoutError(_) + DescribeInputSecurityGroupErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::InternalServerErrorError(_) + DescribeInputSecurityGroupErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::NotFoundError(_) + DescribeInputSecurityGroupErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeInputSecurityGroupErrorKind::TooManyRequestsError(_) + DescribeInputSecurityGroupErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeInputSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeInputSecurityGroupErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeInputSecurityGroupErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + DescribeInputSecurityGroupErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeInputSecurityGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeInputSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3283,26 +3407,26 @@ pub struct DescribeMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeMultiplexErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeMultiplexErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3351,47 +3475,56 @@ impl DescribeMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DescribeMultiplexErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeMultiplexErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DescribeMultiplexErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexErrorKind::GatewayTimeoutError(_) + DescribeMultiplexErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexErrorKind::InternalServerErrorError(_) + DescribeMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeMultiplexErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeMultiplexErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexErrorKind::TooManyRequestsError(_) + DescribeMultiplexErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeMultiplexErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeMultiplexErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3406,26 +3539,28 @@ pub struct DescribeMultiplexProgramError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMultiplexProgramErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeMultiplexProgramError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMultiplexProgramErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeMultiplexProgramErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + DescribeMultiplexProgramErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeMultiplexProgramErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeMultiplexProgramErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3474,59 +3609,59 @@ impl DescribeMultiplexProgramError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::BadGatewayError(_) + DescribeMultiplexProgramErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::BadRequestError(_) + DescribeMultiplexProgramErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::ForbiddenError(_) + DescribeMultiplexProgramErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::GatewayTimeoutError(_) + DescribeMultiplexProgramErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::InternalServerErrorError(_) + DescribeMultiplexProgramErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::NotFoundError(_) + DescribeMultiplexProgramErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeMultiplexProgramErrorKind::TooManyRequestsError(_) + DescribeMultiplexProgramErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeMultiplexProgramError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMultiplexProgramErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeMultiplexProgramErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeMultiplexProgramErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeMultiplexProgramErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3541,26 +3676,26 @@ pub struct DescribeOfferingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeOfferingErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeOfferingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeOfferingErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeOfferingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeOfferingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeOfferingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3609,47 +3744,53 @@ impl DescribeOfferingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeOfferingErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DescribeOfferingErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeOfferingErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeOfferingErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeOfferingErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DescribeOfferingErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeOfferingErrorKind::GatewayTimeoutError(_) + DescribeOfferingErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeOfferingErrorKind::InternalServerErrorError(_) + DescribeOfferingErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeOfferingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeOfferingErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeOfferingErrorKind::TooManyRequestsError(_) + DescribeOfferingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeOfferingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeOfferingErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeOfferingErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeOfferingErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeOfferingErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeOfferingErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeOfferingErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeOfferingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeOfferingErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeOfferingErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeOfferingErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeOfferingErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeOfferingErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeOfferingErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeOfferingErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeOfferingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3664,26 +3805,26 @@ pub struct DescribeReservationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeReservationErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeReservationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeReservationErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeReservationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeReservationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeReservationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3732,47 +3873,59 @@ impl DescribeReservationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeReservationErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DescribeReservationErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeReservationErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeReservationErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeReservationErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DescribeReservationErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeReservationErrorKind::GatewayTimeoutError(_) + DescribeReservationErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeReservationErrorKind::InternalServerErrorError(_) + DescribeReservationErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeReservationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeReservationErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeReservationErrorKind::TooManyRequestsError(_) + DescribeReservationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeReservationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeReservationErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeReservationErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeReservationErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeReservationErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeReservationErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeReservationErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeReservationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeReservationErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeReservationErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeReservationErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeReservationErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeReservationErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeReservationErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeReservationErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeReservationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3787,26 +3940,26 @@ pub struct DescribeScheduleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeScheduleErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeScheduleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeScheduleErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeScheduleErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeScheduleErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DescribeScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3855,47 +4008,53 @@ impl DescribeScheduleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, DescribeScheduleErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + DescribeScheduleErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DescribeScheduleErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DescribeScheduleErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeScheduleErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DescribeScheduleErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - DescribeScheduleErrorKind::GatewayTimeoutError(_) + DescribeScheduleErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeScheduleErrorKind::InternalServerErrorError(_) + DescribeScheduleErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeScheduleErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeScheduleErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeScheduleErrorKind::TooManyRequestsError(_) + DescribeScheduleErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DescribeScheduleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeScheduleErrorKind::BadGatewayError(_inner) => Some(_inner), - DescribeScheduleErrorKind::BadRequestError(_inner) => Some(_inner), - DescribeScheduleErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeScheduleErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - DescribeScheduleErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeScheduleErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeScheduleErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DescribeScheduleErrorKind::BadGatewayException(_inner) => Some(_inner), + DescribeScheduleErrorKind::BadRequestException(_inner) => Some(_inner), + DescribeScheduleErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeScheduleErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + DescribeScheduleErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeScheduleErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeScheduleErrorKind::TooManyRequestsException(_inner) => Some(_inner), DescribeScheduleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3910,24 +4069,24 @@ pub struct ListChannelsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListChannelsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListChannelsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListChannelsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListChannelsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListChannelsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3976,37 +4135,43 @@ impl ListChannelsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, ListChannelsErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListChannelsErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListChannelsErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ListChannelsErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListChannelsErrorKind::InternalServerErrorError(_) + ListChannelsErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListChannelsErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListChannelsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListChannelsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListChannelsErrorKind::BadRequestError(_inner) => Some(_inner), - ListChannelsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListChannelsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListChannelsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListChannelsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListChannelsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListChannelsErrorKind::BadRequestException(_inner) => Some(_inner), + ListChannelsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListChannelsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListChannelsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListChannelsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListChannelsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4021,24 +4186,24 @@ pub struct ListInputDevicesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInputDevicesErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInputDevicesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInputDevicesErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListInputDevicesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListInputDevicesErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListInputDevicesErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListInputDevicesErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListInputDevicesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListInputDevicesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListInputDevicesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4087,43 +4252,49 @@ impl ListInputDevicesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListInputDevicesErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + ListInputDevicesErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListInputDevicesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListInputDevicesErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListInputDevicesErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListInputDevicesErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - ListInputDevicesErrorKind::GatewayTimeoutError(_) + ListInputDevicesErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListInputDevicesErrorKind::InternalServerErrorError(_) + ListInputDevicesErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListInputDevicesErrorKind::TooManyRequestsError(_) + ListInputDevicesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListInputDevicesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInputDevicesErrorKind::BadGatewayError(_inner) => Some(_inner), - ListInputDevicesErrorKind::BadRequestError(_inner) => Some(_inner), - ListInputDevicesErrorKind::ForbiddenError(_inner) => Some(_inner), - ListInputDevicesErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListInputDevicesErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListInputDevicesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListInputDevicesErrorKind::BadGatewayException(_inner) => Some(_inner), + ListInputDevicesErrorKind::BadRequestException(_inner) => Some(_inner), + ListInputDevicesErrorKind::ForbiddenException(_inner) => Some(_inner), + ListInputDevicesErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListInputDevicesErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListInputDevicesErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListInputDevicesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4138,26 +4309,30 @@ pub struct ListInputDeviceTransfersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInputDeviceTransfersErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInputDeviceTransfersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInputDeviceTransfersErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ListInputDeviceTransfersErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + ListInputDeviceTransfersErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ListInputDeviceTransfersErrorKind::UnprocessableEntityException(_inner) => { + _inner.fmt(f) + } ListInputDeviceTransfersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4206,59 +4381,59 @@ impl ListInputDeviceTransfersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::BadGatewayError(_) + ListInputDeviceTransfersErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::BadRequestError(_) + ListInputDeviceTransfersErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::ForbiddenError(_) + ListInputDeviceTransfersErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::GatewayTimeoutError(_) + ListInputDeviceTransfersErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::InternalServerErrorError(_) + ListInputDeviceTransfersErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::TooManyRequestsError(_) + ListInputDeviceTransfersErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - ListInputDeviceTransfersErrorKind::UnprocessableEntityError(_) + ListInputDeviceTransfersErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for ListInputDeviceTransfersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInputDeviceTransfersErrorKind::BadGatewayError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::BadRequestError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::ForbiddenError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ListInputDeviceTransfersErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::BadGatewayException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::BadRequestException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::ForbiddenException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ListInputDeviceTransfersErrorKind::UnprocessableEntityException(_inner) => Some(_inner), ListInputDeviceTransfersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4273,24 +4448,24 @@ pub struct ListInputsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInputsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInputsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInputsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListInputsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListInputsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListInputsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListInputsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListInputsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListInputsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListInputsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListInputsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListInputsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListInputsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListInputsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListInputsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4339,34 +4514,37 @@ impl ListInputsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, ListInputsErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListInputsErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListInputsErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, ListInputsErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + ListInputsErrorKind::InternalServerErrorException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListInputsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, ListInputsErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for ListInputsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInputsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListInputsErrorKind::BadRequestError(_inner) => Some(_inner), - ListInputsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListInputsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListInputsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListInputsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListInputsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListInputsErrorKind::BadRequestException(_inner) => Some(_inner), + ListInputsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListInputsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListInputsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListInputsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListInputsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4381,24 +4559,24 @@ pub struct ListInputSecurityGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListInputSecurityGroupsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListInputSecurityGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListInputSecurityGroupsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListInputSecurityGroupsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListInputSecurityGroupsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListInputSecurityGroupsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListInputSecurityGroupsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListInputSecurityGroupsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListInputSecurityGroupsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListInputSecurityGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4447,52 +4625,52 @@ impl ListInputSecurityGroupsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::BadGatewayError(_) + ListInputSecurityGroupsErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::BadRequestError(_) + ListInputSecurityGroupsErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::ForbiddenError(_) + ListInputSecurityGroupsErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::GatewayTimeoutError(_) + ListInputSecurityGroupsErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::InternalServerErrorError(_) + ListInputSecurityGroupsErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListInputSecurityGroupsErrorKind::TooManyRequestsError(_) + ListInputSecurityGroupsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListInputSecurityGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListInputSecurityGroupsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListInputSecurityGroupsErrorKind::BadRequestError(_inner) => Some(_inner), - ListInputSecurityGroupsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListInputSecurityGroupsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListInputSecurityGroupsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListInputSecurityGroupsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::BadRequestException(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListInputSecurityGroupsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListInputSecurityGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4507,24 +4685,24 @@ pub struct ListMultiplexesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListMultiplexesErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListMultiplexesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListMultiplexesErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListMultiplexesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListMultiplexesErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListMultiplexesErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListMultiplexesErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListMultiplexesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListMultiplexesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListMultiplexesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4573,40 +4751,43 @@ impl ListMultiplexesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListMultiplexesErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, ListMultiplexesErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListMultiplexesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListMultiplexesErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListMultiplexesErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListMultiplexesErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, ListMultiplexesErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ListMultiplexesErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexesErrorKind::InternalServerErrorError(_) + ListMultiplexesErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexesErrorKind::TooManyRequestsError(_) + ListMultiplexesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListMultiplexesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListMultiplexesErrorKind::BadGatewayError(_inner) => Some(_inner), - ListMultiplexesErrorKind::BadRequestError(_inner) => Some(_inner), - ListMultiplexesErrorKind::ForbiddenError(_inner) => Some(_inner), - ListMultiplexesErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListMultiplexesErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListMultiplexesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListMultiplexesErrorKind::BadGatewayException(_inner) => Some(_inner), + ListMultiplexesErrorKind::BadRequestException(_inner) => Some(_inner), + ListMultiplexesErrorKind::ForbiddenException(_inner) => Some(_inner), + ListMultiplexesErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListMultiplexesErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListMultiplexesErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListMultiplexesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4621,26 +4802,26 @@ pub struct ListMultiplexProgramsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListMultiplexProgramsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListMultiplexProgramsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListMultiplexProgramsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListMultiplexProgramsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListMultiplexProgramsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListMultiplexProgramsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4689,56 +4870,59 @@ impl ListMultiplexProgramsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::BadGatewayError(_) + ListMultiplexProgramsErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::BadRequestError(_) + ListMultiplexProgramsErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::ForbiddenError(_) + ListMultiplexProgramsErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::GatewayTimeoutError(_) + ListMultiplexProgramsErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::InternalServerErrorError(_) + ListMultiplexProgramsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListMultiplexProgramsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListMultiplexProgramsErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListMultiplexProgramsErrorKind::TooManyRequestsError(_) + ListMultiplexProgramsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListMultiplexProgramsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListMultiplexProgramsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::BadRequestError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::NotFoundError(_inner) => Some(_inner), - ListMultiplexProgramsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::BadRequestException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::NotFoundException(_inner) => Some(_inner), + ListMultiplexProgramsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListMultiplexProgramsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4753,24 +4937,24 @@ pub struct ListOfferingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListOfferingsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListOfferingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListOfferingsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListOfferingsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListOfferingsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListOfferingsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListOfferingsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListOfferingsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListOfferingsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListOfferingsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4819,37 +5003,43 @@ impl ListOfferingsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListOfferingsErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, ListOfferingsErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListOfferingsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListOfferingsErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListOfferingsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListOfferingsErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, ListOfferingsErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + ListOfferingsErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListOfferingsErrorKind::InternalServerErrorError(_) + ListOfferingsErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListOfferingsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListOfferingsErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListOfferingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListOfferingsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListOfferingsErrorKind::BadRequestError(_inner) => Some(_inner), - ListOfferingsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListOfferingsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListOfferingsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListOfferingsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListOfferingsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListOfferingsErrorKind::BadRequestException(_inner) => Some(_inner), + ListOfferingsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListOfferingsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListOfferingsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListOfferingsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListOfferingsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4864,24 +5054,24 @@ pub struct ListReservationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListReservationsErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListReservationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListReservationsErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - ListReservationsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListReservationsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListReservationsErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - ListReservationsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListReservationsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListReservationsErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + ListReservationsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListReservationsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListReservationsErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + ListReservationsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListReservationsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListReservationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4930,43 +5120,49 @@ impl ListReservationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, ListReservationsErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + ListReservationsErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListReservationsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListReservationsErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListReservationsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListReservationsErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - ListReservationsErrorKind::GatewayTimeoutError(_) + ListReservationsErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListReservationsErrorKind::InternalServerErrorError(_) + ListReservationsErrorKind::InternalServerErrorException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListReservationsErrorKind::TooManyRequestsError(_) + ListReservationsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListReservationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListReservationsErrorKind::BadGatewayError(_inner) => Some(_inner), - ListReservationsErrorKind::BadRequestError(_inner) => Some(_inner), - ListReservationsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListReservationsErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - ListReservationsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListReservationsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListReservationsErrorKind::BadGatewayException(_inner) => Some(_inner), + ListReservationsErrorKind::BadRequestException(_inner) => Some(_inner), + ListReservationsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListReservationsErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + ListReservationsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListReservationsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListReservationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4981,20 +5177,20 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5043,29 +5239,38 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::InternalServerErrorError(_) + ListTagsForResourceErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::NotFoundException(_) + ) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::BadRequestError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ForbiddenError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::NotFoundError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::BadRequestException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ForbiddenException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::NotFoundException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5080,28 +5285,28 @@ pub struct PurchaseOfferingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PurchaseOfferingErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PurchaseOfferingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PurchaseOfferingErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::ConflictError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PurchaseOfferingErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::ConflictException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PurchaseOfferingErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PurchaseOfferingErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5150,51 +5355,57 @@ impl PurchaseOfferingError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, PurchaseOfferingErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + PurchaseOfferingErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PurchaseOfferingErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + PurchaseOfferingErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PurchaseOfferingErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PurchaseOfferingErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, PurchaseOfferingErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, PurchaseOfferingErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - PurchaseOfferingErrorKind::GatewayTimeoutError(_) + PurchaseOfferingErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - PurchaseOfferingErrorKind::InternalServerErrorError(_) + PurchaseOfferingErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PurchaseOfferingErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PurchaseOfferingErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PurchaseOfferingErrorKind::TooManyRequestsError(_) + PurchaseOfferingErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PurchaseOfferingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PurchaseOfferingErrorKind::BadGatewayError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::BadRequestError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::ConflictError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::ForbiddenError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::InternalServerErrorError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::NotFoundError(_inner) => Some(_inner), - PurchaseOfferingErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PurchaseOfferingErrorKind::BadGatewayException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::BadRequestException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::ConflictException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::ForbiddenException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::InternalServerErrorException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::NotFoundException(_inner) => Some(_inner), + PurchaseOfferingErrorKind::TooManyRequestsException(_inner) => Some(_inner), PurchaseOfferingErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5209,30 +5420,34 @@ pub struct RejectInputDeviceTransferError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RejectInputDeviceTransferErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RejectInputDeviceTransferError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RejectInputDeviceTransferErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::BadRequestError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::ConflictError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::NotFoundError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - RejectInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::BadRequestException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::ConflictException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + RejectInputDeviceTransferErrorKind::NotFoundException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + RejectInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + _inner.fmt(f) + } RejectInputDeviceTransferErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5281,73 +5496,77 @@ impl RejectInputDeviceTransferError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::BadGatewayError(_) + RejectInputDeviceTransferErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::BadRequestError(_) + RejectInputDeviceTransferErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::ConflictError(_) + RejectInputDeviceTransferErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::ForbiddenError(_) + RejectInputDeviceTransferErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::GatewayTimeoutError(_) + RejectInputDeviceTransferErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::InternalServerErrorError(_) + RejectInputDeviceTransferErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::NotFoundError(_) + RejectInputDeviceTransferErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::TooManyRequestsError(_) + RejectInputDeviceTransferErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - RejectInputDeviceTransferErrorKind::UnprocessableEntityError(_) + RejectInputDeviceTransferErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for RejectInputDeviceTransferError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RejectInputDeviceTransferErrorKind::BadGatewayError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::BadRequestError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::ConflictError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::ForbiddenError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::InternalServerErrorError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::NotFoundError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::TooManyRequestsError(_inner) => Some(_inner), - RejectInputDeviceTransferErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::BadGatewayException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::BadRequestException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::ConflictException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::ForbiddenException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + RejectInputDeviceTransferErrorKind::NotFoundException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::TooManyRequestsException(_inner) => Some(_inner), + RejectInputDeviceTransferErrorKind::UnprocessableEntityException(_inner) => { + Some(_inner) + } RejectInputDeviceTransferErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5362,28 +5581,28 @@ pub struct StartChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - StartChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - StartChannelErrorKind::ConflictError(_inner) => _inner.fmt(f), - StartChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - StartChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - StartChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - StartChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - StartChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + StartChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + StartChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + StartChannelErrorKind::ConflictException(_inner) => _inner.fmt(f), + StartChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + StartChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + StartChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + StartChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + StartChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), StartChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5432,45 +5651,51 @@ impl StartChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, StartChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, StartChannelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, StartChannelErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, StartChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + StartChannelErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - StartChannelErrorKind::InternalServerErrorError(_) + StartChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, StartChannelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, StartChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + StartChannelErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for StartChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - StartChannelErrorKind::BadRequestError(_inner) => Some(_inner), - StartChannelErrorKind::ConflictError(_inner) => Some(_inner), - StartChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - StartChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - StartChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - StartChannelErrorKind::NotFoundError(_inner) => Some(_inner), - StartChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), + StartChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + StartChannelErrorKind::BadRequestException(_inner) => Some(_inner), + StartChannelErrorKind::ConflictException(_inner) => Some(_inner), + StartChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + StartChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + StartChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + StartChannelErrorKind::NotFoundException(_inner) => Some(_inner), + StartChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), StartChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5485,28 +5710,28 @@ pub struct StartMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::ConflictError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::NotFoundError(_inner) => _inner.fmt(f), - StartMultiplexErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::ConflictException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::NotFoundException(_inner) => _inner.fmt(f), + StartMultiplexErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), StartMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5555,45 +5780,51 @@ impl StartMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, StartMultiplexErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, StartMultiplexErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, StartMultiplexErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, StartMultiplexErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + StartMultiplexErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - StartMultiplexErrorKind::InternalServerErrorError(_) + StartMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, StartMultiplexErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, StartMultiplexErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + StartMultiplexErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for StartMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - StartMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - StartMultiplexErrorKind::ConflictError(_inner) => Some(_inner), - StartMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - StartMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - StartMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - StartMultiplexErrorKind::NotFoundError(_inner) => Some(_inner), - StartMultiplexErrorKind::TooManyRequestsError(_inner) => Some(_inner), + StartMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + StartMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + StartMultiplexErrorKind::ConflictException(_inner) => Some(_inner), + StartMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + StartMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + StartMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + StartMultiplexErrorKind::NotFoundException(_inner) => Some(_inner), + StartMultiplexErrorKind::TooManyRequestsException(_inner) => Some(_inner), StartMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5608,28 +5839,28 @@ pub struct StopChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - StopChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - StopChannelErrorKind::ConflictError(_inner) => _inner.fmt(f), - StopChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - StopChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - StopChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - StopChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - StopChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + StopChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + StopChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + StopChannelErrorKind::ConflictException(_inner) => _inner.fmt(f), + StopChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + StopChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + StopChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + StopChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + StopChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), StopChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5678,45 +5909,48 @@ impl StopChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - StopChannelErrorKind::InternalServerErrorError(_) + StopChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, StopChannelErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, StopChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + StopChannelErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for StopChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - StopChannelErrorKind::BadRequestError(_inner) => Some(_inner), - StopChannelErrorKind::ConflictError(_inner) => Some(_inner), - StopChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - StopChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - StopChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - StopChannelErrorKind::NotFoundError(_inner) => Some(_inner), - StopChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), + StopChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + StopChannelErrorKind::BadRequestException(_inner) => Some(_inner), + StopChannelErrorKind::ConflictException(_inner) => Some(_inner), + StopChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + StopChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + StopChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + StopChannelErrorKind::NotFoundException(_inner) => Some(_inner), + StopChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), StopChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5731,28 +5965,28 @@ pub struct StopMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::ConflictError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::NotFoundError(_inner) => _inner.fmt(f), - StopMultiplexErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::ConflictException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::NotFoundException(_inner) => _inner.fmt(f), + StopMultiplexErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), StopMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5801,45 +6035,51 @@ impl StopMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, StopMultiplexErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, StopMultiplexErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, StopMultiplexErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, StopMultiplexErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + StopMultiplexErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - StopMultiplexErrorKind::InternalServerErrorError(_) + StopMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, StopMultiplexErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, StopMultiplexErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + StopMultiplexErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for StopMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - StopMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - StopMultiplexErrorKind::ConflictError(_inner) => Some(_inner), - StopMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - StopMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - StopMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - StopMultiplexErrorKind::NotFoundError(_inner) => Some(_inner), - StopMultiplexErrorKind::TooManyRequestsError(_inner) => Some(_inner), + StopMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + StopMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + StopMultiplexErrorKind::ConflictException(_inner) => Some(_inner), + StopMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + StopMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + StopMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + StopMultiplexErrorKind::NotFoundException(_inner) => Some(_inner), + StopMultiplexErrorKind::TooManyRequestsException(_inner) => Some(_inner), StopMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5854,30 +6094,30 @@ pub struct TransferInputDeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TransferInputDeviceErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TransferInputDeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TransferInputDeviceErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::ConflictError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - TransferInputDeviceErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::ConflictException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + TransferInputDeviceErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), TransferInputDeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5926,58 +6166,73 @@ impl TransferInputDeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, TransferInputDeviceErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + TransferInputDeviceErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, TransferInputDeviceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + TransferInputDeviceErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, TransferInputDeviceErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + TransferInputDeviceErrorKind::ConflictException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, TransferInputDeviceErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + TransferInputDeviceErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - TransferInputDeviceErrorKind::GatewayTimeoutError(_) + TransferInputDeviceErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - TransferInputDeviceErrorKind::InternalServerErrorError(_) + TransferInputDeviceErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TransferInputDeviceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TransferInputDeviceErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - TransferInputDeviceErrorKind::TooManyRequestsError(_) + TransferInputDeviceErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - TransferInputDeviceErrorKind::UnprocessableEntityError(_) + TransferInputDeviceErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for TransferInputDeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TransferInputDeviceErrorKind::BadGatewayError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::BadRequestError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::ConflictError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::ForbiddenError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::InternalServerErrorError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::NotFoundError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - TransferInputDeviceErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + TransferInputDeviceErrorKind::BadGatewayException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::BadRequestException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::ConflictException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::ForbiddenException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::InternalServerErrorException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::NotFoundException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + TransferInputDeviceErrorKind::UnprocessableEntityException(_inner) => Some(_inner), TransferInputDeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5992,26 +6247,26 @@ pub struct UpdateChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateChannelErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateChannelErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6060,44 +6315,47 @@ impl UpdateChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelErrorKind::InternalServerErrorError(_) + UpdateChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelErrorKind::UnprocessableEntityError(_) + UpdateChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateChannelErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateChannelErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateChannelErrorKind::ConflictError(_inner) => Some(_inner), - UpdateChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateChannelErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateChannelErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateChannelErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateChannelErrorKind::ConflictException(_inner) => Some(_inner), + UpdateChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateChannelErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6112,30 +6370,30 @@ pub struct UpdateChannelClassError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateChannelClassErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateChannelClassError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateChannelClassErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateChannelClassErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateChannelClassErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateChannelClassErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6184,58 +6442,73 @@ impl UpdateChannelClassError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateChannelClassErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelClassErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateChannelClassErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelClassErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateChannelClassErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelClassErrorKind::ConflictException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateChannelClassErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelClassErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelClassErrorKind::GatewayTimeoutError(_) + UpdateChannelClassErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelClassErrorKind::InternalServerErrorError(_) + UpdateChannelClassErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateChannelClassErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelClassErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelClassErrorKind::TooManyRequestsError(_) + UpdateChannelClassErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelClassErrorKind::UnprocessableEntityError(_) + UpdateChannelClassErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateChannelClassError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateChannelClassErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::ConflictError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateChannelClassErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateChannelClassErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::ConflictException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateChannelClassErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateChannelClassErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6250,26 +6523,26 @@ pub struct UpdateInputError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateInputErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateInputError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateInputErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateInputErrorKind::NotFoundError(_inner) => _inner.fmt(f), + UpdateInputErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateInputErrorKind::NotFoundException(_inner) => _inner.fmt(f), UpdateInputErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6318,41 +6591,41 @@ impl UpdateInputError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::GatewayTimeoutException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateInputErrorKind::InternalServerErrorError(_) + UpdateInputErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateInputErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateInputErrorKind::NotFoundException(_)) } } impl std::error::Error for UpdateInputError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateInputErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateInputErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateInputErrorKind::ConflictError(_inner) => Some(_inner), - UpdateInputErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateInputErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateInputErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateInputErrorKind::NotFoundError(_inner) => Some(_inner), + UpdateInputErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateInputErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateInputErrorKind::ConflictException(_inner) => Some(_inner), + UpdateInputErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateInputErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateInputErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateInputErrorKind::NotFoundException(_inner) => Some(_inner), UpdateInputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6367,28 +6640,28 @@ pub struct UpdateInputDeviceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateInputDeviceErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateInputDeviceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateInputDeviceErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateInputDeviceErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateInputDeviceErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateInputDeviceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6437,54 +6710,63 @@ impl UpdateInputDeviceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateInputDeviceErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + UpdateInputDeviceErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateInputDeviceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateInputDeviceErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateInputDeviceErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + UpdateInputDeviceErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateInputDeviceErrorKind::GatewayTimeoutError(_) + UpdateInputDeviceErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateInputDeviceErrorKind::InternalServerErrorError(_) + UpdateInputDeviceErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateInputDeviceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateInputDeviceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateInputDeviceErrorKind::TooManyRequestsError(_) + UpdateInputDeviceErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateInputDeviceErrorKind::UnprocessableEntityError(_) + UpdateInputDeviceErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateInputDeviceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateInputDeviceErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateInputDeviceErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateInputDeviceErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateInputDeviceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6499,26 +6781,28 @@ pub struct UpdateInputSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateInputSecurityGroupErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateInputSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateInputSecurityGroupErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateInputSecurityGroupErrorKind::NotFoundError(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + UpdateInputSecurityGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f), UpdateInputSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6567,59 +6851,59 @@ impl UpdateInputSecurityGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::BadGatewayError(_) + UpdateInputSecurityGroupErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::BadRequestError(_) + UpdateInputSecurityGroupErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::ConflictError(_) + UpdateInputSecurityGroupErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::ForbiddenError(_) + UpdateInputSecurityGroupErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::GatewayTimeoutError(_) + UpdateInputSecurityGroupErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::InternalServerErrorError(_) + UpdateInputSecurityGroupErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateInputSecurityGroupErrorKind::NotFoundError(_) + UpdateInputSecurityGroupErrorKind::NotFoundException(_) ) } } impl std::error::Error for UpdateInputSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateInputSecurityGroupErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::ConflictError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateInputSecurityGroupErrorKind::NotFoundError(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::ConflictException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateInputSecurityGroupErrorKind::NotFoundException(_inner) => Some(_inner), UpdateInputSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6634,28 +6918,28 @@ pub struct UpdateMultiplexError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMultiplexErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateMultiplexError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMultiplexErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateMultiplexErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateMultiplexErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateMultiplexErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6704,48 +6988,51 @@ impl UpdateMultiplexError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!(&self.kind, UpdateMultiplexErrorKind::BadGatewayException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateMultiplexErrorKind::BadRequestException(_)) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateMultiplexErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, UpdateMultiplexErrorKind::ForbiddenException(_)) } - pub fn is_gateway_timeout_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::GatewayTimeoutError(_)) + pub fn is_gateway_timeout_exception(&self) -> bool { + matches!( + &self.kind, + UpdateMultiplexErrorKind::GatewayTimeoutException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexErrorKind::InternalServerErrorError(_) + UpdateMultiplexErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateMultiplexErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateMultiplexErrorKind::NotFoundException(_)) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexErrorKind::UnprocessableEntityError(_) + UpdateMultiplexErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateMultiplexError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMultiplexErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::ConflictError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateMultiplexErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateMultiplexErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::ConflictException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateMultiplexErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateMultiplexErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6760,28 +7047,28 @@ pub struct UpdateMultiplexProgramError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMultiplexProgramErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateMultiplexProgramError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMultiplexProgramErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateMultiplexProgramErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateMultiplexProgramErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateMultiplexProgramErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6830,66 +7117,66 @@ impl UpdateMultiplexProgramError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { + pub fn is_bad_gateway_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::BadGatewayError(_) + UpdateMultiplexProgramErrorKind::BadGatewayException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::BadRequestError(_) + UpdateMultiplexProgramErrorKind::BadRequestException(_) ) } - pub fn is_conflict_error(&self) -> bool { + pub fn is_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::ConflictError(_) + UpdateMultiplexProgramErrorKind::ConflictException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::ForbiddenError(_) + UpdateMultiplexProgramErrorKind::ForbiddenException(_) ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::GatewayTimeoutError(_) + UpdateMultiplexProgramErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::InternalServerErrorError(_) + UpdateMultiplexProgramErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::NotFoundError(_) + UpdateMultiplexProgramErrorKind::NotFoundException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateMultiplexProgramErrorKind::UnprocessableEntityError(_) + UpdateMultiplexProgramErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateMultiplexProgramError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMultiplexProgramErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::ConflictError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateMultiplexProgramErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::ConflictException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateMultiplexProgramErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateMultiplexProgramErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6904,28 +7191,28 @@ pub struct UpdateReservationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateReservationErrorKind { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateReservationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateReservationErrorKind::BadGatewayError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::ConflictError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::GatewayTimeoutError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateReservationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::BadGatewayException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::ConflictException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::GatewayTimeoutException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateReservationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateReservationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6974,51 +7261,60 @@ impl UpdateReservationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_gateway_error(&self) -> bool { - matches!(&self.kind, UpdateReservationErrorKind::BadGatewayError(_)) + pub fn is_bad_gateway_exception(&self) -> bool { + matches!( + &self.kind, + UpdateReservationErrorKind::BadGatewayException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateReservationErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateReservationErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateReservationErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateReservationErrorKind::ConflictException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateReservationErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + UpdateReservationErrorKind::ForbiddenException(_) + ) } - pub fn is_gateway_timeout_error(&self) -> bool { + pub fn is_gateway_timeout_exception(&self) -> bool { matches!( &self.kind, - UpdateReservationErrorKind::GatewayTimeoutError(_) + UpdateReservationErrorKind::GatewayTimeoutException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateReservationErrorKind::InternalServerErrorError(_) + UpdateReservationErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateReservationErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateReservationErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateReservationErrorKind::TooManyRequestsError(_) + UpdateReservationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateReservationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateReservationErrorKind::BadGatewayError(_inner) => Some(_inner), - UpdateReservationErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateReservationErrorKind::ConflictError(_inner) => Some(_inner), - UpdateReservationErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateReservationErrorKind::GatewayTimeoutError(_inner) => Some(_inner), - UpdateReservationErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateReservationErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateReservationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateReservationErrorKind::BadGatewayException(_inner) => Some(_inner), + UpdateReservationErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateReservationErrorKind::ConflictException(_inner) => Some(_inner), + UpdateReservationErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateReservationErrorKind::GatewayTimeoutException(_inner) => Some(_inner), + UpdateReservationErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateReservationErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateReservationErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateReservationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7026,38 +7322,36 @@ impl std::error::Error for UpdateReservationError { /// Placeholder documentation for TooManyRequestsException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyRequestsError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyRequestsException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for TooManyRequestsError { +impl std::fmt::Debug for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyRequestsError"); + let mut formatter = f.debug_struct("TooManyRequestsException"); formatter.field("message", &self.message); formatter.finish() } } -impl TooManyRequestsError { +impl TooManyRequestsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyRequestsError { +impl std::fmt::Display for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyRequestsError [TooManyRequestsException]")?; + write!(f, "TooManyRequestsException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for TooManyRequestsError {} -/// See [`TooManyRequestsError`](crate::error::TooManyRequestsError) -pub mod too_many_requests_error { - /// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError) +impl std::error::Error for TooManyRequestsException {} +/// See [`TooManyRequestsException`](crate::error::TooManyRequestsException) +pub mod too_many_requests_exception { + /// A builder for [`TooManyRequestsException`](crate::error::TooManyRequestsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7073,55 +7367,53 @@ pub mod too_many_requests_error { self.message = input; self } - /// Consumes the builder and constructs a [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn build(self) -> crate::error::TooManyRequestsError { - crate::error::TooManyRequestsError { + /// Consumes the builder and constructs a [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn build(self) -> crate::error::TooManyRequestsException { + crate::error::TooManyRequestsException { message: self.message, } } } } -impl TooManyRequestsError { - /// Creates a new builder-style object to manufacture [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn builder() -> crate::error::too_many_requests_error::Builder { - crate::error::too_many_requests_error::Builder::default() +impl TooManyRequestsException { + /// Creates a new builder-style object to manufacture [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn builder() -> crate::error::too_many_requests_exception::Builder { + crate::error::too_many_requests_exception::Builder::default() } } /// Placeholder documentation for NotFoundException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7137,55 +7429,53 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } /// Placeholder documentation for InternalServerErrorException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalServerErrorError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServerErrorException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InternalServerErrorError { +impl std::fmt::Debug for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalServerErrorError"); + let mut formatter = f.debug_struct("InternalServerErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl InternalServerErrorError { +impl InternalServerErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InternalServerErrorError { +impl std::fmt::Display for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalServerErrorError [InternalServerErrorException]")?; + write!(f, "InternalServerErrorException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for InternalServerErrorError {} -/// See [`InternalServerErrorError`](crate::error::InternalServerErrorError) -pub mod internal_server_error_error { - /// A builder for [`InternalServerErrorError`](crate::error::InternalServerErrorError) +impl std::error::Error for InternalServerErrorException {} +/// See [`InternalServerErrorException`](crate::error::InternalServerErrorException) +pub mod internal_server_error_exception { + /// A builder for [`InternalServerErrorException`](crate::error::InternalServerErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7201,55 +7491,53 @@ pub mod internal_server_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn build(self) -> crate::error::InternalServerErrorError { - crate::error::InternalServerErrorError { + /// Consumes the builder and constructs a [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn build(self) -> crate::error::InternalServerErrorException { + crate::error::InternalServerErrorException { message: self.message, } } } } -impl InternalServerErrorError { - /// Creates a new builder-style object to manufacture [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn builder() -> crate::error::internal_server_error_error::Builder { - crate::error::internal_server_error_error::Builder::default() +impl InternalServerErrorException { + /// Creates a new builder-style object to manufacture [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn builder() -> crate::error::internal_server_error_exception::Builder { + crate::error::internal_server_error_exception::Builder::default() } } /// Placeholder documentation for GatewayTimeoutException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GatewayTimeoutError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct GatewayTimeoutException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for GatewayTimeoutError { +impl std::fmt::Debug for GatewayTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GatewayTimeoutError"); + let mut formatter = f.debug_struct("GatewayTimeoutException"); formatter.field("message", &self.message); formatter.finish() } } -impl GatewayTimeoutError { +impl GatewayTimeoutException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for GatewayTimeoutError { +impl std::fmt::Display for GatewayTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "GatewayTimeoutError [GatewayTimeoutException]")?; + write!(f, "GatewayTimeoutException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for GatewayTimeoutError {} -/// See [`GatewayTimeoutError`](crate::error::GatewayTimeoutError) -pub mod gateway_timeout_error { - /// A builder for [`GatewayTimeoutError`](crate::error::GatewayTimeoutError) +impl std::error::Error for GatewayTimeoutException {} +/// See [`GatewayTimeoutException`](crate::error::GatewayTimeoutException) +pub mod gateway_timeout_exception { + /// A builder for [`GatewayTimeoutException`](crate::error::GatewayTimeoutException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7265,55 +7553,53 @@ pub mod gateway_timeout_error { self.message = input; self } - /// Consumes the builder and constructs a [`GatewayTimeoutError`](crate::error::GatewayTimeoutError) - pub fn build(self) -> crate::error::GatewayTimeoutError { - crate::error::GatewayTimeoutError { + /// Consumes the builder and constructs a [`GatewayTimeoutException`](crate::error::GatewayTimeoutException) + pub fn build(self) -> crate::error::GatewayTimeoutException { + crate::error::GatewayTimeoutException { message: self.message, } } } } -impl GatewayTimeoutError { - /// Creates a new builder-style object to manufacture [`GatewayTimeoutError`](crate::error::GatewayTimeoutError) - pub fn builder() -> crate::error::gateway_timeout_error::Builder { - crate::error::gateway_timeout_error::Builder::default() +impl GatewayTimeoutException { + /// Creates a new builder-style object to manufacture [`GatewayTimeoutException`](crate::error::GatewayTimeoutException) + pub fn builder() -> crate::error::gateway_timeout_exception::Builder { + crate::error::gateway_timeout_exception::Builder::default() } } /// Placeholder documentation for ForbiddenException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ForbiddenError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ForbiddenException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ForbiddenError { +impl std::fmt::Debug for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ForbiddenError"); + let mut formatter = f.debug_struct("ForbiddenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ForbiddenError { +impl ForbiddenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ForbiddenError { +impl std::fmt::Display for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ForbiddenError [ForbiddenException]")?; + write!(f, "ForbiddenException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ForbiddenError {} -/// See [`ForbiddenError`](crate::error::ForbiddenError) -pub mod forbidden_error { - /// A builder for [`ForbiddenError`](crate::error::ForbiddenError) +impl std::error::Error for ForbiddenException {} +/// See [`ForbiddenException`](crate::error::ForbiddenException) +pub mod forbidden_exception { + /// A builder for [`ForbiddenException`](crate::error::ForbiddenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7329,55 +7615,53 @@ pub mod forbidden_error { self.message = input; self } - /// Consumes the builder and constructs a [`ForbiddenError`](crate::error::ForbiddenError) - pub fn build(self) -> crate::error::ForbiddenError { - crate::error::ForbiddenError { + /// Consumes the builder and constructs a [`ForbiddenException`](crate::error::ForbiddenException) + pub fn build(self) -> crate::error::ForbiddenException { + crate::error::ForbiddenException { message: self.message, } } } } -impl ForbiddenError { - /// Creates a new builder-style object to manufacture [`ForbiddenError`](crate::error::ForbiddenError) - pub fn builder() -> crate::error::forbidden_error::Builder { - crate::error::forbidden_error::Builder::default() +impl ForbiddenException { + /// Creates a new builder-style object to manufacture [`ForbiddenException`](crate::error::ForbiddenException) + pub fn builder() -> crate::error::forbidden_exception::Builder { + crate::error::forbidden_exception::Builder::default() } } /// Placeholder documentation for ConflictException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConflictError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConflictException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ConflictError { +impl std::fmt::Debug for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConflictError"); + let mut formatter = f.debug_struct("ConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConflictError { +impl ConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConflictError { +impl std::fmt::Display for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConflictError [ConflictException]")?; + write!(f, "ConflictException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for ConflictError {} -/// See [`ConflictError`](crate::error::ConflictError) -pub mod conflict_error { - /// A builder for [`ConflictError`](crate::error::ConflictError) +impl std::error::Error for ConflictException {} +/// See [`ConflictException`](crate::error::ConflictException) +pub mod conflict_exception { + /// A builder for [`ConflictException`](crate::error::ConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7393,55 +7677,53 @@ pub mod conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConflictError`](crate::error::ConflictError) - pub fn build(self) -> crate::error::ConflictError { - crate::error::ConflictError { + /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException) + pub fn build(self) -> crate::error::ConflictException { + crate::error::ConflictException { message: self.message, } } } } -impl ConflictError { - /// Creates a new builder-style object to manufacture [`ConflictError`](crate::error::ConflictError) - pub fn builder() -> crate::error::conflict_error::Builder { - crate::error::conflict_error::Builder::default() +impl ConflictException { + /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException) + pub fn builder() -> crate::error::conflict_exception::Builder { + crate::error::conflict_exception::Builder::default() } } /// Placeholder documentation for BadRequestException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadRequestError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for BadRequestError { +impl std::fmt::Debug for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadRequestError"); + let mut formatter = f.debug_struct("BadRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl BadRequestError { +impl BadRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadRequestError { +impl std::fmt::Display for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadRequestError [BadRequestException]")?; + write!(f, "BadRequestException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for BadRequestError {} -/// See [`BadRequestError`](crate::error::BadRequestError) -pub mod bad_request_error { - /// A builder for [`BadRequestError`](crate::error::BadRequestError) +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7457,55 +7739,53 @@ pub mod bad_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`BadRequestError`](crate::error::BadRequestError) - pub fn build(self) -> crate::error::BadRequestError { - crate::error::BadRequestError { + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { message: self.message, } } } } -impl BadRequestError { - /// Creates a new builder-style object to manufacture [`BadRequestError`](crate::error::BadRequestError) - pub fn builder() -> crate::error::bad_request_error::Builder { - crate::error::bad_request_error::Builder::default() +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() } } /// Placeholder documentation for BadGatewayException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadGatewayError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadGatewayException { /// Placeholder documentation for __string - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for BadGatewayError { +impl std::fmt::Debug for BadGatewayException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadGatewayError"); + let mut formatter = f.debug_struct("BadGatewayException"); formatter.field("message", &self.message); formatter.finish() } } -impl BadGatewayError { +impl BadGatewayException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadGatewayError { +impl std::fmt::Display for BadGatewayException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadGatewayError [BadGatewayException]")?; + write!(f, "BadGatewayException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for BadGatewayError {} -/// See [`BadGatewayError`](crate::error::BadGatewayError) -pub mod bad_gateway_error { - /// A builder for [`BadGatewayError`](crate::error::BadGatewayError) +impl std::error::Error for BadGatewayException {} +/// See [`BadGatewayException`](crate::error::BadGatewayException) +pub mod bad_gateway_exception { + /// A builder for [`BadGatewayException`](crate::error::BadGatewayException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7521,60 +7801,56 @@ pub mod bad_gateway_error { self.message = input; self } - /// Consumes the builder and constructs a [`BadGatewayError`](crate::error::BadGatewayError) - pub fn build(self) -> crate::error::BadGatewayError { - crate::error::BadGatewayError { + /// Consumes the builder and constructs a [`BadGatewayException`](crate::error::BadGatewayException) + pub fn build(self) -> crate::error::BadGatewayException { + crate::error::BadGatewayException { message: self.message, } } } } -impl BadGatewayError { - /// Creates a new builder-style object to manufacture [`BadGatewayError`](crate::error::BadGatewayError) - pub fn builder() -> crate::error::bad_gateway_error::Builder { - crate::error::bad_gateway_error::Builder::default() +impl BadGatewayException { + /// Creates a new builder-style object to manufacture [`BadGatewayException`](crate::error::BadGatewayException) + pub fn builder() -> crate::error::bad_gateway_exception::Builder { + crate::error::bad_gateway_exception::Builder::default() } } /// Placeholder documentation for UnprocessableEntityException #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnprocessableEntityError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnprocessableEntityException { /// The error message. - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, /// A collection of validation error responses. - #[serde(rename = "validationErrors")] - #[serde(default)] pub validation_errors: std::option::Option>, } -impl std::fmt::Debug for UnprocessableEntityError { +impl std::fmt::Debug for UnprocessableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnprocessableEntityError"); + let mut formatter = f.debug_struct("UnprocessableEntityException"); formatter.field("message", &self.message); formatter.field("validation_errors", &self.validation_errors); formatter.finish() } } -impl UnprocessableEntityError { +impl UnprocessableEntityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnprocessableEntityError { +impl std::fmt::Display for UnprocessableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnprocessableEntityError [UnprocessableEntityException]")?; + write!(f, "UnprocessableEntityException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for UnprocessableEntityError {} -/// See [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) -pub mod unprocessable_entity_error { - /// A builder for [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) +impl std::error::Error for UnprocessableEntityException {} +/// See [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) +pub mod unprocessable_entity_exception { + /// A builder for [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7608,18 +7884,18 @@ pub mod unprocessable_entity_error { self.validation_errors = input; self } - /// Consumes the builder and constructs a [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) - pub fn build(self) -> crate::error::UnprocessableEntityError { - crate::error::UnprocessableEntityError { + /// Consumes the builder and constructs a [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) + pub fn build(self) -> crate::error::UnprocessableEntityException { + crate::error::UnprocessableEntityException { message: self.message, validation_errors: self.validation_errors, } } } } -impl UnprocessableEntityError { - /// Creates a new builder-style object to manufacture [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) - pub fn builder() -> crate::error::unprocessable_entity_error::Builder { - crate::error::unprocessable_entity_error::Builder::default() +impl UnprocessableEntityException { + /// Creates a new builder-style object to manufacture [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) + pub fn builder() -> crate::error::unprocessable_entity_exception::Builder { + crate::error::unprocessable_entity_exception::Builder::default() } } diff --git a/sdk/medialive/src/error_meta.rs b/sdk/medialive/src/error_meta.rs index 31258447cafa..9e67db341357 100644 --- a/sdk/medialive/src/error_meta.rs +++ b/sdk/medialive/src/error_meta.rs @@ -2,29 +2,29 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - BadGatewayError(crate::error::BadGatewayError), - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - ForbiddenError(crate::error::ForbiddenError), - GatewayTimeoutError(crate::error::GatewayTimeoutError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + BadGatewayException(crate::error::BadGatewayException), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + ForbiddenException(crate::error::ForbiddenException), + GatewayTimeoutException(crate::error::GatewayTimeoutException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::BadGatewayError(inner) => inner.fmt(f), - Error::BadRequestError(inner) => inner.fmt(f), - Error::ConflictError(inner) => inner.fmt(f), - Error::ForbiddenError(inner) => inner.fmt(f), - Error::GatewayTimeoutError(inner) => inner.fmt(f), - Error::InternalServerErrorError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::TooManyRequestsError(inner) => inner.fmt(f), - Error::UnprocessableEntityError(inner) => inner.fmt(f), + Error::BadGatewayException(inner) => inner.fmt(f), + Error::BadRequestException(inner) => inner.fmt(f), + Error::ConflictException(inner) => inner.fmt(f), + Error::ForbiddenException(inner) => inner.fmt(f), + Error::GatewayTimeoutException(inner) => inner.fmt(f), + Error::InternalServerErrorException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::TooManyRequestsException(inner) => inner.fmt(f), + Error::UnprocessableEntityException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -35,33 +35,33 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AcceptInputDeviceTransferErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::AcceptInputDeviceTransferErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::AcceptInputDeviceTransferErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::AcceptInputDeviceTransferErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::AcceptInputDeviceTransferErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::AcceptInputDeviceTransferErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::AcceptInputDeviceTransferErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::AcceptInputDeviceTransferErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::AcceptInputDeviceTransferErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) - } - crate::error::AcceptInputDeviceTransferErrorKind::InternalServerErrorError( + crate::error::AcceptInputDeviceTransferErrorKind::GatewayTimeoutException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::AcceptInputDeviceTransferErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::AcceptInputDeviceTransferErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::GatewayTimeoutException(inner), + crate::error::AcceptInputDeviceTransferErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::AcceptInputDeviceTransferErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::AcceptInputDeviceTransferErrorKind::UnprocessableEntityError( + crate::error::AcceptInputDeviceTransferErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::AcceptInputDeviceTransferErrorKind::UnprocessableEntityException( inner, - ) => Error::UnprocessableEntityError(inner), + ) => Error::UnprocessableEntityException(inner), crate::error::AcceptInputDeviceTransferErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -74,29 +74,29 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BatchDeleteErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::BatchDeleteErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::BatchDeleteErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BatchDeleteErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BatchDeleteErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::BatchDeleteErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::BatchDeleteErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::BatchDeleteErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::BatchDeleteErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::BatchDeleteErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::BatchDeleteErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BatchDeleteErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::BatchDeleteErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::BatchDeleteErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::BatchDeleteErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::BatchDeleteErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::BatchDeleteErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -108,29 +108,29 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BatchStartErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::BatchStartErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::BatchStartErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BatchStartErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BatchStartErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::BatchStartErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::BatchStartErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::BatchStartErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::BatchStartErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::BatchStartErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::BatchStartErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BatchStartErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::BatchStartErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::BatchStartErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::BatchStartErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::BatchStartErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::BatchStartErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -142,29 +142,29 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BatchStopErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::BatchStopErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::BatchStopErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BatchStopErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BatchStopErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::BatchStopErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::BatchStopErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::BatchStopErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::BatchStopErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::BatchStopErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::BatchStopErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BatchStopErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::BatchStopErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::BatchStopErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::BatchStopErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::BatchStopErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::BatchStopErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -176,29 +176,29 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BatchUpdateScheduleErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::BatchUpdateScheduleErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::BatchUpdateScheduleErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BatchUpdateScheduleErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BatchUpdateScheduleErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::BatchUpdateScheduleErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::BatchUpdateScheduleErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::BatchUpdateScheduleErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::BatchUpdateScheduleErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BatchUpdateScheduleErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::BatchUpdateScheduleErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::BatchUpdateScheduleErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::BatchUpdateScheduleErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::BatchUpdateScheduleErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::BatchUpdateScheduleErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::BatchUpdateScheduleErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::BatchUpdateScheduleErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -214,33 +214,33 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelInputDeviceTransferErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CancelInputDeviceTransferErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CancelInputDeviceTransferErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CancelInputDeviceTransferErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CancelInputDeviceTransferErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CancelInputDeviceTransferErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CancelInputDeviceTransferErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CancelInputDeviceTransferErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CancelInputDeviceTransferErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) - } - crate::error::CancelInputDeviceTransferErrorKind::InternalServerErrorError( + crate::error::CancelInputDeviceTransferErrorKind::GatewayTimeoutException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::CancelInputDeviceTransferErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::CancelInputDeviceTransferErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::GatewayTimeoutException(inner), + crate::error::CancelInputDeviceTransferErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::CancelInputDeviceTransferErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CancelInputDeviceTransferErrorKind::UnprocessableEntityError( + crate::error::CancelInputDeviceTransferErrorKind::TooManyRequestsException( inner, - ) => Error::UnprocessableEntityError(inner), + ) => Error::TooManyRequestsException(inner), + crate::error::CancelInputDeviceTransferErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::CancelInputDeviceTransferErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -253,29 +253,29 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreateChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreateChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateChannelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateChannelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreateChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreateChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::CreateChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -287,23 +287,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateInputErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreateInputErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreateInputErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateInputErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateInputErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateInputErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateInputErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreateInputErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreateInputErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateInputErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateInputErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateInputErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateInputErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -317,24 +317,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateInputSecurityGroupErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreateInputSecurityGroupErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreateInputSecurityGroupErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateInputSecurityGroupErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateInputSecurityGroupErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateInputSecurityGroupErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateInputSecurityGroupErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreateInputSecurityGroupErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreateInputSecurityGroupErrorKind::InternalServerErrorError( + crate::error::CreateInputSecurityGroupErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::CreateInputSecurityGroupErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } + ) => Error::InternalServerErrorException(inner), + crate::error::CreateInputSecurityGroupErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::CreateInputSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -347,29 +347,29 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreateMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreateMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateMultiplexErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateMultiplexErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreateMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreateMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateMultiplexErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateMultiplexErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateMultiplexErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateMultiplexErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::CreateMultiplexErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -381,30 +381,30 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateMultiplexProgramErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreateMultiplexProgramErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreateMultiplexProgramErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateMultiplexProgramErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateMultiplexProgramErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateMultiplexProgramErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::CreateMultiplexProgramErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateMultiplexProgramErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateMultiplexProgramErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreateMultiplexProgramErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreateMultiplexProgramErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::CreateMultiplexProgramErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::CreateMultiplexProgramErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateMultiplexProgramErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::CreateMultiplexProgramErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } + crate::error::CreateMultiplexProgramErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::CreateMultiplexProgramErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -417,23 +417,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreatePartnerInputErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::CreatePartnerInputErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::CreatePartnerInputErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreatePartnerInputErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreatePartnerInputErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreatePartnerInputErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreatePartnerInputErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::CreatePartnerInputErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::CreatePartnerInputErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreatePartnerInputErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreatePartnerInputErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreatePartnerInputErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreatePartnerInputErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -447,17 +447,17 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateTagsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateTagsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateTagsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateTagsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateTagsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateTagsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateTagsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateTagsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CreateTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -469,29 +469,29 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteChannelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteChannelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -503,29 +503,29 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteInputErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteInputErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteInputErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteInputErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteInputErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteInputErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteInputErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteInputErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteInputErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteInputErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteInputErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteInputErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteInputErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteInputErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteInputErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteInputErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteInputErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -539,27 +539,27 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteInputSecurityGroupErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteInputSecurityGroupErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteInputSecurityGroupErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteInputSecurityGroupErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteInputSecurityGroupErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteInputSecurityGroupErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteInputSecurityGroupErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteInputSecurityGroupErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteInputSecurityGroupErrorKind::InternalServerErrorError( + crate::error::DeleteInputSecurityGroupErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::DeleteInputSecurityGroupErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::DeleteInputSecurityGroupErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::InternalServerErrorException(inner), + crate::error::DeleteInputSecurityGroupErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::DeleteInputSecurityGroupErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DeleteInputSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -572,29 +572,29 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteMultiplexErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteMultiplexErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteMultiplexErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteMultiplexErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteMultiplexErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteMultiplexErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteMultiplexErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -606,29 +606,29 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteMultiplexProgramErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteMultiplexProgramErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteMultiplexProgramErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteMultiplexProgramErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteMultiplexProgramErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteMultiplexProgramErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::DeleteMultiplexProgramErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteMultiplexProgramErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::DeleteMultiplexProgramErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteMultiplexProgramErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteMultiplexProgramErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteMultiplexProgramErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -642,29 +642,29 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteReservationErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteReservationErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteReservationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteReservationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteReservationErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteReservationErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::DeleteReservationErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteReservationErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteReservationErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteReservationErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteReservationErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteReservationErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteReservationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteReservationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteReservationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteReservationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteReservationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -678,26 +678,26 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteScheduleErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DeleteScheduleErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DeleteScheduleErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteScheduleErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteScheduleErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteScheduleErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteScheduleErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DeleteScheduleErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DeleteScheduleErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteScheduleErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteScheduleErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteScheduleErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteScheduleErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteScheduleErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteScheduleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -709,17 +709,17 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteTagsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteTagsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteTagsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteTagsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteTagsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteTagsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteTagsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteTagsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::DeleteTagsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -731,26 +731,26 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -762,26 +762,26 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeInputErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeInputErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeInputErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeInputErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeInputErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeInputErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeInputErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeInputErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeInputErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeInputErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeInputErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeInputErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeInputErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeInputErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeInputErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -793,26 +793,26 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeInputDeviceErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeInputDeviceErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeInputDeviceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeInputDeviceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeInputDeviceErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeInputDeviceErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeInputDeviceErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeInputDeviceErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeInputDeviceErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeInputDeviceErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeInputDeviceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeInputDeviceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeInputDeviceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeInputDeviceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeInputDeviceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -829,32 +829,16 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeInputDeviceThumbnailErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) - } - crate::error::DescribeInputDeviceThumbnailErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DescribeInputDeviceThumbnailErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) - } - crate::error::DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) - } - crate::error::DescribeInputDeviceThumbnailErrorKind::InternalServerErrorError( - inner, - ) => Error::InternalServerErrorError(inner), - crate::error::DescribeInputDeviceThumbnailErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::DescribeInputDeviceThumbnailErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::DescribeInputDeviceThumbnailErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DescribeInputDeviceThumbnailErrorKind::BadGatewayException(inner) => Error::BadGatewayException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::ForbiddenException(inner) => Error::ForbiddenException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutException(inner) => Error::GatewayTimeoutException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::DescribeInputDeviceThumbnailErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -865,27 +849,27 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeInputSecurityGroupErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) - } - crate::error::DescribeInputSecurityGroupErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeInputSecurityGroupErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeInputSecurityGroupErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeInputSecurityGroupErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeInputSecurityGroupErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeInputSecurityGroupErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeInputSecurityGroupErrorKind::InternalServerErrorError( + crate::error::DescribeInputSecurityGroupErrorKind::GatewayTimeoutException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::DescribeInputSecurityGroupErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::DescribeInputSecurityGroupErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::GatewayTimeoutException(inner), + crate::error::DescribeInputSecurityGroupErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::DescribeInputSecurityGroupErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::DescribeInputSecurityGroupErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DescribeInputSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -898,26 +882,26 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeMultiplexErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeMultiplexErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeMultiplexErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeMultiplexErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeMultiplexErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -933,27 +917,27 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMultiplexProgramErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeMultiplexProgramErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeMultiplexProgramErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeMultiplexProgramErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeMultiplexProgramErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeMultiplexProgramErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeMultiplexProgramErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeMultiplexProgramErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeMultiplexProgramErrorKind::InternalServerErrorError( + crate::error::DescribeMultiplexProgramErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::DescribeMultiplexProgramErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::DescribeMultiplexProgramErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::InternalServerErrorException(inner), + crate::error::DescribeMultiplexProgramErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::DescribeMultiplexProgramErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DescribeMultiplexProgramErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -966,26 +950,26 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeOfferingErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeOfferingErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeOfferingErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeOfferingErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeOfferingErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeOfferingErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeOfferingErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeOfferingErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeOfferingErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeOfferingErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeOfferingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeOfferingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeOfferingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeOfferingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeOfferingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -999,26 +983,26 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeReservationErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeReservationErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeReservationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeReservationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeReservationErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeReservationErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeReservationErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeReservationErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeReservationErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeReservationErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeReservationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeReservationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeReservationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeReservationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeReservationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1032,26 +1016,26 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeScheduleErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::DescribeScheduleErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::DescribeScheduleErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DescribeScheduleErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DescribeScheduleErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeScheduleErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeScheduleErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::DescribeScheduleErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::DescribeScheduleErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeScheduleErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeScheduleErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeScheduleErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeScheduleErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeScheduleErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DescribeScheduleErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1065,23 +1049,23 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListChannelsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListChannelsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListChannelsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListChannelsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListChannelsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListChannelsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListChannelsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListChannelsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListChannelsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListChannelsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListChannelsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListChannelsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListChannelsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1093,23 +1077,23 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInputDevicesErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListInputDevicesErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListInputDevicesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListInputDevicesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListInputDevicesErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListInputDevicesErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListInputDevicesErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListInputDevicesErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListInputDevicesErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListInputDevicesErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListInputDevicesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListInputDevicesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListInputDevicesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1125,27 +1109,27 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInputDeviceTransfersErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListInputDeviceTransfersErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListInputDeviceTransfersErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListInputDeviceTransfersErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListInputDeviceTransfersErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListInputDeviceTransfersErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListInputDeviceTransfersErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListInputDeviceTransfersErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListInputDeviceTransfersErrorKind::InternalServerErrorError( + crate::error::ListInputDeviceTransfersErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::ListInputDeviceTransfersErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::ListInputDeviceTransfersErrorKind::UnprocessableEntityError( + ) => Error::InternalServerErrorException(inner), + crate::error::ListInputDeviceTransfersErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::ListInputDeviceTransfersErrorKind::UnprocessableEntityException( inner, - ) => Error::UnprocessableEntityError(inner), + ) => Error::UnprocessableEntityException(inner), crate::error::ListInputDeviceTransfersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1158,23 +1142,23 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInputsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListInputsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListInputsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListInputsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListInputsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListInputsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListInputsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListInputsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListInputsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListInputsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListInputsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListInputsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListInputsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1188,23 +1172,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListInputSecurityGroupsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListInputSecurityGroupsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListInputSecurityGroupsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListInputSecurityGroupsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListInputSecurityGroupsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListInputSecurityGroupsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListInputSecurityGroupsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListInputSecurityGroupsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListInputSecurityGroupsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::ListInputSecurityGroupsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListInputSecurityGroupsErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::ListInputSecurityGroupsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListInputSecurityGroupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1218,23 +1202,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListMultiplexesErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListMultiplexesErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListMultiplexesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListMultiplexesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListMultiplexesErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListMultiplexesErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListMultiplexesErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListMultiplexesErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListMultiplexesErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListMultiplexesErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListMultiplexesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListMultiplexesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListMultiplexesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1246,26 +1230,26 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListMultiplexProgramsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) - } - crate::error::ListMultiplexProgramsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListMultiplexProgramsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListMultiplexProgramsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListMultiplexProgramsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListMultiplexProgramsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListMultiplexProgramsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListMultiplexProgramsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListMultiplexProgramsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListMultiplexProgramsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListMultiplexProgramsErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::ListMultiplexProgramsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListMultiplexProgramsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListMultiplexProgramsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListMultiplexProgramsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1279,23 +1263,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOfferingsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListOfferingsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListOfferingsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListOfferingsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListOfferingsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListOfferingsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListOfferingsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListOfferingsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListOfferingsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListOfferingsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListOfferingsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListOfferingsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListOfferingsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1307,23 +1291,23 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListReservationsErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::ListReservationsErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::ListReservationsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListReservationsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListReservationsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListReservationsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListReservationsErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::ListReservationsErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::ListReservationsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListReservationsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListReservationsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListReservationsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListReservationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1337,17 +1321,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListTagsForResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListTagsForResourceErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListTagsForResourceErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListTagsForResourceErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListTagsForResourceErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListTagsForResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListTagsForResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1361,29 +1345,29 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PurchaseOfferingErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::PurchaseOfferingErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::PurchaseOfferingErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PurchaseOfferingErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PurchaseOfferingErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PurchaseOfferingErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PurchaseOfferingErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::PurchaseOfferingErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::PurchaseOfferingErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::PurchaseOfferingErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::PurchaseOfferingErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::PurchaseOfferingErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::PurchaseOfferingErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PurchaseOfferingErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PurchaseOfferingErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PurchaseOfferingErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PurchaseOfferingErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1399,33 +1383,33 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RejectInputDeviceTransferErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) - } - crate::error::RejectInputDeviceTransferErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::RejectInputDeviceTransferErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::RejectInputDeviceTransferErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::RejectInputDeviceTransferErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::RejectInputDeviceTransferErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::RejectInputDeviceTransferErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::RejectInputDeviceTransferErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::RejectInputDeviceTransferErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::RejectInputDeviceTransferErrorKind::InternalServerErrorError( + crate::error::RejectInputDeviceTransferErrorKind::GatewayTimeoutException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::RejectInputDeviceTransferErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::RejectInputDeviceTransferErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + ) => Error::GatewayTimeoutException(inner), + crate::error::RejectInputDeviceTransferErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::RejectInputDeviceTransferErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::RejectInputDeviceTransferErrorKind::UnprocessableEntityError( + crate::error::RejectInputDeviceTransferErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), + crate::error::RejectInputDeviceTransferErrorKind::UnprocessableEntityException( inner, - ) => Error::UnprocessableEntityError(inner), + ) => Error::UnprocessableEntityException(inner), crate::error::RejectInputDeviceTransferErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1438,29 +1422,29 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::StartChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::StartChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::StartChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::StartChannelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::StartChannelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::StartChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::StartChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::StartChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::StartChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::StartChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::StartChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::StartChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::StartChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::StartChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::StartChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::StartChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1472,29 +1456,29 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::StartMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::StartMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::StartMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::StartMultiplexErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::StartMultiplexErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::StartMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::StartMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::StartMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::StartMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::StartMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::StartMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::StartMultiplexErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::StartMultiplexErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::StartMultiplexErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::StartMultiplexErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::StartMultiplexErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1506,29 +1490,29 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::StopChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::StopChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::StopChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::StopChannelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::StopChannelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::StopChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::StopChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::StopChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::StopChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::StopChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::StopChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::StopChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::StopChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::StopChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::StopChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::StopChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1540,29 +1524,29 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::StopMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::StopMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::StopMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::StopMultiplexErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::StopMultiplexErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::StopMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::StopMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::StopMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::StopMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::StopMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::StopMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::StopMultiplexErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::StopMultiplexErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::StopMultiplexErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::StopMultiplexErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::StopMultiplexErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1574,32 +1558,32 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TransferInputDeviceErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::TransferInputDeviceErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::TransferInputDeviceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TransferInputDeviceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TransferInputDeviceErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::TransferInputDeviceErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::TransferInputDeviceErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::TransferInputDeviceErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::TransferInputDeviceErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::TransferInputDeviceErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::TransferInputDeviceErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::TransferInputDeviceErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::TransferInputDeviceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TransferInputDeviceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TransferInputDeviceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TransferInputDeviceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::TransferInputDeviceErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::TransferInputDeviceErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::TransferInputDeviceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1613,26 +1597,26 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateChannelErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateChannelErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateChannelErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateChannelErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateChannelErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateChannelErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateChannelErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateChannelErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::UpdateChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1644,32 +1628,32 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateChannelClassErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateChannelClassErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateChannelClassErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateChannelClassErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateChannelClassErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateChannelClassErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateChannelClassErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateChannelClassErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateChannelClassErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateChannelClassErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateChannelClassErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateChannelClassErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateChannelClassErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateChannelClassErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateChannelClassErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateChannelClassErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateChannelClassErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateChannelClassErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::UpdateChannelClassErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1683,26 +1667,26 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateInputErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateInputErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateInputErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateInputErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateInputErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateInputErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateInputErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateInputErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateInputErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateInputErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateInputErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateInputErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateInputErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateInputErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::UpdateInputErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1714,29 +1698,29 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateInputDeviceErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateInputDeviceErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateInputDeviceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateInputDeviceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateInputDeviceErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateInputDeviceErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateInputDeviceErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateInputDeviceErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateInputDeviceErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateInputDeviceErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateInputDeviceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateInputDeviceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateInputDeviceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateInputDeviceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateInputDeviceErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateInputDeviceErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::UpdateInputDeviceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1752,26 +1736,26 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateInputSecurityGroupErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateInputSecurityGroupErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateInputSecurityGroupErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateInputSecurityGroupErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateInputSecurityGroupErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateInputSecurityGroupErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateInputSecurityGroupErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateInputSecurityGroupErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateInputSecurityGroupErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateInputSecurityGroupErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateInputSecurityGroupErrorKind::InternalServerErrorError( + crate::error::UpdateInputSecurityGroupErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::UpdateInputSecurityGroupErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + ) => Error::InternalServerErrorException(inner), + crate::error::UpdateInputSecurityGroupErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::UpdateInputSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1785,29 +1769,29 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMultiplexErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateMultiplexErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateMultiplexErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateMultiplexErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateMultiplexErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateMultiplexErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateMultiplexErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateMultiplexErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateMultiplexErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateMultiplexErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateMultiplexErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateMultiplexErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateMultiplexErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateMultiplexErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateMultiplexErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateMultiplexErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::UpdateMultiplexErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1819,30 +1803,30 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMultiplexProgramErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) - } - crate::error::UpdateMultiplexProgramErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateMultiplexProgramErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateMultiplexProgramErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateMultiplexProgramErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateMultiplexProgramErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateMultiplexProgramErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateMultiplexProgramErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateMultiplexProgramErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateMultiplexProgramErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateMultiplexProgramErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateMultiplexProgramErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::UpdateMultiplexProgramErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateMultiplexProgramErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::UpdateMultiplexProgramErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::UpdateMultiplexProgramErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::UpdateMultiplexProgramErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1855,29 +1839,29 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateReservationErrorKind::BadGatewayError(inner) => { - Error::BadGatewayError(inner) + crate::error::UpdateReservationErrorKind::BadGatewayException(inner) => { + Error::BadGatewayException(inner) } - crate::error::UpdateReservationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateReservationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateReservationErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateReservationErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::UpdateReservationErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateReservationErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateReservationErrorKind::GatewayTimeoutError(inner) => { - Error::GatewayTimeoutError(inner) + crate::error::UpdateReservationErrorKind::GatewayTimeoutException(inner) => { + Error::GatewayTimeoutException(inner) } - crate::error::UpdateReservationErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateReservationErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateReservationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateReservationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateReservationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateReservationErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateReservationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/medialive/src/http_serde.rs b/sdk/medialive/src/http_serde.rs index 33a821526f1f..3ee1aa0bbec9 100644 --- a/sdk/medialive/src/http_serde.rs +++ b/sdk/medialive/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_payload_describe_input_device_thumbnail_body( +pub fn deser_payload_describe_input_device_thumbnail_describe_input_device_thumbnail_output_body( body: &mut smithy_http::body::SdkBody, ) -> std::result::Result< smithy_http::byte_stream::ByteStream, @@ -10,7 +10,7 @@ pub fn deser_payload_describe_input_device_thumbnail_body( Ok(smithy_http::byte_stream::ByteStream::new(body)) } -pub fn deser_header_describe_input_device_thumbnail_content_length( +pub fn deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_content_length( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("Content-Length").iter(); @@ -23,7 +23,7 @@ pub fn deser_header_describe_input_device_thumbnail_content_length( } } -pub fn deser_header_describe_input_device_thumbnail_content_type( +pub fn deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -33,7 +33,7 @@ pub fn deser_header_describe_input_device_thumbnail_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_describe_input_device_thumbnail_e_tag( +pub fn deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_e_tag( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -41,7 +41,7 @@ pub fn deser_header_describe_input_device_thumbnail_e_tag( smithy_http::header::one_or_none(headers) } -pub fn deser_header_describe_input_device_thumbnail_last_modified( +pub fn deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_last_modified( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { diff --git a/sdk/medialive/src/input.rs b/sdk/medialive/src/input.rs index 47c0e4c2eab5..029fb17d7b74 100644 --- a/sdk/medialive/src/input.rs +++ b/sdk/medialive/src/input.rs @@ -29,7 +29,7 @@ pub mod accept_input_device_transfer_input { smithy_http::operation::BuildError, > { Ok(crate::input::AcceptInputDeviceTransferInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, }) } } @@ -95,13 +95,31 @@ impl AcceptInputDeviceTransferInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}/accept", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -109,7 +127,7 @@ impl AcceptInputDeviceTransferInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -277,8 +295,9 @@ impl BatchDeleteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/batch/delete").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/batch/delete").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -286,7 +305,7 @@ impl BatchDeleteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -423,8 +442,9 @@ impl BatchStartInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/batch/start").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/batch/start").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -432,7 +452,7 @@ impl BatchStartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -567,8 +587,9 @@ impl BatchStopInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/batch/stop").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/batch/stop").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -576,7 +597,7 @@ impl BatchStopInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -654,7 +675,7 @@ pub mod batch_update_schedule_input { smithy_http::operation::BuildError, > { Ok(crate::input::BatchUpdateScheduleInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, creates: self.creates, deletes: self.deletes, }) @@ -724,13 +745,31 @@ impl BatchUpdateScheduleInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/schedule", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -738,7 +777,7 @@ impl BatchUpdateScheduleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -793,7 +832,7 @@ pub mod cancel_input_device_transfer_input { smithy_http::operation::BuildError, > { Ok(crate::input::CancelInputDeviceTransferInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, }) } } @@ -859,13 +898,31 @@ impl CancelInputDeviceTransferInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}/cancel", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -873,7 +930,7 @@ impl CancelInputDeviceTransferInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1171,8 +1228,9 @@ impl CreateChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/channels").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/channels").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1180,7 +1238,7 @@ impl CreateChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1462,8 +1520,9 @@ impl CreateInputInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1471,7 +1530,7 @@ impl CreateInputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1623,8 +1682,9 @@ impl CreateInputSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputSecurityGroups").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputSecurityGroups").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1632,7 +1692,7 @@ impl CreateInputSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1818,8 +1878,9 @@ impl CreateMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/multiplexes").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/multiplexes").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1827,7 +1888,7 @@ impl CreateMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1917,7 +1978,7 @@ pub mod create_multiplex_program_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateMultiplexProgramInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, multiplex_program_settings: self.multiplex_program_settings, program_name: self.program_name, request_id: self.request_id, @@ -1991,13 +2052,31 @@ impl CreateMultiplexProgramInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/programs", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2005,7 +2084,7 @@ impl CreateMultiplexProgramInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2090,7 +2169,7 @@ pub mod create_partner_input_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreatePartnerInputInput { - input_id: self.input_id.unwrap_or_default(), + input_id: self.input_id, request_id: self.request_id, tags: self.tags, }) @@ -2163,13 +2242,31 @@ impl CreatePartnerInputInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_id = { + let input = &self.input_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputs/{InputId}/partners", - InputId = smithy_http::label::fmt_string(&self.input_id, false) + InputId = input_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2177,7 +2274,7 @@ impl CreatePartnerInputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2249,7 +2346,7 @@ pub mod create_tags_input { ) -> std::result::Result { Ok(crate::input::CreateTagsInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tags: self.tags, }) } @@ -2318,13 +2415,31 @@ impl CreateTagsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) + ResourceArn = resource_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2332,7 +2447,7 @@ impl CreateTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2382,7 +2497,7 @@ pub mod delete_channel_input { ) -> std::result::Result { Ok(crate::input::DeleteChannelInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, }) } } @@ -2447,13 +2562,27 @@ impl DeleteChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/channels/{ChannelId}", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/channels/{ChannelId}", ChannelId = channel_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2461,7 +2590,7 @@ impl DeleteChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2511,7 +2640,7 @@ pub mod delete_input_input { ) -> std::result::Result { Ok(crate::input::DeleteInputInput { - input_id: self.input_id.unwrap_or_default(), + input_id: self.input_id, }) } } @@ -2576,13 +2705,27 @@ impl DeleteInputInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/inputs/{InputId}", - InputId = smithy_http::label::fmt_string(&self.input_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_id = { + let input = &self.input_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/inputs/{InputId}", InputId = input_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2590,7 +2733,7 @@ impl DeleteInputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2645,7 +2788,7 @@ pub mod delete_input_security_group_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteInputSecurityGroupInput { - input_security_group_id: self.input_security_group_id.unwrap_or_default(), + input_security_group_id: self.input_security_group_id, }) } } @@ -2711,14 +2854,31 @@ impl DeleteInputSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_security_group_id = { + let input = &self.input_security_group_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputSecurityGroups/{InputSecurityGroupId}", - InputSecurityGroupId = - smithy_http::label::fmt_string(&self.input_security_group_id, false) + InputSecurityGroupId = input_security_group_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2726,7 +2886,7 @@ impl DeleteInputSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2778,7 +2938,7 @@ pub mod delete_multiplex_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteMultiplexInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, }) } } @@ -2843,13 +3003,31 @@ impl DeleteMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2857,7 +3035,7 @@ impl DeleteMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2919,8 +3097,8 @@ pub mod delete_multiplex_program_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteMultiplexProgramInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), - program_name: self.program_name.unwrap_or_default(), + multiplex_id: self.multiplex_id, + program_name: self.program_name, }) } } @@ -2985,14 +3163,49 @@ impl DeleteMultiplexProgramInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let program_name = { + let input = &self.program_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false), - ProgramName = smithy_http::label::fmt_string(&self.program_name, false) + MultiplexId = multiplex_id, + ProgramName = program_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3000,7 +3213,7 @@ impl DeleteMultiplexProgramInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3055,7 +3268,7 @@ pub mod delete_reservation_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteReservationInput { - reservation_id: self.reservation_id.unwrap_or_default(), + reservation_id: self.reservation_id, }) } } @@ -3120,13 +3333,31 @@ impl DeleteReservationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let reservation_id = { + let input = &self.reservation_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/reservations/{ReservationId}", - ReservationId = smithy_http::label::fmt_string(&self.reservation_id, false) + ReservationId = reservation_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3134,7 +3365,7 @@ impl DeleteReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3186,7 +3417,7 @@ pub mod delete_schedule_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteScheduleInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, }) } } @@ -3251,13 +3482,31 @@ impl DeleteScheduleInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/schedule", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3265,7 +3514,7 @@ impl DeleteScheduleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3329,7 +3578,7 @@ pub mod delete_tags_input { ) -> std::result::Result { Ok(crate::input::DeleteTagsInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tag_keys: self.tag_keys, }) } @@ -3395,13 +3644,31 @@ impl DeleteTagsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) + ResourceArn = resource_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -3417,7 +3684,7 @@ impl DeleteTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -3470,7 +3737,7 @@ pub mod describe_channel_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeChannelInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, }) } } @@ -3535,13 +3802,27 @@ impl DescribeChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/channels/{ChannelId}", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/channels/{ChannelId}", ChannelId = channel_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3549,7 +3830,7 @@ impl DescribeChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3599,7 +3880,7 @@ pub mod describe_input_input { ) -> std::result::Result { Ok(crate::input::DescribeInputInput { - input_id: self.input_id.unwrap_or_default(), + input_id: self.input_id, }) } } @@ -3664,13 +3945,27 @@ impl DescribeInputInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/inputs/{InputId}", - InputId = smithy_http::label::fmt_string(&self.input_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_id = { + let input = &self.input_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/inputs/{InputId}", InputId = input_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3678,7 +3973,7 @@ impl DescribeInputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3733,7 +4028,7 @@ pub mod describe_input_device_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeInputDeviceInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, }) } } @@ -3798,13 +4093,31 @@ impl DescribeInputDeviceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3812,7 +4125,7 @@ impl DescribeInputDeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3880,7 +4193,7 @@ pub mod describe_input_device_thumbnail_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeInputDeviceThumbnailInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, accept: self.accept, }) } @@ -3947,13 +4260,31 @@ impl DescribeInputDeviceThumbnailInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}/thumbnailData", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -3985,7 +4316,7 @@ impl DescribeInputDeviceThumbnailInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) } @@ -4041,7 +4372,7 @@ pub mod describe_input_security_group_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeInputSecurityGroupInput { - input_security_group_id: self.input_security_group_id.unwrap_or_default(), + input_security_group_id: self.input_security_group_id, }) } } @@ -4107,14 +4438,31 @@ impl DescribeInputSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_security_group_id = { + let input = &self.input_security_group_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputSecurityGroups/{InputSecurityGroupId}", - InputSecurityGroupId = - smithy_http::label::fmt_string(&self.input_security_group_id, false) + InputSecurityGroupId = input_security_group_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4122,7 +4470,7 @@ impl DescribeInputSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4174,7 +4522,7 @@ pub mod describe_multiplex_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeMultiplexInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, }) } } @@ -4239,13 +4587,31 @@ impl DescribeMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4253,7 +4619,7 @@ impl DescribeMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4315,8 +4681,8 @@ pub mod describe_multiplex_program_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeMultiplexProgramInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), - program_name: self.program_name.unwrap_or_default(), + multiplex_id: self.multiplex_id, + program_name: self.program_name, }) } } @@ -4382,14 +4748,49 @@ impl DescribeMultiplexProgramInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let program_name = { + let input = &self.program_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false), - ProgramName = smithy_http::label::fmt_string(&self.program_name, false) + MultiplexId = multiplex_id, + ProgramName = program_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4397,7 +4798,7 @@ impl DescribeMultiplexProgramInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4449,7 +4850,7 @@ pub mod describe_offering_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeOfferingInput { - offering_id: self.offering_id.unwrap_or_default(), + offering_id: self.offering_id, }) } } @@ -4514,13 +4915,31 @@ impl DescribeOfferingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let offering_id = { + let input = &self.offering_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "offering_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "offering_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/offerings/{OfferingId}", - OfferingId = smithy_http::label::fmt_string(&self.offering_id, false) + OfferingId = offering_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4528,7 +4947,7 @@ impl DescribeOfferingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4583,7 +5002,7 @@ pub mod describe_reservation_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeReservationInput { - reservation_id: self.reservation_id.unwrap_or_default(), + reservation_id: self.reservation_id, }) } } @@ -4648,13 +5067,31 @@ impl DescribeReservationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let reservation_id = { + let input = &self.reservation_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/reservations/{ReservationId}", - ReservationId = smithy_http::label::fmt_string(&self.reservation_id, false) + ReservationId = reservation_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4662,7 +5099,7 @@ impl DescribeReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4734,7 +5171,7 @@ pub mod describe_schedule_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeScheduleInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, max_results: self.max_results.unwrap_or_default(), next_token: self.next_token, }) @@ -4801,13 +5238,31 @@ impl DescribeScheduleInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/schedule", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4827,7 +5282,7 @@ impl DescribeScheduleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4954,8 +5409,9 @@ impl ListChannelsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/channels").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/channels").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4975,7 +5431,7 @@ impl ListChannelsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5104,8 +5560,9 @@ impl ListInputDevicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputDevices").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputDevices").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5125,7 +5582,7 @@ impl ListInputDevicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5269,8 +5726,9 @@ impl ListInputDeviceTransfersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputDeviceTransfers").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputDeviceTransfers").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5293,7 +5751,7 @@ impl ListInputDeviceTransfersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5420,8 +5878,9 @@ impl ListInputsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputs").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5441,7 +5900,7 @@ impl ListInputsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5571,8 +6030,9 @@ impl ListInputSecurityGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/inputSecurityGroups").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/inputSecurityGroups").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5592,7 +6052,7 @@ impl ListInputSecurityGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5721,8 +6181,9 @@ impl ListMultiplexesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/multiplexes").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/multiplexes").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5742,7 +6203,7 @@ impl ListMultiplexesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5816,7 +6277,7 @@ pub mod list_multiplex_programs_input { > { Ok(crate::input::ListMultiplexProgramsInput { max_results: self.max_results.unwrap_or_default(), - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, next_token: self.next_token, }) } @@ -5882,13 +6343,31 @@ impl ListMultiplexProgramsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/programs", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5908,7 +6387,7 @@ impl ListMultiplexProgramsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6166,8 +6645,9 @@ impl ListOfferingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/offerings").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/offerings").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6223,7 +6703,7 @@ impl ListOfferingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6458,8 +6938,9 @@ impl ListReservationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/prod/reservations").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/prod/reservations").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6506,7 +6987,7 @@ impl ListReservationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6559,7 +7040,7 @@ pub mod list_tags_for_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListTagsForResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, }) } } @@ -6624,13 +7105,31 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) + ResourceArn = resource_arn ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6638,7 +7137,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6754,7 +7253,7 @@ pub mod purchase_offering_input { Ok(crate::input::PurchaseOfferingInput { count: self.count.unwrap_or_default(), name: self.name, - offering_id: self.offering_id.unwrap_or_default(), + offering_id: self.offering_id, request_id: self.request_id, start: self.start, tags: self.tags, @@ -6827,13 +7326,31 @@ impl PurchaseOfferingInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let offering_id = { + let input = &self.offering_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "offering_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "offering_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/offerings/{OfferingId}/purchase", - OfferingId = smithy_http::label::fmt_string(&self.offering_id, false) + OfferingId = offering_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6841,7 +7358,7 @@ impl PurchaseOfferingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6896,7 +7413,7 @@ pub mod reject_input_device_transfer_input { smithy_http::operation::BuildError, > { Ok(crate::input::RejectInputDeviceTransferInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, }) } } @@ -6962,13 +7479,31 @@ impl RejectInputDeviceTransferInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}/reject", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6976,7 +7511,7 @@ impl RejectInputDeviceTransferInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7026,7 +7561,7 @@ pub mod start_channel_input { ) -> std::result::Result { Ok(crate::input::StartChannelInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, }) } } @@ -7091,13 +7626,31 @@ impl StartChannelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/start", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7105,7 +7658,7 @@ impl StartChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7157,7 +7710,7 @@ pub mod start_multiplex_input { smithy_http::operation::BuildError, > { Ok(crate::input::StartMultiplexInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, }) } } @@ -7222,13 +7775,31 @@ impl StartMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/start", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7236,7 +7807,7 @@ impl StartMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7286,7 +7857,7 @@ pub mod stop_channel_input { ) -> std::result::Result { Ok(crate::input::StopChannelInput { - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, }) } } @@ -7351,13 +7922,31 @@ impl StopChannelInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/stop", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7365,7 +7954,7 @@ impl StopChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7415,7 +8004,7 @@ pub mod stop_multiplex_input { ) -> std::result::Result { Ok(crate::input::StopMultiplexInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, }) } } @@ -7480,13 +8069,31 @@ impl StopMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/stop", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7494,7 +8101,7 @@ impl StopMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7588,7 +8195,7 @@ pub mod transfer_input_device_input { smithy_http::operation::BuildError, > { Ok(crate::input::TransferInputDeviceInput { - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, target_customer_id: self.target_customer_id, target_region: self.target_region, transfer_message: self.transfer_message, @@ -7659,13 +8266,31 @@ impl TransferInputDeviceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}/transfer", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7673,7 +8298,7 @@ impl TransferInputDeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7830,7 +8455,7 @@ pub mod update_channel_input { { Ok(crate::input::UpdateChannelInput { cdi_input_specification: self.cdi_input_specification, - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, destinations: self.destinations, encoder_settings: self.encoder_settings, input_attachments: self.input_attachments, @@ -7905,13 +8530,27 @@ impl UpdateChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/channels/{ChannelId}", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/channels/{ChannelId}", ChannelId = channel_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7919,7 +8558,7 @@ impl UpdateChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8000,7 +8639,7 @@ pub mod update_channel_class_input { > { Ok(crate::input::UpdateChannelClassInput { channel_class: self.channel_class, - channel_id: self.channel_id.unwrap_or_default(), + channel_id: self.channel_id, destinations: self.destinations, }) } @@ -8069,13 +8708,31 @@ impl UpdateChannelClassInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let channel_id = { + let input = &self.channel_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "channel_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/channels/{ChannelId}/channelClass", - ChannelId = smithy_http::label::fmt_string(&self.channel_id, false) + ChannelId = channel_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8083,7 +8740,7 @@ impl UpdateChannelClassInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8234,7 +8891,7 @@ pub mod update_input_input { Ok(crate::input::UpdateInputInput { destinations: self.destinations, input_devices: self.input_devices, - input_id: self.input_id.unwrap_or_default(), + input_id: self.input_id, input_security_groups: self.input_security_groups, media_connect_flows: self.media_connect_flows, name: self.name, @@ -8307,13 +8964,27 @@ impl UpdateInputInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/prod/inputs/{InputId}", - InputId = smithy_http::label::fmt_string(&self.input_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_id = { + let input = &self.input_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/prod/inputs/{InputId}", InputId = input_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8321,7 +8992,7 @@ impl UpdateInputInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8421,7 +9092,7 @@ pub mod update_input_device_input { > { Ok(crate::input::UpdateInputDeviceInput { hd_device_settings: self.hd_device_settings, - input_device_id: self.input_device_id.unwrap_or_default(), + input_device_id: self.input_device_id, name: self.name, uhd_device_settings: self.uhd_device_settings, }) @@ -8491,13 +9162,31 @@ impl UpdateInputDeviceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_device_id = { + let input = &self.input_device_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_device_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputDevices/{InputDeviceId}", - InputDeviceId = smithy_http::label::fmt_string(&self.input_device_id, false) + InputDeviceId = input_device_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8505,7 +9194,7 @@ impl UpdateInputDeviceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8600,7 +9289,7 @@ pub mod update_input_security_group_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateInputSecurityGroupInput { - input_security_group_id: self.input_security_group_id.unwrap_or_default(), + input_security_group_id: self.input_security_group_id, tags: self.tags, whitelist_rules: self.whitelist_rules, }) @@ -8671,14 +9360,31 @@ impl UpdateInputSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let input_security_group_id = { + let input = &self.input_security_group_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "input_security_group_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/inputSecurityGroups/{InputSecurityGroupId}", - InputSecurityGroupId = - smithy_http::label::fmt_string(&self.input_security_group_id, false) + InputSecurityGroupId = input_security_group_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8686,7 +9392,7 @@ impl UpdateInputSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8761,7 +9467,7 @@ pub mod update_multiplex_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateMultiplexInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, multiplex_settings: self.multiplex_settings, name: self.name, }) @@ -8830,13 +9536,31 @@ impl UpdateMultiplexInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false) + MultiplexId = multiplex_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8844,7 +9568,7 @@ impl UpdateMultiplexInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8923,9 +9647,9 @@ pub mod update_multiplex_program_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateMultiplexProgramInput { - multiplex_id: self.multiplex_id.unwrap_or_default(), + multiplex_id: self.multiplex_id, multiplex_program_settings: self.multiplex_program_settings, - program_name: self.program_name.unwrap_or_default(), + program_name: self.program_name, }) } } @@ -8993,14 +9717,49 @@ impl UpdateMultiplexProgramInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let multiplex_id = { + let input = &self.multiplex_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "multiplex_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let program_name = { + let input = &self.program_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "program_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}", - MultiplexId = smithy_http::label::fmt_string(&self.multiplex_id, false), - ProgramName = smithy_http::label::fmt_string(&self.program_name, false) + MultiplexId = multiplex_id, + ProgramName = program_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9008,7 +9767,7 @@ impl UpdateMultiplexProgramInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9074,7 +9833,7 @@ pub mod update_reservation_input { > { Ok(crate::input::UpdateReservationInput { name: self.name, - reservation_id: self.reservation_id.unwrap_or_default(), + reservation_id: self.reservation_id, }) } } @@ -9142,13 +9901,31 @@ impl UpdateReservationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let reservation_id = { + let input = &self.reservation_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "reservation_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/prod/reservations/{ReservationId}", - ReservationId = smithy_http::label::fmt_string(&self.reservation_id, false) + ReservationId = reservation_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9156,7 +9933,7 @@ impl UpdateReservationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9189,7 +9966,7 @@ pub struct UpdateReservationInput { /// Name of the reservation pub name: std::option::Option, /// Unique reservation ID, e.g. '1234567' - pub reservation_id: std::string::String, + pub reservation_id: std::option::Option, } impl std::fmt::Debug for UpdateReservationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9205,11 +9982,11 @@ impl std::fmt::Debug for UpdateReservationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateMultiplexProgramInput { /// The ID of the multiplex of the program to update. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The new settings for a multiplex program. pub multiplex_program_settings: std::option::Option, /// The name of the program to update. - pub program_name: std::string::String, + pub program_name: std::option::Option, } impl std::fmt::Debug for UpdateMultiplexProgramInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9229,7 +10006,7 @@ impl std::fmt::Debug for UpdateMultiplexProgramInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateMultiplexInput { /// ID of the multiplex to update. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The new settings for a multiplex. pub multiplex_settings: std::option::Option, /// Name of the multiplex. @@ -9250,7 +10027,7 @@ impl std::fmt::Debug for UpdateMultiplexInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateInputSecurityGroupInput { /// The id of the Input Security Group to update. - pub input_security_group_id: std::string::String, + pub input_security_group_id: std::option::Option, /// A collection of key-value pairs. pub tags: std::option::Option>, @@ -9274,7 +10051,7 @@ pub struct UpdateInputDeviceInput { /// The settings that you want to apply to the HD input device. pub hd_device_settings: std::option::Option, /// The unique ID of the input device. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, /// The name that you assigned to this input device (not the unique ID). pub name: std::option::Option, /// The settings that you want to apply to the UHD input device. @@ -9300,7 +10077,7 @@ pub struct UpdateInputInput { /// Settings for the devices. pub input_devices: std::option::Option>, /// Unique ID of the input. - pub input_id: std::string::String, + pub input_id: std::option::Option, /// A list of security groups referenced by IDs to attach to the input. pub input_security_groups: std::option::Option>, /// A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as one @@ -9339,7 +10116,7 @@ pub struct UpdateChannelClassInput { /// The channel class that you wish to update this channel to use. pub channel_class: std::option::Option, /// Channel Id of the channel whose class should be updated. - pub channel_id: std::string::String, + pub channel_id: std::option::Option, /// A list of output destinations for this channel. pub destinations: std::option::Option>, } @@ -9360,7 +10137,7 @@ pub struct UpdateChannelInput { /// Specification of CDI inputs for this channel pub cdi_input_specification: std::option::Option, /// channel ID - pub channel_id: std::string::String, + pub channel_id: std::option::Option, /// A list of output destinations for this channel. pub destinations: std::option::Option>, /// The encoder settings for this channel. @@ -9397,7 +10174,7 @@ impl std::fmt::Debug for UpdateChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransferInputDeviceInput { /// The unique ID of this input device. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, /// The AWS account ID (12 digits) for the recipient of the device transfer. pub target_customer_id: std::option::Option, /// The target AWS region to transfer the device. @@ -9421,7 +10198,7 @@ impl std::fmt::Debug for TransferInputDeviceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StopMultiplexInput { /// The ID of the multiplex. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, } impl std::fmt::Debug for StopMultiplexInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9436,7 +10213,7 @@ impl std::fmt::Debug for StopMultiplexInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StopChannelInput { /// A request to stop a running channel - pub channel_id: std::string::String, + pub channel_id: std::option::Option, } impl std::fmt::Debug for StopChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9451,7 +10228,7 @@ impl std::fmt::Debug for StopChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartMultiplexInput { /// The ID of the multiplex. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, } impl std::fmt::Debug for StartMultiplexInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9466,7 +10243,7 @@ impl std::fmt::Debug for StartMultiplexInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartChannelInput { /// A request to start a channel - pub channel_id: std::string::String, + pub channel_id: std::option::Option, } impl std::fmt::Debug for StartChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9481,7 +10258,7 @@ impl std::fmt::Debug for StartChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RejectInputDeviceTransferInput { /// The unique ID of the input device to reject. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, } impl std::fmt::Debug for RejectInputDeviceTransferInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9500,7 +10277,7 @@ pub struct PurchaseOfferingInput { /// Name for the new reservation pub name: std::option::Option, /// Offering to purchase, e.g. '87654321' - pub offering_id: std::string::String, + pub offering_id: std::option::Option, /// Unique request ID to be specified. This is needed to prevent retries from creating multiple resources. pub request_id: std::option::Option, /// Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now. @@ -9527,7 +10304,7 @@ impl std::fmt::Debug for PurchaseOfferingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListTagsForResourceInput { /// Placeholder documentation for __string - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, } impl std::fmt::Debug for ListTagsForResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9634,7 +10411,7 @@ pub struct ListMultiplexProgramsInput { /// The maximum number of items to return. pub max_results: i32, /// The ID of the multiplex that the programs belong to. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The token to retrieve the next page of results. pub next_token: std::option::Option, } @@ -9764,7 +10541,7 @@ impl std::fmt::Debug for ListChannelsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeScheduleInput { /// Id of the channel whose schedule is being updated. - pub channel_id: std::string::String, + pub channel_id: std::option::Option, /// Placeholder documentation for MaxResults pub max_results: i32, /// Placeholder documentation for __string @@ -9785,7 +10562,7 @@ impl std::fmt::Debug for DescribeScheduleInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeReservationInput { /// Unique reservation ID, e.g. '1234567' - pub reservation_id: std::string::String, + pub reservation_id: std::option::Option, } impl std::fmt::Debug for DescribeReservationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9800,7 +10577,7 @@ impl std::fmt::Debug for DescribeReservationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeOfferingInput { /// Unique offering ID, e.g. '87654321' - pub offering_id: std::string::String, + pub offering_id: std::option::Option, } impl std::fmt::Debug for DescribeOfferingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9815,9 +10592,9 @@ impl std::fmt::Debug for DescribeOfferingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeMultiplexProgramInput { /// The ID of the multiplex that the program belongs to. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The name of the program. - pub program_name: std::string::String, + pub program_name: std::option::Option, } impl std::fmt::Debug for DescribeMultiplexProgramInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9833,7 +10610,7 @@ impl std::fmt::Debug for DescribeMultiplexProgramInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeMultiplexInput { /// The ID of the multiplex. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, } impl std::fmt::Debug for DescribeMultiplexInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9848,7 +10625,7 @@ impl std::fmt::Debug for DescribeMultiplexInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeInputSecurityGroupInput { /// The id of the Input Security Group to describe - pub input_security_group_id: std::string::String, + pub input_security_group_id: std::option::Option, } impl std::fmt::Debug for DescribeInputSecurityGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9863,7 +10640,7 @@ impl std::fmt::Debug for DescribeInputSecurityGroupInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeInputDeviceThumbnailInput { /// The unique ID of this input device. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, /// The HTTP Accept header. Indicates the requested type for the thumbnail. pub accept: std::option::Option, } @@ -9881,7 +10658,7 @@ impl std::fmt::Debug for DescribeInputDeviceThumbnailInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeInputDeviceInput { /// The unique ID of this input device. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, } impl std::fmt::Debug for DescribeInputDeviceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9896,7 +10673,7 @@ impl std::fmt::Debug for DescribeInputDeviceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeInputInput { /// Unique ID of the input - pub input_id: std::string::String, + pub input_id: std::option::Option, } impl std::fmt::Debug for DescribeInputInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9911,7 +10688,7 @@ impl std::fmt::Debug for DescribeInputInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeChannelInput { /// channel ID - pub channel_id: std::string::String, + pub channel_id: std::option::Option, } impl std::fmt::Debug for DescribeChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9926,7 +10703,7 @@ impl std::fmt::Debug for DescribeChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteTagsInput { /// Placeholder documentation for __string - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, /// An array of tag keys to delete pub tag_keys: std::option::Option>, } @@ -9944,7 +10721,7 @@ impl std::fmt::Debug for DeleteTagsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteScheduleInput { /// Id of the channel whose schedule is being deleted. - pub channel_id: std::string::String, + pub channel_id: std::option::Option, } impl std::fmt::Debug for DeleteScheduleInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9959,7 +10736,7 @@ impl std::fmt::Debug for DeleteScheduleInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteReservationInput { /// Unique reservation ID, e.g. '1234567' - pub reservation_id: std::string::String, + pub reservation_id: std::option::Option, } impl std::fmt::Debug for DeleteReservationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9974,9 +10751,9 @@ impl std::fmt::Debug for DeleteReservationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteMultiplexProgramInput { /// The ID of the multiplex that the program belongs to. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The multiplex program name. - pub program_name: std::string::String, + pub program_name: std::option::Option, } impl std::fmt::Debug for DeleteMultiplexProgramInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9992,7 +10769,7 @@ impl std::fmt::Debug for DeleteMultiplexProgramInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteMultiplexInput { /// The ID of the multiplex. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, } impl std::fmt::Debug for DeleteMultiplexInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10007,7 +10784,7 @@ impl std::fmt::Debug for DeleteMultiplexInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteInputSecurityGroupInput { /// The Input Security Group to delete - pub input_security_group_id: std::string::String, + pub input_security_group_id: std::option::Option, } impl std::fmt::Debug for DeleteInputSecurityGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10022,7 +10799,7 @@ impl std::fmt::Debug for DeleteInputSecurityGroupInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteInputInput { /// Unique ID of the input - pub input_id: std::string::String, + pub input_id: std::option::Option, } impl std::fmt::Debug for DeleteInputInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10037,7 +10814,7 @@ impl std::fmt::Debug for DeleteInputInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteChannelInput { /// Unique ID of the channel. - pub channel_id: std::string::String, + pub channel_id: std::option::Option, } impl std::fmt::Debug for DeleteChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10052,7 +10829,7 @@ impl std::fmt::Debug for DeleteChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateTagsInput { /// Placeholder documentation for __string - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, /// Placeholder documentation for Tags pub tags: std::option::Option>, @@ -10071,7 +10848,7 @@ impl std::fmt::Debug for CreateTagsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreatePartnerInputInput { /// Unique ID of the input. - pub input_id: std::string::String, + pub input_id: std::option::Option, /// Unique identifier of the request to ensure the request is handled /// exactly once in case of retries. pub request_id: std::option::Option, @@ -10094,7 +10871,7 @@ impl std::fmt::Debug for CreatePartnerInputInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateMultiplexProgramInput { /// ID of the multiplex where the program is to be created. - pub multiplex_id: std::string::String, + pub multiplex_id: std::option::Option, /// The settings for this multiplex program. pub multiplex_program_settings: std::option::Option, /// Name of multiplex program. @@ -10278,7 +11055,7 @@ impl std::fmt::Debug for CreateChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CancelInputDeviceTransferInput { /// The unique ID of the input device to cancel. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, } impl std::fmt::Debug for CancelInputDeviceTransferInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -10293,7 +11070,7 @@ impl std::fmt::Debug for CancelInputDeviceTransferInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchUpdateScheduleInput { /// Id of the channel whose schedule is being updated. - pub channel_id: std::string::String, + pub channel_id: std::option::Option, /// Schedule actions to create in the schedule. pub creates: std::option::Option, /// Schedule actions to delete from the schedule. @@ -10374,7 +11151,7 @@ impl std::fmt::Debug for BatchDeleteInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AcceptInputDeviceTransferInput { /// The unique ID of the input device to accept. For example, hd-123456789abcdef. - pub input_device_id: std::string::String, + pub input_device_id: std::option::Option, } impl std::fmt::Debug for AcceptInputDeviceTransferInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/medialive/src/json_deser.rs b/sdk/medialive/src/json_deser.rs index 73cc4ca58dd4..1049bc6287dd 100644 --- a/sdk/medialive/src/json_deser.rs +++ b/sdk/medialive/src/json_deser.rs @@ -1,1117 +1,20778 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn bad_gateway_exception( +pub fn deser_structure_bad_gateway_exceptionjson_err( input: &[u8], - mut builder: crate::error::bad_gateway_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::BadGatewayError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::bad_gateway_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn bad_request_exception( +pub fn deser_structure_bad_request_exceptionjson_err( input: &[u8], - mut builder: crate::error::bad_request_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::BadRequestError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn conflict_exception( +pub fn deser_structure_conflict_exceptionjson_err( input: &[u8], - mut builder: crate::error::conflict_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ConflictError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn forbidden_exception( +pub fn deser_structure_forbidden_exceptionjson_err( input: &[u8], - mut builder: crate::error::forbidden_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ForbiddenError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::forbidden_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn gateway_timeout_exception( +pub fn deser_structure_gateway_timeout_exceptionjson_err( input: &[u8], - mut builder: crate::error::gateway_timeout_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::GatewayTimeoutError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::gateway_timeout_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn internal_server_error_exception( +pub fn deser_structure_internal_server_error_exceptionjson_err( input: &[u8], - mut builder: crate::error::internal_server_error_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalServerErrorError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::internal_server_error_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn not_found_exception( +pub fn deser_structure_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::NotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn too_many_requests_exception( +pub fn deser_structure_too_many_requests_exceptionjson_err( input: &[u8], - mut builder: crate::error::too_many_requests_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TooManyRequestsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::too_many_requests_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unprocessable_entity_exception( +pub fn deser_structure_unprocessable_entity_exceptionjson_err( input: &[u8], - mut builder: crate::error::unprocessable_entity_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnprocessableEntityError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_validation_errors(parsed_body.validation_errors); + mut builder: crate::error::unprocessable_entity_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "validationErrors" => { + builder = builder.set_validation_errors( + crate::json_deser::deser_list___list_of_validation_error(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_delete_deser_operation( +pub fn deser_operation_batch_delete( input: &[u8], mut builder: crate::output::batch_delete_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchDeleteOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_failed(parsed_body.failed); - builder = builder.set_successful(parsed_body.successful); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "failed" => { + builder = builder.set_failed( + crate::json_deser::deser_list___list_of_batch_failed_result_model( + tokens, + )?, + ); + } + "successful" => { + builder = builder.set_successful( + crate::json_deser::deser_list___list_of_batch_successful_result_model( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_start_deser_operation( +pub fn deser_operation_batch_start( input: &[u8], mut builder: crate::output::batch_start_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchStartOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_failed(parsed_body.failed); - builder = builder.set_successful(parsed_body.successful); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "failed" => { + builder = builder.set_failed( + crate::json_deser::deser_list___list_of_batch_failed_result_model( + tokens, + )?, + ); + } + "successful" => { + builder = builder.set_successful( + crate::json_deser::deser_list___list_of_batch_successful_result_model( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_stop_deser_operation( +pub fn deser_operation_batch_stop( input: &[u8], mut builder: crate::output::batch_stop_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchStopOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_failed(parsed_body.failed); - builder = builder.set_successful(parsed_body.successful); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "failed" => { + builder = builder.set_failed( + crate::json_deser::deser_list___list_of_batch_failed_result_model( + tokens, + )?, + ); + } + "successful" => { + builder = builder.set_successful( + crate::json_deser::deser_list___list_of_batch_successful_result_model( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_update_schedule_deser_operation( +pub fn deser_operation_batch_update_schedule( input: &[u8], mut builder: crate::output::batch_update_schedule_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchUpdateScheduleOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_creates(parsed_body.creates); - builder = builder.set_deletes(parsed_body.deletes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "creates" => { + builder = builder.set_creates( + crate::json_deser::deser_structure_batch_schedule_action_create_result( + tokens, + )?, + ); + } + "deletes" => { + builder = builder.set_deletes( + crate::json_deser::deser_structure_batch_schedule_action_delete_result( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_channel_deser_operation( +pub fn deser_operation_create_channel( input: &[u8], mut builder: crate::output::create_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channel(parsed_body.channel); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channel" => { + builder = builder + .set_channel(crate::json_deser::deser_structure_channel(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_input_deser_operation( +pub fn deser_operation_create_input( input: &[u8], mut builder: crate::output::create_input_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateInputOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input(parsed_body.input); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "input" => { + builder = + builder.set_input(crate::json_deser::deser_structure_input(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_input_security_group_deser_operation( +pub fn deser_operation_create_input_security_group( input: &[u8], mut builder: crate::output::create_input_security_group_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_input_security_group_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateInputSecurityGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_security_group(parsed_body.security_group); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "securityGroup" => { + builder = builder.set_security_group( + crate::json_deser::deser_structure_input_security_group(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_multiplex_deser_operation( +pub fn deser_operation_create_multiplex( input: &[u8], mut builder: crate::output::create_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplex(parsed_body.multiplex); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplex" => { + builder = builder + .set_multiplex(crate::json_deser::deser_structure_multiplex(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_multiplex_program_deser_operation( +pub fn deser_operation_create_multiplex_program( input: &[u8], mut builder: crate::output::create_multiplex_program_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateMultiplexProgramOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplex_program(parsed_body.multiplex_program); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplexProgram" => { + builder = builder.set_multiplex_program( + crate::json_deser::deser_structure_multiplex_program(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_partner_input_deser_operation( +pub fn deser_operation_create_partner_input( input: &[u8], mut builder: crate::output::create_partner_input_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreatePartnerInputOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input(parsed_body.input); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "input" => { + builder = + builder.set_input(crate::json_deser::deser_structure_input(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_channel_deser_operation( +pub fn deser_operation_delete_channel( input: &[u8], mut builder: crate::output::delete_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_cdi_input_specification(parsed_body.cdi_input_specification); - builder = builder.set_channel_class(parsed_body.channel_class); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_egress_endpoints(parsed_body.egress_endpoints); - builder = builder.set_encoder_settings(parsed_body.encoder_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_input_attachments(parsed_body.input_attachments); - builder = builder.set_input_specification(parsed_body.input_specification); - builder = builder.set_log_level(parsed_body.log_level); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_vpc(parsed_body.vpc); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification(tokens)?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination(tokens)?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint( + tokens, + )?, + ); + } + "encoderSettings" => { + builder = builder.set_encoder_settings( + crate::json_deser::deser_structure_encoder_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment(tokens)?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_pipeline_detail(tokens)?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_multiplex_deser_operation( +pub fn deser_operation_delete_multiplex( input: &[u8], mut builder: crate::output::delete_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_availability_zones(parsed_body.availability_zones); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_id(parsed_body.id); - builder = builder.set_multiplex_settings(parsed_body.multiplex_settings); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_program_count(Some(parsed_body.program_count)); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_multiplex_output_destination( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_multiplex_program_deser_operation( +pub fn deser_operation_delete_multiplex_program( input: &[u8], mut builder: crate::output::delete_multiplex_program_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DeleteMultiplexProgramOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_multiplex_program_settings(parsed_body.multiplex_program_settings); - builder = builder.set_packet_identifiers_map(parsed_body.packet_identifiers_map); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_program_name(parsed_body.program_name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexProgramSettings" => { + builder = builder.set_multiplex_program_settings( + crate::json_deser::deser_structure_multiplex_program_settings(tokens)?, + ); + } + "packetIdentifiersMap" => { + builder = builder.set_packet_identifiers_map( + crate::json_deser::deser_structure_multiplex_program_packet_identifiers_map(tokens)? + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_multiplex_program_pipeline_detail(tokens)? + ); + } + "programName" => { + builder = builder.set_program_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_reservation_deser_operation( +pub fn deser_operation_delete_reservation( input: &[u8], mut builder: crate::output::delete_reservation_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteReservationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_count(Some(parsed_body.count)); - builder = builder.set_currency_code(parsed_body.currency_code); - builder = builder.set_duration(Some(parsed_body.duration)); - builder = builder.set_duration_units(parsed_body.duration_units); - builder = builder.set_end(parsed_body.end); - builder = builder.set_fixed_price(Some(parsed_body.fixed_price)); - builder = builder.set_name(parsed_body.name); - builder = builder.set_offering_description(parsed_body.offering_description); - builder = builder.set_offering_id(parsed_body.offering_id); - builder = builder.set_offering_type(parsed_body.offering_type); - builder = builder.set_region(parsed_body.region); - builder = builder.set_reservation_id(parsed_body.reservation_id); - builder = builder.set_resource_specification(parsed_body.resource_specification); - builder = builder.set_start(parsed_body.start); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_usage_price(Some(parsed_body.usage_price)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "currencyCode" => { + builder = builder.set_currency_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "durationUnits" => { + builder = builder.set_duration_units( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfferingDurationUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "end" => { + builder = builder.set_end( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fixedPrice" => { + builder = builder.set_fixed_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringDescription" => { + builder = builder.set_offering_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringId" => { + builder = builder.set_offering_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringType" => { + builder = builder.set_offering_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OfferingType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "reservationId" => { + builder = builder.set_reservation_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceSpecification" => { + builder = builder.set_resource_specification( + crate::json_deser::deser_structure_reservation_resource_specification( + tokens, + )?, + ); + } + "start" => { + builder = builder.set_start( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReservationState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "usagePrice" => { + builder = builder.set_usage_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_channel_deser_operation( +pub fn deser_operation_describe_channel( input: &[u8], mut builder: crate::output::describe_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_cdi_input_specification(parsed_body.cdi_input_specification); - builder = builder.set_channel_class(parsed_body.channel_class); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_egress_endpoints(parsed_body.egress_endpoints); - builder = builder.set_encoder_settings(parsed_body.encoder_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_input_attachments(parsed_body.input_attachments); - builder = builder.set_input_specification(parsed_body.input_specification); - builder = builder.set_log_level(parsed_body.log_level); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_vpc(parsed_body.vpc); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification(tokens)?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination(tokens)?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint( + tokens, + )?, + ); + } + "encoderSettings" => { + builder = builder.set_encoder_settings( + crate::json_deser::deser_structure_encoder_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment(tokens)?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_pipeline_detail(tokens)?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_input_deser_operation( +pub fn deser_operation_describe_input( input: &[u8], mut builder: crate::output::describe_input_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeInputOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_attached_channels(parsed_body.attached_channels); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_id(parsed_body.id); - builder = builder.set_input_class(parsed_body.input_class); - builder = builder.set_input_devices(parsed_body.input_devices); - builder = builder.set_input_partner_ids(parsed_body.input_partner_ids); - builder = builder.set_input_source_type(parsed_body.input_source_type); - builder = builder.set_media_connect_flows(parsed_body.media_connect_flows); - builder = builder.set_name(parsed_body.name); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_security_groups(parsed_body.security_groups); - builder = builder.set_sources(parsed_body.sources); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_type(parsed_body.r#type); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "attachedChannels" => { + builder = builder.set_attached_channels( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_input_destination(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputClass" => { + builder = builder.set_input_class( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "inputDevices" => { + builder = builder.set_input_devices( + crate::json_deser::deser_list___list_of_input_device_settings(tokens)?, + ); + } + "inputPartnerIds" => { + builder = builder.set_input_partner_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "inputSourceType" => { + builder = builder.set_input_source_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputSourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "mediaConnectFlows" => { + builder = builder.set_media_connect_flows( + crate::json_deser::deser_list___list_of_media_connect_flow(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityGroups" => { + builder = builder.set_security_groups( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "sources" => { + builder = builder.set_sources( + crate::json_deser::deser_list___list_of_input_source(tokens)?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_input_device_deser_operation( +pub fn deser_operation_describe_input_device( input: &[u8], mut builder: crate::output::describe_input_device_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeInputDeviceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_connection_state(parsed_body.connection_state); - builder = builder.set_device_settings_sync_state(parsed_body.device_settings_sync_state); - builder = builder.set_device_update_status(parsed_body.device_update_status); - builder = builder.set_hd_device_settings(parsed_body.hd_device_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_mac_address(parsed_body.mac_address); - builder = builder.set_name(parsed_body.name); - builder = builder.set_network_settings(parsed_body.network_settings); - builder = builder.set_serial_number(parsed_body.serial_number); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_uhd_device_settings(parsed_body.uhd_device_settings); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionState" => { + builder = builder.set_connection_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceConnectionState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceSettingsSyncState" => { + builder = builder.set_device_settings_sync_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceSettingsSyncState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceUpdateStatus" => { + builder = builder.set_device_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DeviceUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "hdDeviceSettings" => { + builder = builder.set_hd_device_settings( + crate::json_deser::deser_structure_input_device_hd_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "macAddress" => { + builder = builder.set_mac_address( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkSettings" => { + builder = builder.set_network_settings( + crate::json_deser::deser_structure_input_device_network_settings( + tokens, + )?, + ); + } + "serialNumber" => { + builder = builder.set_serial_number( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputDeviceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "uhdDeviceSettings" => { + builder = builder.set_uhd_device_settings( + crate::json_deser::deser_structure_input_device_uhd_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_input_security_group_deser_operation( +pub fn deser_operation_describe_input_security_group( input: &[u8], mut builder: crate::output::describe_input_security_group_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_input_security_group_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeInputSecurityGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_id(parsed_body.id); - builder = builder.set_inputs(parsed_body.inputs); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_whitelist_rules(parsed_body.whitelist_rules); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputs" => { + builder = builder + .set_inputs(crate::json_deser::deser_list___list_of__string(tokens)?); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputSecurityGroupState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "whitelistRules" => { + builder = builder.set_whitelist_rules( + crate::json_deser::deser_list___list_of_input_whitelist_rule(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_multiplex_deser_operation( +pub fn deser_operation_describe_multiplex( input: &[u8], mut builder: crate::output::describe_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_availability_zones(parsed_body.availability_zones); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_id(parsed_body.id); - builder = builder.set_multiplex_settings(parsed_body.multiplex_settings); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_program_count(Some(parsed_body.program_count)); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_multiplex_output_destination( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_multiplex_program_deser_operation( +pub fn deser_operation_describe_multiplex_program( input: &[u8], mut builder: crate::output::describe_multiplex_program_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeMultiplexProgramOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_multiplex_program_settings(parsed_body.multiplex_program_settings); - builder = builder.set_packet_identifiers_map(parsed_body.packet_identifiers_map); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_program_name(parsed_body.program_name); +) -> Result< + crate::output::describe_multiplex_program_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexProgramSettings" => { + builder = builder.set_multiplex_program_settings( + crate::json_deser::deser_structure_multiplex_program_settings(tokens)?, + ); + } + "packetIdentifiersMap" => { + builder = builder.set_packet_identifiers_map( + crate::json_deser::deser_structure_multiplex_program_packet_identifiers_map(tokens)? + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_multiplex_program_pipeline_detail(tokens)? + ); + } + "programName" => { + builder = builder.set_program_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_offering_deser_operation( +pub fn deser_operation_describe_offering( input: &[u8], mut builder: crate::output::describe_offering_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeOfferingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_currency_code(parsed_body.currency_code); - builder = builder.set_duration(Some(parsed_body.duration)); - builder = builder.set_duration_units(parsed_body.duration_units); - builder = builder.set_fixed_price(Some(parsed_body.fixed_price)); - builder = builder.set_offering_description(parsed_body.offering_description); - builder = builder.set_offering_id(parsed_body.offering_id); - builder = builder.set_offering_type(parsed_body.offering_type); - builder = builder.set_region(parsed_body.region); - builder = builder.set_resource_specification(parsed_body.resource_specification); - builder = builder.set_usage_price(Some(parsed_body.usage_price)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "currencyCode" => { + builder = builder.set_currency_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "durationUnits" => { + builder = builder.set_duration_units( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfferingDurationUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "fixedPrice" => { + builder = builder.set_fixed_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + "offeringDescription" => { + builder = builder.set_offering_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringId" => { + builder = builder.set_offering_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringType" => { + builder = builder.set_offering_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OfferingType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceSpecification" => { + builder = builder.set_resource_specification( + crate::json_deser::deser_structure_reservation_resource_specification( + tokens, + )?, + ); + } + "usagePrice" => { + builder = builder.set_usage_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_reservation_deser_operation( +pub fn deser_operation_describe_reservation( input: &[u8], mut builder: crate::output::describe_reservation_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeReservationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_count(Some(parsed_body.count)); - builder = builder.set_currency_code(parsed_body.currency_code); - builder = builder.set_duration(Some(parsed_body.duration)); - builder = builder.set_duration_units(parsed_body.duration_units); - builder = builder.set_end(parsed_body.end); - builder = builder.set_fixed_price(Some(parsed_body.fixed_price)); - builder = builder.set_name(parsed_body.name); - builder = builder.set_offering_description(parsed_body.offering_description); - builder = builder.set_offering_id(parsed_body.offering_id); - builder = builder.set_offering_type(parsed_body.offering_type); - builder = builder.set_region(parsed_body.region); - builder = builder.set_reservation_id(parsed_body.reservation_id); - builder = builder.set_resource_specification(parsed_body.resource_specification); - builder = builder.set_start(parsed_body.start); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_usage_price(Some(parsed_body.usage_price)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "currencyCode" => { + builder = builder.set_currency_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "durationUnits" => { + builder = builder.set_duration_units( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfferingDurationUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "end" => { + builder = builder.set_end( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fixedPrice" => { + builder = builder.set_fixed_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringDescription" => { + builder = builder.set_offering_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringId" => { + builder = builder.set_offering_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringType" => { + builder = builder.set_offering_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OfferingType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "reservationId" => { + builder = builder.set_reservation_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceSpecification" => { + builder = builder.set_resource_specification( + crate::json_deser::deser_structure_reservation_resource_specification( + tokens, + )?, + ); + } + "start" => { + builder = builder.set_start( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReservationState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "usagePrice" => { + builder = builder.set_usage_price( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_schedule_deser_operation( +pub fn deser_operation_describe_schedule( input: &[u8], mut builder: crate::output::describe_schedule_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeScheduleOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_schedule_actions(parsed_body.schedule_actions); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "scheduleActions" => { + builder = builder.set_schedule_actions( + crate::json_deser::deser_list___list_of_schedule_action(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_channels_deser_operation( +pub fn deser_operation_list_channels( input: &[u8], mut builder: crate::output::list_channels_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListChannelsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channels(parsed_body.channels); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channels" => { + builder = builder.set_channels( + crate::json_deser::deser_list___list_of_channel_summary(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_input_devices_deser_operation( +pub fn deser_operation_list_input_devices( input: &[u8], mut builder: crate::output::list_input_devices_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListInputDevicesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input_devices(parsed_body.input_devices); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputDevices" => { + builder = builder.set_input_devices( + crate::json_deser::deser_list___list_of_input_device_summary(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_input_device_transfers_deser_operation( +pub fn deser_operation_list_input_device_transfers( input: &[u8], mut builder: crate::output::list_input_device_transfers_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_input_device_transfers_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListInputDeviceTransfersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input_device_transfers(parsed_body.input_device_transfers); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputDeviceTransfers" => { + builder = builder.set_input_device_transfers( + crate::json_deser::deser_list___list_of_transferring_input_device_summary(tokens)? + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_inputs_deser_operation( +pub fn deser_operation_list_inputs( input: &[u8], mut builder: crate::output::list_inputs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListInputsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_inputs(parsed_body.inputs); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputs" => { + builder = builder + .set_inputs(crate::json_deser::deser_list___list_of_input(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_input_security_groups_deser_operation( +pub fn deser_operation_list_input_security_groups( input: &[u8], mut builder: crate::output::list_input_security_groups_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListInputSecurityGroupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input_security_groups(parsed_body.input_security_groups); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result< + crate::output::list_input_security_groups_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputSecurityGroups" => { + builder = builder.set_input_security_groups( + crate::json_deser::deser_list___list_of_input_security_group(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_multiplexes_deser_operation( +pub fn deser_operation_list_multiplexes( input: &[u8], mut builder: crate::output::list_multiplexes_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListMultiplexesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplexes(parsed_body.multiplexes); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplexes" => { + builder = builder.set_multiplexes( + crate::json_deser::deser_list___list_of_multiplex_summary(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_multiplex_programs_deser_operation( +pub fn deser_operation_list_multiplex_programs( input: &[u8], mut builder: crate::output::list_multiplex_programs_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListMultiplexProgramsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplex_programs(parsed_body.multiplex_programs); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplexPrograms" => { + builder = builder.set_multiplex_programs( + crate::json_deser::deser_list___list_of_multiplex_program_summary( + tokens, + )?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_offerings_deser_operation( +pub fn deser_operation_list_offerings( input: &[u8], mut builder: crate::output::list_offerings_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListOfferingsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_offerings(parsed_body.offerings); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offerings" => { + builder = builder.set_offerings( + crate::json_deser::deser_list___list_of_offering(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_reservations_deser_operation( +pub fn deser_operation_list_reservations( input: &[u8], mut builder: crate::output::list_reservations_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListReservationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_reservations(parsed_body.reservations); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "reservations" => { + builder = builder.set_reservations( + crate::json_deser::deser_list___list_of_reservation(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn purchase_offering_deser_operation( +pub fn deser_operation_purchase_offering( input: &[u8], mut builder: crate::output::purchase_offering_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PurchaseOfferingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_reservation(parsed_body.reservation); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "reservation" => { + builder = builder.set_reservation( + crate::json_deser::deser_structure_reservation(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_channel_deser_operation( +pub fn deser_operation_start_channel( input: &[u8], mut builder: crate::output::start_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_cdi_input_specification(parsed_body.cdi_input_specification); - builder = builder.set_channel_class(parsed_body.channel_class); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_egress_endpoints(parsed_body.egress_endpoints); - builder = builder.set_encoder_settings(parsed_body.encoder_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_input_attachments(parsed_body.input_attachments); - builder = builder.set_input_specification(parsed_body.input_specification); - builder = builder.set_log_level(parsed_body.log_level); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_vpc(parsed_body.vpc); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification(tokens)?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination(tokens)?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint( + tokens, + )?, + ); + } + "encoderSettings" => { + builder = builder.set_encoder_settings( + crate::json_deser::deser_structure_encoder_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment(tokens)?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_pipeline_detail(tokens)?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_multiplex_deser_operation( +pub fn deser_operation_start_multiplex( input: &[u8], mut builder: crate::output::start_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_availability_zones(parsed_body.availability_zones); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_id(parsed_body.id); - builder = builder.set_multiplex_settings(parsed_body.multiplex_settings); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_program_count(Some(parsed_body.program_count)); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_multiplex_output_destination( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_channel_deser_operation( +pub fn deser_operation_stop_channel( input: &[u8], mut builder: crate::output::stop_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StopChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_cdi_input_specification(parsed_body.cdi_input_specification); - builder = builder.set_channel_class(parsed_body.channel_class); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_egress_endpoints(parsed_body.egress_endpoints); - builder = builder.set_encoder_settings(parsed_body.encoder_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_input_attachments(parsed_body.input_attachments); - builder = builder.set_input_specification(parsed_body.input_specification); - builder = builder.set_log_level(parsed_body.log_level); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipeline_details(parsed_body.pipeline_details); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_vpc(parsed_body.vpc); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification(tokens)?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination(tokens)?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint( + tokens, + )?, + ); + } + "encoderSettings" => { + builder = builder.set_encoder_settings( + crate::json_deser::deser_structure_encoder_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment(tokens)?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_pipeline_detail(tokens)?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_multiplex_deser_operation( +pub fn deser_operation_stop_multiplex( input: &[u8], mut builder: crate::output::stop_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StopMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_availability_zones(parsed_body.availability_zones); - builder = builder.set_destinations(parsed_body.destinations); - builder = builder.set_id(parsed_body.id); - builder = builder.set_multiplex_settings(parsed_body.multiplex_settings); - builder = builder.set_name(parsed_body.name); - builder = builder.set_pipelines_running_count(Some(parsed_body.pipelines_running_count)); - builder = builder.set_program_count(Some(parsed_body.program_count)); - builder = builder.set_state(parsed_body.state); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_multiplex_output_destination( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_channel_deser_operation( +pub fn deser_operation_update_channel( input: &[u8], mut builder: crate::output::update_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channel(parsed_body.channel); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channel" => { + builder = builder + .set_channel(crate::json_deser::deser_structure_channel(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_channel_class_deser_operation( +pub fn deser_operation_update_channel_class( input: &[u8], mut builder: crate::output::update_channel_class_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateChannelClassOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channel(parsed_body.channel); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channel" => { + builder = builder + .set_channel(crate::json_deser::deser_structure_channel(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_input_deser_operation( +pub fn deser_operation_update_input( input: &[u8], mut builder: crate::output::update_input_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateInputOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_input(parsed_body.input); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "input" => { + builder = + builder.set_input(crate::json_deser::deser_structure_input(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_input_device_deser_operation( +pub fn deser_operation_update_input_device( input: &[u8], mut builder: crate::output::update_input_device_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateInputDeviceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_connection_state(parsed_body.connection_state); - builder = builder.set_device_settings_sync_state(parsed_body.device_settings_sync_state); - builder = builder.set_device_update_status(parsed_body.device_update_status); - builder = builder.set_hd_device_settings(parsed_body.hd_device_settings); - builder = builder.set_id(parsed_body.id); - builder = builder.set_mac_address(parsed_body.mac_address); - builder = builder.set_name(parsed_body.name); - builder = builder.set_network_settings(parsed_body.network_settings); - builder = builder.set_serial_number(parsed_body.serial_number); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_uhd_device_settings(parsed_body.uhd_device_settings); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionState" => { + builder = builder.set_connection_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceConnectionState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceSettingsSyncState" => { + builder = builder.set_device_settings_sync_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceSettingsSyncState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceUpdateStatus" => { + builder = builder.set_device_update_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DeviceUpdateStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "hdDeviceSettings" => { + builder = builder.set_hd_device_settings( + crate::json_deser::deser_structure_input_device_hd_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "macAddress" => { + builder = builder.set_mac_address( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkSettings" => { + builder = builder.set_network_settings( + crate::json_deser::deser_structure_input_device_network_settings( + tokens, + )?, + ); + } + "serialNumber" => { + builder = builder.set_serial_number( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputDeviceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "uhdDeviceSettings" => { + builder = builder.set_uhd_device_settings( + crate::json_deser::deser_structure_input_device_uhd_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_input_security_group_deser_operation( +pub fn deser_operation_update_input_security_group( input: &[u8], mut builder: crate::output::update_input_security_group_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_input_security_group_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateInputSecurityGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_security_group(parsed_body.security_group); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "securityGroup" => { + builder = builder.set_security_group( + crate::json_deser::deser_structure_input_security_group(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_multiplex_deser_operation( +pub fn deser_operation_update_multiplex( input: &[u8], mut builder: crate::output::update_multiplex_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateMultiplexOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplex(parsed_body.multiplex); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplex" => { + builder = builder + .set_multiplex(crate::json_deser::deser_structure_multiplex(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_multiplex_program_deser_operation( +pub fn deser_operation_update_multiplex_program( input: &[u8], mut builder: crate::output::update_multiplex_program_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateMultiplexProgramOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_multiplex_program(parsed_body.multiplex_program); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplexProgram" => { + builder = builder.set_multiplex_program( + crate::json_deser::deser_structure_multiplex_program(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_reservation_deser_operation( +pub fn deser_operation_update_reservation( input: &[u8], mut builder: crate::output::update_reservation_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateReservationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_reservation(parsed_body.reservation); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "reservation" => { + builder = builder.set_reservation( + crate::json_deser::deser_structure_reservation(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_validation_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_validation_error(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_batch_failed_result_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_failed_result_model(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_batch_successful_result_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_successful_result_model( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_batch_schedule_action_create_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchScheduleActionCreateResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scheduleActions" => { + builder = builder.set_schedule_actions( + crate::json_deser::deser_list___list_of_schedule_action( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_schedule_action_delete_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchScheduleActionDeleteResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scheduleActions" => { + builder = builder.set_schedule_actions( + crate::json_deser::deser_list___list_of_schedule_action( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_channel<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Channel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification( + tokens, + )?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination( + tokens, + )?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint(tokens)? + ); + } + "encoderSettings" => { + builder = builder.set_encoder_settings( + crate::json_deser::deser_structure_encoder_settings(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment( + tokens, + )?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_pipeline_detail( + tokens, + )?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Input::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "attachedChannels" => { + builder = builder.set_attached_channels( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_input_destination( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputClass" => { + builder = builder.set_input_class( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "inputDevices" => { + builder = builder.set_input_devices( + crate::json_deser::deser_list___list_of_input_device_settings( + tokens, + )?, + ); + } + "inputPartnerIds" => { + builder = builder.set_input_partner_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "inputSourceType" => { + builder = builder.set_input_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputSourceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "mediaConnectFlows" => { + builder = builder.set_media_connect_flows( + crate::json_deser::deser_list___list_of_media_connect_flow( + tokens, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "securityGroups" => { + builder = builder.set_security_groups( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "sources" => { + builder = builder.set_sources( + crate::json_deser::deser_list___list_of_input_source(tokens)?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_security_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputSecurityGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputs" => { + builder = builder.set_inputs( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputSecurityGroupState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "whitelistRules" => { + builder = builder.set_whitelist_rules( + crate::json_deser::deser_list___list_of_input_whitelist_rule( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Multiplex::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_multiplex_output_destination(tokens)? + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings(tokens)?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_program<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgram::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexProgramSettings" => { + builder = builder.set_multiplex_program_settings( + crate::json_deser::deser_structure_multiplex_program_settings( + tokens, + )?, + ); + } + "packetIdentifiersMap" => { + builder = builder.set_packet_identifiers_map( + crate::json_deser::deser_structure_multiplex_program_packet_identifiers_map(tokens)? + ); + } + "pipelineDetails" => { + builder = builder.set_pipeline_details( + crate::json_deser::deser_list___list_of_multiplex_program_pipeline_detail(tokens)? + ); + } + "programName" => { + builder = builder.set_program_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cdi_input_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CdiInputSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resolution" => { + builder = builder.set_resolution( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CdiInputResolution::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_output_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_output_destination(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_channel_egress_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_channel_egress_endpoint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_encoder_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EncoderSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioDescriptions" => { + builder = builder.set_audio_descriptions( + crate::json_deser::deser_list___list_of_audio_description( + tokens, + )?, + ); + } + "availBlanking" => { + builder = builder.set_avail_blanking( + crate::json_deser::deser_structure_avail_blanking(tokens)?, + ); + } + "availConfiguration" => { + builder = builder.set_avail_configuration( + crate::json_deser::deser_structure_avail_configuration(tokens)?, + ); + } + "blackoutSlate" => { + builder = builder.set_blackout_slate( + crate::json_deser::deser_structure_blackout_slate(tokens)?, + ); + } + "captionDescriptions" => { + builder = builder.set_caption_descriptions( + crate::json_deser::deser_list___list_of_caption_description( + tokens, + )?, + ); + } + "featureActivations" => { + builder = builder.set_feature_activations( + crate::json_deser::deser_structure_feature_activations(tokens)?, + ); + } + "globalConfiguration" => { + builder = builder.set_global_configuration( + crate::json_deser::deser_structure_global_configuration( + tokens, + )?, + ); + } + "motionGraphicsConfiguration" => { + builder = builder.set_motion_graphics_configuration( + crate::json_deser::deser_structure_motion_graphics_configuration(tokens)? + ); + } + "nielsenConfiguration" => { + builder = builder.set_nielsen_configuration( + crate::json_deser::deser_structure_nielsen_configuration( + tokens, + )?, + ); + } + "outputGroups" => { + builder = builder.set_output_groups( + crate::json_deser::deser_list___list_of_output_group(tokens)?, + ); + } + "timecodeConfig" => { + builder = builder.set_timecode_config( + crate::json_deser::deser_structure_timecode_config(tokens)?, + ); + } + "videoDescriptions" => { + builder = builder.set_video_descriptions( + crate::json_deser::deser_list___list_of_video_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_attachment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_input_attachment(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_input_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "codec" => { + builder = builder.set_codec( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputCodec::from(u.as_ref())) + }) + .transpose()?, + ); + } + "maximumBitrate" => { + builder = builder.set_maximum_bitrate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputMaximumBitrate::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "resolution" => { + builder = builder.set_resolution( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputResolution::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_pipeline_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_pipeline_detail(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_vpc_output_settings_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VpcOutputSettingsDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "networkInterfaceIds" => { + builder = builder.set_network_interface_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "securityGroupIds" => { + builder = builder.set_security_group_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "subnetIds" => { + builder = builder.set_subnet_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of__string<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_multiplex_output_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_multiplex_output_destination( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_multiplex_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "maximumVideoBufferDelayMilliseconds" => { + builder = builder.set_maximum_video_buffer_delay_milliseconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "transportStreamBitrate" => { + builder = builder.set_transport_stream_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "transportStreamId" => { + builder = builder.set_transport_stream_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "transportStreamReservedBitrate" => { + builder = builder.set_transport_stream_reserved_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_program_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "preferredChannelPipeline" => { + builder = builder.set_preferred_channel_pipeline( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PreferredChannelPipeline::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "programNumber" => { + builder = builder.set_program_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "serviceDescriptor" => { + builder = builder.set_service_descriptor( + crate::json_deser::deser_structure_multiplex_program_service_descriptor(tokens)? + ); + } + "videoSettings" => { + builder = builder.set_video_settings( + crate::json_deser::deser_structure_multiplex_video_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_program_packet_identifiers_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramPacketIdentifiersMap::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioPids" => { + builder = builder.set_audio_pids( + crate::json_deser::deser_list___list_of__integer(tokens)?, + ); + } + "dvbSubPids" => { + builder = builder.set_dvb_sub_pids( + crate::json_deser::deser_list___list_of__integer(tokens)?, + ); + } + "dvbTeletextPid" => { + builder = builder.set_dvb_teletext_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "etvPlatformPid" => { + builder = builder.set_etv_platform_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "etvSignalPid" => { + builder = builder.set_etv_signal_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "klvDataPids" => { + builder = builder.set_klv_data_pids( + crate::json_deser::deser_list___list_of__integer(tokens)?, + ); + } + "pcrPid" => { + builder = builder.set_pcr_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pmtPid" => { + builder = builder.set_pmt_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "privateMetadataPid" => { + builder = builder.set_private_metadata_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "scte27Pids" => { + builder = builder.set_scte27_pids( + crate::json_deser::deser_list___list_of__integer(tokens)?, + ); + } + "scte35Pid" => { + builder = builder.set_scte35_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "timedMetadataPid" => { + builder = builder.set_timed_metadata_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "videoPid" => { + builder = builder.set_video_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_multiplex_program_pipeline_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_multiplex_program_pipeline_detail( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_reservation_resource_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReservationResourceSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "codec" => { + builder = builder.set_codec( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationCodec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "maximumBitrate" => { + builder = builder.set_maximum_bitrate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationMaximumBitrate::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "maximumFramerate" => { + builder = builder.set_maximum_framerate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationMaximumFramerate::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "resolution" => { + builder = builder.set_resolution( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationResolution::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "resourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationResourceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "specialFeature" => { + builder = builder.set_special_feature( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationSpecialFeature::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "videoQuality" => { + builder = builder.set_video_quality( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationVideoQuality::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_input_destination(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_device_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_input_device_settings(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_media_connect_flow<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_media_connect_flow(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_input_source(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_input_device_hd_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDeviceHdSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "activeInput" => { + builder = builder.set_active_input( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceActiveInput::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "configuredInput" => { + builder = builder.set_configured_input( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceConfiguredInput::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "deviceState" => { + builder = builder.set_device_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "framerate" => { + builder = builder.set_framerate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "height" => { + builder = builder.set_height( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxBitrate" => { + builder = builder.set_max_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "scanType" => { + builder = builder.set_scan_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceScanType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "width" => { + builder = builder.set_width( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_device_network_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDeviceNetworkSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "dnsAddresses" => { + builder = builder.set_dns_addresses( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "gateway" => { + builder = builder.set_gateway( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ipAddress" => { + builder = builder.set_ip_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ipScheme" => { + builder = builder.set_ip_scheme( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceIpScheme::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "subnetMask" => { + builder = builder.set_subnet_mask( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_device_uhd_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDeviceUhdSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "activeInput" => { + builder = builder.set_active_input( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceActiveInput::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "configuredInput" => { + builder = builder.set_configured_input( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceConfiguredInput::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "deviceState" => { + builder = builder.set_device_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "framerate" => { + builder = builder.set_framerate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "height" => { + builder = builder.set_height( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxBitrate" => { + builder = builder.set_max_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "scanType" => { + builder = builder.set_scan_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceScanType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "width" => { + builder = builder.set_width( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_whitelist_rule<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_input_whitelist_rule(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_schedule_action<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_schedule_action(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_channel_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_channel_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_device_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_input_device_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_transferring_input_device_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_transferring_input_device_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_input(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_security_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_input_security_group(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_multiplex_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_multiplex_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_multiplex_program_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_multiplex_program_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_offering<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_offering(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_reservation<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_reservation(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_reservation<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Reservation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "currencyCode" => { + builder = builder.set_currency_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "durationUnits" => { + builder = builder.set_duration_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfferingDurationUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "end" => { + builder = builder.set_end( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fixedPrice" => { + builder = builder.set_fixed_price( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringDescription" => { + builder = builder.set_offering_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringId" => { + builder = builder.set_offering_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringType" => { + builder = builder.set_offering_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OfferingType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "reservationId" => { + builder = builder.set_reservation_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceSpecification" => { + builder = builder.set_resource_specification( + crate::json_deser::deser_structure_reservation_resource_specification(tokens)? + ); + } + "start" => { + builder = builder.set_start( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ReservationState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "usagePrice" => { + builder = builder.set_usage_price( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_validation_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ValidationError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "elementPath" => { + builder = builder.set_element_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "errorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_failed_result_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchFailedResultModel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_successful_result_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchSuccessfulResultModel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "mediaPackageSettings" => { + builder = builder.set_media_package_settings( + crate::json_deser::deser_list___list_of_media_package_output_destination_settings(tokens)? + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_program_channel_destination_settings(tokens)? + ); + } + "settings" => { + builder = builder.set_settings( + crate::json_deser::deser_list___list_of_output_destination_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_channel_egress_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ChannelEgressEndpoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourceIp" => { + builder = builder.set_source_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_audio_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_audio_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_avail_blanking<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AvailBlanking::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "availBlankingImage" => { + builder = builder.set_avail_blanking_image( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AvailBlankingState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_avail_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AvailConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "availSettings" => { + builder = builder.set_avail_settings( + crate::json_deser::deser_structure_avail_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_blackout_slate<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BlackoutSlate::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "blackoutSlateImage" => { + builder = builder.set_blackout_slate_image( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "networkEndBlackout" => { + builder = builder.set_network_end_blackout( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BlackoutSlateNetworkEndBlackout::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "networkEndBlackoutImage" => { + builder = builder.set_network_end_blackout_image( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "networkId" => { + builder = builder.set_network_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BlackoutSlateState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_caption_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_caption_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_feature_activations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FeatureActivations::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputPrepareScheduleActions" => { + builder = builder.set_input_prepare_schedule_actions( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::FeatureActivationsInputPrepareScheduleActions::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_global_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GlobalConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "initialAudioGain" => { + builder = builder.set_initial_audio_gain( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputEndAction" => { + builder = builder.set_input_end_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::GlobalConfigurationInputEndAction::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "inputLossBehavior" => { + builder = builder.set_input_loss_behavior( + crate::json_deser::deser_structure_input_loss_behavior(tokens)?, + ); + } + "outputLockingMode" => { + builder = builder.set_output_locking_mode( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::GlobalConfigurationOutputLockingMode::from(u.as_ref()) + ) + ).transpose()? + ); + } + "outputTimingSource" => { + builder = builder.set_output_timing_source( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::GlobalConfigurationOutputTimingSource::from(u.as_ref()) + ) + ).transpose()? + ); + } + "supportLowFramerateInputs" => { + builder = builder.set_support_low_framerate_inputs( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::GlobalConfigurationLowFramerateInputs::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_motion_graphics_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MotionGraphicsConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "motionGraphicsInsertion" => { + builder = builder.set_motion_graphics_insertion( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MotionGraphicsInsertion::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "motionGraphicsSettings" => { + builder = builder.set_motion_graphics_settings( + crate::json_deser::deser_structure_motion_graphics_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_nielsen_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NielsenConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "distributorId" => { + builder = builder.set_distributor_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nielsenPcmToId3Tagging" => { + builder = builder.set_nielsen_pcm_to_id3_tagging( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NielsenPcmToId3TaggingState::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_output_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_output_group(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_timecode_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TimecodeConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "source" => { + builder = builder.set_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TimecodeConfigSource::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "syncThreshold" => { + builder = builder.set_sync_threshold( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_video_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_video_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_input_attachment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputAttachment::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "automaticInputFailoverSettings" => { + builder = builder.set_automatic_input_failover_settings( + crate::json_deser::deser_structure_automatic_input_failover_settings(tokens)? + ); + } + "inputAttachmentName" => { + builder = builder.set_input_attachment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputId" => { + builder = builder.set_input_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputSettings" => { + builder = builder.set_input_settings( + crate::json_deser::deser_structure_input_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "activeInputAttachmentName" => { + builder = builder.set_active_input_attachment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "activeInputSwitchActionName" => { + builder = builder.set_active_input_switch_action_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "activeMotionGraphicsActionName" => { + builder = builder.set_active_motion_graphics_action_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "activeMotionGraphicsUri" => { + builder = builder.set_active_motion_graphics_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineId" => { + builder = builder.set_pipeline_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_output_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexOutputDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "mediaConnectSettings" => { + builder = builder.set_media_connect_settings( + crate::json_deser::deser_structure_multiplex_media_connect_output_destination_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_program_service_descriptor<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramServiceDescriptor::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "providerName" => { + builder = builder.set_provider_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "serviceName" => { + builder = builder.set_service_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_video_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexVideoSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "constantBitrate" => { + builder = builder.set_constant_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "statmuxSettings" => { + builder = builder.set_statmux_settings( + crate::json_deser::deser_structure_multiplex_statmux_video_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of__integer<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()); + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_multiplex_program_pipeline_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramPipelineDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "activeChannelPipeline" => { + builder = builder.set_active_channel_pipeline( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelineId" => { + builder = builder.set_pipeline_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ip" => { + builder = builder.set_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "port" => { + builder = builder.set_port( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_input_destination_vpc( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_device_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDeviceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_media_connect_flow<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MediaConnectFlow::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "flowArn" => { + builder = builder.set_flow_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "passwordParam" => { + builder = builder.set_password_param( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "username" => { + builder = builder.set_username( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_whitelist_rule<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputWhitelistRule::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cidr" => { + builder = builder.set_cidr( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_schedule_action<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ScheduleAction::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "actionName" => { + builder = builder.set_action_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "scheduleActionSettings" => { + builder = builder.set_schedule_action_settings( + crate::json_deser::deser_structure_schedule_action_settings( + tokens, + )?, + ); + } + "scheduleActionStartSettings" => { + builder = builder.set_schedule_action_start_settings( + crate::json_deser::deser_structure_schedule_action_start_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_channel_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ChannelSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cdiInputSpecification" => { + builder = builder.set_cdi_input_specification( + crate::json_deser::deser_structure_cdi_input_specification( + tokens, + )?, + ); + } + "channelClass" => { + builder = builder.set_channel_class( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelClass::from(u.as_ref())) + }) + .transpose()?, + ); + } + "destinations" => { + builder = builder.set_destinations( + crate::json_deser::deser_list___list_of_output_destination( + tokens, + )?, + ); + } + "egressEndpoints" => { + builder = builder.set_egress_endpoints( + crate::json_deser::deser_list___list_of_channel_egress_endpoint(tokens)? + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputAttachments" => { + builder = builder.set_input_attachments( + crate::json_deser::deser_list___list_of_input_attachment( + tokens, + )?, + ); + } + "inputSpecification" => { + builder = builder.set_input_specification( + crate::json_deser::deser_structure_input_specification(tokens)?, + ); + } + "logLevel" => { + builder = builder.set_log_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LogLevel::from(u.as_ref())) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ChannelState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "vpc" => { + builder = builder.set_vpc( + crate::json_deser::deser_structure_vpc_output_settings_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_device_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDeviceSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "connectionState" => { + builder = builder.set_connection_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceConnectionState::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "deviceSettingsSyncState" => { + builder = builder.set_device_settings_sync_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceSettingsSyncState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceUpdateStatus" => { + builder = builder.set_device_update_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeviceUpdateStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "hdDeviceSettings" => { + builder = builder.set_hd_device_settings( + crate::json_deser::deser_structure_input_device_hd_settings( + tokens, + )?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "macAddress" => { + builder = builder.set_mac_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkSettings" => { + builder = builder.set_network_settings( + crate::json_deser::deser_structure_input_device_network_settings(tokens)? + ); + } + "serialNumber" => { + builder = builder.set_serial_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "uhdDeviceSettings" => { + builder = builder.set_uhd_device_settings( + crate::json_deser::deser_structure_input_device_uhd_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transferring_input_device_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransferringInputDeviceSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "targetCustomerId" => { + builder = builder.set_target_customer_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "transferType" => { + builder = builder.set_transfer_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeviceTransferType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "availabilityZones" => { + builder = builder.set_availability_zones( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "multiplexSettings" => { + builder = builder.set_multiplex_settings( + crate::json_deser::deser_structure_multiplex_settings_summary( + tokens, + )?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pipelinesRunningCount" => { + builder = builder.set_pipelines_running_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "programCount" => { + builder = builder.set_program_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "state" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MultiplexState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_program_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "programName" => { + builder = builder.set_program_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_offering<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Offering::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "currencyCode" => { + builder = builder.set_currency_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "durationUnits" => { + builder = builder.set_duration_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfferingDurationUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "fixedPrice" => { + builder = builder.set_fixed_price( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "offeringDescription" => { + builder = builder.set_offering_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringId" => { + builder = builder.set_offering_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "offeringType" => { + builder = builder.set_offering_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OfferingType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "resourceSpecification" => { + builder = builder.set_resource_specification( + crate::json_deser::deser_structure_reservation_resource_specification(tokens)? + ); + } + "usagePrice" => { + builder = builder.set_usage_price( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_media_package_output_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_media_package_output_destination_settings(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_multiplex_program_channel_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexProgramChannelDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "multiplexId" => { + builder = builder.set_multiplex_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "programName" => { + builder = builder.set_program_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_output_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_output_destination_settings(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_audio_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioNormalizationSettings" => { + builder = builder.set_audio_normalization_settings( + crate::json_deser::deser_structure_audio_normalization_settings(tokens)? + ); + } + "audioSelectorName" => { + builder = builder.set_audio_selector_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "audioType" => { + builder = builder.set_audio_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AudioType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "audioTypeControl" => { + builder = builder.set_audio_type_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioDescriptionAudioTypeControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "codecSettings" => { + builder = builder.set_codec_settings( + crate::json_deser::deser_structure_audio_codec_settings( + tokens, + )?, + ); + } + "languageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "languageCodeControl" => { + builder = builder.set_language_code_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioDescriptionLanguageCodeControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "remixSettings" => { + builder = builder.set_remix_settings( + crate::json_deser::deser_structure_remix_settings(tokens)?, + ); + } + "streamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "passwordParam" => { + builder = builder.set_password_param( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "uri" => { + builder = builder.set_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "username" => { + builder = builder.set_username( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_avail_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AvailSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scte35SpliceInsert" => { + builder = builder.set_scte35_splice_insert( + crate::json_deser::deser_structure_scte35_splice_insert( + tokens, + )?, + ); + } + "scte35TimeSignalApos" => { + builder = builder.set_scte35_time_signal_apos( + crate::json_deser::deser_structure_scte35_time_signal_apos( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_caption_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "captionSelectorName" => { + builder = builder.set_caption_selector_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "destinationSettings" => { + builder = builder.set_destination_settings( + crate::json_deser::deser_structure_caption_destination_settings(tokens)? + ); + } + "languageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "languageDescription" => { + builder = builder.set_language_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_loss_behavior<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputLossBehavior::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "blackFrameMsec" => { + builder = builder.set_black_frame_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputLossImageColor" => { + builder = builder.set_input_loss_image_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputLossImageSlate" => { + builder = builder.set_input_loss_image_slate( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "inputLossImageType" => { + builder = builder.set_input_loss_image_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputLossImageType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "repeatFrameMsec" => { + builder = builder.set_repeat_frame_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_motion_graphics_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MotionGraphicsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "htmlMotionGraphicsSettings" => { + builder = builder.set_html_motion_graphics_settings( + crate::json_deser::deser_structure_html_motion_graphics_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "outputGroupSettings" => { + builder = builder.set_output_group_settings( + crate::json_deser::deser_structure_output_group_settings( + tokens, + )?, + ); + } + "outputs" => { + builder = builder.set_outputs( + crate::json_deser::deser_list___list_of_output(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "codecSettings" => { + builder = builder.set_codec_settings( + crate::json_deser::deser_structure_video_codec_settings( + tokens, + )?, + ); + } + "height" => { + builder = builder.set_height( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "respondToAfd" => { + builder = builder.set_respond_to_afd( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::VideoDescriptionRespondToAfd::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "scalingBehavior" => { + builder = builder.set_scaling_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::VideoDescriptionScalingBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "sharpness" => { + builder = builder.set_sharpness( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "width" => { + builder = builder.set_width( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_automatic_input_failover_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutomaticInputFailoverSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "errorClearTimeMsec" => { + builder = builder.set_error_clear_time_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "failoverConditions" => { + builder = builder.set_failover_conditions( + crate::json_deser::deser_list___list_of_failover_condition( + tokens, + )?, + ); + } + "inputPreference" => { + builder = builder.set_input_preference( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputPreference::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "secondaryInputId" => { + builder = builder.set_secondary_input_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioSelectors" => { + builder = builder.set_audio_selectors( + crate::json_deser::deser_list___list_of_audio_selector(tokens)?, + ); + } + "captionSelectors" => { + builder = builder.set_caption_selectors( + crate::json_deser::deser_list___list_of_caption_selector( + tokens, + )?, + ); + } + "deblockFilter" => { + builder = builder.set_deblock_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDeblockFilter::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "denoiseFilter" => { + builder = builder.set_denoise_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputDenoiseFilter::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "filterStrength" => { + builder = builder.set_filter_strength( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputFilter" => { + builder = builder.set_input_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputFilter::from(u.as_ref())) + }) + .transpose()?, + ); + } + "networkInputSettings" => { + builder = builder.set_network_input_settings( + crate::json_deser::deser_structure_network_input_settings( + tokens, + )?, + ); + } + "smpte2038DataPreference" => { + builder = builder.set_smpte2038_data_preference( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Smpte2038DataPreference::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "sourceEndBehavior" => { + builder = builder.set_source_end_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputSourceEndBehavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "videoSelector" => { + builder = builder.set_video_selector( + crate::json_deser::deser_structure_video_selector(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_media_connect_output_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::MultiplexMediaConnectOutputDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "entitlementArn" => { + builder = builder.set_entitlement_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_statmux_video_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexStatmuxVideoSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "maximumBitrate" => { + builder = builder.set_maximum_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minimumBitrate" => { + builder = builder.set_minimum_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_destination_vpc<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputDestinationVpc::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "availabilityZone" => { + builder = builder.set_availability_zone( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "networkInterfaceId" => { + builder = builder.set_network_interface_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hlsId3SegmentTaggingSettings" => { + builder = builder.set_hls_id3_segment_tagging_settings( + crate::json_deser::deser_structure_hls_id3_segment_tagging_schedule_action_settings(tokens)? + ); + } + "hlsTimedMetadataSettings" => { + builder = builder.set_hls_timed_metadata_settings( + crate::json_deser::deser_structure_hls_timed_metadata_schedule_action_settings(tokens)? + ); + } + "inputPrepareSettings" => { + builder = builder.set_input_prepare_settings( + crate::json_deser::deser_structure_input_prepare_schedule_action_settings(tokens)? + ); + } + "inputSwitchSettings" => { + builder = builder.set_input_switch_settings( + crate::json_deser::deser_structure_input_switch_schedule_action_settings(tokens)? + ); + } + "motionGraphicsImageActivateSettings" => { + builder = builder.set_motion_graphics_image_activate_settings( + crate::json_deser::deser_structure_motion_graphics_activate_schedule_action_settings(tokens)? + ); + } + "motionGraphicsImageDeactivateSettings" => { + builder = builder.set_motion_graphics_image_deactivate_settings( + crate::json_deser::deser_structure_motion_graphics_deactivate_schedule_action_settings(tokens)? + ); + } + "pauseStateSettings" => { + builder = builder.set_pause_state_settings( + crate::json_deser::deser_structure_pause_state_schedule_action_settings(tokens)? + ); + } + "scte35ReturnToNetworkSettings" => { + builder = builder.set_scte35_return_to_network_settings( + crate::json_deser::deser_structure_scte35_return_to_network_schedule_action_settings(tokens)? + ); + } + "scte35SpliceInsertSettings" => { + builder = builder.set_scte35_splice_insert_settings( + crate::json_deser::deser_structure_scte35_splice_insert_schedule_action_settings(tokens)? + ); + } + "scte35TimeSignalSettings" => { + builder = builder.set_scte35_time_signal_settings( + crate::json_deser::deser_structure_scte35_time_signal_schedule_action_settings(tokens)? + ); + } + "staticImageActivateSettings" => { + builder = builder.set_static_image_activate_settings( + crate::json_deser::deser_structure_static_image_activate_schedule_action_settings(tokens)? + ); + } + "staticImageDeactivateSettings" => { + builder = builder.set_static_image_deactivate_settings( + crate::json_deser::deser_structure_static_image_deactivate_schedule_action_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_schedule_action_start_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ScheduleActionStartSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fixedModeScheduleActionStartSettings" => { + builder = builder.set_fixed_mode_schedule_action_start_settings( + crate::json_deser::deser_structure_fixed_mode_schedule_action_start_settings(tokens)? + ); + } + "followModeScheduleActionStartSettings" => { + builder = builder.set_follow_mode_schedule_action_start_settings( + crate::json_deser::deser_structure_follow_mode_schedule_action_start_settings(tokens)? + ); + } + "immediateModeScheduleActionStartSettings" => { + builder = builder.set_immediate_mode_schedule_action_start_settings( + crate::json_deser::deser_structure_immediate_mode_schedule_action_start_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_settings_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexSettingsSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "transportStreamBitrate" => { + builder = builder.set_transport_stream_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_media_package_output_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MediaPackageOutputDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "passwordParam" => { + builder = builder.set_password_param( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "streamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "username" => { + builder = builder.set_username( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_normalization_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioNormalizationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "algorithm" => { + builder = builder.set_algorithm( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioNormalizationAlgorithm::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "algorithmControl" => { + builder = builder.set_algorithm_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioNormalizationAlgorithmControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "targetLkfs" => { + builder = builder.set_target_lkfs( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_codec_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioCodecSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "aacSettings" => { + builder = builder.set_aac_settings( + crate::json_deser::deser_structure_aac_settings(tokens)?, + ); + } + "ac3Settings" => { + builder = builder.set_ac3_settings( + crate::json_deser::deser_structure_ac3_settings(tokens)?, + ); + } + "eac3Settings" => { + builder = builder.set_eac3_settings( + crate::json_deser::deser_structure_eac3_settings(tokens)?, + ); + } + "mp2Settings" => { + builder = builder.set_mp2_settings( + crate::json_deser::deser_structure_mp2_settings(tokens)?, + ); + } + "passThroughSettings" => { + builder = builder.set_pass_through_settings( + crate::json_deser::deser_structure_pass_through_settings( + tokens, + )?, + ); + } + "wavSettings" => { + builder = builder.set_wav_settings( + crate::json_deser::deser_structure_wav_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_remix_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RemixSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channelMappings" => { + builder = builder.set_channel_mappings( + crate::json_deser::deser_list___list_of_audio_channel_mapping( + tokens, + )?, + ); + } + "channelsIn" => { + builder = builder.set_channels_in( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "channelsOut" => { + builder = builder.set_channels_out( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_splice_insert<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35SpliceInsert::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adAvailOffset" => { + builder = builder.set_ad_avail_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "noRegionalBlackoutFlag" => { + builder = builder.set_no_regional_blackout_flag( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::Scte35SpliceInsertNoRegionalBlackoutBehavior::from(u.as_ref()) + ) + ).transpose()? + ); + } + "webDeliveryAllowedFlag" => { + builder = builder.set_web_delivery_allowed_flag( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::Scte35SpliceInsertWebDeliveryAllowedBehavior::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_time_signal_apos<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35TimeSignalApos::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adAvailOffset" => { + builder = builder.set_ad_avail_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "noRegionalBlackoutFlag" => { + builder = builder.set_no_regional_blackout_flag( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::Scte35AposNoRegionalBlackoutBehavior::from(u.as_ref()) + ) + ).transpose()? + ); + } + "webDeliveryAllowedFlag" => { + builder = builder.set_web_delivery_allowed_flag( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::Scte35AposWebDeliveryAllowedBehavior::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_caption_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "aribDestinationSettings" => { + builder = builder.set_arib_destination_settings( + crate::json_deser::deser_structure_arib_destination_settings( + tokens, + )?, + ); + } + "burnInDestinationSettings" => { + builder = builder.set_burn_in_destination_settings( + crate::json_deser::deser_structure_burn_in_destination_settings(tokens)? + ); + } + "dvbSubDestinationSettings" => { + builder = builder.set_dvb_sub_destination_settings( + crate::json_deser::deser_structure_dvb_sub_destination_settings(tokens)? + ); + } + "ebuTtDDestinationSettings" => { + builder = builder.set_ebu_tt_d_destination_settings( + crate::json_deser::deser_structure_ebu_tt_d_destination_settings(tokens)? + ); + } + "embeddedDestinationSettings" => { + builder = builder.set_embedded_destination_settings( + crate::json_deser::deser_structure_embedded_destination_settings(tokens)? + ); + } + "embeddedPlusScte20DestinationSettings" => { + builder = builder.set_embedded_plus_scte20_destination_settings( + crate::json_deser::deser_structure_embedded_plus_scte20_destination_settings(tokens)? + ); + } + "rtmpCaptionInfoDestinationSettings" => { + builder = builder.set_rtmp_caption_info_destination_settings( + crate::json_deser::deser_structure_rtmp_caption_info_destination_settings(tokens)? + ); + } + "scte20PlusEmbeddedDestinationSettings" => { + builder = builder.set_scte20_plus_embedded_destination_settings( + crate::json_deser::deser_structure_scte20_plus_embedded_destination_settings(tokens)? + ); + } + "scte27DestinationSettings" => { + builder = builder.set_scte27_destination_settings( + crate::json_deser::deser_structure_scte27_destination_settings( + tokens, + )?, + ); + } + "smpteTtDestinationSettings" => { + builder = builder.set_smpte_tt_destination_settings( + crate::json_deser::deser_structure_smpte_tt_destination_settings(tokens)? + ); + } + "teletextDestinationSettings" => { + builder = builder.set_teletext_destination_settings( + crate::json_deser::deser_structure_teletext_destination_settings(tokens)? + ); + } + "ttmlDestinationSettings" => { + builder = builder.set_ttml_destination_settings( + crate::json_deser::deser_structure_ttml_destination_settings( + tokens, + )?, + ); + } + "webvttDestinationSettings" => { + builder = builder.set_webvtt_destination_settings( + crate::json_deser::deser_structure_webvtt_destination_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_html_motion_graphics_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HtmlMotionGraphicsSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "archiveGroupSettings" => { + builder = builder.set_archive_group_settings( + crate::json_deser::deser_structure_archive_group_settings( + tokens, + )?, + ); + } + "frameCaptureGroupSettings" => { + builder = builder.set_frame_capture_group_settings( + crate::json_deser::deser_structure_frame_capture_group_settings(tokens)? + ); + } + "hlsGroupSettings" => { + builder = builder.set_hls_group_settings( + crate::json_deser::deser_structure_hls_group_settings(tokens)?, + ); + } + "mediaPackageGroupSettings" => { + builder = builder.set_media_package_group_settings( + crate::json_deser::deser_structure_media_package_group_settings(tokens)? + ); + } + "msSmoothGroupSettings" => { + builder = builder.set_ms_smooth_group_settings( + crate::json_deser::deser_structure_ms_smooth_group_settings( + tokens, + )?, + ); + } + "multiplexGroupSettings" => { + builder = builder.set_multiplex_group_settings( + crate::json_deser::deser_structure_multiplex_group_settings( + tokens, + )?, + ); + } + "rtmpGroupSettings" => { + builder = builder.set_rtmp_group_settings( + crate::json_deser::deser_structure_rtmp_group_settings(tokens)?, + ); + } + "udpGroupSettings" => { + builder = builder.set_udp_group_settings( + crate::json_deser::deser_structure_udp_group_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_output(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_video_codec_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoCodecSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "frameCaptureSettings" => { + builder = builder.set_frame_capture_settings( + crate::json_deser::deser_structure_frame_capture_settings( + tokens, + )?, + ); + } + "h264Settings" => { + builder = builder.set_h264_settings( + crate::json_deser::deser_structure_h264_settings(tokens)?, + ); + } + "h265Settings" => { + builder = builder.set_h265_settings( + crate::json_deser::deser_structure_h265_settings(tokens)?, + ); + } + "mpeg2Settings" => { + builder = builder.set_mpeg2_settings( + crate::json_deser::deser_structure_mpeg2_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_failover_condition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_failover_condition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_audio_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_audio_selector(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_caption_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_caption_selector(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_network_input_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkInputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hlsInputSettings" => { + builder = builder.set_hls_input_settings( + crate::json_deser::deser_structure_hls_input_settings(tokens)?, + ); + } + "serverValidation" => { + builder = builder.set_server_validation( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NetworkInputServerValidation::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoSelector::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "colorSpace" => { + builder = builder.set_color_space( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::VideoSelectorColorSpace::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "colorSpaceSettings" => { + builder = builder.set_color_space_settings( + crate::json_deser::deser_structure_video_selector_color_space_settings(tokens)? + ); + } + "colorSpaceUsage" => { + builder = builder.set_color_space_usage( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::VideoSelectorColorSpaceUsage::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "selectorSettings" => { + builder = builder.set_selector_settings( + crate::json_deser::deser_structure_video_selector_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_id3_segment_tagging_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsId3SegmentTaggingScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tag" => { + builder = builder.set_tag( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_timed_metadata_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsTimedMetadataScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id3" => { + builder = builder.set_id3( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_prepare_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputPrepareScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputAttachmentNameReference" => { + builder = builder.set_input_attachment_name_reference( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputClippingSettings" => { + builder = builder.set_input_clipping_settings( + crate::json_deser::deser_structure_input_clipping_settings( + tokens, + )?, + ); + } + "urlPath" => { + builder = builder.set_url_path( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_switch_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputSwitchScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputAttachmentNameReference" => { + builder = builder.set_input_attachment_name_reference( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "inputClippingSettings" => { + builder = builder.set_input_clipping_settings( + crate::json_deser::deser_structure_input_clipping_settings( + tokens, + )?, + ); + } + "urlPath" => { + builder = builder.set_url_path( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_motion_graphics_activate_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MotionGraphicsActivateScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "passwordParam" => { + builder = builder.set_password_param( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "username" => { + builder = builder.set_username( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_motion_graphics_deactivate_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::MotionGraphicsDeactivateScheduleActionSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pause_state_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PauseStateScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pipelines" => { + builder = builder.set_pipelines( + crate::json_deser::deser_list___list_of_pipeline_pause_state_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_return_to_network_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35ReturnToNetworkScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "spliceEventId" => { + builder = builder.set_splice_event_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_splice_insert_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35SpliceInsertScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "spliceEventId" => { + builder = builder.set_splice_event_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_time_signal_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35TimeSignalScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scte35Descriptors" => { + builder = builder.set_scte35_descriptors( + crate::json_deser::deser_list___list_of_scte35_descriptor( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_static_image_activate_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StaticImageActivateScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fadeIn" => { + builder = builder.set_fade_in( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fadeOut" => { + builder = builder.set_fade_out( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "height" => { + builder = builder.set_height( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "image" => { + builder = builder.set_image( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "imageX" => { + builder = builder.set_image_x( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "imageY" => { + builder = builder.set_image_y( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "layer" => { + builder = builder.set_layer( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "opacity" => { + builder = builder.set_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "width" => { + builder = builder.set_width( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_static_image_deactivate_schedule_action_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StaticImageDeactivateScheduleActionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "fadeOut" => { + builder = builder.set_fade_out( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "layer" => { + builder = builder.set_layer( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fixed_mode_schedule_action_start_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FixedModeScheduleActionStartSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "time" => { + builder = builder.set_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_follow_mode_schedule_action_start_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FollowModeScheduleActionStartSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "followPoint" => { + builder = builder.set_follow_point( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FollowPoint::from(u.as_ref())) + }) + .transpose()?, + ); + } + "referenceActionName" => { + builder = builder.set_reference_action_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_immediate_mode_schedule_action_start_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImmediateModeScheduleActionStartSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_aac_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AacSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "codingMode" => { + builder = builder.set_coding_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacCodingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "inputType" => { + builder = builder.set_input_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacInputType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "profile" => { + builder = builder.set_profile( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacProfile::from(u.as_ref())) + }) + .transpose()?, + ); + } + "rateControlMode" => { + builder = builder.set_rate_control_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AacRateControlMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "rawFormat" => { + builder = builder.set_raw_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacRawFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "sampleRate" => { + builder = builder.set_sample_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "spec" => { + builder = builder.set_spec( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacSpec::from(u.as_ref())) + }) + .transpose()?, + ); + } + "vbrQuality" => { + builder = builder.set_vbr_quality( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AacVbrQuality::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ac3_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Ac3Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "bitstreamMode" => { + builder = builder.set_bitstream_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Ac3BitstreamMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "codingMode" => { + builder = builder.set_coding_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Ac3CodingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "dialnorm" => { + builder = builder.set_dialnorm( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "drcProfile" => { + builder = builder.set_drc_profile( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Ac3DrcProfile::from(u.as_ref())) + }) + .transpose()?, + ); + } + "lfeFilter" => { + builder = builder.set_lfe_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Ac3LfeFilter::from(u.as_ref())) + }) + .transpose()?, + ); + } + "metadataControl" => { + builder = builder.set_metadata_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Ac3MetadataControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_eac3_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Eac3Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attenuationControl" => { + builder = builder.set_attenuation_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3AttenuationControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "bitstreamMode" => { + builder = builder.set_bitstream_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3BitstreamMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "codingMode" => { + builder = builder.set_coding_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3CodingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "dcFilter" => { + builder = builder.set_dc_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3DcFilter::from(u.as_ref())) + }) + .transpose()?, + ); + } + "dialnorm" => { + builder = builder.set_dialnorm( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "drcLine" => { + builder = builder.set_drc_line( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3DrcLine::from(u.as_ref())) + }) + .transpose()?, + ); + } + "drcRf" => { + builder = builder.set_drc_rf( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3DrcRf::from(u.as_ref())) + }) + .transpose()?, + ); + } + "lfeControl" => { + builder = builder.set_lfe_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3LfeControl::from(u.as_ref())) + }) + .transpose()?, + ); + } + "lfeFilter" => { + builder = builder.set_lfe_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Eac3LfeFilter::from(u.as_ref())) + }) + .transpose()?, + ); + } + "loRoCenterMixLevel" => { + builder = builder.set_lo_ro_center_mix_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "loRoSurroundMixLevel" => { + builder = builder.set_lo_ro_surround_mix_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "ltRtCenterMixLevel" => { + builder = builder.set_lt_rt_center_mix_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "ltRtSurroundMixLevel" => { + builder = builder.set_lt_rt_surround_mix_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "metadataControl" => { + builder = builder.set_metadata_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3MetadataControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "passthroughControl" => { + builder = builder.set_passthrough_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3PassthroughControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "phaseControl" => { + builder = builder.set_phase_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3PhaseControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "stereoDownmix" => { + builder = builder.set_stereo_downmix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3StereoDownmix::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "surroundExMode" => { + builder = builder.set_surround_ex_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3SurroundExMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "surroundMode" => { + builder = builder.set_surround_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Eac3SurroundMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mp2_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Mp2Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "codingMode" => { + builder = builder.set_coding_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Mp2CodingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "sampleRate" => { + builder = builder.set_sample_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pass_through_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PassThroughSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_wav_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::WavSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bitDepth" => { + builder = builder.set_bit_depth( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "codingMode" => { + builder = builder.set_coding_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::WavCodingMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "sampleRate" => { + builder = builder.set_sample_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_audio_channel_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_audio_channel_mapping(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_arib_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AribDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_burn_in_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BurnInDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "alignment" => { + builder = builder.set_alignment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInAlignment::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "backgroundColor" => { + builder = builder.set_background_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInBackgroundColor::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "backgroundOpacity" => { + builder = builder.set_background_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "font" => { + builder = builder.set_font( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "fontColor" => { + builder = builder.set_font_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInFontColor::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "fontOpacity" => { + builder = builder.set_font_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fontResolution" => { + builder = builder.set_font_resolution( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fontSize" => { + builder = builder.set_font_size( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "outlineColor" => { + builder = builder.set_outline_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInOutlineColor::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "outlineSize" => { + builder = builder.set_outline_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowColor" => { + builder = builder.set_shadow_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInShadowColor::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "shadowOpacity" => { + builder = builder.set_shadow_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowXOffset" => { + builder = builder.set_shadow_x_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowYOffset" => { + builder = builder.set_shadow_y_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "teletextGridControl" => { + builder = builder.set_teletext_grid_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BurnInTeletextGridControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "xPosition" => { + builder = builder.set_x_position( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "yPosition" => { + builder = builder.set_y_position( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dvb_sub_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DvbSubDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "alignment" => { + builder = builder.set_alignment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSubDestinationAlignment::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "backgroundColor" => { + builder = builder.set_background_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSubDestinationBackgroundColor::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "backgroundOpacity" => { + builder = builder.set_background_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "font" => { + builder = builder.set_font( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "fontColor" => { + builder = builder.set_font_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSubDestinationFontColor::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "fontOpacity" => { + builder = builder.set_font_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fontResolution" => { + builder = builder.set_font_resolution( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fontSize" => { + builder = builder.set_font_size( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "outlineColor" => { + builder = builder.set_outline_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSubDestinationOutlineColor::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "outlineSize" => { + builder = builder.set_outline_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowColor" => { + builder = builder.set_shadow_color( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSubDestinationShadowColor::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "shadowOpacity" => { + builder = builder.set_shadow_opacity( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowXOffset" => { + builder = builder.set_shadow_x_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "shadowYOffset" => { + builder = builder.set_shadow_y_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "teletextGridControl" => { + builder = builder.set_teletext_grid_control( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::DvbSubDestinationTeletextGridControl::from(u.as_ref()) + ) + ).transpose()? + ); + } + "xPosition" => { + builder = builder.set_x_position( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "yPosition" => { + builder = builder.set_y_position( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ebu_tt_d_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EbuTtDDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "copyrightHolder" => { + builder = builder.set_copyright_holder( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fillLineGap" => { + builder = builder.set_fill_line_gap( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EbuTtDFillLineGapControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "fontFamily" => { + builder = builder.set_font_family( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "styleControl" => { + builder = builder.set_style_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EbuTtDDestinationStyleControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_embedded_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EmbeddedDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_embedded_plus_scte20_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EmbeddedPlusScte20DestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rtmp_caption_info_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RtmpCaptionInfoDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte20_plus_embedded_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte20PlusEmbeddedDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte27_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte27DestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_smpte_tt_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SmpteTtDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_teletext_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TeletextDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ttml_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TtmlDestinationSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "styleControl" => { + builder = builder.set_style_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TtmlDestinationStyleControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_webvtt_destination_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::WebvttDestinationSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_archive_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchiveGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "archiveCdnSettings" => { + builder = builder.set_archive_cdn_settings( + crate::json_deser::deser_structure_archive_cdn_settings( + tokens, + )?, + ); + } + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "rolloverInterval" => { + builder = builder.set_rollover_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "frameCaptureCdnSettings" => { + builder = builder.set_frame_capture_cdn_settings( + crate::json_deser::deser_structure_frame_capture_cdn_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adMarkers" => { + builder = builder.set_ad_markers( + crate::json_deser::deser_list___list_of_hls_ad_markers(tokens)?, + ); + } + "baseUrlContent" => { + builder = builder.set_base_url_content( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "baseUrlContent1" => { + builder = builder.set_base_url_content1( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "baseUrlManifest" => { + builder = builder.set_base_url_manifest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "baseUrlManifest1" => { + builder = builder.set_base_url_manifest1( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "captionLanguageMappings" => { + builder = builder.set_caption_language_mappings( + crate::json_deser::deser_list___list_of_caption_language_mapping(tokens)? + ); + } + "captionLanguageSetting" => { + builder = builder.set_caption_language_setting( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsCaptionLanguageSetting::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "clientCache" => { + builder = builder.set_client_cache( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HlsClientCache::from(u.as_ref())) + }) + .transpose()?, + ); + } + "codecSpecification" => { + builder = builder.set_codec_specification( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsCodecSpecification::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "constantIv" => { + builder = builder.set_constant_iv( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "directoryStructure" => { + builder = builder.set_directory_structure( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsDirectoryStructure::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "discontinuityTags" => { + builder = builder.set_discontinuity_tags( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsDiscontinuityTags::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "encryptionType" => { + builder = builder.set_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsEncryptionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "hlsCdnSettings" => { + builder = builder.set_hls_cdn_settings( + crate::json_deser::deser_structure_hls_cdn_settings(tokens)?, + ); + } + "hlsId3SegmentTagging" => { + builder = builder.set_hls_id3_segment_tagging( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsId3SegmentTaggingState::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "iFrameOnlyPlaylists" => { + builder = builder.set_i_frame_only_playlists( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::IFrameOnlyPlaylistType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "incompleteSegmentBehavior" => { + builder = builder.set_incomplete_segment_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsIncompleteSegmentBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "indexNSegments" => { + builder = builder.set_index_n_segments( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputLossAction" => { + builder = builder.set_input_loss_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputLossActionForHlsOut::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ivInManifest" => { + builder = builder.set_iv_in_manifest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsIvInManifest::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ivSource" => { + builder = builder.set_iv_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HlsIvSource::from(u.as_ref())) + }) + .transpose()?, + ); + } + "keepSegments" => { + builder = builder.set_keep_segments( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "keyFormat" => { + builder = builder.set_key_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "keyFormatVersions" => { + builder = builder.set_key_format_versions( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "keyProviderSettings" => { + builder = builder.set_key_provider_settings( + crate::json_deser::deser_structure_key_provider_settings( + tokens, + )?, + ); + } + "manifestCompression" => { + builder = builder.set_manifest_compression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsManifestCompression::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "manifestDurationFormat" => { + builder = builder.set_manifest_duration_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsManifestDurationFormat::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "minSegmentLength" => { + builder = builder.set_min_segment_length( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HlsMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "outputSelection" => { + builder = builder.set_output_selection( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsOutputSelection::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "programDateTime" => { + builder = builder.set_program_date_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsProgramDateTime::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "programDateTimePeriod" => { + builder = builder.set_program_date_time_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "redundantManifest" => { + builder = builder.set_redundant_manifest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsRedundantManifest::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "segmentLength" => { + builder = builder.set_segment_length( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentationMode" => { + builder = builder.set_segmentation_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsSegmentationMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "segmentsPerSubdirectory" => { + builder = builder.set_segments_per_subdirectory( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "streamInfResolution" => { + builder = builder.set_stream_inf_resolution( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsStreamInfResolution::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timedMetadataId3Frame" => { + builder = builder.set_timed_metadata_id3_frame( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsTimedMetadataId3Frame::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timedMetadataId3Period" => { + builder = builder.set_timed_metadata_id3_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "timestampDeltaMilliseconds" => { + builder = builder.set_timestamp_delta_milliseconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tsFileMode" => { + builder = builder.set_ts_file_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HlsTsFileMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_media_package_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MediaPackageGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ms_smooth_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MsSmoothGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "acquisitionPointId" => { + builder = builder.set_acquisition_point_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "audioOnlyTimecodeControl" => { + builder = builder.set_audio_only_timecode_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupAudioOnlyTimecodeControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "certificateMode" => { + builder = builder.set_certificate_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupCertificateMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "eventId" => { + builder = builder.set_event_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "eventIdMode" => { + builder = builder.set_event_id_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupEventIdMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "eventStopBehavior" => { + builder = builder.set_event_stop_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupEventStopBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "filecacheDuration" => { + builder = builder.set_filecache_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "fragmentLength" => { + builder = builder.set_fragment_length( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputLossAction" => { + builder = builder.set_input_loss_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputLossActionForMsSmoothOut::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentationMode" => { + builder = builder.set_segmentation_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupSegmentationMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "sendDelayMs" => { + builder = builder.set_send_delay_ms( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "sparseTrackType" => { + builder = builder.set_sparse_track_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupSparseTrackType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "streamManifestBehavior" => { + builder = builder.set_stream_manifest_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupStreamManifestBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "timestampOffset" => { + builder = builder.set_timestamp_offset( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "timestampOffsetMode" => { + builder = builder.set_timestamp_offset_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SmoothGroupTimestampOffsetMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexGroupSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rtmp_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RtmpGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adMarkers" => { + builder = builder.set_ad_markers( + crate::json_deser::deser_list___list_of_rtmp_ad_markers( + tokens, + )?, + ); + } + "authenticationScheme" => { + builder = builder.set_authentication_scheme( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AuthenticationScheme::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "cacheFullBehavior" => { + builder = builder.set_cache_full_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RtmpCacheFullBehavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "cacheLength" => { + builder = builder.set_cache_length( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "captionData" => { + builder = builder.set_caption_data( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RtmpCaptionData::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "inputLossAction" => { + builder = builder.set_input_loss_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputLossActionForRtmpOut::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_udp_group_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UdpGroupSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputLossAction" => { + builder = builder.set_input_loss_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputLossActionForUdpOut::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timedMetadataId3Frame" => { + builder = builder.set_timed_metadata_id3_frame( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::UdpTimedMetadataId3Frame::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timedMetadataId3Period" => { + builder = builder.set_timed_metadata_id3_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Output::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioDescriptionNames" => { + builder = builder.set_audio_description_names( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "captionDescriptionNames" => { + builder = builder.set_caption_description_names( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "outputName" => { + builder = builder.set_output_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "outputSettings" => { + builder = builder.set_output_settings( + crate::json_deser::deser_structure_output_settings(tokens)?, + ); + } + "videoDescriptionName" => { + builder = builder.set_video_description_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "captureInterval" => { + builder = builder.set_capture_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "captureIntervalUnits" => { + builder = builder.set_capture_interval_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FrameCaptureIntervalUnit::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h264_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H264Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adaptiveQuantization" => { + builder = builder.set_adaptive_quantization( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264AdaptiveQuantization::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "afdSignaling" => { + builder = builder.set_afd_signaling( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AfdSignaling::from(u.as_ref())) + }) + .transpose()?, + ); + } + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "bufFillPct" => { + builder = builder.set_buf_fill_pct( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "bufSize" => { + builder = builder.set_buf_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "colorMetadata" => { + builder = builder.set_color_metadata( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264ColorMetadata::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "colorSpaceSettings" => { + builder = builder.set_color_space_settings( + crate::json_deser::deser_structure_h264_color_space_settings( + tokens, + )?, + ); + } + "entropyEncoding" => { + builder = builder.set_entropy_encoding( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264EntropyEncoding::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "filterSettings" => { + builder = builder.set_filter_settings( + crate::json_deser::deser_structure_h264_filter_settings( + tokens, + )?, + ); + } + "fixedAfd" => { + builder = builder.set_fixed_afd( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FixedAfd::from(u.as_ref())) + }) + .transpose()?, + ); + } + "flickerAq" => { + builder = builder.set_flicker_aq( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264FlickerAq::from(u.as_ref())) + }) + .transpose()?, + ); + } + "forceFieldPictures" => { + builder = builder.set_force_field_pictures( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264ForceFieldPictures::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "framerateControl" => { + builder = builder.set_framerate_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264FramerateControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "framerateDenominator" => { + builder = builder.set_framerate_denominator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "framerateNumerator" => { + builder = builder.set_framerate_numerator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopBReference" => { + builder = builder.set_gop_b_reference( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264GopBReference::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "gopClosedCadence" => { + builder = builder.set_gop_closed_cadence( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopNumBFrames" => { + builder = builder.set_gop_num_b_frames( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopSize" => { + builder = builder.set_gop_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "gopSizeUnits" => { + builder = builder.set_gop_size_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264GopSizeUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "level" => { + builder = builder.set_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264Level::from(u.as_ref())) + }) + .transpose()?, + ); + } + "lookAheadRateControl" => { + builder = builder.set_look_ahead_rate_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264LookAheadRateControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "maxBitrate" => { + builder = builder.set_max_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minIInterval" => { + builder = builder.set_min_i_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "numRefFrames" => { + builder = builder.set_num_ref_frames( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "parControl" => { + builder = builder.set_par_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264ParControl::from(u.as_ref())) + }) + .transpose()?, + ); + } + "parDenominator" => { + builder = builder.set_par_denominator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "parNumerator" => { + builder = builder.set_par_numerator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "profile" => { + builder = builder.set_profile( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264Profile::from(u.as_ref())) + }) + .transpose()?, + ); + } + "qualityLevel" => { + builder = builder.set_quality_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264QualityLevel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "qvbrQualityLevel" => { + builder = builder.set_qvbr_quality_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "rateControlMode" => { + builder = builder.set_rate_control_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264RateControlMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scanType" => { + builder = builder.set_scan_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264ScanType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "sceneChangeDetect" => { + builder = builder.set_scene_change_detect( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264SceneChangeDetect::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "slices" => { + builder = builder.set_slices( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "softness" => { + builder = builder.set_softness( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "spatialAq" => { + builder = builder.set_spatial_aq( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264SpatialAq::from(u.as_ref())) + }) + .transpose()?, + ); + } + "subgopLength" => { + builder = builder.set_subgop_length( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264SubGopLength::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "syntax" => { + builder = builder.set_syntax( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264Syntax::from(u.as_ref())) + }) + .transpose()?, + ); + } + "temporalAq" => { + builder = builder.set_temporal_aq( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H264TemporalAq::from(u.as_ref())) + }) + .transpose()?, + ); + } + "timecodeInsertion" => { + builder = builder.set_timecode_insertion( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H264TimecodeInsertionBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h265_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H265Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adaptiveQuantization" => { + builder = builder.set_adaptive_quantization( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265AdaptiveQuantization::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "afdSignaling" => { + builder = builder.set_afd_signaling( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AfdSignaling::from(u.as_ref())) + }) + .transpose()?, + ); + } + "alternativeTransferFunction" => { + builder = builder.set_alternative_transfer_function( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265AlternativeTransferFunction::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "bufSize" => { + builder = builder.set_buf_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "colorMetadata" => { + builder = builder.set_color_metadata( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265ColorMetadata::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "colorSpaceSettings" => { + builder = builder.set_color_space_settings( + crate::json_deser::deser_structure_h265_color_space_settings( + tokens, + )?, + ); + } + "filterSettings" => { + builder = builder.set_filter_settings( + crate::json_deser::deser_structure_h265_filter_settings( + tokens, + )?, + ); + } + "fixedAfd" => { + builder = builder.set_fixed_afd( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FixedAfd::from(u.as_ref())) + }) + .transpose()?, + ); + } + "flickerAq" => { + builder = builder.set_flicker_aq( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H265FlickerAq::from(u.as_ref())) + }) + .transpose()?, + ); + } + "framerateDenominator" => { + builder = builder.set_framerate_denominator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "framerateNumerator" => { + builder = builder.set_framerate_numerator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopClosedCadence" => { + builder = builder.set_gop_closed_cadence( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopSize" => { + builder = builder.set_gop_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "gopSizeUnits" => { + builder = builder.set_gop_size_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265GopSizeUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "level" => { + builder = builder.set_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H265Level::from(u.as_ref())) + }) + .transpose()?, + ); + } + "lookAheadRateControl" => { + builder = builder.set_look_ahead_rate_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265LookAheadRateControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "maxBitrate" => { + builder = builder.set_max_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minIInterval" => { + builder = builder.set_min_i_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "parDenominator" => { + builder = builder.set_par_denominator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "parNumerator" => { + builder = builder.set_par_numerator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "profile" => { + builder = builder.set_profile( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H265Profile::from(u.as_ref())) + }) + .transpose()?, + ); + } + "qvbrQualityLevel" => { + builder = builder.set_qvbr_quality_level( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "rateControlMode" => { + builder = builder.set_rate_control_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265RateControlMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scanType" => { + builder = builder.set_scan_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H265ScanType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "sceneChangeDetect" => { + builder = builder.set_scene_change_detect( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265SceneChangeDetect::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "slices" => { + builder = builder.set_slices( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tier" => { + builder = builder.set_tier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::H265Tier::from(u.as_ref())) + }) + .transpose()?, + ); + } + "timecodeInsertion" => { + builder = builder.set_timecode_insertion( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::H265TimecodeInsertionBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mpeg2_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Mpeg2Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adaptiveQuantization" => { + builder = builder.set_adaptive_quantization( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2AdaptiveQuantization::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "afdSignaling" => { + builder = builder.set_afd_signaling( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AfdSignaling::from(u.as_ref())) + }) + .transpose()?, + ); + } + "colorMetadata" => { + builder = builder.set_color_metadata( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2ColorMetadata::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "colorSpace" => { + builder = builder.set_color_space( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2ColorSpace::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "displayAspectRatio" => { + builder = builder.set_display_aspect_ratio( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2DisplayRatio::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "filterSettings" => { + builder = builder.set_filter_settings( + crate::json_deser::deser_structure_mpeg2_filter_settings( + tokens, + )?, + ); + } + "fixedAfd" => { + builder = builder.set_fixed_afd( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FixedAfd::from(u.as_ref())) + }) + .transpose()?, + ); + } + "framerateDenominator" => { + builder = builder.set_framerate_denominator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "framerateNumerator" => { + builder = builder.set_framerate_numerator( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopClosedCadence" => { + builder = builder.set_gop_closed_cadence( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopNumBFrames" => { + builder = builder.set_gop_num_b_frames( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "gopSize" => { + builder = builder.set_gop_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "gopSizeUnits" => { + builder = builder.set_gop_size_units( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2GopSizeUnits::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scanType" => { + builder = builder.set_scan_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Mpeg2ScanType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "subgopLength" => { + builder = builder.set_subgop_length( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2SubGopLength::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timecodeInsertion" => { + builder = builder.set_timecode_insertion( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Mpeg2TimecodeInsertionBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_failover_condition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailoverCondition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "failoverConditionSettings" => { + builder = builder.set_failover_condition_settings( + crate::json_deser::deser_structure_failover_condition_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioSelector::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "selectorSettings" => { + builder = builder.set_selector_settings( + crate::json_deser::deser_structure_audio_selector_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_caption_selector<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionSelector::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "languageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "selectorSettings" => { + builder = builder.set_selector_settings( + crate::json_deser::deser_structure_caption_selector_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_input_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsInputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bandwidth" => { + builder = builder.set_bandwidth( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "bufferSegments" => { + builder = builder.set_buffer_segments( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "retries" => { + builder = builder.set_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "retryInterval" => { + builder = builder.set_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_selector_color_space_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoSelectorColorSpaceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hdr10Settings" => { + builder = builder.set_hdr10_settings( + crate::json_deser::deser_structure_hdr10_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_selector_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoSelectorSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "videoSelectorPid" => { + builder = builder.set_video_selector_pid( + crate::json_deser::deser_structure_video_selector_pid(tokens)?, + ); + } + "videoSelectorProgramId" => { + builder = builder.set_video_selector_program_id( + crate::json_deser::deser_structure_video_selector_program_id( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_clipping_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputClippingSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputTimecodeSource" => { + builder = builder.set_input_timecode_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InputTimecodeSource::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "startTimecode" => { + builder = builder.set_start_timecode( + crate::json_deser::deser_structure_start_timecode(tokens)?, + ); + } + "stopTimecode" => { + builder = builder.set_stop_timecode( + crate::json_deser::deser_structure_stop_timecode(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_pipeline_pause_state_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_pipeline_pause_state_settings( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_scte35_descriptor<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_scte35_descriptor(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_audio_channel_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioChannelMapping::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputChannelLevels" => { + builder = builder.set_input_channel_levels( + crate::json_deser::deser_list___list_of_input_channel_level( + tokens, + )?, + ); + } + "outputChannel" => { + builder = builder.set_output_channel( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_archive_cdn_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchiveCdnSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "archiveS3Settings" => { + builder = builder.set_archive_s3_settings( + crate::json_deser::deser_structure_archive_s3_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_location_ref<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputLocationRef::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destinationRefId" => { + builder = builder.set_destination_ref_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_cdn_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureCdnSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "frameCaptureS3Settings" => { + builder = builder.set_frame_capture_s3_settings( + crate::json_deser::deser_structure_frame_capture_s3_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_hls_ad_markers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HlsAdMarkers::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_caption_language_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_caption_language_mapping(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_hls_cdn_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsCdnSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "hlsAkamaiSettings" => { + builder = builder.set_hls_akamai_settings( + crate::json_deser::deser_structure_hls_akamai_settings(tokens)?, + ); + } + "hlsBasicPutSettings" => { + builder = builder.set_hls_basic_put_settings( + crate::json_deser::deser_structure_hls_basic_put_settings( + tokens, + )?, + ); + } + "hlsMediaStoreSettings" => { + builder = builder.set_hls_media_store_settings( + crate::json_deser::deser_structure_hls_media_store_settings( + tokens, + )?, + ); + } + "hlsS3Settings" => { + builder = builder.set_hls_s3_settings( + crate::json_deser::deser_structure_hls_s3_settings(tokens)?, + ); + } + "hlsWebdavSettings" => { + builder = builder.set_hls_webdav_settings( + crate::json_deser::deser_structure_hls_webdav_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_key_provider_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KeyProviderSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "staticKeySettings" => { + builder = builder.set_static_key_settings( + crate::json_deser::deser_structure_static_key_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_rtmp_ad_markers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::RtmpAdMarkers::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "archiveOutputSettings" => { + builder = builder.set_archive_output_settings( + crate::json_deser::deser_structure_archive_output_settings( + tokens, + )?, + ); + } + "frameCaptureOutputSettings" => { + builder = builder.set_frame_capture_output_settings( + crate::json_deser::deser_structure_frame_capture_output_settings(tokens)? + ); + } + "hlsOutputSettings" => { + builder = builder.set_hls_output_settings( + crate::json_deser::deser_structure_hls_output_settings(tokens)?, + ); + } + "mediaPackageOutputSettings" => { + builder = builder.set_media_package_output_settings( + crate::json_deser::deser_structure_media_package_output_settings(tokens)? + ); + } + "msSmoothOutputSettings" => { + builder = builder.set_ms_smooth_output_settings( + crate::json_deser::deser_structure_ms_smooth_output_settings( + tokens, + )?, + ); + } + "multiplexOutputSettings" => { + builder = builder.set_multiplex_output_settings( + crate::json_deser::deser_structure_multiplex_output_settings( + tokens, + )?, + ); + } + "rtmpOutputSettings" => { + builder = builder.set_rtmp_output_settings( + crate::json_deser::deser_structure_rtmp_output_settings( + tokens, + )?, + ); + } + "udpOutputSettings" => { + builder = builder.set_udp_output_settings( + crate::json_deser::deser_structure_udp_output_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h264_color_space_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H264ColorSpaceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "colorSpacePassthroughSettings" => { + builder = builder.set_color_space_passthrough_settings( + crate::json_deser::deser_structure_color_space_passthrough_settings(tokens)? + ); + } + "rec601Settings" => { + builder = builder.set_rec601_settings( + crate::json_deser::deser_structure_rec601_settings(tokens)?, + ); + } + "rec709Settings" => { + builder = builder.set_rec709_settings( + crate::json_deser::deser_structure_rec709_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h264_filter_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H264FilterSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "temporalFilterSettings" => { + builder = builder.set_temporal_filter_settings( + crate::json_deser::deser_structure_temporal_filter_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h265_color_space_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H265ColorSpaceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "colorSpacePassthroughSettings" => { + builder = builder.set_color_space_passthrough_settings( + crate::json_deser::deser_structure_color_space_passthrough_settings(tokens)? + ); + } + "hdr10Settings" => { + builder = builder.set_hdr10_settings( + crate::json_deser::deser_structure_hdr10_settings(tokens)?, + ); + } + "rec601Settings" => { + builder = builder.set_rec601_settings( + crate::json_deser::deser_structure_rec601_settings(tokens)?, + ); + } + "rec709Settings" => { + builder = builder.set_rec709_settings( + crate::json_deser::deser_structure_rec709_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_h265_filter_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::H265FilterSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "temporalFilterSettings" => { + builder = builder.set_temporal_filter_settings( + crate::json_deser::deser_structure_temporal_filter_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mpeg2_filter_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Mpeg2FilterSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "temporalFilterSettings" => { + builder = builder.set_temporal_filter_settings( + crate::json_deser::deser_structure_temporal_filter_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_failover_condition_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailoverConditionSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioSilenceSettings" => { + builder = builder.set_audio_silence_settings( + crate::json_deser::deser_structure_audio_silence_failover_settings(tokens)? + ); + } + "inputLossSettings" => { + builder = builder.set_input_loss_settings( + crate::json_deser::deser_structure_input_loss_failover_settings(tokens)? + ); + } + "videoBlackSettings" => { + builder = builder.set_video_black_settings( + crate::json_deser::deser_structure_video_black_failover_settings(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_selector_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioSelectorSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioLanguageSelection" => { + builder = builder.set_audio_language_selection( + crate::json_deser::deser_structure_audio_language_selection( + tokens, + )?, + ); + } + "audioPidSelection" => { + builder = builder.set_audio_pid_selection( + crate::json_deser::deser_structure_audio_pid_selection(tokens)?, + ); + } + "audioTrackSelection" => { + builder = builder.set_audio_track_selection( + crate::json_deser::deser_structure_audio_track_selection( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_caption_selector_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionSelectorSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ancillarySourceSettings" => { + builder = builder.set_ancillary_source_settings( + crate::json_deser::deser_structure_ancillary_source_settings( + tokens, + )?, + ); + } + "aribSourceSettings" => { + builder = builder.set_arib_source_settings( + crate::json_deser::deser_structure_arib_source_settings( + tokens, + )?, + ); + } + "dvbSubSourceSettings" => { + builder = builder.set_dvb_sub_source_settings( + crate::json_deser::deser_structure_dvb_sub_source_settings( + tokens, + )?, + ); + } + "embeddedSourceSettings" => { + builder = builder.set_embedded_source_settings( + crate::json_deser::deser_structure_embedded_source_settings( + tokens, + )?, + ); + } + "scte20SourceSettings" => { + builder = builder.set_scte20_source_settings( + crate::json_deser::deser_structure_scte20_source_settings( + tokens, + )?, + ); + } + "scte27SourceSettings" => { + builder = builder.set_scte27_source_settings( + crate::json_deser::deser_structure_scte27_source_settings( + tokens, + )?, + ); + } + "teletextSourceSettings" => { + builder = builder.set_teletext_source_settings( + crate::json_deser::deser_structure_teletext_source_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hdr10_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Hdr10Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "maxCll" => { + builder = builder.set_max_cll( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "maxFall" => { + builder = builder.set_max_fall( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_selector_pid<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoSelectorPid::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pid" => { + builder = builder.set_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_selector_program_id<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoSelectorProgramId::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "programId" => { + builder = builder.set_program_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_start_timecode<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StartTimecode::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "timecode" => { + builder = builder.set_timecode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_stop_timecode<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StopTimecode::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "lastFrameClippingBehavior" => { + builder = builder.set_last_frame_clipping_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastFrameClippingBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "timecode" => { + builder = builder.set_timecode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_pause_state_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelinePauseStateSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pipelineId" => { + builder = builder.set_pipeline_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PipelineId::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_descriptor<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35Descriptor::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "scte35DescriptorSettings" => { + builder = builder.set_scte35_descriptor_settings( + crate::json_deser::deser_structure_scte35_descriptor_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_input_channel_level<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_input_channel_level(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_archive_s3_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchiveS3Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cannedAcl" => { + builder = builder.set_canned_acl( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3CannedAcl::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_s3_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureS3Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cannedAcl" => { + builder = builder.set_canned_acl( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3CannedAcl::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_caption_language_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionLanguageMapping::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "captionChannel" => { + builder = builder.set_caption_channel( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "languageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "languageDescription" => { + builder = builder.set_language_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_akamai_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsAkamaiSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "filecacheDuration" => { + builder = builder.set_filecache_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "httpTransferMode" => { + builder = builder.set_http_transfer_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsAkamaiHttpTransferMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "salt" => { + builder = builder.set_salt( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "token" => { + builder = builder.set_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_basic_put_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsBasicPutSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "filecacheDuration" => { + builder = builder.set_filecache_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_media_store_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsMediaStoreSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "filecacheDuration" => { + builder = builder.set_filecache_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "mediaStoreStorageClass" => { + builder = builder.set_media_store_storage_class( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsMediaStoreStorageClass::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_s3_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsS3Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cannedAcl" => { + builder = builder.set_canned_acl( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3CannedAcl::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_webdav_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsWebdavSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "filecacheDuration" => { + builder = builder.set_filecache_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "httpTransferMode" => { + builder = builder.set_http_transfer_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsWebdavHttpTransferMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "restartDelay" => { + builder = builder.set_restart_delay( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_static_key_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StaticKeySettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "keyProviderServer" => { + builder = builder.set_key_provider_server( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "staticKeyValue" => { + builder = builder.set_static_key_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_archive_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchiveOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "containerSettings" => { + builder = builder.set_container_settings( + crate::json_deser::deser_structure_archive_container_settings( + tokens, + )?, + ); + } + "extension" => { + builder = builder.set_extension( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nameModifier" => { + builder = builder.set_name_modifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nameModifier" => { + builder = builder.set_name_modifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "h265PackagingType" => { + builder = builder.set_h265_packaging_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HlsH265PackagingType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "hlsSettings" => { + builder = builder.set_hls_settings( + crate::json_deser::deser_structure_hls_settings(tokens)?, + ); + } + "nameModifier" => { + builder = builder.set_name_modifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "segmentModifier" => { + builder = builder.set_segment_modifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_media_package_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MediaPackageOutputSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ms_smooth_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MsSmoothOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "h265PackagingType" => { + builder = builder.set_h265_packaging_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MsSmoothH265PackagingType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "nameModifier" => { + builder = builder.set_name_modifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multiplex_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiplexOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rtmp_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RtmpOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "certificateMode" => { + builder = builder.set_certificate_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RtmpOutputCertificateMode::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "connectionRetryInterval" => { + builder = builder.set_connection_retry_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "numRetries" => { + builder = builder.set_num_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_udp_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UdpOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bufferMsec" => { + builder = builder.set_buffer_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "containerSettings" => { + builder = builder.set_container_settings( + crate::json_deser::deser_structure_udp_container_settings( + tokens, + )?, + ); + } + "destination" => { + builder = builder.set_destination( + crate::json_deser::deser_structure_output_location_ref(tokens)?, + ); + } + "fecOutputSettings" => { + builder = builder.set_fec_output_settings( + crate::json_deser::deser_structure_fec_output_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_color_space_passthrough_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ColorSpacePassthroughSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rec601_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Rec601Settings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rec709_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Rec709Settings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_temporal_filter_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TemporalFilterSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "postFilterSharpening" => { + builder = builder.set_post_filter_sharpening( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TemporalFilterPostFilterSharpening::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "strength" => { + builder = builder.set_strength( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TemporalFilterStrength::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_silence_failover_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioSilenceFailoverSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioSelectorName" => { + builder = builder.set_audio_selector_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "audioSilenceThresholdMsec" => { + builder = builder.set_audio_silence_threshold_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_loss_failover_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputLossFailoverSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "inputLossThresholdMsec" => { + builder = builder.set_input_loss_threshold_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_video_black_failover_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VideoBlackFailoverSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "blackDetectThreshold" => { + builder = builder.set_black_detect_threshold( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "videoBlackThresholdMsec" => { + builder = builder.set_video_black_threshold_msec( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_language_selection<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioLanguageSelection::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "languageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "languageSelectionPolicy" => { + builder = builder.set_language_selection_policy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioLanguageSelectionPolicy::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_pid_selection<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioPidSelection::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pid" => { + builder = builder.set_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_track_selection<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioTrackSelection::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tracks" => { + builder = builder.set_tracks( + crate::json_deser::deser_list___list_of_audio_track(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ancillary_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AncillarySourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sourceAncillaryChannelNumber" => { + builder = builder.set_source_ancillary_channel_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_arib_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AribSourceSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dvb_sub_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DvbSubSourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pid" => { + builder = builder.set_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_embedded_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EmbeddedSourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "convert608To708" => { + builder = builder.set_convert608_to708( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EmbeddedConvert608To708::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scte20Detection" => { + builder = builder.set_scte20_detection( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EmbeddedScte20Detection::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "source608ChannelNumber" => { + builder = builder.set_source608_channel_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "source608TrackNumber" => { + builder = builder.set_source608_track_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte20_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte20SourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "convert608To708" => { + builder = builder.set_convert608_to708( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte20Convert608To708::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "source608ChannelNumber" => { + builder = builder.set_source608_channel_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte27_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte27SourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "pid" => { + builder = builder.set_pid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_teletext_source_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TeletextSourceSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "outputRectangle" => { + builder = builder.set_output_rectangle( + crate::json_deser::deser_structure_caption_rectangle(tokens)?, + ); + } + "pageNumber" => { + builder = builder.set_page_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_descriptor_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35DescriptorSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "segmentationDescriptorScte35DescriptorSettings" => { + builder = builder.set_segmentation_descriptor_scte35_descriptor_settings( + crate::json_deser::deser_structure_scte35_segmentation_descriptor(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_channel_level<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputChannelLevel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "gain" => { + builder = builder.set_gain( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "inputChannel" => { + builder = builder.set_input_channel( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_archive_container_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArchiveContainerSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "m2tsSettings" => { + builder = builder.set_m2ts_settings( + crate::json_deser::deser_structure_m2ts_settings(tokens)?, + ); + } + "rawSettings" => { + builder = builder.set_raw_settings( + crate::json_deser::deser_structure_raw_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioOnlyHlsSettings" => { + builder = builder.set_audio_only_hls_settings( + crate::json_deser::deser_structure_audio_only_hls_settings( + tokens, + )?, + ); + } + "fmp4HlsSettings" => { + builder = builder.set_fmp4_hls_settings( + crate::json_deser::deser_structure_fmp4_hls_settings(tokens)?, + ); + } + "frameCaptureHlsSettings" => { + builder = builder.set_frame_capture_hls_settings( + crate::json_deser::deser_structure_frame_capture_hls_settings( + tokens, + )?, + ); + } + "standardHlsSettings" => { + builder = builder.set_standard_hls_settings( + crate::json_deser::deser_structure_standard_hls_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_udp_container_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UdpContainerSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "m2tsSettings" => { + builder = builder.set_m2ts_settings( + crate::json_deser::deser_structure_m2ts_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fec_output_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FecOutputSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "columnDepth" => { + builder = builder.set_column_depth( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "includeFec" => { + builder = builder.set_include_fec( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FecOutputIncludeFec::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "rowLength" => { + builder = builder.set_row_length( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_audio_track<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_audio_track(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_caption_rectangle<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptionRectangle::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "height" => { + builder = builder.set_height( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "leftOffset" => { + builder = builder.set_left_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "topOffset" => { + builder = builder.set_top_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "width" => { + builder = builder.set_width( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_segmentation_descriptor<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35SegmentationDescriptor::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "deliveryRestrictions" => { + builder = builder.set_delivery_restrictions( + crate::json_deser::deser_structure_scte35_delivery_restrictions(tokens)? + ); + } + "segmentNum" => { + builder = builder.set_segment_num( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentationCancelIndicator" => { + builder = builder.set_segmentation_cancel_indicator( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte35SegmentationCancelIndicator::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "segmentationDuration" => { + builder = builder.set_segmentation_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "segmentationEventId" => { + builder = builder.set_segmentation_event_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "segmentationTypeId" => { + builder = builder.set_segmentation_type_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentationUpid" => { + builder = builder.set_segmentation_upid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "segmentationUpidType" => { + builder = builder.set_segmentation_upid_type( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentsExpected" => { + builder = builder.set_segments_expected( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "subSegmentNum" => { + builder = builder.set_sub_segment_num( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "subSegmentsExpected" => { + builder = builder.set_sub_segments_expected( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_m2ts_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::M2tsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "absentInputAudioBehavior" => { + builder = builder.set_absent_input_audio_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsAbsentInputAudioBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "arib" => { + builder = builder.set_arib( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::M2tsArib::from(u.as_ref())) + }) + .transpose()?, + ); + } + "aribCaptionsPid" => { + builder = builder.set_arib_captions_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "aribCaptionsPidControl" => { + builder = builder.set_arib_captions_pid_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsAribCaptionsPidControl::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "audioBufferModel" => { + builder = builder.set_audio_buffer_model( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsAudioBufferModel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "audioFramesPerPes" => { + builder = builder.set_audio_frames_per_pes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "audioPids" => { + builder = builder.set_audio_pids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "audioStreamType" => { + builder = builder.set_audio_stream_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsAudioStreamType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "bitrate" => { + builder = builder.set_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "bufferModel" => { + builder = builder.set_buffer_model( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsBufferModel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ccDescriptor" => { + builder = builder.set_cc_descriptor( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsCcDescriptor::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "dvbNitSettings" => { + builder = builder.set_dvb_nit_settings( + crate::json_deser::deser_structure_dvb_nit_settings(tokens)?, + ); + } + "dvbSdtSettings" => { + builder = builder.set_dvb_sdt_settings( + crate::json_deser::deser_structure_dvb_sdt_settings(tokens)?, + ); + } + "dvbSubPids" => { + builder = builder.set_dvb_sub_pids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "dvbTdtSettings" => { + builder = builder.set_dvb_tdt_settings( + crate::json_deser::deser_structure_dvb_tdt_settings(tokens)?, + ); + } + "dvbTeletextPid" => { + builder = builder.set_dvb_teletext_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ebif" => { + builder = builder.set_ebif( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsEbifControl::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ebpAudioInterval" => { + builder = builder.set_ebp_audio_interval( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsAudioInterval::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ebpLookaheadMs" => { + builder = builder.set_ebp_lookahead_ms( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ebpPlacement" => { + builder = builder.set_ebp_placement( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsEbpPlacement::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ecmPid" => { + builder = builder.set_ecm_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "esRateInPes" => { + builder = builder.set_es_rate_in_pes( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsEsRateInPes::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "etvPlatformPid" => { + builder = builder.set_etv_platform_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "etvSignalPid" => { + builder = builder.set_etv_signal_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "fragmentTime" => { + builder = builder.set_fragment_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "klv" => { + builder = builder.set_klv( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::M2tsKlv::from(u.as_ref())) + }) + .transpose()?, + ); + } + "klvDataPids" => { + builder = builder.set_klv_data_pids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nielsenId3Behavior" => { + builder = builder.set_nielsen_id3_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsNielsenId3Behavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "nullPacketBitrate" => { + builder = builder.set_null_packet_bitrate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "patInterval" => { + builder = builder.set_pat_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pcrControl" => { + builder = builder.set_pcr_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::M2tsPcrControl::from(u.as_ref())) + }) + .transpose()?, + ); + } + "pcrPeriod" => { + builder = builder.set_pcr_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pcrPid" => { + builder = builder.set_pcr_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pmtInterval" => { + builder = builder.set_pmt_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pmtPid" => { + builder = builder.set_pmt_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "programNum" => { + builder = builder.set_program_num( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "rateMode" => { + builder = builder.set_rate_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::M2tsRateMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "scte27Pids" => { + builder = builder.set_scte27_pids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "scte35Control" => { + builder = builder.set_scte35_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsScte35Control::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scte35Pid" => { + builder = builder.set_scte35_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "segmentationMarkers" => { + builder = builder.set_segmentation_markers( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsSegmentationMarkers::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "segmentationStyle" => { + builder = builder.set_segmentation_style( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsSegmentationStyle::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "segmentationTime" => { + builder = builder.set_segmentation_time( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "timedMetadataBehavior" => { + builder = builder.set_timed_metadata_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M2tsTimedMetadataBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "timedMetadataPid" => { + builder = builder.set_timed_metadata_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "transportStreamId" => { + builder = builder.set_transport_stream_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "videoPid" => { + builder = builder.set_video_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_raw_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RawSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_only_hls_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioOnlyHlsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioGroupId" => { + builder = builder.set_audio_group_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "audioOnlyImage" => { + builder = builder.set_audio_only_image( + crate::json_deser::deser_structure_input_location(tokens)?, + ); + } + "audioTrackType" => { + builder = builder.set_audio_track_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioOnlyHlsTrackType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "segmentType" => { + builder = builder.set_segment_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AudioOnlyHlsSegmentType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fmp4_hls_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Fmp4HlsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioRenditionSets" => { + builder = builder.set_audio_rendition_sets( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nielsenId3Behavior" => { + builder = builder.set_nielsen_id3_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Fmp4NielsenId3Behavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "timedMetadataBehavior" => { + builder = builder.set_timed_metadata_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Fmp4TimedMetadataBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_frame_capture_hls_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FrameCaptureHlsSettings::builder(); + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_standard_hls_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StandardHlsSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioRenditionSets" => { + builder = builder.set_audio_rendition_sets( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "m3u8Settings" => { + builder = builder.set_m3u8_settings( + crate::json_deser::deser_structure_m3u8_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_audio_track<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AudioTrack::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "track" => { + builder = builder.set_track( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scte35_delivery_restrictions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Scte35DeliveryRestrictions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "archiveAllowedFlag" => { + builder = builder.set_archive_allowed_flag( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte35ArchiveAllowedFlag::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "deviceRestrictions" => { + builder = builder.set_device_restrictions( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte35DeviceRestrictions::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "noRegionalBlackoutFlag" => { + builder = builder.set_no_regional_blackout_flag( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte35NoRegionalBlackoutFlag::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "webDeliveryAllowedFlag" => { + builder = builder.set_web_delivery_allowed_flag( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::Scte35WebDeliveryAllowedFlag::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dvb_nit_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DvbNitSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "networkId" => { + builder = builder.set_network_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "networkName" => { + builder = builder.set_network_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "repInterval" => { + builder = builder.set_rep_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dvb_sdt_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DvbSdtSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "outputSdt" => { + builder = builder.set_output_sdt( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DvbSdtOutputSdt::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "repInterval" => { + builder = builder.set_rep_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "serviceName" => { + builder = builder.set_service_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "serviceProviderName" => { + builder = builder.set_service_provider_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dvb_tdt_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DvbTdtSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "repInterval" => { + builder = builder.set_rep_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_m3u8_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::M3u8Settings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "audioFramesPerPes" => { + builder = builder.set_audio_frames_per_pes( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "audioPids" => { + builder = builder.set_audio_pids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ecmPid" => { + builder = builder.set_ecm_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "nielsenId3Behavior" => { + builder = builder.set_nielsen_id3_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M3u8NielsenId3Behavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "patInterval" => { + builder = builder.set_pat_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pcrControl" => { + builder = builder.set_pcr_control( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::M3u8PcrControl::from(u.as_ref())) + }) + .transpose()?, + ); + } + "pcrPeriod" => { + builder = builder.set_pcr_period( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pcrPid" => { + builder = builder.set_pcr_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "pmtInterval" => { + builder = builder.set_pmt_interval( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "pmtPid" => { + builder = builder.set_pmt_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "programNum" => { + builder = builder.set_program_num( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "scte35Behavior" => { + builder = builder.set_scte35_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M3u8Scte35Behavior::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "scte35Pid" => { + builder = builder.set_scte35_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "timedMetadataBehavior" => { + builder = builder.set_timed_metadata_behavior( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::M3u8TimedMetadataBehavior::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "timedMetadataPid" => { + builder = builder.set_timed_metadata_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "transportStreamId" => { + builder = builder.set_transport_stream_id( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "videoPid" => { + builder = builder.set_video_pid( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/medialive/src/json_errors.rs b/sdk/medialive/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/medialive/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/medialive/src/lib.rs b/sdk/medialive/src/lib.rs index 295a286e3f82..d2b96bbc3496 100644 --- a/sdk/medialive/src/lib.rs +++ b/sdk/medialive/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! API for AWS Elemental MediaLive // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. @@ -11,7 +12,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -21,13 +21,13 @@ mod http_serde; mod idempotency_token; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/medialive/src/model.rs b/sdk/medialive/src/model.rs index c8e0a3babe86..6bea2aa469b6 100644 --- a/sdk/medialive/src/model.rs +++ b/sdk/medialive/src/model.rs @@ -1,80 +1,44 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. /// Reserved resources available to use #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Reservation { /// Unique reservation ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567' - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// Number of reserved resources - #[serde(rename = "count")] - #[serde(default)] pub count: i32, /// Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' - #[serde(rename = "currencyCode")] - #[serde(default)] pub currency_code: std::option::Option, /// Lease duration, e.g. '12' - #[serde(rename = "duration")] - #[serde(default)] pub duration: i32, /// Units for duration, e.g. 'MONTHS' - #[serde(rename = "durationUnits")] - #[serde(default)] pub duration_units: std::option::Option, /// Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00' - #[serde(rename = "end")] - #[serde(default)] pub end: std::option::Option, /// One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - #[serde(rename = "fixedPrice")] - #[serde(default)] pub fixed_price: f64, /// User specified reservation name - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)' - #[serde(rename = "offeringDescription")] - #[serde(default)] pub offering_description: std::option::Option, /// Unique offering ID, e.g. '87654321' - #[serde(rename = "offeringId")] - #[serde(default)] pub offering_id: std::option::Option, /// Offering type, e.g. 'NO_UPFRONT' - #[serde(rename = "offeringType")] - #[serde(default)] pub offering_type: std::option::Option, /// AWS region, e.g. 'us-west-2' - #[serde(rename = "region")] - #[serde(default)] pub region: std::option::Option, /// Unique reservation ID, e.g. '1234567' - #[serde(rename = "reservationId")] - #[serde(default)] pub reservation_id: std::option::Option, /// Resource configuration details - #[serde(rename = "resourceSpecification")] - #[serde(default)] pub resource_specification: std::option::Option, /// Reservation UTC start date and time in ISO-8601 format, e.g. '2018-03-01T00:00:00' - #[serde(rename = "start")] - #[serde(default)] pub start: std::option::Option, /// Current state of reservation, e.g. 'ACTIVE' - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Recurring usage charge for each reserved resource, e.g. '157.0' - #[serde(rename = "usagePrice")] - #[serde(default)] pub usage_price: f64, } impl std::fmt::Debug for Reservation { @@ -391,7 +355,7 @@ impl std::convert::From<&str> for ReservationState { impl std::str::FromStr for ReservationState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationState::from(s)) } } @@ -411,51 +375,26 @@ impl AsRef for ReservationState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Resource configuration (codec, resolution, bitrate, ...) #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReservationResourceSpecification { /// Channel class, e.g. 'STANDARD' - #[serde(rename = "channelClass")] - #[serde(default)] pub channel_class: std::option::Option, /// Codec, e.g. 'AVC' - #[serde(rename = "codec")] - #[serde(default)] pub codec: std::option::Option, /// Maximum bitrate, e.g. 'MAX_20_MBPS' - #[serde(rename = "maximumBitrate")] - #[serde(default)] pub maximum_bitrate: std::option::Option, /// Maximum framerate, e.g. 'MAX_30_FPS' (Outputs only) - #[serde(rename = "maximumFramerate")] - #[serde(default)] pub maximum_framerate: std::option::Option, /// Resolution, e.g. 'HD' - #[serde(rename = "resolution")] - #[serde(default)] pub resolution: std::option::Option, /// Resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL' - #[serde(rename = "resourceType")] - #[serde(default)] pub resource_type: std::option::Option, /// Special feature, e.g. 'AUDIO_NORMALIZATION' (Channels only) - #[serde(rename = "specialFeature")] - #[serde(default)] pub special_feature: std::option::Option, /// Video quality, e.g. 'STANDARD' (Outputs only) - #[serde(rename = "videoQuality")] - #[serde(default)] pub video_quality: std::option::Option, } impl std::fmt::Debug for ReservationResourceSpecification { @@ -641,7 +580,7 @@ impl std::convert::From<&str> for ReservationVideoQuality { impl std::str::FromStr for ReservationVideoQuality { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationVideoQuality::from(s)) } } @@ -660,15 +599,6 @@ impl AsRef for ReservationVideoQuality { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationVideoQuality { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Special features, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION' #[non_exhaustive] @@ -699,7 +629,7 @@ impl std::convert::From<&str> for ReservationSpecialFeature { impl std::str::FromStr for ReservationSpecialFeature { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationSpecialFeature::from(s)) } } @@ -717,15 +647,6 @@ impl AsRef for ReservationSpecialFeature { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationSpecialFeature { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL' #[non_exhaustive] @@ -760,7 +681,7 @@ impl std::convert::From<&str> for ReservationResourceType { impl std::str::FromStr for ReservationResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationResourceType::from(s)) } } @@ -780,15 +701,6 @@ impl AsRef for ReservationResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Resolution based on lines of vertical resolution; SD is less than 720 lines, HD is 720 to 1080 lines, FHD is 1080 lines, UHD is greater than 1080 lines #[non_exhaustive] @@ -823,7 +735,7 @@ impl std::convert::From<&str> for ReservationResolution { impl std::str::FromStr for ReservationResolution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationResolution::from(s)) } } @@ -843,15 +755,6 @@ impl AsRef for ReservationResolution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationResolution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Maximum framerate in frames per second (Outputs only) #[non_exhaustive] @@ -882,7 +785,7 @@ impl std::convert::From<&str> for ReservationMaximumFramerate { impl std::str::FromStr for ReservationMaximumFramerate { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationMaximumFramerate::from(s)) } } @@ -900,15 +803,6 @@ impl AsRef for ReservationMaximumFramerate { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationMaximumFramerate { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Maximum bitrate in megabits per second #[non_exhaustive] @@ -941,7 +835,7 @@ impl std::convert::From<&str> for ReservationMaximumBitrate { impl std::str::FromStr for ReservationMaximumBitrate { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationMaximumBitrate::from(s)) } } @@ -960,15 +854,6 @@ impl AsRef for ReservationMaximumBitrate { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationMaximumBitrate { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Codec, 'MPEG2', 'AVC', 'HEVC', or 'AUDIO' #[non_exhaustive] @@ -1005,7 +890,7 @@ impl std::convert::From<&str> for ReservationCodec { impl std::str::FromStr for ReservationCodec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReservationCodec::from(s)) } } @@ -1026,15 +911,6 @@ impl AsRef for ReservationCodec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReservationCodec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A standard channel has two encoding pipelines and a single pipeline channel only has one. #[non_exhaustive] @@ -1065,7 +941,7 @@ impl std::convert::From<&str> for ChannelClass { impl std::str::FromStr for ChannelClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChannelClass::from(s)) } } @@ -1083,15 +959,6 @@ impl AsRef for ChannelClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChannelClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Offering type, e.g. 'NO_UPFRONT' #[non_exhaustive] @@ -1120,7 +987,7 @@ impl std::convert::From<&str> for OfferingType { impl std::str::FromStr for OfferingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OfferingType::from(s)) } } @@ -1137,15 +1004,6 @@ impl AsRef for OfferingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OfferingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Units for duration, e.g. 'MONTHS' #[non_exhaustive] @@ -1174,7 +1032,7 @@ impl std::convert::From<&str> for OfferingDurationUnits { impl std::str::FromStr for OfferingDurationUnits { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OfferingDurationUnits::from(s)) } } @@ -1191,27 +1049,14 @@ impl AsRef for OfferingDurationUnits { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OfferingDurationUnits { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Placeholder documentation for ValidationError #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ValidationError { /// Path to the source of the error. - #[serde(rename = "elementPath")] - #[serde(default)] pub element_path: std::option::Option, /// The error message. - #[serde(rename = "errorMessage")] - #[serde(default)] pub error_message: std::option::Option, } impl std::fmt::Debug for ValidationError { @@ -1271,29 +1116,19 @@ impl ValidationError { /// The multiplex program object. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgram { /// The MediaLive channel associated with the program. - #[serde(rename = "channelId")] - #[serde(default)] pub channel_id: std::option::Option, /// The settings for this multiplex program. - #[serde(rename = "multiplexProgramSettings")] - #[serde(default)] pub multiplex_program_settings: std::option::Option, /// The packet identifier map for this multiplex program. - #[serde(rename = "packetIdentifiersMap")] - #[serde(default)] pub packet_identifiers_map: std::option::Option, /// Contains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time. - #[serde(rename = "pipelineDetails")] - #[serde(default)] pub pipeline_details: std::option::Option>, /// The name of the multiplex program. - #[serde(rename = "programName")] - #[serde(default)] pub program_name: std::option::Option, } impl std::fmt::Debug for MultiplexProgram { @@ -1411,15 +1246,11 @@ impl MultiplexProgram { /// The current source for one of the pipelines in the multiplex. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramPipelineDetail { /// Identifies the channel pipeline that is currently active for the pipeline (identified by PipelineId) in the multiplex. - #[serde(rename = "activeChannelPipeline")] - #[serde(default)] pub active_channel_pipeline: std::option::Option, /// Identifies a specific pipeline in the multiplex. - #[serde(rename = "pipelineId")] - #[serde(default)] pub pipeline_id: std::option::Option, } impl std::fmt::Debug for MultiplexProgramPipelineDetail { @@ -1479,59 +1310,33 @@ impl MultiplexProgramPipelineDetail { /// Packet identifiers map for a given Multiplex program. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramPacketIdentifiersMap { /// Placeholder documentation for __listOf__integer - #[serde(rename = "audioPids")] - #[serde(default)] pub audio_pids: std::option::Option>, /// Placeholder documentation for __listOf__integer - #[serde(rename = "dvbSubPids")] - #[serde(default)] pub dvb_sub_pids: std::option::Option>, /// Placeholder documentation for __integer - #[serde(rename = "dvbTeletextPid")] - #[serde(default)] pub dvb_teletext_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "etvPlatformPid")] - #[serde(default)] pub etv_platform_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "etvSignalPid")] - #[serde(default)] pub etv_signal_pid: i32, /// Placeholder documentation for __listOf__integer - #[serde(rename = "klvDataPids")] - #[serde(default)] pub klv_data_pids: std::option::Option>, /// Placeholder documentation for __integer - #[serde(rename = "pcrPid")] - #[serde(default)] pub pcr_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "pmtPid")] - #[serde(default)] pub pmt_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "privateMetadataPid")] - #[serde(default)] pub private_metadata_pid: i32, /// Placeholder documentation for __listOf__integer - #[serde(rename = "scte27Pids")] - #[serde(default)] pub scte27_pids: std::option::Option>, /// Placeholder documentation for __integer - #[serde(rename = "scte35Pid")] - #[serde(default)] pub scte35_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "timedMetadataPid")] - #[serde(default)] pub timed_metadata_pid: i32, /// Placeholder documentation for __integer - #[serde(rename = "videoPid")] - #[serde(default)] pub video_pid: i32, } impl std::fmt::Debug for MultiplexProgramPacketIdentifiersMap { @@ -1724,23 +1529,15 @@ impl MultiplexProgramPacketIdentifiersMap { /// Multiplex Program settings configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramSettings { /// Indicates which pipeline is preferred by the multiplex for program ingest. - #[serde(rename = "preferredChannelPipeline")] - #[serde(default)] pub preferred_channel_pipeline: std::option::Option, /// Unique program number. - #[serde(rename = "programNumber")] - #[serde(default)] pub program_number: i32, /// Transport stream service descriptor configuration for the Multiplex program. - #[serde(rename = "serviceDescriptor")] - #[serde(default)] pub service_descriptor: std::option::Option, /// Program video settings configuration. - #[serde(rename = "videoSettings")] - #[serde(default)] pub video_settings: std::option::Option, } impl std::fmt::Debug for MultiplexProgramSettings { @@ -1841,17 +1638,13 @@ impl MultiplexProgramSettings { /// The video configuration for each program in a multiplex. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexVideoSettings { /// The constant bitrate configuration for the video encode. /// When this field is defined, StatmuxSettings must be undefined. - #[serde(rename = "constantBitrate")] - #[serde(default)] pub constant_bitrate: i32, /// Statmux rate control settings. /// When this field is defined, ConstantBitrate must be undefined. - #[serde(rename = "statmuxSettings")] - #[serde(default)] pub statmux_settings: std::option::Option, } impl std::fmt::Debug for MultiplexVideoSettings { @@ -1917,19 +1710,13 @@ impl MultiplexVideoSettings { /// Statmux rate control settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexStatmuxVideoSettings { /// Maximum statmux bitrate. - #[serde(rename = "maximumBitrate")] - #[serde(default)] pub maximum_bitrate: i32, /// Minimum statmux bitrate. - #[serde(rename = "minimumBitrate")] - #[serde(default)] pub minimum_bitrate: i32, /// The purpose of the priority is to use a combination of the\nmultiplex rate control algorithm and the QVBR capability of the\nencoder to prioritize the video quality of some channels in a\nmultiplex over others. Channels that have a higher priority will\nget higher video quality at the expense of the video quality of\nother channels in the multiplex with lower priority. - #[serde(rename = "priority")] - #[serde(default)] pub priority: i32, } impl std::fmt::Debug for MultiplexStatmuxVideoSettings { @@ -1998,15 +1785,11 @@ impl MultiplexStatmuxVideoSettings { /// Transport stream service descriptor configuration for the Multiplex program. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramServiceDescriptor { /// Name of the provider. - #[serde(rename = "providerName")] - #[serde(default)] pub provider_name: std::option::Option, /// Name of the service. - #[serde(rename = "serviceName")] - #[serde(default)] pub service_name: std::option::Option, } impl std::fmt::Debug for MultiplexProgramServiceDescriptor { @@ -2099,7 +1882,7 @@ impl std::convert::From<&str> for PreferredChannelPipeline { impl std::str::FromStr for PreferredChannelPipeline { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PreferredChannelPipeline::from(s)) } } @@ -2118,59 +1901,30 @@ impl AsRef for PreferredChannelPipeline { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PreferredChannelPipeline { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The multiplex object. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Multiplex { /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] pub availability_zones: std::option::Option>, /// A list of the multiplex output destinations. - #[serde(rename = "destinations")] - #[serde(default)] pub destinations: std::option::Option>, /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] pub multiplex_settings: std::option::Option, /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] pub pipelines_running_count: i32, /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] pub program_count: i32, /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -2395,7 +2149,7 @@ impl std::convert::From<&str> for MultiplexState { impl std::str::FromStr for MultiplexState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MultiplexState::from(s)) } } @@ -2420,35 +2174,18 @@ impl AsRef for MultiplexState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MultiplexState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Contains configuration for a Multiplex event #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexSettings { /// Maximum video buffer delay in milliseconds. - #[serde(rename = "maximumVideoBufferDelayMilliseconds")] - #[serde(default)] pub maximum_video_buffer_delay_milliseconds: i32, /// Transport stream bit rate. - #[serde(rename = "transportStreamBitrate")] - #[serde(default)] pub transport_stream_bitrate: i32, /// Transport stream ID. - #[serde(rename = "transportStreamId")] - #[serde(default)] pub transport_stream_id: i32, /// Transport stream reserved bit rate. - #[serde(rename = "transportStreamReservedBitrate")] - #[serde(default)] pub transport_stream_reserved_bitrate: i32, } impl std::fmt::Debug for MultiplexSettings { @@ -2545,11 +2282,9 @@ impl MultiplexSettings { /// Multiplex output destination settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexOutputDestination { /// Multiplex MediaConnect output destination settings. - #[serde(rename = "mediaConnectSettings")] - #[serde(default)] pub media_connect_settings: std::option::Option, } @@ -2604,11 +2339,9 @@ impl MultiplexOutputDestination { /// Multiplex MediaConnect output destination settings. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexMediaConnectOutputDestinationSettings { /// The MediaConnect entitlement ARN available as a Flow source. - #[serde(rename = "entitlementArn")] - #[serde(default)] pub entitlement_arn: std::option::Option, } impl std::fmt::Debug for MultiplexMediaConnectOutputDestinationSettings { @@ -2656,32 +2389,20 @@ impl MultiplexMediaConnectOutputDestinationSettings { /// An Input Security Group #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSecurityGroup { /// Unique ARN of Input Security Group - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// The Id of the Input Security Group - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// The list of inputs currently using this Input Security Group. - #[serde(rename = "inputs")] - #[serde(default)] pub inputs: std::option::Option>, /// The current state of the Input Security Group. - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Whitelist rules and their sync status - #[serde(rename = "whitelistRules")] - #[serde(default)] pub whitelist_rules: std::option::Option>, } impl std::fmt::Debug for InputSecurityGroup { @@ -2813,11 +2534,9 @@ impl InputSecurityGroup { /// Whitelist rule #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputWhitelistRule { /// The IPv4 CIDR that's whitelisted. - #[serde(rename = "cidr")] - #[serde(default)] pub cidr: std::option::Option, } impl std::fmt::Debug for InputWhitelistRule { @@ -2891,7 +2610,7 @@ impl std::convert::From<&str> for InputSecurityGroupState { impl std::str::FromStr for InputSecurityGroupState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputSecurityGroupState::from(s)) } } @@ -2911,23 +2630,12 @@ impl AsRef for InputSecurityGroupState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputSecurityGroupState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// An IPv4 CIDR to whitelist. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputWhitelistRuleCidr { /// The IPv4 CIDR to whitelist. - #[serde(rename = "cidr")] - #[serde(default)] pub cidr: std::option::Option, } impl std::fmt::Debug for InputWhitelistRuleCidr { @@ -2970,39 +2678,23 @@ impl InputWhitelistRuleCidr { /// Settings that describe the active source from the input device, and the video characteristics of that source. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceUhdSettings { /// If you specified Auto as the configured input, specifies which of the sources is currently active (SDI or HDMI). - #[serde(rename = "activeInput")] - #[serde(default)] pub active_input: std::option::Option, /// The source at the input device that is currently active. You can specify this source. - #[serde(rename = "configuredInput")] - #[serde(default)] pub configured_input: std::option::Option, /// The state of the input device. - #[serde(rename = "deviceState")] - #[serde(default)] pub device_state: std::option::Option, /// The frame rate of the video source. - #[serde(rename = "framerate")] - #[serde(default)] pub framerate: f64, /// The height of the video source, in pixels. - #[serde(rename = "height")] - #[serde(default)] pub height: i32, /// The current maximum bitrate for ingesting this source, in bits per second. You can specify this maximum. - #[serde(rename = "maxBitrate")] - #[serde(default)] pub max_bitrate: i32, /// The scan type of the video source. - #[serde(rename = "scanType")] - #[serde(default)] pub scan_type: std::option::Option, /// The width of the video source, in pixels. - #[serde(rename = "width")] - #[serde(default)] pub width: i32, } impl std::fmt::Debug for InputDeviceUhdSettings { @@ -3170,7 +2862,7 @@ impl std::convert::From<&str> for InputDeviceScanType { impl std::str::FromStr for InputDeviceScanType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceScanType::from(s)) } } @@ -3188,15 +2880,6 @@ impl AsRef for InputDeviceScanType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceScanType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The state of the input device. #[non_exhaustive] @@ -3227,7 +2910,7 @@ impl std::convert::From<&str> for InputDeviceState { impl std::str::FromStr for InputDeviceState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceState::from(s)) } } @@ -3245,15 +2928,6 @@ impl AsRef for InputDeviceState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The source to activate (use) from the input device. #[non_exhaustive] @@ -3286,7 +2960,7 @@ impl std::convert::From<&str> for InputDeviceConfiguredInput { impl std::str::FromStr for InputDeviceConfiguredInput { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceConfiguredInput::from(s)) } } @@ -3305,15 +2979,6 @@ impl AsRef for InputDeviceConfiguredInput { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceConfiguredInput { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The source at the input device that is currently active. #[non_exhaustive] @@ -3344,7 +3009,7 @@ impl std::convert::From<&str> for InputDeviceActiveInput { impl std::str::FromStr for InputDeviceActiveInput { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceActiveInput::from(s)) } } @@ -3362,15 +3027,6 @@ impl AsRef for InputDeviceActiveInput { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceActiveInput { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The type of the input device. For an AWS Elemental Link device that outputs resolutions up to 1080, choose "HD". #[non_exhaustive] @@ -3399,7 +3055,7 @@ impl std::convert::From<&str> for InputDeviceType { impl std::str::FromStr for InputDeviceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceType::from(s)) } } @@ -3416,39 +3072,20 @@ impl AsRef for InputDeviceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The network settings for the input device. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceNetworkSettings { /// The DNS addresses of the input device. - #[serde(rename = "dnsAddresses")] - #[serde(default)] pub dns_addresses: std::option::Option>, /// The network gateway IP address. - #[serde(rename = "gateway")] - #[serde(default)] pub gateway: std::option::Option, /// The IP address of the input device. - #[serde(rename = "ipAddress")] - #[serde(default)] pub ip_address: std::option::Option, /// Specifies whether the input device has been configured (outside of MediaLive) to use a dynamic IP address assignment (DHCP) or a static IP address. - #[serde(rename = "ipScheme")] - #[serde(default)] pub ip_scheme: std::option::Option, /// The subnet mask of the input device. - #[serde(rename = "subnetMask")] - #[serde(default)] pub subnet_mask: std::option::Option, } impl std::fmt::Debug for InputDeviceNetworkSettings { @@ -3575,7 +3212,7 @@ impl std::convert::From<&str> for InputDeviceIpScheme { impl std::str::FromStr for InputDeviceIpScheme { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceIpScheme::from(s)) } } @@ -3593,51 +3230,26 @@ impl AsRef for InputDeviceIpScheme { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceIpScheme { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings that describe the active source from the input device, and the video characteristics of that source. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceHdSettings { /// If you specified Auto as the configured input, specifies which of the sources is currently active (SDI or HDMI). - #[serde(rename = "activeInput")] - #[serde(default)] pub active_input: std::option::Option, /// The source at the input device that is currently active. You can specify this source. - #[serde(rename = "configuredInput")] - #[serde(default)] pub configured_input: std::option::Option, /// The state of the input device. - #[serde(rename = "deviceState")] - #[serde(default)] pub device_state: std::option::Option, /// The frame rate of the video source. - #[serde(rename = "framerate")] - #[serde(default)] pub framerate: f64, /// The height of the video source, in pixels. - #[serde(rename = "height")] - #[serde(default)] pub height: i32, /// The current maximum bitrate for ingesting this source, in bits per second. You can specify this maximum. - #[serde(rename = "maxBitrate")] - #[serde(default)] pub max_bitrate: i32, /// The scan type of the video source. - #[serde(rename = "scanType")] - #[serde(default)] pub scan_type: std::option::Option, /// The width of the video source, in pixels. - #[serde(rename = "width")] - #[serde(default)] pub width: i32, } impl std::fmt::Debug for InputDeviceHdSettings { @@ -3805,7 +3417,7 @@ impl std::convert::From<&str> for DeviceUpdateStatus { impl std::str::FromStr for DeviceUpdateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeviceUpdateStatus::from(s)) } } @@ -3823,15 +3435,6 @@ impl AsRef for DeviceUpdateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeviceUpdateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration. #[non_exhaustive] @@ -3862,7 +3465,7 @@ impl std::convert::From<&str> for DeviceSettingsSyncState { impl std::str::FromStr for DeviceSettingsSyncState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeviceSettingsSyncState::from(s)) } } @@ -3880,15 +3483,6 @@ impl AsRef for DeviceSettingsSyncState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeviceSettingsSyncState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The state of the connection between the input device and AWS. #[non_exhaustive] @@ -3919,7 +3513,7 @@ impl std::convert::From<&str> for InputDeviceConnectionState { impl std::str::FromStr for InputDeviceConnectionState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceConnectionState::from(s)) } } @@ -3937,27 +3531,14 @@ impl AsRef for InputDeviceConnectionState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceConnectionState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Configurable settings for the input device. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceConfigurableSettings { /// The input source that you want to use. If the device has a source connected to only one of its input ports, or if you don't care which source the device sends, specify Auto. If the device has sources connected to both its input ports, and you want to use a specific source, specify the source. - #[serde(rename = "configuredInput")] - #[serde(default)] pub configured_input: std::option::Option, /// The maximum bitrate in bits per second. Set a value here to throttle the bitrate of the source video. - #[serde(rename = "maxBitrate")] - #[serde(default)] pub max_bitrate: i32, } impl std::fmt::Debug for InputDeviceConfigurableSettings { @@ -4017,74 +3598,42 @@ impl InputDeviceConfigurableSettings { /// Placeholder documentation for Input #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Input { /// The Unique ARN of the input (generated, immutable). - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// A list of channel IDs that that input is attached to (currently an input can only be attached to one channel). - #[serde(rename = "attachedChannels")] - #[serde(default)] pub attached_channels: std::option::Option>, /// A list of the destinations of the input (PUSH-type). - #[serde(rename = "destinations")] - #[serde(default)] pub destinations: std::option::Option>, /// The generated ID of the input (unique for user account, immutable). - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. /// SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input. - #[serde(rename = "inputClass")] - #[serde(default)] pub input_class: std::option::Option, /// Settings for the input devices. - #[serde(rename = "inputDevices")] - #[serde(default)] pub input_devices: std::option::Option>, /// A list of IDs for all Inputs which are partners of this one. - #[serde(rename = "inputPartnerIds")] - #[serde(default)] pub input_partner_ids: std::option::Option>, /// Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes /// during input switch actions. Presently, this functionality only works with MP4_FILE inputs. - #[serde(rename = "inputSourceType")] - #[serde(default)] pub input_source_type: std::option::Option, /// A list of MediaConnect Flows for this input. - #[serde(rename = "mediaConnectFlows")] - #[serde(default)] pub media_connect_flows: std::option::Option>, /// The user-assigned name (This is a mutable value). - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// The Amazon Resource Name (ARN) of the role this input assumes during and after creation. - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, /// A list of IDs for all the Input Security Groups attached to the input. - #[serde(rename = "securityGroups")] - #[serde(default)] pub security_groups: std::option::Option>, /// A list of the sources of the input (PULL-type). - #[serde(rename = "sources")] - #[serde(default)] pub sources: std::option::Option>, /// Placeholder documentation for InputState - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Placeholder documentation for InputType - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for Input { @@ -4406,7 +3955,7 @@ impl std::convert::From<&str> for InputType { impl std::str::FromStr for InputType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputType::from(s)) } } @@ -4431,15 +3980,6 @@ impl AsRef for InputType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Placeholder documentation for InputState #[non_exhaustive] @@ -4476,7 +4016,7 @@ impl std::convert::From<&str> for InputState { impl std::str::FromStr for InputState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputState::from(s)) } } @@ -4497,32 +4037,17 @@ impl AsRef for InputState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The settings for a PULL type input. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSource { /// The key used to extract the password from EC2 Parameter store. - #[serde(rename = "passwordParam")] - #[serde(default)] pub password_param: std::option::Option, /// This represents the customer's source URL where stream is /// pulled from. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// The username for the input source. - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for InputSource { @@ -4595,11 +4120,9 @@ impl InputSource { /// The settings for a MediaConnect Flow. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MediaConnectFlow { /// The unique ARN of the MediaConnect Flow being used as a source. - #[serde(rename = "flowArn")] - #[serde(default)] pub flow_arn: std::option::Option, } impl std::fmt::Debug for MediaConnectFlow { @@ -4673,7 +4196,7 @@ impl std::convert::From<&str> for InputSourceType { impl std::str::FromStr for InputSourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputSourceType::from(s)) } } @@ -4691,23 +4214,12 @@ impl AsRef for InputSourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputSourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings for an input device. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceSettings { /// The unique ID for the device. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, } impl std::fmt::Debug for InputDeviceSettings { @@ -4777,7 +4289,7 @@ impl std::convert::From<&str> for InputClass { impl std::str::FromStr for InputClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputClass::from(s)) } } @@ -4795,37 +4307,20 @@ impl AsRef for InputClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The settings for a PUSH type input. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDestination { /// The system-generated static IP address of endpoint. /// It remains fixed for the lifetime of the input. - #[serde(rename = "ip")] - #[serde(default)] pub ip: std::option::Option, /// The port number for the input. - #[serde(rename = "port")] - #[serde(default)] pub port: std::option::Option, /// This represents the endpoint that the customer stream will be /// pushed to. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// The properties for a VPC type input destination. - #[serde(rename = "vpc")] - #[serde(default)] pub vpc: std::option::Option, } impl std::fmt::Debug for InputDestination { @@ -4911,15 +4406,11 @@ impl InputDestination { /// The properties for a VPC type input destination. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDestinationVpc { /// The availability zone of the Input destination. - #[serde(rename = "availabilityZone")] - #[serde(default)] pub availability_zone: std::option::Option, /// The network interface ID of the Input destination in the VPC. - #[serde(rename = "networkInterfaceId")] - #[serde(default)] pub network_interface_id: std::option::Option, } impl std::fmt::Debug for InputDestinationVpc { @@ -4982,20 +4473,14 @@ impl InputDestinationVpc { /// Settings for for a PULL type input. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSourceRequest { /// The key used to extract the password from EC2 Parameter store. - #[serde(rename = "passwordParam")] - #[serde(default)] pub password_param: std::option::Option, /// This represents the customer's source URL where stream is /// pulled from. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// The username for the input source. - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for InputSourceRequest { @@ -5068,11 +4553,9 @@ impl InputSourceRequest { /// The settings for a MediaConnect Flow. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MediaConnectFlowRequest { /// The ARN of the MediaConnect Flow that you want to use as a source. - #[serde(rename = "flowArn")] - #[serde(default)] pub flow_arn: std::option::Option, } impl std::fmt::Debug for MediaConnectFlowRequest { @@ -5117,11 +4600,9 @@ impl MediaConnectFlowRequest { /// Settings for an input device. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceRequest { /// The unique ID for the device. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, } impl std::fmt::Debug for InputDeviceRequest { @@ -5164,12 +4645,10 @@ impl InputDeviceRequest { /// Endpoint settings for a PUSH type input. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDestinationRequest { /// A unique name for the location the RTMP stream is being pushed /// to. - #[serde(rename = "streamName")] - #[serde(default)] pub stream_name: std::option::Option, } impl std::fmt::Debug for InputDestinationRequest { @@ -5215,78 +4694,44 @@ impl InputDestinationRequest { /// Placeholder documentation for Channel #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Channel { /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] pub cdi_input_specification: std::option::Option, /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] pub channel_class: std::option::Option, /// A list of destinations of the channel. For UDP outputs, there is one /// destination per output. For other types (HLS, for example), there is /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] pub destinations: std::option::Option>, /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] pub egress_endpoints: std::option::Option>, /// Encoder Settings - #[serde(rename = "encoderSettings")] - #[serde(default)] pub encoder_settings: std::option::Option, /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] pub input_attachments: std::option::Option>, /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] pub input_specification: std::option::Option, /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] pub log_level: std::option::Option, /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Runtime details for the pipelines of a running channel. - #[serde(rename = "pipelineDetails")] - #[serde(default)] pub pipeline_details: std::option::Option>, /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] pub pipelines_running_count: i32, /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] pub vpc: std::option::Option, } impl std::fmt::Debug for Channel { @@ -5580,26 +5025,18 @@ impl Channel { /// The properties for a private VPC Output #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcOutputSettingsDescription { /// The Availability Zones where the vpc subnets are located. /// The first Availability Zone applies to the first subnet in the list of subnets. /// The second Availability Zone applies to the second subnet. - #[serde(rename = "availabilityZones")] - #[serde(default)] pub availability_zones: std::option::Option>, /// A list of Elastic Network Interfaces created by MediaLive in the customer's VPC - #[serde(rename = "networkInterfaceIds")] - #[serde(default)] pub network_interface_ids: std::option::Option>, /// A list of up EC2 VPC security group IDs attached to the Output VPC network interfaces. - #[serde(rename = "securityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, /// A list of VPC subnet IDs from the same VPC. /// If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ). - #[serde(rename = "subnetIds")] - #[serde(default)] pub subnet_ids: std::option::Option>, } impl std::fmt::Debug for VpcOutputSettingsDescription { @@ -5741,7 +5178,7 @@ impl std::convert::From<&str> for ChannelState { impl std::str::FromStr for ChannelState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChannelState::from(s)) } } @@ -5768,39 +5205,20 @@ impl AsRef for ChannelState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChannelState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Runtime details of a pipeline when a channel is running. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineDetail { /// The name of the active input attachment currently being ingested by this pipeline. - #[serde(rename = "activeInputAttachmentName")] - #[serde(default)] pub active_input_attachment_name: std::option::Option, /// The name of the input switch schedule action that occurred most recently and that resulted in the switch to the current input attachment for this pipeline. - #[serde(rename = "activeInputSwitchActionName")] - #[serde(default)] pub active_input_switch_action_name: std::option::Option, /// The name of the motion graphics activate action that occurred most recently and that resulted in the current graphics URI for this pipeline. - #[serde(rename = "activeMotionGraphicsActionName")] - #[serde(default)] pub active_motion_graphics_action_name: std::option::Option, /// The current URI being used for HTML5 motion graphics for this pipeline. - #[serde(rename = "activeMotionGraphicsUri")] - #[serde(default)] pub active_motion_graphics_uri: std::option::Option, /// Pipeline ID - #[serde(rename = "pipelineId")] - #[serde(default)] pub pipeline_id: std::option::Option, } impl std::fmt::Debug for PipelineDetail { @@ -5959,7 +5377,7 @@ impl std::convert::From<&str> for LogLevel { impl std::str::FromStr for LogLevel { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LogLevel::from(s)) } } @@ -5980,31 +5398,16 @@ impl AsRef for LogLevel { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LogLevel { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Placeholder documentation for InputSpecification #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSpecification { /// Input codec - #[serde(rename = "codec")] - #[serde(default)] pub codec: std::option::Option, /// Maximum input bitrate, categorized coarsely - #[serde(rename = "maximumBitrate")] - #[serde(default)] pub maximum_bitrate: std::option::Option, /// Input resolution, categorized coarsely - #[serde(rename = "resolution")] - #[serde(default)] pub resolution: std::option::Option, } impl std::fmt::Debug for InputSpecification { @@ -6108,7 +5511,7 @@ impl std::convert::From<&str> for InputResolution { impl std::str::FromStr for InputResolution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputResolution::from(s)) } } @@ -6127,15 +5530,6 @@ impl AsRef for InputResolution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputResolution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Maximum input bitrate in megabits per second. Bitrates up to 50 Mbps are supported currently. #[non_exhaustive] @@ -6168,7 +5562,7 @@ impl std::convert::From<&str> for InputMaximumBitrate { impl std::str::FromStr for InputMaximumBitrate { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputMaximumBitrate::from(s)) } } @@ -6187,15 +5581,6 @@ impl AsRef for InputMaximumBitrate { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputMaximumBitrate { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// codec in increasing order of complexity #[non_exhaustive] @@ -6228,7 +5613,7 @@ impl std::convert::From<&str> for InputCodec { impl std::str::FromStr for InputCodec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputCodec::from(s)) } } @@ -6247,36 +5632,19 @@ impl AsRef for InputCodec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputCodec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Placeholder documentation for InputAttachment #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputAttachment { /// User-specified settings for defining what the conditions are for declaring the input unhealthy and failing over to a different input. - #[serde(rename = "automaticInputFailoverSettings")] - #[serde(default)] pub automatic_input_failover_settings: std::option::Option, /// User-specified name for the attachment. This is required if the user wants to use this input in an input switch action. - #[serde(rename = "inputAttachmentName")] - #[serde(default)] pub input_attachment_name: std::option::Option, /// The ID of the input - #[serde(rename = "inputId")] - #[serde(default)] pub input_id: std::option::Option, /// Settings of an input (caption selector, etc.) - #[serde(rename = "inputSettings")] - #[serde(default)] pub input_settings: std::option::Option, } impl std::fmt::Debug for InputAttachment { @@ -6373,52 +5741,32 @@ impl InputAttachment { /// Live Event input parameters. There can be multiple inputs in a single Live Event. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSettings { /// Used to select the audio stream to decode for inputs that have multiple available. - #[serde(rename = "audioSelectors")] - #[serde(default)] pub audio_selectors: std::option::Option>, /// Used to select the caption input to use for inputs that have multiple available. - #[serde(rename = "captionSelectors")] - #[serde(default)] pub caption_selectors: std::option::Option>, /// Enable or disable the deblock filter when filtering. - #[serde(rename = "deblockFilter")] - #[serde(default)] pub deblock_filter: std::option::Option, /// Enable or disable the denoise filter when filtering. - #[serde(rename = "denoiseFilter")] - #[serde(default)] pub denoise_filter: std::option::Option, /// Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - #[serde(rename = "filterStrength")] - #[serde(default)] pub filter_strength: i32, /// Turns on the filter for this input. MPEG-2 inputs have the deblocking filter enabled by default. /// 1) auto - filtering will be applied depending on input type/quality /// 2) disabled - no filtering will be applied to the input /// 3) forced - filtering will be applied regardless of input type - #[serde(rename = "inputFilter")] - #[serde(default)] pub input_filter: std::option::Option, /// Input settings. - #[serde(rename = "networkInputSettings")] - #[serde(default)] pub network_input_settings: std::option::Option, /// Specifies whether to extract applicable ancillary data from a SMPTE-2038 source in this input. Applicable data types are captions, timecode, AFD, and SCTE-104 messages. /// - PREFER: Extract from SMPTE-2038 if present in this input, otherwise extract from another source (if any). /// - IGNORE: Never extract any ancillary data from SMPTE-2038. - #[serde(rename = "smpte2038DataPreference")] - #[serde(default)] pub smpte2038_data_preference: std::option::Option, /// Loop input if it is a file. This allows a file input to be streamed indefinitely. - #[serde(rename = "sourceEndBehavior")] - #[serde(default)] pub source_end_behavior: std::option::Option, /// Informs which video elementary stream to decode for input types that have multiple available. - #[serde(rename = "videoSelector")] - #[serde(default)] pub video_selector: std::option::Option, } impl std::fmt::Debug for InputSettings { @@ -6613,23 +5961,15 @@ impl InputSettings { /// Specifies a particular video stream within an input source. An input may have only a single video selector. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoSelector { /// Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed. - #[serde(rename = "colorSpace")] - #[serde(default)] pub color_space: std::option::Option, /// Color space settings - #[serde(rename = "colorSpaceSettings")] - #[serde(default)] pub color_space_settings: std::option::Option, /// Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data. - #[serde(rename = "colorSpaceUsage")] - #[serde(default)] pub color_space_usage: std::option::Option, /// The video selector settings. - #[serde(rename = "selectorSettings")] - #[serde(default)] pub selector_settings: std::option::Option, } impl std::fmt::Debug for VideoSelector { @@ -6730,15 +6070,11 @@ impl VideoSelector { /// Video Selector Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoSelectorSettings { /// Video Selector Pid - #[serde(rename = "videoSelectorPid")] - #[serde(default)] pub video_selector_pid: std::option::Option, /// Video Selector Program Id - #[serde(rename = "videoSelectorProgramId")] - #[serde(default)] pub video_selector_program_id: std::option::Option, } impl std::fmt::Debug for VideoSelectorSettings { @@ -6805,11 +6141,9 @@ impl VideoSelectorSettings { /// Video Selector Program Id #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoSelectorProgramId { /// Selects a specific program from within a multi-program transport stream. If the program doesn't exist, the first program within the transport stream will be selected by default. - #[serde(rename = "programId")] - #[serde(default)] pub program_id: i32, } impl std::fmt::Debug for VideoSelectorProgramId { @@ -6854,11 +6188,9 @@ impl VideoSelectorProgramId { /// Video Selector Pid #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoSelectorPid { /// Selects a specific PID from within a video source. - #[serde(rename = "pid")] - #[serde(default)] pub pid: i32, } impl std::fmt::Debug for VideoSelectorPid { @@ -6930,7 +6262,7 @@ impl std::convert::From<&str> for VideoSelectorColorSpaceUsage { impl std::str::FromStr for VideoSelectorColorSpaceUsage { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VideoSelectorColorSpaceUsage::from(s)) } } @@ -6948,23 +6280,12 @@ impl AsRef for VideoSelectorColorSpaceUsage { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VideoSelectorColorSpaceUsage { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Video Selector Color Space Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoSelectorColorSpaceSettings { /// Hdr10 Settings - #[serde(rename = "hdr10Settings")] - #[serde(default)] pub hdr10_settings: std::option::Option, } impl std::fmt::Debug for VideoSelectorColorSpaceSettings { @@ -7012,19 +6333,15 @@ impl VideoSelectorColorSpaceSettings { /// Hdr10 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Hdr10Settings { /// Maximum Content Light Level /// An integer metadata value defining the maximum light level, in nits, /// of any single pixel within an encoded HDR video stream or file. - #[serde(rename = "maxCll")] - #[serde(default)] pub max_cll: i32, /// Maximum Frame Average Light Level /// An integer metadata value defining the maximum average light level, in nits, /// for any single frame within an encoded HDR video stream or file. - #[serde(rename = "maxFall")] - #[serde(default)] pub max_fall: i32, } impl std::fmt::Debug for Hdr10Settings { @@ -7118,7 +6435,7 @@ impl std::convert::From<&str> for VideoSelectorColorSpace { impl std::str::FromStr for VideoSelectorColorSpace { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VideoSelectorColorSpace::from(s)) } } @@ -7139,15 +6456,6 @@ impl AsRef for VideoSelectorColorSpace { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VideoSelectorColorSpace { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Source End Behavior #[non_exhaustive] @@ -7178,7 +6486,7 @@ impl std::convert::From<&str> for InputSourceEndBehavior { impl std::str::FromStr for InputSourceEndBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputSourceEndBehavior::from(s)) } } @@ -7196,15 +6504,6 @@ impl AsRef for InputSourceEndBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputSourceEndBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smpte2038 Data Preference #[non_exhaustive] @@ -7235,7 +6534,7 @@ impl std::convert::From<&str> for Smpte2038DataPreference { impl std::str::FromStr for Smpte2038DataPreference { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Smpte2038DataPreference::from(s)) } } @@ -7253,27 +6552,14 @@ impl AsRef for Smpte2038DataPreference { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Smpte2038DataPreference { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Network source to transcode. Must be accessible to the Elemental Live node that is running the live event through a network connection. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkInputSettings { /// Specifies HLS input settings when the uri is for a HLS manifest. - #[serde(rename = "hlsInputSettings")] - #[serde(default)] pub hls_input_settings: std::option::Option, /// Check HTTPS server certificates. When set to checkCryptographyOnly, cryptography in the certificate will be checked, but not the server's name. Certain subdomains (notably S3 buckets that use dots in the bucket name) do not strictly match the corresponding certificate's wildcard pattern and would otherwise cause the event to error. This setting is ignored for protocols that do not use https. - #[serde(rename = "serverValidation")] - #[serde(default)] pub server_validation: std::option::Option, } impl std::fmt::Debug for NetworkInputSettings { @@ -7369,7 +6655,7 @@ impl std::convert::From<&str> for NetworkInputServerValidation { impl std::str::FromStr for NetworkInputServerValidation { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NetworkInputServerValidation::from(s)) } } @@ -7389,35 +6675,18 @@ impl AsRef for NetworkInputServerValidation { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NetworkInputServerValidation { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Input Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsInputSettings { /// When specified the HLS stream with the m3u8 BANDWIDTH that most closely matches this value will be chosen, otherwise the highest bandwidth stream in the m3u8 will be chosen. The bitrate is specified in bits per second, as in an HLS manifest. - #[serde(rename = "bandwidth")] - #[serde(default)] pub bandwidth: i32, /// When specified, reading of the HLS input will begin this many buffer segments from the end (most recently written segment). When not specified, the HLS input will begin with the first segment specified in the m3u8. - #[serde(rename = "bufferSegments")] - #[serde(default)] pub buffer_segments: i32, /// The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable. - #[serde(rename = "retries")] - #[serde(default)] pub retries: i32, /// The number of seconds between retries when an attempt to read a manifest or segment fails. - #[serde(rename = "retryInterval")] - #[serde(default)] pub retry_interval: i32, } impl std::fmt::Debug for HlsInputSettings { @@ -7527,7 +6796,7 @@ impl std::convert::From<&str> for InputFilter { impl std::str::FromStr for InputFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputFilter::from(s)) } } @@ -7546,15 +6815,6 @@ impl AsRef for InputFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Denoise Filter #[non_exhaustive] @@ -7585,7 +6845,7 @@ impl std::convert::From<&str> for InputDenoiseFilter { impl std::str::FromStr for InputDenoiseFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDenoiseFilter::from(s)) } } @@ -7603,15 +6863,6 @@ impl AsRef for InputDenoiseFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDenoiseFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Deblock Filter #[non_exhaustive] @@ -7642,7 +6893,7 @@ impl std::convert::From<&str> for InputDeblockFilter { impl std::str::FromStr for InputDeblockFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeblockFilter::from(s)) } } @@ -7660,31 +6911,16 @@ impl AsRef for InputDeblockFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeblockFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Output groups for this Live Event. Output groups contain information about where streams should be distributed. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionSelector { /// When specified this field indicates the three letter language code of the caption track to extract from the source. - #[serde(rename = "languageCode")] - #[serde(default)] pub language_code: std::option::Option, /// Name identifier for a caption selector. This name is used to associate this caption selector with one or more caption descriptions. Names must be unique within an event. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Caption selector settings. - #[serde(rename = "selectorSettings")] - #[serde(default)] pub selector_settings: std::option::Option, } impl std::fmt::Debug for CaptionSelector { @@ -7759,35 +6995,21 @@ impl CaptionSelector { /// Caption Selector Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionSelectorSettings { /// Ancillary Source Settings - #[serde(rename = "ancillarySourceSettings")] - #[serde(default)] pub ancillary_source_settings: std::option::Option, /// Arib Source Settings - #[serde(rename = "aribSourceSettings")] - #[serde(default)] pub arib_source_settings: std::option::Option, /// Dvb Sub Source Settings - #[serde(rename = "dvbSubSourceSettings")] - #[serde(default)] pub dvb_sub_source_settings: std::option::Option, /// Embedded Source Settings - #[serde(rename = "embeddedSourceSettings")] - #[serde(default)] pub embedded_source_settings: std::option::Option, /// Scte20 Source Settings - #[serde(rename = "scte20SourceSettings")] - #[serde(default)] pub scte20_source_settings: std::option::Option, /// Scte27 Source Settings - #[serde(rename = "scte27SourceSettings")] - #[serde(default)] pub scte27_source_settings: std::option::Option, /// Teletext Source Settings - #[serde(rename = "teletextSourceSettings")] - #[serde(default)] pub teletext_source_settings: std::option::Option, } impl std::fmt::Debug for CaptionSelectorSettings { @@ -7940,15 +7162,11 @@ impl CaptionSelectorSettings { /// Teletext Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TeletextSourceSettings { /// Optionally defines a region where TTML style captions will be displayed - #[serde(rename = "outputRectangle")] - #[serde(default)] pub output_rectangle: std::option::Option, /// Specifies the teletext page number within the data stream from which to extract captions. Range of 0x100 (256) to 0x8FF (2303). Unused for passthrough. Should be specified as a hexadecimal string with no "0x" prefix. - #[serde(rename = "pageNumber")] - #[serde(default)] pub page_number: std::option::Option, } impl std::fmt::Debug for TeletextSourceSettings { @@ -8008,32 +7226,24 @@ impl TeletextSourceSettings { /// Caption Rectangle #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionRectangle { /// See the description in leftOffset. /// For height, specify the entire height of the rectangle as a percentage of the underlying frame height. For example, \"80\" means the rectangle height is 80% of the underlying frame height. The topOffset and rectangleHeight must add up to 100% or less. /// This field corresponds to tts:extent - Y in the TTML standard. - #[serde(rename = "height")] - #[serde(default)] pub height: f64, /// Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. (Make sure to leave the default if you don't have either of these formats in the output.) You can define a display rectangle for the captions that is smaller than the underlying video frame. You define the rectangle by specifying the position of the left edge, top edge, bottom edge, and right edge of the rectangle, all within the underlying video frame. The units for the measurements are percentages. /// If you specify a value for one of these fields, you must specify a value for all of them. /// For leftOffset, specify the position of the left edge of the rectangle, as a percentage of the underlying frame width, and relative to the left edge of the frame. For example, \"10\" means the measurement is 10% of the underlying frame width. The rectangle left edge starts at that position from the left edge of the frame. /// This field corresponds to tts:origin - X in the TTML standard. - #[serde(rename = "leftOffset")] - #[serde(default)] pub left_offset: f64, /// See the description in leftOffset. /// For topOffset, specify the position of the top edge of the rectangle, as a percentage of the underlying frame height, and relative to the top edge of the frame. For example, \"10\" means the measurement is 10% of the underlying frame height. The rectangle top edge starts at that position from the top edge of the frame. /// This field corresponds to tts:origin - Y in the TTML standard. - #[serde(rename = "topOffset")] - #[serde(default)] pub top_offset: f64, /// See the description in leftOffset. /// For width, specify the entire width of the rectangle as a percentage of the underlying frame width. For example, \"80\" means the rectangle width is 80% of the underlying frame width. The leftOffset and rectangleWidth must add up to 100% or less. /// This field corresponds to tts:extent - X in the TTML standard. - #[serde(rename = "width")] - #[serde(default)] pub width: f64, } impl std::fmt::Debug for CaptionRectangle { @@ -8123,15 +7333,13 @@ impl CaptionRectangle { /// Scte27 Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte27SourceSettings { /// The pid field is used in conjunction with the caption selector languageCode field as follows: /// - Specify PID and Language: Extracts captions from that PID; the language is "informational". /// - Specify PID and omit Language: Extracts the specified PID. /// - Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be. /// - Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages will be passed through. - #[serde(rename = "pid")] - #[serde(default)] pub pid: i32, } impl std::fmt::Debug for Scte27SourceSettings { @@ -8180,15 +7388,11 @@ impl Scte27SourceSettings { /// Scte20 Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte20SourceSettings { /// If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded. - #[serde(rename = "convert608To708")] - #[serde(default)] pub convert608_to708: std::option::Option, /// Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough. - #[serde(rename = "source608ChannelNumber")] - #[serde(default)] pub source608_channel_number: i32, } impl std::fmt::Debug for Scte20SourceSettings { @@ -8275,7 +7479,7 @@ impl std::convert::From<&str> for Scte20Convert608To708 { impl std::str::FromStr for Scte20Convert608To708 { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte20Convert608To708::from(s)) } } @@ -8293,35 +7497,18 @@ impl AsRef for Scte20Convert608To708 { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte20Convert608To708 { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Embedded Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmbeddedSourceSettings { /// If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded. - #[serde(rename = "convert608To708")] - #[serde(default)] pub convert608_to708: std::option::Option, /// Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions. - #[serde(rename = "scte20Detection")] - #[serde(default)] pub scte20_detection: std::option::Option, /// Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough. - #[serde(rename = "source608ChannelNumber")] - #[serde(default)] pub source608_channel_number: i32, /// This field is unused and deprecated. - #[serde(rename = "source608TrackNumber")] - #[serde(default)] pub source608_track_number: i32, } impl std::fmt::Debug for EmbeddedSourceSettings { @@ -8435,7 +7622,7 @@ impl std::convert::From<&str> for EmbeddedScte20Detection { impl std::str::FromStr for EmbeddedScte20Detection { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EmbeddedScte20Detection::from(s)) } } @@ -8453,15 +7640,6 @@ impl AsRef for EmbeddedScte20Detection { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EmbeddedScte20Detection { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Embedded Convert608 To708 #[non_exhaustive] @@ -8492,7 +7670,7 @@ impl std::convert::From<&str> for EmbeddedConvert608To708 { impl std::str::FromStr for EmbeddedConvert608To708 { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EmbeddedConvert608To708::from(s)) } } @@ -8510,23 +7688,12 @@ impl AsRef for EmbeddedConvert608To708 { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EmbeddedConvert608To708 { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DvbSubSourceSettings { /// When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors. - #[serde(rename = "pid")] - #[serde(default)] pub pid: i32, } impl std::fmt::Debug for DvbSubSourceSettings { @@ -8571,7 +7738,7 @@ impl DvbSubSourceSettings { /// Arib Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AribSourceSettings {} impl std::fmt::Debug for AribSourceSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -8601,11 +7768,9 @@ impl AribSourceSettings { /// Ancillary Source Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AncillarySourceSettings { /// Specifies the number (1 to 4) of the captions channel you want to extract from the ancillary captions. If you plan to convert the ancillary captions to another format, complete this field. If you plan to choose Embedded as the captions destination in the output (to pass through all the channels in the ancillary captions), leave this field blank because MediaLive ignores the field. - #[serde(rename = "sourceAncillaryChannelNumber")] - #[serde(default)] pub source_ancillary_channel_number: i32, } impl std::fmt::Debug for AncillarySourceSettings { @@ -8658,15 +7823,11 @@ impl AncillarySourceSettings { /// Audio Selector #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioSelector { /// The name of this AudioSelector. AudioDescriptions will use this name to uniquely identify this Selector. Selector names should be unique per input. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// The audio selector settings. - #[serde(rename = "selectorSettings")] - #[serde(default)] pub selector_settings: std::option::Option, } impl std::fmt::Debug for AudioSelector { @@ -8726,19 +7887,13 @@ impl AudioSelector { /// Audio Selector Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioSelectorSettings { /// Audio Language Selection - #[serde(rename = "audioLanguageSelection")] - #[serde(default)] pub audio_language_selection: std::option::Option, /// Audio Pid Selection - #[serde(rename = "audioPidSelection")] - #[serde(default)] pub audio_pid_selection: std::option::Option, /// Audio Track Selection - #[serde(rename = "audioTrackSelection")] - #[serde(default)] pub audio_track_selection: std::option::Option, } impl std::fmt::Debug for AudioSelectorSettings { @@ -8820,11 +7975,9 @@ impl AudioSelectorSettings { /// Audio Track Selection #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioTrackSelection { /// Selects one or more unique audio tracks from within a source. - #[serde(rename = "tracks")] - #[serde(default)] pub tracks: std::option::Option>, } impl std::fmt::Debug for AudioTrackSelection { @@ -8873,11 +8026,9 @@ impl AudioTrackSelection { /// Audio Track #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioTrack { /// 1-based integer value that maps to a specific audio track - #[serde(rename = "track")] - #[serde(default)] pub track: i32, } impl std::fmt::Debug for AudioTrack { @@ -8922,11 +8073,9 @@ impl AudioTrack { /// Audio Pid Selection #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioPidSelection { /// Selects a specific PID from within a source. - #[serde(rename = "pid")] - #[serde(default)] pub pid: i32, } impl std::fmt::Debug for AudioPidSelection { @@ -8971,15 +8120,11 @@ impl AudioPidSelection { /// Audio Language Selection #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioLanguageSelection { /// Selects a specific three-letter language code from within an audio source. - #[serde(rename = "languageCode")] - #[serde(default)] pub language_code: std::option::Option, /// When set to "strict", the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present then mute will be encoded until the language returns. If "loose", then on a PMT update the demux will choose another audio stream in the program with the same stream type if it can't find one with the same language. - #[serde(rename = "languageSelectionPolicy")] - #[serde(default)] pub language_selection_policy: std::option::Option, } impl std::fmt::Debug for AudioLanguageSelection { @@ -9073,7 +8218,7 @@ impl std::convert::From<&str> for AudioLanguageSelectionPolicy { impl std::str::FromStr for AudioLanguageSelectionPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioLanguageSelectionPolicy::from(s)) } } @@ -9091,35 +8236,18 @@ impl AsRef for AudioLanguageSelectionPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioLanguageSelectionPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The settings for Automatic Input Failover. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutomaticInputFailoverSettings { /// This clear time defines the requirement a recovered input must meet to be considered healthy. The input must have no failover conditions for this length of time. Enter a time in milliseconds. This value is particularly important if the input_preference for the failover pair is set to PRIMARY_INPUT_PREFERRED, because after this time, MediaLive will switch back to the primary input. - #[serde(rename = "errorClearTimeMsec")] - #[serde(default)] pub error_clear_time_msec: i32, /// A list of failover conditions. If any of these conditions occur, MediaLive will perform a failover to the other input. - #[serde(rename = "failoverConditions")] - #[serde(default)] pub failover_conditions: std::option::Option>, /// Input preference when deciding which input to make active when a previously failed input has recovered. - #[serde(rename = "inputPreference")] - #[serde(default)] pub input_preference: std::option::Option, /// The input ID of the secondary input in the automatic input failover pair. - #[serde(rename = "secondaryInputId")] - #[serde(default)] pub secondary_input_id: std::option::Option, } impl std::fmt::Debug for AutomaticInputFailoverSettings { @@ -9243,7 +8371,7 @@ impl std::convert::From<&str> for InputPreference { impl std::str::FromStr for InputPreference { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputPreference::from(s)) } } @@ -9261,23 +8389,12 @@ impl AsRef for InputPreference { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputPreference { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Failover Condition settings. There can be multiple failover conditions inside AutomaticInputFailoverSettings. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailoverCondition { /// Failover condition type-specific settings. - #[serde(rename = "failoverConditionSettings")] - #[serde(default)] pub failover_condition_settings: std::option::Option, } impl std::fmt::Debug for FailoverCondition { @@ -9332,19 +8449,13 @@ impl FailoverCondition { /// Settings for one failover condition. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailoverConditionSettings { /// MediaLive will perform a failover if the specified audio selector is silent for the specified period. - #[serde(rename = "audioSilenceSettings")] - #[serde(default)] pub audio_silence_settings: std::option::Option, /// MediaLive will perform a failover if content is not detected in this input for the specified period. - #[serde(rename = "inputLossSettings")] - #[serde(default)] pub input_loss_settings: std::option::Option, /// MediaLive will perform a failover if content is considered black for the specified period. - #[serde(rename = "videoBlackSettings")] - #[serde(default)] pub video_black_settings: std::option::Option, } impl std::fmt::Debug for FailoverConditionSettings { @@ -9434,15 +8545,11 @@ impl FailoverConditionSettings { /// Placeholder documentation for VideoBlackFailoverSettings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoBlackFailoverSettings { /// A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the input to be considered black, every pixel in a frame must be below this threshold. The threshold is calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black). Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is 0.0 to 1.0, with any number of decimal places. - #[serde(rename = "blackDetectThreshold")] - #[serde(default)] pub black_detect_threshold: f64, /// The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs. - #[serde(rename = "videoBlackThresholdMsec")] - #[serde(default)] pub video_black_threshold_msec: i32, } impl std::fmt::Debug for VideoBlackFailoverSettings { @@ -9502,11 +8609,9 @@ impl VideoBlackFailoverSettings { /// MediaLive will perform a failover if content is not detected in this input for the specified period. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputLossFailoverSettings { /// The amount of time (in milliseconds) that no input is detected. After that time, an input failover will occur. - #[serde(rename = "inputLossThresholdMsec")] - #[serde(default)] pub input_loss_threshold_msec: i32, } impl std::fmt::Debug for InputLossFailoverSettings { @@ -9551,15 +8656,11 @@ impl InputLossFailoverSettings { /// Placeholder documentation for AudioSilenceFailoverSettings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioSilenceFailoverSettings { /// The name of the audio selector in the input that MediaLive should monitor to detect silence. Select your most important rendition. If you didn't create an audio selector in this input, leave blank. - #[serde(rename = "audioSelectorName")] - #[serde(default)] pub audio_selector_name: std::option::Option, /// The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs. Silence is defined as audio loss or audio quieter than -50 dBFS. - #[serde(rename = "audioSilenceThresholdMsec")] - #[serde(default)] pub audio_silence_threshold_msec: i32, } impl std::fmt::Debug for AudioSilenceFailoverSettings { @@ -9622,56 +8723,32 @@ impl AudioSilenceFailoverSettings { /// Encoder Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EncoderSettings { /// Placeholder documentation for __listOfAudioDescription - #[serde(rename = "audioDescriptions")] - #[serde(default)] pub audio_descriptions: std::option::Option>, /// Settings for ad avail blanking. - #[serde(rename = "availBlanking")] - #[serde(default)] pub avail_blanking: std::option::Option, /// Event-wide configuration settings for ad avail insertion. - #[serde(rename = "availConfiguration")] - #[serde(default)] pub avail_configuration: std::option::Option, /// Settings for blackout slate. - #[serde(rename = "blackoutSlate")] - #[serde(default)] pub blackout_slate: std::option::Option, /// Settings for caption decriptions - #[serde(rename = "captionDescriptions")] - #[serde(default)] pub caption_descriptions: std::option::Option>, /// Feature Activations - #[serde(rename = "featureActivations")] - #[serde(default)] pub feature_activations: std::option::Option, /// Configuration settings that apply to the event as a whole. - #[serde(rename = "globalConfiguration")] - #[serde(default)] pub global_configuration: std::option::Option, /// Settings for motion graphics. - #[serde(rename = "motionGraphicsConfiguration")] - #[serde(default)] pub motion_graphics_configuration: std::option::Option, /// Nielsen configuration settings. - #[serde(rename = "nielsenConfiguration")] - #[serde(default)] pub nielsen_configuration: std::option::Option, /// Placeholder documentation for __listOfOutputGroup - #[serde(rename = "outputGroups")] - #[serde(default)] pub output_groups: std::option::Option>, /// Contains settings used to acquire and adjust timecode information from inputs. - #[serde(rename = "timecodeConfig")] - #[serde(default)] pub timecode_config: std::option::Option, /// Placeholder documentation for __listOfVideoDescription - #[serde(rename = "videoDescriptions")] - #[serde(default)] pub video_descriptions: std::option::Option>, } impl std::fmt::Debug for EncoderSettings { @@ -9907,38 +8984,24 @@ impl EncoderSettings { /// Video settings for this stream. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoDescription { /// Video codec settings. - #[serde(rename = "codecSettings")] - #[serde(default)] pub codec_settings: std::option::Option, /// Output video height, in pixels. Must be an even number. For most codecs, you can leave this field and width blank in order to use the height and width (resolution) from the source. Note, however, that leaving blank is not recommended. For the Frame Capture codec, height and width are required. - #[serde(rename = "height")] - #[serde(default)] pub height: i32, /// The name of this VideoDescription. Outputs will use this name to uniquely identify this Description. Description names should be unique within this Live Event. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Indicates how MediaLive will respond to the AFD values that might be in the input video. If you do not know what AFD signaling is, or if your downstream system has not given you guidance, choose PASSTHROUGH. /// RESPOND: MediaLive clips the input video using a formula that uses the AFD values (configured in afdSignaling ), the input display aspect ratio, and the output display aspect ratio. MediaLive also includes the AFD values in the output, unless the codec for this encode is FRAME_CAPTURE. /// PASSTHROUGH: MediaLive ignores the AFD values and does not clip the video. But MediaLive does include the values in the output. /// NONE: MediaLive does not clip the input video and does not include the AFD values in the output - #[serde(rename = "respondToAfd")] - #[serde(default)] pub respond_to_afd: std::option::Option, /// STRETCH_TO_OUTPUT configures the output position to stretch the video to the specified output resolution (height and width). This option will override any position value. DEFAULT may insert black boxes (pillar boxes or letter boxes) around the video to provide the specified output resolution. - #[serde(rename = "scalingBehavior")] - #[serde(default)] pub scaling_behavior: std::option::Option, /// Changes the strength of the anti-alias filter used for scaling. 0 is the softest setting, 100 is the sharpest. A setting of 50 is recommended for most content. - #[serde(rename = "sharpness")] - #[serde(default)] pub sharpness: i32, /// Output video width, in pixels. Must be an even number. For most codecs, you can leave this field and height blank in order to use the height and width (resolution) from the source. Note, however, that leaving blank is not recommended. For the Frame Capture codec, height and width are required. - #[serde(rename = "width")] - #[serde(default)] pub width: i32, } impl std::fmt::Debug for VideoDescription { @@ -10098,7 +9161,7 @@ impl std::convert::From<&str> for VideoDescriptionScalingBehavior { impl std::str::FromStr for VideoDescriptionScalingBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VideoDescriptionScalingBehavior::from(s)) } } @@ -10116,15 +9179,6 @@ impl AsRef for VideoDescriptionScalingBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VideoDescriptionScalingBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Video Description Respond To Afd #[non_exhaustive] @@ -10157,7 +9211,7 @@ impl std::convert::From<&str> for VideoDescriptionRespondToAfd { impl std::str::FromStr for VideoDescriptionRespondToAfd { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VideoDescriptionRespondToAfd::from(s)) } } @@ -10176,35 +9230,18 @@ impl AsRef for VideoDescriptionRespondToAfd { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VideoDescriptionRespondToAfd { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Video Codec Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VideoCodecSettings { /// Frame Capture Settings - #[serde(rename = "frameCaptureSettings")] - #[serde(default)] pub frame_capture_settings: std::option::Option, /// H264 Settings - #[serde(rename = "h264Settings")] - #[serde(default)] pub h264_settings: std::option::Option, /// H265 Settings - #[serde(rename = "h265Settings")] - #[serde(default)] pub h265_settings: std::option::Option, /// Mpeg2 Settings - #[serde(rename = "mpeg2Settings")] - #[serde(default)] pub mpeg2_settings: std::option::Option, } impl std::fmt::Debug for VideoCodecSettings { @@ -10297,84 +9334,52 @@ impl VideoCodecSettings { /// Mpeg2 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Mpeg2Settings { /// Choose Off to disable adaptive quantization. Or choose another value to enable the quantizer and set its strength. The strengths are: Auto, Off, Low, Medium, High. When you enable this field, MediaLive allows intra-frame quantizers to vary, which might improve visual quality. - #[serde(rename = "adaptiveQuantization")] - #[serde(default)] pub adaptive_quantization: std::option::Option, /// Indicates the AFD values that MediaLive will write into the video encode. If you do not know what AFD signaling is, or if your downstream system has not given you guidance, choose AUTO. /// AUTO: MediaLive will try to preserve the input AFD value (in cases where multiple AFD values are valid). /// FIXED: MediaLive will use the value you specify in fixedAFD. - #[serde(rename = "afdSignaling")] - #[serde(default)] pub afd_signaling: std::option::Option, /// Specifies whether to include the color space metadata. The metadata describes the color space that applies to the video (the colorSpace field). We recommend that you insert the metadata. - #[serde(rename = "colorMetadata")] - #[serde(default)] pub color_metadata: std::option::Option, /// Choose the type of color space conversion to apply to the output. For detailed information on setting up both the input and the output to obtain the desired color space in the output, see the section on \"MediaLive Features - Video - color space\" in the MediaLive User Guide. /// PASSTHROUGH: Keep the color space of the input content - do not convert it. /// AUTO:Convert all content that is SD to rec 601, and convert all content that is HD to rec 709. - #[serde(rename = "colorSpace")] - #[serde(default)] pub color_space: std::option::Option, /// Sets the pixel aspect ratio for the encode. - #[serde(rename = "displayAspectRatio")] - #[serde(default)] pub display_aspect_ratio: std::option::Option, /// Optionally specify a noise reduction filter, which can improve quality of compressed content. If you do not choose a filter, no filter will be applied. /// TEMPORAL: This filter is useful for both source content that is noisy (when it has excessive digital artifacts) and source content that is clean. /// When the content is noisy, the filter cleans up the source content before the encoding phase, with these two effects: First, it improves the output video quality because the content has been cleaned up. Secondly, it decreases the bandwidth because MediaLive does not waste bits on encoding noise. /// When the content is reasonably clean, the filter tends to decrease the bitrate. - #[serde(rename = "filterSettings")] - #[serde(default)] pub filter_settings: std::option::Option, /// Complete this field only when afdSignaling is set to FIXED. Enter the AFD value (4 bits) to write on all frames of the video encode. - #[serde(rename = "fixedAfd")] - #[serde(default)] pub fixed_afd: std::option::Option, /// description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS. - #[serde(rename = "framerateDenominator")] - #[serde(default)] pub framerate_denominator: i32, /// The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS. - #[serde(rename = "framerateNumerator")] - #[serde(default)] pub framerate_numerator: i32, /// MPEG2: default is open GOP. - #[serde(rename = "gopClosedCadence")] - #[serde(default)] pub gop_closed_cadence: i32, /// Relates to the GOP structure. The number of B-frames between reference frames. If you do not know what a B-frame is, use the default. - #[serde(rename = "gopNumBFrames")] - #[serde(default)] pub gop_num_b_frames: i32, /// Relates to the GOP structure. The GOP size (keyframe interval) in the units specified in gopSizeUnits. If you do not know what GOP is, use the default. /// If gopSizeUnits is frames, then the gopSize must be an integer and must be greater than or equal to 1. /// If gopSizeUnits is seconds, the gopSize must be greater than 0, but does not need to be an integer. - #[serde(rename = "gopSize")] - #[serde(default)] pub gop_size: f64, /// Relates to the GOP structure. Specifies whether the gopSize is specified in frames or seconds. If you do not plan to change the default gopSize, leave the default. If you specify SECONDS, MediaLive will internally convert the gop size to a frame count. - #[serde(rename = "gopSizeUnits")] - #[serde(default)] pub gop_size_units: std::option::Option, /// Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first). - #[serde(rename = "scanType")] - #[serde(default)] pub scan_type: std::option::Option, /// Relates to the GOP structure. If you do not know what GOP is, use the default. /// FIXED: Set the number of B-frames in each sub-GOP to the value in gopNumBFrames. /// DYNAMIC: Let MediaLive optimize the number of B-frames in each sub-GOP, to improve visual quality. - #[serde(rename = "subgopLength")] - #[serde(default)] pub subgop_length: std::option::Option, /// Determines how MediaLive inserts timecodes in the output video. For detailed information about setting up the input and the output for a timecode, see the section on \"MediaLive Features - Timecode configuration\" in the MediaLive User Guide. /// DISABLED: do not include timecodes. /// GOP_TIMECODE: Include timecode metadata in the GOP header. - #[serde(rename = "timecodeInsertion")] - #[serde(default)] pub timecode_insertion: std::option::Option, } impl std::fmt::Debug for Mpeg2Settings { @@ -10677,7 +9682,7 @@ impl std::convert::From<&str> for Mpeg2TimecodeInsertionBehavior { impl std::str::FromStr for Mpeg2TimecodeInsertionBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2TimecodeInsertionBehavior::from(s)) } } @@ -10695,15 +9700,6 @@ impl AsRef for Mpeg2TimecodeInsertionBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2TimecodeInsertionBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Sub Gop Length #[non_exhaustive] @@ -10734,7 +9730,7 @@ impl std::convert::From<&str> for Mpeg2SubGopLength { impl std::str::FromStr for Mpeg2SubGopLength { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2SubGopLength::from(s)) } } @@ -10752,15 +9748,6 @@ impl AsRef for Mpeg2SubGopLength { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2SubGopLength { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Scan Type #[non_exhaustive] @@ -10791,7 +9778,7 @@ impl std::convert::From<&str> for Mpeg2ScanType { impl std::str::FromStr for Mpeg2ScanType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2ScanType::from(s)) } } @@ -10809,15 +9796,6 @@ impl AsRef for Mpeg2ScanType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2ScanType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Gop Size Units #[non_exhaustive] @@ -10848,7 +9826,7 @@ impl std::convert::From<&str> for Mpeg2GopSizeUnits { impl std::str::FromStr for Mpeg2GopSizeUnits { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2GopSizeUnits::from(s)) } } @@ -10866,15 +9844,6 @@ impl AsRef for Mpeg2GopSizeUnits { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2GopSizeUnits { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Fixed Afd #[non_exhaustive] @@ -10923,7 +9892,7 @@ impl std::convert::From<&str> for FixedAfd { impl std::str::FromStr for FixedAfd { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FixedAfd::from(s)) } } @@ -10950,23 +9919,12 @@ impl AsRef for FixedAfd { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FixedAfd { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Filter Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Mpeg2FilterSettings { /// Temporal Filter Settings - #[serde(rename = "temporalFilterSettings")] - #[serde(default)] pub temporal_filter_settings: std::option::Option, } impl std::fmt::Debug for Mpeg2FilterSettings { @@ -11018,18 +9976,14 @@ impl Mpeg2FilterSettings { /// Temporal Filter Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TemporalFilterSettings { /// If you enable this filter, the results are the following: /// - If the source content is noisy (it contains excessive digital artifacts), the filter cleans up the source. /// - If the source content is already clean, the filter tends to decrease the bitrate, especially when the rate control mode is QVBR. - #[serde(rename = "postFilterSharpening")] - #[serde(default)] pub post_filter_sharpening: std::option::Option, /// Choose a filter strength. We recommend a strength of 1 or 2. A higher strength might take out good information, resulting in an image that is overly soft. - #[serde(rename = "strength")] - #[serde(default)] pub strength: std::option::Option, } impl std::fmt::Debug for TemporalFilterSettings { @@ -11155,7 +10109,7 @@ impl std::convert::From<&str> for TemporalFilterStrength { impl std::str::FromStr for TemporalFilterStrength { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TemporalFilterStrength::from(s)) } } @@ -11188,15 +10142,6 @@ impl AsRef for TemporalFilterStrength { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TemporalFilterStrength { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Temporal Filter Post Filter Sharpening #[non_exhaustive] @@ -11229,7 +10174,7 @@ impl std::convert::From<&str> for TemporalFilterPostFilterSharpening { impl std::str::FromStr for TemporalFilterPostFilterSharpening { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TemporalFilterPostFilterSharpening::from(s)) } } @@ -11248,15 +10193,6 @@ impl AsRef for TemporalFilterPostFilterSharpening { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TemporalFilterPostFilterSharpening { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Display Ratio #[non_exhaustive] @@ -11287,7 +10223,7 @@ impl std::convert::From<&str> for Mpeg2DisplayRatio { impl std::str::FromStr for Mpeg2DisplayRatio { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2DisplayRatio::from(s)) } } @@ -11305,15 +10241,6 @@ impl AsRef for Mpeg2DisplayRatio { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2DisplayRatio { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Color Space #[non_exhaustive] @@ -11344,7 +10271,7 @@ impl std::convert::From<&str> for Mpeg2ColorSpace { impl std::str::FromStr for Mpeg2ColorSpace { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2ColorSpace::from(s)) } } @@ -11362,15 +10289,6 @@ impl AsRef for Mpeg2ColorSpace { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2ColorSpace { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Color Metadata #[non_exhaustive] @@ -11401,7 +10319,7 @@ impl std::convert::From<&str> for Mpeg2ColorMetadata { impl std::str::FromStr for Mpeg2ColorMetadata { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2ColorMetadata::from(s)) } } @@ -11419,15 +10337,6 @@ impl AsRef for Mpeg2ColorMetadata { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2ColorMetadata { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Afd Signaling #[non_exhaustive] @@ -11460,7 +10369,7 @@ impl std::convert::From<&str> for AfdSignaling { impl std::str::FromStr for AfdSignaling { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AfdSignaling::from(s)) } } @@ -11479,15 +10388,6 @@ impl AsRef for AfdSignaling { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AfdSignaling { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Mpeg2 Adaptive Quantization #[non_exhaustive] @@ -11524,7 +10424,7 @@ impl std::convert::From<&str> for Mpeg2AdaptiveQuantization { impl std::str::FromStr for Mpeg2AdaptiveQuantization { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mpeg2AdaptiveQuantization::from(s)) } } @@ -11545,117 +10445,62 @@ impl AsRef for Mpeg2AdaptiveQuantization { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mpeg2AdaptiveQuantization { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H265Settings { /// Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality. - #[serde(rename = "adaptiveQuantization")] - #[serde(default)] pub adaptive_quantization: std::option::Option, /// Indicates that AFD values will be written into the output stream. If afdSignaling is "auto", the system will try to preserve the input AFD value (in cases where multiple AFD values are valid). If set to "fixed", the AFD value will be the value configured in the fixedAfd parameter. - #[serde(rename = "afdSignaling")] - #[serde(default)] pub afd_signaling: std::option::Option, /// Whether or not EML should insert an Alternative Transfer Function SEI message to support backwards compatibility with non-HDR decoders and displays. - #[serde(rename = "alternativeTransferFunction")] - #[serde(default)] pub alternative_transfer_function: std::option::Option, /// Average bitrate in bits/second. Required when the rate control mode is VBR or CBR. Not used for QVBR. In an MS Smooth output group, each output must have a unique value when its bitrate is rounded down to the nearest multiple of 1000. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: i32, /// Size of buffer (HRD buffer model) in bits. - #[serde(rename = "bufSize")] - #[serde(default)] pub buf_size: i32, /// Includes colorspace metadata in the output. - #[serde(rename = "colorMetadata")] - #[serde(default)] pub color_metadata: std::option::Option, /// Color Space settings - #[serde(rename = "colorSpaceSettings")] - #[serde(default)] pub color_space_settings: std::option::Option, /// Optional filters that you can apply to an encode. - #[serde(rename = "filterSettings")] - #[serde(default)] pub filter_settings: std::option::Option, /// Four bit AFD value to write on all frames of video in the output stream. Only valid when afdSignaling is set to 'Fixed'. - #[serde(rename = "fixedAfd")] - #[serde(default)] pub fixed_afd: std::option::Option, /// If set to enabled, adjust quantization within each frame to reduce flicker or 'pop' on I-frames. - #[serde(rename = "flickerAq")] - #[serde(default)] pub flicker_aq: std::option::Option, /// Framerate denominator. - #[serde(rename = "framerateDenominator")] - #[serde(default)] pub framerate_denominator: i32, /// Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. - #[serde(rename = "framerateNumerator")] - #[serde(default)] pub framerate_numerator: i32, /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting. - #[serde(rename = "gopClosedCadence")] - #[serde(default)] pub gop_closed_cadence: i32, /// GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits. /// If gopSizeUnits is frames, gopSize must be an integer and must be greater than or equal to 1. /// If gopSizeUnits is seconds, gopSize must be greater than 0, but need not be an integer. - #[serde(rename = "gopSize")] - #[serde(default)] pub gop_size: f64, /// Indicates if the gopSize is specified in frames or seconds. If seconds the system will convert the gopSize into a frame count at run time. - #[serde(rename = "gopSizeUnits")] - #[serde(default)] pub gop_size_units: std::option::Option, /// H.265 Level. - #[serde(rename = "level")] - #[serde(default)] pub level: std::option::Option, /// Amount of lookahead. A value of low can decrease latency and memory usage, while high can produce better quality for certain content. - #[serde(rename = "lookAheadRateControl")] - #[serde(default)] pub look_ahead_rate_control: std::option::Option, /// For QVBR: See the tooltip for Quality level - #[serde(rename = "maxBitrate")] - #[serde(default)] pub max_bitrate: i32, /// Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if multiplex rate control is used. Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - #[serde(rename = "minIInterval")] - #[serde(default)] pub min_i_interval: i32, /// Pixel Aspect Ratio denominator. - #[serde(rename = "parDenominator")] - #[serde(default)] pub par_denominator: i32, /// Pixel Aspect Ratio numerator. - #[serde(rename = "parNumerator")] - #[serde(default)] pub par_numerator: i32, /// H.265 Profile. - #[serde(rename = "profile")] - #[serde(default)] pub profile: std::option::Option, /// Controls the target quality for the video encode. Applies only when the rate control mode is QVBR. Set values for the QVBR quality level field and Max bitrate field that suit your most important viewing devices. Recommended values are: /// - Primary screen: Quality level: 8 to 10. Max bitrate: 4M /// - PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M /// - Smartphone: Quality level: 6. Max bitrate: 1M to 1.5M - #[serde(rename = "qvbrQualityLevel")] - #[serde(default)] pub qvbr_quality_level: i32, /// Rate control mode. /// QVBR: Quality will match the specified quality level except when it is constrained by the @@ -11665,31 +10510,19 @@ pub struct H265Settings { /// Multiplex: This rate control mode is only supported (and is required) when the video is being /// delivered to a MediaLive Multiplex in which case the rate control configuration is controlled /// by the properties within the Multiplex Program. - #[serde(rename = "rateControlMode")] - #[serde(default)] pub rate_control_mode: std::option::Option, /// Sets the scan type of the output to progressive or top-field-first interlaced. - #[serde(rename = "scanType")] - #[serde(default)] pub scan_type: std::option::Option, /// Scene change detection. - #[serde(rename = "sceneChangeDetect")] - #[serde(default)] pub scene_change_detect: std::option::Option, /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. /// This field is optional; when no value is specified the encoder will choose the number of slices based on encode resolution. - #[serde(rename = "slices")] - #[serde(default)] pub slices: i32, /// H.265 Tier. - #[serde(rename = "tier")] - #[serde(default)] pub tier: std::option::Option, /// Determines how timecodes should be inserted into the video elementary stream. /// - 'disabled': Do not include timecodes /// - 'picTimingSei': Pass through picture timing SEI messages from the source specified in Timecode Config - #[serde(rename = "timecodeInsertion")] - #[serde(default)] pub timecode_insertion: std::option::Option, } impl std::fmt::Debug for H265Settings { @@ -12173,7 +11006,7 @@ impl std::convert::From<&str> for H265TimecodeInsertionBehavior { impl std::str::FromStr for H265TimecodeInsertionBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265TimecodeInsertionBehavior::from(s)) } } @@ -12191,15 +11024,6 @@ impl AsRef for H265TimecodeInsertionBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265TimecodeInsertionBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Tier #[non_exhaustive] @@ -12230,7 +11054,7 @@ impl std::convert::From<&str> for H265Tier { impl std::str::FromStr for H265Tier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265Tier::from(s)) } } @@ -12248,15 +11072,6 @@ impl AsRef for H265Tier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265Tier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Scene Change Detect #[non_exhaustive] @@ -12287,7 +11102,7 @@ impl std::convert::From<&str> for H265SceneChangeDetect { impl std::str::FromStr for H265SceneChangeDetect { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265SceneChangeDetect::from(s)) } } @@ -12305,15 +11120,6 @@ impl AsRef for H265SceneChangeDetect { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265SceneChangeDetect { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Scan Type #[non_exhaustive] @@ -12344,7 +11150,7 @@ impl std::convert::From<&str> for H265ScanType { impl std::str::FromStr for H265ScanType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265ScanType::from(s)) } } @@ -12362,15 +11168,6 @@ impl AsRef for H265ScanType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265ScanType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Rate Control Mode #[non_exhaustive] @@ -12403,7 +11200,7 @@ impl std::convert::From<&str> for H265RateControlMode { impl std::str::FromStr for H265RateControlMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265RateControlMode::from(s)) } } @@ -12422,15 +11219,6 @@ impl AsRef for H265RateControlMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265RateControlMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Profile #[non_exhaustive] @@ -12461,7 +11249,7 @@ impl std::convert::From<&str> for H265Profile { impl std::str::FromStr for H265Profile { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265Profile::from(s)) } } @@ -12479,15 +11267,6 @@ impl AsRef for H265Profile { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265Profile { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Look Ahead Rate Control #[non_exhaustive] @@ -12520,7 +11299,7 @@ impl std::convert::From<&str> for H265LookAheadRateControl { impl std::str::FromStr for H265LookAheadRateControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265LookAheadRateControl::from(s)) } } @@ -12539,15 +11318,6 @@ impl AsRef for H265LookAheadRateControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265LookAheadRateControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Level #[non_exhaustive] @@ -12602,7 +11372,7 @@ impl std::convert::From<&str> for H265Level { impl std::str::FromStr for H265Level { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265Level::from(s)) } } @@ -12632,15 +11402,6 @@ impl AsRef for H265Level { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265Level { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Gop Size Units #[non_exhaustive] @@ -12671,7 +11432,7 @@ impl std::convert::From<&str> for H265GopSizeUnits { impl std::str::FromStr for H265GopSizeUnits { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265GopSizeUnits::from(s)) } } @@ -12689,15 +11450,6 @@ impl AsRef for H265GopSizeUnits { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265GopSizeUnits { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Flicker Aq #[non_exhaustive] @@ -12728,7 +11480,7 @@ impl std::convert::From<&str> for H265FlickerAq { impl std::str::FromStr for H265FlickerAq { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265FlickerAq::from(s)) } } @@ -12746,23 +11498,12 @@ impl AsRef for H265FlickerAq { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265FlickerAq { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Filter Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H265FilterSettings { /// Temporal Filter Settings - #[serde(rename = "temporalFilterSettings")] - #[serde(default)] pub temporal_filter_settings: std::option::Option, } impl std::fmt::Debug for H265FilterSettings { @@ -12814,24 +11555,16 @@ impl H265FilterSettings { /// H265 Color Space Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H265ColorSpaceSettings { /// Passthrough applies no color space conversion to the output - #[serde(rename = "colorSpacePassthroughSettings")] - #[serde(default)] pub color_space_passthrough_settings: std::option::Option, /// Hdr10 Settings - #[serde(rename = "hdr10Settings")] - #[serde(default)] pub hdr10_settings: std::option::Option, /// Rec601 Settings - #[serde(rename = "rec601Settings")] - #[serde(default)] pub rec601_settings: std::option::Option, /// Rec709 Settings - #[serde(rename = "rec709Settings")] - #[serde(default)] pub rec709_settings: std::option::Option, } impl std::fmt::Debug for H265ColorSpaceSettings { @@ -12931,7 +11664,7 @@ impl H265ColorSpaceSettings { /// Rec709 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Rec709Settings {} impl std::fmt::Debug for Rec709Settings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12961,7 +11694,7 @@ impl Rec709Settings { /// Rec601 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Rec601Settings {} impl std::fmt::Debug for Rec601Settings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12991,7 +11724,7 @@ impl Rec601Settings { /// Passthrough applies no color space conversion to the output #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ColorSpacePassthroughSettings {} impl std::fmt::Debug for ColorSpacePassthroughSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -13048,7 +11781,7 @@ impl std::convert::From<&str> for H265ColorMetadata { impl std::str::FromStr for H265ColorMetadata { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265ColorMetadata::from(s)) } } @@ -13066,15 +11799,6 @@ impl AsRef for H265ColorMetadata { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265ColorMetadata { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Alternative Transfer Function #[non_exhaustive] @@ -13105,7 +11829,7 @@ impl std::convert::From<&str> for H265AlternativeTransferFunction { impl std::str::FromStr for H265AlternativeTransferFunction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265AlternativeTransferFunction::from(s)) } } @@ -13123,15 +11847,6 @@ impl AsRef for H265AlternativeTransferFunction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265AlternativeTransferFunction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H265 Adaptive Quantization #[non_exhaustive] @@ -13172,7 +11887,7 @@ impl std::convert::From<&str> for H265AdaptiveQuantization { impl std::str::FromStr for H265AdaptiveQuantization { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H265AdaptiveQuantization::from(s)) } } @@ -13195,154 +11910,83 @@ impl AsRef for H265AdaptiveQuantization { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H265AdaptiveQuantization { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H264Settings { /// Enables or disables adaptive quantization, which is a technique MediaLive can apply to video on a frame-by-frame basis to produce more compression without losing quality. There are three types of adaptive quantization: flicker, spatial, and temporal. Set the field in one of these ways: Set to Auto. Recommended. For each type of AQ, MediaLive will determine if AQ is needed, and if so, the appropriate strength. Set a strength (a value other than Auto or Disable). This strength will apply to any of the AQ fields that you choose to enable. Set to Disabled to disable all types of adaptive quantization. - #[serde(rename = "adaptiveQuantization")] - #[serde(default)] pub adaptive_quantization: std::option::Option, /// Indicates that AFD values will be written into the output stream. If afdSignaling is "auto", the system will try to preserve the input AFD value (in cases where multiple AFD values are valid). If set to "fixed", the AFD value will be the value configured in the fixedAfd parameter. - #[serde(rename = "afdSignaling")] - #[serde(default)] pub afd_signaling: std::option::Option, /// Average bitrate in bits/second. Required when the rate control mode is VBR or CBR. Not used for QVBR. In an MS Smooth output group, each output must have a unique value when its bitrate is rounded down to the nearest multiple of 1000. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: i32, /// Percentage of the buffer that should initially be filled (HRD buffer model). - #[serde(rename = "bufFillPct")] - #[serde(default)] pub buf_fill_pct: i32, /// Size of buffer (HRD buffer model) in bits. - #[serde(rename = "bufSize")] - #[serde(default)] pub buf_size: i32, /// Includes colorspace metadata in the output. - #[serde(rename = "colorMetadata")] - #[serde(default)] pub color_metadata: std::option::Option, /// Color Space settings - #[serde(rename = "colorSpaceSettings")] - #[serde(default)] pub color_space_settings: std::option::Option, /// Entropy encoding mode. Use cabac (must be in Main or High profile) or cavlc. - #[serde(rename = "entropyEncoding")] - #[serde(default)] pub entropy_encoding: std::option::Option, /// Optional filters that you can apply to an encode. - #[serde(rename = "filterSettings")] - #[serde(default)] pub filter_settings: std::option::Option, /// Four bit AFD value to write on all frames of video in the output stream. Only valid when afdSignaling is set to 'Fixed'. - #[serde(rename = "fixedAfd")] - #[serde(default)] pub fixed_afd: std::option::Option, /// Flicker AQ makes adjustments within each frame to reduce flicker or 'pop' on I-frames. The value to enter in this field depends on the value in the Adaptive quantization field: If you have set the Adaptive quantization field to Auto, MediaLive ignores any value in this field. MediaLive will determine if flicker AQ is appropriate and will apply the appropriate strength. If you have set the Adaptive quantization field to a strength, you can set this field to Enabled or Disabled. Enabled: MediaLive will apply flicker AQ using the specified strength. Disabled: MediaLive won't apply flicker AQ. If you have set the Adaptive quantization to Disabled, MediaLive ignores any value in this field and doesn't apply flicker AQ. - #[serde(rename = "flickerAq")] - #[serde(default)] pub flicker_aq: std::option::Option, /// This setting applies only when scan type is "interlaced." It controls whether coding is performed on a field basis or on a frame basis. (When the video is progressive, the coding is always performed on a frame basis.) /// enabled: Force MediaLive to code on a field basis, so that odd and even sets of fields are coded separately. /// disabled: Code the two sets of fields separately (on a field basis) or together (on a frame basis using PAFF), depending on what is most appropriate for the content. - #[serde(rename = "forceFieldPictures")] - #[serde(default)] pub force_field_pictures: std::option::Option, /// This field indicates how the output video frame rate is specified. If "specified" is selected then the output video frame rate is determined by framerateNumerator and framerateDenominator, else if "initializeFromSource" is selected then the output video frame rate will be set equal to the input video frame rate of the first input. - #[serde(rename = "framerateControl")] - #[serde(default)] pub framerate_control: std::option::Option, /// Framerate denominator. - #[serde(rename = "framerateDenominator")] - #[serde(default)] pub framerate_denominator: i32, /// Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. - #[serde(rename = "framerateNumerator")] - #[serde(default)] pub framerate_numerator: i32, /// Documentation update needed - #[serde(rename = "gopBReference")] - #[serde(default)] pub gop_b_reference: std::option::Option, /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting. - #[serde(rename = "gopClosedCadence")] - #[serde(default)] pub gop_closed_cadence: i32, /// Number of B-frames between reference frames. - #[serde(rename = "gopNumBFrames")] - #[serde(default)] pub gop_num_b_frames: i32, /// GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits. /// If gopSizeUnits is frames, gopSize must be an integer and must be greater than or equal to 1. /// If gopSizeUnits is seconds, gopSize must be greater than 0, but need not be an integer. - #[serde(rename = "gopSize")] - #[serde(default)] pub gop_size: f64, /// Indicates if the gopSize is specified in frames or seconds. If seconds the system will convert the gopSize into a frame count at run time. - #[serde(rename = "gopSizeUnits")] - #[serde(default)] pub gop_size_units: std::option::Option, /// H.264 Level. - #[serde(rename = "level")] - #[serde(default)] pub level: std::option::Option, /// Amount of lookahead. A value of low can decrease latency and memory usage, while high can produce better quality for certain content. - #[serde(rename = "lookAheadRateControl")] - #[serde(default)] pub look_ahead_rate_control: std::option::Option, /// For QVBR: See the tooltip for Quality level /// For VBR: Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - #[serde(rename = "maxBitrate")] - #[serde(default)] pub max_bitrate: i32, /// Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if multiplex rate control is used. Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - #[serde(rename = "minIInterval")] - #[serde(default)] pub min_i_interval: i32, /// Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding. - #[serde(rename = "numRefFrames")] - #[serde(default)] pub num_ref_frames: i32, /// This field indicates how the output pixel aspect ratio is specified. If "specified" is selected then the output video pixel aspect ratio is determined by parNumerator and parDenominator, else if "initializeFromSource" is selected then the output pixsel aspect ratio will be set equal to the input video pixel aspect ratio of the first input. - #[serde(rename = "parControl")] - #[serde(default)] pub par_control: std::option::Option, /// Pixel Aspect Ratio denominator. - #[serde(rename = "parDenominator")] - #[serde(default)] pub par_denominator: i32, /// Pixel Aspect Ratio numerator. - #[serde(rename = "parNumerator")] - #[serde(default)] pub par_numerator: i32, /// H.264 Profile. - #[serde(rename = "profile")] - #[serde(default)] pub profile: std::option::Option, /// Leave as STANDARD_QUALITY or choose a different value (which might result in additional costs to run the channel). /// - ENHANCED_QUALITY: Produces a slightly better video quality without an increase in the bitrate. Has an effect only when the Rate control mode is QVBR or CBR. If this channel is in a MediaLive multiplex, the value must be ENHANCED_QUALITY. /// - STANDARD_QUALITY: Valid for any Rate control mode. - #[serde(rename = "qualityLevel")] - #[serde(default)] pub quality_level: std::option::Option, /// Controls the target quality for the video encode. Applies only when the rate control mode is QVBR. You can set a target quality or you can let MediaLive determine the best quality. To set a target quality, enter values in the QVBR quality level field and the Max bitrate field. Enter values that suit your most important viewing devices. Recommended values are: /// - Primary screen: Quality level: 8 to 10. Max bitrate: 4M /// - PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M /// - Smartphone: Quality level: 6. Max bitrate: 1M to 1.5M /// To let MediaLive decide, leave the QVBR quality level field empty, and in Max bitrate enter the maximum rate you want in the video. For more information, see the section called "Video - rate control mode" in the MediaLive user guide - #[serde(rename = "qvbrQualityLevel")] - #[serde(default)] pub qvbr_quality_level: i32, /// Rate control mode. /// QVBR: Quality will match the specified quality level except when it is constrained by the @@ -13354,49 +11998,29 @@ pub struct H264Settings { /// Multiplex: This rate control mode is only supported (and is required) when the video is being /// delivered to a MediaLive Multiplex in which case the rate control configuration is controlled /// by the properties within the Multiplex Program. - #[serde(rename = "rateControlMode")] - #[serde(default)] pub rate_control_mode: std::option::Option, /// Sets the scan type of the output to progressive or top-field-first interlaced. - #[serde(rename = "scanType")] - #[serde(default)] pub scan_type: std::option::Option, /// Scene change detection. /// - On: inserts I-frames when scene change is detected. /// - Off: does not force an I-frame when scene change is detected. - #[serde(rename = "sceneChangeDetect")] - #[serde(default)] pub scene_change_detect: std::option::Option, /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. /// This field is optional; when no value is specified the encoder will choose the number of slices based on encode resolution. - #[serde(rename = "slices")] - #[serde(default)] pub slices: i32, /// Softness. Selects quantizer matrix, larger values reduce high-frequency content in the encoded image. If not set to zero, must be greater than 15. - #[serde(rename = "softness")] - #[serde(default)] pub softness: i32, /// Spatial AQ makes adjustments within each frame based on spatial variation of content complexity. The value to enter in this field depends on the value in the Adaptive quantization field: If you have set the Adaptive quantization field to Auto, MediaLive ignores any value in this field. MediaLive will determine if spatial AQ is appropriate and will apply the appropriate strength. If you have set the Adaptive quantization field to a strength, you can set this field to Enabled or Disabled. Enabled: MediaLive will apply spatial AQ using the specified strength. Disabled: MediaLive won't apply spatial AQ. If you have set the Adaptive quantization to Disabled, MediaLive ignores any value in this field and doesn't apply spatial AQ. - #[serde(rename = "spatialAq")] - #[serde(default)] pub spatial_aq: std::option::Option, /// If set to fixed, use gopNumBFrames B-frames per sub-GOP. If set to dynamic, optimize the number of B-frames used for each sub-GOP to improve visual quality. - #[serde(rename = "subgopLength")] - #[serde(default)] pub subgop_length: std::option::Option, /// Produces a bitstream compliant with SMPTE RP-2027. - #[serde(rename = "syntax")] - #[serde(default)] pub syntax: std::option::Option, /// Temporal makes adjustments within each frame based on temporal variation of content complexity. The value to enter in this field depends on the value in the Adaptive quantization field: If you have set the Adaptive quantization field to Auto, MediaLive ignores any value in this field. MediaLive will determine if temporal AQ is appropriate and will apply the appropriate strength. If you have set the Adaptive quantization field to a strength, you can set this field to Enabled or Disabled. Enabled: MediaLive will apply temporal AQ using the specified strength. Disabled: MediaLive won't apply temporal AQ. If you have set the Adaptive quantization to Disabled, MediaLive ignores any value in this field and doesn't apply temporal AQ. - #[serde(rename = "temporalAq")] - #[serde(default)] pub temporal_aq: std::option::Option, /// Determines how timecodes should be inserted into the video elementary stream. /// - 'disabled': Do not include timecodes /// - 'picTimingSei': Pass through picture timing SEI messages from the source specified in Timecode Config - #[serde(rename = "timecodeInsertion")] - #[serde(default)] pub timecode_insertion: std::option::Option, } impl std::fmt::Debug for H264Settings { @@ -14051,7 +12675,7 @@ impl std::convert::From<&str> for H264TimecodeInsertionBehavior { impl std::str::FromStr for H264TimecodeInsertionBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264TimecodeInsertionBehavior::from(s)) } } @@ -14069,15 +12693,6 @@ impl AsRef for H264TimecodeInsertionBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264TimecodeInsertionBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Temporal Aq #[non_exhaustive] @@ -14108,7 +12723,7 @@ impl std::convert::From<&str> for H264TemporalAq { impl std::str::FromStr for H264TemporalAq { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264TemporalAq::from(s)) } } @@ -14126,15 +12741,6 @@ impl AsRef for H264TemporalAq { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264TemporalAq { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Syntax #[non_exhaustive] @@ -14165,7 +12771,7 @@ impl std::convert::From<&str> for H264Syntax { impl std::str::FromStr for H264Syntax { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264Syntax::from(s)) } } @@ -14183,15 +12789,6 @@ impl AsRef for H264Syntax { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264Syntax { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Sub Gop Length #[non_exhaustive] @@ -14222,7 +12819,7 @@ impl std::convert::From<&str> for H264SubGopLength { impl std::str::FromStr for H264SubGopLength { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264SubGopLength::from(s)) } } @@ -14240,15 +12837,6 @@ impl AsRef for H264SubGopLength { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264SubGopLength { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Spatial Aq #[non_exhaustive] @@ -14279,7 +12867,7 @@ impl std::convert::From<&str> for H264SpatialAq { impl std::str::FromStr for H264SpatialAq { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264SpatialAq::from(s)) } } @@ -14297,15 +12885,6 @@ impl AsRef for H264SpatialAq { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264SpatialAq { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Scene Change Detect #[non_exhaustive] @@ -14336,7 +12915,7 @@ impl std::convert::From<&str> for H264SceneChangeDetect { impl std::str::FromStr for H264SceneChangeDetect { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264SceneChangeDetect::from(s)) } } @@ -14354,15 +12933,6 @@ impl AsRef for H264SceneChangeDetect { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264SceneChangeDetect { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Scan Type #[non_exhaustive] @@ -14393,7 +12963,7 @@ impl std::convert::From<&str> for H264ScanType { impl std::str::FromStr for H264ScanType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264ScanType::from(s)) } } @@ -14411,15 +12981,6 @@ impl AsRef for H264ScanType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264ScanType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Rate Control Mode #[non_exhaustive] @@ -14454,7 +13015,7 @@ impl std::convert::From<&str> for H264RateControlMode { impl std::str::FromStr for H264RateControlMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264RateControlMode::from(s)) } } @@ -14474,15 +13035,6 @@ impl AsRef for H264RateControlMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264RateControlMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Quality Level #[non_exhaustive] @@ -14513,7 +13065,7 @@ impl std::convert::From<&str> for H264QualityLevel { impl std::str::FromStr for H264QualityLevel { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264QualityLevel::from(s)) } } @@ -14531,15 +13083,6 @@ impl AsRef for H264QualityLevel { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264QualityLevel { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Profile #[non_exhaustive] @@ -14578,7 +13121,7 @@ impl std::convert::From<&str> for H264Profile { impl std::str::FromStr for H264Profile { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264Profile::from(s)) } } @@ -14600,15 +13143,6 @@ impl AsRef for H264Profile { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264Profile { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Par Control #[non_exhaustive] @@ -14639,7 +13173,7 @@ impl std::convert::From<&str> for H264ParControl { impl std::str::FromStr for H264ParControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264ParControl::from(s)) } } @@ -14657,15 +13191,6 @@ impl AsRef for H264ParControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264ParControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Look Ahead Rate Control #[non_exhaustive] @@ -14698,7 +13223,7 @@ impl std::convert::From<&str> for H264LookAheadRateControl { impl std::str::FromStr for H264LookAheadRateControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264LookAheadRateControl::from(s)) } } @@ -14717,15 +13242,6 @@ impl AsRef for H264LookAheadRateControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264LookAheadRateControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Level #[non_exhaustive] @@ -14786,7 +13302,7 @@ impl std::convert::From<&str> for H264Level { impl std::str::FromStr for H264Level { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264Level::from(s)) } } @@ -14819,15 +13335,6 @@ impl AsRef for H264Level { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264Level { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Gop Size Units #[non_exhaustive] @@ -14858,7 +13365,7 @@ impl std::convert::From<&str> for H264GopSizeUnits { impl std::str::FromStr for H264GopSizeUnits { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264GopSizeUnits::from(s)) } } @@ -14876,15 +13383,6 @@ impl AsRef for H264GopSizeUnits { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264GopSizeUnits { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Gop BReference #[non_exhaustive] @@ -14915,7 +13413,7 @@ impl std::convert::From<&str> for H264GopBReference { impl std::str::FromStr for H264GopBReference { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264GopBReference::from(s)) } } @@ -14933,15 +13431,6 @@ impl AsRef for H264GopBReference { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264GopBReference { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Framerate Control #[non_exhaustive] @@ -14972,7 +13461,7 @@ impl std::convert::From<&str> for H264FramerateControl { impl std::str::FromStr for H264FramerateControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264FramerateControl::from(s)) } } @@ -14990,15 +13479,6 @@ impl AsRef for H264FramerateControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264FramerateControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Force Field Pictures #[non_exhaustive] @@ -15029,7 +13509,7 @@ impl std::convert::From<&str> for H264ForceFieldPictures { impl std::str::FromStr for H264ForceFieldPictures { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264ForceFieldPictures::from(s)) } } @@ -15047,15 +13527,6 @@ impl AsRef for H264ForceFieldPictures { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264ForceFieldPictures { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Flicker Aq #[non_exhaustive] @@ -15086,7 +13557,7 @@ impl std::convert::From<&str> for H264FlickerAq { impl std::str::FromStr for H264FlickerAq { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264FlickerAq::from(s)) } } @@ -15104,23 +13575,12 @@ impl AsRef for H264FlickerAq { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264FlickerAq { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Filter Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H264FilterSettings { /// Temporal Filter Settings - #[serde(rename = "temporalFilterSettings")] - #[serde(default)] pub temporal_filter_settings: std::option::Option, } impl std::fmt::Debug for H264FilterSettings { @@ -15199,7 +13659,7 @@ impl std::convert::From<&str> for H264EntropyEncoding { impl std::str::FromStr for H264EntropyEncoding { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264EntropyEncoding::from(s)) } } @@ -15217,32 +13677,17 @@ impl AsRef for H264EntropyEncoding { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264EntropyEncoding { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Color Space Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct H264ColorSpaceSettings { /// Passthrough applies no color space conversion to the output - #[serde(rename = "colorSpacePassthroughSettings")] - #[serde(default)] pub color_space_passthrough_settings: std::option::Option, /// Rec601 Settings - #[serde(rename = "rec601Settings")] - #[serde(default)] pub rec601_settings: std::option::Option, /// Rec709 Settings - #[serde(rename = "rec709Settings")] - #[serde(default)] pub rec709_settings: std::option::Option, } impl std::fmt::Debug for H264ColorSpaceSettings { @@ -15354,7 +13799,7 @@ impl std::convert::From<&str> for H264ColorMetadata { impl std::str::FromStr for H264ColorMetadata { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264ColorMetadata::from(s)) } } @@ -15372,15 +13817,6 @@ impl AsRef for H264ColorMetadata { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264ColorMetadata { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// H264 Adaptive Quantization #[non_exhaustive] @@ -15421,7 +13857,7 @@ impl std::convert::From<&str> for H264AdaptiveQuantization { impl std::str::FromStr for H264AdaptiveQuantization { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(H264AdaptiveQuantization::from(s)) } } @@ -15444,27 +13880,14 @@ impl AsRef for H264AdaptiveQuantization { self.as_str() } } -impl<'de> serde::Deserialize<'de> for H264AdaptiveQuantization { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Frame Capture Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureSettings { /// The frequency at which to capture frames for inclusion in the output. May be specified in either seconds or milliseconds, as specified by captureIntervalUnits. - #[serde(rename = "captureInterval")] - #[serde(default)] pub capture_interval: i32, /// Unit for the frame capture interval. - #[serde(rename = "captureIntervalUnits")] - #[serde(default)] pub capture_interval_units: std::option::Option, } impl std::fmt::Debug for FrameCaptureSettings { @@ -15555,7 +13978,7 @@ impl std::convert::From<&str> for FrameCaptureIntervalUnit { impl std::str::FromStr for FrameCaptureIntervalUnit { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FrameCaptureIntervalUnit::from(s)) } } @@ -15573,30 +13996,17 @@ impl AsRef for FrameCaptureIntervalUnit { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FrameCaptureIntervalUnit { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Timecode Config #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TimecodeConfig { /// Identifies the source for the timecode that will be associated with the events outputs. /// -Embedded (embedded): Initialize the output timecode with timecode from the the source. If no embedded timecode is detected in the source, the system falls back to using "Start at 0" (zerobased). /// -System Clock (systemclock): Use the UTC time. /// -Start at 0 (zerobased): The time of the first frame of the event will be 00:00:00:00. - #[serde(rename = "source")] - #[serde(default)] pub source: std::option::Option, /// Threshold in frames beyond which output timecode is resynchronized to the input timecode. Discrepancies below this threshold are permitted to avoid unnecessary discontinuities in the output timecode. No timecode sync when this is not specified. - #[serde(rename = "syncThreshold")] - #[serde(default)] pub sync_threshold: i32, } impl std::fmt::Debug for TimecodeConfig { @@ -15688,7 +14098,7 @@ impl std::convert::From<&str> for TimecodeConfigSource { impl std::str::FromStr for TimecodeConfigSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TimecodeConfigSource::from(s)) } } @@ -15707,31 +14117,16 @@ impl AsRef for TimecodeConfigSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TimecodeConfigSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Output groups for this Live Event. Output groups contain information about where streams should be distributed. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputGroup { /// Custom output group name optionally defined by the user. Only letters, numbers, and the underscore character allowed; only 32 characters allowed. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Settings associated with the output group. - #[serde(rename = "outputGroupSettings")] - #[serde(default)] pub output_group_settings: std::option::Option, /// Placeholder documentation for __listOfOutput - #[serde(rename = "outputs")] - #[serde(default)] pub outputs: std::option::Option>, } impl std::fmt::Debug for OutputGroup { @@ -15807,27 +14202,17 @@ impl OutputGroup { /// Output settings. There can be multiple outputs within a group. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Output { /// The names of the AudioDescriptions used as audio sources for this output. - #[serde(rename = "audioDescriptionNames")] - #[serde(default)] pub audio_description_names: std::option::Option>, /// The names of the CaptionDescriptions used as caption sources for this output. - #[serde(rename = "captionDescriptionNames")] - #[serde(default)] pub caption_description_names: std::option::Option>, /// The name used to identify an output. - #[serde(rename = "outputName")] - #[serde(default)] pub output_name: std::option::Option, /// Output type-specific settings. - #[serde(rename = "outputSettings")] - #[serde(default)] pub output_settings: std::option::Option, /// The name of the VideoDescription used as the source for this output. - #[serde(rename = "videoDescriptionName")] - #[serde(default)] pub video_description_name: std::option::Option, } impl std::fmt::Debug for Output { @@ -15935,41 +14320,25 @@ impl Output { /// Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputSettings { /// Archive Output Settings - #[serde(rename = "archiveOutputSettings")] - #[serde(default)] pub archive_output_settings: std::option::Option, /// Frame Capture Output Settings - #[serde(rename = "frameCaptureOutputSettings")] - #[serde(default)] pub frame_capture_output_settings: std::option::Option, /// Hls Output Settings - #[serde(rename = "hlsOutputSettings")] - #[serde(default)] pub hls_output_settings: std::option::Option, /// Media Package Output Settings - #[serde(rename = "mediaPackageOutputSettings")] - #[serde(default)] pub media_package_output_settings: std::option::Option, /// Ms Smooth Output Settings - #[serde(rename = "msSmoothOutputSettings")] - #[serde(default)] pub ms_smooth_output_settings: std::option::Option, /// Multiplex Output Settings - #[serde(rename = "multiplexOutputSettings")] - #[serde(default)] pub multiplex_output_settings: std::option::Option, /// Rtmp Output Settings - #[serde(rename = "rtmpOutputSettings")] - #[serde(default)] pub rtmp_output_settings: std::option::Option, /// Udp Output Settings - #[serde(rename = "udpOutputSettings")] - #[serde(default)] pub udp_output_settings: std::option::Option, } impl std::fmt::Debug for OutputSettings { @@ -16148,23 +14517,15 @@ impl OutputSettings { /// Udp Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UdpOutputSettings { /// UDP output buffering in milliseconds. Larger values increase latency through the transcoder but simultaneously assist the transcoder in maintaining a constant, low-jitter UDP/RTP output while accommodating clock recovery, input switching, input disruptions, picture reordering, etc. - #[serde(rename = "bufferMsec")] - #[serde(default)] pub buffer_msec: i32, /// Udp Container Settings - #[serde(rename = "containerSettings")] - #[serde(default)] pub container_settings: std::option::Option, /// Destination address and port number for RTP or UDP packets. Can be unicast or multicast RTP or UDP (eg. rtp://239.10.10.10:5001 or udp://10.100.100.100:5002). - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// Settings for enabling and adjusting Forward Error Correction on UDP outputs. - #[serde(rename = "fecOutputSettings")] - #[serde(default)] pub fec_output_settings: std::option::Option, } impl std::fmt::Debug for UdpOutputSettings { @@ -16254,19 +14615,13 @@ impl UdpOutputSettings { /// Fec Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FecOutputSettings { /// Parameter D from SMPTE 2022-1. The height of the FEC protection matrix. The number of transport stream packets per column error correction packet. Must be between 4 and 20, inclusive. - #[serde(rename = "columnDepth")] - #[serde(default)] pub column_depth: i32, /// Enables column only or column and row based FEC - #[serde(rename = "includeFec")] - #[serde(default)] pub include_fec: std::option::Option, /// Parameter L from SMPTE 2022-1. The width of the FEC protection matrix. Must be between 1 and 20, inclusive. If only Column FEC is used, then larger values increase robustness. If Row FEC is used, then this is the number of transport stream packets per row error correction packet, and the value must be between 4 and 20, inclusive, if includeFec is columnAndRow. If includeFec is column, this value must be 1 to 20, inclusive. - #[serde(rename = "rowLength")] - #[serde(default)] pub row_length: i32, } impl std::fmt::Debug for FecOutputSettings { @@ -16365,7 +14720,7 @@ impl std::convert::From<&str> for FecOutputIncludeFec { impl std::str::FromStr for FecOutputIncludeFec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FecOutputIncludeFec::from(s)) } } @@ -16383,23 +14738,12 @@ impl AsRef for FecOutputIncludeFec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FecOutputIncludeFec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Reference to an OutputDestination ID defined in the channel #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputLocationRef { /// Placeholder documentation for __string - #[serde(rename = "destinationRefId")] - #[serde(default)] pub destination_ref_id: std::option::Option, } impl std::fmt::Debug for OutputLocationRef { @@ -16447,11 +14791,9 @@ impl OutputLocationRef { /// Udp Container Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UdpContainerSettings { /// M2ts Settings - #[serde(rename = "m2tsSettings")] - #[serde(default)] pub m2ts_settings: std::option::Option, } impl std::fmt::Debug for UdpContainerSettings { @@ -16499,198 +14841,104 @@ impl UdpContainerSettings { /// M2ts Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct M2tsSettings { /// When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream. - #[serde(rename = "absentInputAudioBehavior")] - #[serde(default)] pub absent_input_audio_behavior: std::option::Option, /// When set to enabled, uses ARIB-compliant field muxing and removes video descriptor. - #[serde(rename = "arib")] - #[serde(default)] pub arib: std::option::Option, /// Packet Identifier (PID) for ARIB Captions in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "aribCaptionsPid")] - #[serde(default)] pub arib_captions_pid: std::option::Option, /// If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number. - #[serde(rename = "aribCaptionsPidControl")] - #[serde(default)] pub arib_captions_pid_control: std::option::Option, /// When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used. - #[serde(rename = "audioBufferModel")] - #[serde(default)] pub audio_buffer_model: std::option::Option, /// The number of audio frames to insert for each PES packet. - #[serde(rename = "audioFramesPerPes")] - #[serde(default)] pub audio_frames_per_pes: i32, /// Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "audioPids")] - #[serde(default)] pub audio_pids: std::option::Option, /// When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06. - #[serde(rename = "audioStreamType")] - #[serde(default)] pub audio_stream_type: std::option::Option, /// The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: i32, /// Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices. - #[serde(rename = "bufferModel")] - #[serde(default)] pub buffer_model: std::option::Option, /// When set to enabled, generates captionServiceDescriptor in PMT. - #[serde(rename = "ccDescriptor")] - #[serde(default)] pub cc_descriptor: std::option::Option, /// Inserts DVB Network Information Table (NIT) at the specified table repetition interval. - #[serde(rename = "dvbNitSettings")] - #[serde(default)] pub dvb_nit_settings: std::option::Option, /// Inserts DVB Service Description Table (SDT) at the specified table repetition interval. - #[serde(rename = "dvbSdtSettings")] - #[serde(default)] pub dvb_sdt_settings: std::option::Option, /// Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "dvbSubPids")] - #[serde(default)] pub dvb_sub_pids: std::option::Option, /// Inserts DVB Time and Date Table (TDT) at the specified table repetition interval. - #[serde(rename = "dvbTdtSettings")] - #[serde(default)] pub dvb_tdt_settings: std::option::Option, /// Packet Identifier (PID) for input source DVB Teletext data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "dvbTeletextPid")] - #[serde(default)] pub dvb_teletext_pid: std::option::Option, /// If set to passthrough, passes any EBIF data from the input source to this output. - #[serde(rename = "ebif")] - #[serde(default)] pub ebif: std::option::Option, /// When videoAndFixedIntervals is selected, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval. - #[serde(rename = "ebpAudioInterval")] - #[serde(default)] pub ebp_audio_interval: std::option::Option, /// When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate. - #[serde(rename = "ebpLookaheadMs")] - #[serde(default)] pub ebp_lookahead_ms: i32, /// Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID. - #[serde(rename = "ebpPlacement")] - #[serde(default)] pub ebp_placement: std::option::Option, /// This field is unused and deprecated. - #[serde(rename = "ecmPid")] - #[serde(default)] pub ecm_pid: std::option::Option, /// Include or exclude the ES Rate field in the PES header. - #[serde(rename = "esRateInPes")] - #[serde(default)] pub es_rate_in_pes: std::option::Option, /// Packet Identifier (PID) for input source ETV Platform data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "etvPlatformPid")] - #[serde(default)] pub etv_platform_pid: std::option::Option, /// Packet Identifier (PID) for input source ETV Signal data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "etvSignalPid")] - #[serde(default)] pub etv_signal_pid: std::option::Option, /// The length in seconds of each fragment. Only used with EBP markers. - #[serde(rename = "fragmentTime")] - #[serde(default)] pub fragment_time: f64, /// If set to passthrough, passes any KLV data from the input source to this output. - #[serde(rename = "klv")] - #[serde(default)] pub klv: std::option::Option, /// Packet Identifier (PID) for input source KLV data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "klvDataPids")] - #[serde(default)] pub klv_data_pids: std::option::Option, /// If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output. - #[serde(rename = "nielsenId3Behavior")] - #[serde(default)] pub nielsen_id3_behavior: std::option::Option, /// Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets. - #[serde(rename = "nullPacketBitrate")] - #[serde(default)] pub null_packet_bitrate: f64, /// The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000. - #[serde(rename = "patInterval")] - #[serde(default)] pub pat_interval: i32, /// When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream. - #[serde(rename = "pcrControl")] - #[serde(default)] pub pcr_control: std::option::Option, /// Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream. - #[serde(rename = "pcrPeriod")] - #[serde(default)] pub pcr_period: i32, /// Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "pcrPid")] - #[serde(default)] pub pcr_pid: std::option::Option, /// The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000. - #[serde(rename = "pmtInterval")] - #[serde(default)] pub pmt_interval: i32, /// Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "pmtPid")] - #[serde(default)] pub pmt_pid: std::option::Option, /// The value of the program number field in the Program Map Table. - #[serde(rename = "programNum")] - #[serde(default)] pub program_num: i32, /// When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set. - #[serde(rename = "rateMode")] - #[serde(default)] pub rate_mode: std::option::Option, /// Packet Identifier (PID) for input source SCTE-27 data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "scte27Pids")] - #[serde(default)] pub scte27_pids: std::option::Option, /// Optionally pass SCTE-35 signals from the input source to this output. - #[serde(rename = "scte35Control")] - #[serde(default)] pub scte35_control: std::option::Option, /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "scte35Pid")] - #[serde(default)] pub scte35_pid: std::option::Option, /// Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebpLegacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format. - #[serde(rename = "segmentationMarkers")] - #[serde(default)] pub segmentation_markers: std::option::Option, /// The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. /// When a segmentation style of "resetCadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of $segmentationTime seconds. /// When a segmentation style of "maintainCadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentationTime seconds. Note that EBP lookahead is a slight exception to this rule. - #[serde(rename = "segmentationStyle")] - #[serde(default)] pub segmentation_style: std::option::Option, /// The length in seconds of each segment. Required unless markers is set to _none_. - #[serde(rename = "segmentationTime")] - #[serde(default)] pub segmentation_time: f64, /// When set to passthrough, timed metadata will be passed through from input to output. - #[serde(rename = "timedMetadataBehavior")] - #[serde(default)] pub timed_metadata_behavior: std::option::Option, /// Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "timedMetadataPid")] - #[serde(default)] pub timed_metadata_pid: std::option::Option, /// The value of the transport stream ID field in the Program Map Table. - #[serde(rename = "transportStreamId")] - #[serde(default)] pub transport_stream_id: i32, /// Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "videoPid")] - #[serde(default)] pub video_pid: std::option::Option, } impl std::fmt::Debug for M2tsSettings { @@ -17412,7 +15660,7 @@ impl std::convert::From<&str> for M2tsTimedMetadataBehavior { impl std::str::FromStr for M2tsTimedMetadataBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsTimedMetadataBehavior::from(s)) } } @@ -17430,15 +15678,6 @@ impl AsRef for M2tsTimedMetadataBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsTimedMetadataBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Segmentation Style #[non_exhaustive] @@ -17469,7 +15708,7 @@ impl std::convert::From<&str> for M2tsSegmentationStyle { impl std::str::FromStr for M2tsSegmentationStyle { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsSegmentationStyle::from(s)) } } @@ -17487,15 +15726,6 @@ impl AsRef for M2tsSegmentationStyle { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsSegmentationStyle { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Segmentation Markers #[non_exhaustive] @@ -17534,7 +15764,7 @@ impl std::convert::From<&str> for M2tsSegmentationMarkers { impl std::str::FromStr for M2tsSegmentationMarkers { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsSegmentationMarkers::from(s)) } } @@ -17556,15 +15786,6 @@ impl AsRef for M2tsSegmentationMarkers { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsSegmentationMarkers { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Scte35 Control #[non_exhaustive] @@ -17595,7 +15816,7 @@ impl std::convert::From<&str> for M2tsScte35Control { impl std::str::FromStr for M2tsScte35Control { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsScte35Control::from(s)) } } @@ -17613,15 +15834,6 @@ impl AsRef for M2tsScte35Control { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsScte35Control { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Rate Mode #[non_exhaustive] @@ -17652,7 +15864,7 @@ impl std::convert::From<&str> for M2tsRateMode { impl std::str::FromStr for M2tsRateMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsRateMode::from(s)) } } @@ -17670,15 +15882,6 @@ impl AsRef for M2tsRateMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsRateMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Pcr Control #[non_exhaustive] @@ -17709,7 +15912,7 @@ impl std::convert::From<&str> for M2tsPcrControl { impl std::str::FromStr for M2tsPcrControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsPcrControl::from(s)) } } @@ -17727,15 +15930,6 @@ impl AsRef for M2tsPcrControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsPcrControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Nielsen Id3 Behavior #[non_exhaustive] @@ -17766,7 +15960,7 @@ impl std::convert::From<&str> for M2tsNielsenId3Behavior { impl std::str::FromStr for M2tsNielsenId3Behavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsNielsenId3Behavior::from(s)) } } @@ -17784,15 +15978,6 @@ impl AsRef for M2tsNielsenId3Behavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsNielsenId3Behavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Klv #[non_exhaustive] @@ -17823,7 +16008,7 @@ impl std::convert::From<&str> for M2tsKlv { impl std::str::FromStr for M2tsKlv { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsKlv::from(s)) } } @@ -17841,15 +16026,6 @@ impl AsRef for M2tsKlv { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsKlv { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Es Rate In Pes #[non_exhaustive] @@ -17880,7 +16056,7 @@ impl std::convert::From<&str> for M2tsEsRateInPes { impl std::str::FromStr for M2tsEsRateInPes { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsEsRateInPes::from(s)) } } @@ -17898,15 +16074,6 @@ impl AsRef for M2tsEsRateInPes { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsEsRateInPes { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Ebp Placement #[non_exhaustive] @@ -17937,7 +16104,7 @@ impl std::convert::From<&str> for M2tsEbpPlacement { impl std::str::FromStr for M2tsEbpPlacement { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsEbpPlacement::from(s)) } } @@ -17955,15 +16122,6 @@ impl AsRef for M2tsEbpPlacement { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsEbpPlacement { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Audio Interval #[non_exhaustive] @@ -17994,7 +16152,7 @@ impl std::convert::From<&str> for M2tsAudioInterval { impl std::str::FromStr for M2tsAudioInterval { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsAudioInterval::from(s)) } } @@ -18012,15 +16170,6 @@ impl AsRef for M2tsAudioInterval { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsAudioInterval { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Ebif Control #[non_exhaustive] @@ -18051,7 +16200,7 @@ impl std::convert::From<&str> for M2tsEbifControl { impl std::str::FromStr for M2tsEbifControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsEbifControl::from(s)) } } @@ -18069,23 +16218,12 @@ impl AsRef for M2tsEbifControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsEbifControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// DVB Time and Date Table (SDT) #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DvbTdtSettings { /// The number of milliseconds between instances of this table in the output transport stream. - #[serde(rename = "repInterval")] - #[serde(default)] pub rep_interval: i32, } impl std::fmt::Debug for DvbTdtSettings { @@ -18130,23 +16268,15 @@ impl DvbTdtSettings { /// DVB Service Description Table (SDT) #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DvbSdtSettings { /// Selects method of inserting SDT information into output stream. The sdtFollow setting copies SDT information from input stream to output stream. The sdtFollowIfPresent setting copies SDT information from input stream to output stream if SDT information is present in the input, otherwise it will fall back on the user-defined values. The sdtManual setting means user will enter the SDT information. The sdtNone setting means output stream will not contain SDT information. - #[serde(rename = "outputSdt")] - #[serde(default)] pub output_sdt: std::option::Option, /// The number of milliseconds between instances of this table in the output transport stream. - #[serde(rename = "repInterval")] - #[serde(default)] pub rep_interval: i32, /// The service name placed in the serviceDescriptor in the Service Description Table. Maximum length is 256 characters. - #[serde(rename = "serviceName")] - #[serde(default)] pub service_name: std::option::Option, /// The service provider name placed in the serviceDescriptor in the Service Description Table. Maximum length is 256 characters. - #[serde(rename = "serviceProviderName")] - #[serde(default)] pub service_provider_name: std::option::Option, } impl std::fmt::Debug for DvbSdtSettings { @@ -18264,7 +16394,7 @@ impl std::convert::From<&str> for DvbSdtOutputSdt { impl std::str::FromStr for DvbSdtOutputSdt { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSdtOutputSdt::from(s)) } } @@ -18284,31 +16414,16 @@ impl AsRef for DvbSdtOutputSdt { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSdtOutputSdt { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// DVB Network Information Table (NIT) #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DvbNitSettings { /// The numeric value placed in the Network Information Table (NIT). - #[serde(rename = "networkId")] - #[serde(default)] pub network_id: i32, /// The network name text placed in the networkNameDescriptor inside the Network Information Table. Maximum length is 256 characters. - #[serde(rename = "networkName")] - #[serde(default)] pub network_name: std::option::Option, /// The number of milliseconds between instances of this table in the output transport stream. - #[serde(rename = "repInterval")] - #[serde(default)] pub rep_interval: i32, } impl std::fmt::Debug for DvbNitSettings { @@ -18404,7 +16519,7 @@ impl std::convert::From<&str> for M2tsCcDescriptor { impl std::str::FromStr for M2tsCcDescriptor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsCcDescriptor::from(s)) } } @@ -18422,15 +16537,6 @@ impl AsRef for M2tsCcDescriptor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsCcDescriptor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Buffer Model #[non_exhaustive] @@ -18461,7 +16567,7 @@ impl std::convert::From<&str> for M2tsBufferModel { impl std::str::FromStr for M2tsBufferModel { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsBufferModel::from(s)) } } @@ -18479,15 +16585,6 @@ impl AsRef for M2tsBufferModel { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsBufferModel { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Audio Stream Type #[non_exhaustive] @@ -18518,7 +16615,7 @@ impl std::convert::From<&str> for M2tsAudioStreamType { impl std::str::FromStr for M2tsAudioStreamType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsAudioStreamType::from(s)) } } @@ -18536,15 +16633,6 @@ impl AsRef for M2tsAudioStreamType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsAudioStreamType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Audio Buffer Model #[non_exhaustive] @@ -18575,7 +16663,7 @@ impl std::convert::From<&str> for M2tsAudioBufferModel { impl std::str::FromStr for M2tsAudioBufferModel { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsAudioBufferModel::from(s)) } } @@ -18593,15 +16681,6 @@ impl AsRef for M2tsAudioBufferModel { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsAudioBufferModel { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Arib Captions Pid Control #[non_exhaustive] @@ -18632,7 +16711,7 @@ impl std::convert::From<&str> for M2tsAribCaptionsPidControl { impl std::str::FromStr for M2tsAribCaptionsPidControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsAribCaptionsPidControl::from(s)) } } @@ -18650,15 +16729,6 @@ impl AsRef for M2tsAribCaptionsPidControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsAribCaptionsPidControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Arib #[non_exhaustive] @@ -18689,7 +16759,7 @@ impl std::convert::From<&str> for M2tsArib { impl std::str::FromStr for M2tsArib { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsArib::from(s)) } } @@ -18707,15 +16777,6 @@ impl AsRef for M2tsArib { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsArib { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M2ts Absent Input Audio Behavior #[non_exhaustive] @@ -18746,7 +16807,7 @@ impl std::convert::From<&str> for M2tsAbsentInputAudioBehavior { impl std::str::FromStr for M2tsAbsentInputAudioBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M2tsAbsentInputAudioBehavior::from(s)) } } @@ -18764,35 +16825,18 @@ impl AsRef for M2tsAbsentInputAudioBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M2tsAbsentInputAudioBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Rtmp Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RtmpOutputSettings { /// If set to verifyAuthenticity, verify the tls certificate chain to a trusted Certificate Authority (CA). This will cause rtmps outputs with self-signed certificates to fail. - #[serde(rename = "certificateMode")] - #[serde(default)] pub certificate_mode: std::option::Option, /// Number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// The RTMP endpoint excluding the stream name (eg. rtmp://host/appname). For connection to Akamai, a username and password must be supplied. URI fields accept format identifiers. - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// Number of retry attempts. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, } impl std::fmt::Debug for RtmpOutputSettings { @@ -18906,7 +16950,7 @@ impl std::convert::From<&str> for RtmpOutputCertificateMode { impl std::str::FromStr for RtmpOutputCertificateMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RtmpOutputCertificateMode::from(s)) } } @@ -18924,23 +16968,12 @@ impl AsRef for RtmpOutputCertificateMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RtmpOutputCertificateMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Multiplex Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexOutputSettings { /// Destination is a Multiplex. - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, } impl std::fmt::Debug for MultiplexOutputSettings { @@ -18988,16 +17021,12 @@ impl MultiplexOutputSettings { /// Ms Smooth Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MsSmoothOutputSettings { /// Only applicable when this output is referencing an H.265 video description. /// Specifies whether MP4 segments should be packaged as HEV1 or HVC1. - #[serde(rename = "h265PackagingType")] - #[serde(default)] pub h265_packaging_type: std::option::Option, /// String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - #[serde(rename = "nameModifier")] - #[serde(default)] pub name_modifier: std::option::Option, } impl std::fmt::Debug for MsSmoothOutputSettings { @@ -19092,7 +17121,7 @@ impl std::convert::From<&str> for MsSmoothH265PackagingType { impl std::str::FromStr for MsSmoothH265PackagingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MsSmoothH265PackagingType::from(s)) } } @@ -19110,19 +17139,10 @@ impl AsRef for MsSmoothH265PackagingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MsSmoothH265PackagingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Media Package Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MediaPackageOutputSettings {} impl std::fmt::Debug for MediaPackageOutputSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -19152,24 +17172,16 @@ impl MediaPackageOutputSettings { /// Hls Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsOutputSettings { /// Only applicable when this output is referencing an H.265 video description. /// Specifies whether MP4 segments should be packaged as HEV1 or HVC1. - #[serde(rename = "h265PackagingType")] - #[serde(default)] pub h265_packaging_type: std::option::Option, /// Settings regarding the underlying stream. These settings are different for audio-only outputs. - #[serde(rename = "hlsSettings")] - #[serde(default)] pub hls_settings: std::option::Option, /// String concatenated to the end of the destination filename. Accepts \"Format Identifiers\":#formatIdentifierParameters. - #[serde(rename = "nameModifier")] - #[serde(default)] pub name_modifier: std::option::Option, /// String concatenated to end of segment filenames. - #[serde(rename = "segmentModifier")] - #[serde(default)] pub segment_modifier: std::option::Option, } impl std::fmt::Debug for HlsOutputSettings { @@ -19263,23 +17275,15 @@ impl HlsOutputSettings { /// Hls Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsSettings { /// Audio Only Hls Settings - #[serde(rename = "audioOnlyHlsSettings")] - #[serde(default)] pub audio_only_hls_settings: std::option::Option, /// Fmp4 Hls Settings - #[serde(rename = "fmp4HlsSettings")] - #[serde(default)] pub fmp4_hls_settings: std::option::Option, /// Frame Capture Hls Settings - #[serde(rename = "frameCaptureHlsSettings")] - #[serde(default)] pub frame_capture_hls_settings: std::option::Option, /// Standard Hls Settings - #[serde(rename = "standardHlsSettings")] - #[serde(default)] pub standard_hls_settings: std::option::Option, } impl std::fmt::Debug for HlsSettings { @@ -19382,15 +17386,11 @@ impl HlsSettings { /// Standard Hls Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StandardHlsSettings { /// List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','. - #[serde(rename = "audioRenditionSets")] - #[serde(default)] pub audio_rendition_sets: std::option::Option, /// Settings information for the .m3u8 container - #[serde(rename = "m3u8Settings")] - #[serde(default)] pub m3u8_settings: std::option::Option, } impl std::fmt::Debug for StandardHlsSettings { @@ -19453,75 +17453,41 @@ impl StandardHlsSettings { /// Settings information for the .m3u8 container #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct M3u8Settings { /// The number of audio frames to insert for each PES packet. - #[serde(rename = "audioFramesPerPes")] - #[serde(default)] pub audio_frames_per_pes: i32, /// Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. - #[serde(rename = "audioPids")] - #[serde(default)] pub audio_pids: std::option::Option, /// This parameter is unused and deprecated. - #[serde(rename = "ecmPid")] - #[serde(default)] pub ecm_pid: std::option::Option, /// If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output. - #[serde(rename = "nielsenId3Behavior")] - #[serde(default)] pub nielsen_id3_behavior: std::option::Option, /// The number of milliseconds between instances of this table in the output transport stream. A value of \"0\" writes out the PMT once per segment file. - #[serde(rename = "patInterval")] - #[serde(default)] pub pat_interval: i32, /// When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream. - #[serde(rename = "pcrControl")] - #[serde(default)] pub pcr_control: std::option::Option, /// Maximum time in milliseconds between Program Clock References (PCRs) inserted into the transport stream. - #[serde(rename = "pcrPeriod")] - #[serde(default)] pub pcr_period: i32, /// Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. - #[serde(rename = "pcrPid")] - #[serde(default)] pub pcr_pid: std::option::Option, /// The number of milliseconds between instances of this table in the output transport stream. A value of \"0\" writes out the PMT once per segment file. - #[serde(rename = "pmtInterval")] - #[serde(default)] pub pmt_interval: i32, /// Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. - #[serde(rename = "pmtPid")] - #[serde(default)] pub pmt_pid: std::option::Option, /// The value of the program number field in the Program Map Table. - #[serde(rename = "programNum")] - #[serde(default)] pub program_num: i32, /// If set to passthrough, passes any SCTE-35 signals from the input source to this output. - #[serde(rename = "scte35Behavior")] - #[serde(default)] pub scte35_behavior: std::option::Option, /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. - #[serde(rename = "scte35Pid")] - #[serde(default)] pub scte35_pid: std::option::Option, /// When set to passthrough, timed metadata is passed through from input to output. - #[serde(rename = "timedMetadataBehavior")] - #[serde(default)] pub timed_metadata_behavior: std::option::Option, /// Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6). - #[serde(rename = "timedMetadataPid")] - #[serde(default)] pub timed_metadata_pid: std::option::Option, /// The value of the transport stream ID field in the Program Map Table. - #[serde(rename = "transportStreamId")] - #[serde(default)] pub transport_stream_id: i32, /// Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. - #[serde(rename = "videoPid")] - #[serde(default)] pub video_pid: std::option::Option, } impl std::fmt::Debug for M3u8Settings { @@ -19804,7 +17770,7 @@ impl std::convert::From<&str> for M3u8TimedMetadataBehavior { impl std::str::FromStr for M3u8TimedMetadataBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M3u8TimedMetadataBehavior::from(s)) } } @@ -19822,15 +17788,6 @@ impl AsRef for M3u8TimedMetadataBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M3u8TimedMetadataBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M3u8 Scte35 Behavior #[non_exhaustive] @@ -19861,7 +17818,7 @@ impl std::convert::From<&str> for M3u8Scte35Behavior { impl std::str::FromStr for M3u8Scte35Behavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M3u8Scte35Behavior::from(s)) } } @@ -19879,15 +17836,6 @@ impl AsRef for M3u8Scte35Behavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M3u8Scte35Behavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M3u8 Pcr Control #[non_exhaustive] @@ -19918,7 +17866,7 @@ impl std::convert::From<&str> for M3u8PcrControl { impl std::str::FromStr for M3u8PcrControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M3u8PcrControl::from(s)) } } @@ -19936,15 +17884,6 @@ impl AsRef for M3u8PcrControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M3u8PcrControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// M3u8 Nielsen Id3 Behavior #[non_exhaustive] @@ -19975,7 +17914,7 @@ impl std::convert::From<&str> for M3u8NielsenId3Behavior { impl std::str::FromStr for M3u8NielsenId3Behavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(M3u8NielsenId3Behavior::from(s)) } } @@ -19993,19 +17932,10 @@ impl AsRef for M3u8NielsenId3Behavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for M3u8NielsenId3Behavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Frame Capture Hls Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureHlsSettings {} impl std::fmt::Debug for FrameCaptureHlsSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -20035,19 +17965,13 @@ impl FrameCaptureHlsSettings { /// Fmp4 Hls Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Fmp4HlsSettings { /// List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','. - #[serde(rename = "audioRenditionSets")] - #[serde(default)] pub audio_rendition_sets: std::option::Option, /// If set to passthrough, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output. - #[serde(rename = "nielsenId3Behavior")] - #[serde(default)] pub nielsen_id3_behavior: std::option::Option, /// When set to passthrough, timed metadata is passed through from input to output. - #[serde(rename = "timedMetadataBehavior")] - #[serde(default)] pub timed_metadata_behavior: std::option::Option, } impl std::fmt::Debug for Fmp4HlsSettings { @@ -20156,7 +18080,7 @@ impl std::convert::From<&str> for Fmp4TimedMetadataBehavior { impl std::str::FromStr for Fmp4TimedMetadataBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Fmp4TimedMetadataBehavior::from(s)) } } @@ -20174,15 +18098,6 @@ impl AsRef for Fmp4TimedMetadataBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Fmp4TimedMetadataBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Fmp4 Nielsen Id3 Behavior #[non_exhaustive] @@ -20213,7 +18128,7 @@ impl std::convert::From<&str> for Fmp4NielsenId3Behavior { impl std::str::FromStr for Fmp4NielsenId3Behavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Fmp4NielsenId3Behavior::from(s)) } } @@ -20231,28 +18146,15 @@ impl AsRef for Fmp4NielsenId3Behavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Fmp4NielsenId3Behavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Only Hls Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioOnlyHlsSettings { /// Specifies the group to which the audio Rendition belongs. - #[serde(rename = "audioGroupId")] - #[serde(default)] pub audio_group_id: std::option::Option, /// Optional. Specifies the .jpg or .png image to use as the cover art for an audio-only output. We recommend a low bit-size file because the image increases the output audio bandwidth. /// The image is attached to the audio as an ID3 tag, frame type APIC, picture type 0x10, as per the "ID3 tag version 2.4.0 - Native Frames" standard. - #[serde(rename = "audioOnlyImage")] - #[serde(default)] pub audio_only_image: std::option::Option, /// Four types of audio-only tracks are supported: /// Audio-Only Variant Stream @@ -20263,12 +18165,8 @@ pub struct AudioOnlyHlsSettings { /// Alternate rendition that the client may try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES /// Alternate Audio, not Auto Select /// Alternate rendition that the client will not try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=NO - #[serde(rename = "audioTrackType")] - #[serde(default)] pub audio_track_type: std::option::Option, /// Specifies the segment type. - #[serde(rename = "segmentType")] - #[serde(default)] pub segment_type: std::option::Option, } impl std::fmt::Debug for AudioOnlyHlsSettings { @@ -20397,7 +18295,7 @@ impl std::convert::From<&str> for AudioOnlyHlsSegmentType { impl std::str::FromStr for AudioOnlyHlsSegmentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioOnlyHlsSegmentType::from(s)) } } @@ -20415,15 +18313,6 @@ impl AsRef for AudioOnlyHlsSegmentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioOnlyHlsSegmentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Only Hls Track Type #[non_exhaustive] @@ -20460,7 +18349,7 @@ impl std::convert::From<&str> for AudioOnlyHlsTrackType { impl std::str::FromStr for AudioOnlyHlsTrackType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioOnlyHlsTrackType::from(s)) } } @@ -20482,31 +18371,16 @@ impl AsRef for AudioOnlyHlsTrackType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioOnlyHlsTrackType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Location #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputLocation { /// key used to extract the password from EC2 Parameter store - #[serde(rename = "passwordParam")] - #[serde(default)] pub password_param: std::option::Option, /// Uniform Resource Identifier - This should be a path to a file accessible to the Live system (eg. a http:// URI) depending on the output type. For example, a RTMP destination should have a uri simliar to: "rtmp://fmsserver/live". - #[serde(rename = "uri")] - #[serde(default)] pub uri: std::option::Option, /// Documentation update needed - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for InputLocation { @@ -20605,7 +18479,7 @@ impl std::convert::From<&str> for HlsH265PackagingType { impl std::str::FromStr for HlsH265PackagingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsH265PackagingType::from(s)) } } @@ -20623,23 +18497,12 @@ impl AsRef for HlsH265PackagingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsH265PackagingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Frame Capture Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureOutputSettings { /// Required if the output group contains more than one output. This modifier forms part of the output file name. - #[serde(rename = "nameModifier")] - #[serde(default)] pub name_modifier: std::option::Option, } impl std::fmt::Debug for FrameCaptureOutputSettings { @@ -20687,19 +18550,13 @@ impl FrameCaptureOutputSettings { /// Archive Output Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchiveOutputSettings { /// Settings specific to the container type of the file. - #[serde(rename = "containerSettings")] - #[serde(default)] pub container_settings: std::option::Option, /// Output file extension. If excluded, this will be auto-selected from the container type. - #[serde(rename = "extension")] - #[serde(default)] pub extension: std::option::Option, /// String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - #[serde(rename = "nameModifier")] - #[serde(default)] pub name_modifier: std::option::Option, } impl std::fmt::Debug for ArchiveOutputSettings { @@ -20774,15 +18631,11 @@ impl ArchiveOutputSettings { /// Archive Container Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchiveContainerSettings { /// M2ts Settings - #[serde(rename = "m2tsSettings")] - #[serde(default)] pub m2ts_settings: std::option::Option, /// Raw Settings - #[serde(rename = "rawSettings")] - #[serde(default)] pub raw_settings: std::option::Option, } impl std::fmt::Debug for ArchiveContainerSettings { @@ -20845,7 +18698,7 @@ impl ArchiveContainerSettings { /// Raw Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RawSettings {} impl std::fmt::Debug for RawSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -20875,39 +18728,23 @@ impl RawSettings { /// Output Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputGroupSettings { /// Archive Group Settings - #[serde(rename = "archiveGroupSettings")] - #[serde(default)] pub archive_group_settings: std::option::Option, /// Frame Capture Group Settings - #[serde(rename = "frameCaptureGroupSettings")] - #[serde(default)] pub frame_capture_group_settings: std::option::Option, /// Hls Group Settings - #[serde(rename = "hlsGroupSettings")] - #[serde(default)] pub hls_group_settings: std::option::Option, /// Media Package Group Settings - #[serde(rename = "mediaPackageGroupSettings")] - #[serde(default)] pub media_package_group_settings: std::option::Option, /// Ms Smooth Group Settings - #[serde(rename = "msSmoothGroupSettings")] - #[serde(default)] pub ms_smooth_group_settings: std::option::Option, /// Multiplex Group Settings - #[serde(rename = "multiplexGroupSettings")] - #[serde(default)] pub multiplex_group_settings: std::option::Option, /// Rtmp Group Settings - #[serde(rename = "rtmpGroupSettings")] - #[serde(default)] pub rtmp_group_settings: std::option::Option, /// Udp Group Settings - #[serde(rename = "udpGroupSettings")] - #[serde(default)] pub udp_group_settings: std::option::Option, } impl std::fmt::Debug for OutputGroupSettings { @@ -21082,19 +18919,13 @@ impl OutputGroupSettings { /// Udp Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UdpGroupSettings { /// Specifies behavior of last resort when input video is lost, and no more backup inputs are available. When dropTs is selected the entire transport stream will stop being emitted. When dropProgram is selected the program can be dropped from the transport stream (and replaced with null packets to meet the TS bitrate requirement). Or, when emitProgram is chosen the transport stream will continue to be produced normally with repeat frames, black frames, or slate frames substituted for the absent input video. - #[serde(rename = "inputLossAction")] - #[serde(default)] pub input_loss_action: std::option::Option, /// Indicates ID3 frame that has the timecode. - #[serde(rename = "timedMetadataId3Frame")] - #[serde(default)] pub timed_metadata_id3_frame: std::option::Option, /// Timed Metadata interval in seconds. - #[serde(rename = "timedMetadataId3Period")] - #[serde(default)] pub timed_metadata_id3_period: i32, } impl std::fmt::Debug for UdpGroupSettings { @@ -21202,7 +19033,7 @@ impl std::convert::From<&str> for UdpTimedMetadataId3Frame { impl std::str::FromStr for UdpTimedMetadataId3Frame { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UdpTimedMetadataId3Frame::from(s)) } } @@ -21221,15 +19052,6 @@ impl AsRef for UdpTimedMetadataId3Frame { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UdpTimedMetadataId3Frame { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Loss Action For Udp Out #[non_exhaustive] @@ -21262,7 +19084,7 @@ impl std::convert::From<&str> for InputLossActionForUdpOut { impl std::str::FromStr for InputLossActionForUdpOut { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputLossActionForUdpOut::from(s)) } } @@ -21281,49 +19103,26 @@ impl AsRef for InputLossActionForUdpOut { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputLossActionForUdpOut { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Rtmp Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RtmpGroupSettings { /// Choose the ad marker type for this output group. MediaLive will create a message based on the content of each SCTE-35 message, format it for that marker type, and insert it in the datastream. - #[serde(rename = "adMarkers")] - #[serde(default)] pub ad_markers: std::option::Option>, /// Authentication scheme to use when connecting with CDN - #[serde(rename = "authenticationScheme")] - #[serde(default)] pub authentication_scheme: std::option::Option, /// Controls behavior when content cache fills up. If remote origin server stalls the RTMP connection and does not accept content fast enough the 'Media Cache' will fill up. When the cache reaches the duration specified by cacheLength the cache will stop accepting new content. If set to disconnectImmediately, the RTMP output will force a disconnect. Clear the media cache, and reconnect after restartDelay seconds. If set to waitForServer, the RTMP output will wait up to 5 minutes to allow the origin server to begin accepting data again. - #[serde(rename = "cacheFullBehavior")] - #[serde(default)] pub cache_full_behavior: std::option::Option, /// Cache length, in seconds, is used to calculate buffer size. - #[serde(rename = "cacheLength")] - #[serde(default)] pub cache_length: i32, /// Controls the types of data that passes to onCaptionInfo outputs. If set to 'all' then 608 and 708 carried DTVCC data will be passed. If set to 'field1AndField2608' then DTVCC data will be stripped out, but 608 data from both fields will be passed. If set to 'field1608' then only the data carried in 608 from field 1 video will be passed. - #[serde(rename = "captionData")] - #[serde(default)] pub caption_data: std::option::Option, /// Controls the behavior of this RTMP group if input becomes unavailable. /// - emitOutput: Emit a slate until input returns. /// - pauseOutput: Stop transmitting data until input returns. This does not close the underlying RTMP connection. - #[serde(rename = "inputLossAction")] - #[serde(default)] pub input_loss_action: std::option::Option, /// If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, } impl std::fmt::Debug for RtmpGroupSettings { @@ -21485,7 +19284,7 @@ impl std::convert::From<&str> for InputLossActionForRtmpOut { impl std::str::FromStr for InputLossActionForRtmpOut { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputLossActionForRtmpOut::from(s)) } } @@ -21503,15 +19302,6 @@ impl AsRef for InputLossActionForRtmpOut { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputLossActionForRtmpOut { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Rtmp Caption Data #[non_exhaustive] @@ -21544,7 +19334,7 @@ impl std::convert::From<&str> for RtmpCaptionData { impl std::str::FromStr for RtmpCaptionData { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RtmpCaptionData::from(s)) } } @@ -21563,15 +19353,6 @@ impl AsRef for RtmpCaptionData { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RtmpCaptionData { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Rtmp Cache Full Behavior #[non_exhaustive] @@ -21602,7 +19383,7 @@ impl std::convert::From<&str> for RtmpCacheFullBehavior { impl std::str::FromStr for RtmpCacheFullBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RtmpCacheFullBehavior::from(s)) } } @@ -21620,15 +19401,6 @@ impl AsRef for RtmpCacheFullBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RtmpCacheFullBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Authentication Scheme #[non_exhaustive] @@ -21659,7 +19431,7 @@ impl std::convert::From<&str> for AuthenticationScheme { impl std::str::FromStr for AuthenticationScheme { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AuthenticationScheme::from(s)) } } @@ -21677,15 +19449,6 @@ impl AsRef for AuthenticationScheme { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AuthenticationScheme { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Rtmp Ad Markers #[non_exhaustive] @@ -21714,7 +19477,7 @@ impl std::convert::From<&str> for RtmpAdMarkers { impl std::str::FromStr for RtmpAdMarkers { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RtmpAdMarkers::from(s)) } } @@ -21731,19 +19494,10 @@ impl AsRef for RtmpAdMarkers { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RtmpAdMarkers { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Multiplex Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexGroupSettings {} impl std::fmt::Debug for MultiplexGroupSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21773,95 +19527,57 @@ impl MultiplexGroupSettings { /// Ms Smooth Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MsSmoothGroupSettings { /// The ID to include in each message in the sparse track. Ignored if sparseTrackType is NONE. - #[serde(rename = "acquisitionPointId")] - #[serde(default)] pub acquisition_point_id: std::option::Option, /// If set to passthrough for an audio-only MS Smooth output, the fragment absolute time will be set to the current timecode. This option does not write timecodes to the audio elementary stream. - #[serde(rename = "audioOnlyTimecodeControl")] - #[serde(default)] pub audio_only_timecode_control: std::option::Option, /// If set to verifyAuthenticity, verify the https certificate chain to a trusted Certificate Authority (CA). This will cause https outputs to self-signed certificates to fail. - #[serde(rename = "certificateMode")] - #[serde(default)] pub certificate_mode: std::option::Option, /// Number of seconds to wait before retrying connection to the IIS server if the connection is lost. Content will be cached during this time and the cache will be be delivered to the IIS server once the connection is re-established. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// Smooth Streaming publish point on an IIS server. Elemental Live acts as a "Push" encoder to IIS. - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// MS Smooth event ID to be sent to the IIS server. /// Should only be specified if eventIdMode is set to useConfigured. - #[serde(rename = "eventId")] - #[serde(default)] pub event_id: std::option::Option, /// Specifies whether or not to send an event ID to the IIS server. If no event ID is sent and the same Live Event is used without changing the publishing point, clients might see cached video from the previous run. /// Options: /// - "useConfigured" - use the value provided in eventId /// - "useTimestamp" - generate and send an event ID based on the current timestamp /// - "noEventId" - do not send an event ID to the IIS server. - #[serde(rename = "eventIdMode")] - #[serde(default)] pub event_id_mode: std::option::Option, /// When set to sendEos, send EOS signal to IIS server when stopping the event - #[serde(rename = "eventStopBehavior")] - #[serde(default)] pub event_stop_behavior: std::option::Option, /// Size in seconds of file cache for streaming outputs. - #[serde(rename = "filecacheDuration")] - #[serde(default)] pub filecache_duration: i32, /// Length of mp4 fragments to generate (in seconds). Fragment length must be compatible with GOP size and framerate. - #[serde(rename = "fragmentLength")] - #[serde(default)] pub fragment_length: i32, /// Parameter that control output group behavior on input loss. - #[serde(rename = "inputLossAction")] - #[serde(default)] pub input_loss_action: std::option::Option, /// Number of retry attempts. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, /// Number of seconds before initiating a restart due to output failure, due to exhausting the numRetries on one segment, or exceeding filecacheDuration. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, /// useInputSegmentation has been deprecated. The configured segment size is always used. - #[serde(rename = "segmentationMode")] - #[serde(default)] pub segmentation_mode: std::option::Option, /// Number of milliseconds to delay the output from the second pipeline. - #[serde(rename = "sendDelayMs")] - #[serde(default)] pub send_delay_ms: i32, /// Identifies the type of data to place in the sparse track: /// - SCTE35: Insert SCTE-35 messages from the source content. With each message, insert an IDR frame to start a new segment. /// - SCTE35_WITHOUT_SEGMENTATION: Insert SCTE-35 messages from the source content. With each message, insert an IDR frame but don't start a new segment. /// - NONE: Don't generate a sparse track for any outputs in this output group. - #[serde(rename = "sparseTrackType")] - #[serde(default)] pub sparse_track_type: std::option::Option, /// When set to send, send stream manifest so publishing point doesn't start until all streams start. - #[serde(rename = "streamManifestBehavior")] - #[serde(default)] pub stream_manifest_behavior: std::option::Option, /// Timestamp offset for the event. Only used if timestampOffsetMode is set to useConfiguredOffset. - #[serde(rename = "timestampOffset")] - #[serde(default)] pub timestamp_offset: std::option::Option, /// Type of timestamp date offset to use. /// - useEventStartDate: Use the date the event was started as the offset /// - useConfiguredOffset: Use an explicitly configured date as the offset - #[serde(rename = "timestampOffsetMode")] - #[serde(default)] pub timestamp_offset_mode: std::option::Option, } impl std::fmt::Debug for MsSmoothGroupSettings { @@ -22225,7 +19941,7 @@ impl std::convert::From<&str> for SmoothGroupTimestampOffsetMode { impl std::str::FromStr for SmoothGroupTimestampOffsetMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupTimestampOffsetMode::from(s)) } } @@ -22243,15 +19959,6 @@ impl AsRef for SmoothGroupTimestampOffsetMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupTimestampOffsetMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Stream Manifest Behavior #[non_exhaustive] @@ -22282,7 +19989,7 @@ impl std::convert::From<&str> for SmoothGroupStreamManifestBehavior { impl std::str::FromStr for SmoothGroupStreamManifestBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupStreamManifestBehavior::from(s)) } } @@ -22300,15 +20007,6 @@ impl AsRef for SmoothGroupStreamManifestBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupStreamManifestBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Sparse Track Type #[non_exhaustive] @@ -22341,7 +20039,7 @@ impl std::convert::From<&str> for SmoothGroupSparseTrackType { impl std::str::FromStr for SmoothGroupSparseTrackType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupSparseTrackType::from(s)) } } @@ -22360,15 +20058,6 @@ impl AsRef for SmoothGroupSparseTrackType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupSparseTrackType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Segmentation Mode #[non_exhaustive] @@ -22399,7 +20088,7 @@ impl std::convert::From<&str> for SmoothGroupSegmentationMode { impl std::str::FromStr for SmoothGroupSegmentationMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupSegmentationMode::from(s)) } } @@ -22417,15 +20106,6 @@ impl AsRef for SmoothGroupSegmentationMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupSegmentationMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Loss Action For Ms Smooth Out #[non_exhaustive] @@ -22456,7 +20136,7 @@ impl std::convert::From<&str> for InputLossActionForMsSmoothOut { impl std::str::FromStr for InputLossActionForMsSmoothOut { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputLossActionForMsSmoothOut::from(s)) } } @@ -22474,15 +20154,6 @@ impl AsRef for InputLossActionForMsSmoothOut { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputLossActionForMsSmoothOut { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Event Stop Behavior #[non_exhaustive] @@ -22513,7 +20184,7 @@ impl std::convert::From<&str> for SmoothGroupEventStopBehavior { impl std::str::FromStr for SmoothGroupEventStopBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupEventStopBehavior::from(s)) } } @@ -22531,15 +20202,6 @@ impl AsRef for SmoothGroupEventStopBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupEventStopBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Event Id Mode #[non_exhaustive] @@ -22572,7 +20234,7 @@ impl std::convert::From<&str> for SmoothGroupEventIdMode { impl std::str::FromStr for SmoothGroupEventIdMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupEventIdMode::from(s)) } } @@ -22591,15 +20253,6 @@ impl AsRef for SmoothGroupEventIdMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupEventIdMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Certificate Mode #[non_exhaustive] @@ -22630,7 +20283,7 @@ impl std::convert::From<&str> for SmoothGroupCertificateMode { impl std::str::FromStr for SmoothGroupCertificateMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupCertificateMode::from(s)) } } @@ -22648,15 +20301,6 @@ impl AsRef for SmoothGroupCertificateMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupCertificateMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Smooth Group Audio Only Timecode Control #[non_exhaustive] @@ -22687,7 +20331,7 @@ impl std::convert::From<&str> for SmoothGroupAudioOnlyTimecodeControl { impl std::str::FromStr for SmoothGroupAudioOnlyTimecodeControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmoothGroupAudioOnlyTimecodeControl::from(s)) } } @@ -22705,23 +20349,12 @@ impl AsRef for SmoothGroupAudioOnlyTimecodeControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmoothGroupAudioOnlyTimecodeControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Media Package Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MediaPackageGroupSettings { /// MediaPackage channel destination. - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, } impl std::fmt::Debug for MediaPackageGroupSettings { @@ -22769,196 +20402,112 @@ impl MediaPackageGroupSettings { /// Hls Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsGroupSettings { /// Choose one or more ad marker types to pass SCTE35 signals through to this group of Apple HLS outputs. - #[serde(rename = "adMarkers")] - #[serde(default)] pub ad_markers: std::option::Option>, /// A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file. - #[serde(rename = "baseUrlContent")] - #[serde(default)] pub base_url_content: std::option::Option, /// Optional. One value per output group. /// This field is required only if you are completing Base URL content A, and the downstream system has notified you that the media files for pipeline 1 of all outputs are in a location different from the media files for pipeline 0. - #[serde(rename = "baseUrlContent1")] - #[serde(default)] pub base_url_content1: std::option::Option, /// A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file. - #[serde(rename = "baseUrlManifest")] - #[serde(default)] pub base_url_manifest: std::option::Option, /// Optional. One value per output group. /// Complete this field only if you are completing Base URL manifest A, and the downstream system has notified you that the child manifest files for pipeline 1 of all outputs are in a location different from the child manifest files for pipeline 0. - #[serde(rename = "baseUrlManifest1")] - #[serde(default)] pub base_url_manifest1: std::option::Option, /// Mapping of up to 4 caption channels to caption languages. Is only meaningful if captionLanguageSetting is set to "insert". - #[serde(rename = "captionLanguageMappings")] - #[serde(default)] pub caption_language_mappings: std::option::Option>, /// Applies only to 608 Embedded output captions. /// insert: Include CLOSED-CAPTIONS lines in the manifest. Specify at least one language in the CC1 Language Code field. One CLOSED-CAPTION line is added for each Language Code you specify. Make sure to specify the languages in the order in which they appear in the original source (if the source is embedded format) or the order of the caption selectors (if the source is other than embedded). Otherwise, languages in the manifest will not match up properly with the output captions. /// none: Include CLOSED-CAPTIONS=NONE line in the manifest. /// omit: Omit any CLOSED-CAPTIONS line from the manifest. - #[serde(rename = "captionLanguageSetting")] - #[serde(default)] pub caption_language_setting: std::option::Option, /// When set to "disabled", sets the #EXT-X-ALLOW-CACHE:no tag in the manifest, which prevents clients from saving media segments for later replay. - #[serde(rename = "clientCache")] - #[serde(default)] pub client_cache: std::option::Option, /// Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation. - #[serde(rename = "codecSpecification")] - #[serde(default)] pub codec_specification: std::option::Option, /// For use with encryptionType. This is a 128-bit, 16-byte hex value represented by a 32-character text string. If ivSource is set to "explicit" then this parameter is required and is used as the IV for encryption. - #[serde(rename = "constantIv")] - #[serde(default)] pub constant_iv: std::option::Option, /// A directory or HTTP destination for the HLS segments, manifest files, and encryption keys (if enabled). - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// Place segments in subdirectories. - #[serde(rename = "directoryStructure")] - #[serde(default)] pub directory_structure: std::option::Option, /// Specifies whether to insert EXT-X-DISCONTINUITY tags in the HLS child manifests for this output group. /// Typically, choose Insert because these tags are required in the manifest (according to the HLS specification) and serve an important purpose. /// Choose Never Insert only if the downstream system is doing real-time failover (without using the MediaLive automatic failover feature) and only if that downstream system has advised you to exclude the tags. - #[serde(rename = "discontinuityTags")] - #[serde(default)] pub discontinuity_tags: std::option::Option, /// Encrypts the segments with the given encryption scheme. Exclude this parameter if no encryption is desired. - #[serde(rename = "encryptionType")] - #[serde(default)] pub encryption_type: std::option::Option, /// Parameters that control interactions with the CDN. - #[serde(rename = "hlsCdnSettings")] - #[serde(default)] pub hls_cdn_settings: std::option::Option, /// State of HLS ID3 Segment Tagging - #[serde(rename = "hlsId3SegmentTagging")] - #[serde(default)] pub hls_id3_segment_tagging: std::option::Option, /// DISABLED: Do not create an I-frame-only manifest, but do create the master and media manifests (according to the Output Selection field). /// STANDARD: Create an I-frame-only manifest for each output that contains video, as well as the other manifests (according to the Output Selection field). The I-frame manifest contains a #EXT-X-I-FRAMES-ONLY tag to indicate it is I-frame only, and one or more #EXT-X-BYTERANGE entries identifying the I-frame position. For example, #EXT-X-BYTERANGE:160364@1461888" - #[serde(rename = "iFrameOnlyPlaylists")] - #[serde(default)] pub i_frame_only_playlists: std::option::Option, /// Specifies whether to include the final (incomplete) segment in the media output when the pipeline stops producing output because of a channel stop, a channel pause or a loss of input to the pipeline. /// Auto means that MediaLive decides whether to include the final segment, depending on the channel class and the types of output groups. /// Suppress means to never include the incomplete segment. We recommend you choose Auto and let MediaLive control the behavior. - #[serde(rename = "incompleteSegmentBehavior")] - #[serde(default)] pub incomplete_segment_behavior: std::option::Option, /// Applies only if Mode field is LIVE. /// Specifies the maximum number of segments in the media manifest file. After this maximum, older segments are removed from the media manifest. This number must be smaller than the number in the Keep Segments field. - #[serde(rename = "indexNSegments")] - #[serde(default)] pub index_n_segments: i32, /// Parameter that control output group behavior on input loss. - #[serde(rename = "inputLossAction")] - #[serde(default)] pub input_loss_action: std::option::Option, /// For use with encryptionType. The IV (Initialization Vector) is a 128-bit number used in conjunction with the key for encrypting blocks. If set to "include", IV is listed in the manifest, otherwise the IV is not in the manifest. - #[serde(rename = "ivInManifest")] - #[serde(default)] pub iv_in_manifest: std::option::Option, /// For use with encryptionType. The IV (Initialization Vector) is a 128-bit number used in conjunction with the key for encrypting blocks. If this setting is "followsSegmentNumber", it will cause the IV to change every segment (to match the segment number). If this is set to "explicit", you must enter a constantIv value. - #[serde(rename = "ivSource")] - #[serde(default)] pub iv_source: std::option::Option, /// Applies only if Mode field is LIVE. /// Specifies the number of media segments to retain in the destination directory. This number should be bigger than indexNSegments (Num segments). We recommend (value = (2 x indexNsegments) + 1). /// If this "keep segments" number is too low, the following might happen: the player is still reading a media manifest file that lists this segment, but that segment has been removed from the destination directory (as directed by indexNSegments). This situation would result in a 404 HTTP error on the player. - #[serde(rename = "keepSegments")] - #[serde(default)] pub keep_segments: i32, /// The value specifies how the key is represented in the resource identified by the URI. If parameter is absent, an implicit value of "identity" is used. A reverse DNS string can also be given. - #[serde(rename = "keyFormat")] - #[serde(default)] pub key_format: std::option::Option, /// Either a single positive integer version value or a slash delimited list of version values (1/2/3). - #[serde(rename = "keyFormatVersions")] - #[serde(default)] pub key_format_versions: std::option::Option, /// The key provider settings. - #[serde(rename = "keyProviderSettings")] - #[serde(default)] pub key_provider_settings: std::option::Option, /// When set to gzip, compresses HLS playlist. - #[serde(rename = "manifestCompression")] - #[serde(default)] pub manifest_compression: std::option::Option, /// Indicates whether the output manifest should use floating point or integer values for segment duration. - #[serde(rename = "manifestDurationFormat")] - #[serde(default)] pub manifest_duration_format: std::option::Option, /// When set, minimumSegmentLength is enforced by looking ahead and back within the specified range for a nearby avail and extending the segment size if needed. - #[serde(rename = "minSegmentLength")] - #[serde(default)] pub min_segment_length: i32, /// If "vod", all segments are indexed and kept permanently in the destination and manifest. If "live", only the number segments specified in keepSegments and indexNSegments are kept; newer segments replace older segments, which may prevent players from rewinding all the way to the beginning of the event. /// VOD mode uses HLS EXT-X-PLAYLIST-TYPE of EVENT while the channel is running, converting it to a "VOD" type manifest on completion of the stream. - #[serde(rename = "mode")] - #[serde(default)] pub mode: std::option::Option, /// MANIFESTS_AND_SEGMENTS: Generates manifests (master manifest, if applicable, and media manifests) for this output group. /// VARIANT_MANIFESTS_AND_SEGMENTS: Generates media manifests for this output group, but not a master manifest. /// SEGMENTS_ONLY: Does not generate any manifests for this output group. - #[serde(rename = "outputSelection")] - #[serde(default)] pub output_selection: std::option::Option, /// Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestampOffset. - #[serde(rename = "programDateTime")] - #[serde(default)] pub program_date_time: std::option::Option, /// Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. - #[serde(rename = "programDateTimePeriod")] - #[serde(default)] pub program_date_time_period: i32, /// ENABLED: The master manifest (.m3u8 file) for each pipeline includes information about both pipelines: first its own media files, then the media files of the other pipeline. This feature allows playout device that support stale manifest detection to switch from one manifest to the other, when the current manifest seems to be stale. There are still two destinations and two master manifests, but both master manifests reference the media files from both pipelines. /// DISABLED: The master manifest (.m3u8 file) for each pipeline includes information about its own pipeline only. /// For an HLS output group with MediaPackage as the destination, the DISABLED behavior is always followed. MediaPackage regenerates the manifests it serves to players so a redundant manifest from MediaLive is irrelevant. - #[serde(rename = "redundantManifest")] - #[serde(default)] pub redundant_manifest: std::option::Option, /// Length of MPEG-2 Transport Stream segments to create (in seconds). Note that segments will end on the next keyframe after this number of seconds, so actual segment length may be longer. - #[serde(rename = "segmentLength")] - #[serde(default)] pub segment_length: i32, /// useInputSegmentation has been deprecated. The configured segment size is always used. - #[serde(rename = "segmentationMode")] - #[serde(default)] pub segmentation_mode: std::option::Option, /// Number of segments to write to a subdirectory before starting a new one. directoryStructure must be subdirectoryPerStream for this setting to have an effect. - #[serde(rename = "segmentsPerSubdirectory")] - #[serde(default)] pub segments_per_subdirectory: i32, /// Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest. - #[serde(rename = "streamInfResolution")] - #[serde(default)] pub stream_inf_resolution: std::option::Option, /// Indicates ID3 frame that has the timecode. - #[serde(rename = "timedMetadataId3Frame")] - #[serde(default)] pub timed_metadata_id3_frame: std::option::Option, /// Timed Metadata interval in seconds. - #[serde(rename = "timedMetadataId3Period")] - #[serde(default)] pub timed_metadata_id3_period: i32, /// Provides an extra millisecond delta offset to fine tune the timestamps. - #[serde(rename = "timestampDeltaMilliseconds")] - #[serde(default)] pub timestamp_delta_milliseconds: i32, /// SEGMENTED_FILES: Emit the program as segments - multiple .ts media files. /// SINGLE_FILE: Applies only if Mode field is VOD. Emit the program as a single .ts media file. The media manifest includes #EXT-X-BYTERANGE tags to index segments for playback. A typical use for this value is when sending the output to AWS Elemental MediaConvert, which can accept only a single media file. Playback while the channel is running is not guaranteed due to HTTP server caching. - #[serde(rename = "tsFileMode")] - #[serde(default)] pub ts_file_mode: std::option::Option, } impl std::fmt::Debug for HlsGroupSettings { @@ -23673,7 +21222,7 @@ impl std::convert::From<&str> for HlsTsFileMode { impl std::str::FromStr for HlsTsFileMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsTsFileMode::from(s)) } } @@ -23691,15 +21240,6 @@ impl AsRef for HlsTsFileMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsTsFileMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Timed Metadata Id3 Frame #[non_exhaustive] @@ -23732,7 +21272,7 @@ impl std::convert::From<&str> for HlsTimedMetadataId3Frame { impl std::str::FromStr for HlsTimedMetadataId3Frame { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsTimedMetadataId3Frame::from(s)) } } @@ -23751,15 +21291,6 @@ impl AsRef for HlsTimedMetadataId3Frame { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsTimedMetadataId3Frame { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Stream Inf Resolution #[non_exhaustive] @@ -23790,7 +21321,7 @@ impl std::convert::From<&str> for HlsStreamInfResolution { impl std::str::FromStr for HlsStreamInfResolution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsStreamInfResolution::from(s)) } } @@ -23808,15 +21339,6 @@ impl AsRef for HlsStreamInfResolution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsStreamInfResolution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Segmentation Mode #[non_exhaustive] @@ -23847,7 +21369,7 @@ impl std::convert::From<&str> for HlsSegmentationMode { impl std::str::FromStr for HlsSegmentationMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsSegmentationMode::from(s)) } } @@ -23865,15 +21387,6 @@ impl AsRef for HlsSegmentationMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsSegmentationMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Redundant Manifest #[non_exhaustive] @@ -23904,7 +21417,7 @@ impl std::convert::From<&str> for HlsRedundantManifest { impl std::str::FromStr for HlsRedundantManifest { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsRedundantManifest::from(s)) } } @@ -23922,15 +21435,6 @@ impl AsRef for HlsRedundantManifest { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsRedundantManifest { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Program Date Time #[non_exhaustive] @@ -23961,7 +21465,7 @@ impl std::convert::From<&str> for HlsProgramDateTime { impl std::str::FromStr for HlsProgramDateTime { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsProgramDateTime::from(s)) } } @@ -23979,15 +21483,6 @@ impl AsRef for HlsProgramDateTime { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsProgramDateTime { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Output Selection #[non_exhaustive] @@ -24020,7 +21515,7 @@ impl std::convert::From<&str> for HlsOutputSelection { impl std::str::FromStr for HlsOutputSelection { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsOutputSelection::from(s)) } } @@ -24039,15 +21534,6 @@ impl AsRef for HlsOutputSelection { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsOutputSelection { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Mode #[non_exhaustive] @@ -24078,7 +21564,7 @@ impl std::convert::From<&str> for HlsMode { impl std::str::FromStr for HlsMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsMode::from(s)) } } @@ -24096,15 +21582,6 @@ impl AsRef for HlsMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Manifest Duration Format #[non_exhaustive] @@ -24135,7 +21612,7 @@ impl std::convert::From<&str> for HlsManifestDurationFormat { impl std::str::FromStr for HlsManifestDurationFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsManifestDurationFormat::from(s)) } } @@ -24153,15 +21630,6 @@ impl AsRef for HlsManifestDurationFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsManifestDurationFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Manifest Compression #[non_exhaustive] @@ -24192,7 +21660,7 @@ impl std::convert::From<&str> for HlsManifestCompression { impl std::str::FromStr for HlsManifestCompression { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsManifestCompression::from(s)) } } @@ -24210,23 +21678,12 @@ impl AsRef for HlsManifestCompression { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsManifestCompression { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Key Provider Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KeyProviderSettings { /// Static Key Settings - #[serde(rename = "staticKeySettings")] - #[serde(default)] pub static_key_settings: std::option::Option, } impl std::fmt::Debug for KeyProviderSettings { @@ -24274,15 +21731,11 @@ impl KeyProviderSettings { /// Static Key Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StaticKeySettings { /// The URL of the license server used for protecting content. - #[serde(rename = "keyProviderServer")] - #[serde(default)] pub key_provider_server: std::option::Option, /// Static key value as a 32 character hexadecimal string. - #[serde(rename = "staticKeyValue")] - #[serde(default)] pub static_key_value: std::option::Option, } impl std::fmt::Debug for StaticKeySettings { @@ -24372,7 +21825,7 @@ impl std::convert::From<&str> for HlsIvSource { impl std::str::FromStr for HlsIvSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsIvSource::from(s)) } } @@ -24390,15 +21843,6 @@ impl AsRef for HlsIvSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsIvSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Iv In Manifest #[non_exhaustive] @@ -24429,7 +21873,7 @@ impl std::convert::From<&str> for HlsIvInManifest { impl std::str::FromStr for HlsIvInManifest { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsIvInManifest::from(s)) } } @@ -24447,15 +21891,6 @@ impl AsRef for HlsIvInManifest { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsIvInManifest { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Loss Action For Hls Out #[non_exhaustive] @@ -24486,7 +21921,7 @@ impl std::convert::From<&str> for InputLossActionForHlsOut { impl std::str::FromStr for InputLossActionForHlsOut { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputLossActionForHlsOut::from(s)) } } @@ -24504,15 +21939,6 @@ impl AsRef for InputLossActionForHlsOut { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputLossActionForHlsOut { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Incomplete Segment Behavior #[non_exhaustive] @@ -24543,7 +21969,7 @@ impl std::convert::From<&str> for HlsIncompleteSegmentBehavior { impl std::str::FromStr for HlsIncompleteSegmentBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsIncompleteSegmentBehavior::from(s)) } } @@ -24561,15 +21987,6 @@ impl AsRef for HlsIncompleteSegmentBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsIncompleteSegmentBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// When set to "standard", an I-Frame only playlist will be written out for each video output in the output group. This I-Frame only playlist will contain byte range offsets pointing to the I-frame(s) in each segment. #[non_exhaustive] @@ -24600,7 +22017,7 @@ impl std::convert::From<&str> for IFrameOnlyPlaylistType { impl std::str::FromStr for IFrameOnlyPlaylistType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IFrameOnlyPlaylistType::from(s)) } } @@ -24618,15 +22035,6 @@ impl AsRef for IFrameOnlyPlaylistType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IFrameOnlyPlaylistType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// State of HLS ID3 Segment Tagging #[non_exhaustive] @@ -24657,7 +22065,7 @@ impl std::convert::From<&str> for HlsId3SegmentTaggingState { impl std::str::FromStr for HlsId3SegmentTaggingState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsId3SegmentTaggingState::from(s)) } } @@ -24675,39 +22083,20 @@ impl AsRef for HlsId3SegmentTaggingState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsId3SegmentTaggingState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Cdn Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsCdnSettings { /// Hls Akamai Settings - #[serde(rename = "hlsAkamaiSettings")] - #[serde(default)] pub hls_akamai_settings: std::option::Option, /// Hls Basic Put Settings - #[serde(rename = "hlsBasicPutSettings")] - #[serde(default)] pub hls_basic_put_settings: std::option::Option, /// Hls Media Store Settings - #[serde(rename = "hlsMediaStoreSettings")] - #[serde(default)] pub hls_media_store_settings: std::option::Option, /// Hls S3 Settings - #[serde(rename = "hlsS3Settings")] - #[serde(default)] pub hls_s3_settings: std::option::Option, /// Hls Webdav Settings - #[serde(rename = "hlsWebdavSettings")] - #[serde(default)] pub hls_webdav_settings: std::option::Option, } impl std::fmt::Debug for HlsCdnSettings { @@ -24819,27 +22208,17 @@ impl HlsCdnSettings { /// Hls Webdav Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsWebdavSettings { /// Number of seconds to wait before retrying connection to the CDN if the connection is lost. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// Size in seconds of file cache for streaming outputs. - #[serde(rename = "filecacheDuration")] - #[serde(default)] pub filecache_duration: i32, /// Specify whether or not to use chunked transfer encoding to WebDAV. - #[serde(rename = "httpTransferMode")] - #[serde(default)] pub http_transfer_mode: std::option::Option, /// Number of retry attempts that will be made before the Live Event is put into an error state. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, /// If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, } impl std::fmt::Debug for HlsWebdavSettings { @@ -24965,7 +22344,7 @@ impl std::convert::From<&str> for HlsWebdavHttpTransferMode { impl std::str::FromStr for HlsWebdavHttpTransferMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsWebdavHttpTransferMode::from(s)) } } @@ -24983,23 +22362,12 @@ impl AsRef for HlsWebdavHttpTransferMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsWebdavHttpTransferMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls S3 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsS3Settings { /// Specify the canned ACL to apply to each S3 request. Defaults to none. - #[serde(rename = "cannedAcl")] - #[serde(default)] pub canned_acl: std::option::Option, } impl std::fmt::Debug for HlsS3Settings { @@ -25078,7 +22446,7 @@ impl std::convert::From<&str> for S3CannedAcl { impl std::str::FromStr for S3CannedAcl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(S3CannedAcl::from(s)) } } @@ -25098,39 +22466,20 @@ impl AsRef for S3CannedAcl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for S3CannedAcl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Media Store Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsMediaStoreSettings { /// Number of seconds to wait before retrying connection to the CDN if the connection is lost. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// Size in seconds of file cache for streaming outputs. - #[serde(rename = "filecacheDuration")] - #[serde(default)] pub filecache_duration: i32, /// When set to temporal, output files are stored in non-persistent memory for faster reading and writing. - #[serde(rename = "mediaStoreStorageClass")] - #[serde(default)] pub media_store_storage_class: std::option::Option, /// Number of retry attempts that will be made before the Live Event is put into an error state. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, /// If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, } impl std::fmt::Debug for HlsMediaStoreSettings { @@ -25255,7 +22604,7 @@ impl std::convert::From<&str> for HlsMediaStoreStorageClass { impl std::str::FromStr for HlsMediaStoreStorageClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsMediaStoreStorageClass::from(s)) } } @@ -25272,35 +22621,18 @@ impl AsRef for HlsMediaStoreStorageClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsMediaStoreStorageClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Basic Put Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsBasicPutSettings { /// Number of seconds to wait before retrying connection to the CDN if the connection is lost. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// Size in seconds of file cache for streaming outputs. - #[serde(rename = "filecacheDuration")] - #[serde(default)] pub filecache_duration: i32, /// Number of retry attempts that will be made before the Live Event is put into an error state. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, /// If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, } impl std::fmt::Debug for HlsBasicPutSettings { @@ -25381,35 +22713,21 @@ impl HlsBasicPutSettings { /// Hls Akamai Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsAkamaiSettings { /// Number of seconds to wait before retrying connection to the CDN if the connection is lost. - #[serde(rename = "connectionRetryInterval")] - #[serde(default)] pub connection_retry_interval: i32, /// Size in seconds of file cache for streaming outputs. - #[serde(rename = "filecacheDuration")] - #[serde(default)] pub filecache_duration: i32, /// Specify whether or not to use chunked transfer encoding to Akamai. User should contact Akamai to enable this feature. - #[serde(rename = "httpTransferMode")] - #[serde(default)] pub http_transfer_mode: std::option::Option, /// Number of retry attempts that will be made before the Live Event is put into an error state. - #[serde(rename = "numRetries")] - #[serde(default)] pub num_retries: i32, /// If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. - #[serde(rename = "restartDelay")] - #[serde(default)] pub restart_delay: i32, /// Salt for authenticated Akamai. - #[serde(rename = "salt")] - #[serde(default)] pub salt: std::option::Option, /// Token parameter for authenticated akamai. If not specified, _gda_ is used. - #[serde(rename = "token")] - #[serde(default)] pub token: std::option::Option, } impl std::fmt::Debug for HlsAkamaiSettings { @@ -25559,7 +22877,7 @@ impl std::convert::From<&str> for HlsAkamaiHttpTransferMode { impl std::str::FromStr for HlsAkamaiHttpTransferMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsAkamaiHttpTransferMode::from(s)) } } @@ -25577,15 +22895,6 @@ impl AsRef for HlsAkamaiHttpTransferMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsAkamaiHttpTransferMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Encryption Type #[non_exhaustive] @@ -25616,7 +22925,7 @@ impl std::convert::From<&str> for HlsEncryptionType { impl std::str::FromStr for HlsEncryptionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsEncryptionType::from(s)) } } @@ -25634,15 +22943,6 @@ impl AsRef for HlsEncryptionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsEncryptionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Discontinuity Tags #[non_exhaustive] @@ -25673,7 +22973,7 @@ impl std::convert::From<&str> for HlsDiscontinuityTags { impl std::str::FromStr for HlsDiscontinuityTags { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsDiscontinuityTags::from(s)) } } @@ -25691,15 +22991,6 @@ impl AsRef for HlsDiscontinuityTags { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsDiscontinuityTags { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Directory Structure #[non_exhaustive] @@ -25730,7 +23021,7 @@ impl std::convert::From<&str> for HlsDirectoryStructure { impl std::str::FromStr for HlsDirectoryStructure { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsDirectoryStructure::from(s)) } } @@ -25748,15 +23039,6 @@ impl AsRef for HlsDirectoryStructure { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsDirectoryStructure { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Codec Specification #[non_exhaustive] @@ -25787,7 +23069,7 @@ impl std::convert::From<&str> for HlsCodecSpecification { impl std::str::FromStr for HlsCodecSpecification { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsCodecSpecification::from(s)) } } @@ -25805,15 +23087,6 @@ impl AsRef for HlsCodecSpecification { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsCodecSpecification { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Client Cache #[non_exhaustive] @@ -25844,7 +23117,7 @@ impl std::convert::From<&str> for HlsClientCache { impl std::str::FromStr for HlsClientCache { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsClientCache::from(s)) } } @@ -25862,15 +23135,6 @@ impl AsRef for HlsClientCache { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsClientCache { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Hls Caption Language Setting #[non_exhaustive] @@ -25903,7 +23167,7 @@ impl std::convert::From<&str> for HlsCaptionLanguageSetting { impl std::str::FromStr for HlsCaptionLanguageSetting { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsCaptionLanguageSetting::from(s)) } } @@ -25922,31 +23186,16 @@ impl AsRef for HlsCaptionLanguageSetting { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsCaptionLanguageSetting { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Maps a caption channel to an ISO 693-2 language code (http://www.loc.gov/standards/iso639-2), with an optional description. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionLanguageMapping { /// The closed caption channel being described by this CaptionLanguageMapping. Each channel mapping must have a unique channel number (maximum of 4) - #[serde(rename = "captionChannel")] - #[serde(default)] pub caption_channel: i32, /// Three character ISO 639-2 language code (see http://www.loc.gov/standards/iso639-2) - #[serde(rename = "languageCode")] - #[serde(default)] pub language_code: std::option::Option, /// Textual description of language - #[serde(rename = "languageDescription")] - #[serde(default)] pub language_description: std::option::Option, } impl std::fmt::Debug for CaptionLanguageMapping { @@ -26050,7 +23299,7 @@ impl std::convert::From<&str> for HlsAdMarkers { impl std::str::FromStr for HlsAdMarkers { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HlsAdMarkers::from(s)) } } @@ -26069,27 +23318,14 @@ impl AsRef for HlsAdMarkers { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HlsAdMarkers { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Frame Capture Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureGroupSettings { /// The destination for the frame capture files. Either the URI for an Amazon S3 bucket and object, plus a file name prefix (for example, s3ssl://sportsDelivery/highlights/20180820/curling-) or the URI for a MediaStore container, plus a file name prefix (for example, mediastoressl://sportsDelivery/20180820/curling-). The final file names consist of the prefix from the destination field (for example, "curling-") + name modifier + the counter (5 digits, starting from 00001) + extension (which is always .jpg). For example, curling-low.00001.jpg - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// Parameters that control interactions with the CDN. - #[serde(rename = "frameCaptureCdnSettings")] - #[serde(default)] pub frame_capture_cdn_settings: std::option::Option, } impl std::fmt::Debug for FrameCaptureGroupSettings { @@ -26159,11 +23395,9 @@ impl FrameCaptureGroupSettings { /// Frame Capture Cdn Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureCdnSettings { /// Frame Capture S3 Settings - #[serde(rename = "frameCaptureS3Settings")] - #[serde(default)] pub frame_capture_s3_settings: std::option::Option, } impl std::fmt::Debug for FrameCaptureCdnSettings { @@ -26215,11 +23449,9 @@ impl FrameCaptureCdnSettings { /// Frame Capture S3 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FrameCaptureS3Settings { /// Specify the canned ACL to apply to each S3 request. Defaults to none. - #[serde(rename = "cannedAcl")] - #[serde(default)] pub canned_acl: std::option::Option, } impl std::fmt::Debug for FrameCaptureS3Settings { @@ -26267,19 +23499,13 @@ impl FrameCaptureS3Settings { /// Archive Group Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchiveGroupSettings { /// Parameters that control interactions with the CDN. - #[serde(rename = "archiveCdnSettings")] - #[serde(default)] pub archive_cdn_settings: std::option::Option, /// A directory and base filename where archive files should be written. - #[serde(rename = "destination")] - #[serde(default)] pub destination: std::option::Option, /// Number of seconds to write to archive file before closing and starting a new one. - #[serde(rename = "rolloverInterval")] - #[serde(default)] pub rollover_interval: i32, } impl std::fmt::Debug for ArchiveGroupSettings { @@ -26354,11 +23580,9 @@ impl ArchiveGroupSettings { /// Archive Cdn Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchiveCdnSettings { /// Archive S3 Settings - #[serde(rename = "archiveS3Settings")] - #[serde(default)] pub archive_s3_settings: std::option::Option, } impl std::fmt::Debug for ArchiveCdnSettings { @@ -26406,11 +23630,9 @@ impl ArchiveCdnSettings { /// Archive S3 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArchiveS3Settings { /// Specify the canned ACL to apply to each S3 request. Defaults to none. - #[serde(rename = "cannedAcl")] - #[serde(default)] pub canned_acl: std::option::Option, } impl std::fmt::Debug for ArchiveS3Settings { @@ -26458,15 +23680,11 @@ impl ArchiveS3Settings { /// Nielsen Configuration #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NielsenConfiguration { /// Enter the Distributor ID assigned to your organization by Nielsen. - #[serde(rename = "distributorId")] - #[serde(default)] pub distributor_id: std::option::Option, /// Enables Nielsen PCM to ID3 tagging - #[serde(rename = "nielsenPcmToId3Tagging")] - #[serde(default)] pub nielsen_pcm_to_id3_tagging: std::option::Option, } impl std::fmt::Debug for NielsenConfiguration { @@ -26563,7 +23781,7 @@ impl std::convert::From<&str> for NielsenPcmToId3TaggingState { impl std::str::FromStr for NielsenPcmToId3TaggingState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NielsenPcmToId3TaggingState::from(s)) } } @@ -26581,27 +23799,14 @@ impl AsRef for NielsenPcmToId3TaggingState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NielsenPcmToId3TaggingState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Motion Graphics Configuration #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MotionGraphicsConfiguration { /// Motion Graphics Insertion - #[serde(rename = "motionGraphicsInsertion")] - #[serde(default)] pub motion_graphics_insertion: std::option::Option, /// Motion Graphics Settings - #[serde(rename = "motionGraphicsSettings")] - #[serde(default)] pub motion_graphics_settings: std::option::Option, } impl std::fmt::Debug for MotionGraphicsConfiguration { @@ -26672,11 +23877,9 @@ impl MotionGraphicsConfiguration { /// Motion Graphics Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MotionGraphicsSettings { /// Html Motion Graphics Settings - #[serde(rename = "htmlMotionGraphicsSettings")] - #[serde(default)] pub html_motion_graphics_settings: std::option::Option, } @@ -26732,7 +23935,7 @@ impl MotionGraphicsSettings { /// Html Motion Graphics Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HtmlMotionGraphicsSettings {} impl std::fmt::Debug for HtmlMotionGraphicsSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -26789,7 +23992,7 @@ impl std::convert::From<&str> for MotionGraphicsInsertion { impl std::str::FromStr for MotionGraphicsInsertion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MotionGraphicsInsertion::from(s)) } } @@ -26807,47 +24010,26 @@ impl AsRef for MotionGraphicsInsertion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MotionGraphicsInsertion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Global Configuration #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GlobalConfiguration { /// Value to set the initial audio gain for the Live Event. - #[serde(rename = "initialAudioGain")] - #[serde(default)] pub initial_audio_gain: i32, /// Indicates the action to take when the current input completes (e.g. end-of-file). When switchAndLoopInputs is configured the encoder will restart at the beginning of the first input. When "none" is configured the encoder will transcode either black, a solid color, or a user specified slate images per the "Input Loss Behavior" configuration until the next input switch occurs (which is controlled through the Channel Schedule API). - #[serde(rename = "inputEndAction")] - #[serde(default)] pub input_end_action: std::option::Option, /// Settings for system actions when input is lost. - #[serde(rename = "inputLossBehavior")] - #[serde(default)] pub input_loss_behavior: std::option::Option, /// Indicates how MediaLive pipelines are synchronized. /// PIPELINE_LOCKING - MediaLive will attempt to synchronize the output of each pipeline to the other. /// EPOCH_LOCKING - MediaLive will attempt to synchronize the output of each pipeline to the Unix epoch. - #[serde(rename = "outputLockingMode")] - #[serde(default)] pub output_locking_mode: std::option::Option, /// Indicates whether the rate of frames emitted by the Live encoder should be paced by its system clock (which optionally may be locked to another source via NTP) or should be locked to the clock of the source that is providing the input stream. - #[serde(rename = "outputTimingSource")] - #[serde(default)] pub output_timing_source: std::option::Option, /// Adjusts video input buffer for streams with very low video framerates. This is commonly set to enabled for music channels with less than one video frame per second. - #[serde(rename = "supportLowFramerateInputs")] - #[serde(default)] pub support_low_framerate_inputs: std::option::Option, } @@ -27016,7 +24198,7 @@ impl std::convert::From<&str> for GlobalConfigurationLowFramerateInputs { impl std::str::FromStr for GlobalConfigurationLowFramerateInputs { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalConfigurationLowFramerateInputs::from(s)) } } @@ -27034,15 +24216,6 @@ impl AsRef for GlobalConfigurationLowFramerateInputs { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalConfigurationLowFramerateInputs { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Global Configuration Output Timing Source #[non_exhaustive] @@ -27073,7 +24246,7 @@ impl std::convert::From<&str> for GlobalConfigurationOutputTimingSource { impl std::str::FromStr for GlobalConfigurationOutputTimingSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalConfigurationOutputTimingSource::from(s)) } } @@ -27091,15 +24264,6 @@ impl AsRef for GlobalConfigurationOutputTimingSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalConfigurationOutputTimingSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Global Configuration Output Locking Mode #[non_exhaustive] @@ -27130,7 +24294,7 @@ impl std::convert::From<&str> for GlobalConfigurationOutputLockingMode { impl std::str::FromStr for GlobalConfigurationOutputLockingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalConfigurationOutputLockingMode::from(s)) } } @@ -27148,39 +24312,20 @@ impl AsRef for GlobalConfigurationOutputLockingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalConfigurationOutputLockingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Input Loss Behavior #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputLossBehavior { /// Documentation update needed - #[serde(rename = "blackFrameMsec")] - #[serde(default)] pub black_frame_msec: i32, /// When input loss image type is "color" this field specifies the color to use. Value: 6 hex characters representing the values of RGB. - #[serde(rename = "inputLossImageColor")] - #[serde(default)] pub input_loss_image_color: std::option::Option, /// When input loss image type is "slate" these fields specify the parameters for accessing the slate. - #[serde(rename = "inputLossImageSlate")] - #[serde(default)] pub input_loss_image_slate: std::option::Option, /// Indicates whether to substitute a solid color or a slate into the output after input loss exceeds blackFrameMsec. - #[serde(rename = "inputLossImageType")] - #[serde(default)] pub input_loss_image_type: std::option::Option, /// Documentation update needed - #[serde(rename = "repeatFrameMsec")] - #[serde(default)] pub repeat_frame_msec: i32, } impl std::fmt::Debug for InputLossBehavior { @@ -27309,7 +24454,7 @@ impl std::convert::From<&str> for InputLossImageType { impl std::str::FromStr for InputLossImageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputLossImageType::from(s)) } } @@ -27327,15 +24472,6 @@ impl AsRef for InputLossImageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputLossImageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Global Configuration Input End Action #[non_exhaustive] @@ -27366,7 +24502,7 @@ impl std::convert::From<&str> for GlobalConfigurationInputEndAction { impl std::str::FromStr for GlobalConfigurationInputEndAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(GlobalConfigurationInputEndAction::from(s)) } } @@ -27384,24 +24520,13 @@ impl AsRef for GlobalConfigurationInputEndAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for GlobalConfigurationInputEndAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Feature Activations #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FeatureActivations { /// Enables the Input Prepare feature. You can create Input Prepare actions in the schedule only if this feature is enabled. /// If you disable the feature on an existing schedule, make sure that you first delete all input prepare actions from the schedule. - #[serde(rename = "inputPrepareScheduleActions")] - #[serde(default)] pub input_prepare_schedule_actions: std::option::Option, } @@ -27485,7 +24610,7 @@ impl std::convert::From<&str> for FeatureActivationsInputPrepareScheduleActions impl std::str::FromStr for FeatureActivationsInputPrepareScheduleActions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FeatureActivationsInputPrepareScheduleActions::from(s)) } } @@ -27503,39 +24628,20 @@ impl AsRef for FeatureActivationsInputPrepareScheduleActions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FeatureActivationsInputPrepareScheduleActions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Caption Description #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionDescription { /// Specifies which input caption selector to use as a caption source when generating output captions. This field should match a captionSelector name. - #[serde(rename = "captionSelectorName")] - #[serde(default)] pub caption_selector_name: std::option::Option, /// Additional settings for captions destination that depend on the destination type. - #[serde(rename = "destinationSettings")] - #[serde(default)] pub destination_settings: std::option::Option, /// ISO 639-2 three-digit code: http://www.loc.gov/standards/iso639-2/ - #[serde(rename = "languageCode")] - #[serde(default)] pub language_code: std::option::Option, /// Human readable information to indicate captions available for players (eg. English, or Spanish). - #[serde(rename = "languageDescription")] - #[serde(default)] pub language_description: std::option::Option, /// Name of the caption description. Used to associate a caption description with an output. Names must be unique within an event. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for CaptionDescription { @@ -27644,65 +24750,39 @@ impl CaptionDescription { /// Caption Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptionDestinationSettings { /// Arib Destination Settings - #[serde(rename = "aribDestinationSettings")] - #[serde(default)] pub arib_destination_settings: std::option::Option, /// Burn In Destination Settings - #[serde(rename = "burnInDestinationSettings")] - #[serde(default)] pub burn_in_destination_settings: std::option::Option, /// Dvb Sub Destination Settings - #[serde(rename = "dvbSubDestinationSettings")] - #[serde(default)] pub dvb_sub_destination_settings: std::option::Option, /// Ebu Tt DDestination Settings - #[serde(rename = "ebuTtDDestinationSettings")] - #[serde(default)] pub ebu_tt_d_destination_settings: std::option::Option, /// Embedded Destination Settings - #[serde(rename = "embeddedDestinationSettings")] - #[serde(default)] pub embedded_destination_settings: std::option::Option, /// Embedded Plus Scte20 Destination Settings - #[serde(rename = "embeddedPlusScte20DestinationSettings")] - #[serde(default)] pub embedded_plus_scte20_destination_settings: std::option::Option, /// Rtmp Caption Info Destination Settings - #[serde(rename = "rtmpCaptionInfoDestinationSettings")] - #[serde(default)] pub rtmp_caption_info_destination_settings: std::option::Option, /// Scte20 Plus Embedded Destination Settings - #[serde(rename = "scte20PlusEmbeddedDestinationSettings")] - #[serde(default)] pub scte20_plus_embedded_destination_settings: std::option::Option, /// Scte27 Destination Settings - #[serde(rename = "scte27DestinationSettings")] - #[serde(default)] pub scte27_destination_settings: std::option::Option, /// Smpte Tt Destination Settings - #[serde(rename = "smpteTtDestinationSettings")] - #[serde(default)] pub smpte_tt_destination_settings: std::option::Option, /// Teletext Destination Settings - #[serde(rename = "teletextDestinationSettings")] - #[serde(default)] pub teletext_destination_settings: std::option::Option, /// Ttml Destination Settings - #[serde(rename = "ttmlDestinationSettings")] - #[serde(default)] pub ttml_destination_settings: std::option::Option, /// Webvtt Destination Settings - #[serde(rename = "webvttDestinationSettings")] - #[serde(default)] pub webvtt_destination_settings: std::option::Option, } impl std::fmt::Debug for CaptionDestinationSettings { @@ -28017,7 +25097,7 @@ impl CaptionDestinationSettings { /// Webvtt Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct WebvttDestinationSettings {} impl std::fmt::Debug for WebvttDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28047,11 +25127,9 @@ impl WebvttDestinationSettings { /// Ttml Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TtmlDestinationSettings { /// When set to passthrough, passes through style and position information from a TTML-like input source (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output. - #[serde(rename = "styleControl")] - #[serde(default)] pub style_control: std::option::Option, } impl std::fmt::Debug for TtmlDestinationSettings { @@ -28126,7 +25204,7 @@ impl std::convert::From<&str> for TtmlDestinationStyleControl { impl std::str::FromStr for TtmlDestinationStyleControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TtmlDestinationStyleControl::from(s)) } } @@ -28144,19 +25222,10 @@ impl AsRef for TtmlDestinationStyleControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TtmlDestinationStyleControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Teletext Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TeletextDestinationSettings {} impl std::fmt::Debug for TeletextDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28186,7 +25255,7 @@ impl TeletextDestinationSettings { /// Smpte Tt Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SmpteTtDestinationSettings {} impl std::fmt::Debug for SmpteTtDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28216,7 +25285,7 @@ impl SmpteTtDestinationSettings { /// Scte27 Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte27DestinationSettings {} impl std::fmt::Debug for Scte27DestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28246,7 +25315,7 @@ impl Scte27DestinationSettings { /// Scte20 Plus Embedded Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte20PlusEmbeddedDestinationSettings {} impl std::fmt::Debug for Scte20PlusEmbeddedDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28276,7 +25345,7 @@ impl Scte20PlusEmbeddedDestinationSettings { /// Rtmp Caption Info Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RtmpCaptionInfoDestinationSettings {} impl std::fmt::Debug for RtmpCaptionInfoDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28306,7 +25375,7 @@ impl RtmpCaptionInfoDestinationSettings { /// Embedded Plus Scte20 Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmbeddedPlusScte20DestinationSettings {} impl std::fmt::Debug for EmbeddedPlusScte20DestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28336,7 +25405,7 @@ impl EmbeddedPlusScte20DestinationSettings { /// Embedded Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmbeddedDestinationSettings {} impl std::fmt::Debug for EmbeddedDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -28366,30 +25435,22 @@ impl EmbeddedDestinationSettings { /// Ebu Tt DDestination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EbuTtDDestinationSettings { /// Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. Complete this field if you want to include the name of the copyright holder in the copyright metadata tag in the TTML - #[serde(rename = "copyrightHolder")] - #[serde(default)] pub copyright_holder: std::option::Option, /// Specifies how to handle the gap between the lines (in multi-line captions). /// - enabled: Fill with the captions background color (as specified in the input captions). /// - disabled: Leave the gap unfilled. - #[serde(rename = "fillLineGap")] - #[serde(default)] pub fill_line_gap: std::option::Option, /// Specifies the font family to include in the font data attached to the EBU-TT captions. Valid only if styleControl is set to include. If you leave this field empty, the font family is set to "monospaced". (If styleControl is set to exclude, the font family is always set to "monospaced".) /// You specify only the font family. All other style information (color, bold, position and so on) is copied from the input captions. The size is always set to 100% to allow the downstream player to choose the size. /// - Enter a list of font families, as a comma-separated list of font names, in order of preference. The name can be a font family (such as “Arial”), or a generic font family (such as “serif”), or “default” (to let the downstream player choose the font). /// - Leave blank to set the family to “monospace”. - #[serde(rename = "fontFamily")] - #[serde(default)] pub font_family: std::option::Option, /// Specifies the style information (font color, font position, and so on) to include in the font data that is attached to the EBU-TT captions. /// - include: Take the style information (font color, font position, and so on) from the source captions and include that information in the font data attached to the EBU-TT captions. This option is valid only if the source captions are Embedded or Teletext. /// - exclude: In the font data attached to the EBU-TT captions, set the font family to "monospaced". Do not include any other style information. - #[serde(rename = "styleControl")] - #[serde(default)] pub style_control: std::option::Option, } impl std::fmt::Debug for EbuTtDDestinationSettings { @@ -28513,7 +25574,7 @@ impl std::convert::From<&str> for EbuTtDDestinationStyleControl { impl std::str::FromStr for EbuTtDDestinationStyleControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EbuTtDDestinationStyleControl::from(s)) } } @@ -28531,15 +25592,6 @@ impl AsRef for EbuTtDDestinationStyleControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EbuTtDDestinationStyleControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ebu Tt DFill Line Gap Control #[non_exhaustive] @@ -28570,7 +25622,7 @@ impl std::convert::From<&str> for EbuTtDFillLineGapControl { impl std::str::FromStr for EbuTtDFillLineGapControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EbuTtDFillLineGapControl::from(s)) } } @@ -28588,88 +25640,45 @@ impl AsRef for EbuTtDFillLineGapControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EbuTtDFillLineGapControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DvbSubDestinationSettings { /// If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded subtitles. This option is not valid for source captions that are STL or 608/embedded. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "alignment")] - #[serde(default)] pub alignment: std::option::Option, /// Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "backgroundColor")] - #[serde(default)] pub background_color: std::option::Option, /// Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. - #[serde(rename = "backgroundOpacity")] - #[serde(default)] pub background_opacity: i32, /// External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "font")] - #[serde(default)] pub font: std::option::Option, /// Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontColor")] - #[serde(default)] pub font_color: std::option::Option, /// Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontOpacity")] - #[serde(default)] pub font_opacity: i32, /// Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontResolution")] - #[serde(default)] pub font_resolution: i32, /// When set to auto fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontSize")] - #[serde(default)] pub font_size: std::option::Option, /// Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "outlineColor")] - #[serde(default)] pub outline_color: std::option::Option, /// Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "outlineSize")] - #[serde(default)] pub outline_size: i32, /// Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowColor")] - #[serde(default)] pub shadow_color: std::option::Option, /// Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowOpacity")] - #[serde(default)] pub shadow_opacity: i32, /// Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowXOffset")] - #[serde(default)] pub shadow_x_offset: i32, /// Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowYOffset")] - #[serde(default)] pub shadow_y_offset: i32, /// Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs. - #[serde(rename = "teletextGridControl")] - #[serde(default)] pub teletext_grid_control: std::option::Option, /// Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit xPosition is provided, the horizontal caption position will be determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "xPosition")] - #[serde(default)] pub x_position: i32, /// Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit yPosition is provided, the caption will be positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "yPosition")] - #[serde(default)] pub y_position: i32, } impl std::fmt::Debug for DvbSubDestinationSettings { @@ -28959,7 +25968,7 @@ impl std::convert::From<&str> for DvbSubDestinationTeletextGridControl { impl std::str::FromStr for DvbSubDestinationTeletextGridControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationTeletextGridControl::from(s)) } } @@ -28977,15 +25986,6 @@ impl AsRef for DvbSubDestinationTeletextGridControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationTeletextGridControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Shadow Color #[non_exhaustive] @@ -29018,7 +26018,7 @@ impl std::convert::From<&str> for DvbSubDestinationShadowColor { impl std::str::FromStr for DvbSubDestinationShadowColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationShadowColor::from(s)) } } @@ -29037,15 +26037,6 @@ impl AsRef for DvbSubDestinationShadowColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationShadowColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Outline Color #[non_exhaustive] @@ -29084,7 +26075,7 @@ impl std::convert::From<&str> for DvbSubDestinationOutlineColor { impl std::str::FromStr for DvbSubDestinationOutlineColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationOutlineColor::from(s)) } } @@ -29106,15 +26097,6 @@ impl AsRef for DvbSubDestinationOutlineColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationOutlineColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Font Color #[non_exhaustive] @@ -29153,7 +26135,7 @@ impl std::convert::From<&str> for DvbSubDestinationFontColor { impl std::str::FromStr for DvbSubDestinationFontColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationFontColor::from(s)) } } @@ -29175,15 +26157,6 @@ impl AsRef for DvbSubDestinationFontColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationFontColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Background Color #[non_exhaustive] @@ -29216,7 +26189,7 @@ impl std::convert::From<&str> for DvbSubDestinationBackgroundColor { impl std::str::FromStr for DvbSubDestinationBackgroundColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationBackgroundColor::from(s)) } } @@ -29235,15 +26208,6 @@ impl AsRef for DvbSubDestinationBackgroundColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationBackgroundColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Dvb Sub Destination Alignment #[non_exhaustive] @@ -29276,7 +26240,7 @@ impl std::convert::From<&str> for DvbSubDestinationAlignment { impl std::str::FromStr for DvbSubDestinationAlignment { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DvbSubDestinationAlignment::from(s)) } } @@ -29295,87 +26259,44 @@ impl AsRef for DvbSubDestinationAlignment { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DvbSubDestinationAlignment { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BurnInDestinationSettings { /// If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded subtitles. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "alignment")] - #[serde(default)] pub alignment: std::option::Option, /// Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "backgroundColor")] - #[serde(default)] pub background_color: std::option::Option, /// Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. - #[serde(rename = "backgroundOpacity")] - #[serde(default)] pub background_opacity: i32, /// External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "font")] - #[serde(default)] pub font: std::option::Option, /// Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontColor")] - #[serde(default)] pub font_color: std::option::Option, /// Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontOpacity")] - #[serde(default)] pub font_opacity: i32, /// Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontResolution")] - #[serde(default)] pub font_resolution: i32, /// When set to 'auto' fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "fontSize")] - #[serde(default)] pub font_size: std::option::Option, /// Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "outlineColor")] - #[serde(default)] pub outline_color: std::option::Option, /// Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "outlineSize")] - #[serde(default)] pub outline_size: i32, /// Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowColor")] - #[serde(default)] pub shadow_color: std::option::Option, /// Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowOpacity")] - #[serde(default)] pub shadow_opacity: i32, /// Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowXOffset")] - #[serde(default)] pub shadow_x_offset: i32, /// Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "shadowYOffset")] - #[serde(default)] pub shadow_y_offset: i32, /// Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs. - #[serde(rename = "teletextGridControl")] - #[serde(default)] pub teletext_grid_control: std::option::Option, /// Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit xPosition is provided, the horizontal caption position will be determined by the alignment parameter. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "xPosition")] - #[serde(default)] pub x_position: i32, /// Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit yPosition is provided, the caption will be positioned towards the bottom of the output. All burn-in and DVB-Sub font settings must match. - #[serde(rename = "yPosition")] - #[serde(default)] pub y_position: i32, } impl std::fmt::Debug for BurnInDestinationSettings { @@ -29661,7 +26582,7 @@ impl std::convert::From<&str> for BurnInTeletextGridControl { impl std::str::FromStr for BurnInTeletextGridControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInTeletextGridControl::from(s)) } } @@ -29679,15 +26600,6 @@ impl AsRef for BurnInTeletextGridControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInTeletextGridControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Shadow Color #[non_exhaustive] @@ -29720,7 +26632,7 @@ impl std::convert::From<&str> for BurnInShadowColor { impl std::str::FromStr for BurnInShadowColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInShadowColor::from(s)) } } @@ -29739,15 +26651,6 @@ impl AsRef for BurnInShadowColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInShadowColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Outline Color #[non_exhaustive] @@ -29786,7 +26689,7 @@ impl std::convert::From<&str> for BurnInOutlineColor { impl std::str::FromStr for BurnInOutlineColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInOutlineColor::from(s)) } } @@ -29808,15 +26711,6 @@ impl AsRef for BurnInOutlineColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInOutlineColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Font Color #[non_exhaustive] @@ -29855,7 +26749,7 @@ impl std::convert::From<&str> for BurnInFontColor { impl std::str::FromStr for BurnInFontColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInFontColor::from(s)) } } @@ -29877,15 +26771,6 @@ impl AsRef for BurnInFontColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInFontColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Background Color #[non_exhaustive] @@ -29918,7 +26803,7 @@ impl std::convert::From<&str> for BurnInBackgroundColor { impl std::str::FromStr for BurnInBackgroundColor { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInBackgroundColor::from(s)) } } @@ -29937,15 +26822,6 @@ impl AsRef for BurnInBackgroundColor { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInBackgroundColor { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Burn In Alignment #[non_exhaustive] @@ -29978,7 +26854,7 @@ impl std::convert::From<&str> for BurnInAlignment { impl std::str::FromStr for BurnInAlignment { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BurnInAlignment::from(s)) } } @@ -29997,19 +26873,10 @@ impl AsRef for BurnInAlignment { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BurnInAlignment { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Arib Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AribDestinationSettings {} impl std::fmt::Debug for AribDestinationSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -30039,27 +26906,17 @@ impl AribDestinationSettings { /// Blackout Slate #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BlackoutSlate { /// Blackout slate image to be used. Leave empty for solid black. Only bmp and png images are supported. - #[serde(rename = "blackoutSlateImage")] - #[serde(default)] pub blackout_slate_image: std::option::Option, /// Setting to enabled causes the encoder to blackout the video, audio, and captions, and raise the "Network Blackout Image" slate when an SCTE104/35 Network End Segmentation Descriptor is encountered. The blackout will be lifted when the Network Start Segmentation Descriptor is encountered. The Network End and Network Start descriptors must contain a network ID that matches the value entered in "Network ID". - #[serde(rename = "networkEndBlackout")] - #[serde(default)] pub network_end_blackout: std::option::Option, /// Path to local file to use as Network End Blackout image. Image will be scaled to fill the entire output raster. - #[serde(rename = "networkEndBlackoutImage")] - #[serde(default)] pub network_end_blackout_image: std::option::Option, /// Provides Network ID that matches EIDR ID format (e.g., "10.XXXX/XXXX-XXXX-XXXX-XXXX-XXXX-C"). - #[serde(rename = "networkId")] - #[serde(default)] pub network_id: std::option::Option, /// When set to enabled, causes video, audio and captions to be blanked when indicated by program metadata. - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, } impl std::fmt::Debug for BlackoutSlate { @@ -30198,7 +27055,7 @@ impl std::convert::From<&str> for BlackoutSlateState { impl std::str::FromStr for BlackoutSlateState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BlackoutSlateState::from(s)) } } @@ -30216,15 +27073,6 @@ impl AsRef for BlackoutSlateState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BlackoutSlateState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Blackout Slate Network End Blackout #[non_exhaustive] @@ -30255,7 +27103,7 @@ impl std::convert::From<&str> for BlackoutSlateNetworkEndBlackout { impl std::str::FromStr for BlackoutSlateNetworkEndBlackout { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BlackoutSlateNetworkEndBlackout::from(s)) } } @@ -30273,23 +27121,12 @@ impl AsRef for BlackoutSlateNetworkEndBlackout { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BlackoutSlateNetworkEndBlackout { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Avail Configuration #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AvailConfiguration { /// Ad avail settings. - #[serde(rename = "availSettings")] - #[serde(default)] pub avail_settings: std::option::Option, } impl std::fmt::Debug for AvailConfiguration { @@ -30337,15 +27174,11 @@ impl AvailConfiguration { /// Avail Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AvailSettings { /// Scte35 Splice Insert - #[serde(rename = "scte35SpliceInsert")] - #[serde(default)] pub scte35_splice_insert: std::option::Option, /// Scte35 Time Signal Apos - #[serde(rename = "scte35TimeSignalApos")] - #[serde(default)] pub scte35_time_signal_apos: std::option::Option, } impl std::fmt::Debug for AvailSettings { @@ -30411,20 +27244,14 @@ impl AvailSettings { /// Scte35 Time Signal Apos #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35TimeSignalApos { /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time. This only applies to embedded SCTE 104/35 messages and does not apply to OOB messages. - #[serde(rename = "adAvailOffset")] - #[serde(default)] pub ad_avail_offset: i32, /// When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 will no longer trigger blackouts or Ad Avail slates - #[serde(rename = "noRegionalBlackoutFlag")] - #[serde(default)] pub no_regional_blackout_flag: std::option::Option, /// When set to ignore, Segment Descriptors with webDeliveryAllowedFlag set to 0 will no longer trigger blackouts or Ad Avail slates - #[serde(rename = "webDeliveryAllowedFlag")] - #[serde(default)] pub web_delivery_allowed_flag: std::option::Option, } @@ -30535,7 +27362,7 @@ impl std::convert::From<&str> for Scte35AposWebDeliveryAllowedBehavior { impl std::str::FromStr for Scte35AposWebDeliveryAllowedBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35AposWebDeliveryAllowedBehavior::from(s)) } } @@ -30553,15 +27380,6 @@ impl AsRef for Scte35AposWebDeliveryAllowedBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35AposWebDeliveryAllowedBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Scte35 Apos No Regional Blackout Behavior #[non_exhaustive] @@ -30592,7 +27410,7 @@ impl std::convert::From<&str> for Scte35AposNoRegionalBlackoutBehavior { impl std::str::FromStr for Scte35AposNoRegionalBlackoutBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35AposNoRegionalBlackoutBehavior::from(s)) } } @@ -30610,32 +27428,17 @@ impl AsRef for Scte35AposNoRegionalBlackoutBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35AposNoRegionalBlackoutBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Scte35 Splice Insert #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35SpliceInsert { /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time. This only applies to embedded SCTE 104/35 messages and does not apply to OOB messages. - #[serde(rename = "adAvailOffset")] - #[serde(default)] pub ad_avail_offset: i32, /// When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 will no longer trigger blackouts or Ad Avail slates - #[serde(rename = "noRegionalBlackoutFlag")] - #[serde(default)] pub no_regional_blackout_flag: std::option::Option, /// When set to ignore, Segment Descriptors with webDeliveryAllowedFlag set to 0 will no longer trigger blackouts or Ad Avail slates - #[serde(rename = "webDeliveryAllowedFlag")] - #[serde(default)] pub web_delivery_allowed_flag: std::option::Option, } @@ -30746,7 +27549,7 @@ impl std::convert::From<&str> for Scte35SpliceInsertWebDeliveryAllowedBehavior { impl std::str::FromStr for Scte35SpliceInsertWebDeliveryAllowedBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35SpliceInsertWebDeliveryAllowedBehavior::from(s)) } } @@ -30764,15 +27567,6 @@ impl AsRef for Scte35SpliceInsertWebDeliveryAllowedBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35SpliceInsertWebDeliveryAllowedBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Scte35 Splice Insert No Regional Blackout Behavior #[non_exhaustive] @@ -30803,7 +27597,7 @@ impl std::convert::From<&str> for Scte35SpliceInsertNoRegionalBlackoutBehavior { impl std::str::FromStr for Scte35SpliceInsertNoRegionalBlackoutBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35SpliceInsertNoRegionalBlackoutBehavior::from(s)) } } @@ -30821,27 +27615,14 @@ impl AsRef for Scte35SpliceInsertNoRegionalBlackoutBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35SpliceInsertNoRegionalBlackoutBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Avail Blanking #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AvailBlanking { /// Blanking image to be used. Leave empty for solid black. Only bmp and png images are supported. - #[serde(rename = "availBlankingImage")] - #[serde(default)] pub avail_blanking_image: std::option::Option, /// When set to enabled, causes video, audio and captions to be blanked when insertion metadata is added. - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, } impl std::fmt::Debug for AvailBlanking { @@ -30931,7 +27712,7 @@ impl std::convert::From<&str> for AvailBlankingState { impl std::str::FromStr for AvailBlankingState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AvailBlankingState::from(s)) } } @@ -30949,63 +27730,34 @@ impl AsRef for AvailBlankingState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AvailBlankingState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Description #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioDescription { /// Advanced audio normalization settings. - #[serde(rename = "audioNormalizationSettings")] - #[serde(default)] pub audio_normalization_settings: std::option::Option, /// The name of the AudioSelector used as the source for this AudioDescription. - #[serde(rename = "audioSelectorName")] - #[serde(default)] pub audio_selector_name: std::option::Option, /// Applies only if audioTypeControl is useConfigured. The values for audioType are defined in ISO-IEC 13818-1. - #[serde(rename = "audioType")] - #[serde(default)] pub audio_type: std::option::Option, /// Determines how audio type is determined. /// followInput: If the input contains an ISO 639 audioType, then that value is passed through to the output. If the input contains no ISO 639 audioType, the value in Audio Type is included in the output. /// useConfigured: The value in Audio Type is included in the output. /// Note that this field and audioType are both ignored if inputType is broadcasterMixedAd. - #[serde(rename = "audioTypeControl")] - #[serde(default)] pub audio_type_control: std::option::Option, /// Audio codec settings. - #[serde(rename = "codecSettings")] - #[serde(default)] pub codec_settings: std::option::Option, /// RFC 5646 language code representing the language of the audio output track. Only used if languageControlMode is useConfigured, or there is no ISO 639 language code specified in the input. - #[serde(rename = "languageCode")] - #[serde(default)] pub language_code: std::option::Option, /// Choosing followInput will cause the ISO 639 language code of the output to follow the ISO 639 language code of the input. The languageCode will be used when useConfigured is set, or when followInput is selected but there is no ISO 639 language code specified by the input. - #[serde(rename = "languageCodeControl")] - #[serde(default)] pub language_code_control: std::option::Option, /// The name of this AudioDescription. Outputs will use this name to uniquely identify this AudioDescription. Description names should be unique within this Live Event. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Settings that control how input audio channels are remixed into the output audio channels. - #[serde(rename = "remixSettings")] - #[serde(default)] pub remix_settings: std::option::Option, /// Used for MS Smooth and Apple HLS outputs. Indicates the name displayed by the player (eg. English, or Director Commentary). - #[serde(rename = "streamName")] - #[serde(default)] pub stream_name: std::option::Option, } impl std::fmt::Debug for AudioDescription { @@ -31200,20 +27952,14 @@ impl AudioDescription { /// Remix Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RemixSettings { /// Mapping of input channels to output channels, with appropriate gain adjustments. - #[serde(rename = "channelMappings")] - #[serde(default)] pub channel_mappings: std::option::Option>, /// Number of input channels to be used. - #[serde(rename = "channelsIn")] - #[serde(default)] pub channels_in: i32, /// Number of output channels to be produced. /// Valid values: 1, 2, 4, 6, 8 - #[serde(rename = "channelsOut")] - #[serde(default)] pub channels_out: i32, } impl std::fmt::Debug for RemixSettings { @@ -31291,15 +28037,11 @@ impl RemixSettings { /// Audio Channel Mapping #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioChannelMapping { /// Indices and gain values for each input channel that should be remixed into this output channel. - #[serde(rename = "inputChannelLevels")] - #[serde(default)] pub input_channel_levels: std::option::Option>, /// The index of the output channel being produced. - #[serde(rename = "outputChannel")] - #[serde(default)] pub output_channel: i32, } impl std::fmt::Debug for AudioChannelMapping { @@ -31364,15 +28106,11 @@ impl AudioChannelMapping { /// Input Channel Level #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputChannelLevel { /// Remixing value. Units are in dB and acceptable values are within the range from -60 (mute) and 6 dB. - #[serde(rename = "gain")] - #[serde(default)] pub gain: i32, /// The index of the input channel used as a source. - #[serde(rename = "inputChannel")] - #[serde(default)] pub input_channel: i32, } impl std::fmt::Debug for InputChannelLevel { @@ -31456,7 +28194,7 @@ impl std::convert::From<&str> for AudioDescriptionLanguageCodeControl { impl std::str::FromStr for AudioDescriptionLanguageCodeControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioDescriptionLanguageCodeControl::from(s)) } } @@ -31474,43 +28212,22 @@ impl AsRef for AudioDescriptionLanguageCodeControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioDescriptionLanguageCodeControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Codec Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioCodecSettings { /// Aac Settings - #[serde(rename = "aacSettings")] - #[serde(default)] pub aac_settings: std::option::Option, /// Ac3 Settings - #[serde(rename = "ac3Settings")] - #[serde(default)] pub ac3_settings: std::option::Option, /// Eac3 Settings - #[serde(rename = "eac3Settings")] - #[serde(default)] pub eac3_settings: std::option::Option, /// Mp2 Settings - #[serde(rename = "mp2Settings")] - #[serde(default)] pub mp2_settings: std::option::Option, /// Pass Through Settings - #[serde(rename = "passThroughSettings")] - #[serde(default)] pub pass_through_settings: std::option::Option, /// Wav Settings - #[serde(rename = "wavSettings")] - #[serde(default)] pub wav_settings: std::option::Option, } impl std::fmt::Debug for AudioCodecSettings { @@ -31633,19 +28350,13 @@ impl AudioCodecSettings { /// Wav Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct WavSettings { /// Bits per sample. - #[serde(rename = "bitDepth")] - #[serde(default)] pub bit_depth: f64, /// The audio coding mode for the WAV audio. The mode determines the number of channels in the audio. - #[serde(rename = "codingMode")] - #[serde(default)] pub coding_mode: std::option::Option, /// Sample rate in Hz. - #[serde(rename = "sampleRate")] - #[serde(default)] pub sample_rate: f64, } impl std::fmt::Debug for WavSettings { @@ -31748,7 +28459,7 @@ impl std::convert::From<&str> for WavCodingMode { impl std::str::FromStr for WavCodingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(WavCodingMode::from(s)) } } @@ -31768,19 +28479,10 @@ impl AsRef for WavCodingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for WavCodingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Pass Through Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PassThroughSettings {} impl std::fmt::Debug for PassThroughSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -31810,19 +28512,13 @@ impl PassThroughSettings { /// Mp2 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Mp2Settings { /// Average bitrate in bits/second. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: f64, /// The MPEG2 Audio coding mode. Valid values are codingMode10 (for mono) or codingMode20 (for stereo). - #[serde(rename = "codingMode")] - #[serde(default)] pub coding_mode: std::option::Option, /// Sample rate in Hz. - #[serde(rename = "sampleRate")] - #[serde(default)] pub sample_rate: f64, } impl std::fmt::Debug for Mp2Settings { @@ -31921,7 +28617,7 @@ impl std::convert::From<&str> for Mp2CodingMode { impl std::str::FromStr for Mp2CodingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Mp2CodingMode::from(s)) } } @@ -31939,99 +28635,50 @@ impl AsRef for Mp2CodingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Mp2CodingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Eac3Settings { /// When set to attenuate3Db, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode. - #[serde(rename = "attenuationControl")] - #[serde(default)] pub attenuation_control: std::option::Option, /// Average bitrate in bits/second. Valid bitrates depend on the coding mode. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: f64, /// Specifies the bitstream mode (bsmod) for the emitted E-AC-3 stream. See ATSC A/52-2012 (Annex E) for background on these values. - #[serde(rename = "bitstreamMode")] - #[serde(default)] pub bitstream_mode: std::option::Option, /// Dolby Digital Plus coding mode. Determines number of channels. - #[serde(rename = "codingMode")] - #[serde(default)] pub coding_mode: std::option::Option, /// When set to enabled, activates a DC highpass filter for all input channels. - #[serde(rename = "dcFilter")] - #[serde(default)] pub dc_filter: std::option::Option, /// Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through. - #[serde(rename = "dialnorm")] - #[serde(default)] pub dialnorm: i32, /// Sets the Dolby dynamic range compression profile. - #[serde(rename = "drcLine")] - #[serde(default)] pub drc_line: std::option::Option, /// Sets the profile for heavy Dolby dynamic range compression, ensures that the instantaneous signal peaks do not exceed specified levels. - #[serde(rename = "drcRf")] - #[serde(default)] pub drc_rf: std::option::Option, /// When encoding 3/2 audio, setting to lfe enables the LFE channel - #[serde(rename = "lfeControl")] - #[serde(default)] pub lfe_control: std::option::Option, /// When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with codingMode32 coding mode. - #[serde(rename = "lfeFilter")] - #[serde(default)] pub lfe_filter: std::option::Option, /// Left only/Right only center mix level. Only used for 3/2 coding mode. - #[serde(rename = "loRoCenterMixLevel")] - #[serde(default)] pub lo_ro_center_mix_level: f64, /// Left only/Right only surround mix level. Only used for 3/2 coding mode. - #[serde(rename = "loRoSurroundMixLevel")] - #[serde(default)] pub lo_ro_surround_mix_level: f64, /// Left total/Right total center mix level. Only used for 3/2 coding mode. - #[serde(rename = "ltRtCenterMixLevel")] - #[serde(default)] pub lt_rt_center_mix_level: f64, /// Left total/Right total surround mix level. Only used for 3/2 coding mode. - #[serde(rename = "ltRtSurroundMixLevel")] - #[serde(default)] pub lt_rt_surround_mix_level: f64, /// When set to followInput, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used. - #[serde(rename = "metadataControl")] - #[serde(default)] pub metadata_control: std::option::Option, /// When set to whenPossible, input DD+ audio will be passed through if it is present on the input. This detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding. - #[serde(rename = "passthroughControl")] - #[serde(default)] pub passthrough_control: std::option::Option, /// When set to shift90Degrees, applies a 90-degree phase shift to the surround channels. Only used for 3/2 coding mode. - #[serde(rename = "phaseControl")] - #[serde(default)] pub phase_control: std::option::Option, /// Stereo downmix preference. Only used for 3/2 coding mode. - #[serde(rename = "stereoDownmix")] - #[serde(default)] pub stereo_downmix: std::option::Option, /// When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels. - #[serde(rename = "surroundExMode")] - #[serde(default)] pub surround_ex_mode: std::option::Option, /// When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels. - #[serde(rename = "surroundMode")] - #[serde(default)] pub surround_mode: std::option::Option, } impl std::fmt::Debug for Eac3Settings { @@ -32372,7 +29019,7 @@ impl std::convert::From<&str> for Eac3SurroundMode { impl std::str::FromStr for Eac3SurroundMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3SurroundMode::from(s)) } } @@ -32391,15 +29038,6 @@ impl AsRef for Eac3SurroundMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3SurroundMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Surround Ex Mode #[non_exhaustive] @@ -32432,7 +29070,7 @@ impl std::convert::From<&str> for Eac3SurroundExMode { impl std::str::FromStr for Eac3SurroundExMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3SurroundExMode::from(s)) } } @@ -32451,15 +29089,6 @@ impl AsRef for Eac3SurroundExMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3SurroundExMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Stereo Downmix #[non_exhaustive] @@ -32494,7 +29123,7 @@ impl std::convert::From<&str> for Eac3StereoDownmix { impl std::str::FromStr for Eac3StereoDownmix { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3StereoDownmix::from(s)) } } @@ -32514,15 +29143,6 @@ impl AsRef for Eac3StereoDownmix { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3StereoDownmix { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Phase Control #[non_exhaustive] @@ -32553,7 +29173,7 @@ impl std::convert::From<&str> for Eac3PhaseControl { impl std::str::FromStr for Eac3PhaseControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3PhaseControl::from(s)) } } @@ -32571,15 +29191,6 @@ impl AsRef for Eac3PhaseControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3PhaseControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Passthrough Control #[non_exhaustive] @@ -32610,7 +29221,7 @@ impl std::convert::From<&str> for Eac3PassthroughControl { impl std::str::FromStr for Eac3PassthroughControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3PassthroughControl::from(s)) } } @@ -32628,15 +29239,6 @@ impl AsRef for Eac3PassthroughControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3PassthroughControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Metadata Control #[non_exhaustive] @@ -32667,7 +29269,7 @@ impl std::convert::From<&str> for Eac3MetadataControl { impl std::str::FromStr for Eac3MetadataControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3MetadataControl::from(s)) } } @@ -32685,15 +29287,6 @@ impl AsRef for Eac3MetadataControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3MetadataControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Lfe Filter #[non_exhaustive] @@ -32724,7 +29317,7 @@ impl std::convert::From<&str> for Eac3LfeFilter { impl std::str::FromStr for Eac3LfeFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3LfeFilter::from(s)) } } @@ -32742,15 +29335,6 @@ impl AsRef for Eac3LfeFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3LfeFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Lfe Control #[non_exhaustive] @@ -32781,7 +29365,7 @@ impl std::convert::From<&str> for Eac3LfeControl { impl std::str::FromStr for Eac3LfeControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3LfeControl::from(s)) } } @@ -32799,15 +29383,6 @@ impl AsRef for Eac3LfeControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3LfeControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Drc Rf #[non_exhaustive] @@ -32846,7 +29421,7 @@ impl std::convert::From<&str> for Eac3DrcRf { impl std::str::FromStr for Eac3DrcRf { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3DrcRf::from(s)) } } @@ -32868,15 +29443,6 @@ impl AsRef for Eac3DrcRf { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3DrcRf { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Drc Line #[non_exhaustive] @@ -32915,7 +29481,7 @@ impl std::convert::From<&str> for Eac3DrcLine { impl std::str::FromStr for Eac3DrcLine { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3DrcLine::from(s)) } } @@ -32937,15 +29503,6 @@ impl AsRef for Eac3DrcLine { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3DrcLine { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Dc Filter #[non_exhaustive] @@ -32976,7 +29533,7 @@ impl std::convert::From<&str> for Eac3DcFilter { impl std::str::FromStr for Eac3DcFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3DcFilter::from(s)) } } @@ -32994,15 +29551,6 @@ impl AsRef for Eac3DcFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3DcFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Coding Mode #[non_exhaustive] @@ -33035,7 +29583,7 @@ impl std::convert::From<&str> for Eac3CodingMode { impl std::str::FromStr for Eac3CodingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3CodingMode::from(s)) } } @@ -33054,15 +29602,6 @@ impl AsRef for Eac3CodingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3CodingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Bitstream Mode #[non_exhaustive] @@ -33099,7 +29638,7 @@ impl std::convert::From<&str> for Eac3BitstreamMode { impl std::str::FromStr for Eac3BitstreamMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3BitstreamMode::from(s)) } } @@ -33120,15 +29659,6 @@ impl AsRef for Eac3BitstreamMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3BitstreamMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Eac3 Attenuation Control #[non_exhaustive] @@ -33159,7 +29689,7 @@ impl std::convert::From<&str> for Eac3AttenuationControl { impl std::str::FromStr for Eac3AttenuationControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Eac3AttenuationControl::from(s)) } } @@ -33177,47 +29707,24 @@ impl AsRef for Eac3AttenuationControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Eac3AttenuationControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ac3 Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Ac3Settings { /// Average bitrate in bits/second. Valid bitrates depend on the coding mode. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: f64, /// Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC A/52-2012 for background on these values. - #[serde(rename = "bitstreamMode")] - #[serde(default)] pub bitstream_mode: std::option::Option, /// Dolby Digital coding mode. Determines number of channels. - #[serde(rename = "codingMode")] - #[serde(default)] pub coding_mode: std::option::Option, /// Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, dialnorm will be passed through. - #[serde(rename = "dialnorm")] - #[serde(default)] pub dialnorm: i32, /// If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification. - #[serde(rename = "drcProfile")] - #[serde(default)] pub drc_profile: std::option::Option, /// When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid in codingMode32Lfe mode. - #[serde(rename = "lfeFilter")] - #[serde(default)] pub lfe_filter: std::option::Option, /// When set to "followInput", encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used. - #[serde(rename = "metadataControl")] - #[serde(default)] pub metadata_control: std::option::Option, } impl std::fmt::Debug for Ac3Settings { @@ -33376,7 +29883,7 @@ impl std::convert::From<&str> for Ac3MetadataControl { impl std::str::FromStr for Ac3MetadataControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ac3MetadataControl::from(s)) } } @@ -33394,15 +29901,6 @@ impl AsRef for Ac3MetadataControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ac3MetadataControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ac3 Lfe Filter #[non_exhaustive] @@ -33433,7 +29931,7 @@ impl std::convert::From<&str> for Ac3LfeFilter { impl std::str::FromStr for Ac3LfeFilter { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ac3LfeFilter::from(s)) } } @@ -33451,15 +29949,6 @@ impl AsRef for Ac3LfeFilter { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ac3LfeFilter { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ac3 Drc Profile #[non_exhaustive] @@ -33490,7 +29979,7 @@ impl std::convert::From<&str> for Ac3DrcProfile { impl std::str::FromStr for Ac3DrcProfile { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ac3DrcProfile::from(s)) } } @@ -33508,15 +29997,6 @@ impl AsRef for Ac3DrcProfile { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ac3DrcProfile { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ac3 Coding Mode #[non_exhaustive] @@ -33551,7 +30031,7 @@ impl std::convert::From<&str> for Ac3CodingMode { impl std::str::FromStr for Ac3CodingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ac3CodingMode::from(s)) } } @@ -33571,15 +30051,6 @@ impl AsRef for Ac3CodingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ac3CodingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Ac3 Bitstream Mode #[non_exhaustive] @@ -33622,7 +30093,7 @@ impl std::convert::From<&str> for Ac3BitstreamMode { impl std::str::FromStr for Ac3BitstreamMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Ac3BitstreamMode::from(s)) } } @@ -33646,56 +30117,29 @@ impl AsRef for Ac3BitstreamMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Ac3BitstreamMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AacSettings { /// Average bitrate in bits/second. Valid values depend on rate control mode and profile. - #[serde(rename = "bitrate")] - #[serde(default)] pub bitrate: f64, /// Mono, Stereo, or 5.1 channel layout. Valid values depend on rate control mode and profile. The adReceiverMix setting receives a stereo description plus control track and emits a mono AAC encode of the description track, with control data emitted in the PES header as per ETSI TS 101 154 Annex E. - #[serde(rename = "codingMode")] - #[serde(default)] pub coding_mode: std::option::Option, /// Set to "broadcasterMixedAd" when input contains pre-mixed main audio + AD (narration) as a stereo pair. The Audio Type field (audioType) will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. The values in audioTypeControl and audioType (in AudioDescription) are ignored when set to broadcasterMixedAd. /// Leave set to "normal" when input does not contain pre-mixed audio + AD. - #[serde(rename = "inputType")] - #[serde(default)] pub input_type: std::option::Option, /// AAC Profile. - #[serde(rename = "profile")] - #[serde(default)] pub profile: std::option::Option, /// Rate Control Mode. - #[serde(rename = "rateControlMode")] - #[serde(default)] pub rate_control_mode: std::option::Option, /// Sets LATM / LOAS AAC output for raw containers. - #[serde(rename = "rawFormat")] - #[serde(default)] pub raw_format: std::option::Option, /// Sample rate in Hz. Valid values depend on rate control mode and profile. - #[serde(rename = "sampleRate")] - #[serde(default)] pub sample_rate: f64, /// Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers. - #[serde(rename = "spec")] - #[serde(default)] pub spec: std::option::Option, /// VBR Quality Level - Only used if rateControlMode is VBR. - #[serde(rename = "vbrQuality")] - #[serde(default)] pub vbr_quality: std::option::Option, } impl std::fmt::Debug for AacSettings { @@ -33883,7 +30327,7 @@ impl std::convert::From<&str> for AacVbrQuality { impl std::str::FromStr for AacVbrQuality { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacVbrQuality::from(s)) } } @@ -33903,15 +30347,6 @@ impl AsRef for AacVbrQuality { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacVbrQuality { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Spec #[non_exhaustive] @@ -33942,7 +30377,7 @@ impl std::convert::From<&str> for AacSpec { impl std::str::FromStr for AacSpec { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacSpec::from(s)) } } @@ -33960,15 +30395,6 @@ impl AsRef for AacSpec { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacSpec { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Raw Format #[non_exhaustive] @@ -33999,7 +30425,7 @@ impl std::convert::From<&str> for AacRawFormat { impl std::str::FromStr for AacRawFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacRawFormat::from(s)) } } @@ -34017,15 +30443,6 @@ impl AsRef for AacRawFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacRawFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Rate Control Mode #[non_exhaustive] @@ -34056,7 +30473,7 @@ impl std::convert::From<&str> for AacRateControlMode { impl std::str::FromStr for AacRateControlMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacRateControlMode::from(s)) } } @@ -34074,15 +30491,6 @@ impl AsRef for AacRateControlMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacRateControlMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Profile #[non_exhaustive] @@ -34115,7 +30523,7 @@ impl std::convert::From<&str> for AacProfile { impl std::str::FromStr for AacProfile { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacProfile::from(s)) } } @@ -34134,15 +30542,6 @@ impl AsRef for AacProfile { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacProfile { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Input Type #[non_exhaustive] @@ -34173,7 +30572,7 @@ impl std::convert::From<&str> for AacInputType { impl std::str::FromStr for AacInputType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacInputType::from(s)) } } @@ -34191,15 +30590,6 @@ impl AsRef for AacInputType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacInputType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Aac Coding Mode #[non_exhaustive] @@ -34236,7 +30626,7 @@ impl std::convert::From<&str> for AacCodingMode { impl std::str::FromStr for AacCodingMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AacCodingMode::from(s)) } } @@ -34257,15 +30647,6 @@ impl AsRef for AacCodingMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AacCodingMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Description Audio Type Control #[non_exhaustive] @@ -34296,7 +30677,7 @@ impl std::convert::From<&str> for AudioDescriptionAudioTypeControl { impl std::str::FromStr for AudioDescriptionAudioTypeControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioDescriptionAudioTypeControl::from(s)) } } @@ -34314,15 +30695,6 @@ impl AsRef for AudioDescriptionAudioTypeControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioDescriptionAudioTypeControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Type #[non_exhaustive] @@ -34357,7 +30729,7 @@ impl std::convert::From<&str> for AudioType { impl std::str::FromStr for AudioType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioType::from(s)) } } @@ -34377,31 +30749,16 @@ impl AsRef for AudioType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Normalization Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AudioNormalizationSettings { /// Audio normalization algorithm to use. itu17701 conforms to the CALM Act specification, itu17702 conforms to the EBU R-128 specification. - #[serde(rename = "algorithm")] - #[serde(default)] pub algorithm: std::option::Option, /// When set to correctAudio the output audio is corrected using the chosen algorithm. If set to measureOnly, the audio will be measured but not adjusted. - #[serde(rename = "algorithmControl")] - #[serde(default)] pub algorithm_control: std::option::Option, /// Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2) recommends a target of -23 LKFS. - #[serde(rename = "targetLkfs")] - #[serde(default)] pub target_lkfs: f64, } impl std::fmt::Debug for AudioNormalizationSettings { @@ -34505,7 +30862,7 @@ impl std::convert::From<&str> for AudioNormalizationAlgorithmControl { impl std::str::FromStr for AudioNormalizationAlgorithmControl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioNormalizationAlgorithmControl::from(s)) } } @@ -34522,15 +30879,6 @@ impl AsRef for AudioNormalizationAlgorithmControl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioNormalizationAlgorithmControl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Audio Normalization Algorithm #[non_exhaustive] @@ -34561,7 +30909,7 @@ impl std::convert::From<&str> for AudioNormalizationAlgorithm { impl std::str::FromStr for AudioNormalizationAlgorithm { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AudioNormalizationAlgorithm::from(s)) } } @@ -34579,23 +30927,12 @@ impl AsRef for AudioNormalizationAlgorithm { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AudioNormalizationAlgorithm { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Placeholder documentation for ChannelEgressEndpoint #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ChannelEgressEndpoint { /// Public IP of where a channel's output comes from - #[serde(rename = "sourceIp")] - #[serde(default)] pub source_ip: std::option::Option, } impl std::fmt::Debug for ChannelEgressEndpoint { @@ -34640,25 +30977,17 @@ impl ChannelEgressEndpoint { /// Placeholder documentation for OutputDestination #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputDestination { /// User-specified id. This is used in an output group or an output. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Destination settings for a MediaPackage output; one destination for both encoders. - #[serde(rename = "mediaPackageSettings")] - #[serde(default)] pub media_package_settings: std::option::Option>, /// Destination settings for a Multiplex output; one destination for both encoders. - #[serde(rename = "multiplexSettings")] - #[serde(default)] pub multiplex_settings: std::option::Option, /// Destination settings for a standard output; one destination for each redundant encoder. - #[serde(rename = "settings")] - #[serde(default)] pub settings: std::option::Option>, } impl std::fmt::Debug for OutputDestination { @@ -34764,23 +31093,15 @@ impl OutputDestination { /// Placeholder documentation for OutputDestinationSettings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputDestinationSettings { /// key used to extract the password from EC2 Parameter store - #[serde(rename = "passwordParam")] - #[serde(default)] pub password_param: std::option::Option, /// Stream name for RTMP destinations (URLs of type rtmp://) - #[serde(rename = "streamName")] - #[serde(default)] pub stream_name: std::option::Option, /// A URL specifying a destination - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// username for destination - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for OutputDestinationSettings { @@ -34864,16 +31185,12 @@ impl OutputDestinationSettings { /// Multiplex Program Input Destination Settings for outputting a Channel to a Multiplex #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramChannelDestinationSettings { /// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. /// The Multiplex must be in the same region as the Channel. - #[serde(rename = "multiplexId")] - #[serde(default)] pub multiplex_id: std::option::Option, /// The program name of the Multiplex program that the encoder is providing output to. - #[serde(rename = "programName")] - #[serde(default)] pub program_name: std::option::Option, } impl std::fmt::Debug for MultiplexProgramChannelDestinationSettings { @@ -34931,11 +31248,9 @@ impl MultiplexProgramChannelDestinationSettings { /// MediaPackage Output Destination Settings #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MediaPackageOutputDestinationSettings { /// ID of the channel in MediaPackage that is the destination for this output group. You do not need to specify the individual inputs in MediaPackage; MediaLive will handle the connection of the two MediaLive pipelines to the two MediaPackage inputs. The MediaPackage channel and MediaLive channel must be in the same region. - #[serde(rename = "channelId")] - #[serde(default)] pub channel_id: std::option::Option, } impl std::fmt::Debug for MediaPackageOutputDestinationSettings { @@ -34980,11 +31295,9 @@ impl MediaPackageOutputDestinationSettings { /// Placeholder documentation for CdiInputSpecification #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CdiInputSpecification { /// Maximum CDI input resolution - #[serde(rename = "resolution")] - #[serde(default)] pub resolution: std::option::Option, } impl std::fmt::Debug for CdiInputSpecification { @@ -35063,7 +31376,7 @@ impl std::convert::From<&str> for CdiInputResolution { impl std::str::FromStr for CdiInputResolution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CdiInputResolution::from(s)) } } @@ -35083,63 +31396,32 @@ impl AsRef for CdiInputResolution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CdiInputResolution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Reserved resources available for purchase #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Offering { /// Unique offering ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:offering:87654321' - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' - #[serde(rename = "currencyCode")] - #[serde(default)] pub currency_code: std::option::Option, /// Lease duration, e.g. '12' - #[serde(rename = "duration")] - #[serde(default)] pub duration: i32, /// Units for duration, e.g. 'MONTHS' - #[serde(rename = "durationUnits")] - #[serde(default)] pub duration_units: std::option::Option, /// One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - #[serde(rename = "fixedPrice")] - #[serde(default)] pub fixed_price: f64, /// Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)' - #[serde(rename = "offeringDescription")] - #[serde(default)] pub offering_description: std::option::Option, /// Unique offering ID, e.g. '87654321' - #[serde(rename = "offeringId")] - #[serde(default)] pub offering_id: std::option::Option, /// Offering type, e.g. 'NO_UPFRONT' - #[serde(rename = "offeringType")] - #[serde(default)] pub offering_type: std::option::Option, /// AWS region, e.g. 'us-west-2' - #[serde(rename = "region")] - #[serde(default)] pub region: std::option::Option, /// Resource configuration details - #[serde(rename = "resourceSpecification")] - #[serde(default)] pub resource_specification: std::option::Option, /// Recurring usage charge for each reserved resource, e.g. '157.0' - #[serde(rename = "usagePrice")] - #[serde(default)] pub usage_price: f64, } impl std::fmt::Debug for Offering { @@ -35323,15 +31605,11 @@ impl Offering { /// Placeholder documentation for MultiplexProgramSummary #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexProgramSummary { /// The MediaLive Channel associated with the program. - #[serde(rename = "channelId")] - #[serde(default)] pub channel_id: std::option::Option, /// The name of the multiplex program. - #[serde(rename = "programName")] - #[serde(default)] pub program_name: std::option::Option, } impl std::fmt::Debug for MultiplexProgramSummary { @@ -35388,43 +31666,25 @@ impl MultiplexProgramSummary { /// Placeholder documentation for MultiplexSummary #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexSummary { /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] pub availability_zones: std::option::Option>, /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] pub multiplex_settings: std::option::Option, /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] pub pipelines_running_count: i32, /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] pub program_count: i32, /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } @@ -35588,11 +31848,9 @@ impl MultiplexSummary { /// Contains summary configuration for a Multiplex event. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiplexSettingsSummary { /// Transport stream bit rate. - #[serde(rename = "transportStreamBitrate")] - #[serde(default)] pub transport_stream_bitrate: i32, } impl std::fmt::Debug for MultiplexSettingsSummary { @@ -35637,23 +31895,15 @@ impl MultiplexSettingsSummary { /// Details about the input device that is being transferred. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransferringInputDeviceSummary { /// The unique ID of the input device. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// The optional message that the sender has attached to the transfer. - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, /// The AWS account ID for the recipient of the input device transfer. - #[serde(rename = "targetCustomerId")] - #[serde(default)] pub target_customer_id: std::option::Option, /// The type (direction) of the input device transfer. - #[serde(rename = "transferType")] - #[serde(default)] pub transfer_type: std::option::Option, } impl std::fmt::Debug for TransferringInputDeviceSummary { @@ -35767,7 +32017,7 @@ impl std::convert::From<&str> for InputDeviceTransferType { impl std::str::FromStr for InputDeviceTransferType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputDeviceTransferType::from(s)) } } @@ -35785,67 +32035,34 @@ impl AsRef for InputDeviceTransferType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputDeviceTransferType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Details of the input device. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputDeviceSummary { /// The unique ARN of the input device. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// The state of the connection between the input device and AWS. - #[serde(rename = "connectionState")] - #[serde(default)] pub connection_state: std::option::Option, /// The status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration. - #[serde(rename = "deviceSettingsSyncState")] - #[serde(default)] pub device_settings_sync_state: std::option::Option, /// The status of software on the input device. - #[serde(rename = "deviceUpdateStatus")] - #[serde(default)] pub device_update_status: std::option::Option, /// Settings that describe an input device that is type HD. - #[serde(rename = "hdDeviceSettings")] - #[serde(default)] pub hd_device_settings: std::option::Option, /// The unique ID of the input device. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// The network MAC address of the input device. - #[serde(rename = "macAddress")] - #[serde(default)] pub mac_address: std::option::Option, /// A name that you specify for the input device. - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// Network settings for the input device. - #[serde(rename = "networkSettings")] - #[serde(default)] pub network_settings: std::option::Option, /// The unique serial number of the input device. - #[serde(rename = "serialNumber")] - #[serde(default)] pub serial_number: std::option::Option, /// The type of the input device. - #[serde(rename = "type")] - #[serde(default)] pub r#type: std::option::Option, /// Settings that describe an input device that is type UHD. - #[serde(rename = "uhdDeviceSettings")] - #[serde(default)] pub uhd_device_settings: std::option::Option, } impl std::fmt::Debug for InputDeviceSummary { @@ -36053,70 +32270,40 @@ impl InputDeviceSummary { /// Placeholder documentation for ChannelSummary #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ChannelSummary { /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] pub cdi_input_specification: std::option::Option, /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] pub channel_class: std::option::Option, /// A list of destinations of the channel. For UDP outputs, there is one /// destination per output. For other types (HLS, for example), there is /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] pub destinations: std::option::Option>, /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] pub egress_endpoints: std::option::Option>, /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] pub input_attachments: std::option::Option>, /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] pub input_specification: std::option::Option, /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] pub log_level: std::option::Option, /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] pub pipelines_running_count: i32, /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] pub vpc: std::option::Option, } impl std::fmt::Debug for ChannelSummary { @@ -36378,19 +32565,13 @@ impl ChannelSummary { /// Contains information on a single schedule action. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ScheduleAction { /// The name of the action, must be unique within the schedule. This name provides the main reference to an action once it is added to the schedule. A name is unique if it is no longer in the schedule. The schedule is automatically cleaned up to remove actions with a start time of more than 1 hour ago (approximately) so at that point a name can be reused. - #[serde(rename = "actionName")] - #[serde(default)] pub action_name: std::option::Option, /// Settings for this schedule action. - #[serde(rename = "scheduleActionSettings")] - #[serde(default)] pub schedule_action_settings: std::option::Option, /// The time for the action to start in the channel. - #[serde(rename = "scheduleActionStartSettings")] - #[serde(default)] pub schedule_action_start_settings: std::option::Option, } @@ -36477,21 +32658,15 @@ impl ScheduleAction { /// Settings to specify when an action should occur. Only one of the options must be selected. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ScheduleActionStartSettings { /// Option for specifying the start time for an action. - #[serde(rename = "fixedModeScheduleActionStartSettings")] - #[serde(default)] pub fixed_mode_schedule_action_start_settings: std::option::Option, /// Option for specifying an action as relative to another action. - #[serde(rename = "followModeScheduleActionStartSettings")] - #[serde(default)] pub follow_mode_schedule_action_start_settings: std::option::Option, /// Option for specifying an action that should be applied immediately. - #[serde(rename = "immediateModeScheduleActionStartSettings")] - #[serde(default)] pub immediate_mode_schedule_action_start_settings: std::option::Option, } @@ -36594,7 +32769,7 @@ impl ScheduleActionStartSettings { /// Settings to configure an action so that it occurs as soon as possible. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImmediateModeScheduleActionStartSettings {} impl std::fmt::Debug for ImmediateModeScheduleActionStartSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -36624,15 +32799,11 @@ impl ImmediateModeScheduleActionStartSettings { /// Settings to specify if an action follows another. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FollowModeScheduleActionStartSettings { /// Identifies whether this action starts relative to the start or relative to the end of the reference action. - #[serde(rename = "followPoint")] - #[serde(default)] pub follow_point: std::option::Option, /// The action name of another action that this one refers to. - #[serde(rename = "referenceActionName")] - #[serde(default)] pub reference_action_name: std::option::Option, } impl std::fmt::Debug for FollowModeScheduleActionStartSettings { @@ -36722,7 +32893,7 @@ impl std::convert::From<&str> for FollowPoint { impl std::str::FromStr for FollowPoint { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FollowPoint::from(s)) } } @@ -36740,23 +32911,12 @@ impl AsRef for FollowPoint { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FollowPoint { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Start time for the action. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FixedModeScheduleActionStartSettings { /// Start time for the action to start in the channel. (Not the time for the action to be added to the schedule: actions are always added to the schedule immediately.) UTC format: yyyy-mm-ddThh:mm:ss.nnnZ. All the letters are digits (for example, mm might be 01) except for the two constants "T" for time and "Z" for "UTC format". - #[serde(rename = "time")] - #[serde(default)] pub time: std::option::Option, } impl std::fmt::Debug for FixedModeScheduleActionStartSettings { @@ -36799,64 +32959,40 @@ impl FixedModeScheduleActionStartSettings { /// Holds the settings for a single schedule action. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ScheduleActionSettings { /// Action to insert HLS ID3 segment tagging - #[serde(rename = "hlsId3SegmentTaggingSettings")] - #[serde(default)] pub hls_id3_segment_tagging_settings: std::option::Option, /// Action to insert HLS metadata - #[serde(rename = "hlsTimedMetadataSettings")] - #[serde(default)] pub hls_timed_metadata_settings: std::option::Option, /// Action to prepare an input for a future immediate input switch - #[serde(rename = "inputPrepareSettings")] - #[serde(default)] pub input_prepare_settings: std::option::Option, /// Action to switch the input - #[serde(rename = "inputSwitchSettings")] - #[serde(default)] pub input_switch_settings: std::option::Option, /// Action to activate a motion graphics image overlay - #[serde(rename = "motionGraphicsImageActivateSettings")] - #[serde(default)] pub motion_graphics_image_activate_settings: std::option::Option, /// Action to deactivate a motion graphics image overlay - #[serde(rename = "motionGraphicsImageDeactivateSettings")] - #[serde(default)] pub motion_graphics_image_deactivate_settings: std::option::Option, /// Action to pause or unpause one or both channel pipelines - #[serde(rename = "pauseStateSettings")] - #[serde(default)] pub pause_state_settings: std::option::Option, /// Action to insert SCTE-35 return_to_network message - #[serde(rename = "scte35ReturnToNetworkSettings")] - #[serde(default)] pub scte35_return_to_network_settings: std::option::Option, /// Action to insert SCTE-35 splice_insert message - #[serde(rename = "scte35SpliceInsertSettings")] - #[serde(default)] pub scte35_splice_insert_settings: std::option::Option, /// Action to insert SCTE-35 time_signal message - #[serde(rename = "scte35TimeSignalSettings")] - #[serde(default)] pub scte35_time_signal_settings: std::option::Option, /// Action to activate a static image overlay - #[serde(rename = "staticImageActivateSettings")] - #[serde(default)] pub static_image_activate_settings: std::option::Option, /// Action to deactivate a static image overlay - #[serde(rename = "staticImageDeactivateSettings")] - #[serde(default)] pub static_image_deactivate_settings: std::option::Option, } @@ -37149,15 +33285,11 @@ impl ScheduleActionSettings { /// Settings for the action to deactivate the image in a specific layer. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StaticImageDeactivateScheduleActionSettings { /// The time in milliseconds for the image to fade out. Default is 0 (no fade-out). - #[serde(rename = "fadeOut")] - #[serde(default)] pub fade_out: i32, /// The image overlay layer to deactivate, 0 to 7. Default is 0. - #[serde(rename = "layer")] - #[serde(default)] pub layer: i32, } impl std::fmt::Debug for StaticImageDeactivateScheduleActionSettings { @@ -37214,47 +33346,27 @@ impl StaticImageDeactivateScheduleActionSettings { /// Settings for the action to activate a static image. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StaticImageActivateScheduleActionSettings { /// The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated. - #[serde(rename = "duration")] - #[serde(default)] pub duration: i32, /// The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in). - #[serde(rename = "fadeIn")] - #[serde(default)] pub fade_in: i32, /// Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out). - #[serde(rename = "fadeOut")] - #[serde(default)] pub fade_out: i32, /// The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay. - #[serde(rename = "height")] - #[serde(default)] pub height: i32, /// The location and filename of the image file to overlay on the video. The file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in pixels) than the input video. - #[serde(rename = "image")] - #[serde(default)] pub image: std::option::Option, /// Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right. - #[serde(rename = "imageX")] - #[serde(default)] pub image_x: i32, /// Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom. - #[serde(rename = "imageY")] - #[serde(default)] pub image_y: i32, /// The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0. - #[serde(rename = "layer")] - #[serde(default)] pub layer: i32, /// Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100. - #[serde(rename = "opacity")] - #[serde(default)] pub opacity: i32, /// The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay. - #[serde(rename = "width")] - #[serde(default)] pub width: i32, } impl std::fmt::Debug for StaticImageActivateScheduleActionSettings { @@ -37410,11 +33522,9 @@ impl StaticImageActivateScheduleActionSettings { /// Settings for a SCTE-35 time_signal. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35TimeSignalScheduleActionSettings { /// The list of SCTE-35 descriptors accompanying the SCTE-35 time_signal. - #[serde(rename = "scte35Descriptors")] - #[serde(default)] pub scte35_descriptors: std::option::Option>, } impl std::fmt::Debug for Scte35TimeSignalScheduleActionSettings { @@ -37467,11 +33577,9 @@ impl Scte35TimeSignalScheduleActionSettings { /// Holds one set of SCTE-35 Descriptor Settings. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35Descriptor { /// SCTE-35 Descriptor Settings. - #[serde(rename = "scte35DescriptorSettings")] - #[serde(default)] pub scte35_descriptor_settings: std::option::Option, } impl std::fmt::Debug for Scte35Descriptor { @@ -37526,11 +33634,9 @@ impl Scte35Descriptor { /// SCTE-35 Descriptor settings. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35DescriptorSettings { /// SCTE-35 Segmentation Descriptor. - #[serde(rename = "segmentationDescriptorScte35DescriptorSettings")] - #[serde(default)] pub segmentation_descriptor_scte35_descriptor_settings: std::option::Option, } @@ -37587,52 +33693,30 @@ impl Scte35DescriptorSettings { /// Corresponds to SCTE-35 segmentation_descriptor. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35SegmentationDescriptor { /// Holds the four SCTE-35 delivery restriction parameters. - #[serde(rename = "deliveryRestrictions")] - #[serde(default)] pub delivery_restrictions: std::option::Option, /// Corresponds to SCTE-35 segment_num. A value that is valid for the specified segmentation_type_id. - #[serde(rename = "segmentNum")] - #[serde(default)] pub segment_num: i32, /// Corresponds to SCTE-35 segmentation_event_cancel_indicator. - #[serde(rename = "segmentationCancelIndicator")] - #[serde(default)] pub segmentation_cancel_indicator: std::option::Option, /// Corresponds to SCTE-35 segmentation_duration. Optional. The duration for the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not enter a duration, the time_signal will continue until you insert a cancellation message. - #[serde(rename = "segmentationDuration")] - #[serde(default)] pub segmentation_duration: i64, /// Corresponds to SCTE-35 segmentation_event_id. - #[serde(rename = "segmentationEventId")] - #[serde(default)] pub segmentation_event_id: i64, /// Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id values listed in the SCTE-35 specification. On the console, enter the ID in decimal (for example, "52"). In the CLI, API, or an SDK, enter the ID in hex (for example, "0x34") or decimal (for example, "52"). - #[serde(rename = "segmentationTypeId")] - #[serde(default)] pub segmentation_type_id: i32, /// Corresponds to SCTE-35 segmentation_upid. Enter a string containing the hexadecimal representation of the characters that make up the SCTE-35 segmentation_upid value. Must contain an even number of hex characters. Do not include spaces between each hex pair. For example, the ASCII "ADS Information" becomes hex "41445320496e666f726d6174696f6e. - #[serde(rename = "segmentationUpid")] - #[serde(default)] pub segmentation_upid: std::option::Option, /// Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one of the types listed in the SCTE-35 specification, converted to a decimal. For example, "0x0C" hex from the specification is "12" in decimal. In the CLI, API, or an SDK, enter one of the types listed in the SCTE-35 specification, in either hex (for example, "0x0C" ) or in decimal (for example, "12"). - #[serde(rename = "segmentationUpidType")] - #[serde(default)] pub segmentation_upid_type: i32, /// Corresponds to SCTE-35 segments_expected. A value that is valid for the specified segmentation_type_id. - #[serde(rename = "segmentsExpected")] - #[serde(default)] pub segments_expected: i32, /// Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified segmentation_type_id. - #[serde(rename = "subSegmentNum")] - #[serde(default)] pub sub_segment_num: i32, /// Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the specified segmentation_type_id. - #[serde(rename = "subSegmentsExpected")] - #[serde(default)] pub sub_segments_expected: i32, } impl std::fmt::Debug for Scte35SegmentationDescriptor { @@ -37848,7 +33932,7 @@ impl std::convert::From<&str> for Scte35SegmentationCancelIndicator { impl std::str::FromStr for Scte35SegmentationCancelIndicator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35SegmentationCancelIndicator::from(s)) } } @@ -37870,35 +33954,18 @@ impl AsRef for Scte35SegmentationCancelIndicator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35SegmentationCancelIndicator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Corresponds to SCTE-35 delivery_not_restricted_flag parameter. To declare delivery restrictions, include this element and its four "restriction" flags. To declare that there are no restrictions, omit this element. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35DeliveryRestrictions { /// Corresponds to SCTE-35 archive_allowed_flag. - #[serde(rename = "archiveAllowedFlag")] - #[serde(default)] pub archive_allowed_flag: std::option::Option, /// Corresponds to SCTE-35 device_restrictions parameter. - #[serde(rename = "deviceRestrictions")] - #[serde(default)] pub device_restrictions: std::option::Option, /// Corresponds to SCTE-35 no_regional_blackout_flag parameter. - #[serde(rename = "noRegionalBlackoutFlag")] - #[serde(default)] pub no_regional_blackout_flag: std::option::Option, /// Corresponds to SCTE-35 web_delivery_allowed_flag parameter. - #[serde(rename = "webDeliveryAllowedFlag")] - #[serde(default)] pub web_delivery_allowed_flag: std::option::Option, } impl std::fmt::Debug for Scte35DeliveryRestrictions { @@ -38033,7 +34100,7 @@ impl std::convert::From<&str> for Scte35WebDeliveryAllowedFlag { impl std::str::FromStr for Scte35WebDeliveryAllowedFlag { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35WebDeliveryAllowedFlag::from(s)) } } @@ -38051,15 +34118,6 @@ impl AsRef for Scte35WebDeliveryAllowedFlag { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35WebDeliveryAllowedFlag { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Corresponds to the no_regional_blackout_flag parameter. A value of REGIONAL_BLACKOUT corresponds to 0 (false) in the SCTE-35 specification. If you include one of the "restriction" flags then you must include all four of them. #[non_exhaustive] @@ -38090,7 +34148,7 @@ impl std::convert::From<&str> for Scte35NoRegionalBlackoutFlag { impl std::str::FromStr for Scte35NoRegionalBlackoutFlag { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35NoRegionalBlackoutFlag::from(s)) } } @@ -38108,15 +34166,6 @@ impl AsRef for Scte35NoRegionalBlackoutFlag { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35NoRegionalBlackoutFlag { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Corresponds to the device_restrictions parameter in a segmentation_descriptor. If you include one of the "restriction" flags then you must include all four of them. #[non_exhaustive] @@ -38151,7 +34200,7 @@ impl std::convert::From<&str> for Scte35DeviceRestrictions { impl std::str::FromStr for Scte35DeviceRestrictions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35DeviceRestrictions::from(s)) } } @@ -38171,15 +34220,6 @@ impl AsRef for Scte35DeviceRestrictions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35DeviceRestrictions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Corresponds to the archive_allowed parameter. A value of ARCHIVE_NOT_ALLOWED corresponds to 0 (false) in the SCTE-35 specification. If you include one of the "restriction" flags then you must include all four of them. #[non_exhaustive] @@ -38210,7 +34250,7 @@ impl std::convert::From<&str> for Scte35ArchiveAllowedFlag { impl std::str::FromStr for Scte35ArchiveAllowedFlag { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Scte35ArchiveAllowedFlag::from(s)) } } @@ -38228,27 +34268,14 @@ impl AsRef for Scte35ArchiveAllowedFlag { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Scte35ArchiveAllowedFlag { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings for a SCTE-35 splice_insert message. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35SpliceInsertScheduleActionSettings { /// Optional, the duration for the splice_insert, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there is an expectation that the downstream system can read the duration and cue in at that time. If you do not enter a duration, the splice_insert will continue indefinitely and there is an expectation that you will enter a return_to_network to end the splice_insert at the appropriate time. - #[serde(rename = "duration")] - #[serde(default)] pub duration: i64, /// The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. - #[serde(rename = "spliceEventId")] - #[serde(default)] pub splice_event_id: i64, } impl std::fmt::Debug for Scte35SpliceInsertScheduleActionSettings { @@ -38305,11 +34332,9 @@ impl Scte35SpliceInsertScheduleActionSettings { /// Settings for a SCTE-35 return_to_network message. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Scte35ReturnToNetworkScheduleActionSettings { /// The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. - #[serde(rename = "spliceEventId")] - #[serde(default)] pub splice_event_id: i64, } impl std::fmt::Debug for Scte35ReturnToNetworkScheduleActionSettings { @@ -38354,11 +34379,9 @@ impl Scte35ReturnToNetworkScheduleActionSettings { /// Settings for the action to set pause state of a channel. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PauseStateScheduleActionSettings { /// Placeholder documentation for __listOfPipelinePauseStateSettings - #[serde(rename = "pipelines")] - #[serde(default)] pub pipelines: std::option::Option>, } impl std::fmt::Debug for PauseStateScheduleActionSettings { @@ -38411,11 +34434,9 @@ impl PauseStateScheduleActionSettings { /// Settings for pausing a pipeline. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelinePauseStateSettings { /// Pipeline ID to pause ("PIPELINE_0" or "PIPELINE_1"). - #[serde(rename = "pipelineId")] - #[serde(default)] pub pipeline_id: std::option::Option, } impl std::fmt::Debug for PipelinePauseStateSettings { @@ -38490,7 +34511,7 @@ impl std::convert::From<&str> for PipelineId { impl std::str::FromStr for PipelineId { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PipelineId::from(s)) } } @@ -38508,19 +34529,10 @@ impl AsRef for PipelineId { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PipelineId { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings to specify the ending of rendering motion graphics into the video stream. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MotionGraphicsDeactivateScheduleActionSettings {} impl std::fmt::Debug for MotionGraphicsDeactivateScheduleActionSettings { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -38550,23 +34562,15 @@ impl MotionGraphicsDeactivateScheduleActionSettings { /// Settings to specify the rendering of motion graphics into the video stream. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MotionGraphicsActivateScheduleActionSettings { /// Duration (in milliseconds) that motion graphics should render on to the video stream. Leaving out this property or setting to 0 will result in rendering continuing until a deactivate action is processed. - #[serde(rename = "duration")] - #[serde(default)] pub duration: i64, /// Key used to extract the password from EC2 Parameter store - #[serde(rename = "passwordParam")] - #[serde(default)] pub password_param: std::option::Option, /// URI of the HTML5 content to be rendered into the live stream. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// Documentation update needed - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for MotionGraphicsActivateScheduleActionSettings { @@ -38650,19 +34654,13 @@ impl MotionGraphicsActivateScheduleActionSettings { /// Settings for the "switch input" action: to switch from ingesting one input to ingesting another input. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSwitchScheduleActionSettings { /// The name of the input attachment (not the name of the input!) to switch to. The name is specified in the channel configuration. - #[serde(rename = "inputAttachmentNameReference")] - #[serde(default)] pub input_attachment_name_reference: std::option::Option, /// Settings to let you create a clip of the file input, in order to set up the input to ingest only a portion of the file. - #[serde(rename = "inputClippingSettings")] - #[serde(default)] pub input_clipping_settings: std::option::Option, /// The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time you use the same dynamic input in an input switch action, you can provide a different value, in order to connect the input to a different content source. - #[serde(rename = "urlPath")] - #[serde(default)] pub url_path: std::option::Option>, } impl std::fmt::Debug for InputSwitchScheduleActionSettings { @@ -38751,19 +34749,13 @@ impl InputSwitchScheduleActionSettings { /// Settings to let you create a clip of the file input, in order to set up the input to ingest only a portion of the file. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputClippingSettings { /// The source of the timecodes in the source being clipped. - #[serde(rename = "inputTimecodeSource")] - #[serde(default)] pub input_timecode_source: std::option::Option, /// Settings to identify the start of the clip. - #[serde(rename = "startTimecode")] - #[serde(default)] pub start_timecode: std::option::Option, /// Settings to identify the end of the clip. - #[serde(rename = "stopTimecode")] - #[serde(default)] pub stop_timecode: std::option::Option, } impl std::fmt::Debug for InputClippingSettings { @@ -38841,15 +34833,11 @@ impl InputClippingSettings { /// Settings to identify the end of the clip. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StopTimecode { /// If you specify a StopTimecode in an input (in order to clip the file), you can specify if you want the clip to exclude (the default) or include the frame specified by the timecode. - #[serde(rename = "lastFrameClippingBehavior")] - #[serde(default)] pub last_frame_clipping_behavior: std::option::Option, /// The timecode for the frame where you want to stop the clip. Optional; if not specified, the clip continues to the end of the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF. - #[serde(rename = "timecode")] - #[serde(default)] pub timecode: std::option::Option, } impl std::fmt::Debug for StopTimecode { @@ -38943,7 +34931,7 @@ impl std::convert::From<&str> for LastFrameClippingBehavior { impl std::str::FromStr for LastFrameClippingBehavior { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LastFrameClippingBehavior::from(s)) } } @@ -38961,23 +34949,12 @@ impl AsRef for LastFrameClippingBehavior { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LastFrameClippingBehavior { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings to identify the start of the clip. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartTimecode { /// The timecode for the frame where you want to start the clip. Optional; if not specified, the clip starts at first frame in the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF. - #[serde(rename = "timecode")] - #[serde(default)] pub timecode: std::option::Option, } impl std::fmt::Debug for StartTimecode { @@ -39049,7 +35026,7 @@ impl std::convert::From<&str> for InputTimecodeSource { impl std::str::FromStr for InputTimecodeSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputTimecodeSource::from(s)) } } @@ -39067,31 +35044,16 @@ impl AsRef for InputTimecodeSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputTimecodeSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Action to prepare an input for a future immediate input switch. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputPrepareScheduleActionSettings { /// The name of the input attachment that should be prepared by this action. If no name is provided, the action will stop the most recent prepare (if any) when activated. - #[serde(rename = "inputAttachmentNameReference")] - #[serde(default)] pub input_attachment_name_reference: std::option::Option, /// Settings to let you create a clip of the file input, in order to set up the input to ingest only a portion of the file. - #[serde(rename = "inputClippingSettings")] - #[serde(default)] pub input_clipping_settings: std::option::Option, /// The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time you use the same dynamic input in an input switch action, you can provide a different value, in order to connect the input to a different content source. - #[serde(rename = "urlPath")] - #[serde(default)] pub url_path: std::option::Option>, } impl std::fmt::Debug for InputPrepareScheduleActionSettings { @@ -39180,11 +35142,9 @@ impl InputPrepareScheduleActionSettings { /// Settings for the action to emit HLS metadata #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsTimedMetadataScheduleActionSettings { /// Base64 string formatted according to the ID3 specification: http://id3.org/id3v2.4.0-structure - #[serde(rename = "id3")] - #[serde(default)] pub id3: std::option::Option, } impl std::fmt::Debug for HlsTimedMetadataScheduleActionSettings { @@ -39227,11 +35187,9 @@ impl HlsTimedMetadataScheduleActionSettings { /// Settings for the action to insert a user-defined ID3 tag in each HLS segment #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsId3SegmentTaggingScheduleActionSettings { /// ID3 tag to insert into each segment. Supports special keyword identifiers to substitute in segment-related values.\nSupported keyword identifiers: https://docs.aws.amazon.com/medialive/latest/ug/variable-data-identifiers.html - #[serde(rename = "tag")] - #[serde(default)] pub tag: std::option::Option, } impl std::fmt::Debug for HlsId3SegmentTaggingScheduleActionSettings { @@ -39299,7 +35257,7 @@ impl std::convert::From<&str> for ContentType { impl std::str::FromStr for ContentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContentType::from(s)) } } @@ -39316,15 +35274,6 @@ impl AsRef for ContentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// The HTTP Accept header. Indicates the requested type fothe thumbnail. #[non_exhaustive] @@ -39353,7 +35302,7 @@ impl std::convert::From<&str> for AcceptHeader { impl std::str::FromStr for AcceptHeader { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AcceptHeader::from(s)) } } @@ -39370,32 +35319,19 @@ impl AsRef for AcceptHeader { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AcceptHeader { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Settings for a private VPC Input. /// When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. /// This property requires setting the roleArn property on Input creation. /// Not compatible with the inputSecurityGroups property. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputVpcRequest { /// A list of up to 5 EC2 VPC security group IDs to attach to the Input VPC network interfaces. /// Requires subnetIds. If none are specified then the VPC default security group will be used. - #[serde(rename = "securityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, /// A list of 2 VPC subnet IDs from the same VPC. /// Subnet IDs must be mapped to two unique availability zones (AZ). - #[serde(rename = "subnetIds")] - #[serde(default)] pub subnet_ids: std::option::Option>, } impl std::fmt::Debug for InputVpcRequest { @@ -39461,22 +35397,16 @@ impl InputVpcRequest { /// The properties for a private VPC Output /// When this property is specified, the output egress addresses will be created in a user specified VPC #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcOutputSettings { /// List of public address allocation ids to associate with ENIs that will be created in Output VPC. /// Must specify one for SINGLE_PIPELINE, two for STANDARD channels - #[serde(rename = "publicAddressAllocationIds")] - #[serde(default)] pub public_address_allocation_ids: std::option::Option>, /// A list of up to 5 EC2 VPC security group IDs to attach to the Output VPC network interfaces. /// If none are specified then the VPC default security group will be used - #[serde(rename = "securityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, /// A list of VPC subnet IDs from the same VPC. /// If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ). - #[serde(rename = "subnetIds")] - #[serde(default)] pub subnet_ids: std::option::Option>, } impl std::fmt::Debug for VpcOutputSettings { @@ -39564,11 +35494,9 @@ impl VpcOutputSettings { /// List of actions that have been deleted from the schedule. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchScheduleActionDeleteResult { /// List of actions that have been deleted from the schedule. - #[serde(rename = "scheduleActions")] - #[serde(default)] pub schedule_actions: std::option::Option>, } impl std::fmt::Debug for BatchScheduleActionDeleteResult { @@ -39618,11 +35546,9 @@ impl BatchScheduleActionDeleteResult { /// List of actions that have been created in the schedule. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchScheduleActionCreateResult { /// List of actions that have been created in the schedule. - #[serde(rename = "scheduleActions")] - #[serde(default)] pub schedule_actions: std::option::Option>, } impl std::fmt::Debug for BatchScheduleActionCreateResult { @@ -39672,11 +35598,9 @@ impl BatchScheduleActionCreateResult { /// A list of schedule actions to delete. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchScheduleActionDeleteRequest { /// A list of schedule actions to delete. - #[serde(rename = "actionNames")] - #[serde(default)] pub action_names: std::option::Option>, } impl std::fmt::Debug for BatchScheduleActionDeleteRequest { @@ -39725,11 +35649,9 @@ impl BatchScheduleActionDeleteRequest { /// A list of schedule actions to create (in a request) or that have been created (in a response). #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchScheduleActionCreateRequest { /// A list of schedule actions to create. - #[serde(rename = "scheduleActions")] - #[serde(default)] pub schedule_actions: std::option::Option>, } impl std::fmt::Debug for BatchScheduleActionCreateRequest { @@ -39779,19 +35701,13 @@ impl BatchScheduleActionCreateRequest { /// Details from a successful operation #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchSuccessfulResultModel { /// ARN of the resource - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// ID of the resource - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Current state of the resource - #[serde(rename = "state")] - #[serde(default)] pub state: std::option::Option, } impl std::fmt::Debug for BatchSuccessfulResultModel { @@ -39860,23 +35776,15 @@ impl BatchSuccessfulResultModel { /// Details from a failed operation #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchFailedResultModel { /// ARN of the resource - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// Error code for the failed operation - #[serde(rename = "code")] - #[serde(default)] pub code: std::option::Option, /// ID of the resource - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Error message for the failed operation - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for BatchFailedResultModel { diff --git a/sdk/medialive/src/operation_deser.rs b/sdk/medialive/src/operation_deser.rs index 7d6cd35addb6..2f0d8149f2df 100644 --- a/sdk/medialive/src/operation_deser.rs +++ b/sdk/medialive/src/operation_deser.rs @@ -19,92 +19,110 @@ pub fn parse_accept_input_device_transfer_error( Err(match error_code { "BadGatewayException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::BadGatewayError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::BadRequestError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::ConflictError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::ForbiddenError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::GatewayTimeoutError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::InternalServerErrorError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::NotFoundError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AcceptInputDeviceTransferError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::TooManyRequestsError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -114,11 +132,11 @@ pub fn parse_accept_input_device_transfer_error( }, "UnprocessableEntityException" => crate::error::AcceptInputDeviceTransferError { meta: generic, - kind: crate::error::AcceptInputDeviceTransferErrorKind::UnprocessableEntityError({ + kind: crate::error::AcceptInputDeviceTransferErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -158,92 +176,110 @@ pub fn parse_batch_delete_error( Err(match error_code { "BadGatewayException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::BadGatewayError({ + kind: crate::error::BatchDeleteErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::BadRequestError({ + kind: crate::error::BatchDeleteErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::ConflictError({ + kind: crate::error::BatchDeleteErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::ForbiddenError({ + kind: crate::error::BatchDeleteErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::GatewayTimeoutError({ + kind: crate::error::BatchDeleteErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::InternalServerErrorError({ + kind: crate::error::BatchDeleteErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::NotFoundError({ + kind: crate::error::BatchDeleteErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchDeleteError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::BatchDeleteError { meta: generic, - kind: crate::error::BatchDeleteErrorKind::TooManyRequestsError({ + kind: crate::error::BatchDeleteErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -263,7 +299,7 @@ pub fn parse_batch_delete_response( #[allow(unused_mut)] let mut output = crate::output::batch_delete_output::Builder::default(); let _ = response; - output = crate::json_deser::batch_delete_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_batch_delete(response.body().as_ref(), output) .map_err(crate::error::BatchDeleteError::unhandled)?; output.build() }) @@ -282,92 +318,110 @@ pub fn parse_batch_start_error( Err(match error_code { "BadGatewayException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::BadGatewayError({ + kind: crate::error::BatchStartErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::BadRequestError({ + kind: crate::error::BatchStartErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::ConflictError({ + kind: crate::error::BatchStartErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::ForbiddenError({ + kind: crate::error::BatchStartErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::GatewayTimeoutError({ + kind: crate::error::BatchStartErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::InternalServerErrorError({ + kind: crate::error::BatchStartErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::BatchStartError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::NotFoundError({ + kind: crate::error::BatchStartErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStartError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStartError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::BatchStartError { meta: generic, - kind: crate::error::BatchStartErrorKind::TooManyRequestsError({ + kind: crate::error::BatchStartErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -387,7 +441,7 @@ pub fn parse_batch_start_response( #[allow(unused_mut)] let mut output = crate::output::batch_start_output::Builder::default(); let _ = response; - output = crate::json_deser::batch_start_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_batch_start(response.body().as_ref(), output) .map_err(crate::error::BatchStartError::unhandled)?; output.build() }) @@ -406,92 +460,110 @@ pub fn parse_batch_stop_error( Err(match error_code { "BadGatewayException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::BadGatewayError({ + kind: crate::error::BatchStopErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::BadRequestError({ + kind: crate::error::BatchStopErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::ConflictError({ + kind: crate::error::BatchStopErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::ForbiddenError({ + kind: crate::error::BatchStopErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::GatewayTimeoutError({ + kind: crate::error::BatchStopErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::InternalServerErrorError({ + kind: crate::error::BatchStopErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::BatchStopError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::NotFoundError({ + kind: crate::error::BatchStopErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchStopError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchStopError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::BatchStopError { meta: generic, - kind: crate::error::BatchStopErrorKind::TooManyRequestsError({ + kind: crate::error::BatchStopErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -511,7 +583,7 @@ pub fn parse_batch_stop_response( #[allow(unused_mut)] let mut output = crate::output::batch_stop_output::Builder::default(); let _ = response; - output = crate::json_deser::batch_stop_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_batch_stop(response.body().as_ref(), output) .map_err(crate::error::BatchStopError::unhandled)?; output.build() }) @@ -533,81 +605,96 @@ pub fn parse_batch_update_schedule_error( Err(match error_code { "BadGatewayException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::BadGatewayError({ + kind: crate::error::BatchUpdateScheduleErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::BadRequestError({ + kind: crate::error::BatchUpdateScheduleErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::ForbiddenError({ + kind: crate::error::BatchUpdateScheduleErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::GatewayTimeoutError({ + kind: crate::error::BatchUpdateScheduleErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::InternalServerErrorError({ + kind: crate::error::BatchUpdateScheduleErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::NotFoundError({ + kind: crate::error::BatchUpdateScheduleErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchUpdateScheduleError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::TooManyRequestsError({ + kind: crate::error::BatchUpdateScheduleErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -617,11 +704,11 @@ pub fn parse_batch_update_schedule_error( }, "UnprocessableEntityException" => crate::error::BatchUpdateScheduleError { meta: generic, - kind: crate::error::BatchUpdateScheduleErrorKind::UnprocessableEntityError({ + kind: crate::error::BatchUpdateScheduleErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -644,7 +731,7 @@ pub fn parse_batch_update_schedule_response( #[allow(unused_mut)] let mut output = crate::output::batch_update_schedule_output::Builder::default(); let _ = response; - output = crate::json_deser::batch_update_schedule_deser_operation( + output = crate::json_deser::deser_operation_batch_update_schedule( response.body().as_ref(), output, ) @@ -673,92 +760,110 @@ pub fn parse_cancel_input_device_transfer_error( Err(match error_code { "BadGatewayException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::BadGatewayError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::BadRequestError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::ConflictError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::ForbiddenError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::GatewayTimeoutError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::InternalServerErrorError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::NotFoundError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelInputDeviceTransferError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::TooManyRequestsError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -768,11 +873,11 @@ pub fn parse_cancel_input_device_transfer_error( }, "UnprocessableEntityException" => crate::error::CancelInputDeviceTransferError { meta: generic, - kind: crate::error::CancelInputDeviceTransferErrorKind::UnprocessableEntityError({ + kind: crate::error::CancelInputDeviceTransferErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -812,81 +917,96 @@ pub fn parse_create_channel_error( Err(match error_code { "BadGatewayException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::BadGatewayError({ + kind: crate::error::CreateChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::BadRequestError({ + kind: crate::error::CreateChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::ConflictError({ + kind: crate::error::CreateChannelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::ForbiddenError({ + kind: crate::error::CreateChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::CreateChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::InternalServerErrorError({ + kind: crate::error::CreateChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::TooManyRequestsError({ + kind: crate::error::CreateChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -896,11 +1016,11 @@ pub fn parse_create_channel_error( }, "UnprocessableEntityException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -921,7 +1041,7 @@ pub fn parse_create_channel_response( let mut output = crate::output::create_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::create_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_channel(response.body().as_ref(), output) .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }) @@ -940,70 +1060,82 @@ pub fn parse_create_input_error( Err(match error_code { "BadGatewayException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::BadGatewayError({ + kind: crate::error::CreateInputErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::BadRequestError({ + kind: crate::error::CreateInputErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::ForbiddenError({ + kind: crate::error::CreateInputErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputError::unhandled)?; - output.build() - }), - }, + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputError::unhandled)?; + output.build() + }), + }, "GatewayTimeoutException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::GatewayTimeoutError({ + kind: crate::error::CreateInputErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::InternalServerErrorError({ + kind: crate::error::CreateInputErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateInputError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateInputError { meta: generic, - kind: crate::error::CreateInputErrorKind::TooManyRequestsError({ + kind: crate::error::CreateInputErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1023,7 +1155,7 @@ pub fn parse_create_input_response( #[allow(unused_mut)] let mut output = crate::output::create_input_output::Builder::default(); let _ = response; - output = crate::json_deser::create_input_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_create_input(response.body().as_ref(), output) .map_err(crate::error::CreateInputError::unhandled)?; output.build() }) @@ -1049,56 +1181,53 @@ pub fn parse_create_input_security_group_error( Err(match error_code { "BadGatewayException" => crate::error::CreateInputSecurityGroupError { meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::BadGatewayError({ + kind: crate::error::CreateInputSecurityGroupErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateInputSecurityGroupError { meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::BadRequestError({ + kind: crate::error::CreateInputSecurityGroupErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateInputSecurityGroupError { meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::ForbiddenError({ + kind: crate::error::CreateInputSecurityGroupErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CreateInputSecurityGroupError { meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::CreateInputSecurityGroupError { - meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::InternalServerErrorError({ + kind: crate::error::CreateInputSecurityGroupErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -1106,13 +1235,28 @@ pub fn parse_create_input_security_group_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::CreateInputSecurityGroupError { + meta: generic, + kind: crate::error::CreateInputSecurityGroupErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateInputSecurityGroupError::unhandled)?; + output.build() + }, + ), + } + } "TooManyRequestsException" => crate::error::CreateInputSecurityGroupError { meta: generic, - kind: crate::error::CreateInputSecurityGroupErrorKind::TooManyRequestsError({ + kind: crate::error::CreateInputSecurityGroupErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1135,7 +1279,7 @@ pub fn parse_create_input_security_group_response( #[allow(unused_mut)] let mut output = crate::output::create_input_security_group_output::Builder::default(); let _ = response; - output = crate::json_deser::create_input_security_group_deser_operation( + output = crate::json_deser::deser_operation_create_input_security_group( response.body().as_ref(), output, ) @@ -1157,81 +1301,96 @@ pub fn parse_create_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::BadGatewayError({ + kind: crate::error::CreateMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::BadRequestError({ + kind: crate::error::CreateMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::ConflictError({ + kind: crate::error::CreateMultiplexErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::ForbiddenError({ + kind: crate::error::CreateMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::CreateMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::CreateMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::TooManyRequestsError({ + kind: crate::error::CreateMultiplexErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1241,11 +1400,11 @@ pub fn parse_create_multiplex_error( }, "UnprocessableEntityException" => crate::error::CreateMultiplexError { meta: generic, - kind: crate::error::CreateMultiplexErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateMultiplexErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1266,7 +1425,7 @@ pub fn parse_create_multiplex_response( let mut output = crate::output::create_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::create_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_multiplex(response.body().as_ref(), output) .map_err(crate::error::CreateMultiplexError::unhandled)?; output.build() }) @@ -1292,67 +1451,67 @@ pub fn parse_create_multiplex_program_error( Err(match error_code { "BadGatewayException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::BadGatewayError({ + kind: crate::error::CreateMultiplexProgramErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::BadRequestError({ + kind: crate::error::CreateMultiplexProgramErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::ConflictError({ + kind: crate::error::CreateMultiplexProgramErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::ForbiddenError({ + kind: crate::error::CreateMultiplexProgramErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateMultiplexProgramError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::CreateMultiplexProgramError { - meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::InternalServerErrorError({ + kind: crate::error::CreateMultiplexProgramErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -1360,13 +1519,28 @@ pub fn parse_create_multiplex_program_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::CreateMultiplexProgramError { + meta: generic, + kind: crate::error::CreateMultiplexProgramErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateMultiplexProgramError::unhandled)?; + output.build() + }, + ), + } + } "TooManyRequestsException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::TooManyRequestsError({ + kind: crate::error::CreateMultiplexProgramErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1376,11 +1550,11 @@ pub fn parse_create_multiplex_program_error( }, "UnprocessableEntityException" => crate::error::CreateMultiplexProgramError { meta: generic, - kind: crate::error::CreateMultiplexProgramErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateMultiplexProgramErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1403,7 +1577,7 @@ pub fn parse_create_multiplex_program_response( #[allow(unused_mut)] let mut output = crate::output::create_multiplex_program_output::Builder::default(); let _ = response; - output = crate::json_deser::create_multiplex_program_deser_operation( + output = crate::json_deser::deser_operation_create_multiplex_program( response.body().as_ref(), output, ) @@ -1428,70 +1602,82 @@ pub fn parse_create_partner_input_error( Err(match error_code { "BadGatewayException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::BadGatewayError({ + kind: crate::error::CreatePartnerInputErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::CreatePartnerInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePartnerInputError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::BadRequestError({ + kind: crate::error::CreatePartnerInputErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreatePartnerInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePartnerInputError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::ForbiddenError({ + kind: crate::error::CreatePartnerInputErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreatePartnerInputError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePartnerInputError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::GatewayTimeoutError({ + kind: crate::error::CreatePartnerInputErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::CreatePartnerInputError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePartnerInputError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::InternalServerErrorError({ + kind: crate::error::CreatePartnerInputErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreatePartnerInputError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePartnerInputError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreatePartnerInputError { meta: generic, - kind: crate::error::CreatePartnerInputErrorKind::TooManyRequestsError({ + kind: crate::error::CreatePartnerInputErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1514,7 +1700,7 @@ pub fn parse_create_partner_input_response( #[allow(unused_mut)] let mut output = crate::output::create_partner_input_output::Builder::default(); let _ = response; - output = crate::json_deser::create_partner_input_deser_operation( + output = crate::json_deser::deser_operation_create_partner_input( response.body().as_ref(), output, ) @@ -1536,48 +1722,58 @@ pub fn parse_create_tags_error( Err(match error_code { "BadRequestException" => crate::error::CreateTagsError { meta: generic, - kind: crate::error::CreateTagsErrorKind::BadRequestError({ + kind: crate::error::CreateTagsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateTagsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTagsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CreateTagsError { meta: generic, - kind: crate::error::CreateTagsErrorKind::ForbiddenError({ + kind: crate::error::CreateTagsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateTagsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTagsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateTagsError { meta: generic, - kind: crate::error::CreateTagsErrorKind::InternalServerErrorError({ + kind: crate::error::CreateTagsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateTagsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTagsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateTagsError { meta: generic, - kind: crate::error::CreateTagsErrorKind::NotFoundError({ + kind: crate::error::CreateTagsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateTagsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTagsError::unhandled)?; output.build() }), }, @@ -1610,92 +1806,110 @@ pub fn parse_delete_channel_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::BadGatewayError({ + kind: crate::error::DeleteChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::BadRequestError({ + kind: crate::error::DeleteChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::ConflictError({ + kind: crate::error::DeleteChannelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::ForbiddenError({ + kind: crate::error::DeleteChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::NotFoundError({ + kind: crate::error::DeleteChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1716,7 +1930,7 @@ pub fn parse_delete_channel_response( let mut output = crate::output::delete_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::delete_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_delete_channel(response.body().as_ref(), output) .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }) @@ -1735,92 +1949,110 @@ pub fn parse_delete_input_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::BadGatewayError({ + kind: crate::error::DeleteInputErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::BadRequestError({ + kind: crate::error::DeleteInputErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::ConflictError({ + kind: crate::error::DeleteInputErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::ForbiddenError({ + kind: crate::error::DeleteInputErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteInputErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteInputErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::NotFoundError({ + kind: crate::error::DeleteInputErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteInputError { meta: generic, - kind: crate::error::DeleteInputErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteInputErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1864,56 +2096,53 @@ pub fn parse_delete_input_security_group_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::BadGatewayError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::BadRequestError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::ForbiddenError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DeleteInputSecurityGroupError { - meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::InternalServerErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); - let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -1921,24 +2150,42 @@ pub fn parse_delete_input_security_group_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::DeleteInputSecurityGroupError { + meta: generic, + kind: crate::error::DeleteInputSecurityGroupErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::NotFoundError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInputSecurityGroupError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteInputSecurityGroupError { meta: generic, - kind: crate::error::DeleteInputSecurityGroupErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteInputSecurityGroupErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1978,92 +2225,110 @@ pub fn parse_delete_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::BadGatewayError({ + kind: crate::error::DeleteMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::BadRequestError({ + kind: crate::error::DeleteMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::ConflictError({ + kind: crate::error::DeleteMultiplexErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::ForbiddenError({ + kind: crate::error::DeleteMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::NotFoundError({ + kind: crate::error::DeleteMultiplexErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteMultiplexError { meta: generic, - kind: crate::error::DeleteMultiplexErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteMultiplexErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2084,7 +2349,7 @@ pub fn parse_delete_multiplex_response( let mut output = crate::output::delete_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::delete_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_delete_multiplex(response.body().as_ref(), output) .map_err(crate::error::DeleteMultiplexError::unhandled)?; output.build() }) @@ -2110,67 +2375,67 @@ pub fn parse_delete_multiplex_program_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::BadGatewayError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::BadRequestError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::ConflictError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::ForbiddenError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DeleteMultiplexProgramError { - meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::InternalServerErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); - let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -2178,24 +2443,42 @@ pub fn parse_delete_multiplex_program_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::DeleteMultiplexProgramError { + meta: generic, + kind: crate::error::DeleteMultiplexProgramErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::NotFoundError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMultiplexProgramError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteMultiplexProgramError { meta: generic, - kind: crate::error::DeleteMultiplexProgramErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteMultiplexProgramErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2218,7 +2501,7 @@ pub fn parse_delete_multiplex_program_response( #[allow(unused_mut)] let mut output = crate::output::delete_multiplex_program_output::Builder::default(); let _ = response; - output = crate::json_deser::delete_multiplex_program_deser_operation( + output = crate::json_deser::deser_operation_delete_multiplex_program( response.body().as_ref(), output, ) @@ -2241,92 +2524,110 @@ pub fn parse_delete_reservation_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::BadGatewayError({ + kind: crate::error::DeleteReservationErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::BadRequestError({ + kind: crate::error::DeleteReservationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::ConflictError({ + kind: crate::error::DeleteReservationErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::ForbiddenError({ + kind: crate::error::DeleteReservationErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteReservationErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteReservationErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::NotFoundError({ + kind: crate::error::DeleteReservationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteReservationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteReservationError { meta: generic, - kind: crate::error::DeleteReservationErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteReservationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2348,7 +2649,7 @@ pub fn parse_delete_reservation_response( let mut output = crate::output::delete_reservation_output::Builder::default(); let _ = response; output = - crate::json_deser::delete_reservation_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_delete_reservation(response.body().as_ref(), output) .map_err(crate::error::DeleteReservationError::unhandled)?; output.build() }) @@ -2367,81 +2668,96 @@ pub fn parse_delete_schedule_error( Err(match error_code { "BadGatewayException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::BadGatewayError({ + kind: crate::error::DeleteScheduleErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::BadRequestError({ + kind: crate::error::DeleteScheduleErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::ForbiddenError({ + kind: crate::error::DeleteScheduleErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::GatewayTimeoutError({ + kind: crate::error::DeleteScheduleErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteScheduleErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::NotFoundError({ + kind: crate::error::DeleteScheduleErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteScheduleError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteScheduleError { meta: generic, - kind: crate::error::DeleteScheduleErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteScheduleErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2478,48 +2794,58 @@ pub fn parse_delete_tags_error( Err(match error_code { "BadRequestException" => crate::error::DeleteTagsError { meta: generic, - kind: crate::error::DeleteTagsErrorKind::BadRequestError({ + kind: crate::error::DeleteTagsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteTagsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTagsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DeleteTagsError { meta: generic, - kind: crate::error::DeleteTagsErrorKind::ForbiddenError({ + kind: crate::error::DeleteTagsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteTagsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTagsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteTagsError { meta: generic, - kind: crate::error::DeleteTagsErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteTagsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteTagsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTagsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteTagsError { meta: generic, - kind: crate::error::DeleteTagsErrorKind::NotFoundError({ + kind: crate::error::DeleteTagsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteTagsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTagsError::unhandled)?; output.build() }), }, @@ -2552,81 +2878,96 @@ pub fn parse_describe_channel_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::BadGatewayError({ + kind: crate::error::DescribeChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::BadRequestError({ + kind: crate::error::DescribeChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::ForbiddenError({ + kind: crate::error::DescribeChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::NotFoundError({ + kind: crate::error::DescribeChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2647,7 +2988,7 @@ pub fn parse_describe_channel_response( let mut output = crate::output::describe_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_channel(response.body().as_ref(), output) .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }) @@ -2666,81 +3007,96 @@ pub fn parse_describe_input_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::BadGatewayError({ + kind: crate::error::DescribeInputErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::BadRequestError({ + kind: crate::error::DescribeInputErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::ForbiddenError({ + kind: crate::error::DescribeInputErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeInputErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeInputErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::NotFoundError({ + kind: crate::error::DescribeInputErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeInputError { meta: generic, - kind: crate::error::DescribeInputErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeInputErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2761,7 +3117,7 @@ pub fn parse_describe_input_response( let mut output = crate::output::describe_input_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_input_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_input(response.body().as_ref(), output) .map_err(crate::error::DescribeInputError::unhandled)?; output.build() }) @@ -2783,81 +3139,96 @@ pub fn parse_describe_input_device_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::BadGatewayError({ + kind: crate::error::DescribeInputDeviceErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::BadRequestError({ + kind: crate::error::DescribeInputDeviceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::ForbiddenError({ + kind: crate::error::DescribeInputDeviceErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeInputDeviceErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeInputDeviceErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::NotFoundError({ + kind: crate::error::DescribeInputDeviceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeInputDeviceError { meta: generic, - kind: crate::error::DescribeInputDeviceErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeInputDeviceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2880,7 +3251,7 @@ pub fn parse_describe_input_device_response( #[allow(unused_mut)] let mut output = crate::output::describe_input_device_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_input_device_deser_operation( + output = crate::json_deser::deser_operation_describe_input_device( response.body().as_ref(), output, ) @@ -2900,50 +3271,24 @@ pub fn parse_describe_input_device_thumbnail( #[allow(unused_mut)] let mut output = crate::output::describe_input_device_thumbnail_output::Builder::default(); let _ = response; - output = output.set_body(Some( - crate::http_serde::deser_payload_describe_input_device_thumbnail_body( - response.body_mut(), - )?, - )); + output = output.set_body( + Some(crate::http_serde::deser_payload_describe_input_device_thumbnail_describe_input_device_thumbnail_output_body(response.body_mut())?) + ); output = output.set_content_length( - crate::http_serde::deser_header_describe_input_device_thumbnail_content_length( - response.headers(), - ) - .map_err(|_| { - crate::error::DescribeInputDeviceThumbnailError::unhandled( - "Failed to parse ContentLength from header `Content-Length", - ) - })?, + crate::http_serde::deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_content_length(response.headers()) + .map_err(|_|crate::error::DescribeInputDeviceThumbnailError::unhandled("Failed to parse ContentLength from header `Content-Length"))? ); output = output.set_content_type( - crate::http_serde::deser_header_describe_input_device_thumbnail_content_type( - response.headers(), - ) - .map_err(|_| { - crate::error::DescribeInputDeviceThumbnailError::unhandled( - "Failed to parse ContentType from header `Content-Type", - ) - })?, + crate::http_serde::deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_content_type(response.headers()) + .map_err(|_|crate::error::DescribeInputDeviceThumbnailError::unhandled("Failed to parse ContentType from header `Content-Type"))? ); output = output.set_e_tag( - crate::http_serde::deser_header_describe_input_device_thumbnail_e_tag( - response.headers(), - ) - .map_err(|_| { - crate::error::DescribeInputDeviceThumbnailError::unhandled( - "Failed to parse ETag from header `ETag", - ) - })?, + crate::http_serde::deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_e_tag(response.headers()) + .map_err(|_|crate::error::DescribeInputDeviceThumbnailError::unhandled("Failed to parse ETag from header `ETag"))? ); output = output.set_last_modified( - crate::http_serde::deser_header_describe_input_device_thumbnail_last_modified( - response.headers(), - ) - .map_err(|_| { - crate::error::DescribeInputDeviceThumbnailError::unhandled( - "Failed to parse LastModified from header `Last-Modified", - ) - })?, + crate::http_serde::deser_header_describe_input_device_thumbnail_describe_input_device_thumbnail_output_last_modified(response.headers()) + .map_err(|_|crate::error::DescribeInputDeviceThumbnailError::unhandled("Failed to parse LastModified from header `Last-Modified"))? ); output.build() }) @@ -2969,56 +3314,53 @@ pub fn parse_describe_input_device_thumbnail_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::BadGatewayError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::BadRequestError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::ForbiddenError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DescribeInputDeviceThumbnailError { - meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -3026,24 +3368,45 @@ pub fn parse_describe_input_device_thumbnail_error( output.build() }), }, + "InternalServerErrorException" => crate::error::DescribeInputDeviceThumbnailError { + meta: generic, + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; + output.build() + }, + ), + }, "NotFoundException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::NotFoundError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputDeviceThumbnailError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeInputDeviceThumbnailError { meta: generic, - kind: crate::error::DescribeInputDeviceThumbnailErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeInputDeviceThumbnailErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3075,56 +3438,53 @@ pub fn parse_describe_input_security_group_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::BadGatewayError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; - output.build() + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; + output.build() }), }, "BadRequestException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::BadRequestError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::ForbiddenError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DescribeInputSecurityGroupError { - meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -3132,24 +3492,43 @@ pub fn parse_describe_input_security_group_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::DescribeInputSecurityGroupError { + meta: generic, + kind: + crate::error::DescribeInputSecurityGroupErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::NotFoundError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInputSecurityGroupError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeInputSecurityGroupError { meta: generic, - kind: crate::error::DescribeInputSecurityGroupErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeInputSecurityGroupErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3172,7 +3551,7 @@ pub fn parse_describe_input_security_group_response( #[allow(unused_mut)] let mut output = crate::output::describe_input_security_group_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_input_security_group_deser_operation( + output = crate::json_deser::deser_operation_describe_input_security_group( response.body().as_ref(), output, ) @@ -3195,81 +3574,96 @@ pub fn parse_describe_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::BadGatewayError({ + kind: crate::error::DescribeMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::BadRequestError({ + kind: crate::error::DescribeMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::ForbiddenError({ + kind: crate::error::DescribeMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::NotFoundError({ + kind: crate::error::DescribeMultiplexErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeMultiplexError { meta: generic, - kind: crate::error::DescribeMultiplexErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeMultiplexErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3291,7 +3685,7 @@ pub fn parse_describe_multiplex_response( let mut output = crate::output::describe_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_multiplex(response.body().as_ref(), output) .map_err(crate::error::DescribeMultiplexError::unhandled)?; output.build() }) @@ -3317,56 +3711,53 @@ pub fn parse_describe_multiplex_program_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::BadGatewayError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::BadRequestError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::ForbiddenError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DescribeMultiplexProgramError { - meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -3374,24 +3765,42 @@ pub fn parse_describe_multiplex_program_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::DescribeMultiplexProgramError { + meta: generic, + kind: crate::error::DescribeMultiplexProgramErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::NotFoundError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMultiplexProgramError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeMultiplexProgramError { meta: generic, - kind: crate::error::DescribeMultiplexProgramErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeMultiplexProgramErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3414,7 +3823,7 @@ pub fn parse_describe_multiplex_program_response( #[allow(unused_mut)] let mut output = crate::output::describe_multiplex_program_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_multiplex_program_deser_operation( + output = crate::json_deser::deser_operation_describe_multiplex_program( response.body().as_ref(), output, ) @@ -3437,81 +3846,96 @@ pub fn parse_describe_offering_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::BadGatewayError({ + kind: crate::error::DescribeOfferingErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::BadRequestError({ + kind: crate::error::DescribeOfferingErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::ForbiddenError({ + kind: crate::error::DescribeOfferingErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeOfferingErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeOfferingErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::NotFoundError({ + kind: crate::error::DescribeOfferingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeOfferingError { meta: generic, - kind: crate::error::DescribeOfferingErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeOfferingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3533,7 +3957,7 @@ pub fn parse_describe_offering_response( let mut output = crate::output::describe_offering_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_offering_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_offering(response.body().as_ref(), output) .map_err(crate::error::DescribeOfferingError::unhandled)?; output.build() }) @@ -3555,81 +3979,96 @@ pub fn parse_describe_reservation_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::BadGatewayError({ + kind: crate::error::DescribeReservationErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::BadRequestError({ + kind: crate::error::DescribeReservationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::ForbiddenError({ + kind: crate::error::DescribeReservationErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeReservationErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeReservationErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::NotFoundError({ + kind: crate::error::DescribeReservationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeReservationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeReservationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeReservationError { meta: generic, - kind: crate::error::DescribeReservationErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeReservationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3652,7 +4091,7 @@ pub fn parse_describe_reservation_response( #[allow(unused_mut)] let mut output = crate::output::describe_reservation_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_reservation_deser_operation( + output = crate::json_deser::deser_operation_describe_reservation( response.body().as_ref(), output, ) @@ -3675,81 +4114,96 @@ pub fn parse_describe_schedule_error( Err(match error_code { "BadGatewayException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::BadGatewayError({ + kind: crate::error::DescribeScheduleErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::BadRequestError({ + kind: crate::error::DescribeScheduleErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::ForbiddenError({ + kind: crate::error::DescribeScheduleErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::GatewayTimeoutError({ + kind: crate::error::DescribeScheduleErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeScheduleErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::NotFoundError({ + kind: crate::error::DescribeScheduleErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeScheduleError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DescribeScheduleError { meta: generic, - kind: crate::error::DescribeScheduleErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeScheduleErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3771,7 +4225,7 @@ pub fn parse_describe_schedule_response( let mut output = crate::output::describe_schedule_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_schedule_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_schedule(response.body().as_ref(), output) .map_err(crate::error::DescribeScheduleError::unhandled)?; output.build() }) @@ -3790,70 +4244,82 @@ pub fn parse_list_channels_error( Err(match error_code { "BadGatewayException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::BadGatewayError({ + kind: crate::error::ListChannelsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::BadRequestError({ + kind: crate::error::ListChannelsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::ForbiddenError({ + kind: crate::error::ListChannelsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::GatewayTimeoutError({ + kind: crate::error::ListChannelsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::InternalServerErrorError({ + kind: crate::error::ListChannelsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::TooManyRequestsError({ + kind: crate::error::ListChannelsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3873,7 +4339,7 @@ pub fn parse_list_channels_response( #[allow(unused_mut)] let mut output = crate::output::list_channels_output::Builder::default(); let _ = response; - output = crate::json_deser::list_channels_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_channels(response.body().as_ref(), output) .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }) @@ -3893,70 +4359,82 @@ pub fn parse_list_input_devices_error( Err(match error_code { "BadGatewayException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::BadGatewayError({ + kind: crate::error::ListInputDevicesErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDevicesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::BadRequestError({ + kind: crate::error::ListInputDevicesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDevicesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::ForbiddenError({ + kind: crate::error::ListInputDevicesErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDevicesError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::GatewayTimeoutError({ + kind: crate::error::ListInputDevicesErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDevicesError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::InternalServerErrorError({ + kind: crate::error::ListInputDevicesErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListInputDevicesError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListInputDevicesError { meta: generic, - kind: crate::error::ListInputDevicesErrorKind::TooManyRequestsError({ + kind: crate::error::ListInputDevicesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3978,7 +4456,7 @@ pub fn parse_list_input_devices_response( let mut output = crate::output::list_input_devices_output::Builder::default(); let _ = response; output = - crate::json_deser::list_input_devices_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_input_devices(response.body().as_ref(), output) .map_err(crate::error::ListInputDevicesError::unhandled)?; output.build() }) @@ -4004,56 +4482,53 @@ pub fn parse_list_input_device_transfers_error( Err(match error_code { "BadGatewayException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::BadGatewayError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::BadRequestError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::ForbiddenError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::ListInputDeviceTransfersError { - meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::InternalServerErrorError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -4061,13 +4536,28 @@ pub fn parse_list_input_device_transfers_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::ListInputDeviceTransfersError { + meta: generic, + kind: crate::error::ListInputDeviceTransfersErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListInputDeviceTransfersError::unhandled)?; + output.build() + }, + ), + } + } "TooManyRequestsException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::TooManyRequestsError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4077,11 +4567,11 @@ pub fn parse_list_input_device_transfers_error( }, "UnprocessableEntityException" => crate::error::ListInputDeviceTransfersError { meta: generic, - kind: crate::error::ListInputDeviceTransfersErrorKind::UnprocessableEntityError({ + kind: crate::error::ListInputDeviceTransfersErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -4104,7 +4594,7 @@ pub fn parse_list_input_device_transfers_response( #[allow(unused_mut)] let mut output = crate::output::list_input_device_transfers_output::Builder::default(); let _ = response; - output = crate::json_deser::list_input_device_transfers_deser_operation( + output = crate::json_deser::deser_operation_list_input_device_transfers( response.body().as_ref(), output, ) @@ -4126,70 +4616,82 @@ pub fn parse_list_inputs_error( Err(match error_code { "BadGatewayException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::BadGatewayError({ + kind: crate::error::ListInputsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::BadRequestError({ + kind: crate::error::ListInputsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::ForbiddenError({ + kind: crate::error::ListInputsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::GatewayTimeoutError({ + kind: crate::error::ListInputsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputsError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::InternalServerErrorError({ + kind: crate::error::ListInputsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListInputsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListInputsError { meta: generic, - kind: crate::error::ListInputsErrorKind::TooManyRequestsError({ + kind: crate::error::ListInputsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4209,7 +4711,7 @@ pub fn parse_list_inputs_response( #[allow(unused_mut)] let mut output = crate::output::list_inputs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_inputs_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_inputs(response.body().as_ref(), output) .map_err(crate::error::ListInputsError::unhandled)?; output.build() }) @@ -4235,56 +4737,53 @@ pub fn parse_list_input_security_groups_error( Err(match error_code { "BadGatewayException" => crate::error::ListInputSecurityGroupsError { meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::BadGatewayError({ + kind: crate::error::ListInputSecurityGroupsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListInputSecurityGroupsError { meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::BadRequestError({ + kind: crate::error::ListInputSecurityGroupsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListInputSecurityGroupsError { meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::ForbiddenError({ + kind: crate::error::ListInputSecurityGroupsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListInputSecurityGroupsError { meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::ListInputSecurityGroupsError { - meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::InternalServerErrorError({ + kind: crate::error::ListInputSecurityGroupsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -4292,13 +4791,28 @@ pub fn parse_list_input_security_groups_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::ListInputSecurityGroupsError { + meta: generic, + kind: crate::error::ListInputSecurityGroupsErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListInputSecurityGroupsError::unhandled)?; + output.build() + }, + ), + } + } "TooManyRequestsException" => crate::error::ListInputSecurityGroupsError { meta: generic, - kind: crate::error::ListInputSecurityGroupsErrorKind::TooManyRequestsError({ + kind: crate::error::ListInputSecurityGroupsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4321,7 +4835,7 @@ pub fn parse_list_input_security_groups_response( #[allow(unused_mut)] let mut output = crate::output::list_input_security_groups_output::Builder::default(); let _ = response; - output = crate::json_deser::list_input_security_groups_deser_operation( + output = crate::json_deser::deser_operation_list_input_security_groups( response.body().as_ref(), output, ) @@ -4343,70 +4857,82 @@ pub fn parse_list_multiplexes_error( Err(match error_code { "BadGatewayException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::BadGatewayError({ + kind: crate::error::ListMultiplexesErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::BadRequestError({ + kind: crate::error::ListMultiplexesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::ForbiddenError({ + kind: crate::error::ListMultiplexesErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexesError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::GatewayTimeoutError({ + kind: crate::error::ListMultiplexesErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexesError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::InternalServerErrorError({ + kind: crate::error::ListMultiplexesErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListMultiplexesError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListMultiplexesError { meta: generic, - kind: crate::error::ListMultiplexesErrorKind::TooManyRequestsError({ + kind: crate::error::ListMultiplexesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4427,7 +4953,7 @@ pub fn parse_list_multiplexes_response( let mut output = crate::output::list_multiplexes_output::Builder::default(); let _ = response; output = - crate::json_deser::list_multiplexes_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_multiplexes(response.body().as_ref(), output) .map_err(crate::error::ListMultiplexesError::unhandled)?; output.build() }) @@ -4449,81 +4975,96 @@ pub fn parse_list_multiplex_programs_error( Err(match error_code { "BadGatewayException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::BadGatewayError({ + kind: crate::error::ListMultiplexProgramsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::BadRequestError({ + kind: crate::error::ListMultiplexProgramsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::ForbiddenError({ + kind: crate::error::ListMultiplexProgramsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::GatewayTimeoutError({ + kind: crate::error::ListMultiplexProgramsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::InternalServerErrorError({ + kind: crate::error::ListMultiplexProgramsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::NotFoundError({ + kind: crate::error::ListMultiplexProgramsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMultiplexProgramsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListMultiplexProgramsError { meta: generic, - kind: crate::error::ListMultiplexProgramsErrorKind::TooManyRequestsError({ + kind: crate::error::ListMultiplexProgramsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4546,7 +5087,7 @@ pub fn parse_list_multiplex_programs_response( #[allow(unused_mut)] let mut output = crate::output::list_multiplex_programs_output::Builder::default(); let _ = response; - output = crate::json_deser::list_multiplex_programs_deser_operation( + output = crate::json_deser::deser_operation_list_multiplex_programs( response.body().as_ref(), output, ) @@ -4568,70 +5109,82 @@ pub fn parse_list_offerings_error( Err(match error_code { "BadGatewayException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::BadGatewayError({ + kind: crate::error::ListOfferingsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOfferingsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::BadRequestError({ + kind: crate::error::ListOfferingsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOfferingsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::ForbiddenError({ + kind: crate::error::ListOfferingsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOfferingsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::GatewayTimeoutError({ + kind: crate::error::ListOfferingsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOfferingsError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::InternalServerErrorError({ + kind: crate::error::ListOfferingsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListOfferingsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListOfferingsError { meta: generic, - kind: crate::error::ListOfferingsErrorKind::TooManyRequestsError({ + kind: crate::error::ListOfferingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4652,7 +5205,7 @@ pub fn parse_list_offerings_response( let mut output = crate::output::list_offerings_output::Builder::default(); let _ = response; output = - crate::json_deser::list_offerings_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_offerings(response.body().as_ref(), output) .map_err(crate::error::ListOfferingsError::unhandled)?; output.build() }) @@ -4672,70 +5225,82 @@ pub fn parse_list_reservations_error( Err(match error_code { "BadGatewayException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::BadGatewayError({ + kind: crate::error::ListReservationsErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::ListReservationsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::BadRequestError({ + kind: crate::error::ListReservationsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListReservationsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::ForbiddenError({ + kind: crate::error::ListReservationsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListReservationsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::GatewayTimeoutError({ + kind: crate::error::ListReservationsErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::ListReservationsError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::InternalServerErrorError({ + kind: crate::error::ListReservationsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListReservationsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListReservationsError { meta: generic, - kind: crate::error::ListReservationsErrorKind::TooManyRequestsError({ + kind: crate::error::ListReservationsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4757,7 +5322,7 @@ pub fn parse_list_reservations_response( let mut output = crate::output::list_reservations_output::Builder::default(); let _ = response; output = - crate::json_deser::list_reservations_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_reservations(response.body().as_ref(), output) .map_err(crate::error::ListReservationsError::unhandled)?; output.build() }) @@ -4779,48 +5344,58 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "BadRequestException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::BadRequestError({ + kind: crate::error::ListTagsForResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ForbiddenError({ + kind: crate::error::ListTagsForResourceErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::InternalServerErrorError({ + kind: crate::error::ListTagsForResourceErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::NotFoundError({ + kind: crate::error::ListTagsForResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, @@ -4839,7 +5414,7 @@ pub fn parse_list_tags_for_resource_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_for_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_for_resource_deser_operation( + output = crate::json_deser::deser_operation_list_tags_for_resource( response.body().as_ref(), output, ) @@ -4862,92 +5437,110 @@ pub fn parse_purchase_offering_error( Err(match error_code { "BadGatewayException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::BadGatewayError({ + kind: crate::error::PurchaseOfferingErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::BadRequestError({ + kind: crate::error::PurchaseOfferingErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::ConflictError({ + kind: crate::error::PurchaseOfferingErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::ForbiddenError({ + kind: crate::error::PurchaseOfferingErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::GatewayTimeoutError({ + kind: crate::error::PurchaseOfferingErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::InternalServerErrorError({ + kind: crate::error::PurchaseOfferingErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::NotFoundError({ + kind: crate::error::PurchaseOfferingErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PurchaseOfferingError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PurchaseOfferingError { meta: generic, - kind: crate::error::PurchaseOfferingErrorKind::TooManyRequestsError({ + kind: crate::error::PurchaseOfferingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4969,7 +5562,7 @@ pub fn parse_purchase_offering_response( let mut output = crate::output::purchase_offering_output::Builder::default(); let _ = response; output = - crate::json_deser::purchase_offering_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_purchase_offering(response.body().as_ref(), output) .map_err(crate::error::PurchaseOfferingError::unhandled)?; output.build() }) @@ -4995,92 +5588,110 @@ pub fn parse_reject_input_device_transfer_error( Err(match error_code { "BadGatewayException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::BadGatewayError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::BadRequestError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::ConflictError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::ForbiddenError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::GatewayTimeoutError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::InternalServerErrorError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::NotFoundError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RejectInputDeviceTransferError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::TooManyRequestsError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5090,11 +5701,11 @@ pub fn parse_reject_input_device_transfer_error( }, "UnprocessableEntityException" => crate::error::RejectInputDeviceTransferError { meta: generic, - kind: crate::error::RejectInputDeviceTransferErrorKind::UnprocessableEntityError({ + kind: crate::error::RejectInputDeviceTransferErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -5134,92 +5745,110 @@ pub fn parse_start_channel_error( Err(match error_code { "BadGatewayException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::BadGatewayError({ + kind: crate::error::StartChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::BadRequestError({ + kind: crate::error::StartChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::ConflictError({ + kind: crate::error::StartChannelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::ForbiddenError({ + kind: crate::error::StartChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; - output.build() - }), - }, + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; + output.build() + }), + }, "GatewayTimeoutException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::StartChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::InternalServerErrorError({ + kind: crate::error::StartChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::StartChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::NotFoundError({ + kind: crate::error::StartChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::StartChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChannelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::StartChannelError { meta: generic, - kind: crate::error::StartChannelErrorKind::TooManyRequestsError({ + kind: crate::error::StartChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5239,7 +5868,7 @@ pub fn parse_start_channel_response( #[allow(unused_mut)] let mut output = crate::output::start_channel_output::Builder::default(); let _ = response; - output = crate::json_deser::start_channel_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_start_channel(response.body().as_ref(), output) .map_err(crate::error::StartChannelError::unhandled)?; output.build() }) @@ -5258,92 +5887,110 @@ pub fn parse_start_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::BadGatewayError({ + kind: crate::error::StartMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::BadRequestError({ + kind: crate::error::StartMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::ConflictError({ + kind: crate::error::StartMultiplexErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::ForbiddenError({ + kind: crate::error::StartMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::StartMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::StartMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::NotFoundError({ + kind: crate::error::StartMultiplexErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::StartMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::StartMultiplexError { meta: generic, - kind: crate::error::StartMultiplexErrorKind::TooManyRequestsError({ + kind: crate::error::StartMultiplexErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5364,7 +6011,7 @@ pub fn parse_start_multiplex_response( let mut output = crate::output::start_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::start_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_start_multiplex(response.body().as_ref(), output) .map_err(crate::error::StartMultiplexError::unhandled)?; output.build() }) @@ -5383,92 +6030,110 @@ pub fn parse_stop_channel_error( Err(match error_code { "BadGatewayException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::BadGatewayError({ + kind: crate::error::StopChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::BadRequestError({ + kind: crate::error::StopChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::ConflictError({ + kind: crate::error::StopChannelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::ForbiddenError({ + kind: crate::error::StopChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::StopChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::InternalServerErrorError({ + kind: crate::error::StopChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::StopChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::NotFoundError({ + kind: crate::error::StopChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::StopChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopChannelError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::StopChannelError { meta: generic, - kind: crate::error::StopChannelErrorKind::TooManyRequestsError({ + kind: crate::error::StopChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5488,7 +6153,7 @@ pub fn parse_stop_channel_response( #[allow(unused_mut)] let mut output = crate::output::stop_channel_output::Builder::default(); let _ = response; - output = crate::json_deser::stop_channel_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_stop_channel(response.body().as_ref(), output) .map_err(crate::error::StopChannelError::unhandled)?; output.build() }) @@ -5507,92 +6172,110 @@ pub fn parse_stop_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::BadGatewayError({ + kind: crate::error::StopMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::BadRequestError({ + kind: crate::error::StopMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::ConflictError({ + kind: crate::error::StopMultiplexErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::ForbiddenError({ + kind: crate::error::StopMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::StopMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::StopMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::NotFoundError({ + kind: crate::error::StopMultiplexErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::StopMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::StopMultiplexError { meta: generic, - kind: crate::error::StopMultiplexErrorKind::TooManyRequestsError({ + kind: crate::error::StopMultiplexErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5613,7 +6296,7 @@ pub fn parse_stop_multiplex_response( let mut output = crate::output::stop_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::stop_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_stop_multiplex(response.body().as_ref(), output) .map_err(crate::error::StopMultiplexError::unhandled)?; output.build() }) @@ -5635,92 +6318,110 @@ pub fn parse_transfer_input_device_error( Err(match error_code { "BadGatewayException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::BadGatewayError({ + kind: crate::error::TransferInputDeviceErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::BadRequestError({ + kind: crate::error::TransferInputDeviceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::ConflictError({ + kind: crate::error::TransferInputDeviceErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::ForbiddenError({ + kind: crate::error::TransferInputDeviceErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::GatewayTimeoutError({ + kind: crate::error::TransferInputDeviceErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::InternalServerErrorError({ + kind: crate::error::TransferInputDeviceErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::NotFoundError({ + kind: crate::error::TransferInputDeviceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TransferInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TransferInputDeviceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::TooManyRequestsError({ + kind: crate::error::TransferInputDeviceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5730,11 +6431,11 @@ pub fn parse_transfer_input_device_error( }, "UnprocessableEntityException" => crate::error::TransferInputDeviceError { meta: generic, - kind: crate::error::TransferInputDeviceErrorKind::UnprocessableEntityError({ + kind: crate::error::TransferInputDeviceErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -5774,81 +6475,96 @@ pub fn parse_update_channel_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::BadGatewayError({ + kind: crate::error::UpdateChannelErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::BadRequestError({ + kind: crate::error::UpdateChannelErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::ConflictError({ + kind: crate::error::UpdateChannelErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::ForbiddenError({ + kind: crate::error::UpdateChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateChannelErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "UnprocessableEntityException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -5869,7 +6585,7 @@ pub fn parse_update_channel_response( let mut output = crate::output::update_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::update_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_channel(response.body().as_ref(), output) .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }) @@ -5891,92 +6607,110 @@ pub fn parse_update_channel_class_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::BadGatewayError({ + kind: crate::error::UpdateChannelClassErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::BadRequestError({ + kind: crate::error::UpdateChannelClassErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::ConflictError({ + kind: crate::error::UpdateChannelClassErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::ForbiddenError({ + kind: crate::error::UpdateChannelClassErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateChannelClassErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateChannelClassErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::NotFoundError({ + kind: crate::error::UpdateChannelClassErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelClassError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelClassError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateChannelClassErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5986,11 +6720,11 @@ pub fn parse_update_channel_class_error( }, "UnprocessableEntityException" => crate::error::UpdateChannelClassError { meta: generic, - kind: crate::error::UpdateChannelClassErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateChannelClassErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -6013,7 +6747,7 @@ pub fn parse_update_channel_class_response( #[allow(unused_mut)] let mut output = crate::output::update_channel_class_output::Builder::default(); let _ = response; - output = crate::json_deser::update_channel_class_deser_operation( + output = crate::json_deser::deser_operation_update_channel_class( response.body().as_ref(), output, ) @@ -6035,82 +6769,100 @@ pub fn parse_update_input_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::BadGatewayError({ + kind: crate::error::UpdateInputErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::BadRequestError({ + kind: crate::error::UpdateInputErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::ConflictError({ + kind: crate::error::UpdateInputErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::ForbiddenError({ + kind: crate::error::UpdateInputErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateInputErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateInputErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateInputError { meta: generic, - kind: crate::error::UpdateInputErrorKind::NotFoundError({ + kind: crate::error::UpdateInputErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }), }, @@ -6126,7 +6878,7 @@ pub fn parse_update_input_response( #[allow(unused_mut)] let mut output = crate::output::update_input_output::Builder::default(); let _ = response; - output = crate::json_deser::update_input_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_input(response.body().as_ref(), output) .map_err(crate::error::UpdateInputError::unhandled)?; output.build() }) @@ -6146,81 +6898,96 @@ pub fn parse_update_input_device_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::BadGatewayError({ + kind: crate::error::UpdateInputDeviceErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::BadRequestError({ + kind: crate::error::UpdateInputDeviceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::ForbiddenError({ + kind: crate::error::UpdateInputDeviceErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateInputDeviceErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateInputDeviceErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::NotFoundError({ + kind: crate::error::UpdateInputDeviceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputDeviceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputDeviceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateInputDeviceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -6230,11 +6997,11 @@ pub fn parse_update_input_device_error( }, "UnprocessableEntityException" => crate::error::UpdateInputDeviceError { meta: generic, - kind: crate::error::UpdateInputDeviceErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateInputDeviceErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -6255,7 +7022,7 @@ pub fn parse_update_input_device_response( #[allow(unused_mut)] let mut output = crate::output::update_input_device_output::Builder::default(); let _ = response; - output = crate::json_deser::update_input_device_deser_operation( + output = crate::json_deser::deser_operation_update_input_device( response.body().as_ref(), output, ) @@ -6284,67 +7051,67 @@ pub fn parse_update_input_security_group_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::BadGatewayError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::BadRequestError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::ConflictError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::ForbiddenError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::UpdateInputSecurityGroupError { - meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -6352,14 +7119,32 @@ pub fn parse_update_input_security_group_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::UpdateInputSecurityGroupError { + meta: generic, + kind: crate::error::UpdateInputSecurityGroupErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::UpdateInputSecurityGroupError { meta: generic, - kind: crate::error::UpdateInputSecurityGroupErrorKind::NotFoundError({ + kind: crate::error::UpdateInputSecurityGroupErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateInputSecurityGroupError::unhandled)?; output.build() }), }, @@ -6378,7 +7163,7 @@ pub fn parse_update_input_security_group_response( #[allow(unused_mut)] let mut output = crate::output::update_input_security_group_output::Builder::default(); let _ = response; - output = crate::json_deser::update_input_security_group_deser_operation( + output = crate::json_deser::deser_operation_update_input_security_group( response.body().as_ref(), output, ) @@ -6400,92 +7185,110 @@ pub fn parse_update_multiplex_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::BadGatewayError({ + kind: crate::error::UpdateMultiplexErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::BadRequestError({ + kind: crate::error::UpdateMultiplexErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::ConflictError({ + kind: crate::error::UpdateMultiplexErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::ForbiddenError({ + kind: crate::error::UpdateMultiplexErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateMultiplexErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateMultiplexErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::NotFoundError({ + kind: crate::error::UpdateMultiplexErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }), }, "UnprocessableEntityException" => crate::error::UpdateMultiplexError { meta: generic, - kind: crate::error::UpdateMultiplexErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateMultiplexErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -6506,7 +7309,7 @@ pub fn parse_update_multiplex_response( let mut output = crate::output::update_multiplex_output::Builder::default(); let _ = response; output = - crate::json_deser::update_multiplex_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_multiplex(response.body().as_ref(), output) .map_err(crate::error::UpdateMultiplexError::unhandled)?; output.build() }) @@ -6532,67 +7335,67 @@ pub fn parse_update_multiplex_program_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::BadGatewayError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::BadRequestError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::ConflictError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::ForbiddenError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::GatewayTimeoutError({ - #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); - let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::UpdateMultiplexProgramError { - meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -6600,24 +7403,42 @@ pub fn parse_update_multiplex_program_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::UpdateMultiplexProgramError { + meta: generic, + kind: crate::error::UpdateMultiplexProgramErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::NotFoundError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMultiplexProgramError::unhandled)?; output.build() }), }, "UnprocessableEntityException" => crate::error::UpdateMultiplexProgramError { meta: generic, - kind: crate::error::UpdateMultiplexProgramErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateMultiplexProgramErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -6640,7 +7461,7 @@ pub fn parse_update_multiplex_program_response( #[allow(unused_mut)] let mut output = crate::output::update_multiplex_program_output::Builder::default(); let _ = response; - output = crate::json_deser::update_multiplex_program_deser_operation( + output = crate::json_deser::deser_operation_update_multiplex_program( response.body().as_ref(), output, ) @@ -6663,92 +7484,110 @@ pub fn parse_update_reservation_error( Err(match error_code { "BadGatewayException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::BadGatewayError({ + kind: crate::error::UpdateReservationErrorKind::BadGatewayException({ #[allow(unused_mut)] - let mut output = crate::error::bad_gateway_error::Builder::default(); + let mut output = crate::error::bad_gateway_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_gateway_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_gateway_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::BadRequestError({ + kind: crate::error::UpdateReservationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::ConflictError({ + kind: crate::error::UpdateReservationErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::ForbiddenError({ + kind: crate::error::UpdateReservationErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "GatewayTimeoutException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::GatewayTimeoutError({ + kind: crate::error::UpdateReservationErrorKind::GatewayTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::gateway_timeout_error::Builder::default(); + let mut output = crate::error::gateway_timeout_exception::Builder::default(); let _ = response; - output = - crate::json_deser::gateway_timeout_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_gateway_timeout_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateReservationErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::NotFoundError({ + kind: crate::error::UpdateReservationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateReservationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateReservationError { meta: generic, - kind: crate::error::UpdateReservationErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateReservationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -6770,7 +7609,7 @@ pub fn parse_update_reservation_response( let mut output = crate::output::update_reservation_output::Builder::default(); let _ = response; output = - crate::json_deser::update_reservation_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_reservation(response.body().as_ref(), output) .map_err(crate::error::UpdateReservationError::unhandled)?; output.build() }) diff --git a/sdk/medialive/src/operation_ser.rs b/sdk/medialive/src/operation_ser.rs index 362a9bc7645b..2f6191ae28d3 100644 --- a/sdk/medialive/src/operation_ser.rs +++ b/sdk/medialive/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_batch_delete( input: &crate::input::BatchDeleteInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_delete_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_batch_delete( pub fn serialize_operation_batch_start( input: &crate::input::BatchStartInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_start_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_batch_start( pub fn serialize_operation_batch_stop( input: &crate::input::BatchStopInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_stop_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_batch_stop( pub fn serialize_operation_batch_update_schedule( input: &crate::input::BatchUpdateScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_update_schedule_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_batch_update_schedule( pub fn serialize_operation_create_channel( input: &crate::input::CreateChannelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_channel_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_channel( pub fn serialize_operation_create_input( input: &crate::input::CreateInputInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_input_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_create_input( pub fn serialize_operation_create_input_security_group( input: &crate::input::CreateInputSecurityGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_input_security_group_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_create_input_security_group( pub fn serialize_operation_create_multiplex( input: &crate::input::CreateMultiplexInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_multiplex_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_create_multiplex( pub fn serialize_operation_create_multiplex_program( input: &crate::input::CreateMultiplexProgramInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_multiplex_program_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_create_multiplex_program( pub fn serialize_operation_create_partner_input( input: &crate::input::CreatePartnerInputInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_partner_input_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_create_partner_input( pub fn serialize_operation_create_tags( input: &crate::input::CreateTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_tags_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_create_tags( pub fn serialize_operation_purchase_offering( input: &crate::input::PurchaseOfferingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_purchase_offering_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_purchase_offering( pub fn serialize_operation_transfer_input_device( input: &crate::input::TransferInputDeviceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_transfer_input_device_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_transfer_input_device( pub fn serialize_operation_update_channel( input: &crate::input::UpdateChannelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_channel_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_update_channel( pub fn serialize_operation_update_channel_class( input: &crate::input::UpdateChannelClassInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_channel_class_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_update_channel_class( pub fn serialize_operation_update_input( input: &crate::input::UpdateInputInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_input_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_update_input( pub fn serialize_operation_update_input_device( input: &crate::input::UpdateInputDeviceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_input_device_input(&mut object, input); @@ -171,7 +171,7 @@ pub fn serialize_operation_update_input_device( pub fn serialize_operation_update_input_security_group( input: &crate::input::UpdateInputSecurityGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_input_security_group_input(&mut object, input); @@ -181,7 +181,7 @@ pub fn serialize_operation_update_input_security_group( pub fn serialize_operation_update_multiplex( input: &crate::input::UpdateMultiplexInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_multiplex_input(&mut object, input); @@ -191,7 +191,7 @@ pub fn serialize_operation_update_multiplex( pub fn serialize_operation_update_multiplex_program( input: &crate::input::UpdateMultiplexProgramInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_multiplex_program_input(&mut object, input); @@ -201,7 +201,7 @@ pub fn serialize_operation_update_multiplex_program( pub fn serialize_operation_update_reservation( input: &crate::input::UpdateReservationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_reservation_input(&mut object, input); diff --git a/sdk/medialive/src/serializer.rs b/sdk/medialive/src/serializer.rs deleted file mode 100644 index 53168c4d6e90..000000000000 --- a/sdk/medialive/src/serializer.rs +++ /dev/null @@ -1,2400 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/// A request to delete resources -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchDeleteInputBody<'a> { - /// List of channel IDs - pub channel_ids: &'a std::option::Option>, - /// List of input IDs - pub input_ids: &'a std::option::Option>, - /// List of input security group IDs - pub input_security_group_ids: &'a std::option::Option>, - /// List of multiplex IDs - pub multiplex_ids: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for BatchDeleteInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchDeleteInputBody"); - formatter.field("channel_ids", &self.channel_ids); - formatter.field("input_ids", &self.input_ids); - formatter.field("input_security_group_ids", &self.input_security_group_ids); - formatter.field("multiplex_ids", &self.multiplex_ids); - formatter.finish() - } -} - -/// A request to start resources -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchStartInputBody<'a> { - /// List of channel IDs - pub channel_ids: &'a std::option::Option>, - /// List of multiplex IDs - pub multiplex_ids: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for BatchStartInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchStartInputBody"); - formatter.field("channel_ids", &self.channel_ids); - formatter.field("multiplex_ids", &self.multiplex_ids); - formatter.finish() - } -} - -/// A request to stop resources -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchStopInputBody<'a> { - /// List of channel IDs - pub channel_ids: &'a std::option::Option>, - /// List of multiplex IDs - pub multiplex_ids: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for BatchStopInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchStopInputBody"); - formatter.field("channel_ids", &self.channel_ids); - formatter.field("multiplex_ids", &self.multiplex_ids); - formatter.finish() - } -} - -/// List of actions to create and list of actions to delete. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchUpdateScheduleInputBody<'a> { - /// Schedule actions to create in the schedule. - pub creates: &'a std::option::Option, - /// Schedule actions to delete from the schedule. - pub deletes: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for BatchUpdateScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchUpdateScheduleInputBody"); - formatter.field("creates", &self.creates); - formatter.field("deletes", &self.deletes); - formatter.finish() - } -} - -/// A request to create a channel -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateChannelInputBody<'a> { - /// Specification of CDI inputs for this channel - pub cdi_input_specification: &'a std::option::Option, - /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - pub channel_class: &'a std::option::Option, - /// Placeholder documentation for __listOfOutputDestination - pub destinations: &'a std::option::Option>, - /// Encoder Settings - pub encoder_settings: &'a std::option::Option, - /// List of input attachments for channel. - pub input_attachments: &'a std::option::Option>, - /// Specification of network and file inputs for this channel - pub input_specification: &'a std::option::Option, - /// The log level to write to CloudWatch Logs. - pub log_level: &'a std::option::Option, - /// Name of channel. - pub name: &'a std::option::Option, - /// Unique request ID to be specified. This is needed to prevent retries from - /// creating multiple resources. - pub request_id: &'a std::option::Option, - /// Deprecated field that's only usable by whitelisted customers. - pub reserved: &'a std::option::Option, - /// An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. - pub role_arn: &'a std::option::Option, - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - /// Settings for VPC output - pub vpc: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateChannelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateChannelInputBody"); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("request_id", &self.request_id); - formatter.field("reserved", &self.reserved); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// The name of the input -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateInputInputBody<'a> { - /// Destination settings for PUSH type inputs. - pub destinations: &'a std::option::Option>, - /// Settings for the devices. - pub input_devices: &'a std::option::Option>, - /// A list of security groups referenced by IDs to attach to the input. - pub input_security_groups: &'a std::option::Option>, - /// A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one - /// Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a - /// separate Availability Zone as this ensures your EML input is redundant to AZ issues. - pub media_connect_flows: - &'a std::option::Option>, - /// Name of the input. - pub name: &'a std::option::Option, - /// Unique identifier of the request to ensure the request is handled - /// exactly once in case of retries. - pub request_id: &'a std::option::Option, - /// The Amazon Resource Name (ARN) of the role this input assumes during and after creation. - pub role_arn: &'a std::option::Option, - /// The source URLs for a PULL-type input. Every PULL type input needs - /// exactly two source URLs for redundancy. - /// Only specify sources for PULL type Inputs. Leave Destinations empty. - pub sources: &'a std::option::Option>, - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - /// Placeholder documentation for InputType - pub r#type: &'a std::option::Option, - /// Settings for a private VPC Input. - /// When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. - /// This property requires setting the roleArn property on Input creation. - /// Not compatible with the inputSecurityGroups property. - pub vpc: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateInputInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateInputInputBody"); - formatter.field("destinations", &self.destinations); - formatter.field("input_devices", &self.input_devices); - formatter.field("input_security_groups", &self.input_security_groups); - formatter.field("media_connect_flows", &self.media_connect_flows); - formatter.field("name", &self.name); - formatter.field("request_id", &self.request_id); - formatter.field("role_arn", &self.role_arn); - formatter.field("sources", &self.sources); - formatter.field("tags", &self.tags); - formatter.field("r#type", &self.r#type); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// The IPv4 CIDRs to whitelist for this Input Security Group -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateInputSecurityGroupInputBody<'a> { - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - /// List of IPv4 CIDR addresses to whitelist - pub whitelist_rules: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateInputSecurityGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateInputSecurityGroupInputBody"); - formatter.field("tags", &self.tags); - formatter.field("whitelist_rules", &self.whitelist_rules); - formatter.finish() - } -} - -/// A request to create a multiplex. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMultiplexInputBody<'a> { - /// A list of availability zones for the multiplex. You must specify exactly two. - pub availability_zones: &'a std::option::Option>, - /// Configuration for a multiplex event. - pub multiplex_settings: &'a std::option::Option, - /// Name of multiplex. - pub name: &'a std::option::Option, - /// Unique request ID. This prevents retries from creating multiple - /// resources. - pub request_id: &'a std::option::Option, - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateMultiplexInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMultiplexInputBody"); - formatter.field("availability_zones", &self.availability_zones); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.field("request_id", &self.request_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// A request to create a program in a multiplex. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMultiplexProgramInputBody<'a> { - /// The settings for this multiplex program. - pub multiplex_program_settings: &'a std::option::Option, - /// Name of multiplex program. - pub program_name: &'a std::option::Option, - /// Unique request ID. This prevents retries from creating multiple - /// resources. - pub request_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateMultiplexProgramInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMultiplexProgramInputBody"); - formatter.field( - "multiplex_program_settings", - &self.multiplex_program_settings, - ); - formatter.field("program_name", &self.program_name); - formatter.field("request_id", &self.request_id); - formatter.finish() - } -} - -/// A request to create a partner input -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePartnerInputInputBody<'a> { - /// Unique identifier of the request to ensure the request is handled - /// exactly once in case of retries. - pub request_id: &'a std::option::Option, - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreatePartnerInputInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePartnerInputInputBody"); - formatter.field("request_id", &self.request_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for CreateTagsRequest -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTagsInputBody<'a> { - /// Placeholder documentation for Tags - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateTagsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTagsInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for PurchaseOfferingRequest -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PurchaseOfferingInputBody<'a> { - /// Number of resources - pub count: &'a i32, - /// Name for the new reservation - pub name: &'a std::option::Option, - /// Unique request ID to be specified. This is needed to prevent retries from creating multiple resources. - pub request_id: &'a std::option::Option, - /// Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now. - pub start: &'a std::option::Option, - /// A collection of key-value pairs - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for PurchaseOfferingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PurchaseOfferingInputBody"); - formatter.field("count", &self.count); - formatter.field("name", &self.name); - formatter.field("request_id", &self.request_id); - formatter.field("start", &self.start); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// A request to transfer an input device. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TransferInputDeviceInputBody<'a> { - /// The AWS account ID (12 digits) for the recipient of the device transfer. - pub target_customer_id: &'a std::option::Option, - /// The target AWS region to transfer the device. - pub target_region: &'a std::option::Option, - /// An optional message for the recipient. Maximum 280 characters. - pub transfer_message: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TransferInputDeviceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TransferInputDeviceInputBody"); - formatter.field("target_customer_id", &self.target_customer_id); - formatter.field("target_region", &self.target_region); - formatter.field("transfer_message", &self.transfer_message); - formatter.finish() - } -} - -/// A request to update a channel. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelInputBody<'a> { - /// Specification of CDI inputs for this channel - pub cdi_input_specification: &'a std::option::Option, - /// A list of output destinations for this channel. - pub destinations: &'a std::option::Option>, - /// The encoder settings for this channel. - pub encoder_settings: &'a std::option::Option, - /// Placeholder documentation for __listOfInputAttachment - pub input_attachments: &'a std::option::Option>, - /// Specification of network and file inputs for this channel - pub input_specification: &'a std::option::Option, - /// The log level to write to CloudWatch Logs. - pub log_level: &'a std::option::Option, - /// The name of the channel. - pub name: &'a std::option::Option, - /// An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this on an update call but the role was previously set that role will be removed. - pub role_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateChannelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelInputBody"); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("destinations", &self.destinations); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -/// Channel class that the channel should be updated to. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelClassInputBody<'a> { - /// The channel class that you wish to update this channel to use. - pub channel_class: &'a std::option::Option, - /// A list of output destinations for this channel. - pub destinations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateChannelClassInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelClassInputBody"); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.finish() - } -} - -/// A request to update an input. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputInputBody<'a> { - /// Destination settings for PUSH type inputs. - pub destinations: &'a std::option::Option>, - /// Settings for the devices. - pub input_devices: &'a std::option::Option>, - /// A list of security groups referenced by IDs to attach to the input. - pub input_security_groups: &'a std::option::Option>, - /// A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as one - /// Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a - /// separate Availability Zone as this ensures your EML input is redundant to AZ issues. - pub media_connect_flows: - &'a std::option::Option>, - /// Name of the input. - pub name: &'a std::option::Option, - /// The Amazon Resource Name (ARN) of the role this input assumes during and after creation. - pub role_arn: &'a std::option::Option, - /// The source URLs for a PULL-type input. Every PULL type input needs - /// exactly two source URLs for redundancy. - /// Only specify sources for PULL type Inputs. Leave Destinations empty. - pub sources: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateInputInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputInputBody"); - formatter.field("destinations", &self.destinations); - formatter.field("input_devices", &self.input_devices); - formatter.field("input_security_groups", &self.input_security_groups); - formatter.field("media_connect_flows", &self.media_connect_flows); - formatter.field("name", &self.name); - formatter.field("role_arn", &self.role_arn); - formatter.field("sources", &self.sources); - formatter.finish() - } -} - -/// A request to update an input device. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputDeviceInputBody<'a> { - /// The settings that you want to apply to the HD input device. - pub hd_device_settings: &'a std::option::Option, - /// The name that you assigned to this input device (not the unique ID). - pub name: &'a std::option::Option, - /// The settings that you want to apply to the UHD input device. - pub uhd_device_settings: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateInputDeviceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputDeviceInputBody"); - formatter.field("hd_device_settings", &self.hd_device_settings); - formatter.field("name", &self.name); - formatter.field("uhd_device_settings", &self.uhd_device_settings); - formatter.finish() - } -} - -/// The request to update some combination of the Input Security Group name and the IPv4 CIDRs the Input Security Group should allow. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputSecurityGroupInputBody<'a> { - /// A collection of key-value pairs. - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - /// List of IPv4 CIDR addresses to whitelist - pub whitelist_rules: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateInputSecurityGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputSecurityGroupInputBody"); - formatter.field("tags", &self.tags); - formatter.field("whitelist_rules", &self.whitelist_rules); - formatter.finish() - } -} - -/// A request to update a multiplex. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMultiplexInputBody<'a> { - /// The new settings for a multiplex. - pub multiplex_settings: &'a std::option::Option, - /// Name of the multiplex. - pub name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMultiplexInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMultiplexInputBody"); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.finish() - } -} - -/// A request to update a program in a multiplex. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMultiplexProgramInputBody<'a> { - /// The new settings for a multiplex program. - pub multiplex_program_settings: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMultiplexProgramInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMultiplexProgramInputBody"); - formatter.field( - "multiplex_program_settings", - &self.multiplex_program_settings, - ); - formatter.finish() - } -} - -/// Request to update a reservation -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateReservationInputBody<'a> { - /// Name of the reservation - pub name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateReservationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateReservationInputBody"); - formatter.field("name", &self.name); - formatter.finish() - } -} - -/// Placeholder documentation for BatchDeleteResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchDeleteOutputBody { - /// List of failed operations - #[serde(rename = "failed")] - #[serde(default)] - pub failed: std::option::Option>, - /// List of successful operations - #[serde(rename = "successful")] - #[serde(default)] - pub successful: std::option::Option>, -} -impl std::fmt::Debug for BatchDeleteOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchDeleteOutputBody"); - formatter.field("failed", &self.failed); - formatter.field("successful", &self.successful); - formatter.finish() - } -} - -/// Placeholder documentation for BatchStartResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchStartOutputBody { - /// List of failed operations - #[serde(rename = "failed")] - #[serde(default)] - pub failed: std::option::Option>, - /// List of successful operations - #[serde(rename = "successful")] - #[serde(default)] - pub successful: std::option::Option>, -} -impl std::fmt::Debug for BatchStartOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchStartOutputBody"); - formatter.field("failed", &self.failed); - formatter.field("successful", &self.successful); - formatter.finish() - } -} - -/// Placeholder documentation for BatchStopResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchStopOutputBody { - /// List of failed operations - #[serde(rename = "failed")] - #[serde(default)] - pub failed: std::option::Option>, - /// List of successful operations - #[serde(rename = "successful")] - #[serde(default)] - pub successful: std::option::Option>, -} -impl std::fmt::Debug for BatchStopOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchStopOutputBody"); - formatter.field("failed", &self.failed); - formatter.field("successful", &self.successful); - formatter.finish() - } -} - -/// Placeholder documentation for BatchUpdateScheduleResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchUpdateScheduleOutputBody { - /// Schedule actions created in the schedule. - #[serde(rename = "creates")] - #[serde(default)] - pub creates: std::option::Option, - /// Schedule actions deleted from the schedule. - #[serde(rename = "deletes")] - #[serde(default)] - pub deletes: std::option::Option, -} -impl std::fmt::Debug for BatchUpdateScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchUpdateScheduleOutputBody"); - formatter.field("creates", &self.creates); - formatter.field("deletes", &self.deletes); - formatter.finish() - } -} - -/// Placeholder documentation for CreateChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateChannelOutputBody { - /// Placeholder documentation for Channel - #[serde(rename = "channel")] - #[serde(default)] - pub channel: std::option::Option, -} -impl std::fmt::Debug for CreateChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateChannelOutputBody"); - formatter.field("channel", &self.channel); - formatter.finish() - } -} - -/// Placeholder documentation for CreateInputResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateInputOutputBody { - /// Placeholder documentation for Input - #[serde(rename = "input")] - #[serde(default)] - pub input: std::option::Option, -} -impl std::fmt::Debug for CreateInputOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateInputOutputBody"); - formatter.field("input", &self.input); - formatter.finish() - } -} - -/// Placeholder documentation for CreateInputSecurityGroupResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateInputSecurityGroupOutputBody { - /// An Input Security Group - #[serde(rename = "securityGroup")] - #[serde(default)] - pub security_group: std::option::Option, -} -impl std::fmt::Debug for CreateInputSecurityGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateInputSecurityGroupOutputBody"); - formatter.field("security_group", &self.security_group); - formatter.finish() - } -} - -/// Placeholder documentation for CreateMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMultiplexOutputBody { - /// The newly created multiplex. - #[serde(rename = "multiplex")] - #[serde(default)] - pub multiplex: std::option::Option, -} -impl std::fmt::Debug for CreateMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMultiplexOutputBody"); - formatter.field("multiplex", &self.multiplex); - formatter.finish() - } -} - -/// Placeholder documentation for CreateMultiplexProgramResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMultiplexProgramOutputBody { - /// The newly created multiplex program. - #[serde(rename = "multiplexProgram")] - #[serde(default)] - pub multiplex_program: std::option::Option, -} -impl std::fmt::Debug for CreateMultiplexProgramOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMultiplexProgramOutputBody"); - formatter.field("multiplex_program", &self.multiplex_program); - formatter.finish() - } -} - -/// Placeholder documentation for CreatePartnerInputResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePartnerInputOutputBody { - /// Placeholder documentation for Input - #[serde(rename = "input")] - #[serde(default)] - pub input: std::option::Option, -} -impl std::fmt::Debug for CreatePartnerInputOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePartnerInputOutputBody"); - formatter.field("input", &self.input); - formatter.finish() - } -} - -/// Placeholder documentation for DeleteChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteChannelOutputBody { - /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] - pub cdi_input_specification: std::option::Option, - /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] - pub channel_class: std::option::Option, - /// A list of destinations of the channel. For UDP outputs, there is one - /// destination per output. For other types (HLS, for example), there is - /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] - pub egress_endpoints: std::option::Option>, - /// Encoder Settings - #[serde(rename = "encoderSettings")] - #[serde(default)] - pub encoder_settings: std::option::Option, - /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] - pub input_attachments: std::option::Option>, - /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] - pub input_specification: std::option::Option, - /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] - pub log_level: std::option::Option, - /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Runtime details for the pipelines of a running channel. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: std::option::Option>, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] - pub vpc: std::option::Option, -} -impl std::fmt::Debug for DeleteChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.field("egress_endpoints", &self.egress_endpoints); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("id", &self.id); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("role_arn", &self.role_arn); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// Placeholder documentation for DeleteMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMultiplexOutputBody { - /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] - pub availability_zones: std::option::Option>, - /// A list of the multiplex output destinations. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] - pub multiplex_settings: std::option::Option, - /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] - pub program_count: i32, - /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for DeleteMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMultiplexOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("availability_zones", &self.availability_zones); - formatter.field("destinations", &self.destinations); - formatter.field("id", &self.id); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("program_count", &self.program_count); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for DeleteMultiplexProgramResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMultiplexProgramOutputBody { - /// The MediaLive channel associated with the program. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// The settings for this multiplex program. - #[serde(rename = "multiplexProgramSettings")] - #[serde(default)] - pub multiplex_program_settings: std::option::Option, - /// The packet identifier map for this multiplex program. - #[serde(rename = "packetIdentifiersMap")] - #[serde(default)] - pub packet_identifiers_map: - std::option::Option, - /// Contains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: - std::option::Option>, - /// The name of the multiplex program. - #[serde(rename = "programName")] - #[serde(default)] - pub program_name: std::option::Option, -} -impl std::fmt::Debug for DeleteMultiplexProgramOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMultiplexProgramOutputBody"); - formatter.field("channel_id", &self.channel_id); - formatter.field( - "multiplex_program_settings", - &self.multiplex_program_settings, - ); - formatter.field("packet_identifiers_map", &self.packet_identifiers_map); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("program_name", &self.program_name); - formatter.finish() - } -} - -/// Placeholder documentation for DeleteReservationResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteReservationOutputBody { - /// Unique reservation ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567' - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Number of reserved resources - #[serde(rename = "count")] - #[serde(default)] - pub count: i32, - /// Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' - #[serde(rename = "currencyCode")] - #[serde(default)] - pub currency_code: std::option::Option, - /// Lease duration, e.g. '12' - #[serde(rename = "duration")] - #[serde(default)] - pub duration: i32, - /// Units for duration, e.g. 'MONTHS' - #[serde(rename = "durationUnits")] - #[serde(default)] - pub duration_units: std::option::Option, - /// Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00' - #[serde(rename = "end")] - #[serde(default)] - pub end: std::option::Option, - /// One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - #[serde(rename = "fixedPrice")] - #[serde(default)] - pub fixed_price: f64, - /// User specified reservation name - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)' - #[serde(rename = "offeringDescription")] - #[serde(default)] - pub offering_description: std::option::Option, - /// Unique offering ID, e.g. '87654321' - #[serde(rename = "offeringId")] - #[serde(default)] - pub offering_id: std::option::Option, - /// Offering type, e.g. 'NO_UPFRONT' - #[serde(rename = "offeringType")] - #[serde(default)] - pub offering_type: std::option::Option, - /// AWS region, e.g. 'us-west-2' - #[serde(rename = "region")] - #[serde(default)] - pub region: std::option::Option, - /// Unique reservation ID, e.g. '1234567' - #[serde(rename = "reservationId")] - #[serde(default)] - pub reservation_id: std::option::Option, - /// Resource configuration details - #[serde(rename = "resourceSpecification")] - #[serde(default)] - pub resource_specification: std::option::Option, - /// Reservation UTC start date and time in ISO-8601 format, e.g. '2018-03-01T00:00:00' - #[serde(rename = "start")] - #[serde(default)] - pub start: std::option::Option, - /// Current state of reservation, e.g. 'ACTIVE' - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Recurring usage charge for each reserved resource, e.g. '157.0' - #[serde(rename = "usagePrice")] - #[serde(default)] - pub usage_price: f64, -} -impl std::fmt::Debug for DeleteReservationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteReservationOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("count", &self.count); - formatter.field("currency_code", &self.currency_code); - formatter.field("duration", &self.duration); - formatter.field("duration_units", &self.duration_units); - formatter.field("end", &self.end); - formatter.field("fixed_price", &self.fixed_price); - formatter.field("name", &self.name); - formatter.field("offering_description", &self.offering_description); - formatter.field("offering_id", &self.offering_id); - formatter.field("offering_type", &self.offering_type); - formatter.field("region", &self.region); - formatter.field("reservation_id", &self.reservation_id); - formatter.field("resource_specification", &self.resource_specification); - formatter.field("start", &self.start); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("usage_price", &self.usage_price); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeChannelOutputBody { - /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] - pub cdi_input_specification: std::option::Option, - /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] - pub channel_class: std::option::Option, - /// A list of destinations of the channel. For UDP outputs, there is one - /// destination per output. For other types (HLS, for example), there is - /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] - pub egress_endpoints: std::option::Option>, - /// Encoder Settings - #[serde(rename = "encoderSettings")] - #[serde(default)] - pub encoder_settings: std::option::Option, - /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] - pub input_attachments: std::option::Option>, - /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] - pub input_specification: std::option::Option, - /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] - pub log_level: std::option::Option, - /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Runtime details for the pipelines of a running channel. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: std::option::Option>, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] - pub vpc: std::option::Option, -} -impl std::fmt::Debug for DescribeChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.field("egress_endpoints", &self.egress_endpoints); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("id", &self.id); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("role_arn", &self.role_arn); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeInputResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInputOutputBody { - /// The Unique ARN of the input (generated, immutable). - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A list of channel IDs that that input is attached to (currently an input can only be attached to one channel). - #[serde(rename = "attachedChannels")] - #[serde(default)] - pub attached_channels: std::option::Option>, - /// A list of the destinations of the input (PUSH-type). - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The generated ID of the input (unique for user account, immutable). - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. - /// SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input. - #[serde(rename = "inputClass")] - #[serde(default)] - pub input_class: std::option::Option, - /// Settings for the input devices. - #[serde(rename = "inputDevices")] - #[serde(default)] - pub input_devices: std::option::Option>, - /// A list of IDs for all Inputs which are partners of this one. - #[serde(rename = "inputPartnerIds")] - #[serde(default)] - pub input_partner_ids: std::option::Option>, - /// Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes - /// during input switch actions. Presently, this functionality only works with MP4_FILE inputs. - #[serde(rename = "inputSourceType")] - #[serde(default)] - pub input_source_type: std::option::Option, - /// A list of MediaConnect Flows for this input. - #[serde(rename = "mediaConnectFlows")] - #[serde(default)] - pub media_connect_flows: std::option::Option>, - /// The user-assigned name (This is a mutable value). - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The Amazon Resource Name (ARN) of the role this input assumes during and after creation. - #[serde(rename = "roleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - /// A list of IDs for all the Input Security Groups attached to the input. - #[serde(rename = "securityGroups")] - #[serde(default)] - pub security_groups: std::option::Option>, - /// A list of the sources of the input (PULL-type). - #[serde(rename = "sources")] - #[serde(default)] - pub sources: std::option::Option>, - /// Placeholder documentation for InputState - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Placeholder documentation for InputType - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, -} -impl std::fmt::Debug for DescribeInputOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInputOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("attached_channels", &self.attached_channels); - formatter.field("destinations", &self.destinations); - formatter.field("id", &self.id); - formatter.field("input_class", &self.input_class); - formatter.field("input_devices", &self.input_devices); - formatter.field("input_partner_ids", &self.input_partner_ids); - formatter.field("input_source_type", &self.input_source_type); - formatter.field("media_connect_flows", &self.media_connect_flows); - formatter.field("name", &self.name); - formatter.field("role_arn", &self.role_arn); - formatter.field("security_groups", &self.security_groups); - formatter.field("sources", &self.sources); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("r#type", &self.r#type); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeInputDeviceResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInputDeviceOutputBody { - /// The unique ARN of the input device. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// The state of the connection between the input device and AWS. - #[serde(rename = "connectionState")] - #[serde(default)] - pub connection_state: std::option::Option, - /// The status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration. - #[serde(rename = "deviceSettingsSyncState")] - #[serde(default)] - pub device_settings_sync_state: std::option::Option, - /// The status of software on the input device. - #[serde(rename = "deviceUpdateStatus")] - #[serde(default)] - pub device_update_status: std::option::Option, - /// Settings that describe an input device that is type HD. - #[serde(rename = "hdDeviceSettings")] - #[serde(default)] - pub hd_device_settings: std::option::Option, - /// The unique ID of the input device. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// The network MAC address of the input device. - #[serde(rename = "macAddress")] - #[serde(default)] - pub mac_address: std::option::Option, - /// A name that you specify for the input device. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The network settings for the input device. - #[serde(rename = "networkSettings")] - #[serde(default)] - pub network_settings: std::option::Option, - /// The unique serial number of the input device. - #[serde(rename = "serialNumber")] - #[serde(default)] - pub serial_number: std::option::Option, - /// The type of the input device. - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - /// Settings that describe an input device that is type UHD. - #[serde(rename = "uhdDeviceSettings")] - #[serde(default)] - pub uhd_device_settings: std::option::Option, -} -impl std::fmt::Debug for DescribeInputDeviceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInputDeviceOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("connection_state", &self.connection_state); - formatter.field( - "device_settings_sync_state", - &self.device_settings_sync_state, - ); - formatter.field("device_update_status", &self.device_update_status); - formatter.field("hd_device_settings", &self.hd_device_settings); - formatter.field("id", &self.id); - formatter.field("mac_address", &self.mac_address); - formatter.field("name", &self.name); - formatter.field("network_settings", &self.network_settings); - formatter.field("serial_number", &self.serial_number); - formatter.field("r#type", &self.r#type); - formatter.field("uhd_device_settings", &self.uhd_device_settings); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeInputSecurityGroupResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInputSecurityGroupOutputBody { - /// Unique ARN of Input Security Group - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// The Id of the Input Security Group - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// The list of inputs currently using this Input Security Group. - #[serde(rename = "inputs")] - #[serde(default)] - pub inputs: std::option::Option>, - /// The current state of the Input Security Group. - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Whitelist rules and their sync status - #[serde(rename = "whitelistRules")] - #[serde(default)] - pub whitelist_rules: std::option::Option>, -} -impl std::fmt::Debug for DescribeInputSecurityGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInputSecurityGroupOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("id", &self.id); - formatter.field("inputs", &self.inputs); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("whitelist_rules", &self.whitelist_rules); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMultiplexOutputBody { - /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] - pub availability_zones: std::option::Option>, - /// A list of the multiplex output destinations. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] - pub multiplex_settings: std::option::Option, - /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] - pub program_count: i32, - /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for DescribeMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMultiplexOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("availability_zones", &self.availability_zones); - formatter.field("destinations", &self.destinations); - formatter.field("id", &self.id); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("program_count", &self.program_count); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeMultiplexProgramResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMultiplexProgramOutputBody { - /// The MediaLive channel associated with the program. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// The settings for this multiplex program. - #[serde(rename = "multiplexProgramSettings")] - #[serde(default)] - pub multiplex_program_settings: std::option::Option, - /// The packet identifier map for this multiplex program. - #[serde(rename = "packetIdentifiersMap")] - #[serde(default)] - pub packet_identifiers_map: - std::option::Option, - /// Contains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: - std::option::Option>, - /// The name of the multiplex program. - #[serde(rename = "programName")] - #[serde(default)] - pub program_name: std::option::Option, -} -impl std::fmt::Debug for DescribeMultiplexProgramOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMultiplexProgramOutputBody"); - formatter.field("channel_id", &self.channel_id); - formatter.field( - "multiplex_program_settings", - &self.multiplex_program_settings, - ); - formatter.field("packet_identifiers_map", &self.packet_identifiers_map); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("program_name", &self.program_name); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeOfferingResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOfferingOutputBody { - /// Unique offering ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:offering:87654321' - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' - #[serde(rename = "currencyCode")] - #[serde(default)] - pub currency_code: std::option::Option, - /// Lease duration, e.g. '12' - #[serde(rename = "duration")] - #[serde(default)] - pub duration: i32, - /// Units for duration, e.g. 'MONTHS' - #[serde(rename = "durationUnits")] - #[serde(default)] - pub duration_units: std::option::Option, - /// One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - #[serde(rename = "fixedPrice")] - #[serde(default)] - pub fixed_price: f64, - /// Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)' - #[serde(rename = "offeringDescription")] - #[serde(default)] - pub offering_description: std::option::Option, - /// Unique offering ID, e.g. '87654321' - #[serde(rename = "offeringId")] - #[serde(default)] - pub offering_id: std::option::Option, - /// Offering type, e.g. 'NO_UPFRONT' - #[serde(rename = "offeringType")] - #[serde(default)] - pub offering_type: std::option::Option, - /// AWS region, e.g. 'us-west-2' - #[serde(rename = "region")] - #[serde(default)] - pub region: std::option::Option, - /// Resource configuration details - #[serde(rename = "resourceSpecification")] - #[serde(default)] - pub resource_specification: std::option::Option, - /// Recurring usage charge for each reserved resource, e.g. '157.0' - #[serde(rename = "usagePrice")] - #[serde(default)] - pub usage_price: f64, -} -impl std::fmt::Debug for DescribeOfferingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOfferingOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("currency_code", &self.currency_code); - formatter.field("duration", &self.duration); - formatter.field("duration_units", &self.duration_units); - formatter.field("fixed_price", &self.fixed_price); - formatter.field("offering_description", &self.offering_description); - formatter.field("offering_id", &self.offering_id); - formatter.field("offering_type", &self.offering_type); - formatter.field("region", &self.region); - formatter.field("resource_specification", &self.resource_specification); - formatter.field("usage_price", &self.usage_price); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeReservationResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeReservationOutputBody { - /// Unique reservation ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567' - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Number of reserved resources - #[serde(rename = "count")] - #[serde(default)] - pub count: i32, - /// Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' - #[serde(rename = "currencyCode")] - #[serde(default)] - pub currency_code: std::option::Option, - /// Lease duration, e.g. '12' - #[serde(rename = "duration")] - #[serde(default)] - pub duration: i32, - /// Units for duration, e.g. 'MONTHS' - #[serde(rename = "durationUnits")] - #[serde(default)] - pub duration_units: std::option::Option, - /// Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00' - #[serde(rename = "end")] - #[serde(default)] - pub end: std::option::Option, - /// One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - #[serde(rename = "fixedPrice")] - #[serde(default)] - pub fixed_price: f64, - /// User specified reservation name - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)' - #[serde(rename = "offeringDescription")] - #[serde(default)] - pub offering_description: std::option::Option, - /// Unique offering ID, e.g. '87654321' - #[serde(rename = "offeringId")] - #[serde(default)] - pub offering_id: std::option::Option, - /// Offering type, e.g. 'NO_UPFRONT' - #[serde(rename = "offeringType")] - #[serde(default)] - pub offering_type: std::option::Option, - /// AWS region, e.g. 'us-west-2' - #[serde(rename = "region")] - #[serde(default)] - pub region: std::option::Option, - /// Unique reservation ID, e.g. '1234567' - #[serde(rename = "reservationId")] - #[serde(default)] - pub reservation_id: std::option::Option, - /// Resource configuration details - #[serde(rename = "resourceSpecification")] - #[serde(default)] - pub resource_specification: std::option::Option, - /// Reservation UTC start date and time in ISO-8601 format, e.g. '2018-03-01T00:00:00' - #[serde(rename = "start")] - #[serde(default)] - pub start: std::option::Option, - /// Current state of reservation, e.g. 'ACTIVE' - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Recurring usage charge for each reserved resource, e.g. '157.0' - #[serde(rename = "usagePrice")] - #[serde(default)] - pub usage_price: f64, -} -impl std::fmt::Debug for DescribeReservationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeReservationOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("count", &self.count); - formatter.field("currency_code", &self.currency_code); - formatter.field("duration", &self.duration); - formatter.field("duration_units", &self.duration_units); - formatter.field("end", &self.end); - formatter.field("fixed_price", &self.fixed_price); - formatter.field("name", &self.name); - formatter.field("offering_description", &self.offering_description); - formatter.field("offering_id", &self.offering_id); - formatter.field("offering_type", &self.offering_type); - formatter.field("region", &self.region); - formatter.field("reservation_id", &self.reservation_id); - formatter.field("resource_specification", &self.resource_specification); - formatter.field("start", &self.start); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("usage_price", &self.usage_price); - formatter.finish() - } -} - -/// Placeholder documentation for DescribeScheduleResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeScheduleOutputBody { - /// The next token; for use in pagination. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, - /// The list of actions in the schedule. - #[serde(rename = "scheduleActions")] - #[serde(default)] - pub schedule_actions: std::option::Option>, -} -impl std::fmt::Debug for DescribeScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeScheduleOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("schedule_actions", &self.schedule_actions); - formatter.finish() - } -} - -/// Placeholder documentation for ListChannelsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListChannelsOutputBody { - /// Placeholder documentation for __listOfChannelSummary - #[serde(rename = "channels")] - #[serde(default)] - pub channels: std::option::Option>, - /// Placeholder documentation for __string - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListChannelsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListChannelsOutputBody"); - formatter.field("channels", &self.channels); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListInputDevicesResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInputDevicesOutputBody { - /// The list of input devices. - #[serde(rename = "inputDevices")] - #[serde(default)] - pub input_devices: std::option::Option>, - /// A token to get additional list results. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListInputDevicesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInputDevicesOutputBody"); - formatter.field("input_devices", &self.input_devices); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListInputDeviceTransfersResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInputDeviceTransfersOutputBody { - /// The list of devices that you are transferring or are being transferred to you. - #[serde(rename = "inputDeviceTransfers")] - #[serde(default)] - pub input_device_transfers: - std::option::Option>, - /// A token to get additional list results. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListInputDeviceTransfersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInputDeviceTransfersOutputBody"); - formatter.field("input_device_transfers", &self.input_device_transfers); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListInputsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInputsOutputBody { - /// Placeholder documentation for __listOfInput - #[serde(rename = "inputs")] - #[serde(default)] - pub inputs: std::option::Option>, - /// Placeholder documentation for __string - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListInputsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInputsOutputBody"); - formatter.field("inputs", &self.inputs); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListInputSecurityGroupsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInputSecurityGroupsOutputBody { - /// List of input security groups - #[serde(rename = "inputSecurityGroups")] - #[serde(default)] - pub input_security_groups: std::option::Option>, - /// Placeholder documentation for __string - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListInputSecurityGroupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInputSecurityGroupsOutputBody"); - formatter.field("input_security_groups", &self.input_security_groups); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListMultiplexesResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMultiplexesOutputBody { - /// List of multiplexes. - #[serde(rename = "multiplexes")] - #[serde(default)] - pub multiplexes: std::option::Option>, - /// Token for the next ListMultiplexes request. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListMultiplexesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMultiplexesOutputBody"); - formatter.field("multiplexes", &self.multiplexes); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListMultiplexProgramsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMultiplexProgramsOutputBody { - /// List of multiplex programs. - #[serde(rename = "multiplexPrograms")] - #[serde(default)] - pub multiplex_programs: - std::option::Option>, - /// Token for the next ListMultiplexProgram request. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListMultiplexProgramsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMultiplexProgramsOutputBody"); - formatter.field("multiplex_programs", &self.multiplex_programs); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -/// Placeholder documentation for ListOfferingsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOfferingsOutputBody { - /// Token to retrieve the next page of results - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, - /// List of offerings - #[serde(rename = "offerings")] - #[serde(default)] - pub offerings: std::option::Option>, -} -impl std::fmt::Debug for ListOfferingsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOfferingsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("offerings", &self.offerings); - formatter.finish() - } -} - -/// Placeholder documentation for ListReservationsResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListReservationsOutputBody { - /// Token to retrieve the next page of results - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, - /// List of reservations - #[serde(rename = "reservations")] - #[serde(default)] - pub reservations: std::option::Option>, -} -impl std::fmt::Debug for ListReservationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListReservationsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("reservations", &self.reservations); - formatter.finish() - } -} - -/// Placeholder documentation for ListTagsForResourceResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - /// Placeholder documentation for Tags - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for PurchaseOfferingResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PurchaseOfferingOutputBody { - /// Reserved resources available to use - #[serde(rename = "reservation")] - #[serde(default)] - pub reservation: std::option::Option, -} -impl std::fmt::Debug for PurchaseOfferingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PurchaseOfferingOutputBody"); - formatter.field("reservation", &self.reservation); - formatter.finish() - } -} - -/// Placeholder documentation for StartChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartChannelOutputBody { - /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] - pub cdi_input_specification: std::option::Option, - /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] - pub channel_class: std::option::Option, - /// A list of destinations of the channel. For UDP outputs, there is one - /// destination per output. For other types (HLS, for example), there is - /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] - pub egress_endpoints: std::option::Option>, - /// Encoder Settings - #[serde(rename = "encoderSettings")] - #[serde(default)] - pub encoder_settings: std::option::Option, - /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] - pub input_attachments: std::option::Option>, - /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] - pub input_specification: std::option::Option, - /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] - pub log_level: std::option::Option, - /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Runtime details for the pipelines of a running channel. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: std::option::Option>, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] - pub vpc: std::option::Option, -} -impl std::fmt::Debug for StartChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.field("egress_endpoints", &self.egress_endpoints); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("id", &self.id); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("role_arn", &self.role_arn); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// Placeholder documentation for StartMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartMultiplexOutputBody { - /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] - pub availability_zones: std::option::Option>, - /// A list of the multiplex output destinations. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] - pub multiplex_settings: std::option::Option, - /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] - pub program_count: i32, - /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for StartMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartMultiplexOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("availability_zones", &self.availability_zones); - formatter.field("destinations", &self.destinations); - formatter.field("id", &self.id); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("program_count", &self.program_count); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for StopChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopChannelOutputBody { - /// The unique arn of the channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// Specification of CDI inputs for this channel - #[serde(rename = "cdiInputSpecification")] - #[serde(default)] - pub cdi_input_specification: std::option::Option, - /// The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline. - #[serde(rename = "channelClass")] - #[serde(default)] - pub channel_class: std::option::Option, - /// A list of destinations of the channel. For UDP outputs, there is one - /// destination per output. For other types (HLS, for example), there is - /// one destination per packager. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The endpoints where outgoing connections initiate from - #[serde(rename = "egressEndpoints")] - #[serde(default)] - pub egress_endpoints: std::option::Option>, - /// Encoder Settings - #[serde(rename = "encoderSettings")] - #[serde(default)] - pub encoder_settings: std::option::Option, - /// The unique id of the channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// List of input attachments for channel. - #[serde(rename = "inputAttachments")] - #[serde(default)] - pub input_attachments: std::option::Option>, - /// Specification of network and file inputs for this channel - #[serde(rename = "inputSpecification")] - #[serde(default)] - pub input_specification: std::option::Option, - /// The log level being written to CloudWatch Logs. - #[serde(rename = "logLevel")] - #[serde(default)] - pub log_level: std::option::Option, - /// The name of the channel. (user-mutable) - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// Runtime details for the pipelines of a running channel. - #[serde(rename = "pipelineDetails")] - #[serde(default)] - pub pipeline_details: std::option::Option>, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The Amazon Resource Name (ARN) of the role assumed when running the Channel. - #[serde(rename = "roleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - /// Placeholder documentation for ChannelState - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Settings for VPC output - #[serde(rename = "vpc")] - #[serde(default)] - pub vpc: std::option::Option, -} -impl std::fmt::Debug for StopChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("cdi_input_specification", &self.cdi_input_specification); - formatter.field("channel_class", &self.channel_class); - formatter.field("destinations", &self.destinations); - formatter.field("egress_endpoints", &self.egress_endpoints); - formatter.field("encoder_settings", &self.encoder_settings); - formatter.field("id", &self.id); - formatter.field("input_attachments", &self.input_attachments); - formatter.field("input_specification", &self.input_specification); - formatter.field("log_level", &self.log_level); - formatter.field("name", &self.name); - formatter.field("pipeline_details", &self.pipeline_details); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("role_arn", &self.role_arn); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.field("vpc", &self.vpc); - formatter.finish() - } -} - -/// Placeholder documentation for StopMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopMultiplexOutputBody { - /// The unique arn of the multiplex. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A list of availability zones for the multiplex. - #[serde(rename = "availabilityZones")] - #[serde(default)] - pub availability_zones: std::option::Option>, - /// A list of the multiplex output destinations. - #[serde(rename = "destinations")] - #[serde(default)] - pub destinations: std::option::Option>, - /// The unique id of the multiplex. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configuration for a multiplex event. - #[serde(rename = "multiplexSettings")] - #[serde(default)] - pub multiplex_settings: std::option::Option, - /// The name of the multiplex. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The number of currently healthy pipelines. - #[serde(rename = "pipelinesRunningCount")] - #[serde(default)] - pub pipelines_running_count: i32, - /// The number of programs in the multiplex. - #[serde(rename = "programCount")] - #[serde(default)] - pub program_count: i32, - /// The current state of the multiplex. - #[serde(rename = "state")] - #[serde(default)] - pub state: std::option::Option, - /// A collection of key-value pairs. - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for StopMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopMultiplexOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("availability_zones", &self.availability_zones); - formatter.field("destinations", &self.destinations); - formatter.field("id", &self.id); - formatter.field("multiplex_settings", &self.multiplex_settings); - formatter.field("name", &self.name); - formatter.field("pipelines_running_count", &self.pipelines_running_count); - formatter.field("program_count", &self.program_count); - formatter.field("state", &self.state); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateChannelResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelOutputBody { - /// Placeholder documentation for Channel - #[serde(rename = "channel")] - #[serde(default)] - pub channel: std::option::Option, -} -impl std::fmt::Debug for UpdateChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelOutputBody"); - formatter.field("channel", &self.channel); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateChannelClassResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelClassOutputBody { - /// Placeholder documentation for Channel - #[serde(rename = "channel")] - #[serde(default)] - pub channel: std::option::Option, -} -impl std::fmt::Debug for UpdateChannelClassOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelClassOutputBody"); - formatter.field("channel", &self.channel); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateInputResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputOutputBody { - /// Placeholder documentation for Input - #[serde(rename = "input")] - #[serde(default)] - pub input: std::option::Option, -} -impl std::fmt::Debug for UpdateInputOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputOutputBody"); - formatter.field("input", &self.input); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateInputDeviceResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputDeviceOutputBody { - /// The unique ARN of the input device. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// The state of the connection between the input device and AWS. - #[serde(rename = "connectionState")] - #[serde(default)] - pub connection_state: std::option::Option, - /// The status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration. - #[serde(rename = "deviceSettingsSyncState")] - #[serde(default)] - pub device_settings_sync_state: std::option::Option, - /// The status of software on the input device. - #[serde(rename = "deviceUpdateStatus")] - #[serde(default)] - pub device_update_status: std::option::Option, - /// Settings that describe an input device that is type HD. - #[serde(rename = "hdDeviceSettings")] - #[serde(default)] - pub hd_device_settings: std::option::Option, - /// The unique ID of the input device. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// The network MAC address of the input device. - #[serde(rename = "macAddress")] - #[serde(default)] - pub mac_address: std::option::Option, - /// A name that you specify for the input device. - #[serde(rename = "name")] - #[serde(default)] - pub name: std::option::Option, - /// The network settings for the input device. - #[serde(rename = "networkSettings")] - #[serde(default)] - pub network_settings: std::option::Option, - /// The unique serial number of the input device. - #[serde(rename = "serialNumber")] - #[serde(default)] - pub serial_number: std::option::Option, - /// The type of the input device. - #[serde(rename = "type")] - #[serde(default)] - pub r#type: std::option::Option, - /// Settings that describe an input device that is type UHD. - #[serde(rename = "uhdDeviceSettings")] - #[serde(default)] - pub uhd_device_settings: std::option::Option, -} -impl std::fmt::Debug for UpdateInputDeviceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputDeviceOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("connection_state", &self.connection_state); - formatter.field( - "device_settings_sync_state", - &self.device_settings_sync_state, - ); - formatter.field("device_update_status", &self.device_update_status); - formatter.field("hd_device_settings", &self.hd_device_settings); - formatter.field("id", &self.id); - formatter.field("mac_address", &self.mac_address); - formatter.field("name", &self.name); - formatter.field("network_settings", &self.network_settings); - formatter.field("serial_number", &self.serial_number); - formatter.field("r#type", &self.r#type); - formatter.field("uhd_device_settings", &self.uhd_device_settings); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateInputSecurityGroupResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateInputSecurityGroupOutputBody { - /// An Input Security Group - #[serde(rename = "securityGroup")] - #[serde(default)] - pub security_group: std::option::Option, -} -impl std::fmt::Debug for UpdateInputSecurityGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateInputSecurityGroupOutputBody"); - formatter.field("security_group", &self.security_group); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateMultiplexResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMultiplexOutputBody { - /// The updated multiplex. - #[serde(rename = "multiplex")] - #[serde(default)] - pub multiplex: std::option::Option, -} -impl std::fmt::Debug for UpdateMultiplexOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMultiplexOutputBody"); - formatter.field("multiplex", &self.multiplex); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateMultiplexProgramResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMultiplexProgramOutputBody { - /// The updated multiplex program. - #[serde(rename = "multiplexProgram")] - #[serde(default)] - pub multiplex_program: std::option::Option, -} -impl std::fmt::Debug for UpdateMultiplexProgramOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMultiplexProgramOutputBody"); - formatter.field("multiplex_program", &self.multiplex_program); - formatter.finish() - } -} - -/// Placeholder documentation for UpdateReservationResponse -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateReservationOutputBody { - /// Reserved resources available to use - #[serde(rename = "reservation")] - #[serde(default)] - pub reservation: std::option::Option, -} -impl std::fmt::Debug for UpdateReservationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateReservationOutputBody"); - formatter.field("reservation", &self.reservation); - formatter.finish() - } -} diff --git a/sdk/mediapackage/Cargo.toml b/sdk/mediapackage/Cargo.toml index a4659d441d3f..0afc41240ef2 100644 --- a/sdk/mediapackage/Cargo.toml +++ b/sdk/mediapackage/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-mediapackage" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Elemental MediaPackage" authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/mediapackage/src/aws_json_errors.rs b/sdk/mediapackage/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/mediapackage/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/mediapackage/src/error.rs b/sdk/mediapackage/src/error.rs index 2b4b54bd21f6..7516909d4ff7 100644 --- a/sdk/mediapackage/src/error.rs +++ b/sdk/mediapackage/src/error.rs @@ -8,24 +8,24 @@ pub struct ConfigureLogsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ConfigureLogsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ConfigureLogsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ConfigureLogsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ConfigureLogsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ConfigureLogsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ConfigureLogsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - ConfigureLogsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ConfigureLogsErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ConfigureLogsErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), ConfigureLogsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -74,43 +74,46 @@ impl ConfigureLogsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ConfigureLogsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ConfigureLogsErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ConfigureLogsErrorKind::InternalServerErrorError(_) + ConfigureLogsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ConfigureLogsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ConfigureLogsErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - ConfigureLogsErrorKind::ServiceUnavailableError(_) + ConfigureLogsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ConfigureLogsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ConfigureLogsErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - ConfigureLogsErrorKind::UnprocessableEntityError(_) + ConfigureLogsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for ConfigureLogsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ConfigureLogsErrorKind::ForbiddenError(_inner) => Some(_inner), - ConfigureLogsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ConfigureLogsErrorKind::NotFoundError(_inner) => Some(_inner), - ConfigureLogsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - ConfigureLogsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ConfigureLogsErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + ConfigureLogsErrorKind::ForbiddenException(_inner) => Some(_inner), + ConfigureLogsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ConfigureLogsErrorKind::NotFoundException(_inner) => Some(_inner), + ConfigureLogsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ConfigureLogsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ConfigureLogsErrorKind::UnprocessableEntityException(_inner) => Some(_inner), ConfigureLogsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -125,24 +128,24 @@ pub struct CreateChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateChannelErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -191,43 +194,46 @@ impl CreateChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateChannelErrorKind::InternalServerErrorError(_) + CreateChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateChannelErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateChannelErrorKind::ServiceUnavailableError(_) + CreateChannelErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateChannelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateChannelErrorKind::UnprocessableEntityError(_) + CreateChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateChannelErrorKind::NotFoundError(_inner) => Some(_inner), - CreateChannelErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - CreateChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateChannelErrorKind::NotFoundException(_inner) => Some(_inner), + CreateChannelErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -242,24 +248,24 @@ pub struct CreateHarvestJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateHarvestJobErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateHarvestJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateHarvestJobErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateHarvestJobErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateHarvestJobErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateHarvestJobErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - CreateHarvestJobErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateHarvestJobErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateHarvestJobErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateHarvestJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -308,46 +314,46 @@ impl CreateHarvestJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateHarvestJobErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, CreateHarvestJobErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateHarvestJobErrorKind::InternalServerErrorError(_) + CreateHarvestJobErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateHarvestJobErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateHarvestJobErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateHarvestJobErrorKind::ServiceUnavailableError(_) + CreateHarvestJobErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateHarvestJobErrorKind::TooManyRequestsError(_) + CreateHarvestJobErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateHarvestJobErrorKind::UnprocessableEntityError(_) + CreateHarvestJobErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateHarvestJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateHarvestJobErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateHarvestJobErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateHarvestJobErrorKind::NotFoundError(_inner) => Some(_inner), - CreateHarvestJobErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - CreateHarvestJobErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateHarvestJobErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateHarvestJobErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateHarvestJobErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateHarvestJobErrorKind::NotFoundException(_inner) => Some(_inner), + CreateHarvestJobErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateHarvestJobErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateHarvestJobErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateHarvestJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -362,24 +368,24 @@ pub struct CreateOriginEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateOriginEndpointErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateOriginEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateOriginEndpointErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CreateOriginEndpointErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CreateOriginEndpointErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateOriginEndpointErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - CreateOriginEndpointErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - CreateOriginEndpointErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + CreateOriginEndpointErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), CreateOriginEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -428,46 +434,52 @@ impl CreateOriginEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CreateOriginEndpointErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + CreateOriginEndpointErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CreateOriginEndpointErrorKind::InternalServerErrorError(_) + CreateOriginEndpointErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateOriginEndpointErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateOriginEndpointErrorKind::NotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - CreateOriginEndpointErrorKind::ServiceUnavailableError(_) + CreateOriginEndpointErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateOriginEndpointErrorKind::TooManyRequestsError(_) + CreateOriginEndpointErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - CreateOriginEndpointErrorKind::UnprocessableEntityError(_) + CreateOriginEndpointErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for CreateOriginEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateOriginEndpointErrorKind::ForbiddenError(_inner) => Some(_inner), - CreateOriginEndpointErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CreateOriginEndpointErrorKind::NotFoundError(_inner) => Some(_inner), - CreateOriginEndpointErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - CreateOriginEndpointErrorKind::TooManyRequestsError(_inner) => Some(_inner), - CreateOriginEndpointErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::ForbiddenException(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::NotFoundException(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::TooManyRequestsException(_inner) => Some(_inner), + CreateOriginEndpointErrorKind::UnprocessableEntityException(_inner) => Some(_inner), CreateOriginEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -482,24 +494,24 @@ pub struct DeleteChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteChannelErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), DeleteChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -548,43 +560,46 @@ impl DeleteChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteChannelErrorKind::InternalServerErrorError(_) + DeleteChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteChannelErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteChannelErrorKind::ServiceUnavailableError(_) + DeleteChannelErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteChannelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteChannelErrorKind::UnprocessableEntityError(_) + DeleteChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for DeleteChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteChannelErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteChannelErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - DeleteChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + DeleteChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteChannelErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteChannelErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DeleteChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), DeleteChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -599,24 +614,24 @@ pub struct DeleteOriginEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteOriginEndpointErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteOriginEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteOriginEndpointErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DeleteOriginEndpointErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DeleteOriginEndpointErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteOriginEndpointErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - DeleteOriginEndpointErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DeleteOriginEndpointErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DeleteOriginEndpointErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), DeleteOriginEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -665,46 +680,52 @@ impl DeleteOriginEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DeleteOriginEndpointErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DeleteOriginEndpointErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DeleteOriginEndpointErrorKind::InternalServerErrorError(_) + DeleteOriginEndpointErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteOriginEndpointErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteOriginEndpointErrorKind::NotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DeleteOriginEndpointErrorKind::ServiceUnavailableError(_) + DeleteOriginEndpointErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteOriginEndpointErrorKind::TooManyRequestsError(_) + DeleteOriginEndpointErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - DeleteOriginEndpointErrorKind::UnprocessableEntityError(_) + DeleteOriginEndpointErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for DeleteOriginEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteOriginEndpointErrorKind::ForbiddenError(_inner) => Some(_inner), - DeleteOriginEndpointErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DeleteOriginEndpointErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteOriginEndpointErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - DeleteOriginEndpointErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DeleteOriginEndpointErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::ForbiddenException(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DeleteOriginEndpointErrorKind::UnprocessableEntityException(_inner) => Some(_inner), DeleteOriginEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -719,24 +740,24 @@ pub struct DescribeChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeChannelErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DescribeChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DescribeChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), DescribeChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -785,46 +806,46 @@ impl DescribeChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::InternalServerErrorError(_) + DescribeChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DescribeChannelErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::ServiceUnavailableError(_) + DescribeChannelErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::TooManyRequestsError(_) + DescribeChannelErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - DescribeChannelErrorKind::UnprocessableEntityError(_) + DescribeChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for DescribeChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeChannelErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeChannelErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - DescribeChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DescribeChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + DescribeChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeChannelErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeChannelErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DescribeChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DescribeChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), DescribeChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -839,24 +860,24 @@ pub struct DescribeHarvestJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeHarvestJobErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeHarvestJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeHarvestJobErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeHarvestJobErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeHarvestJobErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeHarvestJobErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - DescribeHarvestJobErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DescribeHarvestJobErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DescribeHarvestJobErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), DescribeHarvestJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -905,46 +926,52 @@ impl DescribeHarvestJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, DescribeHarvestJobErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + DescribeHarvestJobErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeHarvestJobErrorKind::InternalServerErrorError(_) + DescribeHarvestJobErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DescribeHarvestJobErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DescribeHarvestJobErrorKind::NotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeHarvestJobErrorKind::ServiceUnavailableError(_) + DescribeHarvestJobErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeHarvestJobErrorKind::TooManyRequestsError(_) + DescribeHarvestJobErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - DescribeHarvestJobErrorKind::UnprocessableEntityError(_) + DescribeHarvestJobErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for DescribeHarvestJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeHarvestJobErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeHarvestJobErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeHarvestJobErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeHarvestJobErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - DescribeHarvestJobErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DescribeHarvestJobErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DescribeHarvestJobErrorKind::UnprocessableEntityException(_inner) => Some(_inner), DescribeHarvestJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -959,24 +986,24 @@ pub struct DescribeOriginEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeOriginEndpointErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeOriginEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeOriginEndpointErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - DescribeOriginEndpointErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - DescribeOriginEndpointErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DescribeOriginEndpointErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - DescribeOriginEndpointErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - DescribeOriginEndpointErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + DescribeOriginEndpointErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), DescribeOriginEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1025,52 +1052,52 @@ impl DescribeOriginEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::ForbiddenError(_) + DescribeOriginEndpointErrorKind::ForbiddenException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::InternalServerErrorError(_) + DescribeOriginEndpointErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::NotFoundError(_) + DescribeOriginEndpointErrorKind::NotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::ServiceUnavailableError(_) + DescribeOriginEndpointErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::TooManyRequestsError(_) + DescribeOriginEndpointErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - DescribeOriginEndpointErrorKind::UnprocessableEntityError(_) + DescribeOriginEndpointErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for DescribeOriginEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeOriginEndpointErrorKind::ForbiddenError(_inner) => Some(_inner), - DescribeOriginEndpointErrorKind::InternalServerErrorError(_inner) => Some(_inner), - DescribeOriginEndpointErrorKind::NotFoundError(_inner) => Some(_inner), - DescribeOriginEndpointErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - DescribeOriginEndpointErrorKind::TooManyRequestsError(_inner) => Some(_inner), - DescribeOriginEndpointErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::ForbiddenException(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::InternalServerErrorException(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::NotFoundException(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::TooManyRequestsException(_inner) => Some(_inner), + DescribeOriginEndpointErrorKind::UnprocessableEntityException(_inner) => Some(_inner), DescribeOriginEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1085,24 +1112,24 @@ pub struct ListChannelsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListChannelsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListChannelsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListChannelsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ListChannelsErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + ListChannelsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ListChannelsErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), ListChannelsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1151,43 +1178,46 @@ impl ListChannelsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListChannelsErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListChannelsErrorKind::InternalServerErrorError(_) + ListChannelsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListChannelsErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - ListChannelsErrorKind::ServiceUnavailableError(_) + ListChannelsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListChannelsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListChannelsErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - ListChannelsErrorKind::UnprocessableEntityError(_) + ListChannelsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for ListChannelsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListChannelsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListChannelsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListChannelsErrorKind::NotFoundError(_inner) => Some(_inner), - ListChannelsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - ListChannelsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ListChannelsErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + ListChannelsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListChannelsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListChannelsErrorKind::NotFoundException(_inner) => Some(_inner), + ListChannelsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ListChannelsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ListChannelsErrorKind::UnprocessableEntityException(_inner) => Some(_inner), ListChannelsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1202,24 +1232,24 @@ pub struct ListHarvestJobsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListHarvestJobsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListHarvestJobsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListHarvestJobsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListHarvestJobsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListHarvestJobsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListHarvestJobsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - ListHarvestJobsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ListHarvestJobsErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ListHarvestJobsErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), ListHarvestJobsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1268,46 +1298,46 @@ impl ListHarvestJobsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListHarvestJobsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ListHarvestJobsErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListHarvestJobsErrorKind::InternalServerErrorError(_) + ListHarvestJobsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListHarvestJobsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListHarvestJobsErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - ListHarvestJobsErrorKind::ServiceUnavailableError(_) + ListHarvestJobsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListHarvestJobsErrorKind::TooManyRequestsError(_) + ListHarvestJobsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - ListHarvestJobsErrorKind::UnprocessableEntityError(_) + ListHarvestJobsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for ListHarvestJobsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListHarvestJobsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListHarvestJobsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListHarvestJobsErrorKind::NotFoundError(_inner) => Some(_inner), - ListHarvestJobsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - ListHarvestJobsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ListHarvestJobsErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + ListHarvestJobsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListHarvestJobsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListHarvestJobsErrorKind::NotFoundException(_inner) => Some(_inner), + ListHarvestJobsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ListHarvestJobsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ListHarvestJobsErrorKind::UnprocessableEntityException(_inner) => Some(_inner), ListHarvestJobsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1322,24 +1352,24 @@ pub struct ListOriginEndpointsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListOriginEndpointsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListOriginEndpointsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListOriginEndpointsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ListOriginEndpointsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - ListOriginEndpointsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListOriginEndpointsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - ListOriginEndpointsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - ListOriginEndpointsErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + ListOriginEndpointsErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), ListOriginEndpointsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1388,46 +1418,52 @@ impl ListOriginEndpointsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ListOriginEndpointsErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + ListOriginEndpointsErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ListOriginEndpointsErrorKind::InternalServerErrorError(_) + ListOriginEndpointsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListOriginEndpointsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListOriginEndpointsErrorKind::NotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - ListOriginEndpointsErrorKind::ServiceUnavailableError(_) + ListOriginEndpointsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListOriginEndpointsErrorKind::TooManyRequestsError(_) + ListOriginEndpointsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - ListOriginEndpointsErrorKind::UnprocessableEntityError(_) + ListOriginEndpointsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for ListOriginEndpointsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListOriginEndpointsErrorKind::ForbiddenError(_inner) => Some(_inner), - ListOriginEndpointsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - ListOriginEndpointsErrorKind::NotFoundError(_inner) => Some(_inner), - ListOriginEndpointsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - ListOriginEndpointsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - ListOriginEndpointsErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::ForbiddenException(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::NotFoundException(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + ListOriginEndpointsErrorKind::UnprocessableEntityException(_inner) => Some(_inner), ListOriginEndpointsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1514,24 +1550,28 @@ pub struct RotateChannelCredentialsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RotateChannelCredentialsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RotateChannelCredentialsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RotateChannelCredentialsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - RotateChannelCredentialsErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - RotateChannelCredentialsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - RotateChannelCredentialsErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - RotateChannelCredentialsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - RotateChannelCredentialsErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + RotateChannelCredentialsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + RotateChannelCredentialsErrorKind::InternalServerErrorException(_inner) => { + _inner.fmt(f) + } + RotateChannelCredentialsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + RotateChannelCredentialsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + RotateChannelCredentialsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + RotateChannelCredentialsErrorKind::UnprocessableEntityException(_inner) => { + _inner.fmt(f) + } RotateChannelCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1580,52 +1620,52 @@ impl RotateChannelCredentialsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::ForbiddenError(_) + RotateChannelCredentialsErrorKind::ForbiddenException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::InternalServerErrorError(_) + RotateChannelCredentialsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::NotFoundError(_) + RotateChannelCredentialsErrorKind::NotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::ServiceUnavailableError(_) + RotateChannelCredentialsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::TooManyRequestsError(_) + RotateChannelCredentialsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - RotateChannelCredentialsErrorKind::UnprocessableEntityError(_) + RotateChannelCredentialsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for RotateChannelCredentialsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RotateChannelCredentialsErrorKind::ForbiddenError(_inner) => Some(_inner), - RotateChannelCredentialsErrorKind::InternalServerErrorError(_inner) => Some(_inner), - RotateChannelCredentialsErrorKind::NotFoundError(_inner) => Some(_inner), - RotateChannelCredentialsErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - RotateChannelCredentialsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - RotateChannelCredentialsErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::ForbiddenException(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::InternalServerErrorException(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::NotFoundException(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::TooManyRequestsException(_inner) => Some(_inner), + RotateChannelCredentialsErrorKind::UnprocessableEntityException(_inner) => Some(_inner), RotateChannelCredentialsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1640,28 +1680,30 @@ pub struct RotateIngestEndpointCredentialsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RotateIngestEndpointCredentialsErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RotateIngestEndpointCredentialsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RotateIngestEndpointCredentialsErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - RotateIngestEndpointCredentialsErrorKind::InternalServerErrorError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + RotateIngestEndpointCredentialsErrorKind::InternalServerErrorException(_inner) => { _inner.fmt(f) } - RotateIngestEndpointCredentialsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableException(_inner) => { _inner.fmt(f) } - RotateIngestEndpointCredentialsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } + RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityException(_inner) => { _inner.fmt(f) } RotateIngestEndpointCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1712,56 +1754,58 @@ impl RotateIngestEndpointCredentialsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::ForbiddenError(_) + RotateIngestEndpointCredentialsErrorKind::ForbiddenException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::InternalServerErrorError(_) + RotateIngestEndpointCredentialsErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::NotFoundError(_) + RotateIngestEndpointCredentialsErrorKind::NotFoundException(_) ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableError(_) + RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::TooManyRequestsError(_) + RotateIngestEndpointCredentialsErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityError(_) + RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for RotateIngestEndpointCredentialsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RotateIngestEndpointCredentialsErrorKind::ForbiddenError(_inner) => Some(_inner), - RotateIngestEndpointCredentialsErrorKind::InternalServerErrorError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::ForbiddenException(_inner) => Some(_inner), + RotateIngestEndpointCredentialsErrorKind::InternalServerErrorException(_inner) => { + Some(_inner) + } + RotateIngestEndpointCredentialsErrorKind::NotFoundException(_inner) => Some(_inner), + RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableException(_inner) => { Some(_inner) } - RotateIngestEndpointCredentialsErrorKind::NotFoundError(_inner) => Some(_inner), - RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } - RotateIngestEndpointCredentialsErrorKind::TooManyRequestsError(_inner) => Some(_inner), - RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityError(_inner) => { + RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityException(_inner) => { Some(_inner) } RotateIngestEndpointCredentialsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1922,24 +1966,24 @@ pub struct UpdateChannelError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateChannelErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateChannelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateChannelErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateChannelErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateChannelErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateChannelErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1988,43 +2032,46 @@ impl UpdateChannelError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelErrorKind::InternalServerErrorError(_) + UpdateChannelErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateChannelErrorKind::NotFoundException(_)) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelErrorKind::ServiceUnavailableError(_) + UpdateChannelErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateChannelErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateChannelErrorKind::TooManyRequestsException(_) + ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateChannelErrorKind::UnprocessableEntityError(_) + UpdateChannelErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateChannelError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateChannelErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateChannelErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateChannelErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateChannelErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - UpdateChannelErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateChannelErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateChannelErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateChannelErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateChannelErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateChannelErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + UpdateChannelErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateChannelErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2039,24 +2086,24 @@ pub struct UpdateOriginEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateOriginEndpointErrorKind { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateOriginEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateOriginEndpointErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - UpdateOriginEndpointErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - UpdateOriginEndpointErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateOriginEndpointErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - UpdateOriginEndpointErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), - UpdateOriginEndpointErrorKind::UnprocessableEntityError(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), + UpdateOriginEndpointErrorKind::UnprocessableEntityException(_inner) => _inner.fmt(f), UpdateOriginEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2105,46 +2152,52 @@ impl UpdateOriginEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, UpdateOriginEndpointErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + UpdateOriginEndpointErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - UpdateOriginEndpointErrorKind::InternalServerErrorError(_) + UpdateOriginEndpointErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateOriginEndpointErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateOriginEndpointErrorKind::NotFoundException(_) + ) } - pub fn is_service_unavailable_error(&self) -> bool { + pub fn is_service_unavailable_exception(&self) -> bool { matches!( &self.kind, - UpdateOriginEndpointErrorKind::ServiceUnavailableError(_) + UpdateOriginEndpointErrorKind::ServiceUnavailableException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateOriginEndpointErrorKind::TooManyRequestsError(_) + UpdateOriginEndpointErrorKind::TooManyRequestsException(_) ) } - pub fn is_unprocessable_entity_error(&self) -> bool { + pub fn is_unprocessable_entity_exception(&self) -> bool { matches!( &self.kind, - UpdateOriginEndpointErrorKind::UnprocessableEntityError(_) + UpdateOriginEndpointErrorKind::UnprocessableEntityException(_) ) } } impl std::error::Error for UpdateOriginEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateOriginEndpointErrorKind::ForbiddenError(_inner) => Some(_inner), - UpdateOriginEndpointErrorKind::InternalServerErrorError(_inner) => Some(_inner), - UpdateOriginEndpointErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateOriginEndpointErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - UpdateOriginEndpointErrorKind::TooManyRequestsError(_inner) => Some(_inner), - UpdateOriginEndpointErrorKind::UnprocessableEntityError(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::ForbiddenException(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::InternalServerErrorException(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::ServiceUnavailableException(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::TooManyRequestsException(_inner) => Some(_inner), + UpdateOriginEndpointErrorKind::UnprocessableEntityException(_inner) => Some(_inner), UpdateOriginEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2152,37 +2205,35 @@ impl std::error::Error for UpdateOriginEndpointError { /// The parameters sent in the request are not valid. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnprocessableEntityError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnprocessableEntityException { pub message: std::option::Option, } -impl std::fmt::Debug for UnprocessableEntityError { +impl std::fmt::Debug for UnprocessableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnprocessableEntityError"); + let mut formatter = f.debug_struct("UnprocessableEntityException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnprocessableEntityError { +impl UnprocessableEntityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnprocessableEntityError { +impl std::fmt::Display for UnprocessableEntityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnprocessableEntityError [UnprocessableEntityException]")?; + write!(f, "UnprocessableEntityException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for UnprocessableEntityError {} -/// See [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) -pub mod unprocessable_entity_error { - /// A builder for [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) +impl std::error::Error for UnprocessableEntityException {} +/// See [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) +pub mod unprocessable_entity_exception { + /// A builder for [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2197,54 +2248,52 @@ pub mod unprocessable_entity_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) - pub fn build(self) -> crate::error::UnprocessableEntityError { - crate::error::UnprocessableEntityError { + /// Consumes the builder and constructs a [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) + pub fn build(self) -> crate::error::UnprocessableEntityException { + crate::error::UnprocessableEntityException { message: self.message, } } } } -impl UnprocessableEntityError { - /// Creates a new builder-style object to manufacture [`UnprocessableEntityError`](crate::error::UnprocessableEntityError) - pub fn builder() -> crate::error::unprocessable_entity_error::Builder { - crate::error::unprocessable_entity_error::Builder::default() +impl UnprocessableEntityException { + /// Creates a new builder-style object to manufacture [`UnprocessableEntityException`](crate::error::UnprocessableEntityException) + pub fn builder() -> crate::error::unprocessable_entity_exception::Builder { + crate::error::unprocessable_entity_exception::Builder::default() } } /// The client has exceeded their resource or throttling limits. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyRequestsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyRequestsException { pub message: std::option::Option, } -impl std::fmt::Debug for TooManyRequestsError { +impl std::fmt::Debug for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyRequestsError"); + let mut formatter = f.debug_struct("TooManyRequestsException"); formatter.field("message", &self.message); formatter.finish() } } -impl TooManyRequestsError { +impl TooManyRequestsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyRequestsError { +impl std::fmt::Display for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyRequestsError [TooManyRequestsException]")?; + write!(f, "TooManyRequestsException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for TooManyRequestsError {} -/// See [`TooManyRequestsError`](crate::error::TooManyRequestsError) -pub mod too_many_requests_error { - /// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError) +impl std::error::Error for TooManyRequestsException {} +/// See [`TooManyRequestsException`](crate::error::TooManyRequestsException) +pub mod too_many_requests_exception { + /// A builder for [`TooManyRequestsException`](crate::error::TooManyRequestsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2259,54 +2308,52 @@ pub mod too_many_requests_error { self.message = input; self } - /// Consumes the builder and constructs a [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn build(self) -> crate::error::TooManyRequestsError { - crate::error::TooManyRequestsError { + /// Consumes the builder and constructs a [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn build(self) -> crate::error::TooManyRequestsException { + crate::error::TooManyRequestsException { message: self.message, } } } } -impl TooManyRequestsError { - /// Creates a new builder-style object to manufacture [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn builder() -> crate::error::too_many_requests_error::Builder { - crate::error::too_many_requests_error::Builder::default() +impl TooManyRequestsException { + /// Creates a new builder-style object to manufacture [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn builder() -> crate::error::too_many_requests_exception::Builder { + crate::error::too_many_requests_exception::Builder::default() } } /// An unexpected error occurred. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceUnavailableError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceUnavailableException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceUnavailableError { +impl std::fmt::Debug for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceUnavailableError"); + let mut formatter = f.debug_struct("ServiceUnavailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceUnavailableError { +impl ServiceUnavailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceUnavailableError { +impl std::fmt::Display for ServiceUnavailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceUnavailableError [ServiceUnavailableException]")?; + write!(f, "ServiceUnavailableException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ServiceUnavailableError {} -/// See [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) -pub mod service_unavailable_error { - /// A builder for [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) +impl std::error::Error for ServiceUnavailableException {} +/// See [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) +pub mod service_unavailable_exception { + /// A builder for [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2321,54 +2368,52 @@ pub mod service_unavailable_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn build(self) -> crate::error::ServiceUnavailableError { - crate::error::ServiceUnavailableError { + /// Consumes the builder and constructs a [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn build(self) -> crate::error::ServiceUnavailableException { + crate::error::ServiceUnavailableException { message: self.message, } } } } -impl ServiceUnavailableError { - /// Creates a new builder-style object to manufacture [`ServiceUnavailableError`](crate::error::ServiceUnavailableError) - pub fn builder() -> crate::error::service_unavailable_error::Builder { - crate::error::service_unavailable_error::Builder::default() +impl ServiceUnavailableException { + /// Creates a new builder-style object to manufacture [`ServiceUnavailableException`](crate::error::ServiceUnavailableException) + pub fn builder() -> crate::error::service_unavailable_exception::Builder { + crate::error::service_unavailable_exception::Builder::default() } } /// The requested resource does not exist. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2383,54 +2428,52 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } /// An unexpected error occurred. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalServerErrorError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServerErrorException { pub message: std::option::Option, } -impl std::fmt::Debug for InternalServerErrorError { +impl std::fmt::Debug for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalServerErrorError"); + let mut formatter = f.debug_struct("InternalServerErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl InternalServerErrorError { +impl InternalServerErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InternalServerErrorError { +impl std::fmt::Display for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalServerErrorError [InternalServerErrorException]")?; + write!(f, "InternalServerErrorException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for InternalServerErrorError {} -/// See [`InternalServerErrorError`](crate::error::InternalServerErrorError) -pub mod internal_server_error_error { - /// A builder for [`InternalServerErrorError`](crate::error::InternalServerErrorError) +impl std::error::Error for InternalServerErrorException {} +/// See [`InternalServerErrorException`](crate::error::InternalServerErrorException) +pub mod internal_server_error_exception { + /// A builder for [`InternalServerErrorException`](crate::error::InternalServerErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2445,54 +2488,52 @@ pub mod internal_server_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn build(self) -> crate::error::InternalServerErrorError { - crate::error::InternalServerErrorError { + /// Consumes the builder and constructs a [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn build(self) -> crate::error::InternalServerErrorException { + crate::error::InternalServerErrorException { message: self.message, } } } } -impl InternalServerErrorError { - /// Creates a new builder-style object to manufacture [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn builder() -> crate::error::internal_server_error_error::Builder { - crate::error::internal_server_error_error::Builder::default() +impl InternalServerErrorException { + /// Creates a new builder-style object to manufacture [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn builder() -> crate::error::internal_server_error_exception::Builder { + crate::error::internal_server_error_exception::Builder::default() } } /// The client is not authorized to access the requested resource. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ForbiddenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ForbiddenException { pub message: std::option::Option, } -impl std::fmt::Debug for ForbiddenError { +impl std::fmt::Debug for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ForbiddenError"); + let mut formatter = f.debug_struct("ForbiddenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ForbiddenError { +impl ForbiddenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ForbiddenError { +impl std::fmt::Display for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ForbiddenError [ForbiddenException]")?; + write!(f, "ForbiddenException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for ForbiddenError {} -/// See [`ForbiddenError`](crate::error::ForbiddenError) -pub mod forbidden_error { - /// A builder for [`ForbiddenError`](crate::error::ForbiddenError) +impl std::error::Error for ForbiddenException {} +/// See [`ForbiddenException`](crate::error::ForbiddenException) +pub mod forbidden_exception { + /// A builder for [`ForbiddenException`](crate::error::ForbiddenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2507,17 +2548,17 @@ pub mod forbidden_error { self.message = input; self } - /// Consumes the builder and constructs a [`ForbiddenError`](crate::error::ForbiddenError) - pub fn build(self) -> crate::error::ForbiddenError { - crate::error::ForbiddenError { + /// Consumes the builder and constructs a [`ForbiddenException`](crate::error::ForbiddenException) + pub fn build(self) -> crate::error::ForbiddenException { + crate::error::ForbiddenException { message: self.message, } } } } -impl ForbiddenError { - /// Creates a new builder-style object to manufacture [`ForbiddenError`](crate::error::ForbiddenError) - pub fn builder() -> crate::error::forbidden_error::Builder { - crate::error::forbidden_error::Builder::default() +impl ForbiddenException { + /// Creates a new builder-style object to manufacture [`ForbiddenException`](crate::error::ForbiddenException) + pub fn builder() -> crate::error::forbidden_exception::Builder { + crate::error::forbidden_exception::Builder::default() } } diff --git a/sdk/mediapackage/src/error_meta.rs b/sdk/mediapackage/src/error_meta.rs index 9c917853e57b..f99e037ca3b5 100644 --- a/sdk/mediapackage/src/error_meta.rs +++ b/sdk/mediapackage/src/error_meta.rs @@ -2,23 +2,23 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), - ServiceUnavailableError(crate::error::ServiceUnavailableError), - TooManyRequestsError(crate::error::TooManyRequestsError), - UnprocessableEntityError(crate::error::UnprocessableEntityError), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), + ServiceUnavailableException(crate::error::ServiceUnavailableException), + TooManyRequestsException(crate::error::TooManyRequestsException), + UnprocessableEntityException(crate::error::UnprocessableEntityException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ForbiddenError(inner) => inner.fmt(f), - Error::InternalServerErrorError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::ServiceUnavailableError(inner) => inner.fmt(f), - Error::TooManyRequestsError(inner) => inner.fmt(f), - Error::UnprocessableEntityError(inner) => inner.fmt(f), + Error::ForbiddenException(inner) => inner.fmt(f), + Error::InternalServerErrorException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::ServiceUnavailableException(inner) => inner.fmt(f), + Error::TooManyRequestsException(inner) => inner.fmt(f), + Error::UnprocessableEntityException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -27,23 +27,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ConfigureLogsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ConfigureLogsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ConfigureLogsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ConfigureLogsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ConfigureLogsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ConfigureLogsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ConfigureLogsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::ConfigureLogsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::ConfigureLogsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ConfigureLogsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ConfigureLogsErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::ConfigureLogsErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::ConfigureLogsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -55,23 +55,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateChannelErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateChannelErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::CreateChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::CreateChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -83,23 +83,23 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateHarvestJobErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateHarvestJobErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateHarvestJobErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CreateHarvestJobErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CreateHarvestJobErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateHarvestJobErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateHarvestJobErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateHarvestJobErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::CreateHarvestJobErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateHarvestJobErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::CreateHarvestJobErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateHarvestJobErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::CreateHarvestJobErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -113,24 +113,24 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateOriginEndpointErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CreateOriginEndpointErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CreateOriginEndpointErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::CreateOriginEndpointErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::CreateOriginEndpointErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::CreateOriginEndpointErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::CreateOriginEndpointErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateOriginEndpointErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateOriginEndpointErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::CreateOriginEndpointErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::CreateOriginEndpointErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } + crate::error::CreateOriginEndpointErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::CreateOriginEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -143,23 +143,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DeleteChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DeleteChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DeleteChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteChannelErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteChannelErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::DeleteChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DeleteChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::DeleteChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::DeleteChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -171,24 +171,24 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteOriginEndpointErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) - } - crate::error::DeleteOriginEndpointErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::DeleteOriginEndpointErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteOriginEndpointErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DeleteOriginEndpointErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DeleteOriginEndpointErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::DeleteOriginEndpointErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteOriginEndpointErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteOriginEndpointErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::DeleteOriginEndpointErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::DeleteOriginEndpointErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } + crate::error::DeleteOriginEndpointErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::DeleteOriginEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -201,23 +201,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeChannelErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeChannelErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::DescribeChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DescribeChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::DescribeChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::DescribeChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -229,23 +229,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeHarvestJobErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::DescribeHarvestJobErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeHarvestJobErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::DescribeHarvestJobErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::DescribeHarvestJobErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DescribeHarvestJobErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeHarvestJobErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeHarvestJobErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::DescribeHarvestJobErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeHarvestJobErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::DescribeHarvestJobErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::DescribeHarvestJobErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::DescribeHarvestJobErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -259,24 +259,24 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeOriginEndpointErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) - } - crate::error::DescribeOriginEndpointErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::DescribeOriginEndpointErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::DescribeOriginEndpointErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::DescribeOriginEndpointErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::DescribeOriginEndpointErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DescribeOriginEndpointErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::DescribeOriginEndpointErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DescribeOriginEndpointErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::DescribeOriginEndpointErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), + crate::error::DescribeOriginEndpointErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } + crate::error::DescribeOriginEndpointErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::DescribeOriginEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -289,23 +289,23 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListChannelsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListChannelsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListChannelsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListChannelsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListChannelsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListChannelsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListChannelsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::ListChannelsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::ListChannelsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListChannelsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ListChannelsErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::ListChannelsErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::ListChannelsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -317,23 +317,23 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListHarvestJobsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListHarvestJobsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListHarvestJobsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListHarvestJobsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListHarvestJobsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListHarvestJobsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListHarvestJobsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::ListHarvestJobsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::ListHarvestJobsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListHarvestJobsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ListHarvestJobsErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::ListHarvestJobsErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::ListHarvestJobsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -345,23 +345,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOriginEndpointsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ListOriginEndpointsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ListOriginEndpointsErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ListOriginEndpointsErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::ListOriginEndpointsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListOriginEndpointsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListOriginEndpointsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::ListOriginEndpointsErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::ListOriginEndpointsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListOriginEndpointsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::ListOriginEndpointsErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::ListOriginEndpointsErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::ListOriginEndpointsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -389,24 +389,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RotateChannelCredentialsErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::RotateChannelCredentialsErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::RotateChannelCredentialsErrorKind::InternalServerErrorError( + crate::error::RotateChannelCredentialsErrorKind::InternalServerErrorException( inner, - ) => Error::InternalServerErrorError(inner), - crate::error::RotateChannelCredentialsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + ) => Error::InternalServerErrorException(inner), + crate::error::RotateChannelCredentialsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::RotateChannelCredentialsErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) - } - crate::error::RotateChannelCredentialsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) - } - crate::error::RotateChannelCredentialsErrorKind::UnprocessableEntityError( + crate::error::RotateChannelCredentialsErrorKind::ServiceUnavailableException( + inner, + ) => Error::ServiceUnavailableException(inner), + crate::error::RotateChannelCredentialsErrorKind::TooManyRequestsException( inner, - ) => Error::UnprocessableEntityError(inner), + ) => Error::TooManyRequestsException(inner), + crate::error::RotateChannelCredentialsErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::RotateChannelCredentialsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -423,12 +423,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RotateIngestEndpointCredentialsErrorKind::ForbiddenError(inner) => Error::ForbiddenError(inner), - crate::error::RotateIngestEndpointCredentialsErrorKind::InternalServerErrorError(inner) => Error::InternalServerErrorError(inner), - crate::error::RotateIngestEndpointCredentialsErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner), - crate::error::RotateIngestEndpointCredentialsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), - crate::error::RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityError(inner) => Error::UnprocessableEntityError(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::ForbiddenException(inner) => Error::ForbiddenException(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityException(inner) => Error::UnprocessableEntityException(inner), crate::error::RotateIngestEndpointCredentialsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -459,23 +459,23 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateChannelErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::UpdateChannelErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateChannelErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::UpdateChannelErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::UpdateChannelErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateChannelErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateChannelErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::UpdateChannelErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::UpdateChannelErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateChannelErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } - crate::error::UpdateChannelErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateChannelErrorKind::UnprocessableEntityException(inner) => { + Error::UnprocessableEntityException(inner) } crate::error::UpdateChannelErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -487,24 +487,24 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateOriginEndpointErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) - } - crate::error::UpdateOriginEndpointErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) - } - crate::error::UpdateOriginEndpointErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateOriginEndpointErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::UpdateOriginEndpointErrorKind::ServiceUnavailableError(inner) => { - Error::ServiceUnavailableError(inner) + crate::error::UpdateOriginEndpointErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), + crate::error::UpdateOriginEndpointErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateOriginEndpointErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateOriginEndpointErrorKind::ServiceUnavailableException(inner) => { + Error::ServiceUnavailableException(inner) } - crate::error::UpdateOriginEndpointErrorKind::UnprocessableEntityError(inner) => { - Error::UnprocessableEntityError(inner) + crate::error::UpdateOriginEndpointErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } + crate::error::UpdateOriginEndpointErrorKind::UnprocessableEntityException( + inner, + ) => Error::UnprocessableEntityException(inner), crate::error::UpdateOriginEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } diff --git a/sdk/mediapackage/src/input.rs b/sdk/mediapackage/src/input.rs index b26d4ab6f292..ec7f4bf3cfc9 100644 --- a/sdk/mediapackage/src/input.rs +++ b/sdk/mediapackage/src/input.rs @@ -51,7 +51,7 @@ pub mod configure_logs_input { { Ok(crate::input::ConfigureLogsInput { egress_access_logs: self.egress_access_logs, - id: self.id.unwrap_or_default(), + id: self.id, ingress_access_logs: self.ingress_access_logs, }) } @@ -120,13 +120,27 @@ impl ConfigureLogsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/channels/{Id}/configure_logs", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/channels/{Id}/configure_logs", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -134,7 +148,7 @@ impl ConfigureLogsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -287,8 +301,9 @@ impl CreateChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/channels").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/channels").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -296,7 +311,7 @@ impl CreateChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -468,8 +483,9 @@ impl CreateHarvestJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/harvest_jobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/harvest_jobs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -477,7 +493,7 @@ impl CreateHarvestJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -787,8 +803,9 @@ impl CreateOriginEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/origin_endpoints").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/origin_endpoints").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -796,7 +813,7 @@ impl CreateOriginEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -845,9 +862,7 @@ pub mod delete_channel_input { self, ) -> std::result::Result { - Ok(crate::input::DeleteChannelInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteChannelInput { id: self.id }) } } } @@ -911,13 +926,26 @@ impl DeleteChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/channels/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/channels/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -925,7 +953,7 @@ impl DeleteChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -976,9 +1004,7 @@ pub mod delete_origin_endpoint_input { crate::input::DeleteOriginEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteOriginEndpointInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteOriginEndpointInput { id: self.id }) } } } @@ -1042,13 +1068,26 @@ impl DeleteOriginEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/origin_endpoints/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/origin_endpoints/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1056,7 +1095,7 @@ impl DeleteOriginEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1107,9 +1146,7 @@ pub mod describe_channel_input { crate::input::DescribeChannelInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeChannelInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DescribeChannelInput { id: self.id }) } } } @@ -1173,13 +1210,26 @@ impl DescribeChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/channels/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/channels/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1187,7 +1237,7 @@ impl DescribeChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1238,9 +1288,7 @@ pub mod describe_harvest_job_input { crate::input::DescribeHarvestJobInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeHarvestJobInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DescribeHarvestJobInput { id: self.id }) } } } @@ -1304,13 +1352,26 @@ impl DescribeHarvestJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/harvest_jobs/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/harvest_jobs/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1318,7 +1379,7 @@ impl DescribeHarvestJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1369,9 +1430,7 @@ pub mod describe_origin_endpoint_input { crate::input::DescribeOriginEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeOriginEndpointInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DescribeOriginEndpointInput { id: self.id }) } } } @@ -1435,13 +1494,26 @@ impl DescribeOriginEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/origin_endpoints/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/origin_endpoints/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1449,7 +1521,7 @@ impl DescribeOriginEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1575,8 +1647,9 @@ impl ListChannelsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/channels").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/channels").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -1596,7 +1669,7 @@ impl ListChannelsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -1753,8 +1826,9 @@ impl ListHarvestJobsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/harvest_jobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/harvest_jobs").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -1783,7 +1857,7 @@ impl ListHarvestJobsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -1923,8 +1997,9 @@ impl ListOriginEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/origin_endpoints").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/origin_endpoints").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -1947,7 +2022,7 @@ impl ListOriginEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -1999,7 +2074,7 @@ pub mod list_tags_for_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListTagsForResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, }) } } @@ -2064,13 +2139,27 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2078,7 +2167,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2129,9 +2218,7 @@ pub mod rotate_channel_credentials_input { crate::input::RotateChannelCredentialsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RotateChannelCredentialsInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::RotateChannelCredentialsInput { id: self.id }) } } } @@ -2196,13 +2283,26 @@ impl RotateChannelCredentialsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/channels/{Id}/credentials", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/channels/{Id}/credentials", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2210,7 +2310,7 @@ impl RotateChannelCredentialsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2275,8 +2375,8 @@ pub mod rotate_ingest_endpoint_credentials_input { smithy_http::operation::BuildError, > { Ok(crate::input::RotateIngestEndpointCredentialsInput { - id: self.id.unwrap_or_default(), - ingest_endpoint_id: self.ingest_endpoint_id.unwrap_or_default(), + id: self.id, + ingest_endpoint_id: self.ingest_endpoint_id, }) } } @@ -2342,14 +2442,49 @@ impl RotateIngestEndpointCredentialsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let ingest_endpoint_id = { + let input = &self.ingest_endpoint_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ingest_endpoint_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ingest_endpoint_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials", - Id = smithy_http::label::fmt_string(&self.id, false), - IngestEndpointId = smithy_http::label::fmt_string(&self.ingest_endpoint_id, false) + Id = id, + IngestEndpointId = ingest_endpoint_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2357,7 +2492,7 @@ impl RotateIngestEndpointCredentialsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2428,7 +2563,7 @@ pub mod tag_resource_input { ) -> std::result::Result { Ok(crate::input::TagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tags: self.tags, }) } @@ -2497,13 +2632,27 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2511,7 +2660,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2574,7 +2723,7 @@ pub mod untag_resource_input { ) -> std::result::Result { Ok(crate::input::UntagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tag_keys: self.tag_keys, }) } @@ -2640,13 +2789,27 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2662,7 +2825,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -2724,7 +2887,7 @@ pub mod update_channel_input { { Ok(crate::input::UpdateChannelInput { description: self.description, - id: self.id.unwrap_or_default(), + id: self.id, }) } } @@ -2792,13 +2955,26 @@ impl UpdateChannelInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/channels/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/channels/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2806,7 +2982,7 @@ impl UpdateChannelInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3006,7 +3182,7 @@ pub mod update_origin_endpoint_input { dash_package: self.dash_package, description: self.description, hls_package: self.hls_package, - id: self.id.unwrap_or_default(), + id: self.id, manifest_name: self.manifest_name, mss_package: self.mss_package, origination: self.origination, @@ -3080,13 +3256,26 @@ impl UpdateOriginEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/origin_endpoints/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/origin_endpoints/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3094,7 +3283,7 @@ impl UpdateOriginEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3135,7 +3324,7 @@ pub struct UpdateOriginEndpointInput { /// An HTTP Live Streaming (HLS) packaging configuration. pub hls_package: std::option::Option, /// The ID of the OriginEndpoint to update. - pub id: std::string::String, + pub id: std::option::Option, /// A short string that will be appended to the end of the Endpoint URL. pub manifest_name: std::option::Option, /// A Microsoft Smooth Streaming (MSS) packaging configuration. @@ -3179,7 +3368,7 @@ pub struct UpdateChannelInput { /// A short text description of the Channel. pub description: std::option::Option, /// The ID of the Channel to update. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for UpdateChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3193,7 +3382,7 @@ impl std::fmt::Debug for UpdateChannelInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UntagResourceInput { - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, /// The key(s) of tag to be deleted pub tag_keys: std::option::Option>, } @@ -3209,7 +3398,7 @@ impl std::fmt::Debug for UntagResourceInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TagResourceInput { - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, pub tags: std::option::Option>, } @@ -3226,9 +3415,9 @@ impl std::fmt::Debug for TagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RotateIngestEndpointCredentialsInput { /// The ID of the channel the IngestEndpoint is on. - pub id: std::string::String, + pub id: std::option::Option, /// The id of the IngestEndpoint whose credentials should be rotated - pub ingest_endpoint_id: std::string::String, + pub ingest_endpoint_id: std::option::Option, } impl std::fmt::Debug for RotateIngestEndpointCredentialsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3243,7 +3432,7 @@ impl std::fmt::Debug for RotateIngestEndpointCredentialsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RotateChannelCredentialsInput { /// The ID of the channel to update. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for RotateChannelCredentialsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3256,7 +3445,7 @@ impl std::fmt::Debug for RotateChannelCredentialsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListTagsForResourceInput { - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, } impl std::fmt::Debug for ListTagsForResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3330,7 +3519,7 @@ impl std::fmt::Debug for ListChannelsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeOriginEndpointInput { /// The ID of the OriginEndpoint. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DescribeOriginEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3344,7 +3533,7 @@ impl std::fmt::Debug for DescribeOriginEndpointInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeHarvestJobInput { /// The ID of the HarvestJob. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DescribeHarvestJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3358,7 +3547,7 @@ impl std::fmt::Debug for DescribeHarvestJobInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeChannelInput { /// The ID of a Channel. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DescribeChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3372,7 +3561,7 @@ impl std::fmt::Debug for DescribeChannelInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteOriginEndpointInput { /// The ID of the OriginEndpoint to delete. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteOriginEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3386,7 +3575,7 @@ impl std::fmt::Debug for DeleteOriginEndpointInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteChannelInput { /// The ID of the Channel to delete. - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteChannelInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3516,7 +3705,7 @@ pub struct ConfigureLogsInput { /// Configure egress access logging. pub egress_access_logs: std::option::Option, /// The ID of the channel to log subscription. - pub id: std::string::String, + pub id: std::option::Option, /// Configure ingress access logging. pub ingress_access_logs: std::option::Option, } diff --git a/sdk/mediapackage/src/json_deser.rs b/sdk/mediapackage/src/json_deser.rs index bb4646a6345f..82a260c8197d 100644 --- a/sdk/mediapackage/src/json_deser.rs +++ b/sdk/mediapackage/src/json_deser.rs @@ -1,452 +1,3456 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn forbidden_exception( +pub fn deser_structure_forbidden_exceptionjson_err( input: &[u8], - mut builder: crate::error::forbidden_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ForbiddenError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::forbidden_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn internal_server_error_exception( +pub fn deser_structure_internal_server_error_exceptionjson_err( input: &[u8], - mut builder: crate::error::internal_server_error_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalServerErrorError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::internal_server_error_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn not_found_exception( +pub fn deser_structure_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::NotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_unavailable_exception( +pub fn deser_structure_service_unavailable_exceptionjson_err( input: &[u8], - mut builder: crate::error::service_unavailable_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceUnavailableError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::service_unavailable_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn too_many_requests_exception( +pub fn deser_structure_too_many_requests_exceptionjson_err( input: &[u8], - mut builder: crate::error::too_many_requests_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TooManyRequestsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::too_many_requests_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unprocessable_entity_exception( +pub fn deser_structure_unprocessable_entity_exceptionjson_err( input: &[u8], - mut builder: crate::error::unprocessable_entity_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnprocessableEntityError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::unprocessable_entity_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn configure_logs_deser_operation( +pub fn deser_operation_configure_logs( input: &[u8], mut builder: crate::output::configure_logs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ConfigureLogsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_channel_deser_operation( +pub fn deser_operation_create_channel( input: &[u8], mut builder: crate::output::create_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_harvest_job_deser_operation( +pub fn deser_operation_create_harvest_job( input: &[u8], mut builder: crate::output::create_harvest_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateHarvestJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_created_at(parsed_body.created_at); - builder = builder.set_end_time(parsed_body.end_time); - builder = builder.set_id(parsed_body.id); - builder = builder.set_origin_endpoint_id(parsed_body.origin_endpoint_id); - builder = builder.set_s3_destination(parsed_body.s3_destination); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_status(parsed_body.status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "originEndpointId" => { + builder = builder.set_origin_endpoint_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "s3Destination" => { + builder = builder.set_s3_destination( + crate::json_deser::deser_structure_s3_destination(tokens)?, + ); + } + "startTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Status::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_origin_endpoint_deser_operation( +pub fn deser_operation_create_origin_endpoint( input: &[u8], mut builder: crate::output::create_origin_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateOriginEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_authorization(parsed_body.authorization); - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_cmaf_package(parsed_body.cmaf_package); - builder = builder.set_dash_package(parsed_body.dash_package); - builder = builder.set_description(parsed_body.description); - builder = builder.set_hls_package(parsed_body.hls_package); - builder = builder.set_id(parsed_body.id); - builder = builder.set_manifest_name(parsed_body.manifest_name); - builder = builder.set_mss_package(parsed_body.mss_package); - builder = builder.set_origination(parsed_body.origination); - builder = builder.set_startover_window_seconds(Some(parsed_body.startover_window_seconds)); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_time_delay_seconds(Some(parsed_body.time_delay_seconds)); - builder = builder.set_url(parsed_body.url); - builder = builder.set_whitelist(parsed_body.whitelist); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorization" => { + builder = builder.set_authorization( + crate::json_deser::deser_structure_authorization(tokens)?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cmafPackage" => { + builder = builder.set_cmaf_package( + crate::json_deser::deser_structure_cmaf_package(tokens)?, + ); + } + "dashPackage" => { + builder = builder.set_dash_package( + crate::json_deser::deser_structure_dash_package(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "hlsPackage" => { + builder = builder.set_hls_package( + crate::json_deser::deser_structure_hls_package(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "manifestName" => { + builder = builder.set_manifest_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "mssPackage" => { + builder = builder.set_mss_package( + crate::json_deser::deser_structure_mss_package(tokens)?, + ); + } + "origination" => { + builder = builder.set_origination( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Origination::from(u.as_ref())) + }) + .transpose()?, + ); + } + "startoverWindowSeconds" => { + builder = builder.set_startover_window_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "timeDelaySeconds" => { + builder = builder.set_time_delay_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "whitelist" => { + builder = builder.set_whitelist( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_channel_deser_operation( +pub fn deser_operation_describe_channel( input: &[u8], mut builder: crate::output::describe_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_harvest_job_deser_operation( +pub fn deser_operation_describe_harvest_job( input: &[u8], mut builder: crate::output::describe_harvest_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeHarvestJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_created_at(parsed_body.created_at); - builder = builder.set_end_time(parsed_body.end_time); - builder = builder.set_id(parsed_body.id); - builder = builder.set_origin_endpoint_id(parsed_body.origin_endpoint_id); - builder = builder.set_s3_destination(parsed_body.s3_destination); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_status(parsed_body.status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "originEndpointId" => { + builder = builder.set_origin_endpoint_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "s3Destination" => { + builder = builder.set_s3_destination( + crate::json_deser::deser_structure_s3_destination(tokens)?, + ); + } + "startTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Status::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_origin_endpoint_deser_operation( +pub fn deser_operation_describe_origin_endpoint( input: &[u8], mut builder: crate::output::describe_origin_endpoint_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeOriginEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_authorization(parsed_body.authorization); - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_cmaf_package(parsed_body.cmaf_package); - builder = builder.set_dash_package(parsed_body.dash_package); - builder = builder.set_description(parsed_body.description); - builder = builder.set_hls_package(parsed_body.hls_package); - builder = builder.set_id(parsed_body.id); - builder = builder.set_manifest_name(parsed_body.manifest_name); - builder = builder.set_mss_package(parsed_body.mss_package); - builder = builder.set_origination(parsed_body.origination); - builder = builder.set_startover_window_seconds(Some(parsed_body.startover_window_seconds)); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_time_delay_seconds(Some(parsed_body.time_delay_seconds)); - builder = builder.set_url(parsed_body.url); - builder = builder.set_whitelist(parsed_body.whitelist); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorization" => { + builder = builder.set_authorization( + crate::json_deser::deser_structure_authorization(tokens)?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cmafPackage" => { + builder = builder.set_cmaf_package( + crate::json_deser::deser_structure_cmaf_package(tokens)?, + ); + } + "dashPackage" => { + builder = builder.set_dash_package( + crate::json_deser::deser_structure_dash_package(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "hlsPackage" => { + builder = builder.set_hls_package( + crate::json_deser::deser_structure_hls_package(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "manifestName" => { + builder = builder.set_manifest_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "mssPackage" => { + builder = builder.set_mss_package( + crate::json_deser::deser_structure_mss_package(tokens)?, + ); + } + "origination" => { + builder = builder.set_origination( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Origination::from(u.as_ref())) + }) + .transpose()?, + ); + } + "startoverWindowSeconds" => { + builder = builder.set_startover_window_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "timeDelaySeconds" => { + builder = builder.set_time_delay_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "whitelist" => { + builder = builder.set_whitelist( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_channels_deser_operation( +pub fn deser_operation_list_channels( input: &[u8], mut builder: crate::output::list_channels_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListChannelsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_channels(parsed_body.channels); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "channels" => { + builder = builder + .set_channels(crate::json_deser::deser_list___list_of_channel(tokens)?); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_harvest_jobs_deser_operation( +pub fn deser_operation_list_harvest_jobs( input: &[u8], mut builder: crate::output::list_harvest_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListHarvestJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_harvest_jobs(parsed_body.harvest_jobs); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "harvestJobs" => { + builder = builder.set_harvest_jobs( + crate::json_deser::deser_list___list_of_harvest_job(tokens)?, + ); + } + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_origin_endpoints_deser_operation( +pub fn deser_operation_list_origin_endpoints( input: &[u8], mut builder: crate::output::list_origin_endpoints_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListOriginEndpointsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_origin_endpoints(parsed_body.origin_endpoints); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "nextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "originEndpoints" => { + builder = builder.set_origin_endpoints( + crate::json_deser::deser_list___list_of_origin_endpoint(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "tags" => { + builder = builder + .set_tags(crate::json_deser::deser_map___map_of__string(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn rotate_channel_credentials_deser_operation( +pub fn deser_operation_rotate_channel_credentials( input: &[u8], mut builder: crate::output::rotate_channel_credentials_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::RotateChannelCredentialsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); +) -> Result< + crate::output::rotate_channel_credentials_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn rotate_ingest_endpoint_credentials_deser_operation( +pub fn deser_operation_rotate_ingest_endpoint_credentials( input: &[u8], mut builder: crate::output::rotate_ingest_endpoint_credentials_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::rotate_ingest_endpoint_credentials_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RotateIngestEndpointCredentialsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_channel_deser_operation( +pub fn deser_operation_update_channel( input: &[u8], mut builder: crate::output::update_channel_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateChannelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_description(parsed_body.description); - builder = builder.set_egress_access_logs(parsed_body.egress_access_logs); - builder = builder.set_hls_ingest(parsed_body.hls_ingest); - builder = builder.set_id(parsed_body.id); - builder = builder.set_ingress_access_logs(parsed_body.ingress_access_logs); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder + .set_hls_ingest(crate::json_deser::deser_structure_hls_ingest(tokens)?); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_origin_endpoint_deser_operation( +pub fn deser_operation_update_origin_endpoint( input: &[u8], mut builder: crate::output::update_origin_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateOriginEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_authorization(parsed_body.authorization); - builder = builder.set_channel_id(parsed_body.channel_id); - builder = builder.set_cmaf_package(parsed_body.cmaf_package); - builder = builder.set_dash_package(parsed_body.dash_package); - builder = builder.set_description(parsed_body.description); - builder = builder.set_hls_package(parsed_body.hls_package); - builder = builder.set_id(parsed_body.id); - builder = builder.set_manifest_name(parsed_body.manifest_name); - builder = builder.set_mss_package(parsed_body.mss_package); - builder = builder.set_origination(parsed_body.origination); - builder = builder.set_startover_window_seconds(Some(parsed_body.startover_window_seconds)); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_time_delay_seconds(Some(parsed_body.time_delay_seconds)); - builder = builder.set_url(parsed_body.url); - builder = builder.set_whitelist(parsed_body.whitelist); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorization" => { + builder = builder.set_authorization( + crate::json_deser::deser_structure_authorization(tokens)?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cmafPackage" => { + builder = builder.set_cmaf_package( + crate::json_deser::deser_structure_cmaf_package(tokens)?, + ); + } + "dashPackage" => { + builder = builder.set_dash_package( + crate::json_deser::deser_structure_dash_package(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "hlsPackage" => { + builder = builder.set_hls_package( + crate::json_deser::deser_structure_hls_package(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "manifestName" => { + builder = builder.set_manifest_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "mssPackage" => { + builder = builder.set_mss_package( + crate::json_deser::deser_structure_mss_package(tokens)?, + ); + } + "origination" => { + builder = builder.set_origination( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Origination::from(u.as_ref())) + }) + .transpose()?, + ); + } + "startoverWindowSeconds" => { + builder = builder.set_startover_window_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "timeDelaySeconds" => { + builder = builder.set_time_delay_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "whitelist" => { + builder = builder.set_whitelist( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_egress_access_logs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EgressAccessLogs::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_ingest<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsIngest::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ingestEndpoints" => { + builder = builder.set_ingest_endpoints( + crate::json_deser::deser_list___list_of_ingest_endpoint( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ingress_access_logs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IngressAccessLogs::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "logGroupName" => { + builder = builder.set_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_s3_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3Destination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "bucketName" => { + builder = builder.set_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "manifestKey" => { + builder = builder.set_manifest_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_authorization<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Authorization::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "cdnIdentifierSecret" => { + builder = builder.set_cdn_identifier_secret( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "secretsRoleArn" => { + builder = builder.set_secrets_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cmaf_package<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CmafPackage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "encryption" => { + builder = builder.set_encryption( + crate::json_deser::deser_structure_cmaf_encryption(tokens)?, + ); + } + "hlsManifests" => { + builder = builder.set_hls_manifests( + crate::json_deser::deser_list___list_of_hls_manifest(tokens)?, + ); + } + "segmentDurationSeconds" => { + builder = builder.set_segment_duration_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentPrefix" => { + builder = builder.set_segment_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "streamSelection" => { + builder = builder.set_stream_selection( + crate::json_deser::deser_structure_stream_selection(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dash_package<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DashPackage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adTriggers" => { + builder = builder.set_ad_triggers( + crate::json_deser::deser_list_ad_triggers(tokens)?, + ); + } + "adsOnDeliveryRestrictions" => { + builder = builder.set_ads_on_delivery_restrictions( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AdsOnDeliveryRestrictions::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "encryption" => { + builder = builder.set_encryption( + crate::json_deser::deser_structure_dash_encryption(tokens)?, + ); + } + "manifestLayout" => { + builder = builder.set_manifest_layout( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ManifestLayout::from(u.as_ref())) + }) + .transpose()?, + ); + } + "manifestWindowSeconds" => { + builder = builder.set_manifest_window_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minBufferTimeSeconds" => { + builder = builder.set_min_buffer_time_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minUpdatePeriodSeconds" => { + builder = builder.set_min_update_period_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "periodTriggers" => { + builder = builder.set_period_triggers( + crate::json_deser::deser_list___list_of__period_triggers_element(tokens)? + ); + } + "profile" => { + builder = builder.set_profile( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Profile::from(u.as_ref())) + }) + .transpose()?, + ); + } + "segmentDurationSeconds" => { + builder = builder.set_segment_duration_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentTemplateFormat" => { + builder = builder.set_segment_template_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SegmentTemplateFormat::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "streamSelection" => { + builder = builder.set_stream_selection( + crate::json_deser::deser_structure_stream_selection(tokens)?, + ); + } + "suggestedPresentationDelaySeconds" => { + builder = builder.set_suggested_presentation_delay_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "utcTiming" => { + builder = builder.set_utc_timing( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::UtcTiming::from(u.as_ref())) + }) + .transpose()?, + ); + } + "utcTimingUri" => { + builder = builder.set_utc_timing_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_package<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsPackage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adMarkers" => { + builder = builder.set_ad_markers( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AdMarkers::from(u.as_ref())) + }) + .transpose()?, + ); + } + "adTriggers" => { + builder = builder.set_ad_triggers( + crate::json_deser::deser_list_ad_triggers(tokens)?, + ); + } + "adsOnDeliveryRestrictions" => { + builder = builder.set_ads_on_delivery_restrictions( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AdsOnDeliveryRestrictions::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "encryption" => { + builder = builder.set_encryption( + crate::json_deser::deser_structure_hls_encryption(tokens)?, + ); + } + "includeIframeOnlyStream" => { + builder = builder.set_include_iframe_only_stream( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "playlistType" => { + builder = builder.set_playlist_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PlaylistType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "playlistWindowSeconds" => { + builder = builder.set_playlist_window_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "programDateTimeIntervalSeconds" => { + builder = builder.set_program_date_time_interval_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentDurationSeconds" => { + builder = builder.set_segment_duration_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "streamSelection" => { + builder = builder.set_stream_selection( + crate::json_deser::deser_structure_stream_selection(tokens)?, + ); + } + "useAudioRenditionGroup" => { + builder = builder.set_use_audio_rendition_group( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mss_package<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MssPackage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "encryption" => { + builder = builder.set_encryption( + crate::json_deser::deser_structure_mss_encryption(tokens)?, + ); + } + "manifestWindowSeconds" => { + builder = builder.set_manifest_window_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "segmentDurationSeconds" => { + builder = builder.set_segment_duration_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "streamSelection" => { + builder = builder.set_stream_selection( + crate::json_deser::deser_structure_stream_selection(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of__string<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_channel<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_channel(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_harvest_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_harvest_job(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_origin_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_origin_endpoint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map___map_of__string<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_ingest_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ingest_endpoint(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_cmaf_encryption<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CmafEncryption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "constantInitializationVector" => { + builder = builder.set_constant_initialization_vector( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "keyRotationIntervalSeconds" => { + builder = builder.set_key_rotation_interval_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "spekeKeyProvider" => { + builder = builder.set_speke_key_provider( + crate::json_deser::deser_structure_speke_key_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of_hls_manifest<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_hls_manifest(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_stream_selection<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StreamSelection::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "maxVideoBitsPerSecond" => { + builder = builder.set_max_video_bits_per_second( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "minVideoBitsPerSecond" => { + builder = builder.set_min_video_bits_per_second( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "streamOrder" => { + builder = builder.set_stream_order( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StreamOrder::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ad_triggers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AdTriggersElement::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_dash_encryption<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DashEncryption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "keyRotationIntervalSeconds" => { + builder = builder.set_key_rotation_interval_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "spekeKeyProvider" => { + builder = builder.set_speke_key_provider( + crate::json_deser::deser_structure_speke_key_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list___list_of__period_triggers_element<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PeriodTriggersElement::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_hls_encryption<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsEncryption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "constantInitializationVector" => { + builder = builder.set_constant_initialization_vector( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "encryptionMethod" => { + builder = builder.set_encryption_method( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EncryptionMethod::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "keyRotationIntervalSeconds" => { + builder = builder.set_key_rotation_interval_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "repeatExtXKey" => { + builder = builder.set_repeat_ext_x_key( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "spekeKeyProvider" => { + builder = builder.set_speke_key_provider( + crate::json_deser::deser_structure_speke_key_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mss_encryption<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MssEncryption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "spekeKeyProvider" => { + builder = builder.set_speke_key_provider( + crate::json_deser::deser_structure_speke_key_provider(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_channel<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Channel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "egressAccessLogs" => { + builder = builder.set_egress_access_logs( + crate::json_deser::deser_structure_egress_access_logs(tokens)?, + ); + } + "hlsIngest" => { + builder = builder.set_hls_ingest( + crate::json_deser::deser_structure_hls_ingest(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ingressAccessLogs" => { + builder = builder.set_ingress_access_logs( + crate::json_deser::deser_structure_ingress_access_logs(tokens)?, + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_harvest_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HarvestJob::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "createdAt" => { + builder = builder.set_created_at( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "endTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "originEndpointId" => { + builder = builder.set_origin_endpoint_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "s3Destination" => { + builder = builder.set_s3_destination( + crate::json_deser::deser_structure_s3_destination(tokens)?, + ); + } + "startTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Status::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_origin_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OriginEndpoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "authorization" => { + builder = builder.set_authorization( + crate::json_deser::deser_structure_authorization(tokens)?, + ); + } + "channelId" => { + builder = builder.set_channel_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "cmafPackage" => { + builder = builder.set_cmaf_package( + crate::json_deser::deser_structure_cmaf_package(tokens)?, + ); + } + "dashPackage" => { + builder = builder.set_dash_package( + crate::json_deser::deser_structure_dash_package(tokens)?, + ); + } + "description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "hlsPackage" => { + builder = builder.set_hls_package( + crate::json_deser::deser_structure_hls_package(tokens)?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "manifestName" => { + builder = builder.set_manifest_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "mssPackage" => { + builder = builder.set_mss_package( + crate::json_deser::deser_structure_mss_package(tokens)?, + ); + } + "origination" => { + builder = builder.set_origination( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Origination::from(u.as_ref())) + }) + .transpose()?, + ); + } + "startoverWindowSeconds" => { + builder = builder.set_startover_window_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "tags" => { + builder = + builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + "timeDelaySeconds" => { + builder = builder.set_time_delay_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "whitelist" => { + builder = builder.set_whitelist( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ingest_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IngestEndpoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "password" => { + builder = builder.set_password( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "username" => { + builder = builder.set_username( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_speke_key_provider<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SpekeKeyProvider::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "certificateArn" => { + builder = builder.set_certificate_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "encryptionContractConfiguration" => { + builder = builder.set_encryption_contract_configuration( + crate::json_deser::deser_structure_encryption_contract_configuration(tokens)? + ); + } + "resourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "roleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "systemIds" => { + builder = builder.set_system_ids( + crate::json_deser::deser_list___list_of__string(tokens)?, + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hls_manifest<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HlsManifest::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "adMarkers" => { + builder = builder.set_ad_markers( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AdMarkers::from(u.as_ref())) + }) + .transpose()?, + ); + } + "id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "includeIframeOnlyStream" => { + builder = builder.set_include_iframe_only_stream( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "manifestName" => { + builder = builder.set_manifest_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "playlistType" => { + builder = builder.set_playlist_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PlaylistType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "playlistWindowSeconds" => { + builder = builder.set_playlist_window_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "programDateTimeIntervalSeconds" => { + builder = builder.set_program_date_time_interval_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_encryption_contract_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EncryptionContractConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "presetSpeke20Audio" => { + builder = builder.set_preset_speke20_audio( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PresetSpeke20Audio::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "presetSpeke20Video" => { + builder = builder.set_preset_speke20_video( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PresetSpeke20Video::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/mediapackage/src/json_errors.rs b/sdk/mediapackage/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/mediapackage/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/mediapackage/src/lib.rs b/sdk/mediapackage/src/lib.rs index 3c3058705a19..589d46c4035f 100644 --- a/sdk/mediapackage/src/lib.rs +++ b/sdk/mediapackage/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Elemental MediaPackage // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. @@ -11,7 +12,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -19,13 +19,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/mediapackage/src/model.rs b/sdk/mediapackage/src/model.rs index e3a7127b5fd3..05289b62d7aa 100644 --- a/sdk/mediapackage/src/model.rs +++ b/sdk/mediapackage/src/model.rs @@ -27,7 +27,7 @@ impl std::convert::From<&str> for Origination { impl std::str::FromStr for Origination { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Origination::from(s)) } } @@ -45,35 +45,18 @@ impl AsRef for Origination { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Origination { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A Microsoft Smooth Streaming (MSS) packaging configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MssPackage { /// A Microsoft Smooth Streaming (MSS) encryption configuration. - #[serde(rename = "encryption")] - #[serde(default)] pub encryption: std::option::Option, /// The time window (in seconds) contained in each manifest. - #[serde(rename = "manifestWindowSeconds")] - #[serde(default)] pub manifest_window_seconds: i32, /// The duration (in seconds) of each segment. - #[serde(rename = "segmentDurationSeconds")] - #[serde(default)] pub segment_duration_seconds: i32, /// A StreamSelection configuration. - #[serde(rename = "streamSelection")] - #[serde(default)] pub stream_selection: std::option::Option, } impl std::fmt::Debug for MssPackage { @@ -160,19 +143,13 @@ impl MssPackage { /// A StreamSelection configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StreamSelection { /// The maximum video bitrate (bps) to include in output. - #[serde(rename = "maxVideoBitsPerSecond")] - #[serde(default)] pub max_video_bits_per_second: i32, /// The minimum video bitrate (bps) to include in output. - #[serde(rename = "minVideoBitsPerSecond")] - #[serde(default)] pub min_video_bits_per_second: i32, /// A directive that determines the order of streams in the output. - #[serde(rename = "streamOrder")] - #[serde(default)] pub stream_order: std::option::Option, } impl std::fmt::Debug for StreamSelection { @@ -272,7 +249,7 @@ impl std::convert::From<&str> for StreamOrder { impl std::str::FromStr for StreamOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StreamOrder::from(s)) } } @@ -291,23 +268,12 @@ impl AsRef for StreamOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StreamOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A Microsoft Smooth Streaming (MSS) encryption configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MssEncryption { /// A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. - #[serde(rename = "spekeKeyProvider")] - #[serde(default)] pub speke_key_provider: std::option::Option, } impl std::fmt::Debug for MssEncryption { @@ -355,13 +321,11 @@ impl MssEncryption { /// A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SpekeKeyProvider { /// An Amazon Resource Name (ARN) of a Certificate Manager certificate /// that MediaPackage will use for enforcing secure end-to-end data /// transfer with the key provider service. - #[serde(rename = "certificateArn")] - #[serde(default)] pub certificate_arn: std::option::Option, /// Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 2.0. /// The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. @@ -369,26 +333,16 @@ pub struct SpekeKeyProvider { /// Note the following considerations when using encryptionContractConfiguration: /// encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. /// You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0. - #[serde(rename = "encryptionContractConfiguration")] - #[serde(default)] pub encryption_contract_configuration: std::option::Option, /// The resource ID to include in key requests. - #[serde(rename = "resourceId")] - #[serde(default)] pub resource_id: std::option::Option, /// An Amazon Resource Name (ARN) of an IAM role that AWS Elemental /// MediaPackage will assume when accessing the key provider service. - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, /// The system IDs to include in key requests. - #[serde(rename = "systemIds")] - #[serde(default)] pub system_ids: std::option::Option>, /// The URL of the external key provider service. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, } impl std::fmt::Debug for SpekeKeyProvider { @@ -523,15 +477,11 @@ impl SpekeKeyProvider { /// encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. /// You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EncryptionContractConfiguration { /// A collection of audio encryption presets. - #[serde(rename = "presetSpeke20Audio")] - #[serde(default)] pub preset_speke20_audio: std::option::Option, /// A collection of video encryption presets. - #[serde(rename = "presetSpeke20Video")] - #[serde(default)] pub preset_speke20_video: std::option::Option, } impl std::fmt::Debug for EncryptionContractConfiguration { @@ -618,7 +568,7 @@ impl std::convert::From<&str> for PresetSpeke20Video { impl std::str::FromStr for PresetSpeke20Video { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PresetSpeke20Video::from(s)) } } @@ -635,15 +585,6 @@ impl AsRef for PresetSpeke20Video { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PresetSpeke20Video { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -671,7 +612,7 @@ impl std::convert::From<&str> for PresetSpeke20Audio { impl std::str::FromStr for PresetSpeke20Audio { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PresetSpeke20Audio::from(s)) } } @@ -688,19 +629,10 @@ impl AsRef for PresetSpeke20Audio { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PresetSpeke20Audio { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// An HTTP Live Streaming (HLS) packaging configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsPackage { /// This setting controls how ad markers are included in the packaged OriginEndpoint. /// "NONE" will omit all SCTE-35 ad markers from the output. @@ -711,14 +643,10 @@ pub struct HlsPackage { /// "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events /// in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value /// that is greater than 0. - #[serde(rename = "adMarkers")] - #[serde(default)] pub ad_markers: std::option::Option, /// A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no /// ad markers are output. Specify multiple items to create ad markers for all of the included /// message types. - #[serde(rename = "adTriggers")] - #[serde(default)] pub ad_triggers: std::option::Option>, /// This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to /// determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become @@ -728,26 +656,16 @@ pub struct HlsPackage { /// be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in /// AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags /// and are always treated as ads if specified in AdTriggers. - #[serde(rename = "adsOnDeliveryRestrictions")] - #[serde(default)] pub ads_on_delivery_restrictions: std::option::Option, /// An HTTP Live Streaming (HLS) encryption configuration. - #[serde(rename = "encryption")] - #[serde(default)] pub encryption: std::option::Option, /// When enabled, an I-Frame only stream will be included in the output. - #[serde(rename = "includeIframeOnlyStream")] - #[serde(default)] pub include_iframe_only_stream: bool, /// The HTTP Live Streaming (HLS) playlist type. /// When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE /// entry will be included in the media playlist. - #[serde(rename = "playlistType")] - #[serde(default)] pub playlist_type: std::option::Option, /// Time window (in seconds) contained in each parent manifest. - #[serde(rename = "playlistWindowSeconds")] - #[serde(default)] pub playlist_window_seconds: i32, /// The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag /// inserted into manifests. Additionally, when an interval is specified @@ -758,21 +676,13 @@ pub struct HlsPackage { /// ID3Timed Metadata messages will be generated. Note that irrespective /// of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, /// it will be passed through to HLS output. - #[serde(rename = "programDateTimeIntervalSeconds")] - #[serde(default)] pub program_date_time_interval_seconds: i32, /// Duration (in seconds) of each fragment. Actual fragments will be /// rounded to the nearest multiple of the source fragment duration. - #[serde(rename = "segmentDurationSeconds")] - #[serde(default)] pub segment_duration_seconds: i32, /// A StreamSelection configuration. - #[serde(rename = "streamSelection")] - #[serde(default)] pub stream_selection: std::option::Option, /// When enabled, audio streams will be placed in rendition groups in the output. - #[serde(rename = "useAudioRenditionGroup")] - #[serde(default)] pub use_audio_rendition_group: bool, } impl std::fmt::Debug for HlsPackage { @@ -1028,7 +938,7 @@ impl std::convert::From<&str> for PlaylistType { impl std::str::FromStr for PlaylistType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlaylistType::from(s)) } } @@ -1047,40 +957,21 @@ impl AsRef for PlaylistType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlaylistType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// An HTTP Live Streaming (HLS) encryption configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsEncryption { /// A constant initialization vector for encryption (optional). /// When not specified the initialization vector will be periodically rotated. - #[serde(rename = "constantInitializationVector")] - #[serde(default)] pub constant_initialization_vector: std::option::Option, /// The encryption method to use. - #[serde(rename = "encryptionMethod")] - #[serde(default)] pub encryption_method: std::option::Option, /// Interval (in seconds) between each encryption key rotation. - #[serde(rename = "keyRotationIntervalSeconds")] - #[serde(default)] pub key_rotation_interval_seconds: i32, /// When enabled, the EXT-X-KEY tag will be repeated in output manifests. - #[serde(rename = "repeatExtXKey")] - #[serde(default)] pub repeat_ext_x_key: bool, /// A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. - #[serde(rename = "spekeKeyProvider")] - #[serde(default)] pub speke_key_provider: std::option::Option, } impl std::fmt::Debug for HlsEncryption { @@ -1223,7 +1114,7 @@ impl std::convert::From<&str> for EncryptionMethod { impl std::str::FromStr for EncryptionMethod { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EncryptionMethod::from(s)) } } @@ -1241,15 +1132,6 @@ impl AsRef for EncryptionMethod { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EncryptionMethod { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to /// determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become @@ -1291,7 +1173,7 @@ impl std::convert::From<&str> for AdsOnDeliveryRestrictions { impl std::str::FromStr for AdsOnDeliveryRestrictions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AdsOnDeliveryRestrictions::from(s)) } } @@ -1311,15 +1193,6 @@ impl AsRef for AdsOnDeliveryRestrictions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AdsOnDeliveryRestrictions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1367,7 +1240,7 @@ impl std::convert::From<&str> for AdTriggersElement { impl std::str::FromStr for AdTriggersElement { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AdTriggersElement::from(s)) } } @@ -1397,15 +1270,6 @@ impl AsRef for AdTriggersElement { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AdTriggersElement { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1439,7 +1303,7 @@ impl std::convert::From<&str> for AdMarkers { impl std::str::FromStr for AdMarkers { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AdMarkers::from(s)) } } @@ -1459,25 +1323,14 @@ impl AsRef for AdMarkers { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AdMarkers { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DashPackage { /// A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no /// ad markers are output. Specify multiple items to create ad markers for all of the included /// message types. - #[serde(rename = "adTriggers")] - #[serde(default)] pub ad_triggers: std::option::Option>, /// This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to /// determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become @@ -1487,64 +1340,36 @@ pub struct DashPackage { /// be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in /// AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags /// and are always treated as ads if specified in AdTriggers. - #[serde(rename = "adsOnDeliveryRestrictions")] - #[serde(default)] pub ads_on_delivery_restrictions: std::option::Option, /// A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration. - #[serde(rename = "encryption")] - #[serde(default)] pub encryption: std::option::Option, /// Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level. - #[serde(rename = "manifestLayout")] - #[serde(default)] pub manifest_layout: std::option::Option, /// Time window (in seconds) contained in each manifest. - #[serde(rename = "manifestWindowSeconds")] - #[serde(default)] pub manifest_window_seconds: i32, /// Minimum duration (in seconds) that a player will buffer media before starting the presentation. - #[serde(rename = "minBufferTimeSeconds")] - #[serde(default)] pub min_buffer_time_seconds: i32, /// Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD). - #[serde(rename = "minUpdatePeriodSeconds")] - #[serde(default)] pub min_update_period_seconds: i32, /// A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) /// Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not /// be partitioned into more than one period. If the list contains "ADS", new periods will be created where /// the Channel source contains SCTE-35 ad markers. - #[serde(rename = "periodTriggers")] - #[serde(default)] pub period_triggers: std::option::Option>, /// The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled. - #[serde(rename = "profile")] - #[serde(default)] pub profile: std::option::Option, /// Duration (in seconds) of each segment. Actual segments will be /// rounded to the nearest multiple of the source segment duration. - #[serde(rename = "segmentDurationSeconds")] - #[serde(default)] pub segment_duration_seconds: i32, /// Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs. - #[serde(rename = "segmentTemplateFormat")] - #[serde(default)] pub segment_template_format: std::option::Option, /// A StreamSelection configuration. - #[serde(rename = "streamSelection")] - #[serde(default)] pub stream_selection: std::option::Option, /// Duration (in seconds) to delay live content before presentation. - #[serde(rename = "suggestedPresentationDelaySeconds")] - #[serde(default)] pub suggested_presentation_delay_seconds: i32, /// Determines the type of UTCTiming included in the Media Presentation Description (MPD) - #[serde(rename = "utcTiming")] - #[serde(default)] pub utc_timing: std::option::Option, /// Specifies the value attribute of the UTCTiming field when utcTiming is set to HTTP-ISO or HTTP-HEAD - #[serde(rename = "utcTimingUri")] - #[serde(default)] pub utc_timing_uri: std::option::Option, } impl std::fmt::Debug for DashPackage { @@ -1845,7 +1670,7 @@ impl std::convert::From<&str> for UtcTiming { impl std::str::FromStr for UtcTiming { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UtcTiming::from(s)) } } @@ -1864,15 +1689,6 @@ impl AsRef for UtcTiming { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UtcTiming { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1904,7 +1720,7 @@ impl std::convert::From<&str> for SegmentTemplateFormat { impl std::str::FromStr for SegmentTemplateFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SegmentTemplateFormat::from(s)) } } @@ -1923,15 +1739,6 @@ impl AsRef for SegmentTemplateFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SegmentTemplateFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1961,7 +1768,7 @@ impl std::convert::From<&str> for Profile { impl std::str::FromStr for Profile { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Profile::from(s)) } } @@ -1979,15 +1786,6 @@ impl AsRef for Profile { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Profile { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2015,7 +1813,7 @@ impl std::convert::From<&str> for PeriodTriggersElement { impl std::str::FromStr for PeriodTriggersElement { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PeriodTriggersElement::from(s)) } } @@ -2032,15 +1830,6 @@ impl AsRef for PeriodTriggersElement { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PeriodTriggersElement { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2070,7 +1859,7 @@ impl std::convert::From<&str> for ManifestLayout { impl std::str::FromStr for ManifestLayout { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ManifestLayout::from(s)) } } @@ -2088,27 +1877,14 @@ impl AsRef for ManifestLayout { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ManifestLayout { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DashEncryption { /// Time (in seconds) between each encryption key rotation. - #[serde(rename = "keyRotationIntervalSeconds")] - #[serde(default)] pub key_rotation_interval_seconds: i32, /// A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. - #[serde(rename = "spekeKeyProvider")] - #[serde(default)] pub speke_key_provider: std::option::Option, } impl std::fmt::Debug for DashEncryption { @@ -2176,28 +1952,18 @@ impl DashEncryption { /// A Common Media Application Format (CMAF) packaging configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CmafPackage { /// A Common Media Application Format (CMAF) encryption configuration. - #[serde(rename = "encryption")] - #[serde(default)] pub encryption: std::option::Option, /// A list of HLS manifest configurations - #[serde(rename = "hlsManifests")] - #[serde(default)] pub hls_manifests: std::option::Option>, /// Duration (in seconds) of each segment. Actual segments will be /// rounded to the nearest multiple of the source segment duration. - #[serde(rename = "segmentDurationSeconds")] - #[serde(default)] pub segment_duration_seconds: i32, /// An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId. - #[serde(rename = "segmentPrefix")] - #[serde(default)] pub segment_prefix: std::option::Option, /// A StreamSelection configuration. - #[serde(rename = "streamSelection")] - #[serde(default)] pub stream_selection: std::option::Option, } impl std::fmt::Debug for CmafPackage { @@ -2304,7 +2070,7 @@ impl CmafPackage { /// A HTTP Live Streaming (HLS) manifest configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsManifest { /// This setting controls how ad markers are included in the packaged OriginEndpoint. /// "NONE" will omit all SCTE-35 ad markers from the output. @@ -2315,30 +2081,18 @@ pub struct HlsManifest { /// "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events /// in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value /// that is greater than 0. - #[serde(rename = "adMarkers")] - #[serde(default)] pub ad_markers: std::option::Option, /// The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// When enabled, an I-Frame only stream will be included in the output. - #[serde(rename = "includeIframeOnlyStream")] - #[serde(default)] pub include_iframe_only_stream: bool, /// An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint. - #[serde(rename = "manifestName")] - #[serde(default)] pub manifest_name: std::option::Option, /// The HTTP Live Streaming (HLS) playlist type. /// When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE /// entry will be included in the media playlist. - #[serde(rename = "playlistType")] - #[serde(default)] pub playlist_type: std::option::Option, /// Time window (in seconds) contained in each parent manifest. - #[serde(rename = "playlistWindowSeconds")] - #[serde(default)] pub playlist_window_seconds: i32, /// The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag /// inserted into manifests. Additionally, when an interval is specified @@ -2349,12 +2103,8 @@ pub struct HlsManifest { /// ID3Timed Metadata messages will be generated. Note that irrespective /// of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, /// it will be passed through to HLS output. - #[serde(rename = "programDateTimeIntervalSeconds")] - #[serde(default)] pub program_date_time_interval_seconds: i32, /// The URL of the packaged OriginEndpoint for consumption. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, } impl std::fmt::Debug for HlsManifest { @@ -2521,19 +2271,13 @@ impl HlsManifest { /// A Common Media Application Format (CMAF) encryption configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CmafEncryption { /// An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV). - #[serde(rename = "constantInitializationVector")] - #[serde(default)] pub constant_initialization_vector: std::option::Option, /// Time (in seconds) between each encryption key rotation. - #[serde(rename = "keyRotationIntervalSeconds")] - #[serde(default)] pub key_rotation_interval_seconds: i32, /// A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. - #[serde(rename = "spekeKeyProvider")] - #[serde(default)] pub speke_key_provider: std::option::Option, } impl std::fmt::Debug for CmafEncryption { @@ -2622,15 +2366,11 @@ impl CmafEncryption { /// CDN Authorization credentials #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Authorization { /// The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint. - #[serde(rename = "cdnIdentifierSecret")] - #[serde(default)] pub cdn_identifier_secret: std::option::Option, /// The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager. - #[serde(rename = "secretsRoleArn")] - #[serde(default)] pub secrets_role_arn: std::option::Option, } impl std::fmt::Debug for Authorization { @@ -2693,29 +2433,19 @@ impl Authorization { /// A Common Media Application Format (CMAF) packaging configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CmafPackageCreateOrUpdateParameters { /// A Common Media Application Format (CMAF) encryption configuration. - #[serde(rename = "encryption")] - #[serde(default)] pub encryption: std::option::Option, /// A list of HLS manifest configurations - #[serde(rename = "hlsManifests")] - #[serde(default)] pub hls_manifests: std::option::Option>, /// Duration (in seconds) of each segment. Actual segments will be /// rounded to the nearest multiple of the source segment duration. - #[serde(rename = "segmentDurationSeconds")] - #[serde(default)] pub segment_duration_seconds: i32, /// An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId. - #[serde(rename = "segmentPrefix")] - #[serde(default)] pub segment_prefix: std::option::Option, /// A StreamSelection configuration. - #[serde(rename = "streamSelection")] - #[serde(default)] pub stream_selection: std::option::Option, } impl std::fmt::Debug for CmafPackageCreateOrUpdateParameters { @@ -2828,7 +2558,7 @@ impl CmafPackageCreateOrUpdateParameters { /// A HTTP Live Streaming (HLS) manifest configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsManifestCreateOrUpdateParameters { /// This setting controls how ad markers are included in the packaged OriginEndpoint. /// "NONE" will omit all SCTE-35 ad markers from the output. @@ -2839,14 +2569,10 @@ pub struct HlsManifestCreateOrUpdateParameters { /// "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events /// in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value /// that is greater than 0. - #[serde(rename = "adMarkers")] - #[serde(default)] pub ad_markers: std::option::Option, /// A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no /// ad markers are output. Specify multiple items to create ad markers for all of the included /// message types. - #[serde(rename = "adTriggers")] - #[serde(default)] pub ad_triggers: std::option::Option>, /// This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to /// determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become @@ -2856,30 +2582,18 @@ pub struct HlsManifestCreateOrUpdateParameters { /// be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in /// AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags /// and are always treated as ads if specified in AdTriggers. - #[serde(rename = "adsOnDeliveryRestrictions")] - #[serde(default)] pub ads_on_delivery_restrictions: std::option::Option, /// The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// When enabled, an I-Frame only stream will be included in the output. - #[serde(rename = "includeIframeOnlyStream")] - #[serde(default)] pub include_iframe_only_stream: bool, /// An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint. - #[serde(rename = "manifestName")] - #[serde(default)] pub manifest_name: std::option::Option, /// The HTTP Live Streaming (HLS) playlist type. /// When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE /// entry will be included in the media playlist. - #[serde(rename = "playlistType")] - #[serde(default)] pub playlist_type: std::option::Option, /// Time window (in seconds) contained in each parent manifest. - #[serde(rename = "playlistWindowSeconds")] - #[serde(default)] pub playlist_window_seconds: i32, /// The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag /// inserted into manifests. Additionally, when an interval is specified @@ -2890,8 +2604,6 @@ pub struct HlsManifestCreateOrUpdateParameters { /// ID3Timed Metadata messages will be generated. Note that irrespective /// of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, /// it will be passed through to HLS output. - #[serde(rename = "programDateTimeIntervalSeconds")] - #[serde(default)] pub program_date_time_interval_seconds: i32, } impl std::fmt::Debug for HlsManifestCreateOrUpdateParameters { @@ -3091,11 +2803,9 @@ impl HlsManifestCreateOrUpdateParameters { /// Configure ingress access logging. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IngressAccessLogs { /// Customize the log group name. - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, } impl std::fmt::Debug for IngressAccessLogs { @@ -3143,11 +2853,9 @@ impl IngressAccessLogs { /// An HTTP Live Streaming (HLS) ingest resource configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HlsIngest { /// A list of endpoints to which the source stream should be sent. - #[serde(rename = "ingestEndpoints")] - #[serde(default)] pub ingest_endpoints: std::option::Option>, } impl std::fmt::Debug for HlsIngest { @@ -3197,23 +2905,15 @@ impl HlsIngest { /// An endpoint for ingesting source content for a Channel. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IngestEndpoint { /// The system generated unique identifier for the IngestEndpoint - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// The system generated password for ingest authentication. - #[serde(rename = "password")] - #[serde(default)] pub password: std::option::Option, /// The ingest URL to which the source stream should be sent. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// The system generated username for ingest authentication. - #[serde(rename = "username")] - #[serde(default)] pub username: std::option::Option, } impl std::fmt::Debug for IngestEndpoint { @@ -3294,11 +2994,9 @@ impl IngestEndpoint { /// Configure egress access logging. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EgressAccessLogs { /// Customize the log group name. - #[serde(rename = "logGroupName")] - #[serde(default)] pub log_group_name: std::option::Option, } impl std::fmt::Debug for EgressAccessLogs { @@ -3346,76 +3044,44 @@ impl EgressAccessLogs { /// An OriginEndpoint resource configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OriginEndpoint { /// The Amazon Resource Name (ARN) assigned to the OriginEndpoint. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// CDN Authorization credentials - #[serde(rename = "authorization")] - #[serde(default)] pub authorization: std::option::Option, /// The ID of the Channel the OriginEndpoint is associated with. - #[serde(rename = "channelId")] - #[serde(default)] pub channel_id: std::option::Option, /// A Common Media Application Format (CMAF) packaging configuration. - #[serde(rename = "cmafPackage")] - #[serde(default)] pub cmaf_package: std::option::Option, /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - #[serde(rename = "dashPackage")] - #[serde(default)] pub dash_package: std::option::Option, /// A short text description of the OriginEndpoint. - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, /// An HTTP Live Streaming (HLS) packaging configuration. - #[serde(rename = "hlsPackage")] - #[serde(default)] pub hls_package: std::option::Option, /// The ID of the OriginEndpoint. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// A short string appended to the end of the OriginEndpoint URL. - #[serde(rename = "manifestName")] - #[serde(default)] pub manifest_name: std::option::Option, /// A Microsoft Smooth Streaming (MSS) packaging configuration. - #[serde(rename = "mssPackage")] - #[serde(default)] pub mss_package: std::option::Option, /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - #[serde(rename = "origination")] - #[serde(default)] pub origination: std::option::Option, /// Maximum duration (seconds) of content to retain for startover playback. /// If not specified, startover playback will be disabled for the OriginEndpoint. - #[serde(rename = "startoverWindowSeconds")] - #[serde(default)] pub startover_window_seconds: i32, /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, /// Amount of delay (seconds) to enforce on the playback of live content. /// If not specified, there will be no time delay in effect for the OriginEndpoint. - #[serde(rename = "timeDelaySeconds")] - #[serde(default)] pub time_delay_seconds: i32, /// The URL of the packaged OriginEndpoint for consumption. - #[serde(rename = "url")] - #[serde(default)] pub url: std::option::Option, /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - #[serde(rename = "whitelist")] - #[serde(default)] pub whitelist: std::option::Option>, } impl std::fmt::Debug for OriginEndpoint { @@ -3681,47 +3347,29 @@ impl OriginEndpoint { /// A HarvestJob resource configuration #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HarvestJob { /// The Amazon Resource Name (ARN) assigned to the HarvestJob. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// The ID of the Channel that the HarvestJob will harvest from. - #[serde(rename = "channelId")] - #[serde(default)] pub channel_id: std::option::Option, /// The time the HarvestJob was submitted - #[serde(rename = "createdAt")] - #[serde(default)] pub created_at: std::option::Option, /// The end of the time-window which will be harvested. - #[serde(rename = "endTime")] - #[serde(default)] pub end_time: std::option::Option, /// The ID of the HarvestJob. The ID must be unique within the region /// and it cannot be changed after the HarvestJob is submitted. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// The ID of the OriginEndpoint that the HarvestJob will harvest from. /// This cannot be changed after the HarvestJob is submitted. - #[serde(rename = "originEndpointId")] - #[serde(default)] pub origin_endpoint_id: std::option::Option, /// Configuration parameters for where in an S3 bucket to place the harvested content - #[serde(rename = "s3Destination")] - #[serde(default)] pub s3_destination: std::option::Option, /// The start of the time-window which will be harvested. - #[serde(rename = "startTime")] - #[serde(default)] pub start_time: std::option::Option, /// The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for /// HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will /// include an explanation of why the HarvestJob failed. - #[serde(rename = "status")] - #[serde(default)] pub status: std::option::Option, } impl std::fmt::Debug for HarvestJob { @@ -3900,7 +3548,7 @@ impl std::convert::From<&str> for Status { impl std::str::FromStr for Status { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Status::from(s)) } } @@ -3919,31 +3567,16 @@ impl AsRef for Status { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Status { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Configuration parameters for where in an S3 bucket to place the harvested content #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3Destination { /// The name of an S3 bucket within which harvested content will be exported - #[serde(rename = "bucketName")] - #[serde(default)] pub bucket_name: std::option::Option, /// The key in the specified S3 bucket where the harvested top-level manifest will be placed. - #[serde(rename = "manifestKey")] - #[serde(default)] pub manifest_key: std::option::Option, /// The IAM role used to write to the specified S3 bucket - #[serde(rename = "roleArn")] - #[serde(default)] pub role_arn: std::option::Option, } impl std::fmt::Debug for S3Destination { @@ -4012,35 +3645,21 @@ impl S3Destination { /// A Channel resource configuration. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Channel { /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] pub arn: std::option::Option, /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] pub description: std::option::Option, /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] pub egress_access_logs: std::option::Option, /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] pub hls_ingest: std::option::Option, /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] pub id: std::option::Option, /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] pub ingress_access_logs: std::option::Option, /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] pub tags: std::option::Option>, } diff --git a/sdk/mediapackage/src/operation_deser.rs b/sdk/mediapackage/src/operation_deser.rs index e29b4c232a43..fd807fd981b1 100644 --- a/sdk/mediapackage/src/operation_deser.rs +++ b/sdk/mediapackage/src/operation_deser.rs @@ -12,47 +12,54 @@ pub fn parse_configure_logs_error( Err(match error_code { "ForbiddenException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::ForbiddenError({ + kind: crate::error::ConfigureLogsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ConfigureLogsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ConfigureLogsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::InternalServerErrorError({ + kind: crate::error::ConfigureLogsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ConfigureLogsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ConfigureLogsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::NotFoundError({ + kind: crate::error::ConfigureLogsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ConfigureLogsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ConfigureLogsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::ServiceUnavailableError({ + kind: crate::error::ConfigureLogsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -62,11 +69,11 @@ pub fn parse_configure_logs_error( }, "TooManyRequestsException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::TooManyRequestsError({ + kind: crate::error::ConfigureLogsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -76,11 +83,11 @@ pub fn parse_configure_logs_error( }, "UnprocessableEntityException" => crate::error::ConfigureLogsError { meta: generic, - kind: crate::error::ConfigureLogsErrorKind::UnprocessableEntityError({ + kind: crate::error::ConfigureLogsErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -101,7 +108,7 @@ pub fn parse_configure_logs_response( let mut output = crate::output::configure_logs_output::Builder::default(); let _ = response; output = - crate::json_deser::configure_logs_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_configure_logs(response.body().as_ref(), output) .map_err(crate::error::ConfigureLogsError::unhandled)?; output.build() }) @@ -120,47 +127,54 @@ pub fn parse_create_channel_error( Err(match error_code { "ForbiddenException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::ForbiddenError({ + kind: crate::error::CreateChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::InternalServerErrorError({ + kind: crate::error::CreateChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::NotFoundError({ + kind: crate::error::CreateChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::ServiceUnavailableError({ + kind: crate::error::CreateChannelErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -170,11 +184,11 @@ pub fn parse_create_channel_error( }, "TooManyRequestsException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::TooManyRequestsError({ + kind: crate::error::CreateChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -184,11 +198,11 @@ pub fn parse_create_channel_error( }, "UnprocessableEntityException" => crate::error::CreateChannelError { meta: generic, - kind: crate::error::CreateChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -209,7 +223,7 @@ pub fn parse_create_channel_response( let mut output = crate::output::create_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::create_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_channel(response.body().as_ref(), output) .map_err(crate::error::CreateChannelError::unhandled)?; output.build() }) @@ -229,47 +243,54 @@ pub fn parse_create_harvest_job_error( Err(match error_code { "ForbiddenException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::ForbiddenError({ + kind: crate::error::CreateHarvestJobErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateHarvestJobError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHarvestJobError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::InternalServerErrorError({ + kind: crate::error::CreateHarvestJobErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateHarvestJobError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHarvestJobError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::NotFoundError({ + kind: crate::error::CreateHarvestJobErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateHarvestJobError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHarvestJobError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::ServiceUnavailableError({ + kind: crate::error::CreateHarvestJobErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -279,11 +300,11 @@ pub fn parse_create_harvest_job_error( }, "TooManyRequestsException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::TooManyRequestsError({ + kind: crate::error::CreateHarvestJobErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -293,11 +314,11 @@ pub fn parse_create_harvest_job_error( }, "UnprocessableEntityException" => crate::error::CreateHarvestJobError { meta: generic, - kind: crate::error::CreateHarvestJobErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateHarvestJobErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -319,7 +340,7 @@ pub fn parse_create_harvest_job_response( let mut output = crate::output::create_harvest_job_output::Builder::default(); let _ = response; output = - crate::json_deser::create_harvest_job_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_harvest_job(response.body().as_ref(), output) .map_err(crate::error::CreateHarvestJobError::unhandled)?; output.build() }) @@ -341,47 +362,54 @@ pub fn parse_create_origin_endpoint_error( Err(match error_code { "ForbiddenException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::ForbiddenError({ + kind: crate::error::CreateOriginEndpointErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOriginEndpointError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::InternalServerErrorError({ + kind: crate::error::CreateOriginEndpointErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateOriginEndpointError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOriginEndpointError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::NotFoundError({ + kind: crate::error::CreateOriginEndpointErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOriginEndpointError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::ServiceUnavailableError({ + kind: crate::error::CreateOriginEndpointErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -391,11 +419,11 @@ pub fn parse_create_origin_endpoint_error( }, "TooManyRequestsException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::TooManyRequestsError({ + kind: crate::error::CreateOriginEndpointErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -405,11 +433,11 @@ pub fn parse_create_origin_endpoint_error( }, "UnprocessableEntityException" => crate::error::CreateOriginEndpointError { meta: generic, - kind: crate::error::CreateOriginEndpointErrorKind::UnprocessableEntityError({ + kind: crate::error::CreateOriginEndpointErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -432,7 +460,7 @@ pub fn parse_create_origin_endpoint_response( #[allow(unused_mut)] let mut output = crate::output::create_origin_endpoint_output::Builder::default(); let _ = response; - output = crate::json_deser::create_origin_endpoint_deser_operation( + output = crate::json_deser::deser_operation_create_origin_endpoint( response.body().as_ref(), output, ) @@ -454,47 +482,54 @@ pub fn parse_delete_channel_error( Err(match error_code { "ForbiddenException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::ForbiddenError({ + kind: crate::error::DeleteChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::NotFoundError({ + kind: crate::error::DeleteChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteChannelError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::ServiceUnavailableError({ + kind: crate::error::DeleteChannelErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -504,11 +539,11 @@ pub fn parse_delete_channel_error( }, "TooManyRequestsException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -518,11 +553,11 @@ pub fn parse_delete_channel_error( }, "UnprocessableEntityException" => crate::error::DeleteChannelError { meta: generic, - kind: crate::error::DeleteChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::DeleteChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -562,47 +597,54 @@ pub fn parse_delete_origin_endpoint_error( Err(match error_code { "ForbiddenException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::ForbiddenError({ + kind: crate::error::DeleteOriginEndpointErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::InternalServerErrorError({ + kind: crate::error::DeleteOriginEndpointErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::NotFoundError({ + kind: crate::error::DeleteOriginEndpointErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteOriginEndpointError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::ServiceUnavailableError({ + kind: crate::error::DeleteOriginEndpointErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -612,11 +654,11 @@ pub fn parse_delete_origin_endpoint_error( }, "TooManyRequestsException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteOriginEndpointErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -626,11 +668,11 @@ pub fn parse_delete_origin_endpoint_error( }, "UnprocessableEntityException" => crate::error::DeleteOriginEndpointError { meta: generic, - kind: crate::error::DeleteOriginEndpointErrorKind::UnprocessableEntityError({ + kind: crate::error::DeleteOriginEndpointErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -670,47 +712,54 @@ pub fn parse_describe_channel_error( Err(match error_code { "ForbiddenException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::ForbiddenError({ + kind: crate::error::DescribeChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::NotFoundError({ + kind: crate::error::DescribeChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::ServiceUnavailableError({ + kind: crate::error::DescribeChannelErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -720,11 +769,11 @@ pub fn parse_describe_channel_error( }, "TooManyRequestsException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -734,11 +783,11 @@ pub fn parse_describe_channel_error( }, "UnprocessableEntityException" => crate::error::DescribeChannelError { meta: generic, - kind: crate::error::DescribeChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::DescribeChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -759,7 +808,7 @@ pub fn parse_describe_channel_response( let mut output = crate::output::describe_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_channel(response.body().as_ref(), output) .map_err(crate::error::DescribeChannelError::unhandled)?; output.build() }) @@ -781,47 +830,54 @@ pub fn parse_describe_harvest_job_error( Err(match error_code { "ForbiddenException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::ForbiddenError({ + kind: crate::error::DescribeHarvestJobErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeHarvestJobError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHarvestJobError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeHarvestJobErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeHarvestJobError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHarvestJobError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::NotFoundError({ + kind: crate::error::DescribeHarvestJobErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeHarvestJobError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHarvestJobError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::ServiceUnavailableError({ + kind: crate::error::DescribeHarvestJobErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -831,11 +887,11 @@ pub fn parse_describe_harvest_job_error( }, "TooManyRequestsException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeHarvestJobErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -845,11 +901,11 @@ pub fn parse_describe_harvest_job_error( }, "UnprocessableEntityException" => crate::error::DescribeHarvestJobError { meta: generic, - kind: crate::error::DescribeHarvestJobErrorKind::UnprocessableEntityError({ + kind: crate::error::DescribeHarvestJobErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -872,7 +928,7 @@ pub fn parse_describe_harvest_job_response( #[allow(unused_mut)] let mut output = crate::output::describe_harvest_job_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_harvest_job_deser_operation( + output = crate::json_deser::deser_operation_describe_harvest_job( response.body().as_ref(), output, ) @@ -901,22 +957,11 @@ pub fn parse_describe_origin_endpoint_error( Err(match error_code { "ForbiddenException" => crate::error::DescribeOriginEndpointError { meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::ForbiddenError({ - #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); - let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOriginEndpointError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::DescribeOriginEndpointError { - meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::InternalServerErrorError({ + kind: crate::error::DescribeOriginEndpointErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( response.body().as_ref(), output, ) @@ -924,24 +969,42 @@ pub fn parse_describe_origin_endpoint_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::DescribeOriginEndpointError { + meta: generic, + kind: crate::error::DescribeOriginEndpointErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeOriginEndpointError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DescribeOriginEndpointError { meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::NotFoundError({ + kind: crate::error::DescribeOriginEndpointErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOriginEndpointError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::DescribeOriginEndpointError { meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::ServiceUnavailableError({ + kind: crate::error::DescribeOriginEndpointErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -951,11 +1014,11 @@ pub fn parse_describe_origin_endpoint_error( }, "TooManyRequestsException" => crate::error::DescribeOriginEndpointError { meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::TooManyRequestsError({ + kind: crate::error::DescribeOriginEndpointErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -965,11 +1028,11 @@ pub fn parse_describe_origin_endpoint_error( }, "UnprocessableEntityException" => crate::error::DescribeOriginEndpointError { meta: generic, - kind: crate::error::DescribeOriginEndpointErrorKind::UnprocessableEntityError({ + kind: crate::error::DescribeOriginEndpointErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -992,7 +1055,7 @@ pub fn parse_describe_origin_endpoint_response( #[allow(unused_mut)] let mut output = crate::output::describe_origin_endpoint_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_origin_endpoint_deser_operation( + output = crate::json_deser::deser_operation_describe_origin_endpoint( response.body().as_ref(), output, ) @@ -1014,47 +1077,54 @@ pub fn parse_list_channels_error( Err(match error_code { "ForbiddenException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::ForbiddenError({ + kind: crate::error::ListChannelsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::InternalServerErrorError({ + kind: crate::error::ListChannelsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::NotFoundError({ + kind: crate::error::ListChannelsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListChannelsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::ServiceUnavailableError({ + kind: crate::error::ListChannelsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1064,11 +1134,11 @@ pub fn parse_list_channels_error( }, "TooManyRequestsException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::TooManyRequestsError({ + kind: crate::error::ListChannelsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1078,11 +1148,11 @@ pub fn parse_list_channels_error( }, "UnprocessableEntityException" => crate::error::ListChannelsError { meta: generic, - kind: crate::error::ListChannelsErrorKind::UnprocessableEntityError({ + kind: crate::error::ListChannelsErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1102,7 +1172,7 @@ pub fn parse_list_channels_response( #[allow(unused_mut)] let mut output = crate::output::list_channels_output::Builder::default(); let _ = response; - output = crate::json_deser::list_channels_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_channels(response.body().as_ref(), output) .map_err(crate::error::ListChannelsError::unhandled)?; output.build() }) @@ -1121,47 +1191,54 @@ pub fn parse_list_harvest_jobs_error( Err(match error_code { "ForbiddenException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::ForbiddenError({ + kind: crate::error::ListHarvestJobsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListHarvestJobsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHarvestJobsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::InternalServerErrorError({ + kind: crate::error::ListHarvestJobsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListHarvestJobsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHarvestJobsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::NotFoundError({ + kind: crate::error::ListHarvestJobsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListHarvestJobsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHarvestJobsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::ServiceUnavailableError({ + kind: crate::error::ListHarvestJobsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1171,11 +1248,11 @@ pub fn parse_list_harvest_jobs_error( }, "TooManyRequestsException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::TooManyRequestsError({ + kind: crate::error::ListHarvestJobsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1185,11 +1262,11 @@ pub fn parse_list_harvest_jobs_error( }, "UnprocessableEntityException" => crate::error::ListHarvestJobsError { meta: generic, - kind: crate::error::ListHarvestJobsErrorKind::UnprocessableEntityError({ + kind: crate::error::ListHarvestJobsErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1210,7 +1287,7 @@ pub fn parse_list_harvest_jobs_response( let mut output = crate::output::list_harvest_jobs_output::Builder::default(); let _ = response; output = - crate::json_deser::list_harvest_jobs_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_harvest_jobs(response.body().as_ref(), output) .map_err(crate::error::ListHarvestJobsError::unhandled)?; output.build() }) @@ -1232,47 +1309,54 @@ pub fn parse_list_origin_endpoints_error( Err(match error_code { "ForbiddenException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::ForbiddenError({ + kind: crate::error::ListOriginEndpointsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOriginEndpointsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOriginEndpointsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::InternalServerErrorError({ + kind: crate::error::ListOriginEndpointsErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListOriginEndpointsError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOriginEndpointsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::NotFoundError({ + kind: crate::error::ListOriginEndpointsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListOriginEndpointsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOriginEndpointsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::ServiceUnavailableError({ + kind: crate::error::ListOriginEndpointsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1282,11 +1366,11 @@ pub fn parse_list_origin_endpoints_error( }, "TooManyRequestsException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::TooManyRequestsError({ + kind: crate::error::ListOriginEndpointsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1296,11 +1380,11 @@ pub fn parse_list_origin_endpoints_error( }, "UnprocessableEntityException" => crate::error::ListOriginEndpointsError { meta: generic, - kind: crate::error::ListOriginEndpointsErrorKind::UnprocessableEntityError({ + kind: crate::error::ListOriginEndpointsErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1323,7 +1407,7 @@ pub fn parse_list_origin_endpoints_response( #[allow(unused_mut)] let mut output = crate::output::list_origin_endpoints_output::Builder::default(); let _ = response; - output = crate::json_deser::list_origin_endpoints_deser_operation( + output = crate::json_deser::deser_operation_list_origin_endpoints( response.body().as_ref(), output, ) @@ -1355,7 +1439,7 @@ pub fn parse_list_tags_for_resource_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_for_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_for_resource_deser_operation( + output = crate::json_deser::deser_operation_list_tags_for_resource( response.body().as_ref(), output, ) @@ -1384,22 +1468,11 @@ pub fn parse_rotate_channel_credentials_error( Err(match error_code { "ForbiddenException" => crate::error::RotateChannelCredentialsError { meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::ForbiddenError({ - #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); - let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::RotateChannelCredentialsError::unhandled)?; - output.build() - }), - }, - "InternalServerErrorException" => crate::error::RotateChannelCredentialsError { - meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::InternalServerErrorError({ + kind: crate::error::RotateChannelCredentialsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( response.body().as_ref(), output, ) @@ -1407,24 +1480,42 @@ pub fn parse_rotate_channel_credentials_error( output.build() }), }, + "InternalServerErrorException" => { + crate::error::RotateChannelCredentialsError { + meta: generic, + kind: crate::error::RotateChannelCredentialsErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RotateChannelCredentialsError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::RotateChannelCredentialsError { meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::NotFoundError({ + kind: crate::error::RotateChannelCredentialsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::RotateChannelCredentialsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateChannelCredentialsError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::RotateChannelCredentialsError { meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::ServiceUnavailableError({ + kind: crate::error::RotateChannelCredentialsErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1434,11 +1525,11 @@ pub fn parse_rotate_channel_credentials_error( }, "TooManyRequestsException" => crate::error::RotateChannelCredentialsError { meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::TooManyRequestsError({ + kind: crate::error::RotateChannelCredentialsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1448,11 +1539,11 @@ pub fn parse_rotate_channel_credentials_error( }, "UnprocessableEntityException" => crate::error::RotateChannelCredentialsError { meta: generic, - kind: crate::error::RotateChannelCredentialsErrorKind::UnprocessableEntityError({ + kind: crate::error::RotateChannelCredentialsErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1475,7 +1566,7 @@ pub fn parse_rotate_channel_credentials_response( #[allow(unused_mut)] let mut output = crate::output::rotate_channel_credentials_output::Builder::default(); let _ = response; - output = crate::json_deser::rotate_channel_credentials_deser_operation( + output = crate::json_deser::deser_operation_rotate_channel_credentials( response.body().as_ref(), output, ) @@ -1500,65 +1591,39 @@ pub fn parse_rotate_ingest_endpoint_credentials_error( Err(match error_code { "ForbiddenException" => crate::error::RotateIngestEndpointCredentialsError { meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::ForbiddenError({ + kind: crate::error::RotateIngestEndpointCredentialsErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::RotateIngestEndpointCredentialsError { meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::InternalServerErrorError( - { - #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); - let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::RotateIngestEndpointCredentialsErrorKind::InternalServerErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_error_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; + output.build() + }, + ), }, "NotFoundException" => crate::error::RotateIngestEndpointCredentialsError { meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::NotFoundError({ + kind: crate::error::RotateIngestEndpointCredentialsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; - output.build() - }), - }, - "ServiceUnavailableException" => crate::error::RotateIngestEndpointCredentialsError { - meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableError( - { - #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_unavailable_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; - output.build() - }, - ), - }, - "TooManyRequestsException" => crate::error::RotateIngestEndpointCredentialsError { - meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1566,21 +1631,49 @@ pub fn parse_rotate_ingest_endpoint_credentials_error( output.build() }), }, + "ServiceUnavailableException" => crate::error::RotateIngestEndpointCredentialsError { + meta: generic, + kind: + crate::error::RotateIngestEndpointCredentialsErrorKind::ServiceUnavailableException( + { + #[allow(unused_mut)] + let mut output = + crate::error::service_unavailable_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; + output.build() + }, + ), + }, + "TooManyRequestsException" => { + crate::error::RotateIngestEndpointCredentialsError { + meta: generic, + kind: + crate::error::RotateIngestEndpointCredentialsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; + output.build() + }, + ), + } + } "UnprocessableEntityException" => crate::error::RotateIngestEndpointCredentialsError { meta: generic, - kind: crate::error::RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityError( - { - #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); - let _ = response; - output = crate::json_deser::unprocessable_entity_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::RotateIngestEndpointCredentialsErrorKind::UnprocessableEntityException( + { + #[allow(unused_mut)] + let mut output = + crate::error::unprocessable_entity_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RotateIngestEndpointCredentialsError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::RotateIngestEndpointCredentialsError::generic(generic), }) @@ -1598,7 +1691,7 @@ pub fn parse_rotate_ingest_endpoint_credentials_response( let mut output = crate::output::rotate_ingest_endpoint_credentials_output::Builder::default(); let _ = response; - output = crate::json_deser::rotate_ingest_endpoint_credentials_deser_operation( + output = crate::json_deser::deser_operation_rotate_ingest_endpoint_credentials( response.body().as_ref(), output, ) @@ -1662,47 +1755,54 @@ pub fn parse_update_channel_error( Err(match error_code { "ForbiddenException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::ForbiddenError({ + kind: crate::error::UpdateChannelErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateChannelErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::NotFoundError({ + kind: crate::error::UpdateChannelErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateChannelError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::ServiceUnavailableError({ + kind: crate::error::UpdateChannelErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1712,11 +1812,11 @@ pub fn parse_update_channel_error( }, "TooManyRequestsException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateChannelErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1726,11 +1826,11 @@ pub fn parse_update_channel_error( }, "UnprocessableEntityException" => crate::error::UpdateChannelError { meta: generic, - kind: crate::error::UpdateChannelErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateChannelErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1751,7 +1851,7 @@ pub fn parse_update_channel_response( let mut output = crate::output::update_channel_output::Builder::default(); let _ = response; output = - crate::json_deser::update_channel_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_update_channel(response.body().as_ref(), output) .map_err(crate::error::UpdateChannelError::unhandled)?; output.build() }) @@ -1773,47 +1873,54 @@ pub fn parse_update_origin_endpoint_error( Err(match error_code { "ForbiddenException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::ForbiddenError({ + kind: crate::error::UpdateOriginEndpointErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::InternalServerErrorError({ + kind: crate::error::UpdateOriginEndpointErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; - output = crate::json_deser::internal_server_error_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; + output = + crate::json_deser::deser_structure_internal_server_error_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::NotFoundError({ + kind: crate::error::UpdateOriginEndpointErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOriginEndpointError::unhandled)?; output.build() }), }, "ServiceUnavailableException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::ServiceUnavailableError({ + kind: crate::error::UpdateOriginEndpointErrorKind::ServiceUnavailableException({ #[allow(unused_mut)] - let mut output = crate::error::service_unavailable_error::Builder::default(); + let mut output = crate::error::service_unavailable_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable_exception( + output = crate::json_deser::deser_structure_service_unavailable_exceptionjson_err( response.body().as_ref(), output, ) @@ -1823,11 +1930,11 @@ pub fn parse_update_origin_endpoint_error( }, "TooManyRequestsException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateOriginEndpointErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1837,11 +1944,11 @@ pub fn parse_update_origin_endpoint_error( }, "UnprocessableEntityException" => crate::error::UpdateOriginEndpointError { meta: generic, - kind: crate::error::UpdateOriginEndpointErrorKind::UnprocessableEntityError({ + kind: crate::error::UpdateOriginEndpointErrorKind::UnprocessableEntityException({ #[allow(unused_mut)] - let mut output = crate::error::unprocessable_entity_error::Builder::default(); + let mut output = crate::error::unprocessable_entity_exception::Builder::default(); let _ = response; - output = crate::json_deser::unprocessable_entity_exception( + output = crate::json_deser::deser_structure_unprocessable_entity_exceptionjson_err( response.body().as_ref(), output, ) @@ -1864,7 +1971,7 @@ pub fn parse_update_origin_endpoint_response( #[allow(unused_mut)] let mut output = crate::output::update_origin_endpoint_output::Builder::default(); let _ = response; - output = crate::json_deser::update_origin_endpoint_deser_operation( + output = crate::json_deser::deser_operation_update_origin_endpoint( response.body().as_ref(), output, ) diff --git a/sdk/mediapackage/src/operation_ser.rs b/sdk/mediapackage/src/operation_ser.rs index b547ff2a349d..6935e34af7ed 100644 --- a/sdk/mediapackage/src/operation_ser.rs +++ b/sdk/mediapackage/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_configure_logs( input: &crate::input::ConfigureLogsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_configure_logs_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_configure_logs( pub fn serialize_operation_create_channel( input: &crate::input::CreateChannelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_channel_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_channel( pub fn serialize_operation_create_harvest_job( input: &crate::input::CreateHarvestJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_harvest_job_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_create_harvest_job( pub fn serialize_operation_create_origin_endpoint( input: &crate::input::CreateOriginEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_origin_endpoint_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_origin_endpoint( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_update_channel( input: &crate::input::UpdateChannelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_channel_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_update_channel( pub fn serialize_operation_update_origin_endpoint( input: &crate::input::UpdateOriginEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_origin_endpoint_input(&mut object, input); diff --git a/sdk/mediapackage/src/serializer.rs b/sdk/mediapackage/src/serializer.rs deleted file mode 100644 index ea09b428218f..000000000000 --- a/sdk/mediapackage/src/serializer.rs +++ /dev/null @@ -1,981 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/// the option to configure log subscription. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ConfigureLogsInputBody<'a> { - /// Configure egress access logging. - pub egress_access_logs: &'a std::option::Option, - /// Configure ingress access logging. - pub ingress_access_logs: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ConfigureLogsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConfigureLogsInputBody"); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.finish() - } -} - -/// A new Channel configuration. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateChannelInputBody<'a> { - /// A short text description of the Channel. - pub description: &'a std::option::Option, - /// The ID of the Channel. The ID must be unique within the region and it - /// cannot be changed after a Channel is created. - pub id: &'a std::option::Option, - /// A collection of tags associated with a resource - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for CreateChannelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateChannelInputBody"); - formatter.field("description", &self.description); - formatter.field("id", &self.id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Configuration parameters used to create a new HarvestJob. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHarvestJobInputBody<'a> { - /// The end of the time-window which will be harvested - pub end_time: &'a std::option::Option, - /// The ID of the HarvestJob. The ID must be unique within the region - /// and it cannot be changed after the HarvestJob is submitted - pub id: &'a std::option::Option, - /// The ID of the OriginEndpoint that the HarvestJob will harvest from. - /// This cannot be changed after the HarvestJob is submitted. - pub origin_endpoint_id: &'a std::option::Option, - /// Configuration parameters for where in an S3 bucket to place the harvested content - pub s3_destination: &'a std::option::Option, - /// The start of the time-window which will be harvested - pub start_time: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateHarvestJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHarvestJobInputBody"); - formatter.field("end_time", &self.end_time); - formatter.field("id", &self.id); - formatter.field("origin_endpoint_id", &self.origin_endpoint_id); - formatter.field("s3_destination", &self.s3_destination); - formatter.field("start_time", &self.start_time); - formatter.finish() - } -} - -/// Configuration parameters used to create a new OriginEndpoint. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOriginEndpointInputBody<'a> { - /// CDN Authorization credentials - pub authorization: &'a std::option::Option, - /// The ID of the Channel that the OriginEndpoint will be associated with. - /// This cannot be changed after the OriginEndpoint is created. - pub channel_id: &'a std::option::Option, - /// A Common Media Application Format (CMAF) packaging configuration. - pub cmaf_package: &'a std::option::Option, - /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - pub dash_package: &'a std::option::Option, - /// A short text description of the OriginEndpoint. - pub description: &'a std::option::Option, - /// An HTTP Live Streaming (HLS) packaging configuration. - pub hls_package: &'a std::option::Option, - /// The ID of the OriginEndpoint. The ID must be unique within the region - /// and it cannot be changed after the OriginEndpoint is created. - pub id: &'a std::option::Option, - /// A short string that will be used as the filename of the OriginEndpoint URL (defaults to "index"). - pub manifest_name: &'a std::option::Option, - /// A Microsoft Smooth Streaming (MSS) packaging configuration. - pub mss_package: &'a std::option::Option, - /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint - /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be - /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - pub origination: &'a std::option::Option, - /// Maximum duration (seconds) of content to retain for startover playback. - /// If not specified, startover playback will be disabled for the OriginEndpoint. - pub startover_window_seconds: &'a i32, - /// A collection of tags associated with a resource - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, - /// Amount of delay (seconds) to enforce on the playback of live content. - /// If not specified, there will be no time delay in effect for the OriginEndpoint. - pub time_delay_seconds: &'a i32, - /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - pub whitelist: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateOriginEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOriginEndpointInputBody"); - formatter.field("authorization", &self.authorization); - formatter.field("channel_id", &self.channel_id); - formatter.field("cmaf_package", &self.cmaf_package); - formatter.field("dash_package", &self.dash_package); - formatter.field("description", &self.description); - formatter.field("hls_package", &self.hls_package); - formatter.field("id", &self.id); - formatter.field("manifest_name", &self.manifest_name); - formatter.field("mss_package", &self.mss_package); - formatter.field("origination", &self.origination); - formatter.field("startover_window_seconds", &self.startover_window_seconds); - formatter.field("tags", &self.tags); - formatter.field("time_delay_seconds", &self.time_delay_seconds); - formatter.field("whitelist", &self.whitelist); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - pub tags: &'a std::option::Option< - std::collections::HashMap, - >, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -/// Configuration parameters used to update the Channel. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelInputBody<'a> { - /// A short text description of the Channel. - pub description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateChannelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelInputBody"); - formatter.field("description", &self.description); - formatter.finish() - } -} - -/// Configuration parameters used to update an existing OriginEndpoint. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOriginEndpointInputBody<'a> { - /// CDN Authorization credentials - pub authorization: &'a std::option::Option, - /// A Common Media Application Format (CMAF) packaging configuration. - pub cmaf_package: &'a std::option::Option, - /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - pub dash_package: &'a std::option::Option, - /// A short text description of the OriginEndpoint. - pub description: &'a std::option::Option, - /// An HTTP Live Streaming (HLS) packaging configuration. - pub hls_package: &'a std::option::Option, - /// A short string that will be appended to the end of the Endpoint URL. - pub manifest_name: &'a std::option::Option, - /// A Microsoft Smooth Streaming (MSS) packaging configuration. - pub mss_package: &'a std::option::Option, - /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint - /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be - /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - pub origination: &'a std::option::Option, - /// Maximum duration (in seconds) of content to retain for startover playback. - /// If not specified, startover playback will be disabled for the OriginEndpoint. - pub startover_window_seconds: &'a i32, - /// Amount of delay (in seconds) to enforce on the playback of live content. - /// If not specified, there will be no time delay in effect for the OriginEndpoint. - pub time_delay_seconds: &'a i32, - /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - pub whitelist: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateOriginEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOriginEndpointInputBody"); - formatter.field("authorization", &self.authorization); - formatter.field("cmaf_package", &self.cmaf_package); - formatter.field("dash_package", &self.dash_package); - formatter.field("description", &self.description); - formatter.field("hls_package", &self.hls_package); - formatter.field("manifest_name", &self.manifest_name); - formatter.field("mss_package", &self.mss_package); - formatter.field("origination", &self.origination); - formatter.field("startover_window_seconds", &self.startover_window_seconds); - formatter.field("time_delay_seconds", &self.time_delay_seconds); - formatter.field("whitelist", &self.whitelist); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConfigureLogsOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ConfigureLogsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConfigureLogsOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateChannelOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for CreateChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHarvestJobOutputBody { - /// The Amazon Resource Name (ARN) assigned to the HarvestJob. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// The ID of the Channel that the HarvestJob will harvest from. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// The time the HarvestJob was submitted - #[serde(rename = "createdAt")] - #[serde(default)] - pub created_at: std::option::Option, - /// The end of the time-window which will be harvested. - #[serde(rename = "endTime")] - #[serde(default)] - pub end_time: std::option::Option, - /// The ID of the HarvestJob. The ID must be unique within the region - /// and it cannot be changed after the HarvestJob is submitted. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// The ID of the OriginEndpoint that the HarvestJob will harvest from. - /// This cannot be changed after the HarvestJob is submitted. - #[serde(rename = "originEndpointId")] - #[serde(default)] - pub origin_endpoint_id: std::option::Option, - /// Configuration parameters for where in an S3 bucket to place the harvested content - #[serde(rename = "s3Destination")] - #[serde(default)] - pub s3_destination: std::option::Option, - /// The start of the time-window which will be harvested. - #[serde(rename = "startTime")] - #[serde(default)] - pub start_time: std::option::Option, - /// The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for - /// HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will - /// include an explanation of why the HarvestJob failed. - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, -} -impl std::fmt::Debug for CreateHarvestJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHarvestJobOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("channel_id", &self.channel_id); - formatter.field("created_at", &self.created_at); - formatter.field("end_time", &self.end_time); - formatter.field("id", &self.id); - formatter.field("origin_endpoint_id", &self.origin_endpoint_id); - formatter.field("s3_destination", &self.s3_destination); - formatter.field("start_time", &self.start_time); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOriginEndpointOutputBody { - /// The Amazon Resource Name (ARN) assigned to the OriginEndpoint. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// CDN Authorization credentials - #[serde(rename = "authorization")] - #[serde(default)] - pub authorization: std::option::Option, - /// The ID of the Channel the OriginEndpoint is associated with. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// A Common Media Application Format (CMAF) packaging configuration. - #[serde(rename = "cmafPackage")] - #[serde(default)] - pub cmaf_package: std::option::Option, - /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - #[serde(rename = "dashPackage")] - #[serde(default)] - pub dash_package: std::option::Option, - /// A short text description of the OriginEndpoint. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// An HTTP Live Streaming (HLS) packaging configuration. - #[serde(rename = "hlsPackage")] - #[serde(default)] - pub hls_package: std::option::Option, - /// The ID of the OriginEndpoint. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// A short string appended to the end of the OriginEndpoint URL. - #[serde(rename = "manifestName")] - #[serde(default)] - pub manifest_name: std::option::Option, - /// A Microsoft Smooth Streaming (MSS) packaging configuration. - #[serde(rename = "mssPackage")] - #[serde(default)] - pub mss_package: std::option::Option, - /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint - /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be - /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - #[serde(rename = "origination")] - #[serde(default)] - pub origination: std::option::Option, - /// Maximum duration (seconds) of content to retain for startover playback. - /// If not specified, startover playback will be disabled for the OriginEndpoint. - #[serde(rename = "startoverWindowSeconds")] - #[serde(default)] - pub startover_window_seconds: i32, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Amount of delay (seconds) to enforce on the playback of live content. - /// If not specified, there will be no time delay in effect for the OriginEndpoint. - #[serde(rename = "timeDelaySeconds")] - #[serde(default)] - pub time_delay_seconds: i32, - /// The URL of the packaged OriginEndpoint for consumption. - #[serde(rename = "url")] - #[serde(default)] - pub url: std::option::Option, - /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - #[serde(rename = "whitelist")] - #[serde(default)] - pub whitelist: std::option::Option>, -} -impl std::fmt::Debug for CreateOriginEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOriginEndpointOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("authorization", &self.authorization); - formatter.field("channel_id", &self.channel_id); - formatter.field("cmaf_package", &self.cmaf_package); - formatter.field("dash_package", &self.dash_package); - formatter.field("description", &self.description); - formatter.field("hls_package", &self.hls_package); - formatter.field("id", &self.id); - formatter.field("manifest_name", &self.manifest_name); - formatter.field("mss_package", &self.mss_package); - formatter.field("origination", &self.origination); - formatter.field("startover_window_seconds", &self.startover_window_seconds); - formatter.field("tags", &self.tags); - formatter.field("time_delay_seconds", &self.time_delay_seconds); - formatter.field("url", &self.url); - formatter.field("whitelist", &self.whitelist); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeChannelOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for DescribeChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHarvestJobOutputBody { - /// The Amazon Resource Name (ARN) assigned to the HarvestJob. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// The ID of the Channel that the HarvestJob will harvest from. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// The time the HarvestJob was submitted - #[serde(rename = "createdAt")] - #[serde(default)] - pub created_at: std::option::Option, - /// The end of the time-window which will be harvested. - #[serde(rename = "endTime")] - #[serde(default)] - pub end_time: std::option::Option, - /// The ID of the HarvestJob. The ID must be unique within the region - /// and it cannot be changed after the HarvestJob is submitted. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// The ID of the OriginEndpoint that the HarvestJob will harvest from. - /// This cannot be changed after the HarvestJob is submitted. - #[serde(rename = "originEndpointId")] - #[serde(default)] - pub origin_endpoint_id: std::option::Option, - /// Configuration parameters for where in an S3 bucket to place the harvested content - #[serde(rename = "s3Destination")] - #[serde(default)] - pub s3_destination: std::option::Option, - /// The start of the time-window which will be harvested. - #[serde(rename = "startTime")] - #[serde(default)] - pub start_time: std::option::Option, - /// The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for - /// HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will - /// include an explanation of why the HarvestJob failed. - #[serde(rename = "status")] - #[serde(default)] - pub status: std::option::Option, -} -impl std::fmt::Debug for DescribeHarvestJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHarvestJobOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("channel_id", &self.channel_id); - formatter.field("created_at", &self.created_at); - formatter.field("end_time", &self.end_time); - formatter.field("id", &self.id); - formatter.field("origin_endpoint_id", &self.origin_endpoint_id); - formatter.field("s3_destination", &self.s3_destination); - formatter.field("start_time", &self.start_time); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOriginEndpointOutputBody { - /// The Amazon Resource Name (ARN) assigned to the OriginEndpoint. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// CDN Authorization credentials - #[serde(rename = "authorization")] - #[serde(default)] - pub authorization: std::option::Option, - /// The ID of the Channel the OriginEndpoint is associated with. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// A Common Media Application Format (CMAF) packaging configuration. - #[serde(rename = "cmafPackage")] - #[serde(default)] - pub cmaf_package: std::option::Option, - /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - #[serde(rename = "dashPackage")] - #[serde(default)] - pub dash_package: std::option::Option, - /// A short text description of the OriginEndpoint. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// An HTTP Live Streaming (HLS) packaging configuration. - #[serde(rename = "hlsPackage")] - #[serde(default)] - pub hls_package: std::option::Option, - /// The ID of the OriginEndpoint. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// A short string appended to the end of the OriginEndpoint URL. - #[serde(rename = "manifestName")] - #[serde(default)] - pub manifest_name: std::option::Option, - /// A Microsoft Smooth Streaming (MSS) packaging configuration. - #[serde(rename = "mssPackage")] - #[serde(default)] - pub mss_package: std::option::Option, - /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint - /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be - /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - #[serde(rename = "origination")] - #[serde(default)] - pub origination: std::option::Option, - /// Maximum duration (seconds) of content to retain for startover playback. - /// If not specified, startover playback will be disabled for the OriginEndpoint. - #[serde(rename = "startoverWindowSeconds")] - #[serde(default)] - pub startover_window_seconds: i32, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Amount of delay (seconds) to enforce on the playback of live content. - /// If not specified, there will be no time delay in effect for the OriginEndpoint. - #[serde(rename = "timeDelaySeconds")] - #[serde(default)] - pub time_delay_seconds: i32, - /// The URL of the packaged OriginEndpoint for consumption. - #[serde(rename = "url")] - #[serde(default)] - pub url: std::option::Option, - /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - #[serde(rename = "whitelist")] - #[serde(default)] - pub whitelist: std::option::Option>, -} -impl std::fmt::Debug for DescribeOriginEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOriginEndpointOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("authorization", &self.authorization); - formatter.field("channel_id", &self.channel_id); - formatter.field("cmaf_package", &self.cmaf_package); - formatter.field("dash_package", &self.dash_package); - formatter.field("description", &self.description); - formatter.field("hls_package", &self.hls_package); - formatter.field("id", &self.id); - formatter.field("manifest_name", &self.manifest_name); - formatter.field("mss_package", &self.mss_package); - formatter.field("origination", &self.origination); - formatter.field("startover_window_seconds", &self.startover_window_seconds); - formatter.field("tags", &self.tags); - formatter.field("time_delay_seconds", &self.time_delay_seconds); - formatter.field("url", &self.url); - formatter.field("whitelist", &self.whitelist); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListChannelsOutputBody { - /// A list of Channel records. - #[serde(rename = "channels")] - #[serde(default)] - pub channels: std::option::Option>, - /// A token that can be used to resume pagination from the end of the collection. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListChannelsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListChannelsOutputBody"); - formatter.field("channels", &self.channels); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHarvestJobsOutputBody { - /// A list of HarvestJob records. - #[serde(rename = "harvestJobs")] - #[serde(default)] - pub harvest_jobs: std::option::Option>, - /// A token that can be used to resume pagination from the end of the collection. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListHarvestJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHarvestJobsOutputBody"); - formatter.field("harvest_jobs", &self.harvest_jobs); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOriginEndpointsOutputBody { - /// A token that can be used to resume pagination from the end of the collection. - #[serde(rename = "nextToken")] - #[serde(default)] - pub next_token: std::option::Option, - /// A list of OriginEndpoint records. - #[serde(rename = "originEndpoints")] - #[serde(default)] - pub origin_endpoints: std::option::Option>, -} -impl std::fmt::Debug for ListOriginEndpointsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOriginEndpointsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("origin_endpoints", &self.origin_endpoints); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RotateChannelCredentialsOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for RotateChannelCredentialsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RotateChannelCredentialsOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RotateIngestEndpointCredentialsOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for RotateIngestEndpointCredentialsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RotateIngestEndpointCredentialsOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateChannelOutputBody { - /// The Amazon Resource Name (ARN) assigned to the Channel. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// A short text description of the Channel. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// Configure egress access logging. - #[serde(rename = "egressAccessLogs")] - #[serde(default)] - pub egress_access_logs: std::option::Option, - /// An HTTP Live Streaming (HLS) ingest resource configuration. - #[serde(rename = "hlsIngest")] - #[serde(default)] - pub hls_ingest: std::option::Option, - /// The ID of the Channel. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// Configure ingress access logging. - #[serde(rename = "ingressAccessLogs")] - #[serde(default)] - pub ingress_access_logs: std::option::Option, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, -} -impl std::fmt::Debug for UpdateChannelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateChannelOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("description", &self.description); - formatter.field("egress_access_logs", &self.egress_access_logs); - formatter.field("hls_ingest", &self.hls_ingest); - formatter.field("id", &self.id); - formatter.field("ingress_access_logs", &self.ingress_access_logs); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOriginEndpointOutputBody { - /// The Amazon Resource Name (ARN) assigned to the OriginEndpoint. - #[serde(rename = "arn")] - #[serde(default)] - pub arn: std::option::Option, - /// CDN Authorization credentials - #[serde(rename = "authorization")] - #[serde(default)] - pub authorization: std::option::Option, - /// The ID of the Channel the OriginEndpoint is associated with. - #[serde(rename = "channelId")] - #[serde(default)] - pub channel_id: std::option::Option, - /// A Common Media Application Format (CMAF) packaging configuration. - #[serde(rename = "cmafPackage")] - #[serde(default)] - pub cmaf_package: std::option::Option, - /// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. - #[serde(rename = "dashPackage")] - #[serde(default)] - pub dash_package: std::option::Option, - /// A short text description of the OriginEndpoint. - #[serde(rename = "description")] - #[serde(default)] - pub description: std::option::Option, - /// An HTTP Live Streaming (HLS) packaging configuration. - #[serde(rename = "hlsPackage")] - #[serde(default)] - pub hls_package: std::option::Option, - /// The ID of the OriginEndpoint. - #[serde(rename = "id")] - #[serde(default)] - pub id: std::option::Option, - /// A short string appended to the end of the OriginEndpoint URL. - #[serde(rename = "manifestName")] - #[serde(default)] - pub manifest_name: std::option::Option, - /// A Microsoft Smooth Streaming (MSS) packaging configuration. - #[serde(rename = "mssPackage")] - #[serde(default)] - pub mss_package: std::option::Option, - /// Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint - /// may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be - /// requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination - #[serde(rename = "origination")] - #[serde(default)] - pub origination: std::option::Option, - /// Maximum duration (seconds) of content to retain for startover playback. - /// If not specified, startover playback will be disabled for the OriginEndpoint. - #[serde(rename = "startoverWindowSeconds")] - #[serde(default)] - pub startover_window_seconds: i32, - /// A collection of tags associated with a resource - #[serde(rename = "tags")] - #[serde(default)] - pub tags: - std::option::Option>, - /// Amount of delay (seconds) to enforce on the playback of live content. - /// If not specified, there will be no time delay in effect for the OriginEndpoint. - #[serde(rename = "timeDelaySeconds")] - #[serde(default)] - pub time_delay_seconds: i32, - /// The URL of the packaged OriginEndpoint for consumption. - #[serde(rename = "url")] - #[serde(default)] - pub url: std::option::Option, - /// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. - #[serde(rename = "whitelist")] - #[serde(default)] - pub whitelist: std::option::Option>, -} -impl std::fmt::Debug for UpdateOriginEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOriginEndpointOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("authorization", &self.authorization); - formatter.field("channel_id", &self.channel_id); - formatter.field("cmaf_package", &self.cmaf_package); - formatter.field("dash_package", &self.dash_package); - formatter.field("description", &self.description); - formatter.field("hls_package", &self.hls_package); - formatter.field("id", &self.id); - formatter.field("manifest_name", &self.manifest_name); - formatter.field("mss_package", &self.mss_package); - formatter.field("origination", &self.origination); - formatter.field("startover_window_seconds", &self.startover_window_seconds); - formatter.field("tags", &self.tags); - formatter.field("time_delay_seconds", &self.time_delay_seconds); - formatter.field("url", &self.url); - formatter.field("whitelist", &self.whitelist); - formatter.finish() - } -} diff --git a/sdk/polly/Cargo.toml b/sdk/polly/Cargo.toml index 0211276d1cea..a4b6db9b12d7 100644 --- a/sdk/polly/Cargo.toml +++ b/sdk/polly/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-polly" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    Amazon Polly is a web service that makes it easy to synthesize speech from\n text.

    \n

    The Amazon Polly service provides API operations for synthesizing high-quality speech\n from plain text and Speech Synthesis Markup Language (SSML), along with managing\n pronunciations lexicons that enable you to get the best results for your application\n domain.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.http] version = "0.2" [dependencies.aws-http] @@ -31,9 +28,6 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/polly/src/aws_json_errors.rs b/sdk/polly/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/polly/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/polly/src/error.rs b/sdk/polly/src/error.rs index 102fe04326b2..ca7196d11919 100644 --- a/sdk/polly/src/error.rs +++ b/sdk/polly/src/error.rs @@ -8,16 +8,16 @@ pub struct DeleteLexiconError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLexiconErrorKind { - LexiconNotFoundError(crate::error::LexiconNotFoundError), - ServiceFailureError(crate::error::ServiceFailureError), + LexiconNotFoundException(crate::error::LexiconNotFoundException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLexiconError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLexiconErrorKind::LexiconNotFoundError(_inner) => _inner.fmt(f), - DeleteLexiconErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DeleteLexiconErrorKind::LexiconNotFoundException(_inner) => _inner.fmt(f), + DeleteLexiconErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DeleteLexiconErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -66,18 +66,24 @@ impl DeleteLexiconError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_lexicon_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteLexiconErrorKind::LexiconNotFoundError(_)) + pub fn is_lexicon_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLexiconErrorKind::LexiconNotFoundException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DeleteLexiconErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLexiconErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for DeleteLexiconError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLexiconErrorKind::LexiconNotFoundError(_inner) => Some(_inner), - DeleteLexiconErrorKind::ServiceFailureError(_inner) => Some(_inner), + DeleteLexiconErrorKind::LexiconNotFoundException(_inner) => Some(_inner), + DeleteLexiconErrorKind::ServiceFailureException(_inner) => Some(_inner), DeleteLexiconErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -92,16 +98,16 @@ pub struct DescribeVoicesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeVoicesErrorKind { - InvalidNextTokenError(crate::error::InvalidNextTokenError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeVoicesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeVoicesErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - DescribeVoicesErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + DescribeVoicesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + DescribeVoicesErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), DescribeVoicesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -150,21 +156,24 @@ impl DescribeVoicesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_next_token_error(&self) -> bool { + pub fn is_invalid_next_token_exception(&self) -> bool { matches!( &self.kind, - DescribeVoicesErrorKind::InvalidNextTokenError(_) + DescribeVoicesErrorKind::InvalidNextTokenException(_) ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, DescribeVoicesErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + DescribeVoicesErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for DescribeVoicesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeVoicesErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - DescribeVoicesErrorKind::ServiceFailureError(_inner) => Some(_inner), + DescribeVoicesErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + DescribeVoicesErrorKind::ServiceFailureException(_inner) => Some(_inner), DescribeVoicesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -179,16 +188,16 @@ pub struct GetLexiconError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetLexiconErrorKind { - LexiconNotFoundError(crate::error::LexiconNotFoundError), - ServiceFailureError(crate::error::ServiceFailureError), + LexiconNotFoundException(crate::error::LexiconNotFoundException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetLexiconError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetLexiconErrorKind::LexiconNotFoundError(_inner) => _inner.fmt(f), - GetLexiconErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + GetLexiconErrorKind::LexiconNotFoundException(_inner) => _inner.fmt(f), + GetLexiconErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), GetLexiconErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -237,18 +246,18 @@ impl GetLexiconError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_lexicon_not_found_error(&self) -> bool { - matches!(&self.kind, GetLexiconErrorKind::LexiconNotFoundError(_)) + pub fn is_lexicon_not_found_exception(&self) -> bool { + matches!(&self.kind, GetLexiconErrorKind::LexiconNotFoundException(_)) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, GetLexiconErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, GetLexiconErrorKind::ServiceFailureException(_)) } } impl std::error::Error for GetLexiconError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetLexiconErrorKind::LexiconNotFoundError(_inner) => Some(_inner), - GetLexiconErrorKind::ServiceFailureError(_inner) => Some(_inner), + GetLexiconErrorKind::LexiconNotFoundException(_inner) => Some(_inner), + GetLexiconErrorKind::ServiceFailureException(_inner) => Some(_inner), GetLexiconErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -263,18 +272,20 @@ pub struct GetSpeechSynthesisTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSpeechSynthesisTaskErrorKind { - InvalidTaskIdError(crate::error::InvalidTaskIdError), - ServiceFailureError(crate::error::ServiceFailureError), - SynthesisTaskNotFoundError(crate::error::SynthesisTaskNotFoundError), + InvalidTaskIdException(crate::error::InvalidTaskIdException), + ServiceFailureException(crate::error::ServiceFailureException), + SynthesisTaskNotFoundException(crate::error::SynthesisTaskNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSpeechSynthesisTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSpeechSynthesisTaskErrorKind::InvalidTaskIdError(_inner) => _inner.fmt(f), - GetSpeechSynthesisTaskErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundError(_inner) => _inner.fmt(f), + GetSpeechSynthesisTaskErrorKind::InvalidTaskIdException(_inner) => _inner.fmt(f), + GetSpeechSynthesisTaskErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundException(_inner) => { + _inner.fmt(f) + } GetSpeechSynthesisTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -323,31 +334,31 @@ impl GetSpeechSynthesisTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_task_id_error(&self) -> bool { + pub fn is_invalid_task_id_exception(&self) -> bool { matches!( &self.kind, - GetSpeechSynthesisTaskErrorKind::InvalidTaskIdError(_) + GetSpeechSynthesisTaskErrorKind::InvalidTaskIdException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - GetSpeechSynthesisTaskErrorKind::ServiceFailureError(_) + GetSpeechSynthesisTaskErrorKind::ServiceFailureException(_) ) } - pub fn is_synthesis_task_not_found_error(&self) -> bool { + pub fn is_synthesis_task_not_found_exception(&self) -> bool { matches!( &self.kind, - GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundError(_) + GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundException(_) ) } } impl std::error::Error for GetSpeechSynthesisTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSpeechSynthesisTaskErrorKind::InvalidTaskIdError(_inner) => Some(_inner), - GetSpeechSynthesisTaskErrorKind::ServiceFailureError(_inner) => Some(_inner), - GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundError(_inner) => Some(_inner), + GetSpeechSynthesisTaskErrorKind::InvalidTaskIdException(_inner) => Some(_inner), + GetSpeechSynthesisTaskErrorKind::ServiceFailureException(_inner) => Some(_inner), + GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundException(_inner) => Some(_inner), GetSpeechSynthesisTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -362,16 +373,16 @@ pub struct ListLexiconsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListLexiconsErrorKind { - InvalidNextTokenError(crate::error::InvalidNextTokenError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListLexiconsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListLexiconsErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - ListLexiconsErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListLexiconsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + ListLexiconsErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListLexiconsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -420,18 +431,24 @@ impl ListLexiconsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_next_token_error(&self) -> bool { - matches!(&self.kind, ListLexiconsErrorKind::InvalidNextTokenError(_)) + pub fn is_invalid_next_token_exception(&self) -> bool { + matches!( + &self.kind, + ListLexiconsErrorKind::InvalidNextTokenException(_) + ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, ListLexiconsErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!( + &self.kind, + ListLexiconsErrorKind::ServiceFailureException(_) + ) } } impl std::error::Error for ListLexiconsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListLexiconsErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - ListLexiconsErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListLexiconsErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + ListLexiconsErrorKind::ServiceFailureException(_inner) => Some(_inner), ListLexiconsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -446,16 +463,16 @@ pub struct ListSpeechSynthesisTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSpeechSynthesisTasksErrorKind { - InvalidNextTokenError(crate::error::InvalidNextTokenError), - ServiceFailureError(crate::error::ServiceFailureError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + ServiceFailureException(crate::error::ServiceFailureException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSpeechSynthesisTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSpeechSynthesisTasksErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - ListSpeechSynthesisTasksErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), + ListSpeechSynthesisTasksErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + ListSpeechSynthesisTasksErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), ListSpeechSynthesisTasksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -504,24 +521,24 @@ impl ListSpeechSynthesisTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_next_token_error(&self) -> bool { + pub fn is_invalid_next_token_exception(&self) -> bool { matches!( &self.kind, - ListSpeechSynthesisTasksErrorKind::InvalidNextTokenError(_) + ListSpeechSynthesisTasksErrorKind::InvalidNextTokenException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - ListSpeechSynthesisTasksErrorKind::ServiceFailureError(_) + ListSpeechSynthesisTasksErrorKind::ServiceFailureException(_) ) } } impl std::error::Error for ListSpeechSynthesisTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSpeechSynthesisTasksErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - ListSpeechSynthesisTasksErrorKind::ServiceFailureError(_inner) => Some(_inner), + ListSpeechSynthesisTasksErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + ListSpeechSynthesisTasksErrorKind::ServiceFailureException(_inner) => Some(_inner), ListSpeechSynthesisTasksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -536,26 +553,26 @@ pub struct PutLexiconError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutLexiconErrorKind { - InvalidLexiconError(crate::error::InvalidLexiconError), - LexiconSizeExceededError(crate::error::LexiconSizeExceededError), - MaxLexemeLengthExceededError(crate::error::MaxLexemeLengthExceededError), - MaxLexiconsNumberExceededError(crate::error::MaxLexiconsNumberExceededError), - ServiceFailureError(crate::error::ServiceFailureError), - UnsupportedPlsAlphabetError(crate::error::UnsupportedPlsAlphabetError), - UnsupportedPlsLanguageError(crate::error::UnsupportedPlsLanguageError), + InvalidLexiconException(crate::error::InvalidLexiconException), + LexiconSizeExceededException(crate::error::LexiconSizeExceededException), + MaxLexemeLengthExceededException(crate::error::MaxLexemeLengthExceededException), + MaxLexiconsNumberExceededException(crate::error::MaxLexiconsNumberExceededException), + ServiceFailureException(crate::error::ServiceFailureException), + UnsupportedPlsAlphabetException(crate::error::UnsupportedPlsAlphabetException), + UnsupportedPlsLanguageException(crate::error::UnsupportedPlsLanguageException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutLexiconError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutLexiconErrorKind::InvalidLexiconError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::LexiconSizeExceededError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::MaxLexemeLengthExceededError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::MaxLexiconsNumberExceededError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::UnsupportedPlsAlphabetError(_inner) => _inner.fmt(f), - PutLexiconErrorKind::UnsupportedPlsLanguageError(_inner) => _inner.fmt(f), + PutLexiconErrorKind::InvalidLexiconException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::LexiconSizeExceededException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::MaxLexemeLengthExceededException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::MaxLexiconsNumberExceededException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::UnsupportedPlsAlphabetException(_inner) => _inner.fmt(f), + PutLexiconErrorKind::UnsupportedPlsLanguageException(_inner) => _inner.fmt(f), PutLexiconErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -604,50 +621,53 @@ impl PutLexiconError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_lexicon_error(&self) -> bool { - matches!(&self.kind, PutLexiconErrorKind::InvalidLexiconError(_)) + pub fn is_invalid_lexicon_exception(&self) -> bool { + matches!(&self.kind, PutLexiconErrorKind::InvalidLexiconException(_)) } - pub fn is_lexicon_size_exceeded_error(&self) -> bool { - matches!(&self.kind, PutLexiconErrorKind::LexiconSizeExceededError(_)) + pub fn is_lexicon_size_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutLexiconErrorKind::LexiconSizeExceededException(_) + ) } - pub fn is_max_lexeme_length_exceeded_error(&self) -> bool { + pub fn is_max_lexeme_length_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutLexiconErrorKind::MaxLexemeLengthExceededError(_) + PutLexiconErrorKind::MaxLexemeLengthExceededException(_) ) } - pub fn is_max_lexicons_number_exceeded_error(&self) -> bool { + pub fn is_max_lexicons_number_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutLexiconErrorKind::MaxLexiconsNumberExceededError(_) + PutLexiconErrorKind::MaxLexiconsNumberExceededException(_) ) } - pub fn is_service_failure_error(&self) -> bool { - matches!(&self.kind, PutLexiconErrorKind::ServiceFailureError(_)) + pub fn is_service_failure_exception(&self) -> bool { + matches!(&self.kind, PutLexiconErrorKind::ServiceFailureException(_)) } - pub fn is_unsupported_pls_alphabet_error(&self) -> bool { + pub fn is_unsupported_pls_alphabet_exception(&self) -> bool { matches!( &self.kind, - PutLexiconErrorKind::UnsupportedPlsAlphabetError(_) + PutLexiconErrorKind::UnsupportedPlsAlphabetException(_) ) } - pub fn is_unsupported_pls_language_error(&self) -> bool { + pub fn is_unsupported_pls_language_exception(&self) -> bool { matches!( &self.kind, - PutLexiconErrorKind::UnsupportedPlsLanguageError(_) + PutLexiconErrorKind::UnsupportedPlsLanguageException(_) ) } } impl std::error::Error for PutLexiconError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutLexiconErrorKind::InvalidLexiconError(_inner) => Some(_inner), - PutLexiconErrorKind::LexiconSizeExceededError(_inner) => Some(_inner), - PutLexiconErrorKind::MaxLexemeLengthExceededError(_inner) => Some(_inner), - PutLexiconErrorKind::MaxLexiconsNumberExceededError(_inner) => Some(_inner), - PutLexiconErrorKind::ServiceFailureError(_inner) => Some(_inner), - PutLexiconErrorKind::UnsupportedPlsAlphabetError(_inner) => Some(_inner), - PutLexiconErrorKind::UnsupportedPlsLanguageError(_inner) => Some(_inner), + PutLexiconErrorKind::InvalidLexiconException(_inner) => Some(_inner), + PutLexiconErrorKind::LexiconSizeExceededException(_inner) => Some(_inner), + PutLexiconErrorKind::MaxLexemeLengthExceededException(_inner) => Some(_inner), + PutLexiconErrorKind::MaxLexiconsNumberExceededException(_inner) => Some(_inner), + PutLexiconErrorKind::ServiceFailureException(_inner) => Some(_inner), + PutLexiconErrorKind::UnsupportedPlsAlphabetException(_inner) => Some(_inner), + PutLexiconErrorKind::UnsupportedPlsLanguageException(_inner) => Some(_inner), PutLexiconErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -662,40 +682,44 @@ pub struct StartSpeechSynthesisTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartSpeechSynthesisTaskErrorKind { - EngineNotSupportedError(crate::error::EngineNotSupportedError), - InvalidS3BucketError(crate::error::InvalidS3BucketError), - InvalidS3KeyError(crate::error::InvalidS3KeyError), - InvalidSampleRateError(crate::error::InvalidSampleRateError), - InvalidSnsTopicArnError(crate::error::InvalidSnsTopicArnError), - InvalidSsmlError(crate::error::InvalidSsmlError), - LanguageNotSupportedError(crate::error::LanguageNotSupportedError), - LexiconNotFoundError(crate::error::LexiconNotFoundError), - MarksNotSupportedForFormatError(crate::error::MarksNotSupportedForFormatError), - ServiceFailureError(crate::error::ServiceFailureError), - SsmlMarksNotSupportedForTextTypeError(crate::error::SsmlMarksNotSupportedForTextTypeError), - TextLengthExceededError(crate::error::TextLengthExceededError), + EngineNotSupportedException(crate::error::EngineNotSupportedException), + InvalidS3BucketException(crate::error::InvalidS3BucketException), + InvalidS3KeyException(crate::error::InvalidS3KeyException), + InvalidSampleRateException(crate::error::InvalidSampleRateException), + InvalidSnsTopicArnException(crate::error::InvalidSnsTopicArnException), + InvalidSsmlException(crate::error::InvalidSsmlException), + LanguageNotSupportedException(crate::error::LanguageNotSupportedException), + LexiconNotFoundException(crate::error::LexiconNotFoundException), + MarksNotSupportedForFormatException(crate::error::MarksNotSupportedForFormatException), + ServiceFailureException(crate::error::ServiceFailureException), + SsmlMarksNotSupportedForTextTypeException( + crate::error::SsmlMarksNotSupportedForTextTypeException, + ), + TextLengthExceededException(crate::error::TextLengthExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartSpeechSynthesisTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartSpeechSynthesisTaskErrorKind::EngineNotSupportedError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::InvalidS3BucketError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::InvalidS3KeyError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::InvalidSampleRateError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::InvalidSsmlError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::LexiconNotFoundError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatError(_inner) => { + StartSpeechSynthesisTaskErrorKind::EngineNotSupportedException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::InvalidS3BucketException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::InvalidS3KeyException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::InvalidSampleRateException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::InvalidSsmlException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedException(_inner) => { _inner.fmt(f) } - StartSpeechSynthesisTaskErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeError(_inner) => { + StartSpeechSynthesisTaskErrorKind::LexiconNotFoundException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatException(_inner) => { _inner.fmt(f) } - StartSpeechSynthesisTaskErrorKind::TextLengthExceededError(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeException( + _inner, + ) => _inner.fmt(f), + StartSpeechSynthesisTaskErrorKind::TextLengthExceededException(_inner) => _inner.fmt(f), StartSpeechSynthesisTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -744,98 +768,100 @@ impl StartSpeechSynthesisTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_engine_not_supported_error(&self) -> bool { + pub fn is_engine_not_supported_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::EngineNotSupportedError(_) + StartSpeechSynthesisTaskErrorKind::EngineNotSupportedException(_) ) } - pub fn is_invalid_s3_bucket_error(&self) -> bool { + pub fn is_invalid_s3_bucket_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::InvalidS3BucketError(_) + StartSpeechSynthesisTaskErrorKind::InvalidS3BucketException(_) ) } - pub fn is_invalid_s3_key_error(&self) -> bool { + pub fn is_invalid_s3_key_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::InvalidS3KeyError(_) + StartSpeechSynthesisTaskErrorKind::InvalidS3KeyException(_) ) } - pub fn is_invalid_sample_rate_error(&self) -> bool { + pub fn is_invalid_sample_rate_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::InvalidSampleRateError(_) + StartSpeechSynthesisTaskErrorKind::InvalidSampleRateException(_) ) } - pub fn is_invalid_sns_topic_arn_error(&self) -> bool { + pub fn is_invalid_sns_topic_arn_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnError(_) + StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnException(_) ) } - pub fn is_invalid_ssml_error(&self) -> bool { + pub fn is_invalid_ssml_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::InvalidSsmlError(_) + StartSpeechSynthesisTaskErrorKind::InvalidSsmlException(_) ) } - pub fn is_language_not_supported_error(&self) -> bool { + pub fn is_language_not_supported_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedError(_) + StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedException(_) ) } - pub fn is_lexicon_not_found_error(&self) -> bool { + pub fn is_lexicon_not_found_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::LexiconNotFoundError(_) + StartSpeechSynthesisTaskErrorKind::LexiconNotFoundException(_) ) } - pub fn is_marks_not_supported_for_format_error(&self) -> bool { + pub fn is_marks_not_supported_for_format_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatError(_) + StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::ServiceFailureError(_) + StartSpeechSynthesisTaskErrorKind::ServiceFailureException(_) ) } - pub fn is_ssml_marks_not_supported_for_text_type_error(&self) -> bool { + pub fn is_ssml_marks_not_supported_for_text_type_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeError(_) + StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeException(_) ) } - pub fn is_text_length_exceeded_error(&self) -> bool { + pub fn is_text_length_exceeded_exception(&self) -> bool { matches!( &self.kind, - StartSpeechSynthesisTaskErrorKind::TextLengthExceededError(_) + StartSpeechSynthesisTaskErrorKind::TextLengthExceededException(_) ) } } impl std::error::Error for StartSpeechSynthesisTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartSpeechSynthesisTaskErrorKind::EngineNotSupportedError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::InvalidS3BucketError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::InvalidS3KeyError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::InvalidSampleRateError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::InvalidSsmlError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::LexiconNotFoundError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatError(_inner) => { + StartSpeechSynthesisTaskErrorKind::EngineNotSupportedException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::InvalidS3BucketException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::InvalidS3KeyException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::InvalidSampleRateException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::InvalidSsmlException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedException(_inner) => { Some(_inner) } - StartSpeechSynthesisTaskErrorKind::ServiceFailureError(_inner) => Some(_inner), - StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeError(_inner) => { + StartSpeechSynthesisTaskErrorKind::LexiconNotFoundException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatException(_inner) => { Some(_inner) } - StartSpeechSynthesisTaskErrorKind::TextLengthExceededError(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::ServiceFailureException(_inner) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeException( + _inner, + ) => Some(_inner), + StartSpeechSynthesisTaskErrorKind::TextLengthExceededException(_inner) => Some(_inner), StartSpeechSynthesisTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -850,32 +876,34 @@ pub struct SynthesizeSpeechError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SynthesizeSpeechErrorKind { - EngineNotSupportedError(crate::error::EngineNotSupportedError), - InvalidSampleRateError(crate::error::InvalidSampleRateError), - InvalidSsmlError(crate::error::InvalidSsmlError), - LanguageNotSupportedError(crate::error::LanguageNotSupportedError), - LexiconNotFoundError(crate::error::LexiconNotFoundError), - MarksNotSupportedForFormatError(crate::error::MarksNotSupportedForFormatError), - ServiceFailureError(crate::error::ServiceFailureError), - SsmlMarksNotSupportedForTextTypeError(crate::error::SsmlMarksNotSupportedForTextTypeError), - TextLengthExceededError(crate::error::TextLengthExceededError), + EngineNotSupportedException(crate::error::EngineNotSupportedException), + InvalidSampleRateException(crate::error::InvalidSampleRateException), + InvalidSsmlException(crate::error::InvalidSsmlException), + LanguageNotSupportedException(crate::error::LanguageNotSupportedException), + LexiconNotFoundException(crate::error::LexiconNotFoundException), + MarksNotSupportedForFormatException(crate::error::MarksNotSupportedForFormatException), + ServiceFailureException(crate::error::ServiceFailureException), + SsmlMarksNotSupportedForTextTypeException( + crate::error::SsmlMarksNotSupportedForTextTypeException, + ), + TextLengthExceededException(crate::error::TextLengthExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SynthesizeSpeechError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SynthesizeSpeechErrorKind::EngineNotSupportedError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::InvalidSampleRateError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::InvalidSsmlError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::LanguageNotSupportedError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::LexiconNotFoundError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::MarksNotSupportedForFormatError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::ServiceFailureError(_inner) => _inner.fmt(f), - SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeError(_inner) => { + SynthesizeSpeechErrorKind::EngineNotSupportedException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::InvalidSampleRateException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::InvalidSsmlException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::LanguageNotSupportedException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::LexiconNotFoundException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::MarksNotSupportedForFormatException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::ServiceFailureException(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeException(_inner) => { _inner.fmt(f) } - SynthesizeSpeechErrorKind::TextLengthExceededError(_inner) => _inner.fmt(f), + SynthesizeSpeechErrorKind::TextLengthExceededException(_inner) => _inner.fmt(f), SynthesizeSpeechErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -924,72 +952,75 @@ impl SynthesizeSpeechError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_engine_not_supported_error(&self) -> bool { + pub fn is_engine_not_supported_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::EngineNotSupportedError(_) + SynthesizeSpeechErrorKind::EngineNotSupportedException(_) ) } - pub fn is_invalid_sample_rate_error(&self) -> bool { + pub fn is_invalid_sample_rate_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::InvalidSampleRateError(_) + SynthesizeSpeechErrorKind::InvalidSampleRateException(_) ) } - pub fn is_invalid_ssml_error(&self) -> bool { - matches!(&self.kind, SynthesizeSpeechErrorKind::InvalidSsmlError(_)) + pub fn is_invalid_ssml_exception(&self) -> bool { + matches!( + &self.kind, + SynthesizeSpeechErrorKind::InvalidSsmlException(_) + ) } - pub fn is_language_not_supported_error(&self) -> bool { + pub fn is_language_not_supported_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::LanguageNotSupportedError(_) + SynthesizeSpeechErrorKind::LanguageNotSupportedException(_) ) } - pub fn is_lexicon_not_found_error(&self) -> bool { + pub fn is_lexicon_not_found_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::LexiconNotFoundError(_) + SynthesizeSpeechErrorKind::LexiconNotFoundException(_) ) } - pub fn is_marks_not_supported_for_format_error(&self) -> bool { + pub fn is_marks_not_supported_for_format_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::MarksNotSupportedForFormatError(_) + SynthesizeSpeechErrorKind::MarksNotSupportedForFormatException(_) ) } - pub fn is_service_failure_error(&self) -> bool { + pub fn is_service_failure_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::ServiceFailureError(_) + SynthesizeSpeechErrorKind::ServiceFailureException(_) ) } - pub fn is_ssml_marks_not_supported_for_text_type_error(&self) -> bool { + pub fn is_ssml_marks_not_supported_for_text_type_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeError(_) + SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeException(_) ) } - pub fn is_text_length_exceeded_error(&self) -> bool { + pub fn is_text_length_exceeded_exception(&self) -> bool { matches!( &self.kind, - SynthesizeSpeechErrorKind::TextLengthExceededError(_) + SynthesizeSpeechErrorKind::TextLengthExceededException(_) ) } } impl std::error::Error for SynthesizeSpeechError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SynthesizeSpeechErrorKind::EngineNotSupportedError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::InvalidSampleRateError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::InvalidSsmlError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::LanguageNotSupportedError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::LexiconNotFoundError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::MarksNotSupportedForFormatError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::ServiceFailureError(_inner) => Some(_inner), - SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeError(_inner) => { + SynthesizeSpeechErrorKind::EngineNotSupportedException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::InvalidSampleRateException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::InvalidSsmlException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::LanguageNotSupportedException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::LexiconNotFoundException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::MarksNotSupportedForFormatException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::ServiceFailureException(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeException(_inner) => { Some(_inner) } - SynthesizeSpeechErrorKind::TextLengthExceededError(_inner) => Some(_inner), + SynthesizeSpeechErrorKind::TextLengthExceededException(_inner) => Some(_inner), SynthesizeSpeechErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1002,37 +1033,35 @@ impl std::error::Error for SynthesizeSpeechError { /// more than 100,000 can be billed characters. SSML tags are not counted as billed /// characters.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TextLengthExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TextLengthExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for TextLengthExceededError { +impl std::fmt::Debug for TextLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TextLengthExceededError"); + let mut formatter = f.debug_struct("TextLengthExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl TextLengthExceededError { +impl TextLengthExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TextLengthExceededError { +impl std::fmt::Display for TextLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TextLengthExceededError [TextLengthExceededException]")?; + write!(f, "TextLengthExceededException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for TextLengthExceededError {} -/// See [`TextLengthExceededError`](crate::error::TextLengthExceededError) -pub mod text_length_exceeded_error { - /// A builder for [`TextLengthExceededError`](crate::error::TextLengthExceededError) +impl std::error::Error for TextLengthExceededException {} +/// See [`TextLengthExceededException`](crate::error::TextLengthExceededException) +pub mod text_length_exceeded_exception { + /// A builder for [`TextLengthExceededException`](crate::error::TextLengthExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1047,57 +1076,52 @@ pub mod text_length_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`TextLengthExceededError`](crate::error::TextLengthExceededError) - pub fn build(self) -> crate::error::TextLengthExceededError { - crate::error::TextLengthExceededError { + /// Consumes the builder and constructs a [`TextLengthExceededException`](crate::error::TextLengthExceededException) + pub fn build(self) -> crate::error::TextLengthExceededException { + crate::error::TextLengthExceededException { message: self.message, } } } } -impl TextLengthExceededError { - /// Creates a new builder-style object to manufacture [`TextLengthExceededError`](crate::error::TextLengthExceededError) - pub fn builder() -> crate::error::text_length_exceeded_error::Builder { - crate::error::text_length_exceeded_error::Builder::default() +impl TextLengthExceededException { + /// Creates a new builder-style object to manufacture [`TextLengthExceededException`](crate::error::TextLengthExceededException) + pub fn builder() -> crate::error::text_length_exceeded_exception::Builder { + crate::error::text_length_exceeded_exception::Builder::default() } } ///

    SSML speech marks are not supported for plain text-type input.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SsmlMarksNotSupportedForTextTypeError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SsmlMarksNotSupportedForTextTypeException { pub message: std::option::Option, } -impl std::fmt::Debug for SsmlMarksNotSupportedForTextTypeError { +impl std::fmt::Debug for SsmlMarksNotSupportedForTextTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SsmlMarksNotSupportedForTextTypeError"); + let mut formatter = f.debug_struct("SsmlMarksNotSupportedForTextTypeException"); formatter.field("message", &self.message); formatter.finish() } } -impl SsmlMarksNotSupportedForTextTypeError { +impl SsmlMarksNotSupportedForTextTypeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SsmlMarksNotSupportedForTextTypeError { +impl std::fmt::Display for SsmlMarksNotSupportedForTextTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "SsmlMarksNotSupportedForTextTypeError [SsmlMarksNotSupportedForTextTypeException]" - )?; + write!(f, "SsmlMarksNotSupportedForTextTypeException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for SsmlMarksNotSupportedForTextTypeError {} -/// See [`SsmlMarksNotSupportedForTextTypeError`](crate::error::SsmlMarksNotSupportedForTextTypeError) -pub mod ssml_marks_not_supported_for_text_type_error { - /// A builder for [`SsmlMarksNotSupportedForTextTypeError`](crate::error::SsmlMarksNotSupportedForTextTypeError) +impl std::error::Error for SsmlMarksNotSupportedForTextTypeException {} +/// See [`SsmlMarksNotSupportedForTextTypeException`](crate::error::SsmlMarksNotSupportedForTextTypeException) +pub mod ssml_marks_not_supported_for_text_type_exception { + /// A builder for [`SsmlMarksNotSupportedForTextTypeException`](crate::error::SsmlMarksNotSupportedForTextTypeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1112,54 +1136,52 @@ pub mod ssml_marks_not_supported_for_text_type_error { self.message = input; self } - /// Consumes the builder and constructs a [`SsmlMarksNotSupportedForTextTypeError`](crate::error::SsmlMarksNotSupportedForTextTypeError) - pub fn build(self) -> crate::error::SsmlMarksNotSupportedForTextTypeError { - crate::error::SsmlMarksNotSupportedForTextTypeError { + /// Consumes the builder and constructs a [`SsmlMarksNotSupportedForTextTypeException`](crate::error::SsmlMarksNotSupportedForTextTypeException) + pub fn build(self) -> crate::error::SsmlMarksNotSupportedForTextTypeException { + crate::error::SsmlMarksNotSupportedForTextTypeException { message: self.message, } } } } -impl SsmlMarksNotSupportedForTextTypeError { - /// Creates a new builder-style object to manufacture [`SsmlMarksNotSupportedForTextTypeError`](crate::error::SsmlMarksNotSupportedForTextTypeError) - pub fn builder() -> crate::error::ssml_marks_not_supported_for_text_type_error::Builder { - crate::error::ssml_marks_not_supported_for_text_type_error::Builder::default() +impl SsmlMarksNotSupportedForTextTypeException { + /// Creates a new builder-style object to manufacture [`SsmlMarksNotSupportedForTextTypeException`](crate::error::SsmlMarksNotSupportedForTextTypeException) + pub fn builder() -> crate::error::ssml_marks_not_supported_for_text_type_exception::Builder { + crate::error::ssml_marks_not_supported_for_text_type_exception::Builder::default() } } ///

    An unknown condition has caused a service failure.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceFailureError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceFailureException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceFailureError { +impl std::fmt::Debug for ServiceFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceFailureError"); + let mut formatter = f.debug_struct("ServiceFailureException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceFailureError { +impl ServiceFailureException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceFailureError { +impl std::fmt::Display for ServiceFailureException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceFailureError [ServiceFailureException]")?; + write!(f, "ServiceFailureException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ServiceFailureError {} -/// See [`ServiceFailureError`](crate::error::ServiceFailureError) -pub mod service_failure_error { - /// A builder for [`ServiceFailureError`](crate::error::ServiceFailureError) +impl std::error::Error for ServiceFailureException {} +/// See [`ServiceFailureException`](crate::error::ServiceFailureException) +pub mod service_failure_exception { + /// A builder for [`ServiceFailureException`](crate::error::ServiceFailureException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1174,58 +1196,53 @@ pub mod service_failure_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceFailureError`](crate::error::ServiceFailureError) - pub fn build(self) -> crate::error::ServiceFailureError { - crate::error::ServiceFailureError { + /// Consumes the builder and constructs a [`ServiceFailureException`](crate::error::ServiceFailureException) + pub fn build(self) -> crate::error::ServiceFailureException { + crate::error::ServiceFailureException { message: self.message, } } } } -impl ServiceFailureError { - /// Creates a new builder-style object to manufacture [`ServiceFailureError`](crate::error::ServiceFailureError) - pub fn builder() -> crate::error::service_failure_error::Builder { - crate::error::service_failure_error::Builder::default() +impl ServiceFailureException { + /// Creates a new builder-style object to manufacture [`ServiceFailureException`](crate::error::ServiceFailureException) + pub fn builder() -> crate::error::service_failure_exception::Builder { + crate::error::service_failure_exception::Builder::default() } } ///

    Speech marks are not supported for the OutputFormat selected. Speech marks /// are only available for content in json format.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MarksNotSupportedForFormatError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MarksNotSupportedForFormatException { pub message: std::option::Option, } -impl std::fmt::Debug for MarksNotSupportedForFormatError { +impl std::fmt::Debug for MarksNotSupportedForFormatException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MarksNotSupportedForFormatError"); + let mut formatter = f.debug_struct("MarksNotSupportedForFormatException"); formatter.field("message", &self.message); formatter.finish() } } -impl MarksNotSupportedForFormatError { +impl MarksNotSupportedForFormatException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MarksNotSupportedForFormatError { +impl std::fmt::Display for MarksNotSupportedForFormatException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MarksNotSupportedForFormatError [MarksNotSupportedForFormatException]" - )?; + write!(f, "MarksNotSupportedForFormatException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for MarksNotSupportedForFormatError {} -/// See [`MarksNotSupportedForFormatError`](crate::error::MarksNotSupportedForFormatError) -pub mod marks_not_supported_for_format_error { - /// A builder for [`MarksNotSupportedForFormatError`](crate::error::MarksNotSupportedForFormatError) +impl std::error::Error for MarksNotSupportedForFormatException {} +/// See [`MarksNotSupportedForFormatException`](crate::error::MarksNotSupportedForFormatException) +pub mod marks_not_supported_for_format_exception { + /// A builder for [`MarksNotSupportedForFormatException`](crate::error::MarksNotSupportedForFormatException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1240,18 +1257,18 @@ pub mod marks_not_supported_for_format_error { self.message = input; self } - /// Consumes the builder and constructs a [`MarksNotSupportedForFormatError`](crate::error::MarksNotSupportedForFormatError) - pub fn build(self) -> crate::error::MarksNotSupportedForFormatError { - crate::error::MarksNotSupportedForFormatError { + /// Consumes the builder and constructs a [`MarksNotSupportedForFormatException`](crate::error::MarksNotSupportedForFormatException) + pub fn build(self) -> crate::error::MarksNotSupportedForFormatException { + crate::error::MarksNotSupportedForFormatException { message: self.message, } } } } -impl MarksNotSupportedForFormatError { - /// Creates a new builder-style object to manufacture [`MarksNotSupportedForFormatError`](crate::error::MarksNotSupportedForFormatError) - pub fn builder() -> crate::error::marks_not_supported_for_format_error::Builder { - crate::error::marks_not_supported_for_format_error::Builder::default() +impl MarksNotSupportedForFormatException { + /// Creates a new builder-style object to manufacture [`MarksNotSupportedForFormatException`](crate::error::MarksNotSupportedForFormatException) + pub fn builder() -> crate::error::marks_not_supported_for_format_exception::Builder { + crate::error::marks_not_supported_for_format_exception::Builder::default() } } @@ -1261,37 +1278,35 @@ impl MarksNotSupportedForFormatError { ///

    Verify that the lexicon exists, is in the region (see ListLexicons) /// and that you spelled its name is spelled correctly. Then try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LexiconNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LexiconNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for LexiconNotFoundError { +impl std::fmt::Debug for LexiconNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LexiconNotFoundError"); + let mut formatter = f.debug_struct("LexiconNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl LexiconNotFoundError { +impl LexiconNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LexiconNotFoundError { +impl std::fmt::Display for LexiconNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LexiconNotFoundError [LexiconNotFoundException]")?; + write!(f, "LexiconNotFoundException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for LexiconNotFoundError {} -/// See [`LexiconNotFoundError`](crate::error::LexiconNotFoundError) -pub mod lexicon_not_found_error { - /// A builder for [`LexiconNotFoundError`](crate::error::LexiconNotFoundError) +impl std::error::Error for LexiconNotFoundException {} +/// See [`LexiconNotFoundException`](crate::error::LexiconNotFoundException) +pub mod lexicon_not_found_exception { + /// A builder for [`LexiconNotFoundException`](crate::error::LexiconNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1306,57 +1321,52 @@ pub mod lexicon_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`LexiconNotFoundError`](crate::error::LexiconNotFoundError) - pub fn build(self) -> crate::error::LexiconNotFoundError { - crate::error::LexiconNotFoundError { + /// Consumes the builder and constructs a [`LexiconNotFoundException`](crate::error::LexiconNotFoundException) + pub fn build(self) -> crate::error::LexiconNotFoundException { + crate::error::LexiconNotFoundException { message: self.message, } } } } -impl LexiconNotFoundError { - /// Creates a new builder-style object to manufacture [`LexiconNotFoundError`](crate::error::LexiconNotFoundError) - pub fn builder() -> crate::error::lexicon_not_found_error::Builder { - crate::error::lexicon_not_found_error::Builder::default() +impl LexiconNotFoundException { + /// Creates a new builder-style object to manufacture [`LexiconNotFoundException`](crate::error::LexiconNotFoundException) + pub fn builder() -> crate::error::lexicon_not_found_exception::Builder { + crate::error::lexicon_not_found_exception::Builder::default() } } ///

    The language specified is not currently supported by Amazon Polly in this capacity.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LanguageNotSupportedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LanguageNotSupportedException { pub message: std::option::Option, } -impl std::fmt::Debug for LanguageNotSupportedError { +impl std::fmt::Debug for LanguageNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LanguageNotSupportedError"); + let mut formatter = f.debug_struct("LanguageNotSupportedException"); formatter.field("message", &self.message); formatter.finish() } } -impl LanguageNotSupportedError { +impl LanguageNotSupportedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LanguageNotSupportedError { +impl std::fmt::Display for LanguageNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "LanguageNotSupportedError [LanguageNotSupportedException]" - )?; + write!(f, "LanguageNotSupportedException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for LanguageNotSupportedError {} -/// See [`LanguageNotSupportedError`](crate::error::LanguageNotSupportedError) -pub mod language_not_supported_error { - /// A builder for [`LanguageNotSupportedError`](crate::error::LanguageNotSupportedError) +impl std::error::Error for LanguageNotSupportedException {} +/// See [`LanguageNotSupportedException`](crate::error::LanguageNotSupportedException) +pub mod language_not_supported_exception { + /// A builder for [`LanguageNotSupportedException`](crate::error::LanguageNotSupportedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1371,55 +1381,53 @@ pub mod language_not_supported_error { self.message = input; self } - /// Consumes the builder and constructs a [`LanguageNotSupportedError`](crate::error::LanguageNotSupportedError) - pub fn build(self) -> crate::error::LanguageNotSupportedError { - crate::error::LanguageNotSupportedError { + /// Consumes the builder and constructs a [`LanguageNotSupportedException`](crate::error::LanguageNotSupportedException) + pub fn build(self) -> crate::error::LanguageNotSupportedException { + crate::error::LanguageNotSupportedException { message: self.message, } } } } -impl LanguageNotSupportedError { - /// Creates a new builder-style object to manufacture [`LanguageNotSupportedError`](crate::error::LanguageNotSupportedError) - pub fn builder() -> crate::error::language_not_supported_error::Builder { - crate::error::language_not_supported_error::Builder::default() +impl LanguageNotSupportedException { + /// Creates a new builder-style object to manufacture [`LanguageNotSupportedException`](crate::error::LanguageNotSupportedException) + pub fn builder() -> crate::error::language_not_supported_exception::Builder { + crate::error::language_not_supported_exception::Builder::default() } } ///

    The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, /// and then try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSsmlError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSsmlException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSsmlError { +impl std::fmt::Debug for InvalidSsmlException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSsmlError"); + let mut formatter = f.debug_struct("InvalidSsmlException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSsmlError { +impl InvalidSsmlException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSsmlError { +impl std::fmt::Display for InvalidSsmlException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSsmlError [InvalidSsmlException]")?; + write!(f, "InvalidSsmlException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for InvalidSsmlError {} -/// See [`InvalidSsmlError`](crate::error::InvalidSsmlError) -pub mod invalid_ssml_error { - /// A builder for [`InvalidSsmlError`](crate::error::InvalidSsmlError) +impl std::error::Error for InvalidSsmlException {} +/// See [`InvalidSsmlException`](crate::error::InvalidSsmlException) +pub mod invalid_ssml_exception { + /// A builder for [`InvalidSsmlException`](crate::error::InvalidSsmlException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1434,54 +1442,52 @@ pub mod invalid_ssml_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSsmlError`](crate::error::InvalidSsmlError) - pub fn build(self) -> crate::error::InvalidSsmlError { - crate::error::InvalidSsmlError { + /// Consumes the builder and constructs a [`InvalidSsmlException`](crate::error::InvalidSsmlException) + pub fn build(self) -> crate::error::InvalidSsmlException { + crate::error::InvalidSsmlException { message: self.message, } } } } -impl InvalidSsmlError { - /// Creates a new builder-style object to manufacture [`InvalidSsmlError`](crate::error::InvalidSsmlError) - pub fn builder() -> crate::error::invalid_ssml_error::Builder { - crate::error::invalid_ssml_error::Builder::default() +impl InvalidSsmlException { + /// Creates a new builder-style object to manufacture [`InvalidSsmlException`](crate::error::InvalidSsmlException) + pub fn builder() -> crate::error::invalid_ssml_exception::Builder { + crate::error::invalid_ssml_exception::Builder::default() } } ///

    The specified sample rate is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSampleRateError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSampleRateException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSampleRateError { +impl std::fmt::Debug for InvalidSampleRateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSampleRateError"); + let mut formatter = f.debug_struct("InvalidSampleRateException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSampleRateError { +impl InvalidSampleRateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSampleRateError { +impl std::fmt::Display for InvalidSampleRateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSampleRateError [InvalidSampleRateException]")?; + write!(f, "InvalidSampleRateException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for InvalidSampleRateError {} -/// See [`InvalidSampleRateError`](crate::error::InvalidSampleRateError) -pub mod invalid_sample_rate_error { - /// A builder for [`InvalidSampleRateError`](crate::error::InvalidSampleRateError) +impl std::error::Error for InvalidSampleRateException {} +/// See [`InvalidSampleRateException`](crate::error::InvalidSampleRateException) +pub mod invalid_sample_rate_exception { + /// A builder for [`InvalidSampleRateException`](crate::error::InvalidSampleRateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1496,55 +1502,53 @@ pub mod invalid_sample_rate_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSampleRateError`](crate::error::InvalidSampleRateError) - pub fn build(self) -> crate::error::InvalidSampleRateError { - crate::error::InvalidSampleRateError { + /// Consumes the builder and constructs a [`InvalidSampleRateException`](crate::error::InvalidSampleRateException) + pub fn build(self) -> crate::error::InvalidSampleRateException { + crate::error::InvalidSampleRateException { message: self.message, } } } } -impl InvalidSampleRateError { - /// Creates a new builder-style object to manufacture [`InvalidSampleRateError`](crate::error::InvalidSampleRateError) - pub fn builder() -> crate::error::invalid_sample_rate_error::Builder { - crate::error::invalid_sample_rate_error::Builder::default() +impl InvalidSampleRateException { + /// Creates a new builder-style object to manufacture [`InvalidSampleRateException`](crate::error::InvalidSampleRateException) + pub fn builder() -> crate::error::invalid_sample_rate_exception::Builder { + crate::error::invalid_sample_rate_exception::Builder::default() } } ///

    This engine is not compatible with the voice that you have designated. Choose a new voice /// that is compatible with the engine or change the engine and restart the operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct EngineNotSupportedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct EngineNotSupportedException { pub message: std::option::Option, } -impl std::fmt::Debug for EngineNotSupportedError { +impl std::fmt::Debug for EngineNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EngineNotSupportedError"); + let mut formatter = f.debug_struct("EngineNotSupportedException"); formatter.field("message", &self.message); formatter.finish() } } -impl EngineNotSupportedError { +impl EngineNotSupportedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EngineNotSupportedError { +impl std::fmt::Display for EngineNotSupportedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EngineNotSupportedError [EngineNotSupportedException]")?; + write!(f, "EngineNotSupportedException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for EngineNotSupportedError {} -/// See [`EngineNotSupportedError`](crate::error::EngineNotSupportedError) -pub mod engine_not_supported_error { - /// A builder for [`EngineNotSupportedError`](crate::error::EngineNotSupportedError) +impl std::error::Error for EngineNotSupportedException {} +/// See [`EngineNotSupportedException`](crate::error::EngineNotSupportedException) +pub mod engine_not_supported_exception { + /// A builder for [`EngineNotSupportedException`](crate::error::EngineNotSupportedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1559,55 +1563,53 @@ pub mod engine_not_supported_error { self.message = input; self } - /// Consumes the builder and constructs a [`EngineNotSupportedError`](crate::error::EngineNotSupportedError) - pub fn build(self) -> crate::error::EngineNotSupportedError { - crate::error::EngineNotSupportedError { + /// Consumes the builder and constructs a [`EngineNotSupportedException`](crate::error::EngineNotSupportedException) + pub fn build(self) -> crate::error::EngineNotSupportedException { + crate::error::EngineNotSupportedException { message: self.message, } } } } -impl EngineNotSupportedError { - /// Creates a new builder-style object to manufacture [`EngineNotSupportedError`](crate::error::EngineNotSupportedError) - pub fn builder() -> crate::error::engine_not_supported_error::Builder { - crate::error::engine_not_supported_error::Builder::default() +impl EngineNotSupportedException { + /// Creates a new builder-style object to manufacture [`EngineNotSupportedException`](crate::error::EngineNotSupportedException) + pub fn builder() -> crate::error::engine_not_supported_exception::Builder { + crate::error::engine_not_supported_exception::Builder::default() } } ///

    The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSnsTopicArnError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSnsTopicArnException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSnsTopicArnError { +impl std::fmt::Debug for InvalidSnsTopicArnException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSnsTopicArnError"); + let mut formatter = f.debug_struct("InvalidSnsTopicArnException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSnsTopicArnError { +impl InvalidSnsTopicArnException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSnsTopicArnError { +impl std::fmt::Display for InvalidSnsTopicArnException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSnsTopicArnError [InvalidSnsTopicArnException]")?; + write!(f, "InvalidSnsTopicArnException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for InvalidSnsTopicArnError {} -/// See [`InvalidSnsTopicArnError`](crate::error::InvalidSnsTopicArnError) -pub mod invalid_sns_topic_arn_error { - /// A builder for [`InvalidSnsTopicArnError`](crate::error::InvalidSnsTopicArnError) +impl std::error::Error for InvalidSnsTopicArnException {} +/// See [`InvalidSnsTopicArnException`](crate::error::InvalidSnsTopicArnException) +pub mod invalid_sns_topic_arn_exception { + /// A builder for [`InvalidSnsTopicArnException`](crate::error::InvalidSnsTopicArnException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1622,55 +1624,53 @@ pub mod invalid_sns_topic_arn_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSnsTopicArnError`](crate::error::InvalidSnsTopicArnError) - pub fn build(self) -> crate::error::InvalidSnsTopicArnError { - crate::error::InvalidSnsTopicArnError { + /// Consumes the builder and constructs a [`InvalidSnsTopicArnException`](crate::error::InvalidSnsTopicArnException) + pub fn build(self) -> crate::error::InvalidSnsTopicArnException { + crate::error::InvalidSnsTopicArnException { message: self.message, } } } } -impl InvalidSnsTopicArnError { - /// Creates a new builder-style object to manufacture [`InvalidSnsTopicArnError`](crate::error::InvalidSnsTopicArnError) - pub fn builder() -> crate::error::invalid_sns_topic_arn_error::Builder { - crate::error::invalid_sns_topic_arn_error::Builder::default() +impl InvalidSnsTopicArnException { + /// Creates a new builder-style object to manufacture [`InvalidSnsTopicArnException`](crate::error::InvalidSnsTopicArnException) + pub fn builder() -> crate::error::invalid_sns_topic_arn_exception::Builder { + crate::error::invalid_sns_topic_arn_exception::Builder::default() } } ///

    The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key /// name.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidS3KeyError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidS3KeyException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidS3KeyError { +impl std::fmt::Debug for InvalidS3KeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidS3KeyError"); + let mut formatter = f.debug_struct("InvalidS3KeyException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidS3KeyError { +impl InvalidS3KeyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidS3KeyError { +impl std::fmt::Display for InvalidS3KeyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidS3KeyError [InvalidS3KeyException]")?; + write!(f, "InvalidS3KeyException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for InvalidS3KeyError {} -/// See [`InvalidS3KeyError`](crate::error::InvalidS3KeyError) -pub mod invalid_s3_key_error { - /// A builder for [`InvalidS3KeyError`](crate::error::InvalidS3KeyError) +impl std::error::Error for InvalidS3KeyException {} +/// See [`InvalidS3KeyException`](crate::error::InvalidS3KeyException) +pub mod invalid_s3_key_exception { + /// A builder for [`InvalidS3KeyException`](crate::error::InvalidS3KeyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1685,55 +1685,53 @@ pub mod invalid_s3_key_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidS3KeyError`](crate::error::InvalidS3KeyError) - pub fn build(self) -> crate::error::InvalidS3KeyError { - crate::error::InvalidS3KeyError { + /// Consumes the builder and constructs a [`InvalidS3KeyException`](crate::error::InvalidS3KeyException) + pub fn build(self) -> crate::error::InvalidS3KeyException { + crate::error::InvalidS3KeyException { message: self.message, } } } } -impl InvalidS3KeyError { - /// Creates a new builder-style object to manufacture [`InvalidS3KeyError`](crate::error::InvalidS3KeyError) - pub fn builder() -> crate::error::invalid_s3_key_error::Builder { - crate::error::invalid_s3_key_error::Builder::default() +impl InvalidS3KeyException { + /// Creates a new builder-style object to manufacture [`InvalidS3KeyException`](crate::error::InvalidS3KeyException) + pub fn builder() -> crate::error::invalid_s3_key_exception::Builder { + crate::error::invalid_s3_key_exception::Builder::default() } } ///

    The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket /// naming requirements and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidS3BucketError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidS3BucketException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidS3BucketError { +impl std::fmt::Debug for InvalidS3BucketException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidS3BucketError"); + let mut formatter = f.debug_struct("InvalidS3BucketException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidS3BucketError { +impl InvalidS3BucketException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidS3BucketError { +impl std::fmt::Display for InvalidS3BucketException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidS3BucketError [InvalidS3BucketException]")?; + write!(f, "InvalidS3BucketException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for InvalidS3BucketError {} -/// See [`InvalidS3BucketError`](crate::error::InvalidS3BucketError) -pub mod invalid_s3_bucket_error { - /// A builder for [`InvalidS3BucketError`](crate::error::InvalidS3BucketError) +impl std::error::Error for InvalidS3BucketException {} +/// See [`InvalidS3BucketException`](crate::error::InvalidS3BucketException) +pub mod invalid_s3_bucket_exception { + /// A builder for [`InvalidS3BucketException`](crate::error::InvalidS3BucketException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1748,18 +1746,18 @@ pub mod invalid_s3_bucket_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidS3BucketError`](crate::error::InvalidS3BucketError) - pub fn build(self) -> crate::error::InvalidS3BucketError { - crate::error::InvalidS3BucketError { + /// Consumes the builder and constructs a [`InvalidS3BucketException`](crate::error::InvalidS3BucketException) + pub fn build(self) -> crate::error::InvalidS3BucketException { + crate::error::InvalidS3BucketException { message: self.message, } } } } -impl InvalidS3BucketError { - /// Creates a new builder-style object to manufacture [`InvalidS3BucketError`](crate::error::InvalidS3BucketError) - pub fn builder() -> crate::error::invalid_s3_bucket_error::Builder { - crate::error::invalid_s3_bucket_error::Builder::default() +impl InvalidS3BucketException { + /// Creates a new builder-style object to manufacture [`InvalidS3BucketException`](crate::error::InvalidS3BucketException) + pub fn builder() -> crate::error::invalid_s3_bucket_exception::Builder { + crate::error::invalid_s3_bucket_exception::Builder::default() } } @@ -1767,40 +1765,35 @@ impl InvalidS3BucketError { /// languages, see Lexicon /// Attributes.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedPlsLanguageError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedPlsLanguageException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedPlsLanguageError { +impl std::fmt::Debug for UnsupportedPlsLanguageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedPlsLanguageError"); + let mut formatter = f.debug_struct("UnsupportedPlsLanguageException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedPlsLanguageError { +impl UnsupportedPlsLanguageException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedPlsLanguageError { +impl std::fmt::Display for UnsupportedPlsLanguageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedPlsLanguageError [UnsupportedPlsLanguageException]" - )?; + write!(f, "UnsupportedPlsLanguageException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for UnsupportedPlsLanguageError {} -/// See [`UnsupportedPlsLanguageError`](crate::error::UnsupportedPlsLanguageError) -pub mod unsupported_pls_language_error { - /// A builder for [`UnsupportedPlsLanguageError`](crate::error::UnsupportedPlsLanguageError) +impl std::error::Error for UnsupportedPlsLanguageException {} +/// See [`UnsupportedPlsLanguageException`](crate::error::UnsupportedPlsLanguageException) +pub mod unsupported_pls_language_exception { + /// A builder for [`UnsupportedPlsLanguageException`](crate::error::UnsupportedPlsLanguageException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1815,58 +1808,53 @@ pub mod unsupported_pls_language_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedPlsLanguageError`](crate::error::UnsupportedPlsLanguageError) - pub fn build(self) -> crate::error::UnsupportedPlsLanguageError { - crate::error::UnsupportedPlsLanguageError { + /// Consumes the builder and constructs a [`UnsupportedPlsLanguageException`](crate::error::UnsupportedPlsLanguageException) + pub fn build(self) -> crate::error::UnsupportedPlsLanguageException { + crate::error::UnsupportedPlsLanguageException { message: self.message, } } } } -impl UnsupportedPlsLanguageError { - /// Creates a new builder-style object to manufacture [`UnsupportedPlsLanguageError`](crate::error::UnsupportedPlsLanguageError) - pub fn builder() -> crate::error::unsupported_pls_language_error::Builder { - crate::error::unsupported_pls_language_error::Builder::default() +impl UnsupportedPlsLanguageException { + /// Creates a new builder-style object to manufacture [`UnsupportedPlsLanguageException`](crate::error::UnsupportedPlsLanguageException) + pub fn builder() -> crate::error::unsupported_pls_language_exception::Builder { + crate::error::unsupported_pls_language_exception::Builder::default() } } ///

    The alphabet specified by the lexicon is not a supported alphabet. Valid values are /// x-sampa and ipa.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedPlsAlphabetError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedPlsAlphabetException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedPlsAlphabetError { +impl std::fmt::Debug for UnsupportedPlsAlphabetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedPlsAlphabetError"); + let mut formatter = f.debug_struct("UnsupportedPlsAlphabetException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedPlsAlphabetError { +impl UnsupportedPlsAlphabetException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedPlsAlphabetError { +impl std::fmt::Display for UnsupportedPlsAlphabetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedPlsAlphabetError [UnsupportedPlsAlphabetException]" - )?; + write!(f, "UnsupportedPlsAlphabetException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for UnsupportedPlsAlphabetError {} -/// See [`UnsupportedPlsAlphabetError`](crate::error::UnsupportedPlsAlphabetError) -pub mod unsupported_pls_alphabet_error { - /// A builder for [`UnsupportedPlsAlphabetError`](crate::error::UnsupportedPlsAlphabetError) +impl std::error::Error for UnsupportedPlsAlphabetException {} +/// See [`UnsupportedPlsAlphabetException`](crate::error::UnsupportedPlsAlphabetException) +pub mod unsupported_pls_alphabet_exception { + /// A builder for [`UnsupportedPlsAlphabetException`](crate::error::UnsupportedPlsAlphabetException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1881,57 +1869,52 @@ pub mod unsupported_pls_alphabet_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedPlsAlphabetError`](crate::error::UnsupportedPlsAlphabetError) - pub fn build(self) -> crate::error::UnsupportedPlsAlphabetError { - crate::error::UnsupportedPlsAlphabetError { + /// Consumes the builder and constructs a [`UnsupportedPlsAlphabetException`](crate::error::UnsupportedPlsAlphabetException) + pub fn build(self) -> crate::error::UnsupportedPlsAlphabetException { + crate::error::UnsupportedPlsAlphabetException { message: self.message, } } } } -impl UnsupportedPlsAlphabetError { - /// Creates a new builder-style object to manufacture [`UnsupportedPlsAlphabetError`](crate::error::UnsupportedPlsAlphabetError) - pub fn builder() -> crate::error::unsupported_pls_alphabet_error::Builder { - crate::error::unsupported_pls_alphabet_error::Builder::default() +impl UnsupportedPlsAlphabetException { + /// Creates a new builder-style object to manufacture [`UnsupportedPlsAlphabetException`](crate::error::UnsupportedPlsAlphabetException) + pub fn builder() -> crate::error::unsupported_pls_alphabet_exception::Builder { + crate::error::unsupported_pls_alphabet_exception::Builder::default() } } ///

    The maximum number of lexicons would be exceeded by this operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MaxLexiconsNumberExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MaxLexiconsNumberExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for MaxLexiconsNumberExceededError { +impl std::fmt::Debug for MaxLexiconsNumberExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MaxLexiconsNumberExceededError"); + let mut formatter = f.debug_struct("MaxLexiconsNumberExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl MaxLexiconsNumberExceededError { +impl MaxLexiconsNumberExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MaxLexiconsNumberExceededError { +impl std::fmt::Display for MaxLexiconsNumberExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MaxLexiconsNumberExceededError [MaxLexiconsNumberExceededException]" - )?; + write!(f, "MaxLexiconsNumberExceededException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for MaxLexiconsNumberExceededError {} -/// See [`MaxLexiconsNumberExceededError`](crate::error::MaxLexiconsNumberExceededError) -pub mod max_lexicons_number_exceeded_error { - /// A builder for [`MaxLexiconsNumberExceededError`](crate::error::MaxLexiconsNumberExceededError) +impl std::error::Error for MaxLexiconsNumberExceededException {} +/// See [`MaxLexiconsNumberExceededException`](crate::error::MaxLexiconsNumberExceededException) +pub mod max_lexicons_number_exceeded_exception { + /// A builder for [`MaxLexiconsNumberExceededException`](crate::error::MaxLexiconsNumberExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1946,57 +1929,52 @@ pub mod max_lexicons_number_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`MaxLexiconsNumberExceededError`](crate::error::MaxLexiconsNumberExceededError) - pub fn build(self) -> crate::error::MaxLexiconsNumberExceededError { - crate::error::MaxLexiconsNumberExceededError { + /// Consumes the builder and constructs a [`MaxLexiconsNumberExceededException`](crate::error::MaxLexiconsNumberExceededException) + pub fn build(self) -> crate::error::MaxLexiconsNumberExceededException { + crate::error::MaxLexiconsNumberExceededException { message: self.message, } } } } -impl MaxLexiconsNumberExceededError { - /// Creates a new builder-style object to manufacture [`MaxLexiconsNumberExceededError`](crate::error::MaxLexiconsNumberExceededError) - pub fn builder() -> crate::error::max_lexicons_number_exceeded_error::Builder { - crate::error::max_lexicons_number_exceeded_error::Builder::default() +impl MaxLexiconsNumberExceededException { + /// Creates a new builder-style object to manufacture [`MaxLexiconsNumberExceededException`](crate::error::MaxLexiconsNumberExceededException) + pub fn builder() -> crate::error::max_lexicons_number_exceeded_exception::Builder { + crate::error::max_lexicons_number_exceeded_exception::Builder::default() } } ///

    The maximum size of the lexeme would be exceeded by this operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MaxLexemeLengthExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MaxLexemeLengthExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for MaxLexemeLengthExceededError { +impl std::fmt::Debug for MaxLexemeLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MaxLexemeLengthExceededError"); + let mut formatter = f.debug_struct("MaxLexemeLengthExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl MaxLexemeLengthExceededError { +impl MaxLexemeLengthExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MaxLexemeLengthExceededError { +impl std::fmt::Display for MaxLexemeLengthExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MaxLexemeLengthExceededError [MaxLexemeLengthExceededException]" - )?; + write!(f, "MaxLexemeLengthExceededException")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for MaxLexemeLengthExceededError {} -/// See [`MaxLexemeLengthExceededError`](crate::error::MaxLexemeLengthExceededError) -pub mod max_lexeme_length_exceeded_error { - /// A builder for [`MaxLexemeLengthExceededError`](crate::error::MaxLexemeLengthExceededError) +impl std::error::Error for MaxLexemeLengthExceededException {} +/// See [`MaxLexemeLengthExceededException`](crate::error::MaxLexemeLengthExceededException) +pub mod max_lexeme_length_exceeded_exception { + /// A builder for [`MaxLexemeLengthExceededException`](crate::error::MaxLexemeLengthExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2011,55 +1989,53 @@ pub mod max_lexeme_length_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`MaxLexemeLengthExceededError`](crate::error::MaxLexemeLengthExceededError) - pub fn build(self) -> crate::error::MaxLexemeLengthExceededError { - crate::error::MaxLexemeLengthExceededError { + /// Consumes the builder and constructs a [`MaxLexemeLengthExceededException`](crate::error::MaxLexemeLengthExceededException) + pub fn build(self) -> crate::error::MaxLexemeLengthExceededException { + crate::error::MaxLexemeLengthExceededException { message: self.message, } } } } -impl MaxLexemeLengthExceededError { - /// Creates a new builder-style object to manufacture [`MaxLexemeLengthExceededError`](crate::error::MaxLexemeLengthExceededError) - pub fn builder() -> crate::error::max_lexeme_length_exceeded_error::Builder { - crate::error::max_lexeme_length_exceeded_error::Builder::default() +impl MaxLexemeLengthExceededException { + /// Creates a new builder-style object to manufacture [`MaxLexemeLengthExceededException`](crate::error::MaxLexemeLengthExceededException) + pub fn builder() -> crate::error::max_lexeme_length_exceeded_exception::Builder { + crate::error::max_lexeme_length_exceeded_exception::Builder::default() } } ///

    The maximum size of the specified lexicon would be exceeded by this /// operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LexiconSizeExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LexiconSizeExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LexiconSizeExceededError { +impl std::fmt::Debug for LexiconSizeExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LexiconSizeExceededError"); + let mut formatter = f.debug_struct("LexiconSizeExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LexiconSizeExceededError { +impl LexiconSizeExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LexiconSizeExceededError { +impl std::fmt::Display for LexiconSizeExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LexiconSizeExceededError [LexiconSizeExceededException]")?; + write!(f, "LexiconSizeExceededException")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for LexiconSizeExceededError {} -/// See [`LexiconSizeExceededError`](crate::error::LexiconSizeExceededError) -pub mod lexicon_size_exceeded_error { - /// A builder for [`LexiconSizeExceededError`](crate::error::LexiconSizeExceededError) +impl std::error::Error for LexiconSizeExceededException {} +/// See [`LexiconSizeExceededException`](crate::error::LexiconSizeExceededException) +pub mod lexicon_size_exceeded_exception { + /// A builder for [`LexiconSizeExceededException`](crate::error::LexiconSizeExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2074,55 +2050,53 @@ pub mod lexicon_size_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LexiconSizeExceededError`](crate::error::LexiconSizeExceededError) - pub fn build(self) -> crate::error::LexiconSizeExceededError { - crate::error::LexiconSizeExceededError { + /// Consumes the builder and constructs a [`LexiconSizeExceededException`](crate::error::LexiconSizeExceededException) + pub fn build(self) -> crate::error::LexiconSizeExceededException { + crate::error::LexiconSizeExceededException { message: self.message, } } } } -impl LexiconSizeExceededError { - /// Creates a new builder-style object to manufacture [`LexiconSizeExceededError`](crate::error::LexiconSizeExceededError) - pub fn builder() -> crate::error::lexicon_size_exceeded_error::Builder { - crate::error::lexicon_size_exceeded_error::Builder::default() +impl LexiconSizeExceededException { + /// Creates a new builder-style object to manufacture [`LexiconSizeExceededException`](crate::error::LexiconSizeExceededException) + pub fn builder() -> crate::error::lexicon_size_exceeded_exception::Builder { + crate::error::lexicon_size_exceeded_exception::Builder::default() } } ///

    Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is /// spelled correctly, and then try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidLexiconError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidLexiconException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidLexiconError { +impl std::fmt::Debug for InvalidLexiconException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidLexiconError"); + let mut formatter = f.debug_struct("InvalidLexiconException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidLexiconError { +impl InvalidLexiconException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidLexiconError { +impl std::fmt::Display for InvalidLexiconException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidLexiconError [InvalidLexiconException]")?; + write!(f, "InvalidLexiconException")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for InvalidLexiconError {} -/// See [`InvalidLexiconError`](crate::error::InvalidLexiconError) -pub mod invalid_lexicon_error { - /// A builder for [`InvalidLexiconError`](crate::error::InvalidLexiconError) +impl std::error::Error for InvalidLexiconException {} +/// See [`InvalidLexiconException`](crate::error::InvalidLexiconException) +pub mod invalid_lexicon_exception { + /// A builder for [`InvalidLexiconException`](crate::error::InvalidLexiconException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2137,55 +2111,53 @@ pub mod invalid_lexicon_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidLexiconError`](crate::error::InvalidLexiconError) - pub fn build(self) -> crate::error::InvalidLexiconError { - crate::error::InvalidLexiconError { + /// Consumes the builder and constructs a [`InvalidLexiconException`](crate::error::InvalidLexiconException) + pub fn build(self) -> crate::error::InvalidLexiconException { + crate::error::InvalidLexiconException { message: self.message, } } } } -impl InvalidLexiconError { - /// Creates a new builder-style object to manufacture [`InvalidLexiconError`](crate::error::InvalidLexiconError) - pub fn builder() -> crate::error::invalid_lexicon_error::Builder { - crate::error::invalid_lexicon_error::Builder::default() +impl InvalidLexiconException { + /// Creates a new builder-style object to manufacture [`InvalidLexiconException`](crate::error::InvalidLexiconException) + pub fn builder() -> crate::error::invalid_lexicon_exception::Builder { + crate::error::invalid_lexicon_exception::Builder::default() } } ///

    The NextToken is invalid. Verify that it's spelled correctly, and then try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidNextTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidNextTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidNextTokenError { +impl std::fmt::Debug for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidNextTokenError"); + let mut formatter = f.debug_struct("InvalidNextTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidNextTokenError { +impl InvalidNextTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidNextTokenError { +impl std::fmt::Display for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidNextTokenError [InvalidNextTokenException]")?; + write!(f, "InvalidNextTokenException")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for InvalidNextTokenError {} -/// See [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) -pub mod invalid_next_token_error { - /// A builder for [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) +impl std::error::Error for InvalidNextTokenException {} +/// See [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) +pub mod invalid_next_token_exception { + /// A builder for [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2200,57 +2172,52 @@ pub mod invalid_next_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn build(self) -> crate::error::InvalidNextTokenError { - crate::error::InvalidNextTokenError { + /// Consumes the builder and constructs a [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn build(self) -> crate::error::InvalidNextTokenException { + crate::error::InvalidNextTokenException { message: self.message, } } } } -impl InvalidNextTokenError { - /// Creates a new builder-style object to manufacture [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn builder() -> crate::error::invalid_next_token_error::Builder { - crate::error::invalid_next_token_error::Builder::default() +impl InvalidNextTokenException { + /// Creates a new builder-style object to manufacture [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn builder() -> crate::error::invalid_next_token_exception::Builder { + crate::error::invalid_next_token_exception::Builder::default() } } ///

    The Speech Synthesis task with requested Task ID cannot be found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SynthesisTaskNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SynthesisTaskNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for SynthesisTaskNotFoundError { +impl std::fmt::Debug for SynthesisTaskNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SynthesisTaskNotFoundError"); + let mut formatter = f.debug_struct("SynthesisTaskNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl SynthesisTaskNotFoundError { +impl SynthesisTaskNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SynthesisTaskNotFoundError { +impl std::fmt::Display for SynthesisTaskNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "SynthesisTaskNotFoundError [SynthesisTaskNotFoundException]" - )?; + write!(f, "SynthesisTaskNotFoundException")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for SynthesisTaskNotFoundError {} -/// See [`SynthesisTaskNotFoundError`](crate::error::SynthesisTaskNotFoundError) -pub mod synthesis_task_not_found_error { - /// A builder for [`SynthesisTaskNotFoundError`](crate::error::SynthesisTaskNotFoundError) +impl std::error::Error for SynthesisTaskNotFoundException {} +/// See [`SynthesisTaskNotFoundException`](crate::error::SynthesisTaskNotFoundException) +pub mod synthesis_task_not_found_exception { + /// A builder for [`SynthesisTaskNotFoundException`](crate::error::SynthesisTaskNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2265,54 +2232,52 @@ pub mod synthesis_task_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`SynthesisTaskNotFoundError`](crate::error::SynthesisTaskNotFoundError) - pub fn build(self) -> crate::error::SynthesisTaskNotFoundError { - crate::error::SynthesisTaskNotFoundError { + /// Consumes the builder and constructs a [`SynthesisTaskNotFoundException`](crate::error::SynthesisTaskNotFoundException) + pub fn build(self) -> crate::error::SynthesisTaskNotFoundException { + crate::error::SynthesisTaskNotFoundException { message: self.message, } } } } -impl SynthesisTaskNotFoundError { - /// Creates a new builder-style object to manufacture [`SynthesisTaskNotFoundError`](crate::error::SynthesisTaskNotFoundError) - pub fn builder() -> crate::error::synthesis_task_not_found_error::Builder { - crate::error::synthesis_task_not_found_error::Builder::default() +impl SynthesisTaskNotFoundException { + /// Creates a new builder-style object to manufacture [`SynthesisTaskNotFoundException`](crate::error::SynthesisTaskNotFoundException) + pub fn builder() -> crate::error::synthesis_task_not_found_exception::Builder { + crate::error::synthesis_task_not_found_exception::Builder::default() } } ///

    The provided Task ID is not valid. Please provide a valid Task ID and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidTaskIdError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidTaskIdException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidTaskIdError { +impl std::fmt::Debug for InvalidTaskIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidTaskIdError"); + let mut formatter = f.debug_struct("InvalidTaskIdException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidTaskIdError { +impl InvalidTaskIdException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidTaskIdError { +impl std::fmt::Display for InvalidTaskIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidTaskIdError [InvalidTaskIdException]")?; + write!(f, "InvalidTaskIdException")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for InvalidTaskIdError {} -/// See [`InvalidTaskIdError`](crate::error::InvalidTaskIdError) -pub mod invalid_task_id_error { - /// A builder for [`InvalidTaskIdError`](crate::error::InvalidTaskIdError) +impl std::error::Error for InvalidTaskIdException {} +/// See [`InvalidTaskIdException`](crate::error::InvalidTaskIdException) +pub mod invalid_task_id_exception { + /// A builder for [`InvalidTaskIdException`](crate::error::InvalidTaskIdException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2327,17 +2292,17 @@ pub mod invalid_task_id_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidTaskIdError`](crate::error::InvalidTaskIdError) - pub fn build(self) -> crate::error::InvalidTaskIdError { - crate::error::InvalidTaskIdError { + /// Consumes the builder and constructs a [`InvalidTaskIdException`](crate::error::InvalidTaskIdException) + pub fn build(self) -> crate::error::InvalidTaskIdException { + crate::error::InvalidTaskIdException { message: self.message, } } } } -impl InvalidTaskIdError { - /// Creates a new builder-style object to manufacture [`InvalidTaskIdError`](crate::error::InvalidTaskIdError) - pub fn builder() -> crate::error::invalid_task_id_error::Builder { - crate::error::invalid_task_id_error::Builder::default() +impl InvalidTaskIdException { + /// Creates a new builder-style object to manufacture [`InvalidTaskIdException`](crate::error::InvalidTaskIdException) + pub fn builder() -> crate::error::invalid_task_id_exception::Builder { + crate::error::invalid_task_id_exception::Builder::default() } } diff --git a/sdk/polly/src/error_meta.rs b/sdk/polly/src/error_meta.rs index 18b149e3471c..d8416a65305e 100644 --- a/sdk/polly/src/error_meta.rs +++ b/sdk/polly/src/error_meta.rs @@ -2,53 +2,55 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - EngineNotSupportedError(crate::error::EngineNotSupportedError), - InvalidLexiconError(crate::error::InvalidLexiconError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - InvalidS3BucketError(crate::error::InvalidS3BucketError), - InvalidS3KeyError(crate::error::InvalidS3KeyError), - InvalidSampleRateError(crate::error::InvalidSampleRateError), - InvalidSnsTopicArnError(crate::error::InvalidSnsTopicArnError), - InvalidSsmlError(crate::error::InvalidSsmlError), - InvalidTaskIdError(crate::error::InvalidTaskIdError), - LanguageNotSupportedError(crate::error::LanguageNotSupportedError), - LexiconNotFoundError(crate::error::LexiconNotFoundError), - LexiconSizeExceededError(crate::error::LexiconSizeExceededError), - MarksNotSupportedForFormatError(crate::error::MarksNotSupportedForFormatError), - MaxLexemeLengthExceededError(crate::error::MaxLexemeLengthExceededError), - MaxLexiconsNumberExceededError(crate::error::MaxLexiconsNumberExceededError), - ServiceFailureError(crate::error::ServiceFailureError), - SsmlMarksNotSupportedForTextTypeError(crate::error::SsmlMarksNotSupportedForTextTypeError), - SynthesisTaskNotFoundError(crate::error::SynthesisTaskNotFoundError), - TextLengthExceededError(crate::error::TextLengthExceededError), - UnsupportedPlsAlphabetError(crate::error::UnsupportedPlsAlphabetError), - UnsupportedPlsLanguageError(crate::error::UnsupportedPlsLanguageError), + EngineNotSupportedException(crate::error::EngineNotSupportedException), + InvalidLexiconException(crate::error::InvalidLexiconException), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + InvalidS3BucketException(crate::error::InvalidS3BucketException), + InvalidS3KeyException(crate::error::InvalidS3KeyException), + InvalidSampleRateException(crate::error::InvalidSampleRateException), + InvalidSnsTopicArnException(crate::error::InvalidSnsTopicArnException), + InvalidSsmlException(crate::error::InvalidSsmlException), + InvalidTaskIdException(crate::error::InvalidTaskIdException), + LanguageNotSupportedException(crate::error::LanguageNotSupportedException), + LexiconNotFoundException(crate::error::LexiconNotFoundException), + LexiconSizeExceededException(crate::error::LexiconSizeExceededException), + MarksNotSupportedForFormatException(crate::error::MarksNotSupportedForFormatException), + MaxLexemeLengthExceededException(crate::error::MaxLexemeLengthExceededException), + MaxLexiconsNumberExceededException(crate::error::MaxLexiconsNumberExceededException), + ServiceFailureException(crate::error::ServiceFailureException), + SsmlMarksNotSupportedForTextTypeException( + crate::error::SsmlMarksNotSupportedForTextTypeException, + ), + SynthesisTaskNotFoundException(crate::error::SynthesisTaskNotFoundException), + TextLengthExceededException(crate::error::TextLengthExceededException), + UnsupportedPlsAlphabetException(crate::error::UnsupportedPlsAlphabetException), + UnsupportedPlsLanguageException(crate::error::UnsupportedPlsLanguageException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::EngineNotSupportedError(inner) => inner.fmt(f), - Error::InvalidLexiconError(inner) => inner.fmt(f), - Error::InvalidNextTokenError(inner) => inner.fmt(f), - Error::InvalidS3BucketError(inner) => inner.fmt(f), - Error::InvalidS3KeyError(inner) => inner.fmt(f), - Error::InvalidSampleRateError(inner) => inner.fmt(f), - Error::InvalidSnsTopicArnError(inner) => inner.fmt(f), - Error::InvalidSsmlError(inner) => inner.fmt(f), - Error::InvalidTaskIdError(inner) => inner.fmt(f), - Error::LanguageNotSupportedError(inner) => inner.fmt(f), - Error::LexiconNotFoundError(inner) => inner.fmt(f), - Error::LexiconSizeExceededError(inner) => inner.fmt(f), - Error::MarksNotSupportedForFormatError(inner) => inner.fmt(f), - Error::MaxLexemeLengthExceededError(inner) => inner.fmt(f), - Error::MaxLexiconsNumberExceededError(inner) => inner.fmt(f), - Error::ServiceFailureError(inner) => inner.fmt(f), - Error::SsmlMarksNotSupportedForTextTypeError(inner) => inner.fmt(f), - Error::SynthesisTaskNotFoundError(inner) => inner.fmt(f), - Error::TextLengthExceededError(inner) => inner.fmt(f), - Error::UnsupportedPlsAlphabetError(inner) => inner.fmt(f), - Error::UnsupportedPlsLanguageError(inner) => inner.fmt(f), + Error::EngineNotSupportedException(inner) => inner.fmt(f), + Error::InvalidLexiconException(inner) => inner.fmt(f), + Error::InvalidNextTokenException(inner) => inner.fmt(f), + Error::InvalidS3BucketException(inner) => inner.fmt(f), + Error::InvalidS3KeyException(inner) => inner.fmt(f), + Error::InvalidSampleRateException(inner) => inner.fmt(f), + Error::InvalidSnsTopicArnException(inner) => inner.fmt(f), + Error::InvalidSsmlException(inner) => inner.fmt(f), + Error::InvalidTaskIdException(inner) => inner.fmt(f), + Error::LanguageNotSupportedException(inner) => inner.fmt(f), + Error::LexiconNotFoundException(inner) => inner.fmt(f), + Error::LexiconSizeExceededException(inner) => inner.fmt(f), + Error::MarksNotSupportedForFormatException(inner) => inner.fmt(f), + Error::MaxLexemeLengthExceededException(inner) => inner.fmt(f), + Error::MaxLexiconsNumberExceededException(inner) => inner.fmt(f), + Error::ServiceFailureException(inner) => inner.fmt(f), + Error::SsmlMarksNotSupportedForTextTypeException(inner) => inner.fmt(f), + Error::SynthesisTaskNotFoundException(inner) => inner.fmt(f), + Error::TextLengthExceededException(inner) => inner.fmt(f), + Error::UnsupportedPlsAlphabetException(inner) => inner.fmt(f), + Error::UnsupportedPlsLanguageException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -57,11 +59,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLexiconErrorKind::LexiconNotFoundError(inner) => { - Error::LexiconNotFoundError(inner) + crate::error::DeleteLexiconErrorKind::LexiconNotFoundException(inner) => { + Error::LexiconNotFoundException(inner) } - crate::error::DeleteLexiconErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DeleteLexiconErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DeleteLexiconErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -73,11 +75,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeVoicesErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) + crate::error::DescribeVoicesErrorKind::InvalidNextTokenException(inner) => { + Error::InvalidNextTokenException(inner) } - crate::error::DescribeVoicesErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::DescribeVoicesErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::DescribeVoicesErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -89,11 +91,11 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetLexiconErrorKind::LexiconNotFoundError(inner) => { - Error::LexiconNotFoundError(inner) + crate::error::GetLexiconErrorKind::LexiconNotFoundException(inner) => { + Error::LexiconNotFoundException(inner) } - crate::error::GetLexiconErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetLexiconErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::GetLexiconErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -105,15 +107,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSpeechSynthesisTaskErrorKind::InvalidTaskIdError(inner) => { - Error::InvalidTaskIdError(inner) + crate::error::GetSpeechSynthesisTaskErrorKind::InvalidTaskIdException(inner) => { + Error::InvalidTaskIdException(inner) } - crate::error::GetSpeechSynthesisTaskErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::GetSpeechSynthesisTaskErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundError( + crate::error::GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundException( inner, - ) => Error::SynthesisTaskNotFoundError(inner), + ) => Error::SynthesisTaskNotFoundException(inner), crate::error::GetSpeechSynthesisTaskErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -126,11 +128,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListLexiconsErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) + crate::error::ListLexiconsErrorKind::InvalidNextTokenException(inner) => { + Error::InvalidNextTokenException(inner) } - crate::error::ListLexiconsErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListLexiconsErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListLexiconsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -144,11 +146,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSpeechSynthesisTasksErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) - } - crate::error::ListSpeechSynthesisTasksErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::ListSpeechSynthesisTasksErrorKind::InvalidNextTokenException( + inner, + ) => Error::InvalidNextTokenException(inner), + crate::error::ListSpeechSynthesisTasksErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } crate::error::ListSpeechSynthesisTasksErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -162,26 +164,26 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutLexiconErrorKind::InvalidLexiconError(inner) => { - Error::InvalidLexiconError(inner) + crate::error::PutLexiconErrorKind::InvalidLexiconException(inner) => { + Error::InvalidLexiconException(inner) } - crate::error::PutLexiconErrorKind::LexiconSizeExceededError(inner) => { - Error::LexiconSizeExceededError(inner) + crate::error::PutLexiconErrorKind::LexiconSizeExceededException(inner) => { + Error::LexiconSizeExceededException(inner) } - crate::error::PutLexiconErrorKind::MaxLexemeLengthExceededError(inner) => { - Error::MaxLexemeLengthExceededError(inner) + crate::error::PutLexiconErrorKind::MaxLexemeLengthExceededException(inner) => { + Error::MaxLexemeLengthExceededException(inner) } - crate::error::PutLexiconErrorKind::MaxLexiconsNumberExceededError(inner) => { - Error::MaxLexiconsNumberExceededError(inner) + crate::error::PutLexiconErrorKind::MaxLexiconsNumberExceededException(inner) => { + Error::MaxLexiconsNumberExceededException(inner) } - crate::error::PutLexiconErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) + crate::error::PutLexiconErrorKind::ServiceFailureException(inner) => { + Error::ServiceFailureException(inner) } - crate::error::PutLexiconErrorKind::UnsupportedPlsAlphabetError(inner) => { - Error::UnsupportedPlsAlphabetError(inner) + crate::error::PutLexiconErrorKind::UnsupportedPlsAlphabetException(inner) => { + Error::UnsupportedPlsAlphabetException(inner) } - crate::error::PutLexiconErrorKind::UnsupportedPlsLanguageError(inner) => { - Error::UnsupportedPlsLanguageError(inner) + crate::error::PutLexiconErrorKind::UnsupportedPlsLanguageException(inner) => { + Error::UnsupportedPlsLanguageException(inner) } crate::error::PutLexiconErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -195,18 +197,18 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StartSpeechSynthesisTaskErrorKind::EngineNotSupportedError(inner) => Error::EngineNotSupportedError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3BucketError(inner) => Error::InvalidS3BucketError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3KeyError(inner) => Error::InvalidS3KeyError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSampleRateError(inner) => Error::InvalidSampleRateError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnError(inner) => Error::InvalidSnsTopicArnError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSsmlError(inner) => Error::InvalidSsmlError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedError(inner) => Error::LanguageNotSupportedError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::LexiconNotFoundError(inner) => Error::LexiconNotFoundError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatError(inner) => Error::MarksNotSupportedForFormatError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::ServiceFailureError(inner) => Error::ServiceFailureError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeError(inner) => Error::SsmlMarksNotSupportedForTextTypeError(inner), - crate::error::StartSpeechSynthesisTaskErrorKind::TextLengthExceededError(inner) => Error::TextLengthExceededError(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::EngineNotSupportedException(inner) => Error::EngineNotSupportedException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3BucketException(inner) => Error::InvalidS3BucketException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3KeyException(inner) => Error::InvalidS3KeyException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSampleRateException(inner) => Error::InvalidSampleRateException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnException(inner) => Error::InvalidSnsTopicArnException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSsmlException(inner) => Error::InvalidSsmlException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedException(inner) => Error::LanguageNotSupportedException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::LexiconNotFoundException(inner) => Error::LexiconNotFoundException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatException(inner) => Error::MarksNotSupportedForFormatException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeException(inner) => Error::SsmlMarksNotSupportedForTextTypeException(inner), + crate::error::StartSpeechSynthesisTaskErrorKind::TextLengthExceededException(inner) => Error::TextLengthExceededException(inner), crate::error::StartSpeechSynthesisTaskErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -216,38 +218,18 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SynthesizeSpeechErrorKind::EngineNotSupportedError(inner) => { - Error::EngineNotSupportedError(inner) - } - crate::error::SynthesizeSpeechErrorKind::InvalidSampleRateError(inner) => { - Error::InvalidSampleRateError(inner) - } - crate::error::SynthesizeSpeechErrorKind::InvalidSsmlError(inner) => { - Error::InvalidSsmlError(inner) - } - crate::error::SynthesizeSpeechErrorKind::LanguageNotSupportedError(inner) => { - Error::LanguageNotSupportedError(inner) - } - crate::error::SynthesizeSpeechErrorKind::LexiconNotFoundError(inner) => { - Error::LexiconNotFoundError(inner) - } - crate::error::SynthesizeSpeechErrorKind::MarksNotSupportedForFormatError(inner) => { - Error::MarksNotSupportedForFormatError(inner) - } - crate::error::SynthesizeSpeechErrorKind::ServiceFailureError(inner) => { - Error::ServiceFailureError(inner) - } - crate::error::SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeError( - inner, - ) => Error::SsmlMarksNotSupportedForTextTypeError(inner), - crate::error::SynthesizeSpeechErrorKind::TextLengthExceededError(inner) => { - Error::TextLengthExceededError(inner) - } - crate::error::SynthesizeSpeechErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::SynthesizeSpeechErrorKind::EngineNotSupportedException(inner) => Error::EngineNotSupportedException(inner), + crate::error::SynthesizeSpeechErrorKind::InvalidSampleRateException(inner) => Error::InvalidSampleRateException(inner), + crate::error::SynthesizeSpeechErrorKind::InvalidSsmlException(inner) => Error::InvalidSsmlException(inner), + crate::error::SynthesizeSpeechErrorKind::LanguageNotSupportedException(inner) => Error::LanguageNotSupportedException(inner), + crate::error::SynthesizeSpeechErrorKind::LexiconNotFoundException(inner) => Error::LexiconNotFoundException(inner), + crate::error::SynthesizeSpeechErrorKind::MarksNotSupportedForFormatException(inner) => Error::MarksNotSupportedForFormatException(inner), + crate::error::SynthesizeSpeechErrorKind::ServiceFailureException(inner) => Error::ServiceFailureException(inner), + crate::error::SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeException(inner) => Error::SsmlMarksNotSupportedForTextTypeException(inner), + crate::error::SynthesizeSpeechErrorKind::TextLengthExceededException(inner) => Error::TextLengthExceededException(inner), + crate::error::SynthesizeSpeechErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } diff --git a/sdk/polly/src/http_serde.rs b/sdk/polly/src/http_serde.rs index c7d26d9b269c..e41089c3a744 100644 --- a/sdk/polly/src/http_serde.rs +++ b/sdk/polly/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_payload_synthesize_speech_audio_stream( +pub fn deser_payload_synthesize_speech_synthesize_speech_output_audio_stream( body: &mut smithy_http::body::SdkBody, ) -> std::result::Result { @@ -8,7 +8,7 @@ pub fn deser_payload_synthesize_speech_audio_stream( Ok(smithy_http::byte_stream::ByteStream::new(body)) } -pub fn deser_header_synthesize_speech_content_type( +pub fn deser_header_synthesize_speech_synthesize_speech_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -16,7 +16,7 @@ pub fn deser_header_synthesize_speech_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_synthesize_speech_request_characters( +pub fn deser_header_synthesize_speech_synthesize_speech_output_request_characters( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amzn-RequestCharacters").iter(); diff --git a/sdk/polly/src/input.rs b/sdk/polly/src/input.rs index ab6d224299c0..058861f3d4b3 100644 --- a/sdk/polly/src/input.rs +++ b/sdk/polly/src/input.rs @@ -23,9 +23,7 @@ pub mod delete_lexicon_input { self, ) -> std::result::Result { - Ok(crate::input::DeleteLexiconInput { - name: self.name.unwrap_or_default(), - }) + Ok(crate::input::DeleteLexiconInput { name: self.name }) } } } @@ -89,13 +87,26 @@ impl DeleteLexiconInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/lexicons/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/lexicons/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -103,7 +114,7 @@ impl DeleteLexiconInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -269,8 +280,9 @@ impl DescribeVoicesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/voices").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/voices").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -296,7 +308,7 @@ impl DescribeVoicesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -346,9 +358,7 @@ pub mod get_lexicon_input { self, ) -> std::result::Result { - Ok(crate::input::GetLexiconInput { - name: self.name.unwrap_or_default(), - }) + Ok(crate::input::GetLexiconInput { name: self.name }) } } } @@ -409,13 +419,26 @@ impl GetLexiconInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/lexicons/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/lexicons/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -423,7 +446,7 @@ impl GetLexiconInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -475,7 +498,7 @@ pub mod get_speech_synthesis_task_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetSpeechSynthesisTaskInput { - task_id: self.task_id.unwrap_or_default(), + task_id: self.task_id, }) } } @@ -540,13 +563,27 @@ impl GetSpeechSynthesisTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/synthesisTasks/{TaskId}", - TaskId = smithy_http::label::fmt_string(&self.task_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let task_id = { + let input = &self.task_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "task_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "task_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/synthesisTasks/{TaskId}", TaskId = task_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -554,7 +591,7 @@ impl GetSpeechSynthesisTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -670,8 +707,9 @@ impl ListLexiconsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/lexicons").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/lexicons").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -685,7 +723,7 @@ impl ListLexiconsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -827,8 +865,9 @@ impl ListSpeechSynthesisTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/synthesisTasks").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/synthesisTasks").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -848,7 +887,7 @@ impl ListSpeechSynthesisTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -910,7 +949,7 @@ pub mod put_lexicon_input { ) -> std::result::Result { Ok(crate::input::PutLexiconInput { - name: self.name.unwrap_or_default(), + name: self.name, content: self.content, }) } @@ -976,13 +1015,26 @@ impl PutLexiconInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v1/lexicons/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v1/lexicons/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -990,7 +1042,7 @@ impl PutLexiconInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1272,8 +1324,9 @@ impl StartSpeechSynthesisTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/synthesisTasks").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/synthesisTasks").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1281,7 +1334,7 @@ impl StartSpeechSynthesisTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1537,8 +1590,9 @@ impl SynthesizeSpeechInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v1/speech").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v1/speech").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1546,7 +1600,7 @@ impl SynthesizeSpeechInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1716,7 +1770,7 @@ impl std::fmt::Debug for StartSpeechSynthesisTaskInput { pub struct PutLexiconInput { ///

    Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. /// That is, the name is a case-sensitive alphanumeric string up to 20 characters long.

    - pub name: std::string::String, + pub name: std::option::Option, ///

    Content of the PLS lexicon as string data.

    pub content: std::option::Option, } @@ -1769,7 +1823,7 @@ impl std::fmt::Debug for ListLexiconsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetSpeechSynthesisTaskInput { ///

    The Amazon Polly generated identifier for a speech synthesis task.

    - pub task_id: std::string::String, + pub task_id: std::option::Option, } impl std::fmt::Debug for GetSpeechSynthesisTaskInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1783,7 +1837,7 @@ impl std::fmt::Debug for GetSpeechSynthesisTaskInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetLexiconInput { ///

    Name of the lexicon.

    - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for GetLexiconInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1831,7 +1885,7 @@ impl std::fmt::Debug for DescribeVoicesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteLexiconInput { ///

    The name of the lexicon to delete. Must be an existing lexicon in the region.

    - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DeleteLexiconInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/polly/src/instant_epoch.rs b/sdk/polly/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/polly/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/polly/src/json_deser.rs b/sdk/polly/src/json_deser.rs index 1ee639cf3b86..580e40ca9c1f 100644 --- a/sdk/polly/src/json_deser.rs +++ b/sdk/polly/src/json_deser.rs @@ -1,461 +1,1851 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn lexicon_not_found_exception( +pub fn deser_structure_lexicon_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::lexicon_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LexiconNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::lexicon_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_failure_exception( +pub fn deser_structure_service_failure_exceptionjson_err( input: &[u8], - mut builder: crate::error::service_failure_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceFailureError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::service_failure_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_next_token_exception( +pub fn deser_structure_invalid_next_token_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_next_token_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidNextTokenError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_next_token_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_voices_deser_operation( +pub fn deser_operation_describe_voices( input: &[u8], mut builder: crate::output::describe_voices_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeVoicesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_voices(parsed_body.voices); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Voices" => { + builder = + builder.set_voices(crate::json_deser::deser_list_voice_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_lexicon_deser_operation( +pub fn deser_operation_get_lexicon( input: &[u8], mut builder: crate::output::get_lexicon_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetLexiconOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_lexicon(parsed_body.lexicon); - builder = builder.set_lexicon_attributes(parsed_body.lexicon_attributes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Lexicon" => { + builder = builder + .set_lexicon(crate::json_deser::deser_structure_lexicon(tokens)?); + } + "LexiconAttributes" => { + builder = builder.set_lexicon_attributes( + crate::json_deser::deser_structure_lexicon_attributes(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_task_id_exception( +pub fn deser_structure_invalid_task_id_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_task_id_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidTaskIdError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_task_id_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn synthesis_task_not_found_exception( +pub fn deser_structure_synthesis_task_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::synthesis_task_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::SynthesisTaskNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::synthesis_task_not_found_exception::Builder, +) -> Result< + crate::error::synthesis_task_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_speech_synthesis_task_deser_operation( +pub fn deser_operation_get_speech_synthesis_task( input: &[u8], mut builder: crate::output::get_speech_synthesis_task_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetSpeechSynthesisTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_synthesis_task(parsed_body.synthesis_task); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SynthesisTask" => { + builder = builder.set_synthesis_task( + crate::json_deser::deser_structure_synthesis_task(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_lexicons_deser_operation( +pub fn deser_operation_list_lexicons( input: &[u8], mut builder: crate::output::list_lexicons_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListLexiconsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_lexicons(parsed_body.lexicons); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Lexicons" => { + builder = builder.set_lexicons( + crate::json_deser::deser_list_lexicon_description_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_speech_synthesis_tasks_deser_operation( +pub fn deser_operation_list_speech_synthesis_tasks( input: &[u8], mut builder: crate::output::list_speech_synthesis_tasks_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_speech_synthesis_tasks_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListSpeechSynthesisTasksOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_synthesis_tasks(parsed_body.synthesis_tasks); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SynthesisTasks" => { + builder = builder.set_synthesis_tasks( + crate::json_deser::deser_list_synthesis_tasks(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_lexicon_exception( +pub fn deser_structure_invalid_lexicon_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_lexicon_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidLexiconError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_lexicon_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn lexicon_size_exceeded_exception( +pub fn deser_structure_lexicon_size_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::lexicon_size_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LexiconSizeExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::lexicon_size_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn max_lexeme_length_exceeded_exception( +pub fn deser_structure_max_lexeme_length_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::max_lexeme_length_exceeded_error::Builder, -) -> std::result::Result -{ - let parsed_body: crate::error::MaxLexemeLengthExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::max_lexeme_length_exceeded_exception::Builder, +) -> Result< + crate::error::max_lexeme_length_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn max_lexicons_number_exceeded_exception( +pub fn deser_structure_max_lexicons_number_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::max_lexicons_number_exceeded_error::Builder, -) -> std::result::Result -{ - let parsed_body: crate::error::MaxLexiconsNumberExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::max_lexicons_number_exceeded_exception::Builder, +) -> Result< + crate::error::max_lexicons_number_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unsupported_pls_alphabet_exception( +pub fn deser_structure_unsupported_pls_alphabet_exceptionjson_err( input: &[u8], - mut builder: crate::error::unsupported_pls_alphabet_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnsupportedPlsAlphabetError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::unsupported_pls_alphabet_exception::Builder, +) -> Result< + crate::error::unsupported_pls_alphabet_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unsupported_pls_language_exception( +pub fn deser_structure_unsupported_pls_language_exceptionjson_err( input: &[u8], - mut builder: crate::error::unsupported_pls_language_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::UnsupportedPlsLanguageError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::unsupported_pls_language_exception::Builder, +) -> Result< + crate::error::unsupported_pls_language_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn engine_not_supported_exception( +pub fn deser_structure_engine_not_supported_exceptionjson_err( input: &[u8], - mut builder: crate::error::engine_not_supported_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::EngineNotSupportedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::engine_not_supported_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_s3_bucket_exception( +pub fn deser_structure_invalid_s3_bucket_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_s3_bucket_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidS3BucketError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_s3_bucket_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_s3_key_exception( +pub fn deser_structure_invalid_s3_key_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_s3_key_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidS3KeyError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_s3_key_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_sample_rate_exception( +pub fn deser_structure_invalid_sample_rate_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_sample_rate_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidSampleRateError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_sample_rate_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_sns_topic_arn_exception( +pub fn deser_structure_invalid_sns_topic_arn_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_sns_topic_arn_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidSnsTopicArnError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_sns_topic_arn_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_ssml_exception( +pub fn deser_structure_invalid_ssml_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_ssml_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidSsmlError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_ssml_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn language_not_supported_exception( +pub fn deser_structure_language_not_supported_exceptionjson_err( input: &[u8], - mut builder: crate::error::language_not_supported_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LanguageNotSupportedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::language_not_supported_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn marks_not_supported_for_format_exception( +pub fn deser_structure_marks_not_supported_for_format_exceptionjson_err( input: &[u8], - mut builder: crate::error::marks_not_supported_for_format_error::Builder, -) -> std::result::Result< - crate::error::marks_not_supported_for_format_error::Builder, - serde_json::Error, + mut builder: crate::error::marks_not_supported_for_format_exception::Builder, +) -> Result< + crate::error::marks_not_supported_for_format_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::MarksNotSupportedForFormatError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn ssml_marks_not_supported_for_text_type_exception( +pub fn deser_structure_ssml_marks_not_supported_for_text_type_exceptionjson_err( input: &[u8], - mut builder: crate::error::ssml_marks_not_supported_for_text_type_error::Builder, -) -> std::result::Result< - crate::error::ssml_marks_not_supported_for_text_type_error::Builder, - serde_json::Error, + mut builder: crate::error::ssml_marks_not_supported_for_text_type_exception::Builder, +) -> Result< + crate::error::ssml_marks_not_supported_for_text_type_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::SsmlMarksNotSupportedForTextTypeError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn text_length_exceeded_exception( +pub fn deser_structure_text_length_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::text_length_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TextLengthExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::text_length_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_speech_synthesis_task_deser_operation( +pub fn deser_operation_start_speech_synthesis_task( input: &[u8], mut builder: crate::output::start_speech_synthesis_task_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::start_speech_synthesis_task_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::StartSpeechSynthesisTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_synthesis_task(parsed_body.synthesis_task); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SynthesisTask" => { + builder = builder.set_synthesis_task( + crate::json_deser::deser_structure_synthesis_task(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_voice_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_voice(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_lexicon<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Lexicon::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Content" => { + builder = builder.set_content( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_lexicon_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LexiconAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Alphabet" => { + builder = builder.set_alphabet( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LanguageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LanguageCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastModified" => { + builder = builder.set_last_modified( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LexiconArn" => { + builder = builder.set_lexicon_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LexemesCount" => { + builder = builder.set_lexemes_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_synthesis_task<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SynthesisTask::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Engine" => { + builder = builder.set_engine( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Engine::from(u.as_ref())) + }) + .transpose()?, + ); + } + "TaskId" => { + builder = builder.set_task_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskStatus" => { + builder = builder.set_task_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TaskStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "TaskStatusReason" => { + builder = builder.set_task_status_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputUri" => { + builder = builder.set_output_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RequestCharacters" => { + builder = builder.set_request_characters( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SnsTopicArn" => { + builder = builder.set_sns_topic_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LexiconNames" => { + builder = builder.set_lexicon_names( + crate::json_deser::deser_list_lexicon_name_list(tokens)?, + ); + } + "OutputFormat" => { + builder = builder.set_output_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OutputFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SampleRate" => { + builder = builder.set_sample_rate( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SpeechMarkTypes" => { + builder = builder.set_speech_mark_types( + crate::json_deser::deser_list_speech_mark_type_list(tokens)?, + ); + } + "TextType" => { + builder = builder.set_text_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TextType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "VoiceId" => { + builder = builder.set_voice_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VoiceId::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LanguageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LanguageCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_lexicon_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_lexicon_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_synthesis_tasks<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_synthesis_task(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_voice<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Voice::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Gender" => { + builder = builder.set_gender( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Gender::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::VoiceId::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LanguageCode" => { + builder = builder.set_language_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LanguageCode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LanguageName" => { + builder = builder.set_language_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdditionalLanguageCodes" => { + builder = builder.set_additional_language_codes( + crate::json_deser::deser_list_language_code_list(tokens)?, + ); + } + "SupportedEngines" => { + builder = builder.set_supported_engines( + crate::json_deser::deser_list_engine_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_lexicon_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_speech_mark_type_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SpeechMarkType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_lexicon_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LexiconDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_structure_lexicon_attributes(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_language_code_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LanguageCode::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_engine_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Engine::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/polly/src/json_errors.rs b/sdk/polly/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/polly/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/polly/src/lib.rs b/sdk/polly/src/lib.rs index 042aa0b4e438..d1ef20e43738 100644 --- a/sdk/polly/src/lib.rs +++ b/sdk/polly/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    Amazon Polly is a web service that makes it easy to synthesize speech from //! text.

    //!

    The Amazon Polly service provides API operations for synthesizing high-quality speech @@ -16,7 +17,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -24,16 +24,14 @@ pub mod error; mod error_meta; mod http_serde; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/polly/src/model.rs b/sdk/polly/src/model.rs index fec8524e96c8..da0cfff49d61 100644 --- a/sdk/polly/src/model.rs +++ b/sdk/polly/src/model.rs @@ -149,7 +149,7 @@ impl std::convert::From<&str> for VoiceId { impl std::str::FromStr for VoiceId { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VoiceId::from(s)) } } @@ -228,15 +228,6 @@ impl AsRef for VoiceId { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VoiceId { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -266,7 +257,7 @@ impl std::convert::From<&str> for TextType { impl std::str::FromStr for TextType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TextType::from(s)) } } @@ -284,15 +275,6 @@ impl AsRef for TextType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TextType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -326,7 +308,7 @@ impl std::convert::From<&str> for SpeechMarkType { impl std::str::FromStr for SpeechMarkType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SpeechMarkType::from(s)) } } @@ -346,15 +328,6 @@ impl AsRef for SpeechMarkType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SpeechMarkType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -388,7 +361,7 @@ impl std::convert::From<&str> for OutputFormat { impl std::str::FromStr for OutputFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OutputFormat::from(s)) } } @@ -408,15 +381,6 @@ impl AsRef for OutputFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OutputFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -500,7 +464,7 @@ impl std::convert::From<&str> for LanguageCode { impl std::str::FromStr for LanguageCode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LanguageCode::from(s)) } } @@ -545,15 +509,6 @@ impl AsRef for LanguageCode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LanguageCode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -583,7 +538,7 @@ impl std::convert::From<&str> for Engine { impl std::str::FromStr for Engine { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Engine::from(s)) } } @@ -601,90 +556,50 @@ impl AsRef for Engine { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Engine { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    SynthesisTask object that provides information about a speech synthesis task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SynthesisTask { ///

    Specifies the engine (standard or neural) for Amazon Polly to /// use when processing input text for speech synthesis. Using a voice that is not supported for /// the engine selected will result in an error.

    - #[serde(rename = "Engine")] - #[serde(default)] pub engine: std::option::Option, ///

    The Amazon Polly generated identifier for a speech synthesis task.

    - #[serde(rename = "TaskId")] - #[serde(default)] pub task_id: std::option::Option, ///

    Current status of the individual speech synthesis task.

    - #[serde(rename = "TaskStatus")] - #[serde(default)] pub task_status: std::option::Option, ///

    Reason for the current status of a specific speech synthesis task, including errors if the /// task has failed.

    - #[serde(rename = "TaskStatusReason")] - #[serde(default)] pub task_status_reason: std::option::Option, ///

    Pathway for the output speech file.

    - #[serde(rename = "OutputUri")] - #[serde(default)] pub output_uri: std::option::Option, ///

    Timestamp for the time the synthesis task was started.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Number of billable characters synthesized.

    - #[serde(rename = "RequestCharacters")] - #[serde(default)] pub request_characters: i32, ///

    ARN for the SNS topic optionally used for providing status notification for a speech /// synthesis task.

    - #[serde(rename = "SnsTopicArn")] - #[serde(default)] pub sns_topic_arn: std::option::Option, ///

    List of one or more pronunciation lexicon names you want the service to apply during /// synthesis. Lexicons are applied only if the language of the lexicon is the same as the /// language of the voice.

    - #[serde(rename = "LexiconNames")] - #[serde(default)] pub lexicon_names: std::option::Option>, ///

    The format in which the returned output will be encoded. For audio stream, this will be /// mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

    - #[serde(rename = "OutputFormat")] - #[serde(default)] pub output_format: std::option::Option, ///

    The audio frequency specified in Hz.

    ///

    The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The /// default value for standard voices is "22050". The default value for neural voices is /// "24000".

    ///

    Valid values for pcm are "8000" and "16000" The default value is "16000".

    - #[serde(rename = "SampleRate")] - #[serde(default)] pub sample_rate: std::option::Option, ///

    The type of speech marks returned for the input text.

    - #[serde(rename = "SpeechMarkTypes")] - #[serde(default)] pub speech_mark_types: std::option::Option>, ///

    Specifies whether the input text is plain text or SSML. The default value is plain text. ///

    - #[serde(rename = "TextType")] - #[serde(default)] pub text_type: std::option::Option, ///

    Voice ID to use for the synthesis.

    - #[serde(rename = "VoiceId")] - #[serde(default)] pub voice_id: std::option::Option, ///

    Optional language code for a synthesis task. This is only necessary if using a bilingual /// voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).

    @@ -692,8 +607,6 @@ pub struct SynthesisTask { /// default language of the bilingual voice. The default language for any voice is the one /// returned by the DescribeVoices operation for the LanguageCode parameter. For example, /// if no language code is specified, Aditi will use Indian English rather than Hindi.

    - #[serde(rename = "LanguageCode")] - #[serde(default)] pub language_code: std::option::Option, } impl std::fmt::Debug for SynthesisTask { @@ -978,7 +891,7 @@ impl std::convert::From<&str> for TaskStatus { impl std::str::FromStr for TaskStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaskStatus::from(s)) } } @@ -998,27 +911,14 @@ impl AsRef for TaskStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaskStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the content of the lexicon.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LexiconDescription { ///

    Name of the lexicon.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    Provides lexicon metadata.

    - #[serde(rename = "Attributes")] - #[serde(default)] pub attributes: std::option::Option, } impl std::fmt::Debug for LexiconDescription { @@ -1080,36 +980,21 @@ impl LexiconDescription { /// and so on. For more information, see Managing /// Lexicons.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LexiconAttributes { ///

    Phonetic alphabet used in the lexicon. Valid values are ipa and /// x-sampa.

    - #[serde(rename = "Alphabet")] - #[serde(default)] pub alphabet: std::option::Option, ///

    Language code that the lexicon applies to. A lexicon with a language code such as "en" /// would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.

    - #[serde(rename = "LanguageCode")] - #[serde(default)] pub language_code: std::option::Option, ///

    Date lexicon was last modified (a timestamp value).

    - #[serde(rename = "LastModified")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified: std::option::Option, ///

    Amazon Resource Name (ARN) of the lexicon.

    - #[serde(rename = "LexiconArn")] - #[serde(default)] pub lexicon_arn: std::option::Option, ///

    Number of lexemes in the lexicon.

    - #[serde(rename = "LexemesCount")] - #[serde(default)] pub lexemes_count: i32, ///

    Total size of the lexicon, in characters.

    - #[serde(rename = "Size")] - #[serde(default)] pub size: i32, } impl std::fmt::Debug for LexiconAttributes { @@ -1224,16 +1109,12 @@ impl LexiconAttributes { /// Pronunciation Lexicon /// Specification (PLS) Version 1.0.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Lexicon { ///

    Lexicon content in string format. The content of a lexicon must be in PLS /// format.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option, ///

    Name of the lexicon.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for Lexicon { @@ -1291,42 +1172,28 @@ impl Lexicon { ///

    Description of the voice.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Voice { ///

    Gender of the voice.

    - #[serde(rename = "Gender")] - #[serde(default)] pub gender: std::option::Option, ///

    Amazon Polly assigned voice ID. This is the ID that you specify when calling the /// SynthesizeSpeech operation.

    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    Language code of the voice.

    - #[serde(rename = "LanguageCode")] - #[serde(default)] pub language_code: std::option::Option, ///

    Human readable name of the language in English.

    - #[serde(rename = "LanguageName")] - #[serde(default)] pub language_name: std::option::Option, ///

    Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable /// voice name that you might display in your application.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    Additional codes for languages available for the specified voice in addition to its /// default language.

    ///

    For example, the default language for Aditi is Indian English (en-IN) because it was first /// used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, /// this parameter would show the code hi-IN.

    - #[serde(rename = "AdditionalLanguageCodes")] - #[serde(default)] pub additional_language_codes: std::option::Option>, ///

    Specifies which engines (standard or neural) that are supported /// by a given voice.

    - #[serde(rename = "SupportedEngines")] - #[serde(default)] pub supported_engines: std::option::Option>, } impl std::fmt::Debug for Voice { @@ -1489,7 +1356,7 @@ impl std::convert::From<&str> for Gender { impl std::str::FromStr for Gender { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Gender::from(s)) } } @@ -1507,12 +1374,3 @@ impl AsRef for Gender { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Gender { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/polly/src/operation_deser.rs b/sdk/polly/src/operation_deser.rs index f9cfe1d284c1..9e2d5aea7646 100644 --- a/sdk/polly/src/operation_deser.rs +++ b/sdk/polly/src/operation_deser.rs @@ -12,11 +12,11 @@ pub fn parse_delete_lexicon_error( Err(match error_code { "LexiconNotFoundException" => crate::error::DeleteLexiconError { meta: generic, - kind: crate::error::DeleteLexiconErrorKind::LexiconNotFoundError({ + kind: crate::error::DeleteLexiconErrorKind::LexiconNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::lexicon_not_found_error::Builder::default(); + let mut output = crate::error::lexicon_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::lexicon_not_found_exception( + output = crate::json_deser::deser_structure_lexicon_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -26,13 +26,15 @@ pub fn parse_delete_lexicon_error( }, "ServiceFailureException" => crate::error::DeleteLexiconError { meta: generic, - kind: crate::error::DeleteLexiconErrorKind::ServiceFailureError({ + kind: crate::error::DeleteLexiconErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteLexiconError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLexiconError::unhandled)?; output.build() }), }, @@ -65,11 +67,11 @@ pub fn parse_describe_voices_error( Err(match error_code { "InvalidNextTokenException" => crate::error::DescribeVoicesError { meta: generic, - kind: crate::error::DescribeVoicesErrorKind::InvalidNextTokenError({ + kind: crate::error::DescribeVoicesErrorKind::InvalidNextTokenException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_next_token_error::Builder::default(); + let mut output = crate::error::invalid_next_token_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_next_token_exception( + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( response.body().as_ref(), output, ) @@ -79,13 +81,15 @@ pub fn parse_describe_voices_error( }, "ServiceFailureException" => crate::error::DescribeVoicesError { meta: generic, - kind: crate::error::DescribeVoicesErrorKind::ServiceFailureError({ + kind: crate::error::DescribeVoicesErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeVoicesError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeVoicesError::unhandled)?; output.build() }), }, @@ -102,7 +106,7 @@ pub fn parse_describe_voices_response( let mut output = crate::output::describe_voices_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_voices_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_voices(response.body().as_ref(), output) .map_err(crate::error::DescribeVoicesError::unhandled)?; output.build() }) @@ -121,11 +125,11 @@ pub fn parse_get_lexicon_error( Err(match error_code { "LexiconNotFoundException" => crate::error::GetLexiconError { meta: generic, - kind: crate::error::GetLexiconErrorKind::LexiconNotFoundError({ + kind: crate::error::GetLexiconErrorKind::LexiconNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::lexicon_not_found_error::Builder::default(); + let mut output = crate::error::lexicon_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::lexicon_not_found_exception( + output = crate::json_deser::deser_structure_lexicon_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -135,13 +139,15 @@ pub fn parse_get_lexicon_error( }, "ServiceFailureException" => crate::error::GetLexiconError { meta: generic, - kind: crate::error::GetLexiconErrorKind::ServiceFailureError({ + kind: crate::error::GetLexiconErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::GetLexiconError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetLexiconError::unhandled)?; output.build() }), }, @@ -157,7 +163,7 @@ pub fn parse_get_lexicon_response( #[allow(unused_mut)] let mut output = crate::output::get_lexicon_output::Builder::default(); let _ = response; - output = crate::json_deser::get_lexicon_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_lexicon(response.body().as_ref(), output) .map_err(crate::error::GetLexiconError::unhandled)?; output.build() }) @@ -183,35 +189,25 @@ pub fn parse_get_speech_synthesis_task_error( Err(match error_code { "InvalidTaskIdException" => crate::error::GetSpeechSynthesisTaskError { meta: generic, - kind: crate::error::GetSpeechSynthesisTaskErrorKind::InvalidTaskIdError({ + kind: crate::error::GetSpeechSynthesisTaskErrorKind::InvalidTaskIdException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_task_id_error::Builder::default(); + let mut output = crate::error::invalid_task_id_exception::Builder::default(); let _ = response; - output = - crate::json_deser::invalid_task_id_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_task_id_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSpeechSynthesisTaskError::unhandled)?; output.build() }), }, "ServiceFailureException" => crate::error::GetSpeechSynthesisTaskError { meta: generic, - kind: crate::error::GetSpeechSynthesisTaskErrorKind::ServiceFailureError({ - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); - let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSpeechSynthesisTaskError::unhandled)?; - output.build() - }), - }, - "SynthesisTaskNotFoundException" => crate::error::GetSpeechSynthesisTaskError { - meta: generic, - kind: crate::error::GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundError({ + kind: crate::error::GetSpeechSynthesisTaskErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::synthesis_task_not_found_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::json_deser::synthesis_task_not_found_exception( + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( response.body().as_ref(), output, ) @@ -219,6 +215,21 @@ pub fn parse_get_speech_synthesis_task_error( output.build() }), }, + "SynthesisTaskNotFoundException" => { + crate::error::GetSpeechSynthesisTaskError { + meta: generic, + kind: crate::error::GetSpeechSynthesisTaskErrorKind::SynthesisTaskNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::synthesis_task_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_synthesis_task_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetSpeechSynthesisTaskError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::GetSpeechSynthesisTaskError::generic(generic), }) } @@ -234,7 +245,7 @@ pub fn parse_get_speech_synthesis_task_response( #[allow(unused_mut)] let mut output = crate::output::get_speech_synthesis_task_output::Builder::default(); let _ = response; - output = crate::json_deser::get_speech_synthesis_task_deser_operation( + output = crate::json_deser::deser_operation_get_speech_synthesis_task( response.body().as_ref(), output, ) @@ -256,11 +267,11 @@ pub fn parse_list_lexicons_error( Err(match error_code { "InvalidNextTokenException" => crate::error::ListLexiconsError { meta: generic, - kind: crate::error::ListLexiconsErrorKind::InvalidNextTokenError({ + kind: crate::error::ListLexiconsErrorKind::InvalidNextTokenException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_next_token_error::Builder::default(); + let mut output = crate::error::invalid_next_token_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_next_token_exception( + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( response.body().as_ref(), output, ) @@ -270,13 +281,15 @@ pub fn parse_list_lexicons_error( }, "ServiceFailureException" => crate::error::ListLexiconsError { meta: generic, - kind: crate::error::ListLexiconsErrorKind::ServiceFailureError({ + kind: crate::error::ListLexiconsErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::ListLexiconsError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListLexiconsError::unhandled)?; output.build() }), }, @@ -292,7 +305,7 @@ pub fn parse_list_lexicons_response( #[allow(unused_mut)] let mut output = crate::output::list_lexicons_output::Builder::default(); let _ = response; - output = crate::json_deser::list_lexicons_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_lexicons(response.body().as_ref(), output) .map_err(crate::error::ListLexiconsError::unhandled)?; output.build() }) @@ -318,11 +331,11 @@ pub fn parse_list_speech_synthesis_tasks_error( Err(match error_code { "InvalidNextTokenException" => crate::error::ListSpeechSynthesisTasksError { meta: generic, - kind: crate::error::ListSpeechSynthesisTasksErrorKind::InvalidNextTokenError({ + kind: crate::error::ListSpeechSynthesisTasksErrorKind::InvalidNextTokenException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_next_token_error::Builder::default(); + let mut output = crate::error::invalid_next_token_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_next_token_exception( + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( response.body().as_ref(), output, ) @@ -332,13 +345,15 @@ pub fn parse_list_speech_synthesis_tasks_error( }, "ServiceFailureException" => crate::error::ListSpeechSynthesisTasksError { meta: generic, - kind: crate::error::ListSpeechSynthesisTasksErrorKind::ServiceFailureError({ + kind: crate::error::ListSpeechSynthesisTasksErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::ListSpeechSynthesisTasksError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSpeechSynthesisTasksError::unhandled)?; output.build() }), }, @@ -357,7 +372,7 @@ pub fn parse_list_speech_synthesis_tasks_response( #[allow(unused_mut)] let mut output = crate::output::list_speech_synthesis_tasks_output::Builder::default(); let _ = response; - output = crate::json_deser::list_speech_synthesis_tasks_deser_operation( + output = crate::json_deser::deser_operation_list_speech_synthesis_tasks( response.body().as_ref(), output, ) @@ -379,23 +394,11 @@ pub fn parse_put_lexicon_error( Err(match error_code { "InvalidLexiconException" => crate::error::PutLexiconError { meta: generic, - kind: crate::error::PutLexiconErrorKind::InvalidLexiconError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_lexicon_error::Builder::default(); - let _ = response; - output = - crate::json_deser::invalid_lexicon_exception(response.body().as_ref(), output) - .map_err(crate::error::PutLexiconError::unhandled)?; - output.build() - }), - }, - "LexiconSizeExceededException" => crate::error::PutLexiconError { - meta: generic, - kind: crate::error::PutLexiconErrorKind::LexiconSizeExceededError({ + kind: crate::error::PutLexiconErrorKind::InvalidLexiconException({ #[allow(unused_mut)] - let mut output = crate::error::lexicon_size_exceeded_error::Builder::default(); + let mut output = crate::error::invalid_lexicon_exception::Builder::default(); let _ = response; - output = crate::json_deser::lexicon_size_exceeded_exception( + output = crate::json_deser::deser_structure_invalid_lexicon_exceptionjson_err( response.body().as_ref(), output, ) @@ -403,68 +406,50 @@ pub fn parse_put_lexicon_error( output.build() }), }, - "MaxLexemeLengthExceededException" => crate::error::PutLexiconError { + "LexiconSizeExceededException" => crate::error::PutLexiconError { meta: generic, - kind: crate::error::PutLexiconErrorKind::MaxLexemeLengthExceededError({ + kind: crate::error::PutLexiconErrorKind::LexiconSizeExceededException({ #[allow(unused_mut)] - let mut output = crate::error::max_lexeme_length_exceeded_error::Builder::default(); + let mut output = crate::error::lexicon_size_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::max_lexeme_length_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutLexiconError::unhandled)?; + output = + crate::json_deser::deser_structure_lexicon_size_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutLexiconError::unhandled)?; output.build() }), }, - "MaxLexiconsNumberExceededException" => crate::error::PutLexiconError { + "MaxLexemeLengthExceededException" => crate::error::PutLexiconError { meta: generic, - kind: crate::error::PutLexiconErrorKind::MaxLexiconsNumberExceededError({ + kind: crate::error::PutLexiconErrorKind::MaxLexemeLengthExceededException({ #[allow(unused_mut)] let mut output = - crate::error::max_lexicons_number_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::max_lexicons_number_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutLexiconError::unhandled)?; - output.build() - }), - }, - "ServiceFailureException" => crate::error::PutLexiconError { - meta: generic, - kind: crate::error::PutLexiconErrorKind::ServiceFailureError({ - #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + crate::error::max_lexeme_length_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::PutLexiconError::unhandled)?; + output = crate::json_deser::deser_structure_max_lexeme_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutLexiconError::unhandled)?; output.build() }), }, - "UnsupportedPlsAlphabetException" => crate::error::PutLexiconError { + "MaxLexiconsNumberExceededException" => crate::error::PutLexiconError { meta: generic, - kind: crate::error::PutLexiconErrorKind::UnsupportedPlsAlphabetError({ + kind: crate::error::PutLexiconErrorKind::MaxLexiconsNumberExceededException({ #[allow(unused_mut)] - let mut output = crate::error::unsupported_pls_alphabet_error::Builder::default(); + let mut output = + crate::error::max_lexicons_number_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::unsupported_pls_alphabet_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutLexiconError::unhandled)?; + output = crate::json_deser::deser_structure_max_lexicons_number_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutLexiconError::unhandled)?; output.build() }), }, - "UnsupportedPlsLanguageException" => crate::error::PutLexiconError { + "ServiceFailureException" => crate::error::PutLexiconError { meta: generic, - kind: crate::error::PutLexiconErrorKind::UnsupportedPlsLanguageError({ + kind: crate::error::PutLexiconErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::unsupported_pls_language_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::json_deser::unsupported_pls_language_exception( + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( response.body().as_ref(), output, ) @@ -472,6 +457,32 @@ pub fn parse_put_lexicon_error( output.build() }), }, + "UnsupportedPlsAlphabetException" => { + crate::error::PutLexiconError { + meta: generic, + kind: crate::error::PutLexiconErrorKind::UnsupportedPlsAlphabetException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_pls_alphabet_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_pls_alphabet_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutLexiconError::unhandled)?; + output.build() + }), + } + } + "UnsupportedPlsLanguageException" => { + crate::error::PutLexiconError { + meta: generic, + kind: crate::error::PutLexiconErrorKind::UnsupportedPlsLanguageException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_pls_language_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_pls_language_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutLexiconError::unhandled)?; + output.build() + }), + } + } _ => crate::error::PutLexiconError::generic(generic), }) } @@ -506,76 +517,76 @@ pub fn parse_start_speech_synthesis_task_error( } }; Err(match error_code { - "EngineNotSupportedException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::EngineNotSupportedError({ - #[allow(unused_mut)]let mut output = crate::error::engine_not_supported_error::Builder::default(); + "EngineNotSupportedException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::EngineNotSupportedException({ + #[allow(unused_mut)]let mut output = crate::error::engine_not_supported_exception::Builder::default(); let _ = response; - output = crate::json_deser::engine_not_supported_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_engine_not_supported_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "InvalidS3BucketException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3BucketError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_s3_bucket_error::Builder::default(); + "InvalidS3BucketException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3BucketException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_s3_bucket_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_s3_bucket_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_s3_bucket_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "InvalidS3KeyException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3KeyError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_s3_key_error::Builder::default(); + "InvalidS3KeyException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidS3KeyException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_s3_key_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_s3_key_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_s3_key_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "InvalidSampleRateException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSampleRateError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_sample_rate_error::Builder::default(); + "InvalidSampleRateException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSampleRateException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_sample_rate_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_sample_rate_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_sample_rate_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "InvalidSnsTopicArnException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_sns_topic_arn_error::Builder::default(); + "InvalidSnsTopicArnException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSnsTopicArnException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_sns_topic_arn_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_sns_topic_arn_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_sns_topic_arn_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "InvalidSsmlException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSsmlError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_ssml_error::Builder::default(); + "InvalidSsmlException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::InvalidSsmlException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_ssml_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_ssml_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_ssml_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "LanguageNotSupportedException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedError({ - #[allow(unused_mut)]let mut output = crate::error::language_not_supported_error::Builder::default(); + "LanguageNotSupportedException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::LanguageNotSupportedException({ + #[allow(unused_mut)]let mut output = crate::error::language_not_supported_exception::Builder::default(); let _ = response; - output = crate::json_deser::language_not_supported_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_language_not_supported_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "LexiconNotFoundException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::LexiconNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::lexicon_not_found_error::Builder::default(); + "LexiconNotFoundException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::LexiconNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::lexicon_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::lexicon_not_found_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_lexicon_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "MarksNotSupportedForFormatException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatError({ - #[allow(unused_mut)]let mut output = crate::error::marks_not_supported_for_format_error::Builder::default(); + "MarksNotSupportedForFormatException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::MarksNotSupportedForFormatException({ + #[allow(unused_mut)]let mut output = crate::error::marks_not_supported_for_format_exception::Builder::default(); let _ = response; - output = crate::json_deser::marks_not_supported_for_format_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_marks_not_supported_for_format_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "ServiceFailureException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::ServiceFailureError({ - #[allow(unused_mut)]let mut output = crate::error::service_failure_error::Builder::default(); + "ServiceFailureException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::ServiceFailureException({ + #[allow(unused_mut)]let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = crate::json_deser::service_failure_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "SsmlMarksNotSupportedForTextTypeException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeError({ - #[allow(unused_mut)]let mut output = crate::error::ssml_marks_not_supported_for_text_type_error::Builder::default(); + "SsmlMarksNotSupportedForTextTypeException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::SsmlMarksNotSupportedForTextTypeException({ + #[allow(unused_mut)]let mut output = crate::error::ssml_marks_not_supported_for_text_type_exception::Builder::default(); let _ = response; - output = crate::json_deser::ssml_marks_not_supported_for_text_type_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_ssml_marks_not_supported_for_text_type_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, - "TextLengthExceededException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::TextLengthExceededError({ - #[allow(unused_mut)]let mut output = crate::error::text_length_exceeded_error::Builder::default(); + "TextLengthExceededException" => crate::error::StartSpeechSynthesisTaskError { meta: generic, kind: crate::error::StartSpeechSynthesisTaskErrorKind::TextLengthExceededException({ + #[allow(unused_mut)]let mut output = crate::error::text_length_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::text_length_exceeded_exception(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; + output = crate::json_deser::deser_structure_text_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartSpeechSynthesisTaskError::unhandled)?; output.build() })}, _ => crate::error::StartSpeechSynthesisTaskError::generic(generic) @@ -593,7 +604,7 @@ pub fn parse_start_speech_synthesis_task_response( #[allow(unused_mut)] let mut output = crate::output::start_speech_synthesis_task_output::Builder::default(); let _ = response; - output = crate::json_deser::start_speech_synthesis_task_deser_operation( + output = crate::json_deser::deser_operation_start_speech_synthesis_task( response.body().as_ref(), output, ) @@ -611,26 +622,16 @@ pub fn parse_synthesize_speech( #[allow(unused_mut)] let mut output = crate::output::synthesize_speech_output::Builder::default(); let _ = response; - output = output.set_audio_stream(Some( - crate::http_serde::deser_payload_synthesize_speech_audio_stream(response.body_mut())?, - )); + output = output.set_audio_stream( + Some(crate::http_serde::deser_payload_synthesize_speech_synthesize_speech_output_audio_stream(response.body_mut())?) + ); output = output.set_content_type( - crate::http_serde::deser_header_synthesize_speech_content_type(response.headers()) - .map_err(|_| { - crate::error::SynthesizeSpeechError::unhandled( - "Failed to parse ContentType from header `Content-Type", - ) - })?, + crate::http_serde::deser_header_synthesize_speech_synthesize_speech_output_content_type(response.headers()) + .map_err(|_|crate::error::SynthesizeSpeechError::unhandled("Failed to parse ContentType from header `Content-Type"))? ); output = output.set_request_characters( - crate::http_serde::deser_header_synthesize_speech_request_characters( - response.headers(), - ) - .map_err(|_| { - crate::error::SynthesizeSpeechError::unhandled( - "Failed to parse RequestCharacters from header `x-amzn-RequestCharacters", - ) - })?, + crate::http_serde::deser_header_synthesize_speech_synthesize_speech_output_request_characters(response.headers()) + .map_err(|_|crate::error::SynthesizeSpeechError::unhandled("Failed to parse RequestCharacters from header `x-amzn-RequestCharacters"))? ); output.build() }) @@ -650,11 +651,11 @@ pub fn parse_synthesize_speech_error( Err(match error_code { "EngineNotSupportedException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::EngineNotSupportedError({ + kind: crate::error::SynthesizeSpeechErrorKind::EngineNotSupportedException({ #[allow(unused_mut)] - let mut output = crate::error::engine_not_supported_error::Builder::default(); + let mut output = crate::error::engine_not_supported_exception::Builder::default(); let _ = response; - output = crate::json_deser::engine_not_supported_exception( + output = crate::json_deser::deser_structure_engine_not_supported_exceptionjson_err( response.body().as_ref(), output, ) @@ -664,11 +665,11 @@ pub fn parse_synthesize_speech_error( }, "InvalidSampleRateException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::InvalidSampleRateError({ + kind: crate::error::SynthesizeSpeechErrorKind::InvalidSampleRateException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_sample_rate_error::Builder::default(); + let mut output = crate::error::invalid_sample_rate_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_sample_rate_exception( + output = crate::json_deser::deser_structure_invalid_sample_rate_exceptionjson_err( response.body().as_ref(), output, ) @@ -678,23 +679,11 @@ pub fn parse_synthesize_speech_error( }, "InvalidSsmlException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::InvalidSsmlError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_ssml_error::Builder::default(); - let _ = response; - output = - crate::json_deser::invalid_ssml_exception(response.body().as_ref(), output) - .map_err(crate::error::SynthesizeSpeechError::unhandled)?; - output.build() - }), - }, - "LanguageNotSupportedException" => crate::error::SynthesizeSpeechError { - meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::LanguageNotSupportedError({ + kind: crate::error::SynthesizeSpeechErrorKind::InvalidSsmlException({ #[allow(unused_mut)] - let mut output = crate::error::language_not_supported_error::Builder::default(); + let mut output = crate::error::invalid_ssml_exception::Builder::default(); let _ = response; - output = crate::json_deser::language_not_supported_exception( + output = crate::json_deser::deser_structure_invalid_ssml_exceptionjson_err( response.body().as_ref(), output, ) @@ -702,13 +691,26 @@ pub fn parse_synthesize_speech_error( output.build() }), }, + "LanguageNotSupportedException" => { + crate::error::SynthesizeSpeechError { + meta: generic, + kind: crate::error::SynthesizeSpeechErrorKind::LanguageNotSupportedException({ + #[allow(unused_mut)] + let mut output = + crate::error::language_not_supported_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_language_not_supported_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SynthesizeSpeechError::unhandled)?; + output.build() + }), + } + } "LexiconNotFoundException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::LexiconNotFoundError({ + kind: crate::error::SynthesizeSpeechErrorKind::LexiconNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::lexicon_not_found_error::Builder::default(); + let mut output = crate::error::lexicon_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::lexicon_not_found_exception( + output = crate::json_deser::deser_structure_lexicon_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -718,52 +720,48 @@ pub fn parse_synthesize_speech_error( }, "MarksNotSupportedForFormatException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::MarksNotSupportedForFormatError({ + kind: crate::error::SynthesizeSpeechErrorKind::MarksNotSupportedForFormatException({ #[allow(unused_mut)] let mut output = - crate::error::marks_not_supported_for_format_error::Builder::default(); + crate::error::marks_not_supported_for_format_exception::Builder::default(); let _ = response; - output = crate::json_deser::marks_not_supported_for_format_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SynthesizeSpeechError::unhandled)?; + output = crate::json_deser::deser_structure_marks_not_supported_for_format_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SynthesizeSpeechError::unhandled)?; output.build() }), }, "ServiceFailureException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::ServiceFailureError({ + kind: crate::error::SynthesizeSpeechErrorKind::ServiceFailureException({ #[allow(unused_mut)] - let mut output = crate::error::service_failure_error::Builder::default(); + let mut output = crate::error::service_failure_exception::Builder::default(); let _ = response; - output = - crate::json_deser::service_failure_exception(response.body().as_ref(), output) - .map_err(crate::error::SynthesizeSpeechError::unhandled)?; + output = crate::json_deser::deser_structure_service_failure_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SynthesizeSpeechError::unhandled)?; output.build() }), }, - "SsmlMarksNotSupportedForTextTypeException" => { - crate::error::SynthesizeSpeechError { - meta: generic, - kind: - crate::error::SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeError( - { - #[allow(unused_mut)]let mut output = crate::error::ssml_marks_not_supported_for_text_type_error::Builder::default(); - let _ = response; - output = crate::json_deser::ssml_marks_not_supported_for_text_type_exception(response.body().as_ref(), output).map_err(crate::error::SynthesizeSpeechError::unhandled)?; - output.build() - }, - ), - } - } + "SsmlMarksNotSupportedForTextTypeException" => crate::error::SynthesizeSpeechError { + meta: generic, + kind: + crate::error::SynthesizeSpeechErrorKind::SsmlMarksNotSupportedForTextTypeException( + { + #[allow(unused_mut)]let mut output = crate::error::ssml_marks_not_supported_for_text_type_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ssml_marks_not_supported_for_text_type_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SynthesizeSpeechError::unhandled)?; + output.build() + }, + ), + }, "TextLengthExceededException" => crate::error::SynthesizeSpeechError { meta: generic, - kind: crate::error::SynthesizeSpeechErrorKind::TextLengthExceededError({ + kind: crate::error::SynthesizeSpeechErrorKind::TextLengthExceededException({ #[allow(unused_mut)] - let mut output = crate::error::text_length_exceeded_error::Builder::default(); + let mut output = crate::error::text_length_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::text_length_exceeded_exception( + output = crate::json_deser::deser_structure_text_length_exceeded_exceptionjson_err( response.body().as_ref(), output, ) diff --git a/sdk/polly/src/operation_ser.rs b/sdk/polly/src/operation_ser.rs index 323d0935b507..87c0ad1ab630 100644 --- a/sdk/polly/src/operation_ser.rs +++ b/sdk/polly/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_put_lexicon( input: &crate::input::PutLexiconInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_lexicon_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_put_lexicon( pub fn serialize_operation_start_speech_synthesis_task( input: &crate::input::StartSpeechSynthesisTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_speech_synthesis_task_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_start_speech_synthesis_task( pub fn serialize_operation_synthesize_speech( input: &crate::input::SynthesizeSpeechInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_synthesize_speech_input(&mut object, input); diff --git a/sdk/polly/src/serde_util.rs b/sdk/polly/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/polly/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/polly/src/serializer.rs b/sdk/polly/src/serializer.rs deleted file mode 100644 index 0f0073981a81..000000000000 --- a/sdk/polly/src/serializer.rs +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutLexiconInputBody<'a> { - ///

    Content of the PLS lexicon as string data.

    - pub content: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutLexiconInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutLexiconInputBody"); - formatter.field("content", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartSpeechSynthesisTaskInputBody<'a> { - ///

    Specifies the engine (standard or neural) for Amazon Polly to - /// use when processing input text for speech synthesis. Using a voice that is not supported for - /// the engine selected will result in an error.

    - pub engine: &'a std::option::Option, - ///

    Optional language code for the Speech Synthesis request. This is only necessary if using a - /// bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi - /// (hi-IN).

    - ///

    If a bilingual voice is used and no language code is specified, Amazon Polly will use the - /// default language of the bilingual voice. The default language for any voice is the one - /// returned by the DescribeVoices operation for the LanguageCode parameter. For example, - /// if no language code is specified, Aditi will use Indian English rather than Hindi.

    - pub language_code: &'a std::option::Option, - ///

    List of one or more pronunciation lexicon names you want the service to apply during - /// synthesis. Lexicons are applied only if the language of the lexicon is the same as the - /// language of the voice.

    - pub lexicon_names: &'a std::option::Option>, - ///

    The format in which the returned output will be encoded. For audio stream, this will be - /// mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

    - pub output_format: &'a std::option::Option, - ///

    Amazon S3 bucket name to which the output file will be saved.

    - pub output_s3_bucket_name: &'a std::option::Option, - ///

    The Amazon S3 key prefix for the output speech file.

    - pub output_s3_key_prefix: &'a std::option::Option, - ///

    The audio frequency specified in Hz.

    - ///

    The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The - /// default value for standard voices is "22050". The default value for neural voices is - /// "24000".

    - ///

    Valid values for pcm are "8000" and "16000" The default value is "16000".

    - pub sample_rate: &'a std::option::Option, - ///

    ARN for the SNS topic optionally used for providing status notification for a speech - /// synthesis task.

    - pub sns_topic_arn: &'a std::option::Option, - ///

    The type of speech marks returned for the input text.

    - pub speech_mark_types: &'a std::option::Option>, - ///

    The input text to synthesize. If you specify ssml as the TextType, follow the SSML format - /// for the input text.

    - pub text: &'a std::option::Option, - ///

    Specifies whether the input text is plain text or SSML. The default value is plain text. - ///

    - pub text_type: &'a std::option::Option, - ///

    Voice ID to use for the synthesis.

    - pub voice_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartSpeechSynthesisTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartSpeechSynthesisTaskInputBody"); - formatter.field("engine", &self.engine); - formatter.field("language_code", &self.language_code); - formatter.field("lexicon_names", &self.lexicon_names); - formatter.field("output_format", &self.output_format); - formatter.field("output_s3_bucket_name", &self.output_s3_bucket_name); - formatter.field("output_s3_key_prefix", &self.output_s3_key_prefix); - formatter.field("sample_rate", &self.sample_rate); - formatter.field("sns_topic_arn", &self.sns_topic_arn); - formatter.field("speech_mark_types", &self.speech_mark_types); - formatter.field("text", &self.text); - formatter.field("text_type", &self.text_type); - formatter.field("voice_id", &self.voice_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SynthesizeSpeechInputBody<'a> { - ///

    Specifies the engine (standard or neural) for Amazon Polly to - /// use when processing input text for speech synthesis. For information on Amazon Polly voices and which voices are available in standard-only, NTTS-only, and - /// both standard and NTTS formats, see Available Voices.

    - ///

    - /// NTTS-only voices - ///

    - ///

    When using NTTS-only voices such as Kevin (en-US), this parameter is required and must be - /// set to neural. If the engine is not specified, or is set to standard, - /// this will result in an error.

    - ///

    Type: String

    - ///

    Valid Values: standard | neural - ///

    - ///

    Required: Yes

    - ///

    - /// Standard voices - ///

    - ///

    For standard voices, this is not required; the engine parameter defaults to - /// standard. If the engine is not specified, or is set to standard and - /// an NTTS-only voice is selected, this will result in an error.

    - pub engine: &'a std::option::Option, - ///

    Optional language code for the Synthesize Speech request. This is only necessary if using - /// a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi - /// (hi-IN).

    - ///

    If a bilingual voice is used and no language code is specified, Amazon Polly will use the - /// default language of the bilingual voice. The default language for any voice is the one - /// returned by the DescribeVoices operation for the LanguageCode parameter. For example, - /// if no language code is specified, Aditi will use Indian English rather than Hindi.

    - pub language_code: &'a std::option::Option, - ///

    List of one or more pronunciation lexicon names you want the service to apply during - /// synthesis. Lexicons are applied only if the language of the lexicon is the same as the - /// language of the voice. For information about storing lexicons, see PutLexicon.

    - pub lexicon_names: &'a std::option::Option>, - ///

    The format in which the returned output will be encoded. For audio stream, this will - /// be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

    - ///

    When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel - /// (mono), little-endian format.

    - pub output_format: &'a std::option::Option, - ///

    The audio frequency specified in Hz.

    - ///

    The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The - /// default value for standard voices is "22050". The default value for neural voices is - /// "24000".

    - ///

    Valid values for pcm are "8000" and "16000" The default value is "16000".

    - pub sample_rate: &'a std::option::Option, - ///

    The type of speech marks returned for the input text.

    - pub speech_mark_types: &'a std::option::Option>, - ///

    Input text to synthesize. If you specify ssml as the - /// TextType, follow the SSML format for the input text.

    - pub text: &'a std::option::Option, - ///

    Specifies whether the input text is plain text or SSML. The default value is plain - /// text. For more information, see Using SSML.

    - pub text_type: &'a std::option::Option, - ///

    Voice ID to use for the synthesis. You can get a list of available voice IDs by - /// calling the DescribeVoices operation.

    - pub voice_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SynthesizeSpeechInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SynthesizeSpeechInputBody"); - formatter.field("engine", &self.engine); - formatter.field("language_code", &self.language_code); - formatter.field("lexicon_names", &self.lexicon_names); - formatter.field("output_format", &self.output_format); - formatter.field("sample_rate", &self.sample_rate); - formatter.field("speech_mark_types", &self.speech_mark_types); - formatter.field("text", &self.text); - formatter.field("text_type", &self.text_type); - formatter.field("voice_id", &self.voice_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeVoicesOutputBody { - ///

    A list of voices with their properties.

    - #[serde(rename = "Voices")] - #[serde(default)] - pub voices: std::option::Option>, - ///

    The pagination token to use in the next request to continue the listing of voices. - /// NextToken is returned only if the response is truncated.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeVoicesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeVoicesOutputBody"); - formatter.field("voices", &self.voices); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetLexiconOutputBody { - ///

    Lexicon object that provides name and the string content of the lexicon.

    - #[serde(rename = "Lexicon")] - #[serde(default)] - pub lexicon: std::option::Option, - ///

    Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon - /// ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.

    - #[serde(rename = "LexiconAttributes")] - #[serde(default)] - pub lexicon_attributes: std::option::Option, -} -impl std::fmt::Debug for GetLexiconOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetLexiconOutputBody"); - formatter.field("lexicon", &self.lexicon); - formatter.field("lexicon_attributes", &self.lexicon_attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSpeechSynthesisTaskOutputBody { - ///

    SynthesisTask object that provides information from the requested task, including output - /// format, creation time, task status, and so on.

    - #[serde(rename = "SynthesisTask")] - #[serde(default)] - pub synthesis_task: std::option::Option, -} -impl std::fmt::Debug for GetSpeechSynthesisTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSpeechSynthesisTaskOutputBody"); - formatter.field("synthesis_task", &self.synthesis_task); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLexiconsOutputBody { - ///

    A list of lexicon names and attributes.

    - #[serde(rename = "Lexicons")] - #[serde(default)] - pub lexicons: std::option::Option>, - ///

    The pagination token to use in the next request to continue the listing of lexicons. - /// NextToken is returned only if the response is truncated.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListLexiconsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLexiconsOutputBody"); - formatter.field("lexicons", &self.lexicons); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSpeechSynthesisTasksOutputBody { - ///

    An opaque pagination token returned from the previous List operation in this request. If - /// present, this indicates where to continue the listing.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    List of SynthesisTask objects that provides information from the specified task in the - /// list request, including output format, creation time, task status, and so on.

    - #[serde(rename = "SynthesisTasks")] - #[serde(default)] - pub synthesis_tasks: std::option::Option>, -} -impl std::fmt::Debug for ListSpeechSynthesisTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSpeechSynthesisTasksOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("synthesis_tasks", &self.synthesis_tasks); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartSpeechSynthesisTaskOutputBody { - ///

    SynthesisTask object that provides information and attributes about a newly submitted - /// speech synthesis task.

    - #[serde(rename = "SynthesisTask")] - #[serde(default)] - pub synthesis_task: std::option::Option, -} -impl std::fmt::Debug for StartSpeechSynthesisTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartSpeechSynthesisTaskOutputBody"); - formatter.field("synthesis_task", &self.synthesis_task); - formatter.finish() - } -} diff --git a/sdk/qldb/Cargo.toml b/sdk/qldb/Cargo.toml index 95615d94533e..1d9e5a6a8c4a 100644 --- a/sdk/qldb/Cargo.toml +++ b/sdk/qldb/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-qldb" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    The control plane for Amazon QLDB

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/qldb/src/aws_json_errors.rs b/sdk/qldb/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/qldb/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/qldb/src/blob_serde.rs b/sdk/qldb/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/qldb/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/qldb/src/error.rs b/sdk/qldb/src/error.rs index caaf696749b5..f06b2788cc26 100644 --- a/sdk/qldb/src/error.rs +++ b/sdk/qldb/src/error.rs @@ -8,18 +8,18 @@ pub struct CancelJournalKinesisStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelJournalKinesisStreamErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CancelJournalKinesisStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelJournalKinesisStreamErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CancelJournalKinesisStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_inner) => { + CancelJournalKinesisStreamErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CancelJournalKinesisStreamErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_inner) => { _inner.fmt(f) } CancelJournalKinesisStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -70,31 +70,31 @@ impl CancelJournalKinesisStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CancelJournalKinesisStreamErrorKind::InvalidParameterError(_) + CancelJournalKinesisStreamErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CancelJournalKinesisStreamErrorKind::ResourceNotFoundError(_) + CancelJournalKinesisStreamErrorKind::ResourceNotFoundException(_) ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_) + CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for CancelJournalKinesisStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelJournalKinesisStreamErrorKind::InvalidParameterError(_inner) => Some(_inner), - CancelJournalKinesisStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_inner) => { + CancelJournalKinesisStreamErrorKind::InvalidParameterException(_inner) => Some(_inner), + CancelJournalKinesisStreamErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_inner) => { Some(_inner) } CancelJournalKinesisStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -111,20 +111,20 @@ pub struct CreateLedgerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateLedgerErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ResourceInUseError(crate::error::ResourceInUseError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ResourceInUseException(crate::error::ResourceInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateLedgerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateLedgerErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateLedgerErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateLedgerErrorKind::ResourceAlreadyExistsError(_inner) => _inner.fmt(f), - CreateLedgerErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), + CreateLedgerErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateLedgerErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateLedgerErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f), + CreateLedgerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), CreateLedgerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -173,29 +173,32 @@ impl CreateLedgerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateLedgerErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateLedgerErrorKind::InvalidParameterException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateLedgerErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateLedgerErrorKind::LimitExceededException(_)) } - pub fn is_resource_already_exists_error(&self) -> bool { + pub fn is_resource_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateLedgerErrorKind::ResourceAlreadyExistsError(_) + CreateLedgerErrorKind::ResourceAlreadyExistsException(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, CreateLedgerErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, CreateLedgerErrorKind::ResourceInUseException(_)) } } impl std::error::Error for CreateLedgerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateLedgerErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateLedgerErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateLedgerErrorKind::ResourceAlreadyExistsError(_inner) => Some(_inner), - CreateLedgerErrorKind::ResourceInUseError(_inner) => Some(_inner), + CreateLedgerErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateLedgerErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateLedgerErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner), + CreateLedgerErrorKind::ResourceInUseException(_inner) => Some(_inner), CreateLedgerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -210,20 +213,20 @@ pub struct DeleteLedgerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteLedgerErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteLedgerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteLedgerErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteLedgerErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), - DeleteLedgerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteLedgerErrorKind::ResourcePreconditionNotMetError(_inner) => _inner.fmt(f), + DeleteLedgerErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteLedgerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), + DeleteLedgerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteLedgerErrorKind::ResourcePreconditionNotMetException(_inner) => _inner.fmt(f), DeleteLedgerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -272,29 +275,35 @@ impl DeleteLedgerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteLedgerErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLedgerErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_in_use_error(&self) -> bool { - matches!(&self.kind, DeleteLedgerErrorKind::ResourceInUseError(_)) + pub fn is_resource_in_use_exception(&self) -> bool { + matches!(&self.kind, DeleteLedgerErrorKind::ResourceInUseException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteLedgerErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteLedgerErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - DeleteLedgerErrorKind::ResourcePreconditionNotMetError(_) + DeleteLedgerErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for DeleteLedgerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteLedgerErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteLedgerErrorKind::ResourceInUseError(_inner) => Some(_inner), - DeleteLedgerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteLedgerErrorKind::ResourcePreconditionNotMetError(_inner) => Some(_inner), + DeleteLedgerErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteLedgerErrorKind::ResourceInUseException(_inner) => Some(_inner), + DeleteLedgerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteLedgerErrorKind::ResourcePreconditionNotMetException(_inner) => Some(_inner), DeleteLedgerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -309,18 +318,22 @@ pub struct DescribeJournalKinesisStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeJournalKinesisStreamErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeJournalKinesisStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeJournalKinesisStreamErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeJournalKinesisStreamErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_inner) => { + DescribeJournalKinesisStreamErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DescribeJournalKinesisStreamErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_inner) => { _inner.fmt(f) } DescribeJournalKinesisStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -371,31 +384,35 @@ impl DescribeJournalKinesisStreamError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeJournalKinesisStreamErrorKind::InvalidParameterError(_) + DescribeJournalKinesisStreamErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeJournalKinesisStreamErrorKind::ResourceNotFoundError(_) + DescribeJournalKinesisStreamErrorKind::ResourceNotFoundException(_) ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_) + DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for DescribeJournalKinesisStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeJournalKinesisStreamErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeJournalKinesisStreamErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(_inner) => { + DescribeJournalKinesisStreamErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + DescribeJournalKinesisStreamErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } + DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(_inner) => { Some(_inner) } DescribeJournalKinesisStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -412,14 +429,14 @@ pub struct DescribeJournalS3ExportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeJournalS3ExportErrorKind { - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeJournalS3ExportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeJournalS3ExportErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeJournalS3ExportErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeJournalS3ExportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -468,17 +485,17 @@ impl DescribeJournalS3ExportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeJournalS3ExportErrorKind::ResourceNotFoundError(_) + DescribeJournalS3ExportErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DescribeJournalS3ExportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeJournalS3ExportErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeJournalS3ExportErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeJournalS3ExportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -493,16 +510,16 @@ pub struct DescribeLedgerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeLedgerErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeLedgerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeLedgerErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DescribeLedgerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeLedgerErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DescribeLedgerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeLedgerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -551,24 +568,24 @@ impl DescribeLedgerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DescribeLedgerErrorKind::InvalidParameterError(_) + DescribeLedgerErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeLedgerErrorKind::ResourceNotFoundError(_) + DescribeLedgerErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for DescribeLedgerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeLedgerErrorKind::InvalidParameterError(_inner) => Some(_inner), - DescribeLedgerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeLedgerErrorKind::InvalidParameterException(_inner) => Some(_inner), + DescribeLedgerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeLedgerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -583,16 +600,18 @@ pub struct ExportJournalToS3Error { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExportJournalToS3ErrorKind { - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExportJournalToS3Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExportJournalToS3ErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ExportJournalToS3ErrorKind::ResourcePreconditionNotMetError(_inner) => _inner.fmt(f), + ExportJournalToS3ErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ExportJournalToS3ErrorKind::ResourcePreconditionNotMetException(_inner) => { + _inner.fmt(f) + } ExportJournalToS3ErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -641,24 +660,24 @@ impl ExportJournalToS3Error { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ExportJournalToS3ErrorKind::ResourceNotFoundError(_) + ExportJournalToS3ErrorKind::ResourceNotFoundException(_) ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - ExportJournalToS3ErrorKind::ResourcePreconditionNotMetError(_) + ExportJournalToS3ErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for ExportJournalToS3Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExportJournalToS3ErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ExportJournalToS3ErrorKind::ResourcePreconditionNotMetError(_inner) => Some(_inner), + ExportJournalToS3ErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ExportJournalToS3ErrorKind::ResourcePreconditionNotMetException(_inner) => Some(_inner), ExportJournalToS3ErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -673,18 +692,18 @@ pub struct GetBlockError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetBlockErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetBlockError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetBlockErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetBlockErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetBlockErrorKind::ResourcePreconditionNotMetError(_inner) => _inner.fmt(f), + GetBlockErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetBlockErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetBlockErrorKind::ResourcePreconditionNotMetException(_inner) => _inner.fmt(f), GetBlockErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -733,25 +752,25 @@ impl GetBlockError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, GetBlockErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, GetBlockErrorKind::InvalidParameterException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetBlockErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, GetBlockErrorKind::ResourceNotFoundException(_)) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - GetBlockErrorKind::ResourcePreconditionNotMetError(_) + GetBlockErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for GetBlockError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetBlockErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetBlockErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetBlockErrorKind::ResourcePreconditionNotMetError(_inner) => Some(_inner), + GetBlockErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetBlockErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetBlockErrorKind::ResourcePreconditionNotMetException(_inner) => Some(_inner), GetBlockErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -766,18 +785,18 @@ pub struct GetDigestError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDigestErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDigestError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDigestErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetDigestErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetDigestErrorKind::ResourcePreconditionNotMetError(_inner) => _inner.fmt(f), + GetDigestErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetDigestErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetDigestErrorKind::ResourcePreconditionNotMetException(_inner) => _inner.fmt(f), GetDigestErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -826,25 +845,25 @@ impl GetDigestError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, GetDigestErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, GetDigestErrorKind::InvalidParameterException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetDigestErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDigestErrorKind::ResourceNotFoundException(_)) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - GetDigestErrorKind::ResourcePreconditionNotMetError(_) + GetDigestErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for GetDigestError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDigestErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetDigestErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetDigestErrorKind::ResourcePreconditionNotMetError(_inner) => Some(_inner), + GetDigestErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetDigestErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetDigestErrorKind::ResourcePreconditionNotMetException(_inner) => Some(_inner), GetDigestErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -859,18 +878,18 @@ pub struct GetRevisionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetRevisionErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetRevisionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetRevisionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetRevisionErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - GetRevisionErrorKind::ResourcePreconditionNotMetError(_inner) => _inner.fmt(f), + GetRevisionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetRevisionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + GetRevisionErrorKind::ResourcePreconditionNotMetException(_inner) => _inner.fmt(f), GetRevisionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -919,25 +938,31 @@ impl GetRevisionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, GetRevisionErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + GetRevisionErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, GetRevisionErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetRevisionErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - GetRevisionErrorKind::ResourcePreconditionNotMetError(_) + GetRevisionErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for GetRevisionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetRevisionErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetRevisionErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - GetRevisionErrorKind::ResourcePreconditionNotMetError(_inner) => Some(_inner), + GetRevisionErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetRevisionErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + GetRevisionErrorKind::ResourcePreconditionNotMetException(_inner) => Some(_inner), GetRevisionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -952,22 +977,22 @@ pub struct ListJournalKinesisStreamsForLedgerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListJournalKinesisStreamsForLedgerErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListJournalKinesisStreamsForLedgerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterError(_inner) => { + ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterException(_inner) => { _inner.fmt(f) } - ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundError(_inner) => { + ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundException(_inner) => { _inner.fmt(f) } - ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetError( + ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetException( _inner, ) => _inner.fmt(f), ListJournalKinesisStreamsForLedgerErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1021,35 +1046,35 @@ impl ListJournalKinesisStreamsForLedgerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterError(_) + ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundError(_) + ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundException(_) ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetError(_) + ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for ListJournalKinesisStreamsForLedgerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterError(_inner) => { + ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterException(_inner) => { Some(_inner) } - ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundError(_inner) => { + ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundException(_inner) => { Some(_inner) } - ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetError( + ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetException( _inner, ) => Some(_inner), ListJournalKinesisStreamsForLedgerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1282,16 +1307,16 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1340,24 +1365,24 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::InvalidParameterError(_) + ListTagsForResourceErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::ResourceNotFoundError(_) + ListTagsForResourceErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1372,18 +1397,18 @@ pub struct StreamJournalToKinesisError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StreamJournalToKinesisErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StreamJournalToKinesisError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StreamJournalToKinesisErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StreamJournalToKinesisErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetError(_inner) => { + StreamJournalToKinesisErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StreamJournalToKinesisErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetException(_inner) => { _inner.fmt(f) } StreamJournalToKinesisErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1434,31 +1459,31 @@ impl StreamJournalToKinesisError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - StreamJournalToKinesisErrorKind::InvalidParameterError(_) + StreamJournalToKinesisErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - StreamJournalToKinesisErrorKind::ResourceNotFoundError(_) + StreamJournalToKinesisErrorKind::ResourceNotFoundException(_) ) } - pub fn is_resource_precondition_not_met_error(&self) -> bool { + pub fn is_resource_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetError(_) + StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetException(_) ) } } impl std::error::Error for StreamJournalToKinesisError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StreamJournalToKinesisErrorKind::InvalidParameterError(_inner) => Some(_inner), - StreamJournalToKinesisErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetError(_inner) => { + StreamJournalToKinesisErrorKind::InvalidParameterException(_inner) => Some(_inner), + StreamJournalToKinesisErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetException(_inner) => { Some(_inner) } StreamJournalToKinesisErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1475,16 +1500,16 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1533,18 +1558,24 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1559,16 +1590,16 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1617,18 +1648,24 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1643,16 +1680,16 @@ pub struct UpdateLedgerError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateLedgerErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateLedgerError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateLedgerErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateLedgerErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateLedgerErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateLedgerErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateLedgerErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1701,18 +1738,24 @@ impl UpdateLedgerError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UpdateLedgerErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateLedgerErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateLedgerErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateLedgerErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UpdateLedgerError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateLedgerErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateLedgerErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateLedgerErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateLedgerErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateLedgerErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1727,16 +1770,20 @@ pub struct UpdateLedgerPermissionsModeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateLedgerPermissionsModeErrorKind { - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateLedgerPermissionsModeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateLedgerPermissionsModeErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateLedgerPermissionsModeErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } UpdateLedgerPermissionsModeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1785,24 +1832,24 @@ impl UpdateLedgerPermissionsModeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateLedgerPermissionsModeErrorKind::InvalidParameterError(_) + UpdateLedgerPermissionsModeErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundError(_) + UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundException(_) ) } } impl std::error::Error for UpdateLedgerPermissionsModeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateLedgerPermissionsModeErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateLedgerPermissionsModeErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateLedgerPermissionsModeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1810,47 +1857,41 @@ impl std::error::Error for UpdateLedgerPermissionsModeError { ///

    The specified resource doesn't exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub message: std::option::Option, ///

    The type of resource.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The name of the resource.

    - #[serde(rename = "ResourceName")] - #[serde(default)] pub resource_name: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.field("resource_type", &self.resource_type); formatter.field("resource_name", &self.resource_name); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1891,9 +1932,9 @@ pub mod resource_not_found_error { self.resource_name = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, resource_type: self.resource_type, resource_name: self.resource_name, @@ -1901,51 +1942,47 @@ pub mod resource_not_found_error { } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

    One or more parameters in the request aren't valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { pub message: std::option::Option, ///

    The name of the invalid parameter.

    - #[serde(rename = "ParameterName")] - #[serde(default)] pub parameter_name: std::option::Option, } -impl std::fmt::Debug for InvalidParameterError { +impl std::fmt::Debug for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterError"); + let mut formatter = f.debug_struct("InvalidParameterException"); formatter.field("message", &self.message); formatter.field("parameter_name", &self.parameter_name); formatter.finish() } } -impl InvalidParameterError { +impl InvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterError { +impl std::fmt::Display for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidParameterError [InvalidParameterException]")?; + write!(f, "InvalidParameterException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for InvalidParameterError {} -/// See [`InvalidParameterError`](crate::error::InvalidParameterError) -pub mod invalid_parameter_error { - /// A builder for [`InvalidParameterError`](crate::error::InvalidParameterError) +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1973,68 +2010,59 @@ pub mod invalid_parameter_error { self.parameter_name = input; self } - /// Consumes the builder and constructs a [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn build(self) -> crate::error::InvalidParameterError { - crate::error::InvalidParameterError { + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { message: self.message, parameter_name: self.parameter_name, } } } } -impl InvalidParameterError { - /// Creates a new builder-style object to manufacture [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn builder() -> crate::error::invalid_parameter_error::Builder { - crate::error::invalid_parameter_error::Builder::default() +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() } } ///

    The operation failed because a condition wasn't satisfied in advance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourcePreconditionNotMetError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourcePreconditionNotMetException { pub message: std::option::Option, ///

    The type of resource.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The name of the resource.

    - #[serde(rename = "ResourceName")] - #[serde(default)] pub resource_name: std::option::Option, } -impl std::fmt::Debug for ResourcePreconditionNotMetError { +impl std::fmt::Debug for ResourcePreconditionNotMetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourcePreconditionNotMetError"); + let mut formatter = f.debug_struct("ResourcePreconditionNotMetException"); formatter.field("message", &self.message); formatter.field("resource_type", &self.resource_type); formatter.field("resource_name", &self.resource_name); formatter.finish() } } -impl ResourcePreconditionNotMetError { +impl ResourcePreconditionNotMetException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourcePreconditionNotMetError { +impl std::fmt::Display for ResourcePreconditionNotMetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourcePreconditionNotMetError [ResourcePreconditionNotMetException]" - )?; + write!(f, "ResourcePreconditionNotMetException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ResourcePreconditionNotMetError {} -/// See [`ResourcePreconditionNotMetError`](crate::error::ResourcePreconditionNotMetError) -pub mod resource_precondition_not_met_error { - /// A builder for [`ResourcePreconditionNotMetError`](crate::error::ResourcePreconditionNotMetError) +impl std::error::Error for ResourcePreconditionNotMetException {} +/// See [`ResourcePreconditionNotMetException`](crate::error::ResourcePreconditionNotMetException) +pub mod resource_precondition_not_met_exception { + /// A builder for [`ResourcePreconditionNotMetException`](crate::error::ResourcePreconditionNotMetException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2075,9 +2103,9 @@ pub mod resource_precondition_not_met_error { self.resource_name = input; self } - /// Consumes the builder and constructs a [`ResourcePreconditionNotMetError`](crate::error::ResourcePreconditionNotMetError) - pub fn build(self) -> crate::error::ResourcePreconditionNotMetError { - crate::error::ResourcePreconditionNotMetError { + /// Consumes the builder and constructs a [`ResourcePreconditionNotMetException`](crate::error::ResourcePreconditionNotMetException) + pub fn build(self) -> crate::error::ResourcePreconditionNotMetException { + crate::error::ResourcePreconditionNotMetException { message: self.message, resource_type: self.resource_type, resource_name: self.resource_name, @@ -2085,56 +2113,50 @@ pub mod resource_precondition_not_met_error { } } } -impl ResourcePreconditionNotMetError { - /// Creates a new builder-style object to manufacture [`ResourcePreconditionNotMetError`](crate::error::ResourcePreconditionNotMetError) - pub fn builder() -> crate::error::resource_precondition_not_met_error::Builder { - crate::error::resource_precondition_not_met_error::Builder::default() +impl ResourcePreconditionNotMetException { + /// Creates a new builder-style object to manufacture [`ResourcePreconditionNotMetException`](crate::error::ResourcePreconditionNotMetException) + pub fn builder() -> crate::error::resource_precondition_not_met_exception::Builder { + crate::error::resource_precondition_not_met_exception::Builder::default() } } ///

    The specified resource can't be modified at this time.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { pub message: std::option::Option, ///

    The type of resource.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The name of the resource.

    - #[serde(rename = "ResourceName")] - #[serde(default)] pub resource_name: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("message", &self.message); formatter.field("resource_type", &self.resource_type); formatter.field("resource_name", &self.resource_name); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2175,9 +2197,9 @@ pub mod resource_in_use_error { self.resource_name = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { message: self.message, resource_type: self.resource_type, resource_name: self.resource_name, @@ -2185,59 +2207,50 @@ pub mod resource_in_use_error { } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } ///

    The specified resource already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceAlreadyExistsError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceAlreadyExistsException { pub message: std::option::Option, ///

    The type of resource.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The name of the resource.

    - #[serde(rename = "ResourceName")] - #[serde(default)] pub resource_name: std::option::Option, } -impl std::fmt::Debug for ResourceAlreadyExistsError { +impl std::fmt::Debug for ResourceAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceAlreadyExistsError"); + let mut formatter = f.debug_struct("ResourceAlreadyExistsException"); formatter.field("message", &self.message); formatter.field("resource_type", &self.resource_type); formatter.field("resource_name", &self.resource_name); formatter.finish() } } -impl ResourceAlreadyExistsError { +impl ResourceAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceAlreadyExistsError { +impl std::fmt::Display for ResourceAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceAlreadyExistsError [ResourceAlreadyExistsException]" - )?; + write!(f, "ResourceAlreadyExistsException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ResourceAlreadyExistsError {} -/// See [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) -pub mod resource_already_exists_error { - /// A builder for [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) +impl std::error::Error for ResourceAlreadyExistsException {} +/// See [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) +pub mod resource_already_exists_exception { + /// A builder for [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2278,9 +2291,9 @@ pub mod resource_already_exists_error { self.resource_name = input; self } - /// Consumes the builder and constructs a [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) - pub fn build(self) -> crate::error::ResourceAlreadyExistsError { - crate::error::ResourceAlreadyExistsError { + /// Consumes the builder and constructs a [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) + pub fn build(self) -> crate::error::ResourceAlreadyExistsException { + crate::error::ResourceAlreadyExistsException { message: self.message, resource_type: self.resource_type, resource_name: self.resource_name, @@ -2288,51 +2301,47 @@ pub mod resource_already_exists_error { } } } -impl ResourceAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`ResourceAlreadyExistsError`](crate::error::ResourceAlreadyExistsError) - pub fn builder() -> crate::error::resource_already_exists_error::Builder { - crate::error::resource_already_exists_error::Builder::default() +impl ResourceAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ResourceAlreadyExistsException`](crate::error::ResourceAlreadyExistsException) + pub fn builder() -> crate::error::resource_already_exists_exception::Builder { + crate::error::resource_already_exists_exception::Builder::default() } } ///

    You have reached the limit on the maximum number of resources allowed.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, ///

    The type of resource.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.field("resource_type", &self.resource_type); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2360,18 +2369,18 @@ pub mod limit_exceeded_error { self.resource_type = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, resource_type: self.resource_type, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } diff --git a/sdk/qldb/src/error_meta.rs b/sdk/qldb/src/error_meta.rs index 4780d772f026..2bae65db979e 100644 --- a/sdk/qldb/src/error_meta.rs +++ b/sdk/qldb/src/error_meta.rs @@ -2,23 +2,23 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - InvalidParameterError(crate::error::InvalidParameterError), - LimitExceededError(crate::error::LimitExceededError), - ResourceAlreadyExistsError(crate::error::ResourceAlreadyExistsError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ResourcePreconditionNotMetError(crate::error::ResourcePreconditionNotMetError), + InvalidParameterException(crate::error::InvalidParameterException), + LimitExceededException(crate::error::LimitExceededException), + ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ResourcePreconditionNotMetException(crate::error::ResourcePreconditionNotMetException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::InvalidParameterError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::ResourceAlreadyExistsError(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::ResourcePreconditionNotMetError(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::ResourceAlreadyExistsException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ResourcePreconditionNotMetException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -29,9 +29,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CancelJournalKinesisStreamErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::CancelJournalKinesisStreamErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(inner) => Error::ResourcePreconditionNotMetError(inner), + crate::error::CancelJournalKinesisStreamErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::CancelJournalKinesisStreamErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(inner) => Error::ResourcePreconditionNotMetException(inner), crate::error::CancelJournalKinesisStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -42,17 +42,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateLedgerErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateLedgerErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateLedgerErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateLedgerErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateLedgerErrorKind::ResourceAlreadyExistsError(inner) => { - Error::ResourceAlreadyExistsError(inner) + crate::error::CreateLedgerErrorKind::ResourceAlreadyExistsException(inner) => { + Error::ResourceAlreadyExistsException(inner) } - crate::error::CreateLedgerErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::CreateLedgerErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } crate::error::CreateLedgerErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -64,17 +64,17 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteLedgerErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteLedgerErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteLedgerErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::DeleteLedgerErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } - crate::error::DeleteLedgerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteLedgerErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteLedgerErrorKind::ResourcePreconditionNotMetError(inner) => { - Error::ResourcePreconditionNotMetError(inner) + crate::error::DeleteLedgerErrorKind::ResourcePreconditionNotMetException(inner) => { + Error::ResourcePreconditionNotMetException(inner) } crate::error::DeleteLedgerErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -90,9 +90,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeJournalKinesisStreamErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::DescribeJournalKinesisStreamErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError(inner) => Error::ResourcePreconditionNotMetError(inner), + crate::error::DescribeJournalKinesisStreamErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::DescribeJournalKinesisStreamErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException(inner) => Error::ResourcePreconditionNotMetException(inner), crate::error::DescribeJournalKinesisStreamErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -105,9 +105,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeJournalS3ExportErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } + crate::error::DescribeJournalS3ExportErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::DescribeJournalS3ExportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -120,11 +120,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeLedgerErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DescribeLedgerErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DescribeLedgerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeLedgerErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeLedgerErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -136,12 +136,12 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExportJournalToS3ErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ExportJournalToS3ErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ExportJournalToS3ErrorKind::ResourcePreconditionNotMetError( + crate::error::ExportJournalToS3ErrorKind::ResourcePreconditionNotMetException( inner, - ) => Error::ResourcePreconditionNotMetError(inner), + ) => Error::ResourcePreconditionNotMetException(inner), crate::error::ExportJournalToS3ErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -154,14 +154,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetBlockErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetBlockErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetBlockErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetBlockErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetBlockErrorKind::ResourcePreconditionNotMetError(inner) => { - Error::ResourcePreconditionNotMetError(inner) + crate::error::GetBlockErrorKind::ResourcePreconditionNotMetException(inner) => { + Error::ResourcePreconditionNotMetException(inner) } crate::error::GetBlockErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -173,14 +173,14 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDigestErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetDigestErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetDigestErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetDigestErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetDigestErrorKind::ResourcePreconditionNotMetError(inner) => { - Error::ResourcePreconditionNotMetError(inner) + crate::error::GetDigestErrorKind::ResourcePreconditionNotMetException(inner) => { + Error::ResourcePreconditionNotMetException(inner) } crate::error::GetDigestErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -192,14 +192,14 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetRevisionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetRevisionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetRevisionErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetRevisionErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::GetRevisionErrorKind::ResourcePreconditionNotMetError(inner) => { - Error::ResourcePreconditionNotMetError(inner) + crate::error::GetRevisionErrorKind::ResourcePreconditionNotMetException(inner) => { + Error::ResourcePreconditionNotMetException(inner) } crate::error::GetRevisionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -215,9 +215,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner), - crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetError(inner) => Error::ResourcePreconditionNotMetError(inner), + crate::error::ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetException(inner) => Error::ResourcePreconditionNotMetException(inner), crate::error::ListJournalKinesisStreamsForLedgerErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -266,11 +266,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTagsForResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListTagsForResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -283,20 +283,12 @@ impl From> impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StreamJournalToKinesisErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::StreamJournalToKinesisErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetError( - inner, - ) => Error::ResourcePreconditionNotMetError(inner), - crate::error::StreamJournalToKinesisErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::StreamJournalToKinesisErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::StreamJournalToKinesisErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::error::StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetException(inner) => Error::ResourcePreconditionNotMetException(inner), + crate::error::StreamJournalToKinesisErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -305,11 +297,11 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -321,11 +313,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UntagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -337,11 +329,11 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateLedgerErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateLedgerErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateLedgerErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateLedgerErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UpdateLedgerErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -355,12 +347,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateLedgerPermissionsModeErrorKind::InvalidParameterError( + crate::error::UpdateLedgerPermissionsModeErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundError( + ) => Error::InvalidParameterException(inner), + crate::error::UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::ResourceNotFoundException(inner), crate::error::UpdateLedgerPermissionsModeErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } diff --git a/sdk/qldb/src/input.rs b/sdk/qldb/src/input.rs index 6687beb0c2d2..b6fc48a4d2fb 100644 --- a/sdk/qldb/src/input.rs +++ b/sdk/qldb/src/input.rs @@ -37,8 +37,8 @@ pub mod cancel_journal_kinesis_stream_input { smithy_http::operation::BuildError, > { Ok(crate::input::CancelJournalKinesisStreamInput { - ledger_name: self.ledger_name.unwrap_or_default(), - stream_id: self.stream_id.unwrap_or_default(), + ledger_name: self.ledger_name, + stream_id: self.stream_id, }) } } @@ -104,14 +104,49 @@ impl CancelJournalKinesisStreamInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ledger_name = { + let input = &self.ledger_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stream_id = { + let input = &self.stream_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stream_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stream_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}", - LedgerName = smithy_http::label::fmt_string(&self.ledger_name, false), - StreamId = smithy_http::label::fmt_string(&self.stream_id, false) + LedgerName = ledger_name, + StreamId = stream_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -119,7 +154,7 @@ impl CancelJournalKinesisStreamInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -326,8 +361,9 @@ impl CreateLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/ledgers").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/ledgers").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -335,7 +371,7 @@ impl CreateLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -384,9 +420,7 @@ pub mod delete_ledger_input { self, ) -> std::result::Result { - Ok(crate::input::DeleteLedgerInput { - name: self.name.unwrap_or_default(), - }) + Ok(crate::input::DeleteLedgerInput { name: self.name }) } } } @@ -450,13 +484,26 @@ impl DeleteLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -464,7 +511,7 @@ impl DeleteLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -527,8 +574,8 @@ pub mod describe_journal_kinesis_stream_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeJournalKinesisStreamInput { - ledger_name: self.ledger_name.unwrap_or_default(), - stream_id: self.stream_id.unwrap_or_default(), + ledger_name: self.ledger_name, + stream_id: self.stream_id, }) } } @@ -594,14 +641,49 @@ impl DescribeJournalKinesisStreamInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ledger_name = { + let input = &self.ledger_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let stream_id = { + let input = &self.stream_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "stream_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "stream_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}", - LedgerName = smithy_http::label::fmt_string(&self.ledger_name, false), - StreamId = smithy_http::label::fmt_string(&self.stream_id, false) + LedgerName = ledger_name, + StreamId = stream_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -609,7 +691,7 @@ impl DescribeJournalKinesisStreamInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -672,8 +754,8 @@ pub mod describe_journal_s3_export_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeJournalS3ExportInput { - name: self.name.unwrap_or_default(), - export_id: self.export_id.unwrap_or_default(), + name: self.name, + export_id: self.export_id, }) } } @@ -739,14 +821,49 @@ impl DescribeJournalS3ExportInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let export_id = { + let input = &self.export_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "export_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "export_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/ledgers/{Name}/journal-s3-exports/{ExportId}", - Name = smithy_http::label::fmt_string(&self.name, false), - ExportId = smithy_http::label::fmt_string(&self.export_id, false) + Name = name, + ExportId = export_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -754,7 +871,7 @@ impl DescribeJournalS3ExportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -805,9 +922,7 @@ pub mod describe_ledger_input { crate::input::DescribeLedgerInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeLedgerInput { - name: self.name.unwrap_or_default(), - }) + Ok(crate::input::DescribeLedgerInput { name: self.name }) } } } @@ -871,13 +986,26 @@ impl DescribeLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -885,7 +1013,7 @@ impl DescribeLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1013,7 +1141,7 @@ pub mod export_journal_to_s3_input { smithy_http::operation::BuildError, > { Ok(crate::input::ExportJournalToS3Input { - name: self.name.unwrap_or_default(), + name: self.name, inclusive_start_time: self.inclusive_start_time, exclusive_end_time: self.exclusive_end_time, s3_export_configuration: self.s3_export_configuration, @@ -1085,13 +1213,27 @@ impl ExportJournalToS3Input { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/journal-s3-exports", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/journal-s3-exports", Name = name) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1099,7 +1241,7 @@ impl ExportJournalToS3Input { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1180,7 +1322,7 @@ pub mod get_block_input { ) -> std::result::Result { Ok(crate::input::GetBlockInput { - name: self.name.unwrap_or_default(), + name: self.name, block_address: self.block_address, digest_tip_address: self.digest_tip_address, }) @@ -1245,13 +1387,26 @@ impl GetBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/block", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/block", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1259,7 +1414,7 @@ impl GetBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1308,9 +1463,7 @@ pub mod get_digest_input { self, ) -> std::result::Result { - Ok(crate::input::GetDigestInput { - name: self.name.unwrap_or_default(), - }) + Ok(crate::input::GetDigestInput { name: self.name }) } } } @@ -1369,13 +1522,26 @@ impl GetDigestInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/digest", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/digest", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1383,7 +1549,7 @@ impl GetDigestInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1474,7 +1640,7 @@ pub mod get_revision_input { ) -> std::result::Result { Ok(crate::input::GetRevisionInput { - name: self.name.unwrap_or_default(), + name: self.name, block_address: self.block_address, document_id: self.document_id, digest_tip_address: self.digest_tip_address, @@ -1542,13 +1708,26 @@ impl GetRevisionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/revision", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/revision", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1556,7 +1735,7 @@ impl GetRevisionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1633,7 +1812,7 @@ pub mod list_journal_kinesis_streams_for_ledger_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListJournalKinesisStreamsForLedgerInput { - ledger_name: self.ledger_name.unwrap_or_default(), + ledger_name: self.ledger_name, max_results: self.max_results, next_token: self.next_token, }) @@ -1701,13 +1880,31 @@ impl ListJournalKinesisStreamsForLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ledger_name = { + let input = &self.ledger_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/ledgers/{LedgerName}/journal-kinesis-streams", - LedgerName = smithy_http::label::fmt_string(&self.ledger_name, false) + LedgerName = ledger_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -1724,7 +1921,7 @@ impl ListJournalKinesisStreamsForLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -1857,8 +2054,9 @@ impl ListJournalS3ExportsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/journal-s3-exports").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/journal-s3-exports").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -1875,7 +2073,7 @@ impl ListJournalS3ExportsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -1953,7 +2151,7 @@ pub mod list_journal_s3_exports_for_ledger_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListJournalS3ExportsForLedgerInput { - name: self.name.unwrap_or_default(), + name: self.name, max_results: self.max_results, next_token: self.next_token, }) @@ -2021,13 +2219,27 @@ impl ListJournalS3ExportsForLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/journal-s3-exports", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/journal-s3-exports", Name = name) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2044,7 +2256,7 @@ impl ListJournalS3ExportsForLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -2171,8 +2383,9 @@ impl ListLedgersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/ledgers").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/ledgers").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2189,7 +2402,7 @@ impl ListLedgersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -2245,7 +2458,7 @@ pub mod list_tags_for_resource_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListTagsForResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, }) } } @@ -2310,13 +2523,27 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2324,7 +2551,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2480,7 +2707,7 @@ pub mod stream_journal_to_kinesis_input { smithy_http::operation::BuildError, > { Ok(crate::input::StreamJournalToKinesisInput { - ledger_name: self.ledger_name.unwrap_or_default(), + ledger_name: self.ledger_name, role_arn: self.role_arn, tags: self.tags, inclusive_start_time: self.inclusive_start_time, @@ -2554,13 +2781,31 @@ impl StreamJournalToKinesisInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ledger_name = { + let input = &self.ledger_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ledger_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/ledgers/{LedgerName}/journal-kinesis-streams", - LedgerName = smithy_http::label::fmt_string(&self.ledger_name, false) + LedgerName = ledger_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2568,7 +2813,7 @@ impl StreamJournalToKinesisInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2649,7 +2894,7 @@ pub mod tag_resource_input { ) -> std::result::Result { Ok(crate::input::TagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tags: self.tags, }) } @@ -2715,13 +2960,27 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2729,7 +2988,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2796,7 +3055,7 @@ pub mod untag_resource_input { ) -> std::result::Result { Ok(crate::input::UntagResourceInput { - resource_arn: self.resource_arn.unwrap_or_default(), + resource_arn: self.resource_arn, tag_keys: self.tag_keys, }) } @@ -2862,13 +3121,27 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/tags/{ResourceArn}", - ResourceArn = smithy_http::label::fmt_string(&self.resource_arn, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_arn = { + let input = &self.resource_arn; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_arn", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/tags/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -2884,7 +3157,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -2948,7 +3221,7 @@ pub mod update_ledger_input { ) -> std::result::Result { Ok(crate::input::UpdateLedgerInput { - name: self.name.unwrap_or_default(), + name: self.name, deletion_protection: self.deletion_protection, }) } @@ -3017,13 +3290,26 @@ impl UpdateLedgerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}", Name = name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3031,7 +3317,7 @@ impl UpdateLedgerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3125,7 +3411,7 @@ pub mod update_ledger_permissions_mode_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateLedgerPermissionsModeInput { - name: self.name.unwrap_or_default(), + name: self.name, permissions_mode: self.permissions_mode, }) } @@ -3196,13 +3482,27 @@ impl UpdateLedgerPermissionsModeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/ledgers/{Name}/permissions-mode", - Name = smithy_http::label::fmt_string(&self.name, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/ledgers/{Name}/permissions-mode", Name = name) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3210,7 +3510,7 @@ impl UpdateLedgerPermissionsModeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PATCH").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3240,7 +3540,7 @@ impl UpdateLedgerPermissionsModeInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateLedgerPermissionsModeInput { ///

    The name of the ledger.

    - pub name: std::string::String, + pub name: std::option::Option, ///

    The permissions mode to assign to the ledger. This parameter can have one of the /// following values:

    ///
      @@ -3286,7 +3586,7 @@ impl std::fmt::Debug for UpdateLedgerPermissionsModeInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateLedgerInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The flag that prevents a ledger from being deleted by any user. If not provided on /// ledger creation, this feature is enabled (true) by default.

      ///

      If deletion protection is enabled, you must first disable it before you can delete the @@ -3309,7 +3609,7 @@ pub struct UntagResourceInput { ///

      /// arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger ///

      - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

      The list of tag keys to remove.

      pub tag_keys: std::option::Option>, } @@ -3329,7 +3629,7 @@ pub struct TagResourceInput { ///

      /// arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger ///

      - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, ///

      The key-value pairs to add as tags to the specified QLDB resource. Tag keys are case /// sensitive. If you specify a key that already exists for the resource, your request fails /// and returns an error. Tag values are case sensitive and can be null.

      @@ -3350,7 +3650,7 @@ impl std::fmt::Debug for TagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StreamJournalToKinesisInput { ///

      The name of the ledger.

      - pub ledger_name: std::string::String, + pub ledger_name: std::option::Option, ///

      The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a /// journal stream to write data records to a Kinesis Data Streams resource.

      pub role_arn: std::option::Option, @@ -3405,7 +3705,7 @@ pub struct ListTagsForResourceInput { ///

      /// arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger ///

      - pub resource_arn: std::string::String, + pub resource_arn: std::option::Option, } impl std::fmt::Debug for ListTagsForResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3439,7 +3739,7 @@ impl std::fmt::Debug for ListLedgersInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListJournalS3ExportsForLedgerInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The maximum number of results to return in a single /// ListJournalS3ExportsForLedger request. (The actual number of results /// returned might be fewer.)

      @@ -3485,7 +3785,7 @@ impl std::fmt::Debug for ListJournalS3ExportsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListJournalKinesisStreamsForLedgerInput { ///

      The name of the ledger.

      - pub ledger_name: std::string::String, + pub ledger_name: std::option::Option, ///

      The maximum number of results to return in a single /// ListJournalKinesisStreamsForLedger request. (The actual number of results /// returned might be fewer.)

      @@ -3510,7 +3810,7 @@ impl std::fmt::Debug for ListJournalKinesisStreamsForLedgerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetRevisionInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The block location of the document revision to be verified. An address is an Amazon Ion /// structure that has two fields: strandId and sequenceNo.

      ///

      For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}.

      @@ -3538,7 +3838,7 @@ impl std::fmt::Debug for GetRevisionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDigestInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for GetDigestInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3552,7 +3852,7 @@ impl std::fmt::Debug for GetDigestInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBlockInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The location of the block that you want to request. An address is an Amazon Ion /// structure that has two fields: strandId and sequenceNo.

      ///

      For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}.

      @@ -3577,7 +3877,7 @@ impl std::fmt::Debug for GetBlockInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExportJournalToS3Input { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The inclusive start date and time for the range of journal contents to export.

      ///

      The InclusiveStartTime must be in ISO 8601 date and time /// format and in Universal Coordinated Time (UTC). For example: @@ -3626,7 +3926,7 @@ impl std::fmt::Debug for ExportJournalToS3Input { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeLedgerInput { ///

      The name of the ledger that you want to describe.

      - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DescribeLedgerInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3640,10 +3940,10 @@ impl std::fmt::Debug for DescribeLedgerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeJournalS3ExportInput { ///

      The name of the ledger.

      - pub name: std::string::String, + pub name: std::option::Option, ///

      The UUID (represented in Base62-encoded text) of the journal export job to /// describe.

      - pub export_id: std::string::String, + pub export_id: std::option::Option, } impl std::fmt::Debug for DescribeJournalS3ExportInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3658,10 +3958,10 @@ impl std::fmt::Debug for DescribeJournalS3ExportInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeJournalKinesisStreamInput { ///

      The name of the ledger.

      - pub ledger_name: std::string::String, + pub ledger_name: std::option::Option, ///

      The UUID (represented in Base62-encoded text) of the QLDB journal stream to /// describe.

      - pub stream_id: std::string::String, + pub stream_id: std::option::Option, } impl std::fmt::Debug for DescribeJournalKinesisStreamInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3676,7 +3976,7 @@ impl std::fmt::Debug for DescribeJournalKinesisStreamInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteLedgerInput { ///

      The name of the ledger that you want to delete.

      - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DeleteLedgerInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -3751,10 +4051,10 @@ impl std::fmt::Debug for CreateLedgerInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CancelJournalKinesisStreamInput { ///

      The name of the ledger.

      - pub ledger_name: std::string::String, + pub ledger_name: std::option::Option, ///

      The UUID (represented in Base62-encoded text) of the QLDB journal stream to be /// canceled.

      - pub stream_id: std::string::String, + pub stream_id: std::option::Option, } impl std::fmt::Debug for CancelJournalKinesisStreamInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/qldb/src/instant_epoch.rs b/sdk/qldb/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/qldb/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/qldb/src/json_deser.rs b/sdk/qldb/src/json_deser.rs index dd81789231b5..dab5106c40f0 100644 --- a/sdk/qldb/src/json_deser.rs +++ b/sdk/qldb/src/json_deser.rs @@ -1,436 +1,1839 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn invalid_parameter_exception( +pub fn deser_structure_invalid_parameter_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_parameter_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidParameterError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_parameter_name(parsed_body.parameter_name); + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ParameterName" => { + builder = builder.set_parameter_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_not_found_exception( +pub fn deser_structure_resource_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_resource_type(parsed_body.resource_type); - builder = builder.set_resource_name(parsed_body.resource_name); + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceName" => { + builder = builder.set_resource_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_precondition_not_met_exception( +pub fn deser_structure_resource_precondition_not_met_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_precondition_not_met_error::Builder, -) -> std::result::Result< - crate::error::resource_precondition_not_met_error::Builder, - serde_json::Error, + mut builder: crate::error::resource_precondition_not_met_exception::Builder, +) -> Result< + crate::error::resource_precondition_not_met_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::ResourcePreconditionNotMetError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_resource_type(parsed_body.resource_type); - builder = builder.set_resource_name(parsed_body.resource_name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceName" => { + builder = builder.set_resource_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn cancel_journal_kinesis_stream_deser_operation( +pub fn deser_operation_cancel_journal_kinesis_stream( input: &[u8], mut builder: crate::output::cancel_journal_kinesis_stream_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::cancel_journal_kinesis_stream_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CancelJournalKinesisStreamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_id(parsed_body.stream_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamId" => { + builder = builder.set_stream_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn limit_exceeded_exception( +pub fn deser_structure_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::limit_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LimitExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_resource_type(parsed_body.resource_type); + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_already_exists_exception( +pub fn deser_structure_resource_already_exists_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_already_exists_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceAlreadyExistsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_resource_type(parsed_body.resource_type); - builder = builder.set_resource_name(parsed_body.resource_name); + mut builder: crate::error::resource_already_exists_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceName" => { + builder = builder.set_resource_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_in_use_exception( +pub fn deser_structure_resource_in_use_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_in_use_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceInUseError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_resource_type(parsed_body.resource_type); - builder = builder.set_resource_name(parsed_body.resource_name); + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceName" => { + builder = builder.set_resource_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_ledger_deser_operation( +pub fn deser_operation_create_ledger( input: &[u8], mut builder: crate::output::create_ledger_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateLedgerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_creation_date_time(parsed_body.creation_date_time); - builder = builder.set_permissions_mode(parsed_body.permissions_mode); - builder = builder.set_deletion_protection(parsed_body.deletion_protection); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeletionProtection" => { + builder = builder.set_deletion_protection( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PermissionsMode" => { + builder = builder.set_permissions_mode( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PermissionsMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LedgerState::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_journal_kinesis_stream_deser_operation( +pub fn deser_operation_describe_journal_kinesis_stream( input: &[u8], mut builder: crate::output::describe_journal_kinesis_stream_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_journal_kinesis_stream_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeJournalKinesisStreamOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream(parsed_body.stream); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Stream" => { + builder = builder.set_stream( + crate::json_deser::deser_structure_journal_kinesis_stream_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_journal_s3_export_deser_operation( +pub fn deser_operation_describe_journal_s3_export( input: &[u8], mut builder: crate::output::describe_journal_s3_export_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeJournalS3ExportOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_description(parsed_body.export_description); +) -> Result< + crate::output::describe_journal_s3_export_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportDescription" => { + builder = builder.set_export_description( + crate::json_deser::deser_structure_journal_s3_export_description( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_ledger_deser_operation( +pub fn deser_operation_describe_ledger( input: &[u8], mut builder: crate::output::describe_ledger_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLedgerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_creation_date_time(parsed_body.creation_date_time); - builder = builder.set_permissions_mode(parsed_body.permissions_mode); - builder = builder.set_deletion_protection(parsed_body.deletion_protection); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeletionProtection" => { + builder = builder.set_deletion_protection( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PermissionsMode" => { + builder = builder.set_permissions_mode( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PermissionsMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LedgerState::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn export_journal_to_s3_deser_operation( +pub fn deser_operation_export_journal_to_s3( input: &[u8], mut builder: crate::output::export_journal_to_s3_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExportJournalToS3OutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_export_id(parsed_body.export_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExportId" => { + builder = builder.set_export_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_block_deser_operation( +pub fn deser_operation_get_block( input: &[u8], mut builder: crate::output::get_block_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetBlockOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_block(parsed_body.block); - builder = builder.set_proof(parsed_body.proof); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Block" => { + builder = builder + .set_block(crate::json_deser::deser_structure_value_holder(tokens)?); + } + "Proof" => { + builder = builder + .set_proof(crate::json_deser::deser_structure_value_holder(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_digest_deser_operation( +pub fn deser_operation_get_digest( input: &[u8], mut builder: crate::output::get_digest_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDigestOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_digest(parsed_body.digest); - builder = builder.set_digest_tip_address(parsed_body.digest_tip_address); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Digest" => { + builder = builder.set_digest( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "DigestTipAddress" => { + builder = builder.set_digest_tip_address( + crate::json_deser::deser_structure_value_holder(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_revision_deser_operation( +pub fn deser_operation_get_revision( input: &[u8], mut builder: crate::output::get_revision_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRevisionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_proof(parsed_body.proof); - builder = builder.set_revision(parsed_body.revision); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Proof" => { + builder = builder + .set_proof(crate::json_deser::deser_structure_value_holder(tokens)?); + } + "Revision" => { + builder = builder + .set_revision(crate::json_deser::deser_structure_value_holder(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_journal_kinesis_streams_for_ledger_deser_operation( +pub fn deser_operation_list_journal_kinesis_streams_for_ledger( input: &[u8], mut builder: crate::output::list_journal_kinesis_streams_for_ledger_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_journal_kinesis_streams_for_ledger_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListJournalKinesisStreamsForLedgerOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_streams(parsed_body.streams); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Streams" => { + builder = builder.set_streams( + crate::json_deser::deser_list_journal_kinesis_stream_description_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_journal_s3_exports_deser_operation( +pub fn deser_operation_list_journal_s3_exports( input: &[u8], mut builder: crate::output::list_journal_s3_exports_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListJournalS3ExportsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_journal_s3_exports(parsed_body.journal_s3_exports); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JournalS3Exports" => { + builder = builder.set_journal_s3_exports( + crate::json_deser::deser_list_journal_s3_export_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_journal_s3_exports_for_ledger_deser_operation( +pub fn deser_operation_list_journal_s3_exports_for_ledger( input: &[u8], mut builder: crate::output::list_journal_s3_exports_for_ledger_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_journal_s3_exports_for_ledger_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListJournalS3ExportsForLedgerOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_journal_s3_exports(parsed_body.journal_s3_exports); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JournalS3Exports" => { + builder = builder.set_journal_s3_exports( + crate::json_deser::deser_list_journal_s3_export_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_ledgers_deser_operation( +pub fn deser_operation_list_ledgers( input: &[u8], mut builder: crate::output::list_ledgers_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListLedgersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ledgers(parsed_body.ledgers); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Ledgers" => { + builder = + builder.set_ledgers(crate::json_deser::deser_list_ledger_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_map_tags(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stream_journal_to_kinesis_deser_operation( +pub fn deser_operation_stream_journal_to_kinesis( input: &[u8], mut builder: crate::output::stream_journal_to_kinesis_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::StreamJournalToKinesisOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_stream_id(parsed_body.stream_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamId" => { + builder = builder.set_stream_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_ledger_deser_operation( +pub fn deser_operation_update_ledger( input: &[u8], mut builder: crate::output::update_ledger_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateLedgerOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_state(parsed_body.state); - builder = builder.set_creation_date_time(parsed_body.creation_date_time); - builder = builder.set_deletion_protection(parsed_body.deletion_protection); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeletionProtection" => { + builder = builder.set_deletion_protection( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LedgerState::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_ledger_permissions_mode_deser_operation( +pub fn deser_operation_update_ledger_permissions_mode( input: &[u8], mut builder: crate::output::update_ledger_permissions_mode_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_ledger_permissions_mode_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateLedgerPermissionsModeOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_permissions_mode(parsed_body.permissions_mode); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PermissionsMode" => { + builder = builder.set_permissions_mode( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PermissionsMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_journal_kinesis_stream_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JournalKinesisStreamDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LedgerName" => { + builder = builder.set_ledger_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "InclusiveStartTime" => { + builder = builder.set_inclusive_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExclusiveEndTime" => { + builder = builder.set_exclusive_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamId" => { + builder = builder.set_stream_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StreamStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KinesisConfiguration" => { + builder = builder.set_kinesis_configuration( + crate::json_deser::deser_structure_kinesis_configuration( + tokens, + )?, + ); + } + "ErrorCause" => { + builder = builder.set_error_cause( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ErrorCause::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StreamName" => { + builder = builder.set_stream_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_journal_s3_export_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JournalS3ExportDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LedgerName" => { + builder = builder.set_ledger_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportId" => { + builder = builder.set_export_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExportCreationTime" => { + builder = builder.set_export_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExportStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "InclusiveStartTime" => { + builder = builder.set_inclusive_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExclusiveEndTime" => { + builder = builder.set_exclusive_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "S3ExportConfiguration" => { + builder = builder.set_s3_export_configuration( + crate::json_deser::deser_structure_s3_export_configuration( + tokens, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_value_holder<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ValueHolder::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IonText" => { + builder = builder.set_ion_text( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_journal_kinesis_stream_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_journal_kinesis_stream_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_journal_s3_export_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_journal_s3_export_description( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ledger_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ledger_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_tags<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + map.insert(key, value); + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kinesis_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KinesisConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StreamArn" => { + builder = builder.set_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AggregationEnabled" => { + builder = builder.set_aggregation_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_s3_export_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3ExportConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Bucket" => { + builder = builder.set_bucket( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Prefix" => { + builder = builder.set_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EncryptionConfiguration" => { + builder = builder.set_encryption_configuration( + crate::json_deser::deser_structure_s3_encryption_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ledger_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LedgerSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LedgerState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationDateTime" => { + builder = builder.set_creation_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_s3_encryption_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3EncryptionConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ObjectEncryptionType" => { + builder = builder.set_object_encryption_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::S3ObjectEncryptionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "KmsKeyArn" => { + builder = builder.set_kms_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/qldb/src/json_errors.rs b/sdk/qldb/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/qldb/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/qldb/src/lib.rs b/sdk/qldb/src/lib.rs index 8bcfe0adc516..87cab86dcad2 100644 --- a/sdk/qldb/src/lib.rs +++ b/sdk/qldb/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

      The control plane for Amazon QLDB

      // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. @@ -11,24 +12,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/qldb/src/model.rs b/sdk/qldb/src/model.rs index fad46e0eeccd..547aa33ad9a3 100644 --- a/sdk/qldb/src/model.rs +++ b/sdk/qldb/src/model.rs @@ -27,7 +27,7 @@ impl std::convert::From<&str> for PermissionsMode { impl std::str::FromStr for PermissionsMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PermissionsMode::from(s)) } } @@ -45,15 +45,6 @@ impl AsRef for PermissionsMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PermissionsMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -87,7 +78,7 @@ impl std::convert::From<&str> for LedgerState { impl std::str::FromStr for LedgerState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LedgerState::from(s)) } } @@ -107,24 +98,13 @@ impl AsRef for LedgerState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LedgerState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

      The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal /// stream.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KinesisConfiguration { ///

      The Amazon Resource Name (ARN) of the Kinesis Data Streams resource.

      - #[serde(rename = "StreamArn")] - #[serde(default)] pub stream_arn: std::option::Option, ///

      Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the /// number of records sent per API call.

      @@ -133,8 +113,6 @@ pub struct KinesisConfiguration { /// implications for processing records and requires de-aggregation in your stream consumer. To /// learn more, see KPL Key Concepts and Consumer De-aggregation in the Amazon Kinesis Data Streams Developer /// Guide.

      - #[serde(rename = "AggregationEnabled")] - #[serde(default)] pub aggregation_enabled: std::option::Option, } impl std::fmt::Debug for KinesisConfiguration { @@ -197,23 +175,14 @@ impl KinesisConfiguration { ///

      Information about a ledger, including its name, state, and when it was created.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LedgerSummary { ///

      The name of the ledger.

      - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

      The current status of the ledger.

      - #[serde(rename = "State")] - #[serde(default)] pub state: std::option::Option, ///

      The date and time, in epoch time format, when the ledger was created. (Epoch time format /// is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

      - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date_time: std::option::Option, } impl std::fmt::Debug for LedgerSummary { @@ -287,48 +256,25 @@ impl LedgerSummary { ///

      Information about a journal export job, including the ledger name, export ID, creation /// time, current status, and the parameters of the original export creation request.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JournalS3ExportDescription { ///

      The name of the ledger.

      - #[serde(rename = "LedgerName")] - #[serde(default)] pub ledger_name: std::option::Option, ///

      The UUID (represented in Base62-encoded text) of the journal export job.

      - #[serde(rename = "ExportId")] - #[serde(default)] pub export_id: std::option::Option, ///

      The date and time, in epoch time format, when the export job was created. (Epoch time /// format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

      - #[serde(rename = "ExportCreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub export_creation_time: std::option::Option, ///

      The current state of the journal export job.

      - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

      The inclusive start date and time for the range of journal contents that are specified /// in the original export request.

      - #[serde(rename = "InclusiveStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub inclusive_start_time: std::option::Option, ///

      The exclusive end date and time for the range of journal contents that are specified in /// the original export request.

      - #[serde(rename = "ExclusiveEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub exclusive_end_time: std::option::Option, ///

      The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal /// contents.

      - #[serde(rename = "S3ExportConfiguration")] - #[serde(default)] pub s3_export_configuration: std::option::Option, ///

      The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a /// journal export job to do the following:

      @@ -341,8 +287,6 @@ pub struct JournalS3ExportDescription { /// KMS) for server-side encryption of your exported data.

      /// ///
    - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, } impl std::fmt::Debug for JournalS3ExportDescription { @@ -505,14 +449,12 @@ impl JournalS3ExportDescription { ///

    The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal /// contents.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3ExportConfiguration { ///

    The Amazon S3 bucket name in which a journal export job writes the journal contents.

    ///

    The bucket name must comply with the Amazon S3 bucket naming conventions. For more /// information, see Bucket Restrictions and /// Limitations in the Amazon S3 Developer Guide.

    - #[serde(rename = "Bucket")] - #[serde(default)] pub bucket: std::option::Option, ///

    The prefix for the Amazon S3 bucket in which a journal export job writes the journal /// contents.

    @@ -537,13 +479,9 @@ pub struct S3ExportConfiguration { ///

    /// /// - #[serde(rename = "Prefix")] - #[serde(default)] pub prefix: std::option::Option, ///

    The encryption settings that are used by a journal export job to write data in an Amazon S3 /// bucket.

    - #[serde(rename = "EncryptionConfiguration")] - #[serde(default)] pub encryption_configuration: std::option::Option, } impl std::fmt::Debug for S3ExportConfiguration { @@ -646,14 +584,12 @@ impl S3ExportConfiguration { ///

    The encryption settings that are used by a journal export job to write data in an /// Amazon Simple Storage Service (Amazon S3) bucket.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3EncryptionConfiguration { ///

    The Amazon S3 object encryption type.

    ///

    To learn more about server-side encryption options in Amazon S3, see Protecting Data /// Using Server-Side Encryption in the Amazon S3 Developer /// Guide.

    - #[serde(rename = "ObjectEncryptionType")] - #[serde(default)] pub object_encryption_type: std::option::Option, ///

    The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS Key /// Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs.

    @@ -662,8 +598,6 @@ pub struct S3EncryptionConfiguration { ///

    /// KmsKeyArn is not required if you specify SSE_S3 as the /// ObjectEncryptionType.

    - #[serde(rename = "KmsKeyArn")] - #[serde(default)] pub kms_key_arn: std::option::Option, } impl std::fmt::Debug for S3EncryptionConfiguration { @@ -764,7 +698,7 @@ impl std::convert::From<&str> for S3ObjectEncryptionType { impl std::str::FromStr for S3ObjectEncryptionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(S3ObjectEncryptionType::from(s)) } } @@ -783,15 +717,6 @@ impl AsRef for S3ObjectEncryptionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for S3ObjectEncryptionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -823,7 +748,7 @@ impl std::convert::From<&str> for ExportStatus { impl std::str::FromStr for ExportStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExportStatus::from(s)) } } @@ -842,81 +767,41 @@ impl AsRef for ExportStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExportStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about an Amazon QLDB journal stream, including the Amazon Resource Name /// (ARN), stream name, creation time, current status, and the parameters of the original /// stream creation request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JournalKinesisStreamDescription { ///

    The name of the ledger.

    - #[serde(rename = "LedgerName")] - #[serde(default)] pub ledger_name: std::option::Option, ///

    The date and time, in epoch time format, when the QLDB journal stream was created. /// (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 /// UTC.)

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The inclusive start date and time from which to start streaming journal data.

    - #[serde(rename = "InclusiveStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub inclusive_start_time: std::option::Option, ///

    The exclusive date and time that specifies when the stream ends. If this parameter is /// blank, the stream runs indefinitely until you cancel it.

    - #[serde(rename = "ExclusiveEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub exclusive_end_time: std::option::Option, ///

    The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a /// journal stream to write data records to a Kinesis Data Streams resource.

    - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

    The UUID (represented in Base62-encoded text) of the QLDB journal stream.

    - #[serde(rename = "StreamId")] - #[serde(default)] pub stream_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the QLDB journal stream.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, ///

    The current state of the QLDB journal stream.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The configuration settings of the Amazon Kinesis Data Streams destination for a QLDB journal /// stream.

    - #[serde(rename = "KinesisConfiguration")] - #[serde(default)] pub kinesis_configuration: std::option::Option, ///

    The error message that describes the reason that a stream has a status of /// IMPAIRED or FAILED. This is not applicable to streams that /// have other status values.

    - #[serde(rename = "ErrorCause")] - #[serde(default)] pub error_cause: std::option::Option, ///

    The user-defined name of the QLDB journal stream.

    - #[serde(rename = "StreamName")] - #[serde(default)] pub stream_name: std::option::Option, } impl std::fmt::Debug for JournalKinesisStreamDescription { @@ -1132,7 +1017,7 @@ impl std::convert::From<&str> for ErrorCause { impl std::str::FromStr for ErrorCause { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ErrorCause::from(s)) } } @@ -1150,15 +1035,6 @@ impl AsRef for ErrorCause { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ErrorCause { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1194,7 +1070,7 @@ impl std::convert::From<&str> for StreamStatus { impl std::str::FromStr for StreamStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StreamStatus::from(s)) } } @@ -1215,23 +1091,12 @@ impl AsRef for StreamStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StreamStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A structure that can contain a value in multiple encoding formats.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ValueHolder { ///

    An Amazon Ion plaintext value contained in a ValueHolder structure.

    - #[serde(rename = "IonText")] - #[serde(default)] pub ion_text: std::option::Option, } impl std::fmt::Debug for ValueHolder { diff --git a/sdk/qldb/src/operation_deser.rs b/sdk/qldb/src/operation_deser.rs index 1bd310ecb4ce..a3ee7b5d3fb1 100644 --- a/sdk/qldb/src/operation_deser.rs +++ b/sdk/qldb/src/operation_deser.rs @@ -17,53 +17,25 @@ pub fn parse_cancel_journal_kinesis_stream_error( } }; Err(match error_code { - "InvalidParameterException" => crate::error::CancelJournalKinesisStreamError { - meta: generic, - kind: crate::error::CancelJournalKinesisStreamErrorKind::InvalidParameterError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; - output.build() - }), - }, - "ResourceNotFoundException" => crate::error::CancelJournalKinesisStreamError { - meta: generic, - kind: crate::error::CancelJournalKinesisStreamErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; - output.build() - }), - }, - "ResourcePreconditionNotMetException" => crate::error::CancelJournalKinesisStreamError { - meta: generic, - kind: - crate::error::CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError( - { - #[allow(unused_mut)] - let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::CancelJournalKinesisStreamError::generic(generic), + "InvalidParameterException" => crate::error::CancelJournalKinesisStreamError { meta: generic, kind: crate::error::CancelJournalKinesisStreamErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::CancelJournalKinesisStreamError { meta: generic, kind: crate::error::CancelJournalKinesisStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; + output.build() + })}, + "ResourcePreconditionNotMetException" => crate::error::CancelJournalKinesisStreamError { meta: generic, kind: crate::error::CancelJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException({ + #[allow(unused_mut)]let mut output = crate::error::resource_precondition_not_met_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CancelJournalKinesisStreamError::unhandled)?; + output.build() + })}, + _ => crate::error::CancelJournalKinesisStreamError::generic(generic) }) } @@ -78,7 +50,7 @@ pub fn parse_cancel_journal_kinesis_stream_response( #[allow(unused_mut)] let mut output = crate::output::cancel_journal_kinesis_stream_output::Builder::default(); let _ = response; - output = crate::json_deser::cancel_journal_kinesis_stream_deser_operation( + output = crate::json_deser::deser_operation_cancel_journal_kinesis_stream( response.body().as_ref(), output, ) @@ -100,11 +72,11 @@ pub fn parse_create_ledger_error( Err(match error_code { "InvalidParameterException" => crate::error::CreateLedgerError { meta: generic, - kind: crate::error::CreateLedgerErrorKind::InvalidParameterError({ + kind: crate::error::CreateLedgerErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -114,23 +86,11 @@ pub fn parse_create_ledger_error( }, "LimitExceededException" => crate::error::CreateLedgerError { meta: generic, - kind: crate::error::CreateLedgerErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateLedgerError::unhandled)?; - output.build() - }), - }, - "ResourceAlreadyExistsException" => crate::error::CreateLedgerError { - meta: generic, - kind: crate::error::CreateLedgerErrorKind::ResourceAlreadyExistsError({ + kind: crate::error::CreateLedgerErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::resource_already_exists_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_already_exists_exception( + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( response.body().as_ref(), output, ) @@ -138,15 +98,30 @@ pub fn parse_create_ledger_error( output.build() }), }, + "ResourceAlreadyExistsException" => { + crate::error::CreateLedgerError { + meta: generic, + kind: crate::error::CreateLedgerErrorKind::ResourceAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateLedgerError::unhandled)?; + output.build() + }), + } + } "ResourceInUseException" => crate::error::CreateLedgerError { meta: generic, - kind: crate::error::CreateLedgerErrorKind::ResourceInUseError({ + kind: crate::error::CreateLedgerErrorKind::ResourceInUseException({ #[allow(unused_mut)] - let mut output = crate::error::resource_in_use_error::Builder::default(); + let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; - output = - crate::json_deser::resource_in_use_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLedgerError::unhandled)?; output.build() }), }, @@ -162,7 +137,7 @@ pub fn parse_create_ledger_response( #[allow(unused_mut)] let mut output = crate::output::create_ledger_output::Builder::default(); let _ = response; - output = crate::json_deser::create_ledger_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_create_ledger(response.body().as_ref(), output) .map_err(crate::error::CreateLedgerError::unhandled)?; output.build() }) @@ -181,11 +156,11 @@ pub fn parse_delete_ledger_error( Err(match error_code { "InvalidParameterException" => crate::error::DeleteLedgerError { meta: generic, - kind: crate::error::DeleteLedgerErrorKind::InvalidParameterError({ + kind: crate::error::DeleteLedgerErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -195,23 +170,25 @@ pub fn parse_delete_ledger_error( }, "ResourceInUseException" => crate::error::DeleteLedgerError { meta: generic, - kind: crate::error::DeleteLedgerErrorKind::ResourceInUseError({ + kind: crate::error::DeleteLedgerErrorKind::ResourceInUseException({ #[allow(unused_mut)] - let mut output = crate::error::resource_in_use_error::Builder::default(); + let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; - output = - crate::json_deser::resource_in_use_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteLedgerError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::DeleteLedgerError { meta: generic, - kind: crate::error::DeleteLedgerErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteLedgerErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -221,16 +198,12 @@ pub fn parse_delete_ledger_error( }, "ResourcePreconditionNotMetException" => crate::error::DeleteLedgerError { meta: generic, - kind: crate::error::DeleteLedgerErrorKind::ResourcePreconditionNotMetError({ + kind: crate::error::DeleteLedgerErrorKind::ResourcePreconditionNotMetException({ #[allow(unused_mut)] let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); + crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteLedgerError::unhandled)?; output.build() }), }, @@ -268,53 +241,25 @@ pub fn parse_describe_journal_kinesis_stream_error( } }; Err(match error_code { - "InvalidParameterException" => crate::error::DescribeJournalKinesisStreamError { - meta: generic, - kind: crate::error::DescribeJournalKinesisStreamErrorKind::InvalidParameterError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); - let _ = response; - output = crate::json_deser::invalid_parameter_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; - output.build() - }), - }, - "ResourceNotFoundException" => crate::error::DescribeJournalKinesisStreamError { - meta: generic, - kind: crate::error::DescribeJournalKinesisStreamErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_not_found_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; - output.build() - }), - }, - "ResourcePreconditionNotMetException" => crate::error::DescribeJournalKinesisStreamError { - meta: generic, - kind: - crate::error::DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetError( - { - #[allow(unused_mut)] - let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::DescribeJournalKinesisStreamError::generic(generic), + "InvalidParameterException" => crate::error::DescribeJournalKinesisStreamError { meta: generic, kind: crate::error::DescribeJournalKinesisStreamErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; + output.build() + })}, + "ResourceNotFoundException" => crate::error::DescribeJournalKinesisStreamError { meta: generic, kind: crate::error::DescribeJournalKinesisStreamErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; + output.build() + })}, + "ResourcePreconditionNotMetException" => crate::error::DescribeJournalKinesisStreamError { meta: generic, kind: crate::error::DescribeJournalKinesisStreamErrorKind::ResourcePreconditionNotMetException({ + #[allow(unused_mut)]let mut output = crate::error::resource_precondition_not_met_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeJournalKinesisStreamError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeJournalKinesisStreamError::generic(generic) }) } @@ -329,7 +274,7 @@ pub fn parse_describe_journal_kinesis_stream_response( #[allow(unused_mut)] let mut output = crate::output::describe_journal_kinesis_stream_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_journal_kinesis_stream_deser_operation( + output = crate::json_deser::deser_operation_describe_journal_kinesis_stream( response.body().as_ref(), output, ) @@ -358,11 +303,11 @@ pub fn parse_describe_journal_s3_export_error( Err(match error_code { "ResourceNotFoundException" => crate::error::DescribeJournalS3ExportError { meta: generic, - kind: crate::error::DescribeJournalS3ExportErrorKind::ResourceNotFoundError({ + kind: crate::error::DescribeJournalS3ExportErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -385,7 +330,7 @@ pub fn parse_describe_journal_s3_export_response( #[allow(unused_mut)] let mut output = crate::output::describe_journal_s3_export_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_journal_s3_export_deser_operation( + output = crate::json_deser::deser_operation_describe_journal_s3_export( response.body().as_ref(), output, ) @@ -407,11 +352,11 @@ pub fn parse_describe_ledger_error( Err(match error_code { "InvalidParameterException" => crate::error::DescribeLedgerError { meta: generic, - kind: crate::error::DescribeLedgerErrorKind::InvalidParameterError({ + kind: crate::error::DescribeLedgerErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -421,11 +366,11 @@ pub fn parse_describe_ledger_error( }, "ResourceNotFoundException" => crate::error::DescribeLedgerError { meta: generic, - kind: crate::error::DescribeLedgerErrorKind::ResourceNotFoundError({ + kind: crate::error::DescribeLedgerErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -446,7 +391,7 @@ pub fn parse_describe_ledger_response( let mut output = crate::output::describe_ledger_output::Builder::default(); let _ = response; output = - crate::json_deser::describe_ledger_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_describe_ledger(response.body().as_ref(), output) .map_err(crate::error::DescribeLedgerError::unhandled)?; output.build() }) @@ -466,11 +411,11 @@ pub fn parse_export_journal_to_s3_error( Err(match error_code { "ResourceNotFoundException" => crate::error::ExportJournalToS3Error { meta: generic, - kind: crate::error::ExportJournalToS3ErrorKind::ResourceNotFoundError({ + kind: crate::error::ExportJournalToS3ErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -480,16 +425,12 @@ pub fn parse_export_journal_to_s3_error( }, "ResourcePreconditionNotMetException" => crate::error::ExportJournalToS3Error { meta: generic, - kind: crate::error::ExportJournalToS3ErrorKind::ResourcePreconditionNotMetError({ + kind: crate::error::ExportJournalToS3ErrorKind::ResourcePreconditionNotMetException({ #[allow(unused_mut)] let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); + crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ExportJournalToS3Error::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ExportJournalToS3Error::unhandled)?; output.build() }), }, @@ -506,7 +447,7 @@ pub fn parse_export_journal_to_s3_response( #[allow(unused_mut)] let mut output = crate::output::export_journal_to_s3_output::Builder::default(); let _ = response; - output = crate::json_deser::export_journal_to_s3_deser_operation( + output = crate::json_deser::deser_operation_export_journal_to_s3( response.body().as_ref(), output, ) @@ -528,11 +469,11 @@ pub fn parse_get_block_error( Err(match error_code { "InvalidParameterException" => crate::error::GetBlockError { meta: generic, - kind: crate::error::GetBlockErrorKind::InvalidParameterError({ + kind: crate::error::GetBlockErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -542,11 +483,11 @@ pub fn parse_get_block_error( }, "ResourceNotFoundException" => crate::error::GetBlockError { meta: generic, - kind: crate::error::GetBlockErrorKind::ResourceNotFoundError({ + kind: crate::error::GetBlockErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -556,16 +497,12 @@ pub fn parse_get_block_error( }, "ResourcePreconditionNotMetException" => crate::error::GetBlockError { meta: generic, - kind: crate::error::GetBlockErrorKind::ResourcePreconditionNotMetError({ + kind: crate::error::GetBlockErrorKind::ResourcePreconditionNotMetException({ #[allow(unused_mut)] let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); + crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetBlockError::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetBlockError::unhandled)?; output.build() }), }, @@ -581,7 +518,7 @@ pub fn parse_get_block_response( #[allow(unused_mut)] let mut output = crate::output::get_block_output::Builder::default(); let _ = response; - output = crate::json_deser::get_block_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_block(response.body().as_ref(), output) .map_err(crate::error::GetBlockError::unhandled)?; output.build() }) @@ -600,11 +537,11 @@ pub fn parse_get_digest_error( Err(match error_code { "InvalidParameterException" => crate::error::GetDigestError { meta: generic, - kind: crate::error::GetDigestErrorKind::InvalidParameterError({ + kind: crate::error::GetDigestErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -614,11 +551,11 @@ pub fn parse_get_digest_error( }, "ResourceNotFoundException" => crate::error::GetDigestError { meta: generic, - kind: crate::error::GetDigestErrorKind::ResourceNotFoundError({ + kind: crate::error::GetDigestErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -628,16 +565,12 @@ pub fn parse_get_digest_error( }, "ResourcePreconditionNotMetException" => crate::error::GetDigestError { meta: generic, - kind: crate::error::GetDigestErrorKind::ResourcePreconditionNotMetError({ + kind: crate::error::GetDigestErrorKind::ResourcePreconditionNotMetException({ #[allow(unused_mut)] let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); + crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetDigestError::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetDigestError::unhandled)?; output.build() }), }, @@ -653,7 +586,7 @@ pub fn parse_get_digest_response( #[allow(unused_mut)] let mut output = crate::output::get_digest_output::Builder::default(); let _ = response; - output = crate::json_deser::get_digest_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_digest(response.body().as_ref(), output) .map_err(crate::error::GetDigestError::unhandled)?; output.build() }) @@ -672,11 +605,11 @@ pub fn parse_get_revision_error( Err(match error_code { "InvalidParameterException" => crate::error::GetRevisionError { meta: generic, - kind: crate::error::GetRevisionErrorKind::InvalidParameterError({ + kind: crate::error::GetRevisionErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -686,11 +619,11 @@ pub fn parse_get_revision_error( }, "ResourceNotFoundException" => crate::error::GetRevisionError { meta: generic, - kind: crate::error::GetRevisionErrorKind::ResourceNotFoundError({ + kind: crate::error::GetRevisionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -700,16 +633,12 @@ pub fn parse_get_revision_error( }, "ResourcePreconditionNotMetException" => crate::error::GetRevisionError { meta: generic, - kind: crate::error::GetRevisionErrorKind::ResourcePreconditionNotMetError({ + kind: crate::error::GetRevisionErrorKind::ResourcePreconditionNotMetException({ #[allow(unused_mut)] let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); + crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetRevisionError::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetRevisionError::unhandled)?; output.build() }), }, @@ -725,7 +654,7 @@ pub fn parse_get_revision_response( #[allow(unused_mut)] let mut output = crate::output::get_revision_output::Builder::default(); let _ = response; - output = crate::json_deser::get_revision_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_revision(response.body().as_ref(), output) .map_err(crate::error::GetRevisionError::unhandled)?; output.build() }) @@ -747,22 +676,22 @@ pub fn parse_list_journal_kinesis_streams_for_ledger_error( } }; Err(match error_code { - "InvalidParameterException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterError({ - #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_error::Builder::default(); + "InvalidParameterException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; output.build() })}, - "ResourceNotFoundException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::resource_not_found_error::Builder::default(); + "ResourceNotFoundException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; output.build() })}, - "ResourcePreconditionNotMetException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetError({ - #[allow(unused_mut)]let mut output = crate::error::resource_precondition_not_met_error::Builder::default(); + "ResourcePreconditionNotMetException" => crate::error::ListJournalKinesisStreamsForLedgerError { meta: generic, kind: crate::error::ListJournalKinesisStreamsForLedgerErrorKind::ResourcePreconditionNotMetException({ + #[allow(unused_mut)]let mut output = crate::error::resource_precondition_not_met_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListJournalKinesisStreamsForLedgerError::unhandled)?; output.build() })}, _ => crate::error::ListJournalKinesisStreamsForLedgerError::generic(generic) @@ -781,7 +710,7 @@ pub fn parse_list_journal_kinesis_streams_for_ledger_response( let mut output = crate::output::list_journal_kinesis_streams_for_ledger_output::Builder::default(); let _ = response; - output = crate::json_deser::list_journal_kinesis_streams_for_ledger_deser_operation( + output = crate::json_deser::deser_operation_list_journal_kinesis_streams_for_ledger( response.body().as_ref(), output, ) @@ -813,7 +742,7 @@ pub fn parse_list_journal_s3_exports_response( #[allow(unused_mut)] let mut output = crate::output::list_journal_s3_exports_output::Builder::default(); let _ = response; - output = crate::json_deser::list_journal_s3_exports_deser_operation( + output = crate::json_deser::deser_operation_list_journal_s3_exports( response.body().as_ref(), output, ) @@ -848,7 +777,7 @@ pub fn parse_list_journal_s3_exports_for_ledger_response( let mut output = crate::output::list_journal_s3_exports_for_ledger_output::Builder::default(); let _ = response; - output = crate::json_deser::list_journal_s3_exports_for_ledger_deser_operation( + output = crate::json_deser::deser_operation_list_journal_s3_exports_for_ledger( response.body().as_ref(), output, ) @@ -874,7 +803,7 @@ pub fn parse_list_ledgers_response( #[allow(unused_mut)] let mut output = crate::output::list_ledgers_output::Builder::default(); let _ = response; - output = crate::json_deser::list_ledgers_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_ledgers(response.body().as_ref(), output) .map_err(crate::error::ListLedgersError::unhandled)?; output.build() }) @@ -896,11 +825,11 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "InvalidParameterException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterError({ + kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -910,11 +839,11 @@ pub fn parse_list_tags_for_resource_error( }, "ResourceNotFoundException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -937,7 +866,7 @@ pub fn parse_list_tags_for_resource_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_for_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_for_resource_deser_operation( + output = crate::json_deser::deser_operation_list_tags_for_resource( response.body().as_ref(), output, ) @@ -966,11 +895,11 @@ pub fn parse_stream_journal_to_kinesis_error( Err(match error_code { "InvalidParameterException" => crate::error::StreamJournalToKinesisError { meta: generic, - kind: crate::error::StreamJournalToKinesisErrorKind::InvalidParameterError({ + kind: crate::error::StreamJournalToKinesisErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -980,11 +909,11 @@ pub fn parse_stream_journal_to_kinesis_error( }, "ResourceNotFoundException" => crate::error::StreamJournalToKinesisError { meta: generic, - kind: crate::error::StreamJournalToKinesisErrorKind::ResourceNotFoundError({ + kind: crate::error::StreamJournalToKinesisErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -994,18 +923,18 @@ pub fn parse_stream_journal_to_kinesis_error( }, "ResourcePreconditionNotMetException" => crate::error::StreamJournalToKinesisError { meta: generic, - kind: crate::error::StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetError({ - #[allow(unused_mut)] - let mut output = - crate::error::resource_precondition_not_met_error::Builder::default(); - let _ = response; - output = crate::json_deser::resource_precondition_not_met_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::StreamJournalToKinesisError::unhandled)?; - output.build() - }), + kind: + crate::error::StreamJournalToKinesisErrorKind::ResourcePreconditionNotMetException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_precondition_not_met_exception::Builder::default( + ); + let _ = response; + output = crate::json_deser::deser_structure_resource_precondition_not_met_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StreamJournalToKinesisError::unhandled)?; + output.build() + }, + ), }, _ => crate::error::StreamJournalToKinesisError::generic(generic), }) @@ -1022,7 +951,7 @@ pub fn parse_stream_journal_to_kinesis_response( #[allow(unused_mut)] let mut output = crate::output::stream_journal_to_kinesis_output::Builder::default(); let _ = response; - output = crate::json_deser::stream_journal_to_kinesis_deser_operation( + output = crate::json_deser::deser_operation_stream_journal_to_kinesis( response.body().as_ref(), output, ) @@ -1044,11 +973,11 @@ pub fn parse_tag_resource_error( Err(match error_code { "InvalidParameterException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::InvalidParameterError({ + kind: crate::error::TagResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -1058,11 +987,11 @@ pub fn parse_tag_resource_error( }, "ResourceNotFoundException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1099,11 +1028,11 @@ pub fn parse_untag_resource_error( Err(match error_code { "InvalidParameterException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::InvalidParameterError({ + kind: crate::error::UntagResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -1113,11 +1042,11 @@ pub fn parse_untag_resource_error( }, "ResourceNotFoundException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1154,11 +1083,11 @@ pub fn parse_update_ledger_error( Err(match error_code { "InvalidParameterException" => crate::error::UpdateLedgerError { meta: generic, - kind: crate::error::UpdateLedgerErrorKind::InvalidParameterError({ + kind: crate::error::UpdateLedgerErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -1168,11 +1097,11 @@ pub fn parse_update_ledger_error( }, "ResourceNotFoundException" => crate::error::UpdateLedgerError { meta: generic, - kind: crate::error::UpdateLedgerErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateLedgerErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1192,7 +1121,7 @@ pub fn parse_update_ledger_response( #[allow(unused_mut)] let mut output = crate::output::update_ledger_output::Builder::default(); let _ = response; - output = crate::json_deser::update_ledger_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_update_ledger(response.body().as_ref(), output) .map_err(crate::error::UpdateLedgerError::unhandled)?; output.build() }) @@ -1218,11 +1147,11 @@ pub fn parse_update_ledger_permissions_mode_error( Err(match error_code { "InvalidParameterException" => crate::error::UpdateLedgerPermissionsModeError { meta: generic, - kind: crate::error::UpdateLedgerPermissionsModeErrorKind::InvalidParameterError({ + kind: crate::error::UpdateLedgerPermissionsModeErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_parameter_exception( + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( response.body().as_ref(), output, ) @@ -1232,11 +1161,11 @@ pub fn parse_update_ledger_permissions_mode_error( }, "ResourceNotFoundException" => crate::error::UpdateLedgerPermissionsModeError { meta: generic, - kind: crate::error::UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundError({ + kind: crate::error::UpdateLedgerPermissionsModeErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -1259,7 +1188,7 @@ pub fn parse_update_ledger_permissions_mode_response( #[allow(unused_mut)] let mut output = crate::output::update_ledger_permissions_mode_output::Builder::default(); let _ = response; - output = crate::json_deser::update_ledger_permissions_mode_deser_operation( + output = crate::json_deser::deser_operation_update_ledger_permissions_mode( response.body().as_ref(), output, ) diff --git a/sdk/qldb/src/operation_ser.rs b/sdk/qldb/src/operation_ser.rs index 2285b261fb96..528fc3dd2ac4 100644 --- a/sdk/qldb/src/operation_ser.rs +++ b/sdk/qldb/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_create_ledger( input: &crate::input::CreateLedgerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_ledger_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_create_ledger( pub fn serialize_operation_export_journal_to_s3( input: &crate::input::ExportJournalToS3Input, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_export_journal_to_s3_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_export_journal_to_s3( pub fn serialize_operation_get_block( input: &crate::input::GetBlockInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_block_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_get_block( pub fn serialize_operation_get_revision( input: &crate::input::GetRevisionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_revision_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_get_revision( pub fn serialize_operation_stream_journal_to_kinesis( input: &crate::input::StreamJournalToKinesisInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stream_journal_to_kinesis_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_stream_journal_to_kinesis( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_update_ledger( input: &crate::input::UpdateLedgerInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_ledger_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_update_ledger( pub fn serialize_operation_update_ledger_permissions_mode( input: &crate::input::UpdateLedgerPermissionsModeInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_ledger_permissions_mode_input(&mut object, input); diff --git a/sdk/qldb/src/serde_util.rs b/sdk/qldb/src/serde_util.rs deleted file mode 100644 index 52f46e107033..000000000000 --- a/sdk/qldb/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} - -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} diff --git a/sdk/qldb/src/serializer.rs b/sdk/qldb/src/serializer.rs deleted file mode 100644 index e62ebc62852a..000000000000 --- a/sdk/qldb/src/serializer.rs +++ /dev/null @@ -1,755 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLedgerInputBody<'a> { - ///

    The name of the ledger that you want to create. The name must be unique among all of - /// your ledgers in the current AWS Region.

    - ///

    Naming constraints for ledger names are defined in Quotas in Amazon QLDB - /// in the Amazon QLDB Developer Guide.

    - pub name: &'a std::option::Option, - ///

    The key-value pairs to add as tags to the ledger that you want to create. Tag keys are - /// case sensitive. Tag values are case sensitive and can be null.

    - pub tags: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    The permissions mode to assign to the ledger that you want to create. This parameter can - /// have one of the following values:

    - ///
      - ///
    • - ///

      - /// ALLOW_ALL: A legacy permissions mode that enables access control with - /// API-level granularity for ledgers.

      - ///

      This mode allows users who have the SendCommand API permission for - /// this ledger to run all PartiQL commands (hence, ALLOW_ALL) on any tables - /// in the specified ledger. This mode disregards any table-level or command-level IAM - /// permissions policies that you create for the ledger.

      - ///
    • - ///
    • - ///

      - /// STANDARD: (Recommended) A permissions mode that - /// enables access control with finer granularity for ledgers, tables, and PartiQL - /// commands.

      - ///

      By default, this mode denies all user requests to run any PartiQL commands on any - /// tables in this ledger. To allow PartiQL commands to run, you must create IAM - /// permissions policies for specific table resources and PartiQL actions, in addition to - /// the SendCommand API permission for the ledger. For information, see - /// Getting - /// started with the standard permissions mode in the Amazon QLDB - /// Developer Guide.

      - ///
    • - ///
    - /// - ///

    We strongly recommend using the STANDARD permissions mode to maximize - /// the security of your ledger data.

    - ///
    - pub permissions_mode: &'a std::option::Option, - ///

    The flag that prevents a ledger from being deleted by any user. If not provided on - /// ledger creation, this feature is enabled (true) by default.

    - ///

    If deletion protection is enabled, you must first disable it before you can delete the - /// ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

    - pub deletion_protection: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateLedgerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLedgerInputBody"); - formatter.field("name", &self.name); - formatter.field("tags", &self.tags); - formatter.field("permissions_mode", &self.permissions_mode); - formatter.field("deletion_protection", &self.deletion_protection); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportJournalToS3InputBody<'a> { - ///

    The inclusive start date and time for the range of journal contents to export.

    - ///

    The InclusiveStartTime must be in ISO 8601 date and time - /// format and in Universal Coordinated Time (UTC). For example: - /// 2019-06-13T21:36:34Z.

    - ///

    The InclusiveStartTime must be before ExclusiveEndTime.

    - ///

    If you provide an InclusiveStartTime that is before the ledger's - /// CreationDateTime, Amazon QLDB defaults it to the ledger's - /// CreationDateTime.

    - pub inclusive_start_time: &'a std::option::Option, - ///

    The exclusive end date and time for the range of journal contents to export.

    - ///

    The ExclusiveEndTime must be in ISO 8601 date and time format - /// and in Universal Coordinated Time (UTC). For example: - /// 2019-06-13T21:36:34Z.

    - ///

    The ExclusiveEndTime must be less than or equal to the current UTC date and - /// time.

    - pub exclusive_end_time: &'a std::option::Option, - ///

    The configuration settings of the Amazon S3 bucket destination for your export - /// request.

    - pub s3_export_configuration: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a - /// journal export job to do the following:

    - ///
      - ///
    • - ///

      Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.

      - ///
    • - ///
    • - ///

      (Optional) Use your customer master key (CMK) in AWS Key Management Service (AWS - /// KMS) for server-side encryption of your exported data.

      - ///
    • - ///
    - pub role_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExportJournalToS3InputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportJournalToS3InputBody"); - formatter.field("inclusive_start_time", &self.inclusive_start_time); - formatter.field("exclusive_end_time", &self.exclusive_end_time); - formatter.field("s3_export_configuration", &self.s3_export_configuration); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetBlockInputBody<'a> { - ///

    The location of the block that you want to request. An address is an Amazon Ion - /// structure that has two fields: strandId and sequenceNo.

    - ///

    For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}.

    - pub block_address: &'a std::option::Option, - ///

    The latest block location covered by the digest for which to request a proof. An address - /// is an Amazon Ion structure that has two fields: strandId and - /// sequenceNo.

    - ///

    For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}.

    - pub digest_tip_address: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetBlockInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetBlockInputBody"); - formatter.field("block_address", &"*** Sensitive Data Redacted ***"); - formatter.field("digest_tip_address", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRevisionInputBody<'a> { - ///

    The block location of the document revision to be verified. An address is an Amazon Ion - /// structure that has two fields: strandId and sequenceNo.

    - ///

    For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}.

    - pub block_address: &'a std::option::Option, - ///

    The UUID (represented in Base62-encoded text) of the document to be verified.

    - pub document_id: &'a std::option::Option, - ///

    The latest block location covered by the digest for which to request a proof. An address - /// is an Amazon Ion structure that has two fields: strandId and - /// sequenceNo.

    - ///

    For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}.

    - pub digest_tip_address: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetRevisionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRevisionInputBody"); - formatter.field("block_address", &"*** Sensitive Data Redacted ***"); - formatter.field("document_id", &self.document_id); - formatter.field("digest_tip_address", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StreamJournalToKinesisInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a - /// journal stream to write data records to a Kinesis Data Streams resource.

    - pub role_arn: &'a std::option::Option, - ///

    The key-value pairs to add as tags to the stream that you want to create. Tag keys are - /// case sensitive. Tag values are case sensitive and can be null.

    - pub tags: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    The inclusive start date and time from which to start streaming journal data. This - /// parameter must be in ISO 8601 date and time format and in Universal - /// Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z.

    - ///

    The InclusiveStartTime cannot be in the future and must be before - /// ExclusiveEndTime.

    - ///

    If you provide an InclusiveStartTime that is before the ledger's - /// CreationDateTime, QLDB effectively defaults it to the ledger's - /// CreationDateTime.

    - pub inclusive_start_time: &'a std::option::Option, - ///

    The exclusive date and time that specifies when the stream ends. If you don't define - /// this parameter, the stream runs indefinitely until you cancel it.

    - ///

    The ExclusiveEndTime must be in ISO 8601 date and time format - /// and in Universal Coordinated Time (UTC). For example: - /// 2019-06-13T21:36:34Z.

    - pub exclusive_end_time: &'a std::option::Option, - ///

    The configuration settings of the Kinesis Data Streams destination for your stream request.

    - pub kinesis_configuration: &'a std::option::Option, - ///

    The name that you want to assign to the QLDB journal stream. User-defined names can - /// help identify and indicate the purpose of a stream.

    - ///

    Your stream name must be unique among other active streams for a - /// given ledger. Stream names have the same naming constraints as ledger names, as defined in - /// Quotas in Amazon QLDB in the Amazon QLDB Developer - /// Guide.

    - pub stream_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StreamJournalToKinesisInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StreamJournalToKinesisInputBody"); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.field("inclusive_start_time", &self.inclusive_start_time); - formatter.field("exclusive_end_time", &self.exclusive_end_time); - formatter.field("kinesis_configuration", &self.kinesis_configuration); - formatter.field("stream_name", &self.stream_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    The key-value pairs to add as tags to the specified QLDB resource. Tag keys are case - /// sensitive. If you specify a key that already exists for the resource, your request fails - /// and returns an error. Tag values are case sensitive and can be null.

    - pub tags: &'a std::option::Option< - std::collections::HashMap>, - >, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateLedgerInputBody<'a> { - ///

    The flag that prevents a ledger from being deleted by any user. If not provided on - /// ledger creation, this feature is enabled (true) by default.

    - ///

    If deletion protection is enabled, you must first disable it before you can delete the - /// ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

    - pub deletion_protection: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateLedgerInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateLedgerInputBody"); - formatter.field("deletion_protection", &self.deletion_protection); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateLedgerPermissionsModeInputBody<'a> { - ///

    The permissions mode to assign to the ledger. This parameter can have one of the - /// following values:

    - ///
      - ///
    • - ///

      - /// ALLOW_ALL: A legacy permissions mode that enables access control with - /// API-level granularity for ledgers.

      - ///

      This mode allows users who have the SendCommand API permission for - /// this ledger to run all PartiQL commands (hence, ALLOW_ALL) on any tables - /// in the specified ledger. This mode disregards any table-level or command-level IAM - /// permissions policies that you create for the ledger.

      - ///
    • - ///
    • - ///

      - /// STANDARD: (Recommended) A permissions mode that - /// enables access control with finer granularity for ledgers, tables, and PartiQL - /// commands.

      - ///

      By default, this mode denies all user requests to run any PartiQL commands on any - /// tables in this ledger. To allow PartiQL commands to run, you must create IAM - /// permissions policies for specific table resources and PartiQL actions, in addition to - /// the SendCommand API permission for the ledger. For information, see - /// Getting - /// started with the standard permissions mode in the Amazon QLDB - /// Developer Guide.

      - ///
    • - ///
    - /// - ///

    We strongly recommend using the STANDARD permissions mode to maximize - /// the security of your ledger data.

    - ///
    - pub permissions_mode: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateLedgerPermissionsModeInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateLedgerPermissionsModeInputBody"); - formatter.field("permissions_mode", &self.permissions_mode); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelJournalKinesisStreamOutputBody { - ///

    The UUID (Base62-encoded text) of the canceled QLDB journal stream.

    - #[serde(rename = "StreamId")] - #[serde(default)] - pub stream_id: std::option::Option, -} -impl std::fmt::Debug for CancelJournalKinesisStreamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelJournalKinesisStreamOutputBody"); - formatter.field("stream_id", &self.stream_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLedgerOutputBody { - ///

    The name of the ledger.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The Amazon Resource Name (ARN) for the ledger.

    - #[serde(rename = "Arn")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The current status of the ledger.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The date and time, in epoch time format, when the ledger was created. (Epoch time format - /// is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

    - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_date_time: std::option::Option, - ///

    The permissions mode of the ledger that you created.

    - #[serde(rename = "PermissionsMode")] - #[serde(default)] - pub permissions_mode: std::option::Option, - ///

    The flag that prevents a ledger from being deleted by any user. If not provided on - /// ledger creation, this feature is enabled (true) by default.

    - ///

    If deletion protection is enabled, you must first disable it before you can delete the - /// ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

    - #[serde(rename = "DeletionProtection")] - #[serde(default)] - pub deletion_protection: std::option::Option, -} -impl std::fmt::Debug for CreateLedgerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLedgerOutputBody"); - formatter.field("name", &self.name); - formatter.field("arn", &self.arn); - formatter.field("state", &self.state); - formatter.field("creation_date_time", &self.creation_date_time); - formatter.field("permissions_mode", &self.permissions_mode); - formatter.field("deletion_protection", &self.deletion_protection); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJournalKinesisStreamOutputBody { - ///

    Information about the QLDB journal stream returned by a - /// DescribeJournalS3Export request.

    - #[serde(rename = "Stream")] - #[serde(default)] - pub stream: std::option::Option, -} -impl std::fmt::Debug for DescribeJournalKinesisStreamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJournalKinesisStreamOutputBody"); - formatter.field("stream", &self.stream); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeJournalS3ExportOutputBody { - ///

    Information about the journal export job returned by a - /// DescribeJournalS3Export request.

    - #[serde(rename = "ExportDescription")] - #[serde(default)] - pub export_description: std::option::Option, -} -impl std::fmt::Debug for DescribeJournalS3ExportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeJournalS3ExportOutputBody"); - formatter.field("export_description", &self.export_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLedgerOutputBody { - ///

    The name of the ledger.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The Amazon Resource Name (ARN) for the ledger.

    - #[serde(rename = "Arn")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The current status of the ledger.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The date and time, in epoch time format, when the ledger was created. (Epoch time format - /// is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

    - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_date_time: std::option::Option, - ///

    The permissions mode of the ledger.

    - #[serde(rename = "PermissionsMode")] - #[serde(default)] - pub permissions_mode: std::option::Option, - ///

    The flag that prevents a ledger from being deleted by any user. If not provided on - /// ledger creation, this feature is enabled (true) by default.

    - ///

    If deletion protection is enabled, you must first disable it before you can delete the - /// ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

    - #[serde(rename = "DeletionProtection")] - #[serde(default)] - pub deletion_protection: std::option::Option, -} -impl std::fmt::Debug for DescribeLedgerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLedgerOutputBody"); - formatter.field("name", &self.name); - formatter.field("arn", &self.arn); - formatter.field("state", &self.state); - formatter.field("creation_date_time", &self.creation_date_time); - formatter.field("permissions_mode", &self.permissions_mode); - formatter.field("deletion_protection", &self.deletion_protection); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExportJournalToS3OutputBody { - ///

    The UUID (represented in Base62-encoded text) that QLDB assigns to each journal export - /// job.

    - ///

    To describe your export request and check the status of the job, you can use - /// ExportId to call DescribeJournalS3Export.

    - #[serde(rename = "ExportId")] - #[serde(default)] - pub export_id: std::option::Option, -} -impl std::fmt::Debug for ExportJournalToS3OutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExportJournalToS3OutputBody"); - formatter.field("export_id", &self.export_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetBlockOutputBody { - ///

    The block data object in Amazon Ion format.

    - #[serde(rename = "Block")] - #[serde(default)] - pub block: std::option::Option, - ///

    The proof object in Amazon Ion format returned by a GetBlock request. A - /// proof contains the list of hash values required to recalculate the specified digest using a - /// Merkle tree, starting with the specified block.

    - #[serde(rename = "Proof")] - #[serde(default)] - pub proof: std::option::Option, -} -impl std::fmt::Debug for GetBlockOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetBlockOutputBody"); - formatter.field("block", &"*** Sensitive Data Redacted ***"); - formatter.field("proof", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDigestOutputBody { - ///

    The 256-bit hash value representing the digest returned by a GetDigest - /// request.

    - #[serde(rename = "Digest")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub digest: std::option::Option, - ///

    The latest block location covered by the digest that you requested. An address is an - /// Amazon Ion structure that has two fields: strandId and - /// sequenceNo.

    - #[serde(rename = "DigestTipAddress")] - #[serde(default)] - pub digest_tip_address: std::option::Option, -} -impl std::fmt::Debug for GetDigestOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDigestOutputBody"); - formatter.field("digest", &self.digest); - formatter.field("digest_tip_address", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRevisionOutputBody { - ///

    The proof object in Amazon Ion format returned by a GetRevision request. A - /// proof contains the list of hash values that are required to recalculate the specified - /// digest using a Merkle tree, starting with the specified document revision.

    - #[serde(rename = "Proof")] - #[serde(default)] - pub proof: std::option::Option, - ///

    The document revision data object in Amazon Ion format.

    - #[serde(rename = "Revision")] - #[serde(default)] - pub revision: std::option::Option, -} -impl std::fmt::Debug for GetRevisionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRevisionOutputBody"); - formatter.field("proof", &"*** Sensitive Data Redacted ***"); - formatter.field("revision", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListJournalKinesisStreamsForLedgerOutputBody { - ///

    The array of QLDB journal stream descriptors that are associated with the given - /// ledger.

    - #[serde(rename = "Streams")] - #[serde(default)] - pub streams: std::option::Option>, - ///
      - ///
    • - ///

      If NextToken is empty, the last page of results has been processed - /// and there are no more results to be retrieved.

      - ///
    • - ///
    • - ///

      If NextToken is not empty, more results are - /// available. To retrieve the next page of results, use the value of - /// NextToken in a subsequent - /// ListJournalKinesisStreamsForLedger call.

      - ///
    • - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListJournalKinesisStreamsForLedgerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListJournalKinesisStreamsForLedgerOutputBody"); - formatter.field("streams", &self.streams); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListJournalS3ExportsOutputBody { - ///

    The array of journal export job descriptions for all ledgers that are associated with - /// the current AWS account and Region.

    - #[serde(rename = "JournalS3Exports")] - #[serde(default)] - pub journal_s3_exports: - std::option::Option>, - ///
      - ///
    • - ///

      If NextToken is empty, then the last page of results has been - /// processed and there are no more results to be retrieved.

      - ///
    • - ///
    • - ///

      If NextToken is not empty, then there are more - /// results available. To retrieve the next page of results, use the value of - /// NextToken in a subsequent ListJournalS3Exports - /// call.

      - ///
    • - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListJournalS3ExportsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListJournalS3ExportsOutputBody"); - formatter.field("journal_s3_exports", &self.journal_s3_exports); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListJournalS3ExportsForLedgerOutputBody { - ///

    The array of journal export job descriptions that are associated with the specified - /// ledger.

    - #[serde(rename = "JournalS3Exports")] - #[serde(default)] - pub journal_s3_exports: - std::option::Option>, - ///
      - ///
    • - ///

      If NextToken is empty, then the last page of results has been - /// processed and there are no more results to be retrieved.

      - ///
    • - ///
    • - ///

      If NextToken is not empty, then there are more - /// results available. To retrieve the next page of results, use the value of - /// NextToken in a subsequent ListJournalS3ExportsForLedger - /// call.

      - ///
    • - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListJournalS3ExportsForLedgerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListJournalS3ExportsForLedgerOutputBody"); - formatter.field("journal_s3_exports", &self.journal_s3_exports); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLedgersOutputBody { - ///

    The array of ledger summaries that are associated with the current AWS account and - /// Region.

    - #[serde(rename = "Ledgers")] - #[serde(default)] - pub ledgers: std::option::Option>, - ///

    A pagination token, indicating whether there are more results available:

    - ///
      - ///
    • - ///

      If NextToken is empty, then the last page of results has been - /// processed and there are no more results to be retrieved.

      - ///
    • - ///
    • - ///

      If NextToken is not empty, then there are more - /// results available. To retrieve the next page of results, use the value of - /// NextToken in a subsequent ListLedgers call.

      - ///
    • - ///
    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListLedgersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLedgersOutputBody"); - formatter.field("ledgers", &self.ledgers); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - ///

    The tags that are currently associated with the specified Amazon QLDB resource.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option< - std::collections::HashMap>, - >, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StreamJournalToKinesisOutputBody { - ///

    The UUID (represented in Base62-encoded text) that QLDB assigns to each QLDB journal - /// stream.

    - #[serde(rename = "StreamId")] - #[serde(default)] - pub stream_id: std::option::Option, -} -impl std::fmt::Debug for StreamJournalToKinesisOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StreamJournalToKinesisOutputBody"); - formatter.field("stream_id", &self.stream_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateLedgerOutputBody { - ///

    The name of the ledger.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The Amazon Resource Name (ARN) for the ledger.

    - #[serde(rename = "Arn")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The current status of the ledger.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The date and time, in epoch time format, when the ledger was created. (Epoch time format - /// is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

    - #[serde(rename = "CreationDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_date_time: std::option::Option, - ///

    The flag that prevents a ledger from being deleted by any user. If not provided on - /// ledger creation, this feature is enabled (true) by default.

    - ///

    If deletion protection is enabled, you must first disable it before you can delete the - /// ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

    - #[serde(rename = "DeletionProtection")] - #[serde(default)] - pub deletion_protection: std::option::Option, -} -impl std::fmt::Debug for UpdateLedgerOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateLedgerOutputBody"); - formatter.field("name", &self.name); - formatter.field("arn", &self.arn); - formatter.field("state", &self.state); - formatter.field("creation_date_time", &self.creation_date_time); - formatter.field("deletion_protection", &self.deletion_protection); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateLedgerPermissionsModeOutputBody { - ///

    The name of the ledger.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The Amazon Resource Name (ARN) for the ledger.

    - #[serde(rename = "Arn")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The current permissions mode of the ledger.

    - #[serde(rename = "PermissionsMode")] - #[serde(default)] - pub permissions_mode: std::option::Option, -} -impl std::fmt::Debug for UpdateLedgerPermissionsModeOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateLedgerPermissionsModeOutputBody"); - formatter.field("name", &self.name); - formatter.field("arn", &self.arn); - formatter.field("permissions_mode", &self.permissions_mode); - formatter.finish() - } -} diff --git a/sdk/qldbsession/Cargo.toml b/sdk/qldbsession/Cargo.toml index 5848d71eb0d9..8b6147f13dd1 100644 --- a/sdk/qldbsession/Cargo.toml +++ b/sdk/qldbsession/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-qldbsession" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    The transactional data APIs for Amazon QLDB

    \n \n

    Instead of interacting directly with this API, we recommend using the QLDB driver\n or the QLDB shell to execute data transactions on a ledger.

    \n
      \n
    • \n

      If you are working with an AWS SDK, use the QLDB driver. The driver provides\n a high-level abstraction layer above this QLDB Session data\n plane and manages SendCommand API calls for you. For information and\n a list of supported programming languages, see Getting started\n with the driver in the Amazon QLDB Developer\n Guide.

      \n
    • \n
    • \n

      If you are working with the AWS Command Line Interface (AWS CLI), use the\n QLDB shell. The shell is a command line interface that uses the QLDB driver to\n interact with a ledger. For information, see Accessing Amazon QLDB using the\n QLDB shell.

      \n
    • \n
    \n
    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,21 +20,17 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] +[dependencies.serde_json] version = "1" [dev-dependencies.aws-hyper] path = "..//aws-hyper" diff --git a/sdk/qldbsession/src/aws_json_errors.rs b/sdk/qldbsession/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/qldbsession/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/qldbsession/src/blob_serde.rs b/sdk/qldbsession/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/qldbsession/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/qldbsession/src/error.rs b/sdk/qldbsession/src/error.rs index 8bda7c7160a1..2fc39641887b 100644 --- a/sdk/qldbsession/src/error.rs +++ b/sdk/qldbsession/src/error.rs @@ -8,24 +8,24 @@ pub struct SendCommandError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendCommandErrorKind { - BadRequestError(crate::error::BadRequestError), - CapacityExceededError(crate::error::CapacityExceededError), - InvalidSessionError(crate::error::InvalidSessionError), - LimitExceededError(crate::error::LimitExceededError), - OccConflictError(crate::error::OccConflictError), - RateExceededError(crate::error::RateExceededError), + BadRequestException(crate::error::BadRequestException), + CapacityExceededException(crate::error::CapacityExceededException), + InvalidSessionException(crate::error::InvalidSessionException), + LimitExceededException(crate::error::LimitExceededException), + OccConflictException(crate::error::OccConflictException), + RateExceededException(crate::error::RateExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendCommandError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendCommandErrorKind::BadRequestError(_inner) => _inner.fmt(f), - SendCommandErrorKind::CapacityExceededError(_inner) => _inner.fmt(f), - SendCommandErrorKind::InvalidSessionError(_inner) => _inner.fmt(f), - SendCommandErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SendCommandErrorKind::OccConflictError(_inner) => _inner.fmt(f), - SendCommandErrorKind::RateExceededError(_inner) => _inner.fmt(f), + SendCommandErrorKind::BadRequestException(_inner) => _inner.fmt(f), + SendCommandErrorKind::CapacityExceededException(_inner) => _inner.fmt(f), + SendCommandErrorKind::InvalidSessionException(_inner) => _inner.fmt(f), + SendCommandErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SendCommandErrorKind::OccConflictException(_inner) => _inner.fmt(f), + SendCommandErrorKind::RateExceededException(_inner) => _inner.fmt(f), SendCommandErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -74,34 +74,37 @@ impl SendCommandError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, SendCommandErrorKind::BadRequestException(_)) } - pub fn is_capacity_exceeded_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::CapacityExceededError(_)) + pub fn is_capacity_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + SendCommandErrorKind::CapacityExceededException(_) + ) } - pub fn is_invalid_session_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::InvalidSessionError(_)) + pub fn is_invalid_session_exception(&self) -> bool { + matches!(&self.kind, SendCommandErrorKind::InvalidSessionException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, SendCommandErrorKind::LimitExceededException(_)) } - pub fn is_occ_conflict_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::OccConflictError(_)) + pub fn is_occ_conflict_exception(&self) -> bool { + matches!(&self.kind, SendCommandErrorKind::OccConflictException(_)) } - pub fn is_rate_exceeded_error(&self) -> bool { - matches!(&self.kind, SendCommandErrorKind::RateExceededError(_)) + pub fn is_rate_exceeded_exception(&self) -> bool { + matches!(&self.kind, SendCommandErrorKind::RateExceededException(_)) } } impl std::error::Error for SendCommandError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendCommandErrorKind::BadRequestError(_inner) => Some(_inner), - SendCommandErrorKind::CapacityExceededError(_inner) => Some(_inner), - SendCommandErrorKind::InvalidSessionError(_inner) => Some(_inner), - SendCommandErrorKind::LimitExceededError(_inner) => Some(_inner), - SendCommandErrorKind::OccConflictError(_inner) => Some(_inner), - SendCommandErrorKind::RateExceededError(_inner) => Some(_inner), + SendCommandErrorKind::BadRequestException(_inner) => Some(_inner), + SendCommandErrorKind::CapacityExceededException(_inner) => Some(_inner), + SendCommandErrorKind::InvalidSessionException(_inner) => Some(_inner), + SendCommandErrorKind::LimitExceededException(_inner) => Some(_inner), + SendCommandErrorKind::OccConflictException(_inner) => Some(_inner), + SendCommandErrorKind::RateExceededException(_inner) => Some(_inner), SendCommandErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -109,37 +112,35 @@ impl std::error::Error for SendCommandError { ///

    Returned when the rate of requests exceeds the allowed throughput.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RateExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct RateExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for RateExceededError { +impl std::fmt::Debug for RateExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RateExceededError"); + let mut formatter = f.debug_struct("RateExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl RateExceededError { +impl RateExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for RateExceededError { +impl std::fmt::Display for RateExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "RateExceededError [RateExceededException]")?; + write!(f, "RateExceededException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for RateExceededError {} -/// See [`RateExceededError`](crate::error::RateExceededError) -pub mod rate_exceeded_error { - /// A builder for [`RateExceededError`](crate::error::RateExceededError) +impl std::error::Error for RateExceededException {} +/// See [`RateExceededException`](crate::error::RateExceededException) +pub mod rate_exceeded_exception { + /// A builder for [`RateExceededException`](crate::error::RateExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -154,55 +155,53 @@ pub mod rate_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`RateExceededError`](crate::error::RateExceededError) - pub fn build(self) -> crate::error::RateExceededError { - crate::error::RateExceededError { + /// Consumes the builder and constructs a [`RateExceededException`](crate::error::RateExceededException) + pub fn build(self) -> crate::error::RateExceededException { + crate::error::RateExceededException { message: self.message, } } } } -impl RateExceededError { - /// Creates a new builder-style object to manufacture [`RateExceededError`](crate::error::RateExceededError) - pub fn builder() -> crate::error::rate_exceeded_error::Builder { - crate::error::rate_exceeded_error::Builder::default() +impl RateExceededException { + /// Creates a new builder-style object to manufacture [`RateExceededException`](crate::error::RateExceededException) + pub fn builder() -> crate::error::rate_exceeded_exception::Builder { + crate::error::rate_exceeded_exception::Builder::default() } } ///

    Returned when a transaction cannot be written to the journal due to a failure in the /// verification phase of optimistic concurrency control (OCC).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OccConflictError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OccConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for OccConflictError { +impl std::fmt::Debug for OccConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OccConflictError"); + let mut formatter = f.debug_struct("OccConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl OccConflictError { +impl OccConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OccConflictError { +impl std::fmt::Display for OccConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OccConflictError [OccConflictException]")?; + write!(f, "OccConflictException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for OccConflictError {} -/// See [`OccConflictError`](crate::error::OccConflictError) -pub mod occ_conflict_error { - /// A builder for [`OccConflictError`](crate::error::OccConflictError) +impl std::error::Error for OccConflictException {} +/// See [`OccConflictException`](crate::error::OccConflictException) +pub mod occ_conflict_exception { + /// A builder for [`OccConflictException`](crate::error::OccConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -217,54 +216,52 @@ pub mod occ_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`OccConflictError`](crate::error::OccConflictError) - pub fn build(self) -> crate::error::OccConflictError { - crate::error::OccConflictError { + /// Consumes the builder and constructs a [`OccConflictException`](crate::error::OccConflictException) + pub fn build(self) -> crate::error::OccConflictException { + crate::error::OccConflictException { message: self.message, } } } } -impl OccConflictError { - /// Creates a new builder-style object to manufacture [`OccConflictError`](crate::error::OccConflictError) - pub fn builder() -> crate::error::occ_conflict_error::Builder { - crate::error::occ_conflict_error::Builder::default() +impl OccConflictException { + /// Creates a new builder-style object to manufacture [`OccConflictException`](crate::error::OccConflictException) + pub fn builder() -> crate::error::occ_conflict_exception::Builder { + crate::error::occ_conflict_exception::Builder::default() } } ///

    Returned if a resource limit such as number of active sessions is exceeded.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -279,58 +276,54 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    Returned if the session doesn't exist anymore because it timed out or expired.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSessionError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidSessionException { pub message: std::option::Option, - #[serde(rename = "Code")] - #[serde(default)] pub code: std::option::Option, } -impl std::fmt::Debug for InvalidSessionError { +impl std::fmt::Debug for InvalidSessionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSessionError"); + let mut formatter = f.debug_struct("InvalidSessionException"); formatter.field("message", &self.message); formatter.field("code", &self.code); formatter.finish() } } -impl InvalidSessionError { +impl InvalidSessionException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSessionError { +impl std::fmt::Display for InvalidSessionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSessionError [InvalidSessionException]")?; + write!(f, "InvalidSessionException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidSessionError {} -/// See [`InvalidSessionError`](crate::error::InvalidSessionError) -pub mod invalid_session_error { - /// A builder for [`InvalidSessionError`](crate::error::InvalidSessionError) +impl std::error::Error for InvalidSessionException {} +/// See [`InvalidSessionException`](crate::error::InvalidSessionException) +pub mod invalid_session_exception { + /// A builder for [`InvalidSessionException`](crate::error::InvalidSessionException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -354,55 +347,53 @@ pub mod invalid_session_error { self.code = input; self } - /// Consumes the builder and constructs a [`InvalidSessionError`](crate::error::InvalidSessionError) - pub fn build(self) -> crate::error::InvalidSessionError { - crate::error::InvalidSessionError { + /// Consumes the builder and constructs a [`InvalidSessionException`](crate::error::InvalidSessionException) + pub fn build(self) -> crate::error::InvalidSessionException { + crate::error::InvalidSessionException { message: self.message, code: self.code, } } } } -impl InvalidSessionError { - /// Creates a new builder-style object to manufacture [`InvalidSessionError`](crate::error::InvalidSessionError) - pub fn builder() -> crate::error::invalid_session_error::Builder { - crate::error::invalid_session_error::Builder::default() +impl InvalidSessionException { + /// Creates a new builder-style object to manufacture [`InvalidSessionException`](crate::error::InvalidSessionException) + pub fn builder() -> crate::error::invalid_session_exception::Builder { + crate::error::invalid_session_exception::Builder::default() } } ///

    Returned when the request exceeds the processing capacity of the ledger.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CapacityExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CapacityExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for CapacityExceededError { +impl std::fmt::Debug for CapacityExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CapacityExceededError"); + let mut formatter = f.debug_struct("CapacityExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl CapacityExceededError { +impl CapacityExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CapacityExceededError { +impl std::fmt::Display for CapacityExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "CapacityExceededError [CapacityExceededException]")?; + write!(f, "CapacityExceededException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for CapacityExceededError {} -/// See [`CapacityExceededError`](crate::error::CapacityExceededError) -pub mod capacity_exceeded_error { - /// A builder for [`CapacityExceededError`](crate::error::CapacityExceededError) +impl std::error::Error for CapacityExceededException {} +/// See [`CapacityExceededException`](crate::error::CapacityExceededException) +pub mod capacity_exceeded_exception { + /// A builder for [`CapacityExceededException`](crate::error::CapacityExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -417,59 +408,55 @@ pub mod capacity_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`CapacityExceededError`](crate::error::CapacityExceededError) - pub fn build(self) -> crate::error::CapacityExceededError { - crate::error::CapacityExceededError { + /// Consumes the builder and constructs a [`CapacityExceededException`](crate::error::CapacityExceededException) + pub fn build(self) -> crate::error::CapacityExceededException { + crate::error::CapacityExceededException { message: self.message, } } } } -impl CapacityExceededError { - /// Creates a new builder-style object to manufacture [`CapacityExceededError`](crate::error::CapacityExceededError) - pub fn builder() -> crate::error::capacity_exceeded_error::Builder { - crate::error::capacity_exceeded_error::Builder::default() +impl CapacityExceededException { + /// Creates a new builder-style object to manufacture [`CapacityExceededException`](crate::error::CapacityExceededException) + pub fn builder() -> crate::error::capacity_exceeded_exception::Builder { + crate::error::capacity_exceeded_exception::Builder::default() } } ///

    Returned if the request is malformed or contains an error such as an invalid parameter /// value or a missing required parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadRequestError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { pub message: std::option::Option, - #[serde(rename = "Code")] - #[serde(default)] pub code: std::option::Option, } -impl std::fmt::Debug for BadRequestError { +impl std::fmt::Debug for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadRequestError"); + let mut formatter = f.debug_struct("BadRequestException"); formatter.field("message", &self.message); formatter.field("code", &self.code); formatter.finish() } } -impl BadRequestError { +impl BadRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadRequestError { +impl std::fmt::Display for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadRequestError [BadRequestException]")?; + write!(f, "BadRequestException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for BadRequestError {} -/// See [`BadRequestError`](crate::error::BadRequestError) -pub mod bad_request_error { - /// A builder for [`BadRequestError`](crate::error::BadRequestError) +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -493,18 +480,18 @@ pub mod bad_request_error { self.code = input; self } - /// Consumes the builder and constructs a [`BadRequestError`](crate::error::BadRequestError) - pub fn build(self) -> crate::error::BadRequestError { - crate::error::BadRequestError { + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { message: self.message, code: self.code, } } } } -impl BadRequestError { - /// Creates a new builder-style object to manufacture [`BadRequestError`](crate::error::BadRequestError) - pub fn builder() -> crate::error::bad_request_error::Builder { - crate::error::bad_request_error::Builder::default() +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() } } diff --git a/sdk/qldbsession/src/error_meta.rs b/sdk/qldbsession/src/error_meta.rs index 1b2960b951f0..f8c1bdc769f2 100644 --- a/sdk/qldbsession/src/error_meta.rs +++ b/sdk/qldbsession/src/error_meta.rs @@ -2,23 +2,23 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - BadRequestError(crate::error::BadRequestError), - CapacityExceededError(crate::error::CapacityExceededError), - InvalidSessionError(crate::error::InvalidSessionError), - LimitExceededError(crate::error::LimitExceededError), - OccConflictError(crate::error::OccConflictError), - RateExceededError(crate::error::RateExceededError), + BadRequestException(crate::error::BadRequestException), + CapacityExceededException(crate::error::CapacityExceededException), + InvalidSessionException(crate::error::InvalidSessionException), + LimitExceededException(crate::error::LimitExceededException), + OccConflictException(crate::error::OccConflictException), + RateExceededException(crate::error::RateExceededException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::BadRequestError(inner) => inner.fmt(f), - Error::CapacityExceededError(inner) => inner.fmt(f), - Error::InvalidSessionError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::OccConflictError(inner) => inner.fmt(f), - Error::RateExceededError(inner) => inner.fmt(f), + Error::BadRequestException(inner) => inner.fmt(f), + Error::CapacityExceededException(inner) => inner.fmt(f), + Error::InvalidSessionException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::OccConflictException(inner) => inner.fmt(f), + Error::RateExceededException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -27,23 +27,23 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SendCommandErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::SendCommandErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::SendCommandErrorKind::CapacityExceededError(inner) => { - Error::CapacityExceededError(inner) + crate::error::SendCommandErrorKind::CapacityExceededException(inner) => { + Error::CapacityExceededException(inner) } - crate::error::SendCommandErrorKind::InvalidSessionError(inner) => { - Error::InvalidSessionError(inner) + crate::error::SendCommandErrorKind::InvalidSessionException(inner) => { + Error::InvalidSessionException(inner) } - crate::error::SendCommandErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::SendCommandErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::SendCommandErrorKind::OccConflictError(inner) => { - Error::OccConflictError(inner) + crate::error::SendCommandErrorKind::OccConflictException(inner) => { + Error::OccConflictException(inner) } - crate::error::SendCommandErrorKind::RateExceededError(inner) => { - Error::RateExceededError(inner) + crate::error::SendCommandErrorKind::RateExceededException(inner) => { + Error::RateExceededException(inner) } crate::error::SendCommandErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/qldbsession/src/input.rs b/sdk/qldbsession/src/input.rs index 9ca6ca838e16..2ebe84040674 100644 --- a/sdk/qldbsession/src/input.rs +++ b/sdk/qldbsession/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`SendCommandInput`](crate::input::SendCommandInput) pub mod send_command_input { /// A builder for [`SendCommandInput`](crate::input::SendCommandInput) @@ -197,15 +198,27 @@ impl SendCommandInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.0") - .header("X-Amz-Target", "QLDBSession.SendCommand")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.0"); + let builder = builder.header("x-amz-target", "QLDBSession.SendCommand"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/qldbsession/src/json_deser.rs b/sdk/qldbsession/src/json_deser.rs index 97d08bc5b1af..7a0537f92f33 100644 --- a/sdk/qldbsession/src/json_deser.rs +++ b/sdk/qldbsession/src/json_deser.rs @@ -1,22 +1,907 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn send_command_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_bad_request_exceptionjson_err( + input: &[u8], + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_capacity_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::capacity_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_session_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_session_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_occ_conflict_exceptionjson_err( + input: &[u8], + mut builder: crate::error::occ_conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_rate_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::rate_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_send_command( input: &[u8], mut builder: crate::output::send_command_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SendCommandOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_start_session(parsed_body.start_session); - builder = builder.set_start_transaction(parsed_body.start_transaction); - builder = builder.set_end_session(parsed_body.end_session); - builder = builder.set_commit_transaction(parsed_body.commit_transaction); - builder = builder.set_abort_transaction(parsed_body.abort_transaction); - builder = builder.set_execute_statement(parsed_body.execute_statement); - builder = builder.set_fetch_page(parsed_body.fetch_page); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StartSession" => { + builder = builder.set_start_session( + crate::json_deser::deser_structure_start_session_result(tokens)?, + ); + } + "StartTransaction" => { + builder = builder.set_start_transaction( + crate::json_deser::deser_structure_start_transaction_result(tokens)?, + ); + } + "EndSession" => { + builder = builder.set_end_session( + crate::json_deser::deser_structure_end_session_result(tokens)?, + ); + } + "CommitTransaction" => { + builder = builder.set_commit_transaction( + crate::json_deser::deser_structure_commit_transaction_result(tokens)?, + ); + } + "AbortTransaction" => { + builder = builder.set_abort_transaction( + crate::json_deser::deser_structure_abort_transaction_result(tokens)?, + ); + } + "ExecuteStatement" => { + builder = builder.set_execute_statement( + crate::json_deser::deser_structure_execute_statement_result(tokens)?, + ); + } + "FetchPage" => { + builder = builder.set_fetch_page( + crate::json_deser::deser_structure_fetch_page_result(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_start_session_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StartSessionResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SessionToken" => { + builder = builder.set_session_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_start_transaction_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StartTransactionResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransactionId" => { + builder = builder.set_transaction_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_end_session_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EndSessionResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_commit_transaction_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CommitTransactionResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransactionId" => { + builder = builder.set_transaction_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CommitDigest" => { + builder = builder.set_commit_digest( + smithy_json::deserialize::token::expect_blob_or_null( + tokens.next(), + )?, + ); + } + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + "ConsumedIOs" => { + builder = builder.set_consumed_i_os( + crate::json_deser::deser_structure_io_usage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_abort_transaction_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AbortTransactionResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_execute_statement_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExecuteStatementResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FirstPage" => { + builder = builder.set_first_page( + crate::json_deser::deser_structure_page(tokens)?, + ); + } + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + "ConsumedIOs" => { + builder = builder.set_consumed_i_os( + crate::json_deser::deser_structure_io_usage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_fetch_page_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FetchPageResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Page" => { + builder = builder + .set_page(crate::json_deser::deser_structure_page(tokens)?); + } + "TimingInformation" => { + builder = builder.set_timing_information( + crate::json_deser::deser_structure_timing_information(tokens)?, + ); + } + "ConsumedIOs" => { + builder = builder.set_consumed_i_os( + crate::json_deser::deser_structure_io_usage(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_timing_information<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TimingInformation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingTimeMilliseconds" => { + builder = builder.set_processing_time_milliseconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_io_usage<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IoUsage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReadIOs" => { + builder = builder.set_read_i_os( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "WriteIOs" => { + builder = builder.set_write_i_os( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_page<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Page::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_value_holders(tokens)?, + ); + } + "NextPageToken" => { + builder = builder.set_next_page_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_value_holders<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_value_holder(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_value_holder<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ValueHolder::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IonBinary" => { + builder = builder.set_ion_binary( + smithy_json::deserialize::token::expect_blob_or_null( + tokens.next(), + )?, + ); + } + "IonText" => { + builder = builder.set_ion_text( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/qldbsession/src/json_errors.rs b/sdk/qldbsession/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/qldbsession/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/qldbsession/src/lib.rs b/sdk/qldbsession/src/lib.rs index 638510af8d2b..232f5dc6104b 100644 --- a/sdk/qldbsession/src/lib.rs +++ b/sdk/qldbsession/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    The transactional data APIs for Amazon QLDB

    //! //!

    Instead of interacting directly with this API, we recommend using the QLDB driver @@ -31,8 +32,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -40,13 +39,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/qldbsession/src/model.rs b/sdk/qldbsession/src/model.rs index 72482d00f7f1..ff1eb6ad1929 100644 --- a/sdk/qldbsession/src/model.rs +++ b/sdk/qldbsession/src/model.rs @@ -1,20 +1,14 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Contains the page that was fetched.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FetchPageResult { ///

    Contains details of the fetched page.

    - #[serde(rename = "Page")] - #[serde(default)] pub page: std::option::Option, ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, ///

    Contains metrics about the number of I/O requests that were consumed.

    - #[serde(rename = "ConsumedIOs")] - #[serde(default)] - pub consumed_i_os: std::option::Option, + pub consumed_i_os: std::option::Option, } impl std::fmt::Debug for FetchPageResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -33,7 +27,7 @@ pub mod fetch_page_result { pub struct Builder { pub(crate) page: std::option::Option, pub(crate) timing_information: std::option::Option, - pub(crate) consumed_i_os: std::option::Option, + pub(crate) consumed_i_os: std::option::Option, } impl Builder { ///

    Contains details of the fetched page.

    @@ -58,13 +52,13 @@ pub mod fetch_page_result { self } ///

    Contains metrics about the number of I/O requests that were consumed.

    - pub fn consumed_i_os(mut self, input: crate::model::IOUsage) -> Self { + pub fn consumed_i_os(mut self, input: crate::model::IoUsage) -> Self { self.consumed_i_os = Some(input); self } pub fn set_consumed_i_os( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.consumed_i_os = input; self @@ -88,28 +82,24 @@ impl FetchPageResult { ///

    Contains I/O usage metrics for a command that was invoked.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IOUsage { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IoUsage { ///

    The number of read I/O requests that the command made.

    - #[serde(rename = "ReadIOs")] - #[serde(default)] pub read_i_os: i64, ///

    The number of write I/O requests that the command made.

    - #[serde(rename = "WriteIOs")] - #[serde(default)] pub write_i_os: i64, } -impl std::fmt::Debug for IOUsage { +impl std::fmt::Debug for IoUsage { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IOUsage"); + let mut formatter = f.debug_struct("IoUsage"); formatter.field("read_i_os", &self.read_i_os); formatter.field("write_i_os", &self.write_i_os); formatter.finish() } } -/// See [`IOUsage`](crate::model::IOUsage) +/// See [`IoUsage`](crate::model::IoUsage) pub mod io_usage { - /// A builder for [`IOUsage`](crate::model::IOUsage) + /// A builder for [`IoUsage`](crate::model::IoUsage) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -135,17 +125,17 @@ pub mod io_usage { self.write_i_os = input; self } - /// Consumes the builder and constructs a [`IOUsage`](crate::model::IOUsage) - pub fn build(self) -> crate::model::IOUsage { - crate::model::IOUsage { + /// Consumes the builder and constructs a [`IoUsage`](crate::model::IoUsage) + pub fn build(self) -> crate::model::IoUsage { + crate::model::IoUsage { read_i_os: self.read_i_os.unwrap_or_default(), write_i_os: self.write_i_os.unwrap_or_default(), } } } } -impl IOUsage { - /// Creates a new builder-style object to manufacture [`IOUsage`](crate::model::IOUsage) +impl IoUsage { + /// Creates a new builder-style object to manufacture [`IoUsage`](crate::model::IoUsage) pub fn builder() -> crate::model::io_usage::Builder { crate::model::io_usage::Builder::default() } @@ -155,12 +145,10 @@ impl IOUsage { /// information between the times when it receives the request and when it sends the /// corresponding response.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TimingInformation { ///

    The amount of time that QLDB spent on processing the command, measured in /// milliseconds.

    - #[serde(rename = "ProcessingTimeMilliseconds")] - #[serde(default)] pub processing_time_milliseconds: i64, } impl std::fmt::Debug for TimingInformation { @@ -209,15 +197,11 @@ impl TimingInformation { ///

    Contains details of the fetched page.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Page { ///

    A structure that contains values in multiple encoding formats.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The token of the next page.

    - #[serde(rename = "NextPageToken")] - #[serde(default)] pub next_page_token: std::option::Option, } impl std::fmt::Debug for Page { @@ -281,16 +265,11 @@ impl Page { ///

    A structure that can contain a value in multiple encoding formats.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ValueHolder { ///

    An Amazon Ion binary value contained in a ValueHolder structure.

    - #[serde(rename = "IonBinary")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub ion_binary: std::option::Option, ///

    An Amazon Ion plaintext value contained in a ValueHolder structure.

    - #[serde(rename = "IonText")] - #[serde(default)] pub ion_text: std::option::Option, } impl std::fmt::Debug for ValueHolder { @@ -347,20 +326,14 @@ impl ValueHolder { ///

    Contains the details of the executed statement.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExecuteStatementResult { ///

    Contains the details of the first fetched page.

    - #[serde(rename = "FirstPage")] - #[serde(default)] pub first_page: std::option::Option, ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, ///

    Contains metrics about the number of I/O requests that were consumed.

    - #[serde(rename = "ConsumedIOs")] - #[serde(default)] - pub consumed_i_os: std::option::Option, + pub consumed_i_os: std::option::Option, } impl std::fmt::Debug for ExecuteStatementResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -379,7 +352,7 @@ pub mod execute_statement_result { pub struct Builder { pub(crate) first_page: std::option::Option, pub(crate) timing_information: std::option::Option, - pub(crate) consumed_i_os: std::option::Option, + pub(crate) consumed_i_os: std::option::Option, } impl Builder { ///

    Contains the details of the first fetched page.

    @@ -404,13 +377,13 @@ pub mod execute_statement_result { self } ///

    Contains metrics about the number of I/O requests that were consumed.

    - pub fn consumed_i_os(mut self, input: crate::model::IOUsage) -> Self { + pub fn consumed_i_os(mut self, input: crate::model::IoUsage) -> Self { self.consumed_i_os = Some(input); self } pub fn set_consumed_i_os( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.consumed_i_os = input; self @@ -434,11 +407,9 @@ impl ExecuteStatementResult { ///

    Contains the details of the aborted transaction.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AbortTransactionResult { ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, } impl std::fmt::Debug for AbortTransactionResult { @@ -486,25 +457,16 @@ impl AbortTransactionResult { ///

    Contains the details of the committed transaction.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CommitTransactionResult { ///

    The transaction ID of the committed transaction.

    - #[serde(rename = "TransactionId")] - #[serde(default)] pub transaction_id: std::option::Option, ///

    The commit digest of the committed transaction.

    - #[serde(rename = "CommitDigest")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub commit_digest: std::option::Option, ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, ///

    Contains metrics about the number of I/O requests that were consumed.

    - #[serde(rename = "ConsumedIOs")] - #[serde(default)] - pub consumed_i_os: std::option::Option, + pub consumed_i_os: std::option::Option, } impl std::fmt::Debug for CommitTransactionResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -525,7 +487,7 @@ pub mod commit_transaction_result { pub(crate) transaction_id: std::option::Option, pub(crate) commit_digest: std::option::Option, pub(crate) timing_information: std::option::Option, - pub(crate) consumed_i_os: std::option::Option, + pub(crate) consumed_i_os: std::option::Option, } impl Builder { ///

    The transaction ID of the committed transaction.

    @@ -562,13 +524,13 @@ pub mod commit_transaction_result { self } ///

    Contains metrics about the number of I/O requests that were consumed.

    - pub fn consumed_i_os(mut self, input: crate::model::IOUsage) -> Self { + pub fn consumed_i_os(mut self, input: crate::model::IoUsage) -> Self { self.consumed_i_os = Some(input); self } pub fn set_consumed_i_os( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.consumed_i_os = input; self @@ -593,11 +555,9 @@ impl CommitTransactionResult { ///

    Contains the details of the ended session.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndSessionResult { ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, } impl std::fmt::Debug for EndSessionResult { @@ -645,15 +605,11 @@ impl EndSessionResult { ///

    Contains the details of the started transaction.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartTransactionResult { ///

    The transaction ID of the started transaction.

    - #[serde(rename = "TransactionId")] - #[serde(default)] pub transaction_id: std::option::Option, ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, } impl std::fmt::Debug for StartTransactionResult { @@ -716,16 +672,12 @@ impl StartTransactionResult { ///

    Contains the details of the started session.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartSessionResult { ///

    Session token of the started session. This SessionToken is required for /// every subsequent command that is issued during the current session.

    - #[serde(rename = "SessionToken")] - #[serde(default)] pub session_token: std::option::Option, ///

    Contains server-side performance information for the command.

    - #[serde(rename = "TimingInformation")] - #[serde(default)] pub timing_information: std::option::Option, } impl std::fmt::Debug for StartSessionResult { @@ -789,15 +741,11 @@ impl StartSessionResult { ///

    Specifies the details of the page to be fetched.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FetchPageRequest { ///

    Specifies the transaction ID of the page to be fetched.

    - #[serde(rename = "TransactionId")] - #[serde(default)] pub transaction_id: std::option::Option, ///

    Specifies the next page token of the page to be fetched.

    - #[serde(rename = "NextPageToken")] - #[serde(default)] pub next_page_token: std::option::Option, } impl std::fmt::Debug for FetchPageRequest { @@ -860,19 +808,13 @@ impl FetchPageRequest { ///

    Specifies a request to execute a statement.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExecuteStatementRequest { ///

    Specifies the transaction ID of the request.

    - #[serde(rename = "TransactionId")] - #[serde(default)] pub transaction_id: std::option::Option, ///

    Specifies the statement of the request.

    - #[serde(rename = "Statement")] - #[serde(default)] pub statement: std::option::Option, ///

    Specifies the parameters for the parameterized statement in the request.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option>, } impl std::fmt::Debug for ExecuteStatementRequest { @@ -948,7 +890,7 @@ impl ExecuteStatementRequest { ///

    Contains the details of the transaction to abort.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AbortTransactionRequest {} impl std::fmt::Debug for AbortTransactionRequest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -978,11 +920,9 @@ impl AbortTransactionRequest { ///

    Contains the details of the transaction to commit.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CommitTransactionRequest { ///

    Specifies the transaction ID of the transaction to commit.

    - #[serde(rename = "TransactionId")] - #[serde(default)] pub transaction_id: std::option::Option, ///

    Specifies the commit digest for the transaction to commit. For every active transaction, /// the commit digest must be passed. QLDB validates CommitDigest and rejects @@ -991,9 +931,6 @@ pub struct CommitTransactionRequest { ///

    The purpose of the CommitDigest parameter is to ensure that QLDB commits /// a transaction if and only if the server has processed the exact set of statements sent by /// the client, in the same order that client sent them, and with no duplicates.

    - #[serde(rename = "CommitDigest")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub commit_digest: std::option::Option, } impl std::fmt::Debug for CommitTransactionRequest { @@ -1059,7 +996,7 @@ impl CommitTransactionRequest { ///

    Specifies a request to end the session.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndSessionRequest {} impl std::fmt::Debug for EndSessionRequest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1089,7 +1026,7 @@ impl EndSessionRequest { ///

    Specifies a request to start a transaction.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartTransactionRequest {} impl std::fmt::Debug for StartTransactionRequest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1119,11 +1056,9 @@ impl StartTransactionRequest { ///

    Specifies a request to start a new session.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StartSessionRequest { ///

    The name of the ledger to start a new session against.

    - #[serde(rename = "LedgerName")] - #[serde(default)] pub ledger_name: std::option::Option, } impl std::fmt::Debug for StartSessionRequest { diff --git a/sdk/qldbsession/src/operation.rs b/sdk/qldbsession/src/operation.rs index f8d11251dc03..a1dd379e205b 100644 --- a/sdk/qldbsession/src/operation.rs +++ b/sdk/qldbsession/src/operation.rs @@ -29,73 +29,6 @@ impl SendCommand { pub fn builder() -> crate::input::send_command_input::Builder { crate::input::send_command_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SendCommandError::unhandled(generic)), - }; - return Err(match error_code { - "BadRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::BadRequestError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "CapacityExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::CapacityExceededError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidSessionException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidSessionError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "OccConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::OccConflictError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "RateExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::RateExceededError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - _ => crate::error::SendCommandError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::send_command_output::Builder::default(); - builder = - crate::json_deser::send_command_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::SendCommandError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -104,6 +37,10 @@ impl smithy_http::response::ParseStrictResponse for SendCommand { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_send_command_error(response) + } else { + crate::operation_deser::parse_send_command_response(response) + } } } diff --git a/sdk/qldbsession/src/operation_deser.rs b/sdk/qldbsession/src/operation_deser.rs new file mode 100644 index 000000000000..245a3030f48c --- /dev/null +++ b/sdk/qldbsession/src/operation_deser.rs @@ -0,0 +1,113 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_command_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SendCommandError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SendCommandError::unhandled(generic)), + }; + Err(match error_code { + "BadRequestException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::BadRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "CapacityExceededException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::CapacityExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::capacity_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_capacity_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidSessionException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidSessionException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_session_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_session_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "OccConflictException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::OccConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::occ_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_occ_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "RateExceededException" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::RateExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::rate_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_rate_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SendCommandError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_command_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::send_command_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_send_command(response.body().as_ref(), output) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }) +} diff --git a/sdk/qldbsession/src/operation_ser.rs b/sdk/qldbsession/src/operation_ser.rs index c4864e1619ac..adbd7a575f2b 100644 --- a/sdk/qldbsession/src/operation_ser.rs +++ b/sdk/qldbsession/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_send_command( input: &crate::input::SendCommandInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_command_input(&mut object, input); diff --git a/sdk/qldbsession/src/serde_util.rs b/sdk/qldbsession/src/serde_util.rs deleted file mode 100644 index 473b5bd6f2d4..000000000000 --- a/sdk/qldbsession/src/serde_util.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} diff --git a/sdk/qldbsession/src/serializer.rs b/sdk/qldbsession/src/serializer.rs deleted file mode 100644 index 06b2dac9a3e4..000000000000 --- a/sdk/qldbsession/src/serializer.rs +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCommandInputBody<'a> { - ///

    Specifies the session token for the current command. A session token is constant - /// throughout the life of the session.

    - ///

    To obtain a session token, run the StartSession command. This - /// SessionToken is required for every subsequent command that is issued during - /// the current session.

    - pub session_token: &'a std::option::Option, - ///

    Command to start a new session. A session token is obtained as part of the - /// response.

    - pub start_session: &'a std::option::Option, - ///

    Command to start a new transaction.

    - pub start_transaction: &'a std::option::Option, - ///

    Command to end the current session.

    - pub end_session: &'a std::option::Option, - ///

    Command to commit the specified transaction.

    - pub commit_transaction: &'a std::option::Option, - ///

    Command to abort the current transaction.

    - pub abort_transaction: &'a std::option::Option, - ///

    Command to execute a statement in the specified transaction.

    - pub execute_statement: &'a std::option::Option, - ///

    Command to fetch a page.

    - pub fetch_page: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendCommandInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCommandInputBody"); - formatter.field("session_token", &self.session_token); - formatter.field("start_session", &self.start_session); - formatter.field("start_transaction", &self.start_transaction); - formatter.field("end_session", &self.end_session); - formatter.field("commit_transaction", &self.commit_transaction); - formatter.field("abort_transaction", &self.abort_transaction); - formatter.field("execute_statement", &self.execute_statement); - formatter.field("fetch_page", &self.fetch_page); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCommandOutputBody { - ///

    Contains the details of the started session that includes a session token. This - /// SessionToken is required for every subsequent command that is issued during - /// the current session.

    - #[serde(rename = "StartSession")] - #[serde(default)] - pub start_session: std::option::Option, - ///

    Contains the details of the started transaction.

    - #[serde(rename = "StartTransaction")] - #[serde(default)] - pub start_transaction: std::option::Option, - ///

    Contains the details of the ended session.

    - #[serde(rename = "EndSession")] - #[serde(default)] - pub end_session: std::option::Option, - ///

    Contains the details of the committed transaction.

    - #[serde(rename = "CommitTransaction")] - #[serde(default)] - pub commit_transaction: std::option::Option, - ///

    Contains the details of the aborted transaction.

    - #[serde(rename = "AbortTransaction")] - #[serde(default)] - pub abort_transaction: std::option::Option, - ///

    Contains the details of the executed statement.

    - #[serde(rename = "ExecuteStatement")] - #[serde(default)] - pub execute_statement: std::option::Option, - ///

    Contains the details of the fetched page.

    - #[serde(rename = "FetchPage")] - #[serde(default)] - pub fetch_page: std::option::Option, -} -impl std::fmt::Debug for SendCommandOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCommandOutputBody"); - formatter.field("start_session", &self.start_session); - formatter.field("start_transaction", &self.start_transaction); - formatter.field("end_session", &self.end_session); - formatter.field("commit_transaction", &self.commit_transaction); - formatter.field("abort_transaction", &self.abort_transaction); - formatter.field("execute_statement", &self.execute_statement); - formatter.field("fetch_page", &self.fetch_page); - formatter.finish() - } -} diff --git a/sdk/rds/Cargo.toml b/sdk/rds/Cargo.toml index cdcf1195641f..f0b00bb24127 100644 --- a/sdk/rds/Cargo.toml +++ b/sdk/rds/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-rds" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon Relational Database Service\n

    \n

    Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and \n scale a relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational \n database and manages common database administration tasks, freeing up developers to focus on what makes their applications \n and businesses unique.

    \n

    Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, \n Oracle, or Amazon Aurora database server. These capabilities mean that the code, applications, and tools \n you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS \n automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS \n is flexible: you can scale your DB instance's compute resources and storage capacity to meet your \n application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for \n the resources you use.

    \n

    This interface reference for Amazon RDS contains documentation for a programming or command line interface \n you can use to manage Amazon RDS. Amazon RDS is asynchronous, which means that some interfaces might \n require techniques such as polling or callback functions to determine when a command has been applied. In this \n reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, \n or during the maintenance window. The reference structure is as follows, and we list following some related topics \n from the user guide.

    \n \n

    \n Amazon RDS API Reference\n

    \n \n
      \n
    • \n

      For the alphabetical list of API actions, see \n API Actions.

      \n
    • \n
    • \n

      For the alphabetical list of data types, see \n Data Types.

      \n
    • \n
    • \n

      For a list of common query parameters, see \n Common Parameters.

      \n
    • \n
    • \n

      For descriptions of the error codes, see \n Common Errors.

      \n
    • \n
    \n \n

    \n Amazon RDS User Guide\n

    \n \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -26,14 +26,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/rds/src/client.rs b/sdk/rds/src/client.rs index 1e596f68c4b7..1c28faed3d85 100644 --- a/sdk/rds/src/client.rs +++ b/sdk/rds/src/client.rs @@ -546,7 +546,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AddRoleToDBClusterOutput, + crate::output::AddRoleToDbClusterOutput, smithy_http::result::SdkError, > where @@ -610,7 +610,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AddRoleToDBInstanceOutput, + crate::output::AddRoleToDbInstanceOutput, smithy_http::result::SdkError, > where @@ -898,7 +898,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AuthorizeDBSecurityGroupIngressOutput, + crate::output::AuthorizeDbSecurityGroupIngressOutput, smithy_http::result::SdkError, > where @@ -1005,7 +1005,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::BacktrackDBClusterOutput, + crate::output::BacktrackDbClusterOutput, smithy_http::result::SdkError, > where @@ -1167,7 +1167,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CopyDBClusterParameterGroupOutput, + crate::output::CopyDbClusterParameterGroupOutput, smithy_http::result::SdkError, > where @@ -1298,7 +1298,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CopyDBClusterSnapshotOutput, + crate::output::CopyDbClusterSnapshotOutput, smithy_http::result::SdkError, > where @@ -1482,7 +1482,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CopyDBParameterGroupOutput, + crate::output::CopyDbParameterGroupOutput, smithy_http::result::SdkError, > where @@ -1602,7 +1602,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CopyDBSnapshotOutput, + crate::output::CopyDbSnapshotOutput, smithy_http::result::SdkError, > where @@ -2050,7 +2050,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBClusterOutput, + crate::output::CreateDbClusterOutput, smithy_http::result::SdkError, > where @@ -2716,7 +2716,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBClusterEndpointOutput, + crate::output::CreateDbClusterEndpointOutput, smithy_http::result::SdkError, > where @@ -2826,7 +2826,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBClusterParameterGroupOutput, + crate::output::CreateDbClusterParameterGroupOutput, smithy_http::result::SdkError, > where @@ -2953,7 +2953,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBClusterSnapshotOutput, + crate::output::CreateDbClusterSnapshotOutput, smithy_http::result::SdkError, > where @@ -3046,7 +3046,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBInstanceOutput, + crate::output::CreateDbInstanceOutput, smithy_http::result::SdkError, > where @@ -4382,7 +4382,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBInstanceReadReplicaOutput, + crate::output::CreateDbInstanceReadReplicaOutput, smithy_http::result::SdkError, > where @@ -5016,7 +5016,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBParameterGroupOutput, + crate::output::CreateDbParameterGroupOutput, smithy_http::result::SdkError, > where @@ -5190,7 +5190,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBProxyOutput, + crate::output::CreateDbProxyOutput, smithy_http::result::SdkError, > where @@ -5340,7 +5340,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBProxyEndpointOutput, + crate::output::CreateDbProxyEndpointOutput, smithy_http::result::SdkError, > where @@ -5450,7 +5450,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBSecurityGroupOutput, + crate::output::CreateDbSecurityGroupOutput, smithy_http::result::SdkError, > where @@ -5538,7 +5538,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBSnapshotOutput, + crate::output::CreateDbSnapshotOutput, smithy_http::result::SdkError, > where @@ -5631,7 +5631,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateDBSubnetGroupOutput, + crate::output::CreateDbSubnetGroupOutput, smithy_http::result::SdkError, > where @@ -6195,7 +6195,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBClusterOutput, + crate::output::DeleteDbClusterOutput, smithy_http::result::SdkError, > where @@ -6295,7 +6295,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBClusterEndpointOutput, + crate::output::DeleteDbClusterEndpointOutput, smithy_http::result::SdkError, > where @@ -6342,7 +6342,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBClusterParameterGroupOutput, + crate::output::DeleteDbClusterParameterGroupOutput, smithy_http::result::SdkError, > where @@ -6401,7 +6401,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBClusterSnapshotOutput, + crate::output::DeleteDbClusterSnapshotOutput, smithy_http::result::SdkError, > where @@ -6449,7 +6449,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBInstanceOutput, + crate::output::DeleteDbInstanceOutput, smithy_http::result::SdkError, > where @@ -6562,7 +6562,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBInstanceAutomatedBackupOutput, + crate::output::DeleteDbInstanceAutomatedBackupOutput, smithy_http::result::SdkError, > where @@ -6622,7 +6622,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBParameterGroupOutput, + crate::output::DeleteDbParameterGroupOutput, smithy_http::result::SdkError, > where @@ -6678,7 +6678,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBProxyOutput, + crate::output::DeleteDbProxyOutput, smithy_http::result::SdkError, > where @@ -6722,7 +6722,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBProxyEndpointOutput, + crate::output::DeleteDbProxyEndpointOutput, smithy_http::result::SdkError, > where @@ -6766,7 +6766,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBSecurityGroupOutput, + crate::output::DeleteDbSecurityGroupOutput, smithy_http::result::SdkError, > where @@ -6828,7 +6828,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBSnapshotOutput, + crate::output::DeleteDbSnapshotOutput, smithy_http::result::SdkError, > where @@ -6873,7 +6873,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteDBSubnetGroupOutput, + crate::output::DeleteDbSubnetGroupOutput, smithy_http::result::SdkError, > where @@ -7105,7 +7105,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeregisterDBProxyTargetsOutput, + crate::output::DeregisterDbProxyTargetsOutput, smithy_http::result::SdkError, > where @@ -7394,7 +7394,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterBacktracksOutput, + crate::output::DescribeDbClusterBacktracksOutput, smithy_http::result::SdkError, > where @@ -7553,7 +7553,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterEndpointsOutput, + crate::output::DescribeDbClusterEndpointsOutput, smithy_http::result::SdkError, > where @@ -7660,7 +7660,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterParameterGroupsOutput, + crate::output::DescribeDbClusterParameterGroupsOutput, smithy_http::result::SdkError, > where @@ -7755,7 +7755,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterParametersOutput, + crate::output::DescribeDbClusterParametersOutput, smithy_http::result::SdkError, > where @@ -7863,7 +7863,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClustersOutput, + crate::output::DescribeDbClustersOutput, smithy_http::result::SdkError, > where @@ -7972,7 +7972,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotAttributesOutput, + crate::output::DescribeDbClusterSnapshotAttributesOutput, smithy_http::result::SdkError, > where @@ -8019,7 +8019,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotsOutput, + crate::output::DescribeDbClusterSnapshotsOutput, smithy_http::result::SdkError, > where @@ -8224,7 +8224,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBEngineVersionsOutput, + crate::output::DescribeDbEngineVersionsOutput, smithy_http::result::SdkError, > where @@ -8455,7 +8455,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBInstanceAutomatedBackupsOutput, + crate::output::DescribeDbInstanceAutomatedBackupsOutput, smithy_http::result::SdkError, > where @@ -8596,7 +8596,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBInstancesOutput, + crate::output::DescribeDbInstancesOutput, smithy_http::result::SdkError, > where @@ -8719,7 +8719,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBLogFilesOutput, + crate::output::DescribeDbLogFilesOutput, smithy_http::result::SdkError, > where @@ -8829,7 +8829,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBParameterGroupsOutput, + crate::output::DescribeDbParameterGroupsOutput, smithy_http::result::SdkError, > where @@ -8922,7 +8922,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBParametersOutput, + crate::output::DescribeDbParametersOutput, smithy_http::result::SdkError, > where @@ -9027,7 +9027,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBProxiesOutput, + crate::output::DescribeDbProxiesOutput, smithy_http::result::SdkError, > where @@ -9111,7 +9111,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBProxyEndpointsOutput, + crate::output::DescribeDbProxyEndpointsOutput, smithy_http::result::SdkError, > where @@ -9209,7 +9209,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetGroupsOutput, + crate::output::DescribeDbProxyTargetGroupsOutput, smithy_http::result::SdkError, > where @@ -9306,7 +9306,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetsOutput, + crate::output::DescribeDbProxyTargetsOutput, smithy_http::result::SdkError, > where @@ -9403,7 +9403,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBSecurityGroupsOutput, + crate::output::DescribeDbSecurityGroupsOutput, smithy_http::result::SdkError, > where @@ -9490,7 +9490,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBSnapshotAttributesOutput, + crate::output::DescribeDbSnapshotAttributesOutput, smithy_http::result::SdkError, > where @@ -9534,7 +9534,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBSnapshotsOutput, + crate::output::DescribeDbSnapshotsOutput, smithy_http::result::SdkError, > where @@ -9764,7 +9764,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeDBSubnetGroupsOutput, + crate::output::DescribeDbSubnetGroupsOutput, smithy_http::result::SdkError, > where @@ -10969,7 +10969,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeOrderableDBInstanceOptionsOutput, + crate::output::DescribeOrderableDbInstanceOptionsOutput, smithy_http::result::SdkError, > where @@ -11285,7 +11285,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOutput, + crate::output::DescribeReservedDbInstancesOutput, smithy_http::result::SdkError, > where @@ -11455,7 +11455,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOfferingsOutput, + crate::output::DescribeReservedDbInstancesOfferingsOutput, smithy_http::result::SdkError, > where @@ -11689,7 +11689,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeValidDBInstanceModificationsOutput, + crate::output::DescribeValidDbInstanceModificationsOutput, smithy_http::result::SdkError, > where @@ -11734,7 +11734,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DownloadDBLogFilePortionOutput, + crate::output::DownloadDbLogFilePortionOutput, smithy_http::result::SdkError, > where @@ -11838,7 +11838,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::FailoverDBClusterOutput, + crate::output::FailoverDbClusterOutput, smithy_http::result::SdkError, > where @@ -12230,7 +12230,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyCurrentDBClusterCapacityOutput, + crate::output::ModifyCurrentDbClusterCapacityOutput, smithy_http::result::SdkError, > where @@ -12331,7 +12331,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBClusterOutput, + crate::output::ModifyDbClusterOutput, smithy_http::result::SdkError, > where @@ -12787,7 +12787,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBClusterEndpointOutput, + crate::output::ModifyDbClusterEndpointOutput, smithy_http::result::SdkError, > where @@ -12872,7 +12872,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBClusterParameterGroupOutput, + crate::output::ModifyDbClusterParameterGroupOutput, smithy_http::result::SdkError, > where @@ -12941,7 +12941,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBClusterSnapshotAttributeOutput, + crate::output::ModifyDbClusterSnapshotAttributeOutput, smithy_http::result::SdkError, > where @@ -13041,7 +13041,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBInstanceOutput, + crate::output::ModifyDbInstanceOutput, smithy_http::result::SdkError, > where @@ -14016,7 +14016,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBParameterGroupOutput, + crate::output::ModifyDbParameterGroupOutput, smithy_http::result::SdkError, > where @@ -14089,7 +14089,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBProxyOutput, + crate::output::ModifyDbProxyOutput, smithy_http::result::SdkError, > where @@ -14213,7 +14213,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBProxyEndpointOutput, + crate::output::ModifyDbProxyEndpointOutput, smithy_http::result::SdkError, > where @@ -14285,7 +14285,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBProxyTargetGroupOutput, + crate::output::ModifyDbProxyTargetGroupOutput, smithy_http::result::SdkError, > where @@ -14365,7 +14365,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBSnapshotOutput, + crate::output::ModifyDbSnapshotOutput, smithy_http::result::SdkError, > where @@ -14475,7 +14475,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBSnapshotAttributeOutput, + crate::output::ModifyDbSnapshotAttributeOutput, smithy_http::result::SdkError, > where @@ -14572,7 +14572,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ModifyDBSubnetGroupOutput, + crate::output::ModifyDbSubnetGroupOutput, smithy_http::result::SdkError, > where @@ -15070,7 +15070,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::PromoteReadReplicaDBClusterOutput, + crate::output::PromoteReadReplicaDbClusterOutput, smithy_http::result::SdkError, > where @@ -15123,7 +15123,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::PurchaseReservedDBInstancesOfferingOutput, + crate::output::PurchaseReservedDbInstancesOfferingOutput, smithy_http::result::SdkError, > where @@ -15209,7 +15209,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RebootDBInstanceOutput, + crate::output::RebootDbInstanceOutput, smithy_http::result::SdkError, > where @@ -15271,7 +15271,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RegisterDBProxyTargetsOutput, + crate::output::RegisterDbProxyTargetsOutput, smithy_http::result::SdkError, > where @@ -15411,7 +15411,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RemoveRoleFromDBClusterOutput, + crate::output::RemoveRoleFromDbClusterOutput, smithy_http::result::SdkError, > where @@ -15475,7 +15475,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RemoveRoleFromDBInstanceOutput, + crate::output::RemoveRoleFromDbInstanceOutput, smithy_http::result::SdkError, > where @@ -15661,7 +15661,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ResetDBClusterParameterGroupOutput, + crate::output::ResetDbClusterParameterGroupOutput, smithy_http::result::SdkError, > where @@ -15732,7 +15732,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ResetDBParameterGroupOutput, + crate::output::ResetDbParameterGroupOutput, smithy_http::result::SdkError, > where @@ -15831,7 +15831,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBClusterFromS3Output, + crate::output::RestoreDbClusterFromS3Output, smithy_http::result::SdkError, > where @@ -16371,7 +16371,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBClusterFromSnapshotOutput, + crate::output::RestoreDbClusterFromSnapshotOutput, smithy_http::result::SdkError, > where @@ -16771,7 +16771,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBClusterToPointInTimeOutput, + crate::output::RestoreDbClusterToPointInTimeOutput, smithy_http::result::SdkError, > where @@ -17140,7 +17140,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromDBSnapshotOutput, + crate::output::RestoreDbInstanceFromDbSnapshotOutput, smithy_http::result::SdkError, > where @@ -17674,7 +17674,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromS3Output, + crate::output::RestoreDbInstanceFromS3Output, smithy_http::result::SdkError, > where @@ -18408,7 +18408,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RestoreDBInstanceToPointInTimeOutput, + crate::output::RestoreDbInstanceToPointInTimeOutput, smithy_http::result::SdkError, > where @@ -19016,7 +19016,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::RevokeDBSecurityGroupIngressOutput, + crate::output::RevokeDbSecurityGroupIngressOutput, smithy_http::result::SdkError, > where @@ -19204,7 +19204,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StartDBClusterOutput, + crate::output::StartDbClusterOutput, smithy_http::result::SdkError, > where @@ -19249,7 +19249,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StartDBInstanceOutput, + crate::output::StartDbInstanceOutput, smithy_http::result::SdkError, > where @@ -19295,7 +19295,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StartDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StartDbInstanceAutomatedBackupsReplicationOutput, smithy_http::result::SdkError< crate::error::StartDBInstanceAutomatedBackupsReplicationError, >, @@ -19594,7 +19594,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StopDBClusterOutput, + crate::output::StopDbClusterOutput, smithy_http::result::SdkError, > where @@ -19639,7 +19639,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StopDBInstanceOutput, + crate::output::StopDbInstanceOutput, smithy_http::result::SdkError, > where @@ -19699,7 +19699,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StopDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StopDbInstanceAutomatedBackupsReplicationOutput, smithy_http::result::SdkError< crate::error::StopDBInstanceAutomatedBackupsReplicationError, >, diff --git a/sdk/rds/src/error.rs b/sdk/rds/src/error.rs index 53a17380b101..862329227773 100644 --- a/sdk/rds/src/error.rs +++ b/sdk/rds/src/error.rs @@ -8,20 +8,20 @@ pub struct AddRoleToDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddRoleToDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterRoleAlreadyExistsFault(crate::error::DBClusterRoleAlreadyExistsFault), - DBClusterRoleQuotaExceededFault(crate::error::DBClusterRoleQuotaExceededFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterRoleAlreadyExistsFault(crate::error::DbClusterRoleAlreadyExistsFault), + DbClusterRoleQuotaExceededFault(crate::error::DbClusterRoleQuotaExceededFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddRoleToDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddRoleToDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - AddRoleToDBClusterErrorKind::DBClusterRoleAlreadyExistsFault(_inner) => _inner.fmt(f), - AddRoleToDBClusterErrorKind::DBClusterRoleQuotaExceededFault(_inner) => _inner.fmt(f), - AddRoleToDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + AddRoleToDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + AddRoleToDBClusterErrorKind::DbClusterRoleAlreadyExistsFault(_inner) => _inner.fmt(f), + AddRoleToDBClusterErrorKind::DbClusterRoleQuotaExceededFault(_inner) => _inner.fmt(f), + AddRoleToDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), AddRoleToDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -73,35 +73,35 @@ impl AddRoleToDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBClusterErrorKind::DBClusterNotFoundFault(_) + AddRoleToDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_role_already_exists_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBClusterErrorKind::DBClusterRoleAlreadyExistsFault(_) + AddRoleToDBClusterErrorKind::DbClusterRoleAlreadyExistsFault(_) ) } pub fn is_db_cluster_role_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBClusterErrorKind::DBClusterRoleQuotaExceededFault(_) + AddRoleToDBClusterErrorKind::DbClusterRoleQuotaExceededFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBClusterErrorKind::InvalidDBClusterStateFault(_) + AddRoleToDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for AddRoleToDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddRoleToDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - AddRoleToDBClusterErrorKind::DBClusterRoleAlreadyExistsFault(_inner) => Some(_inner), - AddRoleToDBClusterErrorKind::DBClusterRoleQuotaExceededFault(_inner) => Some(_inner), - AddRoleToDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + AddRoleToDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + AddRoleToDBClusterErrorKind::DbClusterRoleAlreadyExistsFault(_inner) => Some(_inner), + AddRoleToDBClusterErrorKind::DbClusterRoleQuotaExceededFault(_inner) => Some(_inner), + AddRoleToDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), AddRoleToDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -116,20 +116,20 @@ pub struct AddRoleToDBInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddRoleToDBInstanceErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBInstanceRoleAlreadyExistsFault(crate::error::DBInstanceRoleAlreadyExistsFault), - DBInstanceRoleQuotaExceededFault(crate::error::DBInstanceRoleQuotaExceededFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbInstanceRoleAlreadyExistsFault(crate::error::DbInstanceRoleAlreadyExistsFault), + DbInstanceRoleQuotaExceededFault(crate::error::DbInstanceRoleQuotaExceededFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddRoleToDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddRoleToDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - AddRoleToDBInstanceErrorKind::DBInstanceRoleAlreadyExistsFault(_inner) => _inner.fmt(f), - AddRoleToDBInstanceErrorKind::DBInstanceRoleQuotaExceededFault(_inner) => _inner.fmt(f), - AddRoleToDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + AddRoleToDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + AddRoleToDBInstanceErrorKind::DbInstanceRoleAlreadyExistsFault(_inner) => _inner.fmt(f), + AddRoleToDBInstanceErrorKind::DbInstanceRoleQuotaExceededFault(_inner) => _inner.fmt(f), + AddRoleToDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), AddRoleToDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -181,35 +181,35 @@ impl AddRoleToDBInstanceError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBInstanceErrorKind::DBInstanceNotFoundFault(_) + AddRoleToDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_instance_role_already_exists_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBInstanceErrorKind::DBInstanceRoleAlreadyExistsFault(_) + AddRoleToDBInstanceErrorKind::DbInstanceRoleAlreadyExistsFault(_) ) } pub fn is_db_instance_role_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBInstanceErrorKind::DBInstanceRoleQuotaExceededFault(_) + AddRoleToDBInstanceErrorKind::DbInstanceRoleQuotaExceededFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - AddRoleToDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + AddRoleToDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for AddRoleToDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddRoleToDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - AddRoleToDBInstanceErrorKind::DBInstanceRoleAlreadyExistsFault(_inner) => Some(_inner), - AddRoleToDBInstanceErrorKind::DBInstanceRoleQuotaExceededFault(_inner) => Some(_inner), - AddRoleToDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + AddRoleToDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + AddRoleToDBInstanceErrorKind::DbInstanceRoleAlreadyExistsFault(_inner) => Some(_inner), + AddRoleToDBInstanceErrorKind::DbInstanceRoleQuotaExceededFault(_inner) => Some(_inner), + AddRoleToDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), AddRoleToDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -323,22 +323,22 @@ pub struct AddTagsToResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddTagsToResourceErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddTagsToResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddTagsToResourceErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - AddTagsToResourceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - AddTagsToResourceErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - AddTagsToResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => _inner.fmt(f), - AddTagsToResourceErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + AddTagsToResourceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + AddTagsToResourceErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + AddTagsToResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => _inner.fmt(f), + AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), AddTagsToResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -390,42 +390,42 @@ impl AddTagsToResourceError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - AddTagsToResourceErrorKind::DBClusterNotFoundFault(_) + AddTagsToResourceErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - AddTagsToResourceErrorKind::DBInstanceNotFoundFault(_) + AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - AddTagsToResourceErrorKind::DBProxyNotFoundFault(_) + AddTagsToResourceErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - AddTagsToResourceErrorKind::DBProxyTargetGroupNotFoundFault(_) + AddTagsToResourceErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - AddTagsToResourceErrorKind::DBSnapshotNotFoundFault(_) + AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for AddTagsToResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddTagsToResourceErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - AddTagsToResourceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - AddTagsToResourceErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - AddTagsToResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => Some(_inner), - AddTagsToResourceErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + AddTagsToResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + AddTagsToResourceErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + AddTagsToResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => Some(_inner), + AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), AddTagsToResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -440,8 +440,8 @@ pub struct ApplyPendingMaintenanceActionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ApplyPendingMaintenanceActionErrorKind { - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), ResourceNotFoundFault(crate::error::ResourceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -449,10 +449,10 @@ pub enum ApplyPendingMaintenanceActionErrorKind { impl std::fmt::Display for ApplyPendingMaintenanceActionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ApplyPendingMaintenanceActionErrorKind::InvalidDBClusterStateFault(_inner) => { + ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_inner) => { _inner.fmt(f) } - ApplyPendingMaintenanceActionErrorKind::InvalidDBInstanceStateFault(_inner) => { + ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_inner) => { _inner.fmt(f) } ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f), @@ -507,13 +507,13 @@ impl ApplyPendingMaintenanceActionError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ApplyPendingMaintenanceActionErrorKind::InvalidDBClusterStateFault(_) + ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - ApplyPendingMaintenanceActionErrorKind::InvalidDBInstanceStateFault(_) + ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_resource_not_found_fault(&self) -> bool { @@ -526,10 +526,10 @@ impl ApplyPendingMaintenanceActionError { impl std::error::Error for ApplyPendingMaintenanceActionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ApplyPendingMaintenanceActionErrorKind::InvalidDBClusterStateFault(_inner) => { + ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_inner) => { Some(_inner) } - ApplyPendingMaintenanceActionErrorKind::InvalidDBInstanceStateFault(_inner) => { + ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_inner) => { Some(_inner) } ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner), @@ -549,8 +549,8 @@ pub struct AuthorizeDBSecurityGroupIngressError { pub enum AuthorizeDBSecurityGroupIngressErrorKind { AuthorizationAlreadyExistsFault(crate::error::AuthorizationAlreadyExistsFault), AuthorizationQuotaExceededFault(crate::error::AuthorizationQuotaExceededFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -563,10 +563,10 @@ impl std::fmt::Display for AuthorizeDBSecurityGroupIngressError { AuthorizeDBSecurityGroupIngressErrorKind::AuthorizationQuotaExceededFault(_inner) => { _inner.fmt(f) } - AuthorizeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + AuthorizeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } - AuthorizeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + AuthorizeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { _inner.fmt(f) } AuthorizeDBSecurityGroupIngressErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -632,13 +632,13 @@ impl AuthorizeDBSecurityGroupIngressError { pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - AuthorizeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_) + AuthorizeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_invalid_db_security_group_state_fault(&self) -> bool { matches!( &self.kind, - AuthorizeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_) + AuthorizeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_) ) } } @@ -651,10 +651,10 @@ impl std::error::Error for AuthorizeDBSecurityGroupIngressError { AuthorizeDBSecurityGroupIngressErrorKind::AuthorizationQuotaExceededFault(_inner) => { Some(_inner) } - AuthorizeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + AuthorizeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_inner) => { Some(_inner) } - AuthorizeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + AuthorizeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { Some(_inner) } AuthorizeDBSecurityGroupIngressErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -671,16 +671,16 @@ pub struct BacktrackDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BacktrackDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BacktrackDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BacktrackDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - BacktrackDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + BacktrackDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + BacktrackDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), BacktrackDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -732,21 +732,21 @@ impl BacktrackDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - BacktrackDBClusterErrorKind::DBClusterNotFoundFault(_) + BacktrackDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - BacktrackDBClusterErrorKind::InvalidDBClusterStateFault(_) + BacktrackDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for BacktrackDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BacktrackDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - BacktrackDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + BacktrackDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + BacktrackDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), BacktrackDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -851,22 +851,22 @@ pub struct CopyDBClusterParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CopyDBClusterParameterGroupErrorKind { - DBParameterGroupAlreadyExistsFault(crate::error::DBParameterGroupAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBParameterGroupQuotaExceededFault(crate::error::DBParameterGroupQuotaExceededFault), + DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CopyDBClusterParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CopyDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CopyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - CopyDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { _inner.fmt(f) } CopyDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -920,32 +920,32 @@ impl CopyDBClusterParameterGroupError { pub fn is_db_parameter_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_) + CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_) + CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_) ) } } impl std::error::Error for CopyDBClusterParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CopyDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { Some(_inner) } - CopyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - CopyDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { Some(_inner) } CopyDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -962,11 +962,11 @@ pub struct CopyDBClusterSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CopyDBClusterSnapshotErrorKind { - DBClusterSnapshotAlreadyExistsFault(crate::error::DBClusterSnapshotAlreadyExistsFault), - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -974,15 +974,15 @@ pub enum CopyDBClusterSnapshotErrorKind { impl std::fmt::Display for CopyDBClusterSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => { + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f), - CopyDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f), + CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { _inner.fmt(f) } - CopyDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - CopyDBClusterSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), CopyDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -1035,31 +1035,31 @@ impl CopyDBClusterSnapshotError { pub fn is_db_cluster_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_) + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_) ) } pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_) + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_) + CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_) + CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CopyDBClusterSnapshotErrorKind::KMSKeyNotAccessibleFault(_) + CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -1072,15 +1072,15 @@ impl CopyDBClusterSnapshotError { impl std::error::Error for CopyDBClusterSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => { + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => { Some(_inner) } - CopyDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => Some(_inner), - CopyDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => Some(_inner), + CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { Some(_inner) } - CopyDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - CopyDBClusterSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), CopyDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -1096,20 +1096,20 @@ pub struct CopyDBParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CopyDBParameterGroupErrorKind { - DBParameterGroupAlreadyExistsFault(crate::error::DBParameterGroupAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBParameterGroupQuotaExceededFault(crate::error::DBParameterGroupQuotaExceededFault), + DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CopyDBParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CopyDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CopyDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CopyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - CopyDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CopyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + CopyDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { _inner.fmt(f) } CopyDBParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1163,30 +1163,30 @@ impl CopyDBParameterGroupError { pub fn is_db_parameter_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CopyDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_) + CopyDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CopyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + CopyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CopyDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_) + CopyDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_) ) } } impl std::error::Error for CopyDBParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CopyDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CopyDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { Some(_inner) } - CopyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - CopyDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CopyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + CopyDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { Some(_inner) } CopyDBParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1204,10 +1204,10 @@ pub struct CopyDBSnapshotError { #[derive(std::fmt::Debug)] pub enum CopyDBSnapshotErrorKind { CustomAvailabilityZoneNotFoundFault(crate::error::CustomAvailabilityZoneNotFoundFault), - DBSnapshotAlreadyExistsFault(crate::error::DBSnapshotAlreadyExistsFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -1216,10 +1216,10 @@ impl std::fmt::Display for CopyDBSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CopyDBSnapshotErrorKind::CustomAvailabilityZoneNotFoundFault(_inner) => _inner.fmt(f), - CopyDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), - CopyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), - CopyDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => _inner.fmt(f), - CopyDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + CopyDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), + CopyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), + CopyDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => _inner.fmt(f), + CopyDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), CopyDBSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), CopyDBSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -1278,25 +1278,25 @@ impl CopyDBSnapshotError { pub fn is_db_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - CopyDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_) + CopyDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - CopyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_) + CopyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - CopyDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_) + CopyDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CopyDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_) + CopyDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -1310,10 +1310,10 @@ impl std::error::Error for CopyDBSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CopyDBSnapshotErrorKind::CustomAvailabilityZoneNotFoundFault(_inner) => Some(_inner), - CopyDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_inner) => Some(_inner), - CopyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), - CopyDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => Some(_inner), - CopyDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CopyDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_inner) => Some(_inner), + CopyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), + CopyDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => Some(_inner), + CopyDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CopyDBSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), CopyDBSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -1434,7 +1434,7 @@ pub enum CreateCustomAvailabilityZoneErrorKind { CustomAvailabilityZoneQuotaExceededFault( crate::error::CustomAvailabilityZoneQuotaExceededFault, ), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1447,7 +1447,7 @@ impl std::fmt::Display for CreateCustomAvailabilityZoneError { CreateCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneQuotaExceededFault( _inner, ) => _inner.fmt(f), - CreateCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_inner) => { + CreateCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } CreateCustomAvailabilityZoneErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1513,7 +1513,7 @@ impl CreateCustomAvailabilityZoneError { pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CreateCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_) + CreateCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_) ) } } @@ -1526,7 +1526,7 @@ impl std::error::Error for CreateCustomAvailabilityZoneError { CreateCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneQuotaExceededFault( _inner, ) => Some(_inner), - CreateCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CreateCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CreateCustomAvailabilityZoneErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1541,23 +1541,23 @@ pub struct CreateDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBClusterErrorKind { - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBClusterQuotaExceededFault(crate::error::DBClusterQuotaExceededFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault), InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBSubnetGroupStateFault(crate::error::InvalidDBSubnetGroupStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault), InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -1565,25 +1565,25 @@ pub enum CreateDBClusterErrorKind { impl std::fmt::Display for CreateDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBClusterErrorKind::DBClusterAlreadyExistsFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBClusterQuotaExceededFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault(_inner) => { _inner.fmt(f) } - CreateDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - CreateDBClusterErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), CreateDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -1636,43 +1636,43 @@ impl CreateDBClusterError { pub fn is_db_cluster_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBClusterAlreadyExistsFault(_) + CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBClusterNotFoundFault(_) + CreateDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_) + CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_) ) } pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBClusterQuotaExceededFault(_) + CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBInstanceNotFoundFault(_) + CreateDBClusterErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::DBSubnetGroupNotFoundFault(_) + CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -1693,19 +1693,19 @@ impl CreateDBClusterError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::InvalidDBClusterStateFault(_) + CreateDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::InvalidDBInstanceStateFault(_) + CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_) + CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_) ) } pub fn is_invalid_global_cluster_state_fault(&self) -> bool { @@ -1720,13 +1720,13 @@ impl CreateDBClusterError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::InvalidVPCNetworkStateFault(_) + CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterErrorKind::KMSKeyNotAccessibleFault(_) + CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -1739,25 +1739,25 @@ impl CreateDBClusterError { impl std::error::Error for CreateDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBClusterErrorKind::DBClusterAlreadyExistsFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBClusterQuotaExceededFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), - CreateDBClusterErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), + CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), CreateDBClusterErrorKind::DomainNotFoundFault(_inner) => Some(_inner), CreateDBClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner), CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault(_inner) => { Some(_inner) } - CreateDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner), CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner), CreateDBClusterErrorKind::InvalidSubnet(_inner) => Some(_inner), - CreateDBClusterErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - CreateDBClusterErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CreateDBClusterErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), CreateDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -1773,28 +1773,28 @@ pub struct CreateDBClusterEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBClusterEndpointErrorKind { - DBClusterEndpointAlreadyExistsFault(crate::error::DBClusterEndpointAlreadyExistsFault), - DBClusterEndpointQuotaExceededFault(crate::error::DBClusterEndpointQuotaExceededFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterEndpointAlreadyExistsFault(crate::error::DbClusterEndpointAlreadyExistsFault), + DbClusterEndpointQuotaExceededFault(crate::error::DbClusterEndpointQuotaExceededFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDBClusterEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBClusterEndpointErrorKind::DBClusterEndpointAlreadyExistsFault(_inner) => { + CreateDBClusterEndpointErrorKind::DbClusterEndpointAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBClusterEndpointErrorKind::DBClusterEndpointQuotaExceededFault(_inner) => { + CreateDBClusterEndpointErrorKind::DbClusterEndpointQuotaExceededFault(_inner) => { _inner.fmt(f) } - CreateDBClusterEndpointErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - CreateDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + CreateDBClusterEndpointErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + CreateDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), CreateDBClusterEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1846,53 +1846,53 @@ impl CreateDBClusterEndpointError { pub fn is_db_cluster_endpoint_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::DBClusterEndpointAlreadyExistsFault(_) + CreateDBClusterEndpointErrorKind::DbClusterEndpointAlreadyExistsFault(_) ) } pub fn is_db_cluster_endpoint_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::DBClusterEndpointQuotaExceededFault(_) + CreateDBClusterEndpointErrorKind::DbClusterEndpointQuotaExceededFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::DBClusterNotFoundFault(_) + CreateDBClusterEndpointErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_) + CreateDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_) + CreateDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_) + CreateDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for CreateDBClusterEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBClusterEndpointErrorKind::DBClusterEndpointAlreadyExistsFault(_inner) => { + CreateDBClusterEndpointErrorKind::DbClusterEndpointAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBClusterEndpointErrorKind::DBClusterEndpointQuotaExceededFault(_inner) => { + CreateDBClusterEndpointErrorKind::DbClusterEndpointQuotaExceededFault(_inner) => { Some(_inner) } - CreateDBClusterEndpointErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - CreateDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - CreateDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - CreateDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + CreateDBClusterEndpointErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + CreateDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + CreateDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + CreateDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), CreateDBClusterEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1907,18 +1907,18 @@ pub struct CreateDBClusterParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBClusterParameterGroupErrorKind { - DBParameterGroupAlreadyExistsFault(crate::error::DBParameterGroupAlreadyExistsFault), - DBParameterGroupQuotaExceededFault(crate::error::DBParameterGroupQuotaExceededFault), + DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault), + DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDBClusterParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { _inner.fmt(f) } CreateDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1972,23 +1972,23 @@ impl CreateDBClusterParameterGroupError { pub fn is_db_parameter_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_) + CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_) + CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_) ) } } impl std::error::Error for CreateDBClusterParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { Some(_inner) } CreateDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2005,10 +2005,10 @@ pub struct CreateDBClusterSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBClusterSnapshotErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterSnapshotAlreadyExistsFault(crate::error::DBClusterSnapshotAlreadyExistsFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2016,14 +2016,14 @@ pub enum CreateDBClusterSnapshotErrorKind { impl std::fmt::Display for CreateDBClusterSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBClusterSnapshotErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - CreateDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => { + CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { _inner.fmt(f) } - CreateDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), CreateDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -2076,25 +2076,25 @@ impl CreateDBClusterSnapshotError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterSnapshotErrorKind::DBClusterNotFoundFault(_) + CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_) + CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_) ) } pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_) + CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_) + CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -2107,14 +2107,14 @@ impl CreateDBClusterSnapshotError { impl std::error::Error for CreateDBClusterSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBClusterSnapshotErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - CreateDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => { + CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { Some(_inner) } - CreateDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), CreateDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -2132,21 +2132,21 @@ pub struct CreateDBInstanceError { pub enum CreateDBInstanceErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), BackupPolicyNotFoundFault(crate::error::BackupPolicyNotFoundFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -2157,21 +2157,21 @@ impl std::fmt::Display for CreateDBInstanceError { match &self.kind { CreateDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f), CreateDBInstanceErrorKind::BackupPolicyNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), CreateDBInstanceErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), CreateDBInstanceErrorKind::InstanceQuotaExceededFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), CreateDBInstanceErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), CreateDBInstanceErrorKind::OptionGroupNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { _inner.fmt(f) } CreateDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), @@ -2239,37 +2239,37 @@ impl CreateDBInstanceError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBClusterNotFoundFault(_) + CreateDBInstanceErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_) + CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBParameterGroupNotFoundFault(_) + CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_) + CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_) + CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -2287,13 +2287,13 @@ impl CreateDBInstanceError { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_) + CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::InvalidDBClusterStateFault(_) + CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -2302,13 +2302,13 @@ impl CreateDBInstanceError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::InvalidVPCNetworkStateFault(_) + CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::KMSKeyNotAccessibleFault(_) + CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -2320,7 +2320,7 @@ impl CreateDBInstanceError { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -2341,21 +2341,21 @@ impl std::error::Error for CreateDBInstanceError { match &self.kind { CreateDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::BackupPolicyNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), - CreateDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), + CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::DomainNotFoundFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::InstanceQuotaExceededFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::InvalidSubnet(_inner) => Some(_inner), - CreateDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::OptionGroupNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => Some(_inner), + CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => Some(_inner), CreateDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2372,23 +2372,23 @@ pub struct CreateDBInstanceReadReplicaError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBInstanceReadReplicaErrorKind { - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotAllowedFault(crate::error::DBSubnetGroupNotAllowedFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotAllowedFault(crate::error::DbSubnetGroupNotAllowedFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBSubnetGroupFault(crate::error::InvalidDBSubnetGroupFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbSubnetGroupFault(crate::error::InvalidDbSubnetGroupFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -2397,45 +2397,45 @@ pub enum CreateDBInstanceReadReplicaErrorKind { impl std::fmt::Display for CreateDBInstanceReadReplicaError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBInstanceReadReplicaErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbInstanceAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceReadReplicaErrorKind::DBParameterGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + CreateDBInstanceReadReplicaErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotAllowedFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotAllowedFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotFoundFault(_inner) => { _inner.fmt(f) } CreateDBInstanceReadReplicaErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), CreateDBInstanceReadReplicaErrorKind::InstanceQuotaExceededFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::InsufficientDBInstanceCapacityFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InsufficientDbInstanceCapacityFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::InvalidDBInstanceStateFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InvalidDbInstanceStateFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::InvalidDBSubnetGroupFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InvalidDbSubnetGroupFault(_inner) => { _inner.fmt(f) } CreateDBInstanceReadReplicaErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - CreateDBInstanceReadReplicaErrorKind::InvalidVPCNetworkStateFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InvalidVpcNetworkStateFault(_inner) => { _inner.fmt(f) } - CreateDBInstanceReadReplicaErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + CreateDBInstanceReadReplicaErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), CreateDBInstanceReadReplicaErrorKind::OptionGroupNotFoundFault(_inner) => _inner.fmt(f), - CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { _inner.fmt(f) } CreateDBInstanceReadReplicaErrorKind::StorageQuotaExceededFault(_inner) => { @@ -2495,43 +2495,43 @@ impl CreateDBInstanceReadReplicaError { pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBInstanceAlreadyExistsFault(_) + CreateDBInstanceReadReplicaErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBInstanceNotFoundFault(_) + CreateDBInstanceReadReplicaErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBParameterGroupNotFoundFault(_) + CreateDBInstanceReadReplicaErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBSecurityGroupNotFoundFault(_) + CreateDBInstanceReadReplicaErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_allowed_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotAllowedFault(_) + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotAllowedFault(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotFoundFault(_) + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -2549,19 +2549,19 @@ impl CreateDBInstanceReadReplicaError { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::InsufficientDBInstanceCapacityFault(_) + CreateDBInstanceReadReplicaErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::InvalidDBInstanceStateFault(_) + CreateDBInstanceReadReplicaErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_db_subnet_group_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::InvalidDBSubnetGroupFault(_) + CreateDBInstanceReadReplicaErrorKind::InvalidDbSubnetGroupFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -2573,13 +2573,13 @@ impl CreateDBInstanceReadReplicaError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::InvalidVPCNetworkStateFault(_) + CreateDBInstanceReadReplicaErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::KMSKeyNotAccessibleFault(_) + CreateDBInstanceReadReplicaErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -2591,7 +2591,7 @@ impl CreateDBInstanceReadReplicaError { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -2610,43 +2610,43 @@ impl CreateDBInstanceReadReplicaError { impl std::error::Error for CreateDBInstanceReadReplicaError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBInstanceReadReplicaErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbInstanceAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceReadReplicaErrorKind::DBParameterGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + CreateDBInstanceReadReplicaErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSecurityGroupNotFoundFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotAllowedFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotAllowedFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotFoundFault(_inner) => { Some(_inner) } CreateDBInstanceReadReplicaErrorKind::DomainNotFoundFault(_inner) => Some(_inner), CreateDBInstanceReadReplicaErrorKind::InstanceQuotaExceededFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::InsufficientDBInstanceCapacityFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InsufficientDbInstanceCapacityFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::InvalidDBInstanceStateFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InvalidDbInstanceStateFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::InvalidDBSubnetGroupFault(_inner) => Some(_inner), + CreateDBInstanceReadReplicaErrorKind::InvalidDbSubnetGroupFault(_inner) => Some(_inner), CreateDBInstanceReadReplicaErrorKind::InvalidSubnet(_inner) => Some(_inner), - CreateDBInstanceReadReplicaErrorKind::InvalidVPCNetworkStateFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::InvalidVpcNetworkStateFault(_inner) => { Some(_inner) } - CreateDBInstanceReadReplicaErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + CreateDBInstanceReadReplicaErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), CreateDBInstanceReadReplicaErrorKind::OptionGroupNotFoundFault(_inner) => Some(_inner), - CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { Some(_inner) } CreateDBInstanceReadReplicaErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), @@ -2667,18 +2667,18 @@ pub struct CreateDBParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBParameterGroupErrorKind { - DBParameterGroupAlreadyExistsFault(crate::error::DBParameterGroupAlreadyExistsFault), - DBParameterGroupQuotaExceededFault(crate::error::DBParameterGroupQuotaExceededFault), + DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault), + DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDBParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CreateDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CreateDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { _inner.fmt(f) } CreateDBParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2732,23 +2732,23 @@ impl CreateDBParameterGroupError { pub fn is_db_parameter_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_) + CreateDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_) + CreateDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_) ) } } impl std::error::Error for CreateDBParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(_inner) => { + CreateDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(_inner) => { + CreateDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => { Some(_inner) } CreateDBParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2765,8 +2765,8 @@ pub struct CreateDBProxyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBProxyErrorKind { - DBProxyAlreadyExistsFault(crate::error::DBProxyAlreadyExistsFault), - DBProxyQuotaExceededFault(crate::error::DBProxyQuotaExceededFault), + DbProxyAlreadyExistsFault(crate::error::DbProxyAlreadyExistsFault), + DbProxyQuotaExceededFault(crate::error::DbProxyQuotaExceededFault), InvalidSubnet(crate::error::InvalidSubnet), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2774,8 +2774,8 @@ pub enum CreateDBProxyErrorKind { impl std::fmt::Display for CreateDBProxyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBProxyErrorKind::DBProxyAlreadyExistsFault(_inner) => _inner.fmt(f), - CreateDBProxyErrorKind::DBProxyQuotaExceededFault(_inner) => _inner.fmt(f), + CreateDBProxyErrorKind::DbProxyAlreadyExistsFault(_inner) => _inner.fmt(f), + CreateDBProxyErrorKind::DbProxyQuotaExceededFault(_inner) => _inner.fmt(f), CreateDBProxyErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), CreateDBProxyErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -2828,13 +2828,13 @@ impl CreateDBProxyError { pub fn is_db_proxy_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyErrorKind::DBProxyAlreadyExistsFault(_) + CreateDBProxyErrorKind::DbProxyAlreadyExistsFault(_) ) } pub fn is_db_proxy_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyErrorKind::DBProxyQuotaExceededFault(_) + CreateDBProxyErrorKind::DbProxyQuotaExceededFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -2844,8 +2844,8 @@ impl CreateDBProxyError { impl std::error::Error for CreateDBProxyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBProxyErrorKind::DBProxyAlreadyExistsFault(_inner) => Some(_inner), - CreateDBProxyErrorKind::DBProxyQuotaExceededFault(_inner) => Some(_inner), + CreateDBProxyErrorKind::DbProxyAlreadyExistsFault(_inner) => Some(_inner), + CreateDBProxyErrorKind::DbProxyQuotaExceededFault(_inner) => Some(_inner), CreateDBProxyErrorKind::InvalidSubnet(_inner) => Some(_inner), CreateDBProxyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -2861,10 +2861,10 @@ pub struct CreateDBProxyEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBProxyEndpointErrorKind { - DBProxyEndpointAlreadyExistsFault(crate::error::DBProxyEndpointAlreadyExistsFault), - DBProxyEndpointQuotaExceededFault(crate::error::DBProxyEndpointQuotaExceededFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyEndpointAlreadyExistsFault(crate::error::DbProxyEndpointAlreadyExistsFault), + DbProxyEndpointQuotaExceededFault(crate::error::DbProxyEndpointQuotaExceededFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), InvalidSubnet(crate::error::InvalidSubnet), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2872,14 +2872,14 @@ pub enum CreateDBProxyEndpointErrorKind { impl std::fmt::Display for CreateDBProxyEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_inner) => { + CreateDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBProxyEndpointErrorKind::DBProxyEndpointQuotaExceededFault(_inner) => { + CreateDBProxyEndpointErrorKind::DbProxyEndpointQuotaExceededFault(_inner) => { _inner.fmt(f) } - CreateDBProxyEndpointErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - CreateDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + CreateDBProxyEndpointErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + CreateDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), CreateDBProxyEndpointErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), CreateDBProxyEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -2932,25 +2932,25 @@ impl CreateDBProxyEndpointError { pub fn is_db_proxy_endpoint_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_) + CreateDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_) ) } pub fn is_db_proxy_endpoint_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyEndpointErrorKind::DBProxyEndpointQuotaExceededFault(_) + CreateDBProxyEndpointErrorKind::DbProxyEndpointQuotaExceededFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyEndpointErrorKind::DBProxyNotFoundFault(_) + CreateDBProxyEndpointErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_) + CreateDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -2960,14 +2960,14 @@ impl CreateDBProxyEndpointError { impl std::error::Error for CreateDBProxyEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_inner) => { + CreateDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBProxyEndpointErrorKind::DBProxyEndpointQuotaExceededFault(_inner) => { + CreateDBProxyEndpointErrorKind::DbProxyEndpointQuotaExceededFault(_inner) => { Some(_inner) } - CreateDBProxyEndpointErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - CreateDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + CreateDBProxyEndpointErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + CreateDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), CreateDBProxyEndpointErrorKind::InvalidSubnet(_inner) => Some(_inner), CreateDBProxyEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -2983,22 +2983,22 @@ pub struct CreateDBSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBSecurityGroupErrorKind { - DBSecurityGroupAlreadyExistsFault(crate::error::DBSecurityGroupAlreadyExistsFault), - DBSecurityGroupNotSupportedFault(crate::error::DBSecurityGroupNotSupportedFault), - DBSecurityGroupQuotaExceededFault(crate::error::DBSecurityGroupQuotaExceededFault), + DbSecurityGroupAlreadyExistsFault(crate::error::DbSecurityGroupAlreadyExistsFault), + DbSecurityGroupNotSupportedFault(crate::error::DbSecurityGroupNotSupportedFault), + DbSecurityGroupQuotaExceededFault(crate::error::DbSecurityGroupQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDBSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBSecurityGroupErrorKind::DBSecurityGroupAlreadyExistsFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupAlreadyExistsFault(_inner) => { _inner.fmt(f) } - CreateDBSecurityGroupErrorKind::DBSecurityGroupNotSupportedFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupNotSupportedFault(_inner) => { _inner.fmt(f) } - CreateDBSecurityGroupErrorKind::DBSecurityGroupQuotaExceededFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupQuotaExceededFault(_inner) => { _inner.fmt(f) } CreateDBSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -3052,32 +3052,32 @@ impl CreateDBSecurityGroupError { pub fn is_db_security_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBSecurityGroupErrorKind::DBSecurityGroupAlreadyExistsFault(_) + CreateDBSecurityGroupErrorKind::DbSecurityGroupAlreadyExistsFault(_) ) } pub fn is_db_security_group_not_supported_fault(&self) -> bool { matches!( &self.kind, - CreateDBSecurityGroupErrorKind::DBSecurityGroupNotSupportedFault(_) + CreateDBSecurityGroupErrorKind::DbSecurityGroupNotSupportedFault(_) ) } pub fn is_db_security_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBSecurityGroupErrorKind::DBSecurityGroupQuotaExceededFault(_) + CreateDBSecurityGroupErrorKind::DbSecurityGroupQuotaExceededFault(_) ) } } impl std::error::Error for CreateDBSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBSecurityGroupErrorKind::DBSecurityGroupAlreadyExistsFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupAlreadyExistsFault(_inner) => { Some(_inner) } - CreateDBSecurityGroupErrorKind::DBSecurityGroupNotSupportedFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupNotSupportedFault(_inner) => { Some(_inner) } - CreateDBSecurityGroupErrorKind::DBSecurityGroupQuotaExceededFault(_inner) => { + CreateDBSecurityGroupErrorKind::DbSecurityGroupQuotaExceededFault(_inner) => { Some(_inner) } CreateDBSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -3094,9 +3094,9 @@ pub struct CreateDBSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBSnapshotErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBSnapshotAlreadyExistsFault(crate::error::DBSnapshotAlreadyExistsFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -3104,9 +3104,9 @@ pub enum CreateDBSnapshotErrorKind { impl std::fmt::Display for CreateDBSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBSnapshotErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - CreateDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), - CreateDBSnapshotErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + CreateDBSnapshotErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + CreateDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), + CreateDBSnapshotErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), CreateDBSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), CreateDBSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -3159,19 +3159,19 @@ impl CreateDBSnapshotError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateDBSnapshotErrorKind::DBInstanceNotFoundFault(_) + CreateDBSnapshotErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_) + CreateDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - CreateDBSnapshotErrorKind::InvalidDBInstanceStateFault(_) + CreateDBSnapshotErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -3184,9 +3184,9 @@ impl CreateDBSnapshotError { impl std::error::Error for CreateDBSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBSnapshotErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - CreateDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(_inner) => Some(_inner), - CreateDBSnapshotErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + CreateDBSnapshotErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + CreateDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(_inner) => Some(_inner), + CreateDBSnapshotErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), CreateDBSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), CreateDBSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -3202,10 +3202,10 @@ pub struct CreateDBSubnetGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDBSubnetGroupErrorKind { - DBSubnetGroupAlreadyExistsFault(crate::error::DBSubnetGroupAlreadyExistsFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupQuotaExceededFault(crate::error::DBSubnetGroupQuotaExceededFault), - DBSubnetQuotaExceededFault(crate::error::DBSubnetQuotaExceededFault), + DbSubnetGroupAlreadyExistsFault(crate::error::DbSubnetGroupAlreadyExistsFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupQuotaExceededFault(crate::error::DbSubnetGroupQuotaExceededFault), + DbSubnetQuotaExceededFault(crate::error::DbSubnetQuotaExceededFault), InvalidSubnet(crate::error::InvalidSubnet), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -3213,12 +3213,12 @@ pub enum CreateDBSubnetGroupErrorKind { impl std::fmt::Display for CreateDBSubnetGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDBSubnetGroupErrorKind::DBSubnetGroupAlreadyExistsFault(_inner) => _inner.fmt(f), - CreateDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_inner) => _inner.fmt(f), + CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { _inner.fmt(f) } - CreateDBSubnetGroupErrorKind::DBSubnetGroupQuotaExceededFault(_inner) => _inner.fmt(f), - CreateDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_inner) => _inner.fmt(f), + CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_inner) => _inner.fmt(f), + CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => _inner.fmt(f), CreateDBSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), CreateDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -3271,25 +3271,25 @@ impl CreateDBSubnetGroupError { pub fn is_db_subnet_group_already_exists_fault(&self) -> bool { matches!( &self.kind, - CreateDBSubnetGroupErrorKind::DBSubnetGroupAlreadyExistsFault(_) + CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - CreateDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBSubnetGroupErrorKind::DBSubnetGroupQuotaExceededFault(_) + CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_) ) } pub fn is_db_subnet_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - CreateDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_) + CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -3299,12 +3299,12 @@ impl CreateDBSubnetGroupError { impl std::error::Error for CreateDBSubnetGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDBSubnetGroupErrorKind::DBSubnetGroupAlreadyExistsFault(_inner) => Some(_inner), - CreateDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_inner) => Some(_inner), + CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { Some(_inner) } - CreateDBSubnetGroupErrorKind::DBSubnetGroupQuotaExceededFault(_inner) => Some(_inner), - CreateDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_inner) => Some(_inner), + CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_inner) => Some(_inner), + CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => Some(_inner), CreateDBSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner), CreateDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -3321,9 +3321,9 @@ pub struct CreateEventSubscriptionError { #[derive(std::fmt::Debug)] pub enum CreateEventSubscriptionErrorKind { EventSubscriptionQuotaExceededFault(crate::error::EventSubscriptionQuotaExceededFault), - SNSInvalidTopicFault(crate::error::SNSInvalidTopicFault), - SNSNoAuthorizationFault(crate::error::SNSNoAuthorizationFault), - SNSTopicArnNotFoundFault(crate::error::SNSTopicArnNotFoundFault), + SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault), + SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault), + SnsTopicArnNotFoundFault(crate::error::SnsTopicArnNotFoundFault), SourceNotFoundFault(crate::error::SourceNotFoundFault), SubscriptionAlreadyExistFault(crate::error::SubscriptionAlreadyExistFault), SubscriptionCategoryNotFoundFault(crate::error::SubscriptionCategoryNotFoundFault), @@ -3336,9 +3336,9 @@ impl std::fmt::Display for CreateEventSubscriptionError { CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => { _inner.fmt(f) } - CreateEventSubscriptionErrorKind::SNSInvalidTopicFault(_inner) => _inner.fmt(f), - CreateEventSubscriptionErrorKind::SNSNoAuthorizationFault(_inner) => _inner.fmt(f), - CreateEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_inner) => _inner.fmt(f), + CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f), + CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => _inner.fmt(f), + CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => _inner.fmt(f), CreateEventSubscriptionErrorKind::SourceNotFoundFault(_inner) => _inner.fmt(f), CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(_inner) => { _inner.fmt(f) @@ -3403,19 +3403,19 @@ impl CreateEventSubscriptionError { pub fn is_sns_invalid_topic_fault(&self) -> bool { matches!( &self.kind, - CreateEventSubscriptionErrorKind::SNSInvalidTopicFault(_) + CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_) ) } pub fn is_sns_no_authorization_fault(&self) -> bool { matches!( &self.kind, - CreateEventSubscriptionErrorKind::SNSNoAuthorizationFault(_) + CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_) ) } pub fn is_sns_topic_arn_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_) + CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_) ) } pub fn is_source_not_found_fault(&self) -> bool { @@ -3443,9 +3443,9 @@ impl std::error::Error for CreateEventSubscriptionError { CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => { Some(_inner) } - CreateEventSubscriptionErrorKind::SNSInvalidTopicFault(_inner) => Some(_inner), - CreateEventSubscriptionErrorKind::SNSNoAuthorizationFault(_inner) => Some(_inner), - CreateEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_inner) => Some(_inner), + CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner), + CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner), + CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => Some(_inner), CreateEventSubscriptionErrorKind::SourceNotFoundFault(_inner) => Some(_inner), CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(_inner) => Some(_inner), CreateEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => { @@ -3465,20 +3465,20 @@ pub struct CreateGlobalClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateGlobalClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), GlobalClusterAlreadyExistsFault(crate::error::GlobalClusterAlreadyExistsFault), GlobalClusterQuotaExceededFault(crate::error::GlobalClusterQuotaExceededFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateGlobalClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault(_inner) => _inner.fmt(f), CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault(_inner) => _inner.fmt(f), - CreateGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), CreateGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3530,7 +3530,7 @@ impl CreateGlobalClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - CreateGlobalClusterErrorKind::DBClusterNotFoundFault(_) + CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_global_cluster_already_exists_fault(&self) -> bool { @@ -3548,17 +3548,17 @@ impl CreateGlobalClusterError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - CreateGlobalClusterErrorKind::InvalidDBClusterStateFault(_) + CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for CreateGlobalClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault(_inner) => Some(_inner), CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault(_inner) => Some(_inner), - CreateGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), CreateGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3664,7 +3664,7 @@ pub struct DeleteCustomAvailabilityZoneError { #[derive(std::fmt::Debug)] pub enum DeleteCustomAvailabilityZoneErrorKind { CustomAvailabilityZoneNotFoundFault(crate::error::CustomAvailabilityZoneNotFoundFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -3674,7 +3674,7 @@ impl std::fmt::Display for DeleteCustomAvailabilityZoneError { DeleteCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneNotFoundFault(_inner) => { _inner.fmt(f) } - DeleteCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_inner) => { + DeleteCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } DeleteCustomAvailabilityZoneErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -3734,7 +3734,7 @@ impl DeleteCustomAvailabilityZoneError { pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - DeleteCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_) + DeleteCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_) ) } } @@ -3744,7 +3744,7 @@ impl std::error::Error for DeleteCustomAvailabilityZoneError { DeleteCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneNotFoundFault(_inner) => { Some(_inner) } - DeleteCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + DeleteCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), DeleteCustomAvailabilityZoneErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3759,10 +3759,10 @@ pub struct DeleteDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterSnapshotAlreadyExistsFault(crate::error::DBClusterSnapshotAlreadyExistsFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -3770,10 +3770,10 @@ pub enum DeleteDBClusterErrorKind { impl std::fmt::Display for DeleteDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBClusterErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), - DeleteDBClusterErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => _inner.fmt(f), - DeleteDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + DeleteDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), + DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => _inner.fmt(f), + DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), DeleteDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -3826,25 +3826,25 @@ impl DeleteDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterErrorKind::DBClusterNotFoundFault(_) + DeleteDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterErrorKind::DBClusterSnapshotAlreadyExistsFault(_) + DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_) ) } pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterErrorKind::InvalidDBClusterSnapshotStateFault(_) + DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterErrorKind::InvalidDBClusterStateFault(_) + DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -3857,10 +3857,10 @@ impl DeleteDBClusterError { impl std::error::Error for DeleteDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - DeleteDBClusterErrorKind::DBClusterSnapshotAlreadyExistsFault(_inner) => Some(_inner), - DeleteDBClusterErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => Some(_inner), - DeleteDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + DeleteDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => Some(_inner), + DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => Some(_inner), + DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), DeleteDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -3876,22 +3876,22 @@ pub struct DeleteDBClusterEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBClusterEndpointErrorKind { - DBClusterEndpointNotFoundFault(crate::error::DBClusterEndpointNotFoundFault), - InvalidDBClusterEndpointStateFault(crate::error::InvalidDBClusterEndpointStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterEndpointNotFoundFault(crate::error::DbClusterEndpointNotFoundFault), + InvalidDbClusterEndpointStateFault(crate::error::InvalidDbClusterEndpointStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBClusterEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_inner) => { + DeleteDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_inner) => { _inner.fmt(f) } - DeleteDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_inner) => { + DeleteDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_inner) => { _inner.fmt(f) } - DeleteDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + DeleteDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), DeleteDBClusterEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3943,32 +3943,32 @@ impl DeleteDBClusterEndpointError { pub fn is_db_cluster_endpoint_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_) + DeleteDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_) ) } pub fn is_invalid_db_cluster_endpoint_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_) + DeleteDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_) + DeleteDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for DeleteDBClusterEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_inner) => { + DeleteDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_inner) => { Some(_inner) } - DeleteDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_inner) => { + DeleteDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_inner) => { Some(_inner) } - DeleteDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + DeleteDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), DeleteDBClusterEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3983,18 +3983,18 @@ pub struct DeleteDBClusterParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBClusterParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBClusterParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - DeleteDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } DeleteDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4048,23 +4048,23 @@ impl DeleteDBClusterParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for DeleteDBClusterParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - DeleteDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } DeleteDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4081,18 +4081,18 @@ pub struct DeleteDBClusterSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBClusterSnapshotErrorKind { - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBClusterSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } - DeleteDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { _inner.fmt(f) } DeleteDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4146,23 +4146,23 @@ impl DeleteDBClusterSnapshotError { pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_) + DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_) + DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } } impl std::error::Error for DeleteDBClusterSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { Some(_inner) } - DeleteDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { Some(_inner) } DeleteDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4179,13 +4179,13 @@ pub struct DeleteDBInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBInstanceErrorKind { - DBInstanceAutomatedBackupQuotaExceededFault( - crate::error::DBInstanceAutomatedBackupQuotaExceededFault, + DbInstanceAutomatedBackupQuotaExceededFault( + crate::error::DbInstanceAutomatedBackupQuotaExceededFault, ), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBSnapshotAlreadyExistsFault(crate::error::DBSnapshotAlreadyExistsFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -4193,13 +4193,13 @@ pub enum DeleteDBInstanceErrorKind { impl std::fmt::Display for DeleteDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBInstanceErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_inner) => { + DeleteDBInstanceErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_inner) => { _inner.fmt(f) } - DeleteDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), - DeleteDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - DeleteDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), + DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), DeleteDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -4252,31 +4252,31 @@ impl DeleteDBInstanceError { pub fn is_db_instance_automated_backup_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_) + DeleteDBInstanceErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceErrorKind::DBInstanceNotFoundFault(_) + DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_) + DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceErrorKind::InvalidDBClusterStateFault(_) + DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -4289,13 +4289,13 @@ impl DeleteDBInstanceError { impl std::error::Error for DeleteDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBInstanceErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_inner) => { + DeleteDBInstanceErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_inner) => { Some(_inner) } - DeleteDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - DeleteDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_inner) => Some(_inner), - DeleteDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - DeleteDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => Some(_inner), + DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), DeleteDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -4311,9 +4311,9 @@ pub struct DeleteDBInstanceAutomatedBackupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBInstanceAutomatedBackupErrorKind { - DBInstanceAutomatedBackupNotFoundFault(crate::error::DBInstanceAutomatedBackupNotFoundFault), - InvalidDBInstanceAutomatedBackupStateFault( - crate::error::InvalidDBInstanceAutomatedBackupStateFault, + DbInstanceAutomatedBackupNotFoundFault(crate::error::DbInstanceAutomatedBackupNotFoundFault), + InvalidDbInstanceAutomatedBackupStateFault( + crate::error::InvalidDbInstanceAutomatedBackupStateFault, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -4321,10 +4321,10 @@ pub enum DeleteDBInstanceAutomatedBackupErrorKind { impl std::fmt::Display for DeleteDBInstanceAutomatedBackupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBInstanceAutomatedBackupErrorKind::DBInstanceAutomatedBackupNotFoundFault(_inner) => + DeleteDBInstanceAutomatedBackupErrorKind::DbInstanceAutomatedBackupNotFoundFault(_inner) => _inner.fmt(f) , - DeleteDBInstanceAutomatedBackupErrorKind::InvalidDBInstanceAutomatedBackupStateFault(_inner) => + DeleteDBInstanceAutomatedBackupErrorKind::InvalidDbInstanceAutomatedBackupStateFault(_inner) => _inner.fmt(f) , DeleteDBInstanceAutomatedBackupErrorKind::Unhandled(_inner) => { @@ -4380,23 +4380,23 @@ impl DeleteDBInstanceAutomatedBackupError { pub fn is_db_instance_automated_backup_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceAutomatedBackupErrorKind::DBInstanceAutomatedBackupNotFoundFault(_) + DeleteDBInstanceAutomatedBackupErrorKind::DbInstanceAutomatedBackupNotFoundFault(_) ) } pub fn is_invalid_db_instance_automated_backup_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBInstanceAutomatedBackupErrorKind::InvalidDBInstanceAutomatedBackupStateFault(_) + DeleteDBInstanceAutomatedBackupErrorKind::InvalidDbInstanceAutomatedBackupStateFault(_) ) } } impl std::error::Error for DeleteDBInstanceAutomatedBackupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBInstanceAutomatedBackupErrorKind::DBInstanceAutomatedBackupNotFoundFault(_inner) => + DeleteDBInstanceAutomatedBackupErrorKind::DbInstanceAutomatedBackupNotFoundFault(_inner) => Some(_inner) , - DeleteDBInstanceAutomatedBackupErrorKind::InvalidDBInstanceAutomatedBackupStateFault(_inner) => + DeleteDBInstanceAutomatedBackupErrorKind::InvalidDbInstanceAutomatedBackupStateFault(_inner) => Some(_inner) , DeleteDBInstanceAutomatedBackupErrorKind::Unhandled(_inner) => { @@ -4415,16 +4415,16 @@ pub struct DeleteDBParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + DeleteDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } DeleteDBParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4478,21 +4478,21 @@ impl DeleteDBParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + DeleteDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + DeleteDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for DeleteDBParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - DeleteDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + DeleteDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + DeleteDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } DeleteDBParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4509,16 +4509,16 @@ pub struct DeleteDBProxyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBProxyErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBProxyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBProxyErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBProxyErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + DeleteDBProxyErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBProxyErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), DeleteDBProxyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4568,20 +4568,20 @@ impl DeleteDBProxyError { self.meta.code() } pub fn is_db_proxy_not_found_fault(&self) -> bool { - matches!(&self.kind, DeleteDBProxyErrorKind::DBProxyNotFoundFault(_)) + matches!(&self.kind, DeleteDBProxyErrorKind::DbProxyNotFoundFault(_)) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBProxyErrorKind::InvalidDBProxyStateFault(_) + DeleteDBProxyErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for DeleteDBProxyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBProxyErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - DeleteDBProxyErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + DeleteDBProxyErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + DeleteDBProxyErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), DeleteDBProxyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4596,16 +4596,16 @@ pub struct DeleteDBProxyEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBProxyEndpointErrorKind { - DBProxyEndpointNotFoundFault(crate::error::DBProxyEndpointNotFoundFault), - InvalidDBProxyEndpointStateFault(crate::error::InvalidDBProxyEndpointStateFault), + DbProxyEndpointNotFoundFault(crate::error::DbProxyEndpointNotFoundFault), + InvalidDbProxyEndpointStateFault(crate::error::InvalidDbProxyEndpointStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBProxyEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_inner) => { + DeleteDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_inner) => { _inner.fmt(f) } DeleteDBProxyEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4659,21 +4659,21 @@ impl DeleteDBProxyEndpointError { pub fn is_db_proxy_endpoint_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_) + DeleteDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_) ) } pub fn is_invalid_db_proxy_endpoint_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_) + DeleteDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_) ) } } impl std::error::Error for DeleteDBProxyEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_inner) => Some(_inner), - DeleteDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_inner) => { + DeleteDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_inner) => Some(_inner), + DeleteDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_inner) => { Some(_inner) } DeleteDBProxyEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4690,16 +4690,16 @@ pub struct DeleteDBSecurityGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBSecurityGroupErrorKind { - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBSecurityGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBSecurityGroupErrorKind::DBSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBSecurityGroupErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + DeleteDBSecurityGroupErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBSecurityGroupErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { _inner.fmt(f) } DeleteDBSecurityGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4753,21 +4753,21 @@ impl DeleteDBSecurityGroupError { pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSecurityGroupErrorKind::DBSecurityGroupNotFoundFault(_) + DeleteDBSecurityGroupErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_invalid_db_security_group_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSecurityGroupErrorKind::InvalidDBSecurityGroupStateFault(_) + DeleteDBSecurityGroupErrorKind::InvalidDbSecurityGroupStateFault(_) ) } } impl std::error::Error for DeleteDBSecurityGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBSecurityGroupErrorKind::DBSecurityGroupNotFoundFault(_inner) => Some(_inner), - DeleteDBSecurityGroupErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + DeleteDBSecurityGroupErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner), + DeleteDBSecurityGroupErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { Some(_inner) } DeleteDBSecurityGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4784,16 +4784,16 @@ pub struct DeleteDBSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBSnapshotErrorKind { - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => _inner.fmt(f), + DeleteDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => _inner.fmt(f), DeleteDBSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4845,21 +4845,21 @@ impl DeleteDBSnapshotError { pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSnapshotErrorKind::DBSnapshotNotFoundFault(_) + DeleteDBSnapshotErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_) + DeleteDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_) ) } } impl std::error::Error for DeleteDBSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), - DeleteDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => Some(_inner), + DeleteDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), + DeleteDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => Some(_inner), DeleteDBSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4874,18 +4874,18 @@ pub struct DeleteDBSubnetGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDBSubnetGroupErrorKind { - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), - InvalidDBSubnetGroupStateFault(crate::error::InvalidDBSubnetGroupStateFault), - InvalidDBSubnetStateFault(crate::error::InvalidDBSubnetStateFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), + InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault), + InvalidDbSubnetStateFault(crate::error::InvalidDbSubnetStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDBSubnetGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetGroupStateFault(_inner) => _inner.fmt(f), - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetStateFault(_inner) => _inner.fmt(f), + DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f), + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_inner) => _inner.fmt(f), DeleteDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4937,28 +4937,28 @@ impl DeleteDBSubnetGroupError { pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_) + DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetGroupStateFault(_) + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_) ) } pub fn is_invalid_db_subnet_state_fault(&self) -> bool { matches!( &self.kind, - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetStateFault(_) + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_) ) } } impl std::error::Error for DeleteDBSubnetGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetGroupStateFault(_inner) => Some(_inner), - DeleteDBSubnetGroupErrorKind::InvalidDBSubnetStateFault(_inner) => Some(_inner), + DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner), + DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_inner) => Some(_inner), DeleteDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5332,22 +5332,22 @@ pub struct DeregisterDBProxyTargetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterDBProxyTargetsErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBProxyTargetNotFoundFault(crate::error::DBProxyTargetNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbProxyTargetNotFoundFault(crate::error::DbProxyTargetNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterDBProxyTargetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - DeregisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DeregisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + DeregisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } - DeregisterDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_inner) => _inner.fmt(f), - DeregisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + DeregisterDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_inner) => _inner.fmt(f), + DeregisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), DeregisterDBProxyTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5399,37 +5399,37 @@ impl DeregisterDBProxyTargetsError { pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - DeregisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_) + DeregisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DeregisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_) + DeregisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_db_proxy_target_not_found_fault(&self) -> bool { matches!( &self.kind, - DeregisterDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_) + DeregisterDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - DeregisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_) + DeregisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for DeregisterDBProxyTargetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - DeregisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DeregisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + DeregisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } - DeregisterDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_inner) => Some(_inner), - DeregisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + DeregisterDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_inner) => Some(_inner), + DeregisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), DeregisterDBProxyTargetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5682,18 +5682,18 @@ pub struct DescribeDBClusterBacktracksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterBacktracksErrorKind { - DBClusterBacktrackNotFoundFault(crate::error::DBClusterBacktrackNotFoundFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterBacktrackNotFoundFault(crate::error::DbClusterBacktrackNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterBacktracksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterBacktracksErrorKind::DBClusterBacktrackNotFoundFault(_inner) => { + DescribeDBClusterBacktracksErrorKind::DbClusterBacktrackNotFoundFault(_inner) => { _inner.fmt(f) } - DescribeDBClusterBacktracksErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBClusterBacktracksErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), DescribeDBClusterBacktracksErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5745,23 +5745,23 @@ impl DescribeDBClusterBacktracksError { pub fn is_db_cluster_backtrack_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterBacktracksErrorKind::DBClusterBacktrackNotFoundFault(_) + DescribeDBClusterBacktracksErrorKind::DbClusterBacktrackNotFoundFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterBacktracksErrorKind::DBClusterNotFoundFault(_) + DescribeDBClusterBacktracksErrorKind::DbClusterNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterBacktracksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterBacktracksErrorKind::DBClusterBacktrackNotFoundFault(_inner) => { + DescribeDBClusterBacktracksErrorKind::DbClusterBacktrackNotFoundFault(_inner) => { Some(_inner) } - DescribeDBClusterBacktracksErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + DescribeDBClusterBacktracksErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), DescribeDBClusterBacktracksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5776,14 +5776,14 @@ pub struct DescribeDBClusterEndpointsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterEndpointsErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterEndpointsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterEndpointsErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBClusterEndpointsErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), DescribeDBClusterEndpointsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5835,14 +5835,14 @@ impl DescribeDBClusterEndpointsError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterEndpointsErrorKind::DBClusterNotFoundFault(_) + DescribeDBClusterEndpointsErrorKind::DbClusterNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterEndpointsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterEndpointsErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + DescribeDBClusterEndpointsErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), DescribeDBClusterEndpointsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5857,14 +5857,14 @@ pub struct DescribeDBClusterParameterGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterParameterGroupsErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterParameterGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } DescribeDBClusterParameterGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5918,14 +5918,14 @@ impl DescribeDBClusterParameterGroupsError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_) + DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterParameterGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } DescribeDBClusterParameterGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -5942,14 +5942,14 @@ pub struct DescribeDBClusterParametersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterParametersErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterParametersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterParametersErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } DescribeDBClusterParametersErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6003,14 +6003,14 @@ impl DescribeDBClusterParametersError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterParametersErrorKind::DBParameterGroupNotFoundFault(_) + DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterParametersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterParametersErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } DescribeDBClusterParametersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6027,14 +6027,14 @@ pub struct DescribeDBClustersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClustersErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClustersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClustersErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBClustersErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), DescribeDBClustersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6086,14 +6086,14 @@ impl DescribeDBClustersError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClustersErrorKind::DBClusterNotFoundFault(_) + DescribeDBClustersErrorKind::DbClusterNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClustersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClustersErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + DescribeDBClustersErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), DescribeDBClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6108,14 +6108,14 @@ pub struct DescribeDBClusterSnapshotAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterSnapshotAttributesErrorKind { - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterSnapshotAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterSnapshotAttributesErrorKind::DBClusterSnapshotNotFoundFault( + DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault( _inner, ) => _inner.fmt(f), DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6172,14 +6172,14 @@ impl DescribeDBClusterSnapshotAttributesError { pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterSnapshotAttributesErrorKind::DBClusterSnapshotNotFoundFault(_) + DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterSnapshotAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterSnapshotAttributesErrorKind::DBClusterSnapshotNotFoundFault( + DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault( _inner, ) => Some(_inner), DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(_inner) => { @@ -6198,14 +6198,14 @@ pub struct DescribeDBClusterSnapshotsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBClusterSnapshotsErrorKind { - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBClusterSnapshotsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBClusterSnapshotsErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } DescribeDBClusterSnapshotsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6259,14 +6259,14 @@ impl DescribeDBClusterSnapshotsError { pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBClusterSnapshotsErrorKind::DBClusterSnapshotNotFoundFault(_) + DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_) ) } } impl std::error::Error for DescribeDBClusterSnapshotsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBClusterSnapshotsErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { Some(_inner) } DescribeDBClusterSnapshotsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6355,14 +6355,14 @@ pub struct DescribeDBInstanceAutomatedBackupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBInstanceAutomatedBackupsErrorKind { - DBInstanceAutomatedBackupNotFoundFault(crate::error::DBInstanceAutomatedBackupNotFoundFault), + DbInstanceAutomatedBackupNotFoundFault(crate::error::DbInstanceAutomatedBackupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBInstanceAutomatedBackupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBInstanceAutomatedBackupsErrorKind::DBInstanceAutomatedBackupNotFoundFault( + DescribeDBInstanceAutomatedBackupsErrorKind::DbInstanceAutomatedBackupNotFoundFault( _inner, ) => _inner.fmt(f), DescribeDBInstanceAutomatedBackupsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6419,14 +6419,14 @@ impl DescribeDBInstanceAutomatedBackupsError { pub fn is_db_instance_automated_backup_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBInstanceAutomatedBackupsErrorKind::DBInstanceAutomatedBackupNotFoundFault(_) + DescribeDBInstanceAutomatedBackupsErrorKind::DbInstanceAutomatedBackupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBInstanceAutomatedBackupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBInstanceAutomatedBackupsErrorKind::DBInstanceAutomatedBackupNotFoundFault( + DescribeDBInstanceAutomatedBackupsErrorKind::DbInstanceAutomatedBackupNotFoundFault( _inner, ) => Some(_inner), DescribeDBInstanceAutomatedBackupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6443,14 +6443,14 @@ pub struct DescribeDBInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBInstancesErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBInstancesErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), DescribeDBInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6502,14 +6502,14 @@ impl DescribeDBInstancesError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBInstancesErrorKind::DBInstanceNotFoundFault(_) + DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_) ) } } impl std::error::Error for DescribeDBInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBInstancesErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), + DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), DescribeDBInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6524,14 +6524,14 @@ pub struct DescribeDBLogFilesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBLogFilesErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBLogFilesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBLogFilesErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBLogFilesErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), DescribeDBLogFilesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6583,14 +6583,14 @@ impl DescribeDBLogFilesError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBLogFilesErrorKind::DBInstanceNotFoundFault(_) + DescribeDBLogFilesErrorKind::DbInstanceNotFoundFault(_) ) } } impl std::error::Error for DescribeDBLogFilesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBLogFilesErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), + DescribeDBLogFilesErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), DescribeDBLogFilesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6605,14 +6605,14 @@ pub struct DescribeDBParameterGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBParameterGroupsErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBParameterGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } DescribeDBParameterGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6666,14 +6666,14 @@ impl DescribeDBParameterGroupsError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_) + DescribeDBParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBParameterGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBParameterGroupsErrorKind::DBParameterGroupNotFoundFault(_inner) => { + DescribeDBParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } DescribeDBParameterGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6690,14 +6690,14 @@ pub struct DescribeDBParametersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBParametersErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBParametersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBParametersErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), DescribeDBParametersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6749,14 +6749,14 @@ impl DescribeDBParametersError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBParametersErrorKind::DBParameterGroupNotFoundFault(_) + DescribeDBParametersErrorKind::DbParameterGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBParametersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBParametersErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), + DescribeDBParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), DescribeDBParametersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6771,14 +6771,14 @@ pub struct DescribeDBProxiesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBProxiesErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBProxiesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBProxiesErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBProxiesErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), DescribeDBProxiesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6830,14 +6830,14 @@ impl DescribeDBProxiesError { pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxiesErrorKind::DBProxyNotFoundFault(_) + DescribeDBProxiesErrorKind::DbProxyNotFoundFault(_) ) } } impl std::error::Error for DescribeDBProxiesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBProxiesErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), + DescribeDBProxiesErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), DescribeDBProxiesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6852,18 +6852,18 @@ pub struct DescribeDBProxyEndpointsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBProxyEndpointsErrorKind { - DBProxyEndpointNotFoundFault(crate::error::DBProxyEndpointNotFoundFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), + DbProxyEndpointNotFoundFault(crate::error::DbProxyEndpointNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBProxyEndpointsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBProxyEndpointsErrorKind::DBProxyEndpointNotFoundFault(_inner) => { + DescribeDBProxyEndpointsErrorKind::DbProxyEndpointNotFoundFault(_inner) => { _inner.fmt(f) } - DescribeDBProxyEndpointsErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBProxyEndpointsErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), DescribeDBProxyEndpointsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6915,21 +6915,21 @@ impl DescribeDBProxyEndpointsError { pub fn is_db_proxy_endpoint_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyEndpointsErrorKind::DBProxyEndpointNotFoundFault(_) + DescribeDBProxyEndpointsErrorKind::DbProxyEndpointNotFoundFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyEndpointsErrorKind::DBProxyNotFoundFault(_) + DescribeDBProxyEndpointsErrorKind::DbProxyNotFoundFault(_) ) } } impl std::error::Error for DescribeDBProxyEndpointsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBProxyEndpointsErrorKind::DBProxyEndpointNotFoundFault(_inner) => Some(_inner), - DescribeDBProxyEndpointsErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), + DescribeDBProxyEndpointsErrorKind::DbProxyEndpointNotFoundFault(_inner) => Some(_inner), + DescribeDBProxyEndpointsErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), DescribeDBProxyEndpointsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6944,20 +6944,20 @@ pub struct DescribeDBProxyTargetGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBProxyTargetGroupsErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBProxyTargetGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBProxyTargetGroupsErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - DescribeDBProxyTargetGroupsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DescribeDBProxyTargetGroupsErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBProxyTargetGroupsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } - DescribeDBProxyTargetGroupsErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + DescribeDBProxyTargetGroupsErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), DescribeDBProxyTargetGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7009,30 +7009,30 @@ impl DescribeDBProxyTargetGroupsError { pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetGroupsErrorKind::DBProxyNotFoundFault(_) + DescribeDBProxyTargetGroupsErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetGroupsErrorKind::DBProxyTargetGroupNotFoundFault(_) + DescribeDBProxyTargetGroupsErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetGroupsErrorKind::InvalidDBProxyStateFault(_) + DescribeDBProxyTargetGroupsErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for DescribeDBProxyTargetGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBProxyTargetGroupsErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - DescribeDBProxyTargetGroupsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DescribeDBProxyTargetGroupsErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + DescribeDBProxyTargetGroupsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } - DescribeDBProxyTargetGroupsErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + DescribeDBProxyTargetGroupsErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), DescribeDBProxyTargetGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7047,22 +7047,22 @@ pub struct DescribeDBProxyTargetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBProxyTargetsErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBProxyTargetNotFoundFault(crate::error::DBProxyTargetNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbProxyTargetNotFoundFault(crate::error::DbProxyTargetNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBProxyTargetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - DescribeDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DescribeDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } - DescribeDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_inner) => _inner.fmt(f), - DescribeDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + DescribeDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), DescribeDBProxyTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7114,37 +7114,37 @@ impl DescribeDBProxyTargetsError { pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetsErrorKind::DBProxyNotFoundFault(_) + DescribeDBProxyTargetsErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_) + DescribeDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_db_proxy_target_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_) + DescribeDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - DescribeDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_) + DescribeDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for DescribeDBProxyTargetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - DescribeDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + DescribeDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + DescribeDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } - DescribeDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(_inner) => Some(_inner), - DescribeDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + DescribeDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(_inner) => Some(_inner), + DescribeDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), DescribeDBProxyTargetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7159,14 +7159,14 @@ pub struct DescribeDBSecurityGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBSecurityGroupsErrorKind { - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBSecurityGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBSecurityGroupsErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + DescribeDBSecurityGroupsErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } DescribeDBSecurityGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -7220,14 +7220,14 @@ impl DescribeDBSecurityGroupsError { pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBSecurityGroupsErrorKind::DBSecurityGroupNotFoundFault(_) + DescribeDBSecurityGroupsErrorKind::DbSecurityGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBSecurityGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBSecurityGroupsErrorKind::DBSecurityGroupNotFoundFault(_inner) => Some(_inner), + DescribeDBSecurityGroupsErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner), DescribeDBSecurityGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7242,14 +7242,14 @@ pub struct DescribeDBSnapshotAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBSnapshotAttributesErrorKind { - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBSnapshotAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBSnapshotAttributesErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBSnapshotAttributesErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), DescribeDBSnapshotAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7301,14 +7301,14 @@ impl DescribeDBSnapshotAttributesError { pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBSnapshotAttributesErrorKind::DBSnapshotNotFoundFault(_) + DescribeDBSnapshotAttributesErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for DescribeDBSnapshotAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBSnapshotAttributesErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + DescribeDBSnapshotAttributesErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), DescribeDBSnapshotAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7323,14 +7323,14 @@ pub struct DescribeDBSnapshotsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBSnapshotsErrorKind { - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBSnapshotsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBSnapshotsErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBSnapshotsErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), DescribeDBSnapshotsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7382,14 +7382,14 @@ impl DescribeDBSnapshotsError { pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBSnapshotsErrorKind::DBSnapshotNotFoundFault(_) + DescribeDBSnapshotsErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for DescribeDBSnapshotsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBSnapshotsErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + DescribeDBSnapshotsErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), DescribeDBSnapshotsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7404,14 +7404,14 @@ pub struct DescribeDBSubnetGroupsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeDBSubnetGroupsErrorKind { - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeDBSubnetGroupsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeDBSubnetGroupsErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), DescribeDBSubnetGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7463,14 +7463,14 @@ impl DescribeDBSubnetGroupsError { pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeDBSubnetGroupsErrorKind::DBSubnetGroupNotFoundFault(_) + DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_) ) } } impl std::error::Error for DescribeDBSubnetGroupsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeDBSubnetGroupsErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), DescribeDBSubnetGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8422,14 +8422,14 @@ pub struct DescribeReservedDBInstancesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeReservedDBInstancesErrorKind { - ReservedDBInstanceNotFoundFault(crate::error::ReservedDBInstanceNotFoundFault), + ReservedDbInstanceNotFoundFault(crate::error::ReservedDbInstanceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeReservedDBInstancesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeReservedDBInstancesErrorKind::ReservedDBInstanceNotFoundFault(_inner) => { + DescribeReservedDBInstancesErrorKind::ReservedDbInstanceNotFoundFault(_inner) => { _inner.fmt(f) } DescribeReservedDBInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -8483,14 +8483,14 @@ impl DescribeReservedDBInstancesError { pub fn is_reserved_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeReservedDBInstancesErrorKind::ReservedDBInstanceNotFoundFault(_) + DescribeReservedDBInstancesErrorKind::ReservedDbInstanceNotFoundFault(_) ) } } impl std::error::Error for DescribeReservedDBInstancesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeReservedDBInstancesErrorKind::ReservedDBInstanceNotFoundFault(_inner) => { + DescribeReservedDBInstancesErrorKind::ReservedDbInstanceNotFoundFault(_inner) => { Some(_inner) } DescribeReservedDBInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -8507,8 +8507,8 @@ pub struct DescribeReservedDBInstancesOfferingsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeReservedDBInstancesOfferingsErrorKind { - ReservedDBInstancesOfferingNotFoundFault( - crate::error::ReservedDBInstancesOfferingNotFoundFault, + ReservedDbInstancesOfferingNotFoundFault( + crate::error::ReservedDbInstancesOfferingNotFoundFault, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -8516,7 +8516,7 @@ pub enum DescribeReservedDBInstancesOfferingsErrorKind { impl std::fmt::Display for DescribeReservedDBInstancesOfferingsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeReservedDBInstancesOfferingsErrorKind::ReservedDBInstancesOfferingNotFoundFault(_inner) => + DescribeReservedDBInstancesOfferingsErrorKind::ReservedDbInstancesOfferingNotFoundFault(_inner) => _inner.fmt(f) , DescribeReservedDBInstancesOfferingsErrorKind::Unhandled(_inner) => { @@ -8575,7 +8575,7 @@ impl DescribeReservedDBInstancesOfferingsError { pub fn is_reserved_db_instances_offering_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeReservedDBInstancesOfferingsErrorKind::ReservedDBInstancesOfferingNotFoundFault( + DescribeReservedDBInstancesOfferingsErrorKind::ReservedDbInstancesOfferingNotFoundFault( _ ) ) @@ -8584,7 +8584,7 @@ impl DescribeReservedDBInstancesOfferingsError { impl std::error::Error for DescribeReservedDBInstancesOfferingsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeReservedDBInstancesOfferingsErrorKind::ReservedDBInstancesOfferingNotFoundFault(_inner) => + DescribeReservedDBInstancesOfferingsErrorKind::ReservedDbInstancesOfferingNotFoundFault(_inner) => Some(_inner) , DescribeReservedDBInstancesOfferingsErrorKind::Unhandled(_inner) => { @@ -8675,18 +8675,18 @@ pub struct DescribeValidDBInstanceModificationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeValidDBInstanceModificationsErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeValidDBInstanceModificationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeValidDBInstanceModificationsErrorKind::DBInstanceNotFoundFault(_inner) => { + DescribeValidDBInstanceModificationsErrorKind::DbInstanceNotFoundFault(_inner) => { _inner.fmt(f) } - DescribeValidDBInstanceModificationsErrorKind::InvalidDBInstanceStateFault(_inner) => { + DescribeValidDBInstanceModificationsErrorKind::InvalidDbInstanceStateFault(_inner) => { _inner.fmt(f) } DescribeValidDBInstanceModificationsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -8743,23 +8743,23 @@ impl DescribeValidDBInstanceModificationsError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DescribeValidDBInstanceModificationsErrorKind::DBInstanceNotFoundFault(_) + DescribeValidDBInstanceModificationsErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - DescribeValidDBInstanceModificationsErrorKind::InvalidDBInstanceStateFault(_) + DescribeValidDBInstanceModificationsErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for DescribeValidDBInstanceModificationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeValidDBInstanceModificationsErrorKind::DBInstanceNotFoundFault(_inner) => { + DescribeValidDBInstanceModificationsErrorKind::DbInstanceNotFoundFault(_inner) => { Some(_inner) } - DescribeValidDBInstanceModificationsErrorKind::InvalidDBInstanceStateFault(_inner) => { + DescribeValidDBInstanceModificationsErrorKind::InvalidDbInstanceStateFault(_inner) => { Some(_inner) } DescribeValidDBInstanceModificationsErrorKind::Unhandled(_inner) => { @@ -8778,16 +8778,16 @@ pub struct DownloadDBLogFilePortionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DownloadDBLogFilePortionErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBLogFileNotFoundFault(crate::error::DBLogFileNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbLogFileNotFoundFault(crate::error::DbLogFileNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DownloadDBLogFilePortionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DownloadDBLogFilePortionErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - DownloadDBLogFilePortionErrorKind::DBLogFileNotFoundFault(_inner) => _inner.fmt(f), + DownloadDBLogFilePortionErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + DownloadDBLogFilePortionErrorKind::DbLogFileNotFoundFault(_inner) => _inner.fmt(f), DownloadDBLogFilePortionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8839,21 +8839,21 @@ impl DownloadDBLogFilePortionError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - DownloadDBLogFilePortionErrorKind::DBInstanceNotFoundFault(_) + DownloadDBLogFilePortionErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_log_file_not_found_fault(&self) -> bool { matches!( &self.kind, - DownloadDBLogFilePortionErrorKind::DBLogFileNotFoundFault(_) + DownloadDBLogFilePortionErrorKind::DbLogFileNotFoundFault(_) ) } } impl std::error::Error for DownloadDBLogFilePortionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DownloadDBLogFilePortionErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - DownloadDBLogFilePortionErrorKind::DBLogFileNotFoundFault(_inner) => Some(_inner), + DownloadDBLogFilePortionErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + DownloadDBLogFilePortionErrorKind::DbLogFileNotFoundFault(_inner) => Some(_inner), DownloadDBLogFilePortionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8868,18 +8868,18 @@ pub struct FailoverDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum FailoverDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for FailoverDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - FailoverDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - FailoverDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - FailoverDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + FailoverDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), FailoverDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8931,28 +8931,28 @@ impl FailoverDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - FailoverDBClusterErrorKind::DBClusterNotFoundFault(_) + FailoverDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - FailoverDBClusterErrorKind::InvalidDBClusterStateFault(_) + FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - FailoverDBClusterErrorKind::InvalidDBInstanceStateFault(_) + FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for FailoverDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - FailoverDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - FailoverDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - FailoverDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + FailoverDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), FailoverDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8967,9 +8967,9 @@ pub struct FailoverGlobalClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum FailoverGlobalClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -8977,9 +8977,9 @@ pub enum FailoverGlobalClusterErrorKind { impl std::fmt::Display for FailoverGlobalClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - FailoverGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + FailoverGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), FailoverGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f), - FailoverGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + FailoverGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), FailoverGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f), FailoverGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -9032,7 +9032,7 @@ impl FailoverGlobalClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - FailoverGlobalClusterErrorKind::DBClusterNotFoundFault(_) + FailoverGlobalClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_global_cluster_not_found_fault(&self) -> bool { @@ -9044,7 +9044,7 @@ impl FailoverGlobalClusterError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - FailoverGlobalClusterErrorKind::InvalidDBClusterStateFault(_) + FailoverGlobalClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_global_cluster_state_fault(&self) -> bool { @@ -9057,9 +9057,9 @@ impl FailoverGlobalClusterError { impl std::error::Error for FailoverGlobalClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - FailoverGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + FailoverGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), FailoverGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner), - FailoverGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + FailoverGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), FailoverGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner), FailoverGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -9173,22 +9173,22 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9240,42 +9240,42 @@ impl ListTagsForResourceError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::DBClusterNotFoundFault(_) + ListTagsForResourceErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::DBInstanceNotFoundFault(_) + ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::DBProxyNotFoundFault(_) + ListTagsForResourceErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::DBProxyTargetGroupNotFoundFault(_) + ListTagsForResourceErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::DBSnapshotNotFoundFault(_) + ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - ListTagsForResourceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - ListTagsForResourceErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - ListTagsForResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => Some(_inner), - ListTagsForResourceErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => Some(_inner), + ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9371,22 +9371,22 @@ pub struct ModifyCurrentDBClusterCapacityError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyCurrentDBClusterCapacityErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterCapacityFault(crate::error::InvalidDBClusterCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterCapacityFault(crate::error::InvalidDbClusterCapacityFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyCurrentDBClusterCapacityError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyCurrentDBClusterCapacityErrorKind::DBClusterNotFoundFault(_inner) => { + ModifyCurrentDBClusterCapacityErrorKind::DbClusterNotFoundFault(_inner) => { _inner.fmt(f) } - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterCapacityFault(_inner) => { + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterCapacityFault(_inner) => { _inner.fmt(f) } - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterStateFault(_inner) => { + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterStateFault(_inner) => { _inner.fmt(f) } ModifyCurrentDBClusterCapacityErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -9440,30 +9440,30 @@ impl ModifyCurrentDBClusterCapacityError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyCurrentDBClusterCapacityErrorKind::DBClusterNotFoundFault(_) + ModifyCurrentDBClusterCapacityErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_capacity_fault(&self) -> bool { matches!( &self.kind, - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterCapacityFault(_) + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterCapacityFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterStateFault(_) + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for ModifyCurrentDBClusterCapacityError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyCurrentDBClusterCapacityErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterCapacityFault(_inner) => { + ModifyCurrentDBClusterCapacityErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterCapacityFault(_inner) => { Some(_inner) } - ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterStateFault(_inner) => { + ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterStateFault(_inner) => { Some(_inner) } ModifyCurrentDBClusterCapacityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -9480,17 +9480,17 @@ pub struct ModifyDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBClusterErrorKind { - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), - InvalidDBSubnetGroupStateFault(crate::error::InvalidDBSubnetGroupStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), + InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -9498,17 +9498,17 @@ pub enum ModifyDBClusterErrorKind { impl std::fmt::Display for ModifyDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBClusterErrorKind::DBClusterAlreadyExistsFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), ModifyDBClusterErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::InvalidDBSecurityGroupStateFault(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f), ModifyDBClusterErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - ModifyDBClusterErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), ModifyDBClusterErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), ModifyDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -9561,25 +9561,25 @@ impl ModifyDBClusterError { pub fn is_db_cluster_already_exists_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::DBClusterAlreadyExistsFault(_) + ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::DBClusterNotFoundFault(_) + ModifyDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_) + ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::DBSubnetGroupNotFoundFault(_) + ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -9588,25 +9588,25 @@ impl ModifyDBClusterError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::InvalidDBClusterStateFault(_) + ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::InvalidDBInstanceStateFault(_) + ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_db_security_group_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::InvalidDBSecurityGroupStateFault(_) + ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_) ) } pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_) + ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -9615,7 +9615,7 @@ impl ModifyDBClusterError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterErrorKind::InvalidVPCNetworkStateFault(_) + ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -9628,17 +9628,17 @@ impl ModifyDBClusterError { impl std::error::Error for ModifyDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBClusterErrorKind::DBClusterAlreadyExistsFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), ModifyDBClusterErrorKind::DomainNotFoundFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::InvalidDBSecurityGroupStateFault(_inner) => Some(_inner), - ModifyDBClusterErrorKind::InvalidDBSubnetGroupStateFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner), ModifyDBClusterErrorKind::InvalidSubnet(_inner) => Some(_inner), - ModifyDBClusterErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), + ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), ModifyDBClusterErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), ModifyDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -9654,26 +9654,26 @@ pub struct ModifyDBClusterEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBClusterEndpointErrorKind { - DBClusterEndpointNotFoundFault(crate::error::DBClusterEndpointNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBClusterEndpointStateFault(crate::error::InvalidDBClusterEndpointStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterEndpointNotFoundFault(crate::error::DbClusterEndpointNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbClusterEndpointStateFault(crate::error::InvalidDbClusterEndpointStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBClusterEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_inner) => { + ModifyDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_inner) => { _inner.fmt(f) } - ModifyDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_inner) => { + ModifyDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_inner) => { _inner.fmt(f) } - ModifyDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - ModifyDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + ModifyDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), ModifyDBClusterEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9725,46 +9725,46 @@ impl ModifyDBClusterEndpointError { pub fn is_db_cluster_endpoint_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_) + ModifyDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_) + ModifyDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_cluster_endpoint_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_) + ModifyDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_) + ModifyDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_) + ModifyDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for ModifyDBClusterEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(_inner) => { + ModifyDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(_inner) => { Some(_inner) } - ModifyDBClusterEndpointErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - ModifyDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(_inner) => { + ModifyDBClusterEndpointErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + ModifyDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(_inner) => { Some(_inner) } - ModifyDBClusterEndpointErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - ModifyDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + ModifyDBClusterEndpointErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + ModifyDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), ModifyDBClusterEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9779,18 +9779,18 @@ pub struct ModifyDBClusterParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBClusterParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBClusterParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - ModifyDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } ModifyDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -9844,23 +9844,23 @@ impl ModifyDBClusterParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for ModifyDBClusterParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - ModifyDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } ModifyDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -9877,8 +9877,8 @@ pub struct ModifyDBClusterSnapshotAttributeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBClusterSnapshotAttributeErrorKind { - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), SharedSnapshotQuotaExceededFault(crate::error::SharedSnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -9886,10 +9886,10 @@ pub enum ModifyDBClusterSnapshotAttributeErrorKind { impl std::fmt::Display for ModifyDBClusterSnapshotAttributeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBClusterSnapshotAttributeErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } - ModifyDBClusterSnapshotAttributeErrorKind::InvalidDBClusterSnapshotStateFault( + ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault( _inner, ) => _inner.fmt(f), ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => { @@ -9946,13 +9946,13 @@ impl ModifyDBClusterSnapshotAttributeError { pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterSnapshotAttributeErrorKind::DBClusterSnapshotNotFoundFault(_) + ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBClusterSnapshotAttributeErrorKind::InvalidDBClusterSnapshotStateFault(_) + ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_shared_snapshot_quota_exceeded_fault(&self) -> bool { @@ -9965,10 +9965,10 @@ impl ModifyDBClusterSnapshotAttributeError { impl std::error::Error for ModifyDBClusterSnapshotAttributeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBClusterSnapshotAttributeErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { Some(_inner) } - ModifyDBClusterSnapshotAttributeErrorKind::InvalidDBClusterSnapshotStateFault( + ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault( _inner, ) => Some(_inner), ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => { @@ -9991,20 +9991,20 @@ pub enum ModifyDBInstanceErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), BackupPolicyNotFoundFault(crate::error::BackupPolicyNotFoundFault), CertificateNotFoundFault(crate::error::CertificateNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBUpgradeDependencyFailureFault(crate::error::DBUpgradeDependencyFailureFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbUpgradeDependencyFailureFault(crate::error::DbUpgradeDependencyFailureFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -10016,20 +10016,20 @@ impl std::fmt::Display for ModifyDBInstanceError { ModifyDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f), ModifyDBInstanceErrorKind::BackupPolicyNotFoundFault(_inner) => _inner.fmt(f), ModifyDBInstanceErrorKind::CertificateNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::DBUpgradeDependencyFailureFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_inner) => _inner.fmt(f), ModifyDBInstanceErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::InvalidDBSecurityGroupStateFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + ModifyDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), ModifyDBInstanceErrorKind::OptionGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { _inner.fmt(f) } ModifyDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), @@ -10103,31 +10103,31 @@ impl ModifyDBInstanceError { pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_) + ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::DBInstanceNotFoundFault(_) + ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::DBParameterGroupNotFoundFault(_) + ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_) + ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_upgrade_dependency_failure_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::DBUpgradeDependencyFailureFault(_) + ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -10139,37 +10139,37 @@ impl ModifyDBInstanceError { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_) + ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::InvalidDBClusterStateFault(_) + ModifyDBInstanceErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_db_security_group_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::InvalidDBSecurityGroupStateFault(_) + ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_) ) } pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::InvalidVPCNetworkStateFault(_) + ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::KMSKeyNotAccessibleFault(_) + ModifyDBInstanceErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -10181,7 +10181,7 @@ impl ModifyDBInstanceError { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -10203,20 +10203,20 @@ impl std::error::Error for ModifyDBInstanceError { ModifyDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::BackupPolicyNotFoundFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::CertificateNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::DBInstanceAlreadyExistsFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::DBSecurityGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::DBUpgradeDependencyFailureFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::DomainNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::InvalidDBSecurityGroupStateFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::OptionGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => Some(_inner), + ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => Some(_inner), ModifyDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10233,16 +10233,16 @@ pub struct ModifyDBParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ModifyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } ModifyDBParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -10296,21 +10296,21 @@ impl ModifyDBParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + ModifyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + ModifyDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for ModifyDBParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ModifyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } ModifyDBParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10327,18 +10327,18 @@ pub struct ModifyDBProxyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBProxyErrorKind { - DBProxyAlreadyExistsFault(crate::error::DBProxyAlreadyExistsFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyAlreadyExistsFault(crate::error::DbProxyAlreadyExistsFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBProxyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBProxyErrorKind::DBProxyAlreadyExistsFault(_inner) => _inner.fmt(f), - ModifyDBProxyErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBProxyErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + ModifyDBProxyErrorKind::DbProxyAlreadyExistsFault(_inner) => _inner.fmt(f), + ModifyDBProxyErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBProxyErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), ModifyDBProxyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10390,25 +10390,25 @@ impl ModifyDBProxyError { pub fn is_db_proxy_already_exists_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyErrorKind::DBProxyAlreadyExistsFault(_) + ModifyDBProxyErrorKind::DbProxyAlreadyExistsFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { - matches!(&self.kind, ModifyDBProxyErrorKind::DBProxyNotFoundFault(_)) + matches!(&self.kind, ModifyDBProxyErrorKind::DbProxyNotFoundFault(_)) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyErrorKind::InvalidDBProxyStateFault(_) + ModifyDBProxyErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for ModifyDBProxyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBProxyErrorKind::DBProxyAlreadyExistsFault(_inner) => Some(_inner), - ModifyDBProxyErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - ModifyDBProxyErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + ModifyDBProxyErrorKind::DbProxyAlreadyExistsFault(_inner) => Some(_inner), + ModifyDBProxyErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + ModifyDBProxyErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), ModifyDBProxyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10423,24 +10423,24 @@ pub struct ModifyDBProxyEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBProxyEndpointErrorKind { - DBProxyEndpointAlreadyExistsFault(crate::error::DBProxyEndpointAlreadyExistsFault), - DBProxyEndpointNotFoundFault(crate::error::DBProxyEndpointNotFoundFault), - InvalidDBProxyEndpointStateFault(crate::error::InvalidDBProxyEndpointStateFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyEndpointAlreadyExistsFault(crate::error::DbProxyEndpointAlreadyExistsFault), + DbProxyEndpointNotFoundFault(crate::error::DbProxyEndpointNotFoundFault), + InvalidDbProxyEndpointStateFault(crate::error::InvalidDbProxyEndpointStateFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBProxyEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_inner) => { + ModifyDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_inner) => { _inner.fmt(f) } - ModifyDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_inner) => { + ModifyDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_inner) => { _inner.fmt(f) } - ModifyDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + ModifyDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), ModifyDBProxyEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10492,39 +10492,39 @@ impl ModifyDBProxyEndpointError { pub fn is_db_proxy_endpoint_already_exists_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_) + ModifyDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_) ) } pub fn is_db_proxy_endpoint_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_) + ModifyDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_) ) } pub fn is_invalid_db_proxy_endpoint_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_) + ModifyDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_) + ModifyDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for ModifyDBProxyEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault(_inner) => { + ModifyDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault(_inner) => { Some(_inner) } - ModifyDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault(_inner) => Some(_inner), - ModifyDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault(_inner) => { + ModifyDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault(_inner) => Some(_inner), + ModifyDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault(_inner) => { Some(_inner) } - ModifyDBProxyEndpointErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + ModifyDBProxyEndpointErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), ModifyDBProxyEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10539,20 +10539,20 @@ pub struct ModifyDBProxyTargetGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBProxyTargetGroupErrorKind { - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBProxyTargetGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBProxyTargetGroupErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBProxyTargetGroupErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + ModifyDBProxyTargetGroupErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBProxyTargetGroupErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } - ModifyDBProxyTargetGroupErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + ModifyDBProxyTargetGroupErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), ModifyDBProxyTargetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10604,30 +10604,30 @@ impl ModifyDBProxyTargetGroupError { pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyTargetGroupErrorKind::DBProxyNotFoundFault(_) + ModifyDBProxyTargetGroupErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyTargetGroupErrorKind::DBProxyTargetGroupNotFoundFault(_) + ModifyDBProxyTargetGroupErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBProxyTargetGroupErrorKind::InvalidDBProxyStateFault(_) + ModifyDBProxyTargetGroupErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for ModifyDBProxyTargetGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBProxyTargetGroupErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - ModifyDBProxyTargetGroupErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + ModifyDBProxyTargetGroupErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + ModifyDBProxyTargetGroupErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } - ModifyDBProxyTargetGroupErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + ModifyDBProxyTargetGroupErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), ModifyDBProxyTargetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10642,14 +10642,14 @@ pub struct ModifyDBSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBSnapshotErrorKind { - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ModifyDBSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), ModifyDBSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10701,14 +10701,14 @@ impl ModifyDBSnapshotError { pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_) + ModifyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for ModifyDBSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + ModifyDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), ModifyDBSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10723,8 +10723,8 @@ pub struct ModifyDBSnapshotAttributeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBSnapshotAttributeErrorKind { - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), SharedSnapshotQuotaExceededFault(crate::error::SharedSnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -10732,8 +10732,8 @@ pub enum ModifyDBSnapshotAttributeErrorKind { impl std::fmt::Display for ModifyDBSnapshotAttributeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBSnapshotAttributeErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBSnapshotAttributeErrorKind::InvalidDBSnapshotStateFault(_inner) => { + ModifyDBSnapshotAttributeErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBSnapshotAttributeErrorKind::InvalidDbSnapshotStateFault(_inner) => { _inner.fmt(f) } ModifyDBSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => { @@ -10790,13 +10790,13 @@ impl ModifyDBSnapshotAttributeError { pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBSnapshotAttributeErrorKind::DBSnapshotNotFoundFault(_) + ModifyDBSnapshotAttributeErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - ModifyDBSnapshotAttributeErrorKind::InvalidDBSnapshotStateFault(_) + ModifyDBSnapshotAttributeErrorKind::InvalidDbSnapshotStateFault(_) ) } pub fn is_shared_snapshot_quota_exceeded_fault(&self) -> bool { @@ -10809,8 +10809,8 @@ impl ModifyDBSnapshotAttributeError { impl std::error::Error for ModifyDBSnapshotAttributeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBSnapshotAttributeErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), - ModifyDBSnapshotAttributeErrorKind::InvalidDBSnapshotStateFault(_inner) => Some(_inner), + ModifyDBSnapshotAttributeErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), + ModifyDBSnapshotAttributeErrorKind::InvalidDbSnapshotStateFault(_inner) => Some(_inner), ModifyDBSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => { Some(_inner) } @@ -10828,9 +10828,9 @@ pub struct ModifyDBSubnetGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ModifyDBSubnetGroupErrorKind { - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), - DBSubnetQuotaExceededFault(crate::error::DBSubnetQuotaExceededFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), + DbSubnetQuotaExceededFault(crate::error::DbSubnetQuotaExceededFault), InvalidSubnet(crate::error::InvalidSubnet), SubnetAlreadyInUse(crate::error::SubnetAlreadyInUse), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -10839,11 +10839,11 @@ pub enum ModifyDBSubnetGroupErrorKind { impl std::fmt::Display for ModifyDBSubnetGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ModifyDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { _inner.fmt(f) } - ModifyDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), - ModifyDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_inner) => _inner.fmt(f), + ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => _inner.fmt(f), ModifyDBSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), ModifyDBSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => _inner.fmt(f), ModifyDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -10897,19 +10897,19 @@ impl ModifyDBSubnetGroupError { pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - ModifyDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_) + ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_db_subnet_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - ModifyDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_) + ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -10925,11 +10925,11 @@ impl ModifyDBSubnetGroupError { impl std::error::Error for ModifyDBSubnetGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ModifyDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { Some(_inner) } - ModifyDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), - ModifyDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(_inner) => Some(_inner), + ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), + ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => Some(_inner), ModifyDBSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner), ModifyDBSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => Some(_inner), ModifyDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10947,9 +10947,9 @@ pub struct ModifyEventSubscriptionError { #[derive(std::fmt::Debug)] pub enum ModifyEventSubscriptionErrorKind { EventSubscriptionQuotaExceededFault(crate::error::EventSubscriptionQuotaExceededFault), - SNSInvalidTopicFault(crate::error::SNSInvalidTopicFault), - SNSNoAuthorizationFault(crate::error::SNSNoAuthorizationFault), - SNSTopicArnNotFoundFault(crate::error::SNSTopicArnNotFoundFault), + SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault), + SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault), + SnsTopicArnNotFoundFault(crate::error::SnsTopicArnNotFoundFault), SubscriptionCategoryNotFoundFault(crate::error::SubscriptionCategoryNotFoundFault), SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -10961,9 +10961,9 @@ impl std::fmt::Display for ModifyEventSubscriptionError { ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => { _inner.fmt(f) } - ModifyEventSubscriptionErrorKind::SNSInvalidTopicFault(_inner) => _inner.fmt(f), - ModifyEventSubscriptionErrorKind::SNSNoAuthorizationFault(_inner) => _inner.fmt(f), - ModifyEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_inner) => _inner.fmt(f), + ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f), + ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => _inner.fmt(f), + ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => _inner.fmt(f), ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => { _inner.fmt(f) } @@ -11025,19 +11025,19 @@ impl ModifyEventSubscriptionError { pub fn is_sns_invalid_topic_fault(&self) -> bool { matches!( &self.kind, - ModifyEventSubscriptionErrorKind::SNSInvalidTopicFault(_) + ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_) ) } pub fn is_sns_no_authorization_fault(&self) -> bool { matches!( &self.kind, - ModifyEventSubscriptionErrorKind::SNSNoAuthorizationFault(_) + ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_) ) } pub fn is_sns_topic_arn_not_found_fault(&self) -> bool { matches!( &self.kind, - ModifyEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_) + ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_) ) } pub fn is_subscription_category_not_found_fault(&self) -> bool { @@ -11059,9 +11059,9 @@ impl std::error::Error for ModifyEventSubscriptionError { ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => { Some(_inner) } - ModifyEventSubscriptionErrorKind::SNSInvalidTopicFault(_inner) => Some(_inner), - ModifyEventSubscriptionErrorKind::SNSNoAuthorizationFault(_inner) => Some(_inner), - ModifyEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(_inner) => Some(_inner), + ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner), + ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner), + ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => Some(_inner), ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => { Some(_inner) } @@ -11081,8 +11081,8 @@ pub struct ModifyGlobalClusterError { #[derive(std::fmt::Debug)] pub enum ModifyGlobalClusterErrorKind { GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -11091,8 +11091,8 @@ impl std::fmt::Display for ModifyGlobalClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f), - ModifyGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - ModifyGlobalClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + ModifyGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + ModifyGlobalClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f), ModifyGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -11151,13 +11151,13 @@ impl ModifyGlobalClusterError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - ModifyGlobalClusterErrorKind::InvalidDBClusterStateFault(_) + ModifyGlobalClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - ModifyGlobalClusterErrorKind::InvalidDBInstanceStateFault(_) + ModifyGlobalClusterErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_global_cluster_state_fault(&self) -> bool { @@ -11171,8 +11171,8 @@ impl std::error::Error for ModifyGlobalClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner), - ModifyGlobalClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - ModifyGlobalClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + ModifyGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + ModifyGlobalClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner), ModifyGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -11278,16 +11278,16 @@ pub struct PromoteReadReplicaError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PromoteReadReplicaErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PromoteReadReplicaError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PromoteReadReplicaErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - PromoteReadReplicaErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + PromoteReadReplicaErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + PromoteReadReplicaErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), PromoteReadReplicaErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11339,21 +11339,21 @@ impl PromoteReadReplicaError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - PromoteReadReplicaErrorKind::DBInstanceNotFoundFault(_) + PromoteReadReplicaErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - PromoteReadReplicaErrorKind::InvalidDBInstanceStateFault(_) + PromoteReadReplicaErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for PromoteReadReplicaError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PromoteReadReplicaErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - PromoteReadReplicaErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + PromoteReadReplicaErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + PromoteReadReplicaErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), PromoteReadReplicaErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11368,16 +11368,16 @@ pub struct PromoteReadReplicaDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PromoteReadReplicaDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PromoteReadReplicaDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PromoteReadReplicaDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - PromoteReadReplicaDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => { + PromoteReadReplicaDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + PromoteReadReplicaDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => { _inner.fmt(f) } PromoteReadReplicaDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11431,21 +11431,21 @@ impl PromoteReadReplicaDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - PromoteReadReplicaDBClusterErrorKind::DBClusterNotFoundFault(_) + PromoteReadReplicaDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - PromoteReadReplicaDBClusterErrorKind::InvalidDBClusterStateFault(_) + PromoteReadReplicaDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for PromoteReadReplicaDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PromoteReadReplicaDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - PromoteReadReplicaDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => { + PromoteReadReplicaDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + PromoteReadReplicaDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => { Some(_inner) } PromoteReadReplicaDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -11462,10 +11462,10 @@ pub struct PurchaseReservedDBInstancesOfferingError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PurchaseReservedDBInstancesOfferingErrorKind { - ReservedDBInstanceAlreadyExistsFault(crate::error::ReservedDBInstanceAlreadyExistsFault), - ReservedDBInstanceQuotaExceededFault(crate::error::ReservedDBInstanceQuotaExceededFault), - ReservedDBInstancesOfferingNotFoundFault( - crate::error::ReservedDBInstancesOfferingNotFoundFault, + ReservedDbInstanceAlreadyExistsFault(crate::error::ReservedDbInstanceAlreadyExistsFault), + ReservedDbInstanceQuotaExceededFault(crate::error::ReservedDbInstanceQuotaExceededFault), + ReservedDbInstancesOfferingNotFoundFault( + crate::error::ReservedDbInstancesOfferingNotFoundFault, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -11473,13 +11473,13 @@ pub enum PurchaseReservedDBInstancesOfferingErrorKind { impl std::fmt::Display for PurchaseReservedDBInstancesOfferingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceAlreadyExistsFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f) , - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceQuotaExceededFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceQuotaExceededFault(_inner) => _inner.fmt(f) , - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstancesOfferingNotFoundFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstancesOfferingNotFoundFault(_inner) => _inner.fmt(f) , PurchaseReservedDBInstancesOfferingErrorKind::Unhandled(_inner) => { @@ -11538,19 +11538,19 @@ impl PurchaseReservedDBInstancesOfferingError { pub fn is_reserved_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceAlreadyExistsFault(_) + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceAlreadyExistsFault(_) ) } pub fn is_reserved_db_instance_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceQuotaExceededFault(_) + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceQuotaExceededFault(_) ) } pub fn is_reserved_db_instances_offering_not_found_fault(&self) -> bool { matches!( &self.kind, - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstancesOfferingNotFoundFault( + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstancesOfferingNotFoundFault( _ ) ) @@ -11559,13 +11559,13 @@ impl PurchaseReservedDBInstancesOfferingError { impl std::error::Error for PurchaseReservedDBInstancesOfferingError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceAlreadyExistsFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceAlreadyExistsFault(_inner) => Some(_inner) , - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceQuotaExceededFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceQuotaExceededFault(_inner) => Some(_inner) , - PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstancesOfferingNotFoundFault(_inner) => + PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstancesOfferingNotFoundFault(_inner) => Some(_inner) , PurchaseReservedDBInstancesOfferingErrorKind::Unhandled(_inner) => { @@ -11584,16 +11584,16 @@ pub struct RebootDBInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RebootDBInstanceErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RebootDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RebootDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - RebootDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), RebootDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11645,21 +11645,21 @@ impl RebootDBInstanceError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - RebootDBInstanceErrorKind::DBInstanceNotFoundFault(_) + RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - RebootDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for RebootDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RebootDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - RebootDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), RebootDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11674,36 +11674,36 @@ pub struct RegisterDBProxyTargetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterDBProxyTargetsErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetAlreadyRegisteredFault(crate::error::DBProxyTargetAlreadyRegisteredFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetAlreadyRegisteredFault(crate::error::DbProxyTargetAlreadyRegisteredFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), InsufficientAvailableIPsInSubnetFault(crate::error::InsufficientAvailableIPsInSubnetFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterDBProxyTargetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterDBProxyTargetsErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - RegisterDBProxyTargetsErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - RegisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - RegisterDBProxyTargetsErrorKind::DBProxyTargetAlreadyRegisteredFault(_inner) => { + RegisterDBProxyTargetsErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::DbProxyTargetAlreadyRegisteredFault(_inner) => { _inner.fmt(f) } - RegisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + RegisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } RegisterDBProxyTargetsErrorKind::InsufficientAvailableIPsInSubnetFault(_inner) => { _inner.fmt(f) } - RegisterDBProxyTargetsErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - RegisterDBProxyTargetsErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), - RegisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), + RegisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => _inner.fmt(f), RegisterDBProxyTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11755,31 +11755,31 @@ impl RegisterDBProxyTargetsError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::DBClusterNotFoundFault(_) + RegisterDBProxyTargetsErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::DBInstanceNotFoundFault(_) + RegisterDBProxyTargetsErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_) + RegisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_already_registered_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::DBProxyTargetAlreadyRegisteredFault(_) + RegisterDBProxyTargetsErrorKind::DbProxyTargetAlreadyRegisteredFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_) + RegisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_insufficient_available_i_ps_in_subnet_fault(&self) -> bool { @@ -11791,40 +11791,40 @@ impl RegisterDBProxyTargetsError { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::InvalidDBClusterStateFault(_) + RegisterDBProxyTargetsErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::InvalidDBInstanceStateFault(_) + RegisterDBProxyTargetsErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_db_proxy_state_fault(&self) -> bool { matches!( &self.kind, - RegisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_) + RegisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_) ) } } impl std::error::Error for RegisterDBProxyTargetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterDBProxyTargetsErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - RegisterDBProxyTargetsErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - RegisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - RegisterDBProxyTargetsErrorKind::DBProxyTargetAlreadyRegisteredFault(_inner) => { + RegisterDBProxyTargetsErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::DbProxyTargetAlreadyRegisteredFault(_inner) => { Some(_inner) } - RegisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + RegisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } RegisterDBProxyTargetsErrorKind::InsufficientAvailableIPsInSubnetFault(_inner) => { Some(_inner) } - RegisterDBProxyTargetsErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - RegisterDBProxyTargetsErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), - RegisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), + RegisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(_inner) => Some(_inner), RegisterDBProxyTargetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -11839,7 +11839,7 @@ pub struct RemoveFromGlobalClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveFromGlobalClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault), InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -11848,7 +11848,7 @@ pub enum RemoveFromGlobalClusterErrorKind { impl std::fmt::Display for RemoveFromGlobalClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveFromGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), + RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f), RemoveFromGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => { _inner.fmt(f) @@ -11904,7 +11904,7 @@ impl RemoveFromGlobalClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveFromGlobalClusterErrorKind::DBClusterNotFoundFault(_) + RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_global_cluster_not_found_fault(&self) -> bool { @@ -11923,7 +11923,7 @@ impl RemoveFromGlobalClusterError { impl std::error::Error for RemoveFromGlobalClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveFromGlobalClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), + RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner), RemoveFromGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => { Some(_inner) @@ -11942,18 +11942,18 @@ pub struct RemoveRoleFromDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveRoleFromDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterRoleNotFoundFault(crate::error::DBClusterRoleNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterRoleNotFoundFault(crate::error::DbClusterRoleNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveRoleFromDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveRoleFromDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - RemoveRoleFromDBClusterErrorKind::DBClusterRoleNotFoundFault(_inner) => _inner.fmt(f), - RemoveRoleFromDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBClusterErrorKind::DbClusterRoleNotFoundFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), RemoveRoleFromDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12005,28 +12005,28 @@ impl RemoveRoleFromDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBClusterErrorKind::DBClusterNotFoundFault(_) + RemoveRoleFromDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_role_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBClusterErrorKind::DBClusterRoleNotFoundFault(_) + RemoveRoleFromDBClusterErrorKind::DbClusterRoleNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBClusterErrorKind::InvalidDBClusterStateFault(_) + RemoveRoleFromDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } } impl std::error::Error for RemoveRoleFromDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveRoleFromDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - RemoveRoleFromDBClusterErrorKind::DBClusterRoleNotFoundFault(_inner) => Some(_inner), - RemoveRoleFromDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), + RemoveRoleFromDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + RemoveRoleFromDBClusterErrorKind::DbClusterRoleNotFoundFault(_inner) => Some(_inner), + RemoveRoleFromDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), RemoveRoleFromDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12041,18 +12041,18 @@ pub struct RemoveRoleFromDBInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveRoleFromDBInstanceErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBInstanceRoleNotFoundFault(crate::error::DBInstanceRoleNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbInstanceRoleNotFoundFault(crate::error::DbInstanceRoleNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveRoleFromDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveRoleFromDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - RemoveRoleFromDBInstanceErrorKind::DBInstanceRoleNotFoundFault(_inner) => _inner.fmt(f), - RemoveRoleFromDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBInstanceErrorKind::DbInstanceRoleNotFoundFault(_inner) => _inner.fmt(f), + RemoveRoleFromDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), RemoveRoleFromDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12104,28 +12104,28 @@ impl RemoveRoleFromDBInstanceError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBInstanceErrorKind::DBInstanceNotFoundFault(_) + RemoveRoleFromDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_instance_role_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBInstanceErrorKind::DBInstanceRoleNotFoundFault(_) + RemoveRoleFromDBInstanceErrorKind::DbInstanceRoleNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - RemoveRoleFromDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + RemoveRoleFromDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for RemoveRoleFromDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveRoleFromDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - RemoveRoleFromDBInstanceErrorKind::DBInstanceRoleNotFoundFault(_inner) => Some(_inner), - RemoveRoleFromDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + RemoveRoleFromDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + RemoveRoleFromDBInstanceErrorKind::DbInstanceRoleNotFoundFault(_inner) => Some(_inner), + RemoveRoleFromDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), RemoveRoleFromDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12243,24 +12243,24 @@ pub struct RemoveTagsFromResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemoveTagsFromResourceErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemoveTagsFromResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemoveTagsFromResourceErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - RemoveTagsFromResourceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - RemoveTagsFromResourceErrorKind::DBProxyNotFoundFault(_inner) => _inner.fmt(f), - RemoveTagsFromResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + RemoveTagsFromResourceErrorKind::DbProxyNotFoundFault(_inner) => _inner.fmt(f), + RemoveTagsFromResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RemoveTagsFromResourceErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), RemoveTagsFromResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -12312,44 +12312,44 @@ impl RemoveTagsFromResourceError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveTagsFromResourceErrorKind::DBClusterNotFoundFault(_) + RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveTagsFromResourceErrorKind::DBInstanceNotFoundFault(_) + RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_proxy_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveTagsFromResourceErrorKind::DBProxyNotFoundFault(_) + RemoveTagsFromResourceErrorKind::DbProxyNotFoundFault(_) ) } pub fn is_db_proxy_target_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveTagsFromResourceErrorKind::DBProxyTargetGroupNotFoundFault(_) + RemoveTagsFromResourceErrorKind::DbProxyTargetGroupNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - RemoveTagsFromResourceErrorKind::DBSnapshotNotFoundFault(_) + RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_) ) } } impl std::error::Error for RemoveTagsFromResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemoveTagsFromResourceErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - RemoveTagsFromResourceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - RemoveTagsFromResourceErrorKind::DBProxyNotFoundFault(_inner) => Some(_inner), - RemoveTagsFromResourceErrorKind::DBProxyTargetGroupNotFoundFault(_inner) => { + RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + RemoveTagsFromResourceErrorKind::DbProxyNotFoundFault(_inner) => Some(_inner), + RemoveTagsFromResourceErrorKind::DbProxyTargetGroupNotFoundFault(_inner) => { Some(_inner) } - RemoveTagsFromResourceErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), RemoveTagsFromResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12364,18 +12364,18 @@ pub struct ResetDBClusterParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ResetDBClusterParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ResetDBClusterParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ResetDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - ResetDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } ResetDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -12429,23 +12429,23 @@ impl ResetDBClusterParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ResetDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - ResetDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for ResetDBClusterParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ResetDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => { + ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - ResetDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } ResetDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -12462,16 +12462,16 @@ pub struct ResetDBParameterGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ResetDBParameterGroupErrorKind { - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ResetDBParameterGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ResetDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => _inner.fmt(f), - ResetDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ResetDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f), + ResetDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { _inner.fmt(f) } ResetDBParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -12525,21 +12525,21 @@ impl ResetDBParameterGroupError { pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - ResetDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_) + ResetDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool { matches!( &self.kind, - ResetDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_) + ResetDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_) ) } } impl std::error::Error for ResetDBParameterGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ResetDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - ResetDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(_inner) => { + ResetDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + ResetDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => { Some(_inner) } ResetDBParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -12556,19 +12556,19 @@ pub struct RestoreDBClusterFromS3Error { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RestoreDBClusterFromS3ErrorKind { - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBClusterQuotaExceededFault(crate::error::DBClusterQuotaExceededFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBSubnetGroupStateFault(crate::error::InvalidDBSubnetGroupStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault), InvalidS3BucketFault(crate::error::InvalidS3BucketFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -12576,25 +12576,25 @@ pub enum RestoreDBClusterFromS3ErrorKind { impl std::fmt::Display for RestoreDBClusterFromS3Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RestoreDBClusterFromS3ErrorKind::DBClusterAlreadyExistsFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => { + RestoreDBClusterFromS3ErrorKind::DbClusterAlreadyExistsFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromS3ErrorKind::DBClusterQuotaExceededFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::DbClusterQuotaExceededFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), RestoreDBClusterFromS3ErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), RestoreDBClusterFromS3ErrorKind::InsufficientStorageClusterCapacityFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromS3ErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::InvalidDBSubnetGroupStateFault(_inner) => { + RestoreDBClusterFromS3ErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::InvalidDbSubnetGroupStateFault(_inner) => { _inner.fmt(f) } RestoreDBClusterFromS3ErrorKind::InvalidS3BucketFault(_inner) => _inner.fmt(f), RestoreDBClusterFromS3ErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromS3ErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromS3ErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), RestoreDBClusterFromS3ErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), RestoreDBClusterFromS3ErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -12647,31 +12647,31 @@ impl RestoreDBClusterFromS3Error { pub fn is_db_cluster_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::DBClusterAlreadyExistsFault(_) + RestoreDBClusterFromS3ErrorKind::DbClusterAlreadyExistsFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::DBClusterNotFoundFault(_) + RestoreDBClusterFromS3ErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::DBClusterParameterGroupNotFoundFault(_) + RestoreDBClusterFromS3ErrorKind::DbClusterParameterGroupNotFoundFault(_) ) } pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::DBClusterQuotaExceededFault(_) + RestoreDBClusterFromS3ErrorKind::DbClusterQuotaExceededFault(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBClusterFromS3ErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -12689,13 +12689,13 @@ impl RestoreDBClusterFromS3Error { pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::InvalidDBClusterStateFault(_) + RestoreDBClusterFromS3ErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::InvalidDBSubnetGroupStateFault(_) + RestoreDBClusterFromS3ErrorKind::InvalidDbSubnetGroupStateFault(_) ) } pub fn is_invalid_s3_bucket_fault(&self) -> bool { @@ -12713,13 +12713,13 @@ impl RestoreDBClusterFromS3Error { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBClusterFromS3ErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromS3ErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBClusterFromS3ErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -12732,23 +12732,23 @@ impl RestoreDBClusterFromS3Error { impl std::error::Error for RestoreDBClusterFromS3Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RestoreDBClusterFromS3ErrorKind::DBClusterAlreadyExistsFault(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => { + RestoreDBClusterFromS3ErrorKind::DbClusterAlreadyExistsFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBClusterFromS3ErrorKind::DBClusterQuotaExceededFault(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::DbClusterQuotaExceededFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::DomainNotFoundFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::InsufficientStorageClusterCapacityFault(_inner) => { Some(_inner) } - RestoreDBClusterFromS3ErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::InvalidDBSubnetGroupStateFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::InvalidS3BucketFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - RestoreDBClusterFromS3ErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + RestoreDBClusterFromS3ErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), RestoreDBClusterFromS3ErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -12764,21 +12764,21 @@ pub struct RestoreDBClusterFromSnapshotError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RestoreDBClusterFromSnapshotErrorKind { - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBClusterQuotaExceededFault(crate::error::DBClusterQuotaExceededFault), - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), - InsufficientDBClusterCapacityFault(crate::error::InsufficientDBClusterCapacityFault), + InsufficientDbClusterCapacityFault(crate::error::InsufficientDbClusterCapacityFault), InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), InvalidRestoreFault(crate::error::InvalidRestoreFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -12787,41 +12787,41 @@ pub enum RestoreDBClusterFromSnapshotErrorKind { impl std::fmt::Display for RestoreDBClusterFromSnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RestoreDBClusterFromSnapshotErrorKind::DBClusterAlreadyExistsFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterQuotaExceededFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromSnapshotErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => { _inner.fmt(f) } RestoreDBClusterFromSnapshotErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBClusterFromSnapshotErrorKind::InsufficientDBClusterCapacityFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_inner) => { _inner.fmt(f) } RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault( _inner, ) => _inner.fmt(f), - RestoreDBClusterFromSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => { _inner.fmt(f) } RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f), RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBClusterFromSnapshotErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterFromSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } RestoreDBClusterFromSnapshotErrorKind::OptionGroupNotFoundFault(_inner) => { @@ -12881,37 +12881,37 @@ impl RestoreDBClusterFromSnapshotError { pub fn is_db_cluster_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBClusterAlreadyExistsFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_) ) } pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBClusterParameterGroupNotFoundFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbClusterParameterGroupNotFoundFault(_) ) } pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBClusterQuotaExceededFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_) ) } pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBSnapshotNotFoundFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -12923,7 +12923,7 @@ impl RestoreDBClusterFromSnapshotError { pub fn is_insufficient_db_cluster_capacity_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::InsufficientDBClusterCapacityFault(_) + RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_) ) } pub fn is_insufficient_storage_cluster_capacity_fault(&self) -> bool { @@ -12935,13 +12935,13 @@ impl RestoreDBClusterFromSnapshotError { pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_) + RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::InvalidDBSnapshotStateFault(_) + RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_) ) } pub fn is_invalid_restore_fault(&self) -> bool { @@ -12959,13 +12959,13 @@ impl RestoreDBClusterFromSnapshotError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterFromSnapshotErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -12984,41 +12984,41 @@ impl RestoreDBClusterFromSnapshotError { impl std::error::Error for RestoreDBClusterFromSnapshotError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RestoreDBClusterFromSnapshotErrorKind::DBClusterAlreadyExistsFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterParameterGroupNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterQuotaExceededFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), - RestoreDBClusterFromSnapshotErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), + RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => { Some(_inner) } RestoreDBClusterFromSnapshotErrorKind::DomainNotFoundFault(_inner) => Some(_inner), - RestoreDBClusterFromSnapshotErrorKind::InsufficientDBClusterCapacityFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_inner) => { Some(_inner) } RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault( _inner, ) => Some(_inner), - RestoreDBClusterFromSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => { Some(_inner) } RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(_inner) => Some(_inner), RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBClusterFromSnapshotErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => { Some(_inner) } - RestoreDBClusterFromSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), RestoreDBClusterFromSnapshotErrorKind::OptionGroupNotFoundFault(_inner) => Some(_inner), RestoreDBClusterFromSnapshotErrorKind::StorageQuotaExceededFault(_inner) => { Some(_inner) @@ -13037,22 +13037,22 @@ pub struct RestoreDBClusterToPointInTimeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RestoreDBClusterToPointInTimeErrorKind { - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBClusterQuotaExceededFault(crate::error::DBClusterQuotaExceededFault), - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), - InsufficientDBClusterCapacityFault(crate::error::InsufficientDBClusterCapacityFault), + InsufficientDbClusterCapacityFault(crate::error::InsufficientDbClusterCapacityFault), InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), InvalidRestoreFault(crate::error::InvalidRestoreFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -13061,44 +13061,44 @@ pub enum RestoreDBClusterToPointInTimeErrorKind { impl std::fmt::Display for RestoreDBClusterToPointInTimeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RestoreDBClusterToPointInTimeErrorKind::DBClusterAlreadyExistsFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBClusterToPointInTimeErrorKind::DBClusterParameterGroupNotFoundFault( + RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBClusterToPointInTimeErrorKind::DbClusterParameterGroupNotFoundFault( _inner, ) => _inner.fmt(f), - RestoreDBClusterToPointInTimeErrorKind::DBClusterQuotaExceededFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => { _inner.fmt(f) } RestoreDBClusterToPointInTimeErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBClusterToPointInTimeErrorKind::InsufficientDBClusterCapacityFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_inner) => { _inner.fmt(f) } RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault( _inner, ) => _inner.fmt(f), - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_inner) => { _inner.fmt(f) } RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f), RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBClusterToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => { _inner.fmt(f) } - RestoreDBClusterToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } RestoreDBClusterToPointInTimeErrorKind::OptionGroupNotFoundFault(_inner) => { @@ -13158,37 +13158,37 @@ impl RestoreDBClusterToPointInTimeError { pub fn is_db_cluster_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBClusterAlreadyExistsFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_) ) } pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBClusterNotFoundFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBClusterParameterGroupNotFoundFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbClusterParameterGroupNotFoundFault(_) ) } pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBClusterQuotaExceededFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_) ) } pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBClusterSnapshotNotFoundFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -13200,7 +13200,7 @@ impl RestoreDBClusterToPointInTimeError { pub fn is_insufficient_db_cluster_capacity_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::InsufficientDBClusterCapacityFault(_) + RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_) ) } pub fn is_insufficient_storage_cluster_capacity_fault(&self) -> bool { @@ -13212,19 +13212,19 @@ impl RestoreDBClusterToPointInTimeError { pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterSnapshotStateFault(_) + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterStateFault(_) + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::InvalidDBSnapshotStateFault(_) + RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_) ) } pub fn is_invalid_restore_fault(&self) -> bool { @@ -13242,13 +13242,13 @@ impl RestoreDBClusterToPointInTimeError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBClusterToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -13267,44 +13267,44 @@ impl RestoreDBClusterToPointInTimeError { impl std::error::Error for RestoreDBClusterToPointInTimeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RestoreDBClusterToPointInTimeErrorKind::DBClusterAlreadyExistsFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - RestoreDBClusterToPointInTimeErrorKind::DBClusterParameterGroupNotFoundFault( + RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + RestoreDBClusterToPointInTimeErrorKind::DbClusterParameterGroupNotFoundFault( _inner, ) => Some(_inner), - RestoreDBClusterToPointInTimeErrorKind::DBClusterQuotaExceededFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::DBClusterSnapshotNotFoundFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => { Some(_inner) } RestoreDBClusterToPointInTimeErrorKind::DomainNotFoundFault(_inner) => Some(_inner), - RestoreDBClusterToPointInTimeErrorKind::InsufficientDBClusterCapacityFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_inner) => { Some(_inner) } RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault( _inner, ) => Some(_inner), - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterSnapshotStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_inner) => { Some(_inner) } RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(_inner) => Some(_inner), RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBClusterToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => { Some(_inner) } - RestoreDBClusterToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => { Some(_inner) } RestoreDBClusterToPointInTimeErrorKind::OptionGroupNotFoundFault(_inner) => { @@ -13329,22 +13329,22 @@ pub struct RestoreDBInstanceFromDBSnapshotError { pub enum RestoreDBInstanceFromDBSnapshotErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), BackupPolicyNotFoundFault(crate::error::BackupPolicyNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), InvalidRestoreFault(crate::error::InvalidRestoreFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -13359,46 +13359,46 @@ impl std::fmt::Display for RestoreDBInstanceFromDBSnapshotError { RestoreDBInstanceFromDBSnapshotErrorKind::BackupPolicyNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbInstanceAlreadyExistsFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBParameterGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( _inner, ) => _inner.fmt(f), - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceFromDBSnapshotErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromDBSnapshotErrorKind::InstanceQuotaExceededFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDBInstanceCapacityFault( + RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDbInstanceCapacityFault( _inner, ) => _inner.fmt(f), - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceFromDBSnapshotErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromDBSnapshotErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceFromDBSnapshotErrorKind::OptionGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAZFault( + RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAzFault( _inner, ) => _inner.fmt(f), RestoreDBInstanceFromDBSnapshotErrorKind::StorageQuotaExceededFault(_inner) => { @@ -13470,37 +13470,37 @@ impl RestoreDBInstanceFromDBSnapshotError { pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBInstanceAlreadyExistsFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBParameterGroupNotFoundFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBSecurityGroupNotFoundFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBSnapshotNotFoundFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -13518,13 +13518,13 @@ impl RestoreDBInstanceFromDBSnapshotError { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDBInstanceCapacityFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_snapshot_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_) ) } pub fn is_invalid_restore_fault(&self) -> bool { @@ -13542,13 +13542,13 @@ impl RestoreDBInstanceFromDBSnapshotError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -13560,7 +13560,7 @@ impl RestoreDBInstanceFromDBSnapshotError { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -13585,46 +13585,46 @@ impl std::error::Error for RestoreDBInstanceFromDBSnapshotError { RestoreDBInstanceFromDBSnapshotErrorKind::BackupPolicyNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbInstanceAlreadyExistsFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBParameterGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSecurityGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSnapshotNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( _inner, ) => Some(_inner), - RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => { Some(_inner) } RestoreDBInstanceFromDBSnapshotErrorKind::DomainNotFoundFault(_inner) => Some(_inner), RestoreDBInstanceFromDBSnapshotErrorKind::InstanceQuotaExceededFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDBInstanceCapacityFault( + RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDbInstanceCapacityFault( _inner, ) => Some(_inner), - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDBSnapshotStateFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => { Some(_inner) } RestoreDBInstanceFromDBSnapshotErrorKind::InvalidRestoreFault(_inner) => Some(_inner), RestoreDBInstanceFromDBSnapshotErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBInstanceFromDBSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => { Some(_inner) } RestoreDBInstanceFromDBSnapshotErrorKind::OptionGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAZFault( + RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAzFault( _inner, ) => Some(_inner), RestoreDBInstanceFromDBSnapshotErrorKind::StorageQuotaExceededFault(_inner) => { @@ -13649,19 +13649,19 @@ pub struct RestoreDBInstanceFromS3Error { pub enum RestoreDBInstanceFromS3ErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), BackupPolicyNotFoundFault(crate::error::BackupPolicyNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), InvalidS3BucketFault(crate::error::InvalidS3BucketFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -13672,25 +13672,25 @@ impl std::fmt::Display for RestoreDBInstanceFromS3Error { match &self.kind { RestoreDBInstanceFromS3ErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromS3ErrorKind::BackupPolicyNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::DBInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::DBParameterGroupNotFoundFault(_inner) => { + RestoreDBInstanceFromS3ErrorKind::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f), + RestoreDBInstanceFromS3ErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromS3ErrorKind::DBSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + RestoreDBInstanceFromS3ErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { _inner.fmt(f) } - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromS3ErrorKind::InstanceQuotaExceededFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::InsufficientDBInstanceCapacityFault(_inner) => { + RestoreDBInstanceFromS3ErrorKind::InsufficientDbInstanceCapacityFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceFromS3ErrorKind::InvalidS3BucketFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromS3ErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + RestoreDBInstanceFromS3ErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + RestoreDBInstanceFromS3ErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), RestoreDBInstanceFromS3ErrorKind::OptionGroupNotFoundFault(_inner) => _inner.fmt(f), - RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceFromS3ErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f), @@ -13758,31 +13758,31 @@ impl RestoreDBInstanceFromS3Error { pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::DBInstanceAlreadyExistsFault(_) + RestoreDBInstanceFromS3ErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::DBParameterGroupNotFoundFault(_) + RestoreDBInstanceFromS3ErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::DBSecurityGroupNotFoundFault(_) + RestoreDBInstanceFromS3ErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_instance_quota_exceeded_fault(&self) -> bool { @@ -13794,7 +13794,7 @@ impl RestoreDBInstanceFromS3Error { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::InsufficientDBInstanceCapacityFault(_) + RestoreDBInstanceFromS3ErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_s3_bucket_fault(&self) -> bool { @@ -13812,13 +13812,13 @@ impl RestoreDBInstanceFromS3Error { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBInstanceFromS3ErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBInstanceFromS3ErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -13830,7 +13830,7 @@ impl RestoreDBInstanceFromS3Error { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -13851,23 +13851,23 @@ impl std::error::Error for RestoreDBInstanceFromS3Error { match &self.kind { RestoreDBInstanceFromS3ErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner), RestoreDBInstanceFromS3ErrorKind::BackupPolicyNotFoundFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::DBInstanceAlreadyExistsFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::DBParameterGroupNotFoundFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::DBSecurityGroupNotFoundFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + RestoreDBInstanceFromS3ErrorKind::DbInstanceAlreadyExistsFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { Some(_inner) } - RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), RestoreDBInstanceFromS3ErrorKind::InstanceQuotaExceededFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::InsufficientDBInstanceCapacityFault(_inner) => { + RestoreDBInstanceFromS3ErrorKind::InsufficientDbInstanceCapacityFault(_inner) => { Some(_inner) } RestoreDBInstanceFromS3ErrorKind::InvalidS3BucketFault(_inner) => Some(_inner), RestoreDBInstanceFromS3ErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + RestoreDBInstanceFromS3ErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), RestoreDBInstanceFromS3ErrorKind::OptionGroupNotFoundFault(_inner) => Some(_inner), - RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAZFault(_inner) => { + RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAzFault(_inner) => { Some(_inner) } RestoreDBInstanceFromS3ErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner), @@ -13888,24 +13888,24 @@ pub struct RestoreDBInstanceToPointInTimeError { pub enum RestoreDBInstanceToPointInTimeErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), BackupPolicyNotFoundFault(crate::error::BackupPolicyNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBInstanceAutomatedBackupNotFoundFault(crate::error::DBInstanceAutomatedBackupNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbInstanceAutomatedBackupNotFoundFault(crate::error::DbInstanceAutomatedBackupNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), InvalidRestoreFault(crate::error::InvalidRestoreFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), PointInTimeRestoreNotEnabledFault(crate::error::PointInTimeRestoreNotEnabledFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -13920,43 +13920,43 @@ impl std::fmt::Display for RestoreDBInstanceToPointInTimeError { RestoreDBInstanceToPointInTimeErrorKind::BackupPolicyNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAlreadyExistsFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAutomatedBackupNotFoundFault( + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAutomatedBackupNotFoundFault( _inner, ) => _inner.fmt(f), - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBParameterGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbParameterGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceToPointInTimeErrorKind::DomainNotFoundFault(_inner) => _inner.fmt(f), RestoreDBInstanceToPointInTimeErrorKind::InstanceQuotaExceededFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::InsufficientDBInstanceCapacityFault( + RestoreDBInstanceToPointInTimeErrorKind::InsufficientDbInstanceCapacityFault( _inner, ) => _inner.fmt(f), - RestoreDBInstanceToPointInTimeErrorKind::InvalidDBInstanceStateFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::InvalidDbInstanceStateFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceToPointInTimeErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f), RestoreDBInstanceToPointInTimeErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - RestoreDBInstanceToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => { _inner.fmt(f) } RestoreDBInstanceToPointInTimeErrorKind::OptionGroupNotFoundFault(_inner) => { @@ -13965,7 +13965,7 @@ impl std::fmt::Display for RestoreDBInstanceToPointInTimeError { RestoreDBInstanceToPointInTimeErrorKind::PointInTimeRestoreNotEnabledFault(_inner) => { _inner.fmt(f) } - RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAZFault( + RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAzFault( _inner, ) => _inner.fmt(f), RestoreDBInstanceToPointInTimeErrorKind::StorageQuotaExceededFault(_inner) => { @@ -14037,43 +14037,43 @@ impl RestoreDBInstanceToPointInTimeError { pub fn is_db_instance_already_exists_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAlreadyExistsFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAlreadyExistsFault(_) ) } pub fn is_db_instance_automated_backup_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAutomatedBackupNotFoundFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAutomatedBackupNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceNotFoundFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_parameter_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBParameterGroupNotFoundFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbParameterGroupNotFoundFault(_) ) } pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBSecurityGroupNotFoundFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_) + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_domain_not_found_fault(&self) -> bool { @@ -14091,13 +14091,13 @@ impl RestoreDBInstanceToPointInTimeError { pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::InsufficientDBInstanceCapacityFault(_) + RestoreDBInstanceToPointInTimeErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::InvalidDBInstanceStateFault(_) + RestoreDBInstanceToPointInTimeErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_restore_fault(&self) -> bool { @@ -14115,13 +14115,13 @@ impl RestoreDBInstanceToPointInTimeError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_) + RestoreDBInstanceToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_) + RestoreDBInstanceToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_option_group_not_found_fault(&self) -> bool { @@ -14139,7 +14139,7 @@ impl RestoreDBInstanceToPointInTimeError { pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool { matches!( &self.kind, - RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAZFault(_) + RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAzFault(_) ) } pub fn is_storage_quota_exceeded_fault(&self) -> bool { @@ -14164,43 +14164,43 @@ impl std::error::Error for RestoreDBInstanceToPointInTimeError { RestoreDBInstanceToPointInTimeErrorKind::BackupPolicyNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAlreadyExistsFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAlreadyExistsFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAutomatedBackupNotFoundFault( + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAutomatedBackupNotFoundFault( _inner, ) => Some(_inner), - RestoreDBInstanceToPointInTimeErrorKind::DBInstanceNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbInstanceNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBParameterGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbParameterGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSecurityGroupNotFoundFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => { Some(_inner) } RestoreDBInstanceToPointInTimeErrorKind::DomainNotFoundFault(_inner) => Some(_inner), RestoreDBInstanceToPointInTimeErrorKind::InstanceQuotaExceededFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::InsufficientDBInstanceCapacityFault( + RestoreDBInstanceToPointInTimeErrorKind::InsufficientDbInstanceCapacityFault( _inner, ) => Some(_inner), - RestoreDBInstanceToPointInTimeErrorKind::InvalidDBInstanceStateFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::InvalidDbInstanceStateFault(_inner) => { Some(_inner) } RestoreDBInstanceToPointInTimeErrorKind::InvalidRestoreFault(_inner) => Some(_inner), RestoreDBInstanceToPointInTimeErrorKind::InvalidSubnet(_inner) => Some(_inner), - RestoreDBInstanceToPointInTimeErrorKind::InvalidVPCNetworkStateFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::KMSKeyNotAccessibleFault(_inner) => { + RestoreDBInstanceToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => { Some(_inner) } RestoreDBInstanceToPointInTimeErrorKind::OptionGroupNotFoundFault(_inner) => { @@ -14209,7 +14209,7 @@ impl std::error::Error for RestoreDBInstanceToPointInTimeError { RestoreDBInstanceToPointInTimeErrorKind::PointInTimeRestoreNotEnabledFault(_inner) => { Some(_inner) } - RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAZFault( + RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAzFault( _inner, ) => Some(_inner), RestoreDBInstanceToPointInTimeErrorKind::StorageQuotaExceededFault(_inner) => { @@ -14233,8 +14233,8 @@ pub struct RevokeDBSecurityGroupIngressError { #[derive(std::fmt::Debug)] pub enum RevokeDBSecurityGroupIngressErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -14244,10 +14244,10 @@ impl std::fmt::Display for RevokeDBSecurityGroupIngressError { RevokeDBSecurityGroupIngressErrorKind::AuthorizationNotFoundFault(_inner) => { _inner.fmt(f) } - RevokeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RevokeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_inner) => { _inner.fmt(f) } - RevokeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + RevokeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { _inner.fmt(f) } RevokeDBSecurityGroupIngressErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -14307,13 +14307,13 @@ impl RevokeDBSecurityGroupIngressError { pub fn is_db_security_group_not_found_fault(&self) -> bool { matches!( &self.kind, - RevokeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_) + RevokeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_) ) } pub fn is_invalid_db_security_group_state_fault(&self) -> bool { matches!( &self.kind, - RevokeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_) + RevokeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_) ) } } @@ -14323,10 +14323,10 @@ impl std::error::Error for RevokeDBSecurityGroupIngressError { RevokeDBSecurityGroupIngressErrorKind::AuthorizationNotFoundFault(_inner) => { Some(_inner) } - RevokeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(_inner) => { + RevokeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(_inner) => { Some(_inner) } - RevokeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(_inner) => { + RevokeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(_inner) => { Some(_inner) } RevokeDBSecurityGroupIngressErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -14343,11 +14343,11 @@ pub struct StartActivityStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartActivityStreamErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), ResourceNotFoundFault(crate::error::ResourceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -14355,11 +14355,11 @@ pub enum StartActivityStreamErrorKind { impl std::fmt::Display for StartActivityStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartActivityStreamErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - StartActivityStreamErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - StartActivityStreamErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StartActivityStreamErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), - StartActivityStreamErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + StartActivityStreamErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + StartActivityStreamErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + StartActivityStreamErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StartActivityStreamErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), + StartActivityStreamErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), StartActivityStreamErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f), StartActivityStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -14412,31 +14412,31 @@ impl StartActivityStreamError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - StartActivityStreamErrorKind::DBClusterNotFoundFault(_) + StartActivityStreamErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StartActivityStreamErrorKind::DBInstanceNotFoundFault(_) + StartActivityStreamErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StartActivityStreamErrorKind::InvalidDBClusterStateFault(_) + StartActivityStreamErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StartActivityStreamErrorKind::InvalidDBInstanceStateFault(_) + StartActivityStreamErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - StartActivityStreamErrorKind::KMSKeyNotAccessibleFault(_) + StartActivityStreamErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_resource_not_found_fault(&self) -> bool { @@ -14449,11 +14449,11 @@ impl StartActivityStreamError { impl std::error::Error for StartActivityStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartActivityStreamErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - StartActivityStreamErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - StartActivityStreamErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StartActivityStreamErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), - StartActivityStreamErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + StartActivityStreamErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + StartActivityStreamErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + StartActivityStreamErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StartActivityStreamErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), + StartActivityStreamErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), StartActivityStreamErrorKind::ResourceNotFoundFault(_inner) => Some(_inner), StartActivityStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -14469,18 +14469,18 @@ pub struct StartDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - StartDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StartDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + StartDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + StartDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StartDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), StartDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14532,28 +14532,28 @@ impl StartDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - StartDBClusterErrorKind::DBClusterNotFoundFault(_) + StartDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StartDBClusterErrorKind::InvalidDBClusterStateFault(_) + StartDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StartDBClusterErrorKind::InvalidDBInstanceStateFault(_) + StartDBClusterErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for StartDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - StartDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StartDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + StartDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + StartDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StartDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), StartDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14569,16 +14569,16 @@ pub struct StartDBInstanceError { #[derive(std::fmt::Debug)] pub enum StartDBInstanceErrorKind { AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -14586,16 +14586,16 @@ impl std::fmt::Display for StartDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { StartDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), StartDBInstanceErrorKind::InvalidSubnet(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => _inner.fmt(f), - StartDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f), + StartDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), StartDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14653,43 +14653,43 @@ impl StartDBInstanceError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::DBClusterNotFoundFault(_) + StartDBInstanceErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::DBInstanceNotFoundFault(_) + StartDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_) + StartDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_) ) } pub fn is_db_subnet_group_not_found_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_) + StartDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_) ) } pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_) + StartDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::InvalidDBClusterStateFault(_) + StartDBInstanceErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + StartDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_invalid_subnet(&self) -> bool { @@ -14698,13 +14698,13 @@ impl StartDBInstanceError { pub fn is_invalid_vpc_network_state_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::InvalidVPCNetworkStateFault(_) + StartDBInstanceErrorKind::InvalidVpcNetworkStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceErrorKind::KMSKeyNotAccessibleFault(_) + StartDBInstanceErrorKind::KmsKeyNotAccessibleFault(_) ) } } @@ -14712,16 +14712,16 @@ impl std::error::Error for StartDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { StartDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), - StartDBInstanceErrorKind::DBSubnetGroupNotFoundFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::InsufficientDBInstanceCapacityFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner), + StartDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), StartDBInstanceErrorKind::InvalidSubnet(_inner) => Some(_inner), - StartDBInstanceErrorKind::InvalidVPCNetworkStateFault(_inner) => Some(_inner), - StartDBInstanceErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner), + StartDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), StartDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14736,12 +14736,12 @@ pub struct StartDBInstanceAutomatedBackupsReplicationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartDBInstanceAutomatedBackupsReplicationErrorKind { - DBInstanceAutomatedBackupQuotaExceededFault( - crate::error::DBInstanceAutomatedBackupQuotaExceededFault, + DbInstanceAutomatedBackupQuotaExceededFault( + crate::error::DbInstanceAutomatedBackupQuotaExceededFault, ), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -14749,16 +14749,16 @@ pub enum StartDBInstanceAutomatedBackupsReplicationErrorKind { impl std::fmt::Display for StartDBInstanceAutomatedBackupsReplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_inner) => _inner.fmt(f) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::KMSKeyNotAccessibleFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f) , StartDBInstanceAutomatedBackupsReplicationErrorKind::StorageTypeNotSupportedFault(_inner) => @@ -14818,24 +14818,24 @@ impl StartDBInstanceAutomatedBackupsReplicationError { self.meta.code() } pub fn is_db_instance_automated_backup_quota_exceeded_fault(&self) -> bool { - matches!(&self.kind, StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_)) + matches!(&self.kind, StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_)) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_) + StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(_) + StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - StartDBInstanceAutomatedBackupsReplicationErrorKind::KMSKeyNotAccessibleFault(_) + StartDBInstanceAutomatedBackupsReplicationErrorKind::KmsKeyNotAccessibleFault(_) ) } pub fn is_storage_type_not_supported_fault(&self) -> bool { @@ -14848,16 +14848,16 @@ impl StartDBInstanceAutomatedBackupsReplicationError { impl std::error::Error for StartDBInstanceAutomatedBackupsReplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(_inner) => Some(_inner) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner) , - StartDBInstanceAutomatedBackupsReplicationErrorKind::KMSKeyNotAccessibleFault(_inner) => + StartDBInstanceAutomatedBackupsReplicationErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner) , StartDBInstanceAutomatedBackupsReplicationErrorKind::StorageTypeNotSupportedFault(_inner) => @@ -14879,30 +14879,30 @@ pub struct StartExportTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartExportTaskErrorKind { - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), ExportTaskAlreadyExistsFault(crate::error::ExportTaskAlreadyExistsFault), IamRoleMissingPermissionsFault(crate::error::IamRoleMissingPermissionsFault), IamRoleNotFoundFault(crate::error::IamRoleNotFoundFault), InvalidExportOnlyFault(crate::error::InvalidExportOnlyFault), InvalidExportSourceStateFault(crate::error::InvalidExportSourceStateFault), InvalidS3BucketFault(crate::error::InvalidS3BucketFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartExportTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartExportTaskErrorKind::DBClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f), - StartExportTaskErrorKind::DBSnapshotNotFoundFault(_inner) => _inner.fmt(f), + StartExportTaskErrorKind::DbClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f), + StartExportTaskErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::ExportTaskAlreadyExistsFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::IamRoleMissingPermissionsFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::IamRoleNotFoundFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::InvalidExportOnlyFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::InvalidExportSourceStateFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::InvalidS3BucketFault(_inner) => _inner.fmt(f), - StartExportTaskErrorKind::KMSKeyNotAccessibleFault(_inner) => _inner.fmt(f), + StartExportTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f), StartExportTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14954,13 +14954,13 @@ impl StartExportTaskError { pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - StartExportTaskErrorKind::DBClusterSnapshotNotFoundFault(_) + StartExportTaskErrorKind::DbClusterSnapshotNotFoundFault(_) ) } pub fn is_db_snapshot_not_found_fault(&self) -> bool { matches!( &self.kind, - StartExportTaskErrorKind::DBSnapshotNotFoundFault(_) + StartExportTaskErrorKind::DbSnapshotNotFoundFault(_) ) } pub fn is_export_task_already_exists_fault(&self) -> bool { @@ -15002,22 +15002,22 @@ impl StartExportTaskError { pub fn is_kms_key_not_accessible_fault(&self) -> bool { matches!( &self.kind, - StartExportTaskErrorKind::KMSKeyNotAccessibleFault(_) + StartExportTaskErrorKind::KmsKeyNotAccessibleFault(_) ) } } impl std::error::Error for StartExportTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartExportTaskErrorKind::DBClusterSnapshotNotFoundFault(_inner) => Some(_inner), - StartExportTaskErrorKind::DBSnapshotNotFoundFault(_inner) => Some(_inner), + StartExportTaskErrorKind::DbClusterSnapshotNotFoundFault(_inner) => Some(_inner), + StartExportTaskErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner), StartExportTaskErrorKind::ExportTaskAlreadyExistsFault(_inner) => Some(_inner), StartExportTaskErrorKind::IamRoleMissingPermissionsFault(_inner) => Some(_inner), StartExportTaskErrorKind::IamRoleNotFoundFault(_inner) => Some(_inner), StartExportTaskErrorKind::InvalidExportOnlyFault(_inner) => Some(_inner), StartExportTaskErrorKind::InvalidExportSourceStateFault(_inner) => Some(_inner), StartExportTaskErrorKind::InvalidS3BucketFault(_inner) => Some(_inner), - StartExportTaskErrorKind::KMSKeyNotAccessibleFault(_inner) => Some(_inner), + StartExportTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner), StartExportTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15032,10 +15032,10 @@ pub struct StopActivityStreamError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopActivityStreamErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), ResourceNotFoundFault(crate::error::ResourceNotFoundFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -15043,10 +15043,10 @@ pub enum StopActivityStreamErrorKind { impl std::fmt::Display for StopActivityStreamError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopActivityStreamErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - StopActivityStreamErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - StopActivityStreamErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StopActivityStreamErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + StopActivityStreamErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + StopActivityStreamErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + StopActivityStreamErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StopActivityStreamErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), StopActivityStreamErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f), StopActivityStreamErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -15099,25 +15099,25 @@ impl StopActivityStreamError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - StopActivityStreamErrorKind::DBClusterNotFoundFault(_) + StopActivityStreamErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StopActivityStreamErrorKind::DBInstanceNotFoundFault(_) + StopActivityStreamErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StopActivityStreamErrorKind::InvalidDBClusterStateFault(_) + StopActivityStreamErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StopActivityStreamErrorKind::InvalidDBInstanceStateFault(_) + StopActivityStreamErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_resource_not_found_fault(&self) -> bool { @@ -15130,10 +15130,10 @@ impl StopActivityStreamError { impl std::error::Error for StopActivityStreamError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopActivityStreamErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - StopActivityStreamErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - StopActivityStreamErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StopActivityStreamErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + StopActivityStreamErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + StopActivityStreamErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + StopActivityStreamErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StopActivityStreamErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), StopActivityStreamErrorKind::ResourceNotFoundFault(_inner) => Some(_inner), StopActivityStreamErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -15149,18 +15149,18 @@ pub struct StopDBClusterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopDBClusterErrorKind { - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopDBClusterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopDBClusterErrorKind::DBClusterNotFoundFault(_inner) => _inner.fmt(f), - StopDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StopDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + StopDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f), + StopDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StopDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), StopDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -15212,28 +15212,28 @@ impl StopDBClusterError { pub fn is_db_cluster_not_found_fault(&self) -> bool { matches!( &self.kind, - StopDBClusterErrorKind::DBClusterNotFoundFault(_) + StopDBClusterErrorKind::DbClusterNotFoundFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StopDBClusterErrorKind::InvalidDBClusterStateFault(_) + StopDBClusterErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StopDBClusterErrorKind::InvalidDBInstanceStateFault(_) + StopDBClusterErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for StopDBClusterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopDBClusterErrorKind::DBClusterNotFoundFault(_inner) => Some(_inner), - StopDBClusterErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StopDBClusterErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + StopDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner), + StopDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StopDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), StopDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -15248,10 +15248,10 @@ pub struct StopDBInstanceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopDBInstanceErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBSnapshotAlreadyExistsFault(crate::error::DBSnapshotAlreadyExistsFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -15259,10 +15259,10 @@ pub enum StopDBInstanceErrorKind { impl std::fmt::Display for StopDBInstanceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => _inner.fmt(f), - StopDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), - StopDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => _inner.fmt(f), - StopDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => _inner.fmt(f), + StopDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f), + StopDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f), + StopDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f), + StopDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f), StopDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f), StopDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -15315,25 +15315,25 @@ impl StopDBInstanceError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceErrorKind::DBInstanceNotFoundFault(_) + StopDBInstanceErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_db_snapshot_already_exists_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_) + StopDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_) ) } pub fn is_invalid_db_cluster_state_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceErrorKind::InvalidDBClusterStateFault(_) + StopDBInstanceErrorKind::InvalidDbClusterStateFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceErrorKind::InvalidDBInstanceStateFault(_) + StopDBInstanceErrorKind::InvalidDbInstanceStateFault(_) ) } pub fn is_snapshot_quota_exceeded_fault(&self) -> bool { @@ -15346,10 +15346,10 @@ impl StopDBInstanceError { impl std::error::Error for StopDBInstanceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopDBInstanceErrorKind::DBInstanceNotFoundFault(_inner) => Some(_inner), - StopDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(_inner) => Some(_inner), - StopDBInstanceErrorKind::InvalidDBClusterStateFault(_inner) => Some(_inner), - StopDBInstanceErrorKind::InvalidDBInstanceStateFault(_inner) => Some(_inner), + StopDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner), + StopDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => Some(_inner), + StopDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner), + StopDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner), StopDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner), StopDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -15365,18 +15365,18 @@ pub struct StopDBInstanceAutomatedBackupsReplicationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopDBInstanceAutomatedBackupsReplicationErrorKind { - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopDBInstanceAutomatedBackupsReplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_inner) => { + StopDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_inner) => { _inner.fmt(f) } - StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault( + StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault( _inner, ) => _inner.fmt(f), StopDBInstanceAutomatedBackupsReplicationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -15433,23 +15433,23 @@ impl StopDBInstanceAutomatedBackupsReplicationError { pub fn is_db_instance_not_found_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_) + StopDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_) ) } pub fn is_invalid_db_instance_state_fault(&self) -> bool { matches!( &self.kind, - StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(_) + StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(_) ) } } impl std::error::Error for StopDBInstanceAutomatedBackupsReplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(_inner) => { + StopDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(_inner) => { Some(_inner) } - StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault( + StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault( _inner, ) => Some(_inner), StopDBInstanceAutomatedBackupsReplicationErrorKind::Unhandled(_inner) => { @@ -15462,34 +15462,37 @@ impl std::error::Error for StopDBInstanceAutomatedBackupsReplicationError { ///

    The DB instance isn't in a valid state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBInstanceStateFault { +pub struct InvalidDbInstanceStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBInstanceStateFault { +impl std::fmt::Debug for InvalidDbInstanceStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBInstanceStateFault"); + let mut formatter = f.debug_struct("InvalidDbInstanceStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBInstanceStateFault { +impl InvalidDbInstanceStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBInstanceStateFault { +impl std::fmt::Display for InvalidDbInstanceStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBInstanceStateFault")?; + write!( + f, + "InvalidDbInstanceStateFault [InvalidDBInstanceStateFault]" + )?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for InvalidDBInstanceStateFault {} -/// See [`InvalidDBInstanceStateFault`](crate::error::InvalidDBInstanceStateFault) +impl std::error::Error for InvalidDbInstanceStateFault {} +/// See [`InvalidDbInstanceStateFault`](crate::error::InvalidDbInstanceStateFault) pub mod invalid_db_instance_state_fault { - /// A builder for [`InvalidDBInstanceStateFault`](crate::error::InvalidDBInstanceStateFault) + /// A builder for [`InvalidDbInstanceStateFault`](crate::error::InvalidDbInstanceStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15504,16 +15507,16 @@ pub mod invalid_db_instance_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBInstanceStateFault`](crate::error::InvalidDBInstanceStateFault) - pub fn build(self) -> crate::error::InvalidDBInstanceStateFault { - crate::error::InvalidDBInstanceStateFault { + /// Consumes the builder and constructs a [`InvalidDbInstanceStateFault`](crate::error::InvalidDbInstanceStateFault) + pub fn build(self) -> crate::error::InvalidDbInstanceStateFault { + crate::error::InvalidDbInstanceStateFault { message: self.message, } } } } -impl InvalidDBInstanceStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBInstanceStateFault`](crate::error::InvalidDBInstanceStateFault) +impl InvalidDbInstanceStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbInstanceStateFault`](crate::error::InvalidDbInstanceStateFault) pub fn builder() -> crate::error::invalid_db_instance_state_fault::Builder { crate::error::invalid_db_instance_state_fault::Builder::default() } @@ -15524,34 +15527,34 @@ impl InvalidDBInstanceStateFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceNotFoundFault { +pub struct DbInstanceNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceNotFoundFault { +impl std::fmt::Debug for DbInstanceNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceNotFoundFault"); + let mut formatter = f.debug_struct("DbInstanceNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceNotFoundFault { +impl DbInstanceNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceNotFoundFault { +impl std::fmt::Display for DbInstanceNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceNotFoundFault")?; + write!(f, "DbInstanceNotFoundFault [DBInstanceNotFoundFault]")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for DBInstanceNotFoundFault {} -/// See [`DBInstanceNotFoundFault`](crate::error::DBInstanceNotFoundFault) +impl std::error::Error for DbInstanceNotFoundFault {} +/// See [`DbInstanceNotFoundFault`](crate::error::DbInstanceNotFoundFault) pub mod db_instance_not_found_fault { - /// A builder for [`DBInstanceNotFoundFault`](crate::error::DBInstanceNotFoundFault) + /// A builder for [`DbInstanceNotFoundFault`](crate::error::DbInstanceNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15566,16 +15569,16 @@ pub mod db_instance_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceNotFoundFault`](crate::error::DBInstanceNotFoundFault) - pub fn build(self) -> crate::error::DBInstanceNotFoundFault { - crate::error::DBInstanceNotFoundFault { + /// Consumes the builder and constructs a [`DbInstanceNotFoundFault`](crate::error::DbInstanceNotFoundFault) + pub fn build(self) -> crate::error::DbInstanceNotFoundFault { + crate::error::DbInstanceNotFoundFault { message: self.message, } } } } -impl DBInstanceNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBInstanceNotFoundFault`](crate::error::DBInstanceNotFoundFault) +impl DbInstanceNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbInstanceNotFoundFault`](crate::error::DbInstanceNotFoundFault) pub fn builder() -> crate::error::db_instance_not_found_fault::Builder { crate::error::db_instance_not_found_fault::Builder::default() } @@ -15645,34 +15648,34 @@ impl SnapshotQuotaExceededFault { ///

    The requested operation can't be performed while the cluster is in this state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBClusterStateFault { +pub struct InvalidDbClusterStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBClusterStateFault { +impl std::fmt::Debug for InvalidDbClusterStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBClusterStateFault"); + let mut formatter = f.debug_struct("InvalidDbClusterStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBClusterStateFault { +impl InvalidDbClusterStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBClusterStateFault { +impl std::fmt::Display for InvalidDbClusterStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBClusterStateFault")?; + write!(f, "InvalidDbClusterStateFault [InvalidDBClusterStateFault]")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidDBClusterStateFault {} -/// See [`InvalidDBClusterStateFault`](crate::error::InvalidDBClusterStateFault) +impl std::error::Error for InvalidDbClusterStateFault {} +/// See [`InvalidDbClusterStateFault`](crate::error::InvalidDbClusterStateFault) pub mod invalid_db_cluster_state_fault { - /// A builder for [`InvalidDBClusterStateFault`](crate::error::InvalidDBClusterStateFault) + /// A builder for [`InvalidDbClusterStateFault`](crate::error::InvalidDbClusterStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15687,16 +15690,16 @@ pub mod invalid_db_cluster_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBClusterStateFault`](crate::error::InvalidDBClusterStateFault) - pub fn build(self) -> crate::error::InvalidDBClusterStateFault { - crate::error::InvalidDBClusterStateFault { + /// Consumes the builder and constructs a [`InvalidDbClusterStateFault`](crate::error::InvalidDbClusterStateFault) + pub fn build(self) -> crate::error::InvalidDbClusterStateFault { + crate::error::InvalidDbClusterStateFault { message: self.message, } } } } -impl InvalidDBClusterStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBClusterStateFault`](crate::error::InvalidDBClusterStateFault) +impl InvalidDbClusterStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbClusterStateFault`](crate::error::InvalidDbClusterStateFault) pub fn builder() -> crate::error::invalid_db_cluster_state_fault::Builder { crate::error::invalid_db_cluster_state_fault::Builder::default() } @@ -15707,34 +15710,37 @@ impl InvalidDBClusterStateFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSnapshotAlreadyExistsFault { +pub struct DbSnapshotAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSnapshotAlreadyExistsFault { +impl std::fmt::Debug for DbSnapshotAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSnapshotAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbSnapshotAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSnapshotAlreadyExistsFault { +impl DbSnapshotAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSnapshotAlreadyExistsFault { +impl std::fmt::Display for DbSnapshotAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSnapshotAlreadyExistsFault")?; + write!( + f, + "DbSnapshotAlreadyExistsFault [DBSnapshotAlreadyExistsFault]" + )?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for DBSnapshotAlreadyExistsFault {} -/// See [`DBSnapshotAlreadyExistsFault`](crate::error::DBSnapshotAlreadyExistsFault) +impl std::error::Error for DbSnapshotAlreadyExistsFault {} +/// See [`DbSnapshotAlreadyExistsFault`](crate::error::DbSnapshotAlreadyExistsFault) pub mod db_snapshot_already_exists_fault { - /// A builder for [`DBSnapshotAlreadyExistsFault`](crate::error::DBSnapshotAlreadyExistsFault) + /// A builder for [`DbSnapshotAlreadyExistsFault`](crate::error::DbSnapshotAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15749,16 +15755,16 @@ pub mod db_snapshot_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSnapshotAlreadyExistsFault`](crate::error::DBSnapshotAlreadyExistsFault) - pub fn build(self) -> crate::error::DBSnapshotAlreadyExistsFault { - crate::error::DBSnapshotAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbSnapshotAlreadyExistsFault`](crate::error::DbSnapshotAlreadyExistsFault) + pub fn build(self) -> crate::error::DbSnapshotAlreadyExistsFault { + crate::error::DbSnapshotAlreadyExistsFault { message: self.message, } } } } -impl DBSnapshotAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBSnapshotAlreadyExistsFault`](crate::error::DBSnapshotAlreadyExistsFault) +impl DbSnapshotAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbSnapshotAlreadyExistsFault`](crate::error::DbSnapshotAlreadyExistsFault) pub fn builder() -> crate::error::db_snapshot_already_exists_fault::Builder { crate::error::db_snapshot_already_exists_fault::Builder::default() } @@ -15769,34 +15775,34 @@ impl DBSnapshotAlreadyExistsFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterNotFoundFault { +pub struct DbClusterNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterNotFoundFault { +impl std::fmt::Debug for DbClusterNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterNotFoundFault { +impl DbClusterNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterNotFoundFault { +impl std::fmt::Display for DbClusterNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterNotFoundFault")?; + write!(f, "DbClusterNotFoundFault [DBClusterNotFoundFault]")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for DBClusterNotFoundFault {} -/// See [`DBClusterNotFoundFault`](crate::error::DBClusterNotFoundFault) +impl std::error::Error for DbClusterNotFoundFault {} +/// See [`DbClusterNotFoundFault`](crate::error::DbClusterNotFoundFault) pub mod db_cluster_not_found_fault { - /// A builder for [`DBClusterNotFoundFault`](crate::error::DBClusterNotFoundFault) + /// A builder for [`DbClusterNotFoundFault`](crate::error::DbClusterNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15811,16 +15817,16 @@ pub mod db_cluster_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterNotFoundFault`](crate::error::DBClusterNotFoundFault) - pub fn build(self) -> crate::error::DBClusterNotFoundFault { - crate::error::DBClusterNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterNotFoundFault`](crate::error::DbClusterNotFoundFault) + pub fn build(self) -> crate::error::DbClusterNotFoundFault { + crate::error::DbClusterNotFoundFault { message: self.message, } } } } -impl DBClusterNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterNotFoundFault`](crate::error::DBClusterNotFoundFault) +impl DbClusterNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterNotFoundFault`](crate::error::DbClusterNotFoundFault) pub fn builder() -> crate::error::db_cluster_not_found_fault::Builder { crate::error::db_cluster_not_found_fault::Builder::default() } @@ -15889,34 +15895,34 @@ impl ResourceNotFoundFault { ///

    An error occurred accessing an AWS KMS key.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSKeyNotAccessibleFault { +pub struct KmsKeyNotAccessibleFault { pub message: std::option::Option, } -impl std::fmt::Debug for KMSKeyNotAccessibleFault { +impl std::fmt::Debug for KmsKeyNotAccessibleFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSKeyNotAccessibleFault"); + let mut formatter = f.debug_struct("KmsKeyNotAccessibleFault"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSKeyNotAccessibleFault { +impl KmsKeyNotAccessibleFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSKeyNotAccessibleFault { +impl std::fmt::Display for KmsKeyNotAccessibleFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSKeyNotAccessibleFault")?; + write!(f, "KmsKeyNotAccessibleFault [KMSKeyNotAccessibleFault]")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for KMSKeyNotAccessibleFault {} -/// See [`KMSKeyNotAccessibleFault`](crate::error::KMSKeyNotAccessibleFault) +impl std::error::Error for KmsKeyNotAccessibleFault {} +/// See [`KmsKeyNotAccessibleFault`](crate::error::KmsKeyNotAccessibleFault) pub mod kms_key_not_accessible_fault { - /// A builder for [`KMSKeyNotAccessibleFault`](crate::error::KMSKeyNotAccessibleFault) + /// A builder for [`KmsKeyNotAccessibleFault`](crate::error::KmsKeyNotAccessibleFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15931,16 +15937,16 @@ pub mod kms_key_not_accessible_fault { self.message = input; self } - /// Consumes the builder and constructs a [`KMSKeyNotAccessibleFault`](crate::error::KMSKeyNotAccessibleFault) - pub fn build(self) -> crate::error::KMSKeyNotAccessibleFault { - crate::error::KMSKeyNotAccessibleFault { + /// Consumes the builder and constructs a [`KmsKeyNotAccessibleFault`](crate::error::KmsKeyNotAccessibleFault) + pub fn build(self) -> crate::error::KmsKeyNotAccessibleFault { + crate::error::KmsKeyNotAccessibleFault { message: self.message, } } } } -impl KMSKeyNotAccessibleFault { - /// Creates a new builder-style object to manufacture [`KMSKeyNotAccessibleFault`](crate::error::KMSKeyNotAccessibleFault) +impl KmsKeyNotAccessibleFault { + /// Creates a new builder-style object to manufacture [`KmsKeyNotAccessibleFault`](crate::error::KmsKeyNotAccessibleFault) pub fn builder() -> crate::error::kms_key_not_accessible_fault::Builder { crate::error::kms_key_not_accessible_fault::Builder::default() } @@ -16312,34 +16318,34 @@ impl ExportTaskAlreadyExistsFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSnapshotNotFoundFault { +pub struct DbSnapshotNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSnapshotNotFoundFault { +impl std::fmt::Debug for DbSnapshotNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSnapshotNotFoundFault"); + let mut formatter = f.debug_struct("DbSnapshotNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSnapshotNotFoundFault { +impl DbSnapshotNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSnapshotNotFoundFault { +impl std::fmt::Display for DbSnapshotNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSnapshotNotFoundFault")?; + write!(f, "DbSnapshotNotFoundFault [DBSnapshotNotFoundFault]")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for DBSnapshotNotFoundFault {} -/// See [`DBSnapshotNotFoundFault`](crate::error::DBSnapshotNotFoundFault) +impl std::error::Error for DbSnapshotNotFoundFault {} +/// See [`DbSnapshotNotFoundFault`](crate::error::DbSnapshotNotFoundFault) pub mod db_snapshot_not_found_fault { - /// A builder for [`DBSnapshotNotFoundFault`](crate::error::DBSnapshotNotFoundFault) + /// A builder for [`DbSnapshotNotFoundFault`](crate::error::DbSnapshotNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16354,16 +16360,16 @@ pub mod db_snapshot_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSnapshotNotFoundFault`](crate::error::DBSnapshotNotFoundFault) - pub fn build(self) -> crate::error::DBSnapshotNotFoundFault { - crate::error::DBSnapshotNotFoundFault { + /// Consumes the builder and constructs a [`DbSnapshotNotFoundFault`](crate::error::DbSnapshotNotFoundFault) + pub fn build(self) -> crate::error::DbSnapshotNotFoundFault { + crate::error::DbSnapshotNotFoundFault { message: self.message, } } } } -impl DBSnapshotNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBSnapshotNotFoundFault`](crate::error::DBSnapshotNotFoundFault) +impl DbSnapshotNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbSnapshotNotFoundFault`](crate::error::DbSnapshotNotFoundFault) pub fn builder() -> crate::error::db_snapshot_not_found_fault::Builder { crate::error::db_snapshot_not_found_fault::Builder::default() } @@ -16374,34 +16380,37 @@ impl DBSnapshotNotFoundFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterSnapshotNotFoundFault { +pub struct DbClusterSnapshotNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterSnapshotNotFoundFault { +impl std::fmt::Debug for DbClusterSnapshotNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterSnapshotNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterSnapshotNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterSnapshotNotFoundFault { +impl DbClusterSnapshotNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterSnapshotNotFoundFault { +impl std::fmt::Display for DbClusterSnapshotNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterSnapshotNotFoundFault")?; + write!( + f, + "DbClusterSnapshotNotFoundFault [DBClusterSnapshotNotFoundFault]" + )?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for DBClusterSnapshotNotFoundFault {} -/// See [`DBClusterSnapshotNotFoundFault`](crate::error::DBClusterSnapshotNotFoundFault) +impl std::error::Error for DbClusterSnapshotNotFoundFault {} +/// See [`DbClusterSnapshotNotFoundFault`](crate::error::DbClusterSnapshotNotFoundFault) pub mod db_cluster_snapshot_not_found_fault { - /// A builder for [`DBClusterSnapshotNotFoundFault`](crate::error::DBClusterSnapshotNotFoundFault) + /// A builder for [`DbClusterSnapshotNotFoundFault`](crate::error::DbClusterSnapshotNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16416,16 +16425,16 @@ pub mod db_cluster_snapshot_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterSnapshotNotFoundFault`](crate::error::DBClusterSnapshotNotFoundFault) - pub fn build(self) -> crate::error::DBClusterSnapshotNotFoundFault { - crate::error::DBClusterSnapshotNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterSnapshotNotFoundFault`](crate::error::DbClusterSnapshotNotFoundFault) + pub fn build(self) -> crate::error::DbClusterSnapshotNotFoundFault { + crate::error::DbClusterSnapshotNotFoundFault { message: self.message, } } } } -impl DBClusterSnapshotNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterSnapshotNotFoundFault`](crate::error::DBClusterSnapshotNotFoundFault) +impl DbClusterSnapshotNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterSnapshotNotFoundFault`](crate::error::DbClusterSnapshotNotFoundFault) pub fn builder() -> crate::error::db_cluster_snapshot_not_found_fault::Builder { crate::error::db_cluster_snapshot_not_found_fault::Builder::default() } @@ -16497,34 +16506,34 @@ impl StorageTypeNotSupportedFault { /// quota is the same as your DB Instance quota.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceAutomatedBackupQuotaExceededFault { +pub struct DbInstanceAutomatedBackupQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceAutomatedBackupQuotaExceededFault { +impl std::fmt::Debug for DbInstanceAutomatedBackupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceAutomatedBackupQuotaExceededFault"); + let mut formatter = f.debug_struct("DbInstanceAutomatedBackupQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceAutomatedBackupQuotaExceededFault { +impl DbInstanceAutomatedBackupQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceAutomatedBackupQuotaExceededFault { +impl std::fmt::Display for DbInstanceAutomatedBackupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceAutomatedBackupQuotaExceededFault")?; + write!(f, "DbInstanceAutomatedBackupQuotaExceededFault [DBInstanceAutomatedBackupQuotaExceededFault]")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for DBInstanceAutomatedBackupQuotaExceededFault {} -/// See [`DBInstanceAutomatedBackupQuotaExceededFault`](crate::error::DBInstanceAutomatedBackupQuotaExceededFault) +impl std::error::Error for DbInstanceAutomatedBackupQuotaExceededFault {} +/// See [`DbInstanceAutomatedBackupQuotaExceededFault`](crate::error::DbInstanceAutomatedBackupQuotaExceededFault) pub mod db_instance_automated_backup_quota_exceeded_fault { - /// A builder for [`DBInstanceAutomatedBackupQuotaExceededFault`](crate::error::DBInstanceAutomatedBackupQuotaExceededFault) + /// A builder for [`DbInstanceAutomatedBackupQuotaExceededFault`](crate::error::DbInstanceAutomatedBackupQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16539,16 +16548,16 @@ pub mod db_instance_automated_backup_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceAutomatedBackupQuotaExceededFault`](crate::error::DBInstanceAutomatedBackupQuotaExceededFault) - pub fn build(self) -> crate::error::DBInstanceAutomatedBackupQuotaExceededFault { - crate::error::DBInstanceAutomatedBackupQuotaExceededFault { + /// Consumes the builder and constructs a [`DbInstanceAutomatedBackupQuotaExceededFault`](crate::error::DbInstanceAutomatedBackupQuotaExceededFault) + pub fn build(self) -> crate::error::DbInstanceAutomatedBackupQuotaExceededFault { + crate::error::DbInstanceAutomatedBackupQuotaExceededFault { message: self.message, } } } } -impl DBInstanceAutomatedBackupQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBInstanceAutomatedBackupQuotaExceededFault`](crate::error::DBInstanceAutomatedBackupQuotaExceededFault) +impl DbInstanceAutomatedBackupQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbInstanceAutomatedBackupQuotaExceededFault`](crate::error::DbInstanceAutomatedBackupQuotaExceededFault) pub fn builder() -> crate::error::db_instance_automated_backup_quota_exceeded_fault::Builder { crate::error::db_instance_automated_backup_quota_exceeded_fault::Builder::default() } @@ -16558,34 +16567,37 @@ impl DBInstanceAutomatedBackupQuotaExceededFault { /// created because of users' change.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidVPCNetworkStateFault { +pub struct InvalidVpcNetworkStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidVPCNetworkStateFault { +impl std::fmt::Debug for InvalidVpcNetworkStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidVPCNetworkStateFault"); + let mut formatter = f.debug_struct("InvalidVpcNetworkStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidVPCNetworkStateFault { +impl InvalidVpcNetworkStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidVPCNetworkStateFault { +impl std::fmt::Display for InvalidVpcNetworkStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidVPCNetworkStateFault")?; + write!( + f, + "InvalidVpcNetworkStateFault [InvalidVPCNetworkStateFault]" + )?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for InvalidVPCNetworkStateFault {} -/// See [`InvalidVPCNetworkStateFault`](crate::error::InvalidVPCNetworkStateFault) +impl std::error::Error for InvalidVpcNetworkStateFault {} +/// See [`InvalidVpcNetworkStateFault`](crate::error::InvalidVpcNetworkStateFault) pub mod invalid_vpc_network_state_fault { - /// A builder for [`InvalidVPCNetworkStateFault`](crate::error::InvalidVPCNetworkStateFault) + /// A builder for [`InvalidVpcNetworkStateFault`](crate::error::InvalidVpcNetworkStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16600,16 +16612,16 @@ pub mod invalid_vpc_network_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidVPCNetworkStateFault`](crate::error::InvalidVPCNetworkStateFault) - pub fn build(self) -> crate::error::InvalidVPCNetworkStateFault { - crate::error::InvalidVPCNetworkStateFault { + /// Consumes the builder and constructs a [`InvalidVpcNetworkStateFault`](crate::error::InvalidVpcNetworkStateFault) + pub fn build(self) -> crate::error::InvalidVpcNetworkStateFault { + crate::error::InvalidVpcNetworkStateFault { message: self.message, } } } } -impl InvalidVPCNetworkStateFault { - /// Creates a new builder-style object to manufacture [`InvalidVPCNetworkStateFault`](crate::error::InvalidVPCNetworkStateFault) +impl InvalidVpcNetworkStateFault { + /// Creates a new builder-style object to manufacture [`InvalidVpcNetworkStateFault`](crate::error::InvalidVpcNetworkStateFault) pub fn builder() -> crate::error::invalid_vpc_network_state_fault::Builder { crate::error::invalid_vpc_network_state_fault::Builder::default() } @@ -16679,34 +16691,37 @@ impl InvalidSubnet { /// Zone.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InsufficientDBInstanceCapacityFault { +pub struct InsufficientDbInstanceCapacityFault { pub message: std::option::Option, } -impl std::fmt::Debug for InsufficientDBInstanceCapacityFault { +impl std::fmt::Debug for InsufficientDbInstanceCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InsufficientDBInstanceCapacityFault"); + let mut formatter = f.debug_struct("InsufficientDbInstanceCapacityFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InsufficientDBInstanceCapacityFault { +impl InsufficientDbInstanceCapacityFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InsufficientDBInstanceCapacityFault { +impl std::fmt::Display for InsufficientDbInstanceCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InsufficientDBInstanceCapacityFault")?; + write!( + f, + "InsufficientDbInstanceCapacityFault [InsufficientDBInstanceCapacityFault]" + )?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for InsufficientDBInstanceCapacityFault {} -/// See [`InsufficientDBInstanceCapacityFault`](crate::error::InsufficientDBInstanceCapacityFault) +impl std::error::Error for InsufficientDbInstanceCapacityFault {} +/// See [`InsufficientDbInstanceCapacityFault`](crate::error::InsufficientDbInstanceCapacityFault) pub mod insufficient_db_instance_capacity_fault { - /// A builder for [`InsufficientDBInstanceCapacityFault`](crate::error::InsufficientDBInstanceCapacityFault) + /// A builder for [`InsufficientDbInstanceCapacityFault`](crate::error::InsufficientDbInstanceCapacityFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16721,16 +16736,16 @@ pub mod insufficient_db_instance_capacity_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InsufficientDBInstanceCapacityFault`](crate::error::InsufficientDBInstanceCapacityFault) - pub fn build(self) -> crate::error::InsufficientDBInstanceCapacityFault { - crate::error::InsufficientDBInstanceCapacityFault { + /// Consumes the builder and constructs a [`InsufficientDbInstanceCapacityFault`](crate::error::InsufficientDbInstanceCapacityFault) + pub fn build(self) -> crate::error::InsufficientDbInstanceCapacityFault { + crate::error::InsufficientDbInstanceCapacityFault { message: self.message, } } } } -impl InsufficientDBInstanceCapacityFault { - /// Creates a new builder-style object to manufacture [`InsufficientDBInstanceCapacityFault`](crate::error::InsufficientDBInstanceCapacityFault) +impl InsufficientDbInstanceCapacityFault { + /// Creates a new builder-style object to manufacture [`InsufficientDbInstanceCapacityFault`](crate::error::InsufficientDbInstanceCapacityFault) pub fn builder() -> crate::error::insufficient_db_instance_capacity_fault::Builder { crate::error::insufficient_db_instance_capacity_fault::Builder::default() } @@ -16741,34 +16756,34 @@ impl InsufficientDBInstanceCapacityFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetGroupNotFoundFault { +pub struct DbSubnetGroupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetGroupNotFoundFault { +impl std::fmt::Debug for DbSubnetGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetGroupNotFoundFault"); + let mut formatter = f.debug_struct("DbSubnetGroupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetGroupNotFoundFault { +impl DbSubnetGroupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetGroupNotFoundFault { +impl std::fmt::Display for DbSubnetGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetGroupNotFoundFault")?; + write!(f, "DbSubnetGroupNotFoundFault [DBSubnetGroupNotFoundFault]")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for DBSubnetGroupNotFoundFault {} -/// See [`DBSubnetGroupNotFoundFault`](crate::error::DBSubnetGroupNotFoundFault) +impl std::error::Error for DbSubnetGroupNotFoundFault {} +/// See [`DbSubnetGroupNotFoundFault`](crate::error::DbSubnetGroupNotFoundFault) pub mod db_subnet_group_not_found_fault { - /// A builder for [`DBSubnetGroupNotFoundFault`](crate::error::DBSubnetGroupNotFoundFault) + /// A builder for [`DbSubnetGroupNotFoundFault`](crate::error::DbSubnetGroupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16783,16 +16798,16 @@ pub mod db_subnet_group_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetGroupNotFoundFault`](crate::error::DBSubnetGroupNotFoundFault) - pub fn build(self) -> crate::error::DBSubnetGroupNotFoundFault { - crate::error::DBSubnetGroupNotFoundFault { + /// Consumes the builder and constructs a [`DbSubnetGroupNotFoundFault`](crate::error::DbSubnetGroupNotFoundFault) + pub fn build(self) -> crate::error::DbSubnetGroupNotFoundFault { + crate::error::DbSubnetGroupNotFoundFault { message: self.message, } } } } -impl DBSubnetGroupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBSubnetGroupNotFoundFault`](crate::error::DBSubnetGroupNotFoundFault) +impl DbSubnetGroupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbSubnetGroupNotFoundFault`](crate::error::DbSubnetGroupNotFoundFault) pub fn builder() -> crate::error::db_subnet_group_not_found_fault::Builder { crate::error::db_subnet_group_not_found_fault::Builder::default() } @@ -16801,34 +16816,37 @@ impl DBSubnetGroupNotFoundFault { ///

    Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetGroupDoesNotCoverEnoughAZs { +pub struct DbSubnetGroupDoesNotCoverEnoughAZs { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetGroupDoesNotCoverEnoughAZs { +impl std::fmt::Debug for DbSubnetGroupDoesNotCoverEnoughAZs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetGroupDoesNotCoverEnoughAZs"); + let mut formatter = f.debug_struct("DbSubnetGroupDoesNotCoverEnoughAZs"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetGroupDoesNotCoverEnoughAZs { +impl DbSubnetGroupDoesNotCoverEnoughAZs { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetGroupDoesNotCoverEnoughAZs { +impl std::fmt::Display for DbSubnetGroupDoesNotCoverEnoughAZs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetGroupDoesNotCoverEnoughAZs")?; + write!( + f, + "DbSubnetGroupDoesNotCoverEnoughAZs [DBSubnetGroupDoesNotCoverEnoughAZs]" + )?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for DBSubnetGroupDoesNotCoverEnoughAZs {} -/// See [`DBSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DBSubnetGroupDoesNotCoverEnoughAZs) +impl std::error::Error for DbSubnetGroupDoesNotCoverEnoughAZs {} +/// See [`DbSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DbSubnetGroupDoesNotCoverEnoughAZs) pub mod db_subnet_group_does_not_cover_enough_a_zs { - /// A builder for [`DBSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DBSubnetGroupDoesNotCoverEnoughAZs) + /// A builder for [`DbSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DbSubnetGroupDoesNotCoverEnoughAZs) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16843,16 +16861,16 @@ pub mod db_subnet_group_does_not_cover_enough_a_zs { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DBSubnetGroupDoesNotCoverEnoughAZs) - pub fn build(self) -> crate::error::DBSubnetGroupDoesNotCoverEnoughAZs { - crate::error::DBSubnetGroupDoesNotCoverEnoughAZs { + /// Consumes the builder and constructs a [`DbSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DbSubnetGroupDoesNotCoverEnoughAZs) + pub fn build(self) -> crate::error::DbSubnetGroupDoesNotCoverEnoughAZs { + crate::error::DbSubnetGroupDoesNotCoverEnoughAZs { message: self.message, } } } } -impl DBSubnetGroupDoesNotCoverEnoughAZs { - /// Creates a new builder-style object to manufacture [`DBSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DBSubnetGroupDoesNotCoverEnoughAZs) +impl DbSubnetGroupDoesNotCoverEnoughAZs { + /// Creates a new builder-style object to manufacture [`DbSubnetGroupDoesNotCoverEnoughAZs`](crate::error::DbSubnetGroupDoesNotCoverEnoughAZs) pub fn builder() -> crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder { crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default() } @@ -16924,34 +16942,37 @@ impl AuthorizationNotFoundFault { ///

    The state of the DB security group doesn't allow deletion.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBSecurityGroupStateFault { +pub struct InvalidDbSecurityGroupStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBSecurityGroupStateFault { +impl std::fmt::Debug for InvalidDbSecurityGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBSecurityGroupStateFault"); + let mut formatter = f.debug_struct("InvalidDbSecurityGroupStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBSecurityGroupStateFault { +impl InvalidDbSecurityGroupStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBSecurityGroupStateFault { +impl std::fmt::Display for InvalidDbSecurityGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBSecurityGroupStateFault")?; + write!( + f, + "InvalidDbSecurityGroupStateFault [InvalidDBSecurityGroupStateFault]" + )?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for InvalidDBSecurityGroupStateFault {} -/// See [`InvalidDBSecurityGroupStateFault`](crate::error::InvalidDBSecurityGroupStateFault) +impl std::error::Error for InvalidDbSecurityGroupStateFault {} +/// See [`InvalidDbSecurityGroupStateFault`](crate::error::InvalidDbSecurityGroupStateFault) pub mod invalid_db_security_group_state_fault { - /// A builder for [`InvalidDBSecurityGroupStateFault`](crate::error::InvalidDBSecurityGroupStateFault) + /// A builder for [`InvalidDbSecurityGroupStateFault`](crate::error::InvalidDbSecurityGroupStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16966,16 +16987,16 @@ pub mod invalid_db_security_group_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBSecurityGroupStateFault`](crate::error::InvalidDBSecurityGroupStateFault) - pub fn build(self) -> crate::error::InvalidDBSecurityGroupStateFault { - crate::error::InvalidDBSecurityGroupStateFault { + /// Consumes the builder and constructs a [`InvalidDbSecurityGroupStateFault`](crate::error::InvalidDbSecurityGroupStateFault) + pub fn build(self) -> crate::error::InvalidDbSecurityGroupStateFault { + crate::error::InvalidDbSecurityGroupStateFault { message: self.message, } } } } -impl InvalidDBSecurityGroupStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBSecurityGroupStateFault`](crate::error::InvalidDBSecurityGroupStateFault) +impl InvalidDbSecurityGroupStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbSecurityGroupStateFault`](crate::error::InvalidDbSecurityGroupStateFault) pub fn builder() -> crate::error::invalid_db_security_group_state_fault::Builder { crate::error::invalid_db_security_group_state_fault::Builder::default() } @@ -16986,34 +17007,37 @@ impl InvalidDBSecurityGroupStateFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroupNotFoundFault { +pub struct DbSecurityGroupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroupNotFoundFault { +impl std::fmt::Debug for DbSecurityGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroupNotFoundFault"); + let mut formatter = f.debug_struct("DbSecurityGroupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSecurityGroupNotFoundFault { +impl DbSecurityGroupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSecurityGroupNotFoundFault { +impl std::fmt::Display for DbSecurityGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSecurityGroupNotFoundFault")?; + write!( + f, + "DbSecurityGroupNotFoundFault [DBSecurityGroupNotFoundFault]" + )?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for DBSecurityGroupNotFoundFault {} -/// See [`DBSecurityGroupNotFoundFault`](crate::error::DBSecurityGroupNotFoundFault) +impl std::error::Error for DbSecurityGroupNotFoundFault {} +/// See [`DbSecurityGroupNotFoundFault`](crate::error::DbSecurityGroupNotFoundFault) pub mod db_security_group_not_found_fault { - /// A builder for [`DBSecurityGroupNotFoundFault`](crate::error::DBSecurityGroupNotFoundFault) + /// A builder for [`DbSecurityGroupNotFoundFault`](crate::error::DbSecurityGroupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17028,16 +17052,16 @@ pub mod db_security_group_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroupNotFoundFault`](crate::error::DBSecurityGroupNotFoundFault) - pub fn build(self) -> crate::error::DBSecurityGroupNotFoundFault { - crate::error::DBSecurityGroupNotFoundFault { + /// Consumes the builder and constructs a [`DbSecurityGroupNotFoundFault`](crate::error::DbSecurityGroupNotFoundFault) + pub fn build(self) -> crate::error::DbSecurityGroupNotFoundFault { + crate::error::DbSecurityGroupNotFoundFault { message: self.message, } } } } -impl DBSecurityGroupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBSecurityGroupNotFoundFault`](crate::error::DBSecurityGroupNotFoundFault) +impl DbSecurityGroupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbSecurityGroupNotFoundFault`](crate::error::DbSecurityGroupNotFoundFault) pub fn builder() -> crate::error::db_security_group_not_found_fault::Builder { crate::error::db_security_group_not_found_fault::Builder::default() } @@ -17107,34 +17131,37 @@ impl StorageQuotaExceededFault { ///

    Provisioned IOPS not available in the specified Availability Zone.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ProvisionedIopsNotAvailableInAZFault { +pub struct ProvisionedIopsNotAvailableInAzFault { pub message: std::option::Option, } -impl std::fmt::Debug for ProvisionedIopsNotAvailableInAZFault { +impl std::fmt::Debug for ProvisionedIopsNotAvailableInAzFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ProvisionedIopsNotAvailableInAZFault"); + let mut formatter = f.debug_struct("ProvisionedIopsNotAvailableInAzFault"); formatter.field("message", &self.message); formatter.finish() } } -impl ProvisionedIopsNotAvailableInAZFault { +impl ProvisionedIopsNotAvailableInAzFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ProvisionedIopsNotAvailableInAZFault { +impl std::fmt::Display for ProvisionedIopsNotAvailableInAzFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ProvisionedIopsNotAvailableInAZFault")?; + write!( + f, + "ProvisionedIopsNotAvailableInAzFault [ProvisionedIopsNotAvailableInAZFault]" + )?; if let Some(inner_28) = &self.message { write!(f, ": {}", inner_28)?; } Ok(()) } } -impl std::error::Error for ProvisionedIopsNotAvailableInAZFault {} -/// See [`ProvisionedIopsNotAvailableInAZFault`](crate::error::ProvisionedIopsNotAvailableInAZFault) +impl std::error::Error for ProvisionedIopsNotAvailableInAzFault {} +/// See [`ProvisionedIopsNotAvailableInAzFault`](crate::error::ProvisionedIopsNotAvailableInAzFault) pub mod provisioned_iops_not_available_in_az_fault { - /// A builder for [`ProvisionedIopsNotAvailableInAZFault`](crate::error::ProvisionedIopsNotAvailableInAZFault) + /// A builder for [`ProvisionedIopsNotAvailableInAzFault`](crate::error::ProvisionedIopsNotAvailableInAzFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17149,16 +17176,16 @@ pub mod provisioned_iops_not_available_in_az_fault { self.message = input; self } - /// Consumes the builder and constructs a [`ProvisionedIopsNotAvailableInAZFault`](crate::error::ProvisionedIopsNotAvailableInAZFault) - pub fn build(self) -> crate::error::ProvisionedIopsNotAvailableInAZFault { - crate::error::ProvisionedIopsNotAvailableInAZFault { + /// Consumes the builder and constructs a [`ProvisionedIopsNotAvailableInAzFault`](crate::error::ProvisionedIopsNotAvailableInAzFault) + pub fn build(self) -> crate::error::ProvisionedIopsNotAvailableInAzFault { + crate::error::ProvisionedIopsNotAvailableInAzFault { message: self.message, } } } } -impl ProvisionedIopsNotAvailableInAZFault { - /// Creates a new builder-style object to manufacture [`ProvisionedIopsNotAvailableInAZFault`](crate::error::ProvisionedIopsNotAvailableInAZFault) +impl ProvisionedIopsNotAvailableInAzFault { + /// Creates a new builder-style object to manufacture [`ProvisionedIopsNotAvailableInAzFault`](crate::error::ProvisionedIopsNotAvailableInAzFault) pub fn builder() -> crate::error::provisioned_iops_not_available_in_az_fault::Builder { crate::error::provisioned_iops_not_available_in_az_fault::Builder::default() } @@ -17477,34 +17504,37 @@ impl DomainNotFoundFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBParameterGroupNotFoundFault { +pub struct DbParameterGroupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBParameterGroupNotFoundFault { +impl std::fmt::Debug for DbParameterGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBParameterGroupNotFoundFault"); + let mut formatter = f.debug_struct("DbParameterGroupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBParameterGroupNotFoundFault { +impl DbParameterGroupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBParameterGroupNotFoundFault { +impl std::fmt::Display for DbParameterGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBParameterGroupNotFoundFault")?; + write!( + f, + "DbParameterGroupNotFoundFault [DBParameterGroupNotFoundFault]" + )?; if let Some(inner_34) = &self.message { write!(f, ": {}", inner_34)?; } Ok(()) } } -impl std::error::Error for DBParameterGroupNotFoundFault {} -/// See [`DBParameterGroupNotFoundFault`](crate::error::DBParameterGroupNotFoundFault) +impl std::error::Error for DbParameterGroupNotFoundFault {} +/// See [`DbParameterGroupNotFoundFault`](crate::error::DbParameterGroupNotFoundFault) pub mod db_parameter_group_not_found_fault { - /// A builder for [`DBParameterGroupNotFoundFault`](crate::error::DBParameterGroupNotFoundFault) + /// A builder for [`DbParameterGroupNotFoundFault`](crate::error::DbParameterGroupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17519,16 +17549,16 @@ pub mod db_parameter_group_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBParameterGroupNotFoundFault`](crate::error::DBParameterGroupNotFoundFault) - pub fn build(self) -> crate::error::DBParameterGroupNotFoundFault { - crate::error::DBParameterGroupNotFoundFault { + /// Consumes the builder and constructs a [`DbParameterGroupNotFoundFault`](crate::error::DbParameterGroupNotFoundFault) + pub fn build(self) -> crate::error::DbParameterGroupNotFoundFault { + crate::error::DbParameterGroupNotFoundFault { message: self.message, } } } } -impl DBParameterGroupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBParameterGroupNotFoundFault`](crate::error::DBParameterGroupNotFoundFault) +impl DbParameterGroupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbParameterGroupNotFoundFault`](crate::error::DbParameterGroupNotFoundFault) pub fn builder() -> crate::error::db_parameter_group_not_found_fault::Builder { crate::error::db_parameter_group_not_found_fault::Builder::default() } @@ -17537,34 +17567,37 @@ impl DBParameterGroupNotFoundFault { ///

    No automated backup for this DB instance was found.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceAutomatedBackupNotFoundFault { +pub struct DbInstanceAutomatedBackupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceAutomatedBackupNotFoundFault { +impl std::fmt::Debug for DbInstanceAutomatedBackupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceAutomatedBackupNotFoundFault"); + let mut formatter = f.debug_struct("DbInstanceAutomatedBackupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceAutomatedBackupNotFoundFault { +impl DbInstanceAutomatedBackupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceAutomatedBackupNotFoundFault { +impl std::fmt::Display for DbInstanceAutomatedBackupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceAutomatedBackupNotFoundFault")?; + write!( + f, + "DbInstanceAutomatedBackupNotFoundFault [DBInstanceAutomatedBackupNotFoundFault]" + )?; if let Some(inner_35) = &self.message { write!(f, ": {}", inner_35)?; } Ok(()) } } -impl std::error::Error for DBInstanceAutomatedBackupNotFoundFault {} -/// See [`DBInstanceAutomatedBackupNotFoundFault`](crate::error::DBInstanceAutomatedBackupNotFoundFault) +impl std::error::Error for DbInstanceAutomatedBackupNotFoundFault {} +/// See [`DbInstanceAutomatedBackupNotFoundFault`](crate::error::DbInstanceAutomatedBackupNotFoundFault) pub mod db_instance_automated_backup_not_found_fault { - /// A builder for [`DBInstanceAutomatedBackupNotFoundFault`](crate::error::DBInstanceAutomatedBackupNotFoundFault) + /// A builder for [`DbInstanceAutomatedBackupNotFoundFault`](crate::error::DbInstanceAutomatedBackupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17579,16 +17612,16 @@ pub mod db_instance_automated_backup_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceAutomatedBackupNotFoundFault`](crate::error::DBInstanceAutomatedBackupNotFoundFault) - pub fn build(self) -> crate::error::DBInstanceAutomatedBackupNotFoundFault { - crate::error::DBInstanceAutomatedBackupNotFoundFault { + /// Consumes the builder and constructs a [`DbInstanceAutomatedBackupNotFoundFault`](crate::error::DbInstanceAutomatedBackupNotFoundFault) + pub fn build(self) -> crate::error::DbInstanceAutomatedBackupNotFoundFault { + crate::error::DbInstanceAutomatedBackupNotFoundFault { message: self.message, } } } } -impl DBInstanceAutomatedBackupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBInstanceAutomatedBackupNotFoundFault`](crate::error::DBInstanceAutomatedBackupNotFoundFault) +impl DbInstanceAutomatedBackupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbInstanceAutomatedBackupNotFoundFault`](crate::error::DbInstanceAutomatedBackupNotFoundFault) pub fn builder() -> crate::error::db_instance_automated_backup_not_found_fault::Builder { crate::error::db_instance_automated_backup_not_found_fault::Builder::default() } @@ -17597,34 +17630,37 @@ impl DBInstanceAutomatedBackupNotFoundFault { ///

    The user already has a DB instance with the given identifier.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceAlreadyExistsFault { +pub struct DbInstanceAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceAlreadyExistsFault { +impl std::fmt::Debug for DbInstanceAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbInstanceAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceAlreadyExistsFault { +impl DbInstanceAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceAlreadyExistsFault { +impl std::fmt::Display for DbInstanceAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceAlreadyExistsFault")?; + write!( + f, + "DbInstanceAlreadyExistsFault [DBInstanceAlreadyExistsFault]" + )?; if let Some(inner_36) = &self.message { write!(f, ": {}", inner_36)?; } Ok(()) } } -impl std::error::Error for DBInstanceAlreadyExistsFault {} -/// See [`DBInstanceAlreadyExistsFault`](crate::error::DBInstanceAlreadyExistsFault) +impl std::error::Error for DbInstanceAlreadyExistsFault {} +/// See [`DbInstanceAlreadyExistsFault`](crate::error::DbInstanceAlreadyExistsFault) pub mod db_instance_already_exists_fault { - /// A builder for [`DBInstanceAlreadyExistsFault`](crate::error::DBInstanceAlreadyExistsFault) + /// A builder for [`DbInstanceAlreadyExistsFault`](crate::error::DbInstanceAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17639,16 +17675,16 @@ pub mod db_instance_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceAlreadyExistsFault`](crate::error::DBInstanceAlreadyExistsFault) - pub fn build(self) -> crate::error::DBInstanceAlreadyExistsFault { - crate::error::DBInstanceAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbInstanceAlreadyExistsFault`](crate::error::DbInstanceAlreadyExistsFault) + pub fn build(self) -> crate::error::DbInstanceAlreadyExistsFault { + crate::error::DbInstanceAlreadyExistsFault { message: self.message, } } } } -impl DBInstanceAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBInstanceAlreadyExistsFault`](crate::error::DBInstanceAlreadyExistsFault) +impl DbInstanceAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbInstanceAlreadyExistsFault`](crate::error::DbInstanceAlreadyExistsFault) pub fn builder() -> crate::error::db_instance_already_exists_fault::Builder { crate::error::db_instance_already_exists_fault::Builder::default() } @@ -17716,34 +17752,37 @@ impl BackupPolicyNotFoundFault { ///

    The state of the DB snapshot doesn't allow deletion.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBSnapshotStateFault { +pub struct InvalidDbSnapshotStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBSnapshotStateFault { +impl std::fmt::Debug for InvalidDbSnapshotStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBSnapshotStateFault"); + let mut formatter = f.debug_struct("InvalidDbSnapshotStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBSnapshotStateFault { +impl InvalidDbSnapshotStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBSnapshotStateFault { +impl std::fmt::Display for InvalidDbSnapshotStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBSnapshotStateFault")?; + write!( + f, + "InvalidDbSnapshotStateFault [InvalidDBSnapshotStateFault]" + )?; if let Some(inner_38) = &self.message { write!(f, ": {}", inner_38)?; } Ok(()) } } -impl std::error::Error for InvalidDBSnapshotStateFault {} -/// See [`InvalidDBSnapshotStateFault`](crate::error::InvalidDBSnapshotStateFault) +impl std::error::Error for InvalidDbSnapshotStateFault {} +/// See [`InvalidDbSnapshotStateFault`](crate::error::InvalidDbSnapshotStateFault) pub mod invalid_db_snapshot_state_fault { - /// A builder for [`InvalidDBSnapshotStateFault`](crate::error::InvalidDBSnapshotStateFault) + /// A builder for [`InvalidDbSnapshotStateFault`](crate::error::InvalidDbSnapshotStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17758,16 +17797,16 @@ pub mod invalid_db_snapshot_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBSnapshotStateFault`](crate::error::InvalidDBSnapshotStateFault) - pub fn build(self) -> crate::error::InvalidDBSnapshotStateFault { - crate::error::InvalidDBSnapshotStateFault { + /// Consumes the builder and constructs a [`InvalidDbSnapshotStateFault`](crate::error::InvalidDbSnapshotStateFault) + pub fn build(self) -> crate::error::InvalidDbSnapshotStateFault { + crate::error::InvalidDbSnapshotStateFault { message: self.message, } } } } -impl InvalidDBSnapshotStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBSnapshotStateFault`](crate::error::InvalidDBSnapshotStateFault) +impl InvalidDbSnapshotStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbSnapshotStateFault`](crate::error::InvalidDbSnapshotStateFault) pub fn builder() -> crate::error::invalid_db_snapshot_state_fault::Builder { crate::error::invalid_db_snapshot_state_fault::Builder::default() } @@ -17776,34 +17815,37 @@ impl InvalidDBSnapshotStateFault { ///

    The supplied value isn't a valid DB cluster snapshot state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBClusterSnapshotStateFault { +pub struct InvalidDbClusterSnapshotStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBClusterSnapshotStateFault { +impl std::fmt::Debug for InvalidDbClusterSnapshotStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBClusterSnapshotStateFault"); + let mut formatter = f.debug_struct("InvalidDbClusterSnapshotStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBClusterSnapshotStateFault { +impl InvalidDbClusterSnapshotStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBClusterSnapshotStateFault { +impl std::fmt::Display for InvalidDbClusterSnapshotStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBClusterSnapshotStateFault")?; + write!( + f, + "InvalidDbClusterSnapshotStateFault [InvalidDBClusterSnapshotStateFault]" + )?; if let Some(inner_39) = &self.message { write!(f, ": {}", inner_39)?; } Ok(()) } } -impl std::error::Error for InvalidDBClusterSnapshotStateFault {} -/// See [`InvalidDBClusterSnapshotStateFault`](crate::error::InvalidDBClusterSnapshotStateFault) +impl std::error::Error for InvalidDbClusterSnapshotStateFault {} +/// See [`InvalidDbClusterSnapshotStateFault`](crate::error::InvalidDbClusterSnapshotStateFault) pub mod invalid_db_cluster_snapshot_state_fault { - /// A builder for [`InvalidDBClusterSnapshotStateFault`](crate::error::InvalidDBClusterSnapshotStateFault) + /// A builder for [`InvalidDbClusterSnapshotStateFault`](crate::error::InvalidDbClusterSnapshotStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17818,16 +17860,16 @@ pub mod invalid_db_cluster_snapshot_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBClusterSnapshotStateFault`](crate::error::InvalidDBClusterSnapshotStateFault) - pub fn build(self) -> crate::error::InvalidDBClusterSnapshotStateFault { - crate::error::InvalidDBClusterSnapshotStateFault { + /// Consumes the builder and constructs a [`InvalidDbClusterSnapshotStateFault`](crate::error::InvalidDbClusterSnapshotStateFault) + pub fn build(self) -> crate::error::InvalidDbClusterSnapshotStateFault { + crate::error::InvalidDbClusterSnapshotStateFault { message: self.message, } } } } -impl InvalidDBClusterSnapshotStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBClusterSnapshotStateFault`](crate::error::InvalidDBClusterSnapshotStateFault) +impl InvalidDbClusterSnapshotStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbClusterSnapshotStateFault`](crate::error::InvalidDbClusterSnapshotStateFault) pub fn builder() -> crate::error::invalid_db_cluster_snapshot_state_fault::Builder { crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default() } @@ -17898,34 +17940,37 @@ impl InsufficientStorageClusterCapacityFault { ///

    The DB cluster doesn't have enough capacity for the current operation.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InsufficientDBClusterCapacityFault { +pub struct InsufficientDbClusterCapacityFault { pub message: std::option::Option, } -impl std::fmt::Debug for InsufficientDBClusterCapacityFault { +impl std::fmt::Debug for InsufficientDbClusterCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InsufficientDBClusterCapacityFault"); + let mut formatter = f.debug_struct("InsufficientDbClusterCapacityFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InsufficientDBClusterCapacityFault { +impl InsufficientDbClusterCapacityFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InsufficientDBClusterCapacityFault { +impl std::fmt::Display for InsufficientDbClusterCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InsufficientDBClusterCapacityFault")?; + write!( + f, + "InsufficientDbClusterCapacityFault [InsufficientDBClusterCapacityFault]" + )?; if let Some(inner_41) = &self.message { write!(f, ": {}", inner_41)?; } Ok(()) } } -impl std::error::Error for InsufficientDBClusterCapacityFault {} -/// See [`InsufficientDBClusterCapacityFault`](crate::error::InsufficientDBClusterCapacityFault) +impl std::error::Error for InsufficientDbClusterCapacityFault {} +/// See [`InsufficientDbClusterCapacityFault`](crate::error::InsufficientDbClusterCapacityFault) pub mod insufficient_db_cluster_capacity_fault { - /// A builder for [`InsufficientDBClusterCapacityFault`](crate::error::InsufficientDBClusterCapacityFault) + /// A builder for [`InsufficientDbClusterCapacityFault`](crate::error::InsufficientDbClusterCapacityFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17940,16 +17985,16 @@ pub mod insufficient_db_cluster_capacity_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InsufficientDBClusterCapacityFault`](crate::error::InsufficientDBClusterCapacityFault) - pub fn build(self) -> crate::error::InsufficientDBClusterCapacityFault { - crate::error::InsufficientDBClusterCapacityFault { + /// Consumes the builder and constructs a [`InsufficientDbClusterCapacityFault`](crate::error::InsufficientDbClusterCapacityFault) + pub fn build(self) -> crate::error::InsufficientDbClusterCapacityFault { + crate::error::InsufficientDbClusterCapacityFault { message: self.message, } } } } -impl InsufficientDBClusterCapacityFault { - /// Creates a new builder-style object to manufacture [`InsufficientDBClusterCapacityFault`](crate::error::InsufficientDBClusterCapacityFault) +impl InsufficientDbClusterCapacityFault { + /// Creates a new builder-style object to manufacture [`InsufficientDbClusterCapacityFault`](crate::error::InsufficientDbClusterCapacityFault) pub fn builder() -> crate::error::insufficient_db_cluster_capacity_fault::Builder { crate::error::insufficient_db_cluster_capacity_fault::Builder::default() } @@ -17959,34 +18004,37 @@ impl InsufficientDBClusterCapacityFault { /// maximum allowed DB cluster quota.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterQuotaExceededFault { +pub struct DbClusterQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterQuotaExceededFault { +impl std::fmt::Debug for DbClusterQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterQuotaExceededFault"); + let mut formatter = f.debug_struct("DbClusterQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterQuotaExceededFault { +impl DbClusterQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterQuotaExceededFault { +impl std::fmt::Display for DbClusterQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterQuotaExceededFault")?; + write!( + f, + "DbClusterQuotaExceededFault [DBClusterQuotaExceededFault]" + )?; if let Some(inner_42) = &self.message { write!(f, ": {}", inner_42)?; } Ok(()) } } -impl std::error::Error for DBClusterQuotaExceededFault {} -/// See [`DBClusterQuotaExceededFault`](crate::error::DBClusterQuotaExceededFault) +impl std::error::Error for DbClusterQuotaExceededFault {} +/// See [`DbClusterQuotaExceededFault`](crate::error::DbClusterQuotaExceededFault) pub mod db_cluster_quota_exceeded_fault { - /// A builder for [`DBClusterQuotaExceededFault`](crate::error::DBClusterQuotaExceededFault) + /// A builder for [`DbClusterQuotaExceededFault`](crate::error::DbClusterQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18001,16 +18049,16 @@ pub mod db_cluster_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterQuotaExceededFault`](crate::error::DBClusterQuotaExceededFault) - pub fn build(self) -> crate::error::DBClusterQuotaExceededFault { - crate::error::DBClusterQuotaExceededFault { + /// Consumes the builder and constructs a [`DbClusterQuotaExceededFault`](crate::error::DbClusterQuotaExceededFault) + pub fn build(self) -> crate::error::DbClusterQuotaExceededFault { + crate::error::DbClusterQuotaExceededFault { message: self.message, } } } } -impl DBClusterQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBClusterQuotaExceededFault`](crate::error::DBClusterQuotaExceededFault) +impl DbClusterQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbClusterQuotaExceededFault`](crate::error::DbClusterQuotaExceededFault) pub fn builder() -> crate::error::db_cluster_quota_exceeded_fault::Builder { crate::error::db_cluster_quota_exceeded_fault::Builder::default() } @@ -18021,34 +18069,37 @@ impl DBClusterQuotaExceededFault { /// cluster parameter group.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterParameterGroupNotFoundFault { +pub struct DbClusterParameterGroupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterParameterGroupNotFoundFault { +impl std::fmt::Debug for DbClusterParameterGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterParameterGroupNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterParameterGroupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterParameterGroupNotFoundFault { +impl DbClusterParameterGroupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterParameterGroupNotFoundFault { +impl std::fmt::Display for DbClusterParameterGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterParameterGroupNotFoundFault")?; + write!( + f, + "DbClusterParameterGroupNotFoundFault [DBClusterParameterGroupNotFoundFault]" + )?; if let Some(inner_43) = &self.message { write!(f, ": {}", inner_43)?; } Ok(()) } } -impl std::error::Error for DBClusterParameterGroupNotFoundFault {} -/// See [`DBClusterParameterGroupNotFoundFault`](crate::error::DBClusterParameterGroupNotFoundFault) +impl std::error::Error for DbClusterParameterGroupNotFoundFault {} +/// See [`DbClusterParameterGroupNotFoundFault`](crate::error::DbClusterParameterGroupNotFoundFault) pub mod db_cluster_parameter_group_not_found_fault { - /// A builder for [`DBClusterParameterGroupNotFoundFault`](crate::error::DBClusterParameterGroupNotFoundFault) + /// A builder for [`DbClusterParameterGroupNotFoundFault`](crate::error::DbClusterParameterGroupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18063,16 +18114,16 @@ pub mod db_cluster_parameter_group_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterParameterGroupNotFoundFault`](crate::error::DBClusterParameterGroupNotFoundFault) - pub fn build(self) -> crate::error::DBClusterParameterGroupNotFoundFault { - crate::error::DBClusterParameterGroupNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterParameterGroupNotFoundFault`](crate::error::DbClusterParameterGroupNotFoundFault) + pub fn build(self) -> crate::error::DbClusterParameterGroupNotFoundFault { + crate::error::DbClusterParameterGroupNotFoundFault { message: self.message, } } } } -impl DBClusterParameterGroupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterParameterGroupNotFoundFault`](crate::error::DBClusterParameterGroupNotFoundFault) +impl DbClusterParameterGroupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterParameterGroupNotFoundFault`](crate::error::DbClusterParameterGroupNotFoundFault) pub fn builder() -> crate::error::db_cluster_parameter_group_not_found_fault::Builder { crate::error::db_cluster_parameter_group_not_found_fault::Builder::default() } @@ -18081,34 +18132,37 @@ impl DBClusterParameterGroupNotFoundFault { ///

    The user already has a DB cluster with the given identifier.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterAlreadyExistsFault { +pub struct DbClusterAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterAlreadyExistsFault { +impl std::fmt::Debug for DbClusterAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbClusterAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterAlreadyExistsFault { +impl DbClusterAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterAlreadyExistsFault { +impl std::fmt::Display for DbClusterAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterAlreadyExistsFault")?; + write!( + f, + "DbClusterAlreadyExistsFault [DBClusterAlreadyExistsFault]" + )?; if let Some(inner_44) = &self.message { write!(f, ": {}", inner_44)?; } Ok(()) } } -impl std::error::Error for DBClusterAlreadyExistsFault {} -/// See [`DBClusterAlreadyExistsFault`](crate::error::DBClusterAlreadyExistsFault) +impl std::error::Error for DbClusterAlreadyExistsFault {} +/// See [`DbClusterAlreadyExistsFault`](crate::error::DbClusterAlreadyExistsFault) pub mod db_cluster_already_exists_fault { - /// A builder for [`DBClusterAlreadyExistsFault`](crate::error::DBClusterAlreadyExistsFault) + /// A builder for [`DbClusterAlreadyExistsFault`](crate::error::DbClusterAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18123,16 +18177,16 @@ pub mod db_cluster_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterAlreadyExistsFault`](crate::error::DBClusterAlreadyExistsFault) - pub fn build(self) -> crate::error::DBClusterAlreadyExistsFault { - crate::error::DBClusterAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbClusterAlreadyExistsFault`](crate::error::DbClusterAlreadyExistsFault) + pub fn build(self) -> crate::error::DbClusterAlreadyExistsFault { + crate::error::DbClusterAlreadyExistsFault { message: self.message, } } } } -impl DBClusterAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBClusterAlreadyExistsFault`](crate::error::DBClusterAlreadyExistsFault) +impl DbClusterAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbClusterAlreadyExistsFault`](crate::error::DbClusterAlreadyExistsFault) pub fn builder() -> crate::error::db_cluster_already_exists_fault::Builder { crate::error::db_cluster_already_exists_fault::Builder::default() } @@ -18141,34 +18195,37 @@ impl DBClusterAlreadyExistsFault { ///

    The DB subnet group cannot be deleted because it's in use.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBSubnetGroupStateFault { +pub struct InvalidDbSubnetGroupStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBSubnetGroupStateFault { +impl std::fmt::Debug for InvalidDbSubnetGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBSubnetGroupStateFault"); + let mut formatter = f.debug_struct("InvalidDbSubnetGroupStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBSubnetGroupStateFault { +impl InvalidDbSubnetGroupStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBSubnetGroupStateFault { +impl std::fmt::Display for InvalidDbSubnetGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBSubnetGroupStateFault")?; + write!( + f, + "InvalidDbSubnetGroupStateFault [InvalidDBSubnetGroupStateFault]" + )?; if let Some(inner_45) = &self.message { write!(f, ": {}", inner_45)?; } Ok(()) } } -impl std::error::Error for InvalidDBSubnetGroupStateFault {} -/// See [`InvalidDBSubnetGroupStateFault`](crate::error::InvalidDBSubnetGroupStateFault) +impl std::error::Error for InvalidDbSubnetGroupStateFault {} +/// See [`InvalidDbSubnetGroupStateFault`](crate::error::InvalidDbSubnetGroupStateFault) pub mod invalid_db_subnet_group_state_fault { - /// A builder for [`InvalidDBSubnetGroupStateFault`](crate::error::InvalidDBSubnetGroupStateFault) + /// A builder for [`InvalidDbSubnetGroupStateFault`](crate::error::InvalidDbSubnetGroupStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18183,16 +18240,16 @@ pub mod invalid_db_subnet_group_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBSubnetGroupStateFault`](crate::error::InvalidDBSubnetGroupStateFault) - pub fn build(self) -> crate::error::InvalidDBSubnetGroupStateFault { - crate::error::InvalidDBSubnetGroupStateFault { + /// Consumes the builder and constructs a [`InvalidDbSubnetGroupStateFault`](crate::error::InvalidDbSubnetGroupStateFault) + pub fn build(self) -> crate::error::InvalidDbSubnetGroupStateFault { + crate::error::InvalidDbSubnetGroupStateFault { message: self.message, } } } } -impl InvalidDBSubnetGroupStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBSubnetGroupStateFault`](crate::error::InvalidDBSubnetGroupStateFault) +impl InvalidDbSubnetGroupStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbSubnetGroupStateFault`](crate::error::InvalidDbSubnetGroupStateFault) pub fn builder() -> crate::error::invalid_db_subnet_group_state_fault::Builder { crate::error::invalid_db_subnet_group_state_fault::Builder::default() } @@ -18203,34 +18260,37 @@ impl InvalidDBSubnetGroupStateFault { /// this state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBParameterGroupStateFault { +pub struct InvalidDbParameterGroupStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBParameterGroupStateFault { +impl std::fmt::Debug for InvalidDbParameterGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBParameterGroupStateFault"); + let mut formatter = f.debug_struct("InvalidDbParameterGroupStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBParameterGroupStateFault { +impl InvalidDbParameterGroupStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBParameterGroupStateFault { +impl std::fmt::Display for InvalidDbParameterGroupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBParameterGroupStateFault")?; + write!( + f, + "InvalidDbParameterGroupStateFault [InvalidDBParameterGroupStateFault]" + )?; if let Some(inner_46) = &self.message { write!(f, ": {}", inner_46)?; } Ok(()) } } -impl std::error::Error for InvalidDBParameterGroupStateFault {} -/// See [`InvalidDBParameterGroupStateFault`](crate::error::InvalidDBParameterGroupStateFault) +impl std::error::Error for InvalidDbParameterGroupStateFault {} +/// See [`InvalidDbParameterGroupStateFault`](crate::error::InvalidDbParameterGroupStateFault) pub mod invalid_db_parameter_group_state_fault { - /// A builder for [`InvalidDBParameterGroupStateFault`](crate::error::InvalidDBParameterGroupStateFault) + /// A builder for [`InvalidDbParameterGroupStateFault`](crate::error::InvalidDbParameterGroupStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18245,16 +18305,16 @@ pub mod invalid_db_parameter_group_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBParameterGroupStateFault`](crate::error::InvalidDBParameterGroupStateFault) - pub fn build(self) -> crate::error::InvalidDBParameterGroupStateFault { - crate::error::InvalidDBParameterGroupStateFault { + /// Consumes the builder and constructs a [`InvalidDbParameterGroupStateFault`](crate::error::InvalidDbParameterGroupStateFault) + pub fn build(self) -> crate::error::InvalidDbParameterGroupStateFault { + crate::error::InvalidDbParameterGroupStateFault { message: self.message, } } } } -impl InvalidDBParameterGroupStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBParameterGroupStateFault`](crate::error::InvalidDBParameterGroupStateFault) +impl InvalidDbParameterGroupStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbParameterGroupStateFault`](crate::error::InvalidDbParameterGroupStateFault) pub fn builder() -> crate::error::invalid_db_parameter_group_state_fault::Builder { crate::error::invalid_db_parameter_group_state_fault::Builder::default() } @@ -18263,34 +18323,37 @@ impl InvalidDBParameterGroupStateFault { ///

    The specified target group isn't available for a proxy owned by your AWS account in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyTargetGroupNotFoundFault { +pub struct DbProxyTargetGroupNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyTargetGroupNotFoundFault { +impl std::fmt::Debug for DbProxyTargetGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyTargetGroupNotFoundFault"); + let mut formatter = f.debug_struct("DbProxyTargetGroupNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyTargetGroupNotFoundFault { +impl DbProxyTargetGroupNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyTargetGroupNotFoundFault { +impl std::fmt::Display for DbProxyTargetGroupNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyTargetGroupNotFoundFault")?; + write!( + f, + "DbProxyTargetGroupNotFoundFault [DBProxyTargetGroupNotFoundFault]" + )?; if let Some(inner_47) = &self.message { write!(f, ": {}", inner_47)?; } Ok(()) } } -impl std::error::Error for DBProxyTargetGroupNotFoundFault {} -/// See [`DBProxyTargetGroupNotFoundFault`](crate::error::DBProxyTargetGroupNotFoundFault) +impl std::error::Error for DbProxyTargetGroupNotFoundFault {} +/// See [`DbProxyTargetGroupNotFoundFault`](crate::error::DbProxyTargetGroupNotFoundFault) pub mod db_proxy_target_group_not_found_fault { - /// A builder for [`DBProxyTargetGroupNotFoundFault`](crate::error::DBProxyTargetGroupNotFoundFault) + /// A builder for [`DbProxyTargetGroupNotFoundFault`](crate::error::DbProxyTargetGroupNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18305,16 +18368,16 @@ pub mod db_proxy_target_group_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyTargetGroupNotFoundFault`](crate::error::DBProxyTargetGroupNotFoundFault) - pub fn build(self) -> crate::error::DBProxyTargetGroupNotFoundFault { - crate::error::DBProxyTargetGroupNotFoundFault { + /// Consumes the builder and constructs a [`DbProxyTargetGroupNotFoundFault`](crate::error::DbProxyTargetGroupNotFoundFault) + pub fn build(self) -> crate::error::DbProxyTargetGroupNotFoundFault { + crate::error::DbProxyTargetGroupNotFoundFault { message: self.message, } } } } -impl DBProxyTargetGroupNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBProxyTargetGroupNotFoundFault`](crate::error::DBProxyTargetGroupNotFoundFault) +impl DbProxyTargetGroupNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbProxyTargetGroupNotFoundFault`](crate::error::DbProxyTargetGroupNotFoundFault) pub fn builder() -> crate::error::db_proxy_target_group_not_found_fault::Builder { crate::error::db_proxy_target_group_not_found_fault::Builder::default() } @@ -18323,34 +18386,34 @@ impl DBProxyTargetGroupNotFoundFault { ///

    The specified proxy name doesn't correspond to a proxy owned by your AWS account in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyNotFoundFault { +pub struct DbProxyNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyNotFoundFault { +impl std::fmt::Debug for DbProxyNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyNotFoundFault"); + let mut formatter = f.debug_struct("DbProxyNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyNotFoundFault { +impl DbProxyNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyNotFoundFault { +impl std::fmt::Display for DbProxyNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyNotFoundFault")?; + write!(f, "DbProxyNotFoundFault [DBProxyNotFoundFault]")?; if let Some(inner_48) = &self.message { write!(f, ": {}", inner_48)?; } Ok(()) } } -impl std::error::Error for DBProxyNotFoundFault {} -/// See [`DBProxyNotFoundFault`](crate::error::DBProxyNotFoundFault) +impl std::error::Error for DbProxyNotFoundFault {} +/// See [`DbProxyNotFoundFault`](crate::error::DbProxyNotFoundFault) pub mod db_proxy_not_found_fault { - /// A builder for [`DBProxyNotFoundFault`](crate::error::DBProxyNotFoundFault) + /// A builder for [`DbProxyNotFoundFault`](crate::error::DbProxyNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18365,16 +18428,16 @@ pub mod db_proxy_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyNotFoundFault`](crate::error::DBProxyNotFoundFault) - pub fn build(self) -> crate::error::DBProxyNotFoundFault { - crate::error::DBProxyNotFoundFault { + /// Consumes the builder and constructs a [`DbProxyNotFoundFault`](crate::error::DbProxyNotFoundFault) + pub fn build(self) -> crate::error::DbProxyNotFoundFault { + crate::error::DbProxyNotFoundFault { message: self.message, } } } } -impl DBProxyNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBProxyNotFoundFault`](crate::error::DBProxyNotFoundFault) +impl DbProxyNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbProxyNotFoundFault`](crate::error::DbProxyNotFoundFault) pub fn builder() -> crate::error::db_proxy_not_found_fault::Builder { crate::error::db_proxy_not_found_fault::Builder::default() } @@ -18504,34 +18567,37 @@ impl SourceNotFoundFault { /// the DB instance.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceRoleNotFoundFault { +pub struct DbInstanceRoleNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceRoleNotFoundFault { +impl std::fmt::Debug for DbInstanceRoleNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceRoleNotFoundFault"); + let mut formatter = f.debug_struct("DbInstanceRoleNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceRoleNotFoundFault { +impl DbInstanceRoleNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceRoleNotFoundFault { +impl std::fmt::Display for DbInstanceRoleNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceRoleNotFoundFault")?; + write!( + f, + "DbInstanceRoleNotFoundFault [DBInstanceRoleNotFoundFault]" + )?; if let Some(inner_51) = &self.message { write!(f, ": {}", inner_51)?; } Ok(()) } } -impl std::error::Error for DBInstanceRoleNotFoundFault {} -/// See [`DBInstanceRoleNotFoundFault`](crate::error::DBInstanceRoleNotFoundFault) +impl std::error::Error for DbInstanceRoleNotFoundFault {} +/// See [`DbInstanceRoleNotFoundFault`](crate::error::DbInstanceRoleNotFoundFault) pub mod db_instance_role_not_found_fault { - /// A builder for [`DBInstanceRoleNotFoundFault`](crate::error::DBInstanceRoleNotFoundFault) + /// A builder for [`DbInstanceRoleNotFoundFault`](crate::error::DbInstanceRoleNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18546,16 +18612,16 @@ pub mod db_instance_role_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceRoleNotFoundFault`](crate::error::DBInstanceRoleNotFoundFault) - pub fn build(self) -> crate::error::DBInstanceRoleNotFoundFault { - crate::error::DBInstanceRoleNotFoundFault { + /// Consumes the builder and constructs a [`DbInstanceRoleNotFoundFault`](crate::error::DbInstanceRoleNotFoundFault) + pub fn build(self) -> crate::error::DbInstanceRoleNotFoundFault { + crate::error::DbInstanceRoleNotFoundFault { message: self.message, } } } } -impl DBInstanceRoleNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBInstanceRoleNotFoundFault`](crate::error::DBInstanceRoleNotFoundFault) +impl DbInstanceRoleNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbInstanceRoleNotFoundFault`](crate::error::DbInstanceRoleNotFoundFault) pub fn builder() -> crate::error::db_instance_role_not_found_fault::Builder { crate::error::db_instance_role_not_found_fault::Builder::default() } @@ -18564,34 +18630,34 @@ impl DBInstanceRoleNotFoundFault { ///

    The specified IAM role Amazon Resource Name (ARN) isn't associated with the specified DB cluster.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterRoleNotFoundFault { +pub struct DbClusterRoleNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterRoleNotFoundFault { +impl std::fmt::Debug for DbClusterRoleNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterRoleNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterRoleNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterRoleNotFoundFault { +impl DbClusterRoleNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterRoleNotFoundFault { +impl std::fmt::Display for DbClusterRoleNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterRoleNotFoundFault")?; + write!(f, "DbClusterRoleNotFoundFault [DBClusterRoleNotFoundFault]")?; if let Some(inner_52) = &self.message { write!(f, ": {}", inner_52)?; } Ok(()) } } -impl std::error::Error for DBClusterRoleNotFoundFault {} -/// See [`DBClusterRoleNotFoundFault`](crate::error::DBClusterRoleNotFoundFault) +impl std::error::Error for DbClusterRoleNotFoundFault {} +/// See [`DbClusterRoleNotFoundFault`](crate::error::DbClusterRoleNotFoundFault) pub mod db_cluster_role_not_found_fault { - /// A builder for [`DBClusterRoleNotFoundFault`](crate::error::DBClusterRoleNotFoundFault) + /// A builder for [`DbClusterRoleNotFoundFault`](crate::error::DbClusterRoleNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18606,16 +18672,16 @@ pub mod db_cluster_role_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterRoleNotFoundFault`](crate::error::DBClusterRoleNotFoundFault) - pub fn build(self) -> crate::error::DBClusterRoleNotFoundFault { - crate::error::DBClusterRoleNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterRoleNotFoundFault`](crate::error::DbClusterRoleNotFoundFault) + pub fn build(self) -> crate::error::DbClusterRoleNotFoundFault { + crate::error::DbClusterRoleNotFoundFault { message: self.message, } } } } -impl DBClusterRoleNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterRoleNotFoundFault`](crate::error::DBClusterRoleNotFoundFault) +impl DbClusterRoleNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterRoleNotFoundFault`](crate::error::DbClusterRoleNotFoundFault) pub fn builder() -> crate::error::db_cluster_role_not_found_fault::Builder { crate::error::db_cluster_role_not_found_fault::Builder::default() } @@ -18744,34 +18810,34 @@ impl GlobalClusterNotFoundFault { ///

    The requested operation can't be performed while the proxy is in this state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBProxyStateFault { +pub struct InvalidDbProxyStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBProxyStateFault { +impl std::fmt::Debug for InvalidDbProxyStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBProxyStateFault"); + let mut formatter = f.debug_struct("InvalidDbProxyStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBProxyStateFault { +impl InvalidDbProxyStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBProxyStateFault { +impl std::fmt::Display for InvalidDbProxyStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBProxyStateFault")?; + write!(f, "InvalidDbProxyStateFault [InvalidDBProxyStateFault]")?; if let Some(inner_55) = &self.message { write!(f, ": {}", inner_55)?; } Ok(()) } } -impl std::error::Error for InvalidDBProxyStateFault {} -/// See [`InvalidDBProxyStateFault`](crate::error::InvalidDBProxyStateFault) +impl std::error::Error for InvalidDbProxyStateFault {} +/// See [`InvalidDbProxyStateFault`](crate::error::InvalidDbProxyStateFault) pub mod invalid_db_proxy_state_fault { - /// A builder for [`InvalidDBProxyStateFault`](crate::error::InvalidDBProxyStateFault) + /// A builder for [`InvalidDbProxyStateFault`](crate::error::InvalidDbProxyStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18786,16 +18852,16 @@ pub mod invalid_db_proxy_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBProxyStateFault`](crate::error::InvalidDBProxyStateFault) - pub fn build(self) -> crate::error::InvalidDBProxyStateFault { - crate::error::InvalidDBProxyStateFault { + /// Consumes the builder and constructs a [`InvalidDbProxyStateFault`](crate::error::InvalidDbProxyStateFault) + pub fn build(self) -> crate::error::InvalidDbProxyStateFault { + crate::error::InvalidDbProxyStateFault { message: self.message, } } } } -impl InvalidDBProxyStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBProxyStateFault`](crate::error::InvalidDBProxyStateFault) +impl InvalidDbProxyStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbProxyStateFault`](crate::error::InvalidDbProxyStateFault) pub fn builder() -> crate::error::invalid_db_proxy_state_fault::Builder { crate::error::invalid_db_proxy_state_fault::Builder::default() } @@ -18866,34 +18932,37 @@ impl InsufficientAvailableIPsInSubnetFault { ///

    The proxy is already associated with the specified RDS DB instance or Aurora DB cluster.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyTargetAlreadyRegisteredFault { +pub struct DbProxyTargetAlreadyRegisteredFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyTargetAlreadyRegisteredFault { +impl std::fmt::Debug for DbProxyTargetAlreadyRegisteredFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyTargetAlreadyRegisteredFault"); + let mut formatter = f.debug_struct("DbProxyTargetAlreadyRegisteredFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyTargetAlreadyRegisteredFault { +impl DbProxyTargetAlreadyRegisteredFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyTargetAlreadyRegisteredFault { +impl std::fmt::Display for DbProxyTargetAlreadyRegisteredFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyTargetAlreadyRegisteredFault")?; + write!( + f, + "DbProxyTargetAlreadyRegisteredFault [DBProxyTargetAlreadyRegisteredFault]" + )?; if let Some(inner_57) = &self.message { write!(f, ": {}", inner_57)?; } Ok(()) } } -impl std::error::Error for DBProxyTargetAlreadyRegisteredFault {} -/// See [`DBProxyTargetAlreadyRegisteredFault`](crate::error::DBProxyTargetAlreadyRegisteredFault) +impl std::error::Error for DbProxyTargetAlreadyRegisteredFault {} +/// See [`DbProxyTargetAlreadyRegisteredFault`](crate::error::DbProxyTargetAlreadyRegisteredFault) pub mod db_proxy_target_already_registered_fault { - /// A builder for [`DBProxyTargetAlreadyRegisteredFault`](crate::error::DBProxyTargetAlreadyRegisteredFault) + /// A builder for [`DbProxyTargetAlreadyRegisteredFault`](crate::error::DbProxyTargetAlreadyRegisteredFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18908,16 +18977,16 @@ pub mod db_proxy_target_already_registered_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyTargetAlreadyRegisteredFault`](crate::error::DBProxyTargetAlreadyRegisteredFault) - pub fn build(self) -> crate::error::DBProxyTargetAlreadyRegisteredFault { - crate::error::DBProxyTargetAlreadyRegisteredFault { + /// Consumes the builder and constructs a [`DbProxyTargetAlreadyRegisteredFault`](crate::error::DbProxyTargetAlreadyRegisteredFault) + pub fn build(self) -> crate::error::DbProxyTargetAlreadyRegisteredFault { + crate::error::DbProxyTargetAlreadyRegisteredFault { message: self.message, } } } } -impl DBProxyTargetAlreadyRegisteredFault { - /// Creates a new builder-style object to manufacture [`DBProxyTargetAlreadyRegisteredFault`](crate::error::DBProxyTargetAlreadyRegisteredFault) +impl DbProxyTargetAlreadyRegisteredFault { + /// Creates a new builder-style object to manufacture [`DbProxyTargetAlreadyRegisteredFault`](crate::error::DbProxyTargetAlreadyRegisteredFault) pub fn builder() -> crate::error::db_proxy_target_already_registered_fault::Builder { crate::error::db_proxy_target_already_registered_fault::Builder::default() } @@ -18926,34 +18995,37 @@ impl DBProxyTargetAlreadyRegisteredFault { ///

    Specified offering does not exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstancesOfferingNotFoundFault { +pub struct ReservedDbInstancesOfferingNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for ReservedDBInstancesOfferingNotFoundFault { +impl std::fmt::Debug for ReservedDbInstancesOfferingNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstancesOfferingNotFoundFault"); + let mut formatter = f.debug_struct("ReservedDbInstancesOfferingNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl ReservedDBInstancesOfferingNotFoundFault { +impl ReservedDbInstancesOfferingNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReservedDBInstancesOfferingNotFoundFault { +impl std::fmt::Display for ReservedDbInstancesOfferingNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ReservedDBInstancesOfferingNotFoundFault")?; + write!( + f, + "ReservedDbInstancesOfferingNotFoundFault [ReservedDBInstancesOfferingNotFoundFault]" + )?; if let Some(inner_58) = &self.message { write!(f, ": {}", inner_58)?; } Ok(()) } } -impl std::error::Error for ReservedDBInstancesOfferingNotFoundFault {} -/// See [`ReservedDBInstancesOfferingNotFoundFault`](crate::error::ReservedDBInstancesOfferingNotFoundFault) +impl std::error::Error for ReservedDbInstancesOfferingNotFoundFault {} +/// See [`ReservedDbInstancesOfferingNotFoundFault`](crate::error::ReservedDbInstancesOfferingNotFoundFault) pub mod reserved_db_instances_offering_not_found_fault { - /// A builder for [`ReservedDBInstancesOfferingNotFoundFault`](crate::error::ReservedDBInstancesOfferingNotFoundFault) + /// A builder for [`ReservedDbInstancesOfferingNotFoundFault`](crate::error::ReservedDbInstancesOfferingNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18968,16 +19040,16 @@ pub mod reserved_db_instances_offering_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstancesOfferingNotFoundFault`](crate::error::ReservedDBInstancesOfferingNotFoundFault) - pub fn build(self) -> crate::error::ReservedDBInstancesOfferingNotFoundFault { - crate::error::ReservedDBInstancesOfferingNotFoundFault { + /// Consumes the builder and constructs a [`ReservedDbInstancesOfferingNotFoundFault`](crate::error::ReservedDbInstancesOfferingNotFoundFault) + pub fn build(self) -> crate::error::ReservedDbInstancesOfferingNotFoundFault { + crate::error::ReservedDbInstancesOfferingNotFoundFault { message: self.message, } } } } -impl ReservedDBInstancesOfferingNotFoundFault { - /// Creates a new builder-style object to manufacture [`ReservedDBInstancesOfferingNotFoundFault`](crate::error::ReservedDBInstancesOfferingNotFoundFault) +impl ReservedDbInstancesOfferingNotFoundFault { + /// Creates a new builder-style object to manufacture [`ReservedDbInstancesOfferingNotFoundFault`](crate::error::ReservedDbInstancesOfferingNotFoundFault) pub fn builder() -> crate::error::reserved_db_instances_offering_not_found_fault::Builder { crate::error::reserved_db_instances_offering_not_found_fault::Builder::default() } @@ -18986,34 +19058,37 @@ impl ReservedDBInstancesOfferingNotFoundFault { ///

    Request would exceed the user's DB Instance quota.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstanceQuotaExceededFault { +pub struct ReservedDbInstanceQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for ReservedDBInstanceQuotaExceededFault { +impl std::fmt::Debug for ReservedDbInstanceQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstanceQuotaExceededFault"); + let mut formatter = f.debug_struct("ReservedDbInstanceQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl ReservedDBInstanceQuotaExceededFault { +impl ReservedDbInstanceQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReservedDBInstanceQuotaExceededFault { +impl std::fmt::Display for ReservedDbInstanceQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ReservedDBInstanceQuotaExceededFault")?; + write!( + f, + "ReservedDbInstanceQuotaExceededFault [ReservedDBInstanceQuotaExceededFault]" + )?; if let Some(inner_59) = &self.message { write!(f, ": {}", inner_59)?; } Ok(()) } } -impl std::error::Error for ReservedDBInstanceQuotaExceededFault {} -/// See [`ReservedDBInstanceQuotaExceededFault`](crate::error::ReservedDBInstanceQuotaExceededFault) +impl std::error::Error for ReservedDbInstanceQuotaExceededFault {} +/// See [`ReservedDbInstanceQuotaExceededFault`](crate::error::ReservedDbInstanceQuotaExceededFault) pub mod reserved_db_instance_quota_exceeded_fault { - /// A builder for [`ReservedDBInstanceQuotaExceededFault`](crate::error::ReservedDBInstanceQuotaExceededFault) + /// A builder for [`ReservedDbInstanceQuotaExceededFault`](crate::error::ReservedDbInstanceQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19028,16 +19103,16 @@ pub mod reserved_db_instance_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstanceQuotaExceededFault`](crate::error::ReservedDBInstanceQuotaExceededFault) - pub fn build(self) -> crate::error::ReservedDBInstanceQuotaExceededFault { - crate::error::ReservedDBInstanceQuotaExceededFault { + /// Consumes the builder and constructs a [`ReservedDbInstanceQuotaExceededFault`](crate::error::ReservedDbInstanceQuotaExceededFault) + pub fn build(self) -> crate::error::ReservedDbInstanceQuotaExceededFault { + crate::error::ReservedDbInstanceQuotaExceededFault { message: self.message, } } } } -impl ReservedDBInstanceQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`ReservedDBInstanceQuotaExceededFault`](crate::error::ReservedDBInstanceQuotaExceededFault) +impl ReservedDbInstanceQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`ReservedDbInstanceQuotaExceededFault`](crate::error::ReservedDbInstanceQuotaExceededFault) pub fn builder() -> crate::error::reserved_db_instance_quota_exceeded_fault::Builder { crate::error::reserved_db_instance_quota_exceeded_fault::Builder::default() } @@ -19046,34 +19121,37 @@ impl ReservedDBInstanceQuotaExceededFault { ///

    User already has a reservation with the given identifier.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstanceAlreadyExistsFault { +pub struct ReservedDbInstanceAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for ReservedDBInstanceAlreadyExistsFault { +impl std::fmt::Debug for ReservedDbInstanceAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstanceAlreadyExistsFault"); + let mut formatter = f.debug_struct("ReservedDbInstanceAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl ReservedDBInstanceAlreadyExistsFault { +impl ReservedDbInstanceAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReservedDBInstanceAlreadyExistsFault { +impl std::fmt::Display for ReservedDbInstanceAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ReservedDBInstanceAlreadyExistsFault")?; + write!( + f, + "ReservedDbInstanceAlreadyExistsFault [ReservedDBInstanceAlreadyExistsFault]" + )?; if let Some(inner_60) = &self.message { write!(f, ": {}", inner_60)?; } Ok(()) } } -impl std::error::Error for ReservedDBInstanceAlreadyExistsFault {} -/// See [`ReservedDBInstanceAlreadyExistsFault`](crate::error::ReservedDBInstanceAlreadyExistsFault) +impl std::error::Error for ReservedDbInstanceAlreadyExistsFault {} +/// See [`ReservedDbInstanceAlreadyExistsFault`](crate::error::ReservedDbInstanceAlreadyExistsFault) pub mod reserved_db_instance_already_exists_fault { - /// A builder for [`ReservedDBInstanceAlreadyExistsFault`](crate::error::ReservedDBInstanceAlreadyExistsFault) + /// A builder for [`ReservedDbInstanceAlreadyExistsFault`](crate::error::ReservedDbInstanceAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19088,16 +19166,16 @@ pub mod reserved_db_instance_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstanceAlreadyExistsFault`](crate::error::ReservedDBInstanceAlreadyExistsFault) - pub fn build(self) -> crate::error::ReservedDBInstanceAlreadyExistsFault { - crate::error::ReservedDBInstanceAlreadyExistsFault { + /// Consumes the builder and constructs a [`ReservedDbInstanceAlreadyExistsFault`](crate::error::ReservedDbInstanceAlreadyExistsFault) + pub fn build(self) -> crate::error::ReservedDbInstanceAlreadyExistsFault { + crate::error::ReservedDbInstanceAlreadyExistsFault { message: self.message, } } } } -impl ReservedDBInstanceAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`ReservedDBInstanceAlreadyExistsFault`](crate::error::ReservedDBInstanceAlreadyExistsFault) +impl ReservedDbInstanceAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`ReservedDbInstanceAlreadyExistsFault`](crate::error::ReservedDbInstanceAlreadyExistsFault) pub fn builder() -> crate::error::reserved_db_instance_already_exists_fault::Builder { crate::error::reserved_db_instance_already_exists_fault::Builder::default() } @@ -19228,34 +19306,34 @@ impl SubscriptionCategoryNotFoundFault { ///

    The SNS topic ARN does not exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SNSTopicArnNotFoundFault { +pub struct SnsTopicArnNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for SNSTopicArnNotFoundFault { +impl std::fmt::Debug for SnsTopicArnNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SNSTopicArnNotFoundFault"); + let mut formatter = f.debug_struct("SnsTopicArnNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl SNSTopicArnNotFoundFault { +impl SnsTopicArnNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SNSTopicArnNotFoundFault { +impl std::fmt::Display for SnsTopicArnNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "SNSTopicArnNotFoundFault")?; + write!(f, "SnsTopicArnNotFoundFault [SNSTopicArnNotFoundFault]")?; if let Some(inner_63) = &self.message { write!(f, ": {}", inner_63)?; } Ok(()) } } -impl std::error::Error for SNSTopicArnNotFoundFault {} -/// See [`SNSTopicArnNotFoundFault`](crate::error::SNSTopicArnNotFoundFault) +impl std::error::Error for SnsTopicArnNotFoundFault {} +/// See [`SnsTopicArnNotFoundFault`](crate::error::SnsTopicArnNotFoundFault) pub mod sns_topic_arn_not_found_fault { - /// A builder for [`SNSTopicArnNotFoundFault`](crate::error::SNSTopicArnNotFoundFault) + /// A builder for [`SnsTopicArnNotFoundFault`](crate::error::SnsTopicArnNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19270,16 +19348,16 @@ pub mod sns_topic_arn_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`SNSTopicArnNotFoundFault`](crate::error::SNSTopicArnNotFoundFault) - pub fn build(self) -> crate::error::SNSTopicArnNotFoundFault { - crate::error::SNSTopicArnNotFoundFault { + /// Consumes the builder and constructs a [`SnsTopicArnNotFoundFault`](crate::error::SnsTopicArnNotFoundFault) + pub fn build(self) -> crate::error::SnsTopicArnNotFoundFault { + crate::error::SnsTopicArnNotFoundFault { message: self.message, } } } } -impl SNSTopicArnNotFoundFault { - /// Creates a new builder-style object to manufacture [`SNSTopicArnNotFoundFault`](crate::error::SNSTopicArnNotFoundFault) +impl SnsTopicArnNotFoundFault { + /// Creates a new builder-style object to manufacture [`SnsTopicArnNotFoundFault`](crate::error::SnsTopicArnNotFoundFault) pub fn builder() -> crate::error::sns_topic_arn_not_found_fault::Builder { crate::error::sns_topic_arn_not_found_fault::Builder::default() } @@ -19288,34 +19366,34 @@ impl SNSTopicArnNotFoundFault { ///

    You do not have permission to publish to the SNS topic ARN.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SNSNoAuthorizationFault { +pub struct SnsNoAuthorizationFault { pub message: std::option::Option, } -impl std::fmt::Debug for SNSNoAuthorizationFault { +impl std::fmt::Debug for SnsNoAuthorizationFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SNSNoAuthorizationFault"); + let mut formatter = f.debug_struct("SnsNoAuthorizationFault"); formatter.field("message", &self.message); formatter.finish() } } -impl SNSNoAuthorizationFault { +impl SnsNoAuthorizationFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SNSNoAuthorizationFault { +impl std::fmt::Display for SnsNoAuthorizationFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "SNSNoAuthorizationFault")?; + write!(f, "SnsNoAuthorizationFault [SNSNoAuthorizationFault]")?; if let Some(inner_64) = &self.message { write!(f, ": {}", inner_64)?; } Ok(()) } } -impl std::error::Error for SNSNoAuthorizationFault {} -/// See [`SNSNoAuthorizationFault`](crate::error::SNSNoAuthorizationFault) +impl std::error::Error for SnsNoAuthorizationFault {} +/// See [`SnsNoAuthorizationFault`](crate::error::SnsNoAuthorizationFault) pub mod sns_no_authorization_fault { - /// A builder for [`SNSNoAuthorizationFault`](crate::error::SNSNoAuthorizationFault) + /// A builder for [`SnsNoAuthorizationFault`](crate::error::SnsNoAuthorizationFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19330,16 +19408,16 @@ pub mod sns_no_authorization_fault { self.message = input; self } - /// Consumes the builder and constructs a [`SNSNoAuthorizationFault`](crate::error::SNSNoAuthorizationFault) - pub fn build(self) -> crate::error::SNSNoAuthorizationFault { - crate::error::SNSNoAuthorizationFault { + /// Consumes the builder and constructs a [`SnsNoAuthorizationFault`](crate::error::SnsNoAuthorizationFault) + pub fn build(self) -> crate::error::SnsNoAuthorizationFault { + crate::error::SnsNoAuthorizationFault { message: self.message, } } } } -impl SNSNoAuthorizationFault { - /// Creates a new builder-style object to manufacture [`SNSNoAuthorizationFault`](crate::error::SNSNoAuthorizationFault) +impl SnsNoAuthorizationFault { + /// Creates a new builder-style object to manufacture [`SnsNoAuthorizationFault`](crate::error::SnsNoAuthorizationFault) pub fn builder() -> crate::error::sns_no_authorization_fault::Builder { crate::error::sns_no_authorization_fault::Builder::default() } @@ -19348,34 +19426,34 @@ impl SNSNoAuthorizationFault { ///

    SNS has responded that there is a problem with the SND topic specified.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SNSInvalidTopicFault { +pub struct SnsInvalidTopicFault { pub message: std::option::Option, } -impl std::fmt::Debug for SNSInvalidTopicFault { +impl std::fmt::Debug for SnsInvalidTopicFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SNSInvalidTopicFault"); + let mut formatter = f.debug_struct("SnsInvalidTopicFault"); formatter.field("message", &self.message); formatter.finish() } } -impl SNSInvalidTopicFault { +impl SnsInvalidTopicFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SNSInvalidTopicFault { +impl std::fmt::Display for SnsInvalidTopicFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "SNSInvalidTopicFault")?; + write!(f, "SnsInvalidTopicFault [SNSInvalidTopicFault]")?; if let Some(inner_65) = &self.message { write!(f, ": {}", inner_65)?; } Ok(()) } } -impl std::error::Error for SNSInvalidTopicFault {} -/// See [`SNSInvalidTopicFault`](crate::error::SNSInvalidTopicFault) +impl std::error::Error for SnsInvalidTopicFault {} +/// See [`SnsInvalidTopicFault`](crate::error::SnsInvalidTopicFault) pub mod sns_invalid_topic_fault { - /// A builder for [`SNSInvalidTopicFault`](crate::error::SNSInvalidTopicFault) + /// A builder for [`SnsInvalidTopicFault`](crate::error::SnsInvalidTopicFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19390,16 +19468,16 @@ pub mod sns_invalid_topic_fault { self.message = input; self } - /// Consumes the builder and constructs a [`SNSInvalidTopicFault`](crate::error::SNSInvalidTopicFault) - pub fn build(self) -> crate::error::SNSInvalidTopicFault { - crate::error::SNSInvalidTopicFault { + /// Consumes the builder and constructs a [`SnsInvalidTopicFault`](crate::error::SnsInvalidTopicFault) + pub fn build(self) -> crate::error::SnsInvalidTopicFault { + crate::error::SnsInvalidTopicFault { message: self.message, } } } } -impl SNSInvalidTopicFault { - /// Creates a new builder-style object to manufacture [`SNSInvalidTopicFault`](crate::error::SNSInvalidTopicFault) +impl SnsInvalidTopicFault { + /// Creates a new builder-style object to manufacture [`SnsInvalidTopicFault`](crate::error::SnsInvalidTopicFault) pub fn builder() -> crate::error::sns_invalid_topic_fault::Builder { crate::error::sns_invalid_topic_fault::Builder::default() } @@ -19529,34 +19607,34 @@ impl SubnetAlreadyInUse { /// DB subnet groups.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetQuotaExceededFault { +pub struct DbSubnetQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetQuotaExceededFault { +impl std::fmt::Debug for DbSubnetQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetQuotaExceededFault"); + let mut formatter = f.debug_struct("DbSubnetQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetQuotaExceededFault { +impl DbSubnetQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetQuotaExceededFault { +impl std::fmt::Display for DbSubnetQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetQuotaExceededFault")?; + write!(f, "DbSubnetQuotaExceededFault [DBSubnetQuotaExceededFault]")?; if let Some(inner_68) = &self.message { write!(f, ": {}", inner_68)?; } Ok(()) } } -impl std::error::Error for DBSubnetQuotaExceededFault {} -/// See [`DBSubnetQuotaExceededFault`](crate::error::DBSubnetQuotaExceededFault) +impl std::error::Error for DbSubnetQuotaExceededFault {} +/// See [`DbSubnetQuotaExceededFault`](crate::error::DbSubnetQuotaExceededFault) pub mod db_subnet_quota_exceeded_fault { - /// A builder for [`DBSubnetQuotaExceededFault`](crate::error::DBSubnetQuotaExceededFault) + /// A builder for [`DbSubnetQuotaExceededFault`](crate::error::DbSubnetQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19571,16 +19649,16 @@ pub mod db_subnet_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetQuotaExceededFault`](crate::error::DBSubnetQuotaExceededFault) - pub fn build(self) -> crate::error::DBSubnetQuotaExceededFault { - crate::error::DBSubnetQuotaExceededFault { + /// Consumes the builder and constructs a [`DbSubnetQuotaExceededFault`](crate::error::DbSubnetQuotaExceededFault) + pub fn build(self) -> crate::error::DbSubnetQuotaExceededFault { + crate::error::DbSubnetQuotaExceededFault { message: self.message, } } } } -impl DBSubnetQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBSubnetQuotaExceededFault`](crate::error::DBSubnetQuotaExceededFault) +impl DbSubnetQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbSubnetQuotaExceededFault`](crate::error::DbSubnetQuotaExceededFault) pub fn builder() -> crate::error::db_subnet_quota_exceeded_fault::Builder { crate::error::db_subnet_quota_exceeded_fault::Builder::default() } @@ -19649,34 +19727,37 @@ impl SharedSnapshotQuotaExceededFault { ///

    You can't perform this operation while the DB proxy endpoint is in a particular state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBProxyEndpointStateFault { +pub struct InvalidDbProxyEndpointStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBProxyEndpointStateFault { +impl std::fmt::Debug for InvalidDbProxyEndpointStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBProxyEndpointStateFault"); + let mut formatter = f.debug_struct("InvalidDbProxyEndpointStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBProxyEndpointStateFault { +impl InvalidDbProxyEndpointStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBProxyEndpointStateFault { +impl std::fmt::Display for InvalidDbProxyEndpointStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBProxyEndpointStateFault")?; + write!( + f, + "InvalidDbProxyEndpointStateFault [InvalidDBProxyEndpointStateFault]" + )?; if let Some(inner_70) = &self.message { write!(f, ": {}", inner_70)?; } Ok(()) } } -impl std::error::Error for InvalidDBProxyEndpointStateFault {} -/// See [`InvalidDBProxyEndpointStateFault`](crate::error::InvalidDBProxyEndpointStateFault) +impl std::error::Error for InvalidDbProxyEndpointStateFault {} +/// See [`InvalidDbProxyEndpointStateFault`](crate::error::InvalidDbProxyEndpointStateFault) pub mod invalid_db_proxy_endpoint_state_fault { - /// A builder for [`InvalidDBProxyEndpointStateFault`](crate::error::InvalidDBProxyEndpointStateFault) + /// A builder for [`InvalidDbProxyEndpointStateFault`](crate::error::InvalidDbProxyEndpointStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19691,16 +19772,16 @@ pub mod invalid_db_proxy_endpoint_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBProxyEndpointStateFault`](crate::error::InvalidDBProxyEndpointStateFault) - pub fn build(self) -> crate::error::InvalidDBProxyEndpointStateFault { - crate::error::InvalidDBProxyEndpointStateFault { + /// Consumes the builder and constructs a [`InvalidDbProxyEndpointStateFault`](crate::error::InvalidDbProxyEndpointStateFault) + pub fn build(self) -> crate::error::InvalidDbProxyEndpointStateFault { + crate::error::InvalidDbProxyEndpointStateFault { message: self.message, } } } } -impl InvalidDBProxyEndpointStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBProxyEndpointStateFault`](crate::error::InvalidDBProxyEndpointStateFault) +impl InvalidDbProxyEndpointStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbProxyEndpointStateFault`](crate::error::InvalidDbProxyEndpointStateFault) pub fn builder() -> crate::error::invalid_db_proxy_endpoint_state_fault::Builder { crate::error::invalid_db_proxy_endpoint_state_fault::Builder::default() } @@ -19709,34 +19790,37 @@ impl InvalidDBProxyEndpointStateFault { ///

    The DB proxy endpoint doesn't exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyEndpointNotFoundFault { +pub struct DbProxyEndpointNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyEndpointNotFoundFault { +impl std::fmt::Debug for DbProxyEndpointNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyEndpointNotFoundFault"); + let mut formatter = f.debug_struct("DbProxyEndpointNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyEndpointNotFoundFault { +impl DbProxyEndpointNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyEndpointNotFoundFault { +impl std::fmt::Display for DbProxyEndpointNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyEndpointNotFoundFault")?; + write!( + f, + "DbProxyEndpointNotFoundFault [DBProxyEndpointNotFoundFault]" + )?; if let Some(inner_71) = &self.message { write!(f, ": {}", inner_71)?; } Ok(()) } } -impl std::error::Error for DBProxyEndpointNotFoundFault {} -/// See [`DBProxyEndpointNotFoundFault`](crate::error::DBProxyEndpointNotFoundFault) +impl std::error::Error for DbProxyEndpointNotFoundFault {} +/// See [`DbProxyEndpointNotFoundFault`](crate::error::DbProxyEndpointNotFoundFault) pub mod db_proxy_endpoint_not_found_fault { - /// A builder for [`DBProxyEndpointNotFoundFault`](crate::error::DBProxyEndpointNotFoundFault) + /// A builder for [`DbProxyEndpointNotFoundFault`](crate::error::DbProxyEndpointNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19751,16 +19835,16 @@ pub mod db_proxy_endpoint_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyEndpointNotFoundFault`](crate::error::DBProxyEndpointNotFoundFault) - pub fn build(self) -> crate::error::DBProxyEndpointNotFoundFault { - crate::error::DBProxyEndpointNotFoundFault { + /// Consumes the builder and constructs a [`DbProxyEndpointNotFoundFault`](crate::error::DbProxyEndpointNotFoundFault) + pub fn build(self) -> crate::error::DbProxyEndpointNotFoundFault { + crate::error::DbProxyEndpointNotFoundFault { message: self.message, } } } } -impl DBProxyEndpointNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBProxyEndpointNotFoundFault`](crate::error::DBProxyEndpointNotFoundFault) +impl DbProxyEndpointNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbProxyEndpointNotFoundFault`](crate::error::DbProxyEndpointNotFoundFault) pub fn builder() -> crate::error::db_proxy_endpoint_not_found_fault::Builder { crate::error::db_proxy_endpoint_not_found_fault::Builder::default() } @@ -19769,34 +19853,37 @@ impl DBProxyEndpointNotFoundFault { ///

    The specified DB proxy endpoint name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyEndpointAlreadyExistsFault { +pub struct DbProxyEndpointAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyEndpointAlreadyExistsFault { +impl std::fmt::Debug for DbProxyEndpointAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyEndpointAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbProxyEndpointAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyEndpointAlreadyExistsFault { +impl DbProxyEndpointAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyEndpointAlreadyExistsFault { +impl std::fmt::Display for DbProxyEndpointAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyEndpointAlreadyExistsFault")?; + write!( + f, + "DbProxyEndpointAlreadyExistsFault [DBProxyEndpointAlreadyExistsFault]" + )?; if let Some(inner_72) = &self.message { write!(f, ": {}", inner_72)?; } Ok(()) } } -impl std::error::Error for DBProxyEndpointAlreadyExistsFault {} -/// See [`DBProxyEndpointAlreadyExistsFault`](crate::error::DBProxyEndpointAlreadyExistsFault) +impl std::error::Error for DbProxyEndpointAlreadyExistsFault {} +/// See [`DbProxyEndpointAlreadyExistsFault`](crate::error::DbProxyEndpointAlreadyExistsFault) pub mod db_proxy_endpoint_already_exists_fault { - /// A builder for [`DBProxyEndpointAlreadyExistsFault`](crate::error::DBProxyEndpointAlreadyExistsFault) + /// A builder for [`DbProxyEndpointAlreadyExistsFault`](crate::error::DbProxyEndpointAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19811,16 +19898,16 @@ pub mod db_proxy_endpoint_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyEndpointAlreadyExistsFault`](crate::error::DBProxyEndpointAlreadyExistsFault) - pub fn build(self) -> crate::error::DBProxyEndpointAlreadyExistsFault { - crate::error::DBProxyEndpointAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbProxyEndpointAlreadyExistsFault`](crate::error::DbProxyEndpointAlreadyExistsFault) + pub fn build(self) -> crate::error::DbProxyEndpointAlreadyExistsFault { + crate::error::DbProxyEndpointAlreadyExistsFault { message: self.message, } } } } -impl DBProxyEndpointAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBProxyEndpointAlreadyExistsFault`](crate::error::DBProxyEndpointAlreadyExistsFault) +impl DbProxyEndpointAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbProxyEndpointAlreadyExistsFault`](crate::error::DbProxyEndpointAlreadyExistsFault) pub fn builder() -> crate::error::db_proxy_endpoint_already_exists_fault::Builder { crate::error::db_proxy_endpoint_already_exists_fault::Builder::default() } @@ -19829,34 +19916,34 @@ impl DBProxyEndpointAlreadyExistsFault { ///

    The specified proxy name must be unique for all proxies owned by your AWS account in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyAlreadyExistsFault { +pub struct DbProxyAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyAlreadyExistsFault { +impl std::fmt::Debug for DbProxyAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbProxyAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyAlreadyExistsFault { +impl DbProxyAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyAlreadyExistsFault { +impl std::fmt::Display for DbProxyAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyAlreadyExistsFault")?; + write!(f, "DbProxyAlreadyExistsFault [DBProxyAlreadyExistsFault]")?; if let Some(inner_73) = &self.message { write!(f, ": {}", inner_73)?; } Ok(()) } } -impl std::error::Error for DBProxyAlreadyExistsFault {} -/// See [`DBProxyAlreadyExistsFault`](crate::error::DBProxyAlreadyExistsFault) +impl std::error::Error for DbProxyAlreadyExistsFault {} +/// See [`DbProxyAlreadyExistsFault`](crate::error::DbProxyAlreadyExistsFault) pub mod db_proxy_already_exists_fault { - /// A builder for [`DBProxyAlreadyExistsFault`](crate::error::DBProxyAlreadyExistsFault) + /// A builder for [`DbProxyAlreadyExistsFault`](crate::error::DbProxyAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19871,16 +19958,16 @@ pub mod db_proxy_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyAlreadyExistsFault`](crate::error::DBProxyAlreadyExistsFault) - pub fn build(self) -> crate::error::DBProxyAlreadyExistsFault { - crate::error::DBProxyAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbProxyAlreadyExistsFault`](crate::error::DbProxyAlreadyExistsFault) + pub fn build(self) -> crate::error::DbProxyAlreadyExistsFault { + crate::error::DbProxyAlreadyExistsFault { message: self.message, } } } } -impl DBProxyAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBProxyAlreadyExistsFault`](crate::error::DBProxyAlreadyExistsFault) +impl DbProxyAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbProxyAlreadyExistsFault`](crate::error::DbProxyAlreadyExistsFault) pub fn builder() -> crate::error::db_proxy_already_exists_fault::Builder { crate::error::db_proxy_already_exists_fault::Builder::default() } @@ -19890,34 +19977,37 @@ impl DBProxyAlreadyExistsFault { /// modified.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBUpgradeDependencyFailureFault { +pub struct DbUpgradeDependencyFailureFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBUpgradeDependencyFailureFault { +impl std::fmt::Debug for DbUpgradeDependencyFailureFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBUpgradeDependencyFailureFault"); + let mut formatter = f.debug_struct("DbUpgradeDependencyFailureFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBUpgradeDependencyFailureFault { +impl DbUpgradeDependencyFailureFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBUpgradeDependencyFailureFault { +impl std::fmt::Display for DbUpgradeDependencyFailureFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBUpgradeDependencyFailureFault")?; + write!( + f, + "DbUpgradeDependencyFailureFault [DBUpgradeDependencyFailureFault]" + )?; if let Some(inner_74) = &self.message { write!(f, ": {}", inner_74)?; } Ok(()) } } -impl std::error::Error for DBUpgradeDependencyFailureFault {} -/// See [`DBUpgradeDependencyFailureFault`](crate::error::DBUpgradeDependencyFailureFault) +impl std::error::Error for DbUpgradeDependencyFailureFault {} +/// See [`DbUpgradeDependencyFailureFault`](crate::error::DbUpgradeDependencyFailureFault) pub mod db_upgrade_dependency_failure_fault { - /// A builder for [`DBUpgradeDependencyFailureFault`](crate::error::DBUpgradeDependencyFailureFault) + /// A builder for [`DbUpgradeDependencyFailureFault`](crate::error::DbUpgradeDependencyFailureFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19932,16 +20022,16 @@ pub mod db_upgrade_dependency_failure_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBUpgradeDependencyFailureFault`](crate::error::DBUpgradeDependencyFailureFault) - pub fn build(self) -> crate::error::DBUpgradeDependencyFailureFault { - crate::error::DBUpgradeDependencyFailureFault { + /// Consumes the builder and constructs a [`DbUpgradeDependencyFailureFault`](crate::error::DbUpgradeDependencyFailureFault) + pub fn build(self) -> crate::error::DbUpgradeDependencyFailureFault { + crate::error::DbUpgradeDependencyFailureFault { message: self.message, } } } } -impl DBUpgradeDependencyFailureFault { - /// Creates a new builder-style object to manufacture [`DBUpgradeDependencyFailureFault`](crate::error::DBUpgradeDependencyFailureFault) +impl DbUpgradeDependencyFailureFault { + /// Creates a new builder-style object to manufacture [`DbUpgradeDependencyFailureFault`](crate::error::DbUpgradeDependencyFailureFault) pub fn builder() -> crate::error::db_upgrade_dependency_failure_fault::Builder { crate::error::db_upgrade_dependency_failure_fault::Builder::default() } @@ -20013,34 +20103,37 @@ impl CertificateNotFoundFault { ///

    The requested operation can't be performed on the endpoint while the endpoint is in this state.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBClusterEndpointStateFault { +pub struct InvalidDbClusterEndpointStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBClusterEndpointStateFault { +impl std::fmt::Debug for InvalidDbClusterEndpointStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBClusterEndpointStateFault"); + let mut formatter = f.debug_struct("InvalidDbClusterEndpointStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBClusterEndpointStateFault { +impl InvalidDbClusterEndpointStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBClusterEndpointStateFault { +impl std::fmt::Display for InvalidDbClusterEndpointStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBClusterEndpointStateFault")?; + write!( + f, + "InvalidDbClusterEndpointStateFault [InvalidDBClusterEndpointStateFault]" + )?; if let Some(inner_76) = &self.message { write!(f, ": {}", inner_76)?; } Ok(()) } } -impl std::error::Error for InvalidDBClusterEndpointStateFault {} -/// See [`InvalidDBClusterEndpointStateFault`](crate::error::InvalidDBClusterEndpointStateFault) +impl std::error::Error for InvalidDbClusterEndpointStateFault {} +/// See [`InvalidDbClusterEndpointStateFault`](crate::error::InvalidDbClusterEndpointStateFault) pub mod invalid_db_cluster_endpoint_state_fault { - /// A builder for [`InvalidDBClusterEndpointStateFault`](crate::error::InvalidDBClusterEndpointStateFault) + /// A builder for [`InvalidDbClusterEndpointStateFault`](crate::error::InvalidDbClusterEndpointStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20055,16 +20148,16 @@ pub mod invalid_db_cluster_endpoint_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBClusterEndpointStateFault`](crate::error::InvalidDBClusterEndpointStateFault) - pub fn build(self) -> crate::error::InvalidDBClusterEndpointStateFault { - crate::error::InvalidDBClusterEndpointStateFault { + /// Consumes the builder and constructs a [`InvalidDbClusterEndpointStateFault`](crate::error::InvalidDbClusterEndpointStateFault) + pub fn build(self) -> crate::error::InvalidDbClusterEndpointStateFault { + crate::error::InvalidDbClusterEndpointStateFault { message: self.message, } } } } -impl InvalidDBClusterEndpointStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBClusterEndpointStateFault`](crate::error::InvalidDBClusterEndpointStateFault) +impl InvalidDbClusterEndpointStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbClusterEndpointStateFault`](crate::error::InvalidDbClusterEndpointStateFault) pub fn builder() -> crate::error::invalid_db_cluster_endpoint_state_fault::Builder { crate::error::invalid_db_cluster_endpoint_state_fault::Builder::default() } @@ -20073,34 +20166,37 @@ impl InvalidDBClusterEndpointStateFault { ///

    The specified custom endpoint doesn't exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterEndpointNotFoundFault { +pub struct DbClusterEndpointNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterEndpointNotFoundFault { +impl std::fmt::Debug for DbClusterEndpointNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterEndpointNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterEndpointNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterEndpointNotFoundFault { +impl DbClusterEndpointNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterEndpointNotFoundFault { +impl std::fmt::Display for DbClusterEndpointNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterEndpointNotFoundFault")?; + write!( + f, + "DbClusterEndpointNotFoundFault [DBClusterEndpointNotFoundFault]" + )?; if let Some(inner_77) = &self.message { write!(f, ": {}", inner_77)?; } Ok(()) } } -impl std::error::Error for DBClusterEndpointNotFoundFault {} -/// See [`DBClusterEndpointNotFoundFault`](crate::error::DBClusterEndpointNotFoundFault) +impl std::error::Error for DbClusterEndpointNotFoundFault {} +/// See [`DbClusterEndpointNotFoundFault`](crate::error::DbClusterEndpointNotFoundFault) pub mod db_cluster_endpoint_not_found_fault { - /// A builder for [`DBClusterEndpointNotFoundFault`](crate::error::DBClusterEndpointNotFoundFault) + /// A builder for [`DbClusterEndpointNotFoundFault`](crate::error::DbClusterEndpointNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20115,16 +20211,16 @@ pub mod db_cluster_endpoint_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterEndpointNotFoundFault`](crate::error::DBClusterEndpointNotFoundFault) - pub fn build(self) -> crate::error::DBClusterEndpointNotFoundFault { - crate::error::DBClusterEndpointNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterEndpointNotFoundFault`](crate::error::DbClusterEndpointNotFoundFault) + pub fn build(self) -> crate::error::DbClusterEndpointNotFoundFault { + crate::error::DbClusterEndpointNotFoundFault { message: self.message, } } } } -impl DBClusterEndpointNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterEndpointNotFoundFault`](crate::error::DBClusterEndpointNotFoundFault) +impl DbClusterEndpointNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterEndpointNotFoundFault`](crate::error::DbClusterEndpointNotFoundFault) pub fn builder() -> crate::error::db_cluster_endpoint_not_found_fault::Builder { crate::error::db_cluster_endpoint_not_found_fault::Builder::default() } @@ -20136,34 +20232,37 @@ impl DBClusterEndpointNotFoundFault { /// 32, 64, 128, and 256.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBClusterCapacityFault { +pub struct InvalidDbClusterCapacityFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBClusterCapacityFault { +impl std::fmt::Debug for InvalidDbClusterCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBClusterCapacityFault"); + let mut formatter = f.debug_struct("InvalidDbClusterCapacityFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBClusterCapacityFault { +impl InvalidDbClusterCapacityFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBClusterCapacityFault { +impl std::fmt::Display for InvalidDbClusterCapacityFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBClusterCapacityFault")?; + write!( + f, + "InvalidDbClusterCapacityFault [InvalidDBClusterCapacityFault]" + )?; if let Some(inner_78) = &self.message { write!(f, ": {}", inner_78)?; } Ok(()) } } -impl std::error::Error for InvalidDBClusterCapacityFault {} -/// See [`InvalidDBClusterCapacityFault`](crate::error::InvalidDBClusterCapacityFault) +impl std::error::Error for InvalidDbClusterCapacityFault {} +/// See [`InvalidDbClusterCapacityFault`](crate::error::InvalidDbClusterCapacityFault) pub mod invalid_db_cluster_capacity_fault { - /// A builder for [`InvalidDBClusterCapacityFault`](crate::error::InvalidDBClusterCapacityFault) + /// A builder for [`InvalidDbClusterCapacityFault`](crate::error::InvalidDbClusterCapacityFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20178,16 +20277,16 @@ pub mod invalid_db_cluster_capacity_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBClusterCapacityFault`](crate::error::InvalidDBClusterCapacityFault) - pub fn build(self) -> crate::error::InvalidDBClusterCapacityFault { - crate::error::InvalidDBClusterCapacityFault { + /// Consumes the builder and constructs a [`InvalidDbClusterCapacityFault`](crate::error::InvalidDbClusterCapacityFault) + pub fn build(self) -> crate::error::InvalidDbClusterCapacityFault { + crate::error::InvalidDbClusterCapacityFault { message: self.message, } } } } -impl InvalidDBClusterCapacityFault { - /// Creates a new builder-style object to manufacture [`InvalidDBClusterCapacityFault`](crate::error::InvalidDBClusterCapacityFault) +impl InvalidDbClusterCapacityFault { + /// Creates a new builder-style object to manufacture [`InvalidDbClusterCapacityFault`](crate::error::InvalidDbClusterCapacityFault) pub fn builder() -> crate::error::invalid_db_cluster_capacity_fault::Builder { crate::error::invalid_db_cluster_capacity_fault::Builder::default() } @@ -20319,34 +20418,34 @@ impl CustomAvailabilityZoneNotFoundFault { /// LogFileName doesn't refer to an existing DB log file.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBLogFileNotFoundFault { +pub struct DbLogFileNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBLogFileNotFoundFault { +impl std::fmt::Debug for DbLogFileNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBLogFileNotFoundFault"); + let mut formatter = f.debug_struct("DbLogFileNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBLogFileNotFoundFault { +impl DbLogFileNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBLogFileNotFoundFault { +impl std::fmt::Display for DbLogFileNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBLogFileNotFoundFault")?; + write!(f, "DbLogFileNotFoundFault [DBLogFileNotFoundFault]")?; if let Some(inner_81) = &self.message { write!(f, ": {}", inner_81)?; } Ok(()) } } -impl std::error::Error for DBLogFileNotFoundFault {} -/// See [`DBLogFileNotFoundFault`](crate::error::DBLogFileNotFoundFault) +impl std::error::Error for DbLogFileNotFoundFault {} +/// See [`DbLogFileNotFoundFault`](crate::error::DbLogFileNotFoundFault) pub mod db_log_file_not_found_fault { - /// A builder for [`DBLogFileNotFoundFault`](crate::error::DBLogFileNotFoundFault) + /// A builder for [`DbLogFileNotFoundFault`](crate::error::DbLogFileNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20361,16 +20460,16 @@ pub mod db_log_file_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBLogFileNotFoundFault`](crate::error::DBLogFileNotFoundFault) - pub fn build(self) -> crate::error::DBLogFileNotFoundFault { - crate::error::DBLogFileNotFoundFault { + /// Consumes the builder and constructs a [`DbLogFileNotFoundFault`](crate::error::DbLogFileNotFoundFault) + pub fn build(self) -> crate::error::DbLogFileNotFoundFault { + crate::error::DbLogFileNotFoundFault { message: self.message, } } } } -impl DBLogFileNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBLogFileNotFoundFault`](crate::error::DBLogFileNotFoundFault) +impl DbLogFileNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbLogFileNotFoundFault`](crate::error::DbLogFileNotFoundFault) pub fn builder() -> crate::error::db_log_file_not_found_fault::Builder { crate::error::db_log_file_not_found_fault::Builder::default() } @@ -20379,34 +20478,37 @@ impl DBLogFileNotFoundFault { ///

    The specified reserved DB Instance not found.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstanceNotFoundFault { +pub struct ReservedDbInstanceNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for ReservedDBInstanceNotFoundFault { +impl std::fmt::Debug for ReservedDbInstanceNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstanceNotFoundFault"); + let mut formatter = f.debug_struct("ReservedDbInstanceNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl ReservedDBInstanceNotFoundFault { +impl ReservedDbInstanceNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ReservedDBInstanceNotFoundFault { +impl std::fmt::Display for ReservedDbInstanceNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ReservedDBInstanceNotFoundFault")?; + write!( + f, + "ReservedDbInstanceNotFoundFault [ReservedDBInstanceNotFoundFault]" + )?; if let Some(inner_82) = &self.message { write!(f, ": {}", inner_82)?; } Ok(()) } } -impl std::error::Error for ReservedDBInstanceNotFoundFault {} -/// See [`ReservedDBInstanceNotFoundFault`](crate::error::ReservedDBInstanceNotFoundFault) +impl std::error::Error for ReservedDbInstanceNotFoundFault {} +/// See [`ReservedDbInstanceNotFoundFault`](crate::error::ReservedDbInstanceNotFoundFault) pub mod reserved_db_instance_not_found_fault { - /// A builder for [`ReservedDBInstanceNotFoundFault`](crate::error::ReservedDBInstanceNotFoundFault) + /// A builder for [`ReservedDbInstanceNotFoundFault`](crate::error::ReservedDbInstanceNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20421,16 +20523,16 @@ pub mod reserved_db_instance_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstanceNotFoundFault`](crate::error::ReservedDBInstanceNotFoundFault) - pub fn build(self) -> crate::error::ReservedDBInstanceNotFoundFault { - crate::error::ReservedDBInstanceNotFoundFault { + /// Consumes the builder and constructs a [`ReservedDbInstanceNotFoundFault`](crate::error::ReservedDbInstanceNotFoundFault) + pub fn build(self) -> crate::error::ReservedDbInstanceNotFoundFault { + crate::error::ReservedDbInstanceNotFoundFault { message: self.message, } } } } -impl ReservedDBInstanceNotFoundFault { - /// Creates a new builder-style object to manufacture [`ReservedDBInstanceNotFoundFault`](crate::error::ReservedDBInstanceNotFoundFault) +impl ReservedDbInstanceNotFoundFault { + /// Creates a new builder-style object to manufacture [`ReservedDbInstanceNotFoundFault`](crate::error::ReservedDbInstanceNotFoundFault) pub fn builder() -> crate::error::reserved_db_instance_not_found_fault::Builder { crate::error::reserved_db_instance_not_found_fault::Builder::default() } @@ -20560,34 +20662,34 @@ impl ExportTaskNotFoundFault { ///

    The specified RDS DB instance or Aurora DB cluster isn't available for a proxy owned by your AWS account in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyTargetNotFoundFault { +pub struct DbProxyTargetNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyTargetNotFoundFault { +impl std::fmt::Debug for DbProxyTargetNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyTargetNotFoundFault"); + let mut formatter = f.debug_struct("DbProxyTargetNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyTargetNotFoundFault { +impl DbProxyTargetNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyTargetNotFoundFault { +impl std::fmt::Display for DbProxyTargetNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyTargetNotFoundFault")?; + write!(f, "DbProxyTargetNotFoundFault [DBProxyTargetNotFoundFault]")?; if let Some(inner_85) = &self.message { write!(f, ": {}", inner_85)?; } Ok(()) } } -impl std::error::Error for DBProxyTargetNotFoundFault {} -/// See [`DBProxyTargetNotFoundFault`](crate::error::DBProxyTargetNotFoundFault) +impl std::error::Error for DbProxyTargetNotFoundFault {} +/// See [`DbProxyTargetNotFoundFault`](crate::error::DbProxyTargetNotFoundFault) pub mod db_proxy_target_not_found_fault { - /// A builder for [`DBProxyTargetNotFoundFault`](crate::error::DBProxyTargetNotFoundFault) + /// A builder for [`DbProxyTargetNotFoundFault`](crate::error::DbProxyTargetNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20602,16 +20704,16 @@ pub mod db_proxy_target_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyTargetNotFoundFault`](crate::error::DBProxyTargetNotFoundFault) - pub fn build(self) -> crate::error::DBProxyTargetNotFoundFault { - crate::error::DBProxyTargetNotFoundFault { + /// Consumes the builder and constructs a [`DbProxyTargetNotFoundFault`](crate::error::DbProxyTargetNotFoundFault) + pub fn build(self) -> crate::error::DbProxyTargetNotFoundFault { + crate::error::DbProxyTargetNotFoundFault { message: self.message, } } } } -impl DBProxyTargetNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBProxyTargetNotFoundFault`](crate::error::DBProxyTargetNotFoundFault) +impl DbProxyTargetNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbProxyTargetNotFoundFault`](crate::error::DbProxyTargetNotFoundFault) pub fn builder() -> crate::error::db_proxy_target_not_found_fault::Builder { crate::error::db_proxy_target_not_found_fault::Builder::default() } @@ -20621,34 +20723,37 @@ impl DBProxyTargetNotFoundFault { /// BacktrackIdentifier doesn't refer to an existing backtrack.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterBacktrackNotFoundFault { +pub struct DbClusterBacktrackNotFoundFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterBacktrackNotFoundFault { +impl std::fmt::Debug for DbClusterBacktrackNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterBacktrackNotFoundFault"); + let mut formatter = f.debug_struct("DbClusterBacktrackNotFoundFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterBacktrackNotFoundFault { +impl DbClusterBacktrackNotFoundFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterBacktrackNotFoundFault { +impl std::fmt::Display for DbClusterBacktrackNotFoundFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterBacktrackNotFoundFault")?; + write!( + f, + "DbClusterBacktrackNotFoundFault [DBClusterBacktrackNotFoundFault]" + )?; if let Some(inner_86) = &self.message { write!(f, ": {}", inner_86)?; } Ok(()) } } -impl std::error::Error for DBClusterBacktrackNotFoundFault {} -/// See [`DBClusterBacktrackNotFoundFault`](crate::error::DBClusterBacktrackNotFoundFault) +impl std::error::Error for DbClusterBacktrackNotFoundFault {} +/// See [`DbClusterBacktrackNotFoundFault`](crate::error::DbClusterBacktrackNotFoundFault) pub mod db_cluster_backtrack_not_found_fault { - /// A builder for [`DBClusterBacktrackNotFoundFault`](crate::error::DBClusterBacktrackNotFoundFault) + /// A builder for [`DbClusterBacktrackNotFoundFault`](crate::error::DbClusterBacktrackNotFoundFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20663,16 +20768,16 @@ pub mod db_cluster_backtrack_not_found_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterBacktrackNotFoundFault`](crate::error::DBClusterBacktrackNotFoundFault) - pub fn build(self) -> crate::error::DBClusterBacktrackNotFoundFault { - crate::error::DBClusterBacktrackNotFoundFault { + /// Consumes the builder and constructs a [`DbClusterBacktrackNotFoundFault`](crate::error::DbClusterBacktrackNotFoundFault) + pub fn build(self) -> crate::error::DbClusterBacktrackNotFoundFault { + crate::error::DbClusterBacktrackNotFoundFault { message: self.message, } } } } -impl DBClusterBacktrackNotFoundFault { - /// Creates a new builder-style object to manufacture [`DBClusterBacktrackNotFoundFault`](crate::error::DBClusterBacktrackNotFoundFault) +impl DbClusterBacktrackNotFoundFault { + /// Creates a new builder-style object to manufacture [`DbClusterBacktrackNotFoundFault`](crate::error::DbClusterBacktrackNotFoundFault) pub fn builder() -> crate::error::db_cluster_backtrack_not_found_fault::Builder { crate::error::db_cluster_backtrack_not_found_fault::Builder::default() } @@ -20743,34 +20848,34 @@ impl InvalidEventSubscriptionStateFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBSubnetStateFault { +pub struct InvalidDbSubnetStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBSubnetStateFault { +impl std::fmt::Debug for InvalidDbSubnetStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBSubnetStateFault"); + let mut formatter = f.debug_struct("InvalidDbSubnetStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBSubnetStateFault { +impl InvalidDbSubnetStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBSubnetStateFault { +impl std::fmt::Display for InvalidDbSubnetStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBSubnetStateFault")?; + write!(f, "InvalidDbSubnetStateFault [InvalidDBSubnetStateFault]")?; if let Some(inner_88) = &self.message { write!(f, ": {}", inner_88)?; } Ok(()) } } -impl std::error::Error for InvalidDBSubnetStateFault {} -/// See [`InvalidDBSubnetStateFault`](crate::error::InvalidDBSubnetStateFault) +impl std::error::Error for InvalidDbSubnetStateFault {} +/// See [`InvalidDbSubnetStateFault`](crate::error::InvalidDbSubnetStateFault) pub mod invalid_db_subnet_state_fault { - /// A builder for [`InvalidDBSubnetStateFault`](crate::error::InvalidDBSubnetStateFault) + /// A builder for [`InvalidDbSubnetStateFault`](crate::error::InvalidDbSubnetStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20785,16 +20890,16 @@ pub mod invalid_db_subnet_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBSubnetStateFault`](crate::error::InvalidDBSubnetStateFault) - pub fn build(self) -> crate::error::InvalidDBSubnetStateFault { - crate::error::InvalidDBSubnetStateFault { + /// Consumes the builder and constructs a [`InvalidDbSubnetStateFault`](crate::error::InvalidDbSubnetStateFault) + pub fn build(self) -> crate::error::InvalidDbSubnetStateFault { + crate::error::InvalidDbSubnetStateFault { message: self.message, } } } } -impl InvalidDBSubnetStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBSubnetStateFault`](crate::error::InvalidDBSubnetStateFault) +impl InvalidDbSubnetStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbSubnetStateFault`](crate::error::InvalidDbSubnetStateFault) pub fn builder() -> crate::error::invalid_db_subnet_state_fault::Builder { crate::error::invalid_db_subnet_state_fault::Builder::default() } @@ -20804,34 +20909,34 @@ impl InvalidDBSubnetStateFault { /// For example, this automated backup is associated with an active instance.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBInstanceAutomatedBackupStateFault { +pub struct InvalidDbInstanceAutomatedBackupStateFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBInstanceAutomatedBackupStateFault { +impl std::fmt::Debug for InvalidDbInstanceAutomatedBackupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBInstanceAutomatedBackupStateFault"); + let mut formatter = f.debug_struct("InvalidDbInstanceAutomatedBackupStateFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBInstanceAutomatedBackupStateFault { +impl InvalidDbInstanceAutomatedBackupStateFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBInstanceAutomatedBackupStateFault { +impl std::fmt::Display for InvalidDbInstanceAutomatedBackupStateFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBInstanceAutomatedBackupStateFault")?; + write!(f, "InvalidDbInstanceAutomatedBackupStateFault [InvalidDBInstanceAutomatedBackupStateFault]")?; if let Some(inner_89) = &self.message { write!(f, ": {}", inner_89)?; } Ok(()) } } -impl std::error::Error for InvalidDBInstanceAutomatedBackupStateFault {} -/// See [`InvalidDBInstanceAutomatedBackupStateFault`](crate::error::InvalidDBInstanceAutomatedBackupStateFault) +impl std::error::Error for InvalidDbInstanceAutomatedBackupStateFault {} +/// See [`InvalidDbInstanceAutomatedBackupStateFault`](crate::error::InvalidDbInstanceAutomatedBackupStateFault) pub mod invalid_db_instance_automated_backup_state_fault { - /// A builder for [`InvalidDBInstanceAutomatedBackupStateFault`](crate::error::InvalidDBInstanceAutomatedBackupStateFault) + /// A builder for [`InvalidDbInstanceAutomatedBackupStateFault`](crate::error::InvalidDbInstanceAutomatedBackupStateFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20846,16 +20951,16 @@ pub mod invalid_db_instance_automated_backup_state_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBInstanceAutomatedBackupStateFault`](crate::error::InvalidDBInstanceAutomatedBackupStateFault) - pub fn build(self) -> crate::error::InvalidDBInstanceAutomatedBackupStateFault { - crate::error::InvalidDBInstanceAutomatedBackupStateFault { + /// Consumes the builder and constructs a [`InvalidDbInstanceAutomatedBackupStateFault`](crate::error::InvalidDbInstanceAutomatedBackupStateFault) + pub fn build(self) -> crate::error::InvalidDbInstanceAutomatedBackupStateFault { + crate::error::InvalidDbInstanceAutomatedBackupStateFault { message: self.message, } } } } -impl InvalidDBInstanceAutomatedBackupStateFault { - /// Creates a new builder-style object to manufacture [`InvalidDBInstanceAutomatedBackupStateFault`](crate::error::InvalidDBInstanceAutomatedBackupStateFault) +impl InvalidDbInstanceAutomatedBackupStateFault { + /// Creates a new builder-style object to manufacture [`InvalidDbInstanceAutomatedBackupStateFault`](crate::error::InvalidDbInstanceAutomatedBackupStateFault) pub fn builder() -> crate::error::invalid_db_instance_automated_backup_state_fault::Builder { crate::error::invalid_db_instance_automated_backup_state_fault::Builder::default() } @@ -20864,34 +20969,37 @@ impl InvalidDBInstanceAutomatedBackupStateFault { ///

    The user already has a DB cluster snapshot with the given identifier.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterSnapshotAlreadyExistsFault { +pub struct DbClusterSnapshotAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterSnapshotAlreadyExistsFault { +impl std::fmt::Debug for DbClusterSnapshotAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterSnapshotAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbClusterSnapshotAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterSnapshotAlreadyExistsFault { +impl DbClusterSnapshotAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterSnapshotAlreadyExistsFault { +impl std::fmt::Display for DbClusterSnapshotAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterSnapshotAlreadyExistsFault")?; + write!( + f, + "DbClusterSnapshotAlreadyExistsFault [DBClusterSnapshotAlreadyExistsFault]" + )?; if let Some(inner_90) = &self.message { write!(f, ": {}", inner_90)?; } Ok(()) } } -impl std::error::Error for DBClusterSnapshotAlreadyExistsFault {} -/// See [`DBClusterSnapshotAlreadyExistsFault`](crate::error::DBClusterSnapshotAlreadyExistsFault) +impl std::error::Error for DbClusterSnapshotAlreadyExistsFault {} +/// See [`DbClusterSnapshotAlreadyExistsFault`](crate::error::DbClusterSnapshotAlreadyExistsFault) pub mod db_cluster_snapshot_already_exists_fault { - /// A builder for [`DBClusterSnapshotAlreadyExistsFault`](crate::error::DBClusterSnapshotAlreadyExistsFault) + /// A builder for [`DbClusterSnapshotAlreadyExistsFault`](crate::error::DbClusterSnapshotAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20906,16 +21014,16 @@ pub mod db_cluster_snapshot_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterSnapshotAlreadyExistsFault`](crate::error::DBClusterSnapshotAlreadyExistsFault) - pub fn build(self) -> crate::error::DBClusterSnapshotAlreadyExistsFault { - crate::error::DBClusterSnapshotAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbClusterSnapshotAlreadyExistsFault`](crate::error::DbClusterSnapshotAlreadyExistsFault) + pub fn build(self) -> crate::error::DbClusterSnapshotAlreadyExistsFault { + crate::error::DbClusterSnapshotAlreadyExistsFault { message: self.message, } } } } -impl DBClusterSnapshotAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBClusterSnapshotAlreadyExistsFault`](crate::error::DBClusterSnapshotAlreadyExistsFault) +impl DbClusterSnapshotAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbClusterSnapshotAlreadyExistsFault`](crate::error::DbClusterSnapshotAlreadyExistsFault) pub fn builder() -> crate::error::db_cluster_snapshot_already_exists_fault::Builder { crate::error::db_cluster_snapshot_already_exists_fault::Builder::default() } @@ -21225,34 +21333,37 @@ impl SubscriptionAlreadyExistFault { /// groups.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetGroupQuotaExceededFault { +pub struct DbSubnetGroupQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetGroupQuotaExceededFault { +impl std::fmt::Debug for DbSubnetGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetGroupQuotaExceededFault"); + let mut formatter = f.debug_struct("DbSubnetGroupQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetGroupQuotaExceededFault { +impl DbSubnetGroupQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetGroupQuotaExceededFault { +impl std::fmt::Display for DbSubnetGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetGroupQuotaExceededFault")?; + write!( + f, + "DbSubnetGroupQuotaExceededFault [DBSubnetGroupQuotaExceededFault]" + )?; if let Some(inner_96) = &self.message { write!(f, ": {}", inner_96)?; } Ok(()) } } -impl std::error::Error for DBSubnetGroupQuotaExceededFault {} -/// See [`DBSubnetGroupQuotaExceededFault`](crate::error::DBSubnetGroupQuotaExceededFault) +impl std::error::Error for DbSubnetGroupQuotaExceededFault {} +/// See [`DbSubnetGroupQuotaExceededFault`](crate::error::DbSubnetGroupQuotaExceededFault) pub mod db_subnet_group_quota_exceeded_fault { - /// A builder for [`DBSubnetGroupQuotaExceededFault`](crate::error::DBSubnetGroupQuotaExceededFault) + /// A builder for [`DbSubnetGroupQuotaExceededFault`](crate::error::DbSubnetGroupQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21267,16 +21378,16 @@ pub mod db_subnet_group_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetGroupQuotaExceededFault`](crate::error::DBSubnetGroupQuotaExceededFault) - pub fn build(self) -> crate::error::DBSubnetGroupQuotaExceededFault { - crate::error::DBSubnetGroupQuotaExceededFault { + /// Consumes the builder and constructs a [`DbSubnetGroupQuotaExceededFault`](crate::error::DbSubnetGroupQuotaExceededFault) + pub fn build(self) -> crate::error::DbSubnetGroupQuotaExceededFault { + crate::error::DbSubnetGroupQuotaExceededFault { message: self.message, } } } } -impl DBSubnetGroupQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBSubnetGroupQuotaExceededFault`](crate::error::DBSubnetGroupQuotaExceededFault) +impl DbSubnetGroupQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbSubnetGroupQuotaExceededFault`](crate::error::DbSubnetGroupQuotaExceededFault) pub fn builder() -> crate::error::db_subnet_group_quota_exceeded_fault::Builder { crate::error::db_subnet_group_quota_exceeded_fault::Builder::default() } @@ -21287,34 +21398,37 @@ impl DBSubnetGroupQuotaExceededFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetGroupAlreadyExistsFault { +pub struct DbSubnetGroupAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetGroupAlreadyExistsFault { +impl std::fmt::Debug for DbSubnetGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetGroupAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbSubnetGroupAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetGroupAlreadyExistsFault { +impl DbSubnetGroupAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetGroupAlreadyExistsFault { +impl std::fmt::Display for DbSubnetGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetGroupAlreadyExistsFault")?; + write!( + f, + "DbSubnetGroupAlreadyExistsFault [DBSubnetGroupAlreadyExistsFault]" + )?; if let Some(inner_97) = &self.message { write!(f, ": {}", inner_97)?; } Ok(()) } } -impl std::error::Error for DBSubnetGroupAlreadyExistsFault {} -/// See [`DBSubnetGroupAlreadyExistsFault`](crate::error::DBSubnetGroupAlreadyExistsFault) +impl std::error::Error for DbSubnetGroupAlreadyExistsFault {} +/// See [`DbSubnetGroupAlreadyExistsFault`](crate::error::DbSubnetGroupAlreadyExistsFault) pub mod db_subnet_group_already_exists_fault { - /// A builder for [`DBSubnetGroupAlreadyExistsFault`](crate::error::DBSubnetGroupAlreadyExistsFault) + /// A builder for [`DbSubnetGroupAlreadyExistsFault`](crate::error::DbSubnetGroupAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21329,16 +21443,16 @@ pub mod db_subnet_group_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetGroupAlreadyExistsFault`](crate::error::DBSubnetGroupAlreadyExistsFault) - pub fn build(self) -> crate::error::DBSubnetGroupAlreadyExistsFault { - crate::error::DBSubnetGroupAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbSubnetGroupAlreadyExistsFault`](crate::error::DbSubnetGroupAlreadyExistsFault) + pub fn build(self) -> crate::error::DbSubnetGroupAlreadyExistsFault { + crate::error::DbSubnetGroupAlreadyExistsFault { message: self.message, } } } } -impl DBSubnetGroupAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBSubnetGroupAlreadyExistsFault`](crate::error::DBSubnetGroupAlreadyExistsFault) +impl DbSubnetGroupAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbSubnetGroupAlreadyExistsFault`](crate::error::DbSubnetGroupAlreadyExistsFault) pub fn builder() -> crate::error::db_subnet_group_already_exists_fault::Builder { crate::error::db_subnet_group_already_exists_fault::Builder::default() } @@ -21348,34 +21462,37 @@ impl DBSubnetGroupAlreadyExistsFault { /// groups.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroupQuotaExceededFault { +pub struct DbSecurityGroupQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroupQuotaExceededFault { +impl std::fmt::Debug for DbSecurityGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroupQuotaExceededFault"); + let mut formatter = f.debug_struct("DbSecurityGroupQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSecurityGroupQuotaExceededFault { +impl DbSecurityGroupQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSecurityGroupQuotaExceededFault { +impl std::fmt::Display for DbSecurityGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSecurityGroupQuotaExceededFault")?; + write!( + f, + "DbSecurityGroupQuotaExceededFault [DBSecurityGroupQuotaExceededFault]" + )?; if let Some(inner_98) = &self.message { write!(f, ": {}", inner_98)?; } Ok(()) } } -impl std::error::Error for DBSecurityGroupQuotaExceededFault {} -/// See [`DBSecurityGroupQuotaExceededFault`](crate::error::DBSecurityGroupQuotaExceededFault) +impl std::error::Error for DbSecurityGroupQuotaExceededFault {} +/// See [`DbSecurityGroupQuotaExceededFault`](crate::error::DbSecurityGroupQuotaExceededFault) pub mod db_security_group_quota_exceeded_fault { - /// A builder for [`DBSecurityGroupQuotaExceededFault`](crate::error::DBSecurityGroupQuotaExceededFault) + /// A builder for [`DbSecurityGroupQuotaExceededFault`](crate::error::DbSecurityGroupQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21390,16 +21507,16 @@ pub mod db_security_group_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroupQuotaExceededFault`](crate::error::DBSecurityGroupQuotaExceededFault) - pub fn build(self) -> crate::error::DBSecurityGroupQuotaExceededFault { - crate::error::DBSecurityGroupQuotaExceededFault { + /// Consumes the builder and constructs a [`DbSecurityGroupQuotaExceededFault`](crate::error::DbSecurityGroupQuotaExceededFault) + pub fn build(self) -> crate::error::DbSecurityGroupQuotaExceededFault { + crate::error::DbSecurityGroupQuotaExceededFault { message: self.message, } } } } -impl DBSecurityGroupQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBSecurityGroupQuotaExceededFault`](crate::error::DBSecurityGroupQuotaExceededFault) +impl DbSecurityGroupQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbSecurityGroupQuotaExceededFault`](crate::error::DbSecurityGroupQuotaExceededFault) pub fn builder() -> crate::error::db_security_group_quota_exceeded_fault::Builder { crate::error::db_security_group_quota_exceeded_fault::Builder::default() } @@ -21408,34 +21525,37 @@ impl DBSecurityGroupQuotaExceededFault { ///

    A DB security group isn't allowed for this action.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroupNotSupportedFault { +pub struct DbSecurityGroupNotSupportedFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroupNotSupportedFault { +impl std::fmt::Debug for DbSecurityGroupNotSupportedFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroupNotSupportedFault"); + let mut formatter = f.debug_struct("DbSecurityGroupNotSupportedFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSecurityGroupNotSupportedFault { +impl DbSecurityGroupNotSupportedFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSecurityGroupNotSupportedFault { +impl std::fmt::Display for DbSecurityGroupNotSupportedFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSecurityGroupNotSupportedFault")?; + write!( + f, + "DbSecurityGroupNotSupportedFault [DBSecurityGroupNotSupportedFault]" + )?; if let Some(inner_99) = &self.message { write!(f, ": {}", inner_99)?; } Ok(()) } } -impl std::error::Error for DBSecurityGroupNotSupportedFault {} -/// See [`DBSecurityGroupNotSupportedFault`](crate::error::DBSecurityGroupNotSupportedFault) +impl std::error::Error for DbSecurityGroupNotSupportedFault {} +/// See [`DbSecurityGroupNotSupportedFault`](crate::error::DbSecurityGroupNotSupportedFault) pub mod db_security_group_not_supported_fault { - /// A builder for [`DBSecurityGroupNotSupportedFault`](crate::error::DBSecurityGroupNotSupportedFault) + /// A builder for [`DbSecurityGroupNotSupportedFault`](crate::error::DbSecurityGroupNotSupportedFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21450,16 +21570,16 @@ pub mod db_security_group_not_supported_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroupNotSupportedFault`](crate::error::DBSecurityGroupNotSupportedFault) - pub fn build(self) -> crate::error::DBSecurityGroupNotSupportedFault { - crate::error::DBSecurityGroupNotSupportedFault { + /// Consumes the builder and constructs a [`DbSecurityGroupNotSupportedFault`](crate::error::DbSecurityGroupNotSupportedFault) + pub fn build(self) -> crate::error::DbSecurityGroupNotSupportedFault { + crate::error::DbSecurityGroupNotSupportedFault { message: self.message, } } } } -impl DBSecurityGroupNotSupportedFault { - /// Creates a new builder-style object to manufacture [`DBSecurityGroupNotSupportedFault`](crate::error::DBSecurityGroupNotSupportedFault) +impl DbSecurityGroupNotSupportedFault { + /// Creates a new builder-style object to manufacture [`DbSecurityGroupNotSupportedFault`](crate::error::DbSecurityGroupNotSupportedFault) pub fn builder() -> crate::error::db_security_group_not_supported_fault::Builder { crate::error::db_security_group_not_supported_fault::Builder::default() } @@ -21471,34 +21591,37 @@ impl DBSecurityGroupNotSupportedFault { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroupAlreadyExistsFault { +pub struct DbSecurityGroupAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroupAlreadyExistsFault { +impl std::fmt::Debug for DbSecurityGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroupAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbSecurityGroupAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSecurityGroupAlreadyExistsFault { +impl DbSecurityGroupAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSecurityGroupAlreadyExistsFault { +impl std::fmt::Display for DbSecurityGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSecurityGroupAlreadyExistsFault")?; + write!( + f, + "DbSecurityGroupAlreadyExistsFault [DBSecurityGroupAlreadyExistsFault]" + )?; if let Some(inner_100) = &self.message { write!(f, ": {}", inner_100)?; } Ok(()) } } -impl std::error::Error for DBSecurityGroupAlreadyExistsFault {} -/// See [`DBSecurityGroupAlreadyExistsFault`](crate::error::DBSecurityGroupAlreadyExistsFault) +impl std::error::Error for DbSecurityGroupAlreadyExistsFault {} +/// See [`DbSecurityGroupAlreadyExistsFault`](crate::error::DbSecurityGroupAlreadyExistsFault) pub mod db_security_group_already_exists_fault { - /// A builder for [`DBSecurityGroupAlreadyExistsFault`](crate::error::DBSecurityGroupAlreadyExistsFault) + /// A builder for [`DbSecurityGroupAlreadyExistsFault`](crate::error::DbSecurityGroupAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21513,16 +21636,16 @@ pub mod db_security_group_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroupAlreadyExistsFault`](crate::error::DBSecurityGroupAlreadyExistsFault) - pub fn build(self) -> crate::error::DBSecurityGroupAlreadyExistsFault { - crate::error::DBSecurityGroupAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbSecurityGroupAlreadyExistsFault`](crate::error::DbSecurityGroupAlreadyExistsFault) + pub fn build(self) -> crate::error::DbSecurityGroupAlreadyExistsFault { + crate::error::DbSecurityGroupAlreadyExistsFault { message: self.message, } } } } -impl DBSecurityGroupAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBSecurityGroupAlreadyExistsFault`](crate::error::DBSecurityGroupAlreadyExistsFault) +impl DbSecurityGroupAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbSecurityGroupAlreadyExistsFault`](crate::error::DbSecurityGroupAlreadyExistsFault) pub fn builder() -> crate::error::db_security_group_already_exists_fault::Builder { crate::error::db_security_group_already_exists_fault::Builder::default() } @@ -21531,34 +21654,37 @@ impl DBSecurityGroupAlreadyExistsFault { ///

    The DB proxy already has the maximum number of endpoints.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyEndpointQuotaExceededFault { +pub struct DbProxyEndpointQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyEndpointQuotaExceededFault { +impl std::fmt::Debug for DbProxyEndpointQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyEndpointQuotaExceededFault"); + let mut formatter = f.debug_struct("DbProxyEndpointQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyEndpointQuotaExceededFault { +impl DbProxyEndpointQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyEndpointQuotaExceededFault { +impl std::fmt::Display for DbProxyEndpointQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyEndpointQuotaExceededFault")?; + write!( + f, + "DbProxyEndpointQuotaExceededFault [DBProxyEndpointQuotaExceededFault]" + )?; if let Some(inner_101) = &self.message { write!(f, ": {}", inner_101)?; } Ok(()) } } -impl std::error::Error for DBProxyEndpointQuotaExceededFault {} -/// See [`DBProxyEndpointQuotaExceededFault`](crate::error::DBProxyEndpointQuotaExceededFault) +impl std::error::Error for DbProxyEndpointQuotaExceededFault {} +/// See [`DbProxyEndpointQuotaExceededFault`](crate::error::DbProxyEndpointQuotaExceededFault) pub mod db_proxy_endpoint_quota_exceeded_fault { - /// A builder for [`DBProxyEndpointQuotaExceededFault`](crate::error::DBProxyEndpointQuotaExceededFault) + /// A builder for [`DbProxyEndpointQuotaExceededFault`](crate::error::DbProxyEndpointQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21573,16 +21699,16 @@ pub mod db_proxy_endpoint_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyEndpointQuotaExceededFault`](crate::error::DBProxyEndpointQuotaExceededFault) - pub fn build(self) -> crate::error::DBProxyEndpointQuotaExceededFault { - crate::error::DBProxyEndpointQuotaExceededFault { + /// Consumes the builder and constructs a [`DbProxyEndpointQuotaExceededFault`](crate::error::DbProxyEndpointQuotaExceededFault) + pub fn build(self) -> crate::error::DbProxyEndpointQuotaExceededFault { + crate::error::DbProxyEndpointQuotaExceededFault { message: self.message, } } } } -impl DBProxyEndpointQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBProxyEndpointQuotaExceededFault`](crate::error::DBProxyEndpointQuotaExceededFault) +impl DbProxyEndpointQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbProxyEndpointQuotaExceededFault`](crate::error::DbProxyEndpointQuotaExceededFault) pub fn builder() -> crate::error::db_proxy_endpoint_quota_exceeded_fault::Builder { crate::error::db_proxy_endpoint_quota_exceeded_fault::Builder::default() } @@ -21591,34 +21717,34 @@ impl DBProxyEndpointQuotaExceededFault { ///

    Your AWS account already has the maximum number of proxies in the specified AWS Region.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyQuotaExceededFault { +pub struct DbProxyQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBProxyQuotaExceededFault { +impl std::fmt::Debug for DbProxyQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyQuotaExceededFault"); + let mut formatter = f.debug_struct("DbProxyQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBProxyQuotaExceededFault { +impl DbProxyQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBProxyQuotaExceededFault { +impl std::fmt::Display for DbProxyQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBProxyQuotaExceededFault")?; + write!(f, "DbProxyQuotaExceededFault [DBProxyQuotaExceededFault]")?; if let Some(inner_102) = &self.message { write!(f, ": {}", inner_102)?; } Ok(()) } } -impl std::error::Error for DBProxyQuotaExceededFault {} -/// See [`DBProxyQuotaExceededFault`](crate::error::DBProxyQuotaExceededFault) +impl std::error::Error for DbProxyQuotaExceededFault {} +/// See [`DbProxyQuotaExceededFault`](crate::error::DbProxyQuotaExceededFault) pub mod db_proxy_quota_exceeded_fault { - /// A builder for [`DBProxyQuotaExceededFault`](crate::error::DBProxyQuotaExceededFault) + /// A builder for [`DbProxyQuotaExceededFault`](crate::error::DbProxyQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21633,16 +21759,16 @@ pub mod db_proxy_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBProxyQuotaExceededFault`](crate::error::DBProxyQuotaExceededFault) - pub fn build(self) -> crate::error::DBProxyQuotaExceededFault { - crate::error::DBProxyQuotaExceededFault { + /// Consumes the builder and constructs a [`DbProxyQuotaExceededFault`](crate::error::DbProxyQuotaExceededFault) + pub fn build(self) -> crate::error::DbProxyQuotaExceededFault { + crate::error::DbProxyQuotaExceededFault { message: self.message, } } } } -impl DBProxyQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBProxyQuotaExceededFault`](crate::error::DBProxyQuotaExceededFault) +impl DbProxyQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbProxyQuotaExceededFault`](crate::error::DbProxyQuotaExceededFault) pub fn builder() -> crate::error::db_proxy_quota_exceeded_fault::Builder { crate::error::db_proxy_quota_exceeded_fault::Builder::default() } @@ -21652,34 +21778,37 @@ impl DBProxyQuotaExceededFault { /// groups.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBParameterGroupQuotaExceededFault { +pub struct DbParameterGroupQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBParameterGroupQuotaExceededFault { +impl std::fmt::Debug for DbParameterGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBParameterGroupQuotaExceededFault"); + let mut formatter = f.debug_struct("DbParameterGroupQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBParameterGroupQuotaExceededFault { +impl DbParameterGroupQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBParameterGroupQuotaExceededFault { +impl std::fmt::Display for DbParameterGroupQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBParameterGroupQuotaExceededFault")?; + write!( + f, + "DbParameterGroupQuotaExceededFault [DBParameterGroupQuotaExceededFault]" + )?; if let Some(inner_103) = &self.message { write!(f, ": {}", inner_103)?; } Ok(()) } } -impl std::error::Error for DBParameterGroupQuotaExceededFault {} -/// See [`DBParameterGroupQuotaExceededFault`](crate::error::DBParameterGroupQuotaExceededFault) +impl std::error::Error for DbParameterGroupQuotaExceededFault {} +/// See [`DbParameterGroupQuotaExceededFault`](crate::error::DbParameterGroupQuotaExceededFault) pub mod db_parameter_group_quota_exceeded_fault { - /// A builder for [`DBParameterGroupQuotaExceededFault`](crate::error::DBParameterGroupQuotaExceededFault) + /// A builder for [`DbParameterGroupQuotaExceededFault`](crate::error::DbParameterGroupQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21694,16 +21823,16 @@ pub mod db_parameter_group_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBParameterGroupQuotaExceededFault`](crate::error::DBParameterGroupQuotaExceededFault) - pub fn build(self) -> crate::error::DBParameterGroupQuotaExceededFault { - crate::error::DBParameterGroupQuotaExceededFault { + /// Consumes the builder and constructs a [`DbParameterGroupQuotaExceededFault`](crate::error::DbParameterGroupQuotaExceededFault) + pub fn build(self) -> crate::error::DbParameterGroupQuotaExceededFault { + crate::error::DbParameterGroupQuotaExceededFault { message: self.message, } } } } -impl DBParameterGroupQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBParameterGroupQuotaExceededFault`](crate::error::DBParameterGroupQuotaExceededFault) +impl DbParameterGroupQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbParameterGroupQuotaExceededFault`](crate::error::DbParameterGroupQuotaExceededFault) pub fn builder() -> crate::error::db_parameter_group_quota_exceeded_fault::Builder { crate::error::db_parameter_group_quota_exceeded_fault::Builder::default() } @@ -21712,34 +21841,37 @@ impl DBParameterGroupQuotaExceededFault { ///

    A DB parameter group with the same name exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBParameterGroupAlreadyExistsFault { +pub struct DbParameterGroupAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBParameterGroupAlreadyExistsFault { +impl std::fmt::Debug for DbParameterGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBParameterGroupAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbParameterGroupAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBParameterGroupAlreadyExistsFault { +impl DbParameterGroupAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBParameterGroupAlreadyExistsFault { +impl std::fmt::Display for DbParameterGroupAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBParameterGroupAlreadyExistsFault")?; + write!( + f, + "DbParameterGroupAlreadyExistsFault [DBParameterGroupAlreadyExistsFault]" + )?; if let Some(inner_104) = &self.message { write!(f, ": {}", inner_104)?; } Ok(()) } } -impl std::error::Error for DBParameterGroupAlreadyExistsFault {} -/// See [`DBParameterGroupAlreadyExistsFault`](crate::error::DBParameterGroupAlreadyExistsFault) +impl std::error::Error for DbParameterGroupAlreadyExistsFault {} +/// See [`DbParameterGroupAlreadyExistsFault`](crate::error::DbParameterGroupAlreadyExistsFault) pub mod db_parameter_group_already_exists_fault { - /// A builder for [`DBParameterGroupAlreadyExistsFault`](crate::error::DBParameterGroupAlreadyExistsFault) + /// A builder for [`DbParameterGroupAlreadyExistsFault`](crate::error::DbParameterGroupAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21754,16 +21886,16 @@ pub mod db_parameter_group_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBParameterGroupAlreadyExistsFault`](crate::error::DBParameterGroupAlreadyExistsFault) - pub fn build(self) -> crate::error::DBParameterGroupAlreadyExistsFault { - crate::error::DBParameterGroupAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbParameterGroupAlreadyExistsFault`](crate::error::DbParameterGroupAlreadyExistsFault) + pub fn build(self) -> crate::error::DbParameterGroupAlreadyExistsFault { + crate::error::DbParameterGroupAlreadyExistsFault { message: self.message, } } } } -impl DBParameterGroupAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBParameterGroupAlreadyExistsFault`](crate::error::DBParameterGroupAlreadyExistsFault) +impl DbParameterGroupAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbParameterGroupAlreadyExistsFault`](crate::error::DbParameterGroupAlreadyExistsFault) pub fn builder() -> crate::error::db_parameter_group_already_exists_fault::Builder { crate::error::db_parameter_group_already_exists_fault::Builder::default() } @@ -21773,34 +21905,34 @@ impl DBParameterGroupAlreadyExistsFault { /// cross-region read replica of the same source instance.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDBSubnetGroupFault { +pub struct InvalidDbSubnetGroupFault { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDBSubnetGroupFault { +impl std::fmt::Debug for InvalidDbSubnetGroupFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDBSubnetGroupFault"); + let mut formatter = f.debug_struct("InvalidDbSubnetGroupFault"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDBSubnetGroupFault { +impl InvalidDbSubnetGroupFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDBSubnetGroupFault { +impl std::fmt::Display for InvalidDbSubnetGroupFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDBSubnetGroupFault")?; + write!(f, "InvalidDbSubnetGroupFault [InvalidDBSubnetGroupFault]")?; if let Some(inner_105) = &self.message { write!(f, ": {}", inner_105)?; } Ok(()) } } -impl std::error::Error for InvalidDBSubnetGroupFault {} -/// See [`InvalidDBSubnetGroupFault`](crate::error::InvalidDBSubnetGroupFault) +impl std::error::Error for InvalidDbSubnetGroupFault {} +/// See [`InvalidDbSubnetGroupFault`](crate::error::InvalidDbSubnetGroupFault) pub mod invalid_db_subnet_group_fault { - /// A builder for [`InvalidDBSubnetGroupFault`](crate::error::InvalidDBSubnetGroupFault) + /// A builder for [`InvalidDbSubnetGroupFault`](crate::error::InvalidDbSubnetGroupFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21815,16 +21947,16 @@ pub mod invalid_db_subnet_group_fault { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDBSubnetGroupFault`](crate::error::InvalidDBSubnetGroupFault) - pub fn build(self) -> crate::error::InvalidDBSubnetGroupFault { - crate::error::InvalidDBSubnetGroupFault { + /// Consumes the builder and constructs a [`InvalidDbSubnetGroupFault`](crate::error::InvalidDbSubnetGroupFault) + pub fn build(self) -> crate::error::InvalidDbSubnetGroupFault { + crate::error::InvalidDbSubnetGroupFault { message: self.message, } } } } -impl InvalidDBSubnetGroupFault { - /// Creates a new builder-style object to manufacture [`InvalidDBSubnetGroupFault`](crate::error::InvalidDBSubnetGroupFault) +impl InvalidDbSubnetGroupFault { + /// Creates a new builder-style object to manufacture [`InvalidDbSubnetGroupFault`](crate::error::InvalidDbSubnetGroupFault) pub fn builder() -> crate::error::invalid_db_subnet_group_fault::Builder { crate::error::invalid_db_subnet_group_fault::Builder::default() } @@ -21834,34 +21966,37 @@ impl InvalidDBSubnetGroupFault { /// in the same region as the source instance.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSubnetGroupNotAllowedFault { +pub struct DbSubnetGroupNotAllowedFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBSubnetGroupNotAllowedFault { +impl std::fmt::Debug for DbSubnetGroupNotAllowedFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSubnetGroupNotAllowedFault"); + let mut formatter = f.debug_struct("DbSubnetGroupNotAllowedFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBSubnetGroupNotAllowedFault { +impl DbSubnetGroupNotAllowedFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBSubnetGroupNotAllowedFault { +impl std::fmt::Display for DbSubnetGroupNotAllowedFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBSubnetGroupNotAllowedFault")?; + write!( + f, + "DbSubnetGroupNotAllowedFault [DBSubnetGroupNotAllowedFault]" + )?; if let Some(inner_106) = &self.message { write!(f, ": {}", inner_106)?; } Ok(()) } } -impl std::error::Error for DBSubnetGroupNotAllowedFault {} -/// See [`DBSubnetGroupNotAllowedFault`](crate::error::DBSubnetGroupNotAllowedFault) +impl std::error::Error for DbSubnetGroupNotAllowedFault {} +/// See [`DbSubnetGroupNotAllowedFault`](crate::error::DbSubnetGroupNotAllowedFault) pub mod db_subnet_group_not_allowed_fault { - /// A builder for [`DBSubnetGroupNotAllowedFault`](crate::error::DBSubnetGroupNotAllowedFault) + /// A builder for [`DbSubnetGroupNotAllowedFault`](crate::error::DbSubnetGroupNotAllowedFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21876,16 +22011,16 @@ pub mod db_subnet_group_not_allowed_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBSubnetGroupNotAllowedFault`](crate::error::DBSubnetGroupNotAllowedFault) - pub fn build(self) -> crate::error::DBSubnetGroupNotAllowedFault { - crate::error::DBSubnetGroupNotAllowedFault { + /// Consumes the builder and constructs a [`DbSubnetGroupNotAllowedFault`](crate::error::DbSubnetGroupNotAllowedFault) + pub fn build(self) -> crate::error::DbSubnetGroupNotAllowedFault { + crate::error::DbSubnetGroupNotAllowedFault { message: self.message, } } } } -impl DBSubnetGroupNotAllowedFault { - /// Creates a new builder-style object to manufacture [`DBSubnetGroupNotAllowedFault`](crate::error::DBSubnetGroupNotAllowedFault) +impl DbSubnetGroupNotAllowedFault { + /// Creates a new builder-style object to manufacture [`DbSubnetGroupNotAllowedFault`](crate::error::DbSubnetGroupNotAllowedFault) pub fn builder() -> crate::error::db_subnet_group_not_allowed_fault::Builder { crate::error::db_subnet_group_not_allowed_fault::Builder::default() } @@ -21894,34 +22029,37 @@ impl DBSubnetGroupNotAllowedFault { ///

    The cluster already has the maximum number of custom endpoints.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterEndpointQuotaExceededFault { +pub struct DbClusterEndpointQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterEndpointQuotaExceededFault { +impl std::fmt::Debug for DbClusterEndpointQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterEndpointQuotaExceededFault"); + let mut formatter = f.debug_struct("DbClusterEndpointQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterEndpointQuotaExceededFault { +impl DbClusterEndpointQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterEndpointQuotaExceededFault { +impl std::fmt::Display for DbClusterEndpointQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterEndpointQuotaExceededFault")?; + write!( + f, + "DbClusterEndpointQuotaExceededFault [DBClusterEndpointQuotaExceededFault]" + )?; if let Some(inner_107) = &self.message { write!(f, ": {}", inner_107)?; } Ok(()) } } -impl std::error::Error for DBClusterEndpointQuotaExceededFault {} -/// See [`DBClusterEndpointQuotaExceededFault`](crate::error::DBClusterEndpointQuotaExceededFault) +impl std::error::Error for DbClusterEndpointQuotaExceededFault {} +/// See [`DbClusterEndpointQuotaExceededFault`](crate::error::DbClusterEndpointQuotaExceededFault) pub mod db_cluster_endpoint_quota_exceeded_fault { - /// A builder for [`DBClusterEndpointQuotaExceededFault`](crate::error::DBClusterEndpointQuotaExceededFault) + /// A builder for [`DbClusterEndpointQuotaExceededFault`](crate::error::DbClusterEndpointQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21936,16 +22074,16 @@ pub mod db_cluster_endpoint_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterEndpointQuotaExceededFault`](crate::error::DBClusterEndpointQuotaExceededFault) - pub fn build(self) -> crate::error::DBClusterEndpointQuotaExceededFault { - crate::error::DBClusterEndpointQuotaExceededFault { + /// Consumes the builder and constructs a [`DbClusterEndpointQuotaExceededFault`](crate::error::DbClusterEndpointQuotaExceededFault) + pub fn build(self) -> crate::error::DbClusterEndpointQuotaExceededFault { + crate::error::DbClusterEndpointQuotaExceededFault { message: self.message, } } } } -impl DBClusterEndpointQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBClusterEndpointQuotaExceededFault`](crate::error::DBClusterEndpointQuotaExceededFault) +impl DbClusterEndpointQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbClusterEndpointQuotaExceededFault`](crate::error::DbClusterEndpointQuotaExceededFault) pub fn builder() -> crate::error::db_cluster_endpoint_quota_exceeded_fault::Builder { crate::error::db_cluster_endpoint_quota_exceeded_fault::Builder::default() } @@ -21954,34 +22092,37 @@ impl DBClusterEndpointQuotaExceededFault { ///

    The specified custom endpoint can't be created because it already exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterEndpointAlreadyExistsFault { +pub struct DbClusterEndpointAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterEndpointAlreadyExistsFault { +impl std::fmt::Debug for DbClusterEndpointAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterEndpointAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbClusterEndpointAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterEndpointAlreadyExistsFault { +impl DbClusterEndpointAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterEndpointAlreadyExistsFault { +impl std::fmt::Display for DbClusterEndpointAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterEndpointAlreadyExistsFault")?; + write!( + f, + "DbClusterEndpointAlreadyExistsFault [DBClusterEndpointAlreadyExistsFault]" + )?; if let Some(inner_108) = &self.message { write!(f, ": {}", inner_108)?; } Ok(()) } } -impl std::error::Error for DBClusterEndpointAlreadyExistsFault {} -/// See [`DBClusterEndpointAlreadyExistsFault`](crate::error::DBClusterEndpointAlreadyExistsFault) +impl std::error::Error for DbClusterEndpointAlreadyExistsFault {} +/// See [`DbClusterEndpointAlreadyExistsFault`](crate::error::DbClusterEndpointAlreadyExistsFault) pub mod db_cluster_endpoint_already_exists_fault { - /// A builder for [`DBClusterEndpointAlreadyExistsFault`](crate::error::DBClusterEndpointAlreadyExistsFault) + /// A builder for [`DbClusterEndpointAlreadyExistsFault`](crate::error::DbClusterEndpointAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21996,16 +22137,16 @@ pub mod db_cluster_endpoint_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterEndpointAlreadyExistsFault`](crate::error::DBClusterEndpointAlreadyExistsFault) - pub fn build(self) -> crate::error::DBClusterEndpointAlreadyExistsFault { - crate::error::DBClusterEndpointAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbClusterEndpointAlreadyExistsFault`](crate::error::DbClusterEndpointAlreadyExistsFault) + pub fn build(self) -> crate::error::DbClusterEndpointAlreadyExistsFault { + crate::error::DbClusterEndpointAlreadyExistsFault { message: self.message, } } } } -impl DBClusterEndpointAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBClusterEndpointAlreadyExistsFault`](crate::error::DBClusterEndpointAlreadyExistsFault) +impl DbClusterEndpointAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbClusterEndpointAlreadyExistsFault`](crate::error::DbClusterEndpointAlreadyExistsFault) pub fn builder() -> crate::error::db_cluster_endpoint_already_exists_fault::Builder { crate::error::db_cluster_endpoint_already_exists_fault::Builder::default() } @@ -22317,34 +22458,37 @@ impl AuthorizationAlreadyExistsFault { ///

    You can't associate any more AWS Identity and Access Management (IAM) roles with the DB instance because the quota has been reached.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceRoleQuotaExceededFault { +pub struct DbInstanceRoleQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceRoleQuotaExceededFault { +impl std::fmt::Debug for DbInstanceRoleQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceRoleQuotaExceededFault"); + let mut formatter = f.debug_struct("DbInstanceRoleQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceRoleQuotaExceededFault { +impl DbInstanceRoleQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceRoleQuotaExceededFault { +impl std::fmt::Display for DbInstanceRoleQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceRoleQuotaExceededFault")?; + write!( + f, + "DbInstanceRoleQuotaExceededFault [DBInstanceRoleQuotaExceededFault]" + )?; if let Some(inner_114) = &self.message { write!(f, ": {}", inner_114)?; } Ok(()) } } -impl std::error::Error for DBInstanceRoleQuotaExceededFault {} -/// See [`DBInstanceRoleQuotaExceededFault`](crate::error::DBInstanceRoleQuotaExceededFault) +impl std::error::Error for DbInstanceRoleQuotaExceededFault {} +/// See [`DbInstanceRoleQuotaExceededFault`](crate::error::DbInstanceRoleQuotaExceededFault) pub mod db_instance_role_quota_exceeded_fault { - /// A builder for [`DBInstanceRoleQuotaExceededFault`](crate::error::DBInstanceRoleQuotaExceededFault) + /// A builder for [`DbInstanceRoleQuotaExceededFault`](crate::error::DbInstanceRoleQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22359,16 +22503,16 @@ pub mod db_instance_role_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceRoleQuotaExceededFault`](crate::error::DBInstanceRoleQuotaExceededFault) - pub fn build(self) -> crate::error::DBInstanceRoleQuotaExceededFault { - crate::error::DBInstanceRoleQuotaExceededFault { + /// Consumes the builder and constructs a [`DbInstanceRoleQuotaExceededFault`](crate::error::DbInstanceRoleQuotaExceededFault) + pub fn build(self) -> crate::error::DbInstanceRoleQuotaExceededFault { + crate::error::DbInstanceRoleQuotaExceededFault { message: self.message, } } } } -impl DBInstanceRoleQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBInstanceRoleQuotaExceededFault`](crate::error::DBInstanceRoleQuotaExceededFault) +impl DbInstanceRoleQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbInstanceRoleQuotaExceededFault`](crate::error::DbInstanceRoleQuotaExceededFault) pub fn builder() -> crate::error::db_instance_role_quota_exceeded_fault::Builder { crate::error::db_instance_role_quota_exceeded_fault::Builder::default() } @@ -22377,34 +22521,37 @@ impl DBInstanceRoleQuotaExceededFault { ///

    The specified RoleArn or FeatureName value is already associated with the DB instance.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBInstanceRoleAlreadyExistsFault { +pub struct DbInstanceRoleAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBInstanceRoleAlreadyExistsFault { +impl std::fmt::Debug for DbInstanceRoleAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBInstanceRoleAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbInstanceRoleAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBInstanceRoleAlreadyExistsFault { +impl DbInstanceRoleAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBInstanceRoleAlreadyExistsFault { +impl std::fmt::Display for DbInstanceRoleAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBInstanceRoleAlreadyExistsFault")?; + write!( + f, + "DbInstanceRoleAlreadyExistsFault [DBInstanceRoleAlreadyExistsFault]" + )?; if let Some(inner_115) = &self.message { write!(f, ": {}", inner_115)?; } Ok(()) } } -impl std::error::Error for DBInstanceRoleAlreadyExistsFault {} -/// See [`DBInstanceRoleAlreadyExistsFault`](crate::error::DBInstanceRoleAlreadyExistsFault) +impl std::error::Error for DbInstanceRoleAlreadyExistsFault {} +/// See [`DbInstanceRoleAlreadyExistsFault`](crate::error::DbInstanceRoleAlreadyExistsFault) pub mod db_instance_role_already_exists_fault { - /// A builder for [`DBInstanceRoleAlreadyExistsFault`](crate::error::DBInstanceRoleAlreadyExistsFault) + /// A builder for [`DbInstanceRoleAlreadyExistsFault`](crate::error::DbInstanceRoleAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22419,16 +22566,16 @@ pub mod db_instance_role_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBInstanceRoleAlreadyExistsFault`](crate::error::DBInstanceRoleAlreadyExistsFault) - pub fn build(self) -> crate::error::DBInstanceRoleAlreadyExistsFault { - crate::error::DBInstanceRoleAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbInstanceRoleAlreadyExistsFault`](crate::error::DbInstanceRoleAlreadyExistsFault) + pub fn build(self) -> crate::error::DbInstanceRoleAlreadyExistsFault { + crate::error::DbInstanceRoleAlreadyExistsFault { message: self.message, } } } } -impl DBInstanceRoleAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBInstanceRoleAlreadyExistsFault`](crate::error::DBInstanceRoleAlreadyExistsFault) +impl DbInstanceRoleAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbInstanceRoleAlreadyExistsFault`](crate::error::DbInstanceRoleAlreadyExistsFault) pub fn builder() -> crate::error::db_instance_role_already_exists_fault::Builder { crate::error::db_instance_role_already_exists_fault::Builder::default() } @@ -22437,34 +22584,37 @@ impl DBInstanceRoleAlreadyExistsFault { ///

    You have exceeded the maximum number of IAM roles that can be associated with the specified DB cluster.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterRoleQuotaExceededFault { +pub struct DbClusterRoleQuotaExceededFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterRoleQuotaExceededFault { +impl std::fmt::Debug for DbClusterRoleQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterRoleQuotaExceededFault"); + let mut formatter = f.debug_struct("DbClusterRoleQuotaExceededFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterRoleQuotaExceededFault { +impl DbClusterRoleQuotaExceededFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterRoleQuotaExceededFault { +impl std::fmt::Display for DbClusterRoleQuotaExceededFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterRoleQuotaExceededFault")?; + write!( + f, + "DbClusterRoleQuotaExceededFault [DBClusterRoleQuotaExceededFault]" + )?; if let Some(inner_116) = &self.message { write!(f, ": {}", inner_116)?; } Ok(()) } } -impl std::error::Error for DBClusterRoleQuotaExceededFault {} -/// See [`DBClusterRoleQuotaExceededFault`](crate::error::DBClusterRoleQuotaExceededFault) +impl std::error::Error for DbClusterRoleQuotaExceededFault {} +/// See [`DbClusterRoleQuotaExceededFault`](crate::error::DbClusterRoleQuotaExceededFault) pub mod db_cluster_role_quota_exceeded_fault { - /// A builder for [`DBClusterRoleQuotaExceededFault`](crate::error::DBClusterRoleQuotaExceededFault) + /// A builder for [`DbClusterRoleQuotaExceededFault`](crate::error::DbClusterRoleQuotaExceededFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22479,16 +22629,16 @@ pub mod db_cluster_role_quota_exceeded_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterRoleQuotaExceededFault`](crate::error::DBClusterRoleQuotaExceededFault) - pub fn build(self) -> crate::error::DBClusterRoleQuotaExceededFault { - crate::error::DBClusterRoleQuotaExceededFault { + /// Consumes the builder and constructs a [`DbClusterRoleQuotaExceededFault`](crate::error::DbClusterRoleQuotaExceededFault) + pub fn build(self) -> crate::error::DbClusterRoleQuotaExceededFault { + crate::error::DbClusterRoleQuotaExceededFault { message: self.message, } } } } -impl DBClusterRoleQuotaExceededFault { - /// Creates a new builder-style object to manufacture [`DBClusterRoleQuotaExceededFault`](crate::error::DBClusterRoleQuotaExceededFault) +impl DbClusterRoleQuotaExceededFault { + /// Creates a new builder-style object to manufacture [`DbClusterRoleQuotaExceededFault`](crate::error::DbClusterRoleQuotaExceededFault) pub fn builder() -> crate::error::db_cluster_role_quota_exceeded_fault::Builder { crate::error::db_cluster_role_quota_exceeded_fault::Builder::default() } @@ -22497,34 +22647,37 @@ impl DBClusterRoleQuotaExceededFault { ///

    The specified IAM role Amazon Resource Name (ARN) is already associated with the specified DB cluster.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterRoleAlreadyExistsFault { +pub struct DbClusterRoleAlreadyExistsFault { pub message: std::option::Option, } -impl std::fmt::Debug for DBClusterRoleAlreadyExistsFault { +impl std::fmt::Debug for DbClusterRoleAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterRoleAlreadyExistsFault"); + let mut formatter = f.debug_struct("DbClusterRoleAlreadyExistsFault"); formatter.field("message", &self.message); formatter.finish() } } -impl DBClusterRoleAlreadyExistsFault { +impl DbClusterRoleAlreadyExistsFault { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DBClusterRoleAlreadyExistsFault { +impl std::fmt::Display for DbClusterRoleAlreadyExistsFault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DBClusterRoleAlreadyExistsFault")?; + write!( + f, + "DbClusterRoleAlreadyExistsFault [DBClusterRoleAlreadyExistsFault]" + )?; if let Some(inner_117) = &self.message { write!(f, ": {}", inner_117)?; } Ok(()) } } -impl std::error::Error for DBClusterRoleAlreadyExistsFault {} -/// See [`DBClusterRoleAlreadyExistsFault`](crate::error::DBClusterRoleAlreadyExistsFault) +impl std::error::Error for DbClusterRoleAlreadyExistsFault {} +/// See [`DbClusterRoleAlreadyExistsFault`](crate::error::DbClusterRoleAlreadyExistsFault) pub mod db_cluster_role_already_exists_fault { - /// A builder for [`DBClusterRoleAlreadyExistsFault`](crate::error::DBClusterRoleAlreadyExistsFault) + /// A builder for [`DbClusterRoleAlreadyExistsFault`](crate::error::DbClusterRoleAlreadyExistsFault) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22539,16 +22692,16 @@ pub mod db_cluster_role_already_exists_fault { self.message = input; self } - /// Consumes the builder and constructs a [`DBClusterRoleAlreadyExistsFault`](crate::error::DBClusterRoleAlreadyExistsFault) - pub fn build(self) -> crate::error::DBClusterRoleAlreadyExistsFault { - crate::error::DBClusterRoleAlreadyExistsFault { + /// Consumes the builder and constructs a [`DbClusterRoleAlreadyExistsFault`](crate::error::DbClusterRoleAlreadyExistsFault) + pub fn build(self) -> crate::error::DbClusterRoleAlreadyExistsFault { + crate::error::DbClusterRoleAlreadyExistsFault { message: self.message, } } } } -impl DBClusterRoleAlreadyExistsFault { - /// Creates a new builder-style object to manufacture [`DBClusterRoleAlreadyExistsFault`](crate::error::DBClusterRoleAlreadyExistsFault) +impl DbClusterRoleAlreadyExistsFault { + /// Creates a new builder-style object to manufacture [`DbClusterRoleAlreadyExistsFault`](crate::error::DbClusterRoleAlreadyExistsFault) pub fn builder() -> crate::error::db_cluster_role_already_exists_fault::Builder { crate::error::db_cluster_role_already_exists_fault::Builder::default() } diff --git a/sdk/rds/src/error_meta.rs b/sdk/rds/src/error_meta.rs index ebe5ac92357c..d99ac51a7fd0 100644 --- a/sdk/rds/src/error_meta.rs +++ b/sdk/rds/src/error_meta.rs @@ -14,54 +14,54 @@ pub enum Error { CustomAvailabilityZoneQuotaExceededFault( crate::error::CustomAvailabilityZoneQuotaExceededFault, ), - DBClusterAlreadyExistsFault(crate::error::DBClusterAlreadyExistsFault), - DBClusterBacktrackNotFoundFault(crate::error::DBClusterBacktrackNotFoundFault), - DBClusterEndpointAlreadyExistsFault(crate::error::DBClusterEndpointAlreadyExistsFault), - DBClusterEndpointNotFoundFault(crate::error::DBClusterEndpointNotFoundFault), - DBClusterEndpointQuotaExceededFault(crate::error::DBClusterEndpointQuotaExceededFault), - DBClusterNotFoundFault(crate::error::DBClusterNotFoundFault), - DBClusterParameterGroupNotFoundFault(crate::error::DBClusterParameterGroupNotFoundFault), - DBClusterQuotaExceededFault(crate::error::DBClusterQuotaExceededFault), - DBClusterRoleAlreadyExistsFault(crate::error::DBClusterRoleAlreadyExistsFault), - DBClusterRoleNotFoundFault(crate::error::DBClusterRoleNotFoundFault), - DBClusterRoleQuotaExceededFault(crate::error::DBClusterRoleQuotaExceededFault), - DBClusterSnapshotAlreadyExistsFault(crate::error::DBClusterSnapshotAlreadyExistsFault), - DBClusterSnapshotNotFoundFault(crate::error::DBClusterSnapshotNotFoundFault), - DBInstanceAlreadyExistsFault(crate::error::DBInstanceAlreadyExistsFault), - DBInstanceAutomatedBackupNotFoundFault(crate::error::DBInstanceAutomatedBackupNotFoundFault), - DBInstanceAutomatedBackupQuotaExceededFault( - crate::error::DBInstanceAutomatedBackupQuotaExceededFault, + DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault), + DbClusterBacktrackNotFoundFault(crate::error::DbClusterBacktrackNotFoundFault), + DbClusterEndpointAlreadyExistsFault(crate::error::DbClusterEndpointAlreadyExistsFault), + DbClusterEndpointNotFoundFault(crate::error::DbClusterEndpointNotFoundFault), + DbClusterEndpointQuotaExceededFault(crate::error::DbClusterEndpointQuotaExceededFault), + DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault), + DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault), + DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault), + DbClusterRoleAlreadyExistsFault(crate::error::DbClusterRoleAlreadyExistsFault), + DbClusterRoleNotFoundFault(crate::error::DbClusterRoleNotFoundFault), + DbClusterRoleQuotaExceededFault(crate::error::DbClusterRoleQuotaExceededFault), + DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault), + DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault), + DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault), + DbInstanceAutomatedBackupNotFoundFault(crate::error::DbInstanceAutomatedBackupNotFoundFault), + DbInstanceAutomatedBackupQuotaExceededFault( + crate::error::DbInstanceAutomatedBackupQuotaExceededFault, ), - DBInstanceNotFoundFault(crate::error::DBInstanceNotFoundFault), - DBInstanceRoleAlreadyExistsFault(crate::error::DBInstanceRoleAlreadyExistsFault), - DBInstanceRoleNotFoundFault(crate::error::DBInstanceRoleNotFoundFault), - DBInstanceRoleQuotaExceededFault(crate::error::DBInstanceRoleQuotaExceededFault), - DBLogFileNotFoundFault(crate::error::DBLogFileNotFoundFault), - DBParameterGroupAlreadyExistsFault(crate::error::DBParameterGroupAlreadyExistsFault), - DBParameterGroupNotFoundFault(crate::error::DBParameterGroupNotFoundFault), - DBParameterGroupQuotaExceededFault(crate::error::DBParameterGroupQuotaExceededFault), - DBProxyAlreadyExistsFault(crate::error::DBProxyAlreadyExistsFault), - DBProxyEndpointAlreadyExistsFault(crate::error::DBProxyEndpointAlreadyExistsFault), - DBProxyEndpointNotFoundFault(crate::error::DBProxyEndpointNotFoundFault), - DBProxyEndpointQuotaExceededFault(crate::error::DBProxyEndpointQuotaExceededFault), - DBProxyNotFoundFault(crate::error::DBProxyNotFoundFault), - DBProxyQuotaExceededFault(crate::error::DBProxyQuotaExceededFault), - DBProxyTargetAlreadyRegisteredFault(crate::error::DBProxyTargetAlreadyRegisteredFault), - DBProxyTargetGroupNotFoundFault(crate::error::DBProxyTargetGroupNotFoundFault), - DBProxyTargetNotFoundFault(crate::error::DBProxyTargetNotFoundFault), - DBSecurityGroupAlreadyExistsFault(crate::error::DBSecurityGroupAlreadyExistsFault), - DBSecurityGroupNotFoundFault(crate::error::DBSecurityGroupNotFoundFault), - DBSecurityGroupNotSupportedFault(crate::error::DBSecurityGroupNotSupportedFault), - DBSecurityGroupQuotaExceededFault(crate::error::DBSecurityGroupQuotaExceededFault), - DBSnapshotAlreadyExistsFault(crate::error::DBSnapshotAlreadyExistsFault), - DBSnapshotNotFoundFault(crate::error::DBSnapshotNotFoundFault), - DBSubnetGroupAlreadyExistsFault(crate::error::DBSubnetGroupAlreadyExistsFault), - DBSubnetGroupDoesNotCoverEnoughAZs(crate::error::DBSubnetGroupDoesNotCoverEnoughAZs), - DBSubnetGroupNotAllowedFault(crate::error::DBSubnetGroupNotAllowedFault), - DBSubnetGroupNotFoundFault(crate::error::DBSubnetGroupNotFoundFault), - DBSubnetGroupQuotaExceededFault(crate::error::DBSubnetGroupQuotaExceededFault), - DBSubnetQuotaExceededFault(crate::error::DBSubnetQuotaExceededFault), - DBUpgradeDependencyFailureFault(crate::error::DBUpgradeDependencyFailureFault), + DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault), + DbInstanceRoleAlreadyExistsFault(crate::error::DbInstanceRoleAlreadyExistsFault), + DbInstanceRoleNotFoundFault(crate::error::DbInstanceRoleNotFoundFault), + DbInstanceRoleQuotaExceededFault(crate::error::DbInstanceRoleQuotaExceededFault), + DbLogFileNotFoundFault(crate::error::DbLogFileNotFoundFault), + DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault), + DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault), + DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault), + DbProxyAlreadyExistsFault(crate::error::DbProxyAlreadyExistsFault), + DbProxyEndpointAlreadyExistsFault(crate::error::DbProxyEndpointAlreadyExistsFault), + DbProxyEndpointNotFoundFault(crate::error::DbProxyEndpointNotFoundFault), + DbProxyEndpointQuotaExceededFault(crate::error::DbProxyEndpointQuotaExceededFault), + DbProxyNotFoundFault(crate::error::DbProxyNotFoundFault), + DbProxyQuotaExceededFault(crate::error::DbProxyQuotaExceededFault), + DbProxyTargetAlreadyRegisteredFault(crate::error::DbProxyTargetAlreadyRegisteredFault), + DbProxyTargetGroupNotFoundFault(crate::error::DbProxyTargetGroupNotFoundFault), + DbProxyTargetNotFoundFault(crate::error::DbProxyTargetNotFoundFault), + DbSecurityGroupAlreadyExistsFault(crate::error::DbSecurityGroupAlreadyExistsFault), + DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault), + DbSecurityGroupNotSupportedFault(crate::error::DbSecurityGroupNotSupportedFault), + DbSecurityGroupQuotaExceededFault(crate::error::DbSecurityGroupQuotaExceededFault), + DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault), + DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault), + DbSubnetGroupAlreadyExistsFault(crate::error::DbSubnetGroupAlreadyExistsFault), + DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs), + DbSubnetGroupNotAllowedFault(crate::error::DbSubnetGroupNotAllowedFault), + DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault), + DbSubnetGroupQuotaExceededFault(crate::error::DbSubnetGroupQuotaExceededFault), + DbSubnetQuotaExceededFault(crate::error::DbSubnetQuotaExceededFault), + DbUpgradeDependencyFailureFault(crate::error::DbUpgradeDependencyFailureFault), DomainNotFoundFault(crate::error::DomainNotFoundFault), EventSubscriptionQuotaExceededFault(crate::error::EventSubscriptionQuotaExceededFault), ExportTaskAlreadyExistsFault(crate::error::ExportTaskAlreadyExistsFault), @@ -75,25 +75,25 @@ pub enum Error { InstallationMediaNotFoundFault(crate::error::InstallationMediaNotFoundFault), InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault), InsufficientAvailableIPsInSubnetFault(crate::error::InsufficientAvailableIPsInSubnetFault), - InsufficientDBClusterCapacityFault(crate::error::InsufficientDBClusterCapacityFault), - InsufficientDBInstanceCapacityFault(crate::error::InsufficientDBInstanceCapacityFault), + InsufficientDbClusterCapacityFault(crate::error::InsufficientDbClusterCapacityFault), + InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault), InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault), - InvalidDBClusterCapacityFault(crate::error::InvalidDBClusterCapacityFault), - InvalidDBClusterEndpointStateFault(crate::error::InvalidDBClusterEndpointStateFault), - InvalidDBClusterSnapshotStateFault(crate::error::InvalidDBClusterSnapshotStateFault), - InvalidDBClusterStateFault(crate::error::InvalidDBClusterStateFault), - InvalidDBInstanceAutomatedBackupStateFault( - crate::error::InvalidDBInstanceAutomatedBackupStateFault, + InvalidDbClusterCapacityFault(crate::error::InvalidDbClusterCapacityFault), + InvalidDbClusterEndpointStateFault(crate::error::InvalidDbClusterEndpointStateFault), + InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault), + InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault), + InvalidDbInstanceAutomatedBackupStateFault( + crate::error::InvalidDbInstanceAutomatedBackupStateFault, ), - InvalidDBInstanceStateFault(crate::error::InvalidDBInstanceStateFault), - InvalidDBParameterGroupStateFault(crate::error::InvalidDBParameterGroupStateFault), - InvalidDBProxyEndpointStateFault(crate::error::InvalidDBProxyEndpointStateFault), - InvalidDBProxyStateFault(crate::error::InvalidDBProxyStateFault), - InvalidDBSecurityGroupStateFault(crate::error::InvalidDBSecurityGroupStateFault), - InvalidDBSnapshotStateFault(crate::error::InvalidDBSnapshotStateFault), - InvalidDBSubnetGroupFault(crate::error::InvalidDBSubnetGroupFault), - InvalidDBSubnetGroupStateFault(crate::error::InvalidDBSubnetGroupStateFault), - InvalidDBSubnetStateFault(crate::error::InvalidDBSubnetStateFault), + InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault), + InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault), + InvalidDbProxyEndpointStateFault(crate::error::InvalidDbProxyEndpointStateFault), + InvalidDbProxyStateFault(crate::error::InvalidDbProxyStateFault), + InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault), + InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault), + InvalidDbSubnetGroupFault(crate::error::InvalidDbSubnetGroupFault), + InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault), + InvalidDbSubnetStateFault(crate::error::InvalidDbSubnetStateFault), InvalidEventSubscriptionStateFault(crate::error::InvalidEventSubscriptionStateFault), InvalidExportOnlyFault(crate::error::InvalidExportOnlyFault), InvalidExportSourceStateFault(crate::error::InvalidExportSourceStateFault), @@ -103,23 +103,23 @@ pub enum Error { InvalidRestoreFault(crate::error::InvalidRestoreFault), InvalidS3BucketFault(crate::error::InvalidS3BucketFault), InvalidSubnet(crate::error::InvalidSubnet), - InvalidVPCNetworkStateFault(crate::error::InvalidVPCNetworkStateFault), - KMSKeyNotAccessibleFault(crate::error::KMSKeyNotAccessibleFault), + InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault), + KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault), OptionGroupAlreadyExistsFault(crate::error::OptionGroupAlreadyExistsFault), OptionGroupNotFoundFault(crate::error::OptionGroupNotFoundFault), OptionGroupQuotaExceededFault(crate::error::OptionGroupQuotaExceededFault), PointInTimeRestoreNotEnabledFault(crate::error::PointInTimeRestoreNotEnabledFault), - ProvisionedIopsNotAvailableInAZFault(crate::error::ProvisionedIopsNotAvailableInAZFault), - ReservedDBInstanceAlreadyExistsFault(crate::error::ReservedDBInstanceAlreadyExistsFault), - ReservedDBInstanceNotFoundFault(crate::error::ReservedDBInstanceNotFoundFault), - ReservedDBInstanceQuotaExceededFault(crate::error::ReservedDBInstanceQuotaExceededFault), - ReservedDBInstancesOfferingNotFoundFault( - crate::error::ReservedDBInstancesOfferingNotFoundFault, + ProvisionedIopsNotAvailableInAzFault(crate::error::ProvisionedIopsNotAvailableInAzFault), + ReservedDbInstanceAlreadyExistsFault(crate::error::ReservedDbInstanceAlreadyExistsFault), + ReservedDbInstanceNotFoundFault(crate::error::ReservedDbInstanceNotFoundFault), + ReservedDbInstanceQuotaExceededFault(crate::error::ReservedDbInstanceQuotaExceededFault), + ReservedDbInstancesOfferingNotFoundFault( + crate::error::ReservedDbInstancesOfferingNotFoundFault, ), ResourceNotFoundFault(crate::error::ResourceNotFoundFault), - SNSInvalidTopicFault(crate::error::SNSInvalidTopicFault), - SNSNoAuthorizationFault(crate::error::SNSNoAuthorizationFault), - SNSTopicArnNotFoundFault(crate::error::SNSTopicArnNotFoundFault), + SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault), + SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault), + SnsTopicArnNotFoundFault(crate::error::SnsTopicArnNotFoundFault), SharedSnapshotQuotaExceededFault(crate::error::SharedSnapshotQuotaExceededFault), SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault), SourceNotFoundFault(crate::error::SourceNotFoundFault), @@ -142,52 +142,52 @@ impl std::fmt::Display for Error { Error::CustomAvailabilityZoneAlreadyExistsFault(inner) => inner.fmt(f), Error::CustomAvailabilityZoneNotFoundFault(inner) => inner.fmt(f), Error::CustomAvailabilityZoneQuotaExceededFault(inner) => inner.fmt(f), - Error::DBClusterAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBClusterBacktrackNotFoundFault(inner) => inner.fmt(f), - Error::DBClusterEndpointAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBClusterEndpointNotFoundFault(inner) => inner.fmt(f), - Error::DBClusterEndpointQuotaExceededFault(inner) => inner.fmt(f), - Error::DBClusterNotFoundFault(inner) => inner.fmt(f), - Error::DBClusterParameterGroupNotFoundFault(inner) => inner.fmt(f), - Error::DBClusterQuotaExceededFault(inner) => inner.fmt(f), - Error::DBClusterRoleAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBClusterRoleNotFoundFault(inner) => inner.fmt(f), - Error::DBClusterRoleQuotaExceededFault(inner) => inner.fmt(f), - Error::DBClusterSnapshotAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBClusterSnapshotNotFoundFault(inner) => inner.fmt(f), - Error::DBInstanceAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBInstanceAutomatedBackupNotFoundFault(inner) => inner.fmt(f), - Error::DBInstanceAutomatedBackupQuotaExceededFault(inner) => inner.fmt(f), - Error::DBInstanceNotFoundFault(inner) => inner.fmt(f), - Error::DBInstanceRoleAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBInstanceRoleNotFoundFault(inner) => inner.fmt(f), - Error::DBInstanceRoleQuotaExceededFault(inner) => inner.fmt(f), - Error::DBLogFileNotFoundFault(inner) => inner.fmt(f), - Error::DBParameterGroupAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBParameterGroupNotFoundFault(inner) => inner.fmt(f), - Error::DBParameterGroupQuotaExceededFault(inner) => inner.fmt(f), - Error::DBProxyAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBProxyEndpointAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBProxyEndpointNotFoundFault(inner) => inner.fmt(f), - Error::DBProxyEndpointQuotaExceededFault(inner) => inner.fmt(f), - Error::DBProxyNotFoundFault(inner) => inner.fmt(f), - Error::DBProxyQuotaExceededFault(inner) => inner.fmt(f), - Error::DBProxyTargetAlreadyRegisteredFault(inner) => inner.fmt(f), - Error::DBProxyTargetGroupNotFoundFault(inner) => inner.fmt(f), - Error::DBProxyTargetNotFoundFault(inner) => inner.fmt(f), - Error::DBSecurityGroupAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBSecurityGroupNotFoundFault(inner) => inner.fmt(f), - Error::DBSecurityGroupNotSupportedFault(inner) => inner.fmt(f), - Error::DBSecurityGroupQuotaExceededFault(inner) => inner.fmt(f), - Error::DBSnapshotAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBSnapshotNotFoundFault(inner) => inner.fmt(f), - Error::DBSubnetGroupAlreadyExistsFault(inner) => inner.fmt(f), - Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.fmt(f), - Error::DBSubnetGroupNotAllowedFault(inner) => inner.fmt(f), - Error::DBSubnetGroupNotFoundFault(inner) => inner.fmt(f), - Error::DBSubnetGroupQuotaExceededFault(inner) => inner.fmt(f), - Error::DBSubnetQuotaExceededFault(inner) => inner.fmt(f), - Error::DBUpgradeDependencyFailureFault(inner) => inner.fmt(f), + Error::DbClusterAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbClusterBacktrackNotFoundFault(inner) => inner.fmt(f), + Error::DbClusterEndpointAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbClusterEndpointNotFoundFault(inner) => inner.fmt(f), + Error::DbClusterEndpointQuotaExceededFault(inner) => inner.fmt(f), + Error::DbClusterNotFoundFault(inner) => inner.fmt(f), + Error::DbClusterParameterGroupNotFoundFault(inner) => inner.fmt(f), + Error::DbClusterQuotaExceededFault(inner) => inner.fmt(f), + Error::DbClusterRoleAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbClusterRoleNotFoundFault(inner) => inner.fmt(f), + Error::DbClusterRoleQuotaExceededFault(inner) => inner.fmt(f), + Error::DbClusterSnapshotAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbClusterSnapshotNotFoundFault(inner) => inner.fmt(f), + Error::DbInstanceAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbInstanceAutomatedBackupNotFoundFault(inner) => inner.fmt(f), + Error::DbInstanceAutomatedBackupQuotaExceededFault(inner) => inner.fmt(f), + Error::DbInstanceNotFoundFault(inner) => inner.fmt(f), + Error::DbInstanceRoleAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbInstanceRoleNotFoundFault(inner) => inner.fmt(f), + Error::DbInstanceRoleQuotaExceededFault(inner) => inner.fmt(f), + Error::DbLogFileNotFoundFault(inner) => inner.fmt(f), + Error::DbParameterGroupAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbParameterGroupNotFoundFault(inner) => inner.fmt(f), + Error::DbParameterGroupQuotaExceededFault(inner) => inner.fmt(f), + Error::DbProxyAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbProxyEndpointAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbProxyEndpointNotFoundFault(inner) => inner.fmt(f), + Error::DbProxyEndpointQuotaExceededFault(inner) => inner.fmt(f), + Error::DbProxyNotFoundFault(inner) => inner.fmt(f), + Error::DbProxyQuotaExceededFault(inner) => inner.fmt(f), + Error::DbProxyTargetAlreadyRegisteredFault(inner) => inner.fmt(f), + Error::DbProxyTargetGroupNotFoundFault(inner) => inner.fmt(f), + Error::DbProxyTargetNotFoundFault(inner) => inner.fmt(f), + Error::DbSecurityGroupAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbSecurityGroupNotFoundFault(inner) => inner.fmt(f), + Error::DbSecurityGroupNotSupportedFault(inner) => inner.fmt(f), + Error::DbSecurityGroupQuotaExceededFault(inner) => inner.fmt(f), + Error::DbSnapshotAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbSnapshotNotFoundFault(inner) => inner.fmt(f), + Error::DbSubnetGroupAlreadyExistsFault(inner) => inner.fmt(f), + Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.fmt(f), + Error::DbSubnetGroupNotAllowedFault(inner) => inner.fmt(f), + Error::DbSubnetGroupNotFoundFault(inner) => inner.fmt(f), + Error::DbSubnetGroupQuotaExceededFault(inner) => inner.fmt(f), + Error::DbSubnetQuotaExceededFault(inner) => inner.fmt(f), + Error::DbUpgradeDependencyFailureFault(inner) => inner.fmt(f), Error::DomainNotFoundFault(inner) => inner.fmt(f), Error::EventSubscriptionQuotaExceededFault(inner) => inner.fmt(f), Error::ExportTaskAlreadyExistsFault(inner) => inner.fmt(f), @@ -201,23 +201,23 @@ impl std::fmt::Display for Error { Error::InstallationMediaNotFoundFault(inner) => inner.fmt(f), Error::InstanceQuotaExceededFault(inner) => inner.fmt(f), Error::InsufficientAvailableIPsInSubnetFault(inner) => inner.fmt(f), - Error::InsufficientDBClusterCapacityFault(inner) => inner.fmt(f), - Error::InsufficientDBInstanceCapacityFault(inner) => inner.fmt(f), + Error::InsufficientDbClusterCapacityFault(inner) => inner.fmt(f), + Error::InsufficientDbInstanceCapacityFault(inner) => inner.fmt(f), Error::InsufficientStorageClusterCapacityFault(inner) => inner.fmt(f), - Error::InvalidDBClusterCapacityFault(inner) => inner.fmt(f), - Error::InvalidDBClusterEndpointStateFault(inner) => inner.fmt(f), - Error::InvalidDBClusterSnapshotStateFault(inner) => inner.fmt(f), - Error::InvalidDBClusterStateFault(inner) => inner.fmt(f), - Error::InvalidDBInstanceAutomatedBackupStateFault(inner) => inner.fmt(f), - Error::InvalidDBInstanceStateFault(inner) => inner.fmt(f), - Error::InvalidDBParameterGroupStateFault(inner) => inner.fmt(f), - Error::InvalidDBProxyEndpointStateFault(inner) => inner.fmt(f), - Error::InvalidDBProxyStateFault(inner) => inner.fmt(f), - Error::InvalidDBSecurityGroupStateFault(inner) => inner.fmt(f), - Error::InvalidDBSnapshotStateFault(inner) => inner.fmt(f), - Error::InvalidDBSubnetGroupFault(inner) => inner.fmt(f), - Error::InvalidDBSubnetGroupStateFault(inner) => inner.fmt(f), - Error::InvalidDBSubnetStateFault(inner) => inner.fmt(f), + Error::InvalidDbClusterCapacityFault(inner) => inner.fmt(f), + Error::InvalidDbClusterEndpointStateFault(inner) => inner.fmt(f), + Error::InvalidDbClusterSnapshotStateFault(inner) => inner.fmt(f), + Error::InvalidDbClusterStateFault(inner) => inner.fmt(f), + Error::InvalidDbInstanceAutomatedBackupStateFault(inner) => inner.fmt(f), + Error::InvalidDbInstanceStateFault(inner) => inner.fmt(f), + Error::InvalidDbParameterGroupStateFault(inner) => inner.fmt(f), + Error::InvalidDbProxyEndpointStateFault(inner) => inner.fmt(f), + Error::InvalidDbProxyStateFault(inner) => inner.fmt(f), + Error::InvalidDbSecurityGroupStateFault(inner) => inner.fmt(f), + Error::InvalidDbSnapshotStateFault(inner) => inner.fmt(f), + Error::InvalidDbSubnetGroupFault(inner) => inner.fmt(f), + Error::InvalidDbSubnetGroupStateFault(inner) => inner.fmt(f), + Error::InvalidDbSubnetStateFault(inner) => inner.fmt(f), Error::InvalidEventSubscriptionStateFault(inner) => inner.fmt(f), Error::InvalidExportOnlyFault(inner) => inner.fmt(f), Error::InvalidExportSourceStateFault(inner) => inner.fmt(f), @@ -227,21 +227,21 @@ impl std::fmt::Display for Error { Error::InvalidRestoreFault(inner) => inner.fmt(f), Error::InvalidS3BucketFault(inner) => inner.fmt(f), Error::InvalidSubnet(inner) => inner.fmt(f), - Error::InvalidVPCNetworkStateFault(inner) => inner.fmt(f), - Error::KMSKeyNotAccessibleFault(inner) => inner.fmt(f), + Error::InvalidVpcNetworkStateFault(inner) => inner.fmt(f), + Error::KmsKeyNotAccessibleFault(inner) => inner.fmt(f), Error::OptionGroupAlreadyExistsFault(inner) => inner.fmt(f), Error::OptionGroupNotFoundFault(inner) => inner.fmt(f), Error::OptionGroupQuotaExceededFault(inner) => inner.fmt(f), Error::PointInTimeRestoreNotEnabledFault(inner) => inner.fmt(f), - Error::ProvisionedIopsNotAvailableInAZFault(inner) => inner.fmt(f), - Error::ReservedDBInstanceAlreadyExistsFault(inner) => inner.fmt(f), - Error::ReservedDBInstanceNotFoundFault(inner) => inner.fmt(f), - Error::ReservedDBInstanceQuotaExceededFault(inner) => inner.fmt(f), - Error::ReservedDBInstancesOfferingNotFoundFault(inner) => inner.fmt(f), + Error::ProvisionedIopsNotAvailableInAzFault(inner) => inner.fmt(f), + Error::ReservedDbInstanceAlreadyExistsFault(inner) => inner.fmt(f), + Error::ReservedDbInstanceNotFoundFault(inner) => inner.fmt(f), + Error::ReservedDbInstanceQuotaExceededFault(inner) => inner.fmt(f), + Error::ReservedDbInstancesOfferingNotFoundFault(inner) => inner.fmt(f), Error::ResourceNotFoundFault(inner) => inner.fmt(f), - Error::SNSInvalidTopicFault(inner) => inner.fmt(f), - Error::SNSNoAuthorizationFault(inner) => inner.fmt(f), - Error::SNSTopicArnNotFoundFault(inner) => inner.fmt(f), + Error::SnsInvalidTopicFault(inner) => inner.fmt(f), + Error::SnsNoAuthorizationFault(inner) => inner.fmt(f), + Error::SnsTopicArnNotFoundFault(inner) => inner.fmt(f), Error::SharedSnapshotQuotaExceededFault(inner) => inner.fmt(f), Error::SnapshotQuotaExceededFault(inner) => inner.fmt(f), Error::SourceNotFoundFault(inner) => inner.fmt(f), @@ -259,17 +259,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddRoleToDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::AddRoleToDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::AddRoleToDBClusterErrorKind::DBClusterRoleAlreadyExistsFault( + crate::error::AddRoleToDBClusterErrorKind::DbClusterRoleAlreadyExistsFault( inner, - ) => Error::DBClusterRoleAlreadyExistsFault(inner), - crate::error::AddRoleToDBClusterErrorKind::DBClusterRoleQuotaExceededFault( + ) => Error::DbClusterRoleAlreadyExistsFault(inner), + crate::error::AddRoleToDBClusterErrorKind::DbClusterRoleQuotaExceededFault( inner, - ) => Error::DBClusterRoleQuotaExceededFault(inner), - crate::error::AddRoleToDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + ) => Error::DbClusterRoleQuotaExceededFault(inner), + crate::error::AddRoleToDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::AddRoleToDBClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -283,17 +283,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddRoleToDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::AddRoleToDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::AddRoleToDBInstanceErrorKind::DBInstanceRoleAlreadyExistsFault( + crate::error::AddRoleToDBInstanceErrorKind::DbInstanceRoleAlreadyExistsFault( inner, - ) => Error::DBInstanceRoleAlreadyExistsFault(inner), - crate::error::AddRoleToDBInstanceErrorKind::DBInstanceRoleQuotaExceededFault( + ) => Error::DbInstanceRoleAlreadyExistsFault(inner), + crate::error::AddRoleToDBInstanceErrorKind::DbInstanceRoleQuotaExceededFault( inner, - ) => Error::DBInstanceRoleQuotaExceededFault(inner), - crate::error::AddRoleToDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + ) => Error::DbInstanceRoleQuotaExceededFault(inner), + crate::error::AddRoleToDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::AddRoleToDBInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -323,20 +323,20 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddTagsToResourceErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::AddTagsToResourceErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::AddTagsToResourceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::AddTagsToResourceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::AddTagsToResourceErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::AddTagsToResourceErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::AddTagsToResourceErrorKind::DBProxyTargetGroupNotFoundFault( + crate::error::AddTagsToResourceErrorKind::DbProxyTargetGroupNotFoundFault( inner, - ) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::AddTagsToResourceErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + ) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::AddTagsToResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -354,8 +354,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner), crate::error::ApplyPendingMaintenanceActionErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -373,8 +373,8 @@ impl From match err.kind { crate::error::AuthorizeDBSecurityGroupIngressErrorKind::AuthorizationAlreadyExistsFault(inner) => Error::AuthorizationAlreadyExistsFault(inner), crate::error::AuthorizeDBSecurityGroupIngressErrorKind::AuthorizationQuotaExceededFault(inner) => Error::AuthorizationQuotaExceededFault(inner), - crate::error::AuthorizeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::AuthorizeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(inner) => Error::InvalidDBSecurityGroupStateFault(inner), + crate::error::AuthorizeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::AuthorizeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(inner) => Error::InvalidDbSecurityGroupStateFault(inner), crate::error::AuthorizeDBSecurityGroupIngressErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -385,11 +385,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BacktrackDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::BacktrackDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::BacktrackDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::BacktrackDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::BacktrackDBClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -423,9 +423,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(inner) => Error::DBParameterGroupAlreadyExistsFault(inner), - crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(inner) => Error::DBParameterGroupQuotaExceededFault(inner), + crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(inner) => Error::DbParameterGroupAlreadyExistsFault(inner), + crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(inner) => Error::DbParameterGroupQuotaExceededFault(inner), crate::error::CopyDBClusterParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -436,11 +436,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CopyDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(inner) => Error::DBClusterSnapshotAlreadyExistsFault(inner), - crate::error::CopyDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), - crate::error::CopyDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), - crate::error::CopyDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::CopyDBClusterSnapshotErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(inner) => Error::DbClusterSnapshotAlreadyExistsFault(inner), + crate::error::CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), + crate::error::CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), + crate::error::CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(inner) => Error::SnapshotQuotaExceededFault(inner), crate::error::CopyDBClusterSnapshotErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -452,15 +452,15 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault( + crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault( inner, - ) => Error::DBParameterGroupAlreadyExistsFault(inner), - crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault( + ) => Error::DbParameterGroupAlreadyExistsFault(inner), + crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault( inner, - ) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault( + ) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault( inner, - ) => Error::DBParameterGroupQuotaExceededFault(inner), + ) => Error::DbParameterGroupQuotaExceededFault(inner), crate::error::CopyDBParameterGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -476,17 +476,17 @@ impl From> for crate::error::CopyDBSnapshotErrorKind::CustomAvailabilityZoneNotFoundFault( inner, ) => Error::CustomAvailabilityZoneNotFoundFault(inner), - crate::error::CopyDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(inner) => { - Error::DBSnapshotAlreadyExistsFault(inner) + crate::error::CopyDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(inner) => { + Error::DbSnapshotAlreadyExistsFault(inner) } - crate::error::CopyDBSnapshotErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + crate::error::CopyDBSnapshotErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } - crate::error::CopyDBSnapshotErrorKind::InvalidDBSnapshotStateFault(inner) => { - Error::InvalidDBSnapshotStateFault(inner) + crate::error::CopyDBSnapshotErrorKind::InvalidDbSnapshotStateFault(inner) => { + Error::InvalidDbSnapshotStateFault(inner) } - crate::error::CopyDBSnapshotErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::CopyDBSnapshotErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::CopyDBSnapshotErrorKind::SnapshotQuotaExceededFault(inner) => { Error::SnapshotQuotaExceededFault(inner) @@ -526,7 +526,7 @@ impl From match err.kind { crate::error::CreateCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneAlreadyExistsFault(inner) => Error::CustomAvailabilityZoneAlreadyExistsFault(inner), crate::error::CreateCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneQuotaExceededFault(inner) => Error::CustomAvailabilityZoneQuotaExceededFault(inner), - crate::error::CreateCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::CreateCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::CreateCustomAvailabilityZoneErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -537,26 +537,26 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBClusterErrorKind::DBClusterAlreadyExistsFault(inner) => { - Error::DBClusterAlreadyExistsFault(inner) + crate::error::CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(inner) => { + Error::DbClusterAlreadyExistsFault(inner) } - crate::error::CreateDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::CreateDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::CreateDBClusterErrorKind::DBClusterParameterGroupNotFoundFault( + crate::error::CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault( inner, - ) => Error::DBClusterParameterGroupNotFoundFault(inner), - crate::error::CreateDBClusterErrorKind::DBClusterQuotaExceededFault(inner) => { - Error::DBClusterQuotaExceededFault(inner) + ) => Error::DbClusterParameterGroupNotFoundFault(inner), + crate::error::CreateDBClusterErrorKind::DbClusterQuotaExceededFault(inner) => { + Error::DbClusterQuotaExceededFault(inner) } - crate::error::CreateDBClusterErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::CreateDBClusterErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::CreateDBClusterErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + crate::error::CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( inner, - ) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::CreateDBClusterErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + ) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } crate::error::CreateDBClusterErrorKind::DomainNotFoundFault(inner) => { Error::DomainNotFoundFault(inner) @@ -567,14 +567,14 @@ impl From> for crate::error::CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault( inner, ) => Error::InsufficientStorageClusterCapacityFault(inner), - crate::error::CreateDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::CreateDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::CreateDBClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::CreateDBClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } - crate::error::CreateDBClusterErrorKind::InvalidDBSubnetGroupStateFault(inner) => { - Error::InvalidDBSubnetGroupStateFault(inner) + crate::error::CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(inner) => { + Error::InvalidDbSubnetGroupStateFault(inner) } crate::error::CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(inner) => { Error::InvalidGlobalClusterStateFault(inner) @@ -582,11 +582,11 @@ impl From> for crate::error::CreateDBClusterErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) } - crate::error::CreateDBClusterErrorKind::InvalidVPCNetworkStateFault(inner) => { - Error::InvalidVPCNetworkStateFault(inner) + crate::error::CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(inner) => { + Error::InvalidVpcNetworkStateFault(inner) } - crate::error::CreateDBClusterErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::CreateDBClusterErrorKind::StorageQuotaExceededFault(inner) => { Error::StorageQuotaExceededFault(inner) @@ -603,12 +603,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDBClusterEndpointErrorKind::DBClusterEndpointAlreadyExistsFault(inner) => Error::DBClusterEndpointAlreadyExistsFault(inner), - crate::error::CreateDBClusterEndpointErrorKind::DBClusterEndpointQuotaExceededFault(inner) => Error::DBClusterEndpointQuotaExceededFault(inner), - crate::error::CreateDBClusterEndpointErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::CreateDBClusterEndpointErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::CreateDBClusterEndpointErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::CreateDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::DbClusterEndpointAlreadyExistsFault(inner) => Error::DbClusterEndpointAlreadyExistsFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::DbClusterEndpointQuotaExceededFault(inner) => Error::DbClusterEndpointQuotaExceededFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::CreateDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::CreateDBClusterEndpointErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -623,8 +623,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(inner) => Error::DBParameterGroupAlreadyExistsFault(inner), - crate::error::CreateDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(inner) => Error::DBParameterGroupQuotaExceededFault(inner), + crate::error::CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(inner) => Error::DbParameterGroupAlreadyExistsFault(inner), + crate::error::CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(inner) => Error::DbParameterGroupQuotaExceededFault(inner), crate::error::CreateDBClusterParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -637,10 +637,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDBClusterSnapshotErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::CreateDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault(inner) => Error::DBClusterSnapshotAlreadyExistsFault(inner), - crate::error::CreateDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), - crate::error::CreateDBClusterSnapshotErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), + crate::error::CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(inner) => Error::DbClusterSnapshotAlreadyExistsFault(inner), + crate::error::CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), + crate::error::CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), crate::error::CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(inner) => Error::SnapshotQuotaExceededFault(inner), crate::error::CreateDBClusterSnapshotErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -658,23 +658,23 @@ impl From> fo crate::error::CreateDBInstanceErrorKind::BackupPolicyNotFoundFault(inner) => { Error::BackupPolicyNotFoundFault(inner) } - crate::error::CreateDBInstanceErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::CreateDBInstanceErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::CreateDBInstanceErrorKind::DBInstanceAlreadyExistsFault(inner) => { - Error::DBInstanceAlreadyExistsFault(inner) + crate::error::CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(inner) => { + Error::DbInstanceAlreadyExistsFault(inner) } - crate::error::CreateDBInstanceErrorKind::DBParameterGroupNotFoundFault(inner) => { - Error::DBParameterGroupNotFoundFault(inner) + crate::error::CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(inner) => { + Error::DbParameterGroupNotFoundFault(inner) } - crate::error::CreateDBInstanceErrorKind::DBSecurityGroupNotFoundFault(inner) => { - Error::DBSecurityGroupNotFoundFault(inner) + crate::error::CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(inner) => { + Error::DbSecurityGroupNotFoundFault(inner) } - crate::error::CreateDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + crate::error::CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( inner, - ) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::CreateDBInstanceErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + ) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } crate::error::CreateDBInstanceErrorKind::DomainNotFoundFault(inner) => { Error::DomainNotFoundFault(inner) @@ -682,27 +682,27 @@ impl From> fo crate::error::CreateDBInstanceErrorKind::InstanceQuotaExceededFault(inner) => { Error::InstanceQuotaExceededFault(inner) } - crate::error::CreateDBInstanceErrorKind::InsufficientDBInstanceCapacityFault( + crate::error::CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault( inner, - ) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::CreateDBInstanceErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + ) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::CreateDBInstanceErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::CreateDBInstanceErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) } - crate::error::CreateDBInstanceErrorKind::InvalidVPCNetworkStateFault(inner) => { - Error::InvalidVPCNetworkStateFault(inner) + crate::error::CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(inner) => { + Error::InvalidVpcNetworkStateFault(inner) } - crate::error::CreateDBInstanceErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::CreateDBInstanceErrorKind::OptionGroupNotFoundFault(inner) => { Error::OptionGroupNotFoundFault(inner) } - crate::error::CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault( + crate::error::CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault( inner, - ) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + ) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::CreateDBInstanceErrorKind::StorageQuotaExceededFault(inner) => { Error::StorageQuotaExceededFault(inner) } @@ -723,23 +723,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDBInstanceReadReplicaErrorKind::DBInstanceAlreadyExistsFault(inner) => Error::DBInstanceAlreadyExistsFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotAllowedFault(inner) => Error::DBSubnetGroupNotAllowedFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbInstanceAlreadyExistsFault(inner) => Error::DbInstanceAlreadyExistsFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotAllowedFault(inner) => Error::DbSubnetGroupNotAllowedFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::InstanceQuotaExceededFault(inner) => Error::InstanceQuotaExceededFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::InsufficientDBInstanceCapacityFault(inner) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDBSubnetGroupFault(inner) => Error::InvalidDBSubnetGroupFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::InsufficientDbInstanceCapacityFault(inner) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDbSubnetGroupFault(inner) => Error::InvalidDbSubnetGroupFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), - crate::error::CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAZFault(inner) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + crate::error::CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAzFault(inner) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::StorageTypeNotSupportedFault(inner) => Error::StorageTypeNotSupportedFault(inner), crate::error::CreateDBInstanceReadReplicaErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -752,8 +752,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault(inner) => Error::DBParameterGroupAlreadyExistsFault(inner), - crate::error::CreateDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault(inner) => Error::DBParameterGroupQuotaExceededFault(inner), + crate::error::CreateDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(inner) => Error::DbParameterGroupAlreadyExistsFault(inner), + crate::error::CreateDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(inner) => Error::DbParameterGroupQuotaExceededFault(inner), crate::error::CreateDBParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -764,11 +764,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBProxyErrorKind::DBProxyAlreadyExistsFault(inner) => { - Error::DBProxyAlreadyExistsFault(inner) + crate::error::CreateDBProxyErrorKind::DbProxyAlreadyExistsFault(inner) => { + Error::DbProxyAlreadyExistsFault(inner) } - crate::error::CreateDBProxyErrorKind::DBProxyQuotaExceededFault(inner) => { - Error::DBProxyQuotaExceededFault(inner) + crate::error::CreateDBProxyErrorKind::DbProxyQuotaExceededFault(inner) => { + Error::DbProxyQuotaExceededFault(inner) } crate::error::CreateDBProxyErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) @@ -783,17 +783,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault( + crate::error::CreateDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault( inner, - ) => Error::DBProxyEndpointAlreadyExistsFault(inner), - crate::error::CreateDBProxyEndpointErrorKind::DBProxyEndpointQuotaExceededFault( + ) => Error::DbProxyEndpointAlreadyExistsFault(inner), + crate::error::CreateDBProxyEndpointErrorKind::DbProxyEndpointQuotaExceededFault( inner, - ) => Error::DBProxyEndpointQuotaExceededFault(inner), - crate::error::CreateDBProxyEndpointErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + ) => Error::DbProxyEndpointQuotaExceededFault(inner), + crate::error::CreateDBProxyEndpointErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::CreateDBProxyEndpointErrorKind::InvalidDBProxyStateFault(inner) => { - Error::InvalidDBProxyStateFault(inner) + crate::error::CreateDBProxyEndpointErrorKind::InvalidDbProxyStateFault(inner) => { + Error::InvalidDbProxyStateFault(inner) } crate::error::CreateDBProxyEndpointErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) @@ -810,15 +810,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupAlreadyExistsFault( + crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupAlreadyExistsFault( inner, - ) => Error::DBSecurityGroupAlreadyExistsFault(inner), - crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupNotSupportedFault( + ) => Error::DbSecurityGroupAlreadyExistsFault(inner), + crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupNotSupportedFault( inner, - ) => Error::DBSecurityGroupNotSupportedFault(inner), - crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupQuotaExceededFault( + ) => Error::DbSecurityGroupNotSupportedFault(inner), + crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupQuotaExceededFault( inner, - ) => Error::DBSecurityGroupQuotaExceededFault(inner), + ) => Error::DbSecurityGroupQuotaExceededFault(inner), crate::error::CreateDBSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -831,14 +831,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBSnapshotErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::CreateDBSnapshotErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::CreateDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault(inner) => { - Error::DBSnapshotAlreadyExistsFault(inner) + crate::error::CreateDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault(inner) => { + Error::DbSnapshotAlreadyExistsFault(inner) } - crate::error::CreateDBSnapshotErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::CreateDBSnapshotErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::CreateDBSnapshotErrorKind::SnapshotQuotaExceededFault(inner) => { Error::SnapshotQuotaExceededFault(inner) @@ -855,17 +855,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupAlreadyExistsFault( + crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault( inner, - ) => Error::DBSubnetGroupAlreadyExistsFault(inner), - crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + ) => Error::DbSubnetGroupAlreadyExistsFault(inner), + crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( inner, - ) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupQuotaExceededFault( + ) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault( inner, - ) => Error::DBSubnetGroupQuotaExceededFault(inner), - crate::error::CreateDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(inner) => { - Error::DBSubnetQuotaExceededFault(inner) + ) => Error::DbSubnetGroupQuotaExceededFault(inner), + crate::error::CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(inner) => { + Error::DbSubnetQuotaExceededFault(inner) } crate::error::CreateDBSubnetGroupErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) @@ -885,9 +885,9 @@ impl From match err.kind { crate::error::CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(inner) => Error::EventSubscriptionQuotaExceededFault(inner), - crate::error::CreateEventSubscriptionErrorKind::SNSInvalidTopicFault(inner) => Error::SNSInvalidTopicFault(inner), - crate::error::CreateEventSubscriptionErrorKind::SNSNoAuthorizationFault(inner) => Error::SNSNoAuthorizationFault(inner), - crate::error::CreateEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(inner) => Error::SNSTopicArnNotFoundFault(inner), + crate::error::CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(inner) => Error::SnsInvalidTopicFault(inner), + crate::error::CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(inner) => Error::SnsNoAuthorizationFault(inner), + crate::error::CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(inner) => Error::SnsTopicArnNotFoundFault(inner), crate::error::CreateEventSubscriptionErrorKind::SourceNotFoundFault(inner) => Error::SourceNotFoundFault(inner), crate::error::CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(inner) => Error::SubscriptionAlreadyExistFault(inner), crate::error::CreateEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(inner) => Error::SubscriptionCategoryNotFoundFault(inner), @@ -901,8 +901,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateGlobalClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::CreateGlobalClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } crate::error::CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault( inner, @@ -910,8 +910,8 @@ impl From> crate::error::CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault( inner, ) => Error::GlobalClusterQuotaExceededFault(inner), - crate::error::CreateGlobalClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::CreateGlobalClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -948,7 +948,7 @@ impl From match err.kind { crate::error::DeleteCustomAvailabilityZoneErrorKind::CustomAvailabilityZoneNotFoundFault(inner) => Error::CustomAvailabilityZoneNotFoundFault(inner), - crate::error::DeleteCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::DeleteCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::DeleteCustomAvailabilityZoneErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -959,17 +959,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::DeleteDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::DeleteDBClusterErrorKind::DBClusterSnapshotAlreadyExistsFault( + crate::error::DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault( inner, - ) => Error::DBClusterSnapshotAlreadyExistsFault(inner), - crate::error::DeleteDBClusterErrorKind::InvalidDBClusterSnapshotStateFault( + ) => Error::DbClusterSnapshotAlreadyExistsFault(inner), + crate::error::DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault( inner, - ) => Error::InvalidDBClusterSnapshotStateFault(inner), - crate::error::DeleteDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + ) => Error::InvalidDbClusterSnapshotStateFault(inner), + crate::error::DeleteDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(inner) => { Error::SnapshotQuotaExceededFault(inner) @@ -986,9 +986,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(inner) => Error::DBClusterEndpointNotFoundFault(inner), - crate::error::DeleteDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(inner) => Error::InvalidDBClusterEndpointStateFault(inner), - crate::error::DeleteDBClusterEndpointErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), + crate::error::DeleteDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(inner) => Error::DbClusterEndpointNotFoundFault(inner), + crate::error::DeleteDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(inner) => Error::InvalidDbClusterEndpointStateFault(inner), + crate::error::DeleteDBClusterEndpointErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), crate::error::DeleteDBClusterEndpointErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1003,8 +1003,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::DeleteDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(inner) => Error::InvalidDBParameterGroupStateFault(inner), + crate::error::DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(inner) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::DeleteDBClusterParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1017,8 +1017,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), - crate::error::DeleteDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), + crate::error::DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), + crate::error::DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), crate::error::DeleteDBClusterSnapshotErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1029,11 +1029,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBInstanceErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(inner) => Error::DBInstanceAutomatedBackupQuotaExceededFault(inner), - crate::error::DeleteDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::DeleteDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(inner) => Error::DBSnapshotAlreadyExistsFault(inner), - crate::error::DeleteDBInstanceErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::DeleteDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::DeleteDBInstanceErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(inner) => Error::DbInstanceAutomatedBackupQuotaExceededFault(inner), + crate::error::DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(inner) => Error::DbSnapshotAlreadyExistsFault(inner), + crate::error::DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(inner) => Error::SnapshotQuotaExceededFault(inner), crate::error::DeleteDBInstanceErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -1049,8 +1049,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBInstanceAutomatedBackupErrorKind::DBInstanceAutomatedBackupNotFoundFault(inner) => Error::DBInstanceAutomatedBackupNotFoundFault(inner), - crate::error::DeleteDBInstanceAutomatedBackupErrorKind::InvalidDBInstanceAutomatedBackupStateFault(inner) => Error::InvalidDBInstanceAutomatedBackupStateFault(inner), + crate::error::DeleteDBInstanceAutomatedBackupErrorKind::DbInstanceAutomatedBackupNotFoundFault(inner) => Error::DbInstanceAutomatedBackupNotFoundFault(inner), + crate::error::DeleteDBInstanceAutomatedBackupErrorKind::InvalidDbInstanceAutomatedBackupStateFault(inner) => Error::InvalidDbInstanceAutomatedBackupStateFault(inner), crate::error::DeleteDBInstanceAutomatedBackupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1061,8 +1061,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::DeleteDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(inner) => Error::InvalidDBParameterGroupStateFault(inner), + crate::error::DeleteDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::DeleteDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(inner) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::DeleteDBParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1073,11 +1073,11 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBProxyErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::DeleteDBProxyErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::DeleteDBProxyErrorKind::InvalidDBProxyStateFault(inner) => { - Error::InvalidDBProxyStateFault(inner) + crate::error::DeleteDBProxyErrorKind::InvalidDbProxyStateFault(inner) => { + Error::InvalidDbProxyStateFault(inner) } crate::error::DeleteDBProxyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1089,12 +1089,12 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault( + crate::error::DeleteDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault( inner, - ) => Error::DBProxyEndpointNotFoundFault(inner), - crate::error::DeleteDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault( + ) => Error::DbProxyEndpointNotFoundFault(inner), + crate::error::DeleteDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault( inner, - ) => Error::InvalidDBProxyEndpointStateFault(inner), + ) => Error::InvalidDbProxyEndpointStateFault(inner), crate::error::DeleteDBProxyEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1107,12 +1107,12 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBSecurityGroupErrorKind::DBSecurityGroupNotFoundFault( + crate::error::DeleteDBSecurityGroupErrorKind::DbSecurityGroupNotFoundFault( inner, - ) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::DeleteDBSecurityGroupErrorKind::InvalidDBSecurityGroupStateFault( + ) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::DeleteDBSecurityGroupErrorKind::InvalidDbSecurityGroupStateFault( inner, - ) => Error::InvalidDBSecurityGroupStateFault(inner), + ) => Error::InvalidDbSecurityGroupStateFault(inner), crate::error::DeleteDBSecurityGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1125,11 +1125,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBSnapshotErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + crate::error::DeleteDBSnapshotErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } - crate::error::DeleteDBSnapshotErrorKind::InvalidDBSnapshotStateFault(inner) => { - Error::InvalidDBSnapshotStateFault(inner) + crate::error::DeleteDBSnapshotErrorKind::InvalidDbSnapshotStateFault(inner) => { + Error::InvalidDbSnapshotStateFault(inner) } crate::error::DeleteDBSnapshotErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1143,14 +1143,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + crate::error::DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } - crate::error::DeleteDBSubnetGroupErrorKind::InvalidDBSubnetGroupStateFault( + crate::error::DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault( inner, - ) => Error::InvalidDBSubnetGroupStateFault(inner), - crate::error::DeleteDBSubnetGroupErrorKind::InvalidDBSubnetStateFault(inner) => { - Error::InvalidDBSubnetStateFault(inner) + ) => Error::InvalidDbSubnetGroupStateFault(inner), + crate::error::DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(inner) => { + Error::InvalidDbSubnetStateFault(inner) } crate::error::DeleteDBSubnetGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1233,10 +1233,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(inner) => Error::DBProxyNotFoundFault(inner), - crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(inner) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault(inner) => Error::DBProxyTargetNotFoundFault(inner), - crate::error::DeregisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(inner) => Error::InvalidDBProxyStateFault(inner), + crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(inner) => Error::DbProxyNotFoundFault(inner), + crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(inner) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault(inner) => Error::DbProxyTargetNotFoundFault(inner), + crate::error::DeregisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(inner) => Error::InvalidDbProxyStateFault(inner), crate::error::DeregisterDBProxyTargetsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1293,8 +1293,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBClusterBacktracksErrorKind::DBClusterBacktrackNotFoundFault(inner) => Error::DBClusterBacktrackNotFoundFault(inner), - crate::error::DescribeDBClusterBacktracksErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), + crate::error::DescribeDBClusterBacktracksErrorKind::DbClusterBacktrackNotFoundFault(inner) => Error::DbClusterBacktrackNotFoundFault(inner), + crate::error::DescribeDBClusterBacktracksErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), crate::error::DescribeDBClusterBacktracksErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1307,9 +1307,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBClusterEndpointsErrorKind::DBClusterNotFoundFault( + crate::error::DescribeDBClusterEndpointsErrorKind::DbClusterNotFoundFault( inner, - ) => Error::DBClusterNotFoundFault(inner), + ) => Error::DbClusterNotFoundFault(inner), crate::error::DescribeDBClusterEndpointsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1326,7 +1326,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBClusterParameterGroupsErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), + crate::error::DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), crate::error::DescribeDBClusterParameterGroupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1339,7 +1339,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBClusterParametersErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), + crate::error::DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), crate::error::DescribeDBClusterParametersErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1350,8 +1350,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBClustersErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::DescribeDBClustersErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } crate::error::DescribeDBClustersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1369,7 +1369,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBClusterSnapshotAttributesErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), + crate::error::DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), crate::error::DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1382,7 +1382,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBClusterSnapshotsErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), + crate::error::DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), crate::error::DescribeDBClusterSnapshotsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1411,7 +1411,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBInstanceAutomatedBackupsErrorKind::DBInstanceAutomatedBackupNotFoundFault(inner) => Error::DBInstanceAutomatedBackupNotFoundFault(inner), + crate::error::DescribeDBInstanceAutomatedBackupsErrorKind::DbInstanceAutomatedBackupNotFoundFault(inner) => Error::DbInstanceAutomatedBackupNotFoundFault(inner), crate::error::DescribeDBInstanceAutomatedBackupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1422,8 +1422,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBInstancesErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } crate::error::DescribeDBInstancesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1437,8 +1437,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBLogFilesErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::DescribeDBLogFilesErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } crate::error::DescribeDBLogFilesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1454,9 +1454,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBParameterGroupsErrorKind::DBParameterGroupNotFoundFault( + crate::error::DescribeDBParameterGroupsErrorKind::DbParameterGroupNotFoundFault( inner, - ) => Error::DBParameterGroupNotFoundFault(inner), + ) => Error::DbParameterGroupNotFoundFault(inner), crate::error::DescribeDBParameterGroupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1469,9 +1469,9 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBParametersErrorKind::DBParameterGroupNotFoundFault( + crate::error::DescribeDBParametersErrorKind::DbParameterGroupNotFoundFault( inner, - ) => Error::DBParameterGroupNotFoundFault(inner), + ) => Error::DbParameterGroupNotFoundFault(inner), crate::error::DescribeDBParametersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1484,8 +1484,8 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBProxiesErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::DescribeDBProxiesErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } crate::error::DescribeDBProxiesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1501,11 +1501,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBProxyEndpointsErrorKind::DBProxyEndpointNotFoundFault( + crate::error::DescribeDBProxyEndpointsErrorKind::DbProxyEndpointNotFoundFault( inner, - ) => Error::DBProxyEndpointNotFoundFault(inner), - crate::error::DescribeDBProxyEndpointsErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + ) => Error::DbProxyEndpointNotFoundFault(inner), + crate::error::DescribeDBProxyEndpointsErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } crate::error::DescribeDBProxyEndpointsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1521,9 +1521,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeDBProxyTargetGroupsErrorKind::DBProxyNotFoundFault(inner) => Error::DBProxyNotFoundFault(inner), - crate::error::DescribeDBProxyTargetGroupsErrorKind::DBProxyTargetGroupNotFoundFault(inner) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::DescribeDBProxyTargetGroupsErrorKind::InvalidDBProxyStateFault(inner) => Error::InvalidDBProxyStateFault(inner), + crate::error::DescribeDBProxyTargetGroupsErrorKind::DbProxyNotFoundFault(inner) => Error::DbProxyNotFoundFault(inner), + crate::error::DescribeDBProxyTargetGroupsErrorKind::DbProxyTargetGroupNotFoundFault(inner) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::DescribeDBProxyTargetGroupsErrorKind::InvalidDbProxyStateFault(inner) => Error::InvalidDbProxyStateFault(inner), crate::error::DescribeDBProxyTargetGroupsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1534,17 +1534,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBProxyTargetsErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::DescribeDBProxyTargetsErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::DescribeDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault( + crate::error::DescribeDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault( inner, - ) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::DescribeDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault( + ) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::DescribeDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault( inner, - ) => Error::DBProxyTargetNotFoundFault(inner), - crate::error::DescribeDBProxyTargetsErrorKind::InvalidDBProxyStateFault(inner) => { - Error::InvalidDBProxyStateFault(inner) + ) => Error::DbProxyTargetNotFoundFault(inner), + crate::error::DescribeDBProxyTargetsErrorKind::InvalidDbProxyStateFault(inner) => { + Error::InvalidDbProxyStateFault(inner) } crate::error::DescribeDBProxyTargetsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1560,9 +1560,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBSecurityGroupsErrorKind::DBSecurityGroupNotFoundFault( + crate::error::DescribeDBSecurityGroupsErrorKind::DbSecurityGroupNotFoundFault( inner, - ) => Error::DBSecurityGroupNotFoundFault(inner), + ) => Error::DbSecurityGroupNotFoundFault(inner), crate::error::DescribeDBSecurityGroupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1579,9 +1579,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBSnapshotAttributesErrorKind::DBSnapshotNotFoundFault( + crate::error::DescribeDBSnapshotAttributesErrorKind::DbSnapshotNotFoundFault( inner, - ) => Error::DBSnapshotNotFoundFault(inner), + ) => Error::DbSnapshotNotFoundFault(inner), crate::error::DescribeDBSnapshotAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1594,8 +1594,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBSnapshotsErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + crate::error::DescribeDBSnapshotsErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::DescribeDBSnapshotsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1609,9 +1609,9 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeDBSubnetGroupsErrorKind::DBSubnetGroupNotFoundFault( + crate::error::DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault( inner, - ) => Error::DBSubnetGroupNotFoundFault(inner), + ) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::DescribeDBSubnetGroupsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1808,7 +1808,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeReservedDBInstancesErrorKind::ReservedDBInstanceNotFoundFault(inner) => Error::ReservedDBInstanceNotFoundFault(inner), + crate::error::DescribeReservedDBInstancesErrorKind::ReservedDbInstanceNotFoundFault(inner) => Error::ReservedDbInstanceNotFoundFault(inner), crate::error::DescribeReservedDBInstancesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1823,7 +1823,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeReservedDBInstancesOfferingsErrorKind::ReservedDBInstancesOfferingNotFoundFault(inner) => Error::ReservedDBInstancesOfferingNotFoundFault(inner), + crate::error::DescribeReservedDBInstancesOfferingsErrorKind::ReservedDbInstancesOfferingNotFoundFault(inner) => Error::ReservedDbInstancesOfferingNotFoundFault(inner), crate::error::DescribeReservedDBInstancesOfferingsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1850,8 +1850,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeValidDBInstanceModificationsErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::DescribeValidDBInstanceModificationsErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::DescribeValidDBInstanceModificationsErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::DescribeValidDBInstanceModificationsErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::DescribeValidDBInstanceModificationsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1864,11 +1864,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DownloadDBLogFilePortionErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::DownloadDBLogFilePortionErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::DownloadDBLogFilePortionErrorKind::DBLogFileNotFoundFault(inner) => { - Error::DBLogFileNotFoundFault(inner) + crate::error::DownloadDBLogFilePortionErrorKind::DbLogFileNotFoundFault(inner) => { + Error::DbLogFileNotFoundFault(inner) } crate::error::DownloadDBLogFilePortionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1882,14 +1882,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::FailoverDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::FailoverDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::FailoverDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::FailoverDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::FailoverDBClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::FailoverDBClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1903,14 +1903,14 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::FailoverGlobalClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::FailoverGlobalClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } crate::error::FailoverGlobalClusterErrorKind::GlobalClusterNotFoundFault(inner) => { Error::GlobalClusterNotFoundFault(inner) } - crate::error::FailoverGlobalClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::FailoverGlobalClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } crate::error::FailoverGlobalClusterErrorKind::InvalidGlobalClusterStateFault( inner, @@ -1941,20 +1941,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::ListTagsForResourceErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::ListTagsForResourceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::ListTagsForResourceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::ListTagsForResourceErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::ListTagsForResourceErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::ListTagsForResourceErrorKind::DBProxyTargetGroupNotFoundFault( + crate::error::ListTagsForResourceErrorKind::DbProxyTargetGroupNotFoundFault( inner, - ) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::ListTagsForResourceErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + ) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1987,9 +1987,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyCurrentDBClusterCapacityErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterCapacityFault(inner) => Error::InvalidDBClusterCapacityFault(inner), - crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), + crate::error::ModifyCurrentDBClusterCapacityErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterCapacityFault(inner) => Error::InvalidDbClusterCapacityFault(inner), + crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), crate::error::ModifyCurrentDBClusterCapacityErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2000,38 +2000,38 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ModifyDBClusterErrorKind::DBClusterAlreadyExistsFault(inner) => { - Error::DBClusterAlreadyExistsFault(inner) + crate::error::ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(inner) => { + Error::DbClusterAlreadyExistsFault(inner) } - crate::error::ModifyDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::ModifyDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::ModifyDBClusterErrorKind::DBClusterParameterGroupNotFoundFault( + crate::error::ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault( inner, - ) => Error::DBClusterParameterGroupNotFoundFault(inner), - crate::error::ModifyDBClusterErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + ) => Error::DbClusterParameterGroupNotFoundFault(inner), + crate::error::ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } crate::error::ModifyDBClusterErrorKind::DomainNotFoundFault(inner) => { Error::DomainNotFoundFault(inner) } - crate::error::ModifyDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::ModifyDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::ModifyDBClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } - crate::error::ModifyDBClusterErrorKind::InvalidDBSecurityGroupStateFault(inner) => { - Error::InvalidDBSecurityGroupStateFault(inner) + crate::error::ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(inner) => { + Error::InvalidDbSecurityGroupStateFault(inner) } - crate::error::ModifyDBClusterErrorKind::InvalidDBSubnetGroupStateFault(inner) => { - Error::InvalidDBSubnetGroupStateFault(inner) + crate::error::ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(inner) => { + Error::InvalidDbSubnetGroupStateFault(inner) } crate::error::ModifyDBClusterErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) } - crate::error::ModifyDBClusterErrorKind::InvalidVPCNetworkStateFault(inner) => { - Error::InvalidVPCNetworkStateFault(inner) + crate::error::ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(inner) => { + Error::InvalidVpcNetworkStateFault(inner) } crate::error::ModifyDBClusterErrorKind::StorageQuotaExceededFault(inner) => { Error::StorageQuotaExceededFault(inner) @@ -2048,11 +2048,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault(inner) => Error::DBClusterEndpointNotFoundFault(inner), - crate::error::ModifyDBClusterEndpointErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault(inner) => Error::InvalidDBClusterEndpointStateFault(inner), - crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::ModifyDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault(inner) => Error::DbClusterEndpointNotFoundFault(inner), + crate::error::ModifyDBClusterEndpointErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault(inner) => Error::InvalidDbClusterEndpointStateFault(inner), + crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::ModifyDBClusterEndpointErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2067,8 +2067,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::ModifyDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(inner) => Error::InvalidDBParameterGroupStateFault(inner), + crate::error::ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(inner) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::ModifyDBClusterParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2083,8 +2083,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBClusterSnapshotAttributeErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), - crate::error::ModifyDBClusterSnapshotAttributeErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), + crate::error::ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), + crate::error::ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), crate::error::ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(inner) => Error::SharedSnapshotQuotaExceededFault(inner), crate::error::ModifyDBClusterSnapshotAttributeErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -2105,48 +2105,48 @@ impl From> fo crate::error::ModifyDBInstanceErrorKind::CertificateNotFoundFault(inner) => { Error::CertificateNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::DBInstanceAlreadyExistsFault(inner) => { - Error::DBInstanceAlreadyExistsFault(inner) + crate::error::ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(inner) => { + Error::DbInstanceAlreadyExistsFault(inner) } - crate::error::ModifyDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::DBParameterGroupNotFoundFault(inner) => { - Error::DBParameterGroupNotFoundFault(inner) + crate::error::ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(inner) => { + Error::DbParameterGroupNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::DBSecurityGroupNotFoundFault(inner) => { - Error::DBSecurityGroupNotFoundFault(inner) + crate::error::ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(inner) => { + Error::DbSecurityGroupNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::DBUpgradeDependencyFailureFault(inner) => { - Error::DBUpgradeDependencyFailureFault(inner) + crate::error::ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(inner) => { + Error::DbUpgradeDependencyFailureFault(inner) } crate::error::ModifyDBInstanceErrorKind::DomainNotFoundFault(inner) => { Error::DomainNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::InsufficientDBInstanceCapacityFault( + crate::error::ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault( inner, - ) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::ModifyDBInstanceErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + ) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::ModifyDBInstanceErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::ModifyDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } - crate::error::ModifyDBInstanceErrorKind::InvalidDBSecurityGroupStateFault( + crate::error::ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault( inner, - ) => Error::InvalidDBSecurityGroupStateFault(inner), - crate::error::ModifyDBInstanceErrorKind::InvalidVPCNetworkStateFault(inner) => { - Error::InvalidVPCNetworkStateFault(inner) + ) => Error::InvalidDbSecurityGroupStateFault(inner), + crate::error::ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(inner) => { + Error::InvalidVpcNetworkStateFault(inner) } - crate::error::ModifyDBInstanceErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::ModifyDBInstanceErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::ModifyDBInstanceErrorKind::OptionGroupNotFoundFault(inner) => { Error::OptionGroupNotFoundFault(inner) } - crate::error::ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault( + crate::error::ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault( inner, - ) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + ) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::ModifyDBInstanceErrorKind::StorageQuotaExceededFault(inner) => { Error::StorageQuotaExceededFault(inner) } @@ -2165,8 +2165,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::ModifyDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault(inner) => Error::InvalidDBParameterGroupStateFault(inner), + crate::error::ModifyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::ModifyDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault(inner) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::ModifyDBParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2177,14 +2177,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ModifyDBProxyErrorKind::DBProxyAlreadyExistsFault(inner) => { - Error::DBProxyAlreadyExistsFault(inner) + crate::error::ModifyDBProxyErrorKind::DbProxyAlreadyExistsFault(inner) => { + Error::DbProxyAlreadyExistsFault(inner) } - crate::error::ModifyDBProxyErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::ModifyDBProxyErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::ModifyDBProxyErrorKind::InvalidDBProxyStateFault(inner) => { - Error::InvalidDBProxyStateFault(inner) + crate::error::ModifyDBProxyErrorKind::InvalidDbProxyStateFault(inner) => { + Error::InvalidDbProxyStateFault(inner) } crate::error::ModifyDBProxyErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2196,17 +2196,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ModifyDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault( + crate::error::ModifyDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault( inner, - ) => Error::DBProxyEndpointAlreadyExistsFault(inner), - crate::error::ModifyDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault( + ) => Error::DbProxyEndpointAlreadyExistsFault(inner), + crate::error::ModifyDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault( inner, - ) => Error::DBProxyEndpointNotFoundFault(inner), - crate::error::ModifyDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault( + ) => Error::DbProxyEndpointNotFoundFault(inner), + crate::error::ModifyDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault( inner, - ) => Error::InvalidDBProxyEndpointStateFault(inner), - crate::error::ModifyDBProxyEndpointErrorKind::InvalidDBProxyStateFault(inner) => { - Error::InvalidDBProxyStateFault(inner) + ) => Error::InvalidDbProxyEndpointStateFault(inner), + crate::error::ModifyDBProxyEndpointErrorKind::InvalidDbProxyStateFault(inner) => { + Error::InvalidDbProxyStateFault(inner) } crate::error::ModifyDBProxyEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2222,9 +2222,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBProxyTargetGroupErrorKind::DBProxyNotFoundFault(inner) => Error::DBProxyNotFoundFault(inner), - crate::error::ModifyDBProxyTargetGroupErrorKind::DBProxyTargetGroupNotFoundFault(inner) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::ModifyDBProxyTargetGroupErrorKind::InvalidDBProxyStateFault(inner) => Error::InvalidDBProxyStateFault(inner), + crate::error::ModifyDBProxyTargetGroupErrorKind::DbProxyNotFoundFault(inner) => Error::DbProxyNotFoundFault(inner), + crate::error::ModifyDBProxyTargetGroupErrorKind::DbProxyTargetGroupNotFoundFault(inner) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::ModifyDBProxyTargetGroupErrorKind::InvalidDbProxyStateFault(inner) => Error::InvalidDbProxyStateFault(inner), crate::error::ModifyDBProxyTargetGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2235,8 +2235,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ModifyDBSnapshotErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + crate::error::ModifyDBSnapshotErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::ModifyDBSnapshotErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2252,8 +2252,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ModifyDBSnapshotAttributeErrorKind::DBSnapshotNotFoundFault(inner) => Error::DBSnapshotNotFoundFault(inner), - crate::error::ModifyDBSnapshotAttributeErrorKind::InvalidDBSnapshotStateFault(inner) => Error::InvalidDBSnapshotStateFault(inner), + crate::error::ModifyDBSnapshotAttributeErrorKind::DbSnapshotNotFoundFault(inner) => Error::DbSnapshotNotFoundFault(inner), + crate::error::ModifyDBSnapshotAttributeErrorKind::InvalidDbSnapshotStateFault(inner) => Error::InvalidDbSnapshotStateFault(inner), crate::error::ModifyDBSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(inner) => Error::SharedSnapshotQuotaExceededFault(inner), crate::error::ModifyDBSnapshotAttributeErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -2265,14 +2265,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( inner, - ) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + ) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } - crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault(inner) => { - Error::DBSubnetQuotaExceededFault(inner) + crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(inner) => { + Error::DbSubnetQuotaExceededFault(inner) } crate::error::ModifyDBSubnetGroupErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) @@ -2295,9 +2295,9 @@ impl From match err.kind { crate::error::ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(inner) => Error::EventSubscriptionQuotaExceededFault(inner), - crate::error::ModifyEventSubscriptionErrorKind::SNSInvalidTopicFault(inner) => Error::SNSInvalidTopicFault(inner), - crate::error::ModifyEventSubscriptionErrorKind::SNSNoAuthorizationFault(inner) => Error::SNSNoAuthorizationFault(inner), - crate::error::ModifyEventSubscriptionErrorKind::SNSTopicArnNotFoundFault(inner) => Error::SNSTopicArnNotFoundFault(inner), + crate::error::ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(inner) => Error::SnsInvalidTopicFault(inner), + crate::error::ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(inner) => Error::SnsNoAuthorizationFault(inner), + crate::error::ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(inner) => Error::SnsTopicArnNotFoundFault(inner), crate::error::ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(inner) => Error::SubscriptionCategoryNotFoundFault(inner), crate::error::ModifyEventSubscriptionErrorKind::SubscriptionNotFoundFault(inner) => Error::SubscriptionNotFoundFault(inner), crate::error::ModifyEventSubscriptionErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2313,11 +2313,11 @@ impl From> crate::error::ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(inner) => { Error::GlobalClusterNotFoundFault(inner) } - crate::error::ModifyGlobalClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::ModifyGlobalClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::ModifyGlobalClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::ModifyGlobalClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault( inner, @@ -2352,11 +2352,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PromoteReadReplicaErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::PromoteReadReplicaErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::PromoteReadReplicaErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::PromoteReadReplicaErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::PromoteReadReplicaErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2372,12 +2372,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PromoteReadReplicaDBClusterErrorKind::DBClusterNotFoundFault( + crate::error::PromoteReadReplicaDBClusterErrorKind::DbClusterNotFoundFault( inner, - ) => Error::DBClusterNotFoundFault(inner), - crate::error::PromoteReadReplicaDBClusterErrorKind::InvalidDBClusterStateFault( + ) => Error::DbClusterNotFoundFault(inner), + crate::error::PromoteReadReplicaDBClusterErrorKind::InvalidDbClusterStateFault( inner, - ) => Error::InvalidDBClusterStateFault(inner), + ) => Error::InvalidDbClusterStateFault(inner), crate::error::PromoteReadReplicaDBClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2394,9 +2394,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceAlreadyExistsFault(inner) => Error::ReservedDBInstanceAlreadyExistsFault(inner), - crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceQuotaExceededFault(inner) => Error::ReservedDBInstanceQuotaExceededFault(inner), - crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstancesOfferingNotFoundFault(inner) => Error::ReservedDBInstancesOfferingNotFoundFault(inner), + crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceAlreadyExistsFault(inner) => Error::ReservedDbInstanceAlreadyExistsFault(inner), + crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceQuotaExceededFault(inner) => Error::ReservedDbInstanceQuotaExceededFault(inner), + crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstancesOfferingNotFoundFault(inner) => Error::ReservedDbInstancesOfferingNotFoundFault(inner), crate::error::PurchaseReservedDBInstancesOfferingErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2407,11 +2407,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RebootDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::RebootDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::RebootDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::RebootDBInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2425,15 +2425,15 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RegisterDBProxyTargetsErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::DBProxyNotFoundFault(inner) => Error::DBProxyNotFoundFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::DBProxyTargetAlreadyRegisteredFault(inner) => Error::DBProxyTargetAlreadyRegisteredFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault(inner) => Error::DBProxyTargetGroupNotFoundFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::DbProxyNotFoundFault(inner) => Error::DbProxyNotFoundFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::DbProxyTargetAlreadyRegisteredFault(inner) => Error::DbProxyTargetAlreadyRegisteredFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault(inner) => Error::DbProxyTargetGroupNotFoundFault(inner), crate::error::RegisterDBProxyTargetsErrorKind::InsufficientAvailableIPsInSubnetFault(inner) => Error::InsufficientAvailableIPsInSubnetFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), - crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault(inner) => Error::InvalidDBProxyStateFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), + crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault(inner) => Error::InvalidDbProxyStateFault(inner), crate::error::RegisterDBProxyTargetsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2446,8 +2446,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveFromGlobalClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } crate::error::RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault( inner, @@ -2469,15 +2469,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveRoleFromDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::RemoveRoleFromDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::RemoveRoleFromDBClusterErrorKind::DBClusterRoleNotFoundFault( + crate::error::RemoveRoleFromDBClusterErrorKind::DbClusterRoleNotFoundFault( inner, - ) => Error::DBClusterRoleNotFoundFault(inner), - crate::error::RemoveRoleFromDBClusterErrorKind::InvalidDBClusterStateFault( + ) => Error::DbClusterRoleNotFoundFault(inner), + crate::error::RemoveRoleFromDBClusterErrorKind::InvalidDbClusterStateFault( inner, - ) => Error::InvalidDBClusterStateFault(inner), + ) => Error::InvalidDbClusterStateFault(inner), crate::error::RemoveRoleFromDBClusterErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2492,15 +2492,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveRoleFromDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::RemoveRoleFromDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::RemoveRoleFromDBInstanceErrorKind::DBInstanceRoleNotFoundFault( + crate::error::RemoveRoleFromDBInstanceErrorKind::DbInstanceRoleNotFoundFault( inner, - ) => Error::DBInstanceRoleNotFoundFault(inner), - crate::error::RemoveRoleFromDBInstanceErrorKind::InvalidDBInstanceStateFault( + ) => Error::DbInstanceRoleNotFoundFault(inner), + crate::error::RemoveRoleFromDBInstanceErrorKind::InvalidDbInstanceStateFault( inner, - ) => Error::InvalidDBInstanceStateFault(inner), + ) => Error::InvalidDbInstanceStateFault(inner), crate::error::RemoveRoleFromDBInstanceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2531,20 +2531,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemoveTagsFromResourceErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::RemoveTagsFromResourceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::RemoveTagsFromResourceErrorKind::DBProxyNotFoundFault(inner) => { - Error::DBProxyNotFoundFault(inner) + crate::error::RemoveTagsFromResourceErrorKind::DbProxyNotFoundFault(inner) => { + Error::DbProxyNotFoundFault(inner) } - crate::error::RemoveTagsFromResourceErrorKind::DBProxyTargetGroupNotFoundFault( + crate::error::RemoveTagsFromResourceErrorKind::DbProxyTargetGroupNotFoundFault( inner, - ) => Error::DBProxyTargetGroupNotFoundFault(inner), - crate::error::RemoveTagsFromResourceErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + ) => Error::DbProxyTargetGroupNotFoundFault(inner), + crate::error::RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::RemoveTagsFromResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2562,8 +2562,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ResetDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::ResetDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault(inner) => Error::InvalidDBParameterGroupStateFault(inner), + crate::error::ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(inner) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::ResetDBClusterParameterGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2574,12 +2574,12 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ResetDBParameterGroupErrorKind::DBParameterGroupNotFoundFault( + crate::error::ResetDBParameterGroupErrorKind::DbParameterGroupNotFoundFault( inner, - ) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::ResetDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault( + ) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::ResetDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault( inner, - ) => Error::InvalidDBParameterGroupStateFault(inner), + ) => Error::InvalidDbParameterGroupStateFault(inner), crate::error::ResetDBParameterGroupErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -2592,19 +2592,19 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterAlreadyExistsFault(inner) => Error::DBClusterAlreadyExistsFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterParameterGroupNotFoundFault(inner) => Error::DBClusterParameterGroupNotFoundFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterQuotaExceededFault(inner) => Error::DBClusterQuotaExceededFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterAlreadyExistsFault(inner) => Error::DbClusterAlreadyExistsFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterParameterGroupNotFoundFault(inner) => Error::DbClusterParameterGroupNotFoundFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterQuotaExceededFault(inner) => Error::DbClusterQuotaExceededFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::InsufficientStorageClusterCapacityFault(inner) => Error::InsufficientStorageClusterCapacityFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDBSubnetGroupStateFault(inner) => Error::InvalidDBSubnetGroupStateFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDbSubnetGroupStateFault(inner) => Error::InvalidDbSubnetGroupStateFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::InvalidS3BucketFault(inner) => Error::InvalidS3BucketFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBClusterFromS3ErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBClusterFromS3ErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBClusterFromS3ErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -2620,21 +2620,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterAlreadyExistsFault(inner) => Error::DBClusterAlreadyExistsFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterParameterGroupNotFoundFault(inner) => Error::DBClusterParameterGroupNotFoundFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterQuotaExceededFault(inner) => Error::DBClusterQuotaExceededFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBSnapshotNotFoundFault(inner) => Error::DBSnapshotNotFoundFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(inner) => Error::DbClusterAlreadyExistsFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterParameterGroupNotFoundFault(inner) => Error::DbClusterParameterGroupNotFoundFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(inner) => Error::DbClusterQuotaExceededFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(inner) => Error::DbSnapshotNotFoundFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::InsufficientDBClusterCapacityFault(inner) => Error::InsufficientDBClusterCapacityFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(inner) => Error::InsufficientDbClusterCapacityFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault(inner) => Error::InsufficientStorageClusterCapacityFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDBSnapshotStateFault(inner) => Error::InvalidDBSnapshotStateFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(inner) => Error::InvalidDbSnapshotStateFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(inner) => Error::InvalidRestoreFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBClusterFromSnapshotErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBClusterFromSnapshotErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2651,22 +2651,22 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterAlreadyExistsFault(inner) => Error::DBClusterAlreadyExistsFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterNotFoundFault(inner) => Error::DBClusterNotFoundFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterParameterGroupNotFoundFault(inner) => Error::DBClusterParameterGroupNotFoundFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterQuotaExceededFault(inner) => Error::DBClusterQuotaExceededFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterSnapshotNotFoundFault(inner) => Error::DBClusterSnapshotNotFoundFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(inner) => Error::DbClusterAlreadyExistsFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterParameterGroupNotFoundFault(inner) => Error::DbClusterParameterGroupNotFoundFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(inner) => Error::DbClusterQuotaExceededFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(inner) => Error::DbClusterSnapshotNotFoundFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::InsufficientDBClusterCapacityFault(inner) => Error::InsufficientDBClusterCapacityFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(inner) => Error::InsufficientDbClusterCapacityFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault(inner) => Error::InsufficientStorageClusterCapacityFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterSnapshotStateFault(inner) => Error::InvalidDBClusterSnapshotStateFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterStateFault(inner) => Error::InvalidDBClusterStateFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBSnapshotStateFault(inner) => Error::InvalidDBSnapshotStateFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(inner) => Error::InvalidDbClusterSnapshotStateFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(inner) => Error::InvalidDbSnapshotStateFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(inner) => Error::InvalidRestoreFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBClusterToPointInTimeErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBClusterToPointInTimeErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2685,22 +2685,22 @@ impl From match err.kind { crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::AuthorizationNotFoundFault(inner) => Error::AuthorizationNotFoundFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::BackupPolicyNotFoundFault(inner) => Error::BackupPolicyNotFoundFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBInstanceAlreadyExistsFault(inner) => Error::DBInstanceAlreadyExistsFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSnapshotNotFoundFault(inner) => Error::DBSnapshotNotFoundFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbInstanceAlreadyExistsFault(inner) => Error::DbInstanceAlreadyExistsFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSnapshotNotFoundFault(inner) => Error::DbSnapshotNotFoundFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InstanceQuotaExceededFault(inner) => Error::InstanceQuotaExceededFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDBInstanceCapacityFault(inner) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDBSnapshotStateFault(inner) => Error::InvalidDBSnapshotStateFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDbInstanceCapacityFault(inner) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDbSnapshotStateFault(inner) => Error::InvalidDbSnapshotStateFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidRestoreFault(inner) => Error::InvalidRestoreFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAZFault(inner) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAzFault(inner) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::StorageTypeNotSupportedFault(inner) => Error::StorageTypeNotSupportedFault(inner), crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2717,19 +2717,19 @@ impl From match err.kind { crate::error::RestoreDBInstanceFromS3ErrorKind::AuthorizationNotFoundFault(inner) => Error::AuthorizationNotFoundFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::BackupPolicyNotFoundFault(inner) => Error::BackupPolicyNotFoundFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::DBInstanceAlreadyExistsFault(inner) => Error::DBInstanceAlreadyExistsFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::DbInstanceAlreadyExistsFault(inner) => Error::DbInstanceAlreadyExistsFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::InstanceQuotaExceededFault(inner) => Error::InstanceQuotaExceededFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::InsufficientDBInstanceCapacityFault(inner) => Error::InsufficientDBInstanceCapacityFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::InsufficientDbInstanceCapacityFault(inner) => Error::InsufficientDbInstanceCapacityFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidS3BucketFault(inner) => Error::InvalidS3BucketFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAZFault(inner) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + crate::error::RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAzFault(inner) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::StorageTypeNotSupportedFault(inner) => Error::StorageTypeNotSupportedFault(inner), crate::error::RestoreDBInstanceFromS3ErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2748,24 +2748,24 @@ impl From match err.kind { crate::error::RestoreDBInstanceToPointInTimeErrorKind::AuthorizationNotFoundFault(inner) => Error::AuthorizationNotFoundFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::BackupPolicyNotFoundFault(inner) => Error::BackupPolicyNotFoundFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAlreadyExistsFault(inner) => Error::DBInstanceAlreadyExistsFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAutomatedBackupNotFoundFault(inner) => Error::DBInstanceAutomatedBackupNotFoundFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBParameterGroupNotFoundFault(inner) => Error::DBParameterGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupNotFoundFault(inner) => Error::DBSubnetGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAlreadyExistsFault(inner) => Error::DbInstanceAlreadyExistsFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAutomatedBackupNotFoundFault(inner) => Error::DbInstanceAutomatedBackupNotFoundFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbParameterGroupNotFoundFault(inner) => Error::DbParameterGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::DomainNotFoundFault(inner) => Error::DomainNotFoundFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::InstanceQuotaExceededFault(inner) => Error::InstanceQuotaExceededFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::InsufficientDBInstanceCapacityFault(inner) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::InsufficientDbInstanceCapacityFault(inner) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidRestoreFault(inner) => Error::InvalidRestoreFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidSubnet(inner) => Error::InvalidSubnet(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidVPCNetworkStateFault(inner) => Error::InvalidVPCNetworkStateFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::OptionGroupNotFoundFault(inner) => Error::OptionGroupNotFoundFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::PointInTimeRestoreNotEnabledFault(inner) => Error::PointInTimeRestoreNotEnabledFault(inner), - crate::error::RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAZFault(inner) => Error::ProvisionedIopsNotAvailableInAZFault(inner), + crate::error::RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAzFault(inner) => Error::ProvisionedIopsNotAvailableInAzFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::StorageTypeNotSupportedFault(inner) => Error::StorageTypeNotSupportedFault(inner), crate::error::RestoreDBInstanceToPointInTimeErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -2783,8 +2783,8 @@ impl From match err.kind { crate::error::RevokeDBSecurityGroupIngressErrorKind::AuthorizationNotFoundFault(inner) => Error::AuthorizationNotFoundFault(inner), - crate::error::RevokeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault(inner) => Error::DBSecurityGroupNotFoundFault(inner), - crate::error::RevokeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault(inner) => Error::InvalidDBSecurityGroupStateFault(inner), + crate::error::RevokeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault(inner) => Error::DbSecurityGroupNotFoundFault(inner), + crate::error::RevokeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault(inner) => Error::InvalidDbSecurityGroupStateFault(inner), crate::error::RevokeDBSecurityGroupIngressErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2795,20 +2795,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartActivityStreamErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::StartActivityStreamErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::StartActivityStreamErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::StartActivityStreamErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::StartActivityStreamErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::StartActivityStreamErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StartActivityStreamErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StartActivityStreamErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } - crate::error::StartActivityStreamErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::StartActivityStreamErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::StartActivityStreamErrorKind::ResourceNotFoundFault(inner) => { Error::ResourceNotFoundFault(inner) @@ -2825,14 +2825,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::StartDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::StartDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::StartDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StartDBClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StartDBClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::StartDBClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2847,35 +2847,35 @@ impl From> for crate::error::StartDBInstanceErrorKind::AuthorizationNotFoundFault(inner) => { Error::AuthorizationNotFoundFault(inner) } - crate::error::StartDBInstanceErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::StartDBInstanceErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::StartDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::StartDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::StartDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + crate::error::StartDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( inner, - ) => Error::DBSubnetGroupDoesNotCoverEnoughAZs(inner), - crate::error::StartDBInstanceErrorKind::DBSubnetGroupNotFoundFault(inner) => { - Error::DBSubnetGroupNotFoundFault(inner) + ) => Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner), + crate::error::StartDBInstanceErrorKind::DbSubnetGroupNotFoundFault(inner) => { + Error::DbSubnetGroupNotFoundFault(inner) } - crate::error::StartDBInstanceErrorKind::InsufficientDBInstanceCapacityFault( + crate::error::StartDBInstanceErrorKind::InsufficientDbInstanceCapacityFault( inner, - ) => Error::InsufficientDBInstanceCapacityFault(inner), - crate::error::StartDBInstanceErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + ) => Error::InsufficientDbInstanceCapacityFault(inner), + crate::error::StartDBInstanceErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StartDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StartDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::StartDBInstanceErrorKind::InvalidSubnet(inner) => { Error::InvalidSubnet(inner) } - crate::error::StartDBInstanceErrorKind::InvalidVPCNetworkStateFault(inner) => { - Error::InvalidVPCNetworkStateFault(inner) + crate::error::StartDBInstanceErrorKind::InvalidVpcNetworkStateFault(inner) => { + Error::InvalidVpcNetworkStateFault(inner) } - crate::error::StartDBInstanceErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::StartDBInstanceErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::StartDBInstanceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2897,10 +2897,10 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceAutomatedBackupQuotaExceededFault(inner) => Error::DBInstanceAutomatedBackupQuotaExceededFault(inner), - crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), - crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::KMSKeyNotAccessibleFault(inner) => Error::KMSKeyNotAccessibleFault(inner), + crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceAutomatedBackupQuotaExceededFault(inner) => Error::DbInstanceAutomatedBackupQuotaExceededFault(inner), + crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), + crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner), crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::StorageTypeNotSupportedFault(inner) => Error::StorageTypeNotSupportedFault(inner), crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -2912,11 +2912,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartExportTaskErrorKind::DBClusterSnapshotNotFoundFault(inner) => { - Error::DBClusterSnapshotNotFoundFault(inner) + crate::error::StartExportTaskErrorKind::DbClusterSnapshotNotFoundFault(inner) => { + Error::DbClusterSnapshotNotFoundFault(inner) } - crate::error::StartExportTaskErrorKind::DBSnapshotNotFoundFault(inner) => { - Error::DBSnapshotNotFoundFault(inner) + crate::error::StartExportTaskErrorKind::DbSnapshotNotFoundFault(inner) => { + Error::DbSnapshotNotFoundFault(inner) } crate::error::StartExportTaskErrorKind::ExportTaskAlreadyExistsFault(inner) => { Error::ExportTaskAlreadyExistsFault(inner) @@ -2936,8 +2936,8 @@ impl From> for crate::error::StartExportTaskErrorKind::InvalidS3BucketFault(inner) => { Error::InvalidS3BucketFault(inner) } - crate::error::StartExportTaskErrorKind::KMSKeyNotAccessibleFault(inner) => { - Error::KMSKeyNotAccessibleFault(inner) + crate::error::StartExportTaskErrorKind::KmsKeyNotAccessibleFault(inner) => { + Error::KmsKeyNotAccessibleFault(inner) } crate::error::StartExportTaskErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2949,17 +2949,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopActivityStreamErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::StopActivityStreamErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::StopActivityStreamErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::StopActivityStreamErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::StopActivityStreamErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::StopActivityStreamErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StopActivityStreamErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StopActivityStreamErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::StopActivityStreamErrorKind::ResourceNotFoundFault(inner) => { Error::ResourceNotFoundFault(inner) @@ -2976,14 +2976,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopDBClusterErrorKind::DBClusterNotFoundFault(inner) => { - Error::DBClusterNotFoundFault(inner) + crate::error::StopDBClusterErrorKind::DbClusterNotFoundFault(inner) => { + Error::DbClusterNotFoundFault(inner) } - crate::error::StopDBClusterErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::StopDBClusterErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StopDBClusterErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StopDBClusterErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::StopDBClusterErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2995,17 +2995,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopDBInstanceErrorKind::DBInstanceNotFoundFault(inner) => { - Error::DBInstanceNotFoundFault(inner) + crate::error::StopDBInstanceErrorKind::DbInstanceNotFoundFault(inner) => { + Error::DbInstanceNotFoundFault(inner) } - crate::error::StopDBInstanceErrorKind::DBSnapshotAlreadyExistsFault(inner) => { - Error::DBSnapshotAlreadyExistsFault(inner) + crate::error::StopDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(inner) => { + Error::DbSnapshotAlreadyExistsFault(inner) } - crate::error::StopDBInstanceErrorKind::InvalidDBClusterStateFault(inner) => { - Error::InvalidDBClusterStateFault(inner) + crate::error::StopDBInstanceErrorKind::InvalidDbClusterStateFault(inner) => { + Error::InvalidDbClusterStateFault(inner) } - crate::error::StopDBInstanceErrorKind::InvalidDBInstanceStateFault(inner) => { - Error::InvalidDBInstanceStateFault(inner) + crate::error::StopDBInstanceErrorKind::InvalidDbInstanceStateFault(inner) => { + Error::InvalidDbInstanceStateFault(inner) } crate::error::StopDBInstanceErrorKind::SnapshotQuotaExceededFault(inner) => { Error::SnapshotQuotaExceededFault(inner) @@ -3028,8 +3028,8 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault(inner) => Error::DBInstanceNotFoundFault(inner), - crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault(inner) => Error::InvalidDBInstanceStateFault(inner), + crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner), + crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner), crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), diff --git a/sdk/rds/src/input.rs b/sdk/rds/src/input.rs index a23c80a3fc1a..f78c09ac90d9 100644 --- a/sdk/rds/src/input.rs +++ b/sdk/rds/src/input.rs @@ -1,8 +1,8 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. use std::fmt::Write; -/// See [`AddRoleToDBClusterInput`](crate::input::AddRoleToDBClusterInput) +/// See [`AddRoleToDbClusterInput`](crate::input::AddRoleToDbClusterInput) pub mod add_role_to_db_cluster_input { - /// A builder for [`AddRoleToDBClusterInput`](crate::input::AddRoleToDBClusterInput) + /// A builder for [`AddRoleToDbClusterInput`](crate::input::AddRoleToDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -43,14 +43,14 @@ pub mod add_role_to_db_cluster_input { self.feature_name = input; self } - /// Consumes the builder and constructs a [`AddRoleToDBClusterInput`](crate::input::AddRoleToDBClusterInput) + /// Consumes the builder and constructs a [`AddRoleToDbClusterInput`](crate::input::AddRoleToDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::AddRoleToDBClusterInput, + crate::input::AddRoleToDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AddRoleToDBClusterInput { + Ok(crate::input::AddRoleToDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, role_arn: self.role_arn, feature_name: self.feature_name, @@ -62,7 +62,7 @@ pub mod add_role_to_db_cluster_input { pub type AddRoleToDBClusterInputOperationOutputAlias = crate::operation::AddRoleToDBCluster; #[doc(hidden)] pub type AddRoleToDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AddRoleToDBClusterInput { +impl AddRoleToDbClusterInput { /// Consumes the builder and constructs an Operation<[`AddRoleToDBCluster`](crate::operation::AddRoleToDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -121,8 +121,9 @@ impl AddRoleToDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -130,7 +131,7 @@ impl AddRoleToDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -150,15 +151,15 @@ impl AddRoleToDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AddRoleToDBClusterInput`](crate::input::AddRoleToDBClusterInput) + /// Creates a new builder-style object to manufacture [`AddRoleToDbClusterInput`](crate::input::AddRoleToDbClusterInput) pub fn builder() -> crate::input::add_role_to_db_cluster_input::Builder { crate::input::add_role_to_db_cluster_input::Builder::default() } } -/// See [`AddRoleToDBInstanceInput`](crate::input::AddRoleToDBInstanceInput) +/// See [`AddRoleToDbInstanceInput`](crate::input::AddRoleToDbInstanceInput) pub mod add_role_to_db_instance_input { - /// A builder for [`AddRoleToDBInstanceInput`](crate::input::AddRoleToDBInstanceInput) + /// A builder for [`AddRoleToDbInstanceInput`](crate::input::AddRoleToDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -200,14 +201,14 @@ pub mod add_role_to_db_instance_input { self.feature_name = input; self } - /// Consumes the builder and constructs a [`AddRoleToDBInstanceInput`](crate::input::AddRoleToDBInstanceInput) + /// Consumes the builder and constructs a [`AddRoleToDbInstanceInput`](crate::input::AddRoleToDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::AddRoleToDBInstanceInput, + crate::input::AddRoleToDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AddRoleToDBInstanceInput { + Ok(crate::input::AddRoleToDbInstanceInput { db_instance_identifier: self.db_instance_identifier, role_arn: self.role_arn, feature_name: self.feature_name, @@ -219,7 +220,7 @@ pub mod add_role_to_db_instance_input { pub type AddRoleToDBInstanceInputOperationOutputAlias = crate::operation::AddRoleToDBInstance; #[doc(hidden)] pub type AddRoleToDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AddRoleToDBInstanceInput { +impl AddRoleToDbInstanceInput { /// Consumes the builder and constructs an Operation<[`AddRoleToDBInstance`](crate::operation::AddRoleToDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -278,8 +279,9 @@ impl AddRoleToDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -287,7 +289,7 @@ impl AddRoleToDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -307,7 +309,7 @@ impl AddRoleToDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AddRoleToDBInstanceInput`](crate::input::AddRoleToDBInstanceInput) + /// Creates a new builder-style object to manufacture [`AddRoleToDbInstanceInput`](crate::input::AddRoleToDbInstanceInput) pub fn builder() -> crate::input::add_role_to_db_instance_input::Builder { crate::input::add_role_to_db_instance_input::Builder::default() } @@ -449,8 +451,9 @@ impl AddSourceIdentifierToSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -458,7 +461,7 @@ impl AddSourceIdentifierToSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -599,8 +602,9 @@ impl AddTagsToResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -608,7 +612,7 @@ impl AddTagsToResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -780,8 +784,9 @@ impl ApplyPendingMaintenanceActionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -789,7 +794,7 @@ impl ApplyPendingMaintenanceActionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -815,9 +820,9 @@ impl ApplyPendingMaintenanceActionInput { } } -/// See [`AuthorizeDBSecurityGroupIngressInput`](crate::input::AuthorizeDBSecurityGroupIngressInput) +/// See [`AuthorizeDbSecurityGroupIngressInput`](crate::input::AuthorizeDbSecurityGroupIngressInput) pub mod authorize_db_security_group_ingress_input { - /// A builder for [`AuthorizeDBSecurityGroupIngressInput`](crate::input::AuthorizeDBSecurityGroupIngressInput) + /// A builder for [`AuthorizeDbSecurityGroupIngressInput`](crate::input::AuthorizeDbSecurityGroupIngressInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -903,14 +908,14 @@ pub mod authorize_db_security_group_ingress_input { self.ec2_security_group_owner_id = input; self } - /// Consumes the builder and constructs a [`AuthorizeDBSecurityGroupIngressInput`](crate::input::AuthorizeDBSecurityGroupIngressInput) + /// Consumes the builder and constructs a [`AuthorizeDbSecurityGroupIngressInput`](crate::input::AuthorizeDbSecurityGroupIngressInput) pub fn build( self, ) -> std::result::Result< - crate::input::AuthorizeDBSecurityGroupIngressInput, + crate::input::AuthorizeDbSecurityGroupIngressInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AuthorizeDBSecurityGroupIngressInput { + Ok(crate::input::AuthorizeDbSecurityGroupIngressInput { db_security_group_name: self.db_security_group_name, cidrip: self.cidrip, ec2_security_group_name: self.ec2_security_group_name, @@ -925,7 +930,7 @@ pub type AuthorizeDBSecurityGroupIngressInputOperationOutputAlias = crate::operation::AuthorizeDBSecurityGroupIngress; #[doc(hidden)] pub type AuthorizeDBSecurityGroupIngressInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AuthorizeDBSecurityGroupIngressInput { +impl AuthorizeDbSecurityGroupIngressInput { /// Consumes the builder and constructs an Operation<[`AuthorizeDBSecurityGroupIngress`](crate::operation::AuthorizeDBSecurityGroupIngress)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -987,8 +992,9 @@ impl AuthorizeDBSecurityGroupIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -996,7 +1002,7 @@ impl AuthorizeDBSecurityGroupIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1016,15 +1022,15 @@ impl AuthorizeDBSecurityGroupIngressInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AuthorizeDBSecurityGroupIngressInput`](crate::input::AuthorizeDBSecurityGroupIngressInput) + /// Creates a new builder-style object to manufacture [`AuthorizeDbSecurityGroupIngressInput`](crate::input::AuthorizeDbSecurityGroupIngressInput) pub fn builder() -> crate::input::authorize_db_security_group_ingress_input::Builder { crate::input::authorize_db_security_group_ingress_input::Builder::default() } } -/// See [`BacktrackDBClusterInput`](crate::input::BacktrackDBClusterInput) +/// See [`BacktrackDbClusterInput`](crate::input::BacktrackDbClusterInput) pub mod backtrack_db_cluster_input { - /// A builder for [`BacktrackDBClusterInput`](crate::input::BacktrackDBClusterInput) + /// A builder for [`BacktrackDbClusterInput`](crate::input::BacktrackDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1116,14 +1122,14 @@ pub mod backtrack_db_cluster_input { self.use_earliest_time_on_point_in_time_unavailable = input; self } - /// Consumes the builder and constructs a [`BacktrackDBClusterInput`](crate::input::BacktrackDBClusterInput) + /// Consumes the builder and constructs a [`BacktrackDbClusterInput`](crate::input::BacktrackDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::BacktrackDBClusterInput, + crate::input::BacktrackDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::BacktrackDBClusterInput { + Ok(crate::input::BacktrackDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, backtrack_to: self.backtrack_to, force: self.force, @@ -1137,7 +1143,7 @@ pub mod backtrack_db_cluster_input { pub type BacktrackDBClusterInputOperationOutputAlias = crate::operation::BacktrackDBCluster; #[doc(hidden)] pub type BacktrackDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl BacktrackDBClusterInput { +impl BacktrackDbClusterInput { /// Consumes the builder and constructs an Operation<[`BacktrackDBCluster`](crate::operation::BacktrackDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1196,8 +1202,9 @@ impl BacktrackDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1205,7 +1212,7 @@ impl BacktrackDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1225,7 +1232,7 @@ impl BacktrackDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`BacktrackDBClusterInput`](crate::input::BacktrackDBClusterInput) + /// Creates a new builder-style object to manufacture [`BacktrackDbClusterInput`](crate::input::BacktrackDbClusterInput) pub fn builder() -> crate::input::backtrack_db_cluster_input::Builder { crate::input::backtrack_db_cluster_input::Builder::default() } @@ -1328,8 +1335,9 @@ impl CancelExportTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1337,7 +1345,7 @@ impl CancelExportTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1363,9 +1371,9 @@ impl CancelExportTaskInput { } } -/// See [`CopyDBClusterParameterGroupInput`](crate::input::CopyDBClusterParameterGroupInput) +/// See [`CopyDbClusterParameterGroupInput`](crate::input::CopyDbClusterParameterGroupInput) pub mod copy_db_cluster_parameter_group_input { - /// A builder for [`CopyDBClusterParameterGroupInput`](crate::input::CopyDBClusterParameterGroupInput) + /// A builder for [`CopyDbClusterParameterGroupInput`](crate::input::CopyDbClusterParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1464,14 +1472,14 @@ pub mod copy_db_cluster_parameter_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CopyDBClusterParameterGroupInput`](crate::input::CopyDBClusterParameterGroupInput) + /// Consumes the builder and constructs a [`CopyDbClusterParameterGroupInput`](crate::input::CopyDbClusterParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CopyDBClusterParameterGroupInput, + crate::input::CopyDbClusterParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CopyDBClusterParameterGroupInput { + Ok(crate::input::CopyDbClusterParameterGroupInput { source_db_cluster_parameter_group_identifier: self .source_db_cluster_parameter_group_identifier, target_db_cluster_parameter_group_identifier: self @@ -1488,7 +1496,7 @@ pub type CopyDBClusterParameterGroupInputOperationOutputAlias = crate::operation::CopyDBClusterParameterGroup; #[doc(hidden)] pub type CopyDBClusterParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CopyDBClusterParameterGroupInput { +impl CopyDbClusterParameterGroupInput { /// Consumes the builder and constructs an Operation<[`CopyDBClusterParameterGroup`](crate::operation::CopyDBClusterParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1548,8 +1556,9 @@ impl CopyDBClusterParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1557,7 +1566,7 @@ impl CopyDBClusterParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1577,15 +1586,15 @@ impl CopyDBClusterParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CopyDBClusterParameterGroupInput`](crate::input::CopyDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CopyDbClusterParameterGroupInput`](crate::input::CopyDbClusterParameterGroupInput) pub fn builder() -> crate::input::copy_db_cluster_parameter_group_input::Builder { crate::input::copy_db_cluster_parameter_group_input::Builder::default() } } -/// See [`CopyDBClusterSnapshotInput`](crate::input::CopyDBClusterSnapshotInput) +/// See [`CopyDbClusterSnapshotInput`](crate::input::CopyDbClusterSnapshotInput) pub mod copy_db_cluster_snapshot_input { - /// A builder for [`CopyDBClusterSnapshotInput`](crate::input::CopyDBClusterSnapshotInput) + /// A builder for [`CopyDbClusterSnapshotInput`](crate::input::CopyDbClusterSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1748,14 +1757,14 @@ pub mod copy_db_cluster_snapshot_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CopyDBClusterSnapshotInput`](crate::input::CopyDBClusterSnapshotInput) + /// Consumes the builder and constructs a [`CopyDbClusterSnapshotInput`](crate::input::CopyDbClusterSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::CopyDBClusterSnapshotInput, + crate::input::CopyDbClusterSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CopyDBClusterSnapshotInput { + Ok(crate::input::CopyDbClusterSnapshotInput { source_db_cluster_snapshot_identifier: self.source_db_cluster_snapshot_identifier, target_db_cluster_snapshot_identifier: self.target_db_cluster_snapshot_identifier, kms_key_id: self.kms_key_id, @@ -1770,7 +1779,7 @@ pub mod copy_db_cluster_snapshot_input { pub type CopyDBClusterSnapshotInputOperationOutputAlias = crate::operation::CopyDBClusterSnapshot; #[doc(hidden)] pub type CopyDBClusterSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CopyDBClusterSnapshotInput { +impl CopyDbClusterSnapshotInput { /// Consumes the builder and constructs an Operation<[`CopyDBClusterSnapshot`](crate::operation::CopyDBClusterSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1829,8 +1838,9 @@ impl CopyDBClusterSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1838,7 +1848,7 @@ impl CopyDBClusterSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1858,15 +1868,15 @@ impl CopyDBClusterSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CopyDBClusterSnapshotInput`](crate::input::CopyDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`CopyDbClusterSnapshotInput`](crate::input::CopyDbClusterSnapshotInput) pub fn builder() -> crate::input::copy_db_cluster_snapshot_input::Builder { crate::input::copy_db_cluster_snapshot_input::Builder::default() } } -/// See [`CopyDBParameterGroupInput`](crate::input::CopyDBParameterGroupInput) +/// See [`CopyDbParameterGroupInput`](crate::input::CopyDbParameterGroupInput) pub mod copy_db_parameter_group_input { - /// A builder for [`CopyDBParameterGroupInput`](crate::input::CopyDBParameterGroupInput) + /// A builder for [`CopyDbParameterGroupInput`](crate::input::CopyDbParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1963,14 +1973,14 @@ pub mod copy_db_parameter_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CopyDBParameterGroupInput`](crate::input::CopyDBParameterGroupInput) + /// Consumes the builder and constructs a [`CopyDbParameterGroupInput`](crate::input::CopyDbParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CopyDBParameterGroupInput, + crate::input::CopyDbParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CopyDBParameterGroupInput { + Ok(crate::input::CopyDbParameterGroupInput { source_db_parameter_group_identifier: self.source_db_parameter_group_identifier, target_db_parameter_group_identifier: self.target_db_parameter_group_identifier, target_db_parameter_group_description: self.target_db_parameter_group_description, @@ -1983,7 +1993,7 @@ pub mod copy_db_parameter_group_input { pub type CopyDBParameterGroupInputOperationOutputAlias = crate::operation::CopyDBParameterGroup; #[doc(hidden)] pub type CopyDBParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CopyDBParameterGroupInput { +impl CopyDbParameterGroupInput { /// Consumes the builder and constructs an Operation<[`CopyDBParameterGroup`](crate::operation::CopyDBParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2042,8 +2052,9 @@ impl CopyDBParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2051,7 +2062,7 @@ impl CopyDBParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2071,15 +2082,15 @@ impl CopyDBParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CopyDBParameterGroupInput`](crate::input::CopyDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CopyDbParameterGroupInput`](crate::input::CopyDbParameterGroupInput) pub fn builder() -> crate::input::copy_db_parameter_group_input::Builder { crate::input::copy_db_parameter_group_input::Builder::default() } } -/// See [`CopyDBSnapshotInput`](crate::input::CopyDBSnapshotInput) +/// See [`CopyDbSnapshotInput`](crate::input::CopyDbSnapshotInput) pub mod copy_db_snapshot_input { - /// A builder for [`CopyDBSnapshotInput`](crate::input::CopyDBSnapshotInput) + /// A builder for [`CopyDbSnapshotInput`](crate::input::CopyDbSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2307,14 +2318,14 @@ pub mod copy_db_snapshot_input { self.target_custom_availability_zone = input; self } - /// Consumes the builder and constructs a [`CopyDBSnapshotInput`](crate::input::CopyDBSnapshotInput) + /// Consumes the builder and constructs a [`CopyDbSnapshotInput`](crate::input::CopyDbSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::CopyDBSnapshotInput, + crate::input::CopyDbSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CopyDBSnapshotInput { + Ok(crate::input::CopyDbSnapshotInput { source_db_snapshot_identifier: self.source_db_snapshot_identifier, target_db_snapshot_identifier: self.target_db_snapshot_identifier, kms_key_id: self.kms_key_id, @@ -2331,7 +2342,7 @@ pub mod copy_db_snapshot_input { pub type CopyDBSnapshotInputOperationOutputAlias = crate::operation::CopyDBSnapshot; #[doc(hidden)] pub type CopyDBSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CopyDBSnapshotInput { +impl CopyDbSnapshotInput { /// Consumes the builder and constructs an Operation<[`CopyDBSnapshot`](crate::operation::CopyDBSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2389,8 +2400,9 @@ impl CopyDBSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2398,7 +2410,7 @@ impl CopyDBSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2418,7 +2430,7 @@ impl CopyDBSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CopyDBSnapshotInput`](crate::input::CopyDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`CopyDbSnapshotInput`](crate::input::CopyDbSnapshotInput) pub fn builder() -> crate::input::copy_db_snapshot_input::Builder { crate::input::copy_db_snapshot_input::Builder::default() } @@ -2596,8 +2608,9 @@ impl CopyOptionGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2605,7 +2618,7 @@ impl CopyOptionGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2778,8 +2791,9 @@ impl CreateCustomAvailabilityZoneInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2787,7 +2801,7 @@ impl CreateCustomAvailabilityZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2813,9 +2827,9 @@ impl CreateCustomAvailabilityZoneInput { } } -/// See [`CreateDBClusterInput`](crate::input::CreateDBClusterInput) +/// See [`CreateDbClusterInput`](crate::input::CreateDbClusterInput) pub mod create_db_cluster_input { - /// A builder for [`CreateDBClusterInput`](crate::input::CreateDBClusterInput) + /// A builder for [`CreateDbClusterInput`](crate::input::CreateDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3477,14 +3491,14 @@ pub mod create_db_cluster_input { self.enable_global_write_forwarding = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterInput`](crate::input::CreateDBClusterInput) + /// Consumes the builder and constructs a [`CreateDbClusterInput`](crate::input::CreateDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBClusterInput, + crate::input::CreateDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBClusterInput { + Ok(crate::input::CreateDbClusterInput { availability_zones: self.availability_zones, backup_retention_period: self.backup_retention_period, character_set_name: self.character_set_name, @@ -3526,7 +3540,7 @@ pub mod create_db_cluster_input { pub type CreateDBClusterInputOperationOutputAlias = crate::operation::CreateDBCluster; #[doc(hidden)] pub type CreateDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBClusterInput { +impl CreateDbClusterInput { /// Consumes the builder and constructs an Operation<[`CreateDBCluster`](crate::operation::CreateDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3584,8 +3598,9 @@ impl CreateDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3593,7 +3608,7 @@ impl CreateDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3613,15 +3628,15 @@ impl CreateDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBClusterInput`](crate::input::CreateDBClusterInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterInput`](crate::input::CreateDbClusterInput) pub fn builder() -> crate::input::create_db_cluster_input::Builder { crate::input::create_db_cluster_input::Builder::default() } } -/// See [`CreateDBClusterEndpointInput`](crate::input::CreateDBClusterEndpointInput) +/// See [`CreateDbClusterEndpointInput`](crate::input::CreateDbClusterEndpointInput) pub mod create_db_cluster_endpoint_input { - /// A builder for [`CreateDBClusterEndpointInput`](crate::input::CreateDBClusterEndpointInput) + /// A builder for [`CreateDbClusterEndpointInput`](crate::input::CreateDbClusterEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3712,14 +3727,14 @@ pub mod create_db_cluster_endpoint_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterEndpointInput`](crate::input::CreateDBClusterEndpointInput) + /// Consumes the builder and constructs a [`CreateDbClusterEndpointInput`](crate::input::CreateDbClusterEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBClusterEndpointInput, + crate::input::CreateDbClusterEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBClusterEndpointInput { + Ok(crate::input::CreateDbClusterEndpointInput { db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, endpoint_type: self.endpoint_type, @@ -3735,7 +3750,7 @@ pub type CreateDBClusterEndpointInputOperationOutputAlias = crate::operation::CreateDBClusterEndpoint; #[doc(hidden)] pub type CreateDBClusterEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBClusterEndpointInput { +impl CreateDbClusterEndpointInput { /// Consumes the builder and constructs an Operation<[`CreateDBClusterEndpoint`](crate::operation::CreateDBClusterEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3794,8 +3809,9 @@ impl CreateDBClusterEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3803,7 +3819,7 @@ impl CreateDBClusterEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3823,15 +3839,15 @@ impl CreateDBClusterEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBClusterEndpointInput`](crate::input::CreateDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterEndpointInput`](crate::input::CreateDbClusterEndpointInput) pub fn builder() -> crate::input::create_db_cluster_endpoint_input::Builder { crate::input::create_db_cluster_endpoint_input::Builder::default() } } -/// See [`CreateDBClusterParameterGroupInput`](crate::input::CreateDBClusterParameterGroupInput) +/// See [`CreateDbClusterParameterGroupInput`](crate::input::CreateDbClusterParameterGroupInput) pub mod create_db_cluster_parameter_group_input { - /// A builder for [`CreateDBClusterParameterGroupInput`](crate::input::CreateDBClusterParameterGroupInput) + /// A builder for [`CreateDbClusterParameterGroupInput`](crate::input::CreateDbClusterParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3937,14 +3953,14 @@ pub mod create_db_cluster_parameter_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterParameterGroupInput`](crate::input::CreateDBClusterParameterGroupInput) + /// Consumes the builder and constructs a [`CreateDbClusterParameterGroupInput`](crate::input::CreateDbClusterParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBClusterParameterGroupInput, + crate::input::CreateDbClusterParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBClusterParameterGroupInput { + Ok(crate::input::CreateDbClusterParameterGroupInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, db_parameter_group_family: self.db_parameter_group_family, description: self.description, @@ -3958,7 +3974,7 @@ pub type CreateDBClusterParameterGroupInputOperationOutputAlias = crate::operation::CreateDBClusterParameterGroup; #[doc(hidden)] pub type CreateDBClusterParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBClusterParameterGroupInput { +impl CreateDbClusterParameterGroupInput { /// Consumes the builder and constructs an Operation<[`CreateDBClusterParameterGroup`](crate::operation::CreateDBClusterParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -4018,8 +4034,9 @@ impl CreateDBClusterParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4027,7 +4044,7 @@ impl CreateDBClusterParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4047,15 +4064,15 @@ impl CreateDBClusterParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBClusterParameterGroupInput`](crate::input::CreateDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterParameterGroupInput`](crate::input::CreateDbClusterParameterGroupInput) pub fn builder() -> crate::input::create_db_cluster_parameter_group_input::Builder { crate::input::create_db_cluster_parameter_group_input::Builder::default() } } -/// See [`CreateDBClusterSnapshotInput`](crate::input::CreateDBClusterSnapshotInput) +/// See [`CreateDbClusterSnapshotInput`](crate::input::CreateDbClusterSnapshotInput) pub mod create_db_cluster_snapshot_input { - /// A builder for [`CreateDBClusterSnapshotInput`](crate::input::CreateDBClusterSnapshotInput) + /// A builder for [`CreateDbClusterSnapshotInput`](crate::input::CreateDbClusterSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4126,14 +4143,14 @@ pub mod create_db_cluster_snapshot_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterSnapshotInput`](crate::input::CreateDBClusterSnapshotInput) + /// Consumes the builder and constructs a [`CreateDbClusterSnapshotInput`](crate::input::CreateDbClusterSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBClusterSnapshotInput, + crate::input::CreateDbClusterSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBClusterSnapshotInput { + Ok(crate::input::CreateDbClusterSnapshotInput { db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, db_cluster_identifier: self.db_cluster_identifier, tags: self.tags, @@ -4146,7 +4163,7 @@ pub type CreateDBClusterSnapshotInputOperationOutputAlias = crate::operation::CreateDBClusterSnapshot; #[doc(hidden)] pub type CreateDBClusterSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBClusterSnapshotInput { +impl CreateDbClusterSnapshotInput { /// Consumes the builder and constructs an Operation<[`CreateDBClusterSnapshot`](crate::operation::CreateDBClusterSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -4205,8 +4222,9 @@ impl CreateDBClusterSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4214,7 +4232,7 @@ impl CreateDBClusterSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4234,15 +4252,15 @@ impl CreateDBClusterSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBClusterSnapshotInput`](crate::input::CreateDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterSnapshotInput`](crate::input::CreateDbClusterSnapshotInput) pub fn builder() -> crate::input::create_db_cluster_snapshot_input::Builder { crate::input::create_db_cluster_snapshot_input::Builder::default() } } -/// See [`CreateDBInstanceInput`](crate::input::CreateDBInstanceInput) +/// See [`CreateDbInstanceInput`](crate::input::CreateDbInstanceInput) pub mod create_db_instance_input { - /// A builder for [`CreateDBInstanceInput`](crate::input::CreateDBInstanceInput) + /// A builder for [`CreateDbInstanceInput`](crate::input::CreateDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5566,14 +5584,14 @@ pub mod create_db_instance_input { self.enable_customer_owned_ip = input; self } - /// Consumes the builder and constructs a [`CreateDBInstanceInput`](crate::input::CreateDBInstanceInput) + /// Consumes the builder and constructs a [`CreateDbInstanceInput`](crate::input::CreateDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBInstanceInput, + crate::input::CreateDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBInstanceInput { + Ok(crate::input::CreateDbInstanceInput { db_name: self.db_name, db_instance_identifier: self.db_instance_identifier, allocated_storage: self.allocated_storage, @@ -5630,7 +5648,7 @@ pub mod create_db_instance_input { pub type CreateDBInstanceInputOperationOutputAlias = crate::operation::CreateDBInstance; #[doc(hidden)] pub type CreateDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBInstanceInput { +impl CreateDbInstanceInput { /// Consumes the builder and constructs an Operation<[`CreateDBInstance`](crate::operation::CreateDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -5689,8 +5707,9 @@ impl CreateDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5698,7 +5717,7 @@ impl CreateDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5718,15 +5737,15 @@ impl CreateDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBInstanceInput`](crate::input::CreateDBInstanceInput) + /// Creates a new builder-style object to manufacture [`CreateDbInstanceInput`](crate::input::CreateDbInstanceInput) pub fn builder() -> crate::input::create_db_instance_input::Builder { crate::input::create_db_instance_input::Builder::default() } } -/// See [`CreateDBInstanceReadReplicaInput`](crate::input::CreateDBInstanceReadReplicaInput) +/// See [`CreateDbInstanceReadReplicaInput`](crate::input::CreateDbInstanceReadReplicaInput) pub mod create_db_instance_read_replica_input { - /// A builder for [`CreateDBInstanceReadReplicaInput`](crate::input::CreateDBInstanceReadReplicaInput) + /// A builder for [`CreateDbInstanceReadReplicaInput`](crate::input::CreateDbInstanceReadReplicaInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6364,14 +6383,14 @@ pub mod create_db_instance_read_replica_input { self.max_allocated_storage = input; self } - /// Consumes the builder and constructs a [`CreateDBInstanceReadReplicaInput`](crate::input::CreateDBInstanceReadReplicaInput) + /// Consumes the builder and constructs a [`CreateDbInstanceReadReplicaInput`](crate::input::CreateDbInstanceReadReplicaInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBInstanceReadReplicaInput, + crate::input::CreateDbInstanceReadReplicaInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBInstanceReadReplicaInput { + Ok(crate::input::CreateDbInstanceReadReplicaInput { db_instance_identifier: self.db_instance_identifier, source_db_instance_identifier: self.source_db_instance_identifier, db_instance_class: self.db_instance_class, @@ -6413,7 +6432,7 @@ pub type CreateDBInstanceReadReplicaInputOperationOutputAlias = crate::operation::CreateDBInstanceReadReplica; #[doc(hidden)] pub type CreateDBInstanceReadReplicaInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBInstanceReadReplicaInput { +impl CreateDbInstanceReadReplicaInput { /// Consumes the builder and constructs an Operation<[`CreateDBInstanceReadReplica`](crate::operation::CreateDBInstanceReadReplica)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -6473,8 +6492,9 @@ impl CreateDBInstanceReadReplicaInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6482,7 +6502,7 @@ impl CreateDBInstanceReadReplicaInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6502,15 +6522,15 @@ impl CreateDBInstanceReadReplicaInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBInstanceReadReplicaInput`](crate::input::CreateDBInstanceReadReplicaInput) + /// Creates a new builder-style object to manufacture [`CreateDbInstanceReadReplicaInput`](crate::input::CreateDbInstanceReadReplicaInput) pub fn builder() -> crate::input::create_db_instance_read_replica_input::Builder { crate::input::create_db_instance_read_replica_input::Builder::default() } } -/// See [`CreateDBParameterGroupInput`](crate::input::CreateDBParameterGroupInput) +/// See [`CreateDbParameterGroupInput`](crate::input::CreateDbParameterGroupInput) pub mod create_db_parameter_group_input { - /// A builder for [`CreateDBParameterGroupInput`](crate::input::CreateDBParameterGroupInput) + /// A builder for [`CreateDbParameterGroupInput`](crate::input::CreateDbParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6663,14 +6683,14 @@ pub mod create_db_parameter_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBParameterGroupInput`](crate::input::CreateDBParameterGroupInput) + /// Consumes the builder and constructs a [`CreateDbParameterGroupInput`](crate::input::CreateDbParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBParameterGroupInput, + crate::input::CreateDbParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBParameterGroupInput { + Ok(crate::input::CreateDbParameterGroupInput { db_parameter_group_name: self.db_parameter_group_name, db_parameter_group_family: self.db_parameter_group_family, description: self.description, @@ -6683,7 +6703,7 @@ pub mod create_db_parameter_group_input { pub type CreateDBParameterGroupInputOperationOutputAlias = crate::operation::CreateDBParameterGroup; #[doc(hidden)] pub type CreateDBParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBParameterGroupInput { +impl CreateDbParameterGroupInput { /// Consumes the builder and constructs an Operation<[`CreateDBParameterGroup`](crate::operation::CreateDBParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -6742,8 +6762,9 @@ impl CreateDBParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6751,7 +6772,7 @@ impl CreateDBParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6771,15 +6792,15 @@ impl CreateDBParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBParameterGroupInput`](crate::input::CreateDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbParameterGroupInput`](crate::input::CreateDbParameterGroupInput) pub fn builder() -> crate::input::create_db_parameter_group_input::Builder { crate::input::create_db_parameter_group_input::Builder::default() } } -/// See [`CreateDBProxyInput`](crate::input::CreateDBProxyInput) +/// See [`CreateDbProxyInput`](crate::input::CreateDbProxyInput) pub mod create_db_proxy_input { - /// A builder for [`CreateDBProxyInput`](crate::input::CreateDBProxyInput) + /// A builder for [`CreateDbProxyInput`](crate::input::CreateDbProxyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6917,12 +6938,12 @@ pub mod create_db_proxy_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBProxyInput`](crate::input::CreateDBProxyInput) + /// Consumes the builder and constructs a [`CreateDbProxyInput`](crate::input::CreateDbProxyInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::CreateDBProxyInput { + Ok(crate::input::CreateDbProxyInput { db_proxy_name: self.db_proxy_name, engine_family: self.engine_family, auth: self.auth, @@ -6941,7 +6962,7 @@ pub mod create_db_proxy_input { pub type CreateDBProxyInputOperationOutputAlias = crate::operation::CreateDBProxy; #[doc(hidden)] pub type CreateDBProxyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBProxyInput { +impl CreateDbProxyInput { /// Consumes the builder and constructs an Operation<[`CreateDBProxy`](crate::operation::CreateDBProxy)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -6999,8 +7020,9 @@ impl CreateDBProxyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7008,7 +7030,7 @@ impl CreateDBProxyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7028,15 +7050,15 @@ impl CreateDBProxyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBProxyInput`](crate::input::CreateDBProxyInput) + /// Creates a new builder-style object to manufacture [`CreateDbProxyInput`](crate::input::CreateDbProxyInput) pub fn builder() -> crate::input::create_db_proxy_input::Builder { crate::input::create_db_proxy_input::Builder::default() } } -/// See [`CreateDBProxyEndpointInput`](crate::input::CreateDBProxyEndpointInput) +/// See [`CreateDbProxyEndpointInput`](crate::input::CreateDbProxyEndpointInput) pub mod create_db_proxy_endpoint_input { - /// A builder for [`CreateDBProxyEndpointInput`](crate::input::CreateDBProxyEndpointInput) + /// A builder for [`CreateDbProxyEndpointInput`](crate::input::CreateDbProxyEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7124,14 +7146,14 @@ pub mod create_db_proxy_endpoint_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBProxyEndpointInput`](crate::input::CreateDBProxyEndpointInput) + /// Consumes the builder and constructs a [`CreateDbProxyEndpointInput`](crate::input::CreateDbProxyEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBProxyEndpointInput, + crate::input::CreateDbProxyEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBProxyEndpointInput { + Ok(crate::input::CreateDbProxyEndpointInput { db_proxy_name: self.db_proxy_name, db_proxy_endpoint_name: self.db_proxy_endpoint_name, vpc_subnet_ids: self.vpc_subnet_ids, @@ -7146,7 +7168,7 @@ pub mod create_db_proxy_endpoint_input { pub type CreateDBProxyEndpointInputOperationOutputAlias = crate::operation::CreateDBProxyEndpoint; #[doc(hidden)] pub type CreateDBProxyEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBProxyEndpointInput { +impl CreateDbProxyEndpointInput { /// Consumes the builder and constructs an Operation<[`CreateDBProxyEndpoint`](crate::operation::CreateDBProxyEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7205,8 +7227,9 @@ impl CreateDBProxyEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7214,7 +7237,7 @@ impl CreateDBProxyEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7234,15 +7257,15 @@ impl CreateDBProxyEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBProxyEndpointInput`](crate::input::CreateDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`CreateDbProxyEndpointInput`](crate::input::CreateDbProxyEndpointInput) pub fn builder() -> crate::input::create_db_proxy_endpoint_input::Builder { crate::input::create_db_proxy_endpoint_input::Builder::default() } } -/// See [`CreateDBSecurityGroupInput`](crate::input::CreateDBSecurityGroupInput) +/// See [`CreateDbSecurityGroupInput`](crate::input::CreateDbSecurityGroupInput) pub mod create_db_security_group_input { - /// A builder for [`CreateDBSecurityGroupInput`](crate::input::CreateDBSecurityGroupInput) + /// A builder for [`CreateDbSecurityGroupInput`](crate::input::CreateDbSecurityGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7308,14 +7331,14 @@ pub mod create_db_security_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBSecurityGroupInput`](crate::input::CreateDBSecurityGroupInput) + /// Consumes the builder and constructs a [`CreateDbSecurityGroupInput`](crate::input::CreateDbSecurityGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBSecurityGroupInput, + crate::input::CreateDbSecurityGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBSecurityGroupInput { + Ok(crate::input::CreateDbSecurityGroupInput { db_security_group_name: self.db_security_group_name, db_security_group_description: self.db_security_group_description, tags: self.tags, @@ -7327,7 +7350,7 @@ pub mod create_db_security_group_input { pub type CreateDBSecurityGroupInputOperationOutputAlias = crate::operation::CreateDBSecurityGroup; #[doc(hidden)] pub type CreateDBSecurityGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBSecurityGroupInput { +impl CreateDbSecurityGroupInput { /// Consumes the builder and constructs an Operation<[`CreateDBSecurityGroup`](crate::operation::CreateDBSecurityGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7386,8 +7409,9 @@ impl CreateDBSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7395,7 +7419,7 @@ impl CreateDBSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7415,15 +7439,15 @@ impl CreateDBSecurityGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBSecurityGroupInput`](crate::input::CreateDBSecurityGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbSecurityGroupInput`](crate::input::CreateDbSecurityGroupInput) pub fn builder() -> crate::input::create_db_security_group_input::Builder { crate::input::create_db_security_group_input::Builder::default() } } -/// See [`CreateDBSnapshotInput`](crate::input::CreateDBSnapshotInput) +/// See [`CreateDbSnapshotInput`](crate::input::CreateDbSnapshotInput) pub mod create_db_snapshot_input { - /// A builder for [`CreateDBSnapshotInput`](crate::input::CreateDBSnapshotInput) + /// A builder for [`CreateDbSnapshotInput`](crate::input::CreateDbSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7492,14 +7516,14 @@ pub mod create_db_snapshot_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBSnapshotInput`](crate::input::CreateDBSnapshotInput) + /// Consumes the builder and constructs a [`CreateDbSnapshotInput`](crate::input::CreateDbSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBSnapshotInput, + crate::input::CreateDbSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBSnapshotInput { + Ok(crate::input::CreateDbSnapshotInput { db_snapshot_identifier: self.db_snapshot_identifier, db_instance_identifier: self.db_instance_identifier, tags: self.tags, @@ -7511,7 +7535,7 @@ pub mod create_db_snapshot_input { pub type CreateDBSnapshotInputOperationOutputAlias = crate::operation::CreateDBSnapshot; #[doc(hidden)] pub type CreateDBSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBSnapshotInput { +impl CreateDbSnapshotInput { /// Consumes the builder and constructs an Operation<[`CreateDBSnapshot`](crate::operation::CreateDBSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7570,8 +7594,9 @@ impl CreateDBSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7579,7 +7604,7 @@ impl CreateDBSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7599,15 +7624,15 @@ impl CreateDBSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBSnapshotInput`](crate::input::CreateDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`CreateDbSnapshotInput`](crate::input::CreateDbSnapshotInput) pub fn builder() -> crate::input::create_db_snapshot_input::Builder { crate::input::create_db_snapshot_input::Builder::default() } } -/// See [`CreateDBSubnetGroupInput`](crate::input::CreateDBSubnetGroupInput) +/// See [`CreateDbSubnetGroupInput`](crate::input::CreateDbSubnetGroupInput) pub mod create_db_subnet_group_input { - /// A builder for [`CreateDBSubnetGroupInput`](crate::input::CreateDBSubnetGroupInput) + /// A builder for [`CreateDbSubnetGroupInput`](crate::input::CreateDbSubnetGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7673,14 +7698,14 @@ pub mod create_db_subnet_group_input { self.tags = input; self } - /// Consumes the builder and constructs a [`CreateDBSubnetGroupInput`](crate::input::CreateDBSubnetGroupInput) + /// Consumes the builder and constructs a [`CreateDbSubnetGroupInput`](crate::input::CreateDbSubnetGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateDBSubnetGroupInput, + crate::input::CreateDbSubnetGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateDBSubnetGroupInput { + Ok(crate::input::CreateDbSubnetGroupInput { db_subnet_group_name: self.db_subnet_group_name, db_subnet_group_description: self.db_subnet_group_description, subnet_ids: self.subnet_ids, @@ -7693,7 +7718,7 @@ pub mod create_db_subnet_group_input { pub type CreateDBSubnetGroupInputOperationOutputAlias = crate::operation::CreateDBSubnetGroup; #[doc(hidden)] pub type CreateDBSubnetGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateDBSubnetGroupInput { +impl CreateDbSubnetGroupInput { /// Consumes the builder and constructs an Operation<[`CreateDBSubnetGroup`](crate::operation::CreateDBSubnetGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7752,8 +7777,9 @@ impl CreateDBSubnetGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7761,7 +7787,7 @@ impl CreateDBSubnetGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -7781,7 +7807,7 @@ impl CreateDBSubnetGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateDBSubnetGroupInput`](crate::input::CreateDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbSubnetGroupInput`](crate::input::CreateDbSubnetGroupInput) pub fn builder() -> crate::input::create_db_subnet_group_input::Builder { crate::input::create_db_subnet_group_input::Builder::default() } @@ -7974,8 +8000,9 @@ impl CreateEventSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7983,7 +8010,7 @@ impl CreateEventSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8195,8 +8222,9 @@ impl CreateGlobalClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8204,7 +8232,7 @@ impl CreateGlobalClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8454,8 +8482,9 @@ impl CreateOptionGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8463,7 +8492,7 @@ impl CreateOptionGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8591,8 +8620,9 @@ impl DeleteCustomAvailabilityZoneInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8600,7 +8630,7 @@ impl DeleteCustomAvailabilityZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8626,9 +8656,9 @@ impl DeleteCustomAvailabilityZoneInput { } } -/// See [`DeleteDBClusterInput`](crate::input::DeleteDBClusterInput) +/// See [`DeleteDbClusterInput`](crate::input::DeleteDbClusterInput) pub mod delete_db_cluster_input { - /// A builder for [`DeleteDBClusterInput`](crate::input::DeleteDBClusterInput) + /// A builder for [`DeleteDbClusterInput`](crate::input::DeleteDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8705,14 +8735,14 @@ pub mod delete_db_cluster_input { self.final_db_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterInput`](crate::input::DeleteDBClusterInput) + /// Consumes the builder and constructs a [`DeleteDbClusterInput`](crate::input::DeleteDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBClusterInput, + crate::input::DeleteDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBClusterInput { + Ok(crate::input::DeleteDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, skip_final_snapshot: self.skip_final_snapshot.unwrap_or_default(), final_db_snapshot_identifier: self.final_db_snapshot_identifier, @@ -8724,7 +8754,7 @@ pub mod delete_db_cluster_input { pub type DeleteDBClusterInputOperationOutputAlias = crate::operation::DeleteDBCluster; #[doc(hidden)] pub type DeleteDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBClusterInput { +impl DeleteDbClusterInput { /// Consumes the builder and constructs an Operation<[`DeleteDBCluster`](crate::operation::DeleteDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -8782,8 +8812,9 @@ impl DeleteDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8791,7 +8822,7 @@ impl DeleteDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8811,15 +8842,15 @@ impl DeleteDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBClusterInput`](crate::input::DeleteDBClusterInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterInput`](crate::input::DeleteDbClusterInput) pub fn builder() -> crate::input::delete_db_cluster_input::Builder { crate::input::delete_db_cluster_input::Builder::default() } } -/// See [`DeleteDBClusterEndpointInput`](crate::input::DeleteDBClusterEndpointInput) +/// See [`DeleteDbClusterEndpointInput`](crate::input::DeleteDbClusterEndpointInput) pub mod delete_db_cluster_endpoint_input { - /// A builder for [`DeleteDBClusterEndpointInput`](crate::input::DeleteDBClusterEndpointInput) + /// A builder for [`DeleteDbClusterEndpointInput`](crate::input::DeleteDbClusterEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8841,14 +8872,14 @@ pub mod delete_db_cluster_endpoint_input { self.db_cluster_endpoint_identifier = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterEndpointInput`](crate::input::DeleteDBClusterEndpointInput) + /// Consumes the builder and constructs a [`DeleteDbClusterEndpointInput`](crate::input::DeleteDbClusterEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBClusterEndpointInput, + crate::input::DeleteDbClusterEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBClusterEndpointInput { + Ok(crate::input::DeleteDbClusterEndpointInput { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, }) } @@ -8859,7 +8890,7 @@ pub type DeleteDBClusterEndpointInputOperationOutputAlias = crate::operation::DeleteDBClusterEndpoint; #[doc(hidden)] pub type DeleteDBClusterEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBClusterEndpointInput { +impl DeleteDbClusterEndpointInput { /// Consumes the builder and constructs an Operation<[`DeleteDBClusterEndpoint`](crate::operation::DeleteDBClusterEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -8918,8 +8949,9 @@ impl DeleteDBClusterEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8927,7 +8959,7 @@ impl DeleteDBClusterEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8947,15 +8979,15 @@ impl DeleteDBClusterEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBClusterEndpointInput`](crate::input::DeleteDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterEndpointInput`](crate::input::DeleteDbClusterEndpointInput) pub fn builder() -> crate::input::delete_db_cluster_endpoint_input::Builder { crate::input::delete_db_cluster_endpoint_input::Builder::default() } } -/// See [`DeleteDBClusterParameterGroupInput`](crate::input::DeleteDBClusterParameterGroupInput) +/// See [`DeleteDbClusterParameterGroupInput`](crate::input::DeleteDbClusterParameterGroupInput) pub mod delete_db_cluster_parameter_group_input { - /// A builder for [`DeleteDBClusterParameterGroupInput`](crate::input::DeleteDBClusterParameterGroupInput) + /// A builder for [`DeleteDbClusterParameterGroupInput`](crate::input::DeleteDbClusterParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8989,14 +9021,14 @@ pub mod delete_db_cluster_parameter_group_input { self.db_cluster_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterParameterGroupInput`](crate::input::DeleteDBClusterParameterGroupInput) + /// Consumes the builder and constructs a [`DeleteDbClusterParameterGroupInput`](crate::input::DeleteDbClusterParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBClusterParameterGroupInput, + crate::input::DeleteDbClusterParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBClusterParameterGroupInput { + Ok(crate::input::DeleteDbClusterParameterGroupInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, }) } @@ -9007,7 +9039,7 @@ pub type DeleteDBClusterParameterGroupInputOperationOutputAlias = crate::operation::DeleteDBClusterParameterGroup; #[doc(hidden)] pub type DeleteDBClusterParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBClusterParameterGroupInput { +impl DeleteDbClusterParameterGroupInput { /// Consumes the builder and constructs an Operation<[`DeleteDBClusterParameterGroup`](crate::operation::DeleteDBClusterParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9067,8 +9099,9 @@ impl DeleteDBClusterParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9076,7 +9109,7 @@ impl DeleteDBClusterParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9096,15 +9129,15 @@ impl DeleteDBClusterParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBClusterParameterGroupInput`](crate::input::DeleteDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterParameterGroupInput`](crate::input::DeleteDbClusterParameterGroupInput) pub fn builder() -> crate::input::delete_db_cluster_parameter_group_input::Builder { crate::input::delete_db_cluster_parameter_group_input::Builder::default() } } -/// See [`DeleteDBClusterSnapshotInput`](crate::input::DeleteDBClusterSnapshotInput) +/// See [`DeleteDbClusterSnapshotInput`](crate::input::DeleteDbClusterSnapshotInput) pub mod delete_db_cluster_snapshot_input { - /// A builder for [`DeleteDBClusterSnapshotInput`](crate::input::DeleteDBClusterSnapshotInput) + /// A builder for [`DeleteDbClusterSnapshotInput`](crate::input::DeleteDbClusterSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9127,14 +9160,14 @@ pub mod delete_db_cluster_snapshot_input { self.db_cluster_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterSnapshotInput`](crate::input::DeleteDBClusterSnapshotInput) + /// Consumes the builder and constructs a [`DeleteDbClusterSnapshotInput`](crate::input::DeleteDbClusterSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBClusterSnapshotInput, + crate::input::DeleteDbClusterSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBClusterSnapshotInput { + Ok(crate::input::DeleteDbClusterSnapshotInput { db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, }) } @@ -9145,7 +9178,7 @@ pub type DeleteDBClusterSnapshotInputOperationOutputAlias = crate::operation::DeleteDBClusterSnapshot; #[doc(hidden)] pub type DeleteDBClusterSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBClusterSnapshotInput { +impl DeleteDbClusterSnapshotInput { /// Consumes the builder and constructs an Operation<[`DeleteDBClusterSnapshot`](crate::operation::DeleteDBClusterSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9204,8 +9237,9 @@ impl DeleteDBClusterSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9213,7 +9247,7 @@ impl DeleteDBClusterSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9233,15 +9267,15 @@ impl DeleteDBClusterSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBClusterSnapshotInput`](crate::input::DeleteDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterSnapshotInput`](crate::input::DeleteDbClusterSnapshotInput) pub fn builder() -> crate::input::delete_db_cluster_snapshot_input::Builder { crate::input::delete_db_cluster_snapshot_input::Builder::default() } } -/// See [`DeleteDBInstanceInput`](crate::input::DeleteDBInstanceInput) +/// See [`DeleteDbInstanceInput`](crate::input::DeleteDbInstanceInput) pub mod delete_db_instance_input { - /// A builder for [`DeleteDBInstanceInput`](crate::input::DeleteDBInstanceInput) + /// A builder for [`DeleteDbInstanceInput`](crate::input::DeleteDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9332,14 +9366,14 @@ pub mod delete_db_instance_input { self.delete_automated_backups = input; self } - /// Consumes the builder and constructs a [`DeleteDBInstanceInput`](crate::input::DeleteDBInstanceInput) + /// Consumes the builder and constructs a [`DeleteDbInstanceInput`](crate::input::DeleteDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBInstanceInput, + crate::input::DeleteDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBInstanceInput { + Ok(crate::input::DeleteDbInstanceInput { db_instance_identifier: self.db_instance_identifier, skip_final_snapshot: self.skip_final_snapshot.unwrap_or_default(), final_db_snapshot_identifier: self.final_db_snapshot_identifier, @@ -9352,7 +9386,7 @@ pub mod delete_db_instance_input { pub type DeleteDBInstanceInputOperationOutputAlias = crate::operation::DeleteDBInstance; #[doc(hidden)] pub type DeleteDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBInstanceInput { +impl DeleteDbInstanceInput { /// Consumes the builder and constructs an Operation<[`DeleteDBInstance`](crate::operation::DeleteDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9411,8 +9445,9 @@ impl DeleteDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9420,7 +9455,7 @@ impl DeleteDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9440,15 +9475,15 @@ impl DeleteDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceInput`](crate::input::DeleteDBInstanceInput) + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceInput`](crate::input::DeleteDbInstanceInput) pub fn builder() -> crate::input::delete_db_instance_input::Builder { crate::input::delete_db_instance_input::Builder::default() } } -/// See [`DeleteDBInstanceAutomatedBackupInput`](crate::input::DeleteDBInstanceAutomatedBackupInput) +/// See [`DeleteDbInstanceAutomatedBackupInput`](crate::input::DeleteDbInstanceAutomatedBackupInput) pub mod delete_db_instance_automated_backup_input { - /// A builder for [`DeleteDBInstanceAutomatedBackupInput`](crate::input::DeleteDBInstanceAutomatedBackupInput) + /// A builder for [`DeleteDbInstanceAutomatedBackupInput`](crate::input::DeleteDbInstanceAutomatedBackupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9484,14 +9519,14 @@ pub mod delete_db_instance_automated_backup_input { self.db_instance_automated_backups_arn = input; self } - /// Consumes the builder and constructs a [`DeleteDBInstanceAutomatedBackupInput`](crate::input::DeleteDBInstanceAutomatedBackupInput) + /// Consumes the builder and constructs a [`DeleteDbInstanceAutomatedBackupInput`](crate::input::DeleteDbInstanceAutomatedBackupInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBInstanceAutomatedBackupInput, + crate::input::DeleteDbInstanceAutomatedBackupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBInstanceAutomatedBackupInput { + Ok(crate::input::DeleteDbInstanceAutomatedBackupInput { dbi_resource_id: self.dbi_resource_id, db_instance_automated_backups_arn: self.db_instance_automated_backups_arn, }) @@ -9503,7 +9538,7 @@ pub type DeleteDBInstanceAutomatedBackupInputOperationOutputAlias = crate::operation::DeleteDBInstanceAutomatedBackup; #[doc(hidden)] pub type DeleteDBInstanceAutomatedBackupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBInstanceAutomatedBackupInput { +impl DeleteDbInstanceAutomatedBackupInput { /// Consumes the builder and constructs an Operation<[`DeleteDBInstanceAutomatedBackup`](crate::operation::DeleteDBInstanceAutomatedBackup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9565,8 +9600,9 @@ impl DeleteDBInstanceAutomatedBackupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9574,7 +9610,7 @@ impl DeleteDBInstanceAutomatedBackupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9594,15 +9630,15 @@ impl DeleteDBInstanceAutomatedBackupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceAutomatedBackupInput`](crate::input::DeleteDBInstanceAutomatedBackupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceAutomatedBackupInput`](crate::input::DeleteDbInstanceAutomatedBackupInput) pub fn builder() -> crate::input::delete_db_instance_automated_backup_input::Builder { crate::input::delete_db_instance_automated_backup_input::Builder::default() } } -/// See [`DeleteDBParameterGroupInput`](crate::input::DeleteDBParameterGroupInput) +/// See [`DeleteDbParameterGroupInput`](crate::input::DeleteDbParameterGroupInput) pub mod delete_db_parameter_group_input { - /// A builder for [`DeleteDBParameterGroupInput`](crate::input::DeleteDBParameterGroupInput) + /// A builder for [`DeleteDbParameterGroupInput`](crate::input::DeleteDbParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9633,14 +9669,14 @@ pub mod delete_db_parameter_group_input { self.db_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBParameterGroupInput`](crate::input::DeleteDBParameterGroupInput) + /// Consumes the builder and constructs a [`DeleteDbParameterGroupInput`](crate::input::DeleteDbParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBParameterGroupInput, + crate::input::DeleteDbParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBParameterGroupInput { + Ok(crate::input::DeleteDbParameterGroupInput { db_parameter_group_name: self.db_parameter_group_name, }) } @@ -9650,7 +9686,7 @@ pub mod delete_db_parameter_group_input { pub type DeleteDBParameterGroupInputOperationOutputAlias = crate::operation::DeleteDBParameterGroup; #[doc(hidden)] pub type DeleteDBParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBParameterGroupInput { +impl DeleteDbParameterGroupInput { /// Consumes the builder and constructs an Operation<[`DeleteDBParameterGroup`](crate::operation::DeleteDBParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9709,8 +9745,9 @@ impl DeleteDBParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9718,7 +9755,7 @@ impl DeleteDBParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9738,15 +9775,15 @@ impl DeleteDBParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBParameterGroupInput`](crate::input::DeleteDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbParameterGroupInput`](crate::input::DeleteDbParameterGroupInput) pub fn builder() -> crate::input::delete_db_parameter_group_input::Builder { crate::input::delete_db_parameter_group_input::Builder::default() } } -/// See [`DeleteDBProxyInput`](crate::input::DeleteDBProxyInput) +/// See [`DeleteDbProxyInput`](crate::input::DeleteDbProxyInput) pub mod delete_db_proxy_input { - /// A builder for [`DeleteDBProxyInput`](crate::input::DeleteDBProxyInput) + /// A builder for [`DeleteDbProxyInput`](crate::input::DeleteDbProxyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9765,12 +9802,12 @@ pub mod delete_db_proxy_input { self.db_proxy_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBProxyInput`](crate::input::DeleteDBProxyInput) + /// Consumes the builder and constructs a [`DeleteDbProxyInput`](crate::input::DeleteDbProxyInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::DeleteDBProxyInput { + Ok(crate::input::DeleteDbProxyInput { db_proxy_name: self.db_proxy_name, }) } @@ -9780,7 +9817,7 @@ pub mod delete_db_proxy_input { pub type DeleteDBProxyInputOperationOutputAlias = crate::operation::DeleteDBProxy; #[doc(hidden)] pub type DeleteDBProxyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBProxyInput { +impl DeleteDbProxyInput { /// Consumes the builder and constructs an Operation<[`DeleteDBProxy`](crate::operation::DeleteDBProxy)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9838,8 +9875,9 @@ impl DeleteDBProxyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9847,7 +9885,7 @@ impl DeleteDBProxyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9867,15 +9905,15 @@ impl DeleteDBProxyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBProxyInput`](crate::input::DeleteDBProxyInput) + /// Creates a new builder-style object to manufacture [`DeleteDbProxyInput`](crate::input::DeleteDbProxyInput) pub fn builder() -> crate::input::delete_db_proxy_input::Builder { crate::input::delete_db_proxy_input::Builder::default() } } -/// See [`DeleteDBProxyEndpointInput`](crate::input::DeleteDBProxyEndpointInput) +/// See [`DeleteDbProxyEndpointInput`](crate::input::DeleteDbProxyEndpointInput) pub mod delete_db_proxy_endpoint_input { - /// A builder for [`DeleteDBProxyEndpointInput`](crate::input::DeleteDBProxyEndpointInput) + /// A builder for [`DeleteDbProxyEndpointInput`](crate::input::DeleteDbProxyEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9894,14 +9932,14 @@ pub mod delete_db_proxy_endpoint_input { self.db_proxy_endpoint_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBProxyEndpointInput`](crate::input::DeleteDBProxyEndpointInput) + /// Consumes the builder and constructs a [`DeleteDbProxyEndpointInput`](crate::input::DeleteDbProxyEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBProxyEndpointInput, + crate::input::DeleteDbProxyEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBProxyEndpointInput { + Ok(crate::input::DeleteDbProxyEndpointInput { db_proxy_endpoint_name: self.db_proxy_endpoint_name, }) } @@ -9911,7 +9949,7 @@ pub mod delete_db_proxy_endpoint_input { pub type DeleteDBProxyEndpointInputOperationOutputAlias = crate::operation::DeleteDBProxyEndpoint; #[doc(hidden)] pub type DeleteDBProxyEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBProxyEndpointInput { +impl DeleteDbProxyEndpointInput { /// Consumes the builder and constructs an Operation<[`DeleteDBProxyEndpoint`](crate::operation::DeleteDBProxyEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9970,8 +10008,9 @@ impl DeleteDBProxyEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9979,7 +10018,7 @@ impl DeleteDBProxyEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9999,15 +10038,15 @@ impl DeleteDBProxyEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBProxyEndpointInput`](crate::input::DeleteDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`DeleteDbProxyEndpointInput`](crate::input::DeleteDbProxyEndpointInput) pub fn builder() -> crate::input::delete_db_proxy_endpoint_input::Builder { crate::input::delete_db_proxy_endpoint_input::Builder::default() } } -/// See [`DeleteDBSecurityGroupInput`](crate::input::DeleteDBSecurityGroupInput) +/// See [`DeleteDbSecurityGroupInput`](crate::input::DeleteDbSecurityGroupInput) pub mod delete_db_security_group_input { - /// A builder for [`DeleteDBSecurityGroupInput`](crate::input::DeleteDBSecurityGroupInput) + /// A builder for [`DeleteDbSecurityGroupInput`](crate::input::DeleteDbSecurityGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10044,14 +10083,14 @@ pub mod delete_db_security_group_input { self.db_security_group_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBSecurityGroupInput`](crate::input::DeleteDBSecurityGroupInput) + /// Consumes the builder and constructs a [`DeleteDbSecurityGroupInput`](crate::input::DeleteDbSecurityGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBSecurityGroupInput, + crate::input::DeleteDbSecurityGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBSecurityGroupInput { + Ok(crate::input::DeleteDbSecurityGroupInput { db_security_group_name: self.db_security_group_name, }) } @@ -10061,7 +10100,7 @@ pub mod delete_db_security_group_input { pub type DeleteDBSecurityGroupInputOperationOutputAlias = crate::operation::DeleteDBSecurityGroup; #[doc(hidden)] pub type DeleteDBSecurityGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBSecurityGroupInput { +impl DeleteDbSecurityGroupInput { /// Consumes the builder and constructs an Operation<[`DeleteDBSecurityGroup`](crate::operation::DeleteDBSecurityGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -10120,8 +10159,9 @@ impl DeleteDBSecurityGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10129,7 +10169,7 @@ impl DeleteDBSecurityGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10149,15 +10189,15 @@ impl DeleteDBSecurityGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBSecurityGroupInput`](crate::input::DeleteDBSecurityGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSecurityGroupInput`](crate::input::DeleteDbSecurityGroupInput) pub fn builder() -> crate::input::delete_db_security_group_input::Builder { crate::input::delete_db_security_group_input::Builder::default() } } -/// See [`DeleteDBSnapshotInput`](crate::input::DeleteDBSnapshotInput) +/// See [`DeleteDbSnapshotInput`](crate::input::DeleteDbSnapshotInput) pub mod delete_db_snapshot_input { - /// A builder for [`DeleteDBSnapshotInput`](crate::input::DeleteDBSnapshotInput) + /// A builder for [`DeleteDbSnapshotInput`](crate::input::DeleteDbSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10177,14 +10217,14 @@ pub mod delete_db_snapshot_input { self.db_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`DeleteDBSnapshotInput`](crate::input::DeleteDBSnapshotInput) + /// Consumes the builder and constructs a [`DeleteDbSnapshotInput`](crate::input::DeleteDbSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBSnapshotInput, + crate::input::DeleteDbSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBSnapshotInput { + Ok(crate::input::DeleteDbSnapshotInput { db_snapshot_identifier: self.db_snapshot_identifier, }) } @@ -10194,7 +10234,7 @@ pub mod delete_db_snapshot_input { pub type DeleteDBSnapshotInputOperationOutputAlias = crate::operation::DeleteDBSnapshot; #[doc(hidden)] pub type DeleteDBSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBSnapshotInput { +impl DeleteDbSnapshotInput { /// Consumes the builder and constructs an Operation<[`DeleteDBSnapshot`](crate::operation::DeleteDBSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -10253,8 +10293,9 @@ impl DeleteDBSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10262,7 +10303,7 @@ impl DeleteDBSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10282,15 +10323,15 @@ impl DeleteDBSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBSnapshotInput`](crate::input::DeleteDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSnapshotInput`](crate::input::DeleteDbSnapshotInput) pub fn builder() -> crate::input::delete_db_snapshot_input::Builder { crate::input::delete_db_snapshot_input::Builder::default() } } -/// See [`DeleteDBSubnetGroupInput`](crate::input::DeleteDBSubnetGroupInput) +/// See [`DeleteDbSubnetGroupInput`](crate::input::DeleteDbSubnetGroupInput) pub mod delete_db_subnet_group_input { - /// A builder for [`DeleteDBSubnetGroupInput`](crate::input::DeleteDBSubnetGroupInput) + /// A builder for [`DeleteDbSubnetGroupInput`](crate::input::DeleteDbSubnetGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10316,14 +10357,14 @@ pub mod delete_db_subnet_group_input { self.db_subnet_group_name = input; self } - /// Consumes the builder and constructs a [`DeleteDBSubnetGroupInput`](crate::input::DeleteDBSubnetGroupInput) + /// Consumes the builder and constructs a [`DeleteDbSubnetGroupInput`](crate::input::DeleteDbSubnetGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteDBSubnetGroupInput, + crate::input::DeleteDbSubnetGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteDBSubnetGroupInput { + Ok(crate::input::DeleteDbSubnetGroupInput { db_subnet_group_name: self.db_subnet_group_name, }) } @@ -10333,7 +10374,7 @@ pub mod delete_db_subnet_group_input { pub type DeleteDBSubnetGroupInputOperationOutputAlias = crate::operation::DeleteDBSubnetGroup; #[doc(hidden)] pub type DeleteDBSubnetGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteDBSubnetGroupInput { +impl DeleteDbSubnetGroupInput { /// Consumes the builder and constructs an Operation<[`DeleteDBSubnetGroup`](crate::operation::DeleteDBSubnetGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -10392,8 +10433,9 @@ impl DeleteDBSubnetGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10401,7 +10443,7 @@ impl DeleteDBSubnetGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10421,7 +10463,7 @@ impl DeleteDBSubnetGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteDBSubnetGroupInput`](crate::input::DeleteDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSubnetGroupInput`](crate::input::DeleteDbSubnetGroupInput) pub fn builder() -> crate::input::delete_db_subnet_group_input::Builder { crate::input::delete_db_subnet_group_input::Builder::default() } @@ -10525,8 +10567,9 @@ impl DeleteEventSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10534,7 +10577,7 @@ impl DeleteEventSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10659,8 +10702,9 @@ impl DeleteGlobalClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10668,7 +10712,7 @@ impl DeleteGlobalClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10792,8 +10836,9 @@ impl DeleteInstallationMediaInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10801,7 +10846,7 @@ impl DeleteInstallationMediaInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10927,8 +10972,9 @@ impl DeleteOptionGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10936,7 +10982,7 @@ impl DeleteOptionGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10962,9 +11008,9 @@ impl DeleteOptionGroupInput { } } -/// See [`DeregisterDBProxyTargetsInput`](crate::input::DeregisterDBProxyTargetsInput) +/// See [`DeregisterDbProxyTargetsInput`](crate::input::DeregisterDbProxyTargetsInput) pub mod deregister_db_proxy_targets_input { - /// A builder for [`DeregisterDBProxyTargetsInput`](crate::input::DeregisterDBProxyTargetsInput) + /// A builder for [`DeregisterDbProxyTargetsInput`](crate::input::DeregisterDbProxyTargetsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11024,14 +11070,14 @@ pub mod deregister_db_proxy_targets_input { self.db_cluster_identifiers = input; self } - /// Consumes the builder and constructs a [`DeregisterDBProxyTargetsInput`](crate::input::DeregisterDBProxyTargetsInput) + /// Consumes the builder and constructs a [`DeregisterDbProxyTargetsInput`](crate::input::DeregisterDbProxyTargetsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeregisterDBProxyTargetsInput, + crate::input::DeregisterDbProxyTargetsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeregisterDBProxyTargetsInput { + Ok(crate::input::DeregisterDbProxyTargetsInput { db_proxy_name: self.db_proxy_name, target_group_name: self.target_group_name, db_instance_identifiers: self.db_instance_identifiers, @@ -11045,7 +11091,7 @@ pub type DeregisterDBProxyTargetsInputOperationOutputAlias = crate::operation::DeregisterDBProxyTargets; #[doc(hidden)] pub type DeregisterDBProxyTargetsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeregisterDBProxyTargetsInput { +impl DeregisterDbProxyTargetsInput { /// Consumes the builder and constructs an Operation<[`DeregisterDBProxyTargets`](crate::operation::DeregisterDBProxyTargets)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -11104,8 +11150,9 @@ impl DeregisterDBProxyTargetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11113,7 +11160,7 @@ impl DeregisterDBProxyTargetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11133,7 +11180,7 @@ impl DeregisterDBProxyTargetsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeregisterDBProxyTargetsInput`](crate::input::DeregisterDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`DeregisterDbProxyTargetsInput`](crate::input::DeregisterDbProxyTargetsInput) pub fn builder() -> crate::input::deregister_db_proxy_targets_input::Builder { crate::input::deregister_db_proxy_targets_input::Builder::default() } @@ -11221,8 +11268,9 @@ impl DescribeAccountAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11230,7 +11278,7 @@ impl DescribeAccountAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11408,8 +11456,9 @@ impl DescribeCertificatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11417,7 +11466,7 @@ impl DescribeCertificatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11590,8 +11639,9 @@ impl DescribeCustomAvailabilityZonesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11599,7 +11649,7 @@ impl DescribeCustomAvailabilityZonesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11625,9 +11675,9 @@ impl DescribeCustomAvailabilityZonesInput { } } -/// See [`DescribeDBClusterBacktracksInput`](crate::input::DescribeDBClusterBacktracksInput) +/// See [`DescribeDbClusterBacktracksInput`](crate::input::DescribeDbClusterBacktracksInput) pub mod describe_db_cluster_backtracks_input { - /// A builder for [`DescribeDBClusterBacktracksInput`](crate::input::DescribeDBClusterBacktracksInput) + /// A builder for [`DescribeDbClusterBacktracksInput`](crate::input::DescribeDbClusterBacktracksInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11729,14 +11779,14 @@ pub mod describe_db_cluster_backtracks_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterBacktracksInput`](crate::input::DescribeDBClusterBacktracksInput) + /// Consumes the builder and constructs a [`DescribeDbClusterBacktracksInput`](crate::input::DescribeDbClusterBacktracksInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterBacktracksInput, + crate::input::DescribeDbClusterBacktracksInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterBacktracksInput { + Ok(crate::input::DescribeDbClusterBacktracksInput { db_cluster_identifier: self.db_cluster_identifier, backtrack_identifier: self.backtrack_identifier, filters: self.filters, @@ -11751,7 +11801,7 @@ pub type DescribeDBClusterBacktracksInputOperationOutputAlias = crate::operation::DescribeDBClusterBacktracks; #[doc(hidden)] pub type DescribeDBClusterBacktracksInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterBacktracksInput { +impl DescribeDbClusterBacktracksInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterBacktracks`](crate::operation::DescribeDBClusterBacktracks)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -11811,8 +11861,9 @@ impl DescribeDBClusterBacktracksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11820,7 +11871,7 @@ impl DescribeDBClusterBacktracksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11840,15 +11891,15 @@ impl DescribeDBClusterBacktracksInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterBacktracksInput`](crate::input::DescribeDBClusterBacktracksInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterBacktracksInput`](crate::input::DescribeDbClusterBacktracksInput) pub fn builder() -> crate::input::describe_db_cluster_backtracks_input::Builder { crate::input::describe_db_cluster_backtracks_input::Builder::default() } } -/// See [`DescribeDBClusterEndpointsInput`](crate::input::DescribeDBClusterEndpointsInput) +/// See [`DescribeDbClusterEndpointsInput`](crate::input::DescribeDbClusterEndpointsInput) pub mod describe_db_cluster_endpoints_input { - /// A builder for [`DescribeDBClusterEndpointsInput`](crate::input::DescribeDBClusterEndpointsInput) + /// A builder for [`DescribeDbClusterEndpointsInput`](crate::input::DescribeDbClusterEndpointsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11928,14 +11979,14 @@ pub mod describe_db_cluster_endpoints_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterEndpointsInput`](crate::input::DescribeDBClusterEndpointsInput) + /// Consumes the builder and constructs a [`DescribeDbClusterEndpointsInput`](crate::input::DescribeDbClusterEndpointsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterEndpointsInput, + crate::input::DescribeDbClusterEndpointsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterEndpointsInput { + Ok(crate::input::DescribeDbClusterEndpointsInput { db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, filters: self.filters, @@ -11950,7 +12001,7 @@ pub type DescribeDBClusterEndpointsInputOperationOutputAlias = crate::operation::DescribeDBClusterEndpoints; #[doc(hidden)] pub type DescribeDBClusterEndpointsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterEndpointsInput { +impl DescribeDbClusterEndpointsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterEndpoints`](crate::operation::DescribeDBClusterEndpoints)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -12010,8 +12061,9 @@ impl DescribeDBClusterEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12019,7 +12071,7 @@ impl DescribeDBClusterEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12039,15 +12091,15 @@ impl DescribeDBClusterEndpointsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterEndpointsInput`](crate::input::DescribeDBClusterEndpointsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterEndpointsInput`](crate::input::DescribeDbClusterEndpointsInput) pub fn builder() -> crate::input::describe_db_cluster_endpoints_input::Builder { crate::input::describe_db_cluster_endpoints_input::Builder::default() } } -/// See [`DescribeDBClusterParameterGroupsInput`](crate::input::DescribeDBClusterParameterGroupsInput) +/// See [`DescribeDbClusterParameterGroupsInput`](crate::input::DescribeDbClusterParameterGroupsInput) pub mod describe_db_cluster_parameter_groups_input { - /// A builder for [`DescribeDBClusterParameterGroupsInput`](crate::input::DescribeDBClusterParameterGroupsInput) + /// A builder for [`DescribeDbClusterParameterGroupsInput`](crate::input::DescribeDbClusterParameterGroupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12121,14 +12173,14 @@ pub mod describe_db_cluster_parameter_groups_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterParameterGroupsInput`](crate::input::DescribeDBClusterParameterGroupsInput) + /// Consumes the builder and constructs a [`DescribeDbClusterParameterGroupsInput`](crate::input::DescribeDbClusterParameterGroupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterParameterGroupsInput, + crate::input::DescribeDbClusterParameterGroupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterParameterGroupsInput { + Ok(crate::input::DescribeDbClusterParameterGroupsInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, filters: self.filters, max_records: self.max_records, @@ -12142,7 +12194,7 @@ pub type DescribeDBClusterParameterGroupsInputOperationOutputAlias = crate::operation::DescribeDBClusterParameterGroups; #[doc(hidden)] pub type DescribeDBClusterParameterGroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterParameterGroupsInput { +impl DescribeDbClusterParameterGroupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterParameterGroups`](crate::operation::DescribeDBClusterParameterGroups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -12204,8 +12256,9 @@ impl DescribeDBClusterParameterGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12213,7 +12266,7 @@ impl DescribeDBClusterParameterGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12233,15 +12286,15 @@ impl DescribeDBClusterParameterGroupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParameterGroupsInput`](crate::input::DescribeDBClusterParameterGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParameterGroupsInput`](crate::input::DescribeDbClusterParameterGroupsInput) pub fn builder() -> crate::input::describe_db_cluster_parameter_groups_input::Builder { crate::input::describe_db_cluster_parameter_groups_input::Builder::default() } } -/// See [`DescribeDBClusterParametersInput`](crate::input::DescribeDBClusterParametersInput) +/// See [`DescribeDbClusterParametersInput`](crate::input::DescribeDbClusterParametersInput) pub mod describe_db_cluster_parameters_input { - /// A builder for [`DescribeDBClusterParametersInput`](crate::input::DescribeDBClusterParametersInput) + /// A builder for [`DescribeDbClusterParametersInput`](crate::input::DescribeDbClusterParametersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12329,14 +12382,14 @@ pub mod describe_db_cluster_parameters_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterParametersInput`](crate::input::DescribeDBClusterParametersInput) + /// Consumes the builder and constructs a [`DescribeDbClusterParametersInput`](crate::input::DescribeDbClusterParametersInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterParametersInput, + crate::input::DescribeDbClusterParametersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterParametersInput { + Ok(crate::input::DescribeDbClusterParametersInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, source: self.source, filters: self.filters, @@ -12351,7 +12404,7 @@ pub type DescribeDBClusterParametersInputOperationOutputAlias = crate::operation::DescribeDBClusterParameters; #[doc(hidden)] pub type DescribeDBClusterParametersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterParametersInput { +impl DescribeDbClusterParametersInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterParameters`](crate::operation::DescribeDBClusterParameters)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -12411,8 +12464,9 @@ impl DescribeDBClusterParametersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12420,7 +12474,7 @@ impl DescribeDBClusterParametersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12440,15 +12494,15 @@ impl DescribeDBClusterParametersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParametersInput`](crate::input::DescribeDBClusterParametersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParametersInput`](crate::input::DescribeDbClusterParametersInput) pub fn builder() -> crate::input::describe_db_cluster_parameters_input::Builder { crate::input::describe_db_cluster_parameters_input::Builder::default() } } -/// See [`DescribeDBClustersInput`](crate::input::DescribeDBClustersInput) +/// See [`DescribeDbClustersInput`](crate::input::DescribeDbClustersInput) pub mod describe_db_clusters_input { - /// A builder for [`DescribeDBClustersInput`](crate::input::DescribeDBClustersInput) + /// A builder for [`DescribeDbClustersInput`](crate::input::DescribeDbClustersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12528,14 +12582,14 @@ pub mod describe_db_clusters_input { self.include_shared = input; self } - /// Consumes the builder and constructs a [`DescribeDBClustersInput`](crate::input::DescribeDBClustersInput) + /// Consumes the builder and constructs a [`DescribeDbClustersInput`](crate::input::DescribeDbClustersInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClustersInput, + crate::input::DescribeDbClustersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClustersInput { + Ok(crate::input::DescribeDbClustersInput { db_cluster_identifier: self.db_cluster_identifier, filters: self.filters, max_records: self.max_records, @@ -12549,7 +12603,7 @@ pub mod describe_db_clusters_input { pub type DescribeDBClustersInputOperationOutputAlias = crate::operation::DescribeDBClusters; #[doc(hidden)] pub type DescribeDBClustersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClustersInput { +impl DescribeDbClustersInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusters`](crate::operation::DescribeDBClusters)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -12608,8 +12662,9 @@ impl DescribeDBClustersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12617,7 +12672,7 @@ impl DescribeDBClustersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12637,15 +12692,15 @@ impl DescribeDBClustersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClustersInput`](crate::input::DescribeDBClustersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClustersInput`](crate::input::DescribeDbClustersInput) pub fn builder() -> crate::input::describe_db_clusters_input::Builder { crate::input::describe_db_clusters_input::Builder::default() } } -/// See [`DescribeDBClusterSnapshotAttributesInput`](crate::input::DescribeDBClusterSnapshotAttributesInput) +/// See [`DescribeDbClusterSnapshotAttributesInput`](crate::input::DescribeDbClusterSnapshotAttributesInput) pub mod describe_db_cluster_snapshot_attributes_input { - /// A builder for [`DescribeDBClusterSnapshotAttributesInput`](crate::input::DescribeDBClusterSnapshotAttributesInput) + /// A builder for [`DescribeDbClusterSnapshotAttributesInput`](crate::input::DescribeDbClusterSnapshotAttributesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12667,14 +12722,14 @@ pub mod describe_db_cluster_snapshot_attributes_input { self.db_cluster_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterSnapshotAttributesInput`](crate::input::DescribeDBClusterSnapshotAttributesInput) + /// Consumes the builder and constructs a [`DescribeDbClusterSnapshotAttributesInput`](crate::input::DescribeDbClusterSnapshotAttributesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterSnapshotAttributesInput, + crate::input::DescribeDbClusterSnapshotAttributesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterSnapshotAttributesInput { + Ok(crate::input::DescribeDbClusterSnapshotAttributesInput { db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, }) } @@ -12686,7 +12741,7 @@ pub type DescribeDBClusterSnapshotAttributesInputOperationOutputAlias = #[doc(hidden)] pub type DescribeDBClusterSnapshotAttributesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterSnapshotAttributesInput { +impl DescribeDbClusterSnapshotAttributesInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterSnapshotAttributes`](crate::operation::DescribeDBClusterSnapshotAttributes)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -12748,8 +12803,9 @@ impl DescribeDBClusterSnapshotAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12757,7 +12813,7 @@ impl DescribeDBClusterSnapshotAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12777,15 +12833,15 @@ impl DescribeDBClusterSnapshotAttributesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotAttributesInput`](crate::input::DescribeDBClusterSnapshotAttributesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotAttributesInput`](crate::input::DescribeDbClusterSnapshotAttributesInput) pub fn builder() -> crate::input::describe_db_cluster_snapshot_attributes_input::Builder { crate::input::describe_db_cluster_snapshot_attributes_input::Builder::default() } } -/// See [`DescribeDBClusterSnapshotsInput`](crate::input::DescribeDBClusterSnapshotsInput) +/// See [`DescribeDbClusterSnapshotsInput`](crate::input::DescribeDbClusterSnapshotsInput) pub mod describe_db_cluster_snapshots_input { - /// A builder for [`DescribeDBClusterSnapshotsInput`](crate::input::DescribeDBClusterSnapshotsInput) + /// A builder for [`DescribeDbClusterSnapshotsInput`](crate::input::DescribeDbClusterSnapshotsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12953,14 +13009,14 @@ pub mod describe_db_cluster_snapshots_input { self.include_public = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterSnapshotsInput`](crate::input::DescribeDBClusterSnapshotsInput) + /// Consumes the builder and constructs a [`DescribeDbClusterSnapshotsInput`](crate::input::DescribeDbClusterSnapshotsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBClusterSnapshotsInput, + crate::input::DescribeDbClusterSnapshotsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBClusterSnapshotsInput { + Ok(crate::input::DescribeDbClusterSnapshotsInput { db_cluster_identifier: self.db_cluster_identifier, db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, snapshot_type: self.snapshot_type, @@ -12978,7 +13034,7 @@ pub type DescribeDBClusterSnapshotsInputOperationOutputAlias = crate::operation::DescribeDBClusterSnapshots; #[doc(hidden)] pub type DescribeDBClusterSnapshotsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBClusterSnapshotsInput { +impl DescribeDbClusterSnapshotsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBClusterSnapshots`](crate::operation::DescribeDBClusterSnapshots)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13038,8 +13094,9 @@ impl DescribeDBClusterSnapshotsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13047,7 +13104,7 @@ impl DescribeDBClusterSnapshotsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13067,15 +13124,15 @@ impl DescribeDBClusterSnapshotsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotsInput`](crate::input::DescribeDBClusterSnapshotsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotsInput`](crate::input::DescribeDbClusterSnapshotsInput) pub fn builder() -> crate::input::describe_db_cluster_snapshots_input::Builder { crate::input::describe_db_cluster_snapshots_input::Builder::default() } } -/// See [`DescribeDBEngineVersionsInput`](crate::input::DescribeDBEngineVersionsInput) +/// See [`DescribeDbEngineVersionsInput`](crate::input::DescribeDbEngineVersionsInput) pub mod describe_db_engine_versions_input { - /// A builder for [`DescribeDBEngineVersionsInput`](crate::input::DescribeDBEngineVersionsInput) + /// A builder for [`DescribeDbEngineVersionsInput`](crate::input::DescribeDbEngineVersionsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13291,14 +13348,14 @@ pub mod describe_db_engine_versions_input { self.include_all = input; self } - /// Consumes the builder and constructs a [`DescribeDBEngineVersionsInput`](crate::input::DescribeDBEngineVersionsInput) + /// Consumes the builder and constructs a [`DescribeDbEngineVersionsInput`](crate::input::DescribeDbEngineVersionsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBEngineVersionsInput, + crate::input::DescribeDbEngineVersionsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBEngineVersionsInput { + Ok(crate::input::DescribeDbEngineVersionsInput { engine: self.engine, engine_version: self.engine_version, db_parameter_group_family: self.db_parameter_group_family, @@ -13318,7 +13375,7 @@ pub type DescribeDBEngineVersionsInputOperationOutputAlias = crate::operation::DescribeDBEngineVersions; #[doc(hidden)] pub type DescribeDBEngineVersionsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBEngineVersionsInput { +impl DescribeDbEngineVersionsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBEngineVersions`](crate::operation::DescribeDBEngineVersions)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13377,8 +13434,9 @@ impl DescribeDBEngineVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13386,7 +13444,7 @@ impl DescribeDBEngineVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13406,15 +13464,15 @@ impl DescribeDBEngineVersionsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBEngineVersionsInput`](crate::input::DescribeDBEngineVersionsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbEngineVersionsInput`](crate::input::DescribeDbEngineVersionsInput) pub fn builder() -> crate::input::describe_db_engine_versions_input::Builder { crate::input::describe_db_engine_versions_input::Builder::default() } } -/// See [`DescribeDBInstanceAutomatedBackupsInput`](crate::input::DescribeDBInstanceAutomatedBackupsInput) +/// See [`DescribeDbInstanceAutomatedBackupsInput`](crate::input::DescribeDbInstanceAutomatedBackupsInput) pub mod describe_db_instance_automated_backups_input { - /// A builder for [`DescribeDBInstanceAutomatedBackupsInput`](crate::input::DescribeDBInstanceAutomatedBackupsInput) + /// A builder for [`DescribeDbInstanceAutomatedBackupsInput`](crate::input::DescribeDbInstanceAutomatedBackupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13503,14 +13561,14 @@ pub mod describe_db_instance_automated_backups_input { self.db_instance_automated_backups_arn = input; self } - /// Consumes the builder and constructs a [`DescribeDBInstanceAutomatedBackupsInput`](crate::input::DescribeDBInstanceAutomatedBackupsInput) + /// Consumes the builder and constructs a [`DescribeDbInstanceAutomatedBackupsInput`](crate::input::DescribeDbInstanceAutomatedBackupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBInstanceAutomatedBackupsInput, + crate::input::DescribeDbInstanceAutomatedBackupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBInstanceAutomatedBackupsInput { + Ok(crate::input::DescribeDbInstanceAutomatedBackupsInput { dbi_resource_id: self.dbi_resource_id, db_instance_identifier: self.db_instance_identifier, filters: self.filters, @@ -13526,7 +13584,7 @@ pub type DescribeDBInstanceAutomatedBackupsInputOperationOutputAlias = crate::operation::DescribeDBInstanceAutomatedBackups; #[doc(hidden)] pub type DescribeDBInstanceAutomatedBackupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBInstanceAutomatedBackupsInput { +impl DescribeDbInstanceAutomatedBackupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBInstanceAutomatedBackups`](crate::operation::DescribeDBInstanceAutomatedBackups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13588,8 +13646,9 @@ impl DescribeDBInstanceAutomatedBackupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13597,7 +13656,7 @@ impl DescribeDBInstanceAutomatedBackupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13617,15 +13676,15 @@ impl DescribeDBInstanceAutomatedBackupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBInstanceAutomatedBackupsInput`](crate::input::DescribeDBInstanceAutomatedBackupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbInstanceAutomatedBackupsInput`](crate::input::DescribeDbInstanceAutomatedBackupsInput) pub fn builder() -> crate::input::describe_db_instance_automated_backups_input::Builder { crate::input::describe_db_instance_automated_backups_input::Builder::default() } } -/// See [`DescribeDBInstancesInput`](crate::input::DescribeDBInstancesInput) +/// See [`DescribeDbInstancesInput`](crate::input::DescribeDbInstancesInput) pub mod describe_db_instances_input { - /// A builder for [`DescribeDBInstancesInput`](crate::input::DescribeDBInstancesInput) + /// A builder for [`DescribeDbInstancesInput`](crate::input::DescribeDbInstancesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13697,14 +13756,14 @@ pub mod describe_db_instances_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBInstancesInput`](crate::input::DescribeDBInstancesInput) + /// Consumes the builder and constructs a [`DescribeDbInstancesInput`](crate::input::DescribeDbInstancesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBInstancesInput, + crate::input::DescribeDbInstancesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBInstancesInput { + Ok(crate::input::DescribeDbInstancesInput { db_instance_identifier: self.db_instance_identifier, filters: self.filters, max_records: self.max_records, @@ -13717,7 +13776,7 @@ pub mod describe_db_instances_input { pub type DescribeDBInstancesInputOperationOutputAlias = crate::operation::DescribeDBInstances; #[doc(hidden)] pub type DescribeDBInstancesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBInstancesInput { +impl DescribeDbInstancesInput { /// Consumes the builder and constructs an Operation<[`DescribeDBInstances`](crate::operation::DescribeDBInstances)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13776,8 +13835,9 @@ impl DescribeDBInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13785,7 +13845,7 @@ impl DescribeDBInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -13805,15 +13865,15 @@ impl DescribeDBInstancesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBInstancesInput`](crate::input::DescribeDBInstancesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbInstancesInput`](crate::input::DescribeDbInstancesInput) pub fn builder() -> crate::input::describe_db_instances_input::Builder { crate::input::describe_db_instances_input::Builder::default() } } -/// See [`DescribeDBLogFilesInput`](crate::input::DescribeDBLogFilesInput) +/// See [`DescribeDbLogFilesInput`](crate::input::DescribeDbLogFilesInput) pub mod describe_db_log_files_input { - /// A builder for [`DescribeDBLogFilesInput`](crate::input::DescribeDBLogFilesInput) + /// A builder for [`DescribeDbLogFilesInput`](crate::input::DescribeDbLogFilesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -13905,14 +13965,14 @@ pub mod describe_db_log_files_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBLogFilesInput`](crate::input::DescribeDBLogFilesInput) + /// Consumes the builder and constructs a [`DescribeDbLogFilesInput`](crate::input::DescribeDbLogFilesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBLogFilesInput, + crate::input::DescribeDbLogFilesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBLogFilesInput { + Ok(crate::input::DescribeDbLogFilesInput { db_instance_identifier: self.db_instance_identifier, filename_contains: self.filename_contains, file_last_written: self.file_last_written.unwrap_or_default(), @@ -13928,7 +13988,7 @@ pub mod describe_db_log_files_input { pub type DescribeDBLogFilesInputOperationOutputAlias = crate::operation::DescribeDBLogFiles; #[doc(hidden)] pub type DescribeDBLogFilesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBLogFilesInput { +impl DescribeDbLogFilesInput { /// Consumes the builder and constructs an Operation<[`DescribeDBLogFiles`](crate::operation::DescribeDBLogFiles)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -13987,8 +14047,9 @@ impl DescribeDBLogFilesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13996,7 +14057,7 @@ impl DescribeDBLogFilesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14016,15 +14077,15 @@ impl DescribeDBLogFilesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBLogFilesInput`](crate::input::DescribeDBLogFilesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbLogFilesInput`](crate::input::DescribeDbLogFilesInput) pub fn builder() -> crate::input::describe_db_log_files_input::Builder { crate::input::describe_db_log_files_input::Builder::default() } } -/// See [`DescribeDBParameterGroupsInput`](crate::input::DescribeDBParameterGroupsInput) +/// See [`DescribeDbParameterGroupsInput`](crate::input::DescribeDbParameterGroupsInput) pub mod describe_db_parameter_groups_input { - /// A builder for [`DescribeDBParameterGroupsInput`](crate::input::DescribeDBParameterGroupsInput) + /// A builder for [`DescribeDbParameterGroupsInput`](crate::input::DescribeDbParameterGroupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14096,14 +14157,14 @@ pub mod describe_db_parameter_groups_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBParameterGroupsInput`](crate::input::DescribeDBParameterGroupsInput) + /// Consumes the builder and constructs a [`DescribeDbParameterGroupsInput`](crate::input::DescribeDbParameterGroupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBParameterGroupsInput, + crate::input::DescribeDbParameterGroupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBParameterGroupsInput { + Ok(crate::input::DescribeDbParameterGroupsInput { db_parameter_group_name: self.db_parameter_group_name, filters: self.filters, max_records: self.max_records, @@ -14117,7 +14178,7 @@ pub type DescribeDBParameterGroupsInputOperationOutputAlias = crate::operation::DescribeDBParameterGroups; #[doc(hidden)] pub type DescribeDBParameterGroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBParameterGroupsInput { +impl DescribeDbParameterGroupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBParameterGroups`](crate::operation::DescribeDBParameterGroups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -14177,8 +14238,9 @@ impl DescribeDBParameterGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14186,7 +14248,7 @@ impl DescribeDBParameterGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14206,15 +14268,15 @@ impl DescribeDBParameterGroupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBParameterGroupsInput`](crate::input::DescribeDBParameterGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbParameterGroupsInput`](crate::input::DescribeDbParameterGroupsInput) pub fn builder() -> crate::input::describe_db_parameter_groups_input::Builder { crate::input::describe_db_parameter_groups_input::Builder::default() } } -/// See [`DescribeDBParametersInput`](crate::input::DescribeDBParametersInput) +/// See [`DescribeDbParametersInput`](crate::input::DescribeDbParametersInput) pub mod describe_db_parameters_input { - /// A builder for [`DescribeDBParametersInput`](crate::input::DescribeDBParametersInput) + /// A builder for [`DescribeDbParametersInput`](crate::input::DescribeDbParametersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14299,14 +14361,14 @@ pub mod describe_db_parameters_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBParametersInput`](crate::input::DescribeDBParametersInput) + /// Consumes the builder and constructs a [`DescribeDbParametersInput`](crate::input::DescribeDbParametersInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBParametersInput, + crate::input::DescribeDbParametersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBParametersInput { + Ok(crate::input::DescribeDbParametersInput { db_parameter_group_name: self.db_parameter_group_name, source: self.source, filters: self.filters, @@ -14320,7 +14382,7 @@ pub mod describe_db_parameters_input { pub type DescribeDBParametersInputOperationOutputAlias = crate::operation::DescribeDBParameters; #[doc(hidden)] pub type DescribeDBParametersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBParametersInput { +impl DescribeDbParametersInput { /// Consumes the builder and constructs an Operation<[`DescribeDBParameters`](crate::operation::DescribeDBParameters)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -14379,8 +14441,9 @@ impl DescribeDBParametersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14388,7 +14451,7 @@ impl DescribeDBParametersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14408,15 +14471,15 @@ impl DescribeDBParametersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBParametersInput`](crate::input::DescribeDBParametersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbParametersInput`](crate::input::DescribeDbParametersInput) pub fn builder() -> crate::input::describe_db_parameters_input::Builder { crate::input::describe_db_parameters_input::Builder::default() } } -/// See [`DescribeDBProxiesInput`](crate::input::DescribeDBProxiesInput) +/// See [`DescribeDbProxiesInput`](crate::input::DescribeDbProxiesInput) pub mod describe_db_proxies_input { - /// A builder for [`DescribeDBProxiesInput`](crate::input::DescribeDBProxiesInput) + /// A builder for [`DescribeDbProxiesInput`](crate::input::DescribeDbProxiesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14479,14 +14542,14 @@ pub mod describe_db_proxies_input { self.max_records = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxiesInput`](crate::input::DescribeDBProxiesInput) + /// Consumes the builder and constructs a [`DescribeDbProxiesInput`](crate::input::DescribeDbProxiesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBProxiesInput, + crate::input::DescribeDbProxiesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBProxiesInput { + Ok(crate::input::DescribeDbProxiesInput { db_proxy_name: self.db_proxy_name, filters: self.filters, marker: self.marker, @@ -14499,7 +14562,7 @@ pub mod describe_db_proxies_input { pub type DescribeDBProxiesInputOperationOutputAlias = crate::operation::DescribeDBProxies; #[doc(hidden)] pub type DescribeDBProxiesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBProxiesInput { +impl DescribeDbProxiesInput { /// Consumes the builder and constructs an Operation<[`DescribeDBProxies`](crate::operation::DescribeDBProxies)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -14558,8 +14621,9 @@ impl DescribeDBProxiesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14567,7 +14631,7 @@ impl DescribeDBProxiesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14587,15 +14651,15 @@ impl DescribeDBProxiesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBProxiesInput`](crate::input::DescribeDBProxiesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxiesInput`](crate::input::DescribeDbProxiesInput) pub fn builder() -> crate::input::describe_db_proxies_input::Builder { crate::input::describe_db_proxies_input::Builder::default() } } -/// See [`DescribeDBProxyEndpointsInput`](crate::input::DescribeDBProxyEndpointsInput) +/// See [`DescribeDbProxyEndpointsInput`](crate::input::DescribeDbProxyEndpointsInput) pub mod describe_db_proxy_endpoints_input { - /// A builder for [`DescribeDBProxyEndpointsInput`](crate::input::DescribeDBProxyEndpointsInput) + /// A builder for [`DescribeDbProxyEndpointsInput`](crate::input::DescribeDbProxyEndpointsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14673,14 +14737,14 @@ pub mod describe_db_proxy_endpoints_input { self.max_records = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyEndpointsInput`](crate::input::DescribeDBProxyEndpointsInput) + /// Consumes the builder and constructs a [`DescribeDbProxyEndpointsInput`](crate::input::DescribeDbProxyEndpointsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBProxyEndpointsInput, + crate::input::DescribeDbProxyEndpointsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBProxyEndpointsInput { + Ok(crate::input::DescribeDbProxyEndpointsInput { db_proxy_name: self.db_proxy_name, db_proxy_endpoint_name: self.db_proxy_endpoint_name, filters: self.filters, @@ -14695,7 +14759,7 @@ pub type DescribeDBProxyEndpointsInputOperationOutputAlias = crate::operation::DescribeDBProxyEndpoints; #[doc(hidden)] pub type DescribeDBProxyEndpointsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBProxyEndpointsInput { +impl DescribeDbProxyEndpointsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBProxyEndpoints`](crate::operation::DescribeDBProxyEndpoints)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -14754,8 +14818,9 @@ impl DescribeDBProxyEndpointsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14763,7 +14828,7 @@ impl DescribeDBProxyEndpointsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14783,15 +14848,15 @@ impl DescribeDBProxyEndpointsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBProxyEndpointsInput`](crate::input::DescribeDBProxyEndpointsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyEndpointsInput`](crate::input::DescribeDbProxyEndpointsInput) pub fn builder() -> crate::input::describe_db_proxy_endpoints_input::Builder { crate::input::describe_db_proxy_endpoints_input::Builder::default() } } -/// See [`DescribeDBProxyTargetGroupsInput`](crate::input::DescribeDBProxyTargetGroupsInput) +/// See [`DescribeDbProxyTargetGroupsInput`](crate::input::DescribeDbProxyTargetGroupsInput) pub mod describe_db_proxy_target_groups_input { - /// A builder for [`DescribeDBProxyTargetGroupsInput`](crate::input::DescribeDBProxyTargetGroupsInput) + /// A builder for [`DescribeDbProxyTargetGroupsInput`](crate::input::DescribeDbProxyTargetGroupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14868,14 +14933,14 @@ pub mod describe_db_proxy_target_groups_input { self.max_records = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyTargetGroupsInput`](crate::input::DescribeDBProxyTargetGroupsInput) + /// Consumes the builder and constructs a [`DescribeDbProxyTargetGroupsInput`](crate::input::DescribeDbProxyTargetGroupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBProxyTargetGroupsInput, + crate::input::DescribeDbProxyTargetGroupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBProxyTargetGroupsInput { + Ok(crate::input::DescribeDbProxyTargetGroupsInput { db_proxy_name: self.db_proxy_name, target_group_name: self.target_group_name, filters: self.filters, @@ -14890,7 +14955,7 @@ pub type DescribeDBProxyTargetGroupsInputOperationOutputAlias = crate::operation::DescribeDBProxyTargetGroups; #[doc(hidden)] pub type DescribeDBProxyTargetGroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBProxyTargetGroupsInput { +impl DescribeDbProxyTargetGroupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBProxyTargetGroups`](crate::operation::DescribeDBProxyTargetGroups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -14950,8 +15015,9 @@ impl DescribeDBProxyTargetGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -14959,7 +15025,7 @@ impl DescribeDBProxyTargetGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14979,15 +15045,15 @@ impl DescribeDBProxyTargetGroupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetGroupsInput`](crate::input::DescribeDBProxyTargetGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetGroupsInput`](crate::input::DescribeDbProxyTargetGroupsInput) pub fn builder() -> crate::input::describe_db_proxy_target_groups_input::Builder { crate::input::describe_db_proxy_target_groups_input::Builder::default() } } -/// See [`DescribeDBProxyTargetsInput`](crate::input::DescribeDBProxyTargetsInput) +/// See [`DescribeDbProxyTargetsInput`](crate::input::DescribeDbProxyTargetsInput) pub mod describe_db_proxy_targets_input { - /// A builder for [`DescribeDBProxyTargetsInput`](crate::input::DescribeDBProxyTargetsInput) + /// A builder for [`DescribeDbProxyTargetsInput`](crate::input::DescribeDbProxyTargetsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15064,14 +15130,14 @@ pub mod describe_db_proxy_targets_input { self.max_records = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyTargetsInput`](crate::input::DescribeDBProxyTargetsInput) + /// Consumes the builder and constructs a [`DescribeDbProxyTargetsInput`](crate::input::DescribeDbProxyTargetsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBProxyTargetsInput, + crate::input::DescribeDbProxyTargetsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBProxyTargetsInput { + Ok(crate::input::DescribeDbProxyTargetsInput { db_proxy_name: self.db_proxy_name, target_group_name: self.target_group_name, filters: self.filters, @@ -15085,7 +15151,7 @@ pub mod describe_db_proxy_targets_input { pub type DescribeDBProxyTargetsInputOperationOutputAlias = crate::operation::DescribeDBProxyTargets; #[doc(hidden)] pub type DescribeDBProxyTargetsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBProxyTargetsInput { +impl DescribeDbProxyTargetsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBProxyTargets`](crate::operation::DescribeDBProxyTargets)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15144,8 +15210,9 @@ impl DescribeDBProxyTargetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15153,7 +15220,7 @@ impl DescribeDBProxyTargetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15173,15 +15240,15 @@ impl DescribeDBProxyTargetsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetsInput`](crate::input::DescribeDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetsInput`](crate::input::DescribeDbProxyTargetsInput) pub fn builder() -> crate::input::describe_db_proxy_targets_input::Builder { crate::input::describe_db_proxy_targets_input::Builder::default() } } -/// See [`DescribeDBSecurityGroupsInput`](crate::input::DescribeDBSecurityGroupsInput) +/// See [`DescribeDbSecurityGroupsInput`](crate::input::DescribeDbSecurityGroupsInput) pub mod describe_db_security_groups_input { - /// A builder for [`DescribeDBSecurityGroupsInput`](crate::input::DescribeDBSecurityGroupsInput) + /// A builder for [`DescribeDbSecurityGroupsInput`](crate::input::DescribeDbSecurityGroupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15247,14 +15314,14 @@ pub mod describe_db_security_groups_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBSecurityGroupsInput`](crate::input::DescribeDBSecurityGroupsInput) + /// Consumes the builder and constructs a [`DescribeDbSecurityGroupsInput`](crate::input::DescribeDbSecurityGroupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBSecurityGroupsInput, + crate::input::DescribeDbSecurityGroupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBSecurityGroupsInput { + Ok(crate::input::DescribeDbSecurityGroupsInput { db_security_group_name: self.db_security_group_name, filters: self.filters, max_records: self.max_records, @@ -15268,7 +15335,7 @@ pub type DescribeDBSecurityGroupsInputOperationOutputAlias = crate::operation::DescribeDBSecurityGroups; #[doc(hidden)] pub type DescribeDBSecurityGroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBSecurityGroupsInput { +impl DescribeDbSecurityGroupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBSecurityGroups`](crate::operation::DescribeDBSecurityGroups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15327,8 +15394,9 @@ impl DescribeDBSecurityGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15336,7 +15404,7 @@ impl DescribeDBSecurityGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15356,15 +15424,15 @@ impl DescribeDBSecurityGroupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBSecurityGroupsInput`](crate::input::DescribeDBSecurityGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSecurityGroupsInput`](crate::input::DescribeDbSecurityGroupsInput) pub fn builder() -> crate::input::describe_db_security_groups_input::Builder { crate::input::describe_db_security_groups_input::Builder::default() } } -/// See [`DescribeDBSnapshotAttributesInput`](crate::input::DescribeDBSnapshotAttributesInput) +/// See [`DescribeDbSnapshotAttributesInput`](crate::input::DescribeDbSnapshotAttributesInput) pub mod describe_db_snapshot_attributes_input { - /// A builder for [`DescribeDBSnapshotAttributesInput`](crate::input::DescribeDBSnapshotAttributesInput) + /// A builder for [`DescribeDbSnapshotAttributesInput`](crate::input::DescribeDbSnapshotAttributesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15383,14 +15451,14 @@ pub mod describe_db_snapshot_attributes_input { self.db_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`DescribeDBSnapshotAttributesInput`](crate::input::DescribeDBSnapshotAttributesInput) + /// Consumes the builder and constructs a [`DescribeDbSnapshotAttributesInput`](crate::input::DescribeDbSnapshotAttributesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBSnapshotAttributesInput, + crate::input::DescribeDbSnapshotAttributesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBSnapshotAttributesInput { + Ok(crate::input::DescribeDbSnapshotAttributesInput { db_snapshot_identifier: self.db_snapshot_identifier, }) } @@ -15401,7 +15469,7 @@ pub type DescribeDBSnapshotAttributesInputOperationOutputAlias = crate::operation::DescribeDBSnapshotAttributes; #[doc(hidden)] pub type DescribeDBSnapshotAttributesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBSnapshotAttributesInput { +impl DescribeDbSnapshotAttributesInput { /// Consumes the builder and constructs an Operation<[`DescribeDBSnapshotAttributes`](crate::operation::DescribeDBSnapshotAttributes)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15461,8 +15529,9 @@ impl DescribeDBSnapshotAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15470,7 +15539,7 @@ impl DescribeDBSnapshotAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15490,15 +15559,15 @@ impl DescribeDBSnapshotAttributesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotAttributesInput`](crate::input::DescribeDBSnapshotAttributesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotAttributesInput`](crate::input::DescribeDbSnapshotAttributesInput) pub fn builder() -> crate::input::describe_db_snapshot_attributes_input::Builder { crate::input::describe_db_snapshot_attributes_input::Builder::default() } } -/// See [`DescribeDBSnapshotsInput`](crate::input::DescribeDBSnapshotsInput) +/// See [`DescribeDbSnapshotsInput`](crate::input::DescribeDbSnapshotsInput) pub mod describe_db_snapshots_input { - /// A builder for [`DescribeDBSnapshotsInput`](crate::input::DescribeDBSnapshotsInput) + /// A builder for [`DescribeDbSnapshotsInput`](crate::input::DescribeDbSnapshotsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15688,14 +15757,14 @@ pub mod describe_db_snapshots_input { self.dbi_resource_id = input; self } - /// Consumes the builder and constructs a [`DescribeDBSnapshotsInput`](crate::input::DescribeDBSnapshotsInput) + /// Consumes the builder and constructs a [`DescribeDbSnapshotsInput`](crate::input::DescribeDbSnapshotsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBSnapshotsInput, + crate::input::DescribeDbSnapshotsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBSnapshotsInput { + Ok(crate::input::DescribeDbSnapshotsInput { db_instance_identifier: self.db_instance_identifier, db_snapshot_identifier: self.db_snapshot_identifier, snapshot_type: self.snapshot_type, @@ -15713,7 +15782,7 @@ pub mod describe_db_snapshots_input { pub type DescribeDBSnapshotsInputOperationOutputAlias = crate::operation::DescribeDBSnapshots; #[doc(hidden)] pub type DescribeDBSnapshotsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBSnapshotsInput { +impl DescribeDbSnapshotsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBSnapshots`](crate::operation::DescribeDBSnapshots)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15772,8 +15841,9 @@ impl DescribeDBSnapshotsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15781,7 +15851,7 @@ impl DescribeDBSnapshotsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15801,15 +15871,15 @@ impl DescribeDBSnapshotsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotsInput`](crate::input::DescribeDBSnapshotsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotsInput`](crate::input::DescribeDbSnapshotsInput) pub fn builder() -> crate::input::describe_db_snapshots_input::Builder { crate::input::describe_db_snapshots_input::Builder::default() } } -/// See [`DescribeDBSubnetGroupsInput`](crate::input::DescribeDBSubnetGroupsInput) +/// See [`DescribeDbSubnetGroupsInput`](crate::input::DescribeDbSubnetGroupsInput) pub mod describe_db_subnet_groups_input { - /// A builder for [`DescribeDBSubnetGroupsInput`](crate::input::DescribeDBSubnetGroupsInput) + /// A builder for [`DescribeDbSubnetGroupsInput`](crate::input::DescribeDbSubnetGroupsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15874,14 +15944,14 @@ pub mod describe_db_subnet_groups_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBSubnetGroupsInput`](crate::input::DescribeDBSubnetGroupsInput) + /// Consumes the builder and constructs a [`DescribeDbSubnetGroupsInput`](crate::input::DescribeDbSubnetGroupsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeDBSubnetGroupsInput, + crate::input::DescribeDbSubnetGroupsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeDBSubnetGroupsInput { + Ok(crate::input::DescribeDbSubnetGroupsInput { db_subnet_group_name: self.db_subnet_group_name, filters: self.filters, max_records: self.max_records, @@ -15894,7 +15964,7 @@ pub mod describe_db_subnet_groups_input { pub type DescribeDBSubnetGroupsInputOperationOutputAlias = crate::operation::DescribeDBSubnetGroups; #[doc(hidden)] pub type DescribeDBSubnetGroupsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeDBSubnetGroupsInput { +impl DescribeDbSubnetGroupsInput { /// Consumes the builder and constructs an Operation<[`DescribeDBSubnetGroups`](crate::operation::DescribeDBSubnetGroups)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15953,8 +16023,9 @@ impl DescribeDBSubnetGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -15962,7 +16033,7 @@ impl DescribeDBSubnetGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -15982,7 +16053,7 @@ impl DescribeDBSubnetGroupsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeDBSubnetGroupsInput`](crate::input::DescribeDBSubnetGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSubnetGroupsInput`](crate::input::DescribeDbSubnetGroupsInput) pub fn builder() -> crate::input::describe_db_subnet_groups_input::Builder { crate::input::describe_db_subnet_groups_input::Builder::default() } @@ -16135,8 +16206,9 @@ impl DescribeEngineDefaultClusterParametersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16144,7 +16216,7 @@ impl DescribeEngineDefaultClusterParametersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16318,8 +16390,9 @@ impl DescribeEngineDefaultParametersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16327,7 +16400,7 @@ impl DescribeEngineDefaultParametersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16465,8 +16538,9 @@ impl DescribeEventCategoriesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16474,7 +16548,7 @@ impl DescribeEventCategoriesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16746,8 +16820,9 @@ impl DescribeEventsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16755,7 +16830,7 @@ impl DescribeEventsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -16930,8 +17005,9 @@ impl DescribeEventSubscriptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -16939,7 +17015,7 @@ impl DescribeEventSubscriptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17121,8 +17197,9 @@ impl DescribeExportTasksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17130,7 +17207,7 @@ impl DescribeExportTasksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17308,8 +17385,9 @@ impl DescribeGlobalClustersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17317,7 +17395,7 @@ impl DescribeGlobalClustersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17483,8 +17561,9 @@ impl DescribeInstallationMediaInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17492,7 +17571,7 @@ impl DescribeInstallationMediaInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17734,8 +17813,9 @@ impl DescribeOptionGroupOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -17743,7 +17823,7 @@ impl DescribeOptionGroupOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -17999,8 +18079,9 @@ impl DescribeOptionGroupsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18008,7 +18089,7 @@ impl DescribeOptionGroupsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18034,9 +18115,9 @@ impl DescribeOptionGroupsInput { } } -/// See [`DescribeOrderableDBInstanceOptionsInput`](crate::input::DescribeOrderableDBInstanceOptionsInput) +/// See [`DescribeOrderableDbInstanceOptionsInput`](crate::input::DescribeOrderableDbInstanceOptionsInput) pub mod describe_orderable_db_instance_options_input { - /// A builder for [`DescribeOrderableDBInstanceOptionsInput`](crate::input::DescribeOrderableDBInstanceOptionsInput) + /// A builder for [`DescribeOrderableDbInstanceOptionsInput`](crate::input::DescribeOrderableDbInstanceOptionsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18234,14 +18315,14 @@ pub mod describe_orderable_db_instance_options_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeOrderableDBInstanceOptionsInput`](crate::input::DescribeOrderableDBInstanceOptionsInput) + /// Consumes the builder and constructs a [`DescribeOrderableDbInstanceOptionsInput`](crate::input::DescribeOrderableDbInstanceOptionsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeOrderableDBInstanceOptionsInput, + crate::input::DescribeOrderableDbInstanceOptionsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeOrderableDBInstanceOptionsInput { + Ok(crate::input::DescribeOrderableDbInstanceOptionsInput { engine: self.engine, engine_version: self.engine_version, db_instance_class: self.db_instance_class, @@ -18260,7 +18341,7 @@ pub type DescribeOrderableDBInstanceOptionsInputOperationOutputAlias = crate::operation::DescribeOrderableDBInstanceOptions; #[doc(hidden)] pub type DescribeOrderableDBInstanceOptionsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeOrderableDBInstanceOptionsInput { +impl DescribeOrderableDbInstanceOptionsInput { /// Consumes the builder and constructs an Operation<[`DescribeOrderableDBInstanceOptions`](crate::operation::DescribeOrderableDBInstanceOptions)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -18322,8 +18403,9 @@ impl DescribeOrderableDBInstanceOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18331,7 +18413,7 @@ impl DescribeOrderableDBInstanceOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18351,7 +18433,7 @@ impl DescribeOrderableDBInstanceOptionsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeOrderableDBInstanceOptionsInput`](crate::input::DescribeOrderableDBInstanceOptionsInput) + /// Creates a new builder-style object to manufacture [`DescribeOrderableDbInstanceOptionsInput`](crate::input::DescribeOrderableDbInstanceOptionsInput) pub fn builder() -> crate::input::describe_orderable_db_instance_options_input::Builder { crate::input::describe_orderable_db_instance_options_input::Builder::default() } @@ -18508,8 +18590,9 @@ impl DescribePendingMaintenanceActionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18517,7 +18600,7 @@ impl DescribePendingMaintenanceActionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18543,9 +18626,9 @@ impl DescribePendingMaintenanceActionsInput { } } -/// See [`DescribeReservedDBInstancesInput`](crate::input::DescribeReservedDBInstancesInput) +/// See [`DescribeReservedDbInstancesInput`](crate::input::DescribeReservedDbInstancesInput) pub mod describe_reserved_db_instances_input { - /// A builder for [`DescribeReservedDBInstancesInput`](crate::input::DescribeReservedDBInstancesInput) + /// A builder for [`DescribeReservedDbInstancesInput`](crate::input::DescribeReservedDbInstancesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18701,14 +18784,14 @@ pub mod describe_reserved_db_instances_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeReservedDBInstancesInput`](crate::input::DescribeReservedDBInstancesInput) + /// Consumes the builder and constructs a [`DescribeReservedDbInstancesInput`](crate::input::DescribeReservedDbInstancesInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeReservedDBInstancesInput, + crate::input::DescribeReservedDbInstancesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeReservedDBInstancesInput { + Ok(crate::input::DescribeReservedDbInstancesInput { reserved_db_instance_id: self.reserved_db_instance_id, reserved_db_instances_offering_id: self.reserved_db_instances_offering_id, db_instance_class: self.db_instance_class, @@ -18729,7 +18812,7 @@ pub type DescribeReservedDBInstancesInputOperationOutputAlias = crate::operation::DescribeReservedDBInstances; #[doc(hidden)] pub type DescribeReservedDBInstancesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeReservedDBInstancesInput { +impl DescribeReservedDbInstancesInput { /// Consumes the builder and constructs an Operation<[`DescribeReservedDBInstances`](crate::operation::DescribeReservedDBInstances)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -18789,8 +18872,9 @@ impl DescribeReservedDBInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -18798,7 +18882,7 @@ impl DescribeReservedDBInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -18818,15 +18902,15 @@ impl DescribeReservedDBInstancesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesInput`](crate::input::DescribeReservedDBInstancesInput) + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesInput`](crate::input::DescribeReservedDbInstancesInput) pub fn builder() -> crate::input::describe_reserved_db_instances_input::Builder { crate::input::describe_reserved_db_instances_input::Builder::default() } } -/// See [`DescribeReservedDBInstancesOfferingsInput`](crate::input::DescribeReservedDBInstancesOfferingsInput) +/// See [`DescribeReservedDbInstancesOfferingsInput`](crate::input::DescribeReservedDbInstancesOfferingsInput) pub mod describe_reserved_db_instances_offerings_input { - /// A builder for [`DescribeReservedDBInstancesOfferingsInput`](crate::input::DescribeReservedDBInstancesOfferingsInput) + /// A builder for [`DescribeReservedDbInstancesOfferingsInput`](crate::input::DescribeReservedDbInstancesOfferingsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18961,14 +19045,14 @@ pub mod describe_reserved_db_instances_offerings_input { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeReservedDBInstancesOfferingsInput`](crate::input::DescribeReservedDBInstancesOfferingsInput) + /// Consumes the builder and constructs a [`DescribeReservedDbInstancesOfferingsInput`](crate::input::DescribeReservedDbInstancesOfferingsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeReservedDBInstancesOfferingsInput, + crate::input::DescribeReservedDbInstancesOfferingsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeReservedDBInstancesOfferingsInput { + Ok(crate::input::DescribeReservedDbInstancesOfferingsInput { reserved_db_instances_offering_id: self.reserved_db_instances_offering_id, db_instance_class: self.db_instance_class, duration: self.duration, @@ -18988,7 +19072,7 @@ pub type DescribeReservedDBInstancesOfferingsInputOperationOutputAlias = #[doc(hidden)] pub type DescribeReservedDBInstancesOfferingsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeReservedDBInstancesOfferingsInput { +impl DescribeReservedDbInstancesOfferingsInput { /// Consumes the builder and constructs an Operation<[`DescribeReservedDBInstancesOfferings`](crate::operation::DescribeReservedDBInstancesOfferings)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19050,8 +19134,9 @@ impl DescribeReservedDBInstancesOfferingsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19059,7 +19144,7 @@ impl DescribeReservedDBInstancesOfferingsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19079,7 +19164,7 @@ impl DescribeReservedDBInstancesOfferingsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesOfferingsInput`](crate::input::DescribeReservedDBInstancesOfferingsInput) + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesOfferingsInput`](crate::input::DescribeReservedDbInstancesOfferingsInput) pub fn builder() -> crate::input::describe_reserved_db_instances_offerings_input::Builder { crate::input::describe_reserved_db_instances_offerings_input::Builder::default() } @@ -19228,8 +19313,9 @@ impl DescribeSourceRegionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19237,7 +19323,7 @@ impl DescribeSourceRegionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19263,9 +19349,9 @@ impl DescribeSourceRegionsInput { } } -/// See [`DescribeValidDBInstanceModificationsInput`](crate::input::DescribeValidDBInstanceModificationsInput) +/// See [`DescribeValidDbInstanceModificationsInput`](crate::input::DescribeValidDbInstanceModificationsInput) pub mod describe_valid_db_instance_modifications_input { - /// A builder for [`DescribeValidDBInstanceModificationsInput`](crate::input::DescribeValidDBInstanceModificationsInput) + /// A builder for [`DescribeValidDbInstanceModificationsInput`](crate::input::DescribeValidDbInstanceModificationsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19285,14 +19371,14 @@ pub mod describe_valid_db_instance_modifications_input { self.db_instance_identifier = input; self } - /// Consumes the builder and constructs a [`DescribeValidDBInstanceModificationsInput`](crate::input::DescribeValidDBInstanceModificationsInput) + /// Consumes the builder and constructs a [`DescribeValidDbInstanceModificationsInput`](crate::input::DescribeValidDbInstanceModificationsInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeValidDBInstanceModificationsInput, + crate::input::DescribeValidDbInstanceModificationsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeValidDBInstanceModificationsInput { + Ok(crate::input::DescribeValidDbInstanceModificationsInput { db_instance_identifier: self.db_instance_identifier, }) } @@ -19304,7 +19390,7 @@ pub type DescribeValidDBInstanceModificationsInputOperationOutputAlias = #[doc(hidden)] pub type DescribeValidDBInstanceModificationsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeValidDBInstanceModificationsInput { +impl DescribeValidDbInstanceModificationsInput { /// Consumes the builder and constructs an Operation<[`DescribeValidDBInstanceModifications`](crate::operation::DescribeValidDBInstanceModifications)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19366,8 +19452,9 @@ impl DescribeValidDBInstanceModificationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19375,7 +19462,7 @@ impl DescribeValidDBInstanceModificationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19395,15 +19482,15 @@ impl DescribeValidDBInstanceModificationsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeValidDBInstanceModificationsInput`](crate::input::DescribeValidDBInstanceModificationsInput) + /// Creates a new builder-style object to manufacture [`DescribeValidDbInstanceModificationsInput`](crate::input::DescribeValidDbInstanceModificationsInput) pub fn builder() -> crate::input::describe_valid_db_instance_modifications_input::Builder { crate::input::describe_valid_db_instance_modifications_input::Builder::default() } } -/// See [`DownloadDBLogFilePortionInput`](crate::input::DownloadDBLogFilePortionInput) +/// See [`DownloadDbLogFilePortionInput`](crate::input::DownloadDbLogFilePortionInput) pub mod download_db_log_file_portion_input { - /// A builder for [`DownloadDBLogFilePortionInput`](crate::input::DownloadDBLogFilePortionInput) + /// A builder for [`DownloadDbLogFilePortionInput`](crate::input::DownloadDbLogFilePortionInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19485,14 +19572,14 @@ pub mod download_db_log_file_portion_input { self.number_of_lines = input; self } - /// Consumes the builder and constructs a [`DownloadDBLogFilePortionInput`](crate::input::DownloadDBLogFilePortionInput) + /// Consumes the builder and constructs a [`DownloadDbLogFilePortionInput`](crate::input::DownloadDbLogFilePortionInput) pub fn build( self, ) -> std::result::Result< - crate::input::DownloadDBLogFilePortionInput, + crate::input::DownloadDbLogFilePortionInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DownloadDBLogFilePortionInput { + Ok(crate::input::DownloadDbLogFilePortionInput { db_instance_identifier: self.db_instance_identifier, log_file_name: self.log_file_name, marker: self.marker, @@ -19506,7 +19593,7 @@ pub type DownloadDBLogFilePortionInputOperationOutputAlias = crate::operation::DownloadDBLogFilePortion; #[doc(hidden)] pub type DownloadDBLogFilePortionInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DownloadDBLogFilePortionInput { +impl DownloadDbLogFilePortionInput { /// Consumes the builder and constructs an Operation<[`DownloadDBLogFilePortion`](crate::operation::DownloadDBLogFilePortion)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19566,8 +19653,9 @@ impl DownloadDBLogFilePortionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19575,7 +19663,7 @@ impl DownloadDBLogFilePortionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19595,15 +19683,15 @@ impl DownloadDBLogFilePortionInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DownloadDBLogFilePortionInput`](crate::input::DownloadDBLogFilePortionInput) + /// Creates a new builder-style object to manufacture [`DownloadDbLogFilePortionInput`](crate::input::DownloadDbLogFilePortionInput) pub fn builder() -> crate::input::download_db_log_file_portion_input::Builder { crate::input::download_db_log_file_portion_input::Builder::default() } } -/// See [`FailoverDBClusterInput`](crate::input::FailoverDBClusterInput) +/// See [`FailoverDbClusterInput`](crate::input::FailoverDbClusterInput) pub mod failover_db_cluster_input { - /// A builder for [`FailoverDBClusterInput`](crate::input::FailoverDBClusterInput) + /// A builder for [`FailoverDbClusterInput`](crate::input::FailoverDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19646,14 +19734,14 @@ pub mod failover_db_cluster_input { self.target_db_instance_identifier = input; self } - /// Consumes the builder and constructs a [`FailoverDBClusterInput`](crate::input::FailoverDBClusterInput) + /// Consumes the builder and constructs a [`FailoverDbClusterInput`](crate::input::FailoverDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::FailoverDBClusterInput, + crate::input::FailoverDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::FailoverDBClusterInput { + Ok(crate::input::FailoverDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, target_db_instance_identifier: self.target_db_instance_identifier, }) @@ -19664,7 +19752,7 @@ pub mod failover_db_cluster_input { pub type FailoverDBClusterInputOperationOutputAlias = crate::operation::FailoverDBCluster; #[doc(hidden)] pub type FailoverDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl FailoverDBClusterInput { +impl FailoverDbClusterInput { /// Consumes the builder and constructs an Operation<[`FailoverDBCluster`](crate::operation::FailoverDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -19723,8 +19811,9 @@ impl FailoverDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19732,7 +19821,7 @@ impl FailoverDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -19752,7 +19841,7 @@ impl FailoverDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`FailoverDBClusterInput`](crate::input::FailoverDBClusterInput) + /// Creates a new builder-style object to manufacture [`FailoverDbClusterInput`](crate::input::FailoverDbClusterInput) pub fn builder() -> crate::input::failover_db_cluster_input::Builder { crate::input::failover_db_cluster_input::Builder::default() } @@ -19885,8 +19974,9 @@ impl FailoverGlobalClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -19894,7 +19984,7 @@ impl FailoverGlobalClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20119,8 +20209,9 @@ impl ImportInstallationMediaInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20128,7 +20219,7 @@ impl ImportInstallationMediaInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20269,8 +20360,9 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20278,7 +20370,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20416,8 +20508,9 @@ impl ModifyCertificatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20425,7 +20518,7 @@ impl ModifyCertificatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20451,9 +20544,9 @@ impl ModifyCertificatesInput { } } -/// See [`ModifyCurrentDBClusterCapacityInput`](crate::input::ModifyCurrentDBClusterCapacityInput) +/// See [`ModifyCurrentDbClusterCapacityInput`](crate::input::ModifyCurrentDbClusterCapacityInput) pub mod modify_current_db_cluster_capacity_input { - /// A builder for [`ModifyCurrentDBClusterCapacityInput`](crate::input::ModifyCurrentDBClusterCapacityInput) + /// A builder for [`ModifyCurrentDbClusterCapacityInput`](crate::input::ModifyCurrentDbClusterCapacityInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20532,14 +20625,14 @@ pub mod modify_current_db_cluster_capacity_input { self.timeout_action = input; self } - /// Consumes the builder and constructs a [`ModifyCurrentDBClusterCapacityInput`](crate::input::ModifyCurrentDBClusterCapacityInput) + /// Consumes the builder and constructs a [`ModifyCurrentDbClusterCapacityInput`](crate::input::ModifyCurrentDbClusterCapacityInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyCurrentDBClusterCapacityInput, + crate::input::ModifyCurrentDbClusterCapacityInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyCurrentDBClusterCapacityInput { + Ok(crate::input::ModifyCurrentDbClusterCapacityInput { db_cluster_identifier: self.db_cluster_identifier, capacity: self.capacity, seconds_before_timeout: self.seconds_before_timeout, @@ -20553,7 +20646,7 @@ pub type ModifyCurrentDBClusterCapacityInputOperationOutputAlias = crate::operation::ModifyCurrentDBClusterCapacity; #[doc(hidden)] pub type ModifyCurrentDBClusterCapacityInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyCurrentDBClusterCapacityInput { +impl ModifyCurrentDbClusterCapacityInput { /// Consumes the builder and constructs an Operation<[`ModifyCurrentDBClusterCapacity`](crate::operation::ModifyCurrentDBClusterCapacity)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -20613,8 +20706,9 @@ impl ModifyCurrentDBClusterCapacityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -20622,7 +20716,7 @@ impl ModifyCurrentDBClusterCapacityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -20642,15 +20736,15 @@ impl ModifyCurrentDBClusterCapacityInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyCurrentDBClusterCapacityInput`](crate::input::ModifyCurrentDBClusterCapacityInput) + /// Creates a new builder-style object to manufacture [`ModifyCurrentDbClusterCapacityInput`](crate::input::ModifyCurrentDbClusterCapacityInput) pub fn builder() -> crate::input::modify_current_db_cluster_capacity_input::Builder { crate::input::modify_current_db_cluster_capacity_input::Builder::default() } } -/// See [`ModifyDBClusterInput`](crate::input::ModifyDBClusterInput) +/// See [`ModifyDbClusterInput`](crate::input::ModifyDbClusterInput) pub mod modify_db_cluster_input { - /// A builder for [`ModifyDBClusterInput`](crate::input::ModifyDBClusterInput) + /// A builder for [`ModifyDbClusterInput`](crate::input::ModifyDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21106,14 +21200,14 @@ pub mod modify_db_cluster_input { self.enable_global_write_forwarding = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterInput`](crate::input::ModifyDBClusterInput) + /// Consumes the builder and constructs a [`ModifyDbClusterInput`](crate::input::ModifyDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBClusterInput, + crate::input::ModifyDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBClusterInput { + Ok(crate::input::ModifyDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, new_db_cluster_identifier: self.new_db_cluster_identifier, apply_immediately: self.apply_immediately.unwrap_or_default(), @@ -21146,7 +21240,7 @@ pub mod modify_db_cluster_input { pub type ModifyDBClusterInputOperationOutputAlias = crate::operation::ModifyDBCluster; #[doc(hidden)] pub type ModifyDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBClusterInput { +impl ModifyDbClusterInput { /// Consumes the builder and constructs an Operation<[`ModifyDBCluster`](crate::operation::ModifyDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21204,8 +21298,9 @@ impl ModifyDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21213,7 +21308,7 @@ impl ModifyDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21233,15 +21328,15 @@ impl ModifyDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBClusterInput`](crate::input::ModifyDBClusterInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterInput`](crate::input::ModifyDbClusterInput) pub fn builder() -> crate::input::modify_db_cluster_input::Builder { crate::input::modify_db_cluster_input::Builder::default() } } -/// See [`ModifyDBClusterEndpointInput`](crate::input::ModifyDBClusterEndpointInput) +/// See [`ModifyDbClusterEndpointInput`](crate::input::ModifyDbClusterEndpointInput) pub mod modify_db_cluster_endpoint_input { - /// A builder for [`ModifyDBClusterEndpointInput`](crate::input::ModifyDBClusterEndpointInput) + /// A builder for [`ModifyDbClusterEndpointInput`](crate::input::ModifyDbClusterEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21304,14 +21399,14 @@ pub mod modify_db_cluster_endpoint_input { self.excluded_members = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterEndpointInput`](crate::input::ModifyDBClusterEndpointInput) + /// Consumes the builder and constructs a [`ModifyDbClusterEndpointInput`](crate::input::ModifyDbClusterEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBClusterEndpointInput, + crate::input::ModifyDbClusterEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBClusterEndpointInput { + Ok(crate::input::ModifyDbClusterEndpointInput { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, endpoint_type: self.endpoint_type, static_members: self.static_members, @@ -21325,7 +21420,7 @@ pub type ModifyDBClusterEndpointInputOperationOutputAlias = crate::operation::ModifyDBClusterEndpoint; #[doc(hidden)] pub type ModifyDBClusterEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBClusterEndpointInput { +impl ModifyDbClusterEndpointInput { /// Consumes the builder and constructs an Operation<[`ModifyDBClusterEndpoint`](crate::operation::ModifyDBClusterEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21384,8 +21479,9 @@ impl ModifyDBClusterEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21393,7 +21489,7 @@ impl ModifyDBClusterEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21413,15 +21509,15 @@ impl ModifyDBClusterEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBClusterEndpointInput`](crate::input::ModifyDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterEndpointInput`](crate::input::ModifyDbClusterEndpointInput) pub fn builder() -> crate::input::modify_db_cluster_endpoint_input::Builder { crate::input::modify_db_cluster_endpoint_input::Builder::default() } } -/// See [`ModifyDBClusterParameterGroupInput`](crate::input::ModifyDBClusterParameterGroupInput) +/// See [`ModifyDbClusterParameterGroupInput`](crate::input::ModifyDbClusterParameterGroupInput) pub mod modify_db_cluster_parameter_group_input { - /// A builder for [`ModifyDBClusterParameterGroupInput`](crate::input::ModifyDBClusterParameterGroupInput) + /// A builder for [`ModifyDbClusterParameterGroupInput`](crate::input::ModifyDbClusterParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21457,14 +21553,14 @@ pub mod modify_db_cluster_parameter_group_input { self.parameters = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterParameterGroupInput`](crate::input::ModifyDBClusterParameterGroupInput) + /// Consumes the builder and constructs a [`ModifyDbClusterParameterGroupInput`](crate::input::ModifyDbClusterParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBClusterParameterGroupInput, + crate::input::ModifyDbClusterParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBClusterParameterGroupInput { + Ok(crate::input::ModifyDbClusterParameterGroupInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, parameters: self.parameters, }) @@ -21476,7 +21572,7 @@ pub type ModifyDBClusterParameterGroupInputOperationOutputAlias = crate::operation::ModifyDBClusterParameterGroup; #[doc(hidden)] pub type ModifyDBClusterParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBClusterParameterGroupInput { +impl ModifyDbClusterParameterGroupInput { /// Consumes the builder and constructs an Operation<[`ModifyDBClusterParameterGroup`](crate::operation::ModifyDBClusterParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21536,8 +21632,9 @@ impl ModifyDBClusterParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21545,7 +21642,7 @@ impl ModifyDBClusterParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21565,15 +21662,15 @@ impl ModifyDBClusterParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBClusterParameterGroupInput`](crate::input::ModifyDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterParameterGroupInput`](crate::input::ModifyDbClusterParameterGroupInput) pub fn builder() -> crate::input::modify_db_cluster_parameter_group_input::Builder { crate::input::modify_db_cluster_parameter_group_input::Builder::default() } } -/// See [`ModifyDBClusterSnapshotAttributeInput`](crate::input::ModifyDBClusterSnapshotAttributeInput) +/// See [`ModifyDbClusterSnapshotAttributeInput`](crate::input::ModifyDbClusterSnapshotAttributeInput) pub mod modify_db_cluster_snapshot_attribute_input { - /// A builder for [`ModifyDBClusterSnapshotAttributeInput`](crate::input::ModifyDBClusterSnapshotAttributeInput) + /// A builder for [`ModifyDbClusterSnapshotAttributeInput`](crate::input::ModifyDbClusterSnapshotAttributeInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21642,14 +21739,14 @@ pub mod modify_db_cluster_snapshot_attribute_input { self.values_to_remove = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterSnapshotAttributeInput`](crate::input::ModifyDBClusterSnapshotAttributeInput) + /// Consumes the builder and constructs a [`ModifyDbClusterSnapshotAttributeInput`](crate::input::ModifyDbClusterSnapshotAttributeInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBClusterSnapshotAttributeInput, + crate::input::ModifyDbClusterSnapshotAttributeInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBClusterSnapshotAttributeInput { + Ok(crate::input::ModifyDbClusterSnapshotAttributeInput { db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, attribute_name: self.attribute_name, values_to_add: self.values_to_add, @@ -21663,7 +21760,7 @@ pub type ModifyDBClusterSnapshotAttributeInputOperationOutputAlias = crate::operation::ModifyDBClusterSnapshotAttribute; #[doc(hidden)] pub type ModifyDBClusterSnapshotAttributeInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBClusterSnapshotAttributeInput { +impl ModifyDbClusterSnapshotAttributeInput { /// Consumes the builder and constructs an Operation<[`ModifyDBClusterSnapshotAttribute`](crate::operation::ModifyDBClusterSnapshotAttribute)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -21725,8 +21822,9 @@ impl ModifyDBClusterSnapshotAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -21734,7 +21832,7 @@ impl ModifyDBClusterSnapshotAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -21754,15 +21852,15 @@ impl ModifyDBClusterSnapshotAttributeInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBClusterSnapshotAttributeInput`](crate::input::ModifyDBClusterSnapshotAttributeInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterSnapshotAttributeInput`](crate::input::ModifyDbClusterSnapshotAttributeInput) pub fn builder() -> crate::input::modify_db_cluster_snapshot_attribute_input::Builder { crate::input::modify_db_cluster_snapshot_attribute_input::Builder::default() } } -/// See [`ModifyDBInstanceInput`](crate::input::ModifyDBInstanceInput) +/// See [`ModifyDbInstanceInput`](crate::input::ModifyDbInstanceInput) pub mod modify_db_instance_input { - /// A builder for [`ModifyDBInstanceInput`](crate::input::ModifyDBInstanceInput) + /// A builder for [`ModifyDbInstanceInput`](crate::input::ModifyDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22744,14 +22842,14 @@ pub mod modify_db_instance_input { self.aws_backup_recovery_point_arn = input; self } - /// Consumes the builder and constructs a [`ModifyDBInstanceInput`](crate::input::ModifyDBInstanceInput) + /// Consumes the builder and constructs a [`ModifyDbInstanceInput`](crate::input::ModifyDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBInstanceInput, + crate::input::ModifyDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBInstanceInput { + Ok(crate::input::ModifyDbInstanceInput { db_instance_identifier: self.db_instance_identifier, allocated_storage: self.allocated_storage, db_instance_class: self.db_instance_class, @@ -22805,7 +22903,7 @@ pub mod modify_db_instance_input { pub type ModifyDBInstanceInputOperationOutputAlias = crate::operation::ModifyDBInstance; #[doc(hidden)] pub type ModifyDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBInstanceInput { +impl ModifyDbInstanceInput { /// Consumes the builder and constructs an Operation<[`ModifyDBInstance`](crate::operation::ModifyDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -22864,8 +22962,9 @@ impl ModifyDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -22873,7 +22972,7 @@ impl ModifyDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -22893,15 +22992,15 @@ impl ModifyDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBInstanceInput`](crate::input::ModifyDBInstanceInput) + /// Creates a new builder-style object to manufacture [`ModifyDbInstanceInput`](crate::input::ModifyDbInstanceInput) pub fn builder() -> crate::input::modify_db_instance_input::Builder { crate::input::modify_db_instance_input::Builder::default() } } -/// See [`ModifyDBParameterGroupInput`](crate::input::ModifyDBParameterGroupInput) +/// See [`ModifyDbParameterGroupInput`](crate::input::ModifyDbParameterGroupInput) pub mod modify_db_parameter_group_input { - /// A builder for [`ModifyDBParameterGroupInput`](crate::input::ModifyDBParameterGroupInput) + /// A builder for [`ModifyDbParameterGroupInput`](crate::input::ModifyDbParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -22940,14 +23039,14 @@ pub mod modify_db_parameter_group_input { self.parameters = input; self } - /// Consumes the builder and constructs a [`ModifyDBParameterGroupInput`](crate::input::ModifyDBParameterGroupInput) + /// Consumes the builder and constructs a [`ModifyDbParameterGroupInput`](crate::input::ModifyDbParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBParameterGroupInput, + crate::input::ModifyDbParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBParameterGroupInput { + Ok(crate::input::ModifyDbParameterGroupInput { db_parameter_group_name: self.db_parameter_group_name, parameters: self.parameters, }) @@ -22958,7 +23057,7 @@ pub mod modify_db_parameter_group_input { pub type ModifyDBParameterGroupInputOperationOutputAlias = crate::operation::ModifyDBParameterGroup; #[doc(hidden)] pub type ModifyDBParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBParameterGroupInput { +impl ModifyDbParameterGroupInput { /// Consumes the builder and constructs an Operation<[`ModifyDBParameterGroup`](crate::operation::ModifyDBParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23017,8 +23116,9 @@ impl ModifyDBParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23026,7 +23126,7 @@ impl ModifyDBParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23046,15 +23146,15 @@ impl ModifyDBParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBParameterGroupInput`](crate::input::ModifyDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbParameterGroupInput`](crate::input::ModifyDbParameterGroupInput) pub fn builder() -> crate::input::modify_db_parameter_group_input::Builder { crate::input::modify_db_parameter_group_input::Builder::default() } } -/// See [`ModifyDBProxyInput`](crate::input::ModifyDBProxyInput) +/// See [`ModifyDbProxyInput`](crate::input::ModifyDbProxyInput) pub mod modify_db_proxy_input { - /// A builder for [`ModifyDBProxyInput`](crate::input::ModifyDBProxyInput) + /// A builder for [`ModifyDbProxyInput`](crate::input::ModifyDbProxyInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23162,12 +23262,12 @@ pub mod modify_db_proxy_input { self.security_groups = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyInput`](crate::input::ModifyDBProxyInput) + /// Consumes the builder and constructs a [`ModifyDbProxyInput`](crate::input::ModifyDbProxyInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::ModifyDBProxyInput { + Ok(crate::input::ModifyDbProxyInput { db_proxy_name: self.db_proxy_name, new_db_proxy_name: self.new_db_proxy_name, auth: self.auth, @@ -23184,7 +23284,7 @@ pub mod modify_db_proxy_input { pub type ModifyDBProxyInputOperationOutputAlias = crate::operation::ModifyDBProxy; #[doc(hidden)] pub type ModifyDBProxyInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBProxyInput { +impl ModifyDbProxyInput { /// Consumes the builder and constructs an Operation<[`ModifyDBProxy`](crate::operation::ModifyDBProxy)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23242,8 +23342,9 @@ impl ModifyDBProxyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23251,7 +23352,7 @@ impl ModifyDBProxyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23271,15 +23372,15 @@ impl ModifyDBProxyInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBProxyInput`](crate::input::ModifyDBProxyInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyInput`](crate::input::ModifyDbProxyInput) pub fn builder() -> crate::input::modify_db_proxy_input::Builder { crate::input::modify_db_proxy_input::Builder::default() } } -/// See [`ModifyDBProxyEndpointInput`](crate::input::ModifyDBProxyEndpointInput) +/// See [`ModifyDbProxyEndpointInput`](crate::input::ModifyDbProxyEndpointInput) pub mod modify_db_proxy_endpoint_input { - /// A builder for [`ModifyDBProxyEndpointInput`](crate::input::ModifyDBProxyEndpointInput) + /// A builder for [`ModifyDbProxyEndpointInput`](crate::input::ModifyDbProxyEndpointInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23327,14 +23428,14 @@ pub mod modify_db_proxy_endpoint_input { self.vpc_security_group_ids = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyEndpointInput`](crate::input::ModifyDBProxyEndpointInput) + /// Consumes the builder and constructs a [`ModifyDbProxyEndpointInput`](crate::input::ModifyDbProxyEndpointInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBProxyEndpointInput, + crate::input::ModifyDbProxyEndpointInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBProxyEndpointInput { + Ok(crate::input::ModifyDbProxyEndpointInput { db_proxy_endpoint_name: self.db_proxy_endpoint_name, new_db_proxy_endpoint_name: self.new_db_proxy_endpoint_name, vpc_security_group_ids: self.vpc_security_group_ids, @@ -23346,7 +23447,7 @@ pub mod modify_db_proxy_endpoint_input { pub type ModifyDBProxyEndpointInputOperationOutputAlias = crate::operation::ModifyDBProxyEndpoint; #[doc(hidden)] pub type ModifyDBProxyEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBProxyEndpointInput { +impl ModifyDbProxyEndpointInput { /// Consumes the builder and constructs an Operation<[`ModifyDBProxyEndpoint`](crate::operation::ModifyDBProxyEndpoint)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23405,8 +23506,9 @@ impl ModifyDBProxyEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23414,7 +23516,7 @@ impl ModifyDBProxyEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23434,15 +23536,15 @@ impl ModifyDBProxyEndpointInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBProxyEndpointInput`](crate::input::ModifyDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyEndpointInput`](crate::input::ModifyDbProxyEndpointInput) pub fn builder() -> crate::input::modify_db_proxy_endpoint_input::Builder { crate::input::modify_db_proxy_endpoint_input::Builder::default() } } -/// See [`ModifyDBProxyTargetGroupInput`](crate::input::ModifyDBProxyTargetGroupInput) +/// See [`ModifyDbProxyTargetGroupInput`](crate::input::ModifyDbProxyTargetGroupInput) pub mod modify_db_proxy_target_group_input { - /// A builder for [`ModifyDBProxyTargetGroupInput`](crate::input::ModifyDBProxyTargetGroupInput) + /// A builder for [`ModifyDbProxyTargetGroupInput`](crate::input::ModifyDbProxyTargetGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23501,14 +23603,14 @@ pub mod modify_db_proxy_target_group_input { self.new_name = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyTargetGroupInput`](crate::input::ModifyDBProxyTargetGroupInput) + /// Consumes the builder and constructs a [`ModifyDbProxyTargetGroupInput`](crate::input::ModifyDbProxyTargetGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBProxyTargetGroupInput, + crate::input::ModifyDbProxyTargetGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBProxyTargetGroupInput { + Ok(crate::input::ModifyDbProxyTargetGroupInput { target_group_name: self.target_group_name, db_proxy_name: self.db_proxy_name, connection_pool_config: self.connection_pool_config, @@ -23522,7 +23624,7 @@ pub type ModifyDBProxyTargetGroupInputOperationOutputAlias = crate::operation::ModifyDBProxyTargetGroup; #[doc(hidden)] pub type ModifyDBProxyTargetGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBProxyTargetGroupInput { +impl ModifyDbProxyTargetGroupInput { /// Consumes the builder and constructs an Operation<[`ModifyDBProxyTargetGroup`](crate::operation::ModifyDBProxyTargetGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23582,8 +23684,9 @@ impl ModifyDBProxyTargetGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23591,7 +23694,7 @@ impl ModifyDBProxyTargetGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23611,15 +23714,15 @@ impl ModifyDBProxyTargetGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBProxyTargetGroupInput`](crate::input::ModifyDBProxyTargetGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyTargetGroupInput`](crate::input::ModifyDbProxyTargetGroupInput) pub fn builder() -> crate::input::modify_db_proxy_target_group_input::Builder { crate::input::modify_db_proxy_target_group_input::Builder::default() } } -/// See [`ModifyDBSnapshotInput`](crate::input::ModifyDBSnapshotInput) +/// See [`ModifyDbSnapshotInput`](crate::input::ModifyDbSnapshotInput) pub mod modify_db_snapshot_input { - /// A builder for [`ModifyDBSnapshotInput`](crate::input::ModifyDBSnapshotInput) + /// A builder for [`ModifyDbSnapshotInput`](crate::input::ModifyDbSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23706,14 +23809,14 @@ pub mod modify_db_snapshot_input { self.option_group_name = input; self } - /// Consumes the builder and constructs a [`ModifyDBSnapshotInput`](crate::input::ModifyDBSnapshotInput) + /// Consumes the builder and constructs a [`ModifyDbSnapshotInput`](crate::input::ModifyDbSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBSnapshotInput, + crate::input::ModifyDbSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBSnapshotInput { + Ok(crate::input::ModifyDbSnapshotInput { db_snapshot_identifier: self.db_snapshot_identifier, engine_version: self.engine_version, option_group_name: self.option_group_name, @@ -23725,7 +23828,7 @@ pub mod modify_db_snapshot_input { pub type ModifyDBSnapshotInputOperationOutputAlias = crate::operation::ModifyDBSnapshot; #[doc(hidden)] pub type ModifyDBSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBSnapshotInput { +impl ModifyDbSnapshotInput { /// Consumes the builder and constructs an Operation<[`ModifyDBSnapshot`](crate::operation::ModifyDBSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23784,8 +23887,9 @@ impl ModifyDBSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23793,7 +23897,7 @@ impl ModifyDBSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23813,15 +23917,15 @@ impl ModifyDBSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotInput`](crate::input::ModifyDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotInput`](crate::input::ModifyDbSnapshotInput) pub fn builder() -> crate::input::modify_db_snapshot_input::Builder { crate::input::modify_db_snapshot_input::Builder::default() } } -/// See [`ModifyDBSnapshotAttributeInput`](crate::input::ModifyDBSnapshotAttributeInput) +/// See [`ModifyDbSnapshotAttributeInput`](crate::input::ModifyDbSnapshotAttributeInput) pub mod modify_db_snapshot_attribute_input { - /// A builder for [`ModifyDBSnapshotAttributeInput`](crate::input::ModifyDBSnapshotAttributeInput) + /// A builder for [`ModifyDbSnapshotAttributeInput`](crate::input::ModifyDbSnapshotAttributeInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23887,14 +23991,14 @@ pub mod modify_db_snapshot_attribute_input { self.values_to_remove = input; self } - /// Consumes the builder and constructs a [`ModifyDBSnapshotAttributeInput`](crate::input::ModifyDBSnapshotAttributeInput) + /// Consumes the builder and constructs a [`ModifyDbSnapshotAttributeInput`](crate::input::ModifyDbSnapshotAttributeInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBSnapshotAttributeInput, + crate::input::ModifyDbSnapshotAttributeInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBSnapshotAttributeInput { + Ok(crate::input::ModifyDbSnapshotAttributeInput { db_snapshot_identifier: self.db_snapshot_identifier, attribute_name: self.attribute_name, values_to_add: self.values_to_add, @@ -23908,7 +24012,7 @@ pub type ModifyDBSnapshotAttributeInputOperationOutputAlias = crate::operation::ModifyDBSnapshotAttribute; #[doc(hidden)] pub type ModifyDBSnapshotAttributeInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBSnapshotAttributeInput { +impl ModifyDbSnapshotAttributeInput { /// Consumes the builder and constructs an Operation<[`ModifyDBSnapshotAttribute`](crate::operation::ModifyDBSnapshotAttribute)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23968,8 +24072,9 @@ impl ModifyDBSnapshotAttributeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -23977,7 +24082,7 @@ impl ModifyDBSnapshotAttributeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -23997,15 +24102,15 @@ impl ModifyDBSnapshotAttributeInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotAttributeInput`](crate::input::ModifyDBSnapshotAttributeInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotAttributeInput`](crate::input::ModifyDbSnapshotAttributeInput) pub fn builder() -> crate::input::modify_db_snapshot_attribute_input::Builder { crate::input::modify_db_snapshot_attribute_input::Builder::default() } } -/// See [`ModifyDBSubnetGroupInput`](crate::input::ModifyDBSubnetGroupInput) +/// See [`ModifyDbSubnetGroupInput`](crate::input::ModifyDbSubnetGroupInput) pub mod modify_db_subnet_group_input { - /// A builder for [`ModifyDBSubnetGroupInput`](crate::input::ModifyDBSubnetGroupInput) + /// A builder for [`ModifyDbSubnetGroupInput`](crate::input::ModifyDbSubnetGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -24059,14 +24164,14 @@ pub mod modify_db_subnet_group_input { self.subnet_ids = input; self } - /// Consumes the builder and constructs a [`ModifyDBSubnetGroupInput`](crate::input::ModifyDBSubnetGroupInput) + /// Consumes the builder and constructs a [`ModifyDbSubnetGroupInput`](crate::input::ModifyDbSubnetGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ModifyDBSubnetGroupInput, + crate::input::ModifyDbSubnetGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ModifyDBSubnetGroupInput { + Ok(crate::input::ModifyDbSubnetGroupInput { db_subnet_group_name: self.db_subnet_group_name, db_subnet_group_description: self.db_subnet_group_description, subnet_ids: self.subnet_ids, @@ -24078,7 +24183,7 @@ pub mod modify_db_subnet_group_input { pub type ModifyDBSubnetGroupInputOperationOutputAlias = crate::operation::ModifyDBSubnetGroup; #[doc(hidden)] pub type ModifyDBSubnetGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ModifyDBSubnetGroupInput { +impl ModifyDbSubnetGroupInput { /// Consumes the builder and constructs an Operation<[`ModifyDBSubnetGroup`](crate::operation::ModifyDBSubnetGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -24137,8 +24242,9 @@ impl ModifyDBSubnetGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24146,7 +24252,7 @@ impl ModifyDBSubnetGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24166,7 +24272,7 @@ impl ModifyDBSubnetGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ModifyDBSubnetGroupInput`](crate::input::ModifyDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSubnetGroupInput`](crate::input::ModifyDbSubnetGroupInput) pub fn builder() -> crate::input::modify_db_subnet_group_input::Builder { crate::input::modify_db_subnet_group_input::Builder::default() } @@ -24325,8 +24431,9 @@ impl ModifyEventSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24334,7 +24441,7 @@ impl ModifyEventSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24558,8 +24665,9 @@ impl ModifyGlobalClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24567,7 +24675,7 @@ impl ModifyGlobalClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24736,8 +24844,9 @@ impl ModifyOptionGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24745,7 +24854,7 @@ impl ModifyOptionGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24937,8 +25046,9 @@ impl PromoteReadReplicaInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -24946,7 +25056,7 @@ impl PromoteReadReplicaInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -24972,9 +25082,9 @@ impl PromoteReadReplicaInput { } } -/// See [`PromoteReadReplicaDBClusterInput`](crate::input::PromoteReadReplicaDBClusterInput) +/// See [`PromoteReadReplicaDbClusterInput`](crate::input::PromoteReadReplicaDbClusterInput) pub mod promote_read_replica_db_cluster_input { - /// A builder for [`PromoteReadReplicaDBClusterInput`](crate::input::PromoteReadReplicaDBClusterInput) + /// A builder for [`PromoteReadReplicaDbClusterInput`](crate::input::PromoteReadReplicaDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25002,14 +25112,14 @@ pub mod promote_read_replica_db_cluster_input { self.db_cluster_identifier = input; self } - /// Consumes the builder and constructs a [`PromoteReadReplicaDBClusterInput`](crate::input::PromoteReadReplicaDBClusterInput) + /// Consumes the builder and constructs a [`PromoteReadReplicaDbClusterInput`](crate::input::PromoteReadReplicaDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::PromoteReadReplicaDBClusterInput, + crate::input::PromoteReadReplicaDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::PromoteReadReplicaDBClusterInput { + Ok(crate::input::PromoteReadReplicaDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, }) } @@ -25020,7 +25130,7 @@ pub type PromoteReadReplicaDBClusterInputOperationOutputAlias = crate::operation::PromoteReadReplicaDBCluster; #[doc(hidden)] pub type PromoteReadReplicaDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl PromoteReadReplicaDBClusterInput { +impl PromoteReadReplicaDbClusterInput { /// Consumes the builder and constructs an Operation<[`PromoteReadReplicaDBCluster`](crate::operation::PromoteReadReplicaDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -25080,8 +25190,9 @@ impl PromoteReadReplicaDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25089,7 +25200,7 @@ impl PromoteReadReplicaDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25109,15 +25220,15 @@ impl PromoteReadReplicaDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDBClusterInput`](crate::input::PromoteReadReplicaDBClusterInput) + /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDbClusterInput`](crate::input::PromoteReadReplicaDbClusterInput) pub fn builder() -> crate::input::promote_read_replica_db_cluster_input::Builder { crate::input::promote_read_replica_db_cluster_input::Builder::default() } } -/// See [`PurchaseReservedDBInstancesOfferingInput`](crate::input::PurchaseReservedDBInstancesOfferingInput) +/// See [`PurchaseReservedDbInstancesOfferingInput`](crate::input::PurchaseReservedDbInstancesOfferingInput) pub mod purchase_reserved_db_instances_offering_input { - /// A builder for [`PurchaseReservedDBInstancesOfferingInput`](crate::input::PurchaseReservedDBInstancesOfferingInput) + /// A builder for [`PurchaseReservedDbInstancesOfferingInput`](crate::input::PurchaseReservedDbInstancesOfferingInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25180,14 +25291,14 @@ pub mod purchase_reserved_db_instances_offering_input { self.tags = input; self } - /// Consumes the builder and constructs a [`PurchaseReservedDBInstancesOfferingInput`](crate::input::PurchaseReservedDBInstancesOfferingInput) + /// Consumes the builder and constructs a [`PurchaseReservedDbInstancesOfferingInput`](crate::input::PurchaseReservedDbInstancesOfferingInput) pub fn build( self, ) -> std::result::Result< - crate::input::PurchaseReservedDBInstancesOfferingInput, + crate::input::PurchaseReservedDbInstancesOfferingInput, smithy_http::operation::BuildError, > { - Ok(crate::input::PurchaseReservedDBInstancesOfferingInput { + Ok(crate::input::PurchaseReservedDbInstancesOfferingInput { reserved_db_instances_offering_id: self.reserved_db_instances_offering_id, reserved_db_instance_id: self.reserved_db_instance_id, db_instance_count: self.db_instance_count, @@ -25202,7 +25313,7 @@ pub type PurchaseReservedDBInstancesOfferingInputOperationOutputAlias = #[doc(hidden)] pub type PurchaseReservedDBInstancesOfferingInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl PurchaseReservedDBInstancesOfferingInput { +impl PurchaseReservedDbInstancesOfferingInput { /// Consumes the builder and constructs an Operation<[`PurchaseReservedDBInstancesOffering`](crate::operation::PurchaseReservedDBInstancesOffering)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -25264,8 +25375,9 @@ impl PurchaseReservedDBInstancesOfferingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25273,7 +25385,7 @@ impl PurchaseReservedDBInstancesOfferingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25293,15 +25405,15 @@ impl PurchaseReservedDBInstancesOfferingInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`PurchaseReservedDBInstancesOfferingInput`](crate::input::PurchaseReservedDBInstancesOfferingInput) + /// Creates a new builder-style object to manufacture [`PurchaseReservedDbInstancesOfferingInput`](crate::input::PurchaseReservedDbInstancesOfferingInput) pub fn builder() -> crate::input::purchase_reserved_db_instances_offering_input::Builder { crate::input::purchase_reserved_db_instances_offering_input::Builder::default() } } -/// See [`RebootDBInstanceInput`](crate::input::RebootDBInstanceInput) +/// See [`RebootDbInstanceInput`](crate::input::RebootDbInstanceInput) pub mod reboot_db_instance_input { - /// A builder for [`RebootDBInstanceInput`](crate::input::RebootDBInstanceInput) + /// A builder for [`RebootDbInstanceInput`](crate::input::RebootDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25339,14 +25451,14 @@ pub mod reboot_db_instance_input { self.force_failover = input; self } - /// Consumes the builder and constructs a [`RebootDBInstanceInput`](crate::input::RebootDBInstanceInput) + /// Consumes the builder and constructs a [`RebootDbInstanceInput`](crate::input::RebootDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::RebootDBInstanceInput, + crate::input::RebootDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RebootDBInstanceInput { + Ok(crate::input::RebootDbInstanceInput { db_instance_identifier: self.db_instance_identifier, force_failover: self.force_failover, }) @@ -25357,7 +25469,7 @@ pub mod reboot_db_instance_input { pub type RebootDBInstanceInputOperationOutputAlias = crate::operation::RebootDBInstance; #[doc(hidden)] pub type RebootDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RebootDBInstanceInput { +impl RebootDbInstanceInput { /// Consumes the builder and constructs an Operation<[`RebootDBInstance`](crate::operation::RebootDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -25416,8 +25528,9 @@ impl RebootDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25425,7 +25538,7 @@ impl RebootDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25445,15 +25558,15 @@ impl RebootDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RebootDBInstanceInput`](crate::input::RebootDBInstanceInput) + /// Creates a new builder-style object to manufacture [`RebootDbInstanceInput`](crate::input::RebootDbInstanceInput) pub fn builder() -> crate::input::reboot_db_instance_input::Builder { crate::input::reboot_db_instance_input::Builder::default() } } -/// See [`RegisterDBProxyTargetsInput`](crate::input::RegisterDBProxyTargetsInput) +/// See [`RegisterDbProxyTargetsInput`](crate::input::RegisterDbProxyTargetsInput) pub mod register_db_proxy_targets_input { - /// A builder for [`RegisterDBProxyTargetsInput`](crate::input::RegisterDBProxyTargetsInput) + /// A builder for [`RegisterDbProxyTargetsInput`](crate::input::RegisterDbProxyTargetsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25513,14 +25626,14 @@ pub mod register_db_proxy_targets_input { self.db_cluster_identifiers = input; self } - /// Consumes the builder and constructs a [`RegisterDBProxyTargetsInput`](crate::input::RegisterDBProxyTargetsInput) + /// Consumes the builder and constructs a [`RegisterDbProxyTargetsInput`](crate::input::RegisterDbProxyTargetsInput) pub fn build( self, ) -> std::result::Result< - crate::input::RegisterDBProxyTargetsInput, + crate::input::RegisterDbProxyTargetsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RegisterDBProxyTargetsInput { + Ok(crate::input::RegisterDbProxyTargetsInput { db_proxy_name: self.db_proxy_name, target_group_name: self.target_group_name, db_instance_identifiers: self.db_instance_identifiers, @@ -25533,7 +25646,7 @@ pub mod register_db_proxy_targets_input { pub type RegisterDBProxyTargetsInputOperationOutputAlias = crate::operation::RegisterDBProxyTargets; #[doc(hidden)] pub type RegisterDBProxyTargetsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RegisterDBProxyTargetsInput { +impl RegisterDbProxyTargetsInput { /// Consumes the builder and constructs an Operation<[`RegisterDBProxyTargets`](crate::operation::RegisterDBProxyTargets)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -25592,8 +25705,9 @@ impl RegisterDBProxyTargetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25601,7 +25715,7 @@ impl RegisterDBProxyTargetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25621,7 +25735,7 @@ impl RegisterDBProxyTargetsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RegisterDBProxyTargetsInput`](crate::input::RegisterDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`RegisterDbProxyTargetsInput`](crate::input::RegisterDbProxyTargetsInput) pub fn builder() -> crate::input::register_db_proxy_targets_input::Builder { crate::input::register_db_proxy_targets_input::Builder::default() } @@ -25743,8 +25857,9 @@ impl RemoveFromGlobalClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25752,7 +25867,7 @@ impl RemoveFromGlobalClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25778,9 +25893,9 @@ impl RemoveFromGlobalClusterInput { } } -/// See [`RemoveRoleFromDBClusterInput`](crate::input::RemoveRoleFromDBClusterInput) +/// See [`RemoveRoleFromDbClusterInput`](crate::input::RemoveRoleFromDbClusterInput) pub mod remove_role_from_db_cluster_input { - /// A builder for [`RemoveRoleFromDBClusterInput`](crate::input::RemoveRoleFromDBClusterInput) + /// A builder for [`RemoveRoleFromDbClusterInput`](crate::input::RemoveRoleFromDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25821,14 +25936,14 @@ pub mod remove_role_from_db_cluster_input { self.feature_name = input; self } - /// Consumes the builder and constructs a [`RemoveRoleFromDBClusterInput`](crate::input::RemoveRoleFromDBClusterInput) + /// Consumes the builder and constructs a [`RemoveRoleFromDbClusterInput`](crate::input::RemoveRoleFromDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::RemoveRoleFromDBClusterInput, + crate::input::RemoveRoleFromDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RemoveRoleFromDBClusterInput { + Ok(crate::input::RemoveRoleFromDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, role_arn: self.role_arn, feature_name: self.feature_name, @@ -25841,7 +25956,7 @@ pub type RemoveRoleFromDBClusterInputOperationOutputAlias = crate::operation::RemoveRoleFromDBCluster; #[doc(hidden)] pub type RemoveRoleFromDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RemoveRoleFromDBClusterInput { +impl RemoveRoleFromDbClusterInput { /// Consumes the builder and constructs an Operation<[`RemoveRoleFromDBCluster`](crate::operation::RemoveRoleFromDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -25900,8 +26015,9 @@ impl RemoveRoleFromDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -25909,7 +26025,7 @@ impl RemoveRoleFromDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -25929,15 +26045,15 @@ impl RemoveRoleFromDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBClusterInput`](crate::input::RemoveRoleFromDBClusterInput) + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbClusterInput`](crate::input::RemoveRoleFromDbClusterInput) pub fn builder() -> crate::input::remove_role_from_db_cluster_input::Builder { crate::input::remove_role_from_db_cluster_input::Builder::default() } } -/// See [`RemoveRoleFromDBInstanceInput`](crate::input::RemoveRoleFromDBInstanceInput) +/// See [`RemoveRoleFromDbInstanceInput`](crate::input::RemoveRoleFromDbInstanceInput) pub mod remove_role_from_db_instance_input { - /// A builder for [`RemoveRoleFromDBInstanceInput`](crate::input::RemoveRoleFromDBInstanceInput) + /// A builder for [`RemoveRoleFromDbInstanceInput`](crate::input::RemoveRoleFromDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -25979,14 +26095,14 @@ pub mod remove_role_from_db_instance_input { self.feature_name = input; self } - /// Consumes the builder and constructs a [`RemoveRoleFromDBInstanceInput`](crate::input::RemoveRoleFromDBInstanceInput) + /// Consumes the builder and constructs a [`RemoveRoleFromDbInstanceInput`](crate::input::RemoveRoleFromDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::RemoveRoleFromDBInstanceInput, + crate::input::RemoveRoleFromDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RemoveRoleFromDBInstanceInput { + Ok(crate::input::RemoveRoleFromDbInstanceInput { db_instance_identifier: self.db_instance_identifier, role_arn: self.role_arn, feature_name: self.feature_name, @@ -25999,7 +26115,7 @@ pub type RemoveRoleFromDBInstanceInputOperationOutputAlias = crate::operation::RemoveRoleFromDBInstance; #[doc(hidden)] pub type RemoveRoleFromDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RemoveRoleFromDBInstanceInput { +impl RemoveRoleFromDbInstanceInput { /// Consumes the builder and constructs an Operation<[`RemoveRoleFromDBInstance`](crate::operation::RemoveRoleFromDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -26059,8 +26175,9 @@ impl RemoveRoleFromDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26068,7 +26185,7 @@ impl RemoveRoleFromDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26088,7 +26205,7 @@ impl RemoveRoleFromDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBInstanceInput`](crate::input::RemoveRoleFromDBInstanceInput) + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbInstanceInput`](crate::input::RemoveRoleFromDbInstanceInput) pub fn builder() -> crate::input::remove_role_from_db_instance_input::Builder { crate::input::remove_role_from_db_instance_input::Builder::default() } @@ -26209,8 +26326,9 @@ impl RemoveSourceIdentifierFromSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26218,7 +26336,7 @@ impl RemoveSourceIdentifierFromSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26360,8 +26478,9 @@ impl RemoveTagsFromResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26369,7 +26488,7 @@ impl RemoveTagsFromResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26395,9 +26514,9 @@ impl RemoveTagsFromResourceInput { } } -/// See [`ResetDBClusterParameterGroupInput`](crate::input::ResetDBClusterParameterGroupInput) +/// See [`ResetDbClusterParameterGroupInput`](crate::input::ResetDbClusterParameterGroupInput) pub mod reset_db_cluster_parameter_group_input { - /// A builder for [`ResetDBClusterParameterGroupInput`](crate::input::ResetDBClusterParameterGroupInput) + /// A builder for [`ResetDbClusterParameterGroupInput`](crate::input::ResetDbClusterParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -26445,14 +26564,14 @@ pub mod reset_db_cluster_parameter_group_input { self.parameters = input; self } - /// Consumes the builder and constructs a [`ResetDBClusterParameterGroupInput`](crate::input::ResetDBClusterParameterGroupInput) + /// Consumes the builder and constructs a [`ResetDbClusterParameterGroupInput`](crate::input::ResetDbClusterParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ResetDBClusterParameterGroupInput, + crate::input::ResetDbClusterParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ResetDBClusterParameterGroupInput { + Ok(crate::input::ResetDbClusterParameterGroupInput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, reset_all_parameters: self.reset_all_parameters.unwrap_or_default(), parameters: self.parameters, @@ -26465,7 +26584,7 @@ pub type ResetDBClusterParameterGroupInputOperationOutputAlias = crate::operation::ResetDBClusterParameterGroup; #[doc(hidden)] pub type ResetDBClusterParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ResetDBClusterParameterGroupInput { +impl ResetDbClusterParameterGroupInput { /// Consumes the builder and constructs an Operation<[`ResetDBClusterParameterGroup`](crate::operation::ResetDBClusterParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -26525,8 +26644,9 @@ impl ResetDBClusterParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26534,7 +26654,7 @@ impl ResetDBClusterParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26554,15 +26674,15 @@ impl ResetDBClusterParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ResetDBClusterParameterGroupInput`](crate::input::ResetDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ResetDbClusterParameterGroupInput`](crate::input::ResetDbClusterParameterGroupInput) pub fn builder() -> crate::input::reset_db_cluster_parameter_group_input::Builder { crate::input::reset_db_cluster_parameter_group_input::Builder::default() } } -/// See [`ResetDBParameterGroupInput`](crate::input::ResetDBParameterGroupInput) +/// See [`ResetDbParameterGroupInput`](crate::input::ResetDbParameterGroupInput) pub mod reset_db_parameter_group_input { - /// A builder for [`ResetDBParameterGroupInput`](crate::input::ResetDBParameterGroupInput) + /// A builder for [`ResetDbParameterGroupInput`](crate::input::ResetDbParameterGroupInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -26614,14 +26734,14 @@ pub mod reset_db_parameter_group_input { self.parameters = input; self } - /// Consumes the builder and constructs a [`ResetDBParameterGroupInput`](crate::input::ResetDBParameterGroupInput) + /// Consumes the builder and constructs a [`ResetDbParameterGroupInput`](crate::input::ResetDbParameterGroupInput) pub fn build( self, ) -> std::result::Result< - crate::input::ResetDBParameterGroupInput, + crate::input::ResetDbParameterGroupInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ResetDBParameterGroupInput { + Ok(crate::input::ResetDbParameterGroupInput { db_parameter_group_name: self.db_parameter_group_name, reset_all_parameters: self.reset_all_parameters.unwrap_or_default(), parameters: self.parameters, @@ -26633,7 +26753,7 @@ pub mod reset_db_parameter_group_input { pub type ResetDBParameterGroupInputOperationOutputAlias = crate::operation::ResetDBParameterGroup; #[doc(hidden)] pub type ResetDBParameterGroupInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ResetDBParameterGroupInput { +impl ResetDbParameterGroupInput { /// Consumes the builder and constructs an Operation<[`ResetDBParameterGroup`](crate::operation::ResetDBParameterGroup)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -26692,8 +26812,9 @@ impl ResetDBParameterGroupInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -26701,7 +26822,7 @@ impl ResetDBParameterGroupInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -26721,15 +26842,15 @@ impl ResetDBParameterGroupInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ResetDBParameterGroupInput`](crate::input::ResetDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ResetDbParameterGroupInput`](crate::input::ResetDbParameterGroupInput) pub fn builder() -> crate::input::reset_db_parameter_group_input::Builder { crate::input::reset_db_parameter_group_input::Builder::default() } } -/// See [`RestoreDBClusterFromS3Input`](crate::input::RestoreDBClusterFromS3Input) +/// See [`RestoreDbClusterFromS3Input`](crate::input::RestoreDbClusterFromS3Input) pub mod restore_db_cluster_from_s3_input { - /// A builder for [`RestoreDBClusterFromS3Input`](crate::input::RestoreDBClusterFromS3Input) + /// A builder for [`RestoreDbClusterFromS3Input`](crate::input::RestoreDbClusterFromS3Input) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -27275,14 +27396,14 @@ pub mod restore_db_cluster_from_s3_input { self.domain_iam_role_name = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterFromS3Input`](crate::input::RestoreDBClusterFromS3Input) + /// Consumes the builder and constructs a [`RestoreDbClusterFromS3Input`](crate::input::RestoreDbClusterFromS3Input) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBClusterFromS3Input, + crate::input::RestoreDbClusterFromS3Input, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBClusterFromS3Input { + Ok(crate::input::RestoreDbClusterFromS3Input { availability_zones: self.availability_zones, backup_retention_period: self.backup_retention_period, character_set_name: self.character_set_name, @@ -27322,7 +27443,7 @@ pub mod restore_db_cluster_from_s3_input { pub type RestoreDBClusterFromS3InputOperationOutputAlias = crate::operation::RestoreDBClusterFromS3; #[doc(hidden)] pub type RestoreDBClusterFromS3InputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBClusterFromS3Input { +impl RestoreDbClusterFromS3Input { /// Consumes the builder and constructs an Operation<[`RestoreDBClusterFromS3`](crate::operation::RestoreDBClusterFromS3)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -27381,8 +27502,9 @@ impl RestoreDBClusterFromS3Input { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27390,7 +27512,7 @@ impl RestoreDBClusterFromS3Input { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27410,15 +27532,15 @@ impl RestoreDBClusterFromS3Input { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromS3Input`](crate::input::RestoreDBClusterFromS3Input) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromS3Input`](crate::input::RestoreDbClusterFromS3Input) pub fn builder() -> crate::input::restore_db_cluster_from_s3_input::Builder { crate::input::restore_db_cluster_from_s3_input::Builder::default() } } -/// See [`RestoreDBClusterFromSnapshotInput`](crate::input::RestoreDBClusterFromSnapshotInput) +/// See [`RestoreDbClusterFromSnapshotInput`](crate::input::RestoreDbClusterFromSnapshotInput) pub mod restore_db_cluster_from_snapshot_input { - /// A builder for [`RestoreDBClusterFromSnapshotInput`](crate::input::RestoreDBClusterFromSnapshotInput) + /// A builder for [`RestoreDbClusterFromSnapshotInput`](crate::input::RestoreDbClusterFromSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -27815,14 +27937,14 @@ pub mod restore_db_cluster_from_snapshot_input { self.domain_iam_role_name = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterFromSnapshotInput`](crate::input::RestoreDBClusterFromSnapshotInput) + /// Consumes the builder and constructs a [`RestoreDbClusterFromSnapshotInput`](crate::input::RestoreDbClusterFromSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBClusterFromSnapshotInput, + crate::input::RestoreDbClusterFromSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBClusterFromSnapshotInput { + Ok(crate::input::RestoreDbClusterFromSnapshotInput { availability_zones: self.availability_zones, db_cluster_identifier: self.db_cluster_identifier, snapshot_identifier: self.snapshot_identifier, @@ -27854,7 +27976,7 @@ pub type RestoreDBClusterFromSnapshotInputOperationOutputAlias = crate::operation::RestoreDBClusterFromSnapshot; #[doc(hidden)] pub type RestoreDBClusterFromSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBClusterFromSnapshotInput { +impl RestoreDbClusterFromSnapshotInput { /// Consumes the builder and constructs an Operation<[`RestoreDBClusterFromSnapshot`](crate::operation::RestoreDBClusterFromSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -27914,8 +28036,9 @@ impl RestoreDBClusterFromSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -27923,7 +28046,7 @@ impl RestoreDBClusterFromSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -27943,15 +28066,15 @@ impl RestoreDBClusterFromSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromSnapshotInput`](crate::input::RestoreDBClusterFromSnapshotInput) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromSnapshotInput`](crate::input::RestoreDbClusterFromSnapshotInput) pub fn builder() -> crate::input::restore_db_cluster_from_snapshot_input::Builder { crate::input::restore_db_cluster_from_snapshot_input::Builder::default() } } -/// See [`RestoreDBClusterToPointInTimeInput`](crate::input::RestoreDBClusterToPointInTimeInput) +/// See [`RestoreDbClusterToPointInTimeInput`](crate::input::RestoreDbClusterToPointInTimeInput) pub mod restore_db_cluster_to_point_in_time_input { - /// A builder for [`RestoreDBClusterToPointInTimeInput`](crate::input::RestoreDBClusterToPointInTimeInput) + /// A builder for [`RestoreDbClusterToPointInTimeInput`](crate::input::RestoreDbClusterToPointInTimeInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -28313,14 +28436,14 @@ pub mod restore_db_cluster_to_point_in_time_input { self.domain_iam_role_name = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterToPointInTimeInput`](crate::input::RestoreDBClusterToPointInTimeInput) + /// Consumes the builder and constructs a [`RestoreDbClusterToPointInTimeInput`](crate::input::RestoreDbClusterToPointInTimeInput) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBClusterToPointInTimeInput, + crate::input::RestoreDbClusterToPointInTimeInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBClusterToPointInTimeInput { + Ok(crate::input::RestoreDbClusterToPointInTimeInput { db_cluster_identifier: self.db_cluster_identifier, restore_type: self.restore_type, source_db_cluster_identifier: self.source_db_cluster_identifier, @@ -28349,7 +28472,7 @@ pub type RestoreDBClusterToPointInTimeInputOperationOutputAlias = crate::operation::RestoreDBClusterToPointInTime; #[doc(hidden)] pub type RestoreDBClusterToPointInTimeInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBClusterToPointInTimeInput { +impl RestoreDbClusterToPointInTimeInput { /// Consumes the builder and constructs an Operation<[`RestoreDBClusterToPointInTime`](crate::operation::RestoreDBClusterToPointInTime)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -28411,8 +28534,9 @@ impl RestoreDBClusterToPointInTimeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -28420,7 +28544,7 @@ impl RestoreDBClusterToPointInTimeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -28440,15 +28564,15 @@ impl RestoreDBClusterToPointInTimeInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBClusterToPointInTimeInput`](crate::input::RestoreDBClusterToPointInTimeInput) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterToPointInTimeInput`](crate::input::RestoreDbClusterToPointInTimeInput) pub fn builder() -> crate::input::restore_db_cluster_to_point_in_time_input::Builder { crate::input::restore_db_cluster_to_point_in_time_input::Builder::default() } } -/// See [`RestoreDBInstanceFromDBSnapshotInput`](crate::input::RestoreDBInstanceFromDBSnapshotInput) +/// See [`RestoreDbInstanceFromDbSnapshotInput`](crate::input::RestoreDbInstanceFromDbSnapshotInput) pub mod restore_db_instance_from_db_snapshot_input { - /// A builder for [`RestoreDBInstanceFromDBSnapshotInput`](crate::input::RestoreDBInstanceFromDBSnapshotInput) + /// A builder for [`RestoreDbInstanceFromDbSnapshotInput`](crate::input::RestoreDbInstanceFromDbSnapshotInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -28982,14 +29106,14 @@ pub mod restore_db_instance_from_db_snapshot_input { self.enable_customer_owned_ip = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceFromDBSnapshotInput`](crate::input::RestoreDBInstanceFromDBSnapshotInput) + /// Consumes the builder and constructs a [`RestoreDbInstanceFromDbSnapshotInput`](crate::input::RestoreDbInstanceFromDbSnapshotInput) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBInstanceFromDBSnapshotInput, + crate::input::RestoreDbInstanceFromDbSnapshotInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBInstanceFromDBSnapshotInput { + Ok(crate::input::RestoreDbInstanceFromDbSnapshotInput { db_instance_identifier: self.db_instance_identifier, db_snapshot_identifier: self.db_snapshot_identifier, db_instance_class: self.db_instance_class, @@ -29028,7 +29152,7 @@ pub type RestoreDBInstanceFromDBSnapshotInputOperationOutputAlias = crate::operation::RestoreDBInstanceFromDBSnapshot; #[doc(hidden)] pub type RestoreDBInstanceFromDBSnapshotInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBInstanceFromDBSnapshotInput { +impl RestoreDbInstanceFromDbSnapshotInput { /// Consumes the builder and constructs an Operation<[`RestoreDBInstanceFromDBSnapshot`](crate::operation::RestoreDBInstanceFromDBSnapshot)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -29090,8 +29214,9 @@ impl RestoreDBInstanceFromDBSnapshotInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -29099,7 +29224,7 @@ impl RestoreDBInstanceFromDBSnapshotInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -29119,15 +29244,15 @@ impl RestoreDBInstanceFromDBSnapshotInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromDBSnapshotInput`](crate::input::RestoreDBInstanceFromDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromDbSnapshotInput`](crate::input::RestoreDbInstanceFromDbSnapshotInput) pub fn builder() -> crate::input::restore_db_instance_from_db_snapshot_input::Builder { crate::input::restore_db_instance_from_db_snapshot_input::Builder::default() } } -/// See [`RestoreDBInstanceFromS3Input`](crate::input::RestoreDBInstanceFromS3Input) +/// See [`RestoreDbInstanceFromS3Input`](crate::input::RestoreDbInstanceFromS3Input) pub mod restore_db_instance_from_s3_input { - /// A builder for [`RestoreDBInstanceFromS3Input`](crate::input::RestoreDBInstanceFromS3Input) + /// A builder for [`RestoreDbInstanceFromS3Input`](crate::input::RestoreDbInstanceFromS3Input) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -29880,14 +30005,14 @@ pub mod restore_db_instance_from_s3_input { self.max_allocated_storage = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceFromS3Input`](crate::input::RestoreDBInstanceFromS3Input) + /// Consumes the builder and constructs a [`RestoreDbInstanceFromS3Input`](crate::input::RestoreDbInstanceFromS3Input) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBInstanceFromS3Input, + crate::input::RestoreDbInstanceFromS3Input, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBInstanceFromS3Input { + Ok(crate::input::RestoreDbInstanceFromS3Input { db_name: self.db_name, db_instance_identifier: self.db_instance_identifier, allocated_storage: self.allocated_storage, @@ -29941,7 +30066,7 @@ pub type RestoreDBInstanceFromS3InputOperationOutputAlias = crate::operation::RestoreDBInstanceFromS3; #[doc(hidden)] pub type RestoreDBInstanceFromS3InputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBInstanceFromS3Input { +impl RestoreDbInstanceFromS3Input { /// Consumes the builder and constructs an Operation<[`RestoreDBInstanceFromS3`](crate::operation::RestoreDBInstanceFromS3)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -30000,8 +30125,9 @@ impl RestoreDBInstanceFromS3Input { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30009,7 +30135,7 @@ impl RestoreDBInstanceFromS3Input { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30029,15 +30155,15 @@ impl RestoreDBInstanceFromS3Input { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromS3Input`](crate::input::RestoreDBInstanceFromS3Input) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromS3Input`](crate::input::RestoreDbInstanceFromS3Input) pub fn builder() -> crate::input::restore_db_instance_from_s3_input::Builder { crate::input::restore_db_instance_from_s3_input::Builder::default() } } -/// See [`RestoreDBInstanceToPointInTimeInput`](crate::input::RestoreDBInstanceToPointInTimeInput) +/// See [`RestoreDbInstanceToPointInTimeInput`](crate::input::RestoreDbInstanceToPointInTimeInput) pub mod restore_db_instance_to_point_in_time_input { - /// A builder for [`RestoreDBInstanceToPointInTimeInput`](crate::input::RestoreDBInstanceToPointInTimeInput) + /// A builder for [`RestoreDbInstanceToPointInTimeInput`](crate::input::RestoreDbInstanceToPointInTimeInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -30649,14 +30775,14 @@ pub mod restore_db_instance_to_point_in_time_input { self.enable_customer_owned_ip = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceToPointInTimeInput`](crate::input::RestoreDBInstanceToPointInTimeInput) + /// Consumes the builder and constructs a [`RestoreDbInstanceToPointInTimeInput`](crate::input::RestoreDbInstanceToPointInTimeInput) pub fn build( self, ) -> std::result::Result< - crate::input::RestoreDBInstanceToPointInTimeInput, + crate::input::RestoreDbInstanceToPointInTimeInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RestoreDBInstanceToPointInTimeInput { + Ok(crate::input::RestoreDbInstanceToPointInTimeInput { source_db_instance_identifier: self.source_db_instance_identifier, target_db_instance_identifier: self.target_db_instance_identifier, restore_time: self.restore_time, @@ -30701,7 +30827,7 @@ pub type RestoreDBInstanceToPointInTimeInputOperationOutputAlias = crate::operation::RestoreDBInstanceToPointInTime; #[doc(hidden)] pub type RestoreDBInstanceToPointInTimeInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RestoreDBInstanceToPointInTimeInput { +impl RestoreDbInstanceToPointInTimeInput { /// Consumes the builder and constructs an Operation<[`RestoreDBInstanceToPointInTime`](crate::operation::RestoreDBInstanceToPointInTime)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -30763,8 +30889,9 @@ impl RestoreDBInstanceToPointInTimeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30772,7 +30899,7 @@ impl RestoreDBInstanceToPointInTimeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -30792,15 +30919,15 @@ impl RestoreDBInstanceToPointInTimeInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceToPointInTimeInput`](crate::input::RestoreDBInstanceToPointInTimeInput) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceToPointInTimeInput`](crate::input::RestoreDbInstanceToPointInTimeInput) pub fn builder() -> crate::input::restore_db_instance_to_point_in_time_input::Builder { crate::input::restore_db_instance_to_point_in_time_input::Builder::default() } } -/// See [`RevokeDBSecurityGroupIngressInput`](crate::input::RevokeDBSecurityGroupIngressInput) +/// See [`RevokeDbSecurityGroupIngressInput`](crate::input::RevokeDbSecurityGroupIngressInput) pub mod revoke_db_security_group_ingress_input { - /// A builder for [`RevokeDBSecurityGroupIngressInput`](crate::input::RevokeDBSecurityGroupIngressInput) + /// A builder for [`RevokeDbSecurityGroupIngressInput`](crate::input::RevokeDbSecurityGroupIngressInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -30890,14 +31017,14 @@ pub mod revoke_db_security_group_ingress_input { self.ec2_security_group_owner_id = input; self } - /// Consumes the builder and constructs a [`RevokeDBSecurityGroupIngressInput`](crate::input::RevokeDBSecurityGroupIngressInput) + /// Consumes the builder and constructs a [`RevokeDbSecurityGroupIngressInput`](crate::input::RevokeDbSecurityGroupIngressInput) pub fn build( self, ) -> std::result::Result< - crate::input::RevokeDBSecurityGroupIngressInput, + crate::input::RevokeDbSecurityGroupIngressInput, smithy_http::operation::BuildError, > { - Ok(crate::input::RevokeDBSecurityGroupIngressInput { + Ok(crate::input::RevokeDbSecurityGroupIngressInput { db_security_group_name: self.db_security_group_name, cidrip: self.cidrip, ec2_security_group_name: self.ec2_security_group_name, @@ -30912,7 +31039,7 @@ pub type RevokeDBSecurityGroupIngressInputOperationOutputAlias = crate::operation::RevokeDBSecurityGroupIngress; #[doc(hidden)] pub type RevokeDBSecurityGroupIngressInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl RevokeDBSecurityGroupIngressInput { +impl RevokeDbSecurityGroupIngressInput { /// Consumes the builder and constructs an Operation<[`RevokeDBSecurityGroupIngress`](crate::operation::RevokeDBSecurityGroupIngress)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -30972,8 +31099,9 @@ impl RevokeDBSecurityGroupIngressInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -30981,7 +31109,7 @@ impl RevokeDBSecurityGroupIngressInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31001,7 +31129,7 @@ impl RevokeDBSecurityGroupIngressInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`RevokeDBSecurityGroupIngressInput`](crate::input::RevokeDBSecurityGroupIngressInput) + /// Creates a new builder-style object to manufacture [`RevokeDbSecurityGroupIngressInput`](crate::input::RevokeDbSecurityGroupIngressInput) pub fn builder() -> crate::input::revoke_db_security_group_ingress_input::Builder { crate::input::revoke_db_security_group_ingress_input::Builder::default() } @@ -31143,8 +31271,9 @@ impl StartActivityStreamInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31152,7 +31281,7 @@ impl StartActivityStreamInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31178,9 +31307,9 @@ impl StartActivityStreamInput { } } -/// See [`StartDBClusterInput`](crate::input::StartDBClusterInput) +/// See [`StartDbClusterInput`](crate::input::StartDbClusterInput) pub mod start_db_cluster_input { - /// A builder for [`StartDBClusterInput`](crate::input::StartDBClusterInput) + /// A builder for [`StartDbClusterInput`](crate::input::StartDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -31200,14 +31329,14 @@ pub mod start_db_cluster_input { self.db_cluster_identifier = input; self } - /// Consumes the builder and constructs a [`StartDBClusterInput`](crate::input::StartDBClusterInput) + /// Consumes the builder and constructs a [`StartDbClusterInput`](crate::input::StartDbClusterInput) pub fn build( self, ) -> std::result::Result< - crate::input::StartDBClusterInput, + crate::input::StartDbClusterInput, smithy_http::operation::BuildError, > { - Ok(crate::input::StartDBClusterInput { + Ok(crate::input::StartDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, }) } @@ -31217,7 +31346,7 @@ pub mod start_db_cluster_input { pub type StartDBClusterInputOperationOutputAlias = crate::operation::StartDBCluster; #[doc(hidden)] pub type StartDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StartDBClusterInput { +impl StartDbClusterInput { /// Consumes the builder and constructs an Operation<[`StartDBCluster`](crate::operation::StartDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -31275,8 +31404,9 @@ impl StartDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31284,7 +31414,7 @@ impl StartDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31304,15 +31434,15 @@ impl StartDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StartDBClusterInput`](crate::input::StartDBClusterInput) + /// Creates a new builder-style object to manufacture [`StartDbClusterInput`](crate::input::StartDbClusterInput) pub fn builder() -> crate::input::start_db_cluster_input::Builder { crate::input::start_db_cluster_input::Builder::default() } } -/// See [`StartDBInstanceInput`](crate::input::StartDBInstanceInput) +/// See [`StartDbInstanceInput`](crate::input::StartDbInstanceInput) pub mod start_db_instance_input { - /// A builder for [`StartDBInstanceInput`](crate::input::StartDBInstanceInput) + /// A builder for [`StartDbInstanceInput`](crate::input::StartDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -31333,14 +31463,14 @@ pub mod start_db_instance_input { self.db_instance_identifier = input; self } - /// Consumes the builder and constructs a [`StartDBInstanceInput`](crate::input::StartDBInstanceInput) + /// Consumes the builder and constructs a [`StartDbInstanceInput`](crate::input::StartDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::StartDBInstanceInput, + crate::input::StartDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::StartDBInstanceInput { + Ok(crate::input::StartDbInstanceInput { db_instance_identifier: self.db_instance_identifier, }) } @@ -31350,7 +31480,7 @@ pub mod start_db_instance_input { pub type StartDBInstanceInputOperationOutputAlias = crate::operation::StartDBInstance; #[doc(hidden)] pub type StartDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StartDBInstanceInput { +impl StartDbInstanceInput { /// Consumes the builder and constructs an Operation<[`StartDBInstance`](crate::operation::StartDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -31408,8 +31538,9 @@ impl StartDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31417,7 +31548,7 @@ impl StartDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31437,15 +31568,15 @@ impl StartDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StartDBInstanceInput`](crate::input::StartDBInstanceInput) + /// Creates a new builder-style object to manufacture [`StartDbInstanceInput`](crate::input::StartDbInstanceInput) pub fn builder() -> crate::input::start_db_instance_input::Builder { crate::input::start_db_instance_input::Builder::default() } } -/// See [`StartDBInstanceAutomatedBackupsReplicationInput`](crate::input::StartDBInstanceAutomatedBackupsReplicationInput) +/// See [`StartDbInstanceAutomatedBackupsReplicationInput`](crate::input::StartDbInstanceAutomatedBackupsReplicationInput) pub mod start_db_instance_automated_backups_replication_input { - /// A builder for [`StartDBInstanceAutomatedBackupsReplicationInput`](crate::input::StartDBInstanceAutomatedBackupsReplicationInput) + /// A builder for [`StartDbInstanceAutomatedBackupsReplicationInput`](crate::input::StartDbInstanceAutomatedBackupsReplicationInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -31503,15 +31634,15 @@ pub mod start_db_instance_automated_backups_replication_input { self.pre_signed_url = input; self } - /// Consumes the builder and constructs a [`StartDBInstanceAutomatedBackupsReplicationInput`](crate::input::StartDBInstanceAutomatedBackupsReplicationInput) + /// Consumes the builder and constructs a [`StartDbInstanceAutomatedBackupsReplicationInput`](crate::input::StartDbInstanceAutomatedBackupsReplicationInput) pub fn build( self, ) -> std::result::Result< - crate::input::StartDBInstanceAutomatedBackupsReplicationInput, + crate::input::StartDbInstanceAutomatedBackupsReplicationInput, smithy_http::operation::BuildError, > { Ok( - crate::input::StartDBInstanceAutomatedBackupsReplicationInput { + crate::input::StartDbInstanceAutomatedBackupsReplicationInput { source_db_instance_arn: self.source_db_instance_arn, backup_retention_period: self.backup_retention_period, kms_key_id: self.kms_key_id, @@ -31527,7 +31658,7 @@ pub type StartDBInstanceAutomatedBackupsReplicationInputOperationOutputAlias = #[doc(hidden)] pub type StartDBInstanceAutomatedBackupsReplicationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StartDBInstanceAutomatedBackupsReplicationInput { +impl StartDbInstanceAutomatedBackupsReplicationInput { /// Consumes the builder and constructs an Operation<[`StartDBInstanceAutomatedBackupsReplication`](crate::operation::StartDBInstanceAutomatedBackupsReplication)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -31585,8 +31716,9 @@ impl StartDBInstanceAutomatedBackupsReplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31594,7 +31726,7 @@ impl StartDBInstanceAutomatedBackupsReplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31614,7 +31746,7 @@ impl StartDBInstanceAutomatedBackupsReplicationInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StartDBInstanceAutomatedBackupsReplicationInput`](crate::input::StartDBInstanceAutomatedBackupsReplicationInput) + /// Creates a new builder-style object to manufacture [`StartDbInstanceAutomatedBackupsReplicationInput`](crate::input::StartDbInstanceAutomatedBackupsReplicationInput) pub fn builder() -> crate::input::start_db_instance_automated_backups_replication_input::Builder { crate::input::start_db_instance_automated_backups_replication_input::Builder::default() @@ -31824,8 +31956,9 @@ impl StartExportTaskInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31833,7 +31966,7 @@ impl StartExportTaskInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -31967,8 +32100,9 @@ impl StopActivityStreamInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -31976,7 +32110,7 @@ impl StopActivityStreamInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32002,9 +32136,9 @@ impl StopActivityStreamInput { } } -/// See [`StopDBClusterInput`](crate::input::StopDBClusterInput) +/// See [`StopDbClusterInput`](crate::input::StopDbClusterInput) pub mod stop_db_cluster_input { - /// A builder for [`StopDBClusterInput`](crate::input::StopDBClusterInput) + /// A builder for [`StopDbClusterInput`](crate::input::StopDbClusterInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -32024,12 +32158,12 @@ pub mod stop_db_cluster_input { self.db_cluster_identifier = input; self } - /// Consumes the builder and constructs a [`StopDBClusterInput`](crate::input::StopDBClusterInput) + /// Consumes the builder and constructs a [`StopDbClusterInput`](crate::input::StopDbClusterInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::StopDBClusterInput { + Ok(crate::input::StopDbClusterInput { db_cluster_identifier: self.db_cluster_identifier, }) } @@ -32039,7 +32173,7 @@ pub mod stop_db_cluster_input { pub type StopDBClusterInputOperationOutputAlias = crate::operation::StopDBCluster; #[doc(hidden)] pub type StopDBClusterInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StopDBClusterInput { +impl StopDbClusterInput { /// Consumes the builder and constructs an Operation<[`StopDBCluster`](crate::operation::StopDBCluster)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -32097,8 +32231,9 @@ impl StopDBClusterInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32106,7 +32241,7 @@ impl StopDBClusterInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32126,15 +32261,15 @@ impl StopDBClusterInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StopDBClusterInput`](crate::input::StopDBClusterInput) + /// Creates a new builder-style object to manufacture [`StopDbClusterInput`](crate::input::StopDbClusterInput) pub fn builder() -> crate::input::stop_db_cluster_input::Builder { crate::input::stop_db_cluster_input::Builder::default() } } -/// See [`StopDBInstanceInput`](crate::input::StopDBInstanceInput) +/// See [`StopDbInstanceInput`](crate::input::StopDbInstanceInput) pub mod stop_db_instance_input { - /// A builder for [`StopDBInstanceInput`](crate::input::StopDBInstanceInput) + /// A builder for [`StopDbInstanceInput`](crate::input::StopDbInstanceInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -32170,14 +32305,14 @@ pub mod stop_db_instance_input { self.db_snapshot_identifier = input; self } - /// Consumes the builder and constructs a [`StopDBInstanceInput`](crate::input::StopDBInstanceInput) + /// Consumes the builder and constructs a [`StopDbInstanceInput`](crate::input::StopDbInstanceInput) pub fn build( self, ) -> std::result::Result< - crate::input::StopDBInstanceInput, + crate::input::StopDbInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::StopDBInstanceInput { + Ok(crate::input::StopDbInstanceInput { db_instance_identifier: self.db_instance_identifier, db_snapshot_identifier: self.db_snapshot_identifier, }) @@ -32188,7 +32323,7 @@ pub mod stop_db_instance_input { pub type StopDBInstanceInputOperationOutputAlias = crate::operation::StopDBInstance; #[doc(hidden)] pub type StopDBInstanceInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StopDBInstanceInput { +impl StopDbInstanceInput { /// Consumes the builder and constructs an Operation<[`StopDBInstance`](crate::operation::StopDBInstance)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -32246,8 +32381,9 @@ impl StopDBInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32255,7 +32391,7 @@ impl StopDBInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32275,15 +32411,15 @@ impl StopDBInstanceInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StopDBInstanceInput`](crate::input::StopDBInstanceInput) + /// Creates a new builder-style object to manufacture [`StopDbInstanceInput`](crate::input::StopDbInstanceInput) pub fn builder() -> crate::input::stop_db_instance_input::Builder { crate::input::stop_db_instance_input::Builder::default() } } -/// See [`StopDBInstanceAutomatedBackupsReplicationInput`](crate::input::StopDBInstanceAutomatedBackupsReplicationInput) +/// See [`StopDbInstanceAutomatedBackupsReplicationInput`](crate::input::StopDbInstanceAutomatedBackupsReplicationInput) pub mod stop_db_instance_automated_backups_replication_input { - /// A builder for [`StopDBInstanceAutomatedBackupsReplicationInput`](crate::input::StopDBInstanceAutomatedBackupsReplicationInput) + /// A builder for [`StopDbInstanceAutomatedBackupsReplicationInput`](crate::input::StopDbInstanceAutomatedBackupsReplicationInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -32303,15 +32439,15 @@ pub mod stop_db_instance_automated_backups_replication_input { self.source_db_instance_arn = input; self } - /// Consumes the builder and constructs a [`StopDBInstanceAutomatedBackupsReplicationInput`](crate::input::StopDBInstanceAutomatedBackupsReplicationInput) + /// Consumes the builder and constructs a [`StopDbInstanceAutomatedBackupsReplicationInput`](crate::input::StopDbInstanceAutomatedBackupsReplicationInput) pub fn build( self, ) -> std::result::Result< - crate::input::StopDBInstanceAutomatedBackupsReplicationInput, + crate::input::StopDbInstanceAutomatedBackupsReplicationInput, smithy_http::operation::BuildError, > { Ok( - crate::input::StopDBInstanceAutomatedBackupsReplicationInput { + crate::input::StopDbInstanceAutomatedBackupsReplicationInput { source_db_instance_arn: self.source_db_instance_arn, }, ) @@ -32324,7 +32460,7 @@ pub type StopDBInstanceAutomatedBackupsReplicationInputOperationOutputAlias = #[doc(hidden)] pub type StopDBInstanceAutomatedBackupsReplicationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StopDBInstanceAutomatedBackupsReplicationInput { +impl StopDbInstanceAutomatedBackupsReplicationInput { /// Consumes the builder and constructs an Operation<[`StopDBInstanceAutomatedBackupsReplication`](crate::operation::StopDBInstanceAutomatedBackupsReplication)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -32382,8 +32518,9 @@ impl StopDBInstanceAutomatedBackupsReplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -32391,7 +32528,7 @@ impl StopDBInstanceAutomatedBackupsReplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -32411,7 +32548,7 @@ impl StopDBInstanceAutomatedBackupsReplicationInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StopDBInstanceAutomatedBackupsReplicationInput`](crate::input::StopDBInstanceAutomatedBackupsReplicationInput) + /// Creates a new builder-style object to manufacture [`StopDbInstanceAutomatedBackupsReplicationInput`](crate::input::StopDbInstanceAutomatedBackupsReplicationInput) pub fn builder() -> crate::input::stop_db_instance_automated_backups_replication_input::Builder { crate::input::stop_db_instance_automated_backups_replication_input::Builder::default() @@ -32420,14 +32557,14 @@ impl StopDBInstanceAutomatedBackupsReplicationInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBInstanceAutomatedBackupsReplicationInput { +pub struct StopDbInstanceAutomatedBackupsReplicationInput { ///

    The Amazon Resource Name (ARN) of the source DB instance for which to stop replicating automated backups, for example, /// arn:aws:rds:us-west-2:123456789012:db:mydatabase.

    pub source_db_instance_arn: std::option::Option, } -impl std::fmt::Debug for StopDBInstanceAutomatedBackupsReplicationInput { +impl std::fmt::Debug for StopDbInstanceAutomatedBackupsReplicationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBInstanceAutomatedBackupsReplicationInput"); + let mut formatter = f.debug_struct("StopDbInstanceAutomatedBackupsReplicationInput"); formatter.field("source_db_instance_arn", &self.source_db_instance_arn); formatter.finish() } @@ -32435,7 +32572,7 @@ impl std::fmt::Debug for StopDBInstanceAutomatedBackupsReplicationInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBInstanceInput { +pub struct StopDbInstanceInput { ///

    /// The user-supplied instance identifier. ///

    @@ -32445,9 +32582,9 @@ pub struct StopDBInstanceInput { ///

    pub db_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for StopDBInstanceInput { +impl std::fmt::Debug for StopDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBInstanceInput"); + let mut formatter = f.debug_struct("StopDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.finish() @@ -32456,14 +32593,14 @@ impl std::fmt::Debug for StopDBInstanceInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBClusterInput { +pub struct StopDbClusterInput { ///

    The DB cluster identifier of the Amazon Aurora DB cluster to be stopped. This parameter is stored as /// a lowercase string.

    pub db_cluster_identifier: std::option::Option, } -impl std::fmt::Debug for StopDBClusterInput { +impl std::fmt::Debug for StopDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBClusterInput"); + let mut formatter = f.debug_struct("StopDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.finish() } @@ -32583,7 +32720,7 @@ impl std::fmt::Debug for StartExportTaskInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBInstanceAutomatedBackupsReplicationInput { +pub struct StartDbInstanceAutomatedBackupsReplicationInput { ///

    The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example, /// arn:aws:rds:us-west-2:123456789012:db:mydatabase.

    pub source_db_instance_arn: std::option::Option, @@ -32599,9 +32736,9 @@ pub struct StartDBInstanceAutomatedBackupsReplicationInput { /// the source DB instance.

    pub pre_signed_url: std::option::Option, } -impl std::fmt::Debug for StartDBInstanceAutomatedBackupsReplicationInput { +impl std::fmt::Debug for StartDbInstanceAutomatedBackupsReplicationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBInstanceAutomatedBackupsReplicationInput"); + let mut formatter = f.debug_struct("StartDbInstanceAutomatedBackupsReplicationInput"); formatter.field("source_db_instance_arn", &self.source_db_instance_arn); formatter.field("backup_retention_period", &self.backup_retention_period); formatter.field("kms_key_id", &self.kms_key_id); @@ -32612,15 +32749,15 @@ impl std::fmt::Debug for StartDBInstanceAutomatedBackupsReplicationInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBInstanceInput { +pub struct StartDbInstanceInput { ///

    /// The user-supplied instance identifier. ///

    pub db_instance_identifier: std::option::Option, } -impl std::fmt::Debug for StartDBInstanceInput { +impl std::fmt::Debug for StartDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBInstanceInput"); + let mut formatter = f.debug_struct("StartDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.finish() } @@ -32628,14 +32765,14 @@ impl std::fmt::Debug for StartDBInstanceInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBClusterInput { +pub struct StartDbClusterInput { ///

    The DB cluster identifier of the Amazon Aurora DB cluster to be started. This parameter is stored as /// a lowercase string.

    pub db_cluster_identifier: std::option::Option, } -impl std::fmt::Debug for StartDBClusterInput { +impl std::fmt::Debug for StartDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBClusterInput"); + let mut formatter = f.debug_struct("StartDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.finish() } @@ -32673,7 +32810,7 @@ impl std::fmt::Debug for StartActivityStreamInput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RevokeDBSecurityGroupIngressInput { +pub struct RevokeDbSecurityGroupIngressInput { ///

    The name of the DB security group to revoke ingress from.

    pub db_security_group_name: std::option::Option, ///

    @@ -32704,9 +32841,9 @@ pub struct RevokeDBSecurityGroupIngressInput { ///

    pub ec2_security_group_owner_id: std::option::Option, } -impl std::fmt::Debug for RevokeDBSecurityGroupIngressInput { +impl std::fmt::Debug for RevokeDbSecurityGroupIngressInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RevokeDBSecurityGroupIngressInput"); + let mut formatter = f.debug_struct("RevokeDbSecurityGroupIngressInput"); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.field("cidrip", &self.cidrip); formatter.field("ec2_security_group_name", &self.ec2_security_group_name); @@ -32722,7 +32859,7 @@ impl std::fmt::Debug for RevokeDBSecurityGroupIngressInput { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceToPointInTimeInput { +pub struct RestoreDbInstanceToPointInTimeInput { ///

    The identifier of the source DB instance from which to restore.

    ///

    Constraints:

    ///
      @@ -32985,9 +33122,9 @@ pub struct RestoreDBInstanceToPointInTimeInput { /// in the AWS Outposts User Guide.

      pub enable_customer_owned_ip: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceToPointInTimeInput { +impl std::fmt::Debug for RestoreDbInstanceToPointInTimeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceToPointInTimeInput"); + let mut formatter = f.debug_struct("RestoreDbInstanceToPointInTimeInput"); formatter.field( "source_db_instance_identifier", &self.source_db_instance_identifier, @@ -33052,7 +33189,7 @@ impl std::fmt::Debug for RestoreDBInstanceToPointInTimeInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceFromS3Input { +pub struct RestoreDbInstanceFromS3Input { ///

      The name of the database to create when the DB instance is created. /// Follow the naming rules specified in CreateDBInstance. ///

      @@ -33358,9 +33495,9 @@ pub struct RestoreDBInstanceFromS3Input { /// in the Amazon RDS User Guide.

      pub max_allocated_storage: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceFromS3Input { +impl std::fmt::Debug for RestoreDbInstanceFromS3Input { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceFromS3Input"); + let mut formatter = f.debug_struct("RestoreDbInstanceFromS3Input"); formatter.field("db_name", &self.db_name); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("allocated_storage", &self.allocated_storage); @@ -33436,7 +33573,7 @@ impl std::fmt::Debug for RestoreDBInstanceFromS3Input { ///

      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceFromDBSnapshotInput { +pub struct RestoreDbInstanceFromDbSnapshotInput { ///

      Name of the DB instance to create from the DB snapshot. This parameter isn't case-sensitive.

      ///

      Constraints:

      ///
        @@ -33680,9 +33817,9 @@ pub struct RestoreDBInstanceFromDBSnapshotInput { /// in the AWS Outposts User Guide.

        pub enable_customer_owned_ip: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceFromDBSnapshotInput { +impl std::fmt::Debug for RestoreDbInstanceFromDbSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceFromDBSnapshotInput"); + let mut formatter = f.debug_struct("RestoreDbInstanceFromDbSnapshotInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("db_instance_class", &self.db_instance_class); @@ -33731,7 +33868,7 @@ impl std::fmt::Debug for RestoreDBInstanceFromDBSnapshotInput { ///

        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterToPointInTimeInput { +pub struct RestoreDbClusterToPointInTimeInput { ///

        The name of the new DB cluster to be created.

        ///

        Constraints:

        ///
          @@ -33895,9 +34032,9 @@ pub struct RestoreDBClusterToPointInTimeInput { ///

          Specify the name of the IAM role to be used when making API calls to the Directory Service.

          pub domain_iam_role_name: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterToPointInTimeInput { +impl std::fmt::Debug for RestoreDbClusterToPointInTimeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterToPointInTimeInput"); + let mut formatter = f.debug_struct("RestoreDbClusterToPointInTimeInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("restore_type", &self.restore_type); formatter.field( @@ -33939,7 +34076,7 @@ impl std::fmt::Debug for RestoreDBClusterToPointInTimeInput { ///

          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterFromSnapshotInput { +pub struct RestoreDbClusterFromSnapshotInput { ///

          Provides the list of Availability Zones (AZs) where instances in the restored DB /// cluster can be created.

          pub availability_zones: std::option::Option>, @@ -34107,9 +34244,9 @@ pub struct RestoreDBClusterFromSnapshotInput { ///

          Specify the name of the IAM role to be used when making API calls to the Directory Service.

          pub domain_iam_role_name: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterFromSnapshotInput { +impl std::fmt::Debug for RestoreDbClusterFromSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterFromSnapshotInput"); + let mut formatter = f.debug_struct("RestoreDbClusterFromSnapshotInput"); formatter.field("availability_zones", &self.availability_zones); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("snapshot_identifier", &self.snapshot_identifier); @@ -34147,7 +34284,7 @@ impl std::fmt::Debug for RestoreDBClusterFromSnapshotInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterFromS3Input { +pub struct RestoreDbClusterFromS3Input { ///

          A list of Availability Zones (AZs) where instances in the restored DB cluster can be created.

          pub availability_zones: std::option::Option>, ///

          The number of days for which automated backups of the restored DB cluster are retained. You must specify a minimum value of 1.

          @@ -34368,9 +34505,9 @@ pub struct RestoreDBClusterFromS3Input { ///

          Specify the name of the IAM role to be used when making API calls to the Directory Service.

          pub domain_iam_role_name: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterFromS3Input { +impl std::fmt::Debug for RestoreDbClusterFromS3Input { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterFromS3Input"); + let mut formatter = f.debug_struct("RestoreDbClusterFromS3Input"); formatter.field("availability_zones", &self.availability_zones); formatter.field("backup_retention_period", &self.backup_retention_period); formatter.field("character_set_name", &self.character_set_name); @@ -34421,7 +34558,7 @@ impl std::fmt::Debug for RestoreDBClusterFromS3Input { ///

          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetDBParameterGroupInput { +pub struct ResetDbParameterGroupInput { ///

          The name of the DB parameter group.

          ///

          Constraints:

          ///
            @@ -34463,9 +34600,9 @@ pub struct ResetDBParameterGroupInput { ///

            pub parameters: std::option::Option>, } -impl std::fmt::Debug for ResetDBParameterGroupInput { +impl std::fmt::Debug for ResetDbParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetDBParameterGroupInput"); + let mut formatter = f.debug_struct("ResetDbParameterGroupInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("reset_all_parameters", &self.reset_all_parameters); formatter.field("parameters", &self.parameters); @@ -34476,7 +34613,7 @@ impl std::fmt::Debug for ResetDBParameterGroupInput { ///

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetDBClusterParameterGroupInput { +pub struct ResetDbClusterParameterGroupInput { ///

            The name of the DB cluster parameter group to reset.

            pub db_cluster_parameter_group_name: std::option::Option, ///

            A value that indicates whether to reset all parameters in the DB cluster parameter group @@ -34487,9 +34624,9 @@ pub struct ResetDBClusterParameterGroupInput { /// parameter if the ResetAllParameters parameter is enabled.

            pub parameters: std::option::Option>, } -impl std::fmt::Debug for ResetDBClusterParameterGroupInput { +impl std::fmt::Debug for ResetDbClusterParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetDBClusterParameterGroupInput"); + let mut formatter = f.debug_struct("ResetDbClusterParameterGroupInput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -34545,7 +34682,7 @@ impl std::fmt::Debug for RemoveSourceIdentifierFromSubscriptionInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRoleFromDBInstanceInput { +pub struct RemoveRoleFromDbInstanceInput { ///

            The name of the DB instance to disassociate the IAM role from.

            pub db_instance_identifier: std::option::Option, ///

            The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB instance, @@ -34556,9 +34693,9 @@ pub struct RemoveRoleFromDBInstanceInput { ///

            pub feature_name: std::option::Option, } -impl std::fmt::Debug for RemoveRoleFromDBInstanceInput { +impl std::fmt::Debug for RemoveRoleFromDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRoleFromDBInstanceInput"); + let mut formatter = f.debug_struct("RemoveRoleFromDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("role_arn", &self.role_arn); formatter.field("feature_name", &self.feature_name); @@ -34568,7 +34705,7 @@ impl std::fmt::Debug for RemoveRoleFromDBInstanceInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRoleFromDBClusterInput { +pub struct RemoveRoleFromDbClusterInput { ///

            The name of the DB cluster to disassociate the IAM role from.

            pub db_cluster_identifier: std::option::Option, ///

            The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora DB cluster, for example @@ -34578,9 +34715,9 @@ pub struct RemoveRoleFromDBClusterInput { /// For the list of supported feature names, see DBEngineVersion.

            pub feature_name: std::option::Option, } -impl std::fmt::Debug for RemoveRoleFromDBClusterInput { +impl std::fmt::Debug for RemoveRoleFromDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRoleFromDBClusterInput"); + let mut formatter = f.debug_struct("RemoveRoleFromDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("role_arn", &self.role_arn); formatter.field("feature_name", &self.feature_name); @@ -34611,7 +34748,7 @@ impl std::fmt::Debug for RemoveFromGlobalClusterInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterDBProxyTargetsInput { +pub struct RegisterDbProxyTargetsInput { ///

            The identifier of the DBProxy that is associated with the DBProxyTargetGroup.

            pub db_proxy_name: std::option::Option, ///

            The identifier of the DBProxyTargetGroup.

            @@ -34621,9 +34758,9 @@ pub struct RegisterDBProxyTargetsInput { ///

            One or more DB cluster identifiers.

            pub db_cluster_identifiers: std::option::Option>, } -impl std::fmt::Debug for RegisterDBProxyTargetsInput { +impl std::fmt::Debug for RegisterDbProxyTargetsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterDBProxyTargetsInput"); + let mut formatter = f.debug_struct("RegisterDbProxyTargetsInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("target_group_name", &self.target_group_name); formatter.field("db_instance_identifiers", &self.db_instance_identifiers); @@ -34635,7 +34772,7 @@ impl std::fmt::Debug for RegisterDBProxyTargetsInput { ///

            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RebootDBInstanceInput { +pub struct RebootDbInstanceInput { ///

            The DB instance identifier. This parameter is stored as a lowercase string.

            ///

            Constraints:

            ///
              @@ -34650,9 +34787,9 @@ pub struct RebootDBInstanceInput { ///

              Constraint: You can't enable force failover if the instance isn't configured for Multi-AZ.

              pub force_failover: std::option::Option, } -impl std::fmt::Debug for RebootDBInstanceInput { +impl std::fmt::Debug for RebootDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RebootDBInstanceInput"); + let mut formatter = f.debug_struct("RebootDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("force_failover", &self.force_failover); formatter.finish() @@ -34662,7 +34799,7 @@ impl std::fmt::Debug for RebootDBInstanceInput { ///

              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PurchaseReservedDBInstancesOfferingInput { +pub struct PurchaseReservedDbInstancesOfferingInput { ///

              The ID of the Reserved DB instance offering to purchase.

              ///

              Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

              pub reserved_db_instances_offering_id: std::option::Option, @@ -34678,9 +34815,9 @@ pub struct PurchaseReservedDBInstancesOfferingInput { ///

              pub tags: std::option::Option>, } -impl std::fmt::Debug for PurchaseReservedDBInstancesOfferingInput { +impl std::fmt::Debug for PurchaseReservedDbInstancesOfferingInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PurchaseReservedDBInstancesOfferingInput"); + let mut formatter = f.debug_struct("PurchaseReservedDbInstancesOfferingInput"); formatter.field( "reserved_db_instances_offering_id", &self.reserved_db_instances_offering_id, @@ -34695,7 +34832,7 @@ impl std::fmt::Debug for PurchaseReservedDBInstancesOfferingInput { ///

              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PromoteReadReplicaDBClusterInput { +pub struct PromoteReadReplicaDbClusterInput { ///

              The identifier of the DB cluster read replica to promote. This parameter isn't /// case-sensitive.

              ///

              Constraints:

              @@ -34708,9 +34845,9 @@ pub struct PromoteReadReplicaDBClusterInput { ///

              pub db_cluster_identifier: std::option::Option, } -impl std::fmt::Debug for PromoteReadReplicaDBClusterInput { +impl std::fmt::Debug for PromoteReadReplicaDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PromoteReadReplicaDBClusterInput"); + let mut formatter = f.debug_struct("PromoteReadReplicaDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.finish() } @@ -34925,7 +35062,7 @@ impl std::fmt::Debug for ModifyEventSubscriptionInput { ///

              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSubnetGroupInput { +pub struct ModifyDbSubnetGroupInput { ///

              The name for the DB subnet group. This value is stored as a lowercase string. /// You can't modify the default subnet group. ///

              @@ -34938,9 +35075,9 @@ pub struct ModifyDBSubnetGroupInput { ///

              The EC2 subnet IDs for the DB subnet group.

              pub subnet_ids: std::option::Option>, } -impl std::fmt::Debug for ModifyDBSubnetGroupInput { +impl std::fmt::Debug for ModifyDbSubnetGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSubnetGroupInput"); + let mut formatter = f.debug_struct("ModifyDbSubnetGroupInput"); formatter.field("db_subnet_group_name", &self.db_subnet_group_name); formatter.field( "db_subnet_group_description", @@ -34954,7 +35091,7 @@ impl std::fmt::Debug for ModifyDBSubnetGroupInput { ///

              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSnapshotAttributeInput { +pub struct ModifyDbSnapshotAttributeInput { ///

              The identifier for the DB snapshot to modify the attributes for.

              pub db_snapshot_identifier: std::option::Option, ///

              The name of the DB snapshot attribute to modify.

              @@ -34981,9 +35118,9 @@ pub struct ModifyDBSnapshotAttributeInput { /// can still copy or restore the manual DB snapshot.

              pub values_to_remove: std::option::Option>, } -impl std::fmt::Debug for ModifyDBSnapshotAttributeInput { +impl std::fmt::Debug for ModifyDbSnapshotAttributeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSnapshotAttributeInput"); + let mut formatter = f.debug_struct("ModifyDbSnapshotAttributeInput"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("attribute_name", &self.attribute_name); formatter.field("values_to_add", &self.values_to_add); @@ -34994,7 +35131,7 @@ impl std::fmt::Debug for ModifyDBSnapshotAttributeInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSnapshotInput { +pub struct ModifyDbSnapshotInput { ///

              The identifier of the DB snapshot to modify.

              pub db_snapshot_identifier: std::option::Option, ///

              The engine version to upgrade the DB snapshot to. @@ -35044,9 +35181,9 @@ pub struct ModifyDBSnapshotInput { ///

              pub option_group_name: std::option::Option, } -impl std::fmt::Debug for ModifyDBSnapshotInput { +impl std::fmt::Debug for ModifyDbSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSnapshotInput"); + let mut formatter = f.debug_struct("ModifyDbSnapshotInput"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("engine_version", &self.engine_version); formatter.field("option_group_name", &self.option_group_name); @@ -35056,7 +35193,7 @@ impl std::fmt::Debug for ModifyDBSnapshotInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyTargetGroupInput { +pub struct ModifyDbProxyTargetGroupInput { ///

              The name of the new target group to assign to the proxy.

              pub target_group_name: std::option::Option, ///

              The name of the new proxy to which to assign the target group.

              @@ -35066,9 +35203,9 @@ pub struct ModifyDBProxyTargetGroupInput { ///

              The new name for the modified DBProxyTarget. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.

              pub new_name: std::option::Option, } -impl std::fmt::Debug for ModifyDBProxyTargetGroupInput { +impl std::fmt::Debug for ModifyDbProxyTargetGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyTargetGroupInput"); + let mut formatter = f.debug_struct("ModifyDbProxyTargetGroupInput"); formatter.field("target_group_name", &self.target_group_name); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("connection_pool_config", &self.connection_pool_config); @@ -35079,7 +35216,7 @@ impl std::fmt::Debug for ModifyDBProxyTargetGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyEndpointInput { +pub struct ModifyDbProxyEndpointInput { ///

              The name of the DB proxy sociated with the DB proxy endpoint that you want to modify.

              pub db_proxy_endpoint_name: std::option::Option, ///

              The new identifier for the DBProxyEndpoint. An identifier must @@ -35091,9 +35228,9 @@ pub struct ModifyDBProxyEndpointInput { /// set of security group IDs than for the original proxy.

              pub vpc_security_group_ids: std::option::Option>, } -impl std::fmt::Debug for ModifyDBProxyEndpointInput { +impl std::fmt::Debug for ModifyDbProxyEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyEndpointInput"); + let mut formatter = f.debug_struct("ModifyDbProxyEndpointInput"); formatter.field("db_proxy_endpoint_name", &self.db_proxy_endpoint_name); formatter.field( "new_db_proxy_endpoint_name", @@ -35106,7 +35243,7 @@ impl std::fmt::Debug for ModifyDBProxyEndpointInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyInput { +pub struct ModifyDbProxyInput { ///

              The identifier for the DBProxy to modify.

              pub db_proxy_name: std::option::Option, ///

              The new identifier for the DBProxy. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.

              @@ -35132,9 +35269,9 @@ pub struct ModifyDBProxyInput { ///

              The new list of security groups for the DBProxy.

              pub security_groups: std::option::Option>, } -impl std::fmt::Debug for ModifyDBProxyInput { +impl std::fmt::Debug for ModifyDbProxyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyInput"); + let mut formatter = f.debug_struct("ModifyDbProxyInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("new_db_proxy_name", &self.new_db_proxy_name); formatter.field("auth", &self.auth); @@ -35150,7 +35287,7 @@ impl std::fmt::Debug for ModifyDBProxyInput { ///

              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBParameterGroupInput { +pub struct ModifyDbParameterGroupInput { ///

              The name of the DB parameter group.

              ///

              Constraints:

              ///
                @@ -35173,9 +35310,9 @@ pub struct ModifyDBParameterGroupInput { /// pub parameters: std::option::Option>, } -impl std::fmt::Debug for ModifyDBParameterGroupInput { +impl std::fmt::Debug for ModifyDbParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBParameterGroupInput"); + let mut formatter = f.debug_struct("ModifyDbParameterGroupInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("parameters", &self.parameters); formatter.finish() @@ -35185,7 +35322,7 @@ impl std::fmt::Debug for ModifyDBParameterGroupInput { ///

                #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBInstanceInput { +pub struct ModifyDbInstanceInput { ///

                The DB instance identifier. This value is stored as a lowercase string.

                ///

                Constraints:

                ///
                  @@ -35720,9 +35857,9 @@ pub struct ModifyDBInstanceInput { ///

                  The Amazon Resource Name (ARN) of the recovery point in AWS Backup.

                  pub aws_backup_recovery_point_arn: std::option::Option, } -impl std::fmt::Debug for ModifyDBInstanceInput { +impl std::fmt::Debug for ModifyDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBInstanceInput"); + let mut formatter = f.debug_struct("ModifyDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("allocated_storage", &self.allocated_storage); formatter.field("db_instance_class", &self.db_instance_class); @@ -35811,7 +35948,7 @@ impl std::fmt::Debug for ModifyDBInstanceInput { ///

                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterSnapshotAttributeInput { +pub struct ModifyDbClusterSnapshotAttributeInput { ///

                  The identifier for the DB cluster snapshot to modify the attributes for.

                  pub db_cluster_snapshot_identifier: std::option::Option, ///

                  The name of the DB cluster snapshot attribute to modify.

                  @@ -35838,9 +35975,9 @@ pub struct ModifyDBClusterSnapshotAttributeInput { /// can still copy or restore a manual DB cluster snapshot.

                  pub values_to_remove: std::option::Option>, } -impl std::fmt::Debug for ModifyDBClusterSnapshotAttributeInput { +impl std::fmt::Debug for ModifyDbClusterSnapshotAttributeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterSnapshotAttributeInput"); + let mut formatter = f.debug_struct("ModifyDbClusterSnapshotAttributeInput"); formatter.field( "db_cluster_snapshot_identifier", &self.db_cluster_snapshot_identifier, @@ -35855,7 +35992,7 @@ impl std::fmt::Debug for ModifyDBClusterSnapshotAttributeInput { ///

                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterParameterGroupInput { +pub struct ModifyDbClusterParameterGroupInput { ///

                  The name of the DB cluster parameter group to modify.

                  pub db_cluster_parameter_group_name: std::option::Option, ///

                  A list of parameters in the DB cluster parameter group to modify.

                  @@ -35871,9 +36008,9 @@ pub struct ModifyDBClusterParameterGroupInput { /// pub parameters: std::option::Option>, } -impl std::fmt::Debug for ModifyDBClusterParameterGroupInput { +impl std::fmt::Debug for ModifyDbClusterParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterParameterGroupInput"); + let mut formatter = f.debug_struct("ModifyDbClusterParameterGroupInput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -35885,7 +36022,7 @@ impl std::fmt::Debug for ModifyDBClusterParameterGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterEndpointInput { +pub struct ModifyDbClusterEndpointInput { ///

                  The identifier of the endpoint to modify. This parameter is stored as a lowercase string.

                  pub db_cluster_endpoint_identifier: std::option::Option, ///

                  The type of the endpoint. One of: READER, WRITER, ANY.

                  @@ -35897,9 +36034,9 @@ pub struct ModifyDBClusterEndpointInput { /// Only relevant if the list of static members is empty.

                  pub excluded_members: std::option::Option>, } -impl std::fmt::Debug for ModifyDBClusterEndpointInput { +impl std::fmt::Debug for ModifyDbClusterEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterEndpointInput"); + let mut formatter = f.debug_struct("ModifyDbClusterEndpointInput"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -35914,7 +36051,7 @@ impl std::fmt::Debug for ModifyDBClusterEndpointInput { ///

                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterInput { +pub struct ModifyDbClusterInput { ///

                  The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.

                  ///

                  Constraints: This identifier must match the identifier of an existing DB /// cluster.

                  @@ -36116,9 +36253,9 @@ pub struct ModifyDBClusterInput { ///

                  pub enable_global_write_forwarding: std::option::Option, } -impl std::fmt::Debug for ModifyDBClusterInput { +impl std::fmt::Debug for ModifyDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterInput"); + let mut formatter = f.debug_struct("ModifyDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("new_db_cluster_identifier", &self.new_db_cluster_identifier); formatter.field("apply_immediately", &self.apply_immediately); @@ -36170,7 +36307,7 @@ impl std::fmt::Debug for ModifyDBClusterInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyCurrentDBClusterCapacityInput { +pub struct ModifyCurrentDbClusterCapacityInput { ///

                  The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.

                  ///

                  Constraints:

                  ///
                    @@ -36207,9 +36344,9 @@ pub struct ModifyCurrentDBClusterCapacityInput { /// RollbackCapacityChange ignores the capacity change if a scaling point isn't found in the timeout period.

                    pub timeout_action: std::option::Option, } -impl std::fmt::Debug for ModifyCurrentDBClusterCapacityInput { +impl std::fmt::Debug for ModifyCurrentDbClusterCapacityInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyCurrentDBClusterCapacityInput"); + let mut formatter = f.debug_struct("ModifyCurrentDbClusterCapacityInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("capacity", &self.capacity); formatter.field("seconds_before_timeout", &self.seconds_before_timeout); @@ -36373,7 +36510,7 @@ impl std::fmt::Debug for FailoverGlobalClusterInput { ///

                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct FailoverDBClusterInput { +pub struct FailoverDbClusterInput { ///

                    A DB cluster identifier to force a failover for. This parameter isn't case-sensitive.

                    ///

                    Constraints:

                    ///
                      @@ -36387,9 +36524,9 @@ pub struct FailoverDBClusterInput { /// For example, mydbcluster-replica1.

                      pub target_db_instance_identifier: std::option::Option, } -impl std::fmt::Debug for FailoverDBClusterInput { +impl std::fmt::Debug for FailoverDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FailoverDBClusterInput"); + let mut formatter = f.debug_struct("FailoverDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field( "target_db_instance_identifier", @@ -36402,7 +36539,7 @@ impl std::fmt::Debug for FailoverDBClusterInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DownloadDBLogFilePortionInput { +pub struct DownloadDbLogFilePortionInput { ///

                      The customer-assigned name of the DB instance that contains the log files you want to list.

                      ///

                      Constraints:

                      ///
                        @@ -36442,9 +36579,9 @@ pub struct DownloadDBLogFilePortionInput { ///
                      pub number_of_lines: i32, } -impl std::fmt::Debug for DownloadDBLogFilePortionInput { +impl std::fmt::Debug for DownloadDbLogFilePortionInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DownloadDBLogFilePortionInput"); + let mut formatter = f.debug_struct("DownloadDbLogFilePortionInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("log_file_name", &self.log_file_name); formatter.field("marker", &self.marker); @@ -36456,14 +36593,14 @@ impl std::fmt::Debug for DownloadDBLogFilePortionInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeValidDBInstanceModificationsInput { +pub struct DescribeValidDbInstanceModificationsInput { ///

                      The customer identifier or the ARN of your DB instance. ///

                      pub db_instance_identifier: std::option::Option, } -impl std::fmt::Debug for DescribeValidDBInstanceModificationsInput { +impl std::fmt::Debug for DescribeValidDbInstanceModificationsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeValidDBInstanceModificationsInput"); + let mut formatter = f.debug_struct("DescribeValidDbInstanceModificationsInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.finish() } @@ -36508,7 +36645,7 @@ impl std::fmt::Debug for DescribeSourceRegionsInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeReservedDBInstancesOfferingsInput { +pub struct DescribeReservedDbInstancesOfferingsInput { ///

                      The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

                      ///

                      Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 ///

                      @@ -36548,9 +36685,9 @@ pub struct DescribeReservedDBInstancesOfferingsInput { ///

                      pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeReservedDBInstancesOfferingsInput { +impl std::fmt::Debug for DescribeReservedDbInstancesOfferingsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeReservedDBInstancesOfferingsInput"); + let mut formatter = f.debug_struct("DescribeReservedDbInstancesOfferingsInput"); formatter.field( "reserved_db_instances_offering_id", &self.reserved_db_instances_offering_id, @@ -36570,7 +36707,7 @@ impl std::fmt::Debug for DescribeReservedDBInstancesOfferingsInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeReservedDBInstancesInput { +pub struct DescribeReservedDbInstancesInput { ///

                      The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

                      pub reserved_db_instance_id: std::option::Option, ///

                      The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

                      @@ -36612,9 +36749,9 @@ pub struct DescribeReservedDBInstancesInput { ///

                      pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeReservedDBInstancesInput { +impl std::fmt::Debug for DescribeReservedDbInstancesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeReservedDBInstancesInput"); + let mut formatter = f.debug_struct("DescribeReservedDbInstancesInput"); formatter.field("reserved_db_instance_id", &self.reserved_db_instance_id); formatter.field( "reserved_db_instances_offering_id", @@ -36688,7 +36825,7 @@ impl std::fmt::Debug for DescribePendingMaintenanceActionsInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOrderableDBInstanceOptionsInput { +pub struct DescribeOrderableDbInstanceOptionsInput { ///

                      The name of the engine to retrieve DB instance options for.

                      ///

                      Valid Values: ///

                      @@ -36794,9 +36931,9 @@ pub struct DescribeOrderableDBInstanceOptionsInput { ///

                      pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeOrderableDBInstanceOptionsInput { +impl std::fmt::Debug for DescribeOrderableDbInstanceOptionsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOrderableDBInstanceOptionsInput"); + let mut formatter = f.debug_struct("DescribeOrderableDbInstanceOptionsInput"); formatter.field("engine", &self.engine); formatter.field("engine_version", &self.engine_version); formatter.field("db_instance_class", &self.db_instance_class); @@ -37379,7 +37516,7 @@ impl std::fmt::Debug for DescribeEngineDefaultClusterParametersInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSubnetGroupsInput { +pub struct DescribeDbSubnetGroupsInput { ///

                      The name of the DB subnet group to return details for.

                      pub db_subnet_group_name: std::option::Option, ///

                      This parameter isn't currently supported.

                      @@ -37401,9 +37538,9 @@ pub struct DescribeDBSubnetGroupsInput { ///

                      pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBSubnetGroupsInput { +impl std::fmt::Debug for DescribeDbSubnetGroupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSubnetGroupsInput"); + let mut formatter = f.debug_struct("DescribeDbSubnetGroupsInput"); formatter.field("db_subnet_group_name", &self.db_subnet_group_name); formatter.field("filters", &self.filters); formatter.field("max_records", &self.max_records); @@ -37415,7 +37552,7 @@ impl std::fmt::Debug for DescribeDBSubnetGroupsInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSnapshotsInput { +pub struct DescribeDbSnapshotsInput { ///

                      The ID of the DB instance to retrieve the list of DB snapshots for. /// This parameter can't be used in conjunction with DBSnapshotIdentifier. /// This parameter isn't case-sensitive. @@ -37537,9 +37674,9 @@ pub struct DescribeDBSnapshotsInput { ///

                      A specific DB resource ID to describe.

                      pub dbi_resource_id: std::option::Option, } -impl std::fmt::Debug for DescribeDBSnapshotsInput { +impl std::fmt::Debug for DescribeDbSnapshotsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSnapshotsInput"); + let mut formatter = f.debug_struct("DescribeDbSnapshotsInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("snapshot_type", &self.snapshot_type); @@ -37556,13 +37693,13 @@ impl std::fmt::Debug for DescribeDBSnapshotsInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSnapshotAttributesInput { +pub struct DescribeDbSnapshotAttributesInput { ///

                      The identifier for the DB snapshot to describe the attributes for.

                      pub db_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for DescribeDBSnapshotAttributesInput { +impl std::fmt::Debug for DescribeDbSnapshotAttributesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSnapshotAttributesInput"); + let mut formatter = f.debug_struct("DescribeDbSnapshotAttributesInput"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.finish() } @@ -37571,7 +37708,7 @@ impl std::fmt::Debug for DescribeDBSnapshotAttributesInput { ///

                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSecurityGroupsInput { +pub struct DescribeDbSecurityGroupsInput { ///

                      The name of the DB security group to return details for.

                      pub db_security_group_name: std::option::Option, ///

                      This parameter isn't currently supported.

                      @@ -37594,9 +37731,9 @@ pub struct DescribeDBSecurityGroupsInput { ///

                      pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBSecurityGroupsInput { +impl std::fmt::Debug for DescribeDbSecurityGroupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSecurityGroupsInput"); + let mut formatter = f.debug_struct("DescribeDbSecurityGroupsInput"); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.field("filters", &self.filters); formatter.field("max_records", &self.max_records); @@ -37607,7 +37744,7 @@ impl std::fmt::Debug for DescribeDBSecurityGroupsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyTargetsInput { +pub struct DescribeDbProxyTargetsInput { ///

                      The identifier of the DBProxyTarget to describe.

                      pub db_proxy_name: std::option::Option, ///

                      The identifier of the DBProxyTargetGroup to describe.

                      @@ -37630,9 +37767,9 @@ pub struct DescribeDBProxyTargetsInput { ///

                      Constraints: Minimum 20, maximum 100.

                      pub max_records: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyTargetsInput { +impl std::fmt::Debug for DescribeDbProxyTargetsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyTargetsInput"); + let mut formatter = f.debug_struct("DescribeDbProxyTargetsInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("target_group_name", &self.target_group_name); formatter.field("filters", &self.filters); @@ -37644,7 +37781,7 @@ impl std::fmt::Debug for DescribeDBProxyTargetsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyTargetGroupsInput { +pub struct DescribeDbProxyTargetGroupsInput { ///

                      The identifier of the DBProxy associated with the target group.

                      pub db_proxy_name: std::option::Option, ///

                      The identifier of the DBProxyTargetGroup to describe.

                      @@ -37667,9 +37804,9 @@ pub struct DescribeDBProxyTargetGroupsInput { ///

                      Constraints: Minimum 20, maximum 100.

                      pub max_records: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyTargetGroupsInput { +impl std::fmt::Debug for DescribeDbProxyTargetGroupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyTargetGroupsInput"); + let mut formatter = f.debug_struct("DescribeDbProxyTargetGroupsInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("target_group_name", &self.target_group_name); formatter.field("filters", &self.filters); @@ -37681,7 +37818,7 @@ impl std::fmt::Debug for DescribeDBProxyTargetGroupsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyEndpointsInput { +pub struct DescribeDbProxyEndpointsInput { ///

                      The name of the DB proxy whose endpoints you want to describe. If you omit /// this parameter, the output includes information about all DB proxy endpoints /// associated with all your DB proxies.

                      @@ -37705,9 +37842,9 @@ pub struct DescribeDBProxyEndpointsInput { ///

                      Constraints: Minimum 20, maximum 100.

                      pub max_records: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyEndpointsInput { +impl std::fmt::Debug for DescribeDbProxyEndpointsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyEndpointsInput"); + let mut formatter = f.debug_struct("DescribeDbProxyEndpointsInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("db_proxy_endpoint_name", &self.db_proxy_endpoint_name); formatter.field("filters", &self.filters); @@ -37719,7 +37856,7 @@ impl std::fmt::Debug for DescribeDBProxyEndpointsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxiesInput { +pub struct DescribeDbProxiesInput { ///

                      The name of the DB proxy. If you omit this parameter, /// the output includes information about all DB proxies owned by /// your AWS account ID.

                      @@ -37739,9 +37876,9 @@ pub struct DescribeDBProxiesInput { ///

                      Constraints: Minimum 20, maximum 100.

                      pub max_records: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxiesInput { +impl std::fmt::Debug for DescribeDbProxiesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxiesInput"); + let mut formatter = f.debug_struct("DescribeDbProxiesInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("filters", &self.filters); formatter.field("marker", &self.marker); @@ -37752,7 +37889,7 @@ impl std::fmt::Debug for DescribeDBProxiesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBParametersInput { +pub struct DescribeDbParametersInput { ///

                      The name of a specific DB parameter group to return details for.

                      ///

                      Constraints:

                      ///
                        @@ -37786,9 +37923,9 @@ pub struct DescribeDBParametersInput { ///

                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBParametersInput { +impl std::fmt::Debug for DescribeDbParametersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBParametersInput"); + let mut formatter = f.debug_struct("DescribeDbParametersInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("source", &self.source); formatter.field("filters", &self.filters); @@ -37801,7 +37938,7 @@ impl std::fmt::Debug for DescribeDBParametersInput { ///

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBParameterGroupsInput { +pub struct DescribeDbParameterGroupsInput { ///

                        The name of a specific DB parameter group to return details for.

                        ///

                        Constraints:

                        ///
                          @@ -37830,9 +37967,9 @@ pub struct DescribeDBParameterGroupsInput { ///

                          pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBParameterGroupsInput { +impl std::fmt::Debug for DescribeDbParameterGroupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBParameterGroupsInput"); + let mut formatter = f.debug_struct("DescribeDbParameterGroupsInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("filters", &self.filters); formatter.field("max_records", &self.max_records); @@ -37844,7 +37981,7 @@ impl std::fmt::Debug for DescribeDBParameterGroupsInput { ///

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBLogFilesInput { +pub struct DescribeDbLogFilesInput { ///

                          The customer-assigned name of the DB instance that contains the log files you want to list.

                          ///

                          Constraints:

                          ///
                            @@ -37866,9 +38003,9 @@ pub struct DescribeDBLogFilesInput { ///

                            The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

                            pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBLogFilesInput { +impl std::fmt::Debug for DescribeDbLogFilesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBLogFilesInput"); + let mut formatter = f.debug_struct("DescribeDbLogFilesInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("filename_contains", &self.filename_contains); formatter.field("file_last_written", &self.file_last_written); @@ -37883,7 +38020,7 @@ impl std::fmt::Debug for DescribeDBLogFilesInput { ///

                            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBInstancesInput { +pub struct DescribeDbInstancesInput { ///

                            The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

                            ///

                            Constraints:

                            ///
                              @@ -37942,9 +38079,9 @@ pub struct DescribeDBInstancesInput { ///

                              pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBInstancesInput { +impl std::fmt::Debug for DescribeDbInstancesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBInstancesInput"); + let mut formatter = f.debug_struct("DescribeDbInstancesInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("filters", &self.filters); formatter.field("max_records", &self.max_records); @@ -37956,7 +38093,7 @@ impl std::fmt::Debug for DescribeDBInstancesInput { ///

                              Parameter input for DescribeDBInstanceAutomatedBackups.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBInstanceAutomatedBackupsInput { +pub struct DescribeDbInstanceAutomatedBackupsInput { ///

                              The resource ID of the DB instance that is the source of /// the automated backup. This parameter isn't case-sensitive.

                              pub dbi_resource_id: std::option::Option, @@ -38010,9 +38147,9 @@ pub struct DescribeDBInstanceAutomatedBackupsInput { /// arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE.

                              pub db_instance_automated_backups_arn: std::option::Option, } -impl std::fmt::Debug for DescribeDBInstanceAutomatedBackupsInput { +impl std::fmt::Debug for DescribeDbInstanceAutomatedBackupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBInstanceAutomatedBackupsInput"); + let mut formatter = f.debug_struct("DescribeDbInstanceAutomatedBackupsInput"); formatter.field("dbi_resource_id", &self.dbi_resource_id); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("filters", &self.filters); @@ -38028,7 +38165,7 @@ impl std::fmt::Debug for DescribeDBInstanceAutomatedBackupsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBEngineVersionsInput { +pub struct DescribeDbEngineVersionsInput { ///

                              The database engine to return.

                              ///

                              Valid Values: ///

                              @@ -38147,9 +38284,9 @@ pub struct DescribeDBEngineVersionsInput { ///

                              A value that indicates whether to include engine versions that aren't available in the list. The default is to list only available engine versions.

                              pub include_all: std::option::Option, } -impl std::fmt::Debug for DescribeDBEngineVersionsInput { +impl std::fmt::Debug for DescribeDbEngineVersionsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBEngineVersionsInput"); + let mut formatter = f.debug_struct("DescribeDbEngineVersionsInput"); formatter.field("engine", &self.engine); formatter.field("engine_version", &self.engine_version); formatter.field("db_parameter_group_family", &self.db_parameter_group_family); @@ -38170,7 +38307,7 @@ impl std::fmt::Debug for DescribeDBEngineVersionsInput { ///

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterSnapshotsInput { +pub struct DescribeDbClusterSnapshotsInput { ///

                              The ID of the DB cluster to retrieve the list of DB cluster snapshots for. /// This parameter can't be used in conjunction with the /// DBClusterSnapshotIdentifier parameter. @@ -38274,9 +38411,9 @@ pub struct DescribeDBClusterSnapshotsInput { ///

                              You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

                              pub include_public: bool, } -impl std::fmt::Debug for DescribeDBClusterSnapshotsInput { +impl std::fmt::Debug for DescribeDbClusterSnapshotsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterSnapshotsInput"); + let mut formatter = f.debug_struct("DescribeDbClusterSnapshotsInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field( "db_cluster_snapshot_identifier", @@ -38295,13 +38432,13 @@ impl std::fmt::Debug for DescribeDBClusterSnapshotsInput { ///

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterSnapshotAttributesInput { +pub struct DescribeDbClusterSnapshotAttributesInput { ///

                              The identifier for the DB cluster snapshot to describe the attributes for.

                              pub db_cluster_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterSnapshotAttributesInput { +impl std::fmt::Debug for DescribeDbClusterSnapshotAttributesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterSnapshotAttributesInput"); + let mut formatter = f.debug_struct("DescribeDbClusterSnapshotAttributesInput"); formatter.field( "db_cluster_snapshot_identifier", &self.db_cluster_snapshot_identifier, @@ -38313,7 +38450,7 @@ impl std::fmt::Debug for DescribeDBClusterSnapshotAttributesInput { ///

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClustersInput { +pub struct DescribeDbClustersInput { ///

                              The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

                              ///

                              Constraints:

                              ///
                                @@ -38351,9 +38488,9 @@ pub struct DescribeDBClustersInput { /// shared from other AWS accounts.

                                pub include_shared: bool, } -impl std::fmt::Debug for DescribeDBClustersInput { +impl std::fmt::Debug for DescribeDbClustersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClustersInput"); + let mut formatter = f.debug_struct("DescribeDbClustersInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("filters", &self.filters); formatter.field("max_records", &self.max_records); @@ -38366,7 +38503,7 @@ impl std::fmt::Debug for DescribeDBClustersInput { ///

                                #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterParametersInput { +pub struct DescribeDbClusterParametersInput { ///

                                The name of a specific DB cluster parameter group to return parameter details for.

                                ///

                                Constraints:

                                ///
                                  @@ -38400,9 +38537,9 @@ pub struct DescribeDBClusterParametersInput { ///

                                  pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterParametersInput { +impl std::fmt::Debug for DescribeDbClusterParametersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterParametersInput"); + let mut formatter = f.debug_struct("DescribeDbClusterParametersInput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -38418,7 +38555,7 @@ impl std::fmt::Debug for DescribeDBClusterParametersInput { ///

                                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterParameterGroupsInput { +pub struct DescribeDbClusterParameterGroupsInput { ///

                                  The name of a specific DB cluster parameter group to return details for.

                                  ///

                                  Constraints:

                                  ///
                                    @@ -38446,9 +38583,9 @@ pub struct DescribeDBClusterParameterGroupsInput { ///

                                    pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterParameterGroupsInput { +impl std::fmt::Debug for DescribeDbClusterParameterGroupsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterParameterGroupsInput"); + let mut formatter = f.debug_struct("DescribeDbClusterParameterGroupsInput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -38462,7 +38599,7 @@ impl std::fmt::Debug for DescribeDBClusterParameterGroupsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterEndpointsInput { +pub struct DescribeDbClusterEndpointsInput { ///

                                    The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is /// stored as a lowercase string.

                                    pub db_cluster_identifier: std::option::Option, @@ -38492,9 +38629,9 @@ pub struct DescribeDBClusterEndpointsInput { ///

                                    pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterEndpointsInput { +impl std::fmt::Debug for DescribeDbClusterEndpointsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterEndpointsInput"); + let mut formatter = f.debug_struct("DescribeDbClusterEndpointsInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field( "db_cluster_endpoint_identifier", @@ -38510,7 +38647,7 @@ impl std::fmt::Debug for DescribeDBClusterEndpointsInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterBacktracksInput { +pub struct DescribeDbClusterBacktracksInput { ///

                                    The DB cluster identifier of the DB cluster to be described. This parameter is /// stored as a lowercase string.

                                    ///

                                    Constraints:

                                    @@ -38595,9 +38732,9 @@ pub struct DescribeDBClusterBacktracksInput { ///

                                    pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterBacktracksInput { +impl std::fmt::Debug for DescribeDbClusterBacktracksInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterBacktracksInput"); + let mut formatter = f.debug_struct("DescribeDbClusterBacktracksInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("backtrack_identifier", &self.backtrack_identifier); formatter.field("filters", &self.filters); @@ -38696,7 +38833,7 @@ impl std::fmt::Debug for DescribeAccountAttributesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterDBProxyTargetsInput { +pub struct DeregisterDbProxyTargetsInput { ///

                                    The identifier of the DBProxy that is associated with the DBProxyTargetGroup.

                                    pub db_proxy_name: std::option::Option, ///

                                    The identifier of the DBProxyTargetGroup.

                                    @@ -38706,9 +38843,9 @@ pub struct DeregisterDBProxyTargetsInput { ///

                                    One or more DB cluster identifiers.

                                    pub db_cluster_identifiers: std::option::Option>, } -impl std::fmt::Debug for DeregisterDBProxyTargetsInput { +impl std::fmt::Debug for DeregisterDbProxyTargetsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterDBProxyTargetsInput"); + let mut formatter = f.debug_struct("DeregisterDbProxyTargetsInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("target_group_name", &self.target_group_name); formatter.field("db_instance_identifiers", &self.db_instance_identifiers); @@ -38783,7 +38920,7 @@ impl std::fmt::Debug for DeleteEventSubscriptionInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSubnetGroupInput { +pub struct DeleteDbSubnetGroupInput { ///

                                    The name of the database subnet group to delete.

                                    /// ///

                                    You can't delete the default subnet group.

                                    @@ -38794,9 +38931,9 @@ pub struct DeleteDBSubnetGroupInput { ///

                                    pub db_subnet_group_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBSubnetGroupInput { +impl std::fmt::Debug for DeleteDbSubnetGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSubnetGroupInput"); + let mut formatter = f.debug_struct("DeleteDbSubnetGroupInput"); formatter.field("db_subnet_group_name", &self.db_subnet_group_name); formatter.finish() } @@ -38805,14 +38942,14 @@ impl std::fmt::Debug for DeleteDBSubnetGroupInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSnapshotInput { +pub struct DeleteDbSnapshotInput { ///

                                    The DB snapshot identifier.

                                    ///

                                    Constraints: Must be the name of an existing DB snapshot in the available state.

                                    pub db_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for DeleteDBSnapshotInput { +impl std::fmt::Debug for DeleteDbSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSnapshotInput"); + let mut formatter = f.debug_struct("DeleteDbSnapshotInput"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.finish() } @@ -38821,7 +38958,7 @@ impl std::fmt::Debug for DeleteDBSnapshotInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSecurityGroupInput { +pub struct DeleteDbSecurityGroupInput { ///

                                    The name of the DB security group to delete.

                                    /// ///

                                    You can't delete the default DB security group.

                                    @@ -38843,9 +38980,9 @@ pub struct DeleteDBSecurityGroupInput { ///
                                  pub db_security_group_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBSecurityGroupInput { +impl std::fmt::Debug for DeleteDbSecurityGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSecurityGroupInput"); + let mut formatter = f.debug_struct("DeleteDbSecurityGroupInput"); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.finish() } @@ -38853,13 +38990,13 @@ impl std::fmt::Debug for DeleteDBSecurityGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBProxyEndpointInput { +pub struct DeleteDbProxyEndpointInput { ///

                                  The name of the DB proxy endpoint to delete.

                                  pub db_proxy_endpoint_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBProxyEndpointInput { +impl std::fmt::Debug for DeleteDbProxyEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBProxyEndpointInput"); + let mut formatter = f.debug_struct("DeleteDbProxyEndpointInput"); formatter.field("db_proxy_endpoint_name", &self.db_proxy_endpoint_name); formatter.finish() } @@ -38867,13 +39004,13 @@ impl std::fmt::Debug for DeleteDBProxyEndpointInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBProxyInput { +pub struct DeleteDbProxyInput { ///

                                  The name of the DB proxy to delete.

                                  pub db_proxy_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBProxyInput { +impl std::fmt::Debug for DeleteDbProxyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBProxyInput"); + let mut formatter = f.debug_struct("DeleteDbProxyInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.finish() } @@ -38882,7 +39019,7 @@ impl std::fmt::Debug for DeleteDBProxyInput { ///

                                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBParameterGroupInput { +pub struct DeleteDbParameterGroupInput { ///

                                  The name of the DB parameter group.

                                  ///

                                  Constraints:

                                  ///
                                    @@ -38898,9 +39035,9 @@ pub struct DeleteDBParameterGroupInput { ///
                                  pub db_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBParameterGroupInput { +impl std::fmt::Debug for DeleteDbParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBParameterGroupInput"); + let mut formatter = f.debug_struct("DeleteDbParameterGroupInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.finish() } @@ -38909,16 +39046,16 @@ impl std::fmt::Debug for DeleteDBParameterGroupInput { ///

                                  Parameter input for the DeleteDBInstanceAutomatedBackup operation.

                                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBInstanceAutomatedBackupInput { +pub struct DeleteDbInstanceAutomatedBackupInput { ///

                                  The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.

                                  pub dbi_resource_id: std::option::Option, ///

                                  The Amazon Resource Name (ARN) of the automated backups to delete, for example, /// arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE.

                                  pub db_instance_automated_backups_arn: std::option::Option, } -impl std::fmt::Debug for DeleteDBInstanceAutomatedBackupInput { +impl std::fmt::Debug for DeleteDbInstanceAutomatedBackupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBInstanceAutomatedBackupInput"); + let mut formatter = f.debug_struct("DeleteDbInstanceAutomatedBackupInput"); formatter.field("dbi_resource_id", &self.dbi_resource_id); formatter.field( "db_instance_automated_backups_arn", @@ -38931,7 +39068,7 @@ impl std::fmt::Debug for DeleteDBInstanceAutomatedBackupInput { ///

                                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBInstanceInput { +pub struct DeleteDbInstanceInput { ///

                                  The DB instance identifier for the DB instance to be deleted. This parameter isn't case-sensitive.

                                  ///

                                  Constraints:

                                  ///
                                    @@ -38977,9 +39114,9 @@ pub struct DeleteDBInstanceInput { /// automated backups immediately after the DB instance is deleted.

                                    pub delete_automated_backups: std::option::Option, } -impl std::fmt::Debug for DeleteDBInstanceInput { +impl std::fmt::Debug for DeleteDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBInstanceInput"); + let mut formatter = f.debug_struct("DeleteDbInstanceInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("skip_final_snapshot", &self.skip_final_snapshot); formatter.field( @@ -38994,14 +39131,14 @@ impl std::fmt::Debug for DeleteDBInstanceInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterSnapshotInput { +pub struct DeleteDbClusterSnapshotInput { ///

                                    The identifier of the DB cluster snapshot to delete.

                                    ///

                                    Constraints: Must be the name of an existing DB cluster snapshot in the available state.

                                    pub db_cluster_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterSnapshotInput { +impl std::fmt::Debug for DeleteDbClusterSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterSnapshotInput"); + let mut formatter = f.debug_struct("DeleteDbClusterSnapshotInput"); formatter.field( "db_cluster_snapshot_identifier", &self.db_cluster_snapshot_identifier, @@ -39013,7 +39150,7 @@ impl std::fmt::Debug for DeleteDBClusterSnapshotInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterParameterGroupInput { +pub struct DeleteDbClusterParameterGroupInput { ///

                                    The name of the DB cluster parameter group.

                                    ///

                                    Constraints:

                                    ///
                                      @@ -39029,9 +39166,9 @@ pub struct DeleteDBClusterParameterGroupInput { ///
                                    pub db_cluster_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterParameterGroupInput { +impl std::fmt::Debug for DeleteDbClusterParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterParameterGroupInput"); + let mut formatter = f.debug_struct("DeleteDbClusterParameterGroupInput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -39042,13 +39179,13 @@ impl std::fmt::Debug for DeleteDBClusterParameterGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterEndpointInput { +pub struct DeleteDbClusterEndpointInput { ///

                                    The identifier associated with the custom endpoint. This parameter is stored as a lowercase string.

                                    pub db_cluster_endpoint_identifier: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterEndpointInput { +impl std::fmt::Debug for DeleteDbClusterEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterEndpointInput"); + let mut formatter = f.debug_struct("DeleteDbClusterEndpointInput"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -39060,7 +39197,7 @@ impl std::fmt::Debug for DeleteDBClusterEndpointInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterInput { +pub struct DeleteDbClusterInput { ///

                                    The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.

                                    ///

                                    Constraints:

                                    ///
                                      @@ -39100,9 +39237,9 @@ pub struct DeleteDBClusterInput { ///
                                    pub final_db_snapshot_identifier: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterInput { +impl std::fmt::Debug for DeleteDbClusterInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterInput"); + let mut formatter = f.debug_struct("DeleteDbClusterInput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("skip_final_snapshot", &self.skip_final_snapshot); formatter.field( @@ -39350,7 +39487,7 @@ impl std::fmt::Debug for CreateEventSubscriptionInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSubnetGroupInput { +pub struct CreateDbSubnetGroupInput { ///

                                    The name for the DB subnet group. This value is stored as a lowercase string.

                                    ///

                                    Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.

                                    ///

                                    Example: mySubnetgroup @@ -39363,9 +39500,9 @@ pub struct CreateDBSubnetGroupInput { ///

                                    Tags to assign to the DB subnet group.

                                    pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBSubnetGroupInput { +impl std::fmt::Debug for CreateDbSubnetGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSubnetGroupInput"); + let mut formatter = f.debug_struct("CreateDbSubnetGroupInput"); formatter.field("db_subnet_group_name", &self.db_subnet_group_name); formatter.field( "db_subnet_group_description", @@ -39380,7 +39517,7 @@ impl std::fmt::Debug for CreateDBSubnetGroupInput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSnapshotInput { +pub struct CreateDbSnapshotInput { ///

                                    The identifier for the DB snapshot.

                                    ///

                                    Constraints:

                                    ///
                                      @@ -39413,9 +39550,9 @@ pub struct CreateDBSnapshotInput { ///

                                      pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBSnapshotInput { +impl std::fmt::Debug for CreateDbSnapshotInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSnapshotInput"); + let mut formatter = f.debug_struct("CreateDbSnapshotInput"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("tags", &self.tags); @@ -39426,7 +39563,7 @@ impl std::fmt::Debug for CreateDBSnapshotInput { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSecurityGroupInput { +pub struct CreateDbSecurityGroupInput { ///

                                      The name for the DB security group. This value is stored as a lowercase string.

                                      ///

                                      Constraints:

                                      ///
                                        @@ -39451,9 +39588,9 @@ pub struct CreateDBSecurityGroupInput { ///

                                        Tags to assign to the DB security group.

                                        pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBSecurityGroupInput { +impl std::fmt::Debug for CreateDbSecurityGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSecurityGroupInput"); + let mut formatter = f.debug_struct("CreateDbSecurityGroupInput"); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.field( "db_security_group_description", @@ -39466,7 +39603,7 @@ impl std::fmt::Debug for CreateDBSecurityGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBProxyEndpointInput { +pub struct CreateDbProxyEndpointInput { ///

                                        The name of the DB proxy associated with the DB proxy endpoint that you create.

                                        pub db_proxy_name: std::option::Option, ///

                                        The name of the DB proxy endpoint to create.

                                        @@ -39486,9 +39623,9 @@ pub struct CreateDBProxyEndpointInput { ///

                                        pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBProxyEndpointInput { +impl std::fmt::Debug for CreateDbProxyEndpointInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBProxyEndpointInput"); + let mut formatter = f.debug_struct("CreateDbProxyEndpointInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("db_proxy_endpoint_name", &self.db_proxy_endpoint_name); formatter.field("vpc_subnet_ids", &self.vpc_subnet_ids); @@ -39501,7 +39638,7 @@ impl std::fmt::Debug for CreateDBProxyEndpointInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBProxyInput { +pub struct CreateDbProxyInput { ///

                                        The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.

                                        pub db_proxy_name: std::option::Option, ///

                                        The kinds of databases that the proxy can connect to. @@ -39533,9 +39670,9 @@ pub struct CreateDBProxyInput { ///

                                        An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.

                                        pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBProxyInput { +impl std::fmt::Debug for CreateDbProxyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBProxyInput"); + let mut formatter = f.debug_struct("CreateDbProxyInput"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("engine_family", &self.engine_family); formatter.field("auth", &self.auth); @@ -39553,7 +39690,7 @@ impl std::fmt::Debug for CreateDBProxyInput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBParameterGroupInput { +pub struct CreateDbParameterGroupInput { ///

                                        The name of the DB parameter group.

                                        ///

                                        Constraints:

                                        ///
                                          @@ -39660,9 +39797,9 @@ pub struct CreateDBParameterGroupInput { ///

                                          Tags to assign to the DB parameter group.

                                          pub tags: std::option::Option>, } -impl std::fmt::Debug for CreateDBParameterGroupInput { +impl std::fmt::Debug for CreateDbParameterGroupInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBParameterGroupInput"); + let mut formatter = f.debug_struct("CreateDbParameterGroupInput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("db_parameter_group_family", &self.db_parameter_group_family); formatter.field("description", &self.description); @@ -39673,7 +39810,7 @@ impl std::fmt::Debug for CreateDBParameterGroupInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBInstanceReadReplicaInput { +pub struct CreateDbInstanceReadReplicaInput { ///

                                          The DB instance identifier of the read replica. This identifier is the unique key /// that identifies a DB instance. This parameter is stored as a lowercase string.

                                          pub db_instance_identifier: std::option::Option, @@ -39984,9 +40121,9 @@ pub struct CreateDBInstanceReadReplicaInput { /// in the Amazon RDS User Guide.

                                          pub max_allocated_storage: std::option::Option, } -impl std::fmt::Debug for CreateDBInstanceReadReplicaInput { +impl std::fmt::Debug for CreateDbInstanceReadReplicaInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBInstanceReadReplicaInput"); + let mut formatter = f.debug_struct("CreateDbInstanceReadReplicaInput"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field( "source_db_instance_identifier", @@ -40050,7 +40187,7 @@ impl std::fmt::Debug for CreateDBInstanceReadReplicaInput { ///

                                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBInstanceInput { +pub struct CreateDbInstanceInput { ///

                                          The meaning of this parameter differs according to the database engine you use.

                                          ///

                                          /// MySQL @@ -40927,9 +41064,9 @@ pub struct CreateDBInstanceInput { /// in the AWS Outposts User Guide.

                                          pub enable_customer_owned_ip: std::option::Option, } -impl std::fmt::Debug for CreateDBInstanceInput { +impl std::fmt::Debug for CreateDbInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBInstanceInput"); + let mut formatter = f.debug_struct("CreateDbInstanceInput"); formatter.field("db_name", &self.db_name); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("allocated_storage", &self.allocated_storage); @@ -41006,7 +41143,7 @@ impl std::fmt::Debug for CreateDBInstanceInput { ///

                                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBClusterSnapshotInput { +pub struct CreateDbClusterSnapshotInput { ///

                                          The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

                                          ///

                                          Constraints:

                                          /// #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBParameterGroupStatus { +pub struct DbParameterGroupStatus { ///

                                          The name of the DB parameter group.

                                          pub db_parameter_group_name: std::option::Option, ///

                                          The status of parameter updates.

                                          pub parameter_apply_status: std::option::Option, } -impl std::fmt::Debug for DBParameterGroupStatus { +impl std::fmt::Debug for DbParameterGroupStatus { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBParameterGroupStatus"); + let mut formatter = f.debug_struct("DbParameterGroupStatus"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("parameter_apply_status", &self.parameter_apply_status); formatter.finish() } } -/// See [`DBParameterGroupStatus`](crate::model::DBParameterGroupStatus) +/// See [`DbParameterGroupStatus`](crate::model::DbParameterGroupStatus) pub mod db_parameter_group_status { - /// A builder for [`DBParameterGroupStatus`](crate::model::DBParameterGroupStatus) + /// A builder for [`DbParameterGroupStatus`](crate::model::DbParameterGroupStatus) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3563,17 +3554,17 @@ pub mod db_parameter_group_status { self.parameter_apply_status = input; self } - /// Consumes the builder and constructs a [`DBParameterGroupStatus`](crate::model::DBParameterGroupStatus) - pub fn build(self) -> crate::model::DBParameterGroupStatus { - crate::model::DBParameterGroupStatus { + /// Consumes the builder and constructs a [`DbParameterGroupStatus`](crate::model::DbParameterGroupStatus) + pub fn build(self) -> crate::model::DbParameterGroupStatus { + crate::model::DbParameterGroupStatus { db_parameter_group_name: self.db_parameter_group_name, parameter_apply_status: self.parameter_apply_status, } } } } -impl DBParameterGroupStatus { - /// Creates a new builder-style object to manufacture [`DBParameterGroupStatus`](crate::model::DBParameterGroupStatus) +impl DbParameterGroupStatus { + /// Creates a new builder-style object to manufacture [`DbParameterGroupStatus`](crate::model::DbParameterGroupStatus) pub fn builder() -> crate::model::db_parameter_group_status::Builder { crate::model::db_parameter_group_status::Builder::default() } @@ -3668,23 +3659,23 @@ impl VpcSecurityGroupMembership { ///
                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroupMembership { +pub struct DbSecurityGroupMembership { ///

                                        The name of the DB security group.

                                        pub db_security_group_name: std::option::Option, ///

                                        The status of the DB security group.

                                        pub status: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroupMembership { +impl std::fmt::Debug for DbSecurityGroupMembership { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroupMembership"); + let mut formatter = f.debug_struct("DbSecurityGroupMembership"); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.field("status", &self.status); formatter.finish() } } -/// See [`DBSecurityGroupMembership`](crate::model::DBSecurityGroupMembership) +/// See [`DbSecurityGroupMembership`](crate::model::DbSecurityGroupMembership) pub mod db_security_group_membership { - /// A builder for [`DBSecurityGroupMembership`](crate::model::DBSecurityGroupMembership) + /// A builder for [`DbSecurityGroupMembership`](crate::model::DbSecurityGroupMembership) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3713,17 +3704,17 @@ pub mod db_security_group_membership { self.status = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroupMembership`](crate::model::DBSecurityGroupMembership) - pub fn build(self) -> crate::model::DBSecurityGroupMembership { - crate::model::DBSecurityGroupMembership { + /// Consumes the builder and constructs a [`DbSecurityGroupMembership`](crate::model::DbSecurityGroupMembership) + pub fn build(self) -> crate::model::DbSecurityGroupMembership { + crate::model::DbSecurityGroupMembership { db_security_group_name: self.db_security_group_name, status: self.status, } } } } -impl DBSecurityGroupMembership { - /// Creates a new builder-style object to manufacture [`DBSecurityGroupMembership`](crate::model::DBSecurityGroupMembership) +impl DbSecurityGroupMembership { + /// Creates a new builder-style object to manufacture [`DbSecurityGroupMembership`](crate::model::DbSecurityGroupMembership) pub fn builder() -> crate::model::db_security_group_membership::Builder { crate::model::db_security_group_membership::Builder::default() } @@ -3736,7 +3727,7 @@ impl DBSecurityGroupMembership { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBCluster { +pub struct DbCluster { ///

                                        For all database engines except Amazon Aurora, AllocatedStorage specifies the allocated storage size in gibibytes (GiB). /// For Aurora, AllocatedStorage always returns 1, because Aurora DB cluster storage size isn't fixed, but instead automatically /// adjusts as needed.

                                        @@ -3789,7 +3780,7 @@ pub struct DBCluster { pub master_username: std::option::Option, ///

                                        Provides the list of option group memberships for this DB cluster.

                                        pub db_cluster_option_group_memberships: - std::option::Option>, + std::option::Option>, ///

                                        Specifies the daily time range during which automated backups are /// created if automated backups are enabled, as determined /// by the BackupRetentionPeriod. @@ -3804,7 +3795,7 @@ pub struct DBCluster { /// cluster.

                                        pub read_replica_identifiers: std::option::Option>, ///

                                        Provides the list of instances that make up the DB cluster.

                                        - pub db_cluster_members: std::option::Option>, + pub db_cluster_members: std::option::Option>, ///

                                        Provides a list of VPC security groups that the DB cluster belongs to.

                                        pub vpc_security_groups: std::option::Option>, @@ -3823,7 +3814,7 @@ pub struct DBCluster { ///

                                        Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster. /// IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other AWS services /// on your behalf.

                                        - pub associated_roles: std::option::Option>, + pub associated_roles: std::option::Option>, ///

                                        A value that indicates whether the mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.

                                        pub iam_database_authentication_enabled: std::option::Option, ///

                                        Identifies the clone group to which the DB cluster is associated.

                                        @@ -3901,9 +3892,9 @@ pub struct DBCluster { /// Specific changes are identified by subelements.

                                        pub pending_modified_values: std::option::Option, } -impl std::fmt::Debug for DBCluster { +impl std::fmt::Debug for DbCluster { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBCluster"); + let mut formatter = f.debug_struct("DbCluster"); formatter.field("allocated_storage", &self.allocated_storage); formatter.field("availability_zones", &self.availability_zones); formatter.field("backup_retention_period", &self.backup_retention_period); @@ -3999,9 +3990,9 @@ impl std::fmt::Debug for DBCluster { formatter.finish() } } -/// See [`DBCluster`](crate::model::DBCluster) +/// See [`DbCluster`](crate::model::DbCluster) pub mod db_cluster { - /// A builder for [`DBCluster`](crate::model::DBCluster) + /// A builder for [`DbCluster`](crate::model::DbCluster) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4026,14 +4017,14 @@ pub mod db_cluster { pub(crate) port: std::option::Option, pub(crate) master_username: std::option::Option, pub(crate) db_cluster_option_group_memberships: - std::option::Option>, + std::option::Option>, pub(crate) preferred_backup_window: std::option::Option, pub(crate) preferred_maintenance_window: std::option::Option, pub(crate) replication_source_identifier: std::option::Option, pub(crate) read_replica_identifiers: std::option::Option>, pub(crate) db_cluster_members: - std::option::Option>, + std::option::Option>, pub(crate) vpc_security_groups: std::option::Option>, pub(crate) hosted_zone_id: std::option::Option, @@ -4042,7 +4033,7 @@ pub mod db_cluster { pub(crate) db_cluster_resource_id: std::option::Option, pub(crate) db_cluster_arn: std::option::Option, pub(crate) associated_roles: - std::option::Option>, + std::option::Option>, pub(crate) iam_database_authentication_enabled: std::option::Option, pub(crate) clone_group_id: std::option::Option, pub(crate) cluster_create_time: std::option::Option, @@ -4306,7 +4297,7 @@ pub mod db_cluster { } pub fn db_cluster_option_group_memberships( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_option_group_memberships.unwrap_or_default(); v.push(input.into()); @@ -4315,7 +4306,7 @@ pub mod db_cluster { } pub fn set_db_cluster_option_group_memberships( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_option_group_memberships = input; self @@ -4381,7 +4372,7 @@ pub mod db_cluster { } pub fn db_cluster_members( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_members.unwrap_or_default(); v.push(input.into()); @@ -4390,7 +4381,7 @@ pub mod db_cluster { } pub fn set_db_cluster_members( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_members = input; self @@ -4467,7 +4458,7 @@ pub mod db_cluster { self.db_cluster_arn = input; self } - pub fn associated_roles(mut self, input: impl Into) -> Self { + pub fn associated_roles(mut self, input: impl Into) -> Self { let mut v = self.associated_roles.unwrap_or_default(); v.push(input.into()); self.associated_roles = Some(v); @@ -4475,7 +4466,7 @@ pub mod db_cluster { } pub fn set_associated_roles( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.associated_roles = input; self @@ -4781,9 +4772,9 @@ pub mod db_cluster { self.pending_modified_values = input; self } - /// Consumes the builder and constructs a [`DBCluster`](crate::model::DBCluster) - pub fn build(self) -> crate::model::DBCluster { - crate::model::DBCluster { + /// Consumes the builder and constructs a [`DbCluster`](crate::model::DbCluster) + pub fn build(self) -> crate::model::DbCluster { + crate::model::DbCluster { allocated_storage: self.allocated_storage, availability_zones: self.availability_zones, backup_retention_period: self.backup_retention_period, @@ -4844,8 +4835,8 @@ pub mod db_cluster { } } } -impl DBCluster { - /// Creates a new builder-style object to manufacture [`DBCluster`](crate::model::DBCluster) +impl DbCluster { + /// Creates a new builder-style object to manufacture [`DbCluster`](crate::model::DbCluster) pub fn builder() -> crate::model::db_cluster::Builder { crate::model::db_cluster::Builder::default() } @@ -5017,7 +5008,7 @@ impl std::convert::From<&str> for WriteForwardingStatus { impl std::str::FromStr for WriteForwardingStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(WriteForwardingStatus::from(s)) } } @@ -5038,15 +5029,6 @@ impl AsRef for WriteForwardingStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for WriteForwardingStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5080,7 +5062,7 @@ impl std::convert::From<&str> for ActivityStreamStatus { impl std::str::FromStr for ActivityStreamStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ActivityStreamStatus::from(s)) } } @@ -5100,15 +5082,6 @@ impl AsRef for ActivityStreamStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ActivityStreamStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5138,7 +5111,7 @@ impl std::convert::From<&str> for ActivityStreamMode { impl std::str::FromStr for ActivityStreamMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ActivityStreamMode::from(s)) } } @@ -5156,15 +5129,6 @@ impl AsRef for ActivityStreamMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ActivityStreamMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                        Shows the scaling configuration for an Aurora DB cluster in serverless DB engine mode.

                                        ///

                                        For more information, see Using Amazon Aurora Serverless in the @@ -5289,7 +5253,7 @@ impl ScalingConfigurationInfo { ///

                                        Describes an AWS Identity and Access Management (IAM) role that is associated with a DB cluster.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterRole { +pub struct DbClusterRole { ///

                                        The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

                                        pub role_arn: std::option::Option, ///

                                        Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following @@ -5316,18 +5280,18 @@ pub struct DBClusterRole { ///

                                        pub feature_name: std::option::Option, } -impl std::fmt::Debug for DBClusterRole { +impl std::fmt::Debug for DbClusterRole { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterRole"); + let mut formatter = f.debug_struct("DbClusterRole"); formatter.field("role_arn", &self.role_arn); formatter.field("status", &self.status); formatter.field("feature_name", &self.feature_name); formatter.finish() } } -/// See [`DBClusterRole`](crate::model::DBClusterRole) +/// See [`DbClusterRole`](crate::model::DbClusterRole) pub mod db_cluster_role { - /// A builder for [`DBClusterRole`](crate::model::DBClusterRole) + /// A builder for [`DbClusterRole`](crate::model::DbClusterRole) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5382,9 +5346,9 @@ pub mod db_cluster_role { self.feature_name = input; self } - /// Consumes the builder and constructs a [`DBClusterRole`](crate::model::DBClusterRole) - pub fn build(self) -> crate::model::DBClusterRole { - crate::model::DBClusterRole { + /// Consumes the builder and constructs a [`DbClusterRole`](crate::model::DbClusterRole) + pub fn build(self) -> crate::model::DbClusterRole { + crate::model::DbClusterRole { role_arn: self.role_arn, status: self.status, feature_name: self.feature_name, @@ -5392,8 +5356,8 @@ pub mod db_cluster_role { } } } -impl DBClusterRole { - /// Creates a new builder-style object to manufacture [`DBClusterRole`](crate::model::DBClusterRole) +impl DbClusterRole { + /// Creates a new builder-style object to manufacture [`DbClusterRole`](crate::model::DbClusterRole) pub fn builder() -> crate::model::db_cluster_role::Builder { crate::model::db_cluster_role::Builder::default() } @@ -5402,7 +5366,7 @@ impl DBClusterRole { ///

                                        Contains information about an instance that is part of a DB cluster.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterMember { +pub struct DbClusterMember { ///

                                        Specifies the instance identifier for this member of the DB cluster.

                                        pub db_instance_identifier: std::option::Option, ///

                                        Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

                                        @@ -5416,9 +5380,9 @@ pub struct DBClusterMember { ///

                                        pub promotion_tier: std::option::Option, } -impl std::fmt::Debug for DBClusterMember { +impl std::fmt::Debug for DbClusterMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterMember"); + let mut formatter = f.debug_struct("DbClusterMember"); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("is_cluster_writer", &self.is_cluster_writer); formatter.field( @@ -5429,9 +5393,9 @@ impl std::fmt::Debug for DBClusterMember { formatter.finish() } } -/// See [`DBClusterMember`](crate::model::DBClusterMember) +/// See [`DbClusterMember`](crate::model::DbClusterMember) pub mod db_cluster_member { - /// A builder for [`DBClusterMember`](crate::model::DBClusterMember) + /// A builder for [`DbClusterMember`](crate::model::DbClusterMember) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5490,9 +5454,9 @@ pub mod db_cluster_member { self.promotion_tier = input; self } - /// Consumes the builder and constructs a [`DBClusterMember`](crate::model::DBClusterMember) - pub fn build(self) -> crate::model::DBClusterMember { - crate::model::DBClusterMember { + /// Consumes the builder and constructs a [`DbClusterMember`](crate::model::DbClusterMember) + pub fn build(self) -> crate::model::DbClusterMember { + crate::model::DbClusterMember { db_instance_identifier: self.db_instance_identifier, is_cluster_writer: self.is_cluster_writer.unwrap_or_default(), db_cluster_parameter_group_status: self.db_cluster_parameter_group_status, @@ -5501,8 +5465,8 @@ pub mod db_cluster_member { } } } -impl DBClusterMember { - /// Creates a new builder-style object to manufacture [`DBClusterMember`](crate::model::DBClusterMember) +impl DbClusterMember { + /// Creates a new builder-style object to manufacture [`DbClusterMember`](crate::model::DbClusterMember) pub fn builder() -> crate::model::db_cluster_member::Builder { crate::model::db_cluster_member::Builder::default() } @@ -5511,15 +5475,15 @@ impl DBClusterMember { ///

                                        Contains status information for a DB cluster option group.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterOptionGroupStatus { +pub struct DbClusterOptionGroupStatus { ///

                                        Specifies the name of the DB cluster option group.

                                        pub db_cluster_option_group_name: std::option::Option, ///

                                        Specifies the status of the DB cluster option group.

                                        pub status: std::option::Option, } -impl std::fmt::Debug for DBClusterOptionGroupStatus { +impl std::fmt::Debug for DbClusterOptionGroupStatus { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterOptionGroupStatus"); + let mut formatter = f.debug_struct("DbClusterOptionGroupStatus"); formatter.field( "db_cluster_option_group_name", &self.db_cluster_option_group_name, @@ -5528,9 +5492,9 @@ impl std::fmt::Debug for DBClusterOptionGroupStatus { formatter.finish() } } -/// See [`DBClusterOptionGroupStatus`](crate::model::DBClusterOptionGroupStatus) +/// See [`DbClusterOptionGroupStatus`](crate::model::DbClusterOptionGroupStatus) pub mod db_cluster_option_group_status { - /// A builder for [`DBClusterOptionGroupStatus`](crate::model::DBClusterOptionGroupStatus) + /// A builder for [`DbClusterOptionGroupStatus`](crate::model::DbClusterOptionGroupStatus) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5562,17 +5526,17 @@ pub mod db_cluster_option_group_status { self.status = input; self } - /// Consumes the builder and constructs a [`DBClusterOptionGroupStatus`](crate::model::DBClusterOptionGroupStatus) - pub fn build(self) -> crate::model::DBClusterOptionGroupStatus { - crate::model::DBClusterOptionGroupStatus { + /// Consumes the builder and constructs a [`DbClusterOptionGroupStatus`](crate::model::DbClusterOptionGroupStatus) + pub fn build(self) -> crate::model::DbClusterOptionGroupStatus { + crate::model::DbClusterOptionGroupStatus { db_cluster_option_group_name: self.db_cluster_option_group_name, status: self.status, } } } } -impl DBClusterOptionGroupStatus { - /// Creates a new builder-style object to manufacture [`DBClusterOptionGroupStatus`](crate::model::DBClusterOptionGroupStatus) +impl DbClusterOptionGroupStatus { + /// Creates a new builder-style object to manufacture [`DbClusterOptionGroupStatus`](crate::model::DbClusterOptionGroupStatus) pub fn builder() -> crate::model::db_cluster_option_group_status::Builder { crate::model::db_cluster_option_group_status::Builder::default() } @@ -5585,7 +5549,7 @@ impl DBClusterOptionGroupStatus { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSecurityGroup { +pub struct DbSecurityGroup { ///

                                        Provides the AWS ID of the owner of a specific DB security group.

                                        pub owner_id: std::option::Option, ///

                                        Specifies the name of the DB security group.

                                        @@ -5597,17 +5561,17 @@ pub struct DBSecurityGroup { ///

                                        /// Contains a list of EC2SecurityGroup elements. ///

                                        - pub ec2_security_groups: std::option::Option>, + pub ec2_security_groups: std::option::Option>, ///

                                        /// Contains a list of IPRange elements. ///

                                        - pub ip_ranges: std::option::Option>, + pub ip_ranges: std::option::Option>, ///

                                        The Amazon Resource Name (ARN) for the DB security group.

                                        pub db_security_group_arn: std::option::Option, } -impl std::fmt::Debug for DBSecurityGroup { +impl std::fmt::Debug for DbSecurityGroup { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSecurityGroup"); + let mut formatter = f.debug_struct("DbSecurityGroup"); formatter.field("owner_id", &self.owner_id); formatter.field("db_security_group_name", &self.db_security_group_name); formatter.field( @@ -5621,9 +5585,9 @@ impl std::fmt::Debug for DBSecurityGroup { formatter.finish() } } -/// See [`DBSecurityGroup`](crate::model::DBSecurityGroup) +/// See [`DbSecurityGroup`](crate::model::DbSecurityGroup) pub mod db_security_group { - /// A builder for [`DBSecurityGroup`](crate::model::DBSecurityGroup) + /// A builder for [`DbSecurityGroup`](crate::model::DbSecurityGroup) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5632,8 +5596,8 @@ pub mod db_security_group { pub(crate) db_security_group_description: std::option::Option, pub(crate) vpc_id: std::option::Option, pub(crate) ec2_security_groups: - std::option::Option>, - pub(crate) ip_ranges: std::option::Option>, + std::option::Option>, + pub(crate) ip_ranges: std::option::Option>, pub(crate) db_security_group_arn: std::option::Option, } impl Builder { @@ -5684,7 +5648,7 @@ pub mod db_security_group { } pub fn ec2_security_groups( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.ec2_security_groups.unwrap_or_default(); v.push(input.into()); @@ -5693,12 +5657,12 @@ pub mod db_security_group { } pub fn set_ec2_security_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ec2_security_groups = input; self } - pub fn ip_ranges(mut self, input: impl Into) -> Self { + pub fn ip_ranges(mut self, input: impl Into) -> Self { let mut v = self.ip_ranges.unwrap_or_default(); v.push(input.into()); self.ip_ranges = Some(v); @@ -5706,7 +5670,7 @@ pub mod db_security_group { } pub fn set_ip_ranges( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.ip_ranges = input; self @@ -5723,9 +5687,9 @@ pub mod db_security_group { self.db_security_group_arn = input; self } - /// Consumes the builder and constructs a [`DBSecurityGroup`](crate::model::DBSecurityGroup) - pub fn build(self) -> crate::model::DBSecurityGroup { - crate::model::DBSecurityGroup { + /// Consumes the builder and constructs a [`DbSecurityGroup`](crate::model::DbSecurityGroup) + pub fn build(self) -> crate::model::DbSecurityGroup { + crate::model::DbSecurityGroup { owner_id: self.owner_id, db_security_group_name: self.db_security_group_name, db_security_group_description: self.db_security_group_description, @@ -5737,8 +5701,8 @@ pub mod db_security_group { } } } -impl DBSecurityGroup { - /// Creates a new builder-style object to manufacture [`DBSecurityGroup`](crate::model::DBSecurityGroup) +impl DbSecurityGroup { + /// Creates a new builder-style object to manufacture [`DbSecurityGroup`](crate::model::DbSecurityGroup) pub fn builder() -> crate::model::db_security_group::Builder { crate::model::db_security_group::Builder::default() } @@ -5749,23 +5713,23 @@ impl DBSecurityGroup { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IPRange { +pub struct IpRange { ///

                                        Specifies the status of the IP range. Status can be "authorizing", "authorized", "revoking", and "revoked".

                                        pub status: std::option::Option, ///

                                        Specifies the IP range.

                                        pub cidrip: std::option::Option, } -impl std::fmt::Debug for IPRange { +impl std::fmt::Debug for IpRange { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IPRange"); + let mut formatter = f.debug_struct("IpRange"); formatter.field("status", &self.status); formatter.field("cidrip", &self.cidrip); formatter.finish() } } -/// See [`IPRange`](crate::model::IPRange) +/// See [`IpRange`](crate::model::IpRange) pub mod ip_range { - /// A builder for [`IPRange`](crate::model::IPRange) + /// A builder for [`IpRange`](crate::model::IpRange) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5791,17 +5755,17 @@ pub mod ip_range { self.cidrip = input; self } - /// Consumes the builder and constructs a [`IPRange`](crate::model::IPRange) - pub fn build(self) -> crate::model::IPRange { - crate::model::IPRange { + /// Consumes the builder and constructs a [`IpRange`](crate::model::IpRange) + pub fn build(self) -> crate::model::IpRange { + crate::model::IpRange { status: self.status, cidrip: self.cidrip, } } } } -impl IPRange { - /// Creates a new builder-style object to manufacture [`IPRange`](crate::model::IPRange) +impl IpRange { + /// Creates a new builder-style object to manufacture [`IpRange`](crate::model::IpRange) pub fn builder() -> crate::model::ip_range::Builder { crate::model::ip_range::Builder::default() } @@ -5827,7 +5791,7 @@ impl IPRange { ///
                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EC2SecurityGroup { +pub struct Ec2SecurityGroup { ///

                                      Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".

                                      pub status: std::option::Option, ///

                                      Specifies the name of the EC2 security group.

                                      @@ -5840,9 +5804,9 @@ pub struct EC2SecurityGroup { ///

                                      pub ec2_security_group_owner_id: std::option::Option, } -impl std::fmt::Debug for EC2SecurityGroup { +impl std::fmt::Debug for Ec2SecurityGroup { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EC2SecurityGroup"); + let mut formatter = f.debug_struct("Ec2SecurityGroup"); formatter.field("status", &self.status); formatter.field("ec2_security_group_name", &self.ec2_security_group_name); formatter.field("ec2_security_group_id", &self.ec2_security_group_id); @@ -5853,9 +5817,9 @@ impl std::fmt::Debug for EC2SecurityGroup { formatter.finish() } } -/// See [`EC2SecurityGroup`](crate::model::EC2SecurityGroup) +/// See [`Ec2SecurityGroup`](crate::model::Ec2SecurityGroup) pub mod ec2_security_group { - /// A builder for [`EC2SecurityGroup`](crate::model::EC2SecurityGroup) + /// A builder for [`Ec2SecurityGroup`](crate::model::Ec2SecurityGroup) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5916,9 +5880,9 @@ pub mod ec2_security_group { self.ec2_security_group_owner_id = input; self } - /// Consumes the builder and constructs a [`EC2SecurityGroup`](crate::model::EC2SecurityGroup) - pub fn build(self) -> crate::model::EC2SecurityGroup { - crate::model::EC2SecurityGroup { + /// Consumes the builder and constructs a [`Ec2SecurityGroup`](crate::model::Ec2SecurityGroup) + pub fn build(self) -> crate::model::Ec2SecurityGroup { + crate::model::Ec2SecurityGroup { status: self.status, ec2_security_group_name: self.ec2_security_group_name, ec2_security_group_id: self.ec2_security_group_id, @@ -5927,8 +5891,8 @@ pub mod ec2_security_group { } } } -impl EC2SecurityGroup { - /// Creates a new builder-style object to manufacture [`EC2SecurityGroup`](crate::model::EC2SecurityGroup) +impl Ec2SecurityGroup { + /// Creates a new builder-style object to manufacture [`Ec2SecurityGroup`](crate::model::Ec2SecurityGroup) pub fn builder() -> crate::model::ec2_security_group::Builder { crate::model::ec2_security_group::Builder::default() } @@ -6333,7 +6297,7 @@ impl std::convert::From<&str> for ApplyMethod { impl std::str::FromStr for ApplyMethod { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ApplyMethod::from(s)) } } @@ -6351,15 +6315,6 @@ impl AsRef for ApplyMethod { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ApplyMethod { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

                                      #[non_exhaustive] @@ -6972,7 +6927,7 @@ impl std::convert::From<&str> for FailoverStatus { impl std::str::FromStr for FailoverStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FailoverStatus::from(s)) } } @@ -6991,15 +6946,6 @@ impl AsRef for FailoverStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FailoverStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      /// A data structure with information about any primary and @@ -7132,7 +7078,7 @@ impl GlobalClusterMember { ///

                                      This data type is used as a response element in the DescribeDBProxyTargets action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyTarget { +pub struct DbProxyTarget { ///

                                      The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.

                                      pub target_arn: std::option::Option, ///

                                      The writer endpoint for the RDS DB instance or Aurora DB cluster.

                                      @@ -7151,9 +7097,9 @@ pub struct DBProxyTarget { ///

                                      Information about the connection health of the RDS Proxy target.

                                      pub target_health: std::option::Option, } -impl std::fmt::Debug for DBProxyTarget { +impl std::fmt::Debug for DbProxyTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyTarget"); + let mut formatter = f.debug_struct("DbProxyTarget"); formatter.field("target_arn", &self.target_arn); formatter.field("endpoint", &self.endpoint); formatter.field("tracked_cluster_id", &self.tracked_cluster_id); @@ -7165,9 +7111,9 @@ impl std::fmt::Debug for DBProxyTarget { formatter.finish() } } -/// See [`DBProxyTarget`](crate::model::DBProxyTarget) +/// See [`DbProxyTarget`](crate::model::DbProxyTarget) pub mod db_proxy_target { - /// A builder for [`DBProxyTarget`](crate::model::DBProxyTarget) + /// A builder for [`DbProxyTarget`](crate::model::DbProxyTarget) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7263,9 +7209,9 @@ pub mod db_proxy_target { self.target_health = input; self } - /// Consumes the builder and constructs a [`DBProxyTarget`](crate::model::DBProxyTarget) - pub fn build(self) -> crate::model::DBProxyTarget { - crate::model::DBProxyTarget { + /// Consumes the builder and constructs a [`DbProxyTarget`](crate::model::DbProxyTarget) + pub fn build(self) -> crate::model::DbProxyTarget { + crate::model::DbProxyTarget { target_arn: self.target_arn, endpoint: self.endpoint, tracked_cluster_id: self.tracked_cluster_id, @@ -7278,8 +7224,8 @@ pub mod db_proxy_target { } } } -impl DBProxyTarget { - /// Creates a new builder-style object to manufacture [`DBProxyTarget`](crate::model::DBProxyTarget) +impl DbProxyTarget { + /// Creates a new builder-style object to manufacture [`DbProxyTarget`](crate::model::DbProxyTarget) pub fn builder() -> crate::model::db_proxy_target::Builder { crate::model::db_proxy_target::Builder::default() } @@ -7409,7 +7355,7 @@ impl std::convert::From<&str> for TargetHealthReason { impl std::str::FromStr for TargetHealthReason { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetHealthReason::from(s)) } } @@ -7430,15 +7376,6 @@ impl AsRef for TargetHealthReason { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetHealthReason { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7470,7 +7407,7 @@ impl std::convert::From<&str> for TargetState { impl std::str::FromStr for TargetState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetState::from(s)) } } @@ -7489,15 +7426,6 @@ impl AsRef for TargetState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// **NOTE:** `TargetRole::Unknown` has been renamed to `::UnknownValue`. #[non_exhaustive] @@ -7531,7 +7459,7 @@ impl std::convert::From<&str> for TargetRole { impl std::str::FromStr for TargetRole { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetRole::from(s)) } } @@ -7550,15 +7478,6 @@ impl AsRef for TargetRole { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetRole { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7590,7 +7509,7 @@ impl std::convert::From<&str> for TargetType { impl std::str::FromStr for TargetType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetType::from(s)) } } @@ -7609,15 +7528,6 @@ impl AsRef for TargetType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      /// This data type is used as a response element in the @@ -7626,7 +7536,7 @@ impl<'de> serde::Deserialize<'de> for TargetType { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstance { +pub struct ReservedDbInstance { ///

                                      The unique identifier for the reservation.

                                      pub reserved_db_instance_id: std::option::Option, ///

                                      The offering identifier.

                                      @@ -7663,9 +7573,9 @@ pub struct ReservedDBInstance { /// pub lease_id: std::option::Option, } -impl std::fmt::Debug for ReservedDBInstance { +impl std::fmt::Debug for ReservedDbInstance { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstance"); + let mut formatter = f.debug_struct("ReservedDbInstance"); formatter.field("reserved_db_instance_id", &self.reserved_db_instance_id); formatter.field( "reserved_db_instances_offering_id", @@ -7688,9 +7598,9 @@ impl std::fmt::Debug for ReservedDBInstance { formatter.finish() } } -/// See [`ReservedDBInstance`](crate::model::ReservedDBInstance) +/// See [`ReservedDbInstance`](crate::model::ReservedDbInstance) pub mod reserved_db_instance { - /// A builder for [`ReservedDBInstance`](crate::model::ReservedDBInstance) + /// A builder for [`ReservedDbInstance`](crate::model::ReservedDbInstance) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7891,9 +7801,9 @@ pub mod reserved_db_instance { self.lease_id = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstance`](crate::model::ReservedDBInstance) - pub fn build(self) -> crate::model::ReservedDBInstance { - crate::model::ReservedDBInstance { + /// Consumes the builder and constructs a [`ReservedDbInstance`](crate::model::ReservedDbInstance) + pub fn build(self) -> crate::model::ReservedDbInstance { + crate::model::ReservedDbInstance { reserved_db_instance_id: self.reserved_db_instance_id, reserved_db_instances_offering_id: self.reserved_db_instances_offering_id, db_instance_class: self.db_instance_class, @@ -7914,8 +7824,8 @@ pub mod reserved_db_instance { } } } -impl ReservedDBInstance { - /// Creates a new builder-style object to manufacture [`ReservedDBInstance`](crate::model::ReservedDBInstance) +impl ReservedDbInstance { + /// Creates a new builder-style object to manufacture [`ReservedDbInstance`](crate::model::ReservedDbInstance) pub fn builder() -> crate::model::reserved_db_instance::Builder { crate::model::reserved_db_instance::Builder::default() } @@ -8196,7 +8106,7 @@ pub struct Option { pub option_settings: std::option::Option>, ///

                                      If the option requires access to a port, then this DB security group allows access to the port.

                                      pub db_security_group_memberships: - std::option::Option>, + std::option::Option>, ///

                                      If the option requires access to a port, then this VPC security group allows access to the port.

                                      pub vpc_security_group_memberships: std::option::Option>, @@ -8236,7 +8146,7 @@ pub mod option { pub(crate) option_version: std::option::Option, pub(crate) option_settings: std::option::Option>, pub(crate) db_security_group_memberships: - std::option::Option>, + std::option::Option>, pub(crate) vpc_security_group_memberships: std::option::Option>, } @@ -8316,7 +8226,7 @@ pub mod option { } pub fn db_security_group_memberships( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_security_group_memberships.unwrap_or_default(); v.push(input.into()); @@ -8325,7 +8235,7 @@ pub mod option { } pub fn set_db_security_group_memberships( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_security_group_memberships = input; self @@ -8687,30 +8597,30 @@ impl OptionConfiguration { /// API action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSnapshotAttributesResult { +pub struct DbSnapshotAttributesResult { ///

                                      The identifier of the manual DB snapshot that the attributes apply to.

                                      pub db_snapshot_identifier: std::option::Option, ///

                                      The list of attributes and values for the manual DB snapshot.

                                      pub db_snapshot_attributes: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for DBSnapshotAttributesResult { +impl std::fmt::Debug for DbSnapshotAttributesResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSnapshotAttributesResult"); + let mut formatter = f.debug_struct("DbSnapshotAttributesResult"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("db_snapshot_attributes", &self.db_snapshot_attributes); formatter.finish() } } -/// See [`DBSnapshotAttributesResult`](crate::model::DBSnapshotAttributesResult) +/// See [`DbSnapshotAttributesResult`](crate::model::DbSnapshotAttributesResult) pub mod db_snapshot_attributes_result { - /// A builder for [`DBSnapshotAttributesResult`](crate::model::DBSnapshotAttributesResult) + /// A builder for [`DbSnapshotAttributesResult`](crate::model::DbSnapshotAttributesResult) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_snapshot_identifier: std::option::Option, pub(crate) db_snapshot_attributes: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                      The identifier of the manual DB snapshot that the attributes apply to.

                                      @@ -8727,7 +8637,7 @@ pub mod db_snapshot_attributes_result { } pub fn db_snapshot_attributes( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_snapshot_attributes.unwrap_or_default(); v.push(input.into()); @@ -8736,22 +8646,22 @@ pub mod db_snapshot_attributes_result { } pub fn set_db_snapshot_attributes( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_snapshot_attributes = input; self } - /// Consumes the builder and constructs a [`DBSnapshotAttributesResult`](crate::model::DBSnapshotAttributesResult) - pub fn build(self) -> crate::model::DBSnapshotAttributesResult { - crate::model::DBSnapshotAttributesResult { + /// Consumes the builder and constructs a [`DbSnapshotAttributesResult`](crate::model::DbSnapshotAttributesResult) + pub fn build(self) -> crate::model::DbSnapshotAttributesResult { + crate::model::DbSnapshotAttributesResult { db_snapshot_identifier: self.db_snapshot_identifier, db_snapshot_attributes: self.db_snapshot_attributes, } } } } -impl DBSnapshotAttributesResult { - /// Creates a new builder-style object to manufacture [`DBSnapshotAttributesResult`](crate::model::DBSnapshotAttributesResult) +impl DbSnapshotAttributesResult { + /// Creates a new builder-style object to manufacture [`DbSnapshotAttributesResult`](crate::model::DbSnapshotAttributesResult) pub fn builder() -> crate::model::db_snapshot_attributes_result::Builder { crate::model::db_snapshot_attributes_result::Builder::default() } @@ -8763,7 +8673,7 @@ impl DBSnapshotAttributesResult { /// API.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSnapshotAttribute { +pub struct DbSnapshotAttribute { ///

                                      The name of the manual DB snapshot attribute.

                                      ///

                                      The attribute named restore refers to the list of AWS accounts that /// have permission to copy or restore the manual DB cluster snapshot. For more information, @@ -8777,17 +8687,17 @@ pub struct DBSnapshotAttribute { /// is public and available for any AWS account to copy or restore.

                                      pub attribute_values: std::option::Option>, } -impl std::fmt::Debug for DBSnapshotAttribute { +impl std::fmt::Debug for DbSnapshotAttribute { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSnapshotAttribute"); + let mut formatter = f.debug_struct("DbSnapshotAttribute"); formatter.field("attribute_name", &self.attribute_name); formatter.field("attribute_values", &self.attribute_values); formatter.finish() } } -/// See [`DBSnapshotAttribute`](crate::model::DBSnapshotAttribute) +/// See [`DbSnapshotAttribute`](crate::model::DbSnapshotAttribute) pub mod db_snapshot_attribute { - /// A builder for [`DBSnapshotAttribute`](crate::model::DBSnapshotAttribute) + /// A builder for [`DbSnapshotAttribute`](crate::model::DbSnapshotAttribute) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8824,17 +8734,17 @@ pub mod db_snapshot_attribute { self.attribute_values = input; self } - /// Consumes the builder and constructs a [`DBSnapshotAttribute`](crate::model::DBSnapshotAttribute) - pub fn build(self) -> crate::model::DBSnapshotAttribute { - crate::model::DBSnapshotAttribute { + /// Consumes the builder and constructs a [`DbSnapshotAttribute`](crate::model::DbSnapshotAttribute) + pub fn build(self) -> crate::model::DbSnapshotAttribute { + crate::model::DbSnapshotAttribute { attribute_name: self.attribute_name, attribute_values: self.attribute_values, } } } } -impl DBSnapshotAttribute { - /// Creates a new builder-style object to manufacture [`DBSnapshotAttribute`](crate::model::DBSnapshotAttribute) +impl DbSnapshotAttribute { + /// Creates a new builder-style object to manufacture [`DbSnapshotAttribute`](crate::model::DbSnapshotAttribute) pub fn builder() -> crate::model::db_snapshot_attribute::Builder { crate::model::db_snapshot_attribute::Builder::default() } @@ -8847,7 +8757,7 @@ impl DBSnapshotAttribute { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBSnapshot { +pub struct DbSnapshot { ///

                                      Specifies the identifier for the DB snapshot.

                                      pub db_snapshot_identifier: std::option::Option, ///

                                      Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

                                      @@ -8921,9 +8831,9 @@ pub struct DBSnapshot { ///

                                      pub tag_list: std::option::Option>, } -impl std::fmt::Debug for DBSnapshot { +impl std::fmt::Debug for DbSnapshot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBSnapshot"); + let mut formatter = f.debug_struct("DbSnapshot"); formatter.field("db_snapshot_identifier", &self.db_snapshot_identifier); formatter.field("db_instance_identifier", &self.db_instance_identifier); formatter.field("snapshot_create_time", &self.snapshot_create_time); @@ -8962,9 +8872,9 @@ impl std::fmt::Debug for DBSnapshot { formatter.finish() } } -/// See [`DBSnapshot`](crate::model::DBSnapshot) +/// See [`DbSnapshot`](crate::model::DbSnapshot) pub mod db_snapshot { - /// A builder for [`DBSnapshot`](crate::model::DBSnapshot) + /// A builder for [`DbSnapshot`](crate::model::DbSnapshot) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9334,9 +9244,9 @@ pub mod db_snapshot { self.tag_list = input; self } - /// Consumes the builder and constructs a [`DBSnapshot`](crate::model::DBSnapshot) - pub fn build(self) -> crate::model::DBSnapshot { - crate::model::DBSnapshot { + /// Consumes the builder and constructs a [`DbSnapshot`](crate::model::DbSnapshot) + pub fn build(self) -> crate::model::DbSnapshot { + crate::model::DbSnapshot { db_snapshot_identifier: self.db_snapshot_identifier, db_instance_identifier: self.db_instance_identifier, snapshot_create_time: self.snapshot_create_time, @@ -9372,8 +9282,8 @@ pub mod db_snapshot { } } } -impl DBSnapshot { - /// Creates a new builder-style object to manufacture [`DBSnapshot`](crate::model::DBSnapshot) +impl DbSnapshot { + /// Creates a new builder-style object to manufacture [`DbSnapshot`](crate::model::DbSnapshot) pub fn builder() -> crate::model::db_snapshot::Builder { crate::model::db_snapshot::Builder::default() } @@ -9384,7 +9294,7 @@ impl DBSnapshot { ///

                                      This data type is used as a response element in the DescribeDBProxyTargetGroups action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyTargetGroup { +pub struct DbProxyTargetGroup { ///

                                      The identifier for the RDS proxy associated with this target group.

                                      pub db_proxy_name: std::option::Option, ///

                                      The identifier for the target group. This name must be unique for all target groups owned by your AWS account in the specified AWS Region.

                                      @@ -9406,9 +9316,9 @@ pub struct DBProxyTargetGroup { ///

                                      The date and time when the target group was last updated.

                                      pub updated_date: std::option::Option, } -impl std::fmt::Debug for DBProxyTargetGroup { +impl std::fmt::Debug for DbProxyTargetGroup { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyTargetGroup"); + let mut formatter = f.debug_struct("DbProxyTargetGroup"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("target_group_name", &self.target_group_name); formatter.field("target_group_arn", &self.target_group_arn); @@ -9420,9 +9330,9 @@ impl std::fmt::Debug for DBProxyTargetGroup { formatter.finish() } } -/// See [`DBProxyTargetGroup`](crate::model::DBProxyTargetGroup) +/// See [`DbProxyTargetGroup`](crate::model::DbProxyTargetGroup) pub mod db_proxy_target_group { - /// A builder for [`DBProxyTargetGroup`](crate::model::DBProxyTargetGroup) + /// A builder for [`DbProxyTargetGroup`](crate::model::DbProxyTargetGroup) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9534,9 +9444,9 @@ pub mod db_proxy_target_group { self.updated_date = input; self } - /// Consumes the builder and constructs a [`DBProxyTargetGroup`](crate::model::DBProxyTargetGroup) - pub fn build(self) -> crate::model::DBProxyTargetGroup { - crate::model::DBProxyTargetGroup { + /// Consumes the builder and constructs a [`DbProxyTargetGroup`](crate::model::DbProxyTargetGroup) + pub fn build(self) -> crate::model::DbProxyTargetGroup { + crate::model::DbProxyTargetGroup { db_proxy_name: self.db_proxy_name, target_group_name: self.target_group_name, target_group_arn: self.target_group_arn, @@ -9549,8 +9459,8 @@ pub mod db_proxy_target_group { } } } -impl DBProxyTargetGroup { - /// Creates a new builder-style object to manufacture [`DBProxyTargetGroup`](crate::model::DBProxyTargetGroup) +impl DbProxyTargetGroup { + /// Creates a new builder-style object to manufacture [`DbProxyTargetGroup`](crate::model::DbProxyTargetGroup) pub fn builder() -> crate::model::db_proxy_target_group::Builder { crate::model::db_proxy_target_group::Builder::default() } @@ -9861,7 +9771,7 @@ impl ConnectionPoolConfiguration { ///

                                      This data type is used as a response element in the DescribeDBProxyEndpoints operation.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxyEndpoint { +pub struct DbProxyEndpoint { ///

                                      The name for the DB proxy endpoint. An identifier must begin with a letter and /// must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen /// or contain two consecutive hyphens.

                                      @@ -9892,9 +9802,9 @@ pub struct DBProxyEndpoint { /// DB proxy can be either read/write or read-only.

                                      pub is_default: bool, } -impl std::fmt::Debug for DBProxyEndpoint { +impl std::fmt::Debug for DbProxyEndpoint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxyEndpoint"); + let mut formatter = f.debug_struct("DbProxyEndpoint"); formatter.field("db_proxy_endpoint_name", &self.db_proxy_endpoint_name); formatter.field("db_proxy_endpoint_arn", &self.db_proxy_endpoint_arn); formatter.field("db_proxy_name", &self.db_proxy_name); @@ -9909,9 +9819,9 @@ impl std::fmt::Debug for DBProxyEndpoint { formatter.finish() } } -/// See [`DBProxyEndpoint`](crate::model::DBProxyEndpoint) +/// See [`DbProxyEndpoint`](crate::model::DbProxyEndpoint) pub mod db_proxy_endpoint { - /// A builder for [`DBProxyEndpoint`](crate::model::DBProxyEndpoint) + /// A builder for [`DbProxyEndpoint`](crate::model::DbProxyEndpoint) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10060,9 +9970,9 @@ pub mod db_proxy_endpoint { self.is_default = input; self } - /// Consumes the builder and constructs a [`DBProxyEndpoint`](crate::model::DBProxyEndpoint) - pub fn build(self) -> crate::model::DBProxyEndpoint { - crate::model::DBProxyEndpoint { + /// Consumes the builder and constructs a [`DbProxyEndpoint`](crate::model::DbProxyEndpoint) + pub fn build(self) -> crate::model::DbProxyEndpoint { + crate::model::DbProxyEndpoint { db_proxy_endpoint_name: self.db_proxy_endpoint_name, db_proxy_endpoint_arn: self.db_proxy_endpoint_arn, db_proxy_name: self.db_proxy_name, @@ -10078,8 +9988,8 @@ pub mod db_proxy_endpoint { } } } -impl DBProxyEndpoint { - /// Creates a new builder-style object to manufacture [`DBProxyEndpoint`](crate::model::DBProxyEndpoint) +impl DbProxyEndpoint { + /// Creates a new builder-style object to manufacture [`DbProxyEndpoint`](crate::model::DbProxyEndpoint) pub fn builder() -> crate::model::db_proxy_endpoint::Builder { crate::model::db_proxy_endpoint::Builder::default() } @@ -10113,7 +10023,7 @@ impl std::convert::From<&str> for DbProxyEndpointTargetRole { impl std::str::FromStr for DbProxyEndpointTargetRole { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DbProxyEndpointTargetRole::from(s)) } } @@ -10131,15 +10041,6 @@ impl AsRef for DbProxyEndpointTargetRole { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DbProxyEndpointTargetRole { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10177,7 +10078,7 @@ impl std::convert::From<&str> for DbProxyEndpointStatus { impl std::str::FromStr for DbProxyEndpointStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DbProxyEndpointStatus::from(s)) } } @@ -10199,21 +10100,12 @@ impl AsRef for DbProxyEndpointStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DbProxyEndpointStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      The data structure representing a proxy managed by the RDS Proxy.

                                      ///

                                      This data type is used as a response element in the DescribeDBProxies action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBProxy { +pub struct DbProxy { ///

                                      The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.

                                      pub db_proxy_name: std::option::Option, ///

                                      The Amazon Resource Name (ARN) for the proxy.

                                      @@ -10258,9 +10150,9 @@ pub struct DBProxy { ///

                                      The date and time when the proxy was last updated.

                                      pub updated_date: std::option::Option, } -impl std::fmt::Debug for DBProxy { +impl std::fmt::Debug for DbProxy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBProxy"); + let mut formatter = f.debug_struct("DbProxy"); formatter.field("db_proxy_name", &self.db_proxy_name); formatter.field("db_proxy_arn", &self.db_proxy_arn); formatter.field("status", &self.status); @@ -10279,9 +10171,9 @@ impl std::fmt::Debug for DBProxy { formatter.finish() } } -/// See [`DBProxy`](crate::model::DBProxy) +/// See [`DbProxy`](crate::model::DbProxy) pub mod db_proxy { - /// A builder for [`DBProxy`](crate::model::DBProxy) + /// A builder for [`DbProxy`](crate::model::DbProxy) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10476,9 +10368,9 @@ pub mod db_proxy { self.updated_date = input; self } - /// Consumes the builder and constructs a [`DBProxy`](crate::model::DBProxy) - pub fn build(self) -> crate::model::DBProxy { - crate::model::DBProxy { + /// Consumes the builder and constructs a [`DbProxy`](crate::model::DbProxy) + pub fn build(self) -> crate::model::DbProxy { + crate::model::DbProxy { db_proxy_name: self.db_proxy_name, db_proxy_arn: self.db_proxy_arn, status: self.status, @@ -10498,8 +10390,8 @@ pub mod db_proxy { } } } -impl DBProxy { - /// Creates a new builder-style object to manufacture [`DBProxy`](crate::model::DBProxy) +impl DbProxy { + /// Creates a new builder-style object to manufacture [`DbProxy`](crate::model::DbProxy) pub fn builder() -> crate::model::db_proxy::Builder { crate::model::db_proxy::Builder::default() } @@ -10644,7 +10536,7 @@ impl std::convert::From<&str> for IamAuthMode { impl std::str::FromStr for IamAuthMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IamAuthMode::from(s)) } } @@ -10662,15 +10554,6 @@ impl AsRef for IamAuthMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IamAuthMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10698,7 +10581,7 @@ impl std::convert::From<&str> for AuthScheme { impl std::str::FromStr for AuthScheme { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AuthScheme::from(s)) } } @@ -10715,15 +10598,6 @@ impl AsRef for AuthScheme { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AuthScheme { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10767,7 +10641,7 @@ impl std::convert::From<&str> for DbProxyStatus { impl std::str::FromStr for DbProxyStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DbProxyStatus::from(s)) } } @@ -10792,15 +10666,6 @@ impl AsRef for DbProxyStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DbProxyStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      Specifies the details of authentication used by a proxy to log in as a specific database user.

                                      #[non_exhaustive] @@ -10995,16 +10860,16 @@ impl CloudwatchLogsExportConfiguration { /// API action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterSnapshotAttributesResult { +pub struct DbClusterSnapshotAttributesResult { ///

                                      The identifier of the manual DB cluster snapshot that the attributes apply to.

                                      pub db_cluster_snapshot_identifier: std::option::Option, ///

                                      The list of attributes and values for the manual DB cluster snapshot.

                                      pub db_cluster_snapshot_attributes: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for DBClusterSnapshotAttributesResult { +impl std::fmt::Debug for DbClusterSnapshotAttributesResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterSnapshotAttributesResult"); + let mut formatter = f.debug_struct("DbClusterSnapshotAttributesResult"); formatter.field( "db_cluster_snapshot_identifier", &self.db_cluster_snapshot_identifier, @@ -11016,15 +10881,15 @@ impl std::fmt::Debug for DBClusterSnapshotAttributesResult { formatter.finish() } } -/// See [`DBClusterSnapshotAttributesResult`](crate::model::DBClusterSnapshotAttributesResult) +/// See [`DbClusterSnapshotAttributesResult`](crate::model::DbClusterSnapshotAttributesResult) pub mod db_cluster_snapshot_attributes_result { - /// A builder for [`DBClusterSnapshotAttributesResult`](crate::model::DBClusterSnapshotAttributesResult) + /// A builder for [`DbClusterSnapshotAttributesResult`](crate::model::DbClusterSnapshotAttributesResult) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_cluster_snapshot_identifier: std::option::Option, pub(crate) db_cluster_snapshot_attributes: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                      The identifier of the manual DB cluster snapshot that the attributes apply to.

                                      @@ -11044,7 +10909,7 @@ pub mod db_cluster_snapshot_attributes_result { } pub fn db_cluster_snapshot_attributes( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_snapshot_attributes.unwrap_or_default(); v.push(input.into()); @@ -11053,22 +10918,22 @@ pub mod db_cluster_snapshot_attributes_result { } pub fn set_db_cluster_snapshot_attributes( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_snapshot_attributes = input; self } - /// Consumes the builder and constructs a [`DBClusterSnapshotAttributesResult`](crate::model::DBClusterSnapshotAttributesResult) - pub fn build(self) -> crate::model::DBClusterSnapshotAttributesResult { - crate::model::DBClusterSnapshotAttributesResult { + /// Consumes the builder and constructs a [`DbClusterSnapshotAttributesResult`](crate::model::DbClusterSnapshotAttributesResult) + pub fn build(self) -> crate::model::DbClusterSnapshotAttributesResult { + crate::model::DbClusterSnapshotAttributesResult { db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, db_cluster_snapshot_attributes: self.db_cluster_snapshot_attributes, } } } } -impl DBClusterSnapshotAttributesResult { - /// Creates a new builder-style object to manufacture [`DBClusterSnapshotAttributesResult`](crate::model::DBClusterSnapshotAttributesResult) +impl DbClusterSnapshotAttributesResult { + /// Creates a new builder-style object to manufacture [`DbClusterSnapshotAttributesResult`](crate::model::DbClusterSnapshotAttributesResult) pub fn builder() -> crate::model::db_cluster_snapshot_attributes_result::Builder { crate::model::db_cluster_snapshot_attributes_result::Builder::default() } @@ -11080,7 +10945,7 @@ impl DBClusterSnapshotAttributesResult { /// API action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterSnapshotAttribute { +pub struct DbClusterSnapshotAttribute { ///

                                      The name of the manual DB cluster snapshot attribute.

                                      ///

                                      The attribute named restore refers to the list of AWS accounts that /// have permission to copy or restore the manual DB cluster snapshot. For more information, @@ -11094,17 +10959,17 @@ pub struct DBClusterSnapshotAttribute { /// is public and available for any AWS account to copy or restore.

                                      pub attribute_values: std::option::Option>, } -impl std::fmt::Debug for DBClusterSnapshotAttribute { +impl std::fmt::Debug for DbClusterSnapshotAttribute { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterSnapshotAttribute"); + let mut formatter = f.debug_struct("DbClusterSnapshotAttribute"); formatter.field("attribute_name", &self.attribute_name); formatter.field("attribute_values", &self.attribute_values); formatter.finish() } } -/// See [`DBClusterSnapshotAttribute`](crate::model::DBClusterSnapshotAttribute) +/// See [`DbClusterSnapshotAttribute`](crate::model::DbClusterSnapshotAttribute) pub mod db_cluster_snapshot_attribute { - /// A builder for [`DBClusterSnapshotAttribute`](crate::model::DBClusterSnapshotAttribute) + /// A builder for [`DbClusterSnapshotAttribute`](crate::model::DbClusterSnapshotAttribute) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11141,17 +11006,17 @@ pub mod db_cluster_snapshot_attribute { self.attribute_values = input; self } - /// Consumes the builder and constructs a [`DBClusterSnapshotAttribute`](crate::model::DBClusterSnapshotAttribute) - pub fn build(self) -> crate::model::DBClusterSnapshotAttribute { - crate::model::DBClusterSnapshotAttribute { + /// Consumes the builder and constructs a [`DbClusterSnapshotAttribute`](crate::model::DbClusterSnapshotAttribute) + pub fn build(self) -> crate::model::DbClusterSnapshotAttribute { + crate::model::DbClusterSnapshotAttribute { attribute_name: self.attribute_name, attribute_values: self.attribute_values, } } } } -impl DBClusterSnapshotAttribute { - /// Creates a new builder-style object to manufacture [`DBClusterSnapshotAttribute`](crate::model::DBClusterSnapshotAttribute) +impl DbClusterSnapshotAttribute { + /// Creates a new builder-style object to manufacture [`DbClusterSnapshotAttribute`](crate::model::DbClusterSnapshotAttribute) pub fn builder() -> crate::model::db_cluster_snapshot_attribute::Builder { crate::model::db_cluster_snapshot_attribute::Builder::default() } @@ -11475,7 +11340,7 @@ impl InstallationMediaFailureCause { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidDBInstanceModificationsMessage { +pub struct ValidDbInstanceModificationsMessage { ///

                                      Valid storage options for your DB instance. ///

                                      pub storage: std::option::Option>, @@ -11484,17 +11349,17 @@ pub struct ValidDBInstanceModificationsMessage { pub valid_processor_features: std::option::Option>, } -impl std::fmt::Debug for ValidDBInstanceModificationsMessage { +impl std::fmt::Debug for ValidDbInstanceModificationsMessage { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidDBInstanceModificationsMessage"); + let mut formatter = f.debug_struct("ValidDbInstanceModificationsMessage"); formatter.field("storage", &self.storage); formatter.field("valid_processor_features", &self.valid_processor_features); formatter.finish() } } -/// See [`ValidDBInstanceModificationsMessage`](crate::model::ValidDBInstanceModificationsMessage) +/// See [`ValidDbInstanceModificationsMessage`](crate::model::ValidDbInstanceModificationsMessage) pub mod valid_db_instance_modifications_message { - /// A builder for [`ValidDBInstanceModificationsMessage`](crate::model::ValidDBInstanceModificationsMessage) + /// A builder for [`ValidDbInstanceModificationsMessage`](crate::model::ValidDbInstanceModificationsMessage) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -11532,17 +11397,17 @@ pub mod valid_db_instance_modifications_message { self.valid_processor_features = input; self } - /// Consumes the builder and constructs a [`ValidDBInstanceModificationsMessage`](crate::model::ValidDBInstanceModificationsMessage) - pub fn build(self) -> crate::model::ValidDBInstanceModificationsMessage { - crate::model::ValidDBInstanceModificationsMessage { + /// Consumes the builder and constructs a [`ValidDbInstanceModificationsMessage`](crate::model::ValidDbInstanceModificationsMessage) + pub fn build(self) -> crate::model::ValidDbInstanceModificationsMessage { + crate::model::ValidDbInstanceModificationsMessage { storage: self.storage, valid_processor_features: self.valid_processor_features, } } } } -impl ValidDBInstanceModificationsMessage { - /// Creates a new builder-style object to manufacture [`ValidDBInstanceModificationsMessage`](crate::model::ValidDBInstanceModificationsMessage) +impl ValidDbInstanceModificationsMessage { + /// Creates a new builder-style object to manufacture [`ValidDbInstanceModificationsMessage`](crate::model::ValidDbInstanceModificationsMessage) pub fn builder() -> crate::model::valid_db_instance_modifications_message::Builder { crate::model::valid_db_instance_modifications_message::Builder::default() } @@ -12026,7 +11891,7 @@ impl SourceRegion { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReservedDBInstancesOffering { +pub struct ReservedDbInstancesOffering { ///

                                      The offering identifier.

                                      pub reserved_db_instances_offering_id: std::option::Option, ///

                                      The DB instance class for the reserved DB instance.

                                      @@ -12048,9 +11913,9 @@ pub struct ReservedDBInstancesOffering { ///

                                      The recurring price charged to run this reserved DB instance.

                                      pub recurring_charges: std::option::Option>, } -impl std::fmt::Debug for ReservedDBInstancesOffering { +impl std::fmt::Debug for ReservedDbInstancesOffering { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReservedDBInstancesOffering"); + let mut formatter = f.debug_struct("ReservedDbInstancesOffering"); formatter.field( "reserved_db_instances_offering_id", &self.reserved_db_instances_offering_id, @@ -12067,9 +11932,9 @@ impl std::fmt::Debug for ReservedDBInstancesOffering { formatter.finish() } } -/// See [`ReservedDBInstancesOffering`](crate::model::ReservedDBInstancesOffering) +/// See [`ReservedDbInstancesOffering`](crate::model::ReservedDbInstancesOffering) pub mod reserved_db_instances_offering { - /// A builder for [`ReservedDBInstancesOffering`](crate::model::ReservedDBInstancesOffering) + /// A builder for [`ReservedDbInstancesOffering`](crate::model::ReservedDbInstancesOffering) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12201,9 +12066,9 @@ pub mod reserved_db_instances_offering { self.recurring_charges = input; self } - /// Consumes the builder and constructs a [`ReservedDBInstancesOffering`](crate::model::ReservedDBInstancesOffering) - pub fn build(self) -> crate::model::ReservedDBInstancesOffering { - crate::model::ReservedDBInstancesOffering { + /// Consumes the builder and constructs a [`ReservedDbInstancesOffering`](crate::model::ReservedDbInstancesOffering) + pub fn build(self) -> crate::model::ReservedDbInstancesOffering { + crate::model::ReservedDbInstancesOffering { reserved_db_instances_offering_id: self.reserved_db_instances_offering_id, db_instance_class: self.db_instance_class, duration: self.duration.unwrap_or_default(), @@ -12218,8 +12083,8 @@ pub mod reserved_db_instances_offering { } } } -impl ReservedDBInstancesOffering { - /// Creates a new builder-style object to manufacture [`ReservedDBInstancesOffering`](crate::model::ReservedDBInstancesOffering) +impl ReservedDbInstancesOffering { + /// Creates a new builder-style object to manufacture [`ReservedDbInstancesOffering`](crate::model::ReservedDbInstancesOffering) pub fn builder() -> crate::model::reserved_db_instances_offering::Builder { crate::model::reserved_db_instances_offering::Builder::default() } @@ -12460,7 +12325,7 @@ impl PendingMaintenanceAction { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OrderableDBInstanceOption { +pub struct OrderableDbInstanceOption { ///

                                      The engine type of a DB instance.

                                      pub engine: std::option::Option, ///

                                      The engine version of a DB instance.

                                      @@ -12520,9 +12385,9 @@ pub struct OrderableDBInstanceOption { ///

                                      A value that indicates whether you can use Aurora global databases with a specific combination of other DB engine attributes.

                                      pub supports_global_databases: bool, } -impl std::fmt::Debug for OrderableDBInstanceOption { +impl std::fmt::Debug for OrderableDbInstanceOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OrderableDBInstanceOption"); + let mut formatter = f.debug_struct("OrderableDbInstanceOption"); formatter.field("engine", &self.engine); formatter.field("engine_version", &self.engine_version); formatter.field("db_instance_class", &self.db_instance_class); @@ -12574,9 +12439,9 @@ impl std::fmt::Debug for OrderableDBInstanceOption { formatter.finish() } } -/// See [`OrderableDBInstanceOption`](crate::model::OrderableDBInstanceOption) +/// See [`OrderableDbInstanceOption`](crate::model::OrderableDbInstanceOption) pub mod orderable_db_instance_option { - /// A builder for [`OrderableDBInstanceOption`](crate::model::OrderableDBInstanceOption) + /// A builder for [`OrderableDbInstanceOption`](crate::model::OrderableDbInstanceOption) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -12902,9 +12767,9 @@ pub mod orderable_db_instance_option { self.supports_global_databases = input; self } - /// Consumes the builder and constructs a [`OrderableDBInstanceOption`](crate::model::OrderableDBInstanceOption) - pub fn build(self) -> crate::model::OrderableDBInstanceOption { - crate::model::OrderableDBInstanceOption { + /// Consumes the builder and constructs a [`OrderableDbInstanceOption`](crate::model::OrderableDbInstanceOption) + pub fn build(self) -> crate::model::OrderableDbInstanceOption { + crate::model::OrderableDbInstanceOption { engine: self.engine, engine_version: self.engine_version, db_instance_class: self.db_instance_class, @@ -12940,8 +12805,8 @@ pub mod orderable_db_instance_option { } } } -impl OrderableDBInstanceOption { - /// Creates a new builder-style object to manufacture [`OrderableDBInstanceOption`](crate::model::OrderableDBInstanceOption) +impl OrderableDbInstanceOption { + /// Creates a new builder-style object to manufacture [`OrderableDbInstanceOption`](crate::model::OrderableDbInstanceOption) pub fn builder() -> crate::model::orderable_db_instance_option::Builder { crate::model::orderable_db_instance_option::Builder::default() } @@ -14221,7 +14086,7 @@ impl std::convert::From<&str> for SourceType { impl std::str::FromStr for SourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SourceType::from(s)) } } @@ -14243,15 +14108,6 @@ impl AsRef for SourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      Contains the results of a successful invocation of the DescribeEventCategories operation.

                                      #[non_exhaustive] @@ -14420,7 +14276,7 @@ impl EngineDefaults { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBParameterGroup { +pub struct DbParameterGroup { ///

                                      The name of the DB parameter group.

                                      pub db_parameter_group_name: std::option::Option, ///

                                      The name of the DB parameter group family that this DB parameter group is compatible with.

                                      @@ -14430,9 +14286,9 @@ pub struct DBParameterGroup { ///

                                      The Amazon Resource Name (ARN) for the DB parameter group.

                                      pub db_parameter_group_arn: std::option::Option, } -impl std::fmt::Debug for DBParameterGroup { +impl std::fmt::Debug for DbParameterGroup { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBParameterGroup"); + let mut formatter = f.debug_struct("DbParameterGroup"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.field("db_parameter_group_family", &self.db_parameter_group_family); formatter.field("description", &self.description); @@ -14440,9 +14296,9 @@ impl std::fmt::Debug for DBParameterGroup { formatter.finish() } } -/// See [`DBParameterGroup`](crate::model::DBParameterGroup) +/// See [`DbParameterGroup`](crate::model::DbParameterGroup) pub mod db_parameter_group { - /// A builder for [`DBParameterGroup`](crate::model::DBParameterGroup) + /// A builder for [`DbParameterGroup`](crate::model::DbParameterGroup) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14497,9 +14353,9 @@ pub mod db_parameter_group { self.db_parameter_group_arn = input; self } - /// Consumes the builder and constructs a [`DBParameterGroup`](crate::model::DBParameterGroup) - pub fn build(self) -> crate::model::DBParameterGroup { - crate::model::DBParameterGroup { + /// Consumes the builder and constructs a [`DbParameterGroup`](crate::model::DbParameterGroup) + pub fn build(self) -> crate::model::DbParameterGroup { + crate::model::DbParameterGroup { db_parameter_group_name: self.db_parameter_group_name, db_parameter_group_family: self.db_parameter_group_family, description: self.description, @@ -14508,8 +14364,8 @@ pub mod db_parameter_group { } } } -impl DBParameterGroup { - /// Creates a new builder-style object to manufacture [`DBParameterGroup`](crate::model::DBParameterGroup) +impl DbParameterGroup { + /// Creates a new builder-style object to manufacture [`DbParameterGroup`](crate::model::DbParameterGroup) pub fn builder() -> crate::model::db_parameter_group::Builder { crate::model::db_parameter_group::Builder::default() } @@ -14518,7 +14374,7 @@ impl DBParameterGroup { ///

                                      This data type is used as a response element to DescribeDBLogFiles.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBLogFilesDetails { +pub struct DescribeDbLogFilesDetails { ///

                                      The name of the log file for the specified DB instance.

                                      pub log_file_name: std::option::Option, ///

                                      A POSIX timestamp when the last log entry was written.

                                      @@ -14526,18 +14382,18 @@ pub struct DescribeDBLogFilesDetails { ///

                                      The size, in bytes, of the log file for the specified DB instance.

                                      pub size: i64, } -impl std::fmt::Debug for DescribeDBLogFilesDetails { +impl std::fmt::Debug for DescribeDbLogFilesDetails { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBLogFilesDetails"); + let mut formatter = f.debug_struct("DescribeDbLogFilesDetails"); formatter.field("log_file_name", &self.log_file_name); formatter.field("last_written", &self.last_written); formatter.field("size", &self.size); formatter.finish() } } -/// See [`DescribeDBLogFilesDetails`](crate::model::DescribeDBLogFilesDetails) +/// See [`DescribeDbLogFilesDetails`](crate::model::DescribeDbLogFilesDetails) pub mod describe_db_log_files_details { - /// A builder for [`DescribeDBLogFilesDetails`](crate::model::DescribeDBLogFilesDetails) + /// A builder for [`DescribeDbLogFilesDetails`](crate::model::DescribeDbLogFilesDetails) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14576,9 +14432,9 @@ pub mod describe_db_log_files_details { self.size = input; self } - /// Consumes the builder and constructs a [`DescribeDBLogFilesDetails`](crate::model::DescribeDBLogFilesDetails) - pub fn build(self) -> crate::model::DescribeDBLogFilesDetails { - crate::model::DescribeDBLogFilesDetails { + /// Consumes the builder and constructs a [`DescribeDbLogFilesDetails`](crate::model::DescribeDbLogFilesDetails) + pub fn build(self) -> crate::model::DescribeDbLogFilesDetails { + crate::model::DescribeDbLogFilesDetails { log_file_name: self.log_file_name, last_written: self.last_written.unwrap_or_default(), size: self.size.unwrap_or_default(), @@ -14586,8 +14442,8 @@ pub mod describe_db_log_files_details { } } } -impl DescribeDBLogFilesDetails { - /// Creates a new builder-style object to manufacture [`DescribeDBLogFilesDetails`](crate::model::DescribeDBLogFilesDetails) +impl DescribeDbLogFilesDetails { + /// Creates a new builder-style object to manufacture [`DescribeDbLogFilesDetails`](crate::model::DescribeDbLogFilesDetails) pub fn builder() -> crate::model::describe_db_log_files_details::Builder { crate::model::describe_db_log_files_details::Builder::default() } @@ -14598,7 +14454,7 @@ impl DescribeDBLogFilesDetails { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBEngineVersion { +pub struct DbEngineVersion { ///

                                      The name of the database engine.

                                      pub engine: std::option::Option, ///

                                      The version number of the database engine.

                                      @@ -14652,9 +14508,9 @@ pub struct DBEngineVersion { ///

                                      A value that indicates whether you can use Aurora global databases with a specific DB engine version.

                                      pub supports_global_databases: bool, } -impl std::fmt::Debug for DBEngineVersion { +impl std::fmt::Debug for DbEngineVersion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBEngineVersion"); + let mut formatter = f.debug_struct("DbEngineVersion"); formatter.field("engine", &self.engine); formatter.field("engine_version", &self.engine_version); formatter.field("db_parameter_group_family", &self.db_parameter_group_family); @@ -14685,9 +14541,9 @@ impl std::fmt::Debug for DBEngineVersion { formatter.finish() } } -/// See [`DBEngineVersion`](crate::model::DBEngineVersion) +/// See [`DbEngineVersion`](crate::model::DbEngineVersion) pub mod db_engine_version { - /// A builder for [`DBEngineVersion`](crate::model::DBEngineVersion) + /// A builder for [`DbEngineVersion`](crate::model::DbEngineVersion) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14938,9 +14794,9 @@ pub mod db_engine_version { self.supports_global_databases = input; self } - /// Consumes the builder and constructs a [`DBEngineVersion`](crate::model::DBEngineVersion) - pub fn build(self) -> crate::model::DBEngineVersion { - crate::model::DBEngineVersion { + /// Consumes the builder and constructs a [`DbEngineVersion`](crate::model::DbEngineVersion) + pub fn build(self) -> crate::model::DbEngineVersion { + crate::model::DbEngineVersion { engine: self.engine, engine_version: self.engine_version, db_parameter_group_family: self.db_parameter_group_family, @@ -14965,8 +14821,8 @@ pub mod db_engine_version { } } } -impl DBEngineVersion { - /// Creates a new builder-style object to manufacture [`DBEngineVersion`](crate::model::DBEngineVersion) +impl DbEngineVersion { + /// Creates a new builder-style object to manufacture [`DbEngineVersion`](crate::model::DbEngineVersion) pub fn builder() -> crate::model::db_engine_version::Builder { crate::model::db_engine_version::Builder::default() } @@ -15258,7 +15114,7 @@ impl CharacterSet { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterSnapshot { +pub struct DbClusterSnapshot { ///

                                      Provides the list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored.

                                      pub availability_zones: std::option::Option>, ///

                                      Specifies the identifier for the DB cluster snapshot.

                                      @@ -15308,9 +15164,9 @@ pub struct DBClusterSnapshot { ///

                                      pub tag_list: std::option::Option>, } -impl std::fmt::Debug for DBClusterSnapshot { +impl std::fmt::Debug for DbClusterSnapshot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterSnapshot"); + let mut formatter = f.debug_struct("DbClusterSnapshot"); formatter.field("availability_zones", &self.availability_zones); formatter.field( "db_cluster_snapshot_identifier", @@ -15345,9 +15201,9 @@ impl std::fmt::Debug for DBClusterSnapshot { formatter.finish() } } -/// See [`DBClusterSnapshot`](crate::model::DBClusterSnapshot) +/// See [`DbClusterSnapshot`](crate::model::DbClusterSnapshot) pub mod db_cluster_snapshot { - /// A builder for [`DBClusterSnapshot`](crate::model::DBClusterSnapshot) + /// A builder for [`DbClusterSnapshot`](crate::model::DbClusterSnapshot) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15622,9 +15478,9 @@ pub mod db_cluster_snapshot { self.tag_list = input; self } - /// Consumes the builder and constructs a [`DBClusterSnapshot`](crate::model::DBClusterSnapshot) - pub fn build(self) -> crate::model::DBClusterSnapshot { - crate::model::DBClusterSnapshot { + /// Consumes the builder and constructs a [`DbClusterSnapshot`](crate::model::DbClusterSnapshot) + pub fn build(self) -> crate::model::DbClusterSnapshot { + crate::model::DbClusterSnapshot { availability_zones: self.availability_zones, db_cluster_snapshot_identifier: self.db_cluster_snapshot_identifier, db_cluster_identifier: self.db_cluster_identifier, @@ -15653,8 +15509,8 @@ pub mod db_cluster_snapshot { } } } -impl DBClusterSnapshot { - /// Creates a new builder-style object to manufacture [`DBClusterSnapshot`](crate::model::DBClusterSnapshot) +impl DbClusterSnapshot { + /// Creates a new builder-style object to manufacture [`DbClusterSnapshot`](crate::model::DbClusterSnapshot) pub fn builder() -> crate::model::db_cluster_snapshot::Builder { crate::model::db_cluster_snapshot::Builder::default() } @@ -15666,7 +15522,7 @@ impl DBClusterSnapshot { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterParameterGroup { +pub struct DbClusterParameterGroup { ///

                                      The name of the DB cluster parameter group.

                                      pub db_cluster_parameter_group_name: std::option::Option, ///

                                      The name of the DB parameter group family that this DB cluster parameter group is compatible with.

                                      @@ -15676,9 +15532,9 @@ pub struct DBClusterParameterGroup { ///

                                      The Amazon Resource Name (ARN) for the DB cluster parameter group.

                                      pub db_cluster_parameter_group_arn: std::option::Option, } -impl std::fmt::Debug for DBClusterParameterGroup { +impl std::fmt::Debug for DbClusterParameterGroup { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterParameterGroup"); + let mut formatter = f.debug_struct("DbClusterParameterGroup"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -15692,9 +15548,9 @@ impl std::fmt::Debug for DBClusterParameterGroup { formatter.finish() } } -/// See [`DBClusterParameterGroup`](crate::model::DBClusterParameterGroup) +/// See [`DbClusterParameterGroup`](crate::model::DbClusterParameterGroup) pub mod db_cluster_parameter_group { - /// A builder for [`DBClusterParameterGroup`](crate::model::DBClusterParameterGroup) + /// A builder for [`DbClusterParameterGroup`](crate::model::DbClusterParameterGroup) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15755,9 +15611,9 @@ pub mod db_cluster_parameter_group { self.db_cluster_parameter_group_arn = input; self } - /// Consumes the builder and constructs a [`DBClusterParameterGroup`](crate::model::DBClusterParameterGroup) - pub fn build(self) -> crate::model::DBClusterParameterGroup { - crate::model::DBClusterParameterGroup { + /// Consumes the builder and constructs a [`DbClusterParameterGroup`](crate::model::DbClusterParameterGroup) + pub fn build(self) -> crate::model::DbClusterParameterGroup { + crate::model::DbClusterParameterGroup { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, db_parameter_group_family: self.db_parameter_group_family, description: self.description, @@ -15766,8 +15622,8 @@ pub mod db_cluster_parameter_group { } } } -impl DBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`DBClusterParameterGroup`](crate::model::DBClusterParameterGroup) +impl DbClusterParameterGroup { + /// Creates a new builder-style object to manufacture [`DbClusterParameterGroup`](crate::model::DbClusterParameterGroup) pub fn builder() -> crate::model::db_cluster_parameter_group::Builder { crate::model::db_cluster_parameter_group::Builder::default() } @@ -15801,7 +15657,7 @@ impl DBClusterParameterGroup { /// see Endpoint.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterEndpoint { +pub struct DbClusterEndpoint { ///

                                      The identifier associated with the endpoint. This parameter is stored as a lowercase string.

                                      pub db_cluster_endpoint_identifier: std::option::Option, ///

                                      The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is @@ -15828,9 +15684,9 @@ pub struct DBClusterEndpoint { ///

                                      The Amazon Resource Name (ARN) for the endpoint.

                                      pub db_cluster_endpoint_arn: std::option::Option, } -impl std::fmt::Debug for DBClusterEndpoint { +impl std::fmt::Debug for DbClusterEndpoint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterEndpoint"); + let mut formatter = f.debug_struct("DbClusterEndpoint"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -15850,9 +15706,9 @@ impl std::fmt::Debug for DBClusterEndpoint { formatter.finish() } } -/// See [`DBClusterEndpoint`](crate::model::DBClusterEndpoint) +/// See [`DbClusterEndpoint`](crate::model::DbClusterEndpoint) pub mod db_cluster_endpoint { - /// A builder for [`DBClusterEndpoint`](crate::model::DBClusterEndpoint) + /// A builder for [`DbClusterEndpoint`](crate::model::DbClusterEndpoint) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15994,9 +15850,9 @@ pub mod db_cluster_endpoint { self.db_cluster_endpoint_arn = input; self } - /// Consumes the builder and constructs a [`DBClusterEndpoint`](crate::model::DBClusterEndpoint) - pub fn build(self) -> crate::model::DBClusterEndpoint { - crate::model::DBClusterEndpoint { + /// Consumes the builder and constructs a [`DbClusterEndpoint`](crate::model::DbClusterEndpoint) + pub fn build(self) -> crate::model::DbClusterEndpoint { + crate::model::DbClusterEndpoint { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_resource_identifier: self @@ -16012,8 +15868,8 @@ pub mod db_cluster_endpoint { } } } -impl DBClusterEndpoint { - /// Creates a new builder-style object to manufacture [`DBClusterEndpoint`](crate::model::DBClusterEndpoint) +impl DbClusterEndpoint { + /// Creates a new builder-style object to manufacture [`DbClusterEndpoint`](crate::model::DbClusterEndpoint) pub fn builder() -> crate::model::db_cluster_endpoint::Builder { crate::model::db_cluster_endpoint::Builder::default() } @@ -16022,7 +15878,7 @@ impl DBClusterEndpoint { ///

                                      This data type is used as a response element in the DescribeDBClusterBacktracks action.

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DBClusterBacktrack { +pub struct DbClusterBacktrack { ///

                                      Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

                                      pub db_cluster_identifier: std::option::Option, ///

                                      Contains the backtrack identifier.

                                      @@ -16055,9 +15911,9 @@ pub struct DBClusterBacktrack { ///
                                    pub status: std::option::Option, } -impl std::fmt::Debug for DBClusterBacktrack { +impl std::fmt::Debug for DbClusterBacktrack { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DBClusterBacktrack"); + let mut formatter = f.debug_struct("DbClusterBacktrack"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("backtrack_identifier", &self.backtrack_identifier); formatter.field("backtrack_to", &self.backtrack_to); @@ -16070,9 +15926,9 @@ impl std::fmt::Debug for DBClusterBacktrack { formatter.finish() } } -/// See [`DBClusterBacktrack`](crate::model::DBClusterBacktrack) +/// See [`DbClusterBacktrack`](crate::model::DbClusterBacktrack) pub mod db_cluster_backtrack { - /// A builder for [`DBClusterBacktrack`](crate::model::DBClusterBacktrack) + /// A builder for [`DbClusterBacktrack`](crate::model::DbClusterBacktrack) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16172,9 +16028,9 @@ pub mod db_cluster_backtrack { self.status = input; self } - /// Consumes the builder and constructs a [`DBClusterBacktrack`](crate::model::DBClusterBacktrack) - pub fn build(self) -> crate::model::DBClusterBacktrack { - crate::model::DBClusterBacktrack { + /// Consumes the builder and constructs a [`DbClusterBacktrack`](crate::model::DbClusterBacktrack) + pub fn build(self) -> crate::model::DbClusterBacktrack { + crate::model::DbClusterBacktrack { db_cluster_identifier: self.db_cluster_identifier, backtrack_identifier: self.backtrack_identifier, backtrack_to: self.backtrack_to, @@ -16185,8 +16041,8 @@ pub mod db_cluster_backtrack { } } } -impl DBClusterBacktrack { - /// Creates a new builder-style object to manufacture [`DBClusterBacktrack`](crate::model::DBClusterBacktrack) +impl DbClusterBacktrack { + /// Creates a new builder-style object to manufacture [`DbClusterBacktrack`](crate::model::DbClusterBacktrack) pub fn builder() -> crate::model::db_cluster_backtrack::Builder { crate::model::db_cluster_backtrack::Builder::default() } @@ -16661,7 +16517,7 @@ impl std::convert::From<&str> for EngineFamily { impl std::str::FromStr for EngineFamily { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EngineFamily::from(s)) } } @@ -16679,12 +16535,3 @@ impl AsRef for EngineFamily { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EngineFamily { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/rds/src/operation.rs b/sdk/rds/src/operation.rs index fb63a631f979..1f2548627fb3 100644 --- a/sdk/rds/src/operation.rs +++ b/sdk/rds/src/operation.rs @@ -10,7 +10,7 @@ pub struct AddRoleToDBCluster { _private: (), } impl AddRoleToDBCluster { - /// Creates a new builder-style object to manufacture [`AddRoleToDBClusterInput`](crate::input::AddRoleToDBClusterInput) + /// Creates a new builder-style object to manufacture [`AddRoleToDbClusterInput`](crate::input::AddRoleToDbClusterInput) pub fn builder() -> crate::input::add_role_to_db_cluster_input::Builder { crate::input::add_role_to_db_cluster_input::Builder::default() } @@ -20,7 +20,7 @@ impl AddRoleToDBCluster { } impl smithy_http::response::ParseStrictResponse for AddRoleToDBCluster { type Output = std::result::Result< - crate::output::AddRoleToDBClusterOutput, + crate::output::AddRoleToDbClusterOutput, crate::error::AddRoleToDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -41,7 +41,7 @@ pub struct AddRoleToDBInstance { _private: (), } impl AddRoleToDBInstance { - /// Creates a new builder-style object to manufacture [`AddRoleToDBInstanceInput`](crate::input::AddRoleToDBInstanceInput) + /// Creates a new builder-style object to manufacture [`AddRoleToDbInstanceInput`](crate::input::AddRoleToDbInstanceInput) pub fn builder() -> crate::input::add_role_to_db_instance_input::Builder { crate::input::add_role_to_db_instance_input::Builder::default() } @@ -51,7 +51,7 @@ impl AddRoleToDBInstance { } impl smithy_http::response::ParseStrictResponse for AddRoleToDBInstance { type Output = std::result::Result< - crate::output::AddRoleToDBInstanceOutput, + crate::output::AddRoleToDbInstanceOutput, crate::error::AddRoleToDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -166,7 +166,7 @@ pub struct AuthorizeDBSecurityGroupIngress { _private: (), } impl AuthorizeDBSecurityGroupIngress { - /// Creates a new builder-style object to manufacture [`AuthorizeDBSecurityGroupIngressInput`](crate::input::AuthorizeDBSecurityGroupIngressInput) + /// Creates a new builder-style object to manufacture [`AuthorizeDbSecurityGroupIngressInput`](crate::input::AuthorizeDbSecurityGroupIngressInput) pub fn builder() -> crate::input::authorize_db_security_group_ingress_input::Builder { crate::input::authorize_db_security_group_ingress_input::Builder::default() } @@ -176,7 +176,7 @@ impl AuthorizeDBSecurityGroupIngress { } impl smithy_http::response::ParseStrictResponse for AuthorizeDBSecurityGroupIngress { type Output = std::result::Result< - crate::output::AuthorizeDBSecurityGroupIngressOutput, + crate::output::AuthorizeDbSecurityGroupIngressOutput, crate::error::AuthorizeDBSecurityGroupIngressError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -202,7 +202,7 @@ pub struct BacktrackDBCluster { _private: (), } impl BacktrackDBCluster { - /// Creates a new builder-style object to manufacture [`BacktrackDBClusterInput`](crate::input::BacktrackDBClusterInput) + /// Creates a new builder-style object to manufacture [`BacktrackDbClusterInput`](crate::input::BacktrackDbClusterInput) pub fn builder() -> crate::input::backtrack_db_cluster_input::Builder { crate::input::backtrack_db_cluster_input::Builder::default() } @@ -212,7 +212,7 @@ impl BacktrackDBCluster { } impl smithy_http::response::ParseStrictResponse for BacktrackDBCluster { type Output = std::result::Result< - crate::output::BacktrackDBClusterOutput, + crate::output::BacktrackDbClusterOutput, crate::error::BacktrackDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -263,7 +263,7 @@ pub struct CopyDBClusterParameterGroup { _private: (), } impl CopyDBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`CopyDBClusterParameterGroupInput`](crate::input::CopyDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CopyDbClusterParameterGroupInput`](crate::input::CopyDbClusterParameterGroupInput) pub fn builder() -> crate::input::copy_db_cluster_parameter_group_input::Builder { crate::input::copy_db_cluster_parameter_group_input::Builder::default() } @@ -273,7 +273,7 @@ impl CopyDBClusterParameterGroup { } impl smithy_http::response::ParseStrictResponse for CopyDBClusterParameterGroup { type Output = std::result::Result< - crate::output::CopyDBClusterParameterGroupOutput, + crate::output::CopyDbClusterParameterGroupOutput, crate::error::CopyDBClusterParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -362,7 +362,7 @@ pub struct CopyDBClusterSnapshot { _private: (), } impl CopyDBClusterSnapshot { - /// Creates a new builder-style object to manufacture [`CopyDBClusterSnapshotInput`](crate::input::CopyDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`CopyDbClusterSnapshotInput`](crate::input::CopyDbClusterSnapshotInput) pub fn builder() -> crate::input::copy_db_cluster_snapshot_input::Builder { crate::input::copy_db_cluster_snapshot_input::Builder::default() } @@ -372,7 +372,7 @@ impl CopyDBClusterSnapshot { } impl smithy_http::response::ParseStrictResponse for CopyDBClusterSnapshot { type Output = std::result::Result< - crate::output::CopyDBClusterSnapshotOutput, + crate::output::CopyDbClusterSnapshotOutput, crate::error::CopyDBClusterSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -390,7 +390,7 @@ pub struct CopyDBParameterGroup { _private: (), } impl CopyDBParameterGroup { - /// Creates a new builder-style object to manufacture [`CopyDBParameterGroupInput`](crate::input::CopyDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CopyDbParameterGroupInput`](crate::input::CopyDbParameterGroupInput) pub fn builder() -> crate::input::copy_db_parameter_group_input::Builder { crate::input::copy_db_parameter_group_input::Builder::default() } @@ -400,7 +400,7 @@ impl CopyDBParameterGroup { } impl smithy_http::response::ParseStrictResponse for CopyDBParameterGroup { type Output = std::result::Result< - crate::output::CopyDBParameterGroupOutput, + crate::output::CopyDbParameterGroupOutput, crate::error::CopyDBParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -424,7 +424,7 @@ pub struct CopyDBSnapshot { _private: (), } impl CopyDBSnapshot { - /// Creates a new builder-style object to manufacture [`CopyDBSnapshotInput`](crate::input::CopyDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`CopyDbSnapshotInput`](crate::input::CopyDbSnapshotInput) pub fn builder() -> crate::input::copy_db_snapshot_input::Builder { crate::input::copy_db_snapshot_input::Builder::default() } @@ -434,7 +434,7 @@ impl CopyDBSnapshot { } impl smithy_http::response::ParseStrictResponse for CopyDBSnapshot { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_copy_db_snapshot_error(response) @@ -523,7 +523,7 @@ pub struct CreateDBCluster { _private: (), } impl CreateDBCluster { - /// Creates a new builder-style object to manufacture [`CreateDBClusterInput`](crate::input::CreateDBClusterInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterInput`](crate::input::CreateDbClusterInput) pub fn builder() -> crate::input::create_db_cluster_input::Builder { crate::input::create_db_cluster_input::Builder::default() } @@ -533,7 +533,7 @@ impl CreateDBCluster { } impl smithy_http::response::ParseStrictResponse for CreateDBCluster { type Output = std::result::Result< - crate::output::CreateDBClusterOutput, + crate::output::CreateDbClusterOutput, crate::error::CreateDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -554,7 +554,7 @@ pub struct CreateDBClusterEndpoint { _private: (), } impl CreateDBClusterEndpoint { - /// Creates a new builder-style object to manufacture [`CreateDBClusterEndpointInput`](crate::input::CreateDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterEndpointInput`](crate::input::CreateDbClusterEndpointInput) pub fn builder() -> crate::input::create_db_cluster_endpoint_input::Builder { crate::input::create_db_cluster_endpoint_input::Builder::default() } @@ -564,7 +564,7 @@ impl CreateDBClusterEndpoint { } impl smithy_http::response::ParseStrictResponse for CreateDBClusterEndpoint { type Output = std::result::Result< - crate::output::CreateDBClusterEndpointOutput, + crate::output::CreateDbClusterEndpointOutput, crate::error::CreateDBClusterEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -612,7 +612,7 @@ pub struct CreateDBClusterParameterGroup { _private: (), } impl CreateDBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`CreateDBClusterParameterGroupInput`](crate::input::CreateDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterParameterGroupInput`](crate::input::CreateDbClusterParameterGroupInput) pub fn builder() -> crate::input::create_db_cluster_parameter_group_input::Builder { crate::input::create_db_cluster_parameter_group_input::Builder::default() } @@ -622,7 +622,7 @@ impl CreateDBClusterParameterGroup { } impl smithy_http::response::ParseStrictResponse for CreateDBClusterParameterGroup { type Output = std::result::Result< - crate::output::CreateDBClusterParameterGroupOutput, + crate::output::CreateDbClusterParameterGroupOutput, crate::error::CreateDBClusterParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -646,7 +646,7 @@ pub struct CreateDBClusterSnapshot { _private: (), } impl CreateDBClusterSnapshot { - /// Creates a new builder-style object to manufacture [`CreateDBClusterSnapshotInput`](crate::input::CreateDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`CreateDbClusterSnapshotInput`](crate::input::CreateDbClusterSnapshotInput) pub fn builder() -> crate::input::create_db_cluster_snapshot_input::Builder { crate::input::create_db_cluster_snapshot_input::Builder::default() } @@ -656,7 +656,7 @@ impl CreateDBClusterSnapshot { } impl smithy_http::response::ParseStrictResponse for CreateDBClusterSnapshot { type Output = std::result::Result< - crate::output::CreateDBClusterSnapshotOutput, + crate::output::CreateDbClusterSnapshotOutput, crate::error::CreateDBClusterSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -674,7 +674,7 @@ pub struct CreateDBInstance { _private: (), } impl CreateDBInstance { - /// Creates a new builder-style object to manufacture [`CreateDBInstanceInput`](crate::input::CreateDBInstanceInput) + /// Creates a new builder-style object to manufacture [`CreateDbInstanceInput`](crate::input::CreateDbInstanceInput) pub fn builder() -> crate::input::create_db_instance_input::Builder { crate::input::create_db_instance_input::Builder::default() } @@ -684,7 +684,7 @@ impl CreateDBInstance { } impl smithy_http::response::ParseStrictResponse for CreateDBInstance { type Output = std::result::Result< - crate::output::CreateDBInstanceOutput, + crate::output::CreateDbInstanceOutput, crate::error::CreateDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -714,7 +714,7 @@ pub struct CreateDBInstanceReadReplica { _private: (), } impl CreateDBInstanceReadReplica { - /// Creates a new builder-style object to manufacture [`CreateDBInstanceReadReplicaInput`](crate::input::CreateDBInstanceReadReplicaInput) + /// Creates a new builder-style object to manufacture [`CreateDbInstanceReadReplicaInput`](crate::input::CreateDbInstanceReadReplicaInput) pub fn builder() -> crate::input::create_db_instance_read_replica_input::Builder { crate::input::create_db_instance_read_replica_input::Builder::default() } @@ -724,7 +724,7 @@ impl CreateDBInstanceReadReplica { } impl smithy_http::response::ParseStrictResponse for CreateDBInstanceReadReplica { type Output = std::result::Result< - crate::output::CreateDBInstanceReadReplicaOutput, + crate::output::CreateDbInstanceReadReplicaOutput, crate::error::CreateDBInstanceReadReplicaError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -762,7 +762,7 @@ pub struct CreateDBParameterGroup { _private: (), } impl CreateDBParameterGroup { - /// Creates a new builder-style object to manufacture [`CreateDBParameterGroupInput`](crate::input::CreateDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbParameterGroupInput`](crate::input::CreateDbParameterGroupInput) pub fn builder() -> crate::input::create_db_parameter_group_input::Builder { crate::input::create_db_parameter_group_input::Builder::default() } @@ -772,7 +772,7 @@ impl CreateDBParameterGroup { } impl smithy_http::response::ParseStrictResponse for CreateDBParameterGroup { type Output = std::result::Result< - crate::output::CreateDBParameterGroupOutput, + crate::output::CreateDbParameterGroupOutput, crate::error::CreateDBParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -790,7 +790,7 @@ pub struct CreateDBProxy { _private: (), } impl CreateDBProxy { - /// Creates a new builder-style object to manufacture [`CreateDBProxyInput`](crate::input::CreateDBProxyInput) + /// Creates a new builder-style object to manufacture [`CreateDbProxyInput`](crate::input::CreateDbProxyInput) pub fn builder() -> crate::input::create_db_proxy_input::Builder { crate::input::create_db_proxy_input::Builder::default() } @@ -800,7 +800,7 @@ impl CreateDBProxy { } impl smithy_http::response::ParseStrictResponse for CreateDBProxy { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_create_db_proxy_error(response) @@ -820,7 +820,7 @@ pub struct CreateDBProxyEndpoint { _private: (), } impl CreateDBProxyEndpoint { - /// Creates a new builder-style object to manufacture [`CreateDBProxyEndpointInput`](crate::input::CreateDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`CreateDbProxyEndpointInput`](crate::input::CreateDbProxyEndpointInput) pub fn builder() -> crate::input::create_db_proxy_endpoint_input::Builder { crate::input::create_db_proxy_endpoint_input::Builder::default() } @@ -830,7 +830,7 @@ impl CreateDBProxyEndpoint { } impl smithy_http::response::ParseStrictResponse for CreateDBProxyEndpoint { type Output = std::result::Result< - crate::output::CreateDBProxyEndpointOutput, + crate::output::CreateDbProxyEndpointOutput, crate::error::CreateDBProxyEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -851,7 +851,7 @@ pub struct CreateDBSecurityGroup { _private: (), } impl CreateDBSecurityGroup { - /// Creates a new builder-style object to manufacture [`CreateDBSecurityGroupInput`](crate::input::CreateDBSecurityGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbSecurityGroupInput`](crate::input::CreateDbSecurityGroupInput) pub fn builder() -> crate::input::create_db_security_group_input::Builder { crate::input::create_db_security_group_input::Builder::default() } @@ -861,7 +861,7 @@ impl CreateDBSecurityGroup { } impl smithy_http::response::ParseStrictResponse for CreateDBSecurityGroup { type Output = std::result::Result< - crate::output::CreateDBSecurityGroupOutput, + crate::output::CreateDbSecurityGroupOutput, crate::error::CreateDBSecurityGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -880,7 +880,7 @@ pub struct CreateDBSnapshot { _private: (), } impl CreateDBSnapshot { - /// Creates a new builder-style object to manufacture [`CreateDBSnapshotInput`](crate::input::CreateDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`CreateDbSnapshotInput`](crate::input::CreateDbSnapshotInput) pub fn builder() -> crate::input::create_db_snapshot_input::Builder { crate::input::create_db_snapshot_input::Builder::default() } @@ -890,7 +890,7 @@ impl CreateDBSnapshot { } impl smithy_http::response::ParseStrictResponse for CreateDBSnapshot { type Output = std::result::Result< - crate::output::CreateDBSnapshotOutput, + crate::output::CreateDbSnapshotOutput, crate::error::CreateDBSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -908,7 +908,7 @@ pub struct CreateDBSubnetGroup { _private: (), } impl CreateDBSubnetGroup { - /// Creates a new builder-style object to manufacture [`CreateDBSubnetGroupInput`](crate::input::CreateDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`CreateDbSubnetGroupInput`](crate::input::CreateDbSubnetGroupInput) pub fn builder() -> crate::input::create_db_subnet_group_input::Builder { crate::input::create_db_subnet_group_input::Builder::default() } @@ -918,7 +918,7 @@ impl CreateDBSubnetGroup { } impl smithy_http::response::ParseStrictResponse for CreateDBSubnetGroup { type Output = std::result::Result< - crate::output::CreateDBSubnetGroupOutput, + crate::output::CreateDbSubnetGroupOutput, crate::error::CreateDBSubnetGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1100,7 +1100,7 @@ pub struct DeleteDBCluster { _private: (), } impl DeleteDBCluster { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterInput`](crate::input::DeleteDBClusterInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterInput`](crate::input::DeleteDbClusterInput) pub fn builder() -> crate::input::delete_db_cluster_input::Builder { crate::input::delete_db_cluster_input::Builder::default() } @@ -1110,7 +1110,7 @@ impl DeleteDBCluster { } impl smithy_http::response::ParseStrictResponse for DeleteDBCluster { type Output = std::result::Result< - crate::output::DeleteDBClusterOutput, + crate::output::DeleteDbClusterOutput, crate::error::DeleteDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1131,7 +1131,7 @@ pub struct DeleteDBClusterEndpoint { _private: (), } impl DeleteDBClusterEndpoint { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterEndpointInput`](crate::input::DeleteDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterEndpointInput`](crate::input::DeleteDbClusterEndpointInput) pub fn builder() -> crate::input::delete_db_cluster_endpoint_input::Builder { crate::input::delete_db_cluster_endpoint_input::Builder::default() } @@ -1141,7 +1141,7 @@ impl DeleteDBClusterEndpoint { } impl smithy_http::response::ParseStrictResponse for DeleteDBClusterEndpoint { type Output = std::result::Result< - crate::output::DeleteDBClusterEndpointOutput, + crate::output::DeleteDbClusterEndpointOutput, crate::error::DeleteDBClusterEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1166,7 +1166,7 @@ pub struct DeleteDBClusterParameterGroup { _private: (), } impl DeleteDBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterParameterGroupInput`](crate::input::DeleteDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterParameterGroupInput`](crate::input::DeleteDbClusterParameterGroupInput) pub fn builder() -> crate::input::delete_db_cluster_parameter_group_input::Builder { crate::input::delete_db_cluster_parameter_group_input::Builder::default() } @@ -1176,7 +1176,7 @@ impl DeleteDBClusterParameterGroup { } impl smithy_http::response::ParseStrictResponse for DeleteDBClusterParameterGroup { type Output = std::result::Result< - crate::output::DeleteDBClusterParameterGroupOutput, + crate::output::DeleteDbClusterParameterGroupOutput, crate::error::DeleteDBClusterParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1205,7 +1205,7 @@ pub struct DeleteDBClusterSnapshot { _private: (), } impl DeleteDBClusterSnapshot { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterSnapshotInput`](crate::input::DeleteDBClusterSnapshotInput) + /// Creates a new builder-style object to manufacture [`DeleteDbClusterSnapshotInput`](crate::input::DeleteDbClusterSnapshotInput) pub fn builder() -> crate::input::delete_db_cluster_snapshot_input::Builder { crate::input::delete_db_cluster_snapshot_input::Builder::default() } @@ -1215,7 +1215,7 @@ impl DeleteDBClusterSnapshot { } impl smithy_http::response::ParseStrictResponse for DeleteDBClusterSnapshot { type Output = std::result::Result< - crate::output::DeleteDBClusterSnapshotOutput, + crate::output::DeleteDbClusterSnapshotOutput, crate::error::DeleteDBClusterSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1257,7 +1257,7 @@ pub struct DeleteDBInstance { _private: (), } impl DeleteDBInstance { - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceInput`](crate::input::DeleteDBInstanceInput) + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceInput`](crate::input::DeleteDbInstanceInput) pub fn builder() -> crate::input::delete_db_instance_input::Builder { crate::input::delete_db_instance_input::Builder::default() } @@ -1267,7 +1267,7 @@ impl DeleteDBInstance { } impl smithy_http::response::ParseStrictResponse for DeleteDBInstance { type Output = std::result::Result< - crate::output::DeleteDBInstanceOutput, + crate::output::DeleteDbInstanceOutput, crate::error::DeleteDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1285,7 +1285,7 @@ pub struct DeleteDBInstanceAutomatedBackup { _private: (), } impl DeleteDBInstanceAutomatedBackup { - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceAutomatedBackupInput`](crate::input::DeleteDBInstanceAutomatedBackupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceAutomatedBackupInput`](crate::input::DeleteDbInstanceAutomatedBackupInput) pub fn builder() -> crate::input::delete_db_instance_automated_backup_input::Builder { crate::input::delete_db_instance_automated_backup_input::Builder::default() } @@ -1295,7 +1295,7 @@ impl DeleteDBInstanceAutomatedBackup { } impl smithy_http::response::ParseStrictResponse for DeleteDBInstanceAutomatedBackup { type Output = std::result::Result< - crate::output::DeleteDBInstanceAutomatedBackupOutput, + crate::output::DeleteDbInstanceAutomatedBackupOutput, crate::error::DeleteDBInstanceAutomatedBackupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1313,7 +1313,7 @@ pub struct DeleteDBParameterGroup { _private: (), } impl DeleteDBParameterGroup { - /// Creates a new builder-style object to manufacture [`DeleteDBParameterGroupInput`](crate::input::DeleteDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbParameterGroupInput`](crate::input::DeleteDbParameterGroupInput) pub fn builder() -> crate::input::delete_db_parameter_group_input::Builder { crate::input::delete_db_parameter_group_input::Builder::default() } @@ -1323,7 +1323,7 @@ impl DeleteDBParameterGroup { } impl smithy_http::response::ParseStrictResponse for DeleteDBParameterGroup { type Output = std::result::Result< - crate::output::DeleteDBParameterGroupOutput, + crate::output::DeleteDbParameterGroupOutput, crate::error::DeleteDBParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1341,7 +1341,7 @@ pub struct DeleteDBProxy { _private: (), } impl DeleteDBProxy { - /// Creates a new builder-style object to manufacture [`DeleteDBProxyInput`](crate::input::DeleteDBProxyInput) + /// Creates a new builder-style object to manufacture [`DeleteDbProxyInput`](crate::input::DeleteDbProxyInput) pub fn builder() -> crate::input::delete_db_proxy_input::Builder { crate::input::delete_db_proxy_input::Builder::default() } @@ -1351,7 +1351,7 @@ impl DeleteDBProxy { } impl smithy_http::response::ParseStrictResponse for DeleteDBProxy { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_delete_db_proxy_error(response) @@ -1369,7 +1369,7 @@ pub struct DeleteDBProxyEndpoint { _private: (), } impl DeleteDBProxyEndpoint { - /// Creates a new builder-style object to manufacture [`DeleteDBProxyEndpointInput`](crate::input::DeleteDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`DeleteDbProxyEndpointInput`](crate::input::DeleteDbProxyEndpointInput) pub fn builder() -> crate::input::delete_db_proxy_endpoint_input::Builder { crate::input::delete_db_proxy_endpoint_input::Builder::default() } @@ -1379,7 +1379,7 @@ impl DeleteDBProxyEndpoint { } impl smithy_http::response::ParseStrictResponse for DeleteDBProxyEndpoint { type Output = std::result::Result< - crate::output::DeleteDBProxyEndpointOutput, + crate::output::DeleteDbProxyEndpointOutput, crate::error::DeleteDBProxyEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1400,7 +1400,7 @@ pub struct DeleteDBSecurityGroup { _private: (), } impl DeleteDBSecurityGroup { - /// Creates a new builder-style object to manufacture [`DeleteDBSecurityGroupInput`](crate::input::DeleteDBSecurityGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSecurityGroupInput`](crate::input::DeleteDbSecurityGroupInput) pub fn builder() -> crate::input::delete_db_security_group_input::Builder { crate::input::delete_db_security_group_input::Builder::default() } @@ -1410,7 +1410,7 @@ impl DeleteDBSecurityGroup { } impl smithy_http::response::ParseStrictResponse for DeleteDBSecurityGroup { type Output = std::result::Result< - crate::output::DeleteDBSecurityGroupOutput, + crate::output::DeleteDbSecurityGroupOutput, crate::error::DeleteDBSecurityGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1432,7 +1432,7 @@ pub struct DeleteDBSnapshot { _private: (), } impl DeleteDBSnapshot { - /// Creates a new builder-style object to manufacture [`DeleteDBSnapshotInput`](crate::input::DeleteDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSnapshotInput`](crate::input::DeleteDbSnapshotInput) pub fn builder() -> crate::input::delete_db_snapshot_input::Builder { crate::input::delete_db_snapshot_input::Builder::default() } @@ -1442,7 +1442,7 @@ impl DeleteDBSnapshot { } impl smithy_http::response::ParseStrictResponse for DeleteDBSnapshot { type Output = std::result::Result< - crate::output::DeleteDBSnapshotOutput, + crate::output::DeleteDbSnapshotOutput, crate::error::DeleteDBSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1463,7 +1463,7 @@ pub struct DeleteDBSubnetGroup { _private: (), } impl DeleteDBSubnetGroup { - /// Creates a new builder-style object to manufacture [`DeleteDBSubnetGroupInput`](crate::input::DeleteDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`DeleteDbSubnetGroupInput`](crate::input::DeleteDbSubnetGroupInput) pub fn builder() -> crate::input::delete_db_subnet_group_input::Builder { crate::input::delete_db_subnet_group_input::Builder::default() } @@ -1473,7 +1473,7 @@ impl DeleteDBSubnetGroup { } impl smithy_http::response::ParseStrictResponse for DeleteDBSubnetGroup { type Output = std::result::Result< - crate::output::DeleteDBSubnetGroupOutput, + crate::output::DeleteDbSubnetGroupOutput, crate::error::DeleteDBSubnetGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1610,7 +1610,7 @@ pub struct DeregisterDBProxyTargets { _private: (), } impl DeregisterDBProxyTargets { - /// Creates a new builder-style object to manufacture [`DeregisterDBProxyTargetsInput`](crate::input::DeregisterDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`DeregisterDbProxyTargetsInput`](crate::input::DeregisterDbProxyTargetsInput) pub fn builder() -> crate::input::deregister_db_proxy_targets_input::Builder { crate::input::deregister_db_proxy_targets_input::Builder::default() } @@ -1620,7 +1620,7 @@ impl DeregisterDBProxyTargets { } impl smithy_http::response::ParseStrictResponse for DeregisterDBProxyTargets { type Output = std::result::Result< - crate::output::DeregisterDBProxyTargetsOutput, + crate::output::DeregisterDbProxyTargetsOutput, crate::error::DeregisterDBProxyTargetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1735,7 +1735,7 @@ pub struct DescribeDBClusterBacktracks { _private: (), } impl DescribeDBClusterBacktracks { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterBacktracksInput`](crate::input::DescribeDBClusterBacktracksInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterBacktracksInput`](crate::input::DescribeDbClusterBacktracksInput) pub fn builder() -> crate::input::describe_db_cluster_backtracks_input::Builder { crate::input::describe_db_cluster_backtracks_input::Builder::default() } @@ -1745,7 +1745,7 @@ impl DescribeDBClusterBacktracks { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterBacktracks { type Output = std::result::Result< - crate::output::DescribeDBClusterBacktracksOutput, + crate::output::DescribeDbClusterBacktracksOutput, crate::error::DescribeDBClusterBacktracksError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1766,7 +1766,7 @@ pub struct DescribeDBClusterEndpoints { _private: (), } impl DescribeDBClusterEndpoints { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterEndpointsInput`](crate::input::DescribeDBClusterEndpointsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterEndpointsInput`](crate::input::DescribeDbClusterEndpointsInput) pub fn builder() -> crate::input::describe_db_cluster_endpoints_input::Builder { crate::input::describe_db_cluster_endpoints_input::Builder::default() } @@ -1776,7 +1776,7 @@ impl DescribeDBClusterEndpoints { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterEndpoints { type Output = std::result::Result< - crate::output::DescribeDBClusterEndpointsOutput, + crate::output::DescribeDbClusterEndpointsOutput, crate::error::DescribeDBClusterEndpointsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1805,7 +1805,7 @@ pub struct DescribeDBClusterParameterGroups { _private: (), } impl DescribeDBClusterParameterGroups { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParameterGroupsInput`](crate::input::DescribeDBClusterParameterGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParameterGroupsInput`](crate::input::DescribeDbClusterParameterGroupsInput) pub fn builder() -> crate::input::describe_db_cluster_parameter_groups_input::Builder { crate::input::describe_db_cluster_parameter_groups_input::Builder::default() } @@ -1815,7 +1815,7 @@ impl DescribeDBClusterParameterGroups { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterParameterGroups { type Output = std::result::Result< - crate::output::DescribeDBClusterParameterGroupsOutput, + crate::output::DescribeDbClusterParameterGroupsOutput, crate::error::DescribeDBClusterParameterGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1840,7 +1840,7 @@ pub struct DescribeDBClusterParameters { _private: (), } impl DescribeDBClusterParameters { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParametersInput`](crate::input::DescribeDBClusterParametersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParametersInput`](crate::input::DescribeDbClusterParametersInput) pub fn builder() -> crate::input::describe_db_cluster_parameters_input::Builder { crate::input::describe_db_cluster_parameters_input::Builder::default() } @@ -1850,7 +1850,7 @@ impl DescribeDBClusterParameters { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterParameters { type Output = std::result::Result< - crate::output::DescribeDBClusterParametersOutput, + crate::output::DescribeDbClusterParametersOutput, crate::error::DescribeDBClusterParametersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1875,7 +1875,7 @@ pub struct DescribeDBClusters { _private: (), } impl DescribeDBClusters { - /// Creates a new builder-style object to manufacture [`DescribeDBClustersInput`](crate::input::DescribeDBClustersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClustersInput`](crate::input::DescribeDbClustersInput) pub fn builder() -> crate::input::describe_db_clusters_input::Builder { crate::input::describe_db_clusters_input::Builder::default() } @@ -1885,7 +1885,7 @@ impl DescribeDBClusters { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusters { type Output = std::result::Result< - crate::output::DescribeDBClustersOutput, + crate::output::DescribeDbClustersOutput, crate::error::DescribeDBClustersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1913,7 +1913,7 @@ pub struct DescribeDBClusterSnapshotAttributes { _private: (), } impl DescribeDBClusterSnapshotAttributes { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotAttributesInput`](crate::input::DescribeDBClusterSnapshotAttributesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotAttributesInput`](crate::input::DescribeDbClusterSnapshotAttributesInput) pub fn builder() -> crate::input::describe_db_cluster_snapshot_attributes_input::Builder { crate::input::describe_db_cluster_snapshot_attributes_input::Builder::default() } @@ -1923,7 +1923,7 @@ impl DescribeDBClusterSnapshotAttributes { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterSnapshotAttributes { type Output = std::result::Result< - crate::output::DescribeDBClusterSnapshotAttributesOutput, + crate::output::DescribeDbClusterSnapshotAttributesOutput, crate::error::DescribeDBClusterSnapshotAttributesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1948,7 +1948,7 @@ pub struct DescribeDBClusterSnapshots { _private: (), } impl DescribeDBClusterSnapshots { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotsInput`](crate::input::DescribeDBClusterSnapshotsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotsInput`](crate::input::DescribeDbClusterSnapshotsInput) pub fn builder() -> crate::input::describe_db_cluster_snapshots_input::Builder { crate::input::describe_db_cluster_snapshots_input::Builder::default() } @@ -1958,7 +1958,7 @@ impl DescribeDBClusterSnapshots { } impl smithy_http::response::ParseStrictResponse for DescribeDBClusterSnapshots { type Output = std::result::Result< - crate::output::DescribeDBClusterSnapshotsOutput, + crate::output::DescribeDbClusterSnapshotsOutput, crate::error::DescribeDBClusterSnapshotsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1976,7 +1976,7 @@ pub struct DescribeDBEngineVersions { _private: (), } impl DescribeDBEngineVersions { - /// Creates a new builder-style object to manufacture [`DescribeDBEngineVersionsInput`](crate::input::DescribeDBEngineVersionsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbEngineVersionsInput`](crate::input::DescribeDbEngineVersionsInput) pub fn builder() -> crate::input::describe_db_engine_versions_input::Builder { crate::input::describe_db_engine_versions_input::Builder::default() } @@ -1986,7 +1986,7 @@ impl DescribeDBEngineVersions { } impl smithy_http::response::ParseStrictResponse for DescribeDBEngineVersions { type Output = std::result::Result< - crate::output::DescribeDBEngineVersionsOutput, + crate::output::DescribeDbEngineVersionsOutput, crate::error::DescribeDBEngineVersionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2010,7 +2010,7 @@ pub struct DescribeDBInstanceAutomatedBackups { _private: (), } impl DescribeDBInstanceAutomatedBackups { - /// Creates a new builder-style object to manufacture [`DescribeDBInstanceAutomatedBackupsInput`](crate::input::DescribeDBInstanceAutomatedBackupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbInstanceAutomatedBackupsInput`](crate::input::DescribeDbInstanceAutomatedBackupsInput) pub fn builder() -> crate::input::describe_db_instance_automated_backups_input::Builder { crate::input::describe_db_instance_automated_backups_input::Builder::default() } @@ -2020,7 +2020,7 @@ impl DescribeDBInstanceAutomatedBackups { } impl smithy_http::response::ParseStrictResponse for DescribeDBInstanceAutomatedBackups { type Output = std::result::Result< - crate::output::DescribeDBInstanceAutomatedBackupsOutput, + crate::output::DescribeDbInstanceAutomatedBackupsOutput, crate::error::DescribeDBInstanceAutomatedBackupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2041,7 +2041,7 @@ pub struct DescribeDBInstances { _private: (), } impl DescribeDBInstances { - /// Creates a new builder-style object to manufacture [`DescribeDBInstancesInput`](crate::input::DescribeDBInstancesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbInstancesInput`](crate::input::DescribeDbInstancesInput) pub fn builder() -> crate::input::describe_db_instances_input::Builder { crate::input::describe_db_instances_input::Builder::default() } @@ -2051,7 +2051,7 @@ impl DescribeDBInstances { } impl smithy_http::response::ParseStrictResponse for DescribeDBInstances { type Output = std::result::Result< - crate::output::DescribeDBInstancesOutput, + crate::output::DescribeDbInstancesOutput, crate::error::DescribeDBInstancesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2069,7 +2069,7 @@ pub struct DescribeDBLogFiles { _private: (), } impl DescribeDBLogFiles { - /// Creates a new builder-style object to manufacture [`DescribeDBLogFilesInput`](crate::input::DescribeDBLogFilesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbLogFilesInput`](crate::input::DescribeDbLogFilesInput) pub fn builder() -> crate::input::describe_db_log_files_input::Builder { crate::input::describe_db_log_files_input::Builder::default() } @@ -2079,7 +2079,7 @@ impl DescribeDBLogFiles { } impl smithy_http::response::ParseStrictResponse for DescribeDBLogFiles { type Output = std::result::Result< - crate::output::DescribeDBLogFilesOutput, + crate::output::DescribeDbLogFilesOutput, crate::error::DescribeDBLogFilesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2100,7 +2100,7 @@ pub struct DescribeDBParameterGroups { _private: (), } impl DescribeDBParameterGroups { - /// Creates a new builder-style object to manufacture [`DescribeDBParameterGroupsInput`](crate::input::DescribeDBParameterGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbParameterGroupsInput`](crate::input::DescribeDbParameterGroupsInput) pub fn builder() -> crate::input::describe_db_parameter_groups_input::Builder { crate::input::describe_db_parameter_groups_input::Builder::default() } @@ -2110,7 +2110,7 @@ impl DescribeDBParameterGroups { } impl smithy_http::response::ParseStrictResponse for DescribeDBParameterGroups { type Output = std::result::Result< - crate::output::DescribeDBParameterGroupsOutput, + crate::output::DescribeDbParameterGroupsOutput, crate::error::DescribeDBParameterGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2128,7 +2128,7 @@ pub struct DescribeDBParameters { _private: (), } impl DescribeDBParameters { - /// Creates a new builder-style object to manufacture [`DescribeDBParametersInput`](crate::input::DescribeDBParametersInput) + /// Creates a new builder-style object to manufacture [`DescribeDbParametersInput`](crate::input::DescribeDbParametersInput) pub fn builder() -> crate::input::describe_db_parameters_input::Builder { crate::input::describe_db_parameters_input::Builder::default() } @@ -2138,7 +2138,7 @@ impl DescribeDBParameters { } impl smithy_http::response::ParseStrictResponse for DescribeDBParameters { type Output = std::result::Result< - crate::output::DescribeDBParametersOutput, + crate::output::DescribeDbParametersOutput, crate::error::DescribeDBParametersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2156,7 +2156,7 @@ pub struct DescribeDBProxies { _private: (), } impl DescribeDBProxies { - /// Creates a new builder-style object to manufacture [`DescribeDBProxiesInput`](crate::input::DescribeDBProxiesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxiesInput`](crate::input::DescribeDbProxiesInput) pub fn builder() -> crate::input::describe_db_proxies_input::Builder { crate::input::describe_db_proxies_input::Builder::default() } @@ -2166,7 +2166,7 @@ impl DescribeDBProxies { } impl smithy_http::response::ParseStrictResponse for DescribeDBProxies { type Output = std::result::Result< - crate::output::DescribeDBProxiesOutput, + crate::output::DescribeDbProxiesOutput, crate::error::DescribeDBProxiesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2184,7 +2184,7 @@ pub struct DescribeDBProxyEndpoints { _private: (), } impl DescribeDBProxyEndpoints { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyEndpointsInput`](crate::input::DescribeDBProxyEndpointsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyEndpointsInput`](crate::input::DescribeDbProxyEndpointsInput) pub fn builder() -> crate::input::describe_db_proxy_endpoints_input::Builder { crate::input::describe_db_proxy_endpoints_input::Builder::default() } @@ -2194,7 +2194,7 @@ impl DescribeDBProxyEndpoints { } impl smithy_http::response::ParseStrictResponse for DescribeDBProxyEndpoints { type Output = std::result::Result< - crate::output::DescribeDBProxyEndpointsOutput, + crate::output::DescribeDbProxyEndpointsOutput, crate::error::DescribeDBProxyEndpointsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2212,7 +2212,7 @@ pub struct DescribeDBProxyTargetGroups { _private: (), } impl DescribeDBProxyTargetGroups { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetGroupsInput`](crate::input::DescribeDBProxyTargetGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetGroupsInput`](crate::input::DescribeDbProxyTargetGroupsInput) pub fn builder() -> crate::input::describe_db_proxy_target_groups_input::Builder { crate::input::describe_db_proxy_target_groups_input::Builder::default() } @@ -2222,7 +2222,7 @@ impl DescribeDBProxyTargetGroups { } impl smithy_http::response::ParseStrictResponse for DescribeDBProxyTargetGroups { type Output = std::result::Result< - crate::output::DescribeDBProxyTargetGroupsOutput, + crate::output::DescribeDbProxyTargetGroupsOutput, crate::error::DescribeDBProxyTargetGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2240,7 +2240,7 @@ pub struct DescribeDBProxyTargets { _private: (), } impl DescribeDBProxyTargets { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetsInput`](crate::input::DescribeDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetsInput`](crate::input::DescribeDbProxyTargetsInput) pub fn builder() -> crate::input::describe_db_proxy_targets_input::Builder { crate::input::describe_db_proxy_targets_input::Builder::default() } @@ -2250,7 +2250,7 @@ impl DescribeDBProxyTargets { } impl smithy_http::response::ParseStrictResponse for DescribeDBProxyTargets { type Output = std::result::Result< - crate::output::DescribeDBProxyTargetsOutput, + crate::output::DescribeDbProxyTargetsOutput, crate::error::DescribeDBProxyTargetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2271,7 +2271,7 @@ pub struct DescribeDBSecurityGroups { _private: (), } impl DescribeDBSecurityGroups { - /// Creates a new builder-style object to manufacture [`DescribeDBSecurityGroupsInput`](crate::input::DescribeDBSecurityGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSecurityGroupsInput`](crate::input::DescribeDbSecurityGroupsInput) pub fn builder() -> crate::input::describe_db_security_groups_input::Builder { crate::input::describe_db_security_groups_input::Builder::default() } @@ -2281,7 +2281,7 @@ impl DescribeDBSecurityGroups { } impl smithy_http::response::ParseStrictResponse for DescribeDBSecurityGroups { type Output = std::result::Result< - crate::output::DescribeDBSecurityGroupsOutput, + crate::output::DescribeDbSecurityGroupsOutput, crate::error::DescribeDBSecurityGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2306,7 +2306,7 @@ pub struct DescribeDBSnapshotAttributes { _private: (), } impl DescribeDBSnapshotAttributes { - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotAttributesInput`](crate::input::DescribeDBSnapshotAttributesInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotAttributesInput`](crate::input::DescribeDbSnapshotAttributesInput) pub fn builder() -> crate::input::describe_db_snapshot_attributes_input::Builder { crate::input::describe_db_snapshot_attributes_input::Builder::default() } @@ -2316,7 +2316,7 @@ impl DescribeDBSnapshotAttributes { } impl smithy_http::response::ParseStrictResponse for DescribeDBSnapshotAttributes { type Output = std::result::Result< - crate::output::DescribeDBSnapshotAttributesOutput, + crate::output::DescribeDbSnapshotAttributesOutput, crate::error::DescribeDBSnapshotAttributesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2334,7 +2334,7 @@ pub struct DescribeDBSnapshots { _private: (), } impl DescribeDBSnapshots { - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotsInput`](crate::input::DescribeDBSnapshotsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotsInput`](crate::input::DescribeDbSnapshotsInput) pub fn builder() -> crate::input::describe_db_snapshots_input::Builder { crate::input::describe_db_snapshots_input::Builder::default() } @@ -2344,7 +2344,7 @@ impl DescribeDBSnapshots { } impl smithy_http::response::ParseStrictResponse for DescribeDBSnapshots { type Output = std::result::Result< - crate::output::DescribeDBSnapshotsOutput, + crate::output::DescribeDbSnapshotsOutput, crate::error::DescribeDBSnapshotsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2365,7 +2365,7 @@ pub struct DescribeDBSubnetGroups { _private: (), } impl DescribeDBSubnetGroups { - /// Creates a new builder-style object to manufacture [`DescribeDBSubnetGroupsInput`](crate::input::DescribeDBSubnetGroupsInput) + /// Creates a new builder-style object to manufacture [`DescribeDbSubnetGroupsInput`](crate::input::DescribeDbSubnetGroupsInput) pub fn builder() -> crate::input::describe_db_subnet_groups_input::Builder { crate::input::describe_db_subnet_groups_input::Builder::default() } @@ -2375,7 +2375,7 @@ impl DescribeDBSubnetGroups { } impl smithy_http::response::ParseStrictResponse for DescribeDBSubnetGroups { type Output = std::result::Result< - crate::output::DescribeDBSubnetGroupsOutput, + crate::output::DescribeDbSubnetGroupsOutput, crate::error::DescribeDBSubnetGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2699,7 +2699,7 @@ pub struct DescribeOrderableDBInstanceOptions { _private: (), } impl DescribeOrderableDBInstanceOptions { - /// Creates a new builder-style object to manufacture [`DescribeOrderableDBInstanceOptionsInput`](crate::input::DescribeOrderableDBInstanceOptionsInput) + /// Creates a new builder-style object to manufacture [`DescribeOrderableDbInstanceOptionsInput`](crate::input::DescribeOrderableDbInstanceOptionsInput) pub fn builder() -> crate::input::describe_orderable_db_instance_options_input::Builder { crate::input::describe_orderable_db_instance_options_input::Builder::default() } @@ -2709,7 +2709,7 @@ impl DescribeOrderableDBInstanceOptions { } impl smithy_http::response::ParseStrictResponse for DescribeOrderableDBInstanceOptions { type Output = std::result::Result< - crate::output::DescribeOrderableDBInstanceOptionsOutput, + crate::output::DescribeOrderableDbInstanceOptionsOutput, crate::error::DescribeOrderableDBInstanceOptionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2755,7 +2755,7 @@ pub struct DescribeReservedDBInstances { _private: (), } impl DescribeReservedDBInstances { - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesInput`](crate::input::DescribeReservedDBInstancesInput) + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesInput`](crate::input::DescribeReservedDbInstancesInput) pub fn builder() -> crate::input::describe_reserved_db_instances_input::Builder { crate::input::describe_reserved_db_instances_input::Builder::default() } @@ -2765,7 +2765,7 @@ impl DescribeReservedDBInstances { } impl smithy_http::response::ParseStrictResponse for DescribeReservedDBInstances { type Output = std::result::Result< - crate::output::DescribeReservedDBInstancesOutput, + crate::output::DescribeReservedDbInstancesOutput, crate::error::DescribeReservedDBInstancesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2783,7 +2783,7 @@ pub struct DescribeReservedDBInstancesOfferings { _private: (), } impl DescribeReservedDBInstancesOfferings { - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesOfferingsInput`](crate::input::DescribeReservedDBInstancesOfferingsInput) + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesOfferingsInput`](crate::input::DescribeReservedDbInstancesOfferingsInput) pub fn builder() -> crate::input::describe_reserved_db_instances_offerings_input::Builder { crate::input::describe_reserved_db_instances_offerings_input::Builder::default() } @@ -2793,7 +2793,7 @@ impl DescribeReservedDBInstancesOfferings { } impl smithy_http::response::ParseStrictResponse for DescribeReservedDBInstancesOfferings { type Output = std::result::Result< - crate::output::DescribeReservedDBInstancesOfferingsOutput, + crate::output::DescribeReservedDbInstancesOfferingsOutput, crate::error::DescribeReservedDBInstancesOfferingsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2846,7 +2846,7 @@ pub struct DescribeValidDBInstanceModifications { _private: (), } impl DescribeValidDBInstanceModifications { - /// Creates a new builder-style object to manufacture [`DescribeValidDBInstanceModificationsInput`](crate::input::DescribeValidDBInstanceModificationsInput) + /// Creates a new builder-style object to manufacture [`DescribeValidDbInstanceModificationsInput`](crate::input::DescribeValidDbInstanceModificationsInput) pub fn builder() -> crate::input::describe_valid_db_instance_modifications_input::Builder { crate::input::describe_valid_db_instance_modifications_input::Builder::default() } @@ -2856,7 +2856,7 @@ impl DescribeValidDBInstanceModifications { } impl smithy_http::response::ParseStrictResponse for DescribeValidDBInstanceModifications { type Output = std::result::Result< - crate::output::DescribeValidDBInstanceModificationsOutput, + crate::output::DescribeValidDbInstanceModificationsOutput, crate::error::DescribeValidDBInstanceModificationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2876,7 +2876,7 @@ pub struct DownloadDBLogFilePortion { _private: (), } impl DownloadDBLogFilePortion { - /// Creates a new builder-style object to manufacture [`DownloadDBLogFilePortionInput`](crate::input::DownloadDBLogFilePortionInput) + /// Creates a new builder-style object to manufacture [`DownloadDbLogFilePortionInput`](crate::input::DownloadDbLogFilePortionInput) pub fn builder() -> crate::input::download_db_log_file_portion_input::Builder { crate::input::download_db_log_file_portion_input::Builder::default() } @@ -2886,7 +2886,7 @@ impl DownloadDBLogFilePortion { } impl smithy_http::response::ParseStrictResponse for DownloadDBLogFilePortion { type Output = std::result::Result< - crate::output::DownloadDBLogFilePortionOutput, + crate::output::DownloadDbLogFilePortionOutput, crate::error::DownloadDBLogFilePortionError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2917,7 +2917,7 @@ pub struct FailoverDBCluster { _private: (), } impl FailoverDBCluster { - /// Creates a new builder-style object to manufacture [`FailoverDBClusterInput`](crate::input::FailoverDBClusterInput) + /// Creates a new builder-style object to manufacture [`FailoverDbClusterInput`](crate::input::FailoverDbClusterInput) pub fn builder() -> crate::input::failover_db_cluster_input::Builder { crate::input::failover_db_cluster_input::Builder::default() } @@ -2927,7 +2927,7 @@ impl FailoverDBCluster { } impl smithy_http::response::ParseStrictResponse for FailoverDBCluster { type Output = std::result::Result< - crate::output::FailoverDBClusterOutput, + crate::output::FailoverDbClusterOutput, crate::error::FailoverDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3116,7 +3116,7 @@ pub struct ModifyCurrentDBClusterCapacity { _private: (), } impl ModifyCurrentDBClusterCapacity { - /// Creates a new builder-style object to manufacture [`ModifyCurrentDBClusterCapacityInput`](crate::input::ModifyCurrentDBClusterCapacityInput) + /// Creates a new builder-style object to manufacture [`ModifyCurrentDbClusterCapacityInput`](crate::input::ModifyCurrentDbClusterCapacityInput) pub fn builder() -> crate::input::modify_current_db_cluster_capacity_input::Builder { crate::input::modify_current_db_cluster_capacity_input::Builder::default() } @@ -3126,7 +3126,7 @@ impl ModifyCurrentDBClusterCapacity { } impl smithy_http::response::ParseStrictResponse for ModifyCurrentDBClusterCapacity { type Output = std::result::Result< - crate::output::ModifyCurrentDBClusterCapacityOutput, + crate::output::ModifyCurrentDbClusterCapacityOutput, crate::error::ModifyCurrentDBClusterCapacityError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3153,7 +3153,7 @@ pub struct ModifyDBCluster { _private: (), } impl ModifyDBCluster { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterInput`](crate::input::ModifyDBClusterInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterInput`](crate::input::ModifyDbClusterInput) pub fn builder() -> crate::input::modify_db_cluster_input::Builder { crate::input::modify_db_cluster_input::Builder::default() } @@ -3163,7 +3163,7 @@ impl ModifyDBCluster { } impl smithy_http::response::ParseStrictResponse for ModifyDBCluster { type Output = std::result::Result< - crate::output::ModifyDBClusterOutput, + crate::output::ModifyDbClusterOutput, crate::error::ModifyDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3184,7 +3184,7 @@ pub struct ModifyDBClusterEndpoint { _private: (), } impl ModifyDBClusterEndpoint { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterEndpointInput`](crate::input::ModifyDBClusterEndpointInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterEndpointInput`](crate::input::ModifyDbClusterEndpointInput) pub fn builder() -> crate::input::modify_db_cluster_endpoint_input::Builder { crate::input::modify_db_cluster_endpoint_input::Builder::default() } @@ -3194,7 +3194,7 @@ impl ModifyDBClusterEndpoint { } impl smithy_http::response::ParseStrictResponse for ModifyDBClusterEndpoint { type Output = std::result::Result< - crate::output::ModifyDBClusterEndpointOutput, + crate::output::ModifyDbClusterEndpointOutput, crate::error::ModifyDBClusterEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3239,7 +3239,7 @@ pub struct ModifyDBClusterParameterGroup { _private: (), } impl ModifyDBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterParameterGroupInput`](crate::input::ModifyDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterParameterGroupInput`](crate::input::ModifyDbClusterParameterGroupInput) pub fn builder() -> crate::input::modify_db_cluster_parameter_group_input::Builder { crate::input::modify_db_cluster_parameter_group_input::Builder::default() } @@ -3249,7 +3249,7 @@ impl ModifyDBClusterParameterGroup { } impl smithy_http::response::ParseStrictResponse for ModifyDBClusterParameterGroup { type Output = std::result::Result< - crate::output::ModifyDBClusterParameterGroupOutput, + crate::output::ModifyDbClusterParameterGroupOutput, crate::error::ModifyDBClusterParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3288,7 +3288,7 @@ pub struct ModifyDBClusterSnapshotAttribute { _private: (), } impl ModifyDBClusterSnapshotAttribute { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterSnapshotAttributeInput`](crate::input::ModifyDBClusterSnapshotAttributeInput) + /// Creates a new builder-style object to manufacture [`ModifyDbClusterSnapshotAttributeInput`](crate::input::ModifyDbClusterSnapshotAttributeInput) pub fn builder() -> crate::input::modify_db_cluster_snapshot_attribute_input::Builder { crate::input::modify_db_cluster_snapshot_attribute_input::Builder::default() } @@ -3298,7 +3298,7 @@ impl ModifyDBClusterSnapshotAttribute { } impl smithy_http::response::ParseStrictResponse for ModifyDBClusterSnapshotAttribute { type Output = std::result::Result< - crate::output::ModifyDBClusterSnapshotAttributeOutput, + crate::output::ModifyDbClusterSnapshotAttributeOutput, crate::error::ModifyDBClusterSnapshotAttributeError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3321,7 +3321,7 @@ pub struct ModifyDBInstance { _private: (), } impl ModifyDBInstance { - /// Creates a new builder-style object to manufacture [`ModifyDBInstanceInput`](crate::input::ModifyDBInstanceInput) + /// Creates a new builder-style object to manufacture [`ModifyDbInstanceInput`](crate::input::ModifyDbInstanceInput) pub fn builder() -> crate::input::modify_db_instance_input::Builder { crate::input::modify_db_instance_input::Builder::default() } @@ -3331,7 +3331,7 @@ impl ModifyDBInstance { } impl smithy_http::response::ParseStrictResponse for ModifyDBInstance { type Output = std::result::Result< - crate::output::ModifyDBInstanceOutput, + crate::output::ModifyDbInstanceOutput, crate::error::ModifyDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3364,7 +3364,7 @@ pub struct ModifyDBParameterGroup { _private: (), } impl ModifyDBParameterGroup { - /// Creates a new builder-style object to manufacture [`ModifyDBParameterGroupInput`](crate::input::ModifyDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbParameterGroupInput`](crate::input::ModifyDbParameterGroupInput) pub fn builder() -> crate::input::modify_db_parameter_group_input::Builder { crate::input::modify_db_parameter_group_input::Builder::default() } @@ -3374,7 +3374,7 @@ impl ModifyDBParameterGroup { } impl smithy_http::response::ParseStrictResponse for ModifyDBParameterGroup { type Output = std::result::Result< - crate::output::ModifyDBParameterGroupOutput, + crate::output::ModifyDbParameterGroupOutput, crate::error::ModifyDBParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3392,7 +3392,7 @@ pub struct ModifyDBProxy { _private: (), } impl ModifyDBProxy { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyInput`](crate::input::ModifyDBProxyInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyInput`](crate::input::ModifyDbProxyInput) pub fn builder() -> crate::input::modify_db_proxy_input::Builder { crate::input::modify_db_proxy_input::Builder::default() } @@ -3402,7 +3402,7 @@ impl ModifyDBProxy { } impl smithy_http::response::ParseStrictResponse for ModifyDBProxy { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_modify_db_proxy_error(response) @@ -3418,7 +3418,7 @@ pub struct ModifyDBProxyEndpoint { _private: (), } impl ModifyDBProxyEndpoint { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyEndpointInput`](crate::input::ModifyDBProxyEndpointInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyEndpointInput`](crate::input::ModifyDbProxyEndpointInput) pub fn builder() -> crate::input::modify_db_proxy_endpoint_input::Builder { crate::input::modify_db_proxy_endpoint_input::Builder::default() } @@ -3428,7 +3428,7 @@ impl ModifyDBProxyEndpoint { } impl smithy_http::response::ParseStrictResponse for ModifyDBProxyEndpoint { type Output = std::result::Result< - crate::output::ModifyDBProxyEndpointOutput, + crate::output::ModifyDbProxyEndpointOutput, crate::error::ModifyDBProxyEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3446,7 +3446,7 @@ pub struct ModifyDBProxyTargetGroup { _private: (), } impl ModifyDBProxyTargetGroup { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyTargetGroupInput`](crate::input::ModifyDBProxyTargetGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbProxyTargetGroupInput`](crate::input::ModifyDbProxyTargetGroupInput) pub fn builder() -> crate::input::modify_db_proxy_target_group_input::Builder { crate::input::modify_db_proxy_target_group_input::Builder::default() } @@ -3456,7 +3456,7 @@ impl ModifyDBProxyTargetGroup { } impl smithy_http::response::ParseStrictResponse for ModifyDBProxyTargetGroup { type Output = std::result::Result< - crate::output::ModifyDBProxyTargetGroupOutput, + crate::output::ModifyDbProxyTargetGroupOutput, crate::error::ModifyDBProxyTargetGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3478,7 +3478,7 @@ pub struct ModifyDBSnapshot { _private: (), } impl ModifyDBSnapshot { - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotInput`](crate::input::ModifyDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotInput`](crate::input::ModifyDbSnapshotInput) pub fn builder() -> crate::input::modify_db_snapshot_input::Builder { crate::input::modify_db_snapshot_input::Builder::default() } @@ -3488,7 +3488,7 @@ impl ModifyDBSnapshot { } impl smithy_http::response::ParseStrictResponse for ModifyDBSnapshot { type Output = std::result::Result< - crate::output::ModifyDBSnapshotOutput, + crate::output::ModifyDbSnapshotOutput, crate::error::ModifyDBSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3522,7 +3522,7 @@ pub struct ModifyDBSnapshotAttribute { _private: (), } impl ModifyDBSnapshotAttribute { - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotAttributeInput`](crate::input::ModifyDBSnapshotAttributeInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotAttributeInput`](crate::input::ModifyDbSnapshotAttributeInput) pub fn builder() -> crate::input::modify_db_snapshot_attribute_input::Builder { crate::input::modify_db_snapshot_attribute_input::Builder::default() } @@ -3532,7 +3532,7 @@ impl ModifyDBSnapshotAttribute { } impl smithy_http::response::ParseStrictResponse for ModifyDBSnapshotAttribute { type Output = std::result::Result< - crate::output::ModifyDBSnapshotAttributeOutput, + crate::output::ModifyDbSnapshotAttributeOutput, crate::error::ModifyDBSnapshotAttributeError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3550,7 +3550,7 @@ pub struct ModifyDBSubnetGroup { _private: (), } impl ModifyDBSubnetGroup { - /// Creates a new builder-style object to manufacture [`ModifyDBSubnetGroupInput`](crate::input::ModifyDBSubnetGroupInput) + /// Creates a new builder-style object to manufacture [`ModifyDbSubnetGroupInput`](crate::input::ModifyDbSubnetGroupInput) pub fn builder() -> crate::input::modify_db_subnet_group_input::Builder { crate::input::modify_db_subnet_group_input::Builder::default() } @@ -3560,7 +3560,7 @@ impl ModifyDBSubnetGroup { } impl smithy_http::response::ParseStrictResponse for ModifyDBSubnetGroup { type Output = std::result::Result< - crate::output::ModifyDBSubnetGroupOutput, + crate::output::ModifyDbSubnetGroupOutput, crate::error::ModifyDBSubnetGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3722,7 +3722,7 @@ pub struct PromoteReadReplicaDBCluster { _private: (), } impl PromoteReadReplicaDBCluster { - /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDBClusterInput`](crate::input::PromoteReadReplicaDBClusterInput) + /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDbClusterInput`](crate::input::PromoteReadReplicaDbClusterInput) pub fn builder() -> crate::input::promote_read_replica_db_cluster_input::Builder { crate::input::promote_read_replica_db_cluster_input::Builder::default() } @@ -3732,7 +3732,7 @@ impl PromoteReadReplicaDBCluster { } impl smithy_http::response::ParseStrictResponse for PromoteReadReplicaDBCluster { type Output = std::result::Result< - crate::output::PromoteReadReplicaDBClusterOutput, + crate::output::PromoteReadReplicaDbClusterOutput, crate::error::PromoteReadReplicaDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3750,7 +3750,7 @@ pub struct PurchaseReservedDBInstancesOffering { _private: (), } impl PurchaseReservedDBInstancesOffering { - /// Creates a new builder-style object to manufacture [`PurchaseReservedDBInstancesOfferingInput`](crate::input::PurchaseReservedDBInstancesOfferingInput) + /// Creates a new builder-style object to manufacture [`PurchaseReservedDbInstancesOfferingInput`](crate::input::PurchaseReservedDbInstancesOfferingInput) pub fn builder() -> crate::input::purchase_reserved_db_instances_offering_input::Builder { crate::input::purchase_reserved_db_instances_offering_input::Builder::default() } @@ -3760,7 +3760,7 @@ impl PurchaseReservedDBInstancesOffering { } impl smithy_http::response::ParseStrictResponse for PurchaseReservedDBInstancesOffering { type Output = std::result::Result< - crate::output::PurchaseReservedDBInstancesOfferingOutput, + crate::output::PurchaseReservedDbInstancesOfferingOutput, crate::error::PurchaseReservedDBInstancesOfferingError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3787,7 +3787,7 @@ pub struct RebootDBInstance { _private: (), } impl RebootDBInstance { - /// Creates a new builder-style object to manufacture [`RebootDBInstanceInput`](crate::input::RebootDBInstanceInput) + /// Creates a new builder-style object to manufacture [`RebootDbInstanceInput`](crate::input::RebootDbInstanceInput) pub fn builder() -> crate::input::reboot_db_instance_input::Builder { crate::input::reboot_db_instance_input::Builder::default() } @@ -3797,7 +3797,7 @@ impl RebootDBInstance { } impl smithy_http::response::ParseStrictResponse for RebootDBInstance { type Output = std::result::Result< - crate::output::RebootDBInstanceOutput, + crate::output::RebootDbInstanceOutput, crate::error::RebootDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3815,7 +3815,7 @@ pub struct RegisterDBProxyTargets { _private: (), } impl RegisterDBProxyTargets { - /// Creates a new builder-style object to manufacture [`RegisterDBProxyTargetsInput`](crate::input::RegisterDBProxyTargetsInput) + /// Creates a new builder-style object to manufacture [`RegisterDbProxyTargetsInput`](crate::input::RegisterDbProxyTargetsInput) pub fn builder() -> crate::input::register_db_proxy_targets_input::Builder { crate::input::register_db_proxy_targets_input::Builder::default() } @@ -3825,7 +3825,7 @@ impl RegisterDBProxyTargets { } impl smithy_http::response::ParseStrictResponse for RegisterDBProxyTargets { type Output = std::result::Result< - crate::output::RegisterDBProxyTargetsOutput, + crate::output::RegisterDbProxyTargetsOutput, crate::error::RegisterDBProxyTargetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3883,7 +3883,7 @@ pub struct RemoveRoleFromDBCluster { _private: (), } impl RemoveRoleFromDBCluster { - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBClusterInput`](crate::input::RemoveRoleFromDBClusterInput) + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbClusterInput`](crate::input::RemoveRoleFromDbClusterInput) pub fn builder() -> crate::input::remove_role_from_db_cluster_input::Builder { crate::input::remove_role_from_db_cluster_input::Builder::default() } @@ -3893,7 +3893,7 @@ impl RemoveRoleFromDBCluster { } impl smithy_http::response::ParseStrictResponse for RemoveRoleFromDBCluster { type Output = std::result::Result< - crate::output::RemoveRoleFromDBClusterOutput, + crate::output::RemoveRoleFromDbClusterOutput, crate::error::RemoveRoleFromDBClusterError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -3911,7 +3911,7 @@ pub struct RemoveRoleFromDBInstance { _private: (), } impl RemoveRoleFromDBInstance { - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBInstanceInput`](crate::input::RemoveRoleFromDBInstanceInput) + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbInstanceInput`](crate::input::RemoveRoleFromDbInstanceInput) pub fn builder() -> crate::input::remove_role_from_db_instance_input::Builder { crate::input::remove_role_from_db_instance_input::Builder::default() } @@ -3921,7 +3921,7 @@ impl RemoveRoleFromDBInstance { } impl smithy_http::response::ParseStrictResponse for RemoveRoleFromDBInstance { type Output = std::result::Result< - crate::output::RemoveRoleFromDBInstanceOutput, + crate::output::RemoveRoleFromDbInstanceOutput, crate::error::RemoveRoleFromDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4019,7 +4019,7 @@ pub struct ResetDBClusterParameterGroup { _private: (), } impl ResetDBClusterParameterGroup { - /// Creates a new builder-style object to manufacture [`ResetDBClusterParameterGroupInput`](crate::input::ResetDBClusterParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ResetDbClusterParameterGroupInput`](crate::input::ResetDbClusterParameterGroupInput) pub fn builder() -> crate::input::reset_db_cluster_parameter_group_input::Builder { crate::input::reset_db_cluster_parameter_group_input::Builder::default() } @@ -4029,7 +4029,7 @@ impl ResetDBClusterParameterGroup { } impl smithy_http::response::ParseStrictResponse for ResetDBClusterParameterGroup { type Output = std::result::Result< - crate::output::ResetDBClusterParameterGroupOutput, + crate::output::ResetDbClusterParameterGroupOutput, crate::error::ResetDBClusterParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4054,7 +4054,7 @@ pub struct ResetDBParameterGroup { _private: (), } impl ResetDBParameterGroup { - /// Creates a new builder-style object to manufacture [`ResetDBParameterGroupInput`](crate::input::ResetDBParameterGroupInput) + /// Creates a new builder-style object to manufacture [`ResetDbParameterGroupInput`](crate::input::ResetDbParameterGroupInput) pub fn builder() -> crate::input::reset_db_parameter_group_input::Builder { crate::input::reset_db_parameter_group_input::Builder::default() } @@ -4064,7 +4064,7 @@ impl ResetDBParameterGroup { } impl smithy_http::response::ParseStrictResponse for ResetDBParameterGroup { type Output = std::result::Result< - crate::output::ResetDBParameterGroupOutput, + crate::output::ResetDbParameterGroupOutput, crate::error::ResetDBParameterGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4101,7 +4101,7 @@ pub struct RestoreDBClusterFromS3 { _private: (), } impl RestoreDBClusterFromS3 { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromS3Input`](crate::input::RestoreDBClusterFromS3Input) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromS3Input`](crate::input::RestoreDbClusterFromS3Input) pub fn builder() -> crate::input::restore_db_cluster_from_s3_input::Builder { crate::input::restore_db_cluster_from_s3_input::Builder::default() } @@ -4111,7 +4111,7 @@ impl RestoreDBClusterFromS3 { } impl smithy_http::response::ParseStrictResponse for RestoreDBClusterFromS3 { type Output = std::result::Result< - crate::output::RestoreDBClusterFromS3Output, + crate::output::RestoreDbClusterFromS3Output, crate::error::RestoreDBClusterFromS3Error, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4148,7 +4148,7 @@ pub struct RestoreDBClusterFromSnapshot { _private: (), } impl RestoreDBClusterFromSnapshot { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromSnapshotInput`](crate::input::RestoreDBClusterFromSnapshotInput) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromSnapshotInput`](crate::input::RestoreDbClusterFromSnapshotInput) pub fn builder() -> crate::input::restore_db_cluster_from_snapshot_input::Builder { crate::input::restore_db_cluster_from_snapshot_input::Builder::default() } @@ -4158,7 +4158,7 @@ impl RestoreDBClusterFromSnapshot { } impl smithy_http::response::ParseStrictResponse for RestoreDBClusterFromSnapshot { type Output = std::result::Result< - crate::output::RestoreDBClusterFromSnapshotOutput, + crate::output::RestoreDbClusterFromSnapshotOutput, crate::error::RestoreDBClusterFromSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4195,7 +4195,7 @@ pub struct RestoreDBClusterToPointInTime { _private: (), } impl RestoreDBClusterToPointInTime { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterToPointInTimeInput`](crate::input::RestoreDBClusterToPointInTimeInput) + /// Creates a new builder-style object to manufacture [`RestoreDbClusterToPointInTimeInput`](crate::input::RestoreDbClusterToPointInTimeInput) pub fn builder() -> crate::input::restore_db_cluster_to_point_in_time_input::Builder { crate::input::restore_db_cluster_to_point_in_time_input::Builder::default() } @@ -4205,7 +4205,7 @@ impl RestoreDBClusterToPointInTime { } impl smithy_http::response::ParseStrictResponse for RestoreDBClusterToPointInTime { type Output = std::result::Result< - crate::output::RestoreDBClusterToPointInTimeOutput, + crate::output::RestoreDbClusterToPointInTimeOutput, crate::error::RestoreDBClusterToPointInTimeError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4236,7 +4236,7 @@ pub struct RestoreDBInstanceFromDBSnapshot { _private: (), } impl RestoreDBInstanceFromDBSnapshot { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromDBSnapshotInput`](crate::input::RestoreDBInstanceFromDBSnapshotInput) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromDbSnapshotInput`](crate::input::RestoreDbInstanceFromDbSnapshotInput) pub fn builder() -> crate::input::restore_db_instance_from_db_snapshot_input::Builder { crate::input::restore_db_instance_from_db_snapshot_input::Builder::default() } @@ -4246,7 +4246,7 @@ impl RestoreDBInstanceFromDBSnapshot { } impl smithy_http::response::ParseStrictResponse for RestoreDBInstanceFromDBSnapshot { type Output = std::result::Result< - crate::output::RestoreDBInstanceFromDBSnapshotOutput, + crate::output::RestoreDbInstanceFromDbSnapshotOutput, crate::error::RestoreDBInstanceFromDBSnapshotError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4271,7 +4271,7 @@ pub struct RestoreDBInstanceFromS3 { _private: (), } impl RestoreDBInstanceFromS3 { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromS3Input`](crate::input::RestoreDBInstanceFromS3Input) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromS3Input`](crate::input::RestoreDbInstanceFromS3Input) pub fn builder() -> crate::input::restore_db_instance_from_s3_input::Builder { crate::input::restore_db_instance_from_s3_input::Builder::default() } @@ -4281,7 +4281,7 @@ impl RestoreDBInstanceFromS3 { } impl smithy_http::response::ParseStrictResponse for RestoreDBInstanceFromS3 { type Output = std::result::Result< - crate::output::RestoreDBInstanceFromS3Output, + crate::output::RestoreDbInstanceFromS3Output, crate::error::RestoreDBInstanceFromS3Error, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4308,7 +4308,7 @@ pub struct RestoreDBInstanceToPointInTime { _private: (), } impl RestoreDBInstanceToPointInTime { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceToPointInTimeInput`](crate::input::RestoreDBInstanceToPointInTimeInput) + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceToPointInTimeInput`](crate::input::RestoreDbInstanceToPointInTimeInput) pub fn builder() -> crate::input::restore_db_instance_to_point_in_time_input::Builder { crate::input::restore_db_instance_to_point_in_time_input::Builder::default() } @@ -4318,7 +4318,7 @@ impl RestoreDBInstanceToPointInTime { } impl smithy_http::response::ParseStrictResponse for RestoreDBInstanceToPointInTime { type Output = std::result::Result< - crate::output::RestoreDBInstanceToPointInTimeOutput, + crate::output::RestoreDbInstanceToPointInTimeOutput, crate::error::RestoreDBInstanceToPointInTimeError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4336,7 +4336,7 @@ pub struct RevokeDBSecurityGroupIngress { _private: (), } impl RevokeDBSecurityGroupIngress { - /// Creates a new builder-style object to manufacture [`RevokeDBSecurityGroupIngressInput`](crate::input::RevokeDBSecurityGroupIngressInput) + /// Creates a new builder-style object to manufacture [`RevokeDbSecurityGroupIngressInput`](crate::input::RevokeDbSecurityGroupIngressInput) pub fn builder() -> crate::input::revoke_db_security_group_ingress_input::Builder { crate::input::revoke_db_security_group_ingress_input::Builder::default() } @@ -4346,7 +4346,7 @@ impl RevokeDBSecurityGroupIngress { } impl smithy_http::response::ParseStrictResponse for RevokeDBSecurityGroupIngress { type Output = std::result::Result< - crate::output::RevokeDBSecurityGroupIngressOutput, + crate::output::RevokeDbSecurityGroupIngressOutput, crate::error::RevokeDBSecurityGroupIngressError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4402,7 +4402,7 @@ pub struct StartDBCluster { _private: (), } impl StartDBCluster { - /// Creates a new builder-style object to manufacture [`StartDBClusterInput`](crate::input::StartDBClusterInput) + /// Creates a new builder-style object to manufacture [`StartDbClusterInput`](crate::input::StartDbClusterInput) pub fn builder() -> crate::input::start_db_cluster_input::Builder { crate::input::start_db_cluster_input::Builder::default() } @@ -4412,7 +4412,7 @@ impl StartDBCluster { } impl smithy_http::response::ParseStrictResponse for StartDBCluster { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_start_db_cluster_error(response) @@ -4441,7 +4441,7 @@ pub struct StartDBInstance { _private: (), } impl StartDBInstance { - /// Creates a new builder-style object to manufacture [`StartDBInstanceInput`](crate::input::StartDBInstanceInput) + /// Creates a new builder-style object to manufacture [`StartDbInstanceInput`](crate::input::StartDbInstanceInput) pub fn builder() -> crate::input::start_db_instance_input::Builder { crate::input::start_db_instance_input::Builder::default() } @@ -4451,7 +4451,7 @@ impl StartDBInstance { } impl smithy_http::response::ParseStrictResponse for StartDBInstance { type Output = std::result::Result< - crate::output::StartDBInstanceOutput, + crate::output::StartDbInstanceOutput, crate::error::StartDBInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4472,7 +4472,7 @@ pub struct StartDBInstanceAutomatedBackupsReplication { _private: (), } impl StartDBInstanceAutomatedBackupsReplication { - /// Creates a new builder-style object to manufacture [`StartDBInstanceAutomatedBackupsReplicationInput`](crate::input::StartDBInstanceAutomatedBackupsReplicationInput) + /// Creates a new builder-style object to manufacture [`StartDbInstanceAutomatedBackupsReplicationInput`](crate::input::StartDbInstanceAutomatedBackupsReplicationInput) pub fn builder() -> crate::input::start_db_instance_automated_backups_replication_input::Builder { crate::input::start_db_instance_automated_backups_replication_input::Builder::default() @@ -4483,7 +4483,7 @@ impl StartDBInstanceAutomatedBackupsReplication { } impl smithy_http::response::ParseStrictResponse for StartDBInstanceAutomatedBackupsReplication { type Output = std::result::Result< - crate::output::StartDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StartDbInstanceAutomatedBackupsReplicationOutput, crate::error::StartDBInstanceAutomatedBackupsReplicationError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -4578,7 +4578,7 @@ pub struct StopDBCluster { _private: (), } impl StopDBCluster { - /// Creates a new builder-style object to manufacture [`StopDBClusterInput`](crate::input::StopDBClusterInput) + /// Creates a new builder-style object to manufacture [`StopDbClusterInput`](crate::input::StopDbClusterInput) pub fn builder() -> crate::input::stop_db_cluster_input::Builder { crate::input::stop_db_cluster_input::Builder::default() } @@ -4588,7 +4588,7 @@ impl StopDBCluster { } impl smithy_http::response::ParseStrictResponse for StopDBCluster { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_stop_db_cluster_error(response) @@ -4619,7 +4619,7 @@ pub struct StopDBInstance { _private: (), } impl StopDBInstance { - /// Creates a new builder-style object to manufacture [`StopDBInstanceInput`](crate::input::StopDBInstanceInput) + /// Creates a new builder-style object to manufacture [`StopDbInstanceInput`](crate::input::StopDbInstanceInput) pub fn builder() -> crate::input::stop_db_instance_input::Builder { crate::input::stop_db_instance_input::Builder::default() } @@ -4629,7 +4629,7 @@ impl StopDBInstance { } impl smithy_http::response::ParseStrictResponse for StopDBInstance { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_stop_db_instance_error(response) @@ -4648,7 +4648,7 @@ pub struct StopDBInstanceAutomatedBackupsReplication { _private: (), } impl StopDBInstanceAutomatedBackupsReplication { - /// Creates a new builder-style object to manufacture [`StopDBInstanceAutomatedBackupsReplicationInput`](crate::input::StopDBInstanceAutomatedBackupsReplicationInput) + /// Creates a new builder-style object to manufacture [`StopDbInstanceAutomatedBackupsReplicationInput`](crate::input::StopDbInstanceAutomatedBackupsReplicationInput) pub fn builder() -> crate::input::stop_db_instance_automated_backups_replication_input::Builder { crate::input::stop_db_instance_automated_backups_replication_input::Builder::default() @@ -4659,7 +4659,7 @@ impl StopDBInstanceAutomatedBackupsReplication { } impl smithy_http::response::ParseStrictResponse for StopDBInstanceAutomatedBackupsReplication { type Output = std::result::Result< - crate::output::StopDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StopDbInstanceAutomatedBackupsReplicationOutput, crate::error::StopDBInstanceAutomatedBackupsReplicationError, >; fn parse(&self, response: &http::Response) -> Self::Output { diff --git a/sdk/rds/src/operation_deser.rs b/sdk/rds/src/operation_deser.rs index 517bfafc91cd..855ba787f02f 100644 --- a/sdk/rds/src/operation_deser.rs +++ b/sdk/rds/src/operation_deser.rs @@ -3,7 +3,7 @@ pub fn parse_add_role_to_db_cluster_error( response: &http::Response, ) -> std::result::Result< - crate::output::AddRoleToDBClusterOutput, + crate::output::AddRoleToDbClusterOutput, crate::error::AddRoleToDBClusterError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -15,7 +15,7 @@ pub fn parse_add_role_to_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::AddRoleToDBClusterError { meta: generic, - kind: crate::error::AddRoleToDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::AddRoleToDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -30,7 +30,7 @@ pub fn parse_add_role_to_db_cluster_error( "DBClusterRoleAlreadyExistsFault" => { crate::error::AddRoleToDBClusterError { meta: generic, - kind: crate::error::AddRoleToDBClusterErrorKind::DBClusterRoleAlreadyExistsFault({ + kind: crate::error::AddRoleToDBClusterErrorKind::DbClusterRoleAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_role_already_exists_fault::Builder::default(); @@ -43,7 +43,7 @@ pub fn parse_add_role_to_db_cluster_error( "DBClusterRoleQuotaExceededFault" => { crate::error::AddRoleToDBClusterError { meta: generic, - kind: crate::error::AddRoleToDBClusterErrorKind::DBClusterRoleQuotaExceededFault({ + kind: crate::error::AddRoleToDBClusterErrorKind::DbClusterRoleQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_role_quota_exceeded_fault::Builder::default(); @@ -55,7 +55,7 @@ pub fn parse_add_role_to_db_cluster_error( } "InvalidDBClusterStateFault" => crate::error::AddRoleToDBClusterError { meta: generic, - kind: crate::error::AddRoleToDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::AddRoleToDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -75,7 +75,7 @@ pub fn parse_add_role_to_db_cluster_error( pub fn parse_add_role_to_db_cluster_response( response: &http::Response, ) -> std::result::Result< - crate::output::AddRoleToDBClusterOutput, + crate::output::AddRoleToDbClusterOutput, crate::error::AddRoleToDBClusterError, > { Ok({ @@ -90,7 +90,7 @@ pub fn parse_add_role_to_db_cluster_response( pub fn parse_add_role_to_db_instance_error( response: &http::Response, ) -> std::result::Result< - crate::output::AddRoleToDBInstanceOutput, + crate::output::AddRoleToDbInstanceOutput, crate::error::AddRoleToDBInstanceError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -102,7 +102,7 @@ pub fn parse_add_role_to_db_instance_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::AddRoleToDBInstanceError { meta: generic, - kind: crate::error::AddRoleToDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::AddRoleToDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -116,7 +116,7 @@ pub fn parse_add_role_to_db_instance_error( }, "DBInstanceRoleAlreadyExistsFault" => crate::error::AddRoleToDBInstanceError { meta: generic, - kind: crate::error::AddRoleToDBInstanceErrorKind::DBInstanceRoleAlreadyExistsFault({ + kind: crate::error::AddRoleToDBInstanceErrorKind::DbInstanceRoleAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_role_already_exists_fault::Builder::default(); @@ -127,7 +127,7 @@ pub fn parse_add_role_to_db_instance_error( }, "DBInstanceRoleQuotaExceededFault" => crate::error::AddRoleToDBInstanceError { meta: generic, - kind: crate::error::AddRoleToDBInstanceErrorKind::DBInstanceRoleQuotaExceededFault({ + kind: crate::error::AddRoleToDBInstanceErrorKind::DbInstanceRoleQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_role_quota_exceeded_fault::Builder::default(); @@ -138,7 +138,7 @@ pub fn parse_add_role_to_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::AddRoleToDBInstanceError { meta: generic, - kind: crate::error::AddRoleToDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::AddRoleToDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -158,7 +158,7 @@ pub fn parse_add_role_to_db_instance_error( pub fn parse_add_role_to_db_instance_response( response: &http::Response, ) -> std::result::Result< - crate::output::AddRoleToDBInstanceOutput, + crate::output::AddRoleToDbInstanceOutput, crate::error::AddRoleToDBInstanceError, > { Ok({ @@ -259,7 +259,7 @@ pub fn parse_add_tags_to_resource_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::AddTagsToResourceError { meta: generic, - kind: crate::error::AddTagsToResourceErrorKind::DBClusterNotFoundFault({ + kind: crate::error::AddTagsToResourceErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -273,7 +273,7 @@ pub fn parse_add_tags_to_resource_error( }, "DBInstanceNotFoundFault" => crate::error::AddTagsToResourceError { meta: generic, - kind: crate::error::AddTagsToResourceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::AddTagsToResourceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -287,7 +287,7 @@ pub fn parse_add_tags_to_resource_error( }, "DBProxyNotFoundFault" => crate::error::AddTagsToResourceError { meta: generic, - kind: crate::error::AddTagsToResourceErrorKind::DBProxyNotFoundFault({ + kind: crate::error::AddTagsToResourceErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -301,7 +301,7 @@ pub fn parse_add_tags_to_resource_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::AddTagsToResourceError { meta: generic, - kind: crate::error::AddTagsToResourceErrorKind::DBProxyTargetGroupNotFoundFault({ + kind: crate::error::AddTagsToResourceErrorKind::DbProxyTargetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_group_not_found_fault::Builder::default(); @@ -312,7 +312,7 @@ pub fn parse_add_tags_to_resource_error( }, "DBSnapshotNotFoundFault" => crate::error::AddTagsToResourceError { meta: generic, - kind: crate::error::AddTagsToResourceErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::AddTagsToResourceErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -363,7 +363,7 @@ pub fn parse_apply_pending_maintenance_action_error( crate::error::ApplyPendingMaintenanceActionError { meta: generic, kind: - crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDBClusterStateFault( + crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault( { #[allow(unused_mut)] let mut output = @@ -377,7 +377,7 @@ pub fn parse_apply_pending_maintenance_action_error( } "InvalidDBInstanceStateFault" => crate::error::ApplyPendingMaintenanceActionError { meta: generic, - kind: crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDBInstanceStateFault( + kind: crate::error::ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault( { #[allow(unused_mut)] let mut output = @@ -435,7 +435,7 @@ pub fn parse_apply_pending_maintenance_action_response( pub fn parse_authorize_db_security_group_ingress_error( response: &http::Response, ) -> std::result::Result< - crate::output::AuthorizeDBSecurityGroupIngressOutput, + crate::output::AuthorizeDbSecurityGroupIngressOutput, crate::error::AuthorizeDBSecurityGroupIngressError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -457,13 +457,13 @@ pub fn parse_authorize_db_security_group_ingress_error( output = crate::xml_deser::deser_structure_authorization_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::AuthorizeDBSecurityGroupIngressError::unhandled)?; output.build() })}, - "DBSecurityGroupNotFoundFault" => crate::error::AuthorizeDBSecurityGroupIngressError { meta: generic, kind: crate::error::AuthorizeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault({ + "DBSecurityGroupNotFoundFault" => crate::error::AuthorizeDBSecurityGroupIngressError { meta: generic, kind: crate::error::AuthorizeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::AuthorizeDBSecurityGroupIngressError::unhandled)?; output.build() })}, - "InvalidDBSecurityGroupStateFault" => crate::error::AuthorizeDBSecurityGroupIngressError { meta: generic, kind: crate::error::AuthorizeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault({ + "InvalidDBSecurityGroupStateFault" => crate::error::AuthorizeDBSecurityGroupIngressError { meta: generic, kind: crate::error::AuthorizeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_security_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_security_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::AuthorizeDBSecurityGroupIngressError::unhandled)?; @@ -477,7 +477,7 @@ pub fn parse_authorize_db_security_group_ingress_error( pub fn parse_authorize_db_security_group_ingress_response( response: &http::Response, ) -> std::result::Result< - crate::output::AuthorizeDBSecurityGroupIngressOutput, + crate::output::AuthorizeDbSecurityGroupIngressOutput, crate::error::AuthorizeDBSecurityGroupIngressError, > { Ok({ @@ -498,7 +498,7 @@ pub fn parse_authorize_db_security_group_ingress_response( pub fn parse_backtrack_db_cluster_error( response: &http::Response, ) -> std::result::Result< - crate::output::BacktrackDBClusterOutput, + crate::output::BacktrackDbClusterOutput, crate::error::BacktrackDBClusterError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -510,7 +510,7 @@ pub fn parse_backtrack_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::BacktrackDBClusterError { meta: generic, - kind: crate::error::BacktrackDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::BacktrackDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -524,7 +524,7 @@ pub fn parse_backtrack_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::BacktrackDBClusterError { meta: generic, - kind: crate::error::BacktrackDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::BacktrackDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -544,7 +544,7 @@ pub fn parse_backtrack_db_cluster_error( pub fn parse_backtrack_db_cluster_response( response: &http::Response, ) -> std::result::Result< - crate::output::BacktrackDBClusterOutput, + crate::output::BacktrackDbClusterOutput, crate::error::BacktrackDBClusterError, > { Ok({ @@ -624,7 +624,7 @@ pub fn parse_cancel_export_task_response( pub fn parse_copy_db_cluster_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBClusterParameterGroupOutput, + crate::output::CopyDbClusterParameterGroupOutput, crate::error::CopyDBClusterParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -638,19 +638,19 @@ pub fn parse_copy_db_cluster_parameter_group_error( } }; Err(match error_code { - "DBParameterGroupAlreadyExistsFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault({ + "DBParameterGroupAlreadyExistsFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CopyDBClusterParameterGroupError::unhandled)?; output.build() })}, - "DBParameterGroupNotFoundFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CopyDBClusterParameterGroupError::unhandled)?; output.build() })}, - "DBParameterGroupQuotaExceededFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault({ + "DBParameterGroupQuotaExceededFault" => crate::error::CopyDBClusterParameterGroupError { meta: generic, kind: crate::error::CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CopyDBClusterParameterGroupError::unhandled)?; @@ -664,7 +664,7 @@ pub fn parse_copy_db_cluster_parameter_group_error( pub fn parse_copy_db_cluster_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBClusterParameterGroupOutput, + crate::output::CopyDbClusterParameterGroupOutput, crate::error::CopyDBClusterParameterGroupError, > { Ok({ @@ -684,7 +684,7 @@ pub fn parse_copy_db_cluster_parameter_group_response( pub fn parse_copy_db_cluster_snapshot_error( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBClusterSnapshotOutput, + crate::output::CopyDbClusterSnapshotOutput, crate::error::CopyDBClusterSnapshotError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -696,7 +696,7 @@ pub fn parse_copy_db_cluster_snapshot_error( Err(match error_code { "DBClusterSnapshotAlreadyExistsFault" => crate::error::CopyDBClusterSnapshotError { meta: generic, - kind: crate::error::CopyDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault( + kind: crate::error::CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -710,7 +710,7 @@ pub fn parse_copy_db_cluster_snapshot_error( "DBClusterSnapshotNotFoundFault" => { crate::error::CopyDBClusterSnapshotError { meta: generic, - kind: crate::error::CopyDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault( + kind: crate::error::CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -724,7 +724,7 @@ pub fn parse_copy_db_cluster_snapshot_error( } "InvalidDBClusterSnapshotStateFault" => crate::error::CopyDBClusterSnapshotError { meta: generic, - kind: crate::error::CopyDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault( + kind: crate::error::CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault( { #[allow(unused_mut)] let mut output = @@ -737,7 +737,7 @@ pub fn parse_copy_db_cluster_snapshot_error( }, "InvalidDBClusterStateFault" => crate::error::CopyDBClusterSnapshotError { meta: generic, - kind: crate::error::CopyDBClusterSnapshotErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -751,7 +751,7 @@ pub fn parse_copy_db_cluster_snapshot_error( }, "KMSKeyNotAccessibleFault" => crate::error::CopyDBClusterSnapshotError { meta: generic, - kind: crate::error::CopyDBClusterSnapshotErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -785,7 +785,7 @@ pub fn parse_copy_db_cluster_snapshot_error( pub fn parse_copy_db_cluster_snapshot_response( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBClusterSnapshotOutput, + crate::output::CopyDbClusterSnapshotOutput, crate::error::CopyDBClusterSnapshotError, > { Ok({ @@ -805,7 +805,7 @@ pub fn parse_copy_db_cluster_snapshot_response( pub fn parse_copy_db_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBParameterGroupOutput, + crate::output::CopyDbParameterGroupOutput, crate::error::CopyDBParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -817,7 +817,7 @@ pub fn parse_copy_db_parameter_group_error( Err(match error_code { "DBParameterGroupAlreadyExistsFault" => crate::error::CopyDBParameterGroupError { meta: generic, - kind: crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault( + kind: crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -831,7 +831,7 @@ pub fn parse_copy_db_parameter_group_error( "DBParameterGroupNotFoundFault" => { crate::error::CopyDBParameterGroupError { meta: generic, - kind: crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault({ + kind: crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); @@ -843,7 +843,7 @@ pub fn parse_copy_db_parameter_group_error( } "DBParameterGroupQuotaExceededFault" => crate::error::CopyDBParameterGroupError { meta: generic, - kind: crate::error::CopyDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault( + kind: crate::error::CopyDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault( { #[allow(unused_mut)] let mut output = @@ -862,7 +862,7 @@ pub fn parse_copy_db_parameter_group_error( pub fn parse_copy_db_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CopyDBParameterGroupOutput, + crate::output::CopyDbParameterGroupOutput, crate::error::CopyDBParameterGroupError, > { Ok({ @@ -881,7 +881,7 @@ pub fn parse_copy_db_parameter_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_copy_db_snapshot_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::CopyDBSnapshotError::unhandled)?; let error_code = match generic.code() { @@ -902,7 +902,7 @@ pub fn parse_copy_db_snapshot_error( }, "DBSnapshotAlreadyExistsFault" => crate::error::CopyDBSnapshotError { meta: generic, - kind: crate::error::CopyDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault({ + kind: crate::error::CopyDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_already_exists_fault::Builder::default(); let _ = response; @@ -917,7 +917,7 @@ pub fn parse_copy_db_snapshot_error( }, "DBSnapshotNotFoundFault" => crate::error::CopyDBSnapshotError { meta: generic, - kind: crate::error::CopyDBSnapshotErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::CopyDBSnapshotErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -931,7 +931,7 @@ pub fn parse_copy_db_snapshot_error( }, "InvalidDBSnapshotStateFault" => crate::error::CopyDBSnapshotError { meta: generic, - kind: crate::error::CopyDBSnapshotErrorKind::InvalidDBSnapshotStateFault({ + kind: crate::error::CopyDBSnapshotErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; @@ -945,7 +945,7 @@ pub fn parse_copy_db_snapshot_error( }, "KMSKeyNotAccessibleFault" => crate::error::CopyDBSnapshotError { meta: generic, - kind: crate::error::CopyDBSnapshotErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::CopyDBSnapshotErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -978,7 +978,7 @@ pub fn parse_copy_db_snapshot_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_copy_db_snapshot_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::copy_db_snapshot_output::Builder::default(); @@ -1090,7 +1090,7 @@ pub fn parse_create_custom_availability_zone_error( output = crate::xml_deser::deser_structure_custom_availability_zone_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomAvailabilityZoneError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::CreateCustomAvailabilityZoneError { meta: generic, kind: crate::error::CreateCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::CreateCustomAvailabilityZoneError { meta: generic, kind: crate::error::CreateCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomAvailabilityZoneError::unhandled)?; @@ -1123,7 +1123,7 @@ pub fn parse_create_custom_availability_zone_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_cluster_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::CreateDBClusterError::unhandled)?; let error_code = match generic.code() { @@ -1133,7 +1133,7 @@ pub fn parse_create_db_cluster_error( Err(match error_code { "DBClusterAlreadyExistsFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBClusterAlreadyExistsFault({ + kind: crate::error::CreateDBClusterErrorKind::DbClusterAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_already_exists_fault::Builder::default(); let _ = response; @@ -1147,7 +1147,7 @@ pub fn parse_create_db_cluster_error( }, "DBClusterNotFoundFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::CreateDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -1161,7 +1161,7 @@ pub fn parse_create_db_cluster_error( }, "DBClusterParameterGroupNotFoundFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBClusterParameterGroupNotFoundFault({ + kind: crate::error::CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_parameter_group_not_found_fault::Builder::default(); @@ -1172,7 +1172,7 @@ pub fn parse_create_db_cluster_error( }, "DBClusterQuotaExceededFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBClusterQuotaExceededFault({ + kind: crate::error::CreateDBClusterErrorKind::DbClusterQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_quota_exceeded_fault::Builder::default(); let _ = response; @@ -1186,7 +1186,7 @@ pub fn parse_create_db_cluster_error( }, "DBInstanceNotFoundFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::CreateDBClusterErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -1200,7 +1200,7 @@ pub fn parse_create_db_cluster_error( }, "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + kind: crate::error::CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); @@ -1211,7 +1211,7 @@ pub fn parse_create_db_cluster_error( }, "DBSubnetGroupNotFoundFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -1267,7 +1267,7 @@ pub fn parse_create_db_cluster_error( } "InvalidDBClusterStateFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CreateDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -1281,7 +1281,7 @@ pub fn parse_create_db_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::CreateDBClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -1296,7 +1296,7 @@ pub fn parse_create_db_cluster_error( "InvalidDBSubnetGroupStateFault" => { crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::InvalidDBSubnetGroupStateFault({ + kind: crate::error::CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_subnet_group_state_fault::Builder::default(); @@ -1335,7 +1335,7 @@ pub fn parse_create_db_cluster_error( }, "InvalidVPCNetworkStateFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::CreateDBClusterErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -1349,7 +1349,7 @@ pub fn parse_create_db_cluster_error( }, "KMSKeyNotAccessibleFault" => crate::error::CreateDBClusterError { meta: generic, - kind: crate::error::CreateDBClusterErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::CreateDBClusterErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -1382,7 +1382,7 @@ pub fn parse_create_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_cluster_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_db_cluster_output::Builder::default(); @@ -1398,7 +1398,7 @@ pub fn parse_create_db_cluster_response( pub fn parse_create_db_cluster_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterEndpointOutput, + crate::output::CreateDbClusterEndpointOutput, crate::error::CreateDBClusterEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1415,7 +1415,7 @@ pub fn parse_create_db_cluster_endpoint_error( "DBClusterEndpointAlreadyExistsFault" => crate::error::CreateDBClusterEndpointError { meta: generic, kind: - crate::error::CreateDBClusterEndpointErrorKind::DBClusterEndpointAlreadyExistsFault( + crate::error::CreateDBClusterEndpointErrorKind::DbClusterEndpointAlreadyExistsFault( { #[allow(unused_mut)]let mut output = crate::error::db_cluster_endpoint_already_exists_fault::Builder::default(); let _ = response; @@ -1427,7 +1427,7 @@ pub fn parse_create_db_cluster_endpoint_error( "DBClusterEndpointQuotaExceededFault" => crate::error::CreateDBClusterEndpointError { meta: generic, kind: - crate::error::CreateDBClusterEndpointErrorKind::DBClusterEndpointQuotaExceededFault( + crate::error::CreateDBClusterEndpointErrorKind::DbClusterEndpointQuotaExceededFault( { #[allow(unused_mut)]let mut output = crate::error::db_cluster_endpoint_quota_exceeded_fault::Builder::default(); let _ = response; @@ -1438,7 +1438,7 @@ pub fn parse_create_db_cluster_endpoint_error( }, "DBClusterNotFoundFault" => crate::error::CreateDBClusterEndpointError { meta: generic, - kind: crate::error::CreateDBClusterEndpointErrorKind::DBClusterNotFoundFault({ + kind: crate::error::CreateDBClusterEndpointErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -1452,7 +1452,7 @@ pub fn parse_create_db_cluster_endpoint_error( }, "DBInstanceNotFoundFault" => crate::error::CreateDBClusterEndpointError { meta: generic, - kind: crate::error::CreateDBClusterEndpointErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::CreateDBClusterEndpointErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -1466,7 +1466,7 @@ pub fn parse_create_db_cluster_endpoint_error( }, "InvalidDBClusterStateFault" => crate::error::CreateDBClusterEndpointError { meta: generic, - kind: crate::error::CreateDBClusterEndpointErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CreateDBClusterEndpointErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -1480,7 +1480,7 @@ pub fn parse_create_db_cluster_endpoint_error( }, "InvalidDBInstanceStateFault" => crate::error::CreateDBClusterEndpointError { meta: generic, - kind: crate::error::CreateDBClusterEndpointErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::CreateDBClusterEndpointErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -1500,7 +1500,7 @@ pub fn parse_create_db_cluster_endpoint_error( pub fn parse_create_db_cluster_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterEndpointOutput, + crate::output::CreateDbClusterEndpointOutput, crate::error::CreateDBClusterEndpointError, > { Ok({ @@ -1520,7 +1520,7 @@ pub fn parse_create_db_cluster_endpoint_response( pub fn parse_create_db_cluster_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterParameterGroupOutput, + crate::output::CreateDbClusterParameterGroupOutput, crate::error::CreateDBClusterParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1534,13 +1534,13 @@ pub fn parse_create_db_cluster_parameter_group_error( } }; Err(match error_code { - "DBParameterGroupAlreadyExistsFault" => crate::error::CreateDBClusterParameterGroupError { meta: generic, kind: crate::error::CreateDBClusterParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault({ + "DBParameterGroupAlreadyExistsFault" => crate::error::CreateDBClusterParameterGroupError { meta: generic, kind: crate::error::CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBClusterParameterGroupError::unhandled)?; output.build() })}, - "DBParameterGroupQuotaExceededFault" => crate::error::CreateDBClusterParameterGroupError { meta: generic, kind: crate::error::CreateDBClusterParameterGroupErrorKind::DBParameterGroupQuotaExceededFault({ + "DBParameterGroupQuotaExceededFault" => crate::error::CreateDBClusterParameterGroupError { meta: generic, kind: crate::error::CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBClusterParameterGroupError::unhandled)?; @@ -1554,7 +1554,7 @@ pub fn parse_create_db_cluster_parameter_group_error( pub fn parse_create_db_cluster_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterParameterGroupOutput, + crate::output::CreateDbClusterParameterGroupOutput, crate::error::CreateDBClusterParameterGroupError, > { Ok({ @@ -1575,7 +1575,7 @@ pub fn parse_create_db_cluster_parameter_group_response( pub fn parse_create_db_cluster_snapshot_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterSnapshotOutput, + crate::output::CreateDbClusterSnapshotOutput, crate::error::CreateDBClusterSnapshotError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1591,7 +1591,7 @@ pub fn parse_create_db_cluster_snapshot_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::CreateDBClusterSnapshotError { meta: generic, - kind: crate::error::CreateDBClusterSnapshotErrorKind::DBClusterNotFoundFault({ + kind: crate::error::CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -1606,7 +1606,7 @@ pub fn parse_create_db_cluster_snapshot_error( "DBClusterSnapshotAlreadyExistsFault" => crate::error::CreateDBClusterSnapshotError { meta: generic, kind: - crate::error::CreateDBClusterSnapshotErrorKind::DBClusterSnapshotAlreadyExistsFault( + crate::error::CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault( { #[allow(unused_mut)]let mut output = crate::error::db_cluster_snapshot_already_exists_fault::Builder::default(); let _ = response; @@ -1618,7 +1618,7 @@ pub fn parse_create_db_cluster_snapshot_error( "InvalidDBClusterSnapshotStateFault" => crate::error::CreateDBClusterSnapshotError { meta: generic, kind: - crate::error::CreateDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault( + crate::error::CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault( { #[allow(unused_mut)] let mut output = @@ -1632,7 +1632,7 @@ pub fn parse_create_db_cluster_snapshot_error( }, "InvalidDBClusterStateFault" => crate::error::CreateDBClusterSnapshotError { meta: generic, - kind: crate::error::CreateDBClusterSnapshotErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -1666,7 +1666,7 @@ pub fn parse_create_db_cluster_snapshot_error( pub fn parse_create_db_cluster_snapshot_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBClusterSnapshotOutput, + crate::output::CreateDbClusterSnapshotOutput, crate::error::CreateDBClusterSnapshotError, > { Ok({ @@ -1685,7 +1685,7 @@ pub fn parse_create_db_cluster_snapshot_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_instance_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::CreateDBInstanceError::unhandled)?; @@ -1724,7 +1724,7 @@ pub fn parse_create_db_instance_error( }, "DBClusterNotFoundFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBClusterNotFoundFault({ + kind: crate::error::CreateDBInstanceErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -1738,7 +1738,7 @@ pub fn parse_create_db_instance_error( }, "DBInstanceAlreadyExistsFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBInstanceAlreadyExistsFault({ + kind: crate::error::CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_already_exists_fault::Builder::default(); let _ = response; @@ -1754,7 +1754,7 @@ pub fn parse_create_db_instance_error( "DBParameterGroupNotFoundFault" => { crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBParameterGroupNotFoundFault({ + kind: crate::error::CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); @@ -1767,7 +1767,7 @@ pub fn parse_create_db_instance_error( "DBSecurityGroupNotFoundFault" => { crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBSecurityGroupNotFoundFault({ + kind: crate::error::CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); @@ -1779,7 +1779,7 @@ pub fn parse_create_db_instance_error( } "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + kind: crate::error::CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); @@ -1790,7 +1790,7 @@ pub fn parse_create_db_instance_error( }, "DBSubnetGroupNotFoundFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -1832,7 +1832,7 @@ pub fn parse_create_db_instance_error( }, "InsufficientDBInstanceCapacityFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::InsufficientDBInstanceCapacityFault({ + kind: crate::error::CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)] let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); @@ -1843,7 +1843,7 @@ pub fn parse_create_db_instance_error( }, "InvalidDBClusterStateFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CreateDBInstanceErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -1871,7 +1871,7 @@ pub fn parse_create_db_instance_error( }, "InvalidVPCNetworkStateFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -1885,7 +1885,7 @@ pub fn parse_create_db_instance_error( }, "KMSKeyNotAccessibleFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -1913,7 +1913,7 @@ pub fn parse_create_db_instance_error( }, "ProvisionedIopsNotAvailableInAZFault" => crate::error::CreateDBInstanceError { meta: generic, - kind: crate::error::CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault({ + kind: crate::error::CreateDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault({ #[allow(unused_mut)] let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); @@ -1958,7 +1958,7 @@ pub fn parse_create_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_instance_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -1975,7 +1975,7 @@ pub fn parse_create_db_instance_response( pub fn parse_create_db_instance_read_replica_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBInstanceReadReplicaOutput, + crate::output::CreateDbInstanceReadReplicaOutput, crate::error::CreateDBInstanceReadReplicaError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1989,43 +1989,43 @@ pub fn parse_create_db_instance_read_replica_error( } }; Err(match error_code { - "DBInstanceAlreadyExistsFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBInstanceAlreadyExistsFault({ + "DBInstanceAlreadyExistsFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbInstanceAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBInstanceNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBInstanceNotFoundFault({ + "DBInstanceNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBParameterGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBSecurityGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBSecurityGroupNotFoundFault({ + "DBSecurityGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_does_not_cover_enough_a_zs_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBSubnetGroupNotAllowedFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotAllowedFault({ + "DBSubnetGroupNotAllowedFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotAllowedFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_allowed_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_allowed_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; @@ -2043,19 +2043,19 @@ pub fn parse_create_db_instance_read_replica_error( output = crate::xml_deser::deser_structure_instance_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "InsufficientDBInstanceCapacityFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InsufficientDBInstanceCapacityFault({ + "InsufficientDBInstanceCapacityFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)]let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_insufficient_db_instance_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "InvalidDBInstanceStateFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDBInstanceStateFault({ + "InvalidDBInstanceStateFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "InvalidDBSubnetGroupFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDBSubnetGroupFault({ + "InvalidDBSubnetGroupFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidDbSubnetGroupFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_subnet_group_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_subnet_group_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; @@ -2067,13 +2067,13 @@ pub fn parse_create_db_instance_read_replica_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; @@ -2085,7 +2085,7 @@ pub fn parse_create_db_instance_read_replica_error( output = crate::xml_deser::deser_structure_option_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; output.build() })}, - "ProvisionedIopsNotAvailableInAZFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAZFault({ + "ProvisionedIopsNotAvailableInAZFault" => crate::error::CreateDBInstanceReadReplicaError { meta: generic, kind: crate::error::CreateDBInstanceReadReplicaErrorKind::ProvisionedIopsNotAvailableInAzFault({ #[allow(unused_mut)]let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_provisioned_iops_not_available_in_az_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateDBInstanceReadReplicaError::unhandled)?; @@ -2111,7 +2111,7 @@ pub fn parse_create_db_instance_read_replica_error( pub fn parse_create_db_instance_read_replica_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBInstanceReadReplicaOutput, + crate::output::CreateDbInstanceReadReplicaOutput, crate::error::CreateDBInstanceReadReplicaError, > { Ok({ @@ -2131,7 +2131,7 @@ pub fn parse_create_db_instance_read_replica_response( pub fn parse_create_db_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBParameterGroupOutput, + crate::output::CreateDbParameterGroupOutput, crate::error::CreateDBParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2147,7 +2147,7 @@ pub fn parse_create_db_parameter_group_error( Err(match error_code { "DBParameterGroupAlreadyExistsFault" => crate::error::CreateDBParameterGroupError { meta: generic, - kind: crate::error::CreateDBParameterGroupErrorKind::DBParameterGroupAlreadyExistsFault( + kind: crate::error::CreateDBParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -2160,7 +2160,7 @@ pub fn parse_create_db_parameter_group_error( }, "DBParameterGroupQuotaExceededFault" => crate::error::CreateDBParameterGroupError { meta: generic, - kind: crate::error::CreateDBParameterGroupErrorKind::DBParameterGroupQuotaExceededFault( + kind: crate::error::CreateDBParameterGroupErrorKind::DbParameterGroupQuotaExceededFault( { #[allow(unused_mut)] let mut output = @@ -2179,7 +2179,7 @@ pub fn parse_create_db_parameter_group_error( pub fn parse_create_db_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBParameterGroupOutput, + crate::output::CreateDbParameterGroupOutput, crate::error::CreateDBParameterGroupError, > { Ok({ @@ -2198,7 +2198,7 @@ pub fn parse_create_db_parameter_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_proxy_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::CreateDBProxyError::unhandled)?; let error_code = match generic.code() { @@ -2208,7 +2208,7 @@ pub fn parse_create_db_proxy_error( Err(match error_code { "DBProxyAlreadyExistsFault" => crate::error::CreateDBProxyError { meta: generic, - kind: crate::error::CreateDBProxyErrorKind::DBProxyAlreadyExistsFault({ + kind: crate::error::CreateDBProxyErrorKind::DbProxyAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_already_exists_fault::Builder::default(); let _ = response; @@ -2222,7 +2222,7 @@ pub fn parse_create_db_proxy_error( }, "DBProxyQuotaExceededFault" => crate::error::CreateDBProxyError { meta: generic, - kind: crate::error::CreateDBProxyErrorKind::DBProxyQuotaExceededFault({ + kind: crate::error::CreateDBProxyErrorKind::DbProxyQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_quota_exceeded_fault::Builder::default(); let _ = response; @@ -2255,7 +2255,7 @@ pub fn parse_create_db_proxy_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_proxy_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_db_proxy_output::Builder::default(); @@ -2271,7 +2271,7 @@ pub fn parse_create_db_proxy_response( pub fn parse_create_db_proxy_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBProxyEndpointOutput, + crate::output::CreateDbProxyEndpointOutput, crate::error::CreateDBProxyEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2283,7 +2283,7 @@ pub fn parse_create_db_proxy_endpoint_error( Err(match error_code { "DBProxyEndpointAlreadyExistsFault" => crate::error::CreateDBProxyEndpointError { meta: generic, - kind: crate::error::CreateDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault( + kind: crate::error::CreateDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -2296,7 +2296,7 @@ pub fn parse_create_db_proxy_endpoint_error( }, "DBProxyEndpointQuotaExceededFault" => crate::error::CreateDBProxyEndpointError { meta: generic, - kind: crate::error::CreateDBProxyEndpointErrorKind::DBProxyEndpointQuotaExceededFault( + kind: crate::error::CreateDBProxyEndpointErrorKind::DbProxyEndpointQuotaExceededFault( { #[allow(unused_mut)] let mut output = @@ -2309,7 +2309,7 @@ pub fn parse_create_db_proxy_endpoint_error( }, "DBProxyNotFoundFault" => crate::error::CreateDBProxyEndpointError { meta: generic, - kind: crate::error::CreateDBProxyEndpointErrorKind::DBProxyNotFoundFault({ + kind: crate::error::CreateDBProxyEndpointErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -2323,7 +2323,7 @@ pub fn parse_create_db_proxy_endpoint_error( }, "InvalidDBProxyStateFault" => crate::error::CreateDBProxyEndpointError { meta: generic, - kind: crate::error::CreateDBProxyEndpointErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::CreateDBProxyEndpointErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -2357,7 +2357,7 @@ pub fn parse_create_db_proxy_endpoint_error( pub fn parse_create_db_proxy_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBProxyEndpointOutput, + crate::output::CreateDbProxyEndpointOutput, crate::error::CreateDBProxyEndpointError, > { Ok({ @@ -2377,7 +2377,7 @@ pub fn parse_create_db_proxy_endpoint_response( pub fn parse_create_db_security_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBSecurityGroupOutput, + crate::output::CreateDbSecurityGroupOutput, crate::error::CreateDBSecurityGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2389,7 +2389,7 @@ pub fn parse_create_db_security_group_error( Err(match error_code { "DBSecurityGroupAlreadyExistsFault" => crate::error::CreateDBSecurityGroupError { meta: generic, - kind: crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupAlreadyExistsFault( + kind: crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -2402,7 +2402,7 @@ pub fn parse_create_db_security_group_error( }, "DBSecurityGroupNotSupportedFault" => crate::error::CreateDBSecurityGroupError { meta: generic, - kind: crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupNotSupportedFault({ + kind: crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupNotSupportedFault({ #[allow(unused_mut)] let mut output = crate::error::db_security_group_not_supported_fault::Builder::default(); @@ -2413,7 +2413,7 @@ pub fn parse_create_db_security_group_error( }, "DBSecurityGroupQuotaExceededFault" => crate::error::CreateDBSecurityGroupError { meta: generic, - kind: crate::error::CreateDBSecurityGroupErrorKind::DBSecurityGroupQuotaExceededFault( + kind: crate::error::CreateDBSecurityGroupErrorKind::DbSecurityGroupQuotaExceededFault( { #[allow(unused_mut)] let mut output = @@ -2432,7 +2432,7 @@ pub fn parse_create_db_security_group_error( pub fn parse_create_db_security_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBSecurityGroupOutput, + crate::output::CreateDbSecurityGroupOutput, crate::error::CreateDBSecurityGroupError, > { Ok({ @@ -2451,7 +2451,7 @@ pub fn parse_create_db_security_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_snapshot_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::CreateDBSnapshotError::unhandled)?; @@ -2462,7 +2462,7 @@ pub fn parse_create_db_snapshot_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::CreateDBSnapshotError { meta: generic, - kind: crate::error::CreateDBSnapshotErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::CreateDBSnapshotErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -2476,7 +2476,7 @@ pub fn parse_create_db_snapshot_error( }, "DBSnapshotAlreadyExistsFault" => crate::error::CreateDBSnapshotError { meta: generic, - kind: crate::error::CreateDBSnapshotErrorKind::DBSnapshotAlreadyExistsFault({ + kind: crate::error::CreateDBSnapshotErrorKind::DbSnapshotAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_already_exists_fault::Builder::default(); let _ = response; @@ -2491,7 +2491,7 @@ pub fn parse_create_db_snapshot_error( }, "InvalidDBInstanceStateFault" => crate::error::CreateDBSnapshotError { meta: generic, - kind: crate::error::CreateDBSnapshotErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::CreateDBSnapshotErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -2524,7 +2524,7 @@ pub fn parse_create_db_snapshot_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_create_db_snapshot_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -2541,7 +2541,7 @@ pub fn parse_create_db_snapshot_response( pub fn parse_create_db_subnet_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBSubnetGroupOutput, + crate::output::CreateDbSubnetGroupOutput, crate::error::CreateDBSubnetGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2554,7 +2554,7 @@ pub fn parse_create_db_subnet_group_error( "DBSubnetGroupAlreadyExistsFault" => { crate::error::CreateDBSubnetGroupError { meta: generic, - kind: crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupAlreadyExistsFault( + kind: crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -2568,7 +2568,7 @@ pub fn parse_create_db_subnet_group_error( } "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::CreateDBSubnetGroupError { meta: generic, - kind: crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + kind: crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); @@ -2580,7 +2580,7 @@ pub fn parse_create_db_subnet_group_error( "DBSubnetGroupQuotaExceededFault" => { crate::error::CreateDBSubnetGroupError { meta: generic, - kind: crate::error::CreateDBSubnetGroupErrorKind::DBSubnetGroupQuotaExceededFault( + kind: crate::error::CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault( { #[allow(unused_mut)] let mut output = @@ -2594,7 +2594,7 @@ pub fn parse_create_db_subnet_group_error( } "DBSubnetQuotaExceededFault" => crate::error::CreateDBSubnetGroupError { meta: generic, - kind: crate::error::CreateDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault({ + kind: crate::error::CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_quota_exceeded_fault::Builder::default(); let _ = response; @@ -2628,7 +2628,7 @@ pub fn parse_create_db_subnet_group_error( pub fn parse_create_db_subnet_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateDBSubnetGroupOutput, + crate::output::CreateDbSubnetGroupOutput, crate::error::CreateDBSubnetGroupError, > { Ok({ @@ -2679,7 +2679,7 @@ pub fn parse_create_event_subscription_error( }, "SNSInvalidTopicFault" => crate::error::CreateEventSubscriptionError { meta: generic, - kind: crate::error::CreateEventSubscriptionErrorKind::SNSInvalidTopicFault({ + kind: crate::error::CreateEventSubscriptionErrorKind::SnsInvalidTopicFault({ #[allow(unused_mut)] let mut output = crate::error::sns_invalid_topic_fault::Builder::default(); let _ = response; @@ -2693,7 +2693,7 @@ pub fn parse_create_event_subscription_error( }, "SNSNoAuthorizationFault" => crate::error::CreateEventSubscriptionError { meta: generic, - kind: crate::error::CreateEventSubscriptionErrorKind::SNSNoAuthorizationFault({ + kind: crate::error::CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault({ #[allow(unused_mut)] let mut output = crate::error::sns_no_authorization_fault::Builder::default(); let _ = response; @@ -2707,7 +2707,7 @@ pub fn parse_create_event_subscription_error( }, "SNSTopicArnNotFoundFault" => crate::error::CreateEventSubscriptionError { meta: generic, - kind: crate::error::CreateEventSubscriptionErrorKind::SNSTopicArnNotFoundFault({ + kind: crate::error::CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::sns_topic_arn_not_found_fault::Builder::default(); let _ = response; @@ -2801,7 +2801,7 @@ pub fn parse_create_global_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::CreateGlobalClusterError { meta: generic, - kind: crate::error::CreateGlobalClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::CreateGlobalClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -2845,7 +2845,7 @@ pub fn parse_create_global_cluster_error( } "InvalidDBClusterStateFault" => crate::error::CreateGlobalClusterError { meta: generic, - kind: crate::error::CreateGlobalClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::CreateGlobalClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -2963,7 +2963,7 @@ pub fn parse_delete_custom_availability_zone_error( output = crate::xml_deser::deser_structure_custom_availability_zone_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomAvailabilityZoneError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::DeleteCustomAvailabilityZoneError { meta: generic, kind: crate::error::DeleteCustomAvailabilityZoneErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::DeleteCustomAvailabilityZoneError { meta: generic, kind: crate::error::DeleteCustomAvailabilityZoneErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomAvailabilityZoneError::unhandled)?; @@ -2996,7 +2996,7 @@ pub fn parse_delete_custom_availability_zone_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_cluster_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::DeleteDBClusterError::unhandled)?; let error_code = match generic.code() { @@ -3006,7 +3006,7 @@ pub fn parse_delete_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::DeleteDBClusterError { meta: generic, - kind: crate::error::DeleteDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::DeleteDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -3020,7 +3020,7 @@ pub fn parse_delete_db_cluster_error( }, "DBClusterSnapshotAlreadyExistsFault" => crate::error::DeleteDBClusterError { meta: generic, - kind: crate::error::DeleteDBClusterErrorKind::DBClusterSnapshotAlreadyExistsFault({ + kind: crate::error::DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_snapshot_already_exists_fault::Builder::default(); @@ -3031,7 +3031,7 @@ pub fn parse_delete_db_cluster_error( }, "InvalidDBClusterSnapshotStateFault" => crate::error::DeleteDBClusterError { meta: generic, - kind: crate::error::DeleteDBClusterErrorKind::InvalidDBClusterSnapshotStateFault({ + kind: crate::error::DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default(); @@ -3042,7 +3042,7 @@ pub fn parse_delete_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::DeleteDBClusterError { meta: generic, - kind: crate::error::DeleteDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::DeleteDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -3075,7 +3075,7 @@ pub fn parse_delete_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_cluster_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_db_cluster_output::Builder::default(); @@ -3091,7 +3091,7 @@ pub fn parse_delete_db_cluster_response( pub fn parse_delete_db_cluster_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterEndpointOutput, + crate::output::DeleteDbClusterEndpointOutput, crate::error::DeleteDBClusterEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3107,7 +3107,7 @@ pub fn parse_delete_db_cluster_endpoint_error( Err(match error_code { "DBClusterEndpointNotFoundFault" => crate::error::DeleteDBClusterEndpointError { meta: generic, - kind: crate::error::DeleteDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault({ + kind: crate::error::DeleteDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_endpoint_not_found_fault::Builder::default(); @@ -3124,7 +3124,7 @@ pub fn parse_delete_db_cluster_endpoint_error( "InvalidDBClusterEndpointStateFault" => crate::error::DeleteDBClusterEndpointError { meta: generic, kind: - crate::error::DeleteDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault( + crate::error::DeleteDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault( { #[allow(unused_mut)] let mut output = @@ -3138,7 +3138,7 @@ pub fn parse_delete_db_cluster_endpoint_error( }, "InvalidDBClusterStateFault" => crate::error::DeleteDBClusterEndpointError { meta: generic, - kind: crate::error::DeleteDBClusterEndpointErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::DeleteDBClusterEndpointErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -3158,7 +3158,7 @@ pub fn parse_delete_db_cluster_endpoint_error( pub fn parse_delete_db_cluster_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterEndpointOutput, + crate::output::DeleteDbClusterEndpointOutput, crate::error::DeleteDBClusterEndpointError, > { Ok({ @@ -3178,7 +3178,7 @@ pub fn parse_delete_db_cluster_endpoint_response( pub fn parse_delete_db_cluster_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterParameterGroupOutput, + crate::output::DeleteDbClusterParameterGroupOutput, crate::error::DeleteDBClusterParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3192,13 +3192,13 @@ pub fn parse_delete_db_cluster_parameter_group_error( } }; Err(match error_code { - "DBParameterGroupNotFoundFault" => crate::error::DeleteDBClusterParameterGroupError { meta: generic, kind: crate::error::DeleteDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::DeleteDBClusterParameterGroupError { meta: generic, kind: crate::error::DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteDBClusterParameterGroupError::unhandled)?; output.build() })}, - "InvalidDBParameterGroupStateFault" => crate::error::DeleteDBClusterParameterGroupError { meta: generic, kind: crate::error::DeleteDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault({ + "InvalidDBParameterGroupStateFault" => crate::error::DeleteDBClusterParameterGroupError { meta: generic, kind: crate::error::DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_parameter_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_parameter_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteDBClusterParameterGroupError::unhandled)?; @@ -3212,7 +3212,7 @@ pub fn parse_delete_db_cluster_parameter_group_error( pub fn parse_delete_db_cluster_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterParameterGroupOutput, + crate::output::DeleteDbClusterParameterGroupOutput, crate::error::DeleteDBClusterParameterGroupError, > { Ok({ @@ -3228,7 +3228,7 @@ pub fn parse_delete_db_cluster_parameter_group_response( pub fn parse_delete_db_cluster_snapshot_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterSnapshotOutput, + crate::output::DeleteDbClusterSnapshotOutput, crate::error::DeleteDBClusterSnapshotError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3244,7 +3244,7 @@ pub fn parse_delete_db_cluster_snapshot_error( Err(match error_code { "DBClusterSnapshotNotFoundFault" => crate::error::DeleteDBClusterSnapshotError { meta: generic, - kind: crate::error::DeleteDBClusterSnapshotErrorKind::DBClusterSnapshotNotFoundFault({ + kind: crate::error::DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); @@ -3261,7 +3261,7 @@ pub fn parse_delete_db_cluster_snapshot_error( "InvalidDBClusterSnapshotStateFault" => crate::error::DeleteDBClusterSnapshotError { meta: generic, kind: - crate::error::DeleteDBClusterSnapshotErrorKind::InvalidDBClusterSnapshotStateFault( + crate::error::DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault( { #[allow(unused_mut)] let mut output = @@ -3281,7 +3281,7 @@ pub fn parse_delete_db_cluster_snapshot_error( pub fn parse_delete_db_cluster_snapshot_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBClusterSnapshotOutput, + crate::output::DeleteDbClusterSnapshotOutput, crate::error::DeleteDBClusterSnapshotError, > { Ok({ @@ -3300,7 +3300,7 @@ pub fn parse_delete_db_cluster_snapshot_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_instance_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::DeleteDBInstanceError::unhandled)?; @@ -3312,7 +3312,7 @@ pub fn parse_delete_db_instance_error( "DBInstanceAutomatedBackupQuotaExceededFault" => crate::error::DeleteDBInstanceError { meta: generic, kind: - crate::error::DeleteDBInstanceErrorKind::DBInstanceAutomatedBackupQuotaExceededFault( + crate::error::DeleteDBInstanceErrorKind::DbInstanceAutomatedBackupQuotaExceededFault( { #[allow(unused_mut)]let mut output = crate::error::db_instance_automated_backup_quota_exceeded_fault::Builder::default(); let _ = response; @@ -3323,7 +3323,7 @@ pub fn parse_delete_db_instance_error( }, "DBInstanceNotFoundFault" => crate::error::DeleteDBInstanceError { meta: generic, - kind: crate::error::DeleteDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::DeleteDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -3337,7 +3337,7 @@ pub fn parse_delete_db_instance_error( }, "DBSnapshotAlreadyExistsFault" => crate::error::DeleteDBInstanceError { meta: generic, - kind: crate::error::DeleteDBInstanceErrorKind::DBSnapshotAlreadyExistsFault({ + kind: crate::error::DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_already_exists_fault::Builder::default(); let _ = response; @@ -3352,7 +3352,7 @@ pub fn parse_delete_db_instance_error( }, "InvalidDBClusterStateFault" => crate::error::DeleteDBInstanceError { meta: generic, - kind: crate::error::DeleteDBInstanceErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::DeleteDBInstanceErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -3366,7 +3366,7 @@ pub fn parse_delete_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::DeleteDBInstanceError { meta: generic, - kind: crate::error::DeleteDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -3399,7 +3399,7 @@ pub fn parse_delete_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_instance_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -3416,7 +3416,7 @@ pub fn parse_delete_db_instance_response( pub fn parse_delete_db_instance_automated_backup_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBInstanceAutomatedBackupOutput, + crate::output::DeleteDbInstanceAutomatedBackupOutput, crate::error::DeleteDBInstanceAutomatedBackupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3426,13 +3426,13 @@ pub fn parse_delete_db_instance_automated_backup_error( None => return Err(crate::error::DeleteDBInstanceAutomatedBackupError::unhandled(generic)), }; Err(match error_code { - "DBInstanceAutomatedBackupNotFoundFault" => crate::error::DeleteDBInstanceAutomatedBackupError { meta: generic, kind: crate::error::DeleteDBInstanceAutomatedBackupErrorKind::DBInstanceAutomatedBackupNotFoundFault({ + "DBInstanceAutomatedBackupNotFoundFault" => crate::error::DeleteDBInstanceAutomatedBackupError { meta: generic, kind: crate::error::DeleteDBInstanceAutomatedBackupErrorKind::DbInstanceAutomatedBackupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_automated_backup_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_automated_backup_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteDBInstanceAutomatedBackupError::unhandled)?; output.build() })}, - "InvalidDBInstanceAutomatedBackupStateFault" => crate::error::DeleteDBInstanceAutomatedBackupError { meta: generic, kind: crate::error::DeleteDBInstanceAutomatedBackupErrorKind::InvalidDBInstanceAutomatedBackupStateFault({ + "InvalidDBInstanceAutomatedBackupStateFault" => crate::error::DeleteDBInstanceAutomatedBackupError { meta: generic, kind: crate::error::DeleteDBInstanceAutomatedBackupErrorKind::InvalidDbInstanceAutomatedBackupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_automated_backup_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_automated_backup_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteDBInstanceAutomatedBackupError::unhandled)?; @@ -3446,7 +3446,7 @@ pub fn parse_delete_db_instance_automated_backup_error( pub fn parse_delete_db_instance_automated_backup_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBInstanceAutomatedBackupOutput, + crate::output::DeleteDbInstanceAutomatedBackupOutput, crate::error::DeleteDBInstanceAutomatedBackupError, > { Ok({ @@ -3467,7 +3467,7 @@ pub fn parse_delete_db_instance_automated_backup_response( pub fn parse_delete_db_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBParameterGroupOutput, + crate::output::DeleteDbParameterGroupOutput, crate::error::DeleteDBParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3484,7 +3484,7 @@ pub fn parse_delete_db_parameter_group_error( "DBParameterGroupNotFoundFault" => { crate::error::DeleteDBParameterGroupError { meta: generic, - kind: crate::error::DeleteDBParameterGroupErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::DeleteDBParameterGroupErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -3498,7 +3498,7 @@ pub fn parse_delete_db_parameter_group_error( } "InvalidDBParameterGroupStateFault" => crate::error::DeleteDBParameterGroupError { meta: generic, - kind: crate::error::DeleteDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault( + kind: crate::error::DeleteDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault( { #[allow(unused_mut)] let mut output = @@ -3517,7 +3517,7 @@ pub fn parse_delete_db_parameter_group_error( pub fn parse_delete_db_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBParameterGroupOutput, + crate::output::DeleteDbParameterGroupOutput, crate::error::DeleteDBParameterGroupError, > { Ok({ @@ -3531,7 +3531,7 @@ pub fn parse_delete_db_parameter_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_proxy_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::DeleteDBProxyError::unhandled)?; let error_code = match generic.code() { @@ -3541,7 +3541,7 @@ pub fn parse_delete_db_proxy_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::DeleteDBProxyError { meta: generic, - kind: crate::error::DeleteDBProxyErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DeleteDBProxyErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -3555,7 +3555,7 @@ pub fn parse_delete_db_proxy_error( }, "InvalidDBProxyStateFault" => crate::error::DeleteDBProxyError { meta: generic, - kind: crate::error::DeleteDBProxyErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::DeleteDBProxyErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -3574,7 +3574,7 @@ pub fn parse_delete_db_proxy_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_proxy_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_db_proxy_output::Builder::default(); @@ -3590,7 +3590,7 @@ pub fn parse_delete_db_proxy_response( pub fn parse_delete_db_proxy_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBProxyEndpointOutput, + crate::output::DeleteDbProxyEndpointOutput, crate::error::DeleteDBProxyEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3603,7 +3603,7 @@ pub fn parse_delete_db_proxy_endpoint_error( "DBProxyEndpointNotFoundFault" => { crate::error::DeleteDBProxyEndpointError { meta: generic, - kind: crate::error::DeleteDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault({ + kind: crate::error::DeleteDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_endpoint_not_found_fault::Builder::default(); @@ -3615,7 +3615,7 @@ pub fn parse_delete_db_proxy_endpoint_error( } "InvalidDBProxyEndpointStateFault" => crate::error::DeleteDBProxyEndpointError { meta: generic, - kind: crate::error::DeleteDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault({ + kind: crate::error::DeleteDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_endpoint_state_fault::Builder::default(); @@ -3632,7 +3632,7 @@ pub fn parse_delete_db_proxy_endpoint_error( pub fn parse_delete_db_proxy_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBProxyEndpointOutput, + crate::output::DeleteDbProxyEndpointOutput, crate::error::DeleteDBProxyEndpointError, > { Ok({ @@ -3652,7 +3652,7 @@ pub fn parse_delete_db_proxy_endpoint_response( pub fn parse_delete_db_security_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBSecurityGroupOutput, + crate::output::DeleteDbSecurityGroupOutput, crate::error::DeleteDBSecurityGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3665,7 +3665,7 @@ pub fn parse_delete_db_security_group_error( "DBSecurityGroupNotFoundFault" => { crate::error::DeleteDBSecurityGroupError { meta: generic, - kind: crate::error::DeleteDBSecurityGroupErrorKind::DBSecurityGroupNotFoundFault({ + kind: crate::error::DeleteDBSecurityGroupErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); @@ -3677,7 +3677,7 @@ pub fn parse_delete_db_security_group_error( } "InvalidDBSecurityGroupStateFault" => crate::error::DeleteDBSecurityGroupError { meta: generic, - kind: crate::error::DeleteDBSecurityGroupErrorKind::InvalidDBSecurityGroupStateFault({ + kind: crate::error::DeleteDBSecurityGroupErrorKind::InvalidDbSecurityGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_security_group_state_fault::Builder::default(); @@ -3694,7 +3694,7 @@ pub fn parse_delete_db_security_group_error( pub fn parse_delete_db_security_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBSecurityGroupOutput, + crate::output::DeleteDbSecurityGroupOutput, crate::error::DeleteDBSecurityGroupError, > { Ok({ @@ -3708,7 +3708,7 @@ pub fn parse_delete_db_security_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_snapshot_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::DeleteDBSnapshotError::unhandled)?; @@ -3719,7 +3719,7 @@ pub fn parse_delete_db_snapshot_error( Err(match error_code { "DBSnapshotNotFoundFault" => crate::error::DeleteDBSnapshotError { meta: generic, - kind: crate::error::DeleteDBSnapshotErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::DeleteDBSnapshotErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -3733,7 +3733,7 @@ pub fn parse_delete_db_snapshot_error( }, "InvalidDBSnapshotStateFault" => crate::error::DeleteDBSnapshotError { meta: generic, - kind: crate::error::DeleteDBSnapshotErrorKind::InvalidDBSnapshotStateFault({ + kind: crate::error::DeleteDBSnapshotErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; @@ -3752,7 +3752,7 @@ pub fn parse_delete_db_snapshot_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_db_snapshot_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -3769,7 +3769,7 @@ pub fn parse_delete_db_snapshot_response( pub fn parse_delete_db_subnet_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBSubnetGroupOutput, + crate::output::DeleteDbSubnetGroupOutput, crate::error::DeleteDBSubnetGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3781,7 +3781,7 @@ pub fn parse_delete_db_subnet_group_error( Err(match error_code { "DBSubnetGroupNotFoundFault" => crate::error::DeleteDBSubnetGroupError { meta: generic, - kind: crate::error::DeleteDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -3796,7 +3796,7 @@ pub fn parse_delete_db_subnet_group_error( "InvalidDBSubnetGroupStateFault" => { crate::error::DeleteDBSubnetGroupError { meta: generic, - kind: crate::error::DeleteDBSubnetGroupErrorKind::InvalidDBSubnetGroupStateFault({ + kind: crate::error::DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_subnet_group_state_fault::Builder::default(); @@ -3808,7 +3808,7 @@ pub fn parse_delete_db_subnet_group_error( } "InvalidDBSubnetStateFault" => crate::error::DeleteDBSubnetGroupError { meta: generic, - kind: crate::error::DeleteDBSubnetGroupErrorKind::InvalidDBSubnetStateFault({ + kind: crate::error::DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_subnet_state_fault::Builder::default(); let _ = response; @@ -3828,7 +3828,7 @@ pub fn parse_delete_db_subnet_group_error( pub fn parse_delete_db_subnet_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteDBSubnetGroupOutput, + crate::output::DeleteDbSubnetGroupOutput, crate::error::DeleteDBSubnetGroupError, > { Ok({ @@ -4095,7 +4095,7 @@ pub fn parse_delete_option_group_response( pub fn parse_deregister_db_proxy_targets_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeregisterDBProxyTargetsOutput, + crate::output::DeregisterDbProxyTargetsOutput, crate::error::DeregisterDBProxyTargetsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4111,7 +4111,7 @@ pub fn parse_deregister_db_proxy_targets_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::DeregisterDBProxyTargetsError { meta: generic, - kind: crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -4125,7 +4125,7 @@ pub fn parse_deregister_db_proxy_targets_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::DeregisterDBProxyTargetsError { meta: generic, - kind: crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault( + kind: crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -4138,7 +4138,7 @@ pub fn parse_deregister_db_proxy_targets_error( }, "DBProxyTargetNotFoundFault" => crate::error::DeregisterDBProxyTargetsError { meta: generic, - kind: crate::error::DeregisterDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault({ + kind: crate::error::DeregisterDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_not_found_fault::Builder::default(); let _ = response; @@ -4152,7 +4152,7 @@ pub fn parse_deregister_db_proxy_targets_error( }, "InvalidDBProxyStateFault" => crate::error::DeregisterDBProxyTargetsError { meta: generic, - kind: crate::error::DeregisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::DeregisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -4172,7 +4172,7 @@ pub fn parse_deregister_db_proxy_targets_error( pub fn parse_deregister_db_proxy_targets_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeregisterDBProxyTargetsOutput, + crate::output::DeregisterDbProxyTargetsOutput, crate::error::DeregisterDBProxyTargetsError, > { Ok({ @@ -4318,7 +4318,7 @@ pub fn parse_describe_custom_availability_zones_response( pub fn parse_describe_db_cluster_backtracks_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterBacktracksOutput, + crate::output::DescribeDbClusterBacktracksOutput, crate::error::DescribeDBClusterBacktracksError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4335,7 +4335,7 @@ pub fn parse_describe_db_cluster_backtracks_error( "DBClusterBacktrackNotFoundFault" => crate::error::DescribeDBClusterBacktracksError { meta: generic, kind: - crate::error::DescribeDBClusterBacktracksErrorKind::DBClusterBacktrackNotFoundFault( + crate::error::DescribeDBClusterBacktracksErrorKind::DbClusterBacktrackNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -4348,7 +4348,7 @@ pub fn parse_describe_db_cluster_backtracks_error( }, "DBClusterNotFoundFault" => crate::error::DescribeDBClusterBacktracksError { meta: generic, - kind: crate::error::DescribeDBClusterBacktracksErrorKind::DBClusterNotFoundFault({ + kind: crate::error::DescribeDBClusterBacktracksErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -4368,7 +4368,7 @@ pub fn parse_describe_db_cluster_backtracks_error( pub fn parse_describe_db_cluster_backtracks_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterBacktracksOutput, + crate::output::DescribeDbClusterBacktracksOutput, crate::error::DescribeDBClusterBacktracksError, > { Ok({ @@ -4388,7 +4388,7 @@ pub fn parse_describe_db_cluster_backtracks_response( pub fn parse_describe_db_cluster_endpoints_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterEndpointsOutput, + crate::output::DescribeDbClusterEndpointsOutput, crate::error::DescribeDBClusterEndpointsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4404,7 +4404,7 @@ pub fn parse_describe_db_cluster_endpoints_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::DescribeDBClusterEndpointsError { meta: generic, - kind: crate::error::DescribeDBClusterEndpointsErrorKind::DBClusterNotFoundFault({ + kind: crate::error::DescribeDBClusterEndpointsErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -4424,7 +4424,7 @@ pub fn parse_describe_db_cluster_endpoints_error( pub fn parse_describe_db_cluster_endpoints_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterEndpointsOutput, + crate::output::DescribeDbClusterEndpointsOutput, crate::error::DescribeDBClusterEndpointsError, > { Ok({ @@ -4444,7 +4444,7 @@ pub fn parse_describe_db_cluster_endpoints_response( pub fn parse_describe_db_cluster_parameter_groups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterParameterGroupsOutput, + crate::output::DescribeDbClusterParameterGroupsOutput, crate::error::DescribeDBClusterParameterGroupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4456,7 +4456,7 @@ pub fn parse_describe_db_cluster_parameter_groups_error( } }; Err(match error_code { - "DBParameterGroupNotFoundFault" => crate::error::DescribeDBClusterParameterGroupsError { meta: generic, kind: crate::error::DescribeDBClusterParameterGroupsErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::DescribeDBClusterParameterGroupsError { meta: generic, kind: crate::error::DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeDBClusterParameterGroupsError::unhandled)?; @@ -4470,7 +4470,7 @@ pub fn parse_describe_db_cluster_parameter_groups_error( pub fn parse_describe_db_cluster_parameter_groups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterParameterGroupsOutput, + crate::output::DescribeDbClusterParameterGroupsOutput, crate::error::DescribeDBClusterParameterGroupsError, > { Ok({ @@ -4491,7 +4491,7 @@ pub fn parse_describe_db_cluster_parameter_groups_response( pub fn parse_describe_db_cluster_parameters_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterParametersOutput, + crate::output::DescribeDbClusterParametersOutput, crate::error::DescribeDBClusterParametersError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4507,7 +4507,7 @@ pub fn parse_describe_db_cluster_parameters_error( Err(match error_code { "DBParameterGroupNotFoundFault" => crate::error::DescribeDBClusterParametersError { meta: generic, - kind: crate::error::DescribeDBClusterParametersErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -4526,7 +4526,7 @@ pub fn parse_describe_db_cluster_parameters_error( pub fn parse_describe_db_cluster_parameters_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterParametersOutput, + crate::output::DescribeDbClusterParametersOutput, crate::error::DescribeDBClusterParametersError, > { Ok({ @@ -4546,7 +4546,7 @@ pub fn parse_describe_db_cluster_parameters_response( pub fn parse_describe_db_clusters_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClustersOutput, + crate::output::DescribeDbClustersOutput, crate::error::DescribeDBClustersError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4558,7 +4558,7 @@ pub fn parse_describe_db_clusters_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::DescribeDBClustersError { meta: generic, - kind: crate::error::DescribeDBClustersErrorKind::DBClusterNotFoundFault({ + kind: crate::error::DescribeDBClustersErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -4578,7 +4578,7 @@ pub fn parse_describe_db_clusters_error( pub fn parse_describe_db_clusters_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClustersOutput, + crate::output::DescribeDbClustersOutput, crate::error::DescribeDBClustersError, > { Ok({ @@ -4598,7 +4598,7 @@ pub fn parse_describe_db_clusters_response( pub fn parse_describe_db_cluster_snapshot_attributes_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotAttributesOutput, + crate::output::DescribeDbClusterSnapshotAttributesOutput, crate::error::DescribeDBClusterSnapshotAttributesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4610,7 +4610,7 @@ pub fn parse_describe_db_cluster_snapshot_attributes_error( } }; Err(match error_code { - "DBClusterSnapshotNotFoundFault" => crate::error::DescribeDBClusterSnapshotAttributesError { meta: generic, kind: crate::error::DescribeDBClusterSnapshotAttributesErrorKind::DBClusterSnapshotNotFoundFault({ + "DBClusterSnapshotNotFoundFault" => crate::error::DescribeDBClusterSnapshotAttributesError { meta: generic, kind: crate::error::DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeDBClusterSnapshotAttributesError::unhandled)?; @@ -4624,7 +4624,7 @@ pub fn parse_describe_db_cluster_snapshot_attributes_error( pub fn parse_describe_db_cluster_snapshot_attributes_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotAttributesOutput, + crate::output::DescribeDbClusterSnapshotAttributesOutput, crate::error::DescribeDBClusterSnapshotAttributesError, > { Ok({ @@ -4645,7 +4645,7 @@ pub fn parse_describe_db_cluster_snapshot_attributes_response( pub fn parse_describe_db_cluster_snapshots_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotsOutput, + crate::output::DescribeDbClusterSnapshotsOutput, crate::error::DescribeDBClusterSnapshotsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4661,7 +4661,7 @@ pub fn parse_describe_db_cluster_snapshots_error( Err(match error_code { "DBClusterSnapshotNotFoundFault" => crate::error::DescribeDBClusterSnapshotsError { meta: generic, - kind: crate::error::DescribeDBClusterSnapshotsErrorKind::DBClusterSnapshotNotFoundFault( + kind: crate::error::DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -4680,7 +4680,7 @@ pub fn parse_describe_db_cluster_snapshots_error( pub fn parse_describe_db_cluster_snapshots_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBClusterSnapshotsOutput, + crate::output::DescribeDbClusterSnapshotsOutput, crate::error::DescribeDBClusterSnapshotsError, > { Ok({ @@ -4700,7 +4700,7 @@ pub fn parse_describe_db_cluster_snapshots_response( pub fn parse_describe_db_engine_versions_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBEngineVersionsOutput, + crate::output::DescribeDbEngineVersionsOutput, crate::error::DescribeDBEngineVersionsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4714,7 +4714,7 @@ pub fn parse_describe_db_engine_versions_error( pub fn parse_describe_db_engine_versions_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBEngineVersionsOutput, + crate::output::DescribeDbEngineVersionsOutput, crate::error::DescribeDBEngineVersionsError, > { Ok({ @@ -4734,7 +4734,7 @@ pub fn parse_describe_db_engine_versions_response( pub fn parse_describe_db_instance_automated_backups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBInstanceAutomatedBackupsOutput, + crate::output::DescribeDbInstanceAutomatedBackupsOutput, crate::error::DescribeDBInstanceAutomatedBackupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4746,7 +4746,7 @@ pub fn parse_describe_db_instance_automated_backups_error( } }; Err(match error_code { - "DBInstanceAutomatedBackupNotFoundFault" => crate::error::DescribeDBInstanceAutomatedBackupsError { meta: generic, kind: crate::error::DescribeDBInstanceAutomatedBackupsErrorKind::DBInstanceAutomatedBackupNotFoundFault({ + "DBInstanceAutomatedBackupNotFoundFault" => crate::error::DescribeDBInstanceAutomatedBackupsError { meta: generic, kind: crate::error::DescribeDBInstanceAutomatedBackupsErrorKind::DbInstanceAutomatedBackupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_automated_backup_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_automated_backup_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeDBInstanceAutomatedBackupsError::unhandled)?; @@ -4760,7 +4760,7 @@ pub fn parse_describe_db_instance_automated_backups_error( pub fn parse_describe_db_instance_automated_backups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBInstanceAutomatedBackupsOutput, + crate::output::DescribeDbInstanceAutomatedBackupsOutput, crate::error::DescribeDBInstanceAutomatedBackupsError, > { Ok({ @@ -4781,7 +4781,7 @@ pub fn parse_describe_db_instance_automated_backups_response( pub fn parse_describe_db_instances_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBInstancesOutput, + crate::output::DescribeDbInstancesOutput, crate::error::DescribeDBInstancesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4793,7 +4793,7 @@ pub fn parse_describe_db_instances_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::DescribeDBInstancesError { meta: generic, - kind: crate::error::DescribeDBInstancesErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::DescribeDBInstancesErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -4813,7 +4813,7 @@ pub fn parse_describe_db_instances_error( pub fn parse_describe_db_instances_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBInstancesOutput, + crate::output::DescribeDbInstancesOutput, crate::error::DescribeDBInstancesError, > { Ok({ @@ -4833,7 +4833,7 @@ pub fn parse_describe_db_instances_response( pub fn parse_describe_db_log_files_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBLogFilesOutput, + crate::output::DescribeDbLogFilesOutput, crate::error::DescribeDBLogFilesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4845,7 +4845,7 @@ pub fn parse_describe_db_log_files_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::DescribeDBLogFilesError { meta: generic, - kind: crate::error::DescribeDBLogFilesErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::DescribeDBLogFilesErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -4865,7 +4865,7 @@ pub fn parse_describe_db_log_files_error( pub fn parse_describe_db_log_files_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBLogFilesOutput, + crate::output::DescribeDbLogFilesOutput, crate::error::DescribeDBLogFilesError, > { Ok({ @@ -4885,7 +4885,7 @@ pub fn parse_describe_db_log_files_response( pub fn parse_describe_db_parameter_groups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBParameterGroupsOutput, + crate::output::DescribeDbParameterGroupsOutput, crate::error::DescribeDBParameterGroupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4901,7 +4901,7 @@ pub fn parse_describe_db_parameter_groups_error( Err(match error_code { "DBParameterGroupNotFoundFault" => crate::error::DescribeDBParameterGroupsError { meta: generic, - kind: crate::error::DescribeDBParameterGroupsErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::DescribeDBParameterGroupsErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -4920,7 +4920,7 @@ pub fn parse_describe_db_parameter_groups_error( pub fn parse_describe_db_parameter_groups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBParameterGroupsOutput, + crate::output::DescribeDbParameterGroupsOutput, crate::error::DescribeDBParameterGroupsError, > { Ok({ @@ -4940,7 +4940,7 @@ pub fn parse_describe_db_parameter_groups_response( pub fn parse_describe_db_parameters_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBParametersOutput, + crate::output::DescribeDbParametersOutput, crate::error::DescribeDBParametersError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4953,7 +4953,7 @@ pub fn parse_describe_db_parameters_error( "DBParameterGroupNotFoundFault" => { crate::error::DescribeDBParametersError { meta: generic, - kind: crate::error::DescribeDBParametersErrorKind::DBParameterGroupNotFoundFault({ + kind: crate::error::DescribeDBParametersErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); @@ -4971,7 +4971,7 @@ pub fn parse_describe_db_parameters_error( pub fn parse_describe_db_parameters_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBParametersOutput, + crate::output::DescribeDbParametersOutput, crate::error::DescribeDBParametersError, > { Ok({ @@ -4990,7 +4990,7 @@ pub fn parse_describe_db_parameters_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_describe_db_proxies_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::DescribeDBProxiesError::unhandled)?; @@ -5001,7 +5001,7 @@ pub fn parse_describe_db_proxies_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::DescribeDBProxiesError { meta: generic, - kind: crate::error::DescribeDBProxiesErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DescribeDBProxiesErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -5020,7 +5020,7 @@ pub fn parse_describe_db_proxies_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_describe_db_proxies_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -5037,7 +5037,7 @@ pub fn parse_describe_db_proxies_response( pub fn parse_describe_db_proxy_endpoints_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyEndpointsOutput, + crate::output::DescribeDbProxyEndpointsOutput, crate::error::DescribeDBProxyEndpointsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5054,7 +5054,7 @@ pub fn parse_describe_db_proxy_endpoints_error( "DBProxyEndpointNotFoundFault" => { crate::error::DescribeDBProxyEndpointsError { meta: generic, - kind: crate::error::DescribeDBProxyEndpointsErrorKind::DBProxyEndpointNotFoundFault( + kind: crate::error::DescribeDBProxyEndpointsErrorKind::DbProxyEndpointNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -5068,7 +5068,7 @@ pub fn parse_describe_db_proxy_endpoints_error( } "DBProxyNotFoundFault" => crate::error::DescribeDBProxyEndpointsError { meta: generic, - kind: crate::error::DescribeDBProxyEndpointsErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DescribeDBProxyEndpointsErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -5088,7 +5088,7 @@ pub fn parse_describe_db_proxy_endpoints_error( pub fn parse_describe_db_proxy_endpoints_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyEndpointsOutput, + crate::output::DescribeDbProxyEndpointsOutput, crate::error::DescribeDBProxyEndpointsError, > { Ok({ @@ -5108,7 +5108,7 @@ pub fn parse_describe_db_proxy_endpoints_response( pub fn parse_describe_db_proxy_target_groups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetGroupsOutput, + crate::output::DescribeDbProxyTargetGroupsOutput, crate::error::DescribeDBProxyTargetGroupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5124,7 +5124,7 @@ pub fn parse_describe_db_proxy_target_groups_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::DescribeDBProxyTargetGroupsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetGroupsErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DescribeDBProxyTargetGroupsErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -5139,7 +5139,7 @@ pub fn parse_describe_db_proxy_target_groups_error( "DBProxyTargetGroupNotFoundFault" => crate::error::DescribeDBProxyTargetGroupsError { meta: generic, kind: - crate::error::DescribeDBProxyTargetGroupsErrorKind::DBProxyTargetGroupNotFoundFault( + crate::error::DescribeDBProxyTargetGroupsErrorKind::DbProxyTargetGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -5152,7 +5152,7 @@ pub fn parse_describe_db_proxy_target_groups_error( }, "InvalidDBProxyStateFault" => crate::error::DescribeDBProxyTargetGroupsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetGroupsErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::DescribeDBProxyTargetGroupsErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -5172,7 +5172,7 @@ pub fn parse_describe_db_proxy_target_groups_error( pub fn parse_describe_db_proxy_target_groups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetGroupsOutput, + crate::output::DescribeDbProxyTargetGroupsOutput, crate::error::DescribeDBProxyTargetGroupsError, > { Ok({ @@ -5192,7 +5192,7 @@ pub fn parse_describe_db_proxy_target_groups_response( pub fn parse_describe_db_proxy_targets_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetsOutput, + crate::output::DescribeDbProxyTargetsOutput, crate::error::DescribeDBProxyTargetsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5208,7 +5208,7 @@ pub fn parse_describe_db_proxy_targets_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::DescribeDBProxyTargetsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetsErrorKind::DBProxyNotFoundFault({ + kind: crate::error::DescribeDBProxyTargetsErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -5222,7 +5222,7 @@ pub fn parse_describe_db_proxy_targets_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::DescribeDBProxyTargetsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault({ + kind: crate::error::DescribeDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_group_not_found_fault::Builder::default(); @@ -5233,7 +5233,7 @@ pub fn parse_describe_db_proxy_targets_error( }, "DBProxyTargetNotFoundFault" => crate::error::DescribeDBProxyTargetsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetsErrorKind::DBProxyTargetNotFoundFault({ + kind: crate::error::DescribeDBProxyTargetsErrorKind::DbProxyTargetNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_not_found_fault::Builder::default(); let _ = response; @@ -5247,7 +5247,7 @@ pub fn parse_describe_db_proxy_targets_error( }, "InvalidDBProxyStateFault" => crate::error::DescribeDBProxyTargetsError { meta: generic, - kind: crate::error::DescribeDBProxyTargetsErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::DescribeDBProxyTargetsErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -5267,7 +5267,7 @@ pub fn parse_describe_db_proxy_targets_error( pub fn parse_describe_db_proxy_targets_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBProxyTargetsOutput, + crate::output::DescribeDbProxyTargetsOutput, crate::error::DescribeDBProxyTargetsError, > { Ok({ @@ -5287,7 +5287,7 @@ pub fn parse_describe_db_proxy_targets_response( pub fn parse_describe_db_security_groups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSecurityGroupsOutput, + crate::output::DescribeDbSecurityGroupsOutput, crate::error::DescribeDBSecurityGroupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5304,7 +5304,7 @@ pub fn parse_describe_db_security_groups_error( "DBSecurityGroupNotFoundFault" => { crate::error::DescribeDBSecurityGroupsError { meta: generic, - kind: crate::error::DescribeDBSecurityGroupsErrorKind::DBSecurityGroupNotFoundFault( + kind: crate::error::DescribeDBSecurityGroupsErrorKind::DbSecurityGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -5324,7 +5324,7 @@ pub fn parse_describe_db_security_groups_error( pub fn parse_describe_db_security_groups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSecurityGroupsOutput, + crate::output::DescribeDbSecurityGroupsOutput, crate::error::DescribeDBSecurityGroupsError, > { Ok({ @@ -5344,7 +5344,7 @@ pub fn parse_describe_db_security_groups_response( pub fn parse_describe_db_snapshot_attributes_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSnapshotAttributesOutput, + crate::output::DescribeDbSnapshotAttributesOutput, crate::error::DescribeDBSnapshotAttributesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5360,7 +5360,7 @@ pub fn parse_describe_db_snapshot_attributes_error( Err(match error_code { "DBSnapshotNotFoundFault" => crate::error::DescribeDBSnapshotAttributesError { meta: generic, - kind: crate::error::DescribeDBSnapshotAttributesErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::DescribeDBSnapshotAttributesErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -5380,7 +5380,7 @@ pub fn parse_describe_db_snapshot_attributes_error( pub fn parse_describe_db_snapshot_attributes_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSnapshotAttributesOutput, + crate::output::DescribeDbSnapshotAttributesOutput, crate::error::DescribeDBSnapshotAttributesError, > { Ok({ @@ -5400,7 +5400,7 @@ pub fn parse_describe_db_snapshot_attributes_response( pub fn parse_describe_db_snapshots_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSnapshotsOutput, + crate::output::DescribeDbSnapshotsOutput, crate::error::DescribeDBSnapshotsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5412,7 +5412,7 @@ pub fn parse_describe_db_snapshots_error( Err(match error_code { "DBSnapshotNotFoundFault" => crate::error::DescribeDBSnapshotsError { meta: generic, - kind: crate::error::DescribeDBSnapshotsErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::DescribeDBSnapshotsErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -5432,7 +5432,7 @@ pub fn parse_describe_db_snapshots_error( pub fn parse_describe_db_snapshots_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSnapshotsOutput, + crate::output::DescribeDbSnapshotsOutput, crate::error::DescribeDBSnapshotsError, > { Ok({ @@ -5452,7 +5452,7 @@ pub fn parse_describe_db_snapshots_response( pub fn parse_describe_db_subnet_groups_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSubnetGroupsOutput, + crate::output::DescribeDbSubnetGroupsOutput, crate::error::DescribeDBSubnetGroupsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5468,7 +5468,7 @@ pub fn parse_describe_db_subnet_groups_error( Err(match error_code { "DBSubnetGroupNotFoundFault" => crate::error::DescribeDBSubnetGroupsError { meta: generic, - kind: crate::error::DescribeDBSubnetGroupsErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -5488,7 +5488,7 @@ pub fn parse_describe_db_subnet_groups_error( pub fn parse_describe_db_subnet_groups_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeDBSubnetGroupsOutput, + crate::output::DescribeDbSubnetGroupsOutput, crate::error::DescribeDBSubnetGroupsError, > { Ok({ @@ -5937,7 +5937,7 @@ pub fn parse_describe_option_groups_response( pub fn parse_describe_orderable_db_instance_options_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeOrderableDBInstanceOptionsOutput, + crate::output::DescribeOrderableDbInstanceOptionsOutput, crate::error::DescribeOrderableDBInstanceOptionsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -5949,7 +5949,7 @@ pub fn parse_describe_orderable_db_instance_options_error( pub fn parse_describe_orderable_db_instance_options_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeOrderableDBInstanceOptionsOutput, + crate::output::DescribeOrderableDbInstanceOptionsOutput, crate::error::DescribeOrderableDBInstanceOptionsError, > { Ok({ @@ -6027,7 +6027,7 @@ pub fn parse_describe_pending_maintenance_actions_response( pub fn parse_describe_reserved_db_instances_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOutput, + crate::output::DescribeReservedDbInstancesOutput, crate::error::DescribeReservedDBInstancesError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6044,7 +6044,7 @@ pub fn parse_describe_reserved_db_instances_error( "ReservedDBInstanceNotFoundFault" => crate::error::DescribeReservedDBInstancesError { meta: generic, kind: - crate::error::DescribeReservedDBInstancesErrorKind::ReservedDBInstanceNotFoundFault( + crate::error::DescribeReservedDBInstancesErrorKind::ReservedDbInstanceNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -6063,7 +6063,7 @@ pub fn parse_describe_reserved_db_instances_error( pub fn parse_describe_reserved_db_instances_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOutput, + crate::output::DescribeReservedDbInstancesOutput, crate::error::DescribeReservedDBInstancesError, > { Ok({ @@ -6083,7 +6083,7 @@ pub fn parse_describe_reserved_db_instances_response( pub fn parse_describe_reserved_db_instances_offerings_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOfferingsOutput, + crate::output::DescribeReservedDbInstancesOfferingsOutput, crate::error::DescribeReservedDBInstancesOfferingsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6095,7 +6095,7 @@ pub fn parse_describe_reserved_db_instances_offerings_error( } }; Err(match error_code { - "ReservedDBInstancesOfferingNotFoundFault" => crate::error::DescribeReservedDBInstancesOfferingsError { meta: generic, kind: crate::error::DescribeReservedDBInstancesOfferingsErrorKind::ReservedDBInstancesOfferingNotFoundFault({ + "ReservedDBInstancesOfferingNotFoundFault" => crate::error::DescribeReservedDBInstancesOfferingsError { meta: generic, kind: crate::error::DescribeReservedDBInstancesOfferingsErrorKind::ReservedDbInstancesOfferingNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::reserved_db_instances_offering_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_reserved_db_instances_offering_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeReservedDBInstancesOfferingsError::unhandled)?; @@ -6109,7 +6109,7 @@ pub fn parse_describe_reserved_db_instances_offerings_error( pub fn parse_describe_reserved_db_instances_offerings_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeReservedDBInstancesOfferingsOutput, + crate::output::DescribeReservedDbInstancesOfferingsOutput, crate::error::DescribeReservedDBInstancesOfferingsError, > { Ok({ @@ -6162,7 +6162,7 @@ pub fn parse_describe_source_regions_response( pub fn parse_describe_valid_db_instance_modifications_error( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeValidDBInstanceModificationsOutput, + crate::output::DescribeValidDbInstanceModificationsOutput, crate::error::DescribeValidDBInstanceModificationsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6174,13 +6174,13 @@ pub fn parse_describe_valid_db_instance_modifications_error( } }; Err(match error_code { - "DBInstanceNotFoundFault" => crate::error::DescribeValidDBInstanceModificationsError { meta: generic, kind: crate::error::DescribeValidDBInstanceModificationsErrorKind::DBInstanceNotFoundFault({ + "DBInstanceNotFoundFault" => crate::error::DescribeValidDBInstanceModificationsError { meta: generic, kind: crate::error::DescribeValidDBInstanceModificationsErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeValidDBInstanceModificationsError::unhandled)?; output.build() })}, - "InvalidDBInstanceStateFault" => crate::error::DescribeValidDBInstanceModificationsError { meta: generic, kind: crate::error::DescribeValidDBInstanceModificationsErrorKind::InvalidDBInstanceStateFault({ + "InvalidDBInstanceStateFault" => crate::error::DescribeValidDBInstanceModificationsError { meta: generic, kind: crate::error::DescribeValidDBInstanceModificationsErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::DescribeValidDBInstanceModificationsError::unhandled)?; @@ -6194,7 +6194,7 @@ pub fn parse_describe_valid_db_instance_modifications_error( pub fn parse_describe_valid_db_instance_modifications_response( response: &http::Response, ) -> std::result::Result< - crate::output::DescribeValidDBInstanceModificationsOutput, + crate::output::DescribeValidDbInstanceModificationsOutput, crate::error::DescribeValidDBInstanceModificationsError, > { Ok({ @@ -6215,7 +6215,7 @@ pub fn parse_describe_valid_db_instance_modifications_response( pub fn parse_download_db_log_file_portion_error( response: &http::Response, ) -> std::result::Result< - crate::output::DownloadDBLogFilePortionOutput, + crate::output::DownloadDbLogFilePortionOutput, crate::error::DownloadDBLogFilePortionError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6231,7 +6231,7 @@ pub fn parse_download_db_log_file_portion_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::DownloadDBLogFilePortionError { meta: generic, - kind: crate::error::DownloadDBLogFilePortionErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::DownloadDBLogFilePortionErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -6245,7 +6245,7 @@ pub fn parse_download_db_log_file_portion_error( }, "DBLogFileNotFoundFault" => crate::error::DownloadDBLogFilePortionError { meta: generic, - kind: crate::error::DownloadDBLogFilePortionErrorKind::DBLogFileNotFoundFault({ + kind: crate::error::DownloadDBLogFilePortionErrorKind::DbLogFileNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_log_file_not_found_fault::Builder::default(); let _ = response; @@ -6265,7 +6265,7 @@ pub fn parse_download_db_log_file_portion_error( pub fn parse_download_db_log_file_portion_response( response: &http::Response, ) -> std::result::Result< - crate::output::DownloadDBLogFilePortionOutput, + crate::output::DownloadDbLogFilePortionOutput, crate::error::DownloadDBLogFilePortionError, > { Ok({ @@ -6284,7 +6284,7 @@ pub fn parse_download_db_log_file_portion_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_failover_db_cluster_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::FailoverDBClusterError::unhandled)?; @@ -6295,7 +6295,7 @@ pub fn parse_failover_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::FailoverDBClusterError { meta: generic, - kind: crate::error::FailoverDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::FailoverDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -6309,7 +6309,7 @@ pub fn parse_failover_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::FailoverDBClusterError { meta: generic, - kind: crate::error::FailoverDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::FailoverDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -6323,7 +6323,7 @@ pub fn parse_failover_db_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::FailoverDBClusterError { meta: generic, - kind: crate::error::FailoverDBClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::FailoverDBClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -6342,7 +6342,7 @@ pub fn parse_failover_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_failover_db_cluster_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -6371,7 +6371,7 @@ pub fn parse_failover_global_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::FailoverGlobalClusterError { meta: generic, - kind: crate::error::FailoverGlobalClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::FailoverGlobalClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -6399,7 +6399,7 @@ pub fn parse_failover_global_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::FailoverGlobalClusterError { meta: generic, - kind: crate::error::FailoverGlobalClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::FailoverGlobalClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -6535,7 +6535,7 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::DBClusterNotFoundFault({ + kind: crate::error::ListTagsForResourceErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -6549,7 +6549,7 @@ pub fn parse_list_tags_for_resource_error( }, "DBInstanceNotFoundFault" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::ListTagsForResourceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -6563,7 +6563,7 @@ pub fn parse_list_tags_for_resource_error( }, "DBProxyNotFoundFault" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::DBProxyNotFoundFault({ + kind: crate::error::ListTagsForResourceErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -6577,7 +6577,7 @@ pub fn parse_list_tags_for_resource_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::DBProxyTargetGroupNotFoundFault({ + kind: crate::error::ListTagsForResourceErrorKind::DbProxyTargetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_group_not_found_fault::Builder::default(); @@ -6588,7 +6588,7 @@ pub fn parse_list_tags_for_resource_error( }, "DBSnapshotNotFoundFault" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::ListTagsForResourceErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -6678,7 +6678,7 @@ pub fn parse_modify_certificates_response( pub fn parse_modify_current_db_cluster_capacity_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyCurrentDBClusterCapacityOutput, + crate::output::ModifyCurrentDbClusterCapacityOutput, crate::error::ModifyCurrentDBClusterCapacityError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6690,7 +6690,7 @@ pub fn parse_modify_current_db_cluster_capacity_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::ModifyCurrentDBClusterCapacityError { meta: generic, - kind: crate::error::ModifyCurrentDBClusterCapacityErrorKind::DBClusterNotFoundFault({ + kind: crate::error::ModifyCurrentDBClusterCapacityErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -6705,7 +6705,7 @@ pub fn parse_modify_current_db_cluster_capacity_error( "InvalidDBClusterCapacityFault" => crate::error::ModifyCurrentDBClusterCapacityError { meta: generic, kind: - crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterCapacityFault( + crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterCapacityFault( { #[allow(unused_mut)] let mut output = @@ -6718,7 +6718,7 @@ pub fn parse_modify_current_db_cluster_capacity_error( }, "InvalidDBClusterStateFault" => crate::error::ModifyCurrentDBClusterCapacityError { meta: generic, - kind: crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDBClusterStateFault( + kind: crate::error::ModifyCurrentDBClusterCapacityErrorKind::InvalidDbClusterStateFault( { #[allow(unused_mut)] let mut output = @@ -6742,7 +6742,7 @@ pub fn parse_modify_current_db_cluster_capacity_error( pub fn parse_modify_current_db_cluster_capacity_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyCurrentDBClusterCapacityOutput, + crate::output::ModifyCurrentDbClusterCapacityOutput, crate::error::ModifyCurrentDBClusterCapacityError, > { Ok({ @@ -6762,7 +6762,7 @@ pub fn parse_modify_current_db_cluster_capacity_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_cluster_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ModifyDBClusterError::unhandled)?; let error_code = match generic.code() { @@ -6772,7 +6772,7 @@ pub fn parse_modify_db_cluster_error( Err(match error_code { "DBClusterAlreadyExistsFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::DBClusterAlreadyExistsFault({ + kind: crate::error::ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_already_exists_fault::Builder::default(); let _ = response; @@ -6786,7 +6786,7 @@ pub fn parse_modify_db_cluster_error( }, "DBClusterNotFoundFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::ModifyDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -6800,7 +6800,7 @@ pub fn parse_modify_db_cluster_error( }, "DBClusterParameterGroupNotFoundFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::DBClusterParameterGroupNotFoundFault({ + kind: crate::error::ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_parameter_group_not_found_fault::Builder::default(); @@ -6811,7 +6811,7 @@ pub fn parse_modify_db_cluster_error( }, "DBSubnetGroupNotFoundFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -6839,7 +6839,7 @@ pub fn parse_modify_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::ModifyDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -6853,7 +6853,7 @@ pub fn parse_modify_db_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::ModifyDBClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -6867,7 +6867,7 @@ pub fn parse_modify_db_cluster_error( }, "InvalidDBSecurityGroupStateFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::InvalidDBSecurityGroupStateFault({ + kind: crate::error::ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_security_group_state_fault::Builder::default(); @@ -6879,7 +6879,7 @@ pub fn parse_modify_db_cluster_error( "InvalidDBSubnetGroupStateFault" => { crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::InvalidDBSubnetGroupStateFault({ + kind: crate::error::ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_subnet_group_state_fault::Builder::default(); @@ -6905,7 +6905,7 @@ pub fn parse_modify_db_cluster_error( }, "InvalidVPCNetworkStateFault" => crate::error::ModifyDBClusterError { meta: generic, - kind: crate::error::ModifyDBClusterErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -6938,7 +6938,7 @@ pub fn parse_modify_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_cluster_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::modify_db_cluster_output::Builder::default(); @@ -6954,7 +6954,7 @@ pub fn parse_modify_db_cluster_response( pub fn parse_modify_db_cluster_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterEndpointOutput, + crate::output::ModifyDbClusterEndpointOutput, crate::error::ModifyDBClusterEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -6970,7 +6970,7 @@ pub fn parse_modify_db_cluster_endpoint_error( Err(match error_code { "DBClusterEndpointNotFoundFault" => crate::error::ModifyDBClusterEndpointError { meta: generic, - kind: crate::error::ModifyDBClusterEndpointErrorKind::DBClusterEndpointNotFoundFault({ + kind: crate::error::ModifyDBClusterEndpointErrorKind::DbClusterEndpointNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_endpoint_not_found_fault::Builder::default(); @@ -6986,7 +6986,7 @@ pub fn parse_modify_db_cluster_endpoint_error( }, "DBInstanceNotFoundFault" => crate::error::ModifyDBClusterEndpointError { meta: generic, - kind: crate::error::ModifyDBClusterEndpointErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::ModifyDBClusterEndpointErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -7001,7 +7001,7 @@ pub fn parse_modify_db_cluster_endpoint_error( "InvalidDBClusterEndpointStateFault" => crate::error::ModifyDBClusterEndpointError { meta: generic, kind: - crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBClusterEndpointStateFault( + crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbClusterEndpointStateFault( { #[allow(unused_mut)] let mut output = @@ -7015,7 +7015,7 @@ pub fn parse_modify_db_cluster_endpoint_error( }, "InvalidDBClusterStateFault" => crate::error::ModifyDBClusterEndpointError { meta: generic, - kind: crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -7029,7 +7029,7 @@ pub fn parse_modify_db_cluster_endpoint_error( }, "InvalidDBInstanceStateFault" => crate::error::ModifyDBClusterEndpointError { meta: generic, - kind: crate::error::ModifyDBClusterEndpointErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::ModifyDBClusterEndpointErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -7049,7 +7049,7 @@ pub fn parse_modify_db_cluster_endpoint_error( pub fn parse_modify_db_cluster_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterEndpointOutput, + crate::output::ModifyDbClusterEndpointOutput, crate::error::ModifyDBClusterEndpointError, > { Ok({ @@ -7069,7 +7069,7 @@ pub fn parse_modify_db_cluster_endpoint_response( pub fn parse_modify_db_cluster_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterParameterGroupOutput, + crate::output::ModifyDbClusterParameterGroupOutput, crate::error::ModifyDBClusterParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7083,13 +7083,13 @@ pub fn parse_modify_db_cluster_parameter_group_error( } }; Err(match error_code { - "DBParameterGroupNotFoundFault" => crate::error::ModifyDBClusterParameterGroupError { meta: generic, kind: crate::error::ModifyDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::ModifyDBClusterParameterGroupError { meta: generic, kind: crate::error::ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ModifyDBClusterParameterGroupError::unhandled)?; output.build() })}, - "InvalidDBParameterGroupStateFault" => crate::error::ModifyDBClusterParameterGroupError { meta: generic, kind: crate::error::ModifyDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault({ + "InvalidDBParameterGroupStateFault" => crate::error::ModifyDBClusterParameterGroupError { meta: generic, kind: crate::error::ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_parameter_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_parameter_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ModifyDBClusterParameterGroupError::unhandled)?; @@ -7103,7 +7103,7 @@ pub fn parse_modify_db_cluster_parameter_group_error( pub fn parse_modify_db_cluster_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterParameterGroupOutput, + crate::output::ModifyDbClusterParameterGroupOutput, crate::error::ModifyDBClusterParameterGroupError, > { Ok({ @@ -7124,7 +7124,7 @@ pub fn parse_modify_db_cluster_parameter_group_response( pub fn parse_modify_db_cluster_snapshot_attribute_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterSnapshotAttributeOutput, + crate::output::ModifyDbClusterSnapshotAttributeOutput, crate::error::ModifyDBClusterSnapshotAttributeError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7136,13 +7136,13 @@ pub fn parse_modify_db_cluster_snapshot_attribute_error( } }; Err(match error_code { - "DBClusterSnapshotNotFoundFault" => crate::error::ModifyDBClusterSnapshotAttributeError { meta: generic, kind: crate::error::ModifyDBClusterSnapshotAttributeErrorKind::DBClusterSnapshotNotFoundFault({ + "DBClusterSnapshotNotFoundFault" => crate::error::ModifyDBClusterSnapshotAttributeError { meta: generic, kind: crate::error::ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ModifyDBClusterSnapshotAttributeError::unhandled)?; output.build() })}, - "InvalidDBClusterSnapshotStateFault" => crate::error::ModifyDBClusterSnapshotAttributeError { meta: generic, kind: crate::error::ModifyDBClusterSnapshotAttributeErrorKind::InvalidDBClusterSnapshotStateFault({ + "InvalidDBClusterSnapshotStateFault" => crate::error::ModifyDBClusterSnapshotAttributeError { meta: generic, kind: crate::error::ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_cluster_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ModifyDBClusterSnapshotAttributeError::unhandled)?; @@ -7162,7 +7162,7 @@ pub fn parse_modify_db_cluster_snapshot_attribute_error( pub fn parse_modify_db_cluster_snapshot_attribute_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBClusterSnapshotAttributeOutput, + crate::output::ModifyDbClusterSnapshotAttributeOutput, crate::error::ModifyDBClusterSnapshotAttributeError, > { Ok({ @@ -7182,7 +7182,7 @@ pub fn parse_modify_db_cluster_snapshot_attribute_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_instance_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ModifyDBInstanceError::unhandled)?; @@ -7235,7 +7235,7 @@ pub fn parse_modify_db_instance_error( }, "DBInstanceAlreadyExistsFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::DBInstanceAlreadyExistsFault({ + kind: crate::error::ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_already_exists_fault::Builder::default(); let _ = response; @@ -7250,7 +7250,7 @@ pub fn parse_modify_db_instance_error( }, "DBInstanceNotFoundFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::ModifyDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -7265,7 +7265,7 @@ pub fn parse_modify_db_instance_error( "DBParameterGroupNotFoundFault" => { crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::DBParameterGroupNotFoundFault({ + kind: crate::error::ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); @@ -7278,7 +7278,7 @@ pub fn parse_modify_db_instance_error( "DBSecurityGroupNotFoundFault" => { crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::DBSecurityGroupNotFoundFault({ + kind: crate::error::ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); @@ -7291,7 +7291,7 @@ pub fn parse_modify_db_instance_error( "DBUpgradeDependencyFailureFault" => { crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::DBUpgradeDependencyFailureFault({ + kind: crate::error::ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault({ #[allow(unused_mut)] let mut output = crate::error::db_upgrade_dependency_failure_fault::Builder::default(); @@ -7317,7 +7317,7 @@ pub fn parse_modify_db_instance_error( }, "InsufficientDBInstanceCapacityFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::InsufficientDBInstanceCapacityFault({ + kind: crate::error::ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)] let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); @@ -7328,7 +7328,7 @@ pub fn parse_modify_db_instance_error( }, "InvalidDBClusterStateFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::ModifyDBInstanceErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -7342,7 +7342,7 @@ pub fn parse_modify_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -7356,7 +7356,7 @@ pub fn parse_modify_db_instance_error( }, "InvalidDBSecurityGroupStateFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::InvalidDBSecurityGroupStateFault({ + kind: crate::error::ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_security_group_state_fault::Builder::default(); @@ -7367,7 +7367,7 @@ pub fn parse_modify_db_instance_error( }, "InvalidVPCNetworkStateFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -7381,7 +7381,7 @@ pub fn parse_modify_db_instance_error( }, "KMSKeyNotAccessibleFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::ModifyDBInstanceErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -7409,7 +7409,7 @@ pub fn parse_modify_db_instance_error( }, "ProvisionedIopsNotAvailableInAZFault" => crate::error::ModifyDBInstanceError { meta: generic, - kind: crate::error::ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAZFault({ + kind: crate::error::ModifyDBInstanceErrorKind::ProvisionedIopsNotAvailableInAzFault({ #[allow(unused_mut)] let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); @@ -7454,7 +7454,7 @@ pub fn parse_modify_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_instance_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -7471,7 +7471,7 @@ pub fn parse_modify_db_instance_response( pub fn parse_modify_db_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBParameterGroupOutput, + crate::output::ModifyDbParameterGroupOutput, crate::error::ModifyDBParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7488,7 +7488,7 @@ pub fn parse_modify_db_parameter_group_error( "DBParameterGroupNotFoundFault" => { crate::error::ModifyDBParameterGroupError { meta: generic, - kind: crate::error::ModifyDBParameterGroupErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::ModifyDBParameterGroupErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -7502,7 +7502,7 @@ pub fn parse_modify_db_parameter_group_error( } "InvalidDBParameterGroupStateFault" => crate::error::ModifyDBParameterGroupError { meta: generic, - kind: crate::error::ModifyDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault( + kind: crate::error::ModifyDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault( { #[allow(unused_mut)] let mut output = @@ -7521,7 +7521,7 @@ pub fn parse_modify_db_parameter_group_error( pub fn parse_modify_db_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBParameterGroupOutput, + crate::output::ModifyDbParameterGroupOutput, crate::error::ModifyDBParameterGroupError, > { Ok({ @@ -7540,7 +7540,7 @@ pub fn parse_modify_db_parameter_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_proxy_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ModifyDBProxyError::unhandled)?; let error_code = match generic.code() { @@ -7550,7 +7550,7 @@ pub fn parse_modify_db_proxy_error( Err(match error_code { "DBProxyAlreadyExistsFault" => crate::error::ModifyDBProxyError { meta: generic, - kind: crate::error::ModifyDBProxyErrorKind::DBProxyAlreadyExistsFault({ + kind: crate::error::ModifyDBProxyErrorKind::DbProxyAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_already_exists_fault::Builder::default(); let _ = response; @@ -7564,7 +7564,7 @@ pub fn parse_modify_db_proxy_error( }, "DBProxyNotFoundFault" => crate::error::ModifyDBProxyError { meta: generic, - kind: crate::error::ModifyDBProxyErrorKind::DBProxyNotFoundFault({ + kind: crate::error::ModifyDBProxyErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -7578,7 +7578,7 @@ pub fn parse_modify_db_proxy_error( }, "InvalidDBProxyStateFault" => crate::error::ModifyDBProxyError { meta: generic, - kind: crate::error::ModifyDBProxyErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::ModifyDBProxyErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -7597,7 +7597,7 @@ pub fn parse_modify_db_proxy_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_proxy_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::modify_db_proxy_output::Builder::default(); @@ -7613,7 +7613,7 @@ pub fn parse_modify_db_proxy_response( pub fn parse_modify_db_proxy_endpoint_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBProxyEndpointOutput, + crate::output::ModifyDbProxyEndpointOutput, crate::error::ModifyDBProxyEndpointError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7625,7 +7625,7 @@ pub fn parse_modify_db_proxy_endpoint_error( Err(match error_code { "DBProxyEndpointAlreadyExistsFault" => crate::error::ModifyDBProxyEndpointError { meta: generic, - kind: crate::error::ModifyDBProxyEndpointErrorKind::DBProxyEndpointAlreadyExistsFault( + kind: crate::error::ModifyDBProxyEndpointErrorKind::DbProxyEndpointAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -7639,7 +7639,7 @@ pub fn parse_modify_db_proxy_endpoint_error( "DBProxyEndpointNotFoundFault" => { crate::error::ModifyDBProxyEndpointError { meta: generic, - kind: crate::error::ModifyDBProxyEndpointErrorKind::DBProxyEndpointNotFoundFault({ + kind: crate::error::ModifyDBProxyEndpointErrorKind::DbProxyEndpointNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_endpoint_not_found_fault::Builder::default(); @@ -7651,7 +7651,7 @@ pub fn parse_modify_db_proxy_endpoint_error( } "InvalidDBProxyEndpointStateFault" => crate::error::ModifyDBProxyEndpointError { meta: generic, - kind: crate::error::ModifyDBProxyEndpointErrorKind::InvalidDBProxyEndpointStateFault({ + kind: crate::error::ModifyDBProxyEndpointErrorKind::InvalidDbProxyEndpointStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_endpoint_state_fault::Builder::default(); @@ -7662,7 +7662,7 @@ pub fn parse_modify_db_proxy_endpoint_error( }, "InvalidDBProxyStateFault" => crate::error::ModifyDBProxyEndpointError { meta: generic, - kind: crate::error::ModifyDBProxyEndpointErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::ModifyDBProxyEndpointErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -7682,7 +7682,7 @@ pub fn parse_modify_db_proxy_endpoint_error( pub fn parse_modify_db_proxy_endpoint_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBProxyEndpointOutput, + crate::output::ModifyDbProxyEndpointOutput, crate::error::ModifyDBProxyEndpointError, > { Ok({ @@ -7702,7 +7702,7 @@ pub fn parse_modify_db_proxy_endpoint_response( pub fn parse_modify_db_proxy_target_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBProxyTargetGroupOutput, + crate::output::ModifyDbProxyTargetGroupOutput, crate::error::ModifyDBProxyTargetGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7718,7 +7718,7 @@ pub fn parse_modify_db_proxy_target_group_error( Err(match error_code { "DBProxyNotFoundFault" => crate::error::ModifyDBProxyTargetGroupError { meta: generic, - kind: crate::error::ModifyDBProxyTargetGroupErrorKind::DBProxyNotFoundFault({ + kind: crate::error::ModifyDBProxyTargetGroupErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -7732,7 +7732,7 @@ pub fn parse_modify_db_proxy_target_group_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::ModifyDBProxyTargetGroupError { meta: generic, - kind: crate::error::ModifyDBProxyTargetGroupErrorKind::DBProxyTargetGroupNotFoundFault( + kind: crate::error::ModifyDBProxyTargetGroupErrorKind::DbProxyTargetGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -7745,7 +7745,7 @@ pub fn parse_modify_db_proxy_target_group_error( }, "InvalidDBProxyStateFault" => crate::error::ModifyDBProxyTargetGroupError { meta: generic, - kind: crate::error::ModifyDBProxyTargetGroupErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::ModifyDBProxyTargetGroupErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -7765,7 +7765,7 @@ pub fn parse_modify_db_proxy_target_group_error( pub fn parse_modify_db_proxy_target_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBProxyTargetGroupOutput, + crate::output::ModifyDbProxyTargetGroupOutput, crate::error::ModifyDBProxyTargetGroupError, > { Ok({ @@ -7784,7 +7784,7 @@ pub fn parse_modify_db_proxy_target_group_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_snapshot_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::ModifyDBSnapshotError::unhandled)?; @@ -7795,7 +7795,7 @@ pub fn parse_modify_db_snapshot_error( Err(match error_code { "DBSnapshotNotFoundFault" => crate::error::ModifyDBSnapshotError { meta: generic, - kind: crate::error::ModifyDBSnapshotErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::ModifyDBSnapshotErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -7814,7 +7814,7 @@ pub fn parse_modify_db_snapshot_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_modify_db_snapshot_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -7831,7 +7831,7 @@ pub fn parse_modify_db_snapshot_response( pub fn parse_modify_db_snapshot_attribute_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBSnapshotAttributeOutput, + crate::output::ModifyDbSnapshotAttributeOutput, crate::error::ModifyDBSnapshotAttributeError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7847,7 +7847,7 @@ pub fn parse_modify_db_snapshot_attribute_error( Err(match error_code { "DBSnapshotNotFoundFault" => crate::error::ModifyDBSnapshotAttributeError { meta: generic, - kind: crate::error::ModifyDBSnapshotAttributeErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::ModifyDBSnapshotAttributeErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -7861,7 +7861,7 @@ pub fn parse_modify_db_snapshot_attribute_error( }, "InvalidDBSnapshotStateFault" => crate::error::ModifyDBSnapshotAttributeError { meta: generic, - kind: crate::error::ModifyDBSnapshotAttributeErrorKind::InvalidDBSnapshotStateFault({ + kind: crate::error::ModifyDBSnapshotAttributeErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; @@ -7895,7 +7895,7 @@ pub fn parse_modify_db_snapshot_attribute_error( pub fn parse_modify_db_snapshot_attribute_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBSnapshotAttributeOutput, + crate::output::ModifyDbSnapshotAttributeOutput, crate::error::ModifyDBSnapshotAttributeError, > { Ok({ @@ -7915,7 +7915,7 @@ pub fn parse_modify_db_snapshot_attribute_response( pub fn parse_modify_db_subnet_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBSubnetGroupOutput, + crate::output::ModifyDbSubnetGroupOutput, crate::error::ModifyDBSubnetGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -7927,7 +7927,7 @@ pub fn parse_modify_db_subnet_group_error( Err(match error_code { "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::ModifyDBSubnetGroupError { meta: generic, - kind: crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + kind: crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); @@ -7938,7 +7938,7 @@ pub fn parse_modify_db_subnet_group_error( }, "DBSubnetGroupNotFoundFault" => crate::error::ModifyDBSubnetGroupError { meta: generic, - kind: crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -7952,7 +7952,7 @@ pub fn parse_modify_db_subnet_group_error( }, "DBSubnetQuotaExceededFault" => crate::error::ModifyDBSubnetGroupError { meta: generic, - kind: crate::error::ModifyDBSubnetGroupErrorKind::DBSubnetQuotaExceededFault({ + kind: crate::error::ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_quota_exceeded_fault::Builder::default(); let _ = response; @@ -8000,7 +8000,7 @@ pub fn parse_modify_db_subnet_group_error( pub fn parse_modify_db_subnet_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ModifyDBSubnetGroupOutput, + crate::output::ModifyDbSubnetGroupOutput, crate::error::ModifyDBSubnetGroupError, > { Ok({ @@ -8051,7 +8051,7 @@ pub fn parse_modify_event_subscription_error( }, "SNSInvalidTopicFault" => crate::error::ModifyEventSubscriptionError { meta: generic, - kind: crate::error::ModifyEventSubscriptionErrorKind::SNSInvalidTopicFault({ + kind: crate::error::ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault({ #[allow(unused_mut)] let mut output = crate::error::sns_invalid_topic_fault::Builder::default(); let _ = response; @@ -8065,7 +8065,7 @@ pub fn parse_modify_event_subscription_error( }, "SNSNoAuthorizationFault" => crate::error::ModifyEventSubscriptionError { meta: generic, - kind: crate::error::ModifyEventSubscriptionErrorKind::SNSNoAuthorizationFault({ + kind: crate::error::ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault({ #[allow(unused_mut)] let mut output = crate::error::sns_no_authorization_fault::Builder::default(); let _ = response; @@ -8079,7 +8079,7 @@ pub fn parse_modify_event_subscription_error( }, "SNSTopicArnNotFoundFault" => crate::error::ModifyEventSubscriptionError { meta: generic, - kind: crate::error::ModifyEventSubscriptionErrorKind::SNSTopicArnNotFoundFault({ + kind: crate::error::ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::sns_topic_arn_not_found_fault::Builder::default(); let _ = response; @@ -8172,7 +8172,7 @@ pub fn parse_modify_global_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::ModifyGlobalClusterError { meta: generic, - kind: crate::error::ModifyGlobalClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::ModifyGlobalClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -8186,7 +8186,7 @@ pub fn parse_modify_global_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::ModifyGlobalClusterError { meta: generic, - kind: crate::error::ModifyGlobalClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::ModifyGlobalClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -8312,7 +8312,7 @@ pub fn parse_promote_read_replica_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::PromoteReadReplicaError { meta: generic, - kind: crate::error::PromoteReadReplicaErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::PromoteReadReplicaErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -8326,7 +8326,7 @@ pub fn parse_promote_read_replica_error( }, "InvalidDBInstanceStateFault" => crate::error::PromoteReadReplicaError { meta: generic, - kind: crate::error::PromoteReadReplicaErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::PromoteReadReplicaErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -8366,7 +8366,7 @@ pub fn parse_promote_read_replica_response( pub fn parse_promote_read_replica_db_cluster_error( response: &http::Response, ) -> std::result::Result< - crate::output::PromoteReadReplicaDBClusterOutput, + crate::output::PromoteReadReplicaDbClusterOutput, crate::error::PromoteReadReplicaDBClusterError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8382,7 +8382,7 @@ pub fn parse_promote_read_replica_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::PromoteReadReplicaDBClusterError { meta: generic, - kind: crate::error::PromoteReadReplicaDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::PromoteReadReplicaDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -8396,7 +8396,7 @@ pub fn parse_promote_read_replica_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::PromoteReadReplicaDBClusterError { meta: generic, - kind: crate::error::PromoteReadReplicaDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::PromoteReadReplicaDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -8416,7 +8416,7 @@ pub fn parse_promote_read_replica_db_cluster_error( pub fn parse_promote_read_replica_db_cluster_response( response: &http::Response, ) -> std::result::Result< - crate::output::PromoteReadReplicaDBClusterOutput, + crate::output::PromoteReadReplicaDbClusterOutput, crate::error::PromoteReadReplicaDBClusterError, > { Ok({ @@ -8436,7 +8436,7 @@ pub fn parse_promote_read_replica_db_cluster_response( pub fn parse_purchase_reserved_db_instances_offering_error( response: &http::Response, ) -> std::result::Result< - crate::output::PurchaseReservedDBInstancesOfferingOutput, + crate::output::PurchaseReservedDbInstancesOfferingOutput, crate::error::PurchaseReservedDBInstancesOfferingError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8448,19 +8448,19 @@ pub fn parse_purchase_reserved_db_instances_offering_error( } }; Err(match error_code { - "ReservedDBInstanceAlreadyExistsFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceAlreadyExistsFault({ + "ReservedDBInstanceAlreadyExistsFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::reserved_db_instance_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_reserved_db_instance_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::PurchaseReservedDBInstancesOfferingError::unhandled)?; output.build() })}, - "ReservedDBInstanceQuotaExceededFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstanceQuotaExceededFault({ + "ReservedDBInstanceQuotaExceededFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstanceQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::reserved_db_instance_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_reserved_db_instance_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::PurchaseReservedDBInstancesOfferingError::unhandled)?; output.build() })}, - "ReservedDBInstancesOfferingNotFoundFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDBInstancesOfferingNotFoundFault({ + "ReservedDBInstancesOfferingNotFoundFault" => crate::error::PurchaseReservedDBInstancesOfferingError { meta: generic, kind: crate::error::PurchaseReservedDBInstancesOfferingErrorKind::ReservedDbInstancesOfferingNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::reserved_db_instances_offering_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_reserved_db_instances_offering_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::PurchaseReservedDBInstancesOfferingError::unhandled)?; @@ -8474,7 +8474,7 @@ pub fn parse_purchase_reserved_db_instances_offering_error( pub fn parse_purchase_reserved_db_instances_offering_response( response: &http::Response, ) -> std::result::Result< - crate::output::PurchaseReservedDBInstancesOfferingOutput, + crate::output::PurchaseReservedDbInstancesOfferingOutput, crate::error::PurchaseReservedDBInstancesOfferingError, > { Ok({ @@ -8494,7 +8494,7 @@ pub fn parse_purchase_reserved_db_instances_offering_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_reboot_db_instance_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::RebootDBInstanceError::unhandled)?; @@ -8505,7 +8505,7 @@ pub fn parse_reboot_db_instance_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::RebootDBInstanceError { meta: generic, - kind: crate::error::RebootDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::RebootDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -8519,7 +8519,7 @@ pub fn parse_reboot_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::RebootDBInstanceError { meta: generic, - kind: crate::error::RebootDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::RebootDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -8538,7 +8538,7 @@ pub fn parse_reboot_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_reboot_db_instance_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -8555,7 +8555,7 @@ pub fn parse_reboot_db_instance_response( pub fn parse_register_db_proxy_targets_error( response: &http::Response, ) -> std::result::Result< - crate::output::RegisterDBProxyTargetsOutput, + crate::output::RegisterDbProxyTargetsOutput, crate::error::RegisterDBProxyTargetsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8571,7 +8571,7 @@ pub fn parse_register_db_proxy_targets_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::DBClusterNotFoundFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -8585,7 +8585,7 @@ pub fn parse_register_db_proxy_targets_error( }, "DBInstanceNotFoundFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -8599,7 +8599,7 @@ pub fn parse_register_db_proxy_targets_error( }, "DBProxyNotFoundFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::DBProxyNotFoundFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -8614,7 +8614,7 @@ pub fn parse_register_db_proxy_targets_error( "DBProxyTargetAlreadyRegisteredFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, kind: - crate::error::RegisterDBProxyTargetsErrorKind::DBProxyTargetAlreadyRegisteredFault( + crate::error::RegisterDBProxyTargetsErrorKind::DbProxyTargetAlreadyRegisteredFault( { #[allow(unused_mut)]let mut output = crate::error::db_proxy_target_already_registered_fault::Builder::default(); let _ = response; @@ -8625,7 +8625,7 @@ pub fn parse_register_db_proxy_targets_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::DBProxyTargetGroupNotFoundFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::DbProxyTargetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_group_not_found_fault::Builder::default(); @@ -8648,7 +8648,7 @@ pub fn parse_register_db_proxy_targets_error( }, "InvalidDBClusterStateFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -8662,7 +8662,7 @@ pub fn parse_register_db_proxy_targets_error( }, "InvalidDBInstanceStateFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -8676,7 +8676,7 @@ pub fn parse_register_db_proxy_targets_error( }, "InvalidDBProxyStateFault" => crate::error::RegisterDBProxyTargetsError { meta: generic, - kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDBProxyStateFault({ + kind: crate::error::RegisterDBProxyTargetsErrorKind::InvalidDbProxyStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_proxy_state_fault::Builder::default(); let _ = response; @@ -8696,7 +8696,7 @@ pub fn parse_register_db_proxy_targets_error( pub fn parse_register_db_proxy_targets_response( response: &http::Response, ) -> std::result::Result< - crate::output::RegisterDBProxyTargetsOutput, + crate::output::RegisterDbProxyTargetsOutput, crate::error::RegisterDBProxyTargetsError, > { Ok({ @@ -8732,7 +8732,7 @@ pub fn parse_remove_from_global_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::RemoveFromGlobalClusterError { meta: generic, - kind: crate::error::RemoveFromGlobalClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -8802,7 +8802,7 @@ pub fn parse_remove_from_global_cluster_response( pub fn parse_remove_role_from_db_cluster_error( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveRoleFromDBClusterOutput, + crate::output::RemoveRoleFromDbClusterOutput, crate::error::RemoveRoleFromDBClusterError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8818,7 +8818,7 @@ pub fn parse_remove_role_from_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::RemoveRoleFromDBClusterError { meta: generic, - kind: crate::error::RemoveRoleFromDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::RemoveRoleFromDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -8832,7 +8832,7 @@ pub fn parse_remove_role_from_db_cluster_error( }, "DBClusterRoleNotFoundFault" => crate::error::RemoveRoleFromDBClusterError { meta: generic, - kind: crate::error::RemoveRoleFromDBClusterErrorKind::DBClusterRoleNotFoundFault({ + kind: crate::error::RemoveRoleFromDBClusterErrorKind::DbClusterRoleNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_role_not_found_fault::Builder::default(); let _ = response; @@ -8846,7 +8846,7 @@ pub fn parse_remove_role_from_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::RemoveRoleFromDBClusterError { meta: generic, - kind: crate::error::RemoveRoleFromDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::RemoveRoleFromDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -8866,7 +8866,7 @@ pub fn parse_remove_role_from_db_cluster_error( pub fn parse_remove_role_from_db_cluster_response( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveRoleFromDBClusterOutput, + crate::output::RemoveRoleFromDbClusterOutput, crate::error::RemoveRoleFromDBClusterError, > { Ok({ @@ -8881,7 +8881,7 @@ pub fn parse_remove_role_from_db_cluster_response( pub fn parse_remove_role_from_db_instance_error( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveRoleFromDBInstanceOutput, + crate::output::RemoveRoleFromDbInstanceOutput, crate::error::RemoveRoleFromDBInstanceError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -8897,7 +8897,7 @@ pub fn parse_remove_role_from_db_instance_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::RemoveRoleFromDBInstanceError { meta: generic, - kind: crate::error::RemoveRoleFromDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::RemoveRoleFromDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -8912,7 +8912,7 @@ pub fn parse_remove_role_from_db_instance_error( "DBInstanceRoleNotFoundFault" => { crate::error::RemoveRoleFromDBInstanceError { meta: generic, - kind: crate::error::RemoveRoleFromDBInstanceErrorKind::DBInstanceRoleNotFoundFault( + kind: crate::error::RemoveRoleFromDBInstanceErrorKind::DbInstanceRoleNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -8926,7 +8926,7 @@ pub fn parse_remove_role_from_db_instance_error( } "InvalidDBInstanceStateFault" => crate::error::RemoveRoleFromDBInstanceError { meta: generic, - kind: crate::error::RemoveRoleFromDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::RemoveRoleFromDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -8946,7 +8946,7 @@ pub fn parse_remove_role_from_db_instance_error( pub fn parse_remove_role_from_db_instance_response( response: &http::Response, ) -> std::result::Result< - crate::output::RemoveRoleFromDBInstanceOutput, + crate::output::RemoveRoleFromDbInstanceOutput, crate::error::RemoveRoleFromDBInstanceError, > { Ok({ @@ -9032,7 +9032,7 @@ pub fn parse_remove_tags_from_resource_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::RemoveTagsFromResourceError { meta: generic, - kind: crate::error::RemoveTagsFromResourceErrorKind::DBClusterNotFoundFault({ + kind: crate::error::RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -9046,7 +9046,7 @@ pub fn parse_remove_tags_from_resource_error( }, "DBInstanceNotFoundFault" => crate::error::RemoveTagsFromResourceError { meta: generic, - kind: crate::error::RemoveTagsFromResourceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -9060,7 +9060,7 @@ pub fn parse_remove_tags_from_resource_error( }, "DBProxyNotFoundFault" => crate::error::RemoveTagsFromResourceError { meta: generic, - kind: crate::error::RemoveTagsFromResourceErrorKind::DBProxyNotFoundFault({ + kind: crate::error::RemoveTagsFromResourceErrorKind::DbProxyNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_not_found_fault::Builder::default(); let _ = response; @@ -9074,7 +9074,7 @@ pub fn parse_remove_tags_from_resource_error( }, "DBProxyTargetGroupNotFoundFault" => crate::error::RemoveTagsFromResourceError { meta: generic, - kind: crate::error::RemoveTagsFromResourceErrorKind::DBProxyTargetGroupNotFoundFault({ + kind: crate::error::RemoveTagsFromResourceErrorKind::DbProxyTargetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_proxy_target_group_not_found_fault::Builder::default(); @@ -9085,7 +9085,7 @@ pub fn parse_remove_tags_from_resource_error( }, "DBSnapshotNotFoundFault" => crate::error::RemoveTagsFromResourceError { meta: generic, - kind: crate::error::RemoveTagsFromResourceErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -9120,7 +9120,7 @@ pub fn parse_remove_tags_from_resource_response( pub fn parse_reset_db_cluster_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ResetDBClusterParameterGroupOutput, + crate::output::ResetDbClusterParameterGroupOutput, crate::error::ResetDBClusterParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9134,13 +9134,13 @@ pub fn parse_reset_db_cluster_parameter_group_error( } }; Err(match error_code { - "DBParameterGroupNotFoundFault" => crate::error::ResetDBClusterParameterGroupError { meta: generic, kind: crate::error::ResetDBClusterParameterGroupErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::ResetDBClusterParameterGroupError { meta: generic, kind: crate::error::ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ResetDBClusterParameterGroupError::unhandled)?; output.build() })}, - "InvalidDBParameterGroupStateFault" => crate::error::ResetDBClusterParameterGroupError { meta: generic, kind: crate::error::ResetDBClusterParameterGroupErrorKind::InvalidDBParameterGroupStateFault({ + "InvalidDBParameterGroupStateFault" => crate::error::ResetDBClusterParameterGroupError { meta: generic, kind: crate::error::ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_parameter_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_parameter_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::ResetDBClusterParameterGroupError::unhandled)?; @@ -9154,7 +9154,7 @@ pub fn parse_reset_db_cluster_parameter_group_error( pub fn parse_reset_db_cluster_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ResetDBClusterParameterGroupOutput, + crate::output::ResetDbClusterParameterGroupOutput, crate::error::ResetDBClusterParameterGroupError, > { Ok({ @@ -9174,7 +9174,7 @@ pub fn parse_reset_db_cluster_parameter_group_response( pub fn parse_reset_db_parameter_group_error( response: &http::Response, ) -> std::result::Result< - crate::output::ResetDBParameterGroupOutput, + crate::output::ResetDbParameterGroupOutput, crate::error::ResetDBParameterGroupError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9187,7 +9187,7 @@ pub fn parse_reset_db_parameter_group_error( "DBParameterGroupNotFoundFault" => { crate::error::ResetDBParameterGroupError { meta: generic, - kind: crate::error::ResetDBParameterGroupErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::ResetDBParameterGroupErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -9201,7 +9201,7 @@ pub fn parse_reset_db_parameter_group_error( } "InvalidDBParameterGroupStateFault" => crate::error::ResetDBParameterGroupError { meta: generic, - kind: crate::error::ResetDBParameterGroupErrorKind::InvalidDBParameterGroupStateFault( + kind: crate::error::ResetDBParameterGroupErrorKind::InvalidDbParameterGroupStateFault( { #[allow(unused_mut)] let mut output = @@ -9220,7 +9220,7 @@ pub fn parse_reset_db_parameter_group_error( pub fn parse_reset_db_parameter_group_response( response: &http::Response, ) -> std::result::Result< - crate::output::ResetDBParameterGroupOutput, + crate::output::ResetDbParameterGroupOutput, crate::error::ResetDBParameterGroupError, > { Ok({ @@ -9240,7 +9240,7 @@ pub fn parse_reset_db_parameter_group_response( pub fn parse_restore_db_cluster_from_s3_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterFromS3Output, + crate::output::RestoreDbClusterFromS3Output, crate::error::RestoreDBClusterFromS3Error, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9254,31 +9254,31 @@ pub fn parse_restore_db_cluster_from_s3_error( } }; Err(match error_code { - "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterAlreadyExistsFault({ + "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "DBClusterNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterNotFoundFault({ + "DBClusterNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterParameterGroupNotFoundFault({ + "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DBClusterQuotaExceededFault({ + "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DbClusterQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; @@ -9296,13 +9296,13 @@ pub fn parse_restore_db_cluster_from_s3_error( output = crate::xml_deser::deser_structure_insufficient_storage_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "InvalidDBClusterStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDBClusterStateFault({ + "InvalidDBClusterStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_cluster_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "InvalidDBSubnetGroupStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDBSubnetGroupStateFault({ + "InvalidDBSubnetGroupStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidDbSubnetGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_subnet_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_subnet_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; @@ -9320,13 +9320,13 @@ pub fn parse_restore_db_cluster_from_s3_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterFromS3Error { meta: generic, kind: crate::error::RestoreDBClusterFromS3ErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromS3Error::unhandled)?; @@ -9346,7 +9346,7 @@ pub fn parse_restore_db_cluster_from_s3_error( pub fn parse_restore_db_cluster_from_s3_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterFromS3Output, + crate::output::RestoreDbClusterFromS3Output, crate::error::RestoreDBClusterFromS3Error, > { Ok({ @@ -9366,7 +9366,7 @@ pub fn parse_restore_db_cluster_from_s3_response( pub fn parse_restore_db_cluster_from_snapshot_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterFromSnapshotOutput, + crate::output::RestoreDbClusterFromSnapshotOutput, crate::error::RestoreDBClusterFromSnapshotError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9380,37 +9380,37 @@ pub fn parse_restore_db_cluster_from_snapshot_error( } }; Err(match error_code { - "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterAlreadyExistsFault({ + "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterParameterGroupNotFoundFault({ + "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterQuotaExceededFault({ + "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "DBClusterSnapshotNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBClusterSnapshotNotFoundFault({ + "DBClusterSnapshotNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "DBSnapshotNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBSnapshotNotFoundFault({ + "DBSnapshotNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; @@ -9422,7 +9422,7 @@ pub fn parse_restore_db_cluster_from_snapshot_error( output = crate::xml_deser::deser_structure_domain_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "InsufficientDBClusterCapacityFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InsufficientDBClusterCapacityFault({ + "InsufficientDBClusterCapacityFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault({ #[allow(unused_mut)]let mut output = crate::error::insufficient_db_cluster_capacity_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_insufficient_db_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; @@ -9434,13 +9434,13 @@ pub fn parse_restore_db_cluster_from_snapshot_error( output = crate::xml_deser::deser_structure_insufficient_storage_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "InvalidDBClusterSnapshotStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDBClusterSnapshotStateFault({ + "InvalidDBClusterSnapshotStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_cluster_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "InvalidDBSnapshotStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDBSnapshotStateFault({ + "InvalidDBSnapshotStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; @@ -9458,13 +9458,13 @@ pub fn parse_restore_db_cluster_from_snapshot_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterFromSnapshotError { meta: generic, kind: crate::error::RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterFromSnapshotError::unhandled)?; @@ -9490,7 +9490,7 @@ pub fn parse_restore_db_cluster_from_snapshot_error( pub fn parse_restore_db_cluster_from_snapshot_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterFromSnapshotOutput, + crate::output::RestoreDbClusterFromSnapshotOutput, crate::error::RestoreDBClusterFromSnapshotError, > { Ok({ @@ -9510,7 +9510,7 @@ pub fn parse_restore_db_cluster_from_snapshot_response( pub fn parse_restore_db_cluster_to_point_in_time_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterToPointInTimeOutput, + crate::output::RestoreDbClusterToPointInTimeOutput, crate::error::RestoreDBClusterToPointInTimeError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9524,37 +9524,37 @@ pub fn parse_restore_db_cluster_to_point_in_time_error( } }; Err(match error_code { - "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterAlreadyExistsFault({ + "DBClusterAlreadyExistsFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "DBClusterNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterNotFoundFault({ + "DBClusterNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterParameterGroupNotFoundFault({ + "DBClusterParameterGroupNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterQuotaExceededFault({ + "DBClusterQuotaExceededFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "DBClusterSnapshotNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBClusterSnapshotNotFoundFault({ + "DBClusterSnapshotNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_cluster_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; @@ -9566,7 +9566,7 @@ pub fn parse_restore_db_cluster_to_point_in_time_error( output = crate::xml_deser::deser_structure_domain_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "InsufficientDBClusterCapacityFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InsufficientDBClusterCapacityFault({ + "InsufficientDBClusterCapacityFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault({ #[allow(unused_mut)]let mut output = crate::error::insufficient_db_cluster_capacity_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_insufficient_db_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; @@ -9578,19 +9578,19 @@ pub fn parse_restore_db_cluster_to_point_in_time_error( output = crate::xml_deser::deser_structure_insufficient_storage_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "InvalidDBClusterSnapshotStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterSnapshotStateFault({ + "InvalidDBClusterSnapshotStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_cluster_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "InvalidDBClusterStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBClusterStateFault({ + "InvalidDBClusterStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_cluster_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "InvalidDBSnapshotStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDBSnapshotStateFault({ + "InvalidDBSnapshotStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; @@ -9608,13 +9608,13 @@ pub fn parse_restore_db_cluster_to_point_in_time_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::RestoreDBClusterToPointInTimeError { meta: generic, kind: crate::error::RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBClusterToPointInTimeError::unhandled)?; @@ -9640,7 +9640,7 @@ pub fn parse_restore_db_cluster_to_point_in_time_error( pub fn parse_restore_db_cluster_to_point_in_time_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBClusterToPointInTimeOutput, + crate::output::RestoreDbClusterToPointInTimeOutput, crate::error::RestoreDBClusterToPointInTimeError, > { Ok({ @@ -9661,7 +9661,7 @@ pub fn parse_restore_db_cluster_to_point_in_time_response( pub fn parse_restore_db_instance_from_db_snapshot_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromDBSnapshotOutput, + crate::output::RestoreDbInstanceFromDbSnapshotOutput, crate::error::RestoreDBInstanceFromDBSnapshotError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9683,37 +9683,37 @@ pub fn parse_restore_db_instance_from_db_snapshot_error( output = crate::xml_deser::deser_structure_backup_policy_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBInstanceAlreadyExistsFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBInstanceAlreadyExistsFault({ + "DBInstanceAlreadyExistsFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbInstanceAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBParameterGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBSecurityGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSecurityGroupNotFoundFault({ + "DBSecurityGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBSnapshotNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSnapshotNotFoundFault({ + "DBSnapshotNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_snapshot_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_does_not_cover_enough_a_zs_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; @@ -9731,13 +9731,13 @@ pub fn parse_restore_db_instance_from_db_snapshot_error( output = crate::xml_deser::deser_structure_instance_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "InsufficientDBInstanceCapacityFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDBInstanceCapacityFault({ + "InsufficientDBInstanceCapacityFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)]let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_insufficient_db_instance_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "InvalidDBSnapshotStateFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDBSnapshotStateFault({ + "InvalidDBSnapshotStateFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidDbSnapshotStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_snapshot_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_snapshot_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; @@ -9755,13 +9755,13 @@ pub fn parse_restore_db_instance_from_db_snapshot_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; @@ -9773,7 +9773,7 @@ pub fn parse_restore_db_instance_from_db_snapshot_error( output = crate::xml_deser::deser_structure_option_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; output.build() })}, - "ProvisionedIopsNotAvailableInAZFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAZFault({ + "ProvisionedIopsNotAvailableInAZFault" => crate::error::RestoreDBInstanceFromDBSnapshotError { meta: generic, kind: crate::error::RestoreDBInstanceFromDBSnapshotErrorKind::ProvisionedIopsNotAvailableInAzFault({ #[allow(unused_mut)]let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_provisioned_iops_not_available_in_az_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceFromDBSnapshotError::unhandled)?; @@ -9799,7 +9799,7 @@ pub fn parse_restore_db_instance_from_db_snapshot_error( pub fn parse_restore_db_instance_from_db_snapshot_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromDBSnapshotOutput, + crate::output::RestoreDbInstanceFromDbSnapshotOutput, crate::error::RestoreDBInstanceFromDBSnapshotError, > { Ok({ @@ -9820,7 +9820,7 @@ pub fn parse_restore_db_instance_from_db_snapshot_response( pub fn parse_restore_db_instance_from_s3_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromS3Output, + crate::output::RestoreDbInstanceFromS3Output, crate::error::RestoreDBInstanceFromS3Error, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -9865,7 +9865,7 @@ pub fn parse_restore_db_instance_from_s3_error( "DBInstanceAlreadyExistsFault" => { crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DBInstanceAlreadyExistsFault( + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DbInstanceAlreadyExistsFault( { #[allow(unused_mut)] let mut output = @@ -9880,7 +9880,7 @@ pub fn parse_restore_db_instance_from_s3_error( "DBParameterGroupNotFoundFault" => { crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DBParameterGroupNotFoundFault( + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DbParameterGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -9895,7 +9895,7 @@ pub fn parse_restore_db_instance_from_s3_error( "DBSecurityGroupNotFoundFault" => { crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DBSecurityGroupNotFoundFault( + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DbSecurityGroupNotFoundFault( { #[allow(unused_mut)] let mut output = @@ -9910,7 +9910,7 @@ pub fn parse_restore_db_instance_from_s3_error( "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, kind: - crate::error::RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs( + crate::error::RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs( { #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); let _ = response; @@ -9921,7 +9921,7 @@ pub fn parse_restore_db_instance_from_s3_error( }, "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -9950,7 +9950,7 @@ pub fn parse_restore_db_instance_from_s3_error( "InsufficientDBInstanceCapacityFault" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, kind: - crate::error::RestoreDBInstanceFromS3ErrorKind::InsufficientDBInstanceCapacityFault( + crate::error::RestoreDBInstanceFromS3ErrorKind::InsufficientDbInstanceCapacityFault( { #[allow(unused_mut)] let mut output = @@ -9992,7 +9992,7 @@ pub fn parse_restore_db_instance_from_s3_error( }, "InvalidVPCNetworkStateFault" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -10006,7 +10006,7 @@ pub fn parse_restore_db_instance_from_s3_error( }, "KMSKeyNotAccessibleFault" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, - kind: crate::error::RestoreDBInstanceFromS3ErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::RestoreDBInstanceFromS3ErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -10035,7 +10035,7 @@ pub fn parse_restore_db_instance_from_s3_error( "ProvisionedIopsNotAvailableInAZFault" => crate::error::RestoreDBInstanceFromS3Error { meta: generic, kind: - crate::error::RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAZFault( + crate::error::RestoreDBInstanceFromS3ErrorKind::ProvisionedIopsNotAvailableInAzFault( { #[allow(unused_mut)]let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); let _ = response; @@ -10081,7 +10081,7 @@ pub fn parse_restore_db_instance_from_s3_error( pub fn parse_restore_db_instance_from_s3_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceFromS3Output, + crate::output::RestoreDbInstanceFromS3Output, crate::error::RestoreDBInstanceFromS3Error, > { Ok({ @@ -10101,7 +10101,7 @@ pub fn parse_restore_db_instance_from_s3_response( pub fn parse_restore_db_instance_to_point_in_time_error( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceToPointInTimeOutput, + crate::output::RestoreDbInstanceToPointInTimeOutput, crate::error::RestoreDBInstanceToPointInTimeError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -10123,43 +10123,43 @@ pub fn parse_restore_db_instance_to_point_in_time_error( output = crate::xml_deser::deser_structure_backup_policy_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBInstanceAlreadyExistsFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAlreadyExistsFault({ + "DBInstanceAlreadyExistsFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAlreadyExistsFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_already_exists_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBInstanceAutomatedBackupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceAutomatedBackupNotFoundFault({ + "DBInstanceAutomatedBackupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceAutomatedBackupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_automated_backup_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_automated_backup_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBInstanceNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBInstanceNotFoundFault({ + "DBInstanceNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBParameterGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBParameterGroupNotFoundFault({ + "DBParameterGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbParameterGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_parameter_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBSecurityGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSecurityGroupNotFoundFault({ + "DBSecurityGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_does_not_cover_enough_a_zs_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DBSubnetGroupNotFoundFault({ + "DBSubnetGroupNotFoundFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; @@ -10177,13 +10177,13 @@ pub fn parse_restore_db_instance_to_point_in_time_error( output = crate::xml_deser::deser_structure_instance_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "InsufficientDBInstanceCapacityFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InsufficientDBInstanceCapacityFault({ + "InsufficientDBInstanceCapacityFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)]let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_insufficient_db_instance_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "InvalidDBInstanceStateFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidDBInstanceStateFault({ + "InvalidDBInstanceStateFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; @@ -10201,13 +10201,13 @@ pub fn parse_restore_db_instance_to_point_in_time_error( output = crate::xml_deser::deser_structure_invalid_subnet_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "InvalidVPCNetworkStateFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidVPCNetworkStateFault({ + "InvalidVPCNetworkStateFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; @@ -10225,7 +10225,7 @@ pub fn parse_restore_db_instance_to_point_in_time_error( output = crate::xml_deser::deser_structure_point_in_time_restore_not_enabled_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; output.build() })}, - "ProvisionedIopsNotAvailableInAZFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAZFault({ + "ProvisionedIopsNotAvailableInAZFault" => crate::error::RestoreDBInstanceToPointInTimeError { meta: generic, kind: crate::error::RestoreDBInstanceToPointInTimeErrorKind::ProvisionedIopsNotAvailableInAzFault({ #[allow(unused_mut)]let mut output = crate::error::provisioned_iops_not_available_in_az_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_provisioned_iops_not_available_in_az_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RestoreDBInstanceToPointInTimeError::unhandled)?; @@ -10251,7 +10251,7 @@ pub fn parse_restore_db_instance_to_point_in_time_error( pub fn parse_restore_db_instance_to_point_in_time_response( response: &http::Response, ) -> std::result::Result< - crate::output::RestoreDBInstanceToPointInTimeOutput, + crate::output::RestoreDbInstanceToPointInTimeOutput, crate::error::RestoreDBInstanceToPointInTimeError, > { Ok({ @@ -10272,7 +10272,7 @@ pub fn parse_restore_db_instance_to_point_in_time_response( pub fn parse_revoke_db_security_group_ingress_error( response: &http::Response, ) -> std::result::Result< - crate::output::RevokeDBSecurityGroupIngressOutput, + crate::output::RevokeDbSecurityGroupIngressOutput, crate::error::RevokeDBSecurityGroupIngressError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -10292,13 +10292,13 @@ pub fn parse_revoke_db_security_group_ingress_error( output = crate::xml_deser::deser_structure_authorization_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RevokeDBSecurityGroupIngressError::unhandled)?; output.build() })}, - "DBSecurityGroupNotFoundFault" => crate::error::RevokeDBSecurityGroupIngressError { meta: generic, kind: crate::error::RevokeDBSecurityGroupIngressErrorKind::DBSecurityGroupNotFoundFault({ + "DBSecurityGroupNotFoundFault" => crate::error::RevokeDBSecurityGroupIngressError { meta: generic, kind: crate::error::RevokeDBSecurityGroupIngressErrorKind::DbSecurityGroupNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_security_group_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RevokeDBSecurityGroupIngressError::unhandled)?; output.build() })}, - "InvalidDBSecurityGroupStateFault" => crate::error::RevokeDBSecurityGroupIngressError { meta: generic, kind: crate::error::RevokeDBSecurityGroupIngressErrorKind::InvalidDBSecurityGroupStateFault({ + "InvalidDBSecurityGroupStateFault" => crate::error::RevokeDBSecurityGroupIngressError { meta: generic, kind: crate::error::RevokeDBSecurityGroupIngressErrorKind::InvalidDbSecurityGroupStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_security_group_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_security_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::RevokeDBSecurityGroupIngressError::unhandled)?; @@ -10312,7 +10312,7 @@ pub fn parse_revoke_db_security_group_ingress_error( pub fn parse_revoke_db_security_group_ingress_response( response: &http::Response, ) -> std::result::Result< - crate::output::RevokeDBSecurityGroupIngressOutput, + crate::output::RevokeDbSecurityGroupIngressOutput, crate::error::RevokeDBSecurityGroupIngressError, > { Ok({ @@ -10344,7 +10344,7 @@ pub fn parse_start_activity_stream_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::StartActivityStreamError { meta: generic, - kind: crate::error::StartActivityStreamErrorKind::DBClusterNotFoundFault({ + kind: crate::error::StartActivityStreamErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -10358,7 +10358,7 @@ pub fn parse_start_activity_stream_error( }, "DBInstanceNotFoundFault" => crate::error::StartActivityStreamError { meta: generic, - kind: crate::error::StartActivityStreamErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::StartActivityStreamErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -10372,7 +10372,7 @@ pub fn parse_start_activity_stream_error( }, "InvalidDBClusterStateFault" => crate::error::StartActivityStreamError { meta: generic, - kind: crate::error::StartActivityStreamErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StartActivityStreamErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -10386,7 +10386,7 @@ pub fn parse_start_activity_stream_error( }, "InvalidDBInstanceStateFault" => crate::error::StartActivityStreamError { meta: generic, - kind: crate::error::StartActivityStreamErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StartActivityStreamErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -10400,7 +10400,7 @@ pub fn parse_start_activity_stream_error( }, "KMSKeyNotAccessibleFault" => crate::error::StartActivityStreamError { meta: generic, - kind: crate::error::StartActivityStreamErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::StartActivityStreamErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -10453,7 +10453,7 @@ pub fn parse_start_activity_stream_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_start_db_cluster_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::StartDBClusterError::unhandled)?; let error_code = match generic.code() { @@ -10463,7 +10463,7 @@ pub fn parse_start_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::StartDBClusterError { meta: generic, - kind: crate::error::StartDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::StartDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -10477,7 +10477,7 @@ pub fn parse_start_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::StartDBClusterError { meta: generic, - kind: crate::error::StartDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StartDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -10491,7 +10491,7 @@ pub fn parse_start_db_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::StartDBClusterError { meta: generic, - kind: crate::error::StartDBClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StartDBClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -10510,7 +10510,7 @@ pub fn parse_start_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_start_db_cluster_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::start_db_cluster_output::Builder::default(); @@ -10525,7 +10525,7 @@ pub fn parse_start_db_cluster_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_start_db_instance_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::StartDBInstanceError::unhandled)?; let error_code = match generic.code() { @@ -10549,7 +10549,7 @@ pub fn parse_start_db_instance_error( }, "DBClusterNotFoundFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::DBClusterNotFoundFault({ + kind: crate::error::StartDBInstanceErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -10563,7 +10563,7 @@ pub fn parse_start_db_instance_error( }, "DBInstanceNotFoundFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::StartDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -10577,7 +10577,7 @@ pub fn parse_start_db_instance_error( }, "DBSubnetGroupDoesNotCoverEnoughAZs" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::DBSubnetGroupDoesNotCoverEnoughAZs({ + kind: crate::error::StartDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default(); @@ -10588,7 +10588,7 @@ pub fn parse_start_db_instance_error( }, "DBSubnetGroupNotFoundFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::DBSubnetGroupNotFoundFault({ + kind: crate::error::StartDBInstanceErrorKind::DbSubnetGroupNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_subnet_group_not_found_fault::Builder::default(); let _ = response; @@ -10602,7 +10602,7 @@ pub fn parse_start_db_instance_error( }, "InsufficientDBInstanceCapacityFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::InsufficientDBInstanceCapacityFault({ + kind: crate::error::StartDBInstanceErrorKind::InsufficientDbInstanceCapacityFault({ #[allow(unused_mut)] let mut output = crate::error::insufficient_db_instance_capacity_fault::Builder::default(); @@ -10613,7 +10613,7 @@ pub fn parse_start_db_instance_error( }, "InvalidDBClusterStateFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StartDBInstanceErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -10627,7 +10627,7 @@ pub fn parse_start_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StartDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -10655,7 +10655,7 @@ pub fn parse_start_db_instance_error( }, "InvalidVPCNetworkStateFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::InvalidVPCNetworkStateFault({ + kind: crate::error::StartDBInstanceErrorKind::InvalidVpcNetworkStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_network_state_fault::Builder::default(); let _ = response; @@ -10669,7 +10669,7 @@ pub fn parse_start_db_instance_error( }, "KMSKeyNotAccessibleFault" => crate::error::StartDBInstanceError { meta: generic, - kind: crate::error::StartDBInstanceErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::StartDBInstanceErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -10688,7 +10688,7 @@ pub fn parse_start_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_start_db_instance_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::start_db_instance_output::Builder::default(); @@ -10704,7 +10704,7 @@ pub fn parse_start_db_instance_response( pub fn parse_start_db_instance_automated_backups_replication_error( response: &http::Response, ) -> std::result::Result< - crate::output::StartDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StartDbInstanceAutomatedBackupsReplicationOutput, crate::error::StartDBInstanceAutomatedBackupsReplicationError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -10718,25 +10718,25 @@ pub fn parse_start_db_instance_automated_backups_replication_error( } }; Err(match error_code { - "DBInstanceAutomatedBackupQuotaExceededFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceAutomatedBackupQuotaExceededFault({ + "DBInstanceAutomatedBackupQuotaExceededFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceAutomatedBackupQuotaExceededFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_automated_backup_quota_exceeded_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_automated_backup_quota_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StartDBInstanceAutomatedBackupsReplicationError::unhandled)?; output.build() })}, - "DBInstanceNotFoundFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault({ + "DBInstanceNotFoundFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StartDBInstanceAutomatedBackupsReplicationError::unhandled)?; output.build() })}, - "InvalidDBInstanceStateFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault({ + "InvalidDBInstanceStateFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StartDBInstanceAutomatedBackupsReplicationError::unhandled)?; output.build() })}, - "KMSKeyNotAccessibleFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::KMSKeyNotAccessibleFault({ + "KMSKeyNotAccessibleFault" => crate::error::StartDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StartDBInstanceAutomatedBackupsReplicationErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)]let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_kms_key_not_accessible_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StartDBInstanceAutomatedBackupsReplicationError::unhandled)?; @@ -10756,7 +10756,7 @@ pub fn parse_start_db_instance_automated_backups_replication_error( pub fn parse_start_db_instance_automated_backups_replication_response( response: &http::Response, ) -> std::result::Result< - crate::output::StartDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StartDbInstanceAutomatedBackupsReplicationOutput, crate::error::StartDBInstanceAutomatedBackupsReplicationError, > { Ok({ @@ -10788,7 +10788,7 @@ pub fn parse_start_export_task_error( "DBClusterSnapshotNotFoundFault" => { crate::error::StartExportTaskError { meta: generic, - kind: crate::error::StartExportTaskErrorKind::DBClusterSnapshotNotFoundFault({ + kind: crate::error::StartExportTaskErrorKind::DbClusterSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_snapshot_not_found_fault::Builder::default(); @@ -10800,7 +10800,7 @@ pub fn parse_start_export_task_error( } "DBSnapshotNotFoundFault" => crate::error::StartExportTaskError { meta: generic, - kind: crate::error::StartExportTaskErrorKind::DBSnapshotNotFoundFault({ + kind: crate::error::StartExportTaskErrorKind::DbSnapshotNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_not_found_fault::Builder::default(); let _ = response; @@ -10897,7 +10897,7 @@ pub fn parse_start_export_task_error( }, "KMSKeyNotAccessibleFault" => crate::error::StartExportTaskError { meta: generic, - kind: crate::error::StartExportTaskErrorKind::KMSKeyNotAccessibleFault({ + kind: crate::error::StartExportTaskErrorKind::KmsKeyNotAccessibleFault({ #[allow(unused_mut)] let mut output = crate::error::kms_key_not_accessible_fault::Builder::default(); let _ = response; @@ -10944,7 +10944,7 @@ pub fn parse_stop_activity_stream_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::StopActivityStreamError { meta: generic, - kind: crate::error::StopActivityStreamErrorKind::DBClusterNotFoundFault({ + kind: crate::error::StopActivityStreamErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -10958,7 +10958,7 @@ pub fn parse_stop_activity_stream_error( }, "DBInstanceNotFoundFault" => crate::error::StopActivityStreamError { meta: generic, - kind: crate::error::StopActivityStreamErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::StopActivityStreamErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -10972,7 +10972,7 @@ pub fn parse_stop_activity_stream_error( }, "InvalidDBClusterStateFault" => crate::error::StopActivityStreamError { meta: generic, - kind: crate::error::StopActivityStreamErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StopActivityStreamErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -10986,7 +10986,7 @@ pub fn parse_stop_activity_stream_error( }, "InvalidDBInstanceStateFault" => crate::error::StopActivityStreamError { meta: generic, - kind: crate::error::StopActivityStreamErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StopActivityStreamErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -11039,7 +11039,7 @@ pub fn parse_stop_activity_stream_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_stop_db_cluster_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::StopDBClusterError::unhandled)?; let error_code = match generic.code() { @@ -11049,7 +11049,7 @@ pub fn parse_stop_db_cluster_error( Err(match error_code { "DBClusterNotFoundFault" => crate::error::StopDBClusterError { meta: generic, - kind: crate::error::StopDBClusterErrorKind::DBClusterNotFoundFault({ + kind: crate::error::StopDBClusterErrorKind::DbClusterNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_cluster_not_found_fault::Builder::default(); let _ = response; @@ -11063,7 +11063,7 @@ pub fn parse_stop_db_cluster_error( }, "InvalidDBClusterStateFault" => crate::error::StopDBClusterError { meta: generic, - kind: crate::error::StopDBClusterErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StopDBClusterErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -11077,7 +11077,7 @@ pub fn parse_stop_db_cluster_error( }, "InvalidDBInstanceStateFault" => crate::error::StopDBClusterError { meta: generic, - kind: crate::error::StopDBClusterErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StopDBClusterErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -11096,7 +11096,7 @@ pub fn parse_stop_db_cluster_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_stop_db_cluster_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::stop_db_cluster_output::Builder::default(); @@ -11111,7 +11111,7 @@ pub fn parse_stop_db_cluster_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_stop_db_instance_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::StopDBInstanceError::unhandled)?; let error_code = match generic.code() { @@ -11121,7 +11121,7 @@ pub fn parse_stop_db_instance_error( Err(match error_code { "DBInstanceNotFoundFault" => crate::error::StopDBInstanceError { meta: generic, - kind: crate::error::StopDBInstanceErrorKind::DBInstanceNotFoundFault({ + kind: crate::error::StopDBInstanceErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)] let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; @@ -11135,7 +11135,7 @@ pub fn parse_stop_db_instance_error( }, "DBSnapshotAlreadyExistsFault" => crate::error::StopDBInstanceError { meta: generic, - kind: crate::error::StopDBInstanceErrorKind::DBSnapshotAlreadyExistsFault({ + kind: crate::error::StopDBInstanceErrorKind::DbSnapshotAlreadyExistsFault({ #[allow(unused_mut)] let mut output = crate::error::db_snapshot_already_exists_fault::Builder::default(); let _ = response; @@ -11150,7 +11150,7 @@ pub fn parse_stop_db_instance_error( }, "InvalidDBClusterStateFault" => crate::error::StopDBInstanceError { meta: generic, - kind: crate::error::StopDBInstanceErrorKind::InvalidDBClusterStateFault({ + kind: crate::error::StopDBInstanceErrorKind::InvalidDbClusterStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_cluster_state_fault::Builder::default(); let _ = response; @@ -11164,7 +11164,7 @@ pub fn parse_stop_db_instance_error( }, "InvalidDBInstanceStateFault" => crate::error::StopDBInstanceError { meta: generic, - kind: crate::error::StopDBInstanceErrorKind::InvalidDBInstanceStateFault({ + kind: crate::error::StopDBInstanceErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)] let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; @@ -11197,7 +11197,7 @@ pub fn parse_stop_db_instance_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_stop_db_instance_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::stop_db_instance_output::Builder::default(); @@ -11213,7 +11213,7 @@ pub fn parse_stop_db_instance_response( pub fn parse_stop_db_instance_automated_backups_replication_error( response: &http::Response, ) -> std::result::Result< - crate::output::StopDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StopDbInstanceAutomatedBackupsReplicationOutput, crate::error::StopDBInstanceAutomatedBackupsReplicationError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -11227,13 +11227,13 @@ pub fn parse_stop_db_instance_automated_backups_replication_error( } }; Err(match error_code { - "DBInstanceNotFoundFault" => crate::error::StopDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::DBInstanceNotFoundFault({ + "DBInstanceNotFoundFault" => crate::error::StopDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::DbInstanceNotFoundFault({ #[allow(unused_mut)]let mut output = crate::error::db_instance_not_found_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_db_instance_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StopDBInstanceAutomatedBackupsReplicationError::unhandled)?; output.build() })}, - "InvalidDBInstanceStateFault" => crate::error::StopDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDBInstanceStateFault({ + "InvalidDBInstanceStateFault" => crate::error::StopDBInstanceAutomatedBackupsReplicationError { meta: generic, kind: crate::error::StopDBInstanceAutomatedBackupsReplicationErrorKind::InvalidDbInstanceStateFault({ #[allow(unused_mut)]let mut output = crate::error::invalid_db_instance_state_fault::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_db_instance_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::StopDBInstanceAutomatedBackupsReplicationError::unhandled)?; @@ -11247,7 +11247,7 @@ pub fn parse_stop_db_instance_automated_backups_replication_error( pub fn parse_stop_db_instance_automated_backups_replication_response( response: &http::Response, ) -> std::result::Result< - crate::output::StopDBInstanceAutomatedBackupsReplicationOutput, + crate::output::StopDbInstanceAutomatedBackupsReplicationOutput, crate::error::StopDBInstanceAutomatedBackupsReplicationError, > { Ok({ diff --git a/sdk/rds/src/operation_ser.rs b/sdk/rds/src/operation_ser.rs index a635861cc6ed..3ee6172b6613 100644 --- a/sdk/rds/src/operation_ser.rs +++ b/sdk/rds/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_role_to_db_cluster( - input: &crate::input::AddRoleToDBClusterInput, -) -> Result { + input: &crate::input::AddRoleToDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddRoleToDBCluster", "2014-10-31"); @@ -25,8 +25,8 @@ pub fn serialize_operation_add_role_to_db_cluster( } pub fn serialize_operation_add_role_to_db_instance( - input: &crate::input::AddRoleToDBInstanceInput, -) -> Result { + input: &crate::input::AddRoleToDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddRoleToDBInstance", "2014-10-31"); @@ -51,7 +51,7 @@ pub fn serialize_operation_add_role_to_db_instance( pub fn serialize_operation_add_source_identifier_to_subscription( input: &crate::input::AddSourceIdentifierToSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -72,7 +72,7 @@ pub fn serialize_operation_add_source_identifier_to_subscription( pub fn serialize_operation_add_tags_to_resource( input: &crate::input::AddTagsToResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddTagsToResource", "2014-10-31"); @@ -98,7 +98,7 @@ pub fn serialize_operation_add_tags_to_resource( pub fn serialize_operation_apply_pending_maintenance_action( input: &crate::input::ApplyPendingMaintenanceActionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -123,8 +123,8 @@ pub fn serialize_operation_apply_pending_maintenance_action( } pub fn serialize_operation_authorize_db_security_group_ingress( - input: &crate::input::AuthorizeDBSecurityGroupIngressInput, -) -> Result { + input: &crate::input::AuthorizeDbSecurityGroupIngressInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -159,8 +159,8 @@ pub fn serialize_operation_authorize_db_security_group_ingress( } pub fn serialize_operation_backtrack_db_cluster( - input: &crate::input::BacktrackDBClusterInput, -) -> Result { + input: &crate::input::BacktrackDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "BacktrackDBCluster", "2014-10-31"); @@ -190,7 +190,7 @@ pub fn serialize_operation_backtrack_db_cluster( pub fn serialize_operation_cancel_export_task( input: &crate::input::CancelExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CancelExportTask", "2014-10-31"); @@ -204,8 +204,8 @@ pub fn serialize_operation_cancel_export_task( } pub fn serialize_operation_copy_db_cluster_parameter_group( - input: &crate::input::CopyDBClusterParameterGroupInput, -) -> Result { + input: &crate::input::CopyDbClusterParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -241,8 +241,8 @@ pub fn serialize_operation_copy_db_cluster_parameter_group( } pub fn serialize_operation_copy_db_cluster_snapshot( - input: &crate::input::CopyDBClusterSnapshotInput, -) -> Result { + input: &crate::input::CopyDbClusterSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -288,8 +288,8 @@ pub fn serialize_operation_copy_db_cluster_snapshot( } pub fn serialize_operation_copy_db_parameter_group( - input: &crate::input::CopyDBParameterGroupInput, -) -> Result { + input: &crate::input::CopyDbParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopyDBParameterGroup", "2014-10-31"); @@ -324,8 +324,8 @@ pub fn serialize_operation_copy_db_parameter_group( } pub fn serialize_operation_copy_db_snapshot( - input: &crate::input::CopyDBSnapshotInput, -) -> Result { + input: &crate::input::CopyDbSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopyDBSnapshot", "2014-10-31"); @@ -381,7 +381,7 @@ pub fn serialize_operation_copy_db_snapshot( pub fn serialize_operation_copy_option_group( input: &crate::input::CopyOptionGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CopyOptionGroup", "2014-10-31"); @@ -417,7 +417,7 @@ pub fn serialize_operation_copy_option_group( pub fn serialize_operation_create_custom_availability_zone( input: &crate::input::CreateCustomAvailabilityZoneInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -447,8 +447,8 @@ pub fn serialize_operation_create_custom_availability_zone( } pub fn serialize_operation_create_db_cluster( - input: &crate::input::CreateDBClusterInput, -) -> Result { + input: &crate::input::CreateDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDBCluster", "2014-10-31"); @@ -655,8 +655,8 @@ pub fn serialize_operation_create_db_cluster( } pub fn serialize_operation_create_db_cluster_endpoint( - input: &crate::input::CreateDBClusterEndpointInput, -) -> Result { + input: &crate::input::CreateDbClusterEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -714,8 +714,8 @@ pub fn serialize_operation_create_db_cluster_endpoint( } pub fn serialize_operation_create_db_cluster_parameter_group( - input: &crate::input::CreateDBClusterParameterGroupInput, -) -> Result { + input: &crate::input::CreateDbClusterParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -751,8 +751,8 @@ pub fn serialize_operation_create_db_cluster_parameter_group( } pub fn serialize_operation_create_db_cluster_snapshot( - input: &crate::input::CreateDBClusterSnapshotInput, -) -> Result { + input: &crate::input::CreateDbClusterSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -783,8 +783,8 @@ pub fn serialize_operation_create_db_cluster_snapshot( } pub fn serialize_operation_create_db_instance( - input: &crate::input::CreateDBInstanceInput, -) -> Result { + input: &crate::input::CreateDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDBInstance", "2014-10-31"); @@ -1087,8 +1087,8 @@ pub fn serialize_operation_create_db_instance( } pub fn serialize_operation_create_db_instance_read_replica( - input: &crate::input::CreateDBInstanceReadReplicaInput, -) -> Result { + input: &crate::input::CreateDbInstanceReadReplicaInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1297,8 +1297,8 @@ pub fn serialize_operation_create_db_instance_read_replica( } pub fn serialize_operation_create_db_parameter_group( - input: &crate::input::CreateDBParameterGroupInput, -) -> Result { + input: &crate::input::CreateDbParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1334,8 +1334,8 @@ pub fn serialize_operation_create_db_parameter_group( } pub fn serialize_operation_create_db_proxy( - input: &crate::input::CreateDBProxyInput, -) -> Result { + input: &crate::input::CreateDbProxyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDBProxy", "2014-10-31"); @@ -1421,8 +1421,8 @@ pub fn serialize_operation_create_db_proxy( } pub fn serialize_operation_create_db_proxy_endpoint( - input: &crate::input::CreateDBProxyEndpointInput, -) -> Result { + input: &crate::input::CreateDbProxyEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1480,8 +1480,8 @@ pub fn serialize_operation_create_db_proxy_endpoint( } pub fn serialize_operation_create_db_security_group( - input: &crate::input::CreateDBSecurityGroupInput, -) -> Result { + input: &crate::input::CreateDbSecurityGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1512,8 +1512,8 @@ pub fn serialize_operation_create_db_security_group( } pub fn serialize_operation_create_db_snapshot( - input: &crate::input::CreateDBSnapshotInput, -) -> Result { + input: &crate::input::CreateDbSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDBSnapshot", "2014-10-31"); @@ -1543,8 +1543,8 @@ pub fn serialize_operation_create_db_snapshot( } pub fn serialize_operation_create_db_subnet_group( - input: &crate::input::CreateDBSubnetGroupInput, -) -> Result { + input: &crate::input::CreateDbSubnetGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateDBSubnetGroup", "2014-10-31"); @@ -1586,7 +1586,7 @@ pub fn serialize_operation_create_db_subnet_group( pub fn serialize_operation_create_event_subscription( input: &crate::input::CreateEventSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1650,7 +1650,7 @@ pub fn serialize_operation_create_event_subscription( pub fn serialize_operation_create_global_cluster( input: &crate::input::CreateGlobalClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateGlobalCluster", "2014-10-31"); @@ -1695,7 +1695,7 @@ pub fn serialize_operation_create_global_cluster( pub fn serialize_operation_create_option_group( input: &crate::input::CreateOptionGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateOptionGroup", "2014-10-31"); @@ -1736,7 +1736,7 @@ pub fn serialize_operation_create_option_group( pub fn serialize_operation_delete_custom_availability_zone( input: &crate::input::DeleteCustomAvailabilityZoneInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1751,8 +1751,8 @@ pub fn serialize_operation_delete_custom_availability_zone( } pub fn serialize_operation_delete_db_cluster( - input: &crate::input::DeleteDBClusterInput, -) -> Result { + input: &crate::input::DeleteDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDBCluster", "2014-10-31"); @@ -1776,8 +1776,8 @@ pub fn serialize_operation_delete_db_cluster( } pub fn serialize_operation_delete_db_cluster_endpoint( - input: &crate::input::DeleteDBClusterEndpointInput, -) -> Result { + input: &crate::input::DeleteDbClusterEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1792,8 +1792,8 @@ pub fn serialize_operation_delete_db_cluster_endpoint( } pub fn serialize_operation_delete_db_cluster_parameter_group( - input: &crate::input::DeleteDBClusterParameterGroupInput, -) -> Result { + input: &crate::input::DeleteDbClusterParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1808,8 +1808,8 @@ pub fn serialize_operation_delete_db_cluster_parameter_group( } pub fn serialize_operation_delete_db_cluster_snapshot( - input: &crate::input::DeleteDBClusterSnapshotInput, -) -> Result { + input: &crate::input::DeleteDbClusterSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1824,8 +1824,8 @@ pub fn serialize_operation_delete_db_cluster_snapshot( } pub fn serialize_operation_delete_db_instance( - input: &crate::input::DeleteDBInstanceInput, -) -> Result { + input: &crate::input::DeleteDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDBInstance", "2014-10-31"); @@ -1854,8 +1854,8 @@ pub fn serialize_operation_delete_db_instance( } pub fn serialize_operation_delete_db_instance_automated_backup( - input: &crate::input::DeleteDBInstanceAutomatedBackupInput, -) -> Result { + input: &crate::input::DeleteDbInstanceAutomatedBackupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1875,8 +1875,8 @@ pub fn serialize_operation_delete_db_instance_automated_backup( } pub fn serialize_operation_delete_db_parameter_group( - input: &crate::input::DeleteDBParameterGroupInput, -) -> Result { + input: &crate::input::DeleteDbParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1891,8 +1891,8 @@ pub fn serialize_operation_delete_db_parameter_group( } pub fn serialize_operation_delete_db_proxy( - input: &crate::input::DeleteDBProxyInput, -) -> Result { + input: &crate::input::DeleteDbProxyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDBProxy", "2014-10-31"); @@ -1906,8 +1906,8 @@ pub fn serialize_operation_delete_db_proxy( } pub fn serialize_operation_delete_db_proxy_endpoint( - input: &crate::input::DeleteDBProxyEndpointInput, -) -> Result { + input: &crate::input::DeleteDbProxyEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1922,8 +1922,8 @@ pub fn serialize_operation_delete_db_proxy_endpoint( } pub fn serialize_operation_delete_db_security_group( - input: &crate::input::DeleteDBSecurityGroupInput, -) -> Result { + input: &crate::input::DeleteDbSecurityGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1938,8 +1938,8 @@ pub fn serialize_operation_delete_db_security_group( } pub fn serialize_operation_delete_db_snapshot( - input: &crate::input::DeleteDBSnapshotInput, -) -> Result { + input: &crate::input::DeleteDbSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDBSnapshot", "2014-10-31"); @@ -1953,8 +1953,8 @@ pub fn serialize_operation_delete_db_snapshot( } pub fn serialize_operation_delete_db_subnet_group( - input: &crate::input::DeleteDBSubnetGroupInput, -) -> Result { + input: &crate::input::DeleteDbSubnetGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteDBSubnetGroup", "2014-10-31"); @@ -1969,7 +1969,7 @@ pub fn serialize_operation_delete_db_subnet_group( pub fn serialize_operation_delete_event_subscription( input: &crate::input::DeleteEventSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -1985,7 +1985,7 @@ pub fn serialize_operation_delete_event_subscription( pub fn serialize_operation_delete_global_cluster( input: &crate::input::DeleteGlobalClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteGlobalCluster", "2014-10-31"); @@ -2000,7 +2000,7 @@ pub fn serialize_operation_delete_global_cluster( pub fn serialize_operation_delete_installation_media( input: &crate::input::DeleteInstallationMediaInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2016,7 +2016,7 @@ pub fn serialize_operation_delete_installation_media( pub fn serialize_operation_delete_option_group( input: &crate::input::DeleteOptionGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteOptionGroup", "2014-10-31"); @@ -2030,8 +2030,8 @@ pub fn serialize_operation_delete_option_group( } pub fn serialize_operation_deregister_db_proxy_targets( - input: &crate::input::DeregisterDBProxyTargetsInput, -) -> Result { + input: &crate::input::DeregisterDbProxyTargetsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2074,7 +2074,7 @@ pub fn serialize_operation_deregister_db_proxy_targets( pub fn serialize_operation_describe_account_attributes( input: &crate::input::DescribeAccountAttributesInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -2086,7 +2086,7 @@ pub fn serialize_operation_describe_account_attributes( pub fn serialize_operation_describe_certificates( input: &crate::input::DescribeCertificatesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeCertificates", "2014-10-31"); @@ -2125,7 +2125,7 @@ pub fn serialize_operation_describe_certificates( pub fn serialize_operation_describe_custom_availability_zones( input: &crate::input::DescribeCustomAvailabilityZonesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2164,8 +2164,8 @@ pub fn serialize_operation_describe_custom_availability_zones( } pub fn serialize_operation_describe_db_cluster_backtracks( - input: &crate::input::DescribeDBClusterBacktracksInput, -) -> Result { + input: &crate::input::DescribeDbClusterBacktracksInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2209,8 +2209,8 @@ pub fn serialize_operation_describe_db_cluster_backtracks( } pub fn serialize_operation_describe_db_cluster_endpoints( - input: &crate::input::DescribeDBClusterEndpointsInput, -) -> Result { + input: &crate::input::DescribeDbClusterEndpointsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2254,8 +2254,8 @@ pub fn serialize_operation_describe_db_cluster_endpoints( } pub fn serialize_operation_describe_db_cluster_parameter_groups( - input: &crate::input::DescribeDBClusterParameterGroupsInput, -) -> Result { + input: &crate::input::DescribeDbClusterParameterGroupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2294,8 +2294,8 @@ pub fn serialize_operation_describe_db_cluster_parameter_groups( } pub fn serialize_operation_describe_db_cluster_parameters( - input: &crate::input::DescribeDBClusterParametersInput, -) -> Result { + input: &crate::input::DescribeDbClusterParametersInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2339,8 +2339,8 @@ pub fn serialize_operation_describe_db_cluster_parameters( } pub fn serialize_operation_describe_db_clusters( - input: &crate::input::DescribeDBClustersInput, -) -> Result { + input: &crate::input::DescribeDbClustersInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBClusters", "2014-10-31"); @@ -2383,8 +2383,8 @@ pub fn serialize_operation_describe_db_clusters( } pub fn serialize_operation_describe_db_cluster_snapshot_attributes( - input: &crate::input::DescribeDBClusterSnapshotAttributesInput, -) -> Result { + input: &crate::input::DescribeDbClusterSnapshotAttributesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -2402,8 +2402,8 @@ pub fn serialize_operation_describe_db_cluster_snapshot_attributes( } pub fn serialize_operation_describe_db_cluster_snapshots( - input: &crate::input::DescribeDBClusterSnapshotsInput, -) -> Result { + input: &crate::input::DescribeDbClusterSnapshotsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2462,8 +2462,8 @@ pub fn serialize_operation_describe_db_cluster_snapshots( } pub fn serialize_operation_describe_db_engine_versions( - input: &crate::input::DescribeDBEngineVersionsInput, -) -> Result { + input: &crate::input::DescribeDbEngineVersionsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2532,8 +2532,8 @@ pub fn serialize_operation_describe_db_engine_versions( } pub fn serialize_operation_describe_db_instance_automated_backups( - input: &crate::input::DescribeDBInstanceAutomatedBackupsInput, -) -> Result { + input: &crate::input::DescribeDbInstanceAutomatedBackupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -2585,8 +2585,8 @@ pub fn serialize_operation_describe_db_instance_automated_backups( } pub fn serialize_operation_describe_db_instances( - input: &crate::input::DescribeDBInstancesInput, -) -> Result { + input: &crate::input::DescribeDbInstancesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBInstances", "2014-10-31"); @@ -2624,8 +2624,8 @@ pub fn serialize_operation_describe_db_instances( } pub fn serialize_operation_describe_db_log_files( - input: &crate::input::DescribeDBLogFilesInput, -) -> Result { + input: &crate::input::DescribeDbLogFilesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBLogFiles", "2014-10-31"); @@ -2684,8 +2684,8 @@ pub fn serialize_operation_describe_db_log_files( } pub fn serialize_operation_describe_db_parameter_groups( - input: &crate::input::DescribeDBParameterGroupsInput, -) -> Result { + input: &crate::input::DescribeDbParameterGroupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2724,8 +2724,8 @@ pub fn serialize_operation_describe_db_parameter_groups( } pub fn serialize_operation_describe_db_parameters( - input: &crate::input::DescribeDBParametersInput, -) -> Result { + input: &crate::input::DescribeDbParametersInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBParameters", "2014-10-31"); @@ -2768,8 +2768,8 @@ pub fn serialize_operation_describe_db_parameters( } pub fn serialize_operation_describe_db_proxies( - input: &crate::input::DescribeDBProxiesInput, -) -> Result { + input: &crate::input::DescribeDbProxiesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBProxies", "2014-10-31"); @@ -2807,8 +2807,8 @@ pub fn serialize_operation_describe_db_proxies( } pub fn serialize_operation_describe_db_proxy_endpoints( - input: &crate::input::DescribeDBProxyEndpointsInput, -) -> Result { + input: &crate::input::DescribeDbProxyEndpointsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2852,8 +2852,8 @@ pub fn serialize_operation_describe_db_proxy_endpoints( } pub fn serialize_operation_describe_db_proxy_target_groups( - input: &crate::input::DescribeDBProxyTargetGroupsInput, -) -> Result { + input: &crate::input::DescribeDbProxyTargetGroupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2897,8 +2897,8 @@ pub fn serialize_operation_describe_db_proxy_target_groups( } pub fn serialize_operation_describe_db_proxy_targets( - input: &crate::input::DescribeDBProxyTargetsInput, -) -> Result { + input: &crate::input::DescribeDbProxyTargetsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2942,8 +2942,8 @@ pub fn serialize_operation_describe_db_proxy_targets( } pub fn serialize_operation_describe_db_security_groups( - input: &crate::input::DescribeDBSecurityGroupsInput, -) -> Result { + input: &crate::input::DescribeDbSecurityGroupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2982,8 +2982,8 @@ pub fn serialize_operation_describe_db_security_groups( } pub fn serialize_operation_describe_db_snapshot_attributes( - input: &crate::input::DescribeDBSnapshotAttributesInput, -) -> Result { + input: &crate::input::DescribeDbSnapshotAttributesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -2998,8 +2998,8 @@ pub fn serialize_operation_describe_db_snapshot_attributes( } pub fn serialize_operation_describe_db_snapshots( - input: &crate::input::DescribeDBSnapshotsInput, -) -> Result { + input: &crate::input::DescribeDbSnapshotsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeDBSnapshots", "2014-10-31"); @@ -3062,8 +3062,8 @@ pub fn serialize_operation_describe_db_snapshots( } pub fn serialize_operation_describe_db_subnet_groups( - input: &crate::input::DescribeDBSubnetGroupsInput, -) -> Result { + input: &crate::input::DescribeDbSubnetGroupsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3103,7 +3103,7 @@ pub fn serialize_operation_describe_db_subnet_groups( pub fn serialize_operation_describe_engine_default_cluster_parameters( input: &crate::input::DescribeEngineDefaultClusterParametersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3146,7 +3146,7 @@ pub fn serialize_operation_describe_engine_default_cluster_parameters( pub fn serialize_operation_describe_engine_default_parameters( input: &crate::input::DescribeEngineDefaultParametersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3186,7 +3186,7 @@ pub fn serialize_operation_describe_engine_default_parameters( pub fn serialize_operation_describe_event_categories( input: &crate::input::DescribeEventCategoriesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3213,7 +3213,7 @@ pub fn serialize_operation_describe_event_categories( pub fn serialize_operation_describe_events( input: &crate::input::DescribeEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeEvents", "2014-10-31"); @@ -3286,7 +3286,7 @@ pub fn serialize_operation_describe_events( pub fn serialize_operation_describe_event_subscriptions( input: &crate::input::DescribeEventSubscriptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3326,7 +3326,7 @@ pub fn serialize_operation_describe_event_subscriptions( pub fn serialize_operation_describe_export_tasks( input: &crate::input::DescribeExportTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeExportTasks", "2014-10-31"); @@ -3370,7 +3370,7 @@ pub fn serialize_operation_describe_export_tasks( pub fn serialize_operation_describe_global_clusters( input: &crate::input::DescribeGlobalClustersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3410,7 +3410,7 @@ pub fn serialize_operation_describe_global_clusters( pub fn serialize_operation_describe_installation_media( input: &crate::input::DescribeInstallationMediaInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3450,7 +3450,7 @@ pub fn serialize_operation_describe_installation_media( pub fn serialize_operation_describe_option_group_options( input: &crate::input::DescribeOptionGroupOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3495,7 +3495,7 @@ pub fn serialize_operation_describe_option_group_options( pub fn serialize_operation_describe_option_groups( input: &crate::input::DescribeOptionGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DescribeOptionGroups", "2014-10-31"); @@ -3543,8 +3543,8 @@ pub fn serialize_operation_describe_option_groups( } pub fn serialize_operation_describe_orderable_db_instance_options( - input: &crate::input::DescribeOrderableDBInstanceOptionsInput, -) -> Result { + input: &crate::input::DescribeOrderableDbInstanceOptionsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3612,7 +3612,7 @@ pub fn serialize_operation_describe_orderable_db_instance_options( pub fn serialize_operation_describe_pending_maintenance_actions( input: &crate::input::DescribePendingMaintenanceActionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3651,8 +3651,8 @@ pub fn serialize_operation_describe_pending_maintenance_actions( } pub fn serialize_operation_describe_reserved_db_instances( - input: &crate::input::DescribeReservedDBInstancesInput, -) -> Result { + input: &crate::input::DescribeReservedDbInstancesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3726,8 +3726,8 @@ pub fn serialize_operation_describe_reserved_db_instances( } pub fn serialize_operation_describe_reserved_db_instances_offerings( - input: &crate::input::DescribeReservedDBInstancesOfferingsInput, -) -> Result { + input: &crate::input::DescribeReservedDbInstancesOfferingsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3795,7 +3795,7 @@ pub fn serialize_operation_describe_reserved_db_instances_offerings( pub fn serialize_operation_describe_source_regions( input: &crate::input::DescribeSourceRegionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3834,8 +3834,8 @@ pub fn serialize_operation_describe_source_regions( } pub fn serialize_operation_describe_valid_db_instance_modifications( - input: &crate::input::DescribeValidDBInstanceModificationsInput, -) -> Result { + input: &crate::input::DescribeValidDbInstanceModificationsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -3853,8 +3853,8 @@ pub fn serialize_operation_describe_valid_db_instance_modifications( } pub fn serialize_operation_download_db_log_file_portion( - input: &crate::input::DownloadDBLogFilePortionInput, -) -> Result { + input: &crate::input::DownloadDbLogFilePortionInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3887,8 +3887,8 @@ pub fn serialize_operation_download_db_log_file_portion( } pub fn serialize_operation_failover_db_cluster( - input: &crate::input::FailoverDBClusterInput, -) -> Result { + input: &crate::input::FailoverDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "FailoverDBCluster", "2014-10-31"); @@ -3908,7 +3908,7 @@ pub fn serialize_operation_failover_db_cluster( pub fn serialize_operation_failover_global_cluster( input: &crate::input::FailoverGlobalClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3929,7 +3929,7 @@ pub fn serialize_operation_failover_global_cluster( pub fn serialize_operation_import_installation_media( input: &crate::input::ImportInstallationMediaInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -3965,7 +3965,7 @@ pub fn serialize_operation_import_installation_media( pub fn serialize_operation_list_tags_for_resource( input: &crate::input::ListTagsForResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTagsForResource", "2014-10-31"); @@ -3991,7 +3991,7 @@ pub fn serialize_operation_list_tags_for_resource( pub fn serialize_operation_modify_certificates( input: &crate::input::ModifyCertificatesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyCertificates", "2014-10-31"); @@ -4010,8 +4010,8 @@ pub fn serialize_operation_modify_certificates( } pub fn serialize_operation_modify_current_db_cluster_capacity( - input: &crate::input::ModifyCurrentDBClusterCapacityInput, -) -> Result { + input: &crate::input::ModifyCurrentDbClusterCapacityInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4047,8 +4047,8 @@ pub fn serialize_operation_modify_current_db_cluster_capacity( } pub fn serialize_operation_modify_db_cluster( - input: &crate::input::ModifyDBClusterInput, -) -> Result { + input: &crate::input::ModifyDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyDBCluster", "2014-10-31"); @@ -4194,8 +4194,8 @@ pub fn serialize_operation_modify_db_cluster( } pub fn serialize_operation_modify_db_cluster_endpoint( - input: &crate::input::ModifyDBClusterEndpointInput, -) -> Result { + input: &crate::input::ModifyDbClusterEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4237,8 +4237,8 @@ pub fn serialize_operation_modify_db_cluster_endpoint( } pub fn serialize_operation_modify_db_cluster_parameter_group( - input: &crate::input::ModifyDBClusterParameterGroupInput, -) -> Result { + input: &crate::input::ModifyDbClusterParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4264,8 +4264,8 @@ pub fn serialize_operation_modify_db_cluster_parameter_group( } pub fn serialize_operation_modify_db_cluster_snapshot_attribute( - input: &crate::input::ModifyDBClusterSnapshotAttributeInput, -) -> Result { + input: &crate::input::ModifyDbClusterSnapshotAttributeInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4307,8 +4307,8 @@ pub fn serialize_operation_modify_db_cluster_snapshot_attribute( } pub fn serialize_operation_modify_db_instance( - input: &crate::input::ModifyDBInstanceInput, -) -> Result { + input: &crate::input::ModifyDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyDBInstance", "2014-10-31"); @@ -4586,8 +4586,8 @@ pub fn serialize_operation_modify_db_instance( } pub fn serialize_operation_modify_db_parameter_group( - input: &crate::input::ModifyDBParameterGroupInput, -) -> Result { + input: &crate::input::ModifyDbParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4613,8 +4613,8 @@ pub fn serialize_operation_modify_db_parameter_group( } pub fn serialize_operation_modify_db_proxy( - input: &crate::input::ModifyDBProxyInput, -) -> Result { + input: &crate::input::ModifyDbProxyInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyDBProxy", "2014-10-31"); @@ -4678,8 +4678,8 @@ pub fn serialize_operation_modify_db_proxy( } pub fn serialize_operation_modify_db_proxy_endpoint( - input: &crate::input::ModifyDBProxyEndpointInput, -) -> Result { + input: &crate::input::ModifyDbProxyEndpointInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4710,8 +4710,8 @@ pub fn serialize_operation_modify_db_proxy_endpoint( } pub fn serialize_operation_modify_db_proxy_target_group( - input: &crate::input::ModifyDBProxyTargetGroupInput, -) -> Result { + input: &crate::input::ModifyDbProxyTargetGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4741,8 +4741,8 @@ pub fn serialize_operation_modify_db_proxy_target_group( } pub fn serialize_operation_modify_db_snapshot( - input: &crate::input::ModifyDBSnapshotInput, -) -> Result { + input: &crate::input::ModifyDbSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyDBSnapshot", "2014-10-31"); @@ -4766,8 +4766,8 @@ pub fn serialize_operation_modify_db_snapshot( } pub fn serialize_operation_modify_db_snapshot_attribute( - input: &crate::input::ModifyDBSnapshotAttributeInput, -) -> Result { + input: &crate::input::ModifyDbSnapshotAttributeInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4809,8 +4809,8 @@ pub fn serialize_operation_modify_db_snapshot_attribute( } pub fn serialize_operation_modify_db_subnet_group( - input: &crate::input::ModifyDBSubnetGroupInput, -) -> Result { + input: &crate::input::ModifyDbSubnetGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyDBSubnetGroup", "2014-10-31"); @@ -4841,7 +4841,7 @@ pub fn serialize_operation_modify_db_subnet_group( pub fn serialize_operation_modify_event_subscription( input: &crate::input::ModifyEventSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -4883,7 +4883,7 @@ pub fn serialize_operation_modify_event_subscription( pub fn serialize_operation_modify_global_cluster( input: &crate::input::ModifyGlobalClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyGlobalCluster", "2014-10-31"); @@ -4918,7 +4918,7 @@ pub fn serialize_operation_modify_global_cluster( pub fn serialize_operation_modify_option_group( input: &crate::input::ModifyOptionGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ModifyOptionGroup", "2014-10-31"); @@ -4960,7 +4960,7 @@ pub fn serialize_operation_modify_option_group( pub fn serialize_operation_promote_read_replica( input: &crate::input::PromoteReadReplicaInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "PromoteReadReplica", "2014-10-31"); @@ -4987,8 +4987,8 @@ pub fn serialize_operation_promote_read_replica( } pub fn serialize_operation_promote_read_replica_db_cluster( - input: &crate::input::PromoteReadReplicaDBClusterInput, -) -> Result { + input: &crate::input::PromoteReadReplicaDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5003,8 +5003,8 @@ pub fn serialize_operation_promote_read_replica_db_cluster( } pub fn serialize_operation_purchase_reserved_db_instances_offering( - input: &crate::input::PurchaseReservedDBInstancesOfferingInput, -) -> Result { + input: &crate::input::PurchaseReservedDbInstancesOfferingInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5046,8 +5046,8 @@ pub fn serialize_operation_purchase_reserved_db_instances_offering( } pub fn serialize_operation_reboot_db_instance( - input: &crate::input::RebootDBInstanceInput, -) -> Result { + input: &crate::input::RebootDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RebootDBInstance", "2014-10-31"); @@ -5066,8 +5066,8 @@ pub fn serialize_operation_reboot_db_instance( } pub fn serialize_operation_register_db_proxy_targets( - input: &crate::input::RegisterDBProxyTargetsInput, -) -> Result { + input: &crate::input::RegisterDbProxyTargetsInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5110,7 +5110,7 @@ pub fn serialize_operation_register_db_proxy_targets( pub fn serialize_operation_remove_from_global_cluster( input: &crate::input::RemoveFromGlobalClusterInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5130,8 +5130,8 @@ pub fn serialize_operation_remove_from_global_cluster( } pub fn serialize_operation_remove_role_from_db_cluster( - input: &crate::input::RemoveRoleFromDBClusterInput, -) -> Result { + input: &crate::input::RemoveRoleFromDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5156,8 +5156,8 @@ pub fn serialize_operation_remove_role_from_db_cluster( } pub fn serialize_operation_remove_role_from_db_instance( - input: &crate::input::RemoveRoleFromDBInstanceInput, -) -> Result { + input: &crate::input::RemoveRoleFromDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5183,7 +5183,7 @@ pub fn serialize_operation_remove_role_from_db_instance( pub fn serialize_operation_remove_source_identifier_from_subscription( input: &crate::input::RemoveSourceIdentifierFromSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -5207,7 +5207,7 @@ pub fn serialize_operation_remove_source_identifier_from_subscription( pub fn serialize_operation_remove_tags_from_resource( input: &crate::input::RemoveTagsFromResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5233,8 +5233,8 @@ pub fn serialize_operation_remove_tags_from_resource( } pub fn serialize_operation_reset_db_cluster_parameter_group( - input: &crate::input::ResetDBClusterParameterGroupInput, -) -> Result { + input: &crate::input::ResetDbClusterParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5265,8 +5265,8 @@ pub fn serialize_operation_reset_db_cluster_parameter_group( } pub fn serialize_operation_reset_db_parameter_group( - input: &crate::input::ResetDBParameterGroupInput, -) -> Result { + input: &crate::input::ResetDbParameterGroupInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5297,8 +5297,8 @@ pub fn serialize_operation_reset_db_parameter_group( } pub fn serialize_operation_restore_db_cluster_from_s3( - input: &crate::input::RestoreDBClusterFromS3Input, -) -> Result { + input: &crate::input::RestoreDbClusterFromS3Input, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5496,8 +5496,8 @@ pub fn serialize_operation_restore_db_cluster_from_s3( } pub fn serialize_operation_restore_db_cluster_from_snapshot( - input: &crate::input::RestoreDBClusterFromSnapshotInput, -) -> Result { + input: &crate::input::RestoreDbClusterFromSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5647,8 +5647,8 @@ pub fn serialize_operation_restore_db_cluster_from_snapshot( } pub fn serialize_operation_restore_db_cluster_to_point_in_time( - input: &crate::input::RestoreDBClusterToPointInTimeInput, -) -> Result { + input: &crate::input::RestoreDbClusterToPointInTimeInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5777,8 +5777,8 @@ pub fn serialize_operation_restore_db_cluster_to_point_in_time( } pub fn serialize_operation_restore_db_instance_from_db_snapshot( - input: &crate::input::RestoreDBInstanceFromDBSnapshotInput, -) -> Result { + input: &crate::input::RestoreDbInstanceFromDbSnapshotInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -5963,8 +5963,8 @@ pub fn serialize_operation_restore_db_instance_from_db_snapshot( } pub fn serialize_operation_restore_db_instance_from_s3( - input: &crate::input::RestoreDBInstanceFromS3Input, -) -> Result { + input: &crate::input::RestoreDbInstanceFromS3Input, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6245,8 +6245,8 @@ pub fn serialize_operation_restore_db_instance_from_s3( } pub fn serialize_operation_restore_db_instance_to_point_in_time( - input: &crate::input::RestoreDBInstanceToPointInTimeInput, -) -> Result { + input: &crate::input::RestoreDbInstanceToPointInTimeInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6459,8 +6459,8 @@ pub fn serialize_operation_restore_db_instance_to_point_in_time( } pub fn serialize_operation_revoke_db_security_group_ingress( - input: &crate::input::RevokeDBSecurityGroupIngressInput, -) -> Result { + input: &crate::input::RevokeDbSecurityGroupIngressInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -6496,7 +6496,7 @@ pub fn serialize_operation_revoke_db_security_group_ingress( pub fn serialize_operation_start_activity_stream( input: &crate::input::StartActivityStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StartActivityStream", "2014-10-31"); @@ -6525,8 +6525,8 @@ pub fn serialize_operation_start_activity_stream( } pub fn serialize_operation_start_db_cluster( - input: &crate::input::StartDBClusterInput, -) -> Result { + input: &crate::input::StartDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StartDBCluster", "2014-10-31"); @@ -6540,8 +6540,8 @@ pub fn serialize_operation_start_db_cluster( } pub fn serialize_operation_start_db_instance( - input: &crate::input::StartDBInstanceInput, -) -> Result { + input: &crate::input::StartDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StartDBInstance", "2014-10-31"); @@ -6555,8 +6555,8 @@ pub fn serialize_operation_start_db_instance( } pub fn serialize_operation_start_db_instance_automated_backups_replication( - input: &crate::input::StartDBInstanceAutomatedBackupsReplicationInput, -) -> Result { + input: &crate::input::StartDbInstanceAutomatedBackupsReplicationInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -6593,7 +6593,7 @@ pub fn serialize_operation_start_db_instance_automated_backups_replication( pub fn serialize_operation_start_export_task( input: &crate::input::StartExportTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StartExportTask", "2014-10-31"); @@ -6644,7 +6644,7 @@ pub fn serialize_operation_start_export_task( pub fn serialize_operation_stop_activity_stream( input: &crate::input::StopActivityStreamInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StopActivityStream", "2014-10-31"); @@ -6663,8 +6663,8 @@ pub fn serialize_operation_stop_activity_stream( } pub fn serialize_operation_stop_db_cluster( - input: &crate::input::StopDBClusterInput, -) -> Result { + input: &crate::input::StopDbClusterInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StopDBCluster", "2014-10-31"); @@ -6678,8 +6678,8 @@ pub fn serialize_operation_stop_db_cluster( } pub fn serialize_operation_stop_db_instance( - input: &crate::input::StopDBInstanceInput, -) -> Result { + input: &crate::input::StopDbInstanceInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "StopDBInstance", "2014-10-31"); @@ -6698,8 +6698,8 @@ pub fn serialize_operation_stop_db_instance( } pub fn serialize_operation_stop_db_instance_automated_backups_replication( - input: &crate::input::StopDBInstanceAutomatedBackupsReplicationInput, -) -> Result { + input: &crate::input::StopDbInstanceAutomatedBackupsReplicationInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( diff --git a/sdk/rds/src/output.rs b/sdk/rds/src/output.rs index d644b0729555..d54143e820b9 100644 --- a/sdk/rds/src/output.rs +++ b/sdk/rds/src/output.rs @@ -1,14 +1,14 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBInstanceAutomatedBackupsReplicationOutput { +pub struct StopDbInstanceAutomatedBackupsReplicationOutput { ///

                                    An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                    - pub db_instance_automated_backup: std::option::Option, + pub db_instance_automated_backup: std::option::Option, } -impl std::fmt::Debug for StopDBInstanceAutomatedBackupsReplicationOutput { +impl std::fmt::Debug for StopDbInstanceAutomatedBackupsReplicationOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBInstanceAutomatedBackupsReplicationOutput"); + let mut formatter = f.debug_struct("StopDbInstanceAutomatedBackupsReplicationOutput"); formatter.field( "db_instance_automated_backup", &self.db_instance_automated_backup, @@ -16,42 +16,42 @@ impl std::fmt::Debug for StopDBInstanceAutomatedBackupsReplicationOutput { formatter.finish() } } -/// See [`StopDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDBInstanceAutomatedBackupsReplicationOutput) +/// See [`StopDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDbInstanceAutomatedBackupsReplicationOutput) pub mod stop_db_instance_automated_backups_replication_output { - /// A builder for [`StopDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDBInstanceAutomatedBackupsReplicationOutput) + /// A builder for [`StopDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDbInstanceAutomatedBackupsReplicationOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_instance_automated_backup: - std::option::Option, + std::option::Option, } impl Builder { ///

                                    An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                    pub fn db_instance_automated_backup( mut self, - input: crate::model::DBInstanceAutomatedBackup, + input: crate::model::DbInstanceAutomatedBackup, ) -> Self { self.db_instance_automated_backup = Some(input); self } pub fn set_db_instance_automated_backup( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance_automated_backup = input; self } - /// Consumes the builder and constructs a [`StopDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDBInstanceAutomatedBackupsReplicationOutput) - pub fn build(self) -> crate::output::StopDBInstanceAutomatedBackupsReplicationOutput { - crate::output::StopDBInstanceAutomatedBackupsReplicationOutput { + /// Consumes the builder and constructs a [`StopDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDbInstanceAutomatedBackupsReplicationOutput) + pub fn build(self) -> crate::output::StopDbInstanceAutomatedBackupsReplicationOutput { + crate::output::StopDbInstanceAutomatedBackupsReplicationOutput { db_instance_automated_backup: self.db_instance_automated_backup, } } } } -impl StopDBInstanceAutomatedBackupsReplicationOutput { - /// Creates a new builder-style object to manufacture [`StopDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDBInstanceAutomatedBackupsReplicationOutput) +impl StopDbInstanceAutomatedBackupsReplicationOutput { + /// Creates a new builder-style object to manufacture [`StopDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StopDbInstanceAutomatedBackupsReplicationOutput) pub fn builder() -> crate::output::stop_db_instance_automated_backups_replication_output::Builder { crate::output::stop_db_instance_automated_backups_replication_output::Builder::default() @@ -60,54 +60,54 @@ impl StopDBInstanceAutomatedBackupsReplicationOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBInstanceOutput { +pub struct StopDbInstanceOutput { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for StopDBInstanceOutput { +impl std::fmt::Debug for StopDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBInstanceOutput"); + let mut formatter = f.debug_struct("StopDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`StopDBInstanceOutput`](crate::output::StopDBInstanceOutput) +/// See [`StopDbInstanceOutput`](crate::output::StopDbInstanceOutput) pub mod stop_db_instance_output { - /// A builder for [`StopDBInstanceOutput`](crate::output::StopDBInstanceOutput) + /// A builder for [`StopDbInstanceOutput`](crate::output::StopDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`StopDBInstanceOutput`](crate::output::StopDBInstanceOutput) - pub fn build(self) -> crate::output::StopDBInstanceOutput { - crate::output::StopDBInstanceOutput { + /// Consumes the builder and constructs a [`StopDbInstanceOutput`](crate::output::StopDbInstanceOutput) + pub fn build(self) -> crate::output::StopDbInstanceOutput { + crate::output::StopDbInstanceOutput { db_instance: self.db_instance, } } } } -impl StopDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`StopDBInstanceOutput`](crate::output::StopDBInstanceOutput) +impl StopDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`StopDbInstanceOutput`](crate::output::StopDbInstanceOutput) pub fn builder() -> crate::output::stop_db_instance_output::Builder { crate::output::stop_db_instance_output::Builder::default() } @@ -115,28 +115,28 @@ impl StopDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopDBClusterOutput { +pub struct StopDbClusterOutput { ///

                                    Contains the details of an Amazon Aurora DB cluster. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for StopDBClusterOutput { +impl std::fmt::Debug for StopDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopDBClusterOutput"); + let mut formatter = f.debug_struct("StopDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`StopDBClusterOutput`](crate::output::StopDBClusterOutput) +/// See [`StopDbClusterOutput`](crate::output::StopDbClusterOutput) pub mod stop_db_cluster_output { - /// A builder for [`StopDBClusterOutput`](crate::output::StopDBClusterOutput) + /// A builder for [`StopDbClusterOutput`](crate::output::StopDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon Aurora DB cluster. @@ -144,27 +144,27 @@ pub mod stop_db_cluster_output { ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`StopDBClusterOutput`](crate::output::StopDBClusterOutput) - pub fn build(self) -> crate::output::StopDBClusterOutput { - crate::output::StopDBClusterOutput { + /// Consumes the builder and constructs a [`StopDbClusterOutput`](crate::output::StopDbClusterOutput) + pub fn build(self) -> crate::output::StopDbClusterOutput { + crate::output::StopDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl StopDBClusterOutput { - /// Creates a new builder-style object to manufacture [`StopDBClusterOutput`](crate::output::StopDBClusterOutput) +impl StopDbClusterOutput { + /// Creates a new builder-style object to manufacture [`StopDbClusterOutput`](crate::output::StopDbClusterOutput) pub fn builder() -> crate::output::stop_db_cluster_output::Builder { crate::output::stop_db_cluster_output::Builder::default() } @@ -555,14 +555,14 @@ impl StartExportTaskOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBInstanceAutomatedBackupsReplicationOutput { +pub struct StartDbInstanceAutomatedBackupsReplicationOutput { ///

                                    An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                    - pub db_instance_automated_backup: std::option::Option, + pub db_instance_automated_backup: std::option::Option, } -impl std::fmt::Debug for StartDBInstanceAutomatedBackupsReplicationOutput { +impl std::fmt::Debug for StartDbInstanceAutomatedBackupsReplicationOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBInstanceAutomatedBackupsReplicationOutput"); + let mut formatter = f.debug_struct("StartDbInstanceAutomatedBackupsReplicationOutput"); formatter.field( "db_instance_automated_backup", &self.db_instance_automated_backup, @@ -570,42 +570,42 @@ impl std::fmt::Debug for StartDBInstanceAutomatedBackupsReplicationOutput { formatter.finish() } } -/// See [`StartDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDBInstanceAutomatedBackupsReplicationOutput) +/// See [`StartDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDbInstanceAutomatedBackupsReplicationOutput) pub mod start_db_instance_automated_backups_replication_output { - /// A builder for [`StartDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDBInstanceAutomatedBackupsReplicationOutput) + /// A builder for [`StartDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDbInstanceAutomatedBackupsReplicationOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_instance_automated_backup: - std::option::Option, + std::option::Option, } impl Builder { ///

                                    An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                    pub fn db_instance_automated_backup( mut self, - input: crate::model::DBInstanceAutomatedBackup, + input: crate::model::DbInstanceAutomatedBackup, ) -> Self { self.db_instance_automated_backup = Some(input); self } pub fn set_db_instance_automated_backup( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance_automated_backup = input; self } - /// Consumes the builder and constructs a [`StartDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDBInstanceAutomatedBackupsReplicationOutput) - pub fn build(self) -> crate::output::StartDBInstanceAutomatedBackupsReplicationOutput { - crate::output::StartDBInstanceAutomatedBackupsReplicationOutput { + /// Consumes the builder and constructs a [`StartDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDbInstanceAutomatedBackupsReplicationOutput) + pub fn build(self) -> crate::output::StartDbInstanceAutomatedBackupsReplicationOutput { + crate::output::StartDbInstanceAutomatedBackupsReplicationOutput { db_instance_automated_backup: self.db_instance_automated_backup, } } } } -impl StartDBInstanceAutomatedBackupsReplicationOutput { - /// Creates a new builder-style object to manufacture [`StartDBInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDBInstanceAutomatedBackupsReplicationOutput) +impl StartDbInstanceAutomatedBackupsReplicationOutput { + /// Creates a new builder-style object to manufacture [`StartDbInstanceAutomatedBackupsReplicationOutput`](crate::output::StartDbInstanceAutomatedBackupsReplicationOutput) pub fn builder( ) -> crate::output::start_db_instance_automated_backups_replication_output::Builder { crate::output::start_db_instance_automated_backups_replication_output::Builder::default() @@ -614,54 +614,54 @@ impl StartDBInstanceAutomatedBackupsReplicationOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBInstanceOutput { +pub struct StartDbInstanceOutput { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for StartDBInstanceOutput { +impl std::fmt::Debug for StartDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBInstanceOutput"); + let mut formatter = f.debug_struct("StartDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`StartDBInstanceOutput`](crate::output::StartDBInstanceOutput) +/// See [`StartDbInstanceOutput`](crate::output::StartDbInstanceOutput) pub mod start_db_instance_output { - /// A builder for [`StartDBInstanceOutput`](crate::output::StartDBInstanceOutput) + /// A builder for [`StartDbInstanceOutput`](crate::output::StartDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`StartDBInstanceOutput`](crate::output::StartDBInstanceOutput) - pub fn build(self) -> crate::output::StartDBInstanceOutput { - crate::output::StartDBInstanceOutput { + /// Consumes the builder and constructs a [`StartDbInstanceOutput`](crate::output::StartDbInstanceOutput) + pub fn build(self) -> crate::output::StartDbInstanceOutput { + crate::output::StartDbInstanceOutput { db_instance: self.db_instance, } } } } -impl StartDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`StartDBInstanceOutput`](crate::output::StartDBInstanceOutput) +impl StartDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`StartDbInstanceOutput`](crate::output::StartDbInstanceOutput) pub fn builder() -> crate::output::start_db_instance_output::Builder { crate::output::start_db_instance_output::Builder::default() } @@ -669,28 +669,28 @@ impl StartDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartDBClusterOutput { +pub struct StartDbClusterOutput { ///

                                    Contains the details of an Amazon Aurora DB cluster. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for StartDBClusterOutput { +impl std::fmt::Debug for StartDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartDBClusterOutput"); + let mut formatter = f.debug_struct("StartDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`StartDBClusterOutput`](crate::output::StartDBClusterOutput) +/// See [`StartDbClusterOutput`](crate::output::StartDbClusterOutput) pub mod start_db_cluster_output { - /// A builder for [`StartDBClusterOutput`](crate::output::StartDBClusterOutput) + /// A builder for [`StartDbClusterOutput`](crate::output::StartDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon Aurora DB cluster. @@ -698,27 +698,27 @@ pub mod start_db_cluster_output { ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`StartDBClusterOutput`](crate::output::StartDBClusterOutput) - pub fn build(self) -> crate::output::StartDBClusterOutput { - crate::output::StartDBClusterOutput { + /// Consumes the builder and constructs a [`StartDbClusterOutput`](crate::output::StartDbClusterOutput) + pub fn build(self) -> crate::output::StartDbClusterOutput { + crate::output::StartDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl StartDBClusterOutput { - /// Creates a new builder-style object to manufacture [`StartDBClusterOutput`](crate::output::StartDBClusterOutput) +impl StartDbClusterOutput { + /// Creates a new builder-style object to manufacture [`StartDbClusterOutput`](crate::output::StartDbClusterOutput) pub fn builder() -> crate::output::start_db_cluster_output::Builder { crate::output::start_db_cluster_output::Builder::default() } @@ -839,28 +839,28 @@ impl StartActivityStreamOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RevokeDBSecurityGroupIngressOutput { +pub struct RevokeDbSecurityGroupIngressOutput { ///

                                    Contains the details for an Amazon RDS DB security group. ///

                                    ///

                                    This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                    - pub db_security_group: std::option::Option, + pub db_security_group: std::option::Option, } -impl std::fmt::Debug for RevokeDBSecurityGroupIngressOutput { +impl std::fmt::Debug for RevokeDbSecurityGroupIngressOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RevokeDBSecurityGroupIngressOutput"); + let mut formatter = f.debug_struct("RevokeDbSecurityGroupIngressOutput"); formatter.field("db_security_group", &self.db_security_group); formatter.finish() } } -/// See [`RevokeDBSecurityGroupIngressOutput`](crate::output::RevokeDBSecurityGroupIngressOutput) +/// See [`RevokeDbSecurityGroupIngressOutput`](crate::output::RevokeDbSecurityGroupIngressOutput) pub mod revoke_db_security_group_ingress_output { - /// A builder for [`RevokeDBSecurityGroupIngressOutput`](crate::output::RevokeDBSecurityGroupIngressOutput) + /// A builder for [`RevokeDbSecurityGroupIngressOutput`](crate::output::RevokeDbSecurityGroupIngressOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_security_group: std::option::Option, + pub(crate) db_security_group: std::option::Option, } impl Builder { ///

                                    Contains the details for an Amazon RDS DB security group. @@ -868,27 +868,27 @@ pub mod revoke_db_security_group_ingress_output { ///

                                    This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                    - pub fn db_security_group(mut self, input: crate::model::DBSecurityGroup) -> Self { + pub fn db_security_group(mut self, input: crate::model::DbSecurityGroup) -> Self { self.db_security_group = Some(input); self } pub fn set_db_security_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_security_group = input; self } - /// Consumes the builder and constructs a [`RevokeDBSecurityGroupIngressOutput`](crate::output::RevokeDBSecurityGroupIngressOutput) - pub fn build(self) -> crate::output::RevokeDBSecurityGroupIngressOutput { - crate::output::RevokeDBSecurityGroupIngressOutput { + /// Consumes the builder and constructs a [`RevokeDbSecurityGroupIngressOutput`](crate::output::RevokeDbSecurityGroupIngressOutput) + pub fn build(self) -> crate::output::RevokeDbSecurityGroupIngressOutput { + crate::output::RevokeDbSecurityGroupIngressOutput { db_security_group: self.db_security_group, } } } } -impl RevokeDBSecurityGroupIngressOutput { - /// Creates a new builder-style object to manufacture [`RevokeDBSecurityGroupIngressOutput`](crate::output::RevokeDBSecurityGroupIngressOutput) +impl RevokeDbSecurityGroupIngressOutput { + /// Creates a new builder-style object to manufacture [`RevokeDbSecurityGroupIngressOutput`](crate::output::RevokeDbSecurityGroupIngressOutput) pub fn builder() -> crate::output::revoke_db_security_group_ingress_output::Builder { crate::output::revoke_db_security_group_ingress_output::Builder::default() } @@ -896,54 +896,54 @@ impl RevokeDBSecurityGroupIngressOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceToPointInTimeOutput { +pub struct RestoreDbInstanceToPointInTimeOutput { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceToPointInTimeOutput { +impl std::fmt::Debug for RestoreDbInstanceToPointInTimeOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceToPointInTimeOutput"); + let mut formatter = f.debug_struct("RestoreDbInstanceToPointInTimeOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`RestoreDBInstanceToPointInTimeOutput`](crate::output::RestoreDBInstanceToPointInTimeOutput) +/// See [`RestoreDbInstanceToPointInTimeOutput`](crate::output::RestoreDbInstanceToPointInTimeOutput) pub mod restore_db_instance_to_point_in_time_output { - /// A builder for [`RestoreDBInstanceToPointInTimeOutput`](crate::output::RestoreDBInstanceToPointInTimeOutput) + /// A builder for [`RestoreDbInstanceToPointInTimeOutput`](crate::output::RestoreDbInstanceToPointInTimeOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceToPointInTimeOutput`](crate::output::RestoreDBInstanceToPointInTimeOutput) - pub fn build(self) -> crate::output::RestoreDBInstanceToPointInTimeOutput { - crate::output::RestoreDBInstanceToPointInTimeOutput { + /// Consumes the builder and constructs a [`RestoreDbInstanceToPointInTimeOutput`](crate::output::RestoreDbInstanceToPointInTimeOutput) + pub fn build(self) -> crate::output::RestoreDbInstanceToPointInTimeOutput { + crate::output::RestoreDbInstanceToPointInTimeOutput { db_instance: self.db_instance, } } } } -impl RestoreDBInstanceToPointInTimeOutput { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceToPointInTimeOutput`](crate::output::RestoreDBInstanceToPointInTimeOutput) +impl RestoreDbInstanceToPointInTimeOutput { + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceToPointInTimeOutput`](crate::output::RestoreDbInstanceToPointInTimeOutput) pub fn builder() -> crate::output::restore_db_instance_to_point_in_time_output::Builder { crate::output::restore_db_instance_to_point_in_time_output::Builder::default() } @@ -951,54 +951,54 @@ impl RestoreDBInstanceToPointInTimeOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceFromS3Output { +pub struct RestoreDbInstanceFromS3Output { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceFromS3Output { +impl std::fmt::Debug for RestoreDbInstanceFromS3Output { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceFromS3Output"); + let mut formatter = f.debug_struct("RestoreDbInstanceFromS3Output"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`RestoreDBInstanceFromS3Output`](crate::output::RestoreDBInstanceFromS3Output) +/// See [`RestoreDbInstanceFromS3Output`](crate::output::RestoreDbInstanceFromS3Output) pub mod restore_db_instance_from_s3_output { - /// A builder for [`RestoreDBInstanceFromS3Output`](crate::output::RestoreDBInstanceFromS3Output) + /// A builder for [`RestoreDbInstanceFromS3Output`](crate::output::RestoreDbInstanceFromS3Output) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceFromS3Output`](crate::output::RestoreDBInstanceFromS3Output) - pub fn build(self) -> crate::output::RestoreDBInstanceFromS3Output { - crate::output::RestoreDBInstanceFromS3Output { + /// Consumes the builder and constructs a [`RestoreDbInstanceFromS3Output`](crate::output::RestoreDbInstanceFromS3Output) + pub fn build(self) -> crate::output::RestoreDbInstanceFromS3Output { + crate::output::RestoreDbInstanceFromS3Output { db_instance: self.db_instance, } } } } -impl RestoreDBInstanceFromS3Output { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromS3Output`](crate::output::RestoreDBInstanceFromS3Output) +impl RestoreDbInstanceFromS3Output { + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromS3Output`](crate::output::RestoreDbInstanceFromS3Output) pub fn builder() -> crate::output::restore_db_instance_from_s3_output::Builder { crate::output::restore_db_instance_from_s3_output::Builder::default() } @@ -1006,54 +1006,54 @@ impl RestoreDBInstanceFromS3Output { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBInstanceFromDBSnapshotOutput { +pub struct RestoreDbInstanceFromDbSnapshotOutput { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for RestoreDBInstanceFromDBSnapshotOutput { +impl std::fmt::Debug for RestoreDbInstanceFromDbSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBInstanceFromDBSnapshotOutput"); + let mut formatter = f.debug_struct("RestoreDbInstanceFromDbSnapshotOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`RestoreDBInstanceFromDBSnapshotOutput`](crate::output::RestoreDBInstanceFromDBSnapshotOutput) +/// See [`RestoreDbInstanceFromDbSnapshotOutput`](crate::output::RestoreDbInstanceFromDbSnapshotOutput) pub mod restore_db_instance_from_db_snapshot_output { - /// A builder for [`RestoreDBInstanceFromDBSnapshotOutput`](crate::output::RestoreDBInstanceFromDBSnapshotOutput) + /// A builder for [`RestoreDbInstanceFromDbSnapshotOutput`](crate::output::RestoreDbInstanceFromDbSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon RDS DB instance. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBInstances action. ///

                                    - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`RestoreDBInstanceFromDBSnapshotOutput`](crate::output::RestoreDBInstanceFromDBSnapshotOutput) - pub fn build(self) -> crate::output::RestoreDBInstanceFromDBSnapshotOutput { - crate::output::RestoreDBInstanceFromDBSnapshotOutput { + /// Consumes the builder and constructs a [`RestoreDbInstanceFromDbSnapshotOutput`](crate::output::RestoreDbInstanceFromDbSnapshotOutput) + pub fn build(self) -> crate::output::RestoreDbInstanceFromDbSnapshotOutput { + crate::output::RestoreDbInstanceFromDbSnapshotOutput { db_instance: self.db_instance, } } } } -impl RestoreDBInstanceFromDBSnapshotOutput { - /// Creates a new builder-style object to manufacture [`RestoreDBInstanceFromDBSnapshotOutput`](crate::output::RestoreDBInstanceFromDBSnapshotOutput) +impl RestoreDbInstanceFromDbSnapshotOutput { + /// Creates a new builder-style object to manufacture [`RestoreDbInstanceFromDbSnapshotOutput`](crate::output::RestoreDbInstanceFromDbSnapshotOutput) pub fn builder() -> crate::output::restore_db_instance_from_db_snapshot_output::Builder { crate::output::restore_db_instance_from_db_snapshot_output::Builder::default() } @@ -1061,28 +1061,28 @@ impl RestoreDBInstanceFromDBSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterToPointInTimeOutput { +pub struct RestoreDbClusterToPointInTimeOutput { ///

                                    Contains the details of an Amazon Aurora DB cluster. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterToPointInTimeOutput { +impl std::fmt::Debug for RestoreDbClusterToPointInTimeOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterToPointInTimeOutput"); + let mut formatter = f.debug_struct("RestoreDbClusterToPointInTimeOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`RestoreDBClusterToPointInTimeOutput`](crate::output::RestoreDBClusterToPointInTimeOutput) +/// See [`RestoreDbClusterToPointInTimeOutput`](crate::output::RestoreDbClusterToPointInTimeOutput) pub mod restore_db_cluster_to_point_in_time_output { - /// A builder for [`RestoreDBClusterToPointInTimeOutput`](crate::output::RestoreDBClusterToPointInTimeOutput) + /// A builder for [`RestoreDbClusterToPointInTimeOutput`](crate::output::RestoreDbClusterToPointInTimeOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon Aurora DB cluster. @@ -1090,27 +1090,27 @@ pub mod restore_db_cluster_to_point_in_time_output { ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterToPointInTimeOutput`](crate::output::RestoreDBClusterToPointInTimeOutput) - pub fn build(self) -> crate::output::RestoreDBClusterToPointInTimeOutput { - crate::output::RestoreDBClusterToPointInTimeOutput { + /// Consumes the builder and constructs a [`RestoreDbClusterToPointInTimeOutput`](crate::output::RestoreDbClusterToPointInTimeOutput) + pub fn build(self) -> crate::output::RestoreDbClusterToPointInTimeOutput { + crate::output::RestoreDbClusterToPointInTimeOutput { db_cluster: self.db_cluster, } } } } -impl RestoreDBClusterToPointInTimeOutput { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterToPointInTimeOutput`](crate::output::RestoreDBClusterToPointInTimeOutput) +impl RestoreDbClusterToPointInTimeOutput { + /// Creates a new builder-style object to manufacture [`RestoreDbClusterToPointInTimeOutput`](crate::output::RestoreDbClusterToPointInTimeOutput) pub fn builder() -> crate::output::restore_db_cluster_to_point_in_time_output::Builder { crate::output::restore_db_cluster_to_point_in_time_output::Builder::default() } @@ -1118,28 +1118,28 @@ impl RestoreDBClusterToPointInTimeOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterFromSnapshotOutput { +pub struct RestoreDbClusterFromSnapshotOutput { ///

                                    Contains the details of an Amazon Aurora DB cluster. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterFromSnapshotOutput { +impl std::fmt::Debug for RestoreDbClusterFromSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterFromSnapshotOutput"); + let mut formatter = f.debug_struct("RestoreDbClusterFromSnapshotOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`RestoreDBClusterFromSnapshotOutput`](crate::output::RestoreDBClusterFromSnapshotOutput) +/// See [`RestoreDbClusterFromSnapshotOutput`](crate::output::RestoreDbClusterFromSnapshotOutput) pub mod restore_db_cluster_from_snapshot_output { - /// A builder for [`RestoreDBClusterFromSnapshotOutput`](crate::output::RestoreDBClusterFromSnapshotOutput) + /// A builder for [`RestoreDbClusterFromSnapshotOutput`](crate::output::RestoreDbClusterFromSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon Aurora DB cluster. @@ -1147,27 +1147,27 @@ pub mod restore_db_cluster_from_snapshot_output { ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterFromSnapshotOutput`](crate::output::RestoreDBClusterFromSnapshotOutput) - pub fn build(self) -> crate::output::RestoreDBClusterFromSnapshotOutput { - crate::output::RestoreDBClusterFromSnapshotOutput { + /// Consumes the builder and constructs a [`RestoreDbClusterFromSnapshotOutput`](crate::output::RestoreDbClusterFromSnapshotOutput) + pub fn build(self) -> crate::output::RestoreDbClusterFromSnapshotOutput { + crate::output::RestoreDbClusterFromSnapshotOutput { db_cluster: self.db_cluster, } } } } -impl RestoreDBClusterFromSnapshotOutput { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromSnapshotOutput`](crate::output::RestoreDBClusterFromSnapshotOutput) +impl RestoreDbClusterFromSnapshotOutput { + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromSnapshotOutput`](crate::output::RestoreDbClusterFromSnapshotOutput) pub fn builder() -> crate::output::restore_db_cluster_from_snapshot_output::Builder { crate::output::restore_db_cluster_from_snapshot_output::Builder::default() } @@ -1175,28 +1175,28 @@ impl RestoreDBClusterFromSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreDBClusterFromS3Output { +pub struct RestoreDbClusterFromS3Output { ///

                                    Contains the details of an Amazon Aurora DB cluster. ///

                                    ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for RestoreDBClusterFromS3Output { +impl std::fmt::Debug for RestoreDbClusterFromS3Output { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreDBClusterFromS3Output"); + let mut formatter = f.debug_struct("RestoreDbClusterFromS3Output"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`RestoreDBClusterFromS3Output`](crate::output::RestoreDBClusterFromS3Output) +/// See [`RestoreDbClusterFromS3Output`](crate::output::RestoreDbClusterFromS3Output) pub mod restore_db_cluster_from_s3_output { - /// A builder for [`RestoreDBClusterFromS3Output`](crate::output::RestoreDBClusterFromS3Output) + /// A builder for [`RestoreDbClusterFromS3Output`](crate::output::RestoreDbClusterFromS3Output) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                    Contains the details of an Amazon Aurora DB cluster. @@ -1204,27 +1204,27 @@ pub mod restore_db_cluster_from_s3_output { ///

                                    This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                    - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`RestoreDBClusterFromS3Output`](crate::output::RestoreDBClusterFromS3Output) - pub fn build(self) -> crate::output::RestoreDBClusterFromS3Output { - crate::output::RestoreDBClusterFromS3Output { + /// Consumes the builder and constructs a [`RestoreDbClusterFromS3Output`](crate::output::RestoreDbClusterFromS3Output) + pub fn build(self) -> crate::output::RestoreDbClusterFromS3Output { + crate::output::RestoreDbClusterFromS3Output { db_cluster: self.db_cluster, } } } } -impl RestoreDBClusterFromS3Output { - /// Creates a new builder-style object to manufacture [`RestoreDBClusterFromS3Output`](crate::output::RestoreDBClusterFromS3Output) +impl RestoreDbClusterFromS3Output { + /// Creates a new builder-style object to manufacture [`RestoreDbClusterFromS3Output`](crate::output::RestoreDbClusterFromS3Output) pub fn builder() -> crate::output::restore_db_cluster_from_s3_output::Builder { crate::output::restore_db_cluster_from_s3_output::Builder::default() } @@ -1236,20 +1236,20 @@ impl RestoreDBClusterFromS3Output { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetDBParameterGroupOutput { +pub struct ResetDbParameterGroupOutput { ///

                                    The name of the DB parameter group.

                                    pub db_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for ResetDBParameterGroupOutput { +impl std::fmt::Debug for ResetDbParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetDBParameterGroupOutput"); + let mut formatter = f.debug_struct("ResetDbParameterGroupOutput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.finish() } } -/// See [`ResetDBParameterGroupOutput`](crate::output::ResetDBParameterGroupOutput) +/// See [`ResetDbParameterGroupOutput`](crate::output::ResetDbParameterGroupOutput) pub mod reset_db_parameter_group_output { - /// A builder for [`ResetDBParameterGroupOutput`](crate::output::ResetDBParameterGroupOutput) + /// A builder for [`ResetDbParameterGroupOutput`](crate::output::ResetDbParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1268,16 +1268,16 @@ pub mod reset_db_parameter_group_output { self.db_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`ResetDBParameterGroupOutput`](crate::output::ResetDBParameterGroupOutput) - pub fn build(self) -> crate::output::ResetDBParameterGroupOutput { - crate::output::ResetDBParameterGroupOutput { + /// Consumes the builder and constructs a [`ResetDbParameterGroupOutput`](crate::output::ResetDbParameterGroupOutput) + pub fn build(self) -> crate::output::ResetDbParameterGroupOutput { + crate::output::ResetDbParameterGroupOutput { db_parameter_group_name: self.db_parameter_group_name, } } } } -impl ResetDBParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`ResetDBParameterGroupOutput`](crate::output::ResetDBParameterGroupOutput) +impl ResetDbParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`ResetDbParameterGroupOutput`](crate::output::ResetDbParameterGroupOutput) pub fn builder() -> crate::output::reset_db_parameter_group_output::Builder { crate::output::reset_db_parameter_group_output::Builder::default() } @@ -1286,7 +1286,7 @@ impl ResetDBParameterGroupOutput { ///

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetDBClusterParameterGroupOutput { +pub struct ResetDbClusterParameterGroupOutput { ///

                                    The name of the DB cluster parameter group.

                                    ///

                                    Constraints:

                                    ///
                                      @@ -1305,9 +1305,9 @@ pub struct ResetDBClusterParameterGroupOutput { /// pub db_cluster_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for ResetDBClusterParameterGroupOutput { +impl std::fmt::Debug for ResetDbClusterParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetDBClusterParameterGroupOutput"); + let mut formatter = f.debug_struct("ResetDbClusterParameterGroupOutput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -1315,9 +1315,9 @@ impl std::fmt::Debug for ResetDBClusterParameterGroupOutput { formatter.finish() } } -/// See [`ResetDBClusterParameterGroupOutput`](crate::output::ResetDBClusterParameterGroupOutput) +/// See [`ResetDbClusterParameterGroupOutput`](crate::output::ResetDbClusterParameterGroupOutput) pub mod reset_db_cluster_parameter_group_output { - /// A builder for [`ResetDBClusterParameterGroupOutput`](crate::output::ResetDBClusterParameterGroupOutput) + /// A builder for [`ResetDbClusterParameterGroupOutput`](crate::output::ResetDbClusterParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1354,16 +1354,16 @@ pub mod reset_db_cluster_parameter_group_output { self.db_cluster_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`ResetDBClusterParameterGroupOutput`](crate::output::ResetDBClusterParameterGroupOutput) - pub fn build(self) -> crate::output::ResetDBClusterParameterGroupOutput { - crate::output::ResetDBClusterParameterGroupOutput { + /// Consumes the builder and constructs a [`ResetDbClusterParameterGroupOutput`](crate::output::ResetDbClusterParameterGroupOutput) + pub fn build(self) -> crate::output::ResetDbClusterParameterGroupOutput { + crate::output::ResetDbClusterParameterGroupOutput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, } } } } -impl ResetDBClusterParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`ResetDBClusterParameterGroupOutput`](crate::output::ResetDBClusterParameterGroupOutput) +impl ResetDbClusterParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`ResetDbClusterParameterGroupOutput`](crate::output::ResetDbClusterParameterGroupOutput) pub fn builder() -> crate::output::reset_db_cluster_parameter_group_output::Builder { crate::output::reset_db_cluster_parameter_group_output::Builder::default() } @@ -1449,28 +1449,28 @@ impl RemoveSourceIdentifierFromSubscriptionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRoleFromDBInstanceOutput {} -impl std::fmt::Debug for RemoveRoleFromDBInstanceOutput { +pub struct RemoveRoleFromDbInstanceOutput {} +impl std::fmt::Debug for RemoveRoleFromDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRoleFromDBInstanceOutput"); + let mut formatter = f.debug_struct("RemoveRoleFromDbInstanceOutput"); formatter.finish() } } -/// See [`RemoveRoleFromDBInstanceOutput`](crate::output::RemoveRoleFromDBInstanceOutput) +/// See [`RemoveRoleFromDbInstanceOutput`](crate::output::RemoveRoleFromDbInstanceOutput) pub mod remove_role_from_db_instance_output { - /// A builder for [`RemoveRoleFromDBInstanceOutput`](crate::output::RemoveRoleFromDBInstanceOutput) + /// A builder for [`RemoveRoleFromDbInstanceOutput`](crate::output::RemoveRoleFromDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`RemoveRoleFromDBInstanceOutput`](crate::output::RemoveRoleFromDBInstanceOutput) - pub fn build(self) -> crate::output::RemoveRoleFromDBInstanceOutput { - crate::output::RemoveRoleFromDBInstanceOutput {} + /// Consumes the builder and constructs a [`RemoveRoleFromDbInstanceOutput`](crate::output::RemoveRoleFromDbInstanceOutput) + pub fn build(self) -> crate::output::RemoveRoleFromDbInstanceOutput { + crate::output::RemoveRoleFromDbInstanceOutput {} } } } -impl RemoveRoleFromDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBInstanceOutput`](crate::output::RemoveRoleFromDBInstanceOutput) +impl RemoveRoleFromDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbInstanceOutput`](crate::output::RemoveRoleFromDbInstanceOutput) pub fn builder() -> crate::output::remove_role_from_db_instance_output::Builder { crate::output::remove_role_from_db_instance_output::Builder::default() } @@ -1478,28 +1478,28 @@ impl RemoveRoleFromDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRoleFromDBClusterOutput {} -impl std::fmt::Debug for RemoveRoleFromDBClusterOutput { +pub struct RemoveRoleFromDbClusterOutput {} +impl std::fmt::Debug for RemoveRoleFromDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRoleFromDBClusterOutput"); + let mut formatter = f.debug_struct("RemoveRoleFromDbClusterOutput"); formatter.finish() } } -/// See [`RemoveRoleFromDBClusterOutput`](crate::output::RemoveRoleFromDBClusterOutput) +/// See [`RemoveRoleFromDbClusterOutput`](crate::output::RemoveRoleFromDbClusterOutput) pub mod remove_role_from_db_cluster_output { - /// A builder for [`RemoveRoleFromDBClusterOutput`](crate::output::RemoveRoleFromDBClusterOutput) + /// A builder for [`RemoveRoleFromDbClusterOutput`](crate::output::RemoveRoleFromDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`RemoveRoleFromDBClusterOutput`](crate::output::RemoveRoleFromDBClusterOutput) - pub fn build(self) -> crate::output::RemoveRoleFromDBClusterOutput { - crate::output::RemoveRoleFromDBClusterOutput {} + /// Consumes the builder and constructs a [`RemoveRoleFromDbClusterOutput`](crate::output::RemoveRoleFromDbClusterOutput) + pub fn build(self) -> crate::output::RemoveRoleFromDbClusterOutput { + crate::output::RemoveRoleFromDbClusterOutput {} } } } -impl RemoveRoleFromDBClusterOutput { - /// Creates a new builder-style object to manufacture [`RemoveRoleFromDBClusterOutput`](crate::output::RemoveRoleFromDBClusterOutput) +impl RemoveRoleFromDbClusterOutput { + /// Creates a new builder-style object to manufacture [`RemoveRoleFromDbClusterOutput`](crate::output::RemoveRoleFromDbClusterOutput) pub fn builder() -> crate::output::remove_role_from_db_cluster_output::Builder { crate::output::remove_role_from_db_cluster_output::Builder::default() } @@ -1556,28 +1556,28 @@ impl RemoveFromGlobalClusterOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterDBProxyTargetsOutput { +pub struct RegisterDbProxyTargetsOutput { ///

                                      One or more DBProxyTarget objects that are created when you register targets with a target group.

                                      - pub db_proxy_targets: std::option::Option>, + pub db_proxy_targets: std::option::Option>, } -impl std::fmt::Debug for RegisterDBProxyTargetsOutput { +impl std::fmt::Debug for RegisterDbProxyTargetsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterDBProxyTargetsOutput"); + let mut formatter = f.debug_struct("RegisterDbProxyTargetsOutput"); formatter.field("db_proxy_targets", &self.db_proxy_targets); formatter.finish() } } -/// See [`RegisterDBProxyTargetsOutput`](crate::output::RegisterDBProxyTargetsOutput) +/// See [`RegisterDbProxyTargetsOutput`](crate::output::RegisterDbProxyTargetsOutput) pub mod register_db_proxy_targets_output { - /// A builder for [`RegisterDBProxyTargetsOutput`](crate::output::RegisterDBProxyTargetsOutput) + /// A builder for [`RegisterDbProxyTargetsOutput`](crate::output::RegisterDbProxyTargetsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_proxy_targets: - std::option::Option>, + std::option::Option>, } impl Builder { - pub fn db_proxy_targets(mut self, input: impl Into) -> Self { + pub fn db_proxy_targets(mut self, input: impl Into) -> Self { let mut v = self.db_proxy_targets.unwrap_or_default(); v.push(input.into()); self.db_proxy_targets = Some(v); @@ -1585,21 +1585,21 @@ pub mod register_db_proxy_targets_output { } pub fn set_db_proxy_targets( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_proxy_targets = input; self } - /// Consumes the builder and constructs a [`RegisterDBProxyTargetsOutput`](crate::output::RegisterDBProxyTargetsOutput) - pub fn build(self) -> crate::output::RegisterDBProxyTargetsOutput { - crate::output::RegisterDBProxyTargetsOutput { + /// Consumes the builder and constructs a [`RegisterDbProxyTargetsOutput`](crate::output::RegisterDbProxyTargetsOutput) + pub fn build(self) -> crate::output::RegisterDbProxyTargetsOutput { + crate::output::RegisterDbProxyTargetsOutput { db_proxy_targets: self.db_proxy_targets, } } } } -impl RegisterDBProxyTargetsOutput { - /// Creates a new builder-style object to manufacture [`RegisterDBProxyTargetsOutput`](crate::output::RegisterDBProxyTargetsOutput) +impl RegisterDbProxyTargetsOutput { + /// Creates a new builder-style object to manufacture [`RegisterDbProxyTargetsOutput`](crate::output::RegisterDbProxyTargetsOutput) pub fn builder() -> crate::output::register_db_proxy_targets_output::Builder { crate::output::register_db_proxy_targets_output::Builder::default() } @@ -1607,54 +1607,54 @@ impl RegisterDBProxyTargetsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RebootDBInstanceOutput { +pub struct RebootDbInstanceOutput { ///

                                      Contains the details of an Amazon RDS DB instance. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for RebootDBInstanceOutput { +impl std::fmt::Debug for RebootDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RebootDBInstanceOutput"); + let mut formatter = f.debug_struct("RebootDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`RebootDBInstanceOutput`](crate::output::RebootDBInstanceOutput) +/// See [`RebootDbInstanceOutput`](crate::output::RebootDbInstanceOutput) pub mod reboot_db_instance_output { - /// A builder for [`RebootDBInstanceOutput`](crate::output::RebootDBInstanceOutput) + /// A builder for [`RebootDbInstanceOutput`](crate::output::RebootDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon RDS DB instance. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`RebootDBInstanceOutput`](crate::output::RebootDBInstanceOutput) - pub fn build(self) -> crate::output::RebootDBInstanceOutput { - crate::output::RebootDBInstanceOutput { + /// Consumes the builder and constructs a [`RebootDbInstanceOutput`](crate::output::RebootDbInstanceOutput) + pub fn build(self) -> crate::output::RebootDbInstanceOutput { + crate::output::RebootDbInstanceOutput { db_instance: self.db_instance, } } } } -impl RebootDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`RebootDBInstanceOutput`](crate::output::RebootDBInstanceOutput) +impl RebootDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`RebootDbInstanceOutput`](crate::output::RebootDbInstanceOutput) pub fn builder() -> crate::output::reboot_db_instance_output::Builder { crate::output::reboot_db_instance_output::Builder::default() } @@ -1662,28 +1662,28 @@ impl RebootDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PurchaseReservedDBInstancesOfferingOutput { +pub struct PurchaseReservedDbInstancesOfferingOutput { ///

                                      /// This data type is used as a response element in the /// DescribeReservedDBInstances and /// PurchaseReservedDBInstancesOffering actions. ///

                                      - pub reserved_db_instance: std::option::Option, + pub reserved_db_instance: std::option::Option, } -impl std::fmt::Debug for PurchaseReservedDBInstancesOfferingOutput { +impl std::fmt::Debug for PurchaseReservedDbInstancesOfferingOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PurchaseReservedDBInstancesOfferingOutput"); + let mut formatter = f.debug_struct("PurchaseReservedDbInstancesOfferingOutput"); formatter.field("reserved_db_instance", &self.reserved_db_instance); formatter.finish() } } -/// See [`PurchaseReservedDBInstancesOfferingOutput`](crate::output::PurchaseReservedDBInstancesOfferingOutput) +/// See [`PurchaseReservedDbInstancesOfferingOutput`](crate::output::PurchaseReservedDbInstancesOfferingOutput) pub mod purchase_reserved_db_instances_offering_output { - /// A builder for [`PurchaseReservedDBInstancesOfferingOutput`](crate::output::PurchaseReservedDBInstancesOfferingOutput) + /// A builder for [`PurchaseReservedDbInstancesOfferingOutput`](crate::output::PurchaseReservedDbInstancesOfferingOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) reserved_db_instance: std::option::Option, + pub(crate) reserved_db_instance: std::option::Option, } impl Builder { ///

                                      @@ -1691,27 +1691,27 @@ pub mod purchase_reserved_db_instances_offering_output { /// DescribeReservedDBInstances and /// PurchaseReservedDBInstancesOffering actions. ///

                                      - pub fn reserved_db_instance(mut self, input: crate::model::ReservedDBInstance) -> Self { + pub fn reserved_db_instance(mut self, input: crate::model::ReservedDbInstance) -> Self { self.reserved_db_instance = Some(input); self } pub fn set_reserved_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.reserved_db_instance = input; self } - /// Consumes the builder and constructs a [`PurchaseReservedDBInstancesOfferingOutput`](crate::output::PurchaseReservedDBInstancesOfferingOutput) - pub fn build(self) -> crate::output::PurchaseReservedDBInstancesOfferingOutput { - crate::output::PurchaseReservedDBInstancesOfferingOutput { + /// Consumes the builder and constructs a [`PurchaseReservedDbInstancesOfferingOutput`](crate::output::PurchaseReservedDbInstancesOfferingOutput) + pub fn build(self) -> crate::output::PurchaseReservedDbInstancesOfferingOutput { + crate::output::PurchaseReservedDbInstancesOfferingOutput { reserved_db_instance: self.reserved_db_instance, } } } } -impl PurchaseReservedDBInstancesOfferingOutput { - /// Creates a new builder-style object to manufacture [`PurchaseReservedDBInstancesOfferingOutput`](crate::output::PurchaseReservedDBInstancesOfferingOutput) +impl PurchaseReservedDbInstancesOfferingOutput { + /// Creates a new builder-style object to manufacture [`PurchaseReservedDbInstancesOfferingOutput`](crate::output::PurchaseReservedDbInstancesOfferingOutput) pub fn builder() -> crate::output::purchase_reserved_db_instances_offering_output::Builder { crate::output::purchase_reserved_db_instances_offering_output::Builder::default() } @@ -1719,28 +1719,28 @@ impl PurchaseReservedDBInstancesOfferingOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PromoteReadReplicaDBClusterOutput { +pub struct PromoteReadReplicaDbClusterOutput { ///

                                      Contains the details of an Amazon Aurora DB cluster. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                      - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for PromoteReadReplicaDBClusterOutput { +impl std::fmt::Debug for PromoteReadReplicaDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PromoteReadReplicaDBClusterOutput"); + let mut formatter = f.debug_struct("PromoteReadReplicaDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`PromoteReadReplicaDBClusterOutput`](crate::output::PromoteReadReplicaDBClusterOutput) +/// See [`PromoteReadReplicaDbClusterOutput`](crate::output::PromoteReadReplicaDbClusterOutput) pub mod promote_read_replica_db_cluster_output { - /// A builder for [`PromoteReadReplicaDBClusterOutput`](crate::output::PromoteReadReplicaDBClusterOutput) + /// A builder for [`PromoteReadReplicaDbClusterOutput`](crate::output::PromoteReadReplicaDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon Aurora DB cluster. @@ -1748,27 +1748,27 @@ pub mod promote_read_replica_db_cluster_output { ///

                                      This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                      - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`PromoteReadReplicaDBClusterOutput`](crate::output::PromoteReadReplicaDBClusterOutput) - pub fn build(self) -> crate::output::PromoteReadReplicaDBClusterOutput { - crate::output::PromoteReadReplicaDBClusterOutput { + /// Consumes the builder and constructs a [`PromoteReadReplicaDbClusterOutput`](crate::output::PromoteReadReplicaDbClusterOutput) + pub fn build(self) -> crate::output::PromoteReadReplicaDbClusterOutput { + crate::output::PromoteReadReplicaDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl PromoteReadReplicaDBClusterOutput { - /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDBClusterOutput`](crate::output::PromoteReadReplicaDBClusterOutput) +impl PromoteReadReplicaDbClusterOutput { + /// Creates a new builder-style object to manufacture [`PromoteReadReplicaDbClusterOutput`](crate::output::PromoteReadReplicaDbClusterOutput) pub fn builder() -> crate::output::promote_read_replica_db_cluster_output::Builder { crate::output::promote_read_replica_db_cluster_output::Builder::default() } @@ -1781,7 +1781,7 @@ pub struct PromoteReadReplicaOutput { ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } impl std::fmt::Debug for PromoteReadReplicaOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1796,20 +1796,20 @@ pub mod promote_read_replica_output { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon RDS DB instance. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self @@ -1978,28 +1978,28 @@ impl ModifyEventSubscriptionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSubnetGroupOutput { +pub struct ModifyDbSubnetGroupOutput { ///

                                      Contains the details of an Amazon RDS DB subnet group. ///

                                      ///

                                      This data type is used as a response element /// in the DescribeDBSubnetGroups action. ///

                                      - pub db_subnet_group: std::option::Option, + pub db_subnet_group: std::option::Option, } -impl std::fmt::Debug for ModifyDBSubnetGroupOutput { +impl std::fmt::Debug for ModifyDbSubnetGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSubnetGroupOutput"); + let mut formatter = f.debug_struct("ModifyDbSubnetGroupOutput"); formatter.field("db_subnet_group", &self.db_subnet_group); formatter.finish() } } -/// See [`ModifyDBSubnetGroupOutput`](crate::output::ModifyDBSubnetGroupOutput) +/// See [`ModifyDbSubnetGroupOutput`](crate::output::ModifyDbSubnetGroupOutput) pub mod modify_db_subnet_group_output { - /// A builder for [`ModifyDBSubnetGroupOutput`](crate::output::ModifyDBSubnetGroupOutput) + /// A builder for [`ModifyDbSubnetGroupOutput`](crate::output::ModifyDbSubnetGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_subnet_group: std::option::Option, + pub(crate) db_subnet_group: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon RDS DB subnet group. @@ -2007,27 +2007,27 @@ pub mod modify_db_subnet_group_output { ///

                                      This data type is used as a response element /// in the DescribeDBSubnetGroups action. ///

                                      - pub fn db_subnet_group(mut self, input: crate::model::DBSubnetGroup) -> Self { + pub fn db_subnet_group(mut self, input: crate::model::DbSubnetGroup) -> Self { self.db_subnet_group = Some(input); self } pub fn set_db_subnet_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_subnet_group = input; self } - /// Consumes the builder and constructs a [`ModifyDBSubnetGroupOutput`](crate::output::ModifyDBSubnetGroupOutput) - pub fn build(self) -> crate::output::ModifyDBSubnetGroupOutput { - crate::output::ModifyDBSubnetGroupOutput { + /// Consumes the builder and constructs a [`ModifyDbSubnetGroupOutput`](crate::output::ModifyDbSubnetGroupOutput) + pub fn build(self) -> crate::output::ModifyDbSubnetGroupOutput { + crate::output::ModifyDbSubnetGroupOutput { db_subnet_group: self.db_subnet_group, } } } } -impl ModifyDBSubnetGroupOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBSubnetGroupOutput`](crate::output::ModifyDBSubnetGroupOutput) +impl ModifyDbSubnetGroupOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbSubnetGroupOutput`](crate::output::ModifyDbSubnetGroupOutput) pub fn builder() -> crate::output::modify_db_subnet_group_output::Builder { crate::output::modify_db_subnet_group_output::Builder::default() } @@ -2035,18 +2035,18 @@ impl ModifyDBSubnetGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSnapshotAttributeOutput { +pub struct ModifyDbSnapshotAttributeOutput { ///

                                      Contains the results of a successful call to the DescribeDBSnapshotAttributes /// API action.

                                      ///

                                      Manual DB snapshot attributes are used to authorize other AWS accounts /// to copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute /// API action.

                                      pub db_snapshot_attributes_result: - std::option::Option, + std::option::Option, } -impl std::fmt::Debug for ModifyDBSnapshotAttributeOutput { +impl std::fmt::Debug for ModifyDbSnapshotAttributeOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSnapshotAttributeOutput"); + let mut formatter = f.debug_struct("ModifyDbSnapshotAttributeOutput"); formatter.field( "db_snapshot_attributes_result", &self.db_snapshot_attributes_result, @@ -2054,14 +2054,14 @@ impl std::fmt::Debug for ModifyDBSnapshotAttributeOutput { formatter.finish() } } -/// See [`ModifyDBSnapshotAttributeOutput`](crate::output::ModifyDBSnapshotAttributeOutput) +/// See [`ModifyDbSnapshotAttributeOutput`](crate::output::ModifyDbSnapshotAttributeOutput) pub mod modify_db_snapshot_attribute_output { - /// A builder for [`ModifyDBSnapshotAttributeOutput`](crate::output::ModifyDBSnapshotAttributeOutput) + /// A builder for [`ModifyDbSnapshotAttributeOutput`](crate::output::ModifyDbSnapshotAttributeOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_snapshot_attributes_result: - std::option::Option, + std::option::Option, } impl Builder { ///

                                      Contains the results of a successful call to the DescribeDBSnapshotAttributes @@ -2071,28 +2071,28 @@ pub mod modify_db_snapshot_attribute_output { /// API action.

                                      pub fn db_snapshot_attributes_result( mut self, - input: crate::model::DBSnapshotAttributesResult, + input: crate::model::DbSnapshotAttributesResult, ) -> Self { self.db_snapshot_attributes_result = Some(input); self } pub fn set_db_snapshot_attributes_result( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot_attributes_result = input; self } - /// Consumes the builder and constructs a [`ModifyDBSnapshotAttributeOutput`](crate::output::ModifyDBSnapshotAttributeOutput) - pub fn build(self) -> crate::output::ModifyDBSnapshotAttributeOutput { - crate::output::ModifyDBSnapshotAttributeOutput { + /// Consumes the builder and constructs a [`ModifyDbSnapshotAttributeOutput`](crate::output::ModifyDbSnapshotAttributeOutput) + pub fn build(self) -> crate::output::ModifyDbSnapshotAttributeOutput { + crate::output::ModifyDbSnapshotAttributeOutput { db_snapshot_attributes_result: self.db_snapshot_attributes_result, } } } } -impl ModifyDBSnapshotAttributeOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotAttributeOutput`](crate::output::ModifyDBSnapshotAttributeOutput) +impl ModifyDbSnapshotAttributeOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotAttributeOutput`](crate::output::ModifyDbSnapshotAttributeOutput) pub fn builder() -> crate::output::modify_db_snapshot_attribute_output::Builder { crate::output::modify_db_snapshot_attribute_output::Builder::default() } @@ -2100,28 +2100,28 @@ impl ModifyDBSnapshotAttributeOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBSnapshotOutput { +pub struct ModifyDbSnapshotOutput { ///

                                      Contains the details of an Amazon RDS DB snapshot. ///

                                      ///

                                      This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                      - pub db_snapshot: std::option::Option, + pub db_snapshot: std::option::Option, } -impl std::fmt::Debug for ModifyDBSnapshotOutput { +impl std::fmt::Debug for ModifyDbSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBSnapshotOutput"); + let mut formatter = f.debug_struct("ModifyDbSnapshotOutput"); formatter.field("db_snapshot", &self.db_snapshot); formatter.finish() } } -/// See [`ModifyDBSnapshotOutput`](crate::output::ModifyDBSnapshotOutput) +/// See [`ModifyDbSnapshotOutput`](crate::output::ModifyDbSnapshotOutput) pub mod modify_db_snapshot_output { - /// A builder for [`ModifyDBSnapshotOutput`](crate::output::ModifyDBSnapshotOutput) + /// A builder for [`ModifyDbSnapshotOutput`](crate::output::ModifyDbSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_snapshot: std::option::Option, + pub(crate) db_snapshot: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon RDS DB snapshot. @@ -2129,27 +2129,27 @@ pub mod modify_db_snapshot_output { ///

                                      This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                      - pub fn db_snapshot(mut self, input: crate::model::DBSnapshot) -> Self { + pub fn db_snapshot(mut self, input: crate::model::DbSnapshot) -> Self { self.db_snapshot = Some(input); self } pub fn set_db_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot = input; self } - /// Consumes the builder and constructs a [`ModifyDBSnapshotOutput`](crate::output::ModifyDBSnapshotOutput) - pub fn build(self) -> crate::output::ModifyDBSnapshotOutput { - crate::output::ModifyDBSnapshotOutput { + /// Consumes the builder and constructs a [`ModifyDbSnapshotOutput`](crate::output::ModifyDbSnapshotOutput) + pub fn build(self) -> crate::output::ModifyDbSnapshotOutput { + crate::output::ModifyDbSnapshotOutput { db_snapshot: self.db_snapshot, } } } } -impl ModifyDBSnapshotOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBSnapshotOutput`](crate::output::ModifyDBSnapshotOutput) +impl ModifyDbSnapshotOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbSnapshotOutput`](crate::output::ModifyDbSnapshotOutput) pub fn builder() -> crate::output::modify_db_snapshot_output::Builder { crate::output::modify_db_snapshot_output::Builder::default() } @@ -2157,48 +2157,48 @@ impl ModifyDBSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyTargetGroupOutput { +pub struct ModifyDbProxyTargetGroupOutput { ///

                                      The settings of the modified DBProxyTarget.

                                      - pub db_proxy_target_group: std::option::Option, + pub db_proxy_target_group: std::option::Option, } -impl std::fmt::Debug for ModifyDBProxyTargetGroupOutput { +impl std::fmt::Debug for ModifyDbProxyTargetGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyTargetGroupOutput"); + let mut formatter = f.debug_struct("ModifyDbProxyTargetGroupOutput"); formatter.field("db_proxy_target_group", &self.db_proxy_target_group); formatter.finish() } } -/// See [`ModifyDBProxyTargetGroupOutput`](crate::output::ModifyDBProxyTargetGroupOutput) +/// See [`ModifyDbProxyTargetGroupOutput`](crate::output::ModifyDbProxyTargetGroupOutput) pub mod modify_db_proxy_target_group_output { - /// A builder for [`ModifyDBProxyTargetGroupOutput`](crate::output::ModifyDBProxyTargetGroupOutput) + /// A builder for [`ModifyDbProxyTargetGroupOutput`](crate::output::ModifyDbProxyTargetGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy_target_group: std::option::Option, + pub(crate) db_proxy_target_group: std::option::Option, } impl Builder { ///

                                      The settings of the modified DBProxyTarget.

                                      - pub fn db_proxy_target_group(mut self, input: crate::model::DBProxyTargetGroup) -> Self { + pub fn db_proxy_target_group(mut self, input: crate::model::DbProxyTargetGroup) -> Self { self.db_proxy_target_group = Some(input); self } pub fn set_db_proxy_target_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_proxy_target_group = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyTargetGroupOutput`](crate::output::ModifyDBProxyTargetGroupOutput) - pub fn build(self) -> crate::output::ModifyDBProxyTargetGroupOutput { - crate::output::ModifyDBProxyTargetGroupOutput { + /// Consumes the builder and constructs a [`ModifyDbProxyTargetGroupOutput`](crate::output::ModifyDbProxyTargetGroupOutput) + pub fn build(self) -> crate::output::ModifyDbProxyTargetGroupOutput { + crate::output::ModifyDbProxyTargetGroupOutput { db_proxy_target_group: self.db_proxy_target_group, } } } } -impl ModifyDBProxyTargetGroupOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyTargetGroupOutput`](crate::output::ModifyDBProxyTargetGroupOutput) +impl ModifyDbProxyTargetGroupOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbProxyTargetGroupOutput`](crate::output::ModifyDbProxyTargetGroupOutput) pub fn builder() -> crate::output::modify_db_proxy_target_group_output::Builder { crate::output::modify_db_proxy_target_group_output::Builder::default() } @@ -2206,48 +2206,48 @@ impl ModifyDBProxyTargetGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyEndpointOutput { +pub struct ModifyDbProxyEndpointOutput { ///

                                      The DBProxyEndpoint object representing the new settings for the DB proxy endpoint.

                                      - pub db_proxy_endpoint: std::option::Option, + pub db_proxy_endpoint: std::option::Option, } -impl std::fmt::Debug for ModifyDBProxyEndpointOutput { +impl std::fmt::Debug for ModifyDbProxyEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyEndpointOutput"); + let mut formatter = f.debug_struct("ModifyDbProxyEndpointOutput"); formatter.field("db_proxy_endpoint", &self.db_proxy_endpoint); formatter.finish() } } -/// See [`ModifyDBProxyEndpointOutput`](crate::output::ModifyDBProxyEndpointOutput) +/// See [`ModifyDbProxyEndpointOutput`](crate::output::ModifyDbProxyEndpointOutput) pub mod modify_db_proxy_endpoint_output { - /// A builder for [`ModifyDBProxyEndpointOutput`](crate::output::ModifyDBProxyEndpointOutput) + /// A builder for [`ModifyDbProxyEndpointOutput`](crate::output::ModifyDbProxyEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy_endpoint: std::option::Option, + pub(crate) db_proxy_endpoint: std::option::Option, } impl Builder { ///

                                      The DBProxyEndpoint object representing the new settings for the DB proxy endpoint.

                                      - pub fn db_proxy_endpoint(mut self, input: crate::model::DBProxyEndpoint) -> Self { + pub fn db_proxy_endpoint(mut self, input: crate::model::DbProxyEndpoint) -> Self { self.db_proxy_endpoint = Some(input); self } pub fn set_db_proxy_endpoint( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_proxy_endpoint = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyEndpointOutput`](crate::output::ModifyDBProxyEndpointOutput) - pub fn build(self) -> crate::output::ModifyDBProxyEndpointOutput { - crate::output::ModifyDBProxyEndpointOutput { + /// Consumes the builder and constructs a [`ModifyDbProxyEndpointOutput`](crate::output::ModifyDbProxyEndpointOutput) + pub fn build(self) -> crate::output::ModifyDbProxyEndpointOutput { + crate::output::ModifyDbProxyEndpointOutput { db_proxy_endpoint: self.db_proxy_endpoint, } } } } -impl ModifyDBProxyEndpointOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyEndpointOutput`](crate::output::ModifyDBProxyEndpointOutput) +impl ModifyDbProxyEndpointOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbProxyEndpointOutput`](crate::output::ModifyDbProxyEndpointOutput) pub fn builder() -> crate::output::modify_db_proxy_endpoint_output::Builder { crate::output::modify_db_proxy_endpoint_output::Builder::default() } @@ -2255,45 +2255,45 @@ impl ModifyDBProxyEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBProxyOutput { +pub struct ModifyDbProxyOutput { ///

                                      The DBProxy object representing the new settings for the proxy.

                                      - pub db_proxy: std::option::Option, + pub db_proxy: std::option::Option, } -impl std::fmt::Debug for ModifyDBProxyOutput { +impl std::fmt::Debug for ModifyDbProxyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBProxyOutput"); + let mut formatter = f.debug_struct("ModifyDbProxyOutput"); formatter.field("db_proxy", &self.db_proxy); formatter.finish() } } -/// See [`ModifyDBProxyOutput`](crate::output::ModifyDBProxyOutput) +/// See [`ModifyDbProxyOutput`](crate::output::ModifyDbProxyOutput) pub mod modify_db_proxy_output { - /// A builder for [`ModifyDBProxyOutput`](crate::output::ModifyDBProxyOutput) + /// A builder for [`ModifyDbProxyOutput`](crate::output::ModifyDbProxyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy: std::option::Option, + pub(crate) db_proxy: std::option::Option, } impl Builder { ///

                                      The DBProxy object representing the new settings for the proxy.

                                      - pub fn db_proxy(mut self, input: crate::model::DBProxy) -> Self { + pub fn db_proxy(mut self, input: crate::model::DbProxy) -> Self { self.db_proxy = Some(input); self } - pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { + pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { self.db_proxy = input; self } - /// Consumes the builder and constructs a [`ModifyDBProxyOutput`](crate::output::ModifyDBProxyOutput) - pub fn build(self) -> crate::output::ModifyDBProxyOutput { - crate::output::ModifyDBProxyOutput { + /// Consumes the builder and constructs a [`ModifyDbProxyOutput`](crate::output::ModifyDbProxyOutput) + pub fn build(self) -> crate::output::ModifyDbProxyOutput { + crate::output::ModifyDbProxyOutput { db_proxy: self.db_proxy, } } } } -impl ModifyDBProxyOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBProxyOutput`](crate::output::ModifyDBProxyOutput) +impl ModifyDbProxyOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbProxyOutput`](crate::output::ModifyDbProxyOutput) pub fn builder() -> crate::output::modify_db_proxy_output::Builder { crate::output::modify_db_proxy_output::Builder::default() } @@ -2305,20 +2305,20 @@ impl ModifyDBProxyOutput { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBParameterGroupOutput { +pub struct ModifyDbParameterGroupOutput { ///

                                      The name of the DB parameter group.

                                      pub db_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for ModifyDBParameterGroupOutput { +impl std::fmt::Debug for ModifyDbParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBParameterGroupOutput"); + let mut formatter = f.debug_struct("ModifyDbParameterGroupOutput"); formatter.field("db_parameter_group_name", &self.db_parameter_group_name); formatter.finish() } } -/// See [`ModifyDBParameterGroupOutput`](crate::output::ModifyDBParameterGroupOutput) +/// See [`ModifyDbParameterGroupOutput`](crate::output::ModifyDbParameterGroupOutput) pub mod modify_db_parameter_group_output { - /// A builder for [`ModifyDBParameterGroupOutput`](crate::output::ModifyDBParameterGroupOutput) + /// A builder for [`ModifyDbParameterGroupOutput`](crate::output::ModifyDbParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2337,16 +2337,16 @@ pub mod modify_db_parameter_group_output { self.db_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`ModifyDBParameterGroupOutput`](crate::output::ModifyDBParameterGroupOutput) - pub fn build(self) -> crate::output::ModifyDBParameterGroupOutput { - crate::output::ModifyDBParameterGroupOutput { + /// Consumes the builder and constructs a [`ModifyDbParameterGroupOutput`](crate::output::ModifyDbParameterGroupOutput) + pub fn build(self) -> crate::output::ModifyDbParameterGroupOutput { + crate::output::ModifyDbParameterGroupOutput { db_parameter_group_name: self.db_parameter_group_name, } } } } -impl ModifyDBParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBParameterGroupOutput`](crate::output::ModifyDBParameterGroupOutput) +impl ModifyDbParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbParameterGroupOutput`](crate::output::ModifyDbParameterGroupOutput) pub fn builder() -> crate::output::modify_db_parameter_group_output::Builder { crate::output::modify_db_parameter_group_output::Builder::default() } @@ -2354,54 +2354,54 @@ impl ModifyDBParameterGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBInstanceOutput { +pub struct ModifyDbInstanceOutput { ///

                                      Contains the details of an Amazon RDS DB instance. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for ModifyDBInstanceOutput { +impl std::fmt::Debug for ModifyDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBInstanceOutput"); + let mut formatter = f.debug_struct("ModifyDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`ModifyDBInstanceOutput`](crate::output::ModifyDBInstanceOutput) +/// See [`ModifyDbInstanceOutput`](crate::output::ModifyDbInstanceOutput) pub mod modify_db_instance_output { - /// A builder for [`ModifyDBInstanceOutput`](crate::output::ModifyDBInstanceOutput) + /// A builder for [`ModifyDbInstanceOutput`](crate::output::ModifyDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                      Contains the details of an Amazon RDS DB instance. ///

                                      ///

                                      This data type is used as a response element in the DescribeDBInstances action. ///

                                      - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`ModifyDBInstanceOutput`](crate::output::ModifyDBInstanceOutput) - pub fn build(self) -> crate::output::ModifyDBInstanceOutput { - crate::output::ModifyDBInstanceOutput { + /// Consumes the builder and constructs a [`ModifyDbInstanceOutput`](crate::output::ModifyDbInstanceOutput) + pub fn build(self) -> crate::output::ModifyDbInstanceOutput { + crate::output::ModifyDbInstanceOutput { db_instance: self.db_instance, } } } } -impl ModifyDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBInstanceOutput`](crate::output::ModifyDBInstanceOutput) +impl ModifyDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbInstanceOutput`](crate::output::ModifyDbInstanceOutput) pub fn builder() -> crate::output::modify_db_instance_output::Builder { crate::output::modify_db_instance_output::Builder::default() } @@ -2409,18 +2409,18 @@ impl ModifyDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterSnapshotAttributeOutput { +pub struct ModifyDbClusterSnapshotAttributeOutput { ///

                                      Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes /// API action.

                                      ///

                                      Manual DB cluster snapshot attributes are used to authorize other AWS accounts /// to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute /// API action.

                                      pub db_cluster_snapshot_attributes_result: - std::option::Option, + std::option::Option, } -impl std::fmt::Debug for ModifyDBClusterSnapshotAttributeOutput { +impl std::fmt::Debug for ModifyDbClusterSnapshotAttributeOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterSnapshotAttributeOutput"); + let mut formatter = f.debug_struct("ModifyDbClusterSnapshotAttributeOutput"); formatter.field( "db_cluster_snapshot_attributes_result", &self.db_cluster_snapshot_attributes_result, @@ -2428,14 +2428,14 @@ impl std::fmt::Debug for ModifyDBClusterSnapshotAttributeOutput { formatter.finish() } } -/// See [`ModifyDBClusterSnapshotAttributeOutput`](crate::output::ModifyDBClusterSnapshotAttributeOutput) +/// See [`ModifyDbClusterSnapshotAttributeOutput`](crate::output::ModifyDbClusterSnapshotAttributeOutput) pub mod modify_db_cluster_snapshot_attribute_output { - /// A builder for [`ModifyDBClusterSnapshotAttributeOutput`](crate::output::ModifyDBClusterSnapshotAttributeOutput) + /// A builder for [`ModifyDbClusterSnapshotAttributeOutput`](crate::output::ModifyDbClusterSnapshotAttributeOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_cluster_snapshot_attributes_result: - std::option::Option, + std::option::Option, } impl Builder { ///

                                      Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes @@ -2445,28 +2445,28 @@ pub mod modify_db_cluster_snapshot_attribute_output { /// API action.

                                      pub fn db_cluster_snapshot_attributes_result( mut self, - input: crate::model::DBClusterSnapshotAttributesResult, + input: crate::model::DbClusterSnapshotAttributesResult, ) -> Self { self.db_cluster_snapshot_attributes_result = Some(input); self } pub fn set_db_cluster_snapshot_attributes_result( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_snapshot_attributes_result = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterSnapshotAttributeOutput`](crate::output::ModifyDBClusterSnapshotAttributeOutput) - pub fn build(self) -> crate::output::ModifyDBClusterSnapshotAttributeOutput { - crate::output::ModifyDBClusterSnapshotAttributeOutput { + /// Consumes the builder and constructs a [`ModifyDbClusterSnapshotAttributeOutput`](crate::output::ModifyDbClusterSnapshotAttributeOutput) + pub fn build(self) -> crate::output::ModifyDbClusterSnapshotAttributeOutput { + crate::output::ModifyDbClusterSnapshotAttributeOutput { db_cluster_snapshot_attributes_result: self.db_cluster_snapshot_attributes_result, } } } } -impl ModifyDBClusterSnapshotAttributeOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterSnapshotAttributeOutput`](crate::output::ModifyDBClusterSnapshotAttributeOutput) +impl ModifyDbClusterSnapshotAttributeOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbClusterSnapshotAttributeOutput`](crate::output::ModifyDbClusterSnapshotAttributeOutput) pub fn builder() -> crate::output::modify_db_cluster_snapshot_attribute_output::Builder { crate::output::modify_db_cluster_snapshot_attribute_output::Builder::default() } @@ -2475,7 +2475,7 @@ impl ModifyDBClusterSnapshotAttributeOutput { ///

                                      #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterParameterGroupOutput { +pub struct ModifyDbClusterParameterGroupOutput { ///

                                      The name of the DB cluster parameter group.

                                      ///

                                      Constraints:

                                      ///
                                        @@ -2494,9 +2494,9 @@ pub struct ModifyDBClusterParameterGroupOutput { /// pub db_cluster_parameter_group_name: std::option::Option, } -impl std::fmt::Debug for ModifyDBClusterParameterGroupOutput { +impl std::fmt::Debug for ModifyDbClusterParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterParameterGroupOutput"); + let mut formatter = f.debug_struct("ModifyDbClusterParameterGroupOutput"); formatter.field( "db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name, @@ -2504,9 +2504,9 @@ impl std::fmt::Debug for ModifyDBClusterParameterGroupOutput { formatter.finish() } } -/// See [`ModifyDBClusterParameterGroupOutput`](crate::output::ModifyDBClusterParameterGroupOutput) +/// See [`ModifyDbClusterParameterGroupOutput`](crate::output::ModifyDbClusterParameterGroupOutput) pub mod modify_db_cluster_parameter_group_output { - /// A builder for [`ModifyDBClusterParameterGroupOutput`](crate::output::ModifyDBClusterParameterGroupOutput) + /// A builder for [`ModifyDbClusterParameterGroupOutput`](crate::output::ModifyDbClusterParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2543,16 +2543,16 @@ pub mod modify_db_cluster_parameter_group_output { self.db_cluster_parameter_group_name = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterParameterGroupOutput`](crate::output::ModifyDBClusterParameterGroupOutput) - pub fn build(self) -> crate::output::ModifyDBClusterParameterGroupOutput { - crate::output::ModifyDBClusterParameterGroupOutput { + /// Consumes the builder and constructs a [`ModifyDbClusterParameterGroupOutput`](crate::output::ModifyDbClusterParameterGroupOutput) + pub fn build(self) -> crate::output::ModifyDbClusterParameterGroupOutput { + crate::output::ModifyDbClusterParameterGroupOutput { db_cluster_parameter_group_name: self.db_cluster_parameter_group_name, } } } } -impl ModifyDBClusterParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterParameterGroupOutput`](crate::output::ModifyDBClusterParameterGroupOutput) +impl ModifyDbClusterParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbClusterParameterGroupOutput`](crate::output::ModifyDbClusterParameterGroupOutput) pub fn builder() -> crate::output::modify_db_cluster_parameter_group_output::Builder { crate::output::modify_db_cluster_parameter_group_output::Builder::default() } @@ -2586,7 +2586,7 @@ impl ModifyDBClusterParameterGroupOutput { /// see Endpoint.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterEndpointOutput { +pub struct ModifyDbClusterEndpointOutput { ///

                                        The identifier associated with the endpoint. This parameter is stored as a lowercase string.

                                        pub db_cluster_endpoint_identifier: std::option::Option, ///

                                        The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is @@ -2613,9 +2613,9 @@ pub struct ModifyDBClusterEndpointOutput { ///

                                        The Amazon Resource Name (ARN) for the endpoint.

                                        pub db_cluster_endpoint_arn: std::option::Option, } -impl std::fmt::Debug for ModifyDBClusterEndpointOutput { +impl std::fmt::Debug for ModifyDbClusterEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterEndpointOutput"); + let mut formatter = f.debug_struct("ModifyDbClusterEndpointOutput"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -2635,9 +2635,9 @@ impl std::fmt::Debug for ModifyDBClusterEndpointOutput { formatter.finish() } } -/// See [`ModifyDBClusterEndpointOutput`](crate::output::ModifyDBClusterEndpointOutput) +/// See [`ModifyDbClusterEndpointOutput`](crate::output::ModifyDbClusterEndpointOutput) pub mod modify_db_cluster_endpoint_output { - /// A builder for [`ModifyDBClusterEndpointOutput`](crate::output::ModifyDBClusterEndpointOutput) + /// A builder for [`ModifyDbClusterEndpointOutput`](crate::output::ModifyDbClusterEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2779,9 +2779,9 @@ pub mod modify_db_cluster_endpoint_output { self.db_cluster_endpoint_arn = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterEndpointOutput`](crate::output::ModifyDBClusterEndpointOutput) - pub fn build(self) -> crate::output::ModifyDBClusterEndpointOutput { - crate::output::ModifyDBClusterEndpointOutput { + /// Consumes the builder and constructs a [`ModifyDbClusterEndpointOutput`](crate::output::ModifyDbClusterEndpointOutput) + pub fn build(self) -> crate::output::ModifyDbClusterEndpointOutput { + crate::output::ModifyDbClusterEndpointOutput { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_resource_identifier: self @@ -2797,8 +2797,8 @@ pub mod modify_db_cluster_endpoint_output { } } } -impl ModifyDBClusterEndpointOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterEndpointOutput`](crate::output::ModifyDBClusterEndpointOutput) +impl ModifyDbClusterEndpointOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbClusterEndpointOutput`](crate::output::ModifyDbClusterEndpointOutput) pub fn builder() -> crate::output::modify_db_cluster_endpoint_output::Builder { crate::output::modify_db_cluster_endpoint_output::Builder::default() } @@ -2806,28 +2806,28 @@ impl ModifyDBClusterEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDBClusterOutput { +pub struct ModifyDbClusterOutput { ///

                                        Contains the details of an Amazon Aurora DB cluster. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for ModifyDBClusterOutput { +impl std::fmt::Debug for ModifyDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDBClusterOutput"); + let mut formatter = f.debug_struct("ModifyDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`ModifyDBClusterOutput`](crate::output::ModifyDBClusterOutput) +/// See [`ModifyDbClusterOutput`](crate::output::ModifyDbClusterOutput) pub mod modify_db_cluster_output { - /// A builder for [`ModifyDBClusterOutput`](crate::output::ModifyDBClusterOutput) + /// A builder for [`ModifyDbClusterOutput`](crate::output::ModifyDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon Aurora DB cluster. @@ -2835,27 +2835,27 @@ pub mod modify_db_cluster_output { ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`ModifyDBClusterOutput`](crate::output::ModifyDBClusterOutput) - pub fn build(self) -> crate::output::ModifyDBClusterOutput { - crate::output::ModifyDBClusterOutput { + /// Consumes the builder and constructs a [`ModifyDbClusterOutput`](crate::output::ModifyDbClusterOutput) + pub fn build(self) -> crate::output::ModifyDbClusterOutput { + crate::output::ModifyDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl ModifyDBClusterOutput { - /// Creates a new builder-style object to manufacture [`ModifyDBClusterOutput`](crate::output::ModifyDBClusterOutput) +impl ModifyDbClusterOutput { + /// Creates a new builder-style object to manufacture [`ModifyDbClusterOutput`](crate::output::ModifyDbClusterOutput) pub fn builder() -> crate::output::modify_db_cluster_output::Builder { crate::output::modify_db_cluster_output::Builder::default() } @@ -2863,7 +2863,7 @@ impl ModifyDBClusterOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyCurrentDBClusterCapacityOutput { +pub struct ModifyCurrentDbClusterCapacityOutput { ///

                                        A user-supplied DB cluster identifier. This identifier is the unique key that /// identifies a DB cluster.

                                        pub db_cluster_identifier: std::option::Option, @@ -2877,9 +2877,9 @@ pub struct ModifyCurrentDBClusterCapacityOutput { /// ForceApplyCapacityChange or RollbackCapacityChange.

                                        pub timeout_action: std::option::Option, } -impl std::fmt::Debug for ModifyCurrentDBClusterCapacityOutput { +impl std::fmt::Debug for ModifyCurrentDbClusterCapacityOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyCurrentDBClusterCapacityOutput"); + let mut formatter = f.debug_struct("ModifyCurrentDbClusterCapacityOutput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("pending_capacity", &self.pending_capacity); formatter.field("current_capacity", &self.current_capacity); @@ -2888,9 +2888,9 @@ impl std::fmt::Debug for ModifyCurrentDBClusterCapacityOutput { formatter.finish() } } -/// See [`ModifyCurrentDBClusterCapacityOutput`](crate::output::ModifyCurrentDBClusterCapacityOutput) +/// See [`ModifyCurrentDbClusterCapacityOutput`](crate::output::ModifyCurrentDbClusterCapacityOutput) pub mod modify_current_db_cluster_capacity_output { - /// A builder for [`ModifyCurrentDBClusterCapacityOutput`](crate::output::ModifyCurrentDBClusterCapacityOutput) + /// A builder for [`ModifyCurrentDbClusterCapacityOutput`](crate::output::ModifyCurrentDbClusterCapacityOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2954,9 +2954,9 @@ pub mod modify_current_db_cluster_capacity_output { self.timeout_action = input; self } - /// Consumes the builder and constructs a [`ModifyCurrentDBClusterCapacityOutput`](crate::output::ModifyCurrentDBClusterCapacityOutput) - pub fn build(self) -> crate::output::ModifyCurrentDBClusterCapacityOutput { - crate::output::ModifyCurrentDBClusterCapacityOutput { + /// Consumes the builder and constructs a [`ModifyCurrentDbClusterCapacityOutput`](crate::output::ModifyCurrentDbClusterCapacityOutput) + pub fn build(self) -> crate::output::ModifyCurrentDbClusterCapacityOutput { + crate::output::ModifyCurrentDbClusterCapacityOutput { db_cluster_identifier: self.db_cluster_identifier, pending_capacity: self.pending_capacity, current_capacity: self.current_capacity, @@ -2966,8 +2966,8 @@ pub mod modify_current_db_cluster_capacity_output { } } } -impl ModifyCurrentDBClusterCapacityOutput { - /// Creates a new builder-style object to manufacture [`ModifyCurrentDBClusterCapacityOutput`](crate::output::ModifyCurrentDBClusterCapacityOutput) +impl ModifyCurrentDbClusterCapacityOutput { + /// Creates a new builder-style object to manufacture [`ModifyCurrentDbClusterCapacityOutput`](crate::output::ModifyCurrentDbClusterCapacityOutput) pub fn builder() -> crate::output::modify_current_db_cluster_capacity_output::Builder { crate::output::modify_current_db_cluster_capacity_output::Builder::default() } @@ -3303,28 +3303,28 @@ impl FailoverGlobalClusterOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct FailoverDBClusterOutput { +pub struct FailoverDbClusterOutput { ///

                                        Contains the details of an Amazon Aurora DB cluster. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for FailoverDBClusterOutput { +impl std::fmt::Debug for FailoverDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FailoverDBClusterOutput"); + let mut formatter = f.debug_struct("FailoverDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`FailoverDBClusterOutput`](crate::output::FailoverDBClusterOutput) +/// See [`FailoverDbClusterOutput`](crate::output::FailoverDbClusterOutput) pub mod failover_db_cluster_output { - /// A builder for [`FailoverDBClusterOutput`](crate::output::FailoverDBClusterOutput) + /// A builder for [`FailoverDbClusterOutput`](crate::output::FailoverDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon Aurora DB cluster. @@ -3332,27 +3332,27 @@ pub mod failover_db_cluster_output { ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`FailoverDBClusterOutput`](crate::output::FailoverDBClusterOutput) - pub fn build(self) -> crate::output::FailoverDBClusterOutput { - crate::output::FailoverDBClusterOutput { + /// Consumes the builder and constructs a [`FailoverDbClusterOutput`](crate::output::FailoverDbClusterOutput) + pub fn build(self) -> crate::output::FailoverDbClusterOutput { + crate::output::FailoverDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl FailoverDBClusterOutput { - /// Creates a new builder-style object to manufacture [`FailoverDBClusterOutput`](crate::output::FailoverDBClusterOutput) +impl FailoverDbClusterOutput { + /// Creates a new builder-style object to manufacture [`FailoverDbClusterOutput`](crate::output::FailoverDbClusterOutput) pub fn builder() -> crate::output::failover_db_cluster_output::Builder { crate::output::failover_db_cluster_output::Builder::default() } @@ -3361,7 +3361,7 @@ impl FailoverDBClusterOutput { ///

                                        This data type is used as a response element to DownloadDBLogFilePortion.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DownloadDBLogFilePortionOutput { +pub struct DownloadDbLogFilePortionOutput { ///

                                        Entries from the specified log file.

                                        pub log_file_data: std::option::Option, ///

                                        A pagination token that can be used in a later DownloadDBLogFilePortion request.

                                        @@ -3369,18 +3369,18 @@ pub struct DownloadDBLogFilePortionOutput { ///

                                        Boolean value that if true, indicates there is more data to be downloaded.

                                        pub additional_data_pending: bool, } -impl std::fmt::Debug for DownloadDBLogFilePortionOutput { +impl std::fmt::Debug for DownloadDbLogFilePortionOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DownloadDBLogFilePortionOutput"); + let mut formatter = f.debug_struct("DownloadDbLogFilePortionOutput"); formatter.field("log_file_data", &self.log_file_data); formatter.field("marker", &self.marker); formatter.field("additional_data_pending", &self.additional_data_pending); formatter.finish() } } -/// See [`DownloadDBLogFilePortionOutput`](crate::output::DownloadDBLogFilePortionOutput) +/// See [`DownloadDbLogFilePortionOutput`](crate::output::DownloadDbLogFilePortionOutput) pub mod download_db_log_file_portion_output { - /// A builder for [`DownloadDBLogFilePortionOutput`](crate::output::DownloadDBLogFilePortionOutput) + /// A builder for [`DownloadDbLogFilePortionOutput`](crate::output::DownloadDbLogFilePortionOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3419,9 +3419,9 @@ pub mod download_db_log_file_portion_output { self.additional_data_pending = input; self } - /// Consumes the builder and constructs a [`DownloadDBLogFilePortionOutput`](crate::output::DownloadDBLogFilePortionOutput) - pub fn build(self) -> crate::output::DownloadDBLogFilePortionOutput { - crate::output::DownloadDBLogFilePortionOutput { + /// Consumes the builder and constructs a [`DownloadDbLogFilePortionOutput`](crate::output::DownloadDbLogFilePortionOutput) + pub fn build(self) -> crate::output::DownloadDbLogFilePortionOutput { + crate::output::DownloadDbLogFilePortionOutput { log_file_data: self.log_file_data, marker: self.marker, additional_data_pending: self.additional_data_pending.unwrap_or_default(), @@ -3429,8 +3429,8 @@ pub mod download_db_log_file_portion_output { } } } -impl DownloadDBLogFilePortionOutput { - /// Creates a new builder-style object to manufacture [`DownloadDBLogFilePortionOutput`](crate::output::DownloadDBLogFilePortionOutput) +impl DownloadDbLogFilePortionOutput { + /// Creates a new builder-style object to manufacture [`DownloadDbLogFilePortionOutput`](crate::output::DownloadDbLogFilePortionOutput) pub fn builder() -> crate::output::download_db_log_file_portion_output::Builder { crate::output::download_db_log_file_portion_output::Builder::default() } @@ -3438,7 +3438,7 @@ impl DownloadDBLogFilePortionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeValidDBInstanceModificationsOutput { +pub struct DescribeValidDbInstanceModificationsOutput { ///

                                        Information about valid modifications that you can make to your DB instance. /// Contains the result of a successful call to the /// DescribeValidDBInstanceModifications action. @@ -3446,11 +3446,11 @@ pub struct DescribeValidDBInstanceModificationsOutput { /// ModifyDBInstance. ///

                                        pub valid_db_instance_modifications_message: - std::option::Option, + std::option::Option, } -impl std::fmt::Debug for DescribeValidDBInstanceModificationsOutput { +impl std::fmt::Debug for DescribeValidDbInstanceModificationsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeValidDBInstanceModificationsOutput"); + let mut formatter = f.debug_struct("DescribeValidDbInstanceModificationsOutput"); formatter.field( "valid_db_instance_modifications_message", &self.valid_db_instance_modifications_message, @@ -3458,14 +3458,14 @@ impl std::fmt::Debug for DescribeValidDBInstanceModificationsOutput { formatter.finish() } } -/// See [`DescribeValidDBInstanceModificationsOutput`](crate::output::DescribeValidDBInstanceModificationsOutput) +/// See [`DescribeValidDbInstanceModificationsOutput`](crate::output::DescribeValidDbInstanceModificationsOutput) pub mod describe_valid_db_instance_modifications_output { - /// A builder for [`DescribeValidDBInstanceModificationsOutput`](crate::output::DescribeValidDBInstanceModificationsOutput) + /// A builder for [`DescribeValidDbInstanceModificationsOutput`](crate::output::DescribeValidDbInstanceModificationsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) valid_db_instance_modifications_message: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        Information about valid modifications that you can make to your DB instance. @@ -3476,29 +3476,29 @@ pub mod describe_valid_db_instance_modifications_output { ///

                                        pub fn valid_db_instance_modifications_message( mut self, - input: crate::model::ValidDBInstanceModificationsMessage, + input: crate::model::ValidDbInstanceModificationsMessage, ) -> Self { self.valid_db_instance_modifications_message = Some(input); self } pub fn set_valid_db_instance_modifications_message( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.valid_db_instance_modifications_message = input; self } - /// Consumes the builder and constructs a [`DescribeValidDBInstanceModificationsOutput`](crate::output::DescribeValidDBInstanceModificationsOutput) - pub fn build(self) -> crate::output::DescribeValidDBInstanceModificationsOutput { - crate::output::DescribeValidDBInstanceModificationsOutput { + /// Consumes the builder and constructs a [`DescribeValidDbInstanceModificationsOutput`](crate::output::DescribeValidDbInstanceModificationsOutput) + pub fn build(self) -> crate::output::DescribeValidDbInstanceModificationsOutput { + crate::output::DescribeValidDbInstanceModificationsOutput { valid_db_instance_modifications_message: self .valid_db_instance_modifications_message, } } } } -impl DescribeValidDBInstanceModificationsOutput { - /// Creates a new builder-style object to manufacture [`DescribeValidDBInstanceModificationsOutput`](crate::output::DescribeValidDBInstanceModificationsOutput) +impl DescribeValidDbInstanceModificationsOutput { + /// Creates a new builder-style object to manufacture [`DescribeValidDbInstanceModificationsOutput`](crate::output::DescribeValidDbInstanceModificationsOutput) pub fn builder() -> crate::output::describe_valid_db_instance_modifications_output::Builder { crate::output::describe_valid_db_instance_modifications_output::Builder::default() } @@ -3585,7 +3585,7 @@ impl DescribeSourceRegionsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeReservedDBInstancesOfferingsOutput { +pub struct DescribeReservedDbInstancesOfferingsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -3595,11 +3595,11 @@ pub struct DescribeReservedDBInstancesOfferingsOutput { pub marker: std::option::Option, ///

                                        A list of reserved DB instance offerings.

                                        pub reserved_db_instances_offerings: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for DescribeReservedDBInstancesOfferingsOutput { +impl std::fmt::Debug for DescribeReservedDbInstancesOfferingsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeReservedDBInstancesOfferingsOutput"); + let mut formatter = f.debug_struct("DescribeReservedDbInstancesOfferingsOutput"); formatter.field("marker", &self.marker); formatter.field( "reserved_db_instances_offerings", @@ -3608,15 +3608,15 @@ impl std::fmt::Debug for DescribeReservedDBInstancesOfferingsOutput { formatter.finish() } } -/// See [`DescribeReservedDBInstancesOfferingsOutput`](crate::output::DescribeReservedDBInstancesOfferingsOutput) +/// See [`DescribeReservedDbInstancesOfferingsOutput`](crate::output::DescribeReservedDbInstancesOfferingsOutput) pub mod describe_reserved_db_instances_offerings_output { - /// A builder for [`DescribeReservedDBInstancesOfferingsOutput`](crate::output::DescribeReservedDBInstancesOfferingsOutput) + /// A builder for [`DescribeReservedDbInstancesOfferingsOutput`](crate::output::DescribeReservedDbInstancesOfferingsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) reserved_db_instances_offerings: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -3635,7 +3635,7 @@ pub mod describe_reserved_db_instances_offerings_output { } pub fn reserved_db_instances_offerings( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.reserved_db_instances_offerings.unwrap_or_default(); v.push(input.into()); @@ -3644,22 +3644,22 @@ pub mod describe_reserved_db_instances_offerings_output { } pub fn set_reserved_db_instances_offerings( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.reserved_db_instances_offerings = input; self } - /// Consumes the builder and constructs a [`DescribeReservedDBInstancesOfferingsOutput`](crate::output::DescribeReservedDBInstancesOfferingsOutput) - pub fn build(self) -> crate::output::DescribeReservedDBInstancesOfferingsOutput { - crate::output::DescribeReservedDBInstancesOfferingsOutput { + /// Consumes the builder and constructs a [`DescribeReservedDbInstancesOfferingsOutput`](crate::output::DescribeReservedDbInstancesOfferingsOutput) + pub fn build(self) -> crate::output::DescribeReservedDbInstancesOfferingsOutput { + crate::output::DescribeReservedDbInstancesOfferingsOutput { marker: self.marker, reserved_db_instances_offerings: self.reserved_db_instances_offerings, } } } } -impl DescribeReservedDBInstancesOfferingsOutput { - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesOfferingsOutput`](crate::output::DescribeReservedDBInstancesOfferingsOutput) +impl DescribeReservedDbInstancesOfferingsOutput { + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesOfferingsOutput`](crate::output::DescribeReservedDbInstancesOfferingsOutput) pub fn builder() -> crate::output::describe_reserved_db_instances_offerings_output::Builder { crate::output::describe_reserved_db_instances_offerings_output::Builder::default() } @@ -3670,7 +3670,7 @@ impl DescribeReservedDBInstancesOfferingsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeReservedDBInstancesOutput { +pub struct DescribeReservedDbInstancesOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -3679,25 +3679,25 @@ pub struct DescribeReservedDBInstancesOutput { ///

                                        pub marker: std::option::Option, ///

                                        A list of reserved DB instances.

                                        - pub reserved_db_instances: std::option::Option>, + pub reserved_db_instances: std::option::Option>, } -impl std::fmt::Debug for DescribeReservedDBInstancesOutput { +impl std::fmt::Debug for DescribeReservedDbInstancesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeReservedDBInstancesOutput"); + let mut formatter = f.debug_struct("DescribeReservedDbInstancesOutput"); formatter.field("marker", &self.marker); formatter.field("reserved_db_instances", &self.reserved_db_instances); formatter.finish() } } -/// See [`DescribeReservedDBInstancesOutput`](crate::output::DescribeReservedDBInstancesOutput) +/// See [`DescribeReservedDbInstancesOutput`](crate::output::DescribeReservedDbInstancesOutput) pub mod describe_reserved_db_instances_output { - /// A builder for [`DescribeReservedDBInstancesOutput`](crate::output::DescribeReservedDBInstancesOutput) + /// A builder for [`DescribeReservedDbInstancesOutput`](crate::output::DescribeReservedDbInstancesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) reserved_db_instances: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -3716,7 +3716,7 @@ pub mod describe_reserved_db_instances_output { } pub fn reserved_db_instances( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.reserved_db_instances.unwrap_or_default(); v.push(input.into()); @@ -3725,22 +3725,22 @@ pub mod describe_reserved_db_instances_output { } pub fn set_reserved_db_instances( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.reserved_db_instances = input; self } - /// Consumes the builder and constructs a [`DescribeReservedDBInstancesOutput`](crate::output::DescribeReservedDBInstancesOutput) - pub fn build(self) -> crate::output::DescribeReservedDBInstancesOutput { - crate::output::DescribeReservedDBInstancesOutput { + /// Consumes the builder and constructs a [`DescribeReservedDbInstancesOutput`](crate::output::DescribeReservedDbInstancesOutput) + pub fn build(self) -> crate::output::DescribeReservedDbInstancesOutput { + crate::output::DescribeReservedDbInstancesOutput { marker: self.marker, reserved_db_instances: self.reserved_db_instances, } } } } -impl DescribeReservedDBInstancesOutput { - /// Creates a new builder-style object to manufacture [`DescribeReservedDBInstancesOutput`](crate::output::DescribeReservedDBInstancesOutput) +impl DescribeReservedDbInstancesOutput { + /// Creates a new builder-style object to manufacture [`DescribeReservedDbInstancesOutput`](crate::output::DescribeReservedDbInstancesOutput) pub fn builder() -> crate::output::describe_reserved_db_instances_output::Builder { crate::output::describe_reserved_db_instances_output::Builder::default() } @@ -3838,10 +3838,10 @@ impl DescribePendingMaintenanceActionsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOrderableDBInstanceOptionsOutput { +pub struct DescribeOrderableDbInstanceOptionsOutput { ///

                                        An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

                                        pub orderable_db_instance_options: - std::option::Option>, + std::option::Option>, ///

                                        /// An optional pagination token provided by a previous /// OrderableDBInstanceOptions request. @@ -3851,9 +3851,9 @@ pub struct DescribeOrderableDBInstanceOptionsOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeOrderableDBInstanceOptionsOutput { +impl std::fmt::Debug for DescribeOrderableDbInstanceOptionsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOrderableDBInstanceOptionsOutput"); + let mut formatter = f.debug_struct("DescribeOrderableDbInstanceOptionsOutput"); formatter.field( "orderable_db_instance_options", &self.orderable_db_instance_options, @@ -3862,20 +3862,20 @@ impl std::fmt::Debug for DescribeOrderableDBInstanceOptionsOutput { formatter.finish() } } -/// See [`DescribeOrderableDBInstanceOptionsOutput`](crate::output::DescribeOrderableDBInstanceOptionsOutput) +/// See [`DescribeOrderableDbInstanceOptionsOutput`](crate::output::DescribeOrderableDbInstanceOptionsOutput) pub mod describe_orderable_db_instance_options_output { - /// A builder for [`DescribeOrderableDBInstanceOptionsOutput`](crate::output::DescribeOrderableDBInstanceOptionsOutput) + /// A builder for [`DescribeOrderableDbInstanceOptionsOutput`](crate::output::DescribeOrderableDbInstanceOptionsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) orderable_db_instance_options: - std::option::Option>, + std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { pub fn orderable_db_instance_options( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.orderable_db_instance_options.unwrap_or_default(); v.push(input.into()); @@ -3884,7 +3884,7 @@ pub mod describe_orderable_db_instance_options_output { } pub fn set_orderable_db_instance_options( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.orderable_db_instance_options = input; self @@ -3904,17 +3904,17 @@ pub mod describe_orderable_db_instance_options_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeOrderableDBInstanceOptionsOutput`](crate::output::DescribeOrderableDBInstanceOptionsOutput) - pub fn build(self) -> crate::output::DescribeOrderableDBInstanceOptionsOutput { - crate::output::DescribeOrderableDBInstanceOptionsOutput { + /// Consumes the builder and constructs a [`DescribeOrderableDbInstanceOptionsOutput`](crate::output::DescribeOrderableDbInstanceOptionsOutput) + pub fn build(self) -> crate::output::DescribeOrderableDbInstanceOptionsOutput { + crate::output::DescribeOrderableDbInstanceOptionsOutput { orderable_db_instance_options: self.orderable_db_instance_options, marker: self.marker, } } } } -impl DescribeOrderableDBInstanceOptionsOutput { - /// Creates a new builder-style object to manufacture [`DescribeOrderableDBInstanceOptionsOutput`](crate::output::DescribeOrderableDBInstanceOptionsOutput) +impl DescribeOrderableDbInstanceOptionsOutput { + /// Creates a new builder-style object to manufacture [`DescribeOrderableDbInstanceOptionsOutput`](crate::output::DescribeOrderableDbInstanceOptionsOutput) pub fn builder() -> crate::output::describe_orderable_db_instance_options_output::Builder { crate::output::describe_orderable_db_instance_options_output::Builder::default() } @@ -4617,7 +4617,7 @@ impl DescribeEngineDefaultClusterParametersOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSubnetGroupsOutput { +pub struct DescribeDbSubnetGroupsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -4628,25 +4628,25 @@ pub struct DescribeDBSubnetGroupsOutput { ///

                                        /// A list of DBSubnetGroup instances. ///

                                        - pub db_subnet_groups: std::option::Option>, + pub db_subnet_groups: std::option::Option>, } -impl std::fmt::Debug for DescribeDBSubnetGroupsOutput { +impl std::fmt::Debug for DescribeDbSubnetGroupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSubnetGroupsOutput"); + let mut formatter = f.debug_struct("DescribeDbSubnetGroupsOutput"); formatter.field("marker", &self.marker); formatter.field("db_subnet_groups", &self.db_subnet_groups); formatter.finish() } } -/// See [`DescribeDBSubnetGroupsOutput`](crate::output::DescribeDBSubnetGroupsOutput) +/// See [`DescribeDbSubnetGroupsOutput`](crate::output::DescribeDbSubnetGroupsOutput) pub mod describe_db_subnet_groups_output { - /// A builder for [`DescribeDBSubnetGroupsOutput`](crate::output::DescribeDBSubnetGroupsOutput) + /// A builder for [`DescribeDbSubnetGroupsOutput`](crate::output::DescribeDbSubnetGroupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_subnet_groups: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -4663,7 +4663,7 @@ pub mod describe_db_subnet_groups_output { self.marker = input; self } - pub fn db_subnet_groups(mut self, input: impl Into) -> Self { + pub fn db_subnet_groups(mut self, input: impl Into) -> Self { let mut v = self.db_subnet_groups.unwrap_or_default(); v.push(input.into()); self.db_subnet_groups = Some(v); @@ -4671,22 +4671,22 @@ pub mod describe_db_subnet_groups_output { } pub fn set_db_subnet_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_subnet_groups = input; self } - /// Consumes the builder and constructs a [`DescribeDBSubnetGroupsOutput`](crate::output::DescribeDBSubnetGroupsOutput) - pub fn build(self) -> crate::output::DescribeDBSubnetGroupsOutput { - crate::output::DescribeDBSubnetGroupsOutput { + /// Consumes the builder and constructs a [`DescribeDbSubnetGroupsOutput`](crate::output::DescribeDbSubnetGroupsOutput) + pub fn build(self) -> crate::output::DescribeDbSubnetGroupsOutput { + crate::output::DescribeDbSubnetGroupsOutput { marker: self.marker, db_subnet_groups: self.db_subnet_groups, } } } } -impl DescribeDBSubnetGroupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBSubnetGroupsOutput`](crate::output::DescribeDBSubnetGroupsOutput) +impl DescribeDbSubnetGroupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbSubnetGroupsOutput`](crate::output::DescribeDbSubnetGroupsOutput) pub fn builder() -> crate::output::describe_db_subnet_groups_output::Builder { crate::output::describe_db_subnet_groups_output::Builder::default() } @@ -4697,7 +4697,7 @@ impl DescribeDBSubnetGroupsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSnapshotsOutput { +pub struct DescribeDbSnapshotsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -4708,24 +4708,24 @@ pub struct DescribeDBSnapshotsOutput { ///

                                        /// A list of DBSnapshot instances. ///

                                        - pub db_snapshots: std::option::Option>, + pub db_snapshots: std::option::Option>, } -impl std::fmt::Debug for DescribeDBSnapshotsOutput { +impl std::fmt::Debug for DescribeDbSnapshotsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSnapshotsOutput"); + let mut formatter = f.debug_struct("DescribeDbSnapshotsOutput"); formatter.field("marker", &self.marker); formatter.field("db_snapshots", &self.db_snapshots); formatter.finish() } } -/// See [`DescribeDBSnapshotsOutput`](crate::output::DescribeDBSnapshotsOutput) +/// See [`DescribeDbSnapshotsOutput`](crate::output::DescribeDbSnapshotsOutput) pub mod describe_db_snapshots_output { - /// A builder for [`DescribeDBSnapshotsOutput`](crate::output::DescribeDBSnapshotsOutput) + /// A builder for [`DescribeDbSnapshotsOutput`](crate::output::DescribeDbSnapshotsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, - pub(crate) db_snapshots: std::option::Option>, + pub(crate) db_snapshots: std::option::Option>, } impl Builder { ///

                                        @@ -4742,7 +4742,7 @@ pub mod describe_db_snapshots_output { self.marker = input; self } - pub fn db_snapshots(mut self, input: impl Into) -> Self { + pub fn db_snapshots(mut self, input: impl Into) -> Self { let mut v = self.db_snapshots.unwrap_or_default(); v.push(input.into()); self.db_snapshots = Some(v); @@ -4750,22 +4750,22 @@ pub mod describe_db_snapshots_output { } pub fn set_db_snapshots( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_snapshots = input; self } - /// Consumes the builder and constructs a [`DescribeDBSnapshotsOutput`](crate::output::DescribeDBSnapshotsOutput) - pub fn build(self) -> crate::output::DescribeDBSnapshotsOutput { - crate::output::DescribeDBSnapshotsOutput { + /// Consumes the builder and constructs a [`DescribeDbSnapshotsOutput`](crate::output::DescribeDbSnapshotsOutput) + pub fn build(self) -> crate::output::DescribeDbSnapshotsOutput { + crate::output::DescribeDbSnapshotsOutput { marker: self.marker, db_snapshots: self.db_snapshots, } } } } -impl DescribeDBSnapshotsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotsOutput`](crate::output::DescribeDBSnapshotsOutput) +impl DescribeDbSnapshotsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotsOutput`](crate::output::DescribeDbSnapshotsOutput) pub fn builder() -> crate::output::describe_db_snapshots_output::Builder { crate::output::describe_db_snapshots_output::Builder::default() } @@ -4773,18 +4773,18 @@ impl DescribeDBSnapshotsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSnapshotAttributesOutput { +pub struct DescribeDbSnapshotAttributesOutput { ///

                                        Contains the results of a successful call to the DescribeDBSnapshotAttributes /// API action.

                                        ///

                                        Manual DB snapshot attributes are used to authorize other AWS accounts /// to copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute /// API action.

                                        pub db_snapshot_attributes_result: - std::option::Option, + std::option::Option, } -impl std::fmt::Debug for DescribeDBSnapshotAttributesOutput { +impl std::fmt::Debug for DescribeDbSnapshotAttributesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSnapshotAttributesOutput"); + let mut formatter = f.debug_struct("DescribeDbSnapshotAttributesOutput"); formatter.field( "db_snapshot_attributes_result", &self.db_snapshot_attributes_result, @@ -4792,14 +4792,14 @@ impl std::fmt::Debug for DescribeDBSnapshotAttributesOutput { formatter.finish() } } -/// See [`DescribeDBSnapshotAttributesOutput`](crate::output::DescribeDBSnapshotAttributesOutput) +/// See [`DescribeDbSnapshotAttributesOutput`](crate::output::DescribeDbSnapshotAttributesOutput) pub mod describe_db_snapshot_attributes_output { - /// A builder for [`DescribeDBSnapshotAttributesOutput`](crate::output::DescribeDBSnapshotAttributesOutput) + /// A builder for [`DescribeDbSnapshotAttributesOutput`](crate::output::DescribeDbSnapshotAttributesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_snapshot_attributes_result: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        Contains the results of a successful call to the DescribeDBSnapshotAttributes @@ -4809,28 +4809,28 @@ pub mod describe_db_snapshot_attributes_output { /// API action.

                                        pub fn db_snapshot_attributes_result( mut self, - input: crate::model::DBSnapshotAttributesResult, + input: crate::model::DbSnapshotAttributesResult, ) -> Self { self.db_snapshot_attributes_result = Some(input); self } pub fn set_db_snapshot_attributes_result( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot_attributes_result = input; self } - /// Consumes the builder and constructs a [`DescribeDBSnapshotAttributesOutput`](crate::output::DescribeDBSnapshotAttributesOutput) - pub fn build(self) -> crate::output::DescribeDBSnapshotAttributesOutput { - crate::output::DescribeDBSnapshotAttributesOutput { + /// Consumes the builder and constructs a [`DescribeDbSnapshotAttributesOutput`](crate::output::DescribeDbSnapshotAttributesOutput) + pub fn build(self) -> crate::output::DescribeDbSnapshotAttributesOutput { + crate::output::DescribeDbSnapshotAttributesOutput { db_snapshot_attributes_result: self.db_snapshot_attributes_result, } } } } -impl DescribeDBSnapshotAttributesOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBSnapshotAttributesOutput`](crate::output::DescribeDBSnapshotAttributesOutput) +impl DescribeDbSnapshotAttributesOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbSnapshotAttributesOutput`](crate::output::DescribeDbSnapshotAttributesOutput) pub fn builder() -> crate::output::describe_db_snapshot_attributes_output::Builder { crate::output::describe_db_snapshot_attributes_output::Builder::default() } @@ -4841,7 +4841,7 @@ impl DescribeDBSnapshotAttributesOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBSecurityGroupsOutput { +pub struct DescribeDbSecurityGroupsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -4852,25 +4852,25 @@ pub struct DescribeDBSecurityGroupsOutput { ///

                                        /// A list of DBSecurityGroup instances. ///

                                        - pub db_security_groups: std::option::Option>, + pub db_security_groups: std::option::Option>, } -impl std::fmt::Debug for DescribeDBSecurityGroupsOutput { +impl std::fmt::Debug for DescribeDbSecurityGroupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBSecurityGroupsOutput"); + let mut formatter = f.debug_struct("DescribeDbSecurityGroupsOutput"); formatter.field("marker", &self.marker); formatter.field("db_security_groups", &self.db_security_groups); formatter.finish() } } -/// See [`DescribeDBSecurityGroupsOutput`](crate::output::DescribeDBSecurityGroupsOutput) +/// See [`DescribeDbSecurityGroupsOutput`](crate::output::DescribeDbSecurityGroupsOutput) pub mod describe_db_security_groups_output { - /// A builder for [`DescribeDBSecurityGroupsOutput`](crate::output::DescribeDBSecurityGroupsOutput) + /// A builder for [`DescribeDbSecurityGroupsOutput`](crate::output::DescribeDbSecurityGroupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_security_groups: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -4889,7 +4889,7 @@ pub mod describe_db_security_groups_output { } pub fn db_security_groups( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_security_groups.unwrap_or_default(); v.push(input.into()); @@ -4898,22 +4898,22 @@ pub mod describe_db_security_groups_output { } pub fn set_db_security_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_security_groups = input; self } - /// Consumes the builder and constructs a [`DescribeDBSecurityGroupsOutput`](crate::output::DescribeDBSecurityGroupsOutput) - pub fn build(self) -> crate::output::DescribeDBSecurityGroupsOutput { - crate::output::DescribeDBSecurityGroupsOutput { + /// Consumes the builder and constructs a [`DescribeDbSecurityGroupsOutput`](crate::output::DescribeDbSecurityGroupsOutput) + pub fn build(self) -> crate::output::DescribeDbSecurityGroupsOutput { + crate::output::DescribeDbSecurityGroupsOutput { marker: self.marker, db_security_groups: self.db_security_groups, } } } } -impl DescribeDBSecurityGroupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBSecurityGroupsOutput`](crate::output::DescribeDBSecurityGroupsOutput) +impl DescribeDbSecurityGroupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbSecurityGroupsOutput`](crate::output::DescribeDbSecurityGroupsOutput) pub fn builder() -> crate::output::describe_db_security_groups_output::Builder { crate::output::describe_db_security_groups_output::Builder::default() } @@ -4921,9 +4921,9 @@ impl DescribeDBSecurityGroupsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyTargetsOutput { +pub struct DescribeDbProxyTargetsOutput { ///

                                        An arbitrary number of DBProxyTarget objects, containing details of the corresponding targets.

                                        - pub targets: std::option::Option>, + pub targets: std::option::Option>, ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes only records beyond the marker, @@ -4931,25 +4931,25 @@ pub struct DescribeDBProxyTargetsOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyTargetsOutput { +impl std::fmt::Debug for DescribeDbProxyTargetsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyTargetsOutput"); + let mut formatter = f.debug_struct("DescribeDbProxyTargetsOutput"); formatter.field("targets", &self.targets); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBProxyTargetsOutput`](crate::output::DescribeDBProxyTargetsOutput) +/// See [`DescribeDbProxyTargetsOutput`](crate::output::DescribeDbProxyTargetsOutput) pub mod describe_db_proxy_targets_output { - /// A builder for [`DescribeDBProxyTargetsOutput`](crate::output::DescribeDBProxyTargetsOutput) + /// A builder for [`DescribeDbProxyTargetsOutput`](crate::output::DescribeDbProxyTargetsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) targets: std::option::Option>, + pub(crate) targets: std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { - pub fn targets(mut self, input: impl Into) -> Self { + pub fn targets(mut self, input: impl Into) -> Self { let mut v = self.targets.unwrap_or_default(); v.push(input.into()); self.targets = Some(v); @@ -4957,7 +4957,7 @@ pub mod describe_db_proxy_targets_output { } pub fn set_targets( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.targets = input; self @@ -4975,17 +4975,17 @@ pub mod describe_db_proxy_targets_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyTargetsOutput`](crate::output::DescribeDBProxyTargetsOutput) - pub fn build(self) -> crate::output::DescribeDBProxyTargetsOutput { - crate::output::DescribeDBProxyTargetsOutput { + /// Consumes the builder and constructs a [`DescribeDbProxyTargetsOutput`](crate::output::DescribeDbProxyTargetsOutput) + pub fn build(self) -> crate::output::DescribeDbProxyTargetsOutput { + crate::output::DescribeDbProxyTargetsOutput { targets: self.targets, marker: self.marker, } } } } -impl DescribeDBProxyTargetsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetsOutput`](crate::output::DescribeDBProxyTargetsOutput) +impl DescribeDbProxyTargetsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetsOutput`](crate::output::DescribeDbProxyTargetsOutput) pub fn builder() -> crate::output::describe_db_proxy_targets_output::Builder { crate::output::describe_db_proxy_targets_output::Builder::default() } @@ -4993,9 +4993,9 @@ impl DescribeDBProxyTargetsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyTargetGroupsOutput { +pub struct DescribeDbProxyTargetGroupsOutput { ///

                                        An arbitrary number of DBProxyTargetGroup objects, containing details of the corresponding target groups.

                                        - pub target_groups: std::option::Option>, + pub target_groups: std::option::Option>, ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes only records beyond the marker, @@ -5003,26 +5003,26 @@ pub struct DescribeDBProxyTargetGroupsOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyTargetGroupsOutput { +impl std::fmt::Debug for DescribeDbProxyTargetGroupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyTargetGroupsOutput"); + let mut formatter = f.debug_struct("DescribeDbProxyTargetGroupsOutput"); formatter.field("target_groups", &self.target_groups); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBProxyTargetGroupsOutput`](crate::output::DescribeDBProxyTargetGroupsOutput) +/// See [`DescribeDbProxyTargetGroupsOutput`](crate::output::DescribeDbProxyTargetGroupsOutput) pub mod describe_db_proxy_target_groups_output { - /// A builder for [`DescribeDBProxyTargetGroupsOutput`](crate::output::DescribeDBProxyTargetGroupsOutput) + /// A builder for [`DescribeDbProxyTargetGroupsOutput`](crate::output::DescribeDbProxyTargetGroupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) target_groups: - std::option::Option>, + std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { - pub fn target_groups(mut self, input: impl Into) -> Self { + pub fn target_groups(mut self, input: impl Into) -> Self { let mut v = self.target_groups.unwrap_or_default(); v.push(input.into()); self.target_groups = Some(v); @@ -5030,7 +5030,7 @@ pub mod describe_db_proxy_target_groups_output { } pub fn set_target_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.target_groups = input; self @@ -5048,17 +5048,17 @@ pub mod describe_db_proxy_target_groups_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyTargetGroupsOutput`](crate::output::DescribeDBProxyTargetGroupsOutput) - pub fn build(self) -> crate::output::DescribeDBProxyTargetGroupsOutput { - crate::output::DescribeDBProxyTargetGroupsOutput { + /// Consumes the builder and constructs a [`DescribeDbProxyTargetGroupsOutput`](crate::output::DescribeDbProxyTargetGroupsOutput) + pub fn build(self) -> crate::output::DescribeDbProxyTargetGroupsOutput { + crate::output::DescribeDbProxyTargetGroupsOutput { target_groups: self.target_groups, marker: self.marker, } } } } -impl DescribeDBProxyTargetGroupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyTargetGroupsOutput`](crate::output::DescribeDBProxyTargetGroupsOutput) +impl DescribeDbProxyTargetGroupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbProxyTargetGroupsOutput`](crate::output::DescribeDbProxyTargetGroupsOutput) pub fn builder() -> crate::output::describe_db_proxy_target_groups_output::Builder { crate::output::describe_db_proxy_target_groups_output::Builder::default() } @@ -5066,9 +5066,9 @@ impl DescribeDBProxyTargetGroupsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxyEndpointsOutput { +pub struct DescribeDbProxyEndpointsOutput { ///

                                        The list of ProxyEndpoint objects returned by the API operation.

                                        - pub db_proxy_endpoints: std::option::Option>, + pub db_proxy_endpoints: std::option::Option>, ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes only records beyond the marker, @@ -5076,28 +5076,28 @@ pub struct DescribeDBProxyEndpointsOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxyEndpointsOutput { +impl std::fmt::Debug for DescribeDbProxyEndpointsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxyEndpointsOutput"); + let mut formatter = f.debug_struct("DescribeDbProxyEndpointsOutput"); formatter.field("db_proxy_endpoints", &self.db_proxy_endpoints); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBProxyEndpointsOutput`](crate::output::DescribeDBProxyEndpointsOutput) +/// See [`DescribeDbProxyEndpointsOutput`](crate::output::DescribeDbProxyEndpointsOutput) pub mod describe_db_proxy_endpoints_output { - /// A builder for [`DescribeDBProxyEndpointsOutput`](crate::output::DescribeDBProxyEndpointsOutput) + /// A builder for [`DescribeDbProxyEndpointsOutput`](crate::output::DescribeDbProxyEndpointsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_proxy_endpoints: - std::option::Option>, + std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { pub fn db_proxy_endpoints( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_proxy_endpoints.unwrap_or_default(); v.push(input.into()); @@ -5106,7 +5106,7 @@ pub mod describe_db_proxy_endpoints_output { } pub fn set_db_proxy_endpoints( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_proxy_endpoints = input; self @@ -5124,17 +5124,17 @@ pub mod describe_db_proxy_endpoints_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxyEndpointsOutput`](crate::output::DescribeDBProxyEndpointsOutput) - pub fn build(self) -> crate::output::DescribeDBProxyEndpointsOutput { - crate::output::DescribeDBProxyEndpointsOutput { + /// Consumes the builder and constructs a [`DescribeDbProxyEndpointsOutput`](crate::output::DescribeDbProxyEndpointsOutput) + pub fn build(self) -> crate::output::DescribeDbProxyEndpointsOutput { + crate::output::DescribeDbProxyEndpointsOutput { db_proxy_endpoints: self.db_proxy_endpoints, marker: self.marker, } } } } -impl DescribeDBProxyEndpointsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBProxyEndpointsOutput`](crate::output::DescribeDBProxyEndpointsOutput) +impl DescribeDbProxyEndpointsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbProxyEndpointsOutput`](crate::output::DescribeDbProxyEndpointsOutput) pub fn builder() -> crate::output::describe_db_proxy_endpoints_output::Builder { crate::output::describe_db_proxy_endpoints_output::Builder::default() } @@ -5142,9 +5142,9 @@ impl DescribeDBProxyEndpointsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBProxiesOutput { +pub struct DescribeDbProxiesOutput { ///

                                        A return value representing an arbitrary number of DBProxy data structures.

                                        - pub db_proxies: std::option::Option>, + pub db_proxies: std::option::Option>, ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes only records beyond the marker, @@ -5152,25 +5152,25 @@ pub struct DescribeDBProxiesOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBProxiesOutput { +impl std::fmt::Debug for DescribeDbProxiesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBProxiesOutput"); + let mut formatter = f.debug_struct("DescribeDbProxiesOutput"); formatter.field("db_proxies", &self.db_proxies); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBProxiesOutput`](crate::output::DescribeDBProxiesOutput) +/// See [`DescribeDbProxiesOutput`](crate::output::DescribeDbProxiesOutput) pub mod describe_db_proxies_output { - /// A builder for [`DescribeDBProxiesOutput`](crate::output::DescribeDBProxiesOutput) + /// A builder for [`DescribeDbProxiesOutput`](crate::output::DescribeDbProxiesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxies: std::option::Option>, + pub(crate) db_proxies: std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { - pub fn db_proxies(mut self, input: impl Into) -> Self { + pub fn db_proxies(mut self, input: impl Into) -> Self { let mut v = self.db_proxies.unwrap_or_default(); v.push(input.into()); self.db_proxies = Some(v); @@ -5178,7 +5178,7 @@ pub mod describe_db_proxies_output { } pub fn set_db_proxies( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_proxies = input; self @@ -5196,17 +5196,17 @@ pub mod describe_db_proxies_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBProxiesOutput`](crate::output::DescribeDBProxiesOutput) - pub fn build(self) -> crate::output::DescribeDBProxiesOutput { - crate::output::DescribeDBProxiesOutput { + /// Consumes the builder and constructs a [`DescribeDbProxiesOutput`](crate::output::DescribeDbProxiesOutput) + pub fn build(self) -> crate::output::DescribeDbProxiesOutput { + crate::output::DescribeDbProxiesOutput { db_proxies: self.db_proxies, marker: self.marker, } } } } -impl DescribeDBProxiesOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBProxiesOutput`](crate::output::DescribeDBProxiesOutput) +impl DescribeDbProxiesOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbProxiesOutput`](crate::output::DescribeDbProxiesOutput) pub fn builder() -> crate::output::describe_db_proxies_output::Builder { crate::output::describe_db_proxies_output::Builder::default() } @@ -5217,7 +5217,7 @@ impl DescribeDBProxiesOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBParametersOutput { +pub struct DescribeDbParametersOutput { ///

                                        /// A list of Parameter values. ///

                                        @@ -5230,17 +5230,17 @@ pub struct DescribeDBParametersOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBParametersOutput { +impl std::fmt::Debug for DescribeDbParametersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBParametersOutput"); + let mut formatter = f.debug_struct("DescribeDbParametersOutput"); formatter.field("parameters", &self.parameters); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBParametersOutput`](crate::output::DescribeDBParametersOutput) +/// See [`DescribeDbParametersOutput`](crate::output::DescribeDbParametersOutput) pub mod describe_db_parameters_output { - /// A builder for [`DescribeDBParametersOutput`](crate::output::DescribeDBParametersOutput) + /// A builder for [`DescribeDbParametersOutput`](crate::output::DescribeDbParametersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5275,17 +5275,17 @@ pub mod describe_db_parameters_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBParametersOutput`](crate::output::DescribeDBParametersOutput) - pub fn build(self) -> crate::output::DescribeDBParametersOutput { - crate::output::DescribeDBParametersOutput { + /// Consumes the builder and constructs a [`DescribeDbParametersOutput`](crate::output::DescribeDbParametersOutput) + pub fn build(self) -> crate::output::DescribeDbParametersOutput { + crate::output::DescribeDbParametersOutput { parameters: self.parameters, marker: self.marker, } } } } -impl DescribeDBParametersOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBParametersOutput`](crate::output::DescribeDBParametersOutput) +impl DescribeDbParametersOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbParametersOutput`](crate::output::DescribeDbParametersOutput) pub fn builder() -> crate::output::describe_db_parameters_output::Builder { crate::output::describe_db_parameters_output::Builder::default() } @@ -5296,7 +5296,7 @@ impl DescribeDBParametersOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBParameterGroupsOutput { +pub struct DescribeDbParameterGroupsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -5307,25 +5307,25 @@ pub struct DescribeDBParameterGroupsOutput { ///

                                        /// A list of DBParameterGroup instances. ///

                                        - pub db_parameter_groups: std::option::Option>, + pub db_parameter_groups: std::option::Option>, } -impl std::fmt::Debug for DescribeDBParameterGroupsOutput { +impl std::fmt::Debug for DescribeDbParameterGroupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBParameterGroupsOutput"); + let mut formatter = f.debug_struct("DescribeDbParameterGroupsOutput"); formatter.field("marker", &self.marker); formatter.field("db_parameter_groups", &self.db_parameter_groups); formatter.finish() } } -/// See [`DescribeDBParameterGroupsOutput`](crate::output::DescribeDBParameterGroupsOutput) +/// See [`DescribeDbParameterGroupsOutput`](crate::output::DescribeDbParameterGroupsOutput) pub mod describe_db_parameter_groups_output { - /// A builder for [`DescribeDBParameterGroupsOutput`](crate::output::DescribeDBParameterGroupsOutput) + /// A builder for [`DescribeDbParameterGroupsOutput`](crate::output::DescribeDbParameterGroupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_parameter_groups: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -5344,7 +5344,7 @@ pub mod describe_db_parameter_groups_output { } pub fn db_parameter_groups( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_parameter_groups.unwrap_or_default(); v.push(input.into()); @@ -5353,22 +5353,22 @@ pub mod describe_db_parameter_groups_output { } pub fn set_db_parameter_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_parameter_groups = input; self } - /// Consumes the builder and constructs a [`DescribeDBParameterGroupsOutput`](crate::output::DescribeDBParameterGroupsOutput) - pub fn build(self) -> crate::output::DescribeDBParameterGroupsOutput { - crate::output::DescribeDBParameterGroupsOutput { + /// Consumes the builder and constructs a [`DescribeDbParameterGroupsOutput`](crate::output::DescribeDbParameterGroupsOutput) + pub fn build(self) -> crate::output::DescribeDbParameterGroupsOutput { + crate::output::DescribeDbParameterGroupsOutput { marker: self.marker, db_parameter_groups: self.db_parameter_groups, } } } } -impl DescribeDBParameterGroupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBParameterGroupsOutput`](crate::output::DescribeDBParameterGroupsOutput) +impl DescribeDbParameterGroupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbParameterGroupsOutput`](crate::output::DescribeDbParameterGroupsOutput) pub fn builder() -> crate::output::describe_db_parameter_groups_output::Builder { crate::output::describe_db_parameter_groups_output::Builder::default() } @@ -5379,35 +5379,35 @@ impl DescribeDBParameterGroupsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBLogFilesOutput { +pub struct DescribeDbLogFilesOutput { ///

                                        The DB log files returned.

                                        pub describe_db_log_files: - std::option::Option>, + std::option::Option>, ///

                                        A pagination token that can be used in a later DescribeDBLogFiles request.

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBLogFilesOutput { +impl std::fmt::Debug for DescribeDbLogFilesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBLogFilesOutput"); + let mut formatter = f.debug_struct("DescribeDbLogFilesOutput"); formatter.field("describe_db_log_files", &self.describe_db_log_files); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBLogFilesOutput`](crate::output::DescribeDBLogFilesOutput) +/// See [`DescribeDbLogFilesOutput`](crate::output::DescribeDbLogFilesOutput) pub mod describe_db_log_files_output { - /// A builder for [`DescribeDBLogFilesOutput`](crate::output::DescribeDBLogFilesOutput) + /// A builder for [`DescribeDbLogFilesOutput`](crate::output::DescribeDbLogFilesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) describe_db_log_files: - std::option::Option>, + std::option::Option>, pub(crate) marker: std::option::Option, } impl Builder { pub fn describe_db_log_files( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.describe_db_log_files.unwrap_or_default(); v.push(input.into()); @@ -5416,7 +5416,7 @@ pub mod describe_db_log_files_output { } pub fn set_describe_db_log_files( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.describe_db_log_files = input; self @@ -5430,17 +5430,17 @@ pub mod describe_db_log_files_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBLogFilesOutput`](crate::output::DescribeDBLogFilesOutput) - pub fn build(self) -> crate::output::DescribeDBLogFilesOutput { - crate::output::DescribeDBLogFilesOutput { + /// Consumes the builder and constructs a [`DescribeDbLogFilesOutput`](crate::output::DescribeDbLogFilesOutput) + pub fn build(self) -> crate::output::DescribeDbLogFilesOutput { + crate::output::DescribeDbLogFilesOutput { describe_db_log_files: self.describe_db_log_files, marker: self.marker, } } } } -impl DescribeDBLogFilesOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBLogFilesOutput`](crate::output::DescribeDBLogFilesOutput) +impl DescribeDbLogFilesOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbLogFilesOutput`](crate::output::DescribeDbLogFilesOutput) pub fn builder() -> crate::output::describe_db_log_files_output::Builder { crate::output::describe_db_log_files_output::Builder::default() } @@ -5451,7 +5451,7 @@ impl DescribeDBLogFilesOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBInstancesOutput { +pub struct DescribeDbInstancesOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -5462,24 +5462,24 @@ pub struct DescribeDBInstancesOutput { ///

                                        /// A list of DBInstance instances. ///

                                        - pub db_instances: std::option::Option>, + pub db_instances: std::option::Option>, } -impl std::fmt::Debug for DescribeDBInstancesOutput { +impl std::fmt::Debug for DescribeDbInstancesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBInstancesOutput"); + let mut formatter = f.debug_struct("DescribeDbInstancesOutput"); formatter.field("marker", &self.marker); formatter.field("db_instances", &self.db_instances); formatter.finish() } } -/// See [`DescribeDBInstancesOutput`](crate::output::DescribeDBInstancesOutput) +/// See [`DescribeDbInstancesOutput`](crate::output::DescribeDbInstancesOutput) pub mod describe_db_instances_output { - /// A builder for [`DescribeDBInstancesOutput`](crate::output::DescribeDBInstancesOutput) + /// A builder for [`DescribeDbInstancesOutput`](crate::output::DescribeDbInstancesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, - pub(crate) db_instances: std::option::Option>, + pub(crate) db_instances: std::option::Option>, } impl Builder { ///

                                        @@ -5496,7 +5496,7 @@ pub mod describe_db_instances_output { self.marker = input; self } - pub fn db_instances(mut self, input: impl Into) -> Self { + pub fn db_instances(mut self, input: impl Into) -> Self { let mut v = self.db_instances.unwrap_or_default(); v.push(input.into()); self.db_instances = Some(v); @@ -5504,22 +5504,22 @@ pub mod describe_db_instances_output { } pub fn set_db_instances( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_instances = input; self } - /// Consumes the builder and constructs a [`DescribeDBInstancesOutput`](crate::output::DescribeDBInstancesOutput) - pub fn build(self) -> crate::output::DescribeDBInstancesOutput { - crate::output::DescribeDBInstancesOutput { + /// Consumes the builder and constructs a [`DescribeDbInstancesOutput`](crate::output::DescribeDbInstancesOutput) + pub fn build(self) -> crate::output::DescribeDbInstancesOutput { + crate::output::DescribeDbInstancesOutput { marker: self.marker, db_instances: self.db_instances, } } } } -impl DescribeDBInstancesOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBInstancesOutput`](crate::output::DescribeDBInstancesOutput) +impl DescribeDbInstancesOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbInstancesOutput`](crate::output::DescribeDbInstancesOutput) pub fn builder() -> crate::output::describe_db_instances_output::Builder { crate::output::describe_db_instances_output::Builder::default() } @@ -5530,7 +5530,7 @@ impl DescribeDBInstancesOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBInstanceAutomatedBackupsOutput { +pub struct DescribeDbInstanceAutomatedBackupsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -5542,11 +5542,11 @@ pub struct DescribeDBInstanceAutomatedBackupsOutput { /// A list of DBInstanceAutomatedBackup instances. ///

                                        pub db_instance_automated_backups: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for DescribeDBInstanceAutomatedBackupsOutput { +impl std::fmt::Debug for DescribeDbInstanceAutomatedBackupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBInstanceAutomatedBackupsOutput"); + let mut formatter = f.debug_struct("DescribeDbInstanceAutomatedBackupsOutput"); formatter.field("marker", &self.marker); formatter.field( "db_instance_automated_backups", @@ -5555,15 +5555,15 @@ impl std::fmt::Debug for DescribeDBInstanceAutomatedBackupsOutput { formatter.finish() } } -/// See [`DescribeDBInstanceAutomatedBackupsOutput`](crate::output::DescribeDBInstanceAutomatedBackupsOutput) +/// See [`DescribeDbInstanceAutomatedBackupsOutput`](crate::output::DescribeDbInstanceAutomatedBackupsOutput) pub mod describe_db_instance_automated_backups_output { - /// A builder for [`DescribeDBInstanceAutomatedBackupsOutput`](crate::output::DescribeDBInstanceAutomatedBackupsOutput) + /// A builder for [`DescribeDbInstanceAutomatedBackupsOutput`](crate::output::DescribeDbInstanceAutomatedBackupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_instance_automated_backups: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -5582,7 +5582,7 @@ pub mod describe_db_instance_automated_backups_output { } pub fn db_instance_automated_backups( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_instance_automated_backups.unwrap_or_default(); v.push(input.into()); @@ -5591,22 +5591,22 @@ pub mod describe_db_instance_automated_backups_output { } pub fn set_db_instance_automated_backups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_instance_automated_backups = input; self } - /// Consumes the builder and constructs a [`DescribeDBInstanceAutomatedBackupsOutput`](crate::output::DescribeDBInstanceAutomatedBackupsOutput) - pub fn build(self) -> crate::output::DescribeDBInstanceAutomatedBackupsOutput { - crate::output::DescribeDBInstanceAutomatedBackupsOutput { + /// Consumes the builder and constructs a [`DescribeDbInstanceAutomatedBackupsOutput`](crate::output::DescribeDbInstanceAutomatedBackupsOutput) + pub fn build(self) -> crate::output::DescribeDbInstanceAutomatedBackupsOutput { + crate::output::DescribeDbInstanceAutomatedBackupsOutput { marker: self.marker, db_instance_automated_backups: self.db_instance_automated_backups, } } } } -impl DescribeDBInstanceAutomatedBackupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBInstanceAutomatedBackupsOutput`](crate::output::DescribeDBInstanceAutomatedBackupsOutput) +impl DescribeDbInstanceAutomatedBackupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbInstanceAutomatedBackupsOutput`](crate::output::DescribeDbInstanceAutomatedBackupsOutput) pub fn builder() -> crate::output::describe_db_instance_automated_backups_output::Builder { crate::output::describe_db_instance_automated_backups_output::Builder::default() } @@ -5617,7 +5617,7 @@ impl DescribeDBInstanceAutomatedBackupsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBEngineVersionsOutput { +pub struct DescribeDbEngineVersionsOutput { ///

                                        /// An optional pagination token provided by a previous request. /// If this parameter is specified, the response includes @@ -5628,25 +5628,25 @@ pub struct DescribeDBEngineVersionsOutput { ///

                                        /// A list of DBEngineVersion elements. ///

                                        - pub db_engine_versions: std::option::Option>, + pub db_engine_versions: std::option::Option>, } -impl std::fmt::Debug for DescribeDBEngineVersionsOutput { +impl std::fmt::Debug for DescribeDbEngineVersionsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBEngineVersionsOutput"); + let mut formatter = f.debug_struct("DescribeDbEngineVersionsOutput"); formatter.field("marker", &self.marker); formatter.field("db_engine_versions", &self.db_engine_versions); formatter.finish() } } -/// See [`DescribeDBEngineVersionsOutput`](crate::output::DescribeDBEngineVersionsOutput) +/// See [`DescribeDbEngineVersionsOutput`](crate::output::DescribeDbEngineVersionsOutput) pub mod describe_db_engine_versions_output { - /// A builder for [`DescribeDBEngineVersionsOutput`](crate::output::DescribeDBEngineVersionsOutput) + /// A builder for [`DescribeDbEngineVersionsOutput`](crate::output::DescribeDbEngineVersionsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_engine_versions: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -5665,7 +5665,7 @@ pub mod describe_db_engine_versions_output { } pub fn db_engine_versions( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_engine_versions.unwrap_or_default(); v.push(input.into()); @@ -5674,22 +5674,22 @@ pub mod describe_db_engine_versions_output { } pub fn set_db_engine_versions( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_engine_versions = input; self } - /// Consumes the builder and constructs a [`DescribeDBEngineVersionsOutput`](crate::output::DescribeDBEngineVersionsOutput) - pub fn build(self) -> crate::output::DescribeDBEngineVersionsOutput { - crate::output::DescribeDBEngineVersionsOutput { + /// Consumes the builder and constructs a [`DescribeDbEngineVersionsOutput`](crate::output::DescribeDbEngineVersionsOutput) + pub fn build(self) -> crate::output::DescribeDbEngineVersionsOutput { + crate::output::DescribeDbEngineVersionsOutput { marker: self.marker, db_engine_versions: self.db_engine_versions, } } } } -impl DescribeDBEngineVersionsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBEngineVersionsOutput`](crate::output::DescribeDBEngineVersionsOutput) +impl DescribeDbEngineVersionsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbEngineVersionsOutput`](crate::output::DescribeDbEngineVersionsOutput) pub fn builder() -> crate::output::describe_db_engine_versions_output::Builder { crate::output::describe_db_engine_versions_output::Builder::default() } @@ -5700,7 +5700,7 @@ impl DescribeDBEngineVersionsOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterSnapshotsOutput { +pub struct DescribeDbClusterSnapshotsOutput { ///

                                        /// An optional pagination token provided by a previous /// DescribeDBClusterSnapshots request. @@ -5710,25 +5710,25 @@ pub struct DescribeDBClusterSnapshotsOutput { ///

                                        pub marker: std::option::Option, ///

                                        Provides a list of DB cluster snapshots for the user.

                                        - pub db_cluster_snapshots: std::option::Option>, + pub db_cluster_snapshots: std::option::Option>, } -impl std::fmt::Debug for DescribeDBClusterSnapshotsOutput { +impl std::fmt::Debug for DescribeDbClusterSnapshotsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterSnapshotsOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterSnapshotsOutput"); formatter.field("marker", &self.marker); formatter.field("db_cluster_snapshots", &self.db_cluster_snapshots); formatter.finish() } } -/// See [`DescribeDBClusterSnapshotsOutput`](crate::output::DescribeDBClusterSnapshotsOutput) +/// See [`DescribeDbClusterSnapshotsOutput`](crate::output::DescribeDbClusterSnapshotsOutput) pub mod describe_db_cluster_snapshots_output { - /// A builder for [`DescribeDBClusterSnapshotsOutput`](crate::output::DescribeDBClusterSnapshotsOutput) + /// A builder for [`DescribeDbClusterSnapshotsOutput`](crate::output::DescribeDbClusterSnapshotsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_cluster_snapshots: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -5748,7 +5748,7 @@ pub mod describe_db_cluster_snapshots_output { } pub fn db_cluster_snapshots( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_snapshots.unwrap_or_default(); v.push(input.into()); @@ -5757,22 +5757,22 @@ pub mod describe_db_cluster_snapshots_output { } pub fn set_db_cluster_snapshots( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_snapshots = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterSnapshotsOutput`](crate::output::DescribeDBClusterSnapshotsOutput) - pub fn build(self) -> crate::output::DescribeDBClusterSnapshotsOutput { - crate::output::DescribeDBClusterSnapshotsOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterSnapshotsOutput`](crate::output::DescribeDbClusterSnapshotsOutput) + pub fn build(self) -> crate::output::DescribeDbClusterSnapshotsOutput { + crate::output::DescribeDbClusterSnapshotsOutput { marker: self.marker, db_cluster_snapshots: self.db_cluster_snapshots, } } } } -impl DescribeDBClusterSnapshotsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotsOutput`](crate::output::DescribeDBClusterSnapshotsOutput) +impl DescribeDbClusterSnapshotsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotsOutput`](crate::output::DescribeDbClusterSnapshotsOutput) pub fn builder() -> crate::output::describe_db_cluster_snapshots_output::Builder { crate::output::describe_db_cluster_snapshots_output::Builder::default() } @@ -5780,18 +5780,18 @@ impl DescribeDBClusterSnapshotsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterSnapshotAttributesOutput { +pub struct DescribeDbClusterSnapshotAttributesOutput { ///

                                        Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes /// API action.

                                        ///

                                        Manual DB cluster snapshot attributes are used to authorize other AWS accounts /// to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute /// API action.

                                        pub db_cluster_snapshot_attributes_result: - std::option::Option, + std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterSnapshotAttributesOutput { +impl std::fmt::Debug for DescribeDbClusterSnapshotAttributesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterSnapshotAttributesOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterSnapshotAttributesOutput"); formatter.field( "db_cluster_snapshot_attributes_result", &self.db_cluster_snapshot_attributes_result, @@ -5799,14 +5799,14 @@ impl std::fmt::Debug for DescribeDBClusterSnapshotAttributesOutput { formatter.finish() } } -/// See [`DescribeDBClusterSnapshotAttributesOutput`](crate::output::DescribeDBClusterSnapshotAttributesOutput) +/// See [`DescribeDbClusterSnapshotAttributesOutput`](crate::output::DescribeDbClusterSnapshotAttributesOutput) pub mod describe_db_cluster_snapshot_attributes_output { - /// A builder for [`DescribeDBClusterSnapshotAttributesOutput`](crate::output::DescribeDBClusterSnapshotAttributesOutput) + /// A builder for [`DescribeDbClusterSnapshotAttributesOutput`](crate::output::DescribeDbClusterSnapshotAttributesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_cluster_snapshot_attributes_result: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes @@ -5816,28 +5816,28 @@ pub mod describe_db_cluster_snapshot_attributes_output { /// API action.

                                        pub fn db_cluster_snapshot_attributes_result( mut self, - input: crate::model::DBClusterSnapshotAttributesResult, + input: crate::model::DbClusterSnapshotAttributesResult, ) -> Self { self.db_cluster_snapshot_attributes_result = Some(input); self } pub fn set_db_cluster_snapshot_attributes_result( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_snapshot_attributes_result = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterSnapshotAttributesOutput`](crate::output::DescribeDBClusterSnapshotAttributesOutput) - pub fn build(self) -> crate::output::DescribeDBClusterSnapshotAttributesOutput { - crate::output::DescribeDBClusterSnapshotAttributesOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterSnapshotAttributesOutput`](crate::output::DescribeDbClusterSnapshotAttributesOutput) + pub fn build(self) -> crate::output::DescribeDbClusterSnapshotAttributesOutput { + crate::output::DescribeDbClusterSnapshotAttributesOutput { db_cluster_snapshot_attributes_result: self.db_cluster_snapshot_attributes_result, } } } } -impl DescribeDBClusterSnapshotAttributesOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterSnapshotAttributesOutput`](crate::output::DescribeDBClusterSnapshotAttributesOutput) +impl DescribeDbClusterSnapshotAttributesOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterSnapshotAttributesOutput`](crate::output::DescribeDbClusterSnapshotAttributesOutput) pub fn builder() -> crate::output::describe_db_cluster_snapshot_attributes_output::Builder { crate::output::describe_db_cluster_snapshot_attributes_output::Builder::default() } @@ -5846,28 +5846,28 @@ impl DescribeDBClusterSnapshotAttributesOutput { ///

                                        Contains the result of a successful invocation of the DescribeDBClusters action.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClustersOutput { +pub struct DescribeDbClustersOutput { ///

                                        A pagination token that can be used in a later DescribeDBClusters request.

                                        pub marker: std::option::Option, ///

                                        Contains a list of DB clusters for the user.

                                        - pub db_clusters: std::option::Option>, + pub db_clusters: std::option::Option>, } -impl std::fmt::Debug for DescribeDBClustersOutput { +impl std::fmt::Debug for DescribeDbClustersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClustersOutput"); + let mut formatter = f.debug_struct("DescribeDbClustersOutput"); formatter.field("marker", &self.marker); formatter.field("db_clusters", &self.db_clusters); formatter.finish() } } -/// See [`DescribeDBClustersOutput`](crate::output::DescribeDBClustersOutput) +/// See [`DescribeDbClustersOutput`](crate::output::DescribeDbClustersOutput) pub mod describe_db_clusters_output { - /// A builder for [`DescribeDBClustersOutput`](crate::output::DescribeDBClustersOutput) + /// A builder for [`DescribeDbClustersOutput`](crate::output::DescribeDbClustersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, - pub(crate) db_clusters: std::option::Option>, + pub(crate) db_clusters: std::option::Option>, } impl Builder { ///

                                        A pagination token that can be used in a later DescribeDBClusters request.

                                        @@ -5879,7 +5879,7 @@ pub mod describe_db_clusters_output { self.marker = input; self } - pub fn db_clusters(mut self, input: impl Into) -> Self { + pub fn db_clusters(mut self, input: impl Into) -> Self { let mut v = self.db_clusters.unwrap_or_default(); v.push(input.into()); self.db_clusters = Some(v); @@ -5887,22 +5887,22 @@ pub mod describe_db_clusters_output { } pub fn set_db_clusters( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_clusters = input; self } - /// Consumes the builder and constructs a [`DescribeDBClustersOutput`](crate::output::DescribeDBClustersOutput) - pub fn build(self) -> crate::output::DescribeDBClustersOutput { - crate::output::DescribeDBClustersOutput { + /// Consumes the builder and constructs a [`DescribeDbClustersOutput`](crate::output::DescribeDbClustersOutput) + pub fn build(self) -> crate::output::DescribeDbClustersOutput { + crate::output::DescribeDbClustersOutput { marker: self.marker, db_clusters: self.db_clusters, } } } } -impl DescribeDBClustersOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClustersOutput`](crate::output::DescribeDBClustersOutput) +impl DescribeDbClustersOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClustersOutput`](crate::output::DescribeDbClustersOutput) pub fn builder() -> crate::output::describe_db_clusters_output::Builder { crate::output::describe_db_clusters_output::Builder::default() } @@ -5911,7 +5911,7 @@ impl DescribeDBClustersOutput { ///

                                        Provides details about a DB cluster parameter group including the parameters in the DB cluster parameter group.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterParametersOutput { +pub struct DescribeDbClusterParametersOutput { ///

                                        Provides a list of parameters for the DB cluster parameter group.

                                        pub parameters: std::option::Option>, ///

                                        @@ -5923,17 +5923,17 @@ pub struct DescribeDBClusterParametersOutput { ///

                                        pub marker: std::option::Option, } -impl std::fmt::Debug for DescribeDBClusterParametersOutput { +impl std::fmt::Debug for DescribeDbClusterParametersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterParametersOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterParametersOutput"); formatter.field("parameters", &self.parameters); formatter.field("marker", &self.marker); formatter.finish() } } -/// See [`DescribeDBClusterParametersOutput`](crate::output::DescribeDBClusterParametersOutput) +/// See [`DescribeDbClusterParametersOutput`](crate::output::DescribeDbClusterParametersOutput) pub mod describe_db_cluster_parameters_output { - /// A builder for [`DescribeDBClusterParametersOutput`](crate::output::DescribeDBClusterParametersOutput) + /// A builder for [`DescribeDbClusterParametersOutput`](crate::output::DescribeDbClusterParametersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5969,17 +5969,17 @@ pub mod describe_db_cluster_parameters_output { self.marker = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterParametersOutput`](crate::output::DescribeDBClusterParametersOutput) - pub fn build(self) -> crate::output::DescribeDBClusterParametersOutput { - crate::output::DescribeDBClusterParametersOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterParametersOutput`](crate::output::DescribeDbClusterParametersOutput) + pub fn build(self) -> crate::output::DescribeDbClusterParametersOutput { + crate::output::DescribeDbClusterParametersOutput { parameters: self.parameters, marker: self.marker, } } } } -impl DescribeDBClusterParametersOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParametersOutput`](crate::output::DescribeDBClusterParametersOutput) +impl DescribeDbClusterParametersOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParametersOutput`](crate::output::DescribeDbClusterParametersOutput) pub fn builder() -> crate::output::describe_db_cluster_parameters_output::Builder { crate::output::describe_db_cluster_parameters_output::Builder::default() } @@ -5988,7 +5988,7 @@ impl DescribeDBClusterParametersOutput { ///

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterParameterGroupsOutput { +pub struct DescribeDbClusterParameterGroupsOutput { ///

                                        /// An optional pagination token provided by a previous /// DescribeDBClusterParameterGroups request. @@ -5999,11 +5999,11 @@ pub struct DescribeDBClusterParameterGroupsOutput { pub marker: std::option::Option, ///

                                        A list of DB cluster parameter groups.

                                        pub db_cluster_parameter_groups: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for DescribeDBClusterParameterGroupsOutput { +impl std::fmt::Debug for DescribeDbClusterParameterGroupsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterParameterGroupsOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterParameterGroupsOutput"); formatter.field("marker", &self.marker); formatter.field( "db_cluster_parameter_groups", @@ -6012,15 +6012,15 @@ impl std::fmt::Debug for DescribeDBClusterParameterGroupsOutput { formatter.finish() } } -/// See [`DescribeDBClusterParameterGroupsOutput`](crate::output::DescribeDBClusterParameterGroupsOutput) +/// See [`DescribeDbClusterParameterGroupsOutput`](crate::output::DescribeDbClusterParameterGroupsOutput) pub mod describe_db_cluster_parameter_groups_output { - /// A builder for [`DescribeDBClusterParameterGroupsOutput`](crate::output::DescribeDBClusterParameterGroupsOutput) + /// A builder for [`DescribeDbClusterParameterGroupsOutput`](crate::output::DescribeDbClusterParameterGroupsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_cluster_parameter_groups: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        @@ -6040,7 +6040,7 @@ pub mod describe_db_cluster_parameter_groups_output { } pub fn db_cluster_parameter_groups( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_parameter_groups.unwrap_or_default(); v.push(input.into()); @@ -6049,22 +6049,22 @@ pub mod describe_db_cluster_parameter_groups_output { } pub fn set_db_cluster_parameter_groups( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_parameter_groups = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterParameterGroupsOutput`](crate::output::DescribeDBClusterParameterGroupsOutput) - pub fn build(self) -> crate::output::DescribeDBClusterParameterGroupsOutput { - crate::output::DescribeDBClusterParameterGroupsOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterParameterGroupsOutput`](crate::output::DescribeDbClusterParameterGroupsOutput) + pub fn build(self) -> crate::output::DescribeDbClusterParameterGroupsOutput { + crate::output::DescribeDbClusterParameterGroupsOutput { marker: self.marker, db_cluster_parameter_groups: self.db_cluster_parameter_groups, } } } } -impl DescribeDBClusterParameterGroupsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterParameterGroupsOutput`](crate::output::DescribeDBClusterParameterGroupsOutput) +impl DescribeDbClusterParameterGroupsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterParameterGroupsOutput`](crate::output::DescribeDbClusterParameterGroupsOutput) pub fn builder() -> crate::output::describe_db_cluster_parameter_groups_output::Builder { crate::output::describe_db_cluster_parameter_groups_output::Builder::default() } @@ -6072,7 +6072,7 @@ impl DescribeDBClusterParameterGroupsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterEndpointsOutput { +pub struct DescribeDbClusterEndpointsOutput { ///

                                        An optional pagination token provided by a previous /// DescribeDBClusterEndpoints request. /// If this parameter is specified, the response includes @@ -6082,25 +6082,25 @@ pub struct DescribeDBClusterEndpointsOutput { pub marker: std::option::Option, ///

                                        Contains the details of the endpoints associated with the cluster /// and matching any filter conditions.

                                        - pub db_cluster_endpoints: std::option::Option>, + pub db_cluster_endpoints: std::option::Option>, } -impl std::fmt::Debug for DescribeDBClusterEndpointsOutput { +impl std::fmt::Debug for DescribeDbClusterEndpointsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterEndpointsOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterEndpointsOutput"); formatter.field("marker", &self.marker); formatter.field("db_cluster_endpoints", &self.db_cluster_endpoints); formatter.finish() } } -/// See [`DescribeDBClusterEndpointsOutput`](crate::output::DescribeDBClusterEndpointsOutput) +/// See [`DescribeDbClusterEndpointsOutput`](crate::output::DescribeDbClusterEndpointsOutput) pub mod describe_db_cluster_endpoints_output { - /// A builder for [`DescribeDBClusterEndpointsOutput`](crate::output::DescribeDBClusterEndpointsOutput) + /// A builder for [`DescribeDbClusterEndpointsOutput`](crate::output::DescribeDbClusterEndpointsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_cluster_endpoints: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        An optional pagination token provided by a previous @@ -6119,7 +6119,7 @@ pub mod describe_db_cluster_endpoints_output { } pub fn db_cluster_endpoints( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_endpoints.unwrap_or_default(); v.push(input.into()); @@ -6128,22 +6128,22 @@ pub mod describe_db_cluster_endpoints_output { } pub fn set_db_cluster_endpoints( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_endpoints = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterEndpointsOutput`](crate::output::DescribeDBClusterEndpointsOutput) - pub fn build(self) -> crate::output::DescribeDBClusterEndpointsOutput { - crate::output::DescribeDBClusterEndpointsOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterEndpointsOutput`](crate::output::DescribeDbClusterEndpointsOutput) + pub fn build(self) -> crate::output::DescribeDbClusterEndpointsOutput { + crate::output::DescribeDbClusterEndpointsOutput { marker: self.marker, db_cluster_endpoints: self.db_cluster_endpoints, } } } } -impl DescribeDBClusterEndpointsOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterEndpointsOutput`](crate::output::DescribeDBClusterEndpointsOutput) +impl DescribeDbClusterEndpointsOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterEndpointsOutput`](crate::output::DescribeDbClusterEndpointsOutput) pub fn builder() -> crate::output::describe_db_cluster_endpoints_output::Builder { crate::output::describe_db_cluster_endpoints_output::Builder::default() } @@ -6152,29 +6152,29 @@ impl DescribeDBClusterEndpointsOutput { ///

                                        Contains the result of a successful invocation of the DescribeDBClusterBacktracks action.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDBClusterBacktracksOutput { +pub struct DescribeDbClusterBacktracksOutput { ///

                                        A pagination token that can be used in a later DescribeDBClusterBacktracks request.

                                        pub marker: std::option::Option, ///

                                        Contains a list of backtracks for the user.

                                        - pub db_cluster_backtracks: std::option::Option>, + pub db_cluster_backtracks: std::option::Option>, } -impl std::fmt::Debug for DescribeDBClusterBacktracksOutput { +impl std::fmt::Debug for DescribeDbClusterBacktracksOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDBClusterBacktracksOutput"); + let mut formatter = f.debug_struct("DescribeDbClusterBacktracksOutput"); formatter.field("marker", &self.marker); formatter.field("db_cluster_backtracks", &self.db_cluster_backtracks); formatter.finish() } } -/// See [`DescribeDBClusterBacktracksOutput`](crate::output::DescribeDBClusterBacktracksOutput) +/// See [`DescribeDbClusterBacktracksOutput`](crate::output::DescribeDbClusterBacktracksOutput) pub mod describe_db_cluster_backtracks_output { - /// A builder for [`DescribeDBClusterBacktracksOutput`](crate::output::DescribeDBClusterBacktracksOutput) + /// A builder for [`DescribeDbClusterBacktracksOutput`](crate::output::DescribeDbClusterBacktracksOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) marker: std::option::Option, pub(crate) db_cluster_backtracks: - std::option::Option>, + std::option::Option>, } impl Builder { ///

                                        A pagination token that can be used in a later DescribeDBClusterBacktracks request.

                                        @@ -6188,7 +6188,7 @@ pub mod describe_db_cluster_backtracks_output { } pub fn db_cluster_backtracks( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.db_cluster_backtracks.unwrap_or_default(); v.push(input.into()); @@ -6197,22 +6197,22 @@ pub mod describe_db_cluster_backtracks_output { } pub fn set_db_cluster_backtracks( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.db_cluster_backtracks = input; self } - /// Consumes the builder and constructs a [`DescribeDBClusterBacktracksOutput`](crate::output::DescribeDBClusterBacktracksOutput) - pub fn build(self) -> crate::output::DescribeDBClusterBacktracksOutput { - crate::output::DescribeDBClusterBacktracksOutput { + /// Consumes the builder and constructs a [`DescribeDbClusterBacktracksOutput`](crate::output::DescribeDbClusterBacktracksOutput) + pub fn build(self) -> crate::output::DescribeDbClusterBacktracksOutput { + crate::output::DescribeDbClusterBacktracksOutput { marker: self.marker, db_cluster_backtracks: self.db_cluster_backtracks, } } } } -impl DescribeDBClusterBacktracksOutput { - /// Creates a new builder-style object to manufacture [`DescribeDBClusterBacktracksOutput`](crate::output::DescribeDBClusterBacktracksOutput) +impl DescribeDbClusterBacktracksOutput { + /// Creates a new builder-style object to manufacture [`DescribeDbClusterBacktracksOutput`](crate::output::DescribeDbClusterBacktracksOutput) pub fn builder() -> crate::output::describe_db_cluster_backtracks_output::Builder { crate::output::describe_db_cluster_backtracks_output::Builder::default() } @@ -6426,28 +6426,28 @@ impl DescribeAccountAttributesOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterDBProxyTargetsOutput {} -impl std::fmt::Debug for DeregisterDBProxyTargetsOutput { +pub struct DeregisterDbProxyTargetsOutput {} +impl std::fmt::Debug for DeregisterDbProxyTargetsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterDBProxyTargetsOutput"); + let mut formatter = f.debug_struct("DeregisterDbProxyTargetsOutput"); formatter.finish() } } -/// See [`DeregisterDBProxyTargetsOutput`](crate::output::DeregisterDBProxyTargetsOutput) +/// See [`DeregisterDbProxyTargetsOutput`](crate::output::DeregisterDbProxyTargetsOutput) pub mod deregister_db_proxy_targets_output { - /// A builder for [`DeregisterDBProxyTargetsOutput`](crate::output::DeregisterDBProxyTargetsOutput) + /// A builder for [`DeregisterDbProxyTargetsOutput`](crate::output::DeregisterDbProxyTargetsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeregisterDBProxyTargetsOutput`](crate::output::DeregisterDBProxyTargetsOutput) - pub fn build(self) -> crate::output::DeregisterDBProxyTargetsOutput { - crate::output::DeregisterDBProxyTargetsOutput {} + /// Consumes the builder and constructs a [`DeregisterDbProxyTargetsOutput`](crate::output::DeregisterDbProxyTargetsOutput) + pub fn build(self) -> crate::output::DeregisterDbProxyTargetsOutput { + crate::output::DeregisterDbProxyTargetsOutput {} } } } -impl DeregisterDBProxyTargetsOutput { - /// Creates a new builder-style object to manufacture [`DeregisterDBProxyTargetsOutput`](crate::output::DeregisterDBProxyTargetsOutput) +impl DeregisterDbProxyTargetsOutput { + /// Creates a new builder-style object to manufacture [`DeregisterDbProxyTargetsOutput`](crate::output::DeregisterDbProxyTargetsOutput) pub fn builder() -> crate::output::deregister_db_proxy_targets_output::Builder { crate::output::deregister_db_proxy_targets_output::Builder::default() } @@ -6761,28 +6761,28 @@ impl DeleteEventSubscriptionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSubnetGroupOutput {} -impl std::fmt::Debug for DeleteDBSubnetGroupOutput { +pub struct DeleteDbSubnetGroupOutput {} +impl std::fmt::Debug for DeleteDbSubnetGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSubnetGroupOutput"); + let mut formatter = f.debug_struct("DeleteDbSubnetGroupOutput"); formatter.finish() } } -/// See [`DeleteDBSubnetGroupOutput`](crate::output::DeleteDBSubnetGroupOutput) +/// See [`DeleteDbSubnetGroupOutput`](crate::output::DeleteDbSubnetGroupOutput) pub mod delete_db_subnet_group_output { - /// A builder for [`DeleteDBSubnetGroupOutput`](crate::output::DeleteDBSubnetGroupOutput) + /// A builder for [`DeleteDbSubnetGroupOutput`](crate::output::DeleteDbSubnetGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteDBSubnetGroupOutput`](crate::output::DeleteDBSubnetGroupOutput) - pub fn build(self) -> crate::output::DeleteDBSubnetGroupOutput { - crate::output::DeleteDBSubnetGroupOutput {} + /// Consumes the builder and constructs a [`DeleteDbSubnetGroupOutput`](crate::output::DeleteDbSubnetGroupOutput) + pub fn build(self) -> crate::output::DeleteDbSubnetGroupOutput { + crate::output::DeleteDbSubnetGroupOutput {} } } } -impl DeleteDBSubnetGroupOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBSubnetGroupOutput`](crate::output::DeleteDBSubnetGroupOutput) +impl DeleteDbSubnetGroupOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbSubnetGroupOutput`](crate::output::DeleteDbSubnetGroupOutput) pub fn builder() -> crate::output::delete_db_subnet_group_output::Builder { crate::output::delete_db_subnet_group_output::Builder::default() } @@ -6790,28 +6790,28 @@ impl DeleteDBSubnetGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSnapshotOutput { +pub struct DeleteDbSnapshotOutput { ///

                                        Contains the details of an Amazon RDS DB snapshot. ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub db_snapshot: std::option::Option, + pub db_snapshot: std::option::Option, } -impl std::fmt::Debug for DeleteDBSnapshotOutput { +impl std::fmt::Debug for DeleteDbSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSnapshotOutput"); + let mut formatter = f.debug_struct("DeleteDbSnapshotOutput"); formatter.field("db_snapshot", &self.db_snapshot); formatter.finish() } } -/// See [`DeleteDBSnapshotOutput`](crate::output::DeleteDBSnapshotOutput) +/// See [`DeleteDbSnapshotOutput`](crate::output::DeleteDbSnapshotOutput) pub mod delete_db_snapshot_output { - /// A builder for [`DeleteDBSnapshotOutput`](crate::output::DeleteDBSnapshotOutput) + /// A builder for [`DeleteDbSnapshotOutput`](crate::output::DeleteDbSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_snapshot: std::option::Option, + pub(crate) db_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB snapshot. @@ -6819,27 +6819,27 @@ pub mod delete_db_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub fn db_snapshot(mut self, input: crate::model::DBSnapshot) -> Self { + pub fn db_snapshot(mut self, input: crate::model::DbSnapshot) -> Self { self.db_snapshot = Some(input); self } pub fn set_db_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot = input; self } - /// Consumes the builder and constructs a [`DeleteDBSnapshotOutput`](crate::output::DeleteDBSnapshotOutput) - pub fn build(self) -> crate::output::DeleteDBSnapshotOutput { - crate::output::DeleteDBSnapshotOutput { + /// Consumes the builder and constructs a [`DeleteDbSnapshotOutput`](crate::output::DeleteDbSnapshotOutput) + pub fn build(self) -> crate::output::DeleteDbSnapshotOutput { + crate::output::DeleteDbSnapshotOutput { db_snapshot: self.db_snapshot, } } } } -impl DeleteDBSnapshotOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBSnapshotOutput`](crate::output::DeleteDBSnapshotOutput) +impl DeleteDbSnapshotOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbSnapshotOutput`](crate::output::DeleteDbSnapshotOutput) pub fn builder() -> crate::output::delete_db_snapshot_output::Builder { crate::output::delete_db_snapshot_output::Builder::default() } @@ -6847,28 +6847,28 @@ impl DeleteDBSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBSecurityGroupOutput {} -impl std::fmt::Debug for DeleteDBSecurityGroupOutput { +pub struct DeleteDbSecurityGroupOutput {} +impl std::fmt::Debug for DeleteDbSecurityGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBSecurityGroupOutput"); + let mut formatter = f.debug_struct("DeleteDbSecurityGroupOutput"); formatter.finish() } } -/// See [`DeleteDBSecurityGroupOutput`](crate::output::DeleteDBSecurityGroupOutput) +/// See [`DeleteDbSecurityGroupOutput`](crate::output::DeleteDbSecurityGroupOutput) pub mod delete_db_security_group_output { - /// A builder for [`DeleteDBSecurityGroupOutput`](crate::output::DeleteDBSecurityGroupOutput) + /// A builder for [`DeleteDbSecurityGroupOutput`](crate::output::DeleteDbSecurityGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteDBSecurityGroupOutput`](crate::output::DeleteDBSecurityGroupOutput) - pub fn build(self) -> crate::output::DeleteDBSecurityGroupOutput { - crate::output::DeleteDBSecurityGroupOutput {} + /// Consumes the builder and constructs a [`DeleteDbSecurityGroupOutput`](crate::output::DeleteDbSecurityGroupOutput) + pub fn build(self) -> crate::output::DeleteDbSecurityGroupOutput { + crate::output::DeleteDbSecurityGroupOutput {} } } } -impl DeleteDBSecurityGroupOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBSecurityGroupOutput`](crate::output::DeleteDBSecurityGroupOutput) +impl DeleteDbSecurityGroupOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbSecurityGroupOutput`](crate::output::DeleteDbSecurityGroupOutput) pub fn builder() -> crate::output::delete_db_security_group_output::Builder { crate::output::delete_db_security_group_output::Builder::default() } @@ -6876,48 +6876,48 @@ impl DeleteDBSecurityGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBProxyEndpointOutput { +pub struct DeleteDbProxyEndpointOutput { ///

                                        The data structure representing the details of the DB proxy endpoint that you delete.

                                        - pub db_proxy_endpoint: std::option::Option, + pub db_proxy_endpoint: std::option::Option, } -impl std::fmt::Debug for DeleteDBProxyEndpointOutput { +impl std::fmt::Debug for DeleteDbProxyEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBProxyEndpointOutput"); + let mut formatter = f.debug_struct("DeleteDbProxyEndpointOutput"); formatter.field("db_proxy_endpoint", &self.db_proxy_endpoint); formatter.finish() } } -/// See [`DeleteDBProxyEndpointOutput`](crate::output::DeleteDBProxyEndpointOutput) +/// See [`DeleteDbProxyEndpointOutput`](crate::output::DeleteDbProxyEndpointOutput) pub mod delete_db_proxy_endpoint_output { - /// A builder for [`DeleteDBProxyEndpointOutput`](crate::output::DeleteDBProxyEndpointOutput) + /// A builder for [`DeleteDbProxyEndpointOutput`](crate::output::DeleteDbProxyEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy_endpoint: std::option::Option, + pub(crate) db_proxy_endpoint: std::option::Option, } impl Builder { ///

                                        The data structure representing the details of the DB proxy endpoint that you delete.

                                        - pub fn db_proxy_endpoint(mut self, input: crate::model::DBProxyEndpoint) -> Self { + pub fn db_proxy_endpoint(mut self, input: crate::model::DbProxyEndpoint) -> Self { self.db_proxy_endpoint = Some(input); self } pub fn set_db_proxy_endpoint( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_proxy_endpoint = input; self } - /// Consumes the builder and constructs a [`DeleteDBProxyEndpointOutput`](crate::output::DeleteDBProxyEndpointOutput) - pub fn build(self) -> crate::output::DeleteDBProxyEndpointOutput { - crate::output::DeleteDBProxyEndpointOutput { + /// Consumes the builder and constructs a [`DeleteDbProxyEndpointOutput`](crate::output::DeleteDbProxyEndpointOutput) + pub fn build(self) -> crate::output::DeleteDbProxyEndpointOutput { + crate::output::DeleteDbProxyEndpointOutput { db_proxy_endpoint: self.db_proxy_endpoint, } } } } -impl DeleteDBProxyEndpointOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBProxyEndpointOutput`](crate::output::DeleteDBProxyEndpointOutput) +impl DeleteDbProxyEndpointOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbProxyEndpointOutput`](crate::output::DeleteDbProxyEndpointOutput) pub fn builder() -> crate::output::delete_db_proxy_endpoint_output::Builder { crate::output::delete_db_proxy_endpoint_output::Builder::default() } @@ -6925,45 +6925,45 @@ impl DeleteDBProxyEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBProxyOutput { +pub struct DeleteDbProxyOutput { ///

                                        The data structure representing the details of the DB proxy that you delete.

                                        - pub db_proxy: std::option::Option, + pub db_proxy: std::option::Option, } -impl std::fmt::Debug for DeleteDBProxyOutput { +impl std::fmt::Debug for DeleteDbProxyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBProxyOutput"); + let mut formatter = f.debug_struct("DeleteDbProxyOutput"); formatter.field("db_proxy", &self.db_proxy); formatter.finish() } } -/// See [`DeleteDBProxyOutput`](crate::output::DeleteDBProxyOutput) +/// See [`DeleteDbProxyOutput`](crate::output::DeleteDbProxyOutput) pub mod delete_db_proxy_output { - /// A builder for [`DeleteDBProxyOutput`](crate::output::DeleteDBProxyOutput) + /// A builder for [`DeleteDbProxyOutput`](crate::output::DeleteDbProxyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy: std::option::Option, + pub(crate) db_proxy: std::option::Option, } impl Builder { ///

                                        The data structure representing the details of the DB proxy that you delete.

                                        - pub fn db_proxy(mut self, input: crate::model::DBProxy) -> Self { + pub fn db_proxy(mut self, input: crate::model::DbProxy) -> Self { self.db_proxy = Some(input); self } - pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { + pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { self.db_proxy = input; self } - /// Consumes the builder and constructs a [`DeleteDBProxyOutput`](crate::output::DeleteDBProxyOutput) - pub fn build(self) -> crate::output::DeleteDBProxyOutput { - crate::output::DeleteDBProxyOutput { + /// Consumes the builder and constructs a [`DeleteDbProxyOutput`](crate::output::DeleteDbProxyOutput) + pub fn build(self) -> crate::output::DeleteDbProxyOutput { + crate::output::DeleteDbProxyOutput { db_proxy: self.db_proxy, } } } } -impl DeleteDBProxyOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBProxyOutput`](crate::output::DeleteDBProxyOutput) +impl DeleteDbProxyOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbProxyOutput`](crate::output::DeleteDbProxyOutput) pub fn builder() -> crate::output::delete_db_proxy_output::Builder { crate::output::delete_db_proxy_output::Builder::default() } @@ -6971,28 +6971,28 @@ impl DeleteDBProxyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBParameterGroupOutput {} -impl std::fmt::Debug for DeleteDBParameterGroupOutput { +pub struct DeleteDbParameterGroupOutput {} +impl std::fmt::Debug for DeleteDbParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBParameterGroupOutput"); + let mut formatter = f.debug_struct("DeleteDbParameterGroupOutput"); formatter.finish() } } -/// See [`DeleteDBParameterGroupOutput`](crate::output::DeleteDBParameterGroupOutput) +/// See [`DeleteDbParameterGroupOutput`](crate::output::DeleteDbParameterGroupOutput) pub mod delete_db_parameter_group_output { - /// A builder for [`DeleteDBParameterGroupOutput`](crate::output::DeleteDBParameterGroupOutput) + /// A builder for [`DeleteDbParameterGroupOutput`](crate::output::DeleteDbParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteDBParameterGroupOutput`](crate::output::DeleteDBParameterGroupOutput) - pub fn build(self) -> crate::output::DeleteDBParameterGroupOutput { - crate::output::DeleteDBParameterGroupOutput {} + /// Consumes the builder and constructs a [`DeleteDbParameterGroupOutput`](crate::output::DeleteDbParameterGroupOutput) + pub fn build(self) -> crate::output::DeleteDbParameterGroupOutput { + crate::output::DeleteDbParameterGroupOutput {} } } } -impl DeleteDBParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBParameterGroupOutput`](crate::output::DeleteDBParameterGroupOutput) +impl DeleteDbParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbParameterGroupOutput`](crate::output::DeleteDbParameterGroupOutput) pub fn builder() -> crate::output::delete_db_parameter_group_output::Builder { crate::output::delete_db_parameter_group_output::Builder::default() } @@ -7000,14 +7000,14 @@ impl DeleteDBParameterGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBInstanceAutomatedBackupOutput { +pub struct DeleteDbInstanceAutomatedBackupOutput { ///

                                        An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                        - pub db_instance_automated_backup: std::option::Option, + pub db_instance_automated_backup: std::option::Option, } -impl std::fmt::Debug for DeleteDBInstanceAutomatedBackupOutput { +impl std::fmt::Debug for DeleteDbInstanceAutomatedBackupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBInstanceAutomatedBackupOutput"); + let mut formatter = f.debug_struct("DeleteDbInstanceAutomatedBackupOutput"); formatter.field( "db_instance_automated_backup", &self.db_instance_automated_backup, @@ -7015,42 +7015,42 @@ impl std::fmt::Debug for DeleteDBInstanceAutomatedBackupOutput { formatter.finish() } } -/// See [`DeleteDBInstanceAutomatedBackupOutput`](crate::output::DeleteDBInstanceAutomatedBackupOutput) +/// See [`DeleteDbInstanceAutomatedBackupOutput`](crate::output::DeleteDbInstanceAutomatedBackupOutput) pub mod delete_db_instance_automated_backup_output { - /// A builder for [`DeleteDBInstanceAutomatedBackupOutput`](crate::output::DeleteDBInstanceAutomatedBackupOutput) + /// A builder for [`DeleteDbInstanceAutomatedBackupOutput`](crate::output::DeleteDbInstanceAutomatedBackupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_instance_automated_backup: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        An automated backup of a DB instance. It consists of system backups, transaction logs, and the database instance properties that /// existed at the time you deleted the source instance.

                                        pub fn db_instance_automated_backup( mut self, - input: crate::model::DBInstanceAutomatedBackup, + input: crate::model::DbInstanceAutomatedBackup, ) -> Self { self.db_instance_automated_backup = Some(input); self } pub fn set_db_instance_automated_backup( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance_automated_backup = input; self } - /// Consumes the builder and constructs a [`DeleteDBInstanceAutomatedBackupOutput`](crate::output::DeleteDBInstanceAutomatedBackupOutput) - pub fn build(self) -> crate::output::DeleteDBInstanceAutomatedBackupOutput { - crate::output::DeleteDBInstanceAutomatedBackupOutput { + /// Consumes the builder and constructs a [`DeleteDbInstanceAutomatedBackupOutput`](crate::output::DeleteDbInstanceAutomatedBackupOutput) + pub fn build(self) -> crate::output::DeleteDbInstanceAutomatedBackupOutput { + crate::output::DeleteDbInstanceAutomatedBackupOutput { db_instance_automated_backup: self.db_instance_automated_backup, } } } } -impl DeleteDBInstanceAutomatedBackupOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceAutomatedBackupOutput`](crate::output::DeleteDBInstanceAutomatedBackupOutput) +impl DeleteDbInstanceAutomatedBackupOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceAutomatedBackupOutput`](crate::output::DeleteDbInstanceAutomatedBackupOutput) pub fn builder() -> crate::output::delete_db_instance_automated_backup_output::Builder { crate::output::delete_db_instance_automated_backup_output::Builder::default() } @@ -7058,54 +7058,54 @@ impl DeleteDBInstanceAutomatedBackupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBInstanceOutput { +pub struct DeleteDbInstanceOutput { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for DeleteDBInstanceOutput { +impl std::fmt::Debug for DeleteDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBInstanceOutput"); + let mut formatter = f.debug_struct("DeleteDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`DeleteDBInstanceOutput`](crate::output::DeleteDBInstanceOutput) +/// See [`DeleteDbInstanceOutput`](crate::output::DeleteDbInstanceOutput) pub mod delete_db_instance_output { - /// A builder for [`DeleteDBInstanceOutput`](crate::output::DeleteDBInstanceOutput) + /// A builder for [`DeleteDbInstanceOutput`](crate::output::DeleteDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`DeleteDBInstanceOutput`](crate::output::DeleteDBInstanceOutput) - pub fn build(self) -> crate::output::DeleteDBInstanceOutput { - crate::output::DeleteDBInstanceOutput { + /// Consumes the builder and constructs a [`DeleteDbInstanceOutput`](crate::output::DeleteDbInstanceOutput) + pub fn build(self) -> crate::output::DeleteDbInstanceOutput { + crate::output::DeleteDbInstanceOutput { db_instance: self.db_instance, } } } } -impl DeleteDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBInstanceOutput`](crate::output::DeleteDBInstanceOutput) +impl DeleteDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbInstanceOutput`](crate::output::DeleteDbInstanceOutput) pub fn builder() -> crate::output::delete_db_instance_output::Builder { crate::output::delete_db_instance_output::Builder::default() } @@ -7113,28 +7113,28 @@ impl DeleteDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterSnapshotOutput { +pub struct DeleteDbClusterSnapshotOutput { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub db_cluster_snapshot: std::option::Option, + pub db_cluster_snapshot: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterSnapshotOutput { +impl std::fmt::Debug for DeleteDbClusterSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterSnapshotOutput"); + let mut formatter = f.debug_struct("DeleteDbClusterSnapshotOutput"); formatter.field("db_cluster_snapshot", &self.db_cluster_snapshot); formatter.finish() } } -/// See [`DeleteDBClusterSnapshotOutput`](crate::output::DeleteDBClusterSnapshotOutput) +/// See [`DeleteDbClusterSnapshotOutput`](crate::output::DeleteDbClusterSnapshotOutput) pub mod delete_db_cluster_snapshot_output { - /// A builder for [`DeleteDBClusterSnapshotOutput`](crate::output::DeleteDBClusterSnapshotOutput) + /// A builder for [`DeleteDbClusterSnapshotOutput`](crate::output::DeleteDbClusterSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster_snapshot: std::option::Option, + pub(crate) db_cluster_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot @@ -7142,27 +7142,27 @@ pub mod delete_db_cluster_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub fn db_cluster_snapshot(mut self, input: crate::model::DBClusterSnapshot) -> Self { + pub fn db_cluster_snapshot(mut self, input: crate::model::DbClusterSnapshot) -> Self { self.db_cluster_snapshot = Some(input); self } pub fn set_db_cluster_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_snapshot = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterSnapshotOutput`](crate::output::DeleteDBClusterSnapshotOutput) - pub fn build(self) -> crate::output::DeleteDBClusterSnapshotOutput { - crate::output::DeleteDBClusterSnapshotOutput { + /// Consumes the builder and constructs a [`DeleteDbClusterSnapshotOutput`](crate::output::DeleteDbClusterSnapshotOutput) + pub fn build(self) -> crate::output::DeleteDbClusterSnapshotOutput { + crate::output::DeleteDbClusterSnapshotOutput { db_cluster_snapshot: self.db_cluster_snapshot, } } } } -impl DeleteDBClusterSnapshotOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterSnapshotOutput`](crate::output::DeleteDBClusterSnapshotOutput) +impl DeleteDbClusterSnapshotOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbClusterSnapshotOutput`](crate::output::DeleteDbClusterSnapshotOutput) pub fn builder() -> crate::output::delete_db_cluster_snapshot_output::Builder { crate::output::delete_db_cluster_snapshot_output::Builder::default() } @@ -7170,28 +7170,28 @@ impl DeleteDBClusterSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterParameterGroupOutput {} -impl std::fmt::Debug for DeleteDBClusterParameterGroupOutput { +pub struct DeleteDbClusterParameterGroupOutput {} +impl std::fmt::Debug for DeleteDbClusterParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterParameterGroupOutput"); + let mut formatter = f.debug_struct("DeleteDbClusterParameterGroupOutput"); formatter.finish() } } -/// See [`DeleteDBClusterParameterGroupOutput`](crate::output::DeleteDBClusterParameterGroupOutput) +/// See [`DeleteDbClusterParameterGroupOutput`](crate::output::DeleteDbClusterParameterGroupOutput) pub mod delete_db_cluster_parameter_group_output { - /// A builder for [`DeleteDBClusterParameterGroupOutput`](crate::output::DeleteDBClusterParameterGroupOutput) + /// A builder for [`DeleteDbClusterParameterGroupOutput`](crate::output::DeleteDbClusterParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteDBClusterParameterGroupOutput`](crate::output::DeleteDBClusterParameterGroupOutput) - pub fn build(self) -> crate::output::DeleteDBClusterParameterGroupOutput { - crate::output::DeleteDBClusterParameterGroupOutput {} + /// Consumes the builder and constructs a [`DeleteDbClusterParameterGroupOutput`](crate::output::DeleteDbClusterParameterGroupOutput) + pub fn build(self) -> crate::output::DeleteDbClusterParameterGroupOutput { + crate::output::DeleteDbClusterParameterGroupOutput {} } } } -impl DeleteDBClusterParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterParameterGroupOutput`](crate::output::DeleteDBClusterParameterGroupOutput) +impl DeleteDbClusterParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbClusterParameterGroupOutput`](crate::output::DeleteDbClusterParameterGroupOutput) pub fn builder() -> crate::output::delete_db_cluster_parameter_group_output::Builder { crate::output::delete_db_cluster_parameter_group_output::Builder::default() } @@ -7225,7 +7225,7 @@ impl DeleteDBClusterParameterGroupOutput { /// see Endpoint.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterEndpointOutput { +pub struct DeleteDbClusterEndpointOutput { ///

                                        The identifier associated with the endpoint. This parameter is stored as a lowercase string.

                                        pub db_cluster_endpoint_identifier: std::option::Option, ///

                                        The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is @@ -7252,9 +7252,9 @@ pub struct DeleteDBClusterEndpointOutput { ///

                                        The Amazon Resource Name (ARN) for the endpoint.

                                        pub db_cluster_endpoint_arn: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterEndpointOutput { +impl std::fmt::Debug for DeleteDbClusterEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterEndpointOutput"); + let mut formatter = f.debug_struct("DeleteDbClusterEndpointOutput"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -7274,9 +7274,9 @@ impl std::fmt::Debug for DeleteDBClusterEndpointOutput { formatter.finish() } } -/// See [`DeleteDBClusterEndpointOutput`](crate::output::DeleteDBClusterEndpointOutput) +/// See [`DeleteDbClusterEndpointOutput`](crate::output::DeleteDbClusterEndpointOutput) pub mod delete_db_cluster_endpoint_output { - /// A builder for [`DeleteDBClusterEndpointOutput`](crate::output::DeleteDBClusterEndpointOutput) + /// A builder for [`DeleteDbClusterEndpointOutput`](crate::output::DeleteDbClusterEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7418,9 +7418,9 @@ pub mod delete_db_cluster_endpoint_output { self.db_cluster_endpoint_arn = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterEndpointOutput`](crate::output::DeleteDBClusterEndpointOutput) - pub fn build(self) -> crate::output::DeleteDBClusterEndpointOutput { - crate::output::DeleteDBClusterEndpointOutput { + /// Consumes the builder and constructs a [`DeleteDbClusterEndpointOutput`](crate::output::DeleteDbClusterEndpointOutput) + pub fn build(self) -> crate::output::DeleteDbClusterEndpointOutput { + crate::output::DeleteDbClusterEndpointOutput { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_resource_identifier: self @@ -7436,8 +7436,8 @@ pub mod delete_db_cluster_endpoint_output { } } } -impl DeleteDBClusterEndpointOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterEndpointOutput`](crate::output::DeleteDBClusterEndpointOutput) +impl DeleteDbClusterEndpointOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbClusterEndpointOutput`](crate::output::DeleteDbClusterEndpointOutput) pub fn builder() -> crate::output::delete_db_cluster_endpoint_output::Builder { crate::output::delete_db_cluster_endpoint_output::Builder::default() } @@ -7445,28 +7445,28 @@ impl DeleteDBClusterEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDBClusterOutput { +pub struct DeleteDbClusterOutput { ///

                                        Contains the details of an Amazon Aurora DB cluster. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for DeleteDBClusterOutput { +impl std::fmt::Debug for DeleteDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDBClusterOutput"); + let mut formatter = f.debug_struct("DeleteDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`DeleteDBClusterOutput`](crate::output::DeleteDBClusterOutput) +/// See [`DeleteDbClusterOutput`](crate::output::DeleteDbClusterOutput) pub mod delete_db_cluster_output { - /// A builder for [`DeleteDBClusterOutput`](crate::output::DeleteDBClusterOutput) + /// A builder for [`DeleteDbClusterOutput`](crate::output::DeleteDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon Aurora DB cluster. @@ -7474,27 +7474,27 @@ pub mod delete_db_cluster_output { ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`DeleteDBClusterOutput`](crate::output::DeleteDBClusterOutput) - pub fn build(self) -> crate::output::DeleteDBClusterOutput { - crate::output::DeleteDBClusterOutput { + /// Consumes the builder and constructs a [`DeleteDbClusterOutput`](crate::output::DeleteDbClusterOutput) + pub fn build(self) -> crate::output::DeleteDbClusterOutput { + crate::output::DeleteDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl DeleteDBClusterOutput { - /// Creates a new builder-style object to manufacture [`DeleteDBClusterOutput`](crate::output::DeleteDBClusterOutput) +impl DeleteDbClusterOutput { + /// Creates a new builder-style object to manufacture [`DeleteDbClusterOutput`](crate::output::DeleteDbClusterOutput) pub fn builder() -> crate::output::delete_db_cluster_output::Builder { crate::output::delete_db_cluster_output::Builder::default() } @@ -7710,28 +7710,28 @@ impl CreateEventSubscriptionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSubnetGroupOutput { +pub struct CreateDbSubnetGroupOutput { ///

                                        Contains the details of an Amazon RDS DB subnet group. ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBSubnetGroups action. ///

                                        - pub db_subnet_group: std::option::Option, + pub db_subnet_group: std::option::Option, } -impl std::fmt::Debug for CreateDBSubnetGroupOutput { +impl std::fmt::Debug for CreateDbSubnetGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSubnetGroupOutput"); + let mut formatter = f.debug_struct("CreateDbSubnetGroupOutput"); formatter.field("db_subnet_group", &self.db_subnet_group); formatter.finish() } } -/// See [`CreateDBSubnetGroupOutput`](crate::output::CreateDBSubnetGroupOutput) +/// See [`CreateDbSubnetGroupOutput`](crate::output::CreateDbSubnetGroupOutput) pub mod create_db_subnet_group_output { - /// A builder for [`CreateDBSubnetGroupOutput`](crate::output::CreateDBSubnetGroupOutput) + /// A builder for [`CreateDbSubnetGroupOutput`](crate::output::CreateDbSubnetGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_subnet_group: std::option::Option, + pub(crate) db_subnet_group: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB subnet group. @@ -7739,27 +7739,27 @@ pub mod create_db_subnet_group_output { ///

                                        This data type is used as a response element /// in the DescribeDBSubnetGroups action. ///

                                        - pub fn db_subnet_group(mut self, input: crate::model::DBSubnetGroup) -> Self { + pub fn db_subnet_group(mut self, input: crate::model::DbSubnetGroup) -> Self { self.db_subnet_group = Some(input); self } pub fn set_db_subnet_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_subnet_group = input; self } - /// Consumes the builder and constructs a [`CreateDBSubnetGroupOutput`](crate::output::CreateDBSubnetGroupOutput) - pub fn build(self) -> crate::output::CreateDBSubnetGroupOutput { - crate::output::CreateDBSubnetGroupOutput { + /// Consumes the builder and constructs a [`CreateDbSubnetGroupOutput`](crate::output::CreateDbSubnetGroupOutput) + pub fn build(self) -> crate::output::CreateDbSubnetGroupOutput { + crate::output::CreateDbSubnetGroupOutput { db_subnet_group: self.db_subnet_group, } } } } -impl CreateDBSubnetGroupOutput { - /// Creates a new builder-style object to manufacture [`CreateDBSubnetGroupOutput`](crate::output::CreateDBSubnetGroupOutput) +impl CreateDbSubnetGroupOutput { + /// Creates a new builder-style object to manufacture [`CreateDbSubnetGroupOutput`](crate::output::CreateDbSubnetGroupOutput) pub fn builder() -> crate::output::create_db_subnet_group_output::Builder { crate::output::create_db_subnet_group_output::Builder::default() } @@ -7767,28 +7767,28 @@ impl CreateDBSubnetGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSnapshotOutput { +pub struct CreateDbSnapshotOutput { ///

                                        Contains the details of an Amazon RDS DB snapshot. ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub db_snapshot: std::option::Option, + pub db_snapshot: std::option::Option, } -impl std::fmt::Debug for CreateDBSnapshotOutput { +impl std::fmt::Debug for CreateDbSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSnapshotOutput"); + let mut formatter = f.debug_struct("CreateDbSnapshotOutput"); formatter.field("db_snapshot", &self.db_snapshot); formatter.finish() } } -/// See [`CreateDBSnapshotOutput`](crate::output::CreateDBSnapshotOutput) +/// See [`CreateDbSnapshotOutput`](crate::output::CreateDbSnapshotOutput) pub mod create_db_snapshot_output { - /// A builder for [`CreateDBSnapshotOutput`](crate::output::CreateDBSnapshotOutput) + /// A builder for [`CreateDbSnapshotOutput`](crate::output::CreateDbSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_snapshot: std::option::Option, + pub(crate) db_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB snapshot. @@ -7796,27 +7796,27 @@ pub mod create_db_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub fn db_snapshot(mut self, input: crate::model::DBSnapshot) -> Self { + pub fn db_snapshot(mut self, input: crate::model::DbSnapshot) -> Self { self.db_snapshot = Some(input); self } pub fn set_db_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot = input; self } - /// Consumes the builder and constructs a [`CreateDBSnapshotOutput`](crate::output::CreateDBSnapshotOutput) - pub fn build(self) -> crate::output::CreateDBSnapshotOutput { - crate::output::CreateDBSnapshotOutput { + /// Consumes the builder and constructs a [`CreateDbSnapshotOutput`](crate::output::CreateDbSnapshotOutput) + pub fn build(self) -> crate::output::CreateDbSnapshotOutput { + crate::output::CreateDbSnapshotOutput { db_snapshot: self.db_snapshot, } } } } -impl CreateDBSnapshotOutput { - /// Creates a new builder-style object to manufacture [`CreateDBSnapshotOutput`](crate::output::CreateDBSnapshotOutput) +impl CreateDbSnapshotOutput { + /// Creates a new builder-style object to manufacture [`CreateDbSnapshotOutput`](crate::output::CreateDbSnapshotOutput) pub fn builder() -> crate::output::create_db_snapshot_output::Builder { crate::output::create_db_snapshot_output::Builder::default() } @@ -7824,28 +7824,28 @@ impl CreateDBSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBSecurityGroupOutput { +pub struct CreateDbSecurityGroupOutput { ///

                                        Contains the details for an Amazon RDS DB security group. ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                        - pub db_security_group: std::option::Option, + pub db_security_group: std::option::Option, } -impl std::fmt::Debug for CreateDBSecurityGroupOutput { +impl std::fmt::Debug for CreateDbSecurityGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBSecurityGroupOutput"); + let mut formatter = f.debug_struct("CreateDbSecurityGroupOutput"); formatter.field("db_security_group", &self.db_security_group); formatter.finish() } } -/// See [`CreateDBSecurityGroupOutput`](crate::output::CreateDBSecurityGroupOutput) +/// See [`CreateDbSecurityGroupOutput`](crate::output::CreateDbSecurityGroupOutput) pub mod create_db_security_group_output { - /// A builder for [`CreateDBSecurityGroupOutput`](crate::output::CreateDBSecurityGroupOutput) + /// A builder for [`CreateDbSecurityGroupOutput`](crate::output::CreateDbSecurityGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_security_group: std::option::Option, + pub(crate) db_security_group: std::option::Option, } impl Builder { ///

                                        Contains the details for an Amazon RDS DB security group. @@ -7853,27 +7853,27 @@ pub mod create_db_security_group_output { ///

                                        This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                        - pub fn db_security_group(mut self, input: crate::model::DBSecurityGroup) -> Self { + pub fn db_security_group(mut self, input: crate::model::DbSecurityGroup) -> Self { self.db_security_group = Some(input); self } pub fn set_db_security_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_security_group = input; self } - /// Consumes the builder and constructs a [`CreateDBSecurityGroupOutput`](crate::output::CreateDBSecurityGroupOutput) - pub fn build(self) -> crate::output::CreateDBSecurityGroupOutput { - crate::output::CreateDBSecurityGroupOutput { + /// Consumes the builder and constructs a [`CreateDbSecurityGroupOutput`](crate::output::CreateDbSecurityGroupOutput) + pub fn build(self) -> crate::output::CreateDbSecurityGroupOutput { + crate::output::CreateDbSecurityGroupOutput { db_security_group: self.db_security_group, } } } } -impl CreateDBSecurityGroupOutput { - /// Creates a new builder-style object to manufacture [`CreateDBSecurityGroupOutput`](crate::output::CreateDBSecurityGroupOutput) +impl CreateDbSecurityGroupOutput { + /// Creates a new builder-style object to manufacture [`CreateDbSecurityGroupOutput`](crate::output::CreateDbSecurityGroupOutput) pub fn builder() -> crate::output::create_db_security_group_output::Builder { crate::output::create_db_security_group_output::Builder::default() } @@ -7881,52 +7881,52 @@ impl CreateDBSecurityGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBProxyEndpointOutput { +pub struct CreateDbProxyEndpointOutput { ///

                                        The DBProxyEndpoint object that is created by the API operation. /// The DB proxy endpoint that you create might provide capabilities such as read/write /// or read-only operations, or using a different VPC than the proxy's default VPC.

                                        - pub db_proxy_endpoint: std::option::Option, + pub db_proxy_endpoint: std::option::Option, } -impl std::fmt::Debug for CreateDBProxyEndpointOutput { +impl std::fmt::Debug for CreateDbProxyEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBProxyEndpointOutput"); + let mut formatter = f.debug_struct("CreateDbProxyEndpointOutput"); formatter.field("db_proxy_endpoint", &self.db_proxy_endpoint); formatter.finish() } } -/// See [`CreateDBProxyEndpointOutput`](crate::output::CreateDBProxyEndpointOutput) +/// See [`CreateDbProxyEndpointOutput`](crate::output::CreateDbProxyEndpointOutput) pub mod create_db_proxy_endpoint_output { - /// A builder for [`CreateDBProxyEndpointOutput`](crate::output::CreateDBProxyEndpointOutput) + /// A builder for [`CreateDbProxyEndpointOutput`](crate::output::CreateDbProxyEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy_endpoint: std::option::Option, + pub(crate) db_proxy_endpoint: std::option::Option, } impl Builder { ///

                                        The DBProxyEndpoint object that is created by the API operation. /// The DB proxy endpoint that you create might provide capabilities such as read/write /// or read-only operations, or using a different VPC than the proxy's default VPC.

                                        - pub fn db_proxy_endpoint(mut self, input: crate::model::DBProxyEndpoint) -> Self { + pub fn db_proxy_endpoint(mut self, input: crate::model::DbProxyEndpoint) -> Self { self.db_proxy_endpoint = Some(input); self } pub fn set_db_proxy_endpoint( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_proxy_endpoint = input; self } - /// Consumes the builder and constructs a [`CreateDBProxyEndpointOutput`](crate::output::CreateDBProxyEndpointOutput) - pub fn build(self) -> crate::output::CreateDBProxyEndpointOutput { - crate::output::CreateDBProxyEndpointOutput { + /// Consumes the builder and constructs a [`CreateDbProxyEndpointOutput`](crate::output::CreateDbProxyEndpointOutput) + pub fn build(self) -> crate::output::CreateDbProxyEndpointOutput { + crate::output::CreateDbProxyEndpointOutput { db_proxy_endpoint: self.db_proxy_endpoint, } } } } -impl CreateDBProxyEndpointOutput { - /// Creates a new builder-style object to manufacture [`CreateDBProxyEndpointOutput`](crate::output::CreateDBProxyEndpointOutput) +impl CreateDbProxyEndpointOutput { + /// Creates a new builder-style object to manufacture [`CreateDbProxyEndpointOutput`](crate::output::CreateDbProxyEndpointOutput) pub fn builder() -> crate::output::create_db_proxy_endpoint_output::Builder { crate::output::create_db_proxy_endpoint_output::Builder::default() } @@ -7934,45 +7934,45 @@ impl CreateDBProxyEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBProxyOutput { +pub struct CreateDbProxyOutput { ///

                                        The DBProxy structure corresponding to the new proxy.

                                        - pub db_proxy: std::option::Option, + pub db_proxy: std::option::Option, } -impl std::fmt::Debug for CreateDBProxyOutput { +impl std::fmt::Debug for CreateDbProxyOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBProxyOutput"); + let mut formatter = f.debug_struct("CreateDbProxyOutput"); formatter.field("db_proxy", &self.db_proxy); formatter.finish() } } -/// See [`CreateDBProxyOutput`](crate::output::CreateDBProxyOutput) +/// See [`CreateDbProxyOutput`](crate::output::CreateDbProxyOutput) pub mod create_db_proxy_output { - /// A builder for [`CreateDBProxyOutput`](crate::output::CreateDBProxyOutput) + /// A builder for [`CreateDbProxyOutput`](crate::output::CreateDbProxyOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_proxy: std::option::Option, + pub(crate) db_proxy: std::option::Option, } impl Builder { ///

                                        The DBProxy structure corresponding to the new proxy.

                                        - pub fn db_proxy(mut self, input: crate::model::DBProxy) -> Self { + pub fn db_proxy(mut self, input: crate::model::DbProxy) -> Self { self.db_proxy = Some(input); self } - pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { + pub fn set_db_proxy(mut self, input: std::option::Option) -> Self { self.db_proxy = input; self } - /// Consumes the builder and constructs a [`CreateDBProxyOutput`](crate::output::CreateDBProxyOutput) - pub fn build(self) -> crate::output::CreateDBProxyOutput { - crate::output::CreateDBProxyOutput { + /// Consumes the builder and constructs a [`CreateDbProxyOutput`](crate::output::CreateDbProxyOutput) + pub fn build(self) -> crate::output::CreateDbProxyOutput { + crate::output::CreateDbProxyOutput { db_proxy: self.db_proxy, } } } } -impl CreateDBProxyOutput { - /// Creates a new builder-style object to manufacture [`CreateDBProxyOutput`](crate::output::CreateDBProxyOutput) +impl CreateDbProxyOutput { + /// Creates a new builder-style object to manufacture [`CreateDbProxyOutput`](crate::output::CreateDbProxyOutput) pub fn builder() -> crate::output::create_db_proxy_output::Builder { crate::output::create_db_proxy_output::Builder::default() } @@ -7980,54 +7980,54 @@ impl CreateDBProxyOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBParameterGroupOutput { +pub struct CreateDbParameterGroupOutput { ///

                                        Contains the details of an Amazon RDS DB parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBParameterGroups action. ///

                                        - pub db_parameter_group: std::option::Option, + pub db_parameter_group: std::option::Option, } -impl std::fmt::Debug for CreateDBParameterGroupOutput { +impl std::fmt::Debug for CreateDbParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBParameterGroupOutput"); + let mut formatter = f.debug_struct("CreateDbParameterGroupOutput"); formatter.field("db_parameter_group", &self.db_parameter_group); formatter.finish() } } -/// See [`CreateDBParameterGroupOutput`](crate::output::CreateDBParameterGroupOutput) +/// See [`CreateDbParameterGroupOutput`](crate::output::CreateDbParameterGroupOutput) pub mod create_db_parameter_group_output { - /// A builder for [`CreateDBParameterGroupOutput`](crate::output::CreateDBParameterGroupOutput) + /// A builder for [`CreateDbParameterGroupOutput`](crate::output::CreateDbParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_parameter_group: std::option::Option, + pub(crate) db_parameter_group: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBParameterGroups action. ///

                                        - pub fn db_parameter_group(mut self, input: crate::model::DBParameterGroup) -> Self { + pub fn db_parameter_group(mut self, input: crate::model::DbParameterGroup) -> Self { self.db_parameter_group = Some(input); self } pub fn set_db_parameter_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_parameter_group = input; self } - /// Consumes the builder and constructs a [`CreateDBParameterGroupOutput`](crate::output::CreateDBParameterGroupOutput) - pub fn build(self) -> crate::output::CreateDBParameterGroupOutput { - crate::output::CreateDBParameterGroupOutput { + /// Consumes the builder and constructs a [`CreateDbParameterGroupOutput`](crate::output::CreateDbParameterGroupOutput) + pub fn build(self) -> crate::output::CreateDbParameterGroupOutput { + crate::output::CreateDbParameterGroupOutput { db_parameter_group: self.db_parameter_group, } } } } -impl CreateDBParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`CreateDBParameterGroupOutput`](crate::output::CreateDBParameterGroupOutput) +impl CreateDbParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`CreateDbParameterGroupOutput`](crate::output::CreateDbParameterGroupOutput) pub fn builder() -> crate::output::create_db_parameter_group_output::Builder { crate::output::create_db_parameter_group_output::Builder::default() } @@ -8035,54 +8035,54 @@ impl CreateDBParameterGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBInstanceReadReplicaOutput { +pub struct CreateDbInstanceReadReplicaOutput { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for CreateDBInstanceReadReplicaOutput { +impl std::fmt::Debug for CreateDbInstanceReadReplicaOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBInstanceReadReplicaOutput"); + let mut formatter = f.debug_struct("CreateDbInstanceReadReplicaOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`CreateDBInstanceReadReplicaOutput`](crate::output::CreateDBInstanceReadReplicaOutput) +/// See [`CreateDbInstanceReadReplicaOutput`](crate::output::CreateDbInstanceReadReplicaOutput) pub mod create_db_instance_read_replica_output { - /// A builder for [`CreateDBInstanceReadReplicaOutput`](crate::output::CreateDBInstanceReadReplicaOutput) + /// A builder for [`CreateDbInstanceReadReplicaOutput`](crate::output::CreateDbInstanceReadReplicaOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`CreateDBInstanceReadReplicaOutput`](crate::output::CreateDBInstanceReadReplicaOutput) - pub fn build(self) -> crate::output::CreateDBInstanceReadReplicaOutput { - crate::output::CreateDBInstanceReadReplicaOutput { + /// Consumes the builder and constructs a [`CreateDbInstanceReadReplicaOutput`](crate::output::CreateDbInstanceReadReplicaOutput) + pub fn build(self) -> crate::output::CreateDbInstanceReadReplicaOutput { + crate::output::CreateDbInstanceReadReplicaOutput { db_instance: self.db_instance, } } } } -impl CreateDBInstanceReadReplicaOutput { - /// Creates a new builder-style object to manufacture [`CreateDBInstanceReadReplicaOutput`](crate::output::CreateDBInstanceReadReplicaOutput) +impl CreateDbInstanceReadReplicaOutput { + /// Creates a new builder-style object to manufacture [`CreateDbInstanceReadReplicaOutput`](crate::output::CreateDbInstanceReadReplicaOutput) pub fn builder() -> crate::output::create_db_instance_read_replica_output::Builder { crate::output::create_db_instance_read_replica_output::Builder::default() } @@ -8090,54 +8090,54 @@ impl CreateDBInstanceReadReplicaOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBInstanceOutput { +pub struct CreateDbInstanceOutput { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub db_instance: std::option::Option, + pub db_instance: std::option::Option, } -impl std::fmt::Debug for CreateDBInstanceOutput { +impl std::fmt::Debug for CreateDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBInstanceOutput"); + let mut formatter = f.debug_struct("CreateDbInstanceOutput"); formatter.field("db_instance", &self.db_instance); formatter.finish() } } -/// See [`CreateDBInstanceOutput`](crate::output::CreateDBInstanceOutput) +/// See [`CreateDbInstanceOutput`](crate::output::CreateDbInstanceOutput) pub mod create_db_instance_output { - /// A builder for [`CreateDBInstanceOutput`](crate::output::CreateDBInstanceOutput) + /// A builder for [`CreateDbInstanceOutput`](crate::output::CreateDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_instance: std::option::Option, + pub(crate) db_instance: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB instance. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBInstances action. ///

                                        - pub fn db_instance(mut self, input: crate::model::DBInstance) -> Self { + pub fn db_instance(mut self, input: crate::model::DbInstance) -> Self { self.db_instance = Some(input); self } pub fn set_db_instance( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_instance = input; self } - /// Consumes the builder and constructs a [`CreateDBInstanceOutput`](crate::output::CreateDBInstanceOutput) - pub fn build(self) -> crate::output::CreateDBInstanceOutput { - crate::output::CreateDBInstanceOutput { + /// Consumes the builder and constructs a [`CreateDbInstanceOutput`](crate::output::CreateDbInstanceOutput) + pub fn build(self) -> crate::output::CreateDbInstanceOutput { + crate::output::CreateDbInstanceOutput { db_instance: self.db_instance, } } } } -impl CreateDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`CreateDBInstanceOutput`](crate::output::CreateDBInstanceOutput) +impl CreateDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`CreateDbInstanceOutput`](crate::output::CreateDbInstanceOutput) pub fn builder() -> crate::output::create_db_instance_output::Builder { crate::output::create_db_instance_output::Builder::default() } @@ -8145,28 +8145,28 @@ impl CreateDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBClusterSnapshotOutput { +pub struct CreateDbClusterSnapshotOutput { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub db_cluster_snapshot: std::option::Option, + pub db_cluster_snapshot: std::option::Option, } -impl std::fmt::Debug for CreateDBClusterSnapshotOutput { +impl std::fmt::Debug for CreateDbClusterSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBClusterSnapshotOutput"); + let mut formatter = f.debug_struct("CreateDbClusterSnapshotOutput"); formatter.field("db_cluster_snapshot", &self.db_cluster_snapshot); formatter.finish() } } -/// See [`CreateDBClusterSnapshotOutput`](crate::output::CreateDBClusterSnapshotOutput) +/// See [`CreateDbClusterSnapshotOutput`](crate::output::CreateDbClusterSnapshotOutput) pub mod create_db_cluster_snapshot_output { - /// A builder for [`CreateDBClusterSnapshotOutput`](crate::output::CreateDBClusterSnapshotOutput) + /// A builder for [`CreateDbClusterSnapshotOutput`](crate::output::CreateDbClusterSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster_snapshot: std::option::Option, + pub(crate) db_cluster_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot @@ -8174,27 +8174,27 @@ pub mod create_db_cluster_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub fn db_cluster_snapshot(mut self, input: crate::model::DBClusterSnapshot) -> Self { + pub fn db_cluster_snapshot(mut self, input: crate::model::DbClusterSnapshot) -> Self { self.db_cluster_snapshot = Some(input); self } pub fn set_db_cluster_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_snapshot = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterSnapshotOutput`](crate::output::CreateDBClusterSnapshotOutput) - pub fn build(self) -> crate::output::CreateDBClusterSnapshotOutput { - crate::output::CreateDBClusterSnapshotOutput { + /// Consumes the builder and constructs a [`CreateDbClusterSnapshotOutput`](crate::output::CreateDbClusterSnapshotOutput) + pub fn build(self) -> crate::output::CreateDbClusterSnapshotOutput { + crate::output::CreateDbClusterSnapshotOutput { db_cluster_snapshot: self.db_cluster_snapshot, } } } } -impl CreateDBClusterSnapshotOutput { - /// Creates a new builder-style object to manufacture [`CreateDBClusterSnapshotOutput`](crate::output::CreateDBClusterSnapshotOutput) +impl CreateDbClusterSnapshotOutput { + /// Creates a new builder-style object to manufacture [`CreateDbClusterSnapshotOutput`](crate::output::CreateDbClusterSnapshotOutput) pub fn builder() -> crate::output::create_db_cluster_snapshot_output::Builder { crate::output::create_db_cluster_snapshot_output::Builder::default() } @@ -8202,16 +8202,16 @@ impl CreateDBClusterSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBClusterParameterGroupOutput { +pub struct CreateDbClusterParameterGroupOutput { ///

                                        Contains the details of an Amazon RDS DB cluster parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusterParameterGroups action. ///

                                        - pub db_cluster_parameter_group: std::option::Option, + pub db_cluster_parameter_group: std::option::Option, } -impl std::fmt::Debug for CreateDBClusterParameterGroupOutput { +impl std::fmt::Debug for CreateDbClusterParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBClusterParameterGroupOutput"); + let mut formatter = f.debug_struct("CreateDbClusterParameterGroupOutput"); formatter.field( "db_cluster_parameter_group", &self.db_cluster_parameter_group, @@ -8219,14 +8219,14 @@ impl std::fmt::Debug for CreateDBClusterParameterGroupOutput { formatter.finish() } } -/// See [`CreateDBClusterParameterGroupOutput`](crate::output::CreateDBClusterParameterGroupOutput) +/// See [`CreateDbClusterParameterGroupOutput`](crate::output::CreateDbClusterParameterGroupOutput) pub mod create_db_cluster_parameter_group_output { - /// A builder for [`CreateDBClusterParameterGroupOutput`](crate::output::CreateDBClusterParameterGroupOutput) + /// A builder for [`CreateDbClusterParameterGroupOutput`](crate::output::CreateDbClusterParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_cluster_parameter_group: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB cluster parameter group. @@ -8235,28 +8235,28 @@ pub mod create_db_cluster_parameter_group_output { ///

                                        pub fn db_cluster_parameter_group( mut self, - input: crate::model::DBClusterParameterGroup, + input: crate::model::DbClusterParameterGroup, ) -> Self { self.db_cluster_parameter_group = Some(input); self } pub fn set_db_cluster_parameter_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_parameter_group = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterParameterGroupOutput`](crate::output::CreateDBClusterParameterGroupOutput) - pub fn build(self) -> crate::output::CreateDBClusterParameterGroupOutput { - crate::output::CreateDBClusterParameterGroupOutput { + /// Consumes the builder and constructs a [`CreateDbClusterParameterGroupOutput`](crate::output::CreateDbClusterParameterGroupOutput) + pub fn build(self) -> crate::output::CreateDbClusterParameterGroupOutput { + crate::output::CreateDbClusterParameterGroupOutput { db_cluster_parameter_group: self.db_cluster_parameter_group, } } } } -impl CreateDBClusterParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`CreateDBClusterParameterGroupOutput`](crate::output::CreateDBClusterParameterGroupOutput) +impl CreateDbClusterParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`CreateDbClusterParameterGroupOutput`](crate::output::CreateDbClusterParameterGroupOutput) pub fn builder() -> crate::output::create_db_cluster_parameter_group_output::Builder { crate::output::create_db_cluster_parameter_group_output::Builder::default() } @@ -8290,7 +8290,7 @@ impl CreateDBClusterParameterGroupOutput { /// see Endpoint.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBClusterEndpointOutput { +pub struct CreateDbClusterEndpointOutput { ///

                                        The identifier associated with the endpoint. This parameter is stored as a lowercase string.

                                        pub db_cluster_endpoint_identifier: std::option::Option, ///

                                        The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is @@ -8317,9 +8317,9 @@ pub struct CreateDBClusterEndpointOutput { ///

                                        The Amazon Resource Name (ARN) for the endpoint.

                                        pub db_cluster_endpoint_arn: std::option::Option, } -impl std::fmt::Debug for CreateDBClusterEndpointOutput { +impl std::fmt::Debug for CreateDbClusterEndpointOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBClusterEndpointOutput"); + let mut formatter = f.debug_struct("CreateDbClusterEndpointOutput"); formatter.field( "db_cluster_endpoint_identifier", &self.db_cluster_endpoint_identifier, @@ -8339,9 +8339,9 @@ impl std::fmt::Debug for CreateDBClusterEndpointOutput { formatter.finish() } } -/// See [`CreateDBClusterEndpointOutput`](crate::output::CreateDBClusterEndpointOutput) +/// See [`CreateDbClusterEndpointOutput`](crate::output::CreateDbClusterEndpointOutput) pub mod create_db_cluster_endpoint_output { - /// A builder for [`CreateDBClusterEndpointOutput`](crate::output::CreateDBClusterEndpointOutput) + /// A builder for [`CreateDbClusterEndpointOutput`](crate::output::CreateDbClusterEndpointOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8483,9 +8483,9 @@ pub mod create_db_cluster_endpoint_output { self.db_cluster_endpoint_arn = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterEndpointOutput`](crate::output::CreateDBClusterEndpointOutput) - pub fn build(self) -> crate::output::CreateDBClusterEndpointOutput { - crate::output::CreateDBClusterEndpointOutput { + /// Consumes the builder and constructs a [`CreateDbClusterEndpointOutput`](crate::output::CreateDbClusterEndpointOutput) + pub fn build(self) -> crate::output::CreateDbClusterEndpointOutput { + crate::output::CreateDbClusterEndpointOutput { db_cluster_endpoint_identifier: self.db_cluster_endpoint_identifier, db_cluster_identifier: self.db_cluster_identifier, db_cluster_endpoint_resource_identifier: self @@ -8501,8 +8501,8 @@ pub mod create_db_cluster_endpoint_output { } } } -impl CreateDBClusterEndpointOutput { - /// Creates a new builder-style object to manufacture [`CreateDBClusterEndpointOutput`](crate::output::CreateDBClusterEndpointOutput) +impl CreateDbClusterEndpointOutput { + /// Creates a new builder-style object to manufacture [`CreateDbClusterEndpointOutput`](crate::output::CreateDbClusterEndpointOutput) pub fn builder() -> crate::output::create_db_cluster_endpoint_output::Builder { crate::output::create_db_cluster_endpoint_output::Builder::default() } @@ -8510,28 +8510,28 @@ impl CreateDBClusterEndpointOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDBClusterOutput { +pub struct CreateDbClusterOutput { ///

                                        Contains the details of an Amazon Aurora DB cluster. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub db_cluster: std::option::Option, + pub db_cluster: std::option::Option, } -impl std::fmt::Debug for CreateDBClusterOutput { +impl std::fmt::Debug for CreateDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDBClusterOutput"); + let mut formatter = f.debug_struct("CreateDbClusterOutput"); formatter.field("db_cluster", &self.db_cluster); formatter.finish() } } -/// See [`CreateDBClusterOutput`](crate::output::CreateDBClusterOutput) +/// See [`CreateDbClusterOutput`](crate::output::CreateDbClusterOutput) pub mod create_db_cluster_output { - /// A builder for [`CreateDBClusterOutput`](crate::output::CreateDBClusterOutput) + /// A builder for [`CreateDbClusterOutput`](crate::output::CreateDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster: std::option::Option, + pub(crate) db_cluster: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon Aurora DB cluster. @@ -8539,27 +8539,27 @@ pub mod create_db_cluster_output { ///

                                        This data type is used as a response element in the DescribeDBClusters, /// StopDBCluster, and StartDBCluster actions. ///

                                        - pub fn db_cluster(mut self, input: crate::model::DBCluster) -> Self { + pub fn db_cluster(mut self, input: crate::model::DbCluster) -> Self { self.db_cluster = Some(input); self } pub fn set_db_cluster( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster = input; self } - /// Consumes the builder and constructs a [`CreateDBClusterOutput`](crate::output::CreateDBClusterOutput) - pub fn build(self) -> crate::output::CreateDBClusterOutput { - crate::output::CreateDBClusterOutput { + /// Consumes the builder and constructs a [`CreateDbClusterOutput`](crate::output::CreateDbClusterOutput) + pub fn build(self) -> crate::output::CreateDbClusterOutput { + crate::output::CreateDbClusterOutput { db_cluster: self.db_cluster, } } } } -impl CreateDBClusterOutput { - /// Creates a new builder-style object to manufacture [`CreateDBClusterOutput`](crate::output::CreateDBClusterOutput) +impl CreateDbClusterOutput { + /// Creates a new builder-style object to manufacture [`CreateDbClusterOutput`](crate::output::CreateDbClusterOutput) pub fn builder() -> crate::output::create_db_cluster_output::Builder { crate::output::create_db_cluster_output::Builder::default() } @@ -8677,28 +8677,28 @@ impl CopyOptionGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CopyDBSnapshotOutput { +pub struct CopyDbSnapshotOutput { ///

                                        Contains the details of an Amazon RDS DB snapshot. ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub db_snapshot: std::option::Option, + pub db_snapshot: std::option::Option, } -impl std::fmt::Debug for CopyDBSnapshotOutput { +impl std::fmt::Debug for CopyDbSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CopyDBSnapshotOutput"); + let mut formatter = f.debug_struct("CopyDbSnapshotOutput"); formatter.field("db_snapshot", &self.db_snapshot); formatter.finish() } } -/// See [`CopyDBSnapshotOutput`](crate::output::CopyDBSnapshotOutput) +/// See [`CopyDbSnapshotOutput`](crate::output::CopyDbSnapshotOutput) pub mod copy_db_snapshot_output { - /// A builder for [`CopyDBSnapshotOutput`](crate::output::CopyDBSnapshotOutput) + /// A builder for [`CopyDbSnapshotOutput`](crate::output::CopyDbSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_snapshot: std::option::Option, + pub(crate) db_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB snapshot. @@ -8706,27 +8706,27 @@ pub mod copy_db_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBSnapshots action. ///

                                        - pub fn db_snapshot(mut self, input: crate::model::DBSnapshot) -> Self { + pub fn db_snapshot(mut self, input: crate::model::DbSnapshot) -> Self { self.db_snapshot = Some(input); self } pub fn set_db_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_snapshot = input; self } - /// Consumes the builder and constructs a [`CopyDBSnapshotOutput`](crate::output::CopyDBSnapshotOutput) - pub fn build(self) -> crate::output::CopyDBSnapshotOutput { - crate::output::CopyDBSnapshotOutput { + /// Consumes the builder and constructs a [`CopyDbSnapshotOutput`](crate::output::CopyDbSnapshotOutput) + pub fn build(self) -> crate::output::CopyDbSnapshotOutput { + crate::output::CopyDbSnapshotOutput { db_snapshot: self.db_snapshot, } } } } -impl CopyDBSnapshotOutput { - /// Creates a new builder-style object to manufacture [`CopyDBSnapshotOutput`](crate::output::CopyDBSnapshotOutput) +impl CopyDbSnapshotOutput { + /// Creates a new builder-style object to manufacture [`CopyDbSnapshotOutput`](crate::output::CopyDbSnapshotOutput) pub fn builder() -> crate::output::copy_db_snapshot_output::Builder { crate::output::copy_db_snapshot_output::Builder::default() } @@ -8734,54 +8734,54 @@ impl CopyDBSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CopyDBParameterGroupOutput { +pub struct CopyDbParameterGroupOutput { ///

                                        Contains the details of an Amazon RDS DB parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBParameterGroups action. ///

                                        - pub db_parameter_group: std::option::Option, + pub db_parameter_group: std::option::Option, } -impl std::fmt::Debug for CopyDBParameterGroupOutput { +impl std::fmt::Debug for CopyDbParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CopyDBParameterGroupOutput"); + let mut formatter = f.debug_struct("CopyDbParameterGroupOutput"); formatter.field("db_parameter_group", &self.db_parameter_group); formatter.finish() } } -/// See [`CopyDBParameterGroupOutput`](crate::output::CopyDBParameterGroupOutput) +/// See [`CopyDbParameterGroupOutput`](crate::output::CopyDbParameterGroupOutput) pub mod copy_db_parameter_group_output { - /// A builder for [`CopyDBParameterGroupOutput`](crate::output::CopyDBParameterGroupOutput) + /// A builder for [`CopyDbParameterGroupOutput`](crate::output::CopyDbParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_parameter_group: std::option::Option, + pub(crate) db_parameter_group: std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBParameterGroups action. ///

                                        - pub fn db_parameter_group(mut self, input: crate::model::DBParameterGroup) -> Self { + pub fn db_parameter_group(mut self, input: crate::model::DbParameterGroup) -> Self { self.db_parameter_group = Some(input); self } pub fn set_db_parameter_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_parameter_group = input; self } - /// Consumes the builder and constructs a [`CopyDBParameterGroupOutput`](crate::output::CopyDBParameterGroupOutput) - pub fn build(self) -> crate::output::CopyDBParameterGroupOutput { - crate::output::CopyDBParameterGroupOutput { + /// Consumes the builder and constructs a [`CopyDbParameterGroupOutput`](crate::output::CopyDbParameterGroupOutput) + pub fn build(self) -> crate::output::CopyDbParameterGroupOutput { + crate::output::CopyDbParameterGroupOutput { db_parameter_group: self.db_parameter_group, } } } } -impl CopyDBParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`CopyDBParameterGroupOutput`](crate::output::CopyDBParameterGroupOutput) +impl CopyDbParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`CopyDbParameterGroupOutput`](crate::output::CopyDbParameterGroupOutput) pub fn builder() -> crate::output::copy_db_parameter_group_output::Builder { crate::output::copy_db_parameter_group_output::Builder::default() } @@ -8789,28 +8789,28 @@ impl CopyDBParameterGroupOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CopyDBClusterSnapshotOutput { +pub struct CopyDbClusterSnapshotOutput { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot ///

                                        ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub db_cluster_snapshot: std::option::Option, + pub db_cluster_snapshot: std::option::Option, } -impl std::fmt::Debug for CopyDBClusterSnapshotOutput { +impl std::fmt::Debug for CopyDbClusterSnapshotOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CopyDBClusterSnapshotOutput"); + let mut formatter = f.debug_struct("CopyDbClusterSnapshotOutput"); formatter.field("db_cluster_snapshot", &self.db_cluster_snapshot); formatter.finish() } } -/// See [`CopyDBClusterSnapshotOutput`](crate::output::CopyDBClusterSnapshotOutput) +/// See [`CopyDbClusterSnapshotOutput`](crate::output::CopyDbClusterSnapshotOutput) pub mod copy_db_cluster_snapshot_output { - /// A builder for [`CopyDBClusterSnapshotOutput`](crate::output::CopyDBClusterSnapshotOutput) + /// A builder for [`CopyDbClusterSnapshotOutput`](crate::output::CopyDbClusterSnapshotOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_cluster_snapshot: std::option::Option, + pub(crate) db_cluster_snapshot: std::option::Option, } impl Builder { ///

                                        Contains the details for an Amazon RDS DB cluster snapshot @@ -8818,27 +8818,27 @@ pub mod copy_db_cluster_snapshot_output { ///

                                        This data type is used as a response element /// in the DescribeDBClusterSnapshots action. ///

                                        - pub fn db_cluster_snapshot(mut self, input: crate::model::DBClusterSnapshot) -> Self { + pub fn db_cluster_snapshot(mut self, input: crate::model::DbClusterSnapshot) -> Self { self.db_cluster_snapshot = Some(input); self } pub fn set_db_cluster_snapshot( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_snapshot = input; self } - /// Consumes the builder and constructs a [`CopyDBClusterSnapshotOutput`](crate::output::CopyDBClusterSnapshotOutput) - pub fn build(self) -> crate::output::CopyDBClusterSnapshotOutput { - crate::output::CopyDBClusterSnapshotOutput { + /// Consumes the builder and constructs a [`CopyDbClusterSnapshotOutput`](crate::output::CopyDbClusterSnapshotOutput) + pub fn build(self) -> crate::output::CopyDbClusterSnapshotOutput { + crate::output::CopyDbClusterSnapshotOutput { db_cluster_snapshot: self.db_cluster_snapshot, } } } } -impl CopyDBClusterSnapshotOutput { - /// Creates a new builder-style object to manufacture [`CopyDBClusterSnapshotOutput`](crate::output::CopyDBClusterSnapshotOutput) +impl CopyDbClusterSnapshotOutput { + /// Creates a new builder-style object to manufacture [`CopyDbClusterSnapshotOutput`](crate::output::CopyDbClusterSnapshotOutput) pub fn builder() -> crate::output::copy_db_cluster_snapshot_output::Builder { crate::output::copy_db_cluster_snapshot_output::Builder::default() } @@ -8846,16 +8846,16 @@ impl CopyDBClusterSnapshotOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CopyDBClusterParameterGroupOutput { +pub struct CopyDbClusterParameterGroupOutput { ///

                                        Contains the details of an Amazon RDS DB cluster parameter group. ///

                                        ///

                                        This data type is used as a response element in the DescribeDBClusterParameterGroups action. ///

                                        - pub db_cluster_parameter_group: std::option::Option, + pub db_cluster_parameter_group: std::option::Option, } -impl std::fmt::Debug for CopyDBClusterParameterGroupOutput { +impl std::fmt::Debug for CopyDbClusterParameterGroupOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CopyDBClusterParameterGroupOutput"); + let mut formatter = f.debug_struct("CopyDbClusterParameterGroupOutput"); formatter.field( "db_cluster_parameter_group", &self.db_cluster_parameter_group, @@ -8863,14 +8863,14 @@ impl std::fmt::Debug for CopyDBClusterParameterGroupOutput { formatter.finish() } } -/// See [`CopyDBClusterParameterGroupOutput`](crate::output::CopyDBClusterParameterGroupOutput) +/// See [`CopyDbClusterParameterGroupOutput`](crate::output::CopyDbClusterParameterGroupOutput) pub mod copy_db_cluster_parameter_group_output { - /// A builder for [`CopyDBClusterParameterGroupOutput`](crate::output::CopyDBClusterParameterGroupOutput) + /// A builder for [`CopyDbClusterParameterGroupOutput`](crate::output::CopyDbClusterParameterGroupOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) db_cluster_parameter_group: - std::option::Option, + std::option::Option, } impl Builder { ///

                                        Contains the details of an Amazon RDS DB cluster parameter group. @@ -8879,28 +8879,28 @@ pub mod copy_db_cluster_parameter_group_output { ///

                                        pub fn db_cluster_parameter_group( mut self, - input: crate::model::DBClusterParameterGroup, + input: crate::model::DbClusterParameterGroup, ) -> Self { self.db_cluster_parameter_group = Some(input); self } pub fn set_db_cluster_parameter_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_cluster_parameter_group = input; self } - /// Consumes the builder and constructs a [`CopyDBClusterParameterGroupOutput`](crate::output::CopyDBClusterParameterGroupOutput) - pub fn build(self) -> crate::output::CopyDBClusterParameterGroupOutput { - crate::output::CopyDBClusterParameterGroupOutput { + /// Consumes the builder and constructs a [`CopyDbClusterParameterGroupOutput`](crate::output::CopyDbClusterParameterGroupOutput) + pub fn build(self) -> crate::output::CopyDbClusterParameterGroupOutput { + crate::output::CopyDbClusterParameterGroupOutput { db_cluster_parameter_group: self.db_cluster_parameter_group, } } } } -impl CopyDBClusterParameterGroupOutput { - /// Creates a new builder-style object to manufacture [`CopyDBClusterParameterGroupOutput`](crate::output::CopyDBClusterParameterGroupOutput) +impl CopyDbClusterParameterGroupOutput { + /// Creates a new builder-style object to manufacture [`CopyDbClusterParameterGroupOutput`](crate::output::CopyDbClusterParameterGroupOutput) pub fn builder() -> crate::output::copy_db_cluster_parameter_group_output::Builder { crate::output::copy_db_cluster_parameter_group_output::Builder::default() } @@ -9210,7 +9210,7 @@ impl CancelExportTaskOutput { ///

                                        This data type is used as a response element in the DescribeDBClusterBacktracks action.

                                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BacktrackDBClusterOutput { +pub struct BacktrackDbClusterOutput { ///

                                        Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

                                        pub db_cluster_identifier: std::option::Option, ///

                                        Contains the backtrack identifier.

                                        @@ -9243,9 +9243,9 @@ pub struct BacktrackDBClusterOutput { ///
                                      pub status: std::option::Option, } -impl std::fmt::Debug for BacktrackDBClusterOutput { +impl std::fmt::Debug for BacktrackDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BacktrackDBClusterOutput"); + let mut formatter = f.debug_struct("BacktrackDbClusterOutput"); formatter.field("db_cluster_identifier", &self.db_cluster_identifier); formatter.field("backtrack_identifier", &self.backtrack_identifier); formatter.field("backtrack_to", &self.backtrack_to); @@ -9258,9 +9258,9 @@ impl std::fmt::Debug for BacktrackDBClusterOutput { formatter.finish() } } -/// See [`BacktrackDBClusterOutput`](crate::output::BacktrackDBClusterOutput) +/// See [`BacktrackDbClusterOutput`](crate::output::BacktrackDbClusterOutput) pub mod backtrack_db_cluster_output { - /// A builder for [`BacktrackDBClusterOutput`](crate::output::BacktrackDBClusterOutput) + /// A builder for [`BacktrackDbClusterOutput`](crate::output::BacktrackDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9360,9 +9360,9 @@ pub mod backtrack_db_cluster_output { self.status = input; self } - /// Consumes the builder and constructs a [`BacktrackDBClusterOutput`](crate::output::BacktrackDBClusterOutput) - pub fn build(self) -> crate::output::BacktrackDBClusterOutput { - crate::output::BacktrackDBClusterOutput { + /// Consumes the builder and constructs a [`BacktrackDbClusterOutput`](crate::output::BacktrackDbClusterOutput) + pub fn build(self) -> crate::output::BacktrackDbClusterOutput { + crate::output::BacktrackDbClusterOutput { db_cluster_identifier: self.db_cluster_identifier, backtrack_identifier: self.backtrack_identifier, backtrack_to: self.backtrack_to, @@ -9373,8 +9373,8 @@ pub mod backtrack_db_cluster_output { } } } -impl BacktrackDBClusterOutput { - /// Creates a new builder-style object to manufacture [`BacktrackDBClusterOutput`](crate::output::BacktrackDBClusterOutput) +impl BacktrackDbClusterOutput { + /// Creates a new builder-style object to manufacture [`BacktrackDbClusterOutput`](crate::output::BacktrackDbClusterOutput) pub fn builder() -> crate::output::backtrack_db_cluster_output::Builder { crate::output::backtrack_db_cluster_output::Builder::default() } @@ -9382,28 +9382,28 @@ impl BacktrackDBClusterOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AuthorizeDBSecurityGroupIngressOutput { +pub struct AuthorizeDbSecurityGroupIngressOutput { ///

                                      Contains the details for an Amazon RDS DB security group. ///

                                      ///

                                      This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                      - pub db_security_group: std::option::Option, + pub db_security_group: std::option::Option, } -impl std::fmt::Debug for AuthorizeDBSecurityGroupIngressOutput { +impl std::fmt::Debug for AuthorizeDbSecurityGroupIngressOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AuthorizeDBSecurityGroupIngressOutput"); + let mut formatter = f.debug_struct("AuthorizeDbSecurityGroupIngressOutput"); formatter.field("db_security_group", &self.db_security_group); formatter.finish() } } -/// See [`AuthorizeDBSecurityGroupIngressOutput`](crate::output::AuthorizeDBSecurityGroupIngressOutput) +/// See [`AuthorizeDbSecurityGroupIngressOutput`](crate::output::AuthorizeDbSecurityGroupIngressOutput) pub mod authorize_db_security_group_ingress_output { - /// A builder for [`AuthorizeDBSecurityGroupIngressOutput`](crate::output::AuthorizeDBSecurityGroupIngressOutput) + /// A builder for [`AuthorizeDbSecurityGroupIngressOutput`](crate::output::AuthorizeDbSecurityGroupIngressOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) db_security_group: std::option::Option, + pub(crate) db_security_group: std::option::Option, } impl Builder { ///

                                      Contains the details for an Amazon RDS DB security group. @@ -9411,27 +9411,27 @@ pub mod authorize_db_security_group_ingress_output { ///

                                      This data type is used as a response element /// in the DescribeDBSecurityGroups action. ///

                                      - pub fn db_security_group(mut self, input: crate::model::DBSecurityGroup) -> Self { + pub fn db_security_group(mut self, input: crate::model::DbSecurityGroup) -> Self { self.db_security_group = Some(input); self } pub fn set_db_security_group( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.db_security_group = input; self } - /// Consumes the builder and constructs a [`AuthorizeDBSecurityGroupIngressOutput`](crate::output::AuthorizeDBSecurityGroupIngressOutput) - pub fn build(self) -> crate::output::AuthorizeDBSecurityGroupIngressOutput { - crate::output::AuthorizeDBSecurityGroupIngressOutput { + /// Consumes the builder and constructs a [`AuthorizeDbSecurityGroupIngressOutput`](crate::output::AuthorizeDbSecurityGroupIngressOutput) + pub fn build(self) -> crate::output::AuthorizeDbSecurityGroupIngressOutput { + crate::output::AuthorizeDbSecurityGroupIngressOutput { db_security_group: self.db_security_group, } } } } -impl AuthorizeDBSecurityGroupIngressOutput { - /// Creates a new builder-style object to manufacture [`AuthorizeDBSecurityGroupIngressOutput`](crate::output::AuthorizeDBSecurityGroupIngressOutput) +impl AuthorizeDbSecurityGroupIngressOutput { + /// Creates a new builder-style object to manufacture [`AuthorizeDbSecurityGroupIngressOutput`](crate::output::AuthorizeDbSecurityGroupIngressOutput) pub fn builder() -> crate::output::authorize_db_security_group_ingress_output::Builder { crate::output::authorize_db_security_group_ingress_output::Builder::default() } @@ -9574,28 +9574,28 @@ impl AddSourceIdentifierToSubscriptionOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddRoleToDBInstanceOutput {} -impl std::fmt::Debug for AddRoleToDBInstanceOutput { +pub struct AddRoleToDbInstanceOutput {} +impl std::fmt::Debug for AddRoleToDbInstanceOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddRoleToDBInstanceOutput"); + let mut formatter = f.debug_struct("AddRoleToDbInstanceOutput"); formatter.finish() } } -/// See [`AddRoleToDBInstanceOutput`](crate::output::AddRoleToDBInstanceOutput) +/// See [`AddRoleToDbInstanceOutput`](crate::output::AddRoleToDbInstanceOutput) pub mod add_role_to_db_instance_output { - /// A builder for [`AddRoleToDBInstanceOutput`](crate::output::AddRoleToDBInstanceOutput) + /// A builder for [`AddRoleToDbInstanceOutput`](crate::output::AddRoleToDbInstanceOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`AddRoleToDBInstanceOutput`](crate::output::AddRoleToDBInstanceOutput) - pub fn build(self) -> crate::output::AddRoleToDBInstanceOutput { - crate::output::AddRoleToDBInstanceOutput {} + /// Consumes the builder and constructs a [`AddRoleToDbInstanceOutput`](crate::output::AddRoleToDbInstanceOutput) + pub fn build(self) -> crate::output::AddRoleToDbInstanceOutput { + crate::output::AddRoleToDbInstanceOutput {} } } } -impl AddRoleToDBInstanceOutput { - /// Creates a new builder-style object to manufacture [`AddRoleToDBInstanceOutput`](crate::output::AddRoleToDBInstanceOutput) +impl AddRoleToDbInstanceOutput { + /// Creates a new builder-style object to manufacture [`AddRoleToDbInstanceOutput`](crate::output::AddRoleToDbInstanceOutput) pub fn builder() -> crate::output::add_role_to_db_instance_output::Builder { crate::output::add_role_to_db_instance_output::Builder::default() } @@ -9603,28 +9603,28 @@ impl AddRoleToDBInstanceOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddRoleToDBClusterOutput {} -impl std::fmt::Debug for AddRoleToDBClusterOutput { +pub struct AddRoleToDbClusterOutput {} +impl std::fmt::Debug for AddRoleToDbClusterOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddRoleToDBClusterOutput"); + let mut formatter = f.debug_struct("AddRoleToDbClusterOutput"); formatter.finish() } } -/// See [`AddRoleToDBClusterOutput`](crate::output::AddRoleToDBClusterOutput) +/// See [`AddRoleToDbClusterOutput`](crate::output::AddRoleToDbClusterOutput) pub mod add_role_to_db_cluster_output { - /// A builder for [`AddRoleToDBClusterOutput`](crate::output::AddRoleToDBClusterOutput) + /// A builder for [`AddRoleToDbClusterOutput`](crate::output::AddRoleToDbClusterOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`AddRoleToDBClusterOutput`](crate::output::AddRoleToDBClusterOutput) - pub fn build(self) -> crate::output::AddRoleToDBClusterOutput { - crate::output::AddRoleToDBClusterOutput {} + /// Consumes the builder and constructs a [`AddRoleToDbClusterOutput`](crate::output::AddRoleToDbClusterOutput) + pub fn build(self) -> crate::output::AddRoleToDbClusterOutput { + crate::output::AddRoleToDbClusterOutput {} } } } -impl AddRoleToDBClusterOutput { - /// Creates a new builder-style object to manufacture [`AddRoleToDBClusterOutput`](crate::output::AddRoleToDBClusterOutput) +impl AddRoleToDbClusterOutput { + /// Creates a new builder-style object to manufacture [`AddRoleToDbClusterOutput`](crate::output::AddRoleToDbClusterOutput) pub fn builder() -> crate::output::add_role_to_db_cluster_output::Builder { crate::output::add_role_to_db_cluster_output::Builder::default() } diff --git a/sdk/rds/src/xml_deser.rs b/sdk/rds/src/xml_deser.rs index d47b440d70a1..81a321be6bd6 100644 --- a/sdk/rds/src/xml_deser.rs +++ b/sdk/rds/src/xml_deser.rs @@ -11592,9 +11592,9 @@ pub fn deser_structure_resource_pending_maintenance_actions( pub fn deser_structure_db_security_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSecurityGroup::builder(); + let mut builder = crate::model::DbSecurityGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("OwnerId") /* OwnerId com.amazonaws.rds#DBSecurityGroup$OwnerId */ => { @@ -11712,9 +11712,9 @@ pub fn deser_list_string_list( pub fn deser_structure_db_cluster_parameter_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterParameterGroup::builder(); + let mut builder = crate::model::DbClusterParameterGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBClusterParameterGroupName") /* DBClusterParameterGroupName com.amazonaws.rds#DBClusterParameterGroup$DBClusterParameterGroupName */ => { @@ -11777,9 +11777,9 @@ pub fn deser_structure_db_cluster_parameter_group( pub fn deser_structure_db_cluster_snapshot( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterSnapshot::builder(); + let mut builder = crate::model::DbClusterSnapshot::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("AvailabilityZones") /* AvailabilityZones com.amazonaws.rds#DBClusterSnapshot$AvailabilityZones */ => { @@ -12087,9 +12087,9 @@ pub fn deser_structure_db_cluster_snapshot( pub fn deser_structure_db_parameter_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBParameterGroup::builder(); + let mut builder = crate::model::DbParameterGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBParameterGroupName") /* DBParameterGroupName com.amazonaws.rds#DBParameterGroup$DBParameterGroupName */ => { @@ -12152,9 +12152,9 @@ pub fn deser_structure_db_parameter_group( pub fn deser_structure_db_snapshot( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSnapshot::builder(); + let mut builder = crate::model::DbSnapshot::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBSnapshotIdentifier") /* DBSnapshotIdentifier com.amazonaws.rds#DBSnapshot$DBSnapshotIdentifier */ => { @@ -12735,9 +12735,9 @@ pub fn deser_structure_custom_availability_zone( pub fn deser_structure_db_cluster( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBCluster::builder(); + let mut builder = crate::model::DbCluster::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("AllocatedStorage") /* AllocatedStorage com.amazonaws.rds#DBCluster$AllocatedStorage */ => { @@ -13489,9 +13489,9 @@ pub fn deser_structure_db_cluster( pub fn deser_structure_db_instance( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBInstance::builder(); + let mut builder = crate::model::DbInstance::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBInstanceIdentifier") /* DBInstanceIdentifier com.amazonaws.rds#DBInstance$DBInstanceIdentifier */ => { @@ -14337,9 +14337,9 @@ pub fn deser_structure_db_instance( pub fn deser_structure_db_proxy( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBProxy::builder(); + let mut builder = crate::model::DbProxy::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBProxyName") /* DBProxyName com.amazonaws.rds#DBProxy$DBProxyName */ => { @@ -14548,9 +14548,9 @@ pub fn deser_structure_db_proxy( pub fn deser_structure_db_proxy_endpoint( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBProxyEndpoint::builder(); + let mut builder = crate::model::DbProxyEndpoint::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBProxyEndpointName") /* DBProxyEndpointName com.amazonaws.rds#DBProxyEndpoint$DBProxyEndpointName */ => { @@ -14704,9 +14704,9 @@ pub fn deser_structure_db_proxy_endpoint( pub fn deser_structure_db_subnet_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSubnetGroup::builder(); + let mut builder = crate::model::DbSubnetGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBSubnetGroupName") /* DBSubnetGroupName com.amazonaws.rds#DBSubnetGroup$DBSubnetGroupName */ => { @@ -14948,9 +14948,9 @@ pub fn deser_structure_global_cluster( pub fn deser_structure_db_instance_automated_backup( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBInstanceAutomatedBackup::builder(); + let mut builder = crate::model::DbInstanceAutomatedBackup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBInstanceArn") /* DBInstanceArn com.amazonaws.rds#DBInstanceAutomatedBackup$DBInstanceArn */ => { @@ -15395,7 +15395,7 @@ pub fn deser_list_custom_availability_zone_list( pub fn deser_list_db_cluster_backtrack_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15414,7 +15414,7 @@ pub fn deser_list_db_cluster_backtrack_list( pub fn deser_list_db_cluster_endpoint_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15433,7 +15433,7 @@ pub fn deser_list_db_cluster_endpoint_list( pub fn deser_list_db_cluster_parameter_group_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15471,7 +15471,7 @@ pub fn deser_list_parameters_list( pub fn deser_list_db_cluster_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15490,9 +15490,9 @@ pub fn deser_list_db_cluster_list( pub fn deser_structure_db_cluster_snapshot_attributes_result( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterSnapshotAttributesResult::builder(); + let mut builder = crate::model::DbClusterSnapshotAttributesResult::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBClusterSnapshotIdentifier") /* DBClusterSnapshotIdentifier com.amazonaws.rds#DBClusterSnapshotAttributesResult$DBClusterSnapshotIdentifier */ => { @@ -15526,7 +15526,7 @@ pub fn deser_structure_db_cluster_snapshot_attributes_result( pub fn deser_list_db_cluster_snapshot_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15545,7 +15545,7 @@ pub fn deser_list_db_cluster_snapshot_list( pub fn deser_list_db_engine_version_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15564,7 +15564,7 @@ pub fn deser_list_db_engine_version_list( pub fn deser_list_db_instance_automated_backup_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15583,7 +15583,7 @@ pub fn deser_list_db_instance_automated_backup_list( pub fn deser_list_db_instance_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15602,7 +15602,7 @@ pub fn deser_list_db_instance_list( pub fn deser_list_describe_db_log_files_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15621,7 +15621,7 @@ pub fn deser_list_describe_db_log_files_list( pub fn deser_list_db_parameter_group_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15640,7 +15640,7 @@ pub fn deser_list_db_parameter_group_list( pub fn deser_list_db_proxy_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15659,7 +15659,7 @@ pub fn deser_list_db_proxy_list( pub fn deser_list_db_proxy_endpoint_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15678,7 +15678,7 @@ pub fn deser_list_db_proxy_endpoint_list( pub fn deser_list_target_group_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15697,7 +15697,7 @@ pub fn deser_list_target_group_list( pub fn deser_list_target_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15716,7 +15716,7 @@ pub fn deser_list_target_list( pub fn deser_list_db_security_groups( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15735,9 +15735,9 @@ pub fn deser_list_db_security_groups( pub fn deser_structure_db_snapshot_attributes_result( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSnapshotAttributesResult::builder(); + let mut builder = crate::model::DbSnapshotAttributesResult::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBSnapshotIdentifier") /* DBSnapshotIdentifier com.amazonaws.rds#DBSnapshotAttributesResult$DBSnapshotIdentifier */ => { @@ -15771,7 +15771,7 @@ pub fn deser_structure_db_snapshot_attributes_result( pub fn deser_list_db_snapshot_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -15790,7 +15790,7 @@ pub fn deser_list_db_snapshot_list( pub fn deser_list_db_subnet_groups( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16010,7 +16010,7 @@ pub fn deser_list_option_groups_list( pub fn deser_list_orderable_db_instance_options_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16051,7 +16051,7 @@ pub fn deser_list_pending_maintenance_actions( pub fn deser_list_reserved_db_instance_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16070,7 +16070,7 @@ pub fn deser_list_reserved_db_instance_list( pub fn deser_list_reserved_db_instances_offering_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { @@ -16109,9 +16109,9 @@ pub fn deser_list_source_region_list( pub fn deser_structure_valid_db_instance_modifications_message( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::ValidDBInstanceModificationsMessage::builder(); + let mut builder = crate::model::ValidDbInstanceModificationsMessage::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Storage") /* Storage com.amazonaws.rds#ValidDBInstanceModificationsMessage$Storage */ => { @@ -16284,9 +16284,9 @@ pub fn deser_structure_certificate( pub fn deser_structure_db_proxy_target_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBProxyTargetGroup::builder(); + let mut builder = crate::model::DbProxyTargetGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBProxyName") /* DBProxyName com.amazonaws.rds#DBProxyTargetGroup$DBProxyName */ => { @@ -16403,9 +16403,9 @@ pub fn deser_structure_db_proxy_target_group( pub fn deser_structure_reserved_db_instance( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::ReservedDBInstance::builder(); + let mut builder = crate::model::ReservedDbInstance::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("ReservedDBInstanceId") /* ReservedDBInstanceId com.amazonaws.rds#ReservedDBInstance$ReservedDBInstanceId */ => { @@ -16700,7 +16700,7 @@ pub fn deser_list_pending_maintenance_action_details( pub fn deser_list_ec2_security_group_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16719,7 +16719,7 @@ pub fn deser_list_ec2_security_group_list( pub fn deser_list_ip_range_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16889,7 +16889,7 @@ pub fn deser_structure_vpn_details( pub fn deser_list_db_cluster_option_group_memberships( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16930,7 +16930,7 @@ pub fn deser_list_read_replica_identifier_list( pub fn deser_list_db_cluster_member_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -16968,7 +16968,7 @@ pub fn deser_list_vpc_security_group_membership_list( pub fn deser_list_db_cluster_roles( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -17251,7 +17251,7 @@ pub fn deser_structure_endpoint( pub fn deser_list_db_security_group_membership_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -17270,7 +17270,7 @@ pub fn deser_list_db_security_group_membership_list( pub fn deser_list_db_parameter_group_status_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -17585,7 +17585,7 @@ pub fn deser_list_option_group_membership_list( pub fn deser_list_db_instance_status_info_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -17604,7 +17604,7 @@ pub fn deser_list_db_instance_status_info_list( pub fn deser_list_db_instance_roles( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -17624,7 +17624,7 @@ pub fn deser_list_db_instance_roles( pub fn deser_list_db_instance_automated_backups_replication_list( decoder: &mut smithy_xml::decode::ScopedDecoder, ) -> Result< - std::vec::Vec, + std::vec::Vec, smithy_xml::decode::XmlError, > { let mut out = std::vec::Vec::new(); @@ -17854,9 +17854,9 @@ pub fn deser_structure_account_quota( pub fn deser_structure_db_cluster_backtrack( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterBacktrack::builder(); + let mut builder = crate::model::DbClusterBacktrack::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBClusterIdentifier") /* DBClusterIdentifier com.amazonaws.rds#DBClusterBacktrack$DBClusterIdentifier */ => { @@ -17948,9 +17948,9 @@ pub fn deser_structure_db_cluster_backtrack( pub fn deser_structure_db_cluster_endpoint( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterEndpoint::builder(); + let mut builder = crate::model::DbClusterEndpoint::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBClusterEndpointIdentifier") /* DBClusterEndpointIdentifier com.amazonaws.rds#DBClusterEndpoint$DBClusterEndpointIdentifier */ => { @@ -18242,7 +18242,7 @@ pub fn deser_structure_parameter( pub fn deser_list_db_cluster_snapshot_attribute_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -18261,9 +18261,9 @@ pub fn deser_list_db_cluster_snapshot_attribute_list( pub fn deser_structure_db_engine_version( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBEngineVersion::builder(); + let mut builder = crate::model::DbEngineVersion::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Engine") /* Engine com.amazonaws.rds#DBEngineVersion$Engine */ => { @@ -18496,9 +18496,9 @@ pub fn deser_structure_db_engine_version( pub fn deser_structure_describe_db_log_files_details( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DescribeDBLogFilesDetails::builder(); + let mut builder = crate::model::DescribeDbLogFilesDetails::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("LogFileName") /* LogFileName com.amazonaws.rds#DescribeDBLogFilesDetails$LogFileName */ => { @@ -18554,9 +18554,9 @@ pub fn deser_structure_describe_db_log_files_details( pub fn deser_structure_db_proxy_target( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBProxyTarget::builder(); + let mut builder = crate::model::DbProxyTarget::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("TargetArn") /* TargetArn com.amazonaws.rds#DBProxyTarget$TargetArn */ => { @@ -18673,7 +18673,7 @@ pub fn deser_structure_db_proxy_target( pub fn deser_list_db_snapshot_attribute_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -19376,9 +19376,9 @@ pub fn deser_structure_option_group_option( pub fn deser_structure_orderable_db_instance_option( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::OrderableDBInstanceOption::builder(); + let mut builder = crate::model::OrderableDbInstanceOption::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Engine") /* Engine com.amazonaws.rds#OrderableDBInstanceOption$Engine */ => { @@ -19785,9 +19785,9 @@ pub fn deser_structure_orderable_db_instance_option( pub fn deser_structure_reserved_db_instances_offering( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::ReservedDBInstancesOffering::builder(); + let mut builder = crate::model::ReservedDbInstancesOffering::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("ReservedDBInstancesOfferingId") /* ReservedDBInstancesOfferingId com.amazonaws.rds#ReservedDBInstancesOffering$ReservedDBInstancesOfferingId */ => { @@ -20279,9 +20279,9 @@ pub fn deser_structure_pending_maintenance_action( pub fn deser_structure_ec2_security_group( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::EC2SecurityGroup::builder(); + let mut builder = crate::model::Ec2SecurityGroup::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Status") /* Status com.amazonaws.rds#EC2SecurityGroup$Status */ => { @@ -20344,9 +20344,9 @@ pub fn deser_structure_ec2_security_group( pub fn deser_structure_ip_range( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::IPRange::builder(); + let mut builder = crate::model::IpRange::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("Status") /* Status com.amazonaws.rds#IPRange$Status */ => { @@ -20552,9 +20552,9 @@ pub fn deser_structure_option( pub fn deser_structure_db_cluster_option_group_status( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterOptionGroupStatus::builder(); + let mut builder = crate::model::DbClusterOptionGroupStatus::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBClusterOptionGroupName") /* DBClusterOptionGroupName com.amazonaws.rds#DBClusterOptionGroupStatus$DBClusterOptionGroupName */ => { @@ -20591,9 +20591,9 @@ pub fn deser_structure_db_cluster_option_group_status( pub fn deser_structure_db_cluster_member( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterMember::builder(); + let mut builder = crate::model::DbClusterMember::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBInstanceIdentifier") /* DBInstanceIdentifier com.amazonaws.rds#DBClusterMember$DBInstanceIdentifier */ => { @@ -20701,9 +20701,9 @@ pub fn deser_structure_vpc_security_group_membership( pub fn deser_structure_db_cluster_role( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterRole::builder(); + let mut builder = crate::model::DbClusterRole::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("RoleArn") /* RoleArn com.amazonaws.rds#DBClusterRole$RoleArn */ => { @@ -20851,9 +20851,9 @@ pub fn deser_structure_pending_cloudwatch_logs_exports( pub fn deser_structure_db_security_group_membership( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSecurityGroupMembership::builder(); + let mut builder = crate::model::DbSecurityGroupMembership::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBSecurityGroupName") /* DBSecurityGroupName com.amazonaws.rds#DBSecurityGroupMembership$DBSecurityGroupName */ => { @@ -20890,9 +20890,9 @@ pub fn deser_structure_db_security_group_membership( pub fn deser_structure_db_parameter_group_status( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBParameterGroupStatus::builder(); + let mut builder = crate::model::DbParameterGroupStatus::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBParameterGroupName") /* DBParameterGroupName com.amazonaws.rds#DBParameterGroupStatus$DBParameterGroupName */ => { @@ -20968,9 +20968,9 @@ pub fn deser_structure_option_group_membership( pub fn deser_structure_db_instance_status_info( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBInstanceStatusInfo::builder(); + let mut builder = crate::model::DbInstanceStatusInfo::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("StatusType") /* StatusType com.amazonaws.rds#DBInstanceStatusInfo$StatusType */ => { @@ -21036,9 +21036,9 @@ pub fn deser_structure_db_instance_status_info( pub fn deser_structure_db_instance_role( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBInstanceRole::builder(); + let mut builder = crate::model::DbInstanceRole::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("RoleArn") /* RoleArn com.amazonaws.rds#DBInstanceRole$RoleArn */ => { @@ -21088,9 +21088,9 @@ pub fn deser_structure_db_instance_role( pub fn deser_structure_db_instance_automated_backups_replication( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBInstanceAutomatedBackupsReplication::builder(); + let mut builder = crate::model::DbInstanceAutomatedBackupsReplication::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("DBInstanceAutomatedBackupsArn") /* DBInstanceAutomatedBackupsArn com.amazonaws.rds#DBInstanceAutomatedBackupsReplication$DBInstanceAutomatedBackupsArn */ => { @@ -21341,9 +21341,9 @@ pub fn deser_list_engine_mode_list( pub fn deser_structure_db_cluster_snapshot_attribute( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBClusterSnapshotAttribute::builder(); + let mut builder = crate::model::DbClusterSnapshotAttribute::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("AttributeName") /* AttributeName com.amazonaws.rds#DBClusterSnapshotAttribute$AttributeName */ => { @@ -21549,9 +21549,9 @@ pub fn deser_structure_target_health( pub fn deser_structure_db_snapshot_attribute( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DBSnapshotAttribute::builder(); + let mut builder = crate::model::DbSnapshotAttribute::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("AttributeName") /* AttributeName com.amazonaws.rds#DBSnapshotAttribute$AttributeName */ => { diff --git a/sdk/rdsdata/Cargo.toml b/sdk/rdsdata/Cargo.toml index afcea73f4ffb..21afa21d654f 100644 --- a/sdk/rdsdata/Cargo.toml +++ b/sdk/rdsdata/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-rdsdata" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon RDS Data Service\n

                                      Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora\n Serverless DB cluster. To run these statements, you work with the Data Service\n API.

                                      \n

                                      For more information about the Data Service API, see Using the Data API for Aurora\n Serverless in the Amazon Aurora User Guide.

                                      " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/rdsdata/src/aws_json_errors.rs b/sdk/rdsdata/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/rdsdata/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/rdsdata/src/blob_serde.rs b/sdk/rdsdata/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/rdsdata/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/rdsdata/src/error.rs b/sdk/rdsdata/src/error.rs index 6568dfcba82d..0dd4ff538608 100644 --- a/sdk/rdsdata/src/error.rs +++ b/sdk/rdsdata/src/error.rs @@ -8,22 +8,22 @@ pub struct BatchExecuteStatementError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BatchExecuteStatementErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BatchExecuteStatementError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BatchExecuteStatementErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BatchExecuteStatementErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BatchExecuteStatementErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), + BatchExecuteStatementErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BatchExecuteStatementErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BatchExecuteStatementErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), BatchExecuteStatementErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - BatchExecuteStatementErrorKind::StatementTimeoutError(_inner) => _inner.fmt(f), + BatchExecuteStatementErrorKind::StatementTimeoutException(_inner) => _inner.fmt(f), BatchExecuteStatementErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -72,22 +72,22 @@ impl BatchExecuteStatementError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - BatchExecuteStatementErrorKind::BadRequestError(_) + BatchExecuteStatementErrorKind::BadRequestException(_) ) } - pub fn is_forbidden_error(&self) -> bool { + pub fn is_forbidden_exception(&self) -> bool { matches!( &self.kind, - BatchExecuteStatementErrorKind::ForbiddenError(_) + BatchExecuteStatementErrorKind::ForbiddenException(_) ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - BatchExecuteStatementErrorKind::InternalServerErrorError(_) + BatchExecuteStatementErrorKind::InternalServerErrorException(_) ) } pub fn is_service_unavailable_error(&self) -> bool { @@ -96,21 +96,21 @@ impl BatchExecuteStatementError { BatchExecuteStatementErrorKind::ServiceUnavailableError(_) ) } - pub fn is_statement_timeout_error(&self) -> bool { + pub fn is_statement_timeout_exception(&self) -> bool { matches!( &self.kind, - BatchExecuteStatementErrorKind::StatementTimeoutError(_) + BatchExecuteStatementErrorKind::StatementTimeoutException(_) ) } } impl std::error::Error for BatchExecuteStatementError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BatchExecuteStatementErrorKind::BadRequestError(_inner) => Some(_inner), - BatchExecuteStatementErrorKind::ForbiddenError(_inner) => Some(_inner), - BatchExecuteStatementErrorKind::InternalServerErrorError(_inner) => Some(_inner), + BatchExecuteStatementErrorKind::BadRequestException(_inner) => Some(_inner), + BatchExecuteStatementErrorKind::ForbiddenException(_inner) => Some(_inner), + BatchExecuteStatementErrorKind::InternalServerErrorException(_inner) => Some(_inner), BatchExecuteStatementErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - BatchExecuteStatementErrorKind::StatementTimeoutError(_inner) => Some(_inner), + BatchExecuteStatementErrorKind::StatementTimeoutException(_inner) => Some(_inner), BatchExecuteStatementErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -125,22 +125,22 @@ pub struct BeginTransactionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum BeginTransactionErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for BeginTransactionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - BeginTransactionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - BeginTransactionErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - BeginTransactionErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), + BeginTransactionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + BeginTransactionErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + BeginTransactionErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), BeginTransactionErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - BeginTransactionErrorKind::StatementTimeoutError(_inner) => _inner.fmt(f), + BeginTransactionErrorKind::StatementTimeoutException(_inner) => _inner.fmt(f), BeginTransactionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -189,16 +189,19 @@ impl BeginTransactionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, BeginTransactionErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + BeginTransactionErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, BeginTransactionErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, BeginTransactionErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - BeginTransactionErrorKind::InternalServerErrorError(_) + BeginTransactionErrorKind::InternalServerErrorException(_) ) } pub fn is_service_unavailable_error(&self) -> bool { @@ -207,21 +210,21 @@ impl BeginTransactionError { BeginTransactionErrorKind::ServiceUnavailableError(_) ) } - pub fn is_statement_timeout_error(&self) -> bool { + pub fn is_statement_timeout_exception(&self) -> bool { matches!( &self.kind, - BeginTransactionErrorKind::StatementTimeoutError(_) + BeginTransactionErrorKind::StatementTimeoutException(_) ) } } impl std::error::Error for BeginTransactionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - BeginTransactionErrorKind::BadRequestError(_inner) => Some(_inner), - BeginTransactionErrorKind::ForbiddenError(_inner) => Some(_inner), - BeginTransactionErrorKind::InternalServerErrorError(_inner) => Some(_inner), + BeginTransactionErrorKind::BadRequestException(_inner) => Some(_inner), + BeginTransactionErrorKind::ForbiddenException(_inner) => Some(_inner), + BeginTransactionErrorKind::InternalServerErrorException(_inner) => Some(_inner), BeginTransactionErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - BeginTransactionErrorKind::StatementTimeoutError(_inner) => Some(_inner), + BeginTransactionErrorKind::StatementTimeoutException(_inner) => Some(_inner), BeginTransactionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -236,24 +239,24 @@ pub struct CommitTransactionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CommitTransactionErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CommitTransactionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CommitTransactionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CommitTransactionErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - CommitTransactionErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - CommitTransactionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CommitTransactionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CommitTransactionErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + CommitTransactionErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + CommitTransactionErrorKind::NotFoundException(_inner) => _inner.fmt(f), CommitTransactionErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - CommitTransactionErrorKind::StatementTimeoutError(_inner) => _inner.fmt(f), + CommitTransactionErrorKind::StatementTimeoutException(_inner) => _inner.fmt(f), CommitTransactionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -302,20 +305,26 @@ impl CommitTransactionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CommitTransactionErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CommitTransactionErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, CommitTransactionErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + CommitTransactionErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - CommitTransactionErrorKind::InternalServerErrorError(_) + CommitTransactionErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CommitTransactionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CommitTransactionErrorKind::NotFoundException(_)) } pub fn is_service_unavailable_error(&self) -> bool { matches!( @@ -323,22 +332,22 @@ impl CommitTransactionError { CommitTransactionErrorKind::ServiceUnavailableError(_) ) } - pub fn is_statement_timeout_error(&self) -> bool { + pub fn is_statement_timeout_exception(&self) -> bool { matches!( &self.kind, - CommitTransactionErrorKind::StatementTimeoutError(_) + CommitTransactionErrorKind::StatementTimeoutException(_) ) } } impl std::error::Error for CommitTransactionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CommitTransactionErrorKind::BadRequestError(_inner) => Some(_inner), - CommitTransactionErrorKind::ForbiddenError(_inner) => Some(_inner), - CommitTransactionErrorKind::InternalServerErrorError(_inner) => Some(_inner), - CommitTransactionErrorKind::NotFoundError(_inner) => Some(_inner), + CommitTransactionErrorKind::BadRequestException(_inner) => Some(_inner), + CommitTransactionErrorKind::ForbiddenException(_inner) => Some(_inner), + CommitTransactionErrorKind::InternalServerErrorException(_inner) => Some(_inner), + CommitTransactionErrorKind::NotFoundException(_inner) => Some(_inner), CommitTransactionErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - CommitTransactionErrorKind::StatementTimeoutError(_inner) => Some(_inner), + CommitTransactionErrorKind::StatementTimeoutException(_inner) => Some(_inner), CommitTransactionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -353,9 +362,9 @@ pub struct ExecuteSqlError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteSqlErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), ServiceUnavailableError(crate::error::ServiceUnavailableError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -363,9 +372,9 @@ pub enum ExecuteSqlErrorKind { impl std::fmt::Display for ExecuteSqlError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteSqlErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ExecuteSqlErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ExecuteSqlErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), + ExecuteSqlErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ExecuteSqlErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ExecuteSqlErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), ExecuteSqlErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), ExecuteSqlErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -415,14 +424,17 @@ impl ExecuteSqlError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ExecuteSqlErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ExecuteSqlErrorKind::BadRequestException(_)) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ExecuteSqlErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ExecuteSqlErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { - matches!(&self.kind, ExecuteSqlErrorKind::InternalServerErrorError(_)) + pub fn is_internal_server_error_exception(&self) -> bool { + matches!( + &self.kind, + ExecuteSqlErrorKind::InternalServerErrorException(_) + ) } pub fn is_service_unavailable_error(&self) -> bool { matches!(&self.kind, ExecuteSqlErrorKind::ServiceUnavailableError(_)) @@ -431,9 +443,9 @@ impl ExecuteSqlError { impl std::error::Error for ExecuteSqlError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteSqlErrorKind::BadRequestError(_inner) => Some(_inner), - ExecuteSqlErrorKind::ForbiddenError(_inner) => Some(_inner), - ExecuteSqlErrorKind::InternalServerErrorError(_inner) => Some(_inner), + ExecuteSqlErrorKind::BadRequestException(_inner) => Some(_inner), + ExecuteSqlErrorKind::ForbiddenException(_inner) => Some(_inner), + ExecuteSqlErrorKind::InternalServerErrorException(_inner) => Some(_inner), ExecuteSqlErrorKind::ServiceUnavailableError(_inner) => Some(_inner), ExecuteSqlErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -449,22 +461,22 @@ pub struct ExecuteStatementError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ExecuteStatementErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ExecuteStatementError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ExecuteStatementErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), ExecuteStatementErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - ExecuteStatementErrorKind::StatementTimeoutError(_inner) => _inner.fmt(f), + ExecuteStatementErrorKind::StatementTimeoutException(_inner) => _inner.fmt(f), ExecuteStatementErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -513,16 +525,19 @@ impl ExecuteStatementError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ExecuteStatementErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ExecuteStatementErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, ExecuteStatementErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!(&self.kind, ExecuteStatementErrorKind::ForbiddenException(_)) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::InternalServerErrorError(_) + ExecuteStatementErrorKind::InternalServerErrorException(_) ) } pub fn is_service_unavailable_error(&self) -> bool { @@ -531,21 +546,21 @@ impl ExecuteStatementError { ExecuteStatementErrorKind::ServiceUnavailableError(_) ) } - pub fn is_statement_timeout_error(&self) -> bool { + pub fn is_statement_timeout_exception(&self) -> bool { matches!( &self.kind, - ExecuteStatementErrorKind::StatementTimeoutError(_) + ExecuteStatementErrorKind::StatementTimeoutException(_) ) } } impl std::error::Error for ExecuteStatementError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ExecuteStatementErrorKind::BadRequestError(_inner) => Some(_inner), - ExecuteStatementErrorKind::ForbiddenError(_inner) => Some(_inner), - ExecuteStatementErrorKind::InternalServerErrorError(_inner) => Some(_inner), + ExecuteStatementErrorKind::BadRequestException(_inner) => Some(_inner), + ExecuteStatementErrorKind::ForbiddenException(_inner) => Some(_inner), + ExecuteStatementErrorKind::InternalServerErrorException(_inner) => Some(_inner), ExecuteStatementErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - ExecuteStatementErrorKind::StatementTimeoutError(_inner) => Some(_inner), + ExecuteStatementErrorKind::StatementTimeoutException(_inner) => Some(_inner), ExecuteStatementErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -560,24 +575,24 @@ pub struct RollbackTransactionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RollbackTransactionErrorKind { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RollbackTransactionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RollbackTransactionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - RollbackTransactionErrorKind::ForbiddenError(_inner) => _inner.fmt(f), - RollbackTransactionErrorKind::InternalServerErrorError(_inner) => _inner.fmt(f), - RollbackTransactionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + RollbackTransactionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + RollbackTransactionErrorKind::ForbiddenException(_inner) => _inner.fmt(f), + RollbackTransactionErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f), + RollbackTransactionErrorKind::NotFoundException(_inner) => _inner.fmt(f), RollbackTransactionErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f), - RollbackTransactionErrorKind::StatementTimeoutError(_inner) => _inner.fmt(f), + RollbackTransactionErrorKind::StatementTimeoutException(_inner) => _inner.fmt(f), RollbackTransactionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -626,20 +641,29 @@ impl RollbackTransactionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, RollbackTransactionErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + RollbackTransactionErrorKind::BadRequestException(_) + ) } - pub fn is_forbidden_error(&self) -> bool { - matches!(&self.kind, RollbackTransactionErrorKind::ForbiddenError(_)) + pub fn is_forbidden_exception(&self) -> bool { + matches!( + &self.kind, + RollbackTransactionErrorKind::ForbiddenException(_) + ) } - pub fn is_internal_server_error_error(&self) -> bool { + pub fn is_internal_server_error_exception(&self) -> bool { matches!( &self.kind, - RollbackTransactionErrorKind::InternalServerErrorError(_) + RollbackTransactionErrorKind::InternalServerErrorException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, RollbackTransactionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + RollbackTransactionErrorKind::NotFoundException(_) + ) } pub fn is_service_unavailable_error(&self) -> bool { matches!( @@ -647,22 +671,22 @@ impl RollbackTransactionError { RollbackTransactionErrorKind::ServiceUnavailableError(_) ) } - pub fn is_statement_timeout_error(&self) -> bool { + pub fn is_statement_timeout_exception(&self) -> bool { matches!( &self.kind, - RollbackTransactionErrorKind::StatementTimeoutError(_) + RollbackTransactionErrorKind::StatementTimeoutException(_) ) } } impl std::error::Error for RollbackTransactionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RollbackTransactionErrorKind::BadRequestError(_inner) => Some(_inner), - RollbackTransactionErrorKind::ForbiddenError(_inner) => Some(_inner), - RollbackTransactionErrorKind::InternalServerErrorError(_inner) => Some(_inner), - RollbackTransactionErrorKind::NotFoundError(_inner) => Some(_inner), + RollbackTransactionErrorKind::BadRequestException(_inner) => Some(_inner), + RollbackTransactionErrorKind::ForbiddenException(_inner) => Some(_inner), + RollbackTransactionErrorKind::InternalServerErrorException(_inner) => Some(_inner), + RollbackTransactionErrorKind::NotFoundException(_inner) => Some(_inner), RollbackTransactionErrorKind::ServiceUnavailableError(_inner) => Some(_inner), - RollbackTransactionErrorKind::StatementTimeoutError(_inner) => Some(_inner), + RollbackTransactionErrorKind::StatementTimeoutException(_inner) => Some(_inner), RollbackTransactionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -670,43 +694,39 @@ impl std::error::Error for RollbackTransactionError { ///

                                      The execution of the SQL statement timed out.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StatementTimeoutError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct StatementTimeoutException { ///

                                      The error message returned by this StatementTimeoutException error.

                                      - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, ///

                                      The database connection ID that executed the SQL statement.

                                      - #[serde(rename = "dbConnectionId")] - #[serde(default)] pub db_connection_id: i64, } -impl std::fmt::Debug for StatementTimeoutError { +impl std::fmt::Debug for StatementTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StatementTimeoutError"); + let mut formatter = f.debug_struct("StatementTimeoutException"); formatter.field("message", &self.message); formatter.field("db_connection_id", &self.db_connection_id); formatter.finish() } } -impl StatementTimeoutError { +impl StatementTimeoutException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StatementTimeoutError { +impl std::fmt::Display for StatementTimeoutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "StatementTimeoutError [StatementTimeoutException]")?; + write!(f, "StatementTimeoutException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for StatementTimeoutError {} -/// See [`StatementTimeoutError`](crate::error::StatementTimeoutError) -pub mod statement_timeout_error { - /// A builder for [`StatementTimeoutError`](crate::error::StatementTimeoutError) +impl std::error::Error for StatementTimeoutException {} +/// See [`StatementTimeoutException`](crate::error::StatementTimeoutException) +pub mod statement_timeout_exception { + /// A builder for [`StatementTimeoutException`](crate::error::StatementTimeoutException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -732,26 +752,26 @@ pub mod statement_timeout_error { self.db_connection_id = input; self } - /// Consumes the builder and constructs a [`StatementTimeoutError`](crate::error::StatementTimeoutError) - pub fn build(self) -> crate::error::StatementTimeoutError { - crate::error::StatementTimeoutError { + /// Consumes the builder and constructs a [`StatementTimeoutException`](crate::error::StatementTimeoutException) + pub fn build(self) -> crate::error::StatementTimeoutException { + crate::error::StatementTimeoutException { message: self.message, db_connection_id: self.db_connection_id.unwrap_or_default(), } } } } -impl StatementTimeoutError { - /// Creates a new builder-style object to manufacture [`StatementTimeoutError`](crate::error::StatementTimeoutError) - pub fn builder() -> crate::error::statement_timeout_error::Builder { - crate::error::statement_timeout_error::Builder::default() +impl StatementTimeoutException { + /// Creates a new builder-style object to manufacture [`StatementTimeoutException`](crate::error::StatementTimeoutException) + pub fn builder() -> crate::error::statement_timeout_exception::Builder { + crate::error::statement_timeout_exception::Builder::default() } } ///

                                      The service specified by the resourceArn parameter is not /// available.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceUnavailableError {} impl std::fmt::Debug for ServiceUnavailableError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -793,38 +813,36 @@ impl ServiceUnavailableError { ///

                                      The resourceArn, secretArn, or transactionId value can't be found.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { ///

                                      The error message returned by this NotFoundException error.

                                      - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -840,97 +858,95 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } ///

                                      An internal error occurred.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalServerErrorError {} -impl std::fmt::Debug for InternalServerErrorError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServerErrorException {} +impl std::fmt::Debug for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalServerErrorError"); + let mut formatter = f.debug_struct("InternalServerErrorException"); formatter.finish() } } -impl InternalServerErrorError { +impl InternalServerErrorException { pub fn message(&self) -> Option<&str> { None } } -impl std::fmt::Display for InternalServerErrorError { +impl std::fmt::Display for InternalServerErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalServerErrorError [InternalServerErrorException]")?; + write!(f, "InternalServerErrorException")?; Ok(()) } } -impl std::error::Error for InternalServerErrorError {} -/// See [`InternalServerErrorError`](crate::error::InternalServerErrorError) -pub mod internal_server_error_error { - /// A builder for [`InternalServerErrorError`](crate::error::InternalServerErrorError) +impl std::error::Error for InternalServerErrorException {} +/// See [`InternalServerErrorException`](crate::error::InternalServerErrorException) +pub mod internal_server_error_exception { + /// A builder for [`InternalServerErrorException`](crate::error::InternalServerErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn build(self) -> crate::error::InternalServerErrorError { - crate::error::InternalServerErrorError {} + /// Consumes the builder and constructs a [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn build(self) -> crate::error::InternalServerErrorException { + crate::error::InternalServerErrorException {} } } } -impl InternalServerErrorError { - /// Creates a new builder-style object to manufacture [`InternalServerErrorError`](crate::error::InternalServerErrorError) - pub fn builder() -> crate::error::internal_server_error_error::Builder { - crate::error::internal_server_error_error::Builder::default() +impl InternalServerErrorException { + /// Creates a new builder-style object to manufacture [`InternalServerErrorException`](crate::error::InternalServerErrorException) + pub fn builder() -> crate::error::internal_server_error_exception::Builder { + crate::error::internal_server_error_exception::Builder::default() } } ///

                                      There are insufficient privileges to make the call.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ForbiddenError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ForbiddenException { ///

                                      The error message returned by this ForbiddenException error.

                                      - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ForbiddenError { +impl std::fmt::Debug for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ForbiddenError"); + let mut formatter = f.debug_struct("ForbiddenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ForbiddenError { +impl ForbiddenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ForbiddenError { +impl std::fmt::Display for ForbiddenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ForbiddenError [ForbiddenException]")?; + write!(f, "ForbiddenException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ForbiddenError {} -/// See [`ForbiddenError`](crate::error::ForbiddenError) -pub mod forbidden_error { - /// A builder for [`ForbiddenError`](crate::error::ForbiddenError) +impl std::error::Error for ForbiddenException {} +/// See [`ForbiddenException`](crate::error::ForbiddenException) +pub mod forbidden_exception { + /// A builder for [`ForbiddenException`](crate::error::ForbiddenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -946,55 +962,53 @@ pub mod forbidden_error { self.message = input; self } - /// Consumes the builder and constructs a [`ForbiddenError`](crate::error::ForbiddenError) - pub fn build(self) -> crate::error::ForbiddenError { - crate::error::ForbiddenError { + /// Consumes the builder and constructs a [`ForbiddenException`](crate::error::ForbiddenException) + pub fn build(self) -> crate::error::ForbiddenException { + crate::error::ForbiddenException { message: self.message, } } } } -impl ForbiddenError { - /// Creates a new builder-style object to manufacture [`ForbiddenError`](crate::error::ForbiddenError) - pub fn builder() -> crate::error::forbidden_error::Builder { - crate::error::forbidden_error::Builder::default() +impl ForbiddenException { + /// Creates a new builder-style object to manufacture [`ForbiddenException`](crate::error::ForbiddenException) + pub fn builder() -> crate::error::forbidden_exception::Builder { + crate::error::forbidden_exception::Builder::default() } } ///

                                      There is an error in the call or in a SQL statement.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadRequestError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { ///

                                      The error message returned by this BadRequestException error.

                                      - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for BadRequestError { +impl std::fmt::Debug for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadRequestError"); + let mut formatter = f.debug_struct("BadRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl BadRequestError { +impl BadRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadRequestError { +impl std::fmt::Display for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadRequestError [BadRequestException]")?; + write!(f, "BadRequestException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for BadRequestError {} -/// See [`BadRequestError`](crate::error::BadRequestError) -pub mod bad_request_error { - /// A builder for [`BadRequestError`](crate::error::BadRequestError) +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1010,17 +1024,17 @@ pub mod bad_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`BadRequestError`](crate::error::BadRequestError) - pub fn build(self) -> crate::error::BadRequestError { - crate::error::BadRequestError { + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { message: self.message, } } } } -impl BadRequestError { - /// Creates a new builder-style object to manufacture [`BadRequestError`](crate::error::BadRequestError) - pub fn builder() -> crate::error::bad_request_error::Builder { - crate::error::bad_request_error::Builder::default() +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() } } diff --git a/sdk/rdsdata/src/error_meta.rs b/sdk/rdsdata/src/error_meta.rs index 4b3cc5e2df65..6bceb41f147e 100644 --- a/sdk/rdsdata/src/error_meta.rs +++ b/sdk/rdsdata/src/error_meta.rs @@ -2,23 +2,23 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - BadRequestError(crate::error::BadRequestError), - ForbiddenError(crate::error::ForbiddenError), - InternalServerErrorError(crate::error::InternalServerErrorError), - NotFoundError(crate::error::NotFoundError), + BadRequestException(crate::error::BadRequestException), + ForbiddenException(crate::error::ForbiddenException), + InternalServerErrorException(crate::error::InternalServerErrorException), + NotFoundException(crate::error::NotFoundException), ServiceUnavailableError(crate::error::ServiceUnavailableError), - StatementTimeoutError(crate::error::StatementTimeoutError), + StatementTimeoutException(crate::error::StatementTimeoutException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::BadRequestError(inner) => inner.fmt(f), - Error::ForbiddenError(inner) => inner.fmt(f), - Error::InternalServerErrorError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), + Error::BadRequestException(inner) => inner.fmt(f), + Error::ForbiddenException(inner) => inner.fmt(f), + Error::InternalServerErrorException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), Error::ServiceUnavailableError(inner) => inner.fmt(f), - Error::StatementTimeoutError(inner) => inner.fmt(f), + Error::StatementTimeoutException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -27,20 +27,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BatchExecuteStatementErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BatchExecuteStatementErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BatchExecuteStatementErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) - } - crate::error::BatchExecuteStatementErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BatchExecuteStatementErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } + crate::error::BatchExecuteStatementErrorKind::InternalServerErrorException( + inner, + ) => Error::InternalServerErrorException(inner), crate::error::BatchExecuteStatementErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) } - crate::error::BatchExecuteStatementErrorKind::StatementTimeoutError(inner) => { - Error::StatementTimeoutError(inner) + crate::error::BatchExecuteStatementErrorKind::StatementTimeoutException(inner) => { + Error::StatementTimeoutException(inner) } crate::error::BatchExecuteStatementErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -54,20 +54,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::BeginTransactionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::BeginTransactionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::BeginTransactionErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::BeginTransactionErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::BeginTransactionErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::BeginTransactionErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } crate::error::BeginTransactionErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) } - crate::error::BeginTransactionErrorKind::StatementTimeoutError(inner) => { - Error::StatementTimeoutError(inner) + crate::error::BeginTransactionErrorKind::StatementTimeoutException(inner) => { + Error::StatementTimeoutException(inner) } crate::error::BeginTransactionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -81,23 +81,23 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CommitTransactionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CommitTransactionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CommitTransactionErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::CommitTransactionErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::CommitTransactionErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::CommitTransactionErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::CommitTransactionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CommitTransactionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CommitTransactionErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) } - crate::error::CommitTransactionErrorKind::StatementTimeoutError(inner) => { - Error::StatementTimeoutError(inner) + crate::error::CommitTransactionErrorKind::StatementTimeoutException(inner) => { + Error::StatementTimeoutException(inner) } crate::error::CommitTransactionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -111,14 +111,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteSqlErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ExecuteSqlErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ExecuteSqlErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ExecuteSqlErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ExecuteSqlErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ExecuteSqlErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } crate::error::ExecuteSqlErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) @@ -133,20 +133,20 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ExecuteStatementErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ExecuteStatementErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ExecuteStatementErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::ExecuteStatementErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::ExecuteStatementErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::ExecuteStatementErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } crate::error::ExecuteStatementErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) } - crate::error::ExecuteStatementErrorKind::StatementTimeoutError(inner) => { - Error::StatementTimeoutError(inner) + crate::error::ExecuteStatementErrorKind::StatementTimeoutException(inner) => { + Error::StatementTimeoutException(inner) } crate::error::ExecuteStatementErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -160,23 +160,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RollbackTransactionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::RollbackTransactionErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::RollbackTransactionErrorKind::ForbiddenError(inner) => { - Error::ForbiddenError(inner) + crate::error::RollbackTransactionErrorKind::ForbiddenException(inner) => { + Error::ForbiddenException(inner) } - crate::error::RollbackTransactionErrorKind::InternalServerErrorError(inner) => { - Error::InternalServerErrorError(inner) + crate::error::RollbackTransactionErrorKind::InternalServerErrorException(inner) => { + Error::InternalServerErrorException(inner) } - crate::error::RollbackTransactionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::RollbackTransactionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::RollbackTransactionErrorKind::ServiceUnavailableError(inner) => { Error::ServiceUnavailableError(inner) } - crate::error::RollbackTransactionErrorKind::StatementTimeoutError(inner) => { - Error::StatementTimeoutError(inner) + crate::error::RollbackTransactionErrorKind::StatementTimeoutException(inner) => { + Error::StatementTimeoutException(inner) } crate::error::RollbackTransactionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/rdsdata/src/input.rs b/sdk/rdsdata/src/input.rs index 17a2702a0565..d39c3e2270df 100644 --- a/sdk/rdsdata/src/input.rs +++ b/sdk/rdsdata/src/input.rs @@ -175,8 +175,9 @@ impl BatchExecuteStatementInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/BatchExecute").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/BatchExecute").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -184,7 +185,7 @@ impl BatchExecuteStatementInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -336,8 +337,9 @@ impl BeginTransactionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/BeginTransaction").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/BeginTransaction").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -345,7 +347,7 @@ impl BeginTransactionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -490,8 +492,9 @@ impl CommitTransactionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/CommitTransaction").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/CommitTransaction").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -499,7 +502,7 @@ impl CommitTransactionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -673,8 +676,9 @@ impl ExecuteSqlInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/ExecuteSql").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/ExecuteSql").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -682,7 +686,7 @@ impl ExecuteSqlInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -923,8 +927,9 @@ impl ExecuteStatementInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/Execute").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/Execute").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -932,7 +937,7 @@ impl ExecuteStatementInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1077,8 +1082,9 @@ impl RollbackTransactionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/RollbackTransaction").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/RollbackTransaction").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1086,7 +1092,7 @@ impl RollbackTransactionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] diff --git a/sdk/rdsdata/src/json_deser.rs b/sdk/rdsdata/src/json_deser.rs index 405463dd555e..6d5e8848df5e 100644 --- a/sdk/rdsdata/src/json_deser.rs +++ b/sdk/rdsdata/src/json_deser.rs @@ -1,175 +1,1564 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn bad_request_exception( +pub fn deser_structure_bad_request_exceptionjson_err( input: &[u8], - mut builder: crate::error::bad_request_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::BadRequestError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn forbidden_exception( +pub fn deser_structure_forbidden_exceptionjson_err( input: &[u8], - mut builder: crate::error::forbidden_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ForbiddenError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::forbidden_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn statement_timeout_exception( +pub fn deser_structure_statement_timeout_exceptionjson_err( input: &[u8], - mut builder: crate::error::statement_timeout_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::StatementTimeoutError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_db_connection_id(Some(parsed_body.db_connection_id)); + mut builder: crate::error::statement_timeout_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "dbConnectionId" => { + builder = builder.set_db_connection_id( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_execute_statement_deser_operation( +pub fn deser_operation_batch_execute_statement( input: &[u8], mut builder: crate::output::batch_execute_statement_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::BatchExecuteStatementOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_update_results(parsed_body.update_results); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "updateResults" => { + builder = builder.set_update_results( + crate::json_deser::deser_list_update_results(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn begin_transaction_deser_operation( +pub fn deser_operation_begin_transaction( input: &[u8], mut builder: crate::output::begin_transaction_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BeginTransactionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transaction_id(parsed_body.transaction_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "transactionId" => { + builder = builder.set_transaction_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn not_found_exception( +pub fn deser_structure_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::NotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn commit_transaction_deser_operation( +pub fn deser_operation_commit_transaction( input: &[u8], mut builder: crate::output::commit_transaction_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CommitTransactionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transaction_status(parsed_body.transaction_status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "transactionStatus" => { + builder = builder.set_transaction_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn execute_sql_deser_operation( +pub fn deser_operation_execute_sql( input: &[u8], mut builder: crate::output::execute_sql_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExecuteSqlOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_sql_statement_results(parsed_body.sql_statement_results); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "sqlStatementResults" => { + builder = builder.set_sql_statement_results( + crate::json_deser::deser_list_sql_statement_results(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn execute_statement_deser_operation( +pub fn deser_operation_execute_statement( input: &[u8], mut builder: crate::output::execute_statement_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ExecuteStatementOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_records(parsed_body.records); - builder = builder.set_column_metadata(parsed_body.column_metadata); - builder = builder.set_number_of_records_updated(Some(parsed_body.number_of_records_updated)); - builder = builder.set_generated_fields(parsed_body.generated_fields); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "columnMetadata" => { + builder = builder + .set_column_metadata(crate::json_deser::deser_list_metadata(tokens)?); + } + "generatedFields" => { + builder = builder.set_generated_fields( + crate::json_deser::deser_list_field_list(tokens)?, + ); + } + "numberOfRecordsUpdated" => { + builder = builder.set_number_of_records_updated( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "records" => { + builder = + builder.set_records(crate::json_deser::deser_list_sql_records(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn rollback_transaction_deser_operation( +pub fn deser_operation_rollback_transaction( input: &[u8], mut builder: crate::output::rollback_transaction_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::RollbackTransactionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transaction_status(parsed_body.transaction_status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "transactionStatus" => { + builder = builder.set_transaction_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_update_results<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_update_result(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_sql_statement_results<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_sql_statement_result(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_column_metadata(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_field_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_union_field(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_sql_records<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_list_field_list(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_update_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UpdateResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "generatedFields" => { + builder = builder.set_generated_fields( + crate::json_deser::deser_list_field_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sql_statement_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SqlStatementResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resultFrame" => { + builder = builder.set_result_frame( + crate::json_deser::deser_structure_result_frame(tokens)?, + ); + } + "numberOfRecordsUpdated" => { + builder = builder.set_number_of_records_updated( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_column_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ColumnMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "typeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "label" => { + builder = builder.set_label( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "schemaName" => { + builder = builder.set_schema_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "tableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "isAutoIncrement" => { + builder = builder.set_is_auto_increment( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "isSigned" => { + builder = builder.set_is_signed( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "isCurrency" => { + builder = builder.set_is_currency( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "isCaseSensitive" => { + builder = builder.set_is_case_sensitive( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "nullable" => { + builder = builder.set_nullable( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "precision" => { + builder = builder.set_precision( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "scale" => { + builder = builder.set_scale( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "arrayBaseColumnType" => { + builder = builder.set_array_base_column_type( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_union_field<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + let mut variant = None; + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + if variant.is_some() { + return Err(smithy_json::deserialize::Error::custom( + "encountered mixed variants in union", + )); + } + variant = match key.to_unescaped()?.as_ref() { + "isNull" => Some(crate::model::Field::IsNull( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + "booleanValue" => Some(crate::model::Field::BooleanValue( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + "longValue" => Some(crate::model::Field::LongValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()) + .unwrap_or_default(), + )), + "doubleValue" => Some(crate::model::Field::DoubleValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()) + .unwrap_or_default(), + )), + "stringValue" => Some(crate::model::Field::StringValue( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()? + .unwrap_or_default(), + )), + "blobValue" => Some(crate::model::Field::BlobValue( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'blobValue' cannot be null", + ) + })?, + )), + "arrayValue" => Some(crate::model::Field::ArrayValue( + crate::json_deser::deser_union_array_value(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'arrayValue' cannot be null", + ) + }, + )?, + )), + _ => None, + }; + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + }, + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )) + } + } + Ok(variant) +} + +pub fn deser_structure_result_frame<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResultFrame::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "resultSetMetadata" => { + builder = builder.set_result_set_metadata( + crate::json_deser::deser_structure_result_set_metadata(tokens)?, + ); + } + "records" => { + builder = builder + .set_records(crate::json_deser::deser_list_records(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_union_array_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + let mut variant = None; + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + if variant.is_some() { + return Err(smithy_json::deserialize::Error::custom( + "encountered mixed variants in union", + )); + } + variant = match key.to_unescaped()?.as_ref() { + "booleanValues" => Some(crate::model::ArrayValue::BooleanValues( + crate::json_deser::deser_list_boolean_array(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'booleanValues' cannot be null", + ) + }, + )?, + )), + "longValues" => Some(crate::model::ArrayValue::LongValues( + crate::json_deser::deser_list_long_array(tokens)?.ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'longValues' cannot be null", + ) + })?, + )), + "doubleValues" => Some(crate::model::ArrayValue::DoubleValues( + crate::json_deser::deser_list_double_array(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'doubleValues' cannot be null", + ) + }, + )?, + )), + "stringValues" => Some(crate::model::ArrayValue::StringValues( + crate::json_deser::deser_list_string_array(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'stringValues' cannot be null", + ) + }, + )?, + )), + "arrayValues" => Some(crate::model::ArrayValue::ArrayValues( + crate::json_deser::deser_list_array_of_array(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'arrayValues' cannot be null", + ) + }, + )?, + )), + _ => None, + }; + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + }, + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )) + } + } + Ok(variant) +} + +pub fn deser_structure_result_set_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResultSetMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "columnCount" => { + builder = builder.set_column_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "columnMetadata" => { + builder = builder.set_column_metadata( + crate::json_deser::deser_list_metadata(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_records<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_record(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_boolean_array<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_long_array<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()); + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_double_array<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()); + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_string_array<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_array_of_array<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_union_array_value(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Record::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "values" => { + builder = + builder.set_values(crate::json_deser::deser_list_row(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_row<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_union_value(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_union_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + let mut variant = None; + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + if variant.is_some() { + return Err(smithy_json::deserialize::Error::custom( + "encountered mixed variants in union", + )); + } + variant = match key.to_unescaped()?.as_ref() { + "isNull" => Some(crate::model::Value::IsNull( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + "bitValue" => Some(crate::model::Value::BitValue( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())? + .unwrap_or_default(), + )), + "bigIntValue" => Some(crate::model::Value::BigIntValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()) + .unwrap_or_default(), + )), + "intValue" => Some(crate::model::Value::IntValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()) + .unwrap_or_default(), + )), + "doubleValue" => Some(crate::model::Value::DoubleValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f64()) + .unwrap_or_default(), + )), + "realValue" => Some(crate::model::Value::RealValue( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_f32()) + .unwrap_or_default(), + )), + "stringValue" => Some(crate::model::Value::StringValue( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()? + .unwrap_or_default(), + )), + "blobValue" => Some(crate::model::Value::BlobValue( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())? + .ok_or_else(|| { + smithy_json::deserialize::Error::custom( + "value for 'blobValue' cannot be null", + ) + })?, + )), + "arrayValues" => Some(crate::model::Value::ArrayValues( + crate::json_deser::deser_list_array_value_list(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'arrayValues' cannot be null", + ) + }, + )?, + )), + "structValue" => Some(crate::model::Value::StructValue( + crate::json_deser::deser_structure_struct_value(tokens)?.ok_or_else( + || { + smithy_json::deserialize::Error::custom( + "value for 'structValue' cannot be null", + ) + }, + )?, + )), + _ => None, + }; + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + }, + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )) + } + } + Ok(variant) +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_array_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_union_value(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_struct_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StructValue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_list_array_value_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/rdsdata/src/json_errors.rs b/sdk/rdsdata/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/rdsdata/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/rdsdata/src/lib.rs b/sdk/rdsdata/src/lib.rs index 889288df6ddc..b20096698f99 100644 --- a/sdk/rdsdata/src/lib.rs +++ b/sdk/rdsdata/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon RDS Data Service //!

                                      Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora //! Serverless DB cluster. To run these statements, you work with the Data Service @@ -16,8 +17,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -25,14 +24,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/rdsdata/src/model.rs b/sdk/rdsdata/src/model.rs index 36e5c0f71b1e..a8d4b2c6dec2 100644 --- a/sdk/rdsdata/src/model.rs +++ b/sdk/rdsdata/src/model.rs @@ -1,28 +1,20 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] +#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub enum Field { ///

                                      An array of values.

                                      - #[serde(rename = "arrayValue")] ArrayValue(crate::model::ArrayValue), ///

                                      A value of BLOB data type.

                                      - #[serde(rename = "blobValue")] - #[serde(deserialize_with = "crate::serde_util::smithytypesblob_deser")] BlobValue(smithy_types::Blob), ///

                                      A value of Boolean data type.

                                      - #[serde(rename = "booleanValue")] BooleanValue(bool), ///

                                      A value of double data type.

                                      - #[serde(rename = "doubleValue")] DoubleValue(f64), ///

                                      A NULL value.

                                      - #[serde(rename = "isNull")] IsNull(bool), ///

                                      A value of long data type.

                                      - #[serde(rename = "longValue")] LongValue(i64), ///

                                      A value of string data type.

                                      - #[serde(rename = "stringValue")] StringValue(std::string::String), } impl Field { @@ -99,22 +91,17 @@ impl Field { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] +#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub enum ArrayValue { ///

                                      An array of arrays.

                                      - #[serde(rename = "arrayValues")] ArrayValues(std::vec::Vec), ///

                                      An array of Boolean values.

                                      - #[serde(rename = "booleanValues")] BooleanValues(std::vec::Vec), ///

                                      An array of integers.

                                      - #[serde(rename = "doubleValues")] DoubleValues(std::vec::Vec), ///

                                      An array of floating point numbers.

                                      - #[serde(rename = "longValues")] LongValues(std::vec::Vec), ///

                                      An array of strings.

                                      - #[serde(rename = "stringValues")] StringValues(std::vec::Vec), } impl ArrayValue { @@ -172,63 +159,35 @@ impl ArrayValue { ///

                                      Contains the metadata for a column.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ColumnMetadata { ///

                                      The name of the column.

                                      - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

                                      The type of the column.

                                      - #[serde(rename = "type")] - #[serde(default)] pub r#type: i32, ///

                                      The database-specific data type of the column.

                                      - #[serde(rename = "typeName")] - #[serde(default)] pub type_name: std::option::Option, ///

                                      The label for the column.

                                      - #[serde(rename = "label")] - #[serde(default)] pub label: std::option::Option, ///

                                      The name of the schema that owns the table that includes the column.

                                      - #[serde(rename = "schemaName")] - #[serde(default)] pub schema_name: std::option::Option, ///

                                      The name of the table that includes the column.

                                      - #[serde(rename = "tableName")] - #[serde(default)] pub table_name: std::option::Option, ///

                                      A value that indicates whether the column increments automatically.

                                      - #[serde(rename = "isAutoIncrement")] - #[serde(default)] pub is_auto_increment: bool, ///

                                      A value that indicates whether an integer column is signed.

                                      - #[serde(rename = "isSigned")] - #[serde(default)] pub is_signed: bool, ///

                                      A value that indicates whether the column contains currency values.

                                      - #[serde(rename = "isCurrency")] - #[serde(default)] pub is_currency: bool, ///

                                      A value that indicates whether the column is case-sensitive.

                                      - #[serde(rename = "isCaseSensitive")] - #[serde(default)] pub is_case_sensitive: bool, ///

                                      A value that indicates whether the column is nullable.

                                      - #[serde(rename = "nullable")] - #[serde(default)] pub nullable: i32, ///

                                      The precision value of a decimal number column.

                                      - #[serde(rename = "precision")] - #[serde(default)] pub precision: i32, ///

                                      The scale value of a decimal number column.

                                      - #[serde(rename = "scale")] - #[serde(default)] pub scale: i32, ///

                                      The type of the column.

                                      - #[serde(rename = "arrayBaseColumnType")] - #[serde(default)] pub array_base_column_type: i32, } impl std::fmt::Debug for ColumnMetadata { @@ -429,7 +388,7 @@ impl ColumnMetadata { ///

                                      Options that control how the result set is returned.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResultSetOptions { ///

                                      A value that indicates how a field of DECIMAL type is represented /// in the response. The value of STRING, the default, specifies that @@ -440,8 +399,6 @@ pub struct ResultSetOptions { ///

                                      Conversion to Double or Long can result in roundoff errors due to precision loss. /// We recommend converting to String, especially when working with currency values.

                                      /// - #[serde(rename = "decimalReturnType")] - #[serde(default)] pub decimal_return_type: std::option::Option, } impl std::fmt::Debug for ResultSetOptions { @@ -523,7 +480,7 @@ impl std::convert::From<&str> for DecimalReturnType { impl std::str::FromStr for DecimalReturnType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DecimalReturnType::from(s)) } } @@ -541,27 +498,14 @@ impl AsRef for DecimalReturnType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DecimalReturnType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                      A parameter used in a SQL statement.

                                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SqlParameter { ///

                                      The name of the parameter.

                                      - #[serde(rename = "name")] - #[serde(default)] pub name: std::option::Option, ///

                                      The value of the parameter.

                                      - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, ///

                                      A hint that specifies the correct object type for data type mapping. Possible values /// are as follows:

                                      @@ -598,8 +542,6 @@ pub struct SqlParameter { ///

                                      /// ///
                                    - #[serde(rename = "typeHint")] - #[serde(default)] pub type_hint: std::option::Option, } impl std::fmt::Debug for SqlParameter { @@ -736,7 +678,7 @@ impl std::convert::From<&str> for TypeHint { impl std::str::FromStr for TypeHint { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TypeHint::from(s)) } } @@ -758,30 +700,17 @@ impl AsRef for TypeHint { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TypeHint { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                    The result of a SQL statement.

                                    /// ///

                                    This data type is deprecated.

                                    ///
                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SqlStatementResult { ///

                                    The result set of the SQL statement.

                                    - #[serde(rename = "resultFrame")] - #[serde(default)] pub result_frame: std::option::Option, ///

                                    The number of records updated by a SQL statement.

                                    - #[serde(rename = "numberOfRecordsUpdated")] - #[serde(default)] pub number_of_records_updated: i64, } impl std::fmt::Debug for SqlStatementResult { @@ -841,15 +770,11 @@ impl SqlStatementResult { ///

                                    The result set returned by a SQL statement.

                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResultFrame { ///

                                    The result-set metadata in the result set.

                                    - #[serde(rename = "resultSetMetadata")] - #[serde(default)] pub result_set_metadata: std::option::Option, ///

                                    The records in the result set.

                                    - #[serde(rename = "records")] - #[serde(default)] pub records: std::option::Option>, } impl std::fmt::Debug for ResultFrame { @@ -913,11 +838,9 @@ impl ResultFrame { ///

                                    A record returned by a call.

                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Record { ///

                                    The values returned in the record.

                                    - #[serde(rename = "values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for Record { @@ -965,38 +888,27 @@ impl Record { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] +#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub enum Value { ///

                                    An array of column values.

                                    - #[serde(rename = "arrayValues")] ArrayValues(std::vec::Vec), ///

                                    A value for a column of big integer data type.

                                    - #[serde(rename = "bigIntValue")] BigIntValue(i64), ///

                                    A value for a column of BIT data type.

                                    - #[serde(rename = "bitValue")] BitValue(bool), ///

                                    A value for a column of BLOB data type.

                                    - #[serde(rename = "blobValue")] - #[serde(deserialize_with = "crate::serde_util::smithytypesblob_deser")] BlobValue(smithy_types::Blob), ///

                                    A value for a column of double data type.

                                    - #[serde(rename = "doubleValue")] DoubleValue(f64), ///

                                    A value for a column of integer data type.

                                    - #[serde(rename = "intValue")] IntValue(i32), ///

                                    A NULL value.

                                    - #[serde(rename = "isNull")] IsNull(bool), ///

                                    A value for a column of real data type.

                                    - #[serde(rename = "realValue")] RealValue(f32), ///

                                    A value for a column of string data type.

                                    - #[serde(rename = "stringValue")] StringValue(std::string::String), ///

                                    A value for a column of STRUCT data type.

                                    - #[serde(rename = "structValue")] StructValue(crate::model::StructValue), } impl Value { @@ -1104,11 +1016,9 @@ impl Value { ///

                                    A structure value returned by a call.

                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StructValue { ///

                                    The attributes returned in the record.

                                    - #[serde(rename = "attributes")] - #[serde(default)] pub attributes: std::option::Option>, } impl std::fmt::Debug for StructValue { @@ -1157,15 +1067,11 @@ impl StructValue { ///

                                    The metadata of the result set returned by a SQL statement.

                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResultSetMetadata { ///

                                    The number of columns in the result set.

                                    - #[serde(rename = "columnCount")] - #[serde(default)] pub column_count: i64, ///

                                    The metadata of the columns in the result set.

                                    - #[serde(rename = "columnMetadata")] - #[serde(default)] pub column_metadata: std::option::Option>, } impl std::fmt::Debug for ResultSetMetadata { @@ -1227,11 +1133,9 @@ impl ResultSetMetadata { ///

                                    The response elements represent the results of an update.

                                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateResult { ///

                                    Values for fields generated during the request.

                                    - #[serde(rename = "generatedFields")] - #[serde(default)] pub generated_fields: std::option::Option>, } impl std::fmt::Debug for UpdateResult { diff --git a/sdk/rdsdata/src/operation_deser.rs b/sdk/rdsdata/src/operation_deser.rs index 643086592a23..8f626ff3243c 100644 --- a/sdk/rdsdata/src/operation_deser.rs +++ b/sdk/rdsdata/src/operation_deser.rs @@ -15,31 +15,37 @@ pub fn parse_batch_execute_statement_error( Err(match error_code { "BadRequestException" => crate::error::BatchExecuteStatementError { meta: generic, - kind: crate::error::BatchExecuteStatementErrorKind::BadRequestError({ + kind: crate::error::BatchExecuteStatementErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BatchExecuteStatementError { meta: generic, - kind: crate::error::BatchExecuteStatementErrorKind::ForbiddenError({ + kind: crate::error::BatchExecuteStatementErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BatchExecuteStatementError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchExecuteStatementError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BatchExecuteStatementError { meta: generic, - kind: crate::error::BatchExecuteStatementErrorKind::InternalServerErrorError({ + kind: crate::error::BatchExecuteStatementErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), @@ -55,11 +61,11 @@ pub fn parse_batch_execute_statement_error( }, "StatementTimeoutException" => crate::error::BatchExecuteStatementError { meta: generic, - kind: crate::error::BatchExecuteStatementErrorKind::StatementTimeoutError({ + kind: crate::error::BatchExecuteStatementErrorKind::StatementTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::statement_timeout_error::Builder::default(); + let mut output = crate::error::statement_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::statement_timeout_exception( + output = crate::json_deser::deser_structure_statement_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -82,7 +88,7 @@ pub fn parse_batch_execute_statement_response( #[allow(unused_mut)] let mut output = crate::output::batch_execute_statement_output::Builder::default(); let _ = response; - output = crate::json_deser::batch_execute_statement_deser_operation( + output = crate::json_deser::deser_operation_batch_execute_statement( response.body().as_ref(), output, ) @@ -105,31 +111,37 @@ pub fn parse_begin_transaction_error( Err(match error_code { "BadRequestException" => crate::error::BeginTransactionError { meta: generic, - kind: crate::error::BeginTransactionErrorKind::BadRequestError({ + kind: crate::error::BeginTransactionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::BeginTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BeginTransactionError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::BeginTransactionError { meta: generic, - kind: crate::error::BeginTransactionErrorKind::ForbiddenError({ + kind: crate::error::BeginTransactionErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::BeginTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BeginTransactionError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::BeginTransactionError { meta: generic, - kind: crate::error::BeginTransactionErrorKind::InternalServerErrorError({ + kind: crate::error::BeginTransactionErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), @@ -145,11 +157,11 @@ pub fn parse_begin_transaction_error( }, "StatementTimeoutException" => crate::error::BeginTransactionError { meta: generic, - kind: crate::error::BeginTransactionErrorKind::StatementTimeoutError({ + kind: crate::error::BeginTransactionErrorKind::StatementTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::statement_timeout_error::Builder::default(); + let mut output = crate::error::statement_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::statement_timeout_exception( + output = crate::json_deser::deser_structure_statement_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -171,7 +183,7 @@ pub fn parse_begin_transaction_response( let mut output = crate::output::begin_transaction_output::Builder::default(); let _ = response; output = - crate::json_deser::begin_transaction_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_begin_transaction(response.body().as_ref(), output) .map_err(crate::error::BeginTransactionError::unhandled)?; output.build() }) @@ -191,43 +203,52 @@ pub fn parse_commit_transaction_error( Err(match error_code { "BadRequestException" => crate::error::CommitTransactionError { meta: generic, - kind: crate::error::CommitTransactionErrorKind::BadRequestError({ + kind: crate::error::CommitTransactionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CommitTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CommitTransactionError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::CommitTransactionError { meta: generic, - kind: crate::error::CommitTransactionErrorKind::ForbiddenError({ + kind: crate::error::CommitTransactionErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::CommitTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CommitTransactionError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::CommitTransactionError { meta: generic, - kind: crate::error::CommitTransactionErrorKind::InternalServerErrorError({ + kind: crate::error::CommitTransactionErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), }, "NotFoundException" => crate::error::CommitTransactionError { meta: generic, - kind: crate::error::CommitTransactionErrorKind::NotFoundError({ + kind: crate::error::CommitTransactionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CommitTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CommitTransactionError::unhandled)?; output.build() }), }, @@ -242,11 +263,11 @@ pub fn parse_commit_transaction_error( }, "StatementTimeoutException" => crate::error::CommitTransactionError { meta: generic, - kind: crate::error::CommitTransactionErrorKind::StatementTimeoutError({ + kind: crate::error::CommitTransactionErrorKind::StatementTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::statement_timeout_error::Builder::default(); + let mut output = crate::error::statement_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::statement_timeout_exception( + output = crate::json_deser::deser_structure_statement_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -268,7 +289,7 @@ pub fn parse_commit_transaction_response( let mut output = crate::output::commit_transaction_output::Builder::default(); let _ = response; output = - crate::json_deser::commit_transaction_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_commit_transaction(response.body().as_ref(), output) .map_err(crate::error::CommitTransactionError::unhandled)?; output.build() }) @@ -287,31 +308,37 @@ pub fn parse_execute_sql_error( Err(match error_code { "BadRequestException" => crate::error::ExecuteSqlError { meta: generic, - kind: crate::error::ExecuteSqlErrorKind::BadRequestError({ + kind: crate::error::ExecuteSqlErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ExecuteSqlError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteSqlError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ExecuteSqlError { meta: generic, - kind: crate::error::ExecuteSqlErrorKind::ForbiddenError({ + kind: crate::error::ExecuteSqlErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ExecuteSqlError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteSqlError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ExecuteSqlError { meta: generic, - kind: crate::error::ExecuteSqlErrorKind::InternalServerErrorError({ + kind: crate::error::ExecuteSqlErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), @@ -337,7 +364,7 @@ pub fn parse_execute_sql_response( #[allow(unused_mut)] let mut output = crate::output::execute_sql_output::Builder::default(); let _ = response; - output = crate::json_deser::execute_sql_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_execute_sql(response.body().as_ref(), output) .map_err(crate::error::ExecuteSqlError::unhandled)?; output.build() }) @@ -357,31 +384,37 @@ pub fn parse_execute_statement_error( Err(match error_code { "BadRequestException" => crate::error::ExecuteStatementError { meta: generic, - kind: crate::error::ExecuteStatementErrorKind::BadRequestError({ + kind: crate::error::ExecuteStatementErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ExecuteStatementError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::ExecuteStatementError { meta: generic, - kind: crate::error::ExecuteStatementErrorKind::ForbiddenError({ + kind: crate::error::ExecuteStatementErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::ExecuteStatementError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ExecuteStatementError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::ExecuteStatementError { meta: generic, - kind: crate::error::ExecuteStatementErrorKind::InternalServerErrorError({ + kind: crate::error::ExecuteStatementErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), @@ -397,11 +430,11 @@ pub fn parse_execute_statement_error( }, "StatementTimeoutException" => crate::error::ExecuteStatementError { meta: generic, - kind: crate::error::ExecuteStatementErrorKind::StatementTimeoutError({ + kind: crate::error::ExecuteStatementErrorKind::StatementTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::statement_timeout_error::Builder::default(); + let mut output = crate::error::statement_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::statement_timeout_exception( + output = crate::json_deser::deser_structure_statement_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -423,7 +456,7 @@ pub fn parse_execute_statement_response( let mut output = crate::output::execute_statement_output::Builder::default(); let _ = response; output = - crate::json_deser::execute_statement_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_execute_statement(response.body().as_ref(), output) .map_err(crate::error::ExecuteStatementError::unhandled)?; output.build() }) @@ -445,43 +478,52 @@ pub fn parse_rollback_transaction_error( Err(match error_code { "BadRequestException" => crate::error::RollbackTransactionError { meta: generic, - kind: crate::error::RollbackTransactionErrorKind::BadRequestError({ + kind: crate::error::RollbackTransactionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::RollbackTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RollbackTransactionError::unhandled)?; output.build() }), }, "ForbiddenException" => crate::error::RollbackTransactionError { meta: generic, - kind: crate::error::RollbackTransactionErrorKind::ForbiddenError({ + kind: crate::error::RollbackTransactionErrorKind::ForbiddenException({ #[allow(unused_mut)] - let mut output = crate::error::forbidden_error::Builder::default(); + let mut output = crate::error::forbidden_exception::Builder::default(); let _ = response; - output = crate::json_deser::forbidden_exception(response.body().as_ref(), output) - .map_err(crate::error::RollbackTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_forbidden_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RollbackTransactionError::unhandled)?; output.build() }), }, "InternalServerErrorException" => crate::error::RollbackTransactionError { meta: generic, - kind: crate::error::RollbackTransactionErrorKind::InternalServerErrorError({ + kind: crate::error::RollbackTransactionErrorKind::InternalServerErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error_error::Builder::default(); + let mut output = crate::error::internal_server_error_exception::Builder::default(); let _ = response; output.build() }), }, "NotFoundException" => crate::error::RollbackTransactionError { meta: generic, - kind: crate::error::RollbackTransactionErrorKind::NotFoundError({ + kind: crate::error::RollbackTransactionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::RollbackTransactionError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RollbackTransactionError::unhandled)?; output.build() }), }, @@ -496,11 +538,11 @@ pub fn parse_rollback_transaction_error( }, "StatementTimeoutException" => crate::error::RollbackTransactionError { meta: generic, - kind: crate::error::RollbackTransactionErrorKind::StatementTimeoutError({ + kind: crate::error::RollbackTransactionErrorKind::StatementTimeoutException({ #[allow(unused_mut)] - let mut output = crate::error::statement_timeout_error::Builder::default(); + let mut output = crate::error::statement_timeout_exception::Builder::default(); let _ = response; - output = crate::json_deser::statement_timeout_exception( + output = crate::json_deser::deser_structure_statement_timeout_exceptionjson_err( response.body().as_ref(), output, ) @@ -523,7 +565,7 @@ pub fn parse_rollback_transaction_response( #[allow(unused_mut)] let mut output = crate::output::rollback_transaction_output::Builder::default(); let _ = response; - output = crate::json_deser::rollback_transaction_deser_operation( + output = crate::json_deser::deser_operation_rollback_transaction( response.body().as_ref(), output, ) diff --git a/sdk/rdsdata/src/operation_ser.rs b/sdk/rdsdata/src/operation_ser.rs index a97043a8254b..09476188fec1 100644 --- a/sdk/rdsdata/src/operation_ser.rs +++ b/sdk/rdsdata/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_batch_execute_statement( input: &crate::input::BatchExecuteStatementInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_execute_statement_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_batch_execute_statement( pub fn serialize_operation_begin_transaction( input: &crate::input::BeginTransactionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_begin_transaction_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_begin_transaction( pub fn serialize_operation_commit_transaction( input: &crate::input::CommitTransactionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_commit_transaction_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_commit_transaction( pub fn serialize_operation_execute_sql( input: &crate::input::ExecuteSqlInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_execute_sql_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_execute_sql( pub fn serialize_operation_execute_statement( input: &crate::input::ExecuteStatementInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_execute_statement_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_execute_statement( pub fn serialize_operation_rollback_transaction( input: &crate::input::RollbackTransactionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_rollback_transaction_input(&mut object, input); diff --git a/sdk/rdsdata/src/serde_util.rs b/sdk/rdsdata/src/serde_util.rs deleted file mode 100644 index 44f1358d021f..000000000000 --- a/sdk/rdsdata/src/serde_util.rs +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn smithytypesblob_deser<'de, D>(_deser: D) -> Result -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(crate::blob_serde::BlobDeser::deserialize(_deser)?.0) -} diff --git a/sdk/rdsdata/src/serializer.rs b/sdk/rdsdata/src/serializer.rs deleted file mode 100644 index 736edff40efe..000000000000 --- a/sdk/rdsdata/src/serializer.rs +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

                                    The request parameters represent the input of a SQL statement over an array of -/// data.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchExecuteStatementInputBody<'a> { - ///

                                    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

                                    - pub resource_arn: &'a std::option::Option, - ///

                                    The name or ARN of the secret that enables access to the DB cluster.

                                    - pub secret_arn: &'a std::option::Option, - ///

                                    The SQL statement to run.

                                    - pub sql: &'a std::option::Option, - ///

                                    The name of the database.

                                    - pub database: &'a std::option::Option, - ///

                                    The name of the database schema.

                                    - pub schema: &'a std::option::Option, - ///

                                    The parameter set for the batch operation.

                                    - ///

                                    The SQL statement is executed as many times as the number of parameter sets provided. - /// To execute a SQL statement with no parameters, use one of the following options:

                                    - ///
                                      - ///
                                    • - ///

                                      Specify one or more empty parameter sets.

                                      - ///
                                    • - ///
                                    • - ///

                                      Use the ExecuteStatement operation instead of the BatchExecuteStatement operation.

                                      - ///
                                    • - ///
                                    - /// - ///

                                    Array parameters are not supported.

                                    - ///
                                    - pub parameter_sets: - &'a std::option::Option>>, - ///

                                    The identifier of a transaction that was started by using the - /// BeginTransaction operation. Specify the transaction ID of the - /// transaction that you want to include the SQL statement in.

                                    - ///

                                    If the SQL statement is not part of a transaction, don't set this - /// parameter.

                                    - pub transaction_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for BatchExecuteStatementInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchExecuteStatementInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("secret_arn", &self.secret_arn); - formatter.field("sql", &self.sql); - formatter.field("database", &self.database); - formatter.field("schema", &self.schema); - formatter.field("parameter_sets", &self.parameter_sets); - formatter.field("transaction_id", &self.transaction_id); - formatter.finish() - } -} - -///

                                    The request parameters represent the input of a request to start a SQL -/// transaction.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BeginTransactionInputBody<'a> { - ///

                                    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

                                    - pub resource_arn: &'a std::option::Option, - ///

                                    The name or ARN of the secret that enables access to the DB cluster.

                                    - pub secret_arn: &'a std::option::Option, - ///

                                    The name of the database.

                                    - pub database: &'a std::option::Option, - ///

                                    The name of the database schema.

                                    - pub schema: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for BeginTransactionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BeginTransactionInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("secret_arn", &self.secret_arn); - formatter.field("database", &self.database); - formatter.field("schema", &self.schema); - formatter.finish() - } -} - -///

                                    The request parameters represent the input of a commit transaction request.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CommitTransactionInputBody<'a> { - ///

                                    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

                                    - pub resource_arn: &'a std::option::Option, - ///

                                    The name or ARN of the secret that enables access to the DB cluster.

                                    - pub secret_arn: &'a std::option::Option, - ///

                                    The identifier of the transaction to end and commit.

                                    - pub transaction_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CommitTransactionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CommitTransactionInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("secret_arn", &self.secret_arn); - formatter.field("transaction_id", &self.transaction_id); - formatter.finish() - } -} - -///

                                    The request parameters represent the input of a request to run one or more SQL -/// statements.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteSqlInputBody<'a> { - ///

                                    The ARN of the Aurora Serverless DB cluster.

                                    - pub db_cluster_or_instance_arn: &'a std::option::Option, - ///

                                    The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.

                                    - pub aws_secret_store_arn: &'a std::option::Option, - ///

                                    One or more SQL statements to run on the DB cluster.

                                    - ///

                                    You can separate SQL statements from each other with a semicolon (;). Any valid SQL - /// statement is permitted, including data definition, data manipulation, and commit - /// statements.

                                    - pub sql_statements: &'a std::option::Option, - ///

                                    The name of the database.

                                    - pub database: &'a std::option::Option, - ///

                                    The name of the database schema.

                                    - pub schema: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExecuteSqlInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteSqlInputBody"); - formatter.field( - "db_cluster_or_instance_arn", - &self.db_cluster_or_instance_arn, - ); - formatter.field("aws_secret_store_arn", &self.aws_secret_store_arn); - formatter.field("sql_statements", &self.sql_statements); - formatter.field("database", &self.database); - formatter.field("schema", &self.schema); - formatter.finish() - } -} - -///

                                    The request parameters represent the input of a request to run a SQL statement against -/// a database.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteStatementInputBody<'a> { - ///

                                    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

                                    - pub resource_arn: &'a std::option::Option, - ///

                                    The name or ARN of the secret that enables access to the DB cluster.

                                    - pub secret_arn: &'a std::option::Option, - ///

                                    The SQL statement to run.

                                    - pub sql: &'a std::option::Option, - ///

                                    The name of the database.

                                    - pub database: &'a std::option::Option, - ///

                                    The name of the database schema.

                                    - /// - ///

                                    Currently, the schema parameter isn't supported.

                                    - ///
                                    - pub schema: &'a std::option::Option, - ///

                                    The parameters for the SQL statement.

                                    - /// - ///

                                    Array parameters are not supported.

                                    - ///
                                    - pub parameters: &'a std::option::Option>, - ///

                                    The identifier of a transaction that was started by using the - /// BeginTransaction operation. Specify the transaction ID of the - /// transaction that you want to include the SQL statement in.

                                    - ///

                                    If the SQL statement is not part of a transaction, don't set this parameter.

                                    - pub transaction_id: &'a std::option::Option, - ///

                                    A value that indicates whether to include metadata in the results.

                                    - pub include_result_metadata: &'a bool, - ///

                                    A value that indicates whether to continue running the statement after - /// the call times out. By default, the statement stops running when the call - /// times out.

                                    - /// - ///

                                    For DDL statements, we recommend continuing to run the statement after - /// the call times out. When a DDL statement terminates before it is finished - /// running, it can result in errors and possibly corrupted data structures.

                                    - ///
                                    - pub continue_after_timeout: &'a bool, - ///

                                    Options that control how the result set is returned.

                                    - pub result_set_options: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ExecuteStatementInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteStatementInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("secret_arn", &self.secret_arn); - formatter.field("sql", &self.sql); - formatter.field("database", &self.database); - formatter.field("schema", &self.schema); - formatter.field("parameters", &self.parameters); - formatter.field("transaction_id", &self.transaction_id); - formatter.field("include_result_metadata", &self.include_result_metadata); - formatter.field("continue_after_timeout", &self.continue_after_timeout); - formatter.field("result_set_options", &self.result_set_options); - formatter.finish() - } -} - -///

                                    The request parameters represent the input of a request to perform a rollback of a -/// transaction.

                                    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RollbackTransactionInputBody<'a> { - ///

                                    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

                                    - pub resource_arn: &'a std::option::Option, - ///

                                    The name or ARN of the secret that enables access to the DB cluster.

                                    - pub secret_arn: &'a std::option::Option, - ///

                                    The identifier of the transaction to roll back.

                                    - pub transaction_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RollbackTransactionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RollbackTransactionInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("secret_arn", &self.secret_arn); - formatter.field("transaction_id", &self.transaction_id); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a SQL statement over an array of -/// data.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchExecuteStatementOutputBody { - ///

                                    The execution results of each batch entry.

                                    - #[serde(rename = "updateResults")] - #[serde(default)] - pub update_results: std::option::Option>, -} -impl std::fmt::Debug for BatchExecuteStatementOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchExecuteStatementOutputBody"); - formatter.field("update_results", &self.update_results); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a request to start a SQL -/// transaction.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BeginTransactionOutputBody { - ///

                                    The transaction ID of the transaction started by the call.

                                    - #[serde(rename = "transactionId")] - #[serde(default)] - pub transaction_id: std::option::Option, -} -impl std::fmt::Debug for BeginTransactionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BeginTransactionOutputBody"); - formatter.field("transaction_id", &self.transaction_id); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a commit transaction request.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CommitTransactionOutputBody { - ///

                                    The status of the commit operation.

                                    - #[serde(rename = "transactionStatus")] - #[serde(default)] - pub transaction_status: std::option::Option, -} -impl std::fmt::Debug for CommitTransactionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CommitTransactionOutputBody"); - formatter.field("transaction_status", &self.transaction_status); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a request to run one or more SQL -/// statements.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteSqlOutputBody { - ///

                                    The results of the SQL statement or statements.

                                    - #[serde(rename = "sqlStatementResults")] - #[serde(default)] - pub sql_statement_results: std::option::Option>, -} -impl std::fmt::Debug for ExecuteSqlOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteSqlOutputBody"); - formatter.field("sql_statement_results", &self.sql_statement_results); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a request to run a SQL statement against -/// a database.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ExecuteStatementOutputBody { - ///

                                    The records returned by the SQL statement.

                                    - #[serde(rename = "records")] - #[serde(default)] - pub records: std::option::Option>>, - ///

                                    Metadata for the columns included in the results.

                                    - #[serde(rename = "columnMetadata")] - #[serde(default)] - pub column_metadata: std::option::Option>, - ///

                                    The number of records updated by the request.

                                    - #[serde(rename = "numberOfRecordsUpdated")] - #[serde(default)] - pub number_of_records_updated: i64, - ///

                                    Values for fields generated during the request.

                                    - /// - ///

                                    The generatedFields data isn't supported by Aurora PostgreSQL. - /// To get the values of generated fields, use the RETURNING clause. For - /// more information, see Returning Data From - /// Modified Rows in the PostgreSQL documentation.

                                    - ///
                                    - #[serde(rename = "generatedFields")] - #[serde(default)] - pub generated_fields: std::option::Option>, -} -impl std::fmt::Debug for ExecuteStatementOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExecuteStatementOutputBody"); - formatter.field("records", &self.records); - formatter.field("column_metadata", &self.column_metadata); - formatter.field("number_of_records_updated", &self.number_of_records_updated); - formatter.field("generated_fields", &self.generated_fields); - formatter.finish() - } -} - -///

                                    The response elements represent the output of a request to perform a rollback of a -/// transaction.

                                    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RollbackTransactionOutputBody { - ///

                                    The status of the rollback operation.

                                    - #[serde(rename = "transactionStatus")] - #[serde(default)] - pub transaction_status: std::option::Option, -} -impl std::fmt::Debug for RollbackTransactionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RollbackTransactionOutputBody"); - formatter.field("transaction_status", &self.transaction_status); - formatter.finish() - } -} diff --git a/sdk/route53/Cargo.toml b/sdk/route53/Cargo.toml index 07308774da21..09aee2fa3d6e 100644 --- a/sdk/route53/Cargo.toml +++ b/sdk/route53/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-route53" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

                                    Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service.

                                    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -26,9 +26,6 @@ version = "0.2" path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" [dependencies.smithy-xml] diff --git a/sdk/route53/src/client.rs b/sdk/route53/src/client.rs index 3c70d76fa612..37e78cbab4fa 100644 --- a/sdk/route53/src/client.rs +++ b/sdk/route53/src/client.rs @@ -331,7 +331,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AssociateVPCWithHostedZoneOutput, + crate::output::AssociateVpcWithHostedZoneOutput, smithy_http::result::SdkError, > where @@ -360,11 +360,11 @@ pub mod fluent_builders { self } ///

                                    A complex type that contains information about the VPC that you want to associate with a private hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.inner = self.inner.vpc(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.inner = self.inner.set_vpc(input); self } @@ -648,11 +648,11 @@ pub mod fluent_builders { ///

                                    You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, /// use AssociateVPCWithHostedZone /// after you create a hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.inner = self.inner.vpc(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.inner = self.inner.set_vpc(input); self } @@ -1186,7 +1186,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateVPCAssociationAuthorizationOutput, + crate::output::CreateVpcAssociationAuthorizationOutput, smithy_http::result::SdkError, > where @@ -1215,11 +1215,11 @@ pub mod fluent_builders { } ///

                                    A complex type that contains the VPC ID and region for the VPC that you want to authorize associating /// with your hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.inner = self.inner.vpc(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.inner = self.inner.set_vpc(input); self } @@ -1608,7 +1608,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteVPCAssociationAuthorizationOutput, + crate::output::DeleteVpcAssociationAuthorizationOutput, smithy_http::result::SdkError, > where @@ -1638,11 +1638,11 @@ pub mod fluent_builders { } ///

                                    When removing authorization to associate a VPC that was created by one AWS account with a hosted zone /// that was created with a different AWS account, a complex type that includes the ID and region of the VPC.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.inner = self.inner.vpc(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.inner = self.inner.set_vpc(input); self } @@ -1663,7 +1663,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DisableHostedZoneDNSSECOutput, + crate::output::DisableHostedZoneDnssecOutput, smithy_http::result::SdkError, > where @@ -1707,7 +1707,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DisassociateVPCFromHostedZoneOutput, + crate::output::DisassociateVpcFromHostedZoneOutput, smithy_http::result::SdkError, > where @@ -1736,11 +1736,11 @@ pub mod fluent_builders { } ///

                                    A complex type that contains information about the VPC that you're disassociating /// from the specified hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.inner = self.inner.vpc(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.inner = self.inner.set_vpc(input); self } @@ -1771,7 +1771,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::EnableHostedZoneDNSSECOutput, + crate::output::EnableHostedZoneDnssecOutput, smithy_http::result::SdkError, > where @@ -1961,7 +1961,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetDNSSECOutput, + crate::output::GetDnssecOutput, smithy_http::result::SdkError, > where @@ -2962,7 +2962,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListHostedZonesByVPCOutput, + crate::output::ListHostedZonesByVpcOutput, smithy_http::result::SdkError, > where @@ -3865,7 +3865,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListVPCAssociationAuthorizationsOutput, + crate::output::ListVpcAssociationAuthorizationsOutput, smithy_http::result::SdkError, > where @@ -3933,7 +3933,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::TestDNSAnswerOutput, + crate::output::TestDnsAnswerOutput, smithy_http::result::SdkError, > where diff --git a/sdk/route53/src/error.rs b/sdk/route53/src/error.rs index 173522762a96..75ca43ffaea4 100644 --- a/sdk/route53/src/error.rs +++ b/sdk/route53/src/error.rs @@ -10,7 +10,7 @@ pub struct ActivateKeySigningKeyError { pub enum ActivateKeySigningKeyErrorKind { ConcurrentModification(crate::error::ConcurrentModification), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), - InvalidKMSArn(crate::error::InvalidKMSArn), + InvalidKmsArn(crate::error::InvalidKmsArn), InvalidSigningStatus(crate::error::InvalidSigningStatus), NoSuchKeySigningKey(crate::error::NoSuchKeySigningKey), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -21,7 +21,7 @@ impl std::fmt::Display for ActivateKeySigningKeyError { match &self.kind { ActivateKeySigningKeyErrorKind::ConcurrentModification(_inner) => _inner.fmt(f), ActivateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), - ActivateKeySigningKeyErrorKind::InvalidKMSArn(_inner) => _inner.fmt(f), + ActivateKeySigningKeyErrorKind::InvalidKmsArn(_inner) => _inner.fmt(f), ActivateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => _inner.fmt(f), ActivateKeySigningKeyErrorKind::NoSuchKeySigningKey(_inner) => _inner.fmt(f), ActivateKeySigningKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -85,7 +85,7 @@ impl ActivateKeySigningKeyError { ) } pub fn is_invalid_kms_arn(&self) -> bool { - matches!(&self.kind, ActivateKeySigningKeyErrorKind::InvalidKMSArn(_)) + matches!(&self.kind, ActivateKeySigningKeyErrorKind::InvalidKmsArn(_)) } pub fn is_invalid_signing_status(&self) -> bool { matches!( @@ -105,7 +105,7 @@ impl std::error::Error for ActivateKeySigningKeyError { match &self.kind { ActivateKeySigningKeyErrorKind::ConcurrentModification(_inner) => Some(_inner), ActivateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), - ActivateKeySigningKeyErrorKind::InvalidKMSArn(_inner) => Some(_inner), + ActivateKeySigningKeyErrorKind::InvalidKmsArn(_inner) => Some(_inner), ActivateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => Some(_inner), ActivateKeySigningKeyErrorKind::NoSuchKeySigningKey(_inner) => Some(_inner), ActivateKeySigningKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -124,12 +124,12 @@ pub struct AssociateVPCWithHostedZoneError { pub enum AssociateVPCWithHostedZoneErrorKind { ConflictingDomainExists(crate::error::ConflictingDomainExists), InvalidInput(crate::error::InvalidInput), - InvalidVPCId(crate::error::InvalidVPCId), + InvalidVpcId(crate::error::InvalidVpcId), LimitsExceeded(crate::error::LimitsExceeded), NoSuchHostedZone(crate::error::NoSuchHostedZone), - NotAuthorizedError(crate::error::NotAuthorizedError), + NotAuthorizedException(crate::error::NotAuthorizedException), PriorRequestNotComplete(crate::error::PriorRequestNotComplete), - PublicZoneVPCAssociation(crate::error::PublicZoneVPCAssociation), + PublicZoneVpcAssociation(crate::error::PublicZoneVpcAssociation), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -138,12 +138,12 @@ impl std::fmt::Display for AssociateVPCWithHostedZoneError { match &self.kind { AssociateVPCWithHostedZoneErrorKind::ConflictingDomainExists(_inner) => _inner.fmt(f), AssociateVPCWithHostedZoneErrorKind::InvalidInput(_inner) => _inner.fmt(f), - AssociateVPCWithHostedZoneErrorKind::InvalidVPCId(_inner) => _inner.fmt(f), + AssociateVPCWithHostedZoneErrorKind::InvalidVpcId(_inner) => _inner.fmt(f), AssociateVPCWithHostedZoneErrorKind::LimitsExceeded(_inner) => _inner.fmt(f), AssociateVPCWithHostedZoneErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), - AssociateVPCWithHostedZoneErrorKind::NotAuthorizedError(_inner) => _inner.fmt(f), + AssociateVPCWithHostedZoneErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f), AssociateVPCWithHostedZoneErrorKind::PriorRequestNotComplete(_inner) => _inner.fmt(f), - AssociateVPCWithHostedZoneErrorKind::PublicZoneVPCAssociation(_inner) => _inner.fmt(f), + AssociateVPCWithHostedZoneErrorKind::PublicZoneVpcAssociation(_inner) => _inner.fmt(f), AssociateVPCWithHostedZoneErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -207,7 +207,7 @@ impl AssociateVPCWithHostedZoneError { pub fn is_invalid_vpc_id(&self) -> bool { matches!( &self.kind, - AssociateVPCWithHostedZoneErrorKind::InvalidVPCId(_) + AssociateVPCWithHostedZoneErrorKind::InvalidVpcId(_) ) } pub fn is_limits_exceeded(&self) -> bool { @@ -222,10 +222,10 @@ impl AssociateVPCWithHostedZoneError { AssociateVPCWithHostedZoneErrorKind::NoSuchHostedZone(_) ) } - pub fn is_not_authorized_error(&self) -> bool { + pub fn is_not_authorized_exception(&self) -> bool { matches!( &self.kind, - AssociateVPCWithHostedZoneErrorKind::NotAuthorizedError(_) + AssociateVPCWithHostedZoneErrorKind::NotAuthorizedException(_) ) } pub fn is_prior_request_not_complete(&self) -> bool { @@ -237,7 +237,7 @@ impl AssociateVPCWithHostedZoneError { pub fn is_public_zone_vpc_association(&self) -> bool { matches!( &self.kind, - AssociateVPCWithHostedZoneErrorKind::PublicZoneVPCAssociation(_) + AssociateVPCWithHostedZoneErrorKind::PublicZoneVpcAssociation(_) ) } } @@ -246,12 +246,12 @@ impl std::error::Error for AssociateVPCWithHostedZoneError { match &self.kind { AssociateVPCWithHostedZoneErrorKind::ConflictingDomainExists(_inner) => Some(_inner), AssociateVPCWithHostedZoneErrorKind::InvalidInput(_inner) => Some(_inner), - AssociateVPCWithHostedZoneErrorKind::InvalidVPCId(_inner) => Some(_inner), + AssociateVPCWithHostedZoneErrorKind::InvalidVpcId(_inner) => Some(_inner), AssociateVPCWithHostedZoneErrorKind::LimitsExceeded(_inner) => Some(_inner), AssociateVPCWithHostedZoneErrorKind::NoSuchHostedZone(_inner) => Some(_inner), - AssociateVPCWithHostedZoneErrorKind::NotAuthorizedError(_inner) => Some(_inner), + AssociateVPCWithHostedZoneErrorKind::NotAuthorizedException(_inner) => Some(_inner), AssociateVPCWithHostedZoneErrorKind::PriorRequestNotComplete(_inner) => Some(_inner), - AssociateVPCWithHostedZoneErrorKind::PublicZoneVPCAssociation(_inner) => Some(_inner), + AssociateVPCWithHostedZoneErrorKind::PublicZoneVpcAssociation(_inner) => Some(_inner), AssociateVPCWithHostedZoneErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -387,7 +387,7 @@ pub enum ChangeTagsForResourceErrorKind { NoSuchHealthCheck(crate::error::NoSuchHealthCheck), NoSuchHostedZone(crate::error::NoSuchHostedZone), PriorRequestNotComplete(crate::error::PriorRequestNotComplete), - ThrottlingError(crate::error::ThrottlingError), + ThrottlingException(crate::error::ThrottlingException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -398,7 +398,7 @@ impl std::fmt::Display for ChangeTagsForResourceError { ChangeTagsForResourceErrorKind::NoSuchHealthCheck(_inner) => _inner.fmt(f), ChangeTagsForResourceErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), ChangeTagsForResourceErrorKind::PriorRequestNotComplete(_inner) => _inner.fmt(f), - ChangeTagsForResourceErrorKind::ThrottlingError(_inner) => _inner.fmt(f), + ChangeTagsForResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f), ChangeTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -468,10 +468,10 @@ impl ChangeTagsForResourceError { ChangeTagsForResourceErrorKind::PriorRequestNotComplete(_) ) } - pub fn is_throttling_error(&self) -> bool { + pub fn is_throttling_exception(&self) -> bool { matches!( &self.kind, - ChangeTagsForResourceErrorKind::ThrottlingError(_) + ChangeTagsForResourceErrorKind::ThrottlingException(_) ) } } @@ -482,7 +482,7 @@ impl std::error::Error for ChangeTagsForResourceError { ChangeTagsForResourceErrorKind::NoSuchHealthCheck(_inner) => Some(_inner), ChangeTagsForResourceErrorKind::NoSuchHostedZone(_inner) => Some(_inner), ChangeTagsForResourceErrorKind::PriorRequestNotComplete(_inner) => Some(_inner), - ChangeTagsForResourceErrorKind::ThrottlingError(_inner) => Some(_inner), + ChangeTagsForResourceErrorKind::ThrottlingException(_inner) => Some(_inner), ChangeTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -599,7 +599,7 @@ pub enum CreateHostedZoneErrorKind { HostedZoneAlreadyExists(crate::error::HostedZoneAlreadyExists), InvalidDomainName(crate::error::InvalidDomainName), InvalidInput(crate::error::InvalidInput), - InvalidVPCId(crate::error::InvalidVPCId), + InvalidVpcId(crate::error::InvalidVpcId), NoSuchDelegationSet(crate::error::NoSuchDelegationSet), TooManyHostedZones(crate::error::TooManyHostedZones), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -614,7 +614,7 @@ impl std::fmt::Display for CreateHostedZoneError { CreateHostedZoneErrorKind::HostedZoneAlreadyExists(_inner) => _inner.fmt(f), CreateHostedZoneErrorKind::InvalidDomainName(_inner) => _inner.fmt(f), CreateHostedZoneErrorKind::InvalidInput(_inner) => _inner.fmt(f), - CreateHostedZoneErrorKind::InvalidVPCId(_inner) => _inner.fmt(f), + CreateHostedZoneErrorKind::InvalidVpcId(_inner) => _inner.fmt(f), CreateHostedZoneErrorKind::NoSuchDelegationSet(_inner) => _inner.fmt(f), CreateHostedZoneErrorKind::TooManyHostedZones(_inner) => _inner.fmt(f), CreateHostedZoneErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -696,7 +696,7 @@ impl CreateHostedZoneError { matches!(&self.kind, CreateHostedZoneErrorKind::InvalidInput(_)) } pub fn is_invalid_vpc_id(&self) -> bool { - matches!(&self.kind, CreateHostedZoneErrorKind::InvalidVPCId(_)) + matches!(&self.kind, CreateHostedZoneErrorKind::InvalidVpcId(_)) } pub fn is_no_such_delegation_set(&self) -> bool { matches!( @@ -717,7 +717,7 @@ impl std::error::Error for CreateHostedZoneError { CreateHostedZoneErrorKind::HostedZoneAlreadyExists(_inner) => Some(_inner), CreateHostedZoneErrorKind::InvalidDomainName(_inner) => Some(_inner), CreateHostedZoneErrorKind::InvalidInput(_inner) => Some(_inner), - CreateHostedZoneErrorKind::InvalidVPCId(_inner) => Some(_inner), + CreateHostedZoneErrorKind::InvalidVpcId(_inner) => Some(_inner), CreateHostedZoneErrorKind::NoSuchDelegationSet(_inner) => Some(_inner), CreateHostedZoneErrorKind::TooManyHostedZones(_inner) => Some(_inner), CreateHostedZoneErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -739,7 +739,7 @@ pub enum CreateKeySigningKeyErrorKind { InvalidInput(crate::error::InvalidInput), InvalidKeySigningKeyName(crate::error::InvalidKeySigningKeyName), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), - InvalidKMSArn(crate::error::InvalidKMSArn), + InvalidKmsArn(crate::error::InvalidKmsArn), InvalidSigningStatus(crate::error::InvalidSigningStatus), KeySigningKeyAlreadyExists(crate::error::KeySigningKeyAlreadyExists), NoSuchHostedZone(crate::error::NoSuchHostedZone), @@ -755,7 +755,7 @@ impl std::fmt::Display for CreateKeySigningKeyError { CreateKeySigningKeyErrorKind::InvalidInput(_inner) => _inner.fmt(f), CreateKeySigningKeyErrorKind::InvalidKeySigningKeyName(_inner) => _inner.fmt(f), CreateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), - CreateKeySigningKeyErrorKind::InvalidKMSArn(_inner) => _inner.fmt(f), + CreateKeySigningKeyErrorKind::InvalidKmsArn(_inner) => _inner.fmt(f), CreateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => _inner.fmt(f), CreateKeySigningKeyErrorKind::KeySigningKeyAlreadyExists(_inner) => _inner.fmt(f), CreateKeySigningKeyErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), @@ -833,7 +833,7 @@ impl CreateKeySigningKeyError { ) } pub fn is_invalid_kms_arn(&self) -> bool { - matches!(&self.kind, CreateKeySigningKeyErrorKind::InvalidKMSArn(_)) + matches!(&self.kind, CreateKeySigningKeyErrorKind::InvalidKmsArn(_)) } pub fn is_invalid_signing_status(&self) -> bool { matches!( @@ -868,7 +868,7 @@ impl std::error::Error for CreateKeySigningKeyError { CreateKeySigningKeyErrorKind::InvalidInput(_inner) => Some(_inner), CreateKeySigningKeyErrorKind::InvalidKeySigningKeyName(_inner) => Some(_inner), CreateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), - CreateKeySigningKeyErrorKind::InvalidKMSArn(_inner) => Some(_inner), + CreateKeySigningKeyErrorKind::InvalidKmsArn(_inner) => Some(_inner), CreateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => Some(_inner), CreateKeySigningKeyErrorKind::KeySigningKeyAlreadyExists(_inner) => Some(_inner), CreateKeySigningKeyErrorKind::NoSuchHostedZone(_inner) => Some(_inner), @@ -1529,9 +1529,9 @@ pub struct CreateVPCAssociationAuthorizationError { pub enum CreateVPCAssociationAuthorizationErrorKind { ConcurrentModification(crate::error::ConcurrentModification), InvalidInput(crate::error::InvalidInput), - InvalidVPCId(crate::error::InvalidVPCId), + InvalidVpcId(crate::error::InvalidVpcId), NoSuchHostedZone(crate::error::NoSuchHostedZone), - TooManyVPCAssociationAuthorizations(crate::error::TooManyVPCAssociationAuthorizations), + TooManyVpcAssociationAuthorizations(crate::error::TooManyVpcAssociationAuthorizations), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1542,9 +1542,9 @@ impl std::fmt::Display for CreateVPCAssociationAuthorizationError { _inner.fmt(f) } CreateVPCAssociationAuthorizationErrorKind::InvalidInput(_inner) => _inner.fmt(f), - CreateVPCAssociationAuthorizationErrorKind::InvalidVPCId(_inner) => _inner.fmt(f), + CreateVPCAssociationAuthorizationErrorKind::InvalidVpcId(_inner) => _inner.fmt(f), CreateVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), - CreateVPCAssociationAuthorizationErrorKind::TooManyVPCAssociationAuthorizations( + CreateVPCAssociationAuthorizationErrorKind::TooManyVpcAssociationAuthorizations( _inner, ) => _inner.fmt(f), CreateVPCAssociationAuthorizationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1613,7 +1613,7 @@ impl CreateVPCAssociationAuthorizationError { pub fn is_invalid_vpc_id(&self) -> bool { matches!( &self.kind, - CreateVPCAssociationAuthorizationErrorKind::InvalidVPCId(_) + CreateVPCAssociationAuthorizationErrorKind::InvalidVpcId(_) ) } pub fn is_no_such_hosted_zone(&self) -> bool { @@ -1625,7 +1625,7 @@ impl CreateVPCAssociationAuthorizationError { pub fn is_too_many_vpc_association_authorizations(&self) -> bool { matches!( &self.kind, - CreateVPCAssociationAuthorizationErrorKind::TooManyVPCAssociationAuthorizations(_) + CreateVPCAssociationAuthorizationErrorKind::TooManyVpcAssociationAuthorizations(_) ) } } @@ -1636,9 +1636,9 @@ impl std::error::Error for CreateVPCAssociationAuthorizationError { Some(_inner) } CreateVPCAssociationAuthorizationErrorKind::InvalidInput(_inner) => Some(_inner), - CreateVPCAssociationAuthorizationErrorKind::InvalidVPCId(_inner) => Some(_inner), + CreateVPCAssociationAuthorizationErrorKind::InvalidVpcId(_inner) => Some(_inner), CreateVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(_inner) => Some(_inner), - CreateVPCAssociationAuthorizationErrorKind::TooManyVPCAssociationAuthorizations( + CreateVPCAssociationAuthorizationErrorKind::TooManyVpcAssociationAuthorizations( _inner, ) => Some(_inner), CreateVPCAssociationAuthorizationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1658,7 +1658,7 @@ pub enum DeactivateKeySigningKeyErrorKind { ConcurrentModification(crate::error::ConcurrentModification), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), InvalidSigningStatus(crate::error::InvalidSigningStatus), - KeySigningKeyInParentDSRecord(crate::error::KeySigningKeyInParentDSRecord), + KeySigningKeyInParentDsRecord(crate::error::KeySigningKeyInParentDsRecord), KeySigningKeyInUse(crate::error::KeySigningKeyInUse), NoSuchKeySigningKey(crate::error::NoSuchKeySigningKey), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -1670,7 +1670,7 @@ impl std::fmt::Display for DeactivateKeySigningKeyError { DeactivateKeySigningKeyErrorKind::ConcurrentModification(_inner) => _inner.fmt(f), DeactivateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), DeactivateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => _inner.fmt(f), - DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDSRecord(_inner) => { + DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDsRecord(_inner) => { _inner.fmt(f) } DeactivateKeySigningKeyErrorKind::KeySigningKeyInUse(_inner) => _inner.fmt(f), @@ -1744,7 +1744,7 @@ impl DeactivateKeySigningKeyError { pub fn is_key_signing_key_in_parent_ds_record(&self) -> bool { matches!( &self.kind, - DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDSRecord(_) + DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDsRecord(_) ) } pub fn is_key_signing_key_in_use(&self) -> bool { @@ -1766,7 +1766,7 @@ impl std::error::Error for DeactivateKeySigningKeyError { DeactivateKeySigningKeyErrorKind::ConcurrentModification(_inner) => Some(_inner), DeactivateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), DeactivateKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => Some(_inner), - DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDSRecord(_inner) => Some(_inner), + DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDsRecord(_inner) => Some(_inner), DeactivateKeySigningKeyErrorKind::KeySigningKeyInUse(_inner) => Some(_inner), DeactivateKeySigningKeyErrorKind::NoSuchKeySigningKey(_inner) => Some(_inner), DeactivateKeySigningKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -1980,7 +1980,7 @@ pub struct DeleteKeySigningKeyError { pub enum DeleteKeySigningKeyErrorKind { ConcurrentModification(crate::error::ConcurrentModification), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), - InvalidKMSArn(crate::error::InvalidKMSArn), + InvalidKmsArn(crate::error::InvalidKmsArn), InvalidSigningStatus(crate::error::InvalidSigningStatus), NoSuchKeySigningKey(crate::error::NoSuchKeySigningKey), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -1991,7 +1991,7 @@ impl std::fmt::Display for DeleteKeySigningKeyError { match &self.kind { DeleteKeySigningKeyErrorKind::ConcurrentModification(_inner) => _inner.fmt(f), DeleteKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), - DeleteKeySigningKeyErrorKind::InvalidKMSArn(_inner) => _inner.fmt(f), + DeleteKeySigningKeyErrorKind::InvalidKmsArn(_inner) => _inner.fmt(f), DeleteKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => _inner.fmt(f), DeleteKeySigningKeyErrorKind::NoSuchKeySigningKey(_inner) => _inner.fmt(f), DeleteKeySigningKeyErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2055,7 +2055,7 @@ impl DeleteKeySigningKeyError { ) } pub fn is_invalid_kms_arn(&self) -> bool { - matches!(&self.kind, DeleteKeySigningKeyErrorKind::InvalidKMSArn(_)) + matches!(&self.kind, DeleteKeySigningKeyErrorKind::InvalidKmsArn(_)) } pub fn is_invalid_signing_status(&self) -> bool { matches!( @@ -2075,7 +2075,7 @@ impl std::error::Error for DeleteKeySigningKeyError { match &self.kind { DeleteKeySigningKeyErrorKind::ConcurrentModification(_inner) => Some(_inner), DeleteKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), - DeleteKeySigningKeyErrorKind::InvalidKMSArn(_inner) => Some(_inner), + DeleteKeySigningKeyErrorKind::InvalidKmsArn(_inner) => Some(_inner), DeleteKeySigningKeyErrorKind::InvalidSigningStatus(_inner) => Some(_inner), DeleteKeySigningKeyErrorKind::NoSuchKeySigningKey(_inner) => Some(_inner), DeleteKeySigningKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2509,9 +2509,9 @@ pub struct DeleteVPCAssociationAuthorizationError { pub enum DeleteVPCAssociationAuthorizationErrorKind { ConcurrentModification(crate::error::ConcurrentModification), InvalidInput(crate::error::InvalidInput), - InvalidVPCId(crate::error::InvalidVPCId), + InvalidVpcId(crate::error::InvalidVpcId), NoSuchHostedZone(crate::error::NoSuchHostedZone), - VPCAssociationAuthorizationNotFound(crate::error::VPCAssociationAuthorizationNotFound), + VpcAssociationAuthorizationNotFound(crate::error::VpcAssociationAuthorizationNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2522,9 +2522,9 @@ impl std::fmt::Display for DeleteVPCAssociationAuthorizationError { _inner.fmt(f) } DeleteVPCAssociationAuthorizationErrorKind::InvalidInput(_inner) => _inner.fmt(f), - DeleteVPCAssociationAuthorizationErrorKind::InvalidVPCId(_inner) => _inner.fmt(f), + DeleteVPCAssociationAuthorizationErrorKind::InvalidVpcId(_inner) => _inner.fmt(f), DeleteVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), - DeleteVPCAssociationAuthorizationErrorKind::VPCAssociationAuthorizationNotFound( + DeleteVPCAssociationAuthorizationErrorKind::VpcAssociationAuthorizationNotFound( _inner, ) => _inner.fmt(f), DeleteVPCAssociationAuthorizationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2593,7 +2593,7 @@ impl DeleteVPCAssociationAuthorizationError { pub fn is_invalid_vpc_id(&self) -> bool { matches!( &self.kind, - DeleteVPCAssociationAuthorizationErrorKind::InvalidVPCId(_) + DeleteVPCAssociationAuthorizationErrorKind::InvalidVpcId(_) ) } pub fn is_no_such_hosted_zone(&self) -> bool { @@ -2605,7 +2605,7 @@ impl DeleteVPCAssociationAuthorizationError { pub fn is_vpc_association_authorization_not_found(&self) -> bool { matches!( &self.kind, - DeleteVPCAssociationAuthorizationErrorKind::VPCAssociationAuthorizationNotFound(_) + DeleteVPCAssociationAuthorizationErrorKind::VpcAssociationAuthorizationNotFound(_) ) } } @@ -2616,9 +2616,9 @@ impl std::error::Error for DeleteVPCAssociationAuthorizationError { Some(_inner) } DeleteVPCAssociationAuthorizationErrorKind::InvalidInput(_inner) => Some(_inner), - DeleteVPCAssociationAuthorizationErrorKind::InvalidVPCId(_inner) => Some(_inner), + DeleteVPCAssociationAuthorizationErrorKind::InvalidVpcId(_inner) => Some(_inner), DeleteVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(_inner) => Some(_inner), - DeleteVPCAssociationAuthorizationErrorKind::VPCAssociationAuthorizationNotFound( + DeleteVPCAssociationAuthorizationErrorKind::VpcAssociationAuthorizationNotFound( _inner, ) => Some(_inner), DeleteVPCAssociationAuthorizationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -2636,11 +2636,11 @@ pub struct DisableHostedZoneDNSSECError { #[derive(std::fmt::Debug)] pub enum DisableHostedZoneDNSSECErrorKind { ConcurrentModification(crate::error::ConcurrentModification), - DNSSECNotFound(crate::error::DNSSECNotFound), + DnssecNotFound(crate::error::DnssecNotFound), InvalidArgument(crate::error::InvalidArgument), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), - InvalidKMSArn(crate::error::InvalidKMSArn), - KeySigningKeyInParentDSRecord(crate::error::KeySigningKeyInParentDSRecord), + InvalidKmsArn(crate::error::InvalidKmsArn), + KeySigningKeyInParentDsRecord(crate::error::KeySigningKeyInParentDsRecord), NoSuchHostedZone(crate::error::NoSuchHostedZone), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2649,11 +2649,11 @@ impl std::fmt::Display for DisableHostedZoneDNSSECError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DisableHostedZoneDNSSECErrorKind::ConcurrentModification(_inner) => _inner.fmt(f), - DisableHostedZoneDNSSECErrorKind::DNSSECNotFound(_inner) => _inner.fmt(f), + DisableHostedZoneDNSSECErrorKind::DnssecNotFound(_inner) => _inner.fmt(f), DisableHostedZoneDNSSECErrorKind::InvalidArgument(_inner) => _inner.fmt(f), DisableHostedZoneDNSSECErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), - DisableHostedZoneDNSSECErrorKind::InvalidKMSArn(_inner) => _inner.fmt(f), - DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDSRecord(_inner) => { + DisableHostedZoneDNSSECErrorKind::InvalidKmsArn(_inner) => _inner.fmt(f), + DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDsRecord(_inner) => { _inner.fmt(f) } DisableHostedZoneDNSSECErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), @@ -2714,7 +2714,7 @@ impl DisableHostedZoneDNSSECError { pub fn is_dnssec_not_found(&self) -> bool { matches!( &self.kind, - DisableHostedZoneDNSSECErrorKind::DNSSECNotFound(_) + DisableHostedZoneDNSSECErrorKind::DnssecNotFound(_) ) } pub fn is_invalid_argument(&self) -> bool { @@ -2732,13 +2732,13 @@ impl DisableHostedZoneDNSSECError { pub fn is_invalid_kms_arn(&self) -> bool { matches!( &self.kind, - DisableHostedZoneDNSSECErrorKind::InvalidKMSArn(_) + DisableHostedZoneDNSSECErrorKind::InvalidKmsArn(_) ) } pub fn is_key_signing_key_in_parent_ds_record(&self) -> bool { matches!( &self.kind, - DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDSRecord(_) + DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDsRecord(_) ) } pub fn is_no_such_hosted_zone(&self) -> bool { @@ -2752,11 +2752,11 @@ impl std::error::Error for DisableHostedZoneDNSSECError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DisableHostedZoneDNSSECErrorKind::ConcurrentModification(_inner) => Some(_inner), - DisableHostedZoneDNSSECErrorKind::DNSSECNotFound(_inner) => Some(_inner), + DisableHostedZoneDNSSECErrorKind::DnssecNotFound(_inner) => Some(_inner), DisableHostedZoneDNSSECErrorKind::InvalidArgument(_inner) => Some(_inner), DisableHostedZoneDNSSECErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), - DisableHostedZoneDNSSECErrorKind::InvalidKMSArn(_inner) => Some(_inner), - DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDSRecord(_inner) => Some(_inner), + DisableHostedZoneDNSSECErrorKind::InvalidKmsArn(_inner) => Some(_inner), + DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDsRecord(_inner) => Some(_inner), DisableHostedZoneDNSSECErrorKind::NoSuchHostedZone(_inner) => Some(_inner), DisableHostedZoneDNSSECErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -2773,10 +2773,10 @@ pub struct DisassociateVPCFromHostedZoneError { #[derive(std::fmt::Debug)] pub enum DisassociateVPCFromHostedZoneErrorKind { InvalidInput(crate::error::InvalidInput), - InvalidVPCId(crate::error::InvalidVPCId), - LastVPCAssociation(crate::error::LastVPCAssociation), + InvalidVpcId(crate::error::InvalidVpcId), + LastVpcAssociation(crate::error::LastVpcAssociation), NoSuchHostedZone(crate::error::NoSuchHostedZone), - VPCAssociationNotFound(crate::error::VPCAssociationNotFound), + VpcAssociationNotFound(crate::error::VpcAssociationNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2784,10 +2784,10 @@ impl std::fmt::Display for DisassociateVPCFromHostedZoneError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DisassociateVPCFromHostedZoneErrorKind::InvalidInput(_inner) => _inner.fmt(f), - DisassociateVPCFromHostedZoneErrorKind::InvalidVPCId(_inner) => _inner.fmt(f), - DisassociateVPCFromHostedZoneErrorKind::LastVPCAssociation(_inner) => _inner.fmt(f), + DisassociateVPCFromHostedZoneErrorKind::InvalidVpcId(_inner) => _inner.fmt(f), + DisassociateVPCFromHostedZoneErrorKind::LastVpcAssociation(_inner) => _inner.fmt(f), DisassociateVPCFromHostedZoneErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), - DisassociateVPCFromHostedZoneErrorKind::VPCAssociationNotFound(_inner) => _inner.fmt(f), + DisassociateVPCFromHostedZoneErrorKind::VpcAssociationNotFound(_inner) => _inner.fmt(f), DisassociateVPCFromHostedZoneErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2845,13 +2845,13 @@ impl DisassociateVPCFromHostedZoneError { pub fn is_invalid_vpc_id(&self) -> bool { matches!( &self.kind, - DisassociateVPCFromHostedZoneErrorKind::InvalidVPCId(_) + DisassociateVPCFromHostedZoneErrorKind::InvalidVpcId(_) ) } pub fn is_last_vpc_association(&self) -> bool { matches!( &self.kind, - DisassociateVPCFromHostedZoneErrorKind::LastVPCAssociation(_) + DisassociateVPCFromHostedZoneErrorKind::LastVpcAssociation(_) ) } pub fn is_no_such_hosted_zone(&self) -> bool { @@ -2863,7 +2863,7 @@ impl DisassociateVPCFromHostedZoneError { pub fn is_vpc_association_not_found(&self) -> bool { matches!( &self.kind, - DisassociateVPCFromHostedZoneErrorKind::VPCAssociationNotFound(_) + DisassociateVPCFromHostedZoneErrorKind::VpcAssociationNotFound(_) ) } } @@ -2871,10 +2871,10 @@ impl std::error::Error for DisassociateVPCFromHostedZoneError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DisassociateVPCFromHostedZoneErrorKind::InvalidInput(_inner) => Some(_inner), - DisassociateVPCFromHostedZoneErrorKind::InvalidVPCId(_inner) => Some(_inner), - DisassociateVPCFromHostedZoneErrorKind::LastVPCAssociation(_inner) => Some(_inner), + DisassociateVPCFromHostedZoneErrorKind::InvalidVpcId(_inner) => Some(_inner), + DisassociateVPCFromHostedZoneErrorKind::LastVpcAssociation(_inner) => Some(_inner), DisassociateVPCFromHostedZoneErrorKind::NoSuchHostedZone(_inner) => Some(_inner), - DisassociateVPCFromHostedZoneErrorKind::VPCAssociationNotFound(_inner) => Some(_inner), + DisassociateVPCFromHostedZoneErrorKind::VpcAssociationNotFound(_inner) => Some(_inner), DisassociateVPCFromHostedZoneErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2890,11 +2890,11 @@ pub struct EnableHostedZoneDNSSECError { #[derive(std::fmt::Debug)] pub enum EnableHostedZoneDNSSECErrorKind { ConcurrentModification(crate::error::ConcurrentModification), - DNSSECNotFound(crate::error::DNSSECNotFound), + DnssecNotFound(crate::error::DnssecNotFound), HostedZonePartiallyDelegated(crate::error::HostedZonePartiallyDelegated), InvalidArgument(crate::error::InvalidArgument), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), - InvalidKMSArn(crate::error::InvalidKMSArn), + InvalidKmsArn(crate::error::InvalidKmsArn), KeySigningKeyWithActiveStatusNotFound(crate::error::KeySigningKeyWithActiveStatusNotFound), NoSuchHostedZone(crate::error::NoSuchHostedZone), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -2904,11 +2904,11 @@ impl std::fmt::Display for EnableHostedZoneDNSSECError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { EnableHostedZoneDNSSECErrorKind::ConcurrentModification(_inner) => _inner.fmt(f), - EnableHostedZoneDNSSECErrorKind::DNSSECNotFound(_inner) => _inner.fmt(f), + EnableHostedZoneDNSSECErrorKind::DnssecNotFound(_inner) => _inner.fmt(f), EnableHostedZoneDNSSECErrorKind::HostedZonePartiallyDelegated(_inner) => _inner.fmt(f), EnableHostedZoneDNSSECErrorKind::InvalidArgument(_inner) => _inner.fmt(f), EnableHostedZoneDNSSECErrorKind::InvalidKeySigningKeyStatus(_inner) => _inner.fmt(f), - EnableHostedZoneDNSSECErrorKind::InvalidKMSArn(_inner) => _inner.fmt(f), + EnableHostedZoneDNSSECErrorKind::InvalidKmsArn(_inner) => _inner.fmt(f), EnableHostedZoneDNSSECErrorKind::KeySigningKeyWithActiveStatusNotFound(_inner) => { _inner.fmt(f) } @@ -2970,7 +2970,7 @@ impl EnableHostedZoneDNSSECError { pub fn is_dnssec_not_found(&self) -> bool { matches!( &self.kind, - EnableHostedZoneDNSSECErrorKind::DNSSECNotFound(_) + EnableHostedZoneDNSSECErrorKind::DnssecNotFound(_) ) } pub fn is_hosted_zone_partially_delegated(&self) -> bool { @@ -2994,7 +2994,7 @@ impl EnableHostedZoneDNSSECError { pub fn is_invalid_kms_arn(&self) -> bool { matches!( &self.kind, - EnableHostedZoneDNSSECErrorKind::InvalidKMSArn(_) + EnableHostedZoneDNSSECErrorKind::InvalidKmsArn(_) ) } pub fn is_key_signing_key_with_active_status_not_found(&self) -> bool { @@ -3014,11 +3014,11 @@ impl std::error::Error for EnableHostedZoneDNSSECError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { EnableHostedZoneDNSSECErrorKind::ConcurrentModification(_inner) => Some(_inner), - EnableHostedZoneDNSSECErrorKind::DNSSECNotFound(_inner) => Some(_inner), + EnableHostedZoneDNSSECErrorKind::DnssecNotFound(_inner) => Some(_inner), EnableHostedZoneDNSSECErrorKind::HostedZonePartiallyDelegated(_inner) => Some(_inner), EnableHostedZoneDNSSECErrorKind::InvalidArgument(_inner) => Some(_inner), EnableHostedZoneDNSSECErrorKind::InvalidKeySigningKeyStatus(_inner) => Some(_inner), - EnableHostedZoneDNSSECErrorKind::InvalidKMSArn(_inner) => Some(_inner), + EnableHostedZoneDNSSECErrorKind::InvalidKmsArn(_inner) => Some(_inner), EnableHostedZoneDNSSECErrorKind::KeySigningKeyWithActiveStatusNotFound(_inner) => { Some(_inner) } @@ -5261,7 +5261,7 @@ pub enum ListTagsForResourceErrorKind { NoSuchHealthCheck(crate::error::NoSuchHealthCheck), NoSuchHostedZone(crate::error::NoSuchHostedZone), PriorRequestNotComplete(crate::error::PriorRequestNotComplete), - ThrottlingError(crate::error::ThrottlingError), + ThrottlingException(crate::error::ThrottlingException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -5272,7 +5272,7 @@ impl std::fmt::Display for ListTagsForResourceError { ListTagsForResourceErrorKind::NoSuchHealthCheck(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::PriorRequestNotComplete(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ThrottlingError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5342,8 +5342,11 @@ impl ListTagsForResourceError { ListTagsForResourceErrorKind::PriorRequestNotComplete(_) ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::ThrottlingException(_) + ) } } impl std::error::Error for ListTagsForResourceError { @@ -5353,7 +5356,7 @@ impl std::error::Error for ListTagsForResourceError { ListTagsForResourceErrorKind::NoSuchHealthCheck(_inner) => Some(_inner), ListTagsForResourceErrorKind::NoSuchHostedZone(_inner) => Some(_inner), ListTagsForResourceErrorKind::PriorRequestNotComplete(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ThrottlingError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ThrottlingException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5372,7 +5375,7 @@ pub enum ListTagsForResourcesErrorKind { NoSuchHealthCheck(crate::error::NoSuchHealthCheck), NoSuchHostedZone(crate::error::NoSuchHostedZone), PriorRequestNotComplete(crate::error::PriorRequestNotComplete), - ThrottlingError(crate::error::ThrottlingError), + ThrottlingException(crate::error::ThrottlingException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -5383,7 +5386,7 @@ impl std::fmt::Display for ListTagsForResourcesError { ListTagsForResourcesErrorKind::NoSuchHealthCheck(_inner) => _inner.fmt(f), ListTagsForResourcesErrorKind::NoSuchHostedZone(_inner) => _inner.fmt(f), ListTagsForResourcesErrorKind::PriorRequestNotComplete(_inner) => _inner.fmt(f), - ListTagsForResourcesErrorKind::ThrottlingError(_inner) => _inner.fmt(f), + ListTagsForResourcesErrorKind::ThrottlingException(_inner) => _inner.fmt(f), ListTagsForResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5453,10 +5456,10 @@ impl ListTagsForResourcesError { ListTagsForResourcesErrorKind::PriorRequestNotComplete(_) ) } - pub fn is_throttling_error(&self) -> bool { + pub fn is_throttling_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourcesErrorKind::ThrottlingError(_) + ListTagsForResourcesErrorKind::ThrottlingException(_) ) } } @@ -5467,7 +5470,7 @@ impl std::error::Error for ListTagsForResourcesError { ListTagsForResourcesErrorKind::NoSuchHealthCheck(_inner) => Some(_inner), ListTagsForResourcesErrorKind::NoSuchHostedZone(_inner) => Some(_inner), ListTagsForResourcesErrorKind::PriorRequestNotComplete(_inner) => Some(_inner), - ListTagsForResourcesErrorKind::ThrottlingError(_inner) => Some(_inner), + ListTagsForResourcesErrorKind::ThrottlingException(_inner) => Some(_inner), ListTagsForResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7171,34 +7174,34 @@ impl InvalidPaginationToken { ///

                                    The limit on the number of requests per second was exceeded.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ThrottlingError { +pub struct ThrottlingException { pub message: std::option::Option, } -impl std::fmt::Debug for ThrottlingError { +impl std::fmt::Debug for ThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ThrottlingError"); + let mut formatter = f.debug_struct("ThrottlingException"); formatter.field("message", &self.message); formatter.finish() } } -impl ThrottlingError { +impl ThrottlingException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ThrottlingError { +impl std::fmt::Display for ThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ThrottlingError [ThrottlingException]")?; + write!(f, "ThrottlingException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for ThrottlingError {} -/// See [`ThrottlingError`](crate::error::ThrottlingError) -pub mod throttling_error { - /// A builder for [`ThrottlingError`](crate::error::ThrottlingError) +impl std::error::Error for ThrottlingException {} +/// See [`ThrottlingException`](crate::error::ThrottlingException) +pub mod throttling_exception { + /// A builder for [`ThrottlingException`](crate::error::ThrottlingException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7213,18 +7216,18 @@ pub mod throttling_error { self.message = input; self } - /// Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError) - pub fn build(self) -> crate::error::ThrottlingError { - crate::error::ThrottlingError { + /// Consumes the builder and constructs a [`ThrottlingException`](crate::error::ThrottlingException) + pub fn build(self) -> crate::error::ThrottlingException { + crate::error::ThrottlingException { message: self.message, } } } } -impl ThrottlingError { - /// Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError) - pub fn builder() -> crate::error::throttling_error::Builder { - crate::error::throttling_error::Builder::default() +impl ThrottlingException { + /// Creates a new builder-style object to manufacture [`ThrottlingException`](crate::error::ThrottlingException) + pub fn builder() -> crate::error::throttling_exception::Builder { + crate::error::throttling_exception::Builder::default() } } @@ -7844,34 +7847,34 @@ impl KeySigningKeyWithActiveStatusNotFound { ///

                                    The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC signing.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidKMSArn { +pub struct InvalidKmsArn { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidKMSArn { +impl std::fmt::Debug for InvalidKmsArn { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidKMSArn"); + let mut formatter = f.debug_struct("InvalidKmsArn"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidKMSArn { +impl InvalidKmsArn { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidKMSArn { +impl std::fmt::Display for InvalidKmsArn { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidKMSArn")?; + write!(f, "InvalidKmsArn [InvalidKMSArn]")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for InvalidKMSArn {} -/// See [`InvalidKMSArn`](crate::error::InvalidKMSArn) +impl std::error::Error for InvalidKmsArn {} +/// See [`InvalidKmsArn`](crate::error::InvalidKmsArn) pub mod invalid_kms_arn { - /// A builder for [`InvalidKMSArn`](crate::error::InvalidKMSArn) + /// A builder for [`InvalidKmsArn`](crate::error::InvalidKmsArn) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7886,16 +7889,16 @@ pub mod invalid_kms_arn { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidKMSArn`](crate::error::InvalidKMSArn) - pub fn build(self) -> crate::error::InvalidKMSArn { - crate::error::InvalidKMSArn { + /// Consumes the builder and constructs a [`InvalidKmsArn`](crate::error::InvalidKmsArn) + pub fn build(self) -> crate::error::InvalidKmsArn { + crate::error::InvalidKmsArn { message: self.message, } } } } -impl InvalidKMSArn { - /// Creates a new builder-style object to manufacture [`InvalidKMSArn`](crate::error::InvalidKMSArn) +impl InvalidKmsArn { + /// Creates a new builder-style object to manufacture [`InvalidKmsArn`](crate::error::InvalidKmsArn) pub fn builder() -> crate::error::invalid_kms_arn::Builder { crate::error::invalid_kms_arn::Builder::default() } @@ -8024,34 +8027,34 @@ impl HostedZonePartiallyDelegated { ///

                                    The hosted zone doesn't have any DNSSEC resources.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DNSSECNotFound { +pub struct DnssecNotFound { pub message: std::option::Option, } -impl std::fmt::Debug for DNSSECNotFound { +impl std::fmt::Debug for DnssecNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DNSSECNotFound"); + let mut formatter = f.debug_struct("DnssecNotFound"); formatter.field("message", &self.message); formatter.finish() } } -impl DNSSECNotFound { +impl DnssecNotFound { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DNSSECNotFound { +impl std::fmt::Display for DnssecNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DNSSECNotFound")?; + write!(f, "DnssecNotFound [DNSSECNotFound]")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for DNSSECNotFound {} -/// See [`DNSSECNotFound`](crate::error::DNSSECNotFound) +impl std::error::Error for DnssecNotFound {} +/// See [`DnssecNotFound`](crate::error::DnssecNotFound) pub mod dnssec_not_found { - /// A builder for [`DNSSECNotFound`](crate::error::DNSSECNotFound) + /// A builder for [`DnssecNotFound`](crate::error::DnssecNotFound) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8066,16 +8069,16 @@ pub mod dnssec_not_found { self.message = input; self } - /// Consumes the builder and constructs a [`DNSSECNotFound`](crate::error::DNSSECNotFound) - pub fn build(self) -> crate::error::DNSSECNotFound { - crate::error::DNSSECNotFound { + /// Consumes the builder and constructs a [`DnssecNotFound`](crate::error::DnssecNotFound) + pub fn build(self) -> crate::error::DnssecNotFound { + crate::error::DnssecNotFound { message: self.message, } } } } -impl DNSSECNotFound { - /// Creates a new builder-style object to manufacture [`DNSSECNotFound`](crate::error::DNSSECNotFound) +impl DnssecNotFound { + /// Creates a new builder-style object to manufacture [`DnssecNotFound`](crate::error::DnssecNotFound) pub fn builder() -> crate::error::dnssec_not_found::Builder { crate::error::dnssec_not_found::Builder::default() } @@ -8084,35 +8087,35 @@ impl DNSSECNotFound { ///

                                    The specified VPC and hosted zone are not currently associated.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VPCAssociationNotFound { +pub struct VpcAssociationNotFound { ///

                                    The specified VPC or hosted zone weren't found.

                                    pub message: std::option::Option, } -impl std::fmt::Debug for VPCAssociationNotFound { +impl std::fmt::Debug for VpcAssociationNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VPCAssociationNotFound"); + let mut formatter = f.debug_struct("VpcAssociationNotFound"); formatter.field("message", &self.message); formatter.finish() } } -impl VPCAssociationNotFound { +impl VpcAssociationNotFound { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for VPCAssociationNotFound { +impl std::fmt::Display for VpcAssociationNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "VPCAssociationNotFound")?; + write!(f, "VpcAssociationNotFound [VPCAssociationNotFound]")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for VPCAssociationNotFound {} -/// See [`VPCAssociationNotFound`](crate::error::VPCAssociationNotFound) +impl std::error::Error for VpcAssociationNotFound {} +/// See [`VpcAssociationNotFound`](crate::error::VpcAssociationNotFound) pub mod vpc_association_not_found { - /// A builder for [`VPCAssociationNotFound`](crate::error::VPCAssociationNotFound) + /// A builder for [`VpcAssociationNotFound`](crate::error::VpcAssociationNotFound) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8128,16 +8131,16 @@ pub mod vpc_association_not_found { self.message = input; self } - /// Consumes the builder and constructs a [`VPCAssociationNotFound`](crate::error::VPCAssociationNotFound) - pub fn build(self) -> crate::error::VPCAssociationNotFound { - crate::error::VPCAssociationNotFound { + /// Consumes the builder and constructs a [`VpcAssociationNotFound`](crate::error::VpcAssociationNotFound) + pub fn build(self) -> crate::error::VpcAssociationNotFound { + crate::error::VpcAssociationNotFound { message: self.message, } } } } -impl VPCAssociationNotFound { - /// Creates a new builder-style object to manufacture [`VPCAssociationNotFound`](crate::error::VPCAssociationNotFound) +impl VpcAssociationNotFound { + /// Creates a new builder-style object to manufacture [`VpcAssociationNotFound`](crate::error::VpcAssociationNotFound) pub fn builder() -> crate::error::vpc_association_not_found::Builder { crate::error::vpc_association_not_found::Builder::default() } @@ -8147,35 +8150,35 @@ impl VPCAssociationNotFound { /// the hosted zone. Amazon Route 53 doesn't support disassociating the last VPC from a hosted zone.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct LastVPCAssociation { +pub struct LastVpcAssociation { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for LastVPCAssociation { +impl std::fmt::Debug for LastVpcAssociation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LastVPCAssociation"); + let mut formatter = f.debug_struct("LastVpcAssociation"); formatter.field("message", &self.message); formatter.finish() } } -impl LastVPCAssociation { +impl LastVpcAssociation { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LastVPCAssociation { +impl std::fmt::Display for LastVpcAssociation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LastVPCAssociation")?; + write!(f, "LastVpcAssociation [LastVPCAssociation]")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for LastVPCAssociation {} -/// See [`LastVPCAssociation`](crate::error::LastVPCAssociation) +impl std::error::Error for LastVpcAssociation {} +/// See [`LastVpcAssociation`](crate::error::LastVpcAssociation) pub mod last_vpc_association { - /// A builder for [`LastVPCAssociation`](crate::error::LastVPCAssociation) + /// A builder for [`LastVpcAssociation`](crate::error::LastVpcAssociation) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8191,16 +8194,16 @@ pub mod last_vpc_association { self.message = input; self } - /// Consumes the builder and constructs a [`LastVPCAssociation`](crate::error::LastVPCAssociation) - pub fn build(self) -> crate::error::LastVPCAssociation { - crate::error::LastVPCAssociation { + /// Consumes the builder and constructs a [`LastVpcAssociation`](crate::error::LastVpcAssociation) + pub fn build(self) -> crate::error::LastVpcAssociation { + crate::error::LastVpcAssociation { message: self.message, } } } } -impl LastVPCAssociation { - /// Creates a new builder-style object to manufacture [`LastVPCAssociation`](crate::error::LastVPCAssociation) +impl LastVpcAssociation { + /// Creates a new builder-style object to manufacture [`LastVpcAssociation`](crate::error::LastVpcAssociation) pub fn builder() -> crate::error::last_vpc_association::Builder { crate::error::last_vpc_association::Builder::default() } @@ -8209,35 +8212,35 @@ impl LastVPCAssociation { ///

                                    The VPC ID that you specified either isn't a valid ID or the current account is not authorized to access this VPC.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidVPCId { +pub struct InvalidVpcId { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for InvalidVPCId { +impl std::fmt::Debug for InvalidVpcId { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidVPCId"); + let mut formatter = f.debug_struct("InvalidVpcId"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidVPCId { +impl InvalidVpcId { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidVPCId { +impl std::fmt::Display for InvalidVpcId { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidVPCId")?; + write!(f, "InvalidVpcId [InvalidVPCId]")?; if let Some(inner_28) = &self.message { write!(f, ": {}", inner_28)?; } Ok(()) } } -impl std::error::Error for InvalidVPCId {} -/// See [`InvalidVPCId`](crate::error::InvalidVPCId) +impl std::error::Error for InvalidVpcId {} +/// See [`InvalidVpcId`](crate::error::InvalidVpcId) pub mod invalid_vpc_id { - /// A builder for [`InvalidVPCId`](crate::error::InvalidVPCId) + /// A builder for [`InvalidVpcId`](crate::error::InvalidVpcId) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8253,16 +8256,16 @@ pub mod invalid_vpc_id { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidVPCId`](crate::error::InvalidVPCId) - pub fn build(self) -> crate::error::InvalidVPCId { - crate::error::InvalidVPCId { + /// Consumes the builder and constructs a [`InvalidVpcId`](crate::error::InvalidVpcId) + pub fn build(self) -> crate::error::InvalidVpcId { + crate::error::InvalidVpcId { message: self.message, } } } } -impl InvalidVPCId { - /// Creates a new builder-style object to manufacture [`InvalidVPCId`](crate::error::InvalidVPCId) +impl InvalidVpcId { + /// Creates a new builder-style object to manufacture [`InvalidVpcId`](crate::error::InvalidVpcId) pub fn builder() -> crate::error::invalid_vpc_id::Builder { crate::error::invalid_vpc_id::Builder::default() } @@ -8271,34 +8274,37 @@ impl InvalidVPCId { ///

                                    The key-signing key (KSK) is specified in a parent DS record.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KeySigningKeyInParentDSRecord { +pub struct KeySigningKeyInParentDsRecord { pub message: std::option::Option, } -impl std::fmt::Debug for KeySigningKeyInParentDSRecord { +impl std::fmt::Debug for KeySigningKeyInParentDsRecord { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KeySigningKeyInParentDSRecord"); + let mut formatter = f.debug_struct("KeySigningKeyInParentDsRecord"); formatter.field("message", &self.message); formatter.finish() } } -impl KeySigningKeyInParentDSRecord { +impl KeySigningKeyInParentDsRecord { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KeySigningKeyInParentDSRecord { +impl std::fmt::Display for KeySigningKeyInParentDsRecord { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KeySigningKeyInParentDSRecord")?; + write!( + f, + "KeySigningKeyInParentDsRecord [KeySigningKeyInParentDSRecord]" + )?; if let Some(inner_29) = &self.message { write!(f, ": {}", inner_29)?; } Ok(()) } } -impl std::error::Error for KeySigningKeyInParentDSRecord {} -/// See [`KeySigningKeyInParentDSRecord`](crate::error::KeySigningKeyInParentDSRecord) +impl std::error::Error for KeySigningKeyInParentDsRecord {} +/// See [`KeySigningKeyInParentDsRecord`](crate::error::KeySigningKeyInParentDsRecord) pub mod key_signing_key_in_parent_ds_record { - /// A builder for [`KeySigningKeyInParentDSRecord`](crate::error::KeySigningKeyInParentDSRecord) + /// A builder for [`KeySigningKeyInParentDsRecord`](crate::error::KeySigningKeyInParentDsRecord) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8313,16 +8319,16 @@ pub mod key_signing_key_in_parent_ds_record { self.message = input; self } - /// Consumes the builder and constructs a [`KeySigningKeyInParentDSRecord`](crate::error::KeySigningKeyInParentDSRecord) - pub fn build(self) -> crate::error::KeySigningKeyInParentDSRecord { - crate::error::KeySigningKeyInParentDSRecord { + /// Consumes the builder and constructs a [`KeySigningKeyInParentDsRecord`](crate::error::KeySigningKeyInParentDsRecord) + pub fn build(self) -> crate::error::KeySigningKeyInParentDsRecord { + crate::error::KeySigningKeyInParentDsRecord { message: self.message, } } } } -impl KeySigningKeyInParentDSRecord { - /// Creates a new builder-style object to manufacture [`KeySigningKeyInParentDSRecord`](crate::error::KeySigningKeyInParentDSRecord) +impl KeySigningKeyInParentDsRecord { + /// Creates a new builder-style object to manufacture [`KeySigningKeyInParentDsRecord`](crate::error::KeySigningKeyInParentDsRecord) pub fn builder() -> crate::error::key_signing_key_in_parent_ds_record::Builder { crate::error::key_signing_key_in_parent_ds_record::Builder::default() } @@ -8331,35 +8337,38 @@ impl KeySigningKeyInParentDSRecord { ///

                                    The VPC that you specified is not authorized to be associated with the hosted zone.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VPCAssociationAuthorizationNotFound { +pub struct VpcAssociationAuthorizationNotFound { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for VPCAssociationAuthorizationNotFound { +impl std::fmt::Debug for VpcAssociationAuthorizationNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VPCAssociationAuthorizationNotFound"); + let mut formatter = f.debug_struct("VpcAssociationAuthorizationNotFound"); formatter.field("message", &self.message); formatter.finish() } } -impl VPCAssociationAuthorizationNotFound { +impl VpcAssociationAuthorizationNotFound { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for VPCAssociationAuthorizationNotFound { +impl std::fmt::Display for VpcAssociationAuthorizationNotFound { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "VPCAssociationAuthorizationNotFound")?; + write!( + f, + "VpcAssociationAuthorizationNotFound [VPCAssociationAuthorizationNotFound]" + )?; if let Some(inner_30) = &self.message { write!(f, ": {}", inner_30)?; } Ok(()) } } -impl std::error::Error for VPCAssociationAuthorizationNotFound {} -/// See [`VPCAssociationAuthorizationNotFound`](crate::error::VPCAssociationAuthorizationNotFound) +impl std::error::Error for VpcAssociationAuthorizationNotFound {} +/// See [`VpcAssociationAuthorizationNotFound`](crate::error::VpcAssociationAuthorizationNotFound) pub mod vpc_association_authorization_not_found { - /// A builder for [`VPCAssociationAuthorizationNotFound`](crate::error::VPCAssociationAuthorizationNotFound) + /// A builder for [`VpcAssociationAuthorizationNotFound`](crate::error::VpcAssociationAuthorizationNotFound) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8375,16 +8384,16 @@ pub mod vpc_association_authorization_not_found { self.message = input; self } - /// Consumes the builder and constructs a [`VPCAssociationAuthorizationNotFound`](crate::error::VPCAssociationAuthorizationNotFound) - pub fn build(self) -> crate::error::VPCAssociationAuthorizationNotFound { - crate::error::VPCAssociationAuthorizationNotFound { + /// Consumes the builder and constructs a [`VpcAssociationAuthorizationNotFound`](crate::error::VpcAssociationAuthorizationNotFound) + pub fn build(self) -> crate::error::VpcAssociationAuthorizationNotFound { + crate::error::VpcAssociationAuthorizationNotFound { message: self.message, } } } } -impl VPCAssociationAuthorizationNotFound { - /// Creates a new builder-style object to manufacture [`VPCAssociationAuthorizationNotFound`](crate::error::VPCAssociationAuthorizationNotFound) +impl VpcAssociationAuthorizationNotFound { + /// Creates a new builder-style object to manufacture [`VpcAssociationAuthorizationNotFound`](crate::error::VpcAssociationAuthorizationNotFound) pub fn builder() -> crate::error::vpc_association_authorization_not_found::Builder { crate::error::vpc_association_authorization_not_found::Builder::default() } @@ -8827,35 +8836,38 @@ impl KeySigningKeyInUse { /// ListVPCAssociationAuthorizations request.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyVPCAssociationAuthorizations { +pub struct TooManyVpcAssociationAuthorizations { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for TooManyVPCAssociationAuthorizations { +impl std::fmt::Debug for TooManyVpcAssociationAuthorizations { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyVPCAssociationAuthorizations"); + let mut formatter = f.debug_struct("TooManyVpcAssociationAuthorizations"); formatter.field("message", &self.message); formatter.finish() } } -impl TooManyVPCAssociationAuthorizations { +impl TooManyVpcAssociationAuthorizations { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyVPCAssociationAuthorizations { +impl std::fmt::Display for TooManyVpcAssociationAuthorizations { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyVPCAssociationAuthorizations")?; + write!( + f, + "TooManyVpcAssociationAuthorizations [TooManyVPCAssociationAuthorizations]" + )?; if let Some(inner_38) = &self.message { write!(f, ": {}", inner_38)?; } Ok(()) } } -impl std::error::Error for TooManyVPCAssociationAuthorizations {} -/// See [`TooManyVPCAssociationAuthorizations`](crate::error::TooManyVPCAssociationAuthorizations) +impl std::error::Error for TooManyVpcAssociationAuthorizations {} +/// See [`TooManyVpcAssociationAuthorizations`](crate::error::TooManyVpcAssociationAuthorizations) pub mod too_many_vpc_association_authorizations { - /// A builder for [`TooManyVPCAssociationAuthorizations`](crate::error::TooManyVPCAssociationAuthorizations) + /// A builder for [`TooManyVpcAssociationAuthorizations`](crate::error::TooManyVpcAssociationAuthorizations) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8871,16 +8883,16 @@ pub mod too_many_vpc_association_authorizations { self.message = input; self } - /// Consumes the builder and constructs a [`TooManyVPCAssociationAuthorizations`](crate::error::TooManyVPCAssociationAuthorizations) - pub fn build(self) -> crate::error::TooManyVPCAssociationAuthorizations { - crate::error::TooManyVPCAssociationAuthorizations { + /// Consumes the builder and constructs a [`TooManyVpcAssociationAuthorizations`](crate::error::TooManyVpcAssociationAuthorizations) + pub fn build(self) -> crate::error::TooManyVpcAssociationAuthorizations { + crate::error::TooManyVpcAssociationAuthorizations { message: self.message, } } } } -impl TooManyVPCAssociationAuthorizations { - /// Creates a new builder-style object to manufacture [`TooManyVPCAssociationAuthorizations`](crate::error::TooManyVPCAssociationAuthorizations) +impl TooManyVpcAssociationAuthorizations { + /// Creates a new builder-style object to manufacture [`TooManyVpcAssociationAuthorizations`](crate::error::TooManyVpcAssociationAuthorizations) pub fn builder() -> crate::error::too_many_vpc_association_authorizations::Builder { crate::error::too_many_vpc_association_authorizations::Builder::default() } @@ -10405,35 +10417,35 @@ impl InvalidChangeBatch { /// VPC with a public hosted zone.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PublicZoneVPCAssociation { +pub struct PublicZoneVpcAssociation { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for PublicZoneVPCAssociation { +impl std::fmt::Debug for PublicZoneVpcAssociation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublicZoneVPCAssociation"); + let mut formatter = f.debug_struct("PublicZoneVpcAssociation"); formatter.field("message", &self.message); formatter.finish() } } -impl PublicZoneVPCAssociation { +impl PublicZoneVpcAssociation { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PublicZoneVPCAssociation { +impl std::fmt::Display for PublicZoneVpcAssociation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PublicZoneVPCAssociation")?; + write!(f, "PublicZoneVpcAssociation [PublicZoneVPCAssociation]")?; if let Some(inner_62) = &self.message { write!(f, ": {}", inner_62)?; } Ok(()) } } -impl std::error::Error for PublicZoneVPCAssociation {} -/// See [`PublicZoneVPCAssociation`](crate::error::PublicZoneVPCAssociation) +impl std::error::Error for PublicZoneVpcAssociation {} +/// See [`PublicZoneVpcAssociation`](crate::error::PublicZoneVpcAssociation) pub mod public_zone_vpc_association { - /// A builder for [`PublicZoneVPCAssociation`](crate::error::PublicZoneVPCAssociation) + /// A builder for [`PublicZoneVpcAssociation`](crate::error::PublicZoneVpcAssociation) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10449,16 +10461,16 @@ pub mod public_zone_vpc_association { self.message = input; self } - /// Consumes the builder and constructs a [`PublicZoneVPCAssociation`](crate::error::PublicZoneVPCAssociation) - pub fn build(self) -> crate::error::PublicZoneVPCAssociation { - crate::error::PublicZoneVPCAssociation { + /// Consumes the builder and constructs a [`PublicZoneVpcAssociation`](crate::error::PublicZoneVpcAssociation) + pub fn build(self) -> crate::error::PublicZoneVpcAssociation { + crate::error::PublicZoneVpcAssociation { message: self.message, } } } } -impl PublicZoneVPCAssociation { - /// Creates a new builder-style object to manufacture [`PublicZoneVPCAssociation`](crate::error::PublicZoneVPCAssociation) +impl PublicZoneVpcAssociation { + /// Creates a new builder-style object to manufacture [`PublicZoneVpcAssociation`](crate::error::PublicZoneVpcAssociation) pub fn builder() -> crate::error::public_zone_vpc_association::Builder { crate::error::public_zone_vpc_association::Builder::default() } @@ -10467,35 +10479,35 @@ impl PublicZoneVPCAssociation { ///

                                    Associating the specified VPC with the specified hosted zone has not been authorized.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct NotAuthorizedError { +pub struct NotAuthorizedException { ///

                                    pub message: std::option::Option, } -impl std::fmt::Debug for NotAuthorizedError { +impl std::fmt::Debug for NotAuthorizedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotAuthorizedError"); + let mut formatter = f.debug_struct("NotAuthorizedException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotAuthorizedError { +impl NotAuthorizedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotAuthorizedError { +impl std::fmt::Display for NotAuthorizedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotAuthorizedError [NotAuthorizedException]")?; + write!(f, "NotAuthorizedException")?; if let Some(inner_63) = &self.message { write!(f, ": {}", inner_63)?; } Ok(()) } } -impl std::error::Error for NotAuthorizedError {} -/// See [`NotAuthorizedError`](crate::error::NotAuthorizedError) -pub mod not_authorized_error { - /// A builder for [`NotAuthorizedError`](crate::error::NotAuthorizedError) +impl std::error::Error for NotAuthorizedException {} +/// See [`NotAuthorizedException`](crate::error::NotAuthorizedException) +pub mod not_authorized_exception { + /// A builder for [`NotAuthorizedException`](crate::error::NotAuthorizedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10511,17 +10523,17 @@ pub mod not_authorized_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotAuthorizedError`](crate::error::NotAuthorizedError) - pub fn build(self) -> crate::error::NotAuthorizedError { - crate::error::NotAuthorizedError { + /// Consumes the builder and constructs a [`NotAuthorizedException`](crate::error::NotAuthorizedException) + pub fn build(self) -> crate::error::NotAuthorizedException { + crate::error::NotAuthorizedException { message: self.message, } } } } -impl NotAuthorizedError { - /// Creates a new builder-style object to manufacture [`NotAuthorizedError`](crate::error::NotAuthorizedError) - pub fn builder() -> crate::error::not_authorized_error::Builder { - crate::error::not_authorized_error::Builder::default() +impl NotAuthorizedException { + /// Creates a new builder-style object to manufacture [`NotAuthorizedException`](crate::error::NotAuthorizedException) + pub fn builder() -> crate::error::not_authorized_exception::Builder { + crate::error::not_authorized_exception::Builder::default() } } diff --git a/sdk/route53/src/error_meta.rs b/sdk/route53/src/error_meta.rs index 4dd983c9ea91..2bca904a146c 100644 --- a/sdk/route53/src/error_meta.rs +++ b/sdk/route53/src/error_meta.rs @@ -5,7 +5,7 @@ pub enum Error { ConcurrentModification(crate::error::ConcurrentModification), ConflictingDomainExists(crate::error::ConflictingDomainExists), ConflictingTypes(crate::error::ConflictingTypes), - DNSSECNotFound(crate::error::DNSSECNotFound), + DnssecNotFound(crate::error::DnssecNotFound), DelegationSetAlreadyCreated(crate::error::DelegationSetAlreadyCreated), DelegationSetAlreadyReusable(crate::error::DelegationSetAlreadyReusable), DelegationSetInUse(crate::error::DelegationSetInUse), @@ -27,18 +27,18 @@ pub enum Error { InvalidChangeBatch(crate::error::InvalidChangeBatch), InvalidDomainName(crate::error::InvalidDomainName), InvalidInput(crate::error::InvalidInput), - InvalidKMSArn(crate::error::InvalidKMSArn), + InvalidKmsArn(crate::error::InvalidKmsArn), InvalidKeySigningKeyName(crate::error::InvalidKeySigningKeyName), InvalidKeySigningKeyStatus(crate::error::InvalidKeySigningKeyStatus), InvalidPaginationToken(crate::error::InvalidPaginationToken), InvalidSigningStatus(crate::error::InvalidSigningStatus), InvalidTrafficPolicyDocument(crate::error::InvalidTrafficPolicyDocument), - InvalidVPCId(crate::error::InvalidVPCId), + InvalidVpcId(crate::error::InvalidVpcId), KeySigningKeyAlreadyExists(crate::error::KeySigningKeyAlreadyExists), - KeySigningKeyInParentDSRecord(crate::error::KeySigningKeyInParentDSRecord), + KeySigningKeyInParentDsRecord(crate::error::KeySigningKeyInParentDsRecord), KeySigningKeyInUse(crate::error::KeySigningKeyInUse), KeySigningKeyWithActiveStatusNotFound(crate::error::KeySigningKeyWithActiveStatusNotFound), - LastVPCAssociation(crate::error::LastVPCAssociation), + LastVpcAssociation(crate::error::LastVpcAssociation), LimitsExceeded(crate::error::LimitsExceeded), NoSuchChange(crate::error::NoSuchChange), NoSuchCloudWatchLogsLogGroup(crate::error::NoSuchCloudWatchLogsLogGroup), @@ -50,11 +50,11 @@ pub enum Error { NoSuchQueryLoggingConfig(crate::error::NoSuchQueryLoggingConfig), NoSuchTrafficPolicy(crate::error::NoSuchTrafficPolicy), NoSuchTrafficPolicyInstance(crate::error::NoSuchTrafficPolicyInstance), - NotAuthorizedError(crate::error::NotAuthorizedError), + NotAuthorizedException(crate::error::NotAuthorizedException), PriorRequestNotComplete(crate::error::PriorRequestNotComplete), - PublicZoneVPCAssociation(crate::error::PublicZoneVPCAssociation), + PublicZoneVpcAssociation(crate::error::PublicZoneVpcAssociation), QueryLoggingConfigAlreadyExists(crate::error::QueryLoggingConfigAlreadyExists), - ThrottlingError(crate::error::ThrottlingError), + ThrottlingException(crate::error::ThrottlingException), TooManyHealthChecks(crate::error::TooManyHealthChecks), TooManyHostedZones(crate::error::TooManyHostedZones), TooManyKeySigningKeys(crate::error::TooManyKeySigningKeys), @@ -63,12 +63,12 @@ pub enum Error { TooManyTrafficPolicyVersionsForCurrentPolicy( crate::error::TooManyTrafficPolicyVersionsForCurrentPolicy, ), - TooManyVPCAssociationAuthorizations(crate::error::TooManyVPCAssociationAuthorizations), + TooManyVpcAssociationAuthorizations(crate::error::TooManyVpcAssociationAuthorizations), TrafficPolicyAlreadyExists(crate::error::TrafficPolicyAlreadyExists), TrafficPolicyInUse(crate::error::TrafficPolicyInUse), TrafficPolicyInstanceAlreadyExists(crate::error::TrafficPolicyInstanceAlreadyExists), - VPCAssociationAuthorizationNotFound(crate::error::VPCAssociationAuthorizationNotFound), - VPCAssociationNotFound(crate::error::VPCAssociationNotFound), + VpcAssociationAuthorizationNotFound(crate::error::VpcAssociationAuthorizationNotFound), + VpcAssociationNotFound(crate::error::VpcAssociationNotFound), Unhandled(Box), } impl std::fmt::Display for Error { @@ -77,7 +77,7 @@ impl std::fmt::Display for Error { Error::ConcurrentModification(inner) => inner.fmt(f), Error::ConflictingDomainExists(inner) => inner.fmt(f), Error::ConflictingTypes(inner) => inner.fmt(f), - Error::DNSSECNotFound(inner) => inner.fmt(f), + Error::DnssecNotFound(inner) => inner.fmt(f), Error::DelegationSetAlreadyCreated(inner) => inner.fmt(f), Error::DelegationSetAlreadyReusable(inner) => inner.fmt(f), Error::DelegationSetInUse(inner) => inner.fmt(f), @@ -97,18 +97,18 @@ impl std::fmt::Display for Error { Error::InvalidChangeBatch(inner) => inner.fmt(f), Error::InvalidDomainName(inner) => inner.fmt(f), Error::InvalidInput(inner) => inner.fmt(f), - Error::InvalidKMSArn(inner) => inner.fmt(f), + Error::InvalidKmsArn(inner) => inner.fmt(f), Error::InvalidKeySigningKeyName(inner) => inner.fmt(f), Error::InvalidKeySigningKeyStatus(inner) => inner.fmt(f), Error::InvalidPaginationToken(inner) => inner.fmt(f), Error::InvalidSigningStatus(inner) => inner.fmt(f), Error::InvalidTrafficPolicyDocument(inner) => inner.fmt(f), - Error::InvalidVPCId(inner) => inner.fmt(f), + Error::InvalidVpcId(inner) => inner.fmt(f), Error::KeySigningKeyAlreadyExists(inner) => inner.fmt(f), - Error::KeySigningKeyInParentDSRecord(inner) => inner.fmt(f), + Error::KeySigningKeyInParentDsRecord(inner) => inner.fmt(f), Error::KeySigningKeyInUse(inner) => inner.fmt(f), Error::KeySigningKeyWithActiveStatusNotFound(inner) => inner.fmt(f), - Error::LastVPCAssociation(inner) => inner.fmt(f), + Error::LastVpcAssociation(inner) => inner.fmt(f), Error::LimitsExceeded(inner) => inner.fmt(f), Error::NoSuchChange(inner) => inner.fmt(f), Error::NoSuchCloudWatchLogsLogGroup(inner) => inner.fmt(f), @@ -120,23 +120,23 @@ impl std::fmt::Display for Error { Error::NoSuchQueryLoggingConfig(inner) => inner.fmt(f), Error::NoSuchTrafficPolicy(inner) => inner.fmt(f), Error::NoSuchTrafficPolicyInstance(inner) => inner.fmt(f), - Error::NotAuthorizedError(inner) => inner.fmt(f), + Error::NotAuthorizedException(inner) => inner.fmt(f), Error::PriorRequestNotComplete(inner) => inner.fmt(f), - Error::PublicZoneVPCAssociation(inner) => inner.fmt(f), + Error::PublicZoneVpcAssociation(inner) => inner.fmt(f), Error::QueryLoggingConfigAlreadyExists(inner) => inner.fmt(f), - Error::ThrottlingError(inner) => inner.fmt(f), + Error::ThrottlingException(inner) => inner.fmt(f), Error::TooManyHealthChecks(inner) => inner.fmt(f), Error::TooManyHostedZones(inner) => inner.fmt(f), Error::TooManyKeySigningKeys(inner) => inner.fmt(f), Error::TooManyTrafficPolicies(inner) => inner.fmt(f), Error::TooManyTrafficPolicyInstances(inner) => inner.fmt(f), Error::TooManyTrafficPolicyVersionsForCurrentPolicy(inner) => inner.fmt(f), - Error::TooManyVPCAssociationAuthorizations(inner) => inner.fmt(f), + Error::TooManyVpcAssociationAuthorizations(inner) => inner.fmt(f), Error::TrafficPolicyAlreadyExists(inner) => inner.fmt(f), Error::TrafficPolicyInUse(inner) => inner.fmt(f), Error::TrafficPolicyInstanceAlreadyExists(inner) => inner.fmt(f), - Error::VPCAssociationAuthorizationNotFound(inner) => inner.fmt(f), - Error::VPCAssociationNotFound(inner) => inner.fmt(f), + Error::VpcAssociationAuthorizationNotFound(inner) => inner.fmt(f), + Error::VpcAssociationNotFound(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -151,8 +151,8 @@ impl From { Error::InvalidKeySigningKeyStatus(inner) } - crate::error::ActivateKeySigningKeyErrorKind::InvalidKMSArn(inner) => { - Error::InvalidKMSArn(inner) + crate::error::ActivateKeySigningKeyErrorKind::InvalidKmsArn(inner) => { + Error::InvalidKmsArn(inner) } crate::error::ActivateKeySigningKeyErrorKind::InvalidSigningStatus(inner) => { Error::InvalidSigningStatus(inner) @@ -180,8 +180,8 @@ impl From { Error::InvalidInput(inner) } - crate::error::AssociateVPCWithHostedZoneErrorKind::InvalidVPCId(inner) => { - Error::InvalidVPCId(inner) + crate::error::AssociateVPCWithHostedZoneErrorKind::InvalidVpcId(inner) => { + Error::InvalidVpcId(inner) } crate::error::AssociateVPCWithHostedZoneErrorKind::LimitsExceeded(inner) => { Error::LimitsExceeded(inner) @@ -189,15 +189,15 @@ impl From { Error::NoSuchHostedZone(inner) } - crate::error::AssociateVPCWithHostedZoneErrorKind::NotAuthorizedError(inner) => { - Error::NotAuthorizedError(inner) - } + crate::error::AssociateVPCWithHostedZoneErrorKind::NotAuthorizedException( + inner, + ) => Error::NotAuthorizedException(inner), crate::error::AssociateVPCWithHostedZoneErrorKind::PriorRequestNotComplete( inner, ) => Error::PriorRequestNotComplete(inner), - crate::error::AssociateVPCWithHostedZoneErrorKind::PublicZoneVPCAssociation( + crate::error::AssociateVPCWithHostedZoneErrorKind::PublicZoneVpcAssociation( inner, - ) => Error::PublicZoneVPCAssociation(inner), + ) => Error::PublicZoneVpcAssociation(inner), crate::error::AssociateVPCWithHostedZoneErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -251,8 +251,8 @@ impl From { Error::PriorRequestNotComplete(inner) } - crate::error::ChangeTagsForResourceErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::ChangeTagsForResourceErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } crate::error::ChangeTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -305,8 +305,8 @@ impl From> fo crate::error::CreateHostedZoneErrorKind::InvalidInput(inner) => { Error::InvalidInput(inner) } - crate::error::CreateHostedZoneErrorKind::InvalidVPCId(inner) => { - Error::InvalidVPCId(inner) + crate::error::CreateHostedZoneErrorKind::InvalidVpcId(inner) => { + Error::InvalidVpcId(inner) } crate::error::CreateHostedZoneErrorKind::NoSuchDelegationSet(inner) => { Error::NoSuchDelegationSet(inner) @@ -341,8 +341,8 @@ impl From> crate::error::CreateKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(inner) => { Error::InvalidKeySigningKeyStatus(inner) } - crate::error::CreateKeySigningKeyErrorKind::InvalidKMSArn(inner) => { - Error::InvalidKMSArn(inner) + crate::error::CreateKeySigningKeyErrorKind::InvalidKmsArn(inner) => { + Error::InvalidKmsArn(inner) } crate::error::CreateKeySigningKeyErrorKind::InvalidSigningStatus(inner) => { Error::InvalidSigningStatus(inner) @@ -469,9 +469,9 @@ impl From match err.kind { crate::error::CreateVPCAssociationAuthorizationErrorKind::ConcurrentModification(inner) => Error::ConcurrentModification(inner), crate::error::CreateVPCAssociationAuthorizationErrorKind::InvalidInput(inner) => Error::InvalidInput(inner), - crate::error::CreateVPCAssociationAuthorizationErrorKind::InvalidVPCId(inner) => Error::InvalidVPCId(inner), + crate::error::CreateVPCAssociationAuthorizationErrorKind::InvalidVpcId(inner) => Error::InvalidVpcId(inner), crate::error::CreateVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(inner) => Error::NoSuchHostedZone(inner), - crate::error::CreateVPCAssociationAuthorizationErrorKind::TooManyVPCAssociationAuthorizations(inner) => Error::TooManyVPCAssociationAuthorizations(inner), + crate::error::CreateVPCAssociationAuthorizationErrorKind::TooManyVpcAssociationAuthorizations(inner) => Error::TooManyVpcAssociationAuthorizations(inner), crate::error::CreateVPCAssociationAuthorizationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -493,9 +493,9 @@ impl From { Error::InvalidSigningStatus(inner) } - crate::error::DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDSRecord( + crate::error::DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDsRecord( inner, - ) => Error::KeySigningKeyInParentDSRecord(inner), + ) => Error::KeySigningKeyInParentDsRecord(inner), crate::error::DeactivateKeySigningKeyErrorKind::KeySigningKeyInUse(inner) => { Error::KeySigningKeyInUse(inner) } @@ -568,8 +568,8 @@ impl From> crate::error::DeleteKeySigningKeyErrorKind::InvalidKeySigningKeyStatus(inner) => { Error::InvalidKeySigningKeyStatus(inner) } - crate::error::DeleteKeySigningKeyErrorKind::InvalidKMSArn(inner) => { - Error::InvalidKMSArn(inner) + crate::error::DeleteKeySigningKeyErrorKind::InvalidKmsArn(inner) => { + Error::InvalidKmsArn(inner) } crate::error::DeleteKeySigningKeyErrorKind::InvalidSigningStatus(inner) => { Error::InvalidSigningStatus(inner) @@ -691,9 +691,9 @@ impl From match err.kind { crate::error::DeleteVPCAssociationAuthorizationErrorKind::ConcurrentModification(inner) => Error::ConcurrentModification(inner), crate::error::DeleteVPCAssociationAuthorizationErrorKind::InvalidInput(inner) => Error::InvalidInput(inner), - crate::error::DeleteVPCAssociationAuthorizationErrorKind::InvalidVPCId(inner) => Error::InvalidVPCId(inner), + crate::error::DeleteVPCAssociationAuthorizationErrorKind::InvalidVpcId(inner) => Error::InvalidVpcId(inner), crate::error::DeleteVPCAssociationAuthorizationErrorKind::NoSuchHostedZone(inner) => Error::NoSuchHostedZone(inner), - crate::error::DeleteVPCAssociationAuthorizationErrorKind::VPCAssociationAuthorizationNotFound(inner) => Error::VPCAssociationAuthorizationNotFound(inner), + crate::error::DeleteVPCAssociationAuthorizationErrorKind::VpcAssociationAuthorizationNotFound(inner) => Error::VpcAssociationAuthorizationNotFound(inner), crate::error::DeleteVPCAssociationAuthorizationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -709,8 +709,8 @@ impl From { Error::ConcurrentModification(inner) } - crate::error::DisableHostedZoneDNSSECErrorKind::DNSSECNotFound(inner) => { - Error::DNSSECNotFound(inner) + crate::error::DisableHostedZoneDNSSECErrorKind::DnssecNotFound(inner) => { + Error::DnssecNotFound(inner) } crate::error::DisableHostedZoneDNSSECErrorKind::InvalidArgument(inner) => { Error::InvalidArgument(inner) @@ -718,12 +718,12 @@ impl From Error::InvalidKeySigningKeyStatus(inner), - crate::error::DisableHostedZoneDNSSECErrorKind::InvalidKMSArn(inner) => { - Error::InvalidKMSArn(inner) + crate::error::DisableHostedZoneDNSSECErrorKind::InvalidKmsArn(inner) => { + Error::InvalidKmsArn(inner) } - crate::error::DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDSRecord( + crate::error::DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDsRecord( inner, - ) => Error::KeySigningKeyInParentDSRecord(inner), + ) => Error::KeySigningKeyInParentDsRecord(inner), crate::error::DisableHostedZoneDNSSECErrorKind::NoSuchHostedZone(inner) => { Error::NoSuchHostedZone(inner) } @@ -746,18 +746,18 @@ impl From { Error::InvalidInput(inner) } - crate::error::DisassociateVPCFromHostedZoneErrorKind::InvalidVPCId(inner) => { - Error::InvalidVPCId(inner) + crate::error::DisassociateVPCFromHostedZoneErrorKind::InvalidVpcId(inner) => { + Error::InvalidVpcId(inner) } - crate::error::DisassociateVPCFromHostedZoneErrorKind::LastVPCAssociation(inner) => { - Error::LastVPCAssociation(inner) + crate::error::DisassociateVPCFromHostedZoneErrorKind::LastVpcAssociation(inner) => { + Error::LastVpcAssociation(inner) } crate::error::DisassociateVPCFromHostedZoneErrorKind::NoSuchHostedZone(inner) => { Error::NoSuchHostedZone(inner) } - crate::error::DisassociateVPCFromHostedZoneErrorKind::VPCAssociationNotFound( + crate::error::DisassociateVPCFromHostedZoneErrorKind::VpcAssociationNotFound( inner, - ) => Error::VPCAssociationNotFound(inner), + ) => Error::VpcAssociationNotFound(inner), crate::error::DisassociateVPCFromHostedZoneErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -771,11 +771,11 @@ impl From match err.kind { crate::error::EnableHostedZoneDNSSECErrorKind::ConcurrentModification(inner) => Error::ConcurrentModification(inner), - crate::error::EnableHostedZoneDNSSECErrorKind::DNSSECNotFound(inner) => Error::DNSSECNotFound(inner), + crate::error::EnableHostedZoneDNSSECErrorKind::DnssecNotFound(inner) => Error::DnssecNotFound(inner), crate::error::EnableHostedZoneDNSSECErrorKind::HostedZonePartiallyDelegated(inner) => Error::HostedZonePartiallyDelegated(inner), crate::error::EnableHostedZoneDNSSECErrorKind::InvalidArgument(inner) => Error::InvalidArgument(inner), crate::error::EnableHostedZoneDNSSECErrorKind::InvalidKeySigningKeyStatus(inner) => Error::InvalidKeySigningKeyStatus(inner), - crate::error::EnableHostedZoneDNSSECErrorKind::InvalidKMSArn(inner) => Error::InvalidKMSArn(inner), + crate::error::EnableHostedZoneDNSSECErrorKind::InvalidKmsArn(inner) => Error::InvalidKmsArn(inner), crate::error::EnableHostedZoneDNSSECErrorKind::KeySigningKeyWithActiveStatusNotFound(inner) => Error::KeySigningKeyWithActiveStatusNotFound(inner), crate::error::EnableHostedZoneDNSSECErrorKind::NoSuchHostedZone(inner) => Error::NoSuchHostedZone(inner), crate::error::EnableHostedZoneDNSSECErrorKind::Unhandled(inner) => Error::Unhandled(inner), @@ -1255,8 +1255,8 @@ impl From> crate::error::ListTagsForResourceErrorKind::PriorRequestNotComplete(inner) => { Error::PriorRequestNotComplete(inner) } - crate::error::ListTagsForResourceErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::ListTagsForResourceErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1282,8 +1282,8 @@ impl From crate::error::ListTagsForResourcesErrorKind::PriorRequestNotComplete(inner) => { Error::PriorRequestNotComplete(inner) } - crate::error::ListTagsForResourcesErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::ListTagsForResourcesErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } crate::error::ListTagsForResourcesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/route53/src/http_serde.rs b/sdk/route53/src/http_serde.rs index 6340b0f7762a..964ac344ffdb 100644 --- a/sdk/route53/src/http_serde.rs +++ b/sdk/route53/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_header_create_health_check_location( +pub fn deser_header_create_health_check_create_health_check_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -7,7 +7,7 @@ pub fn deser_header_create_health_check_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_hosted_zone_location( +pub fn deser_header_create_hosted_zone_create_hosted_zone_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -15,7 +15,7 @@ pub fn deser_header_create_hosted_zone_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_key_signing_key_location( +pub fn deser_header_create_key_signing_key_create_key_signing_key_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -23,7 +23,7 @@ pub fn deser_header_create_key_signing_key_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_query_logging_config_location( +pub fn deser_header_create_query_logging_config_create_query_logging_config_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -31,7 +31,7 @@ pub fn deser_header_create_query_logging_config_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_reusable_delegation_set_location( +pub fn deser_header_create_reusable_delegation_set_create_reusable_delegation_set_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -39,7 +39,7 @@ pub fn deser_header_create_reusable_delegation_set_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_traffic_policy_location( +pub fn deser_header_create_traffic_policy_create_traffic_policy_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -47,7 +47,7 @@ pub fn deser_header_create_traffic_policy_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_traffic_policy_instance_location( +pub fn deser_header_create_traffic_policy_instance_create_traffic_policy_instance_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -55,7 +55,7 @@ pub fn deser_header_create_traffic_policy_instance_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_traffic_policy_version_location( +pub fn deser_header_create_traffic_policy_version_create_traffic_policy_version_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { diff --git a/sdk/route53/src/input.rs b/sdk/route53/src/input.rs index 40d186fe1186..5629029ec391 100644 --- a/sdk/route53/src/input.rs +++ b/sdk/route53/src/input.rs @@ -40,8 +40,8 @@ pub mod activate_key_signing_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::ActivateKeySigningKeyInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), - name: self.name.unwrap_or_default(), + hosted_zone_id: self.hosted_zone_id, + name: self.name, }) } } @@ -106,14 +106,49 @@ impl ActivateKeySigningKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false), - Name = smithy_http::label::fmt_string(&self.name, false) + HostedZoneId = hosted_zone_id, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -121,7 +156,7 @@ impl ActivateKeySigningKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -147,14 +182,14 @@ impl ActivateKeySigningKeyInput { } } -/// See [`AssociateVPCWithHostedZoneInput`](crate::input::AssociateVPCWithHostedZoneInput) +/// See [`AssociateVpcWithHostedZoneInput`](crate::input::AssociateVpcWithHostedZoneInput) pub mod associate_vpc_with_hosted_zone_input { - /// A builder for [`AssociateVPCWithHostedZoneInput`](crate::input::AssociateVPCWithHostedZoneInput) + /// A builder for [`AssociateVpcWithHostedZoneInput`](crate::input::AssociateVpcWithHostedZoneInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, pub(crate) comment: std::option::Option, } impl Builder { @@ -172,11 +207,11 @@ pub mod associate_vpc_with_hosted_zone_input { self } ///

                                    A complex type that contains information about the VPC that you want to associate with a private hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } @@ -190,15 +225,15 @@ pub mod associate_vpc_with_hosted_zone_input { self.comment = input; self } - /// Consumes the builder and constructs a [`AssociateVPCWithHostedZoneInput`](crate::input::AssociateVPCWithHostedZoneInput) + /// Consumes the builder and constructs a [`AssociateVpcWithHostedZoneInput`](crate::input::AssociateVpcWithHostedZoneInput) pub fn build( self, ) -> std::result::Result< - crate::input::AssociateVPCWithHostedZoneInput, + crate::input::AssociateVpcWithHostedZoneInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AssociateVPCWithHostedZoneInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::AssociateVpcWithHostedZoneInput { + hosted_zone_id: self.hosted_zone_id, vpc: self.vpc, comment: self.comment, }) @@ -210,7 +245,7 @@ pub type AssociateVPCWithHostedZoneInputOperationOutputAlias = crate::operation::AssociateVPCWithHostedZone; #[doc(hidden)] pub type AssociateVPCWithHostedZoneInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AssociateVPCWithHostedZoneInput { +impl AssociateVpcWithHostedZoneInput { /// Consumes the builder and constructs an Operation<[`AssociateVPCWithHostedZone`](crate::operation::AssociateVPCWithHostedZone)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -270,13 +305,31 @@ impl AssociateVPCWithHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -284,7 +337,7 @@ impl AssociateVPCWithHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -304,7 +357,7 @@ impl AssociateVPCWithHostedZoneInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AssociateVPCWithHostedZoneInput`](crate::input::AssociateVPCWithHostedZoneInput) + /// Creates a new builder-style object to manufacture [`AssociateVpcWithHostedZoneInput`](crate::input::AssociateVpcWithHostedZoneInput) pub fn builder() -> crate::input::associate_vpc_with_hosted_zone_input::Builder { crate::input::associate_vpc_with_hosted_zone_input::Builder::default() } @@ -352,7 +405,7 @@ pub mod change_resource_record_sets_input { smithy_http::operation::BuildError, > { Ok(crate::input::ChangeResourceRecordSetsInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + hosted_zone_id: self.hosted_zone_id, change_batch: self.change_batch, }) } @@ -422,13 +475,31 @@ impl ChangeResourceRecordSetsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/rrset", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -436,7 +507,7 @@ impl ChangeResourceRecordSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -536,22 +607,12 @@ pub mod change_tags_for_resource_input { crate::input::ChangeTagsForResourceInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::ChangeTagsForResourceInput { - resource_type: self.resource_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "resource_type", details: "resource_type was not specified but it is required when building ChangeTagsForResourceInput"} - )? - , - resource_id: self.resource_id - .unwrap_or_default() - , - add_tags: self.add_tags - , - remove_tag_keys: self.remove_tag_keys - , - } - ) + Ok(crate::input::ChangeTagsForResourceInput { + resource_type: self.resource_type, + resource_id: self.resource_id, + add_tags: self.add_tags, + remove_tag_keys: self.remove_tag_keys, + }) } } } @@ -618,14 +679,49 @@ impl ChangeTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_type = { + let input = &self.resource_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/tags/{ResourceType}/{ResourceId}", - ResourceType = smithy_http::label::fmt_string(&self.resource_type, false), - ResourceId = smithy_http::label::fmt_string(&self.resource_id, false) + ResourceType = resource_type, + ResourceId = resource_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -633,7 +729,7 @@ impl ChangeTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -790,8 +886,9 @@ impl CreateHealthCheckInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/healthcheck").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/healthcheck").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -799,7 +896,7 @@ impl CreateHealthCheckInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -832,7 +929,7 @@ pub mod create_hosted_zone_input { #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) name: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, pub(crate) caller_reference: std::option::Option, pub(crate) hosted_zone_config: std::option::Option, pub(crate) delegation_set_id: std::option::Option, @@ -856,11 +953,11 @@ pub mod create_hosted_zone_input { ///

                                    You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, /// use AssociateVPCWithHostedZone /// after you create a hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } @@ -994,8 +1091,9 @@ impl CreateHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/hostedzone").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/hostedzone").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1003,7 +1101,7 @@ impl CreateHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1221,8 +1319,9 @@ impl CreateKeySigningKeyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/keysigningkey").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/keysigningkey").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1230,7 +1329,7 @@ impl CreateKeySigningKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1378,8 +1477,9 @@ impl CreateQueryLoggingConfigInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/queryloggingconfig").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/queryloggingconfig").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1387,7 +1487,7 @@ impl CreateQueryLoggingConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1531,8 +1631,9 @@ impl CreateReusableDelegationSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/delegationset").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/delegationset").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1540,7 +1641,7 @@ impl CreateReusableDelegationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1683,8 +1784,9 @@ impl CreateTrafficPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/trafficpolicy").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/trafficpolicy").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1692,7 +1794,7 @@ impl CreateTrafficPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1865,8 +1967,9 @@ impl CreateTrafficPolicyInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/trafficpolicyinstance").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/trafficpolicyinstance").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1874,7 +1977,7 @@ impl CreateTrafficPolicyInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1948,7 +2051,7 @@ pub mod create_traffic_policy_version_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateTrafficPolicyVersionInput { - id: self.id.unwrap_or_default(), + id: self.id, document: self.document, comment: self.comment, }) @@ -2020,13 +2123,27 @@ impl CreateTrafficPolicyVersionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/trafficpolicy/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/trafficpolicy/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2034,7 +2151,7 @@ impl CreateTrafficPolicyVersionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2060,14 +2177,14 @@ impl CreateTrafficPolicyVersionInput { } } -/// See [`CreateVPCAssociationAuthorizationInput`](crate::input::CreateVPCAssociationAuthorizationInput) +/// See [`CreateVpcAssociationAuthorizationInput`](crate::input::CreateVpcAssociationAuthorizationInput) pub mod create_vpc_association_authorization_input { - /// A builder for [`CreateVPCAssociationAuthorizationInput`](crate::input::CreateVPCAssociationAuthorizationInput) + /// A builder for [`CreateVpcAssociationAuthorizationInput`](crate::input::CreateVpcAssociationAuthorizationInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, } impl Builder { ///

                                    The ID of the private hosted zone that you want to authorize associating a VPC with.

                                    @@ -2084,23 +2201,23 @@ pub mod create_vpc_association_authorization_input { } ///

                                    A complex type that contains the VPC ID and region for the VPC that you want to authorize associating /// with your hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } - /// Consumes the builder and constructs a [`CreateVPCAssociationAuthorizationInput`](crate::input::CreateVPCAssociationAuthorizationInput) + /// Consumes the builder and constructs a [`CreateVpcAssociationAuthorizationInput`](crate::input::CreateVpcAssociationAuthorizationInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateVPCAssociationAuthorizationInput, + crate::input::CreateVpcAssociationAuthorizationInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateVPCAssociationAuthorizationInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::CreateVpcAssociationAuthorizationInput { + hosted_zone_id: self.hosted_zone_id, vpc: self.vpc, }) } @@ -2111,7 +2228,7 @@ pub type CreateVPCAssociationAuthorizationInputOperationOutputAlias = crate::operation::CreateVPCAssociationAuthorization; #[doc(hidden)] pub type CreateVPCAssociationAuthorizationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateVPCAssociationAuthorizationInput { +impl CreateVpcAssociationAuthorizationInput { /// Consumes the builder and constructs an Operation<[`CreateVPCAssociationAuthorization`](crate::operation::CreateVPCAssociationAuthorization)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2173,13 +2290,31 @@ impl CreateVPCAssociationAuthorizationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2187,7 +2322,7 @@ impl CreateVPCAssociationAuthorizationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2207,7 +2342,7 @@ impl CreateVPCAssociationAuthorizationInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateVPCAssociationAuthorizationInput`](crate::input::CreateVPCAssociationAuthorizationInput) + /// Creates a new builder-style object to manufacture [`CreateVpcAssociationAuthorizationInput`](crate::input::CreateVpcAssociationAuthorizationInput) pub fn builder() -> crate::input::create_vpc_association_authorization_input::Builder { crate::input::create_vpc_association_authorization_input::Builder::default() } @@ -2252,8 +2387,8 @@ pub mod deactivate_key_signing_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeactivateKeySigningKeyInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), - name: self.name.unwrap_or_default(), + hosted_zone_id: self.hosted_zone_id, + name: self.name, }) } } @@ -2319,14 +2454,49 @@ impl DeactivateKeySigningKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false), - Name = smithy_http::label::fmt_string(&self.name, false) + HostedZoneId = hosted_zone_id, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2334,7 +2504,7 @@ impl DeactivateKeySigningKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2389,7 +2559,7 @@ pub mod delete_health_check_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteHealthCheckInput { - health_check_id: self.health_check_id.unwrap_or_default(), + health_check_id: self.health_check_id, }) } } @@ -2454,13 +2624,31 @@ impl DeleteHealthCheckInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let health_check_id = { + let input = &self.health_check_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/healthcheck/{HealthCheckId}", - HealthCheckId = smithy_http::label::fmt_string(&self.health_check_id, false) + HealthCheckId = health_check_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2468,7 +2656,7 @@ impl DeleteHealthCheckInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2519,9 +2707,7 @@ pub mod delete_hosted_zone_input { crate::input::DeleteHostedZoneInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteHostedZoneInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteHostedZoneInput { id: self.id }) } } } @@ -2585,13 +2771,26 @@ impl DeleteHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/hostedzone/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/hostedzone/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2599,7 +2798,7 @@ impl DeleteHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2664,8 +2863,8 @@ pub mod delete_key_signing_key_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteKeySigningKeyInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), - name: self.name.unwrap_or_default(), + hosted_zone_id: self.hosted_zone_id, + name: self.name, }) } } @@ -2730,14 +2929,49 @@ impl DeleteKeySigningKeyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let name = { + let input = &self.name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false), - Name = smithy_http::label::fmt_string(&self.name, false) + HostedZoneId = hosted_zone_id, + Name = name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2745,7 +2979,7 @@ impl DeleteKeySigningKeyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2796,9 +3030,7 @@ pub mod delete_query_logging_config_input { crate::input::DeleteQueryLoggingConfigInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteQueryLoggingConfigInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteQueryLoggingConfigInput { id: self.id }) } } } @@ -2863,13 +3095,27 @@ impl DeleteQueryLoggingConfigInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/queryloggingconfig/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/queryloggingconfig/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2877,7 +3123,7 @@ impl DeleteQueryLoggingConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2928,9 +3174,7 @@ pub mod delete_reusable_delegation_set_input { crate::input::DeleteReusableDelegationSetInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteReusableDelegationSetInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteReusableDelegationSetInput { id: self.id }) } } } @@ -2995,13 +3239,27 @@ impl DeleteReusableDelegationSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/delegationset/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/delegationset/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3009,7 +3267,7 @@ impl DeleteReusableDelegationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3071,8 +3329,8 @@ pub mod delete_traffic_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteTrafficPolicyInput { - id: self.id.unwrap_or_default(), - version: self.version.unwrap_or_default(), + id: self.id, + version: self.version, }) } } @@ -3137,14 +3395,49 @@ impl DeleteTrafficPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version = { + let input = &self.version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/trafficpolicy/{Id}/{Version}", - Id = smithy_http::label::fmt_string(&self.id, false), - Version = smithy_http::label::fmt_default(&self.version) + Id = id, + Version = version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3152,7 +3445,7 @@ impl DeleteTrafficPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3207,9 +3500,7 @@ pub mod delete_traffic_policy_instance_input { crate::input::DeleteTrafficPolicyInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteTrafficPolicyInstanceInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::DeleteTrafficPolicyInstanceInput { id: self.id }) } } } @@ -3274,13 +3565,27 @@ impl DeleteTrafficPolicyInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/trafficpolicyinstance/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/trafficpolicyinstance/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3288,7 +3593,7 @@ impl DeleteTrafficPolicyInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3314,14 +3619,14 @@ impl DeleteTrafficPolicyInstanceInput { } } -/// See [`DeleteVPCAssociationAuthorizationInput`](crate::input::DeleteVPCAssociationAuthorizationInput) +/// See [`DeleteVpcAssociationAuthorizationInput`](crate::input::DeleteVpcAssociationAuthorizationInput) pub mod delete_vpc_association_authorization_input { - /// A builder for [`DeleteVPCAssociationAuthorizationInput`](crate::input::DeleteVPCAssociationAuthorizationInput) + /// A builder for [`DeleteVpcAssociationAuthorizationInput`](crate::input::DeleteVpcAssociationAuthorizationInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, } impl Builder { ///

                                    When removing authorization to associate a VPC that was created by one AWS account with a hosted zone @@ -3339,23 +3644,23 @@ pub mod delete_vpc_association_authorization_input { } ///

                                    When removing authorization to associate a VPC that was created by one AWS account with a hosted zone /// that was created with a different AWS account, a complex type that includes the ID and region of the VPC.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } - /// Consumes the builder and constructs a [`DeleteVPCAssociationAuthorizationInput`](crate::input::DeleteVPCAssociationAuthorizationInput) + /// Consumes the builder and constructs a [`DeleteVpcAssociationAuthorizationInput`](crate::input::DeleteVpcAssociationAuthorizationInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteVPCAssociationAuthorizationInput, + crate::input::DeleteVpcAssociationAuthorizationInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteVPCAssociationAuthorizationInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::DeleteVpcAssociationAuthorizationInput { + hosted_zone_id: self.hosted_zone_id, vpc: self.vpc, }) } @@ -3366,7 +3671,7 @@ pub type DeleteVPCAssociationAuthorizationInputOperationOutputAlias = crate::operation::DeleteVPCAssociationAuthorization; #[doc(hidden)] pub type DeleteVPCAssociationAuthorizationInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteVPCAssociationAuthorizationInput { +impl DeleteVpcAssociationAuthorizationInput { /// Consumes the builder and constructs an Operation<[`DeleteVPCAssociationAuthorization`](crate::operation::DeleteVPCAssociationAuthorization)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3428,13 +3733,31 @@ impl DeleteVPCAssociationAuthorizationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3442,7 +3765,7 @@ impl DeleteVPCAssociationAuthorizationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3462,15 +3785,15 @@ impl DeleteVPCAssociationAuthorizationInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteVPCAssociationAuthorizationInput`](crate::input::DeleteVPCAssociationAuthorizationInput) + /// Creates a new builder-style object to manufacture [`DeleteVpcAssociationAuthorizationInput`](crate::input::DeleteVpcAssociationAuthorizationInput) pub fn builder() -> crate::input::delete_vpc_association_authorization_input::Builder { crate::input::delete_vpc_association_authorization_input::Builder::default() } } -/// See [`DisableHostedZoneDNSSECInput`](crate::input::DisableHostedZoneDNSSECInput) +/// See [`DisableHostedZoneDnssecInput`](crate::input::DisableHostedZoneDnssecInput) pub mod disable_hosted_zone_dnssec_input { - /// A builder for [`DisableHostedZoneDNSSECInput`](crate::input::DisableHostedZoneDNSSECInput) + /// A builder for [`DisableHostedZoneDnssecInput`](crate::input::DisableHostedZoneDnssecInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3489,15 +3812,15 @@ pub mod disable_hosted_zone_dnssec_input { self.hosted_zone_id = input; self } - /// Consumes the builder and constructs a [`DisableHostedZoneDNSSECInput`](crate::input::DisableHostedZoneDNSSECInput) + /// Consumes the builder and constructs a [`DisableHostedZoneDnssecInput`](crate::input::DisableHostedZoneDnssecInput) pub fn build( self, ) -> std::result::Result< - crate::input::DisableHostedZoneDNSSECInput, + crate::input::DisableHostedZoneDnssecInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DisableHostedZoneDNSSECInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::DisableHostedZoneDnssecInput { + hosted_zone_id: self.hosted_zone_id, }) } } @@ -3507,7 +3830,7 @@ pub type DisableHostedZoneDNSSECInputOperationOutputAlias = crate::operation::DisableHostedZoneDNSSEC; #[doc(hidden)] pub type DisableHostedZoneDNSSECInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DisableHostedZoneDNSSECInput { +impl DisableHostedZoneDnssecInput { /// Consumes the builder and constructs an Operation<[`DisableHostedZoneDNSSEC`](crate::operation::DisableHostedZoneDNSSEC)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3563,13 +3886,31 @@ impl DisableHostedZoneDNSSECInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3577,7 +3918,7 @@ impl DisableHostedZoneDNSSECInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3597,20 +3938,20 @@ impl DisableHostedZoneDNSSECInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DisableHostedZoneDNSSECInput`](crate::input::DisableHostedZoneDNSSECInput) + /// Creates a new builder-style object to manufacture [`DisableHostedZoneDnssecInput`](crate::input::DisableHostedZoneDnssecInput) pub fn builder() -> crate::input::disable_hosted_zone_dnssec_input::Builder { crate::input::disable_hosted_zone_dnssec_input::Builder::default() } } -/// See [`DisassociateVPCFromHostedZoneInput`](crate::input::DisassociateVPCFromHostedZoneInput) +/// See [`DisassociateVpcFromHostedZoneInput`](crate::input::DisassociateVpcFromHostedZoneInput) pub mod disassociate_vpc_from_hosted_zone_input { - /// A builder for [`DisassociateVPCFromHostedZoneInput`](crate::input::DisassociateVPCFromHostedZoneInput) + /// A builder for [`DisassociateVpcFromHostedZoneInput`](crate::input::DisassociateVpcFromHostedZoneInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, pub(crate) comment: std::option::Option, } impl Builder { @@ -3628,11 +3969,11 @@ pub mod disassociate_vpc_from_hosted_zone_input { } ///

                                    A complex type that contains information about the VPC that you're disassociating /// from the specified hosted zone.

                                    - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } @@ -3646,15 +3987,15 @@ pub mod disassociate_vpc_from_hosted_zone_input { self.comment = input; self } - /// Consumes the builder and constructs a [`DisassociateVPCFromHostedZoneInput`](crate::input::DisassociateVPCFromHostedZoneInput) + /// Consumes the builder and constructs a [`DisassociateVpcFromHostedZoneInput`](crate::input::DisassociateVpcFromHostedZoneInput) pub fn build( self, ) -> std::result::Result< - crate::input::DisassociateVPCFromHostedZoneInput, + crate::input::DisassociateVpcFromHostedZoneInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DisassociateVPCFromHostedZoneInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::DisassociateVpcFromHostedZoneInput { + hosted_zone_id: self.hosted_zone_id, vpc: self.vpc, comment: self.comment, }) @@ -3666,7 +4007,7 @@ pub type DisassociateVPCFromHostedZoneInputOperationOutputAlias = crate::operation::DisassociateVPCFromHostedZone; #[doc(hidden)] pub type DisassociateVPCFromHostedZoneInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DisassociateVPCFromHostedZoneInput { +impl DisassociateVpcFromHostedZoneInput { /// Consumes the builder and constructs an Operation<[`DisassociateVPCFromHostedZone`](crate::operation::DisassociateVPCFromHostedZone)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3726,13 +4067,31 @@ impl DisassociateVPCFromHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3740,7 +4099,7 @@ impl DisassociateVPCFromHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3760,15 +4119,15 @@ impl DisassociateVPCFromHostedZoneInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DisassociateVPCFromHostedZoneInput`](crate::input::DisassociateVPCFromHostedZoneInput) + /// Creates a new builder-style object to manufacture [`DisassociateVpcFromHostedZoneInput`](crate::input::DisassociateVpcFromHostedZoneInput) pub fn builder() -> crate::input::disassociate_vpc_from_hosted_zone_input::Builder { crate::input::disassociate_vpc_from_hosted_zone_input::Builder::default() } } -/// See [`EnableHostedZoneDNSSECInput`](crate::input::EnableHostedZoneDNSSECInput) +/// See [`EnableHostedZoneDnssecInput`](crate::input::EnableHostedZoneDnssecInput) pub mod enable_hosted_zone_dnssec_input { - /// A builder for [`EnableHostedZoneDNSSECInput`](crate::input::EnableHostedZoneDNSSECInput) + /// A builder for [`EnableHostedZoneDnssecInput`](crate::input::EnableHostedZoneDnssecInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3787,15 +4146,15 @@ pub mod enable_hosted_zone_dnssec_input { self.hosted_zone_id = input; self } - /// Consumes the builder and constructs a [`EnableHostedZoneDNSSECInput`](crate::input::EnableHostedZoneDNSSECInput) + /// Consumes the builder and constructs a [`EnableHostedZoneDnssecInput`](crate::input::EnableHostedZoneDnssecInput) pub fn build( self, ) -> std::result::Result< - crate::input::EnableHostedZoneDNSSECInput, + crate::input::EnableHostedZoneDnssecInput, smithy_http::operation::BuildError, > { - Ok(crate::input::EnableHostedZoneDNSSECInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::EnableHostedZoneDnssecInput { + hosted_zone_id: self.hosted_zone_id, }) } } @@ -3804,7 +4163,7 @@ pub mod enable_hosted_zone_dnssec_input { pub type EnableHostedZoneDNSSECInputOperationOutputAlias = crate::operation::EnableHostedZoneDNSSEC; #[doc(hidden)] pub type EnableHostedZoneDNSSECInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl EnableHostedZoneDNSSECInput { +impl EnableHostedZoneDnssecInput { /// Consumes the builder and constructs an Operation<[`EnableHostedZoneDNSSEC`](crate::operation::EnableHostedZoneDNSSEC)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3860,13 +4219,31 @@ impl EnableHostedZoneDNSSECInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3874,7 +4251,7 @@ impl EnableHostedZoneDNSSECInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3894,7 +4271,7 @@ impl EnableHostedZoneDNSSECInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`EnableHostedZoneDNSSECInput`](crate::input::EnableHostedZoneDNSSECInput) + /// Creates a new builder-style object to manufacture [`EnableHostedZoneDnssecInput`](crate::input::EnableHostedZoneDnssecInput) pub fn builder() -> crate::input::enable_hosted_zone_dnssec_input::Builder { crate::input::enable_hosted_zone_dnssec_input::Builder::default() } @@ -3956,15 +4333,9 @@ pub mod get_account_limit_input { crate::input::GetAccountLimitInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::GetAccountLimitInput { - r#type: self.r#type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "r#type", details: "r#type was not specified but it is required when building GetAccountLimitInput"} - )? - , - } - ) + Ok(crate::input::GetAccountLimitInput { + r#type: self.r#type, + }) } } } @@ -4028,13 +4399,27 @@ impl GetAccountLimitInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/accountlimit/{Type}", - Type = smithy_http::label::fmt_string(&self.r#type, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let r#type = { + let input = &self.r#type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/accountlimit/{Type}", Type = r#type) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4042,7 +4427,7 @@ impl GetAccountLimitInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4092,9 +4477,7 @@ pub mod get_change_input { self, ) -> std::result::Result { - Ok(crate::input::GetChangeInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetChangeInput { id: self.id }) } } } @@ -4156,13 +4539,26 @@ impl GetChangeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/change/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/change/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4170,7 +4566,7 @@ impl GetChangeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4274,8 +4670,9 @@ impl GetCheckerIpRangesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/checkeripranges").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/checkeripranges").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4283,7 +4680,7 @@ impl GetCheckerIpRangesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4309,9 +4706,9 @@ impl GetCheckerIpRangesInput { } } -/// See [`GetDNSSECInput`](crate::input::GetDNSSECInput) +/// See [`GetDnssecInput`](crate::input::GetDnssecInput) pub mod get_dnssec_input { - /// A builder for [`GetDNSSECInput`](crate::input::GetDNSSECInput) + /// A builder for [`GetDnssecInput`](crate::input::GetDnssecInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4330,13 +4727,13 @@ pub mod get_dnssec_input { self.hosted_zone_id = input; self } - /// Consumes the builder and constructs a [`GetDNSSECInput`](crate::input::GetDNSSECInput) + /// Consumes the builder and constructs a [`GetDnssecInput`](crate::input::GetDnssecInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::GetDNSSECInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::GetDnssecInput { + hosted_zone_id: self.hosted_zone_id, }) } } @@ -4345,7 +4742,7 @@ pub mod get_dnssec_input { pub type GetDNSSECInputOperationOutputAlias = crate::operation::GetDNSSEC; #[doc(hidden)] pub type GetDNSSECInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetDNSSECInput { +impl GetDnssecInput { /// Consumes the builder and constructs an Operation<[`GetDNSSEC`](crate::operation::GetDNSSEC)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -4399,13 +4796,31 @@ impl GetDNSSECInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/dnssec", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4413,7 +4828,7 @@ impl GetDNSSECInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4433,7 +4848,7 @@ impl GetDNSSECInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetDNSSECInput`](crate::input::GetDNSSECInput) + /// Creates a new builder-style object to manufacture [`GetDnssecInput`](crate::input::GetDnssecInput) pub fn builder() -> crate::input::get_dnssec_input::Builder { crate::input::get_dnssec_input::Builder::default() } @@ -4589,8 +5004,9 @@ impl GetGeoLocationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/geolocation").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/geolocation").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4610,7 +5026,7 @@ impl GetGeoLocationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4667,7 +5083,7 @@ pub mod get_health_check_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetHealthCheckInput { - health_check_id: self.health_check_id.unwrap_or_default(), + health_check_id: self.health_check_id, }) } } @@ -4732,13 +5148,31 @@ impl GetHealthCheckInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let health_check_id = { + let input = &self.health_check_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/healthcheck/{HealthCheckId}", - HealthCheckId = smithy_http::label::fmt_string(&self.health_check_id, false) + HealthCheckId = health_check_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4746,7 +5180,7 @@ impl GetHealthCheckInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4850,8 +5284,9 @@ impl GetHealthCheckCountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/healthcheckcount").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/healthcheckcount").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4859,7 +5294,7 @@ impl GetHealthCheckCountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4919,7 +5354,7 @@ pub mod get_health_check_last_failure_reason_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetHealthCheckLastFailureReasonInput { - health_check_id: self.health_check_id.unwrap_or_default(), + health_check_id: self.health_check_id, }) } } @@ -4985,13 +5420,31 @@ impl GetHealthCheckLastFailureReasonInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let health_check_id = { + let input = &self.health_check_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason", - HealthCheckId = smithy_http::label::fmt_string(&self.health_check_id, false) + HealthCheckId = health_check_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4999,7 +5452,7 @@ impl GetHealthCheckLastFailureReasonInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5059,7 +5512,7 @@ pub mod get_health_check_status_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetHealthCheckStatusInput { - health_check_id: self.health_check_id.unwrap_or_default(), + health_check_id: self.health_check_id, }) } } @@ -5124,13 +5577,31 @@ impl GetHealthCheckStatusInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let health_check_id = { + let input = &self.health_check_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/healthcheck/{HealthCheckId}/status", - HealthCheckId = smithy_http::label::fmt_string(&self.health_check_id, false) + HealthCheckId = health_check_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5138,7 +5609,7 @@ impl GetHealthCheckStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5187,9 +5658,7 @@ pub mod get_hosted_zone_input { self, ) -> std::result::Result { - Ok(crate::input::GetHostedZoneInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetHostedZoneInput { id: self.id }) } } } @@ -5253,13 +5722,26 @@ impl GetHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/hostedzone/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/hostedzone/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5267,7 +5749,7 @@ impl GetHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5371,8 +5853,9 @@ impl GetHostedZoneCountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/hostedzonecount").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/hostedzonecount").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5380,7 +5863,7 @@ impl GetHostedZoneCountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5459,18 +5942,10 @@ pub mod get_hosted_zone_limit_input { crate::input::GetHostedZoneLimitInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::GetHostedZoneLimitInput { - r#type: self.r#type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "r#type", details: "r#type was not specified but it is required when building GetHostedZoneLimitInput"} - )? - , - hosted_zone_id: self.hosted_zone_id - .unwrap_or_default() - , - } - ) + Ok(crate::input::GetHostedZoneLimitInput { + r#type: self.r#type, + hosted_zone_id: self.hosted_zone_id, + }) } } } @@ -5534,14 +6009,49 @@ impl GetHostedZoneLimitInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let r#type = { + let input = &self.r#type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false), - Type = smithy_http::label::fmt_string(&self.r#type, false) + HostedZoneId = hosted_zone_id, + Type = r#type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5549,7 +6059,7 @@ impl GetHostedZoneLimitInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5600,9 +6110,7 @@ pub mod get_query_logging_config_input { crate::input::GetQueryLoggingConfigInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetQueryLoggingConfigInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetQueryLoggingConfigInput { id: self.id }) } } } @@ -5666,13 +6174,27 @@ impl GetQueryLoggingConfigInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/queryloggingconfig/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/queryloggingconfig/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5680,7 +6202,7 @@ impl GetQueryLoggingConfigInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5731,9 +6253,7 @@ pub mod get_reusable_delegation_set_input { crate::input::GetReusableDelegationSetInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetReusableDelegationSetInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetReusableDelegationSetInput { id: self.id }) } } } @@ -5798,13 +6318,27 @@ impl GetReusableDelegationSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/delegationset/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/delegationset/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5812,7 +6346,7 @@ impl GetReusableDelegationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5880,18 +6414,10 @@ pub mod get_reusable_delegation_set_limit_input { crate::input::GetReusableDelegationSetLimitInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::GetReusableDelegationSetLimitInput { - r#type: self.r#type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "r#type", details: "r#type was not specified but it is required when building GetReusableDelegationSetLimitInput"} - )? - , - delegation_set_id: self.delegation_set_id - .unwrap_or_default() - , - } - ) + Ok(crate::input::GetReusableDelegationSetLimitInput { + r#type: self.r#type, + delegation_set_id: self.delegation_set_id, + }) } } } @@ -5956,14 +6482,49 @@ impl GetReusableDelegationSetLimitInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let delegation_set_id = { + let input = &self.delegation_set_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "delegation_set_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "delegation_set_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let r#type = { + let input = &self.r#type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "r#type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}", - DelegationSetId = smithy_http::label::fmt_string(&self.delegation_set_id, false), - Type = smithy_http::label::fmt_string(&self.r#type, false) + DelegationSetId = delegation_set_id, + Type = r#type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5971,7 +6532,7 @@ impl GetReusableDelegationSetLimitInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6033,8 +6594,8 @@ pub mod get_traffic_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetTrafficPolicyInput { - id: self.id.unwrap_or_default(), - version: self.version.unwrap_or_default(), + id: self.id, + version: self.version, }) } } @@ -6099,14 +6660,49 @@ impl GetTrafficPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version = { + let input = &self.version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/trafficpolicy/{Id}/{Version}", - Id = smithy_http::label::fmt_string(&self.id, false), - Version = smithy_http::label::fmt_default(&self.version) + Id = id, + Version = version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6114,7 +6710,7 @@ impl GetTrafficPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6165,9 +6761,7 @@ pub mod get_traffic_policy_instance_input { crate::input::GetTrafficPolicyInstanceInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetTrafficPolicyInstanceInput { - id: self.id.unwrap_or_default(), - }) + Ok(crate::input::GetTrafficPolicyInstanceInput { id: self.id }) } } } @@ -6232,13 +6826,27 @@ impl GetTrafficPolicyInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/trafficpolicyinstance/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/trafficpolicyinstance/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6246,7 +6854,7 @@ impl GetTrafficPolicyInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6351,8 +6959,10 @@ impl GetTrafficPolicyInstanceCountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/trafficpolicyinstancecount").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/trafficpolicyinstancecount") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -6360,7 +6970,7 @@ impl GetTrafficPolicyInstanceCountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -6530,8 +7140,9 @@ impl ListGeoLocationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/geolocations").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/geolocations").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6563,7 +7174,7 @@ impl ListGeoLocationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6697,8 +7308,9 @@ impl ListHealthChecksInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/healthcheck").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/healthcheck").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6715,7 +7327,7 @@ impl ListHealthChecksInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6865,8 +7477,9 @@ impl ListHostedZonesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/hostedzone").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/hostedzone").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6889,7 +7502,7 @@ impl ListHostedZonesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7041,8 +7654,9 @@ impl ListHostedZonesByNameInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/hostedzonesbyname").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/hostedzonesbyname").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7062,7 +7676,7 @@ impl ListHostedZonesByNameInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7089,9 +7703,9 @@ impl ListHostedZonesByNameInput { } } -/// See [`ListHostedZonesByVPCInput`](crate::input::ListHostedZonesByVPCInput) +/// See [`ListHostedZonesByVpcInput`](crate::input::ListHostedZonesByVpcInput) pub mod list_hosted_zones_by_vpc_input { - /// A builder for [`ListHostedZonesByVPCInput`](crate::input::ListHostedZonesByVPCInput) + /// A builder for [`ListHostedZonesByVpcInput`](crate::input::ListHostedZonesByVpcInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -7145,14 +7759,14 @@ pub mod list_hosted_zones_by_vpc_input { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListHostedZonesByVPCInput`](crate::input::ListHostedZonesByVPCInput) + /// Consumes the builder and constructs a [`ListHostedZonesByVpcInput`](crate::input::ListHostedZonesByVpcInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListHostedZonesByVPCInput, + crate::input::ListHostedZonesByVpcInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListHostedZonesByVPCInput { + Ok(crate::input::ListHostedZonesByVpcInput { vpc_id: self.vpc_id, vpc_region: self.vpc_region, max_items: self.max_items, @@ -7165,7 +7779,7 @@ pub mod list_hosted_zones_by_vpc_input { pub type ListHostedZonesByVPCInputOperationOutputAlias = crate::operation::ListHostedZonesByVPC; #[doc(hidden)] pub type ListHostedZonesByVPCInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListHostedZonesByVPCInput { +impl ListHostedZonesByVpcInput { /// Consumes the builder and constructs an Operation<[`ListHostedZonesByVPC`](crate::operation::ListHostedZonesByVPC)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -7221,8 +7835,9 @@ impl ListHostedZonesByVPCInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/hostedzonesbyvpc").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/hostedzonesbyvpc").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7245,7 +7860,7 @@ impl ListHostedZonesByVPCInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7266,7 +7881,7 @@ impl ListHostedZonesByVPCInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListHostedZonesByVPCInput`](crate::input::ListHostedZonesByVPCInput) + /// Creates a new builder-style object to manufacture [`ListHostedZonesByVpcInput`](crate::input::ListHostedZonesByVpcInput) pub fn builder() -> crate::input::list_hosted_zones_by_vpc_input::Builder { crate::input::list_hosted_zones_by_vpc_input::Builder::default() } @@ -7400,8 +8015,9 @@ impl ListQueryLoggingConfigsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/queryloggingconfig").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/queryloggingconfig").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7421,7 +8037,7 @@ impl ListQueryLoggingConfigsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7573,7 +8189,7 @@ pub mod list_resource_record_sets_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListResourceRecordSetsInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + hosted_zone_id: self.hosted_zone_id, start_record_name: self.start_record_name, start_record_type: self.start_record_type, start_record_identifier: self.start_record_identifier, @@ -7642,13 +8258,31 @@ impl ListResourceRecordSetsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/rrset", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7671,7 +8305,7 @@ impl ListResourceRecordSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7806,8 +8440,9 @@ impl ListReusableDelegationSetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/delegationset").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/delegationset").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7824,7 +8459,7 @@ impl ListReusableDelegationSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7897,18 +8532,10 @@ pub mod list_tags_for_resource_input { crate::input::ListTagsForResourceInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::ListTagsForResourceInput { - resource_type: self.resource_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "resource_type", details: "resource_type was not specified but it is required when building ListTagsForResourceInput"} - )? - , - resource_id: self.resource_id - .unwrap_or_default() - , - } - ) + Ok(crate::input::ListTagsForResourceInput { + resource_type: self.resource_type, + resource_id: self.resource_id, + }) } } } @@ -7972,14 +8599,49 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_type = { + let input = &self.resource_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + }); + } + formatted + }; + let resource_id = { + let input = &self.resource_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/tags/{ResourceType}/{ResourceId}", - ResourceType = smithy_http::label::fmt_string(&self.resource_type, false), - ResourceId = smithy_http::label::fmt_string(&self.resource_id, false) + ResourceType = resource_type, + ResourceId = resource_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7987,7 +8649,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8063,17 +8725,10 @@ pub mod list_tags_for_resources_input { crate::input::ListTagsForResourcesInput, smithy_http::operation::BuildError, > { - Ok( - crate::input::ListTagsForResourcesInput { - resource_type: self.resource_type - .ok_or( - smithy_http::operation::BuildError::MissingField { field: "resource_type", details: "resource_type was not specified but it is required when building ListTagsForResourcesInput"} - )? - , - resource_ids: self.resource_ids - , - } - ) + Ok(crate::input::ListTagsForResourcesInput { + resource_type: self.resource_type, + resource_ids: self.resource_ids, + }) } } } @@ -8140,13 +8795,31 @@ impl ListTagsForResourcesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let resource_type = { + let input = &self.resource_type; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "resource_type", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/tags/{ResourceType}", - ResourceType = smithy_http::label::fmt_string(&self.resource_type, false) + ResourceType = resource_type ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8154,7 +8827,7 @@ impl ListTagsForResourcesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8292,8 +8965,9 @@ impl ListTrafficPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/trafficpolicies").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/trafficpolicies").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8313,7 +8987,7 @@ impl ListTrafficPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8493,8 +9167,9 @@ impl ListTrafficPolicyInstancesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/trafficpolicyinstances").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/trafficpolicyinstances").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8523,7 +9198,7 @@ impl ListTrafficPolicyInstancesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8699,9 +9374,10 @@ impl ListTrafficPolicyInstancesByHostedZoneInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/2013-04-01/trafficpolicyinstances/hostedzone") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8730,7 +9406,7 @@ impl ListTrafficPolicyInstancesByHostedZoneInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -8935,9 +9611,10 @@ impl ListTrafficPolicyInstancesByPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/2013-04-01/trafficpolicyinstances/trafficpolicy") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -8972,7 +9649,7 @@ impl ListTrafficPolicyInstancesByPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9058,7 +9735,7 @@ pub mod list_traffic_policy_versions_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListTrafficPolicyVersionsInput { - id: self.id.unwrap_or_default(), + id: self.id, traffic_policy_version_marker: self.traffic_policy_version_marker, max_items: self.max_items, }) @@ -9126,13 +9803,27 @@ impl ListTrafficPolicyVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/trafficpolicies/{Id}/versions", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/trafficpolicies/{Id}/versions", Id = id) + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9152,7 +9843,7 @@ impl ListTrafficPolicyVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9179,9 +9870,9 @@ impl ListTrafficPolicyVersionsInput { } } -/// See [`ListVPCAssociationAuthorizationsInput`](crate::input::ListVPCAssociationAuthorizationsInput) +/// See [`ListVpcAssociationAuthorizationsInput`](crate::input::ListVpcAssociationAuthorizationsInput) pub mod list_vpc_association_authorizations_input { - /// A builder for [`ListVPCAssociationAuthorizationsInput`](crate::input::ListVPCAssociationAuthorizationsInput) + /// A builder for [`ListVpcAssociationAuthorizationsInput`](crate::input::ListVpcAssociationAuthorizationsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9226,15 +9917,15 @@ pub mod list_vpc_association_authorizations_input { self.max_results = input; self } - /// Consumes the builder and constructs a [`ListVPCAssociationAuthorizationsInput`](crate::input::ListVPCAssociationAuthorizationsInput) + /// Consumes the builder and constructs a [`ListVpcAssociationAuthorizationsInput`](crate::input::ListVpcAssociationAuthorizationsInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListVPCAssociationAuthorizationsInput, + crate::input::ListVpcAssociationAuthorizationsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListVPCAssociationAuthorizationsInput { - hosted_zone_id: self.hosted_zone_id.unwrap_or_default(), + Ok(crate::input::ListVpcAssociationAuthorizationsInput { + hosted_zone_id: self.hosted_zone_id, next_token: self.next_token, max_results: self.max_results, }) @@ -9246,7 +9937,7 @@ pub type ListVPCAssociationAuthorizationsInputOperationOutputAlias = crate::operation::ListVPCAssociationAuthorizations; #[doc(hidden)] pub type ListVPCAssociationAuthorizationsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListVPCAssociationAuthorizationsInput { +impl ListVpcAssociationAuthorizationsInput { /// Consumes the builder and constructs an Operation<[`ListVPCAssociationAuthorizations`](crate::operation::ListVPCAssociationAuthorizations)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9302,13 +9993,31 @@ impl ListVPCAssociationAuthorizationsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let hosted_zone_id = { + let input = &self.hosted_zone_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "hosted_zone_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation", - HostedZoneId = smithy_http::label::fmt_string(&self.hosted_zone_id, false) + HostedZoneId = hosted_zone_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9325,7 +10034,7 @@ impl ListVPCAssociationAuthorizationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9346,15 +10055,15 @@ impl ListVPCAssociationAuthorizationsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListVPCAssociationAuthorizationsInput`](crate::input::ListVPCAssociationAuthorizationsInput) + /// Creates a new builder-style object to manufacture [`ListVpcAssociationAuthorizationsInput`](crate::input::ListVpcAssociationAuthorizationsInput) pub fn builder() -> crate::input::list_vpc_association_authorizations_input::Builder { crate::input::list_vpc_association_authorizations_input::Builder::default() } } -/// See [`TestDNSAnswerInput`](crate::input::TestDNSAnswerInput) +/// See [`TestDnsAnswerInput`](crate::input::TestDnsAnswerInput) pub mod test_dns_answer_input { - /// A builder for [`TestDNSAnswerInput`](crate::input::TestDNSAnswerInput) + /// A builder for [`TestDnsAnswerInput`](crate::input::TestDnsAnswerInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9446,12 +10155,12 @@ pub mod test_dns_answer_input { self.edns0_client_subnet_mask = input; self } - /// Consumes the builder and constructs a [`TestDNSAnswerInput`](crate::input::TestDNSAnswerInput) + /// Consumes the builder and constructs a [`TestDnsAnswerInput`](crate::input::TestDnsAnswerInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::TestDNSAnswerInput { + Ok(crate::input::TestDnsAnswerInput { hosted_zone_id: self.hosted_zone_id, record_name: self.record_name, record_type: self.record_type, @@ -9466,7 +10175,7 @@ pub mod test_dns_answer_input { pub type TestDNSAnswerInputOperationOutputAlias = crate::operation::TestDNSAnswer; #[doc(hidden)] pub type TestDNSAnswerInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl TestDNSAnswerInput { +impl TestDnsAnswerInput { /// Consumes the builder and constructs an Operation<[`TestDNSAnswer`](crate::operation::TestDNSAnswer)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -9522,8 +10231,9 @@ impl TestDNSAnswerInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/2013-04-01/testdnsanswer").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/2013-04-01/testdnsanswer").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -9558,7 +10268,7 @@ impl TestDNSAnswerInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -9579,7 +10289,7 @@ impl TestDNSAnswerInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`TestDNSAnswerInput`](crate::input::TestDNSAnswerInput) + /// Creates a new builder-style object to manufacture [`TestDnsAnswerInput`](crate::input::TestDnsAnswerInput) pub fn builder() -> crate::input::test_dns_answer_input::Builder { crate::input::test_dns_answer_input::Builder::default() } @@ -10013,7 +10723,7 @@ pub mod update_health_check_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateHealthCheckInput { - health_check_id: self.health_check_id.unwrap_or_default(), + health_check_id: self.health_check_id, health_check_version: self.health_check_version, ip_address: self.ip_address, port: self.port, @@ -10097,13 +10807,31 @@ impl UpdateHealthCheckInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let health_check_id = { + let input = &self.health_check_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "health_check_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/healthcheck/{HealthCheckId}", - HealthCheckId = smithy_http::label::fmt_string(&self.health_check_id, false) + HealthCheckId = health_check_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10111,7 +10839,7 @@ impl UpdateHealthCheckInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10174,7 +10902,7 @@ pub mod update_hosted_zone_comment_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateHostedZoneCommentInput { - id: self.id.unwrap_or_default(), + id: self.id, comment: self.comment, }) } @@ -10244,13 +10972,26 @@ impl UpdateHostedZoneCommentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/hostedzone/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/hostedzone/{Id}", Id = id).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10258,7 +10999,7 @@ impl UpdateHostedZoneCommentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10330,8 +11071,8 @@ pub mod update_traffic_policy_comment_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateTrafficPolicyCommentInput { - id: self.id.unwrap_or_default(), - version: self.version.unwrap_or_default(), + id: self.id, + version: self.version, comment: self.comment, }) } @@ -10402,14 +11143,49 @@ impl UpdateTrafficPolicyCommentInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + let version = { + let input = &self.version; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_default(input); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "version", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/2013-04-01/trafficpolicy/{Id}/{Version}", - Id = smithy_http::label::fmt_string(&self.id, false), - Version = smithy_http::label::fmt_default(&self.version) + Id = id, + Version = version ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10417,7 +11193,7 @@ impl UpdateTrafficPolicyCommentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10502,7 +11278,7 @@ pub mod update_traffic_policy_instance_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateTrafficPolicyInstanceInput { - id: self.id.unwrap_or_default(), + id: self.id, ttl: self.ttl, traffic_policy_id: self.traffic_policy_id, traffic_policy_version: self.traffic_policy_version, @@ -10575,13 +11351,27 @@ impl UpdateTrafficPolicyInstanceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/2013-04-01/trafficpolicyinstance/{Id}", - Id = smithy_http::label::fmt_string(&self.id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let id = { + let input = &self.id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/2013-04-01/trafficpolicyinstance/{Id}", Id = id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10589,7 +11379,7 @@ impl UpdateTrafficPolicyInstanceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10620,7 +11410,7 @@ impl UpdateTrafficPolicyInstanceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateTrafficPolicyInstanceInput { ///

                                    The ID of the traffic policy instance that you want to update.

                                    - pub id: std::string::String, + pub id: std::option::Option, ///

                                    The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

                                    pub ttl: std::option::Option, ///

                                    The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

                                    @@ -10644,9 +11434,9 @@ impl std::fmt::Debug for UpdateTrafficPolicyInstanceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateTrafficPolicyCommentInput { ///

                                    The value of Id for the traffic policy that you want to update the comment for.

                                    - pub id: std::string::String, + pub id: std::option::Option, ///

                                    The value of Version for the traffic policy that you want to update the comment for.

                                    - pub version: i32, + pub version: std::option::Option, ///

                                    The new comment for the specified traffic policy and version.

                                    pub comment: std::option::Option, } @@ -10665,7 +11455,7 @@ impl std::fmt::Debug for UpdateTrafficPolicyCommentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateHostedZoneCommentInput { ///

                                    The ID for the hosted zone that you want to update the comment for.

                                    - pub id: std::string::String, + pub id: std::option::Option, ///

                                    The new comment for the hosted zone. If you don't specify a value for Comment, Amazon Route 53 deletes the existing value of the /// Comment element, if any.

                                    pub comment: std::option::Option, @@ -10685,7 +11475,7 @@ impl std::fmt::Debug for UpdateHostedZoneCommentInput { pub struct UpdateHealthCheckInput { ///

                                    The ID for the health check for which you want detailed information. When you created the health check, /// CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

                                    - pub health_check_id: std::string::String, + pub health_check_id: std::option::Option, ///

                                    A sequential counter that Amazon Route 53 sets to 1 when you create a health check and increments by 1 each time you /// update settings for the health check.

                                    ///

                                    We recommend that you use GetHealthCheck or ListHealthChecks to get the current value of @@ -10983,7 +11773,7 @@ impl std::fmt::Debug for UpdateHealthCheckInput { /// the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.

                                    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestDNSAnswerInput { +pub struct TestDnsAnswerInput { ///

                                    The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.

                                    pub hosted_zone_id: std::option::Option, ///

                                    The name of the resource record set that you want Amazon Route 53 to simulate a query for.

                                    @@ -11014,9 +11804,9 @@ pub struct TestDNSAnswerInput { ///
                                  pub edns0_client_subnet_mask: std::option::Option, } -impl std::fmt::Debug for TestDNSAnswerInput { +impl std::fmt::Debug for TestDnsAnswerInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestDNSAnswerInput"); + let mut formatter = f.debug_struct("TestDnsAnswerInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("record_name", &self.record_name); formatter.field("record_type", &self.record_type); @@ -11030,9 +11820,9 @@ impl std::fmt::Debug for TestDNSAnswerInput { ///

                                  A complex type that contains information about that can be associated with your hosted zone.

                                  #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListVPCAssociationAuthorizationsInput { +pub struct ListVpcAssociationAuthorizationsInput { ///

                                  The ID of the hosted zone for which you want a list of VPCs that can be associated with the hosted zone.

                                  - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                                  /// Optional: If a response includes a NextToken element, there are more VPCs /// that can be associated with the specified hosted zone. To get the next page of results, submit another request, @@ -11044,9 +11834,9 @@ pub struct ListVPCAssociationAuthorizationsInput { /// If you don't specify a value for MaxResults, Route 53 returns up to 50 VPCs per page.

                                  pub max_results: std::option::Option, } -impl std::fmt::Debug for ListVPCAssociationAuthorizationsInput { +impl std::fmt::Debug for ListVpcAssociationAuthorizationsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListVPCAssociationAuthorizationsInput"); + let mut formatter = f.debug_struct("ListVpcAssociationAuthorizationsInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("next_token", &self.next_token); formatter.field("max_results", &self.max_results); @@ -11060,7 +11850,7 @@ impl std::fmt::Debug for ListVPCAssociationAuthorizationsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListTrafficPolicyVersionsInput { ///

                                  Specify the value of Id of the traffic policy for which you want to list all versions.

                                  - pub id: std::string::String, + pub id: std::option::Option, ///

                                  For your first request to ListTrafficPolicyVersions, don't include the TrafficPolicyVersionMarker parameter.

                                  ///

                                  If you have more traffic policy versions than the value of MaxItems, ListTrafficPolicyVersions returns only /// the first group of MaxItems versions. To get more traffic policy versions, submit another ListTrafficPolicyVersions @@ -11264,7 +12054,7 @@ pub struct ListTagsForResourcesInput { ///

                                  The resource type for hosted zones is hostedzone.

                                  /// ///
                                - pub resource_type: crate::model::TagResourceType, + pub resource_type: std::option::Option, ///

                                A complex type that contains the ResourceId element for each resource for which you want to get a list of tags.

                                pub resource_ids: std::option::Option>, } @@ -11290,9 +12080,9 @@ pub struct ListTagsForResourceInput { ///

                                The resource type for hosted zones is hostedzone.

                                /// ///
                              - pub resource_type: crate::model::TagResourceType, + pub resource_type: std::option::Option, ///

                              The ID of the resource for which you want to retrieve tags.

                              - pub resource_id: std::string::String, + pub resource_id: std::option::Option, } impl std::fmt::Debug for ListTagsForResourceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11331,7 +12121,7 @@ impl std::fmt::Debug for ListReusableDelegationSetsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListResourceRecordSetsInput { ///

                              The ID of the hosted zone that contains the resource record sets that you want to list.

                              - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                              The first name in the lexicographic ordering of resource record sets that you want to list. /// If the specified record name doesn't exist, the results begin with the first resource record set that has a name /// greater than the value of name.

                              @@ -11434,7 +12224,7 @@ impl std::fmt::Debug for ListQueryLoggingConfigsInput { ///

                              Lists all the private hosted zones that a specified VPC is associated with, regardless of which AWS account created the hosted zones.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHostedZonesByVPCInput { +pub struct ListHostedZonesByVpcInput { ///

                              The ID of the Amazon VPC that you want to list hosted zones for.

                              pub vpc_id: std::option::Option, ///

                              For the Amazon VPC that you specified for VPCId, the AWS Region that you created the VPC in.

                              @@ -11449,9 +12239,9 @@ pub struct ListHostedZonesByVPCInput { ///

                              If the previous response didn't include a NextToken element, there are no more hosted zones to get.

                              pub next_token: std::option::Option, } -impl std::fmt::Debug for ListHostedZonesByVPCInput { +impl std::fmt::Debug for ListHostedZonesByVpcInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHostedZonesByVPCInput"); + let mut formatter = f.debug_struct("ListHostedZonesByVpcInput"); formatter.field("vpc_id", &self.vpc_id); formatter.field("vpc_region", &self.vpc_region); formatter.field("max_items", &self.max_items); @@ -11593,7 +12383,7 @@ impl std::fmt::Debug for GetTrafficPolicyInstanceCountInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetTrafficPolicyInstanceInput { ///

                              The ID of the traffic policy instance that you want to get information about.

                              - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetTrafficPolicyInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11608,9 +12398,9 @@ impl std::fmt::Debug for GetTrafficPolicyInstanceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetTrafficPolicyInput { ///

                              The ID of the traffic policy that you want to get information about.

                              - pub id: std::string::String, + pub id: std::option::Option, ///

                              The version number of the traffic policy that you want to get information about.

                              - pub version: i32, + pub version: std::option::Option, } impl std::fmt::Debug for GetTrafficPolicyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11627,9 +12417,9 @@ impl std::fmt::Debug for GetTrafficPolicyInput { pub struct GetReusableDelegationSetLimitInput { ///

                              Specify MAX_ZONES_BY_REUSABLE_DELEGATION_SET to get the maximum number of hosted zones that you can associate /// with the specified reusable delegation set.

                              - pub r#type: crate::model::ReusableDelegationSetLimitType, + pub r#type: std::option::Option, ///

                              The ID of the delegation set that you want to get the limit for.

                              - pub delegation_set_id: std::string::String, + pub delegation_set_id: std::option::Option, } impl std::fmt::Debug for GetReusableDelegationSetLimitInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11645,7 +12435,7 @@ impl std::fmt::Debug for GetReusableDelegationSetLimitInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetReusableDelegationSetInput { ///

                              The ID of the reusable delegation set that you want to get a list of name servers for.

                              - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetReusableDelegationSetInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11659,7 +12449,7 @@ impl std::fmt::Debug for GetReusableDelegationSetInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetQueryLoggingConfigInput { ///

                              The ID of the configuration for DNS query logging that you want to get information about.

                              - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetQueryLoggingConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11686,9 +12476,9 @@ pub struct GetHostedZoneLimitInput { /// associate with the specified private hosted zone.

                              /// ///
                            - pub r#type: crate::model::HostedZoneLimitType, + pub r#type: std::option::Option, ///

                            The ID of the hosted zone that you want to get a limit for.

                            - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, } impl std::fmt::Debug for GetHostedZoneLimitInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11715,7 +12505,7 @@ impl std::fmt::Debug for GetHostedZoneCountInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetHostedZoneInput { ///

                            The ID of the hosted zone that you want to get information about.

                            - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetHostedZoneInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11735,7 +12525,7 @@ pub struct GetHealthCheckStatusInput { ///

                            If you want to check the status of a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. /// You can't use GetHealthCheckStatus to get the status of a calculated health check.

                            /// - pub health_check_id: std::string::String, + pub health_check_id: std::option::Option, } impl std::fmt::Debug for GetHealthCheckStatusInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11755,7 +12545,7 @@ pub struct GetHealthCheckLastFailureReasonInput { ///

                            If you want to get the last failure reason for a calculated health check, you must use the Amazon Route 53 console or the /// CloudWatch console. You can't use GetHealthCheckLastFailureReason for a calculated health check.

                            /// - pub health_check_id: std::string::String, + pub health_check_id: std::option::Option, } impl std::fmt::Debug for GetHealthCheckLastFailureReasonInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11782,7 +12572,7 @@ impl std::fmt::Debug for GetHealthCheckCountInput { pub struct GetHealthCheckInput { ///

                            The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, /// you use this value to specify which health check to use. The value can be up to 64 characters long.

                            - pub health_check_id: std::string::String, + pub health_check_id: std::option::Option, } impl std::fmt::Debug for GetHealthCheckInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11846,13 +12636,13 @@ impl std::fmt::Debug for GetGeoLocationInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDNSSECInput { +pub struct GetDnssecInput { ///

                            A unique string used to identify a hosted zone.

                            - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, } -impl std::fmt::Debug for GetDNSSECInput { +impl std::fmt::Debug for GetDnssecInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDNSSECInput"); + let mut formatter = f.debug_struct("GetDnssecInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.finish() } @@ -11875,7 +12665,7 @@ impl std::fmt::Debug for GetCheckerIpRangesInput { pub struct GetChangeInput { ///

                            The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets /// returned in the Id element when you submitted the request.

                            - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for GetChangeInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11918,7 +12708,7 @@ pub struct GetAccountLimitInput { /// Amazon Route 53 console.)

                            /// ///
                          - pub r#type: crate::model::AccountLimitType, + pub r#type: std::option::Option, } impl std::fmt::Debug for GetAccountLimitInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -11930,13 +12720,13 @@ impl std::fmt::Debug for GetAccountLimitInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableHostedZoneDNSSECInput { +pub struct EnableHostedZoneDnssecInput { ///

                          A unique string used to identify a hosted zone.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, } -impl std::fmt::Debug for EnableHostedZoneDNSSECInput { +impl std::fmt::Debug for EnableHostedZoneDnssecInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableHostedZoneDNSSECInput"); + let mut formatter = f.debug_struct("EnableHostedZoneDnssecInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.finish() } @@ -11946,19 +12736,19 @@ impl std::fmt::Debug for EnableHostedZoneDNSSECInput { /// specified private hosted zone.

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateVPCFromHostedZoneInput { +pub struct DisassociateVpcFromHostedZoneInput { ///

                          The ID of the private hosted zone that you want to disassociate a VPC from.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                          A complex type that contains information about the VPC that you're disassociating /// from the specified hosted zone.

                          - pub vpc: std::option::Option, + pub vpc: std::option::Option, ///

                          /// Optional: A comment about the disassociation request.

                          pub comment: std::option::Option, } -impl std::fmt::Debug for DisassociateVPCFromHostedZoneInput { +impl std::fmt::Debug for DisassociateVpcFromHostedZoneInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateVPCFromHostedZoneInput"); + let mut formatter = f.debug_struct("DisassociateVpcFromHostedZoneInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("vpc", &self.vpc); formatter.field("comment", &self.comment); @@ -11968,13 +12758,13 @@ impl std::fmt::Debug for DisassociateVPCFromHostedZoneInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableHostedZoneDNSSECInput { +pub struct DisableHostedZoneDnssecInput { ///

                          A unique string used to identify a hosted zone.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, } -impl std::fmt::Debug for DisableHostedZoneDNSSECInput { +impl std::fmt::Debug for DisableHostedZoneDnssecInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableHostedZoneDNSSECInput"); + let mut formatter = f.debug_struct("DisableHostedZoneDnssecInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.finish() } @@ -11984,17 +12774,17 @@ impl std::fmt::Debug for DisableHostedZoneDNSSECInput { /// that was created by one AWS account with a hosted zone that was created with a different AWS account.

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteVPCAssociationAuthorizationInput { +pub struct DeleteVpcAssociationAuthorizationInput { ///

                          When removing authorization to associate a VPC that was created by one AWS account with a hosted zone /// that was created with a different AWS account, the ID of the hosted zone.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                          When removing authorization to associate a VPC that was created by one AWS account with a hosted zone /// that was created with a different AWS account, a complex type that includes the ID and region of the VPC.

                          - pub vpc: std::option::Option, + pub vpc: std::option::Option, } -impl std::fmt::Debug for DeleteVPCAssociationAuthorizationInput { +impl std::fmt::Debug for DeleteVpcAssociationAuthorizationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteVPCAssociationAuthorizationInput"); + let mut formatter = f.debug_struct("DeleteVpcAssociationAuthorizationInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("vpc", &self.vpc); formatter.finish() @@ -12010,7 +12800,7 @@ pub struct DeleteTrafficPolicyInstanceInput { ///

                          When you delete a traffic policy instance, Amazon Route 53 also deletes all of the resource record sets that were created when you created /// the traffic policy instance.

                          /// - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteTrafficPolicyInstanceInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12025,9 +12815,9 @@ impl std::fmt::Debug for DeleteTrafficPolicyInstanceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteTrafficPolicyInput { ///

                          The ID of the traffic policy that you want to delete.

                          - pub id: std::string::String, + pub id: std::option::Option, ///

                          The version number of the traffic policy that you want to delete.

                          - pub version: i32, + pub version: std::option::Option, } impl std::fmt::Debug for DeleteTrafficPolicyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12043,7 +12833,7 @@ impl std::fmt::Debug for DeleteTrafficPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteReusableDelegationSetInput { ///

                          The ID of the reusable delegation set that you want to delete.

                          - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteReusableDelegationSetInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12057,7 +12847,7 @@ impl std::fmt::Debug for DeleteReusableDelegationSetInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteQueryLoggingConfigInput { ///

                          The ID of the configuration that you want to delete.

                          - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteQueryLoggingConfigInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12071,9 +12861,9 @@ impl std::fmt::Debug for DeleteQueryLoggingConfigInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteKeySigningKeyInput { ///

                          A unique string used to identify a hosted zone.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                          A string used to identify a key-signing key (KSK).

                          - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DeleteKeySigningKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12089,7 +12879,7 @@ impl std::fmt::Debug for DeleteKeySigningKeyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteHostedZoneInput { ///

                          The ID of the hosted zone you want to delete.

                          - pub id: std::string::String, + pub id: std::option::Option, } impl std::fmt::Debug for DeleteHostedZoneInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12104,7 +12894,7 @@ impl std::fmt::Debug for DeleteHostedZoneInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteHealthCheckInput { ///

                          The ID of the health check that you want to delete.

                          - pub health_check_id: std::string::String, + pub health_check_id: std::option::Option, } impl std::fmt::Debug for DeleteHealthCheckInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12118,9 +12908,9 @@ impl std::fmt::Debug for DeleteHealthCheckInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeactivateKeySigningKeyInput { ///

                          A unique string used to identify a hosted zone.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                          A string used to identify a key-signing key (KSK).

                          - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for DeactivateKeySigningKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -12135,16 +12925,16 @@ impl std::fmt::Debug for DeactivateKeySigningKeyInput { /// Authorization is only required when a private hosted zone and a VPC were created by using different accounts.

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVPCAssociationAuthorizationInput { +pub struct CreateVpcAssociationAuthorizationInput { ///

                          The ID of the private hosted zone that you want to authorize associating a VPC with.

                          - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                          A complex type that contains the VPC ID and region for the VPC that you want to authorize associating /// with your hosted zone.

                          - pub vpc: std::option::Option, + pub vpc: std::option::Option, } -impl std::fmt::Debug for CreateVPCAssociationAuthorizationInput { +impl std::fmt::Debug for CreateVpcAssociationAuthorizationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVPCAssociationAuthorizationInput"); + let mut formatter = f.debug_struct("CreateVpcAssociationAuthorizationInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("vpc", &self.vpc); formatter.finish() @@ -12156,7 +12946,7 @@ impl std::fmt::Debug for CreateVPCAssociationAuthorizationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateTrafficPolicyVersionInput { ///

                          The ID of the traffic policy for which you want to create a new version.

                          - pub id: std::string::String, + pub id: std::option::Option, ///

                          The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion /// request. For more information about the JSON format, see /// CreateTrafficPolicy.

                          @@ -12362,7 +13152,7 @@ pub struct CreateHostedZoneInput { ///

                          You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, /// use AssociateVPCWithHostedZone /// after you create a hosted zone.

                          - pub vpc: std::option::Option, + pub vpc: std::option::Option, ///

                          A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without /// the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a /// CreateHostedZone request. CallerReference can be any unique string, for example, a date/time stamp.

                          @@ -12447,9 +13237,9 @@ pub struct ChangeTagsForResourceInput { ///

                          The resource type for hosted zones is hostedzone.

                          /// ///
                        - pub resource_type: crate::model::TagResourceType, + pub resource_type: std::option::Option, ///

                        The ID of the resource for which you want to add, change, or delete tags.

                        - pub resource_id: std::string::String, + pub resource_id: std::option::Option, ///

                        A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags /// that you want to edit Value for.

                        ///

                        You can add a maximum of 10 tags to a health check or a hosted zone.

                        @@ -12474,7 +13264,7 @@ impl std::fmt::Debug for ChangeTagsForResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ChangeResourceRecordSetsInput { ///

                        The ID of the hosted zone that contains the resource record sets that you want to change.

                        - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                        A complex type that contains an optional comment and the Changes element.

                        pub change_batch: std::option::Option, } @@ -12490,19 +13280,19 @@ impl std::fmt::Debug for ChangeResourceRecordSetsInput { ///

                        A complex type that contains information about the request to associate a VPC with a private hosted zone.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateVPCWithHostedZoneInput { +pub struct AssociateVpcWithHostedZoneInput { ///

                        The ID of the private hosted zone that you want to associate an Amazon VPC with.

                        ///

                        Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.

                        - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                        A complex type that contains information about the VPC that you want to associate with a private hosted zone.

                        - pub vpc: std::option::Option, + pub vpc: std::option::Option, ///

                        /// Optional: A comment about the association request.

                        pub comment: std::option::Option, } -impl std::fmt::Debug for AssociateVPCWithHostedZoneInput { +impl std::fmt::Debug for AssociateVpcWithHostedZoneInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateVPCWithHostedZoneInput"); + let mut formatter = f.debug_struct("AssociateVpcWithHostedZoneInput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("vpc", &self.vpc); formatter.field("comment", &self.comment); @@ -12514,10 +13304,10 @@ impl std::fmt::Debug for AssociateVPCWithHostedZoneInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ActivateKeySigningKeyInput { ///

                        A unique string used to identify a hosted zone.

                        - pub hosted_zone_id: std::string::String, + pub hosted_zone_id: std::option::Option, ///

                        A string used to identify a key-signing key (KSK). Name can include numbers, letters, and underscores (_). Name must be unique for each key-signing key in the same /// hosted zone.

                        - pub name: std::string::String, + pub name: std::option::Option, } impl std::fmt::Debug for ActivateKeySigningKeyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/route53/src/lib.rs b/sdk/route53/src/lib.rs index 8f329643e7fd..880bac5fe135 100644 --- a/sdk/route53/src/lib.rs +++ b/sdk/route53/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

                        Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service.

                        // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. diff --git a/sdk/route53/src/model.rs b/sdk/route53/src/model.rs index 0b2a5d4b84bc..f00064ac38fe 100644 --- a/sdk/route53/src/model.rs +++ b/sdk/route53/src/model.rs @@ -253,7 +253,7 @@ impl std::convert::From<&str> for RrType { impl std::str::FromStr for RrType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RrType::from(s)) } } @@ -282,15 +282,6 @@ impl AsRef for RrType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RrType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains settings for a traffic policy.

                        #[non_exhaustive] @@ -1093,7 +1084,7 @@ impl std::convert::From<&str> for Statistic { impl std::str::FromStr for Statistic { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Statistic::from(s)) } } @@ -1114,15 +1105,6 @@ impl AsRef for Statistic { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Statistic { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1156,7 +1138,7 @@ impl std::convert::From<&str> for ComparisonOperator { impl std::str::FromStr for ComparisonOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComparisonOperator::from(s)) } } @@ -1176,15 +1158,6 @@ impl AsRef for ComparisonOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComparisonOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains information about the health check.

                        #[non_exhaustive] @@ -1982,7 +1955,7 @@ impl std::convert::From<&str> for InsufficientDataHealthStatus { impl std::str::FromStr for InsufficientDataHealthStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InsufficientDataHealthStatus::from(s)) } } @@ -2001,15 +1974,6 @@ impl AsRef for InsufficientDataHealthStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InsufficientDataHealthStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether /// the specified health check is healthy.

                        @@ -2186,7 +2150,7 @@ impl std::convert::From<&str> for CloudWatchRegion { impl std::str::FromStr for CloudWatchRegion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CloudWatchRegion::from(s)) } } @@ -2229,15 +2193,6 @@ impl AsRef for CloudWatchRegion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CloudWatchRegion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2279,7 +2234,7 @@ impl std::convert::From<&str> for HealthCheckRegion { impl std::str::FromStr for HealthCheckRegion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HealthCheckRegion::from(s)) } } @@ -2303,15 +2258,6 @@ impl AsRef for HealthCheckRegion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HealthCheckRegion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2351,7 +2297,7 @@ impl std::convert::From<&str> for HealthCheckType { impl std::str::FromStr for HealthCheckType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HealthCheckType::from(s)) } } @@ -2374,15 +2320,6 @@ impl AsRef for HealthCheckType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HealthCheckType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2416,7 +2353,7 @@ impl std::convert::From<&str> for ResettableElementName { impl std::str::FromStr for ResettableElementName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResettableElementName::from(s)) } } @@ -2436,36 +2373,27 @@ impl AsRef for ResettableElementName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResettableElementName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        (Private hosted zones only) A complex type that contains information about an Amazon VPC.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VPC { +pub struct Vpc { ///

                        (Private hosted zones only) The region that an Amazon VPC was created in.

                        pub vpc_region: std::option::Option, ///

                        (Private hosted zones only) The ID of an Amazon VPC.

                        pub vpc_id: std::option::Option, } -impl std::fmt::Debug for VPC { +impl std::fmt::Debug for Vpc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VPC"); + let mut formatter = f.debug_struct("Vpc"); formatter.field("vpc_region", &self.vpc_region); formatter.field("vpc_id", &self.vpc_id); formatter.finish() } } -/// See [`VPC`](crate::model::VPC) +/// See [`Vpc`](crate::model::Vpc) pub mod vpc { - /// A builder for [`VPC`](crate::model::VPC) + /// A builder for [`Vpc`](crate::model::Vpc) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2494,17 +2422,17 @@ pub mod vpc { self.vpc_id = input; self } - /// Consumes the builder and constructs a [`VPC`](crate::model::VPC) - pub fn build(self) -> crate::model::VPC { - crate::model::VPC { + /// Consumes the builder and constructs a [`Vpc`](crate::model::Vpc) + pub fn build(self) -> crate::model::Vpc { + crate::model::Vpc { vpc_region: self.vpc_region, vpc_id: self.vpc_id, } } } } -impl VPC { - /// Creates a new builder-style object to manufacture [`VPC`](crate::model::VPC) +impl Vpc { + /// Creates a new builder-style object to manufacture [`Vpc`](crate::model::Vpc) pub fn builder() -> crate::model::vpc::Builder { crate::model::vpc::Builder::default() } @@ -2586,7 +2514,7 @@ impl std::convert::From<&str> for VpcRegion { impl std::str::FromStr for VpcRegion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VpcRegion::from(s)) } } @@ -2628,15 +2556,6 @@ impl AsRef for VpcRegion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VpcRegion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains information about the latest version of one traffic policy /// that is associated with the current AWS account.

                        @@ -2993,7 +2912,7 @@ impl std::convert::From<&str> for TagResourceType { impl std::str::FromStr for TagResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TagResourceType::from(s)) } } @@ -3011,15 +2930,6 @@ impl AsRef for TagResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TagResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that lists the name servers in a delegation set, as well as the CallerReference and the ID /// for the delegation set.

                        @@ -5052,7 +4962,7 @@ impl std::convert::From<&str> for ResourceRecordSetFailover { impl std::str::FromStr for ResourceRecordSetFailover { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceRecordSetFailover::from(s)) } } @@ -5070,15 +4980,6 @@ impl AsRef for ResourceRecordSetFailover { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceRecordSetFailover { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains information about a geographic location.

                        #[non_exhaustive] @@ -5309,7 +5210,7 @@ impl std::convert::From<&str> for ResourceRecordSetRegion { impl std::str::FromStr for ResourceRecordSetRegion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceRecordSetRegion::from(s)) } } @@ -5348,15 +5249,6 @@ impl AsRef for ResourceRecordSetRegion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceRecordSetRegion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains information about a configuration for DNS query logging.

                        #[non_exhaustive] @@ -5829,7 +5721,7 @@ impl std::convert::From<&str> for ReusableDelegationSetLimitType { impl std::str::FromStr for ReusableDelegationSetLimitType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReusableDelegationSetLimitType::from(s)) } } @@ -5848,15 +5740,6 @@ impl AsRef for ReusableDelegationSetLimitType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReusableDelegationSetLimitType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains the type of limit that you specified in the request and the current value for that limit.

                        #[non_exhaustive] @@ -5974,7 +5857,7 @@ impl std::convert::From<&str> for HostedZoneLimitType { impl std::str::FromStr for HostedZoneLimitType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HostedZoneLimitType::from(s)) } } @@ -5992,15 +5875,6 @@ impl AsRef for HostedZoneLimitType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HostedZoneLimitType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains the last failure reason as reported by one Amazon Route 53 health checker.

                        #[non_exhaustive] @@ -6598,7 +6472,7 @@ impl KeySigningKey { ///

                        A string repesenting the status of DNSSEC signing.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DNSSECStatus { +pub struct DnssecStatus { ///

                        A string that represents the current hosted zone signing status.

                        ///

                        Status can have one of the following values:

                        ///
                        @@ -6632,17 +6506,17 @@ pub struct DNSSECStatus { /// includes information about what the problem might be and steps that you can take to correct the issue.

                        pub status_message: std::option::Option, } -impl std::fmt::Debug for DNSSECStatus { +impl std::fmt::Debug for DnssecStatus { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DNSSECStatus"); + let mut formatter = f.debug_struct("DnssecStatus"); formatter.field("serve_signature", &self.serve_signature); formatter.field("status_message", &self.status_message); formatter.finish() } } -/// See [`DNSSECStatus`](crate::model::DNSSECStatus) +/// See [`DnssecStatus`](crate::model::DnssecStatus) pub mod dnssec_status { - /// A builder for [`DNSSECStatus`](crate::model::DNSSECStatus) + /// A builder for [`DnssecStatus`](crate::model::DnssecStatus) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6702,17 +6576,17 @@ pub mod dnssec_status { self.status_message = input; self } - /// Consumes the builder and constructs a [`DNSSECStatus`](crate::model::DNSSECStatus) - pub fn build(self) -> crate::model::DNSSECStatus { - crate::model::DNSSECStatus { + /// Consumes the builder and constructs a [`DnssecStatus`](crate::model::DnssecStatus) + pub fn build(self) -> crate::model::DnssecStatus { + crate::model::DnssecStatus { serve_signature: self.serve_signature, status_message: self.status_message, } } } } -impl DNSSECStatus { - /// Creates a new builder-style object to manufacture [`DNSSECStatus`](crate::model::DNSSECStatus) +impl DnssecStatus { + /// Creates a new builder-style object to manufacture [`DnssecStatus`](crate::model::DnssecStatus) pub fn builder() -> crate::model::dnssec_status::Builder { crate::model::dnssec_status::Builder::default() } @@ -6856,7 +6730,7 @@ impl std::convert::From<&str> for ChangeStatus { impl std::str::FromStr for ChangeStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeStatus::from(s)) } } @@ -6874,15 +6748,6 @@ impl AsRef for ChangeStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A complex type that contains the type of limit that you specified in the request and the current value for that limit.

                        #[non_exhaustive] @@ -7044,7 +6909,7 @@ impl std::convert::From<&str> for AccountLimitType { impl std::str::FromStr for AccountLimitType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AccountLimitType::from(s)) } } @@ -7069,15 +6934,6 @@ impl AsRef for AccountLimitType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AccountLimitType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        The information for a change request.

                        #[non_exhaustive] @@ -7289,7 +7145,7 @@ impl std::convert::From<&str> for ChangeAction { impl std::str::FromStr for ChangeAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ChangeAction::from(s)) } } @@ -7308,12 +7164,3 @@ impl AsRef for ChangeAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ChangeAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/route53/src/operation.rs b/sdk/route53/src/operation.rs index a926885d41a2..cef66f9b5497 100644 --- a/sdk/route53/src/operation.rs +++ b/sdk/route53/src/operation.rs @@ -44,7 +44,7 @@ pub struct AssociateVPCWithHostedZone { _private: (), } impl AssociateVPCWithHostedZone { - /// Creates a new builder-style object to manufacture [`AssociateVPCWithHostedZoneInput`](crate::input::AssociateVPCWithHostedZoneInput) + /// Creates a new builder-style object to manufacture [`AssociateVpcWithHostedZoneInput`](crate::input::AssociateVpcWithHostedZoneInput) pub fn builder() -> crate::input::associate_vpc_with_hosted_zone_input::Builder { crate::input::associate_vpc_with_hosted_zone_input::Builder::default() } @@ -54,7 +54,7 @@ impl AssociateVPCWithHostedZone { } impl smithy_http::response::ParseStrictResponse for AssociateVPCWithHostedZone { type Output = std::result::Result< - crate::output::AssociateVPCWithHostedZoneOutput, + crate::output::AssociateVpcWithHostedZoneOutput, crate::error::AssociateVPCWithHostedZoneError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -667,7 +667,7 @@ pub struct CreateVPCAssociationAuthorization { _private: (), } impl CreateVPCAssociationAuthorization { - /// Creates a new builder-style object to manufacture [`CreateVPCAssociationAuthorizationInput`](crate::input::CreateVPCAssociationAuthorizationInput) + /// Creates a new builder-style object to manufacture [`CreateVpcAssociationAuthorizationInput`](crate::input::CreateVpcAssociationAuthorizationInput) pub fn builder() -> crate::input::create_vpc_association_authorization_input::Builder { crate::input::create_vpc_association_authorization_input::Builder::default() } @@ -677,7 +677,7 @@ impl CreateVPCAssociationAuthorization { } impl smithy_http::response::ParseStrictResponse for CreateVPCAssociationAuthorization { type Output = std::result::Result< - crate::output::CreateVPCAssociationAuthorizationOutput, + crate::output::CreateVpcAssociationAuthorizationOutput, crate::error::CreateVPCAssociationAuthorizationError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1000,7 +1000,7 @@ pub struct DeleteVPCAssociationAuthorization { _private: (), } impl DeleteVPCAssociationAuthorization { - /// Creates a new builder-style object to manufacture [`DeleteVPCAssociationAuthorizationInput`](crate::input::DeleteVPCAssociationAuthorizationInput) + /// Creates a new builder-style object to manufacture [`DeleteVpcAssociationAuthorizationInput`](crate::input::DeleteVpcAssociationAuthorizationInput) pub fn builder() -> crate::input::delete_vpc_association_authorization_input::Builder { crate::input::delete_vpc_association_authorization_input::Builder::default() } @@ -1010,7 +1010,7 @@ impl DeleteVPCAssociationAuthorization { } impl smithy_http::response::ParseStrictResponse for DeleteVPCAssociationAuthorization { type Output = std::result::Result< - crate::output::DeleteVPCAssociationAuthorizationOutput, + crate::output::DeleteVpcAssociationAuthorizationOutput, crate::error::DeleteVPCAssociationAuthorizationError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1029,7 +1029,7 @@ pub struct DisableHostedZoneDNSSEC { _private: (), } impl DisableHostedZoneDNSSEC { - /// Creates a new builder-style object to manufacture [`DisableHostedZoneDNSSECInput`](crate::input::DisableHostedZoneDNSSECInput) + /// Creates a new builder-style object to manufacture [`DisableHostedZoneDnssecInput`](crate::input::DisableHostedZoneDnssecInput) pub fn builder() -> crate::input::disable_hosted_zone_dnssec_input::Builder { crate::input::disable_hosted_zone_dnssec_input::Builder::default() } @@ -1039,7 +1039,7 @@ impl DisableHostedZoneDNSSEC { } impl smithy_http::response::ParseStrictResponse for DisableHostedZoneDNSSEC { type Output = std::result::Result< - crate::output::DisableHostedZoneDNSSECOutput, + crate::output::DisableHostedZoneDnssecOutput, crate::error::DisableHostedZoneDNSSECError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1077,7 +1077,7 @@ pub struct DisassociateVPCFromHostedZone { _private: (), } impl DisassociateVPCFromHostedZone { - /// Creates a new builder-style object to manufacture [`DisassociateVPCFromHostedZoneInput`](crate::input::DisassociateVPCFromHostedZoneInput) + /// Creates a new builder-style object to manufacture [`DisassociateVpcFromHostedZoneInput`](crate::input::DisassociateVpcFromHostedZoneInput) pub fn builder() -> crate::input::disassociate_vpc_from_hosted_zone_input::Builder { crate::input::disassociate_vpc_from_hosted_zone_input::Builder::default() } @@ -1087,7 +1087,7 @@ impl DisassociateVPCFromHostedZone { } impl smithy_http::response::ParseStrictResponse for DisassociateVPCFromHostedZone { type Output = std::result::Result< - crate::output::DisassociateVPCFromHostedZoneOutput, + crate::output::DisassociateVpcFromHostedZoneOutput, crate::error::DisassociateVPCFromHostedZoneError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1105,7 +1105,7 @@ pub struct EnableHostedZoneDNSSEC { _private: (), } impl EnableHostedZoneDNSSEC { - /// Creates a new builder-style object to manufacture [`EnableHostedZoneDNSSECInput`](crate::input::EnableHostedZoneDNSSECInput) + /// Creates a new builder-style object to manufacture [`EnableHostedZoneDnssecInput`](crate::input::EnableHostedZoneDnssecInput) pub fn builder() -> crate::input::enable_hosted_zone_dnssec_input::Builder { crate::input::enable_hosted_zone_dnssec_input::Builder::default() } @@ -1115,7 +1115,7 @@ impl EnableHostedZoneDNSSEC { } impl smithy_http::response::ParseStrictResponse for EnableHostedZoneDNSSEC { type Output = std::result::Result< - crate::output::EnableHostedZoneDNSSECOutput, + crate::output::EnableHostedZoneDnssecOutput, crate::error::EnableHostedZoneDNSSECError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1242,7 +1242,7 @@ pub struct GetDNSSEC { _private: (), } impl GetDNSSEC { - /// Creates a new builder-style object to manufacture [`GetDNSSECInput`](crate::input::GetDNSSECInput) + /// Creates a new builder-style object to manufacture [`GetDnssecInput`](crate::input::GetDnssecInput) pub fn builder() -> crate::input::get_dnssec_input::Builder { crate::input::get_dnssec_input::Builder::default() } @@ -1251,7 +1251,7 @@ impl GetDNSSEC { } } impl smithy_http::response::ParseStrictResponse for GetDNSSEC { - type Output = std::result::Result; + type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_get_dnssec_error(response) @@ -1865,7 +1865,7 @@ pub struct ListHostedZonesByVPC { _private: (), } impl ListHostedZonesByVPC { - /// Creates a new builder-style object to manufacture [`ListHostedZonesByVPCInput`](crate::input::ListHostedZonesByVPCInput) + /// Creates a new builder-style object to manufacture [`ListHostedZonesByVpcInput`](crate::input::ListHostedZonesByVpcInput) pub fn builder() -> crate::input::list_hosted_zones_by_vpc_input::Builder { crate::input::list_hosted_zones_by_vpc_input::Builder::default() } @@ -1875,7 +1875,7 @@ impl ListHostedZonesByVPC { } impl smithy_http::response::ParseStrictResponse for ListHostedZonesByVPC { type Output = std::result::Result< - crate::output::ListHostedZonesByVPCOutput, + crate::output::ListHostedZonesByVpcOutput, crate::error::ListHostedZonesByVPCError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2275,7 +2275,7 @@ pub struct ListVPCAssociationAuthorizations { _private: (), } impl ListVPCAssociationAuthorizations { - /// Creates a new builder-style object to manufacture [`ListVPCAssociationAuthorizationsInput`](crate::input::ListVPCAssociationAuthorizationsInput) + /// Creates a new builder-style object to manufacture [`ListVpcAssociationAuthorizationsInput`](crate::input::ListVpcAssociationAuthorizationsInput) pub fn builder() -> crate::input::list_vpc_association_authorizations_input::Builder { crate::input::list_vpc_association_authorizations_input::Builder::default() } @@ -2285,7 +2285,7 @@ impl ListVPCAssociationAuthorizations { } impl smithy_http::response::ParseStrictResponse for ListVPCAssociationAuthorizations { type Output = std::result::Result< - crate::output::ListVPCAssociationAuthorizationsOutput, + crate::output::ListVpcAssociationAuthorizationsOutput, crate::error::ListVPCAssociationAuthorizationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -2305,7 +2305,7 @@ pub struct TestDNSAnswer { _private: (), } impl TestDNSAnswer { - /// Creates a new builder-style object to manufacture [`TestDNSAnswerInput`](crate::input::TestDNSAnswerInput) + /// Creates a new builder-style object to manufacture [`TestDnsAnswerInput`](crate::input::TestDnsAnswerInput) pub fn builder() -> crate::input::test_dns_answer_input::Builder { crate::input::test_dns_answer_input::Builder::default() } @@ -2315,7 +2315,7 @@ impl TestDNSAnswer { } impl smithy_http::response::ParseStrictResponse for TestDNSAnswer { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { if !response.status().is_success() && response.status().as_u16() != 200 { crate::operation_deser::parse_test_dns_answer_error(response) diff --git a/sdk/route53/src/operation_deser.rs b/sdk/route53/src/operation_deser.rs index 80b3eff577ea..9cafd6ecc55c 100644 --- a/sdk/route53/src/operation_deser.rs +++ b/sdk/route53/src/operation_deser.rs @@ -43,7 +43,7 @@ pub fn parse_activate_key_signing_key_error( }, "InvalidKMSArn" => crate::error::ActivateKeySigningKeyError { meta: generic, - kind: crate::error::ActivateKeySigningKeyErrorKind::InvalidKMSArn({ + kind: crate::error::ActivateKeySigningKeyErrorKind::InvalidKmsArn({ #[allow(unused_mut)] let mut output = crate::error::invalid_kms_arn::Builder::default(); let _ = response; @@ -111,7 +111,7 @@ pub fn parse_activate_key_signing_key_response( pub fn parse_associate_vpc_with_hosted_zone_error( response: &http::Response, ) -> std::result::Result< - crate::output::AssociateVPCWithHostedZoneOutput, + crate::output::AssociateVpcWithHostedZoneOutput, crate::error::AssociateVPCWithHostedZoneError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -155,7 +155,7 @@ pub fn parse_associate_vpc_with_hosted_zone_error( }, "InvalidVPCId" => crate::error::AssociateVPCWithHostedZoneError { meta: generic, - kind: crate::error::AssociateVPCWithHostedZoneErrorKind::InvalidVPCId({ + kind: crate::error::AssociateVPCWithHostedZoneErrorKind::InvalidVpcId({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_id::Builder::default(); let _ = response; @@ -197,11 +197,11 @@ pub fn parse_associate_vpc_with_hosted_zone_error( }, "NotAuthorizedException" => crate::error::AssociateVPCWithHostedZoneError { meta: generic, - kind: crate::error::AssociateVPCWithHostedZoneErrorKind::NotAuthorizedError({ + kind: crate::error::AssociateVPCWithHostedZoneErrorKind::NotAuthorizedException({ #[allow(unused_mut)] - let mut output = crate::error::not_authorized_error::Builder::default(); + let mut output = crate::error::not_authorized_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_authorized_error_xml_err( + output = crate::xml_deser::deser_structure_not_authorized_exception_xml_err( response.body().as_ref(), output, ) @@ -225,7 +225,7 @@ pub fn parse_associate_vpc_with_hosted_zone_error( }, "PublicZoneVPCAssociation" => crate::error::AssociateVPCWithHostedZoneError { meta: generic, - kind: crate::error::AssociateVPCWithHostedZoneErrorKind::PublicZoneVPCAssociation({ + kind: crate::error::AssociateVPCWithHostedZoneErrorKind::PublicZoneVpcAssociation({ #[allow(unused_mut)] let mut output = crate::error::public_zone_vpc_association::Builder::default(); let _ = response; @@ -245,7 +245,7 @@ pub fn parse_associate_vpc_with_hosted_zone_error( pub fn parse_associate_vpc_with_hosted_zone_response( response: &http::Response, ) -> std::result::Result< - crate::output::AssociateVPCWithHostedZoneOutput, + crate::output::AssociateVpcWithHostedZoneOutput, crate::error::AssociateVPCWithHostedZoneError, > { Ok({ @@ -445,11 +445,11 @@ pub fn parse_change_tags_for_resource_error( }, "ThrottlingException" => crate::error::ChangeTagsForResourceError { meta: generic, - kind: crate::error::ChangeTagsForResourceErrorKind::ThrottlingError({ + kind: crate::error::ChangeTagsForResourceErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttling_error_xml_err( + output = crate::xml_deser::deser_structure_throttling_exception_xml_err( response.body().as_ref(), output, ) @@ -547,12 +547,8 @@ pub fn parse_create_health_check_response( crate::xml_deser::deser_operation_create_health_check(response.body().as_ref(), output) .map_err(crate::error::CreateHealthCheckError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_health_check_location(response.headers()) - .map_err(|_| { - crate::error::CreateHealthCheckError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_health_check_create_health_check_output_location(response.headers()) + .map_err(|_|crate::error::CreateHealthCheckError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -656,7 +652,7 @@ pub fn parse_create_hosted_zone_error( }, "InvalidVPCId" => crate::error::CreateHostedZoneError { meta: generic, - kind: crate::error::CreateHostedZoneErrorKind::InvalidVPCId({ + kind: crate::error::CreateHostedZoneErrorKind::InvalidVpcId({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_id::Builder::default(); let _ = response; @@ -713,12 +709,14 @@ pub fn parse_create_hosted_zone_response( crate::xml_deser::deser_operation_create_hosted_zone(response.body().as_ref(), output) .map_err(crate::error::CreateHostedZoneError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_hosted_zone_location(response.headers()) - .map_err(|_| { - crate::error::CreateHostedZoneError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_hosted_zone_create_hosted_zone_output_location( + response.headers(), + ) + .map_err(|_| { + crate::error::CreateHostedZoneError::unhandled( + "Failed to parse Location from header `Location", + ) + })?, ); output.build() }) @@ -810,7 +808,7 @@ pub fn parse_create_key_signing_key_error( }, "InvalidKMSArn" => crate::error::CreateKeySigningKeyError { meta: generic, - kind: crate::error::CreateKeySigningKeyErrorKind::InvalidKMSArn({ + kind: crate::error::CreateKeySigningKeyErrorKind::InvalidKmsArn({ #[allow(unused_mut)] let mut output = crate::error::invalid_kms_arn::Builder::default(); let _ = response; @@ -899,12 +897,8 @@ pub fn parse_create_key_signing_key_response( ) .map_err(crate::error::CreateKeySigningKeyError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_key_signing_key_location(response.headers()) - .map_err(|_| { - crate::error::CreateKeySigningKeyError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_key_signing_key_create_key_signing_key_output_location(response.headers()) + .map_err(|_|crate::error::CreateKeySigningKeyError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -985,14 +979,8 @@ pub fn parse_create_query_logging_config_response( ) .map_err(crate::error::CreateQueryLoggingConfigError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_query_logging_config_location( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateQueryLoggingConfigError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_query_logging_config_create_query_logging_config_output_location(response.headers()) + .map_err(|_|crate::error::CreateQueryLoggingConfigError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -1139,14 +1127,8 @@ pub fn parse_create_reusable_delegation_set_response( ) .map_err(crate::error::CreateReusableDelegationSetError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_reusable_delegation_set_location( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateReusableDelegationSetError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_reusable_delegation_set_create_reusable_delegation_set_output_location(response.headers()) + .map_err(|_|crate::error::CreateReusableDelegationSetError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -1243,12 +1225,8 @@ pub fn parse_create_traffic_policy_response( ) .map_err(crate::error::CreateTrafficPolicyError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_traffic_policy_location(response.headers()) - .map_err(|_| { - crate::error::CreateTrafficPolicyError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_traffic_policy_create_traffic_policy_output_location(response.headers()) + .map_err(|_|crate::error::CreateTrafficPolicyError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -1323,14 +1301,8 @@ pub fn parse_create_traffic_policy_instance_response( ) .map_err(crate::error::CreateTrafficPolicyInstanceError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_traffic_policy_instance_location( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateTrafficPolicyInstanceError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_traffic_policy_instance_create_traffic_policy_instance_output_location(response.headers()) + .map_err(|_|crate::error::CreateTrafficPolicyInstanceError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -1405,14 +1377,8 @@ pub fn parse_create_traffic_policy_version_response( ) .map_err(crate::error::CreateTrafficPolicyVersionError::unhandled)?; output = output.set_location( - crate::http_serde::deser_header_create_traffic_policy_version_location( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateTrafficPolicyVersionError::unhandled( - "Failed to parse Location from header `Location", - ) - })?, + crate::http_serde::deser_header_create_traffic_policy_version_create_traffic_policy_version_output_location(response.headers()) + .map_err(|_|crate::error::CreateTrafficPolicyVersionError::unhandled("Failed to parse Location from header `Location"))? ); output.build() }) @@ -1422,7 +1388,7 @@ pub fn parse_create_traffic_policy_version_response( pub fn parse_create_vpc_association_authorization_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateVPCAssociationAuthorizationOutput, + crate::output::CreateVpcAssociationAuthorizationOutput, crate::error::CreateVPCAssociationAuthorizationError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1446,7 +1412,7 @@ pub fn parse_create_vpc_association_authorization_error( output = crate::xml_deser::deser_structure_invalid_input_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateVPCAssociationAuthorizationError::unhandled)?; output.build() })}, - "InvalidVPCId" => crate::error::CreateVPCAssociationAuthorizationError { meta: generic, kind: crate::error::CreateVPCAssociationAuthorizationErrorKind::InvalidVPCId({ + "InvalidVPCId" => crate::error::CreateVPCAssociationAuthorizationError { meta: generic, kind: crate::error::CreateVPCAssociationAuthorizationErrorKind::InvalidVpcId({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_id::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_id_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateVPCAssociationAuthorizationError::unhandled)?; @@ -1458,7 +1424,7 @@ pub fn parse_create_vpc_association_authorization_error( output = crate::xml_deser::deser_structure_no_such_hosted_zone_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateVPCAssociationAuthorizationError::unhandled)?; output.build() })}, - "TooManyVPCAssociationAuthorizations" => crate::error::CreateVPCAssociationAuthorizationError { meta: generic, kind: crate::error::CreateVPCAssociationAuthorizationErrorKind::TooManyVPCAssociationAuthorizations({ + "TooManyVPCAssociationAuthorizations" => crate::error::CreateVPCAssociationAuthorizationError { meta: generic, kind: crate::error::CreateVPCAssociationAuthorizationErrorKind::TooManyVpcAssociationAuthorizations({ #[allow(unused_mut)]let mut output = crate::error::too_many_vpc_association_authorizations::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_too_many_vpc_association_authorizations_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateVPCAssociationAuthorizationError::unhandled)?; @@ -1472,7 +1438,7 @@ pub fn parse_create_vpc_association_authorization_error( pub fn parse_create_vpc_association_authorization_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateVPCAssociationAuthorizationOutput, + crate::output::CreateVpcAssociationAuthorizationOutput, crate::error::CreateVPCAssociationAuthorizationError, > { Ok({ @@ -1552,7 +1518,7 @@ pub fn parse_deactivate_key_signing_key_error( "KeySigningKeyInParentDSRecord" => { crate::error::DeactivateKeySigningKeyError { meta: generic, - kind: crate::error::DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDSRecord( + kind: crate::error::DeactivateKeySigningKeyErrorKind::KeySigningKeyInParentDsRecord( { #[allow(unused_mut)] let mut output = @@ -1833,7 +1799,7 @@ pub fn parse_delete_key_signing_key_error( }, "InvalidKMSArn" => crate::error::DeleteKeySigningKeyError { meta: generic, - kind: crate::error::DeleteKeySigningKeyErrorKind::InvalidKMSArn({ + kind: crate::error::DeleteKeySigningKeyErrorKind::InvalidKmsArn({ #[allow(unused_mut)] let mut output = crate::error::invalid_kms_arn::Builder::default(); let _ = response; @@ -2243,7 +2209,7 @@ pub fn parse_delete_traffic_policy_instance_response( pub fn parse_delete_vpc_association_authorization_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteVPCAssociationAuthorizationOutput, + crate::output::DeleteVpcAssociationAuthorizationOutput, crate::error::DeleteVPCAssociationAuthorizationError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2267,7 +2233,7 @@ pub fn parse_delete_vpc_association_authorization_error( output = crate::xml_deser::deser_structure_invalid_input_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteVPCAssociationAuthorizationError::unhandled)?; output.build() })}, - "InvalidVPCId" => crate::error::DeleteVPCAssociationAuthorizationError { meta: generic, kind: crate::error::DeleteVPCAssociationAuthorizationErrorKind::InvalidVPCId({ + "InvalidVPCId" => crate::error::DeleteVPCAssociationAuthorizationError { meta: generic, kind: crate::error::DeleteVPCAssociationAuthorizationErrorKind::InvalidVpcId({ #[allow(unused_mut)]let mut output = crate::error::invalid_vpc_id::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_invalid_vpc_id_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteVPCAssociationAuthorizationError::unhandled)?; @@ -2279,7 +2245,7 @@ pub fn parse_delete_vpc_association_authorization_error( output = crate::xml_deser::deser_structure_no_such_hosted_zone_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteVPCAssociationAuthorizationError::unhandled)?; output.build() })}, - "VPCAssociationAuthorizationNotFound" => crate::error::DeleteVPCAssociationAuthorizationError { meta: generic, kind: crate::error::DeleteVPCAssociationAuthorizationErrorKind::VPCAssociationAuthorizationNotFound({ + "VPCAssociationAuthorizationNotFound" => crate::error::DeleteVPCAssociationAuthorizationError { meta: generic, kind: crate::error::DeleteVPCAssociationAuthorizationErrorKind::VpcAssociationAuthorizationNotFound({ #[allow(unused_mut)]let mut output = crate::error::vpc_association_authorization_not_found::Builder::default(); let _ = response; output = crate::xml_deser::deser_structure_vpc_association_authorization_not_found_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteVPCAssociationAuthorizationError::unhandled)?; @@ -2293,7 +2259,7 @@ pub fn parse_delete_vpc_association_authorization_error( pub fn parse_delete_vpc_association_authorization_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteVPCAssociationAuthorizationOutput, + crate::output::DeleteVpcAssociationAuthorizationOutput, crate::error::DeleteVPCAssociationAuthorizationError, > { Ok({ @@ -2309,7 +2275,7 @@ pub fn parse_delete_vpc_association_authorization_response( pub fn parse_disable_hosted_zone_dnssec_error( response: &http::Response, ) -> std::result::Result< - crate::output::DisableHostedZoneDNSSECOutput, + crate::output::DisableHostedZoneDnssecOutput, crate::error::DisableHostedZoneDNSSECError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2339,7 +2305,7 @@ pub fn parse_disable_hosted_zone_dnssec_error( }, "DNSSECNotFound" => crate::error::DisableHostedZoneDNSSECError { meta: generic, - kind: crate::error::DisableHostedZoneDNSSECErrorKind::DNSSECNotFound({ + kind: crate::error::DisableHostedZoneDNSSECErrorKind::DnssecNotFound({ #[allow(unused_mut)] let mut output = crate::error::dnssec_not_found::Builder::default(); let _ = response; @@ -2381,7 +2347,7 @@ pub fn parse_disable_hosted_zone_dnssec_error( }, "InvalidKMSArn" => crate::error::DisableHostedZoneDNSSECError { meta: generic, - kind: crate::error::DisableHostedZoneDNSSECErrorKind::InvalidKMSArn({ + kind: crate::error::DisableHostedZoneDNSSECErrorKind::InvalidKmsArn({ #[allow(unused_mut)] let mut output = crate::error::invalid_kms_arn::Builder::default(); let _ = response; @@ -2396,7 +2362,7 @@ pub fn parse_disable_hosted_zone_dnssec_error( "KeySigningKeyInParentDSRecord" => { crate::error::DisableHostedZoneDNSSECError { meta: generic, - kind: crate::error::DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDSRecord( + kind: crate::error::DisableHostedZoneDNSSECErrorKind::KeySigningKeyInParentDsRecord( { #[allow(unused_mut)] let mut output = @@ -2430,7 +2396,7 @@ pub fn parse_disable_hosted_zone_dnssec_error( pub fn parse_disable_hosted_zone_dnssec_response( response: &http::Response, ) -> std::result::Result< - crate::output::DisableHostedZoneDNSSECOutput, + crate::output::DisableHostedZoneDnssecOutput, crate::error::DisableHostedZoneDNSSECError, > { Ok({ @@ -2450,7 +2416,7 @@ pub fn parse_disable_hosted_zone_dnssec_response( pub fn parse_disassociate_vpc_from_hosted_zone_error( response: &http::Response, ) -> std::result::Result< - crate::output::DisassociateVPCFromHostedZoneOutput, + crate::output::DisassociateVpcFromHostedZoneOutput, crate::error::DisassociateVPCFromHostedZoneError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2480,7 +2446,7 @@ pub fn parse_disassociate_vpc_from_hosted_zone_error( }, "InvalidVPCId" => crate::error::DisassociateVPCFromHostedZoneError { meta: generic, - kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::InvalidVPCId({ + kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::InvalidVpcId({ #[allow(unused_mut)] let mut output = crate::error::invalid_vpc_id::Builder::default(); let _ = response; @@ -2494,7 +2460,7 @@ pub fn parse_disassociate_vpc_from_hosted_zone_error( }, "LastVPCAssociation" => crate::error::DisassociateVPCFromHostedZoneError { meta: generic, - kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::LastVPCAssociation({ + kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::LastVpcAssociation({ #[allow(unused_mut)] let mut output = crate::error::last_vpc_association::Builder::default(); let _ = response; @@ -2522,7 +2488,7 @@ pub fn parse_disassociate_vpc_from_hosted_zone_error( }, "VPCAssociationNotFound" => crate::error::DisassociateVPCFromHostedZoneError { meta: generic, - kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::VPCAssociationNotFound({ + kind: crate::error::DisassociateVPCFromHostedZoneErrorKind::VpcAssociationNotFound({ #[allow(unused_mut)] let mut output = crate::error::vpc_association_not_found::Builder::default(); let _ = response; @@ -2542,7 +2508,7 @@ pub fn parse_disassociate_vpc_from_hosted_zone_error( pub fn parse_disassociate_vpc_from_hosted_zone_response( response: &http::Response, ) -> std::result::Result< - crate::output::DisassociateVPCFromHostedZoneOutput, + crate::output::DisassociateVpcFromHostedZoneOutput, crate::error::DisassociateVPCFromHostedZoneError, > { Ok({ @@ -2563,7 +2529,7 @@ pub fn parse_disassociate_vpc_from_hosted_zone_response( pub fn parse_enable_hosted_zone_dnssec_error( response: &http::Response, ) -> std::result::Result< - crate::output::EnableHostedZoneDNSSECOutput, + crate::output::EnableHostedZoneDnssecOutput, crate::error::EnableHostedZoneDNSSECError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2593,7 +2559,7 @@ pub fn parse_enable_hosted_zone_dnssec_error( }, "DNSSECNotFound" => crate::error::EnableHostedZoneDNSSECError { meta: generic, - kind: crate::error::EnableHostedZoneDNSSECErrorKind::DNSSECNotFound({ + kind: crate::error::EnableHostedZoneDNSSECErrorKind::DnssecNotFound({ #[allow(unused_mut)] let mut output = crate::error::dnssec_not_found::Builder::default(); let _ = response; @@ -2649,7 +2615,7 @@ pub fn parse_enable_hosted_zone_dnssec_error( }, "InvalidKMSArn" => crate::error::EnableHostedZoneDNSSECError { meta: generic, - kind: crate::error::EnableHostedZoneDNSSECErrorKind::InvalidKMSArn({ + kind: crate::error::EnableHostedZoneDNSSECErrorKind::InvalidKmsArn({ #[allow(unused_mut)] let mut output = crate::error::invalid_kms_arn::Builder::default(); let _ = response; @@ -2695,7 +2661,7 @@ pub fn parse_enable_hosted_zone_dnssec_error( pub fn parse_enable_hosted_zone_dnssec_response( response: &http::Response, ) -> std::result::Result< - crate::output::EnableHostedZoneDNSSECOutput, + crate::output::EnableHostedZoneDnssecOutput, crate::error::EnableHostedZoneDNSSECError, > { Ok({ @@ -2847,7 +2813,7 @@ pub fn parse_get_checker_ip_ranges_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_dnssec_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::GetDNSSECError::unhandled)?; let error_code = match generic.code() { @@ -2890,7 +2856,7 @@ pub fn parse_get_dnssec_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_dnssec_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_dnssec_output::Builder::default(); @@ -4020,7 +3986,7 @@ pub fn parse_list_hosted_zones_by_name_response( pub fn parse_list_hosted_zones_by_vpc_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListHostedZonesByVPCOutput, + crate::output::ListHostedZonesByVpcOutput, crate::error::ListHostedZonesByVPCError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4066,7 +4032,7 @@ pub fn parse_list_hosted_zones_by_vpc_error( pub fn parse_list_hosted_zones_by_vpc_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListHostedZonesByVPCOutput, + crate::output::ListHostedZonesByVpcOutput, crate::error::ListHostedZonesByVPCError, > { Ok({ @@ -4364,11 +4330,11 @@ pub fn parse_list_tags_for_resource_error( }, "ThrottlingException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ThrottlingError({ + kind: crate::error::ListTagsForResourceErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttling_error_xml_err( + output = crate::xml_deser::deser_structure_throttling_exception_xml_err( response.body().as_ref(), output, ) @@ -4472,11 +4438,11 @@ pub fn parse_list_tags_for_resources_error( }, "ThrottlingException" => crate::error::ListTagsForResourcesError { meta: generic, - kind: crate::error::ListTagsForResourcesErrorKind::ThrottlingError({ + kind: crate::error::ListTagsForResourcesErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttling_error_xml_err( + output = crate::xml_deser::deser_structure_throttling_exception_xml_err( response.body().as_ref(), output, ) @@ -4824,7 +4790,7 @@ pub fn parse_list_traffic_policy_versions_response( pub fn parse_list_vpc_association_authorizations_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListVPCAssociationAuthorizationsOutput, + crate::output::ListVpcAssociationAuthorizationsOutput, crate::error::ListVPCAssociationAuthorizationsError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -4888,7 +4854,7 @@ pub fn parse_list_vpc_association_authorizations_error( pub fn parse_list_vpc_association_authorizations_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListVPCAssociationAuthorizationsOutput, + crate::output::ListVpcAssociationAuthorizationsOutput, crate::error::ListVPCAssociationAuthorizationsError, > { Ok({ @@ -4908,7 +4874,7 @@ pub fn parse_list_vpc_association_authorizations_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_test_dns_answer_error( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::TestDNSAnswerError::unhandled)?; let error_code = match generic.code() { @@ -4951,7 +4917,7 @@ pub fn parse_test_dns_answer_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_test_dns_answer_response( response: &http::Response, -) -> std::result::Result { +) -> std::result::Result { Ok({ #[allow(unused_mut)] let mut output = crate::output::test_dns_answer_output::Builder::default(); diff --git a/sdk/route53/src/operation_ser.rs b/sdk/route53/src/operation_ser.rs index aa9d826ffd83..232bfb4f80e4 100644 --- a/sdk/route53/src/operation_ser.rs +++ b/sdk/route53/src/operation_ser.rs @@ -1,6 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_associate_vpc_with_hosted_zone( - input: &crate::input::AssociateVPCWithHostedZoneInput, + input: &crate::input::AssociateVpcWithHostedZoneInput, ) -> Result { let mut out = String::new(); { @@ -165,7 +165,7 @@ pub fn serialize_operation_create_traffic_policy_version( } pub fn serialize_operation_create_vpc_association_authorization( - input: &crate::input::CreateVPCAssociationAuthorizationInput, + input: &crate::input::CreateVpcAssociationAuthorizationInput, ) -> Result { let mut out = String::new(); { @@ -182,7 +182,7 @@ pub fn serialize_operation_create_vpc_association_authorization( } pub fn serialize_operation_delete_vpc_association_authorization( - input: &crate::input::DeleteVPCAssociationAuthorizationInput, + input: &crate::input::DeleteVpcAssociationAuthorizationInput, ) -> Result { let mut out = String::new(); { @@ -199,7 +199,7 @@ pub fn serialize_operation_delete_vpc_association_authorization( } pub fn serialize_operation_disassociate_vpc_from_hosted_zone( - input: &crate::input::DisassociateVPCFromHostedZoneInput, + input: &crate::input::DisassociateVpcFromHostedZoneInput, ) -> Result { let mut out = String::new(); { diff --git a/sdk/route53/src/output.rs b/sdk/route53/src/output.rs index ae67a240aec8..f37cd84b2550 100644 --- a/sdk/route53/src/output.rs +++ b/sdk/route53/src/output.rs @@ -207,7 +207,7 @@ impl UpdateHealthCheckOutput { ///

                        A complex type that contains the response to a TestDNSAnswer request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestDNSAnswerOutput { +pub struct TestDnsAnswerOutput { ///

                        The Amazon Route 53 name server used to respond to the request.

                        pub nameserver: std::option::Option, ///

                        The name of the resource record set that you submitted a request for.

                        @@ -224,9 +224,9 @@ pub struct TestDNSAnswerOutput { ///

                        The protocol that Amazon Route 53 used to respond to the request, either UDP or TCP.

                        pub protocol: std::option::Option, } -impl std::fmt::Debug for TestDNSAnswerOutput { +impl std::fmt::Debug for TestDnsAnswerOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestDNSAnswerOutput"); + let mut formatter = f.debug_struct("TestDnsAnswerOutput"); formatter.field("nameserver", &self.nameserver); formatter.field("record_name", &self.record_name); formatter.field("record_type", &self.record_type); @@ -236,9 +236,9 @@ impl std::fmt::Debug for TestDNSAnswerOutput { formatter.finish() } } -/// See [`TestDNSAnswerOutput`](crate::output::TestDNSAnswerOutput) +/// See [`TestDnsAnswerOutput`](crate::output::TestDnsAnswerOutput) pub mod test_dns_answer_output { - /// A builder for [`TestDNSAnswerOutput`](crate::output::TestDNSAnswerOutput) + /// A builder for [`TestDnsAnswerOutput`](crate::output::TestDnsAnswerOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -314,9 +314,9 @@ pub mod test_dns_answer_output { self.protocol = input; self } - /// Consumes the builder and constructs a [`TestDNSAnswerOutput`](crate::output::TestDNSAnswerOutput) - pub fn build(self) -> crate::output::TestDNSAnswerOutput { - crate::output::TestDNSAnswerOutput { + /// Consumes the builder and constructs a [`TestDnsAnswerOutput`](crate::output::TestDnsAnswerOutput) + pub fn build(self) -> crate::output::TestDnsAnswerOutput { + crate::output::TestDnsAnswerOutput { nameserver: self.nameserver, record_name: self.record_name, record_type: self.record_type, @@ -327,8 +327,8 @@ pub mod test_dns_answer_output { } } } -impl TestDNSAnswerOutput { - /// Creates a new builder-style object to manufacture [`TestDNSAnswerOutput`](crate::output::TestDNSAnswerOutput) +impl TestDnsAnswerOutput { + /// Creates a new builder-style object to manufacture [`TestDnsAnswerOutput`](crate::output::TestDnsAnswerOutput) pub fn builder() -> crate::output::test_dns_answer_output::Builder { crate::output::test_dns_answer_output::Builder::default() } @@ -337,7 +337,7 @@ impl TestDNSAnswerOutput { ///

                        A complex type that contains the response information for the request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListVPCAssociationAuthorizationsOutput { +pub struct ListVpcAssociationAuthorizationsOutput { ///

                        The ID of the hosted zone that you can associate the listed VPCs with.

                        pub hosted_zone_id: std::option::Option, ///

                        When the response includes a NextToken element, there are more VPCs that can be associated @@ -345,26 +345,26 @@ pub struct ListVPCAssociationAuthorizationsOutput { /// and include the value of the NextToken element from the response in the nexttoken request parameter.

                        pub next_token: std::option::Option, ///

                        The list of VPCs that are authorized to be associated with the specified hosted zone.

                        - pub vp_cs: std::option::Option>, + pub vp_cs: std::option::Option>, } -impl std::fmt::Debug for ListVPCAssociationAuthorizationsOutput { +impl std::fmt::Debug for ListVpcAssociationAuthorizationsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListVPCAssociationAuthorizationsOutput"); + let mut formatter = f.debug_struct("ListVpcAssociationAuthorizationsOutput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("next_token", &self.next_token); formatter.field("vp_cs", &self.vp_cs); formatter.finish() } } -/// See [`ListVPCAssociationAuthorizationsOutput`](crate::output::ListVPCAssociationAuthorizationsOutput) +/// See [`ListVpcAssociationAuthorizationsOutput`](crate::output::ListVpcAssociationAuthorizationsOutput) pub mod list_vpc_association_authorizations_output { - /// A builder for [`ListVPCAssociationAuthorizationsOutput`](crate::output::ListVPCAssociationAuthorizationsOutput) + /// A builder for [`ListVpcAssociationAuthorizationsOutput`](crate::output::ListVpcAssociationAuthorizationsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, pub(crate) next_token: std::option::Option, - pub(crate) vp_cs: std::option::Option>, + pub(crate) vp_cs: std::option::Option>, } impl Builder { ///

                        The ID of the hosted zone that you can associate the listed VPCs with.

                        @@ -390,7 +390,7 @@ pub mod list_vpc_association_authorizations_output { self.next_token = input; self } - pub fn vp_cs(mut self, input: impl Into) -> Self { + pub fn vp_cs(mut self, input: impl Into) -> Self { let mut v = self.vp_cs.unwrap_or_default(); v.push(input.into()); self.vp_cs = Some(v); @@ -398,14 +398,14 @@ pub mod list_vpc_association_authorizations_output { } pub fn set_vp_cs( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.vp_cs = input; self } - /// Consumes the builder and constructs a [`ListVPCAssociationAuthorizationsOutput`](crate::output::ListVPCAssociationAuthorizationsOutput) - pub fn build(self) -> crate::output::ListVPCAssociationAuthorizationsOutput { - crate::output::ListVPCAssociationAuthorizationsOutput { + /// Consumes the builder and constructs a [`ListVpcAssociationAuthorizationsOutput`](crate::output::ListVpcAssociationAuthorizationsOutput) + pub fn build(self) -> crate::output::ListVpcAssociationAuthorizationsOutput { + crate::output::ListVpcAssociationAuthorizationsOutput { hosted_zone_id: self.hosted_zone_id, next_token: self.next_token, vp_cs: self.vp_cs, @@ -413,8 +413,8 @@ pub mod list_vpc_association_authorizations_output { } } } -impl ListVPCAssociationAuthorizationsOutput { - /// Creates a new builder-style object to manufacture [`ListVPCAssociationAuthorizationsOutput`](crate::output::ListVPCAssociationAuthorizationsOutput) +impl ListVpcAssociationAuthorizationsOutput { + /// Creates a new builder-style object to manufacture [`ListVpcAssociationAuthorizationsOutput`](crate::output::ListVpcAssociationAuthorizationsOutput) pub fn builder() -> crate::output::list_vpc_association_authorizations_output::Builder { crate::output::list_vpc_association_authorizations_output::Builder::default() } @@ -1550,7 +1550,7 @@ impl ListQueryLoggingConfigsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHostedZonesByVPCOutput { +pub struct ListHostedZonesByVpcOutput { ///

                        A list that contains one HostedZoneSummary element for each hosted zone that the specified Amazon VPC is associated with. /// Each HostedZoneSummary element contains the hosted zone name and ID, and information about who owns the hosted zone.

                        pub hosted_zone_summaries: std::option::Option>, @@ -1559,18 +1559,18 @@ pub struct ListHostedZonesByVPCOutput { ///

                        The value that you specified for NextToken in the most recent ListHostedZonesByVPC request.

                        pub next_token: std::option::Option, } -impl std::fmt::Debug for ListHostedZonesByVPCOutput { +impl std::fmt::Debug for ListHostedZonesByVpcOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHostedZonesByVPCOutput"); + let mut formatter = f.debug_struct("ListHostedZonesByVpcOutput"); formatter.field("hosted_zone_summaries", &self.hosted_zone_summaries); formatter.field("max_items", &self.max_items); formatter.field("next_token", &self.next_token); formatter.finish() } } -/// See [`ListHostedZonesByVPCOutput`](crate::output::ListHostedZonesByVPCOutput) +/// See [`ListHostedZonesByVpcOutput`](crate::output::ListHostedZonesByVpcOutput) pub mod list_hosted_zones_by_vpc_output { - /// A builder for [`ListHostedZonesByVPCOutput`](crate::output::ListHostedZonesByVPCOutput) + /// A builder for [`ListHostedZonesByVpcOutput`](crate::output::ListHostedZonesByVpcOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1614,9 +1614,9 @@ pub mod list_hosted_zones_by_vpc_output { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListHostedZonesByVPCOutput`](crate::output::ListHostedZonesByVPCOutput) - pub fn build(self) -> crate::output::ListHostedZonesByVPCOutput { - crate::output::ListHostedZonesByVPCOutput { + /// Consumes the builder and constructs a [`ListHostedZonesByVpcOutput`](crate::output::ListHostedZonesByVpcOutput) + pub fn build(self) -> crate::output::ListHostedZonesByVpcOutput { + crate::output::ListHostedZonesByVpcOutput { hosted_zone_summaries: self.hosted_zone_summaries, max_items: self.max_items, next_token: self.next_token, @@ -1624,8 +1624,8 @@ pub mod list_hosted_zones_by_vpc_output { } } } -impl ListHostedZonesByVPCOutput { - /// Creates a new builder-style object to manufacture [`ListHostedZonesByVPCOutput`](crate::output::ListHostedZonesByVPCOutput) +impl ListHostedZonesByVpcOutput { + /// Creates a new builder-style object to manufacture [`ListHostedZonesByVpcOutput`](crate::output::ListHostedZonesByVpcOutput) pub fn builder() -> crate::output::list_hosted_zones_by_vpc_output::Builder { crate::output::list_hosted_zones_by_vpc_output::Builder::default() } @@ -2632,7 +2632,7 @@ pub struct GetHostedZoneOutput { ///

                        A complex type that lists the Amazon Route 53 name servers for the specified hosted zone.

                        pub delegation_set: std::option::Option, ///

                        A complex type that contains information about the VPCs that are associated with the specified hosted zone.

                        - pub vp_cs: std::option::Option>, + pub vp_cs: std::option::Option>, } impl std::fmt::Debug for GetHostedZoneOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -2651,7 +2651,7 @@ pub mod get_hosted_zone_output { pub struct Builder { pub(crate) hosted_zone: std::option::Option, pub(crate) delegation_set: std::option::Option, - pub(crate) vp_cs: std::option::Option>, + pub(crate) vp_cs: std::option::Option>, } impl Builder { ///

                        A complex type that contains general information about the specified hosted zone.

                        @@ -2678,7 +2678,7 @@ pub mod get_hosted_zone_output { self.delegation_set = input; self } - pub fn vp_cs(mut self, input: impl Into) -> Self { + pub fn vp_cs(mut self, input: impl Into) -> Self { let mut v = self.vp_cs.unwrap_or_default(); v.push(input.into()); self.vp_cs = Some(v); @@ -2686,7 +2686,7 @@ pub mod get_hosted_zone_output { } pub fn set_vp_cs( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.vp_cs = input; self @@ -2973,39 +2973,39 @@ impl GetGeoLocationOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDNSSECOutput { +pub struct GetDnssecOutput { ///

                        A string repesenting the status of DNSSEC.

                        - pub status: std::option::Option, + pub status: std::option::Option, ///

                        The key-signing keys (KSKs) in your account.

                        pub key_signing_keys: std::option::Option>, } -impl std::fmt::Debug for GetDNSSECOutput { +impl std::fmt::Debug for GetDnssecOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDNSSECOutput"); + let mut formatter = f.debug_struct("GetDnssecOutput"); formatter.field("status", &self.status); formatter.field("key_signing_keys", &self.key_signing_keys); formatter.finish() } } -/// See [`GetDNSSECOutput`](crate::output::GetDNSSECOutput) +/// See [`GetDnssecOutput`](crate::output::GetDnssecOutput) pub mod get_dnssec_output { - /// A builder for [`GetDNSSECOutput`](crate::output::GetDNSSECOutput) + /// A builder for [`GetDnssecOutput`](crate::output::GetDnssecOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) status: std::option::Option, + pub(crate) status: std::option::Option, pub(crate) key_signing_keys: std::option::Option>, } impl Builder { ///

                        A string repesenting the status of DNSSEC.

                        - pub fn status(mut self, input: crate::model::DNSSECStatus) -> Self { + pub fn status(mut self, input: crate::model::DnssecStatus) -> Self { self.status = Some(input); self } pub fn set_status( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.status = input; self @@ -3023,17 +3023,17 @@ pub mod get_dnssec_output { self.key_signing_keys = input; self } - /// Consumes the builder and constructs a [`GetDNSSECOutput`](crate::output::GetDNSSECOutput) - pub fn build(self) -> crate::output::GetDNSSECOutput { - crate::output::GetDNSSECOutput { + /// Consumes the builder and constructs a [`GetDnssecOutput`](crate::output::GetDnssecOutput) + pub fn build(self) -> crate::output::GetDnssecOutput { + crate::output::GetDnssecOutput { status: self.status, key_signing_keys: self.key_signing_keys, } } } } -impl GetDNSSECOutput { - /// Creates a new builder-style object to manufacture [`GetDNSSECOutput`](crate::output::GetDNSSECOutput) +impl GetDnssecOutput { + /// Creates a new builder-style object to manufacture [`GetDnssecOutput`](crate::output::GetDnssecOutput) pub fn builder() -> crate::output::get_dnssec_output::Builder { crate::output::get_dnssec_output::Builder::default() } @@ -3212,21 +3212,21 @@ impl GetAccountLimitOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EnableHostedZoneDNSSECOutput { +pub struct EnableHostedZoneDnssecOutput { ///

                        A complex type that describes change information about changes made to your hosted /// zone.

                        pub change_info: std::option::Option, } -impl std::fmt::Debug for EnableHostedZoneDNSSECOutput { +impl std::fmt::Debug for EnableHostedZoneDnssecOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EnableHostedZoneDNSSECOutput"); + let mut formatter = f.debug_struct("EnableHostedZoneDnssecOutput"); formatter.field("change_info", &self.change_info); formatter.finish() } } -/// See [`EnableHostedZoneDNSSECOutput`](crate::output::EnableHostedZoneDNSSECOutput) +/// See [`EnableHostedZoneDnssecOutput`](crate::output::EnableHostedZoneDnssecOutput) pub mod enable_hosted_zone_dnssec_output { - /// A builder for [`EnableHostedZoneDNSSECOutput`](crate::output::EnableHostedZoneDNSSECOutput) + /// A builder for [`EnableHostedZoneDnssecOutput`](crate::output::EnableHostedZoneDnssecOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3246,16 +3246,16 @@ pub mod enable_hosted_zone_dnssec_output { self.change_info = input; self } - /// Consumes the builder and constructs a [`EnableHostedZoneDNSSECOutput`](crate::output::EnableHostedZoneDNSSECOutput) - pub fn build(self) -> crate::output::EnableHostedZoneDNSSECOutput { - crate::output::EnableHostedZoneDNSSECOutput { + /// Consumes the builder and constructs a [`EnableHostedZoneDnssecOutput`](crate::output::EnableHostedZoneDnssecOutput) + pub fn build(self) -> crate::output::EnableHostedZoneDnssecOutput { + crate::output::EnableHostedZoneDnssecOutput { change_info: self.change_info, } } } } -impl EnableHostedZoneDNSSECOutput { - /// Creates a new builder-style object to manufacture [`EnableHostedZoneDNSSECOutput`](crate::output::EnableHostedZoneDNSSECOutput) +impl EnableHostedZoneDnssecOutput { + /// Creates a new builder-style object to manufacture [`EnableHostedZoneDnssecOutput`](crate::output::EnableHostedZoneDnssecOutput) pub fn builder() -> crate::output::enable_hosted_zone_dnssec_output::Builder { crate::output::enable_hosted_zone_dnssec_output::Builder::default() } @@ -3264,20 +3264,20 @@ impl EnableHostedZoneDNSSECOutput { ///

                        A complex type that contains the response information for the disassociate request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateVPCFromHostedZoneOutput { +pub struct DisassociateVpcFromHostedZoneOutput { ///

                        A complex type that describes the changes made to the specified private hosted zone.

                        pub change_info: std::option::Option, } -impl std::fmt::Debug for DisassociateVPCFromHostedZoneOutput { +impl std::fmt::Debug for DisassociateVpcFromHostedZoneOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateVPCFromHostedZoneOutput"); + let mut formatter = f.debug_struct("DisassociateVpcFromHostedZoneOutput"); formatter.field("change_info", &self.change_info); formatter.finish() } } -/// See [`DisassociateVPCFromHostedZoneOutput`](crate::output::DisassociateVPCFromHostedZoneOutput) +/// See [`DisassociateVpcFromHostedZoneOutput`](crate::output::DisassociateVpcFromHostedZoneOutput) pub mod disassociate_vpc_from_hosted_zone_output { - /// A builder for [`DisassociateVPCFromHostedZoneOutput`](crate::output::DisassociateVPCFromHostedZoneOutput) + /// A builder for [`DisassociateVpcFromHostedZoneOutput`](crate::output::DisassociateVpcFromHostedZoneOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3296,16 +3296,16 @@ pub mod disassociate_vpc_from_hosted_zone_output { self.change_info = input; self } - /// Consumes the builder and constructs a [`DisassociateVPCFromHostedZoneOutput`](crate::output::DisassociateVPCFromHostedZoneOutput) - pub fn build(self) -> crate::output::DisassociateVPCFromHostedZoneOutput { - crate::output::DisassociateVPCFromHostedZoneOutput { + /// Consumes the builder and constructs a [`DisassociateVpcFromHostedZoneOutput`](crate::output::DisassociateVpcFromHostedZoneOutput) + pub fn build(self) -> crate::output::DisassociateVpcFromHostedZoneOutput { + crate::output::DisassociateVpcFromHostedZoneOutput { change_info: self.change_info, } } } } -impl DisassociateVPCFromHostedZoneOutput { - /// Creates a new builder-style object to manufacture [`DisassociateVPCFromHostedZoneOutput`](crate::output::DisassociateVPCFromHostedZoneOutput) +impl DisassociateVpcFromHostedZoneOutput { + /// Creates a new builder-style object to manufacture [`DisassociateVpcFromHostedZoneOutput`](crate::output::DisassociateVpcFromHostedZoneOutput) pub fn builder() -> crate::output::disassociate_vpc_from_hosted_zone_output::Builder { crate::output::disassociate_vpc_from_hosted_zone_output::Builder::default() } @@ -3313,21 +3313,21 @@ impl DisassociateVPCFromHostedZoneOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisableHostedZoneDNSSECOutput { +pub struct DisableHostedZoneDnssecOutput { ///

                        A complex type that describes change information about changes made to your hosted /// zone.

                        pub change_info: std::option::Option, } -impl std::fmt::Debug for DisableHostedZoneDNSSECOutput { +impl std::fmt::Debug for DisableHostedZoneDnssecOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisableHostedZoneDNSSECOutput"); + let mut formatter = f.debug_struct("DisableHostedZoneDnssecOutput"); formatter.field("change_info", &self.change_info); formatter.finish() } } -/// See [`DisableHostedZoneDNSSECOutput`](crate::output::DisableHostedZoneDNSSECOutput) +/// See [`DisableHostedZoneDnssecOutput`](crate::output::DisableHostedZoneDnssecOutput) pub mod disable_hosted_zone_dnssec_output { - /// A builder for [`DisableHostedZoneDNSSECOutput`](crate::output::DisableHostedZoneDNSSECOutput) + /// A builder for [`DisableHostedZoneDnssecOutput`](crate::output::DisableHostedZoneDnssecOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3347,16 +3347,16 @@ pub mod disable_hosted_zone_dnssec_output { self.change_info = input; self } - /// Consumes the builder and constructs a [`DisableHostedZoneDNSSECOutput`](crate::output::DisableHostedZoneDNSSECOutput) - pub fn build(self) -> crate::output::DisableHostedZoneDNSSECOutput { - crate::output::DisableHostedZoneDNSSECOutput { + /// Consumes the builder and constructs a [`DisableHostedZoneDnssecOutput`](crate::output::DisableHostedZoneDnssecOutput) + pub fn build(self) -> crate::output::DisableHostedZoneDnssecOutput { + crate::output::DisableHostedZoneDnssecOutput { change_info: self.change_info, } } } } -impl DisableHostedZoneDNSSECOutput { - /// Creates a new builder-style object to manufacture [`DisableHostedZoneDNSSECOutput`](crate::output::DisableHostedZoneDNSSECOutput) +impl DisableHostedZoneDnssecOutput { + /// Creates a new builder-style object to manufacture [`DisableHostedZoneDnssecOutput`](crate::output::DisableHostedZoneDnssecOutput) pub fn builder() -> crate::output::disable_hosted_zone_dnssec_output::Builder { crate::output::disable_hosted_zone_dnssec_output::Builder::default() } @@ -3365,28 +3365,28 @@ impl DisableHostedZoneDNSSECOutput { ///

                        Empty response for the request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteVPCAssociationAuthorizationOutput {} -impl std::fmt::Debug for DeleteVPCAssociationAuthorizationOutput { +pub struct DeleteVpcAssociationAuthorizationOutput {} +impl std::fmt::Debug for DeleteVpcAssociationAuthorizationOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteVPCAssociationAuthorizationOutput"); + let mut formatter = f.debug_struct("DeleteVpcAssociationAuthorizationOutput"); formatter.finish() } } -/// See [`DeleteVPCAssociationAuthorizationOutput`](crate::output::DeleteVPCAssociationAuthorizationOutput) +/// See [`DeleteVpcAssociationAuthorizationOutput`](crate::output::DeleteVpcAssociationAuthorizationOutput) pub mod delete_vpc_association_authorization_output { - /// A builder for [`DeleteVPCAssociationAuthorizationOutput`](crate::output::DeleteVPCAssociationAuthorizationOutput) + /// A builder for [`DeleteVpcAssociationAuthorizationOutput`](crate::output::DeleteVpcAssociationAuthorizationOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteVPCAssociationAuthorizationOutput`](crate::output::DeleteVPCAssociationAuthorizationOutput) - pub fn build(self) -> crate::output::DeleteVPCAssociationAuthorizationOutput { - crate::output::DeleteVPCAssociationAuthorizationOutput {} + /// Consumes the builder and constructs a [`DeleteVpcAssociationAuthorizationOutput`](crate::output::DeleteVpcAssociationAuthorizationOutput) + pub fn build(self) -> crate::output::DeleteVpcAssociationAuthorizationOutput { + crate::output::DeleteVpcAssociationAuthorizationOutput {} } } } -impl DeleteVPCAssociationAuthorizationOutput { - /// Creates a new builder-style object to manufacture [`DeleteVPCAssociationAuthorizationOutput`](crate::output::DeleteVPCAssociationAuthorizationOutput) +impl DeleteVpcAssociationAuthorizationOutput { + /// Creates a new builder-style object to manufacture [`DeleteVpcAssociationAuthorizationOutput`](crate::output::DeleteVpcAssociationAuthorizationOutput) pub fn builder() -> crate::output::delete_vpc_association_authorization_output::Builder { crate::output::delete_vpc_association_authorization_output::Builder::default() } @@ -3696,28 +3696,28 @@ impl DeactivateKeySigningKeyOutput { ///

                        A complex type that contains the response information from a CreateVPCAssociationAuthorization request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateVPCAssociationAuthorizationOutput { +pub struct CreateVpcAssociationAuthorizationOutput { ///

                        The ID of the hosted zone that you authorized associating a VPC with.

                        pub hosted_zone_id: std::option::Option, ///

                        The VPC that you authorized associating with a hosted zone.

                        - pub vpc: std::option::Option, + pub vpc: std::option::Option, } -impl std::fmt::Debug for CreateVPCAssociationAuthorizationOutput { +impl std::fmt::Debug for CreateVpcAssociationAuthorizationOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateVPCAssociationAuthorizationOutput"); + let mut formatter = f.debug_struct("CreateVpcAssociationAuthorizationOutput"); formatter.field("hosted_zone_id", &self.hosted_zone_id); formatter.field("vpc", &self.vpc); formatter.finish() } } -/// See [`CreateVPCAssociationAuthorizationOutput`](crate::output::CreateVPCAssociationAuthorizationOutput) +/// See [`CreateVpcAssociationAuthorizationOutput`](crate::output::CreateVpcAssociationAuthorizationOutput) pub mod create_vpc_association_authorization_output { - /// A builder for [`CreateVPCAssociationAuthorizationOutput`](crate::output::CreateVPCAssociationAuthorizationOutput) + /// A builder for [`CreateVpcAssociationAuthorizationOutput`](crate::output::CreateVpcAssociationAuthorizationOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) hosted_zone_id: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, } impl Builder { ///

                        The ID of the hosted zone that you authorized associating a VPC with.

                        @@ -3733,25 +3733,25 @@ pub mod create_vpc_association_authorization_output { self } ///

                        The VPC that you authorized associating with a hosted zone.

                        - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } - /// Consumes the builder and constructs a [`CreateVPCAssociationAuthorizationOutput`](crate::output::CreateVPCAssociationAuthorizationOutput) - pub fn build(self) -> crate::output::CreateVPCAssociationAuthorizationOutput { - crate::output::CreateVPCAssociationAuthorizationOutput { + /// Consumes the builder and constructs a [`CreateVpcAssociationAuthorizationOutput`](crate::output::CreateVpcAssociationAuthorizationOutput) + pub fn build(self) -> crate::output::CreateVpcAssociationAuthorizationOutput { + crate::output::CreateVpcAssociationAuthorizationOutput { hosted_zone_id: self.hosted_zone_id, vpc: self.vpc, } } } } -impl CreateVPCAssociationAuthorizationOutput { - /// Creates a new builder-style object to manufacture [`CreateVPCAssociationAuthorizationOutput`](crate::output::CreateVPCAssociationAuthorizationOutput) +impl CreateVpcAssociationAuthorizationOutput { + /// Creates a new builder-style object to manufacture [`CreateVpcAssociationAuthorizationOutput`](crate::output::CreateVpcAssociationAuthorizationOutput) pub fn builder() -> crate::output::create_vpc_association_authorization_output::Builder { crate::output::create_vpc_association_authorization_output::Builder::default() } @@ -4174,7 +4174,7 @@ pub struct CreateHostedZoneOutput { ///

                        A complex type that describes the name servers for this hosted zone.

                        pub delegation_set: std::option::Option, ///

                        A complex type that contains information about an Amazon VPC that you associated with this hosted zone.

                        - pub vpc: std::option::Option, + pub vpc: std::option::Option, ///

                        The unique URL representing the new hosted zone.

                        pub location: std::option::Option, } @@ -4198,7 +4198,7 @@ pub mod create_hosted_zone_output { pub(crate) hosted_zone: std::option::Option, pub(crate) change_info: std::option::Option, pub(crate) delegation_set: std::option::Option, - pub(crate) vpc: std::option::Option, + pub(crate) vpc: std::option::Option, pub(crate) location: std::option::Option, } impl Builder { @@ -4239,11 +4239,11 @@ pub mod create_hosted_zone_output { self } ///

                        A complex type that contains information about an Amazon VPC that you associated with this hosted zone.

                        - pub fn vpc(mut self, input: crate::model::VPC) -> Self { + pub fn vpc(mut self, input: crate::model::Vpc) -> Self { self.vpc = Some(input); self } - pub fn set_vpc(mut self, input: std::option::Option) -> Self { + pub fn set_vpc(mut self, input: std::option::Option) -> Self { self.vpc = input; self } @@ -4428,20 +4428,20 @@ impl ChangeResourceRecordSetsOutput { ///

                        A complex type that contains the response information for the AssociateVPCWithHostedZone request.

                        #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateVPCWithHostedZoneOutput { +pub struct AssociateVpcWithHostedZoneOutput { ///

                        A complex type that describes the changes made to your hosted zone.

                        pub change_info: std::option::Option, } -impl std::fmt::Debug for AssociateVPCWithHostedZoneOutput { +impl std::fmt::Debug for AssociateVpcWithHostedZoneOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateVPCWithHostedZoneOutput"); + let mut formatter = f.debug_struct("AssociateVpcWithHostedZoneOutput"); formatter.field("change_info", &self.change_info); formatter.finish() } } -/// See [`AssociateVPCWithHostedZoneOutput`](crate::output::AssociateVPCWithHostedZoneOutput) +/// See [`AssociateVpcWithHostedZoneOutput`](crate::output::AssociateVpcWithHostedZoneOutput) pub mod associate_vpc_with_hosted_zone_output { - /// A builder for [`AssociateVPCWithHostedZoneOutput`](crate::output::AssociateVPCWithHostedZoneOutput) + /// A builder for [`AssociateVpcWithHostedZoneOutput`](crate::output::AssociateVpcWithHostedZoneOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4460,16 +4460,16 @@ pub mod associate_vpc_with_hosted_zone_output { self.change_info = input; self } - /// Consumes the builder and constructs a [`AssociateVPCWithHostedZoneOutput`](crate::output::AssociateVPCWithHostedZoneOutput) - pub fn build(self) -> crate::output::AssociateVPCWithHostedZoneOutput { - crate::output::AssociateVPCWithHostedZoneOutput { + /// Consumes the builder and constructs a [`AssociateVpcWithHostedZoneOutput`](crate::output::AssociateVpcWithHostedZoneOutput) + pub fn build(self) -> crate::output::AssociateVpcWithHostedZoneOutput { + crate::output::AssociateVpcWithHostedZoneOutput { change_info: self.change_info, } } } } -impl AssociateVPCWithHostedZoneOutput { - /// Creates a new builder-style object to manufacture [`AssociateVPCWithHostedZoneOutput`](crate::output::AssociateVPCWithHostedZoneOutput) +impl AssociateVpcWithHostedZoneOutput { + /// Creates a new builder-style object to manufacture [`AssociateVpcWithHostedZoneOutput`](crate::output::AssociateVpcWithHostedZoneOutput) pub fn builder() -> crate::output::associate_vpc_with_hosted_zone_output::Builder { crate::output::associate_vpc_with_hosted_zone_output::Builder::default() } diff --git a/sdk/route53/src/xml_deser.rs b/sdk/route53/src/xml_deser.rs index f7bc3114ad65..e1471f113590 100644 --- a/sdk/route53/src/xml_deser.rs +++ b/sdk/route53/src/xml_deser.rs @@ -341,10 +341,10 @@ pub fn deser_structure_no_such_hosted_zone_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_not_authorized_error_xml_err( +pub fn deser_structure_not_authorized_exception_xml_err( inp: &[u8], - mut builder: crate::error::not_authorized_error::Builder, -) -> Result { + mut builder: crate::error::not_authorized_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -575,10 +575,10 @@ pub fn deser_operation_change_resource_record_sets( } #[allow(unused_mut)] -pub fn deser_structure_throttling_error_xml_err( +pub fn deser_structure_throttling_exception_xml_err( inp: &[u8], - mut builder: crate::error::throttling_error::Builder, -) -> Result { + mut builder: crate::error::throttling_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -5272,9 +5272,9 @@ pub fn deser_structure_delegation_set( pub fn deser_structure_vpc( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::VPC::builder(); + let mut builder = crate::model::Vpc::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("VPCRegion") /* VPCRegion com.amazonaws.route53#VPC$VPCRegion */ => { @@ -5896,9 +5896,9 @@ pub fn deser_list_checker_ip_ranges( pub fn deser_structure_dnssec_status( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::DNSSECStatus::builder(); + let mut builder = crate::model::DnssecStatus::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("ServeSignature") /* ServeSignature com.amazonaws.route53#DNSSECStatus$ServeSignature */ => { @@ -6064,7 +6064,7 @@ pub fn deser_list_health_check_observations( pub fn deser_list_vp_cs( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { diff --git a/sdk/route53/src/xml_ser.rs b/sdk/route53/src/xml_ser.rs index 0f4e9d02115e..a26536e0ddbf 100644 --- a/sdk/route53/src/xml_ser.rs +++ b/sdk/route53/src/xml_ser.rs @@ -1,6 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_structure_associate_vpc_with_hosted_zone_input( - input: &crate::input::AssociateVPCWithHostedZoneInput, + input: &crate::input::AssociateVpcWithHostedZoneInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -326,7 +326,7 @@ pub fn serialize_structure_create_traffic_policy_version_input( } pub fn serialize_structure_create_vpc_association_authorization_input( - input: &crate::input::CreateVPCAssociationAuthorizationInput, + input: &crate::input::CreateVpcAssociationAuthorizationInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -341,7 +341,7 @@ pub fn serialize_structure_create_vpc_association_authorization_input( } pub fn serialize_structure_delete_vpc_association_authorization_input( - input: &crate::input::DeleteVPCAssociationAuthorizationInput, + input: &crate::input::DeleteVpcAssociationAuthorizationInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -356,7 +356,7 @@ pub fn serialize_structure_delete_vpc_association_authorization_input( } pub fn serialize_structure_disassociate_vpc_from_hosted_zone_input( - input: &crate::input::DisassociateVPCFromHostedZoneInput, + input: &crate::input::DisassociateVpcFromHostedZoneInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -607,7 +607,7 @@ pub fn serialize_structure_update_traffic_policy_instance_input( scope.finish(); } -pub fn serialize_structure_vpc(input: &crate::model::VPC, writer: smithy_xml::encode::ElWriter) { +pub fn serialize_structure_vpc(input: &crate::model::Vpc, writer: smithy_xml::encode::ElWriter) { #[allow(unused_mut)] let mut scope = writer.finish(); if let Some(var_64) = &input.vpc_region { diff --git a/sdk/s3/Cargo.toml b/sdk/s3/Cargo.toml index f7ae330f5c64..522bba07481f 100644 --- a/sdk/s3/Cargo.toml +++ b/sdk/s3/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-s3" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

                        " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -28,9 +28,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.md5] version = "0.7" -[dependencies.serde] +[dependencies.serde_json] version = "1" -features = ["derive"] [dependencies.bytes] version = "1" [dependencies.smithy-xml] diff --git a/sdk/s3/src/client.rs b/sdk/s3/src/client.rs index 74fdad391b1d..10697ddc1570 100644 --- a/sdk/s3/src/client.rs +++ b/sdk/s3/src/client.rs @@ -6166,13 +6166,13 @@ pub mod fluent_builders { ///

                        Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more /// information, see Enabling Cross-Origin Resource /// Sharing in the Amazon S3 User Guide.

                        - pub fn cors_configuration(mut self, input: crate::model::CORSConfiguration) -> Self { + pub fn cors_configuration(mut self, input: crate::model::CorsConfiguration) -> Self { self.inner = self.inner.cors_configuration(input); self } pub fn set_cors_configuration( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_cors_configuration(input); self diff --git a/sdk/s3/src/http_serde.rs b/sdk/s3/src/http_serde.rs index 9e57bca1a530..e7669cc73a53 100644 --- a/sdk/s3/src/http_serde.rs +++ b/sdk/s3/src/http_serde.rs @@ -1,5 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_header_abort_multipart_upload_request_charged( +pub fn deser_header_abort_multipart_upload_abort_multipart_upload_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -9,7 +9,7 @@ pub fn deser_header_abort_multipart_upload_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_complete_multipart_upload_bucket_key_enabled( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -24,7 +24,7 @@ pub fn deser_header_complete_multipart_upload_bucket_key_enabled( } } -pub fn deser_header_complete_multipart_upload_expiration( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_expiration( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -32,7 +32,7 @@ pub fn deser_header_complete_multipart_upload_expiration( smithy_http::header::one_or_none(headers) } -pub fn deser_header_complete_multipart_upload_request_charged( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -42,7 +42,7 @@ pub fn deser_header_complete_multipart_upload_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_complete_multipart_upload_ssekms_key_id( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -52,7 +52,7 @@ pub fn deser_header_complete_multipart_upload_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_complete_multipart_upload_server_side_encryption( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -62,7 +62,7 @@ pub fn deser_header_complete_multipart_upload_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_complete_multipart_upload_version_id( +pub fn deser_header_complete_multipart_upload_complete_multipart_upload_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -70,7 +70,7 @@ pub fn deser_header_complete_multipart_upload_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_bucket_key_enabled( +pub fn deser_header_copy_object_copy_object_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -85,7 +85,7 @@ pub fn deser_header_copy_object_bucket_key_enabled( } } -pub fn deser_payload_copy_object_copy_object_result( +pub fn deser_payload_copy_object_copy_object_output_copy_object_result( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -99,7 +99,7 @@ pub fn deser_payload_copy_object_copy_object_result( .transpose() } -pub fn deser_header_copy_object_copy_source_version_id( +pub fn deser_header_copy_object_copy_object_output_copy_source_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -107,7 +107,7 @@ pub fn deser_header_copy_object_copy_source_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_expiration( +pub fn deser_header_copy_object_copy_object_output_expiration( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -115,7 +115,7 @@ pub fn deser_header_copy_object_expiration( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_request_charged( +pub fn deser_header_copy_object_copy_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -125,7 +125,7 @@ pub fn deser_header_copy_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_sse_customer_algorithm( +pub fn deser_header_copy_object_copy_object_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -135,7 +135,7 @@ pub fn deser_header_copy_object_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_sse_customer_key_md5( +pub fn deser_header_copy_object_copy_object_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -145,7 +145,7 @@ pub fn deser_header_copy_object_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_ssekms_encryption_context( +pub fn deser_header_copy_object_copy_object_output_ssekms_encryption_context( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -155,7 +155,7 @@ pub fn deser_header_copy_object_ssekms_encryption_context( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_ssekms_key_id( +pub fn deser_header_copy_object_copy_object_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -165,7 +165,7 @@ pub fn deser_header_copy_object_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_server_side_encryption( +pub fn deser_header_copy_object_copy_object_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -175,7 +175,7 @@ pub fn deser_header_copy_object_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_copy_object_version_id( +pub fn deser_header_copy_object_copy_object_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -183,7 +183,7 @@ pub fn deser_header_copy_object_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_bucket_location( +pub fn deser_header_create_bucket_create_bucket_output_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -191,7 +191,7 @@ pub fn deser_header_create_bucket_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_abort_date( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_abort_date( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -206,7 +206,7 @@ pub fn deser_header_create_multipart_upload_abort_date( } } -pub fn deser_header_create_multipart_upload_abort_rule_id( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_abort_rule_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -214,7 +214,7 @@ pub fn deser_header_create_multipart_upload_abort_rule_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_bucket_key_enabled( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -229,7 +229,7 @@ pub fn deser_header_create_multipart_upload_bucket_key_enabled( } } -pub fn deser_header_create_multipart_upload_request_charged( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -239,7 +239,7 @@ pub fn deser_header_create_multipart_upload_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_sse_customer_algorithm( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -249,7 +249,7 @@ pub fn deser_header_create_multipart_upload_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_sse_customer_key_md5( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -259,7 +259,7 @@ pub fn deser_header_create_multipart_upload_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_ssekms_encryption_context( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_ssekms_encryption_context( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -269,7 +269,7 @@ pub fn deser_header_create_multipart_upload_ssekms_encryption_context( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_ssekms_key_id( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -279,7 +279,7 @@ pub fn deser_header_create_multipart_upload_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_create_multipart_upload_server_side_encryption( +pub fn deser_header_create_multipart_upload_create_multipart_upload_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -289,7 +289,7 @@ pub fn deser_header_create_multipart_upload_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_object_delete_marker( +pub fn deser_header_delete_object_delete_object_output_delete_marker( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-delete-marker").iter(); @@ -302,7 +302,7 @@ pub fn deser_header_delete_object_delete_marker( } } -pub fn deser_header_delete_object_request_charged( +pub fn deser_header_delete_object_delete_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -312,7 +312,7 @@ pub fn deser_header_delete_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_object_version_id( +pub fn deser_header_delete_object_delete_object_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -320,7 +320,7 @@ pub fn deser_header_delete_object_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_objects_request_charged( +pub fn deser_header_delete_objects_delete_objects_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -330,7 +330,7 @@ pub fn deser_header_delete_objects_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_delete_object_tagging_version_id( +pub fn deser_header_delete_object_tagging_delete_object_tagging_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -338,7 +338,7 @@ pub fn deser_header_delete_object_tagging_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_bucket_analytics_configuration_analytics_configuration( +pub fn deser_payload_get_bucket_analytics_configuration_get_bucket_analytics_configuration_output_analytics_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -349,7 +349,7 @@ pub fn deser_payload_get_bucket_analytics_configuration_analytics_configuration( }).transpose() } -pub fn deser_payload_get_bucket_encryption_server_side_encryption_configuration( +pub fn deser_payload_get_bucket_encryption_get_bucket_encryption_output_server_side_encryption_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -360,7 +360,7 @@ pub fn deser_payload_get_bucket_encryption_server_side_encryption_configuration( }).transpose() } -pub fn deser_payload_get_bucket_intelligent_tiering_configuration_intelligent_tiering_configuration( +pub fn deser_payload_get_bucket_intelligent_tiering_configuration_get_bucket_intelligent_tiering_configuration_output_intelligent_tiering_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -371,7 +371,7 @@ pub fn deser_payload_get_bucket_intelligent_tiering_configuration_intelligent_ti }).transpose() } -pub fn deser_payload_get_bucket_inventory_configuration_inventory_configuration( +pub fn deser_payload_get_bucket_inventory_configuration_get_bucket_inventory_configuration_output_inventory_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -382,7 +382,7 @@ pub fn deser_payload_get_bucket_inventory_configuration_inventory_configuration( }).transpose() } -pub fn deser_payload_get_bucket_metrics_configuration_metrics_configuration( +pub fn deser_payload_get_bucket_metrics_configuration_get_bucket_metrics_configuration_output_metrics_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -393,7 +393,7 @@ pub fn deser_payload_get_bucket_metrics_configuration_metrics_configuration( }).transpose() } -pub fn deser_payload_get_bucket_ownership_controls_ownership_controls( +pub fn deser_payload_get_bucket_ownership_controls_get_bucket_ownership_controls_output_ownership_controls( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -409,7 +409,7 @@ pub fn deser_payload_get_bucket_ownership_controls_ownership_controls( .transpose() } -pub fn deser_payload_get_bucket_policy_policy( +pub fn deser_payload_get_bucket_policy_get_bucket_policy_output_policy( body: &[u8], ) -> std::result::Result, crate::error::GetBucketPolicyError> { @@ -422,7 +422,7 @@ pub fn deser_payload_get_bucket_policy_policy( .transpose() } -pub fn deser_payload_get_bucket_policy_status_policy_status( +pub fn deser_payload_get_bucket_policy_status_get_bucket_policy_status_output_policy_status( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -436,7 +436,7 @@ pub fn deser_payload_get_bucket_policy_status_policy_status( .transpose() } -pub fn deser_payload_get_bucket_replication_replication_configuration( +pub fn deser_payload_get_bucket_replication_get_bucket_replication_output_replication_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -452,7 +452,7 @@ pub fn deser_payload_get_bucket_replication_replication_configuration( .transpose() } -pub fn deser_header_get_object_accept_ranges( +pub fn deser_header_get_object_get_object_output_accept_ranges( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -460,7 +460,7 @@ pub fn deser_header_get_object_accept_ranges( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_object_body( +pub fn deser_payload_get_object_get_object_output_body( body: &mut smithy_http::body::SdkBody, ) -> std::result::Result { // replace the body with an empty body @@ -468,7 +468,7 @@ pub fn deser_payload_get_object_body( Ok(smithy_http::byte_stream::ByteStream::new(body)) } -pub fn deser_header_get_object_bucket_key_enabled( +pub fn deser_header_get_object_get_object_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -483,7 +483,7 @@ pub fn deser_header_get_object_bucket_key_enabled( } } -pub fn deser_header_get_object_cache_control( +pub fn deser_header_get_object_get_object_output_cache_control( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -491,7 +491,7 @@ pub fn deser_header_get_object_cache_control( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_content_disposition( +pub fn deser_header_get_object_get_object_output_content_disposition( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -499,7 +499,7 @@ pub fn deser_header_get_object_content_disposition( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_content_encoding( +pub fn deser_header_get_object_get_object_output_content_encoding( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -507,7 +507,7 @@ pub fn deser_header_get_object_content_encoding( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_content_language( +pub fn deser_header_get_object_get_object_output_content_language( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -515,7 +515,7 @@ pub fn deser_header_get_object_content_language( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_content_length( +pub fn deser_header_get_object_get_object_output_content_length( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("Content-Length").iter(); @@ -528,7 +528,7 @@ pub fn deser_header_get_object_content_length( } } -pub fn deser_header_get_object_content_range( +pub fn deser_header_get_object_get_object_output_content_range( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -536,7 +536,7 @@ pub fn deser_header_get_object_content_range( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_content_type( +pub fn deser_header_get_object_get_object_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -544,7 +544,7 @@ pub fn deser_header_get_object_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_delete_marker( +pub fn deser_header_get_object_get_object_output_delete_marker( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-delete-marker").iter(); @@ -557,7 +557,7 @@ pub fn deser_header_get_object_delete_marker( } } -pub fn deser_header_get_object_e_tag( +pub fn deser_header_get_object_get_object_output_e_tag( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -565,7 +565,7 @@ pub fn deser_header_get_object_e_tag( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_expiration( +pub fn deser_header_get_object_get_object_output_expiration( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -573,7 +573,7 @@ pub fn deser_header_get_object_expiration( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_expires( +pub fn deser_header_get_object_get_object_output_expires( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -588,7 +588,7 @@ pub fn deser_header_get_object_expires( } } -pub fn deser_header_get_object_last_modified( +pub fn deser_header_get_object_get_object_output_last_modified( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -603,7 +603,7 @@ pub fn deser_header_get_object_last_modified( } } -pub fn deser_prefix_header_get_object_metadata( +pub fn deser_prefix_header_get_object_get_object_output_metadata( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option>, @@ -613,14 +613,16 @@ pub fn deser_prefix_header_get_object_metadata( let out: std::result::Result<_, _> = headers .map(|(key, header_name)| { let values = header_map.get_all(header_name); - crate::http_serde::deser_prefix_header_get_object_metadata_inner(values.iter()) - .map(|v| (key.to_string(), v.unwrap())) + crate::http_serde::deser_prefix_header_get_object_get_object_output_metadata_inner( + values.iter(), + ) + .map(|v| (key.to_string(), v.unwrap())) }) .collect(); out.map(Some) } -pub fn deser_header_get_object_missing_meta( +pub fn deser_header_get_object_get_object_output_missing_meta( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-missing-meta").iter(); @@ -633,7 +635,7 @@ pub fn deser_header_get_object_missing_meta( } } -pub fn deser_header_get_object_object_lock_legal_hold_status( +pub fn deser_header_get_object_get_object_output_object_lock_legal_hold_status( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -643,7 +645,7 @@ pub fn deser_header_get_object_object_lock_legal_hold_status( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_object_lock_mode( +pub fn deser_header_get_object_get_object_output_object_lock_mode( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -653,7 +655,7 @@ pub fn deser_header_get_object_object_lock_mode( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_object_lock_retain_until_date( +pub fn deser_header_get_object_get_object_output_object_lock_retain_until_date( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -670,7 +672,7 @@ pub fn deser_header_get_object_object_lock_retain_until_date( } } -pub fn deser_header_get_object_parts_count( +pub fn deser_header_get_object_get_object_output_parts_count( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-mp-parts-count").iter(); @@ -683,7 +685,7 @@ pub fn deser_header_get_object_parts_count( } } -pub fn deser_header_get_object_replication_status( +pub fn deser_header_get_object_get_object_output_replication_status( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -693,7 +695,7 @@ pub fn deser_header_get_object_replication_status( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_request_charged( +pub fn deser_header_get_object_get_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -703,7 +705,7 @@ pub fn deser_header_get_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_restore( +pub fn deser_header_get_object_get_object_output_restore( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -711,7 +713,7 @@ pub fn deser_header_get_object_restore( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_sse_customer_algorithm( +pub fn deser_header_get_object_get_object_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -721,7 +723,7 @@ pub fn deser_header_get_object_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_sse_customer_key_md5( +pub fn deser_header_get_object_get_object_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -731,7 +733,7 @@ pub fn deser_header_get_object_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_ssekms_key_id( +pub fn deser_header_get_object_get_object_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -741,7 +743,7 @@ pub fn deser_header_get_object_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_server_side_encryption( +pub fn deser_header_get_object_get_object_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -751,7 +753,7 @@ pub fn deser_header_get_object_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_storage_class( +pub fn deser_header_get_object_get_object_output_storage_class( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -761,7 +763,7 @@ pub fn deser_header_get_object_storage_class( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_tag_count( +pub fn deser_header_get_object_get_object_output_tag_count( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-tagging-count").iter(); @@ -774,7 +776,7 @@ pub fn deser_header_get_object_tag_count( } } -pub fn deser_header_get_object_version_id( +pub fn deser_header_get_object_get_object_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -782,7 +784,7 @@ pub fn deser_header_get_object_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_website_redirect_location( +pub fn deser_header_get_object_get_object_output_website_redirect_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -790,7 +792,7 @@ pub fn deser_header_get_object_website_redirect_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_get_object_acl_request_charged( +pub fn deser_header_get_object_acl_get_object_acl_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -800,7 +802,7 @@ pub fn deser_header_get_object_acl_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_object_legal_hold_legal_hold( +pub fn deser_payload_get_object_legal_hold_get_object_legal_hold_output_legal_hold( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -814,7 +816,7 @@ pub fn deser_payload_get_object_legal_hold_legal_hold( .transpose() } -pub fn deser_payload_get_object_lock_configuration_object_lock_configuration( +pub fn deser_payload_get_object_lock_configuration_get_object_lock_configuration_output_object_lock_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -825,7 +827,7 @@ pub fn deser_payload_get_object_lock_configuration_object_lock_configuration( }).transpose() } -pub fn deser_payload_get_object_retention_retention( +pub fn deser_payload_get_object_retention_get_object_retention_output_retention( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -839,7 +841,7 @@ pub fn deser_payload_get_object_retention_retention( .transpose() } -pub fn deser_header_get_object_tagging_version_id( +pub fn deser_header_get_object_tagging_get_object_tagging_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -847,7 +849,7 @@ pub fn deser_header_get_object_tagging_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_object_torrent_body( +pub fn deser_payload_get_object_torrent_get_object_torrent_output_body( body: &mut smithy_http::body::SdkBody, ) -> std::result::Result { @@ -856,7 +858,7 @@ pub fn deser_payload_get_object_torrent_body( Ok(smithy_http::byte_stream::ByteStream::new(body)) } -pub fn deser_header_get_object_torrent_request_charged( +pub fn deser_header_get_object_torrent_get_object_torrent_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -866,7 +868,7 @@ pub fn deser_header_get_object_torrent_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_payload_get_public_access_block_public_access_block_configuration( +pub fn deser_payload_get_public_access_block_get_public_access_block_output_public_access_block_configuration( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -877,7 +879,7 @@ pub fn deser_payload_get_public_access_block_public_access_block_configuration( }).transpose() } -pub fn deser_header_head_object_accept_ranges( +pub fn deser_header_head_object_head_object_output_accept_ranges( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -885,7 +887,7 @@ pub fn deser_header_head_object_accept_ranges( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_archive_status( +pub fn deser_header_head_object_head_object_output_archive_status( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -895,7 +897,7 @@ pub fn deser_header_head_object_archive_status( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_bucket_key_enabled( +pub fn deser_header_head_object_head_object_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -910,7 +912,7 @@ pub fn deser_header_head_object_bucket_key_enabled( } } -pub fn deser_header_head_object_cache_control( +pub fn deser_header_head_object_head_object_output_cache_control( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -918,7 +920,7 @@ pub fn deser_header_head_object_cache_control( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_content_disposition( +pub fn deser_header_head_object_head_object_output_content_disposition( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -926,7 +928,7 @@ pub fn deser_header_head_object_content_disposition( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_content_encoding( +pub fn deser_header_head_object_head_object_output_content_encoding( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -934,7 +936,7 @@ pub fn deser_header_head_object_content_encoding( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_content_language( +pub fn deser_header_head_object_head_object_output_content_language( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -942,7 +944,7 @@ pub fn deser_header_head_object_content_language( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_content_length( +pub fn deser_header_head_object_head_object_output_content_length( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("Content-Length").iter(); @@ -955,7 +957,7 @@ pub fn deser_header_head_object_content_length( } } -pub fn deser_header_head_object_content_type( +pub fn deser_header_head_object_head_object_output_content_type( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -963,7 +965,7 @@ pub fn deser_header_head_object_content_type( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_delete_marker( +pub fn deser_header_head_object_head_object_output_delete_marker( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-delete-marker").iter(); @@ -976,7 +978,7 @@ pub fn deser_header_head_object_delete_marker( } } -pub fn deser_header_head_object_e_tag( +pub fn deser_header_head_object_head_object_output_e_tag( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -984,7 +986,7 @@ pub fn deser_header_head_object_e_tag( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_expiration( +pub fn deser_header_head_object_head_object_output_expiration( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -992,7 +994,7 @@ pub fn deser_header_head_object_expiration( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_expires( +pub fn deser_header_head_object_head_object_output_expires( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1007,7 +1009,7 @@ pub fn deser_header_head_object_expires( } } -pub fn deser_header_head_object_last_modified( +pub fn deser_header_head_object_head_object_output_last_modified( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1022,7 +1024,7 @@ pub fn deser_header_head_object_last_modified( } } -pub fn deser_prefix_header_head_object_metadata( +pub fn deser_prefix_header_head_object_head_object_output_metadata( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option>, @@ -1032,14 +1034,16 @@ pub fn deser_prefix_header_head_object_metadata( let out: std::result::Result<_, _> = headers .map(|(key, header_name)| { let values = header_map.get_all(header_name); - crate::http_serde::deser_prefix_header_head_object_metadata_inner(values.iter()) - .map(|v| (key.to_string(), v.unwrap())) + crate::http_serde::deser_prefix_header_head_object_head_object_output_metadata_inner( + values.iter(), + ) + .map(|v| (key.to_string(), v.unwrap())) }) .collect(); out.map(Some) } -pub fn deser_header_head_object_missing_meta( +pub fn deser_header_head_object_head_object_output_missing_meta( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-missing-meta").iter(); @@ -1052,7 +1056,7 @@ pub fn deser_header_head_object_missing_meta( } } -pub fn deser_header_head_object_object_lock_legal_hold_status( +pub fn deser_header_head_object_head_object_output_object_lock_legal_hold_status( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1062,7 +1066,7 @@ pub fn deser_header_head_object_object_lock_legal_hold_status( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_object_lock_mode( +pub fn deser_header_head_object_head_object_output_object_lock_mode( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1072,7 +1076,7 @@ pub fn deser_header_head_object_object_lock_mode( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_object_lock_retain_until_date( +pub fn deser_header_head_object_head_object_output_object_lock_retain_until_date( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1089,7 +1093,7 @@ pub fn deser_header_head_object_object_lock_retain_until_date( } } -pub fn deser_header_head_object_parts_count( +pub fn deser_header_head_object_head_object_output_parts_count( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map.get_all("x-amz-mp-parts-count").iter(); @@ -1102,7 +1106,7 @@ pub fn deser_header_head_object_parts_count( } } -pub fn deser_header_head_object_replication_status( +pub fn deser_header_head_object_head_object_output_replication_status( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1112,7 +1116,7 @@ pub fn deser_header_head_object_replication_status( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_request_charged( +pub fn deser_header_head_object_head_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1122,7 +1126,7 @@ pub fn deser_header_head_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_restore( +pub fn deser_header_head_object_head_object_output_restore( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1130,7 +1134,7 @@ pub fn deser_header_head_object_restore( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_sse_customer_algorithm( +pub fn deser_header_head_object_head_object_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1140,7 +1144,7 @@ pub fn deser_header_head_object_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_sse_customer_key_md5( +pub fn deser_header_head_object_head_object_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1150,7 +1154,7 @@ pub fn deser_header_head_object_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_ssekms_key_id( +pub fn deser_header_head_object_head_object_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1160,7 +1164,7 @@ pub fn deser_header_head_object_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_server_side_encryption( +pub fn deser_header_head_object_head_object_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1170,7 +1174,7 @@ pub fn deser_header_head_object_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_storage_class( +pub fn deser_header_head_object_head_object_output_storage_class( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1180,7 +1184,7 @@ pub fn deser_header_head_object_storage_class( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_version_id( +pub fn deser_header_head_object_head_object_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1188,7 +1192,7 @@ pub fn deser_header_head_object_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_head_object_website_redirect_location( +pub fn deser_header_head_object_head_object_output_website_redirect_location( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1196,7 +1200,7 @@ pub fn deser_header_head_object_website_redirect_location( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_parts_abort_date( +pub fn deser_header_list_parts_list_parts_output_abort_date( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1211,7 +1215,7 @@ pub fn deser_header_list_parts_abort_date( } } -pub fn deser_header_list_parts_abort_rule_id( +pub fn deser_header_list_parts_list_parts_output_abort_rule_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1219,7 +1223,7 @@ pub fn deser_header_list_parts_abort_rule_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_list_parts_request_charged( +pub fn deser_header_list_parts_list_parts_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1229,7 +1233,7 @@ pub fn deser_header_list_parts_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_bucket_key_enabled( +pub fn deser_header_put_object_put_object_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -1244,7 +1248,7 @@ pub fn deser_header_put_object_bucket_key_enabled( } } -pub fn deser_header_put_object_e_tag( +pub fn deser_header_put_object_put_object_output_e_tag( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1252,7 +1256,7 @@ pub fn deser_header_put_object_e_tag( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_expiration( +pub fn deser_header_put_object_put_object_output_expiration( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1260,7 +1264,7 @@ pub fn deser_header_put_object_expiration( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_request_charged( +pub fn deser_header_put_object_put_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1270,7 +1274,7 @@ pub fn deser_header_put_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_sse_customer_algorithm( +pub fn deser_header_put_object_put_object_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1280,7 +1284,7 @@ pub fn deser_header_put_object_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_sse_customer_key_md5( +pub fn deser_header_put_object_put_object_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1290,7 +1294,7 @@ pub fn deser_header_put_object_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_ssekms_encryption_context( +pub fn deser_header_put_object_put_object_output_ssekms_encryption_context( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1300,7 +1304,7 @@ pub fn deser_header_put_object_ssekms_encryption_context( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_ssekms_key_id( +pub fn deser_header_put_object_put_object_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1310,7 +1314,7 @@ pub fn deser_header_put_object_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_server_side_encryption( +pub fn deser_header_put_object_put_object_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1320,7 +1324,7 @@ pub fn deser_header_put_object_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_version_id( +pub fn deser_header_put_object_put_object_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1328,7 +1332,7 @@ pub fn deser_header_put_object_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_acl_request_charged( +pub fn deser_header_put_object_acl_put_object_acl_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1338,7 +1342,7 @@ pub fn deser_header_put_object_acl_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_legal_hold_request_charged( +pub fn deser_header_put_object_legal_hold_put_object_legal_hold_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1348,7 +1352,7 @@ pub fn deser_header_put_object_legal_hold_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_lock_configuration_request_charged( +pub fn deser_header_put_object_lock_configuration_put_object_lock_configuration_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1358,7 +1362,7 @@ pub fn deser_header_put_object_lock_configuration_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_retention_request_charged( +pub fn deser_header_put_object_retention_put_object_retention_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1368,7 +1372,7 @@ pub fn deser_header_put_object_retention_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_put_object_tagging_version_id( +pub fn deser_header_put_object_tagging_put_object_tagging_output_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1376,7 +1380,7 @@ pub fn deser_header_put_object_tagging_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_restore_object_request_charged( +pub fn deser_header_restore_object_restore_object_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1386,7 +1390,7 @@ pub fn deser_header_restore_object_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_restore_object_restore_output_path( +pub fn deser_header_restore_object_restore_object_output_restore_output_path( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1394,7 +1398,7 @@ pub fn deser_header_restore_object_restore_output_path( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_bucket_key_enabled( +pub fn deser_header_upload_part_upload_part_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -1409,7 +1413,7 @@ pub fn deser_header_upload_part_bucket_key_enabled( } } -pub fn deser_header_upload_part_e_tag( +pub fn deser_header_upload_part_upload_part_output_e_tag( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1417,7 +1421,7 @@ pub fn deser_header_upload_part_e_tag( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_request_charged( +pub fn deser_header_upload_part_upload_part_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1427,7 +1431,7 @@ pub fn deser_header_upload_part_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_sse_customer_algorithm( +pub fn deser_header_upload_part_upload_part_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1437,7 +1441,7 @@ pub fn deser_header_upload_part_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_sse_customer_key_md5( +pub fn deser_header_upload_part_upload_part_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1447,7 +1451,7 @@ pub fn deser_header_upload_part_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_ssekms_key_id( +pub fn deser_header_upload_part_upload_part_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1457,7 +1461,7 @@ pub fn deser_header_upload_part_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_server_side_encryption( +pub fn deser_header_upload_part_upload_part_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1467,7 +1471,7 @@ pub fn deser_header_upload_part_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_bucket_key_enabled( +pub fn deser_header_upload_part_copy_upload_part_copy_output_bucket_key_enabled( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { let headers = header_map @@ -1482,7 +1486,7 @@ pub fn deser_header_upload_part_copy_bucket_key_enabled( } } -pub fn deser_payload_upload_part_copy_copy_part_result( +pub fn deser_payload_upload_part_copy_upload_part_copy_output_copy_part_result( body: &[u8], ) -> std::result::Result< std::option::Option, @@ -1496,7 +1500,7 @@ pub fn deser_payload_upload_part_copy_copy_part_result( .transpose() } -pub fn deser_header_upload_part_copy_copy_source_version_id( +pub fn deser_header_upload_part_copy_upload_part_copy_output_copy_source_version_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1504,7 +1508,7 @@ pub fn deser_header_upload_part_copy_copy_source_version_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_request_charged( +pub fn deser_header_upload_part_copy_upload_part_copy_output_request_charged( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1514,7 +1518,7 @@ pub fn deser_header_upload_part_copy_request_charged( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_sse_customer_algorithm( +pub fn deser_header_upload_part_copy_upload_part_copy_output_sse_customer_algorithm( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1524,7 +1528,7 @@ pub fn deser_header_upload_part_copy_sse_customer_algorithm( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_sse_customer_key_md5( +pub fn deser_header_upload_part_copy_upload_part_copy_output_sse_customer_key_md5( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1534,7 +1538,7 @@ pub fn deser_header_upload_part_copy_sse_customer_key_md5( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_ssekms_key_id( +pub fn deser_header_upload_part_copy_upload_part_copy_output_ssekms_key_id( header_map: &http::HeaderMap, ) -> std::result::Result, smithy_http::header::ParseError> { @@ -1544,7 +1548,7 @@ pub fn deser_header_upload_part_copy_ssekms_key_id( smithy_http::header::one_or_none(headers) } -pub fn deser_header_upload_part_copy_server_side_encryption( +pub fn deser_header_upload_part_copy_upload_part_copy_output_server_side_encryption( header_map: &http::HeaderMap, ) -> std::result::Result< std::option::Option, @@ -1554,13 +1558,13 @@ pub fn deser_header_upload_part_copy_server_side_encryption( smithy_http::header::one_or_none(headers) } -pub fn deser_prefix_header_get_object_metadata_inner( +pub fn deser_prefix_header_get_object_get_object_output_metadata_inner( headers: http::header::ValueIter, ) -> std::result::Result, smithy_http::header::ParseError> { smithy_http::header::one_or_none(headers) } -pub fn deser_prefix_header_head_object_metadata_inner( +pub fn deser_prefix_header_head_object_head_object_output_metadata_inner( headers: http::header::ValueIter, ) -> std::result::Result, smithy_http::header::ParseError> { smithy_http::header::one_or_none(headers) diff --git a/sdk/s3/src/input.rs b/sdk/s3/src/input.rs index 92ad859b19ff..4517736043a1 100644 --- a/sdk/s3/src/input.rs +++ b/sdk/s3/src/input.rs @@ -77,8 +77,8 @@ pub mod abort_multipart_upload_input { smithy_http::operation::BuildError, > { Ok(crate::input::AbortMultipartUploadInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, upload_id: self.upload_id, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, @@ -148,14 +148,44 @@ impl AbortMultipartUploadInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -212,7 +242,7 @@ impl AbortMultipartUploadInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -328,8 +358,8 @@ pub mod complete_multipart_upload_input { smithy_http::operation::BuildError, > { Ok(crate::input::CompleteMultipartUploadInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, multipart_upload: self.multipart_upload, upload_id: self.upload_id, request_payer: self.request_payer, @@ -403,14 +433,44 @@ impl CompleteMultipartUploadInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -467,7 +527,7 @@ impl CompleteMultipartUploadInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -1098,7 +1158,7 @@ pub mod copy_object_input { { Ok(crate::input::CopyObjectInput { acl: self.acl, - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, cache_control: self.cache_control, content_disposition: self.content_disposition, content_encoding: self.content_encoding, @@ -1114,7 +1174,7 @@ pub mod copy_object_input { grant_read: self.grant_read, grant_read_acp: self.grant_read_acp, grant_write_acp: self.grant_write_acp, - key: self.key.unwrap_or_default(), + key: self.key, metadata: self.metadata, metadata_directive: self.metadata_directive, tagging_directive: self.tagging_directive, @@ -1200,14 +1260,44 @@ impl CopyObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -1931,7 +2021,7 @@ impl CopyObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -2088,7 +2178,7 @@ pub mod create_bucket_input { { Ok(crate::input::CreateBucketInput { acl: self.acl, - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, grant_full_control: self.grant_full_control, grant_read: self.grant_read, grant_read_acp: self.grant_read_acp, @@ -2163,13 +2253,26 @@ impl CreateBucketInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -2310,7 +2413,7 @@ impl CreateBucketInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) } @@ -2758,7 +2861,7 @@ pub mod create_multipart_upload_input { > { Ok(crate::input::CreateMultipartUploadInput { acl: self.acl, - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, cache_control: self.cache_control, content_disposition: self.content_disposition, content_encoding: self.content_encoding, @@ -2769,7 +2872,7 @@ pub mod create_multipart_upload_input { grant_read: self.grant_read, grant_read_acp: self.grant_read_acp, grant_write_acp: self.grant_write_acp, - key: self.key.unwrap_or_default(), + key: self.key, metadata: self.metadata, server_side_encryption: self.server_side_encryption, storage_class: self.storage_class, @@ -2852,14 +2955,44 @@ impl CreateMultipartUploadInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -3377,7 +3510,7 @@ impl CreateMultipartUploadInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -3442,7 +3575,7 @@ pub mod delete_bucket_input { ) -> std::result::Result { Ok(crate::input::DeleteBucketInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -3507,13 +3640,26 @@ impl DeleteBucketInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -3545,7 +3691,7 @@ impl DeleteBucketInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) } @@ -3621,7 +3767,7 @@ pub mod delete_bucket_analytics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketAnalyticsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -3691,13 +3837,26 @@ impl DeleteBucketAnalyticsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -3736,7 +3895,7 @@ impl DeleteBucketAnalyticsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -3803,7 +3962,7 @@ pub mod delete_bucket_cors_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketCorsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -3871,13 +4030,26 @@ impl DeleteBucketCorsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -3913,7 +4085,7 @@ impl DeleteBucketCorsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -3981,7 +4153,7 @@ pub mod delete_bucket_encryption_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketEncryptionInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -4049,13 +4221,26 @@ impl DeleteBucketEncryptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -4091,7 +4276,7 @@ impl DeleteBucketEncryptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -4156,7 +4341,7 @@ pub mod delete_bucket_intelligent_tiering_configuration_input { > { Ok( crate::input::DeleteBucketIntelligentTieringConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, }, ) @@ -4227,13 +4412,26 @@ impl DeleteBucketIntelligentTieringConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4248,7 +4446,7 @@ impl DeleteBucketIntelligentTieringConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -4325,7 +4523,7 @@ pub mod delete_bucket_inventory_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketInventoryConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -4395,13 +4593,26 @@ impl DeleteBucketInventoryConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -4440,7 +4651,7 @@ impl DeleteBucketInventoryConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -4507,7 +4718,7 @@ pub mod delete_bucket_lifecycle_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketLifecycleInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -4575,13 +4786,26 @@ impl DeleteBucketLifecycleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -4617,7 +4841,7 @@ impl DeleteBucketLifecycleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -4694,7 +4918,7 @@ pub mod delete_bucket_metrics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketMetricsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -4764,13 +4988,26 @@ impl DeleteBucketMetricsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -4809,7 +5046,7 @@ impl DeleteBucketMetricsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -4876,7 +5113,7 @@ pub mod delete_bucket_ownership_controls_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketOwnershipControlsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -4945,13 +5182,26 @@ impl DeleteBucketOwnershipControlsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -4987,7 +5237,7 @@ impl DeleteBucketOwnershipControlsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -5054,7 +5304,7 @@ pub mod delete_bucket_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketPolicyInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -5122,13 +5372,26 @@ impl DeleteBucketPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5164,7 +5427,7 @@ impl DeleteBucketPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -5231,7 +5494,7 @@ pub mod delete_bucket_replication_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketReplicationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -5300,13 +5563,26 @@ impl DeleteBucketReplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5342,7 +5618,7 @@ impl DeleteBucketReplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -5409,7 +5685,7 @@ pub mod delete_bucket_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketTaggingInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -5477,13 +5753,26 @@ impl DeleteBucketTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5519,7 +5808,7 @@ impl DeleteBucketTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -5586,7 +5875,7 @@ pub mod delete_bucket_website_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteBucketWebsiteInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -5654,13 +5943,26 @@ impl DeleteBucketWebsiteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5696,7 +5998,7 @@ impl DeleteBucketWebsiteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -5822,8 +6124,8 @@ pub mod delete_object_input { ) -> std::result::Result { Ok(crate::input::DeleteObjectInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, mfa: self.mfa, version_id: self.version_id, request_payer: self.request_payer, @@ -5892,14 +6194,44 @@ impl DeleteObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -5992,7 +6324,7 @@ impl DeleteObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -6108,7 +6440,7 @@ pub mod delete_objects_input { ) -> std::result::Result { Ok(crate::input::DeleteObjectsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, mfa: self.mfa, request_payer: self.request_payer, bypass_governance_retention: self.bypass_governance_retention.unwrap_or_default(), @@ -6192,13 +6524,26 @@ impl DeleteObjectsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -6289,7 +6634,7 @@ impl DeleteObjectsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -6378,8 +6723,8 @@ pub mod delete_object_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteObjectTaggingInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -6448,14 +6793,44 @@ impl DeleteObjectTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -6494,7 +6869,7 @@ impl DeleteObjectTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -6562,7 +6937,7 @@ pub mod delete_public_access_block_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeletePublicAccessBlockInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -6631,13 +7006,26 @@ impl DeletePublicAccessBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -6673,7 +7061,7 @@ impl DeletePublicAccessBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("DELETE").uri(uri)) @@ -6740,7 +7128,7 @@ pub mod get_bucket_accelerate_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketAccelerateConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -6809,13 +7197,26 @@ impl GetBucketAccelerateConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -6851,7 +7252,7 @@ impl GetBucketAccelerateConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -6916,7 +7317,7 @@ pub mod get_bucket_acl_input { ) -> std::result::Result { Ok(crate::input::GetBucketAclInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -6981,13 +7382,26 @@ impl GetBucketAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -7023,7 +7437,7 @@ impl GetBucketAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -7100,7 +7514,7 @@ pub mod get_bucket_analytics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketAnalyticsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -7170,13 +7584,26 @@ impl GetBucketAnalyticsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -7216,7 +7643,7 @@ impl GetBucketAnalyticsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -7281,7 +7708,7 @@ pub mod get_bucket_cors_input { ) -> std::result::Result { Ok(crate::input::GetBucketCorsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -7346,13 +7773,26 @@ impl GetBucketCorsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -7388,7 +7828,7 @@ impl GetBucketCorsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -7456,7 +7896,7 @@ pub mod get_bucket_encryption_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketEncryptionInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -7524,13 +7964,26 @@ impl GetBucketEncryptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -7566,7 +8019,7 @@ impl GetBucketEncryptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -7631,7 +8084,7 @@ pub mod get_bucket_intelligent_tiering_configuration_input { > { Ok( crate::input::GetBucketIntelligentTieringConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, }, ) @@ -7702,13 +8155,26 @@ impl GetBucketIntelligentTieringConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7724,7 +8190,7 @@ impl GetBucketIntelligentTieringConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7800,7 +8266,7 @@ pub mod get_bucket_inventory_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketInventoryConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -7870,13 +8336,26 @@ impl GetBucketInventoryConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -7916,7 +8395,7 @@ impl GetBucketInventoryConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -7983,7 +8462,7 @@ pub mod get_bucket_lifecycle_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketLifecycleConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -8052,13 +8531,26 @@ impl GetBucketLifecycleConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8094,7 +8586,7 @@ impl GetBucketLifecycleConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -8161,7 +8653,7 @@ pub mod get_bucket_location_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketLocationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -8229,13 +8721,26 @@ impl GetBucketLocationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8271,7 +8776,7 @@ impl GetBucketLocationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -8338,7 +8843,7 @@ pub mod get_bucket_logging_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketLoggingInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -8406,13 +8911,26 @@ impl GetBucketLoggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8448,7 +8966,7 @@ impl GetBucketLoggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -8525,7 +9043,7 @@ pub mod get_bucket_metrics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketMetricsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, }) @@ -8595,13 +9113,26 @@ impl GetBucketMetricsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8641,7 +9172,7 @@ impl GetBucketMetricsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -8708,7 +9239,7 @@ pub mod get_bucket_notification_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketNotificationConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -8777,13 +9308,26 @@ impl GetBucketNotificationConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8819,7 +9363,7 @@ impl GetBucketNotificationConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -8887,7 +9431,7 @@ pub mod get_bucket_ownership_controls_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketOwnershipControlsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -8956,13 +9500,26 @@ impl GetBucketOwnershipControlsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -8998,7 +9555,7 @@ impl GetBucketOwnershipControlsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9065,7 +9622,7 @@ pub mod get_bucket_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketPolicyInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -9133,13 +9690,26 @@ impl GetBucketPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9175,7 +9745,7 @@ impl GetBucketPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9242,7 +9812,7 @@ pub mod get_bucket_policy_status_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketPolicyStatusInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -9310,13 +9880,26 @@ impl GetBucketPolicyStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9352,7 +9935,7 @@ impl GetBucketPolicyStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9419,7 +10002,7 @@ pub mod get_bucket_replication_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketReplicationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -9487,13 +10070,26 @@ impl GetBucketReplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9529,7 +10125,7 @@ impl GetBucketReplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9596,7 +10192,7 @@ pub mod get_bucket_request_payment_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketRequestPaymentInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -9665,13 +10261,26 @@ impl GetBucketRequestPaymentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9707,7 +10316,7 @@ impl GetBucketRequestPaymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9774,7 +10383,7 @@ pub mod get_bucket_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketTaggingInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -9842,13 +10451,26 @@ impl GetBucketTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -9884,7 +10506,7 @@ impl GetBucketTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -9951,7 +10573,7 @@ pub mod get_bucket_versioning_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketVersioningInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -10019,13 +10641,26 @@ impl GetBucketVersioningInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -10061,7 +10696,7 @@ impl GetBucketVersioningInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -10128,7 +10763,7 @@ pub mod get_bucket_website_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetBucketWebsiteInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -10196,13 +10831,26 @@ impl GetBucketWebsiteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -10238,7 +10886,7 @@ impl GetBucketWebsiteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -10547,12 +11195,12 @@ pub mod get_object_input { ) -> std::result::Result { Ok(crate::input::GetObjectInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, if_match: self.if_match, if_modified_since: self.if_modified_since, if_none_match: self.if_none_match, if_unmodified_since: self.if_unmodified_since, - key: self.key.unwrap_or_default(), + key: self.key, range: self.range, response_cache_control: self.response_cache_control, response_content_disposition: self.response_content_disposition, @@ -10628,14 +11276,44 @@ impl GetObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -10887,7 +11565,7 @@ impl GetObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -10989,8 +11667,8 @@ pub mod get_object_acl_input { ) -> std::result::Result { Ok(crate::input::GetObjectAclInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, @@ -11057,14 +11735,44 @@ impl GetObjectAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -11121,7 +11829,7 @@ impl GetObjectAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -11225,8 +11933,8 @@ pub mod get_object_legal_hold_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetObjectLegalHoldInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, @@ -11296,14 +12004,44 @@ impl GetObjectLegalHoldInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -11360,7 +12098,7 @@ impl GetObjectLegalHoldInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -11428,7 +12166,7 @@ pub mod get_object_lock_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetObjectLockConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -11497,13 +12235,26 @@ impl GetObjectLockConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -11539,7 +12290,7 @@ impl GetObjectLockConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -11643,8 +12394,8 @@ pub mod get_object_retention_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetObjectRetentionInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, @@ -11714,14 +12465,44 @@ impl GetObjectRetentionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -11778,7 +12559,7 @@ impl GetObjectRetentionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -11883,8 +12664,8 @@ pub mod get_object_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetObjectTaggingInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, expected_bucket_owner: self.expected_bucket_owner, request_payer: self.request_payer, @@ -11954,14 +12735,44 @@ impl GetObjectTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -12018,7 +12829,7 @@ impl GetObjectTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -12111,8 +12922,8 @@ pub mod get_object_torrent_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetObjectTorrentInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, }) @@ -12181,14 +12992,44 @@ impl GetObjectTorrentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -12242,7 +13083,7 @@ impl GetObjectTorrentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -12310,7 +13151,7 @@ pub mod get_public_access_block_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetPublicAccessBlockInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -12378,13 +13219,26 @@ impl GetPublicAccessBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -12420,7 +13274,7 @@ impl GetPublicAccessBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -12487,7 +13341,7 @@ pub mod head_bucket_input { ) -> std::result::Result { Ok(crate::input::HeadBucketInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, }) } @@ -12552,13 +13406,26 @@ impl HeadBucketInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -12590,7 +13457,7 @@ impl HeadBucketInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; let builder = self.add_headers(builder)?; Ok(builder.method("HEAD").uri(uri)) } @@ -12817,12 +13684,12 @@ pub mod head_object_input { ) -> std::result::Result { Ok(crate::input::HeadObjectInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, if_match: self.if_match, if_modified_since: self.if_modified_since, if_none_match: self.if_none_match, if_unmodified_since: self.if_unmodified_since, - key: self.key.unwrap_or_default(), + key: self.key, range: self.range, version_id: self.version_id, sse_customer_algorithm: self.sse_customer_algorithm, @@ -12894,14 +13761,44 @@ impl HeadObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -13113,7 +14010,7 @@ impl HeadObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("HEAD").uri(uri)) @@ -13194,7 +14091,7 @@ pub mod list_bucket_analytics_configurations_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListBucketAnalyticsConfigurationsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, continuation_token: self.continuation_token, expected_bucket_owner: self.expected_bucket_owner, }) @@ -13264,13 +14161,26 @@ impl ListBucketAnalyticsConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -13313,7 +14223,7 @@ impl ListBucketAnalyticsConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -13382,7 +14292,7 @@ pub mod list_bucket_intelligent_tiering_configurations_input { > { Ok( crate::input::ListBucketIntelligentTieringConfigurationsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, continuation_token: self.continuation_token, }, ) @@ -13453,13 +14363,26 @@ impl ListBucketIntelligentTieringConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -13478,7 +14401,7 @@ impl ListBucketIntelligentTieringConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -13560,7 +14483,7 @@ pub mod list_bucket_inventory_configurations_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListBucketInventoryConfigurationsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, continuation_token: self.continuation_token, expected_bucket_owner: self.expected_bucket_owner, }) @@ -13630,13 +14553,26 @@ impl ListBucketInventoryConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -13679,7 +14615,7 @@ impl ListBucketInventoryConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -13762,7 +14698,7 @@ pub mod list_bucket_metrics_configurations_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListBucketMetricsConfigurationsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, continuation_token: self.continuation_token, expected_bucket_owner: self.expected_bucket_owner, }) @@ -13832,13 +14768,26 @@ impl ListBucketMetricsConfigurationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -13881,7 +14830,7 @@ impl ListBucketMetricsConfigurationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -13984,8 +14933,9 @@ impl ListBucketsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -13993,7 +14943,7 @@ impl ListBucketsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -14150,7 +15100,7 @@ pub mod list_multipart_uploads_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListMultipartUploadsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, delimiter: self.delimiter, encoding_type: self.encoding_type, key_marker: self.key_marker, @@ -14224,13 +15174,26 @@ impl ListMultipartUploadsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -14290,7 +15253,7 @@ impl ListMultipartUploadsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -14430,7 +15393,7 @@ pub mod list_objects_input { ) -> std::result::Result { Ok(crate::input::ListObjectsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, delimiter: self.delimiter, encoding_type: self.encoding_type, marker: self.marker, @@ -14501,13 +15464,26 @@ impl ListObjectsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -14578,7 +15554,7 @@ impl ListObjectsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -14741,7 +15717,7 @@ pub mod list_objects_v2_input { ) -> std::result::Result { Ok(crate::input::ListObjectsV2Input { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, delimiter: self.delimiter, encoding_type: self.encoding_type, max_keys: self.max_keys.unwrap_or_default(), @@ -14814,13 +15790,26 @@ impl ListObjectsV2Input { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -14904,7 +15893,7 @@ impl ListObjectsV2Input { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -15053,7 +16042,7 @@ pub mod list_object_versions_input { smithy_http::operation::BuildError, > { Ok(crate::input::ListObjectVersionsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, delimiter: self.delimiter, encoding_type: self.encoding_type, key_marker: self.key_marker, @@ -15127,13 +16116,26 @@ impl ListObjectVersionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -15193,7 +16195,7 @@ impl ListObjectVersionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -15320,8 +16322,8 @@ pub mod list_parts_input { ) -> std::result::Result { Ok(crate::input::ListPartsInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, max_parts: self.max_parts.unwrap_or_default(), part_number_marker: self.part_number_marker, upload_id: self.upload_id, @@ -15388,14 +16390,44 @@ impl ListPartsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -15464,7 +16496,7 @@ impl ListPartsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("GET").uri(uri)) @@ -15548,7 +16580,7 @@ pub mod put_bucket_accelerate_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketAccelerateConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, accelerate_configuration: self.accelerate_configuration, }) @@ -15620,13 +16652,26 @@ impl PutBucketAccelerateConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -15662,7 +16707,7 @@ impl PutBucketAccelerateConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -15830,7 +16875,7 @@ pub mod put_bucket_acl_input { { Ok(crate::input::PutBucketAclInput { acl: self.acl, - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, grant_full_control: self.grant_full_control, grant_read: self.grant_read, @@ -15919,13 +16964,26 @@ impl PutBucketAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -16087,7 +17145,7 @@ impl PutBucketAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -16181,7 +17239,7 @@ pub mod put_bucket_analytics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketAnalyticsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, analytics_configuration: self.analytics_configuration, @@ -16254,13 +17312,26 @@ impl PutBucketAnalyticsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -16299,7 +17370,7 @@ impl PutBucketAnalyticsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -16336,7 +17407,7 @@ pub mod put_bucket_cors_input { pub(crate) bucket: std::option::Option, pub(crate) content_md5: std::option::Option, pub(crate) expected_bucket_owner: std::option::Option, - pub(crate) cors_configuration: std::option::Option, + pub(crate) cors_configuration: std::option::Option, } impl Builder { ///

                        Specifies the bucket impacted by the corsconfiguration.

                        @@ -16377,13 +17448,13 @@ pub mod put_bucket_cors_input { ///

                        Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more /// information, see Enabling Cross-Origin Resource /// Sharing in the Amazon S3 User Guide.

                        - pub fn cors_configuration(mut self, input: crate::model::CORSConfiguration) -> Self { + pub fn cors_configuration(mut self, input: crate::model::CorsConfiguration) -> Self { self.cors_configuration = Some(input); self } pub fn set_cors_configuration( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.cors_configuration = input; self @@ -16394,7 +17465,7 @@ pub mod put_bucket_cors_input { ) -> std::result::Result { Ok(crate::input::PutBucketCorsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, cors_configuration: self.cors_configuration, @@ -16477,13 +17548,26 @@ impl PutBucketCorsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -16537,7 +17621,7 @@ impl PutBucketCorsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -16635,7 +17719,7 @@ pub mod put_bucket_encryption_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketEncryptionInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, server_side_encryption_configuration: self.server_side_encryption_configuration, @@ -16722,13 +17806,26 @@ impl PutBucketEncryptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -16782,7 +17879,7 @@ impl PutBucketEncryptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -16864,7 +17961,7 @@ pub mod put_bucket_intelligent_tiering_configuration_input { > { Ok( crate::input::PutBucketIntelligentTieringConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, intelligent_tiering_configuration: self.intelligent_tiering_configuration, }, @@ -16938,13 +18035,26 @@ impl PutBucketIntelligentTieringConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -16959,7 +18069,7 @@ impl PutBucketIntelligentTieringConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("PUT").uri(uri)) } @@ -17052,7 +18162,7 @@ pub mod put_bucket_inventory_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketInventoryConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, inventory_configuration: self.inventory_configuration, @@ -17125,13 +18235,26 @@ impl PutBucketInventoryConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -17170,7 +18293,7 @@ impl PutBucketInventoryConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -17254,7 +18377,7 @@ pub mod put_bucket_lifecycle_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketLifecycleConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, lifecycle_configuration: self.lifecycle_configuration, }) @@ -17341,13 +18464,26 @@ impl PutBucketLifecycleConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -17383,7 +18519,7 @@ impl PutBucketLifecycleConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -17474,7 +18610,7 @@ pub mod put_bucket_logging_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketLoggingInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, bucket_logging_status: self.bucket_logging_status, @@ -17561,13 +18697,26 @@ impl PutBucketLoggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -17621,7 +18770,7 @@ impl PutBucketLoggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -17711,7 +18860,7 @@ pub mod put_bucket_metrics_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketMetricsConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, id: self.id, expected_bucket_owner: self.expected_bucket_owner, metrics_configuration: self.metrics_configuration, @@ -17784,13 +18933,26 @@ impl PutBucketMetricsConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -17829,7 +18991,7 @@ impl PutBucketMetricsConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -17914,7 +19076,7 @@ pub mod put_bucket_notification_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketNotificationConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, expected_bucket_owner: self.expected_bucket_owner, notification_configuration: self.notification_configuration, }) @@ -17987,13 +19149,26 @@ impl PutBucketNotificationConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -18029,7 +19204,7 @@ impl PutBucketNotificationConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -18121,7 +19296,7 @@ pub mod put_bucket_ownership_controls_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketOwnershipControlsInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, ownership_controls: self.ownership_controls, @@ -18209,13 +19384,26 @@ impl PutBucketOwnershipControlsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -18269,7 +19457,7 @@ impl PutBucketOwnershipControlsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -18371,7 +19559,7 @@ pub mod put_bucket_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketPolicyInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, confirm_remove_self_bucket_access: self .confirm_remove_self_bucket_access @@ -18459,13 +19647,26 @@ impl PutBucketPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -18538,7 +19739,7 @@ impl PutBucketPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -18646,7 +19847,7 @@ pub mod put_bucket_replication_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketReplicationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, token: self.token, expected_bucket_owner: self.expected_bucket_owner, @@ -18734,13 +19935,26 @@ impl PutBucketReplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -18812,7 +20026,7 @@ impl PutBucketReplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -18910,7 +20124,7 @@ pub mod put_bucket_request_payment_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketRequestPaymentInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, request_payment_configuration: self.request_payment_configuration, @@ -18998,13 +20212,26 @@ impl PutBucketRequestPaymentInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -19058,7 +20285,7 @@ impl PutBucketRequestPaymentInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -19148,7 +20375,7 @@ pub mod put_bucket_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketTaggingInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, tagging: self.tagging, @@ -19233,13 +20460,26 @@ impl PutBucketTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -19293,7 +20533,7 @@ impl PutBucketTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -19402,7 +20642,7 @@ pub mod put_bucket_versioning_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketVersioningInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, mfa: self.mfa, expected_bucket_owner: self.expected_bucket_owner, @@ -19490,13 +20730,26 @@ impl PutBucketVersioningInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -19568,7 +20821,7 @@ impl PutBucketVersioningInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -19661,7 +20914,7 @@ pub mod put_bucket_website_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutBucketWebsiteInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, website_configuration: self.website_configuration, @@ -19748,13 +21001,26 @@ impl PutBucketWebsiteInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -19808,7 +21074,7 @@ impl PutBucketWebsiteInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -20318,7 +21584,7 @@ pub mod put_object_input { Ok(crate::input::PutObjectInput { acl: self.acl, body: self.body.unwrap_or_default(), - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, cache_control: self.cache_control, content_disposition: self.content_disposition, content_encoding: self.content_encoding, @@ -20331,7 +21597,7 @@ pub mod put_object_input { grant_read: self.grant_read, grant_read_acp: self.grant_read_acp, grant_write_acp: self.grant_write_acp, - key: self.key.unwrap_or_default(), + key: self.key, metadata: self.metadata, server_side_encryption: self.server_side_encryption, storage_class: self.storage_class, @@ -20409,14 +21675,44 @@ impl PutObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -20969,7 +22265,7 @@ impl PutObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -21182,14 +22478,14 @@ pub mod put_object_acl_input { { Ok(crate::input::PutObjectAclInput { acl: self.acl, - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, grant_full_control: self.grant_full_control, grant_read: self.grant_read, grant_read_acp: self.grant_read_acp, grant_write: self.grant_write, grant_write_acp: self.grant_write_acp, - key: self.key.unwrap_or_default(), + key: self.key, request_payer: self.request_payer, version_id: self.version_id, expected_bucket_owner: self.expected_bucket_owner, @@ -21274,14 +22570,44 @@ impl PutObjectAclInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -21464,7 +22790,7 @@ impl PutObjectAclInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -21593,8 +22919,8 @@ pub mod put_object_legal_hold_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutObjectLegalHoldInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, request_payer: self.request_payer, version_id: self.version_id, content_md5: self.content_md5, @@ -21682,14 +23008,44 @@ impl PutObjectLegalHoldInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -21764,7 +23120,7 @@ impl PutObjectLegalHoldInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -21885,7 +23241,7 @@ pub mod put_object_lock_configuration_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutObjectLockConfigurationInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, request_payer: self.request_payer, token: self.token, content_md5: self.content_md5, @@ -21975,13 +23331,26 @@ impl PutObjectLockConfigurationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -22071,7 +23440,7 @@ impl PutObjectLockConfigurationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -22212,8 +23581,8 @@ pub mod put_object_retention_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutObjectRetentionInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, request_payer: self.request_payer, version_id: self.version_id, bypass_governance_retention: self.bypass_governance_retention.unwrap_or_default(), @@ -22302,14 +23671,44 @@ impl PutObjectRetentionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -22402,7 +23801,7 @@ impl PutObjectRetentionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -22528,8 +23927,8 @@ pub mod put_object_tagging_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutObjectTaggingInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, @@ -22616,14 +24015,44 @@ impl PutObjectTaggingInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -22698,7 +24127,7 @@ impl PutObjectTaggingInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -22796,7 +24225,7 @@ pub mod put_public_access_block_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutPublicAccessBlockInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_md5: self.content_md5, expected_bucket_owner: self.expected_bucket_owner, public_access_block_configuration: self.public_access_block_configuration, @@ -22883,13 +24312,26 @@ impl PutPublicAccessBlockInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}", Bucket = bucket).expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -22943,7 +24385,7 @@ impl PutPublicAccessBlockInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -23059,8 +24501,8 @@ pub mod restore_object_input { ) -> std::result::Result { Ok(crate::input::RestoreObjectInput { - bucket: self.bucket.unwrap_or_default(), - key: self.key.unwrap_or_default(), + bucket: self.bucket, + key: self.key, version_id: self.version_id, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, @@ -23129,14 +24571,44 @@ impl RestoreObjectInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -23194,7 +24666,7 @@ impl RestoreObjectInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -23391,10 +24863,10 @@ pub mod upload_part_input { { Ok(crate::input::UploadPartInput { body: self.body.unwrap_or_default(), - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, content_length: self.content_length.unwrap_or_default(), content_md5: self.content_md5, - key: self.key.unwrap_or_default(), + key: self.key, part_number: self.part_number.unwrap_or_default(), upload_id: self.upload_id, sse_customer_algorithm: self.sse_customer_algorithm, @@ -23465,14 +24937,44 @@ impl UploadPartInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -23631,7 +25133,7 @@ impl UploadPartInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -23963,14 +25465,14 @@ pub mod upload_part_copy_input { smithy_http::operation::BuildError, > { Ok(crate::input::UploadPartCopyInput { - bucket: self.bucket.unwrap_or_default(), + bucket: self.bucket, copy_source: self.copy_source, copy_source_if_match: self.copy_source_if_match, copy_source_if_modified_since: self.copy_source_if_modified_since, copy_source_if_none_match: self.copy_source_if_none_match, copy_source_if_unmodified_since: self.copy_source_if_unmodified_since, copy_source_range: self.copy_source_range, - key: self.key.unwrap_or_default(), + key: self.key, part_number: self.part_number.unwrap_or_default(), upload_id: self.upload_id, sse_customer_algorithm: self.sse_customer_algorithm, @@ -24048,14 +25550,44 @@ impl UploadPartCopyInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/{Bucket}/{Key}", - Bucket = smithy_http::label::fmt_string(&self.bucket, false), - Key = smithy_http::label::fmt_string(&self.key, true) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let bucket = { + let input = &self.bucket; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "bucket", + details: "cannot be empty or unset", + }); + } + formatted + }; + let key = { + let input = &self.key; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, true); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "key", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/{Bucket}/{Key}", Bucket = bucket, Key = key) + .expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -24367,7 +25899,7 @@ impl UploadPartCopyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("PUT").uri(uri)) @@ -25071,8 +26603,9 @@ impl WriteGetObjectResponseInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/WriteGetObjectResponse").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/WriteGetObjectResponse").expect("formatting should succeed"); + Ok(()) } fn add_headers( &self, @@ -25744,7 +27277,7 @@ impl WriteGetObjectResponseInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); let builder = self.add_headers(builder)?; Ok(builder.method("POST").uri(uri)) @@ -26001,7 +27534,7 @@ pub struct UploadPartCopyInput { ///

                        The bucket name.

                        ///

                        When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                        ///

                        When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                        - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                        Specifies the source object for the copy operation. You specify the value in one of two /// formats, depending on whether you want to access the source object through an access point:

                        ///
                          @@ -26041,7 +27574,7 @@ pub struct UploadPartCopyInput { /// can copy a range only if the source object is greater than 5 MB.

                          pub copy_source_range: std::option::Option, ///

                          Object key for which the multipart upload was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Part number of part being copied. This is a positive integer between 1 and /// 10,000.

                          pub part_number: i32, @@ -26132,7 +27665,7 @@ pub struct UploadPartInput { ///

                          The name of the bucket to which the multipart upload was initiated.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Size of the body in bytes. This parameter is useful when the size of the body cannot be /// determined automatically.

                          pub content_length: i64, @@ -26141,7 +27674,7 @@ pub struct UploadPartInput { /// are specified.

                          pub content_md5: std::option::Option, ///

                          Object key for which the multipart upload was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Part number of part being uploaded. This is a positive integer between 1 and /// 10,000.

                          pub part_number: i32, @@ -26193,9 +27726,9 @@ pub struct RestoreObjectInput { ///

                          The bucket name containing the object to restore.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Object key for which the action was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          VersionId used to reference a specific version of the object.

                          pub version_id: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket @@ -26226,7 +27759,7 @@ impl std::fmt::Debug for RestoreObjectInput { pub struct PutPublicAccessBlockInput { ///

                          The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want /// to set.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The MD5 hash of the PutPublicAccessBlock request body.

                          ///

                          For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

                          pub content_md5: std::option::Option, @@ -26258,9 +27791,9 @@ pub struct PutObjectTaggingInput { ///

                          The bucket name containing the object.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Name of the object key.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The versionId of the object that the tag-set will be added to.

                          pub version_id: std::option::Option, ///

                          The MD5 hash for the request body.

                          @@ -26296,10 +27829,10 @@ pub struct PutObjectRetentionInput { ///

                          The bucket name that contains the object you want to apply this Object Retention /// configuration to.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key name for the object that you want to apply this Object Retention configuration /// to.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket /// owners need not specify this parameter in their requests. For information about downloading /// objects from requester pays buckets, see Downloading Objects in @@ -26340,7 +27873,7 @@ impl std::fmt::Debug for PutObjectRetentionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutObjectLockConfigurationInput { ///

                          The bucket whose Object Lock configuration you want to create or replace.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket /// owners need not specify this parameter in their requests. For information about downloading /// objects from requester pays buckets, see Downloading Objects in @@ -26374,9 +27907,9 @@ impl std::fmt::Debug for PutObjectLockConfigurationInput { pub struct PutObjectLegalHoldInput { ///

                          The bucket name containing the object that you want to place a Legal Hold on.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key name for the object that you want to place a Legal Hold on.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket /// owners need not specify this parameter in their requests. For information about downloading /// objects from requester pays buckets, see Downloading Objects in @@ -26414,7 +27947,7 @@ pub struct PutObjectAclInput { pub acl: std::option::Option, ///

                          The bucket name that contains the object to which you want to attach the ACL.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, go to RFC @@ -26443,7 +27976,7 @@ pub struct PutObjectAclInput { ///

                          Key for which the PUT action was initiated.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket /// owners need not specify this parameter in their requests. For information about downloading /// objects from requester pays buckets, see Downloading Objects in @@ -26487,7 +28020,7 @@ pub struct PutObjectInput { ///

                          The bucket name to which the PUT action was initiated.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Can be used to specify caching behavior along the request/reply chain. For more /// information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

                          pub cache_control: std::option::Option, @@ -26531,7 +28064,7 @@ pub struct PutObjectInput { ///

                          This action is not supported by Amazon S3 on Outposts.

                          pub grant_write_acp: std::option::Option, ///

                          Object key for which the PUT action was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          A map of metadata to store with the object in S3.

                          pub metadata: std::option::Option>, @@ -26660,7 +28193,7 @@ impl std::fmt::Debug for PutObjectInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketWebsiteInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, see RFC 1864.

                          @@ -26686,7 +28219,7 @@ impl std::fmt::Debug for PutBucketWebsiteInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketVersioningInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a /// message integrity check to verify that the request body was not corrupted in transit. For /// more information, see RFC @@ -26717,7 +28250,7 @@ impl std::fmt::Debug for PutBucketVersioningInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketTaggingInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, see RFC 1864.

                          @@ -26743,7 +28276,7 @@ impl std::fmt::Debug for PutBucketTaggingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketRequestPaymentInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a /// message integrity check to verify that the request body was not corrupted in transit. For /// more information, see RFC @@ -26774,7 +28307,7 @@ impl std::fmt::Debug for PutBucketRequestPaymentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketReplicationInput { ///

                          The name of the bucket

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, see RFC 1864.

                          @@ -26804,7 +28337,7 @@ impl std::fmt::Debug for PutBucketReplicationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketPolicyInput { ///

                          The name of the bucket.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The MD5 hash of the request body.

                          ///

                          For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

                          pub content_md5: std::option::Option, @@ -26835,7 +28368,7 @@ impl std::fmt::Debug for PutBucketPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketOwnershipControlsInput { ///

                          The name of the Amazon S3 bucket whose OwnershipControls you want to set.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The MD5 hash of the OwnershipControls request body.

                          ///

                          For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

                          pub content_md5: std::option::Option, @@ -26860,7 +28393,7 @@ impl std::fmt::Debug for PutBucketOwnershipControlsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketNotificationConfigurationInput { ///

                          The name of the bucket.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, ///

                          A container for specifying the notification configuration of the bucket. If this element @@ -26884,7 +28417,7 @@ impl std::fmt::Debug for PutBucketNotificationConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketMetricsConfigurationInput { ///

                          The name of the bucket for which the metrics configuration is set.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the metrics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -26907,7 +28440,7 @@ impl std::fmt::Debug for PutBucketMetricsConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketLoggingInput { ///

                          The name of the bucket for which to set the logging parameters.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The MD5 hash of the PutBucketLogging request body.

                          ///

                          For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

                          pub content_md5: std::option::Option, @@ -26931,7 +28464,7 @@ impl std::fmt::Debug for PutBucketLoggingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketLifecycleConfigurationInput { ///

                          The name of the bucket for which to set the configuration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, ///

                          Container for lifecycle rules. You can add as many as 1,000 rules.

                          @@ -26951,7 +28484,7 @@ impl std::fmt::Debug for PutBucketLifecycleConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketInventoryConfigurationInput { ///

                          The name of the bucket where the inventory configuration will be stored.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the inventory configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -26974,7 +28507,7 @@ impl std::fmt::Debug for PutBucketInventoryConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketIntelligentTieringConfigurationInput { ///

                          The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the S3 Intelligent-Tiering configuration.

                          pub id: std::option::Option, ///

                          Container for S3 Intelligent-Tiering configuration.

                          @@ -27001,7 +28534,7 @@ pub struct PutBucketEncryptionInput { /// keys (SSE-S3) or customer master keys stored in AWS KMS (SSE-KMS). For information about /// the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption /// in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

                          ///

                          For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

                          pub content_md5: std::option::Option, @@ -27029,7 +28562,7 @@ impl std::fmt::Debug for PutBucketEncryptionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketCorsInput { ///

                          Specifies the bucket impacted by the corsconfiguration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, go to RFC @@ -27042,7 +28575,7 @@ pub struct PutBucketCorsInput { ///

                          Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more /// information, see Enabling Cross-Origin Resource /// Sharing in the Amazon S3 User Guide.

                          - pub cors_configuration: std::option::Option, + pub cors_configuration: std::option::Option, } impl std::fmt::Debug for PutBucketCorsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -27059,7 +28592,7 @@ impl std::fmt::Debug for PutBucketCorsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketAnalyticsConfigurationInput { ///

                          The name of the bucket to which an analytics configuration is stored.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID that identifies the analytics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -27084,7 +28617,7 @@ pub struct PutBucketAclInput { ///

                          The canned ACL to apply to the bucket.

                          pub acl: std::option::Option, ///

                          The bucket to which to apply the ACL.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message /// integrity check to verify that the request body was not corrupted in transit. For more /// information, go to RFC @@ -27130,7 +28663,7 @@ impl std::fmt::Debug for PutBucketAclInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutBucketAccelerateConfigurationInput { ///

                          The name of the bucket for which the accelerate configuration is set.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, ///

                          Container for setting the transfer acceleration state.

                          @@ -27152,9 +28685,9 @@ pub struct ListPartsInput { ///

                          The name of the bucket to which the parts are being uploaded.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Object key for which the multipart upload was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Sets the maximum number of parts to return.

                          pub max_parts: i32, ///

                          Specifies the part after which listing should begin. Only parts with higher part numbers @@ -27188,7 +28721,7 @@ impl std::fmt::Debug for ListPartsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListObjectVersionsInput { ///

                          The bucket name that contains the objects.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          A delimiter is a character that you specify to group keys. All keys that contain the /// same string between the prefix and the first occurrence of the delimiter are /// grouped under a single result element in CommonPrefixes. These groups are counted as one @@ -27241,7 +28774,7 @@ pub struct ListObjectsV2Input { ///

                          Bucket name to list.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          A delimiter is a character you use to group keys.

                          pub delimiter: std::option::Option, ///

                          Encoding type used by Amazon S3 to encode object keys in the response.

                          @@ -27291,7 +28824,7 @@ pub struct ListObjectsInput { ///

                          The name of the bucket containing the objects.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          A delimiter is a character you use to group keys.

                          pub delimiter: std::option::Option, ///

                          Requests Amazon S3 to encode the object keys in the response and specifies the encoding @@ -27335,7 +28868,7 @@ pub struct ListMultipartUploadsInput { ///

                          The name of the bucket to which the multipart upload was initiated.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Character you use to group keys.

                          ///

                          All keys that contain the same string between the prefix, if specified, and the first /// occurrence of the delimiter after the prefix are grouped under a single result element, @@ -27404,7 +28937,7 @@ impl std::fmt::Debug for ListBucketsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListBucketMetricsConfigurationsInput { ///

                          The name of the bucket containing the metrics configurations to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The marker that is used to continue a metrics configuration listing that has been /// truncated. Use the NextContinuationToken from a previously truncated list response to /// continue the listing. The continuation token is an opaque value that Amazon S3 @@ -27427,7 +28960,7 @@ impl std::fmt::Debug for ListBucketMetricsConfigurationsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListBucketInventoryConfigurationsInput { ///

                          The name of the bucket containing the inventory configurations to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The marker used to continue an inventory configuration listing that has been truncated. /// Use the NextContinuationToken from a previously truncated list response to continue the /// listing. The continuation token is an opaque value that Amazon S3 understands.

                          @@ -27449,7 +28982,7 @@ impl std::fmt::Debug for ListBucketInventoryConfigurationsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListBucketIntelligentTieringConfigurationsInput { ///

                          The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ContinuationToken that represents a placeholder from where this request should /// begin.

                          pub continuation_token: std::option::Option, @@ -27467,7 +29000,7 @@ impl std::fmt::Debug for ListBucketIntelligentTieringConfigurationsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListBucketAnalyticsConfigurationsInput { ///

                          The name of the bucket from which analytics configurations are retrieved.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ContinuationToken that represents a placeholder from where this request should /// begin.

                          pub continuation_token: std::option::Option, @@ -27490,7 +29023,7 @@ pub struct HeadObjectInput { ///

                          The name of the bucket containing the object.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Return the object only if its entity tag (ETag) is the same as the one specified, /// otherwise return a 412 (precondition failed).

                          pub if_match: std::option::Option, @@ -27504,7 +29037,7 @@ pub struct HeadObjectInput { /// return a 412 (precondition failed).

                          pub if_unmodified_since: std::option::Option, ///

                          The object key.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Downloads the specified range bytes of an object. For more information about the HTTP /// Range header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

                          /// @@ -27565,7 +29098,7 @@ pub struct HeadBucketInput { ///

                          The bucket name.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27583,7 +29116,7 @@ impl std::fmt::Debug for HeadBucketInput { pub struct GetPublicAccessBlockInput { ///

                          The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want /// to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27600,9 +29133,9 @@ impl std::fmt::Debug for GetPublicAccessBlockInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetObjectTorrentInput { ///

                          The name of the bucket containing the object for which to get the torrent files.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The object key for which to get the information.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket /// owners need not specify this parameter in their requests. For information about downloading /// objects from requester pays buckets, see Downloading Objects in @@ -27628,9 +29161,9 @@ pub struct GetObjectTaggingInput { ///

                          The bucket name containing the object for which to get the tagging information.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Object key for which to get the tagging information.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The versionId of the object for which to get the tagging information.

                          pub version_id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -27658,9 +29191,9 @@ impl std::fmt::Debug for GetObjectTaggingInput { pub struct GetObjectRetentionInput { ///

                          The bucket name containing the object whose retention settings you want to retrieve.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key name for the object whose retention settings you want to retrieve.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The version ID for the object whose retention settings you want to retrieve.

                          pub version_id: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket @@ -27688,7 +29221,7 @@ impl std::fmt::Debug for GetObjectRetentionInput { pub struct GetObjectLockConfigurationInput { ///

                          The bucket whose Object Lock configuration you want to retrieve.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27706,9 +29239,9 @@ impl std::fmt::Debug for GetObjectLockConfigurationInput { pub struct GetObjectLegalHoldInput { ///

                          The bucket name containing the object whose Legal Hold status you want to retrieve.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key name for the object whose Legal Hold status you want to retrieve.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The version ID of the object whose Legal Hold status you want to retrieve.

                          pub version_id: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket @@ -27736,9 +29269,9 @@ impl std::fmt::Debug for GetObjectLegalHoldInput { pub struct GetObjectAclInput { ///

                          The bucket name that contains the object for which to get the ACL information.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key of the object for which to get the ACL information.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          VersionId used to reference a specific version of the object.

                          pub version_id: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket @@ -27767,7 +29300,7 @@ pub struct GetObjectInput { ///

                          The bucket name containing the object.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Return the object only if its entity tag (ETag) is the same as the one specified, /// otherwise return a 412 (precondition failed).

                          pub if_match: std::option::Option, @@ -27781,7 +29314,7 @@ pub struct GetObjectInput { /// return a 412 (precondition failed).

                          pub if_unmodified_since: std::option::Option, ///

                          Key of the object to get.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Downloads the specified range bytes of an object. For more information about the HTTP /// Range header, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.

                          /// @@ -27861,7 +29394,7 @@ impl std::fmt::Debug for GetObjectInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketWebsiteInput { ///

                          The bucket name for which to get the website configuration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27878,7 +29411,7 @@ impl std::fmt::Debug for GetBucketWebsiteInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketVersioningInput { ///

                          The name of the bucket for which to get the versioning information.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27895,7 +29428,7 @@ impl std::fmt::Debug for GetBucketVersioningInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketTaggingInput { ///

                          The name of the bucket for which to get the tagging information.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27912,7 +29445,7 @@ impl std::fmt::Debug for GetBucketTaggingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketRequestPaymentInput { ///

                          The name of the bucket for which to get the payment request configuration

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27929,7 +29462,7 @@ impl std::fmt::Debug for GetBucketRequestPaymentInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketReplicationInput { ///

                          The bucket name for which to get the replication information.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27946,7 +29479,7 @@ impl std::fmt::Debug for GetBucketReplicationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketPolicyStatusInput { ///

                          The name of the Amazon S3 bucket whose policy status you want to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27963,7 +29496,7 @@ impl std::fmt::Debug for GetBucketPolicyStatusInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketPolicyInput { ///

                          The bucket name for which to get the bucket policy.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27981,7 +29514,7 @@ impl std::fmt::Debug for GetBucketPolicyInput { pub struct GetBucketOwnershipControlsInput { ///

                          The name of the Amazon S3 bucket whose OwnershipControls you want to retrieve. ///

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -27998,7 +29531,7 @@ impl std::fmt::Debug for GetBucketOwnershipControlsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketNotificationConfigurationInput { ///

                          The name of the bucket for which to get the notification configuration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28015,7 +29548,7 @@ impl std::fmt::Debug for GetBucketNotificationConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketMetricsConfigurationInput { ///

                          The name of the bucket containing the metrics configuration to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the metrics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28035,7 +29568,7 @@ impl std::fmt::Debug for GetBucketMetricsConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketLoggingInput { ///

                          The bucket name for which to get the logging information.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28052,7 +29585,7 @@ impl std::fmt::Debug for GetBucketLoggingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketLocationInput { ///

                          The name of the bucket for which to get the location.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28069,7 +29602,7 @@ impl std::fmt::Debug for GetBucketLocationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketLifecycleConfigurationInput { ///

                          The name of the bucket for which to get the lifecycle information.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28086,7 +29619,7 @@ impl std::fmt::Debug for GetBucketLifecycleConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketInventoryConfigurationInput { ///

                          The name of the bucket containing the inventory configuration to retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the inventory configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28106,7 +29639,7 @@ impl std::fmt::Debug for GetBucketInventoryConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketIntelligentTieringConfigurationInput { ///

                          The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the S3 Intelligent-Tiering configuration.

                          pub id: std::option::Option, } @@ -28124,7 +29657,7 @@ impl std::fmt::Debug for GetBucketIntelligentTieringConfigurationInput { pub struct GetBucketEncryptionInput { ///

                          The name of the bucket from which the server-side encryption configuration is /// retrieved.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28141,7 +29674,7 @@ impl std::fmt::Debug for GetBucketEncryptionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketCorsInput { ///

                          The bucket name for which to get the cors configuration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28158,7 +29691,7 @@ impl std::fmt::Debug for GetBucketCorsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketAnalyticsConfigurationInput { ///

                          The name of the bucket from which an analytics configuration is retrieved.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID that identifies the analytics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28178,7 +29711,7 @@ impl std::fmt::Debug for GetBucketAnalyticsConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketAclInput { ///

                          Specifies the S3 bucket whose ACL is being requested.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28195,7 +29728,7 @@ impl std::fmt::Debug for GetBucketAclInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetBucketAccelerateConfigurationInput { ///

                          The name of the bucket for which the accelerate configuration is retrieved.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28213,7 +29746,7 @@ impl std::fmt::Debug for GetBucketAccelerateConfigurationInput { pub struct DeletePublicAccessBlockInput { ///

                          The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. ///

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28232,9 +29765,9 @@ pub struct DeleteObjectTaggingInput { ///

                          The bucket name containing the objects from which to remove the tags.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The key that identifies the object in the bucket from which to remove all tags.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The versionId of the object that the tag-set will be removed from.

                          pub version_id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28257,7 +29790,7 @@ pub struct DeleteObjectsInput { ///

                          The bucket name containing the objects to delete.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The concatenation of the authentication device's serial number, a space, and the value /// that is displayed on your authentication device. Required to permanently delete a versioned /// object if versioning is configured with MFA delete enabled.

                          @@ -28297,9 +29830,9 @@ pub struct DeleteObjectInput { ///

                          The bucket name of the bucket containing the object.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Key name of the object to delete.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The concatenation of the authentication device's serial number, a space, and the value /// that is displayed on your authentication device. Required to permanently delete a versioned /// object if versioning is configured with MFA delete enabled.

                          @@ -28338,7 +29871,7 @@ impl std::fmt::Debug for DeleteObjectInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketWebsiteInput { ///

                          The bucket name for which you want to remove the website configuration.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28355,7 +29888,7 @@ impl std::fmt::Debug for DeleteBucketWebsiteInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketTaggingInput { ///

                          The bucket that has the tag set to be removed.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28372,7 +29905,7 @@ impl std::fmt::Debug for DeleteBucketTaggingInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketReplicationInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28389,7 +29922,7 @@ impl std::fmt::Debug for DeleteBucketReplicationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketPolicyInput { ///

                          The bucket name.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28406,7 +29939,7 @@ impl std::fmt::Debug for DeleteBucketPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketOwnershipControlsInput { ///

                          The Amazon S3 bucket whose OwnershipControls you want to delete.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28423,7 +29956,7 @@ impl std::fmt::Debug for DeleteBucketOwnershipControlsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketMetricsConfigurationInput { ///

                          The name of the bucket containing the metrics configuration to delete.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the metrics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28443,7 +29976,7 @@ impl std::fmt::Debug for DeleteBucketMetricsConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketLifecycleInput { ///

                          The bucket name of the lifecycle to delete.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28460,7 +29993,7 @@ impl std::fmt::Debug for DeleteBucketLifecycleInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketInventoryConfigurationInput { ///

                          The name of the bucket containing the inventory configuration to delete.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the inventory configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28480,7 +30013,7 @@ impl std::fmt::Debug for DeleteBucketInventoryConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketIntelligentTieringConfigurationInput { ///

                          The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID used to identify the S3 Intelligent-Tiering configuration.

                          pub id: std::option::Option, } @@ -28498,7 +30031,7 @@ impl std::fmt::Debug for DeleteBucketIntelligentTieringConfigurationInput { pub struct DeleteBucketEncryptionInput { ///

                          The name of the bucket containing the server-side encryption configuration to /// delete.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28515,7 +30048,7 @@ impl std::fmt::Debug for DeleteBucketEncryptionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketCorsInput { ///

                          Specifies the bucket whose cors configuration is being deleted.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28532,7 +30065,7 @@ impl std::fmt::Debug for DeleteBucketCorsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketAnalyticsConfigurationInput { ///

                          The name of the bucket from which an analytics configuration is deleted.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The ID that identifies the analytics configuration.

                          pub id: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          @@ -28552,7 +30085,7 @@ impl std::fmt::Debug for DeleteBucketAnalyticsConfigurationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteBucketInput { ///

                          Specifies the bucket being deleted.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

                          pub expected_bucket_owner: std::option::Option, } @@ -28574,7 +30107,7 @@ pub struct CreateMultipartUploadInput { ///

                          The name of the bucket to which to initiate the upload

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Specifies caching behavior along the request/reply chain.

                          pub cache_control: std::option::Option, ///

                          Specifies presentational information for the object.

                          @@ -28605,7 +30138,7 @@ pub struct CreateMultipartUploadInput { ///

                          This action is not supported by Amazon S3 on Outposts.

                          pub grant_write_acp: std::option::Option, ///

                          Object key for which the multipart upload is to be initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          A map of metadata to store with the object in S3.

                          pub metadata: std::option::Option>, @@ -28714,7 +30247,7 @@ pub struct CreateBucketInput { ///

                          The canned ACL to apply to the bucket.

                          pub acl: std::option::Option, ///

                          The name of the bucket to create.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Allows grantee the read, write, read ACP, and write ACP permissions on the /// bucket.

                          pub grant_full_control: std::option::Option, @@ -28763,7 +30296,7 @@ pub struct CopyObjectInput { ///

                          The name of the destination bucket.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Specifies caching behavior along the request/reply chain.

                          pub cache_control: std::option::Option, ///

                          Specifies presentational information for the object.

                          @@ -28827,7 +30360,7 @@ pub struct CopyObjectInput { ///

                          This action is not supported by Amazon S3 on Outposts.

                          pub grant_write_acp: std::option::Option, ///

                          The key of the destination object.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          A map of metadata to store with the object in S3.

                          pub metadata: std::option::Option>, @@ -28984,9 +30517,9 @@ impl std::fmt::Debug for CopyObjectInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CompleteMultipartUploadInput { ///

                          Name of the bucket to which the multipart upload was initiated.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Object key for which the multipart upload was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          The container for the multipart upload request information.

                          pub multipart_upload: std::option::Option, ///

                          ID for the initiated multipart upload.

                          @@ -29018,9 +30551,9 @@ pub struct AbortMultipartUploadInput { ///

                          The bucket name to which the upload was taking place.

                          ///

                          When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

                          ///

                          When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon S3 User Guide.

                          - pub bucket: std::string::String, + pub bucket: std::option::Option, ///

                          Key of the object for which the multipart upload was initiated.

                          - pub key: std::string::String, + pub key: std::option::Option, ///

                          Upload ID that identifies the multipart upload.

                          pub upload_id: std::option::Option, ///

                          Confirms that the requester knows that they will be charged for the request. Bucket diff --git a/sdk/s3/src/lib.rs b/sdk/s3/src/lib.rs index 2ee67b6f1667..53e2e385e295 100644 --- a/sdk/s3/src/lib.rs +++ b/sdk/s3/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

                          // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. diff --git a/sdk/s3/src/model.rs b/sdk/s3/src/model.rs index ba2e5d52d8f6..3824c9374ed9 100644 --- a/sdk/s3/src/model.rs +++ b/sdk/s3/src/model.rs @@ -39,7 +39,7 @@ impl std::convert::From<&str> for StorageClass { impl std::str::FromStr for StorageClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StorageClass::from(s)) } } @@ -63,15 +63,6 @@ impl AsRef for StorageClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StorageClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -101,7 +92,7 @@ impl std::convert::From<&str> for ServerSideEncryption { impl std::str::FromStr for ServerSideEncryption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ServerSideEncryption::from(s)) } } @@ -119,15 +110,6 @@ impl AsRef for ServerSideEncryption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ServerSideEncryption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                          If present, indicates that the requester was successfully charged for the /// request.

                          @@ -157,7 +139,7 @@ impl std::convert::From<&str> for RequestCharged { impl std::str::FromStr for RequestCharged { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RequestCharged::from(s)) } } @@ -174,15 +156,6 @@ impl AsRef for RequestCharged { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RequestCharged { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -216,7 +189,7 @@ impl std::convert::From<&str> for ReplicationStatus { impl std::str::FromStr for ReplicationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplicationStatus::from(s)) } } @@ -236,15 +209,6 @@ impl AsRef for ReplicationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplicationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -274,7 +238,7 @@ impl std::convert::From<&str> for ObjectLockLegalHoldStatus { impl std::str::FromStr for ObjectLockLegalHoldStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectLockLegalHoldStatus::from(s)) } } @@ -292,15 +256,6 @@ impl AsRef for ObjectLockLegalHoldStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectLockLegalHoldStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -330,7 +285,7 @@ impl std::convert::From<&str> for ObjectLockMode { impl std::str::FromStr for ObjectLockMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectLockMode::from(s)) } } @@ -348,15 +303,6 @@ impl AsRef for ObjectLockMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectLockMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                          Container for all response elements.

                          #[non_exhaustive] @@ -452,7 +398,7 @@ impl std::convert::From<&str> for RequestPayer { impl std::str::FromStr for RequestPayer { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RequestPayer::from(s)) } } @@ -469,15 +415,6 @@ impl AsRef for RequestPayer { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RequestPayer { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                          Container for restore job parameters.

                          #[non_exhaustive] @@ -1108,7 +1045,7 @@ impl std::convert::From<&str> for Permission { impl std::str::FromStr for Permission { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Permission::from(s)) } } @@ -1129,15 +1066,6 @@ impl AsRef for Permission { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Permission { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                          Container for the person being granted permissions.

                          #[non_exhaustive] @@ -1335,7 +1263,7 @@ impl std::convert::From<&str> for Type { impl std::str::FromStr for Type { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Type::from(s)) } } @@ -1354,15 +1282,6 @@ impl AsRef for Type { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Type { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1402,7 +1321,7 @@ impl std::convert::From<&str> for ObjectCannedAcl { impl std::str::FromStr for ObjectCannedAcl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectCannedAcl::from(s)) } } @@ -1425,15 +1344,6 @@ impl AsRef for ObjectCannedAcl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectCannedAcl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                          Contains the type of server-side encryption used.

                          #[non_exhaustive] @@ -1626,9 +1536,9 @@ impl SelectParameters { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputSerialization { ///

                          Describes the serialization of CSV-encoded Select results.

                          - pub csv: std::option::Option, + pub csv: std::option::Option, ///

                          Specifies JSON as request's output serialization format.

                          - pub json: std::option::Option, + pub json: std::option::Option, } impl std::fmt::Debug for OutputSerialization { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -1644,25 +1554,25 @@ pub mod output_serialization { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) csv: std::option::Option, - pub(crate) json: std::option::Option, + pub(crate) csv: std::option::Option, + pub(crate) json: std::option::Option, } impl Builder { ///

                          Describes the serialization of CSV-encoded Select results.

                          - pub fn csv(mut self, input: crate::model::CSVOutput) -> Self { + pub fn csv(mut self, input: crate::model::CsvOutput) -> Self { self.csv = Some(input); self } - pub fn set_csv(mut self, input: std::option::Option) -> Self { + pub fn set_csv(mut self, input: std::option::Option) -> Self { self.csv = input; self } ///

                          Specifies JSON as request's output serialization format.

                          - pub fn json(mut self, input: crate::model::JSONOutput) -> Self { + pub fn json(mut self, input: crate::model::JsonOutput) -> Self { self.json = Some(input); self } - pub fn set_json(mut self, input: std::option::Option) -> Self { + pub fn set_json(mut self, input: std::option::Option) -> Self { self.json = input; self } @@ -1685,21 +1595,21 @@ impl OutputSerialization { ///

                          Specifies JSON as request's output serialization format.

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct JSONOutput { +pub struct JsonOutput { ///

                          The value used to separate individual records in the output. If no value is specified, /// Amazon S3 uses a newline character ('\n').

                          pub record_delimiter: std::option::Option, } -impl std::fmt::Debug for JSONOutput { +impl std::fmt::Debug for JsonOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("JSONOutput"); + let mut formatter = f.debug_struct("JsonOutput"); formatter.field("record_delimiter", &self.record_delimiter); formatter.finish() } } -/// See [`JSONOutput`](crate::model::JSONOutput) +/// See [`JsonOutput`](crate::model::JsonOutput) pub mod json_output { - /// A builder for [`JSONOutput`](crate::model::JSONOutput) + /// A builder for [`JsonOutput`](crate::model::JsonOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1719,16 +1629,16 @@ pub mod json_output { self.record_delimiter = input; self } - /// Consumes the builder and constructs a [`JSONOutput`](crate::model::JSONOutput) - pub fn build(self) -> crate::model::JSONOutput { - crate::model::JSONOutput { + /// Consumes the builder and constructs a [`JsonOutput`](crate::model::JsonOutput) + pub fn build(self) -> crate::model::JsonOutput { + crate::model::JsonOutput { record_delimiter: self.record_delimiter, } } } } -impl JSONOutput { - /// Creates a new builder-style object to manufacture [`JSONOutput`](crate::model::JSONOutput) +impl JsonOutput { + /// Creates a new builder-style object to manufacture [`JsonOutput`](crate::model::JsonOutput) pub fn builder() -> crate::model::json_output::Builder { crate::model::json_output::Builder::default() } @@ -1738,7 +1648,7 @@ impl JSONOutput { /// formatted.

                          #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CSVOutput { +pub struct CsvOutput { ///

                          Indicates whether to use quotation marks around output fields.

                          ///
                            ///
                          • @@ -1765,9 +1675,9 @@ pub struct CSVOutput { /// as follows: " a , b ".

                            pub quote_character: std::option::Option, } -impl std::fmt::Debug for CSVOutput { +impl std::fmt::Debug for CsvOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CSVOutput"); + let mut formatter = f.debug_struct("CsvOutput"); formatter.field("quote_fields", &self.quote_fields); formatter.field("quote_escape_character", &self.quote_escape_character); formatter.field("record_delimiter", &self.record_delimiter); @@ -1776,9 +1686,9 @@ impl std::fmt::Debug for CSVOutput { formatter.finish() } } -/// See [`CSVOutput`](crate::model::CSVOutput) +/// See [`CsvOutput`](crate::model::CsvOutput) pub mod csv_output { - /// A builder for [`CSVOutput`](crate::model::CSVOutput) + /// A builder for [`CsvOutput`](crate::model::CsvOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1864,9 +1774,9 @@ pub mod csv_output { self.quote_character = input; self } - /// Consumes the builder and constructs a [`CSVOutput`](crate::model::CSVOutput) - pub fn build(self) -> crate::model::CSVOutput { - crate::model::CSVOutput { + /// Consumes the builder and constructs a [`CsvOutput`](crate::model::CsvOutput) + pub fn build(self) -> crate::model::CsvOutput { + crate::model::CsvOutput { quote_fields: self.quote_fields, quote_escape_character: self.quote_escape_character, record_delimiter: self.record_delimiter, @@ -1876,8 +1786,8 @@ pub mod csv_output { } } } -impl CSVOutput { - /// Creates a new builder-style object to manufacture [`CSVOutput`](crate::model::CSVOutput) +impl CsvOutput { + /// Creates a new builder-style object to manufacture [`CsvOutput`](crate::model::CsvOutput) pub fn builder() -> crate::model::csv_output::Builder { crate::model::csv_output::Builder::default() } @@ -1911,7 +1821,7 @@ impl std::convert::From<&str> for QuoteFields { impl std::str::FromStr for QuoteFields { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(QuoteFields::from(s)) } } @@ -1929,15 +1839,6 @@ impl AsRef for QuoteFields { self.as_str() } } -impl<'de> serde::Deserialize<'de> for QuoteFields { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1965,7 +1866,7 @@ impl std::convert::From<&str> for ExpressionType { impl std::str::FromStr for ExpressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExpressionType::from(s)) } } @@ -1982,27 +1883,18 @@ impl AsRef for ExpressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExpressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                            Describes the serialization format of the object.

                            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputSerialization { ///

                            Describes the serialization of a CSV-encoded object.

                            - pub csv: std::option::Option, + pub csv: std::option::Option, ///

                            Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: /// NONE.

                            pub compression_type: std::option::Option, ///

                            Specifies JSON as object's input serialization format.

                            - pub json: std::option::Option, + pub json: std::option::Option, ///

                            Specifies Parquet as object's input serialization format.

                            pub parquet: std::option::Option, } @@ -2022,18 +1914,18 @@ pub mod input_serialization { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) csv: std::option::Option, + pub(crate) csv: std::option::Option, pub(crate) compression_type: std::option::Option, - pub(crate) json: std::option::Option, + pub(crate) json: std::option::Option, pub(crate) parquet: std::option::Option, } impl Builder { ///

                            Describes the serialization of a CSV-encoded object.

                            - pub fn csv(mut self, input: crate::model::CSVInput) -> Self { + pub fn csv(mut self, input: crate::model::CsvInput) -> Self { self.csv = Some(input); self } - pub fn set_csv(mut self, input: std::option::Option) -> Self { + pub fn set_csv(mut self, input: std::option::Option) -> Self { self.csv = input; self } @@ -2051,11 +1943,11 @@ pub mod input_serialization { self } ///

                            Specifies JSON as object's input serialization format.

                            - pub fn json(mut self, input: crate::model::JSONInput) -> Self { + pub fn json(mut self, input: crate::model::JsonInput) -> Self { self.json = Some(input); self } - pub fn set_json(mut self, input: std::option::Option) -> Self { + pub fn set_json(mut self, input: std::option::Option) -> Self { self.json = input; self } @@ -2122,20 +2014,20 @@ impl ParquetInput { ///

                            Specifies JSON as object's input serialization format.

                            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct JSONInput { +pub struct JsonInput { ///

                            The type of JSON. Valid values: Document, Lines.

                            pub r#type: std::option::Option, } -impl std::fmt::Debug for JSONInput { +impl std::fmt::Debug for JsonInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("JSONInput"); + let mut formatter = f.debug_struct("JsonInput"); formatter.field("r#type", &self.r#type); formatter.finish() } } -/// See [`JSONInput`](crate::model::JSONInput) +/// See [`JsonInput`](crate::model::JsonInput) pub mod json_input { - /// A builder for [`JSONInput`](crate::model::JSONInput) + /// A builder for [`JsonInput`](crate::model::JsonInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2151,16 +2043,16 @@ pub mod json_input { self.r#type = input; self } - /// Consumes the builder and constructs a [`JSONInput`](crate::model::JSONInput) - pub fn build(self) -> crate::model::JSONInput { - crate::model::JSONInput { + /// Consumes the builder and constructs a [`JsonInput`](crate::model::JsonInput) + pub fn build(self) -> crate::model::JsonInput { + crate::model::JsonInput { r#type: self.r#type, } } } } -impl JSONInput { - /// Creates a new builder-style object to manufacture [`JSONInput`](crate::model::JSONInput) +impl JsonInput { + /// Creates a new builder-style object to manufacture [`JsonInput`](crate::model::JsonInput) pub fn builder() -> crate::model::json_input::Builder { crate::model::json_input::Builder::default() } @@ -2194,7 +2086,7 @@ impl std::convert::From<&str> for JsonType { impl std::str::FromStr for JsonType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JsonType::from(s)) } } @@ -2212,15 +2104,6 @@ impl AsRef for JsonType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JsonType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2252,7 +2135,7 @@ impl std::convert::From<&str> for CompressionType { impl std::str::FromStr for CompressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CompressionType::from(s)) } } @@ -2271,21 +2154,12 @@ impl AsRef for CompressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CompressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                            Describes how an uncompressed comma-separated values (CSV)-formatted input object is /// formatted.

                            #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CSVInput { +pub struct CsvInput { ///

                            Describes the first line of input. Valid values are:

                            ///
                              ///
                            • @@ -2332,9 +2206,9 @@ pub struct CSVInput { /// performance.

                              pub allow_quoted_record_delimiter: bool, } -impl std::fmt::Debug for CSVInput { +impl std::fmt::Debug for CsvInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CSVInput"); + let mut formatter = f.debug_struct("CsvInput"); formatter.field("file_header_info", &self.file_header_info); formatter.field("comments", &self.comments); formatter.field("quote_escape_character", &self.quote_escape_character); @@ -2348,9 +2222,9 @@ impl std::fmt::Debug for CSVInput { formatter.finish() } } -/// See [`CSVInput`](crate::model::CSVInput) +/// See [`CsvInput`](crate::model::CsvInput) pub mod csv_input { - /// A builder for [`CSVInput`](crate::model::CSVInput) + /// A builder for [`CsvInput`](crate::model::CsvInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2475,9 +2349,9 @@ pub mod csv_input { self.allow_quoted_record_delimiter = input; self } - /// Consumes the builder and constructs a [`CSVInput`](crate::model::CSVInput) - pub fn build(self) -> crate::model::CSVInput { - crate::model::CSVInput { + /// Consumes the builder and constructs a [`CsvInput`](crate::model::CsvInput) + pub fn build(self) -> crate::model::CsvInput { + crate::model::CsvInput { file_header_info: self.file_header_info, comments: self.comments, quote_escape_character: self.quote_escape_character, @@ -2491,8 +2365,8 @@ pub mod csv_input { } } } -impl CSVInput { - /// Creates a new builder-style object to manufacture [`CSVInput`](crate::model::CSVInput) +impl CsvInput { + /// Creates a new builder-style object to manufacture [`CsvInput`](crate::model::CsvInput) pub fn builder() -> crate::model::csv_input::Builder { crate::model::csv_input::Builder::default() } @@ -2528,7 +2402,7 @@ impl std::convert::From<&str> for FileHeaderInfo { impl std::str::FromStr for FileHeaderInfo { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FileHeaderInfo::from(s)) } } @@ -2547,15 +2421,6 @@ impl AsRef for FileHeaderInfo { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FileHeaderInfo { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2587,7 +2452,7 @@ impl std::convert::From<&str> for Tier { impl std::str::FromStr for Tier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Tier::from(s)) } } @@ -2606,15 +2471,6 @@ impl AsRef for Tier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Tier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2642,7 +2498,7 @@ impl std::convert::From<&str> for RestoreRequestType { impl std::str::FromStr for RestoreRequestType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RestoreRequestType::from(s)) } } @@ -2659,15 +2515,6 @@ impl AsRef for RestoreRequestType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RestoreRequestType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container for S3 Glacier job parameters.

                              #[non_exhaustive] @@ -2956,7 +2803,7 @@ impl std::convert::From<&str> for ObjectLockRetentionMode { impl std::str::FromStr for ObjectLockRetentionMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectLockRetentionMode::from(s)) } } @@ -2974,15 +2821,6 @@ impl AsRef for ObjectLockRetentionMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectLockRetentionMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              The container element for Object Lock configuration parameters.

                              #[non_exhaustive] @@ -3241,7 +3079,7 @@ impl std::convert::From<&str> for ObjectLockEnabled { impl std::str::FromStr for ObjectLockEnabled { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectLockEnabled::from(s)) } } @@ -3258,15 +3096,6 @@ impl AsRef for ObjectLockEnabled { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectLockEnabled { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A Legal Hold configuration for an object.

                              #[non_exhaustive] @@ -3811,7 +3640,7 @@ impl std::convert::From<&str> for Protocol { impl std::str::FromStr for Protocol { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Protocol::from(s)) } } @@ -3829,15 +3658,6 @@ impl AsRef for Protocol { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Protocol { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container for describing a condition that must be met for the specified redirect to /// apply. For example, 1. If request is for pages in the /docs folder, redirect @@ -4229,7 +4049,7 @@ impl std::convert::From<&str> for BucketVersioningStatus { impl std::str::FromStr for BucketVersioningStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BucketVersioningStatus::from(s)) } } @@ -4247,15 +4067,6 @@ impl AsRef for BucketVersioningStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BucketVersioningStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4285,7 +4096,7 @@ impl std::convert::From<&str> for MfaDelete { impl std::str::FromStr for MfaDelete { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MfaDelete::from(s)) } } @@ -4303,15 +4114,6 @@ impl AsRef for MfaDelete { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MfaDelete { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container for Payer.

                              #[non_exhaustive] @@ -4386,7 +4188,7 @@ impl std::convert::From<&str> for Payer { impl std::str::FromStr for Payer { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Payer::from(s)) } } @@ -4404,15 +4206,6 @@ impl AsRef for Payer { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Payer { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container for replication rules. You can add up to 1,000 rules. The maximum size of a /// replication configuration is 2 MB.

                              @@ -4834,7 +4627,7 @@ impl std::convert::From<&str> for DeleteMarkerReplicationStatus { impl std::str::FromStr for DeleteMarkerReplicationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeleteMarkerReplicationStatus::from(s)) } } @@ -4852,15 +4645,6 @@ impl AsRef for DeleteMarkerReplicationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeleteMarkerReplicationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies information about where to publish analysis or configuration results for an /// Amazon S3 bucket and S3 Replication Time Control (S3 RTC).

                              @@ -5195,7 +4979,7 @@ impl std::convert::From<&str> for MetricsStatus { impl std::str::FromStr for MetricsStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MetricsStatus::from(s)) } } @@ -5213,15 +4997,6 @@ impl AsRef for MetricsStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MetricsStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is /// enabled and the time when all objects and operations on objects must be replicated. Must be @@ -5322,7 +5097,7 @@ impl std::convert::From<&str> for ReplicationTimeStatus { impl std::str::FromStr for ReplicationTimeStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplicationTimeStatus::from(s)) } } @@ -5340,15 +5115,6 @@ impl AsRef for ReplicationTimeStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplicationTimeStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies encryption-related information for an Amazon S3 bucket that is a destination for /// replicated objects.

                              @@ -5485,7 +5251,7 @@ impl std::convert::From<&str> for OwnerOverride { impl std::str::FromStr for OwnerOverride { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OwnerOverride::from(s)) } } @@ -5502,15 +5268,6 @@ impl AsRef for OwnerOverride { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OwnerOverride { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Optional configuration to replicate existing source bucket objects. For more /// information, see Replicating Existing Objects in the Amazon S3 User Guide. @@ -5592,7 +5349,7 @@ impl std::convert::From<&str> for ExistingObjectReplicationStatus { impl std::str::FromStr for ExistingObjectReplicationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExistingObjectReplicationStatus::from(s)) } } @@ -5610,15 +5367,6 @@ impl AsRef for ExistingObjectReplicationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExistingObjectReplicationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container that describes additional filters for identifying the source objects that /// you want to replicate. You can choose to enable or disable the replication of these @@ -5801,7 +5549,7 @@ impl std::convert::From<&str> for ReplicaModificationsStatus { impl std::str::FromStr for ReplicaModificationsStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplicaModificationsStatus::from(s)) } } @@ -5819,15 +5567,6 @@ impl AsRef for ReplicaModificationsStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplicaModificationsStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container for filter information for the selection of S3 objects encrypted with AWS /// KMS.

                              @@ -5910,7 +5649,7 @@ impl std::convert::From<&str> for SseKmsEncryptedObjectsStatus { impl std::str::FromStr for SseKmsEncryptedObjectsStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SseKmsEncryptedObjectsStatus::from(s)) } } @@ -5928,15 +5667,6 @@ impl AsRef for SseKmsEncryptedObjectsStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SseKmsEncryptedObjectsStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5966,7 +5696,7 @@ impl std::convert::From<&str> for ReplicationRuleStatus { impl std::str::FromStr for ReplicationRuleStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReplicationRuleStatus::from(s)) } } @@ -5984,15 +5714,6 @@ impl AsRef for ReplicationRuleStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReplicationRuleStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] @@ -6278,7 +5999,7 @@ impl std::convert::From<&str> for ObjectOwnership { impl std::str::FromStr for ObjectOwnership { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectOwnership::from(s)) } } @@ -6296,15 +6017,6 @@ impl AsRef for ObjectOwnership { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectOwnership { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              A container for specifying the notification configuration of the bucket. If this element /// is empty, notifications are turned off for the bucket.

                              @@ -6720,7 +6432,7 @@ impl std::convert::From<&str> for FilterRuleName { impl std::str::FromStr for FilterRuleName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FilterRuleName::from(s)) } } @@ -6738,15 +6450,6 @@ impl AsRef for FilterRuleName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FilterRuleName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              The bucket event for which to send notifications.

                              #[non_exhaustive] @@ -6794,15 +6497,6 @@ where Event(s.as_ref().to_owned()) } } -impl<'de> serde::Deserialize<'de> for Event { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies the configuration for publishing messages to an Amazon Simple Queue Service /// (Amazon SQS) queue when Amazon S3 detects specified events.

                              @@ -7448,7 +7142,7 @@ impl std::convert::From<&str> for BucketLogsPermission { impl std::str::FromStr for BucketLogsPermission { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BucketLogsPermission::from(s)) } } @@ -7467,15 +7161,6 @@ impl AsRef for BucketLogsPermission { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BucketLogsPermission { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more /// information, see Object Lifecycle Management @@ -7989,7 +7674,7 @@ impl std::convert::From<&str> for TransitionStorageClass { impl std::str::FromStr for TransitionStorageClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransitionStorageClass::from(s)) } } @@ -8010,15 +7695,6 @@ impl AsRef for TransitionStorageClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransitionStorageClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies when an object transitions to a specified storage class. For more information /// about Amazon S3 lifecycle configuration rules, see Transitioning @@ -8132,7 +7808,7 @@ impl std::convert::From<&str> for ExpirationStatus { impl std::str::FromStr for ExpirationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExpirationStatus::from(s)) } } @@ -8150,15 +7826,6 @@ impl AsRef for ExpirationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExpirationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] @@ -8617,7 +8284,7 @@ impl std::convert::From<&str> for InventoryFrequency { impl std::str::FromStr for InventoryFrequency { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryFrequency::from(s)) } } @@ -8635,15 +8302,6 @@ impl AsRef for InventoryFrequency { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryFrequency { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8693,7 +8351,7 @@ impl std::convert::From<&str> for InventoryOptionalField { impl std::str::FromStr for InventoryOptionalField { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryOptionalField::from(s)) } } @@ -8721,15 +8379,6 @@ impl AsRef for InventoryOptionalField { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryOptionalField { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -8759,7 +8408,7 @@ impl std::convert::From<&str> for InventoryIncludedObjectVersions { impl std::str::FromStr for InventoryIncludedObjectVersions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryIncludedObjectVersions::from(s)) } } @@ -8777,15 +8426,6 @@ impl AsRef for InventoryIncludedObjectVersions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryIncludedObjectVersions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies an inventory filter. The inventory only includes objects that meet the /// filter's criteria.

                              @@ -9021,9 +8661,9 @@ impl InventoryS3BucketDestination { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryEncryption { ///

                              Specifies the use of SSE-S3 to encrypt delivered inventory reports.

                              - pub sses3: std::option::Option, + pub sses3: std::option::Option, ///

                              Specifies the use of SSE-KMS to encrypt delivered inventory reports.

                              - pub ssekms: std::option::Option, + pub ssekms: std::option::Option, } impl std::fmt::Debug for InventoryEncryption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -9039,25 +8679,25 @@ pub mod inventory_encryption { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) sses3: std::option::Option, - pub(crate) ssekms: std::option::Option, + pub(crate) sses3: std::option::Option, + pub(crate) ssekms: std::option::Option, } impl Builder { ///

                              Specifies the use of SSE-S3 to encrypt delivered inventory reports.

                              - pub fn sses3(mut self, input: crate::model::SSES3) -> Self { + pub fn sses3(mut self, input: crate::model::Sses3) -> Self { self.sses3 = Some(input); self } - pub fn set_sses3(mut self, input: std::option::Option) -> Self { + pub fn set_sses3(mut self, input: std::option::Option) -> Self { self.sses3 = input; self } ///

                              Specifies the use of SSE-KMS to encrypt delivered inventory reports.

                              - pub fn ssekms(mut self, input: crate::model::SSEKMS) -> Self { + pub fn ssekms(mut self, input: crate::model::Ssekms) -> Self { self.ssekms = Some(input); self } - pub fn set_ssekms(mut self, input: std::option::Option) -> Self { + pub fn set_ssekms(mut self, input: std::option::Option) -> Self { self.ssekms = input; self } @@ -9080,21 +8720,21 @@ impl InventoryEncryption { ///

                              Specifies the use of SSE-KMS to encrypt delivered inventory reports.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SSEKMS { +pub struct Ssekms { ///

                              Specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed /// customer master key (CMK) to use for encrypting inventory reports.

                              pub key_id: std::option::Option, } -impl std::fmt::Debug for SSEKMS { +impl std::fmt::Debug for Ssekms { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSEKMS"); + let mut formatter = f.debug_struct("Ssekms"); formatter.field("key_id", &"*** Sensitive Data Redacted ***"); formatter.finish() } } -/// See [`SSEKMS`](crate::model::SSEKMS) +/// See [`Ssekms`](crate::model::Ssekms) pub mod ssekms { - /// A builder for [`SSEKMS`](crate::model::SSEKMS) + /// A builder for [`Ssekms`](crate::model::Ssekms) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9111,16 +8751,16 @@ pub mod ssekms { self.key_id = input; self } - /// Consumes the builder and constructs a [`SSEKMS`](crate::model::SSEKMS) - pub fn build(self) -> crate::model::SSEKMS { - crate::model::SSEKMS { + /// Consumes the builder and constructs a [`Ssekms`](crate::model::Ssekms) + pub fn build(self) -> crate::model::Ssekms { + crate::model::Ssekms { key_id: self.key_id, } } } } -impl SSEKMS { - /// Creates a new builder-style object to manufacture [`SSEKMS`](crate::model::SSEKMS) +impl Ssekms { + /// Creates a new builder-style object to manufacture [`Ssekms`](crate::model::Ssekms) pub fn builder() -> crate::model::ssekms::Builder { crate::model::ssekms::Builder::default() } @@ -9129,28 +8769,28 @@ impl SSEKMS { ///

                              Specifies the use of SSE-S3 to encrypt delivered inventory reports.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SSES3 {} -impl std::fmt::Debug for SSES3 { +pub struct Sses3 {} +impl std::fmt::Debug for Sses3 { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SSES3"); + let mut formatter = f.debug_struct("Sses3"); formatter.finish() } } -/// See [`SSES3`](crate::model::SSES3) +/// See [`Sses3`](crate::model::Sses3) pub mod sses3 { - /// A builder for [`SSES3`](crate::model::SSES3) + /// A builder for [`Sses3`](crate::model::Sses3) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`SSES3`](crate::model::SSES3) - pub fn build(self) -> crate::model::SSES3 { - crate::model::SSES3 {} + /// Consumes the builder and constructs a [`Sses3`](crate::model::Sses3) + pub fn build(self) -> crate::model::Sses3 { + crate::model::Sses3 {} } } } -impl SSES3 { - /// Creates a new builder-style object to manufacture [`SSES3`](crate::model::SSES3) +impl Sses3 { + /// Creates a new builder-style object to manufacture [`Sses3`](crate::model::Sses3) pub fn builder() -> crate::model::sses3::Builder { crate::model::sses3::Builder::default() } @@ -9186,7 +8826,7 @@ impl std::convert::From<&str> for InventoryFormat { impl std::str::FromStr for InventoryFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryFormat::from(s)) } } @@ -9205,15 +8845,6 @@ impl AsRef for InventoryFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.

                              ///

                              For information about the S3 Intelligent-Tiering storage class, see Storage class for @@ -9422,7 +9053,7 @@ impl std::convert::From<&str> for IntelligentTieringAccessTier { impl std::str::FromStr for IntelligentTieringAccessTier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IntelligentTieringAccessTier::from(s)) } } @@ -9440,15 +9071,6 @@ impl AsRef for IntelligentTieringAccessTier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IntelligentTieringAccessTier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -9478,7 +9100,7 @@ impl std::convert::From<&str> for IntelligentTieringStatus { impl std::str::FromStr for IntelligentTieringStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IntelligentTieringStatus::from(s)) } } @@ -9496,15 +9118,6 @@ impl AsRef for IntelligentTieringStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IntelligentTieringStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              The Filter is used to identify objects that the S3 Intelligent-Tiering /// configuration applies to.

                              @@ -9923,28 +9536,28 @@ impl ServerSideEncryptionByDefault { /// Cross-Origin Resource Sharing in the Amazon S3 User Guide.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CORSConfiguration { +pub struct CorsConfiguration { ///

                              A set of origins and methods (cross-origin access that you want to allow). You can add /// up to 100 rules to the configuration.

                              - pub cors_rules: std::option::Option>, + pub cors_rules: std::option::Option>, } -impl std::fmt::Debug for CORSConfiguration { +impl std::fmt::Debug for CorsConfiguration { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CORSConfiguration"); + let mut formatter = f.debug_struct("CorsConfiguration"); formatter.field("cors_rules", &self.cors_rules); formatter.finish() } } -/// See [`CORSConfiguration`](crate::model::CORSConfiguration) +/// See [`CorsConfiguration`](crate::model::CorsConfiguration) pub mod cors_configuration { - /// A builder for [`CORSConfiguration`](crate::model::CORSConfiguration) + /// A builder for [`CorsConfiguration`](crate::model::CorsConfiguration) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) cors_rules: std::option::Option>, + pub(crate) cors_rules: std::option::Option>, } impl Builder { - pub fn cors_rules(mut self, input: impl Into) -> Self { + pub fn cors_rules(mut self, input: impl Into) -> Self { let mut v = self.cors_rules.unwrap_or_default(); v.push(input.into()); self.cors_rules = Some(v); @@ -9952,21 +9565,21 @@ pub mod cors_configuration { } pub fn set_cors_rules( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.cors_rules = input; self } - /// Consumes the builder and constructs a [`CORSConfiguration`](crate::model::CORSConfiguration) - pub fn build(self) -> crate::model::CORSConfiguration { - crate::model::CORSConfiguration { + /// Consumes the builder and constructs a [`CorsConfiguration`](crate::model::CorsConfiguration) + pub fn build(self) -> crate::model::CorsConfiguration { + crate::model::CorsConfiguration { cors_rules: self.cors_rules, } } } } -impl CORSConfiguration { - /// Creates a new builder-style object to manufacture [`CORSConfiguration`](crate::model::CORSConfiguration) +impl CorsConfiguration { + /// Creates a new builder-style object to manufacture [`CorsConfiguration`](crate::model::CorsConfiguration) pub fn builder() -> crate::model::cors_configuration::Builder { crate::model::cors_configuration::Builder::default() } @@ -9975,7 +9588,7 @@ impl CORSConfiguration { ///

                              Specifies a cross-origin access rule for an Amazon S3 bucket.

                              #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CORSRule { +pub struct CorsRule { ///

                              Unique identifier for the rule. The value cannot be longer than 255 characters.

                              pub id: std::option::Option, ///

                              Headers that are specified in the Access-Control-Request-Headers header. @@ -9995,9 +9608,9 @@ pub struct CORSRule { /// specified resource.

                              pub max_age_seconds: i32, } -impl std::fmt::Debug for CORSRule { +impl std::fmt::Debug for CorsRule { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CORSRule"); + let mut formatter = f.debug_struct("CorsRule"); formatter.field("id", &self.id); formatter.field("allowed_headers", &self.allowed_headers); formatter.field("allowed_methods", &self.allowed_methods); @@ -10007,9 +9620,9 @@ impl std::fmt::Debug for CORSRule { formatter.finish() } } -/// See [`CORSRule`](crate::model::CORSRule) +/// See [`CorsRule`](crate::model::CorsRule) pub mod cors_rule { - /// A builder for [`CORSRule`](crate::model::CORSRule) + /// A builder for [`CorsRule`](crate::model::CorsRule) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -10092,9 +9705,9 @@ pub mod cors_rule { self.max_age_seconds = input; self } - /// Consumes the builder and constructs a [`CORSRule`](crate::model::CORSRule) - pub fn build(self) -> crate::model::CORSRule { - crate::model::CORSRule { + /// Consumes the builder and constructs a [`CorsRule`](crate::model::CorsRule) + pub fn build(self) -> crate::model::CorsRule { + crate::model::CorsRule { id: self.id, allowed_headers: self.allowed_headers, allowed_methods: self.allowed_methods, @@ -10105,8 +9718,8 @@ pub mod cors_rule { } } } -impl CORSRule { - /// Creates a new builder-style object to manufacture [`CORSRule`](crate::model::CORSRule) +impl CorsRule { + /// Creates a new builder-style object to manufacture [`CorsRule`](crate::model::CorsRule) pub fn builder() -> crate::model::cors_rule::Builder { crate::model::cors_rule::Builder::default() } @@ -10511,7 +10124,7 @@ impl std::convert::From<&str> for AnalyticsS3ExportFileFormat { impl std::str::FromStr for AnalyticsS3ExportFileFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AnalyticsS3ExportFileFormat::from(s)) } } @@ -10528,15 +10141,6 @@ impl AsRef for AnalyticsS3ExportFileFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AnalyticsS3ExportFileFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10564,7 +10168,7 @@ impl std::convert::From<&str> for StorageClassAnalysisSchemaVersion { impl std::str::FromStr for StorageClassAnalysisSchemaVersion { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StorageClassAnalysisSchemaVersion::from(s)) } } @@ -10581,15 +10185,6 @@ impl AsRef for StorageClassAnalysisSchemaVersion { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StorageClassAnalysisSchemaVersion { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] @@ -10736,7 +10331,7 @@ impl std::convert::From<&str> for BucketCannedAcl { impl std::str::FromStr for BucketCannedAcl { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BucketCannedAcl::from(s)) } } @@ -10756,15 +10351,6 @@ impl AsRef for BucketCannedAcl { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BucketCannedAcl { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see /// Amazon S3 @@ -10846,7 +10432,7 @@ impl std::convert::From<&str> for BucketAccelerateStatus { impl std::str::FromStr for BucketAccelerateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BucketAccelerateStatus::from(s)) } } @@ -10864,15 +10450,6 @@ impl AsRef for BucketAccelerateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BucketAccelerateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container element that identifies who initiated the multipart upload.

                              #[non_exhaustive] @@ -11062,7 +10639,7 @@ impl std::convert::From<&str> for EncodingType { impl std::str::FromStr for EncodingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EncodingType::from(s)) } } @@ -11079,15 +10656,6 @@ impl AsRef for EncodingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EncodingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container for all (if there are any) keys between Prefix and the next occurrence of the /// string specified by a delimiter. CommonPrefixes lists keys that act like subdirectories in @@ -11426,7 +10994,7 @@ impl std::convert::From<&str> for ObjectVersionStorageClass { impl std::str::FromStr for ObjectVersionStorageClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectVersionStorageClass::from(s)) } } @@ -11443,15 +11011,6 @@ impl AsRef for ObjectVersionStorageClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectVersionStorageClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              An object consists of data and its descriptive metadata.

                              #[non_exhaustive] @@ -11656,7 +11215,7 @@ impl std::convert::From<&str> for ObjectStorageClass { impl std::str::FromStr for ObjectStorageClass { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectStorageClass::from(s)) } } @@ -11680,15 +11239,6 @@ impl AsRef for ObjectStorageClass { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectStorageClass { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container for the MultipartUpload for the Amazon S3 object.

                              #[non_exhaustive] @@ -11906,7 +11456,7 @@ impl std::convert::From<&str> for ArchiveStatus { impl std::str::FromStr for ArchiveStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ArchiveStatus::from(s)) } } @@ -11924,15 +11474,6 @@ impl AsRef for ArchiveStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ArchiveStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -11962,7 +11503,7 @@ impl std::convert::From<&str> for MfaDeleteStatus { impl std::str::FromStr for MfaDeleteStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MfaDeleteStatus::from(s)) } } @@ -11980,15 +11521,6 @@ impl AsRef for MfaDeleteStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MfaDeleteStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              The container element for a bucket's policy status.

                              #[non_exhaustive] @@ -12113,7 +11645,7 @@ impl std::convert::From<&str> for BucketLocationConstraint { impl std::str::FromStr for BucketLocationConstraint { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BucketLocationConstraint::from(s)) } } @@ -12154,15 +11686,6 @@ impl AsRef for BucketLocationConstraint { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BucketLocationConstraint { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Container for all error elements.

                              #[non_exhaustive] @@ -16374,7 +15897,7 @@ impl std::convert::From<&str> for TaggingDirective { impl std::str::FromStr for TaggingDirective { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TaggingDirective::from(s)) } } @@ -16392,15 +15915,6 @@ impl AsRef for TaggingDirective { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TaggingDirective { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -16430,7 +15944,7 @@ impl std::convert::From<&str> for MetadataDirective { impl std::str::FromStr for MetadataDirective { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MetadataDirective::from(s)) } } @@ -16448,15 +15962,6 @@ impl AsRef for MetadataDirective { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MetadataDirective { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              The container for the completed multipart upload details.

                              #[non_exhaustive] diff --git a/sdk/s3/src/operation.rs b/sdk/s3/src/operation.rs index e0c14e44c03a..074636fb5e36 100644 --- a/sdk/s3/src/operation.rs +++ b/sdk/s3/src/operation.rs @@ -801,6 +801,31 @@ impl smithy_http::response::ParseStrictResponse for CreateMultipartUpload { } } } +#[cfg(test)] +#[allow(unreachable_code, unused_variables)] +mod create_multipart_upload_request_test { + /// This test validates that the URI for CreateMultipartUpload is created correctly + /// Test ID: CreateMultipartUploadUriConstruction + #[tokio::test] + async fn create_multipart_upload_uri_construction_request() { + let config = crate::config::Config::builder().build(); + let input = crate::input::CreateMultipartUploadInput::builder() + .set_bucket(Some("test-bucket".to_string())) + .set_key(Some("object.txt".to_string())) + .build() + .unwrap() + .make_operation(&config) + .expect("operation failed to build"); + let (http_request, parts) = input.into_request_response().0.into_parts(); + assert_eq!(http_request.method(), "POST"); + assert_eq!(http_request.uri().path(), "/test-bucket/object.txt"); + let expected_query_params = &["uploads", "x-id=CreateMultipartUpload"]; + protocol_test_helpers::assert_ok(protocol_test_helpers::validate_query_string( + &http_request, + expected_query_params, + )); + } +} ///

                              Deletes the S3 bucket. All objects (including all object versions and delete markers) in /// the bucket must be deleted before the bucket itself can be deleted.

                              diff --git a/sdk/s3/src/operation_deser.rs b/sdk/s3/src/operation_deser.rs index a7cefd851b25..e411b05e1fb4 100644 --- a/sdk/s3/src/operation_deser.rs +++ b/sdk/s3/src/operation_deser.rs @@ -43,14 +43,8 @@ pub fn parse_abort_multipart_upload_response( let mut output = crate::output::abort_multipart_upload_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_abort_multipart_upload_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::AbortMultipartUploadError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_abort_multipart_upload_abort_multipart_upload_output_request_charged(response.headers()) + .map_err(|_|crate::error::AbortMultipartUploadError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output.build() }) @@ -85,46 +79,28 @@ pub fn parse_complete_multipart_upload_response( ) .map_err(crate::error::CompleteMultipartUploadError::unhandled)?; output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_complete_multipart_upload_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_expiration( - crate::http_serde::deser_header_complete_multipart_upload_expiration( - response.headers(), - ) - .map_err(|_| { - crate::error::CompleteMultipartUploadError::unhandled( - "Failed to parse Expiration from header `x-amz-expiration", - ) - })?, + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_expiration(response.headers()) + .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse Expiration from header `x-amz-expiration"))? ); output = output.set_request_charged( - crate::http_serde::deser_header_complete_multipart_upload_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::CompleteMultipartUploadError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_request_charged(response.headers()) + .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_complete_multipart_upload_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_complete_multipart_upload_server_side_encryption(response.headers()) + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output = output.set_version_id( - crate::http_serde::deser_header_complete_multipart_upload_version_id( - response.headers(), - ) - .map_err(|_| { - crate::error::CompleteMultipartUploadError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - })?, + crate::http_serde::deser_header_complete_multipart_upload_complete_multipart_upload_output_version_id(response.headers()) + .map_err(|_|crate::error::CompleteMultipartUploadError::unhandled("Failed to parse VersionId from header `x-amz-version-id"))? ); output.build() }) @@ -168,63 +144,73 @@ pub fn parse_copy_object_response( let mut output = crate::output::copy_object_output::Builder::default(); let _ = response; output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_copy_object_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_copy_object_result( - crate::http_serde::deser_payload_copy_object_copy_object_result( + crate::http_serde::deser_payload_copy_object_copy_object_output_copy_object_result( response.body().as_ref(), )?, ); output = output.set_copy_source_version_id( - crate::http_serde::deser_header_copy_object_copy_source_version_id(response.headers()) - .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse CopySourceVersionId from header `x-amz-copy-source-version-id"))? + crate::http_serde::deser_header_copy_object_copy_object_output_copy_source_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::CopyObjectError::unhandled( + "Failed to parse CopySourceVersionId from header `x-amz-copy-source-version-id", + ) + })?, ); output = output.set_expiration( - crate::http_serde::deser_header_copy_object_expiration(response.headers()).map_err( - |_| { - crate::error::CopyObjectError::unhandled( - "Failed to parse Expiration from header `x-amz-expiration", - ) - }, - )?, + crate::http_serde::deser_header_copy_object_copy_object_output_expiration( + response.headers(), + ) + .map_err(|_| { + crate::error::CopyObjectError::unhandled( + "Failed to parse Expiration from header `x-amz-expiration", + ) + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_copy_object_request_charged(response.headers()) - .map_err(|_| { - crate::error::CopyObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_copy_object_copy_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::CopyObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_copy_object_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_copy_object_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_encryption_context( - crate::http_serde::deser_header_copy_object_ssekms_encryption_context(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_ssekms_encryption_context(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse SSEKMSEncryptionContext from header `x-amz-server-side-encryption-context"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_copy_object_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_copy_object_server_side_encryption(response.headers()) + crate::http_serde::deser_header_copy_object_copy_object_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::CopyObjectError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output = output.set_version_id( - crate::http_serde::deser_header_copy_object_version_id(response.headers()).map_err( - |_| { - crate::error::CopyObjectError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - }, - )?, + crate::http_serde::deser_header_copy_object_copy_object_output_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::CopyObjectError::unhandled( + "Failed to parse VersionId from header `x-amz-version-id", + ) + })?, ); output.build() }) @@ -282,13 +268,14 @@ pub fn parse_create_bucket_response( let mut output = crate::output::create_bucket_output::Builder::default(); let _ = response; output = output.set_location( - crate::http_serde::deser_header_create_bucket_location(response.headers()).map_err( - |_| { - crate::error::CreateBucketError::unhandled( - "Failed to parse Location from header `Location", - ) - }, - )?, + crate::http_serde::deser_header_create_bucket_create_bucket_output_location( + response.headers(), + ) + .map_err(|_| { + crate::error::CreateBucketError::unhandled( + "Failed to parse Location from header `Location", + ) + })?, ); output.build() }) @@ -323,55 +310,39 @@ pub fn parse_create_multipart_upload_response( ) .map_err(crate::error::CreateMultipartUploadError::unhandled)?; output = output.set_abort_date( - crate::http_serde::deser_header_create_multipart_upload_abort_date(response.headers()) - .map_err(|_| { - crate::error::CreateMultipartUploadError::unhandled( - "Failed to parse AbortDate from header `x-amz-abort-date", - ) - })?, + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_abort_date(response.headers()) + .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse AbortDate from header `x-amz-abort-date"))? ); output = output.set_abort_rule_id( - crate::http_serde::deser_header_create_multipart_upload_abort_rule_id( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateMultipartUploadError::unhandled( - "Failed to parse AbortRuleId from header `x-amz-abort-rule-id", - ) - })?, + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_abort_rule_id(response.headers()) + .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse AbortRuleId from header `x-amz-abort-rule-id"))? ); output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_create_multipart_upload_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_request_charged( - crate::http_serde::deser_header_create_multipart_upload_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::CreateMultipartUploadError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_request_charged(response.headers()) + .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_create_multipart_upload_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_create_multipart_upload_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_encryption_context( - crate::http_serde::deser_header_create_multipart_upload_ssekms_encryption_context(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_ssekms_encryption_context(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse SSEKMSEncryptionContext from header `x-amz-server-side-encryption-context"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_create_multipart_upload_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_create_multipart_upload_server_side_encryption(response.headers()) + crate::http_serde::deser_header_create_multipart_upload_create_multipart_upload_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::CreateMultipartUploadError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output.build() @@ -744,29 +715,34 @@ pub fn parse_delete_object_response( let mut output = crate::output::delete_object_output::Builder::default(); let _ = response; output = output.set_delete_marker( - crate::http_serde::deser_header_delete_object_delete_marker(response.headers()) - .map_err(|_| { - crate::error::DeleteObjectError::unhandled( - "Failed to parse DeleteMarker from header `x-amz-delete-marker", - ) - })?, + crate::http_serde::deser_header_delete_object_delete_object_output_delete_marker( + response.headers(), + ) + .map_err(|_| { + crate::error::DeleteObjectError::unhandled( + "Failed to parse DeleteMarker from header `x-amz-delete-marker", + ) + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_delete_object_request_charged(response.headers()) - .map_err(|_| { - crate::error::DeleteObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_delete_object_delete_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::DeleteObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_version_id( - crate::http_serde::deser_header_delete_object_version_id(response.headers()).map_err( - |_| { - crate::error::DeleteObjectError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - }, - )?, + crate::http_serde::deser_header_delete_object_delete_object_output_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::DeleteObjectError::unhandled( + "Failed to parse VersionId from header `x-amz-version-id", + ) + })?, ); output.build() }) @@ -792,12 +768,14 @@ pub fn parse_delete_objects_response( output = crate::xml_deser::deser_operation_delete_objects(response.body().as_ref(), output) .map_err(crate::error::DeleteObjectsError::unhandled)?; output = output.set_request_charged( - crate::http_serde::deser_header_delete_objects_request_charged(response.headers()) - .map_err(|_| { - crate::error::DeleteObjectsError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_delete_objects_delete_objects_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::DeleteObjectsError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output.build() }) @@ -827,12 +805,8 @@ pub fn parse_delete_object_tagging_response( let mut output = crate::output::delete_object_tagging_output::Builder::default(); let _ = response; output = output.set_version_id( - crate::http_serde::deser_header_delete_object_tagging_version_id(response.headers()) - .map_err(|_| { - crate::error::DeleteObjectTaggingError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - })?, + crate::http_serde::deser_header_delete_object_tagging_delete_object_tagging_output_version_id(response.headers()) + .map_err(|_|crate::error::DeleteObjectTaggingError::unhandled("Failed to parse VersionId from header `x-amz-version-id"))? ); output.build() }) @@ -948,7 +922,7 @@ pub fn parse_get_bucket_analytics_configuration_response( crate::output::get_bucket_analytics_configuration_output::Builder::default(); let _ = response; output = output.set_analytics_configuration( - crate::http_serde::deser_payload_get_bucket_analytics_configuration_analytics_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_bucket_analytics_configuration_get_bucket_analytics_configuration_output_analytics_configuration(response.body().as_ref())? ); output.build() }) @@ -1002,7 +976,7 @@ pub fn parse_get_bucket_encryption_response( let mut output = crate::output::get_bucket_encryption_output::Builder::default(); let _ = response; output = output.set_server_side_encryption_configuration( - crate::http_serde::deser_payload_get_bucket_encryption_server_side_encryption_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_bucket_encryption_get_bucket_encryption_output_server_side_encryption_configuration(response.body().as_ref())? ); output.build() }) @@ -1033,7 +1007,7 @@ pub fn parse_get_bucket_intelligent_tiering_configuration_response( crate::output::get_bucket_intelligent_tiering_configuration_output::Builder::default(); let _ = response; output = output.set_intelligent_tiering_configuration( - crate::http_serde::deser_payload_get_bucket_intelligent_tiering_configuration_intelligent_tiering_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_bucket_intelligent_tiering_configuration_get_bucket_intelligent_tiering_configuration_output_intelligent_tiering_configuration(response.body().as_ref())? ); output.build() }) @@ -1066,7 +1040,7 @@ pub fn parse_get_bucket_inventory_configuration_response( crate::output::get_bucket_inventory_configuration_output::Builder::default(); let _ = response; output = output.set_inventory_configuration( - crate::http_serde::deser_payload_get_bucket_inventory_configuration_inventory_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_bucket_inventory_configuration_get_bucket_inventory_configuration_output_inventory_configuration(response.body().as_ref())? ); output.build() }) @@ -1185,7 +1159,7 @@ pub fn parse_get_bucket_metrics_configuration_response( let mut output = crate::output::get_bucket_metrics_configuration_output::Builder::default(); let _ = response; output = output.set_metrics_configuration( - crate::http_serde::deser_payload_get_bucket_metrics_configuration_metrics_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_bucket_metrics_configuration_get_bucket_metrics_configuration_output_metrics_configuration(response.body().as_ref())? ); output.build() }) @@ -1250,9 +1224,7 @@ pub fn parse_get_bucket_ownership_controls_response( let mut output = crate::output::get_bucket_ownership_controls_output::Builder::default(); let _ = response; output = output.set_ownership_controls( - crate::http_serde::deser_payload_get_bucket_ownership_controls_ownership_controls( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_get_bucket_ownership_controls_get_bucket_ownership_controls_output_ownership_controls(response.body().as_ref())? ); output.build() }) @@ -1275,9 +1247,11 @@ pub fn parse_get_bucket_policy_response( #[allow(unused_mut)] let mut output = crate::output::get_bucket_policy_output::Builder::default(); let _ = response; - output = output.set_policy(crate::http_serde::deser_payload_get_bucket_policy_policy( - response.body().as_ref(), - )?); + output = output.set_policy( + crate::http_serde::deser_payload_get_bucket_policy_get_bucket_policy_output_policy( + response.body().as_ref(), + )?, + ); output.build() }) } @@ -1306,9 +1280,7 @@ pub fn parse_get_bucket_policy_status_response( let mut output = crate::output::get_bucket_policy_status_output::Builder::default(); let _ = response; output = output.set_policy_status( - crate::http_serde::deser_payload_get_bucket_policy_status_policy_status( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_get_bucket_policy_status_get_bucket_policy_status_output_policy_status(response.body().as_ref())? ); output.build() }) @@ -1338,9 +1310,7 @@ pub fn parse_get_bucket_replication_response( let mut output = crate::output::get_bucket_replication_output::Builder::default(); let _ = response; output = output.set_replication_configuration( - crate::http_serde::deser_payload_get_bucket_replication_replication_configuration( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_get_bucket_replication_get_bucket_replication_output_replication_configuration(response.body().as_ref())? ); output.build() }) @@ -1471,234 +1441,268 @@ pub fn parse_get_object( let mut output = crate::output::get_object_output::Builder::default(); let _ = response; output = output.set_accept_ranges( - crate::http_serde::deser_header_get_object_accept_ranges(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse AcceptRanges from header `accept-ranges", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_accept_ranges( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse AcceptRanges from header `accept-ranges", + ) + })?, ); - output = output.set_body(Some(crate::http_serde::deser_payload_get_object_body( - response.body_mut(), - )?)); + output = output.set_body(Some( + crate::http_serde::deser_payload_get_object_get_object_output_body( + response.body_mut(), + )?, + )); output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_get_object_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_cache_control( - crate::http_serde::deser_header_get_object_cache_control(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse CacheControl from header `Cache-Control", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_cache_control( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse CacheControl from header `Cache-Control", + ) + })?, ); output = output.set_content_disposition( - crate::http_serde::deser_header_get_object_content_disposition(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentDisposition from header `Content-Disposition", - ) - })?, + crate::http_serde::deser_header_get_object_get_object_output_content_disposition( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentDisposition from header `Content-Disposition", + ) + })?, ); output = output.set_content_encoding( - crate::http_serde::deser_header_get_object_content_encoding(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentEncoding from header `Content-Encoding", - ) - })?, + crate::http_serde::deser_header_get_object_get_object_output_content_encoding( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentEncoding from header `Content-Encoding", + ) + })?, ); output = output.set_content_language( - crate::http_serde::deser_header_get_object_content_language(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentLanguage from header `Content-Language", - ) - })?, + crate::http_serde::deser_header_get_object_get_object_output_content_language( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentLanguage from header `Content-Language", + ) + })?, ); output = output.set_content_length( - crate::http_serde::deser_header_get_object_content_length(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentLength from header `Content-Length", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_content_length( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentLength from header `Content-Length", + ) + })?, ); output = output.set_content_range( - crate::http_serde::deser_header_get_object_content_range(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentRange from header `Content-Range", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_content_range( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentRange from header `Content-Range", + ) + })?, ); output = output.set_content_type( - crate::http_serde::deser_header_get_object_content_type(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ContentType from header `Content-Type", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_content_type( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ContentType from header `Content-Type", + ) + })?, ); output = output.set_delete_marker( - crate::http_serde::deser_header_get_object_delete_marker(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse DeleteMarker from header `x-amz-delete-marker", - ) - }, - )?, - ); - output = output.set_e_tag( - crate::http_serde::deser_header_get_object_e_tag(response.headers()).map_err(|_| { - crate::error::GetObjectError::unhandled("Failed to parse ETag from header `ETag") + crate::http_serde::deser_header_get_object_get_object_output_delete_marker( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse DeleteMarker from header `x-amz-delete-marker", + ) })?, ); - output = output.set_expiration( - crate::http_serde::deser_header_get_object_expiration(response.headers()).map_err( - |_| { + output = output.set_e_tag( + crate::http_serde::deser_header_get_object_get_object_output_e_tag(response.headers()) + .map_err(|_| { crate::error::GetObjectError::unhandled( - "Failed to parse Expiration from header `x-amz-expiration", + "Failed to parse ETag from header `ETag", ) - }, - )?, + })?, + ); + output = output.set_expiration( + crate::http_serde::deser_header_get_object_get_object_output_expiration( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse Expiration from header `x-amz-expiration", + ) + })?, ); output = output.set_expires( - crate::http_serde::deser_header_get_object_expires(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse Expires from header `Expires", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_expires( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse Expires from header `Expires", + ) + })?, ); output = output.set_last_modified( - crate::http_serde::deser_header_get_object_last_modified(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse LastModified from header `Last-Modified", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_last_modified( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse LastModified from header `Last-Modified", + ) + })?, ); output = output.set_metadata( - crate::http_serde::deser_prefix_header_get_object_metadata(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse Metadata from prefix header `x-amz-meta-", - ) - })?, + crate::http_serde::deser_prefix_header_get_object_get_object_output_metadata( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse Metadata from prefix header `x-amz-meta-", + ) + })?, ); output = output.set_missing_meta( - crate::http_serde::deser_header_get_object_missing_meta(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse MissingMeta from header `x-amz-missing-meta", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_missing_meta( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse MissingMeta from header `x-amz-missing-meta", + ) + })?, ); output = output.set_object_lock_legal_hold_status( - crate::http_serde::deser_header_get_object_object_lock_legal_hold_status(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_object_lock_legal_hold_status(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse ObjectLockLegalHoldStatus from header `x-amz-object-lock-legal-hold"))? ); output = output.set_object_lock_mode( - crate::http_serde::deser_header_get_object_object_lock_mode(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ObjectLockMode from header `x-amz-object-lock-mode", - ) - })?, - ); - output = output.set_object_lock_retain_until_date( - crate::http_serde::deser_header_get_object_object_lock_retain_until_date(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_object_lock_mode( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ObjectLockMode from header `x-amz-object-lock-mode", + ) + })?, + ); + output = output.set_object_lock_retain_until_date( + crate::http_serde::deser_header_get_object_get_object_output_object_lock_retain_until_date(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse ObjectLockRetainUntilDate from header `x-amz-object-lock-retain-until-date"))? ); output = output.set_parts_count( - crate::http_serde::deser_header_get_object_parts_count(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse PartsCount from header `x-amz-mp-parts-count", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_parts_count( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse PartsCount from header `x-amz-mp-parts-count", + ) + })?, ); output = output.set_replication_status( - crate::http_serde::deser_header_get_object_replication_status(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse ReplicationStatus from header `x-amz-replication-status", - ) - })?, + crate::http_serde::deser_header_get_object_get_object_output_replication_status( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse ReplicationStatus from header `x-amz-replication-status", + ) + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_get_object_request_charged(response.headers()) - .map_err(|_| { - crate::error::GetObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_get_object_get_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_restore( - crate::http_serde::deser_header_get_object_restore(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse Restore from header `x-amz-restore", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_restore( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse Restore from header `x-amz-restore", + ) + })?, ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_get_object_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_get_object_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_get_object_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_get_object_server_side_encryption(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output = output.set_storage_class( - crate::http_serde::deser_header_get_object_storage_class(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse StorageClass from header `x-amz-storage-class", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_storage_class( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse StorageClass from header `x-amz-storage-class", + ) + })?, ); output = output.set_tag_count( - crate::http_serde::deser_header_get_object_tag_count(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse TagCount from header `x-amz-tagging-count", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_tag_count( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse TagCount from header `x-amz-tagging-count", + ) + })?, ); output = output.set_version_id( - crate::http_serde::deser_header_get_object_version_id(response.headers()).map_err( - |_| { - crate::error::GetObjectError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - }, - )?, + crate::http_serde::deser_header_get_object_get_object_output_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectError::unhandled( + "Failed to parse VersionId from header `x-amz-version-id", + ) + })?, ); output = output.set_website_redirect_location( - crate::http_serde::deser_header_get_object_website_redirect_location(response.headers()) + crate::http_serde::deser_header_get_object_get_object_output_website_redirect_location(response.headers()) .map_err(|_|crate::error::GetObjectError::unhandled("Failed to parse WebsiteRedirectLocation from header `x-amz-website-redirect-location"))? ); output.build() @@ -1788,12 +1792,14 @@ pub fn parse_get_object_acl_response( output = crate::xml_deser::deser_operation_get_object_acl(response.body().as_ref(), output) .map_err(crate::error::GetObjectAclError::unhandled)?; output = output.set_request_charged( - crate::http_serde::deser_header_get_object_acl_request_charged(response.headers()) - .map_err(|_| { - crate::error::GetObjectAclError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_get_object_acl_get_object_acl_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::GetObjectAclError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output.build() }) @@ -1823,9 +1829,7 @@ pub fn parse_get_object_legal_hold_response( let mut output = crate::output::get_object_legal_hold_output::Builder::default(); let _ = response; output = output.set_legal_hold( - crate::http_serde::deser_payload_get_object_legal_hold_legal_hold( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_get_object_legal_hold_get_object_legal_hold_output_legal_hold(response.body().as_ref())? ); output.build() }) @@ -1857,7 +1861,7 @@ pub fn parse_get_object_lock_configuration_response( let mut output = crate::output::get_object_lock_configuration_output::Builder::default(); let _ = response; output = output.set_object_lock_configuration( - crate::http_serde::deser_payload_get_object_lock_configuration_object_lock_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_object_lock_configuration_get_object_lock_configuration_output_object_lock_configuration(response.body().as_ref())? ); output.build() }) @@ -1887,9 +1891,7 @@ pub fn parse_get_object_retention_response( let mut output = crate::output::get_object_retention_output::Builder::default(); let _ = response; output = output.set_retention( - crate::http_serde::deser_payload_get_object_retention_retention( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_get_object_retention_get_object_retention_output_retention(response.body().as_ref())? ); output.build() }) @@ -1918,12 +1920,8 @@ pub fn parse_get_object_tagging_response( crate::xml_deser::deser_operation_get_object_tagging(response.body().as_ref(), output) .map_err(crate::error::GetObjectTaggingError::unhandled)?; output = output.set_version_id( - crate::http_serde::deser_header_get_object_tagging_version_id(response.headers()) - .map_err(|_| { - crate::error::GetObjectTaggingError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - })?, + crate::http_serde::deser_header_get_object_tagging_get_object_tagging_output_version_id(response.headers()) + .map_err(|_|crate::error::GetObjectTaggingError::unhandled("Failed to parse VersionId from header `x-amz-version-id"))? ); output.build() }) @@ -1939,15 +1937,13 @@ pub fn parse_get_object_torrent( let mut output = crate::output::get_object_torrent_output::Builder::default(); let _ = response; output = output.set_body(Some( - crate::http_serde::deser_payload_get_object_torrent_body(response.body_mut())?, + crate::http_serde::deser_payload_get_object_torrent_get_object_torrent_output_body( + response.body_mut(), + )?, )); output = output.set_request_charged( - crate::http_serde::deser_header_get_object_torrent_request_charged(response.headers()) - .map_err(|_| { - crate::error::GetObjectTorrentError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_get_object_torrent_get_object_torrent_output_request_charged(response.headers()) + .map_err(|_|crate::error::GetObjectTorrentError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output.build() }) @@ -1987,7 +1983,7 @@ pub fn parse_get_public_access_block_response( let mut output = crate::output::get_public_access_block_output::Builder::default(); let _ = response; output = output.set_public_access_block_configuration( - crate::http_serde::deser_payload_get_public_access_block_public_access_block_configuration(response.body().as_ref())? + crate::http_serde::deser_payload_get_public_access_block_get_public_access_block_output_public_access_block_configuration(response.body().as_ref())? ); output.build() }) @@ -2072,224 +2068,253 @@ pub fn parse_head_object_response( let mut output = crate::output::head_object_output::Builder::default(); let _ = response; output = output.set_accept_ranges( - crate::http_serde::deser_header_head_object_accept_ranges(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse AcceptRanges from header `accept-ranges", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_accept_ranges( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse AcceptRanges from header `accept-ranges", + ) + })?, ); output = output.set_archive_status( - crate::http_serde::deser_header_head_object_archive_status(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ArchiveStatus from header `x-amz-archive-status", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_archive_status( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ArchiveStatus from header `x-amz-archive-status", + ) + })?, ); output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_head_object_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_cache_control( - crate::http_serde::deser_header_head_object_cache_control(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse CacheControl from header `Cache-Control", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_cache_control( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse CacheControl from header `Cache-Control", + ) + })?, ); output = output.set_content_disposition( - crate::http_serde::deser_header_head_object_content_disposition(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ContentDisposition from header `Content-Disposition", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_content_disposition( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ContentDisposition from header `Content-Disposition", + ) + })?, ); output = output.set_content_encoding( - crate::http_serde::deser_header_head_object_content_encoding(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ContentEncoding from header `Content-Encoding", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_content_encoding( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ContentEncoding from header `Content-Encoding", + ) + })?, ); output = output.set_content_language( - crate::http_serde::deser_header_head_object_content_language(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ContentLanguage from header `Content-Language", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_content_language( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ContentLanguage from header `Content-Language", + ) + })?, ); output = output.set_content_length( - crate::http_serde::deser_header_head_object_content_length(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ContentLength from header `Content-Length", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_content_length( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ContentLength from header `Content-Length", + ) + })?, ); output = output.set_content_type( - crate::http_serde::deser_header_head_object_content_type(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ContentType from header `Content-Type", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_content_type( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ContentType from header `Content-Type", + ) + })?, ); output = output.set_delete_marker( - crate::http_serde::deser_header_head_object_delete_marker(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse DeleteMarker from header `x-amz-delete-marker", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_delete_marker( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse DeleteMarker from header `x-amz-delete-marker", + ) + })?, ); output = output.set_e_tag( - crate::http_serde::deser_header_head_object_e_tag(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ETag from header `ETag", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_e_tag( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled("Failed to parse ETag from header `ETag") + })?, ); output = output.set_expiration( - crate::http_serde::deser_header_head_object_expiration(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse Expiration from header `x-amz-expiration", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_expiration( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse Expiration from header `x-amz-expiration", + ) + })?, ); output = output.set_expires( - crate::http_serde::deser_header_head_object_expires(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse Expires from header `Expires", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_expires( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse Expires from header `Expires", + ) + })?, ); output = output.set_last_modified( - crate::http_serde::deser_header_head_object_last_modified(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse LastModified from header `Last-Modified", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_last_modified( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse LastModified from header `Last-Modified", + ) + })?, ); output = output.set_metadata( - crate::http_serde::deser_prefix_header_head_object_metadata(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse Metadata from prefix header `x-amz-meta-", - ) - })?, + crate::http_serde::deser_prefix_header_head_object_head_object_output_metadata( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse Metadata from prefix header `x-amz-meta-", + ) + })?, ); output = output.set_missing_meta( - crate::http_serde::deser_header_head_object_missing_meta(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse MissingMeta from header `x-amz-missing-meta", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_missing_meta( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse MissingMeta from header `x-amz-missing-meta", + ) + })?, ); output = output.set_object_lock_legal_hold_status( - crate::http_serde::deser_header_head_object_object_lock_legal_hold_status(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_object_lock_legal_hold_status(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse ObjectLockLegalHoldStatus from header `x-amz-object-lock-legal-hold"))? ); output = output.set_object_lock_mode( - crate::http_serde::deser_header_head_object_object_lock_mode(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ObjectLockMode from header `x-amz-object-lock-mode", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_object_lock_mode( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ObjectLockMode from header `x-amz-object-lock-mode", + ) + })?, ); output = output.set_object_lock_retain_until_date( - crate::http_serde::deser_header_head_object_object_lock_retain_until_date(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_object_lock_retain_until_date(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse ObjectLockRetainUntilDate from header `x-amz-object-lock-retain-until-date"))? ); output = output.set_parts_count( - crate::http_serde::deser_header_head_object_parts_count(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse PartsCount from header `x-amz-mp-parts-count", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_parts_count( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse PartsCount from header `x-amz-mp-parts-count", + ) + })?, ); output = output.set_replication_status( - crate::http_serde::deser_header_head_object_replication_status(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse ReplicationStatus from header `x-amz-replication-status", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_replication_status( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse ReplicationStatus from header `x-amz-replication-status", + ) + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_head_object_request_charged(response.headers()) - .map_err(|_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_head_object_head_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_restore( - crate::http_serde::deser_header_head_object_restore(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse Restore from header `x-amz-restore", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_restore( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse Restore from header `x-amz-restore", + ) + })?, ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_head_object_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_head_object_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_head_object_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_head_object_server_side_encryption(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output = output.set_storage_class( - crate::http_serde::deser_header_head_object_storage_class(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse StorageClass from header `x-amz-storage-class", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_storage_class( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse StorageClass from header `x-amz-storage-class", + ) + })?, ); output = output.set_version_id( - crate::http_serde::deser_header_head_object_version_id(response.headers()).map_err( - |_| { - crate::error::HeadObjectError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - }, - )?, + crate::http_serde::deser_header_head_object_head_object_output_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::HeadObjectError::unhandled( + "Failed to parse VersionId from header `x-amz-version-id", + ) + })?, ); output = output.set_website_redirect_location( - crate::http_serde::deser_header_head_object_website_redirect_location(response.headers()) + crate::http_serde::deser_header_head_object_head_object_output_website_redirect_location(response.headers()) .map_err(|_|crate::error::HeadObjectError::unhandled("Failed to parse WebsiteRedirectLocation from header `x-amz-website-redirect-location"))? ); output.build() @@ -2625,30 +2650,34 @@ pub fn parse_list_parts_response( output = crate::xml_deser::deser_operation_list_parts(response.body().as_ref(), output) .map_err(crate::error::ListPartsError::unhandled)?; output = output.set_abort_date( - crate::http_serde::deser_header_list_parts_abort_date(response.headers()).map_err( - |_| { - crate::error::ListPartsError::unhandled( - "Failed to parse AbortDate from header `x-amz-abort-date", - ) - }, - )?, + crate::http_serde::deser_header_list_parts_list_parts_output_abort_date( + response.headers(), + ) + .map_err(|_| { + crate::error::ListPartsError::unhandled( + "Failed to parse AbortDate from header `x-amz-abort-date", + ) + })?, ); output = output.set_abort_rule_id( - crate::http_serde::deser_header_list_parts_abort_rule_id(response.headers()).map_err( - |_| { - crate::error::ListPartsError::unhandled( - "Failed to parse AbortRuleId from header `x-amz-abort-rule-id", - ) - }, - )?, + crate::http_serde::deser_header_list_parts_list_parts_output_abort_rule_id( + response.headers(), + ) + .map_err(|_| { + crate::error::ListPartsError::unhandled( + "Failed to parse AbortRuleId from header `x-amz-abort-rule-id", + ) + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_list_parts_request_charged(response.headers()) - .map_err(|_| { - crate::error::ListPartsError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_list_parts_list_parts_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::ListPartsError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output.build() }) @@ -3144,59 +3173,66 @@ pub fn parse_put_object_response( let mut output = crate::output::put_object_output::Builder::default(); let _ = response; output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_put_object_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_e_tag( - crate::http_serde::deser_header_put_object_e_tag(response.headers()).map_err(|_| { - crate::error::PutObjectError::unhandled("Failed to parse ETag from header `ETag") - })?, - ); - output = output.set_expiration( - crate::http_serde::deser_header_put_object_expiration(response.headers()).map_err( - |_| { - crate::error::PutObjectError::unhandled( - "Failed to parse Expiration from header `x-amz-expiration", - ) - }, - )?, - ); - output = output.set_request_charged( - crate::http_serde::deser_header_put_object_request_charged(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_e_tag(response.headers()) .map_err(|_| { crate::error::PutObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", + "Failed to parse ETag from header `ETag", ) })?, ); + output = output.set_expiration( + crate::http_serde::deser_header_put_object_put_object_output_expiration( + response.headers(), + ) + .map_err(|_| { + crate::error::PutObjectError::unhandled( + "Failed to parse Expiration from header `x-amz-expiration", + ) + })?, + ); + output = output.set_request_charged( + crate::http_serde::deser_header_put_object_put_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::PutObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, + ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_put_object_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_put_object_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_encryption_context( - crate::http_serde::deser_header_put_object_ssekms_encryption_context(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_ssekms_encryption_context(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse SSEKMSEncryptionContext from header `x-amz-server-side-encryption-context"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_put_object_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_put_object_server_side_encryption(response.headers()) + crate::http_serde::deser_header_put_object_put_object_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::PutObjectError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output = output.set_version_id( - crate::http_serde::deser_header_put_object_version_id(response.headers()).map_err( - |_| { - crate::error::PutObjectError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - }, - )?, + crate::http_serde::deser_header_put_object_put_object_output_version_id( + response.headers(), + ) + .map_err(|_| { + crate::error::PutObjectError::unhandled( + "Failed to parse VersionId from header `x-amz-version-id", + ) + })?, ); output.build() }) @@ -3240,12 +3276,14 @@ pub fn parse_put_object_acl_response( let mut output = crate::output::put_object_acl_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_put_object_acl_request_charged(response.headers()) - .map_err(|_| { - crate::error::PutObjectAclError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_put_object_acl_put_object_acl_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::PutObjectAclError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output.build() }) @@ -3275,14 +3313,8 @@ pub fn parse_put_object_legal_hold_response( let mut output = crate::output::put_object_legal_hold_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_put_object_legal_hold_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::PutObjectLegalHoldError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_put_object_legal_hold_put_object_legal_hold_output_request_charged(response.headers()) + .map_err(|_|crate::error::PutObjectLegalHoldError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output.build() }) @@ -3314,14 +3346,8 @@ pub fn parse_put_object_lock_configuration_response( let mut output = crate::output::put_object_lock_configuration_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_put_object_lock_configuration_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::PutObjectLockConfigurationError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_put_object_lock_configuration_put_object_lock_configuration_output_request_charged(response.headers()) + .map_err(|_|crate::error::PutObjectLockConfigurationError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output.build() }) @@ -3351,14 +3377,8 @@ pub fn parse_put_object_retention_response( let mut output = crate::output::put_object_retention_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_put_object_retention_request_charged( - response.headers(), - ) - .map_err(|_| { - crate::error::PutObjectRetentionError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_put_object_retention_put_object_retention_output_request_charged(response.headers()) + .map_err(|_|crate::error::PutObjectRetentionError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output.build() }) @@ -3384,12 +3404,8 @@ pub fn parse_put_object_tagging_response( let mut output = crate::output::put_object_tagging_output::Builder::default(); let _ = response; output = output.set_version_id( - crate::http_serde::deser_header_put_object_tagging_version_id(response.headers()) - .map_err(|_| { - crate::error::PutObjectTaggingError::unhandled( - "Failed to parse VersionId from header `x-amz-version-id", - ) - })?, + crate::http_serde::deser_header_put_object_tagging_put_object_tagging_output_version_id(response.headers()) + .map_err(|_|crate::error::PutObjectTaggingError::unhandled("Failed to parse VersionId from header `x-amz-version-id"))? ); output.build() }) @@ -3459,20 +3475,18 @@ pub fn parse_restore_object_response( let mut output = crate::output::restore_object_output::Builder::default(); let _ = response; output = output.set_request_charged( - crate::http_serde::deser_header_restore_object_request_charged(response.headers()) - .map_err(|_| { - crate::error::RestoreObjectError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_restore_object_restore_object_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::RestoreObjectError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_restore_output_path( - crate::http_serde::deser_header_restore_object_restore_output_path(response.headers()) - .map_err(|_| { - crate::error::RestoreObjectError::unhandled( - "Failed to parse RestoreOutputPath from header `x-amz-restore-output-path", - ) - })?, + crate::http_serde::deser_header_restore_object_restore_object_output_restore_output_path(response.headers()) + .map_err(|_|crate::error::RestoreObjectError::unhandled("Failed to parse RestoreOutputPath from header `x-amz-restore-output-path"))? ); output.build() }) @@ -3496,40 +3510,41 @@ pub fn parse_upload_part_response( let mut output = crate::output::upload_part_output::Builder::default(); let _ = response; output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_upload_part_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_upload_part_upload_part_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::UploadPartError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_e_tag( - crate::http_serde::deser_header_upload_part_e_tag(response.headers()).map_err( - |_| { - crate::error::UploadPartError::unhandled( - "Failed to parse ETag from header `ETag", - ) - }, - )?, + crate::http_serde::deser_header_upload_part_upload_part_output_e_tag( + response.headers(), + ) + .map_err(|_| { + crate::error::UploadPartError::unhandled("Failed to parse ETag from header `ETag") + })?, ); output = output.set_request_charged( - crate::http_serde::deser_header_upload_part_request_charged(response.headers()) - .map_err(|_| { - crate::error::UploadPartError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_upload_part_upload_part_output_request_charged( + response.headers(), + ) + .map_err(|_| { + crate::error::UploadPartError::unhandled( + "Failed to parse RequestCharged from header `x-amz-request-charged", + ) + })?, ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_upload_part_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_upload_part_upload_part_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::UploadPartError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_upload_part_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_upload_part_upload_part_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::UploadPartError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_upload_part_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_upload_part_upload_part_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::UploadPartError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_upload_part_server_side_encryption(response.headers()) + crate::http_serde::deser_header_upload_part_upload_part_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::UploadPartError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output.build() @@ -3554,46 +3569,34 @@ pub fn parse_upload_part_copy_response( let mut output = crate::output::upload_part_copy_output::Builder::default(); let _ = response; output = output.set_bucket_key_enabled( - crate::http_serde::deser_header_upload_part_copy_bucket_key_enabled(response.headers()) + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_bucket_key_enabled(response.headers()) .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse BucketKeyEnabled from header `x-amz-server-side-encryption-bucket-key-enabled"))? ); output = output.set_copy_part_result( - crate::http_serde::deser_payload_upload_part_copy_copy_part_result( - response.body().as_ref(), - )?, + crate::http_serde::deser_payload_upload_part_copy_upload_part_copy_output_copy_part_result(response.body().as_ref())? ); output = output.set_copy_source_version_id( - crate::http_serde::deser_header_upload_part_copy_copy_source_version_id( - response.headers(), - ) - .map_err(|_| { - crate::error::UploadPartCopyError::unhandled( - "Failed to parse CopySourceVersionId from header `x-amz-copy-source-version-id", - ) - })?, + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_copy_source_version_id(response.headers()) + .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse CopySourceVersionId from header `x-amz-copy-source-version-id"))? ); output = output.set_request_charged( - crate::http_serde::deser_header_upload_part_copy_request_charged(response.headers()) - .map_err(|_| { - crate::error::UploadPartCopyError::unhandled( - "Failed to parse RequestCharged from header `x-amz-request-charged", - ) - })?, + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_request_charged(response.headers()) + .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))? ); output = output.set_sse_customer_algorithm( - crate::http_serde::deser_header_upload_part_copy_sse_customer_algorithm(response.headers()) + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_sse_customer_algorithm(response.headers()) .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse SSECustomerAlgorithm from header `x-amz-server-side-encryption-customer-algorithm"))? ); output = output.set_sse_customer_key_md5( - crate::http_serde::deser_header_upload_part_copy_sse_customer_key_md5(response.headers()) + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_sse_customer_key_md5(response.headers()) .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse SSECustomerKeyMD5 from header `x-amz-server-side-encryption-customer-key-MD5"))? ); output = output.set_ssekms_key_id( - crate::http_serde::deser_header_upload_part_copy_ssekms_key_id(response.headers()) + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_ssekms_key_id(response.headers()) .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse SSEKMSKeyId from header `x-amz-server-side-encryption-aws-kms-key-id"))? ); output = output.set_server_side_encryption( - crate::http_serde::deser_header_upload_part_copy_server_side_encryption(response.headers()) + crate::http_serde::deser_header_upload_part_copy_upload_part_copy_output_server_side_encryption(response.headers()) .map_err(|_|crate::error::UploadPartCopyError::unhandled("Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption"))? ); output.build() diff --git a/sdk/s3/src/operation_ser.rs b/sdk/s3/src/operation_ser.rs index 2b86cd0d5c4a..7e834a9893f7 100644 --- a/sdk/s3/src/operation_ser.rs +++ b/sdk/s3/src/operation_ser.rs @@ -80,7 +80,7 @@ pub fn ser_payload_put_bucket_analytics_configuration_input( } pub fn ser_payload_put_bucket_cors_input( - payload: &std::option::Option, + payload: &std::option::Option, ) -> std::result::Result { let payload = match payload.as_ref() { Some(t) => t, diff --git a/sdk/s3/src/output.rs b/sdk/s3/src/output.rs index 1a1b8f3815b8..a2e2fba2b53b 100644 --- a/sdk/s3/src/output.rs +++ b/sdk/s3/src/output.rs @@ -5986,7 +5986,7 @@ impl GetBucketEncryptionOutput { pub struct GetBucketCorsOutput { ///

                              A set of origins and methods (cross-origin access that you want to allow). You can add /// up to 100 rules to the configuration.

                              - pub cors_rules: std::option::Option>, + pub cors_rules: std::option::Option>, } impl std::fmt::Debug for GetBucketCorsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -6001,10 +6001,10 @@ pub mod get_bucket_cors_output { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) cors_rules: std::option::Option>, + pub(crate) cors_rules: std::option::Option>, } impl Builder { - pub fn cors_rules(mut self, input: impl Into) -> Self { + pub fn cors_rules(mut self, input: impl Into) -> Self { let mut v = self.cors_rules.unwrap_or_default(); v.push(input.into()); self.cors_rules = Some(v); @@ -6012,7 +6012,7 @@ pub mod get_bucket_cors_output { } pub fn set_cors_rules( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.cors_rules = input; self diff --git a/sdk/s3/src/xml_deser.rs b/sdk/s3/src/xml_deser.rs index dcd1abf49dde..bb996f2a9f18 100644 --- a/sdk/s3/src/xml_deser.rs +++ b/sdk/s3/src/xml_deser.rs @@ -361,7 +361,7 @@ pub fn deser_operation_get_bucket_cors( s if s.matches("CORSRule") /* CORSRules com.amazonaws.s3#GetBucketCorsOutput$CORSRules */ => { let var_15 = Some( - Result::, smithy_xml::decode::XmlError>::Ok({ + Result::, smithy_xml::decode::XmlError>::Ok({ let mut list_16 = builder.cors_rules.take().unwrap_or_default(); list_16.push( crate::xml_deser::deser_structure_cors_rule(&mut tag) @@ -2701,9 +2701,9 @@ pub fn deser_list_grants( pub fn deser_structure_cors_rule( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::CORSRule::builder(); + let mut builder = crate::model::CorsRule::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("ID") /* ID com.amazonaws.s3#CORSRule$ID */ => { @@ -6710,18 +6710,18 @@ pub fn deser_structure_analytics_s3_bucket_destination( pub fn deser_structure_sses3( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SSES3::builder(); + let mut builder = crate::model::Sses3::builder(); let _ = decoder; Ok(builder.build()) } pub fn deser_structure_ssekms( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SSEKMS::builder(); + let mut builder = crate::model::Ssekms::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("KeyId") /* KeyId com.amazonaws.s3#SSEKMS$KeyId */ => { diff --git a/sdk/s3/src/xml_ser.rs b/sdk/s3/src/xml_ser.rs index 0efb19c0d619..5883ccca5cb4 100644 --- a/sdk/s3/src/xml_ser.rs +++ b/sdk/s3/src/xml_ser.rs @@ -90,7 +90,7 @@ pub fn serialize_member_put_bucket_analytics_configuration_input_analytics_confi } pub fn serialize_member_put_bucket_cors_input_cors_configuration( - input: &crate::model::CORSConfiguration, + input: &crate::model::CorsConfiguration, ) -> Result { let mut out = String::new(); { @@ -539,7 +539,7 @@ pub fn serialize_structure_analytics_configuration( } pub fn serialize_structure_cors_configuration( - input: &crate::model::CORSConfiguration, + input: &crate::model::CorsConfiguration, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -1237,7 +1237,7 @@ pub fn serialize_structure_storage_class_analysis( } pub fn serialize_structure_cors_rule( - input: &crate::model::CORSRule, + input: &crate::model::CorsRule, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -2940,7 +2940,7 @@ pub fn serialize_structure_metrics( } pub fn serialize_structure_csv_input( - input: &crate::model::CSVInput, + input: &crate::model::CsvInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -3002,7 +3002,7 @@ pub fn serialize_structure_csv_input( } pub fn serialize_structure_json_input( - input: &crate::model::JSONInput, + input: &crate::model::JsonInput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -3028,7 +3028,7 @@ pub fn serialize_structure_parquet_input( } pub fn serialize_structure_csv_output( - input: &crate::model::CSVOutput, + input: &crate::model::CsvOutput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -3072,7 +3072,7 @@ pub fn serialize_structure_csv_output( } pub fn serialize_structure_json_output( - input: &crate::model::JSONOutput, + input: &crate::model::JsonOutput, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] @@ -3178,7 +3178,7 @@ pub fn serialize_structure_analytics_s3_bucket_destination( } pub fn serialize_structure_sses3( - input: &crate::model::SSES3, + input: &crate::model::Sses3, writer: smithy_xml::encode::ElWriter, ) { let _ = input; @@ -3188,7 +3188,7 @@ pub fn serialize_structure_sses3( } pub fn serialize_structure_ssekms( - input: &crate::model::SSEKMS, + input: &crate::model::Ssekms, writer: smithy_xml::encode::ElWriter, ) { #[allow(unused_mut)] diff --git a/sdk/sagemaker/Cargo.toml b/sdk/sagemaker/Cargo.toml index b4f244b9490a..01545855bf4e 100644 --- a/sdk/sagemaker/Cargo.toml +++ b/sdk/sagemaker/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sagemaker" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

                              Provides APIs for creating and managing Amazon SageMaker resources.

                              \n

                              Other Resources:

                              \n
                              " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -22,22 +22,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/sagemaker/src/aws_json_errors.rs b/sdk/sagemaker/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sagemaker/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sagemaker/src/client.rs b/sdk/sagemaker/src/client.rs index 5739999d15fc..98388dc78656 100644 --- a/sdk/sagemaker/src/client.rs +++ b/sdk/sagemaker/src/client.rs @@ -1605,7 +1605,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateAutoMLJobOutput, + crate::output::CreateAutoMlJobOutput, smithy_http::result::SdkError, > where @@ -1636,26 +1636,26 @@ pub mod fluent_builders { ///

                              An array of channel objects that describes the input data and its location. Each channel /// is a named input source. Similar to InputDataConfig supported by . Format(s) supported: CSV. Minimum /// of 500 rows.

                              - pub fn input_data_config(mut self, inp: impl Into) -> Self { + pub fn input_data_config(mut self, inp: impl Into) -> Self { self.inner = self.inner.input_data_config(inp); self } pub fn set_input_data_config( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.inner = self.inner.set_input_data_config(input); self } ///

                              Provides information about encryption and the Amazon S3 output path needed to store /// artifacts from an AutoML job. Format(s) supported: CSV.

                              - pub fn output_data_config(mut self, input: crate::model::AutoMLOutputDataConfig) -> Self { + pub fn output_data_config(mut self, input: crate::model::AutoMlOutputDataConfig) -> Self { self.inner = self.inner.output_data_config(input); self } pub fn set_output_data_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_output_data_config(input); self @@ -1678,26 +1678,26 @@ pub mod fluent_builders { ///

                              Defines the objective metric used to measure the predictive quality of an AutoML job. /// You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to /// minimize or maximize it.

                              - pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMLJobObjective) -> Self { + pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMlJobObjective) -> Self { self.inner = self.inner.auto_ml_job_objective(input); self } pub fn set_auto_ml_job_objective( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_auto_ml_job_objective(input); self } ///

                              Contains CompletionCriteria and SecurityConfig settings for /// the AutoML job.

                              - pub fn auto_ml_job_config(mut self, input: crate::model::AutoMLJobConfig) -> Self { + pub fn auto_ml_job_config(mut self, input: crate::model::AutoMlJobConfig) -> Self { self.inner = self.inner.auto_ml_job_config(input); self } pub fn set_auto_ml_job_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.inner = self.inner.set_auto_ml_job_config(input); self @@ -9010,7 +9010,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DescribeAutoMLJobOutput, + crate::output::DescribeAutoMlJobOutput, smithy_http::result::SdkError, > where @@ -11897,7 +11897,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListAutoMLJobsOutput, + crate::output::ListAutoMlJobsOutput, smithy_http::result::SdkError, > where @@ -12044,7 +12044,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListCandidatesForAutoMLJobOutput, + crate::output::ListCandidatesForAutoMlJobOutput, smithy_http::result::SdkError, > where @@ -18391,7 +18391,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::StopAutoMLJobOutput, + crate::output::StopAutoMlJobOutput, smithy_http::result::SdkError, > where diff --git a/sdk/sagemaker/src/error.rs b/sdk/sagemaker/src/error.rs index 023ff31e52f0..d55139eafaaf 100644 --- a/sdk/sagemaker/src/error.rs +++ b/sdk/sagemaker/src/error.rs @@ -2441,7 +2441,7 @@ pub struct CreateModelPackageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateModelPackageErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceLimitExceeded(crate::error::ResourceLimitExceeded), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2449,7 +2449,7 @@ pub enum CreateModelPackageErrorKind { impl std::fmt::Display for CreateModelPackageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateModelPackageErrorKind::ConflictError(_inner) => _inner.fmt(f), + CreateModelPackageErrorKind::ConflictException(_inner) => _inner.fmt(f), CreateModelPackageErrorKind::ResourceLimitExceeded(_inner) => _inner.fmt(f), CreateModelPackageErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -2499,8 +2499,11 @@ impl CreateModelPackageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, CreateModelPackageErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + CreateModelPackageErrorKind::ConflictException(_) + ) } pub fn is_resource_limit_exceeded(&self) -> bool { matches!( @@ -2512,7 +2515,7 @@ impl CreateModelPackageError { impl std::error::Error for CreateModelPackageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateModelPackageErrorKind::ConflictError(_inner) => Some(_inner), + CreateModelPackageErrorKind::ConflictException(_inner) => Some(_inner), CreateModelPackageErrorKind::ResourceLimitExceeded(_inner) => Some(_inner), CreateModelPackageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -5716,14 +5719,14 @@ pub struct DeleteModelPackageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteModelPackageErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteModelPackageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteModelPackageErrorKind::ConflictError(_inner) => _inner.fmt(f), + DeleteModelPackageErrorKind::ConflictException(_inner) => _inner.fmt(f), DeleteModelPackageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5772,14 +5775,17 @@ impl DeleteModelPackageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, DeleteModelPackageErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + DeleteModelPackageErrorKind::ConflictException(_) + ) } } impl std::error::Error for DeleteModelPackageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteModelPackageErrorKind::ConflictError(_inner) => Some(_inner), + DeleteModelPackageErrorKind::ConflictException(_inner) => Some(_inner), DeleteModelPackageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -16604,7 +16610,7 @@ pub struct UpdateActionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateActionErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -16612,7 +16618,7 @@ pub enum UpdateActionErrorKind { impl std::fmt::Display for UpdateActionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateActionErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateActionErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateActionErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateActionErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -16662,8 +16668,8 @@ impl UpdateActionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateActionErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateActionErrorKind::ConflictException(_)) } pub fn is_resource_not_found(&self) -> bool { matches!(&self.kind, UpdateActionErrorKind::ResourceNotFound(_)) @@ -16672,7 +16678,7 @@ impl UpdateActionError { impl std::error::Error for UpdateActionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateActionErrorKind::ConflictError(_inner) => Some(_inner), + UpdateActionErrorKind::ConflictException(_inner) => Some(_inner), UpdateActionErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateActionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -16769,7 +16775,7 @@ pub struct UpdateArtifactError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateArtifactErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -16777,7 +16783,7 @@ pub enum UpdateArtifactErrorKind { impl std::fmt::Display for UpdateArtifactError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateArtifactErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateArtifactErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateArtifactErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateArtifactErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -16827,8 +16833,8 @@ impl UpdateArtifactError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateArtifactErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateArtifactErrorKind::ConflictException(_)) } pub fn is_resource_not_found(&self) -> bool { matches!(&self.kind, UpdateArtifactErrorKind::ResourceNotFound(_)) @@ -16837,7 +16843,7 @@ impl UpdateArtifactError { impl std::error::Error for UpdateArtifactError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateArtifactErrorKind::ConflictError(_inner) => Some(_inner), + UpdateArtifactErrorKind::ConflictException(_inner) => Some(_inner), UpdateArtifactErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateArtifactErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -16925,7 +16931,7 @@ pub struct UpdateContextError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContextErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -16933,7 +16939,7 @@ pub enum UpdateContextErrorKind { impl std::fmt::Display for UpdateContextError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContextErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateContextErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateContextErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateContextErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -16983,8 +16989,8 @@ impl UpdateContextError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateContextErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateContextErrorKind::ConflictException(_)) } pub fn is_resource_not_found(&self) -> bool { matches!(&self.kind, UpdateContextErrorKind::ResourceNotFound(_)) @@ -16993,7 +16999,7 @@ impl UpdateContextError { impl std::error::Error for UpdateContextError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContextErrorKind::ConflictError(_inner) => Some(_inner), + UpdateContextErrorKind::ConflictException(_inner) => Some(_inner), UpdateContextErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateContextErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -17418,7 +17424,7 @@ pub struct UpdateExperimentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateExperimentErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -17426,7 +17432,7 @@ pub enum UpdateExperimentErrorKind { impl std::fmt::Display for UpdateExperimentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateExperimentErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateExperimentErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateExperimentErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateExperimentErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -17476,8 +17482,8 @@ impl UpdateExperimentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateExperimentErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateExperimentErrorKind::ConflictException(_)) } pub fn is_resource_not_found(&self) -> bool { matches!(&self.kind, UpdateExperimentErrorKind::ResourceNotFound(_)) @@ -17486,7 +17492,7 @@ impl UpdateExperimentError { impl std::error::Error for UpdateExperimentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateExperimentErrorKind::ConflictError(_inner) => Some(_inner), + UpdateExperimentErrorKind::ConflictException(_inner) => Some(_inner), UpdateExperimentErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateExperimentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -18156,7 +18162,7 @@ pub struct UpdateTrialError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateTrialErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -18164,7 +18170,7 @@ pub enum UpdateTrialErrorKind { impl std::fmt::Display for UpdateTrialError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateTrialErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateTrialErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateTrialErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateTrialErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -18214,8 +18220,8 @@ impl UpdateTrialError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateTrialErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, UpdateTrialErrorKind::ConflictException(_)) } pub fn is_resource_not_found(&self) -> bool { matches!(&self.kind, UpdateTrialErrorKind::ResourceNotFound(_)) @@ -18224,7 +18230,7 @@ impl UpdateTrialError { impl std::error::Error for UpdateTrialError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateTrialErrorKind::ConflictError(_inner) => Some(_inner), + UpdateTrialErrorKind::ConflictException(_inner) => Some(_inner), UpdateTrialErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateTrialErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -18240,7 +18246,7 @@ pub struct UpdateTrialComponentError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateTrialComponentErrorKind { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceNotFound(crate::error::ResourceNotFound), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -18248,7 +18254,7 @@ pub enum UpdateTrialComponentErrorKind { impl std::fmt::Display for UpdateTrialComponentError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateTrialComponentErrorKind::ConflictError(_inner) => _inner.fmt(f), + UpdateTrialComponentErrorKind::ConflictException(_inner) => _inner.fmt(f), UpdateTrialComponentErrorKind::ResourceNotFound(_inner) => _inner.fmt(f), UpdateTrialComponentErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -18298,8 +18304,11 @@ impl UpdateTrialComponentError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, UpdateTrialComponentErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!( + &self.kind, + UpdateTrialComponentErrorKind::ConflictException(_) + ) } pub fn is_resource_not_found(&self) -> bool { matches!( @@ -18311,7 +18320,7 @@ impl UpdateTrialComponentError { impl std::error::Error for UpdateTrialComponentError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateTrialComponentErrorKind::ConflictError(_inner) => Some(_inner), + UpdateTrialComponentErrorKind::ConflictException(_inner) => Some(_inner), UpdateTrialComponentErrorKind::ResourceNotFound(_inner) => Some(_inner), UpdateTrialComponentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -18567,10 +18576,8 @@ impl std::error::Error for UpdateWorkteamError { ///

                              You have exceeded an Amazon SageMaker resource limit. For example, you might have too many /// training jobs created.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceLimitExceeded { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ResourceLimitExceeded { @@ -18629,10 +18636,8 @@ impl ResourceLimitExceeded { ///

                              Resource being access is not found.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceNotFound { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ResourceNotFound { @@ -18691,10 +18696,8 @@ impl ResourceNotFound { ///

                              Resource being accessed is in use.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceInUse { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ResourceInUse { @@ -18754,37 +18757,35 @@ impl ResourceInUse { ///

                              There was a conflict when you attempted to modify a SageMaker entity such as an /// Experiment or Artifact.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConflictError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ConflictError { +impl std::fmt::Debug for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConflictError"); + let mut formatter = f.debug_struct("ConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConflictError { +impl ConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConflictError { +impl std::fmt::Display for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConflictError [ConflictException]")?; + write!(f, "ConflictException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ConflictError {} -/// See [`ConflictError`](crate::error::ConflictError) -pub mod conflict_error { - /// A builder for [`ConflictError`](crate::error::ConflictError) +impl std::error::Error for ConflictException {} +/// See [`ConflictException`](crate::error::ConflictException) +pub mod conflict_exception { + /// A builder for [`ConflictException`](crate::error::ConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18799,17 +18800,17 @@ pub mod conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConflictError`](crate::error::ConflictError) - pub fn build(self) -> crate::error::ConflictError { - crate::error::ConflictError { + /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException) + pub fn build(self) -> crate::error::ConflictException { + crate::error::ConflictException { message: self.message, } } } } -impl ConflictError { - /// Creates a new builder-style object to manufacture [`ConflictError`](crate::error::ConflictError) - pub fn builder() -> crate::error::conflict_error::Builder { - crate::error::conflict_error::Builder::default() +impl ConflictException { + /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException) + pub fn builder() -> crate::error::conflict_exception::Builder { + crate::error::conflict_exception::Builder::default() } } diff --git a/sdk/sagemaker/src/error_meta.rs b/sdk/sagemaker/src/error_meta.rs index c10fe287f358..da4c281c1be6 100644 --- a/sdk/sagemaker/src/error_meta.rs +++ b/sdk/sagemaker/src/error_meta.rs @@ -2,7 +2,7 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ConflictError(crate::error::ConflictError), + ConflictException(crate::error::ConflictException), ResourceInUse(crate::error::ResourceInUse), ResourceLimitExceeded(crate::error::ResourceLimitExceeded), ResourceNotFound(crate::error::ResourceNotFound), @@ -11,7 +11,7 @@ pub enum Error { impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ConflictError(inner) => inner.fmt(f), + Error::ConflictException(inner) => inner.fmt(f), Error::ResourceInUse(inner) => inner.fmt(f), Error::ResourceLimitExceeded(inner) => inner.fmt(f), Error::ResourceNotFound(inner) => inner.fmt(f), @@ -493,8 +493,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateModelPackageErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::CreateModelPackageErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::CreateModelPackageErrorKind::ResourceLimitExceeded(inner) => { Error::ResourceLimitExceeded(inner) @@ -1128,8 +1128,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteModelPackageErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::DeleteModelPackageErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::DeleteModelPackageErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -3126,8 +3126,8 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateActionErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateActionErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateActionErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) @@ -3157,8 +3157,8 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateArtifactErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateArtifactErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateArtifactErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) @@ -3185,8 +3185,8 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateContextErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateContextErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateContextErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) @@ -3273,8 +3273,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateExperimentErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateExperimentErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateExperimentErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) @@ -3416,8 +3416,8 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateTrialErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateTrialErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateTrialErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) @@ -3432,8 +3432,8 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateTrialComponentErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::UpdateTrialComponentErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } crate::error::UpdateTrialComponentErrorKind::ResourceNotFound(inner) => { Error::ResourceNotFound(inner) diff --git a/sdk/sagemaker/src/input.rs b/sdk/sagemaker/src/input.rs index 2b34086252a5..3f671433d920 100644 --- a/sdk/sagemaker/src/input.rs +++ b/sdk/sagemaker/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`AddAssociationInput`](crate::input::AddAssociationInput) pub mod add_association_input { /// A builder for [`AddAssociationInput`](crate::input::AddAssociationInput) @@ -140,15 +141,27 @@ impl AddAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.AddAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.AddAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -267,15 +280,27 @@ impl AddTagsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.AddTags")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.AddTags"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -401,15 +426,27 @@ impl AssociateTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.AssociateTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.AssociateTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -620,15 +657,27 @@ impl CreateActionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateAction")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateAction"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -879,15 +928,27 @@ impl CreateAlgorithmInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateAlgorithm")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateAlgorithm"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1060,15 +1121,27 @@ impl CreateAppInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateApp")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateApp"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1215,15 +1288,27 @@ impl CreateAppImageConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateAppImageConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateAppImageConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1416,15 +1501,27 @@ impl CreateArtifactInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateArtifact")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateArtifact"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1441,19 +1538,19 @@ impl CreateArtifactInput { } } -/// See [`CreateAutoMLJobInput`](crate::input::CreateAutoMLJobInput) +/// See [`CreateAutoMlJobInput`](crate::input::CreateAutoMlJobInput) pub mod create_auto_ml_job_input { - /// A builder for [`CreateAutoMLJobInput`](crate::input::CreateAutoMLJobInput) + /// A builder for [`CreateAutoMlJobInput`](crate::input::CreateAutoMlJobInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) auto_ml_job_name: std::option::Option, pub(crate) input_data_config: - std::option::Option>, - pub(crate) output_data_config: std::option::Option, + std::option::Option>, + pub(crate) output_data_config: std::option::Option, pub(crate) problem_type: std::option::Option, - pub(crate) auto_ml_job_objective: std::option::Option, - pub(crate) auto_ml_job_config: std::option::Option, + pub(crate) auto_ml_job_objective: std::option::Option, + pub(crate) auto_ml_job_config: std::option::Option, pub(crate) role_arn: std::option::Option, pub(crate) generate_candidate_definitions_only: std::option::Option, pub(crate) tags: std::option::Option>, @@ -1473,7 +1570,7 @@ pub mod create_auto_ml_job_input { self.auto_ml_job_name = input; self } - pub fn input_data_config(mut self, input: impl Into) -> Self { + pub fn input_data_config(mut self, input: impl Into) -> Self { let mut v = self.input_data_config.unwrap_or_default(); v.push(input.into()); self.input_data_config = Some(v); @@ -1481,20 +1578,20 @@ pub mod create_auto_ml_job_input { } pub fn set_input_data_config( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.input_data_config = input; self } ///

                              Provides information about encryption and the Amazon S3 output path needed to store /// artifacts from an AutoML job. Format(s) supported: CSV.

                              - pub fn output_data_config(mut self, input: crate::model::AutoMLOutputDataConfig) -> Self { + pub fn output_data_config(mut self, input: crate::model::AutoMlOutputDataConfig) -> Self { self.output_data_config = Some(input); self } pub fn set_output_data_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.output_data_config = input; self @@ -1517,26 +1614,26 @@ pub mod create_auto_ml_job_input { ///

                              Defines the objective metric used to measure the predictive quality of an AutoML job. /// You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to /// minimize or maximize it.

                              - pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMLJobObjective) -> Self { + pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMlJobObjective) -> Self { self.auto_ml_job_objective = Some(input); self } pub fn set_auto_ml_job_objective( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_objective = input; self } ///

                              Contains CompletionCriteria and SecurityConfig settings for /// the AutoML job.

                              - pub fn auto_ml_job_config(mut self, input: crate::model::AutoMLJobConfig) -> Self { + pub fn auto_ml_job_config(mut self, input: crate::model::AutoMlJobConfig) -> Self { self.auto_ml_job_config = Some(input); self } pub fn set_auto_ml_job_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_config = input; self @@ -1589,14 +1686,14 @@ pub mod create_auto_ml_job_input { self.model_deploy_config = input; self } - /// Consumes the builder and constructs a [`CreateAutoMLJobInput`](crate::input::CreateAutoMLJobInput) + /// Consumes the builder and constructs a [`CreateAutoMlJobInput`](crate::input::CreateAutoMlJobInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateAutoMLJobInput, + crate::input::CreateAutoMlJobInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateAutoMLJobInput { + Ok(crate::input::CreateAutoMlJobInput { auto_ml_job_name: self.auto_ml_job_name, input_data_config: self.input_data_config, output_data_config: self.output_data_config, @@ -1617,7 +1714,7 @@ pub mod create_auto_ml_job_input { pub type CreateAutoMLJobInputOperationOutputAlias = crate::operation::CreateAutoMLJob; #[doc(hidden)] pub type CreateAutoMLJobInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateAutoMLJobInput { +impl CreateAutoMlJobInput { /// Consumes the builder and constructs an Operation<[`CreateAutoMLJob`](crate::operation::CreateAutoMLJob)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1676,15 +1773,27 @@ impl CreateAutoMLJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateAutoMLJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateAutoMLJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1695,7 +1804,7 @@ impl CreateAutoMLJobInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateAutoMLJobInput`](crate::input::CreateAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`CreateAutoMlJobInput`](crate::input::CreateAutoMlJobInput) pub fn builder() -> crate::input::create_auto_ml_job_input::Builder { crate::input::create_auto_ml_job_input::Builder::default() } @@ -1829,15 +1938,27 @@ impl CreateCodeRepositoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateCodeRepository")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateCodeRepository"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2045,15 +2166,27 @@ impl CreateCompilationJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateCompilationJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateCompilationJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2236,15 +2369,27 @@ impl CreateContextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateContext")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateContext"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2502,15 +2647,27 @@ impl CreateDataQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateDataQualityJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateDataQualityJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2690,15 +2847,27 @@ impl CreateDeviceFleetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateDeviceFleet")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateDeviceFleet"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2936,15 +3105,27 @@ impl CreateDomainInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateDomain")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateDomain"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3148,15 +3329,27 @@ impl CreateEdgePackagingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateEdgePackagingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateEdgePackagingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3300,15 +3493,27 @@ impl CreateEndpointInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateEndpoint")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateEndpoint"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3521,15 +3726,27 @@ impl CreateEndpointConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateEndpointConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateEndpointConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3682,15 +3899,27 @@ impl CreateExperimentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateExperiment")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateExperiment"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3988,15 +4217,27 @@ impl CreateFeatureGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateFeatureGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateFeatureGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4201,15 +4442,27 @@ impl CreateFlowDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateFlowDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateFlowDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4352,15 +4605,27 @@ impl CreateHumanTaskUiInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateHumanTaskUi")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateHumanTaskUi"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4594,15 +4859,27 @@ impl CreateHyperParameterTuningJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateHyperParameterTuningJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateHyperParameterTuningJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4759,15 +5036,27 @@ impl CreateImageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateImage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateImage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4908,15 +5197,27 @@ impl CreateImageVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateImageVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateImageVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5290,15 +5591,27 @@ impl CreateLabelingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateLabelingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateLabelingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5524,15 +5837,27 @@ impl CreateModelInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateModel")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateModel"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5790,15 +6115,27 @@ impl CreateModelBiasJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateModelBiasJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateModelBiasJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6060,18 +6397,30 @@ impl CreateModelExplainabilityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.CreateModelExplainabilityJobDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.CreateModelExplainabilityJobDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6376,15 +6725,27 @@ impl CreateModelPackageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateModelPackage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateModelPackage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6531,15 +6892,27 @@ impl CreateModelPackageGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateModelPackageGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateModelPackageGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6801,15 +7174,27 @@ impl CreateModelQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateModelQualityJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateModelQualityJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6959,15 +7344,27 @@ impl CreateMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7298,15 +7695,27 @@ impl CreateNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7464,18 +7873,30 @@ impl CreateNotebookInstanceLifecycleConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.CreateNotebookInstanceLifecycleConfig", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.CreateNotebookInstanceLifecycleConfig", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7674,15 +8095,27 @@ impl CreatePipelineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreatePipeline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreatePipeline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7834,15 +8267,27 @@ impl CreatePresignedDomainUrlInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreatePresignedDomainUrl")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreatePresignedDomainUrl"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7974,18 +8419,30 @@ impl CreatePresignedNotebookInstanceUrlInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.CreatePresignedNotebookInstanceUrl", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.CreatePresignedNotebookInstanceUrl", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8282,15 +8739,27 @@ impl CreateProcessingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateProcessingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateProcessingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8448,15 +8917,27 @@ impl CreateProjectInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateProject")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateProject"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8968,15 +9449,27 @@ impl CreateTrainingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateTrainingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateTrainingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9319,15 +9812,27 @@ impl CreateTransformJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateTransformJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateTransformJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9492,15 +9997,27 @@ impl CreateTrialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateTrial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateTrial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9785,15 +10302,27 @@ impl CreateTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9982,15 +10511,27 @@ impl CreateUserProfileInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateUserProfile")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateUserProfile"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10169,15 +10710,27 @@ impl CreateWorkforceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateWorkforce")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateWorkforce"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10367,15 +10920,27 @@ impl CreateWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.CreateWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.CreateWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10484,15 +11049,27 @@ impl DeleteActionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteAction")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteAction"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10605,15 +11182,27 @@ impl DeleteAlgorithmInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteAlgorithm")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteAlgorithm"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10756,15 +11345,27 @@ impl DeleteAppInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteApp")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteApp"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10878,15 +11479,27 @@ impl DeleteAppImageConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteAppImageConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteAppImageConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11010,15 +11623,27 @@ impl DeleteArtifactInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteArtifact")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteArtifact"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11143,15 +11768,27 @@ impl DeleteAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11265,15 +11902,27 @@ impl DeleteCodeRepositoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteCodeRepository")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteCodeRepository"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11382,15 +12031,27 @@ impl DeleteContextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteContext")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteContext"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11506,15 +12167,27 @@ impl DeleteDataQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteDataQualityJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteDataQualityJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11628,15 +12301,27 @@ impl DeleteDeviceFleetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteDeviceFleet")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteDeviceFleet"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11761,15 +12446,27 @@ impl DeleteDomainInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteDomain")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteDomain"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11882,15 +12579,27 @@ impl DeleteEndpointInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteEndpoint")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteEndpoint"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12004,15 +12713,27 @@ impl DeleteEndpointConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteEndpointConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteEndpointConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12125,15 +12846,27 @@ impl DeleteExperimentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteExperiment")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteExperiment"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12248,15 +12981,27 @@ impl DeleteFeatureGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteFeatureGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteFeatureGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12370,15 +13115,27 @@ impl DeleteFlowDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteFlowDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteFlowDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12492,15 +13249,27 @@ impl DeleteHumanTaskUiInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteHumanTaskUi")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteHumanTaskUi"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12609,15 +13378,27 @@ impl DeleteImageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteImage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteImage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12739,15 +13520,27 @@ impl DeleteImageVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteImageVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteImageVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12856,15 +13649,27 @@ impl DeleteModelInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModel")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModel"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12980,15 +13785,27 @@ impl DeleteModelBiasJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModelBiasJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModelBiasJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13103,18 +13920,30 @@ impl DeleteModelExplainabilityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DeleteModelExplainabilityJobDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DeleteModelExplainabilityJobDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13230,15 +14059,27 @@ impl DeleteModelPackageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModelPackage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModelPackage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13353,15 +14194,27 @@ impl DeleteModelPackageGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModelPackageGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModelPackageGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13477,15 +14330,27 @@ impl DeleteModelPackageGroupPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModelPackageGroupPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModelPackageGroupPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13603,15 +14468,27 @@ impl DeleteModelQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteModelQualityJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteModelQualityJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13726,15 +14603,27 @@ impl DeleteMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13848,15 +14737,27 @@ impl DeleteNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13976,18 +14877,30 @@ impl DeleteNotebookInstanceLifecycleConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DeleteNotebookInstanceLifecycleConfig", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DeleteNotebookInstanceLifecycleConfig", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14118,15 +15031,27 @@ impl DeletePipelineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeletePipeline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeletePipeline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14235,15 +15160,27 @@ impl DeleteProjectInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteProject")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteProject"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14368,15 +15305,27 @@ impl DeleteTagsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteTags")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteTags"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14485,15 +15434,27 @@ impl DeleteTrialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteTrial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteTrial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14607,15 +15568,27 @@ impl DeleteTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14740,15 +15713,27 @@ impl DeleteUserProfileInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteUserProfile")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteUserProfile"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14861,15 +15846,27 @@ impl DeleteWorkforceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteWorkforce")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteWorkforce"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14982,15 +15979,27 @@ impl DeleteWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeleteWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeleteWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15119,15 +16128,27 @@ impl DeregisterDevicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DeregisterDevices")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DeregisterDevices"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15237,15 +16258,27 @@ impl DescribeActionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeAction")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeAction"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15359,15 +16392,27 @@ impl DescribeAlgorithmInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeAlgorithm")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeAlgorithm"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15512,15 +16557,27 @@ impl DescribeAppInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeApp")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeApp"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15634,15 +16691,27 @@ impl DescribeAppImageConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeAppImageConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeAppImageConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15752,15 +16821,27 @@ impl DescribeArtifactInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeArtifact")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeArtifact"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15777,9 +16858,9 @@ impl DescribeArtifactInput { } } -/// See [`DescribeAutoMLJobInput`](crate::input::DescribeAutoMLJobInput) +/// See [`DescribeAutoMlJobInput`](crate::input::DescribeAutoMlJobInput) pub mod describe_auto_ml_job_input { - /// A builder for [`DescribeAutoMLJobInput`](crate::input::DescribeAutoMLJobInput) + /// A builder for [`DescribeAutoMlJobInput`](crate::input::DescribeAutoMlJobInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15798,14 +16879,14 @@ pub mod describe_auto_ml_job_input { self.auto_ml_job_name = input; self } - /// Consumes the builder and constructs a [`DescribeAutoMLJobInput`](crate::input::DescribeAutoMLJobInput) + /// Consumes the builder and constructs a [`DescribeAutoMlJobInput`](crate::input::DescribeAutoMlJobInput) pub fn build( self, ) -> std::result::Result< - crate::input::DescribeAutoMLJobInput, + crate::input::DescribeAutoMlJobInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DescribeAutoMLJobInput { + Ok(crate::input::DescribeAutoMlJobInput { auto_ml_job_name: self.auto_ml_job_name, }) } @@ -15815,7 +16896,7 @@ pub mod describe_auto_ml_job_input { pub type DescribeAutoMLJobInputOperationOutputAlias = crate::operation::DescribeAutoMLJob; #[doc(hidden)] pub type DescribeAutoMLJobInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DescribeAutoMLJobInput { +impl DescribeAutoMlJobInput { /// Consumes the builder and constructs an Operation<[`DescribeAutoMLJob`](crate::operation::DescribeAutoMLJob)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -15874,15 +16955,27 @@ impl DescribeAutoMLJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeAutoMLJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeAutoMLJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15893,7 +16986,7 @@ impl DescribeAutoMLJobInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DescribeAutoMLJobInput`](crate::input::DescribeAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`DescribeAutoMlJobInput`](crate::input::DescribeAutoMlJobInput) pub fn builder() -> crate::input::describe_auto_ml_job_input::Builder { crate::input::describe_auto_ml_job_input::Builder::default() } @@ -15996,15 +17089,27 @@ impl DescribeCodeRepositoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeCodeRepository")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeCodeRepository"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16118,15 +17223,27 @@ impl DescribeCompilationJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeCompilationJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeCompilationJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16236,15 +17353,27 @@ impl DescribeContextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeContext")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeContext"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16362,15 +17491,27 @@ impl DescribeDataQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeDataQualityJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeDataQualityJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16505,15 +17646,27 @@ impl DescribeDeviceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeDevice")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeDevice"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16627,15 +17780,27 @@ impl DescribeDeviceFleetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeDeviceFleet")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeDeviceFleet"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16745,15 +17910,27 @@ impl DescribeDomainInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeDomain")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeDomain"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16868,15 +18045,27 @@ impl DescribeEdgePackagingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeEdgePackagingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeEdgePackagingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16989,15 +18178,27 @@ impl DescribeEndpointInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeEndpoint")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeEndpoint"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17111,15 +18312,27 @@ impl DescribeEndpointConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeEndpointConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeEndpointConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17233,15 +18446,27 @@ impl DescribeExperimentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeExperiment")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeExperiment"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17368,15 +18593,27 @@ impl DescribeFeatureGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeFeatureGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeFeatureGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17490,15 +18727,27 @@ impl DescribeFlowDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeFlowDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeFlowDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17613,15 +18862,27 @@ impl DescribeHumanTaskUiInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeHumanTaskUi")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeHumanTaskUi"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17742,15 +19003,27 @@ impl DescribeHyperParameterTuningJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeHyperParameterTuningJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeHyperParameterTuningJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17859,15 +19132,27 @@ impl DescribeImageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeImage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeImage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17989,15 +19274,27 @@ impl DescribeImageVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeImageVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeImageVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18111,15 +19408,27 @@ impl DescribeLabelingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeLabelingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeLabelingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18228,15 +19537,27 @@ impl DescribeModelInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeModel")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeModel"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18353,15 +19674,27 @@ impl DescribeModelBiasJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeModelBiasJobDefinition")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeModelBiasJobDefinition"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18479,18 +19812,30 @@ impl DescribeModelExplainabilityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DescribeModelExplainabilityJobDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DescribeModelExplainabilityJobDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18606,15 +19951,27 @@ impl DescribeModelPackageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeModelPackage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeModelPackage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18730,15 +20087,27 @@ impl DescribeModelPackageGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeModelPackageGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeModelPackageGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18857,18 +20226,30 @@ impl DescribeModelQualityJobDefinitionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DescribeModelQualityJobDefinition", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DescribeModelQualityJobDefinition", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18984,15 +20365,27 @@ impl DescribeMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19107,15 +20500,27 @@ impl DescribeNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19235,18 +20640,30 @@ impl DescribeNotebookInstanceLifecycleConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DescribeNotebookInstanceLifecycleConfig", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DescribeNotebookInstanceLifecycleConfig", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19359,15 +20776,27 @@ impl DescribePipelineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribePipeline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribePipeline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19482,18 +20911,30 @@ impl DescribePipelineDefinitionForExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DescribePipelineDefinitionForExecution", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DescribePipelineDefinitionForExecution", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19608,15 +21049,27 @@ impl DescribePipelineExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribePipelineExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribePipelineExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19731,15 +21184,27 @@ impl DescribeProcessingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeProcessingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeProcessingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19849,15 +21314,27 @@ impl DescribeProjectInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeProject")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeProject"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19970,15 +21447,27 @@ impl DescribeSubscribedWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeSubscribedWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeSubscribedWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20092,15 +21581,27 @@ impl DescribeTrainingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeTrainingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeTrainingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20214,15 +21715,27 @@ impl DescribeTransformJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeTransformJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeTransformJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20331,15 +21844,27 @@ impl DescribeTrialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeTrial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeTrial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20453,15 +21978,27 @@ impl DescribeTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20586,15 +22123,27 @@ impl DescribeUserProfileInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeUserProfile")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeUserProfile"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20710,15 +22259,27 @@ impl DescribeWorkforceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeWorkforce")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeWorkforce"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20831,15 +22392,27 @@ impl DescribeWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DescribeWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DescribeWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20895,7 +22468,9 @@ impl DisableSagemakerServicecatalogPortfolioInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = + crate::operation_ser::serialize_operation_disable_sagemaker_servicecatalog_portfolio(&self).map_err(|err|smithy_http::operation::BuildError::SerializationError(err.into()))? + ; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -20936,18 +22511,30 @@ impl DisableSagemakerServicecatalogPortfolioInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.DisableSagemakerServicecatalogPortfolio", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.DisableSagemakerServicecatalogPortfolio", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21074,15 +22661,27 @@ impl DisassociateTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.DisassociateTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.DisassociateTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21138,7 +22737,9 @@ impl EnableSagemakerServicecatalogPortfolioInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = + crate::operation_ser::serialize_operation_enable_sagemaker_servicecatalog_portfolio(&self).map_err(|err|smithy_http::operation::BuildError::SerializationError(err.into()))? + ; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -21179,18 +22780,30 @@ impl EnableSagemakerServicecatalogPortfolioInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.EnableSagemakerServicecatalogPortfolio", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.EnableSagemakerServicecatalogPortfolio", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21304,15 +22917,27 @@ impl GetDeviceFleetReportInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.GetDeviceFleetReport")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.GetDeviceFleetReport"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21428,15 +23053,27 @@ impl GetModelPackageGroupPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.GetModelPackageGroupPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.GetModelPackageGroupPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21492,7 +23129,9 @@ impl GetSagemakerServicecatalogPortfolioStatusInput { > { Ok({ let request = self.request_builder_base()?; - let body = smithy_http::body::SdkBody::from("{}"); + let body = + crate::operation_ser::serialize_operation_get_sagemaker_servicecatalog_portfolio_status(&self).map_err(|err|smithy_http::operation::BuildError::SerializationError(err.into()))? + ; let request = Self::assemble(request, body); #[allow(unused_mut)] let mut request = @@ -21533,18 +23172,30 @@ impl GetSagemakerServicecatalogPortfolioStatusInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.GetSagemakerServicecatalogPortfolioStatus", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.GetSagemakerServicecatalogPortfolioStatus", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21672,15 +23323,27 @@ impl GetSearchSuggestionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.GetSearchSuggestions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.GetSearchSuggestions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21879,15 +23542,27 @@ impl ListActionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListActions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListActions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22084,15 +23759,27 @@ impl ListAlgorithmsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListAlgorithms")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListAlgorithms"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22314,15 +24001,27 @@ impl ListAppImageConfigsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListAppImageConfigs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListAppImageConfigs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22494,15 +24193,27 @@ impl ListAppsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListApps")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListApps"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22704,15 +24415,27 @@ impl ListArtifactsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListArtifacts")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListArtifacts"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22954,15 +24677,27 @@ impl ListAssociationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListAssociations")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListAssociations"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22979,9 +24714,9 @@ impl ListAssociationsInput { } } -/// See [`ListAutoMLJobsInput`](crate::input::ListAutoMLJobsInput) +/// See [`ListAutoMlJobsInput`](crate::input::ListAutoMlJobsInput) pub mod list_auto_ml_jobs_input { - /// A builder for [`ListAutoMLJobsInput`](crate::input::ListAutoMLJobsInput) + /// A builder for [`ListAutoMlJobsInput`](crate::input::ListAutoMlJobsInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23112,14 +24847,14 @@ pub mod list_auto_ml_jobs_input { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListAutoMLJobsInput`](crate::input::ListAutoMLJobsInput) + /// Consumes the builder and constructs a [`ListAutoMlJobsInput`](crate::input::ListAutoMlJobsInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListAutoMLJobsInput, + crate::input::ListAutoMlJobsInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListAutoMLJobsInput { + Ok(crate::input::ListAutoMlJobsInput { creation_time_after: self.creation_time_after, creation_time_before: self.creation_time_before, last_modified_time_after: self.last_modified_time_after, @@ -23138,7 +24873,7 @@ pub mod list_auto_ml_jobs_input { pub type ListAutoMLJobsInputOperationOutputAlias = crate::operation::ListAutoMLJobs; #[doc(hidden)] pub type ListAutoMLJobsInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListAutoMLJobsInput { +impl ListAutoMlJobsInput { /// Consumes the builder and constructs an Operation<[`ListAutoMLJobs`](crate::operation::ListAutoMLJobs)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23196,15 +24931,27 @@ impl ListAutoMLJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListAutoMLJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListAutoMLJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -23215,15 +24962,15 @@ impl ListAutoMLJobsInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListAutoMLJobsInput`](crate::input::ListAutoMLJobsInput) + /// Creates a new builder-style object to manufacture [`ListAutoMlJobsInput`](crate::input::ListAutoMlJobsInput) pub fn builder() -> crate::input::list_auto_ml_jobs_input::Builder { crate::input::list_auto_ml_jobs_input::Builder::default() } } -/// See [`ListCandidatesForAutoMLJobInput`](crate::input::ListCandidatesForAutoMLJobInput) +/// See [`ListCandidatesForAutoMlJobInput`](crate::input::ListCandidatesForAutoMlJobInput) pub mod list_candidates_for_auto_ml_job_input { - /// A builder for [`ListCandidatesForAutoMLJobInput`](crate::input::ListCandidatesForAutoMLJobInput) + /// A builder for [`ListCandidatesForAutoMlJobInput`](crate::input::ListCandidatesForAutoMlJobInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -23316,14 +25063,14 @@ pub mod list_candidates_for_auto_ml_job_input { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListCandidatesForAutoMLJobInput`](crate::input::ListCandidatesForAutoMLJobInput) + /// Consumes the builder and constructs a [`ListCandidatesForAutoMlJobInput`](crate::input::ListCandidatesForAutoMlJobInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListCandidatesForAutoMLJobInput, + crate::input::ListCandidatesForAutoMlJobInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListCandidatesForAutoMLJobInput { + Ok(crate::input::ListCandidatesForAutoMlJobInput { auto_ml_job_name: self.auto_ml_job_name, status_equals: self.status_equals, candidate_name_equals: self.candidate_name_equals, @@ -23340,7 +25087,7 @@ pub type ListCandidatesForAutoMLJobInputOperationOutputAlias = crate::operation::ListCandidatesForAutoMLJob; #[doc(hidden)] pub type ListCandidatesForAutoMLJobInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListCandidatesForAutoMLJobInput { +impl ListCandidatesForAutoMlJobInput { /// Consumes the builder and constructs an Operation<[`ListCandidatesForAutoMLJob`](crate::operation::ListCandidatesForAutoMLJob)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -23400,15 +25147,27 @@ impl ListCandidatesForAutoMLJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListCandidatesForAutoMLJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListCandidatesForAutoMLJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -23419,7 +25178,7 @@ impl ListCandidatesForAutoMLJobInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMLJobInput`](crate::input::ListCandidatesForAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMlJobInput`](crate::input::ListCandidatesForAutoMlJobInput) pub fn builder() -> crate::input::list_candidates_for_auto_ml_job_input::Builder { crate::input::list_candidates_for_auto_ml_job_input::Builder::default() } @@ -23635,15 +25394,27 @@ impl ListCodeRepositoriesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListCodeRepositories")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListCodeRepositories"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -23884,15 +25655,27 @@ impl ListCompilationJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListCompilationJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListCompilationJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -24091,15 +25874,27 @@ impl ListContextsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListContexts")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListContexts"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -24314,15 +26109,27 @@ impl ListDataQualityJobDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListDataQualityJobDefinitions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListDataQualityJobDefinitions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -24542,15 +26349,27 @@ impl ListDeviceFleetsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListDeviceFleets")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListDeviceFleets"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -24709,15 +26528,27 @@ impl ListDevicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListDevices")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListDevices"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -24838,15 +26669,27 @@ impl ListDomainsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListDomains")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListDomains"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -25094,15 +26937,27 @@ impl ListEdgePackagingJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListEdgePackagingJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListEdgePackagingJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -25299,15 +27154,27 @@ impl ListEndpointConfigsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListEndpointConfigs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListEndpointConfigs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -25547,15 +27414,27 @@ impl ListEndpointsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListEndpoints")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListEndpoints"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -25734,15 +27613,27 @@ impl ListExperimentsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListExperiments")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListExperiments"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -25973,15 +27864,27 @@ impl ListFeatureGroupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListFeatureGroups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListFeatureGroups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -26145,15 +28048,27 @@ impl ListFlowDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListFlowDefinitions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListFlowDefinitions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -26317,15 +28232,27 @@ impl ListHumanTaskUisInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListHumanTaskUis")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListHumanTaskUis"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -26581,15 +28508,27 @@ impl ListHyperParameterTuningJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListHyperParameterTuningJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListHyperParameterTuningJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -26808,15 +28747,27 @@ impl ListImagesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListImages")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListImages"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -27034,15 +28985,27 @@ impl ListImageVersionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListImageVersions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListImageVersions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -27280,15 +29243,27 @@ impl ListLabelingJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListLabelingJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListLabelingJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -27506,15 +29481,27 @@ impl ListLabelingJobsForWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListLabelingJobsForWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListLabelingJobsForWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -27726,15 +29713,27 @@ impl ListModelBiasJobDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListModelBiasJobDefinitions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListModelBiasJobDefinitions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -27946,18 +29945,30 @@ impl ListModelExplainabilityJobDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.ListModelExplainabilityJobDefinitions", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.ListModelExplainabilityJobDefinitions", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -28152,15 +30163,27 @@ impl ListModelPackageGroupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListModelPackageGroups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListModelPackageGroups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -28416,15 +30439,27 @@ impl ListModelPackagesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListModelPackages")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListModelPackages"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -28639,15 +30674,27 @@ impl ListModelQualityJobDefinitionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListModelQualityJobDefinitions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListModelQualityJobDefinitions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -28842,15 +30889,27 @@ impl ListModelsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListModels")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListModels"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -29163,15 +31222,27 @@ impl ListMonitoringExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListMonitoringExecutions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListMonitoringExecutions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -29456,15 +31527,27 @@ impl ListMonitoringSchedulesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListMonitoringSchedules")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListMonitoringSchedules"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -29704,18 +31787,30 @@ impl ListNotebookInstanceLifecycleConfigsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.ListNotebookInstanceLifecycleConfigs", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.ListNotebookInstanceLifecycleConfigs", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30020,15 +32115,27 @@ impl ListNotebookInstancesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListNotebookInstances")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListNotebookInstances"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30223,15 +32330,27 @@ impl ListPipelineExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListPipelineExecutions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListPipelineExecutions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30384,15 +32503,27 @@ impl ListPipelineExecutionStepsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListPipelineExecutionSteps")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListPipelineExecutionSteps"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30533,18 +32664,30 @@ impl ListPipelineParametersForExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.ListPipelineParametersForExecution", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.ListPipelineParametersForExecution", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30737,15 +32880,27 @@ impl ListPipelinesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListPipelines")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListPipelines"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -30979,15 +33134,27 @@ impl ListProcessingJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListProcessingJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListProcessingJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -31181,15 +33348,27 @@ impl ListProjectsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListProjects")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListProjects"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -31329,15 +33508,27 @@ impl ListSubscribedWorkteamsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListSubscribedWorkteams")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListSubscribedWorkteams"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -31469,15 +33660,27 @@ impl ListTagsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListTags")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListTags"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -31715,15 +33918,27 @@ impl ListTrainingJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListTrainingJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListTrainingJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -31917,18 +34132,30 @@ impl ListTrainingJobsForHyperParameterTuningJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.ListTrainingJobsForHyperParameterTuningJob", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.ListTrainingJobsForHyperParameterTuningJob", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -32163,15 +34390,27 @@ impl ListTransformJobsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListTransformJobs")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListTransformJobs"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -32393,15 +34632,27 @@ impl ListTrialComponentsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListTrialComponents")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListTrialComponents"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -32607,15 +34858,27 @@ impl ListTrialsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListTrials")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListTrials"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -32794,15 +35057,27 @@ impl ListUserProfilesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListUserProfiles")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListUserProfiles"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -32965,15 +35240,27 @@ impl ListWorkforcesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListWorkforces")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListWorkforces"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33138,15 +35425,27 @@ impl ListWorkteamsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.ListWorkteams")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.ListWorkteams"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33276,15 +35575,27 @@ impl PutModelPackageGroupPolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.PutModelPackageGroupPolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.PutModelPackageGroupPolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33427,15 +35738,27 @@ impl RegisterDevicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.RegisterDevices")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.RegisterDevices"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33593,15 +35916,27 @@ impl RenderUiTemplateInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.RenderUiTemplate")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.RenderUiTemplate"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33774,15 +36109,27 @@ impl SearchInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.Search")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.Search"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -33932,15 +36279,27 @@ impl SendPipelineExecutionStepFailureInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.SendPipelineExecutionStepFailure")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.SendPipelineExecutionStepFailure"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34095,15 +36454,27 @@ impl SendPipelineExecutionStepSuccessInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.SendPipelineExecutionStepSuccess")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.SendPipelineExecutionStepSuccess"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34218,15 +36589,27 @@ impl StartMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StartMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StartMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34340,15 +36723,27 @@ impl StartNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StartNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StartNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34529,15 +36924,27 @@ impl StartPipelineExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StartPipelineExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StartPipelineExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34554,9 +36961,9 @@ impl StartPipelineExecutionInput { } } -/// See [`StopAutoMLJobInput`](crate::input::StopAutoMLJobInput) +/// See [`StopAutoMlJobInput`](crate::input::StopAutoMlJobInput) pub mod stop_auto_ml_job_input { - /// A builder for [`StopAutoMLJobInput`](crate::input::StopAutoMLJobInput) + /// A builder for [`StopAutoMlJobInput`](crate::input::StopAutoMlJobInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -34575,12 +36982,12 @@ pub mod stop_auto_ml_job_input { self.auto_ml_job_name = input; self } - /// Consumes the builder and constructs a [`StopAutoMLJobInput`](crate::input::StopAutoMLJobInput) + /// Consumes the builder and constructs a [`StopAutoMlJobInput`](crate::input::StopAutoMlJobInput) pub fn build( self, - ) -> std::result::Result + ) -> std::result::Result { - Ok(crate::input::StopAutoMLJobInput { + Ok(crate::input::StopAutoMlJobInput { auto_ml_job_name: self.auto_ml_job_name, }) } @@ -34590,7 +36997,7 @@ pub mod stop_auto_ml_job_input { pub type StopAutoMLJobInputOperationOutputAlias = crate::operation::StopAutoMLJob; #[doc(hidden)] pub type StopAutoMLJobInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl StopAutoMLJobInput { +impl StopAutoMlJobInput { /// Consumes the builder and constructs an Operation<[`StopAutoMLJob`](crate::operation::StopAutoMLJob)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -34648,15 +37055,27 @@ impl StopAutoMLJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopAutoMLJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopAutoMLJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34667,7 +37086,7 @@ impl StopAutoMLJobInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`StopAutoMLJobInput`](crate::input::StopAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`StopAutoMlJobInput`](crate::input::StopAutoMlJobInput) pub fn builder() -> crate::input::stop_auto_ml_job_input::Builder { crate::input::stop_auto_ml_job_input::Builder::default() } @@ -34770,15 +37189,27 @@ impl StopCompilationJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopCompilationJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopCompilationJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -34892,15 +37323,27 @@ impl StopEdgePackagingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopEdgePackagingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopEdgePackagingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35019,15 +37462,27 @@ impl StopHyperParameterTuningJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopHyperParameterTuningJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopHyperParameterTuningJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35140,15 +37595,27 @@ impl StopLabelingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopLabelingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopLabelingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35262,15 +37729,27 @@ impl StopMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35384,15 +37863,27 @@ impl StopNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35524,15 +38015,27 @@ impl StopPipelineExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopPipelineExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopPipelineExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35646,15 +38149,27 @@ impl StopProcessingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopProcessingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopProcessingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35767,15 +38282,27 @@ impl StopTrainingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopTrainingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopTrainingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -35889,15 +38416,27 @@ impl StopTransformJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.StopTransformJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.StopTransformJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36069,15 +38608,27 @@ impl UpdateActionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateAction")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateAction"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36209,15 +38760,27 @@ impl UpdateAppImageConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateAppImageConfig")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateAppImageConfig"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36379,15 +38942,27 @@ impl UpdateArtifactInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateArtifact")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateArtifact"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36522,15 +39097,27 @@ impl UpdateCodeRepositoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateCodeRepository")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateCodeRepository"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36688,15 +39275,27 @@ impl UpdateContextInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateContext")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateContext"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36861,15 +39460,27 @@ impl UpdateDeviceFleetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateDeviceFleet")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateDeviceFleet"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -36996,15 +39607,27 @@ impl UpdateDevicesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateDevices")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateDevices"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37127,15 +39750,27 @@ impl UpdateDomainInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateDomain")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateDomain"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37316,15 +39951,27 @@ impl UpdateEndpointInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateEndpoint")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateEndpoint"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37461,18 +40108,30 @@ impl UpdateEndpointWeightsAndCapacitiesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.UpdateEndpointWeightsAndCapacities", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.UpdateEndpointWeightsAndCapacities", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37608,15 +40267,27 @@ impl UpdateExperimentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateExperiment")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateExperiment"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37773,15 +40444,27 @@ impl UpdateImageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateImage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateImage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -37923,15 +40606,27 @@ impl UpdateModelPackageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateModelPackage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateModelPackage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -38066,15 +40761,27 @@ impl UpdateMonitoringScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateMonitoringSchedule")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateMonitoringSchedule"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -38404,15 +41111,27 @@ impl UpdateNotebookInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateNotebookInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateNotebookInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -38570,18 +41289,30 @@ impl UpdateNotebookInstanceLifecycleConfigInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "SageMaker.UpdateNotebookInstanceLifecycleConfig", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "SageMaker.UpdateNotebookInstanceLifecycleConfig", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -38747,15 +41478,27 @@ impl UpdatePipelineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdatePipeline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdatePipeline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -38904,15 +41647,27 @@ impl UpdatePipelineExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdatePipelineExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdatePipelineExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39060,15 +41815,27 @@ impl UpdateTrainingJobInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateTrainingJob")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateTrainingJob"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39189,15 +41956,27 @@ impl UpdateTrialInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateTrial")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateTrial"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39488,15 +42267,27 @@ impl UpdateTrialComponentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateTrialComponent")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateTrialComponent"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39635,15 +42426,27 @@ impl UpdateUserProfileInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateUserProfile")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateUserProfile"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39788,15 +42591,27 @@ impl UpdateWorkforceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateWorkforce")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateWorkforce"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -39957,15 +42772,27 @@ impl UpdateWorkteamInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "SageMaker.UpdateWorkteam")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "SageMaker.UpdateWorkteam"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -40842,13 +43669,13 @@ impl std::fmt::Debug for StopCompilationJobInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopAutoMLJobInput { +pub struct StopAutoMlJobInput { ///

                              The name of the object you are requesting.

                              pub auto_ml_job_name: std::option::Option, } -impl std::fmt::Debug for StopAutoMLJobInput { +impl std::fmt::Debug for StopAutoMlJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopAutoMLJobInput"); + let mut formatter = f.debug_struct("StopAutoMlJobInput"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.finish() } @@ -42849,7 +45676,7 @@ impl std::fmt::Debug for ListCodeRepositoriesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCandidatesForAutoMLJobInput { +pub struct ListCandidatesForAutoMlJobInput { ///

                              List the candidates created for the job by providing the job's name.

                              pub auto_ml_job_name: std::option::Option, ///

                              List the candidates for the job and filter by status.

                              @@ -42867,9 +45694,9 @@ pub struct ListCandidatesForAutoMLJobInput { /// request to receive the next set of results.

                              pub next_token: std::option::Option, } -impl std::fmt::Debug for ListCandidatesForAutoMLJobInput { +impl std::fmt::Debug for ListCandidatesForAutoMlJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCandidatesForAutoMLJobInput"); + let mut formatter = f.debug_struct("ListCandidatesForAutoMlJobInput"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.field("status_equals", &self.status_equals); formatter.field("candidate_name_equals", &self.candidate_name_equals); @@ -42883,7 +45710,7 @@ impl std::fmt::Debug for ListCandidatesForAutoMLJobInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAutoMLJobsInput { +pub struct ListAutoMlJobsInput { ///

                              Request a list of jobs, using a filter for time.

                              pub creation_time_after: std::option::Option, ///

                              Request a list of jobs, using a filter for time.

                              @@ -42906,9 +45733,9 @@ pub struct ListAutoMLJobsInput { /// request to receive the next set of results.

                              pub next_token: std::option::Option, } -impl std::fmt::Debug for ListAutoMLJobsInput { +impl std::fmt::Debug for ListAutoMlJobsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAutoMLJobsInput"); + let mut formatter = f.debug_struct("ListAutoMlJobsInput"); formatter.field("creation_time_after", &self.creation_time_after); formatter.field("creation_time_before", &self.creation_time_before); formatter.field("last_modified_time_after", &self.last_modified_time_after); @@ -43834,13 +46661,13 @@ impl std::fmt::Debug for DescribeCodeRepositoryInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutoMLJobInput { +pub struct DescribeAutoMlJobInput { ///

                              Requests information about an AutoML job using its unique name.

                              pub auto_ml_job_name: std::option::Option, } -impl std::fmt::Debug for DescribeAutoMLJobInput { +impl std::fmt::Debug for DescribeAutoMlJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutoMLJobInput"); + let mut formatter = f.debug_struct("DescribeAutoMlJobInput"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.finish() } @@ -46576,17 +49403,17 @@ impl std::fmt::Debug for CreateCodeRepositoryInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAutoMLJobInput { +pub struct CreateAutoMlJobInput { ///

                              Identifies an Autopilot job. The name must be unique to your account and is /// case-insensitive.

                              pub auto_ml_job_name: std::option::Option, ///

                              An array of channel objects that describes the input data and its location. Each channel /// is a named input source. Similar to InputDataConfig supported by . Format(s) supported: CSV. Minimum /// of 500 rows.

                              - pub input_data_config: std::option::Option>, + pub input_data_config: std::option::Option>, ///

                              Provides information about encryption and the Amazon S3 output path needed to store /// artifacts from an AutoML job. Format(s) supported: CSV.

                              - pub output_data_config: std::option::Option, + pub output_data_config: std::option::Option, ///

                              Defines the type of supervised learning available for the candidates. Options include: /// BinaryClassification, MulticlassClassification, and /// Regression. For more information, see @@ -46595,10 +49422,10 @@ pub struct CreateAutoMLJobInput { ///

                              Defines the objective metric used to measure the predictive quality of an AutoML job. /// You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to /// minimize or maximize it.

                              - pub auto_ml_job_objective: std::option::Option, + pub auto_ml_job_objective: std::option::Option, ///

                              Contains CompletionCriteria and SecurityConfig settings for /// the AutoML job.

                              - pub auto_ml_job_config: std::option::Option, + pub auto_ml_job_config: std::option::Option, ///

                              The ARN of the role that is used to access the data.

                              pub role_arn: std::option::Option, ///

                              Generates possible candidates without training the models. A candidate is a combination @@ -46611,9 +49438,9 @@ pub struct CreateAutoMLJobInput { /// deployment.

                              pub model_deploy_config: std::option::Option, } -impl std::fmt::Debug for CreateAutoMLJobInput { +impl std::fmt::Debug for CreateAutoMlJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAutoMLJobInput"); + let mut formatter = f.debug_struct("CreateAutoMlJobInput"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.field("input_data_config", &self.input_data_config); formatter.field("output_data_config", &self.output_data_config); diff --git a/sdk/sagemaker/src/instant_epoch.rs b/sdk/sagemaker/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/sagemaker/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/sagemaker/src/json_deser.rs b/sdk/sagemaker/src/json_deser.rs index 0b9fe8569ed6..0f5f4280f455 100644 --- a/sdk/sagemaker/src/json_deser.rs +++ b/sdk/sagemaker/src/json_deser.rs @@ -1,3722 +1,38387 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn add_association_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_resource_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::resource_limit_exceeded::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_foundjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_add_association( input: &[u8], mut builder: crate::output::add_association_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::AddAssociationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_source_arn(parsed_body.source_arn); - builder = builder.set_destination_arn(parsed_body.destination_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationArn" => { + builder = builder.set_destination_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn add_tags_deser_operation( +pub fn deser_operation_add_tags( input: &[u8], mut builder: crate::output::add_tags_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::AddTagsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn associate_trial_component_deser_operation( +pub fn deser_operation_associate_trial_component( input: &[u8], mut builder: crate::output::associate_trial_component_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::AssociateTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); - builder = builder.set_trial_arn(parsed_body.trial_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_action_deser_operation( +pub fn deser_operation_create_action( input: &[u8], mut builder: crate::output::create_action_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateActionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_action_arn(parsed_body.action_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionArn" => { + builder = builder.set_action_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_algorithm_deser_operation( +pub fn deser_operation_create_algorithm( input: &[u8], mut builder: crate::output::create_algorithm_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAlgorithmOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_algorithm_arn(parsed_body.algorithm_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AlgorithmArn" => { + builder = builder.set_algorithm_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_in_usejson_err( + input: &[u8], + mut builder: crate::error::resource_in_use::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_app_deser_operation( +pub fn deser_operation_create_app( input: &[u8], mut builder: crate::output::create_app_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAppOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_app_arn(parsed_body.app_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppArn" => { + builder = builder.set_app_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_app_image_config_deser_operation( +pub fn deser_operation_create_app_image_config( input: &[u8], mut builder: crate::output::create_app_image_config_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateAppImageConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_app_image_config_arn(parsed_body.app_image_config_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppImageConfigArn" => { + builder = builder.set_app_image_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_artifact_deser_operation( +pub fn deser_operation_create_artifact( input: &[u8], mut builder: crate::output::create_artifact_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateArtifactOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_artifact_arn(parsed_body.artifact_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactArn" => { + builder = builder.set_artifact_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_auto_ml_job_deser_operation( +pub fn deser_operation_create_auto_ml_job( input: &[u8], mut builder: crate::output::create_auto_ml_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAutoMLJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_auto_ml_job_arn(parsed_body.auto_ml_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_code_repository_deser_operation( +pub fn deser_operation_create_code_repository( input: &[u8], mut builder: crate::output::create_code_repository_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateCodeRepositoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_repository_arn(parsed_body.code_repository_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeRepositoryArn" => { + builder = builder.set_code_repository_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_compilation_job_deser_operation( +pub fn deser_operation_create_compilation_job( input: &[u8], mut builder: crate::output::create_compilation_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateCompilationJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compilation_job_arn(parsed_body.compilation_job_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompilationJobArn" => { + builder = builder.set_compilation_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_context_deser_operation( +pub fn deser_operation_create_context( input: &[u8], mut builder: crate::output::create_context_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateContextOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_context_arn(parsed_body.context_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextArn" => { + builder = builder.set_context_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_data_quality_job_definition_deser_operation( +pub fn deser_operation_create_data_quality_job_definition( input: &[u8], mut builder: crate::output::create_data_quality_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_data_quality_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateDataQualityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_domain_deser_operation( +pub fn deser_operation_create_domain( input: &[u8], mut builder: crate::output::create_domain_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateDomainOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_arn(parsed_body.domain_arn); - builder = builder.set_url(parsed_body.url); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainArn" => { + builder = builder.set_domain_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_endpoint_deser_operation( +pub fn deser_operation_create_endpoint( input: &[u8], mut builder: crate::output::create_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_arn(parsed_body.endpoint_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_endpoint_config_deser_operation( +pub fn deser_operation_create_endpoint_config( input: &[u8], mut builder: crate::output::create_endpoint_config_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateEndpointConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_config_arn(parsed_body.endpoint_config_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointConfigArn" => { + builder = builder.set_endpoint_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_experiment_deser_operation( +pub fn deser_operation_create_experiment( input: &[u8], mut builder: crate::output::create_experiment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateExperimentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_experiment_arn(parsed_body.experiment_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_feature_group_deser_operation( +pub fn deser_operation_create_feature_group( input: &[u8], mut builder: crate::output::create_feature_group_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateFeatureGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_feature_group_arn(parsed_body.feature_group_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupArn" => { + builder = builder.set_feature_group_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_flow_definition_deser_operation( +pub fn deser_operation_create_flow_definition( input: &[u8], mut builder: crate::output::create_flow_definition_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateFlowDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_flow_definition_arn(parsed_body.flow_definition_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FlowDefinitionArn" => { + builder = builder.set_flow_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_human_task_ui_deser_operation( +pub fn deser_operation_create_human_task_ui( input: &[u8], mut builder: crate::output::create_human_task_ui_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateHumanTaskUiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_human_task_ui_arn(parsed_body.human_task_ui_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanTaskUiArn" => { + builder = builder.set_human_task_ui_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_hyper_parameter_tuning_job_deser_operation( +pub fn deser_operation_create_hyper_parameter_tuning_job( input: &[u8], mut builder: crate::output::create_hyper_parameter_tuning_job_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_hyper_parameter_tuning_job_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateHyperParameterTuningJobOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_hyper_parameter_tuning_job_arn(parsed_body.hyper_parameter_tuning_job_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HyperParameterTuningJobArn" => { + builder = builder.set_hyper_parameter_tuning_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_image_deser_operation( +pub fn deser_operation_create_image( input: &[u8], mut builder: crate::output::create_image_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateImageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_image_arn(parsed_body.image_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_image_version_deser_operation( +pub fn deser_operation_create_image_version( input: &[u8], mut builder: crate::output::create_image_version_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateImageVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_image_version_arn(parsed_body.image_version_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageVersionArn" => { + builder = builder.set_image_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_labeling_job_deser_operation( +pub fn deser_operation_create_labeling_job( input: &[u8], mut builder: crate::output::create_labeling_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateLabelingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_labeling_job_arn(parsed_body.labeling_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_deser_operation( +pub fn deser_operation_create_model( input: &[u8], mut builder: crate::output::create_model_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateModelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_arn(parsed_body.model_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelArn" => { + builder = builder.set_model_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_bias_job_definition_deser_operation( +pub fn deser_operation_create_model_bias_job_definition( input: &[u8], mut builder: crate::output::create_model_bias_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_model_bias_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateModelBiasJobDefinitionOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_explainability_job_definition_deser_operation( +pub fn deser_operation_create_model_explainability_job_definition( input: &[u8], mut builder: crate::output::create_model_explainability_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_model_explainability_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateModelExplainabilityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_conflict_exceptionjson_err( + input: &[u8], + mut builder: crate::error::conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_package_deser_operation( +pub fn deser_operation_create_model_package( input: &[u8], mut builder: crate::output::create_model_package_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateModelPackageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_arn(parsed_body.model_package_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageArn" => { + builder = builder.set_model_package_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_package_group_deser_operation( +pub fn deser_operation_create_model_package_group( input: &[u8], mut builder: crate::output::create_model_package_group_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::CreateModelPackageGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_group_arn(parsed_body.model_package_group_arn); +) -> Result< + crate::output::create_model_package_group_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupArn" => { + builder = builder.set_model_package_group_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_model_quality_job_definition_deser_operation( +pub fn deser_operation_create_model_quality_job_definition( input: &[u8], mut builder: crate::output::create_model_quality_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_model_quality_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateModelQualityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_monitoring_schedule_deser_operation( +pub fn deser_operation_create_monitoring_schedule( input: &[u8], mut builder: crate::output::create_monitoring_schedule_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::CreateMonitoringScheduleOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_monitoring_schedule_arn(parsed_body.monitoring_schedule_arn); +) -> Result< + crate::output::create_monitoring_schedule_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_notebook_instance_deser_operation( +pub fn deser_operation_create_notebook_instance( input: &[u8], mut builder: crate::output::create_notebook_instance_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::CreateNotebookInstanceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_notebook_instance_arn(parsed_body.notebook_instance_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceArn" => { + builder = builder.set_notebook_instance_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_notebook_instance_lifecycle_config_deser_operation( +pub fn deser_operation_create_notebook_instance_lifecycle_config( input: &[u8], mut builder: crate::output::create_notebook_instance_lifecycle_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_notebook_instance_lifecycle_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateNotebookInstanceLifecycleConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_notebook_instance_lifecycle_config_arn( - parsed_body.notebook_instance_lifecycle_config_arn, - ); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceLifecycleConfigArn" => { + builder = builder.set_notebook_instance_lifecycle_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_pipeline_deser_operation( +pub fn deser_operation_create_pipeline( input: &[u8], mut builder: crate::output::create_pipeline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreatePipelineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_arn(parsed_body.pipeline_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_presigned_domain_url_deser_operation( +pub fn deser_operation_create_presigned_domain_url( input: &[u8], mut builder: crate::output::create_presigned_domain_url_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_presigned_domain_url_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreatePresignedDomainUrlOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_authorized_url(parsed_body.authorized_url); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AuthorizedUrl" => { + builder = builder.set_authorized_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_presigned_notebook_instance_url_deser_operation( +pub fn deser_operation_create_presigned_notebook_instance_url( input: &[u8], mut builder: crate::output::create_presigned_notebook_instance_url_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_presigned_notebook_instance_url_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreatePresignedNotebookInstanceUrlOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_authorized_url(parsed_body.authorized_url); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AuthorizedUrl" => { + builder = builder.set_authorized_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_processing_job_deser_operation( +pub fn deser_operation_create_processing_job( input: &[u8], mut builder: crate::output::create_processing_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateProcessingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_processing_job_arn(parsed_body.processing_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingJobArn" => { + builder = builder.set_processing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_project_deser_operation( +pub fn deser_operation_create_project( input: &[u8], mut builder: crate::output::create_project_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateProjectOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_project_arn(parsed_body.project_arn); - builder = builder.set_project_id(parsed_body.project_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProjectArn" => { + builder = builder.set_project_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectId" => { + builder = builder.set_project_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_training_job_deser_operation( +pub fn deser_operation_create_training_job( input: &[u8], mut builder: crate::output::create_training_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTrainingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_training_job_arn(parsed_body.training_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_transform_job_deser_operation( +pub fn deser_operation_create_transform_job( input: &[u8], mut builder: crate::output::create_transform_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTransformJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transform_job_arn(parsed_body.transform_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransformJobArn" => { + builder = builder.set_transform_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_trial_deser_operation( +pub fn deser_operation_create_trial( input: &[u8], mut builder: crate::output::create_trial_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTrialOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_arn(parsed_body.trial_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_trial_component_deser_operation( +pub fn deser_operation_create_trial_component( input: &[u8], mut builder: crate::output::create_trial_component_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_user_profile_deser_operation( +pub fn deser_operation_create_user_profile( input: &[u8], mut builder: crate::output::create_user_profile_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateUserProfileOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_user_profile_arn(parsed_body.user_profile_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserProfileArn" => { + builder = builder.set_user_profile_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_workforce_deser_operation( +pub fn deser_operation_create_workforce( input: &[u8], mut builder: crate::output::create_workforce_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateWorkforceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workforce_arn(parsed_body.workforce_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkforceArn" => { + builder = builder.set_workforce_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_workteam_deser_operation( +pub fn deser_operation_create_workteam( input: &[u8], mut builder: crate::output::create_workteam_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateWorkteamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workteam_arn(parsed_body.workteam_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_action_deser_operation( +pub fn deser_operation_delete_action( input: &[u8], mut builder: crate::output::delete_action_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteActionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_action_arn(parsed_body.action_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionArn" => { + builder = builder.set_action_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_artifact_deser_operation( +pub fn deser_operation_delete_artifact( input: &[u8], mut builder: crate::output::delete_artifact_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteArtifactOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_artifact_arn(parsed_body.artifact_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactArn" => { + builder = builder.set_artifact_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_association_deser_operation( +pub fn deser_operation_delete_association( input: &[u8], mut builder: crate::output::delete_association_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteAssociationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_source_arn(parsed_body.source_arn); - builder = builder.set_destination_arn(parsed_body.destination_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationArn" => { + builder = builder.set_destination_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_context_deser_operation( +pub fn deser_operation_delete_context( input: &[u8], mut builder: crate::output::delete_context_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteContextOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_context_arn(parsed_body.context_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextArn" => { + builder = builder.set_context_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_experiment_deser_operation( +pub fn deser_operation_delete_experiment( input: &[u8], mut builder: crate::output::delete_experiment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteExperimentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_experiment_arn(parsed_body.experiment_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_pipeline_deser_operation( +pub fn deser_operation_delete_pipeline( input: &[u8], mut builder: crate::output::delete_pipeline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeletePipelineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_arn(parsed_body.pipeline_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_trial_deser_operation( +pub fn deser_operation_delete_trial( input: &[u8], mut builder: crate::output::delete_trial_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteTrialOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_arn(parsed_body.trial_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_trial_component_deser_operation( +pub fn deser_operation_delete_trial_component( input: &[u8], mut builder: crate::output::delete_trial_component_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_workteam_deser_operation( +pub fn deser_operation_delete_workteam( input: &[u8], mut builder: crate::output::delete_workteam_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteWorkteamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_success(Some(parsed_body.success)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Success" => { + builder = builder.set_success( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_action_deser_operation( +pub fn deser_operation_describe_action( input: &[u8], mut builder: crate::output::describe_action_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeActionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_action_name(parsed_body.action_name); - builder = builder.set_action_arn(parsed_body.action_arn); - builder = builder.set_source(parsed_body.source); - builder = builder.set_action_type(parsed_body.action_type); - builder = builder.set_description(parsed_body.description); - builder = builder.set_status(parsed_body.status); - builder = builder.set_properties(parsed_body.properties); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - builder = builder.set_metadata_properties(parsed_body.metadata_properties); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionName" => { + builder = builder.set_action_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActionArn" => { + builder = builder.set_action_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder + .set_source(crate::json_deser::deser_structure_action_source(tokens)?); + } + "ActionType" => { + builder = builder.set_action_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ActionStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Properties" => { + builder = builder.set_properties( + crate::json_deser::deser_map_lineage_entity_parameters(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_algorithm_deser_operation( +pub fn deser_operation_describe_algorithm( input: &[u8], mut builder: crate::output::describe_algorithm_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeAlgorithmOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_algorithm_name(parsed_body.algorithm_name); - builder = builder.set_algorithm_arn(parsed_body.algorithm_arn); - builder = builder.set_algorithm_description(parsed_body.algorithm_description); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_training_specification(parsed_body.training_specification); - builder = builder.set_inference_specification(parsed_body.inference_specification); - builder = builder.set_validation_specification(parsed_body.validation_specification); - builder = builder.set_algorithm_status(parsed_body.algorithm_status); - builder = builder.set_algorithm_status_details(parsed_body.algorithm_status_details); - builder = builder.set_product_id(parsed_body.product_id); - builder = builder.set_certify_for_marketplace(Some(parsed_body.certify_for_marketplace)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AlgorithmName" => { + builder = builder.set_algorithm_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmArn" => { + builder = builder.set_algorithm_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmDescription" => { + builder = builder.set_algorithm_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingSpecification" => { + builder = builder.set_training_specification( + crate::json_deser::deser_structure_training_specification(tokens)?, + ); + } + "InferenceSpecification" => { + builder = builder.set_inference_specification( + crate::json_deser::deser_structure_inference_specification(tokens)?, + ); + } + "ValidationSpecification" => { + builder = builder.set_validation_specification( + crate::json_deser::deser_structure_algorithm_validation_specification( + tokens, + )?, + ); + } + "AlgorithmStatus" => { + builder = builder.set_algorithm_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AlgorithmStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AlgorithmStatusDetails" => { + builder = builder.set_algorithm_status_details( + crate::json_deser::deser_structure_algorithm_status_details(tokens)?, + ); + } + "ProductId" => { + builder = builder.set_product_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CertifyForMarketplace" => { + builder = builder.set_certify_for_marketplace( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_app_deser_operation( +pub fn deser_operation_describe_app( input: &[u8], mut builder: crate::output::describe_app_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeAppOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_app_arn(parsed_body.app_arn); - builder = builder.set_app_type(parsed_body.app_type); - builder = builder.set_app_name(parsed_body.app_name); - builder = builder.set_domain_id(parsed_body.domain_id); - builder = builder.set_user_profile_name(parsed_body.user_profile_name); - builder = builder.set_status(parsed_body.status); - builder = builder.set_last_health_check_timestamp(parsed_body.last_health_check_timestamp); - builder = builder.set_last_user_activity_timestamp(parsed_body.last_user_activity_timestamp); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_resource_spec(parsed_body.resource_spec); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppArn" => { + builder = builder.set_app_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppType" => { + builder = builder.set_app_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AppType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AppName" => { + builder = builder.set_app_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileName" => { + builder = builder.set_user_profile_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AppStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastHealthCheckTimestamp" => { + builder = builder.set_last_health_check_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastUserActivityTimestamp" => { + builder = builder.set_last_user_activity_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceSpec" => { + builder = builder.set_resource_spec( + crate::json_deser::deser_structure_resource_spec(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_app_image_config_deser_operation( +pub fn deser_operation_describe_app_image_config( input: &[u8], mut builder: crate::output::describe_app_image_config_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeAppImageConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_app_image_config_arn(parsed_body.app_image_config_arn); - builder = builder.set_app_image_config_name(parsed_body.app_image_config_name); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_kernel_gateway_image_config(parsed_body.kernel_gateway_image_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppImageConfigArn" => { + builder = builder.set_app_image_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppImageConfigName" => { + builder = builder.set_app_image_config_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "KernelGatewayImageConfig" => { + builder = builder.set_kernel_gateway_image_config( + crate::json_deser::deser_structure_kernel_gateway_image_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_artifact_deser_operation( +pub fn deser_operation_describe_artifact( input: &[u8], mut builder: crate::output::describe_artifact_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeArtifactOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_artifact_name(parsed_body.artifact_name); - builder = builder.set_artifact_arn(parsed_body.artifact_arn); - builder = builder.set_source(parsed_body.source); - builder = builder.set_artifact_type(parsed_body.artifact_type); - builder = builder.set_properties(parsed_body.properties); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - builder = builder.set_metadata_properties(parsed_body.metadata_properties); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactName" => { + builder = builder.set_artifact_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ArtifactArn" => { + builder = builder.set_artifact_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_artifact_source(tokens)?, + ); + } + "ArtifactType" => { + builder = builder.set_artifact_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Properties" => { + builder = builder.set_properties( + crate::json_deser::deser_map_lineage_entity_parameters(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_auto_ml_job_deser_operation( +pub fn deser_operation_describe_auto_ml_job( input: &[u8], mut builder: crate::output::describe_auto_ml_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeAutoMLJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_auto_ml_job_name(parsed_body.auto_ml_job_name); - builder = builder.set_auto_ml_job_arn(parsed_body.auto_ml_job_arn); - builder = builder.set_input_data_config(parsed_body.input_data_config); - builder = builder.set_output_data_config(parsed_body.output_data_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_auto_ml_job_objective(parsed_body.auto_ml_job_objective); - builder = builder.set_problem_type(parsed_body.problem_type); - builder = builder.set_auto_ml_job_config(parsed_body.auto_ml_job_config); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_end_time(parsed_body.end_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_partial_failure_reasons(parsed_body.partial_failure_reasons); - builder = builder.set_best_candidate(parsed_body.best_candidate); - builder = builder.set_auto_ml_job_status(parsed_body.auto_ml_job_status); - builder = builder.set_auto_ml_job_secondary_status(parsed_body.auto_ml_job_secondary_status); - builder = builder.set_generate_candidate_definitions_only(Some( - parsed_body.generate_candidate_definitions_only, - )); - builder = builder.set_auto_ml_job_artifacts(parsed_body.auto_ml_job_artifacts); - builder = builder.set_resolved_attributes(parsed_body.resolved_attributes); - builder = builder.set_model_deploy_config(parsed_body.model_deploy_config); - builder = builder.set_model_deploy_result(parsed_body.model_deploy_result); - Ok(builder) -} - -pub fn describe_code_repository_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoMLJobName" => { + builder = builder.set_auto_ml_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputDataConfig" => { + builder = builder.set_input_data_config( + crate::json_deser::deser_list_auto_ml_input_data_config(tokens)?, + ); + } + "OutputDataConfig" => { + builder = builder.set_output_data_config( + crate::json_deser::deser_structure_auto_ml_output_data_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobObjective" => { + builder = builder.set_auto_ml_job_objective( + crate::json_deser::deser_structure_auto_ml_job_objective(tokens)?, + ); + } + "ProblemType" => { + builder = builder.set_problem_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProblemType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AutoMLJobConfig" => { + builder = builder.set_auto_ml_job_config( + crate::json_deser::deser_structure_auto_ml_job_config(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PartialFailureReasons" => { + builder = builder.set_partial_failure_reasons( + crate::json_deser::deser_list_auto_ml_partial_failure_reasons(tokens)?, + ); + } + "BestCandidate" => { + builder = builder.set_best_candidate( + crate::json_deser::deser_structure_auto_ml_candidate(tokens)?, + ); + } + "AutoMLJobStatus" => { + builder = builder.set_auto_ml_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AutoMlJobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AutoMLJobSecondaryStatus" => { + builder = builder.set_auto_ml_job_secondary_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlJobSecondaryStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "GenerateCandidateDefinitionsOnly" => { + builder = builder.set_generate_candidate_definitions_only( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "AutoMLJobArtifacts" => { + builder = builder.set_auto_ml_job_artifacts( + crate::json_deser::deser_structure_auto_ml_job_artifacts(tokens)?, + ); + } + "ResolvedAttributes" => { + builder = builder.set_resolved_attributes( + crate::json_deser::deser_structure_resolved_attributes(tokens)?, + ); + } + "ModelDeployConfig" => { + builder = builder.set_model_deploy_config( + crate::json_deser::deser_structure_model_deploy_config(tokens)?, + ); + } + "ModelDeployResult" => { + builder = builder.set_model_deploy_result( + crate::json_deser::deser_structure_model_deploy_result(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_code_repository( input: &[u8], mut builder: crate::output::describe_code_repository_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeCodeRepositoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_repository_name(parsed_body.code_repository_name); - builder = builder.set_code_repository_arn(parsed_body.code_repository_arn); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_git_config(parsed_body.git_config); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeRepositoryName" => { + builder = builder.set_code_repository_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeRepositoryArn" => { + builder = builder.set_code_repository_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "GitConfig" => { + builder = builder + .set_git_config(crate::json_deser::deser_structure_git_config(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_compilation_job_deser_operation( +pub fn deser_operation_describe_compilation_job( input: &[u8], mut builder: crate::output::describe_compilation_job_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeCompilationJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compilation_job_name(parsed_body.compilation_job_name); - builder = builder.set_compilation_job_arn(parsed_body.compilation_job_arn); - builder = builder.set_compilation_job_status(parsed_body.compilation_job_status); - builder = builder.set_compilation_start_time(parsed_body.compilation_start_time); - builder = builder.set_compilation_end_time(parsed_body.compilation_end_time); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_model_artifacts(parsed_body.model_artifacts); - builder = builder.set_model_digests(parsed_body.model_digests); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_input_config(parsed_body.input_config); - builder = builder.set_output_config(parsed_body.output_config); - Ok(builder) -} - -pub fn describe_context_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompilationJobName" => { + builder = builder.set_compilation_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompilationJobArn" => { + builder = builder.set_compilation_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompilationJobStatus" => { + builder = builder.set_compilation_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CompilationJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CompilationStartTime" => { + builder = builder.set_compilation_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CompilationEndTime" => { + builder = builder.set_compilation_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_stopping_condition(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelArtifacts" => { + builder = builder.set_model_artifacts( + crate::json_deser::deser_structure_model_artifacts(tokens)?, + ); + } + "ModelDigests" => { + builder = builder.set_model_digests( + crate::json_deser::deser_structure_model_digests(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputConfig" => { + builder = builder.set_input_config( + crate::json_deser::deser_structure_input_config(tokens)?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_output_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_context( input: &[u8], mut builder: crate::output::describe_context_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeContextOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_context_name(parsed_body.context_name); - builder = builder.set_context_arn(parsed_body.context_arn); - builder = builder.set_source(parsed_body.source); - builder = builder.set_context_type(parsed_body.context_type); - builder = builder.set_description(parsed_body.description); - builder = builder.set_properties(parsed_body.properties); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextName" => { + builder = builder.set_context_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContextArn" => { + builder = builder.set_context_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder + .set_source(crate::json_deser::deser_structure_context_source(tokens)?); + } + "ContextType" => { + builder = builder.set_context_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Properties" => { + builder = builder.set_properties( + crate::json_deser::deser_map_lineage_entity_parameters(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_data_quality_job_definition_deser_operation( +pub fn deser_operation_describe_data_quality_job_definition( input: &[u8], mut builder: crate::output::describe_data_quality_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_data_quality_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeDataQualityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); - builder = builder.set_job_definition_name(parsed_body.job_definition_name); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_data_quality_baseline_config(parsed_body.data_quality_baseline_config); - builder = - builder.set_data_quality_app_specification(parsed_body.data_quality_app_specification); - builder = builder.set_data_quality_job_input(parsed_body.data_quality_job_input); - builder = - builder.set_data_quality_job_output_config(parsed_body.data_quality_job_output_config); - builder = builder.set_job_resources(parsed_body.job_resources); - builder = builder.set_network_config(parsed_body.network_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - Ok(builder) -} - -pub fn describe_device_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DataQualityBaselineConfig" => { + builder = builder.set_data_quality_baseline_config( + crate::json_deser::deser_structure_data_quality_baseline_config( + tokens, + )?, + ); + } + "DataQualityAppSpecification" => { + builder = builder.set_data_quality_app_specification( + crate::json_deser::deser_structure_data_quality_app_specification( + tokens, + )?, + ); + } + "DataQualityJobInput" => { + builder = builder.set_data_quality_job_input( + crate::json_deser::deser_structure_data_quality_job_input(tokens)?, + ); + } + "DataQualityJobOutputConfig" => { + builder = builder.set_data_quality_job_output_config( + crate::json_deser::deser_structure_monitoring_output_config(tokens)?, + ); + } + "JobResources" => { + builder = builder.set_job_resources( + crate::json_deser::deser_structure_monitoring_resources(tokens)?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_monitoring_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_monitoring_stopping_condition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_device( input: &[u8], mut builder: crate::output::describe_device_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeDeviceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_arn(parsed_body.device_arn); - builder = builder.set_device_name(parsed_body.device_name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_device_fleet_name(parsed_body.device_fleet_name); - builder = builder.set_iot_thing_name(parsed_body.iot_thing_name); - builder = builder.set_registration_time(parsed_body.registration_time); - builder = builder.set_latest_heartbeat(parsed_body.latest_heartbeat); - builder = builder.set_models(parsed_body.models); - builder = builder.set_max_models(Some(parsed_body.max_models)); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceArn" => { + builder = builder.set_device_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceName" => { + builder = builder.set_device_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceFleetName" => { + builder = builder.set_device_fleet_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IotThingName" => { + builder = builder.set_iot_thing_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RegistrationTime" => { + builder = builder.set_registration_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LatestHeartbeat" => { + builder = builder.set_latest_heartbeat( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Models" => { + builder = + builder.set_models(crate::json_deser::deser_list_edge_models(tokens)?); + } + "MaxModels" => { + builder = builder.set_max_models( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_device_fleet_deser_operation( +pub fn deser_operation_describe_device_fleet( input: &[u8], mut builder: crate::output::describe_device_fleet_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeDeviceFleetOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_fleet_name(parsed_body.device_fleet_name); - builder = builder.set_device_fleet_arn(parsed_body.device_fleet_arn); - builder = builder.set_output_config(parsed_body.output_config); - builder = builder.set_description(parsed_body.description); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_iot_role_alias(parsed_body.iot_role_alias); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceFleetName" => { + builder = builder.set_device_fleet_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceFleetArn" => { + builder = builder.set_device_fleet_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_edge_output_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IotRoleAlias" => { + builder = builder.set_iot_role_alias( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_domain_deser_operation( +pub fn deser_operation_describe_domain( input: &[u8], mut builder: crate::output::describe_domain_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeDomainOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_arn(parsed_body.domain_arn); - builder = builder.set_domain_id(parsed_body.domain_id); - builder = builder.set_domain_name(parsed_body.domain_name); - builder = builder.set_home_efs_file_system_id(parsed_body.home_efs_file_system_id); - builder = builder.set_single_sign_on_managed_application_instance_id( - parsed_body.single_sign_on_managed_application_instance_id, - ); - builder = builder.set_status(parsed_body.status); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_auth_mode(parsed_body.auth_mode); - builder = builder.set_default_user_settings(parsed_body.default_user_settings); - builder = builder.set_app_network_access_type(parsed_body.app_network_access_type); - builder = - builder.set_home_efs_file_system_kms_key_id(parsed_body.home_efs_file_system_kms_key_id); - builder = builder.set_subnet_ids(parsed_body.subnet_ids); - builder = builder.set_url(parsed_body.url); - builder = builder.set_vpc_id(parsed_body.vpc_id); - builder = builder.set_kms_key_id(parsed_body.kms_key_id); - Ok(builder) -} - -pub fn describe_edge_packaging_job_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainArn" => { + builder = builder.set_domain_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HomeEfsFileSystemId" => { + builder = builder.set_home_efs_file_system_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SingleSignOnManagedApplicationInstanceId" => { + builder = builder.set_single_sign_on_managed_application_instance_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DomainStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AuthMode" => { + builder = builder.set_auth_mode( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AuthMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "DefaultUserSettings" => { + builder = builder.set_default_user_settings( + crate::json_deser::deser_structure_user_settings(tokens)?, + ); + } + "AppNetworkAccessType" => { + builder = builder.set_app_network_access_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AppNetworkAccessType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "HomeEfsFileSystemKmsKeyId" => { + builder = builder.set_home_efs_file_system_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SubnetIds" => { + builder = + builder.set_subnet_ids(crate::json_deser::deser_list_subnets(tokens)?); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcId" => { + builder = builder.set_vpc_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_edge_packaging_job( input: &[u8], mut builder: crate::output::describe_edge_packaging_job_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_edge_packaging_job_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeEdgePackagingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_edge_packaging_job_arn(parsed_body.edge_packaging_job_arn); - builder = builder.set_edge_packaging_job_name(parsed_body.edge_packaging_job_name); - builder = builder.set_compilation_job_name(parsed_body.compilation_job_name); - builder = builder.set_model_name(parsed_body.model_name); - builder = builder.set_model_version(parsed_body.model_version); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_output_config(parsed_body.output_config); - builder = builder.set_resource_key(parsed_body.resource_key); - builder = builder.set_edge_packaging_job_status(parsed_body.edge_packaging_job_status); - builder = builder - .set_edge_packaging_job_status_message(parsed_body.edge_packaging_job_status_message); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_model_artifact(parsed_body.model_artifact); - builder = builder.set_model_signature(parsed_body.model_signature); - builder = builder.set_preset_deployment_output(parsed_body.preset_deployment_output); - Ok(builder) -} - -pub fn describe_endpoint_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EdgePackagingJobArn" => { + builder = builder.set_edge_packaging_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EdgePackagingJobName" => { + builder = builder.set_edge_packaging_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompilationJobName" => { + builder = builder.set_compilation_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelVersion" => { + builder = builder.set_model_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_edge_output_config(tokens)?, + ); + } + "ResourceKey" => { + builder = builder.set_resource_key( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EdgePackagingJobStatus" => { + builder = builder.set_edge_packaging_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EdgePackagingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "EdgePackagingJobStatusMessage" => { + builder = builder.set_edge_packaging_job_status_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelArtifact" => { + builder = builder.set_model_artifact( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelSignature" => { + builder = builder.set_model_signature( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PresetDeploymentOutput" => { + builder = builder.set_preset_deployment_output( + crate::json_deser::deser_structure_edge_preset_deployment_output( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_endpoint( input: &[u8], mut builder: crate::output::describe_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_name(parsed_body.endpoint_name); - builder = builder.set_endpoint_arn(parsed_body.endpoint_arn); - builder = builder.set_endpoint_config_name(parsed_body.endpoint_config_name); - builder = builder.set_production_variants(parsed_body.production_variants); - builder = builder.set_data_capture_config(parsed_body.data_capture_config); - builder = builder.set_endpoint_status(parsed_body.endpoint_status); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_deployment_config(parsed_body.last_deployment_config); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointConfigName" => { + builder = builder.set_endpoint_config_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductionVariants" => { + builder = builder.set_production_variants( + crate::json_deser::deser_list_production_variant_summary_list(tokens)?, + ); + } + "DataCaptureConfig" => { + builder = builder.set_data_capture_config( + crate::json_deser::deser_structure_data_capture_config_summary(tokens)?, + ); + } + "EndpointStatus" => { + builder = builder.set_endpoint_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EndpointStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastDeploymentConfig" => { + builder = builder.set_last_deployment_config( + crate::json_deser::deser_structure_deployment_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_endpoint_config_deser_operation( +pub fn deser_operation_describe_endpoint_config( input: &[u8], mut builder: crate::output::describe_endpoint_config_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeEndpointConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_config_name(parsed_body.endpoint_config_name); - builder = builder.set_endpoint_config_arn(parsed_body.endpoint_config_arn); - builder = builder.set_production_variants(parsed_body.production_variants); - builder = builder.set_data_capture_config(parsed_body.data_capture_config); - builder = builder.set_kms_key_id(parsed_body.kms_key_id); - builder = builder.set_creation_time(parsed_body.creation_time); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointConfigName" => { + builder = builder.set_endpoint_config_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointConfigArn" => { + builder = builder.set_endpoint_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductionVariants" => { + builder = builder.set_production_variants( + crate::json_deser::deser_list_production_variant_list(tokens)?, + ); + } + "DataCaptureConfig" => { + builder = builder.set_data_capture_config( + crate::json_deser::deser_structure_data_capture_config(tokens)?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_experiment_deser_operation( +pub fn deser_operation_describe_experiment( input: &[u8], mut builder: crate::output::describe_experiment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeExperimentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_experiment_name(parsed_body.experiment_name); - builder = builder.set_experiment_arn(parsed_body.experiment_arn); - builder = builder.set_display_name(parsed_body.display_name); - builder = builder.set_source(parsed_body.source); - builder = builder.set_description(parsed_body.description); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_experiment_source(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_feature_group_deser_operation( +pub fn deser_operation_describe_feature_group( input: &[u8], mut builder: crate::output::describe_feature_group_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeFeatureGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_feature_group_arn(parsed_body.feature_group_arn); - builder = builder.set_feature_group_name(parsed_body.feature_group_name); - builder = - builder.set_record_identifier_feature_name(parsed_body.record_identifier_feature_name); - builder = builder.set_event_time_feature_name(parsed_body.event_time_feature_name); - builder = builder.set_feature_definitions(parsed_body.feature_definitions); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_online_store_config(parsed_body.online_store_config); - builder = builder.set_offline_store_config(parsed_body.offline_store_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_feature_group_status(parsed_body.feature_group_status); - builder = builder.set_offline_store_status(parsed_body.offline_store_status); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_description(parsed_body.description); - builder = builder.set_next_token(parsed_body.next_token); - Ok(builder) -} - -pub fn describe_flow_definition_deser_operation( +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupArn" => { + builder = builder.set_feature_group_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RecordIdentifierFeatureName" => { + builder = builder.set_record_identifier_feature_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EventTimeFeatureName" => { + builder = builder.set_event_time_feature_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureDefinitions" => { + builder = builder.set_feature_definitions( + crate::json_deser::deser_list_feature_definitions(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OnlineStoreConfig" => { + builder = builder.set_online_store_config( + crate::json_deser::deser_structure_online_store_config(tokens)?, + ); + } + "OfflineStoreConfig" => { + builder = builder.set_offline_store_config( + crate::json_deser::deser_structure_offline_store_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureGroupStatus" => { + builder = builder.set_feature_group_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FeatureGroupStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "OfflineStoreStatus" => { + builder = builder.set_offline_store_status( + crate::json_deser::deser_structure_offline_store_status(tokens)?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_flow_definition( input: &[u8], mut builder: crate::output::describe_flow_definition_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeFlowDefinitionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_flow_definition_arn(parsed_body.flow_definition_arn); - builder = builder.set_flow_definition_name(parsed_body.flow_definition_name); - builder = builder.set_flow_definition_status(parsed_body.flow_definition_status); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_human_loop_request_source(parsed_body.human_loop_request_source); - builder = builder.set_human_loop_activation_config(parsed_body.human_loop_activation_config); - builder = builder.set_human_loop_config(parsed_body.human_loop_config); - builder = builder.set_output_config(parsed_body.output_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_failure_reason(parsed_body.failure_reason); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FlowDefinitionArn" => { + builder = builder.set_flow_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionName" => { + builder = builder.set_flow_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionStatus" => { + builder = builder.set_flow_definition_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FlowDefinitionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "HumanLoopRequestSource" => { + builder = builder.set_human_loop_request_source( + crate::json_deser::deser_structure_human_loop_request_source(tokens)?, + ); + } + "HumanLoopActivationConfig" => { + builder = builder.set_human_loop_activation_config( + crate::json_deser::deser_structure_human_loop_activation_config( + tokens, + )?, + ); + } + "HumanLoopConfig" => { + builder = builder.set_human_loop_config( + crate::json_deser::deser_structure_human_loop_config(tokens)?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_flow_definition_output_config( + tokens, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_human_task_ui_deser_operation( +pub fn deser_operation_describe_human_task_ui( input: &[u8], mut builder: crate::output::describe_human_task_ui_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeHumanTaskUiOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_human_task_ui_arn(parsed_body.human_task_ui_arn); - builder = builder.set_human_task_ui_name(parsed_body.human_task_ui_name); - builder = builder.set_human_task_ui_status(parsed_body.human_task_ui_status); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_ui_template(parsed_body.ui_template); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanTaskUiArn" => { + builder = builder.set_human_task_ui_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanTaskUiName" => { + builder = builder.set_human_task_ui_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanTaskUiStatus" => { + builder = builder.set_human_task_ui_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HumanTaskUiStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "UiTemplate" => { + builder = builder.set_ui_template( + crate::json_deser::deser_structure_ui_template_info(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_hyper_parameter_tuning_job_deser_operation( +pub fn deser_operation_describe_hyper_parameter_tuning_job( input: &[u8], mut builder: crate::output::describe_hyper_parameter_tuning_job_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_hyper_parameter_tuning_job_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeHyperParameterTuningJobOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_hyper_parameter_tuning_job_name(parsed_body.hyper_parameter_tuning_job_name); - builder = - builder.set_hyper_parameter_tuning_job_arn(parsed_body.hyper_parameter_tuning_job_arn); - builder = builder - .set_hyper_parameter_tuning_job_config(parsed_body.hyper_parameter_tuning_job_config); - builder = builder.set_training_job_definition(parsed_body.training_job_definition); - builder = builder.set_training_job_definitions(parsed_body.training_job_definitions); - builder = builder - .set_hyper_parameter_tuning_job_status(parsed_body.hyper_parameter_tuning_job_status); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = - builder.set_hyper_parameter_tuning_end_time(parsed_body.hyper_parameter_tuning_end_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_training_job_status_counters(parsed_body.training_job_status_counters); - builder = builder.set_objective_status_counters(parsed_body.objective_status_counters); - builder = builder.set_best_training_job(parsed_body.best_training_job); - builder = builder.set_overall_best_training_job(parsed_body.overall_best_training_job); - builder = builder.set_warm_start_config(parsed_body.warm_start_config); - builder = builder.set_failure_reason(parsed_body.failure_reason); - Ok(builder) -} - -pub fn describe_image_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HyperParameterTuningJobName" => { + builder = builder.set_hyper_parameter_tuning_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameterTuningJobArn" => { + builder = builder.set_hyper_parameter_tuning_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameterTuningJobConfig" => { + builder = builder.set_hyper_parameter_tuning_job_config( + crate::json_deser::deser_structure_hyper_parameter_tuning_job_config( + tokens, + )?, + ); + } + "TrainingJobDefinition" => { + builder = builder.set_training_job_definition( + crate::json_deser::deser_structure_hyper_parameter_training_job_definition(tokens)? + ); + } + "TrainingJobDefinitions" => { + builder = builder.set_training_job_definitions( + crate::json_deser::deser_list_hyper_parameter_training_job_definitions( + tokens, + )?, + ); + } + "HyperParameterTuningJobStatus" => { + builder = builder.set_hyper_parameter_tuning_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterTuningJobStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "HyperParameterTuningEndTime" => { + builder = builder.set_hyper_parameter_tuning_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingJobStatusCounters" => { + builder = builder.set_training_job_status_counters( + crate::json_deser::deser_structure_training_job_status_counters( + tokens, + )?, + ); + } + "ObjectiveStatusCounters" => { + builder = builder.set_objective_status_counters( + crate::json_deser::deser_structure_objective_status_counters(tokens)?, + ); + } + "BestTrainingJob" => { + builder = builder.set_best_training_job( + crate::json_deser::deser_structure_hyper_parameter_training_job_summary(tokens)? + ); + } + "OverallBestTrainingJob" => { + builder = builder.set_overall_best_training_job( + crate::json_deser::deser_structure_hyper_parameter_training_job_summary(tokens)? + ); + } + "WarmStartConfig" => { + builder = builder.set_warm_start_config( + crate::json_deser::deser_structure_hyper_parameter_tuning_job_warm_start_config(tokens)? + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_image( input: &[u8], mut builder: crate::output::describe_image_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeImageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_description(parsed_body.description); - builder = builder.set_display_name(parsed_body.display_name); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_image_arn(parsed_body.image_arn); - builder = builder.set_image_name(parsed_body.image_name); - builder = builder.set_image_status(parsed_body.image_status); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_role_arn(parsed_body.role_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageName" => { + builder = builder.set_image_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageStatus" => { + builder = builder.set_image_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ImageStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_image_version_deser_operation( +pub fn deser_operation_describe_image_version( input: &[u8], mut builder: crate::output::describe_image_version_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeImageVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_base_image(parsed_body.base_image); - builder = builder.set_container_image(parsed_body.container_image); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_image_arn(parsed_body.image_arn); - builder = builder.set_image_version_arn(parsed_body.image_version_arn); - builder = builder.set_image_version_status(parsed_body.image_version_status); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_version(parsed_body.version); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseImage" => { + builder = builder.set_base_image( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContainerImage" => { + builder = builder.set_container_image( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageVersionArn" => { + builder = builder.set_image_version_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageVersionStatus" => { + builder = builder.set_image_version_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ImageVersionStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_labeling_job_deser_operation( +pub fn deser_operation_describe_labeling_job( input: &[u8], mut builder: crate::output::describe_labeling_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeLabelingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_labeling_job_status(parsed_body.labeling_job_status); - builder = builder.set_label_counters(parsed_body.label_counters); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_job_reference_code(parsed_body.job_reference_code); - builder = builder.set_labeling_job_name(parsed_body.labeling_job_name); - builder = builder.set_labeling_job_arn(parsed_body.labeling_job_arn); - builder = builder.set_label_attribute_name(parsed_body.label_attribute_name); - builder = builder.set_input_config(parsed_body.input_config); - builder = builder.set_output_config(parsed_body.output_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_label_category_config_s3_uri(parsed_body.label_category_config_s3_uri); - builder = builder.set_stopping_conditions(parsed_body.stopping_conditions); - builder = - builder.set_labeling_job_algorithms_config(parsed_body.labeling_job_algorithms_config); - builder = builder.set_human_task_config(parsed_body.human_task_config); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_labeling_job_output(parsed_body.labeling_job_output); - Ok(builder) -} - -pub fn describe_model_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobStatus" => { + builder = builder.set_labeling_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::LabelingJobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LabelCounters" => { + builder = builder.set_label_counters( + crate::json_deser::deser_structure_label_counters(tokens)?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "JobReferenceCode" => { + builder = builder.set_job_reference_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobName" => { + builder = builder.set_labeling_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelAttributeName" => { + builder = builder.set_label_attribute_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputConfig" => { + builder = builder.set_input_config( + crate::json_deser::deser_structure_labeling_job_input_config(tokens)?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_labeling_job_output_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelCategoryConfigS3Uri" => { + builder = builder.set_label_category_config_s3_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StoppingConditions" => { + builder = builder.set_stopping_conditions( + crate::json_deser::deser_structure_labeling_job_stopping_conditions( + tokens, + )?, + ); + } + "LabelingJobAlgorithmsConfig" => { + builder = builder.set_labeling_job_algorithms_config( + crate::json_deser::deser_structure_labeling_job_algorithms_config( + tokens, + )?, + ); + } + "HumanTaskConfig" => { + builder = builder.set_human_task_config( + crate::json_deser::deser_structure_human_task_config(tokens)?, + ); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "LabelingJobOutput" => { + builder = builder.set_labeling_job_output( + crate::json_deser::deser_structure_labeling_job_output(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_model( input: &[u8], mut builder: crate::output::describe_model_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeModelOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_name(parsed_body.model_name); - builder = builder.set_primary_container(parsed_body.primary_container); - builder = builder.set_containers(parsed_body.containers); - builder = builder.set_inference_execution_config(parsed_body.inference_execution_config); - builder = builder.set_execution_role_arn(parsed_body.execution_role_arn); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_model_arn(parsed_body.model_arn); - builder = builder.set_enable_network_isolation(Some(parsed_body.enable_network_isolation)); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PrimaryContainer" => { + builder = builder.set_primary_container( + crate::json_deser::deser_structure_container_definition(tokens)?, + ); + } + "Containers" => { + builder = builder.set_containers( + crate::json_deser::deser_list_container_definition_list(tokens)?, + ); + } + "InferenceExecutionConfig" => { + builder = builder.set_inference_execution_config( + crate::json_deser::deser_structure_inference_execution_config(tokens)?, + ); + } + "ExecutionRoleArn" => { + builder = builder.set_execution_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VpcConfig" => { + builder = builder + .set_vpc_config(crate::json_deser::deser_structure_vpc_config(tokens)?); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelArn" => { + builder = builder.set_model_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_model_bias_job_definition_deser_operation( +pub fn deser_operation_describe_model_bias_job_definition( input: &[u8], mut builder: crate::output::describe_model_bias_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_model_bias_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeModelBiasJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); - builder = builder.set_job_definition_name(parsed_body.job_definition_name); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_model_bias_baseline_config(parsed_body.model_bias_baseline_config); - builder = builder.set_model_bias_app_specification(parsed_body.model_bias_app_specification); - builder = builder.set_model_bias_job_input(parsed_body.model_bias_job_input); - builder = builder.set_model_bias_job_output_config(parsed_body.model_bias_job_output_config); - builder = builder.set_job_resources(parsed_body.job_resources); - builder = builder.set_network_config(parsed_body.network_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - Ok(builder) -} - -pub fn describe_model_explainability_job_definition_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelBiasBaselineConfig" => { + builder = builder.set_model_bias_baseline_config( + crate::json_deser::deser_structure_model_bias_baseline_config(tokens)?, + ); + } + "ModelBiasAppSpecification" => { + builder = builder.set_model_bias_app_specification( + crate::json_deser::deser_structure_model_bias_app_specification( + tokens, + )?, + ); + } + "ModelBiasJobInput" => { + builder = builder.set_model_bias_job_input( + crate::json_deser::deser_structure_model_bias_job_input(tokens)?, + ); + } + "ModelBiasJobOutputConfig" => { + builder = builder.set_model_bias_job_output_config( + crate::json_deser::deser_structure_monitoring_output_config(tokens)?, + ); + } + "JobResources" => { + builder = builder.set_job_resources( + crate::json_deser::deser_structure_monitoring_resources(tokens)?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_monitoring_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_monitoring_stopping_condition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_model_explainability_job_definition( input: &[u8], mut builder: crate::output::describe_model_explainability_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_model_explainability_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeModelExplainabilityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); - builder = builder.set_job_definition_name(parsed_body.job_definition_name); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder - .set_model_explainability_baseline_config(parsed_body.model_explainability_baseline_config); - builder = builder.set_model_explainability_app_specification( - parsed_body.model_explainability_app_specification, - ); - builder = - builder.set_model_explainability_job_input(parsed_body.model_explainability_job_input); - builder = builder.set_model_explainability_job_output_config( - parsed_body.model_explainability_job_output_config, - ); - builder = builder.set_job_resources(parsed_body.job_resources); - builder = builder.set_network_config(parsed_body.network_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - Ok(builder) -} - -pub fn describe_model_package_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelExplainabilityBaselineConfig" => { + builder = builder.set_model_explainability_baseline_config( + crate::json_deser::deser_structure_model_explainability_baseline_config(tokens)? + ); + } + "ModelExplainabilityAppSpecification" => { + builder = builder.set_model_explainability_app_specification( + crate::json_deser::deser_structure_model_explainability_app_specification(tokens)? + ); + } + "ModelExplainabilityJobInput" => { + builder = builder.set_model_explainability_job_input( + crate::json_deser::deser_structure_model_explainability_job_input( + tokens, + )?, + ); + } + "ModelExplainabilityJobOutputConfig" => { + builder = builder.set_model_explainability_job_output_config( + crate::json_deser::deser_structure_monitoring_output_config(tokens)?, + ); + } + "JobResources" => { + builder = builder.set_job_resources( + crate::json_deser::deser_structure_monitoring_resources(tokens)?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_monitoring_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_monitoring_stopping_condition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_model_package( input: &[u8], mut builder: crate::output::describe_model_package_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeModelPackageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_name(parsed_body.model_package_name); - builder = builder.set_model_package_group_name(parsed_body.model_package_group_name); - builder = builder.set_model_package_version(parsed_body.model_package_version); - builder = builder.set_model_package_arn(parsed_body.model_package_arn); - builder = builder.set_model_package_description(parsed_body.model_package_description); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_inference_specification(parsed_body.inference_specification); - builder = - builder.set_source_algorithm_specification(parsed_body.source_algorithm_specification); - builder = builder.set_validation_specification(parsed_body.validation_specification); - builder = builder.set_model_package_status(parsed_body.model_package_status); - builder = builder.set_model_package_status_details(parsed_body.model_package_status_details); - builder = builder.set_certify_for_marketplace(Some(parsed_body.certify_for_marketplace)); - builder = builder.set_model_approval_status(parsed_body.model_approval_status); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_metadata_properties(parsed_body.metadata_properties); - builder = builder.set_model_metrics(parsed_body.model_metrics); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - builder = builder.set_approval_description(parsed_body.approval_description); - Ok(builder) -} - -pub fn describe_model_package_group_deser_operation( +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageName" => { + builder = builder.set_model_package_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageVersion" => { + builder = builder.set_model_package_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ModelPackageArn" => { + builder = builder.set_model_package_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageDescription" => { + builder = builder.set_model_package_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "InferenceSpecification" => { + builder = builder.set_inference_specification( + crate::json_deser::deser_structure_inference_specification(tokens)?, + ); + } + "SourceAlgorithmSpecification" => { + builder = builder.set_source_algorithm_specification( + crate::json_deser::deser_structure_source_algorithm_specification( + tokens, + )?, + ); + } + "ValidationSpecification" => { + builder = builder.set_validation_specification( + crate::json_deser::deser_structure_model_package_validation_specification(tokens)? + ); + } + "ModelPackageStatus" => { + builder = builder.set_model_package_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ModelPackageStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ModelPackageStatusDetails" => { + builder = builder.set_model_package_status_details( + crate::json_deser::deser_structure_model_package_status_details( + tokens, + )?, + ); + } + "CertifyForMarketplace" => { + builder = builder.set_certify_for_marketplace( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "ModelApprovalStatus" => { + builder = builder.set_model_approval_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelApprovalStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + "ModelMetrics" => { + builder = builder.set_model_metrics( + crate::json_deser::deser_structure_model_metrics(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "ApprovalDescription" => { + builder = builder.set_approval_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_model_package_group( input: &[u8], mut builder: crate::output::describe_model_package_group_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_model_package_group_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeModelPackageGroupOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_group_name(parsed_body.model_package_group_name); - builder = builder.set_model_package_group_arn(parsed_body.model_package_group_arn); - builder = - builder.set_model_package_group_description(parsed_body.model_package_group_description); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_model_package_group_status(parsed_body.model_package_group_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupArn" => { + builder = builder.set_model_package_group_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupDescription" => { + builder = builder.set_model_package_group_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "ModelPackageGroupStatus" => { + builder = builder.set_model_package_group_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelPackageGroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_model_quality_job_definition_deser_operation( +pub fn deser_operation_describe_model_quality_job_definition( input: &[u8], mut builder: crate::output::describe_model_quality_job_definition_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_model_quality_job_definition_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeModelQualityJobDefinitionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_arn(parsed_body.job_definition_arn); - builder = builder.set_job_definition_name(parsed_body.job_definition_name); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_model_quality_baseline_config(parsed_body.model_quality_baseline_config); - builder = - builder.set_model_quality_app_specification(parsed_body.model_quality_app_specification); - builder = builder.set_model_quality_job_input(parsed_body.model_quality_job_input); - builder = - builder.set_model_quality_job_output_config(parsed_body.model_quality_job_output_config); - builder = builder.set_job_resources(parsed_body.job_resources); - builder = builder.set_network_config(parsed_body.network_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - Ok(builder) -} - -pub fn describe_monitoring_schedule_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionArn" => { + builder = builder.set_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobDefinitionName" => { + builder = builder.set_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelQualityBaselineConfig" => { + builder = builder.set_model_quality_baseline_config( + crate::json_deser::deser_structure_model_quality_baseline_config( + tokens, + )?, + ); + } + "ModelQualityAppSpecification" => { + builder = builder.set_model_quality_app_specification( + crate::json_deser::deser_structure_model_quality_app_specification( + tokens, + )?, + ); + } + "ModelQualityJobInput" => { + builder = builder.set_model_quality_job_input( + crate::json_deser::deser_structure_model_quality_job_input(tokens)?, + ); + } + "ModelQualityJobOutputConfig" => { + builder = builder.set_model_quality_job_output_config( + crate::json_deser::deser_structure_monitoring_output_config(tokens)?, + ); + } + "JobResources" => { + builder = builder.set_job_resources( + crate::json_deser::deser_structure_monitoring_resources(tokens)?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_monitoring_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_monitoring_stopping_condition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_monitoring_schedule( input: &[u8], mut builder: crate::output::describe_monitoring_schedule_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_monitoring_schedule_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMonitoringScheduleOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_monitoring_schedule_arn(parsed_body.monitoring_schedule_arn); - builder = builder.set_monitoring_schedule_name(parsed_body.monitoring_schedule_name); - builder = builder.set_monitoring_schedule_status(parsed_body.monitoring_schedule_status); - builder = builder.set_monitoring_type(parsed_body.monitoring_type); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_monitoring_schedule_config(parsed_body.monitoring_schedule_config); - builder = builder.set_endpoint_name(parsed_body.endpoint_name); - builder = builder - .set_last_monitoring_execution_summary(parsed_body.last_monitoring_execution_summary); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringScheduleName" => { + builder = builder.set_monitoring_schedule_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringScheduleStatus" => { + builder = builder.set_monitoring_schedule_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ScheduleStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "MonitoringType" => { + builder = builder.set_monitoring_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MonitoringType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringScheduleConfig" => { + builder = builder.set_monitoring_schedule_config( + crate::json_deser::deser_structure_monitoring_schedule_config(tokens)?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastMonitoringExecutionSummary" => { + builder = builder.set_last_monitoring_execution_summary( + crate::json_deser::deser_structure_monitoring_execution_summary( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_notebook_instance_deser_operation( +pub fn deser_operation_describe_notebook_instance( input: &[u8], mut builder: crate::output::describe_notebook_instance_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribeNotebookInstanceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_notebook_instance_arn(parsed_body.notebook_instance_arn); - builder = builder.set_notebook_instance_name(parsed_body.notebook_instance_name); - builder = builder.set_notebook_instance_status(parsed_body.notebook_instance_status); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_url(parsed_body.url); - builder = builder.set_instance_type(parsed_body.instance_type); - builder = builder.set_subnet_id(parsed_body.subnet_id); - builder = builder.set_security_groups(parsed_body.security_groups); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_kms_key_id(parsed_body.kms_key_id); - builder = builder.set_network_interface_id(parsed_body.network_interface_id); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_notebook_instance_lifecycle_config_name( - parsed_body.notebook_instance_lifecycle_config_name, - ); - builder = builder.set_direct_internet_access(parsed_body.direct_internet_access); - builder = builder.set_volume_size_in_gb(parsed_body.volume_size_in_gb); - builder = builder.set_accelerator_types(parsed_body.accelerator_types); - builder = builder.set_default_code_repository(parsed_body.default_code_repository); - builder = builder.set_additional_code_repositories(parsed_body.additional_code_repositories); - builder = builder.set_root_access(parsed_body.root_access); - Ok(builder) -} - -pub fn describe_notebook_instance_lifecycle_config_deser_operation( +) -> Result< + crate::output::describe_notebook_instance_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceArn" => { + builder = builder.set_notebook_instance_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceName" => { + builder = builder.set_notebook_instance_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceStatus" => { + builder = builder.set_notebook_instance_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NotebookInstanceStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InstanceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SubnetId" => { + builder = builder.set_subnet_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SecurityGroups" => { + builder = builder.set_security_groups( + crate::json_deser::deser_list_security_group_ids(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NetworkInterfaceId" => { + builder = builder.set_network_interface_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "NotebookInstanceLifecycleConfigName" => { + builder = builder.set_notebook_instance_lifecycle_config_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DirectInternetAccess" => { + builder = builder.set_direct_internet_access( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DirectInternetAccess::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "AcceleratorTypes" => { + builder = builder.set_accelerator_types( + crate::json_deser::deser_list_notebook_instance_accelerator_types( + tokens, + )?, + ); + } + "DefaultCodeRepository" => { + builder = builder.set_default_code_repository( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdditionalCodeRepositories" => { + builder = builder.set_additional_code_repositories( + crate::json_deser::deser_list_additional_code_repository_names_or_urls( + tokens, + )?, + ); + } + "RootAccess" => { + builder = builder.set_root_access( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::RootAccess::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_notebook_instance_lifecycle_config( input: &[u8], mut builder: crate::output::describe_notebook_instance_lifecycle_config_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_notebook_instance_lifecycle_config_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeNotebookInstanceLifecycleConfigOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_notebook_instance_lifecycle_config_arn( - parsed_body.notebook_instance_lifecycle_config_arn, - ); - builder = builder.set_notebook_instance_lifecycle_config_name( - parsed_body.notebook_instance_lifecycle_config_name, - ); - builder = builder.set_on_create(parsed_body.on_create); - builder = builder.set_on_start(parsed_body.on_start); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_creation_time(parsed_body.creation_time); - Ok(builder) -} - -pub fn describe_pipeline_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceLifecycleConfigArn" => { + builder = builder.set_notebook_instance_lifecycle_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceLifecycleConfigName" => { + builder = builder.set_notebook_instance_lifecycle_config_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OnCreate" => { + builder = builder.set_on_create( + crate::json_deser::deser_list_notebook_instance_lifecycle_config_list( + tokens, + )?, + ); + } + "OnStart" => { + builder = builder.set_on_start( + crate::json_deser::deser_list_notebook_instance_lifecycle_config_list( + tokens, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_pipeline( input: &[u8], mut builder: crate::output::describe_pipeline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribePipelineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_arn(parsed_body.pipeline_arn); - builder = builder.set_pipeline_name(parsed_body.pipeline_name); - builder = builder.set_pipeline_display_name(parsed_body.pipeline_display_name); - builder = builder.set_pipeline_definition(parsed_body.pipeline_definition); - builder = builder.set_pipeline_description(parsed_body.pipeline_description); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_pipeline_status(parsed_body.pipeline_status); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_run_time(parsed_body.last_run_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineName" => { + builder = builder.set_pipeline_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDisplayName" => { + builder = builder.set_pipeline_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDefinition" => { + builder = builder.set_pipeline_definition( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDescription" => { + builder = builder.set_pipeline_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineStatus" => { + builder = builder.set_pipeline_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PipelineStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastRunTime" => { + builder = builder.set_last_run_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_pipeline_definition_for_execution_deser_operation( +pub fn deser_operation_describe_pipeline_definition_for_execution( input: &[u8], mut builder: crate::output::describe_pipeline_definition_for_execution_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_pipeline_definition_for_execution_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribePipelineDefinitionForExecutionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_definition(parsed_body.pipeline_definition); - builder = builder.set_creation_time(parsed_body.creation_time); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineDefinition" => { + builder = builder.set_pipeline_definition( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_pipeline_execution_deser_operation( +pub fn deser_operation_describe_pipeline_execution( input: &[u8], mut builder: crate::output::describe_pipeline_execution_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_pipeline_execution_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribePipelineExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_arn(parsed_body.pipeline_arn); - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); - builder = - builder.set_pipeline_execution_display_name(parsed_body.pipeline_execution_display_name); - builder = builder.set_pipeline_execution_status(parsed_body.pipeline_execution_status); - builder = - builder.set_pipeline_execution_description(parsed_body.pipeline_execution_description); - builder = builder.set_pipeline_experiment_config(parsed_body.pipeline_experiment_config); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - Ok(builder) -} - -pub fn describe_processing_job_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionDisplayName" => { + builder = builder.set_pipeline_execution_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionStatus" => { + builder = builder.set_pipeline_execution_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PipelineExecutionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "PipelineExecutionDescription" => { + builder = builder.set_pipeline_execution_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExperimentConfig" => { + builder = builder.set_pipeline_experiment_config( + crate::json_deser::deser_structure_pipeline_experiment_config(tokens)?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_processing_job( input: &[u8], mut builder: crate::output::describe_processing_job_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeProcessingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_processing_inputs(parsed_body.processing_inputs); - builder = builder.set_processing_output_config(parsed_body.processing_output_config); - builder = builder.set_processing_job_name(parsed_body.processing_job_name); - builder = builder.set_processing_resources(parsed_body.processing_resources); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - builder = builder.set_app_specification(parsed_body.app_specification); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_network_config(parsed_body.network_config); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_experiment_config(parsed_body.experiment_config); - builder = builder.set_processing_job_arn(parsed_body.processing_job_arn); - builder = builder.set_processing_job_status(parsed_body.processing_job_status); - builder = builder.set_exit_message(parsed_body.exit_message); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_processing_end_time(parsed_body.processing_end_time); - builder = builder.set_processing_start_time(parsed_body.processing_start_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_monitoring_schedule_arn(parsed_body.monitoring_schedule_arn); - builder = builder.set_auto_ml_job_arn(parsed_body.auto_ml_job_arn); - builder = builder.set_training_job_arn(parsed_body.training_job_arn); - Ok(builder) -} - -pub fn describe_project_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingInputs" => { + builder = builder.set_processing_inputs( + crate::json_deser::deser_list_processing_inputs(tokens)?, + ); + } + "ProcessingOutputConfig" => { + builder = builder.set_processing_output_config( + crate::json_deser::deser_structure_processing_output_config(tokens)?, + ); + } + "ProcessingJobName" => { + builder = builder.set_processing_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingResources" => { + builder = builder.set_processing_resources( + crate::json_deser::deser_structure_processing_resources(tokens)?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_processing_stopping_condition( + tokens, + )?, + ); + } + "AppSpecification" => { + builder = builder.set_app_specification( + crate::json_deser::deser_structure_app_specification(tokens)?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_processing_environment_map(tokens)?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + "ProcessingJobArn" => { + builder = builder.set_processing_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingJobStatus" => { + builder = builder.set_processing_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ExitMessage" => { + builder = builder.set_exit_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingEndTime" => { + builder = builder.set_processing_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProcessingStartTime" => { + builder = builder.set_processing_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_project( input: &[u8], mut builder: crate::output::describe_project_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeProjectOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_project_arn(parsed_body.project_arn); - builder = builder.set_project_name(parsed_body.project_name); - builder = builder.set_project_id(parsed_body.project_id); - builder = builder.set_project_description(parsed_body.project_description); - builder = builder - .set_service_catalog_provisioning_details(parsed_body.service_catalog_provisioning_details); - builder = builder.set_service_catalog_provisioned_product_details( - parsed_body.service_catalog_provisioned_product_details, - ); - builder = builder.set_project_status(parsed_body.project_status); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_creation_time(parsed_body.creation_time); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProjectArn" => { + builder = builder.set_project_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectName" => { + builder = builder.set_project_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectId" => { + builder = builder.set_project_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectDescription" => { + builder = builder.set_project_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ServiceCatalogProvisioningDetails" => { + builder = builder.set_service_catalog_provisioning_details( + crate::json_deser::deser_structure_service_catalog_provisioning_details(tokens)? + ); + } + "ServiceCatalogProvisionedProductDetails" => { + builder = builder.set_service_catalog_provisioned_product_details( + crate::json_deser::deser_structure_service_catalog_provisioned_product_details(tokens)? + ); + } + "ProjectStatus" => { + builder = builder.set_project_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProjectStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_subscribed_workteam_deser_operation( +pub fn deser_operation_describe_subscribed_workteam( input: &[u8], mut builder: crate::output::describe_subscribed_workteam_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::describe_subscribed_workteam_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeSubscribedWorkteamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_subscribed_workteam(parsed_body.subscribed_workteam); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SubscribedWorkteam" => { + builder = builder.set_subscribed_workteam( + crate::json_deser::deser_structure_subscribed_workteam(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_training_job_deser_operation( +pub fn deser_operation_describe_training_job( input: &[u8], mut builder: crate::output::describe_training_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTrainingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_training_job_name(parsed_body.training_job_name); - builder = builder.set_training_job_arn(parsed_body.training_job_arn); - builder = builder.set_tuning_job_arn(parsed_body.tuning_job_arn); - builder = builder.set_labeling_job_arn(parsed_body.labeling_job_arn); - builder = builder.set_auto_ml_job_arn(parsed_body.auto_ml_job_arn); - builder = builder.set_model_artifacts(parsed_body.model_artifacts); - builder = builder.set_training_job_status(parsed_body.training_job_status); - builder = builder.set_secondary_status(parsed_body.secondary_status); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_hyper_parameters(parsed_body.hyper_parameters); - builder = builder.set_algorithm_specification(parsed_body.algorithm_specification); - builder = builder.set_role_arn(parsed_body.role_arn); - builder = builder.set_input_data_config(parsed_body.input_data_config); - builder = builder.set_output_data_config(parsed_body.output_data_config); - builder = builder.set_resource_config(parsed_body.resource_config); - builder = builder.set_vpc_config(parsed_body.vpc_config); - builder = builder.set_stopping_condition(parsed_body.stopping_condition); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_training_start_time(parsed_body.training_start_time); - builder = builder.set_training_end_time(parsed_body.training_end_time); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_secondary_status_transitions(parsed_body.secondary_status_transitions); - builder = builder.set_final_metric_data_list(parsed_body.final_metric_data_list); - builder = builder.set_enable_network_isolation(Some(parsed_body.enable_network_isolation)); - builder = builder.set_enable_inter_container_traffic_encryption(Some( - parsed_body.enable_inter_container_traffic_encryption, - )); - builder = - builder.set_enable_managed_spot_training(Some(parsed_body.enable_managed_spot_training)); - builder = builder.set_checkpoint_config(parsed_body.checkpoint_config); - builder = builder.set_training_time_in_seconds(parsed_body.training_time_in_seconds); - builder = builder.set_billable_time_in_seconds(parsed_body.billable_time_in_seconds); - builder = builder.set_debug_hook_config(parsed_body.debug_hook_config); - builder = builder.set_experiment_config(parsed_body.experiment_config); - builder = builder.set_debug_rule_configurations(parsed_body.debug_rule_configurations); - builder = builder.set_tensor_board_output_config(parsed_body.tensor_board_output_config); - builder = - builder.set_debug_rule_evaluation_statuses(parsed_body.debug_rule_evaluation_statuses); - builder = builder.set_profiler_config(parsed_body.profiler_config); - builder = builder.set_profiler_rule_configurations(parsed_body.profiler_rule_configurations); - builder = builder - .set_profiler_rule_evaluation_statuses(parsed_body.profiler_rule_evaluation_statuses); - builder = builder.set_profiling_status(parsed_body.profiling_status); - builder = builder.set_retry_strategy(parsed_body.retry_strategy); - builder = builder.set_environment(parsed_body.environment); - Ok(builder) -} - -pub fn describe_transform_job_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobName" => { + builder = builder.set_training_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TuningJobArn" => { + builder = builder.set_tuning_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelArtifacts" => { + builder = builder.set_model_artifacts( + crate::json_deser::deser_structure_model_artifacts(tokens)?, + ); + } + "TrainingJobStatus" => { + builder = builder.set_training_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TrainingJobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SecondaryStatus" => { + builder = builder.set_secondary_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SecondaryStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameters" => { + builder = builder.set_hyper_parameters( + crate::json_deser::deser_map_hyper_parameters(tokens)?, + ); + } + "AlgorithmSpecification" => { + builder = builder.set_algorithm_specification( + crate::json_deser::deser_structure_algorithm_specification(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputDataConfig" => { + builder = builder.set_input_data_config( + crate::json_deser::deser_list_input_data_config(tokens)?, + ); + } + "OutputDataConfig" => { + builder = builder.set_output_data_config( + crate::json_deser::deser_structure_output_data_config(tokens)?, + ); + } + "ResourceConfig" => { + builder = builder.set_resource_config( + crate::json_deser::deser_structure_resource_config(tokens)?, + ); + } + "VpcConfig" => { + builder = builder + .set_vpc_config(crate::json_deser::deser_structure_vpc_config(tokens)?); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_stopping_condition(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingStartTime" => { + builder = builder.set_training_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingEndTime" => { + builder = builder.set_training_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "SecondaryStatusTransitions" => { + builder = builder.set_secondary_status_transitions( + crate::json_deser::deser_list_secondary_status_transitions(tokens)?, + ); + } + "FinalMetricDataList" => { + builder = builder.set_final_metric_data_list( + crate::json_deser::deser_list_final_metric_data_list(tokens)?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "EnableManagedSpotTraining" => { + builder = builder.set_enable_managed_spot_training( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "CheckpointConfig" => { + builder = builder.set_checkpoint_config( + crate::json_deser::deser_structure_checkpoint_config(tokens)?, + ); + } + "TrainingTimeInSeconds" => { + builder = builder.set_training_time_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BillableTimeInSeconds" => { + builder = builder.set_billable_time_in_seconds( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "DebugHookConfig" => { + builder = builder.set_debug_hook_config( + crate::json_deser::deser_structure_debug_hook_config(tokens)?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + "DebugRuleConfigurations" => { + builder = builder.set_debug_rule_configurations( + crate::json_deser::deser_list_debug_rule_configurations(tokens)?, + ); + } + "TensorBoardOutputConfig" => { + builder = builder.set_tensor_board_output_config( + crate::json_deser::deser_structure_tensor_board_output_config(tokens)?, + ); + } + "DebugRuleEvaluationStatuses" => { + builder = builder.set_debug_rule_evaluation_statuses( + crate::json_deser::deser_list_debug_rule_evaluation_statuses(tokens)?, + ); + } + "ProfilerConfig" => { + builder = builder.set_profiler_config( + crate::json_deser::deser_structure_profiler_config(tokens)?, + ); + } + "ProfilerRuleConfigurations" => { + builder = builder.set_profiler_rule_configurations( + crate::json_deser::deser_list_profiler_rule_configurations(tokens)?, + ); + } + "ProfilerRuleEvaluationStatuses" => { + builder = builder.set_profiler_rule_evaluation_statuses( + crate::json_deser::deser_list_profiler_rule_evaluation_statuses( + tokens, + )?, + ); + } + "ProfilingStatus" => { + builder = builder.set_profiling_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProfilingStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "RetryStrategy" => { + builder = builder.set_retry_strategy( + crate::json_deser::deser_structure_retry_strategy(tokens)?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_training_environment_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_transform_job( input: &[u8], mut builder: crate::output::describe_transform_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTransformJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transform_job_name(parsed_body.transform_job_name); - builder = builder.set_transform_job_arn(parsed_body.transform_job_arn); - builder = builder.set_transform_job_status(parsed_body.transform_job_status); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_model_name(parsed_body.model_name); - builder = builder.set_max_concurrent_transforms(parsed_body.max_concurrent_transforms); - builder = builder.set_model_client_config(parsed_body.model_client_config); - builder = builder.set_max_payload_in_mb(parsed_body.max_payload_in_mb); - builder = builder.set_batch_strategy(parsed_body.batch_strategy); - builder = builder.set_environment(parsed_body.environment); - builder = builder.set_transform_input(parsed_body.transform_input); - builder = builder.set_transform_output(parsed_body.transform_output); - builder = builder.set_transform_resources(parsed_body.transform_resources); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_transform_start_time(parsed_body.transform_start_time); - builder = builder.set_transform_end_time(parsed_body.transform_end_time); - builder = builder.set_labeling_job_arn(parsed_body.labeling_job_arn); - builder = builder.set_auto_ml_job_arn(parsed_body.auto_ml_job_arn); - builder = builder.set_data_processing(parsed_body.data_processing); - builder = builder.set_experiment_config(parsed_body.experiment_config); - Ok(builder) -} - -pub fn describe_trial_deser_operation( +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransformJobName" => { + builder = builder.set_transform_job_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobArn" => { + builder = builder.set_transform_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobStatus" => { + builder = builder.set_transform_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TransformJobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrentTransforms" => { + builder = builder.set_max_concurrent_transforms( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ModelClientConfig" => { + builder = builder.set_model_client_config( + crate::json_deser::deser_structure_model_client_config(tokens)?, + ); + } + "MaxPayloadInMB" => { + builder = builder.set_max_payload_in_mb( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "BatchStrategy" => { + builder = builder.set_batch_strategy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BatchStrategy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_transform_environment_map(tokens)?, + ); + } + "TransformInput" => { + builder = builder.set_transform_input( + crate::json_deser::deser_structure_transform_input(tokens)?, + ); + } + "TransformOutput" => { + builder = builder.set_transform_output( + crate::json_deser::deser_structure_transform_output(tokens)?, + ); + } + "TransformResources" => { + builder = builder.set_transform_resources( + crate::json_deser::deser_structure_transform_resources(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformStartTime" => { + builder = builder.set_transform_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformEndTime" => { + builder = builder.set_transform_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataProcessing" => { + builder = builder.set_data_processing( + crate::json_deser::deser_structure_data_processing(tokens)?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_trial( input: &[u8], mut builder: crate::output::describe_trial_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeTrialOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_name(parsed_body.trial_name); - builder = builder.set_trial_arn(parsed_body.trial_arn); - builder = builder.set_display_name(parsed_body.display_name); - builder = builder.set_experiment_name(parsed_body.experiment_name); - builder = builder.set_source(parsed_body.source); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - builder = builder.set_metadata_properties(parsed_body.metadata_properties); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder + .set_source(crate::json_deser::deser_structure_trial_source(tokens)?); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_trial_component_deser_operation( +pub fn deser_operation_describe_trial_component( input: &[u8], mut builder: crate::output::describe_trial_component_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::DescribeTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_name(parsed_body.trial_component_name); - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); - builder = builder.set_display_name(parsed_body.display_name); - builder = builder.set_source(parsed_body.source); - builder = builder.set_status(parsed_body.status); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_end_time(parsed_body.end_time); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_created_by(parsed_body.created_by); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_last_modified_by(parsed_body.last_modified_by); - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_input_artifacts(parsed_body.input_artifacts); - builder = builder.set_output_artifacts(parsed_body.output_artifacts); - builder = builder.set_metadata_properties(parsed_body.metadata_properties); - builder = builder.set_metrics(parsed_body.metrics); - Ok(builder) -} - -pub fn describe_user_profile_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentName" => { + builder = builder.set_trial_component_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_trial_component_source(tokens)?, + ); + } + "Status" => { + builder = builder.set_status( + crate::json_deser::deser_structure_trial_component_status(tokens)?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_trial_component_parameters(tokens)?, + ); + } + "InputArtifacts" => { + builder = builder.set_input_artifacts( + crate::json_deser::deser_map_trial_component_artifacts(tokens)?, + ); + } + "OutputArtifacts" => { + builder = builder.set_output_artifacts( + crate::json_deser::deser_map_trial_component_artifacts(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + "Metrics" => { + builder = builder.set_metrics( + crate::json_deser::deser_list_trial_component_metric_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_user_profile( input: &[u8], mut builder: crate::output::describe_user_profile_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeUserProfileOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_id(parsed_body.domain_id); - builder = builder.set_user_profile_arn(parsed_body.user_profile_arn); - builder = builder.set_user_profile_name(parsed_body.user_profile_name); - builder = builder.set_home_efs_file_system_uid(parsed_body.home_efs_file_system_uid); - builder = builder.set_status(parsed_body.status); - builder = builder.set_last_modified_time(parsed_body.last_modified_time); - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = - builder.set_single_sign_on_user_identifier(parsed_body.single_sign_on_user_identifier); - builder = builder.set_single_sign_on_user_value(parsed_body.single_sign_on_user_value); - builder = builder.set_user_settings(parsed_body.user_settings); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileArn" => { + builder = builder.set_user_profile_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileName" => { + builder = builder.set_user_profile_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HomeEfsFileSystemUid" => { + builder = builder.set_home_efs_file_system_uid( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::UserProfileStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SingleSignOnUserIdentifier" => { + builder = builder.set_single_sign_on_user_identifier( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SingleSignOnUserValue" => { + builder = builder.set_single_sign_on_user_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserSettings" => { + builder = builder.set_user_settings( + crate::json_deser::deser_structure_user_settings(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_workforce_deser_operation( +pub fn deser_operation_describe_workforce( input: &[u8], mut builder: crate::output::describe_workforce_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeWorkforceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workforce(parsed_body.workforce); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workforce" => { + builder = builder + .set_workforce(crate::json_deser::deser_structure_workforce(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_workteam_deser_operation( +pub fn deser_operation_describe_workteam( input: &[u8], mut builder: crate::output::describe_workteam_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeWorkteamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workteam(parsed_body.workteam); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workteam" => { + builder = builder + .set_workteam(crate::json_deser::deser_structure_workteam(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn disassociate_trial_component_deser_operation( +pub fn deser_operation_disassociate_trial_component( input: &[u8], mut builder: crate::output::disassociate_trial_component_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::disassociate_trial_component_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DisassociateTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); - builder = builder.set_trial_arn(parsed_body.trial_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_device_fleet_report_deser_operation( +pub fn deser_operation_get_device_fleet_report( input: &[u8], mut builder: crate::output::get_device_fleet_report_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetDeviceFleetReportOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_fleet_arn(parsed_body.device_fleet_arn); - builder = builder.set_device_fleet_name(parsed_body.device_fleet_name); - builder = builder.set_output_config(parsed_body.output_config); - builder = builder.set_description(parsed_body.description); - builder = builder.set_report_generated(parsed_body.report_generated); - builder = builder.set_device_stats(parsed_body.device_stats); - builder = builder.set_agent_versions(parsed_body.agent_versions); - builder = builder.set_model_stats(parsed_body.model_stats); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceFleetArn" => { + builder = builder.set_device_fleet_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceFleetName" => { + builder = builder.set_device_fleet_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputConfig" => { + builder = builder.set_output_config( + crate::json_deser::deser_structure_edge_output_config(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReportGenerated" => { + builder = builder.set_report_generated( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeviceStats" => { + builder = builder.set_device_stats( + crate::json_deser::deser_structure_device_stats(tokens)?, + ); + } + "AgentVersions" => { + builder = builder.set_agent_versions( + crate::json_deser::deser_list_agent_versions(tokens)?, + ); + } + "ModelStats" => { + builder = builder.set_model_stats( + crate::json_deser::deser_list_edge_model_stats(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_model_package_group_policy_deser_operation( +pub fn deser_operation_get_model_package_group_policy( input: &[u8], mut builder: crate::output::get_model_package_group_policy_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_model_package_group_policy_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetModelPackageGroupPolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_resource_policy(parsed_body.resource_policy); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourcePolicy" => { + builder = builder.set_resource_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_sagemaker_servicecatalog_portfolio_status_deser_operation( +pub fn deser_operation_get_sagemaker_servicecatalog_portfolio_status( input: &[u8], mut builder: crate::output::get_sagemaker_servicecatalog_portfolio_status_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_sagemaker_servicecatalog_portfolio_status_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetSagemakerServicecatalogPortfolioStatusOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_status(parsed_body.status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SagemakerServicecatalogStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_search_suggestions_deser_operation( +pub fn deser_operation_get_search_suggestions( input: &[u8], mut builder: crate::output::get_search_suggestions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetSearchSuggestionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_property_name_suggestions(parsed_body.property_name_suggestions); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PropertyNameSuggestions" => { + builder = builder.set_property_name_suggestions( + crate::json_deser::deser_list_property_name_suggestion_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_actions_deser_operation( +pub fn deser_operation_list_actions( input: &[u8], mut builder: crate::output::list_actions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListActionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_action_summaries(parsed_body.action_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionSummaries" => { + builder = builder.set_action_summaries( + crate::json_deser::deser_list_action_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_algorithms_deser_operation( +pub fn deser_operation_list_algorithms( input: &[u8], mut builder: crate::output::list_algorithms_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAlgorithmsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_algorithm_summary_list(parsed_body.algorithm_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AlgorithmSummaryList" => { + builder = builder.set_algorithm_summary_list( + crate::json_deser::deser_list_algorithm_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_app_image_configs_deser_operation( +pub fn deser_operation_list_app_image_configs( input: &[u8], mut builder: crate::output::list_app_image_configs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAppImageConfigsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_app_image_configs(parsed_body.app_image_configs); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppImageConfigs" => { + builder = builder.set_app_image_configs( + crate::json_deser::deser_list_app_image_config_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_apps_deser_operation( +pub fn deser_operation_list_apps( input: &[u8], mut builder: crate::output::list_apps_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAppsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_apps(parsed_body.apps); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Apps" => { + builder = builder.set_apps(crate::json_deser::deser_list_app_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_artifacts_deser_operation( +pub fn deser_operation_list_artifacts( input: &[u8], mut builder: crate::output::list_artifacts_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListArtifactsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_artifact_summaries(parsed_body.artifact_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactSummaries" => { + builder = builder.set_artifact_summaries( + crate::json_deser::deser_list_artifact_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_associations_deser_operation( +pub fn deser_operation_list_associations( input: &[u8], mut builder: crate::output::list_associations_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAssociationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_summaries(parsed_body.association_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationSummaries" => { + builder = builder.set_association_summaries( + crate::json_deser::deser_list_association_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_auto_ml_jobs_deser_operation( +pub fn deser_operation_list_auto_ml_jobs( input: &[u8], mut builder: crate::output::list_auto_ml_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAutoMLJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_auto_ml_job_summaries(parsed_body.auto_ml_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoMLJobSummaries" => { + builder = builder.set_auto_ml_job_summaries( + crate::json_deser::deser_list_auto_ml_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_candidates_for_auto_ml_job_deser_operation( +pub fn deser_operation_list_candidates_for_auto_ml_job( input: &[u8], mut builder: crate::output::list_candidates_for_auto_ml_job_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_candidates_for_auto_ml_job_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListCandidatesForAutoMLJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_candidates(parsed_body.candidates); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Candidates" => { + builder = builder.set_candidates( + crate::json_deser::deser_list_auto_ml_candidates(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_code_repositories_deser_operation( +pub fn deser_operation_list_code_repositories( input: &[u8], mut builder: crate::output::list_code_repositories_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListCodeRepositoriesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_repository_summary_list(parsed_body.code_repository_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeRepositorySummaryList" => { + builder = builder.set_code_repository_summary_list( + crate::json_deser::deser_list_code_repository_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_compilation_jobs_deser_operation( +pub fn deser_operation_list_compilation_jobs( input: &[u8], mut builder: crate::output::list_compilation_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListCompilationJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compilation_job_summaries(parsed_body.compilation_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompilationJobSummaries" => { + builder = builder.set_compilation_job_summaries( + crate::json_deser::deser_list_compilation_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_contexts_deser_operation( +pub fn deser_operation_list_contexts( input: &[u8], mut builder: crate::output::list_contexts_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListContextsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_context_summaries(parsed_body.context_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextSummaries" => { + builder = builder.set_context_summaries( + crate::json_deser::deser_list_context_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_data_quality_job_definitions_deser_operation( +pub fn deser_operation_list_data_quality_job_definitions( input: &[u8], mut builder: crate::output::list_data_quality_job_definitions_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_data_quality_job_definitions_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListDataQualityJobDefinitionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_summaries(parsed_body.job_definition_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionSummaries" => { + builder = builder.set_job_definition_summaries( + crate::json_deser::deser_list_monitoring_job_definition_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_device_fleets_deser_operation( +pub fn deser_operation_list_device_fleets( input: &[u8], mut builder: crate::output::list_device_fleets_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListDeviceFleetsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_fleet_summaries(parsed_body.device_fleet_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceFleetSummaries" => { + builder = builder.set_device_fleet_summaries( + crate::json_deser::deser_list_device_fleet_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_devices_deser_operation( +pub fn deser_operation_list_devices( input: &[u8], mut builder: crate::output::list_devices_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListDevicesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_summaries(parsed_body.device_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceSummaries" => { + builder = builder.set_device_summaries( + crate::json_deser::deser_list_device_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_domains_deser_operation( +pub fn deser_operation_list_domains( input: &[u8], mut builder: crate::output::list_domains_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListDomainsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domains(parsed_body.domains); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Domains" => { + builder = + builder.set_domains(crate::json_deser::deser_list_domain_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_edge_packaging_jobs_deser_operation( +pub fn deser_operation_list_edge_packaging_jobs( input: &[u8], mut builder: crate::output::list_edge_packaging_jobs_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListEdgePackagingJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_edge_packaging_job_summaries(parsed_body.edge_packaging_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EdgePackagingJobSummaries" => { + builder = builder.set_edge_packaging_job_summaries( + crate::json_deser::deser_list_edge_packaging_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_endpoint_configs_deser_operation( +pub fn deser_operation_list_endpoint_configs( input: &[u8], mut builder: crate::output::list_endpoint_configs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListEndpointConfigsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_configs(parsed_body.endpoint_configs); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointConfigs" => { + builder = builder.set_endpoint_configs( + crate::json_deser::deser_list_endpoint_config_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_endpoints_deser_operation( +pub fn deser_operation_list_endpoints( input: &[u8], mut builder: crate::output::list_endpoints_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListEndpointsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoints(parsed_body.endpoints); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Endpoints" => { + builder = builder.set_endpoints( + crate::json_deser::deser_list_endpoint_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_experiments_deser_operation( +pub fn deser_operation_list_experiments( input: &[u8], mut builder: crate::output::list_experiments_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListExperimentsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_experiment_summaries(parsed_body.experiment_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentSummaries" => { + builder = builder.set_experiment_summaries( + crate::json_deser::deser_list_experiment_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_feature_groups_deser_operation( +pub fn deser_operation_list_feature_groups( input: &[u8], mut builder: crate::output::list_feature_groups_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListFeatureGroupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_feature_group_summaries(parsed_body.feature_group_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupSummaries" => { + builder = builder.set_feature_group_summaries( + crate::json_deser::deser_list_feature_group_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_flow_definitions_deser_operation( +pub fn deser_operation_list_flow_definitions( input: &[u8], mut builder: crate::output::list_flow_definitions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListFlowDefinitionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_flow_definition_summaries(parsed_body.flow_definition_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FlowDefinitionSummaries" => { + builder = builder.set_flow_definition_summaries( + crate::json_deser::deser_list_flow_definition_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_human_task_uis_deser_operation( +pub fn deser_operation_list_human_task_uis( input: &[u8], mut builder: crate::output::list_human_task_uis_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListHumanTaskUisOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_human_task_ui_summaries(parsed_body.human_task_ui_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanTaskUiSummaries" => { + builder = builder.set_human_task_ui_summaries( + crate::json_deser::deser_list_human_task_ui_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_hyper_parameter_tuning_jobs_deser_operation( +pub fn deser_operation_list_hyper_parameter_tuning_jobs( input: &[u8], mut builder: crate::output::list_hyper_parameter_tuning_jobs_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_hyper_parameter_tuning_jobs_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListHyperParameterTuningJobsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_hyper_parameter_tuning_job_summaries(parsed_body.hyper_parameter_tuning_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HyperParameterTuningJobSummaries" => { + builder = builder.set_hyper_parameter_tuning_job_summaries( + crate::json_deser::deser_list_hyper_parameter_tuning_job_summaries( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_images_deser_operation( +pub fn deser_operation_list_images( input: &[u8], mut builder: crate::output::list_images_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListImagesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_images(parsed_body.images); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Images" => { + builder = builder.set_images(crate::json_deser::deser_list_images(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_image_versions_deser_operation( +pub fn deser_operation_list_image_versions( input: &[u8], mut builder: crate::output::list_image_versions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListImageVersionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_image_versions(parsed_body.image_versions); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageVersions" => { + builder = builder.set_image_versions( + crate::json_deser::deser_list_image_versions(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_labeling_jobs_deser_operation( +pub fn deser_operation_list_labeling_jobs( input: &[u8], mut builder: crate::output::list_labeling_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListLabelingJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_labeling_job_summary_list(parsed_body.labeling_job_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobSummaryList" => { + builder = builder.set_labeling_job_summary_list( + crate::json_deser::deser_list_labeling_job_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_labeling_jobs_for_workteam_deser_operation( +pub fn deser_operation_list_labeling_jobs_for_workteam( input: &[u8], mut builder: crate::output::list_labeling_jobs_for_workteam_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_labeling_jobs_for_workteam_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListLabelingJobsForWorkteamOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_labeling_job_summary_list(parsed_body.labeling_job_summary_list); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobSummaryList" => { + builder = builder.set_labeling_job_summary_list( + crate::json_deser::deser_list_labeling_job_for_workteam_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_model_bias_job_definitions_deser_operation( +pub fn deser_operation_list_model_bias_job_definitions( input: &[u8], mut builder: crate::output::list_model_bias_job_definitions_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_model_bias_job_definitions_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListModelBiasJobDefinitionsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_summaries(parsed_body.job_definition_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionSummaries" => { + builder = builder.set_job_definition_summaries( + crate::json_deser::deser_list_monitoring_job_definition_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_model_explainability_job_definitions_deser_operation( +pub fn deser_operation_list_model_explainability_job_definitions( input: &[u8], mut builder: crate::output::list_model_explainability_job_definitions_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_model_explainability_job_definitions_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListModelExplainabilityJobDefinitionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_summaries(parsed_body.job_definition_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionSummaries" => { + builder = builder.set_job_definition_summaries( + crate::json_deser::deser_list_monitoring_job_definition_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_model_package_groups_deser_operation( +pub fn deser_operation_list_model_package_groups( input: &[u8], mut builder: crate::output::list_model_package_groups_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListModelPackageGroupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_model_package_group_summary_list(parsed_body.model_package_group_summary_list); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupSummaryList" => { + builder = builder.set_model_package_group_summary_list( + crate::json_deser::deser_list_model_package_group_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_model_packages_deser_operation( +pub fn deser_operation_list_model_packages( input: &[u8], mut builder: crate::output::list_model_packages_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListModelPackagesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_summary_list(parsed_body.model_package_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageSummaryList" => { + builder = builder.set_model_package_summary_list( + crate::json_deser::deser_list_model_package_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_model_quality_job_definitions_deser_operation( +pub fn deser_operation_list_model_quality_job_definitions( input: &[u8], mut builder: crate::output::list_model_quality_job_definitions_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_model_quality_job_definitions_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListModelQualityJobDefinitionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_definition_summaries(parsed_body.job_definition_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobDefinitionSummaries" => { + builder = builder.set_job_definition_summaries( + crate::json_deser::deser_list_monitoring_job_definition_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_models_deser_operation( +pub fn deser_operation_list_models( input: &[u8], mut builder: crate::output::list_models_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListModelsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_models(parsed_body.models); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Models" => { + builder = builder + .set_models(crate::json_deser::deser_list_model_summary_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_monitoring_executions_deser_operation( +pub fn deser_operation_list_monitoring_executions( input: &[u8], mut builder: crate::output::list_monitoring_executions_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListMonitoringExecutionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_monitoring_execution_summaries(parsed_body.monitoring_execution_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result< + crate::output::list_monitoring_executions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringExecutionSummaries" => { + builder = builder.set_monitoring_execution_summaries( + crate::json_deser::deser_list_monitoring_execution_summary_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_monitoring_schedules_deser_operation( +pub fn deser_operation_list_monitoring_schedules( input: &[u8], mut builder: crate::output::list_monitoring_schedules_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListMonitoringSchedulesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_monitoring_schedule_summaries(parsed_body.monitoring_schedule_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleSummaries" => { + builder = builder.set_monitoring_schedule_summaries( + crate::json_deser::deser_list_monitoring_schedule_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_notebook_instance_lifecycle_configs_deser_operation( +pub fn deser_operation_list_notebook_instance_lifecycle_configs( input: &[u8], mut builder: crate::output::list_notebook_instance_lifecycle_configs_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_notebook_instance_lifecycle_configs_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListNotebookInstanceLifecycleConfigsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder - .set_notebook_instance_lifecycle_configs(parsed_body.notebook_instance_lifecycle_configs); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceLifecycleConfigs" => { + builder = builder.set_notebook_instance_lifecycle_configs( + crate::json_deser::deser_list_notebook_instance_lifecycle_config_summary_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_notebook_instances_deser_operation( +pub fn deser_operation_list_notebook_instances( input: &[u8], mut builder: crate::output::list_notebook_instances_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListNotebookInstancesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_notebook_instances(parsed_body.notebook_instances); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstances" => { + builder = builder.set_notebook_instances( + crate::json_deser::deser_list_notebook_instance_summary_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_pipeline_executions_deser_operation( +pub fn deser_operation_list_pipeline_executions( input: &[u8], mut builder: crate::output::list_pipeline_executions_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListPipelineExecutionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_summaries(parsed_body.pipeline_execution_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionSummaries" => { + builder = builder.set_pipeline_execution_summaries( + crate::json_deser::deser_list_pipeline_execution_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_pipeline_execution_steps_deser_operation( +pub fn deser_operation_list_pipeline_execution_steps( input: &[u8], mut builder: crate::output::list_pipeline_execution_steps_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_pipeline_execution_steps_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListPipelineExecutionStepsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_steps(parsed_body.pipeline_execution_steps); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionSteps" => { + builder = builder.set_pipeline_execution_steps( + crate::json_deser::deser_list_pipeline_execution_step_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_pipeline_parameters_for_execution_deser_operation( +pub fn deser_operation_list_pipeline_parameters_for_execution( input: &[u8], mut builder: crate::output::list_pipeline_parameters_for_execution_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_pipeline_parameters_for_execution_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListPipelineParametersForExecutionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_parameters(parsed_body.pipeline_parameters); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineParameters" => { + builder = builder.set_pipeline_parameters( + crate::json_deser::deser_list_parameter_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_pipelines_deser_operation( +pub fn deser_operation_list_pipelines( input: &[u8], mut builder: crate::output::list_pipelines_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListPipelinesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_summaries(parsed_body.pipeline_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineSummaries" => { + builder = builder.set_pipeline_summaries( + crate::json_deser::deser_list_pipeline_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_processing_jobs_deser_operation( +pub fn deser_operation_list_processing_jobs( input: &[u8], mut builder: crate::output::list_processing_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListProcessingJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_processing_job_summaries(parsed_body.processing_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingJobSummaries" => { + builder = builder.set_processing_job_summaries( + crate::json_deser::deser_list_processing_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_projects_deser_operation( +pub fn deser_operation_list_projects( input: &[u8], mut builder: crate::output::list_projects_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListProjectsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_project_summary_list(parsed_body.project_summary_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProjectSummaryList" => { + builder = builder.set_project_summary_list( + crate::json_deser::deser_list_project_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_subscribed_workteams_deser_operation( +pub fn deser_operation_list_subscribed_workteams( input: &[u8], mut builder: crate::output::list_subscribed_workteams_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListSubscribedWorkteamsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_subscribed_workteams(parsed_body.subscribed_workteams); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SubscribedWorkteams" => { + builder = builder.set_subscribed_workteams( + crate::json_deser::deser_list_subscribed_workteams(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_deser_operation( +pub fn deser_operation_list_tags( input: &[u8], mut builder: crate::output::list_tags_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_training_jobs_deser_operation( +pub fn deser_operation_list_training_jobs( input: &[u8], mut builder: crate::output::list_training_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTrainingJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_training_job_summaries(parsed_body.training_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobSummaries" => { + builder = builder.set_training_job_summaries( + crate::json_deser::deser_list_training_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_training_jobs_for_hyper_parameter_tuning_job_deser_operation( +pub fn deser_operation_list_training_jobs_for_hyper_parameter_tuning_job( input: &[u8], mut builder: crate::output::list_training_jobs_for_hyper_parameter_tuning_job_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_training_jobs_for_hyper_parameter_tuning_job_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListTrainingJobsForHyperParameterTuningJobOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_training_job_summaries(parsed_body.training_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobSummaries" => { + builder = builder.set_training_job_summaries( + crate::json_deser::deser_list_hyper_parameter_training_job_summaries( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_transform_jobs_deser_operation( +pub fn deser_operation_list_transform_jobs( input: &[u8], mut builder: crate::output::list_transform_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTransformJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_transform_job_summaries(parsed_body.transform_job_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransformJobSummaries" => { + builder = builder.set_transform_job_summaries( + crate::json_deser::deser_list_transform_job_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_trial_components_deser_operation( +pub fn deser_operation_list_trial_components( input: &[u8], mut builder: crate::output::list_trial_components_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTrialComponentsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_summaries(parsed_body.trial_component_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentSummaries" => { + builder = builder.set_trial_component_summaries( + crate::json_deser::deser_list_trial_component_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_trials_deser_operation( +pub fn deser_operation_list_trials( input: &[u8], mut builder: crate::output::list_trials_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTrialsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_summaries(parsed_body.trial_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialSummaries" => { + builder = builder.set_trial_summaries( + crate::json_deser::deser_list_trial_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_user_profiles_deser_operation( +pub fn deser_operation_list_user_profiles( input: &[u8], mut builder: crate::output::list_user_profiles_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListUserProfilesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_user_profiles(parsed_body.user_profiles); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserProfiles" => { + builder = builder.set_user_profiles( + crate::json_deser::deser_list_user_profile_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_workforces_deser_operation( +pub fn deser_operation_list_workforces( input: &[u8], mut builder: crate::output::list_workforces_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListWorkforcesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workforces(parsed_body.workforces); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workforces" => { + builder = builder + .set_workforces(crate::json_deser::deser_list_workforces(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_workteams_deser_operation( +pub fn deser_operation_list_workteams( input: &[u8], mut builder: crate::output::list_workteams_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListWorkteamsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workteams(parsed_body.workteams); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workteams" => { + builder = + builder.set_workteams(crate::json_deser::deser_list_workteams(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_model_package_group_policy_deser_operation( +pub fn deser_operation_put_model_package_group_policy( input: &[u8], mut builder: crate::output::put_model_package_group_policy_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_model_package_group_policy_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutModelPackageGroupPolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_group_arn(parsed_body.model_package_group_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupArn" => { + builder = builder.set_model_package_group_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn render_ui_template_deser_operation( +pub fn deser_operation_render_ui_template( input: &[u8], mut builder: crate::output::render_ui_template_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::RenderUiTemplateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_rendered_content(parsed_body.rendered_content); - builder = builder.set_errors(parsed_body.errors); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RenderedContent" => { + builder = builder.set_rendered_content( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Errors" => { + builder = builder.set_errors( + crate::json_deser::deser_list_rendering_error_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn search_deser_operation( +pub fn deser_operation_search( input: &[u8], mut builder: crate::output::search_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SearchOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_results(parsed_body.results); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Results" => { + builder = builder.set_results( + crate::json_deser::deser_list_search_results_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_pipeline_execution_step_failure_deser_operation( +pub fn deser_operation_send_pipeline_execution_step_failure( input: &[u8], mut builder: crate::output::send_pipeline_execution_step_failure_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::send_pipeline_execution_step_failure_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::SendPipelineExecutionStepFailureOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_pipeline_execution_step_success_deser_operation( +pub fn deser_operation_send_pipeline_execution_step_success( input: &[u8], mut builder: crate::output::send_pipeline_execution_step_success_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::send_pipeline_execution_step_success_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::SendPipelineExecutionStepSuccessOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_pipeline_execution_deser_operation( +pub fn deser_operation_start_pipeline_execution( input: &[u8], mut builder: crate::output::start_pipeline_execution_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::StartPipelineExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_pipeline_execution_deser_operation( +pub fn deser_operation_stop_pipeline_execution( input: &[u8], mut builder: crate::output::stop_pipeline_execution_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::StopPipelineExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_action_deser_operation( +pub fn deser_operation_update_action( input: &[u8], mut builder: crate::output::update_action_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateActionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_action_arn(parsed_body.action_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionArn" => { + builder = builder.set_action_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_app_image_config_deser_operation( +pub fn deser_operation_update_app_image_config( input: &[u8], mut builder: crate::output::update_app_image_config_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdateAppImageConfigOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_app_image_config_arn(parsed_body.app_image_config_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppImageConfigArn" => { + builder = builder.set_app_image_config_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_artifact_deser_operation( +pub fn deser_operation_update_artifact( input: &[u8], mut builder: crate::output::update_artifact_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateArtifactOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_artifact_arn(parsed_body.artifact_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactArn" => { + builder = builder.set_artifact_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_code_repository_deser_operation( +pub fn deser_operation_update_code_repository( input: &[u8], mut builder: crate::output::update_code_repository_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateCodeRepositoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_code_repository_arn(parsed_body.code_repository_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeRepositoryArn" => { + builder = builder.set_code_repository_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_context_deser_operation( +pub fn deser_operation_update_context( input: &[u8], mut builder: crate::output::update_context_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateContextOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_context_arn(parsed_body.context_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextArn" => { + builder = builder.set_context_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_domain_deser_operation( +pub fn deser_operation_update_domain( input: &[u8], mut builder: crate::output::update_domain_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateDomainOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_domain_arn(parsed_body.domain_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainArn" => { + builder = builder.set_domain_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_endpoint_deser_operation( +pub fn deser_operation_update_endpoint( input: &[u8], mut builder: crate::output::update_endpoint_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateEndpointOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_arn(parsed_body.endpoint_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_endpoint_weights_and_capacities_deser_operation( +pub fn deser_operation_update_endpoint_weights_and_capacities( input: &[u8], mut builder: crate::output::update_endpoint_weights_and_capacities_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_endpoint_weights_and_capacities_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateEndpointWeightsAndCapacitiesOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_endpoint_arn(parsed_body.endpoint_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_experiment_deser_operation( +pub fn deser_operation_update_experiment( input: &[u8], mut builder: crate::output::update_experiment_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateExperimentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_experiment_arn(parsed_body.experiment_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_image_deser_operation( +pub fn deser_operation_update_image( input: &[u8], mut builder: crate::output::update_image_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateImageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_image_arn(parsed_body.image_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_model_package_deser_operation( +pub fn deser_operation_update_model_package( input: &[u8], mut builder: crate::output::update_model_package_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateModelPackageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_model_package_arn(parsed_body.model_package_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageArn" => { + builder = builder.set_model_package_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_monitoring_schedule_deser_operation( +pub fn deser_operation_update_monitoring_schedule( input: &[u8], mut builder: crate::output::update_monitoring_schedule_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::UpdateMonitoringScheduleOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_monitoring_schedule_arn(parsed_body.monitoring_schedule_arn); +) -> Result< + crate::output::update_monitoring_schedule_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_pipeline_deser_operation( +pub fn deser_operation_update_pipeline( input: &[u8], mut builder: crate::output::update_pipeline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdatePipelineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_arn(parsed_body.pipeline_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_pipeline_execution_deser_operation( +pub fn deser_operation_update_pipeline_execution( input: &[u8], mut builder: crate::output::update_pipeline_execution_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::UpdatePipelineExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_pipeline_execution_arn(parsed_body.pipeline_execution_arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_training_job_deser_operation( +pub fn deser_operation_update_training_job( input: &[u8], mut builder: crate::output::update_training_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTrainingJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_training_job_arn(parsed_body.training_job_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_trial_deser_operation( +pub fn deser_operation_update_trial( input: &[u8], mut builder: crate::output::update_trial_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTrialOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_arn(parsed_body.trial_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_trial_component_deser_operation( +pub fn deser_operation_update_trial_component( input: &[u8], mut builder: crate::output::update_trial_component_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateTrialComponentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_trial_component_arn(parsed_body.trial_component_arn); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_user_profile_deser_operation( +pub fn deser_operation_update_user_profile( input: &[u8], mut builder: crate::output::update_user_profile_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateUserProfileOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_user_profile_arn(parsed_body.user_profile_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserProfileArn" => { + builder = builder.set_user_profile_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_workforce_deser_operation( +pub fn deser_operation_update_workforce( input: &[u8], mut builder: crate::output::update_workforce_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateWorkforceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workforce(parsed_body.workforce); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workforce" => { + builder = builder + .set_workforce(crate::json_deser::deser_structure_workforce(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_workteam_deser_operation( +pub fn deser_operation_update_workteam( input: &[u8], mut builder: crate::output::update_workteam_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateWorkteamOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_workteam(parsed_body.workteam); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Workteam" => { + builder = builder + .set_workteam(crate::json_deser::deser_structure_workteam(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_action_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ActionSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceUri" => { + builder = builder.set_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceId" => { + builder = builder.set_source_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_lineage_entity_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_user_context<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UserContext::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserProfileArn" => { + builder = builder.set_user_profile_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileName" => { + builder = builder.set_user_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metadata_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetadataProperties::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CommitId" => { + builder = builder.set_commit_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Repository" => { + builder = builder.set_repository( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "GeneratedBy" => { + builder = builder.set_generated_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectId" => { + builder = builder.set_project_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_training_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingImage" => { + builder = builder.set_training_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingImageDigest" => { + builder = builder.set_training_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SupportedHyperParameters" => { + builder = builder.set_supported_hyper_parameters( + crate::json_deser::deser_list_hyper_parameter_specifications( + tokens, + )?, + ); + } + "SupportedTrainingInstanceTypes" => { + builder = builder.set_supported_training_instance_types( + crate::json_deser::deser_list_training_instance_types(tokens)?, + ); + } + "SupportsDistributedTraining" => { + builder = builder.set_supports_distributed_training( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "MetricDefinitions" => { + builder = builder.set_metric_definitions( + crate::json_deser::deser_list_metric_definition_list(tokens)?, + ); + } + "TrainingChannels" => { + builder = builder.set_training_channels( + crate::json_deser::deser_list_channel_specifications(tokens)?, + ); + } + "SupportedTuningJobObjectiveMetrics" => { + builder = builder.set_supported_tuning_job_objective_metrics( + crate::json_deser::deser_list_hyper_parameter_tuning_job_objectives(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inference_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InferenceSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Containers" => { + builder = builder.set_containers( + crate::json_deser::deser_list_model_package_container_definition_list(tokens)? + ); + } + "SupportedTransformInstanceTypes" => { + builder = builder.set_supported_transform_instance_types( + crate::json_deser::deser_list_transform_instance_types(tokens)?, + ); + } + "SupportedRealtimeInferenceInstanceTypes" => { + builder = builder.set_supported_realtime_inference_instance_types( + crate::json_deser::deser_list_realtime_inference_instance_types(tokens)? + ); + } + "SupportedContentTypes" => { + builder = builder.set_supported_content_types( + crate::json_deser::deser_list_content_types(tokens)?, + ); + } + "SupportedResponseMIMETypes" => { + builder = builder.set_supported_response_mime_types( + crate::json_deser::deser_list_response_mime_types(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_validation_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmValidationSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ValidationRole" => { + builder = builder.set_validation_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ValidationProfiles" => { + builder = builder.set_validation_profiles( + crate::json_deser::deser_list_algorithm_validation_profiles( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_status_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmStatusDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ValidationStatuses" => { + builder = builder.set_validation_statuses( + crate::json_deser::deser_list_algorithm_status_item_list( + tokens, + )?, + ); + } + "ImageScanStatuses" => { + builder = builder.set_image_scan_statuses( + crate::json_deser::deser_list_algorithm_status_item_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_spec<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceSpec::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SageMakerImageArn" => { + builder = builder.set_sage_maker_image_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SageMakerImageVersionArn" => { + builder = builder.set_sage_maker_image_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AppInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kernel_gateway_image_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KernelGatewayImageConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KernelSpecs" => { + builder = builder.set_kernel_specs( + crate::json_deser::deser_list_kernel_specs(tokens)?, + ); + } + "FileSystemConfig" => { + builder = builder.set_file_system_config( + crate::json_deser::deser_structure_file_system_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_artifact_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArtifactSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceUri" => { + builder = builder.set_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceTypes" => { + builder = builder.set_source_types( + crate::json_deser::deser_list_artifact_source_types(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_ml_input_data_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_auto_ml_channel(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_auto_ml_output_data_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlOutputDataConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_job_objective<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlJobObjective::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlMetricEnum::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_job_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlJobConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompletionCriteria" => { + builder = builder.set_completion_criteria( + crate::json_deser::deser_structure_auto_ml_job_completion_criteria(tokens)? + ); + } + "SecurityConfig" => { + builder = builder.set_security_config( + crate::json_deser::deser_structure_auto_ml_security_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_ml_partial_failure_reasons<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_auto_ml_partial_failure_reason( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_auto_ml_candidate<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlCandidate::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CandidateName" => { + builder = builder.set_candidate_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FinalAutoMLJobObjectiveMetric" => { + builder = builder.set_final_auto_ml_job_objective_metric( + crate::json_deser::deser_structure_final_auto_ml_job_objective_metric(tokens)? + ); + } + "ObjectiveStatus" => { + builder = builder.set_objective_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ObjectiveStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CandidateSteps" => { + builder = builder.set_candidate_steps( + crate::json_deser::deser_list_candidate_steps(tokens)?, + ); + } + "CandidateStatus" => { + builder = builder.set_candidate_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CandidateStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "InferenceContainers" => { + builder = builder.set_inference_containers( + crate::json_deser::deser_list_auto_ml_container_definitions( + tokens, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CandidateProperties" => { + builder = builder.set_candidate_properties( + crate::json_deser::deser_structure_candidate_properties( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_job_artifacts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlJobArtifacts::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CandidateDefinitionNotebookLocation" => { + builder = builder.set_candidate_definition_notebook_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataExplorationNotebookLocation" => { + builder = builder.set_data_exploration_notebook_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resolved_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResolvedAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoMLJobObjective" => { + builder = builder.set_auto_ml_job_objective( + crate::json_deser::deser_structure_auto_ml_job_objective( + tokens, + )?, + ); + } + "ProblemType" => { + builder = builder.set_problem_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProblemType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CompletionCriteria" => { + builder = builder.set_completion_criteria( + crate::json_deser::deser_structure_auto_ml_job_completion_criteria(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_deploy_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelDeployConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoGenerateEndpointName" => { + builder = builder.set_auto_generate_endpoint_name( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_deploy_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelDeployResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_git_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::GitConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RepositoryUrl" => { + builder = builder.set_repository_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Branch" => { + builder = builder.set_branch( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SecretArn" => { + builder = builder.set_secret_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_stopping_condition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StoppingCondition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxRuntimeInSeconds" => { + builder = builder.set_max_runtime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxWaitTimeInSeconds" => { + builder = builder.set_max_wait_time_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_artifacts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelArtifacts::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3ModelArtifacts" => { + builder = builder.set_s3_model_artifacts( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_digests<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelDigests::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactDigest" => { + builder = builder.set_artifact_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_input_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataInputConfig" => { + builder = builder.set_data_input_config( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Framework" => { + builder = builder.set_framework( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Framework::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FrameworkVersion" => { + builder = builder.set_framework_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputLocation" => { + builder = builder.set_s3_output_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetDevice" => { + builder = builder.set_target_device( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TargetDevice::from(u.as_ref())) + }) + .transpose()?, + ); + } + "TargetPlatform" => { + builder = builder.set_target_platform( + crate::json_deser::deser_structure_target_platform(tokens)?, + ); + } + "CompilerOptions" => { + builder = builder.set_compiler_options( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_context_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContextSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceUri" => { + builder = builder.set_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceId" => { + builder = builder.set_source_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_quality_baseline_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataQualityBaselineConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseliningJobName" => { + builder = builder.set_baselining_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConstraintsResource" => { + builder = builder.set_constraints_resource( + crate::json_deser::deser_structure_monitoring_constraints_resource(tokens)? + ); + } + "StatisticsResource" => { + builder = builder.set_statistics_resource( + crate::json_deser::deser_structure_monitoring_statistics_resource(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_quality_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataQualityAppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContainerEntrypoint" => { + builder = builder.set_container_entrypoint( + crate::json_deser::deser_list_container_entrypoint(tokens)?, + ); + } + "ContainerArguments" => { + builder = builder.set_container_arguments( + crate::json_deser::deser_list_monitoring_container_arguments( + tokens, + )?, + ); + } + "RecordPreprocessorSourceUri" => { + builder = builder.set_record_preprocessor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PostAnalyticsProcessorSourceUri" => { + builder = builder.set_post_analytics_processor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_monitoring_environment_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_quality_job_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataQualityJobInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointInput" => { + builder = builder.set_endpoint_input( + crate::json_deser::deser_structure_endpoint_input(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringOutputs" => { + builder = builder.set_monitoring_outputs( + crate::json_deser::deser_list_monitoring_outputs(tokens)?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_resources<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringResources::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ClusterConfig" => { + builder = builder.set_cluster_config( + crate::json_deser::deser_structure_monitoring_cluster_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_network_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringNetworkConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_stopping_condition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringStoppingCondition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxRuntimeInSeconds" => { + builder = builder.set_max_runtime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_edge_models<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_edge_model(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_edge_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgeOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputLocation" => { + builder = builder.set_s3_output_location( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PresetDeploymentType" => { + builder = builder.set_preset_deployment_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EdgePresetDeploymentType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "PresetDeploymentConfig" => { + builder = builder.set_preset_deployment_config( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_user_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UserSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExecutionRole" => { + builder = builder.set_execution_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SecurityGroups" => { + builder = builder.set_security_groups( + crate::json_deser::deser_list_security_group_ids(tokens)?, + ); + } + "SharingSettings" => { + builder = builder.set_sharing_settings( + crate::json_deser::deser_structure_sharing_settings(tokens)?, + ); + } + "JupyterServerAppSettings" => { + builder = builder.set_jupyter_server_app_settings( + crate::json_deser::deser_structure_jupyter_server_app_settings( + tokens, + )?, + ); + } + "KernelGatewayAppSettings" => { + builder = builder.set_kernel_gateway_app_settings( + crate::json_deser::deser_structure_kernel_gateway_app_settings( + tokens, + )?, + ); + } + "TensorBoardAppSettings" => { + builder = builder.set_tensor_board_app_settings( + crate::json_deser::deser_structure_tensor_board_app_settings( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_subnets<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_edge_preset_deployment_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgePresetDeploymentOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EdgePresetDeploymentType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Artifact" => { + builder = builder.set_artifact( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EdgePresetDeploymentStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_production_variant_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_production_variant_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_data_capture_config_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataCaptureConfigSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EnableCapture" => { + builder = builder.set_enable_capture( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CaptureStatus" => { + builder = builder.set_capture_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CaptureStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CurrentSamplingPercentage" => { + builder = builder.set_current_sampling_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DestinationS3Uri" => { + builder = builder.set_destination_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployment_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeploymentConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BlueGreenUpdatePolicy" => { + builder = builder.set_blue_green_update_policy( + crate::json_deser::deser_structure_blue_green_update_policy( + tokens, + )?, + ); + } + "AutoRollbackConfiguration" => { + builder = builder.set_auto_rollback_configuration( + crate::json_deser::deser_structure_auto_rollback_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_production_variant_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_production_variant(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_data_capture_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataCaptureConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EnableCapture" => { + builder = builder.set_enable_capture( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "InitialSamplingPercentage" => { + builder = builder.set_initial_sampling_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DestinationS3Uri" => { + builder = builder.set_destination_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CaptureOptions" => { + builder = builder.set_capture_options( + crate::json_deser::deser_list_capture_option_list(tokens)?, + ); + } + "CaptureContentTypeHeader" => { + builder = builder.set_capture_content_type_header( + crate::json_deser::deser_structure_capture_content_type_header( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_experiment_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExperimentSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_feature_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_feature_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_online_store_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OnlineStoreConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SecurityConfig" => { + builder = builder.set_security_config( + crate::json_deser::deser_structure_online_store_security_config(tokens)? + ); + } + "EnableOnlineStore" => { + builder = builder.set_enable_online_store( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_offline_store_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OfflineStoreConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3StorageConfig" => { + builder = builder.set_s3_storage_config( + crate::json_deser::deser_structure_s3_storage_config(tokens)?, + ); + } + "DisableGlueTableCreation" => { + builder = builder.set_disable_glue_table_creation( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "DataCatalogConfig" => { + builder = builder.set_data_catalog_config( + crate::json_deser::deser_structure_data_catalog_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_offline_store_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OfflineStoreStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OfflineStoreStatusValue::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "BlockedReason" => { + builder = builder.set_blocked_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_loop_request_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopRequestSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AwsManagedHumanLoopRequestSource" => { + builder = builder.set_aws_managed_human_loop_request_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AwsManagedHumanLoopRequestSource::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_loop_activation_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopActivationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLoopActivationConditionsConfig" => { + builder = builder.set_human_loop_activation_conditions_config( + crate::json_deser::deser_structure_human_loop_activation_conditions_config(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_loop_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanTaskUiArn" => { + builder = builder.set_human_task_ui_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskTitle" => { + builder = builder.set_task_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskDescription" => { + builder = builder.set_task_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskCount" => { + builder = builder.set_task_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TaskAvailabilityLifetimeInSeconds" => { + builder = builder.set_task_availability_lifetime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TaskTimeLimitInSeconds" => { + builder = builder.set_task_time_limit_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TaskKeywords" => { + builder = builder.set_task_keywords( + crate::json_deser::deser_list_flow_definition_task_keywords( + tokens, + )?, + ); + } + "PublicWorkforceTaskPrice" => { + builder = builder.set_public_workforce_task_price( + crate::json_deser::deser_structure_public_workforce_task_price( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_flow_definition_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FlowDefinitionOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ui_template_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UiTemplateInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContentSha256" => { + builder = builder.set_content_sha256( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_tuning_job_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTuningJobConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Strategy" => { + builder = builder.set_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterTuningJobStrategyType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "HyperParameterTuningJobObjective" => { + builder = builder.set_hyper_parameter_tuning_job_objective( + crate::json_deser::deser_structure_hyper_parameter_tuning_job_objective(tokens)? + ); + } + "ResourceLimits" => { + builder = builder.set_resource_limits( + crate::json_deser::deser_structure_resource_limits(tokens)?, + ); + } + "ParameterRanges" => { + builder = builder.set_parameter_ranges( + crate::json_deser::deser_structure_parameter_ranges(tokens)?, + ); + } + "TrainingJobEarlyStoppingType" => { + builder = builder.set_training_job_early_stopping_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingJobEarlyStoppingType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "TuningJobCompletionCriteria" => { + builder = builder.set_tuning_job_completion_criteria( + crate::json_deser::deser_structure_tuning_job_completion_criteria(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_training_job_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTrainingJobDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DefinitionName" => { + builder = builder.set_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TuningObjective" => { + builder = builder.set_tuning_objective( + crate::json_deser::deser_structure_hyper_parameter_tuning_job_objective(tokens)? + ); + } + "HyperParameterRanges" => { + builder = builder.set_hyper_parameter_ranges( + crate::json_deser::deser_structure_parameter_ranges(tokens)?, + ); + } + "StaticHyperParameters" => { + builder = builder.set_static_hyper_parameters( + crate::json_deser::deser_map_hyper_parameters(tokens)?, + ); + } + "AlgorithmSpecification" => { + builder = builder.set_algorithm_specification( + crate::json_deser::deser_structure_hyper_parameter_algorithm_specification(tokens)? + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputDataConfig" => { + builder = builder.set_input_data_config( + crate::json_deser::deser_list_input_data_config(tokens)?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config(tokens)?, + ); + } + "OutputDataConfig" => { + builder = builder.set_output_data_config( + crate::json_deser::deser_structure_output_data_config(tokens)?, + ); + } + "ResourceConfig" => { + builder = builder.set_resource_config( + crate::json_deser::deser_structure_resource_config(tokens)?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_stopping_condition(tokens)?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableManagedSpotTraining" => { + builder = builder.set_enable_managed_spot_training( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CheckpointConfig" => { + builder = builder.set_checkpoint_config( + crate::json_deser::deser_structure_checkpoint_config(tokens)?, + ); + } + "RetryStrategy" => { + builder = builder.set_retry_strategy( + crate::json_deser::deser_structure_retry_strategy(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_hyper_parameter_training_job_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_hyper_parameter_training_job_definition(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_training_job_status_counters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingJobStatusCounters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Completed" => { + builder = builder.set_completed( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InProgress" => { + builder = builder.set_in_progress( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RetryableError" => { + builder = builder.set_retryable_error( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "NonRetryableError" => { + builder = builder.set_non_retryable_error( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Stopped" => { + builder = builder.set_stopped( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_objective_status_counters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ObjectiveStatusCounters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Succeeded" => { + builder = builder.set_succeeded( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Pending" => { + builder = builder.set_pending( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Failed" => { + builder = builder.set_failed( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_training_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTrainingJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobDefinitionName" => { + builder = builder.set_training_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobName" => { + builder = builder.set_training_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TuningJobName" => { + builder = builder.set_tuning_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingStartTime" => { + builder = builder.set_training_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingEndTime" => { + builder = builder.set_training_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingJobStatus" => { + builder = builder.set_training_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "TunedHyperParameters" => { + builder = builder.set_tuned_hyper_parameters( + crate::json_deser::deser_map_hyper_parameters(tokens)?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FinalHyperParameterTuningJobObjectiveMetric" => { + builder = builder.set_final_hyper_parameter_tuning_job_objective_metric( + crate::json_deser::deser_structure_final_hyper_parameter_tuning_job_objective_metric(tokens)? + ); + } + "ObjectiveStatus" => { + builder = builder.set_objective_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ObjectiveStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_tuning_job_warm_start_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTuningJobWarmStartConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ParentHyperParameterTuningJobs" => { + builder = builder.set_parent_hyper_parameter_tuning_jobs( + crate::json_deser::deser_list_parent_hyper_parameter_tuning_jobs(tokens)? + ); + } + "WarmStartType" => { + builder = builder.set_warm_start_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::HyperParameterTuningJobWarmStartType::from(u.as_ref()) + ) + ).transpose()? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_label_counters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelCounters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TotalLabeled" => { + builder = builder.set_total_labeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "HumanLabeled" => { + builder = builder.set_human_labeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MachineLabeled" => { + builder = builder.set_machine_labeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "FailedNonRetryableError" => { + builder = builder.set_failed_non_retryable_error( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Unlabeled" => { + builder = builder.set_unlabeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_input_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobInputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DataSource" => { + builder = builder.set_data_source( + crate::json_deser::deser_structure_labeling_job_data_source( + tokens, + )?, + ); + } + "DataAttributes" => { + builder = builder.set_data_attributes( + crate::json_deser::deser_structure_labeling_job_data_attributes(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SnsTopicArn" => { + builder = builder.set_sns_topic_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_stopping_conditions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobStoppingConditions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxHumanLabeledObjectCount" => { + builder = builder.set_max_human_labeled_object_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxPercentageOfInputDatasetLabeled" => { + builder = builder.set_max_percentage_of_input_dataset_labeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_algorithms_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobAlgorithmsConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobAlgorithmSpecificationArn" => { + builder = builder.set_labeling_job_algorithm_specification_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InitialActiveLearningModelArn" => { + builder = builder.set_initial_active_learning_model_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobResourceConfig" => { + builder = builder.set_labeling_job_resource_config( + crate::json_deser::deser_structure_labeling_job_resource_config(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_task_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanTaskConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UiConfig" => { + builder = builder.set_ui_config( + crate::json_deser::deser_structure_ui_config(tokens)?, + ); + } + "PreHumanTaskLambdaArn" => { + builder = builder.set_pre_human_task_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskKeywords" => { + builder = builder.set_task_keywords( + crate::json_deser::deser_list_task_keywords(tokens)?, + ); + } + "TaskTitle" => { + builder = builder.set_task_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskDescription" => { + builder = builder.set_task_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NumberOfHumanWorkersPerDataObject" => { + builder = builder.set_number_of_human_workers_per_data_object( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TaskTimeLimitInSeconds" => { + builder = builder.set_task_time_limit_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TaskAvailabilityLifetimeInSeconds" => { + builder = builder.set_task_availability_lifetime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxConcurrentTaskCount" => { + builder = builder.set_max_concurrent_task_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "AnnotationConsolidationConfig" => { + builder = builder.set_annotation_consolidation_config( + crate::json_deser::deser_structure_annotation_consolidation_config(tokens)? + ); + } + "PublicWorkforceTaskPrice" => { + builder = builder.set_public_workforce_task_price( + crate::json_deser::deser_structure_public_workforce_task_price( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputDatasetS3Uri" => { + builder = builder.set_output_dataset_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FinalActiveLearningModelArn" => { + builder = builder.set_final_active_learning_model_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_container_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContainerDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContainerHostname" => { + builder = builder.set_container_hostname( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageConfig" => { + builder = builder.set_image_config( + crate::json_deser::deser_structure_image_config(tokens)?, + ); + } + "Mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ContainerMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ModelDataUrl" => { + builder = builder.set_model_data_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_environment_map(tokens)?, + ); + } + "ModelPackageName" => { + builder = builder.set_model_package_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MultiModelConfig" => { + builder = builder.set_multi_model_config( + crate::json_deser::deser_structure_multi_model_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_definition_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_container_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_inference_execution_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InferenceExecutionConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InferenceExecutionMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_vpc_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VpcConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SecurityGroupIds" => { + builder = builder.set_security_group_ids( + crate::json_deser::deser_list_vpc_security_group_ids(tokens)?, + ); + } + "Subnets" => { + builder = builder + .set_subnets(crate::json_deser::deser_list_subnets(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_bias_baseline_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelBiasBaselineConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseliningJobName" => { + builder = builder.set_baselining_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConstraintsResource" => { + builder = builder.set_constraints_resource( + crate::json_deser::deser_structure_monitoring_constraints_resource(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_bias_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelBiasAppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConfigUri" => { + builder = builder.set_config_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_monitoring_environment_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_bias_job_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelBiasJobInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointInput" => { + builder = builder.set_endpoint_input( + crate::json_deser::deser_structure_endpoint_input(tokens)?, + ); + } + "GroundTruthS3Input" => { + builder = builder.set_ground_truth_s3_input( + crate::json_deser::deser_structure_monitoring_ground_truth_s3_input(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_explainability_baseline_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelExplainabilityBaselineConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseliningJobName" => { + builder = builder.set_baselining_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConstraintsResource" => { + builder = builder.set_constraints_resource( + crate::json_deser::deser_structure_monitoring_constraints_resource(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_explainability_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelExplainabilityAppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConfigUri" => { + builder = builder.set_config_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_monitoring_environment_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_explainability_job_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelExplainabilityJobInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointInput" => { + builder = builder.set_endpoint_input( + crate::json_deser::deser_structure_endpoint_input(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_algorithm_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceAlgorithmSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceAlgorithms" => { + builder = builder.set_source_algorithms( + crate::json_deser::deser_list_source_algorithm_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_validation_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageValidationSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ValidationRole" => { + builder = builder.set_validation_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ValidationProfiles" => { + builder = builder.set_validation_profiles( + crate::json_deser::deser_list_model_package_validation_profiles(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_status_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageStatusDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ValidationStatuses" => { + builder = builder.set_validation_statuses( + crate::json_deser::deser_list_model_package_status_item_list( + tokens, + )?, + ); + } + "ImageScanStatuses" => { + builder = builder.set_image_scan_statuses( + crate::json_deser::deser_list_model_package_status_item_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_metrics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelMetrics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelQuality" => { + builder = builder.set_model_quality( + crate::json_deser::deser_structure_model_quality(tokens)?, + ); + } + "ModelDataQuality" => { + builder = builder.set_model_data_quality( + crate::json_deser::deser_structure_model_data_quality(tokens)?, + ); + } + "Bias" => { + builder = builder + .set_bias(crate::json_deser::deser_structure_bias(tokens)?); + } + "Explainability" => { + builder = builder.set_explainability( + crate::json_deser::deser_structure_explainability(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_quality_baseline_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelQualityBaselineConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseliningJobName" => { + builder = builder.set_baselining_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConstraintsResource" => { + builder = builder.set_constraints_resource( + crate::json_deser::deser_structure_monitoring_constraints_resource(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_quality_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelQualityAppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContainerEntrypoint" => { + builder = builder.set_container_entrypoint( + crate::json_deser::deser_list_container_entrypoint(tokens)?, + ); + } + "ContainerArguments" => { + builder = builder.set_container_arguments( + crate::json_deser::deser_list_monitoring_container_arguments( + tokens, + )?, + ); + } + "RecordPreprocessorSourceUri" => { + builder = builder.set_record_preprocessor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PostAnalyticsProcessorSourceUri" => { + builder = builder.set_post_analytics_processor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProblemType" => { + builder = builder.set_problem_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MonitoringProblemType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_monitoring_environment_map( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_quality_job_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelQualityJobInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointInput" => { + builder = builder.set_endpoint_input( + crate::json_deser::deser_structure_endpoint_input(tokens)?, + ); + } + "GroundTruthS3Input" => { + builder = builder.set_ground_truth_s3_input( + crate::json_deser::deser_structure_monitoring_ground_truth_s3_input(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_schedule_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringScheduleConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ScheduleConfig" => { + builder = builder.set_schedule_config( + crate::json_deser::deser_structure_schedule_config(tokens)?, + ); + } + "MonitoringJobDefinition" => { + builder = builder.set_monitoring_job_definition( + crate::json_deser::deser_structure_monitoring_job_definition( + tokens, + )?, + ); + } + "MonitoringJobDefinitionName" => { + builder = builder.set_monitoring_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringType" => { + builder = builder.set_monitoring_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MonitoringType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_execution_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringExecutionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleName" => { + builder = builder.set_monitoring_schedule_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduledTime" => { + builder = builder.set_scheduled_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringExecutionStatus" => { + builder = builder.set_monitoring_execution_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ExecutionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ProcessingJobArn" => { + builder = builder.set_processing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringJobDefinitionName" => { + builder = builder.set_monitoring_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringType" => { + builder = builder.set_monitoring_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MonitoringType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_security_group_ids<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_notebook_instance_accelerator_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NotebookInstanceAcceleratorType::from( + u.as_ref(), + ) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_additional_code_repository_names_or_urls<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_notebook_instance_lifecycle_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_notebook_instance_lifecycle_hook( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_pipeline_experiment_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineExperimentConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_processing_inputs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_processing_input(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_processing_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Outputs" => { + builder = builder.set_outputs( + crate::json_deser::deser_list_processing_outputs(tokens)?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_resources<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingResources::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ClusterConfig" => { + builder = builder.set_cluster_config( + crate::json_deser::deser_structure_processing_cluster_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_stopping_condition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingStoppingCondition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxRuntimeInSeconds" => { + builder = builder.set_max_runtime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContainerEntrypoint" => { + builder = builder.set_container_entrypoint( + crate::json_deser::deser_list_container_entrypoint(tokens)?, + ); + } + "ContainerArguments" => { + builder = builder.set_container_arguments( + crate::json_deser::deser_list_container_arguments(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_processing_environment_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_network_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NetworkConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_experiment_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExperimentConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentDisplayName" => { + builder = builder.set_trial_component_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_service_catalog_provisioning_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ServiceCatalogProvisioningDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProductId" => { + builder = builder.set_product_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisioningArtifactId" => { + builder = builder.set_provisioning_artifact_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PathId" => { + builder = builder.set_path_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisioningParameters" => { + builder = builder.set_provisioning_parameters( + crate::json_deser::deser_list_provisioning_parameters(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_service_catalog_provisioned_product_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ServiceCatalogProvisionedProductDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProvisionedProductId" => { + builder = builder.set_provisioned_product_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProvisionedProductStatusMessage" => { + builder = builder.set_provisioned_product_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_subscribed_workteam<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SubscribedWorkteam::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MarketplaceTitle" => { + builder = builder.set_marketplace_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SellerName" => { + builder = builder.set_seller_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MarketplaceDescription" => { + builder = builder.set_marketplace_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ListingId" => { + builder = builder.set_listing_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_hyper_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingImage" => { + builder = builder.set_training_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmName" => { + builder = builder.set_algorithm_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingInputMode" => { + builder = builder.set_training_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "MetricDefinitions" => { + builder = builder.set_metric_definitions( + crate::json_deser::deser_list_metric_definition_list(tokens)?, + ); + } + "EnableSageMakerMetricsTimeSeries" => { + builder = builder.set_enable_sage_maker_metrics_time_series( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_input_data_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_channel(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_output_data_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputDataConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "InstanceCount" => { + builder = builder.set_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secondary_status_transitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_secondary_status_transition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_final_metric_data_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_metric_data(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_checkpoint_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CheckpointConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_debug_hook_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DebugHookConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HookParameters" => { + builder = builder.set_hook_parameters( + crate::json_deser::deser_map_hook_parameters(tokens)?, + ); + } + "CollectionConfigurations" => { + builder = builder.set_collection_configurations( + crate::json_deser::deser_list_collection_configurations( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_debug_rule_configurations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_debug_rule_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_tensor_board_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TensorBoardOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_debug_rule_evaluation_statuses<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_debug_rule_evaluation_status( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_profiler_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProfilerConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProfilingIntervalInMilliseconds" => { + builder = builder.set_profiling_interval_in_milliseconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ProfilingParameters" => { + builder = builder.set_profiling_parameters( + crate::json_deser::deser_map_profiling_parameters(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_profiler_rule_configurations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_profiler_rule_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_profiler_rule_evaluation_statuses<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_profiler_rule_evaluation_status( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_retry_strategy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RetryStrategy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaximumRetryAttempts" => { + builder = builder.set_maximum_retry_attempts( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_training_environment_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_client_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelClientConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InvocationsTimeoutInSeconds" => { + builder = builder.set_invocations_timeout_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InvocationsMaxRetries" => { + builder = builder.set_invocations_max_retries( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_transform_environment_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DataSource" => { + builder = builder.set_data_source( + crate::json_deser::deser_structure_transform_data_source( + tokens, + )?, + ); + } + "ContentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompressionType" => { + builder = builder.set_compression_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CompressionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "SplitType" => { + builder = builder.set_split_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SplitType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Accept" => { + builder = builder.set_accept( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssembleWith" => { + builder = builder.set_assemble_with( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AssemblyType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_resources<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformResources::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransformInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "InstanceCount" => { + builder = builder.set_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_processing<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataProcessing::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InputFilter" => { + builder = builder.set_input_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputFilter" => { + builder = builder.set_output_filter( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JoinSource" => { + builder = builder.set_join_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JoinSource::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_component_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_component_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PrimaryStatus" => { + builder = builder.set_primary_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrialComponentPrimaryStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_trial_component_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_union_trial_component_parameter_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_trial_component_artifacts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_structure_trial_component_artifact(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_trial_component_metric_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_trial_component_metric_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_workforce<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Workforce::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkforceName" => { + builder = builder.set_workforce_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WorkforceArn" => { + builder = builder.set_workforce_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "SourceIpConfig" => { + builder = builder.set_source_ip_config( + crate::json_deser::deser_structure_source_ip_config(tokens)?, + ); + } + "SubDomain" => { + builder = builder.set_sub_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CognitoConfig" => { + builder = builder.set_cognito_config( + crate::json_deser::deser_structure_cognito_config(tokens)?, + ); + } + "OidcConfig" => { + builder = builder.set_oidc_config( + crate::json_deser::deser_structure_oidc_config_for_response( + tokens, + )?, + ); + } + "CreateDate" => { + builder = builder.set_create_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_workteam<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Workteam::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WorkteamName" => { + builder = builder.set_workteam_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MemberDefinitions" => { + builder = builder.set_member_definitions( + crate::json_deser::deser_list_member_definitions(tokens)?, + ); + } + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WorkforceArn" => { + builder = builder.set_workforce_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductListingIds" => { + builder = builder.set_product_listing_ids( + crate::json_deser::deser_list_product_listings(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SubDomain" => { + builder = builder.set_sub_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreateDate" => { + builder = builder.set_create_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastUpdatedDate" => { + builder = builder.set_last_updated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "NotificationConfiguration" => { + builder = builder.set_notification_configuration( + crate::json_deser::deser_structure_notification_configuration( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_device_stats<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeviceStats::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConnectedDeviceCount" => { + builder = builder.set_connected_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "RegisteredDeviceCount" => { + builder = builder.set_registered_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_agent_versions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_agent_version(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_edge_model_stats<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_edge_model_stat(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_property_name_suggestion_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_property_name_suggestion(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_action_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_action_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_algorithm_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_algorithm_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_app_image_config_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_app_image_config_details(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_app_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_app_details(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_artifact_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_artifact_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_association_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_ml_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_auto_ml_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_ml_candidates<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_auto_ml_candidate(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_code_repository_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_code_repository_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compilation_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_compilation_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_context_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_context_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_job_definition_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_monitoring_job_definition_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_device_fleet_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_device_fleet_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_device_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_device_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_domain_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_domain_details(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_edge_packaging_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_edge_packaging_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_endpoint_config_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_endpoint_config_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_endpoint_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_endpoint_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_experiment_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_experiment_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_feature_group_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_feature_group_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_flow_definition_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_flow_definition_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_human_task_ui_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_human_task_ui_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_hyper_parameter_tuning_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_hyper_parameter_tuning_job_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_images<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_image_versions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_image_version(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_labeling_job_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_labeling_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_labeling_job_for_workteam_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_labeling_job_for_workteam_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_package_group_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_model_package_group_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_package_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_model_package_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_model_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_execution_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_monitoring_execution_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_schedule_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_monitoring_schedule_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_notebook_instance_lifecycle_config_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_notebook_instance_lifecycle_config_summary(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_notebook_instance_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_notebook_instance_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_pipeline_execution_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_pipeline_execution_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_pipeline_execution_step_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_pipeline_execution_step(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_parameter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_pipeline_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_pipeline_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_processing_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_processing_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_project_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_project_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_subscribed_workteams<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_subscribed_workteam(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_training_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_training_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_hyper_parameter_training_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_hyper_parameter_training_job_summary(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_transform_job_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_transform_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_trial_component_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_trial_component_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_trial_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_trial_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_user_profile_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_user_profile_details(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_workforces<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_workforce(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_workteams<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_workteam(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_rendering_error_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_rendering_error(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_search_results_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_search_record(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_hyper_parameter_specifications<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_hyper_parameter_specification( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_training_instance_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_metric_definition_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_metric_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_channel_specifications<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_channel_specification(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_hyper_parameter_tuning_job_objectives<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_hyper_parameter_tuning_job_objective(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_package_container_definition_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_model_package_container_definition( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_transform_instance_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransformInstanceType::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_realtime_inference_instance_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProductionVariantInstanceType::from( + u.as_ref(), + ) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_content_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_response_mime_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_algorithm_validation_profiles<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_algorithm_validation_profile( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_algorithm_status_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_algorithm_status_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_kernel_specs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_kernel_spec(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_file_system_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FileSystemConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MountPath" => { + builder = builder.set_mount_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultUid" => { + builder = builder.set_default_uid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DefaultGid" => { + builder = builder.set_default_gid( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_artifact_source_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_artifact_source_type(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_auto_ml_channel<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlChannel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DataSource" => { + builder = builder.set_data_source( + crate::json_deser::deser_structure_auto_ml_data_source(tokens)?, + ); + } + "CompressionType" => { + builder = builder.set_compression_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CompressionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "TargetAttributeName" => { + builder = builder.set_target_attribute_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_job_completion_criteria<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlJobCompletionCriteria::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxCandidates" => { + builder = builder.set_max_candidates( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxRuntimePerTrainingJobInSeconds" => { + builder = builder.set_max_runtime_per_training_job_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxAutoMLJobRuntimeInSeconds" => { + builder = builder.set_max_auto_ml_job_runtime_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_security_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlSecurityConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_partial_failure_reason<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlPartialFailureReason::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PartialFailureMessage" => { + builder = builder.set_partial_failure_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_final_auto_ml_job_objective_metric<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FinalAutoMlJobObjectiveMetric::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlJobObjectiveType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlMetricEnum::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_candidate_steps<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_auto_ml_candidate_step(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_auto_ml_container_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_auto_ml_container_definition( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_candidate_properties<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CandidateProperties::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CandidateArtifactLocations" => { + builder = builder.set_candidate_artifact_locations( + crate::json_deser::deser_structure_candidate_artifact_locations(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_target_platform<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TargetPlatform::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Os" => { + builder = builder.set_os( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformOs::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Arch" => { + builder = builder.set_arch( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformArch::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Accelerator" => { + builder = builder.set_accelerator( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformAccelerator::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_constraints_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringConstraintsResource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_statistics_resource<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringStatisticsResource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_entrypoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_container_arguments<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_monitoring_environment_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EndpointInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3InputMode" => { + builder = builder.set_s3_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3InputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "S3DataDistributionType" => { + builder = builder.set_s3_data_distribution_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3DataDistributionType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "FeaturesAttribute" => { + builder = builder.set_features_attribute( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InferenceAttribute" => { + builder = builder.set_inference_attribute( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProbabilityAttribute" => { + builder = builder.set_probability_attribute( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProbabilityThresholdAttribute" => { + builder = builder.set_probability_threshold_attribute( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "StartTimeOffset" => { + builder = builder.set_start_time_offset( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndTimeOffset" => { + builder = builder.set_end_time_offset( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_outputs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_monitoring_output(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_monitoring_cluster_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringClusterConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceCount" => { + builder = builder.set_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_edge_model<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgeModel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelVersion" => { + builder = builder.set_model_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LatestSampleTime" => { + builder = builder.set_latest_sample_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LatestInference" => { + builder = builder.set_latest_inference( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sharing_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SharingSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookOutputOption" => { + builder = builder.set_notebook_output_option( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NotebookOutputOption::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3KmsKeyId" => { + builder = builder.set_s3_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_jupyter_server_app_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::JupyterServerAppSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DefaultResourceSpec" => { + builder = builder.set_default_resource_spec( + crate::json_deser::deser_structure_resource_spec(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kernel_gateway_app_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KernelGatewayAppSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DefaultResourceSpec" => { + builder = builder.set_default_resource_spec( + crate::json_deser::deser_structure_resource_spec(tokens)?, + ); + } + "CustomImages" => { + builder = builder.set_custom_images( + crate::json_deser::deser_list_custom_images(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tensor_board_app_settings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TensorBoardAppSettings::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DefaultResourceSpec" => { + builder = builder.set_default_resource_spec( + crate::json_deser::deser_structure_resource_spec(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_production_variant_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProductionVariantSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VariantName" => { + builder = builder.set_variant_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeployedImages" => { + builder = builder.set_deployed_images( + crate::json_deser::deser_list_deployed_images(tokens)?, + ); + } + "CurrentWeight" => { + builder = builder.set_current_weight( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + "DesiredWeight" => { + builder = builder.set_desired_weight( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + "CurrentInstanceCount" => { + builder = builder.set_current_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DesiredInstanceCount" => { + builder = builder.set_desired_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_blue_green_update_policy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BlueGreenUpdatePolicy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrafficRoutingConfiguration" => { + builder = builder.set_traffic_routing_configuration( + crate::json_deser::deser_structure_traffic_routing_config( + tokens, + )?, + ); + } + "TerminationWaitInSeconds" => { + builder = builder.set_termination_wait_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaximumExecutionTimeoutInSeconds" => { + builder = builder.set_maximum_execution_timeout_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_rollback_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoRollbackConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Alarms" => { + builder = builder + .set_alarms(crate::json_deser::deser_list_alarm_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_production_variant<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProductionVariant::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VariantName" => { + builder = builder.set_variant_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InitialInstanceCount" => { + builder = builder.set_initial_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProductionVariantInstanceType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "InitialVariantWeight" => { + builder = builder.set_initial_variant_weight( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + "AcceleratorType" => { + builder = builder.set_accelerator_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProductionVariantAcceleratorType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "CoreDumpConfig" => { + builder = builder.set_core_dump_config( + crate::json_deser::deser_structure_production_variant_core_dump_config(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_capture_option_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_capture_option(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_capture_content_type_header<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptureContentTypeHeader::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CsvContentTypes" => { + builder = builder.set_csv_content_types( + crate::json_deser::deser_list_csv_content_types(tokens)?, + ); + } + "JsonContentTypes" => { + builder = builder.set_json_content_types( + crate::json_deser::deser_list_json_content_types(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_feature_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FeatureDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureName" => { + builder = builder.set_feature_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureType" => { + builder = builder.set_feature_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FeatureType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_online_store_security_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OnlineStoreSecurityConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_s3_storage_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3StorageConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResolvedOutputS3Uri" => { + builder = builder.set_resolved_output_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_catalog_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataCatalogConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TableName" => { + builder = builder.set_table_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Catalog" => { + builder = builder.set_catalog( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Database" => { + builder = builder.set_database( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_loop_activation_conditions_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopActivationConditionsConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLoopActivationConditions" => { + builder = builder.set_human_loop_activation_conditions( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_flow_definition_task_keywords<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_public_workforce_task_price<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PublicWorkforceTaskPrice::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AmountInUsd" => { + builder = builder.set_amount_in_usd( + crate::json_deser::deser_structure_usd(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_tuning_job_objective<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTuningJobObjective::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::HyperParameterTuningJobObjectiveType::from(u.as_ref()) + ) + ).transpose()? + ); + } + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_limits<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceLimits::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxNumberOfTrainingJobs" => { + builder = builder.set_max_number_of_training_jobs( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxParallelTrainingJobs" => { + builder = builder.set_max_parallel_training_jobs( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter_ranges<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParameterRanges::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IntegerParameterRanges" => { + builder = builder.set_integer_parameter_ranges( + crate::json_deser::deser_list_integer_parameter_ranges(tokens)?, + ); + } + "ContinuousParameterRanges" => { + builder = builder.set_continuous_parameter_ranges( + crate::json_deser::deser_list_continuous_parameter_ranges( + tokens, + )?, + ); + } + "CategoricalParameterRanges" => { + builder = builder.set_categorical_parameter_ranges( + crate::json_deser::deser_list_categorical_parameter_ranges( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tuning_job_completion_criteria<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TuningJobCompletionCriteria::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TargetObjectiveMetricValue" => { + builder = builder.set_target_objective_metric_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_algorithm_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterAlgorithmSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingImage" => { + builder = builder.set_training_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingInputMode" => { + builder = builder.set_training_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "AlgorithmName" => { + builder = builder.set_algorithm_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MetricDefinitions" => { + builder = builder.set_metric_definitions( + crate::json_deser::deser_list_metric_definition_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_final_hyper_parameter_tuning_job_objective_metric<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FinalHyperParameterTuningJobObjectiveMetric::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s| + s.to_unescaped().map(|u| + crate::model::HyperParameterTuningJobObjectiveType::from(u.as_ref()) + ) + ).transpose()? + ); + } + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parent_hyper_parameter_tuning_jobs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_parent_hyper_parameter_tuning_job( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_labeling_job_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataSource" => { + builder = builder.set_s3_data_source( + crate::json_deser::deser_structure_labeling_job_s3_data_source( + tokens, + )?, + ); + } + "SnsDataSource" => { + builder = builder.set_sns_data_source( + crate::json_deser::deser_structure_labeling_job_sns_data_source(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_data_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobDataAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContentClassifiers" => { + builder = builder.set_content_classifiers( + crate::json_deser::deser_list_content_classifiers(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_resource_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobResourceConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ui_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UiConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UiTemplateS3Uri" => { + builder = builder.set_ui_template_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanTaskUiArn" => { + builder = builder.set_human_task_ui_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_task_keywords<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_annotation_consolidation_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AnnotationConsolidationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AnnotationConsolidationLambdaArn" => { + builder = builder.set_annotation_consolidation_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RepositoryAccessMode" => { + builder = builder.set_repository_access_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RepositoryAccessMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "RepositoryAuthConfig" => { + builder = builder.set_repository_auth_config( + crate::json_deser::deser_structure_repository_auth_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_environment_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_multi_model_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MultiModelConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelCacheSetting" => { + builder = builder.set_model_cache_setting( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelCacheSetting::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_vpc_security_group_ids<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_monitoring_ground_truth_s3_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringGroundTruthS3Input::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_source_algorithm_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_source_algorithm(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_package_validation_profiles<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_model_package_validation_profile( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_model_package_status_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_model_package_status_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_model_quality<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelQuality::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Statistics" => { + builder = builder.set_statistics( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + "Constraints" => { + builder = builder.set_constraints( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_data_quality<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelDataQuality::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Statistics" => { + builder = builder.set_statistics( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + "Constraints" => { + builder = builder.set_constraints( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_bias<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Bias::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Report" => { + builder = builder.set_report( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_explainability<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Explainability::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Report" => { + builder = builder.set_report( + crate::json_deser::deser_structure_metrics_source(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_schedule_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ScheduleConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ScheduleExpression" => { + builder = builder.set_schedule_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_job_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringJobDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineConfig" => { + builder = builder.set_baseline_config( + crate::json_deser::deser_structure_monitoring_baseline_config( + tokens, + )?, + ); + } + "MonitoringInputs" => { + builder = builder.set_monitoring_inputs( + crate::json_deser::deser_list_monitoring_inputs(tokens)?, + ); + } + "MonitoringOutputConfig" => { + builder = builder.set_monitoring_output_config( + crate::json_deser::deser_structure_monitoring_output_config( + tokens, + )?, + ); + } + "MonitoringResources" => { + builder = builder.set_monitoring_resources( + crate::json_deser::deser_structure_monitoring_resources( + tokens, + )?, + ); + } + "MonitoringAppSpecification" => { + builder = builder.set_monitoring_app_specification( + crate::json_deser::deser_structure_monitoring_app_specification(tokens)? + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_monitoring_stopping_condition(tokens)? + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_monitoring_environment_map( + tokens, + )?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_notebook_instance_lifecycle_hook<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NotebookInstanceLifecycleHook::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Content" => { + builder = builder.set_content( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InputName" => { + builder = builder.set_input_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppManaged" => { + builder = builder.set_app_managed( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "S3Input" => { + builder = builder.set_s3_input( + crate::json_deser::deser_structure_processing_s3_input(tokens)?, + ); + } + "DatasetDefinition" => { + builder = builder.set_dataset_definition( + crate::json_deser::deser_structure_dataset_definition(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_processing_outputs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_processing_output(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_processing_cluster_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingClusterConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceCount" => { + builder = builder.set_instance_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "VolumeKmsKeyId" => { + builder = builder.set_volume_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_container_arguments<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_provisioning_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_provisioning_parameter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_channel<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Channel::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ChannelName" => { + builder = builder.set_channel_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataSource" => { + builder = builder.set_data_source( + crate::json_deser::deser_structure_data_source(tokens)?, + ); + } + "ContentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompressionType" => { + builder = builder.set_compression_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CompressionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "RecordWrapperType" => { + builder = builder.set_record_wrapper_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::RecordWrapper::from(u.as_ref())) + }) + .transpose()?, + ); + } + "InputMode" => { + builder = builder.set_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ShuffleConfig" => { + builder = builder.set_shuffle_config( + crate::json_deser::deser_structure_shuffle_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_secondary_status_transition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SecondaryStatusTransition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SecondaryStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "StatusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metric_data<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricData::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f32()), + ); + } + "Timestamp" => { + builder = builder.set_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_hook_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_collection_configurations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_collection_configuration(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_debug_rule_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DebugRuleConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RuleConfigurationName" => { + builder = builder.set_rule_configuration_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluatorImage" => { + builder = builder.set_rule_evaluator_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RuleParameters" => { + builder = builder.set_rule_parameters( + crate::json_deser::deser_map_rule_parameters(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_debug_rule_evaluation_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DebugRuleEvaluationStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RuleConfigurationName" => { + builder = builder.set_rule_configuration_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluationJobArn" => { + builder = builder.set_rule_evaluation_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluationStatus" => { + builder = builder.set_rule_evaluation_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RuleEvaluationStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_profiling_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_profiler_rule_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProfilerRuleConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RuleConfigurationName" => { + builder = builder.set_rule_configuration_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3OutputPath" => { + builder = builder.set_s3_output_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluatorImage" => { + builder = builder.set_rule_evaluator_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingInstanceType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "VolumeSizeInGB" => { + builder = builder.set_volume_size_in_gb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RuleParameters" => { + builder = builder.set_rule_parameters( + crate::json_deser::deser_map_rule_parameters(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_profiler_rule_evaluation_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProfilerRuleEvaluationStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RuleConfigurationName" => { + builder = builder.set_rule_configuration_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluationJobArn" => { + builder = builder.set_rule_evaluation_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RuleEvaluationStatus" => { + builder = builder.set_rule_evaluation_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RuleEvaluationStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataSource" => { + builder = builder.set_s3_data_source( + crate::json_deser::deser_structure_transform_s3_data_source( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_union_trial_component_parameter_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + let mut variant = None; + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + if variant.is_some() { + return Err(smithy_json::deserialize::Error::custom( + "encountered mixed variants in union", + )); + } + variant = match key.to_unescaped()?.as_ref() { + "StringValue" => { + Some(crate::model::TrialComponentParameterValue::StringValue( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()? + .unwrap_or_default(), + )) + } + "NumberValue" => { + Some(crate::model::TrialComponentParameterValue::NumberValue( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()) + .unwrap_or_default(), + )) + } + _ => None, + }; + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + }, + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )) + } + } + Ok(variant) +} + +pub fn deser_structure_trial_component_artifact<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentArtifact::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MediaType" => { + builder = builder.set_media_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_component_metric_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentMetricSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MetricName" => { + builder = builder.set_metric_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TimeStamp" => { + builder = builder.set_time_stamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Max" => { + builder = builder.set_max( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "Min" => { + builder = builder.set_min( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "Last" => { + builder = builder.set_last( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "Count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Avg" => { + builder = builder.set_avg( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "StdDev" => { + builder = builder.set_std_dev( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_ip_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceIpConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Cidrs" => { + builder = + builder.set_cidrs(crate::json_deser::deser_list_cidrs(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cognito_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CognitoConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserPool" => { + builder = builder.set_user_pool( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ClientId" => { + builder = builder.set_client_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_oidc_config_for_response<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OidcConfigForResponse::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ClientId" => { + builder = builder.set_client_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Issuer" => { + builder = builder.set_issuer( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AuthorizationEndpoint" => { + builder = builder.set_authorization_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TokenEndpoint" => { + builder = builder.set_token_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserInfoEndpoint" => { + builder = builder.set_user_info_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LogoutEndpoint" => { + builder = builder.set_logout_endpoint( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JwksUri" => { + builder = builder.set_jwks_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_member_definitions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_member_definition(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_product_listings<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_notification_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NotificationConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotificationTopicArn" => { + builder = builder.set_notification_topic_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_agent_version<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AgentVersion::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AgentCount" => { + builder = builder.set_agent_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_edge_model_stat<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgeModelStat::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelVersion" => { + builder = builder.set_model_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OfflineDeviceCount" => { + builder = builder.set_offline_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ConnectedDeviceCount" => { + builder = builder.set_connected_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ActiveDeviceCount" => { + builder = builder.set_active_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SamplingDeviceCount" => { + builder = builder.set_sampling_device_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_property_name_suggestion<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PropertyNameSuggestion::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PropertyName" => { + builder = builder.set_property_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_action_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ActionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActionArn" => { + builder = builder.set_action_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActionName" => { + builder = builder.set_action_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_action_source(tokens)?, + ); + } + "ActionType" => { + builder = builder.set_action_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ActionStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AlgorithmName" => { + builder = builder.set_algorithm_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmArn" => { + builder = builder.set_algorithm_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmDescription" => { + builder = builder.set_algorithm_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "AlgorithmStatus" => { + builder = builder.set_algorithm_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AlgorithmStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_app_image_config_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AppImageConfigDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AppImageConfigArn" => { + builder = builder.set_app_image_config_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppImageConfigName" => { + builder = builder.set_app_image_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "KernelGatewayImageConfig" => { + builder = builder.set_kernel_gateway_image_config( + crate::json_deser::deser_structure_kernel_gateway_image_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_app_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AppDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileName" => { + builder = builder.set_user_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AppType" => { + builder = builder.set_app_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AppType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AppName" => { + builder = builder.set_app_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AppStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_artifact_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArtifactSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ArtifactArn" => { + builder = builder.set_artifact_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ArtifactName" => { + builder = builder.set_artifact_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_artifact_source(tokens)?, + ); + } + "ArtifactType" => { + builder = builder.set_artifact_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationArn" => { + builder = builder.set_destination_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationType" => { + builder = builder.set_destination_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationType" => { + builder = builder.set_association_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationEdgeType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "SourceName" => { + builder = builder.set_source_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationName" => { + builder = builder.set_destination_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutoMLJobName" => { + builder = builder.set_auto_ml_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobStatus" => { + builder = builder.set_auto_ml_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "AutoMLJobSecondaryStatus" => { + builder = builder.set_auto_ml_job_secondary_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMlJobSecondaryStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PartialFailureReasons" => { + builder = builder.set_partial_failure_reasons( + crate::json_deser::deser_list_auto_ml_partial_failure_reasons( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_code_repository_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CodeRepositorySummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CodeRepositoryName" => { + builder = builder.set_code_repository_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CodeRepositoryArn" => { + builder = builder.set_code_repository_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "GitConfig" => { + builder = builder.set_git_config( + crate::json_deser::deser_structure_git_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compilation_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CompilationJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompilationJobName" => { + builder = builder.set_compilation_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompilationJobArn" => { + builder = builder.set_compilation_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CompilationStartTime" => { + builder = builder.set_compilation_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CompilationEndTime" => { + builder = builder.set_compilation_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CompilationTargetDevice" => { + builder = builder.set_compilation_target_device( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TargetDevice::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CompilationTargetPlatformOs" => { + builder = builder.set_compilation_target_platform_os( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformOs::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CompilationTargetPlatformArch" => { + builder = builder.set_compilation_target_platform_arch( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformArch::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CompilationTargetPlatformAccelerator" => { + builder = builder.set_compilation_target_platform_accelerator( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TargetPlatformAccelerator::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CompilationJobStatus" => { + builder = builder.set_compilation_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CompilationJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_context_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContextSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContextArn" => { + builder = builder.set_context_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContextName" => { + builder = builder.set_context_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_context_source(tokens)?, + ); + } + "ContextType" => { + builder = builder.set_context_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_job_definition_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringJobDefinitionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringJobDefinitionName" => { + builder = builder.set_monitoring_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringJobDefinitionArn" => { + builder = builder.set_monitoring_job_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_device_fleet_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeviceFleetSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceFleetArn" => { + builder = builder.set_device_fleet_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceFleetName" => { + builder = builder.set_device_fleet_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_device_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeviceSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeviceName" => { + builder = builder.set_device_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceArn" => { + builder = builder.set_device_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceFleetName" => { + builder = builder.set_device_fleet_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IotThingName" => { + builder = builder.set_iot_thing_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RegistrationTime" => { + builder = builder.set_registration_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LatestHeartbeat" => { + builder = builder.set_latest_heartbeat( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Models" => { + builder = builder.set_models( + crate::json_deser::deser_list_edge_model_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_domain_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DomainDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainArn" => { + builder = builder.set_domain_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DomainName" => { + builder = builder.set_domain_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DomainStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_edge_packaging_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgePackagingJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EdgePackagingJobArn" => { + builder = builder.set_edge_packaging_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EdgePackagingJobName" => { + builder = builder.set_edge_packaging_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EdgePackagingJobStatus" => { + builder = builder.set_edge_packaging_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::EdgePackagingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CompilationJobName" => { + builder = builder.set_compilation_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelVersion" => { + builder = builder.set_model_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint_config_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EndpointConfigSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointConfigName" => { + builder = builder.set_endpoint_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointConfigArn" => { + builder = builder.set_endpoint_config_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EndpointSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndpointStatus" => { + builder = builder.set_endpoint_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EndpointStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_experiment_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ExperimentSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentSource" => { + builder = builder.set_experiment_source( + crate::json_deser::deser_structure_experiment_source(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_feature_group_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FeatureGroupSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureGroupArn" => { + builder = builder.set_feature_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FeatureGroupStatus" => { + builder = builder.set_feature_group_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FeatureGroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "OfflineStoreStatus" => { + builder = builder.set_offline_store_status( + crate::json_deser::deser_structure_offline_store_status( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_flow_definition_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FlowDefinitionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FlowDefinitionName" => { + builder = builder.set_flow_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionArn" => { + builder = builder.set_flow_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionStatus" => { + builder = builder.set_flow_definition_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FlowDefinitionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_human_task_ui_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanTaskUiSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanTaskUiName" => { + builder = builder.set_human_task_ui_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanTaskUiArn" => { + builder = builder.set_human_task_ui_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_tuning_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterTuningJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HyperParameterTuningJobName" => { + builder = builder.set_hyper_parameter_tuning_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameterTuningJobArn" => { + builder = builder.set_hyper_parameter_tuning_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameterTuningJobStatus" => { + builder = builder.set_hyper_parameter_tuning_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterTuningJobStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Strategy" => { + builder = builder.set_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterTuningJobStrategyType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "HyperParameterTuningEndTime" => { + builder = builder.set_hyper_parameter_tuning_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingJobStatusCounters" => { + builder = builder.set_training_job_status_counters( + crate::json_deser::deser_structure_training_job_status_counters(tokens)? + ); + } + "ObjectiveStatusCounters" => { + builder = builder.set_objective_status_counters( + crate::json_deser::deser_structure_objective_status_counters( + tokens, + )?, + ); + } + "ResourceLimits" => { + builder = builder.set_resource_limits( + crate::json_deser::deser_structure_resource_limits(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Image::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageName" => { + builder = builder.set_image_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageStatus" => { + builder = builder.set_image_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ImageStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_image_version<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImageVersion::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageArn" => { + builder = builder.set_image_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageVersionArn" => { + builder = builder.set_image_version_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageVersionStatus" => { + builder = builder.set_image_version_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ImageVersionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobName" => { + builder = builder.set_labeling_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LabelingJobStatus" => { + builder = builder.set_labeling_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LabelingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LabelCounters" => { + builder = builder.set_label_counters( + crate::json_deser::deser_structure_label_counters(tokens)?, + ); + } + "WorkteamArn" => { + builder = builder.set_workteam_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PreHumanTaskLambdaArn" => { + builder = builder.set_pre_human_task_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AnnotationConsolidationLambdaArn" => { + builder = builder.set_annotation_consolidation_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobOutput" => { + builder = builder.set_labeling_job_output( + crate::json_deser::deser_structure_labeling_job_output(tokens)?, + ); + } + "InputConfig" => { + builder = builder.set_input_config( + crate::json_deser::deser_structure_labeling_job_input_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_for_workteam_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobForWorkteamSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "LabelingJobName" => { + builder = builder.set_labeling_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobReferenceCode" => { + builder = builder.set_job_reference_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WorkRequesterAccountId" => { + builder = builder.set_work_requester_account_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LabelCounters" => { + builder = builder.set_label_counters( + crate::json_deser::deser_structure_label_counters_for_workteam( + tokens, + )?, + ); + } + "NumberOfHumanWorkersPerDataObject" => { + builder = builder.set_number_of_human_workers_per_data_object( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_group_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageGroupSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupArn" => { + builder = builder.set_model_package_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupDescription" => { + builder = builder.set_model_package_group_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelPackageGroupStatus" => { + builder = builder.set_model_package_group_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelPackageGroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageName" => { + builder = builder.set_model_package_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageVersion" => { + builder = builder.set_model_package_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ModelPackageArn" => { + builder = builder.set_model_package_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageDescription" => { + builder = builder.set_model_package_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModelPackageStatus" => { + builder = builder.set_model_package_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelPackageStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ModelApprovalStatus" => { + builder = builder.set_model_approval_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelApprovalStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelArn" => { + builder = builder.set_model_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_schedule_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringScheduleSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleName" => { + builder = builder.set_monitoring_schedule_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringScheduleStatus" => { + builder = builder.set_monitoring_schedule_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ScheduleStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringJobDefinitionName" => { + builder = builder.set_monitoring_job_definition_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringType" => { + builder = builder.set_monitoring_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MonitoringType::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_notebook_instance_lifecycle_config_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NotebookInstanceLifecycleConfigSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceLifecycleConfigName" => { + builder = builder.set_notebook_instance_lifecycle_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceLifecycleConfigArn" => { + builder = builder.set_notebook_instance_lifecycle_config_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_notebook_instance_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NotebookInstanceSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotebookInstanceName" => { + builder = builder.set_notebook_instance_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceArn" => { + builder = builder.set_notebook_instance_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotebookInstanceStatus" => { + builder = builder.set_notebook_instance_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NotebookInstanceStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceType" => { + builder = builder.set_instance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InstanceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "NotebookInstanceLifecycleConfigName" => { + builder = builder.set_notebook_instance_lifecycle_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultCodeRepository" => { + builder = builder.set_default_code_repository( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdditionalCodeRepositories" => { + builder = builder.set_additional_code_repositories( + crate::json_deser::deser_list_additional_code_repository_names_or_urls(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_execution_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineExecutionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PipelineExecutionStatus" => { + builder = builder.set_pipeline_execution_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PipelineExecutionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "PipelineExecutionDescription" => { + builder = builder.set_pipeline_execution_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionDisplayName" => { + builder = builder.set_pipeline_execution_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_execution_step<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineExecutionStep::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StepName" => { + builder = builder.set_step_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "StepStatus" => { + builder = builder.set_step_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StepStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CacheHitResult" => { + builder = builder.set_cache_hit_result( + crate::json_deser::deser_structure_cache_hit_result(tokens)?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Metadata" => { + builder = builder.set_metadata( + crate::json_deser::deser_structure_pipeline_execution_step_metadata(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Parameter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineName" => { + builder = builder.set_pipeline_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDisplayName" => { + builder = builder.set_pipeline_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDescription" => { + builder = builder.set_pipeline_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastExecutionTime" => { + builder = builder.set_last_execution_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingJobName" => { + builder = builder.set_processing_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingJobArn" => { + builder = builder.set_processing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProcessingEndTime" => { + builder = builder.set_processing_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProcessingJobStatus" => { + builder = builder.set_processing_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExitMessage" => { + builder = builder.set_exit_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_project_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProjectSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProjectName" => { + builder = builder.set_project_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectDescription" => { + builder = builder.set_project_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectArn" => { + builder = builder.set_project_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProjectId" => { + builder = builder.set_project_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProjectStatus" => { + builder = builder.set_project_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ProjectStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_training_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobName" => { + builder = builder.set_training_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingEndTime" => { + builder = builder.set_training_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingJobStatus" => { + builder = builder.set_training_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransformJobName" => { + builder = builder.set_transform_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobArn" => { + builder = builder.set_transform_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformEndTime" => { + builder = builder.set_transform_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformJobStatus" => { + builder = builder.set_transform_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransformJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_component_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentName" => { + builder = builder.set_trial_component_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentSource" => { + builder = builder.set_trial_component_source( + crate::json_deser::deser_structure_trial_component_source( + tokens, + )?, + ); + } + "Status" => { + builder = builder.set_status( + crate::json_deser::deser_structure_trial_component_status( + tokens, + )?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialSource" => { + builder = builder.set_trial_source( + crate::json_deser::deser_structure_trial_source(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_user_profile_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::UserProfileDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainId" => { + builder = builder.set_domain_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserProfileName" => { + builder = builder.set_user_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::UserProfileStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_rendering_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RenderingError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Code" => { + builder = builder.set_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_search_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SearchRecord::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJob" => { + builder = builder.set_training_job( + crate::json_deser::deser_structure_training_job(tokens)?, + ); + } + "Experiment" => { + builder = builder.set_experiment( + crate::json_deser::deser_structure_experiment(tokens)?, + ); + } + "Trial" => { + builder = builder + .set_trial(crate::json_deser::deser_structure_trial(tokens)?); + } + "TrialComponent" => { + builder = builder.set_trial_component( + crate::json_deser::deser_structure_trial_component(tokens)?, + ); + } + "Endpoint" => { + builder = builder.set_endpoint( + crate::json_deser::deser_structure_endpoint(tokens)?, + ); + } + "ModelPackage" => { + builder = builder.set_model_package( + crate::json_deser::deser_structure_model_package(tokens)?, + ); + } + "ModelPackageGroup" => { + builder = builder.set_model_package_group( + crate::json_deser::deser_structure_model_package_group(tokens)?, + ); + } + "Pipeline" => { + builder = builder.set_pipeline( + crate::json_deser::deser_structure_pipeline(tokens)?, + ); + } + "PipelineExecution" => { + builder = builder.set_pipeline_execution( + crate::json_deser::deser_structure_pipeline_execution(tokens)?, + ); + } + "FeatureGroup" => { + builder = builder.set_feature_group( + crate::json_deser::deser_structure_feature_group(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_hyper_parameter_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HyperParameterSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Range" => { + builder = builder.set_range( + crate::json_deser::deser_structure_parameter_range(tokens)?, + ); + } + "IsTunable" => { + builder = builder.set_is_tunable( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "IsRequired" => { + builder = builder.set_is_required( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "DefaultValue" => { + builder = builder.set_default_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metric_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Regex" => { + builder = builder.set_regex( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_channel_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ChannelSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IsRequired" => { + builder = builder.set_is_required( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "SupportedContentTypes" => { + builder = builder.set_supported_content_types( + crate::json_deser::deser_list_content_types(tokens)?, + ); + } + "SupportedCompressionTypes" => { + builder = builder.set_supported_compression_types( + crate::json_deser::deser_list_compression_types(tokens)?, + ); + } + "SupportedInputModes" => { + builder = builder.set_supported_input_modes( + crate::json_deser::deser_list_input_modes(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_container_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageContainerDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContainerHostname" => { + builder = builder.set_container_hostname( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageDigest" => { + builder = builder.set_image_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelDataUrl" => { + builder = builder.set_model_data_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductId" => { + builder = builder.set_product_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_validation_profile<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmValidationProfile::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProfileName" => { + builder = builder.set_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobDefinition" => { + builder = builder.set_training_job_definition( + crate::json_deser::deser_structure_training_job_definition( + tokens, + )?, + ); + } + "TransformJobDefinition" => { + builder = builder.set_transform_job_definition( + crate::json_deser::deser_structure_transform_job_definition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_algorithm_status_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AlgorithmStatusItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DetailedAlgorithmStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_kernel_spec<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KernelSpec::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_artifact_source_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ArtifactSourceType::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceIdType" => { + builder = builder.set_source_id_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ArtifactSourceIdType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataSource" => { + builder = builder.set_s3_data_source( + crate::json_deser::deser_structure_auto_mls3_data_source( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_candidate_step<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlCandidateStep::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CandidateStepType" => { + builder = builder.set_candidate_step_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CandidateStepType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CandidateStepArn" => { + builder = builder.set_candidate_step_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CandidateStepName" => { + builder = builder.set_candidate_step_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_ml_container_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMlContainerDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Image" => { + builder = builder.set_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelDataUrl" => { + builder = builder.set_model_data_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_environment_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_candidate_artifact_locations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CandidateArtifactLocations::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Explainability" => { + builder = builder.set_explainability( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Output" => { + builder = builder.set_s3_output( + crate::json_deser::deser_structure_monitoring_s3_output( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_custom_images<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_custom_image(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_deployed_images<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_deployed_image(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_traffic_routing_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrafficRoutingConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrafficRoutingConfigType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "WaitIntervalInSeconds" => { + builder = builder.set_wait_interval_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "CanarySize" => { + builder = builder.set_canary_size( + crate::json_deser::deser_structure_capacity_size(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_alarm_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_alarm(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_production_variant_core_dump_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProductionVariantCoreDumpConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DestinationS3Uri" => { + builder = builder.set_destination_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_capture_option<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CaptureOption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CaptureMode" => { + builder = builder.set_capture_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CaptureMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_csv_content_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_json_content_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_usd<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Usd::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Dollars" => { + builder = builder.set_dollars( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Cents" => { + builder = builder.set_cents( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TenthFractionsOfACent" => { + builder = builder.set_tenth_fractions_of_a_cent( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_integer_parameter_ranges<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_integer_parameter_range(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_continuous_parameter_ranges<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_continuous_parameter_range(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_categorical_parameter_ranges<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_categorical_parameter_range(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_parent_hyper_parameter_tuning_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParentHyperParameterTuningJob::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HyperParameterTuningJobName" => { + builder = builder.set_hyper_parameter_tuning_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_s3_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobS3DataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ManifestS3Uri" => { + builder = builder.set_manifest_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_labeling_job_sns_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelingJobSnsDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SnsTopicArn" => { + builder = builder.set_sns_topic_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_content_classifiers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ContentClassifier::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_repository_auth_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RepositoryAuthConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RepositoryCredentialsProviderArn" => { + builder = builder.set_repository_credentials_provider_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_source_algorithm<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SourceAlgorithm::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelDataUrl" => { + builder = builder.set_model_data_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AlgorithmName" => { + builder = builder.set_algorithm_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_validation_profile<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageValidationProfile::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProfileName" => { + builder = builder.set_profile_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobDefinition" => { + builder = builder.set_transform_job_definition( + crate::json_deser::deser_structure_transform_job_definition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_status_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageStatusItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DetailedModelPackageStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metrics_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetricsSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContentType" => { + builder = builder.set_content_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContentDigest" => { + builder = builder.set_content_digest( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_baseline_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringBaselineConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaseliningJobName" => { + builder = builder.set_baselining_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ConstraintsResource" => { + builder = builder.set_constraints_resource( + crate::json_deser::deser_structure_monitoring_constraints_resource(tokens)? + ); + } + "StatisticsResource" => { + builder = builder.set_statistics_resource( + crate::json_deser::deser_structure_monitoring_statistics_resource(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_inputs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_monitoring_input(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_monitoring_app_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringAppSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageUri" => { + builder = builder.set_image_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContainerEntrypoint" => { + builder = builder.set_container_entrypoint( + crate::json_deser::deser_list_container_entrypoint(tokens)?, + ); + } + "ContainerArguments" => { + builder = builder.set_container_arguments( + crate::json_deser::deser_list_monitoring_container_arguments( + tokens, + )?, + ); + } + "RecordPreprocessorSourceUri" => { + builder = builder.set_record_preprocessor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PostAnalyticsProcessorSourceUri" => { + builder = builder.set_post_analytics_processor_source_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_s3_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingS3Input::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3DataType" => { + builder = builder.set_s3_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3DataType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "S3InputMode" => { + builder = builder.set_s3_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3InputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "S3DataDistributionType" => { + builder = builder.set_s3_data_distribution_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3DataDistributionType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "S3CompressionType" => { + builder = builder.set_s3_compression_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3CompressionType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_dataset_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DatasetDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AthenaDatasetDefinition" => { + builder = builder.set_athena_dataset_definition( + crate::json_deser::deser_structure_athena_dataset_definition( + tokens, + )?, + ); + } + "RedshiftDatasetDefinition" => { + builder = builder.set_redshift_dataset_definition( + crate::json_deser::deser_structure_redshift_dataset_definition( + tokens, + )?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataDistributionType" => { + builder = builder.set_data_distribution_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DataDistributionType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "InputMode" => { + builder = builder.set_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::InputMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputName" => { + builder = builder.set_output_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3Output" => { + builder = builder.set_s3_output( + crate::json_deser::deser_structure_processing_s3_output( + tokens, + )?, + ); + } + "FeatureStoreOutput" => { + builder = builder.set_feature_store_output( + crate::json_deser::deser_structure_processing_feature_store_output(tokens)? + ); + } + "AppManaged" => { + builder = builder.set_app_managed( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_provisioning_parameter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProvisioningParameter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataSource" => { + builder = builder.set_s3_data_source( + crate::json_deser::deser_structure_s3_data_source(tokens)?, + ); + } + "FileSystemDataSource" => { + builder = builder.set_file_system_data_source( + crate::json_deser::deser_structure_file_system_data_source( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_shuffle_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ShuffleConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Seed" => { + builder = builder.set_seed( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_collection_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CollectionConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CollectionName" => { + builder = builder.set_collection_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CollectionParameters" => { + builder = builder.set_collection_parameters( + crate::json_deser::deser_map_collection_parameters(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_rule_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_s3_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformS3DataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataType" => { + builder = builder.set_s3_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3DataType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_cidrs<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_member_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MemberDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CognitoMemberDefinition" => { + builder = builder.set_cognito_member_definition( + crate::json_deser::deser_structure_cognito_member_definition( + tokens, + )?, + ); + } + "OidcMemberDefinition" => { + builder = builder.set_oidc_member_definition( + crate::json_deser::deser_structure_oidc_member_definition( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_edge_model_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_edge_model_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_label_counters_for_workteam<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LabelCountersForWorkteam::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLabeled" => { + builder = builder.set_human_labeled( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "PendingHuman" => { + builder = builder.set_pending_human( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Total" => { + builder = builder.set_total( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cache_hit_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CacheHitResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourcePipelineExecutionArn" => { + builder = builder.set_source_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_execution_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineExecutionStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJob" => { + builder = builder.set_training_job( + crate::json_deser::deser_structure_training_job_step_metadata( + tokens, + )?, + ); + } + "ProcessingJob" => { + builder = builder.set_processing_job( + crate::json_deser::deser_structure_processing_job_step_metadata(tokens)? + ); + } + "TransformJob" => { + builder = builder.set_transform_job( + crate::json_deser::deser_structure_transform_job_step_metadata( + tokens, + )?, + ); + } + "Model" => { + builder = builder.set_model( + crate::json_deser::deser_structure_model_step_metadata(tokens)?, + ); + } + "RegisterModel" => { + builder = builder.set_register_model( + crate::json_deser::deser_structure_register_model_step_metadata(tokens)? + ); + } + "Condition" => { + builder = builder.set_condition( + crate::json_deser::deser_structure_condition_step_metadata( + tokens, + )?, + ); + } + "Callback" => { + builder = builder.set_callback( + crate::json_deser::deser_structure_callback_step_metadata( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_training_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingJob::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingJobName" => { + builder = builder.set_training_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TuningJobArn" => { + builder = builder.set_tuning_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelArtifacts" => { + builder = builder.set_model_artifacts( + crate::json_deser::deser_structure_model_artifacts(tokens)?, + ); + } + "TrainingJobStatus" => { + builder = builder.set_training_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "SecondaryStatus" => { + builder = builder.set_secondary_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SecondaryStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HyperParameters" => { + builder = builder.set_hyper_parameters( + crate::json_deser::deser_map_hyper_parameters(tokens)?, + ); + } + "AlgorithmSpecification" => { + builder = builder.set_algorithm_specification( + crate::json_deser::deser_structure_algorithm_specification( + tokens, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InputDataConfig" => { + builder = builder.set_input_data_config( + crate::json_deser::deser_list_input_data_config(tokens)?, + ); + } + "OutputDataConfig" => { + builder = builder.set_output_data_config( + crate::json_deser::deser_structure_output_data_config(tokens)?, + ); + } + "ResourceConfig" => { + builder = builder.set_resource_config( + crate::json_deser::deser_structure_resource_config(tokens)?, + ); + } + "VpcConfig" => { + builder = builder.set_vpc_config( + crate::json_deser::deser_structure_vpc_config(tokens)?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_stopping_condition(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingStartTime" => { + builder = builder.set_training_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TrainingEndTime" => { + builder = builder.set_training_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "SecondaryStatusTransitions" => { + builder = builder.set_secondary_status_transitions( + crate::json_deser::deser_list_secondary_status_transitions( + tokens, + )?, + ); + } + "FinalMetricDataList" => { + builder = builder.set_final_metric_data_list( + crate::json_deser::deser_list_final_metric_data_list(tokens)?, + ); + } + "EnableNetworkIsolation" => { + builder = builder.set_enable_network_isolation( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableInterContainerTrafficEncryption" => { + builder = builder.set_enable_inter_container_traffic_encryption( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "EnableManagedSpotTraining" => { + builder = builder.set_enable_managed_spot_training( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CheckpointConfig" => { + builder = builder.set_checkpoint_config( + crate::json_deser::deser_structure_checkpoint_config(tokens)?, + ); + } + "TrainingTimeInSeconds" => { + builder = builder.set_training_time_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "BillableTimeInSeconds" => { + builder = builder.set_billable_time_in_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DebugHookConfig" => { + builder = builder.set_debug_hook_config( + crate::json_deser::deser_structure_debug_hook_config(tokens)?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + "DebugRuleConfigurations" => { + builder = builder.set_debug_rule_configurations( + crate::json_deser::deser_list_debug_rule_configurations( + tokens, + )?, + ); + } + "TensorBoardOutputConfig" => { + builder = builder.set_tensor_board_output_config( + crate::json_deser::deser_structure_tensor_board_output_config( + tokens, + )?, + ); + } + "DebugRuleEvaluationStatuses" => { + builder = builder.set_debug_rule_evaluation_statuses( + crate::json_deser::deser_list_debug_rule_evaluation_statuses( + tokens, + )?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_training_environment_map(tokens)?, + ); + } + "RetryStrategy" => { + builder = builder.set_retry_strategy( + crate::json_deser::deser_structure_retry_strategy(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_experiment<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Experiment::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentArn" => { + builder = builder.set_experiment_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_experiment_source(tokens)?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Trial::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialArn" => { + builder = builder.set_trial_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_trial_source(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "TrialComponentSummaries" => { + builder = builder.set_trial_component_summaries( + crate::json_deser::deser_list_trial_component_simple_summaries( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_trial_component<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentName" => { + builder = builder.set_trial_component_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + crate::json_deser::deser_structure_trial_component_source( + tokens, + )?, + ); + } + "Status" => { + builder = builder.set_status( + crate::json_deser::deser_structure_trial_component_status( + tokens, + )?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_trial_component_parameters( + tokens, + )?, + ); + } + "InputArtifacts" => { + builder = builder.set_input_artifacts( + crate::json_deser::deser_map_trial_component_artifacts(tokens)?, + ); + } + "OutputArtifacts" => { + builder = builder.set_output_artifacts( + crate::json_deser::deser_map_trial_component_artifacts(tokens)?, + ); + } + "Metrics" => { + builder = builder.set_metrics( + crate::json_deser::deser_list_trial_component_metric_summaries( + tokens, + )?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + "SourceDetail" => { + builder = builder.set_source_detail( + crate::json_deser::deser_structure_trial_component_source_detail(tokens)? + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "Parents" => { + builder = builder + .set_parents(crate::json_deser::deser_list_parents(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_endpoint<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Endpoint::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointArn" => { + builder = builder.set_endpoint_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndpointConfigName" => { + builder = builder.set_endpoint_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductionVariants" => { + builder = builder.set_production_variants( + crate::json_deser::deser_list_production_variant_summary_list( + tokens, + )?, + ); + } + "DataCaptureConfig" => { + builder = builder.set_data_capture_config( + crate::json_deser::deser_structure_data_capture_config_summary( + tokens, + )?, + ); + } + "EndpointStatus" => { + builder = builder.set_endpoint_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EndpointStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringSchedules" => { + builder = builder.set_monitoring_schedules( + crate::json_deser::deser_list_monitoring_schedule_list(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageName" => { + builder = builder.set_model_package_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageVersion" => { + builder = builder.set_model_package_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ModelPackageArn" => { + builder = builder.set_model_package_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageDescription" => { + builder = builder.set_model_package_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "InferenceSpecification" => { + builder = builder.set_inference_specification( + crate::json_deser::deser_structure_inference_specification( + tokens, + )?, + ); + } + "SourceAlgorithmSpecification" => { + builder = builder.set_source_algorithm_specification( + crate::json_deser::deser_structure_source_algorithm_specification(tokens)? + ); + } + "ValidationSpecification" => { + builder = builder.set_validation_specification( + crate::json_deser::deser_structure_model_package_validation_specification(tokens)? + ); + } + "ModelPackageStatus" => { + builder = builder.set_model_package_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelPackageStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ModelPackageStatusDetails" => { + builder = builder.set_model_package_status_details( + crate::json_deser::deser_structure_model_package_status_details(tokens)? + ); + } + "CertifyForMarketplace" => { + builder = builder.set_certify_for_marketplace( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ModelApprovalStatus" => { + builder = builder.set_model_approval_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelApprovalStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "MetadataProperties" => { + builder = builder.set_metadata_properties( + crate::json_deser::deser_structure_metadata_properties(tokens)?, + ); + } + "ModelMetrics" => { + builder = builder.set_model_metrics( + crate::json_deser::deser_structure_model_metrics(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "ApprovalDescription" => { + builder = builder.set_approval_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_package_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelPackageGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelPackageGroupName" => { + builder = builder.set_model_package_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupArn" => { + builder = builder.set_model_package_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelPackageGroupDescription" => { + builder = builder.set_model_package_group_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "ModelPackageGroupStatus" => { + builder = builder.set_model_package_group_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ModelPackageGroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Pipeline::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineName" => { + builder = builder.set_pipeline_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDisplayName" => { + builder = builder.set_pipeline_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineDescription" => { + builder = builder.set_pipeline_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineStatus" => { + builder = builder.set_pipeline_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PipelineStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastRunTime" => { + builder = builder.set_last_run_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pipeline_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PipelineExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PipelineArn" => { + builder = builder.set_pipeline_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionArn" => { + builder = builder.set_pipeline_execution_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionDisplayName" => { + builder = builder.set_pipeline_execution_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExecutionStatus" => { + builder = builder.set_pipeline_execution_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PipelineExecutionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "PipelineExecutionDescription" => { + builder = builder.set_pipeline_execution_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PipelineExperimentConfig" => { + builder = builder.set_pipeline_experiment_config( + crate::json_deser::deser_structure_pipeline_experiment_config( + tokens, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + "PipelineParameters" => { + builder = builder.set_pipeline_parameters( + crate::json_deser::deser_list_parameter_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_feature_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FeatureGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupArn" => { + builder = builder.set_feature_group_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RecordIdentifierFeatureName" => { + builder = builder.set_record_identifier_feature_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EventTimeFeatureName" => { + builder = builder.set_event_time_feature_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureDefinitions" => { + builder = builder.set_feature_definitions( + crate::json_deser::deser_list_feature_definitions(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OnlineStoreConfig" => { + builder = builder.set_online_store_config( + crate::json_deser::deser_structure_online_store_config(tokens)?, + ); + } + "OfflineStoreConfig" => { + builder = builder.set_offline_store_config( + crate::json_deser::deser_structure_offline_store_config( + tokens, + )?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeatureGroupStatus" => { + builder = builder.set_feature_group_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FeatureGroupStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "OfflineStoreStatus" => { + builder = builder.set_offline_store_status( + crate::json_deser::deser_structure_offline_store_status( + tokens, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParameterRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IntegerParameterRangeSpecification" => { + builder = builder.set_integer_parameter_range_specification( + crate::json_deser::deser_structure_integer_parameter_range_specification(tokens)? + ); + } + "ContinuousParameterRangeSpecification" => { + builder = builder.set_continuous_parameter_range_specification( + crate::json_deser::deser_structure_continuous_parameter_range_specification(tokens)? + ); + } + "CategoricalParameterRangeSpecification" => { + builder = builder.set_categorical_parameter_range_specification( + crate::json_deser::deser_structure_categorical_parameter_range_specification(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compression_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CompressionType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_input_modes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TrainingInputMode::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_training_job_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingJobDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrainingInputMode" => { + builder = builder.set_training_input_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TrainingInputMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "HyperParameters" => { + builder = builder.set_hyper_parameters( + crate::json_deser::deser_map_hyper_parameters(tokens)?, + ); + } + "InputDataConfig" => { + builder = builder.set_input_data_config( + crate::json_deser::deser_list_input_data_config(tokens)?, + ); + } + "OutputDataConfig" => { + builder = builder.set_output_data_config( + crate::json_deser::deser_structure_output_data_config(tokens)?, + ); + } + "ResourceConfig" => { + builder = builder.set_resource_config( + crate::json_deser::deser_structure_resource_config(tokens)?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_stopping_condition(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_job_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformJobDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MaxConcurrentTransforms" => { + builder = builder.set_max_concurrent_transforms( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MaxPayloadInMB" => { + builder = builder.set_max_payload_in_mb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "BatchStrategy" => { + builder = builder.set_batch_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BatchStrategy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_transform_environment_map(tokens)?, + ); + } + "TransformInput" => { + builder = builder.set_transform_input( + crate::json_deser::deser_structure_transform_input(tokens)?, + ); + } + "TransformOutput" => { + builder = builder.set_transform_output( + crate::json_deser::deser_structure_transform_output(tokens)?, + ); + } + "TransformResources" => { + builder = builder.set_transform_resources( + crate::json_deser::deser_structure_transform_resources(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_auto_mls3_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutoMls3DataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataType" => { + builder = builder.set_s3_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutoMls3DataType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_s3_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringS3Output::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3UploadMode" => { + builder = builder.set_s3_upload_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3UploadMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_custom_image<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CustomImage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImageName" => { + builder = builder.set_image_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageVersionNumber" => { + builder = builder.set_image_version_number( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "AppImageConfigName" => { + builder = builder.set_app_image_config_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_deployed_image<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeployedImage::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SpecifiedImage" => { + builder = builder.set_specified_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResolvedImage" => { + builder = builder.set_resolved_image( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResolutionTime" => { + builder = builder.set_resolution_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_capacity_size<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CapacitySize::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CapacitySizeType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_alarm<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Alarm::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AlarmName" => { + builder = builder.set_alarm_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_integer_parameter_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IntegerParameterRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MinValue" => { + builder = builder.set_min_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxValue" => { + builder = builder.set_max_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScalingType" => { + builder = builder.set_scaling_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterScalingType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_continuous_parameter_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContinuousParameterRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MinValue" => { + builder = builder.set_min_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxValue" => { + builder = builder.set_max_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScalingType" => { + builder = builder.set_scaling_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HyperParameterScalingType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_categorical_parameter_range<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CategoricalParameterRange::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_parameter_values(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_input<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringInput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EndpointInput" => { + builder = builder.set_endpoint_input( + crate::json_deser::deser_structure_endpoint_input(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_athena_dataset_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AthenaDatasetDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Catalog" => { + builder = builder.set_catalog( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Database" => { + builder = builder.set_database( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "QueryString" => { + builder = builder.set_query_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WorkGroup" => { + builder = builder.set_work_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3Uri" => { + builder = builder.set_output_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputFormat" => { + builder = builder.set_output_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AthenaResultFormat::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "OutputCompression" => { + builder = builder.set_output_compression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AthenaResultCompressionType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_redshift_dataset_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RedshiftDatasetDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ClusterId" => { + builder = builder.set_cluster_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Database" => { + builder = builder.set_database( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DbUser" => { + builder = builder.set_db_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "QueryString" => { + builder = builder.set_query_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ClusterRoleArn" => { + builder = builder.set_cluster_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3Uri" => { + builder = builder.set_output_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputFormat" => { + builder = builder.set_output_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RedshiftResultFormat::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "OutputCompression" => { + builder = builder.set_output_compression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::RedshiftResultCompressionType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_s3_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingS3Output::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LocalPath" => { + builder = builder.set_local_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3UploadMode" => { + builder = builder.set_s3_upload_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingS3UploadMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_feature_store_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingFeatureStoreOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_s3_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3DataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3DataType" => { + builder = builder.set_s3_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::S3DataType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "S3Uri" => { + builder = builder.set_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3DataDistributionType" => { + builder = builder.set_s3_data_distribution_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::S3DataDistribution::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "AttributeNames" => { + builder = builder.set_attribute_names( + crate::json_deser::deser_list_attribute_names(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_file_system_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FileSystemDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FileSystemId" => { + builder = builder.set_file_system_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FileSystemAccessMode" => { + builder = builder.set_file_system_access_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::FileSystemAccessMode::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FileSystemType" => { + builder = builder.set_file_system_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::FileSystemType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "DirectoryPath" => { + builder = builder.set_directory_path( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_collection_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cognito_member_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CognitoMemberDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "UserPool" => { + builder = builder.set_user_pool( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "UserGroup" => { + builder = builder.set_user_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ClientId" => { + builder = builder.set_client_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_oidc_member_definition<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OidcMemberDefinition::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Groups" => { + builder = builder + .set_groups(crate::json_deser::deser_list_groups(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_edge_model_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EdgeModelSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelVersion" => { + builder = builder.set_model_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_training_job_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrainingJobStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_job_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingJobStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_job_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformJobStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_model_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ModelStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_register_model_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RegisterModelStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_condition_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ConditionStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Outcome" => { + builder = builder.set_outcome( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ConditionOutcome::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_callback_step_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CallbackStepMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CallbackToken" => { + builder = builder.set_callback_token( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SqsQueueUrl" => { + builder = builder.set_sqs_queue_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputParameters" => { + builder = builder.set_output_parameters( + crate::json_deser::deser_list_output_parameter_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_trial_component_simple_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_trial_component_simple_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_trial_component_source_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentSourceDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceArn" => { + builder = builder.set_source_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJob" => { + builder = builder.set_training_job( + crate::json_deser::deser_structure_training_job(tokens)?, + ); + } + "ProcessingJob" => { + builder = builder.set_processing_job( + crate::json_deser::deser_structure_processing_job(tokens)?, + ); + } + "TransformJob" => { + builder = builder.set_transform_job( + crate::json_deser::deser_structure_transform_job(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parents<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_parent(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_monitoring_schedule_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_monitoring_schedule(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_integer_parameter_range_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IntegerParameterRangeSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MinValue" => { + builder = builder.set_min_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxValue" => { + builder = builder.set_max_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_continuous_parameter_range_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContinuousParameterRangeSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MinValue" => { + builder = builder.set_min_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxValue" => { + builder = builder.set_max_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_categorical_parameter_range_specification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CategoricalParameterRangeSpecification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_parameter_values(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_values<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attribute_names<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_groups<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_output_parameter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_output_parameter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_trial_component_simple_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrialComponentSimpleSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialComponentName" => { + builder = builder.set_trial_component_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentArn" => { + builder = builder.set_trial_component_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrialComponentSource" => { + builder = builder.set_trial_component_source( + crate::json_deser::deser_structure_trial_component_source( + tokens, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_user_context(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_processing_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProcessingJob::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ProcessingInputs" => { + builder = builder.set_processing_inputs( + crate::json_deser::deser_list_processing_inputs(tokens)?, + ); + } + "ProcessingOutputConfig" => { + builder = builder.set_processing_output_config( + crate::json_deser::deser_structure_processing_output_config( + tokens, + )?, + ); + } + "ProcessingJobName" => { + builder = builder.set_processing_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingResources" => { + builder = builder.set_processing_resources( + crate::json_deser::deser_structure_processing_resources( + tokens, + )?, + ); + } + "StoppingCondition" => { + builder = builder.set_stopping_condition( + crate::json_deser::deser_structure_processing_stopping_condition(tokens)? + ); + } + "AppSpecification" => { + builder = builder.set_app_specification( + crate::json_deser::deser_structure_app_specification(tokens)?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_processing_environment_map( + tokens, + )?, + ); + } + "NetworkConfig" => { + builder = builder.set_network_config( + crate::json_deser::deser_structure_network_config(tokens)?, + ); + } + "RoleArn" => { + builder = builder.set_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + "ProcessingJobArn" => { + builder = builder.set_processing_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingJobStatus" => { + builder = builder.set_processing_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ProcessingJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ExitMessage" => { + builder = builder.set_exit_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProcessingEndTime" => { + builder = builder.set_processing_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ProcessingStartTime" => { + builder = builder.set_processing_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TrainingJobArn" => { + builder = builder.set_training_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_transform_job<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TransformJob::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TransformJobName" => { + builder = builder.set_transform_job_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobArn" => { + builder = builder.set_transform_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TransformJobStatus" => { + builder = builder.set_transform_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::TransformJobStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ModelName" => { + builder = builder.set_model_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrentTransforms" => { + builder = builder.set_max_concurrent_transforms( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ModelClientConfig" => { + builder = builder.set_model_client_config( + crate::json_deser::deser_structure_model_client_config(tokens)?, + ); + } + "MaxPayloadInMB" => { + builder = builder.set_max_payload_in_mb( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "BatchStrategy" => { + builder = builder.set_batch_strategy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::BatchStrategy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Environment" => { + builder = builder.set_environment( + crate::json_deser::deser_map_transform_environment_map(tokens)?, + ); + } + "TransformInput" => { + builder = builder.set_transform_input( + crate::json_deser::deser_structure_transform_input(tokens)?, + ); + } + "TransformOutput" => { + builder = builder.set_transform_output( + crate::json_deser::deser_structure_transform_output(tokens)?, + ); + } + "TransformResources" => { + builder = builder.set_transform_resources( + crate::json_deser::deser_structure_transform_resources(tokens)?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformStartTime" => { + builder = builder.set_transform_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TransformEndTime" => { + builder = builder.set_transform_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LabelingJobArn" => { + builder = builder.set_labeling_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutoMLJobArn" => { + builder = builder.set_auto_ml_job_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataProcessing" => { + builder = builder.set_data_processing( + crate::json_deser::deser_structure_data_processing(tokens)?, + ); + } + "ExperimentConfig" => { + builder = builder.set_experiment_config( + crate::json_deser::deser_structure_experiment_config(tokens)?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parent<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Parent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TrialName" => { + builder = builder.set_trial_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExperimentName" => { + builder = builder.set_experiment_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_monitoring_schedule<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MonitoringSchedule::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MonitoringScheduleArn" => { + builder = builder.set_monitoring_schedule_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringScheduleName" => { + builder = builder.set_monitoring_schedule_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MonitoringScheduleStatus" => { + builder = builder.set_monitoring_schedule_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ScheduleStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "MonitoringType" => { + builder = builder.set_monitoring_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MonitoringType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "MonitoringScheduleConfig" => { + builder = builder.set_monitoring_schedule_config( + crate::json_deser::deser_structure_monitoring_schedule_config( + tokens, + )?, + ); + } + "EndpointName" => { + builder = builder.set_endpoint_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastMonitoringExecutionSummary" => { + builder = builder.set_last_monitoring_execution_summary( + crate::json_deser::deser_structure_monitoring_execution_summary(tokens)? + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_parameter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputParameter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/sagemaker/src/json_errors.rs b/sdk/sagemaker/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/sagemaker/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/sagemaker/src/json_ser.rs b/sdk/sagemaker/src/json_ser.rs index 5ee5d129cf9f..f32bbd507831 100644 --- a/sdk/sagemaker/src/json_ser.rs +++ b/sdk/sagemaker/src/json_ser.rs @@ -243,7 +243,7 @@ pub fn serialize_structure_create_artifact_input( pub fn serialize_structure_create_auto_ml_job_input( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::input::CreateAutoMLJobInput, + input: &crate::input::CreateAutoMlJobInput, ) { if let Some(var_70) = &input.auto_ml_job_name { object.key("AutoMLJobName").string(var_70); @@ -2549,7 +2549,7 @@ pub fn serialize_structure_describe_artifact_input( pub fn serialize_structure_describe_auto_ml_job_input( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::input::DescribeAutoMLJobInput, + input: &crate::input::DescribeAutoMlJobInput, ) { if let Some(var_681) = &input.auto_ml_job_name { object.key("AutoMLJobName").string(var_681); @@ -3207,7 +3207,7 @@ pub fn serialize_structure_list_associations_input( pub fn serialize_structure_list_auto_ml_jobs_input( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::input::ListAutoMLJobsInput, + input: &crate::input::ListAutoMlJobsInput, ) { if let Some(var_783) = &input.creation_time_after { object @@ -3254,7 +3254,7 @@ pub fn serialize_structure_list_auto_ml_jobs_input( pub fn serialize_structure_list_candidates_for_auto_ml_job_input( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::input::ListCandidatesForAutoMLJobInput, + input: &crate::input::ListCandidatesForAutoMlJobInput, ) { if let Some(var_793) = &input.auto_ml_job_name { object.key("AutoMLJobName").string(var_793); @@ -5139,7 +5139,7 @@ pub fn serialize_structure_start_pipeline_execution_input( pub fn serialize_structure_stop_auto_ml_job_input( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::input::StopAutoMLJobInput, + input: &crate::input::StopAutoMlJobInput, ) { if let Some(var_1194) = &input.auto_ml_job_name { object.key("AutoMLJobName").string(var_1194); @@ -6159,7 +6159,7 @@ pub fn serialize_structure_artifact_source( pub fn serialize_structure_auto_ml_channel( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLChannel, + input: &crate::model::AutoMlChannel, ) { if let Some(var_1434) = &input.data_source { let mut object_1435 = object.key("DataSource").start_object(); @@ -6176,7 +6176,7 @@ pub fn serialize_structure_auto_ml_channel( pub fn serialize_structure_auto_ml_output_data_config( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLOutputDataConfig, + input: &crate::model::AutoMlOutputDataConfig, ) { if let Some(var_1438) = &input.kms_key_id { object.key("KmsKeyId").string(var_1438); @@ -6188,7 +6188,7 @@ pub fn serialize_structure_auto_ml_output_data_config( pub fn serialize_structure_auto_ml_job_objective( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLJobObjective, + input: &crate::model::AutoMlJobObjective, ) { if let Some(var_1440) = &input.metric_name { object.key("MetricName").string(var_1440.as_str()); @@ -6197,7 +6197,7 @@ pub fn serialize_structure_auto_ml_job_objective( pub fn serialize_structure_auto_ml_job_config( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLJobConfig, + input: &crate::model::AutoMlJobConfig, ) { if let Some(var_1441) = &input.completion_criteria { let mut object_1442 = object.key("CompletionCriteria").start_object(); @@ -8432,7 +8432,7 @@ pub fn serialize_structure_artifact_source_type( pub fn serialize_structure_auto_ml_data_source( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLDataSource, + input: &crate::model::AutoMlDataSource, ) { if let Some(var_1918) = &input.s3_data_source { let mut object_1919 = object.key("S3DataSource").start_object(); @@ -8443,7 +8443,7 @@ pub fn serialize_structure_auto_ml_data_source( pub fn serialize_structure_auto_ml_job_completion_criteria( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLJobCompletionCriteria, + input: &crate::model::AutoMlJobCompletionCriteria, ) { if let Some(var_1920) = &input.max_candidates { object.key("MaxCandidates").number( @@ -8467,7 +8467,7 @@ pub fn serialize_structure_auto_ml_job_completion_criteria( pub fn serialize_structure_auto_ml_security_config( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLSecurityConfig, + input: &crate::model::AutoMlSecurityConfig, ) { if let Some(var_1923) = &input.volume_kms_key_id { object.key("VolumeKmsKeyId").string(var_1923); @@ -9537,7 +9537,7 @@ pub fn serialize_structure_transform_job_definition( pub fn serialize_structure_auto_mls3_data_source( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::AutoMLS3DataSource, + input: &crate::model::AutoMls3DataSource, ) { if let Some(var_2147) = &input.s3_data_type { object.key("S3DataType").string(var_2147.as_str()); @@ -9582,7 +9582,7 @@ pub fn serialize_structure_custom_image( pub fn serialize_structure_usd( object: &mut smithy_json::serialize::JsonObjectWriter, - input: &crate::model::USD, + input: &crate::model::Usd, ) { if input.dollars != 0 { object.key("Dollars").number( diff --git a/sdk/sagemaker/src/lib.rs b/sdk/sagemaker/src/lib.rs index b59dfa3639ce..2047c76b0c20 100644 --- a/sdk/sagemaker/src/lib.rs +++ b/sdk/sagemaker/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

                              Provides APIs for creating and managing Amazon SageMaker resources.

                              //!

                              Other Resources:

                              //!
                                @@ -26,7 +27,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -34,15 +34,14 @@ pub mod error; mod error_meta; mod idempotency_token; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/sagemaker/src/model.rs b/sdk/sagemaker/src/model.rs index c0448f925c4e..984d81640901 100644 --- a/sdk/sagemaker/src/model.rs +++ b/sdk/sagemaker/src/model.rs @@ -1,11 +1,9 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

                                Provides details about a labeling work team.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Workteam { ///

                                The name of the work team.

                                - #[serde(rename = "WorkteamName")] - #[serde(default)] pub workteam_name: std::option::Option, ///

                                A list of MemberDefinition objects that contains objects that identify /// the workers that make up the work team.

                                @@ -13,48 +11,24 @@ pub struct Workteam { /// For private workforces created using Amazon Cognito use /// CognitoMemberDefinition. For workforces created using your own OIDC identity /// provider (IdP) use OidcMemberDefinition.

                                - #[serde(rename = "MemberDefinitions")] - #[serde(default)] pub member_definitions: std::option::Option>, ///

                                The Amazon Resource Name (ARN) that identifies the work team.

                                - #[serde(rename = "WorkteamArn")] - #[serde(default)] pub workteam_arn: std::option::Option, ///

                                The Amazon Resource Name (ARN) of the workforce.

                                - #[serde(rename = "WorkforceArn")] - #[serde(default)] pub workforce_arn: std::option::Option, ///

                                The Amazon Marketplace identifier for a vendor's work team.

                                - #[serde(rename = "ProductListingIds")] - #[serde(default)] pub product_listing_ids: std::option::Option>, ///

                                A description of the work team.

                                - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

                                The URI of the labeling job's user interface. Workers open this URI to start labeling /// your data objects.

                                - #[serde(rename = "SubDomain")] - #[serde(default)] pub sub_domain: std::option::Option, ///

                                The date and time that the work team was created (timestamp).

                                - #[serde(rename = "CreateDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub create_date: std::option::Option, ///

                                The date and time that the work team was last updated (timestamp).

                                - #[serde(rename = "LastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_date: std::option::Option, ///

                                Configures SNS notifications of available or expiring work items for work /// teams.

                                - #[serde(rename = "NotificationConfiguration")] - #[serde(default)] pub notification_configuration: std::option::Option, } impl std::fmt::Debug for Workteam { @@ -244,11 +218,9 @@ impl Workteam { ///

                                Configures SNS notifications of available or expiring work items for work /// teams.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NotificationConfiguration { ///

                                The ARN for the SNS topic to which notifications should be published.

                                - #[serde(rename = "NotificationTopicArn")] - #[serde(default)] pub notification_topic_arn: std::option::Option, } impl std::fmt::Debug for NotificationConfiguration { @@ -296,19 +268,15 @@ impl NotificationConfiguration { ///

                                Defines an Amazon Cognito or your own OIDC IdP user group that is part of a work team.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MemberDefinition { ///

                                The Amazon Cognito user group that is part of the work team.

                                - #[serde(rename = "CognitoMemberDefinition")] - #[serde(default)] pub cognito_member_definition: std::option::Option, ///

                                A list user groups that exist in your OIDC Identity Provider (IdP). /// One to ten groups can be used to create a single private work team. /// When you add a user group to the list of Groups, you can add that user group to one or more /// private work teams. If you add a user group to a private work team, all workers in that user group /// are added to the work team.

                                - #[serde(rename = "OidcMemberDefinition")] - #[serde(default)] pub oidc_member_definition: std::option::Option, } impl std::fmt::Debug for MemberDefinition { @@ -383,13 +351,11 @@ impl MemberDefinition { /// private work teams. If you add a user group to a private work team, all workers in that user group /// are added to the work team.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OidcMemberDefinition { ///

                                A list of comma seperated strings that identifies /// user groups in your OIDC IdP. Each user group is /// made up of a group of private workers.

                                - #[serde(rename = "Groups")] - #[serde(default)] pub groups: std::option::Option>, } impl std::fmt::Debug for OidcMemberDefinition { @@ -439,21 +405,15 @@ impl OidcMemberDefinition { ///

                                Identifies a Amazon Cognito user group. A user group can be used in on or more work /// teams.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CognitoMemberDefinition { ///

                                An identifier for a user pool. The user pool must be in the same region as the service /// that you are calling.

                                - #[serde(rename = "UserPool")] - #[serde(default)] pub user_pool: std::option::Option, ///

                                An identifier for a user group.

                                - #[serde(rename = "UserGroup")] - #[serde(default)] pub user_group: std::option::Option, ///

                                An identifier for an application client. You must create the app client ID using /// Amazon Cognito.

                                - #[serde(rename = "ClientId")] - #[serde(default)] pub client_id: std::option::Option, } impl std::fmt::Debug for CognitoMemberDefinition { @@ -527,51 +487,29 @@ impl CognitoMemberDefinition { /// any workforce-related API operation used in a specific region will apply to the /// workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Workforce { ///

                                The name of the private workforce.

                                - #[serde(rename = "WorkforceName")] - #[serde(default)] pub workforce_name: std::option::Option, ///

                                The Amazon Resource Name (ARN) of the private workforce.

                                - #[serde(rename = "WorkforceArn")] - #[serde(default)] pub workforce_arn: std::option::Option, ///

                                The most recent date that was used to /// successfully add one or more IP address ranges (CIDRs) to a private workforce's /// allow list.

                                - #[serde(rename = "LastUpdatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_date: std::option::Option, ///

                                A list of one to ten IP address ranges (CIDRs) to be added to the /// workforce allow list. By default, a workforce isn't restricted to specific IP addresses.

                                - #[serde(rename = "SourceIpConfig")] - #[serde(default)] pub source_ip_config: std::option::Option, ///

                                The subdomain for your OIDC Identity Provider.

                                - #[serde(rename = "SubDomain")] - #[serde(default)] pub sub_domain: std::option::Option, ///

                                The configuration of an Amazon Cognito workforce. /// A single Cognito workforce is created using and corresponds to a single /// /// Amazon Cognito user pool.

                                - #[serde(rename = "CognitoConfig")] - #[serde(default)] pub cognito_config: std::option::Option, ///

                                The configuration of an OIDC Identity Provider (IdP) private workforce.

                                - #[serde(rename = "OidcConfig")] - #[serde(default)] pub oidc_config: std::option::Option, ///

                                The date that the workforce is created.

                                - #[serde(rename = "CreateDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub create_date: std::option::Option, } impl std::fmt::Debug for Workforce { @@ -727,35 +665,21 @@ impl Workforce { ///

                                Your OIDC IdP workforce configuration.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OidcConfigForResponse { ///

                                The OIDC IdP client ID used to configure your private workforce.

                                - #[serde(rename = "ClientId")] - #[serde(default)] pub client_id: std::option::Option, ///

                                The OIDC IdP issuer used to configure your private workforce.

                                - #[serde(rename = "Issuer")] - #[serde(default)] pub issuer: std::option::Option, ///

                                The OIDC IdP authorization endpoint used to configure your private workforce.

                                - #[serde(rename = "AuthorizationEndpoint")] - #[serde(default)] pub authorization_endpoint: std::option::Option, ///

                                The OIDC IdP token endpoint used to configure your private workforce.

                                - #[serde(rename = "TokenEndpoint")] - #[serde(default)] pub token_endpoint: std::option::Option, ///

                                The OIDC IdP user information endpoint used to configure your private workforce.

                                - #[serde(rename = "UserInfoEndpoint")] - #[serde(default)] pub user_info_endpoint: std::option::Option, ///

                                The OIDC IdP logout endpoint used to configure your private workforce.

                                - #[serde(rename = "LogoutEndpoint")] - #[serde(default)] pub logout_endpoint: std::option::Option, ///

                                The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce.

                                - #[serde(rename = "JwksUri")] - #[serde(default)] pub jwks_uri: std::option::Option, } impl std::fmt::Debug for OidcConfigForResponse { @@ -887,19 +811,15 @@ impl OidcConfigForResponse { /// /// Amazon Cognito user pool.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CognitoConfig { ///

                                A /// user pool is a user directory in Amazon Cognito. /// With a user pool, your users can sign in to your web or mobile app through Amazon Cognito. /// Your users can also sign in through social identity providers like /// Google, Facebook, Amazon, or Apple, and through SAML identity providers.

                                - #[serde(rename = "UserPool")] - #[serde(default)] pub user_pool: std::option::Option, ///

                                The client ID for your Amazon Cognito user pool.

                                - #[serde(rename = "ClientId")] - #[serde(default)] pub client_id: std::option::Option, } impl std::fmt::Debug for CognitoConfig { @@ -962,7 +882,7 @@ impl CognitoConfig { /// list of IP addresses for a private workforce. Workers will only be able to login to their worker portal from an /// IP address within this range. By default, a workforce isn't restricted to specific IP addresses.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceIpConfig { ///

                                A list of one to ten Classless Inter-Domain Routing (CIDR) values.

                                ///

                                Maximum: Ten CIDR values

                                @@ -970,8 +890,6 @@ pub struct SourceIpConfig { ///

                                The following Length Constraints apply to individual CIDR values in /// the CIDR value list.

                                /// - #[serde(rename = "Cidrs")] - #[serde(default)] pub cidrs: std::option::Option>, } impl std::fmt::Debug for SourceIpConfig { @@ -1018,39 +936,23 @@ impl SourceIpConfig { ///

                                Use this parameter to configure your OIDC Identity Provider (IdP).

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OidcConfig { ///

                                The OIDC IdP client ID used to configure your private workforce.

                                - #[serde(rename = "ClientId")] - #[serde(default)] pub client_id: std::option::Option, ///

                                The OIDC IdP client secret used to configure your private workforce.

                                - #[serde(rename = "ClientSecret")] - #[serde(default)] pub client_secret: std::option::Option, ///

                                The OIDC IdP issuer used to configure your private workforce.

                                - #[serde(rename = "Issuer")] - #[serde(default)] pub issuer: std::option::Option, ///

                                The OIDC IdP authorization endpoint used to configure your private workforce.

                                - #[serde(rename = "AuthorizationEndpoint")] - #[serde(default)] pub authorization_endpoint: std::option::Option, ///

                                The OIDC IdP token endpoint used to configure your private workforce.

                                - #[serde(rename = "TokenEndpoint")] - #[serde(default)] pub token_endpoint: std::option::Option, ///

                                The OIDC IdP user information endpoint used to configure your private workforce.

                                - #[serde(rename = "UserInfoEndpoint")] - #[serde(default)] pub user_info_endpoint: std::option::Option, ///

                                The OIDC IdP logout endpoint used to configure your private workforce.

                                - #[serde(rename = "LogoutEndpoint")] - #[serde(default)] pub logout_endpoint: std::option::Option, ///

                                The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce.

                                - #[serde(rename = "JwksUri")] - #[serde(default)] pub jwks_uri: std::option::Option, } impl std::fmt::Debug for OidcConfig { @@ -1200,11 +1102,9 @@ impl OidcConfig { /// settings in UserSettings, the values specified in CreateUserProfile /// take precedence over those specified in CreateDomain.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UserSettings { ///

                                The execution role for the user.

                                - #[serde(rename = "ExecutionRole")] - #[serde(default)] pub execution_role: std::option::Option, ///

                                The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.

                                ///

                                Optional when the CreateDomain.AppNetworkAccessType parameter is set to @@ -1213,24 +1113,14 @@ pub struct UserSettings { /// VpcOnly.

                                ///

                                Amazon SageMaker adds a security group to allow NFS traffic from SageMaker Studio. Therefore, the /// number of security groups that you can specify is one less than the maximum number shown.

                                - #[serde(rename = "SecurityGroups")] - #[serde(default)] pub security_groups: std::option::Option>, ///

                                Specifies options for sharing SageMaker Studio notebooks.

                                - #[serde(rename = "SharingSettings")] - #[serde(default)] pub sharing_settings: std::option::Option, ///

                                The Jupyter server's app settings.

                                - #[serde(rename = "JupyterServerAppSettings")] - #[serde(default)] pub jupyter_server_app_settings: std::option::Option, ///

                                The kernel gateway app settings.

                                - #[serde(rename = "KernelGatewayAppSettings")] - #[serde(default)] pub kernel_gateway_app_settings: std::option::Option, ///

                                The TensorBoard app settings.

                                - #[serde(rename = "TensorBoardAppSettings")] - #[serde(default)] pub tensor_board_app_settings: std::option::Option, } impl std::fmt::Debug for UserSettings { @@ -1372,11 +1262,9 @@ impl UserSettings { ///

                                The TensorBoard app settings.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TensorBoardAppSettings { ///

                                The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

                                - #[serde(rename = "DefaultResourceSpec")] - #[serde(default)] pub default_resource_spec: std::option::Option, } impl std::fmt::Debug for TensorBoardAppSettings { @@ -1425,19 +1313,13 @@ impl TensorBoardAppSettings { ///

                                Specifies the ARN's of a SageMaker image and SageMaker image version, and the instance type that /// the version runs on.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceSpec { ///

                                The ARN of the SageMaker image that the image version belongs to.

                                - #[serde(rename = "SageMakerImageArn")] - #[serde(default)] pub sage_maker_image_arn: std::option::Option, ///

                                The ARN of the image version created on the instance.

                                - #[serde(rename = "SageMakerImageVersionArn")] - #[serde(default)] pub sage_maker_image_version_arn: std::option::Option, ///

                                The instance type that the image version runs on.

                                - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, } impl std::fmt::Debug for ResourceSpec { @@ -1607,7 +1489,7 @@ impl std::convert::From<&str> for AppInstanceType { impl std::str::FromStr for AppInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppInstanceType::from(s)) } } @@ -1655,27 +1537,14 @@ impl AsRef for AppInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                The KernelGateway app settings.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KernelGatewayAppSettings { ///

                                The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the KernelGateway app.

                                - #[serde(rename = "DefaultResourceSpec")] - #[serde(default)] pub default_resource_spec: std::option::Option, ///

                                A list of custom SageMaker images that are configured to run as a KernelGateway app.

                                - #[serde(rename = "CustomImages")] - #[serde(default)] pub custom_images: std::option::Option>, } impl std::fmt::Debug for KernelGatewayAppSettings { @@ -1740,19 +1609,13 @@ impl KernelGatewayAppSettings { ///

                                A custom SageMaker image. For more information, see /// Bring your own SageMaker image.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CustomImage { ///

                                The name of the CustomImage. Must be unique to your account.

                                - #[serde(rename = "ImageName")] - #[serde(default)] pub image_name: std::option::Option, ///

                                The version number of the CustomImage.

                                - #[serde(rename = "ImageVersionNumber")] - #[serde(default)] pub image_version_number: std::option::Option, ///

                                The name of the AppImageConfig.

                                - #[serde(rename = "AppImageConfigName")] - #[serde(default)] pub app_image_config_name: std::option::Option, } impl std::fmt::Debug for CustomImage { @@ -1824,11 +1687,9 @@ impl CustomImage { ///

                                The JupyterServer app settings.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct JupyterServerAppSettings { ///

                                The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the JupyterServer app.

                                - #[serde(rename = "DefaultResourceSpec")] - #[serde(default)] pub default_resource_spec: std::option::Option, } impl std::fmt::Debug for JupyterServerAppSettings { @@ -1880,22 +1741,16 @@ impl JupyterServerAppSettings { /// API is called. When SharingSettings is not specified, notebook sharing /// isn't allowed.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SharingSettings { ///

                                Whether to include the notebook cell output when sharing the notebook. The default /// is Disabled.

                                - #[serde(rename = "NotebookOutputOption")] - #[serde(default)] pub notebook_output_option: std::option::Option, ///

                                When NotebookOutputOption is Allowed, the Amazon S3 bucket used /// to store the shared notebook snapshots.

                                - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

                                When NotebookOutputOption is Allowed, the AWS Key Management Service (KMS) /// encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket.

                                - #[serde(rename = "S3KmsKeyId")] - #[serde(default)] pub s3_kms_key_id: std::option::Option, } impl std::fmt::Debug for SharingSettings { @@ -2002,7 +1857,7 @@ impl std::convert::From<&str> for NotebookOutputOption { impl std::str::FromStr for NotebookOutputOption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookOutputOption::from(s)) } } @@ -2020,15 +1875,6 @@ impl AsRef for NotebookOutputOption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookOutputOption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Represents an input or output artifact of a trial component. You specify /// TrialComponentArtifact as part of the InputArtifacts and @@ -2037,18 +1883,14 @@ impl<'de> serde::Deserialize<'de> for NotebookOutputOption { ///

                                Examples of input artifacts are datasets, algorithms, hyperparameters, source code, and /// instance types. Examples of output artifacts are metrics, snapshots, logs, and images.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentArtifact { ///

                                The media type of the artifact, which indicates the type of data in the artifact file. The /// media type consists of a type and a subtype /// concatenated with a slash (/) character, for example, text/csv, image/jpeg, and s3/uri. The /// type specifies the category of the media. The subtype specifies the kind of data.

                                - #[serde(rename = "MediaType")] - #[serde(default)] pub media_type: std::option::Option, ///

                                The location of the artifact.

                                - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for TrialComponentArtifact { @@ -2107,15 +1949,13 @@ impl TrialComponentArtifact { } #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] +#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub enum TrialComponentParameterValue { ///

                                The numeric value of a numeric hyperparameter. If you specify a value for this parameter, /// you can't specify the StringValue parameter.

                                - #[serde(rename = "NumberValue")] NumberValue(f64), ///

                                The string value of a categorical hyperparameter. If you specify a value for this /// parameter, you can't specify the NumberValue parameter.

                                - #[serde(rename = "StringValue")] StringValue(std::string::String), } impl TrialComponentParameterValue { @@ -2143,15 +1983,11 @@ impl TrialComponentParameterValue { ///

                                The status of the trial component.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentStatus { ///

                                The status of the trial component.

                                - #[serde(rename = "PrimaryStatus")] - #[serde(default)] pub primary_status: std::option::Option, ///

                                If the component failed, a message describing why.

                                - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for TrialComponentStatus { @@ -2243,7 +2079,7 @@ impl std::convert::From<&str> for TrialComponentPrimaryStatus { impl std::str::FromStr for TrialComponentPrimaryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrialComponentPrimaryStatus::from(s)) } } @@ -2264,47 +2100,24 @@ impl AsRef for TrialComponentPrimaryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrialComponentPrimaryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Configuration information for profiling rules.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProfilerRuleConfiguration { ///

                                The name of the rule configuration. It must be unique relative to other rule configuration names.

                                - #[serde(rename = "RuleConfigurationName")] - #[serde(default)] pub rule_configuration_name: std::option::Option, ///

                                Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/.

                                - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

                                Path to Amazon S3 storage location for rules.

                                - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

                                The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

                                - #[serde(rename = "RuleEvaluatorImage")] - #[serde(default)] pub rule_evaluator_image: std::option::Option, ///

                                The instance type to deploy a Debugger custom rule for profiling a training job.

                                - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

                                The size, in GB, of the ML storage volume attached to the processing instance.

                                - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] pub volume_size_in_gb: i32, ///

                                Runtime configuration for rule container.

                                - #[serde(rename = "RuleParameters")] - #[serde(default)] pub rule_parameters: std::option::Option>, } @@ -2544,7 +2357,7 @@ impl std::convert::From<&str> for ProcessingInstanceType { impl std::str::FromStr for ProcessingInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingInstanceType::from(s)) } } @@ -2598,29 +2411,16 @@ impl AsRef for ProcessingInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Configuration information for updating the Debugger profile parameters, system and framework metrics configurations, and /// storage paths.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProfilerConfigForUpdate { ///

                                Path to Amazon S3 storage location for system and framework metrics.

                                - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

                                A time interval for capturing system metrics in milliseconds. Available values are /// 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

                                - #[serde(rename = "ProfilingIntervalInMilliseconds")] - #[serde(default)] pub profiling_interval_in_milliseconds: std::option::Option, ///

                                Configuration information for capturing framework metrics. Available key strings for different profiling options are /// DetailedProfilingConfig, PythonProfilingConfig, and DataLoaderProfilingConfig. @@ -2628,13 +2428,9 @@ pub struct ProfilerConfigForUpdate { /// how to configure the ProfilingParameters parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job. ///

                                - #[serde(rename = "ProfilingParameters")] - #[serde(default)] pub profiling_parameters: std::option::Option>, ///

                                To disable Debugger monitoring and profiling, set to True.

                                - #[serde(rename = "DisableProfiler")] - #[serde(default)] pub disable_profiler: bool, } impl std::fmt::Debug for ProfilerConfigForUpdate { @@ -2748,12 +2544,10 @@ impl ProfilerConfigForUpdate { ///

                                For information about notebook instance lifestyle configurations, see Step /// 2.1: (Optional) Customize a Notebook Instance.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NotebookInstanceLifecycleHook { ///

                                A base64-encoded string that contains a shell script for a notebook instance lifecycle /// configuration.

                                - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option, } impl std::fmt::Debug for NotebookInstanceLifecycleHook { @@ -2825,7 +2619,7 @@ impl std::convert::From<&str> for RootAccess { impl std::str::FromStr for RootAccess { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RootAccess::from(s)) } } @@ -2843,15 +2637,6 @@ impl AsRef for RootAccess { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RootAccess { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2889,7 +2674,7 @@ impl std::convert::From<&str> for NotebookInstanceAcceleratorType { impl std::str::FromStr for NotebookInstanceAcceleratorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceAcceleratorType::from(s)) } } @@ -2911,15 +2696,6 @@ impl AsRef for NotebookInstanceAcceleratorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceAcceleratorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3021,7 +2797,7 @@ impl std::convert::From<&str> for InstanceType { impl std::str::FromStr for InstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceType::from(s)) } } @@ -3075,35 +2851,18 @@ impl AsRef for InstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Configures the monitoring schedule and defines the monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringScheduleConfig { ///

                                Configures the monitoring schedule.

                                - #[serde(rename = "ScheduleConfig")] - #[serde(default)] pub schedule_config: std::option::Option, ///

                                Defines the monitoring job.

                                - #[serde(rename = "MonitoringJobDefinition")] - #[serde(default)] pub monitoring_job_definition: std::option::Option, ///

                                The name of the monitoring job definition to schedule.

                                - #[serde(rename = "MonitoringJobDefinitionName")] - #[serde(default)] pub monitoring_job_definition_name: std::option::Option, ///

                                The type of the monitoring job definition to schedule.

                                - #[serde(rename = "MonitoringType")] - #[serde(default)] pub monitoring_type: std::option::Option, } impl std::fmt::Debug for MonitoringScheduleConfig { @@ -3236,7 +2995,7 @@ impl std::convert::From<&str> for MonitoringType { impl std::str::FromStr for MonitoringType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringType::from(s)) } } @@ -3256,61 +3015,34 @@ impl AsRef for MonitoringType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Defines the monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringJobDefinition { ///

                                Baseline configuration used to validate that the data conforms to the specified /// constraints and statistics

                                - #[serde(rename = "BaselineConfig")] - #[serde(default)] pub baseline_config: std::option::Option, ///

                                The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker /// Endpoint.

                                - #[serde(rename = "MonitoringInputs")] - #[serde(default)] pub monitoring_inputs: std::option::Option>, ///

                                The array of outputs from the monitoring job to be uploaded to Amazon Simple Storage /// Service (Amazon S3).

                                - #[serde(rename = "MonitoringOutputConfig")] - #[serde(default)] pub monitoring_output_config: std::option::Option, ///

                                Identifies the resources, ML compute instances, and ML storage volumes to deploy for a /// monitoring job. In distributed processing, you specify more than one instance.

                                - #[serde(rename = "MonitoringResources")] - #[serde(default)] pub monitoring_resources: std::option::Option, ///

                                Configures the monitoring job to run a specified Docker container image.

                                - #[serde(rename = "MonitoringAppSpecification")] - #[serde(default)] pub monitoring_app_specification: std::option::Option, ///

                                Specifies a time limit for how long the monitoring job is allowed to run.

                                - #[serde(rename = "StoppingCondition")] - #[serde(default)] pub stopping_condition: std::option::Option, ///

                                Sets the environment variables in the Docker container.

                                - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

                                Specifies networking options for an monitoring job.

                                - #[serde(rename = "NetworkConfig")] - #[serde(default)] pub network_config: std::option::Option, ///

                                The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on /// your behalf.

                                - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, } impl std::fmt::Debug for MonitoringJobDefinition { @@ -3510,25 +3242,19 @@ impl MonitoringJobDefinition { /// whether to allow inbound and outbound network calls to and from containers, and the VPC /// subnets and security groups to use for VPC-enabled jobs.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NetworkConfig { ///

                                Whether to encrypt all communications between distributed processing jobs. Choose /// True to encrypt communications. Encryption provides greater security for distributed /// processing jobs, but the processing might take longer.

                                - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] pub enable_inter_container_traffic_encryption: bool, ///

                                Whether to allow inbound and outbound network calls to and from the containers used for /// the processing job.

                                - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] pub enable_network_isolation: bool, ///

                                Specifies a VPC that your training jobs and hosted models have access to. Control /// access to and from your training and model containers by configuring the VPC. For more /// information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs /// by Using an Amazon Virtual Private Cloud.

                                - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, } impl std::fmt::Debug for NetworkConfig { @@ -3617,18 +3343,14 @@ impl NetworkConfig { /// information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs /// by Using an Amazon Virtual Private Cloud.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VpcConfig { ///

                                The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for /// the VPC that is specified in the Subnets field.

                                - #[serde(rename = "SecurityGroupIds")] - #[serde(default)] pub security_group_ids: std::option::Option>, ///

                                The ID of the subnets in the VPC to which you want to connect your training job or /// model. For information about the availability of specific instance types, see Supported /// Instance Types and Availability Zones.

                                - #[serde(rename = "Subnets")] - #[serde(default)] pub subnets: std::option::Option>, } impl std::fmt::Debug for VpcConfig { @@ -3693,7 +3415,7 @@ impl VpcConfig { ///

                                A time limit for how long the monitoring job is allowed to run before stopping.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringStoppingCondition { ///

                                The maximum runtime allowed in seconds.

                                /// @@ -3701,8 +3423,6 @@ pub struct MonitoringStoppingCondition { /// model explainability, this can be up to 3600 seconds for an hourly schedule. For model /// bias and model quality hourly schedules, this can be up to 1800 seconds.

                                ///
                                - #[serde(rename = "MaxRuntimeInSeconds")] - #[serde(default)] pub max_runtime_in_seconds: i32, } impl std::fmt::Debug for MonitoringStoppingCondition { @@ -3752,31 +3472,21 @@ impl MonitoringStoppingCondition { ///

                                Container image configuration object for the monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringAppSpecification { ///

                                The container image to be run by the monitoring job.

                                - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

                                Specifies the entrypoint for a container used to run the monitoring job.

                                - #[serde(rename = "ContainerEntrypoint")] - #[serde(default)] pub container_entrypoint: std::option::Option>, ///

                                An array of arguments for the container used to run the monitoring job.

                                - #[serde(rename = "ContainerArguments")] - #[serde(default)] pub container_arguments: std::option::Option>, ///

                                An Amazon S3 URI to a script that is called per row prior to running analysis. It can /// base64 decode the payload and convert it into a flatted json so that the built-in container /// can use the converted data. Applicable only for the built-in (first party) /// containers.

                                - #[serde(rename = "RecordPreprocessorSourceUri")] - #[serde(default)] pub record_preprocessor_source_uri: std::option::Option, ///

                                An Amazon S3 URI to a script that is called after analysis has been performed. /// Applicable only for the built-in (first party) containers.

                                - #[serde(rename = "PostAnalyticsProcessorSourceUri")] - #[serde(default)] pub post_analytics_processor_source_uri: std::option::Option, } impl std::fmt::Debug for MonitoringAppSpecification { @@ -3899,11 +3609,9 @@ impl MonitoringAppSpecification { ///

                                Identifies the resources to deploy for a monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringResources { ///

                                The configuration for the cluster resources used to run the processing job.

                                - #[serde(rename = "ClusterConfig")] - #[serde(default)] pub cluster_config: std::option::Option, } impl std::fmt::Debug for MonitoringResources { @@ -3951,27 +3659,19 @@ impl MonitoringResources { ///

                                Configuration for the cluster used to run model monitoring jobs.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringClusterConfig { ///

                                The number of ML compute instances to use in the model monitoring job. For distributed /// processing jobs, specify a value greater than 1. The default value is 1.

                                - #[serde(rename = "InstanceCount")] - #[serde(default)] pub instance_count: std::option::Option, ///

                                The ML compute instance type for the processing job.

                                - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

                                The size of the ML storage volume, in gigabytes, that you want to provision. You must /// specify sufficient ML storage for your scenario.

                                - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] pub volume_size_in_gb: std::option::Option, ///

                                The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data /// on the storage volume attached to the ML compute instance(s) that run the model monitoring /// job.

                                - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, } impl std::fmt::Debug for MonitoringClusterConfig { @@ -4062,17 +3762,13 @@ impl MonitoringClusterConfig { ///

                                The output configuration for monitoring jobs.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringOutputConfig { ///

                                Monitoring outputs for monitoring jobs. This is where the output of the periodic /// monitoring jobs is uploaded.

                                - #[serde(rename = "MonitoringOutputs")] - #[serde(default)] pub monitoring_outputs: std::option::Option>, ///

                                The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model /// artifacts at rest using Amazon S3 server-side encryption.

                                - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for MonitoringOutputConfig { @@ -4138,11 +3834,9 @@ impl MonitoringOutputConfig { ///

                                The output object for a monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringOutput { ///

                                The Amazon S3 storage location where the results of a monitoring job are saved.

                                - #[serde(rename = "S3Output")] - #[serde(default)] pub s3_output: std::option::Option, } impl std::fmt::Debug for MonitoringOutput { @@ -4191,22 +3885,16 @@ impl MonitoringOutput { ///

                                Information about where and how you want to store the results of a monitoring /// job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringS3Output { ///

                                A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a /// monitoring job.

                                - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

                                The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a /// monitoring job. LocalPath is an absolute path for the output data.

                                - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

                                Whether to upload the results of the monitoring job continuously or after the job /// completes.

                                - #[serde(rename = "S3UploadMode")] - #[serde(default)] pub s3_upload_mode: std::option::Option, } impl std::fmt::Debug for MonitoringS3Output { @@ -4307,7 +3995,7 @@ impl std::convert::From<&str> for ProcessingS3UploadMode { impl std::str::FromStr for ProcessingS3UploadMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingS3UploadMode::from(s)) } } @@ -4325,23 +4013,12 @@ impl AsRef for ProcessingS3UploadMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingS3UploadMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                The inputs for a monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringInput { ///

                                The endpoint for a monitoring job.

                                - #[serde(rename = "EndpointInput")] - #[serde(default)] pub endpoint_input: std::option::Option, } impl std::fmt::Debug for MonitoringInput { @@ -4389,58 +4066,38 @@ impl MonitoringInput { ///

                                Input object for the endpoint

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndpointInput { ///

                                An endpoint in customer's account which has enabled DataCaptureConfig /// enabled.

                                - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

                                Path to the filesystem where the endpoint data is available to the container.

                                - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

                                Whether the Pipe or File is used as the input mode for /// transfering data for the monitoring job. Pipe mode is recommended for large /// datasets. File mode is useful for small files that fit in memory. Defaults to /// File.

                                - #[serde(rename = "S3InputMode")] - #[serde(default)] pub s3_input_mode: std::option::Option, ///

                                Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. /// Defaults to FullyReplicated ///

                                - #[serde(rename = "S3DataDistributionType")] - #[serde(default)] pub s3_data_distribution_type: std::option::Option, ///

                                The attributes of the input data that are the input features.

                                - #[serde(rename = "FeaturesAttribute")] - #[serde(default)] pub features_attribute: std::option::Option, ///

                                The attribute of the input data that represents the ground truth label.

                                - #[serde(rename = "InferenceAttribute")] - #[serde(default)] pub inference_attribute: std::option::Option, ///

                                In a classification problem, the attribute that represents the class probability.

                                - #[serde(rename = "ProbabilityAttribute")] - #[serde(default)] pub probability_attribute: std::option::Option, ///

                                The threshold for the class probability to be evaluated as a positive result.

                                - #[serde(rename = "ProbabilityThresholdAttribute")] - #[serde(default)] pub probability_threshold_attribute: std::option::Option, ///

                                If specified, monitoring jobs substract this time from the start time. For information /// about using offsets for scheduling monitoring jobs, see Schedule Model /// Quality Monitoring Jobs.

                                - #[serde(rename = "StartTimeOffset")] - #[serde(default)] pub start_time_offset: std::option::Option, ///

                                If specified, monitoring jobs substract this time from the end time. For information /// about using offsets for scheduling monitoring jobs, see Schedule Model /// Quality Monitoring Jobs.

                                - #[serde(rename = "EndTimeOffset")] - #[serde(default)] pub end_time_offset: std::option::Option, } impl std::fmt::Debug for EndpointInput { @@ -4663,7 +4320,7 @@ impl std::convert::From<&str> for ProcessingS3DataDistributionType { impl std::str::FromStr for ProcessingS3DataDistributionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingS3DataDistributionType::from(s)) } } @@ -4681,15 +4338,6 @@ impl AsRef for ProcessingS3DataDistributionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingS3DataDistributionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4719,7 +4367,7 @@ impl std::convert::From<&str> for ProcessingS3InputMode { impl std::str::FromStr for ProcessingS3InputMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingS3InputMode::from(s)) } } @@ -4737,35 +4385,20 @@ impl AsRef for ProcessingS3InputMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingS3InputMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                                Configuration for monitoring constraints and monitoring statistics. These baseline /// resources are compared against the results of the current job from the series of jobs /// scheduled to collect data periodically.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringBaselineConfig { ///

                                The name of the job that performs baselining for the monitoring job.

                                - #[serde(rename = "BaseliningJobName")] - #[serde(default)] pub baselining_job_name: std::option::Option, ///

                                The baseline constraint file in Amazon S3 that the current monitoring job should /// validated against.

                                - #[serde(rename = "ConstraintsResource")] - #[serde(default)] pub constraints_resource: std::option::Option, ///

                                The baseline statistics file in Amazon S3 that the current monitoring job should be /// validated against.

                                - #[serde(rename = "StatisticsResource")] - #[serde(default)] pub statistics_resource: std::option::Option, } impl std::fmt::Debug for MonitoringBaselineConfig { @@ -4853,11 +4486,9 @@ impl MonitoringBaselineConfig { ///

                                The statistics resource for a monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringStatisticsResource { ///

                                The Amazon S3 URI for the statistics resource.

                                - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } impl std::fmt::Debug for MonitoringStatisticsResource { @@ -4902,11 +4533,9 @@ impl MonitoringStatisticsResource { ///

                                The constraints resource for a monitoring job.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringConstraintsResource { ///

                                The Amazon S3 URI for the constraints resource.

                                - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } impl std::fmt::Debug for MonitoringConstraintsResource { @@ -4951,7 +4580,7 @@ impl MonitoringConstraintsResource { ///

                                Configuration details about the monitoring schedule.

                                #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ScheduleConfig { ///

                                A cron expression that describes details about the monitoring schedule.

                                ///

                                Currently the only supported cron expressions are:

                                @@ -5008,8 +4637,6 @@ pub struct ScheduleConfig { /// ///
                              /// - #[serde(rename = "ScheduleExpression")] - #[serde(default)] pub schedule_expression: std::option::Option, } impl std::fmt::Debug for ScheduleConfig { @@ -5139,7 +4766,7 @@ impl std::convert::From<&str> for ModelApprovalStatus { impl std::str::FromStr for ModelApprovalStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelApprovalStatus::from(s)) } } @@ -5158,33 +4785,18 @@ impl AsRef for ModelApprovalStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelApprovalStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies weight and capacity values for a production variant.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DesiredWeightAndCapacity { ///

                              The name of the /// variant /// to update.

                              - #[serde(rename = "VariantName")] - #[serde(default)] pub variant_name: std::option::Option, ///

                              The variant's weight.

                              - #[serde(rename = "DesiredWeight")] - #[serde(default)] pub desired_weight: std::option::Option, ///

                              The variant's capacity.

                              - #[serde(rename = "DesiredInstanceCount")] - #[serde(default)] pub desired_instance_count: std::option::Option, } impl std::fmt::Debug for DesiredWeightAndCapacity { @@ -5255,15 +4867,11 @@ impl DesiredWeightAndCapacity { ///

                              Currently, the DeploymentConfig API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeploymentConfig { ///

                              - #[serde(rename = "BlueGreenUpdatePolicy")] - #[serde(default)] pub blue_green_update_policy: std::option::Option, ///

                              - #[serde(rename = "AutoRollbackConfiguration")] - #[serde(default)] pub auto_rollback_configuration: std::option::Option, } impl std::fmt::Debug for DeploymentConfig { @@ -5337,11 +4945,9 @@ impl DeploymentConfig { ///

                              Currently, the AutoRollbackConfig API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutoRollbackConfig { ///

                              - #[serde(rename = "Alarms")] - #[serde(default)] pub alarms: std::option::Option>, } impl std::fmt::Debug for AutoRollbackConfig { @@ -5390,11 +4996,9 @@ impl AutoRollbackConfig { ///

                              This API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Alarm { ///

                              - #[serde(rename = "AlarmName")] - #[serde(default)] pub alarm_name: std::option::Option, } impl std::fmt::Debug for Alarm { @@ -5439,19 +5043,13 @@ impl Alarm { ///

                              Currently, the BlueGreenUpdatePolicy API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BlueGreenUpdatePolicy { ///

                              - #[serde(rename = "TrafficRoutingConfiguration")] - #[serde(default)] pub traffic_routing_configuration: std::option::Option, ///

                              - #[serde(rename = "TerminationWaitInSeconds")] - #[serde(default)] pub termination_wait_in_seconds: std::option::Option, ///

                              - #[serde(rename = "MaximumExecutionTimeoutInSeconds")] - #[serde(default)] pub maximum_execution_timeout_in_seconds: std::option::Option, } impl std::fmt::Debug for BlueGreenUpdatePolicy { @@ -5539,19 +5137,13 @@ impl BlueGreenUpdatePolicy { ///

                              Currently, the TrafficRoutingConfig API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrafficRoutingConfig { ///

                              - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

                              - #[serde(rename = "WaitIntervalInSeconds")] - #[serde(default)] pub wait_interval_in_seconds: std::option::Option, ///

                              - #[serde(rename = "CanarySize")] - #[serde(default)] pub canary_size: std::option::Option, } impl std::fmt::Debug for TrafficRoutingConfig { @@ -5626,15 +5218,11 @@ impl TrafficRoutingConfig { ///

                              Currently, the CapacitySize API is not supported.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CapacitySize { ///

                              This API is not supported.

                              - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

                              - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for CapacitySize { @@ -5720,7 +5308,7 @@ impl std::convert::From<&str> for CapacitySizeType { impl std::str::FromStr for CapacitySizeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CapacitySizeType::from(s)) } } @@ -5738,15 +5326,6 @@ impl AsRef for CapacitySizeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CapacitySizeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5776,7 +5355,7 @@ impl std::convert::From<&str> for TrafficRoutingConfigType { impl std::str::FromStr for TrafficRoutingConfigType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrafficRoutingConfigType::from(s)) } } @@ -5794,22 +5373,13 @@ impl AsRef for TrafficRoutingConfigType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrafficRoutingConfigType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Specifies a production variant property type for an Endpoint.

                              ///

                              If you are updating an endpoint with the UpdateEndpointInput$RetainAllVariantProperties option set to /// true, the VariantProperty objects listed in UpdateEndpointInput$ExcludeRetainedVariantProperties override the /// existing variant properties of the endpoint.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VariantProperty { ///

                              The type of variant property. The supported values are:

                              ///
                                @@ -5829,8 +5399,6 @@ pub struct VariantProperty { /// DataCaptureConfig: (Not currently supported.)

                                /// ///
                              - #[serde(rename = "VariantPropertyType")] - #[serde(default)] pub variant_property_type: std::option::Option, } impl std::fmt::Debug for VariantProperty { @@ -5923,7 +5491,7 @@ impl std::convert::From<&str> for VariantPropertyType { impl std::str::FromStr for VariantPropertyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(VariantPropertyType::from(s)) } } @@ -5942,31 +5510,16 @@ impl AsRef for VariantPropertyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for VariantPropertyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                              Information of a particular device.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Device { ///

                              The name of the device.

                              - #[serde(rename = "DeviceName")] - #[serde(default)] pub device_name: std::option::Option, ///

                              Description of the device.

                              - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

                              AWS Internet of Things (IoT) object name.

                              - #[serde(rename = "IotThingName")] - #[serde(default)] pub iot_thing_name: std::option::Option, } impl std::fmt::Debug for Device { @@ -6038,20 +5591,14 @@ impl Device { ///

                              The output configuration.

                              #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgeOutputConfig { ///

                              The Amazon Simple Storage (S3) bucker URI.

                              - #[serde(rename = "S3OutputLocation")] - #[serde(default)] pub s3_output_location: std::option::Option, ///

                              The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

                              - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

                              The deployment type SageMaker Edge Manager will create. /// Currently only supports AWS IoT Greengrass Version 2 components.

                              - #[serde(rename = "PresetDeploymentType")] - #[serde(default)] pub preset_deployment_type: std::option::Option, ///

                              The configuration used to create deployment artifacts. /// Specify configuration options with a JSON string. The available configuration options for each type are:

                              @@ -6087,8 +5634,6 @@ pub struct EdgeOutputConfig { ///

                              Supported architectures for Linux include: Linux x86_64, Linux ARMV8.

                              ///
                            • ///
                            - #[serde(rename = "PresetDeploymentConfig")] - #[serde(default)] pub preset_deployment_config: std::option::Option, } impl std::fmt::Debug for EdgeOutputConfig { @@ -6240,7 +5785,7 @@ impl std::convert::From<&str> for EdgePresetDeploymentType { impl std::str::FromStr for EdgePresetDeploymentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EdgePresetDeploymentType::from(s)) } } @@ -6257,20 +5802,11 @@ impl AsRef for EdgePresetDeploymentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EdgePresetDeploymentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                            Specifies configuration details for a Git repository when the repository is /// updated.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GitConfigForUpdate { ///

                            The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the /// credentials used to access the git repository. The secret must have a staging label of @@ -6279,8 +5815,6 @@ pub struct GitConfigForUpdate { /// {"username": UserName, "password": /// Password} ///

                            - #[serde(rename = "SecretArn")] - #[serde(default)] pub secret_arn: std::option::Option, } impl std::fmt::Debug for GitConfigForUpdate { @@ -6332,15 +5866,11 @@ impl GitConfigForUpdate { ///

                            The configuration for the file system and kernels in a SageMaker image running as a /// KernelGateway app.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KernelGatewayImageConfig { ///

                            The specification of the Jupyter kernels in the image.

                            - #[serde(rename = "KernelSpecs")] - #[serde(default)] pub kernel_specs: std::option::Option>, ///

                            The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.

                            - #[serde(rename = "FileSystemConfig")] - #[serde(default)] pub file_system_config: std::option::Option, } impl std::fmt::Debug for KernelGatewayImageConfig { @@ -6404,20 +5934,14 @@ impl KernelGatewayImageConfig { ///

                            The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FileSystemConfig { ///

                            The path within the image to mount the user's EFS home directory. The directory /// should be empty. If not specified, defaults to /home/sagemaker-user.

                            - #[serde(rename = "MountPath")] - #[serde(default)] pub mount_path: std::option::Option, ///

                            The default POSIX user ID (UID). If not specified, defaults to 1000.

                            - #[serde(rename = "DefaultUid")] - #[serde(default)] pub default_uid: std::option::Option, ///

                            The default POSIX group ID (GID). If not specified, defaults to 100.

                            - #[serde(rename = "DefaultGid")] - #[serde(default)] pub default_gid: std::option::Option, } impl std::fmt::Debug for FileSystemConfig { @@ -6487,15 +6011,11 @@ impl FileSystemConfig { ///

                            The specification of a Jupyter kernel.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KernelSpec { ///

                            The name of the Jupyter kernel in the image. This value is case sensitive.

                            - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

                            The display name of the kernel.

                            - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, } impl std::fmt::Debug for KernelSpec { @@ -6588,7 +6108,7 @@ impl std::convert::From<&str> for ActionStatus { impl std::str::FromStr for ActionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ActionStatus::from(s)) } } @@ -6610,27 +6130,14 @@ impl AsRef for ActionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ActionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                            Assigns a value to a named Pipeline parameter.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Parameter { ///

                            The name of the parameter to assign a value to. This parameter name must match a named parameter in the pipeline definition.

                            - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

                            The literal value for the parameter.

                            - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Parameter { @@ -6687,15 +6194,11 @@ impl Parameter { ///

                            An output parameter of a pipeline step.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputParameter { ///

                            The name of the output parameter.

                            - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

                            The value of the output parameter.

                            - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for OutputParameter { @@ -6752,50 +6255,30 @@ impl OutputParameter { ///

                            A single resource returned as part of the Search API response.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SearchRecord { ///

                            The properties of a training job.

                            - #[serde(rename = "TrainingJob")] - #[serde(default)] pub training_job: std::option::Option, ///

                            The properties of an experiment.

                            - #[serde(rename = "Experiment")] - #[serde(default)] pub experiment: std::option::Option, ///

                            The properties of a trial.

                            - #[serde(rename = "Trial")] - #[serde(default)] pub trial: std::option::Option, ///

                            The properties of a trial component.

                            - #[serde(rename = "TrialComponent")] - #[serde(default)] pub trial_component: std::option::Option, ///

                            A hosted endpoint for real-time inference.

                            - #[serde(rename = "Endpoint")] - #[serde(default)] pub endpoint: std::option::Option, ///

                            A versioned model that can be deployed for SageMaker inference.

                            - #[serde(rename = "ModelPackage")] - #[serde(default)] pub model_package: std::option::Option, ///

                            A group of versioned models in the model registry.

                            - #[serde(rename = "ModelPackageGroup")] - #[serde(default)] pub model_package_group: std::option::Option, ///

                            A SageMaker Model Building Pipeline instance.

                            - #[serde(rename = "Pipeline")] - #[serde(default)] pub pipeline: std::option::Option, ///

                            An execution of a pipeline.

                            - #[serde(rename = "PipelineExecution")] - #[serde(default)] pub pipeline_execution: std::option::Option, ///

                            Amazon SageMaker Feature Store stores features in a collection called Feature Group. /// A Feature Group can be visualized as a table which has rows, /// with a unique identifier for each row where each column in the table is a feature. /// In principle, a Feature Group is composed of features and values per features.

                            - #[serde(rename = "FeatureGroup")] - #[serde(default)] pub feature_group: std::option::Option, } impl std::fmt::Debug for SearchRecord { @@ -6975,21 +6458,15 @@ impl SearchRecord { /// with a unique identifier for each row where each column in the table is a feature. /// In principle, a Feature Group is composed of features and values per features.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FeatureGroup { ///

                            The Amazon Resource Name (ARN) of a FeatureGroup.

                            - #[serde(rename = "FeatureGroupArn")] - #[serde(default)] pub feature_group_arn: std::option::Option, ///

                            The name of the FeatureGroup.

                            - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, ///

                            The name of the Feature whose value uniquely identifies a /// Record defined in the FeatureGroup /// FeatureDefinitions.

                            - #[serde(rename = "RecordIdentifierFeatureName")] - #[serde(default)] pub record_identifier_feature_name: std::option::Option, ///

                            The name of the feature that stores the EventTime of a Record in a /// FeatureGroup.

                            @@ -6997,8 +6474,6 @@ pub struct FeatureGroup { /// occurs that corresponds to the creation or update of a Record in /// FeatureGroup. All Records in the FeatureGroup /// must have a corresponding EventTime.

                            - #[serde(rename = "EventTimeFeatureName")] - #[serde(default)] pub event_time_feature_name: std::option::Option, ///

                            A list of Features. Each Feature must include a /// FeatureName and a FeatureType.

                            @@ -7009,22 +6484,13 @@ pub struct FeatureGroup { /// write_time, api_invocation_time.

                            ///

                            You can create up to 2,500 FeatureDefinitions per /// FeatureGroup.

                            - #[serde(rename = "FeatureDefinitions")] - #[serde(default)] pub feature_definitions: std::option::Option>, ///

                            The time a FeatureGroup was created.

                            - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                            Use this to specify the AWS Key Management Service (KMS) Key ID, or /// KMSKeyId, for at rest data encryption. You can turn /// OnlineStore on or off by specifying the EnableOnlineStore flag /// at General Assembly; the default value is False.

                            - #[serde(rename = "OnlineStoreConfig")] - #[serde(default)] pub online_store_config: std::option::Option, ///

                            The configuration of an OfflineStore.

                            ///

                            Provide an OfflineStoreConfig in a request to @@ -7032,36 +6498,22 @@ pub struct FeatureGroup { ///

                            To encrypt an OfflineStore using at rest data encryption, specify AWS Key /// Management Service (KMS) key ID, or KMSKeyId, in /// S3StorageConfig.

                            - #[serde(rename = "OfflineStoreConfig")] - #[serde(default)] pub offline_store_config: std::option::Option, ///

                            The Amazon Resource Name (ARN) of the IAM execution role used to create the feature /// group.

                            - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

                            A FeatureGroup status.

                            - #[serde(rename = "FeatureGroupStatus")] - #[serde(default)] pub feature_group_status: std::option::Option, ///

                            The status of OfflineStore.

                            - #[serde(rename = "OfflineStoreStatus")] - #[serde(default)] pub offline_store_status: std::option::Option, ///

                            The reason that the FeatureGroup failed to /// be replicated in the OfflineStore. This is /// failure may be due to a failure to create a FeatureGroup in /// or delete a FeatureGroup from the OfflineStore.

                            - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                            A free form description of a FeatureGroup.

                            - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

                            Tags used to define a FeatureGroup.

                            - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for FeatureGroup { @@ -7338,15 +6790,11 @@ impl FeatureGroup { /// tagging, see Tagging /// Best Practices: Implement an Effective AWS Resource Tagging Strategy.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

                            The tag key. Tag keys must be unique per resource.

                            - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

                            The tag value.

                            - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -7403,15 +6851,11 @@ impl Tag { ///

                            The status of OfflineStore.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OfflineStoreStatus { ///

                            An OfflineStore status.

                            - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

                            The justification for why the OfflineStoreStatus is Blocked (if applicable).

                            - #[serde(rename = "BlockedReason")] - #[serde(default)] pub blocked_reason: std::option::Option, } impl std::fmt::Debug for OfflineStoreStatus { @@ -7502,7 +6946,7 @@ impl std::convert::From<&str> for OfflineStoreStatusValue { impl std::str::FromStr for OfflineStoreStatusValue { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OfflineStoreStatusValue::from(s)) } } @@ -7521,15 +6965,6 @@ impl AsRef for OfflineStoreStatusValue { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OfflineStoreStatusValue { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7565,7 +7000,7 @@ impl std::convert::From<&str> for FeatureGroupStatus { impl std::str::FromStr for FeatureGroupStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FeatureGroupStatus::from(s)) } } @@ -7586,15 +7021,6 @@ impl AsRef for FeatureGroupStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FeatureGroupStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                            The configuration of an OfflineStore.

                            ///

                            Provide an OfflineStoreConfig in a request to @@ -7603,21 +7029,15 @@ impl<'de> serde::Deserialize<'de> for FeatureGroupStatus { /// Management Service (KMS) key ID, or KMSKeyId, in /// S3StorageConfig.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OfflineStoreConfig { ///

                            The Amazon Simple Storage (Amazon S3) location of OfflineStore.

                            - #[serde(rename = "S3StorageConfig")] - #[serde(default)] pub s3_storage_config: std::option::Option, ///

                            Set to True to disable the automatic creation of an AWS Glue table when /// configuring an OfflineStore.

                            - #[serde(rename = "DisableGlueTableCreation")] - #[serde(default)] pub disable_glue_table_creation: bool, ///

                            The meta data of the Glue table that is autogenerated when an OfflineStore /// is created.

                            - #[serde(rename = "DataCatalogConfig")] - #[serde(default)] pub data_catalog_config: std::option::Option, } impl std::fmt::Debug for OfflineStoreConfig { @@ -7698,19 +7118,13 @@ impl OfflineStoreConfig { ///

                            The meta data of the Glue table which serves as data catalog for the /// OfflineStore.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataCatalogConfig { ///

                            The name of the Glue table.

                            - #[serde(rename = "TableName")] - #[serde(default)] pub table_name: std::option::Option, ///

                            The name of the Glue table catalog.

                            - #[serde(rename = "Catalog")] - #[serde(default)] pub catalog: std::option::Option, ///

                            The name of the Glue table database.

                            - #[serde(rename = "Database")] - #[serde(default)] pub database: std::option::Option, } impl std::fmt::Debug for DataCatalogConfig { @@ -7779,12 +7193,10 @@ impl DataCatalogConfig { ///

                            The Amazon Simple Storage (Amazon S3) location and and security configuration for OfflineStore.

                            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3StorageConfig { ///

                            The S3 URI, or location in Amazon S3, of OfflineStore.

                            ///

                            S3 URIs have a format similar to the following: s3://example-bucket/prefix/.

                            - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

                            The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects /// written into the OfflineStore S3 location.

                            @@ -7798,12 +7210,8 @@ pub struct S3StorageConfig { ///

                            ///
                          • ///
                          - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

                          The S3 path where offline records are written.

                          - #[serde(rename = "ResolvedOutputS3Uri")] - #[serde(default)] pub resolved_output_s3_uri: std::option::Option, } impl std::fmt::Debug for S3StorageConfig { @@ -7890,20 +7298,16 @@ impl S3StorageConfig { /// OnlineStore on or off by specifying the EnableOnlineStore flag /// at General Assembly; the default value is False.

                          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OnlineStoreConfig { ///

                          Use to specify KMS Key ID (KMSKeyId) for at-rest encryption of your /// OnlineStore.

                          - #[serde(rename = "SecurityConfig")] - #[serde(default)] pub security_config: std::option::Option, ///

                          Turn OnlineStore off by specifying False /// for the EnableOnlineStore flag. Turn OnlineStore /// on by specifying True /// for the EnableOnlineStore flag.

                          ///

                          The default value is False.

                          - #[serde(rename = "EnableOnlineStore")] - #[serde(default)] pub enable_online_store: bool, } impl std::fmt::Debug for OnlineStoreConfig { @@ -7968,7 +7372,7 @@ impl OnlineStoreConfig { ///

                          The security configuration for OnlineStore.

                          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OnlineStoreSecurityConfig { ///

                          The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses /// to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption.

                          @@ -8042,8 +7446,6 @@ pub struct OnlineStoreSecurityConfig { ///

                          /// ///
                        - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for OnlineStoreSecurityConfig { @@ -8161,17 +7563,13 @@ impl OnlineStoreSecurityConfig { /// FeatureType. Valid feature FeatureTypes are /// Integral, Fractional and String.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FeatureDefinition { ///

                        The name of a feature. The type must be a string. FeatureName cannot be any /// of the following: is_deleted, write_time, /// api_invocation_time.

                        - #[serde(rename = "FeatureName")] - #[serde(default)] pub feature_name: std::option::Option, ///

                        The value type of a feature. Valid values are Integral, Fractional, or String.

                        - #[serde(rename = "FeatureType")] - #[serde(default)] pub feature_type: std::option::Option, } impl std::fmt::Debug for FeatureDefinition { @@ -8261,7 +7659,7 @@ impl std::convert::From<&str> for FeatureType { impl std::str::FromStr for FeatureType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FeatureType::from(s)) } } @@ -8280,75 +7678,36 @@ impl AsRef for FeatureType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FeatureType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        An execution of a pipeline.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineExecution { ///

                        The Amazon Resource Name (ARN) of the pipeline that was executed.

                        - #[serde(rename = "PipelineArn")] - #[serde(default)] pub pipeline_arn: std::option::Option, ///

                        The Amazon Resource Name (ARN) of the pipeline execution.

                        - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] pub pipeline_execution_arn: std::option::Option, ///

                        The display name of the pipeline execution.

                        - #[serde(rename = "PipelineExecutionDisplayName")] - #[serde(default)] pub pipeline_execution_display_name: std::option::Option, ///

                        The status of the pipeline status.

                        - #[serde(rename = "PipelineExecutionStatus")] - #[serde(default)] pub pipeline_execution_status: std::option::Option, ///

                        The description of the pipeline execution.

                        - #[serde(rename = "PipelineExecutionDescription")] - #[serde(default)] pub pipeline_execution_description: std::option::Option, ///

                        Specifies the names of the experiment and trial created by a pipeline.

                        - #[serde(rename = "PipelineExperimentConfig")] - #[serde(default)] pub pipeline_experiment_config: std::option::Option, ///

                        If the execution failed, a message describing why.

                        - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                        The creation time of the pipeline execution.

                        - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                        The time that the pipeline execution was last modified.

                        - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

                        Contains a list of pipeline parameters. This list can be empty.

                        - #[serde(rename = "PipelineParameters")] - #[serde(default)] pub pipeline_parameters: std::option::Option>, } impl std::fmt::Debug for PipelineExecution { @@ -8585,19 +7944,13 @@ impl PipelineExecution { ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UserContext { ///

                        The Amazon Resource Name (ARN) of the user's profile.

                        - #[serde(rename = "UserProfileArn")] - #[serde(default)] pub user_profile_arn: std::option::Option, ///

                        The name of the user's profile.

                        - #[serde(rename = "UserProfileName")] - #[serde(default)] pub user_profile_name: std::option::Option, ///

                        The domain associated with the user.

                        - #[serde(rename = "DomainId")] - #[serde(default)] pub domain_id: std::option::Option, } impl std::fmt::Debug for UserContext { @@ -8672,15 +8025,11 @@ impl UserContext { ///

                        Specifies the names of the experiment and trial created by a pipeline.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineExperimentConfig { ///

                        The name of the experiment.

                        - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, ///

                        The name of the trial.

                        - #[serde(rename = "TrialName")] - #[serde(default)] pub trial_name: std::option::Option, } impl std::fmt::Debug for PipelineExperimentConfig { @@ -8772,7 +8121,7 @@ impl std::convert::From<&str> for PipelineExecutionStatus { impl std::str::FromStr for PipelineExecutionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PipelineExecutionStatus::from(s)) } } @@ -8793,78 +8142,36 @@ impl AsRef for PipelineExecutionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PipelineExecutionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A SageMaker Model Building Pipeline instance.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Pipeline { ///

                        The Amazon Resource Name (ARN) of the pipeline.

                        - #[serde(rename = "PipelineArn")] - #[serde(default)] pub pipeline_arn: std::option::Option, ///

                        The name of the pipeline.

                        - #[serde(rename = "PipelineName")] - #[serde(default)] pub pipeline_name: std::option::Option, ///

                        The display name of the pipeline.

                        - #[serde(rename = "PipelineDisplayName")] - #[serde(default)] pub pipeline_display_name: std::option::Option, ///

                        The description of the pipeline.

                        - #[serde(rename = "PipelineDescription")] - #[serde(default)] pub pipeline_description: std::option::Option, ///

                        The Amazon Resource Name (ARN) of the role that created the pipeline.

                        - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

                        The status of the pipeline.

                        - #[serde(rename = "PipelineStatus")] - #[serde(default)] pub pipeline_status: std::option::Option, ///

                        The creation time of the pipeline.

                        - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                        The time that the pipeline was last modified.

                        - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                        The time when the pipeline was last run.

                        - #[serde(rename = "LastRunTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_run_time: std::option::Option, ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

                        A list of tags that apply to the pipeline.

                        - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for Pipeline { @@ -9098,7 +8405,7 @@ impl std::convert::From<&str> for PipelineStatus { impl std::str::FromStr for PipelineStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PipelineStatus::from(s)) } } @@ -9115,43 +8422,21 @@ impl AsRef for PipelineStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PipelineStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A group of versioned models in the model registry.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageGroup { ///

                        The name of the model group.

                        - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] pub model_package_group_name: std::option::Option, ///

                        The Amazon Resource Name (ARN) of the model group.

                        - #[serde(rename = "ModelPackageGroupArn")] - #[serde(default)] pub model_package_group_arn: std::option::Option, ///

                        The description for the model group.

                        - #[serde(rename = "ModelPackageGroupDescription")] - #[serde(default)] pub model_package_group_description: std::option::Option, ///

                        The time that the model group was created.

                        - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                        Information about the user who created or modified an experiment, trial, or trial /// component.

                        - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

                        The status of the model group. This can be one of the following values.

                        ///
                          @@ -9181,13 +8466,9 @@ pub struct ModelPackageGroup { /// DELETE_FAILED - SageMaker failed to delete the model group.

                          /// ///
                        - #[serde(rename = "ModelPackageGroupStatus")] - #[serde(default)] pub model_package_group_status: std::option::Option, ///

                        A list of the tags associated with the model group. For more information, see Tagging AWS /// resources in the AWS General Reference Guide.

                        - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for ModelPackageGroup { @@ -9401,7 +8682,7 @@ impl std::convert::From<&str> for ModelPackageGroupStatus { impl std::str::FromStr for ModelPackageGroupStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelPackageGroupStatus::from(s)) } } @@ -9423,59 +8704,29 @@ impl AsRef for ModelPackageGroupStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelPackageGroupStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                        A versioned model that can be deployed for SageMaker inference.

                        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackage { ///

                        The name of the model.

                        - #[serde(rename = "ModelPackageName")] - #[serde(default)] pub model_package_name: std::option::Option, ///

                        The model group to which the model belongs.

                        - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] pub model_package_group_name: std::option::Option, ///

                        The version number of a versioned model.

                        - #[serde(rename = "ModelPackageVersion")] - #[serde(default)] pub model_package_version: std::option::Option, ///

                        The Amazon Resource Name (ARN) of the model package.

                        - #[serde(rename = "ModelPackageArn")] - #[serde(default)] pub model_package_arn: std::option::Option, ///

                        The description of the model package.

                        - #[serde(rename = "ModelPackageDescription")] - #[serde(default)] pub model_package_description: std::option::Option, ///

                        The time that the model package was created.

                        - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                        Defines how to perform inference generation after a training job is run.

                        - #[serde(rename = "InferenceSpecification")] - #[serde(default)] pub inference_specification: std::option::Option, ///

                        A list of algorithms that were used to create a model package.

                        - #[serde(rename = "SourceAlgorithmSpecification")] - #[serde(default)] pub source_algorithm_specification: std::option::Option, ///

                        Specifies batch transform jobs that Amazon SageMaker runs to validate your model package.

                        - #[serde(rename = "ValidationSpecification")] - #[serde(default)] pub validation_specification: std::option::Option, ///

                        The status of the model package. This can be one of the following values.

                        @@ -9502,18 +8753,12 @@ pub struct ModelPackage { /// DELETING - The model package is in the process of being deleted.

                        /// ///
                      - #[serde(rename = "ModelPackageStatus")] - #[serde(default)] pub model_package_status: std::option::Option, ///

                      Specifies the validation and image scan statuses of the model package.

                      - #[serde(rename = "ModelPackageStatusDetails")] - #[serde(default)] pub model_package_status_details: std::option::Option, ///

                      Whether the model package is to be certified to be listed on AWS Marketplace. For /// information about listing model packages on AWS Marketplace, see List Your /// Algorithm or Model Package on AWS Marketplace.

                      - #[serde(rename = "CertifyForMarketplace")] - #[serde(default)] pub certify_for_marketplace: bool, ///

                      The approval status of the model. This can be one of the following values.

                      ///
                        @@ -9531,42 +8776,23 @@ pub struct ModelPackage { /// approval.

                        /// ///
                      - #[serde(rename = "ModelApprovalStatus")] - #[serde(default)] pub model_approval_status: std::option::Option, ///

                      Information about the user who created or modified an experiment, trial, or trial /// component.

                      - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

                      Metadata properties of the tracking entity, trial, or trial component.

                      - #[serde(rename = "MetadataProperties")] - #[serde(default)] pub metadata_properties: std::option::Option, ///

                      Metrics for the model.

                      - #[serde(rename = "ModelMetrics")] - #[serde(default)] pub model_metrics: std::option::Option, ///

                      The last time the model package was modified.

                      - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                      Information about the user who created or modified an experiment, trial, or trial /// component.

                      - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

                      A description provided when the model approval is set.

                      - #[serde(rename = "ApprovalDescription")] - #[serde(default)] pub approval_description: std::option::Option, ///

                      A list of the tags associated with the model package. For more information, see Tagging AWS /// resources in the AWS General Reference Guide.

                      - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for ModelPackage { @@ -9958,23 +9184,15 @@ impl ModelPackage { ///

                      Contains metrics captured from a model.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelMetrics { ///

                      Metrics that measure the quality of a model.

                      - #[serde(rename = "ModelQuality")] - #[serde(default)] pub model_quality: std::option::Option, ///

                      Metrics that measure the quality of the input data for a model.

                      - #[serde(rename = "ModelDataQuality")] - #[serde(default)] pub model_data_quality: std::option::Option, ///

                      Metrics that measure bais in a model.

                      - #[serde(rename = "Bias")] - #[serde(default)] pub bias: std::option::Option, ///

                      Metrics that help explain a model.

                      - #[serde(rename = "Explainability")] - #[serde(default)] pub explainability: std::option::Option, } impl std::fmt::Debug for ModelMetrics { @@ -10064,11 +9282,9 @@ impl ModelMetrics { ///

                      Contains explainability metrics for a model.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Explainability { ///

                      The explainability report for a model.

                      - #[serde(rename = "Report")] - #[serde(default)] pub report: std::option::Option, } impl std::fmt::Debug for Explainability { @@ -10116,19 +9332,13 @@ impl Explainability { ///

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricsSource { ///

                      - #[serde(rename = "ContentType")] - #[serde(default)] pub content_type: std::option::Option, ///

                      - #[serde(rename = "ContentDigest")] - #[serde(default)] pub content_digest: std::option::Option, ///

                      - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } impl std::fmt::Debug for MetricsSource { @@ -10200,11 +9410,9 @@ impl MetricsSource { ///

                      Contains bias metrics for a model.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Bias { ///

                      The bias report for a model

                      - #[serde(rename = "Report")] - #[serde(default)] pub report: std::option::Option, } impl std::fmt::Debug for Bias { @@ -10252,15 +9460,11 @@ impl Bias { ///

                      Data quality constraints and statistics for a model.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelDataQuality { ///

                      Data quality statistics for a model.

                      - #[serde(rename = "Statistics")] - #[serde(default)] pub statistics: std::option::Option, ///

                      Data quality constraints for a model.

                      - #[serde(rename = "Constraints")] - #[serde(default)] pub constraints: std::option::Option, } impl std::fmt::Debug for ModelDataQuality { @@ -10323,15 +9527,11 @@ impl ModelDataQuality { ///

                      Model quality statistics and constraints.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelQuality { ///

                      Model quality statistics.

                      - #[serde(rename = "Statistics")] - #[serde(default)] pub statistics: std::option::Option, ///

                      Model quality constraints.

                      - #[serde(rename = "Constraints")] - #[serde(default)] pub constraints: std::option::Option, } impl std::fmt::Debug for ModelQuality { @@ -10394,23 +9594,15 @@ impl ModelQuality { ///

                      Metadata properties of the tracking entity, trial, or trial component.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetadataProperties { ///

                      The commit ID.

                      - #[serde(rename = "CommitId")] - #[serde(default)] pub commit_id: std::option::Option, ///

                      The repository.

                      - #[serde(rename = "Repository")] - #[serde(default)] pub repository: std::option::Option, ///

                      The entity this entity was generated by.

                      - #[serde(rename = "GeneratedBy")] - #[serde(default)] pub generated_by: std::option::Option, ///

                      The project ID.

                      - #[serde(rename = "ProjectId")] - #[serde(default)] pub project_id: std::option::Option, } impl std::fmt::Debug for MetadataProperties { @@ -10491,16 +9683,12 @@ impl MetadataProperties { ///

                      Specifies the validation and image scan statuses of the model package.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageStatusDetails { ///

                      The validation status of the model package.

                      - #[serde(rename = "ValidationStatuses")] - #[serde(default)] pub validation_statuses: std::option::Option>, ///

                      The status of the scan of the Docker image container for the model package.

                      - #[serde(rename = "ImageScanStatuses")] - #[serde(default)] pub image_scan_statuses: std::option::Option>, } @@ -10574,19 +9762,13 @@ impl ModelPackageStatusDetails { ///

                      Represents the overall status of a model package.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageStatusItem { ///

                      The name of the model package for which the overall status is being reported.

                      - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

                      The current status.

                      - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

                      if the overall status is Failed, the reason for the failure.

                      - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, } impl std::fmt::Debug for ModelPackageStatusItem { @@ -10691,7 +9873,7 @@ impl std::convert::From<&str> for DetailedModelPackageStatus { impl std::str::FromStr for DetailedModelPackageStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DetailedModelPackageStatus::from(s)) } } @@ -10711,15 +9893,6 @@ impl AsRef for DetailedModelPackageStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DetailedModelPackageStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10755,7 +9928,7 @@ impl std::convert::From<&str> for ModelPackageStatus { impl std::str::FromStr for ModelPackageStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelPackageStatus::from(s)) } } @@ -10776,28 +9949,15 @@ impl AsRef for ModelPackageStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelPackageStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                      Specifies batch transform jobs that Amazon SageMaker runs to validate your model package.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageValidationSpecification { ///

                      The IAM roles to be used for the validation of the model package.

                      - #[serde(rename = "ValidationRole")] - #[serde(default)] pub validation_role: std::option::Option, ///

                      An array of ModelPackageValidationProfile objects, each of which /// specifies a batch transform job that Amazon SageMaker runs to validate your model package.

                      - #[serde(rename = "ValidationProfiles")] - #[serde(default)] pub validation_profiles: std::option::Option>, } @@ -10869,16 +10029,12 @@ impl ModelPackageValidationSpecification { ///

                      The data provided in the validation profile is made available to your buyers on AWS /// Marketplace.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageValidationProfile { ///

                      The name of the profile for the model package.

                      - #[serde(rename = "ProfileName")] - #[serde(default)] pub profile_name: std::option::Option, ///

                      The TransformJobDefinition object that describes the transform job used /// for the validation of the model package.

                      - #[serde(rename = "TransformJobDefinition")] - #[serde(default)] pub transform_job_definition: std::option::Option, } impl std::fmt::Debug for ModelPackageValidationProfile { @@ -10944,44 +10100,30 @@ impl ModelPackageValidationProfile { ///

                      Defines the input needed to run a transform job using the inference specification /// specified in the algorithm.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformJobDefinition { ///

                      The maximum number of parallel requests that can be sent to each instance in a /// transform job. The default value is 1.

                      - #[serde(rename = "MaxConcurrentTransforms")] - #[serde(default)] pub max_concurrent_transforms: std::option::Option, ///

                      The maximum payload size allowed, in MB. A payload is the data portion of a record /// (without metadata).

                      - #[serde(rename = "MaxPayloadInMB")] - #[serde(default)] pub max_payload_in_mb: std::option::Option, ///

                      A string that determines the number of records included in a single mini-batch.

                      ///

                      /// SingleRecord means only one record is used per mini-batch. /// MultiRecord means a mini-batch is set to contain as many records that /// can fit within the MaxPayloadInMB limit.

                      - #[serde(rename = "BatchStrategy")] - #[serde(default)] pub batch_strategy: std::option::Option, ///

                      The environment variables to set in the Docker container. We support up to 16 key and /// values entries in the map.

                      - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

                      A description of the input source and the way the transform job consumes it.

                      - #[serde(rename = "TransformInput")] - #[serde(default)] pub transform_input: std::option::Option, ///

                      Identifies the Amazon S3 location where you want Amazon SageMaker to save the results /// from the transform job.

                      - #[serde(rename = "TransformOutput")] - #[serde(default)] pub transform_output: std::option::Option, ///

                      Identifies the ML compute instances for the transform job.

                      - #[serde(rename = "TransformResources")] - #[serde(default)] pub transform_resources: std::option::Option, } impl std::fmt::Debug for TransformJobDefinition { @@ -11130,7 +10272,7 @@ impl TransformJobDefinition { ///

                      Describes the resources, including ML instance types and ML instance count, to use for /// transform job.

                      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformResources { ///

                      The ML compute instance type for the transform job. If you are using built-in /// algorithms to @@ -11138,16 +10280,12 @@ pub struct TransformResources { /// moderately sized datasets, we recommend using ml.m4.xlarge or /// ml.m5.large /// instance types.

                      - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

                      The number of /// ML /// compute instances to use in the transform job. For distributed /// transform jobs, specify a value greater than 1. The default value is /// 1.

                      - #[serde(rename = "InstanceCount")] - #[serde(default)] pub instance_count: std::option::Option, ///

                      The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume /// attached to the ML compute instance(s) that run the batch transform job. The @@ -11172,8 +10310,6 @@ pub struct TransformResources { ///

                      /// ///
                    - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, } impl std::fmt::Debug for TransformResources { @@ -11353,7 +10489,7 @@ impl std::convert::From<&str> for TransformInstanceType { impl std::str::FromStr for TransformInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransformInstanceType::from(s)) } } @@ -11395,19 +10531,10 @@ impl AsRef for TransformInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransformInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                    Describes the results of a transform job.

                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformOutput { ///

                    The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. For /// example, s3://bucket-name/key-name-prefix.

                    @@ -11423,21 +10550,15 @@ pub struct TransformOutput { /// transform job processes the listed S3 objects and uploads only the output for /// successfully processed objects. If any object fails in the transform job batch transform /// marks the job as failed to prompt investigation.

                    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

                    The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http /// call to transfer data from the transform job.

                    - #[serde(rename = "Accept")] - #[serde(default)] pub accept: std::option::Option, ///

                    Defines how to assemble the results of the transform job as a single S3 object. Choose /// a format that is most convenient to you. To concatenate the results in binary format, /// specify None. To add a newline character at the end of every transformed /// record, specify /// Line.

                    - #[serde(rename = "AssembleWith")] - #[serde(default)] pub assemble_with: std::option::Option, ///

                    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using /// Amazon S3 server-side encryption. The KmsKeyId can be any of the following @@ -11471,8 +10592,6 @@ pub struct TransformOutput { /// CreateModel request. For more information, see Using /// Key Policies in AWS KMS in the AWS Key Management Service Developer /// Guide.

                    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for TransformOutput { @@ -11634,7 +10753,7 @@ impl std::convert::From<&str> for AssemblyType { impl std::str::FromStr for AssemblyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssemblyType::from(s)) } } @@ -11652,42 +10771,27 @@ impl AsRef for AssemblyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssemblyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                    Describes the input source of a transform job and the way the transform job consumes /// it.

                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformInput { ///

                    Describes the location of /// the /// channel data, which is, the S3 location of the input data that the /// model can consume.

                    - #[serde(rename = "DataSource")] - #[serde(default)] pub data_source: std::option::Option, ///

                    The multipurpose internet mail extension /// (MIME) /// type of the data. Amazon SageMaker uses the MIME type with each http call to /// transfer data to the transform job.

                    - #[serde(rename = "ContentType")] - #[serde(default)] pub content_type: std::option::Option, ///

                    If your transform data /// is /// compressed, specify the compression type. Amazon SageMaker automatically /// decompresses the data for the transform job accordingly. The default value is /// None.

                    - #[serde(rename = "CompressionType")] - #[serde(default)] pub compression_type: std::option::Option, ///

                    The method to use to split the transform job's data files into smaller batches. /// Splitting is necessary when the total size of each object is too large to fit in a @@ -11722,8 +10826,6 @@ pub struct TransformInput { /// RecordIO in the MXNet documentation. For more information about /// TFRecord, see Consuming TFRecord data in the TensorFlow documentation.

                    /// - #[serde(rename = "SplitType")] - #[serde(default)] pub split_type: std::option::Option, } impl std::fmt::Debug for TransformInput { @@ -11885,7 +10987,7 @@ impl std::convert::From<&str> for SplitType { impl std::str::FromStr for SplitType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SplitType::from(s)) } } @@ -11905,15 +11007,6 @@ impl AsRef for SplitType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SplitType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -11943,7 +11036,7 @@ impl std::convert::From<&str> for CompressionType { impl std::str::FromStr for CompressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CompressionType::from(s)) } } @@ -11961,23 +11054,12 @@ impl AsRef for CompressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CompressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                    Describes the location of the channel data.

                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformDataSource { ///

                    The S3 location of the data source that is associated with a channel.

                    - #[serde(rename = "S3DataSource")] - #[serde(default)] pub s3_data_source: std::option::Option, } impl std::fmt::Debug for TransformDataSource { @@ -12025,7 +11107,7 @@ impl TransformDataSource { ///

                    Describes the S3 data source.

                    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformS3DataSource { ///

                    If you choose S3Prefix, S3Uri identifies a key name prefix. /// Amazon SageMaker uses all objects with the specified key name prefix for batch transform.

                    @@ -12037,8 +11119,6 @@ pub struct TransformS3DataSource { ///

                    ///

                    The following value is not compatible: AugmentedManifestFile ///

                    - #[serde(rename = "S3DataType")] - #[serde(default)] pub s3_data_type: std::option::Option, ///

                    Depending on the value specified for the S3DataType, identifies either a /// key name prefix or a manifest. For example:

                    @@ -12089,8 +11169,6 @@ pub struct TransformS3DataSource { /// uses to perform tasks on your behalf.

                    /// ///
                  - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } impl std::fmt::Debug for TransformS3DataSource { @@ -12235,7 +11313,7 @@ impl std::convert::From<&str> for S3DataType { impl std::str::FromStr for S3DataType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(S3DataType::from(s)) } } @@ -12254,15 +11332,6 @@ impl AsRef for S3DataType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for S3DataType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -12292,7 +11361,7 @@ impl std::convert::From<&str> for BatchStrategy { impl std::str::FromStr for BatchStrategy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BatchStrategy::from(s)) } } @@ -12310,23 +11379,12 @@ impl AsRef for BatchStrategy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BatchStrategy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                  A list of algorithms that were used to create a model package.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceAlgorithmSpecification { ///

                  A list of the algorithms that were used to create a model package.

                  - #[serde(rename = "SourceAlgorithms")] - #[serde(default)] pub source_algorithms: std::option::Option>, } impl std::fmt::Debug for SourceAlgorithmSpecification { @@ -12381,7 +11439,7 @@ impl SourceAlgorithmSpecification { /// be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you /// are subscribed to.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SourceAlgorithm { ///

                  The Amazon S3 path where the model artifacts, which result from model training, are stored. /// This path must point to a single gzip compressed tar archive @@ -12390,14 +11448,10 @@ pub struct SourceAlgorithm { ///

                  The model artifacts must be in an S3 bucket that is in the same region as the /// algorithm.

                  /// - #[serde(rename = "ModelDataUrl")] - #[serde(default)] pub model_data_url: std::option::Option, ///

                  The name of an algorithm that was used to create the model package. The algorithm must /// be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you /// are subscribed to.

                  - #[serde(rename = "AlgorithmName")] - #[serde(default)] pub algorithm_name: std::option::Option, } impl std::fmt::Debug for SourceAlgorithm { @@ -12468,35 +11522,25 @@ impl SourceAlgorithm { ///

                  Defines how to perform inference generation after a training job is run.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InferenceSpecification { ///

                  The Amazon ECR registry path of the Docker image that contains the inference code.

                  - #[serde(rename = "Containers")] - #[serde(default)] pub containers: std::option::Option>, ///

                  A list of the instance types on which a transformation job can be run or on which an /// endpoint can be deployed.

                  ///

                  This parameter is required for unversioned models, and optional for versioned /// models.

                  - #[serde(rename = "SupportedTransformInstanceTypes")] - #[serde(default)] pub supported_transform_instance_types: std::option::Option>, ///

                  A list of the instance types that are used to generate inferences in real-time.

                  ///

                  This parameter is required for unversioned models, and optional for versioned /// models.

                  - #[serde(rename = "SupportedRealtimeInferenceInstanceTypes")] - #[serde(default)] pub supported_realtime_inference_instance_types: std::option::Option>, ///

                  The supported MIME types for the input data.

                  - #[serde(rename = "SupportedContentTypes")] - #[serde(default)] pub supported_content_types: std::option::Option>, ///

                  The supported MIME types for the output data.

                  - #[serde(rename = "SupportedResponseMIMETypes")] - #[serde(default)] pub supported_response_mime_types: std::option::Option>, } impl std::fmt::Debug for InferenceSpecification { @@ -12793,7 +11837,7 @@ impl std::convert::From<&str> for ProductionVariantInstanceType { impl std::str::FromStr for ProductionVariantInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProductionVariantInstanceType::from(s)) } } @@ -12875,23 +11919,12 @@ impl AsRef for ProductionVariantInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProductionVariantInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                  Describes the Docker container for the model package.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageContainerDefinition { ///

                  The DNS host name for the Docker container.

                  - #[serde(rename = "ContainerHostname")] - #[serde(default)] pub container_hostname: std::option::Option, ///

                  The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

                  ///

                  If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, @@ -12899,13 +11932,9 @@ pub struct ModelPackageContainerDefinition { /// registry/repository[:tag] and registry/repository[@digest] /// image path formats. For more information, see Using Your Own Algorithms with Amazon /// SageMaker.

                  - #[serde(rename = "Image")] - #[serde(default)] pub image: std::option::Option, ///

                  An MD5 hash of the training algorithm that identifies the Docker image used for /// training.

                  - #[serde(rename = "ImageDigest")] - #[serde(default)] pub image_digest: std::option::Option, ///

                  The Amazon S3 path where the model artifacts, which result from model training, are stored. /// This path must point to a single gzip compressed tar archive @@ -12914,12 +11943,8 @@ pub struct ModelPackageContainerDefinition { ///

                  The model artifacts must be in an S3 bucket that is in the same region as the /// model package.

                  /// - #[serde(rename = "ModelDataUrl")] - #[serde(default)] pub model_data_url: std::option::Option, ///

                  The AWS Marketplace product ID of the model package.

                  - #[serde(rename = "ProductId")] - #[serde(default)] pub product_id: std::option::Option, } impl std::fmt::Debug for ModelPackageContainerDefinition { @@ -13030,61 +12055,33 @@ impl ModelPackageContainerDefinition { ///

                  A hosted endpoint for real-time inference.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Endpoint { ///

                  The name of the endpoint.

                  - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

                  The Amazon Resource Name (ARN) of the endpoint.

                  - #[serde(rename = "EndpointArn")] - #[serde(default)] pub endpoint_arn: std::option::Option, ///

                  The endpoint configuration associated with the endpoint.

                  - #[serde(rename = "EndpointConfigName")] - #[serde(default)] pub endpoint_config_name: std::option::Option, ///

                  A list of the production variants hosted on the endpoint. Each production variant is a /// model.

                  - #[serde(rename = "ProductionVariants")] - #[serde(default)] pub production_variants: std::option::Option>, ///

                  - #[serde(rename = "DataCaptureConfig")] - #[serde(default)] pub data_capture_config: std::option::Option, ///

                  The status of the endpoint.

                  - #[serde(rename = "EndpointStatus")] - #[serde(default)] pub endpoint_status: std::option::Option, ///

                  If the endpoint failed, the reason it failed.

                  - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                  The time that the endpoint was created.

                  - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                  The last time the endpoint was modified.

                  - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                  A list of monitoring schedules for the endpoint. For information about model /// monitoring, see Amazon SageMaker Model Monitor.

                  - #[serde(rename = "MonitoringSchedules")] - #[serde(default)] pub monitoring_schedules: std::option::Option>, ///

                  A list of the tags associated with the endpoint. For more information, see Tagging AWS /// resources in the AWS General Reference Guide.

                  - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for Endpoint { @@ -13295,15 +12292,11 @@ impl Endpoint { /// Amazon SageMaker Model /// Monitor.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringSchedule { ///

                  The Amazon Resource Name (ARN) of the monitoring schedule.

                  - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] pub monitoring_schedule_arn: std::option::Option, ///

                  The name of the monitoring schedule.

                  - #[serde(rename = "MonitoringScheduleName")] - #[serde(default)] pub monitoring_schedule_name: std::option::Option, ///

                  The status of the monitoring schedule. This can be one of the following values.

                  ///
                    @@ -13324,48 +12317,24 @@ pub struct MonitoringSchedule { /// STOPPED - The schedule was stopped.

                    /// ///
                  - #[serde(rename = "MonitoringScheduleStatus")] - #[serde(default)] pub monitoring_schedule_status: std::option::Option, ///

                  The type of the monitoring job definition to schedule.

                  - #[serde(rename = "MonitoringType")] - #[serde(default)] pub monitoring_type: std::option::Option, ///

                  If the monitoring schedule failed, the reason it failed.

                  - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                  The time that the monitoring schedule was created.

                  - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                  The last time the monitoring schedule was changed.

                  - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                  Configures the monitoring schedule and defines the monitoring job.

                  - #[serde(rename = "MonitoringScheduleConfig")] - #[serde(default)] pub monitoring_schedule_config: std::option::Option, ///

                  The endpoint that hosts the model being monitored.

                  - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

                  Summary of information about the last monitoring job to run.

                  - #[serde(rename = "LastMonitoringExecutionSummary")] - #[serde(default)] pub last_monitoring_execution_summary: std::option::Option, ///

                  A list of the tags associated with the monitoring schedlue. For more information, see Tagging AWS /// resources in the AWS General Reference Guide.

                  - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for MonitoringSchedule { @@ -13599,56 +12568,27 @@ impl MonitoringSchedule { ///

                  Summary of information about the last monitoring job to run.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringExecutionSummary { ///

                  The name of the monitoring schedule.

                  - #[serde(rename = "MonitoringScheduleName")] - #[serde(default)] pub monitoring_schedule_name: std::option::Option, ///

                  The time the monitoring job was scheduled.

                  - #[serde(rename = "ScheduledTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub scheduled_time: std::option::Option, ///

                  The time at which the monitoring job was created.

                  - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                  A timestamp that indicates the last time the monitoring job was modified.

                  - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                  The status of the monitoring job.

                  - #[serde(rename = "MonitoringExecutionStatus")] - #[serde(default)] pub monitoring_execution_status: std::option::Option, ///

                  The Amazon Resource Name (ARN) of the monitoring job.

                  - #[serde(rename = "ProcessingJobArn")] - #[serde(default)] pub processing_job_arn: std::option::Option, ///

                  The name of the endpoint used to run the monitoring job.

                  - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

                  Contains the reason a monitoring job failed, if it failed.

                  - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                  The name of the monitoring job.

                  - #[serde(rename = "MonitoringJobDefinitionName")] - #[serde(default)] pub monitoring_job_definition_name: std::option::Option, ///

                  The type of the monitoring job.

                  - #[serde(rename = "MonitoringType")] - #[serde(default)] pub monitoring_type: std::option::Option, } impl std::fmt::Debug for MonitoringExecutionSummary { @@ -13876,7 +12816,7 @@ impl std::convert::From<&str> for ExecutionStatus { impl std::str::FromStr for ExecutionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExecutionStatus::from(s)) } } @@ -13899,15 +12839,6 @@ impl AsRef for ExecutionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExecutionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -13941,7 +12872,7 @@ impl std::convert::From<&str> for ScheduleStatus { impl std::str::FromStr for ScheduleStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ScheduleStatus::from(s)) } } @@ -13961,15 +12892,6 @@ impl AsRef for ScheduleStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ScheduleStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -14011,7 +12933,7 @@ impl std::convert::From<&str> for EndpointStatus { impl std::str::FromStr for EndpointStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndpointStatus::from(s)) } } @@ -14035,39 +12957,20 @@ impl AsRef for EndpointStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndpointStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataCaptureConfigSummary { ///

                  - #[serde(rename = "EnableCapture")] - #[serde(default)] pub enable_capture: bool, ///

                  - #[serde(rename = "CaptureStatus")] - #[serde(default)] pub capture_status: std::option::Option, ///

                  - #[serde(rename = "CurrentSamplingPercentage")] - #[serde(default)] pub current_sampling_percentage: std::option::Option, ///

                  - #[serde(rename = "DestinationS3Uri")] - #[serde(default)] pub destination_s3_uri: std::option::Option, ///

                  - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for DataCaptureConfigSummary { @@ -14195,7 +13098,7 @@ impl std::convert::From<&str> for CaptureStatus { impl std::str::FromStr for CaptureStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CaptureStatus::from(s)) } } @@ -14213,49 +13116,28 @@ impl AsRef for CaptureStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CaptureStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

                  Describes weight and capacities for a production variant associated with an /// endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities /// API and the endpoint status is Updating, you get different desired and /// current values.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProductionVariantSummary { ///

                  The name of the variant.

                  - #[serde(rename = "VariantName")] - #[serde(default)] pub variant_name: std::option::Option, ///

                  An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the /// inference images deployed on instances of this ProductionVariant.

                  - #[serde(rename = "DeployedImages")] - #[serde(default)] pub deployed_images: std::option::Option>, ///

                  The weight associated with the variant.

                  - #[serde(rename = "CurrentWeight")] - #[serde(default)] pub current_weight: std::option::Option, ///

                  The requested weight, as specified in the /// UpdateEndpointWeightsAndCapacities request.

                  - #[serde(rename = "DesiredWeight")] - #[serde(default)] pub desired_weight: std::option::Option, ///

                  The number of instances associated with the variant.

                  - #[serde(rename = "CurrentInstanceCount")] - #[serde(default)] pub current_instance_count: std::option::Option, ///

                  The number of instances requested in the /// UpdateEndpointWeightsAndCapacities request.

                  - #[serde(rename = "DesiredInstanceCount")] - #[serde(default)] pub desired_instance_count: std::option::Option, } impl std::fmt::Debug for ProductionVariantSummary { @@ -14371,25 +13253,16 @@ impl ProductionVariantSummary { /// registry/repository[@digest]. A digest is a hash value that identifies /// a specific version of an image. For information about Amazon ECR paths, see Pulling an Image in the Amazon ECR User Guide.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeployedImage { ///

                  The image path you specified when you created the model.

                  - #[serde(rename = "SpecifiedImage")] - #[serde(default)] pub specified_image: std::option::Option, ///

                  The specific digest path of the image hosted in this /// ProductionVariant.

                  - #[serde(rename = "ResolvedImage")] - #[serde(default)] pub resolved_image: std::option::Option, ///

                  The date and time when the image path for the model resolved to the /// ResolvedImage ///

                  - #[serde(rename = "ResolutionTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub resolution_time: std::option::Option, } impl std::fmt::Debug for DeployedImage { @@ -14471,105 +13344,55 @@ impl DeployedImage { ///

                  The properties of a trial component as returned by the Search /// API.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponent { ///

                  The name of the trial component.

                  - #[serde(rename = "TrialComponentName")] - #[serde(default)] pub trial_component_name: std::option::Option, ///

                  The name of the component as displayed. If DisplayName isn't specified, /// TrialComponentName is displayed.

                  - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

                  The Amazon Resource Name (ARN) of the trial component.

                  - #[serde(rename = "TrialComponentArn")] - #[serde(default)] pub trial_component_arn: std::option::Option, ///

                  The Amazon Resource Name (ARN) and job type of the source of the component.

                  - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

                  The status of the trial component.

                  - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

                  When the component started.

                  - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

                  When the component ended.

                  - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

                  When the component was created.

                  - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                  Information about the user who created or modified an experiment, trial, or trial /// component.

                  - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

                  When the component was last modified.

                  - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

                  Information about the user who created or modified an experiment, trial, or trial /// component.

                  - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

                  The hyperparameters of the component.

                  - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap, >, ///

                  The input artifacts of the component.

                  - #[serde(rename = "InputArtifacts")] - #[serde(default)] pub input_artifacts: std::option::Option< std::collections::HashMap, >, ///

                  The output artifacts of the component.

                  - #[serde(rename = "OutputArtifacts")] - #[serde(default)] pub output_artifacts: std::option::Option< std::collections::HashMap, >, ///

                  The metrics for the component.

                  - #[serde(rename = "Metrics")] - #[serde(default)] pub metrics: std::option::Option>, ///

                  Metadata properties of the tracking entity, trial, or trial component.

                  - #[serde(rename = "MetadataProperties")] - #[serde(default)] pub metadata_properties: std::option::Option, ///

                  Details of the source of the component.

                  - #[serde(rename = "SourceDetail")] - #[serde(default)] pub source_detail: std::option::Option, ///

                  The list of tags that are associated with the component. You can use Search API to search on the tags.

                  - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, ///

                  An array of the parents of the component. A parent is a trial the component is associated /// with and the experiment the trial is part of. A component might not have any parents.

                  - #[serde(rename = "Parents")] - #[serde(default)] pub parents: std::option::Option>, } impl std::fmt::Debug for TrialComponent { @@ -14929,15 +13752,11 @@ impl TrialComponent { /// of. A component might not be associated with a trial. A component can be associated with /// multiple trials.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Parent { ///

                  The name of the trial.

                  - #[serde(rename = "TrialName")] - #[serde(default)] pub trial_name: std::option::Option, ///

                  The name of the experiment.

                  - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, } impl std::fmt::Debug for Parent { @@ -14998,23 +13817,15 @@ impl Parent { ///

                  Detailed information about the source of a trial component. Either /// ProcessingJob or TrainingJob is returned.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentSourceDetail { ///

                  The Amazon Resource Name (ARN) of the source.

                  - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

                  Information about a training job that's the source of a trial component.

                  - #[serde(rename = "TrainingJob")] - #[serde(default)] pub training_job: std::option::Option, ///

                  Information about a processing job that's the source of a trial component.

                  - #[serde(rename = "ProcessingJob")] - #[serde(default)] pub processing_job: std::option::Option, ///

                  Information about a transform job that's the source of a trial component.

                  - #[serde(rename = "TransformJob")] - #[serde(default)] pub transform_job: std::option::Option, } impl std::fmt::Debug for TrialComponentSourceDetail { @@ -15105,15 +13916,11 @@ impl TrialComponentSourceDetail { ///

                  A batch transform job. For information about SageMaker batch transform, see Use Batch /// Transform.

                  #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformJob { ///

                  The name of the transform job.

                  - #[serde(rename = "TransformJobName")] - #[serde(default)] pub transform_job_name: std::option::Option, ///

                  The Amazon Resource Name (ARN) of the transform job.

                  - #[serde(rename = "TransformJobArn")] - #[serde(default)] pub transform_job_arn: std::option::Option, ///

                  The status of the transform job.

                  ///

                  Transform job statuses are:

                  @@ -15141,29 +13948,19 @@ pub struct TransformJob { /// Stopped - The transform job has stopped.

                  /// ///
                - #[serde(rename = "TransformJobStatus")] - #[serde(default)] pub transform_job_status: std::option::Option, ///

                If the transform job failed, the reason it failed.

                - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

                The name of the model associated with the transform job.

                - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

                The maximum number of parallel requests that can be sent to each instance in a transform /// job. If MaxConcurrentTransforms is set to 0 or left unset, SageMaker checks the /// optional execution-parameters to determine the settings for your chosen algorithm. If the /// execution-parameters endpoint is not enabled, the default value is 1. For built-in algorithms, /// you don't need to set a value for MaxConcurrentTransforms.

                - #[serde(rename = "MaxConcurrentTransforms")] - #[serde(default)] pub max_concurrent_transforms: std::option::Option, ///

                Configures the timeout and maximum number of retries for processing a transform job /// invocation.

                - #[serde(rename = "ModelClientConfig")] - #[serde(default)] pub model_client_config: std::option::Option, ///

                The maximum allowed size of the payload, in MB. A payload is the data portion of a record /// (without metadata). The value in MaxPayloadInMB must be greater than, or equal @@ -15173,66 +13970,35 @@ pub struct TransformJob { /// where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, /// set the value to 0. This feature works only in supported algorithms. Currently, SageMaker built-in /// algorithms do not support HTTP chunked encoding.

                - #[serde(rename = "MaxPayloadInMB")] - #[serde(default)] pub max_payload_in_mb: std::option::Option, ///

                Specifies the number of records to include in a mini-batch for an HTTP inference request. /// A record is a single unit of input data that inference can be made on. For example, a single /// line in a CSV file is a record.

                - #[serde(rename = "BatchStrategy")] - #[serde(default)] pub batch_strategy: std::option::Option, ///

                The environment variables to set in the Docker container. We support up to 16 key and /// values entries in the map.

                - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

                Describes the input source of a transform job and the way the transform job consumes /// it.

                - #[serde(rename = "TransformInput")] - #[serde(default)] pub transform_input: std::option::Option, ///

                Describes the results of a transform job.

                - #[serde(rename = "TransformOutput")] - #[serde(default)] pub transform_output: std::option::Option, ///

                Describes the resources, including ML instance types and ML instance count, to use for /// transform job.

                - #[serde(rename = "TransformResources")] - #[serde(default)] pub transform_resources: std::option::Option, ///

                A timestamp that shows when the transform Job was created.

                - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

                Indicates when the transform job starts on ML instances. You are billed for the time /// interval between this time and the value of TransformEndTime.

                - #[serde(rename = "TransformStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub transform_start_time: std::option::Option, ///

                Indicates when the transform job has been completed, or has stopped or failed. You are /// billed for the time interval between this time and the value of /// TransformStartTime.

                - #[serde(rename = "TransformEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub transform_end_time: std::option::Option, ///

                The Amazon Resource Name (ARN) of the labeling job that created the transform job.

                - #[serde(rename = "LabelingJobArn")] - #[serde(default)] pub labeling_job_arn: std::option::Option, ///

                The Amazon Resource Name (ARN) of the AutoML job that created the transform job.

                - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] pub auto_ml_job_arn: std::option::Option, ///

                The data structure used to specify the data to be used for inference in a batch /// transform job and to associate the data that is relevant to the prediction results in @@ -15241,8 +14007,6 @@ pub struct TransformJob { /// include input data relevant to interpreting the predictions in the output from the job. /// For more information, see Associate Prediction /// Results with their Corresponding Input Records.

                - #[serde(rename = "DataProcessing")] - #[serde(default)] pub data_processing: std::option::Option, ///

                Associates a SageMaker job as a trial component with an experiment and trial. Specified when /// you call the following APIs:

                @@ -15263,12 +14027,8 @@ pub struct TransformJob { ///

                /// ///
              - #[serde(rename = "ExperimentConfig")] - #[serde(default)] pub experiment_config: std::option::Option, ///

              A list of tags associated with the transform job.

              - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for TransformJob { @@ -15703,21 +14463,15 @@ impl TransformJob { /// ///
            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExperimentConfig { ///

            The name of an existing experiment to associate the trial component with.

            - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, ///

            The name of an existing trial to associate the trial component with. If not specified, a /// new trial is created.

            - #[serde(rename = "TrialName")] - #[serde(default)] pub trial_name: std::option::Option, ///

            The display name for the trial component. If this key isn't specified, the display name is /// the trial component name.

            - #[serde(rename = "TrialComponentDisplayName")] - #[serde(default)] pub trial_component_display_name: std::option::Option, } impl std::fmt::Debug for ExperimentConfig { @@ -15806,7 +14560,7 @@ impl ExperimentConfig { /// For more information, see Associate Prediction /// Results with their Corresponding Input Records.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataProcessing { ///

            A JSONPath expression used to select a portion of the input data to pass to /// the algorithm. Use the InputFilter parameter to exclude fields, such as an @@ -15814,8 +14568,6 @@ pub struct DataProcessing { /// algorithm, accept the default value $.

            ///

            Examples: "$", "$[1:]", "$.features" ///

            - #[serde(rename = "InputFilter")] - #[serde(default)] pub input_filter: std::option::Option, ///

            A JSONPath expression used to select a portion of the joined dataset to save /// in the output file for a batch transform job. If you want Amazon SageMaker to store the entire input @@ -15825,8 +14577,6 @@ pub struct DataProcessing { ///

            Examples: "$", "$[0,5:]", /// "$['id','SageMakerOutput']" ///

            - #[serde(rename = "OutputFilter")] - #[serde(default)] pub output_filter: std::option::Option, ///

            Specifies the source of the data to join with the transformed data. The valid values /// are None and Input. The default value is None, @@ -15846,8 +14596,6 @@ pub struct DataProcessing { /// the original input data followed by the transformed data and the output is a CSV /// file.

            ///

            For information on how joining in applied, see Workflow for Associating Inferences with Input Records.

            - #[serde(rename = "JoinSource")] - #[serde(default)] pub join_source: std::option::Option, } impl std::fmt::Debug for DataProcessing { @@ -15977,7 +14725,7 @@ impl std::convert::From<&str> for JoinSource { impl std::str::FromStr for JoinSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JoinSource::from(s)) } } @@ -15995,28 +14743,15 @@ impl AsRef for JoinSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JoinSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            Configures the timeout and maximum number of retries for processing a transform job /// invocation.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelClientConfig { ///

            The timeout value in seconds for an invocation request.

            - #[serde(rename = "InvocationsTimeoutInSeconds")] - #[serde(default)] pub invocations_timeout_in_seconds: std::option::Option, ///

            The maximum number of retries when invocation requests are failing.

            - #[serde(rename = "InvocationsMaxRetries")] - #[serde(default)] pub invocations_max_retries: std::option::Option, } impl std::fmt::Debug for ModelClientConfig { @@ -16111,7 +14846,7 @@ impl std::convert::From<&str> for TransformJobStatus { impl std::str::FromStr for TransformJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TransformJobStatus::from(s)) } } @@ -16132,62 +14867,35 @@ impl AsRef for TransformJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TransformJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

            An Amazon SageMaker processing job that is used to analyze data and evaluate models. For more information, /// see Process /// Data and Evaluate Models.

            #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingJob { ///

            List of input configurations for the processing job.

            - #[serde(rename = "ProcessingInputs")] - #[serde(default)] pub processing_inputs: std::option::Option>, ///

            Configuration for uploading output from the processing container.

            - #[serde(rename = "ProcessingOutputConfig")] - #[serde(default)] pub processing_output_config: std::option::Option, ///

            The name of the processing job.

            - #[serde(rename = "ProcessingJobName")] - #[serde(default)] pub processing_job_name: std::option::Option, ///

            Identifies the resources, ML compute instances, and ML storage volumes to deploy for a /// processing job. In distributed training, you specify more than one instance.

            - #[serde(rename = "ProcessingResources")] - #[serde(default)] pub processing_resources: std::option::Option, ///

            Configures conditions under which the processing job should be stopped, such as how long /// the processing job has been running. After the condition is met, the processing job is stopped.

            - #[serde(rename = "StoppingCondition")] - #[serde(default)] pub stopping_condition: std::option::Option, ///

            Configuration to run a processing job in a specified container image.

            - #[serde(rename = "AppSpecification")] - #[serde(default)] pub app_specification: std::option::Option, ///

            Sets the environment variables in the Docker container.

            - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

            Networking options for a job, such as network traffic encryption between containers, /// whether to allow inbound and outbound network calls to and from containers, and the VPC /// subnets and security groups to use for VPC-enabled jobs.

            - #[serde(rename = "NetworkConfig")] - #[serde(default)] pub network_config: std::option::Option, ///

            The ARN of the role used to create the processing job.

            - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

            Associates a SageMaker job as a trial component with an experiment and trial. Specified when /// you call the following APIs:

            @@ -16208,72 +14916,34 @@ pub struct ProcessingJob { ///

            /// ///
          - #[serde(rename = "ExperimentConfig")] - #[serde(default)] pub experiment_config: std::option::Option, ///

          The ARN of the processing job.

          - #[serde(rename = "ProcessingJobArn")] - #[serde(default)] pub processing_job_arn: std::option::Option, ///

          The status of the processing job.

          - #[serde(rename = "ProcessingJobStatus")] - #[serde(default)] pub processing_job_status: std::option::Option, ///

          A string, up to one KB in size, that contains metadata from the processing /// container when the processing job exits.

          - #[serde(rename = "ExitMessage")] - #[serde(default)] pub exit_message: std::option::Option, ///

          A string, up to one KB in size, that contains the reason a processing job failed, if /// it failed.

          - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

          The time that the processing job ended.

          - #[serde(rename = "ProcessingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub processing_end_time: std::option::Option, ///

          The time that the processing job started.

          - #[serde(rename = "ProcessingStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub processing_start_time: std::option::Option, ///

          The time the processing job was last modified.

          - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

          The time the processing job was created.

          - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

          The ARN of a monitoring schedule for an endpoint associated with this processing /// job.

          - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] pub monitoring_schedule_arn: std::option::Option, ///

          The Amazon Resource Name (ARN) of the AutoML job associated with this processing job.

          - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] pub auto_ml_job_arn: std::option::Option, ///

          The ARN of the training job associated with this processing job.

          - #[serde(rename = "TrainingJobArn")] - #[serde(default)] pub training_job_arn: std::option::Option, ///

          An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management /// User Guide.

          - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for ProcessingJob { @@ -16710,7 +15380,7 @@ impl std::convert::From<&str> for ProcessingJobStatus { impl std::str::FromStr for ProcessingJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingJobStatus::from(s)) } } @@ -16731,31 +15401,16 @@ impl AsRef for ProcessingJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Configuration to run a processing job in a specified container image.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AppSpecification { ///

          The container image to be run by the processing job.

          - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

          The entrypoint for a container used to run a processing job.

          - #[serde(rename = "ContainerEntrypoint")] - #[serde(default)] pub container_entrypoint: std::option::Option>, ///

          The arguments for a container used to run a processing job.

          - #[serde(rename = "ContainerArguments")] - #[serde(default)] pub container_arguments: std::option::Option>, } impl std::fmt::Debug for AppSpecification { @@ -16833,11 +15488,9 @@ impl AppSpecification { ///

          Configures conditions under which the processing job should be stopped, such as how long /// the processing job has been running. After the condition is met, the processing job is stopped.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingStoppingCondition { ///

          Specifies the maximum runtime in seconds.

          - #[serde(rename = "MaxRuntimeInSeconds")] - #[serde(default)] pub max_runtime_in_seconds: i32, } impl std::fmt::Debug for ProcessingStoppingCondition { @@ -16883,12 +15536,10 @@ impl ProcessingStoppingCondition { ///

          Identifies the resources, ML compute instances, and ML storage volumes to deploy for a /// processing job. In distributed training, you specify more than one instance.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingResources { ///

          The configuration for the resources in a cluster used to run the processing /// job.

          - #[serde(rename = "ClusterConfig")] - #[serde(default)] pub cluster_config: std::option::Option, } impl std::fmt::Debug for ProcessingResources { @@ -16937,27 +15588,19 @@ impl ProcessingResources { ///

          Configuration for the cluster used to run a processing job.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingClusterConfig { ///

          The number of ML compute instances to use in the processing job. For distributed /// processing jobs, specify a value greater than 1. The default value is 1.

          - #[serde(rename = "InstanceCount")] - #[serde(default)] pub instance_count: std::option::Option, ///

          The ML compute instance type for the processing job.

          - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

          The size of the ML storage volume in gigabytes that you want to provision. You must /// specify sufficient ML storage for your scenario.

          - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] pub volume_size_in_gb: std::option::Option, ///

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the /// storage volume attached to the ML compute instance(s) that run the processing job. ///

          - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, } impl std::fmt::Debug for ProcessingClusterConfig { @@ -17048,18 +15691,14 @@ impl ProcessingClusterConfig { ///

          Configuration for uploading output from the processing container.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingOutputConfig { ///

          An array of outputs configuring the data to upload from the processing container.

          - #[serde(rename = "Outputs")] - #[serde(default)] pub outputs: std::option::Option>, ///

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the processing /// job output. KmsKeyId can be an ID of a KMS key, ARN of a KMS key, alias of /// a KMS key, or alias of a KMS key. The KmsKeyId is applied to all /// outputs.

          - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for ProcessingOutputConfig { @@ -17124,26 +15763,18 @@ impl ProcessingOutputConfig { ///

          Describes the results of a processing job. The processing output must specify exactly one of /// either S3Output or FeatureStoreOutput types.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingOutput { ///

          The name for the processing job output.

          - #[serde(rename = "OutputName")] - #[serde(default)] pub output_name: std::option::Option, ///

          Configuration for processing job outputs in Amazon S3.

          - #[serde(rename = "S3Output")] - #[serde(default)] pub s3_output: std::option::Option, ///

          Configuration for processing job outputs in Amazon SageMaker Feature Store. This processing output /// type is only supported when AppManaged is specified.

          - #[serde(rename = "FeatureStoreOutput")] - #[serde(default)] pub feature_store_output: std::option::Option, ///

          When True, output operations such as data upload are managed natively by the /// processing job application. When False (default), output operations are managed by /// Amazon SageMaker.

          - #[serde(rename = "AppManaged")] - #[serde(default)] pub app_managed: bool, } impl std::fmt::Debug for ProcessingOutput { @@ -17237,12 +15868,10 @@ impl ProcessingOutput { ///

          Configuration for processing job outputs in Amazon SageMaker Feature Store.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingFeatureStoreOutput { ///

          The name of the Amazon SageMaker FeatureGroup to use as the destination for processing job output. Note that your /// processing script is responsible for putting records into your Feature Store.

          - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, } impl std::fmt::Debug for ProcessingFeatureStoreOutput { @@ -17291,24 +15920,18 @@ impl ProcessingFeatureStoreOutput { ///

          Configuration for uploading output data to Amazon S3 from the processing container.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingS3Output { ///

          A URI that identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of /// a processing job.

          - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

          The local path of a directory where you want Amazon SageMaker to upload its contents to Amazon S3. /// LocalPath is an absolute path to a directory containing output files. /// This directory will be created by the platform and exist when your container's /// entrypoint is invoked.

          - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

          Whether to upload the results of the processing job continuously or after the job /// completes.

          - #[serde(rename = "S3UploadMode")] - #[serde(default)] pub s3_upload_mode: std::option::Option, } impl std::fmt::Debug for ProcessingS3Output { @@ -17386,24 +16009,16 @@ impl ProcessingS3Output { ///

          The inputs for a processing job. The processing input must specify exactly one of either /// S3Input or DatasetDefinition types.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingInput { ///

          The name for the processing job input.

          - #[serde(rename = "InputName")] - #[serde(default)] pub input_name: std::option::Option, ///

          When True, input operations such as data download are managed natively by the /// processing job application. When False (default), input operations are managed by Amazon SageMaker.

          - #[serde(rename = "AppManaged")] - #[serde(default)] pub app_managed: bool, ///

          Configuration for downloading input data from Amazon S3 into the processing container.

          - #[serde(rename = "S3Input")] - #[serde(default)] pub s3_input: std::option::Option, ///

          Configuration for a Dataset Definition input.

          - #[serde(rename = "DatasetDefinition")] - #[serde(default)] pub dataset_definition: std::option::Option, } impl std::fmt::Debug for ProcessingInput { @@ -17493,34 +16108,24 @@ impl ProcessingInput { /// exactly one of either AthenaDatasetDefinition or RedshiftDatasetDefinition /// types.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DatasetDefinition { ///

          Configuration for Athena Dataset Definition input.

          - #[serde(rename = "AthenaDatasetDefinition")] - #[serde(default)] pub athena_dataset_definition: std::option::Option, ///

          Configuration for Redshift Dataset Definition input.

          - #[serde(rename = "RedshiftDatasetDefinition")] - #[serde(default)] pub redshift_dataset_definition: std::option::Option, ///

          The local path where you want Amazon SageMaker to download the Dataset Definition inputs to run a /// processing job. LocalPath is an absolute path to the input data. This is a required /// parameter when AppManaged is False (default).

          - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

          Whether the generated dataset is FullyReplicated or /// ShardedByS3Key (default).

          - #[serde(rename = "DataDistributionType")] - #[serde(default)] pub data_distribution_type: std::option::Option, ///

          Whether to use File or Pipe input mode. In File (default) mode, /// Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store /// (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used /// input mode. In Pipe mode, Amazon SageMaker streams input data from the source directly to your /// algorithm without using the EBS volume.

          - #[serde(rename = "InputMode")] - #[serde(default)] pub input_mode: std::option::Option, } impl std::fmt::Debug for DatasetDefinition { @@ -17669,7 +16274,7 @@ impl std::convert::From<&str> for InputMode { impl std::str::FromStr for InputMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InputMode::from(s)) } } @@ -17687,15 +16292,6 @@ impl AsRef for InputMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InputMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -17725,7 +16321,7 @@ impl std::convert::From<&str> for DataDistributionType { impl std::str::FromStr for DataDistributionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DataDistributionType::from(s)) } } @@ -17743,56 +16339,29 @@ impl AsRef for DataDistributionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DataDistributionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Configuration for Redshift Dataset Definition input.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RedshiftDatasetDefinition { ///

          The Redshift cluster Identifier.

          - #[serde(rename = "ClusterId")] - #[serde(default)] pub cluster_id: std::option::Option, ///

          The name of the Redshift database used in Redshift query execution.

          - #[serde(rename = "Database")] - #[serde(default)] pub database: std::option::Option, ///

          The database user name used in Redshift query execution.

          - #[serde(rename = "DbUser")] - #[serde(default)] pub db_user: std::option::Option, ///

          The SQL query statements to be executed.

          - #[serde(rename = "QueryString")] - #[serde(default)] pub query_string: std::option::Option, ///

          The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets.

          - #[serde(rename = "ClusterRoleArn")] - #[serde(default)] pub cluster_role_arn: std::option::Option, ///

          The location in Amazon S3 where the Redshift query results are stored.

          - #[serde(rename = "OutputS3Uri")] - #[serde(default)] pub output_s3_uri: std::option::Option, ///

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data from a /// Redshift execution.

          - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

          The data storage format for Redshift query results.

          - #[serde(rename = "OutputFormat")] - #[serde(default)] pub output_format: std::option::Option, ///

          The compression used for Redshift query results.

          - #[serde(rename = "OutputCompression")] - #[serde(default)] pub output_compression: std::option::Option, } impl std::fmt::Debug for RedshiftDatasetDefinition { @@ -17983,7 +16552,7 @@ impl std::convert::From<&str> for RedshiftResultCompressionType { impl std::str::FromStr for RedshiftResultCompressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RedshiftResultCompressionType::from(s)) } } @@ -18004,15 +16573,6 @@ impl AsRef for RedshiftResultCompressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RedshiftResultCompressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          The data storage format for Redshift query results.

          #[non_exhaustive] @@ -18043,7 +16603,7 @@ impl std::convert::From<&str> for RedshiftResultFormat { impl std::str::FromStr for RedshiftResultFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RedshiftResultFormat::from(s)) } } @@ -18061,52 +16621,27 @@ impl AsRef for RedshiftResultFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RedshiftResultFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Configuration for Athena Dataset Definition input.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AthenaDatasetDefinition { ///

          The name of the data catalog used in Athena query execution.

          - #[serde(rename = "Catalog")] - #[serde(default)] pub catalog: std::option::Option, ///

          The name of the database used in the Athena query execution.

          - #[serde(rename = "Database")] - #[serde(default)] pub database: std::option::Option, ///

          The SQL query statements, to be executed.

          - #[serde(rename = "QueryString")] - #[serde(default)] pub query_string: std::option::Option, ///

          The name of the workgroup in which the Athena query is being started.

          - #[serde(rename = "WorkGroup")] - #[serde(default)] pub work_group: std::option::Option, ///

          The location in Amazon S3 where Athena query results are stored.

          - #[serde(rename = "OutputS3Uri")] - #[serde(default)] pub output_s3_uri: std::option::Option, ///

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data generated from /// an Athena query execution.

          - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

          The data storage format for Athena query results.

          - #[serde(rename = "OutputFormat")] - #[serde(default)] pub output_format: std::option::Option, ///

          The compression used for Athena query results.

          - #[serde(rename = "OutputCompression")] - #[serde(default)] pub output_compression: std::option::Option, } impl std::fmt::Debug for AthenaDatasetDefinition { @@ -18278,7 +16813,7 @@ impl std::convert::From<&str> for AthenaResultCompressionType { impl std::str::FromStr for AthenaResultCompressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AthenaResultCompressionType::from(s)) } } @@ -18297,15 +16832,6 @@ impl AsRef for AthenaResultCompressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AthenaResultCompressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          The data storage format for Athena query results.

          #[non_exhaustive] @@ -18342,7 +16868,7 @@ impl std::convert::From<&str> for AthenaResultFormat { impl std::str::FromStr for AthenaResultFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AthenaResultFormat::from(s)) } } @@ -18363,30 +16889,17 @@ impl AsRef for AthenaResultFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AthenaResultFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Configuration for downloading input data from Amazon S3 into the processing container.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingS3Input { ///

          The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job.

          - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

          The local path in your container where you want Amazon SageMaker to write input data to. /// LocalPath is an absolute path to the input data and must begin with /// /opt/ml/processing/. LocalPath is a required /// parameter when AppManaged is False (default).

          - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

          Whether you use an S3Prefix or a ManifestFile for /// the data type. If you choose S3Prefix, S3Uri identifies a key @@ -18394,30 +16907,22 @@ pub struct ProcessingS3Input { /// job. If you choose ManifestFile, S3Uri identifies an object /// that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for /// the processing job.

          - #[serde(rename = "S3DataType")] - #[serde(default)] pub s3_data_type: std::option::Option, ///

          Whether to use File or Pipe input mode. In File mode, Amazon SageMaker copies the data /// from the input source onto the local ML storage volume before starting your processing /// container. This is the most commonly used input mode. In Pipe mode, Amazon SageMaker /// streams input data from the source directly to your processing container into named /// pipes without using the ML storage volume.

          - #[serde(rename = "S3InputMode")] - #[serde(default)] pub s3_input_mode: std::option::Option, ///

          Whether to distribute the data from Amazon S3 to all processing instances with /// FullyReplicated, or whether the data from Amazon S3 is shared by Amazon S3 key, /// downloading one shard of data to each processing instance.

          - #[serde(rename = "S3DataDistributionType")] - #[serde(default)] pub s3_data_distribution_type: std::option::Option, ///

          Whether to GZIP-decompress the data in Amazon S3 as it is streamed into the processing /// container. Gzip can only be used when Pipe mode is /// specified as the S3InputMode. In Pipe mode, Amazon SageMaker streams input /// data from the source directly to your container without using the EBS volume.

          - #[serde(rename = "S3CompressionType")] - #[serde(default)] pub s3_compression_type: std::option::Option, } impl std::fmt::Debug for ProcessingS3Input { @@ -18585,7 +17090,7 @@ impl std::convert::From<&str> for ProcessingS3CompressionType { impl std::str::FromStr for ProcessingS3CompressionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingS3CompressionType::from(s)) } } @@ -18603,15 +17108,6 @@ impl AsRef for ProcessingS3CompressionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingS3CompressionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -18641,7 +17137,7 @@ impl std::convert::From<&str> for ProcessingS3DataType { impl std::str::FromStr for ProcessingS3DataType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProcessingS3DataType::from(s)) } } @@ -18659,45 +17155,24 @@ impl AsRef for ProcessingS3DataType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProcessingS3DataType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

          Contains information about a training job.

          #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingJob { ///

          The name of the training job.

          - #[serde(rename = "TrainingJobName")] - #[serde(default)] pub training_job_name: std::option::Option, ///

          The Amazon Resource Name (ARN) of the training job.

          - #[serde(rename = "TrainingJobArn")] - #[serde(default)] pub training_job_arn: std::option::Option, ///

          The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the /// training job was launched by a hyperparameter tuning job.

          - #[serde(rename = "TuningJobArn")] - #[serde(default)] pub tuning_job_arn: std::option::Option, ///

          The Amazon Resource Name (ARN) of the labeling job.

          - #[serde(rename = "LabelingJobArn")] - #[serde(default)] pub labeling_job_arn: std::option::Option, ///

          The Amazon Resource Name (ARN) of the job.

          - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] pub auto_ml_job_arn: std::option::Option, ///

          Information about the Amazon S3 location that is configured for storing model /// artifacts.

          - #[serde(rename = "ModelArtifacts")] - #[serde(default)] pub model_artifacts: std::option::Option, ///

          The status of the /// training @@ -18729,8 +17204,6 @@ pub struct TrainingJob { ///

        ///

        For /// more detailed information, see SecondaryStatus.

        - #[serde(rename = "TrainingJobStatus")] - #[serde(default)] pub training_job_status: std::option::Option, ///

        Provides detailed information about the state of the training job. For detailed /// information about the secondary status of the training job, see @@ -18828,46 +17301,28 @@ pub struct TrainingJob { ///

        /// ///
      - #[serde(rename = "SecondaryStatus")] - #[serde(default)] pub secondary_status: std::option::Option, ///

      If the training job failed, the reason it failed.

      - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

      Algorithm-specific parameters.

      - #[serde(rename = "HyperParameters")] - #[serde(default)] pub hyper_parameters: std::option::Option>, ///

      Information about the algorithm used for training, and algorithm metadata.

      - #[serde(rename = "AlgorithmSpecification")] - #[serde(default)] pub algorithm_specification: std::option::Option, ///

      The AWS Identity and Access Management (IAM) role configured for the training job.

      - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

      An array of Channel objects that describes each data input /// channel.

      - #[serde(rename = "InputDataConfig")] - #[serde(default)] pub input_data_config: std::option::Option>, ///

      The S3 path where model artifacts that you configured when creating the job are /// stored. Amazon SageMaker creates subfolders for model artifacts.

      - #[serde(rename = "OutputDataConfig")] - #[serde(default)] pub output_data_config: std::option::Option, ///

      Resources, including ML compute instances and ML storage volumes, that are configured /// for model training.

      - #[serde(rename = "ResourceConfig")] - #[serde(default)] pub resource_config: std::option::Option, ///

      A VpcConfig object that specifies the VPC that this training job has /// access to. For more information, see Protect Training Jobs by Using an Amazon /// Virtual Private Cloud.

      - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, ///

      Specifies a limit to how long a model training job can run. It also specifies how long /// a managed Spot training job has to complete. When the job reaches the time limit, Amazon SageMaker @@ -18875,93 +17330,53 @@ pub struct TrainingJob { ///

      To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays /// job termination for 120 seconds. Algorithms can use this 120-second window to save the /// model artifacts, so the results of training are not lost.

      - #[serde(rename = "StoppingCondition")] - #[serde(default)] pub stopping_condition: std::option::Option, ///

      A timestamp that indicates when the training job was created.

      - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

      Indicates the time when the training job starts on training instances. You are billed /// for the time interval between this time and the value of TrainingEndTime. /// The start time in CloudWatch Logs might be later than this time. The difference is due to the time /// it takes to download the training data and to the size of the training container.

      - #[serde(rename = "TrainingStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub training_start_time: std::option::Option, ///

      Indicates the time when the training job ends on training instances. You are billed /// for the time interval between the value of TrainingStartTime and this time. /// For successful jobs and stopped jobs, this is the time after model artifacts are /// uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.

      - #[serde(rename = "TrainingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub training_end_time: std::option::Option, ///

      A timestamp that indicates when the status of the training job was last /// modified.

      - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

      A history of all of the secondary statuses that the training job has transitioned /// through.

      - #[serde(rename = "SecondaryStatusTransitions")] - #[serde(default)] pub secondary_status_transitions: std::option::Option>, ///

      A list of final metric values that are set when the training job completes. Used only /// if the training job was configured to use metrics.

      - #[serde(rename = "FinalMetricDataList")] - #[serde(default)] pub final_metric_data_list: std::option::Option>, ///

      If the TrainingJob was created with network isolation, the value is set /// to true. If network isolation is enabled, nodes can't communicate beyond /// the VPC they run in.

      - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] pub enable_network_isolation: bool, ///

      To encrypt all communications between ML compute instances in distributed training, /// choose True. Encryption provides greater security for distributed training, /// but training might take longer. How long it takes depends on the amount of communication /// between compute instances, especially if you use a deep learning algorithm in /// distributed training.

      - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] pub enable_inter_container_traffic_encryption: bool, ///

      When true, enables managed spot training using Amazon EC2 Spot instances to run /// training jobs instead of on-demand instances. For more information, see Managed Spot Training.

      - #[serde(rename = "EnableManagedSpotTraining")] - #[serde(default)] pub enable_managed_spot_training: bool, ///

      Contains information about the output location for managed spot training checkpoint /// data.

      - #[serde(rename = "CheckpointConfig")] - #[serde(default)] pub checkpoint_config: std::option::Option, ///

      The training time in seconds.

      - #[serde(rename = "TrainingTimeInSeconds")] - #[serde(default)] pub training_time_in_seconds: std::option::Option, ///

      The billable time in seconds.

      - #[serde(rename = "BillableTimeInSeconds")] - #[serde(default)] pub billable_time_in_seconds: std::option::Option, ///

      Configuration information for the Debugger hook parameters, metric and tensor collections, and /// storage paths. To learn more about /// how to configure the DebugHookConfig parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

      - #[serde(rename = "DebugHookConfig")] - #[serde(default)] pub debug_hook_config: std::option::Option, ///

      Associates a SageMaker job as a trial component with an experiment and trial. Specified when /// you call the following APIs:

      @@ -18982,39 +17397,25 @@ pub struct TrainingJob { ///

      /// ///
    - #[serde(rename = "ExperimentConfig")] - #[serde(default)] pub experiment_config: std::option::Option, ///

    Information about the debug rule configuration.

    - #[serde(rename = "DebugRuleConfigurations")] - #[serde(default)] pub debug_rule_configurations: std::option::Option>, ///

    Configuration of storage locations for the Debugger TensorBoard output data.

    - #[serde(rename = "TensorBoardOutputConfig")] - #[serde(default)] pub tensor_board_output_config: std::option::Option, ///

    Information about the evaluation status of the rules for the training job.

    - #[serde(rename = "DebugRuleEvaluationStatuses")] - #[serde(default)] pub debug_rule_evaluation_statuses: std::option::Option>, ///

    The environment variables to set in the Docker container.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    The number of times to retry the job when the job fails due to an /// InternalServerError.

    - #[serde(rename = "RetryStrategy")] - #[serde(default)] pub retry_strategy: std::option::Option, ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in /// different ways, for example, by purpose, owner, or environment. For more information, /// see Tagging AWS /// Resources.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for TrainingJob { @@ -19831,12 +18232,10 @@ impl TrainingJob { /// requests. You can add the StoppingCondition parameter to the request to /// limit the training time for the complete job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RetryStrategy { ///

    The number of times to retry the job. When the job is retried, it's /// SecondaryStatus is changed to STARTING.

    - #[serde(rename = "MaximumRetryAttempts")] - #[serde(default)] pub maximum_retry_attempts: i32, } impl std::fmt::Debug for RetryStrategy { @@ -19882,30 +18281,17 @@ impl RetryStrategy { ///

    Information about the status of the rule evaluation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DebugRuleEvaluationStatus { ///

    The name of the rule configuration.

    - #[serde(rename = "RuleConfigurationName")] - #[serde(default)] pub rule_configuration_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the rule evaluation job.

    - #[serde(rename = "RuleEvaluationJobArn")] - #[serde(default)] pub rule_evaluation_job_arn: std::option::Option, ///

    Status of the rule evaluation.

    - #[serde(rename = "RuleEvaluationStatus")] - #[serde(default)] pub rule_evaluation_status: std::option::Option, ///

    Details from the rule evaluation.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    Timestamp when the rule evaluation status was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for DebugRuleEvaluationStatus { @@ -20047,7 +18433,7 @@ impl std::convert::From<&str> for RuleEvaluationStatus { impl std::str::FromStr for RuleEvaluationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RuleEvaluationStatus::from(s)) } } @@ -20069,28 +18455,15 @@ impl AsRef for RuleEvaluationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RuleEvaluationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Configuration of storage locations for the Debugger TensorBoard output data.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TensorBoardOutputConfig { ///

    Path to local storage location for tensorBoard output. Defaults to /// /opt/ml/output/tensorboard.

    - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

    Path to Amazon S3 storage location for TensorBoard output.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, } impl std::fmt::Debug for TensorBoardOutputConfig { @@ -20153,37 +18526,23 @@ impl TensorBoardOutputConfig { /// how to configure the DebugRuleConfiguration parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DebugRuleConfiguration { ///

    The name of the rule configuration. It must be unique relative to other rule /// configuration names.

    - #[serde(rename = "RuleConfigurationName")] - #[serde(default)] pub rule_configuration_name: std::option::Option, ///

    Path to local storage location for output of rules. Defaults to /// /opt/ml/processing/output/rule/.

    - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

    Path to Amazon S3 storage location for rules.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

    The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

    - #[serde(rename = "RuleEvaluatorImage")] - #[serde(default)] pub rule_evaluator_image: std::option::Option, ///

    The instance type to deploy a Debugger custom rule for debugging a training job.

    - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    The size, in GB, of the ML storage volume attached to the processing instance.

    - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] pub volume_size_in_gb: i32, ///

    Runtime configuration for rule container.

    - #[serde(rename = "RuleParameters")] - #[serde(default)] pub rule_parameters: std::option::Option>, } @@ -20330,28 +18689,20 @@ impl DebugRuleConfiguration { /// how to configure the DebugHookConfig parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DebugHookConfig { ///

    Path to local storage location for metrics and tensors. Defaults to /// /opt/ml/output/tensors/.

    - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, ///

    Path to Amazon S3 storage location for metrics and tensors.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

    Configuration information for the Debugger hook parameters.

    - #[serde(rename = "HookParameters")] - #[serde(default)] pub hook_parameters: std::option::Option>, ///

    Configuration information for Debugger tensor collections. To learn more about /// how to configure the CollectionConfiguration parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job. ///

    - #[serde(rename = "CollectionConfigurations")] - #[serde(default)] pub collection_configurations: std::option::Option>, } @@ -20457,18 +18808,14 @@ impl DebugHookConfig { ///

    Configuration information for the Debugger output tensor collections.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CollectionConfiguration { ///

    The name of the tensor collection. The name must be unique relative to other rule configuration names.

    - #[serde(rename = "CollectionName")] - #[serde(default)] pub collection_name: std::option::Option, ///

    Parameter values for the tensor collection. The allowed parameters are /// "name", "include_regex", "reduction_config", /// "save_config", "tensor_names", and /// "save_histogram".

    - #[serde(rename = "CollectionParameters")] - #[serde(default)] pub collection_parameters: std::option::Option>, } @@ -20542,17 +18889,13 @@ impl CollectionConfiguration { ///

    Contains information about the output location for managed spot training checkpoint /// data.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CheckpointConfig { ///

    Identifies the S3 path where you want Amazon SageMaker to store checkpoints. For example, /// s3://bucket-name/key-name-prefix.

    - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

    (Optional) The local directory where checkpoints are written. The default directory is /// /opt/ml/checkpoints/.

    - #[serde(rename = "LocalPath")] - #[serde(default)] pub local_path: std::option::Option, } impl std::fmt::Debug for CheckpointConfig { @@ -20611,22 +18954,13 @@ impl CheckpointConfig { ///

    The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricData { ///

    The name of the metric.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    The value of the metric.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: f32, ///

    The date and time that the algorithm emitted the metric.

    - #[serde(rename = "Timestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub timestamp: std::option::Option, } impl std::fmt::Debug for MetricData { @@ -20704,7 +19038,7 @@ impl MetricData { ///

    ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SecondaryStatusTransition { ///

    Contains a secondary status information from a training /// job.

    @@ -20797,24 +19131,12 @@ pub struct SecondaryStatusTransition { ///

    /// /// - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A timestamp that shows when the training job transitioned to the current secondary /// status state.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    A timestamp that shows when the training job transitioned out of this secondary status /// state into another secondary status state or when the training job has ended.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    A detailed description of the progress within a secondary status. ///

    @@ -20881,8 +19203,6 @@ pub struct SecondaryStatusTransition { /// StatusMessage - Downloading the training image

    /// /// - #[serde(rename = "StatusMessage")] - #[serde(default)] pub status_message: std::option::Option, } impl std::fmt::Debug for SecondaryStatusTransition { @@ -21179,7 +19499,7 @@ impl std::convert::From<&str> for SecondaryStatus { impl std::str::FromStr for SecondaryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SecondaryStatus::from(s)) } } @@ -21211,15 +19531,6 @@ impl AsRef for SecondaryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SecondaryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies a limit to how long a model training job, model compilation job, or /// hyperparameter tuning job can run. It also specifies how long a managed Spot training @@ -21240,7 +19551,7 @@ impl<'de> serde::Deserialize<'de> for SecondaryStatus { /// the training job to complete.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StoppingCondition { ///

    The maximum length of time, in seconds, that a training or compilation job can run. If /// the job does not complete during this time, Amazon SageMaker ends the job.

    @@ -21248,8 +19559,6 @@ pub struct StoppingCondition { /// MaxRuntimeInSeconds specifies the maximum time for all of the attempts /// in total, not each individual attempt.

    ///

    The default value is 1 day. The maximum value is 28 days.

    - #[serde(rename = "MaxRuntimeInSeconds")] - #[serde(default)] pub max_runtime_in_seconds: i32, ///

    The maximum length of time, in seconds, that a managed Spot training job has to /// complete. It is the amount of time spent waiting for Spot capacity plus the amount of @@ -21259,8 +19568,6 @@ pub struct StoppingCondition { ///

    When RetryStrategy is specified in the job request, /// MaxWaitTimeInSeconds specifies the maximum time for all of the attempts /// in total, not each individual attempt.

    - #[serde(rename = "MaxWaitTimeInSeconds")] - #[serde(default)] pub max_wait_time_in_seconds: std::option::Option, } impl std::fmt::Debug for StoppingCondition { @@ -21330,16 +19637,12 @@ impl StoppingCondition { ///

    Describes the resources, including ML compute instances and ML storage volumes, to /// use for model training.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceConfig { ///

    The ML compute instance type.

    - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    The number of ML compute instances to use. For distributed training, provide a /// value greater than 1.

    - #[serde(rename = "InstanceCount")] - #[serde(default)] pub instance_count: i32, ///

    The size of the ML storage volume that you want to provision.

    ///

    ML storage volumes store model artifacts and incremental states. Training @@ -21360,8 +19663,6 @@ pub struct ResourceConfig { ///

    For a list of instance types that support local instance storage, including the /// total size per instance type, see Instance Store Volumes.

    /// - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] pub volume_size_in_gb: i32, ///

    The AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML /// compute instance(s) that run the training job.

    @@ -21389,8 +19690,6 @@ pub struct ResourceConfig { ///

    /// /// - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, } impl std::fmt::Debug for ResourceConfig { @@ -21621,7 +19920,7 @@ impl std::convert::From<&str> for TrainingInstanceType { impl std::str::FromStr for TrainingInstanceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrainingInstanceType::from(s)) } } @@ -21676,20 +19975,11 @@ impl AsRef for TrainingInstanceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrainingInstanceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides information about how to store model training results (model /// artifacts).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputDataConfig { ///

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using /// Amazon S3 server-side encryption. The KmsKeyId can be any of the following @@ -21736,13 +20026,9 @@ pub struct OutputDataConfig { /// Using /// Key Policies in AWS KMS in the AWS Key Management Service Developer /// Guide.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. For /// example, s3://bucket-name/key-name-prefix.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, } impl std::fmt::Debug for OutputDataConfig { @@ -21847,25 +20133,17 @@ impl OutputDataConfig { ///

    A channel is a named input source that training algorithms can consume.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Channel { ///

    The name of the channel.

    - #[serde(rename = "ChannelName")] - #[serde(default)] pub channel_name: std::option::Option, ///

    The location of the channel data.

    - #[serde(rename = "DataSource")] - #[serde(default)] pub data_source: std::option::Option, ///

    The MIME type of the data.

    - #[serde(rename = "ContentType")] - #[serde(default)] pub content_type: std::option::Option, ///

    If training data is compressed, the compression type. The default value is /// None. CompressionType is used only in Pipe input mode. In /// File mode, leave this field unset or set it to None.

    - #[serde(rename = "CompressionType")] - #[serde(default)] pub compression_type: std::option::Option, ///

    ///

    Specify RecordIO as the value when input data is in raw format but the training @@ -21874,8 +20152,6 @@ pub struct Channel { /// need to set this attribute. For more information, see Create /// a Dataset Using RecordIO.

    ///

    In File mode, leave this field unset or set it to None.

    - #[serde(rename = "RecordWrapperType")] - #[serde(default)] pub record_wrapper_type: std::option::Option, ///

    (Optional) The input mode to use for the data channel in a training job. If you don't /// set a value for InputMode, Amazon SageMaker uses the value set for @@ -21887,8 +20163,6 @@ pub struct Channel { /// mode. To stream data directly from Amazon S3 to the container, choose Pipe input /// mode.

    ///

    To use a model for incremental training, choose File input model.

    - #[serde(rename = "InputMode")] - #[serde(default)] pub input_mode: std::option::Option, ///

    A configuration for a shuffle option for input data in a channel. If you use /// S3Prefix for S3DataType, this shuffles the results of the @@ -21904,8 +20178,6 @@ pub struct Channel { /// ShardedByS3Key, the data is shuffled across nodes so that the content /// sent to a particular node on the first epoch might be sent to a different node on the /// second epoch.

    - #[serde(rename = "ShuffleConfig")] - #[serde(default)] pub shuffle_config: std::option::Option, } impl std::fmt::Debug for Channel { @@ -22080,11 +20352,9 @@ impl Channel { /// shuffled across nodes so that the content sent to a particular node on the first epoch /// might be sent to a different node on the second epoch.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ShuffleConfig { ///

    Determines the shuffling order in ShuffleConfig value.

    - #[serde(rename = "Seed")] - #[serde(default)] pub seed: i64, } impl std::fmt::Debug for ShuffleConfig { @@ -22155,7 +20425,7 @@ impl std::convert::From<&str> for TrainingInputMode { impl std::str::FromStr for TrainingInputMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrainingInputMode::from(s)) } } @@ -22173,15 +20443,6 @@ impl AsRef for TrainingInputMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrainingInputMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -22211,7 +20472,7 @@ impl std::convert::From<&str> for RecordWrapper { impl std::str::FromStr for RecordWrapper { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RecordWrapper::from(s)) } } @@ -22229,27 +20490,14 @@ impl AsRef for RecordWrapper { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RecordWrapper { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the location of the channel data.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataSource { ///

    The S3 location of the data source that is associated with a channel.

    - #[serde(rename = "S3DataSource")] - #[serde(default)] pub s3_data_source: std::option::Option, ///

    The file system that is associated with a channel.

    - #[serde(rename = "FileSystemDataSource")] - #[serde(default)] pub file_system_data_source: std::option::Option, } impl std::fmt::Debug for DataSource { @@ -22315,25 +20563,17 @@ impl DataSource { ///

    Specifies a file system data source for a channel.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FileSystemDataSource { ///

    The file system id.

    - #[serde(rename = "FileSystemId")] - #[serde(default)] pub file_system_id: std::option::Option, ///

    The access mode of the mount of the directory associated with the channel. A directory /// can be mounted either in ro (read-only) or rw (read-write) /// mode.

    - #[serde(rename = "FileSystemAccessMode")] - #[serde(default)] pub file_system_access_mode: std::option::Option, ///

    The file system type.

    - #[serde(rename = "FileSystemType")] - #[serde(default)] pub file_system_type: std::option::Option, ///

    The full path to the directory to associate with the channel.

    - #[serde(rename = "DirectoryPath")] - #[serde(default)] pub directory_path: std::option::Option, } impl std::fmt::Debug for FileSystemDataSource { @@ -22457,7 +20697,7 @@ impl std::convert::From<&str> for FileSystemType { impl std::str::FromStr for FileSystemType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FileSystemType::from(s)) } } @@ -22475,15 +20715,6 @@ impl AsRef for FileSystemType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FileSystemType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -22513,7 +20744,7 @@ impl std::convert::From<&str> for FileSystemAccessMode { impl std::str::FromStr for FileSystemAccessMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FileSystemAccessMode::from(s)) } } @@ -22531,19 +20762,10 @@ impl AsRef for FileSystemAccessMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FileSystemAccessMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the S3 data source.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3DataSource { ///

    If you choose S3Prefix, S3Uri identifies a key name prefix. /// Amazon SageMaker uses all objects that match the specified key name prefix for model training.

    @@ -22554,8 +20776,6 @@ pub struct S3DataSource { /// an augmented manifest file in JSON lines format. This file contains the data you want to /// use for model training. AugmentedManifestFile can only be used if the /// Channel's input mode is Pipe.

    - #[serde(rename = "S3DataType")] - #[serde(default)] pub s3_data_type: std::option::Option, ///

    Depending on the value specified for the S3DataType, identifies either /// a key name prefix or a manifest. For example:

    @@ -22614,8 +20834,6 @@ pub struct S3DataSource { /// your behalf.

    /// /// - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

    If you want Amazon SageMaker to replicate the entire dataset on each ML compute instance that /// is launched for model training, specify FullyReplicated.

    @@ -22632,13 +20850,9 @@ pub struct S3DataSource { /// choose ShardedByS3Key. If the algorithm requires copying training data to /// the ML storage volume (when TrainingInputMode is set to File), /// this copies 1/n of the number of objects.

    - #[serde(rename = "S3DataDistributionType")] - #[serde(default)] pub s3_data_distribution_type: std::option::Option, ///

    A list of one or more attribute names to use that are found in a specified augmented /// manifest file.

    - #[serde(rename = "AttributeNames")] - #[serde(default)] pub attribute_names: std::option::Option>, } impl std::fmt::Debug for S3DataSource { @@ -22836,7 +21050,7 @@ impl std::convert::From<&str> for S3DataDistribution { impl std::str::FromStr for S3DataDistribution { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(S3DataDistribution::from(s)) } } @@ -22854,15 +21068,6 @@ impl AsRef for S3DataDistribution { self.as_str() } } -impl<'de> serde::Deserialize<'de> for S3DataDistribution { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies the training algorithm to use in a CreateTrainingJob /// request.

    @@ -22870,7 +21075,7 @@ impl<'de> serde::Deserialize<'de> for S3DataDistribution { /// information about using your own algorithms, see Using Your Own Algorithms with Amazon /// SageMaker.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmSpecification { ///

    The registry path of the Docker image /// that contains the training algorithm. @@ -22879,14 +21084,10 @@ pub struct AlgorithmSpecification { /// registry/repository[:tag] and registry/repository[@digest] /// image path formats. For more information, see Using Your Own Algorithms with Amazon /// SageMaker.

    - #[serde(rename = "TrainingImage")] - #[serde(default)] pub training_image: std::option::Option, ///

    The name of the algorithm resource to use for the training job. This must be an /// algorithm resource that you created or subscribe to on AWS Marketplace. If you specify a value for /// this parameter, you can't specify a value for TrainingImage.

    - #[serde(rename = "AlgorithmName")] - #[serde(default)] pub algorithm_name: std::option::Option, ///

    The input mode that the algorithm supports. For the input modes that Amazon SageMaker /// algorithms support, see Algorithms. If an algorithm supports the File input mode, Amazon SageMaker @@ -22903,13 +21104,9 @@ pub struct AlgorithmSpecification { /// object sizes are skewed, training won't be optimal as the data distribution is also /// skewed where one host in a training cluster is overloaded, thus becoming bottleneck in /// training.

    - #[serde(rename = "TrainingInputMode")] - #[serde(default)] pub training_input_mode: std::option::Option, ///

    A list of metric definition objects. Each object specifies the metric name and regular /// expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.

    - #[serde(rename = "MetricDefinitions")] - #[serde(default)] pub metric_definitions: std::option::Option>, ///

    To generate and save time-series metrics during training, set to true. /// The default is false and time-series metrics aren't generated except in the @@ -22937,8 +21134,6 @@ pub struct AlgorithmSpecification { ///

    /// /// - #[serde(rename = "EnableSageMakerMetricsTimeSeries")] - #[serde(default)] pub enable_sage_maker_metrics_time_series: bool, } impl std::fmt::Debug for AlgorithmSpecification { @@ -23112,18 +21307,14 @@ impl AlgorithmSpecification { /// specify one metric that a hyperparameter tuning job uses as its /// objective metric to choose the best training job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetricDefinition { ///

    The name of the metric.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A regular expression that searches the output of a training job and gets the value of /// the metric. For more information about using regular expressions to define metrics, see /// Defining /// Objective Metrics.

    - #[serde(rename = "Regex")] - #[serde(default)] pub regex: std::option::Option, } impl std::fmt::Debug for MetricDefinition { @@ -23215,7 +21406,7 @@ impl std::convert::From<&str> for TrainingJobStatus { impl std::str::FromStr for TrainingJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrainingJobStatus::from(s)) } } @@ -23236,15 +21427,6 @@ impl AsRef for TrainingJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrainingJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides information about the location that is configured for storing model /// artifacts.

    @@ -23252,12 +21434,10 @@ impl<'de> serde::Deserialize<'de> for TrainingJobStatus { /// consist of trained parameters, a model defintion that describes how to compute /// inferences, and other metadata.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelArtifacts { ///

    The path of the S3 object that contains the model artifacts. For example, /// s3://bucket-name/keynameprefix/model.tar.gz.

    - #[serde(rename = "S3ModelArtifacts")] - #[serde(default)] pub s3_model_artifacts: std::option::Option, } impl std::fmt::Debug for ModelArtifacts { @@ -23306,46 +21486,25 @@ impl ModelArtifacts { ///

    A summary of the metrics of a trial component.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentMetricSummary { ///

    The name of the metric.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

    When the metric was last updated.

    - #[serde(rename = "TimeStamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub time_stamp: std::option::Option, ///

    The maximum value of the metric.

    - #[serde(rename = "Max")] - #[serde(default)] pub max: std::option::Option, ///

    The minimum value of the metric.

    - #[serde(rename = "Min")] - #[serde(default)] pub min: std::option::Option, ///

    The most recent value of the metric.

    - #[serde(rename = "Last")] - #[serde(default)] pub last: std::option::Option, ///

    The number of samples used to generate the metric.

    - #[serde(rename = "Count")] - #[serde(default)] pub count: std::option::Option, ///

    The average value of the metric.

    - #[serde(rename = "Avg")] - #[serde(default)] pub avg: std::option::Option, ///

    The standard deviation of the metric.

    - #[serde(rename = "StdDev")] - #[serde(default)] pub std_dev: std::option::Option, } impl std::fmt::Debug for TrialComponentMetricSummary { @@ -23486,15 +21645,11 @@ impl TrialComponentMetricSummary { ///

    The Amazon Resource Name (ARN) and job type of the source of a trial component.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentSource { ///

    The source ARN.

    - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

    The source job type.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, } impl std::fmt::Debug for TrialComponentSource { @@ -23551,66 +21706,36 @@ impl TrialComponentSource { ///

    The properties of a trial as returned by the Search API.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Trial { ///

    The name of the trial.

    - #[serde(rename = "TrialName")] - #[serde(default)] pub trial_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] pub trial_arn: std::option::Option, ///

    The name of the trial as displayed. If DisplayName isn't specified, /// TrialName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The name of the experiment the trial is part of.

    - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, ///

    The source of the trial.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    When the trial was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    Who last modified the trial.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] pub metadata_properties: std::option::Option, ///

    The list of tags that are associated with the trial. You can use Search /// API to search on the tags.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    A list of the components associated with the trial. For each component, a summary of the /// component's properties is included.

    - #[serde(rename = "TrialComponentSummaries")] - #[serde(default)] pub trial_component_summaries: std::option::Option>, } @@ -23821,31 +21946,18 @@ impl Trial { ///

    A short summary of a trial component.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentSimpleSummary { ///

    The name of the trial component.

    - #[serde(rename = "TrialComponentName")] - #[serde(default)] pub trial_component_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] pub trial_component_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) and job type of the source of a trial component.

    - #[serde(rename = "TrialComponentSource")] - #[serde(default)] pub trial_component_source: std::option::Option, ///

    When the component was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, } impl std::fmt::Debug for TrialComponentSimpleSummary { @@ -23954,15 +22066,11 @@ impl TrialComponentSimpleSummary { ///

    The source of the trial.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialSource { ///

    The Amazon Resource Name (ARN) of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

    The source job type.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, } impl std::fmt::Debug for TrialSource { @@ -24019,56 +22127,30 @@ impl TrialSource { ///

    The properties of an experiment as returned by the Search API.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Experiment { ///

    The name of the experiment.

    - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the experiment.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] pub experiment_arn: std::option::Option, ///

    The name of the experiment as displayed. If DisplayName isn't specified, /// ExperimentName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The source of the experiment.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The description of the experiment.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    When the experiment was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    When the experiment was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

    The list of tags that are associated with the experiment. You can use Search API to search on the tags.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for Experiment { @@ -24249,15 +22331,11 @@ impl Experiment { ///

    The source of the experiment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExperimentSource { ///

    The Amazon Resource Name (ARN) of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

    The source type.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, } impl std::fmt::Debug for ExperimentSource { @@ -24340,7 +22418,7 @@ impl std::convert::From<&str> for SearchSortOrder { impl std::str::FromStr for SearchSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SearchSortOrder::from(s)) } } @@ -24358,15 +22436,6 @@ impl AsRef for SearchSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SearchSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A multi-expression that searches for the specified resource or resources in a search. All resource /// objects that satisfy the expression's condition are included in the search results. You must specify at @@ -24394,27 +22463,19 @@ impl<'de> serde::Deserialize<'de> for SearchSortOrder { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SearchExpression { ///

    A list of filter objects.

    - #[serde(rename = "Filters")] - #[serde(default)] pub filters: std::option::Option>, ///

    A list of nested filter objects.

    - #[serde(rename = "NestedFilters")] - #[serde(default)] pub nested_filters: std::option::Option>, ///

    A list of search expression objects.

    - #[serde(rename = "SubExpressions")] - #[serde(default)] pub sub_expressions: std::option::Option>, ///

    A Boolean operator used to evaluate the search expression. If you want every /// conditional statement in all lists to be satisfied for the entire search expression to /// be true, specify And. If only a single conditional statement needs to be /// true for the entire search expression to be true, specify Or. The default /// value is And.

    - #[serde(rename = "Operator")] - #[serde(default)] pub operator: std::option::Option, } impl std::fmt::Debug for SearchExpression { @@ -24541,7 +22602,7 @@ impl std::convert::From<&str> for BooleanOperator { impl std::str::FromStr for BooleanOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BooleanOperator::from(s)) } } @@ -24559,15 +22620,6 @@ impl AsRef for BooleanOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BooleanOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A list of nested Filter objects. A resource must satisfy the conditions /// of all filters to be included in the results returned from the Search API.

    @@ -24587,20 +22639,16 @@ impl<'de> serde::Deserialize<'de> for BooleanOperator { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NestedFilters { ///

    The name of the property to use in the nested filters. The value must match a listed property name, /// such as InputDataConfig.

    - #[serde(rename = "NestedPropertyName")] - #[serde(default)] pub nested_property_name: std::option::Option, ///

    A list of filters. Each filter acts on a property. Filters must contain at least one /// Filters value. For example, a NestedFilters call might /// include a filter on the PropertyName parameter of the /// InputDataConfig property: /// InputDataConfig.DataSource.S3DataSource.S3Uri.

    - #[serde(rename = "Filters")] - #[serde(default)] pub filters: std::option::Option>, } impl std::fmt::Debug for NestedFilters { @@ -24726,13 +22774,11 @@ impl NestedFilters { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Filter { ///

    A resource property name. For example, TrainingJobName. For /// valid property names, see SearchRecord. /// You must specify a valid property for the resource.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A Boolean binary operator that is used to evaluate the filter. The operator field /// contains one of the following values:

    @@ -24848,16 +22894,12 @@ pub struct Filter { /// exceeded.
    "

    /// /// - #[serde(rename = "Operator")] - #[serde(default)] pub operator: std::option::Option, ///

    A value used with Name and Operator to determine which /// resources satisfy the filter's condition. For numerical properties, Value /// must be an integer or floating-point decimal. For timestamp properties, /// Value must be an ISO 8601 date-time string of the following format: /// YYYY-mm-dd'T'HH:MM:SS.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Filter { @@ -25087,7 +23129,7 @@ impl std::convert::From<&str> for Operator { impl std::str::FromStr for Operator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Operator::from(s)) } } @@ -25113,15 +23155,6 @@ impl AsRef for Operator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Operator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25167,7 +23200,7 @@ impl std::convert::From<&str> for ResourceType { impl std::str::FromStr for ResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceType::from(s)) } } @@ -25193,27 +23226,14 @@ impl AsRef for ResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A description of an error that occurred while rendering the template.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RenderingError { ///

    A unique identifier for a specific class of errors.

    - #[serde(rename = "Code")] - #[serde(default)] pub code: std::option::Option, ///

    A human-readable message describing the error.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for RenderingError { @@ -25270,14 +23290,12 @@ impl RenderingError { ///

    Contains input values for a task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RenderableTask { ///

    A JSON object that contains values for the variables defined in the template. It is /// made available to the template under the substitution variable task.input. /// For example, if you define a variable task.input.text in your template, you /// can supply the variable in the JSON object as "text": "sample text".

    - #[serde(rename = "Input")] - #[serde(default)] pub input: std::option::Option, } impl std::fmt::Debug for RenderableTask { @@ -25323,11 +23341,9 @@ impl RenderableTask { ///

    The Liquid template for the worker user interface.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UiTemplate { ///

    The content of the Liquid template for the worker user interface.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option, } impl std::fmt::Debug for UiTemplate { @@ -25398,7 +23414,7 @@ impl std::convert::From<&str> for SortOrder { impl std::str::FromStr for SortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortOrder::from(s)) } } @@ -25416,15 +23432,6 @@ impl AsRef for SortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25454,7 +23461,7 @@ impl std::convert::From<&str> for ListWorkteamsSortByOptions { impl std::str::FromStr for ListWorkteamsSortByOptions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListWorkteamsSortByOptions::from(s)) } } @@ -25472,15 +23479,6 @@ impl AsRef for ListWorkteamsSortByOptions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListWorkteamsSortByOptions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25510,7 +23508,7 @@ impl std::convert::From<&str> for ListWorkforcesSortByOptions { impl std::str::FromStr for ListWorkforcesSortByOptions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListWorkforcesSortByOptions::from(s)) } } @@ -25528,45 +23526,20 @@ impl AsRef for ListWorkforcesSortByOptions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListWorkforcesSortByOptions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The user profile details.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UserProfileDetails { ///

    The domain ID.

    - #[serde(rename = "DomainId")] - #[serde(default)] pub domain_id: std::option::Option, ///

    The user profile name.

    - #[serde(rename = "UserProfileName")] - #[serde(default)] pub user_profile_name: std::option::Option, ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for UserProfileDetails { @@ -25707,7 +23680,7 @@ impl std::convert::From<&str> for UserProfileStatus { impl std::str::FromStr for UserProfileStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UserProfileStatus::from(s)) } } @@ -25730,15 +23703,6 @@ impl AsRef for UserProfileStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UserProfileStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -25768,7 +23732,7 @@ impl std::convert::From<&str> for UserProfileSortKey { impl std::str::FromStr for UserProfileSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(UserProfileSortKey::from(s)) } } @@ -25786,51 +23750,24 @@ impl AsRef for UserProfileSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for UserProfileSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of the properties of a trial. To get the complete set of properties, call the /// DescribeTrial API and provide the TrialName.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialSummary { ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] pub trial_arn: std::option::Option, ///

    The name of the trial.

    - #[serde(rename = "TrialName")] - #[serde(default)] pub trial_name: std::option::Option, ///

    The name of the trial as displayed. If DisplayName isn't specified, /// TrialName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The source of the trial.

    - #[serde(rename = "TrialSource")] - #[serde(default)] pub trial_source: std::option::Option, ///

    When the trial was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the trial was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for TrialSummary { @@ -25971,7 +23908,7 @@ impl std::convert::From<&str> for SortTrialsBy { impl std::str::FromStr for SortTrialsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortTrialsBy::from(s)) } } @@ -25989,38 +23926,21 @@ impl AsRef for SortTrialsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortTrialsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of the properties of a trial component. To get all the properties, call the /// DescribeTrialComponent API and provide the /// TrialComponentName.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrialComponentSummary { ///

    The name of the trial component.

    - #[serde(rename = "TrialComponentName")] - #[serde(default)] pub trial_component_name: std::option::Option, ///

    The ARN of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] pub trial_component_arn: std::option::Option, ///

    The name of the component as displayed. If DisplayName isn't specified, /// TrialComponentName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The Amazon Resource Name (ARN) and job type of the source of a trial component.

    - #[serde(rename = "TrialComponentSource")] - #[serde(default)] pub trial_component_source: std::option::Option, ///

    The status of the component. States include:

    ///
      @@ -26034,44 +23954,18 @@ pub struct TrialComponentSummary { ///

      Failed

      /// ///
    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    When the component started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    When the component ended.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    When the component was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Who created the component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    When the component was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    Who last modified the component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, } impl std::fmt::Debug for TrialComponentSummary { @@ -26298,7 +24192,7 @@ impl std::convert::From<&str> for SortTrialComponentsBy { impl std::str::FromStr for SortTrialComponentsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortTrialComponentsBy::from(s)) } } @@ -26316,37 +24210,19 @@ impl AsRef for SortTrialComponentsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortTrialComponentsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides a /// summary /// of a transform job. Multiple TransformJobSummary objects are returned as a /// list after in response to a ListTransformJobs call.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformJobSummary { ///

    The name of the transform job.

    - #[serde(rename = "TransformJobName")] - #[serde(default)] pub transform_job_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the transform job.

    - #[serde(rename = "TransformJobArn")] - #[serde(default)] pub transform_job_arn: std::option::Option, ///

    A timestamp that shows when the transform Job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Indicates when the transform /// job @@ -26355,28 +24231,14 @@ pub struct TransformJobSummary { /// recorded /// after the results are uploaded. For failed jobs, this is when Amazon SageMaker /// detected that the job failed.

    - #[serde(rename = "TransformEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub transform_end_time: std::option::Option, ///

    Indicates when the transform job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the transform job.

    - #[serde(rename = "TransformJobStatus")] - #[serde(default)] pub transform_job_status: std::option::Option, ///

    If the transform job failed, /// the /// reason it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, } impl std::fmt::Debug for TransformJobSummary { @@ -26550,7 +24412,7 @@ impl std::convert::From<&str> for SortBy { impl std::str::FromStr for SortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortBy::from(s)) } } @@ -26569,81 +24431,43 @@ impl AsRef for SortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies /// summary information about a training job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTrainingJobSummary { ///

    The training job definition name.

    - #[serde(rename = "TrainingJobDefinitionName")] - #[serde(default)] pub training_job_definition_name: std::option::Option, ///

    The name of the training job.

    - #[serde(rename = "TrainingJobName")] - #[serde(default)] pub training_job_name: std::option::Option, ///

    The /// Amazon /// Resource Name (ARN) of the training job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] pub training_job_arn: std::option::Option, ///

    The HyperParameter tuning job that launched the training job.

    - #[serde(rename = "TuningJobName")] - #[serde(default)] pub tuning_job_name: std::option::Option, ///

    The date and time that the training job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The date and time that the training job started.

    - #[serde(rename = "TrainingStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub training_start_time: std::option::Option, ///

    Specifies the time when the training job ends on training instances. You are billed /// for the time interval between the value of TrainingStartTime and this time. /// For successful jobs and stopped jobs, this is the time after model artifacts are /// uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.

    - #[serde(rename = "TrainingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub training_end_time: std::option::Option, ///

    The /// status /// of the training job.

    - #[serde(rename = "TrainingJobStatus")] - #[serde(default)] pub training_job_status: std::option::Option, ///

    A /// list of the hyperparameters for which you specified ranges to /// search.

    - #[serde(rename = "TunedHyperParameters")] - #[serde(default)] pub tuned_hyper_parameters: std::option::Option>, ///

    The /// reason that the training job failed. ///

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The FinalHyperParameterTuningJobObjectiveMetric object that /// specifies the @@ -26651,8 +24475,6 @@ pub struct HyperParameterTrainingJobSummary { /// of the /// objective /// metric of the tuning job that launched this training job.

    - #[serde(rename = "FinalHyperParameterTuningJobObjectiveMetric")] - #[serde(default)] pub final_hyper_parameter_tuning_job_objective_metric: std::option::Option, ///

    The status of the objective metric for the training job:

    @@ -26681,8 +24503,6 @@ pub struct HyperParameterTrainingJobSummary { /// metric.

    /// /// - #[serde(rename = "ObjectiveStatus")] - #[serde(default)] pub objective_status: std::option::Option, } impl std::fmt::Debug for HyperParameterTrainingJobSummary { @@ -26985,7 +24805,7 @@ impl std::convert::From<&str> for ObjectiveStatus { impl std::str::FromStr for ObjectiveStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ObjectiveStatus::from(s)) } } @@ -27004,15 +24824,6 @@ impl AsRef for ObjectiveStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ObjectiveStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Shows the final value for the /// objective @@ -27020,24 +24831,18 @@ impl<'de> serde::Deserialize<'de> for ObjectiveStatus { /// tuning job. You define the objective metric in the /// HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FinalHyperParameterTuningJobObjectiveMetric { ///

    Whether to /// minimize /// or maximize the objective metric. Valid values are Minimize and /// Maximize.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The name of the /// objective /// metric.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    The value of the objective metric.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: f32, } impl std::fmt::Debug for FinalHyperParameterTuningJobObjectiveMetric { @@ -27140,7 +24945,7 @@ impl std::convert::From<&str> for HyperParameterTuningJobObjectiveType { impl std::str::FromStr for HyperParameterTuningJobObjectiveType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterTuningJobObjectiveType::from(s)) } } @@ -27158,15 +24963,6 @@ impl AsRef for HyperParameterTuningJobObjectiveType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterTuningJobObjectiveType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -27200,7 +24996,7 @@ impl std::convert::From<&str> for TrainingJobSortByOptions { impl std::str::FromStr for TrainingJobSortByOptions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrainingJobSortByOptions::from(s)) } } @@ -27220,54 +25016,24 @@ impl AsRef for TrainingJobSortByOptions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrainingJobSortByOptions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about a training job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingJobSummary { ///

    The name of the training job that you want a summary for.

    - #[serde(rename = "TrainingJobName")] - #[serde(default)] pub training_job_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the training job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] pub training_job_arn: std::option::Option, ///

    A timestamp that shows when the training job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    A timestamp that shows when the training job ended. This field is set only if the /// training job has one of the terminal statuses (Completed, /// Failed, or Stopped).

    - #[serde(rename = "TrainingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub training_end_time: std::option::Option, ///

    Timestamp when the training job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the training job.

    - #[serde(rename = "TrainingJobStatus")] - #[serde(default)] pub training_job_status: std::option::Option, } impl std::fmt::Debug for TrainingJobSummary { @@ -27392,27 +25158,17 @@ impl TrainingJobSummary { ///

    Describes a work team of a vendor that does the a labelling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SubscribedWorkteam { ///

    The Amazon Resource Name (ARN) of the vendor that you have subscribed.

    - #[serde(rename = "WorkteamArn")] - #[serde(default)] pub workteam_arn: std::option::Option, ///

    The title of the service provided by the vendor in the Amazon Marketplace.

    - #[serde(rename = "MarketplaceTitle")] - #[serde(default)] pub marketplace_title: std::option::Option, ///

    The name of the vendor in the Amazon Marketplace.

    - #[serde(rename = "SellerName")] - #[serde(default)] pub seller_name: std::option::Option, ///

    The description of the vendor from the Amazon Marketplace.

    - #[serde(rename = "MarketplaceDescription")] - #[serde(default)] pub marketplace_description: std::option::Option, ///

    Marketplace product listing ID.

    - #[serde(rename = "ListingId")] - #[serde(default)] pub listing_id: std::option::Option, } impl std::fmt::Debug for SubscribedWorkteam { @@ -27511,34 +25267,19 @@ impl SubscribedWorkteam { ///

    Information about a project.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProjectSummary { ///

    The name of the project.

    - #[serde(rename = "ProjectName")] - #[serde(default)] pub project_name: std::option::Option, ///

    The description of the project.

    - #[serde(rename = "ProjectDescription")] - #[serde(default)] pub project_description: std::option::Option, ///

    The Amazon Resource Name (ARN) of the project.

    - #[serde(rename = "ProjectArn")] - #[serde(default)] pub project_arn: std::option::Option, ///

    The ID of the project.

    - #[serde(rename = "ProjectId")] - #[serde(default)] pub project_id: std::option::Option, ///

    The time that the project was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The status of the project.

    - #[serde(rename = "ProjectStatus")] - #[serde(default)] pub project_status: std::option::Option, } impl std::fmt::Debug for ProjectSummary { @@ -27688,7 +25429,7 @@ impl std::convert::From<&str> for ProjectStatus { impl std::str::FromStr for ProjectStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProjectStatus::from(s)) } } @@ -27711,15 +25452,6 @@ impl AsRef for ProjectStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProjectStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -27749,7 +25481,7 @@ impl std::convert::From<&str> for ProjectSortOrder { impl std::str::FromStr for ProjectSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProjectSortOrder::from(s)) } } @@ -27767,15 +25499,6 @@ impl AsRef for ProjectSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProjectSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -27805,7 +25528,7 @@ impl std::convert::From<&str> for ProjectSortBy { impl std::str::FromStr for ProjectSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProjectSortBy::from(s)) } } @@ -27823,62 +25546,28 @@ impl AsRef for ProjectSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProjectSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary of information about a processing job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingJobSummary { ///

    The name of the processing job.

    - #[serde(rename = "ProcessingJobName")] - #[serde(default)] pub processing_job_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the processing job..

    - #[serde(rename = "ProcessingJobArn")] - #[serde(default)] pub processing_job_arn: std::option::Option, ///

    The time at which the processing job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The time at which the processing job completed.

    - #[serde(rename = "ProcessingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub processing_end_time: std::option::Option, ///

    A timestamp that indicates the last time the processing job was modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the processing job.

    - #[serde(rename = "ProcessingJobStatus")] - #[serde(default)] pub processing_job_status: std::option::Option, ///

    A string, up to one KB in size, that contains the reason a processing job failed, if /// it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    An optional string, up to one KB in size, that contains metadata from the processing /// container when the processing job exits.

    - #[serde(rename = "ExitMessage")] - #[serde(default)] pub exit_message: std::option::Option, } impl std::fmt::Debug for ProcessingJobSummary { @@ -28030,48 +25719,23 @@ impl ProcessingJobSummary { ///

    A summary of a pipeline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineSummary { ///

    The Amazon Resource Name (ARN) of the pipeline.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] pub pipeline_arn: std::option::Option, ///

    The name of the pipeline.

    - #[serde(rename = "PipelineName")] - #[serde(default)] pub pipeline_name: std::option::Option, ///

    The display name of the pipeline.

    - #[serde(rename = "PipelineDisplayName")] - #[serde(default)] pub pipeline_display_name: std::option::Option, ///

    The description of the pipeline.

    - #[serde(rename = "PipelineDescription")] - #[serde(default)] pub pipeline_description: std::option::Option, ///

    The Amazon Resource Name (ARN) that the pipeline used to execute.

    - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

    The creation time of the pipeline.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The time that the pipeline was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The last time that a pipeline execution began.

    - #[serde(rename = "LastExecutionTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_execution_time: std::option::Option, } impl std::fmt::Debug for PipelineSummary { @@ -28244,7 +25908,7 @@ impl std::convert::From<&str> for SortPipelinesBy { impl std::str::FromStr for SortPipelinesBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortPipelinesBy::from(s)) } } @@ -28262,53 +25926,24 @@ impl AsRef for SortPipelinesBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortPipelinesBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An execution of a step in a pipeline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineExecutionStep { ///

    The name of the step that is executed.

    - #[serde(rename = "StepName")] - #[serde(default)] pub step_name: std::option::Option, ///

    The time that the step started executing.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    The time that the step stopped executing.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    The status of the step execution.

    - #[serde(rename = "StepStatus")] - #[serde(default)] pub step_status: std::option::Option, ///

    If this pipeline execution step was cached, details on the cache hit.

    - #[serde(rename = "CacheHitResult")] - #[serde(default)] pub cache_hit_result: std::option::Option, ///

    The reason why the step failed execution. This is only returned if the step failed its execution.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    Metadata for the step execution.

    - #[serde(rename = "Metadata")] - #[serde(default)] pub metadata: std::option::Option, } impl std::fmt::Debug for PipelineExecutionStep { @@ -28437,35 +26072,21 @@ impl PipelineExecutionStep { ///

    Metadata for a step execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineExecutionStepMetadata { ///

    The Amazon Resource Name (ARN) of the training job that was run by this step execution.

    - #[serde(rename = "TrainingJob")] - #[serde(default)] pub training_job: std::option::Option, ///

    The Amazon Resource Name (ARN) of the processing job that was run by this step execution.

    - #[serde(rename = "ProcessingJob")] - #[serde(default)] pub processing_job: std::option::Option, ///

    The Amazon Resource Name (ARN) of the transform job that was run by this step execution.

    - #[serde(rename = "TransformJob")] - #[serde(default)] pub transform_job: std::option::Option, ///

    Metadata for the Model step.

    - #[serde(rename = "Model")] - #[serde(default)] pub model: std::option::Option, ///

    Metadata for the RegisterModel step.

    - #[serde(rename = "RegisterModel")] - #[serde(default)] pub register_model: std::option::Option, ///

    If this is a Condition step metadata object, details on the condition.

    - #[serde(rename = "Condition")] - #[serde(default)] pub condition: std::option::Option, ///

    Metadata about a callback step.

    - #[serde(rename = "Callback")] - #[serde(default)] pub callback: std::option::Option, } impl std::fmt::Debug for PipelineExecutionStepMetadata { @@ -28603,19 +26224,13 @@ impl PipelineExecutionStepMetadata { ///

    Metadata about a callback step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CallbackStepMetadata { ///

    The pipeline generated token from the Amazon SQS queue.

    - #[serde(rename = "CallbackToken")] - #[serde(default)] pub callback_token: std::option::Option, ///

    The URL of the Amazon Simple Queue Service (Amazon SQS) queue used by the callback step.

    - #[serde(rename = "SqsQueueUrl")] - #[serde(default)] pub sqs_queue_url: std::option::Option, ///

    A list of the output parameters of the callback step.

    - #[serde(rename = "OutputParameters")] - #[serde(default)] pub output_parameters: std::option::Option>, } impl std::fmt::Debug for CallbackStepMetadata { @@ -28698,11 +26313,9 @@ impl CallbackStepMetadata { ///

    Metadata for a Condition step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ConditionStepMetadata { ///

    The outcome of the Condition step evaluation.

    - #[serde(rename = "Outcome")] - #[serde(default)] pub outcome: std::option::Option, } impl std::fmt::Debug for ConditionStepMetadata { @@ -28776,7 +26389,7 @@ impl std::convert::From<&str> for ConditionOutcome { impl std::str::FromStr for ConditionOutcome { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConditionOutcome::from(s)) } } @@ -28794,23 +26407,12 @@ impl AsRef for ConditionOutcome { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConditionOutcome { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Metadata for a register model job step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RegisterModelStepMetadata { ///

    The Amazon Resource Name (ARN) of the model package.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for RegisterModelStepMetadata { @@ -28853,11 +26455,9 @@ impl RegisterModelStepMetadata { ///

    Metadata for Model steps.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelStepMetadata { ///

    The Amazon Resource Name (ARN) of the created model.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for ModelStepMetadata { @@ -28900,11 +26500,9 @@ impl ModelStepMetadata { ///

    Metadata for a transform job step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TransformJobStepMetadata { ///

    The Amazon Resource Name (ARN) of the transform job that was run by this step execution.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for TransformJobStepMetadata { @@ -28947,11 +26545,9 @@ impl TransformJobStepMetadata { ///

    Metadata for a processing job step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProcessingJobStepMetadata { ///

    The Amazon Resource Name (ARN) of the processing job.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for ProcessingJobStepMetadata { @@ -28994,11 +26590,9 @@ impl ProcessingJobStepMetadata { ///

    Metadata for a training job step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingJobStepMetadata { ///

    The Amazon Resource Name (ARN) of the training job that was run by this step execution.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for TrainingJobStepMetadata { @@ -29041,11 +26635,9 @@ impl TrainingJobStepMetadata { ///

    Details on the cache hit of a pipeline execution step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CacheHitResult { ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "SourcePipelineExecutionArn")] - #[serde(default)] pub source_pipeline_execution_arn: std::option::Option, } impl std::fmt::Debug for CacheHitResult { @@ -29133,7 +26725,7 @@ impl std::convert::From<&str> for StepStatus { impl std::str::FromStr for StepStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StepStatus::from(s)) } } @@ -29155,42 +26747,20 @@ impl AsRef for StepStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StepStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A pipeline execution summary.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PipelineExecutionSummary { ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] pub pipeline_execution_arn: std::option::Option, ///

    The start time of the pipeline execution.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    The status of the pipeline execution.

    - #[serde(rename = "PipelineExecutionStatus")] - #[serde(default)] pub pipeline_execution_status: std::option::Option, ///

    The description of the pipeline execution.

    - #[serde(rename = "PipelineExecutionDescription")] - #[serde(default)] pub pipeline_execution_description: std::option::Option, ///

    The display name of the pipeline execution.

    - #[serde(rename = "PipelineExecutionDisplayName")] - #[serde(default)] pub pipeline_execution_display_name: std::option::Option, } impl std::fmt::Debug for PipelineExecutionSummary { @@ -29337,7 +26907,7 @@ impl std::convert::From<&str> for SortPipelineExecutionsBy { impl std::str::FromStr for SortPipelineExecutionsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortPipelineExecutionsBy::from(s)) } } @@ -29355,62 +26925,31 @@ impl AsRef for SortPipelineExecutionsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortPipelineExecutionsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information for an Amazon SageMaker notebook instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NotebookInstanceSummary { ///

    The name of the notebook instance that you want a summary for.

    - #[serde(rename = "NotebookInstanceName")] - #[serde(default)] pub notebook_instance_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the notebook instance.

    - #[serde(rename = "NotebookInstanceArn")] - #[serde(default)] pub notebook_instance_arn: std::option::Option, ///

    The status of the notebook instance.

    - #[serde(rename = "NotebookInstanceStatus")] - #[serde(default)] pub notebook_instance_status: std::option::Option, ///

    The /// URL that you use to connect to the Jupyter instance running in your notebook instance. ///

    - #[serde(rename = "Url")] - #[serde(default)] pub url: std::option::Option, ///

    The type of ML compute instance that the notebook instance is running on.

    - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    A timestamp that shows when the notebook instance was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    A timestamp that shows when the notebook instance was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The name of a notebook instance lifecycle configuration associated with this notebook /// instance.

    ///

    For information about notebook instance lifestyle configurations, see Step /// 2.1: (Optional) Customize a Notebook Instance.

    - #[serde(rename = "NotebookInstanceLifecycleConfigName")] - #[serde(default)] pub notebook_instance_lifecycle_config_name: std::option::Option, ///

    The Git repository associated with the notebook instance as its default code /// repository. This can be either the name of a Git repository stored as a resource in your @@ -29418,8 +26957,6 @@ pub struct NotebookInstanceSummary { /// other Git repository. When you open a notebook instance, it opens in the directory that /// contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker /// Notebook Instances.

    - #[serde(rename = "DefaultCodeRepository")] - #[serde(default)] pub default_code_repository: std::option::Option, ///

    An array of up to three Git repositories associated with the notebook instance. These /// can be either the names of Git repositories stored as resources in your account, or the @@ -29427,8 +26964,6 @@ pub struct NotebookInstanceSummary { /// other Git repository. These repositories are cloned at the same level as the default /// repository of your notebook instance. For more information, see Associating Git /// Repositories with Amazon SageMaker Notebook Instances.

    - #[serde(rename = "AdditionalCodeRepositories")] - #[serde(default)] pub additional_code_repositories: std::option::Option>, } impl std::fmt::Debug for NotebookInstanceSummary { @@ -29674,7 +27209,7 @@ impl std::convert::From<&str> for NotebookInstanceStatus { impl std::str::FromStr for NotebookInstanceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceStatus::from(s)) } } @@ -29697,15 +27232,6 @@ impl AsRef for NotebookInstanceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -29735,7 +27261,7 @@ impl std::convert::From<&str> for NotebookInstanceSortOrder { impl std::str::FromStr for NotebookInstanceSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceSortOrder::from(s)) } } @@ -29753,15 +27279,6 @@ impl AsRef for NotebookInstanceSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -29793,7 +27310,7 @@ impl std::convert::From<&str> for NotebookInstanceSortKey { impl std::str::FromStr for NotebookInstanceSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceSortKey::from(s)) } } @@ -29812,41 +27329,18 @@ impl AsRef for NotebookInstanceSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides a summary of a notebook instance lifecycle configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NotebookInstanceLifecycleConfigSummary { ///

    The name of the lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigName")] - #[serde(default)] pub notebook_instance_lifecycle_config_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigArn")] - #[serde(default)] pub notebook_instance_lifecycle_config_arn: std::option::Option, ///

    A timestamp that tells when the lifecycle configuration was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    A timestamp that tells when the lifecycle configuration was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for NotebookInstanceLifecycleConfigSummary { @@ -29979,7 +27473,7 @@ impl std::convert::From<&str> for NotebookInstanceLifecycleConfigSortOrder { impl std::str::FromStr for NotebookInstanceLifecycleConfigSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceLifecycleConfigSortOrder::from(s)) } } @@ -29997,15 +27491,6 @@ impl AsRef for NotebookInstanceLifecycleConfigSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceLifecycleConfigSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -30037,7 +27522,7 @@ impl std::convert::From<&str> for NotebookInstanceLifecycleConfigSortKey { impl std::str::FromStr for NotebookInstanceLifecycleConfigSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotebookInstanceLifecycleConfigSortKey::from(s)) } } @@ -30056,57 +27541,26 @@ impl AsRef for NotebookInstanceLifecycleConfigSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotebookInstanceLifecycleConfigSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summarizes the monitoring schedule.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringScheduleSummary { ///

    The name of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleName")] - #[serde(default)] pub monitoring_schedule_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] pub monitoring_schedule_arn: std::option::Option, ///

    The creation time of the monitoring schedule.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The last time the monitoring schedule was modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleStatus")] - #[serde(default)] pub monitoring_schedule_status: std::option::Option, ///

    The name of the endpoint using the monitoring schedule.

    - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

    The name of the monitoring job definition that the schedule is for.

    - #[serde(rename = "MonitoringJobDefinitionName")] - #[serde(default)] pub monitoring_job_definition_name: std::option::Option, ///

    The type of the monitoring job definition that the schedule is for.

    - #[serde(rename = "MonitoringType")] - #[serde(default)] pub monitoring_type: std::option::Option, } impl std::fmt::Debug for MonitoringScheduleSummary { @@ -30296,7 +27750,7 @@ impl std::convert::From<&str> for MonitoringScheduleSortKey { impl std::str::FromStr for MonitoringScheduleSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringScheduleSortKey::from(s)) } } @@ -30315,15 +27769,6 @@ impl AsRef for MonitoringScheduleSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringScheduleSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -30355,7 +27800,7 @@ impl std::convert::From<&str> for MonitoringExecutionSortKey { impl std::str::FromStr for MonitoringExecutionSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringExecutionSortKey::from(s)) } } @@ -30374,34 +27819,16 @@ impl AsRef for MonitoringExecutionSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringExecutionSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about a model.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelSummary { ///

    The name of the model that you want a summary for.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the model.

    - #[serde(rename = "ModelArn")] - #[serde(default)] pub model_arn: std::option::Option, ///

    A timestamp that indicates when the model was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for ModelSummary { @@ -30499,7 +27926,7 @@ impl std::convert::From<&str> for OrderKey { impl std::str::FromStr for OrderKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OrderKey::from(s)) } } @@ -30517,15 +27944,6 @@ impl AsRef for OrderKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OrderKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -30555,7 +27973,7 @@ impl std::convert::From<&str> for ModelSortKey { impl std::str::FromStr for ModelSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelSortKey::from(s)) } } @@ -30573,38 +27991,18 @@ impl AsRef for ModelSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary information about a monitoring job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringJobDefinitionSummary { ///

    The name of the monitoring job.

    - #[serde(rename = "MonitoringJobDefinitionName")] - #[serde(default)] pub monitoring_job_definition_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the monitoring job.

    - #[serde(rename = "MonitoringJobDefinitionArn")] - #[serde(default)] pub monitoring_job_definition_arn: std::option::Option, ///

    The time that the monitoring job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The name of the endpoint that the job monitors.

    - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, } impl std::fmt::Debug for MonitoringJobDefinitionSummary { @@ -30735,7 +28133,7 @@ impl std::convert::From<&str> for MonitoringJobDefinitionSortKey { impl std::str::FromStr for MonitoringJobDefinitionSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringJobDefinitionSortKey::from(s)) } } @@ -30753,51 +28151,25 @@ impl AsRef for MonitoringJobDefinitionSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringJobDefinitionSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about a model package.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageSummary { ///

    The name of the model package.

    - #[serde(rename = "ModelPackageName")] - #[serde(default)] pub model_package_name: std::option::Option, ///

    If the model package is a versioned model, the model group that the versioned model /// belongs to.

    - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] pub model_package_group_name: std::option::Option, ///

    If the model package is a versioned model, the version of the model.

    - #[serde(rename = "ModelPackageVersion")] - #[serde(default)] pub model_package_version: std::option::Option, ///

    The Amazon Resource Name (ARN) of the model package.

    - #[serde(rename = "ModelPackageArn")] - #[serde(default)] pub model_package_arn: std::option::Option, ///

    A brief description of the model package.

    - #[serde(rename = "ModelPackageDescription")] - #[serde(default)] pub model_package_description: std::option::Option, ///

    A timestamp that shows when the model package was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The overall status of the model package.

    - #[serde(rename = "ModelPackageStatus")] - #[serde(default)] pub model_package_status: std::option::Option, ///

    The approval status of the model. This can be one of the following values.

    ///
      @@ -30815,8 +28187,6 @@ pub struct ModelPackageSummary { /// approval.

      /// ///
    - #[serde(rename = "ModelApprovalStatus")] - #[serde(default)] pub model_approval_status: std::option::Option, } impl std::fmt::Debug for ModelPackageSummary { @@ -31008,7 +28378,7 @@ impl std::convert::From<&str> for ModelPackageSortBy { impl std::str::FromStr for ModelPackageSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelPackageSortBy::from(s)) } } @@ -31026,15 +28396,6 @@ impl AsRef for ModelPackageSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelPackageSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -31066,7 +28427,7 @@ impl std::convert::From<&str> for ModelPackageType { impl std::str::FromStr for ModelPackageType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelPackageType::from(s)) } } @@ -31085,42 +28446,20 @@ impl AsRef for ModelPackageType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelPackageType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary information about a model group.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelPackageGroupSummary { ///

    The name of the model group.

    - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] pub model_package_group_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the model group.

    - #[serde(rename = "ModelPackageGroupArn")] - #[serde(default)] pub model_package_group_arn: std::option::Option, ///

    A description of the model group.

    - #[serde(rename = "ModelPackageGroupDescription")] - #[serde(default)] pub model_package_group_description: std::option::Option, ///

    The time that the model group was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The status of the model group.

    - #[serde(rename = "ModelPackageGroupStatus")] - #[serde(default)] pub model_package_group_status: std::option::Option, } impl std::fmt::Debug for ModelPackageGroupSummary { @@ -31267,7 +28606,7 @@ impl std::convert::From<&str> for ModelPackageGroupSortBy { impl std::str::FromStr for ModelPackageGroupSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelPackageGroupSortBy::from(s)) } } @@ -31285,47 +28624,23 @@ impl AsRef for ModelPackageGroupSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelPackageGroupSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information for a work team.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobForWorkteamSummary { ///

    The name of the labeling job that the work team is assigned to.

    - #[serde(rename = "LabelingJobName")] - #[serde(default)] pub labeling_job_name: std::option::Option, ///

    A unique identifier for a labeling job. You can use this to refer to a specific /// labeling job.

    - #[serde(rename = "JobReferenceCode")] - #[serde(default)] pub job_reference_code: std::option::Option, ///

    The AWS account ID of the account used to start the labeling job.

    - #[serde(rename = "WorkRequesterAccountId")] - #[serde(default)] pub work_requester_account_id: std::option::Option, ///

    The date and time that the labeling job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Provides information about the progress of a labeling job.

    - #[serde(rename = "LabelCounters")] - #[serde(default)] pub label_counters: std::option::Option, ///

    The configured number of workers per data object.

    - #[serde(rename = "NumberOfHumanWorkersPerDataObject")] - #[serde(default)] pub number_of_human_workers_per_data_object: std::option::Option, } impl std::fmt::Debug for LabelingJobForWorkteamSummary { @@ -31453,19 +28768,13 @@ impl LabelingJobForWorkteamSummary { ///

    Provides counts for human-labeled tasks in the labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelCountersForWorkteam { ///

    The total number of data objects labeled by a human worker.

    - #[serde(rename = "HumanLabeled")] - #[serde(default)] pub human_labeled: i32, ///

    The total number of data objects that need to be labeled by a human worker.

    - #[serde(rename = "PendingHuman")] - #[serde(default)] pub pending_human: i32, ///

    The total number of tasks in the labeling job.

    - #[serde(rename = "Total")] - #[serde(default)] pub total: i32, } impl std::fmt::Debug for LabelCountersForWorkteam { @@ -31558,7 +28867,7 @@ impl std::convert::From<&str> for ListLabelingJobsForWorkteamSortByOptions { impl std::str::FromStr for ListLabelingJobsForWorkteamSortByOptions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListLabelingJobsForWorkteamSortByOptions::from(s)) } } @@ -31575,79 +28884,40 @@ impl AsRef for ListLabelingJobsForWorkteamSortByOptions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListLabelingJobsForWorkteamSortByOptions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about a labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobSummary { ///

    The name of the labeling job.

    - #[serde(rename = "LabelingJobName")] - #[serde(default)] pub labeling_job_name: std::option::Option, ///

    The Amazon Resource Name (ARN) assigned to the labeling job when it was /// created.

    - #[serde(rename = "LabelingJobArn")] - #[serde(default)] pub labeling_job_arn: std::option::Option, ///

    The date and time that the job was created (timestamp).

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The date and time that the job was last modified (timestamp).

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The current status of the labeling job.

    - #[serde(rename = "LabelingJobStatus")] - #[serde(default)] pub labeling_job_status: std::option::Option, ///

    Counts showing the progress of the labeling job.

    - #[serde(rename = "LabelCounters")] - #[serde(default)] pub label_counters: std::option::Option, ///

    The Amazon Resource Name (ARN) of the work team assigned to the job.

    - #[serde(rename = "WorkteamArn")] - #[serde(default)] pub workteam_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of a Lambda function. The function is run before each /// data object is sent to a worker.

    - #[serde(rename = "PreHumanTaskLambdaArn")] - #[serde(default)] pub pre_human_task_lambda_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Lambda function used to consolidate the /// annotations from individual workers into a label for a data object. For more /// information, see Annotation /// Consolidation.

    - #[serde(rename = "AnnotationConsolidationLambdaArn")] - #[serde(default)] pub annotation_consolidation_lambda_arn: std::option::Option, ///

    If the LabelingJobStatus field is Failed, this field /// contains a description of the error.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The location of the output produced by the labeling job.

    - #[serde(rename = "LabelingJobOutput")] - #[serde(default)] pub labeling_job_output: std::option::Option, ///

    Input configuration for the labeling job.

    - #[serde(rename = "InputConfig")] - #[serde(default)] pub input_config: std::option::Option, } impl std::fmt::Debug for LabelingJobSummary { @@ -31869,15 +29139,11 @@ impl LabelingJobSummary { ///

    Input configuration information for a labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobInputConfig { ///

    The location of the input data.

    - #[serde(rename = "DataSource")] - #[serde(default)] pub data_source: std::option::Option, ///

    Attributes of the data specified by the customer.

    - #[serde(rename = "DataAttributes")] - #[serde(default)] pub data_attributes: std::option::Option, } impl std::fmt::Debug for LabelingJobInputConfig { @@ -31941,13 +29207,11 @@ impl LabelingJobInputConfig { ///

    Attributes of the data specified by the customer. Use these to describe the data to be /// labeled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobDataAttributes { ///

    Declares that your content is free of personally identifiable information or adult /// content. Amazon SageMaker may restrict the Amazon Mechanical Turk workers that can view your task /// based on this information.

    - #[serde(rename = "ContentClassifiers")] - #[serde(default)] pub content_classifiers: std::option::Option>, } impl std::fmt::Debug for LabelingJobDataAttributes { @@ -32028,7 +29292,7 @@ impl std::convert::From<&str> for ContentClassifier { impl std::str::FromStr for ContentClassifier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContentClassifier::from(s)) } } @@ -32048,15 +29312,6 @@ impl AsRef for ContentClassifier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContentClassifier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides information about the location of input data.

    ///

    You must specify at least one of the following: S3DataSource or SnsDataSource.

    @@ -32067,15 +29322,11 @@ impl<'de> serde::Deserialize<'de> for ContentClassifier { /// manifest file for both streaming and one-time labeling jobs. /// Adding an S3DataSource is optional if you use SnsDataSource to create a streaming labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobDataSource { ///

    The Amazon S3 location of the input data objects.

    - #[serde(rename = "S3DataSource")] - #[serde(default)] pub s3_data_source: std::option::Option, ///

    An Amazon SNS data source used for streaming labeling jobs. To learn more, see Send Data to a Streaming Labeling Job.

    - #[serde(rename = "SnsDataSource")] - #[serde(default)] pub sns_data_source: std::option::Option, } impl std::fmt::Debug for LabelingJobDataSource { @@ -32138,12 +29389,10 @@ impl LabelingJobDataSource { ///

    An Amazon SNS data source used for streaming labeling jobs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobSnsDataSource { ///

    The Amazon SNS input topic Amazon Resource Name (ARN). Specify the ARN of the input topic /// you will use to send new data objects to a streaming labeling job.

    - #[serde(rename = "SnsTopicArn")] - #[serde(default)] pub sns_topic_arn: std::option::Option, } impl std::fmt::Debug for LabelingJobSnsDataSource { @@ -32192,7 +29441,7 @@ impl LabelingJobSnsDataSource { ///

    The Amazon S3 location of the input data objects.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobS3DataSource { ///

    The Amazon S3 location of the manifest file that describes the input data objects.

    ///

    The input manifest file referenced in ManifestS3Uri must contain one of @@ -32213,8 +29462,6 @@ pub struct LabelingJobS3DataSource { /// ///

    If you are a new user of Ground Truth, it is recommended you review Use an Input Manifest File in the Amazon SageMaker Developer Guide to learn how to /// create an input manifest file.

    - #[serde(rename = "ManifestS3Uri")] - #[serde(default)] pub manifest_s3_uri: std::option::Option, } impl std::fmt::Debug for LabelingJobS3DataSource { @@ -32280,16 +29527,12 @@ impl LabelingJobS3DataSource { ///

    Specifies the location of the output produced by the labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobOutput { ///

    The Amazon S3 bucket location of the manifest file for labeled data.

    - #[serde(rename = "OutputDatasetS3Uri")] - #[serde(default)] pub output_dataset_s3_uri: std::option::Option, ///

    The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model trained as part of /// automated data labeling.

    - #[serde(rename = "FinalActiveLearningModelArn")] - #[serde(default)] pub final_active_learning_model_arn: std::option::Option, } impl std::fmt::Debug for LabelingJobOutput { @@ -32359,27 +29602,17 @@ impl LabelingJobOutput { ///

    Provides a breakdown of the number of objects labeled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelCounters { ///

    The total number of objects labeled.

    - #[serde(rename = "TotalLabeled")] - #[serde(default)] pub total_labeled: i32, ///

    The total number of objects labeled by a human worker.

    - #[serde(rename = "HumanLabeled")] - #[serde(default)] pub human_labeled: i32, ///

    The total number of objects labeled by automated data labeling.

    - #[serde(rename = "MachineLabeled")] - #[serde(default)] pub machine_labeled: i32, ///

    The total number of objects that could not be labeled due to an error.

    - #[serde(rename = "FailedNonRetryableError")] - #[serde(default)] pub failed_non_retryable_error: i32, ///

    The total number of objects not yet labeled.

    - #[serde(rename = "Unlabeled")] - #[serde(default)] pub unlabeled: i32, } impl std::fmt::Debug for LabelCounters { @@ -32509,7 +29742,7 @@ impl std::convert::From<&str> for LabelingJobStatus { impl std::str::FromStr for LabelingJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LabelingJobStatus::from(s)) } } @@ -32531,54 +29764,25 @@ impl AsRef for LabelingJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LabelingJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A version of a SageMaker Image. A version represents an existing container /// image.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImageVersion { ///

    When the version was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When a create or delete operation fails, the reason for the failure.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The Amazon Resource Name (ARN) of the image the version is based on.

    - #[serde(rename = "ImageArn")] - #[serde(default)] pub image_arn: std::option::Option, ///

    The ARN of the version.

    - #[serde(rename = "ImageVersionArn")] - #[serde(default)] pub image_version_arn: std::option::Option, ///

    The status of the version.

    - #[serde(rename = "ImageVersionStatus")] - #[serde(default)] pub image_version_status: std::option::Option, ///

    When the version was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, } impl std::fmt::Debug for ImageVersion { @@ -32742,7 +29946,7 @@ impl std::convert::From<&str> for ImageVersionStatus { impl std::str::FromStr for ImageVersionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageVersionStatus::from(s)) } } @@ -32763,15 +29967,6 @@ impl AsRef for ImageVersionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageVersionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -32801,7 +29996,7 @@ impl std::convert::From<&str> for ImageVersionSortOrder { impl std::str::FromStr for ImageVersionSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageVersionSortOrder::from(s)) } } @@ -32819,15 +30014,6 @@ impl AsRef for ImageVersionSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageVersionSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -32859,7 +30045,7 @@ impl std::convert::From<&str> for ImageVersionSortBy { impl std::str::FromStr for ImageVersionSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageVersionSortBy::from(s)) } } @@ -32878,59 +30064,28 @@ impl AsRef for ImageVersionSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageVersionSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A SageMaker image. A SageMaker image represents a set of container images that are derived from /// a common base container image. Each of these container images is represented by a SageMaker /// ImageVersion.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Image { ///

    When the image was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The description of the image.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The name of the image as displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    When a create, update, or delete operation fails, the reason for the failure.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The Amazon Resource Name (ARN) of the image.

    - #[serde(rename = "ImageArn")] - #[serde(default)] pub image_arn: std::option::Option, ///

    The name of the image.

    - #[serde(rename = "ImageName")] - #[serde(default)] pub image_name: std::option::Option, ///

    The status of the image.

    - #[serde(rename = "ImageStatus")] - #[serde(default)] pub image_status: std::option::Option, ///

    When the image was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for Image { @@ -33107,7 +30262,7 @@ impl std::convert::From<&str> for ImageStatus { impl std::str::FromStr for ImageStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageStatus::from(s)) } } @@ -33130,15 +30285,6 @@ impl AsRef for ImageStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -33168,7 +30314,7 @@ impl std::convert::From<&str> for ImageSortOrder { impl std::str::FromStr for ImageSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageSortOrder::from(s)) } } @@ -33186,15 +30332,6 @@ impl AsRef for ImageSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -33226,7 +30363,7 @@ impl std::convert::From<&str> for ImageSortBy { impl std::str::FromStr for ImageSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImageSortBy::from(s)) } } @@ -33245,35 +30382,20 @@ impl AsRef for ImageSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImageSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about a hyperparameter tuning job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTuningJobSummary { ///

    The name of the tuning job.

    - #[serde(rename = "HyperParameterTuningJobName")] - #[serde(default)] pub hyper_parameter_tuning_job_name: std::option::Option, ///

    The /// Amazon /// Resource Name (ARN) of the tuning job.

    - #[serde(rename = "HyperParameterTuningJobArn")] - #[serde(default)] pub hyper_parameter_tuning_job_arn: std::option::Option, ///

    The status of the /// tuning /// job.

    - #[serde(rename = "HyperParameterTuningJobStatus")] - #[serde(default)] pub hyper_parameter_tuning_job_status: std::option::Option, ///

    Specifies the search strategy hyperparameter tuning uses to choose which @@ -33281,46 +30403,23 @@ pub struct HyperParameterTuningJobSummary { /// use /// for each iteration. Currently, the only valid value is /// Bayesian.

    - #[serde(rename = "Strategy")] - #[serde(default)] pub strategy: std::option::Option, ///

    The date and time that the tuning job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The date and time that the tuning job ended.

    - #[serde(rename = "HyperParameterTuningEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub hyper_parameter_tuning_end_time: std::option::Option, ///

    The date and time that the tuning job was /// modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The TrainingJobStatusCounters object that specifies the numbers of /// training jobs, categorized by status, that this tuning job launched.

    - #[serde(rename = "TrainingJobStatusCounters")] - #[serde(default)] pub training_job_status_counters: std::option::Option, ///

    The ObjectiveStatusCounters object that specifies the numbers of /// training jobs, categorized by objective metric status, that this tuning job /// launched.

    - #[serde(rename = "ObjectiveStatusCounters")] - #[serde(default)] pub objective_status_counters: std::option::Option, ///

    The ResourceLimits object that specifies the maximum number of /// training jobs and parallel training jobs allowed for this tuning job.

    - #[serde(rename = "ResourceLimits")] - #[serde(default)] pub resource_limits: std::option::Option, } impl std::fmt::Debug for HyperParameterTuningJobSummary { @@ -33555,21 +30654,17 @@ impl HyperParameterTuningJobSummary { /// jobs and parallel training jobs that a hyperparameter tuning job can /// launch.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceLimits { ///

    The /// maximum /// number of training jobs that a hyperparameter tuning job can /// launch.

    - #[serde(rename = "MaxNumberOfTrainingJobs")] - #[serde(default)] pub max_number_of_training_jobs: i32, ///

    The /// maximum /// number of concurrent training jobs that a hyperparameter tuning job can /// launch.

    - #[serde(rename = "MaxParallelTrainingJobs")] - #[serde(default)] pub max_parallel_training_jobs: i32, } impl std::fmt::Debug for ResourceLimits { @@ -33643,23 +30738,17 @@ impl ResourceLimits { /// objective metric for the training job has been evaluated by the /// tuning job and used in the hyperparameter tuning process.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ObjectiveStatusCounters { ///

    The number of training jobs whose final objective metric was evaluated by the /// hyperparameter tuning job and used in the hyperparameter tuning process.

    - #[serde(rename = "Succeeded")] - #[serde(default)] pub succeeded: i32, ///

    The number of training jobs that are in progress and pending evaluation of their final /// objective metric.

    - #[serde(rename = "Pending")] - #[serde(default)] pub pending: i32, ///

    The number of training jobs whose final objective metric was not evaluated and used in /// the hyperparameter tuning process. This typically occurs when the training job failed or /// did not emit an objective metric.

    - #[serde(rename = "Failed")] - #[serde(default)] pub failed: i32, } impl std::fmt::Debug for ObjectiveStatusCounters { @@ -33733,33 +30822,23 @@ impl ObjectiveStatusCounters { ///

    The numbers of training jobs launched by a hyperparameter tuning job, categorized by /// status.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingJobStatusCounters { ///

    The number of completed training jobs launched by the hyperparameter tuning /// job.

    - #[serde(rename = "Completed")] - #[serde(default)] pub completed: i32, ///

    The number of in-progress training jobs launched by a hyperparameter tuning /// job.

    - #[serde(rename = "InProgress")] - #[serde(default)] pub in_progress: i32, ///

    The number of training jobs that failed, but can be retried. A failed training job can /// be retried only if it failed because an internal service error occurred.

    - #[serde(rename = "RetryableError")] - #[serde(default)] pub retryable_error: i32, ///

    The number of training jobs that failed and can't be retried. A failed training job /// can't be retried if it failed because a client error occurred.

    - #[serde(rename = "NonRetryableError")] - #[serde(default)] pub non_retryable_error: i32, ///

    The number of training jobs launched by a hyperparameter tuning job that were /// manually /// stopped.

    - #[serde(rename = "Stopped")] - #[serde(default)] pub stopped: i32, } impl std::fmt::Debug for TrainingJobStatusCounters { @@ -33890,7 +30969,7 @@ impl std::convert::From<&str> for HyperParameterTuningJobStrategyType { impl std::str::FromStr for HyperParameterTuningJobStrategyType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterTuningJobStrategyType::from(s)) } } @@ -33908,15 +30987,6 @@ impl AsRef for HyperParameterTuningJobStrategyType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterTuningJobStrategyType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -33952,7 +31022,7 @@ impl std::convert::From<&str> for HyperParameterTuningJobStatus { impl std::str::FromStr for HyperParameterTuningJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterTuningJobStatus::from(s)) } } @@ -33973,15 +31043,6 @@ impl AsRef for HyperParameterTuningJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterTuningJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -34013,7 +31074,7 @@ impl std::convert::From<&str> for HyperParameterTuningJobSortByOptions { impl std::str::FromStr for HyperParameterTuningJobSortByOptions { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterTuningJobSortByOptions::from(s)) } } @@ -34032,34 +31093,16 @@ impl AsRef for HyperParameterTuningJobSortByOptions { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterTuningJobSortByOptions { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Container for human task user interface information.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanTaskUiSummary { ///

    The name of the human task user interface.

    - #[serde(rename = "HumanTaskUiName")] - #[serde(default)] pub human_task_ui_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the human task user interface.

    - #[serde(rename = "HumanTaskUiArn")] - #[serde(default)] pub human_task_ui_arn: std::option::Option, ///

    A timestamp when SageMaker created the human task user interface.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for HumanTaskUiSummary { @@ -34137,30 +31180,17 @@ impl HumanTaskUiSummary { ///

    Contains summary information about the flow definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FlowDefinitionSummary { ///

    The name of the flow definition.

    - #[serde(rename = "FlowDefinitionName")] - #[serde(default)] pub flow_definition_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the flow definition.

    - #[serde(rename = "FlowDefinitionArn")] - #[serde(default)] pub flow_definition_arn: std::option::Option, ///

    The status of the flow definition. Valid values:

    - #[serde(rename = "FlowDefinitionStatus")] - #[serde(default)] pub flow_definition_status: std::option::Option, ///

    The timestamp when SageMaker created the flow definition.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The reason why the flow definition creation failed. A failure reason is returned only when the flow definition status is Failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, } impl std::fmt::Debug for FlowDefinitionSummary { @@ -34298,7 +31328,7 @@ impl std::convert::From<&str> for FlowDefinitionStatus { impl std::str::FromStr for FlowDefinitionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FlowDefinitionStatus::from(s)) } } @@ -34318,47 +31348,25 @@ impl AsRef for FlowDefinitionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FlowDefinitionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The name, Arn, CreationTime, FeatureGroup values, /// LastUpdatedTime and EnableOnlineStorage status of a /// FeatureGroup.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FeatureGroupSummary { ///

    The name of FeatureGroup.

    - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, ///

    Unique identifier for the FeatureGroup.

    - #[serde(rename = "FeatureGroupArn")] - #[serde(default)] pub feature_group_arn: std::option::Option, ///

    A timestamp indicating the time of creation time of the FeatureGroup.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The status of a FeatureGroup. The status can be any of the following: /// Creating, Created, CreateFail, /// Deleting or DetailFail.

    - #[serde(rename = "FeatureGroupStatus")] - #[serde(default)] pub feature_group_status: std::option::Option, ///

    Notifies you if replicating data into the OfflineStore has failed. Returns /// either: Active or Blocked.

    - #[serde(rename = "OfflineStoreStatus")] - #[serde(default)] pub offline_store_status: std::option::Option, } impl std::fmt::Debug for FeatureGroupSummary { @@ -34499,7 +31507,7 @@ impl std::convert::From<&str> for FeatureGroupSortBy { impl std::str::FromStr for FeatureGroupSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FeatureGroupSortBy::from(s)) } } @@ -34519,15 +31527,6 @@ impl AsRef for FeatureGroupSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FeatureGroupSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -34557,7 +31556,7 @@ impl std::convert::From<&str> for FeatureGroupSortOrder { impl std::str::FromStr for FeatureGroupSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FeatureGroupSortOrder::from(s)) } } @@ -34575,52 +31574,25 @@ impl AsRef for FeatureGroupSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FeatureGroupSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of the properties of an experiment. To get the complete set of properties, call /// the DescribeExperiment API and provide the /// ExperimentName.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ExperimentSummary { ///

    The Amazon Resource Name (ARN) of the experiment.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] pub experiment_arn: std::option::Option, ///

    The name of the experiment.

    - #[serde(rename = "ExperimentName")] - #[serde(default)] pub experiment_name: std::option::Option, ///

    The name of the experiment as displayed. If DisplayName isn't specified, /// ExperimentName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The source of the experiment.

    - #[serde(rename = "ExperimentSource")] - #[serde(default)] pub experiment_source: std::option::Option, ///

    When the experiment was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the experiment was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for ExperimentSummary { @@ -34767,7 +31739,7 @@ impl std::convert::From<&str> for SortExperimentsBy { impl std::str::FromStr for SortExperimentsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortExperimentsBy::from(s)) } } @@ -34785,41 +31757,18 @@ impl AsRef for SortExperimentsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortExperimentsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information for an endpoint.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndpointSummary { ///

    The name of the endpoint.

    - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the endpoint.

    - #[serde(rename = "EndpointArn")] - #[serde(default)] pub endpoint_arn: std::option::Option, ///

    A timestamp that shows when the endpoint was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    A timestamp that shows when the endpoint was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the endpoint.

    ///
      @@ -34871,8 +31820,6 @@ pub struct EndpointSummary { /// ///
    ///

    To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals filter.

    - #[serde(rename = "EndpointStatus")] - #[serde(default)] pub endpoint_status: std::option::Option, } impl std::fmt::Debug for EndpointSummary { @@ -35054,7 +32001,7 @@ impl std::convert::From<&str> for EndpointSortKey { impl std::str::FromStr for EndpointSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndpointSortKey::from(s)) } } @@ -35073,34 +32020,16 @@ impl AsRef for EndpointSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndpointSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information for an endpoint configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EndpointConfigSummary { ///

    The name of the endpoint configuration.

    - #[serde(rename = "EndpointConfigName")] - #[serde(default)] pub endpoint_config_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the endpoint configuration.

    - #[serde(rename = "EndpointConfigArn")] - #[serde(default)] pub endpoint_config_arn: std::option::Option, ///

    A timestamp that shows when the endpoint configuration was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for EndpointConfigSummary { @@ -35204,7 +32133,7 @@ impl std::convert::From<&str> for EndpointConfigSortKey { impl std::str::FromStr for EndpointConfigSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EndpointConfigSortKey::from(s)) } } @@ -35222,57 +32151,26 @@ impl AsRef for EndpointConfigSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EndpointConfigSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary of edge packaging job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgePackagingJobSummary { ///

    The Amazon Resource Name (ARN) of the edge packaging job.

    - #[serde(rename = "EdgePackagingJobArn")] - #[serde(default)] pub edge_packaging_job_arn: std::option::Option, ///

    The name of the edge packaging job.

    - #[serde(rename = "EdgePackagingJobName")] - #[serde(default)] pub edge_packaging_job_name: std::option::Option, ///

    The status of the edge packaging job.

    - #[serde(rename = "EdgePackagingJobStatus")] - #[serde(default)] pub edge_packaging_job_status: std::option::Option, ///

    The name of the SageMaker Neo compilation job.

    - #[serde(rename = "CompilationJobName")] - #[serde(default)] pub compilation_job_name: std::option::Option, ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The version of the model.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] pub model_version: std::option::Option, ///

    The timestamp of when the job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The timestamp of when the edge packaging job was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for EdgePackagingJobSummary { @@ -35460,7 +32358,7 @@ impl std::convert::From<&str> for EdgePackagingJobStatus { impl std::str::FromStr for EdgePackagingJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EdgePackagingJobStatus::from(s)) } } @@ -35482,15 +32380,6 @@ impl AsRef for EdgePackagingJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EdgePackagingJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -35526,7 +32415,7 @@ impl std::convert::From<&str> for ListEdgePackagingJobsSortBy { impl std::str::FromStr for ListEdgePackagingJobsSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListEdgePackagingJobsSortBy::from(s)) } } @@ -35547,53 +32436,24 @@ impl AsRef for ListEdgePackagingJobsSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListEdgePackagingJobsSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The domain's details.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DomainDetails { ///

    The domain's Amazon Resource Name (ARN).

    - #[serde(rename = "DomainArn")] - #[serde(default)] pub domain_arn: std::option::Option, ///

    The domain ID.

    - #[serde(rename = "DomainId")] - #[serde(default)] pub domain_id: std::option::Option, ///

    The domain name.

    - #[serde(rename = "DomainName")] - #[serde(default)] pub domain_name: std::option::Option, ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The domain's URL.

    - #[serde(rename = "Url")] - #[serde(default)] pub url: std::option::Option, } impl std::fmt::Debug for DomainDetails { @@ -35755,7 +32615,7 @@ impl std::convert::From<&str> for DomainStatus { impl std::str::FromStr for DomainStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DomainStatus::from(s)) } } @@ -35778,57 +32638,26 @@ impl AsRef for DomainStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DomainStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary of the device.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeviceSummary { ///

    The unique identifier of the device.

    - #[serde(rename = "DeviceName")] - #[serde(default)] pub device_name: std::option::Option, ///

    Amazon Resource Name (ARN) of the device.

    - #[serde(rename = "DeviceArn")] - #[serde(default)] pub device_arn: std::option::Option, ///

    A description of the device.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The name of the fleet the device belongs to.

    - #[serde(rename = "DeviceFleetName")] - #[serde(default)] pub device_fleet_name: std::option::Option, ///

    The AWS Internet of Things (IoT) object thing name associated with the device..

    - #[serde(rename = "IotThingName")] - #[serde(default)] pub iot_thing_name: std::option::Option, ///

    The timestamp of the last registration or de-reregistration.

    - #[serde(rename = "RegistrationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub registration_time: std::option::Option, ///

    The last heartbeat received from the device.

    - #[serde(rename = "LatestHeartbeat")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_heartbeat: std::option::Option, ///

    Models on the device.

    - #[serde(rename = "Models")] - #[serde(default)] pub models: std::option::Option>, } impl std::fmt::Debug for DeviceSummary { @@ -35973,15 +32802,11 @@ impl DeviceSummary { ///

    Summary of model on edge device.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgeModelSummary { ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The version model.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] pub model_version: std::option::Option, } impl std::fmt::Debug for EdgeModelSummary { @@ -36041,29 +32866,15 @@ impl EdgeModelSummary { ///

    Summary of the device fleet.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeviceFleetSummary { ///

    Amazon Resource Name (ARN) of the device fleet.

    - #[serde(rename = "DeviceFleetArn")] - #[serde(default)] pub device_fleet_arn: std::option::Option, ///

    Name of the device fleet.

    - #[serde(rename = "DeviceFleetName")] - #[serde(default)] pub device_fleet_name: std::option::Option, ///

    Timestamp of when the device fleet was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Timestamp of when the device fleet was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for DeviceFleetSummary { @@ -36184,7 +32995,7 @@ impl std::convert::From<&str> for ListDeviceFleetsSortBy { impl std::str::FromStr for ListDeviceFleetsSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListDeviceFleetsSortBy::from(s)) } } @@ -36203,50 +33014,23 @@ impl AsRef for ListDeviceFleetsSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListDeviceFleetsSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Lists a summary of the properties of a context. A context provides a logical grouping /// of other entities.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContextSummary { ///

    The Amazon Resource Name (ARN) of the context.

    - #[serde(rename = "ContextArn")] - #[serde(default)] pub context_arn: std::option::Option, ///

    The name of the context.

    - #[serde(rename = "ContextName")] - #[serde(default)] pub context_name: std::option::Option, ///

    The source of the context.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The type of the context.

    - #[serde(rename = "ContextType")] - #[serde(default)] pub context_type: std::option::Option, ///

    When the context was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the context was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for ContextSummary { @@ -36360,19 +33144,13 @@ impl ContextSummary { ///

    A structure describing the source of a context.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContextSource { ///

    The URI of the source.

    - #[serde(rename = "SourceUri")] - #[serde(default)] pub source_uri: std::option::Option, ///

    The type of the source.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, ///

    The ID of the source.

    - #[serde(rename = "SourceId")] - #[serde(default)] pub source_id: std::option::Option, } impl std::fmt::Debug for ContextSource { @@ -36467,7 +33245,7 @@ impl std::convert::From<&str> for SortContextsBy { impl std::str::FromStr for SortContextsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortContextsBy::from(s)) } } @@ -36485,80 +33263,37 @@ impl AsRef for SortContextsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortContextsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of a model compilation job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CompilationJobSummary { ///

    The name of the model compilation job that you want a summary for.

    - #[serde(rename = "CompilationJobName")] - #[serde(default)] pub compilation_job_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the model compilation job.

    - #[serde(rename = "CompilationJobArn")] - #[serde(default)] pub compilation_job_arn: std::option::Option, ///

    The time when the model compilation job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The time when the model compilation job started.

    - #[serde(rename = "CompilationStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub compilation_start_time: std::option::Option, ///

    The time when the model compilation job completed.

    - #[serde(rename = "CompilationEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub compilation_end_time: std::option::Option, ///

    The type of device that the model will run on after the compilation job has /// completed.

    - #[serde(rename = "CompilationTargetDevice")] - #[serde(default)] pub compilation_target_device: std::option::Option, ///

    The type of OS that the model will run on after the compilation job has /// completed.

    - #[serde(rename = "CompilationTargetPlatformOs")] - #[serde(default)] pub compilation_target_platform_os: std::option::Option, ///

    The type of architecture that the model will run on after the compilation job has /// completed.

    - #[serde(rename = "CompilationTargetPlatformArch")] - #[serde(default)] pub compilation_target_platform_arch: std::option::Option, ///

    The type of accelerator that the model will run on after the compilation job has /// completed.

    - #[serde(rename = "CompilationTargetPlatformAccelerator")] - #[serde(default)] pub compilation_target_platform_accelerator: std::option::Option, ///

    The time when the model compilation job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The status of the model compilation job.

    - #[serde(rename = "CompilationJobStatus")] - #[serde(default)] pub compilation_job_status: std::option::Option, } impl std::fmt::Debug for CompilationJobSummary { @@ -36816,7 +33551,7 @@ impl std::convert::From<&str> for CompilationJobStatus { impl std::str::FromStr for CompilationJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CompilationJobStatus::from(s)) } } @@ -36838,15 +33573,6 @@ impl AsRef for CompilationJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CompilationJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -36878,7 +33604,7 @@ impl std::convert::From<&str> for TargetPlatformAccelerator { impl std::str::FromStr for TargetPlatformAccelerator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetPlatformAccelerator::from(s)) } } @@ -36897,15 +33623,6 @@ impl AsRef for TargetPlatformAccelerator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetPlatformAccelerator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -36941,7 +33658,7 @@ impl std::convert::From<&str> for TargetPlatformArch { impl std::str::FromStr for TargetPlatformArch { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetPlatformArch::from(s)) } } @@ -36962,15 +33679,6 @@ impl AsRef for TargetPlatformArch { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetPlatformArch { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -37000,7 +33708,7 @@ impl std::convert::From<&str> for TargetPlatformOs { impl std::str::FromStr for TargetPlatformOs { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetPlatformOs::from(s)) } } @@ -37018,15 +33726,6 @@ impl AsRef for TargetPlatformOs { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetPlatformOs { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -37110,7 +33809,7 @@ impl std::convert::From<&str> for TargetDevice { impl std::str::FromStr for TargetDevice { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TargetDevice::from(s)) } } @@ -37155,15 +33854,6 @@ impl AsRef for TargetDevice { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TargetDevice { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -37195,7 +33885,7 @@ impl std::convert::From<&str> for ListCompilationJobsSortBy { impl std::str::FromStr for ListCompilationJobsSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ListCompilationJobsSortBy::from(s)) } } @@ -37214,47 +33904,22 @@ impl AsRef for ListCompilationJobsSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ListCompilationJobsSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies summary information about a Git repository.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CodeRepositorySummary { ///

    The name of the Git repository.

    - #[serde(rename = "CodeRepositoryName")] - #[serde(default)] pub code_repository_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Git repository.

    - #[serde(rename = "CodeRepositoryArn")] - #[serde(default)] pub code_repository_arn: std::option::Option, ///

    The date and time that the Git repository was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The date and time that the Git repository was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    Configuration details for the Git repository, including the URL where it is located /// and the ARN of the AWS Secrets Manager secret that contains the credentials used to /// access the repository.

    - #[serde(rename = "GitConfig")] - #[serde(default)] pub git_config: std::option::Option, } impl std::fmt::Debug for CodeRepositorySummary { @@ -37364,15 +34029,11 @@ impl CodeRepositorySummary { ///

    Specifies configuration details for a Git repository in your AWS account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GitConfig { ///

    The URL where the Git repository is located.

    - #[serde(rename = "RepositoryUrl")] - #[serde(default)] pub repository_url: std::option::Option, ///

    The default branch for the Git repository.

    - #[serde(rename = "Branch")] - #[serde(default)] pub branch: std::option::Option, ///

    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the /// credentials used to access the git repository. The secret must have a staging label of @@ -37381,8 +34042,6 @@ pub struct GitConfig { /// {"username": UserName, "password": /// Password} ///

    - #[serde(rename = "SecretArn")] - #[serde(default)] pub secret_arn: std::option::Option, } impl std::fmt::Debug for GitConfig { @@ -37486,7 +34145,7 @@ impl std::convert::From<&str> for CodeRepositorySortOrder { impl std::str::FromStr for CodeRepositorySortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CodeRepositorySortOrder::from(s)) } } @@ -37504,15 +34163,6 @@ impl AsRef for CodeRepositorySortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CodeRepositorySortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -37544,7 +34194,7 @@ impl std::convert::From<&str> for CodeRepositorySortBy { impl std::str::FromStr for CodeRepositorySortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CodeRepositorySortBy::from(s)) } } @@ -37563,80 +34213,40 @@ impl AsRef for CodeRepositorySortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CodeRepositorySortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An Autopilot job returns recommendations, or candidates. Each candidate has futher details /// about the steps involved and the status.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLCandidate { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlCandidate { ///

    The name of the candidate.

    - #[serde(rename = "CandidateName")] - #[serde(default)] pub candidate_name: std::option::Option, ///

    The best candidate result from an AutoML training job.

    - #[serde(rename = "FinalAutoMLJobObjectiveMetric")] - #[serde(default)] pub final_auto_ml_job_objective_metric: - std::option::Option, + std::option::Option, ///

    The objective's status.

    - #[serde(rename = "ObjectiveStatus")] - #[serde(default)] pub objective_status: std::option::Option, ///

    Information about the candidate's steps.

    - #[serde(rename = "CandidateSteps")] - #[serde(default)] - pub candidate_steps: std::option::Option>, + pub candidate_steps: std::option::Option>, ///

    The candidate's status.

    - #[serde(rename = "CandidateStatus")] - #[serde(default)] pub candidate_status: std::option::Option, ///

    Information about the inference container definitions.

    - #[serde(rename = "InferenceContainers")] - #[serde(default)] pub inference_containers: - std::option::Option>, + std::option::Option>, ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The end time.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    The last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The failure reason.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The AutoML candidate's properties.

    - #[serde(rename = "CandidateProperties")] - #[serde(default)] pub candidate_properties: std::option::Option, } -impl std::fmt::Debug for AutoMLCandidate { +impl std::fmt::Debug for AutoMlCandidate { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLCandidate"); + let mut formatter = f.debug_struct("AutoMlCandidate"); formatter.field("candidate_name", &self.candidate_name); formatter.field( "final_auto_ml_job_objective_metric", @@ -37654,21 +34264,21 @@ impl std::fmt::Debug for AutoMLCandidate { formatter.finish() } } -/// See [`AutoMLCandidate`](crate::model::AutoMLCandidate) +/// See [`AutoMlCandidate`](crate::model::AutoMlCandidate) pub mod auto_ml_candidate { - /// A builder for [`AutoMLCandidate`](crate::model::AutoMLCandidate) + /// A builder for [`AutoMlCandidate`](crate::model::AutoMlCandidate) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) candidate_name: std::option::Option, pub(crate) final_auto_ml_job_objective_metric: - std::option::Option, + std::option::Option, pub(crate) objective_status: std::option::Option, pub(crate) candidate_steps: - std::option::Option>, + std::option::Option>, pub(crate) candidate_status: std::option::Option, pub(crate) inference_containers: - std::option::Option>, + std::option::Option>, pub(crate) creation_time: std::option::Option, pub(crate) end_time: std::option::Option, pub(crate) last_modified_time: std::option::Option, @@ -37691,14 +34301,14 @@ pub mod auto_ml_candidate { ///

    The best candidate result from an AutoML training job.

    pub fn final_auto_ml_job_objective_metric( mut self, - input: crate::model::FinalAutoMLJobObjectiveMetric, + input: crate::model::FinalAutoMlJobObjectiveMetric, ) -> Self { self.final_auto_ml_job_objective_metric = Some(input); self } pub fn set_final_auto_ml_job_objective_metric( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.final_auto_ml_job_objective_metric = input; self @@ -37717,7 +34327,7 @@ pub mod auto_ml_candidate { } pub fn candidate_steps( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.candidate_steps.unwrap_or_default(); v.push(input.into()); @@ -37726,7 +34336,7 @@ pub mod auto_ml_candidate { } pub fn set_candidate_steps( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.candidate_steps = input; self @@ -37745,7 +34355,7 @@ pub mod auto_ml_candidate { } pub fn inference_containers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.inference_containers.unwrap_or_default(); v.push(input.into()); @@ -37754,7 +34364,7 @@ pub mod auto_ml_candidate { } pub fn set_inference_containers( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.inference_containers = input; self @@ -37816,9 +34426,9 @@ pub mod auto_ml_candidate { self.candidate_properties = input; self } - /// Consumes the builder and constructs a [`AutoMLCandidate`](crate::model::AutoMLCandidate) - pub fn build(self) -> crate::model::AutoMLCandidate { - crate::model::AutoMLCandidate { + /// Consumes the builder and constructs a [`AutoMlCandidate`](crate::model::AutoMlCandidate) + pub fn build(self) -> crate::model::AutoMlCandidate { + crate::model::AutoMlCandidate { candidate_name: self.candidate_name, final_auto_ml_job_objective_metric: self.final_auto_ml_job_objective_metric, objective_status: self.objective_status, @@ -37834,8 +34444,8 @@ pub mod auto_ml_candidate { } } } -impl AutoMLCandidate { - /// Creates a new builder-style object to manufacture [`AutoMLCandidate`](crate::model::AutoMLCandidate) +impl AutoMlCandidate { + /// Creates a new builder-style object to manufacture [`AutoMlCandidate`](crate::model::AutoMlCandidate) pub fn builder() -> crate::model::auto_ml_candidate::Builder { crate::model::auto_ml_candidate::Builder::default() } @@ -37843,11 +34453,9 @@ impl AutoMLCandidate { ///

    The properties of an AutoML candidate job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CandidateProperties { ///

    The Amazon S3 prefix to the artifacts generated for an AutoML candidate.

    - #[serde(rename = "CandidateArtifactLocations")] - #[serde(default)] pub candidate_artifact_locations: std::option::Option, } impl std::fmt::Debug for CandidateProperties { @@ -37902,12 +34510,10 @@ impl CandidateProperties { ///

    The location of artifacts for an AutoML candidate job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CandidateArtifactLocations { ///

    The Amazon S3 prefix to the explainability artifacts generated for the AutoML /// candidate.

    - #[serde(rename = "Explainability")] - #[serde(default)] pub explainability: std::option::Option, } impl std::fmt::Debug for CandidateArtifactLocations { @@ -37957,34 +34563,28 @@ impl CandidateArtifactLocations { ///

    A list of container definitions that describe the different containers that make up an /// AutoML candidate. For more information, see .

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLContainerDefinition { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlContainerDefinition { ///

    The ECR path of the container. For more information, see .

    - #[serde(rename = "Image")] - #[serde(default)] pub image: std::option::Option, ///

    The location of the model artifacts. For more information, see .

    - #[serde(rename = "ModelDataUrl")] - #[serde(default)] pub model_data_url: std::option::Option, ///

    The environment variables to set in the container. For more information, see .

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, } -impl std::fmt::Debug for AutoMLContainerDefinition { +impl std::fmt::Debug for AutoMlContainerDefinition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLContainerDefinition"); + let mut formatter = f.debug_struct("AutoMlContainerDefinition"); formatter.field("image", &self.image); formatter.field("model_data_url", &self.model_data_url); formatter.field("environment", &self.environment); formatter.finish() } } -/// See [`AutoMLContainerDefinition`](crate::model::AutoMLContainerDefinition) +/// See [`AutoMlContainerDefinition`](crate::model::AutoMlContainerDefinition) pub mod auto_ml_container_definition { - /// A builder for [`AutoMLContainerDefinition`](crate::model::AutoMLContainerDefinition) + /// A builder for [`AutoMlContainerDefinition`](crate::model::AutoMlContainerDefinition) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -38035,9 +34635,9 @@ pub mod auto_ml_container_definition { self.environment = input; self } - /// Consumes the builder and constructs a [`AutoMLContainerDefinition`](crate::model::AutoMLContainerDefinition) - pub fn build(self) -> crate::model::AutoMLContainerDefinition { - crate::model::AutoMLContainerDefinition { + /// Consumes the builder and constructs a [`AutoMlContainerDefinition`](crate::model::AutoMlContainerDefinition) + pub fn build(self) -> crate::model::AutoMlContainerDefinition { + crate::model::AutoMlContainerDefinition { image: self.image, model_data_url: self.model_data_url, environment: self.environment, @@ -38045,8 +34645,8 @@ pub mod auto_ml_container_definition { } } } -impl AutoMLContainerDefinition { - /// Creates a new builder-style object to manufacture [`AutoMLContainerDefinition`](crate::model::AutoMLContainerDefinition) +impl AutoMlContainerDefinition { + /// Creates a new builder-style object to manufacture [`AutoMlContainerDefinition`](crate::model::AutoMlContainerDefinition) pub fn builder() -> crate::model::auto_ml_container_definition::Builder { crate::model::auto_ml_container_definition::Builder::default() } @@ -38086,7 +34686,7 @@ impl std::convert::From<&str> for CandidateStatus { impl std::str::FromStr for CandidateStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CandidateStatus::from(s)) } } @@ -38107,45 +34707,30 @@ impl AsRef for CandidateStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CandidateStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the steps for a candidate and what step it is working on.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLCandidateStep { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlCandidateStep { ///

    Whether the candidate is at the transform, training, or processing step.

    - #[serde(rename = "CandidateStepType")] - #[serde(default)] pub candidate_step_type: std::option::Option, ///

    The ARN for the candidate's step.

    - #[serde(rename = "CandidateStepArn")] - #[serde(default)] pub candidate_step_arn: std::option::Option, ///

    The name for the candidate's step.

    - #[serde(rename = "CandidateStepName")] - #[serde(default)] pub candidate_step_name: std::option::Option, } -impl std::fmt::Debug for AutoMLCandidateStep { +impl std::fmt::Debug for AutoMlCandidateStep { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLCandidateStep"); + let mut formatter = f.debug_struct("AutoMlCandidateStep"); formatter.field("candidate_step_type", &self.candidate_step_type); formatter.field("candidate_step_arn", &self.candidate_step_arn); formatter.field("candidate_step_name", &self.candidate_step_name); formatter.finish() } } -/// See [`AutoMLCandidateStep`](crate::model::AutoMLCandidateStep) +/// See [`AutoMlCandidateStep`](crate::model::AutoMlCandidateStep) pub mod auto_ml_candidate_step { - /// A builder for [`AutoMLCandidateStep`](crate::model::AutoMLCandidateStep) + /// A builder for [`AutoMlCandidateStep`](crate::model::AutoMlCandidateStep) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -38190,9 +34775,9 @@ pub mod auto_ml_candidate_step { self.candidate_step_name = input; self } - /// Consumes the builder and constructs a [`AutoMLCandidateStep`](crate::model::AutoMLCandidateStep) - pub fn build(self) -> crate::model::AutoMLCandidateStep { - crate::model::AutoMLCandidateStep { + /// Consumes the builder and constructs a [`AutoMlCandidateStep`](crate::model::AutoMlCandidateStep) + pub fn build(self) -> crate::model::AutoMlCandidateStep { + crate::model::AutoMlCandidateStep { candidate_step_type: self.candidate_step_type, candidate_step_arn: self.candidate_step_arn, candidate_step_name: self.candidate_step_name, @@ -38200,8 +34785,8 @@ pub mod auto_ml_candidate_step { } } } -impl AutoMLCandidateStep { - /// Creates a new builder-style object to manufacture [`AutoMLCandidateStep`](crate::model::AutoMLCandidateStep) +impl AutoMlCandidateStep { + /// Creates a new builder-style object to manufacture [`AutoMlCandidateStep`](crate::model::AutoMlCandidateStep) pub fn builder() -> crate::model::auto_ml_candidate_step::Builder { crate::model::auto_ml_candidate_step::Builder::default() } @@ -38237,7 +34822,7 @@ impl std::convert::From<&str> for CandidateStepType { impl std::str::FromStr for CandidateStepType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CandidateStepType::from(s)) } } @@ -38256,46 +34841,31 @@ impl AsRef for CandidateStepType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CandidateStepType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The best candidate result from an AutoML training job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct FinalAutoMLJobObjectiveMetric { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct FinalAutoMlJobObjectiveMetric { ///

    The type of metric with the best result.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The name of the metric with the best result. For a description of the possible objective /// metrics, see AutoMLJobObjective$MetricName.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    The value of the metric with the best result.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: f32, } -impl std::fmt::Debug for FinalAutoMLJobObjectiveMetric { +impl std::fmt::Debug for FinalAutoMlJobObjectiveMetric { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FinalAutoMLJobObjectiveMetric"); + let mut formatter = f.debug_struct("FinalAutoMlJobObjectiveMetric"); formatter.field("r#type", &self.r#type); formatter.field("metric_name", &self.metric_name); formatter.field("value", &self.value); formatter.finish() } } -/// See [`FinalAutoMLJobObjectiveMetric`](crate::model::FinalAutoMLJobObjectiveMetric) +/// See [`FinalAutoMlJobObjectiveMetric`](crate::model::FinalAutoMlJobObjectiveMetric) pub mod final_auto_ml_job_objective_metric { - /// A builder for [`FinalAutoMLJobObjectiveMetric`](crate::model::FinalAutoMLJobObjectiveMetric) + /// A builder for [`FinalAutoMlJobObjectiveMetric`](crate::model::FinalAutoMlJobObjectiveMetric) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -38338,9 +34908,9 @@ pub mod final_auto_ml_job_objective_metric { self.value = input; self } - /// Consumes the builder and constructs a [`FinalAutoMLJobObjectiveMetric`](crate::model::FinalAutoMLJobObjectiveMetric) - pub fn build(self) -> crate::model::FinalAutoMLJobObjectiveMetric { - crate::model::FinalAutoMLJobObjectiveMetric { + /// Consumes the builder and constructs a [`FinalAutoMlJobObjectiveMetric`](crate::model::FinalAutoMlJobObjectiveMetric) + pub fn build(self) -> crate::model::FinalAutoMlJobObjectiveMetric { + crate::model::FinalAutoMlJobObjectiveMetric { r#type: self.r#type, metric_name: self.metric_name, value: self.value.unwrap_or_default(), @@ -38348,8 +34918,8 @@ pub mod final_auto_ml_job_objective_metric { } } } -impl FinalAutoMLJobObjectiveMetric { - /// Creates a new builder-style object to manufacture [`FinalAutoMLJobObjectiveMetric`](crate::model::FinalAutoMLJobObjectiveMetric) +impl FinalAutoMlJobObjectiveMetric { + /// Creates a new builder-style object to manufacture [`FinalAutoMlJobObjectiveMetric`](crate::model::FinalAutoMlJobObjectiveMetric) pub fn builder() -> crate::model::final_auto_ml_job_objective_metric::Builder { crate::model::final_auto_ml_job_objective_metric::Builder::default() } @@ -38389,7 +34959,7 @@ impl std::convert::From<&str> for AutoMlMetricEnum { impl std::str::FromStr for AutoMlMetricEnum { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlMetricEnum::from(s)) } } @@ -38410,15 +34980,6 @@ impl AsRef for AutoMlMetricEnum { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlMetricEnum { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -38448,7 +35009,7 @@ impl std::convert::From<&str> for AutoMlJobObjectiveType { impl std::str::FromStr for AutoMlJobObjectiveType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlJobObjectiveType::from(s)) } } @@ -38466,15 +35027,6 @@ impl AsRef for AutoMlJobObjectiveType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlJobObjectiveType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -38506,7 +35058,7 @@ impl std::convert::From<&str> for CandidateSortBy { impl std::str::FromStr for CandidateSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CandidateSortBy::from(s)) } } @@ -38525,15 +35077,6 @@ impl AsRef for CandidateSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CandidateSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -38563,7 +35106,7 @@ impl std::convert::From<&str> for AutoMlSortOrder { impl std::str::FromStr for AutoMlSortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlSortOrder::from(s)) } } @@ -38581,70 +35124,34 @@ impl AsRef for AutoMlSortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlSortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides a summary about an AutoML job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLJobSummary { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlJobSummary { ///

    The name of the AutoML you are requesting.

    - #[serde(rename = "AutoMLJobName")] - #[serde(default)] pub auto_ml_job_name: std::option::Option, ///

    The ARN of the AutoML job.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] pub auto_ml_job_arn: std::option::Option, ///

    The status of the AutoML job.

    - #[serde(rename = "AutoMLJobStatus")] - #[serde(default)] pub auto_ml_job_status: std::option::Option, ///

    The secondary status of the AutoML job.

    - #[serde(rename = "AutoMLJobSecondaryStatus")] - #[serde(default)] pub auto_ml_job_secondary_status: std::option::Option, ///

    When the AutoML job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The end time of an AutoML job.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    When the AutoML job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The failure reason of an AutoML job.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The list of reasons for partial failures within an AutoML job.

    - #[serde(rename = "PartialFailureReasons")] - #[serde(default)] pub partial_failure_reasons: - std::option::Option>, + std::option::Option>, } -impl std::fmt::Debug for AutoMLJobSummary { +impl std::fmt::Debug for AutoMlJobSummary { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLJobSummary"); + let mut formatter = f.debug_struct("AutoMlJobSummary"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); formatter.field("auto_ml_job_status", &self.auto_ml_job_status); @@ -38660,9 +35167,9 @@ impl std::fmt::Debug for AutoMLJobSummary { formatter.finish() } } -/// See [`AutoMLJobSummary`](crate::model::AutoMLJobSummary) +/// See [`AutoMlJobSummary`](crate::model::AutoMlJobSummary) pub mod auto_ml_job_summary { - /// A builder for [`AutoMLJobSummary`](crate::model::AutoMLJobSummary) + /// A builder for [`AutoMlJobSummary`](crate::model::AutoMlJobSummary) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -38676,7 +35183,7 @@ pub mod auto_ml_job_summary { pub(crate) last_modified_time: std::option::Option, pub(crate) failure_reason: std::option::Option, pub(crate) partial_failure_reasons: - std::option::Option>, + std::option::Option>, } impl Builder { ///

    The name of the AutoML you are requesting.

    @@ -38777,7 +35284,7 @@ pub mod auto_ml_job_summary { } pub fn partial_failure_reasons( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.partial_failure_reasons.unwrap_or_default(); v.push(input.into()); @@ -38786,14 +35293,14 @@ pub mod auto_ml_job_summary { } pub fn set_partial_failure_reasons( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.partial_failure_reasons = input; self } - /// Consumes the builder and constructs a [`AutoMLJobSummary`](crate::model::AutoMLJobSummary) - pub fn build(self) -> crate::model::AutoMLJobSummary { - crate::model::AutoMLJobSummary { + /// Consumes the builder and constructs a [`AutoMlJobSummary`](crate::model::AutoMlJobSummary) + pub fn build(self) -> crate::model::AutoMlJobSummary { + crate::model::AutoMlJobSummary { auto_ml_job_name: self.auto_ml_job_name, auto_ml_job_arn: self.auto_ml_job_arn, auto_ml_job_status: self.auto_ml_job_status, @@ -38807,8 +35314,8 @@ pub mod auto_ml_job_summary { } } } -impl AutoMLJobSummary { - /// Creates a new builder-style object to manufacture [`AutoMLJobSummary`](crate::model::AutoMLJobSummary) +impl AutoMlJobSummary { + /// Creates a new builder-style object to manufacture [`AutoMlJobSummary`](crate::model::AutoMlJobSummary) pub fn builder() -> crate::model::auto_ml_job_summary::Builder { crate::model::auto_ml_job_summary::Builder::default() } @@ -38816,23 +35323,21 @@ impl AutoMLJobSummary { ///

    The reason for a partial failure of an AutoML job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLPartialFailureReason { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlPartialFailureReason { ///

    The message containing the reason for a partial failure of an AutoML job.

    - #[serde(rename = "PartialFailureMessage")] - #[serde(default)] pub partial_failure_message: std::option::Option, } -impl std::fmt::Debug for AutoMLPartialFailureReason { +impl std::fmt::Debug for AutoMlPartialFailureReason { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLPartialFailureReason"); + let mut formatter = f.debug_struct("AutoMlPartialFailureReason"); formatter.field("partial_failure_message", &self.partial_failure_message); formatter.finish() } } -/// See [`AutoMLPartialFailureReason`](crate::model::AutoMLPartialFailureReason) +/// See [`AutoMlPartialFailureReason`](crate::model::AutoMlPartialFailureReason) pub mod auto_ml_partial_failure_reason { - /// A builder for [`AutoMLPartialFailureReason`](crate::model::AutoMLPartialFailureReason) + /// A builder for [`AutoMlPartialFailureReason`](crate::model::AutoMlPartialFailureReason) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -38851,16 +35356,16 @@ pub mod auto_ml_partial_failure_reason { self.partial_failure_message = input; self } - /// Consumes the builder and constructs a [`AutoMLPartialFailureReason`](crate::model::AutoMLPartialFailureReason) - pub fn build(self) -> crate::model::AutoMLPartialFailureReason { - crate::model::AutoMLPartialFailureReason { + /// Consumes the builder and constructs a [`AutoMlPartialFailureReason`](crate::model::AutoMlPartialFailureReason) + pub fn build(self) -> crate::model::AutoMlPartialFailureReason { + crate::model::AutoMlPartialFailureReason { partial_failure_message: self.partial_failure_message, } } } } -impl AutoMLPartialFailureReason { - /// Creates a new builder-style object to manufacture [`AutoMLPartialFailureReason`](crate::model::AutoMLPartialFailureReason) +impl AutoMlPartialFailureReason { + /// Creates a new builder-style object to manufacture [`AutoMlPartialFailureReason`](crate::model::AutoMlPartialFailureReason) pub fn builder() -> crate::model::auto_ml_partial_failure_reason::Builder { crate::model::auto_ml_partial_failure_reason::Builder::default() } @@ -38924,7 +35429,7 @@ impl std::convert::From<&str> for AutoMlJobSecondaryStatus { impl std::str::FromStr for AutoMlJobSecondaryStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlJobSecondaryStatus::from(s)) } } @@ -38959,15 +35464,6 @@ impl AsRef for AutoMlJobSecondaryStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlJobSecondaryStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -39003,7 +35499,7 @@ impl std::convert::From<&str> for AutoMlJobStatus { impl std::str::FromStr for AutoMlJobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlJobStatus::from(s)) } } @@ -39024,15 +35520,6 @@ impl AsRef for AutoMlJobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlJobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -39064,7 +35551,7 @@ impl std::convert::From<&str> for AutoMlSortBy { impl std::str::FromStr for AutoMlSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMlSortBy::from(s)) } } @@ -39083,61 +35570,31 @@ impl AsRef for AutoMlSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMlSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Lists a summary of the properties of an association. An association is an entity that /// links other lineage or experiment entities. An example would be an association between a /// training job and a model.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationSummary { ///

    The ARN of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] pub source_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the destination.

    - #[serde(rename = "DestinationArn")] - #[serde(default)] pub destination_arn: std::option::Option, ///

    The source type.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, ///

    The destination type.

    - #[serde(rename = "DestinationType")] - #[serde(default)] pub destination_type: std::option::Option, ///

    The type of the association.

    - #[serde(rename = "AssociationType")] - #[serde(default)] pub association_type: std::option::Option, ///

    The name of the source.

    - #[serde(rename = "SourceName")] - #[serde(default)] pub source_name: std::option::Option, ///

    The name of the destination.

    - #[serde(rename = "DestinationName")] - #[serde(default)] pub destination_name: std::option::Option, ///

    When the association was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    Information about the user who created or modified an experiment, trial, or trial /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, } impl std::fmt::Debug for AssociationSummary { @@ -39327,7 +35784,7 @@ impl std::convert::From<&str> for AssociationEdgeType { impl std::str::FromStr for AssociationEdgeType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationEdgeType::from(s)) } } @@ -39347,15 +35804,6 @@ impl AsRef for AssociationEdgeType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationEdgeType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -39391,7 +35839,7 @@ impl std::convert::From<&str> for SortAssociationsBy { impl std::str::FromStr for SortAssociationsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortAssociationsBy::from(s)) } } @@ -39412,50 +35860,23 @@ impl AsRef for SortAssociationsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortAssociationsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Lists a summary of the properties of an artifact. An artifact represents a URI /// addressable object or data. Some examples are a dataset and a model.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArtifactSummary { ///

    The Amazon Resource Name (ARN) of the artifact.

    - #[serde(rename = "ArtifactArn")] - #[serde(default)] pub artifact_arn: std::option::Option, ///

    The name of the artifact.

    - #[serde(rename = "ArtifactName")] - #[serde(default)] pub artifact_name: std::option::Option, ///

    The source of the artifact.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The type of the artifact.

    - #[serde(rename = "ArtifactType")] - #[serde(default)] pub artifact_type: std::option::Option, ///

    When the artifact was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the artifact was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for ArtifactSummary { @@ -39575,15 +35996,11 @@ impl ArtifactSummary { ///

    A structure describing the source of an artifact.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArtifactSource { ///

    The URI of the source.

    - #[serde(rename = "SourceUri")] - #[serde(default)] pub source_uri: std::option::Option, ///

    A list of source types.

    - #[serde(rename = "SourceTypes")] - #[serde(default)] pub source_types: std::option::Option>, } impl std::fmt::Debug for ArtifactSource { @@ -39645,15 +36062,11 @@ impl ArtifactSource { ///

    The ID and ID type of an artifact source.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ArtifactSourceType { ///

    The type of ID.

    - #[serde(rename = "SourceIdType")] - #[serde(default)] pub source_id_type: std::option::Option, ///

    The ID.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for ArtifactSourceType { @@ -39743,7 +36156,7 @@ impl std::convert::From<&str> for ArtifactSourceIdType { impl std::str::FromStr for ArtifactSourceIdType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ArtifactSourceIdType::from(s)) } } @@ -39763,15 +36176,6 @@ impl AsRef for ArtifactSourceIdType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ArtifactSourceIdType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -39799,7 +36203,7 @@ impl std::convert::From<&str> for SortArtifactsBy { impl std::str::FromStr for SortArtifactsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortArtifactsBy::from(s)) } } @@ -39816,46 +36220,22 @@ impl AsRef for SortArtifactsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortArtifactsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about an Amazon SageMaker app.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AppDetails { ///

    The domain ID.

    - #[serde(rename = "DomainId")] - #[serde(default)] pub domain_id: std::option::Option, ///

    The user profile name.

    - #[serde(rename = "UserProfileName")] - #[serde(default)] pub user_profile_name: std::option::Option, ///

    The type of app.

    - #[serde(rename = "AppType")] - #[serde(default)] pub app_type: std::option::Option, ///

    The name of the app.

    - #[serde(rename = "AppName")] - #[serde(default)] pub app_name: std::option::Option, ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, } impl std::fmt::Debug for AppDetails { @@ -39998,7 +36378,7 @@ impl std::convert::From<&str> for AppStatus { impl std::str::FromStr for AppStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppStatus::from(s)) } } @@ -40019,15 +36399,6 @@ impl AsRef for AppStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -40059,7 +36430,7 @@ impl std::convert::From<&str> for AppType { impl std::str::FromStr for AppType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppType::from(s)) } } @@ -40078,15 +36449,6 @@ impl AsRef for AppType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -40114,7 +36476,7 @@ impl std::convert::From<&str> for AppSortKey { impl std::str::FromStr for AppSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppSortKey::from(s)) } } @@ -40131,45 +36493,20 @@ impl AsRef for AppSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The configuration for running a SageMaker image as a KernelGateway app.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AppImageConfigDetails { ///

    The Amazon Resource Name (ARN) of the AppImageConfig.

    - #[serde(rename = "AppImageConfigArn")] - #[serde(default)] pub app_image_config_arn: std::option::Option, ///

    The name of the AppImageConfig. Must be unique to your account.

    - #[serde(rename = "AppImageConfigName")] - #[serde(default)] pub app_image_config_name: std::option::Option, ///

    When the AppImageConfig was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the AppImageConfig was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The configuration for the file system and kernels in the SageMaker image.

    - #[serde(rename = "KernelGatewayImageConfig")] - #[serde(default)] pub kernel_gateway_image_config: std::option::Option, } impl std::fmt::Debug for AppImageConfigDetails { @@ -40312,7 +36649,7 @@ impl std::convert::From<&str> for AppImageConfigSortKey { impl std::str::FromStr for AppImageConfigSortKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppImageConfigSortKey::from(s)) } } @@ -40331,42 +36668,20 @@ impl AsRef for AppImageConfigSortKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppImageConfigSortKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides summary information about an algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmSummary { ///

    The name of the algorithm that is described by the summary.

    - #[serde(rename = "AlgorithmName")] - #[serde(default)] pub algorithm_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the algorithm.

    - #[serde(rename = "AlgorithmArn")] - #[serde(default)] pub algorithm_arn: std::option::Option, ///

    A brief description of the algorithm.

    - #[serde(rename = "AlgorithmDescription")] - #[serde(default)] pub algorithm_description: std::option::Option, ///

    A timestamp that shows when the algorithm was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The overall status of the algorithm.

    - #[serde(rename = "AlgorithmStatus")] - #[serde(default)] pub algorithm_status: std::option::Option, } impl std::fmt::Debug for AlgorithmSummary { @@ -40506,7 +36821,7 @@ impl std::convert::From<&str> for AlgorithmStatus { impl std::str::FromStr for AlgorithmStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AlgorithmStatus::from(s)) } } @@ -40527,15 +36842,6 @@ impl AsRef for AlgorithmStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AlgorithmStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -40565,7 +36871,7 @@ impl std::convert::From<&str> for AlgorithmSortBy { impl std::str::FromStr for AlgorithmSortBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AlgorithmSortBy::from(s)) } } @@ -40583,55 +36889,26 @@ impl AsRef for AlgorithmSortBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AlgorithmSortBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Lists the properties of an action. An action represents an action /// or activity. Some examples are a workflow step and a model deployment. Generally, an /// action involves at least one input artifact or output artifact.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ActionSummary { ///

    The Amazon Resource Name (ARN) of the action.

    - #[serde(rename = "ActionArn")] - #[serde(default)] pub action_arn: std::option::Option, ///

    The name of the action.

    - #[serde(rename = "ActionName")] - #[serde(default)] pub action_name: std::option::Option, ///

    The source of the action.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The type of the action.

    - #[serde(rename = "ActionType")] - #[serde(default)] pub action_type: std::option::Option, ///

    The status of the action.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    When the action was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    When the action was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for ActionSummary { @@ -40760,19 +37037,13 @@ impl ActionSummary { ///

    A structure describing the source of an action.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ActionSource { ///

    The URI of the source.

    - #[serde(rename = "SourceUri")] - #[serde(default)] pub source_uri: std::option::Option, ///

    The type of the source.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, ///

    The ID of the source.

    - #[serde(rename = "SourceId")] - #[serde(default)] pub source_id: std::option::Option, } impl std::fmt::Debug for ActionSource { @@ -40867,7 +37138,7 @@ impl std::convert::From<&str> for SortActionsBy { impl std::str::FromStr for SortActionsBy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortActionsBy::from(s)) } } @@ -40885,25 +37156,14 @@ impl AsRef for SortActionsBy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortActionsBy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A property name returned from a GetSearchSuggestions call that specifies /// a value in the PropertyNameQuery field.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PropertyNameSuggestion { ///

    A suggested property name based on what you entered in the search textbox in the Amazon SageMaker /// console.

    - #[serde(rename = "PropertyName")] - #[serde(default)] pub property_name: std::option::Option, } impl std::fmt::Debug for PropertyNameSuggestion { @@ -40953,12 +37213,10 @@ impl PropertyNameSuggestion { ///

    Specified in the GetSearchSuggestions request. /// Limits the property names that are included in the response.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuggestionQuery { ///

    Defines a property name hint. Only property /// names that begin with the specified hint are included in the response.

    - #[serde(rename = "PropertyNameQuery")] - #[serde(default)] pub property_name_query: std::option::Option, } impl std::fmt::Debug for SuggestionQuery { @@ -41008,11 +37266,9 @@ impl SuggestionQuery { ///

    Part of the SuggestionQuery type. Specifies a hint for retrieving property /// names that begin with the specified text.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PropertyNameQuery { ///

    Text that begins a property's name.

    - #[serde(rename = "PropertyNameHint")] - #[serde(default)] pub property_name_hint: std::option::Option, } impl std::fmt::Debug for PropertyNameQuery { @@ -41086,7 +37342,7 @@ impl std::convert::From<&str> for SagemakerServicecatalogStatus { impl std::str::FromStr for SagemakerServicecatalogStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SagemakerServicecatalogStatus::from(s)) } } @@ -41104,43 +37360,22 @@ impl AsRef for SagemakerServicecatalogStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SagemakerServicecatalogStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Status of edge devices with this model.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgeModelStat { ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The model version.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] pub model_version: std::option::Option, ///

    The number of devices that have this model version and do not have a heart beat.

    - #[serde(rename = "OfflineDeviceCount")] - #[serde(default)] pub offline_device_count: i64, ///

    The number of devices that have this model version and have a heart beat.

    - #[serde(rename = "ConnectedDeviceCount")] - #[serde(default)] pub connected_device_count: i64, ///

    The number of devices that have this model version, a heart beat, and are currently running.

    - #[serde(rename = "ActiveDeviceCount")] - #[serde(default)] pub active_device_count: i64, ///

    The number of devices with this model version and are producing sample data.

    - #[serde(rename = "SamplingDeviceCount")] - #[serde(default)] pub sampling_device_count: i64, } impl std::fmt::Debug for EdgeModelStat { @@ -41248,15 +37483,11 @@ impl EdgeModelStat { ///

    Edge Manager agent version.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AgentVersion { ///

    Version of the agent.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    The number of Edge Manager agents.

    - #[serde(rename = "AgentCount")] - #[serde(default)] pub agent_count: i64, } impl std::fmt::Debug for AgentVersion { @@ -41313,15 +37544,11 @@ impl AgentVersion { ///

    Status of devices.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeviceStats { ///

    The number of devices connected with a heartbeat.

    - #[serde(rename = "ConnectedDeviceCount")] - #[serde(default)] pub connected_device_count: i64, ///

    The number of registered devices.

    - #[serde(rename = "RegisteredDeviceCount")] - #[serde(default)] pub registered_device_count: i64, } impl std::fmt::Debug for DeviceStats { @@ -41404,7 +37631,7 @@ impl std::convert::From<&str> for ProfilingStatus { impl std::str::FromStr for ProfilingStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProfilingStatus::from(s)) } } @@ -41422,42 +37649,20 @@ impl AsRef for ProfilingStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProfilingStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the status of the rule evaluation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProfilerRuleEvaluationStatus { ///

    The name of the rule configuration.

    - #[serde(rename = "RuleConfigurationName")] - #[serde(default)] pub rule_configuration_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the rule evaluation job.

    - #[serde(rename = "RuleEvaluationJobArn")] - #[serde(default)] pub rule_evaluation_job_arn: std::option::Option, ///

    Status of the rule evaluation.

    - #[serde(rename = "RuleEvaluationStatus")] - #[serde(default)] pub rule_evaluation_status: std::option::Option, ///

    Details from the rule evaluation.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    Timestamp when the rule evaluation status was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for ProfilerRuleEvaluationStatus { @@ -41566,16 +37771,12 @@ impl ProfilerRuleEvaluationStatus { ///

    Configuration information for Debugger system monitoring, framework profiling, and /// storage paths.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProfilerConfig { ///

    Path to Amazon S3 storage location for system and framework metrics.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

    A time interval for capturing system metrics in milliseconds. Available values are /// 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

    - #[serde(rename = "ProfilingIntervalInMilliseconds")] - #[serde(default)] pub profiling_interval_in_milliseconds: std::option::Option, ///

    Configuration information for capturing framework metrics. Available key strings for different profiling options are /// DetailedProfilingConfig, PythonProfilingConfig, and DataLoaderProfilingConfig. @@ -41583,8 +37784,6 @@ pub struct ProfilerConfig { /// how to configure the ProfilingParameters parameter, /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job. ///

    - #[serde(rename = "ProfilingParameters")] - #[serde(default)] pub profiling_parameters: std::option::Option>, } @@ -41678,11 +37877,9 @@ impl ProfilerConfig { /// see What is AWS Service /// Catalog.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceCatalogProvisionedProductDetails { ///

    The ID of the provisioned product.

    - #[serde(rename = "ProvisionedProductId")] - #[serde(default)] pub provisioned_product_id: std::option::Option, ///

    The current status of the product.

    ///
      @@ -41707,8 +37904,6 @@ pub struct ServiceCatalogProvisionedProductDetails { /// PLAN_IN_PROGRESS - Transitive state. The plan operations were performed to provision a new product, but resources have not yet been created. After reviewing the list of resources to be created, execute the plan. Wait for an AVAILABLE status before performing operations.

      /// ///
    - #[serde(rename = "ProvisionedProductStatusMessage")] - #[serde(default)] pub provisioned_product_status_message: std::option::Option, } impl std::fmt::Debug for ServiceCatalogProvisionedProductDetails { @@ -41801,23 +37996,15 @@ impl ServiceCatalogProvisionedProductDetails { /// service catalog, see .What is AWS Service /// Catalog.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceCatalogProvisioningDetails { ///

    The ID of the product to provision.

    - #[serde(rename = "ProductId")] - #[serde(default)] pub product_id: std::option::Option, ///

    The ID of the provisioning artifact.

    - #[serde(rename = "ProvisioningArtifactId")] - #[serde(default)] pub provisioning_artifact_id: std::option::Option, ///

    The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path.

    - #[serde(rename = "PathId")] - #[serde(default)] pub path_id: std::option::Option, ///

    A list of key value pairs that you specify when you provision a product.

    - #[serde(rename = "ProvisioningParameters")] - #[serde(default)] pub provisioning_parameters: std::option::Option>, } @@ -41912,15 +38099,11 @@ impl ServiceCatalogProvisioningDetails { /// information, see What is AWS Service /// Catalog.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProvisioningParameter { ///

    The key that identifies a provisioning parameter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value of the provisioning parameter.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for ProvisioningParameter { @@ -42003,7 +38186,7 @@ impl std::convert::From<&str> for DirectInternetAccess { impl std::str::FromStr for DirectInternetAccess { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DirectInternetAccess::from(s)) } } @@ -42021,37 +38204,22 @@ impl AsRef for DirectInternetAccess { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DirectInternetAccess { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The networking configuration for the monitoring job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringNetworkConfig { ///

    Whether to encrypt all communications between the instances used for the monitoring /// jobs. Choose True to encrypt communications. Encryption provides greater /// security for distributed jobs, but the processing might take longer.

    - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] pub enable_inter_container_traffic_encryption: bool, ///

    Whether to allow inbound and outbound network calls to and from the containers used for /// the monitoring job.

    - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] pub enable_network_isolation: bool, ///

    Specifies a VPC that your training jobs and hosted models have access to. Control /// access to and from your training and model containers by configuring the VPC. For more /// information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs /// by Using an Amazon Virtual Private Cloud.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, } impl std::fmt::Debug for MonitoringNetworkConfig { @@ -42138,15 +38306,11 @@ impl MonitoringNetworkConfig { ///

    The input for the model quality monitoring job. Currently endponts are supported for /// input for model quality monitoring jobs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelQualityJobInput { ///

    Input object for the endpoint

    - #[serde(rename = "EndpointInput")] - #[serde(default)] pub endpoint_input: std::option::Option, ///

    The ground truth label provided for the model.

    - #[serde(rename = "GroundTruthS3Input")] - #[serde(default)] pub ground_truth_s3_input: std::option::Option, } impl std::fmt::Debug for ModelQualityJobInput { @@ -42213,11 +38377,9 @@ impl ModelQualityJobInput { ///

    The ground truth labels for the dataset used for the monitoring job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MonitoringGroundTruthS3Input { ///

    The address of the Amazon S3 location of the ground truth labels.

    - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } impl std::fmt::Debug for MonitoringGroundTruthS3Input { @@ -42262,39 +38424,25 @@ impl MonitoringGroundTruthS3Input { ///

    Container image configuration object for the monitoring job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelQualityAppSpecification { ///

    The address of the container image that the monitoring job runs.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

    Specifies the entrypoint for a container that the monitoring job runs.

    - #[serde(rename = "ContainerEntrypoint")] - #[serde(default)] pub container_entrypoint: std::option::Option>, ///

    An array of arguments for the container used to run the monitoring job.

    - #[serde(rename = "ContainerArguments")] - #[serde(default)] pub container_arguments: std::option::Option>, ///

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can /// base64 decode the payload and convert it into a flatted json so that the built-in container /// can use the converted data. Applicable only for the built-in (first party) /// containers.

    - #[serde(rename = "RecordPreprocessorSourceUri")] - #[serde(default)] pub record_preprocessor_source_uri: std::option::Option, ///

    An Amazon S3 URI to a script that is called after analysis has been performed. /// Applicable only for the built-in (first party) containers.

    - #[serde(rename = "PostAnalyticsProcessorSourceUri")] - #[serde(default)] pub post_analytics_processor_source_uri: std::option::Option, ///

    The machine learning problem type of the model that the monitoring job monitors.

    - #[serde(rename = "ProblemType")] - #[serde(default)] pub problem_type: std::option::Option, ///

    Sets the environment variables in the container that the monitoring job runs.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, } @@ -42485,7 +38633,7 @@ impl std::convert::From<&str> for MonitoringProblemType { impl std::str::FromStr for MonitoringProblemType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MonitoringProblemType::from(s)) } } @@ -42504,29 +38652,16 @@ impl AsRef for MonitoringProblemType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MonitoringProblemType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Configuration for monitoring constraints and monitoring statistics. These baseline /// resources are compared against the results of the current job from the series of jobs /// scheduled to collect data periodically.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelQualityBaselineConfig { ///

    The name of the job that performs baselining for the monitoring job.

    - #[serde(rename = "BaseliningJobName")] - #[serde(default)] pub baselining_job_name: std::option::Option, ///

    The constraints resource for a monitoring job.

    - #[serde(rename = "ConstraintsResource")] - #[serde(default)] pub constraints_resource: std::option::Option, } impl std::fmt::Debug for ModelQualityBaselineConfig { @@ -42593,11 +38728,9 @@ impl ModelQualityBaselineConfig { ///

    Inputs for the model explainability job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelExplainabilityJobInput { ///

    Input object for the endpoint

    - #[serde(rename = "EndpointInput")] - #[serde(default)] pub endpoint_input: std::option::Option, } impl std::fmt::Debug for ModelExplainabilityJobInput { @@ -42645,21 +38778,15 @@ impl ModelExplainabilityJobInput { ///

    Docker container image configuration object for the model explainability job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelExplainabilityAppSpecification { ///

    The container image to be run by the model explainability job.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

    JSON formatted S3 file that defines explainability parameters. For more information on /// this JSON configuration file, see Configure model /// explainability parameters.

    - #[serde(rename = "ConfigUri")] - #[serde(default)] pub config_uri: std::option::Option, ///

    Sets the environment variables in the Docker container.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, } @@ -42743,15 +38870,11 @@ impl ModelExplainabilityAppSpecification { ///

    The configuration for a baseline model explainability job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelExplainabilityBaselineConfig { ///

    The name of the baseline model explainability job.

    - #[serde(rename = "BaseliningJobName")] - #[serde(default)] pub baselining_job_name: std::option::Option, ///

    The constraints resource for a monitoring job.

    - #[serde(rename = "ConstraintsResource")] - #[serde(default)] pub constraints_resource: std::option::Option, } impl std::fmt::Debug for ModelExplainabilityBaselineConfig { @@ -42818,15 +38941,11 @@ impl ModelExplainabilityBaselineConfig { ///

    Inputs for the model bias job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelBiasJobInput { ///

    Input object for the endpoint

    - #[serde(rename = "EndpointInput")] - #[serde(default)] pub endpoint_input: std::option::Option, ///

    Location of ground truth labels to use in model bias job.

    - #[serde(rename = "GroundTruthS3Input")] - #[serde(default)] pub ground_truth_s3_input: std::option::Option, } impl std::fmt::Debug for ModelBiasJobInput { @@ -42893,21 +39012,15 @@ impl ModelBiasJobInput { ///

    Docker container image configuration object for the model bias job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelBiasAppSpecification { ///

    The container image to be run by the model bias job.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

    JSON formatted S3 file that defines bias parameters. For more information on this JSON /// configuration file, see Configure bias /// parameters.

    - #[serde(rename = "ConfigUri")] - #[serde(default)] pub config_uri: std::option::Option, ///

    Sets the environment variables in the Docker container.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, } @@ -42991,15 +39104,11 @@ impl ModelBiasAppSpecification { ///

    The configuration for a baseline model bias job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelBiasBaselineConfig { ///

    The name of the baseline model bias job.

    - #[serde(rename = "BaseliningJobName")] - #[serde(default)] pub baselining_job_name: std::option::Option, ///

    The constraints resource for a monitoring job.

    - #[serde(rename = "ConstraintsResource")] - #[serde(default)] pub constraints_resource: std::option::Option, } impl std::fmt::Debug for ModelBiasBaselineConfig { @@ -43066,7 +39175,7 @@ impl ModelBiasBaselineConfig { ///

    Specifies details about how containers in a multi-container endpoint are run.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InferenceExecutionConfig { ///

    How containers in a multi-container are run. The following values are valid.

    ///
      @@ -43080,8 +39189,6 @@ pub struct InferenceExecutionConfig { /// run.

      /// ///
    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, } impl std::fmt::Debug for InferenceExecutionConfig { @@ -43164,7 +39271,7 @@ impl std::convert::From<&str> for InferenceExecutionMode { impl std::str::FromStr for InferenceExecutionMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InferenceExecutionMode::from(s)) } } @@ -43182,19 +39289,10 @@ impl AsRef for InferenceExecutionMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InferenceExecutionMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the container, as part of model definition.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContainerDefinition { ///

    This parameter is ignored for models that contain only a /// PrimaryContainer.

    @@ -43209,8 +39307,6 @@ pub struct ContainerDefinition { /// of an inference pipeline, you must specify a value for the /// ContainerHostName parameter of every ContainerDefinition /// in that pipeline.

    - #[serde(rename = "ContainerHostname")] - #[serde(default)] pub container_hostname: std::option::Option, ///

    The path where inference code is stored. This can be either in Amazon EC2 Container Registry or in a /// Docker registry that is accessible from the same VPC that you configure for your @@ -43220,20 +39316,14 @@ pub struct ContainerDefinition { /// image path formats. For more information, see Using Your Own Algorithms with Amazon /// SageMaker ///

    - #[serde(rename = "Image")] - #[serde(default)] pub image: std::option::Option, ///

    Specifies whether the model container is in Amazon ECR or a private Docker registry /// accessible from your Amazon Virtual Private Cloud (VPC). For information about storing containers in a /// private Docker registry, see Use a /// Private Docker Registry for Real-Time Inference Containers ///

    - #[serde(rename = "ImageConfig")] - #[serde(default)] pub image_config: std::option::Option, ///

    Whether the container hosts a single model or multiple models.

    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, ///

    The S3 path where the model artifacts, which result from model training, are stored. /// This path must point to a single gzip compressed tar archive (.tar.gz suffix). The S3 @@ -43254,24 +39344,16 @@ pub struct ContainerDefinition { ///

    If you use a built-in algorithm to create a model, Amazon SageMaker requires that you provide /// a S3 path to the model artifacts in ModelDataUrl.

    /// - #[serde(rename = "ModelDataUrl")] - #[serde(default)] pub model_data_url: std::option::Option, ///

    The environment variables to set in the Docker container. Each key and value in the /// Environment string to string map can have length of up to 1024. We /// support up to 16 entries in the map.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, ///

    The name or Amazon Resource Name (ARN) of the model package to use to create the /// model.

    - #[serde(rename = "ModelPackageName")] - #[serde(default)] pub model_package_name: std::option::Option, ///

    Specifies additional configuration for multi-model endpoints.

    - #[serde(rename = "MultiModelConfig")] - #[serde(default)] pub multi_model_config: std::option::Option, } impl std::fmt::Debug for ContainerDefinition { @@ -43469,7 +39551,7 @@ impl ContainerDefinition { ///

    Specifies additional configuration for hosting multi-model endpoints.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MultiModelConfig { ///

    Whether to cache models for a multi-model endpoint. By default, multi-model endpoints /// cache models so that a model does not have to be loaded into memory each time it is @@ -43477,8 +39559,6 @@ pub struct MultiModelConfig { /// hosts a large number of models that are each invoked infrequently, the endpoint might /// perform better if you disable model caching. To disable model caching, set the value of /// this parameter to Disabled.

    - #[serde(rename = "ModelCacheSetting")] - #[serde(default)] pub model_cache_setting: std::option::Option, } impl std::fmt::Debug for MultiModelConfig { @@ -43557,7 +39637,7 @@ impl std::convert::From<&str> for ModelCacheSetting { impl std::str::FromStr for ModelCacheSetting { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ModelCacheSetting::from(s)) } } @@ -43575,15 +39655,6 @@ impl AsRef for ModelCacheSetting { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ModelCacheSetting { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -43613,7 +39684,7 @@ impl std::convert::From<&str> for ContainerMode { impl std::str::FromStr for ContainerMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContainerMode::from(s)) } } @@ -43631,20 +39702,11 @@ impl AsRef for ContainerMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContainerMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies whether the model container is in Amazon ECR or a private Docker registry /// accessible from your Amazon Virtual Private Cloud (VPC).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImageConfig { ///

    Set this to one of the following values:

    ///
      @@ -43658,16 +39720,12 @@ pub struct ImageConfig { /// your VPC.

      /// ///
    - #[serde(rename = "RepositoryAccessMode")] - #[serde(default)] pub repository_access_mode: std::option::Option, ///

    (Optional) Specifies an authentication configuration for the private docker registry /// where your model image is hosted. Specify a value for this property only if you /// specified Vpc as the value for the RepositoryAccessMode field, /// and the private Docker registry where the model image is hosted requires /// authentication.

    - #[serde(rename = "RepositoryAuthConfig")] - #[serde(default)] pub repository_auth_config: std::option::Option, } impl std::fmt::Debug for ImageConfig { @@ -43749,15 +39807,13 @@ impl ImageConfig { /// ImageConfig object that you passed to a call to CreateModel and the private Docker registry where the model image is /// hosted requires authentication.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RepositoryAuthConfig { ///

    The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to /// authenticate to the private Docker registry where your model image is hosted. For /// information about how to create an AWS Lambda function, see Create a Lambda function /// with the console in the AWS Lambda Developer /// Guide.

    - #[serde(rename = "RepositoryCredentialsProviderArn")] - #[serde(default)] pub repository_credentials_provider_arn: std::option::Option, } impl std::fmt::Debug for RepositoryAuthConfig { @@ -43841,7 +39897,7 @@ impl std::convert::From<&str> for RepositoryAccessMode { impl std::str::FromStr for RepositoryAccessMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RepositoryAccessMode::from(s)) } } @@ -43859,28 +39915,15 @@ impl AsRef for RepositoryAccessMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RepositoryAccessMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information required for human workers to complete a labeling task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanTaskConfig { ///

    The Amazon Resource Name (ARN) of the work team assigned to complete the tasks.

    - #[serde(rename = "WorkteamArn")] - #[serde(default)] pub workteam_arn: std::option::Option, ///

    Information about the user interface that workers use to complete the labeling /// task.

    - #[serde(rename = "UiConfig")] - #[serde(default)] pub ui_config: std::option::Option, ///

    The Amazon Resource Name (ARN) of a Lambda function that is run before a data object /// is sent to a human worker. Use this function to provide input to a custom labeling @@ -45356,25 +41399,15 @@ pub struct HumanTaskConfig { ///

    /// /// - #[serde(rename = "PreHumanTaskLambdaArn")] - #[serde(default)] pub pre_human_task_lambda_arn: std::option::Option, ///

    Keywords used to describe the task so that workers on Amazon Mechanical Turk can /// discover the task.

    - #[serde(rename = "TaskKeywords")] - #[serde(default)] pub task_keywords: std::option::Option>, ///

    A title for the task for your human workers.

    - #[serde(rename = "TaskTitle")] - #[serde(default)] pub task_title: std::option::Option, ///

    A description of the task for your human workers.

    - #[serde(rename = "TaskDescription")] - #[serde(default)] pub task_description: std::option::Option, ///

    The number of human workers that will label an object.

    - #[serde(rename = "NumberOfHumanWorkersPerDataObject")] - #[serde(default)] pub number_of_human_workers_per_data_object: std::option::Option, ///

    The amount of time that a worker has to complete a task.

    ///

    If you create a custom labeling job, the maximum value for this parameter is 8 hours @@ -45393,8 +41426,6 @@ pub struct HumanTaskConfig { /// contact AWS Support.

    /// /// - #[serde(rename = "TaskTimeLimitInSeconds")] - #[serde(default)] pub task_time_limit_in_seconds: std::option::Option, ///

    The length of time that a task remains available for labeling by human workers. The /// default and maximum values for this parameter depend on the type of workforce you @@ -45410,23 +41441,15 @@ pub struct HumanTaskConfig { /// change this limit, contact AWS Support.

    /// /// - #[serde(rename = "TaskAvailabilityLifetimeInSeconds")] - #[serde(default)] pub task_availability_lifetime_in_seconds: std::option::Option, ///

    Defines the maximum number of data objects that can be labeled by human workers at the /// same time. Also referred to as batch size. Each object may have more than one worker at one time. /// The default value is 1000 objects.

    - #[serde(rename = "MaxConcurrentTaskCount")] - #[serde(default)] pub max_concurrent_task_count: std::option::Option, ///

    Configures how labels are consolidated across human workers.

    - #[serde(rename = "AnnotationConsolidationConfig")] - #[serde(default)] pub annotation_consolidation_config: std::option::Option, ///

    The price that you pay for each task performed by an Amazon Mechanical Turk worker.

    - #[serde(rename = "PublicWorkforceTaskPrice")] - #[serde(default)] pub public_workforce_task_price: std::option::Option, } impl std::fmt::Debug for HumanTaskConfig { @@ -47455,12 +43478,10 @@ impl HumanTaskConfig { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PublicWorkforceTaskPrice { ///

    Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars.

    - #[serde(rename = "AmountInUsd")] - #[serde(default)] - pub amount_in_usd: std::option::Option, + pub amount_in_usd: std::option::Option, } impl std::fmt::Debug for PublicWorkforceTaskPrice { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -47475,15 +43496,15 @@ pub mod public_workforce_task_price { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) amount_in_usd: std::option::Option, + pub(crate) amount_in_usd: std::option::Option, } impl Builder { ///

    Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars.

    - pub fn amount_in_usd(mut self, input: crate::model::USD) -> Self { + pub fn amount_in_usd(mut self, input: crate::model::Usd) -> Self { self.amount_in_usd = Some(input); self } - pub fn set_amount_in_usd(mut self, input: std::option::Option) -> Self { + pub fn set_amount_in_usd(mut self, input: std::option::Option) -> Self { self.amount_in_usd = input; self } @@ -47504,33 +43525,27 @@ impl PublicWorkforceTaskPrice { ///

    Represents an amount of money in United States dollars.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct USD { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct Usd { ///

    The whole number of dollars in the amount.

    - #[serde(rename = "Dollars")] - #[serde(default)] pub dollars: i32, ///

    The fractional portion, in cents, of the amount.

    - #[serde(rename = "Cents")] - #[serde(default)] pub cents: i32, ///

    Fractions of a cent, in tenths.

    - #[serde(rename = "TenthFractionsOfACent")] - #[serde(default)] pub tenth_fractions_of_a_cent: i32, } -impl std::fmt::Debug for USD { +impl std::fmt::Debug for Usd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("USD"); + let mut formatter = f.debug_struct("Usd"); formatter.field("dollars", &self.dollars); formatter.field("cents", &self.cents); formatter.field("tenth_fractions_of_a_cent", &self.tenth_fractions_of_a_cent); formatter.finish() } } -/// See [`USD`](crate::model::USD) +/// See [`Usd`](crate::model::Usd) pub mod usd { - /// A builder for [`USD`](crate::model::USD) + /// A builder for [`Usd`](crate::model::Usd) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -47566,9 +43581,9 @@ pub mod usd { self.tenth_fractions_of_a_cent = input; self } - /// Consumes the builder and constructs a [`USD`](crate::model::USD) - pub fn build(self) -> crate::model::USD { - crate::model::USD { + /// Consumes the builder and constructs a [`Usd`](crate::model::Usd) + pub fn build(self) -> crate::model::Usd { + crate::model::Usd { dollars: self.dollars.unwrap_or_default(), cents: self.cents.unwrap_or_default(), tenth_fractions_of_a_cent: self.tenth_fractions_of_a_cent.unwrap_or_default(), @@ -47576,8 +43591,8 @@ pub mod usd { } } } -impl USD { - /// Creates a new builder-style object to manufacture [`USD`](crate::model::USD) +impl Usd { + /// Creates a new builder-style object to manufacture [`Usd`](crate::model::Usd) pub fn builder() -> crate::model::usd::Builder { crate::model::usd::Builder::default() } @@ -47586,7 +43601,7 @@ impl USD { ///

    Configures how labels are consolidated across human workers and processes output data. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AnnotationConsolidationConfig { ///

    The Amazon Resource Name (ARN) of a Lambda function implements the logic for annotation consolidation and to process output data.

    ///

    This parameter is required for all labeling jobs. For built-in task types, use one @@ -49059,8 +45074,6 @@ pub struct AnnotationConsolidationConfig { ///

    /// /// - #[serde(rename = "AnnotationConsolidationLambdaArn")] - #[serde(default)] pub annotation_consolidation_lambda_arn: std::option::Option, } impl std::fmt::Debug for AnnotationConsolidationConfig { @@ -50584,14 +46597,12 @@ impl AnnotationConsolidationConfig { ///

    Provided configuration information for the worker UI for a labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UiConfig { ///

    The Amazon S3 bucket location of the UI template, or worker task template. This is the /// template used to render the worker UI and tools for labeling job tasks. For more /// information about the contents of a UI template, see Creating Your Custom /// Labeling Task Template.

    - #[serde(rename = "UiTemplateS3Uri")] - #[serde(default)] pub ui_template_s3_uri: std::option::Option, ///

    The ARN of the worker task template used to render the worker UI and tools for /// labeling job tasks.

    @@ -50651,8 +46662,6 @@ pub struct UiConfig { ///

    /// /// - #[serde(rename = "HumanTaskUiArn")] - #[serde(default)] pub human_task_ui_arn: std::option::Option, } impl std::fmt::Debug for UiConfig { @@ -50777,7 +46786,7 @@ impl UiConfig { /// LabelingJobAlgorithmsConfig object must be supplied in order to use /// auto-labeling.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobAlgorithmsConfig { ///

    Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling. You /// must select one of the following ARNs:

    @@ -50815,18 +46824,12 @@ pub struct LabelingJobAlgorithmsConfig { ///

    /// /// - #[serde(rename = "LabelingJobAlgorithmSpecificationArn")] - #[serde(default)] pub labeling_job_algorithm_specification_arn: std::option::Option, ///

    At the end of an auto-label job Ground Truth sends the Amazon Resource Name (ARN) of the final /// model used for auto-labeling. You can use this model as the starting point for /// subsequent similar jobs by providing the ARN of the model here.

    - #[serde(rename = "InitialActiveLearningModelArn")] - #[serde(default)] pub initial_active_learning_model_arn: std::option::Option, ///

    Provides configuration information for a labeling job.

    - #[serde(rename = "LabelingJobResourceConfig")] - #[serde(default)] pub labeling_job_resource_config: std::option::Option, } impl std::fmt::Debug for LabelingJobAlgorithmsConfig { @@ -50963,7 +46966,7 @@ impl LabelingJobAlgorithmsConfig { ///

    Configure encryption on the storage volume attached to the ML compute instance used to /// run automated data labeling model training and inference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobResourceConfig { ///

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume /// attached to the ML compute instance(s) that run the training and inference jobs used for @@ -50989,8 +46992,6 @@ pub struct LabelingJobResourceConfig { ///

    /// /// - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, } impl std::fmt::Debug for LabelingJobResourceConfig { @@ -51066,15 +47067,11 @@ impl LabelingJobResourceConfig { ///

    Labeling jobs fail after 30 days with an appropriate client error message.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobStoppingConditions { ///

    The maximum number of objects that can be labeled by human workers.

    - #[serde(rename = "MaxHumanLabeledObjectCount")] - #[serde(default)] pub max_human_labeled_object_count: std::option::Option, ///

    The maximum number of input data objects that should be labeled.

    - #[serde(rename = "MaxPercentageOfInputDatasetLabeled")] - #[serde(default)] pub max_percentage_of_input_dataset_labeled: std::option::Option, } impl std::fmt::Debug for LabelingJobStoppingConditions { @@ -51144,11 +47141,9 @@ impl LabelingJobStoppingConditions { ///

    Output configuration information for a labeling job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LabelingJobOutputConfig { ///

    The Amazon S3 location to write output data.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

    The AWS Key Management Service ID of the key used to encrypt the output data, if any.

    ///

    If you provide your own KMS key ID, you must add the required permissions to your KMS @@ -51161,8 +47156,6 @@ pub struct LabelingJobOutputConfig { /// information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer /// Guide. ///

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    An Amazon Simple Notification Service (Amazon SNS) output topic ARN. Provide a SnsTopicArn if you want to /// do real time chaining to another streaming job and receive an Amazon SNS notifications each @@ -51172,8 +47165,6 @@ pub struct LabelingJobOutputConfig { /// topic you specify here.

    ///

    To learn more, see Receive Output Data from a Streaming Labeling /// Job.

    - #[serde(rename = "SnsTopicArn")] - #[serde(default)] pub sns_topic_arn: std::option::Option, } impl std::fmt::Debug for LabelingJobOutputConfig { @@ -51278,7 +47269,7 @@ impl LabelingJobOutputConfig { /// job.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTuningJobWarmStartConfig { ///

    An array of hyperparameter tuning jobs that are used as the starting point for the new /// hyperparameter tuning job. For more information about warm starting a hyperparameter @@ -51286,8 +47277,6 @@ pub struct HyperParameterTuningJobWarmStartConfig { /// Hyperparameter Tuning Job as a Starting Point.

    ///

    Hyperparameter tuning jobs created before October 1, 2018 cannot be used as parent /// jobs for warm start tuning jobs.

    - #[serde(rename = "ParentHyperParameterTuningJobs")] - #[serde(default)] pub parent_hyper_parameter_tuning_jobs: std::option::Option>, ///

    Specifies one of the following:

    @@ -51319,8 +47308,6 @@ pub struct HyperParameterTuningJobWarmStartConfig { /// be the same as for all parent jobs.

    /// /// - #[serde(rename = "WarmStartType")] - #[serde(default)] pub warm_start_type: std::option::Option, } impl std::fmt::Debug for HyperParameterTuningJobWarmStartConfig { @@ -51451,7 +47438,7 @@ impl std::convert::From<&str> for HyperParameterTuningJobWarmStartType { impl std::str::FromStr for HyperParameterTuningJobWarmStartType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterTuningJobWarmStartType::from(s)) } } @@ -51471,25 +47458,14 @@ impl AsRef for HyperParameterTuningJobWarmStartType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterTuningJobWarmStartType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A previously completed or stopped hyperparameter tuning job to be used as a starting /// point for a new hyperparameter tuning job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParentHyperParameterTuningJob { ///

    The name of the hyperparameter tuning job to be used as a starting point for a new /// hyperparameter tuning job.

    - #[serde(rename = "HyperParameterTuningJobName")] - #[serde(default)] pub hyper_parameter_tuning_job_name: std::option::Option, } impl std::fmt::Debug for ParentHyperParameterTuningJob { @@ -51545,11 +47521,9 @@ impl ParentHyperParameterTuningJob { ///

    Defines /// the training jobs launched by a hyperparameter tuning job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTrainingJobDefinition { ///

    The job definition name.

    - #[serde(rename = "DefinitionName")] - #[serde(default)] pub definition_name: std::option::Option, ///

    Defines the objective metric for a hyperparameter tuning job. /// Hyperparameter @@ -51557,8 +47531,6 @@ pub struct HyperParameterTrainingJobDefinition { /// returns the training job that results in either the highest or lowest value for this /// metric, depending on the value you specify for the Type /// parameter.

    - #[serde(rename = "TuningObjective")] - #[serde(default)] pub tuning_objective: std::option::Option, ///

    Specifies ranges of integer, continuous, and categorical hyperparameters that a /// hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs @@ -51570,36 +47542,26 @@ pub struct HyperParameterTrainingJobDefinition { /// can search over. Every possible value of a categorical parameter range counts /// against this limit.

    /// - #[serde(rename = "HyperParameterRanges")] - #[serde(default)] pub hyper_parameter_ranges: std::option::Option, ///

    Specifies the values of hyperparameters /// that /// do not change for the tuning job.

    - #[serde(rename = "StaticHyperParameters")] - #[serde(default)] pub static_hyper_parameters: std::option::Option>, ///

    The HyperParameterAlgorithmSpecification object that /// specifies /// the resource algorithm to use for the training jobs that the tuning /// job launches.

    - #[serde(rename = "AlgorithmSpecification")] - #[serde(default)] pub algorithm_specification: std::option::Option, ///

    The Amazon Resource Name (ARN) of the /// IAM /// role associated with the training jobs that the tuning job /// launches.

    - #[serde(rename = "RoleArn")] - #[serde(default)] pub role_arn: std::option::Option, ///

    An array of Channel objects that specify /// the /// input for the training jobs that the tuning job launches.

    - #[serde(rename = "InputDataConfig")] - #[serde(default)] pub input_data_config: std::option::Option>, ///

    The VpcConfig object that /// specifies @@ -51608,15 +47570,11 @@ pub struct HyperParameterTrainingJobDefinition { /// training /// container by configuring the VPC. For more information, see Protect Training Jobs /// by Using an Amazon Virtual Private Cloud.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, ///

    Specifies the path to the Amazon S3 bucket where you /// store /// model artifacts from the training jobs that the tuning job /// launches.

    - #[serde(rename = "OutputDataConfig")] - #[serde(default)] pub output_data_config: std::option::Option, ///

    The resources, /// including @@ -51631,45 +47589,31 @@ pub struct HyperParameterTrainingJobDefinition { /// to store the training data, choose File as the /// TrainingInputMode in the algorithm specification. For distributed /// training algorithms, specify an instance count greater than 1.

    - #[serde(rename = "ResourceConfig")] - #[serde(default)] pub resource_config: std::option::Option, ///

    Specifies a limit to how long a model hyperparameter training job can run. It also /// specifies how long a managed spot training job has to complete. When the job reaches the /// time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] pub stopping_condition: std::option::Option, ///

    Isolates the training container. No inbound or outbound network calls can be made, /// except for calls between peers within a training cluster for distributed training. If /// network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker /// downloads and uploads customer data and model artifacts through the specified VPC, but /// the training container does not have network access.

    - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] pub enable_network_isolation: bool, ///

    To encrypt all communications between ML compute instances in distributed training, /// choose True. Encryption provides greater security for distributed training, /// but training might take longer. How long it takes depends on the amount of communication /// between compute instances, especially if you use a deep learning algorithm in /// distributed training.

    - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] pub enable_inter_container_traffic_encryption: bool, ///

    A Boolean indicating whether managed spot training is enabled (True) or /// not (False).

    - #[serde(rename = "EnableManagedSpotTraining")] - #[serde(default)] pub enable_managed_spot_training: bool, ///

    Contains information about the output location for managed spot training checkpoint /// data.

    - #[serde(rename = "CheckpointConfig")] - #[serde(default)] pub checkpoint_config: std::option::Option, ///

    The number of times to retry the job when the job fails due to an /// InternalServerError.

    - #[serde(rename = "RetryStrategy")] - #[serde(default)] pub retry_strategy: std::option::Option, } impl std::fmt::Debug for HyperParameterTrainingJobDefinition { @@ -52019,7 +47963,7 @@ impl HyperParameterTrainingJobDefinition { /// training algorithm to use for training jobs that a hyperparameter /// tuning job launches and the metrics to monitor.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterAlgorithmSpecification { ///

    The registry path of the Docker image that contains the training algorithm. For /// information about Docker registry paths for built-in algorithms, see Algorithms @@ -52027,8 +47971,6 @@ pub struct HyperParameterAlgorithmSpecification { /// registry/repository[:tag] and registry/repository[@digest] /// image path formats. For more information, see Using Your Own Algorithms with Amazon /// SageMaker.

    - #[serde(rename = "TrainingImage")] - #[serde(default)] pub training_image: std::option::Option, ///

    The input mode that the algorithm supports: /// File @@ -52046,20 +47988,14 @@ pub struct HyperParameterAlgorithmSpecification { /// information.

    ///

    ///

    For more information about input modes, see Algorithms.

    - #[serde(rename = "TrainingInputMode")] - #[serde(default)] pub training_input_mode: std::option::Option, ///

    The name of the resource algorithm to use for the hyperparameter tuning job. If you /// specify a value for this parameter, do not specify a value for /// TrainingImage.

    - #[serde(rename = "AlgorithmName")] - #[serde(default)] pub algorithm_name: std::option::Option, ///

    An array of MetricDefinition objects that specify the /// metrics /// that the algorithm emits.

    - #[serde(rename = "MetricDefinitions")] - #[serde(default)] pub metric_definitions: std::option::Option>, } impl std::fmt::Debug for HyperParameterAlgorithmSpecification { @@ -52188,24 +48124,18 @@ impl HyperParameterAlgorithmSpecification { /// against this limit.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterRanges { ///

    The array of IntegerParameterRange objects that specify ranges of /// integer hyperparameters that a hyperparameter tuning job searches.

    - #[serde(rename = "IntegerParameterRanges")] - #[serde(default)] pub integer_parameter_ranges: std::option::Option>, ///

    The array of ContinuousParameterRange objects that specify ranges of /// continuous hyperparameters that a hyperparameter tuning job searches.

    - #[serde(rename = "ContinuousParameterRanges")] - #[serde(default)] pub continuous_parameter_ranges: std::option::Option>, ///

    The array of CategoricalParameterRange objects that specify ranges /// of categorical hyperparameters that a hyperparameter tuning job searches.

    - #[serde(rename = "CategoricalParameterRanges")] - #[serde(default)] pub categorical_parameter_ranges: std::option::Option>, } @@ -52305,17 +48235,13 @@ impl ParameterRanges { ///

    A list of categorical hyperparameters to tune.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CategoricalParameterRange { ///

    The name of the categorical hyperparameter to tune.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A list of the categories /// for /// the hyperparameter.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for CategoricalParameterRange { @@ -52376,23 +48302,17 @@ impl CategoricalParameterRange { ///

    A list of continuous hyperparameters to tune.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContinuousParameterRange { ///

    The name of the continuous hyperparameter to tune.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The minimum value for the hyperparameter. /// The /// tuning job uses floating-point values between this value and MaxValuefor /// tuning.

    - #[serde(rename = "MinValue")] - #[serde(default)] pub min_value: std::option::Option, ///

    The maximum value for the hyperparameter. The tuning job uses floating-point values /// between MinValue value and this value for tuning.

    - #[serde(rename = "MaxValue")] - #[serde(default)] pub max_value: std::option::Option, ///

    The scale that hyperparameter tuning uses to search the hyperparameter range. For /// information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

    @@ -52422,8 +48342,6 @@ pub struct ContinuousParameterRange { /// the range 0<=x<1.0.

    /// /// - #[serde(rename = "ScalingType")] - #[serde(default)] pub scaling_type: std::option::Option, } impl std::fmt::Debug for ContinuousParameterRange { @@ -52568,7 +48486,7 @@ impl std::convert::From<&str> for HyperParameterScalingType { impl std::str::FromStr for HyperParameterScalingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HyperParameterScalingType::from(s)) } } @@ -52588,37 +48506,22 @@ impl AsRef for HyperParameterScalingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HyperParameterScalingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    For a hyperparameter of the integer type, specifies the range /// that /// a hyperparameter tuning job searches.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IntegerParameterRange { ///

    The name of the hyperparameter to search.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The minimum /// value /// of the hyperparameter to search.

    - #[serde(rename = "MinValue")] - #[serde(default)] pub min_value: std::option::Option, ///

    The maximum /// value /// of the hyperparameter to search.

    - #[serde(rename = "MaxValue")] - #[serde(default)] pub max_value: std::option::Option, ///

    The scale that hyperparameter tuning uses to search the hyperparameter range. For /// information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

    @@ -52641,8 +48544,6 @@ pub struct IntegerParameterRange { /// than 0.

    /// /// - #[serde(rename = "ScalingType")] - #[serde(default)] pub scaling_type: std::option::Option, } impl std::fmt::Debug for IntegerParameterRange { @@ -52755,18 +48656,14 @@ impl IntegerParameterRange { /// metric, depending on the value you specify for the Type /// parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTuningJobObjective { ///

    Whether to /// minimize /// or maximize the objective metric.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The /// name of the metric to use for the objective metric.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, } impl std::fmt::Debug for HyperParameterTuningJobObjective { @@ -52829,35 +48726,27 @@ impl HyperParameterTuningJobObjective { ///

    Configures a hyperparameter tuning job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterTuningJobConfig { ///

    Specifies how hyperparameter tuning chooses the combinations of hyperparameter values /// to use for the training job it launches. To use the Bayesian search strategy, set this /// to Bayesian. To randomly search, set it to Random. For /// information about search strategies, see How /// Hyperparameter Tuning Works.

    - #[serde(rename = "Strategy")] - #[serde(default)] pub strategy: std::option::Option, ///

    The HyperParameterTuningJobObjective object that specifies the /// objective /// metric for this tuning job.

    - #[serde(rename = "HyperParameterTuningJobObjective")] - #[serde(default)] pub hyper_parameter_tuning_job_objective: std::option::Option, ///

    The ResourceLimits object that specifies the /// maximum /// number of training jobs and parallel training jobs for this tuning /// job.

    - #[serde(rename = "ResourceLimits")] - #[serde(default)] pub resource_limits: std::option::Option, ///

    The ParameterRanges object that specifies the ranges of /// hyperparameters /// that this tuning job searches.

    - #[serde(rename = "ParameterRanges")] - #[serde(default)] pub parameter_ranges: std::option::Option, ///

    Specifies whether to use early stopping for training jobs launched by the /// hyperparameter tuning job. This can be one of the following values (the default value is @@ -52875,13 +48764,9 @@ pub struct HyperParameterTuningJobConfig { /// For more information, see Stop Training Jobs Early.

    /// /// - #[serde(rename = "TrainingJobEarlyStoppingType")] - #[serde(default)] pub training_job_early_stopping_type: std::option::Option, ///

    The tuning job's completion criteria.

    - #[serde(rename = "TuningJobCompletionCriteria")] - #[serde(default)] pub tuning_job_completion_criteria: std::option::Option, } @@ -53055,11 +48940,9 @@ impl HyperParameterTuningJobConfig { ///

    The job completion criteria.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TuningJobCompletionCriteria { ///

    The value of the objective metric.

    - #[serde(rename = "TargetObjectiveMetricValue")] - #[serde(default)] pub target_objective_metric_value: std::option::Option, } impl std::fmt::Debug for TuningJobCompletionCriteria { @@ -53136,7 +49019,7 @@ impl std::convert::From<&str> for TrainingJobEarlyStoppingType { impl std::str::FromStr for TrainingJobEarlyStoppingType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TrainingJobEarlyStoppingType::from(s)) } } @@ -53154,27 +49037,14 @@ impl AsRef for TrainingJobEarlyStoppingType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TrainingJobEarlyStoppingType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Container for user interface template information.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UiTemplateInfo { ///

    The URL for the user interface template.

    - #[serde(rename = "Url")] - #[serde(default)] pub url: std::option::Option, ///

    The SHA-256 digest of the contents of the template.

    - #[serde(rename = "ContentSha256")] - #[serde(default)] pub content_sha256: std::option::Option, } impl std::fmt::Debug for UiTemplateInfo { @@ -53260,7 +49130,7 @@ impl std::convert::From<&str> for HumanTaskUiStatus { impl std::str::FromStr for HumanTaskUiStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HumanTaskUiStatus::from(s)) } } @@ -53278,29 +49148,16 @@ impl AsRef for HumanTaskUiStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HumanTaskUiStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about where human output will be stored.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FlowDefinitionOutputConfig { ///

    The Amazon S3 path where the object containing human output will be made available.

    ///

    To learn more about the format of Amazon A2I output data, see Amazon A2I /// Output Data.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, ///

    The Amazon Key Management Service (KMS) key ID for server-side encryption.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for FlowDefinitionOutputConfig { @@ -53362,13 +49219,11 @@ impl FlowDefinitionOutputConfig { ///

    Describes the work to be performed by human workers.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopConfig { ///

    Amazon Resource Name (ARN) of a team of workers. To learn more about the types of /// workforces and work teams you can create and use with Amazon A2I, see Create /// and Manage Workforces.

    - #[serde(rename = "WorkteamArn")] - #[serde(default)] pub workteam_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the human task user interface.

    ///

    You can use standard HTML and Crowd HTML Elements to create a custom worker task @@ -53377,36 +49232,22 @@ pub struct HumanLoopConfig { /// Task Template.

    ///

    To learn how to create a human task UI, which is a worker task template that can be used /// in a flow definition, see Create and Delete a Worker Task Templates.

    - #[serde(rename = "HumanTaskUiArn")] - #[serde(default)] pub human_task_ui_arn: std::option::Option, ///

    A title for the human worker task.

    - #[serde(rename = "TaskTitle")] - #[serde(default)] pub task_title: std::option::Option, ///

    A description for the human worker task.

    - #[serde(rename = "TaskDescription")] - #[serde(default)] pub task_description: std::option::Option, ///

    The number of distinct workers who will perform the same task on each object. /// For example, if TaskCount is set to 3 for an image classification /// labeling job, three workers will classify each input image. /// Increasing TaskCount can improve label accuracy.

    - #[serde(rename = "TaskCount")] - #[serde(default)] pub task_count: std::option::Option, ///

    The length of time that a task remains available for review by human workers.

    - #[serde(rename = "TaskAvailabilityLifetimeInSeconds")] - #[serde(default)] pub task_availability_lifetime_in_seconds: std::option::Option, ///

    The amount of time that a worker has to complete a task. The default value is 3,600 /// seconds (1 hour).

    - #[serde(rename = "TaskTimeLimitInSeconds")] - #[serde(default)] pub task_time_limit_in_seconds: std::option::Option, ///

    Keywords used to describe the task so that workers can discover the task.

    - #[serde(rename = "TaskKeywords")] - #[serde(default)] pub task_keywords: std::option::Option>, ///

    Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed.

    ///

    Use one of the following prices for bounding box tasks. Prices are in US dollars and @@ -53710,8 +49551,6 @@ pub struct HumanLoopConfig { ///

    0.012

    /// /// - #[serde(rename = "PublicWorkforceTaskPrice")] - #[serde(default)] pub public_workforce_task_price: std::option::Option, } impl std::fmt::Debug for HumanLoopConfig { @@ -54194,12 +50033,10 @@ impl HumanLoopConfig { ///

    Provides information about how and under what conditions SageMaker creates a human loop. If HumanLoopActivationConfig is not given, then all requests go to humans.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopActivationConfig { ///

    Container structure for defining under what conditions SageMaker creates a human /// loop.

    - #[serde(rename = "HumanLoopActivationConditionsConfig")] - #[serde(default)] pub human_loop_activation_conditions_config: std::option::Option, } @@ -54258,14 +50095,12 @@ impl HumanLoopActivationConfig { ///

    Defines under what conditions SageMaker creates a human loop. Used within . See for the required /// format of activation conditions.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopActivationConditionsConfig { ///

    JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. /// The set of conditions is different for Rekognition and Textract. For more information about how to structure the JSON, see /// JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI /// in the Amazon SageMaker Developer Guide.

    - #[serde(rename = "HumanLoopActivationConditions")] - #[serde(default)] pub human_loop_activation_conditions: std::option::Option, } impl std::fmt::Debug for HumanLoopActivationConditionsConfig { @@ -54322,12 +50157,10 @@ impl HumanLoopActivationConditionsConfig { ///

    Container for configuring the source of human task requests.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopRequestSource { ///

    Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. /// The default field settings and JSON parsing rules are different based on the integration source. Valid values:

    - #[serde(rename = "AwsManagedHumanLoopRequestSource")] - #[serde(default)] pub aws_managed_human_loop_request_source: std::option::Option, } @@ -54414,7 +50247,7 @@ impl std::convert::From<&str> for AwsManagedHumanLoopRequestSource { impl std::str::FromStr for AwsManagedHumanLoopRequestSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AwsManagedHumanLoopRequestSource::from(s)) } } @@ -54436,43 +50269,22 @@ impl AsRef for AwsManagedHumanLoopRequestSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AwsManagedHumanLoopRequestSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataCaptureConfig { ///

    - #[serde(rename = "EnableCapture")] - #[serde(default)] pub enable_capture: bool, ///

    - #[serde(rename = "InitialSamplingPercentage")] - #[serde(default)] pub initial_sampling_percentage: std::option::Option, ///

    - #[serde(rename = "DestinationS3Uri")] - #[serde(default)] pub destination_s3_uri: std::option::Option, ///

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    - #[serde(rename = "CaptureOptions")] - #[serde(default)] pub capture_options: std::option::Option>, ///

    - #[serde(rename = "CaptureContentTypeHeader")] - #[serde(default)] pub capture_content_type_header: std::option::Option, } impl std::fmt::Debug for DataCaptureConfig { @@ -54597,15 +50409,11 @@ impl DataCaptureConfig { ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptureContentTypeHeader { ///

    - #[serde(rename = "CsvContentTypes")] - #[serde(default)] pub csv_content_types: std::option::Option>, ///

    - #[serde(rename = "JsonContentTypes")] - #[serde(default)] pub json_content_types: std::option::Option>, } impl std::fmt::Debug for CaptureContentTypeHeader { @@ -54670,11 +50478,9 @@ impl CaptureContentTypeHeader { ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CaptureOption { ///

    - #[serde(rename = "CaptureMode")] - #[serde(default)] pub capture_mode: std::option::Option, } impl std::fmt::Debug for CaptureOption { @@ -54748,7 +50554,7 @@ impl std::convert::From<&str> for CaptureMode { impl std::str::FromStr for CaptureMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CaptureMode::from(s)) } } @@ -54766,58 +50572,35 @@ impl AsRef for CaptureMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CaptureMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Identifies a model that you want to host and the resources chosen to deploy for /// hosting it. If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic /// among the models by specifying variant weights.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProductionVariant { ///

    The name of the production variant.

    - #[serde(rename = "VariantName")] - #[serde(default)] pub variant_name: std::option::Option, ///

    The name of the model that you want to host. This is the name that you specified /// when creating the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    Number of instances to launch initially.

    - #[serde(rename = "InitialInstanceCount")] - #[serde(default)] pub initial_instance_count: std::option::Option, ///

    The ML compute instance type.

    - #[serde(rename = "InstanceType")] - #[serde(default)] pub instance_type: std::option::Option, ///

    Determines initial traffic distribution among all of the models that you specify in /// the endpoint configuration. The traffic to a production variant is determined by the /// ratio of the VariantWeight to the sum of all VariantWeight /// values across all ProductionVariants. If unspecified, it defaults to 1.0. ///

    - #[serde(rename = "InitialVariantWeight")] - #[serde(default)] pub initial_variant_weight: std::option::Option, ///

    The size of the Elastic Inference (EI) instance to use for the production variant. EI /// instances provide on-demand GPU computing for inference. For more information, see /// Using Elastic /// Inference in Amazon SageMaker.

    - #[serde(rename = "AcceleratorType")] - #[serde(default)] pub accelerator_type: std::option::Option, ///

    Specifies configuration for a core dump from the model container when the process /// crashes.

    - #[serde(rename = "CoreDumpConfig")] - #[serde(default)] pub core_dump_config: std::option::Option, } impl std::fmt::Debug for ProductionVariant { @@ -54961,11 +50744,9 @@ impl ProductionVariant { ///

    Specifies configuration for a core dump from the model container when the process /// crashes.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProductionVariantCoreDumpConfig { ///

    The Amazon S3 bucket to send the core dump to.

    - #[serde(rename = "DestinationS3Uri")] - #[serde(default)] pub destination_s3_uri: std::option::Option, ///

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the core dump data at rest using /// Amazon S3 server-side encryption. The KmsKeyId can be any of the following @@ -55010,8 +50791,6 @@ pub struct ProductionVariantCoreDumpConfig { /// CreateEndpoint and UpdateEndpoint requests. For more /// information, see Using Key Policies in AWS /// KMS in the AWS Key Management Service Developer Guide.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for ProductionVariantCoreDumpConfig { @@ -55147,7 +50926,7 @@ impl std::convert::From<&str> for ProductionVariantAcceleratorType { impl std::str::FromStr for ProductionVariantAcceleratorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProductionVariantAcceleratorType::from(s)) } } @@ -55169,36 +50948,19 @@ impl AsRef for ProductionVariantAcceleratorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProductionVariantAcceleratorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The output of a SageMaker Edge Manager deployable resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgePresetDeploymentOutput { ///

    The deployment type created by SageMaker Edge Manager. Currently only /// supports AWS IoT Greengrass Version 2 components.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The Amazon Resource Name (ARN) of the generated deployable resource.

    - #[serde(rename = "Artifact")] - #[serde(default)] pub artifact: std::option::Option, ///

    The status of the deployable resource.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Returns a message describing the status of the deployed resource.

    - #[serde(rename = "StatusMessage")] - #[serde(default)] pub status_message: std::option::Option, } impl std::fmt::Debug for EdgePresetDeploymentOutput { @@ -55315,7 +51077,7 @@ impl std::convert::From<&str> for EdgePresetDeploymentStatus { impl std::str::FromStr for EdgePresetDeploymentStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EdgePresetDeploymentStatus::from(s)) } } @@ -55333,15 +51095,6 @@ impl AsRef for EdgePresetDeploymentStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EdgePresetDeploymentStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -55371,7 +51124,7 @@ impl std::convert::From<&str> for AppNetworkAccessType { impl std::str::FromStr for AppNetworkAccessType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AppNetworkAccessType::from(s)) } } @@ -55389,15 +51142,6 @@ impl AsRef for AppNetworkAccessType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AppNetworkAccessType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -55427,7 +51171,7 @@ impl std::convert::From<&str> for AuthMode { impl std::str::FromStr for AuthMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AuthMode::from(s)) } } @@ -55445,41 +51189,18 @@ impl AsRef for AuthMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AuthMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The model on the edge device.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgeModel { ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The model version.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] pub model_version: std::option::Option, ///

    The timestamp of the last data sample taken.

    - #[serde(rename = "LatestSampleTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_sample_time: std::option::Option, ///

    The timestamp of the last inference that was made.

    - #[serde(rename = "LatestInference")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_inference: std::option::Option, } impl std::fmt::Debug for EdgeModel { @@ -55570,11 +51291,9 @@ impl EdgeModel { ///

    The input for the data quality monitoring job. Currently endpoints are supported for /// input.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataQualityJobInput { ///

    Input object for the endpoint

    - #[serde(rename = "EndpointInput")] - #[serde(default)] pub endpoint_input: std::option::Option, } impl std::fmt::Debug for DataQualityJobInput { @@ -55622,35 +51341,23 @@ impl DataQualityJobInput { ///

    Information about the container that a data quality monitoring job runs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataQualityAppSpecification { ///

    The container image that the data quality monitoring job runs.

    - #[serde(rename = "ImageUri")] - #[serde(default)] pub image_uri: std::option::Option, ///

    The entrypoint for a container used to run a monitoring job.

    - #[serde(rename = "ContainerEntrypoint")] - #[serde(default)] pub container_entrypoint: std::option::Option>, ///

    The arguments to send to the container that the monitoring job runs.

    - #[serde(rename = "ContainerArguments")] - #[serde(default)] pub container_arguments: std::option::Option>, ///

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can /// base64 decode the payload and convert it into a flatted json so that the built-in container /// can use the converted data. Applicable only for the built-in (first party) /// containers.

    - #[serde(rename = "RecordPreprocessorSourceUri")] - #[serde(default)] pub record_preprocessor_source_uri: std::option::Option, ///

    An Amazon S3 URI to a script that is called after analysis has been performed. /// Applicable only for the built-in (first party) containers.

    - #[serde(rename = "PostAnalyticsProcessorSourceUri")] - #[serde(default)] pub post_analytics_processor_source_uri: std::option::Option, ///

    Sets the environment variables in the container that the monitoring job runs.

    - #[serde(rename = "Environment")] - #[serde(default)] pub environment: std::option::Option>, } @@ -55800,19 +51507,13 @@ impl DataQualityAppSpecification { /// resources are compared against the results of the current job from the series of jobs /// scheduled to collect data periodically.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DataQualityBaselineConfig { ///

    The name of the job that performs baselining for the data quality monitoring job.

    - #[serde(rename = "BaseliningJobName")] - #[serde(default)] pub baselining_job_name: std::option::Option, ///

    The constraints resource for a monitoring job.

    - #[serde(rename = "ConstraintsResource")] - #[serde(default)] pub constraints_resource: std::option::Option, ///

    The statistics resource for a monitoring job.

    - #[serde(rename = "StatisticsResource")] - #[serde(default)] pub statistics_resource: std::option::Option, } impl std::fmt::Debug for DataQualityBaselineConfig { @@ -55904,19 +51605,15 @@ impl DataQualityBaselineConfig { /// platform of your edge device and CompilerOptions if there are specific /// settings that are required or recommended to use for particular TargetPlatform.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputConfig { ///

    Identifies the S3 bucket where you want Amazon SageMaker to store the model artifacts. For /// example, s3://bucket-name/key-name-prefix.

    - #[serde(rename = "S3OutputLocation")] - #[serde(default)] pub s3_output_location: std::option::Option, ///

    Identifies the target device or the machine learning instance that you want to run /// your model on after the compilation has completed. Alternatively, you can specify OS, /// architecture, and accelerator using TargetPlatform fields. It can be /// used instead of TargetPlatform.

    - #[serde(rename = "TargetDevice")] - #[serde(default)] pub target_device: std::option::Option, ///

    Contains information about a target platform that you want your model to run on, such /// as OS, architecture, and accelerators. It is an alternative of @@ -55981,8 +51678,6 @@ pub struct OutputConfig { ///

    /// /// - #[serde(rename = "TargetPlatform")] - #[serde(default)] pub target_platform: std::option::Option, ///

    Specifies additional parameters for compiler options in JSON format. The compiler /// options are TargetPlatform specific. It is required for NVIDIA accelerators @@ -56134,8 +51829,6 @@ pub struct OutputConfig { ///

    /// /// - #[serde(rename = "CompilerOptions")] - #[serde(default)] pub compiler_options: std::option::Option, ///

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume /// after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account

    @@ -56160,8 +51853,6 @@ pub struct OutputConfig { ///

    /// /// - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for OutputConfig { @@ -56505,7 +52196,7 @@ impl OutputConfig { /// as OS, architecture, and accelerators. It is an alternative of /// TargetDevice.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TargetPlatform { ///

    Specifies a target platform OS.

    ///
      @@ -56521,8 +52212,6 @@ pub struct TargetPlatform { ///

      /// ///
    - #[serde(rename = "Os")] - #[serde(default)] pub os: std::option::Option, ///

    Specifies a target platform architecture.

    ///
      @@ -56548,8 +52237,6 @@ pub struct TargetPlatform { /// platform.

      /// ///
    - #[serde(rename = "Arch")] - #[serde(default)] pub arch: std::option::Option, ///

    Specifies a target platform accelerator (optional).

    ///
      @@ -56568,8 +52255,6 @@ pub struct TargetPlatform { /// INTEL_GRAPHICS: Integrated Intel graphics

      /// ///
    - #[serde(rename = "Accelerator")] - #[serde(default)] pub accelerator: std::option::Option, } impl std::fmt::Debug for TargetPlatform { @@ -56701,12 +52386,10 @@ impl TargetPlatform { /// shape /// of the expected data inputs, and the framework in which the model was trained.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InputConfig { ///

    The S3 path where the model artifacts, which result from model training, are stored. /// This path must point to a single gzip compressed tar archive (.tar.gz suffix).

    - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, ///

    Specifies the name and shape of the expected data inputs for your trained model with a /// JSON dictionary form. The data inputs are InputConfig$Framework @@ -57036,21 +52719,15 @@ pub struct InputConfig { /// /// /// - #[serde(rename = "DataInputConfig")] - #[serde(default)] pub data_input_config: std::option::Option, ///

    Identifies the framework in which the model was trained. For example: /// TENSORFLOW.

    - #[serde(rename = "Framework")] - #[serde(default)] pub framework: std::option::Option, ///

    Specifies the framework version to use.

    ///

    This API field is only supported for PyTorch framework versions 1.4, /// 1.5, and 1.6 for /// cloud instance target devices: ml_c4, ml_c5, ml_m4, /// ml_m5, ml_p2, ml_p3, and ml_g4dn.

    - #[serde(rename = "FrameworkVersion")] - #[serde(default)] pub framework_version: std::option::Option, } impl std::fmt::Debug for InputConfig { @@ -57513,7 +53190,7 @@ impl std::convert::From<&str> for Framework { impl std::str::FromStr for Framework { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Framework::from(s)) } } @@ -57538,24 +53215,13 @@ impl AsRef for Framework { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Framework { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Provides information to verify the integrity of stored model artifacts.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelDigests { ///

    Provides a hash value that uniquely identifies the stored model /// artifacts.

    - #[serde(rename = "ArtifactDigest")] - #[serde(default)] pub artifact_digest: std::option::Option, } impl std::fmt::Debug for ModelDigests { @@ -57604,14 +53270,12 @@ impl ModelDigests { ///

    Provides information about the endpoint of the model deployment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelDeployResult { ///

    The name of the endpoint to which the model has been deployed.

    /// ///

    If model deployment fails, this field is omitted from the response.

    ///
    - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, } impl std::fmt::Debug for ModelDeployResult { @@ -57663,7 +53327,7 @@ impl ModelDeployResult { ///

    Specifies how to generate the endpoint name for an automatic one-click Autopilot model /// deployment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ModelDeployConfig { ///

    Set to True to automatically generate an endpoint name for a one-click /// Autopilot model deployment; set to False otherwise. The default value is @@ -57672,8 +53336,6 @@ pub struct ModelDeployConfig { ///

    If you set AutoGenerateEndpointName to True, do not specify /// the EndpointName; otherwise a 400 error is thrown.

    /// - #[serde(rename = "AutoGenerateEndpointName")] - #[serde(default)] pub auto_generate_endpoint_name: bool, ///

    Specifies the endpoint name to use for a one-click Autopilot model deployment if the /// endpoint name is not generated automatically.

    @@ -57682,8 +53344,6 @@ pub struct ModelDeployConfig { /// AutoGenerateEndpointName to False; otherwise a 400 error /// is thrown.

    /// - #[serde(rename = "EndpointName")] - #[serde(default)] pub endpoint_name: std::option::Option, } impl std::fmt::Debug for ModelDeployConfig { @@ -57758,21 +53418,15 @@ impl ModelDeployConfig { ///

    The resolved attributes.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResolvedAttributes { ///

    Specifies a metric to minimize or maximize as the objective of a job.

    - #[serde(rename = "AutoMLJobObjective")] - #[serde(default)] - pub auto_ml_job_objective: std::option::Option, + pub auto_ml_job_objective: std::option::Option, ///

    The problem type.

    - #[serde(rename = "ProblemType")] - #[serde(default)] pub problem_type: std::option::Option, ///

    How long a job is allowed to run, or how many candidates a job is allowed to /// generate.

    - #[serde(rename = "CompletionCriteria")] - #[serde(default)] - pub completion_criteria: std::option::Option, + pub completion_criteria: std::option::Option, } impl std::fmt::Debug for ResolvedAttributes { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -57789,20 +53443,20 @@ pub mod resolved_attributes { #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) auto_ml_job_objective: std::option::Option, + pub(crate) auto_ml_job_objective: std::option::Option, pub(crate) problem_type: std::option::Option, pub(crate) completion_criteria: - std::option::Option, + std::option::Option, } impl Builder { ///

    Specifies a metric to minimize or maximize as the objective of a job.

    - pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMLJobObjective) -> Self { + pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMlJobObjective) -> Self { self.auto_ml_job_objective = Some(input); self } pub fn set_auto_ml_job_objective( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_objective = input; self @@ -57823,14 +53477,14 @@ pub mod resolved_attributes { /// generate.

    pub fn completion_criteria( mut self, - input: crate::model::AutoMLJobCompletionCriteria, + input: crate::model::AutoMlJobCompletionCriteria, ) -> Self { self.completion_criteria = Some(input); self } pub fn set_completion_criteria( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.completion_criteria = input; self @@ -57855,24 +53509,18 @@ impl ResolvedAttributes { ///

    How long a job is allowed to run, or how many candidates a job is allowed to /// generate.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLJobCompletionCriteria { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlJobCompletionCriteria { ///

    The maximum number of times a training job is allowed to run.

    - #[serde(rename = "MaxCandidates")] - #[serde(default)] pub max_candidates: std::option::Option, ///

    The maximum time, in seconds, a training job is allowed to run as part of an AutoML job.

    - #[serde(rename = "MaxRuntimePerTrainingJobInSeconds")] - #[serde(default)] pub max_runtime_per_training_job_in_seconds: std::option::Option, ///

    The maximum runtime, in seconds, an AutoML job has to complete.

    - #[serde(rename = "MaxAutoMLJobRuntimeInSeconds")] - #[serde(default)] pub max_auto_ml_job_runtime_in_seconds: std::option::Option, } -impl std::fmt::Debug for AutoMLJobCompletionCriteria { +impl std::fmt::Debug for AutoMlJobCompletionCriteria { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLJobCompletionCriteria"); + let mut formatter = f.debug_struct("AutoMlJobCompletionCriteria"); formatter.field("max_candidates", &self.max_candidates); formatter.field( "max_runtime_per_training_job_in_seconds", @@ -57885,9 +53533,9 @@ impl std::fmt::Debug for AutoMLJobCompletionCriteria { formatter.finish() } } -/// See [`AutoMLJobCompletionCriteria`](crate::model::AutoMLJobCompletionCriteria) +/// See [`AutoMlJobCompletionCriteria`](crate::model::AutoMlJobCompletionCriteria) pub mod auto_ml_job_completion_criteria { - /// A builder for [`AutoMLJobCompletionCriteria`](crate::model::AutoMLJobCompletionCriteria) + /// A builder for [`AutoMlJobCompletionCriteria`](crate::model::AutoMlJobCompletionCriteria) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -57929,9 +53577,9 @@ pub mod auto_ml_job_completion_criteria { self.max_auto_ml_job_runtime_in_seconds = input; self } - /// Consumes the builder and constructs a [`AutoMLJobCompletionCriteria`](crate::model::AutoMLJobCompletionCriteria) - pub fn build(self) -> crate::model::AutoMLJobCompletionCriteria { - crate::model::AutoMLJobCompletionCriteria { + /// Consumes the builder and constructs a [`AutoMlJobCompletionCriteria`](crate::model::AutoMlJobCompletionCriteria) + pub fn build(self) -> crate::model::AutoMlJobCompletionCriteria { + crate::model::AutoMlJobCompletionCriteria { max_candidates: self.max_candidates, max_runtime_per_training_job_in_seconds: self .max_runtime_per_training_job_in_seconds, @@ -57940,8 +53588,8 @@ pub mod auto_ml_job_completion_criteria { } } } -impl AutoMLJobCompletionCriteria { - /// Creates a new builder-style object to manufacture [`AutoMLJobCompletionCriteria`](crate::model::AutoMLJobCompletionCriteria) +impl AutoMlJobCompletionCriteria { + /// Creates a new builder-style object to manufacture [`AutoMlJobCompletionCriteria`](crate::model::AutoMlJobCompletionCriteria) pub fn builder() -> crate::model::auto_ml_job_completion_criteria::Builder { crate::model::auto_ml_job_completion_criteria::Builder::default() } @@ -57977,7 +53625,7 @@ impl std::convert::From<&str> for ProblemType { impl std::str::FromStr for ProblemType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ProblemType::from(s)) } } @@ -57996,20 +53644,11 @@ impl AsRef for ProblemType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ProblemType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies a metric to minimize or maximize as the objective of a job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLJobObjective { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlJobObjective { ///

    The name of the objective metric used to measure the predictive quality of a machine /// learning system. This metric is optimized during training to provide the best estimate for /// model parameter values from data.

    @@ -58091,20 +53730,18 @@ pub struct AutoMLJobObjective { /// Accuracy: for multiclass classification.

    /// /// - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, } -impl std::fmt::Debug for AutoMLJobObjective { +impl std::fmt::Debug for AutoMlJobObjective { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLJobObjective"); + let mut formatter = f.debug_struct("AutoMlJobObjective"); formatter.field("metric_name", &self.metric_name); formatter.finish() } } -/// See [`AutoMLJobObjective`](crate::model::AutoMLJobObjective) +/// See [`AutoMlJobObjective`](crate::model::AutoMlJobObjective) pub mod auto_ml_job_objective { - /// A builder for [`AutoMLJobObjective`](crate::model::AutoMLJobObjective) + /// A builder for [`AutoMlJobObjective`](crate::model::AutoMlJobObjective) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -58203,16 +53840,16 @@ pub mod auto_ml_job_objective { self.metric_name = input; self } - /// Consumes the builder and constructs a [`AutoMLJobObjective`](crate::model::AutoMLJobObjective) - pub fn build(self) -> crate::model::AutoMLJobObjective { - crate::model::AutoMLJobObjective { + /// Consumes the builder and constructs a [`AutoMlJobObjective`](crate::model::AutoMlJobObjective) + pub fn build(self) -> crate::model::AutoMlJobObjective { + crate::model::AutoMlJobObjective { metric_name: self.metric_name, } } } } -impl AutoMLJobObjective { - /// Creates a new builder-style object to manufacture [`AutoMLJobObjective`](crate::model::AutoMLJobObjective) +impl AutoMlJobObjective { + /// Creates a new builder-style object to manufacture [`AutoMlJobObjective`](crate::model::AutoMlJobObjective) pub fn builder() -> crate::model::auto_ml_job_objective::Builder { crate::model::auto_ml_job_objective::Builder::default() } @@ -58220,20 +53857,16 @@ impl AutoMLJobObjective { ///

    The artifacts that are generated during an AutoML job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLJobArtifacts { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlJobArtifacts { ///

    The URL of the notebook location.

    - #[serde(rename = "CandidateDefinitionNotebookLocation")] - #[serde(default)] pub candidate_definition_notebook_location: std::option::Option, ///

    The URL of the notebook location.

    - #[serde(rename = "DataExplorationNotebookLocation")] - #[serde(default)] pub data_exploration_notebook_location: std::option::Option, } -impl std::fmt::Debug for AutoMLJobArtifacts { +impl std::fmt::Debug for AutoMlJobArtifacts { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLJobArtifacts"); + let mut formatter = f.debug_struct("AutoMlJobArtifacts"); formatter.field( "candidate_definition_notebook_location", &self.candidate_definition_notebook_location, @@ -58245,9 +53878,9 @@ impl std::fmt::Debug for AutoMLJobArtifacts { formatter.finish() } } -/// See [`AutoMLJobArtifacts`](crate::model::AutoMLJobArtifacts) +/// See [`AutoMlJobArtifacts`](crate::model::AutoMlJobArtifacts) pub mod auto_ml_job_artifacts { - /// A builder for [`AutoMLJobArtifacts`](crate::model::AutoMLJobArtifacts) + /// A builder for [`AutoMlJobArtifacts`](crate::model::AutoMlJobArtifacts) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -58285,17 +53918,17 @@ pub mod auto_ml_job_artifacts { self.data_exploration_notebook_location = input; self } - /// Consumes the builder and constructs a [`AutoMLJobArtifacts`](crate::model::AutoMLJobArtifacts) - pub fn build(self) -> crate::model::AutoMLJobArtifacts { - crate::model::AutoMLJobArtifacts { + /// Consumes the builder and constructs a [`AutoMlJobArtifacts`](crate::model::AutoMlJobArtifacts) + pub fn build(self) -> crate::model::AutoMlJobArtifacts { + crate::model::AutoMlJobArtifacts { candidate_definition_notebook_location: self.candidate_definition_notebook_location, data_exploration_notebook_location: self.data_exploration_notebook_location, } } } } -impl AutoMLJobArtifacts { - /// Creates a new builder-style object to manufacture [`AutoMLJobArtifacts`](crate::model::AutoMLJobArtifacts) +impl AutoMlJobArtifacts { + /// Creates a new builder-style object to manufacture [`AutoMlJobArtifacts`](crate::model::AutoMlJobArtifacts) pub fn builder() -> crate::model::auto_ml_job_artifacts::Builder { crate::model::auto_ml_job_artifacts::Builder::default() } @@ -58303,76 +53936,72 @@ impl AutoMLJobArtifacts { ///

    A collection of settings used for an AutoML job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLJobConfig { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlJobConfig { ///

    How long an AutoML job is allowed to run, or how many candidates a job is allowed to /// generate.

    - #[serde(rename = "CompletionCriteria")] - #[serde(default)] - pub completion_criteria: std::option::Option, + pub completion_criteria: std::option::Option, ///

    The security configuration for traffic encryption or Amazon VPC settings.

    - #[serde(rename = "SecurityConfig")] - #[serde(default)] - pub security_config: std::option::Option, + pub security_config: std::option::Option, } -impl std::fmt::Debug for AutoMLJobConfig { +impl std::fmt::Debug for AutoMlJobConfig { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLJobConfig"); + let mut formatter = f.debug_struct("AutoMlJobConfig"); formatter.field("completion_criteria", &self.completion_criteria); formatter.field("security_config", &self.security_config); formatter.finish() } } -/// See [`AutoMLJobConfig`](crate::model::AutoMLJobConfig) +/// See [`AutoMlJobConfig`](crate::model::AutoMlJobConfig) pub mod auto_ml_job_config { - /// A builder for [`AutoMLJobConfig`](crate::model::AutoMLJobConfig) + /// A builder for [`AutoMlJobConfig`](crate::model::AutoMlJobConfig) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) completion_criteria: - std::option::Option, - pub(crate) security_config: std::option::Option, + std::option::Option, + pub(crate) security_config: std::option::Option, } impl Builder { ///

    How long an AutoML job is allowed to run, or how many candidates a job is allowed to /// generate.

    pub fn completion_criteria( mut self, - input: crate::model::AutoMLJobCompletionCriteria, + input: crate::model::AutoMlJobCompletionCriteria, ) -> Self { self.completion_criteria = Some(input); self } pub fn set_completion_criteria( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.completion_criteria = input; self } ///

    The security configuration for traffic encryption or Amazon VPC settings.

    - pub fn security_config(mut self, input: crate::model::AutoMLSecurityConfig) -> Self { + pub fn security_config(mut self, input: crate::model::AutoMlSecurityConfig) -> Self { self.security_config = Some(input); self } pub fn set_security_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.security_config = input; self } - /// Consumes the builder and constructs a [`AutoMLJobConfig`](crate::model::AutoMLJobConfig) - pub fn build(self) -> crate::model::AutoMLJobConfig { - crate::model::AutoMLJobConfig { + /// Consumes the builder and constructs a [`AutoMlJobConfig`](crate::model::AutoMlJobConfig) + pub fn build(self) -> crate::model::AutoMlJobConfig { + crate::model::AutoMlJobConfig { completion_criteria: self.completion_criteria, security_config: self.security_config, } } } } -impl AutoMLJobConfig { - /// Creates a new builder-style object to manufacture [`AutoMLJobConfig`](crate::model::AutoMLJobConfig) +impl AutoMlJobConfig { + /// Creates a new builder-style object to manufacture [`AutoMlJobConfig`](crate::model::AutoMlJobConfig) pub fn builder() -> crate::model::auto_ml_job_config::Builder { crate::model::auto_ml_job_config::Builder::default() } @@ -58380,24 +54009,18 @@ impl AutoMLJobConfig { ///

    Security options.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLSecurityConfig { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlSecurityConfig { ///

    The key used to encrypt stored data.

    - #[serde(rename = "VolumeKmsKeyId")] - #[serde(default)] pub volume_kms_key_id: std::option::Option, ///

    Whether to use traffic encryption between the container layers.

    - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] pub enable_inter_container_traffic_encryption: bool, ///

    The VPC configuration.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] pub vpc_config: std::option::Option, } -impl std::fmt::Debug for AutoMLSecurityConfig { +impl std::fmt::Debug for AutoMlSecurityConfig { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLSecurityConfig"); + let mut formatter = f.debug_struct("AutoMlSecurityConfig"); formatter.field("volume_kms_key_id", &self.volume_kms_key_id); formatter.field( "enable_inter_container_traffic_encryption", @@ -58407,9 +54030,9 @@ impl std::fmt::Debug for AutoMLSecurityConfig { formatter.finish() } } -/// See [`AutoMLSecurityConfig`](crate::model::AutoMLSecurityConfig) +/// See [`AutoMlSecurityConfig`](crate::model::AutoMlSecurityConfig) pub mod auto_ml_security_config { - /// A builder for [`AutoMLSecurityConfig`](crate::model::AutoMLSecurityConfig) + /// A builder for [`AutoMlSecurityConfig`](crate::model::AutoMlSecurityConfig) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -58454,9 +54077,9 @@ pub mod auto_ml_security_config { self.vpc_config = input; self } - /// Consumes the builder and constructs a [`AutoMLSecurityConfig`](crate::model::AutoMLSecurityConfig) - pub fn build(self) -> crate::model::AutoMLSecurityConfig { - crate::model::AutoMLSecurityConfig { + /// Consumes the builder and constructs a [`AutoMlSecurityConfig`](crate::model::AutoMlSecurityConfig) + pub fn build(self) -> crate::model::AutoMlSecurityConfig { + crate::model::AutoMlSecurityConfig { volume_kms_key_id: self.volume_kms_key_id, enable_inter_container_traffic_encryption: self .enable_inter_container_traffic_encryption @@ -58466,8 +54089,8 @@ pub mod auto_ml_security_config { } } } -impl AutoMLSecurityConfig { - /// Creates a new builder-style object to manufacture [`AutoMLSecurityConfig`](crate::model::AutoMLSecurityConfig) +impl AutoMlSecurityConfig { + /// Creates a new builder-style object to manufacture [`AutoMlSecurityConfig`](crate::model::AutoMlSecurityConfig) pub fn builder() -> crate::model::auto_ml_security_config::Builder { crate::model::auto_ml_security_config::Builder::default() } @@ -58475,28 +54098,24 @@ impl AutoMLSecurityConfig { ///

    The output data configuration.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLOutputDataConfig { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlOutputDataConfig { ///

    The AWS KMS encryption key ID.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    The Amazon S3 output path. Must be 128 characters or less.

    - #[serde(rename = "S3OutputPath")] - #[serde(default)] pub s3_output_path: std::option::Option, } -impl std::fmt::Debug for AutoMLOutputDataConfig { +impl std::fmt::Debug for AutoMlOutputDataConfig { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLOutputDataConfig"); + let mut formatter = f.debug_struct("AutoMlOutputDataConfig"); formatter.field("kms_key_id", &self.kms_key_id); formatter.field("s3_output_path", &self.s3_output_path); formatter.finish() } } -/// See [`AutoMLOutputDataConfig`](crate::model::AutoMLOutputDataConfig) +/// See [`AutoMlOutputDataConfig`](crate::model::AutoMlOutputDataConfig) pub mod auto_ml_output_data_config { - /// A builder for [`AutoMLOutputDataConfig`](crate::model::AutoMLOutputDataConfig) + /// A builder for [`AutoMlOutputDataConfig`](crate::model::AutoMlOutputDataConfig) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -58525,17 +54144,17 @@ pub mod auto_ml_output_data_config { self.s3_output_path = input; self } - /// Consumes the builder and constructs a [`AutoMLOutputDataConfig`](crate::model::AutoMLOutputDataConfig) - pub fn build(self) -> crate::model::AutoMLOutputDataConfig { - crate::model::AutoMLOutputDataConfig { + /// Consumes the builder and constructs a [`AutoMlOutputDataConfig`](crate::model::AutoMlOutputDataConfig) + pub fn build(self) -> crate::model::AutoMlOutputDataConfig { + crate::model::AutoMlOutputDataConfig { kms_key_id: self.kms_key_id, s3_output_path: self.s3_output_path, } } } } -impl AutoMLOutputDataConfig { - /// Creates a new builder-style object to manufacture [`AutoMLOutputDataConfig`](crate::model::AutoMLOutputDataConfig) +impl AutoMlOutputDataConfig { + /// Creates a new builder-style object to manufacture [`AutoMlOutputDataConfig`](crate::model::AutoMlOutputDataConfig) pub fn builder() -> crate::model::auto_ml_output_data_config::Builder { crate::model::auto_ml_output_data_config::Builder::default() } @@ -58544,51 +54163,45 @@ impl AutoMLOutputDataConfig { ///

    A channel is a named input source that training algorithms can consume. For more /// information, see .

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLChannel { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlChannel { ///

    The data source for an AutoML channel.

    - #[serde(rename = "DataSource")] - #[serde(default)] - pub data_source: std::option::Option, + pub data_source: std::option::Option, ///

    You can use Gzip or None. The default value is /// None.

    - #[serde(rename = "CompressionType")] - #[serde(default)] pub compression_type: std::option::Option, ///

    The name of the target variable in supervised learning, usually represented by /// 'y'.

    - #[serde(rename = "TargetAttributeName")] - #[serde(default)] pub target_attribute_name: std::option::Option, } -impl std::fmt::Debug for AutoMLChannel { +impl std::fmt::Debug for AutoMlChannel { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLChannel"); + let mut formatter = f.debug_struct("AutoMlChannel"); formatter.field("data_source", &self.data_source); formatter.field("compression_type", &self.compression_type); formatter.field("target_attribute_name", &self.target_attribute_name); formatter.finish() } } -/// See [`AutoMLChannel`](crate::model::AutoMLChannel) +/// See [`AutoMlChannel`](crate::model::AutoMlChannel) pub mod auto_ml_channel { - /// A builder for [`AutoMLChannel`](crate::model::AutoMLChannel) + /// A builder for [`AutoMlChannel`](crate::model::AutoMlChannel) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) data_source: std::option::Option, + pub(crate) data_source: std::option::Option, pub(crate) compression_type: std::option::Option, pub(crate) target_attribute_name: std::option::Option, } impl Builder { ///

    The data source for an AutoML channel.

    - pub fn data_source(mut self, input: crate::model::AutoMLDataSource) -> Self { + pub fn data_source(mut self, input: crate::model::AutoMlDataSource) -> Self { self.data_source = Some(input); self } pub fn set_data_source( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.data_source = input; self @@ -58619,9 +54232,9 @@ pub mod auto_ml_channel { self.target_attribute_name = input; self } - /// Consumes the builder and constructs a [`AutoMLChannel`](crate::model::AutoMLChannel) - pub fn build(self) -> crate::model::AutoMLChannel { - crate::model::AutoMLChannel { + /// Consumes the builder and constructs a [`AutoMlChannel`](crate::model::AutoMlChannel) + pub fn build(self) -> crate::model::AutoMlChannel { + crate::model::AutoMlChannel { data_source: self.data_source, compression_type: self.compression_type, target_attribute_name: self.target_attribute_name, @@ -58629,8 +54242,8 @@ pub mod auto_ml_channel { } } } -impl AutoMLChannel { - /// Creates a new builder-style object to manufacture [`AutoMLChannel`](crate::model::AutoMLChannel) +impl AutoMlChannel { + /// Creates a new builder-style object to manufacture [`AutoMlChannel`](crate::model::AutoMlChannel) pub fn builder() -> crate::model::auto_ml_channel::Builder { crate::model::auto_ml_channel::Builder::default() } @@ -58638,57 +54251,55 @@ impl AutoMLChannel { ///

    The data source for the Autopilot job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLDataSource { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMlDataSource { ///

    The Amazon S3 location of the input data.

    /// ///

    The input data must be in CSV format and contain at least 500 rows.

    ///
    - #[serde(rename = "S3DataSource")] - #[serde(default)] - pub s3_data_source: std::option::Option, + pub s3_data_source: std::option::Option, } -impl std::fmt::Debug for AutoMLDataSource { +impl std::fmt::Debug for AutoMlDataSource { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLDataSource"); + let mut formatter = f.debug_struct("AutoMlDataSource"); formatter.field("s3_data_source", &self.s3_data_source); formatter.finish() } } -/// See [`AutoMLDataSource`](crate::model::AutoMLDataSource) +/// See [`AutoMlDataSource`](crate::model::AutoMlDataSource) pub mod auto_ml_data_source { - /// A builder for [`AutoMLDataSource`](crate::model::AutoMLDataSource) + /// A builder for [`AutoMlDataSource`](crate::model::AutoMlDataSource) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) s3_data_source: std::option::Option, + pub(crate) s3_data_source: std::option::Option, } impl Builder { ///

    The Amazon S3 location of the input data.

    /// ///

    The input data must be in CSV format and contain at least 500 rows.

    ///
    - pub fn s3_data_source(mut self, input: crate::model::AutoMLS3DataSource) -> Self { + pub fn s3_data_source(mut self, input: crate::model::AutoMls3DataSource) -> Self { self.s3_data_source = Some(input); self } pub fn set_s3_data_source( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.s3_data_source = input; self } - /// Consumes the builder and constructs a [`AutoMLDataSource`](crate::model::AutoMLDataSource) - pub fn build(self) -> crate::model::AutoMLDataSource { - crate::model::AutoMLDataSource { + /// Consumes the builder and constructs a [`AutoMlDataSource`](crate::model::AutoMlDataSource) + pub fn build(self) -> crate::model::AutoMlDataSource { + crate::model::AutoMlDataSource { s3_data_source: self.s3_data_source, } } } } -impl AutoMLDataSource { - /// Creates a new builder-style object to manufacture [`AutoMLDataSource`](crate::model::AutoMLDataSource) +impl AutoMlDataSource { + /// Creates a new builder-style object to manufacture [`AutoMlDataSource`](crate::model::AutoMlDataSource) pub fn builder() -> crate::model::auto_ml_data_source::Builder { crate::model::auto_ml_data_source::Builder::default() } @@ -58696,28 +54307,24 @@ impl AutoMLDataSource { ///

    The Amazon S3 data source.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutoMLS3DataSource { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutoMls3DataSource { ///

    The data type.

    - #[serde(rename = "S3DataType")] - #[serde(default)] pub s3_data_type: std::option::Option, ///

    The URL to the Amazon S3 data source.

    - #[serde(rename = "S3Uri")] - #[serde(default)] pub s3_uri: std::option::Option, } -impl std::fmt::Debug for AutoMLS3DataSource { +impl std::fmt::Debug for AutoMls3DataSource { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutoMLS3DataSource"); + let mut formatter = f.debug_struct("AutoMls3DataSource"); formatter.field("s3_data_type", &self.s3_data_type); formatter.field("s3_uri", &self.s3_uri); formatter.finish() } } -/// See [`AutoMLS3DataSource`](crate::model::AutoMLS3DataSource) +/// See [`AutoMls3DataSource`](crate::model::AutoMls3DataSource) pub mod auto_mls3_data_source { - /// A builder for [`AutoMLS3DataSource`](crate::model::AutoMLS3DataSource) + /// A builder for [`AutoMls3DataSource`](crate::model::AutoMls3DataSource) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -58746,17 +54353,17 @@ pub mod auto_mls3_data_source { self.s3_uri = input; self } - /// Consumes the builder and constructs a [`AutoMLS3DataSource`](crate::model::AutoMLS3DataSource) - pub fn build(self) -> crate::model::AutoMLS3DataSource { - crate::model::AutoMLS3DataSource { + /// Consumes the builder and constructs a [`AutoMls3DataSource`](crate::model::AutoMls3DataSource) + pub fn build(self) -> crate::model::AutoMls3DataSource { + crate::model::AutoMls3DataSource { s3_data_type: self.s3_data_type, s3_uri: self.s3_uri, } } } } -impl AutoMLS3DataSource { - /// Creates a new builder-style object to manufacture [`AutoMLS3DataSource`](crate::model::AutoMLS3DataSource) +impl AutoMls3DataSource { + /// Creates a new builder-style object to manufacture [`AutoMls3DataSource`](crate::model::AutoMls3DataSource) pub fn builder() -> crate::model::auto_mls3_data_source::Builder { crate::model::auto_mls3_data_source::Builder::default() } @@ -58790,7 +54397,7 @@ impl std::convert::From<&str> for AutoMls3DataType { impl std::str::FromStr for AutoMls3DataType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutoMls3DataType::from(s)) } } @@ -58808,27 +54415,14 @@ impl AsRef for AutoMls3DataType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutoMls3DataType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies the validation and image scan statuses of the algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmStatusDetails { ///

    The status of algorithm validation.

    - #[serde(rename = "ValidationStatuses")] - #[serde(default)] pub validation_statuses: std::option::Option>, ///

    The status of the scan of the algorithm's Docker image container.

    - #[serde(rename = "ImageScanStatuses")] - #[serde(default)] pub image_scan_statuses: std::option::Option>, } impl std::fmt::Debug for AlgorithmStatusDetails { @@ -58901,19 +54495,13 @@ impl AlgorithmStatusDetails { ///

    Represents the overall status of an algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmStatusItem { ///

    The name of the algorithm for which the overall status is being reported.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The current status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    if the overall status is Failed, the reason for the failure.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, } impl std::fmt::Debug for AlgorithmStatusItem { @@ -59018,7 +54606,7 @@ impl std::convert::From<&str> for DetailedAlgorithmStatus { impl std::str::FromStr for DetailedAlgorithmStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DetailedAlgorithmStatus::from(s)) } } @@ -59038,29 +54626,16 @@ impl AsRef for DetailedAlgorithmStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DetailedAlgorithmStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Specifies configurations for one or more training jobs that Amazon SageMaker runs to test the /// algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmValidationSpecification { ///

    The IAM roles that Amazon SageMaker uses to run the training jobs.

    - #[serde(rename = "ValidationRole")] - #[serde(default)] pub validation_role: std::option::Option, ///

    An array of AlgorithmValidationProfile objects, each of which specifies a /// training job and batch transform job that Amazon SageMaker runs to validate your algorithm.

    - #[serde(rename = "ValidationProfiles")] - #[serde(default)] pub validation_profiles: std::option::Option>, } @@ -59132,22 +54707,16 @@ impl AlgorithmValidationSpecification { ///

    The data provided in the validation profile is made available to your buyers on AWS /// Marketplace.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AlgorithmValidationProfile { ///

    The name of the profile for the algorithm. The name must have 1 to 63 characters. /// Valid characters are a-z, A-Z, 0-9, and - (hyphen).

    - #[serde(rename = "ProfileName")] - #[serde(default)] pub profile_name: std::option::Option, ///

    The TrainingJobDefinition object that describes the training job that /// Amazon SageMaker runs to validate your algorithm.

    - #[serde(rename = "TrainingJobDefinition")] - #[serde(default)] pub training_job_definition: std::option::Option, ///

    The TransformJobDefinition object that describes the transform job that /// Amazon SageMaker runs to validate your algorithm.

    - #[serde(rename = "TransformJobDefinition")] - #[serde(default)] pub transform_job_definition: std::option::Option, } impl std::fmt::Debug for AlgorithmValidationProfile { @@ -59233,7 +54802,7 @@ impl AlgorithmValidationProfile { ///

    Defines the input needed to run a training job using the algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingJobDefinition { ///

    The input mode used by the algorithm for the training job. For the input modes that /// Amazon SageMaker algorithms support, see Algorithms.

    @@ -59241,28 +54810,18 @@ pub struct TrainingJobDefinition { /// data from S3 to the provisioned ML storage Volume, and mounts the directory to docker /// volume for training container. If an algorithm supports the Pipe input /// mode, Amazon SageMaker streams data directly from S3 to the container.

    - #[serde(rename = "TrainingInputMode")] - #[serde(default)] pub training_input_mode: std::option::Option, ///

    The hyperparameters used for the training job.

    - #[serde(rename = "HyperParameters")] - #[serde(default)] pub hyper_parameters: std::option::Option>, ///

    An array of Channel objects, each of which specifies an input /// source.

    - #[serde(rename = "InputDataConfig")] - #[serde(default)] pub input_data_config: std::option::Option>, ///

    the path to the S3 bucket where you want to store model artifacts. Amazon SageMaker creates /// subfolders for the artifacts.

    - #[serde(rename = "OutputDataConfig")] - #[serde(default)] pub output_data_config: std::option::Option, ///

    The resources, including the ML compute instances and ML storage volumes, to use for /// model training.

    - #[serde(rename = "ResourceConfig")] - #[serde(default)] pub resource_config: std::option::Option, ///

    Specifies a limit to how long a model training job can run. It also specifies how long /// a managed Spot training job has to complete. When the job reaches the time limit, Amazon SageMaker @@ -59270,8 +54829,6 @@ pub struct TrainingJobDefinition { ///

    To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job /// termination for 120 seconds. Algorithms can use this 120-second window to save the model /// artifacts.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] pub stopping_condition: std::option::Option, } impl std::fmt::Debug for TrainingJobDefinition { @@ -59416,49 +54973,33 @@ impl TrainingJobDefinition { ///

    Defines how the algorithm is used for a training job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrainingSpecification { ///

    The Amazon ECR registry path of the Docker image that contains the training /// algorithm.

    - #[serde(rename = "TrainingImage")] - #[serde(default)] pub training_image: std::option::Option, ///

    An MD5 hash of the training algorithm that identifies the Docker image used for /// training.

    - #[serde(rename = "TrainingImageDigest")] - #[serde(default)] pub training_image_digest: std::option::Option, ///

    A list of the HyperParameterSpecification objects, that define the /// supported hyperparameters. This is required if the algorithm supports automatic model /// tuning.>

    - #[serde(rename = "SupportedHyperParameters")] - #[serde(default)] pub supported_hyper_parameters: std::option::Option>, ///

    A list of the instance types that this algorithm can use for training.

    - #[serde(rename = "SupportedTrainingInstanceTypes")] - #[serde(default)] pub supported_training_instance_types: std::option::Option>, ///

    Indicates whether the algorithm supports distributed training. If set to false, buyers /// can't request more than one instance during training.

    - #[serde(rename = "SupportsDistributedTraining")] - #[serde(default)] pub supports_distributed_training: bool, ///

    A list of MetricDefinition objects, which are used for parsing metrics /// generated by the algorithm.

    - #[serde(rename = "MetricDefinitions")] - #[serde(default)] pub metric_definitions: std::option::Option>, ///

    A list of ChannelSpecification objects, which specify the input sources /// to be used by the algorithm.

    - #[serde(rename = "TrainingChannels")] - #[serde(default)] pub training_channels: std::option::Option>, ///

    A list of the metrics that the algorithm emits that can be used as the objective /// metric in a hyperparameter tuning job.

    - #[serde(rename = "SupportedTuningJobObjectiveMetrics")] - #[serde(default)] pub supported_tuning_job_objective_metrics: std::option::Option>, } @@ -59658,27 +55199,17 @@ impl TrainingSpecification { ///

    Defines a named input source, called a channel, to be used by an algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ChannelSpecification { ///

    The name of the channel.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A brief description of the channel.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    Indicates whether the channel is required by the algorithm.

    - #[serde(rename = "IsRequired")] - #[serde(default)] pub is_required: bool, ///

    The supported MIME types for the data.

    - #[serde(rename = "SupportedContentTypes")] - #[serde(default)] pub supported_content_types: std::option::Option>, ///

    The allowed compression types, if data compression is used.

    - #[serde(rename = "SupportedCompressionTypes")] - #[serde(default)] pub supported_compression_types: std::option::Option>, ///

    The allowed input mode, either FILE or PIPE.

    @@ -59687,8 +55218,6 @@ pub struct ChannelSpecification { /// This is the most commonly used input mode.

    ///

    In PIPE mode, Amazon SageMaker streams input data from the source directly to your /// algorithm without using the EBS volume.

    - #[serde(rename = "SupportedInputModes")] - #[serde(default)] pub supported_input_modes: std::option::Option>, } impl std::fmt::Debug for ChannelSpecification { @@ -59816,38 +55345,24 @@ impl ChannelSpecification { ///

    Defines a hyperparameter to be used by an algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HyperParameterSpecification { ///

    The name of this hyperparameter. The name must be unique.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A brief description of the hyperparameter.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The type of this hyperparameter. The valid types are Integer, /// Continuous, Categorical, and FreeText.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The allowed range for this hyperparameter.

    - #[serde(rename = "Range")] - #[serde(default)] pub range: std::option::Option, ///

    Indicates whether this hyperparameter is tunable in a hyperparameter tuning /// job.

    - #[serde(rename = "IsTunable")] - #[serde(default)] pub is_tunable: bool, ///

    Indicates whether this hyperparameter is required.

    - #[serde(rename = "IsRequired")] - #[serde(default)] pub is_required: bool, ///

    The default value for this hyperparameter. If a default value is specified, a /// hyperparameter cannot be required.

    - #[serde(rename = "DefaultValue")] - #[serde(default)] pub default_value: std::option::Option, } impl std::fmt::Debug for HyperParameterSpecification { @@ -59974,24 +55489,18 @@ impl HyperParameterSpecification { ///

    Defines the possible values for categorical, continuous, and integer hyperparameters /// to be used by an algorithm.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterRange { ///

    A IntegerParameterRangeSpecification object that defines the possible /// values for an integer hyperparameter.

    - #[serde(rename = "IntegerParameterRangeSpecification")] - #[serde(default)] pub integer_parameter_range_specification: std::option::Option, ///

    A ContinuousParameterRangeSpecification object that defines the possible /// values for a continuous hyperparameter.

    - #[serde(rename = "ContinuousParameterRangeSpecification")] - #[serde(default)] pub continuous_parameter_range_specification: std::option::Option, ///

    A CategoricalParameterRangeSpecification object that defines the possible /// values for a categorical hyperparameter.

    - #[serde(rename = "CategoricalParameterRangeSpecification")] - #[serde(default)] pub categorical_parameter_range_specification: std::option::Option, } @@ -60096,11 +55605,9 @@ impl ParameterRange { ///

    Defines the possible values for a categorical hyperparameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CategoricalParameterRangeSpecification { ///

    The allowed categories for the hyperparameter.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for CategoricalParameterRangeSpecification { @@ -60149,15 +55656,11 @@ impl CategoricalParameterRangeSpecification { ///

    Defines the possible values for a continuous hyperparameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContinuousParameterRangeSpecification { ///

    The minimum floating-point value allowed.

    - #[serde(rename = "MinValue")] - #[serde(default)] pub min_value: std::option::Option, ///

    The maximum floating-point value allowed.

    - #[serde(rename = "MaxValue")] - #[serde(default)] pub max_value: std::option::Option, } impl std::fmt::Debug for ContinuousParameterRangeSpecification { @@ -60214,15 +55717,11 @@ impl ContinuousParameterRangeSpecification { ///

    Defines the possible values for an integer hyperparameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IntegerParameterRangeSpecification { ///

    The minimum integer value allowed.

    - #[serde(rename = "MinValue")] - #[serde(default)] pub min_value: std::option::Option, ///

    The maximum integer value allowed.

    - #[serde(rename = "MaxValue")] - #[serde(default)] pub max_value: std::option::Option, } impl std::fmt::Debug for IntegerParameterRangeSpecification { @@ -60309,7 +55808,7 @@ impl std::convert::From<&str> for ParameterType { impl std::str::FromStr for ParameterType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ParameterType::from(s)) } } @@ -60329,24 +55828,13 @@ impl AsRef for ParameterType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ParameterType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The retention policy for data stored on an Amazon Elastic File System (EFS) volume.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RetentionPolicy { ///

    The default is Retain, which specifies to keep the data stored on the EFS volume.

    ///

    Specify Delete to delete the data stored on the EFS volume.

    - #[serde(rename = "HomeEfsFileSystem")] - #[serde(default)] pub home_efs_file_system: std::option::Option, } impl std::fmt::Debug for RetentionPolicy { @@ -60421,7 +55909,7 @@ impl std::convert::From<&str> for RetentionType { impl std::str::FromStr for RetentionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RetentionType::from(s)) } } @@ -60439,12 +55927,3 @@ impl AsRef for RetentionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RetentionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/sagemaker/src/operation.rs b/sdk/sagemaker/src/operation.rs index 951910ee8032..66fd19fae142 100644 --- a/sdk/sagemaker/src/operation.rs +++ b/sdk/sagemaker/src/operation.rs @@ -13,46 +13,6 @@ impl AddAssociation { pub fn builder() -> crate::input::add_association_input::Builder { crate::input::add_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::AddAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddAssociationError { - kind: crate::error::AddAssociationErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::AddAssociationError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddAssociationError { - kind: crate::error::AddAssociationErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::AddAssociationError::unhandled(e), - }, - _ => crate::error::AddAssociationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::add_association_output::Builder::default(); - builder = - crate::json_deser::add_association_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::AddAssociationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -61,7 +21,11 @@ impl smithy_http::response::ParseStrictResponse for AddAssociation { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_add_association_error(response) + } else { + crate::operation_deser::parse_add_association_response(response) + } } } @@ -100,24 +64,6 @@ impl AddTags { pub fn builder() -> crate::input::add_tags_input::Builder { crate::input::add_tags_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::AddTagsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::add_tags_output::Builder::default(); - builder = crate::json_deser::add_tags_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::AddTagsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -125,7 +71,11 @@ impl AddTags { impl smithy_http::response::ParseStrictResponse for AddTags { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_add_tags_error(response) + } else { + crate::operation_deser::parse_add_tags_response(response) + } } } @@ -140,58 +90,6 @@ impl AssociateTrialComponent { pub fn builder() -> crate::input::associate_trial_component_input::Builder { crate::input::associate_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::AssociateTrialComponentOutput, - crate::error::AssociateTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::AssociateTrialComponentError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateTrialComponentError { - kind: crate::error::AssociateTrialComponentErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::AssociateTrialComponentError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateTrialComponentError { - kind: crate::error::AssociateTrialComponentErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::AssociateTrialComponentError::unhandled(e), - }, - _ => crate::error::AssociateTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::associate_trial_component_output::Builder::default(); - builder = crate::json_deser::associate_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::AssociateTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -202,7 +100,11 @@ impl smithy_http::response::ParseStrictResponse for AssociateTrialComponent { crate::error::AssociateTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_associate_trial_component_error(response) + } else { + crate::operation_deser::parse_associate_trial_component_response(response) + } } } @@ -227,39 +129,6 @@ impl CreateAction { pub fn builder() -> crate::input::create_action_input::Builder { crate::input::create_action_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateActionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateActionError { - kind: crate::error::CreateActionErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateActionError::unhandled(e), - }, - _ => crate::error::CreateActionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_action_output::Builder::default(); - builder = - crate::json_deser::create_action_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateActionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -268,7 +137,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAction { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_action_error(response) + } else { + crate::operation_deser::parse_create_action_response(response) + } } } @@ -283,26 +156,6 @@ impl CreateAlgorithm { pub fn builder() -> crate::input::create_algorithm_input::Builder { crate::input::create_algorithm_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::CreateAlgorithmError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_algorithm_output::Builder::default(); - builder = - crate::json_deser::create_algorithm_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateAlgorithmError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -313,7 +166,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAlgorithm { crate::error::CreateAlgorithmError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_algorithm_error(response) + } else { + crate::operation_deser::parse_create_algorithm_response(response) + } } } @@ -330,44 +187,6 @@ impl CreateApp { pub fn builder() -> crate::input::create_app_input::Builder { crate::input::create_app_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateAppError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAppError { - kind: crate::error::CreateAppErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateAppError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAppError { - kind: crate::error::CreateAppErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateAppError::unhandled(e), - }, - _ => crate::error::CreateAppError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_app_output::Builder::default(); - builder = crate::json_deser::create_app_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateAppError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -375,7 +194,11 @@ impl CreateApp { impl smithy_http::response::ParseStrictResponse for CreateApp { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_app_error(response) + } else { + crate::operation_deser::parse_create_app_response(response) + } } } @@ -391,43 +214,6 @@ impl CreateAppImageConfig { pub fn builder() -> crate::input::create_app_image_config_input::Builder { crate::input::create_app_image_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateAppImageConfigOutput, - crate::error::CreateAppImageConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateAppImageConfigError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAppImageConfigError { - kind: crate::error::CreateAppImageConfigErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateAppImageConfigError::unhandled(e), - }, - _ => crate::error::CreateAppImageConfigError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_app_image_config_output::Builder::default(); - builder = crate::json_deser::create_app_image_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateAppImageConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -438,7 +224,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAppImageConfig { crate::error::CreateAppImageConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_app_image_config_error(response) + } else { + crate::operation_deser::parse_create_app_image_config_response(response) + } } } @@ -463,39 +253,6 @@ impl CreateArtifact { pub fn builder() -> crate::input::create_artifact_input::Builder { crate::input::create_artifact_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateArtifactError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateArtifactError { - kind: crate::error::CreateArtifactErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateArtifactError::unhandled(e), - }, - _ => crate::error::CreateArtifactError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_artifact_output::Builder::default(); - builder = - crate::json_deser::create_artifact_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateArtifactError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -504,7 +261,11 @@ impl smithy_http::response::ParseStrictResponse for CreateArtifact { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_artifact_error(response) + } else { + crate::operation_deser::parse_create_artifact_response(response) + } } } @@ -517,63 +278,25 @@ pub struct CreateAutoMLJob { _private: (), } impl CreateAutoMLJob { - /// Creates a new builder-style object to manufacture [`CreateAutoMLJobInput`](crate::input::CreateAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`CreateAutoMlJobInput`](crate::input::CreateAutoMlJobInput) pub fn builder() -> crate::input::create_auto_ml_job_input::Builder { crate::input::create_auto_ml_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateAutoMLJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAutoMLJobError { - kind: crate::error::CreateAutoMLJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateAutoMLJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAutoMLJobError { - kind: crate::error::CreateAutoMLJobErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateAutoMLJobError::unhandled(e), - }, - _ => crate::error::CreateAutoMLJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_auto_ml_job_output::Builder::default(); - builder = crate::json_deser::create_auto_ml_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateAutoMLJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } } impl smithy_http::response::ParseStrictResponse for CreateAutoMLJob { type Output = std::result::Result< - crate::output::CreateAutoMLJobOutput, + crate::output::CreateAutoMlJobOutput, crate::error::CreateAutoMLJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_auto_ml_job_error(response) + } else { + crate::operation_deser::parse_create_auto_ml_job_response(response) + } } } @@ -593,30 +316,6 @@ impl CreateCodeRepository { pub fn builder() -> crate::input::create_code_repository_input::Builder { crate::input::create_code_repository_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateCodeRepositoryOutput, - crate::error::CreateCodeRepositoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::CreateCodeRepositoryError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_code_repository_output::Builder::default(); - builder = crate::json_deser::create_code_repository_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateCodeRepositoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -627,7 +326,11 @@ impl smithy_http::response::ParseStrictResponse for CreateCodeRepository { crate::error::CreateCodeRepositoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_code_repository_error(response) + } else { + crate::operation_deser::parse_create_code_repository_response(response) + } } } @@ -672,52 +375,6 @@ impl CreateCompilationJob { pub fn builder() -> crate::input::create_compilation_job_input::Builder { crate::input::create_compilation_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateCompilationJobOutput, - crate::error::CreateCompilationJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateCompilationJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCompilationJobError { - kind: crate::error::CreateCompilationJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateCompilationJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateCompilationJobError { - kind: crate::error::CreateCompilationJobErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateCompilationJobError::unhandled(e), - }, - _ => crate::error::CreateCompilationJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_compilation_job_output::Builder::default(); - builder = crate::json_deser::create_compilation_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateCompilationJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -728,7 +385,11 @@ impl smithy_http::response::ParseStrictResponse for CreateCompilationJob { crate::error::CreateCompilationJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_compilation_job_error(response) + } else { + crate::operation_deser::parse_create_compilation_job_response(response) + } } } @@ -753,39 +414,6 @@ impl CreateContext { pub fn builder() -> crate::input::create_context_input::Builder { crate::input::create_context_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateContextError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateContextError { - kind: crate::error::CreateContextErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateContextError::unhandled(e), - }, - _ => crate::error::CreateContextError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_context_output::Builder::default(); - builder = - crate::json_deser::create_context_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateContextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -794,7 +422,11 @@ impl smithy_http::response::ParseStrictResponse for CreateContext { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_context_error(response) + } else { + crate::operation_deser::parse_create_context_response(response) + } } } @@ -809,49 +441,6 @@ impl CreateDataQualityJobDefinition { pub fn builder() -> crate::input::create_data_quality_job_definition_input::Builder { crate::input::create_data_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateDataQualityJobDefinitionOutput, - crate::error::CreateDataQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::CreateDataQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDataQualityJobDefinitionError { kind: crate::error::CreateDataQualityJobDefinitionErrorKind::ResourceInUse(body), meta: generic }, - Err(e) => crate::error::CreateDataQualityJobDefinitionError::unhandled(e) - } - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDataQualityJobDefinitionError { kind: crate::error::CreateDataQualityJobDefinitionErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateDataQualityJobDefinitionError::unhandled(e) - } - _ => crate::error::CreateDataQualityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_data_quality_job_definition_output::Builder::default(); - builder = crate::json_deser::create_data_quality_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateDataQualityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -862,7 +451,11 @@ impl smithy_http::response::ParseStrictResponse for CreateDataQualityJobDefiniti crate::error::CreateDataQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_data_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_create_data_quality_job_definition_response(response) + } } } @@ -876,45 +469,6 @@ impl CreateDeviceFleet { pub fn builder() -> crate::input::create_device_fleet_input::Builder { crate::input::create_device_fleet_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateDeviceFleetOutput, - crate::error::CreateDeviceFleetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateDeviceFleetError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDeviceFleetError { - kind: crate::error::CreateDeviceFleetErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateDeviceFleetError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDeviceFleetError { - kind: crate::error::CreateDeviceFleetErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateDeviceFleetError::unhandled(e), - }, - _ => crate::error::CreateDeviceFleetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_device_fleet_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -925,7 +479,11 @@ impl smithy_http::response::ParseStrictResponse for CreateDeviceFleet { crate::error::CreateDeviceFleetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_device_fleet_error(response) + } else { + crate::operation_deser::parse_create_device_fleet_response(response) + } } } @@ -979,46 +537,6 @@ impl CreateDomain { pub fn builder() -> crate::input::create_domain_input::Builder { crate::input::create_domain_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateDomainError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDomainError { - kind: crate::error::CreateDomainErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateDomainError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDomainError { - kind: crate::error::CreateDomainErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateDomainError::unhandled(e), - }, - _ => crate::error::CreateDomainError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_domain_output::Builder::default(); - builder = - crate::json_deser::create_domain_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateDomainError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1027,7 +545,11 @@ impl smithy_http::response::ParseStrictResponse for CreateDomain { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_domain_error(response) + } else { + crate::operation_deser::parse_create_domain_response(response) + } } } @@ -1041,44 +563,6 @@ impl CreateEdgePackagingJob { pub fn builder() -> crate::input::create_edge_packaging_job_input::Builder { crate::input::create_edge_packaging_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateEdgePackagingJobOutput, - crate::error::CreateEdgePackagingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateEdgePackagingJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateEdgePackagingJobError { - kind: crate::error::CreateEdgePackagingJobErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateEdgePackagingJobError::unhandled(e), - }, - _ => crate::error::CreateEdgePackagingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_edge_packaging_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1089,7 +573,11 @@ impl smithy_http::response::ParseStrictResponse for CreateEdgePackagingJob { crate::error::CreateEdgePackagingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_edge_packaging_job_error(response) + } else { + crate::operation_deser::parse_create_edge_packaging_job_response(response) + } } } @@ -1179,39 +667,6 @@ impl CreateEndpoint { pub fn builder() -> crate::input::create_endpoint_input::Builder { crate::input::create_endpoint_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateEndpointError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateEndpointError { - kind: crate::error::CreateEndpointErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateEndpointError::unhandled(e), - }, - _ => crate::error::CreateEndpointError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_endpoint_output::Builder::default(); - builder = - crate::json_deser::create_endpoint_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateEndpointError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1220,7 +675,11 @@ impl smithy_http::response::ParseStrictResponse for CreateEndpoint { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_endpoint_error(response) + } else { + crate::operation_deser::parse_create_endpoint_response(response) + } } } @@ -1267,45 +726,6 @@ impl CreateEndpointConfig { pub fn builder() -> crate::input::create_endpoint_config_input::Builder { crate::input::create_endpoint_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateEndpointConfigOutput, - crate::error::CreateEndpointConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateEndpointConfigError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateEndpointConfigError { - kind: crate::error::CreateEndpointConfigErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateEndpointConfigError::unhandled(e), - }, - _ => crate::error::CreateEndpointConfigError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_endpoint_config_output::Builder::default(); - builder = crate::json_deser::create_endpoint_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateEndpointConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1316,7 +736,11 @@ impl smithy_http::response::ParseStrictResponse for CreateEndpointConfig { crate::error::CreateEndpointConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_endpoint_config_error(response) + } else { + crate::operation_deser::parse_create_endpoint_config_response(response) + } } } @@ -1346,41 +770,6 @@ impl CreateExperiment { pub fn builder() -> crate::input::create_experiment_input::Builder { crate::input::create_experiment_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateExperimentOutput, - crate::error::CreateExperimentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateExperimentError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateExperimentError { - kind: crate::error::CreateExperimentErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateExperimentError::unhandled(e), - }, - _ => crate::error::CreateExperimentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_experiment_output::Builder::default(); - builder = - crate::json_deser::create_experiment_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateExperimentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1391,7 +780,11 @@ impl smithy_http::response::ParseStrictResponse for CreateExperiment { crate::error::CreateExperimentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_experiment_error(response) + } else { + crate::operation_deser::parse_create_experiment_response(response) + } } } @@ -1417,52 +810,6 @@ impl CreateFeatureGroup { pub fn builder() -> crate::input::create_feature_group_input::Builder { crate::input::create_feature_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateFeatureGroupOutput, - crate::error::CreateFeatureGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateFeatureGroupError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateFeatureGroupError { - kind: crate::error::CreateFeatureGroupErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateFeatureGroupError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateFeatureGroupError { - kind: crate::error::CreateFeatureGroupErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateFeatureGroupError::unhandled(e), - }, - _ => crate::error::CreateFeatureGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_feature_group_output::Builder::default(); - builder = crate::json_deser::create_feature_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateFeatureGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1473,7 +820,11 @@ impl smithy_http::response::ParseStrictResponse for CreateFeatureGroup { crate::error::CreateFeatureGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_feature_group_error(response) + } else { + crate::operation_deser::parse_create_feature_group_response(response) + } } } @@ -1487,52 +838,6 @@ impl CreateFlowDefinition { pub fn builder() -> crate::input::create_flow_definition_input::Builder { crate::input::create_flow_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateFlowDefinitionOutput, - crate::error::CreateFlowDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateFlowDefinitionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateFlowDefinitionError { - kind: crate::error::CreateFlowDefinitionErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateFlowDefinitionError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateFlowDefinitionError { - kind: crate::error::CreateFlowDefinitionErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateFlowDefinitionError::unhandled(e), - }, - _ => crate::error::CreateFlowDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_flow_definition_output::Builder::default(); - builder = crate::json_deser::create_flow_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateFlowDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1543,7 +848,11 @@ impl smithy_http::response::ParseStrictResponse for CreateFlowDefinition { crate::error::CreateFlowDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_flow_definition_error(response) + } else { + crate::operation_deser::parse_create_flow_definition_response(response) + } } } @@ -1557,50 +866,6 @@ impl CreateHumanTaskUi { pub fn builder() -> crate::input::create_human_task_ui_input::Builder { crate::input::create_human_task_ui_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateHumanTaskUiOutput, - crate::error::CreateHumanTaskUiError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateHumanTaskUiError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateHumanTaskUiError { - kind: crate::error::CreateHumanTaskUiErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateHumanTaskUiError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateHumanTaskUiError { - kind: crate::error::CreateHumanTaskUiErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateHumanTaskUiError::unhandled(e), - }, - _ => crate::error::CreateHumanTaskUiError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_human_task_ui_output::Builder::default(); - builder = crate::json_deser::create_human_task_ui_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateHumanTaskUiError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1611,7 +876,11 @@ impl smithy_http::response::ParseStrictResponse for CreateHumanTaskUi { crate::error::CreateHumanTaskUiError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_human_task_ui_error(response) + } else { + crate::operation_deser::parse_create_human_task_ui_response(response) + } } } @@ -1629,49 +898,6 @@ impl CreateHyperParameterTuningJob { pub fn builder() -> crate::input::create_hyper_parameter_tuning_job_input::Builder { crate::input::create_hyper_parameter_tuning_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateHyperParameterTuningJobOutput, - crate::error::CreateHyperParameterTuningJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateHyperParameterTuningJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateHyperParameterTuningJobError { kind: crate::error::CreateHyperParameterTuningJobErrorKind::ResourceInUse(body), meta: generic }, - Err(e) => crate::error::CreateHyperParameterTuningJobError::unhandled(e) - } - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateHyperParameterTuningJobError { kind: crate::error::CreateHyperParameterTuningJobErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateHyperParameterTuningJobError::unhandled(e) - } - _ => crate::error::CreateHyperParameterTuningJobError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_hyper_parameter_tuning_job_output::Builder::default(); - builder = crate::json_deser::create_hyper_parameter_tuning_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateHyperParameterTuningJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1682,7 +908,11 @@ impl smithy_http::response::ParseStrictResponse for CreateHyperParameterTuningJo crate::error::CreateHyperParameterTuningJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_hyper_parameter_tuning_job_error(response) + } else { + crate::operation_deser::parse_create_hyper_parameter_tuning_job_response(response) + } } } @@ -1698,45 +928,6 @@ impl CreateImage { pub fn builder() -> crate::input::create_image_input::Builder { crate::input::create_image_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateImageError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateImageError { - kind: crate::error::CreateImageErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateImageError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateImageError { - kind: crate::error::CreateImageErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateImageError::unhandled(e), - }, - _ => crate::error::CreateImageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_image_output::Builder::default(); - builder = - crate::json_deser::create_image_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateImageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1745,7 +936,11 @@ impl smithy_http::response::ParseStrictResponse for CreateImage { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_image_error(response) + } else { + crate::operation_deser::parse_create_image_response(response) + } } } @@ -1760,59 +955,6 @@ impl CreateImageVersion { pub fn builder() -> crate::input::create_image_version_input::Builder { crate::input::create_image_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateImageVersionOutput, - crate::error::CreateImageVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateImageVersionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateImageVersionError { - kind: crate::error::CreateImageVersionErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateImageVersionError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateImageVersionError { - kind: crate::error::CreateImageVersionErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateImageVersionError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateImageVersionError { - kind: crate::error::CreateImageVersionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreateImageVersionError::unhandled(e), - }, - _ => crate::error::CreateImageVersionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_image_version_output::Builder::default(); - builder = crate::json_deser::create_image_version_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateImageVersionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1823,7 +965,11 @@ impl smithy_http::response::ParseStrictResponse for CreateImageVersion { crate::error::CreateImageVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_image_version_error(response) + } else { + crate::operation_deser::parse_create_image_version_response(response) + } } } @@ -1874,50 +1020,6 @@ impl CreateLabelingJob { pub fn builder() -> crate::input::create_labeling_job_input::Builder { crate::input::create_labeling_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateLabelingJobOutput, - crate::error::CreateLabelingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateLabelingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLabelingJobError { - kind: crate::error::CreateLabelingJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateLabelingJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateLabelingJobError { - kind: crate::error::CreateLabelingJobErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateLabelingJobError::unhandled(e), - }, - _ => crate::error::CreateLabelingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_labeling_job_output::Builder::default(); - builder = crate::json_deser::create_labeling_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateLabelingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1928,7 +1030,11 @@ impl smithy_http::response::ParseStrictResponse for CreateLabelingJob { crate::error::CreateLabelingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_labeling_job_error(response) + } else { + crate::operation_deser::parse_create_labeling_job_response(response) + } } } @@ -1966,38 +1072,6 @@ impl CreateModel { pub fn builder() -> crate::input::create_model_input::Builder { crate::input::create_model_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateModelError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelError { - kind: crate::error::CreateModelErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateModelError::unhandled(e), - }, - _ => crate::error::CreateModelError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_model_output::Builder::default(); - builder = - crate::json_deser::create_model_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateModelError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2006,7 +1080,11 @@ impl smithy_http::response::ParseStrictResponse for CreateModel { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_error(response) + } else { + crate::operation_deser::parse_create_model_response(response) + } } } @@ -2020,49 +1098,6 @@ impl CreateModelBiasJobDefinition { pub fn builder() -> crate::input::create_model_bias_job_definition_input::Builder { crate::input::create_model_bias_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateModelBiasJobDefinitionOutput, - crate::error::CreateModelBiasJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateModelBiasJobDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelBiasJobDefinitionError { kind: crate::error::CreateModelBiasJobDefinitionErrorKind::ResourceInUse(body), meta: generic }, - Err(e) => crate::error::CreateModelBiasJobDefinitionError::unhandled(e) - } - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelBiasJobDefinitionError { kind: crate::error::CreateModelBiasJobDefinitionErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateModelBiasJobDefinitionError::unhandled(e) - } - _ => crate::error::CreateModelBiasJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_model_bias_job_definition_output::Builder::default(); - builder = crate::json_deser::create_model_bias_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateModelBiasJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2073,7 +1108,11 @@ impl smithy_http::response::ParseStrictResponse for CreateModelBiasJobDefinition crate::error::CreateModelBiasJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_bias_job_definition_error(response) + } else { + crate::operation_deser::parse_create_model_bias_job_definition_response(response) + } } } @@ -2087,51 +1126,6 @@ impl CreateModelExplainabilityJobDefinition { pub fn builder() -> crate::input::create_model_explainability_job_definition_input::Builder { crate::input::create_model_explainability_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateModelExplainabilityJobDefinitionOutput, - crate::error::CreateModelExplainabilityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::CreateModelExplainabilityJobDefinitionError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelExplainabilityJobDefinitionError { kind: crate::error::CreateModelExplainabilityJobDefinitionErrorKind::ResourceInUse(body), meta: generic }, - Err(e) => crate::error::CreateModelExplainabilityJobDefinitionError::unhandled(e) - } - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelExplainabilityJobDefinitionError { kind: crate::error::CreateModelExplainabilityJobDefinitionErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateModelExplainabilityJobDefinitionError::unhandled(e) - } - _ => crate::error::CreateModelExplainabilityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_model_explainability_job_definition_output::Builder::default(); - builder = crate::json_deser::create_model_explainability_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateModelExplainabilityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2142,7 +1136,13 @@ impl smithy_http::response::ParseStrictResponse for CreateModelExplainabilityJob crate::error::CreateModelExplainabilityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_explainability_job_definition_error(response) + } else { + crate::operation_deser::parse_create_model_explainability_job_definition_response( + response, + ) + } } } @@ -2175,52 +1175,6 @@ impl CreateModelPackage { pub fn builder() -> crate::input::create_model_package_input::Builder { crate::input::create_model_package_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateModelPackageOutput, - crate::error::CreateModelPackageError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateModelPackageError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelPackageError { - kind: crate::error::CreateModelPackageErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::CreateModelPackageError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelPackageError { - kind: crate::error::CreateModelPackageErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateModelPackageError::unhandled(e), - }, - _ => crate::error::CreateModelPackageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_model_package_output::Builder::default(); - builder = crate::json_deser::create_model_package_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateModelPackageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2231,7 +1185,11 @@ impl smithy_http::response::ParseStrictResponse for CreateModelPackage { crate::error::CreateModelPackageError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_package_error(response) + } else { + crate::operation_deser::parse_create_model_package_response(response) + } } } @@ -2245,49 +1203,6 @@ impl CreateModelPackageGroup { pub fn builder() -> crate::input::create_model_package_group_input::Builder { crate::input::create_model_package_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateModelPackageGroupOutput, - crate::error::CreateModelPackageGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateModelPackageGroupError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelPackageGroupError { - kind: crate::error::CreateModelPackageGroupErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateModelPackageGroupError::unhandled(e), - }, - _ => crate::error::CreateModelPackageGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_model_package_group_output::Builder::default(); - builder = crate::json_deser::create_model_package_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateModelPackageGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2298,7 +1213,11 @@ impl smithy_http::response::ParseStrictResponse for CreateModelPackageGroup { crate::error::CreateModelPackageGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_package_group_error(response) + } else { + crate::operation_deser::parse_create_model_package_group_response(response) + } } } @@ -2313,49 +1232,6 @@ impl CreateModelQualityJobDefinition { pub fn builder() -> crate::input::create_model_quality_job_definition_input::Builder { crate::input::create_model_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateModelQualityJobDefinitionOutput, - crate::error::CreateModelQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::CreateModelQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelQualityJobDefinitionError { kind: crate::error::CreateModelQualityJobDefinitionErrorKind::ResourceInUse(body), meta: generic }, - Err(e) => crate::error::CreateModelQualityJobDefinitionError::unhandled(e) - } - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateModelQualityJobDefinitionError { kind: crate::error::CreateModelQualityJobDefinitionErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateModelQualityJobDefinitionError::unhandled(e) - } - _ => crate::error::CreateModelQualityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_model_quality_job_definition_output::Builder::default(); - builder = crate::json_deser::create_model_quality_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateModelQualityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2366,7 +1242,11 @@ impl smithy_http::response::ParseStrictResponse for CreateModelQualityJobDefinit crate::error::CreateModelQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_model_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_create_model_quality_job_definition_response(response) + } } } @@ -2381,57 +1261,6 @@ impl CreateMonitoringSchedule { pub fn builder() -> crate::input::create_monitoring_schedule_input::Builder { crate::input::create_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateMonitoringScheduleOutput, - crate::error::CreateMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateMonitoringScheduleError { - kind: crate::error::CreateMonitoringScheduleErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateMonitoringScheduleError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateMonitoringScheduleError { - kind: - crate::error::CreateMonitoringScheduleErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::CreateMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_monitoring_schedule_output::Builder::default(); - builder = crate::json_deser::create_monitoring_schedule_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateMonitoringScheduleError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2442,7 +1271,11 @@ impl smithy_http::response::ParseStrictResponse for CreateMonitoringSchedule { crate::error::CreateMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_create_monitoring_schedule_response(response) + } } } @@ -2490,49 +1323,6 @@ impl CreateNotebookInstance { pub fn builder() -> crate::input::create_notebook_instance_input::Builder { crate::input::create_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateNotebookInstanceOutput, - crate::error::CreateNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateNotebookInstanceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateNotebookInstanceError { - kind: crate::error::CreateNotebookInstanceErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateNotebookInstanceError::unhandled(e), - }, - _ => crate::error::CreateNotebookInstanceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_notebook_instance_output::Builder::default(); - builder = crate::json_deser::create_notebook_instance_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateNotebookInstanceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2543,7 +1333,11 @@ impl smithy_http::response::ParseStrictResponse for CreateNotebookInstance { crate::error::CreateNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_notebook_instance_error(response) + } else { + crate::operation_deser::parse_create_notebook_instance_response(response) + } } } @@ -2570,47 +1364,6 @@ impl CreateNotebookInstanceLifecycleConfig { pub fn builder() -> crate::input::create_notebook_instance_lifecycle_config_input::Builder { crate::input::create_notebook_instance_lifecycle_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateNotebookInstanceLifecycleConfigOutput, - crate::error::CreateNotebookInstanceLifecycleConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateNotebookInstanceLifecycleConfigError { kind: crate::error::CreateNotebookInstanceLifecycleConfigErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled(e) - } - _ => crate::error::CreateNotebookInstanceLifecycleConfigError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_notebook_instance_lifecycle_config_output::Builder::default(); - builder = crate::json_deser::create_notebook_instance_lifecycle_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2621,7 +1374,13 @@ impl smithy_http::response::ParseStrictResponse for CreateNotebookInstanceLifecy crate::error::CreateNotebookInstanceLifecycleConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_notebook_instance_lifecycle_config_error(response) + } else { + crate::operation_deser::parse_create_notebook_instance_lifecycle_config_response( + response, + ) + } } } @@ -2635,46 +1394,6 @@ impl CreatePipeline { pub fn builder() -> crate::input::create_pipeline_input::Builder { crate::input::create_pipeline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreatePipelineError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePipelineError { - kind: crate::error::CreatePipelineErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreatePipelineError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePipelineError { - kind: crate::error::CreatePipelineErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreatePipelineError::unhandled(e), - }, - _ => crate::error::CreatePipelineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_pipeline_output::Builder::default(); - builder = - crate::json_deser::create_pipeline_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreatePipelineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2683,7 +1402,11 @@ impl smithy_http::response::ParseStrictResponse for CreatePipeline { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_pipeline_error(response) + } else { + crate::operation_deser::parse_create_pipeline_response(response) + } } } @@ -2705,49 +1428,6 @@ impl CreatePresignedDomainUrl { pub fn builder() -> crate::input::create_presigned_domain_url_input::Builder { crate::input::create_presigned_domain_url_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreatePresignedDomainUrlOutput, - crate::error::CreatePresignedDomainUrlError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreatePresignedDomainUrlError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePresignedDomainUrlError { - kind: crate::error::CreatePresignedDomainUrlErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreatePresignedDomainUrlError::unhandled(e), - }, - _ => crate::error::CreatePresignedDomainUrlError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_presigned_domain_url_output::Builder::default(); - builder = crate::json_deser::create_presigned_domain_url_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreatePresignedDomainUrlError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2758,7 +1438,11 @@ impl smithy_http::response::ParseStrictResponse for CreatePresignedDomainUrl { crate::error::CreatePresignedDomainUrlError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_presigned_domain_url_error(response) + } else { + crate::operation_deser::parse_create_presigned_domain_url_response(response) + } } } @@ -2789,31 +1473,6 @@ impl CreatePresignedNotebookInstanceUrl { pub fn builder() -> crate::input::create_presigned_notebook_instance_url_input::Builder { crate::input::create_presigned_notebook_instance_url_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreatePresignedNotebookInstanceUrlOutput, - crate::error::CreatePresignedNotebookInstanceUrlError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::CreatePresignedNotebookInstanceUrlError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = - crate::output::create_presigned_notebook_instance_url_output::Builder::default(); - builder = crate::json_deser::create_presigned_notebook_instance_url_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreatePresignedNotebookInstanceUrlError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2824,7 +1483,11 @@ impl smithy_http::response::ParseStrictResponse for CreatePresignedNotebookInsta crate::error::CreatePresignedNotebookInstanceUrlError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_presigned_notebook_instance_url_error(response) + } else { + crate::operation_deser::parse_create_presigned_notebook_instance_url_response(response) + } } } @@ -2838,59 +1501,6 @@ impl CreateProcessingJob { pub fn builder() -> crate::input::create_processing_job_input::Builder { crate::input::create_processing_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateProcessingJobOutput, - crate::error::CreateProcessingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateProcessingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateProcessingJobError { - kind: crate::error::CreateProcessingJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateProcessingJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateProcessingJobError { - kind: crate::error::CreateProcessingJobErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateProcessingJobError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateProcessingJobError { - kind: crate::error::CreateProcessingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreateProcessingJobError::unhandled(e), - }, - _ => crate::error::CreateProcessingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_processing_job_output::Builder::default(); - builder = crate::json_deser::create_processing_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateProcessingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2901,7 +1511,11 @@ impl smithy_http::response::ParseStrictResponse for CreateProcessingJob { crate::error::CreateProcessingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_processing_job_error(response) + } else { + crate::operation_deser::parse_create_processing_job_response(response) + } } } @@ -2916,39 +1530,6 @@ impl CreateProject { pub fn builder() -> crate::input::create_project_input::Builder { crate::input::create_project_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateProjectError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateProjectError { - kind: crate::error::CreateProjectErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateProjectError::unhandled(e), - }, - _ => crate::error::CreateProjectError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_project_output::Builder::default(); - builder = - crate::json_deser::create_project_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateProjectError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2957,7 +1538,11 @@ impl smithy_http::response::ParseStrictResponse for CreateProject { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_project_error(response) + } else { + crate::operation_deser::parse_create_project_response(response) + } } } @@ -3041,57 +1626,6 @@ impl CreateTrainingJob { pub fn builder() -> crate::input::create_training_job_input::Builder { crate::input::create_training_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateTrainingJobOutput, - crate::error::CreateTrainingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTrainingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrainingJobError { - kind: crate::error::CreateTrainingJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateTrainingJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrainingJobError { - kind: crate::error::CreateTrainingJobErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateTrainingJobError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrainingJobError { - kind: crate::error::CreateTrainingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreateTrainingJobError::unhandled(e), - }, - _ => crate::error::CreateTrainingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_training_job_output::Builder::default(); - builder = crate::json_deser::create_training_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateTrainingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3102,7 +1636,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTrainingJob { crate::error::CreateTrainingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_training_job_error(response) + } else { + crate::operation_deser::parse_create_training_job_response(response) + } } } @@ -3150,59 +1688,6 @@ impl CreateTransformJob { pub fn builder() -> crate::input::create_transform_job_input::Builder { crate::input::create_transform_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateTransformJobOutput, - crate::error::CreateTransformJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTransformJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTransformJobError { - kind: crate::error::CreateTransformJobErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateTransformJobError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTransformJobError { - kind: crate::error::CreateTransformJobErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateTransformJobError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTransformJobError { - kind: crate::error::CreateTransformJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreateTransformJobError::unhandled(e), - }, - _ => crate::error::CreateTransformJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_transform_job_output::Builder::default(); - builder = crate::json_deser::create_transform_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateTransformJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3213,7 +1698,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTransformJob { crate::error::CreateTransformJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_transform_job_error(response) + } else { + crate::operation_deser::parse_create_transform_job_response(response) + } } } @@ -3237,45 +1726,6 @@ impl CreateTrial { pub fn builder() -> crate::input::create_trial_input::Builder { crate::input::create_trial_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTrialError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrialError { - kind: crate::error::CreateTrialErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateTrialError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrialError { - kind: crate::error::CreateTrialErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::CreateTrialError::unhandled(e), - }, - _ => crate::error::CreateTrialError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_trial_output::Builder::default(); - builder = - crate::json_deser::create_trial_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateTrialError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3284,7 +1734,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTrial { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_trial_error(response) + } else { + crate::operation_deser::parse_create_trial_response(response) + } } } @@ -3314,45 +1768,6 @@ impl CreateTrialComponent { pub fn builder() -> crate::input::create_trial_component_input::Builder { crate::input::create_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateTrialComponentOutput, - crate::error::CreateTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateTrialComponentError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateTrialComponentError { - kind: crate::error::CreateTrialComponentErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateTrialComponentError::unhandled(e), - }, - _ => crate::error::CreateTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_trial_component_output::Builder::default(); - builder = crate::json_deser::create_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3363,7 +1778,11 @@ impl smithy_http::response::ParseStrictResponse for CreateTrialComponent { crate::error::CreateTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_trial_component_error(response) + } else { + crate::operation_deser::parse_create_trial_component_response(response) + } } } @@ -3383,50 +1802,6 @@ impl CreateUserProfile { pub fn builder() -> crate::input::create_user_profile_input::Builder { crate::input::create_user_profile_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateUserProfileOutput, - crate::error::CreateUserProfileError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateUserProfileError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateUserProfileError { - kind: crate::error::CreateUserProfileErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateUserProfileError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateUserProfileError { - kind: crate::error::CreateUserProfileErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateUserProfileError::unhandled(e), - }, - _ => crate::error::CreateUserProfileError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_user_profile_output::Builder::default(); - builder = crate::json_deser::create_user_profile_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateUserProfileError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3437,7 +1812,11 @@ impl smithy_http::response::ParseStrictResponse for CreateUserProfile { crate::error::CreateUserProfileError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_user_profile_error(response) + } else { + crate::operation_deser::parse_create_user_profile_response(response) + } } } @@ -3468,26 +1847,6 @@ impl CreateWorkforce { pub fn builder() -> crate::input::create_workforce_input::Builder { crate::input::create_workforce_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::CreateWorkforceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_workforce_output::Builder::default(); - builder = - crate::json_deser::create_workforce_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateWorkforceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3498,7 +1857,11 @@ impl smithy_http::response::ParseStrictResponse for CreateWorkforce { crate::error::CreateWorkforceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_workforce_error(response) + } else { + crate::operation_deser::parse_create_workforce_response(response) + } } } @@ -3515,46 +1878,6 @@ impl CreateWorkteam { pub fn builder() -> crate::input::create_workteam_input::Builder { crate::input::create_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateWorkteamError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateWorkteamError { - kind: crate::error::CreateWorkteamErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::CreateWorkteamError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateWorkteamError { - kind: crate::error::CreateWorkteamErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateWorkteamError::unhandled(e), - }, - _ => crate::error::CreateWorkteamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_workteam_output::Builder::default(); - builder = - crate::json_deser::create_workteam_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3563,7 +1886,11 @@ impl smithy_http::response::ParseStrictResponse for CreateWorkteam { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_workteam_error(response) + } else { + crate::operation_deser::parse_create_workteam_response(response) + } } } @@ -3577,39 +1904,6 @@ impl DeleteAction { pub fn builder() -> crate::input::delete_action_input::Builder { crate::input::delete_action_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteActionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteActionError { - kind: crate::error::DeleteActionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteActionError::unhandled(e), - }, - _ => crate::error::DeleteActionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_action_output::Builder::default(); - builder = - crate::json_deser::delete_action_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteActionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3618,7 +1912,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAction { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_action_error(response) + } else { + crate::operation_deser::parse_delete_action_response(response) + } } } @@ -3632,23 +1930,6 @@ impl DeleteAlgorithm { pub fn builder() -> crate::input::delete_algorithm_input::Builder { crate::input::delete_algorithm_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteAlgorithmError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_algorithm_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3659,7 +1940,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAlgorithm { crate::error::DeleteAlgorithmError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_algorithm_error(response) + } else { + crate::operation_deser::parse_delete_algorithm_response(response) + } } } @@ -3673,42 +1958,6 @@ impl DeleteApp { pub fn builder() -> crate::input::delete_app_input::Builder { crate::input::delete_app_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAppError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAppError { - kind: crate::error::DeleteAppErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAppError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAppError { - kind: crate::error::DeleteAppErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAppError::unhandled(e), - }, - _ => crate::error::DeleteAppError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_app_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3716,7 +1965,11 @@ impl DeleteApp { impl smithy_http::response::ParseStrictResponse for DeleteApp { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_app_error(response) + } else { + crate::operation_deser::parse_delete_app_response(response) + } } } @@ -3730,38 +1983,6 @@ impl DeleteAppImageConfig { pub fn builder() -> crate::input::delete_app_image_config_input::Builder { crate::input::delete_app_image_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteAppImageConfigOutput, - crate::error::DeleteAppImageConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAppImageConfigError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAppImageConfigError { - kind: crate::error::DeleteAppImageConfigErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAppImageConfigError::unhandled(e), - }, - _ => crate::error::DeleteAppImageConfigError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_app_image_config_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3772,7 +1993,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAppImageConfig { crate::error::DeleteAppImageConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_app_image_config_error(response) + } else { + crate::operation_deser::parse_delete_app_image_config_response(response) + } } } @@ -3787,39 +2012,6 @@ impl DeleteArtifact { pub fn builder() -> crate::input::delete_artifact_input::Builder { crate::input::delete_artifact_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteArtifactError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteArtifactError { - kind: crate::error::DeleteArtifactErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteArtifactError::unhandled(e), - }, - _ => crate::error::DeleteArtifactError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_artifact_output::Builder::default(); - builder = - crate::json_deser::delete_artifact_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteArtifactError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3828,7 +2020,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteArtifact { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_artifact_error(response) + } else { + crate::operation_deser::parse_delete_artifact_response(response) + } } } @@ -3842,43 +2038,6 @@ impl DeleteAssociation { pub fn builder() -> crate::input::delete_association_input::Builder { crate::input::delete_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteAssociationOutput, - crate::error::DeleteAssociationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - _ => crate::error::DeleteAssociationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_association_output::Builder::default(); - builder = crate::json_deser::delete_association_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteAssociationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3889,7 +2048,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAssociation { crate::error::DeleteAssociationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_association_error(response) + } else { + crate::operation_deser::parse_delete_association_response(response) + } } } @@ -3903,25 +2066,6 @@ impl DeleteCodeRepository { pub fn builder() -> crate::input::delete_code_repository_input::Builder { crate::input::delete_code_repository_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteCodeRepositoryOutput, - crate::error::DeleteCodeRepositoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteCodeRepositoryError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_code_repository_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3932,7 +2076,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteCodeRepository { crate::error::DeleteCodeRepositoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_code_repository_error(response) + } else { + crate::operation_deser::parse_delete_code_repository_response(response) + } } } @@ -3946,39 +2094,6 @@ impl DeleteContext { pub fn builder() -> crate::input::delete_context_input::Builder { crate::input::delete_context_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteContextError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteContextError { - kind: crate::error::DeleteContextErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteContextError::unhandled(e), - }, - _ => crate::error::DeleteContextError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_context_output::Builder::default(); - builder = - crate::json_deser::delete_context_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteContextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3987,7 +2102,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteContext { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_context_error(response) + } else { + crate::operation_deser::parse_delete_context_response(response) + } } } @@ -4001,46 +2120,6 @@ impl DeleteDataQualityJobDefinition { pub fn builder() -> crate::input::delete_data_quality_job_definition_input::Builder { crate::input::delete_data_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteDataQualityJobDefinitionOutput, - crate::error::DeleteDataQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeleteDataQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDataQualityJobDefinitionError { - kind: - crate::error::DeleteDataQualityJobDefinitionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteDataQualityJobDefinitionError::unhandled(e), - }, - _ => crate::error::DeleteDataQualityJobDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_data_quality_job_definition_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4051,7 +2130,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteDataQualityJobDefiniti crate::error::DeleteDataQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_data_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_delete_data_quality_job_definition_response(response) + } } } @@ -4065,38 +2148,6 @@ impl DeleteDeviceFleet { pub fn builder() -> crate::input::delete_device_fleet_input::Builder { crate::input::delete_device_fleet_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteDeviceFleetOutput, - crate::error::DeleteDeviceFleetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteDeviceFleetError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDeviceFleetError { - kind: crate::error::DeleteDeviceFleetErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDeviceFleetError::unhandled(e), - }, - _ => crate::error::DeleteDeviceFleetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_device_fleet_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4107,7 +2158,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteDeviceFleet { crate::error::DeleteDeviceFleetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_device_fleet_error(response) + } else { + crate::operation_deser::parse_delete_device_fleet_response(response) + } } } @@ -4125,43 +2180,6 @@ impl DeleteDomain { pub fn builder() -> crate::input::delete_domain_input::Builder { crate::input::delete_domain_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteDomainError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDomainError { - kind: crate::error::DeleteDomainErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDomainError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDomainError { - kind: crate::error::DeleteDomainErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDomainError::unhandled(e), - }, - _ => crate::error::DeleteDomainError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_domain_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4170,7 +2188,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteDomain { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_domain_error(response) + } else { + crate::operation_deser::parse_delete_domain_response(response) + } } } @@ -4187,23 +2209,6 @@ impl DeleteEndpoint { pub fn builder() -> crate::input::delete_endpoint_input::Builder { crate::input::delete_endpoint_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteEndpointError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_endpoint_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4212,7 +2217,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteEndpoint { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_endpoint_error(response) + } else { + crate::operation_deser::parse_delete_endpoint_response(response) + } } } @@ -4234,25 +2243,6 @@ impl DeleteEndpointConfig { pub fn builder() -> crate::input::delete_endpoint_config_input::Builder { crate::input::delete_endpoint_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteEndpointConfigOutput, - crate::error::DeleteEndpointConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteEndpointConfigError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_endpoint_config_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4263,7 +2253,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteEndpointConfig { crate::error::DeleteEndpointConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_endpoint_config_error(response) + } else { + crate::operation_deser::parse_delete_endpoint_config_response(response) + } } } @@ -4279,41 +2273,6 @@ impl DeleteExperiment { pub fn builder() -> crate::input::delete_experiment_input::Builder { crate::input::delete_experiment_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteExperimentOutput, - crate::error::DeleteExperimentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteExperimentError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteExperimentError { - kind: crate::error::DeleteExperimentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteExperimentError::unhandled(e), - }, - _ => crate::error::DeleteExperimentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_experiment_output::Builder::default(); - builder = - crate::json_deser::delete_experiment_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteExperimentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4324,7 +2283,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteExperiment { crate::error::DeleteExperimentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_experiment_error(response) + } else { + crate::operation_deser::parse_delete_experiment_response(response) + } } } @@ -4343,38 +2306,6 @@ impl DeleteFeatureGroup { pub fn builder() -> crate::input::delete_feature_group_input::Builder { crate::input::delete_feature_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteFeatureGroupOutput, - crate::error::DeleteFeatureGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteFeatureGroupError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteFeatureGroupError { - kind: crate::error::DeleteFeatureGroupErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteFeatureGroupError::unhandled(e), - }, - _ => crate::error::DeleteFeatureGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_feature_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4385,7 +2316,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteFeatureGroup { crate::error::DeleteFeatureGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_feature_group_error(response) + } else { + crate::operation_deser::parse_delete_feature_group_response(response) + } } } @@ -4399,45 +2334,6 @@ impl DeleteFlowDefinition { pub fn builder() -> crate::input::delete_flow_definition_input::Builder { crate::input::delete_flow_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteFlowDefinitionOutput, - crate::error::DeleteFlowDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteFlowDefinitionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteFlowDefinitionError { - kind: crate::error::DeleteFlowDefinitionErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteFlowDefinitionError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteFlowDefinitionError { - kind: crate::error::DeleteFlowDefinitionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteFlowDefinitionError::unhandled(e), - }, - _ => crate::error::DeleteFlowDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_flow_definition_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4448,7 +2344,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteFlowDefinition { crate::error::DeleteFlowDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_flow_definition_error(response) + } else { + crate::operation_deser::parse_delete_flow_definition_response(response) + } } } @@ -4466,38 +2366,6 @@ impl DeleteHumanTaskUi { pub fn builder() -> crate::input::delete_human_task_ui_input::Builder { crate::input::delete_human_task_ui_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteHumanTaskUiOutput, - crate::error::DeleteHumanTaskUiError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteHumanTaskUiError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteHumanTaskUiError { - kind: crate::error::DeleteHumanTaskUiErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteHumanTaskUiError::unhandled(e), - }, - _ => crate::error::DeleteHumanTaskUiError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_human_task_ui_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4508,7 +2376,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteHumanTaskUi { crate::error::DeleteHumanTaskUiError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_human_task_ui_error(response) + } else { + crate::operation_deser::parse_delete_human_task_ui_response(response) + } } } @@ -4523,42 +2395,6 @@ impl DeleteImage { pub fn builder() -> crate::input::delete_image_input::Builder { crate::input::delete_image_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteImageError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImageError { - kind: crate::error::DeleteImageErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteImageError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImageError { - kind: crate::error::DeleteImageErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteImageError::unhandled(e), - }, - _ => crate::error::DeleteImageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_image_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4567,7 +2403,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteImage { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_image_error(response) + } else { + crate::operation_deser::parse_delete_image_response(response) + } } } @@ -4582,45 +2422,6 @@ impl DeleteImageVersion { pub fn builder() -> crate::input::delete_image_version_input::Builder { crate::input::delete_image_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteImageVersionOutput, - crate::error::DeleteImageVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteImageVersionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImageVersionError { - kind: crate::error::DeleteImageVersionErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteImageVersionError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteImageVersionError { - kind: crate::error::DeleteImageVersionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteImageVersionError::unhandled(e), - }, - _ => crate::error::DeleteImageVersionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_image_version_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4631,7 +2432,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteImageVersion { crate::error::DeleteImageVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_image_version_error(response) + } else { + crate::operation_deser::parse_delete_image_version_response(response) + } } } @@ -4648,22 +2453,6 @@ impl DeleteModel { pub fn builder() -> crate::input::delete_model_input::Builder { crate::input::delete_model_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteModelError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_model_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4672,7 +2461,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModel { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_error(response) + } else { + crate::operation_deser::parse_delete_model_response(response) + } } } @@ -4686,45 +2479,6 @@ impl DeleteModelBiasJobDefinition { pub fn builder() -> crate::input::delete_model_bias_job_definition_input::Builder { crate::input::delete_model_bias_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelBiasJobDefinitionOutput, - crate::error::DeleteModelBiasJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteModelBiasJobDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteModelBiasJobDefinitionError { - kind: crate::error::DeleteModelBiasJobDefinitionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteModelBiasJobDefinitionError::unhandled(e), - }, - _ => crate::error::DeleteModelBiasJobDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_model_bias_job_definition_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4735,7 +2489,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelBiasJobDefinition crate::error::DeleteModelBiasJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_bias_job_definition_error(response) + } else { + crate::operation_deser::parse_delete_model_bias_job_definition_response(response) + } } } @@ -4749,42 +2507,6 @@ impl DeleteModelExplainabilityJobDefinition { pub fn builder() -> crate::input::delete_model_explainability_job_definition_input::Builder { crate::input::delete_model_explainability_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelExplainabilityJobDefinitionOutput, - crate::error::DeleteModelExplainabilityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeleteModelExplainabilityJobDefinitionError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteModelExplainabilityJobDefinitionError { kind: crate::error::DeleteModelExplainabilityJobDefinitionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::DeleteModelExplainabilityJobDefinitionError::unhandled(e) - } - _ => crate::error::DeleteModelExplainabilityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_model_explainability_job_definition_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4795,7 +2517,13 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelExplainabilityJob crate::error::DeleteModelExplainabilityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_explainability_job_definition_error(response) + } else { + crate::operation_deser::parse_delete_model_explainability_job_definition_response( + response, + ) + } } } @@ -4811,38 +2539,6 @@ impl DeleteModelPackage { pub fn builder() -> crate::input::delete_model_package_input::Builder { crate::input::delete_model_package_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelPackageOutput, - crate::error::DeleteModelPackageError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteModelPackageError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteModelPackageError { - kind: crate::error::DeleteModelPackageErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteModelPackageError::unhandled(e), - }, - _ => crate::error::DeleteModelPackageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_model_package_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4853,7 +2549,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelPackage { crate::error::DeleteModelPackageError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_package_error(response) + } else { + crate::operation_deser::parse_delete_model_package_response(response) + } } } @@ -4867,25 +2567,6 @@ impl DeleteModelPackageGroup { pub fn builder() -> crate::input::delete_model_package_group_input::Builder { crate::input::delete_model_package_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelPackageGroupOutput, - crate::error::DeleteModelPackageGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteModelPackageGroupError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_model_package_group_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4896,7 +2577,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelPackageGroup { crate::error::DeleteModelPackageGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_package_group_error(response) + } else { + crate::operation_deser::parse_delete_model_package_group_response(response) + } } } @@ -4910,28 +2595,6 @@ impl DeleteModelPackageGroupPolicy { pub fn builder() -> crate::input::delete_model_package_group_policy_input::Builder { crate::input::delete_model_package_group_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelPackageGroupPolicyOutput, - crate::error::DeleteModelPackageGroupPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteModelPackageGroupPolicyError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_model_package_group_policy_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4942,7 +2605,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelPackageGroupPolic crate::error::DeleteModelPackageGroupPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_package_group_policy_error(response) + } else { + crate::operation_deser::parse_delete_model_package_group_policy_response(response) + } } } @@ -4956,46 +2623,6 @@ impl DeleteModelQualityJobDefinition { pub fn builder() -> crate::input::delete_model_quality_job_definition_input::Builder { crate::input::delete_model_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteModelQualityJobDefinitionOutput, - crate::error::DeleteModelQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeleteModelQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteModelQualityJobDefinitionError { - kind: - crate::error::DeleteModelQualityJobDefinitionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteModelQualityJobDefinitionError::unhandled(e), - }, - _ => crate::error::DeleteModelQualityJobDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_model_quality_job_definition_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5006,7 +2633,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteModelQualityJobDefinit crate::error::DeleteModelQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_model_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_delete_model_quality_job_definition_response(response) + } } } @@ -5021,44 +2652,6 @@ impl DeleteMonitoringSchedule { pub fn builder() -> crate::input::delete_monitoring_schedule_input::Builder { crate::input::delete_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteMonitoringScheduleOutput, - crate::error::DeleteMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMonitoringScheduleError { - kind: crate::error::DeleteMonitoringScheduleErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::DeleteMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_monitoring_schedule_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5069,7 +2662,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteMonitoringSchedule { crate::error::DeleteMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_delete_monitoring_schedule_response(response) + } } } @@ -5089,25 +2686,6 @@ impl DeleteNotebookInstance { pub fn builder() -> crate::input::delete_notebook_instance_input::Builder { crate::input::delete_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteNotebookInstanceOutput, - crate::error::DeleteNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteNotebookInstanceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_notebook_instance_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5118,7 +2696,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteNotebookInstance { crate::error::DeleteNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_notebook_instance_error(response) + } else { + crate::operation_deser::parse_delete_notebook_instance_response(response) + } } } @@ -5132,26 +2714,6 @@ impl DeleteNotebookInstanceLifecycleConfig { pub fn builder() -> crate::input::delete_notebook_instance_lifecycle_config_input::Builder { crate::input::delete_notebook_instance_lifecycle_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteNotebookInstanceLifecycleConfigOutput, - crate::error::DeleteNotebookInstanceLifecycleConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteNotebookInstanceLifecycleConfigError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = - crate::output::delete_notebook_instance_lifecycle_config_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5162,7 +2724,13 @@ impl smithy_http::response::ParseStrictResponse for DeleteNotebookInstanceLifecy crate::error::DeleteNotebookInstanceLifecycleConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_notebook_instance_lifecycle_config_error(response) + } else { + crate::operation_deser::parse_delete_notebook_instance_lifecycle_config_response( + response, + ) + } } } @@ -5179,39 +2747,6 @@ impl DeletePipeline { pub fn builder() -> crate::input::delete_pipeline_input::Builder { crate::input::delete_pipeline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeletePipelineError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeletePipelineError { - kind: crate::error::DeletePipelineErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeletePipelineError::unhandled(e), - }, - _ => crate::error::DeletePipelineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_pipeline_output::Builder::default(); - builder = - crate::json_deser::delete_pipeline_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeletePipelineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5220,7 +2755,11 @@ impl smithy_http::response::ParseStrictResponse for DeletePipeline { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_pipeline_error(response) + } else { + crate::operation_deser::parse_delete_pipeline_response(response) + } } } @@ -5234,23 +2773,6 @@ impl DeleteProject { pub fn builder() -> crate::input::delete_project_input::Builder { crate::input::delete_project_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteProjectError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_project_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5259,7 +2781,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteProject { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_project_error(response) + } else { + crate::operation_deser::parse_delete_project_response(response) + } } } @@ -5284,22 +2810,6 @@ impl DeleteTags { pub fn builder() -> crate::input::delete_tags_input::Builder { crate::input::delete_tags_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteTagsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_tags_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5308,7 +2818,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteTags { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_tags_error(response) + } else { + crate::operation_deser::parse_delete_tags_response(response) + } } } @@ -5324,38 +2838,6 @@ impl DeleteTrial { pub fn builder() -> crate::input::delete_trial_input::Builder { crate::input::delete_trial_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteTrialError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTrialError { - kind: crate::error::DeleteTrialErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTrialError::unhandled(e), - }, - _ => crate::error::DeleteTrialError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_trial_output::Builder::default(); - builder = - crate::json_deser::delete_trial_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteTrialError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5364,7 +2846,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteTrial { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_trial_error(response) + } else { + crate::operation_deser::parse_delete_trial_response(response) + } } } @@ -5380,43 +2866,6 @@ impl DeleteTrialComponent { pub fn builder() -> crate::input::delete_trial_component_input::Builder { crate::input::delete_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteTrialComponentOutput, - crate::error::DeleteTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteTrialComponentError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteTrialComponentError { - kind: crate::error::DeleteTrialComponentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteTrialComponentError::unhandled(e), - }, - _ => crate::error::DeleteTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_trial_component_output::Builder::default(); - builder = crate::json_deser::delete_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5427,7 +2876,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteTrialComponent { crate::error::DeleteTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_trial_component_error(response) + } else { + crate::operation_deser::parse_delete_trial_component_response(response) + } } } @@ -5442,45 +2895,6 @@ impl DeleteUserProfile { pub fn builder() -> crate::input::delete_user_profile_input::Builder { crate::input::delete_user_profile_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteUserProfileOutput, - crate::error::DeleteUserProfileError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteUserProfileError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteUserProfileError { - kind: crate::error::DeleteUserProfileErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::DeleteUserProfileError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteUserProfileError { - kind: crate::error::DeleteUserProfileErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteUserProfileError::unhandled(e), - }, - _ => crate::error::DeleteUserProfileError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_user_profile_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5491,7 +2905,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteUserProfile { crate::error::DeleteUserProfileError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_user_profile_error(response) + } else { + crate::operation_deser::parse_delete_user_profile_response(response) + } } } @@ -5516,23 +2934,6 @@ impl DeleteWorkforce { pub fn builder() -> crate::input::delete_workforce_input::Builder { crate::input::delete_workforce_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeleteWorkforceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_workforce_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5543,7 +2944,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteWorkforce { crate::error::DeleteWorkforceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_workforce_error(response) + } else { + crate::operation_deser::parse_delete_workforce_response(response) + } } } @@ -5557,39 +2962,6 @@ impl DeleteWorkteam { pub fn builder() -> crate::input::delete_workteam_input::Builder { crate::input::delete_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteWorkteamError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteWorkteamError { - kind: crate::error::DeleteWorkteamErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::DeleteWorkteamError::unhandled(e), - }, - _ => crate::error::DeleteWorkteamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_workteam_output::Builder::default(); - builder = - crate::json_deser::delete_workteam_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5598,7 +2970,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteWorkteam { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_workteam_error(response) + } else { + crate::operation_deser::parse_delete_workteam_response(response) + } } } @@ -5612,25 +2988,6 @@ impl DeregisterDevices { pub fn builder() -> crate::input::deregister_devices_input::Builder { crate::input::deregister_devices_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterDevicesOutput, - crate::error::DeregisterDevicesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DeregisterDevicesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::deregister_devices_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5641,7 +2998,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterDevices { crate::error::DeregisterDevicesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_devices_error(response) + } else { + crate::operation_deser::parse_deregister_devices_response(response) + } } } @@ -5655,39 +3016,6 @@ impl DescribeAction { pub fn builder() -> crate::input::describe_action_input::Builder { crate::input::describe_action_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeActionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeActionError { - kind: crate::error::DescribeActionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeActionError::unhandled(e), - }, - _ => crate::error::DescribeActionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_action_output::Builder::default(); - builder = - crate::json_deser::describe_action_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeActionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5696,7 +3024,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAction { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_action_error(response) + } else { + crate::operation_deser::parse_describe_action_response(response) + } } } @@ -5710,30 +3042,6 @@ impl DescribeAlgorithm { pub fn builder() -> crate::input::describe_algorithm_input::Builder { crate::input::describe_algorithm_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAlgorithmOutput, - crate::error::DescribeAlgorithmError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeAlgorithmError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_algorithm_output::Builder::default(); - builder = crate::json_deser::describe_algorithm_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAlgorithmError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5744,7 +3052,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAlgorithm { crate::error::DescribeAlgorithmError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_algorithm_error(response) + } else { + crate::operation_deser::parse_describe_algorithm_response(response) + } } } @@ -5758,38 +3070,6 @@ impl DescribeApp { pub fn builder() -> crate::input::describe_app_input::Builder { crate::input::describe_app_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeAppError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAppError { - kind: crate::error::DescribeAppErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAppError::unhandled(e), - }, - _ => crate::error::DescribeAppError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_app_output::Builder::default(); - builder = - crate::json_deser::describe_app_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeAppError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5798,7 +3078,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeApp { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_app_error(response) + } else { + crate::operation_deser::parse_describe_app_response(response) + } } } @@ -5812,47 +3096,6 @@ impl DescribeAppImageConfig { pub fn builder() -> crate::input::describe_app_image_config_input::Builder { crate::input::describe_app_image_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAppImageConfigOutput, - crate::error::DescribeAppImageConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeAppImageConfigError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAppImageConfigError { - kind: crate::error::DescribeAppImageConfigErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAppImageConfigError::unhandled(e), - }, - _ => crate::error::DescribeAppImageConfigError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_app_image_config_output::Builder::default(); - builder = crate::json_deser::describe_app_image_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAppImageConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5863,7 +3106,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAppImageConfig { crate::error::DescribeAppImageConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_app_image_config_error(response) + } else { + crate::operation_deser::parse_describe_app_image_config_response(response) + } } } @@ -5877,41 +3124,6 @@ impl DescribeArtifact { pub fn builder() -> crate::input::describe_artifact_input::Builder { crate::input::describe_artifact_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeArtifactOutput, - crate::error::DescribeArtifactError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeArtifactError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeArtifactError { - kind: crate::error::DescribeArtifactErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeArtifactError::unhandled(e), - }, - _ => crate::error::DescribeArtifactError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_artifact_output::Builder::default(); - builder = - crate::json_deser::describe_artifact_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeArtifactError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5922,7 +3134,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeArtifact { crate::error::DescribeArtifactError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_artifact_error(response) + } else { + crate::operation_deser::parse_describe_artifact_response(response) + } } } @@ -5932,58 +3148,25 @@ pub struct DescribeAutoMLJob { _private: (), } impl DescribeAutoMLJob { - /// Creates a new builder-style object to manufacture [`DescribeAutoMLJobInput`](crate::input::DescribeAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`DescribeAutoMlJobInput`](crate::input::DescribeAutoMlJobInput) pub fn builder() -> crate::input::describe_auto_ml_job_input::Builder { crate::input::describe_auto_ml_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAutoMLJobOutput, - crate::error::DescribeAutoMLJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeAutoMLJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutoMLJobError { - kind: crate::error::DescribeAutoMLJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAutoMLJobError::unhandled(e), - }, - _ => crate::error::DescribeAutoMLJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_auto_ml_job_output::Builder::default(); - builder = crate::json_deser::describe_auto_ml_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAutoMLJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } } impl smithy_http::response::ParseStrictResponse for DescribeAutoMLJob { type Output = std::result::Result< - crate::output::DescribeAutoMLJobOutput, + crate::output::DescribeAutoMlJobOutput, crate::error::DescribeAutoMLJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_auto_ml_job_error(response) + } else { + crate::operation_deser::parse_describe_auto_ml_job_response(response) + } } } @@ -5997,30 +3180,6 @@ impl DescribeCodeRepository { pub fn builder() -> crate::input::describe_code_repository_input::Builder { crate::input::describe_code_repository_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeCodeRepositoryOutput, - crate::error::DescribeCodeRepositoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeCodeRepositoryError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_code_repository_output::Builder::default(); - builder = crate::json_deser::describe_code_repository_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeCodeRepositoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6031,7 +3190,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeCodeRepository { crate::error::DescribeCodeRepositoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_code_repository_error(response) + } else { + crate::operation_deser::parse_describe_code_repository_response(response) + } } } @@ -6047,47 +3210,6 @@ impl DescribeCompilationJob { pub fn builder() -> crate::input::describe_compilation_job_input::Builder { crate::input::describe_compilation_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeCompilationJobOutput, - crate::error::DescribeCompilationJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeCompilationJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeCompilationJobError { - kind: crate::error::DescribeCompilationJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeCompilationJobError::unhandled(e), - }, - _ => crate::error::DescribeCompilationJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_compilation_job_output::Builder::default(); - builder = crate::json_deser::describe_compilation_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeCompilationJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6098,7 +3220,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeCompilationJob { crate::error::DescribeCompilationJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_compilation_job_error(response) + } else { + crate::operation_deser::parse_describe_compilation_job_response(response) + } } } @@ -6112,39 +3238,6 @@ impl DescribeContext { pub fn builder() -> crate::input::describe_context_input::Builder { crate::input::describe_context_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeContextError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeContextError { - kind: crate::error::DescribeContextErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeContextError::unhandled(e), - }, - _ => crate::error::DescribeContextError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_context_output::Builder::default(); - builder = - crate::json_deser::describe_context_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeContextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6155,7 +3248,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeContext { crate::error::DescribeContextError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_context_error(response) + } else { + crate::operation_deser::parse_describe_context_response(response) + } } } @@ -6169,45 +3266,6 @@ impl DescribeDataQualityJobDefinition { pub fn builder() -> crate::input::describe_data_quality_job_definition_input::Builder { crate::input::describe_data_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeDataQualityJobDefinitionOutput, - crate::error::DescribeDataQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeDataQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDataQualityJobDefinitionError { kind: crate::error::DescribeDataQualityJobDefinitionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::DescribeDataQualityJobDefinitionError::unhandled(e) - } - _ => crate::error::DescribeDataQualityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_data_quality_job_definition_output::Builder::default(); - builder = crate::json_deser::describe_data_quality_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeDataQualityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6218,7 +3276,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDataQualityJobDefini crate::error::DescribeDataQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_data_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_describe_data_quality_job_definition_response(response) + } } } @@ -6232,39 +3294,6 @@ impl DescribeDevice { pub fn builder() -> crate::input::describe_device_input::Builder { crate::input::describe_device_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeDeviceError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDeviceError { - kind: crate::error::DescribeDeviceErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDeviceError::unhandled(e), - }, - _ => crate::error::DescribeDeviceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_device_output::Builder::default(); - builder = - crate::json_deser::describe_device_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeDeviceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6273,7 +3302,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDevice { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_device_error(response) + } else { + crate::operation_deser::parse_describe_device_response(response) + } } } @@ -6287,43 +3320,6 @@ impl DescribeDeviceFleet { pub fn builder() -> crate::input::describe_device_fleet_input::Builder { crate::input::describe_device_fleet_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeDeviceFleetOutput, - crate::error::DescribeDeviceFleetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeDeviceFleetError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDeviceFleetError { - kind: crate::error::DescribeDeviceFleetErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDeviceFleetError::unhandled(e), - }, - _ => crate::error::DescribeDeviceFleetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_device_fleet_output::Builder::default(); - builder = crate::json_deser::describe_device_fleet_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeDeviceFleetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6334,7 +3330,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDeviceFleet { crate::error::DescribeDeviceFleetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_device_fleet_error(response) + } else { + crate::operation_deser::parse_describe_device_fleet_response(response) + } } } @@ -6348,39 +3348,6 @@ impl DescribeDomain { pub fn builder() -> crate::input::describe_domain_input::Builder { crate::input::describe_domain_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeDomainError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDomainError { - kind: crate::error::DescribeDomainErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDomainError::unhandled(e), - }, - _ => crate::error::DescribeDomainError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_domain_output::Builder::default(); - builder = - crate::json_deser::describe_domain_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeDomainError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6389,7 +3356,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDomain { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_domain_error(response) + } else { + crate::operation_deser::parse_describe_domain_response(response) + } } } @@ -6403,49 +3374,6 @@ impl DescribeEdgePackagingJob { pub fn builder() -> crate::input::describe_edge_packaging_job_input::Builder { crate::input::describe_edge_packaging_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEdgePackagingJobOutput, - crate::error::DescribeEdgePackagingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeEdgePackagingJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEdgePackagingJobError { - kind: crate::error::DescribeEdgePackagingJobErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeEdgePackagingJobError::unhandled(e), - }, - _ => crate::error::DescribeEdgePackagingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_edge_packaging_job_output::Builder::default(); - builder = crate::json_deser::describe_edge_packaging_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeEdgePackagingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6456,7 +3384,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeEdgePackagingJob { crate::error::DescribeEdgePackagingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_edge_packaging_job_error(response) + } else { + crate::operation_deser::parse_describe_edge_packaging_job_response(response) + } } } @@ -6470,28 +3402,6 @@ impl DescribeEndpoint { pub fn builder() -> crate::input::describe_endpoint_input::Builder { crate::input::describe_endpoint_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEndpointOutput, - crate::error::DescribeEndpointError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeEndpointError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_endpoint_output::Builder::default(); - builder = - crate::json_deser::describe_endpoint_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeEndpointError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6502,7 +3412,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeEndpoint { crate::error::DescribeEndpointError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_endpoint_error(response) + } else { + crate::operation_deser::parse_describe_endpoint_response(response) + } } } @@ -6517,30 +3431,6 @@ impl DescribeEndpointConfig { pub fn builder() -> crate::input::describe_endpoint_config_input::Builder { crate::input::describe_endpoint_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEndpointConfigOutput, - crate::error::DescribeEndpointConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeEndpointConfigError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_endpoint_config_output::Builder::default(); - builder = crate::json_deser::describe_endpoint_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeEndpointConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6551,7 +3441,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeEndpointConfig { crate::error::DescribeEndpointConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_endpoint_config_error(response) + } else { + crate::operation_deser::parse_describe_endpoint_config_response(response) + } } } @@ -6565,43 +3459,6 @@ impl DescribeExperiment { pub fn builder() -> crate::input::describe_experiment_input::Builder { crate::input::describe_experiment_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeExperimentOutput, - crate::error::DescribeExperimentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeExperimentError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeExperimentError { - kind: crate::error::DescribeExperimentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeExperimentError::unhandled(e), - }, - _ => crate::error::DescribeExperimentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_experiment_output::Builder::default(); - builder = crate::json_deser::describe_experiment_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeExperimentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6612,7 +3469,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeExperiment { crate::error::DescribeExperimentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_experiment_error(response) + } else { + crate::operation_deser::parse_describe_experiment_response(response) + } } } @@ -6628,43 +3489,6 @@ impl DescribeFeatureGroup { pub fn builder() -> crate::input::describe_feature_group_input::Builder { crate::input::describe_feature_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeFeatureGroupOutput, - crate::error::DescribeFeatureGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeFeatureGroupError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeFeatureGroupError { - kind: crate::error::DescribeFeatureGroupErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeFeatureGroupError::unhandled(e), - }, - _ => crate::error::DescribeFeatureGroupError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_feature_group_output::Builder::default(); - builder = crate::json_deser::describe_feature_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeFeatureGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6675,7 +3499,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeFeatureGroup { crate::error::DescribeFeatureGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_feature_group_error(response) + } else { + crate::operation_deser::parse_describe_feature_group_response(response) + } } } @@ -6689,47 +3517,6 @@ impl DescribeFlowDefinition { pub fn builder() -> crate::input::describe_flow_definition_input::Builder { crate::input::describe_flow_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeFlowDefinitionOutput, - crate::error::DescribeFlowDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeFlowDefinitionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeFlowDefinitionError { - kind: crate::error::DescribeFlowDefinitionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeFlowDefinitionError::unhandled(e), - }, - _ => crate::error::DescribeFlowDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_flow_definition_output::Builder::default(); - builder = crate::json_deser::describe_flow_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeFlowDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6740,7 +3527,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeFlowDefinition { crate::error::DescribeFlowDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_flow_definition_error(response) + } else { + crate::operation_deser::parse_describe_flow_definition_response(response) + } } } @@ -6754,43 +3545,6 @@ impl DescribeHumanTaskUi { pub fn builder() -> crate::input::describe_human_task_ui_input::Builder { crate::input::describe_human_task_ui_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeHumanTaskUiOutput, - crate::error::DescribeHumanTaskUiError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeHumanTaskUiError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeHumanTaskUiError { - kind: crate::error::DescribeHumanTaskUiErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeHumanTaskUiError::unhandled(e), - }, - _ => crate::error::DescribeHumanTaskUiError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_human_task_ui_output::Builder::default(); - builder = crate::json_deser::describe_human_task_ui_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeHumanTaskUiError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6801,7 +3555,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeHumanTaskUi { crate::error::DescribeHumanTaskUiError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_human_task_ui_error(response) + } else { + crate::operation_deser::parse_describe_human_task_ui_response(response) + } } } @@ -6816,51 +3574,6 @@ impl DescribeHyperParameterTuningJob { pub fn builder() -> crate::input::describe_hyper_parameter_tuning_job_input::Builder { crate::input::describe_hyper_parameter_tuning_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeHyperParameterTuningJobOutput, - crate::error::DescribeHyperParameterTuningJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeHyperParameterTuningJobError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeHyperParameterTuningJobError { - kind: - crate::error::DescribeHyperParameterTuningJobErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeHyperParameterTuningJobError::unhandled(e), - }, - _ => crate::error::DescribeHyperParameterTuningJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_hyper_parameter_tuning_job_output::Builder::default(); - builder = crate::json_deser::describe_hyper_parameter_tuning_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeHyperParameterTuningJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6871,7 +3584,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeHyperParameterTuning crate::error::DescribeHyperParameterTuningJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_hyper_parameter_tuning_job_error(response) + } else { + crate::operation_deser::parse_describe_hyper_parameter_tuning_job_response(response) + } } } @@ -6885,39 +3602,6 @@ impl DescribeImage { pub fn builder() -> crate::input::describe_image_input::Builder { crate::input::describe_image_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeImageError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeImageError { - kind: crate::error::DescribeImageErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeImageError::unhandled(e), - }, - _ => crate::error::DescribeImageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_image_output::Builder::default(); - builder = - crate::json_deser::describe_image_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeImageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6926,7 +3610,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeImage { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_image_error(response) + } else { + crate::operation_deser::parse_describe_image_response(response) + } } } @@ -6940,43 +3628,6 @@ impl DescribeImageVersion { pub fn builder() -> crate::input::describe_image_version_input::Builder { crate::input::describe_image_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeImageVersionOutput, - crate::error::DescribeImageVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeImageVersionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeImageVersionError { - kind: crate::error::DescribeImageVersionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeImageVersionError::unhandled(e), - }, - _ => crate::error::DescribeImageVersionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_image_version_output::Builder::default(); - builder = crate::json_deser::describe_image_version_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeImageVersionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6987,7 +3638,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeImageVersion { crate::error::DescribeImageVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_image_version_error(response) + } else { + crate::operation_deser::parse_describe_image_version_response(response) + } } } @@ -7001,43 +3656,6 @@ impl DescribeLabelingJob { pub fn builder() -> crate::input::describe_labeling_job_input::Builder { crate::input::describe_labeling_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeLabelingJobOutput, - crate::error::DescribeLabelingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeLabelingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeLabelingJobError { - kind: crate::error::DescribeLabelingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeLabelingJobError::unhandled(e), - }, - _ => crate::error::DescribeLabelingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_labeling_job_output::Builder::default(); - builder = crate::json_deser::describe_labeling_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeLabelingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7048,7 +3666,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeLabelingJob { crate::error::DescribeLabelingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_labeling_job_error(response) + } else { + crate::operation_deser::parse_describe_labeling_job_response(response) + } } } @@ -7063,26 +3685,6 @@ impl DescribeModel { pub fn builder() -> crate::input::describe_model_input::Builder { crate::input::describe_model_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeModelError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_model_output::Builder::default(); - builder = - crate::json_deser::describe_model_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeModelError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7091,7 +3693,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeModel { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_error(response) + } else { + crate::operation_deser::parse_describe_model_response(response) + } } } @@ -7105,51 +3711,6 @@ impl DescribeModelBiasJobDefinition { pub fn builder() -> crate::input::describe_model_bias_job_definition_input::Builder { crate::input::describe_model_bias_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeModelBiasJobDefinitionOutput, - crate::error::DescribeModelBiasJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeModelBiasJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeModelBiasJobDefinitionError { - kind: - crate::error::DescribeModelBiasJobDefinitionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeModelBiasJobDefinitionError::unhandled(e), - }, - _ => crate::error::DescribeModelBiasJobDefinitionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_model_bias_job_definition_output::Builder::default(); - builder = crate::json_deser::describe_model_bias_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeModelBiasJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7160,7 +3721,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeModelBiasJobDefiniti crate::error::DescribeModelBiasJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_bias_job_definition_error(response) + } else { + crate::operation_deser::parse_describe_model_bias_job_definition_response(response) + } } } @@ -7174,47 +3739,6 @@ impl DescribeModelExplainabilityJobDefinition { pub fn builder() -> crate::input::describe_model_explainability_job_definition_input::Builder { crate::input::describe_model_explainability_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeModelExplainabilityJobDefinitionOutput, - crate::error::DescribeModelExplainabilityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeModelExplainabilityJobDefinitionError { kind: crate::error::DescribeModelExplainabilityJobDefinitionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled(e) - } - _ => crate::error::DescribeModelExplainabilityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_model_explainability_job_definition_output::Builder::default(); - builder = crate::json_deser::describe_model_explainability_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7225,7 +3749,15 @@ impl smithy_http::response::ParseStrictResponse for DescribeModelExplainabilityJ crate::error::DescribeModelExplainabilityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_explainability_job_definition_error( + response, + ) + } else { + crate::operation_deser::parse_describe_model_explainability_job_definition_response( + response, + ) + } } } @@ -7242,30 +3774,6 @@ impl DescribeModelPackage { pub fn builder() -> crate::input::describe_model_package_input::Builder { crate::input::describe_model_package_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeModelPackageOutput, - crate::error::DescribeModelPackageError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeModelPackageError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_model_package_output::Builder::default(); - builder = crate::json_deser::describe_model_package_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeModelPackageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7276,7 +3784,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeModelPackage { crate::error::DescribeModelPackageError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_package_error(response) + } else { + crate::operation_deser::parse_describe_model_package_response(response) + } } } @@ -7290,32 +3802,6 @@ impl DescribeModelPackageGroup { pub fn builder() -> crate::input::describe_model_package_group_input::Builder { crate::input::describe_model_package_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeModelPackageGroupOutput, - crate::error::DescribeModelPackageGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeModelPackageGroupError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_model_package_group_output::Builder::default(); - builder = crate::json_deser::describe_model_package_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeModelPackageGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7326,7 +3812,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeModelPackageGroup { crate::error::DescribeModelPackageGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_package_group_error(response) + } else { + crate::operation_deser::parse_describe_model_package_group_response(response) + } } } @@ -7340,45 +3830,6 @@ impl DescribeModelQualityJobDefinition { pub fn builder() -> crate::input::describe_model_quality_job_definition_input::Builder { crate::input::describe_model_quality_job_definition_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeModelQualityJobDefinitionOutput, - crate::error::DescribeModelQualityJobDefinitionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeModelQualityJobDefinitionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeModelQualityJobDefinitionError { kind: crate::error::DescribeModelQualityJobDefinitionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::DescribeModelQualityJobDefinitionError::unhandled(e) - } - _ => crate::error::DescribeModelQualityJobDefinitionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_model_quality_job_definition_output::Builder::default(); - builder = crate::json_deser::describe_model_quality_job_definition_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeModelQualityJobDefinitionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7389,7 +3840,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeModelQualityJobDefin crate::error::DescribeModelQualityJobDefinitionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_model_quality_job_definition_error(response) + } else { + crate::operation_deser::parse_describe_model_quality_job_definition_response(response) + } } } @@ -7403,49 +3858,6 @@ impl DescribeMonitoringSchedule { pub fn builder() -> crate::input::describe_monitoring_schedule_input::Builder { crate::input::describe_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMonitoringScheduleOutput, - crate::error::DescribeMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMonitoringScheduleError { - kind: crate::error::DescribeMonitoringScheduleErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::DescribeMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_monitoring_schedule_output::Builder::default(); - builder = crate::json_deser::describe_monitoring_schedule_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMonitoringScheduleError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7456,7 +3868,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMonitoringSchedule { crate::error::DescribeMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_describe_monitoring_schedule_response(response) + } } } @@ -7470,32 +3886,6 @@ impl DescribeNotebookInstance { pub fn builder() -> crate::input::describe_notebook_instance_input::Builder { crate::input::describe_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeNotebookInstanceOutput, - crate::error::DescribeNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeNotebookInstanceError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_notebook_instance_output::Builder::default(); - builder = crate::json_deser::describe_notebook_instance_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeNotebookInstanceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7506,7 +3896,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeNotebookInstance { crate::error::DescribeNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_notebook_instance_error(response) + } else { + crate::operation_deser::parse_describe_notebook_instance_response(response) + } } } @@ -7522,33 +3916,6 @@ impl DescribeNotebookInstanceLifecycleConfig { pub fn builder() -> crate::input::describe_notebook_instance_lifecycle_config_input::Builder { crate::input::describe_notebook_instance_lifecycle_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeNotebookInstanceLifecycleConfigOutput, - crate::error::DescribeNotebookInstanceLifecycleConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err( - crate::error::DescribeNotebookInstanceLifecycleConfigError::generic(generic), - ); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_notebook_instance_lifecycle_config_output::Builder::default(); - builder = crate::json_deser::describe_notebook_instance_lifecycle_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeNotebookInstanceLifecycleConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7559,7 +3926,15 @@ impl smithy_http::response::ParseStrictResponse for DescribeNotebookInstanceLife crate::error::DescribeNotebookInstanceLifecycleConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_notebook_instance_lifecycle_config_error( + response, + ) + } else { + crate::operation_deser::parse_describe_notebook_instance_lifecycle_config_response( + response, + ) + } } } @@ -7573,41 +3948,6 @@ impl DescribePipeline { pub fn builder() -> crate::input::describe_pipeline_input::Builder { crate::input::describe_pipeline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePipelineOutput, - crate::error::DescribePipelineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribePipelineError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePipelineError { - kind: crate::error::DescribePipelineErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribePipelineError::unhandled(e), - }, - _ => crate::error::DescribePipelineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_pipeline_output::Builder::default(); - builder = - crate::json_deser::describe_pipeline_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribePipelineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7618,7 +3958,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePipeline { crate::error::DescribePipelineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_pipeline_error(response) + } else { + crate::operation_deser::parse_describe_pipeline_response(response) + } } } @@ -7632,47 +3976,6 @@ impl DescribePipelineDefinitionForExecution { pub fn builder() -> crate::input::describe_pipeline_definition_for_execution_input::Builder { crate::input::describe_pipeline_definition_for_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePipelineDefinitionForExecutionOutput, - crate::error::DescribePipelineDefinitionForExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribePipelineDefinitionForExecutionError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePipelineDefinitionForExecutionError { kind: crate::error::DescribePipelineDefinitionForExecutionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::DescribePipelineDefinitionForExecutionError::unhandled(e) - } - _ => crate::error::DescribePipelineDefinitionForExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_pipeline_definition_for_execution_output::Builder::default(); - builder = crate::json_deser::describe_pipeline_definition_for_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePipelineDefinitionForExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7683,7 +3986,13 @@ impl smithy_http::response::ParseStrictResponse for DescribePipelineDefinitionFo crate::error::DescribePipelineDefinitionForExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_pipeline_definition_for_execution_error(response) + } else { + crate::operation_deser::parse_describe_pipeline_definition_for_execution_response( + response, + ) + } } } @@ -7697,49 +4006,6 @@ impl DescribePipelineExecution { pub fn builder() -> crate::input::describe_pipeline_execution_input::Builder { crate::input::describe_pipeline_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePipelineExecutionOutput, - crate::error::DescribePipelineExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribePipelineExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePipelineExecutionError { - kind: crate::error::DescribePipelineExecutionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribePipelineExecutionError::unhandled(e), - }, - _ => crate::error::DescribePipelineExecutionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_pipeline_execution_output::Builder::default(); - builder = crate::json_deser::describe_pipeline_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePipelineExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7750,7 +4016,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePipelineExecution { crate::error::DescribePipelineExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_pipeline_execution_error(response) + } else { + crate::operation_deser::parse_describe_pipeline_execution_response(response) + } } } @@ -7764,43 +4034,6 @@ impl DescribeProcessingJob { pub fn builder() -> crate::input::describe_processing_job_input::Builder { crate::input::describe_processing_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeProcessingJobOutput, - crate::error::DescribeProcessingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeProcessingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeProcessingJobError { - kind: crate::error::DescribeProcessingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeProcessingJobError::unhandled(e), - }, - _ => crate::error::DescribeProcessingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_processing_job_output::Builder::default(); - builder = crate::json_deser::describe_processing_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeProcessingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7811,7 +4044,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeProcessingJob { crate::error::DescribeProcessingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_processing_job_error(response) + } else { + crate::operation_deser::parse_describe_processing_job_response(response) + } } } @@ -7825,26 +4062,6 @@ impl DescribeProject { pub fn builder() -> crate::input::describe_project_input::Builder { crate::input::describe_project_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeProjectError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_project_output::Builder::default(); - builder = - crate::json_deser::describe_project_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeProjectError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7855,7 +4072,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeProject { crate::error::DescribeProjectError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_project_error(response) + } else { + crate::operation_deser::parse_describe_project_response(response) + } } } @@ -7870,32 +4091,6 @@ impl DescribeSubscribedWorkteam { pub fn builder() -> crate::input::describe_subscribed_workteam_input::Builder { crate::input::describe_subscribed_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeSubscribedWorkteamOutput, - crate::error::DescribeSubscribedWorkteamError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeSubscribedWorkteamError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_subscribed_workteam_output::Builder::default(); - builder = crate::json_deser::describe_subscribed_workteam_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeSubscribedWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7906,7 +4101,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeSubscribedWorkteam { crate::error::DescribeSubscribedWorkteamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_subscribed_workteam_error(response) + } else { + crate::operation_deser::parse_describe_subscribed_workteam_response(response) + } } } @@ -7926,43 +4125,6 @@ impl DescribeTrainingJob { pub fn builder() -> crate::input::describe_training_job_input::Builder { crate::input::describe_training_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTrainingJobOutput, - crate::error::DescribeTrainingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTrainingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTrainingJobError { - kind: crate::error::DescribeTrainingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTrainingJobError::unhandled(e), - }, - _ => crate::error::DescribeTrainingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_training_job_output::Builder::default(); - builder = crate::json_deser::describe_training_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTrainingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7973,7 +4135,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTrainingJob { crate::error::DescribeTrainingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_training_job_error(response) + } else { + crate::operation_deser::parse_describe_training_job_response(response) + } } } @@ -7987,43 +4153,6 @@ impl DescribeTransformJob { pub fn builder() -> crate::input::describe_transform_job_input::Builder { crate::input::describe_transform_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTransformJobOutput, - crate::error::DescribeTransformJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTransformJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTransformJobError { - kind: crate::error::DescribeTransformJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTransformJobError::unhandled(e), - }, - _ => crate::error::DescribeTransformJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_transform_job_output::Builder::default(); - builder = crate::json_deser::describe_transform_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTransformJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8034,7 +4163,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTransformJob { crate::error::DescribeTransformJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_transform_job_error(response) + } else { + crate::operation_deser::parse_describe_transform_job_response(response) + } } } @@ -8048,39 +4181,6 @@ impl DescribeTrial { pub fn builder() -> crate::input::describe_trial_input::Builder { crate::input::describe_trial_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeTrialError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTrialError { - kind: crate::error::DescribeTrialErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTrialError::unhandled(e), - }, - _ => crate::error::DescribeTrialError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_trial_output::Builder::default(); - builder = - crate::json_deser::describe_trial_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeTrialError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8089,7 +4189,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTrial { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_trial_error(response) + } else { + crate::operation_deser::parse_describe_trial_response(response) + } } } @@ -8103,47 +4207,6 @@ impl DescribeTrialComponent { pub fn builder() -> crate::input::describe_trial_component_input::Builder { crate::input::describe_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeTrialComponentOutput, - crate::error::DescribeTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeTrialComponentError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeTrialComponentError { - kind: crate::error::DescribeTrialComponentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeTrialComponentError::unhandled(e), - }, - _ => crate::error::DescribeTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_trial_component_output::Builder::default(); - builder = crate::json_deser::describe_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8154,7 +4217,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeTrialComponent { crate::error::DescribeTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_trial_component_error(response) + } else { + crate::operation_deser::parse_describe_trial_component_response(response) + } } } @@ -8168,43 +4235,6 @@ impl DescribeUserProfile { pub fn builder() -> crate::input::describe_user_profile_input::Builder { crate::input::describe_user_profile_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeUserProfileOutput, - crate::error::DescribeUserProfileError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeUserProfileError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeUserProfileError { - kind: crate::error::DescribeUserProfileErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DescribeUserProfileError::unhandled(e), - }, - _ => crate::error::DescribeUserProfileError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_user_profile_output::Builder::default(); - builder = crate::json_deser::describe_user_profile_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeUserProfileError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8215,7 +4245,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeUserProfile { crate::error::DescribeUserProfileError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_user_profile_error(response) + } else { + crate::operation_deser::parse_describe_user_profile_response(response) + } } } @@ -8234,30 +4268,6 @@ impl DescribeWorkforce { pub fn builder() -> crate::input::describe_workforce_input::Builder { crate::input::describe_workforce_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeWorkforceOutput, - crate::error::DescribeWorkforceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeWorkforceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_workforce_output::Builder::default(); - builder = crate::json_deser::describe_workforce_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeWorkforceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8268,7 +4278,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeWorkforce { crate::error::DescribeWorkforceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_workforce_error(response) + } else { + crate::operation_deser::parse_describe_workforce_response(response) + } } } @@ -8284,28 +4298,6 @@ impl DescribeWorkteam { pub fn builder() -> crate::input::describe_workteam_input::Builder { crate::input::describe_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeWorkteamOutput, - crate::error::DescribeWorkteamError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::DescribeWorkteamError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_workteam_output::Builder::default(); - builder = - crate::json_deser::describe_workteam_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8316,7 +4308,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeWorkteam { crate::error::DescribeWorkteamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_workteam_error(response) + } else { + crate::operation_deser::parse_describe_workteam_response(response) + } } } @@ -8331,28 +4327,6 @@ impl DisableSagemakerServicecatalogPortfolio { pub fn builder() -> crate::input::disable_sagemaker_servicecatalog_portfolio_input::Builder { crate::input::disable_sagemaker_servicecatalog_portfolio_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisableSagemakerServicecatalogPortfolioOutput, - crate::error::DisableSagemakerServicecatalogPortfolioError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err( - crate::error::DisableSagemakerServicecatalogPortfolioError::generic(generic), - ); - } - #[allow(unused_mut)] - let mut builder = - crate::output::disable_sagemaker_servicecatalog_portfolio_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8363,7 +4337,13 @@ impl smithy_http::response::ParseStrictResponse for DisableSagemakerServicecatal crate::error::DisableSagemakerServicecatalogPortfolioError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disable_sagemaker_servicecatalog_portfolio_error(response) + } else { + crate::operation_deser::parse_disable_sagemaker_servicecatalog_portfolio_response( + response, + ) + } } } @@ -8382,49 +4362,6 @@ impl DisassociateTrialComponent { pub fn builder() -> crate::input::disassociate_trial_component_input::Builder { crate::input::disassociate_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisassociateTrialComponentOutput, - crate::error::DisassociateTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DisassociateTrialComponentError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateTrialComponentError { - kind: crate::error::DisassociateTrialComponentErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DisassociateTrialComponentError::unhandled(e), - }, - _ => crate::error::DisassociateTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::disassociate_trial_component_output::Builder::default(); - builder = crate::json_deser::disassociate_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DisassociateTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8435,7 +4372,11 @@ impl smithy_http::response::ParseStrictResponse for DisassociateTrialComponent { crate::error::DisassociateTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disassociate_trial_component_error(response) + } else { + crate::operation_deser::parse_disassociate_trial_component_response(response) + } } } @@ -8450,26 +4391,6 @@ impl EnableSagemakerServicecatalogPortfolio { pub fn builder() -> crate::input::enable_sagemaker_servicecatalog_portfolio_input::Builder { crate::input::enable_sagemaker_servicecatalog_portfolio_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::EnableSagemakerServicecatalogPortfolioOutput, - crate::error::EnableSagemakerServicecatalogPortfolioError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::EnableSagemakerServicecatalogPortfolioError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = - crate::output::enable_sagemaker_servicecatalog_portfolio_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8480,7 +4401,13 @@ impl smithy_http::response::ParseStrictResponse for EnableSagemakerServicecatalo crate::error::EnableSagemakerServicecatalogPortfolioError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_enable_sagemaker_servicecatalog_portfolio_error(response) + } else { + crate::operation_deser::parse_enable_sagemaker_servicecatalog_portfolio_response( + response, + ) + } } } @@ -8494,30 +4421,6 @@ impl GetDeviceFleetReport { pub fn builder() -> crate::input::get_device_fleet_report_input::Builder { crate::input::get_device_fleet_report_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetDeviceFleetReportOutput, - crate::error::GetDeviceFleetReportError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::GetDeviceFleetReportError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_device_fleet_report_output::Builder::default(); - builder = crate::json_deser::get_device_fleet_report_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetDeviceFleetReportError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8528,7 +4431,11 @@ impl smithy_http::response::ParseStrictResponse for GetDeviceFleetReport { crate::error::GetDeviceFleetReportError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_device_fleet_report_error(response) + } else { + crate::operation_deser::parse_get_device_fleet_report_response(response) + } } } @@ -8545,32 +4452,6 @@ impl GetModelPackageGroupPolicy { pub fn builder() -> crate::input::get_model_package_group_policy_input::Builder { crate::input::get_model_package_group_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetModelPackageGroupPolicyOutput, - crate::error::GetModelPackageGroupPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::GetModelPackageGroupPolicyError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_model_package_group_policy_output::Builder::default(); - builder = crate::json_deser::get_model_package_group_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetModelPackageGroupPolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8581,7 +4462,11 @@ impl smithy_http::response::ParseStrictResponse for GetModelPackageGroupPolicy { crate::error::GetModelPackageGroupPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_model_package_group_policy_error(response) + } else { + crate::operation_deser::parse_get_model_package_group_policy_response(response) + } } } @@ -8596,33 +4481,6 @@ impl GetSagemakerServicecatalogPortfolioStatus { pub fn builder() -> crate::input::get_sagemaker_servicecatalog_portfolio_status_input::Builder { crate::input::get_sagemaker_servicecatalog_portfolio_status_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetSagemakerServicecatalogPortfolioStatusOutput, - crate::error::GetSagemakerServicecatalogPortfolioStatusError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err( - crate::error::GetSagemakerServicecatalogPortfolioStatusError::generic(generic), - ); - } - #[allow(unused_mut)] - let mut builder = - crate::output::get_sagemaker_servicecatalog_portfolio_status_output::Builder::default(); - builder = crate::json_deser::get_sagemaker_servicecatalog_portfolio_status_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetSagemakerServicecatalogPortfolioStatusError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8633,7 +4491,15 @@ impl smithy_http::response::ParseStrictResponse for GetSagemakerServicecatalogPo crate::error::GetSagemakerServicecatalogPortfolioStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_sagemaker_servicecatalog_portfolio_status_error( + response, + ) + } else { + crate::operation_deser::parse_get_sagemaker_servicecatalog_portfolio_status_response( + response, + ) + } } } @@ -8650,30 +4516,6 @@ impl GetSearchSuggestions { pub fn builder() -> crate::input::get_search_suggestions_input::Builder { crate::input::get_search_suggestions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetSearchSuggestionsOutput, - crate::error::GetSearchSuggestionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::GetSearchSuggestionsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_search_suggestions_output::Builder::default(); - builder = crate::json_deser::get_search_suggestions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetSearchSuggestionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8684,7 +4526,11 @@ impl smithy_http::response::ParseStrictResponse for GetSearchSuggestions { crate::error::GetSearchSuggestionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_search_suggestions_error(response) + } else { + crate::operation_deser::parse_get_search_suggestions_response(response) + } } } @@ -8698,38 +4544,6 @@ impl ListActions { pub fn builder() -> crate::input::list_actions_input::Builder { crate::input::list_actions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListActionsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListActionsError { - kind: crate::error::ListActionsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListActionsError::unhandled(e), - }, - _ => crate::error::ListActionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_actions_output::Builder::default(); - builder = - crate::json_deser::list_actions_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListActionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8738,7 +4552,11 @@ impl smithy_http::response::ParseStrictResponse for ListActions { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_actions_error(response) + } else { + crate::operation_deser::parse_list_actions_response(response) + } } } @@ -8752,26 +4570,6 @@ impl ListAlgorithms { pub fn builder() -> crate::input::list_algorithms_input::Builder { crate::input::list_algorithms_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListAlgorithmsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_algorithms_output::Builder::default(); - builder = - crate::json_deser::list_algorithms_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAlgorithmsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8780,7 +4578,11 @@ impl smithy_http::response::ParseStrictResponse for ListAlgorithms { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_algorithms_error(response) + } else { + crate::operation_deser::parse_list_algorithms_response(response) + } } } @@ -8796,30 +4598,6 @@ impl ListAppImageConfigs { pub fn builder() -> crate::input::list_app_image_configs_input::Builder { crate::input::list_app_image_configs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListAppImageConfigsOutput, - crate::error::ListAppImageConfigsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListAppImageConfigsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_app_image_configs_output::Builder::default(); - builder = crate::json_deser::list_app_image_configs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListAppImageConfigsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8830,7 +4608,11 @@ impl smithy_http::response::ParseStrictResponse for ListAppImageConfigs { crate::error::ListAppImageConfigsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_app_image_configs_error(response) + } else { + crate::operation_deser::parse_list_app_image_configs_response(response) + } } } @@ -8844,24 +4626,6 @@ impl ListApps { pub fn builder() -> crate::input::list_apps_input::Builder { crate::input::list_apps_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListAppsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_apps_output::Builder::default(); - builder = crate::json_deser::list_apps_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAppsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8869,7 +4633,11 @@ impl ListApps { impl smithy_http::response::ParseStrictResponse for ListApps { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_apps_error(response) + } else { + crate::operation_deser::parse_list_apps_response(response) + } } } @@ -8883,39 +4651,6 @@ impl ListArtifacts { pub fn builder() -> crate::input::list_artifacts_input::Builder { crate::input::list_artifacts_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListArtifactsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListArtifactsError { - kind: crate::error::ListArtifactsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListArtifactsError::unhandled(e), - }, - _ => crate::error::ListArtifactsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_artifacts_output::Builder::default(); - builder = - crate::json_deser::list_artifacts_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListArtifactsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8924,7 +4659,11 @@ impl smithy_http::response::ParseStrictResponse for ListArtifacts { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_artifacts_error(response) + } else { + crate::operation_deser::parse_list_artifacts_response(response) + } } } @@ -8938,41 +4677,6 @@ impl ListAssociations { pub fn builder() -> crate::input::list_associations_input::Builder { crate::input::list_associations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListAssociationsOutput, - crate::error::ListAssociationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListAssociationsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationsError { - kind: crate::error::ListAssociationsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListAssociationsError::unhandled(e), - }, - _ => crate::error::ListAssociationsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_associations_output::Builder::default(); - builder = - crate::json_deser::list_associations_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAssociationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8983,7 +4687,11 @@ impl smithy_http::response::ParseStrictResponse for ListAssociations { crate::error::ListAssociationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_associations_error(response) + } else { + crate::operation_deser::parse_list_associations_response(response) + } } } @@ -8993,39 +4701,23 @@ pub struct ListAutoMLJobs { _private: (), } impl ListAutoMLJobs { - /// Creates a new builder-style object to manufacture [`ListAutoMLJobsInput`](crate::input::ListAutoMLJobsInput) + /// Creates a new builder-style object to manufacture [`ListAutoMlJobsInput`](crate::input::ListAutoMlJobsInput) pub fn builder() -> crate::input::list_auto_ml_jobs_input::Builder { crate::input::list_auto_ml_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListAutoMLJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_auto_ml_jobs_output::Builder::default(); - builder = - crate::json_deser::list_auto_ml_jobs_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAutoMLJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } } impl smithy_http::response::ParseStrictResponse for ListAutoMLJobs { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_auto_ml_jobs_error(response) + } else { + crate::operation_deser::parse_list_auto_ml_jobs_response(response) + } } } @@ -9035,64 +4727,25 @@ pub struct ListCandidatesForAutoMLJob { _private: (), } impl ListCandidatesForAutoMLJob { - /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMLJobInput`](crate::input::ListCandidatesForAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMlJobInput`](crate::input::ListCandidatesForAutoMlJobInput) pub fn builder() -> crate::input::list_candidates_for_auto_ml_job_input::Builder { crate::input::list_candidates_for_auto_ml_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListCandidatesForAutoMLJobOutput, - crate::error::ListCandidatesForAutoMLJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListCandidatesForAutoMLJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCandidatesForAutoMLJobError { - kind: crate::error::ListCandidatesForAutoMLJobErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListCandidatesForAutoMLJobError::unhandled(e), - }, - _ => crate::error::ListCandidatesForAutoMLJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_candidates_for_auto_ml_job_output::Builder::default(); - builder = crate::json_deser::list_candidates_for_auto_ml_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListCandidatesForAutoMLJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } } impl smithy_http::response::ParseStrictResponse for ListCandidatesForAutoMLJob { type Output = std::result::Result< - crate::output::ListCandidatesForAutoMLJobOutput, + crate::output::ListCandidatesForAutoMlJobOutput, crate::error::ListCandidatesForAutoMLJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_candidates_for_auto_ml_job_error(response) + } else { + crate::operation_deser::parse_list_candidates_for_auto_ml_job_response(response) + } } } @@ -9106,30 +4759,6 @@ impl ListCodeRepositories { pub fn builder() -> crate::input::list_code_repositories_input::Builder { crate::input::list_code_repositories_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListCodeRepositoriesOutput, - crate::error::ListCodeRepositoriesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListCodeRepositoriesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_code_repositories_output::Builder::default(); - builder = crate::json_deser::list_code_repositories_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListCodeRepositoriesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9140,7 +4769,11 @@ impl smithy_http::response::ParseStrictResponse for ListCodeRepositories { crate::error::ListCodeRepositoriesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_code_repositories_error(response) + } else { + crate::operation_deser::parse_list_code_repositories_response(response) + } } } @@ -9156,30 +4789,6 @@ impl ListCompilationJobs { pub fn builder() -> crate::input::list_compilation_jobs_input::Builder { crate::input::list_compilation_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListCompilationJobsOutput, - crate::error::ListCompilationJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListCompilationJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_compilation_jobs_output::Builder::default(); - builder = crate::json_deser::list_compilation_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListCompilationJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9190,7 +4799,11 @@ impl smithy_http::response::ParseStrictResponse for ListCompilationJobs { crate::error::ListCompilationJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_compilation_jobs_error(response) + } else { + crate::operation_deser::parse_list_compilation_jobs_response(response) + } } } @@ -9204,39 +4817,6 @@ impl ListContexts { pub fn builder() -> crate::input::list_contexts_input::Builder { crate::input::list_contexts_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListContextsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListContextsError { - kind: crate::error::ListContextsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListContextsError::unhandled(e), - }, - _ => crate::error::ListContextsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_contexts_output::Builder::default(); - builder = - crate::json_deser::list_contexts_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListContextsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9245,7 +4825,11 @@ impl smithy_http::response::ParseStrictResponse for ListContexts { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_contexts_error(response) + } else { + crate::operation_deser::parse_list_contexts_response(response) + } } } @@ -9259,33 +4843,6 @@ impl ListDataQualityJobDefinitions { pub fn builder() -> crate::input::list_data_quality_job_definitions_input::Builder { crate::input::list_data_quality_job_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListDataQualityJobDefinitionsOutput, - crate::error::ListDataQualityJobDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListDataQualityJobDefinitionsError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_data_quality_job_definitions_output::Builder::default(); - builder = crate::json_deser::list_data_quality_job_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListDataQualityJobDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9296,7 +4853,11 @@ impl smithy_http::response::ParseStrictResponse for ListDataQualityJobDefinition crate::error::ListDataQualityJobDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_data_quality_job_definitions_error(response) + } else { + crate::operation_deser::parse_list_data_quality_job_definitions_response(response) + } } } @@ -9310,30 +4871,6 @@ impl ListDeviceFleets { pub fn builder() -> crate::input::list_device_fleets_input::Builder { crate::input::list_device_fleets_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListDeviceFleetsOutput, - crate::error::ListDeviceFleetsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListDeviceFleetsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_device_fleets_output::Builder::default(); - builder = crate::json_deser::list_device_fleets_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListDeviceFleetsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9344,7 +4881,11 @@ impl smithy_http::response::ParseStrictResponse for ListDeviceFleets { crate::error::ListDeviceFleetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_device_fleets_error(response) + } else { + crate::operation_deser::parse_list_device_fleets_response(response) + } } } @@ -9358,25 +4899,6 @@ impl ListDevices { pub fn builder() -> crate::input::list_devices_input::Builder { crate::input::list_devices_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListDevicesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_devices_output::Builder::default(); - builder = - crate::json_deser::list_devices_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListDevicesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9385,7 +4907,11 @@ impl smithy_http::response::ParseStrictResponse for ListDevices { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_devices_error(response) + } else { + crate::operation_deser::parse_list_devices_response(response) + } } } @@ -9399,25 +4925,6 @@ impl ListDomains { pub fn builder() -> crate::input::list_domains_input::Builder { crate::input::list_domains_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListDomainsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_domains_output::Builder::default(); - builder = - crate::json_deser::list_domains_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListDomainsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9426,7 +4933,11 @@ impl smithy_http::response::ParseStrictResponse for ListDomains { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_domains_error(response) + } else { + crate::operation_deser::parse_list_domains_response(response) + } } } @@ -9440,30 +4951,6 @@ impl ListEdgePackagingJobs { pub fn builder() -> crate::input::list_edge_packaging_jobs_input::Builder { crate::input::list_edge_packaging_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListEdgePackagingJobsOutput, - crate::error::ListEdgePackagingJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListEdgePackagingJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_edge_packaging_jobs_output::Builder::default(); - builder = crate::json_deser::list_edge_packaging_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListEdgePackagingJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9474,7 +4961,11 @@ impl smithy_http::response::ParseStrictResponse for ListEdgePackagingJobs { crate::error::ListEdgePackagingJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_edge_packaging_jobs_error(response) + } else { + crate::operation_deser::parse_list_edge_packaging_jobs_response(response) + } } } @@ -9488,30 +4979,6 @@ impl ListEndpointConfigs { pub fn builder() -> crate::input::list_endpoint_configs_input::Builder { crate::input::list_endpoint_configs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListEndpointConfigsOutput, - crate::error::ListEndpointConfigsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListEndpointConfigsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_endpoint_configs_output::Builder::default(); - builder = crate::json_deser::list_endpoint_configs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListEndpointConfigsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9522,7 +4989,11 @@ impl smithy_http::response::ParseStrictResponse for ListEndpointConfigs { crate::error::ListEndpointConfigsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_endpoint_configs_error(response) + } else { + crate::operation_deser::parse_list_endpoint_configs_response(response) + } } } @@ -9536,26 +5007,6 @@ impl ListEndpoints { pub fn builder() -> crate::input::list_endpoints_input::Builder { crate::input::list_endpoints_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListEndpointsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_endpoints_output::Builder::default(); - builder = - crate::json_deser::list_endpoints_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListEndpointsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9564,7 +5015,11 @@ impl smithy_http::response::ParseStrictResponse for ListEndpoints { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_endpoints_error(response) + } else { + crate::operation_deser::parse_list_endpoints_response(response) + } } } @@ -9580,26 +5035,6 @@ impl ListExperiments { pub fn builder() -> crate::input::list_experiments_input::Builder { crate::input::list_experiments_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListExperimentsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_experiments_output::Builder::default(); - builder = - crate::json_deser::list_experiments_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListExperimentsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9610,7 +5045,11 @@ impl smithy_http::response::ParseStrictResponse for ListExperiments { crate::error::ListExperimentsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_experiments_error(response) + } else { + crate::operation_deser::parse_list_experiments_response(response) + } } } @@ -9624,30 +5063,6 @@ impl ListFeatureGroups { pub fn builder() -> crate::input::list_feature_groups_input::Builder { crate::input::list_feature_groups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListFeatureGroupsOutput, - crate::error::ListFeatureGroupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListFeatureGroupsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_feature_groups_output::Builder::default(); - builder = crate::json_deser::list_feature_groups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListFeatureGroupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9658,7 +5073,11 @@ impl smithy_http::response::ParseStrictResponse for ListFeatureGroups { crate::error::ListFeatureGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_feature_groups_error(response) + } else { + crate::operation_deser::parse_list_feature_groups_response(response) + } } } @@ -9672,30 +5091,6 @@ impl ListFlowDefinitions { pub fn builder() -> crate::input::list_flow_definitions_input::Builder { crate::input::list_flow_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListFlowDefinitionsOutput, - crate::error::ListFlowDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListFlowDefinitionsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_flow_definitions_output::Builder::default(); - builder = crate::json_deser::list_flow_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListFlowDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9706,7 +5101,11 @@ impl smithy_http::response::ParseStrictResponse for ListFlowDefinitions { crate::error::ListFlowDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_flow_definitions_error(response) + } else { + crate::operation_deser::parse_list_flow_definitions_response(response) + } } } @@ -9720,30 +5119,6 @@ impl ListHumanTaskUis { pub fn builder() -> crate::input::list_human_task_uis_input::Builder { crate::input::list_human_task_uis_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListHumanTaskUisOutput, - crate::error::ListHumanTaskUisError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListHumanTaskUisError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_human_task_uis_output::Builder::default(); - builder = crate::json_deser::list_human_task_uis_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListHumanTaskUisError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9754,7 +5129,11 @@ impl smithy_http::response::ParseStrictResponse for ListHumanTaskUis { crate::error::ListHumanTaskUisError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_human_task_uis_error(response) + } else { + crate::operation_deser::parse_list_human_task_uis_response(response) + } } } @@ -9770,33 +5149,6 @@ impl ListHyperParameterTuningJobs { pub fn builder() -> crate::input::list_hyper_parameter_tuning_jobs_input::Builder { crate::input::list_hyper_parameter_tuning_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListHyperParameterTuningJobsOutput, - crate::error::ListHyperParameterTuningJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListHyperParameterTuningJobsError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_hyper_parameter_tuning_jobs_output::Builder::default(); - builder = crate::json_deser::list_hyper_parameter_tuning_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListHyperParameterTuningJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9807,7 +5159,11 @@ impl smithy_http::response::ParseStrictResponse for ListHyperParameterTuningJobs crate::error::ListHyperParameterTuningJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_hyper_parameter_tuning_jobs_error(response) + } else { + crate::operation_deser::parse_list_hyper_parameter_tuning_jobs_response(response) + } } } @@ -9822,24 +5178,6 @@ impl ListImages { pub fn builder() -> crate::input::list_images_input::Builder { crate::input::list_images_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListImagesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_images_output::Builder::default(); - builder = crate::json_deser::list_images_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListImagesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9848,7 +5186,11 @@ impl smithy_http::response::ParseStrictResponse for ListImages { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_images_error(response) + } else { + crate::operation_deser::parse_list_images_response(response) + } } } @@ -9863,43 +5205,6 @@ impl ListImageVersions { pub fn builder() -> crate::input::list_image_versions_input::Builder { crate::input::list_image_versions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListImageVersionsOutput, - crate::error::ListImageVersionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListImageVersionsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListImageVersionsError { - kind: crate::error::ListImageVersionsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListImageVersionsError::unhandled(e), - }, - _ => crate::error::ListImageVersionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_image_versions_output::Builder::default(); - builder = crate::json_deser::list_image_versions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListImageVersionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9910,7 +5215,11 @@ impl smithy_http::response::ParseStrictResponse for ListImageVersions { crate::error::ListImageVersionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_image_versions_error(response) + } else { + crate::operation_deser::parse_list_image_versions_response(response) + } } } @@ -9924,30 +5233,6 @@ impl ListLabelingJobs { pub fn builder() -> crate::input::list_labeling_jobs_input::Builder { crate::input::list_labeling_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListLabelingJobsOutput, - crate::error::ListLabelingJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListLabelingJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_labeling_jobs_output::Builder::default(); - builder = crate::json_deser::list_labeling_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListLabelingJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9958,7 +5243,11 @@ impl smithy_http::response::ParseStrictResponse for ListLabelingJobs { crate::error::ListLabelingJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_labeling_jobs_error(response) + } else { + crate::operation_deser::parse_list_labeling_jobs_response(response) + } } } @@ -9972,49 +5261,6 @@ impl ListLabelingJobsForWorkteam { pub fn builder() -> crate::input::list_labeling_jobs_for_workteam_input::Builder { crate::input::list_labeling_jobs_for_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListLabelingJobsForWorkteamOutput, - crate::error::ListLabelingJobsForWorkteamError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListLabelingJobsForWorkteamError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListLabelingJobsForWorkteamError { - kind: crate::error::ListLabelingJobsForWorkteamErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListLabelingJobsForWorkteamError::unhandled(e), - }, - _ => crate::error::ListLabelingJobsForWorkteamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_labeling_jobs_for_workteam_output::Builder::default(); - builder = crate::json_deser::list_labeling_jobs_for_workteam_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListLabelingJobsForWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10025,7 +5271,11 @@ impl smithy_http::response::ParseStrictResponse for ListLabelingJobsForWorkteam crate::error::ListLabelingJobsForWorkteamError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_labeling_jobs_for_workteam_error(response) + } else { + crate::operation_deser::parse_list_labeling_jobs_for_workteam_response(response) + } } } @@ -10039,32 +5289,6 @@ impl ListModelBiasJobDefinitions { pub fn builder() -> crate::input::list_model_bias_job_definitions_input::Builder { crate::input::list_model_bias_job_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListModelBiasJobDefinitionsOutput, - crate::error::ListModelBiasJobDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelBiasJobDefinitionsError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_model_bias_job_definitions_output::Builder::default(); - builder = crate::json_deser::list_model_bias_job_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListModelBiasJobDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10075,7 +5299,11 @@ impl smithy_http::response::ParseStrictResponse for ListModelBiasJobDefinitions crate::error::ListModelBiasJobDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_model_bias_job_definitions_error(response) + } else { + crate::operation_deser::parse_list_model_bias_job_definitions_response(response) + } } } @@ -10089,31 +5317,6 @@ impl ListModelExplainabilityJobDefinitions { pub fn builder() -> crate::input::list_model_explainability_job_definitions_input::Builder { crate::input::list_model_explainability_job_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListModelExplainabilityJobDefinitionsOutput, - crate::error::ListModelExplainabilityJobDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelExplainabilityJobDefinitionsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_model_explainability_job_definitions_output::Builder::default(); - builder = crate::json_deser::list_model_explainability_job_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListModelExplainabilityJobDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10124,7 +5327,13 @@ impl smithy_http::response::ParseStrictResponse for ListModelExplainabilityJobDe crate::error::ListModelExplainabilityJobDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_model_explainability_job_definitions_error(response) + } else { + crate::operation_deser::parse_list_model_explainability_job_definitions_response( + response, + ) + } } } @@ -10134,33 +5343,9 @@ pub struct ListModelPackageGroups { _private: (), } impl ListModelPackageGroups { - /// Creates a new builder-style object to manufacture [`ListModelPackageGroupsInput`](crate::input::ListModelPackageGroupsInput) - pub fn builder() -> crate::input::list_model_package_groups_input::Builder { - crate::input::list_model_package_groups_input::Builder::default() - } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListModelPackageGroupsOutput, - crate::error::ListModelPackageGroupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelPackageGroupsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_model_package_groups_output::Builder::default(); - builder = crate::json_deser::list_model_package_groups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListModelPackageGroupsError::unhandled)?; - Ok(builder.build()) + /// Creates a new builder-style object to manufacture [`ListModelPackageGroupsInput`](crate::input::ListModelPackageGroupsInput) + pub fn builder() -> crate::input::list_model_package_groups_input::Builder { + crate::input::list_model_package_groups_input::Builder::default() } pub fn new() -> Self { Self { _private: () } @@ -10172,7 +5357,11 @@ impl smithy_http::response::ParseStrictResponse for ListModelPackageGroups { crate::error::ListModelPackageGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_model_package_groups_error(response) + } else { + crate::operation_deser::parse_list_model_package_groups_response(response) + } } } @@ -10186,30 +5375,6 @@ impl ListModelPackages { pub fn builder() -> crate::input::list_model_packages_input::Builder { crate::input::list_model_packages_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListModelPackagesOutput, - crate::error::ListModelPackagesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelPackagesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_model_packages_output::Builder::default(); - builder = crate::json_deser::list_model_packages_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListModelPackagesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10220,7 +5385,11 @@ impl smithy_http::response::ParseStrictResponse for ListModelPackages { crate::error::ListModelPackagesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_model_packages_error(response) + } else { + crate::operation_deser::parse_list_model_packages_response(response) + } } } @@ -10234,33 +5403,6 @@ impl ListModelQualityJobDefinitions { pub fn builder() -> crate::input::list_model_quality_job_definitions_input::Builder { crate::input::list_model_quality_job_definitions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListModelQualityJobDefinitionsOutput, - crate::error::ListModelQualityJobDefinitionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelQualityJobDefinitionsError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_model_quality_job_definitions_output::Builder::default(); - builder = crate::json_deser::list_model_quality_job_definitions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListModelQualityJobDefinitionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10271,7 +5413,11 @@ impl smithy_http::response::ParseStrictResponse for ListModelQualityJobDefinitio crate::error::ListModelQualityJobDefinitionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_model_quality_job_definitions_error(response) + } else { + crate::operation_deser::parse_list_model_quality_job_definitions_response(response) + } } } @@ -10285,24 +5431,6 @@ impl ListModels { pub fn builder() -> crate::input::list_models_input::Builder { crate::input::list_models_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListModelsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_models_output::Builder::default(); - builder = crate::json_deser::list_models_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListModelsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10311,7 +5439,11 @@ impl smithy_http::response::ParseStrictResponse for ListModels { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_models_error(response) + } else { + crate::operation_deser::parse_list_models_response(response) + } } } @@ -10325,32 +5457,6 @@ impl ListMonitoringExecutions { pub fn builder() -> crate::input::list_monitoring_executions_input::Builder { crate::input::list_monitoring_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListMonitoringExecutionsOutput, - crate::error::ListMonitoringExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListMonitoringExecutionsError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_monitoring_executions_output::Builder::default(); - builder = crate::json_deser::list_monitoring_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListMonitoringExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10361,7 +5467,11 @@ impl smithy_http::response::ParseStrictResponse for ListMonitoringExecutions { crate::error::ListMonitoringExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_monitoring_executions_error(response) + } else { + crate::operation_deser::parse_list_monitoring_executions_response(response) + } } } @@ -10375,30 +5485,6 @@ impl ListMonitoringSchedules { pub fn builder() -> crate::input::list_monitoring_schedules_input::Builder { crate::input::list_monitoring_schedules_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListMonitoringSchedulesOutput, - crate::error::ListMonitoringSchedulesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListMonitoringSchedulesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_monitoring_schedules_output::Builder::default(); - builder = crate::json_deser::list_monitoring_schedules_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListMonitoringSchedulesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10409,7 +5495,11 @@ impl smithy_http::response::ParseStrictResponse for ListMonitoringSchedules { crate::error::ListMonitoringSchedulesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_monitoring_schedules_error(response) + } else { + crate::operation_deser::parse_list_monitoring_schedules_response(response) + } } } @@ -10423,31 +5513,6 @@ impl ListNotebookInstanceLifecycleConfigs { pub fn builder() -> crate::input::list_notebook_instance_lifecycle_configs_input::Builder { crate::input::list_notebook_instance_lifecycle_configs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListNotebookInstanceLifecycleConfigsOutput, - crate::error::ListNotebookInstanceLifecycleConfigsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListNotebookInstanceLifecycleConfigsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_notebook_instance_lifecycle_configs_output::Builder::default(); - builder = crate::json_deser::list_notebook_instance_lifecycle_configs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListNotebookInstanceLifecycleConfigsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10458,7 +5523,13 @@ impl smithy_http::response::ParseStrictResponse for ListNotebookInstanceLifecycl crate::error::ListNotebookInstanceLifecycleConfigsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_notebook_instance_lifecycle_configs_error(response) + } else { + crate::operation_deser::parse_list_notebook_instance_lifecycle_configs_response( + response, + ) + } } } @@ -10473,30 +5544,6 @@ impl ListNotebookInstances { pub fn builder() -> crate::input::list_notebook_instances_input::Builder { crate::input::list_notebook_instances_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListNotebookInstancesOutput, - crate::error::ListNotebookInstancesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListNotebookInstancesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_notebook_instances_output::Builder::default(); - builder = crate::json_deser::list_notebook_instances_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListNotebookInstancesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10507,7 +5554,11 @@ impl smithy_http::response::ParseStrictResponse for ListNotebookInstances { crate::error::ListNotebookInstancesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_notebook_instances_error(response) + } else { + crate::operation_deser::parse_list_notebook_instances_response(response) + } } } @@ -10521,47 +5572,6 @@ impl ListPipelineExecutions { pub fn builder() -> crate::input::list_pipeline_executions_input::Builder { crate::input::list_pipeline_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListPipelineExecutionsOutput, - crate::error::ListPipelineExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListPipelineExecutionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListPipelineExecutionsError { - kind: crate::error::ListPipelineExecutionsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListPipelineExecutionsError::unhandled(e), - }, - _ => crate::error::ListPipelineExecutionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_pipeline_executions_output::Builder::default(); - builder = crate::json_deser::list_pipeline_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListPipelineExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10572,7 +5582,11 @@ impl smithy_http::response::ParseStrictResponse for ListPipelineExecutions { crate::error::ListPipelineExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_pipeline_executions_error(response) + } else { + crate::operation_deser::parse_list_pipeline_executions_response(response) + } } } @@ -10586,49 +5600,6 @@ impl ListPipelineExecutionSteps { pub fn builder() -> crate::input::list_pipeline_execution_steps_input::Builder { crate::input::list_pipeline_execution_steps_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListPipelineExecutionStepsOutput, - crate::error::ListPipelineExecutionStepsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListPipelineExecutionStepsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListPipelineExecutionStepsError { - kind: crate::error::ListPipelineExecutionStepsErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListPipelineExecutionStepsError::unhandled(e), - }, - _ => crate::error::ListPipelineExecutionStepsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_pipeline_execution_steps_output::Builder::default(); - builder = crate::json_deser::list_pipeline_execution_steps_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListPipelineExecutionStepsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10639,7 +5610,11 @@ impl smithy_http::response::ParseStrictResponse for ListPipelineExecutionSteps { crate::error::ListPipelineExecutionStepsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_pipeline_execution_steps_error(response) + } else { + crate::operation_deser::parse_list_pipeline_execution_steps_response(response) + } } } @@ -10653,45 +5628,6 @@ impl ListPipelineParametersForExecution { pub fn builder() -> crate::input::list_pipeline_parameters_for_execution_input::Builder { crate::input::list_pipeline_parameters_for_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListPipelineParametersForExecutionOutput, - crate::error::ListPipelineParametersForExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::ListPipelineParametersForExecutionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListPipelineParametersForExecutionError { kind: crate::error::ListPipelineParametersForExecutionErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::ListPipelineParametersForExecutionError::unhandled(e) - } - _ => crate::error::ListPipelineParametersForExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_pipeline_parameters_for_execution_output::Builder::default(); - builder = crate::json_deser::list_pipeline_parameters_for_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListPipelineParametersForExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10702,7 +5638,11 @@ impl smithy_http::response::ParseStrictResponse for ListPipelineParametersForExe crate::error::ListPipelineParametersForExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_pipeline_parameters_for_execution_error(response) + } else { + crate::operation_deser::parse_list_pipeline_parameters_for_execution_response(response) + } } } @@ -10716,26 +5656,6 @@ impl ListPipelines { pub fn builder() -> crate::input::list_pipelines_input::Builder { crate::input::list_pipelines_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListPipelinesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_pipelines_output::Builder::default(); - builder = - crate::json_deser::list_pipelines_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListPipelinesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10744,7 +5664,11 @@ impl smithy_http::response::ParseStrictResponse for ListPipelines { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_pipelines_error(response) + } else { + crate::operation_deser::parse_list_pipelines_response(response) + } } } @@ -10758,30 +5682,6 @@ impl ListProcessingJobs { pub fn builder() -> crate::input::list_processing_jobs_input::Builder { crate::input::list_processing_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListProcessingJobsOutput, - crate::error::ListProcessingJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListProcessingJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_processing_jobs_output::Builder::default(); - builder = crate::json_deser::list_processing_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListProcessingJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10792,7 +5692,11 @@ impl smithy_http::response::ParseStrictResponse for ListProcessingJobs { crate::error::ListProcessingJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_processing_jobs_error(response) + } else { + crate::operation_deser::parse_list_processing_jobs_response(response) + } } } @@ -10806,26 +5710,6 @@ impl ListProjects { pub fn builder() -> crate::input::list_projects_input::Builder { crate::input::list_projects_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListProjectsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_projects_output::Builder::default(); - builder = - crate::json_deser::list_projects_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListProjectsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10834,7 +5718,11 @@ impl smithy_http::response::ParseStrictResponse for ListProjects { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_projects_error(response) + } else { + crate::operation_deser::parse_list_projects_response(response) + } } } @@ -10850,30 +5738,6 @@ impl ListSubscribedWorkteams { pub fn builder() -> crate::input::list_subscribed_workteams_input::Builder { crate::input::list_subscribed_workteams_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListSubscribedWorkteamsOutput, - crate::error::ListSubscribedWorkteamsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListSubscribedWorkteamsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_subscribed_workteams_output::Builder::default(); - builder = crate::json_deser::list_subscribed_workteams_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListSubscribedWorkteamsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10884,7 +5748,11 @@ impl smithy_http::response::ParseStrictResponse for ListSubscribedWorkteams { crate::error::ListSubscribedWorkteamsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_subscribed_workteams_error(response) + } else { + crate::operation_deser::parse_list_subscribed_workteams_response(response) + } } } @@ -10898,24 +5766,6 @@ impl ListTags { pub fn builder() -> crate::input::list_tags_input::Builder { crate::input::list_tags_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListTagsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_output::Builder::default(); - builder = crate::json_deser::list_tags_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListTagsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10923,7 +5773,11 @@ impl ListTags { impl smithy_http::response::ParseStrictResponse for ListTags { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_error(response) + } else { + crate::operation_deser::parse_list_tags_response(response) + } } } @@ -10957,30 +5811,6 @@ impl ListTrainingJobs { pub fn builder() -> crate::input::list_training_jobs_input::Builder { crate::input::list_training_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTrainingJobsOutput, - crate::error::ListTrainingJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListTrainingJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_training_jobs_output::Builder::default(); - builder = crate::json_deser::list_training_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTrainingJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10991,7 +5821,11 @@ impl smithy_http::response::ParseStrictResponse for ListTrainingJobs { crate::error::ListTrainingJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_training_jobs_error(response) + } else { + crate::operation_deser::parse_list_training_jobs_response(response) + } } } @@ -11007,45 +5841,6 @@ impl ListTrainingJobsForHyperParameterTuningJob { ) -> crate::input::list_training_jobs_for_hyper_parameter_tuning_job_input::Builder { crate::input::list_training_jobs_for_hyper_parameter_tuning_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTrainingJobsForHyperParameterTuningJobOutput, - crate::error::ListTrainingJobsForHyperParameterTuningJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = - match generic.code() { - Some(code) => code, - None => return Err( - crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled( - generic, - ), - ), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTrainingJobsForHyperParameterTuningJobError { kind: crate::error::ListTrainingJobsForHyperParameterTuningJobErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled(e) - } - _ => crate::error::ListTrainingJobsForHyperParameterTuningJobError::generic(generic) - }); - } - #[allow(unused_mut)]let mut builder = crate::output::list_training_jobs_for_hyper_parameter_tuning_job_output::Builder::default(); - builder = - crate::json_deser::list_training_jobs_for_hyper_parameter_tuning_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11056,7 +5851,15 @@ impl smithy_http::response::ParseStrictResponse for ListTrainingJobsForHyperPara crate::error::ListTrainingJobsForHyperParameterTuningJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_training_jobs_for_hyper_parameter_tuning_job_error( + response, + ) + } else { + crate::operation_deser::parse_list_training_jobs_for_hyper_parameter_tuning_job_response( + response, + ) + } } } @@ -11070,30 +5873,6 @@ impl ListTransformJobs { pub fn builder() -> crate::input::list_transform_jobs_input::Builder { crate::input::list_transform_jobs_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTransformJobsOutput, - crate::error::ListTransformJobsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListTransformJobsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_transform_jobs_output::Builder::default(); - builder = crate::json_deser::list_transform_jobs_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTransformJobsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11104,7 +5883,11 @@ impl smithy_http::response::ParseStrictResponse for ListTransformJobs { crate::error::ListTransformJobsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_transform_jobs_error(response) + } else { + crate::operation_deser::parse_list_transform_jobs_response(response) + } } } @@ -11137,43 +5920,6 @@ impl ListTrialComponents { pub fn builder() -> crate::input::list_trial_components_input::Builder { crate::input::list_trial_components_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTrialComponentsOutput, - crate::error::ListTrialComponentsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTrialComponentsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTrialComponentsError { - kind: crate::error::ListTrialComponentsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListTrialComponentsError::unhandled(e), - }, - _ => crate::error::ListTrialComponentsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_trial_components_output::Builder::default(); - builder = crate::json_deser::list_trial_components_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTrialComponentsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11184,7 +5930,11 @@ impl smithy_http::response::ParseStrictResponse for ListTrialComponents { crate::error::ListTrialComponentsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_trial_components_error(response) + } else { + crate::operation_deser::parse_list_trial_components_response(response) + } } } @@ -11202,37 +5952,6 @@ impl ListTrials { pub fn builder() -> crate::input::list_trials_input::Builder { crate::input::list_trials_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTrialsError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTrialsError { - kind: crate::error::ListTrialsErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::ListTrialsError::unhandled(e), - }, - _ => crate::error::ListTrialsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_trials_output::Builder::default(); - builder = crate::json_deser::list_trials_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListTrialsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11241,7 +5960,11 @@ impl smithy_http::response::ParseStrictResponse for ListTrials { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_trials_error(response) + } else { + crate::operation_deser::parse_list_trials_response(response) + } } } @@ -11255,30 +5978,6 @@ impl ListUserProfiles { pub fn builder() -> crate::input::list_user_profiles_input::Builder { crate::input::list_user_profiles_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListUserProfilesOutput, - crate::error::ListUserProfilesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListUserProfilesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_user_profiles_output::Builder::default(); - builder = crate::json_deser::list_user_profiles_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListUserProfilesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11289,7 +5988,11 @@ impl smithy_http::response::ParseStrictResponse for ListUserProfiles { crate::error::ListUserProfilesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_user_profiles_error(response) + } else { + crate::operation_deser::parse_list_user_profiles_response(response) + } } } @@ -11304,26 +6007,6 @@ impl ListWorkforces { pub fn builder() -> crate::input::list_workforces_input::Builder { crate::input::list_workforces_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListWorkforcesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_workforces_output::Builder::default(); - builder = - crate::json_deser::list_workforces_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListWorkforcesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11332,7 +6015,11 @@ impl smithy_http::response::ParseStrictResponse for ListWorkforces { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_workforces_error(response) + } else { + crate::operation_deser::parse_list_workforces_response(response) + } } } @@ -11348,26 +6035,6 @@ impl ListWorkteams { pub fn builder() -> crate::input::list_workteams_input::Builder { crate::input::list_workteams_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::ListWorkteamsError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_workteams_output::Builder::default(); - builder = - crate::json_deser::list_workteams_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListWorkteamsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11376,7 +6043,11 @@ impl smithy_http::response::ParseStrictResponse for ListWorkteams { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_workteams_error(response) + } else { + crate::operation_deser::parse_list_workteams_response(response) + } } } @@ -11392,32 +6063,6 @@ impl PutModelPackageGroupPolicy { pub fn builder() -> crate::input::put_model_package_group_policy_input::Builder { crate::input::put_model_package_group_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutModelPackageGroupPolicyOutput, - crate::error::PutModelPackageGroupPolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::PutModelPackageGroupPolicyError::generic( - generic, - )); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_model_package_group_policy_output::Builder::default(); - builder = crate::json_deser::put_model_package_group_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutModelPackageGroupPolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11428,7 +6073,11 @@ impl smithy_http::response::ParseStrictResponse for PutModelPackageGroupPolicy { crate::error::PutModelPackageGroupPolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_model_package_group_policy_error(response) + } else { + crate::operation_deser::parse_put_model_package_group_policy_response(response) + } } } @@ -11442,36 +6091,6 @@ impl RegisterDevices { pub fn builder() -> crate::input::register_devices_input::Builder { crate::input::register_devices_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RegisterDevicesError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterDevicesError { - kind: crate::error::RegisterDevicesErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::RegisterDevicesError::unhandled(e), - }, - _ => crate::error::RegisterDevicesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::register_devices_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11482,7 +6101,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterDevices { crate::error::RegisterDevicesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_devices_error(response) + } else { + crate::operation_deser::parse_register_devices_response(response) + } } } @@ -11496,43 +6119,6 @@ impl RenderUiTemplate { pub fn builder() -> crate::input::render_ui_template_input::Builder { crate::input::render_ui_template_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RenderUiTemplateOutput, - crate::error::RenderUiTemplateError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RenderUiTemplateError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::RenderUiTemplateError { - kind: crate::error::RenderUiTemplateErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::RenderUiTemplateError::unhandled(e), - }, - _ => crate::error::RenderUiTemplateError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::render_ui_template_output::Builder::default(); - builder = crate::json_deser::render_ui_template_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RenderUiTemplateError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11543,7 +6129,11 @@ impl smithy_http::response::ParseStrictResponse for RenderUiTemplate { crate::error::RenderUiTemplateError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_render_ui_template_error(response) + } else { + crate::operation_deser::parse_render_ui_template_response(response) + } } } @@ -11561,24 +6151,6 @@ impl Search { pub fn builder() -> crate::input::search_input::Builder { crate::input::search_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::SearchError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::search_output::Builder::default(); - builder = crate::json_deser::search_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::SearchError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11586,7 +6158,11 @@ impl Search { impl smithy_http::response::ParseStrictResponse for Search { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_search_error(response) + } else { + crate::operation_deser::parse_search_response(response) + } } } @@ -11602,49 +6178,6 @@ impl SendPipelineExecutionStepFailure { pub fn builder() -> crate::input::send_pipeline_execution_step_failure_input::Builder { crate::input::send_pipeline_execution_step_failure_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SendPipelineExecutionStepFailureOutput, - crate::error::SendPipelineExecutionStepFailureError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::SendPipelineExecutionStepFailureError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendPipelineExecutionStepFailureError { kind: crate::error::SendPipelineExecutionStepFailureErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::SendPipelineExecutionStepFailureError::unhandled(e) - } - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendPipelineExecutionStepFailureError { kind: crate::error::SendPipelineExecutionStepFailureErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::SendPipelineExecutionStepFailureError::unhandled(e) - } - _ => crate::error::SendPipelineExecutionStepFailureError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::send_pipeline_execution_step_failure_output::Builder::default(); - builder = crate::json_deser::send_pipeline_execution_step_failure_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::SendPipelineExecutionStepFailureError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11655,7 +6188,11 @@ impl smithy_http::response::ParseStrictResponse for SendPipelineExecutionStepFai crate::error::SendPipelineExecutionStepFailureError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_send_pipeline_execution_step_failure_error(response) + } else { + crate::operation_deser::parse_send_pipeline_execution_step_failure_response(response) + } } } @@ -11671,49 +6208,6 @@ impl SendPipelineExecutionStepSuccess { pub fn builder() -> crate::input::send_pipeline_execution_step_success_input::Builder { crate::input::send_pipeline_execution_step_success_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SendPipelineExecutionStepSuccessOutput, - crate::error::SendPipelineExecutionStepSuccessError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::SendPipelineExecutionStepSuccessError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendPipelineExecutionStepSuccessError { kind: crate::error::SendPipelineExecutionStepSuccessErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::SendPipelineExecutionStepSuccessError::unhandled(e) - } - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendPipelineExecutionStepSuccessError { kind: crate::error::SendPipelineExecutionStepSuccessErrorKind::ResourceNotFound(body), meta: generic }, - Err(e) => crate::error::SendPipelineExecutionStepSuccessError::unhandled(e) - } - _ => crate::error::SendPipelineExecutionStepSuccessError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::send_pipeline_execution_step_success_output::Builder::default(); - builder = crate::json_deser::send_pipeline_execution_step_success_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::SendPipelineExecutionStepSuccessError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11724,7 +6218,11 @@ impl smithy_http::response::ParseStrictResponse for SendPipelineExecutionStepSuc crate::error::SendPipelineExecutionStepSuccessError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_send_pipeline_execution_step_success_error(response) + } else { + crate::operation_deser::parse_send_pipeline_execution_step_success_response(response) + } } } @@ -11742,44 +6240,6 @@ impl StartMonitoringSchedule { pub fn builder() -> crate::input::start_monitoring_schedule_input::Builder { crate::input::start_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartMonitoringScheduleOutput, - crate::error::StartMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StartMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartMonitoringScheduleError { - kind: crate::error::StartMonitoringScheduleErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::StartMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_monitoring_schedule_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11790,7 +6250,11 @@ impl smithy_http::response::ParseStrictResponse for StartMonitoringSchedule { crate::error::StartMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_start_monitoring_schedule_response(response) + } } } @@ -11807,40 +6271,6 @@ impl StartNotebookInstance { pub fn builder() -> crate::input::start_notebook_instance_input::Builder { crate::input::start_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartNotebookInstanceOutput, - crate::error::StartNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartNotebookInstanceError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartNotebookInstanceError { - kind: crate::error::StartNotebookInstanceErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartNotebookInstanceError::unhandled(e), - }, - _ => crate::error::StartNotebookInstanceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_notebook_instance_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11851,7 +6281,11 @@ impl smithy_http::response::ParseStrictResponse for StartNotebookInstance { crate::error::StartNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_notebook_instance_error(response) + } else { + crate::operation_deser::parse_start_notebook_instance_response(response) + } } } @@ -11865,56 +6299,6 @@ impl StartPipelineExecution { pub fn builder() -> crate::input::start_pipeline_execution_input::Builder { crate::input::start_pipeline_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartPipelineExecutionOutput, - crate::error::StartPipelineExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StartPipelineExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartPipelineExecutionError { - kind: crate::error::StartPipelineExecutionErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartPipelineExecutionError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartPipelineExecutionError { - kind: crate::error::StartPipelineExecutionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StartPipelineExecutionError::unhandled(e), - }, - _ => crate::error::StartPipelineExecutionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_pipeline_execution_output::Builder::default(); - builder = crate::json_deser::start_pipeline_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::StartPipelineExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -11925,7 +6309,11 @@ impl smithy_http::response::ParseStrictResponse for StartPipelineExecution { crate::error::StartPipelineExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_pipeline_execution_error(response) + } else { + crate::operation_deser::parse_start_pipeline_execution_response(response) + } } } @@ -11935,49 +6323,23 @@ pub struct StopAutoMLJob { _private: (), } impl StopAutoMLJob { - /// Creates a new builder-style object to manufacture [`StopAutoMLJobInput`](crate::input::StopAutoMLJobInput) + /// Creates a new builder-style object to manufacture [`StopAutoMlJobInput`](crate::input::StopAutoMlJobInput) pub fn builder() -> crate::input::stop_auto_ml_job_input::Builder { crate::input::stop_auto_ml_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopAutoMLJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopAutoMLJobError { - kind: crate::error::StopAutoMLJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopAutoMLJobError::unhandled(e), - }, - _ => crate::error::StopAutoMLJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_auto_ml_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } } impl smithy_http::response::ParseStrictResponse for StopAutoMLJob { type Output = - std::result::Result; + std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_auto_ml_job_error(response) + } else { + crate::operation_deser::parse_stop_auto_ml_job_response(response) + } } } @@ -11996,38 +6358,6 @@ impl StopCompilationJob { pub fn builder() -> crate::input::stop_compilation_job_input::Builder { crate::input::stop_compilation_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopCompilationJobOutput, - crate::error::StopCompilationJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopCompilationJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopCompilationJobError { - kind: crate::error::StopCompilationJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopCompilationJobError::unhandled(e), - }, - _ => crate::error::StopCompilationJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_compilation_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12038,7 +6368,11 @@ impl smithy_http::response::ParseStrictResponse for StopCompilationJob { crate::error::StopCompilationJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_compilation_job_error(response) + } else { + crate::operation_deser::parse_stop_compilation_job_response(response) + } } } @@ -12052,25 +6386,6 @@ impl StopEdgePackagingJob { pub fn builder() -> crate::input::stop_edge_packaging_job_input::Builder { crate::input::stop_edge_packaging_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopEdgePackagingJobOutput, - crate::error::StopEdgePackagingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::StopEdgePackagingJobError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_edge_packaging_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12081,7 +6396,11 @@ impl smithy_http::response::ParseStrictResponse for StopEdgePackagingJob { crate::error::StopEdgePackagingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_edge_packaging_job_error(response) + } else { + crate::operation_deser::parse_stop_edge_packaging_job_response(response) + } } } @@ -12101,44 +6420,6 @@ impl StopHyperParameterTuningJob { pub fn builder() -> crate::input::stop_hyper_parameter_tuning_job_input::Builder { crate::input::stop_hyper_parameter_tuning_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopHyperParameterTuningJobOutput, - crate::error::StopHyperParameterTuningJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StopHyperParameterTuningJobError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopHyperParameterTuningJobError { - kind: crate::error::StopHyperParameterTuningJobErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopHyperParameterTuningJobError::unhandled(e), - }, - _ => crate::error::StopHyperParameterTuningJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_hyper_parameter_tuning_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12149,7 +6430,11 @@ impl smithy_http::response::ParseStrictResponse for StopHyperParameterTuningJob crate::error::StopHyperParameterTuningJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_hyper_parameter_tuning_job_error(response) + } else { + crate::operation_deser::parse_stop_hyper_parameter_tuning_job_response(response) + } } } @@ -12164,36 +6449,6 @@ impl StopLabelingJob { pub fn builder() -> crate::input::stop_labeling_job_input::Builder { crate::input::stop_labeling_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopLabelingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopLabelingJobError { - kind: crate::error::StopLabelingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopLabelingJobError::unhandled(e), - }, - _ => crate::error::StopLabelingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_labeling_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12204,7 +6459,11 @@ impl smithy_http::response::ParseStrictResponse for StopLabelingJob { crate::error::StopLabelingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_labeling_job_error(response) + } else { + crate::operation_deser::parse_stop_labeling_job_response(response) + } } } @@ -12218,42 +6477,6 @@ impl StopMonitoringSchedule { pub fn builder() -> crate::input::stop_monitoring_schedule_input::Builder { crate::input::stop_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopMonitoringScheduleOutput, - crate::error::StopMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StopMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopMonitoringScheduleError { - kind: crate::error::StopMonitoringScheduleErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::StopMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_monitoring_schedule_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12264,7 +6487,11 @@ impl smithy_http::response::ParseStrictResponse for StopMonitoringSchedule { crate::error::StopMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_stop_monitoring_schedule_response(response) + } } } @@ -12286,25 +6513,6 @@ impl StopNotebookInstance { pub fn builder() -> crate::input::stop_notebook_instance_input::Builder { crate::input::stop_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopNotebookInstanceOutput, - crate::error::StopNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::StopNotebookInstanceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_notebook_instance_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12315,7 +6523,11 @@ impl smithy_http::response::ParseStrictResponse for StopNotebookInstance { crate::error::StopNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_notebook_instance_error(response) + } else { + crate::operation_deser::parse_stop_notebook_instance_response(response) + } } } @@ -12329,43 +6541,6 @@ impl StopPipelineExecution { pub fn builder() -> crate::input::stop_pipeline_execution_input::Builder { crate::input::stop_pipeline_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopPipelineExecutionOutput, - crate::error::StopPipelineExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopPipelineExecutionError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopPipelineExecutionError { - kind: crate::error::StopPipelineExecutionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopPipelineExecutionError::unhandled(e), - }, - _ => crate::error::StopPipelineExecutionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_pipeline_execution_output::Builder::default(); - builder = crate::json_deser::stop_pipeline_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::StopPipelineExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12376,7 +6551,11 @@ impl smithy_http::response::ParseStrictResponse for StopPipelineExecution { crate::error::StopPipelineExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_pipeline_execution_error(response) + } else { + crate::operation_deser::parse_stop_pipeline_execution_response(response) + } } } @@ -12390,38 +6569,6 @@ impl StopProcessingJob { pub fn builder() -> crate::input::stop_processing_job_input::Builder { crate::input::stop_processing_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopProcessingJobOutput, - crate::error::StopProcessingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopProcessingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopProcessingJobError { - kind: crate::error::StopProcessingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopProcessingJobError::unhandled(e), - }, - _ => crate::error::StopProcessingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_processing_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12432,7 +6579,11 @@ impl smithy_http::response::ParseStrictResponse for StopProcessingJob { crate::error::StopProcessingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_processing_job_error(response) + } else { + crate::operation_deser::parse_stop_processing_job_response(response) + } } } @@ -12452,36 +6603,6 @@ impl StopTrainingJob { pub fn builder() -> crate::input::stop_training_job_input::Builder { crate::input::stop_training_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopTrainingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTrainingJobError { - kind: crate::error::StopTrainingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopTrainingJobError::unhandled(e), - }, - _ => crate::error::StopTrainingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_training_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12492,7 +6613,11 @@ impl smithy_http::response::ParseStrictResponse for StopTrainingJob { crate::error::StopTrainingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_training_job_error(response) + } else { + crate::operation_deser::parse_stop_training_job_response(response) + } } } @@ -12511,38 +6636,6 @@ impl StopTransformJob { pub fn builder() -> crate::input::stop_transform_job_input::Builder { crate::input::stop_transform_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopTransformJobOutput, - crate::error::StopTransformJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StopTransformJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopTransformJobError { - kind: crate::error::StopTransformJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::StopTransformJobError::unhandled(e), - }, - _ => crate::error::StopTransformJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_transform_job_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12553,7 +6646,11 @@ impl smithy_http::response::ParseStrictResponse for StopTransformJob { crate::error::StopTransformJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_transform_job_error(response) + } else { + crate::operation_deser::parse_stop_transform_job_response(response) + } } } @@ -12567,46 +6664,6 @@ impl UpdateAction { pub fn builder() -> crate::input::update_action_input::Builder { crate::input::update_action_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateActionError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateActionError { - kind: crate::error::UpdateActionErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateActionError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateActionError { - kind: crate::error::UpdateActionErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateActionError::unhandled(e), - }, - _ => crate::error::UpdateActionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_action_output::Builder::default(); - builder = - crate::json_deser::update_action_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateActionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12615,7 +6672,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateAction { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_action_error(response) + } else { + crate::operation_deser::parse_update_action_response(response) + } } } @@ -12629,43 +6690,6 @@ impl UpdateAppImageConfig { pub fn builder() -> crate::input::update_app_image_config_input::Builder { crate::input::update_app_image_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateAppImageConfigOutput, - crate::error::UpdateAppImageConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateAppImageConfigError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAppImageConfigError { - kind: crate::error::UpdateAppImageConfigErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAppImageConfigError::unhandled(e), - }, - _ => crate::error::UpdateAppImageConfigError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_app_image_config_output::Builder::default(); - builder = crate::json_deser::update_app_image_config_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateAppImageConfigError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12676,7 +6700,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateAppImageConfig { crate::error::UpdateAppImageConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_app_image_config_error(response) + } else { + crate::operation_deser::parse_update_app_image_config_response(response) + } } } @@ -12690,46 +6718,6 @@ impl UpdateArtifact { pub fn builder() -> crate::input::update_artifact_input::Builder { crate::input::update_artifact_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateArtifactError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateArtifactError { - kind: crate::error::UpdateArtifactErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateArtifactError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateArtifactError { - kind: crate::error::UpdateArtifactErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateArtifactError::unhandled(e), - }, - _ => crate::error::UpdateArtifactError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_artifact_output::Builder::default(); - builder = - crate::json_deser::update_artifact_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateArtifactError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12738,7 +6726,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateArtifact { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_artifact_error(response) + } else { + crate::operation_deser::parse_update_artifact_response(response) + } } } @@ -12752,30 +6744,6 @@ impl UpdateCodeRepository { pub fn builder() -> crate::input::update_code_repository_input::Builder { crate::input::update_code_repository_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateCodeRepositoryOutput, - crate::error::UpdateCodeRepositoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::UpdateCodeRepositoryError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_code_repository_output::Builder::default(); - builder = crate::json_deser::update_code_repository_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateCodeRepositoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12786,7 +6754,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateCodeRepository { crate::error::UpdateCodeRepositoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_code_repository_error(response) + } else { + crate::operation_deser::parse_update_code_repository_response(response) + } } } @@ -12800,46 +6772,6 @@ impl UpdateContext { pub fn builder() -> crate::input::update_context_input::Builder { crate::input::update_context_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateContextError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContextError { - kind: crate::error::UpdateContextErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateContextError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateContextError { - kind: crate::error::UpdateContextErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateContextError::unhandled(e), - }, - _ => crate::error::UpdateContextError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_context_output::Builder::default(); - builder = - crate::json_deser::update_context_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateContextError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12848,7 +6780,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateContext { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_context_error(response) + } else { + crate::operation_deser::parse_update_context_response(response) + } } } @@ -12862,38 +6798,6 @@ impl UpdateDeviceFleet { pub fn builder() -> crate::input::update_device_fleet_input::Builder { crate::input::update_device_fleet_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateDeviceFleetOutput, - crate::error::UpdateDeviceFleetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateDeviceFleetError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDeviceFleetError { - kind: crate::error::UpdateDeviceFleetErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDeviceFleetError::unhandled(e), - }, - _ => crate::error::UpdateDeviceFleetError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_device_fleet_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12904,7 +6808,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDeviceFleet { crate::error::UpdateDeviceFleetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_device_fleet_error(response) + } else { + crate::operation_deser::parse_update_device_fleet_response(response) + } } } @@ -12918,23 +6826,6 @@ impl UpdateDevices { pub fn builder() -> crate::input::update_devices_input::Builder { crate::input::update_devices_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::UpdateDevicesError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_devices_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -12943,7 +6834,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDevices { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_devices_error(response) + } else { + crate::operation_deser::parse_update_devices_response(response) + } } } @@ -12957,53 +6852,6 @@ impl UpdateDomain { pub fn builder() -> crate::input::update_domain_input::Builder { crate::input::update_domain_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateDomainError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDomainError { - kind: crate::error::UpdateDomainErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDomainError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDomainError { - kind: crate::error::UpdateDomainErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDomainError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDomainError { - kind: crate::error::UpdateDomainErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDomainError::unhandled(e), - }, - _ => crate::error::UpdateDomainError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_domain_output::Builder::default(); - builder = - crate::json_deser::update_domain_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateDomainError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13012,7 +6860,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDomain { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_domain_error(response) + } else { + crate::operation_deser::parse_update_domain_response(response) + } } } @@ -13041,39 +6893,6 @@ impl UpdateEndpoint { pub fn builder() -> crate::input::update_endpoint_input::Builder { crate::input::update_endpoint_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateEndpointError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateEndpointError { - kind: crate::error::UpdateEndpointErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateEndpointError::unhandled(e), - }, - _ => crate::error::UpdateEndpointError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_endpoint_output::Builder::default(); - builder = - crate::json_deser::update_endpoint_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateEndpointError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13082,7 +6901,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateEndpoint { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_endpoint_error(response) + } else { + crate::operation_deser::parse_update_endpoint_response(response) + } } } @@ -13100,45 +6923,6 @@ impl UpdateEndpointWeightsAndCapacities { pub fn builder() -> crate::input::update_endpoint_weights_and_capacities_input::Builder { crate::input::update_endpoint_weights_and_capacities_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateEndpointWeightsAndCapacitiesOutput, - crate::error::UpdateEndpointWeightsAndCapacitiesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateEndpointWeightsAndCapacitiesError { kind: crate::error::UpdateEndpointWeightsAndCapacitiesErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled(e) - } - _ => crate::error::UpdateEndpointWeightsAndCapacitiesError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::update_endpoint_weights_and_capacities_output::Builder::default(); - builder = crate::json_deser::update_endpoint_weights_and_capacities_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13149,7 +6933,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateEndpointWeightsAndCapa crate::error::UpdateEndpointWeightsAndCapacitiesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_endpoint_weights_and_capacities_error(response) + } else { + crate::operation_deser::parse_update_endpoint_weights_and_capacities_response(response) + } } } @@ -13164,48 +6952,6 @@ impl UpdateExperiment { pub fn builder() -> crate::input::update_experiment_input::Builder { crate::input::update_experiment_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateExperimentOutput, - crate::error::UpdateExperimentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateExperimentError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateExperimentError { - kind: crate::error::UpdateExperimentErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateExperimentError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateExperimentError { - kind: crate::error::UpdateExperimentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateExperimentError::unhandled(e), - }, - _ => crate::error::UpdateExperimentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_experiment_output::Builder::default(); - builder = - crate::json_deser::update_experiment_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateExperimentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13216,7 +6962,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateExperiment { crate::error::UpdateExperimentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_experiment_error(response) + } else { + crate::operation_deser::parse_update_experiment_response(response) + } } } @@ -13231,45 +6981,6 @@ impl UpdateImage { pub fn builder() -> crate::input::update_image_input::Builder { crate::input::update_image_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateImageError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateImageError { - kind: crate::error::UpdateImageErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::UpdateImageError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateImageError { - kind: crate::error::UpdateImageErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateImageError::unhandled(e), - }, - _ => crate::error::UpdateImageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_image_output::Builder::default(); - builder = - crate::json_deser::update_image_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateImageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13278,7 +6989,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateImage { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_image_error(response) + } else { + crate::operation_deser::parse_update_image_response(response) + } } } @@ -13292,30 +7007,6 @@ impl UpdateModelPackage { pub fn builder() -> crate::input::update_model_package_input::Builder { crate::input::update_model_package_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateModelPackageOutput, - crate::error::UpdateModelPackageError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::UpdateModelPackageError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_model_package_output::Builder::default(); - builder = crate::json_deser::update_model_package_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateModelPackageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13326,7 +7017,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateModelPackage { crate::error::UpdateModelPackageError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_model_package_error(response) + } else { + crate::operation_deser::parse_update_model_package_response(response) + } } } @@ -13340,59 +7035,6 @@ impl UpdateMonitoringSchedule { pub fn builder() -> crate::input::update_monitoring_schedule_input::Builder { crate::input::update_monitoring_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateMonitoringScheduleOutput, - crate::error::UpdateMonitoringScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateMonitoringScheduleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMonitoringScheduleError { - kind: - crate::error::UpdateMonitoringScheduleErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMonitoringScheduleError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMonitoringScheduleError { - kind: crate::error::UpdateMonitoringScheduleErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMonitoringScheduleError::unhandled(e), - }, - _ => crate::error::UpdateMonitoringScheduleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_monitoring_schedule_output::Builder::default(); - builder = crate::json_deser::update_monitoring_schedule_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateMonitoringScheduleError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13403,7 +7045,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateMonitoringSchedule { crate::error::UpdateMonitoringScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_monitoring_schedule_error(response) + } else { + crate::operation_deser::parse_update_monitoring_schedule_response(response) + } } } @@ -13419,44 +7065,6 @@ impl UpdateNotebookInstance { pub fn builder() -> crate::input::update_notebook_instance_input::Builder { crate::input::update_notebook_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateNotebookInstanceOutput, - crate::error::UpdateNotebookInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateNotebookInstanceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateNotebookInstanceError { - kind: crate::error::UpdateNotebookInstanceErrorKind::ResourceLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateNotebookInstanceError::unhandled(e), - }, - _ => crate::error::UpdateNotebookInstanceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_notebook_instance_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13467,7 +7075,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateNotebookInstance { crate::error::UpdateNotebookInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_notebook_instance_error(response) + } else { + crate::operation_deser::parse_update_notebook_instance_response(response) + } } } @@ -13481,42 +7093,6 @@ impl UpdateNotebookInstanceLifecycleConfig { pub fn builder() -> crate::input::update_notebook_instance_lifecycle_config_input::Builder { crate::input::update_notebook_instance_lifecycle_config_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateNotebookInstanceLifecycleConfigOutput, - crate::error::UpdateNotebookInstanceLifecycleConfigError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::UpdateNotebookInstanceLifecycleConfigError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateNotebookInstanceLifecycleConfigError { kind: crate::error::UpdateNotebookInstanceLifecycleConfigErrorKind::ResourceLimitExceeded(body), meta: generic }, - Err(e) => crate::error::UpdateNotebookInstanceLifecycleConfigError::unhandled(e) - } - _ => crate::error::UpdateNotebookInstanceLifecycleConfigError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::update_notebook_instance_lifecycle_config_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13527,7 +7103,13 @@ impl smithy_http::response::ParseStrictResponse for UpdateNotebookInstanceLifecy crate::error::UpdateNotebookInstanceLifecycleConfigError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_notebook_instance_lifecycle_config_error(response) + } else { + crate::operation_deser::parse_update_notebook_instance_lifecycle_config_response( + response, + ) + } } } @@ -13541,39 +7123,6 @@ impl UpdatePipeline { pub fn builder() -> crate::input::update_pipeline_input::Builder { crate::input::update_pipeline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdatePipelineError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdatePipelineError { - kind: crate::error::UpdatePipelineErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdatePipelineError::unhandled(e), - }, - _ => crate::error::UpdatePipelineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_pipeline_output::Builder::default(); - builder = - crate::json_deser::update_pipeline_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdatePipelineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13582,7 +7131,11 @@ impl smithy_http::response::ParseStrictResponse for UpdatePipeline { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_pipeline_error(response) + } else { + crate::operation_deser::parse_update_pipeline_response(response) + } } } @@ -13596,49 +7149,6 @@ impl UpdatePipelineExecution { pub fn builder() -> crate::input::update_pipeline_execution_input::Builder { crate::input::update_pipeline_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdatePipelineExecutionOutput, - crate::error::UpdatePipelineExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdatePipelineExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdatePipelineExecutionError { - kind: crate::error::UpdatePipelineExecutionErrorKind::ResourceNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdatePipelineExecutionError::unhandled(e), - }, - _ => crate::error::UpdatePipelineExecutionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_pipeline_execution_output::Builder::default(); - builder = crate::json_deser::update_pipeline_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdatePipelineExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13649,7 +7159,11 @@ impl smithy_http::response::ParseStrictResponse for UpdatePipelineExecution { crate::error::UpdatePipelineExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_pipeline_execution_error(response) + } else { + crate::operation_deser::parse_update_pipeline_execution_response(response) + } } } @@ -13663,43 +7177,6 @@ impl UpdateTrainingJob { pub fn builder() -> crate::input::update_training_job_input::Builder { crate::input::update_training_job_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateTrainingJobOutput, - crate::error::UpdateTrainingJobError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTrainingJobError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTrainingJobError { - kind: crate::error::UpdateTrainingJobErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTrainingJobError::unhandled(e), - }, - _ => crate::error::UpdateTrainingJobError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_training_job_output::Builder::default(); - builder = crate::json_deser::update_training_job_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateTrainingJobError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13710,7 +7187,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateTrainingJob { crate::error::UpdateTrainingJobError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_training_job_error(response) + } else { + crate::operation_deser::parse_update_training_job_response(response) + } } } @@ -13724,45 +7205,6 @@ impl UpdateTrial { pub fn builder() -> crate::input::update_trial_input::Builder { crate::input::update_trial_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTrialError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTrialError { - kind: crate::error::UpdateTrialErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTrialError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTrialError { - kind: crate::error::UpdateTrialErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTrialError::unhandled(e), - }, - _ => crate::error::UpdateTrialError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_trial_output::Builder::default(); - builder = - crate::json_deser::update_trial_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateTrialError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13771,7 +7213,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateTrial { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_trial_error(response) + } else { + crate::operation_deser::parse_update_trial_response(response) + } } } @@ -13785,50 +7231,6 @@ impl UpdateTrialComponent { pub fn builder() -> crate::input::update_trial_component_input::Builder { crate::input::update_trial_component_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateTrialComponentOutput, - crate::error::UpdateTrialComponentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateTrialComponentError::unhandled(generic)), - }; - return Err(match error_code { - "ConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTrialComponentError { - kind: crate::error::UpdateTrialComponentErrorKind::ConflictError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTrialComponentError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateTrialComponentError { - kind: crate::error::UpdateTrialComponentErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateTrialComponentError::unhandled(e), - }, - _ => crate::error::UpdateTrialComponentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_trial_component_output::Builder::default(); - builder = crate::json_deser::update_trial_component_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateTrialComponentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13839,7 +7241,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateTrialComponent { crate::error::UpdateTrialComponentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_trial_component_error(response) + } else { + crate::operation_deser::parse_update_trial_component_response(response) + } } } @@ -13853,57 +7259,6 @@ impl UpdateUserProfile { pub fn builder() -> crate::input::update_user_profile_input::Builder { crate::input::update_user_profile_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateUserProfileOutput, - crate::error::UpdateUserProfileError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateUserProfileError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceInUse" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateUserProfileError { - kind: crate::error::UpdateUserProfileErrorKind::ResourceInUse(body), - meta: generic, - }, - Err(e) => crate::error::UpdateUserProfileError::unhandled(e), - }, - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateUserProfileError { - kind: crate::error::UpdateUserProfileErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateUserProfileError::unhandled(e), - }, - "ResourceNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateUserProfileError { - kind: crate::error::UpdateUserProfileErrorKind::ResourceNotFound(body), - meta: generic, - }, - Err(e) => crate::error::UpdateUserProfileError::unhandled(e), - }, - _ => crate::error::UpdateUserProfileError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_user_profile_output::Builder::default(); - builder = crate::json_deser::update_user_profile_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateUserProfileError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13914,7 +7269,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateUserProfile { crate::error::UpdateUserProfileError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_user_profile_error(response) + } else { + crate::operation_deser::parse_update_user_profile_response(response) + } } } @@ -13948,26 +7307,6 @@ impl UpdateWorkforce { pub fn builder() -> crate::input::update_workforce_input::Builder { crate::input::update_workforce_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - return Err(crate::error::UpdateWorkforceError::generic(generic)); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_workforce_output::Builder::default(); - builder = - crate::json_deser::update_workforce_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateWorkforceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -13978,7 +7317,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateWorkforce { crate::error::UpdateWorkforceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_workforce_error(response) + } else { + crate::operation_deser::parse_update_workforce_response(response) + } } } @@ -13992,39 +7335,6 @@ impl UpdateWorkteam { pub fn builder() -> crate::input::update_workteam_input::Builder { crate::input::update_workteam_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateWorkteamError::unhandled(generic)), - }; - return Err(match error_code { - "ResourceLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateWorkteamError { - kind: crate::error::UpdateWorkteamErrorKind::ResourceLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateWorkteamError::unhandled(e), - }, - _ => crate::error::UpdateWorkteamError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_workteam_output::Builder::default(); - builder = - crate::json_deser::update_workteam_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateWorkteamError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -14033,6 +7343,10 @@ impl smithy_http::response::ParseStrictResponse for UpdateWorkteam { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_workteam_error(response) + } else { + crate::operation_deser::parse_update_workteam_response(response) + } } } diff --git a/sdk/sagemaker/src/operation_deser.rs b/sdk/sagemaker/src/operation_deser.rs new file mode 100644 index 000000000000..0c9a41613cf1 --- /dev/null +++ b/sdk/sagemaker/src/operation_deser.rs @@ -0,0 +1,10451 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_association_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AddAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::AddAssociationError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::AddAssociationError { + meta: generic, + kind: crate::error::AddAssociationErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddAssociationError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::AddAssociationError { + meta: generic, + kind: crate::error::AddAssociationErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AddAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_association_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::add_association_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_add_association(response.body().as_ref(), output) + .map_err(crate::error::AddAssociationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AddTagsError::unhandled)?; + Err(crate::error::AddTagsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::add_tags_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_add_tags(response.body().as_ref(), output) + .map_err(crate::error::AddTagsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateTrialComponentOutput, + crate::error::AssociateTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AssociateTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::AssociateTrialComponentError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::AssociateTrialComponentError { + meta: generic, + kind: crate::error::AssociateTrialComponentErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateTrialComponentError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::AssociateTrialComponentError { + meta: generic, + kind: crate::error::AssociateTrialComponentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AssociateTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateTrialComponentOutput, + crate::error::AssociateTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::associate_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_associate_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_action_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateActionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateActionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateActionError { + meta: generic, + kind: crate::error::CreateActionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateActionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateActionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_action_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_action_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_action(response.body().as_ref(), output) + .map_err(crate::error::CreateActionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_algorithm_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAlgorithmError::unhandled)?; + Err(crate::error::CreateAlgorithmError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_algorithm_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_algorithm_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_algorithm(response.body().as_ref(), output) + .map_err(crate::error::CreateAlgorithmError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_app_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAppError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAppError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateAppError { + meta: generic, + kind: crate::error::CreateAppErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAppError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateAppError { + meta: generic, + kind: crate::error::CreateAppErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAppError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAppError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_app_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_app_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_app(response.body().as_ref(), output) + .map_err(crate::error::CreateAppError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_app_image_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateAppImageConfigOutput, + crate::error::CreateAppImageConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAppImageConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAppImageConfigError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateAppImageConfigError { + meta: generic, + kind: crate::error::CreateAppImageConfigErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAppImageConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAppImageConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_app_image_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateAppImageConfigOutput, + crate::error::CreateAppImageConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_app_image_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_app_image_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAppImageConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_artifact_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateArtifactError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateArtifactError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateArtifactError { + meta: generic, + kind: crate::error::CreateArtifactErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateArtifactError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateArtifactError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_artifact_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_artifact_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_artifact(response.body().as_ref(), output) + .map_err(crate::error::CreateArtifactError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_auto_ml_job_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAutoMLJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAutoMLJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateAutoMLJobError { + meta: generic, + kind: crate::error::CreateAutoMLJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAutoMLJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateAutoMLJobError { + meta: generic, + kind: crate::error::CreateAutoMLJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAutoMLJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAutoMLJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_auto_ml_job_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_auto_ml_job_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_auto_ml_job(response.body().as_ref(), output) + .map_err(crate::error::CreateAutoMLJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_code_repository_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCodeRepositoryOutput, + crate::error::CreateCodeRepositoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateCodeRepositoryError::unhandled)?; + Err(crate::error::CreateCodeRepositoryError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_code_repository_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCodeRepositoryOutput, + crate::error::CreateCodeRepositoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_code_repository_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_code_repository( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCodeRepositoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_compilation_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCompilationJobOutput, + crate::error::CreateCompilationJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateCompilationJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateCompilationJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateCompilationJobError { + meta: generic, + kind: crate::error::CreateCompilationJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCompilationJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateCompilationJobError { + meta: generic, + kind: crate::error::CreateCompilationJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCompilationJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateCompilationJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_compilation_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateCompilationJobOutput, + crate::error::CreateCompilationJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_compilation_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_compilation_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateCompilationJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_context_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateContextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateContextError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateContextError { + meta: generic, + kind: crate::error::CreateContextErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContextError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateContextError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_context_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_context_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_context(response.body().as_ref(), output) + .map_err(crate::error::CreateContextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_data_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateDataQualityJobDefinitionOutput, + crate::error::CreateDataQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateDataQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateDataQualityJobDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateDataQualityJobDefinitionError { + meta: generic, + kind: crate::error::CreateDataQualityJobDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDataQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateDataQualityJobDefinitionError { + meta: generic, + kind: crate::error::CreateDataQualityJobDefinitionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDataQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateDataQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_data_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateDataQualityJobDefinitionOutput, + crate::error::CreateDataQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_data_quality_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_data_quality_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDataQualityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_device_fleet_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateDeviceFleetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateDeviceFleetError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateDeviceFleetError { + meta: generic, + kind: crate::error::CreateDeviceFleetErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeviceFleetError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateDeviceFleetError { + meta: generic, + kind: crate::error::CreateDeviceFleetErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDeviceFleetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateDeviceFleetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_device_fleet_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_device_fleet_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_domain_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateDomainError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateDomainError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateDomainError { + meta: generic, + kind: crate::error::CreateDomainErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDomainError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateDomainError { + meta: generic, + kind: crate::error::CreateDomainErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDomainError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateDomainError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_domain_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_domain_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_domain(response.body().as_ref(), output) + .map_err(crate::error::CreateDomainError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_edge_packaging_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateEdgePackagingJobOutput, + crate::error::CreateEdgePackagingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateEdgePackagingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateEdgePackagingJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateEdgePackagingJobError { + meta: generic, + kind: crate::error::CreateEdgePackagingJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEdgePackagingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateEdgePackagingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_edge_packaging_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateEdgePackagingJobOutput, + crate::error::CreateEdgePackagingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_edge_packaging_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_endpoint_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateEndpointError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateEndpointError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateEndpointError { + meta: generic, + kind: crate::error::CreateEndpointErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEndpointError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateEndpointError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_endpoint_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_endpoint_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_endpoint(response.body().as_ref(), output) + .map_err(crate::error::CreateEndpointError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_endpoint_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateEndpointConfigOutput, + crate::error::CreateEndpointConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateEndpointConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateEndpointConfigError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateEndpointConfigError { + meta: generic, + kind: crate::error::CreateEndpointConfigErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEndpointConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateEndpointConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_endpoint_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateEndpointConfigOutput, + crate::error::CreateEndpointConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_endpoint_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_endpoint_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEndpointConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_experiment_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateExperimentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateExperimentError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateExperimentError { + meta: generic, + kind: crate::error::CreateExperimentErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateExperimentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateExperimentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_experiment_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_experiment_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_experiment(response.body().as_ref(), output) + .map_err(crate::error::CreateExperimentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_feature_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFeatureGroupOutput, + crate::error::CreateFeatureGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateFeatureGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateFeatureGroupError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateFeatureGroupError { + meta: generic, + kind: crate::error::CreateFeatureGroupErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFeatureGroupError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateFeatureGroupError { + meta: generic, + kind: crate::error::CreateFeatureGroupErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFeatureGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateFeatureGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_feature_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFeatureGroupOutput, + crate::error::CreateFeatureGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_feature_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_feature_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFeatureGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_flow_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFlowDefinitionOutput, + crate::error::CreateFlowDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateFlowDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateFlowDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateFlowDefinitionError { + meta: generic, + kind: crate::error::CreateFlowDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFlowDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateFlowDefinitionError { + meta: generic, + kind: crate::error::CreateFlowDefinitionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFlowDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateFlowDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_flow_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateFlowDefinitionOutput, + crate::error::CreateFlowDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_flow_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_flow_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateFlowDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_human_task_ui_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateHumanTaskUiError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateHumanTaskUiError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateHumanTaskUiError { + meta: generic, + kind: crate::error::CreateHumanTaskUiErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHumanTaskUiError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateHumanTaskUiError { + meta: generic, + kind: crate::error::CreateHumanTaskUiErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHumanTaskUiError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateHumanTaskUiError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_human_task_ui_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_human_task_ui_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_human_task_ui( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHumanTaskUiError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_hyper_parameter_tuning_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateHyperParameterTuningJobOutput, + crate::error::CreateHyperParameterTuningJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateHyperParameterTuningJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateHyperParameterTuningJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateHyperParameterTuningJobError { + meta: generic, + kind: crate::error::CreateHyperParameterTuningJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHyperParameterTuningJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateHyperParameterTuningJobError { + meta: generic, + kind: crate::error::CreateHyperParameterTuningJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHyperParameterTuningJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateHyperParameterTuningJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_hyper_parameter_tuning_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateHyperParameterTuningJobOutput, + crate::error::CreateHyperParameterTuningJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_hyper_parameter_tuning_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_hyper_parameter_tuning_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateHyperParameterTuningJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateImageError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateImageError { + meta: generic, + kind: crate::error::CreateImageErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateImageError { + meta: generic, + kind: crate::error::CreateImageErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_image_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_image(response.body().as_ref(), output) + .map_err(crate::error::CreateImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_image_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateImageVersionOutput, + crate::error::CreateImageVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateImageVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateImageVersionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateImageVersionError { + meta: generic, + kind: crate::error::CreateImageVersionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageVersionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateImageVersionError { + meta: generic, + kind: crate::error::CreateImageVersionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageVersionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreateImageVersionError { + meta: generic, + kind: crate::error::CreateImageVersionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateImageVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_image_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateImageVersionOutput, + crate::error::CreateImageVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_image_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_image_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImageVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_labeling_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateLabelingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateLabelingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateLabelingJobError { + meta: generic, + kind: crate::error::CreateLabelingJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLabelingJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateLabelingJobError { + meta: generic, + kind: crate::error::CreateLabelingJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLabelingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateLabelingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_labeling_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_labeling_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_labeling_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateLabelingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateModelError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateModelError { + meta: generic, + kind: crate::error::CreateModelErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateModelError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_model_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model(response.body().as_ref(), output) + .map_err(crate::error::CreateModelError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_bias_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelBiasJobDefinitionOutput, + crate::error::CreateModelBiasJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelBiasJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateModelBiasJobDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateModelBiasJobDefinitionError { + meta: generic, + kind: crate::error::CreateModelBiasJobDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelBiasJobDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateModelBiasJobDefinitionError { + meta: generic, + kind: crate::error::CreateModelBiasJobDefinitionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelBiasJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateModelBiasJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_bias_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelBiasJobDefinitionOutput, + crate::error::CreateModelBiasJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_model_bias_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model_bias_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelBiasJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_explainability_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelExplainabilityJobDefinitionOutput, + crate::error::CreateModelExplainabilityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelExplainabilityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::CreateModelExplainabilityJobDefinitionError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateModelExplainabilityJobDefinitionError { + meta: generic, + kind: crate::error::CreateModelExplainabilityJobDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelExplainabilityJobDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateModelExplainabilityJobDefinitionError { + meta: generic, + kind: + crate::error::CreateModelExplainabilityJobDefinitionErrorKind::ResourceLimitExceeded( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err(response.body().as_ref(), output).map_err(crate::error::CreateModelExplainabilityJobDefinitionError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::CreateModelExplainabilityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_explainability_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelExplainabilityJobDefinitionOutput, + crate::error::CreateModelExplainabilityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_model_explainability_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model_explainability_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelExplainabilityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_package_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelPackageOutput, + crate::error::CreateModelPackageError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelPackageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateModelPackageError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::CreateModelPackageError { + meta: generic, + kind: crate::error::CreateModelPackageErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelPackageError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateModelPackageError { + meta: generic, + kind: crate::error::CreateModelPackageErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelPackageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateModelPackageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_package_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelPackageOutput, + crate::error::CreateModelPackageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_model_package_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model_package( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelPackageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_package_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelPackageGroupOutput, + crate::error::CreateModelPackageGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelPackageGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateModelPackageGroupError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateModelPackageGroupError { + meta: generic, + kind: crate::error::CreateModelPackageGroupErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelPackageGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateModelPackageGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_package_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelPackageGroupOutput, + crate::error::CreateModelPackageGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_model_package_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model_package_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelPackageGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelQualityJobDefinitionOutput, + crate::error::CreateModelQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateModelQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateModelQualityJobDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateModelQualityJobDefinitionError { + meta: generic, + kind: crate::error::CreateModelQualityJobDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateModelQualityJobDefinitionError { + meta: generic, + kind: crate::error::CreateModelQualityJobDefinitionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateModelQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_model_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateModelQualityJobDefinitionOutput, + crate::error::CreateModelQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_model_quality_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_model_quality_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateModelQualityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateMonitoringScheduleOutput, + crate::error::CreateMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateMonitoringScheduleError { + meta: generic, + kind: crate::error::CreateMonitoringScheduleErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateMonitoringScheduleError { + meta: generic, + kind: crate::error::CreateMonitoringScheduleErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateMonitoringScheduleOutput, + crate::error::CreateMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_monitoring_schedule_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_monitoring_schedule( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMonitoringScheduleError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateNotebookInstanceOutput, + crate::error::CreateNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateNotebookInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateNotebookInstanceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateNotebookInstanceError { + meta: generic, + kind: crate::error::CreateNotebookInstanceErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNotebookInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateNotebookInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateNotebookInstanceOutput, + crate::error::CreateNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_notebook_instance_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_notebook_instance( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNotebookInstanceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_notebook_instance_lifecycle_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateNotebookInstanceLifecycleConfigOutput, + crate::error::CreateNotebookInstanceLifecycleConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateNotebookInstanceLifecycleConfigError { + meta: generic, + kind: + crate::error::CreateNotebookInstanceLifecycleConfigErrorKind::ResourceLimitExceeded( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::CreateNotebookInstanceLifecycleConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_notebook_instance_lifecycle_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateNotebookInstanceLifecycleConfigOutput, + crate::error::CreateNotebookInstanceLifecycleConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_notebook_instance_lifecycle_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_notebook_instance_lifecycle_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateNotebookInstanceLifecycleConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_pipeline_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreatePipelineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreatePipelineError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreatePipelineError { + meta: generic, + kind: crate::error::CreatePipelineErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePipelineError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreatePipelineError { + meta: generic, + kind: crate::error::CreatePipelineErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePipelineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreatePipelineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_pipeline_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_pipeline_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_pipeline(response.body().as_ref(), output) + .map_err(crate::error::CreatePipelineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_presigned_domain_url_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePresignedDomainUrlOutput, + crate::error::CreatePresignedDomainUrlError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreatePresignedDomainUrlError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreatePresignedDomainUrlError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::CreatePresignedDomainUrlError { + meta: generic, + kind: crate::error::CreatePresignedDomainUrlErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePresignedDomainUrlError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreatePresignedDomainUrlError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_presigned_domain_url_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePresignedDomainUrlOutput, + crate::error::CreatePresignedDomainUrlError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_presigned_domain_url_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_presigned_domain_url( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePresignedDomainUrlError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_presigned_notebook_instance_url_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePresignedNotebookInstanceUrlOutput, + crate::error::CreatePresignedNotebookInstanceUrlError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreatePresignedNotebookInstanceUrlError::unhandled)?; + Err(crate::error::CreatePresignedNotebookInstanceUrlError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_presigned_notebook_instance_url_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePresignedNotebookInstanceUrlOutput, + crate::error::CreatePresignedNotebookInstanceUrlError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::create_presigned_notebook_instance_url_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_presigned_notebook_instance_url( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePresignedNotebookInstanceUrlError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_processing_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateProcessingJobOutput, + crate::error::CreateProcessingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateProcessingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateProcessingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateProcessingJobError { + meta: generic, + kind: crate::error::CreateProcessingJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateProcessingJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateProcessingJobError { + meta: generic, + kind: crate::error::CreateProcessingJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateProcessingJobError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreateProcessingJobError { + meta: generic, + kind: crate::error::CreateProcessingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateProcessingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateProcessingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_processing_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateProcessingJobOutput, + crate::error::CreateProcessingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_processing_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_processing_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateProcessingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_project_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateProjectError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateProjectError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateProjectError { + meta: generic, + kind: crate::error::CreateProjectErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateProjectError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateProjectError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_project_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_project_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_project(response.body().as_ref(), output) + .map_err(crate::error::CreateProjectError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_training_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTrainingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTrainingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateTrainingJobError { + meta: generic, + kind: crate::error::CreateTrainingJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrainingJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateTrainingJobError { + meta: generic, + kind: crate::error::CreateTrainingJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrainingJobError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreateTrainingJobError { + meta: generic, + kind: crate::error::CreateTrainingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrainingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTrainingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_training_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_training_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_training_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrainingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_transform_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateTransformJobOutput, + crate::error::CreateTransformJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTransformJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTransformJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateTransformJobError { + meta: generic, + kind: crate::error::CreateTransformJobErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTransformJobError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateTransformJobError { + meta: generic, + kind: crate::error::CreateTransformJobErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTransformJobError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreateTransformJobError { + meta: generic, + kind: crate::error::CreateTransformJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTransformJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTransformJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_transform_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateTransformJobOutput, + crate::error::CreateTransformJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_transform_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_transform_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTransformJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_trial_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTrialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTrialError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateTrialError { + meta: generic, + kind: crate::error::CreateTrialErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrialError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::CreateTrialError { + meta: generic, + kind: crate::error::CreateTrialErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrialError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTrialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_trial_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_trial_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_trial(response.body().as_ref(), output) + .map_err(crate::error::CreateTrialError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateTrialComponentOutput, + crate::error::CreateTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateTrialComponentError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::CreateTrialComponentError { + meta: generic, + kind: crate::error::CreateTrialComponentErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateTrialComponentOutput, + crate::error::CreateTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_user_profile_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateUserProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateUserProfileError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateUserProfileError { + meta: generic, + kind: crate::error::CreateUserProfileErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUserProfileError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateUserProfileError { + meta: generic, + kind: crate::error::CreateUserProfileErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUserProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateUserProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_user_profile_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_user_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_user_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateUserProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_workforce_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateWorkforceError::unhandled)?; + Err(crate::error::CreateWorkforceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_workforce_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_workforce_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_workforce(response.body().as_ref(), output) + .map_err(crate::error::CreateWorkforceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_workteam_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateWorkteamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateWorkteamError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::CreateWorkteamError { + meta: generic, + kind: crate::error::CreateWorkteamErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateWorkteamError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::CreateWorkteamError { + meta: generic, + kind: crate::error::CreateWorkteamErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateWorkteamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateWorkteamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_workteam_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_workteam_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_workteam(response.body().as_ref(), output) + .map_err(crate::error::CreateWorkteamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_action_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteActionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteActionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteActionError { + meta: generic, + kind: crate::error::DeleteActionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteActionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteActionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_action_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_action_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_action(response.body().as_ref(), output) + .map_err(crate::error::DeleteActionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_algorithm_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAlgorithmError::unhandled)?; + Err(crate::error::DeleteAlgorithmError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_algorithm_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_algorithm_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_app_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAppError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAppError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteAppError { + meta: generic, + kind: crate::error::DeleteAppErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAppError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteAppError { + meta: generic, + kind: crate::error::DeleteAppErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAppError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAppError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_app_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_app_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_app_image_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAppImageConfigOutput, + crate::error::DeleteAppImageConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAppImageConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAppImageConfigError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteAppImageConfigError { + meta: generic, + kind: crate::error::DeleteAppImageConfigErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAppImageConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAppImageConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_app_image_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteAppImageConfigOutput, + crate::error::DeleteAppImageConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_app_image_config_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_artifact_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteArtifactError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteArtifactError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteArtifactError { + meta: generic, + kind: crate::error::DeleteArtifactErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteArtifactError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteArtifactError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_artifact_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_artifact_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_artifact(response.body().as_ref(), output) + .map_err(crate::error::DeleteArtifactError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_association_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAssociationError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_association_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_association_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_association(response.body().as_ref(), output) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_code_repository_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCodeRepositoryOutput, + crate::error::DeleteCodeRepositoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteCodeRepositoryError::unhandled)?; + Err(crate::error::DeleteCodeRepositoryError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_code_repository_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteCodeRepositoryOutput, + crate::error::DeleteCodeRepositoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_code_repository_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_context_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteContextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteContextError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteContextError { + meta: generic, + kind: crate::error::DeleteContextErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteContextError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteContextError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_context_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_context_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_context(response.body().as_ref(), output) + .map_err(crate::error::DeleteContextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_data_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteDataQualityJobDefinitionOutput, + crate::error::DeleteDataQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDataQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDataQualityJobDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteDataQualityJobDefinitionError { + meta: generic, + kind: crate::error::DeleteDataQualityJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDataQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteDataQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_data_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteDataQualityJobDefinitionOutput, + crate::error::DeleteDataQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::delete_data_quality_job_definition_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_device_fleet_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDeviceFleetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDeviceFleetError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteDeviceFleetError { + meta: generic, + kind: crate::error::DeleteDeviceFleetErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDeviceFleetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteDeviceFleetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_device_fleet_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_device_fleet_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_domain_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDomainError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDomainError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteDomainError { + meta: generic, + kind: crate::error::DeleteDomainErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDomainError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteDomainError { + meta: generic, + kind: crate::error::DeleteDomainErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDomainError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteDomainError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_domain_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_domain_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_endpoint_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteEndpointError::unhandled)?; + Err(crate::error::DeleteEndpointError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_endpoint_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_endpoint_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_endpoint_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteEndpointConfigOutput, + crate::error::DeleteEndpointConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteEndpointConfigError::unhandled)?; + Err(crate::error::DeleteEndpointConfigError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_endpoint_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteEndpointConfigOutput, + crate::error::DeleteEndpointConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_endpoint_config_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_experiment_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteExperimentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteExperimentError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteExperimentError { + meta: generic, + kind: crate::error::DeleteExperimentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteExperimentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteExperimentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_experiment_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_experiment_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_experiment(response.body().as_ref(), output) + .map_err(crate::error::DeleteExperimentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_feature_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFeatureGroupOutput, + crate::error::DeleteFeatureGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteFeatureGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteFeatureGroupError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteFeatureGroupError { + meta: generic, + kind: crate::error::DeleteFeatureGroupErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFeatureGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteFeatureGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_feature_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFeatureGroupOutput, + crate::error::DeleteFeatureGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_feature_group_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_flow_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFlowDefinitionOutput, + crate::error::DeleteFlowDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteFlowDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteFlowDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteFlowDefinitionError { + meta: generic, + kind: crate::error::DeleteFlowDefinitionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFlowDefinitionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteFlowDefinitionError { + meta: generic, + kind: crate::error::DeleteFlowDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteFlowDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteFlowDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_flow_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteFlowDefinitionOutput, + crate::error::DeleteFlowDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_flow_definition_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_human_task_ui_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteHumanTaskUiError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteHumanTaskUiError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteHumanTaskUiError { + meta: generic, + kind: crate::error::DeleteHumanTaskUiErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteHumanTaskUiError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteHumanTaskUiError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_human_task_ui_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_human_task_ui_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteImageError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteImageError { + meta: generic, + kind: crate::error::DeleteImageErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImageError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteImageError { + meta: generic, + kind: crate::error::DeleteImageErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_image_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_image_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteImageVersionOutput, + crate::error::DeleteImageVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteImageVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteImageVersionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteImageVersionError { + meta: generic, + kind: crate::error::DeleteImageVersionErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImageVersionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteImageVersionError { + meta: generic, + kind: crate::error::DeleteImageVersionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteImageVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteImageVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_image_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteImageVersionOutput, + crate::error::DeleteImageVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_image_version_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelError::unhandled)?; + Err(crate::error::DeleteModelError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_model_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_bias_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelBiasJobDefinitionOutput, + crate::error::DeleteModelBiasJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelBiasJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteModelBiasJobDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteModelBiasJobDefinitionError { + meta: generic, + kind: crate::error::DeleteModelBiasJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelBiasJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteModelBiasJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_bias_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelBiasJobDefinitionOutput, + crate::error::DeleteModelBiasJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_model_bias_job_definition_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_explainability_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelExplainabilityJobDefinitionOutput, + crate::error::DeleteModelExplainabilityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelExplainabilityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DeleteModelExplainabilityJobDefinitionError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceNotFound" => { + crate::error::DeleteModelExplainabilityJobDefinitionError { + meta: generic, + kind: + crate::error::DeleteModelExplainabilityJobDefinitionErrorKind::ResourceNotFound( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteModelExplainabilityJobDefinitionError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DeleteModelExplainabilityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_explainability_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelExplainabilityJobDefinitionOutput, + crate::error::DeleteModelExplainabilityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::delete_model_explainability_job_definition_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageOutput, + crate::error::DeleteModelPackageError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelPackageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteModelPackageError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::DeleteModelPackageError { + meta: generic, + kind: crate::error::DeleteModelPackageErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelPackageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteModelPackageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageOutput, + crate::error::DeleteModelPackageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_model_package_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageGroupOutput, + crate::error::DeleteModelPackageGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelPackageGroupError::unhandled)?; + Err(crate::error::DeleteModelPackageGroupError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageGroupOutput, + crate::error::DeleteModelPackageGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_model_package_group_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_group_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageGroupPolicyOutput, + crate::error::DeleteModelPackageGroupPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelPackageGroupPolicyError::unhandled)?; + Err(crate::error::DeleteModelPackageGroupPolicyError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_package_group_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelPackageGroupPolicyOutput, + crate::error::DeleteModelPackageGroupPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::delete_model_package_group_policy_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelQualityJobDefinitionOutput, + crate::error::DeleteModelQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteModelQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteModelQualityJobDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteModelQualityJobDefinitionError { + meta: generic, + kind: crate::error::DeleteModelQualityJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteModelQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteModelQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_model_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteModelQualityJobDefinitionOutput, + crate::error::DeleteModelQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::delete_model_quality_job_definition_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMonitoringScheduleOutput, + crate::error::DeleteMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteMonitoringScheduleError { + meta: generic, + kind: crate::error::DeleteMonitoringScheduleErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMonitoringScheduleOutput, + crate::error::DeleteMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_monitoring_schedule_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteNotebookInstanceOutput, + crate::error::DeleteNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteNotebookInstanceError::unhandled)?; + Err(crate::error::DeleteNotebookInstanceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteNotebookInstanceOutput, + crate::error::DeleteNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_notebook_instance_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_notebook_instance_lifecycle_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteNotebookInstanceLifecycleConfigOutput, + crate::error::DeleteNotebookInstanceLifecycleConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteNotebookInstanceLifecycleConfigError::unhandled)?; + Err(crate::error::DeleteNotebookInstanceLifecycleConfigError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_notebook_instance_lifecycle_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteNotebookInstanceLifecycleConfigOutput, + crate::error::DeleteNotebookInstanceLifecycleConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::delete_notebook_instance_lifecycle_config_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_pipeline_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeletePipelineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeletePipelineError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeletePipelineError { + meta: generic, + kind: crate::error::DeletePipelineErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeletePipelineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeletePipelineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_pipeline_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_pipeline_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_pipeline(response.body().as_ref(), output) + .map_err(crate::error::DeletePipelineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_project_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteProjectError::unhandled)?; + Err(crate::error::DeleteProjectError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_project_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_project_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_tags_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteTagsError::unhandled)?; + Err(crate::error::DeleteTagsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_tags_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_tags_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_trial_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteTrialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteTrialError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteTrialError { + meta: generic, + kind: crate::error::DeleteTrialErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTrialError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteTrialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_trial_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_trial_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_trial(response.body().as_ref(), output) + .map_err(crate::error::DeleteTrialError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteTrialComponentOutput, + crate::error::DeleteTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteTrialComponentError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DeleteTrialComponentError { + meta: generic, + kind: crate::error::DeleteTrialComponentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteTrialComponentOutput, + crate::error::DeleteTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_user_profile_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteUserProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteUserProfileError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::DeleteUserProfileError { + meta: generic, + kind: crate::error::DeleteUserProfileErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUserProfileError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::DeleteUserProfileError { + meta: generic, + kind: crate::error::DeleteUserProfileErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteUserProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteUserProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_user_profile_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_user_profile_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_workforce_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteWorkforceError::unhandled)?; + Err(crate::error::DeleteWorkforceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_workforce_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_workforce_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_workteam_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteWorkteamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteWorkteamError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::DeleteWorkteamError { + meta: generic, + kind: crate::error::DeleteWorkteamErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteWorkteamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteWorkteamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_workteam_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_workteam_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_workteam(response.body().as_ref(), output) + .map_err(crate::error::DeleteWorkteamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_devices_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterDevicesError::unhandled)?; + Err(crate::error::DeregisterDevicesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_devices_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::deregister_devices_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_action_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeActionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeActionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeActionError { + meta: generic, + kind: crate::error::DescribeActionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeActionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeActionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_action_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_action_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_action(response.body().as_ref(), output) + .map_err(crate::error::DescribeActionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_algorithm_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAlgorithmError::unhandled)?; + Err(crate::error::DescribeAlgorithmError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_algorithm_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_algorithm_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_algorithm(response.body().as_ref(), output) + .map_err(crate::error::DescribeAlgorithmError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_app_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAppError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAppError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeAppError { + meta: generic, + kind: crate::error::DescribeAppErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAppError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAppError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_app_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_app_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_app(response.body().as_ref(), output) + .map_err(crate::error::DescribeAppError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_app_image_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAppImageConfigOutput, + crate::error::DescribeAppImageConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAppImageConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAppImageConfigError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeAppImageConfigError { + meta: generic, + kind: crate::error::DescribeAppImageConfigErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAppImageConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAppImageConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_app_image_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAppImageConfigOutput, + crate::error::DescribeAppImageConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_app_image_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_app_image_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAppImageConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_artifact_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeArtifactError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeArtifactError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeArtifactError { + meta: generic, + kind: crate::error::DescribeArtifactErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeArtifactError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeArtifactError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_artifact_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_artifact_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_artifact(response.body().as_ref(), output) + .map_err(crate::error::DescribeArtifactError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_auto_ml_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAutoMLJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAutoMLJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeAutoMLJobError { + meta: generic, + kind: crate::error::DescribeAutoMLJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutoMLJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAutoMLJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_auto_ml_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_auto_ml_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_auto_ml_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutoMLJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_code_repository_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCodeRepositoryOutput, + crate::error::DescribeCodeRepositoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeCodeRepositoryError::unhandled)?; + Err(crate::error::DescribeCodeRepositoryError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_code_repository_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCodeRepositoryOutput, + crate::error::DescribeCodeRepositoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_code_repository_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_code_repository( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCodeRepositoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_compilation_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCompilationJobOutput, + crate::error::DescribeCompilationJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeCompilationJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeCompilationJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeCompilationJobError { + meta: generic, + kind: crate::error::DescribeCompilationJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCompilationJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeCompilationJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_compilation_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeCompilationJobOutput, + crate::error::DescribeCompilationJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_compilation_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_compilation_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeCompilationJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_context_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeContextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeContextError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeContextError { + meta: generic, + kind: crate::error::DescribeContextErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeContextError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeContextError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_context_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_context_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_context(response.body().as_ref(), output) + .map_err(crate::error::DescribeContextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_data_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDataQualityJobDefinitionOutput, + crate::error::DescribeDataQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDataQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeDataQualityJobDefinitionError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeDataQualityJobDefinitionError { + meta: generic, + kind: crate::error::DescribeDataQualityJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDataQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDataQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_data_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDataQualityJobDefinitionOutput, + crate::error::DescribeDataQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_data_quality_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_data_quality_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDataQualityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_device_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDeviceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeDeviceError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeDeviceError { + meta: generic, + kind: crate::error::DescribeDeviceErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDeviceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDeviceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_device_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_device_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_device(response.body().as_ref(), output) + .map_err(crate::error::DescribeDeviceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_device_fleet_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDeviceFleetOutput, + crate::error::DescribeDeviceFleetError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDeviceFleetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeDeviceFleetError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeDeviceFleetError { + meta: generic, + kind: crate::error::DescribeDeviceFleetErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDeviceFleetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDeviceFleetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_device_fleet_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDeviceFleetOutput, + crate::error::DescribeDeviceFleetError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_device_fleet_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_device_fleet( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDeviceFleetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_domain_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDomainError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeDomainError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeDomainError { + meta: generic, + kind: crate::error::DescribeDomainErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDomainError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDomainError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_domain_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_domain_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_domain(response.body().as_ref(), output) + .map_err(crate::error::DescribeDomainError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_edge_packaging_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEdgePackagingJobOutput, + crate::error::DescribeEdgePackagingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEdgePackagingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeEdgePackagingJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeEdgePackagingJobError { + meta: generic, + kind: crate::error::DescribeEdgePackagingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEdgePackagingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeEdgePackagingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_edge_packaging_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEdgePackagingJobOutput, + crate::error::DescribeEdgePackagingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_edge_packaging_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_edge_packaging_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEdgePackagingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoint_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEndpointError::unhandled)?; + Err(crate::error::DescribeEndpointError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoint_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_endpoint_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_endpoint(response.body().as_ref(), output) + .map_err(crate::error::DescribeEndpointError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoint_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEndpointConfigOutput, + crate::error::DescribeEndpointConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEndpointConfigError::unhandled)?; + Err(crate::error::DescribeEndpointConfigError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_endpoint_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEndpointConfigOutput, + crate::error::DescribeEndpointConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_endpoint_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_endpoint_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEndpointConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_experiment_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeExperimentOutput, + crate::error::DescribeExperimentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeExperimentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeExperimentError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeExperimentError { + meta: generic, + kind: crate::error::DescribeExperimentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExperimentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeExperimentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_experiment_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeExperimentOutput, + crate::error::DescribeExperimentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_experiment_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_experiment( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeExperimentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_feature_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFeatureGroupOutput, + crate::error::DescribeFeatureGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeFeatureGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeFeatureGroupError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeFeatureGroupError { + meta: generic, + kind: crate::error::DescribeFeatureGroupErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFeatureGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeFeatureGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_feature_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFeatureGroupOutput, + crate::error::DescribeFeatureGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_feature_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_feature_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFeatureGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_flow_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFlowDefinitionOutput, + crate::error::DescribeFlowDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeFlowDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeFlowDefinitionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeFlowDefinitionError { + meta: generic, + kind: crate::error::DescribeFlowDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFlowDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeFlowDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_flow_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeFlowDefinitionOutput, + crate::error::DescribeFlowDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_flow_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_flow_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeFlowDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_human_task_ui_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeHumanTaskUiOutput, + crate::error::DescribeHumanTaskUiError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeHumanTaskUiError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeHumanTaskUiError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeHumanTaskUiError { + meta: generic, + kind: crate::error::DescribeHumanTaskUiErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHumanTaskUiError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeHumanTaskUiError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_human_task_ui_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeHumanTaskUiOutput, + crate::error::DescribeHumanTaskUiError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_human_task_ui_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_human_task_ui( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHumanTaskUiError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_hyper_parameter_tuning_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeHyperParameterTuningJobOutput, + crate::error::DescribeHyperParameterTuningJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeHyperParameterTuningJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeHyperParameterTuningJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeHyperParameterTuningJobError { + meta: generic, + kind: crate::error::DescribeHyperParameterTuningJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHyperParameterTuningJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeHyperParameterTuningJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_hyper_parameter_tuning_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeHyperParameterTuningJobOutput, + crate::error::DescribeHyperParameterTuningJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_hyper_parameter_tuning_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_hyper_parameter_tuning_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHyperParameterTuningJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeImageError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeImageError { + meta: generic, + kind: crate::error::DescribeImageErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_image_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_image(response.body().as_ref(), output) + .map_err(crate::error::DescribeImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeImageVersionOutput, + crate::error::DescribeImageVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeImageVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeImageVersionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeImageVersionError { + meta: generic, + kind: crate::error::DescribeImageVersionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeImageVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_image_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeImageVersionOutput, + crate::error::DescribeImageVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_image_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_image_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeImageVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_labeling_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeLabelingJobOutput, + crate::error::DescribeLabelingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeLabelingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeLabelingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeLabelingJobError { + meta: generic, + kind: crate::error::DescribeLabelingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLabelingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeLabelingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_labeling_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeLabelingJobOutput, + crate::error::DescribeLabelingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_labeling_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_labeling_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeLabelingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelError::unhandled)?; + Err(crate::error::DescribeModelError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_model_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_model(response.body().as_ref(), output) + .map_err(crate::error::DescribeModelError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_bias_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelBiasJobDefinitionOutput, + crate::error::DescribeModelBiasJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelBiasJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeModelBiasJobDefinitionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeModelBiasJobDefinitionError { + meta: generic, + kind: crate::error::DescribeModelBiasJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelBiasJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeModelBiasJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_bias_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelBiasJobDefinitionOutput, + crate::error::DescribeModelBiasJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_model_bias_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_model_bias_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelBiasJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_explainability_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelExplainabilityJobDefinitionOutput, + crate::error::DescribeModelExplainabilityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeModelExplainabilityJobDefinitionError { + meta: generic, + kind: crate::error::DescribeModelExplainabilityJobDefinitionErrorKind::ResourceNotFound( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::DescribeModelExplainabilityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_explainability_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelExplainabilityJobDefinitionOutput, + crate::error::DescribeModelExplainabilityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_model_explainability_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_model_explainability_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelExplainabilityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_package_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelPackageOutput, + crate::error::DescribeModelPackageError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelPackageError::unhandled)?; + Err(crate::error::DescribeModelPackageError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_package_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelPackageOutput, + crate::error::DescribeModelPackageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_model_package_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_model_package( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelPackageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_package_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelPackageGroupOutput, + crate::error::DescribeModelPackageGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelPackageGroupError::unhandled)?; + Err(crate::error::DescribeModelPackageGroupError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_package_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelPackageGroupOutput, + crate::error::DescribeModelPackageGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_model_package_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_model_package_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelPackageGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_quality_job_definition_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelQualityJobDefinitionOutput, + crate::error::DescribeModelQualityJobDefinitionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeModelQualityJobDefinitionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeModelQualityJobDefinitionError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeModelQualityJobDefinitionError { + meta: generic, + kind: crate::error::DescribeModelQualityJobDefinitionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelQualityJobDefinitionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeModelQualityJobDefinitionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_model_quality_job_definition_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeModelQualityJobDefinitionOutput, + crate::error::DescribeModelQualityJobDefinitionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_model_quality_job_definition_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_model_quality_job_definition( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeModelQualityJobDefinitionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMonitoringScheduleOutput, + crate::error::DescribeMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeMonitoringScheduleError { + meta: generic, + kind: crate::error::DescribeMonitoringScheduleErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMonitoringScheduleOutput, + crate::error::DescribeMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_monitoring_schedule_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_monitoring_schedule( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMonitoringScheduleError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeNotebookInstanceOutput, + crate::error::DescribeNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeNotebookInstanceError::unhandled)?; + Err(crate::error::DescribeNotebookInstanceError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeNotebookInstanceOutput, + crate::error::DescribeNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_notebook_instance_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_notebook_instance( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNotebookInstanceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_notebook_instance_lifecycle_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeNotebookInstanceLifecycleConfigOutput, + crate::error::DescribeNotebookInstanceLifecycleConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeNotebookInstanceLifecycleConfigError::unhandled)?; + Err(crate::error::DescribeNotebookInstanceLifecycleConfigError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_notebook_instance_lifecycle_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeNotebookInstanceLifecycleConfigOutput, + crate::error::DescribeNotebookInstanceLifecycleConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_notebook_instance_lifecycle_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_notebook_instance_lifecycle_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeNotebookInstanceLifecycleConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePipelineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribePipelineError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribePipelineError { + meta: generic, + kind: crate::error::DescribePipelineErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePipelineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePipelineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_pipeline_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_pipeline(response.body().as_ref(), output) + .map_err(crate::error::DescribePipelineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_definition_for_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePipelineDefinitionForExecutionOutput, + crate::error::DescribePipelineDefinitionForExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePipelineDefinitionForExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribePipelineDefinitionForExecutionError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceNotFound" => { + crate::error::DescribePipelineDefinitionForExecutionError { + meta: generic, + kind: + crate::error::DescribePipelineDefinitionForExecutionErrorKind::ResourceNotFound( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err(response.body().as_ref(), output).map_err(crate::error::DescribePipelineDefinitionForExecutionError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DescribePipelineDefinitionForExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_definition_for_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePipelineDefinitionForExecutionOutput, + crate::error::DescribePipelineDefinitionForExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_pipeline_definition_for_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_pipeline_definition_for_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePipelineDefinitionForExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePipelineExecutionOutput, + crate::error::DescribePipelineExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePipelineExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribePipelineExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribePipelineExecutionError { + meta: generic, + kind: crate::error::DescribePipelineExecutionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePipelineExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePipelineExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_pipeline_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePipelineExecutionOutput, + crate::error::DescribePipelineExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_pipeline_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_pipeline_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePipelineExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_processing_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeProcessingJobOutput, + crate::error::DescribeProcessingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeProcessingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeProcessingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeProcessingJobError { + meta: generic, + kind: crate::error::DescribeProcessingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeProcessingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeProcessingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_processing_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeProcessingJobOutput, + crate::error::DescribeProcessingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_processing_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_processing_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeProcessingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_project_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeProjectError::unhandled)?; + Err(crate::error::DescribeProjectError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_project_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_project_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_project(response.body().as_ref(), output) + .map_err(crate::error::DescribeProjectError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_subscribed_workteam_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeSubscribedWorkteamOutput, + crate::error::DescribeSubscribedWorkteamError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeSubscribedWorkteamError::unhandled)?; + Err(crate::error::DescribeSubscribedWorkteamError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_subscribed_workteam_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeSubscribedWorkteamOutput, + crate::error::DescribeSubscribedWorkteamError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_subscribed_workteam_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_subscribed_workteam( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSubscribedWorkteamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_training_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTrainingJobOutput, + crate::error::DescribeTrainingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTrainingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTrainingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeTrainingJobError { + meta: generic, + kind: crate::error::DescribeTrainingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTrainingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTrainingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_training_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTrainingJobOutput, + crate::error::DescribeTrainingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_training_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_training_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTrainingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_transform_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTransformJobOutput, + crate::error::DescribeTransformJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTransformJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTransformJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeTransformJobError { + meta: generic, + kind: crate::error::DescribeTransformJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTransformJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTransformJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_transform_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTransformJobOutput, + crate::error::DescribeTransformJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_transform_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_transform_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTransformJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_trial_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTrialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeTrialError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeTrialError { + meta: generic, + kind: crate::error::DescribeTrialErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTrialError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTrialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_trial_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_trial_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_trial(response.body().as_ref(), output) + .map_err(crate::error::DescribeTrialError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTrialComponentOutput, + crate::error::DescribeTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeTrialComponentError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeTrialComponentError { + meta: generic, + kind: crate::error::DescribeTrialComponentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeTrialComponentOutput, + crate::error::DescribeTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_user_profile_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeUserProfileOutput, + crate::error::DescribeUserProfileError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeUserProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeUserProfileError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DescribeUserProfileError { + meta: generic, + kind: crate::error::DescribeUserProfileErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUserProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeUserProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_user_profile_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeUserProfileOutput, + crate::error::DescribeUserProfileError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_user_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_user_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeUserProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_workforce_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeWorkforceError::unhandled)?; + Err(crate::error::DescribeWorkforceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_workforce_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_workforce_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_workforce(response.body().as_ref(), output) + .map_err(crate::error::DescribeWorkforceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_workteam_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeWorkteamError::unhandled)?; + Err(crate::error::DescribeWorkteamError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_workteam_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_workteam_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_workteam(response.body().as_ref(), output) + .map_err(crate::error::DescribeWorkteamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_sagemaker_servicecatalog_portfolio_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableSagemakerServicecatalogPortfolioOutput, + crate::error::DisableSagemakerServicecatalogPortfolioError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisableSagemakerServicecatalogPortfolioError::unhandled)?; + Err(crate::error::DisableSagemakerServicecatalogPortfolioError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disable_sagemaker_servicecatalog_portfolio_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisableSagemakerServicecatalogPortfolioOutput, + crate::error::DisableSagemakerServicecatalogPortfolioError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::disable_sagemaker_servicecatalog_portfolio_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateTrialComponentOutput, + crate::error::DisassociateTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisassociateTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DisassociateTrialComponentError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::DisassociateTrialComponentError { + meta: generic, + kind: crate::error::DisassociateTrialComponentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DisassociateTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateTrialComponentOutput, + crate::error::DisassociateTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::disassociate_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_disassociate_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DisassociateTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_sagemaker_servicecatalog_portfolio_error( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableSagemakerServicecatalogPortfolioOutput, + crate::error::EnableSagemakerServicecatalogPortfolioError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::EnableSagemakerServicecatalogPortfolioError::unhandled)?; + Err(crate::error::EnableSagemakerServicecatalogPortfolioError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_enable_sagemaker_servicecatalog_portfolio_response( + response: &http::Response, +) -> std::result::Result< + crate::output::EnableSagemakerServicecatalogPortfolioOutput, + crate::error::EnableSagemakerServicecatalogPortfolioError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::enable_sagemaker_servicecatalog_portfolio_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_device_fleet_report_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDeviceFleetReportOutput, + crate::error::GetDeviceFleetReportError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetDeviceFleetReportError::unhandled)?; + Err(crate::error::GetDeviceFleetReportError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_device_fleet_report_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDeviceFleetReportOutput, + crate::error::GetDeviceFleetReportError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_device_fleet_report_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_device_fleet_report( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeviceFleetReportError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_model_package_group_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetModelPackageGroupPolicyOutput, + crate::error::GetModelPackageGroupPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetModelPackageGroupPolicyError::unhandled)?; + Err(crate::error::GetModelPackageGroupPolicyError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_model_package_group_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetModelPackageGroupPolicyOutput, + crate::error::GetModelPackageGroupPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_model_package_group_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_model_package_group_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetModelPackageGroupPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_sagemaker_servicecatalog_portfolio_status_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetSagemakerServicecatalogPortfolioStatusOutput, + crate::error::GetSagemakerServicecatalogPortfolioStatusError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetSagemakerServicecatalogPortfolioStatusError::unhandled)?; + Err(crate::error::GetSagemakerServicecatalogPortfolioStatusError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_sagemaker_servicecatalog_portfolio_status_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetSagemakerServicecatalogPortfolioStatusOutput, + crate::error::GetSagemakerServicecatalogPortfolioStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::get_sagemaker_servicecatalog_portfolio_status_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_sagemaker_servicecatalog_portfolio_status( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSagemakerServicecatalogPortfolioStatusError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_search_suggestions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetSearchSuggestionsOutput, + crate::error::GetSearchSuggestionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetSearchSuggestionsError::unhandled)?; + Err(crate::error::GetSearchSuggestionsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_search_suggestions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetSearchSuggestionsOutput, + crate::error::GetSearchSuggestionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_search_suggestions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_search_suggestions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSearchSuggestionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_actions_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListActionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListActionsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListActionsError { + meta: generic, + kind: crate::error::ListActionsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListActionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListActionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_actions_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_actions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_actions(response.body().as_ref(), output) + .map_err(crate::error::ListActionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_algorithms_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAlgorithmsError::unhandled)?; + Err(crate::error::ListAlgorithmsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_algorithms_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_algorithms_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_algorithms(response.body().as_ref(), output) + .map_err(crate::error::ListAlgorithmsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_app_image_configs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAppImageConfigsOutput, + crate::error::ListAppImageConfigsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAppImageConfigsError::unhandled)?; + Err(crate::error::ListAppImageConfigsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_app_image_configs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAppImageConfigsOutput, + crate::error::ListAppImageConfigsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_app_image_configs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_app_image_configs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAppImageConfigsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_apps_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAppsError::unhandled)?; + Err(crate::error::ListAppsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_apps_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_apps_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_apps(response.body().as_ref(), output) + .map_err(crate::error::ListAppsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_artifacts_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListArtifactsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListArtifactsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListArtifactsError { + meta: generic, + kind: crate::error::ListArtifactsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListArtifactsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListArtifactsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_artifacts_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_artifacts_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_artifacts(response.body().as_ref(), output) + .map_err(crate::error::ListArtifactsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_associations_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAssociationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAssociationsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListAssociationsError { + meta: generic, + kind: crate::error::ListAssociationsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAssociationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_associations_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_associations_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_associations(response.body().as_ref(), output) + .map_err(crate::error::ListAssociationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_auto_ml_jobs_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAutoMLJobsError::unhandled)?; + Err(crate::error::ListAutoMLJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_auto_ml_jobs_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_auto_ml_jobs_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_auto_ml_jobs(response.body().as_ref(), output) + .map_err(crate::error::ListAutoMLJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_candidates_for_auto_ml_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCandidatesForAutoMlJobOutput, + crate::error::ListCandidatesForAutoMLJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListCandidatesForAutoMLJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListCandidatesForAutoMLJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListCandidatesForAutoMLJobError { + meta: generic, + kind: crate::error::ListCandidatesForAutoMLJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCandidatesForAutoMLJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListCandidatesForAutoMLJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_candidates_for_auto_ml_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCandidatesForAutoMlJobOutput, + crate::error::ListCandidatesForAutoMLJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_candidates_for_auto_ml_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_candidates_for_auto_ml_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCandidatesForAutoMLJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_code_repositories_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCodeRepositoriesOutput, + crate::error::ListCodeRepositoriesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListCodeRepositoriesError::unhandled)?; + Err(crate::error::ListCodeRepositoriesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_code_repositories_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCodeRepositoriesOutput, + crate::error::ListCodeRepositoriesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_code_repositories_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_code_repositories( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCodeRepositoriesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compilation_jobs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCompilationJobsOutput, + crate::error::ListCompilationJobsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListCompilationJobsError::unhandled)?; + Err(crate::error::ListCompilationJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compilation_jobs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCompilationJobsOutput, + crate::error::ListCompilationJobsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_compilation_jobs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_compilation_jobs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCompilationJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_contexts_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListContextsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListContextsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListContextsError { + meta: generic, + kind: crate::error::ListContextsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContextsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListContextsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_contexts_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_contexts_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_contexts(response.body().as_ref(), output) + .map_err(crate::error::ListContextsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_data_quality_job_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDataQualityJobDefinitionsOutput, + crate::error::ListDataQualityJobDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDataQualityJobDefinitionsError::unhandled)?; + Err(crate::error::ListDataQualityJobDefinitionsError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_data_quality_job_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDataQualityJobDefinitionsOutput, + crate::error::ListDataQualityJobDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_data_quality_job_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_data_quality_job_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDataQualityJobDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_device_fleets_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDeviceFleetsError::unhandled)?; + Err(crate::error::ListDeviceFleetsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_device_fleets_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_device_fleets_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_device_fleets(response.body().as_ref(), output) + .map_err(crate::error::ListDeviceFleetsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_devices_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDevicesError::unhandled)?; + Err(crate::error::ListDevicesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_devices_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_devices_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_devices(response.body().as_ref(), output) + .map_err(crate::error::ListDevicesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_domains_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDomainsError::unhandled)?; + Err(crate::error::ListDomainsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_domains_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_domains_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_domains(response.body().as_ref(), output) + .map_err(crate::error::ListDomainsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_edge_packaging_jobs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListEdgePackagingJobsOutput, + crate::error::ListEdgePackagingJobsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListEdgePackagingJobsError::unhandled)?; + Err(crate::error::ListEdgePackagingJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_edge_packaging_jobs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListEdgePackagingJobsOutput, + crate::error::ListEdgePackagingJobsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_edge_packaging_jobs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_edge_packaging_jobs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListEdgePackagingJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_endpoint_configs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListEndpointConfigsOutput, + crate::error::ListEndpointConfigsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListEndpointConfigsError::unhandled)?; + Err(crate::error::ListEndpointConfigsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_endpoint_configs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListEndpointConfigsOutput, + crate::error::ListEndpointConfigsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_endpoint_configs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_endpoint_configs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListEndpointConfigsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_endpoints_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListEndpointsError::unhandled)?; + Err(crate::error::ListEndpointsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_endpoints_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_endpoints_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_endpoints(response.body().as_ref(), output) + .map_err(crate::error::ListEndpointsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_experiments_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListExperimentsError::unhandled)?; + Err(crate::error::ListExperimentsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_experiments_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_experiments_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_experiments(response.body().as_ref(), output) + .map_err(crate::error::ListExperimentsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_feature_groups_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListFeatureGroupsError::unhandled)?; + Err(crate::error::ListFeatureGroupsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_feature_groups_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_feature_groups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_feature_groups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFeatureGroupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_flow_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListFlowDefinitionsOutput, + crate::error::ListFlowDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListFlowDefinitionsError::unhandled)?; + Err(crate::error::ListFlowDefinitionsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_flow_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListFlowDefinitionsOutput, + crate::error::ListFlowDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_flow_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_flow_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListFlowDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_human_task_uis_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListHumanTaskUisError::unhandled)?; + Err(crate::error::ListHumanTaskUisError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_human_task_uis_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_human_task_uis_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_human_task_uis( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHumanTaskUisError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_hyper_parameter_tuning_jobs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListHyperParameterTuningJobsOutput, + crate::error::ListHyperParameterTuningJobsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListHyperParameterTuningJobsError::unhandled)?; + Err(crate::error::ListHyperParameterTuningJobsError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_hyper_parameter_tuning_jobs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListHyperParameterTuningJobsOutput, + crate::error::ListHyperParameterTuningJobsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_hyper_parameter_tuning_jobs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_hyper_parameter_tuning_jobs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHyperParameterTuningJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_images_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListImagesError::unhandled)?; + Err(crate::error::ListImagesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_images_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_images_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_images(response.body().as_ref(), output) + .map_err(crate::error::ListImagesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_image_versions_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListImageVersionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListImageVersionsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListImageVersionsError { + meta: generic, + kind: crate::error::ListImageVersionsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImageVersionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListImageVersionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_image_versions_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_image_versions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_image_versions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImageVersionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_labeling_jobs_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListLabelingJobsError::unhandled)?; + Err(crate::error::ListLabelingJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_labeling_jobs_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_labeling_jobs_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_labeling_jobs(response.body().as_ref(), output) + .map_err(crate::error::ListLabelingJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_labeling_jobs_for_workteam_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListLabelingJobsForWorkteamOutput, + crate::error::ListLabelingJobsForWorkteamError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListLabelingJobsForWorkteamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListLabelingJobsForWorkteamError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListLabelingJobsForWorkteamError { + meta: generic, + kind: crate::error::ListLabelingJobsForWorkteamErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListLabelingJobsForWorkteamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListLabelingJobsForWorkteamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_labeling_jobs_for_workteam_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListLabelingJobsForWorkteamOutput, + crate::error::ListLabelingJobsForWorkteamError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_labeling_jobs_for_workteam_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_labeling_jobs_for_workteam( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListLabelingJobsForWorkteamError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_bias_job_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelBiasJobDefinitionsOutput, + crate::error::ListModelBiasJobDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelBiasJobDefinitionsError::unhandled)?; + Err(crate::error::ListModelBiasJobDefinitionsError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_bias_job_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelBiasJobDefinitionsOutput, + crate::error::ListModelBiasJobDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_model_bias_job_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_model_bias_job_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListModelBiasJobDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_explainability_job_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelExplainabilityJobDefinitionsOutput, + crate::error::ListModelExplainabilityJobDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelExplainabilityJobDefinitionsError::unhandled)?; + Err(crate::error::ListModelExplainabilityJobDefinitionsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_explainability_job_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelExplainabilityJobDefinitionsOutput, + crate::error::ListModelExplainabilityJobDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_model_explainability_job_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_model_explainability_job_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListModelExplainabilityJobDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_package_groups_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelPackageGroupsOutput, + crate::error::ListModelPackageGroupsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelPackageGroupsError::unhandled)?; + Err(crate::error::ListModelPackageGroupsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_package_groups_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelPackageGroupsOutput, + crate::error::ListModelPackageGroupsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_model_package_groups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_model_package_groups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListModelPackageGroupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_packages_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelPackagesError::unhandled)?; + Err(crate::error::ListModelPackagesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_packages_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_model_packages_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_model_packages( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListModelPackagesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_quality_job_definitions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelQualityJobDefinitionsOutput, + crate::error::ListModelQualityJobDefinitionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelQualityJobDefinitionsError::unhandled)?; + Err(crate::error::ListModelQualityJobDefinitionsError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_model_quality_job_definitions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListModelQualityJobDefinitionsOutput, + crate::error::ListModelQualityJobDefinitionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_model_quality_job_definitions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_model_quality_job_definitions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListModelQualityJobDefinitionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_models_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListModelsError::unhandled)?; + Err(crate::error::ListModelsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_models_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_models_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_models(response.body().as_ref(), output) + .map_err(crate::error::ListModelsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_monitoring_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListMonitoringExecutionsOutput, + crate::error::ListMonitoringExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListMonitoringExecutionsError::unhandled)?; + Err(crate::error::ListMonitoringExecutionsError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_monitoring_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListMonitoringExecutionsOutput, + crate::error::ListMonitoringExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_monitoring_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_monitoring_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMonitoringExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_monitoring_schedules_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListMonitoringSchedulesOutput, + crate::error::ListMonitoringSchedulesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListMonitoringSchedulesError::unhandled)?; + Err(crate::error::ListMonitoringSchedulesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_monitoring_schedules_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListMonitoringSchedulesOutput, + crate::error::ListMonitoringSchedulesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_monitoring_schedules_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_monitoring_schedules( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListMonitoringSchedulesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_notebook_instance_lifecycle_configs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListNotebookInstanceLifecycleConfigsOutput, + crate::error::ListNotebookInstanceLifecycleConfigsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListNotebookInstanceLifecycleConfigsError::unhandled)?; + Err(crate::error::ListNotebookInstanceLifecycleConfigsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_notebook_instance_lifecycle_configs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListNotebookInstanceLifecycleConfigsOutput, + crate::error::ListNotebookInstanceLifecycleConfigsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_notebook_instance_lifecycle_configs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_notebook_instance_lifecycle_configs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNotebookInstanceLifecycleConfigsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_notebook_instances_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListNotebookInstancesOutput, + crate::error::ListNotebookInstancesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListNotebookInstancesError::unhandled)?; + Err(crate::error::ListNotebookInstancesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_notebook_instances_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListNotebookInstancesOutput, + crate::error::ListNotebookInstancesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_notebook_instances_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_notebook_instances( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListNotebookInstancesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineExecutionsOutput, + crate::error::ListPipelineExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListPipelineExecutionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListPipelineExecutionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListPipelineExecutionsError { + meta: generic, + kind: crate::error::ListPipelineExecutionsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineExecutionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListPipelineExecutionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineExecutionsOutput, + crate::error::ListPipelineExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_pipeline_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_pipeline_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_execution_steps_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineExecutionStepsOutput, + crate::error::ListPipelineExecutionStepsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListPipelineExecutionStepsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListPipelineExecutionStepsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListPipelineExecutionStepsError { + meta: generic, + kind: crate::error::ListPipelineExecutionStepsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineExecutionStepsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListPipelineExecutionStepsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_execution_steps_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineExecutionStepsOutput, + crate::error::ListPipelineExecutionStepsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_pipeline_execution_steps_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_pipeline_execution_steps( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineExecutionStepsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_parameters_for_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineParametersForExecutionOutput, + crate::error::ListPipelineParametersForExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListPipelineParametersForExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListPipelineParametersForExecutionError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListPipelineParametersForExecutionError { + meta: generic, + kind: crate::error::ListPipelineParametersForExecutionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineParametersForExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListPipelineParametersForExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipeline_parameters_for_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListPipelineParametersForExecutionOutput, + crate::error::ListPipelineParametersForExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_pipeline_parameters_for_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_pipeline_parameters_for_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListPipelineParametersForExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipelines_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListPipelinesError::unhandled)?; + Err(crate::error::ListPipelinesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_pipelines_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_pipelines_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_pipelines(response.body().as_ref(), output) + .map_err(crate::error::ListPipelinesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_processing_jobs_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListProcessingJobsOutput, + crate::error::ListProcessingJobsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListProcessingJobsError::unhandled)?; + Err(crate::error::ListProcessingJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_processing_jobs_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListProcessingJobsOutput, + crate::error::ListProcessingJobsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_processing_jobs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_processing_jobs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListProcessingJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_projects_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListProjectsError::unhandled)?; + Err(crate::error::ListProjectsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_projects_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_projects_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_projects(response.body().as_ref(), output) + .map_err(crate::error::ListProjectsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_subscribed_workteams_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListSubscribedWorkteamsOutput, + crate::error::ListSubscribedWorkteamsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListSubscribedWorkteamsError::unhandled)?; + Err(crate::error::ListSubscribedWorkteamsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_subscribed_workteams_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListSubscribedWorkteamsOutput, + crate::error::ListSubscribedWorkteamsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_subscribed_workteams_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_subscribed_workteams( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSubscribedWorkteamsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsError::unhandled)?; + Err(crate::error::ListTagsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags(response.body().as_ref(), output) + .map_err(crate::error::ListTagsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_training_jobs_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTrainingJobsError::unhandled)?; + Err(crate::error::ListTrainingJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_training_jobs_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_training_jobs_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_training_jobs(response.body().as_ref(), output) + .map_err(crate::error::ListTrainingJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_training_jobs_for_hyper_parameter_tuning_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTrainingJobsForHyperParameterTuningJobOutput, + crate::error::ListTrainingJobsForHyperParameterTuningJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListTrainingJobsForHyperParameterTuningJobError { + meta: generic, + kind: + crate::error::ListTrainingJobsForHyperParameterTuningJobErrorKind::ResourceNotFound( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err(response.body().as_ref(), output).map_err(crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::ListTrainingJobsForHyperParameterTuningJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_training_jobs_for_hyper_parameter_tuning_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTrainingJobsForHyperParameterTuningJobOutput, + crate::error::ListTrainingJobsForHyperParameterTuningJobError, +> { + Ok({ + #[allow(unused_mut)]let mut output = crate::output::list_training_jobs_for_hyper_parameter_tuning_job_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_training_jobs_for_hyper_parameter_tuning_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTrainingJobsForHyperParameterTuningJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_transform_jobs_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTransformJobsError::unhandled)?; + Err(crate::error::ListTransformJobsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_transform_jobs_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_transform_jobs_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_transform_jobs( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTransformJobsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_trial_components_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTrialComponentsOutput, + crate::error::ListTrialComponentsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTrialComponentsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTrialComponentsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListTrialComponentsError { + meta: generic, + kind: crate::error::ListTrialComponentsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTrialComponentsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTrialComponentsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_trial_components_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTrialComponentsOutput, + crate::error::ListTrialComponentsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_trial_components_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_trial_components( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTrialComponentsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_trials_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTrialsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTrialsError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::ListTrialsError { + meta: generic, + kind: crate::error::ListTrialsErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTrialsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListTrialsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_trials_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_trials_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_trials(response.body().as_ref(), output) + .map_err(crate::error::ListTrialsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_user_profiles_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListUserProfilesError::unhandled)?; + Err(crate::error::ListUserProfilesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_user_profiles_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_user_profiles_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_user_profiles(response.body().as_ref(), output) + .map_err(crate::error::ListUserProfilesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_workforces_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListWorkforcesError::unhandled)?; + Err(crate::error::ListWorkforcesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_workforces_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_workforces_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_workforces(response.body().as_ref(), output) + .map_err(crate::error::ListWorkforcesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_workteams_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListWorkteamsError::unhandled)?; + Err(crate::error::ListWorkteamsError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_workteams_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_workteams_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_workteams(response.body().as_ref(), output) + .map_err(crate::error::ListWorkteamsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_model_package_group_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutModelPackageGroupPolicyOutput, + crate::error::PutModelPackageGroupPolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutModelPackageGroupPolicyError::unhandled)?; + Err(crate::error::PutModelPackageGroupPolicyError::generic( + generic, + )) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_model_package_group_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutModelPackageGroupPolicyOutput, + crate::error::PutModelPackageGroupPolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_model_package_group_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_model_package_group_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutModelPackageGroupPolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_devices_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterDevicesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RegisterDevicesError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::RegisterDevicesError { + meta: generic, + kind: crate::error::RegisterDevicesErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterDevicesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RegisterDevicesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_devices_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::register_devices_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_render_ui_template_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RenderUiTemplateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RenderUiTemplateError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::RenderUiTemplateError { + meta: generic, + kind: crate::error::RenderUiTemplateErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RenderUiTemplateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RenderUiTemplateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_render_ui_template_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::render_ui_template_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_render_ui_template(response.body().as_ref(), output) + .map_err(crate::error::RenderUiTemplateError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_search_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SearchError::unhandled)?; + Err(crate::error::SearchError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_search_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::search_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_search(response.body().as_ref(), output) + .map_err(crate::error::SearchError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_pipeline_execution_step_failure_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SendPipelineExecutionStepFailureOutput, + crate::error::SendPipelineExecutionStepFailureError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SendPipelineExecutionStepFailureError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::SendPipelineExecutionStepFailureError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::SendPipelineExecutionStepFailureError { + meta: generic, + kind: crate::error::SendPipelineExecutionStepFailureErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepFailureError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::SendPipelineExecutionStepFailureError { + meta: generic, + kind: crate::error::SendPipelineExecutionStepFailureErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepFailureError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SendPipelineExecutionStepFailureError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_pipeline_execution_step_failure_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SendPipelineExecutionStepFailureOutput, + crate::error::SendPipelineExecutionStepFailureError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::send_pipeline_execution_step_failure_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_send_pipeline_execution_step_failure( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepFailureError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_pipeline_execution_step_success_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SendPipelineExecutionStepSuccessOutput, + crate::error::SendPipelineExecutionStepSuccessError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SendPipelineExecutionStepSuccessError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::SendPipelineExecutionStepSuccessError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::SendPipelineExecutionStepSuccessError { + meta: generic, + kind: crate::error::SendPipelineExecutionStepSuccessErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepSuccessError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::SendPipelineExecutionStepSuccessError { + meta: generic, + kind: crate::error::SendPipelineExecutionStepSuccessErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepSuccessError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SendPipelineExecutionStepSuccessError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_pipeline_execution_step_success_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SendPipelineExecutionStepSuccessOutput, + crate::error::SendPipelineExecutionStepSuccessError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::send_pipeline_execution_step_success_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_send_pipeline_execution_step_success( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendPipelineExecutionStepSuccessError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartMonitoringScheduleOutput, + crate::error::StartMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StartMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StartMonitoringScheduleError { + meta: generic, + kind: crate::error::StartMonitoringScheduleErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartMonitoringScheduleOutput, + crate::error::StartMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_monitoring_schedule_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartNotebookInstanceOutput, + crate::error::StartNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartNotebookInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartNotebookInstanceError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::StartNotebookInstanceError { + meta: generic, + kind: crate::error::StartNotebookInstanceErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartNotebookInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartNotebookInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartNotebookInstanceOutput, + crate::error::StartNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_notebook_instance_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_pipeline_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartPipelineExecutionOutput, + crate::error::StartPipelineExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartPipelineExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StartPipelineExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::StartPipelineExecutionError { + meta: generic, + kind: crate::error::StartPipelineExecutionErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartPipelineExecutionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::StartPipelineExecutionError { + meta: generic, + kind: crate::error::StartPipelineExecutionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartPipelineExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartPipelineExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_pipeline_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartPipelineExecutionOutput, + crate::error::StartPipelineExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_pipeline_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_pipeline_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartPipelineExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_auto_ml_job_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopAutoMLJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopAutoMLJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopAutoMLJobError { + meta: generic, + kind: crate::error::StopAutoMLJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopAutoMLJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopAutoMLJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_auto_ml_job_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_auto_ml_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_compilation_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopCompilationJobOutput, + crate::error::StopCompilationJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopCompilationJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopCompilationJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopCompilationJobError { + meta: generic, + kind: crate::error::StopCompilationJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopCompilationJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopCompilationJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_compilation_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopCompilationJobOutput, + crate::error::StopCompilationJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_compilation_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_edge_packaging_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopEdgePackagingJobOutput, + crate::error::StopEdgePackagingJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopEdgePackagingJobError::unhandled)?; + Err(crate::error::StopEdgePackagingJobError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_edge_packaging_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopEdgePackagingJobOutput, + crate::error::StopEdgePackagingJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_edge_packaging_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_hyper_parameter_tuning_job_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopHyperParameterTuningJobOutput, + crate::error::StopHyperParameterTuningJobError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopHyperParameterTuningJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StopHyperParameterTuningJobError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopHyperParameterTuningJobError { + meta: generic, + kind: crate::error::StopHyperParameterTuningJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopHyperParameterTuningJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopHyperParameterTuningJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_hyper_parameter_tuning_job_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopHyperParameterTuningJobOutput, + crate::error::StopHyperParameterTuningJobError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_hyper_parameter_tuning_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_labeling_job_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopLabelingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopLabelingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopLabelingJobError { + meta: generic, + kind: crate::error::StopLabelingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopLabelingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopLabelingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_labeling_job_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_labeling_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopMonitoringScheduleOutput, + crate::error::StopMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StopMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopMonitoringScheduleError { + meta: generic, + kind: crate::error::StopMonitoringScheduleErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopMonitoringScheduleOutput, + crate::error::StopMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_monitoring_schedule_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopNotebookInstanceOutput, + crate::error::StopNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopNotebookInstanceError::unhandled)?; + Err(crate::error::StopNotebookInstanceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopNotebookInstanceOutput, + crate::error::StopNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_notebook_instance_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_pipeline_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopPipelineExecutionOutput, + crate::error::StopPipelineExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopPipelineExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopPipelineExecutionError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopPipelineExecutionError { + meta: generic, + kind: crate::error::StopPipelineExecutionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopPipelineExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopPipelineExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_pipeline_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopPipelineExecutionOutput, + crate::error::StopPipelineExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_pipeline_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_stop_pipeline_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopPipelineExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_processing_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopProcessingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopProcessingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopProcessingJobError { + meta: generic, + kind: crate::error::StopProcessingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopProcessingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopProcessingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_processing_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_processing_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_training_job_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopTrainingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopTrainingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopTrainingJobError { + meta: generic, + kind: crate::error::StopTrainingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTrainingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopTrainingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_training_job_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_training_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_transform_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopTransformJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StopTransformJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::StopTransformJobError { + meta: generic, + kind: crate::error::StopTransformJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopTransformJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopTransformJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_transform_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_transform_job_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_action_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateActionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateActionError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateActionError { + meta: generic, + kind: crate::error::UpdateActionErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateActionError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateActionError { + meta: generic, + kind: crate::error::UpdateActionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateActionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateActionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_action_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_action_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_action(response.body().as_ref(), output) + .map_err(crate::error::UpdateActionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_app_image_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateAppImageConfigOutput, + crate::error::UpdateAppImageConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateAppImageConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateAppImageConfigError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::UpdateAppImageConfigError { + meta: generic, + kind: crate::error::UpdateAppImageConfigErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAppImageConfigError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateAppImageConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_app_image_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateAppImageConfigOutput, + crate::error::UpdateAppImageConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_app_image_config_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_app_image_config( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAppImageConfigError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_artifact_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateArtifactError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateArtifactError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateArtifactError { + meta: generic, + kind: crate::error::UpdateArtifactErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateArtifactError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateArtifactError { + meta: generic, + kind: crate::error::UpdateArtifactErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateArtifactError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateArtifactError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_artifact_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_artifact_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_artifact(response.body().as_ref(), output) + .map_err(crate::error::UpdateArtifactError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_code_repository_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCodeRepositoryOutput, + crate::error::UpdateCodeRepositoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateCodeRepositoryError::unhandled)?; + Err(crate::error::UpdateCodeRepositoryError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_code_repository_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateCodeRepositoryOutput, + crate::error::UpdateCodeRepositoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_code_repository_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_code_repository( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateCodeRepositoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_context_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateContextError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateContextError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateContextError { + meta: generic, + kind: crate::error::UpdateContextErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContextError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateContextError { + meta: generic, + kind: crate::error::UpdateContextErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContextError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateContextError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_context_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_context_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_context(response.body().as_ref(), output) + .map_err(crate::error::UpdateContextError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_device_fleet_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDeviceFleetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateDeviceFleetError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::UpdateDeviceFleetError { + meta: generic, + kind: crate::error::UpdateDeviceFleetErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDeviceFleetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateDeviceFleetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_device_fleet_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_device_fleet_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_devices_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDevicesError::unhandled)?; + Err(crate::error::UpdateDevicesError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_devices_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_devices_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_domain_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDomainError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateDomainError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::UpdateDomainError { + meta: generic, + kind: crate::error::UpdateDomainErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::UpdateDomainError { + meta: generic, + kind: crate::error::UpdateDomainErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateDomainError { + meta: generic, + kind: crate::error::UpdateDomainErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDomainError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateDomainError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_domain_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_domain_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_domain(response.body().as_ref(), output) + .map_err(crate::error::UpdateDomainError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_endpoint_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateEndpointError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateEndpointError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::UpdateEndpointError { + meta: generic, + kind: crate::error::UpdateEndpointErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEndpointError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateEndpointError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_endpoint_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_endpoint_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_endpoint(response.body().as_ref(), output) + .map_err(crate::error::UpdateEndpointError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_endpoint_weights_and_capacities_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateEndpointWeightsAndCapacitiesOutput, + crate::error::UpdateEndpointWeightsAndCapacitiesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled(generic)) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => { + crate::error::UpdateEndpointWeightsAndCapacitiesError { + meta: generic, + kind: + crate::error::UpdateEndpointWeightsAndCapacitiesErrorKind::ResourceLimitExceeded( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::UpdateEndpointWeightsAndCapacitiesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_endpoint_weights_and_capacities_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateEndpointWeightsAndCapacitiesOutput, + crate::error::UpdateEndpointWeightsAndCapacitiesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::update_endpoint_weights_and_capacities_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_endpoint_weights_and_capacities( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEndpointWeightsAndCapacitiesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_experiment_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateExperimentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateExperimentError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateExperimentError { + meta: generic, + kind: crate::error::UpdateExperimentErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateExperimentError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateExperimentError { + meta: generic, + kind: crate::error::UpdateExperimentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateExperimentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateExperimentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_experiment_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_experiment_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_experiment(response.body().as_ref(), output) + .map_err(crate::error::UpdateExperimentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_image_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateImageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateImageError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::UpdateImageError { + meta: generic, + kind: crate::error::UpdateImageErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateImageError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateImageError { + meta: generic, + kind: crate::error::UpdateImageErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateImageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateImageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_image_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_image_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_image(response.body().as_ref(), output) + .map_err(crate::error::UpdateImageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_model_package_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateModelPackageOutput, + crate::error::UpdateModelPackageError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateModelPackageError::unhandled)?; + Err(crate::error::UpdateModelPackageError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_model_package_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateModelPackageOutput, + crate::error::UpdateModelPackageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_model_package_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_model_package( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateModelPackageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_monitoring_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMonitoringScheduleOutput, + crate::error::UpdateMonitoringScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateMonitoringScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateMonitoringScheduleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::UpdateMonitoringScheduleError { + meta: generic, + kind: crate::error::UpdateMonitoringScheduleErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateMonitoringScheduleError { + meta: generic, + kind: crate::error::UpdateMonitoringScheduleErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMonitoringScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateMonitoringScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_monitoring_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMonitoringScheduleOutput, + crate::error::UpdateMonitoringScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_monitoring_schedule_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_monitoring_schedule( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMonitoringScheduleError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_notebook_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNotebookInstanceOutput, + crate::error::UpdateNotebookInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateNotebookInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateNotebookInstanceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::UpdateNotebookInstanceError { + meta: generic, + kind: crate::error::UpdateNotebookInstanceErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateNotebookInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateNotebookInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_notebook_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNotebookInstanceOutput, + crate::error::UpdateNotebookInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_notebook_instance_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_notebook_instance_lifecycle_config_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNotebookInstanceLifecycleConfigOutput, + crate::error::UpdateNotebookInstanceLifecycleConfigError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateNotebookInstanceLifecycleConfigError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::UpdateNotebookInstanceLifecycleConfigError::unhandled(generic), + ) + } + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::UpdateNotebookInstanceLifecycleConfigError { + meta: generic, + kind: + crate::error::UpdateNotebookInstanceLifecycleConfigErrorKind::ResourceLimitExceeded( + { + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::UpdateNotebookInstanceLifecycleConfigError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::UpdateNotebookInstanceLifecycleConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_notebook_instance_lifecycle_config_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateNotebookInstanceLifecycleConfigOutput, + crate::error::UpdateNotebookInstanceLifecycleConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::update_notebook_instance_lifecycle_config_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_pipeline_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdatePipelineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdatePipelineError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::UpdatePipelineError { + meta: generic, + kind: crate::error::UpdatePipelineErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePipelineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdatePipelineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_pipeline_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_pipeline_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_pipeline(response.body().as_ref(), output) + .map_err(crate::error::UpdatePipelineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_pipeline_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdatePipelineExecutionOutput, + crate::error::UpdatePipelineExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdatePipelineExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdatePipelineExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "ResourceNotFound" => crate::error::UpdatePipelineExecutionError { + meta: generic, + kind: crate::error::UpdatePipelineExecutionErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePipelineExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdatePipelineExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_pipeline_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdatePipelineExecutionOutput, + crate::error::UpdatePipelineExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_pipeline_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_pipeline_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePipelineExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_training_job_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTrainingJobError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTrainingJobError::unhandled(generic)), + }; + Err(match error_code { + "ResourceNotFound" => crate::error::UpdateTrainingJobError { + meta: generic, + kind: crate::error::UpdateTrainingJobErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrainingJobError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTrainingJobError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_training_job_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_training_job_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_training_job( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrainingJobError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_trial_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTrialError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTrialError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateTrialError { + meta: generic, + kind: crate::error::UpdateTrialErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrialError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateTrialError { + meta: generic, + kind: crate::error::UpdateTrialErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrialError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTrialError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_trial_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_trial_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_trial(response.body().as_ref(), output) + .map_err(crate::error::UpdateTrialError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_trial_component_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateTrialComponentOutput, + crate::error::UpdateTrialComponentError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateTrialComponentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateTrialComponentError::unhandled(generic)), + }; + Err(match error_code { + "ConflictException" => crate::error::UpdateTrialComponentError { + meta: generic, + kind: crate::error::UpdateTrialComponentErrorKind::ConflictException({ + #[allow(unused_mut)] + let mut output = crate::error::conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrialComponentError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateTrialComponentError { + meta: generic, + kind: crate::error::UpdateTrialComponentErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrialComponentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateTrialComponentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_trial_component_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateTrialComponentOutput, + crate::error::UpdateTrialComponentError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_trial_component_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_trial_component( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateTrialComponentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_user_profile_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateUserProfileError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateUserProfileError::unhandled(generic)), + }; + Err(match error_code { + "ResourceInUse" => crate::error::UpdateUserProfileError { + meta: generic, + kind: crate::error::UpdateUserProfileErrorKind::ResourceInUse({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_usejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUserProfileError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceeded" => crate::error::UpdateUserProfileError { + meta: generic, + kind: crate::error::UpdateUserProfileErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUserProfileError::unhandled)?; + output.build() + }), + }, + "ResourceNotFound" => crate::error::UpdateUserProfileError { + meta: generic, + kind: crate::error::UpdateUserProfileErrorKind::ResourceNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUserProfileError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateUserProfileError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_user_profile_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_user_profile_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_user_profile( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateUserProfileError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_workforce_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateWorkforceError::unhandled)?; + Err(crate::error::UpdateWorkforceError::generic(generic)) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_workforce_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_workforce_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_workforce(response.body().as_ref(), output) + .map_err(crate::error::UpdateWorkforceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_workteam_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateWorkteamError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateWorkteamError::unhandled(generic)), + }; + Err(match error_code { + "ResourceLimitExceeded" => crate::error::UpdateWorkteamError { + meta: generic, + kind: crate::error::UpdateWorkteamErrorKind::ResourceLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::resource_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateWorkteamError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateWorkteamError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_workteam_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_workteam_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_workteam(response.body().as_ref(), output) + .map_err(crate::error::UpdateWorkteamError::unhandled)?; + output.build() + }) +} diff --git a/sdk/sagemaker/src/operation_ser.rs b/sdk/sagemaker/src/operation_ser.rs index 56022d51580d..7deb65e68cad 100644 --- a/sdk/sagemaker/src/operation_ser.rs +++ b/sdk/sagemaker/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_association( input: &crate::input::AddAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_association_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_add_association( pub fn serialize_operation_add_tags( input: &crate::input::AddTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_tags_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_add_tags( pub fn serialize_operation_associate_trial_component( input: &crate::input::AssociateTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_associate_trial_component_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_associate_trial_component( pub fn serialize_operation_create_action( input: &crate::input::CreateActionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_action_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_create_action( pub fn serialize_operation_create_algorithm( input: &crate::input::CreateAlgorithmInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_algorithm_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_create_algorithm( pub fn serialize_operation_create_app( input: &crate::input::CreateAppInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_app_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_create_app( pub fn serialize_operation_create_app_image_config( input: &crate::input::CreateAppImageConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_app_image_config_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_create_app_image_config( pub fn serialize_operation_create_artifact( input: &crate::input::CreateArtifactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_artifact_input(&mut object, input); @@ -80,8 +80,8 @@ pub fn serialize_operation_create_artifact( } pub fn serialize_operation_create_auto_ml_job( - input: &crate::input::CreateAutoMLJobInput, -) -> Result { + input: &crate::input::CreateAutoMlJobInput, +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_auto_ml_job_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_create_auto_ml_job( pub fn serialize_operation_create_code_repository( input: &crate::input::CreateCodeRepositoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_code_repository_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_create_code_repository( pub fn serialize_operation_create_compilation_job( input: &crate::input::CreateCompilationJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_compilation_job_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_create_compilation_job( pub fn serialize_operation_create_context( input: &crate::input::CreateContextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_context_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_create_context( pub fn serialize_operation_create_data_quality_job_definition( input: &crate::input::CreateDataQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_data_quality_job_definition_input( @@ -134,7 +134,7 @@ pub fn serialize_operation_create_data_quality_job_definition( pub fn serialize_operation_create_device_fleet( input: &crate::input::CreateDeviceFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_device_fleet_input(&mut object, input); @@ -144,7 +144,7 @@ pub fn serialize_operation_create_device_fleet( pub fn serialize_operation_create_domain( input: &crate::input::CreateDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_domain_input(&mut object, input); @@ -154,7 +154,7 @@ pub fn serialize_operation_create_domain( pub fn serialize_operation_create_edge_packaging_job( input: &crate::input::CreateEdgePackagingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_edge_packaging_job_input(&mut object, input); @@ -164,7 +164,7 @@ pub fn serialize_operation_create_edge_packaging_job( pub fn serialize_operation_create_endpoint( input: &crate::input::CreateEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_endpoint_input(&mut object, input); @@ -174,7 +174,7 @@ pub fn serialize_operation_create_endpoint( pub fn serialize_operation_create_endpoint_config( input: &crate::input::CreateEndpointConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_endpoint_config_input(&mut object, input); @@ -184,7 +184,7 @@ pub fn serialize_operation_create_endpoint_config( pub fn serialize_operation_create_experiment( input: &crate::input::CreateExperimentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_experiment_input(&mut object, input); @@ -194,7 +194,7 @@ pub fn serialize_operation_create_experiment( pub fn serialize_operation_create_feature_group( input: &crate::input::CreateFeatureGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_feature_group_input(&mut object, input); @@ -204,7 +204,7 @@ pub fn serialize_operation_create_feature_group( pub fn serialize_operation_create_flow_definition( input: &crate::input::CreateFlowDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_flow_definition_input(&mut object, input); @@ -214,7 +214,7 @@ pub fn serialize_operation_create_flow_definition( pub fn serialize_operation_create_human_task_ui( input: &crate::input::CreateHumanTaskUiInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_human_task_ui_input(&mut object, input); @@ -224,7 +224,7 @@ pub fn serialize_operation_create_human_task_ui( pub fn serialize_operation_create_hyper_parameter_tuning_job( input: &crate::input::CreateHyperParameterTuningJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_hyper_parameter_tuning_job_input( @@ -237,7 +237,7 @@ pub fn serialize_operation_create_hyper_parameter_tuning_job( pub fn serialize_operation_create_image( input: &crate::input::CreateImageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_image_input(&mut object, input); @@ -247,7 +247,7 @@ pub fn serialize_operation_create_image( pub fn serialize_operation_create_image_version( input: &crate::input::CreateImageVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_image_version_input(&mut object, input); @@ -257,7 +257,7 @@ pub fn serialize_operation_create_image_version( pub fn serialize_operation_create_labeling_job( input: &crate::input::CreateLabelingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_labeling_job_input(&mut object, input); @@ -267,7 +267,7 @@ pub fn serialize_operation_create_labeling_job( pub fn serialize_operation_create_model( input: &crate::input::CreateModelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_input(&mut object, input); @@ -277,7 +277,7 @@ pub fn serialize_operation_create_model( pub fn serialize_operation_create_model_bias_job_definition( input: &crate::input::CreateModelBiasJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_bias_job_definition_input(&mut object, input); @@ -287,7 +287,7 @@ pub fn serialize_operation_create_model_bias_job_definition( pub fn serialize_operation_create_model_explainability_job_definition( input: &crate::input::CreateModelExplainabilityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_explainability_job_definition_input( @@ -300,7 +300,7 @@ pub fn serialize_operation_create_model_explainability_job_definition( pub fn serialize_operation_create_model_package( input: &crate::input::CreateModelPackageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_package_input(&mut object, input); @@ -310,7 +310,7 @@ pub fn serialize_operation_create_model_package( pub fn serialize_operation_create_model_package_group( input: &crate::input::CreateModelPackageGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_package_group_input(&mut object, input); @@ -320,7 +320,7 @@ pub fn serialize_operation_create_model_package_group( pub fn serialize_operation_create_model_quality_job_definition( input: &crate::input::CreateModelQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_model_quality_job_definition_input( @@ -333,7 +333,7 @@ pub fn serialize_operation_create_model_quality_job_definition( pub fn serialize_operation_create_monitoring_schedule( input: &crate::input::CreateMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_monitoring_schedule_input(&mut object, input); @@ -343,7 +343,7 @@ pub fn serialize_operation_create_monitoring_schedule( pub fn serialize_operation_create_notebook_instance( input: &crate::input::CreateNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_notebook_instance_input(&mut object, input); @@ -353,7 +353,7 @@ pub fn serialize_operation_create_notebook_instance( pub fn serialize_operation_create_notebook_instance_lifecycle_config( input: &crate::input::CreateNotebookInstanceLifecycleConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_notebook_instance_lifecycle_config_input( @@ -366,7 +366,7 @@ pub fn serialize_operation_create_notebook_instance_lifecycle_config( pub fn serialize_operation_create_pipeline( input: &crate::input::CreatePipelineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_pipeline_input(&mut object, input); @@ -376,7 +376,7 @@ pub fn serialize_operation_create_pipeline( pub fn serialize_operation_create_presigned_domain_url( input: &crate::input::CreatePresignedDomainUrlInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_presigned_domain_url_input(&mut object, input); @@ -386,7 +386,7 @@ pub fn serialize_operation_create_presigned_domain_url( pub fn serialize_operation_create_presigned_notebook_instance_url( input: &crate::input::CreatePresignedNotebookInstanceUrlInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_presigned_notebook_instance_url_input( @@ -399,7 +399,7 @@ pub fn serialize_operation_create_presigned_notebook_instance_url( pub fn serialize_operation_create_processing_job( input: &crate::input::CreateProcessingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_processing_job_input(&mut object, input); @@ -409,7 +409,7 @@ pub fn serialize_operation_create_processing_job( pub fn serialize_operation_create_project( input: &crate::input::CreateProjectInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_project_input(&mut object, input); @@ -419,7 +419,7 @@ pub fn serialize_operation_create_project( pub fn serialize_operation_create_training_job( input: &crate::input::CreateTrainingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_training_job_input(&mut object, input); @@ -429,7 +429,7 @@ pub fn serialize_operation_create_training_job( pub fn serialize_operation_create_transform_job( input: &crate::input::CreateTransformJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_transform_job_input(&mut object, input); @@ -439,7 +439,7 @@ pub fn serialize_operation_create_transform_job( pub fn serialize_operation_create_trial( input: &crate::input::CreateTrialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_trial_input(&mut object, input); @@ -449,7 +449,7 @@ pub fn serialize_operation_create_trial( pub fn serialize_operation_create_trial_component( input: &crate::input::CreateTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_trial_component_input(&mut object, input); @@ -459,7 +459,7 @@ pub fn serialize_operation_create_trial_component( pub fn serialize_operation_create_user_profile( input: &crate::input::CreateUserProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_user_profile_input(&mut object, input); @@ -469,7 +469,7 @@ pub fn serialize_operation_create_user_profile( pub fn serialize_operation_create_workforce( input: &crate::input::CreateWorkforceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_workforce_input(&mut object, input); @@ -479,7 +479,7 @@ pub fn serialize_operation_create_workforce( pub fn serialize_operation_create_workteam( input: &crate::input::CreateWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_workteam_input(&mut object, input); @@ -489,7 +489,7 @@ pub fn serialize_operation_create_workteam( pub fn serialize_operation_delete_action( input: &crate::input::DeleteActionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_action_input(&mut object, input); @@ -499,7 +499,7 @@ pub fn serialize_operation_delete_action( pub fn serialize_operation_delete_algorithm( input: &crate::input::DeleteAlgorithmInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_algorithm_input(&mut object, input); @@ -509,7 +509,7 @@ pub fn serialize_operation_delete_algorithm( pub fn serialize_operation_delete_app( input: &crate::input::DeleteAppInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_app_input(&mut object, input); @@ -519,7 +519,7 @@ pub fn serialize_operation_delete_app( pub fn serialize_operation_delete_app_image_config( input: &crate::input::DeleteAppImageConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_app_image_config_input(&mut object, input); @@ -529,7 +529,7 @@ pub fn serialize_operation_delete_app_image_config( pub fn serialize_operation_delete_artifact( input: &crate::input::DeleteArtifactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_artifact_input(&mut object, input); @@ -539,7 +539,7 @@ pub fn serialize_operation_delete_artifact( pub fn serialize_operation_delete_association( input: &crate::input::DeleteAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_association_input(&mut object, input); @@ -549,7 +549,7 @@ pub fn serialize_operation_delete_association( pub fn serialize_operation_delete_code_repository( input: &crate::input::DeleteCodeRepositoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_code_repository_input(&mut object, input); @@ -559,7 +559,7 @@ pub fn serialize_operation_delete_code_repository( pub fn serialize_operation_delete_context( input: &crate::input::DeleteContextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_context_input(&mut object, input); @@ -569,7 +569,7 @@ pub fn serialize_operation_delete_context( pub fn serialize_operation_delete_data_quality_job_definition( input: &crate::input::DeleteDataQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_data_quality_job_definition_input( @@ -582,7 +582,7 @@ pub fn serialize_operation_delete_data_quality_job_definition( pub fn serialize_operation_delete_device_fleet( input: &crate::input::DeleteDeviceFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_device_fleet_input(&mut object, input); @@ -592,7 +592,7 @@ pub fn serialize_operation_delete_device_fleet( pub fn serialize_operation_delete_domain( input: &crate::input::DeleteDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_domain_input(&mut object, input); @@ -602,7 +602,7 @@ pub fn serialize_operation_delete_domain( pub fn serialize_operation_delete_endpoint( input: &crate::input::DeleteEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_endpoint_input(&mut object, input); @@ -612,7 +612,7 @@ pub fn serialize_operation_delete_endpoint( pub fn serialize_operation_delete_endpoint_config( input: &crate::input::DeleteEndpointConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_endpoint_config_input(&mut object, input); @@ -622,7 +622,7 @@ pub fn serialize_operation_delete_endpoint_config( pub fn serialize_operation_delete_experiment( input: &crate::input::DeleteExperimentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_experiment_input(&mut object, input); @@ -632,7 +632,7 @@ pub fn serialize_operation_delete_experiment( pub fn serialize_operation_delete_feature_group( input: &crate::input::DeleteFeatureGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_feature_group_input(&mut object, input); @@ -642,7 +642,7 @@ pub fn serialize_operation_delete_feature_group( pub fn serialize_operation_delete_flow_definition( input: &crate::input::DeleteFlowDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_flow_definition_input(&mut object, input); @@ -652,7 +652,7 @@ pub fn serialize_operation_delete_flow_definition( pub fn serialize_operation_delete_human_task_ui( input: &crate::input::DeleteHumanTaskUiInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_human_task_ui_input(&mut object, input); @@ -662,7 +662,7 @@ pub fn serialize_operation_delete_human_task_ui( pub fn serialize_operation_delete_image( input: &crate::input::DeleteImageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_image_input(&mut object, input); @@ -672,7 +672,7 @@ pub fn serialize_operation_delete_image( pub fn serialize_operation_delete_image_version( input: &crate::input::DeleteImageVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_image_version_input(&mut object, input); @@ -682,7 +682,7 @@ pub fn serialize_operation_delete_image_version( pub fn serialize_operation_delete_model( input: &crate::input::DeleteModelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_input(&mut object, input); @@ -692,7 +692,7 @@ pub fn serialize_operation_delete_model( pub fn serialize_operation_delete_model_bias_job_definition( input: &crate::input::DeleteModelBiasJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_bias_job_definition_input(&mut object, input); @@ -702,7 +702,7 @@ pub fn serialize_operation_delete_model_bias_job_definition( pub fn serialize_operation_delete_model_explainability_job_definition( input: &crate::input::DeleteModelExplainabilityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_explainability_job_definition_input( @@ -715,7 +715,7 @@ pub fn serialize_operation_delete_model_explainability_job_definition( pub fn serialize_operation_delete_model_package( input: &crate::input::DeleteModelPackageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_package_input(&mut object, input); @@ -725,7 +725,7 @@ pub fn serialize_operation_delete_model_package( pub fn serialize_operation_delete_model_package_group( input: &crate::input::DeleteModelPackageGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_package_group_input(&mut object, input); @@ -735,7 +735,7 @@ pub fn serialize_operation_delete_model_package_group( pub fn serialize_operation_delete_model_package_group_policy( input: &crate::input::DeleteModelPackageGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_package_group_policy_input( @@ -748,7 +748,7 @@ pub fn serialize_operation_delete_model_package_group_policy( pub fn serialize_operation_delete_model_quality_job_definition( input: &crate::input::DeleteModelQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_model_quality_job_definition_input( @@ -761,7 +761,7 @@ pub fn serialize_operation_delete_model_quality_job_definition( pub fn serialize_operation_delete_monitoring_schedule( input: &crate::input::DeleteMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_monitoring_schedule_input(&mut object, input); @@ -771,7 +771,7 @@ pub fn serialize_operation_delete_monitoring_schedule( pub fn serialize_operation_delete_notebook_instance( input: &crate::input::DeleteNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_notebook_instance_input(&mut object, input); @@ -781,7 +781,7 @@ pub fn serialize_operation_delete_notebook_instance( pub fn serialize_operation_delete_notebook_instance_lifecycle_config( input: &crate::input::DeleteNotebookInstanceLifecycleConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_notebook_instance_lifecycle_config_input( @@ -794,7 +794,7 @@ pub fn serialize_operation_delete_notebook_instance_lifecycle_config( pub fn serialize_operation_delete_pipeline( input: &crate::input::DeletePipelineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_pipeline_input(&mut object, input); @@ -804,7 +804,7 @@ pub fn serialize_operation_delete_pipeline( pub fn serialize_operation_delete_project( input: &crate::input::DeleteProjectInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_project_input(&mut object, input); @@ -814,7 +814,7 @@ pub fn serialize_operation_delete_project( pub fn serialize_operation_delete_tags( input: &crate::input::DeleteTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_tags_input(&mut object, input); @@ -824,7 +824,7 @@ pub fn serialize_operation_delete_tags( pub fn serialize_operation_delete_trial( input: &crate::input::DeleteTrialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_trial_input(&mut object, input); @@ -834,7 +834,7 @@ pub fn serialize_operation_delete_trial( pub fn serialize_operation_delete_trial_component( input: &crate::input::DeleteTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_trial_component_input(&mut object, input); @@ -844,7 +844,7 @@ pub fn serialize_operation_delete_trial_component( pub fn serialize_operation_delete_user_profile( input: &crate::input::DeleteUserProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_user_profile_input(&mut object, input); @@ -854,7 +854,7 @@ pub fn serialize_operation_delete_user_profile( pub fn serialize_operation_delete_workforce( input: &crate::input::DeleteWorkforceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_workforce_input(&mut object, input); @@ -864,7 +864,7 @@ pub fn serialize_operation_delete_workforce( pub fn serialize_operation_delete_workteam( input: &crate::input::DeleteWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_workteam_input(&mut object, input); @@ -874,7 +874,7 @@ pub fn serialize_operation_delete_workteam( pub fn serialize_operation_deregister_devices( input: &crate::input::DeregisterDevicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_devices_input(&mut object, input); @@ -884,7 +884,7 @@ pub fn serialize_operation_deregister_devices( pub fn serialize_operation_describe_action( input: &crate::input::DescribeActionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_action_input(&mut object, input); @@ -894,7 +894,7 @@ pub fn serialize_operation_describe_action( pub fn serialize_operation_describe_algorithm( input: &crate::input::DescribeAlgorithmInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_algorithm_input(&mut object, input); @@ -904,7 +904,7 @@ pub fn serialize_operation_describe_algorithm( pub fn serialize_operation_describe_app( input: &crate::input::DescribeAppInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_app_input(&mut object, input); @@ -914,7 +914,7 @@ pub fn serialize_operation_describe_app( pub fn serialize_operation_describe_app_image_config( input: &crate::input::DescribeAppImageConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_app_image_config_input(&mut object, input); @@ -924,7 +924,7 @@ pub fn serialize_operation_describe_app_image_config( pub fn serialize_operation_describe_artifact( input: &crate::input::DescribeArtifactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_artifact_input(&mut object, input); @@ -933,8 +933,8 @@ pub fn serialize_operation_describe_artifact( } pub fn serialize_operation_describe_auto_ml_job( - input: &crate::input::DescribeAutoMLJobInput, -) -> Result { + input: &crate::input::DescribeAutoMlJobInput, +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_auto_ml_job_input(&mut object, input); @@ -944,7 +944,7 @@ pub fn serialize_operation_describe_auto_ml_job( pub fn serialize_operation_describe_code_repository( input: &crate::input::DescribeCodeRepositoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_code_repository_input(&mut object, input); @@ -954,7 +954,7 @@ pub fn serialize_operation_describe_code_repository( pub fn serialize_operation_describe_compilation_job( input: &crate::input::DescribeCompilationJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_compilation_job_input(&mut object, input); @@ -964,7 +964,7 @@ pub fn serialize_operation_describe_compilation_job( pub fn serialize_operation_describe_context( input: &crate::input::DescribeContextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_context_input(&mut object, input); @@ -974,7 +974,7 @@ pub fn serialize_operation_describe_context( pub fn serialize_operation_describe_data_quality_job_definition( input: &crate::input::DescribeDataQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_data_quality_job_definition_input( @@ -987,7 +987,7 @@ pub fn serialize_operation_describe_data_quality_job_definition( pub fn serialize_operation_describe_device( input: &crate::input::DescribeDeviceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_device_input(&mut object, input); @@ -997,7 +997,7 @@ pub fn serialize_operation_describe_device( pub fn serialize_operation_describe_device_fleet( input: &crate::input::DescribeDeviceFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_device_fleet_input(&mut object, input); @@ -1007,7 +1007,7 @@ pub fn serialize_operation_describe_device_fleet( pub fn serialize_operation_describe_domain( input: &crate::input::DescribeDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_domain_input(&mut object, input); @@ -1017,7 +1017,7 @@ pub fn serialize_operation_describe_domain( pub fn serialize_operation_describe_edge_packaging_job( input: &crate::input::DescribeEdgePackagingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_edge_packaging_job_input(&mut object, input); @@ -1027,7 +1027,7 @@ pub fn serialize_operation_describe_edge_packaging_job( pub fn serialize_operation_describe_endpoint( input: &crate::input::DescribeEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_endpoint_input(&mut object, input); @@ -1037,7 +1037,7 @@ pub fn serialize_operation_describe_endpoint( pub fn serialize_operation_describe_endpoint_config( input: &crate::input::DescribeEndpointConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_endpoint_config_input(&mut object, input); @@ -1047,7 +1047,7 @@ pub fn serialize_operation_describe_endpoint_config( pub fn serialize_operation_describe_experiment( input: &crate::input::DescribeExperimentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_experiment_input(&mut object, input); @@ -1057,7 +1057,7 @@ pub fn serialize_operation_describe_experiment( pub fn serialize_operation_describe_feature_group( input: &crate::input::DescribeFeatureGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_feature_group_input(&mut object, input); @@ -1067,7 +1067,7 @@ pub fn serialize_operation_describe_feature_group( pub fn serialize_operation_describe_flow_definition( input: &crate::input::DescribeFlowDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_flow_definition_input(&mut object, input); @@ -1077,7 +1077,7 @@ pub fn serialize_operation_describe_flow_definition( pub fn serialize_operation_describe_human_task_ui( input: &crate::input::DescribeHumanTaskUiInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_human_task_ui_input(&mut object, input); @@ -1087,7 +1087,7 @@ pub fn serialize_operation_describe_human_task_ui( pub fn serialize_operation_describe_hyper_parameter_tuning_job( input: &crate::input::DescribeHyperParameterTuningJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_hyper_parameter_tuning_job_input( @@ -1100,7 +1100,7 @@ pub fn serialize_operation_describe_hyper_parameter_tuning_job( pub fn serialize_operation_describe_image( input: &crate::input::DescribeImageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_image_input(&mut object, input); @@ -1110,7 +1110,7 @@ pub fn serialize_operation_describe_image( pub fn serialize_operation_describe_image_version( input: &crate::input::DescribeImageVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_image_version_input(&mut object, input); @@ -1120,7 +1120,7 @@ pub fn serialize_operation_describe_image_version( pub fn serialize_operation_describe_labeling_job( input: &crate::input::DescribeLabelingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_labeling_job_input(&mut object, input); @@ -1130,7 +1130,7 @@ pub fn serialize_operation_describe_labeling_job( pub fn serialize_operation_describe_model( input: &crate::input::DescribeModelInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_input(&mut object, input); @@ -1140,7 +1140,7 @@ pub fn serialize_operation_describe_model( pub fn serialize_operation_describe_model_bias_job_definition( input: &crate::input::DescribeModelBiasJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_bias_job_definition_input( @@ -1153,7 +1153,7 @@ pub fn serialize_operation_describe_model_bias_job_definition( pub fn serialize_operation_describe_model_explainability_job_definition( input: &crate::input::DescribeModelExplainabilityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_explainability_job_definition_input( @@ -1166,7 +1166,7 @@ pub fn serialize_operation_describe_model_explainability_job_definition( pub fn serialize_operation_describe_model_package( input: &crate::input::DescribeModelPackageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_package_input(&mut object, input); @@ -1176,7 +1176,7 @@ pub fn serialize_operation_describe_model_package( pub fn serialize_operation_describe_model_package_group( input: &crate::input::DescribeModelPackageGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_package_group_input(&mut object, input); @@ -1186,7 +1186,7 @@ pub fn serialize_operation_describe_model_package_group( pub fn serialize_operation_describe_model_quality_job_definition( input: &crate::input::DescribeModelQualityJobDefinitionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_model_quality_job_definition_input( @@ -1199,7 +1199,7 @@ pub fn serialize_operation_describe_model_quality_job_definition( pub fn serialize_operation_describe_monitoring_schedule( input: &crate::input::DescribeMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_monitoring_schedule_input(&mut object, input); @@ -1209,7 +1209,7 @@ pub fn serialize_operation_describe_monitoring_schedule( pub fn serialize_operation_describe_notebook_instance( input: &crate::input::DescribeNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_notebook_instance_input(&mut object, input); @@ -1219,7 +1219,7 @@ pub fn serialize_operation_describe_notebook_instance( pub fn serialize_operation_describe_notebook_instance_lifecycle_config( input: &crate::input::DescribeNotebookInstanceLifecycleConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_notebook_instance_lifecycle_config_input( @@ -1232,7 +1232,7 @@ pub fn serialize_operation_describe_notebook_instance_lifecycle_config( pub fn serialize_operation_describe_pipeline( input: &crate::input::DescribePipelineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_pipeline_input(&mut object, input); @@ -1242,7 +1242,7 @@ pub fn serialize_operation_describe_pipeline( pub fn serialize_operation_describe_pipeline_definition_for_execution( input: &crate::input::DescribePipelineDefinitionForExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_pipeline_definition_for_execution_input( @@ -1255,7 +1255,7 @@ pub fn serialize_operation_describe_pipeline_definition_for_execution( pub fn serialize_operation_describe_pipeline_execution( input: &crate::input::DescribePipelineExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_pipeline_execution_input(&mut object, input); @@ -1265,7 +1265,7 @@ pub fn serialize_operation_describe_pipeline_execution( pub fn serialize_operation_describe_processing_job( input: &crate::input::DescribeProcessingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_processing_job_input(&mut object, input); @@ -1275,7 +1275,7 @@ pub fn serialize_operation_describe_processing_job( pub fn serialize_operation_describe_project( input: &crate::input::DescribeProjectInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_project_input(&mut object, input); @@ -1285,7 +1285,7 @@ pub fn serialize_operation_describe_project( pub fn serialize_operation_describe_subscribed_workteam( input: &crate::input::DescribeSubscribedWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_subscribed_workteam_input(&mut object, input); @@ -1295,7 +1295,7 @@ pub fn serialize_operation_describe_subscribed_workteam( pub fn serialize_operation_describe_training_job( input: &crate::input::DescribeTrainingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_training_job_input(&mut object, input); @@ -1305,7 +1305,7 @@ pub fn serialize_operation_describe_training_job( pub fn serialize_operation_describe_transform_job( input: &crate::input::DescribeTransformJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_transform_job_input(&mut object, input); @@ -1315,7 +1315,7 @@ pub fn serialize_operation_describe_transform_job( pub fn serialize_operation_describe_trial( input: &crate::input::DescribeTrialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_trial_input(&mut object, input); @@ -1325,7 +1325,7 @@ pub fn serialize_operation_describe_trial( pub fn serialize_operation_describe_trial_component( input: &crate::input::DescribeTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_trial_component_input(&mut object, input); @@ -1335,7 +1335,7 @@ pub fn serialize_operation_describe_trial_component( pub fn serialize_operation_describe_user_profile( input: &crate::input::DescribeUserProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_user_profile_input(&mut object, input); @@ -1345,7 +1345,7 @@ pub fn serialize_operation_describe_user_profile( pub fn serialize_operation_describe_workforce( input: &crate::input::DescribeWorkforceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_workforce_input(&mut object, input); @@ -1355,7 +1355,7 @@ pub fn serialize_operation_describe_workforce( pub fn serialize_operation_describe_workteam( input: &crate::input::DescribeWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_workteam_input(&mut object, input); @@ -1363,9 +1363,15 @@ pub fn serialize_operation_describe_workteam( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_disable_sagemaker_servicecatalog_portfolio( + _input: &crate::input::DisableSagemakerServicecatalogPortfolioInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_disassociate_trial_component( input: &crate::input::DisassociateTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disassociate_trial_component_input(&mut object, input); @@ -1373,9 +1379,15 @@ pub fn serialize_operation_disassociate_trial_component( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_enable_sagemaker_servicecatalog_portfolio( + _input: &crate::input::EnableSagemakerServicecatalogPortfolioInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_get_device_fleet_report( input: &crate::input::GetDeviceFleetReportInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_device_fleet_report_input(&mut object, input); @@ -1385,7 +1397,7 @@ pub fn serialize_operation_get_device_fleet_report( pub fn serialize_operation_get_model_package_group_policy( input: &crate::input::GetModelPackageGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_model_package_group_policy_input(&mut object, input); @@ -1393,9 +1405,15 @@ pub fn serialize_operation_get_model_package_group_policy( Ok(smithy_http::body::SdkBody::from(out)) } +pub fn serialize_operation_get_sagemaker_servicecatalog_portfolio_status( + _input: &crate::input::GetSagemakerServicecatalogPortfolioStatusInput, +) -> Result { + Ok(smithy_http::body::SdkBody::from("{}")) +} + pub fn serialize_operation_get_search_suggestions( input: &crate::input::GetSearchSuggestionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_search_suggestions_input(&mut object, input); @@ -1405,7 +1423,7 @@ pub fn serialize_operation_get_search_suggestions( pub fn serialize_operation_list_actions( input: &crate::input::ListActionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_actions_input(&mut object, input); @@ -1415,7 +1433,7 @@ pub fn serialize_operation_list_actions( pub fn serialize_operation_list_algorithms( input: &crate::input::ListAlgorithmsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_algorithms_input(&mut object, input); @@ -1425,7 +1443,7 @@ pub fn serialize_operation_list_algorithms( pub fn serialize_operation_list_app_image_configs( input: &crate::input::ListAppImageConfigsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_app_image_configs_input(&mut object, input); @@ -1435,7 +1453,7 @@ pub fn serialize_operation_list_app_image_configs( pub fn serialize_operation_list_apps( input: &crate::input::ListAppsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_apps_input(&mut object, input); @@ -1445,7 +1463,7 @@ pub fn serialize_operation_list_apps( pub fn serialize_operation_list_artifacts( input: &crate::input::ListArtifactsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_artifacts_input(&mut object, input); @@ -1455,7 +1473,7 @@ pub fn serialize_operation_list_artifacts( pub fn serialize_operation_list_associations( input: &crate::input::ListAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_associations_input(&mut object, input); @@ -1464,8 +1482,8 @@ pub fn serialize_operation_list_associations( } pub fn serialize_operation_list_auto_ml_jobs( - input: &crate::input::ListAutoMLJobsInput, -) -> Result { + input: &crate::input::ListAutoMlJobsInput, +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_auto_ml_jobs_input(&mut object, input); @@ -1474,8 +1492,8 @@ pub fn serialize_operation_list_auto_ml_jobs( } pub fn serialize_operation_list_candidates_for_auto_ml_job( - input: &crate::input::ListCandidatesForAutoMLJobInput, -) -> Result { + input: &crate::input::ListCandidatesForAutoMlJobInput, +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_candidates_for_auto_ml_job_input(&mut object, input); @@ -1485,7 +1503,7 @@ pub fn serialize_operation_list_candidates_for_auto_ml_job( pub fn serialize_operation_list_code_repositories( input: &crate::input::ListCodeRepositoriesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_code_repositories_input(&mut object, input); @@ -1495,7 +1513,7 @@ pub fn serialize_operation_list_code_repositories( pub fn serialize_operation_list_compilation_jobs( input: &crate::input::ListCompilationJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_compilation_jobs_input(&mut object, input); @@ -1505,7 +1523,7 @@ pub fn serialize_operation_list_compilation_jobs( pub fn serialize_operation_list_contexts( input: &crate::input::ListContextsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_contexts_input(&mut object, input); @@ -1515,7 +1533,7 @@ pub fn serialize_operation_list_contexts( pub fn serialize_operation_list_data_quality_job_definitions( input: &crate::input::ListDataQualityJobDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_data_quality_job_definitions_input( @@ -1528,7 +1546,7 @@ pub fn serialize_operation_list_data_quality_job_definitions( pub fn serialize_operation_list_device_fleets( input: &crate::input::ListDeviceFleetsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_device_fleets_input(&mut object, input); @@ -1538,7 +1556,7 @@ pub fn serialize_operation_list_device_fleets( pub fn serialize_operation_list_devices( input: &crate::input::ListDevicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_devices_input(&mut object, input); @@ -1548,7 +1566,7 @@ pub fn serialize_operation_list_devices( pub fn serialize_operation_list_domains( input: &crate::input::ListDomainsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_domains_input(&mut object, input); @@ -1558,7 +1576,7 @@ pub fn serialize_operation_list_domains( pub fn serialize_operation_list_edge_packaging_jobs( input: &crate::input::ListEdgePackagingJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_edge_packaging_jobs_input(&mut object, input); @@ -1568,7 +1586,7 @@ pub fn serialize_operation_list_edge_packaging_jobs( pub fn serialize_operation_list_endpoint_configs( input: &crate::input::ListEndpointConfigsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_endpoint_configs_input(&mut object, input); @@ -1578,7 +1596,7 @@ pub fn serialize_operation_list_endpoint_configs( pub fn serialize_operation_list_endpoints( input: &crate::input::ListEndpointsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_endpoints_input(&mut object, input); @@ -1588,7 +1606,7 @@ pub fn serialize_operation_list_endpoints( pub fn serialize_operation_list_experiments( input: &crate::input::ListExperimentsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_experiments_input(&mut object, input); @@ -1598,7 +1616,7 @@ pub fn serialize_operation_list_experiments( pub fn serialize_operation_list_feature_groups( input: &crate::input::ListFeatureGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_feature_groups_input(&mut object, input); @@ -1608,7 +1626,7 @@ pub fn serialize_operation_list_feature_groups( pub fn serialize_operation_list_flow_definitions( input: &crate::input::ListFlowDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_flow_definitions_input(&mut object, input); @@ -1618,7 +1636,7 @@ pub fn serialize_operation_list_flow_definitions( pub fn serialize_operation_list_human_task_uis( input: &crate::input::ListHumanTaskUisInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_human_task_uis_input(&mut object, input); @@ -1628,7 +1646,7 @@ pub fn serialize_operation_list_human_task_uis( pub fn serialize_operation_list_hyper_parameter_tuning_jobs( input: &crate::input::ListHyperParameterTuningJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_hyper_parameter_tuning_jobs_input(&mut object, input); @@ -1638,7 +1656,7 @@ pub fn serialize_operation_list_hyper_parameter_tuning_jobs( pub fn serialize_operation_list_images( input: &crate::input::ListImagesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_images_input(&mut object, input); @@ -1648,7 +1666,7 @@ pub fn serialize_operation_list_images( pub fn serialize_operation_list_image_versions( input: &crate::input::ListImageVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_image_versions_input(&mut object, input); @@ -1658,7 +1676,7 @@ pub fn serialize_operation_list_image_versions( pub fn serialize_operation_list_labeling_jobs( input: &crate::input::ListLabelingJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_labeling_jobs_input(&mut object, input); @@ -1668,7 +1686,7 @@ pub fn serialize_operation_list_labeling_jobs( pub fn serialize_operation_list_labeling_jobs_for_workteam( input: &crate::input::ListLabelingJobsForWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_labeling_jobs_for_workteam_input(&mut object, input); @@ -1678,7 +1696,7 @@ pub fn serialize_operation_list_labeling_jobs_for_workteam( pub fn serialize_operation_list_model_bias_job_definitions( input: &crate::input::ListModelBiasJobDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_model_bias_job_definitions_input(&mut object, input); @@ -1688,7 +1706,7 @@ pub fn serialize_operation_list_model_bias_job_definitions( pub fn serialize_operation_list_model_explainability_job_definitions( input: &crate::input::ListModelExplainabilityJobDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_model_explainability_job_definitions_input( @@ -1701,7 +1719,7 @@ pub fn serialize_operation_list_model_explainability_job_definitions( pub fn serialize_operation_list_model_package_groups( input: &crate::input::ListModelPackageGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_model_package_groups_input(&mut object, input); @@ -1711,7 +1729,7 @@ pub fn serialize_operation_list_model_package_groups( pub fn serialize_operation_list_model_packages( input: &crate::input::ListModelPackagesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_model_packages_input(&mut object, input); @@ -1721,7 +1739,7 @@ pub fn serialize_operation_list_model_packages( pub fn serialize_operation_list_model_quality_job_definitions( input: &crate::input::ListModelQualityJobDefinitionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_model_quality_job_definitions_input( @@ -1734,7 +1752,7 @@ pub fn serialize_operation_list_model_quality_job_definitions( pub fn serialize_operation_list_models( input: &crate::input::ListModelsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_models_input(&mut object, input); @@ -1744,7 +1762,7 @@ pub fn serialize_operation_list_models( pub fn serialize_operation_list_monitoring_executions( input: &crate::input::ListMonitoringExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_monitoring_executions_input(&mut object, input); @@ -1754,7 +1772,7 @@ pub fn serialize_operation_list_monitoring_executions( pub fn serialize_operation_list_monitoring_schedules( input: &crate::input::ListMonitoringSchedulesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_monitoring_schedules_input(&mut object, input); @@ -1764,7 +1782,7 @@ pub fn serialize_operation_list_monitoring_schedules( pub fn serialize_operation_list_notebook_instance_lifecycle_configs( input: &crate::input::ListNotebookInstanceLifecycleConfigsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_notebook_instance_lifecycle_configs_input( @@ -1777,7 +1795,7 @@ pub fn serialize_operation_list_notebook_instance_lifecycle_configs( pub fn serialize_operation_list_notebook_instances( input: &crate::input::ListNotebookInstancesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_notebook_instances_input(&mut object, input); @@ -1787,7 +1805,7 @@ pub fn serialize_operation_list_notebook_instances( pub fn serialize_operation_list_pipeline_executions( input: &crate::input::ListPipelineExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_pipeline_executions_input(&mut object, input); @@ -1797,7 +1815,7 @@ pub fn serialize_operation_list_pipeline_executions( pub fn serialize_operation_list_pipeline_execution_steps( input: &crate::input::ListPipelineExecutionStepsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_pipeline_execution_steps_input(&mut object, input); @@ -1807,7 +1825,7 @@ pub fn serialize_operation_list_pipeline_execution_steps( pub fn serialize_operation_list_pipeline_parameters_for_execution( input: &crate::input::ListPipelineParametersForExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_pipeline_parameters_for_execution_input( @@ -1820,7 +1838,7 @@ pub fn serialize_operation_list_pipeline_parameters_for_execution( pub fn serialize_operation_list_pipelines( input: &crate::input::ListPipelinesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_pipelines_input(&mut object, input); @@ -1830,7 +1848,7 @@ pub fn serialize_operation_list_pipelines( pub fn serialize_operation_list_processing_jobs( input: &crate::input::ListProcessingJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_processing_jobs_input(&mut object, input); @@ -1840,7 +1858,7 @@ pub fn serialize_operation_list_processing_jobs( pub fn serialize_operation_list_projects( input: &crate::input::ListProjectsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_projects_input(&mut object, input); @@ -1850,7 +1868,7 @@ pub fn serialize_operation_list_projects( pub fn serialize_operation_list_subscribed_workteams( input: &crate::input::ListSubscribedWorkteamsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_subscribed_workteams_input(&mut object, input); @@ -1860,7 +1878,7 @@ pub fn serialize_operation_list_subscribed_workteams( pub fn serialize_operation_list_tags( input: &crate::input::ListTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_input(&mut object, input); @@ -1870,7 +1888,7 @@ pub fn serialize_operation_list_tags( pub fn serialize_operation_list_training_jobs( input: &crate::input::ListTrainingJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_training_jobs_input(&mut object, input); @@ -1880,7 +1898,7 @@ pub fn serialize_operation_list_training_jobs( pub fn serialize_operation_list_training_jobs_for_hyper_parameter_tuning_job( input: &crate::input::ListTrainingJobsForHyperParameterTuningJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_training_jobs_for_hyper_parameter_tuning_job_input( @@ -1893,7 +1911,7 @@ pub fn serialize_operation_list_training_jobs_for_hyper_parameter_tuning_job( pub fn serialize_operation_list_transform_jobs( input: &crate::input::ListTransformJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_transform_jobs_input(&mut object, input); @@ -1903,7 +1921,7 @@ pub fn serialize_operation_list_transform_jobs( pub fn serialize_operation_list_trial_components( input: &crate::input::ListTrialComponentsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_trial_components_input(&mut object, input); @@ -1913,7 +1931,7 @@ pub fn serialize_operation_list_trial_components( pub fn serialize_operation_list_trials( input: &crate::input::ListTrialsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_trials_input(&mut object, input); @@ -1923,7 +1941,7 @@ pub fn serialize_operation_list_trials( pub fn serialize_operation_list_user_profiles( input: &crate::input::ListUserProfilesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_user_profiles_input(&mut object, input); @@ -1933,7 +1951,7 @@ pub fn serialize_operation_list_user_profiles( pub fn serialize_operation_list_workforces( input: &crate::input::ListWorkforcesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_workforces_input(&mut object, input); @@ -1943,7 +1961,7 @@ pub fn serialize_operation_list_workforces( pub fn serialize_operation_list_workteams( input: &crate::input::ListWorkteamsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_workteams_input(&mut object, input); @@ -1953,7 +1971,7 @@ pub fn serialize_operation_list_workteams( pub fn serialize_operation_put_model_package_group_policy( input: &crate::input::PutModelPackageGroupPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_model_package_group_policy_input(&mut object, input); @@ -1963,7 +1981,7 @@ pub fn serialize_operation_put_model_package_group_policy( pub fn serialize_operation_register_devices( input: &crate::input::RegisterDevicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_devices_input(&mut object, input); @@ -1973,7 +1991,7 @@ pub fn serialize_operation_register_devices( pub fn serialize_operation_render_ui_template( input: &crate::input::RenderUiTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_render_ui_template_input(&mut object, input); @@ -1983,7 +2001,7 @@ pub fn serialize_operation_render_ui_template( pub fn serialize_operation_search( input: &crate::input::SearchInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_search_input(&mut object, input); @@ -1993,7 +2011,7 @@ pub fn serialize_operation_search( pub fn serialize_operation_send_pipeline_execution_step_failure( input: &crate::input::SendPipelineExecutionStepFailureInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_pipeline_execution_step_failure_input( @@ -2006,7 +2024,7 @@ pub fn serialize_operation_send_pipeline_execution_step_failure( pub fn serialize_operation_send_pipeline_execution_step_success( input: &crate::input::SendPipelineExecutionStepSuccessInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_pipeline_execution_step_success_input( @@ -2019,7 +2037,7 @@ pub fn serialize_operation_send_pipeline_execution_step_success( pub fn serialize_operation_start_monitoring_schedule( input: &crate::input::StartMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_monitoring_schedule_input(&mut object, input); @@ -2029,7 +2047,7 @@ pub fn serialize_operation_start_monitoring_schedule( pub fn serialize_operation_start_notebook_instance( input: &crate::input::StartNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_notebook_instance_input(&mut object, input); @@ -2039,7 +2057,7 @@ pub fn serialize_operation_start_notebook_instance( pub fn serialize_operation_start_pipeline_execution( input: &crate::input::StartPipelineExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_pipeline_execution_input(&mut object, input); @@ -2048,8 +2066,8 @@ pub fn serialize_operation_start_pipeline_execution( } pub fn serialize_operation_stop_auto_ml_job( - input: &crate::input::StopAutoMLJobInput, -) -> Result { + input: &crate::input::StopAutoMlJobInput, +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_auto_ml_job_input(&mut object, input); @@ -2059,7 +2077,7 @@ pub fn serialize_operation_stop_auto_ml_job( pub fn serialize_operation_stop_compilation_job( input: &crate::input::StopCompilationJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_compilation_job_input(&mut object, input); @@ -2069,7 +2087,7 @@ pub fn serialize_operation_stop_compilation_job( pub fn serialize_operation_stop_edge_packaging_job( input: &crate::input::StopEdgePackagingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_edge_packaging_job_input(&mut object, input); @@ -2079,7 +2097,7 @@ pub fn serialize_operation_stop_edge_packaging_job( pub fn serialize_operation_stop_hyper_parameter_tuning_job( input: &crate::input::StopHyperParameterTuningJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_hyper_parameter_tuning_job_input(&mut object, input); @@ -2089,7 +2107,7 @@ pub fn serialize_operation_stop_hyper_parameter_tuning_job( pub fn serialize_operation_stop_labeling_job( input: &crate::input::StopLabelingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_labeling_job_input(&mut object, input); @@ -2099,7 +2117,7 @@ pub fn serialize_operation_stop_labeling_job( pub fn serialize_operation_stop_monitoring_schedule( input: &crate::input::StopMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_monitoring_schedule_input(&mut object, input); @@ -2109,7 +2127,7 @@ pub fn serialize_operation_stop_monitoring_schedule( pub fn serialize_operation_stop_notebook_instance( input: &crate::input::StopNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_notebook_instance_input(&mut object, input); @@ -2119,7 +2137,7 @@ pub fn serialize_operation_stop_notebook_instance( pub fn serialize_operation_stop_pipeline_execution( input: &crate::input::StopPipelineExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_pipeline_execution_input(&mut object, input); @@ -2129,7 +2147,7 @@ pub fn serialize_operation_stop_pipeline_execution( pub fn serialize_operation_stop_processing_job( input: &crate::input::StopProcessingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_processing_job_input(&mut object, input); @@ -2139,7 +2157,7 @@ pub fn serialize_operation_stop_processing_job( pub fn serialize_operation_stop_training_job( input: &crate::input::StopTrainingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_training_job_input(&mut object, input); @@ -2149,7 +2167,7 @@ pub fn serialize_operation_stop_training_job( pub fn serialize_operation_stop_transform_job( input: &crate::input::StopTransformJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_transform_job_input(&mut object, input); @@ -2159,7 +2177,7 @@ pub fn serialize_operation_stop_transform_job( pub fn serialize_operation_update_action( input: &crate::input::UpdateActionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_action_input(&mut object, input); @@ -2169,7 +2187,7 @@ pub fn serialize_operation_update_action( pub fn serialize_operation_update_app_image_config( input: &crate::input::UpdateAppImageConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_app_image_config_input(&mut object, input); @@ -2179,7 +2197,7 @@ pub fn serialize_operation_update_app_image_config( pub fn serialize_operation_update_artifact( input: &crate::input::UpdateArtifactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_artifact_input(&mut object, input); @@ -2189,7 +2207,7 @@ pub fn serialize_operation_update_artifact( pub fn serialize_operation_update_code_repository( input: &crate::input::UpdateCodeRepositoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_code_repository_input(&mut object, input); @@ -2199,7 +2217,7 @@ pub fn serialize_operation_update_code_repository( pub fn serialize_operation_update_context( input: &crate::input::UpdateContextInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_context_input(&mut object, input); @@ -2209,7 +2227,7 @@ pub fn serialize_operation_update_context( pub fn serialize_operation_update_device_fleet( input: &crate::input::UpdateDeviceFleetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_device_fleet_input(&mut object, input); @@ -2219,7 +2237,7 @@ pub fn serialize_operation_update_device_fleet( pub fn serialize_operation_update_devices( input: &crate::input::UpdateDevicesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_devices_input(&mut object, input); @@ -2229,7 +2247,7 @@ pub fn serialize_operation_update_devices( pub fn serialize_operation_update_domain( input: &crate::input::UpdateDomainInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_domain_input(&mut object, input); @@ -2239,7 +2257,7 @@ pub fn serialize_operation_update_domain( pub fn serialize_operation_update_endpoint( input: &crate::input::UpdateEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_endpoint_input(&mut object, input); @@ -2249,7 +2267,7 @@ pub fn serialize_operation_update_endpoint( pub fn serialize_operation_update_endpoint_weights_and_capacities( input: &crate::input::UpdateEndpointWeightsAndCapacitiesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_endpoint_weights_and_capacities_input( @@ -2262,7 +2280,7 @@ pub fn serialize_operation_update_endpoint_weights_and_capacities( pub fn serialize_operation_update_experiment( input: &crate::input::UpdateExperimentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_experiment_input(&mut object, input); @@ -2272,7 +2290,7 @@ pub fn serialize_operation_update_experiment( pub fn serialize_operation_update_image( input: &crate::input::UpdateImageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_image_input(&mut object, input); @@ -2282,7 +2300,7 @@ pub fn serialize_operation_update_image( pub fn serialize_operation_update_model_package( input: &crate::input::UpdateModelPackageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_model_package_input(&mut object, input); @@ -2292,7 +2310,7 @@ pub fn serialize_operation_update_model_package( pub fn serialize_operation_update_monitoring_schedule( input: &crate::input::UpdateMonitoringScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_monitoring_schedule_input(&mut object, input); @@ -2302,7 +2320,7 @@ pub fn serialize_operation_update_monitoring_schedule( pub fn serialize_operation_update_notebook_instance( input: &crate::input::UpdateNotebookInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_notebook_instance_input(&mut object, input); @@ -2312,7 +2330,7 @@ pub fn serialize_operation_update_notebook_instance( pub fn serialize_operation_update_notebook_instance_lifecycle_config( input: &crate::input::UpdateNotebookInstanceLifecycleConfigInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_notebook_instance_lifecycle_config_input( @@ -2325,7 +2343,7 @@ pub fn serialize_operation_update_notebook_instance_lifecycle_config( pub fn serialize_operation_update_pipeline( input: &crate::input::UpdatePipelineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_pipeline_input(&mut object, input); @@ -2335,7 +2353,7 @@ pub fn serialize_operation_update_pipeline( pub fn serialize_operation_update_pipeline_execution( input: &crate::input::UpdatePipelineExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_pipeline_execution_input(&mut object, input); @@ -2345,7 +2363,7 @@ pub fn serialize_operation_update_pipeline_execution( pub fn serialize_operation_update_training_job( input: &crate::input::UpdateTrainingJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_training_job_input(&mut object, input); @@ -2355,7 +2373,7 @@ pub fn serialize_operation_update_training_job( pub fn serialize_operation_update_trial( input: &crate::input::UpdateTrialInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_trial_input(&mut object, input); @@ -2365,7 +2383,7 @@ pub fn serialize_operation_update_trial( pub fn serialize_operation_update_trial_component( input: &crate::input::UpdateTrialComponentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_trial_component_input(&mut object, input); @@ -2375,7 +2393,7 @@ pub fn serialize_operation_update_trial_component( pub fn serialize_operation_update_user_profile( input: &crate::input::UpdateUserProfileInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_user_profile_input(&mut object, input); @@ -2385,7 +2403,7 @@ pub fn serialize_operation_update_user_profile( pub fn serialize_operation_update_workforce( input: &crate::input::UpdateWorkforceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_workforce_input(&mut object, input); @@ -2395,7 +2413,7 @@ pub fn serialize_operation_update_workforce( pub fn serialize_operation_update_workteam( input: &crate::input::UpdateWorkteamInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_workteam_input(&mut object, input); diff --git a/sdk/sagemaker/src/output.rs b/sdk/sagemaker/src/output.rs index 3815552838c2..b7a691ae04b5 100644 --- a/sdk/sagemaker/src/output.rs +++ b/sdk/sagemaker/src/output.rs @@ -1381,28 +1381,28 @@ impl StopCompilationJobOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopAutoMLJobOutput {} -impl std::fmt::Debug for StopAutoMLJobOutput { +pub struct StopAutoMlJobOutput {} +impl std::fmt::Debug for StopAutoMlJobOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopAutoMLJobOutput"); + let mut formatter = f.debug_struct("StopAutoMlJobOutput"); formatter.finish() } } -/// See [`StopAutoMLJobOutput`](crate::output::StopAutoMLJobOutput) +/// See [`StopAutoMlJobOutput`](crate::output::StopAutoMlJobOutput) pub mod stop_auto_ml_job_output { - /// A builder for [`StopAutoMLJobOutput`](crate::output::StopAutoMLJobOutput) + /// A builder for [`StopAutoMlJobOutput`](crate::output::StopAutoMlJobOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`StopAutoMLJobOutput`](crate::output::StopAutoMLJobOutput) - pub fn build(self) -> crate::output::StopAutoMLJobOutput { - crate::output::StopAutoMLJobOutput {} + /// Consumes the builder and constructs a [`StopAutoMlJobOutput`](crate::output::StopAutoMlJobOutput) + pub fn build(self) -> crate::output::StopAutoMlJobOutput { + crate::output::StopAutoMlJobOutput {} } } } -impl StopAutoMLJobOutput { - /// Creates a new builder-style object to manufacture [`StopAutoMLJobOutput`](crate::output::StopAutoMLJobOutput) +impl StopAutoMlJobOutput { + /// Creates a new builder-style object to manufacture [`StopAutoMlJobOutput`](crate::output::StopAutoMlJobOutput) pub fn builder() -> crate::output::stop_auto_ml_job_output::Builder { crate::output::stop_auto_ml_job_output::Builder::default() } @@ -5023,32 +5023,32 @@ impl ListCodeRepositoriesOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCandidatesForAutoMLJobOutput { +pub struct ListCandidatesForAutoMlJobOutput { ///

    Summaries about the AutoMLCandidates.

    - pub candidates: std::option::Option>, + pub candidates: std::option::Option>, ///

    If the previous response was truncated, you receive this token. Use it in your next /// request to receive the next set of results.

    pub next_token: std::option::Option, } -impl std::fmt::Debug for ListCandidatesForAutoMLJobOutput { +impl std::fmt::Debug for ListCandidatesForAutoMlJobOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCandidatesForAutoMLJobOutput"); + let mut formatter = f.debug_struct("ListCandidatesForAutoMlJobOutput"); formatter.field("candidates", &self.candidates); formatter.field("next_token", &self.next_token); formatter.finish() } } -/// See [`ListCandidatesForAutoMLJobOutput`](crate::output::ListCandidatesForAutoMLJobOutput) +/// See [`ListCandidatesForAutoMlJobOutput`](crate::output::ListCandidatesForAutoMlJobOutput) pub mod list_candidates_for_auto_ml_job_output { - /// A builder for [`ListCandidatesForAutoMLJobOutput`](crate::output::ListCandidatesForAutoMLJobOutput) + /// A builder for [`ListCandidatesForAutoMlJobOutput`](crate::output::ListCandidatesForAutoMlJobOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { - pub(crate) candidates: std::option::Option>, + pub(crate) candidates: std::option::Option>, pub(crate) next_token: std::option::Option, } impl Builder { - pub fn candidates(mut self, input: impl Into) -> Self { + pub fn candidates(mut self, input: impl Into) -> Self { let mut v = self.candidates.unwrap_or_default(); v.push(input.into()); self.candidates = Some(v); @@ -5056,7 +5056,7 @@ pub mod list_candidates_for_auto_ml_job_output { } pub fn set_candidates( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.candidates = input; self @@ -5071,17 +5071,17 @@ pub mod list_candidates_for_auto_ml_job_output { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListCandidatesForAutoMLJobOutput`](crate::output::ListCandidatesForAutoMLJobOutput) - pub fn build(self) -> crate::output::ListCandidatesForAutoMLJobOutput { - crate::output::ListCandidatesForAutoMLJobOutput { + /// Consumes the builder and constructs a [`ListCandidatesForAutoMlJobOutput`](crate::output::ListCandidatesForAutoMlJobOutput) + pub fn build(self) -> crate::output::ListCandidatesForAutoMlJobOutput { + crate::output::ListCandidatesForAutoMlJobOutput { candidates: self.candidates, next_token: self.next_token, } } } } -impl ListCandidatesForAutoMLJobOutput { - /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMLJobOutput`](crate::output::ListCandidatesForAutoMLJobOutput) +impl ListCandidatesForAutoMlJobOutput { + /// Creates a new builder-style object to manufacture [`ListCandidatesForAutoMlJobOutput`](crate::output::ListCandidatesForAutoMlJobOutput) pub fn builder() -> crate::output::list_candidates_for_auto_ml_job_output::Builder { crate::output::list_candidates_for_auto_ml_job_output::Builder::default() } @@ -5089,35 +5089,35 @@ impl ListCandidatesForAutoMLJobOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAutoMLJobsOutput { +pub struct ListAutoMlJobsOutput { ///

    Returns a summary list of jobs.

    - pub auto_ml_job_summaries: std::option::Option>, + pub auto_ml_job_summaries: std::option::Option>, ///

    If the previous response was truncated, you receive this token. Use it in your next /// request to receive the next set of results.

    pub next_token: std::option::Option, } -impl std::fmt::Debug for ListAutoMLJobsOutput { +impl std::fmt::Debug for ListAutoMlJobsOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAutoMLJobsOutput"); + let mut formatter = f.debug_struct("ListAutoMlJobsOutput"); formatter.field("auto_ml_job_summaries", &self.auto_ml_job_summaries); formatter.field("next_token", &self.next_token); formatter.finish() } } -/// See [`ListAutoMLJobsOutput`](crate::output::ListAutoMLJobsOutput) +/// See [`ListAutoMlJobsOutput`](crate::output::ListAutoMlJobsOutput) pub mod list_auto_ml_jobs_output { - /// A builder for [`ListAutoMLJobsOutput`](crate::output::ListAutoMLJobsOutput) + /// A builder for [`ListAutoMlJobsOutput`](crate::output::ListAutoMlJobsOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) auto_ml_job_summaries: - std::option::Option>, + std::option::Option>, pub(crate) next_token: std::option::Option, } impl Builder { pub fn auto_ml_job_summaries( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.auto_ml_job_summaries.unwrap_or_default(); v.push(input.into()); @@ -5126,7 +5126,7 @@ pub mod list_auto_ml_jobs_output { } pub fn set_auto_ml_job_summaries( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.auto_ml_job_summaries = input; self @@ -5141,17 +5141,17 @@ pub mod list_auto_ml_jobs_output { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListAutoMLJobsOutput`](crate::output::ListAutoMLJobsOutput) - pub fn build(self) -> crate::output::ListAutoMLJobsOutput { - crate::output::ListAutoMLJobsOutput { + /// Consumes the builder and constructs a [`ListAutoMlJobsOutput`](crate::output::ListAutoMlJobsOutput) + pub fn build(self) -> crate::output::ListAutoMlJobsOutput { + crate::output::ListAutoMlJobsOutput { auto_ml_job_summaries: self.auto_ml_job_summaries, next_token: self.next_token, } } } } -impl ListAutoMLJobsOutput { - /// Creates a new builder-style object to manufacture [`ListAutoMLJobsOutput`](crate::output::ListAutoMLJobsOutput) +impl ListAutoMlJobsOutput { + /// Creates a new builder-style object to manufacture [`ListAutoMlJobsOutput`](crate::output::ListAutoMlJobsOutput) pub fn builder() -> crate::output::list_auto_ml_jobs_output::Builder { crate::output::list_auto_ml_jobs_output::Builder::default() } @@ -16484,24 +16484,24 @@ impl DescribeCodeRepositoryOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutoMLJobOutput { +pub struct DescribeAutoMlJobOutput { ///

    Returns the name of the AutoML job.

    pub auto_ml_job_name: std::option::Option, ///

    Returns the ARN of the AutoML job.

    pub auto_ml_job_arn: std::option::Option, ///

    Returns the input data configuration for the AutoML job..

    - pub input_data_config: std::option::Option>, + pub input_data_config: std::option::Option>, ///

    Returns the job's output data config.

    - pub output_data_config: std::option::Option, + pub output_data_config: std::option::Option, ///

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that has read permission to /// the input data location and write permission to the output data location in Amazon S3.

    pub role_arn: std::option::Option, ///

    Returns the job's objective.

    - pub auto_ml_job_objective: std::option::Option, + pub auto_ml_job_objective: std::option::Option, ///

    Returns the job's problem type.

    pub problem_type: std::option::Option, ///

    Returns the configuration for the AutoML job.

    - pub auto_ml_job_config: std::option::Option, + pub auto_ml_job_config: std::option::Option, ///

    Returns the creation time of the AutoML job.

    pub creation_time: std::option::Option, ///

    Returns the end time of the AutoML job.

    @@ -16512,9 +16512,9 @@ pub struct DescribeAutoMLJobOutput { pub failure_reason: std::option::Option, ///

    Returns a list of reasons for partial failures within an AutoML job.

    pub partial_failure_reasons: - std::option::Option>, + std::option::Option>, ///

    Returns the job's best AutoMLCandidate.

    - pub best_candidate: std::option::Option, + pub best_candidate: std::option::Option, ///

    Returns the status of the AutoML job.

    pub auto_ml_job_status: std::option::Option, ///

    Returns the secondary status of the AutoML job.

    @@ -16524,7 +16524,7 @@ pub struct DescribeAutoMLJobOutput { pub generate_candidate_definitions_only: bool, ///

    Returns information on the job's artifacts found in /// AutoMLJobArtifacts.

    - pub auto_ml_job_artifacts: std::option::Option, + pub auto_ml_job_artifacts: std::option::Option, ///

    This contains ProblemType, AutoMLJobObjective and /// CompletionCriteria. If you do not provide these values, they are /// auto-inferred. If you do provide them, the values used are the ones you provide.

    @@ -16535,9 +16535,9 @@ pub struct DescribeAutoMLJobOutput { ///

    Provides information about endpoint for the model deployment.

    pub model_deploy_result: std::option::Option, } -impl std::fmt::Debug for DescribeAutoMLJobOutput { +impl std::fmt::Debug for DescribeAutoMlJobOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutoMLJobOutput"); + let mut formatter = f.debug_struct("DescribeAutoMlJobOutput"); formatter.field("auto_ml_job_name", &self.auto_ml_job_name); formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); formatter.field("input_data_config", &self.input_data_config); @@ -16568,33 +16568,33 @@ impl std::fmt::Debug for DescribeAutoMLJobOutput { formatter.finish() } } -/// See [`DescribeAutoMLJobOutput`](crate::output::DescribeAutoMLJobOutput) +/// See [`DescribeAutoMlJobOutput`](crate::output::DescribeAutoMlJobOutput) pub mod describe_auto_ml_job_output { - /// A builder for [`DescribeAutoMLJobOutput`](crate::output::DescribeAutoMLJobOutput) + /// A builder for [`DescribeAutoMlJobOutput`](crate::output::DescribeAutoMlJobOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) auto_ml_job_name: std::option::Option, pub(crate) auto_ml_job_arn: std::option::Option, pub(crate) input_data_config: - std::option::Option>, - pub(crate) output_data_config: std::option::Option, + std::option::Option>, + pub(crate) output_data_config: std::option::Option, pub(crate) role_arn: std::option::Option, - pub(crate) auto_ml_job_objective: std::option::Option, + pub(crate) auto_ml_job_objective: std::option::Option, pub(crate) problem_type: std::option::Option, - pub(crate) auto_ml_job_config: std::option::Option, + pub(crate) auto_ml_job_config: std::option::Option, pub(crate) creation_time: std::option::Option, pub(crate) end_time: std::option::Option, pub(crate) last_modified_time: std::option::Option, pub(crate) failure_reason: std::option::Option, pub(crate) partial_failure_reasons: - std::option::Option>, - pub(crate) best_candidate: std::option::Option, + std::option::Option>, + pub(crate) best_candidate: std::option::Option, pub(crate) auto_ml_job_status: std::option::Option, pub(crate) auto_ml_job_secondary_status: std::option::Option, pub(crate) generate_candidate_definitions_only: std::option::Option, - pub(crate) auto_ml_job_artifacts: std::option::Option, + pub(crate) auto_ml_job_artifacts: std::option::Option, pub(crate) resolved_attributes: std::option::Option, pub(crate) model_deploy_config: std::option::Option, pub(crate) model_deploy_result: std::option::Option, @@ -16624,7 +16624,7 @@ pub mod describe_auto_ml_job_output { self.auto_ml_job_arn = input; self } - pub fn input_data_config(mut self, input: impl Into) -> Self { + pub fn input_data_config(mut self, input: impl Into) -> Self { let mut v = self.input_data_config.unwrap_or_default(); v.push(input.into()); self.input_data_config = Some(v); @@ -16632,19 +16632,19 @@ pub mod describe_auto_ml_job_output { } pub fn set_input_data_config( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.input_data_config = input; self } ///

    Returns the job's output data config.

    - pub fn output_data_config(mut self, input: crate::model::AutoMLOutputDataConfig) -> Self { + pub fn output_data_config(mut self, input: crate::model::AutoMlOutputDataConfig) -> Self { self.output_data_config = Some(input); self } pub fn set_output_data_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.output_data_config = input; self @@ -16660,13 +16660,13 @@ pub mod describe_auto_ml_job_output { self } ///

    Returns the job's objective.

    - pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMLJobObjective) -> Self { + pub fn auto_ml_job_objective(mut self, input: crate::model::AutoMlJobObjective) -> Self { self.auto_ml_job_objective = Some(input); self } pub fn set_auto_ml_job_objective( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_objective = input; self @@ -16684,13 +16684,13 @@ pub mod describe_auto_ml_job_output { self } ///

    Returns the configuration for the AutoML job.

    - pub fn auto_ml_job_config(mut self, input: crate::model::AutoMLJobConfig) -> Self { + pub fn auto_ml_job_config(mut self, input: crate::model::AutoMlJobConfig) -> Self { self.auto_ml_job_config = Some(input); self } pub fn set_auto_ml_job_config( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_config = input; self @@ -16742,7 +16742,7 @@ pub mod describe_auto_ml_job_output { } pub fn partial_failure_reasons( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.partial_failure_reasons.unwrap_or_default(); v.push(input.into()); @@ -16751,19 +16751,19 @@ pub mod describe_auto_ml_job_output { } pub fn set_partial_failure_reasons( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.partial_failure_reasons = input; self } ///

    Returns the job's best AutoMLCandidate.

    - pub fn best_candidate(mut self, input: crate::model::AutoMLCandidate) -> Self { + pub fn best_candidate(mut self, input: crate::model::AutoMlCandidate) -> Self { self.best_candidate = Some(input); self } pub fn set_best_candidate( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.best_candidate = input; self @@ -16810,13 +16810,13 @@ pub mod describe_auto_ml_job_output { } ///

    Returns information on the job's artifacts found in /// AutoMLJobArtifacts.

    - pub fn auto_ml_job_artifacts(mut self, input: crate::model::AutoMLJobArtifacts) -> Self { + pub fn auto_ml_job_artifacts(mut self, input: crate::model::AutoMlJobArtifacts) -> Self { self.auto_ml_job_artifacts = Some(input); self } pub fn set_auto_ml_job_artifacts( mut self, - input: std::option::Option, + input: std::option::Option, ) -> Self { self.auto_ml_job_artifacts = input; self @@ -16860,9 +16860,9 @@ pub mod describe_auto_ml_job_output { self.model_deploy_result = input; self } - /// Consumes the builder and constructs a [`DescribeAutoMLJobOutput`](crate::output::DescribeAutoMLJobOutput) - pub fn build(self) -> crate::output::DescribeAutoMLJobOutput { - crate::output::DescribeAutoMLJobOutput { + /// Consumes the builder and constructs a [`DescribeAutoMlJobOutput`](crate::output::DescribeAutoMlJobOutput) + pub fn build(self) -> crate::output::DescribeAutoMlJobOutput { + crate::output::DescribeAutoMlJobOutput { auto_ml_job_name: self.auto_ml_job_name, auto_ml_job_arn: self.auto_ml_job_arn, input_data_config: self.input_data_config, @@ -16890,8 +16890,8 @@ pub mod describe_auto_ml_job_output { } } } -impl DescribeAutoMLJobOutput { - /// Creates a new builder-style object to manufacture [`DescribeAutoMLJobOutput`](crate::output::DescribeAutoMLJobOutput) +impl DescribeAutoMlJobOutput { + /// Creates a new builder-style object to manufacture [`DescribeAutoMlJobOutput`](crate::output::DescribeAutoMlJobOutput) pub fn builder() -> crate::output::describe_auto_ml_job_output::Builder { crate::output::describe_auto_ml_job_output::Builder::default() } @@ -21054,20 +21054,20 @@ impl CreateCodeRepositoryOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAutoMLJobOutput { +pub struct CreateAutoMlJobOutput { ///

    The unique ARN that is assigned to the AutoML job when it is created.

    pub auto_ml_job_arn: std::option::Option, } -impl std::fmt::Debug for CreateAutoMLJobOutput { +impl std::fmt::Debug for CreateAutoMlJobOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAutoMLJobOutput"); + let mut formatter = f.debug_struct("CreateAutoMlJobOutput"); formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); formatter.finish() } } -/// See [`CreateAutoMLJobOutput`](crate::output::CreateAutoMLJobOutput) +/// See [`CreateAutoMlJobOutput`](crate::output::CreateAutoMlJobOutput) pub mod create_auto_ml_job_output { - /// A builder for [`CreateAutoMLJobOutput`](crate::output::CreateAutoMLJobOutput) + /// A builder for [`CreateAutoMlJobOutput`](crate::output::CreateAutoMlJobOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21086,16 +21086,16 @@ pub mod create_auto_ml_job_output { self.auto_ml_job_arn = input; self } - /// Consumes the builder and constructs a [`CreateAutoMLJobOutput`](crate::output::CreateAutoMLJobOutput) - pub fn build(self) -> crate::output::CreateAutoMLJobOutput { - crate::output::CreateAutoMLJobOutput { + /// Consumes the builder and constructs a [`CreateAutoMlJobOutput`](crate::output::CreateAutoMlJobOutput) + pub fn build(self) -> crate::output::CreateAutoMlJobOutput { + crate::output::CreateAutoMlJobOutput { auto_ml_job_arn: self.auto_ml_job_arn, } } } } -impl CreateAutoMLJobOutput { - /// Creates a new builder-style object to manufacture [`CreateAutoMLJobOutput`](crate::output::CreateAutoMLJobOutput) +impl CreateAutoMlJobOutput { + /// Creates a new builder-style object to manufacture [`CreateAutoMlJobOutput`](crate::output::CreateAutoMlJobOutput) pub fn builder() -> crate::output::create_auto_ml_job_output::Builder { crate::output::create_auto_ml_job_output::Builder::default() } diff --git a/sdk/sagemaker/src/serde_util.rs b/sdk/sagemaker/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/sagemaker/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/sagemaker/src/serializer.rs b/sdk/sagemaker/src/serializer.rs deleted file mode 100644 index abef86b2dcdb..000000000000 --- a/sdk/sagemaker/src/serializer.rs +++ /dev/null @@ -1,13822 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddAssociationInputBody<'a> { - ///

    The ARN of the source.

    - pub source_arn: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the destination.

    - pub destination_arn: &'a std::option::Option, - ///

    The type of association. The following are suggested uses for each type. Amazon SageMaker - /// places no restrictions on their use.

    - ///
      - ///
    • - ///

      ContributedTo - The source contributed to the destination or had a part in - /// enabling the destination. For example, the training data contributed to the training - /// job.

      - ///
    • - ///
    • - ///

      AssociatedWith - The source is connected to the destination. For example, an - /// approval workflow is associated with a model deployment.

      - ///
    • - ///
    • - ///

      DerivedFrom - The destination is a modification of the source. For example, a digest - /// output of a channel input for a processing job is derived from the original inputs.

      - ///
    • - ///
    • - ///

      Produced - The source generated the destination. For example, a training job - /// produced a model artifact.

      - ///
    • - ///
    - pub association_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AddAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddAssociationInputBody"); - formatter.field("source_arn", &self.source_arn); - formatter.field("destination_arn", &self.destination_arn); - formatter.field("association_type", &self.association_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddTagsInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    - pub resource_arn: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for AddTagsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddTagsInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateTrialComponentInputBody<'a> { - ///

    The name of the component to associated with the trial.

    - pub trial_component_name: &'a std::option::Option, - ///

    The name of the trial to associate with.

    - pub trial_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AssociateTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("trial_name", &self.trial_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateActionInputBody<'a> { - ///

    The name of the action. Must be unique to your account in an AWS Region.

    - pub action_name: &'a std::option::Option, - ///

    The source type, ID, and URI.

    - pub source: &'a std::option::Option, - ///

    The action type.

    - pub action_type: &'a std::option::Option, - ///

    The description of the action.

    - pub description: &'a std::option::Option, - ///

    The status of the action.

    - pub status: &'a std::option::Option, - ///

    A list of properties to add to the action.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - pub metadata_properties: &'a std::option::Option, - ///

    A list of tags to apply to the action.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateActionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateActionInputBody"); - formatter.field("action_name", &self.action_name); - formatter.field("source", &self.source); - formatter.field("action_type", &self.action_type); - formatter.field("description", &self.description); - formatter.field("status", &self.status); - formatter.field("properties", &self.properties); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAlgorithmInputBody<'a> { - ///

    The name of the algorithm.

    - pub algorithm_name: &'a std::option::Option, - ///

    A description of the algorithm.

    - pub algorithm_description: &'a std::option::Option, - ///

    Specifies details about training jobs run by this algorithm, including the - /// following:

    - ///
      - ///
    • - ///

      The Amazon ECR path of the container and the version digest of the - /// algorithm.

      - ///
    • - ///
    • - ///

      The hyperparameters that the algorithm supports.

      - ///
    • - ///
    • - ///

      The instance types that the algorithm supports for training.

      - ///
    • - ///
    • - ///

      Whether the algorithm supports distributed training.

      - ///
    • - ///
    • - ///

      The metrics that the algorithm emits to Amazon CloudWatch.

      - ///
    • - ///
    • - ///

      Which metrics that the algorithm emits can be used as the objective metric for - /// hyperparameter tuning jobs.

      - ///
    • - ///
    • - ///

      The input channels that the algorithm supports for training data. For example, - /// an algorithm might support train, validation, and - /// test channels.

      - ///
    • - ///
    - pub training_specification: &'a std::option::Option, - ///

    Specifies details about inference jobs that the algorithm runs, including the - /// following:

    - ///
      - ///
    • - ///

      The Amazon ECR paths of containers that contain the inference code and model - /// artifacts.

      - ///
    • - ///
    • - ///

      The instance types that the algorithm supports for transform jobs and - /// real-time endpoints used for inference.

      - ///
    • - ///
    • - ///

      The input and output content formats that the algorithm supports for - /// inference.

      - ///
    • - ///
    - pub inference_specification: &'a std::option::Option, - ///

    Specifies configurations for one or more training jobs and that Amazon SageMaker runs to test the - /// algorithm's training code and, optionally, one or more batch transform jobs that Amazon SageMaker - /// runs to test the algorithm's inference code.

    - pub validation_specification: - &'a std::option::Option, - ///

    Whether to certify the algorithm so that it can be listed in AWS Marketplace.

    - pub certify_for_marketplace: &'a bool, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateAlgorithmInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAlgorithmInputBody"); - formatter.field("algorithm_name", &self.algorithm_name); - formatter.field("algorithm_description", &self.algorithm_description); - formatter.field("training_specification", &self.training_specification); - formatter.field("inference_specification", &self.inference_specification); - formatter.field("validation_specification", &self.validation_specification); - formatter.field("certify_for_marketplace", &self.certify_for_marketplace); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAppInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name.

    - pub user_profile_name: &'a std::option::Option, - ///

    The type of app. Supported apps are JupyterServer and - /// KernelGateway. TensorBoard is not supported.

    - pub app_type: &'a std::option::Option, - ///

    The name of the app.

    - pub app_name: &'a std::option::Option, - ///

    Each tag consists of a key and an optional value. - /// Tag keys must be unique per resource.

    - pub tags: &'a std::option::Option>, - ///

    The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

    - pub resource_spec: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAppInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAppInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("app_type", &self.app_type); - formatter.field("app_name", &self.app_name); - formatter.field("tags", &self.tags); - formatter.field("resource_spec", &self.resource_spec); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAppImageConfigInputBody<'a> { - ///

    The name of the AppImageConfig. Must be unique to your account.

    - pub app_image_config_name: &'a std::option::Option, - ///

    A list of tags to apply to the AppImageConfig.

    - pub tags: &'a std::option::Option>, - ///

    The KernelGatewayImageConfig.

    - pub kernel_gateway_image_config: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAppImageConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAppImageConfigInputBody"); - formatter.field("app_image_config_name", &self.app_image_config_name); - formatter.field("tags", &self.tags); - formatter.field( - "kernel_gateway_image_config", - &self.kernel_gateway_image_config, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateArtifactInputBody<'a> { - ///

    The name of the artifact. Must be unique to your account in an AWS Region.

    - pub artifact_name: &'a std::option::Option, - ///

    The ID, ID type, and URI of the source.

    - pub source: &'a std::option::Option, - ///

    The artifact type.

    - pub artifact_type: &'a std::option::Option, - ///

    A list of properties to add to the artifact.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - pub metadata_properties: &'a std::option::Option, - ///

    A list of tags to apply to the artifact.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateArtifactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateArtifactInputBody"); - formatter.field("artifact_name", &self.artifact_name); - formatter.field("source", &self.source); - formatter.field("artifact_type", &self.artifact_type); - formatter.field("properties", &self.properties); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAutoMLJobInputBody<'a> { - ///

    Identifies an Autopilot job. The name must be unique to your account and is - /// case-insensitive.

    - pub auto_ml_job_name: &'a std::option::Option, - ///

    An array of channel objects that describes the input data and its location. Each channel - /// is a named input source. Similar to InputDataConfig supported by . Format(s) supported: CSV. Minimum - /// of 500 rows.

    - pub input_data_config: &'a std::option::Option>, - ///

    Provides information about encryption and the Amazon S3 output path needed to store - /// artifacts from an AutoML job. Format(s) supported: CSV.

    - pub output_data_config: &'a std::option::Option, - ///

    Defines the type of supervised learning available for the candidates. Options include: - /// BinaryClassification, MulticlassClassification, and - /// Regression. For more information, see - /// Amazon SageMaker Autopilot problem types and algorithm support.

    - pub problem_type: &'a std::option::Option, - ///

    Defines the objective metric used to measure the predictive quality of an AutoML job. - /// You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to - /// minimize or maximize it.

    - pub auto_ml_job_objective: &'a std::option::Option, - ///

    Contains CompletionCriteria and SecurityConfig settings for - /// the AutoML job.

    - pub auto_ml_job_config: &'a std::option::Option, - ///

    The ARN of the role that is used to access the data.

    - pub role_arn: &'a std::option::Option, - ///

    Generates possible candidates without training the models. A candidate is a combination - /// of data preprocessors, algorithms, and algorithm parameter settings.

    - pub generate_candidate_definitions_only: &'a bool, - ///

    Each tag consists of a key and an optional value. Tag keys must be unique per - /// resource.

    - pub tags: &'a std::option::Option>, - ///

    Specifies how to generate the endpoint name for an automatic one-click Autopilot model - /// deployment.

    - pub model_deploy_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateAutoMLJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAutoMLJobInputBody"); - formatter.field("auto_ml_job_name", &self.auto_ml_job_name); - formatter.field("input_data_config", &self.input_data_config); - formatter.field("output_data_config", &self.output_data_config); - formatter.field("problem_type", &self.problem_type); - formatter.field("auto_ml_job_objective", &self.auto_ml_job_objective); - formatter.field("auto_ml_job_config", &self.auto_ml_job_config); - formatter.field("role_arn", &self.role_arn); - formatter.field( - "generate_candidate_definitions_only", - &self.generate_candidate_definitions_only, - ); - formatter.field("tags", &self.tags); - formatter.field("model_deploy_config", &self.model_deploy_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCodeRepositoryInputBody<'a> { - ///

    The name of the Git repository. The name must have 1 to 63 characters. Valid - /// characters are a-z, A-Z, 0-9, and - (hyphen).

    - pub code_repository_name: &'a std::option::Option, - ///

    Specifies details about the repository, including the URL where the repository is - /// located, the default branch, and credentials to use to access the repository.

    - pub git_config: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateCodeRepositoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCodeRepositoryInputBody"); - formatter.field("code_repository_name", &self.code_repository_name); - formatter.field("git_config", &self.git_config); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCompilationJobInputBody<'a> { - ///

    A name for the model compilation job. The name must be unique within the AWS Region - /// and within your AWS account.

    - pub compilation_job_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on - /// your behalf.

    - ///

    During model compilation, Amazon SageMaker needs your permission to:

    - ///
      - ///
    • - ///

      Read input data from an S3 bucket

      - ///
    • - ///
    • - ///

      Write model artifacts to an S3 bucket

      - ///
    • - ///
    • - ///

      Write logs to Amazon CloudWatch Logs

      - ///
    • - ///
    • - ///

      Publish metrics to Amazon CloudWatch

      - ///
    • - ///
    - ///

    You grant permissions for all of these tasks to an IAM role. To pass this role to - /// Amazon SageMaker, the caller of this API must have the iam:PassRole permission. For - /// more information, see Amazon SageMaker - /// Roles. - ///

    - pub role_arn: &'a std::option::Option, - ///

    Provides information about the location of input model artifacts, the name and shape - /// of the expected data inputs, and the framework in which the model was trained.

    - pub input_config: &'a std::option::Option, - ///

    Provides information about the output location for the compiled model and the target - /// device the model runs on.

    - pub output_config: &'a std::option::Option, - ///

    Specifies a limit to how long a model compilation job can run. When the job reaches - /// the time limit, Amazon SageMaker ends the compilation job. Use this API to cap model training - /// costs.

    - pub stopping_condition: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateCompilationJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCompilationJobInputBody"); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.field("role_arn", &self.role_arn); - formatter.field("input_config", &self.input_config); - formatter.field("output_config", &self.output_config); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateContextInputBody<'a> { - ///

    The name of the context. Must be unique to your account in an AWS Region.

    - pub context_name: &'a std::option::Option, - ///

    The source type, ID, and URI.

    - pub source: &'a std::option::Option, - ///

    The context type.

    - pub context_type: &'a std::option::Option, - ///

    The description of the context.

    - pub description: &'a std::option::Option, - ///

    A list of properties to add to the context.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of tags to apply to the context.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateContextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateContextInputBody"); - formatter.field("context_name", &self.context_name); - formatter.field("source", &self.source); - formatter.field("context_type", &self.context_type); - formatter.field("description", &self.description); - formatter.field("properties", &self.properties); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDataQualityJobDefinitionInputBody<'a> { - ///

    The name for the monitoring job definition.

    - pub job_definition_name: &'a std::option::Option, - ///

    Configures the constraints and baselines for the monitoring job.

    - pub data_quality_baseline_config: - &'a std::option::Option, - ///

    Specifies the container that runs the monitoring job.

    - pub data_quality_app_specification: - &'a std::option::Option, - ///

    A list of inputs for the monitoring job. Currently endpoints are supported as monitoring - /// inputs.

    - pub data_quality_job_input: &'a std::option::Option, - ///

    The output configuration for monitoring jobs.

    - pub data_quality_job_output_config: - &'a std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - pub job_resources: &'a std::option::Option, - ///

    Specifies networking configuration for the monitoring job.

    - pub network_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - pub stopping_condition: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateDataQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDataQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field( - "data_quality_baseline_config", - &self.data_quality_baseline_config, - ); - formatter.field( - "data_quality_app_specification", - &self.data_quality_app_specification, - ); - formatter.field("data_quality_job_input", &self.data_quality_job_input); - formatter.field( - "data_quality_job_output_config", - &self.data_quality_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDeviceFleetInputBody<'a> { - ///

    The name of the fleet that the device belongs to.

    - pub device_fleet_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).

    - pub role_arn: &'a std::option::Option, - ///

    A description of the fleet.

    - pub description: &'a std::option::Option, - ///

    The output configuration for storing sample data collected by the fleet.

    - pub output_config: &'a std::option::Option, - ///

    Creates tags for the specified fleet.

    - pub tags: &'a std::option::Option>, - ///

    Whether to create an AWS IoT Role Alias during device fleet creation. - /// The name of the role alias generated will match this pattern: - /// "SageMakerEdge-{DeviceFleetName}".

    - ///

    For example, if your device fleet is called "demo-fleet", the name of - /// the role alias will be "SageMakerEdge-demo-fleet".

    - pub enable_iot_role_alias: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDeviceFleetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDeviceFleetInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("role_arn", &self.role_arn); - formatter.field("description", &self.description); - formatter.field("output_config", &self.output_config); - formatter.field("tags", &self.tags); - formatter.field("enable_iot_role_alias", &self.enable_iot_role_alias); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDomainInputBody<'a> { - ///

    A name for the domain.

    - pub domain_name: &'a std::option::Option, - ///

    The mode of authentication that members use to access the domain.

    - pub auth_mode: &'a std::option::Option, - ///

    The default settings to use to create a user profile when UserSettings isn't specified - /// in the call to the CreateUserProfile API.

    - ///

    - /// SecurityGroups is aggregated when specified in both calls. For all other - /// settings in UserSettings, the values specified in CreateUserProfile - /// take precedence over those specified in CreateDomain.

    - pub default_user_settings: &'a std::option::Option, - ///

    The VPC subnets that Studio uses for communication.

    - pub subnet_ids: &'a std::option::Option>, - ///

    The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.

    - pub vpc_id: &'a std::option::Option, - ///

    Tags to associated with the Domain. Each tag consists of a key and an optional value. - /// Tag keys must be unique per resource. Tags are searchable using the - /// Search API.

    - ///

    Tags that you specify for the Domain are also added to all Apps that the - /// Domain launches.

    - pub tags: &'a std::option::Option>, - ///

    Specifies the VPC used for non-EFS traffic. The default value is - /// PublicInternetOnly.

    - ///
      - ///
    • - ///

      - /// PublicInternetOnly - Non-EFS traffic is through a VPC managed by - /// Amazon SageMaker, which allows direct internet access

      - ///
    • - ///
    • - ///

      - /// VpcOnly - All Studio traffic is through the specified VPC and subnets

      - ///
    • - ///
    - pub app_network_access_type: &'a std::option::Option, - ///

    This member is deprecated and replaced with KmsKeyId.

    - pub home_efs_file_system_kms_key_id: &'a std::option::Option, - ///

    SageMaker uses AWS KMS to encrypt the EFS volume attached to the domain with an AWS managed - /// customer master key (CMK) by default. For more control, specify a customer managed CMK.

    - pub kms_key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateDomainInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDomainInputBody"); - formatter.field("domain_name", &self.domain_name); - formatter.field("auth_mode", &self.auth_mode); - formatter.field("default_user_settings", &self.default_user_settings); - formatter.field("subnet_ids", &self.subnet_ids); - formatter.field("vpc_id", &self.vpc_id); - formatter.field("tags", &self.tags); - formatter.field("app_network_access_type", &self.app_network_access_type); - formatter.field( - "home_efs_file_system_kms_key_id", - &self.home_efs_file_system_kms_key_id, - ); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEdgePackagingJobInputBody<'a> { - ///

    The name of the edge packaging job.

    - pub edge_packaging_job_name: &'a std::option::Option, - ///

    The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging.

    - pub compilation_job_name: &'a std::option::Option, - ///

    The name of the model.

    - pub model_name: &'a std::option::Option, - ///

    The version of the model.

    - pub model_version: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and to contact SageMaker Neo.

    - pub role_arn: &'a std::option::Option, - ///

    Provides information about the output location for the packaged model.

    - pub output_config: &'a std::option::Option, - ///

    The CMK to use when encrypting the EBS volume the edge packaging job runs on.

    - pub resource_key: &'a std::option::Option, - ///

    Creates tags for the packaging job.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateEdgePackagingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEdgePackagingJobInputBody"); - formatter.field("edge_packaging_job_name", &self.edge_packaging_job_name); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.field("model_name", &self.model_name); - formatter.field("model_version", &self.model_version); - formatter.field("role_arn", &self.role_arn); - formatter.field("output_config", &self.output_config); - formatter.field("resource_key", &self.resource_key); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEndpointInputBody<'a> { - ///

    The name of the endpoint.The name must be unique within an AWS Region in your AWS - /// account. The name is case-insensitive in CreateEndpoint, but the case is - /// preserved and must be matched in .

    - pub endpoint_name: &'a std::option::Option, - ///

    The name of an endpoint configuration. For more information, see CreateEndpointConfig.

    - pub endpoint_config_name: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEndpointInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEndpointConfigInputBody<'a> { - ///

    The name of the endpoint configuration. You specify this name in a CreateEndpoint request.

    - pub endpoint_config_name: &'a std::option::Option, - ///

    An list of ProductionVariant objects, one for each model that you want - /// to host at this endpoint.

    - pub production_variants: - &'a std::option::Option>, - ///

    - pub data_capture_config: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, - ///

    The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on - /// the storage volume attached to the ML compute instance that hosts the endpoint.

    - ///

    The KmsKeyId can be any of the following formats:

    - ///
      - ///
    • - ///

      Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Key ARN: - /// arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - ///

      - ///
    • - ///
    • - ///

      Alias name: alias/ExampleAlias - ///

      - ///
    • - ///
    • - ///

      Alias name ARN: - /// arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias - ///

      - ///
    • - ///
    - ///

    The KMS key policy must grant permission to the IAM role that you specify in your - /// CreateEndpoint, UpdateEndpoint requests. For more - /// information, refer to the AWS Key Management Service section Using Key - /// Policies in AWS KMS - ///

    - /// - ///

    Certain Nitro-based instances include local storage, dependent on the instance - /// type. Local storage volumes are encrypted using a hardware module on the instance. - /// You can't request a KmsKeyId when using an instance type with local - /// storage. If any of the models that you specify in the - /// ProductionVariants parameter use nitro-based instances with local - /// storage, do not specify a value for the KmsKeyId parameter. If you - /// specify a value for KmsKeyId when using any nitro-based instances with - /// local storage, the call to CreateEndpointConfig fails.

    - ///

    For a list of instance types that support local instance storage, see Instance Store Volumes.

    - ///

    For more information about local instance storage encryption, see SSD - /// Instance Store Volumes.

    - ///
    - pub kms_key_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateEndpointConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEndpointConfigInputBody"); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.field("production_variants", &self.production_variants); - formatter.field("data_capture_config", &self.data_capture_config); - formatter.field("tags", &self.tags); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateExperimentInputBody<'a> { - ///

    The name of the experiment. The name must be unique in your AWS account and is not - /// case-sensitive.

    - pub experiment_name: &'a std::option::Option, - ///

    The name of the experiment as displayed. The name doesn't need to be unique. If you don't - /// specify DisplayName, the value in ExperimentName is - /// displayed.

    - pub display_name: &'a std::option::Option, - ///

    The description of the experiment.

    - pub description: &'a std::option::Option, - ///

    A list of tags to associate with the experiment. You can use Search API - /// to search on the tags.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateExperimentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateExperimentInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("display_name", &self.display_name); - formatter.field("description", &self.description); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFeatureGroupInputBody<'a> { - ///

    The name of the FeatureGroup. The name must be unique within an AWS Region - /// in an AWS account. The name:

    - ///
      - ///
    • - ///

      Must start and end with an alphanumeric character.

      - ///
    • - ///
    • - ///

      Can only contain alphanumeric character and hyphens. Spaces are not allowed. - ///

      - ///
    • - ///
    - pub feature_group_name: &'a std::option::Option, - ///

    The name of the Feature whose value uniquely identifies a - /// Record defined in the FeatureStore. Only the latest record per - /// identifier value will be stored in the OnlineStore. - /// RecordIdentifierFeatureName must be one of feature definitions' - /// names.

    - ///

    You use the RecordIdentifierFeatureName to access data in a - /// FeatureStore.

    - ///

    This name:

    - ///
      - ///
    • - ///

      Must start and end with an alphanumeric character.

      - ///
    • - ///
    • - ///

      Can only contains alphanumeric characters, hyphens, underscores. Spaces are not - /// allowed.

      - ///
    • - ///
    - pub record_identifier_feature_name: &'a std::option::Option, - ///

    The name of the feature that stores the EventTime of a Record - /// in a FeatureGroup.

    - ///

    An EventTime is a point in time when a new event occurs that corresponds to - /// the creation or update of a Record in a FeatureGroup. All - /// Records in the FeatureGroup must have a corresponding - /// EventTime.

    - ///

    An EventTime can be a String or Fractional.

    - ///
      - ///
    • - ///

      - /// Fractional: EventTime feature values must be a Unix - /// timestamp in seconds.

      - ///
    • - ///
    • - ///

      - /// String: EventTime feature values must be an ISO-8601 - /// string in the format. The following formats are supported - /// yyyy-MM-dd'T'HH:mm:ssZ and yyyy-MM-dd'T'HH:mm:ss.SSSZ - /// where yyyy, MM, and dd represent the year, - /// month, and day respectively and HH, mm, ss, - /// and if applicable, SSS represent the hour, month, second and - /// milliseconds respsectively. 'T' and Z are constants.

      - ///
    • - ///
    - pub event_time_feature_name: &'a std::option::Option, - ///

    A list of Feature names and types. Name and Type - /// is compulsory per Feature.

    - ///

    Valid feature FeatureTypes are Integral, - /// Fractional and String.

    - ///

    - /// FeatureNames cannot be any of the following: is_deleted, - /// write_time, api_invocation_time - ///

    - ///

    You can create up to 2,500 FeatureDefinitions per - /// FeatureGroup.

    - pub feature_definitions: - &'a std::option::Option>, - ///

    You can turn the OnlineStore on or off by specifying True for - /// the EnableOnlineStore flag in OnlineStoreConfig; the default - /// value is False.

    - ///

    You can also include an AWS KMS key ID (KMSKeyId) for at-rest encryption of - /// the OnlineStore.

    - pub online_store_config: &'a std::option::Option, - ///

    Use this to configure an OfflineFeatureStore. This parameter allows you to - /// specify:

    - ///
      - ///
    • - ///

      The Amazon Simple Storage Service (Amazon S3) location of an - /// OfflineStore.

      - ///
    • - ///
    • - ///

      A configuration for an AWS Glue or AWS Hive data cataolgue.

      - ///
    • - ///
    • - ///

      An KMS encryption key to encrypt the Amazon S3 location used for - /// OfflineStore.

      - ///
    • - ///
    - ///

    To learn more about this parameter, see OfflineStoreConfig.

    - pub offline_store_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the - /// OfflineStore if an OfflineStoreConfig is provided.

    - pub role_arn: &'a std::option::Option, - ///

    A free-form description of a FeatureGroup.

    - pub description: &'a std::option::Option, - ///

    Tags used to identify Features in each FeatureGroup.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateFeatureGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFeatureGroupInputBody"); - formatter.field("feature_group_name", &self.feature_group_name); - formatter.field( - "record_identifier_feature_name", - &self.record_identifier_feature_name, - ); - formatter.field("event_time_feature_name", &self.event_time_feature_name); - formatter.field("feature_definitions", &self.feature_definitions); - formatter.field("online_store_config", &self.online_store_config); - formatter.field("offline_store_config", &self.offline_store_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("description", &self.description); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFlowDefinitionInputBody<'a> { - ///

    The name of your flow definition.

    - pub flow_definition_name: &'a std::option::Option, - ///

    Container for configuring the source of human task requests. Use to specify if - /// Amazon Rekognition or Amazon Textract is used as an integration source.

    - pub human_loop_request_source: &'a std::option::Option, - ///

    An object containing information about the events that trigger a human workflow.

    - pub human_loop_activation_config: - &'a std::option::Option, - ///

    An object containing information about the tasks the human reviewers will perform.

    - pub human_loop_config: &'a std::option::Option, - ///

    An object containing information about where the human review results will be uploaded.

    - pub output_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example, arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298.

    - pub role_arn: &'a std::option::Option, - ///

    An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag consists of a key and a value, both of which you define.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateFlowDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFlowDefinitionInputBody"); - formatter.field("flow_definition_name", &self.flow_definition_name); - formatter.field("human_loop_request_source", &self.human_loop_request_source); - formatter.field( - "human_loop_activation_config", - &self.human_loop_activation_config, - ); - formatter.field("human_loop_config", &self.human_loop_config); - formatter.field("output_config", &self.output_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHumanTaskUiInputBody<'a> { - ///

    The name of the user interface you are creating.

    - pub human_task_ui_name: &'a std::option::Option, - ///

    The Liquid template for the worker user interface.

    - pub ui_template: &'a std::option::Option, - ///

    An array of key-value pairs that contain metadata to help you categorize and organize a human review workflow user interface. Each tag consists of a key and a value, both of which you define.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateHumanTaskUiInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHumanTaskUiInputBody"); - formatter.field("human_task_ui_name", &self.human_task_ui_name); - formatter.field("ui_template", &self.ui_template); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHyperParameterTuningJobInputBody<'a> { - ///

    The name of the tuning job. This name is the prefix for the names of all training jobs - /// that this tuning job launches. The name must be unique within the same AWS account and - /// AWS Region. The name must have 1 to 32 characters. Valid characters are a-z, A-Z, 0-9, - /// and : + = @ _ % - (hyphen). The name is not case sensitive.

    - pub hyper_parameter_tuning_job_name: &'a std::option::Option, - ///

    The HyperParameterTuningJobConfig object that describes the tuning - /// job, including the search strategy, the objective metric used to evaluate training jobs, - /// ranges of parameters to search, and resource limits for the tuning job. For more - /// information, see How - /// Hyperparameter Tuning Works.

    - pub hyper_parameter_tuning_job_config: - &'a std::option::Option, - ///

    The HyperParameterTrainingJobDefinition object that describes the - /// training jobs that this tuning job launches, - /// including - /// static hyperparameters, input data configuration, output data configuration, resource - /// configuration, and stopping condition.

    - pub training_job_definition: - &'a std::option::Option, - ///

    A list of the HyperParameterTrainingJobDefinition objects launched - /// for this tuning job.

    - pub training_job_definitions: - &'a std::option::Option>, - ///

    Specifies the configuration for starting the hyperparameter tuning job using one or - /// more previous tuning jobs as a starting point. The results of previous tuning jobs are - /// used to inform which combinations of hyperparameters to search over in the new tuning - /// job.

    - ///

    All training jobs launched by the new hyperparameter tuning job are evaluated by using - /// the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM as the - /// WarmStartType value for the warm start configuration, the training job - /// that performs the best in the new tuning job is compared to the best training jobs from - /// the parent tuning jobs. From these, the training job that performs the best as measured - /// by the objective metric is returned as the overall best training job.

    - /// - ///

    All training jobs launched by parent hyperparameter tuning jobs and the new - /// hyperparameter tuning jobs count against the limit of training jobs for the tuning - /// job.

    - ///
    - pub warm_start_config: - &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - ///

    Tags that you specify for the tuning job are also added to all training jobs that the - /// tuning job launches.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateHyperParameterTuningJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHyperParameterTuningJobInputBody"); - formatter.field( - "hyper_parameter_tuning_job_name", - &self.hyper_parameter_tuning_job_name, - ); - formatter.field( - "hyper_parameter_tuning_job_config", - &self.hyper_parameter_tuning_job_config, - ); - formatter.field("training_job_definition", &self.training_job_definition); - formatter.field("training_job_definitions", &self.training_job_definitions); - formatter.field("warm_start_config", &self.warm_start_config); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImageInputBody<'a> { - ///

    The description of the image.

    - pub description: &'a std::option::Option, - ///

    The display name of the image. If not provided, ImageName is displayed.

    - pub display_name: &'a std::option::Option, - ///

    The name of the image. Must be unique to your account.

    - pub image_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    A list of tags to apply to the image.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateImageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImageInputBody"); - formatter.field("description", &self.description); - formatter.field("display_name", &self.display_name); - formatter.field("image_name", &self.image_name); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImageVersionInputBody<'a> { - ///

    The registry path of the container image to use as the starting point for this - /// version. The path is an Amazon Container Registry (ECR) URI in the following format:

    - ///

    - /// .dkr.ecr..amazonaws.com/ - ///

    - pub base_image: &'a std::option::Option, - ///

    A unique ID. If not specified, the AWS CLI and AWS SDKs, such as the SDK for Python - /// (Boto3), add a unique value to the call.

    - pub client_token: &'a std::option::Option, - ///

    The ImageName of the Image to create a version of.

    - pub image_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateImageVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImageVersionInputBody"); - formatter.field("base_image", &self.base_image); - formatter.field("client_token", &self.client_token); - formatter.field("image_name", &self.image_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLabelingJobInputBody<'a> { - ///

    The name of the labeling job. This name is used to identify the job in a list of - /// labeling jobs. Labeling job names must be unique within an AWS account and region. - /// LabelingJobName is not case sensitive. For example, Example-job and - /// example-job are considered the same labeling job name by Ground Truth.

    - pub labeling_job_name: &'a std::option::Option, - ///

    The attribute name to use for the label in the output manifest file. This is the key - /// for the key/value pair formed with the label that a worker assigns to the object. The - /// LabelAttributeName must meet the following requirements.

    - ///
      - ///
    • - ///

      The name can't end with "-metadata".

      - ///
    • - ///
    • - ///

      If you are using one of the following built-in task types, - /// the attribute name must end with "-ref". If the task type - /// you are using is not listed below, the attribute name must - /// not end with "-ref".

      - ///
        - ///
      • - ///

        Image semantic segmentation (SemanticSegmentation), and - /// adjustment (AdjustmentSemanticSegmentation) and - /// verification (VerificationSemanticSegmentation) labeling - /// jobs for this task type.

        - ///
      • - ///
      • - ///

        Video frame object detection (VideoObjectDetection), and - /// adjustment and verification - /// (AdjustmentVideoObjectDetection) labeling jobs for this - /// task type.

        - ///
      • - ///
      • - ///

        Video frame object tracking (VideoObjectTracking), and - /// adjustment and verification (AdjustmentVideoObjectTracking) - /// labeling jobs for this task type.

        - ///
      • - ///
      • - ///

        3D point cloud semantic segmentation - /// (3DPointCloudSemanticSegmentation), and adjustment and - /// verification (Adjustment3DPointCloudSemanticSegmentation) - /// labeling jobs for this task type.

        - ///
      • - ///
      • - ///

        3D point cloud object tracking - /// (3DPointCloudObjectTracking), and adjustment and - /// verification (Adjustment3DPointCloudObjectTracking) - /// labeling jobs for this task type.

        - ///
      • - ///
      - ///
    • - ///
    - ///

    - /// - ///

    If you are creating an adjustment or verification labeling job, you must use a - /// different - /// LabelAttributeName than the one used in the original labeling job. The - /// original labeling job is the Ground Truth labeling job that produced the labels that you - /// want verified or adjusted. To learn more about adjustment and verification labeling - /// jobs, see Verify and Adjust - /// Labels.

    - ///
    - pub label_attribute_name: &'a std::option::Option, - ///

    Input data for the labeling job, such as the Amazon S3 location of the data objects and the - /// location of the manifest file that describes the data objects.

    - ///

    You must specify at least one of the following: S3DataSource or - /// SnsDataSource.

    - ///
      - ///
    • - ///

      Use SnsDataSource to specify an SNS input topic for a streaming - /// labeling job. If you do not specify and SNS input topic ARN, Ground Truth will - /// create a one-time labeling job that stops after all data objects in the input - /// manifest file have been labeled.

      - ///
    • - ///
    • - ///

      Use S3DataSource to specify an input manifest file for both - /// streaming and one-time labeling jobs. Adding an S3DataSource is - /// optional if you use SnsDataSource to create a streaming labeling - /// job.

      - ///
    • - ///
    - ///

    If you use the Amazon Mechanical Turk workforce, your input data should not include - /// confidential information, personal information or protected health information. Use - /// ContentClassifiers to specify that your data is free of personally - /// identifiable information and adult content.

    - pub input_config: &'a std::option::Option, - ///

    The location of the output data and the AWS Key Management Service key ID for the key used to encrypt - /// the output data, if any.

    - pub output_config: &'a std::option::Option, - ///

    The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your behalf - /// during data labeling. You must grant this role the necessary permissions so that Amazon SageMaker - /// can successfully complete data labeling.

    - pub role_arn: &'a std::option::Option, - ///

    The S3 URI of the file, referred to as a label category configuration - /// file, that defines the categories used to label the data objects.

    - ///

    For 3D point cloud and video frame task types, you can add label category attributes - /// and frame attributes to your label category configuration file. To learn how, see Create a - /// Labeling Category Configuration File for 3D Point Cloud Labeling Jobs.

    - ///

    For all other built-in task types and custom - /// tasks, your label category configuration file must be a JSON file in the - /// following format. Identify the labels you want to use by replacing label_1, - /// label_2,...,label_n with your label - /// categories.

    - ///

    - /// { - ///

    - ///

    - /// "document-version": "2018-11-28", - ///

    - ///

    - /// "labels": [{"label": "label_1"},{"label": "label_2"},...{"label": - /// "label_n"}] - ///

    - ///

    - /// } - ///

    - ///

    Note the following about the label category configuration file:

    - ///
      - ///
    • - ///

      For image classification and text classification (single and multi-label) you - /// must specify at least two label categories. For all other task types, the - /// minimum number of label categories required is one.

      - ///
    • - ///
    • - ///

      Each label category must be unique, you cannot specify duplicate label - /// categories.

      - ///
    • - ///
    • - ///

      If you create a 3D point cloud or video frame adjustment or verification - /// labeling job, you must include auditLabelAttributeName in the label - /// category configuration. Use this parameter to enter the - /// LabelAttributeName - /// of the labeling job you want to - /// adjust or verify annotations of.

      - ///
    • - ///
    - pub label_category_config_s3_uri: &'a std::option::Option, - ///

    A set of conditions for stopping the labeling job. If any of the conditions are met, - /// the job is automatically stopped. You can use these conditions to control the cost of - /// data labeling.

    - pub stopping_conditions: &'a std::option::Option, - ///

    Configures the information required to perform automated data labeling.

    - pub labeling_job_algorithms_config: - &'a std::option::Option, - ///

    Configures the labeling task and how it is presented to workers; including, but not limited to price, keywords, and batch size (task count).

    - pub human_task_config: &'a std::option::Option, - ///

    An array of key/value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateLabelingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLabelingJobInputBody"); - formatter.field("labeling_job_name", &self.labeling_job_name); - formatter.field("label_attribute_name", &self.label_attribute_name); - formatter.field("input_config", &self.input_config); - formatter.field("output_config", &self.output_config); - formatter.field("role_arn", &self.role_arn); - formatter.field( - "label_category_config_s3_uri", - &self.label_category_config_s3_uri, - ); - formatter.field("stopping_conditions", &self.stopping_conditions); - formatter.field( - "labeling_job_algorithms_config", - &self.labeling_job_algorithms_config, - ); - formatter.field("human_task_config", &self.human_task_config); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelInputBody<'a> { - ///

    The name of the new model.

    - pub model_name: &'a std::option::Option, - ///

    The location of the primary docker image containing inference code, associated - /// artifacts, and custom environment map that the inference code uses when the model is - /// deployed for predictions.

    - pub primary_container: &'a std::option::Option, - ///

    Specifies the containers in the inference pipeline.

    - pub containers: &'a std::option::Option>, - ///

    Specifies details of how containers in a multi-container endpoint are called.

    - pub inference_execution_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can assume to access model - /// artifacts and docker image for deployment on ML compute instances or for batch transform - /// jobs. Deploying on ML compute instances is part of model hosting. For more information, - /// see Amazon SageMaker - /// Roles.

    - /// - ///

    To be able to pass this role to Amazon SageMaker, the caller of this API must have the - /// iam:PassRole permission.

    - ///
    - pub execution_role_arn: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, - ///

    A VpcConfig object that specifies the VPC that you want your model - /// to connect to. Control access to and from your model container by configuring the VPC. - /// VpcConfig is used in hosting services and in batch transform. For more - /// information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch - /// Transform Jobs by Using an Amazon Virtual Private Cloud.

    - pub vpc_config: &'a std::option::Option, - ///

    Isolates the model container. No inbound or outbound network calls can be made to or - /// from the model container.

    - pub enable_network_isolation: &'a bool, -} -impl<'a> std::fmt::Debug for CreateModelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelInputBody"); - formatter.field("model_name", &self.model_name); - formatter.field("primary_container", &self.primary_container); - formatter.field("containers", &self.containers); - formatter.field( - "inference_execution_config", - &self.inference_execution_config, - ); - formatter.field("execution_role_arn", &self.execution_role_arn); - formatter.field("tags", &self.tags); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("enable_network_isolation", &self.enable_network_isolation); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelBiasJobDefinitionInputBody<'a> { - ///

    The name of the bias job definition. The name must be unique within an AWS Region in the - /// AWS account.

    - pub job_definition_name: &'a std::option::Option, - ///

    The baseline configuration for a model bias job.

    - pub model_bias_baseline_config: &'a std::option::Option, - ///

    Configures the model bias job to run a specified Docker container image.

    - pub model_bias_app_specification: - &'a std::option::Option, - ///

    Inputs for the model bias job.

    - pub model_bias_job_input: &'a std::option::Option, - ///

    The output configuration for monitoring jobs.

    - pub model_bias_job_output_config: &'a std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - pub job_resources: &'a std::option::Option, - ///

    Networking options for a model bias job.

    - pub network_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - pub stopping_condition: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateModelBiasJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelBiasJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field( - "model_bias_baseline_config", - &self.model_bias_baseline_config, - ); - formatter.field( - "model_bias_app_specification", - &self.model_bias_app_specification, - ); - formatter.field("model_bias_job_input", &self.model_bias_job_input); - formatter.field( - "model_bias_job_output_config", - &self.model_bias_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelExplainabilityJobDefinitionInputBody<'a> { - ///

    The name of the model explainability job definition. The name must be unique within an - /// AWS Region in the AWS account.

    - pub job_definition_name: &'a std::option::Option, - ///

    The baseline configuration for a model explainability job.

    - pub model_explainability_baseline_config: - &'a std::option::Option, - ///

    Configures the model explainability job to run a specified Docker container - /// image.

    - pub model_explainability_app_specification: - &'a std::option::Option, - ///

    Inputs for the model explainability job.

    - pub model_explainability_job_input: - &'a std::option::Option, - ///

    The output configuration for monitoring jobs.

    - pub model_explainability_job_output_config: - &'a std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - pub job_resources: &'a std::option::Option, - ///

    Networking options for a model explainability job.

    - pub network_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - pub stopping_condition: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateModelExplainabilityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelExplainabilityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field( - "model_explainability_baseline_config", - &self.model_explainability_baseline_config, - ); - formatter.field( - "model_explainability_app_specification", - &self.model_explainability_app_specification, - ); - formatter.field( - "model_explainability_job_input", - &self.model_explainability_job_input, - ); - formatter.field( - "model_explainability_job_output_config", - &self.model_explainability_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelPackageInputBody<'a> { - ///

    The name of the model package. The name must have 1 to 63 characters. Valid characters - /// are a-z, A-Z, 0-9, and - (hyphen).

    - ///

    This parameter is required for unversioned models. It is not applicable to versioned - /// models.

    - pub model_package_name: &'a std::option::Option, - ///

    The name of the model group that this model version belongs to.

    - ///

    This parameter is required for versioned models, and does not apply to unversioned - /// models.

    - pub model_package_group_name: &'a std::option::Option, - ///

    A description of the model package.

    - pub model_package_description: &'a std::option::Option, - ///

    Specifies details about inference jobs that can be run with models based on this model - /// package, including the following:

    - ///
      - ///
    • - ///

      The Amazon ECR paths of containers that contain the inference code and model - /// artifacts.

      - ///
    • - ///
    • - ///

      The instance types that the model package supports for transform jobs and - /// real-time endpoints used for inference.

      - ///
    • - ///
    • - ///

      The input and output content formats that the model package supports for - /// inference.

      - ///
    • - ///
    - pub inference_specification: &'a std::option::Option, - ///

    Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the - /// model package.

    - pub validation_specification: - &'a std::option::Option, - ///

    Details about the algorithm that was used to create the model package.

    - pub source_algorithm_specification: - &'a std::option::Option, - ///

    Whether to certify the model package for listing on AWS Marketplace.

    - ///

    This parameter is optional for unversioned models, and does not apply to versioned - /// models.

    - pub certify_for_marketplace: &'a bool, - ///

    A list of key value pairs associated with the model. For more information, see Tagging AWS - /// resources in the AWS General Reference Guide.

    - pub tags: &'a std::option::Option>, - ///

    Whether the model is approved for deployment.

    - ///

    This parameter is optional for versioned models, and does not apply to unversioned - /// models.

    - ///

    For versioned models, the value of this parameter must be set to Approved - /// to deploy the model.

    - pub model_approval_status: &'a std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - pub metadata_properties: &'a std::option::Option, - ///

    A structure that contains model metrics reports.

    - pub model_metrics: &'a std::option::Option, - ///

    A unique token that guarantees that the call to this API is idempotent.

    - pub client_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateModelPackageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelPackageInputBody"); - formatter.field("model_package_name", &self.model_package_name); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field("model_package_description", &self.model_package_description); - formatter.field("inference_specification", &self.inference_specification); - formatter.field("validation_specification", &self.validation_specification); - formatter.field( - "source_algorithm_specification", - &self.source_algorithm_specification, - ); - formatter.field("certify_for_marketplace", &self.certify_for_marketplace); - formatter.field("tags", &self.tags); - formatter.field("model_approval_status", &self.model_approval_status); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("model_metrics", &self.model_metrics); - formatter.field("client_token", &self.client_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelPackageGroupInputBody<'a> { - ///

    The name of the model group.

    - pub model_package_group_name: &'a std::option::Option, - ///

    A description for the model group.

    - pub model_package_group_description: &'a std::option::Option, - ///

    A list of key value pairs associated with the model group. For more information, see - /// Tagging AWS - /// resources in the AWS General Reference Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateModelPackageGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelPackageGroupInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field( - "model_package_group_description", - &self.model_package_group_description, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelQualityJobDefinitionInputBody<'a> { - ///

    The name of the monitoring job definition.

    - pub job_definition_name: &'a std::option::Option, - ///

    Specifies the constraints and baselines for the monitoring job.

    - pub model_quality_baseline_config: - &'a std::option::Option, - ///

    The container that runs the monitoring job.

    - pub model_quality_app_specification: - &'a std::option::Option, - ///

    A list of the inputs that are monitored. Currently endpoints are supported.

    - pub model_quality_job_input: &'a std::option::Option, - ///

    The output configuration for monitoring jobs.

    - pub model_quality_job_output_config: - &'a std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - pub job_resources: &'a std::option::Option, - ///

    Specifies the network configuration for the monitoring job.

    - pub network_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - pub stopping_condition: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateModelQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field( - "model_quality_baseline_config", - &self.model_quality_baseline_config, - ); - formatter.field( - "model_quality_app_specification", - &self.model_quality_app_specification, - ); - formatter.field("model_quality_job_input", &self.model_quality_job_input); - formatter.field( - "model_quality_job_output_config", - &self.model_quality_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMonitoringScheduleInputBody<'a> { - ///

    The name of the monitoring schedule. The name must be unique within an AWS Region within - /// an AWS account.

    - pub monitoring_schedule_name: &'a std::option::Option, - ///

    The configuration object that specifies the monitoring schedule and defines the - /// monitoring job.

    - pub monitoring_schedule_config: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.field( - "monitoring_schedule_config", - &self.monitoring_schedule_config, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateNotebookInstanceInputBody<'a> { - ///

    The name of the new notebook instance.

    - pub notebook_instance_name: &'a std::option::Option, - ///

    The type of ML compute instance to launch for the notebook instance.

    - pub instance_type: &'a std::option::Option, - ///

    The ID of the subnet in a VPC to which you would like to have a connectivity from - /// your ML compute instance.

    - pub subnet_id: &'a std::option::Option, - ///

    The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be - /// for the same VPC as specified in the subnet.

    - pub security_group_ids: &'a std::option::Option>, - ///

    When you send any requests to AWS resources from the notebook instance, Amazon SageMaker - /// assumes this role to perform tasks on your behalf. You must grant this role necessary - /// permissions so Amazon SageMaker can perform these tasks. The policy must allow the Amazon SageMaker service - /// principal (sagemaker.amazonaws.com) permissions to assume this role. For more - /// information, see Amazon SageMaker Roles.

    - /// - ///

    To be able to pass this role to Amazon SageMaker, the caller of this API must have the - /// iam:PassRole permission.

    - ///
    - pub role_arn: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on - /// the storage volume attached to your notebook instance. The KMS key you provide must be - /// enabled. For information, see Enabling and Disabling - /// Keys in the AWS Key Management Service Developer Guide.

    - pub kms_key_id: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, - ///

    The name of a lifecycle configuration to associate with the notebook instance. For - /// information about lifestyle configurations, see Step 2.1: (Optional) - /// Customize a Notebook Instance.

    - pub lifecycle_config_name: &'a std::option::Option, - ///

    Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this - /// to Disabled this notebook instance is able to access resources only in your - /// VPC, and is not be able to connect to Amazon SageMaker training and endpoint services unless you - /// configure a NAT Gateway in your VPC.

    - ///

    For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value - /// of this parameter to Disabled only if you set a value for the - /// SubnetId parameter.

    - pub direct_internet_access: &'a std::option::Option, - ///

    The size, in GB, of the ML storage volume to attach to the notebook instance. The - /// default value is 5 GB.

    - pub volume_size_in_gb: &'a std::option::Option, - ///

    A list of Elastic Inference (EI) instance types to associate with this notebook - /// instance. Currently, only one instance type can be associated with a notebook instance. - /// For more information, see Using Elastic Inference in Amazon SageMaker.

    - pub accelerator_types: - &'a std::option::Option>, - ///

    A Git repository to associate with the notebook instance as its default code - /// repository. This can be either the name of a Git repository stored as a resource in your - /// account, or the URL of a Git repository in AWS CodeCommit or in any - /// other Git repository. When you open a notebook instance, it opens in the directory that - /// contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker - /// Notebook Instances.

    - pub default_code_repository: &'a std::option::Option, - ///

    An array of up to three Git repositories to associate with the notebook instance. - /// These can be either the names of Git repositories stored as resources in your account, - /// or the URL of Git repositories in AWS CodeCommit or in any - /// other Git repository. These repositories are cloned at the same level as the default - /// repository of your notebook instance. For more information, see Associating Git - /// Repositories with Amazon SageMaker Notebook Instances.

    - pub additional_code_repositories: &'a std::option::Option>, - ///

    Whether root access is enabled or disabled for users of the notebook instance. The - /// default value is Enabled.

    - /// - ///

    Lifecycle configurations need root access to be able to set up a notebook - /// instance. Because of this, lifecycle configurations associated with a notebook - /// instance always run with root access even if you disable root access for - /// users.

    - ///
    - pub root_access: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.field("instance_type", &self.instance_type); - formatter.field("subnet_id", &self.subnet_id); - formatter.field("security_group_ids", &self.security_group_ids); - formatter.field("role_arn", &self.role_arn); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("tags", &self.tags); - formatter.field("lifecycle_config_name", &self.lifecycle_config_name); - formatter.field("direct_internet_access", &self.direct_internet_access); - formatter.field("volume_size_in_gb", &self.volume_size_in_gb); - formatter.field("accelerator_types", &self.accelerator_types); - formatter.field("default_code_repository", &self.default_code_repository); - formatter.field( - "additional_code_repositories", - &self.additional_code_repositories, - ); - formatter.field("root_access", &self.root_access); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateNotebookInstanceLifecycleConfigInputBody<'a> { - ///

    The name of the lifecycle configuration.

    - pub notebook_instance_lifecycle_config_name: &'a std::option::Option, - ///

    A shell script that runs only once, when you create a notebook instance. The shell - /// script must be a base64-encoded string.

    - pub on_create: - &'a std::option::Option>, - ///

    A shell script that runs every time you start a notebook instance, including when you - /// create the notebook instance. The shell script must be a base64-encoded string.

    - pub on_start: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateNotebookInstanceLifecycleConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateNotebookInstanceLifecycleConfigInputBody"); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.field("on_create", &self.on_create); - formatter.field("on_start", &self.on_start); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePipelineInputBody<'a> { - ///

    The name of the pipeline.

    - pub pipeline_name: &'a std::option::Option, - ///

    The display name of the pipeline.

    - pub pipeline_display_name: &'a std::option::Option, - ///

    The JSON pipeline definition of the pipeline.

    - pub pipeline_definition: &'a std::option::Option, - ///

    A description of the pipeline.

    - pub pipeline_description: &'a std::option::Option, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the role used by the pipeline to access and create resources.

    - pub role_arn: &'a std::option::Option, - ///

    A list of tags to apply to the created pipeline.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreatePipelineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePipelineInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field("pipeline_display_name", &self.pipeline_display_name); - formatter.field("pipeline_definition", &self.pipeline_definition); - formatter.field("pipeline_description", &self.pipeline_description); - formatter.field("client_request_token", &self.client_request_token); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePresignedDomainUrlInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The name of the UserProfile to sign-in as.

    - pub user_profile_name: &'a std::option::Option, - ///

    The session expiration duration in seconds. This value defaults to 43200.

    - pub session_expiration_duration_in_seconds: &'a std::option::Option, - ///

    The number of seconds until the pre-signed URL expires. This value defaults to - /// 300.

    - pub expires_in_seconds: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreatePresignedDomainUrlInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePresignedDomainUrlInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field( - "session_expiration_duration_in_seconds", - &self.session_expiration_duration_in_seconds, - ); - formatter.field("expires_in_seconds", &self.expires_in_seconds); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePresignedNotebookInstanceUrlInputBody<'a> { - ///

    The name of the notebook instance.

    - pub notebook_instance_name: &'a std::option::Option, - ///

    The duration of the session, in seconds. The default is 12 hours.

    - pub session_expiration_duration_in_seconds: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreatePresignedNotebookInstanceUrlInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePresignedNotebookInstanceUrlInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.field( - "session_expiration_duration_in_seconds", - &self.session_expiration_duration_in_seconds, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateProcessingJobInputBody<'a> { - ///

    An array of inputs configuring the data to download into the - /// processing container.

    - pub processing_inputs: &'a std::option::Option>, - ///

    Output configuration for the processing job.

    - pub processing_output_config: &'a std::option::Option, - ///

    The name of the processing job. The name must be unique within an AWS Region in the - /// AWS account.

    - pub processing_job_name: &'a std::option::Option, - ///

    Identifies the resources, ML compute instances, and ML storage volumes to deploy for a - /// processing job. In distributed training, you specify more than one instance.

    - pub processing_resources: &'a std::option::Option, - ///

    The time limit for how long the processing job is allowed to run.

    - pub stopping_condition: &'a std::option::Option, - ///

    Configures the processing job to run a specified Docker container image.

    - pub app_specification: &'a std::option::Option, - ///

    The environment variables to set in the Docker container. Up to - /// 100 key and values entries in the map are supported.

    - pub environment: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Networking options for a processing job, such as whether to allow inbound and - /// outbound network calls to and from processing containers, and the VPC subnets and - /// security groups to use for VPC-enabled processing jobs.

    - pub network_config: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on - /// your behalf.

    - pub role_arn: &'a std::option::Option, - ///

    (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management - /// User Guide.

    - pub tags: &'a std::option::Option>, - ///

    Associates a SageMaker job as a trial component with an experiment and trial. Specified when - /// you call the following APIs:

    - /// - pub experiment_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateProcessingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateProcessingJobInputBody"); - formatter.field("processing_inputs", &self.processing_inputs); - formatter.field("processing_output_config", &self.processing_output_config); - formatter.field("processing_job_name", &self.processing_job_name); - formatter.field("processing_resources", &self.processing_resources); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("app_specification", &self.app_specification); - formatter.field("environment", &self.environment); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("tags", &self.tags); - formatter.field("experiment_config", &self.experiment_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateProjectInputBody<'a> { - ///

    The name of the project.

    - pub project_name: &'a std::option::Option, - ///

    A description for the project.

    - pub project_description: &'a std::option::Option, - ///

    The product ID and provisioning artifact ID to provision a service catalog. For - /// information, see What is AWS Service - /// Catalog.

    - pub service_catalog_provisioning_details: - &'a std::option::Option, - ///

    An array of key-value pairs that you want to use to organize and track your AWS - /// resource costs. For more information, see Tagging AWS resources in the AWS General Reference Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateProjectInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateProjectInputBody"); - formatter.field("project_name", &self.project_name); - formatter.field("project_description", &self.project_description); - formatter.field( - "service_catalog_provisioning_details", - &self.service_catalog_provisioning_details, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrainingJobInputBody<'a> { - ///

    The name of the training job. The name must be unique within an AWS Region in an - /// AWS account.

    - pub training_job_name: &'a std::option::Option, - ///

    Algorithm-specific parameters that influence the quality of the model. You set - /// hyperparameters before you start the learning process. For a list of hyperparameters for - /// each training algorithm provided by Amazon SageMaker, see Algorithms.

    - ///

    You can specify a maximum of 100 hyperparameters. Each hyperparameter is a - /// key-value pair. Each key and value is limited to 256 characters, as specified by the - /// Length Constraint.

    - pub hyper_parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The registry path of the Docker image that contains the training algorithm and - /// algorithm-specific metadata, including the input mode. For more information about - /// algorithms provided by Amazon SageMaker, see Algorithms. For information about - /// providing your own algorithms, see Using Your Own Algorithms with Amazon - /// SageMaker.

    - pub algorithm_specification: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform - /// tasks on your behalf.

    - ///

    During model training, Amazon SageMaker needs your permission to read input data from an S3 - /// bucket, download a Docker image that contains training code, write model artifacts to an - /// S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant - /// permissions for all of these tasks to an IAM role. For more information, see Amazon SageMaker - /// Roles.

    - /// - ///

    To be able to pass this role to Amazon SageMaker, the caller of this API must have the - /// iam:PassRole permission.

    - ///
    - pub role_arn: &'a std::option::Option, - ///

    An array of Channel objects. Each channel is a named input source. - /// InputDataConfig - /// describes the input data and its location.

    - ///

    Algorithms can accept input data from one or more channels. For example, an - /// algorithm might have two channels of input data, training_data and - /// validation_data. The configuration for each channel provides the S3, - /// EFS, or FSx location where the input data is stored. It also provides information about - /// the stored data: the MIME type, compression method, and whether the data is wrapped in - /// RecordIO format.

    - ///

    Depending on the input mode that the algorithm supports, Amazon SageMaker either copies input - /// data files from an S3 bucket to a local directory in the Docker container, or makes it - /// available as input streams. For example, if you specify an EFS location, input data - /// files will be made available as input streams. They do not need to be - /// downloaded.

    - pub input_data_config: &'a std::option::Option>, - ///

    Specifies the path to the S3 location where you want to store model artifacts. Amazon SageMaker - /// creates subfolders for the artifacts.

    - pub output_data_config: &'a std::option::Option, - ///

    The resources, including the ML compute instances and ML storage volumes, to use - /// for model training.

    - ///

    ML storage volumes store model artifacts and incremental states. Training - /// algorithms might also use ML storage volumes for scratch space. If you want Amazon SageMaker to use - /// the ML storage volume to store the training data, choose File as the - /// TrainingInputMode in the algorithm specification. For distributed - /// training algorithms, specify an instance count greater than 1.

    - pub resource_config: &'a std::option::Option, - ///

    A VpcConfig object that specifies the VPC that you want your - /// training job to connect to. Control access to and from your training container by - /// configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon - /// Virtual Private Cloud.

    - pub vpc_config: &'a std::option::Option, - ///

    Specifies a limit to how long a model training job can run. It also specifies how long - /// a managed Spot training job has to complete. When the job reaches the time limit, Amazon SageMaker - /// ends the training job. Use this API to cap model training costs.

    - ///

    To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays - /// job termination for 120 seconds. Algorithms can use this 120-second window to save the - /// model artifacts, so the results of training are not lost.

    - pub stopping_condition: &'a std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - pub tags: &'a std::option::Option>, - ///

    Isolates the training container. No inbound or outbound network calls can be made, - /// except for calls between peers within a training cluster for distributed training. If - /// you enable network isolation for training jobs that are configured to use a VPC, Amazon SageMaker - /// downloads and uploads customer data and model artifacts through the specified VPC, but - /// the training container does not have network access.

    - pub enable_network_isolation: &'a bool, - ///

    To encrypt all communications between ML compute instances in distributed training, - /// choose True. Encryption provides greater security for distributed training, - /// but training might take longer. How long it takes depends on the amount of communication - /// between compute instances, especially if you use a deep learning algorithm in - /// distributed training. For more information, see Protect Communications Between ML - /// Compute Instances in a Distributed Training Job.

    - pub enable_inter_container_traffic_encryption: &'a bool, - ///

    To train models using managed spot training, choose True. Managed spot - /// training provides a fully managed and scalable infrastructure for training machine - /// learning models. this option is useful when training jobs can be interrupted and when - /// there is flexibility when the training job is run.

    - ///

    The complete and intermediate results of jobs are stored in an Amazon S3 bucket, and can be - /// used as a starting point to train models incrementally. Amazon SageMaker provides metrics and - /// logs in CloudWatch. They can be used to see when managed spot training jobs are running, - /// interrupted, resumed, or completed.

    - pub enable_managed_spot_training: &'a bool, - ///

    Contains information about the output location for managed spot training checkpoint - /// data.

    - pub checkpoint_config: &'a std::option::Option, - ///

    Configuration information for the Debugger hook parameters, metric and tensor collections, and - /// storage paths. To learn more about - /// how to configure the DebugHookConfig parameter, - /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    - pub debug_hook_config: &'a std::option::Option, - ///

    Configuration information for Debugger rules for debugging output tensors.

    - pub debug_rule_configurations: - &'a std::option::Option>, - ///

    Configuration of storage locations for the Debugger TensorBoard output data.

    - pub tensor_board_output_config: &'a std::option::Option, - ///

    Associates a SageMaker job as a trial component with an experiment and trial. Specified when - /// you call the following APIs:

    - /// - pub experiment_config: &'a std::option::Option, - ///

    Configuration information for Debugger system monitoring, framework profiling, and - /// storage paths.

    - pub profiler_config: &'a std::option::Option, - ///

    Configuration information for Debugger rules for profiling system and framework - /// metrics.

    - pub profiler_rule_configurations: - &'a std::option::Option>, - ///

    The environment variables to set in the Docker container.

    - pub environment: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The number of times to retry the job when the job fails due to an - /// InternalServerError.

    - pub retry_strategy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateTrainingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrainingJobInputBody"); - formatter.field("training_job_name", &self.training_job_name); - formatter.field("hyper_parameters", &self.hyper_parameters); - formatter.field("algorithm_specification", &self.algorithm_specification); - formatter.field("role_arn", &self.role_arn); - formatter.field("input_data_config", &self.input_data_config); - formatter.field("output_data_config", &self.output_data_config); - formatter.field("resource_config", &self.resource_config); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("tags", &self.tags); - formatter.field("enable_network_isolation", &self.enable_network_isolation); - formatter.field( - "enable_inter_container_traffic_encryption", - &self.enable_inter_container_traffic_encryption, - ); - formatter.field( - "enable_managed_spot_training", - &self.enable_managed_spot_training, - ); - formatter.field("checkpoint_config", &self.checkpoint_config); - formatter.field("debug_hook_config", &self.debug_hook_config); - formatter.field("debug_rule_configurations", &self.debug_rule_configurations); - formatter.field( - "tensor_board_output_config", - &self.tensor_board_output_config, - ); - formatter.field("experiment_config", &self.experiment_config); - formatter.field("profiler_config", &self.profiler_config); - formatter.field( - "profiler_rule_configurations", - &self.profiler_rule_configurations, - ); - formatter.field("environment", &self.environment); - formatter.field("retry_strategy", &self.retry_strategy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTransformJobInputBody<'a> { - ///

    The name of the transform job. The name must be unique within an AWS Region in an - /// AWS account.

    - pub transform_job_name: &'a std::option::Option, - ///

    The name of the model that you want to use for the transform job. - /// ModelName must be the name of an existing Amazon SageMaker model within an AWS - /// Region in an AWS account.

    - pub model_name: &'a std::option::Option, - ///

    The maximum number of parallel requests that can be sent to each instance in a - /// transform job. If MaxConcurrentTransforms is set to 0 or left - /// unset, Amazon SageMaker checks the optional execution-parameters to determine the settings for your - /// chosen algorithm. If the execution-parameters endpoint is not enabled, the default value - /// is 1. For more information on execution-parameters, see How Containers Serve Requests. For built-in algorithms, you don't need to - /// set a value for MaxConcurrentTransforms.

    - pub max_concurrent_transforms: &'a std::option::Option, - ///

    Configures the timeout and maximum number of retries for processing a transform job - /// invocation.

    - pub model_client_config: &'a std::option::Option, - ///

    The maximum allowed size of the payload, in MB. A payload is the - /// data portion of a record (without metadata). The value in MaxPayloadInMB - /// must be greater than, or equal to, the size of a single record. To estimate the size of - /// a record in MB, divide the size of your dataset by the number of records. To ensure that - /// the records fit within the maximum payload size, we recommend using a slightly larger - /// value. The default value is 6 MB. - ///

    - ///

    For cases where the payload might be arbitrarily large and is transmitted using HTTP - /// chunked encoding, set the value to 0. - /// This - /// feature works only in supported algorithms. Currently, Amazon SageMaker built-in - /// algorithms do not support HTTP chunked encoding.

    - pub max_payload_in_mb: &'a std::option::Option, - ///

    Specifies the number of records to include in a mini-batch for an HTTP inference - /// request. A record - /// is a single unit of input data that - /// inference can be made on. For example, a single line in a CSV file is a record.

    - ///

    To enable the batch strategy, you must set the SplitType property to - /// Line, RecordIO, or TFRecord.

    - ///

    To use only one record when making an HTTP invocation request to a container, set - /// BatchStrategy to SingleRecord and SplitType - /// to Line.

    - ///

    To fit as many records in a mini-batch as can fit within the - /// MaxPayloadInMB limit, set BatchStrategy to - /// MultiRecord and SplitType to Line.

    - pub batch_strategy: &'a std::option::Option, - ///

    The environment variables to set in the Docker container. We support up to 16 key and - /// values entries in the map.

    - pub environment: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Describes the input source and - /// the - /// way the transform job consumes it.

    - pub transform_input: &'a std::option::Option, - ///

    Describes the results of the transform job.

    - pub transform_output: &'a std::option::Option, - ///

    Describes the resources, including - /// ML - /// instance types and ML instance count, to use for the transform - /// job.

    - pub transform_resources: &'a std::option::Option, - ///

    The data structure used to specify the data to be used for inference in a batch - /// transform job and to associate the data that is relevant to the prediction results in - /// the output. The input filter provided allows you to exclude input data that is not - /// needed for inference in a batch transform job. The output filter provided allows you to - /// include input data relevant to interpreting the predictions in the output from the job. - /// For more information, see Associate Prediction - /// Results with their Corresponding Input Records.

    - pub data_processing: &'a std::option::Option, - ///

    (Optional) - /// An - /// array of key-value pairs. For more information, see Using - /// Cost Allocation Tags in the AWS Billing and Cost Management User - /// Guide.

    - pub tags: &'a std::option::Option>, - ///

    Associates a SageMaker job as a trial component with an experiment and trial. Specified when - /// you call the following APIs:

    - /// - pub experiment_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateTransformJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTransformJobInputBody"); - formatter.field("transform_job_name", &self.transform_job_name); - formatter.field("model_name", &self.model_name); - formatter.field("max_concurrent_transforms", &self.max_concurrent_transforms); - formatter.field("model_client_config", &self.model_client_config); - formatter.field("max_payload_in_mb", &self.max_payload_in_mb); - formatter.field("batch_strategy", &self.batch_strategy); - formatter.field("environment", &self.environment); - formatter.field("transform_input", &self.transform_input); - formatter.field("transform_output", &self.transform_output); - formatter.field("transform_resources", &self.transform_resources); - formatter.field("data_processing", &self.data_processing); - formatter.field("tags", &self.tags); - formatter.field("experiment_config", &self.experiment_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrialInputBody<'a> { - ///

    The name of the trial. The name must be unique in your AWS account and is not - /// case-sensitive.

    - pub trial_name: &'a std::option::Option, - ///

    The name of the trial as displayed. The name doesn't need to be unique. If - /// DisplayName isn't specified, TrialName is displayed.

    - pub display_name: &'a std::option::Option, - ///

    The name of the experiment to associate the trial with.

    - pub experiment_name: &'a std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - pub metadata_properties: &'a std::option::Option, - ///

    A list of tags to associate with the trial. You can use Search API to - /// search on the tags.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateTrialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrialInputBody"); - formatter.field("trial_name", &self.trial_name); - formatter.field("display_name", &self.display_name); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrialComponentInputBody<'a> { - ///

    The name of the component. The name must be unique in your AWS account and is not - /// case-sensitive.

    - pub trial_component_name: &'a std::option::Option, - ///

    The name of the component as displayed. The name doesn't need to be unique. If - /// DisplayName isn't specified, TrialComponentName is - /// displayed.

    - pub display_name: &'a std::option::Option, - ///

    The status of the component. States include:

    - ///
      - ///
    • - ///

      InProgress

      - ///
    • - ///
    • - ///

      Completed

      - ///
    • - ///
    • - ///

      Failed

      - ///
    • - ///
    - pub status: &'a std::option::Option, - ///

    When the component started.

    - pub start_time: &'a std::option::Option, - ///

    When the component ended.

    - pub end_time: &'a std::option::Option, - ///

    The hyperparameters for the component.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The input artifacts for the component. Examples of input artifacts are datasets, - /// algorithms, hyperparameters, source code, and instance types.

    - pub input_artifacts: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The output artifacts for the component. Examples of output artifacts are metrics, - /// snapshots, logs, and images.

    - pub output_artifacts: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - pub metadata_properties: &'a std::option::Option, - ///

    A list of tags to associate with the component. You can use Search API - /// to search on the tags.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("display_name", &self.display_name); - formatter.field("status", &self.status); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("parameters", &self.parameters); - formatter.field("input_artifacts", &self.input_artifacts); - formatter.field("output_artifacts", &self.output_artifacts); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUserProfileInputBody<'a> { - ///

    The ID of the associated Domain.

    - pub domain_id: &'a std::option::Option, - ///

    A name for the UserProfile. This value is not case sensitive.

    - pub user_profile_name: &'a std::option::Option, - ///

    A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is "UserName". - /// If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified. - ///

    - pub single_sign_on_user_identifier: &'a std::option::Option, - ///

    The username of the associated AWS Single Sign-On User for this UserProfile. If the Domain's AuthMode is SSO, this field is - /// required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified. - ///

    - pub single_sign_on_user_value: &'a std::option::Option, - ///

    Each tag consists of a key and an optional value. - /// Tag keys must be unique per resource.

    - ///

    Tags that you specify for the User Profile are also added to all Apps that the - /// User Profile launches.

    - pub tags: &'a std::option::Option>, - ///

    A collection of settings.

    - pub user_settings: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateUserProfileInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUserProfileInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field( - "single_sign_on_user_identifier", - &self.single_sign_on_user_identifier, - ); - formatter.field("single_sign_on_user_value", &self.single_sign_on_user_value); - formatter.field("tags", &self.tags); - formatter.field("user_settings", &self.user_settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateWorkforceInputBody<'a> { - ///

    Use this parameter to configure an Amazon Cognito private workforce. - /// A single Cognito workforce is created using and corresponds to a single - /// - /// Amazon Cognito user pool.

    - ///

    Do not use OidcConfig if you specify values for - /// CognitoConfig.

    - pub cognito_config: &'a std::option::Option, - ///

    Use this parameter to configure a private workforce using your own OIDC Identity Provider.

    - ///

    Do not use CognitoConfig if you specify values for - /// OidcConfig.

    - pub oidc_config: &'a std::option::Option, - ///

    A list of IP address ranges (CIDRs). Used to create an allow - /// list of IP addresses for a private workforce. Workers will only be able to login to their worker portal from an - /// IP address within this range. By default, a workforce isn't restricted to specific IP addresses.

    - pub source_ip_config: &'a std::option::Option, - ///

    The name of the private workforce.

    - pub workforce_name: &'a std::option::Option, - ///

    An array of key-value pairs that contain metadata to help you categorize and - /// organize our workforce. Each tag consists of a key and a value, - /// both of which you define.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateWorkforceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateWorkforceInputBody"); - formatter.field("cognito_config", &self.cognito_config); - formatter.field("oidc_config", &self.oidc_config); - formatter.field("source_ip_config", &self.source_ip_config); - formatter.field("workforce_name", &self.workforce_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateWorkteamInputBody<'a> { - ///

    The name of the work team. Use this name to identify the work team.

    - pub workteam_name: &'a std::option::Option, - ///

    The name of the workforce.

    - pub workforce_name: &'a std::option::Option, - ///

    A list of MemberDefinition objects that contains objects that identify - /// the workers that make up the work team.

    - ///

    Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For - /// private workforces created using Amazon Cognito use CognitoMemberDefinition. For - /// workforces created using your own OIDC identity provider (IdP) use - /// OidcMemberDefinition. Do not provide input for both of these parameters - /// in a single request.

    - ///

    For workforces created using Amazon Cognito, private work teams correspond to Amazon Cognito - /// user groups within the user pool used to create a workforce. All of the - /// CognitoMemberDefinition objects that make up the member definition must - /// have the same ClientId and UserPool values. To add a Amazon - /// Cognito user group to an existing worker pool, see Adding groups to a User - /// Pool. For more information about user pools, see Amazon Cognito User - /// Pools.

    - ///

    For workforces created using your own OIDC IdP, specify the user groups that you want to - /// include in your private work team in OidcMemberDefinition by listing those groups - /// in Groups.

    - pub member_definitions: &'a std::option::Option>, - ///

    A description of the work team.

    - pub description: &'a std::option::Option, - ///

    Configures notification of workers regarding available or expiring work items.

    - pub notification_configuration: - &'a std::option::Option, - ///

    An array of key-value pairs.

    - ///

    For more information, see Resource - /// Tag and Using - /// Cost Allocation Tags in the AWS Billing and Cost Management User - /// Guide.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateWorkteamInputBody"); - formatter.field("workteam_name", &self.workteam_name); - formatter.field("workforce_name", &self.workforce_name); - formatter.field("member_definitions", &self.member_definitions); - formatter.field("description", &self.description); - formatter.field( - "notification_configuration", - &self.notification_configuration, - ); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteActionInputBody<'a> { - ///

    The name of the action to delete.

    - pub action_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteActionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteActionInputBody"); - formatter.field("action_name", &self.action_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAlgorithmInputBody<'a> { - ///

    The name of the algorithm to delete.

    - pub algorithm_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAlgorithmInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAlgorithmInputBody"); - formatter.field("algorithm_name", &self.algorithm_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAppInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name.

    - pub user_profile_name: &'a std::option::Option, - ///

    The type of app.

    - pub app_type: &'a std::option::Option, - ///

    The name of the app.

    - pub app_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAppInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAppInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("app_type", &self.app_type); - formatter.field("app_name", &self.app_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAppImageConfigInputBody<'a> { - ///

    The name of the AppImageConfig to delete.

    - pub app_image_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAppImageConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAppImageConfigInputBody"); - formatter.field("app_image_config_name", &self.app_image_config_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteArtifactInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the artifact to delete.

    - pub artifact_arn: &'a std::option::Option, - ///

    The URI of the source.

    - pub source: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteArtifactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteArtifactInputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.field("source", &self.source); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAssociationInputBody<'a> { - ///

    The ARN of the source.

    - pub source_arn: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the destination.

    - pub destination_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAssociationInputBody"); - formatter.field("source_arn", &self.source_arn); - formatter.field("destination_arn", &self.destination_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteCodeRepositoryInputBody<'a> { - ///

    The name of the Git repository to delete.

    - pub code_repository_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteCodeRepositoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteCodeRepositoryInputBody"); - formatter.field("code_repository_name", &self.code_repository_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteContextInputBody<'a> { - ///

    The name of the context to delete.

    - pub context_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteContextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteContextInputBody"); - formatter.field("context_name", &self.context_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDataQualityJobDefinitionInputBody<'a> { - ///

    The name of the data quality monitoring job definition to delete.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteDataQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDataQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDeviceFleetInputBody<'a> { - ///

    The name of the fleet to delete.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteDeviceFleetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDeviceFleetInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDomainInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The retention policy for this domain, which specifies whether resources will be retained after the Domain is deleted. - /// By default, all resources are retained (not automatically deleted). - ///

    - pub retention_policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteDomainInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDomainInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("retention_policy", &self.retention_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteEndpointInputBody<'a> { - ///

    The name of the endpoint that you want to delete.

    - pub endpoint_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteEndpointInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteEndpointConfigInputBody<'a> { - ///

    The name of the endpoint configuration that you want to delete.

    - pub endpoint_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteEndpointConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteEndpointConfigInputBody"); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteExperimentInputBody<'a> { - ///

    The name of the experiment to delete.

    - pub experiment_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteExperimentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteExperimentInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteFeatureGroupInputBody<'a> { - ///

    The name of the FeatureGroup you want to delete. The name must be unique - /// within an AWS Region in an AWS account.

    - pub feature_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteFeatureGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteFeatureGroupInputBody"); - formatter.field("feature_group_name", &self.feature_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteFlowDefinitionInputBody<'a> { - ///

    The name of the flow definition you are deleting.

    - pub flow_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteFlowDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteFlowDefinitionInputBody"); - formatter.field("flow_definition_name", &self.flow_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteHumanTaskUiInputBody<'a> { - ///

    The name of the human task user interface (work task template) you want to delete.

    - pub human_task_ui_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteHumanTaskUiInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteHumanTaskUiInputBody"); - formatter.field("human_task_ui_name", &self.human_task_ui_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteImageInputBody<'a> { - ///

    The name of the image to delete.

    - pub image_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteImageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteImageInputBody"); - formatter.field("image_name", &self.image_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteImageVersionInputBody<'a> { - ///

    The name of the image.

    - pub image_name: &'a std::option::Option, - ///

    The version to delete.

    - pub version: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteImageVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteImageVersionInputBody"); - formatter.field("image_name", &self.image_name); - formatter.field("version", &self.version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelInputBody<'a> { - ///

    The name of the model to delete.

    - pub model_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelInputBody"); - formatter.field("model_name", &self.model_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelBiasJobDefinitionInputBody<'a> { - ///

    The name of the model bias job definition to delete.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelBiasJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelBiasJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelExplainabilityJobDefinitionInputBody<'a> { - ///

    The name of the model explainability job definition to delete.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelExplainabilityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelExplainabilityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelPackageInputBody<'a> { - ///

    The name or Amazon Resource Name (ARN) of the model package to delete.

    - ///

    When you specify a name, the name must have 1 to 63 characters. Valid - /// characters are a-z, A-Z, 0-9, and - (hyphen).

    - pub model_package_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelPackageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelPackageInputBody"); - formatter.field("model_package_name", &self.model_package_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelPackageGroupInputBody<'a> { - ///

    The name of the model group to delete.

    - pub model_package_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelPackageGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelPackageGroupInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelPackageGroupPolicyInputBody<'a> { - ///

    The name of the model group for which to delete the policy.

    - pub model_package_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelPackageGroupPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelPackageGroupPolicyInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteModelQualityJobDefinitionInputBody<'a> { - ///

    The name of the model quality monitoring job definition to delete.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteModelQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteModelQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMonitoringScheduleInputBody<'a> { - ///

    The name of the monitoring schedule to delete.

    - pub monitoring_schedule_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteNotebookInstanceInputBody<'a> { - ///

    The name of the Amazon SageMaker notebook instance to delete.

    - pub notebook_instance_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteNotebookInstanceLifecycleConfigInputBody<'a> { - ///

    The name of the lifecycle configuration to delete.

    - pub notebook_instance_lifecycle_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteNotebookInstanceLifecycleConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteNotebookInstanceLifecycleConfigInputBody"); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeletePipelineInputBody<'a> { - ///

    The name of the pipeline to delete.

    - pub pipeline_name: &'a std::option::Option, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeletePipelineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeletePipelineInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteProjectInputBody<'a> { - ///

    The name of the project to delete.

    - pub project_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteProjectInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteProjectInputBody"); - formatter.field("project_name", &self.project_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTagsInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource whose tags you want to - /// delete.

    - pub resource_arn: &'a std::option::Option, - ///

    An array or one or more tag keys to delete.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DeleteTagsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTagsInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTrialInputBody<'a> { - ///

    The name of the trial to delete.

    - pub trial_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteTrialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTrialInputBody"); - formatter.field("trial_name", &self.trial_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTrialComponentInputBody<'a> { - ///

    The name of the component to delete.

    - pub trial_component_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteUserProfileInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name.

    - pub user_profile_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteUserProfileInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteUserProfileInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteWorkforceInputBody<'a> { - ///

    The name of the workforce.

    - pub workforce_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteWorkforceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteWorkforceInputBody"); - formatter.field("workforce_name", &self.workforce_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteWorkteamInputBody<'a> { - ///

    The name of the work team to delete.

    - pub workteam_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteWorkteamInputBody"); - formatter.field("workteam_name", &self.workteam_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterDevicesInputBody<'a> { - ///

    The name of the fleet the devices belong to.

    - pub device_fleet_name: &'a std::option::Option, - ///

    The unique IDs of the devices.

    - pub device_names: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DeregisterDevicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterDevicesInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("device_names", &self.device_names); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeActionInputBody<'a> { - ///

    The name of the action to describe.

    - pub action_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeActionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeActionInputBody"); - formatter.field("action_name", &self.action_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAlgorithmInputBody<'a> { - ///

    The name of the algorithm to describe.

    - pub algorithm_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAlgorithmInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAlgorithmInputBody"); - formatter.field("algorithm_name", &self.algorithm_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAppInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name.

    - pub user_profile_name: &'a std::option::Option, - ///

    The type of app.

    - pub app_type: &'a std::option::Option, - ///

    The name of the app.

    - pub app_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAppInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAppInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("app_type", &self.app_type); - formatter.field("app_name", &self.app_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAppImageConfigInputBody<'a> { - ///

    The name of the AppImageConfig to describe.

    - pub app_image_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAppImageConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAppImageConfigInputBody"); - formatter.field("app_image_config_name", &self.app_image_config_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeArtifactInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the artifact to describe.

    - pub artifact_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeArtifactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeArtifactInputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutoMLJobInputBody<'a> { - ///

    Requests information about an AutoML job using its unique name.

    - pub auto_ml_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAutoMLJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutoMLJobInputBody"); - formatter.field("auto_ml_job_name", &self.auto_ml_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCodeRepositoryInputBody<'a> { - ///

    The name of the Git repository to describe.

    - pub code_repository_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeCodeRepositoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCodeRepositoryInputBody"); - formatter.field("code_repository_name", &self.code_repository_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCompilationJobInputBody<'a> { - ///

    The name of the model compilation job that you want information about.

    - pub compilation_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeCompilationJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCompilationJobInputBody"); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContextInputBody<'a> { - ///

    The name of the context to describe.

    - pub context_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeContextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContextInputBody"); - formatter.field("context_name", &self.context_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDataQualityJobDefinitionInputBody<'a> { - ///

    The name of the data quality monitoring job definition to describe.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDataQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDataQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDeviceInputBody<'a> { - ///

    Next token of device description.

    - pub next_token: &'a std::option::Option, - ///

    The unique ID of the device.

    - pub device_name: &'a std::option::Option, - ///

    The name of the fleet the devices belong to.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDeviceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDeviceInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("device_name", &self.device_name); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDeviceFleetInputBody<'a> { - ///

    The name of the fleet.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDeviceFleetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDeviceFleetInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDomainInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDomainInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDomainInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEdgePackagingJobInputBody<'a> { - ///

    The name of the edge packaging job.

    - pub edge_packaging_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeEdgePackagingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEdgePackagingJobInputBody"); - formatter.field("edge_packaging_job_name", &self.edge_packaging_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEndpointInputBody<'a> { - ///

    The name of the endpoint.

    - pub endpoint_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEndpointInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEndpointConfigInputBody<'a> { - ///

    The name of the endpoint configuration.

    - pub endpoint_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeEndpointConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEndpointConfigInputBody"); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExperimentInputBody<'a> { - ///

    The name of the experiment to describe.

    - pub experiment_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeExperimentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExperimentInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeFeatureGroupInputBody<'a> { - ///

    The name of the FeatureGroup you want described.

    - pub feature_group_name: &'a std::option::Option, - ///

    A token to resume pagination of the list of Features - /// (FeatureDefinitions). 2,500 Features are returned by - /// default.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeFeatureGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeFeatureGroupInputBody"); - formatter.field("feature_group_name", &self.feature_group_name); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeFlowDefinitionInputBody<'a> { - ///

    The name of the flow definition.

    - pub flow_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeFlowDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeFlowDefinitionInputBody"); - formatter.field("flow_definition_name", &self.flow_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHumanTaskUiInputBody<'a> { - ///

    The name of the human task user interface - /// (worker task template) you want information about.

    - pub human_task_ui_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeHumanTaskUiInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHumanTaskUiInputBody"); - formatter.field("human_task_ui_name", &self.human_task_ui_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHyperParameterTuningJobInputBody<'a> { - ///

    The name of the tuning job.

    - pub hyper_parameter_tuning_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeHyperParameterTuningJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHyperParameterTuningJobInputBody"); - formatter.field( - "hyper_parameter_tuning_job_name", - &self.hyper_parameter_tuning_job_name, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeImageInputBody<'a> { - ///

    The name of the image to describe.

    - pub image_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeImageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeImageInputBody"); - formatter.field("image_name", &self.image_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeImageVersionInputBody<'a> { - ///

    The name of the image.

    - pub image_name: &'a std::option::Option, - ///

    The version of the image. If not specified, the latest version is described.

    - pub version: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeImageVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeImageVersionInputBody"); - formatter.field("image_name", &self.image_name); - formatter.field("version", &self.version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLabelingJobInputBody<'a> { - ///

    The name of the labeling job to return information for.

    - pub labeling_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeLabelingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLabelingJobInputBody"); - formatter.field("labeling_job_name", &self.labeling_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelInputBody<'a> { - ///

    The name of the model.

    - pub model_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelInputBody"); - formatter.field("model_name", &self.model_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelBiasJobDefinitionInputBody<'a> { - ///

    The name of the model bias job definition. The name must be unique within an AWS Region - /// in the AWS account.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelBiasJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelBiasJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelExplainabilityJobDefinitionInputBody<'a> { - ///

    The name of the model explainability job definition. The name must be unique within an - /// AWS Region in the AWS account.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelExplainabilityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelExplainabilityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelPackageInputBody<'a> { - ///

    The name or Amazon Resource Name (ARN) of the model package to describe.

    - ///

    When you specify a name, the name must have 1 to 63 characters. Valid - /// characters are a-z, A-Z, 0-9, and - (hyphen).

    - pub model_package_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelPackageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelPackageInputBody"); - formatter.field("model_package_name", &self.model_package_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelPackageGroupInputBody<'a> { - ///

    The name of the model group to describe.

    - pub model_package_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelPackageGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelPackageGroupInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelQualityJobDefinitionInputBody<'a> { - ///

    The name of the model quality job. The name must be unique within an AWS Region in the - /// AWS account.

    - pub job_definition_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeModelQualityJobDefinitionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelQualityJobDefinitionInputBody"); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMonitoringScheduleInputBody<'a> { - ///

    Name of a previously created monitoring schedule.

    - pub monitoring_schedule_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeNotebookInstanceInputBody<'a> { - ///

    The name of the notebook instance that you want information about.

    - pub notebook_instance_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeNotebookInstanceLifecycleConfigInputBody<'a> { - ///

    The name of the lifecycle configuration to describe.

    - pub notebook_instance_lifecycle_config_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeNotebookInstanceLifecycleConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeNotebookInstanceLifecycleConfigInputBody"); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineInputBody<'a> { - ///

    The name of the pipeline to describe.

    - pub pipeline_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePipelineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineDefinitionForExecutionInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePipelineDefinitionForExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineDefinitionForExecutionInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineExecutionInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePipelineExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineExecutionInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeProcessingJobInputBody<'a> { - ///

    The name of the processing job. The name must be unique within an AWS Region in the - /// AWS account.

    - pub processing_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeProcessingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeProcessingJobInputBody"); - formatter.field("processing_job_name", &self.processing_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeProjectInputBody<'a> { - ///

    The name of the project to describe.

    - pub project_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeProjectInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeProjectInputBody"); - formatter.field("project_name", &self.project_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSubscribedWorkteamInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the subscribed work team to describe.

    - pub workteam_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeSubscribedWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSubscribedWorkteamInputBody"); - formatter.field("workteam_arn", &self.workteam_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrainingJobInputBody<'a> { - ///

    The name of the training job.

    - pub training_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTrainingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrainingJobInputBody"); - formatter.field("training_job_name", &self.training_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTransformJobInputBody<'a> { - ///

    The name of the transform job that you want to view details of.

    - pub transform_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTransformJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTransformJobInputBody"); - formatter.field("transform_job_name", &self.transform_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrialInputBody<'a> { - ///

    The name of the trial to describe.

    - pub trial_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTrialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrialInputBody"); - formatter.field("trial_name", &self.trial_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrialComponentInputBody<'a> { - ///

    The name of the trial component to describe.

    - pub trial_component_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeUserProfileInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name. This value is not case sensitive.

    - pub user_profile_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeUserProfileInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeUserProfileInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeWorkforceInputBody<'a> { - ///

    The name of the private workforce whose access you want to restrict. - /// WorkforceName is automatically set to default when a - /// workforce is created and cannot be modified.

    - pub workforce_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeWorkforceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeWorkforceInputBody"); - formatter.field("workforce_name", &self.workforce_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeWorkteamInputBody<'a> { - ///

    The name of the work team to return a description of.

    - pub workteam_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeWorkteamInputBody"); - formatter.field("workteam_name", &self.workteam_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateTrialComponentInputBody<'a> { - ///

    The name of the component to disassociate from the trial.

    - pub trial_component_name: &'a std::option::Option, - ///

    The name of the trial to disassociate from.

    - pub trial_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisassociateTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("trial_name", &self.trial_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeviceFleetReportInputBody<'a> { - ///

    The name of the fleet.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetDeviceFleetReportInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeviceFleetReportInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetModelPackageGroupPolicyInputBody<'a> { - ///

    The name of the model group for which to get the resource policy.

    - pub model_package_group_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetModelPackageGroupPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetModelPackageGroupPolicyInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSearchSuggestionsInputBody<'a> { - ///

    The name of the Amazon SageMaker resource to search for.

    - pub resource: &'a std::option::Option, - ///

    Limits the property names that are included in the response.

    - pub suggestion_query: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetSearchSuggestionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSearchSuggestionsInputBody"); - formatter.field("resource", &self.resource); - formatter.field("suggestion_query", &self.suggestion_query); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListActionsInputBody<'a> { - ///

    A filter that returns only actions with the specified source URI.

    - pub source_uri: &'a std::option::Option, - ///

    A filter that returns only actions of the specified type.

    - pub action_type: &'a std::option::Option, - ///

    A filter that returns only actions created on or after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only actions created on or before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the previous call to ListActions didn't return the full set of actions, - /// the call returns a token for getting the next set of actions.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of actions to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListActionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListActionsInputBody"); - formatter.field("source_uri", &self.source_uri); - formatter.field("action_type", &self.action_type); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAlgorithmsInputBody<'a> { - ///

    A filter that returns only algorithms created after the specified time - /// (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only algorithms created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    The maximum number of algorithms to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the algorithm name. This filter returns only algorithms whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the response to a previous ListAlgorithms request was truncated, the - /// response includes a NextToken. To retrieve the next set of algorithms, use - /// the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is - /// CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for the results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAlgorithmsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAlgorithmsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAppImageConfigsInputBody<'a> { - ///

    The maximum number of AppImageConfigs to return in the response. The default value is - /// 10.

    - pub max_results: &'a std::option::Option, - ///

    If the previous call to ListImages didn't return the full set of - /// AppImageConfigs, the call returns a token for getting the next set of AppImageConfigs.

    - pub next_token: &'a std::option::Option, - ///

    A filter that returns only AppImageConfigs whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only AppImageConfigs created on or before the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only AppImageConfigs created on or after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only AppImageConfigs modified on or before the specified time.

    - pub modified_time_before: &'a std::option::Option, - ///

    A filter that returns only AppImageConfigs modified on or after the specified time.

    - pub modified_time_after: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAppImageConfigsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAppImageConfigsInputBody"); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("modified_time_before", &self.modified_time_before); - formatter.field("modified_time_after", &self.modified_time_after); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAppsInputBody<'a> { - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    Returns a list up to a specified limit.

    - pub max_results: &'a std::option::Option, - ///

    The sort order for the results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    A parameter to search for the domain ID.

    - pub domain_id_equals: &'a std::option::Option, - ///

    A parameter to search by user profile name.

    - pub user_profile_name_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAppsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAppsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_order", &self.sort_order); - formatter.field("sort_by", &self.sort_by); - formatter.field("domain_id_equals", &self.domain_id_equals); - formatter.field("user_profile_name_equals", &self.user_profile_name_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListArtifactsInputBody<'a> { - ///

    A filter that returns only artifacts with the specified source URI.

    - pub source_uri: &'a std::option::Option, - ///

    A filter that returns only artifacts of the specified type.

    - pub artifact_type: &'a std::option::Option, - ///

    A filter that returns only artifacts created on or after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only artifacts created on or before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the previous call to ListArtifacts didn't return the full set of artifacts, - /// the call returns a token for getting the next set of artifacts.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of artifacts to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListArtifactsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListArtifactsInputBody"); - formatter.field("source_uri", &self.source_uri); - formatter.field("artifact_type", &self.artifact_type); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationsInputBody<'a> { - ///

    A filter that returns only associations with the specified source ARN.

    - pub source_arn: &'a std::option::Option, - ///

    A filter that returns only associations with the specified destination Amazon Resource Name (ARN).

    - pub destination_arn: &'a std::option::Option, - ///

    A filter that returns only associations with the specified source type.

    - pub source_type: &'a std::option::Option, - ///

    A filter that returns only associations with the specified destination type.

    - pub destination_type: &'a std::option::Option, - ///

    A filter that returns only associations of the specified type.

    - pub association_type: &'a std::option::Option, - ///

    A filter that returns only associations created on or after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only associations created on or before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the previous call to ListAssociations didn't return the full set of associations, - /// the call returns a token for getting the next set of associations.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of associations to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAssociationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationsInputBody"); - formatter.field("source_arn", &self.source_arn); - formatter.field("destination_arn", &self.destination_arn); - formatter.field("source_type", &self.source_type); - formatter.field("destination_type", &self.destination_type); - formatter.field("association_type", &self.association_type); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAutoMLJobsInputBody<'a> { - ///

    Request a list of jobs, using a filter for time.

    - pub creation_time_after: &'a std::option::Option, - ///

    Request a list of jobs, using a filter for time.

    - pub creation_time_before: &'a std::option::Option, - ///

    Request a list of jobs, using a filter for time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    Request a list of jobs, using a filter for time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    Request a list of jobs, using a search filter for name.

    - pub name_contains: &'a std::option::Option, - ///

    Request a list of jobs, using a filter for status.

    - pub status_equals: &'a std::option::Option, - ///

    The sort order for the results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is Name.

    - pub sort_by: &'a std::option::Option, - ///

    Request a list of jobs up to a specified limit.

    - pub max_results: &'a std::option::Option, - ///

    If the previous response was truncated, you receive this token. Use it in your next - /// request to receive the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAutoMLJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAutoMLJobsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_order", &self.sort_order); - formatter.field("sort_by", &self.sort_by); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCandidatesForAutoMLJobInputBody<'a> { - ///

    List the candidates created for the job by providing the job's name.

    - pub auto_ml_job_name: &'a std::option::Option, - ///

    List the candidates for the job and filter by status.

    - pub status_equals: &'a std::option::Option, - ///

    List the candidates for the job and filter by candidate name.

    - pub candidate_name_equals: &'a std::option::Option, - ///

    The sort order for the results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is - /// Descending.

    - pub sort_by: &'a std::option::Option, - ///

    List the job's candidates up to a specified limit.

    - pub max_results: &'a std::option::Option, - ///

    If the previous response was truncated, you receive this token. Use it in your next - /// request to receive the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListCandidatesForAutoMLJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCandidatesForAutoMLJobInputBody"); - formatter.field("auto_ml_job_name", &self.auto_ml_job_name); - formatter.field("status_equals", &self.status_equals); - formatter.field("candidate_name_equals", &self.candidate_name_equals); - formatter.field("sort_order", &self.sort_order); - formatter.field("sort_by", &self.sort_by); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCodeRepositoriesInputBody<'a> { - ///

    A filter that returns only Git repositories that were created after the specified - /// time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only Git repositories that were created before the specified - /// time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only Git repositories that were last modified after the - /// specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only Git repositories that were last modified before the - /// specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    The maximum number of Git repositories to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the Git repositories name. This filter returns only repositories whose - /// name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the result of a ListCodeRepositoriesOutput request was truncated, the - /// response includes a NextToken. To get the next set of Git repositories, use - /// the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The field to sort results by. The default is Name.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListCodeRepositoriesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCodeRepositoriesInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCompilationJobsInputBody<'a> { - ///

    If the result of the previous ListCompilationJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of model - /// compilation jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of model compilation jobs to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A filter that returns the model compilation jobs that were created after a specified - /// time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns the model compilation jobs that were created before a specified - /// time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns the model compilation jobs that were modified after a specified - /// time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns the model compilation jobs that were modified before a specified - /// time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns the model compilation jobs whose name contains a specified - /// string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus status.

    - pub status_equals: &'a std::option::Option, - ///

    The field by which to sort results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListCompilationJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCompilationJobsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContextsInputBody<'a> { - ///

    A filter that returns only contexts with the specified source URI.

    - pub source_uri: &'a std::option::Option, - ///

    A filter that returns only contexts of the specified type.

    - pub context_type: &'a std::option::Option, - ///

    A filter that returns only contexts created on or after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only contexts created on or before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the previous call to ListContexts didn't return the full set of contexts, - /// the call returns a token for getting the next set of contexts.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of contexts to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListContextsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContextsInputBody"); - formatter.field("source_uri", &self.source_uri); - formatter.field("context_type", &self.context_type); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDataQualityJobDefinitionsInputBody<'a> { - ///

    A filter that lists the data quality job definitions associated with the specified - /// endpoint.

    - pub endpoint_name: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListDataQualityJobDefinitions request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// transform jobs, use the token in the next request.>

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of data quality monitoring job definitions to return in the - /// response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the data quality monitoring job definition name. This filter returns only - /// data quality monitoring job definitions whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only data quality monitoring job definitions created before the - /// specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only data quality monitoring job definitions created after the - /// specified time.

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDataQualityJobDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDataQualityJobDefinitionsInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDeviceFleetsInputBody<'a> { - ///

    The response from the last list when returning a list large enough to need tokening.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of results to select.

    - pub max_results: &'a std::option::Option, - ///

    Filter fleets where packaging job was created after specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    Filter fleets where the edge packaging job was created before specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    Select fleets where the job was updated after X

    - pub last_modified_time_after: &'a std::option::Option, - ///

    Select fleets where the job was updated before X

    - pub last_modified_time_before: &'a std::option::Option, - ///

    Filter for fleets containing this name in their fleet device name.

    - pub name_contains: &'a std::option::Option, - ///

    The column to sort by.

    - pub sort_by: &'a std::option::Option, - ///

    What direction to sort in.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDeviceFleetsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDeviceFleetsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDevicesInputBody<'a> { - ///

    The response from the last list when returning a list large enough to need tokening.

    - pub next_token: &'a std::option::Option, - ///

    Maximum number of results to select.

    - pub max_results: &'a std::option::Option, - ///

    Select fleets where the job was updated after X

    - pub latest_heartbeat_after: &'a std::option::Option, - ///

    A filter that searches devices that contains this name in any of their models.

    - pub model_name: &'a std::option::Option, - ///

    Filter for fleets containing this name in their device fleet name.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDevicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDevicesInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("latest_heartbeat_after", &self.latest_heartbeat_after); - formatter.field("model_name", &self.model_name); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDomainsInputBody<'a> { - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    Returns a list up to a specified limit.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDomainsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDomainsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEdgePackagingJobsInputBody<'a> { - ///

    The response from the last list when returning a list large enough to need tokening.

    - pub next_token: &'a std::option::Option, - ///

    Maximum number of results to select.

    - pub max_results: &'a std::option::Option, - ///

    Select jobs where the job was created after specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    Select jobs where the job was created before specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    Select jobs where the job was updated after specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    Select jobs where the job was updated before specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    Filter for jobs containing this name in their packaging job name.

    - pub name_contains: &'a std::option::Option, - ///

    Filter for jobs where the model name contains this string.

    - pub model_name_contains: &'a std::option::Option, - ///

    The job status to filter for.

    - pub status_equals: &'a std::option::Option, - ///

    Use to specify what column to sort by.

    - pub sort_by: &'a std::option::Option, - ///

    What direction to sort by.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListEdgePackagingJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEdgePackagingJobsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("model_name_contains", &self.model_name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEndpointConfigsInputBody<'a> { - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListEndpointConfig request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// endpoint configurations, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of training jobs to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the endpoint configuration name. This filter returns only endpoint - /// configurations whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only endpoint configurations created before the specified - /// time (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only endpoint configurations with a creation time greater - /// than or equal to the specified time (timestamp).

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListEndpointConfigsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEndpointConfigsInputBody"); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEndpointsInputBody<'a> { - ///

    Sorts the list of results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of a ListEndpoints request was truncated, the response - /// includes a NextToken. To retrieve the next set of endpoints, use the token - /// in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of endpoints to return in the response. This value defaults to - /// 10.

    - pub max_results: &'a std::option::Option, - ///

    A string in endpoint names. This filter returns only endpoints whose name contains - /// the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only endpoints that were created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only endpoints with a creation time greater than or equal to - /// the specified time (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only endpoints that were modified before the specified - /// timestamp.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only endpoints that were modified after the specified - /// timestamp.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only endpoints with the specified status.

    - pub status_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListEndpointsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEndpointsInputBody"); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("status_equals", &self.status_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListExperimentsInputBody<'a> { - ///

    A filter that returns only experiments created after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only experiments created before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the previous call to ListExperiments didn't return the full set of - /// experiments, the call returns a token for getting the next set of experiments.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of experiments to return in the response. The default value is - /// 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListExperimentsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListExperimentsInputBody"); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFeatureGroupsInputBody<'a> { - ///

    A string that partially matches one or more FeatureGroups names. Filters - /// FeatureGroups by name.

    - pub name_contains: &'a std::option::Option, - ///

    A FeatureGroup status. Filters by FeatureGroup status.

    - pub feature_group_status_equals: &'a std::option::Option, - ///

    An OfflineStore status. Filters by OfflineStore status.

    - pub offline_store_status_equals: &'a std::option::Option, - ///

    Use this parameter to search for FeatureGroupss created after a specific - /// date and time.

    - pub creation_time_after: &'a std::option::Option, - ///

    Use this parameter to search for FeatureGroupss created before a specific - /// date and time.

    - pub creation_time_before: &'a std::option::Option, - ///

    The order in which feature groups are listed.

    - pub sort_order: &'a std::option::Option, - ///

    The value on which the feature group list is sorted.

    - pub sort_by: &'a std::option::Option, - ///

    The maximum number of results returned by ListFeatureGroups.

    - pub max_results: &'a std::option::Option, - ///

    A token to resume pagination of ListFeatureGroups results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListFeatureGroupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFeatureGroupsInputBody"); - formatter.field("name_contains", &self.name_contains); - formatter.field( - "feature_group_status_equals", - &self.feature_group_status_equals, - ); - formatter.field( - "offline_store_status_equals", - &self.offline_store_status_equals, - ); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("sort_order", &self.sort_order); - formatter.field("sort_by", &self.sort_by); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFlowDefinitionsInputBody<'a> { - ///

    A filter that returns only flow definitions with a creation time greater than or equal to the specified timestamp.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only flow definitions that were created before the specified timestamp.

    - pub creation_time_before: &'a std::option::Option, - ///

    An optional value that specifies whether you want the results sorted in Ascending or Descending order.

    - pub sort_order: &'a std::option::Option, - ///

    A token to resume pagination.

    - pub next_token: &'a std::option::Option, - ///

    The total number of items to return. If the total number of available items is more than the value specified in MaxResults, then a NextToken will be provided in the output that you can use to resume pagination.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListFlowDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFlowDefinitionsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHumanTaskUisInputBody<'a> { - ///

    A filter that returns only human task user interfaces with a creation time greater than or equal to the specified timestamp.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only human task user interfaces that were created before the specified timestamp.

    - pub creation_time_before: &'a std::option::Option, - ///

    An optional value that specifies whether you want the results sorted in Ascending or Descending order.

    - pub sort_order: &'a std::option::Option, - ///

    A token to resume pagination.

    - pub next_token: &'a std::option::Option, - ///

    The total number of items to return. If the total number of available items is more than the value specified in MaxResults, then a NextToken will be provided in the output that you can use to resume pagination.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListHumanTaskUisInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHumanTaskUisInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHyperParameterTuningJobsInputBody<'a> { - ///

    If the result of the previous ListHyperParameterTuningJobs request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// tuning jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The - /// maximum number of tuning jobs to return. The default value is - /// 10.

    - pub max_results: &'a std::option::Option, - ///

    The - /// field - /// to sort results by. The default is Name.

    - pub sort_by: &'a std::option::Option, - ///

    The sort - /// order - /// for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    A string in the tuning job name. This filter returns only tuning jobs whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only tuning jobs that were created after the - /// specified - /// time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only tuning jobs that were created before the - /// specified - /// time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only tuning jobs that were modified after the specified - /// time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only tuning jobs that were modified before the specified - /// time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only tuning jobs with the - /// specified - /// status.

    - pub status_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListHyperParameterTuningJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHyperParameterTuningJobsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("status_equals", &self.status_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImagesInputBody<'a> { - ///

    A filter that returns only images created on or after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only images created on or before the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only images modified on or after the specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only images modified on or before the specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    The maximum number of images to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    A filter that returns only images whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the previous call to ListImages didn't return the full set of images, - /// the call returns a token for getting the next set of images.

    - pub next_token: &'a std::option::Option, - ///

    The property used to sort results. The default value is CREATION_TIME.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is DESCENDING.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListImagesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImagesInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImageVersionsInputBody<'a> { - ///

    A filter that returns only versions created on or after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only versions created on or before the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    The name of the image to list the versions of.

    - pub image_name: &'a std::option::Option, - ///

    A filter that returns only versions modified on or after the specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only versions modified on or before the specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    The maximum number of versions to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    If the previous call to ListImageVersions didn't return the full set of - /// versions, the call returns a token for getting the next set of versions.

    - pub next_token: &'a std::option::Option, - ///

    The property used to sort results. The default value is CREATION_TIME.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is DESCENDING.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListImageVersionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImageVersionsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("image_name", &self.image_name); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLabelingJobsInputBody<'a> { - ///

    A filter that returns only labeling jobs created after the specified time - /// (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only labeling jobs created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only labeling jobs modified after the specified time - /// (timestamp).

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only labeling jobs modified before the specified time - /// (timestamp).

    - pub last_modified_time_before: &'a std::option::Option, - ///

    The maximum number of labeling jobs to return in each page of the response.

    - pub max_results: &'a std::option::Option, - ///

    If the result of the previous ListLabelingJobs request was truncated, the - /// response includes a NextToken. To retrieve the next set of labeling jobs, - /// use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    A string in the labeling job name. This filter returns only labeling jobs whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    A filter that retrieves only labeling jobs with a specific status.

    - pub status_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListLabelingJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLabelingJobsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("name_contains", &self.name_contains); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("status_equals", &self.status_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLabelingJobsForWorkteamInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the work team for which you want to see labeling - /// jobs for.

    - pub workteam_arn: &'a std::option::Option, - ///

    The maximum number of labeling jobs to return in each page of the response.

    - pub max_results: &'a std::option::Option, - ///

    If the result of the previous ListLabelingJobsForWorkteam request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// labeling jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    A filter that returns only labeling jobs created after the specified time - /// (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only labeling jobs created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter the limits jobs to only the ones whose job reference code contains the - /// specified string.

    - pub job_reference_code_contains: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListLabelingJobsForWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLabelingJobsForWorkteamInputBody"); - formatter.field("workteam_arn", &self.workteam_arn); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field( - "job_reference_code_contains", - &self.job_reference_code_contains, - ); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelBiasJobDefinitionsInputBody<'a> { - ///

    Name of the endpoint to monitor for model bias.

    - pub endpoint_name: &'a std::option::Option, - ///

    Whether to sort results by the Name or CreationTime field. The - /// default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    Whether to sort the results in Ascending or Descending order. - /// The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The token returned if the response is truncated. To retrieve the next set of job - /// executions, use it in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of model bias jobs to return in the response. The default value is - /// 10.

    - pub max_results: &'a std::option::Option, - ///

    Filter for model bias jobs whose name contains a specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only model bias jobs created before a specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only model bias jobs created after a specified time.

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelBiasJobDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelBiasJobDefinitionsInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelExplainabilityJobDefinitionsInputBody<'a> { - ///

    Name of the endpoint to monitor for model explainability.

    - pub endpoint_name: &'a std::option::Option, - ///

    Whether to sort results by the Name or CreationTime field. The - /// default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    Whether to sort the results in Ascending or Descending order. - /// The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The token returned if the response is truncated. To retrieve the next set of job - /// executions, use it in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of jobs to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    Filter for model explainability jobs whose name contains a specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only model explainability jobs created before a specified - /// time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only model explainability jobs created after a specified - /// time.

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelExplainabilityJobDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelExplainabilityJobDefinitionsInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelPackageGroupsInputBody<'a> { - ///

    A filter that returns only model groups created after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only model groups created before the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    The maximum number of results to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the model group name. This filter returns only model groups whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the result of the previous ListModelPackageGroups request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// model groups, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelPackageGroupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelPackageGroupsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelPackagesInputBody<'a> { - ///

    A filter that returns only model packages created after the specified time - /// (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only model packages created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    The maximum number of model packages to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the model package name. This filter returns only model packages whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only the model packages with the specified approval - /// status.

    - pub model_approval_status: &'a std::option::Option, - ///

    A filter that returns only model versions that belong to the specified model group.

    - pub model_package_group_name: &'a std::option::Option, - ///

    A filter that returns onlyl the model packages of the specified type. This can be one - /// of the following values.

    - ///
      - ///
    • - ///

      - /// VERSIONED - List only versioned models.

      - ///
    • - ///
    • - ///

      - /// UNVERSIONED - List only unversioined models.

      - ///
    • - ///
    • - ///

      - /// BOTH - List both versioned and unversioned models.

      - ///
    • - ///
    - pub model_package_type: &'a std::option::Option, - ///

    If the response to a previous ListModelPackages request was truncated, - /// the response includes a NextToken. To retrieve the next set of model - /// packages, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is - /// CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for the results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelPackagesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelPackagesInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("model_approval_status", &self.model_approval_status); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field("model_package_type", &self.model_package_type); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelQualityJobDefinitionsInputBody<'a> { - ///

    A filter that returns only model quality monitoring job definitions that are associated - /// with the specified endpoint.

    - pub endpoint_name: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListModelQualityJobDefinitions request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// model quality monitoring job definitions, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of results to return in a call to - /// ListModelQualityJobDefinitions.

    - pub max_results: &'a std::option::Option, - ///

    A string in the transform job name. This filter returns only model quality monitoring - /// job definitions whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only model quality monitoring job definitions created before the - /// specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only model quality monitoring job definitions created after the - /// specified time.

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelQualityJobDefinitionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelQualityJobDefinitionsInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelsInputBody<'a> { - ///

    Sorts the list of results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the response to a previous ListModels request was truncated, the - /// response includes a NextToken. To retrieve the next set of models, use the - /// token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of models to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A string in the training job name. This filter returns only models in the training - /// job whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only models created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only models with a creation time greater than or equal to the - /// specified time (timestamp).

    - pub creation_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListModelsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelsInputBody"); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMonitoringExecutionsInputBody<'a> { - ///

    Name of a specific schedule to fetch jobs for.

    - pub monitoring_schedule_name: &'a std::option::Option, - ///

    Name of a specific endpoint to fetch jobs for.

    - pub endpoint_name: &'a std::option::Option, - ///

    Whether to sort results by Status, CreationTime, - /// ScheduledTime field. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    Whether to sort the results in Ascending or Descending order. - /// The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The token returned if the response is truncated. To retrieve the next set of job - /// executions, use it in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of jobs to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    Filter for jobs scheduled before a specified time.

    - pub scheduled_time_before: &'a std::option::Option, - ///

    Filter for jobs scheduled after a specified time.

    - pub scheduled_time_after: &'a std::option::Option, - ///

    A filter that returns only jobs created before a specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only jobs created after a specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only jobs modified after a specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only jobs modified before a specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that retrieves only jobs with a specific status.

    - pub status_equals: &'a std::option::Option, - ///

    Gets a list of the monitoring job runs of the specified monitoring job - /// definitions.

    - pub monitoring_job_definition_name: &'a std::option::Option, - ///

    A filter that returns only the monitoring job runs of the specified monitoring - /// type.

    - pub monitoring_type_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListMonitoringExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMonitoringExecutionsInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("scheduled_time_before", &self.scheduled_time_before); - formatter.field("scheduled_time_after", &self.scheduled_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("status_equals", &self.status_equals); - formatter.field( - "monitoring_job_definition_name", - &self.monitoring_job_definition_name, - ); - formatter.field("monitoring_type_equals", &self.monitoring_type_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMonitoringSchedulesInputBody<'a> { - ///

    Name of a specific endpoint to fetch schedules for.

    - pub endpoint_name: &'a std::option::Option, - ///

    Whether to sort results by Status, CreationTime, - /// ScheduledTime field. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    Whether to sort the results in Ascending or Descending order. - /// The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The token returned if the response is truncated. To retrieve the next set of job - /// executions, use it in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of jobs to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    Filter for monitoring schedules whose name contains a specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only monitoring schedules created before a specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only monitoring schedules created after a specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only monitoring schedules modified before a specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only monitoring schedules modified after a specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only monitoring schedules modified before a specified time.

    - pub status_equals: &'a std::option::Option, - ///

    Gets a list of the monitoring schedules for the specified monitoring job - /// definition.

    - pub monitoring_job_definition_name: &'a std::option::Option, - ///

    A filter that returns only the monitoring schedules for the specified monitoring - /// type.

    - pub monitoring_type_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListMonitoringSchedulesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMonitoringSchedulesInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("status_equals", &self.status_equals); - formatter.field( - "monitoring_job_definition_name", - &self.monitoring_job_definition_name, - ); - formatter.field("monitoring_type_equals", &self.monitoring_type_equals); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListNotebookInstanceLifecycleConfigsInputBody<'a> { - ///

    If the result of a ListNotebookInstanceLifecycleConfigs request was - /// truncated, the response includes a NextToken. To get the next set of - /// lifecycle configurations, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of lifecycle configurations to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    Sorts the list of results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results.

    - pub sort_order: &'a std::option::Option, - ///

    A string in the lifecycle configuration name. This filter returns only lifecycle - /// configurations whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only lifecycle configurations that were created before the - /// specified time (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only lifecycle configurations that were created after the - /// specified time (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only lifecycle configurations that were modified before the - /// specified time (timestamp).

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only lifecycle configurations that were modified after the - /// specified time (timestamp).

    - pub last_modified_time_after: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListNotebookInstanceLifecycleConfigsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListNotebookInstanceLifecycleConfigsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListNotebookInstancesInputBody<'a> { - ///

    If the previous call to the ListNotebookInstances is truncated, the - /// response includes a NextToken. You can use this token in your subsequent - /// ListNotebookInstances request to fetch the next set of notebook - /// instances.

    - /// - ///

    You might specify a filter or a sort order in your request. When response is - /// truncated, you must use the same values for the filer and sort order in the next - /// request.

    - ///
    - pub next_token: &'a std::option::Option, - ///

    The maximum number of notebook instances to return.

    - pub max_results: &'a std::option::Option, - ///

    The field to sort results by. The default is Name.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results.

    - pub sort_order: &'a std::option::Option, - ///

    A string in the notebook instances' name. This filter returns only notebook - /// instances whose name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that returns only notebook instances that were created before the - /// specified time (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only notebook instances that were created after the specified - /// time (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only notebook instances that were modified before the - /// specified time (timestamp).

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A filter that returns only notebook instances that were modified after the - /// specified time (timestamp).

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only notebook instances with the specified status.

    - pub status_equals: &'a std::option::Option, - ///

    A string in the name of a notebook instances lifecycle configuration associated with - /// this notebook instance. This filter returns only notebook instances associated with a - /// lifecycle configuration with a name that contains the specified string.

    - pub notebook_instance_lifecycle_config_name_contains: - &'a std::option::Option, - ///

    A string in the name or URL of a Git repository associated with this notebook - /// instance. This filter returns only notebook instances associated with a git repository - /// with a name that contains the specified string.

    - pub default_code_repository_contains: &'a std::option::Option, - ///

    A filter that returns only notebook instances with associated with the specified git - /// repository.

    - pub additional_code_repository_equals: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListNotebookInstancesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListNotebookInstancesInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("name_contains", &self.name_contains); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("status_equals", &self.status_equals); - formatter.field( - "notebook_instance_lifecycle_config_name_contains", - &self.notebook_instance_lifecycle_config_name_contains, - ); - formatter.field( - "default_code_repository_contains", - &self.default_code_repository_contains, - ); - formatter.field( - "additional_code_repository_equals", - &self.additional_code_repository_equals, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineExecutionsInputBody<'a> { - ///

    The name of the pipeline.

    - pub pipeline_name: &'a std::option::Option, - ///

    A filter that returns the pipeline executions that were created after a specified - /// time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns the pipeline executions that were created before a specified - /// time.

    - pub created_before: &'a std::option::Option, - ///

    The field by which to sort results. The default is CreatedTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListPipelineExecutions request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipeline executions, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of pipeline executions to return in the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListPipelineExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineExecutionsInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineExecutionStepsInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, - ///

    If the result of the previous ListPipelineExecutionSteps request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipeline execution steps, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of pipeline execution steps to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    The field by which to sort results. The default is CreatedTime.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListPipelineExecutionStepsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineExecutionStepsInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineParametersForExecutionInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, - ///

    If the result of the previous ListPipelineParametersForExecution request was truncated, - /// the response includes a NextToken. To retrieve the next set of parameters, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of parameters to return in the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListPipelineParametersForExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineParametersForExecutionInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelinesInputBody<'a> { - ///

    The prefix of the pipeline name.

    - pub pipeline_name_prefix: &'a std::option::Option, - ///

    A filter that returns the pipelines that were created after a specified - /// time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns the pipelines that were created before a specified - /// time.

    - pub created_before: &'a std::option::Option, - ///

    The field by which to sort results. The default is CreatedTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListPipelines request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipelines, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of pipelines to return in the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListPipelinesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelinesInputBody"); - formatter.field("pipeline_name_prefix", &self.pipeline_name_prefix); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListProcessingJobsInputBody<'a> { - ///

    A filter that returns only processing jobs created after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only processing jobs created after the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only processing jobs modified after the specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only processing jobs modified before the specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A string in the processing job name. This filter returns only processing jobs whose - /// name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that retrieves only processing jobs with a specific status.

    - pub status_equals: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListProcessingJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of processing - /// jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of processing jobs to return in the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListProcessingJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListProcessingJobsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListProjectsInputBody<'a> { - ///

    A filter that returns the projects that were created after a specified - /// time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns the projects that were created before a specified - /// time.

    - pub creation_time_before: &'a std::option::Option, - ///

    The maximum number of projects to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A filter that returns the projects whose name contains a specified - /// string.

    - pub name_contains: &'a std::option::Option, - ///

    If the result of the previous ListProjects request was truncated, - /// the response includes a NextToken. To retrieve the next set of projects, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The field by which to sort results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListProjectsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListProjectsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("max_results", &self.max_results); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSubscribedWorkteamsInputBody<'a> { - ///

    A string in the work team name. This filter returns only work teams whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the result of the previous ListSubscribedWorkteams request was - /// truncated, the response includes a NextToken. To retrieve the next set of - /// labeling jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of work teams to return in each page of the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListSubscribedWorkteamsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSubscribedWorkteamsInputBody"); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource whose tags you want to - /// retrieve.

    - pub resource_arn: &'a std::option::Option, - ///

    If the response to the previous ListTags request is truncated, Amazon SageMaker - /// returns this token. To retrieve the next set of tags, use it in the subsequent request. - ///

    - pub next_token: &'a std::option::Option, - ///

    Maximum number of tags to return.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrainingJobsInputBody<'a> { - ///

    If the result of the previous ListTrainingJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of training - /// jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of training jobs to return in the response.

    - pub max_results: &'a std::option::Option, - ///

    A filter that returns only training jobs created after the specified time - /// (timestamp).

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only training jobs created before the specified time - /// (timestamp).

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only training jobs modified after the specified time - /// (timestamp).

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only training jobs modified before the specified time - /// (timestamp).

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A string in the training job name. This filter returns only training jobs whose - /// name contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that retrieves only training jobs with a specific status.

    - pub status_equals: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTrainingJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrainingJobsInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrainingJobsForHyperParameterTuningJobInputBody<'a> { - ///

    The name of the tuning job whose training jobs you want to list.

    - pub hyper_parameter_tuning_job_name: &'a std::option::Option, - ///

    If the result of the previous ListTrainingJobsForHyperParameterTuningJob - /// request was truncated, the response includes a NextToken. To retrieve the - /// next set of training jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of training jobs to return. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    A filter that returns only training jobs with the - /// specified - /// status.

    - pub status_equals: &'a std::option::Option, - ///

    The field to sort - /// results - /// by. The default is Name.

    - ///

    If the value of this field is FinalObjectiveMetricValue, any training - /// jobs that did not return an objective metric are not listed.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order - /// for - /// results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTrainingJobsForHyperParameterTuningJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrainingJobsForHyperParameterTuningJobInputBody"); - formatter.field( - "hyper_parameter_tuning_job_name", - &self.hyper_parameter_tuning_job_name, - ); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTransformJobsInputBody<'a> { - ///

    A filter that returns only transform jobs created after the specified time.

    - pub creation_time_after: &'a std::option::Option, - ///

    A filter that returns only transform jobs created before the specified time.

    - pub creation_time_before: &'a std::option::Option, - ///

    A filter that returns only transform jobs modified after the specified time.

    - pub last_modified_time_after: &'a std::option::Option, - ///

    A filter that returns only transform jobs modified before the specified time.

    - pub last_modified_time_before: &'a std::option::Option, - ///

    A string in the transform job name. This filter returns only transform jobs whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    A filter that retrieves only transform jobs with a specific status.

    - pub status_equals: &'a std::option::Option, - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If the result of the previous ListTransformJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of transform - /// jobs, use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of transform jobs to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTransformJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTransformJobsInputBody"); - formatter.field("creation_time_after", &self.creation_time_after); - formatter.field("creation_time_before", &self.creation_time_before); - formatter.field("last_modified_time_after", &self.last_modified_time_after); - formatter.field("last_modified_time_before", &self.last_modified_time_before); - formatter.field("name_contains", &self.name_contains); - formatter.field("status_equals", &self.status_equals); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrialComponentsInputBody<'a> { - ///

    A filter that returns only components that are part of the specified experiment. If you - /// specify ExperimentName, you can't filter by SourceArn or - /// TrialName.

    - pub experiment_name: &'a std::option::Option, - ///

    A filter that returns only components that are part of the specified trial. If you specify - /// TrialName, you can't filter by ExperimentName or - /// SourceArn.

    - pub trial_name: &'a std::option::Option, - ///

    A filter that returns only components that have the specified source Amazon Resource Name - /// (ARN). If you specify SourceArn, you can't filter by ExperimentName - /// or TrialName.

    - pub source_arn: &'a std::option::Option, - ///

    A filter that returns only components created after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only components created before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The maximum number of components to return in the response. The default value is - /// 10.

    - pub max_results: &'a std::option::Option, - ///

    If the previous call to ListTrialComponents didn't return the full set of - /// components, the call returns a token for getting the next set of components.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTrialComponentsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrialComponentsInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("trial_name", &self.trial_name); - formatter.field("source_arn", &self.source_arn); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrialsInputBody<'a> { - ///

    A filter that returns only trials that are part of the specified experiment.

    - pub experiment_name: &'a std::option::Option, - ///

    A filter that returns only trials that are associated with the specified trial - /// component.

    - pub trial_component_name: &'a std::option::Option, - ///

    A filter that returns only trials created after the specified time.

    - pub created_after: &'a std::option::Option, - ///

    A filter that returns only trials created before the specified time.

    - pub created_before: &'a std::option::Option, - ///

    The property used to sort results. The default value is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order. The default value is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    The maximum number of trials to return in the response. The default value is 10.

    - pub max_results: &'a std::option::Option, - ///

    If the previous call to ListTrials didn't return the full set of trials, the - /// call returns a token for getting the next set of trials.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTrialsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrialsInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("created_after", &self.created_after); - formatter.field("created_before", &self.created_before); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListUserProfilesInputBody<'a> { - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    Returns a list up to a specified limit.

    - pub max_results: &'a std::option::Option, - ///

    The sort order for the results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    The parameter by which to sort the results. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    A parameter by which to filter the results.

    - pub domain_id_equals: &'a std::option::Option, - ///

    A parameter by which to filter the results.

    - pub user_profile_name_contains: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListUserProfilesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListUserProfilesInputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("sort_order", &self.sort_order); - formatter.field("sort_by", &self.sort_by); - formatter.field("domain_id_equals", &self.domain_id_equals); - formatter.field( - "user_profile_name_contains", - &self.user_profile_name_contains, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListWorkforcesInputBody<'a> { - ///

    Sort workforces using the workforce name or creation date.

    - pub sort_by: &'a std::option::Option, - ///

    Sort workforces in ascending or descending order.

    - pub sort_order: &'a std::option::Option, - ///

    A filter you can use to search for workforces using part of the workforce name.

    - pub name_contains: &'a std::option::Option, - ///

    A token to resume pagination.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of workforces returned in the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListWorkforcesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListWorkforcesInputBody"); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListWorkteamsInputBody<'a> { - ///

    The field to sort results by. The default is CreationTime.

    - pub sort_by: &'a std::option::Option, - ///

    The sort order for results. The default is Ascending.

    - pub sort_order: &'a std::option::Option, - ///

    A string in the work team's name. This filter returns only work teams whose name - /// contains the specified string.

    - pub name_contains: &'a std::option::Option, - ///

    If the result of the previous ListWorkteams request was truncated, the - /// response includes a NextToken. To retrieve the next set of labeling jobs, - /// use the token in the next request.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of work teams to return in each page of the response.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListWorkteamsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListWorkteamsInputBody"); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("name_contains", &self.name_contains); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutModelPackageGroupPolicyInputBody<'a> { - ///

    The name of the model group to add a resource policy to.

    - pub model_package_group_name: &'a std::option::Option, - ///

    The resource policy for the model group.

    - pub resource_policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutModelPackageGroupPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutModelPackageGroupPolicyInputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field("resource_policy", &self.resource_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterDevicesInputBody<'a> { - ///

    The name of the fleet.

    - pub device_fleet_name: &'a std::option::Option, - ///

    A list of devices to register with SageMaker Edge Manager.

    - pub devices: &'a std::option::Option>, - ///

    The tags associated with devices.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RegisterDevicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterDevicesInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("devices", &self.devices); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RenderUiTemplateInputBody<'a> { - ///

    A Template object containing the worker UI template to render.

    - pub ui_template: &'a std::option::Option, - ///

    A RenderableTask object containing a representative task to - /// render.

    - pub task: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the - /// template.

    - pub role_arn: &'a std::option::Option, - ///

    The HumanTaskUiArn of the worker UI that you want to render. Do not - /// provide a HumanTaskUiArn if you use the UiTemplate - /// parameter.

    - ///

    See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig.

    - pub human_task_ui_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RenderUiTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RenderUiTemplateInputBody"); - formatter.field("ui_template", &self.ui_template); - formatter.field("task", &self.task); - formatter.field("role_arn", &self.role_arn); - formatter.field("human_task_ui_arn", &self.human_task_ui_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SearchInputBody<'a> { - ///

    The name of the Amazon SageMaker resource to search for.

    - pub resource: &'a std::option::Option, - ///

    A Boolean conditional statement. Resources must satisfy this condition to be - /// included in search results. You must provide at least one subexpression, filter, or - /// nested filter. The maximum number of recursive SubExpressions, - /// NestedFilters, and Filters that can be included in a - /// SearchExpression object is 50.

    - pub search_expression: &'a std::option::Option, - ///

    The name of the resource property used to sort the SearchResults. The - /// default is LastModifiedTime.

    - pub sort_by: &'a std::option::Option, - ///

    How SearchResults are ordered. Valid values are Ascending or - /// Descending. The default is Descending.

    - pub sort_order: &'a std::option::Option, - ///

    If more than MaxResults resources match the specified - /// SearchExpression, the response includes a - /// NextToken. The NextToken can be passed to the next - /// SearchRequest to continue retrieving results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of results to return.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SearchInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SearchInputBody"); - formatter.field("resource", &self.resource); - formatter.field("search_expression", &self.search_expression); - formatter.field("sort_by", &self.sort_by); - formatter.field("sort_order", &self.sort_order); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendPipelineExecutionStepFailureInputBody<'a> { - ///

    The pipeline generated token from the Amazon SQS queue.

    - pub callback_token: &'a std::option::Option, - ///

    A message describing why the step failed.

    - pub failure_reason: &'a std::option::Option, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendPipelineExecutionStepFailureInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendPipelineExecutionStepFailureInputBody"); - formatter.field("callback_token", &self.callback_token); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendPipelineExecutionStepSuccessInputBody<'a> { - ///

    The pipeline generated token from the Amazon SQS queue.

    - pub callback_token: &'a std::option::Option, - ///

    A list of the output parameters of the callback step.

    - pub output_parameters: &'a std::option::Option>, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendPipelineExecutionStepSuccessInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendPipelineExecutionStepSuccessInputBody"); - formatter.field("callback_token", &self.callback_token); - formatter.field("output_parameters", &self.output_parameters); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartMonitoringScheduleInputBody<'a> { - ///

    The name of the schedule to start.

    - pub monitoring_schedule_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartNotebookInstanceInputBody<'a> { - ///

    The name of the notebook instance to start.

    - pub notebook_instance_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartPipelineExecutionInputBody<'a> { - ///

    The name of the pipeline.

    - pub pipeline_name: &'a std::option::Option, - ///

    The display name of the pipeline execution.

    - pub pipeline_execution_display_name: &'a std::option::Option, - ///

    Contains a list of pipeline parameters. This list can be empty.

    - pub pipeline_parameters: &'a std::option::Option>, - ///

    The description of the pipeline execution.

    - pub pipeline_execution_description: &'a std::option::Option, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartPipelineExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartPipelineExecutionInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field( - "pipeline_execution_display_name", - &self.pipeline_execution_display_name, - ); - formatter.field("pipeline_parameters", &self.pipeline_parameters); - formatter.field( - "pipeline_execution_description", - &self.pipeline_execution_description, - ); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopAutoMLJobInputBody<'a> { - ///

    The name of the object you are requesting.

    - pub auto_ml_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopAutoMLJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopAutoMLJobInputBody"); - formatter.field("auto_ml_job_name", &self.auto_ml_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopCompilationJobInputBody<'a> { - ///

    The name of the model compilation job to stop.

    - pub compilation_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopCompilationJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopCompilationJobInputBody"); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopEdgePackagingJobInputBody<'a> { - ///

    The name of the edge packaging job.

    - pub edge_packaging_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopEdgePackagingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopEdgePackagingJobInputBody"); - formatter.field("edge_packaging_job_name", &self.edge_packaging_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopHyperParameterTuningJobInputBody<'a> { - ///

    The name of the tuning job to stop.

    - pub hyper_parameter_tuning_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopHyperParameterTuningJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopHyperParameterTuningJobInputBody"); - formatter.field( - "hyper_parameter_tuning_job_name", - &self.hyper_parameter_tuning_job_name, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopLabelingJobInputBody<'a> { - ///

    The name of the labeling job to stop.

    - pub labeling_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopLabelingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopLabelingJobInputBody"); - formatter.field("labeling_job_name", &self.labeling_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopMonitoringScheduleInputBody<'a> { - ///

    The name of the schedule to stop.

    - pub monitoring_schedule_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopNotebookInstanceInputBody<'a> { - ///

    The name of the notebook instance to terminate.

    - pub notebook_instance_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopPipelineExecutionInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, - ///

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the - /// operation. An idempotent operation completes no more than one time.

    - pub client_request_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopPipelineExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopPipelineExecutionInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.field("client_request_token", &self.client_request_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopProcessingJobInputBody<'a> { - ///

    The name of the processing job to stop.

    - pub processing_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopProcessingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopProcessingJobInputBody"); - formatter.field("processing_job_name", &self.processing_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopTrainingJobInputBody<'a> { - ///

    The name of the training job to stop.

    - pub training_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopTrainingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopTrainingJobInputBody"); - formatter.field("training_job_name", &self.training_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopTransformJobInputBody<'a> { - ///

    The name of the transform job to stop.

    - pub transform_job_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopTransformJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopTransformJobInputBody"); - formatter.field("transform_job_name", &self.transform_job_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateActionInputBody<'a> { - ///

    The name of the action to update.

    - pub action_name: &'a std::option::Option, - ///

    The new description for the action.

    - pub description: &'a std::option::Option, - ///

    The new status for the action.

    - pub status: &'a std::option::Option, - ///

    The new list of properties. Overwrites the current property list.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of properties to remove.

    - pub properties_to_remove: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateActionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateActionInputBody"); - formatter.field("action_name", &self.action_name); - formatter.field("description", &self.description); - formatter.field("status", &self.status); - formatter.field("properties", &self.properties); - formatter.field("properties_to_remove", &self.properties_to_remove); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAppImageConfigInputBody<'a> { - ///

    The name of the AppImageConfig to update.

    - pub app_image_config_name: &'a std::option::Option, - ///

    The new KernelGateway app to run on the image.

    - pub kernel_gateway_image_config: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateAppImageConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAppImageConfigInputBody"); - formatter.field("app_image_config_name", &self.app_image_config_name); - formatter.field( - "kernel_gateway_image_config", - &self.kernel_gateway_image_config, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateArtifactInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the artifact to update.

    - pub artifact_arn: &'a std::option::Option, - ///

    The new name for the artifact.

    - pub artifact_name: &'a std::option::Option, - ///

    The new list of properties. Overwrites the current property list.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of properties to remove.

    - pub properties_to_remove: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateArtifactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateArtifactInputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.field("artifact_name", &self.artifact_name); - formatter.field("properties", &self.properties); - formatter.field("properties_to_remove", &self.properties_to_remove); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCodeRepositoryInputBody<'a> { - ///

    The name of the Git repository to update.

    - pub code_repository_name: &'a std::option::Option, - ///

    The configuration of the git repository, including the URL and the Amazon Resource - /// Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to - /// access the repository. The secret must have a staging label of AWSCURRENT - /// and must be in the following format:

    - ///

    - /// {"username": UserName, "password": - /// Password} - ///

    - pub git_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateCodeRepositoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCodeRepositoryInputBody"); - formatter.field("code_repository_name", &self.code_repository_name); - formatter.field("git_config", &self.git_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContextInputBody<'a> { - ///

    The name of the context to update.

    - pub context_name: &'a std::option::Option, - ///

    The new description for the context.

    - pub description: &'a std::option::Option, - ///

    The new list of properties. Overwrites the current property list.

    - pub properties: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    A list of properties to remove.

    - pub properties_to_remove: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateContextInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContextInputBody"); - formatter.field("context_name", &self.context_name); - formatter.field("description", &self.description); - formatter.field("properties", &self.properties); - formatter.field("properties_to_remove", &self.properties_to_remove); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDeviceFleetInputBody<'a> { - ///

    The name of the fleet.

    - pub device_fleet_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the device.

    - pub role_arn: &'a std::option::Option, - ///

    Description of the fleet.

    - pub description: &'a std::option::Option, - ///

    Output configuration for storing sample data collected by the fleet.

    - pub output_config: &'a std::option::Option, - ///

    Whether to create an AWS IoT Role Alias during device fleet creation. - /// The name of the role alias generated will match this pattern: - /// "SageMakerEdge-{DeviceFleetName}".

    - ///

    For example, if your device fleet is called "demo-fleet", the name of - /// the role alias will be "SageMakerEdge-demo-fleet".

    - pub enable_iot_role_alias: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateDeviceFleetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDeviceFleetInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("role_arn", &self.role_arn); - formatter.field("description", &self.description); - formatter.field("output_config", &self.output_config); - formatter.field("enable_iot_role_alias", &self.enable_iot_role_alias); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDevicesInputBody<'a> { - ///

    The name of the fleet the devices belong to.

    - pub device_fleet_name: &'a std::option::Option, - ///

    List of devices to register with Edge Manager agent.

    - pub devices: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateDevicesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDevicesInputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("devices", &self.devices); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDomainInputBody<'a> { - ///

    The ID of the domain to be updated.

    - pub domain_id: &'a std::option::Option, - ///

    A collection of settings.

    - pub default_user_settings: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateDomainInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDomainInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("default_user_settings", &self.default_user_settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEndpointInputBody<'a> { - ///

    The name of the endpoint whose configuration you want to update.

    - pub endpoint_name: &'a std::option::Option, - ///

    The name of the new endpoint configuration.

    - pub endpoint_config_name: &'a std::option::Option, - ///

    When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To - /// retain the variant properties of an endpoint when updating it, set - /// RetainAllVariantProperties to true. To use the variant - /// properties specified in a new EndpointConfig call when updating an - /// endpoint, set RetainAllVariantProperties to false. The default - /// is false.

    - pub retain_all_variant_properties: &'a bool, - ///

    When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties, whose value is set to - /// true, ExcludeRetainedVariantProperties specifies the list - /// of type VariantProperty to override with the values provided by - /// EndpointConfig. If you don't specify a value for - /// ExcludeAllVariantProperties, no variant properties are overridden. - ///

    - pub exclude_retained_variant_properties: - &'a std::option::Option>, - ///

    The deployment configuration for the endpoint to be updated.

    - pub deployment_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateEndpointInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEndpointInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.field( - "retain_all_variant_properties", - &self.retain_all_variant_properties, - ); - formatter.field( - "exclude_retained_variant_properties", - &self.exclude_retained_variant_properties, - ); - formatter.field("deployment_config", &self.deployment_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEndpointWeightsAndCapacitiesInputBody<'a> { - ///

    The name of an existing Amazon SageMaker endpoint.

    - pub endpoint_name: &'a std::option::Option, - ///

    An object that provides new capacity and weight values for a variant.

    - pub desired_weights_and_capacities: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateEndpointWeightsAndCapacitiesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEndpointWeightsAndCapacitiesInputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field( - "desired_weights_and_capacities", - &self.desired_weights_and_capacities, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateExperimentInputBody<'a> { - ///

    The name of the experiment to update.

    - pub experiment_name: &'a std::option::Option, - ///

    The name of the experiment as displayed. The name doesn't need to be unique. If - /// DisplayName isn't specified, ExperimentName is displayed.

    - pub display_name: &'a std::option::Option, - ///

    The description of the experiment.

    - pub description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateExperimentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateExperimentInputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("display_name", &self.display_name); - formatter.field("description", &self.description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateImageInputBody<'a> { - ///

    A list of properties to delete. Only the Description and - /// DisplayName properties can be deleted.

    - pub delete_properties: &'a std::option::Option>, - ///

    The new description for the image.

    - pub description: &'a std::option::Option, - ///

    The new display name for the image.

    - pub display_name: &'a std::option::Option, - ///

    The name of the image to update.

    - pub image_name: &'a std::option::Option, - ///

    The new Amazon Resource Name (ARN) for the IAM role that enables Amazon SageMaker to perform tasks on your behalf.

    - pub role_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateImageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateImageInputBody"); - formatter.field("delete_properties", &self.delete_properties); - formatter.field("description", &self.description); - formatter.field("display_name", &self.display_name); - formatter.field("image_name", &self.image_name); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateModelPackageInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the model.

    - pub model_package_arn: &'a std::option::Option, - ///

    The approval status of the model.

    - pub model_approval_status: &'a std::option::Option, - ///

    A description for the approval status of the model.

    - pub approval_description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateModelPackageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateModelPackageInputBody"); - formatter.field("model_package_arn", &self.model_package_arn); - formatter.field("model_approval_status", &self.model_approval_status); - formatter.field("approval_description", &self.approval_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMonitoringScheduleInputBody<'a> { - ///

    The name of the monitoring schedule. The name must be unique within an AWS Region within - /// an AWS account.

    - pub monitoring_schedule_name: &'a std::option::Option, - ///

    The configuration object that specifies the monitoring schedule and defines the - /// monitoring job.

    - pub monitoring_schedule_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMonitoringScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMonitoringScheduleInputBody"); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.field( - "monitoring_schedule_config", - &self.monitoring_schedule_config, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateNotebookInstanceInputBody<'a> { - ///

    The name of the notebook instance to update.

    - pub notebook_instance_name: &'a std::option::Option, - ///

    The Amazon ML compute instance type.

    - pub instance_type: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can assume to access the - /// notebook instance. For more information, see Amazon SageMaker Roles.

    - /// - ///

    To be able to pass this role to Amazon SageMaker, the caller of this API must have the - /// iam:PassRole permission.

    - ///
    - pub role_arn: &'a std::option::Option, - ///

    The name of a lifecycle configuration to associate with the notebook instance. For - /// information about lifestyle configurations, see Step 2.1: (Optional) - /// Customize a Notebook Instance.

    - pub lifecycle_config_name: &'a std::option::Option, - ///

    Set to true to remove the notebook instance lifecycle configuration - /// currently associated with the notebook instance. This operation is idempotent. If you - /// specify a lifecycle configuration that is not associated with the notebook instance when - /// you call this method, it does not throw an error.

    - pub disassociate_lifecycle_config: &'a bool, - ///

    The size, in GB, of the ML storage volume to attach to the notebook instance. The - /// default value is 5 GB. ML storage volumes are encrypted, so Amazon SageMaker can't determine the - /// amount of available free space on the volume. Because of this, you can increase the - /// volume size when you update a notebook instance, but you can't decrease the volume size. - /// If you want to decrease the size of the ML storage volume in use, create a new notebook - /// instance with the desired size.

    - pub volume_size_in_gb: &'a std::option::Option, - ///

    The Git repository to associate with the notebook instance as its default code - /// repository. This can be either the name of a Git repository stored as a resource in your - /// account, or the URL of a Git repository in AWS CodeCommit or in any - /// other Git repository. When you open a notebook instance, it opens in the directory that - /// contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker - /// Notebook Instances.

    - pub default_code_repository: &'a std::option::Option, - ///

    An array of up to three Git repositories to associate with the notebook instance. - /// These can be either the names of Git repositories stored as resources in your account, - /// or the URL of Git repositories in AWS CodeCommit or in any - /// other Git repository. These repositories are cloned at the same level as the default - /// repository of your notebook instance. For more information, see Associating Git - /// Repositories with Amazon SageMaker Notebook Instances.

    - pub additional_code_repositories: &'a std::option::Option>, - ///

    A list of the Elastic Inference (EI) instance types to associate with this notebook - /// instance. Currently only one EI instance type can be associated with a notebook - /// instance. For more information, see Using Elastic Inference in Amazon - /// SageMaker.

    - pub accelerator_types: - &'a std::option::Option>, - ///

    A list of the Elastic Inference (EI) instance types to remove from this notebook - /// instance. This operation is idempotent. If you specify an accelerator type that is not - /// associated with the notebook instance when you call this method, it does not throw an - /// error.

    - pub disassociate_accelerator_types: &'a bool, - ///

    The name or URL of the default Git repository to remove from this notebook instance. - /// This operation is idempotent. If you specify a Git repository that is not associated - /// with the notebook instance when you call this method, it does not throw an error.

    - pub disassociate_default_code_repository: &'a bool, - ///

    A list of names or URLs of the default Git repositories to remove from this notebook - /// instance. This operation is idempotent. If you specify a Git repository that is not - /// associated with the notebook instance when you call this method, it does not throw an - /// error.

    - pub disassociate_additional_code_repositories: &'a bool, - ///

    Whether root access is enabled or disabled for users of the notebook instance. The - /// default value is Enabled.

    - /// - ///

    If you set this to Disabled, users don't have root access on the - /// notebook instance, but lifecycle configuration scripts still run with root - /// permissions.

    - ///
    - pub root_access: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateNotebookInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateNotebookInstanceInputBody"); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.field("instance_type", &self.instance_type); - formatter.field("role_arn", &self.role_arn); - formatter.field("lifecycle_config_name", &self.lifecycle_config_name); - formatter.field( - "disassociate_lifecycle_config", - &self.disassociate_lifecycle_config, - ); - formatter.field("volume_size_in_gb", &self.volume_size_in_gb); - formatter.field("default_code_repository", &self.default_code_repository); - formatter.field( - "additional_code_repositories", - &self.additional_code_repositories, - ); - formatter.field("accelerator_types", &self.accelerator_types); - formatter.field( - "disassociate_accelerator_types", - &self.disassociate_accelerator_types, - ); - formatter.field( - "disassociate_default_code_repository", - &self.disassociate_default_code_repository, - ); - formatter.field( - "disassociate_additional_code_repositories", - &self.disassociate_additional_code_repositories, - ); - formatter.field("root_access", &self.root_access); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateNotebookInstanceLifecycleConfigInputBody<'a> { - ///

    The name of the lifecycle configuration.

    - pub notebook_instance_lifecycle_config_name: &'a std::option::Option, - ///

    The shell script that runs only once, when you create a notebook instance. The shell - /// script must be a base64-encoded string.

    - pub on_create: - &'a std::option::Option>, - ///

    The shell script that runs every time you start a notebook instance, including when - /// you create the notebook instance. The shell script must be a base64-encoded - /// string.

    - pub on_start: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateNotebookInstanceLifecycleConfigInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateNotebookInstanceLifecycleConfigInputBody"); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.field("on_create", &self.on_create); - formatter.field("on_start", &self.on_start); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePipelineInputBody<'a> { - ///

    The name of the pipeline to update.

    - pub pipeline_name: &'a std::option::Option, - ///

    The display name of the pipeline.

    - pub pipeline_display_name: &'a std::option::Option, - ///

    The JSON pipeline definition.

    - pub pipeline_definition: &'a std::option::Option, - ///

    The description of the pipeline.

    - pub pipeline_description: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) that the pipeline uses to execute.

    - pub role_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdatePipelineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePipelineInputBody"); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field("pipeline_display_name", &self.pipeline_display_name); - formatter.field("pipeline_definition", &self.pipeline_definition); - formatter.field("pipeline_description", &self.pipeline_description); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePipelineExecutionInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - pub pipeline_execution_arn: &'a std::option::Option, - ///

    The description of the pipeline execution.

    - pub pipeline_execution_description: &'a std::option::Option, - ///

    The display name of the pipeline execution.

    - pub pipeline_execution_display_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdatePipelineExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePipelineExecutionInputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.field( - "pipeline_execution_description", - &self.pipeline_execution_description, - ); - formatter.field( - "pipeline_execution_display_name", - &self.pipeline_execution_display_name, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrainingJobInputBody<'a> { - ///

    The name of a training job to update the Debugger profiling configuration.

    - pub training_job_name: &'a std::option::Option, - ///

    Configuration information for Debugger system monitoring, framework profiling, and - /// storage paths.

    - pub profiler_config: &'a std::option::Option, - ///

    Configuration information for Debugger rules for profiling system and framework - /// metrics.

    - pub profiler_rule_configurations: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateTrainingJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrainingJobInputBody"); - formatter.field("training_job_name", &self.training_job_name); - formatter.field("profiler_config", &self.profiler_config); - formatter.field( - "profiler_rule_configurations", - &self.profiler_rule_configurations, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrialInputBody<'a> { - ///

    The name of the trial to update.

    - pub trial_name: &'a std::option::Option, - ///

    The name of the trial as displayed. The name doesn't need to be unique. If - /// DisplayName isn't specified, TrialName is displayed.

    - pub display_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateTrialInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrialInputBody"); - formatter.field("trial_name", &self.trial_name); - formatter.field("display_name", &self.display_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrialComponentInputBody<'a> { - ///

    The name of the component to update.

    - pub trial_component_name: &'a std::option::Option, - ///

    The name of the component as displayed. The name doesn't need to be unique. If - /// DisplayName isn't specified, TrialComponentName is - /// displayed.

    - pub display_name: &'a std::option::Option, - ///

    The new status of the component.

    - pub status: &'a std::option::Option, - ///

    When the component started.

    - pub start_time: &'a std::option::Option, - ///

    When the component ended.

    - pub end_time: &'a std::option::Option, - ///

    Replaces all of the component's hyperparameters with the specified hyperparameters.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The hyperparameters to remove from the component.

    - pub parameters_to_remove: &'a std::option::Option>, - ///

    Replaces all of the component's input artifacts with the specified artifacts.

    - pub input_artifacts: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The input artifacts to remove from the component.

    - pub input_artifacts_to_remove: &'a std::option::Option>, - ///

    Replaces all of the component's output artifacts with the specified artifacts.

    - pub output_artifacts: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The output artifacts to remove from the component.

    - pub output_artifacts_to_remove: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateTrialComponentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrialComponentInputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("display_name", &self.display_name); - formatter.field("status", &self.status); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("parameters", &self.parameters); - formatter.field("parameters_to_remove", &self.parameters_to_remove); - formatter.field("input_artifacts", &self.input_artifacts); - formatter.field("input_artifacts_to_remove", &self.input_artifacts_to_remove); - formatter.field("output_artifacts", &self.output_artifacts); - formatter.field( - "output_artifacts_to_remove", - &self.output_artifacts_to_remove, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUserProfileInputBody<'a> { - ///

    The domain ID.

    - pub domain_id: &'a std::option::Option, - ///

    The user profile name.

    - pub user_profile_name: &'a std::option::Option, - ///

    A collection of settings.

    - pub user_settings: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateUserProfileInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUserProfileInputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("user_settings", &self.user_settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateWorkforceInputBody<'a> { - ///

    The name of the private workforce that you want to update. You can find your workforce - /// name by using the operation.

    - pub workforce_name: &'a std::option::Option, - ///

    A list of one to ten worker IP address ranges (CIDRs) that can be used to - /// access tasks assigned to this workforce.

    - ///

    Maximum: Ten CIDR values

    - pub source_ip_config: &'a std::option::Option, - ///

    Use this parameter to update your OIDC Identity Provider (IdP) - /// configuration for a workforce made using your own IdP.

    - pub oidc_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateWorkforceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateWorkforceInputBody"); - formatter.field("workforce_name", &self.workforce_name); - formatter.field("source_ip_config", &self.source_ip_config); - formatter.field("oidc_config", &self.oidc_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateWorkteamInputBody<'a> { - ///

    The name of the work team to update.

    - pub workteam_name: &'a std::option::Option, - ///

    A list of MemberDefinition objects that contains objects that identify - /// the workers that make up the work team.

    - ///

    Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). - /// For private workforces created using Amazon Cognito use - /// CognitoMemberDefinition. For workforces created using your own OIDC identity - /// provider (IdP) use OidcMemberDefinition. You should not provide input - /// for both of these parameters in a single request.

    - ///

    For workforces created using Amazon Cognito, private work teams correspond to Amazon Cognito - /// user groups within the user pool used to create a workforce. All of the - /// CognitoMemberDefinition objects that make up the member definition must - /// have the same ClientId and UserPool values. To add a Amazon - /// Cognito user group to an existing worker pool, see Adding groups to a User - /// Pool. For more information about user pools, see Amazon Cognito User - /// Pools.

    - ///

    For workforces created using your own OIDC IdP, specify the user groups that you want - /// to include in your private work team in OidcMemberDefinition by listing - /// those groups in Groups. Be aware that user groups that are already in the - /// work team must also be listed in Groups when you make this request to - /// remain on the work team. If you do not include these user groups, they will no longer be - /// associated with the work team you update.

    - pub member_definitions: &'a std::option::Option>, - ///

    An updated description for the work team.

    - pub description: &'a std::option::Option, - ///

    Configures SNS topic notifications for available or expiring work items

    - pub notification_configuration: - &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateWorkteamInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateWorkteamInputBody"); - formatter.field("workteam_name", &self.workteam_name); - formatter.field("member_definitions", &self.member_definitions); - formatter.field("description", &self.description); - formatter.field( - "notification_configuration", - &self.notification_configuration, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AddAssociationOutputBody { - ///

    The ARN of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] - pub source_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the destination.

    - #[serde(rename = "DestinationArn")] - #[serde(default)] - pub destination_arn: std::option::Option, -} -impl std::fmt::Debug for AddAssociationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddAssociationOutputBody"); - formatter.field("source_arn", &self.source_arn); - formatter.field("destination_arn", &self.destination_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AddTagsOutputBody { - ///

    A list of tags associated with the Amazon SageMaker resource.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for AddTagsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddTagsOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateTrialComponentOutputBody { - ///

    The ARN of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, -} -impl std::fmt::Debug for AssociateTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateTrialComponentOutputBody"); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.field("trial_arn", &self.trial_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateActionOutputBody { - ///

    The Amazon Resource Name (ARN) of the action.

    - #[serde(rename = "ActionArn")] - #[serde(default)] - pub action_arn: std::option::Option, -} -impl std::fmt::Debug for CreateActionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateActionOutputBody"); - formatter.field("action_arn", &self.action_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAlgorithmOutputBody { - ///

    The Amazon Resource Name (ARN) of the new algorithm.

    - #[serde(rename = "AlgorithmArn")] - #[serde(default)] - pub algorithm_arn: std::option::Option, -} -impl std::fmt::Debug for CreateAlgorithmOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAlgorithmOutputBody"); - formatter.field("algorithm_arn", &self.algorithm_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAppOutputBody { - ///

    The Amazon Resource Name (ARN) of the app.

    - #[serde(rename = "AppArn")] - #[serde(default)] - pub app_arn: std::option::Option, -} -impl std::fmt::Debug for CreateAppOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAppOutputBody"); - formatter.field("app_arn", &self.app_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAppImageConfigOutputBody { - ///

    The Amazon Resource Name (ARN) of the AppImageConfig.

    - #[serde(rename = "AppImageConfigArn")] - #[serde(default)] - pub app_image_config_arn: std::option::Option, -} -impl std::fmt::Debug for CreateAppImageConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAppImageConfigOutputBody"); - formatter.field("app_image_config_arn", &self.app_image_config_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateArtifactOutputBody { - ///

    The Amazon Resource Name (ARN) of the artifact.

    - #[serde(rename = "ArtifactArn")] - #[serde(default)] - pub artifact_arn: std::option::Option, -} -impl std::fmt::Debug for CreateArtifactOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateArtifactOutputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAutoMLJobOutputBody { - ///

    The unique ARN that is assigned to the AutoML job when it is created.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] - pub auto_ml_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateAutoMLJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAutoMLJobOutputBody"); - formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCodeRepositoryOutputBody { - ///

    The Amazon Resource Name (ARN) of the new repository.

    - #[serde(rename = "CodeRepositoryArn")] - #[serde(default)] - pub code_repository_arn: std::option::Option, -} -impl std::fmt::Debug for CreateCodeRepositoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCodeRepositoryOutputBody"); - formatter.field("code_repository_arn", &self.code_repository_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCompilationJobOutputBody { - ///

    If the action is successful, the service sends back an HTTP 200 response. Amazon SageMaker returns - /// the following data in JSON format:

    - ///
      - ///
    • - ///

      - /// CompilationJobArn: The Amazon Resource Name (ARN) of the compiled - /// job.

      - ///
    • - ///
    - #[serde(rename = "CompilationJobArn")] - #[serde(default)] - pub compilation_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateCompilationJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCompilationJobOutputBody"); - formatter.field("compilation_job_arn", &self.compilation_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateContextOutputBody { - ///

    The Amazon Resource Name (ARN) of the context.

    - #[serde(rename = "ContextArn")] - #[serde(default)] - pub context_arn: std::option::Option, -} -impl std::fmt::Debug for CreateContextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateContextOutputBody"); - formatter.field("context_arn", &self.context_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDataQualityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the job definition.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, -} -impl std::fmt::Debug for CreateDataQualityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDataQualityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDomainOutputBody { - ///

    The Amazon Resource Name (ARN) of the created domain.

    - #[serde(rename = "DomainArn")] - #[serde(default)] - pub domain_arn: std::option::Option, - ///

    The URL to the created domain.

    - #[serde(rename = "Url")] - #[serde(default)] - pub url: std::option::Option, -} -impl std::fmt::Debug for CreateDomainOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDomainOutputBody"); - formatter.field("domain_arn", &self.domain_arn); - formatter.field("url", &self.url); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEndpointOutputBody { - ///

    The Amazon Resource Name (ARN) of the endpoint.

    - #[serde(rename = "EndpointArn")] - #[serde(default)] - pub endpoint_arn: std::option::Option, -} -impl std::fmt::Debug for CreateEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEndpointOutputBody"); - formatter.field("endpoint_arn", &self.endpoint_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEndpointConfigOutputBody { - ///

    The Amazon Resource Name (ARN) of the endpoint configuration.

    - #[serde(rename = "EndpointConfigArn")] - #[serde(default)] - pub endpoint_config_arn: std::option::Option, -} -impl std::fmt::Debug for CreateEndpointConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEndpointConfigOutputBody"); - formatter.field("endpoint_config_arn", &self.endpoint_config_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateExperimentOutputBody { - ///

    The Amazon Resource Name (ARN) of the experiment.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] - pub experiment_arn: std::option::Option, -} -impl std::fmt::Debug for CreateExperimentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateExperimentOutputBody"); - formatter.field("experiment_arn", &self.experiment_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFeatureGroupOutputBody { - ///

    The Amazon Resource Name (ARN) of the FeatureGroup. This is a unique - /// identifier for the feature group.

    - #[serde(rename = "FeatureGroupArn")] - #[serde(default)] - pub feature_group_arn: std::option::Option, -} -impl std::fmt::Debug for CreateFeatureGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFeatureGroupOutputBody"); - formatter.field("feature_group_arn", &self.feature_group_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateFlowDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the flow definition you create.

    - #[serde(rename = "FlowDefinitionArn")] - #[serde(default)] - pub flow_definition_arn: std::option::Option, -} -impl std::fmt::Debug for CreateFlowDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateFlowDefinitionOutputBody"); - formatter.field("flow_definition_arn", &self.flow_definition_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHumanTaskUiOutputBody { - ///

    The Amazon Resource Name (ARN) of the human review workflow user interface you create.

    - #[serde(rename = "HumanTaskUiArn")] - #[serde(default)] - pub human_task_ui_arn: std::option::Option, -} -impl std::fmt::Debug for CreateHumanTaskUiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHumanTaskUiOutputBody"); - formatter.field("human_task_ui_arn", &self.human_task_ui_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateHyperParameterTuningJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns an ARN to a - /// hyperparameter tuning job when you create it.

    - #[serde(rename = "HyperParameterTuningJobArn")] - #[serde(default)] - pub hyper_parameter_tuning_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateHyperParameterTuningJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateHyperParameterTuningJobOutputBody"); - formatter.field( - "hyper_parameter_tuning_job_arn", - &self.hyper_parameter_tuning_job_arn, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImageOutputBody { - ///

    The Amazon Resource Name (ARN) of the image.

    - #[serde(rename = "ImageArn")] - #[serde(default)] - pub image_arn: std::option::Option, -} -impl std::fmt::Debug for CreateImageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImageOutputBody"); - formatter.field("image_arn", &self.image_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImageVersionOutputBody { - ///

    The Amazon Resource Name (ARN) of the image version.

    - #[serde(rename = "ImageVersionArn")] - #[serde(default)] - pub image_version_arn: std::option::Option, -} -impl std::fmt::Debug for CreateImageVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImageVersionOutputBody"); - formatter.field("image_version_arn", &self.image_version_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateLabelingJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify the - /// labeling job.

    - #[serde(rename = "LabelingJobArn")] - #[serde(default)] - pub labeling_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateLabelingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateLabelingJobOutputBody"); - formatter.field("labeling_job_arn", &self.labeling_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelOutputBody { - ///

    The ARN of the model created in Amazon SageMaker.

    - #[serde(rename = "ModelArn")] - #[serde(default)] - pub model_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelOutputBody"); - formatter.field("model_arn", &self.model_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelBiasJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model bias job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelBiasJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelBiasJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelExplainabilityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model explainability job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelExplainabilityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelExplainabilityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelPackageOutputBody { - ///

    The Amazon Resource Name (ARN) of the new model package.

    - #[serde(rename = "ModelPackageArn")] - #[serde(default)] - pub model_package_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelPackageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelPackageOutputBody"); - formatter.field("model_package_arn", &self.model_package_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelPackageGroupOutputBody { - ///

    The Amazon Resource Name (ARN) of the model group.

    - #[serde(rename = "ModelPackageGroupArn")] - #[serde(default)] - pub model_package_group_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelPackageGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelPackageGroupOutputBody"); - formatter.field("model_package_group_arn", &self.model_package_group_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateModelQualityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model quality monitoring job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, -} -impl std::fmt::Debug for CreateModelQualityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateModelQualityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMonitoringScheduleOutputBody { - ///

    The Amazon Resource Name (ARN) of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] - pub monitoring_schedule_arn: std::option::Option, -} -impl std::fmt::Debug for CreateMonitoringScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMonitoringScheduleOutputBody"); - formatter.field("monitoring_schedule_arn", &self.monitoring_schedule_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateNotebookInstanceOutputBody { - ///

    The Amazon Resource Name (ARN) of the notebook instance.

    - #[serde(rename = "NotebookInstanceArn")] - #[serde(default)] - pub notebook_instance_arn: std::option::Option, -} -impl std::fmt::Debug for CreateNotebookInstanceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateNotebookInstanceOutputBody"); - formatter.field("notebook_instance_arn", &self.notebook_instance_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateNotebookInstanceLifecycleConfigOutputBody { - ///

    The Amazon Resource Name (ARN) of the lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigArn")] - #[serde(default)] - pub notebook_instance_lifecycle_config_arn: std::option::Option, -} -impl std::fmt::Debug for CreateNotebookInstanceLifecycleConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateNotebookInstanceLifecycleConfigOutputBody"); - formatter.field( - "notebook_instance_lifecycle_config_arn", - &self.notebook_instance_lifecycle_config_arn, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePipelineOutputBody { - ///

    The Amazon Resource Name (ARN) of the created pipeline.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] - pub pipeline_arn: std::option::Option, -} -impl std::fmt::Debug for CreatePipelineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePipelineOutputBody"); - formatter.field("pipeline_arn", &self.pipeline_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePresignedDomainUrlOutputBody { - ///

    The presigned URL.

    - #[serde(rename = "AuthorizedUrl")] - #[serde(default)] - pub authorized_url: std::option::Option, -} -impl std::fmt::Debug for CreatePresignedDomainUrlOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePresignedDomainUrlOutputBody"); - formatter.field("authorized_url", &self.authorized_url); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePresignedNotebookInstanceUrlOutputBody { - ///

    A JSON object that contains the URL string.

    - #[serde(rename = "AuthorizedUrl")] - #[serde(default)] - pub authorized_url: std::option::Option, -} -impl std::fmt::Debug for CreatePresignedNotebookInstanceUrlOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePresignedNotebookInstanceUrlOutputBody"); - formatter.field("authorized_url", &self.authorized_url); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateProcessingJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the processing job.

    - #[serde(rename = "ProcessingJobArn")] - #[serde(default)] - pub processing_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateProcessingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateProcessingJobOutputBody"); - formatter.field("processing_job_arn", &self.processing_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateProjectOutputBody { - ///

    The Amazon Resource Name (ARN) of the project.

    - #[serde(rename = "ProjectArn")] - #[serde(default)] - pub project_arn: std::option::Option, - ///

    The ID of the new project.

    - #[serde(rename = "ProjectId")] - #[serde(default)] - pub project_id: std::option::Option, -} -impl std::fmt::Debug for CreateProjectOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateProjectOutputBody"); - formatter.field("project_arn", &self.project_arn); - formatter.field("project_id", &self.project_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrainingJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the training job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] - pub training_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateTrainingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrainingJobOutputBody"); - formatter.field("training_job_arn", &self.training_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTransformJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the transform job.

    - #[serde(rename = "TransformJobArn")] - #[serde(default)] - pub transform_job_arn: std::option::Option, -} -impl std::fmt::Debug for CreateTransformJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTransformJobOutputBody"); - formatter.field("transform_job_arn", &self.transform_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrialOutputBody { - ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, -} -impl std::fmt::Debug for CreateTrialOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrialOutputBody"); - formatter.field("trial_arn", &self.trial_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateTrialComponentOutputBody { - ///

    The Amazon Resource Name (ARN) of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, -} -impl std::fmt::Debug for CreateTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateTrialComponentOutputBody"); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateUserProfileOutputBody { - ///

    The user profile Amazon Resource Name (ARN).

    - #[serde(rename = "UserProfileArn")] - #[serde(default)] - pub user_profile_arn: std::option::Option, -} -impl std::fmt::Debug for CreateUserProfileOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateUserProfileOutputBody"); - formatter.field("user_profile_arn", &self.user_profile_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateWorkforceOutputBody { - ///

    The Amazon Resource Name (ARN) of the workforce.

    - #[serde(rename = "WorkforceArn")] - #[serde(default)] - pub workforce_arn: std::option::Option, -} -impl std::fmt::Debug for CreateWorkforceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateWorkforceOutputBody"); - formatter.field("workforce_arn", &self.workforce_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateWorkteamOutputBody { - ///

    The Amazon Resource Name (ARN) of the work team. You can use this ARN to identify the - /// work team.

    - #[serde(rename = "WorkteamArn")] - #[serde(default)] - pub workteam_arn: std::option::Option, -} -impl std::fmt::Debug for CreateWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateWorkteamOutputBody"); - formatter.field("workteam_arn", &self.workteam_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteActionOutputBody { - ///

    The Amazon Resource Name (ARN) of the action.

    - #[serde(rename = "ActionArn")] - #[serde(default)] - pub action_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteActionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteActionOutputBody"); - formatter.field("action_arn", &self.action_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteArtifactOutputBody { - ///

    The Amazon Resource Name (ARN) of the artifact.

    - #[serde(rename = "ArtifactArn")] - #[serde(default)] - pub artifact_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteArtifactOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteArtifactOutputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAssociationOutputBody { - ///

    The ARN of the source.

    - #[serde(rename = "SourceArn")] - #[serde(default)] - pub source_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the destination.

    - #[serde(rename = "DestinationArn")] - #[serde(default)] - pub destination_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteAssociationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAssociationOutputBody"); - formatter.field("source_arn", &self.source_arn); - formatter.field("destination_arn", &self.destination_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteContextOutputBody { - ///

    The Amazon Resource Name (ARN) of the context.

    - #[serde(rename = "ContextArn")] - #[serde(default)] - pub context_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteContextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteContextOutputBody"); - formatter.field("context_arn", &self.context_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteExperimentOutputBody { - ///

    The Amazon Resource Name (ARN) of the experiment that is being deleted.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] - pub experiment_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteExperimentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteExperimentOutputBody"); - formatter.field("experiment_arn", &self.experiment_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeletePipelineOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline to delete.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] - pub pipeline_arn: std::option::Option, -} -impl std::fmt::Debug for DeletePipelineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeletePipelineOutputBody"); - formatter.field("pipeline_arn", &self.pipeline_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTrialOutputBody { - ///

    The Amazon Resource Name (ARN) of the trial that is being deleted.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteTrialOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTrialOutputBody"); - formatter.field("trial_arn", &self.trial_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteTrialComponentOutputBody { - ///

    The Amazon Resource Name (ARN) of the component is being deleted.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, -} -impl std::fmt::Debug for DeleteTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteTrialComponentOutputBody"); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteWorkteamOutputBody { - ///

    Returns true if the work team was successfully deleted; otherwise, - /// returns false.

    - #[serde(rename = "Success")] - #[serde(default)] - pub success: bool, -} -impl std::fmt::Debug for DeleteWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteWorkteamOutputBody"); - formatter.field("success", &self.success); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeActionOutputBody { - ///

    The name of the action.

    - #[serde(rename = "ActionName")] - #[serde(default)] - pub action_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the action.

    - #[serde(rename = "ActionArn")] - #[serde(default)] - pub action_arn: std::option::Option, - ///

    The source of the action.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    The type of the action.

    - #[serde(rename = "ActionType")] - #[serde(default)] - pub action_type: std::option::Option, - ///

    The description of the action.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The status of the action.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A list of the action's properties.

    - #[serde(rename = "Properties")] - #[serde(default)] - pub properties: - std::option::Option>, - ///

    When the action was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the action was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] - pub metadata_properties: std::option::Option, -} -impl std::fmt::Debug for DescribeActionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeActionOutputBody"); - formatter.field("action_name", &self.action_name); - formatter.field("action_arn", &self.action_arn); - formatter.field("source", &self.source); - formatter.field("action_type", &self.action_type); - formatter.field("description", &self.description); - formatter.field("status", &self.status); - formatter.field("properties", &self.properties); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAlgorithmOutputBody { - ///

    The name of the algorithm being described.

    - #[serde(rename = "AlgorithmName")] - #[serde(default)] - pub algorithm_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the algorithm.

    - #[serde(rename = "AlgorithmArn")] - #[serde(default)] - pub algorithm_arn: std::option::Option, - ///

    A brief summary about the algorithm.

    - #[serde(rename = "AlgorithmDescription")] - #[serde(default)] - pub algorithm_description: std::option::Option, - ///

    A timestamp specifying when the algorithm was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Details about training jobs run by this algorithm.

    - #[serde(rename = "TrainingSpecification")] - #[serde(default)] - pub training_specification: std::option::Option, - ///

    Details about inference jobs that the algorithm runs.

    - #[serde(rename = "InferenceSpecification")] - #[serde(default)] - pub inference_specification: std::option::Option, - ///

    Details about configurations for one or more training jobs that Amazon SageMaker runs to test the - /// algorithm.

    - #[serde(rename = "ValidationSpecification")] - #[serde(default)] - pub validation_specification: - std::option::Option, - ///

    The current status of the algorithm.

    - #[serde(rename = "AlgorithmStatus")] - #[serde(default)] - pub algorithm_status: std::option::Option, - ///

    Details about the current status of the algorithm.

    - #[serde(rename = "AlgorithmStatusDetails")] - #[serde(default)] - pub algorithm_status_details: std::option::Option, - ///

    The product identifier of the algorithm.

    - #[serde(rename = "ProductId")] - #[serde(default)] - pub product_id: std::option::Option, - ///

    Whether the algorithm is certified to be listed in AWS Marketplace.

    - #[serde(rename = "CertifyForMarketplace")] - #[serde(default)] - pub certify_for_marketplace: bool, -} -impl std::fmt::Debug for DescribeAlgorithmOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAlgorithmOutputBody"); - formatter.field("algorithm_name", &self.algorithm_name); - formatter.field("algorithm_arn", &self.algorithm_arn); - formatter.field("algorithm_description", &self.algorithm_description); - formatter.field("creation_time", &self.creation_time); - formatter.field("training_specification", &self.training_specification); - formatter.field("inference_specification", &self.inference_specification); - formatter.field("validation_specification", &self.validation_specification); - formatter.field("algorithm_status", &self.algorithm_status); - formatter.field("algorithm_status_details", &self.algorithm_status_details); - formatter.field("product_id", &self.product_id); - formatter.field("certify_for_marketplace", &self.certify_for_marketplace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAppOutputBody { - ///

    The Amazon Resource Name (ARN) of the app.

    - #[serde(rename = "AppArn")] - #[serde(default)] - pub app_arn: std::option::Option, - ///

    The type of app.

    - #[serde(rename = "AppType")] - #[serde(default)] - pub app_type: std::option::Option, - ///

    The name of the app.

    - #[serde(rename = "AppName")] - #[serde(default)] - pub app_name: std::option::Option, - ///

    The domain ID.

    - #[serde(rename = "DomainId")] - #[serde(default)] - pub domain_id: std::option::Option, - ///

    The user profile name.

    - #[serde(rename = "UserProfileName")] - #[serde(default)] - pub user_profile_name: std::option::Option, - ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The timestamp of the last health check.

    - #[serde(rename = "LastHealthCheckTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_health_check_timestamp: std::option::Option, - ///

    The timestamp of the last user's activity.

    - #[serde(rename = "LastUserActivityTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_user_activity_timestamp: std::option::Option, - ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The failure reason.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

    - #[serde(rename = "ResourceSpec")] - #[serde(default)] - pub resource_spec: std::option::Option, -} -impl std::fmt::Debug for DescribeAppOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAppOutputBody"); - formatter.field("app_arn", &self.app_arn); - formatter.field("app_type", &self.app_type); - formatter.field("app_name", &self.app_name); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("status", &self.status); - formatter.field( - "last_health_check_timestamp", - &self.last_health_check_timestamp, - ); - formatter.field( - "last_user_activity_timestamp", - &self.last_user_activity_timestamp, - ); - formatter.field("creation_time", &self.creation_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("resource_spec", &self.resource_spec); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAppImageConfigOutputBody { - ///

    The Amazon Resource Name (ARN) of the AppImageConfig.

    - #[serde(rename = "AppImageConfigArn")] - #[serde(default)] - pub app_image_config_arn: std::option::Option, - ///

    The name of the AppImageConfig.

    - #[serde(rename = "AppImageConfigName")] - #[serde(default)] - pub app_image_config_name: std::option::Option, - ///

    When the AppImageConfig was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    When the AppImageConfig was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The configuration of a KernelGateway app.

    - #[serde(rename = "KernelGatewayImageConfig")] - #[serde(default)] - pub kernel_gateway_image_config: std::option::Option, -} -impl std::fmt::Debug for DescribeAppImageConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAppImageConfigOutputBody"); - formatter.field("app_image_config_arn", &self.app_image_config_arn); - formatter.field("app_image_config_name", &self.app_image_config_name); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field( - "kernel_gateway_image_config", - &self.kernel_gateway_image_config, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeArtifactOutputBody { - ///

    The name of the artifact.

    - #[serde(rename = "ArtifactName")] - #[serde(default)] - pub artifact_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the artifact.

    - #[serde(rename = "ArtifactArn")] - #[serde(default)] - pub artifact_arn: std::option::Option, - ///

    The source of the artifact.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    The type of the artifact.

    - #[serde(rename = "ArtifactType")] - #[serde(default)] - pub artifact_type: std::option::Option, - ///

    A list of the artifact's properties.

    - #[serde(rename = "Properties")] - #[serde(default)] - pub properties: - std::option::Option>, - ///

    When the artifact was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the artifact was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] - pub metadata_properties: std::option::Option, -} -impl std::fmt::Debug for DescribeArtifactOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeArtifactOutputBody"); - formatter.field("artifact_name", &self.artifact_name); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.field("source", &self.source); - formatter.field("artifact_type", &self.artifact_type); - formatter.field("properties", &self.properties); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutoMLJobOutputBody { - ///

    Returns the name of the AutoML job.

    - #[serde(rename = "AutoMLJobName")] - #[serde(default)] - pub auto_ml_job_name: std::option::Option, - ///

    Returns the ARN of the AutoML job.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] - pub auto_ml_job_arn: std::option::Option, - ///

    Returns the input data configuration for the AutoML job..

    - #[serde(rename = "InputDataConfig")] - #[serde(default)] - pub input_data_config: std::option::Option>, - ///

    Returns the job's output data config.

    - #[serde(rename = "OutputDataConfig")] - #[serde(default)] - pub output_data_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that has read permission to - /// the input data location and write permission to the output data location in Amazon S3.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    Returns the job's objective.

    - #[serde(rename = "AutoMLJobObjective")] - #[serde(default)] - pub auto_ml_job_objective: std::option::Option, - ///

    Returns the job's problem type.

    - #[serde(rename = "ProblemType")] - #[serde(default)] - pub problem_type: std::option::Option, - ///

    Returns the configuration for the AutoML job.

    - #[serde(rename = "AutoMLJobConfig")] - #[serde(default)] - pub auto_ml_job_config: std::option::Option, - ///

    Returns the creation time of the AutoML job.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Returns the end time of the AutoML job.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub end_time: std::option::Option, - ///

    Returns the job's last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Returns the failure reason for an AutoML job, when applicable.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    Returns a list of reasons for partial failures within an AutoML job.

    - #[serde(rename = "PartialFailureReasons")] - #[serde(default)] - pub partial_failure_reasons: - std::option::Option>, - ///

    Returns the job's best AutoMLCandidate.

    - #[serde(rename = "BestCandidate")] - #[serde(default)] - pub best_candidate: std::option::Option, - ///

    Returns the status of the AutoML job.

    - #[serde(rename = "AutoMLJobStatus")] - #[serde(default)] - pub auto_ml_job_status: std::option::Option, - ///

    Returns the secondary status of the AutoML job.

    - #[serde(rename = "AutoMLJobSecondaryStatus")] - #[serde(default)] - pub auto_ml_job_secondary_status: std::option::Option, - ///

    Indicates whether the output for an AutoML job generates candidate definitions - /// only.

    - #[serde(rename = "GenerateCandidateDefinitionsOnly")] - #[serde(default)] - pub generate_candidate_definitions_only: bool, - ///

    Returns information on the job's artifacts found in - /// AutoMLJobArtifacts.

    - #[serde(rename = "AutoMLJobArtifacts")] - #[serde(default)] - pub auto_ml_job_artifacts: std::option::Option, - ///

    This contains ProblemType, AutoMLJobObjective and - /// CompletionCriteria. If you do not provide these values, they are - /// auto-inferred. If you do provide them, the values used are the ones you provide.

    - #[serde(rename = "ResolvedAttributes")] - #[serde(default)] - pub resolved_attributes: std::option::Option, - ///

    Indicates whether the model was deployed automatically to an endpoint and the name of - /// that endpoint if deployed automatically.

    - #[serde(rename = "ModelDeployConfig")] - #[serde(default)] - pub model_deploy_config: std::option::Option, - ///

    Provides information about endpoint for the model deployment.

    - #[serde(rename = "ModelDeployResult")] - #[serde(default)] - pub model_deploy_result: std::option::Option, -} -impl std::fmt::Debug for DescribeAutoMLJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutoMLJobOutputBody"); - formatter.field("auto_ml_job_name", &self.auto_ml_job_name); - formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); - formatter.field("input_data_config", &self.input_data_config); - formatter.field("output_data_config", &self.output_data_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("auto_ml_job_objective", &self.auto_ml_job_objective); - formatter.field("problem_type", &self.problem_type); - formatter.field("auto_ml_job_config", &self.auto_ml_job_config); - formatter.field("creation_time", &self.creation_time); - formatter.field("end_time", &self.end_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("partial_failure_reasons", &self.partial_failure_reasons); - formatter.field("best_candidate", &self.best_candidate); - formatter.field("auto_ml_job_status", &self.auto_ml_job_status); - formatter.field( - "auto_ml_job_secondary_status", - &self.auto_ml_job_secondary_status, - ); - formatter.field( - "generate_candidate_definitions_only", - &self.generate_candidate_definitions_only, - ); - formatter.field("auto_ml_job_artifacts", &self.auto_ml_job_artifacts); - formatter.field("resolved_attributes", &self.resolved_attributes); - formatter.field("model_deploy_config", &self.model_deploy_config); - formatter.field("model_deploy_result", &self.model_deploy_result); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCodeRepositoryOutputBody { - ///

    The name of the Git repository.

    - #[serde(rename = "CodeRepositoryName")] - #[serde(default)] - pub code_repository_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the Git repository.

    - #[serde(rename = "CodeRepositoryArn")] - #[serde(default)] - pub code_repository_arn: std::option::Option, - ///

    The date and time that the repository was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The date and time that the repository was last changed.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Configuration details about the repository, including the URL where the repository is - /// located, the default branch, and the Amazon Resource Name (ARN) of the AWS Secrets - /// Manager secret that contains the credentials used to access the repository.

    - #[serde(rename = "GitConfig")] - #[serde(default)] - pub git_config: std::option::Option, -} -impl std::fmt::Debug for DescribeCodeRepositoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCodeRepositoryOutputBody"); - formatter.field("code_repository_name", &self.code_repository_name); - formatter.field("code_repository_arn", &self.code_repository_arn); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("git_config", &self.git_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeCompilationJobOutputBody { - ///

    The name of the model compilation job.

    - #[serde(rename = "CompilationJobName")] - #[serde(default)] - pub compilation_job_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the model compilation job.

    - #[serde(rename = "CompilationJobArn")] - #[serde(default)] - pub compilation_job_arn: std::option::Option, - ///

    The status of the model compilation job.

    - #[serde(rename = "CompilationJobStatus")] - #[serde(default)] - pub compilation_job_status: std::option::Option, - ///

    The time when the model compilation job started the CompilationJob - /// instances.

    - ///

    You are billed for the time between this timestamp and the timestamp in the DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch Logs, - /// the start time might be later than this time. That's because it takes time to download - /// the compilation job, which depends on the size of the compilation job container.

    - #[serde(rename = "CompilationStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub compilation_start_time: std::option::Option, - ///

    The time when the model compilation job on a compilation job instance ended. For a - /// successful or stopped job, this is when the job's model artifacts have finished - /// uploading. For a failed job, this is when Amazon SageMaker detected that the job failed.

    - #[serde(rename = "CompilationEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub compilation_end_time: std::option::Option, - ///

    Specifies a limit to how long a model compilation job can run. When the job reaches - /// the time limit, Amazon SageMaker ends the compilation job. Use this API to cap model training - /// costs.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, - ///

    The time that the model compilation job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The time that the status - /// of - /// the model compilation job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    If a model compilation job failed, the reason it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    Information about the location in Amazon S3 that has been configured for storing the model - /// artifacts used in the compilation job.

    - #[serde(rename = "ModelArtifacts")] - #[serde(default)] - pub model_artifacts: std::option::Option, - ///

    Provides a BLAKE2 hash value that identifies the compiled model artifacts in Amazon S3.

    - #[serde(rename = "ModelDigests")] - #[serde(default)] - pub model_digests: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes to perform the model - /// compilation job.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    Information about the location in Amazon S3 of the input model artifacts, the name and - /// shape of the expected data inputs, and the framework in which the model was - /// trained.

    - #[serde(rename = "InputConfig")] - #[serde(default)] - pub input_config: std::option::Option, - ///

    Information about the output location for the compiled model and the target device - /// that the model runs on.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, -} -impl std::fmt::Debug for DescribeCompilationJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeCompilationJobOutputBody"); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.field("compilation_job_arn", &self.compilation_job_arn); - formatter.field("compilation_job_status", &self.compilation_job_status); - formatter.field("compilation_start_time", &self.compilation_start_time); - formatter.field("compilation_end_time", &self.compilation_end_time); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("model_artifacts", &self.model_artifacts); - formatter.field("model_digests", &self.model_digests); - formatter.field("role_arn", &self.role_arn); - formatter.field("input_config", &self.input_config); - formatter.field("output_config", &self.output_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeContextOutputBody { - ///

    The name of the context.

    - #[serde(rename = "ContextName")] - #[serde(default)] - pub context_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the context.

    - #[serde(rename = "ContextArn")] - #[serde(default)] - pub context_arn: std::option::Option, - ///

    The source of the context.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    The type of the context.

    - #[serde(rename = "ContextType")] - #[serde(default)] - pub context_type: std::option::Option, - ///

    The description of the context.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    A list of the context's properties.

    - #[serde(rename = "Properties")] - #[serde(default)] - pub properties: - std::option::Option>, - ///

    When the context was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the context was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, -} -impl std::fmt::Debug for DescribeContextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeContextOutputBody"); - formatter.field("context_name", &self.context_name); - formatter.field("context_arn", &self.context_arn); - formatter.field("source", &self.source); - formatter.field("context_type", &self.context_type); - formatter.field("description", &self.description); - formatter.field("properties", &self.properties); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDataQualityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the data quality monitoring job definition.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, - ///

    The name of the data quality monitoring job definition.

    - #[serde(rename = "JobDefinitionName")] - #[serde(default)] - pub job_definition_name: std::option::Option, - ///

    The time that the data quality monitoring job definition was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The constraints and baselines for the data quality monitoring job definition.

    - #[serde(rename = "DataQualityBaselineConfig")] - #[serde(default)] - pub data_quality_baseline_config: std::option::Option, - ///

    Information about the container that runs the data quality monitoring job.

    - #[serde(rename = "DataQualityAppSpecification")] - #[serde(default)] - pub data_quality_app_specification: - std::option::Option, - ///

    The list of inputs for the data quality monitoring job. Currently endpoints are - /// supported.

    - #[serde(rename = "DataQualityJobInput")] - #[serde(default)] - pub data_quality_job_input: std::option::Option, - ///

    The output configuration for monitoring jobs.

    - #[serde(rename = "DataQualityJobOutputConfig")] - #[serde(default)] - pub data_quality_job_output_config: std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - #[serde(rename = "JobResources")] - #[serde(default)] - pub job_resources: std::option::Option, - ///

    The networking configuration for the data quality monitoring job.

    - #[serde(rename = "NetworkConfig")] - #[serde(default)] - pub network_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, -} -impl std::fmt::Debug for DescribeDataQualityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDataQualityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "data_quality_baseline_config", - &self.data_quality_baseline_config, - ); - formatter.field( - "data_quality_app_specification", - &self.data_quality_app_specification, - ); - formatter.field("data_quality_job_input", &self.data_quality_job_input); - formatter.field( - "data_quality_job_output_config", - &self.data_quality_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDeviceOutputBody { - ///

    The Amazon Resource Name (ARN) of the device.

    - #[serde(rename = "DeviceArn")] - #[serde(default)] - pub device_arn: std::option::Option, - ///

    The unique identifier of the device.

    - #[serde(rename = "DeviceName")] - #[serde(default)] - pub device_name: std::option::Option, - ///

    A description of the device.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The name of the fleet the device belongs to.

    - #[serde(rename = "DeviceFleetName")] - #[serde(default)] - pub device_fleet_name: std::option::Option, - ///

    The AWS Internet of Things (IoT) object thing name associated with the device.

    - #[serde(rename = "IotThingName")] - #[serde(default)] - pub iot_thing_name: std::option::Option, - ///

    The timestamp of the last registration or de-reregistration.

    - #[serde(rename = "RegistrationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub registration_time: std::option::Option, - ///

    The last heartbeat received from the device.

    - #[serde(rename = "LatestHeartbeat")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub latest_heartbeat: std::option::Option, - ///

    Models on the device.

    - #[serde(rename = "Models")] - #[serde(default)] - pub models: std::option::Option>, - ///

    The maximum number of models.

    - #[serde(rename = "MaxModels")] - #[serde(default)] - pub max_models: i32, - ///

    The response from the last list when returning a list large enough to need tokening.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeDeviceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDeviceOutputBody"); - formatter.field("device_arn", &self.device_arn); - formatter.field("device_name", &self.device_name); - formatter.field("description", &self.description); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("iot_thing_name", &self.iot_thing_name); - formatter.field("registration_time", &self.registration_time); - formatter.field("latest_heartbeat", &self.latest_heartbeat); - formatter.field("models", &self.models); - formatter.field("max_models", &self.max_models); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDeviceFleetOutputBody { - ///

    The name of the fleet.

    - #[serde(rename = "DeviceFleetName")] - #[serde(default)] - pub device_fleet_name: std::option::Option, - ///

    The The Amazon Resource Name (ARN) of the fleet.

    - #[serde(rename = "DeviceFleetArn")] - #[serde(default)] - pub device_fleet_arn: std::option::Option, - ///

    The output configuration for storing sampled data.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, - ///

    A description of the fleet.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Timestamp of when the device fleet was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Timestamp of when the device fleet was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) alias created in AWS Internet of Things (IoT).

    - #[serde(rename = "IotRoleAlias")] - #[serde(default)] - pub iot_role_alias: std::option::Option, -} -impl std::fmt::Debug for DescribeDeviceFleetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDeviceFleetOutputBody"); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("device_fleet_arn", &self.device_fleet_arn); - formatter.field("output_config", &self.output_config); - formatter.field("description", &self.description); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("role_arn", &self.role_arn); - formatter.field("iot_role_alias", &self.iot_role_alias); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDomainOutputBody { - ///

    The domain's Amazon Resource Name (ARN).

    - #[serde(rename = "DomainArn")] - #[serde(default)] - pub domain_arn: std::option::Option, - ///

    The domain ID.

    - #[serde(rename = "DomainId")] - #[serde(default)] - pub domain_id: std::option::Option, - ///

    The domain name.

    - #[serde(rename = "DomainName")] - #[serde(default)] - pub domain_name: std::option::Option, - ///

    The ID of the Amazon Elastic File System (EFS) managed by this Domain.

    - #[serde(rename = "HomeEfsFileSystemId")] - #[serde(default)] - pub home_efs_file_system_id: std::option::Option, - ///

    The SSO managed application instance ID.

    - #[serde(rename = "SingleSignOnManagedApplicationInstanceId")] - #[serde(default)] - pub single_sign_on_managed_application_instance_id: std::option::Option, - ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The failure reason.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The domain's authentication mode.

    - #[serde(rename = "AuthMode")] - #[serde(default)] - pub auth_mode: std::option::Option, - ///

    Settings which are applied to UserProfiles in this domain if settings are not explicitly specified - /// in a given UserProfile. - ///

    - #[serde(rename = "DefaultUserSettings")] - #[serde(default)] - pub default_user_settings: std::option::Option, - ///

    Specifies the VPC used for non-EFS traffic. The default value is - /// PublicInternetOnly.

    - ///
      - ///
    • - ///

      - /// PublicInternetOnly - Non-EFS traffic is through a VPC managed by - /// Amazon SageMaker, which allows direct internet access

      - ///
    • - ///
    • - ///

      - /// VpcOnly - All Studio traffic is through the specified VPC and subnets

      - ///
    • - ///
    - #[serde(rename = "AppNetworkAccessType")] - #[serde(default)] - pub app_network_access_type: std::option::Option, - ///

    This member is deprecated and replaced with KmsKeyId.

    - #[serde(rename = "HomeEfsFileSystemKmsKeyId")] - #[serde(default)] - pub home_efs_file_system_kms_key_id: std::option::Option, - ///

    The VPC subnets that Studio uses for communication.

    - #[serde(rename = "SubnetIds")] - #[serde(default)] - pub subnet_ids: std::option::Option>, - ///

    The domain's URL.

    - #[serde(rename = "Url")] - #[serde(default)] - pub url: std::option::Option, - ///

    The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.

    - #[serde(rename = "VpcId")] - #[serde(default)] - pub vpc_id: std::option::Option, - ///

    The AWS KMS customer managed CMK used to encrypt - /// the EFS volume attached to the domain.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] - pub kms_key_id: std::option::Option, -} -impl std::fmt::Debug for DescribeDomainOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDomainOutputBody"); - formatter.field("domain_arn", &self.domain_arn); - formatter.field("domain_id", &self.domain_id); - formatter.field("domain_name", &self.domain_name); - formatter.field("home_efs_file_system_id", &self.home_efs_file_system_id); - formatter.field( - "single_sign_on_managed_application_instance_id", - &self.single_sign_on_managed_application_instance_id, - ); - formatter.field("status", &self.status); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("auth_mode", &self.auth_mode); - formatter.field("default_user_settings", &self.default_user_settings); - formatter.field("app_network_access_type", &self.app_network_access_type); - formatter.field( - "home_efs_file_system_kms_key_id", - &self.home_efs_file_system_kms_key_id, - ); - formatter.field("subnet_ids", &self.subnet_ids); - formatter.field("url", &self.url); - formatter.field("vpc_id", &self.vpc_id); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEdgePackagingJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the edge packaging job.

    - #[serde(rename = "EdgePackagingJobArn")] - #[serde(default)] - pub edge_packaging_job_arn: std::option::Option, - ///

    The name of the edge packaging job.

    - #[serde(rename = "EdgePackagingJobName")] - #[serde(default)] - pub edge_packaging_job_name: std::option::Option, - ///

    The name of the SageMaker Neo compilation job that is used to locate model artifacts that are being packaged.

    - #[serde(rename = "CompilationJobName")] - #[serde(default)] - pub compilation_job_name: std::option::Option, - ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] - pub model_name: std::option::Option, - ///

    The version of the model.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] - pub model_version: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and to contact Neo.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The output configuration for the edge packaging job.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, - ///

    The CMK to use when encrypting the EBS volume the job run on.

    - #[serde(rename = "ResourceKey")] - #[serde(default)] - pub resource_key: std::option::Option, - ///

    The current status of the packaging job.

    - #[serde(rename = "EdgePackagingJobStatus")] - #[serde(default)] - pub edge_packaging_job_status: std::option::Option, - ///

    Returns a message describing the job status and error messages.

    - #[serde(rename = "EdgePackagingJobStatusMessage")] - #[serde(default)] - pub edge_packaging_job_status_message: std::option::Option, - ///

    The timestamp of when the packaging job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The timestamp of when the job was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The Amazon Simple Storage (S3) URI where model artifacts ares stored.

    - #[serde(rename = "ModelArtifact")] - #[serde(default)] - pub model_artifact: std::option::Option, - ///

    The signature document of files in the model artifact.

    - #[serde(rename = "ModelSignature")] - #[serde(default)] - pub model_signature: std::option::Option, - ///

    The output of a SageMaker Edge Manager deployable resource.

    - #[serde(rename = "PresetDeploymentOutput")] - #[serde(default)] - pub preset_deployment_output: std::option::Option, -} -impl std::fmt::Debug for DescribeEdgePackagingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEdgePackagingJobOutputBody"); - formatter.field("edge_packaging_job_arn", &self.edge_packaging_job_arn); - formatter.field("edge_packaging_job_name", &self.edge_packaging_job_name); - formatter.field("compilation_job_name", &self.compilation_job_name); - formatter.field("model_name", &self.model_name); - formatter.field("model_version", &self.model_version); - formatter.field("role_arn", &self.role_arn); - formatter.field("output_config", &self.output_config); - formatter.field("resource_key", &self.resource_key); - formatter.field("edge_packaging_job_status", &self.edge_packaging_job_status); - formatter.field( - "edge_packaging_job_status_message", - &self.edge_packaging_job_status_message, - ); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("model_artifact", &self.model_artifact); - formatter.field("model_signature", &self.model_signature); - formatter.field("preset_deployment_output", &self.preset_deployment_output); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEndpointOutputBody { - ///

    Name of the endpoint.

    - #[serde(rename = "EndpointName")] - #[serde(default)] - pub endpoint_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the endpoint.

    - #[serde(rename = "EndpointArn")] - #[serde(default)] - pub endpoint_arn: std::option::Option, - ///

    The name of the endpoint configuration associated with this endpoint.

    - #[serde(rename = "EndpointConfigName")] - #[serde(default)] - pub endpoint_config_name: std::option::Option, - ///

    An array of ProductionVariantSummary objects, one for each model - /// hosted behind this endpoint.

    - #[serde(rename = "ProductionVariants")] - #[serde(default)] - pub production_variants: - std::option::Option>, - ///

    - #[serde(rename = "DataCaptureConfig")] - #[serde(default)] - pub data_capture_config: std::option::Option, - ///

    The status of the endpoint.

    - ///
      - ///
    • - ///

      - /// OutOfService: Endpoint is not available to take incoming - /// requests.

      - ///
    • - ///
    • - ///

      - /// Creating: CreateEndpoint is executing.

      - ///
    • - ///
    • - ///

      - /// Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.

      - ///
    • - ///
    • - ///

      - /// SystemUpdating: Endpoint is undergoing maintenance and cannot be - /// updated or deleted or re-scaled until it has completed. This maintenance - /// operation does not change any customer-specified values such as VPC config, KMS - /// encryption, model, instance type, or instance count.

      - ///
    • - ///
    • - ///

      - /// RollingBack: Endpoint fails to scale up or down or change its - /// variant weight and is in the process of rolling back to its previous - /// configuration. Once the rollback completes, endpoint returns to an - /// InService status. This transitional status only applies to an - /// endpoint that has autoscaling enabled and is undergoing variant weight or - /// capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called - /// explicitly.

      - ///
    • - ///
    • - ///

      - /// InService: Endpoint is available to process incoming - /// requests.

      - ///
    • - ///
    • - ///

      - /// Deleting: DeleteEndpoint is executing.

      - ///
    • - ///
    • - ///

      - /// Failed: Endpoint could not be created, updated, or re-scaled. Use - /// DescribeEndpointOutput$FailureReason for information about - /// the failure. DeleteEndpoint is the only operation that can be - /// performed on a failed endpoint.

      - ///
    • - ///
    - #[serde(rename = "EndpointStatus")] - #[serde(default)] - pub endpoint_status: std::option::Option, - ///

    If the status of the endpoint is Failed, the reason why it failed. - ///

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    A timestamp that shows when the endpoint was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    A timestamp that shows when the endpoint was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The most recent deployment configuration for the endpoint.

    - #[serde(rename = "LastDeploymentConfig")] - #[serde(default)] - pub last_deployment_config: std::option::Option, -} -impl std::fmt::Debug for DescribeEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEndpointOutputBody"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("endpoint_arn", &self.endpoint_arn); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.field("production_variants", &self.production_variants); - formatter.field("data_capture_config", &self.data_capture_config); - formatter.field("endpoint_status", &self.endpoint_status); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_deployment_config", &self.last_deployment_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEndpointConfigOutputBody { - ///

    Name of the Amazon SageMaker endpoint configuration.

    - #[serde(rename = "EndpointConfigName")] - #[serde(default)] - pub endpoint_config_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the endpoint configuration.

    - #[serde(rename = "EndpointConfigArn")] - #[serde(default)] - pub endpoint_config_arn: std::option::Option, - ///

    An array of ProductionVariant objects, one for each model that you - /// want to host at this endpoint.

    - #[serde(rename = "ProductionVariants")] - #[serde(default)] - pub production_variants: std::option::Option>, - ///

    - #[serde(rename = "DataCaptureConfig")] - #[serde(default)] - pub data_capture_config: std::option::Option, - ///

    AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage - /// volume attached to the instance.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] - pub kms_key_id: std::option::Option, - ///

    A timestamp that shows when the endpoint configuration was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, -} -impl std::fmt::Debug for DescribeEndpointConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEndpointConfigOutputBody"); - formatter.field("endpoint_config_name", &self.endpoint_config_name); - formatter.field("endpoint_config_arn", &self.endpoint_config_arn); - formatter.field("production_variants", &self.production_variants); - formatter.field("data_capture_config", &self.data_capture_config); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("creation_time", &self.creation_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeExperimentOutputBody { - ///

    The name of the experiment.

    - #[serde(rename = "ExperimentName")] - #[serde(default)] - pub experiment_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the experiment.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] - pub experiment_arn: std::option::Option, - ///

    The name of the experiment as displayed. If DisplayName isn't specified, - /// ExperimentName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] - pub display_name: std::option::Option, - ///

    The ARN of the source and, optionally, the type.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    The description of the experiment.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    When the experiment was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Who created the experiment.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the experiment was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Who last modified the experiment.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, -} -impl std::fmt::Debug for DescribeExperimentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeExperimentOutputBody"); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("experiment_arn", &self.experiment_arn); - formatter.field("display_name", &self.display_name); - formatter.field("source", &self.source); - formatter.field("description", &self.description); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeFeatureGroupOutputBody { - ///

    The Amazon Resource Name (ARN) of the FeatureGroup.

    - #[serde(rename = "FeatureGroupArn")] - #[serde(default)] - pub feature_group_arn: std::option::Option, - ///

    he name of the FeatureGroup.

    - #[serde(rename = "FeatureGroupName")] - #[serde(default)] - pub feature_group_name: std::option::Option, - ///

    The name of the Feature used for RecordIdentifier, whose value - /// uniquely identifies a record stored in the feature store.

    - #[serde(rename = "RecordIdentifierFeatureName")] - #[serde(default)] - pub record_identifier_feature_name: std::option::Option, - ///

    The name of the feature that stores the EventTime of a Record in a - /// FeatureGroup.

    - ///

    An EventTime is a point in time when a new event occurs that - /// corresponds to the creation or update of a Record in a - /// FeatureGroup. All Records in the FeatureGroup - /// have a corresponding EventTime.

    - #[serde(rename = "EventTimeFeatureName")] - #[serde(default)] - pub event_time_feature_name: std::option::Option, - ///

    A list of the Features in the FeatureGroup. - /// Each feature is defined by a FeatureName and FeatureType.

    - #[serde(rename = "FeatureDefinitions")] - #[serde(default)] - pub feature_definitions: std::option::Option>, - ///

    A timestamp indicating when SageMaker created the FeatureGroup.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The configuration for the OnlineStore.

    - #[serde(rename = "OnlineStoreConfig")] - #[serde(default)] - pub online_store_config: std::option::Option, - ///

    The configuration of the OfflineStore, inducing the S3 location of the - /// OfflineStore, AWS Glue or AWS Hive data catalogue configurations, and the - /// security configuration.

    - #[serde(rename = "OfflineStoreConfig")] - #[serde(default)] - pub offline_store_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the - /// OfflineStore if an OfflineStoreConfig is provided.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The status of the feature group.

    - #[serde(rename = "FeatureGroupStatus")] - #[serde(default)] - pub feature_group_status: std::option::Option, - ///

    The status of the OfflineStore. Notifies you if replicating data into the - /// OfflineStore has failed. Returns either: Active or - /// Blocked - ///

    - #[serde(rename = "OfflineStoreStatus")] - #[serde(default)] - pub offline_store_status: std::option::Option, - ///

    The reason that the FeatureGroup failed to be replicated in the - /// OfflineStore. This is failure can occur because:

    - ///
      - ///
    • - ///

      The FeatureGroup could not be created in the - /// OfflineStore.

      - ///
    • - ///
    • - ///

      The FeatureGroup could not be deleted from the - /// OfflineStore.

      - ///
    • - ///
    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    A free form description of the feature group.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    A token to resume pagination of the list of Features - /// (FeatureDefinitions).

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeFeatureGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeFeatureGroupOutputBody"); - formatter.field("feature_group_arn", &self.feature_group_arn); - formatter.field("feature_group_name", &self.feature_group_name); - formatter.field( - "record_identifier_feature_name", - &self.record_identifier_feature_name, - ); - formatter.field("event_time_feature_name", &self.event_time_feature_name); - formatter.field("feature_definitions", &self.feature_definitions); - formatter.field("creation_time", &self.creation_time); - formatter.field("online_store_config", &self.online_store_config); - formatter.field("offline_store_config", &self.offline_store_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("feature_group_status", &self.feature_group_status); - formatter.field("offline_store_status", &self.offline_store_status); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("description", &self.description); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeFlowDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the flow defintion.

    - #[serde(rename = "FlowDefinitionArn")] - #[serde(default)] - pub flow_definition_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the flow definition.

    - #[serde(rename = "FlowDefinitionName")] - #[serde(default)] - pub flow_definition_name: std::option::Option, - ///

    The status of the flow definition. Valid values are listed below.

    - #[serde(rename = "FlowDefinitionStatus")] - #[serde(default)] - pub flow_definition_status: std::option::Option, - ///

    The timestamp when the flow definition was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Container for configuring the source of human task requests. Used to specify if - /// Amazon Rekognition or Amazon Textract is used as an integration source.

    - #[serde(rename = "HumanLoopRequestSource")] - #[serde(default)] - pub human_loop_request_source: std::option::Option, - ///

    An object containing information about what triggers a human review workflow.

    - #[serde(rename = "HumanLoopActivationConfig")] - #[serde(default)] - pub human_loop_activation_config: std::option::Option, - ///

    An object containing information about who works on the task, the workforce task price, and other task details.

    - #[serde(rename = "HumanLoopConfig")] - #[serde(default)] - pub human_loop_config: std::option::Option, - ///

    An object containing information about the output file.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) execution role for the flow definition.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The reason your flow definition failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, -} -impl std::fmt::Debug for DescribeFlowDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeFlowDefinitionOutputBody"); - formatter.field("flow_definition_arn", &self.flow_definition_arn); - formatter.field("flow_definition_name", &self.flow_definition_name); - formatter.field("flow_definition_status", &self.flow_definition_status); - formatter.field("creation_time", &self.creation_time); - formatter.field("human_loop_request_source", &self.human_loop_request_source); - formatter.field( - "human_loop_activation_config", - &self.human_loop_activation_config, - ); - formatter.field("human_loop_config", &self.human_loop_config); - formatter.field("output_config", &self.output_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("failure_reason", &self.failure_reason); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHumanTaskUiOutputBody { - ///

    The Amazon Resource Name (ARN) of the human task user interface (worker task template).

    - #[serde(rename = "HumanTaskUiArn")] - #[serde(default)] - pub human_task_ui_arn: std::option::Option, - ///

    The name of the human task user interface (worker task template).

    - #[serde(rename = "HumanTaskUiName")] - #[serde(default)] - pub human_task_ui_name: std::option::Option, - ///

    The status of the human task user interface (worker task template). Valid values are listed below.

    - #[serde(rename = "HumanTaskUiStatus")] - #[serde(default)] - pub human_task_ui_status: std::option::Option, - ///

    The timestamp when the human task user interface was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Container for user interface template information.

    - #[serde(rename = "UiTemplate")] - #[serde(default)] - pub ui_template: std::option::Option, -} -impl std::fmt::Debug for DescribeHumanTaskUiOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHumanTaskUiOutputBody"); - formatter.field("human_task_ui_arn", &self.human_task_ui_arn); - formatter.field("human_task_ui_name", &self.human_task_ui_name); - formatter.field("human_task_ui_status", &self.human_task_ui_status); - formatter.field("creation_time", &self.creation_time); - formatter.field("ui_template", &self.ui_template); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHyperParameterTuningJobOutputBody { - ///

    The name of the tuning job.

    - #[serde(rename = "HyperParameterTuningJobName")] - #[serde(default)] - pub hyper_parameter_tuning_job_name: std::option::Option, - ///

    The - /// Amazon Resource Name (ARN) of the tuning job.

    - #[serde(rename = "HyperParameterTuningJobArn")] - #[serde(default)] - pub hyper_parameter_tuning_job_arn: std::option::Option, - ///

    The HyperParameterTuningJobConfig object that specifies the - /// configuration of the tuning job.

    - #[serde(rename = "HyperParameterTuningJobConfig")] - #[serde(default)] - pub hyper_parameter_tuning_job_config: - std::option::Option, - ///

    The HyperParameterTrainingJobDefinition object that specifies the - /// definition of the training jobs that this tuning job launches.

    - #[serde(rename = "TrainingJobDefinition")] - #[serde(default)] - pub training_job_definition: - std::option::Option, - ///

    A list of the HyperParameterTrainingJobDefinition objects launched - /// for this tuning job.

    - #[serde(rename = "TrainingJobDefinitions")] - #[serde(default)] - pub training_job_definitions: - std::option::Option>, - ///

    The status of the tuning job: InProgress, Completed, Failed, Stopping, or - /// Stopped.

    - #[serde(rename = "HyperParameterTuningJobStatus")] - #[serde(default)] - pub hyper_parameter_tuning_job_status: - std::option::Option, - ///

    The date and time that the tuning job started.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The date and time that the tuning job ended.

    - #[serde(rename = "HyperParameterTuningEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub hyper_parameter_tuning_end_time: std::option::Option, - ///

    The date and time that the status of the tuning job was modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The TrainingJobStatusCounters object that specifies the number of - /// training jobs, categorized by status, that this tuning job launched.

    - #[serde(rename = "TrainingJobStatusCounters")] - #[serde(default)] - pub training_job_status_counters: std::option::Option, - ///

    The ObjectiveStatusCounters object that specifies the number of - /// training jobs, categorized by the status of their final objective metric, that this - /// tuning job launched.

    - #[serde(rename = "ObjectiveStatusCounters")] - #[serde(default)] - pub objective_status_counters: std::option::Option, - ///

    A TrainingJobSummary object that describes the training job that - /// completed with the best current HyperParameterTuningJobObjective.

    - #[serde(rename = "BestTrainingJob")] - #[serde(default)] - pub best_training_job: std::option::Option, - ///

    If the hyperparameter tuning job is an warm start tuning job with a - /// WarmStartType of IDENTICAL_DATA_AND_ALGORITHM, this is the - /// TrainingJobSummary for the training job with the best objective - /// metric value of all training jobs launched by this tuning job and all parent jobs - /// specified for the warm start tuning job.

    - #[serde(rename = "OverallBestTrainingJob")] - #[serde(default)] - pub overall_best_training_job: - std::option::Option, - ///

    The configuration for starting the hyperparameter parameter tuning job using one or - /// more previous tuning jobs as a starting point. The results of previous tuning jobs are - /// used to inform which combinations of hyperparameters to search over in the new tuning - /// job.

    - #[serde(rename = "WarmStartConfig")] - #[serde(default)] - pub warm_start_config: - std::option::Option, - ///

    If the tuning job failed, the reason it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, -} -impl std::fmt::Debug for DescribeHyperParameterTuningJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHyperParameterTuningJobOutputBody"); - formatter.field( - "hyper_parameter_tuning_job_name", - &self.hyper_parameter_tuning_job_name, - ); - formatter.field( - "hyper_parameter_tuning_job_arn", - &self.hyper_parameter_tuning_job_arn, - ); - formatter.field( - "hyper_parameter_tuning_job_config", - &self.hyper_parameter_tuning_job_config, - ); - formatter.field("training_job_definition", &self.training_job_definition); - formatter.field("training_job_definitions", &self.training_job_definitions); - formatter.field( - "hyper_parameter_tuning_job_status", - &self.hyper_parameter_tuning_job_status, - ); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "hyper_parameter_tuning_end_time", - &self.hyper_parameter_tuning_end_time, - ); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field( - "training_job_status_counters", - &self.training_job_status_counters, - ); - formatter.field("objective_status_counters", &self.objective_status_counters); - formatter.field("best_training_job", &self.best_training_job); - formatter.field("overall_best_training_job", &self.overall_best_training_job); - formatter.field("warm_start_config", &self.warm_start_config); - formatter.field("failure_reason", &self.failure_reason); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeImageOutputBody { - ///

    When the image was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The description of the image.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The name of the image as displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] - pub display_name: std::option::Option, - ///

    When a create, update, or delete operation fails, the reason for the failure.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the image.

    - #[serde(rename = "ImageArn")] - #[serde(default)] - pub image_arn: std::option::Option, - ///

    The name of the image.

    - #[serde(rename = "ImageName")] - #[serde(default)] - pub image_name: std::option::Option, - ///

    The status of the image.

    - #[serde(rename = "ImageStatus")] - #[serde(default)] - pub image_status: std::option::Option, - ///

    When the image was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM role that enables Amazon SageMaker to perform tasks on your behalf.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, -} -impl std::fmt::Debug for DescribeImageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeImageOutputBody"); - formatter.field("creation_time", &self.creation_time); - formatter.field("description", &self.description); - formatter.field("display_name", &self.display_name); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("image_arn", &self.image_arn); - formatter.field("image_name", &self.image_name); - formatter.field("image_status", &self.image_status); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("role_arn", &self.role_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeImageVersionOutputBody { - ///

    The registry path of the container image on which this image version is based.

    - #[serde(rename = "BaseImage")] - #[serde(default)] - pub base_image: std::option::Option, - ///

    The registry path of the container image that contains this image version.

    - #[serde(rename = "ContainerImage")] - #[serde(default)] - pub container_image: std::option::Option, - ///

    When the version was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    When a create or delete operation fails, the reason for the failure.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the image the version is based on.

    - #[serde(rename = "ImageArn")] - #[serde(default)] - pub image_arn: std::option::Option, - ///

    The ARN of the version.

    - #[serde(rename = "ImageVersionArn")] - #[serde(default)] - pub image_version_arn: std::option::Option, - ///

    The status of the version.

    - #[serde(rename = "ImageVersionStatus")] - #[serde(default)] - pub image_version_status: std::option::Option, - ///

    When the version was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The version number.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: std::option::Option, -} -impl std::fmt::Debug for DescribeImageVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeImageVersionOutputBody"); - formatter.field("base_image", &self.base_image); - formatter.field("container_image", &self.container_image); - formatter.field("creation_time", &self.creation_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("image_arn", &self.image_arn); - formatter.field("image_version_arn", &self.image_version_arn); - formatter.field("image_version_status", &self.image_version_status); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("version", &self.version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeLabelingJobOutputBody { - ///

    The processing status of the labeling job.

    - #[serde(rename = "LabelingJobStatus")] - #[serde(default)] - pub labeling_job_status: std::option::Option, - ///

    Provides a breakdown of the number of data objects labeled by humans, the number of - /// objects labeled by machine, the number of objects than couldn't be labeled, and the - /// total number of objects labeled.

    - #[serde(rename = "LabelCounters")] - #[serde(default)] - pub label_counters: std::option::Option, - ///

    If the job failed, the reason that it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The date and time that the labeling job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The date and time that the labeling job was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    A unique identifier for work done as part of a labeling job.

    - #[serde(rename = "JobReferenceCode")] - #[serde(default)] - pub job_reference_code: std::option::Option, - ///

    The name assigned to the labeling job when it was created.

    - #[serde(rename = "LabelingJobName")] - #[serde(default)] - pub labeling_job_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the labeling job.

    - #[serde(rename = "LabelingJobArn")] - #[serde(default)] - pub labeling_job_arn: std::option::Option, - ///

    The attribute used as the label in the output manifest file.

    - #[serde(rename = "LabelAttributeName")] - #[serde(default)] - pub label_attribute_name: std::option::Option, - ///

    Input configuration information for the labeling job, such as the Amazon S3 location of the - /// data objects and the location of the manifest file that describes the data - /// objects.

    - #[serde(rename = "InputConfig")] - #[serde(default)] - pub input_config: std::option::Option, - ///

    The location of the job's output data and the AWS Key Management Service key ID for the key used to - /// encrypt the output data, if any.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks on your behalf - /// during data labeling.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The S3 location of the JSON file that defines the categories used to label data - /// objects. Please note the following label-category limits:

    - ///
      - ///
    • - ///

      Semantic segmentation labeling jobs using automated labeling: 20 labels

      - ///
    • - ///
    • - ///

      Box bounding labeling jobs (all): 10 labels

      - ///
    • - ///
    - ///

    The file is a JSON structure in the following format:

    - ///

    - /// { - ///

    - ///

    - /// "document-version": "2018-11-28" - ///

    - ///

    - /// "labels": [ - ///

    - ///

    - /// { - ///

    - ///

    - /// "label": "label 1" - ///

    - ///

    - /// }, - ///

    - ///

    - /// { - ///

    - ///

    - /// "label": "label 2" - ///

    - ///

    - /// }, - ///

    - ///

    - /// ... - ///

    - ///

    - /// { - ///

    - ///

    - /// "label": "label n" - ///

    - ///

    - /// } - ///

    - ///

    - /// ] - ///

    - ///

    - /// } - ///

    - #[serde(rename = "LabelCategoryConfigS3Uri")] - #[serde(default)] - pub label_category_config_s3_uri: std::option::Option, - ///

    A set of conditions for stopping a labeling job. If any of the conditions are met, the - /// job is automatically stopped.

    - #[serde(rename = "StoppingConditions")] - #[serde(default)] - pub stopping_conditions: std::option::Option, - ///

    Configuration information for automated data labeling.

    - #[serde(rename = "LabelingJobAlgorithmsConfig")] - #[serde(default)] - pub labeling_job_algorithms_config: - std::option::Option, - ///

    Configuration information required for human workers to complete a labeling - /// task.

    - #[serde(rename = "HumanTaskConfig")] - #[serde(default)] - pub human_task_config: std::option::Option, - ///

    An array of key-value pairs. You can use tags to categorize your AWS resources in - /// different ways, for example, by purpose, owner, or environment. For more information, - /// see Tagging AWS - /// Resources.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    The location of the output produced by the labeling job.

    - #[serde(rename = "LabelingJobOutput")] - #[serde(default)] - pub labeling_job_output: std::option::Option, -} -impl std::fmt::Debug for DescribeLabelingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeLabelingJobOutputBody"); - formatter.field("labeling_job_status", &self.labeling_job_status); - formatter.field("label_counters", &self.label_counters); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("job_reference_code", &self.job_reference_code); - formatter.field("labeling_job_name", &self.labeling_job_name); - formatter.field("labeling_job_arn", &self.labeling_job_arn); - formatter.field("label_attribute_name", &self.label_attribute_name); - formatter.field("input_config", &self.input_config); - formatter.field("output_config", &self.output_config); - formatter.field("role_arn", &self.role_arn); - formatter.field( - "label_category_config_s3_uri", - &self.label_category_config_s3_uri, - ); - formatter.field("stopping_conditions", &self.stopping_conditions); - formatter.field( - "labeling_job_algorithms_config", - &self.labeling_job_algorithms_config, - ); - formatter.field("human_task_config", &self.human_task_config); - formatter.field("tags", &self.tags); - formatter.field("labeling_job_output", &self.labeling_job_output); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelOutputBody { - ///

    Name of the Amazon SageMaker model.

    - #[serde(rename = "ModelName")] - #[serde(default)] - pub model_name: std::option::Option, - ///

    The location of the primary inference code, associated artifacts, and custom - /// environment map that the inference code uses when it is deployed in production. - ///

    - #[serde(rename = "PrimaryContainer")] - #[serde(default)] - pub primary_container: std::option::Option, - ///

    The containers in the inference pipeline.

    - #[serde(rename = "Containers")] - #[serde(default)] - pub containers: std::option::Option>, - ///

    Specifies details of how containers in a multi-container endpoint are called.

    - #[serde(rename = "InferenceExecutionConfig")] - #[serde(default)] - pub inference_execution_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the IAM role that you specified for the - /// model.

    - #[serde(rename = "ExecutionRoleArn")] - #[serde(default)] - pub execution_role_arn: std::option::Option, - ///

    A VpcConfig object that specifies the VPC that this model has access - /// to. For more information, see Protect Endpoints by Using an Amazon Virtual - /// Private Cloud - ///

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    A timestamp that shows when the model was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the model.

    - #[serde(rename = "ModelArn")] - #[serde(default)] - pub model_arn: std::option::Option, - ///

    If True, no inbound or outbound network calls can be made to or from the - /// model container.

    - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] - pub enable_network_isolation: bool, -} -impl std::fmt::Debug for DescribeModelOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelOutputBody"); - formatter.field("model_name", &self.model_name); - formatter.field("primary_container", &self.primary_container); - formatter.field("containers", &self.containers); - formatter.field( - "inference_execution_config", - &self.inference_execution_config, - ); - formatter.field("execution_role_arn", &self.execution_role_arn); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("creation_time", &self.creation_time); - formatter.field("model_arn", &self.model_arn); - formatter.field("enable_network_isolation", &self.enable_network_isolation); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelBiasJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model bias job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, - ///

    The name of the bias job definition. The name must be unique within an AWS Region in the - /// AWS account.

    - #[serde(rename = "JobDefinitionName")] - #[serde(default)] - pub job_definition_name: std::option::Option, - ///

    The time at which the model bias job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The baseline configuration for a model bias job.

    - #[serde(rename = "ModelBiasBaselineConfig")] - #[serde(default)] - pub model_bias_baseline_config: std::option::Option, - ///

    Configures the model bias job to run a specified Docker container image.

    - #[serde(rename = "ModelBiasAppSpecification")] - #[serde(default)] - pub model_bias_app_specification: std::option::Option, - ///

    Inputs for the model bias job.

    - #[serde(rename = "ModelBiasJobInput")] - #[serde(default)] - pub model_bias_job_input: std::option::Option, - ///

    The output configuration for monitoring jobs.

    - #[serde(rename = "ModelBiasJobOutputConfig")] - #[serde(default)] - pub model_bias_job_output_config: std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - #[serde(rename = "JobResources")] - #[serde(default)] - pub job_resources: std::option::Option, - ///

    Networking options for a model bias job.

    - #[serde(rename = "NetworkConfig")] - #[serde(default)] - pub network_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that - /// has read permission to the input data location and write permission to the output data - /// location in Amazon S3.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, -} -impl std::fmt::Debug for DescribeModelBiasJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelBiasJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "model_bias_baseline_config", - &self.model_bias_baseline_config, - ); - formatter.field( - "model_bias_app_specification", - &self.model_bias_app_specification, - ); - formatter.field("model_bias_job_input", &self.model_bias_job_input); - formatter.field( - "model_bias_job_output_config", - &self.model_bias_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelExplainabilityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model explainability job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, - ///

    The name of the explainability job definition. The name must be unique within an AWS - /// Region in the AWS account.

    - #[serde(rename = "JobDefinitionName")] - #[serde(default)] - pub job_definition_name: std::option::Option, - ///

    The time at which the model explainability job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The baseline configuration for a model explainability job.

    - #[serde(rename = "ModelExplainabilityBaselineConfig")] - #[serde(default)] - pub model_explainability_baseline_config: - std::option::Option, - ///

    Configures the model explainability job to run a specified Docker container - /// image.

    - #[serde(rename = "ModelExplainabilityAppSpecification")] - #[serde(default)] - pub model_explainability_app_specification: - std::option::Option, - ///

    Inputs for the model explainability job.

    - #[serde(rename = "ModelExplainabilityJobInput")] - #[serde(default)] - pub model_explainability_job_input: - std::option::Option, - ///

    The output configuration for monitoring jobs.

    - #[serde(rename = "ModelExplainabilityJobOutputConfig")] - #[serde(default)] - pub model_explainability_job_output_config: - std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - #[serde(rename = "JobResources")] - #[serde(default)] - pub job_resources: std::option::Option, - ///

    Networking options for a model explainability job.

    - #[serde(rename = "NetworkConfig")] - #[serde(default)] - pub network_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that - /// has read permission to the input data location and write permission to the output data - /// location in Amazon S3.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, -} -impl std::fmt::Debug for DescribeModelExplainabilityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelExplainabilityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "model_explainability_baseline_config", - &self.model_explainability_baseline_config, - ); - formatter.field( - "model_explainability_app_specification", - &self.model_explainability_app_specification, - ); - formatter.field( - "model_explainability_job_input", - &self.model_explainability_job_input, - ); - formatter.field( - "model_explainability_job_output_config", - &self.model_explainability_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelPackageOutputBody { - ///

    The name of the model package being described.

    - #[serde(rename = "ModelPackageName")] - #[serde(default)] - pub model_package_name: std::option::Option, - ///

    If the model is a versioned model, the name of the model group that the versioned - /// model belongs to.

    - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] - pub model_package_group_name: std::option::Option, - ///

    The version of the model package.

    - #[serde(rename = "ModelPackageVersion")] - #[serde(default)] - pub model_package_version: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the model package.

    - #[serde(rename = "ModelPackageArn")] - #[serde(default)] - pub model_package_arn: std::option::Option, - ///

    A brief summary of the model package.

    - #[serde(rename = "ModelPackageDescription")] - #[serde(default)] - pub model_package_description: std::option::Option, - ///

    A timestamp specifying when the model package was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Details about inference jobs that can be run with models based on this model - /// package.

    - #[serde(rename = "InferenceSpecification")] - #[serde(default)] - pub inference_specification: std::option::Option, - ///

    Details about the algorithm that was used to create the model package.

    - #[serde(rename = "SourceAlgorithmSpecification")] - #[serde(default)] - pub source_algorithm_specification: - std::option::Option, - ///

    Configurations for one or more transform jobs that Amazon SageMaker runs to test the model - /// package.

    - #[serde(rename = "ValidationSpecification")] - #[serde(default)] - pub validation_specification: - std::option::Option, - ///

    The current status of the model package.

    - #[serde(rename = "ModelPackageStatus")] - #[serde(default)] - pub model_package_status: std::option::Option, - ///

    Details about the current status of the model package.

    - #[serde(rename = "ModelPackageStatusDetails")] - #[serde(default)] - pub model_package_status_details: std::option::Option, - ///

    Whether the model package is certified for listing on AWS Marketplace.

    - #[serde(rename = "CertifyForMarketplace")] - #[serde(default)] - pub certify_for_marketplace: bool, - ///

    The approval status of the model package.

    - #[serde(rename = "ModelApprovalStatus")] - #[serde(default)] - pub model_approval_status: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] - pub metadata_properties: std::option::Option, - ///

    Metrics for the model.

    - #[serde(rename = "ModelMetrics")] - #[serde(default)] - pub model_metrics: std::option::Option, - ///

    The last time the model package was modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, - ///

    A description provided for the model approval.

    - #[serde(rename = "ApprovalDescription")] - #[serde(default)] - pub approval_description: std::option::Option, -} -impl std::fmt::Debug for DescribeModelPackageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelPackageOutputBody"); - formatter.field("model_package_name", &self.model_package_name); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field("model_package_version", &self.model_package_version); - formatter.field("model_package_arn", &self.model_package_arn); - formatter.field("model_package_description", &self.model_package_description); - formatter.field("creation_time", &self.creation_time); - formatter.field("inference_specification", &self.inference_specification); - formatter.field( - "source_algorithm_specification", - &self.source_algorithm_specification, - ); - formatter.field("validation_specification", &self.validation_specification); - formatter.field("model_package_status", &self.model_package_status); - formatter.field( - "model_package_status_details", - &self.model_package_status_details, - ); - formatter.field("certify_for_marketplace", &self.certify_for_marketplace); - formatter.field("model_approval_status", &self.model_approval_status); - formatter.field("created_by", &self.created_by); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("model_metrics", &self.model_metrics); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.field("approval_description", &self.approval_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelPackageGroupOutputBody { - ///

    The name of the model group.

    - #[serde(rename = "ModelPackageGroupName")] - #[serde(default)] - pub model_package_group_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the model group.

    - #[serde(rename = "ModelPackageGroupArn")] - #[serde(default)] - pub model_package_group_arn: std::option::Option, - ///

    A description of the model group.

    - #[serde(rename = "ModelPackageGroupDescription")] - #[serde(default)] - pub model_package_group_description: std::option::Option, - ///

    The time that the model group was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    The status of the model group.

    - #[serde(rename = "ModelPackageGroupStatus")] - #[serde(default)] - pub model_package_group_status: std::option::Option, -} -impl std::fmt::Debug for DescribeModelPackageGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelPackageGroupOutputBody"); - formatter.field("model_package_group_name", &self.model_package_group_name); - formatter.field("model_package_group_arn", &self.model_package_group_arn); - formatter.field( - "model_package_group_description", - &self.model_package_group_description, - ); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field( - "model_package_group_status", - &self.model_package_group_status, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeModelQualityJobDefinitionOutputBody { - ///

    The Amazon Resource Name (ARN) of the model quality job.

    - #[serde(rename = "JobDefinitionArn")] - #[serde(default)] - pub job_definition_arn: std::option::Option, - ///

    The name of the quality job definition. The name must be unique within an AWS Region in - /// the AWS account.

    - #[serde(rename = "JobDefinitionName")] - #[serde(default)] - pub job_definition_name: std::option::Option, - ///

    The time at which the model quality job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The baseline configuration for a model quality job.

    - #[serde(rename = "ModelQualityBaselineConfig")] - #[serde(default)] - pub model_quality_baseline_config: - std::option::Option, - ///

    Configures the model quality job to run a specified Docker container image.

    - #[serde(rename = "ModelQualityAppSpecification")] - #[serde(default)] - pub model_quality_app_specification: - std::option::Option, - ///

    Inputs for the model quality job.

    - #[serde(rename = "ModelQualityJobInput")] - #[serde(default)] - pub model_quality_job_input: std::option::Option, - ///

    The output configuration for monitoring jobs.

    - #[serde(rename = "ModelQualityJobOutputConfig")] - #[serde(default)] - pub model_quality_job_output_config: std::option::Option, - ///

    Identifies the resources to deploy for a monitoring job.

    - #[serde(rename = "JobResources")] - #[serde(default)] - pub job_resources: std::option::Option, - ///

    Networking options for a model quality job.

    - #[serde(rename = "NetworkConfig")] - #[serde(default)] - pub network_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to - /// perform tasks on your behalf.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    A time limit for how long the monitoring job is allowed to run before stopping.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, -} -impl std::fmt::Debug for DescribeModelQualityJobDefinitionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeModelQualityJobDefinitionOutputBody"); - formatter.field("job_definition_arn", &self.job_definition_arn); - formatter.field("job_definition_name", &self.job_definition_name); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "model_quality_baseline_config", - &self.model_quality_baseline_config, - ); - formatter.field( - "model_quality_app_specification", - &self.model_quality_app_specification, - ); - formatter.field("model_quality_job_input", &self.model_quality_job_input); - formatter.field( - "model_quality_job_output_config", - &self.model_quality_job_output_config, - ); - formatter.field("job_resources", &self.job_resources); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMonitoringScheduleOutputBody { - ///

    The Amazon Resource Name (ARN) of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] - pub monitoring_schedule_arn: std::option::Option, - ///

    Name of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleName")] - #[serde(default)] - pub monitoring_schedule_name: std::option::Option, - ///

    The status of an monitoring job.

    - #[serde(rename = "MonitoringScheduleStatus")] - #[serde(default)] - pub monitoring_schedule_status: std::option::Option, - ///

    The type of the monitoring job that this schedule runs. This is one of the following - /// values.

    - ///
      - ///
    • - ///

      - /// DATA_QUALITY - The schedule is for a data quality monitoring - /// job.

      - ///
    • - ///
    • - ///

      - /// MODEL_QUALITY - The schedule is for a model quality monitoring - /// job.

      - ///
    • - ///
    • - ///

      - /// MODEL_BIAS - The schedule is for a bias monitoring job.

      - ///
    • - ///
    • - ///

      - /// MODEL_EXPLAINABILITY - The schedule is for an explainability - /// monitoring job.

      - ///
    • - ///
    - #[serde(rename = "MonitoringType")] - #[serde(default)] - pub monitoring_type: std::option::Option, - ///

    A string, up to one KB in size, that contains the reason a monitoring job failed, if it - /// failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The time at which the monitoring job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The time at which the monitoring job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The configuration object that specifies the monitoring schedule and defines the - /// monitoring job.

    - #[serde(rename = "MonitoringScheduleConfig")] - #[serde(default)] - pub monitoring_schedule_config: std::option::Option, - ///

    The name of the endpoint for the monitoring job.

    - #[serde(rename = "EndpointName")] - #[serde(default)] - pub endpoint_name: std::option::Option, - ///

    Describes metadata on the last execution to run, if there was one.

    - #[serde(rename = "LastMonitoringExecutionSummary")] - #[serde(default)] - pub last_monitoring_execution_summary: - std::option::Option, -} -impl std::fmt::Debug for DescribeMonitoringScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMonitoringScheduleOutputBody"); - formatter.field("monitoring_schedule_arn", &self.monitoring_schedule_arn); - formatter.field("monitoring_schedule_name", &self.monitoring_schedule_name); - formatter.field( - "monitoring_schedule_status", - &self.monitoring_schedule_status, - ); - formatter.field("monitoring_type", &self.monitoring_type); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field( - "monitoring_schedule_config", - &self.monitoring_schedule_config, - ); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field( - "last_monitoring_execution_summary", - &self.last_monitoring_execution_summary, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeNotebookInstanceOutputBody { - ///

    The Amazon Resource Name (ARN) of the notebook instance.

    - #[serde(rename = "NotebookInstanceArn")] - #[serde(default)] - pub notebook_instance_arn: std::option::Option, - ///

    The name of the Amazon SageMaker notebook instance.

    - #[serde(rename = "NotebookInstanceName")] - #[serde(default)] - pub notebook_instance_name: std::option::Option, - ///

    The status of the notebook instance.

    - #[serde(rename = "NotebookInstanceStatus")] - #[serde(default)] - pub notebook_instance_status: std::option::Option, - ///

    If status is Failed, the reason it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The URL that you use to connect to the Jupyter notebook that is running in your - /// notebook instance.

    - #[serde(rename = "Url")] - #[serde(default)] - pub url: std::option::Option, - ///

    The type of ML compute instance running on the notebook instance.

    - #[serde(rename = "InstanceType")] - #[serde(default)] - pub instance_type: std::option::Option, - ///

    The ID of the VPC subnet.

    - #[serde(rename = "SubnetId")] - #[serde(default)] - pub subnet_id: std::option::Option, - ///

    The IDs of the VPC security groups.

    - #[serde(rename = "SecurityGroups")] - #[serde(default)] - pub security_groups: std::option::Option>, - ///

    The Amazon Resource Name (ARN) of the IAM role associated with the instance. - ///

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage - /// volume attached to the instance.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] - pub kms_key_id: std::option::Option, - ///

    The network interface IDs that Amazon SageMaker created at the time of creating the instance. - ///

    - #[serde(rename = "NetworkInterfaceId")] - #[serde(default)] - pub network_interface_id: std::option::Option, - ///

    A timestamp. Use this parameter to retrieve the time when the notebook instance was - /// last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    A timestamp. Use this parameter to return the time when the notebook instance was - /// created

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Returns the name of a notebook instance lifecycle configuration.

    - ///

    For information about notebook instance lifestyle configurations, see Step - /// 2.1: (Optional) Customize a Notebook Instance - ///

    - #[serde(rename = "NotebookInstanceLifecycleConfigName")] - #[serde(default)] - pub notebook_instance_lifecycle_config_name: std::option::Option, - ///

    Describes whether Amazon SageMaker provides internet access to the notebook instance. If this - /// value is set to Disabled, the notebook instance does not have - /// internet access, and cannot connect to Amazon SageMaker training and endpoint services.

    - ///

    For more information, see Notebook Instances Are Internet-Enabled by Default.

    - #[serde(rename = "DirectInternetAccess")] - #[serde(default)] - pub direct_internet_access: std::option::Option, - ///

    The size, in GB, of the ML storage volume attached to the notebook instance.

    - #[serde(rename = "VolumeSizeInGB")] - #[serde(default)] - pub volume_size_in_gb: std::option::Option, - ///

    A list of the Elastic Inference (EI) instance types associated with this notebook - /// instance. Currently only one EI instance type can be associated with a notebook - /// instance. For more information, see Using Elastic Inference in Amazon - /// SageMaker.

    - #[serde(rename = "AcceleratorTypes")] - #[serde(default)] - pub accelerator_types: - std::option::Option>, - ///

    The Git repository associated with the notebook instance as its default code - /// repository. This can be either the name of a Git repository stored as a resource in your - /// account, or the URL of a Git repository in AWS CodeCommit or in any - /// other Git repository. When you open a notebook instance, it opens in the directory that - /// contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker - /// Notebook Instances.

    - #[serde(rename = "DefaultCodeRepository")] - #[serde(default)] - pub default_code_repository: std::option::Option, - ///

    An array of up to three Git repositories associated with the notebook instance. These - /// can be either the names of Git repositories stored as resources in your account, or the - /// URL of Git repositories in AWS CodeCommit or in any - /// other Git repository. These repositories are cloned at the same level as the default - /// repository of your notebook instance. For more information, see Associating Git - /// Repositories with Amazon SageMaker Notebook Instances.

    - #[serde(rename = "AdditionalCodeRepositories")] - #[serde(default)] - pub additional_code_repositories: std::option::Option>, - ///

    Whether root access is enabled or disabled for users of the notebook instance.

    - /// - ///

    Lifecycle configurations need root access to be able to set up a notebook - /// instance. Because of this, lifecycle configurations associated with a notebook - /// instance always run with root access even if you disable root access for - /// users.

    - ///
    - #[serde(rename = "RootAccess")] - #[serde(default)] - pub root_access: std::option::Option, -} -impl std::fmt::Debug for DescribeNotebookInstanceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeNotebookInstanceOutputBody"); - formatter.field("notebook_instance_arn", &self.notebook_instance_arn); - formatter.field("notebook_instance_name", &self.notebook_instance_name); - formatter.field("notebook_instance_status", &self.notebook_instance_status); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("url", &self.url); - formatter.field("instance_type", &self.instance_type); - formatter.field("subnet_id", &self.subnet_id); - formatter.field("security_groups", &self.security_groups); - formatter.field("role_arn", &self.role_arn); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("network_interface_id", &self.network_interface_id); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("creation_time", &self.creation_time); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.field("direct_internet_access", &self.direct_internet_access); - formatter.field("volume_size_in_gb", &self.volume_size_in_gb); - formatter.field("accelerator_types", &self.accelerator_types); - formatter.field("default_code_repository", &self.default_code_repository); - formatter.field( - "additional_code_repositories", - &self.additional_code_repositories, - ); - formatter.field("root_access", &self.root_access); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeNotebookInstanceLifecycleConfigOutputBody { - ///

    The Amazon Resource Name (ARN) of the lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigArn")] - #[serde(default)] - pub notebook_instance_lifecycle_config_arn: std::option::Option, - ///

    The name of the lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigName")] - #[serde(default)] - pub notebook_instance_lifecycle_config_name: std::option::Option, - ///

    The shell script that runs only once, when you create a notebook instance.

    - #[serde(rename = "OnCreate")] - #[serde(default)] - pub on_create: std::option::Option>, - ///

    The shell script that runs every time you start a notebook instance, including when - /// you create the notebook instance.

    - #[serde(rename = "OnStart")] - #[serde(default)] - pub on_start: std::option::Option>, - ///

    A timestamp that tells when the lifecycle configuration was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    A timestamp that tells when the lifecycle configuration was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, -} -impl std::fmt::Debug for DescribeNotebookInstanceLifecycleConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeNotebookInstanceLifecycleConfigOutputBody"); - formatter.field( - "notebook_instance_lifecycle_config_arn", - &self.notebook_instance_lifecycle_config_arn, - ); - formatter.field( - "notebook_instance_lifecycle_config_name", - &self.notebook_instance_lifecycle_config_name, - ); - formatter.field("on_create", &self.on_create); - formatter.field("on_start", &self.on_start); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("creation_time", &self.creation_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] - pub pipeline_arn: std::option::Option, - ///

    The name of the pipeline.

    - #[serde(rename = "PipelineName")] - #[serde(default)] - pub pipeline_name: std::option::Option, - ///

    The display name of the pipeline.

    - #[serde(rename = "PipelineDisplayName")] - #[serde(default)] - pub pipeline_display_name: std::option::Option, - ///

    The JSON pipeline definition.

    - #[serde(rename = "PipelineDefinition")] - #[serde(default)] - pub pipeline_definition: std::option::Option, - ///

    The description of the pipeline.

    - #[serde(rename = "PipelineDescription")] - #[serde(default)] - pub pipeline_description: std::option::Option, - ///

    The Amazon Resource Name (ARN) that the pipeline uses to execute.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The status of the pipeline execution.

    - #[serde(rename = "PipelineStatus")] - #[serde(default)] - pub pipeline_status: std::option::Option, - ///

    The time when the pipeline was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The time when the pipeline was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The time when the pipeline was last run.

    - #[serde(rename = "LastRunTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_run_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, -} -impl std::fmt::Debug for DescribePipelineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineOutputBody"); - formatter.field("pipeline_arn", &self.pipeline_arn); - formatter.field("pipeline_name", &self.pipeline_name); - formatter.field("pipeline_display_name", &self.pipeline_display_name); - formatter.field("pipeline_definition", &self.pipeline_definition); - formatter.field("pipeline_description", &self.pipeline_description); - formatter.field("role_arn", &self.role_arn); - formatter.field("pipeline_status", &self.pipeline_status); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_run_time", &self.last_run_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineDefinitionForExecutionOutputBody { - ///

    The JSON pipeline definition.

    - #[serde(rename = "PipelineDefinition")] - #[serde(default)] - pub pipeline_definition: std::option::Option, - ///

    The time when the pipeline was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, -} -impl std::fmt::Debug for DescribePipelineDefinitionForExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineDefinitionForExecutionOutputBody"); - formatter.field("pipeline_definition", &self.pipeline_definition); - formatter.field("creation_time", &self.creation_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePipelineExecutionOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] - pub pipeline_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, - ///

    The display name of the pipeline execution.

    - #[serde(rename = "PipelineExecutionDisplayName")] - #[serde(default)] - pub pipeline_execution_display_name: std::option::Option, - ///

    The status of the pipeline execution.

    - #[serde(rename = "PipelineExecutionStatus")] - #[serde(default)] - pub pipeline_execution_status: std::option::Option, - ///

    The description of the pipeline execution.

    - #[serde(rename = "PipelineExecutionDescription")] - #[serde(default)] - pub pipeline_execution_description: std::option::Option, - ///

    Specifies the names of the experiment and trial created by a pipeline.

    - #[serde(rename = "PipelineExperimentConfig")] - #[serde(default)] - pub pipeline_experiment_config: std::option::Option, - ///

    If the execution failed, a message describing why.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The time when the pipeline execution was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The time when the pipeline execution was modified last.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, -} -impl std::fmt::Debug for DescribePipelineExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePipelineExecutionOutputBody"); - formatter.field("pipeline_arn", &self.pipeline_arn); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.field( - "pipeline_execution_display_name", - &self.pipeline_execution_display_name, - ); - formatter.field("pipeline_execution_status", &self.pipeline_execution_status); - formatter.field( - "pipeline_execution_description", - &self.pipeline_execution_description, - ); - formatter.field( - "pipeline_experiment_config", - &self.pipeline_experiment_config, - ); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("creation_time", &self.creation_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeProcessingJobOutputBody { - ///

    The inputs for a processing job.

    - #[serde(rename = "ProcessingInputs")] - #[serde(default)] - pub processing_inputs: std::option::Option>, - ///

    Output configuration for the processing job.

    - #[serde(rename = "ProcessingOutputConfig")] - #[serde(default)] - pub processing_output_config: std::option::Option, - ///

    The name of the processing job. The name must be unique within an AWS Region in the - /// AWS account.

    - #[serde(rename = "ProcessingJobName")] - #[serde(default)] - pub processing_job_name: std::option::Option, - ///

    Identifies the resources, ML compute instances, and ML storage volumes to deploy for a - /// processing job. In distributed training, you specify more than one instance.

    - #[serde(rename = "ProcessingResources")] - #[serde(default)] - pub processing_resources: std::option::Option, - ///

    The time limit for how long the processing job is allowed to run.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, - ///

    Configures the processing job to run a specified container image.

    - #[serde(rename = "AppSpecification")] - #[serde(default)] - pub app_specification: std::option::Option, - ///

    The environment variables set in the Docker container.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: - std::option::Option>, - ///

    Networking options for a processing job.

    - #[serde(rename = "NetworkConfig")] - #[serde(default)] - pub network_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on - /// your behalf.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    The configuration information used to create an experiment.

    - #[serde(rename = "ExperimentConfig")] - #[serde(default)] - pub experiment_config: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the processing job.

    - #[serde(rename = "ProcessingJobArn")] - #[serde(default)] - pub processing_job_arn: std::option::Option, - ///

    Provides the status of a processing job.

    - #[serde(rename = "ProcessingJobStatus")] - #[serde(default)] - pub processing_job_status: std::option::Option, - ///

    An optional string, up to one KB in size, that contains metadata from the processing - /// container when the processing job exits.

    - #[serde(rename = "ExitMessage")] - #[serde(default)] - pub exit_message: std::option::Option, - ///

    A string, up to one KB in size, that contains the reason a processing job failed, if - /// it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The time at which the processing job completed.

    - #[serde(rename = "ProcessingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub processing_end_time: std::option::Option, - ///

    The time at which the processing job started.

    - #[serde(rename = "ProcessingStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub processing_start_time: std::option::Option, - ///

    The time at which the processing job was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The time at which the processing job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The ARN of a monitoring schedule for an endpoint associated with this processing - /// job.

    - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] - pub monitoring_schedule_arn: std::option::Option, - ///

    The ARN of an AutoML job associated with this processing job.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] - pub auto_ml_job_arn: std::option::Option, - ///

    The ARN of a training job associated with this processing job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] - pub training_job_arn: std::option::Option, -} -impl std::fmt::Debug for DescribeProcessingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeProcessingJobOutputBody"); - formatter.field("processing_inputs", &self.processing_inputs); - formatter.field("processing_output_config", &self.processing_output_config); - formatter.field("processing_job_name", &self.processing_job_name); - formatter.field("processing_resources", &self.processing_resources); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("app_specification", &self.app_specification); - formatter.field("environment", &self.environment); - formatter.field("network_config", &self.network_config); - formatter.field("role_arn", &self.role_arn); - formatter.field("experiment_config", &self.experiment_config); - formatter.field("processing_job_arn", &self.processing_job_arn); - formatter.field("processing_job_status", &self.processing_job_status); - formatter.field("exit_message", &self.exit_message); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("processing_end_time", &self.processing_end_time); - formatter.field("processing_start_time", &self.processing_start_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("creation_time", &self.creation_time); - formatter.field("monitoring_schedule_arn", &self.monitoring_schedule_arn); - formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); - formatter.field("training_job_arn", &self.training_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeProjectOutputBody { - ///

    The Amazon Resource Name (ARN) of the project.

    - #[serde(rename = "ProjectArn")] - #[serde(default)] - pub project_arn: std::option::Option, - ///

    The name of the project.

    - #[serde(rename = "ProjectName")] - #[serde(default)] - pub project_name: std::option::Option, - ///

    The ID of the project.

    - #[serde(rename = "ProjectId")] - #[serde(default)] - pub project_id: std::option::Option, - ///

    The description of the project.

    - #[serde(rename = "ProjectDescription")] - #[serde(default)] - pub project_description: std::option::Option, - ///

    Information used to provision a service catalog product. For information, see What is AWS Service - /// Catalog.

    - #[serde(rename = "ServiceCatalogProvisioningDetails")] - #[serde(default)] - pub service_catalog_provisioning_details: - std::option::Option, - ///

    Information about a provisioned service catalog product.

    - #[serde(rename = "ServiceCatalogProvisionedProductDetails")] - #[serde(default)] - pub service_catalog_provisioned_product_details: - std::option::Option, - ///

    The status of the project.

    - #[serde(rename = "ProjectStatus")] - #[serde(default)] - pub project_status: std::option::Option, - ///

    Information about the user who created or modified an experiment, trial, or trial - /// component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    The time when the project was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, -} -impl std::fmt::Debug for DescribeProjectOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeProjectOutputBody"); - formatter.field("project_arn", &self.project_arn); - formatter.field("project_name", &self.project_name); - formatter.field("project_id", &self.project_id); - formatter.field("project_description", &self.project_description); - formatter.field( - "service_catalog_provisioning_details", - &self.service_catalog_provisioning_details, - ); - formatter.field( - "service_catalog_provisioned_product_details", - &self.service_catalog_provisioned_product_details, - ); - formatter.field("project_status", &self.project_status); - formatter.field("created_by", &self.created_by); - formatter.field("creation_time", &self.creation_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSubscribedWorkteamOutputBody { - ///

    A Workteam instance that contains information about the work team.

    - #[serde(rename = "SubscribedWorkteam")] - #[serde(default)] - pub subscribed_workteam: std::option::Option, -} -impl std::fmt::Debug for DescribeSubscribedWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSubscribedWorkteamOutputBody"); - formatter.field("subscribed_workteam", &self.subscribed_workteam); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrainingJobOutputBody { - ///

    Name of the model training job.

    - #[serde(rename = "TrainingJobName")] - #[serde(default)] - pub training_job_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the training job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] - pub training_job_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the - /// training job was launched by a hyperparameter tuning job.

    - #[serde(rename = "TuningJobArn")] - #[serde(default)] - pub tuning_job_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job that created the - /// transform or training job.

    - #[serde(rename = "LabelingJobArn")] - #[serde(default)] - pub labeling_job_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of an AutoML job.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] - pub auto_ml_job_arn: std::option::Option, - ///

    Information about the Amazon S3 location that is configured for storing model artifacts. - ///

    - #[serde(rename = "ModelArtifacts")] - #[serde(default)] - pub model_artifacts: std::option::Option, - ///

    The status of the - /// training - /// job.

    - ///

    Amazon SageMaker provides the following training job statuses:

    - ///
      - ///
    • - ///

      - /// InProgress - The training is in progress.

      - ///
    • - ///
    • - ///

      - /// Completed - The training job has completed.

      - ///
    • - ///
    • - ///

      - /// Failed - The training job has failed. To see the reason for the - /// failure, see the FailureReason field in the response to a - /// DescribeTrainingJobResponse call.

      - ///
    • - ///
    • - ///

      - /// Stopping - The training job is stopping.

      - ///
    • - ///
    • - ///

      - /// Stopped - The training job has stopped.

      - ///
    • - ///
    - ///

    For - /// more detailed information, see SecondaryStatus.

    - #[serde(rename = "TrainingJobStatus")] - #[serde(default)] - pub training_job_status: std::option::Option, - ///

    Provides detailed information about the state of the training job. For detailed - /// information on the secondary status of the training job, see StatusMessage - /// under SecondaryStatusTransition.

    - ///

    Amazon SageMaker provides primary statuses and secondary statuses that apply to each of - /// them:

    - ///
    - ///
    InProgress
    - ///
    - ///
      - ///
    • - ///

      - /// Starting - /// - Starting the training job.

      - ///
    • - ///
    • - ///

      - /// Downloading - An optional stage for algorithms that - /// support File training input mode. It indicates that - /// data is being downloaded to the ML storage volumes.

      - ///
    • - ///
    • - ///

      - /// Training - Training is in progress.

      - ///
    • - ///
    • - ///

      - /// Interrupted - The job stopped because the managed - /// spot training instances were interrupted.

      - ///
    • - ///
    • - ///

      - /// Uploading - Training is complete and the model - /// artifacts are being uploaded to the S3 location.

      - ///
    • - ///
    - ///
    - ///
    Completed
    - ///
    - ///
      - ///
    • - ///

      - /// Completed - The training job has completed.

      - ///
    • - ///
    - ///
    - ///
    Failed
    - ///
    - ///
      - ///
    • - ///

      - /// Failed - The training job has failed. The reason for - /// the failure is returned in the FailureReason field of - /// DescribeTrainingJobResponse.

      - ///
    • - ///
    - ///
    - ///
    Stopped
    - ///
    - ///
      - ///
    • - ///

      - /// MaxRuntimeExceeded - The job stopped because it - /// exceeded the maximum allowed runtime.

      - ///
    • - ///
    • - ///

      - /// MaxWaitTimeExceeded - The job stopped because it - /// exceeded the maximum allowed wait time.

      - ///
    • - ///
    • - ///

      - /// Stopped - The training job has stopped.

      - ///
    • - ///
    - ///
    - ///
    Stopping
    - ///
    - ///
      - ///
    • - ///

      - /// Stopping - Stopping the training job.

      - ///
    • - ///
    - ///
    - ///
    - /// - ///

    Valid values for SecondaryStatus are subject to change.

    - ///
    - ///

    We no longer support the following secondary statuses:

    - ///
      - ///
    • - ///

      - /// LaunchingMLInstances - ///

      - ///
    • - ///
    • - ///

      - /// PreparingTraining - ///

      - ///
    • - ///
    • - ///

      - /// DownloadingTrainingImage - ///

      - ///
    • - ///
    - #[serde(rename = "SecondaryStatus")] - #[serde(default)] - pub secondary_status: std::option::Option, - ///

    If the training job failed, the reason it failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    Algorithm-specific parameters.

    - #[serde(rename = "HyperParameters")] - #[serde(default)] - pub hyper_parameters: - std::option::Option>, - ///

    Information about the algorithm used for training, and algorithm metadata. - ///

    - #[serde(rename = "AlgorithmSpecification")] - #[serde(default)] - pub algorithm_specification: std::option::Option, - ///

    The AWS Identity and Access Management (IAM) role configured for the training job.

    - #[serde(rename = "RoleArn")] - #[serde(default)] - pub role_arn: std::option::Option, - ///

    An array of Channel objects that describes each data input channel. - ///

    - #[serde(rename = "InputDataConfig")] - #[serde(default)] - pub input_data_config: std::option::Option>, - ///

    The S3 path where model artifacts that you configured when creating the job are - /// stored. Amazon SageMaker creates subfolders for model artifacts.

    - #[serde(rename = "OutputDataConfig")] - #[serde(default)] - pub output_data_config: std::option::Option, - ///

    Resources, including ML compute instances and ML storage volumes, that are - /// configured for model training.

    - #[serde(rename = "ResourceConfig")] - #[serde(default)] - pub resource_config: std::option::Option, - ///

    A VpcConfig object that specifies the VPC that this training job has - /// access to. For more information, see Protect Training Jobs by Using an Amazon - /// Virtual Private Cloud.

    - #[serde(rename = "VpcConfig")] - #[serde(default)] - pub vpc_config: std::option::Option, - ///

    Specifies a limit to how long a model training job can run. It also specifies how long - /// a managed Spot training job has to complete. When the job reaches the time limit, Amazon SageMaker - /// ends the training job. Use this API to cap model training costs.

    - ///

    To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays - /// job termination for 120 seconds. Algorithms can use this 120-second window to save the - /// model artifacts, so the results of training are not lost.

    - #[serde(rename = "StoppingCondition")] - #[serde(default)] - pub stopping_condition: std::option::Option, - ///

    A timestamp that indicates when the training job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Indicates the time when the training job starts on training instances. You are - /// billed for the time interval between this time and the value of - /// TrainingEndTime. The start time in CloudWatch Logs might be later than this time. - /// The difference is due to the time it takes to download the training data and to the size - /// of the training container.

    - #[serde(rename = "TrainingStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub training_start_time: std::option::Option, - ///

    Indicates the time when the training job ends on training instances. You are billed - /// for the time interval between the value of TrainingStartTime and this time. - /// For successful jobs and stopped jobs, this is the time after model artifacts are - /// uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.

    - #[serde(rename = "TrainingEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub training_end_time: std::option::Option, - ///

    A timestamp that indicates when the status of the training job was last - /// modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    A history of all of the secondary statuses that the training job has transitioned - /// through.

    - #[serde(rename = "SecondaryStatusTransitions")] - #[serde(default)] - pub secondary_status_transitions: - std::option::Option>, - ///

    A collection of MetricData objects that specify the names, values, and - /// dates and times that the training algorithm emitted to Amazon CloudWatch.

    - #[serde(rename = "FinalMetricDataList")] - #[serde(default)] - pub final_metric_data_list: std::option::Option>, - ///

    If you want to allow inbound or outbound network calls, except for calls between peers - /// within a training cluster for distributed training, choose True. If you - /// enable network isolation for training jobs that are configured to use a VPC, Amazon SageMaker - /// downloads and uploads customer data and model artifacts through the specified VPC, but - /// the training container does not have network access.

    - #[serde(rename = "EnableNetworkIsolation")] - #[serde(default)] - pub enable_network_isolation: bool, - ///

    To encrypt all communications between ML compute instances in distributed training, - /// choose True. Encryption provides greater security for distributed training, - /// but training might take longer. How long it takes depends on the amount of communication - /// between compute instances, especially if you use a deep learning algorithms in - /// distributed training.

    - #[serde(rename = "EnableInterContainerTrafficEncryption")] - #[serde(default)] - pub enable_inter_container_traffic_encryption: bool, - ///

    A Boolean indicating whether managed spot training is enabled (True) or - /// not (False).

    - #[serde(rename = "EnableManagedSpotTraining")] - #[serde(default)] - pub enable_managed_spot_training: bool, - ///

    Contains information about the output location for managed spot training checkpoint - /// data.

    - #[serde(rename = "CheckpointConfig")] - #[serde(default)] - pub checkpoint_config: std::option::Option, - ///

    The training time in seconds.

    - #[serde(rename = "TrainingTimeInSeconds")] - #[serde(default)] - pub training_time_in_seconds: std::option::Option, - ///

    The billable time in seconds. Billable time refers to the absolute wall-clock - /// time.

    - ///

    Multiply BillableTimeInSeconds by the number of instances - /// (InstanceCount) in your training cluster to get the total compute time - /// Amazon SageMaker will bill you if you run distributed training. The formula is as follows: - /// BillableTimeInSeconds * InstanceCount .

    - ///

    You can calculate the savings from using managed spot training using the formula - /// (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100. For example, - /// if BillableTimeInSeconds is 100 and TrainingTimeInSeconds is - /// 500, the savings is 80%.

    - #[serde(rename = "BillableTimeInSeconds")] - #[serde(default)] - pub billable_time_in_seconds: std::option::Option, - ///

    Configuration information for the Debugger hook parameters, metric and tensor collections, and - /// storage paths. To learn more about - /// how to configure the DebugHookConfig parameter, - /// see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    - #[serde(rename = "DebugHookConfig")] - #[serde(default)] - pub debug_hook_config: std::option::Option, - ///

    Associates a SageMaker job as a trial component with an experiment and trial. Specified when - /// you call the following APIs:

    - /// - #[serde(rename = "ExperimentConfig")] - #[serde(default)] - pub experiment_config: std::option::Option, - ///

    Configuration information for Debugger rules for debugging output tensors.

    - #[serde(rename = "DebugRuleConfigurations")] - #[serde(default)] - pub debug_rule_configurations: - std::option::Option>, - ///

    Configuration of storage locations for the Debugger TensorBoard output data.

    - #[serde(rename = "TensorBoardOutputConfig")] - #[serde(default)] - pub tensor_board_output_config: std::option::Option, - ///

    Evaluation status of Debugger rules for debugging on a training job.

    - #[serde(rename = "DebugRuleEvaluationStatuses")] - #[serde(default)] - pub debug_rule_evaluation_statuses: - std::option::Option>, - ///

    Configuration information for Debugger system monitoring, framework profiling, and - /// storage paths.

    - #[serde(rename = "ProfilerConfig")] - #[serde(default)] - pub profiler_config: std::option::Option, - ///

    Configuration information for Debugger rules for profiling system and framework - /// metrics.

    - #[serde(rename = "ProfilerRuleConfigurations")] - #[serde(default)] - pub profiler_rule_configurations: - std::option::Option>, - ///

    Evaluation status of Debugger rules for profiling on a training job.

    - #[serde(rename = "ProfilerRuleEvaluationStatuses")] - #[serde(default)] - pub profiler_rule_evaluation_statuses: - std::option::Option>, - ///

    Profiling status of a training job.

    - #[serde(rename = "ProfilingStatus")] - #[serde(default)] - pub profiling_status: std::option::Option, - ///

    The number of times to retry the job when the job fails due to an - /// InternalServerError.

    - #[serde(rename = "RetryStrategy")] - #[serde(default)] - pub retry_strategy: std::option::Option, - ///

    The environment variables to set in the Docker container.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: - std::option::Option>, -} -impl std::fmt::Debug for DescribeTrainingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrainingJobOutputBody"); - formatter.field("training_job_name", &self.training_job_name); - formatter.field("training_job_arn", &self.training_job_arn); - formatter.field("tuning_job_arn", &self.tuning_job_arn); - formatter.field("labeling_job_arn", &self.labeling_job_arn); - formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); - formatter.field("model_artifacts", &self.model_artifacts); - formatter.field("training_job_status", &self.training_job_status); - formatter.field("secondary_status", &self.secondary_status); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("hyper_parameters", &self.hyper_parameters); - formatter.field("algorithm_specification", &self.algorithm_specification); - formatter.field("role_arn", &self.role_arn); - formatter.field("input_data_config", &self.input_data_config); - formatter.field("output_data_config", &self.output_data_config); - formatter.field("resource_config", &self.resource_config); - formatter.field("vpc_config", &self.vpc_config); - formatter.field("stopping_condition", &self.stopping_condition); - formatter.field("creation_time", &self.creation_time); - formatter.field("training_start_time", &self.training_start_time); - formatter.field("training_end_time", &self.training_end_time); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field( - "secondary_status_transitions", - &self.secondary_status_transitions, - ); - formatter.field("final_metric_data_list", &self.final_metric_data_list); - formatter.field("enable_network_isolation", &self.enable_network_isolation); - formatter.field( - "enable_inter_container_traffic_encryption", - &self.enable_inter_container_traffic_encryption, - ); - formatter.field( - "enable_managed_spot_training", - &self.enable_managed_spot_training, - ); - formatter.field("checkpoint_config", &self.checkpoint_config); - formatter.field("training_time_in_seconds", &self.training_time_in_seconds); - formatter.field("billable_time_in_seconds", &self.billable_time_in_seconds); - formatter.field("debug_hook_config", &self.debug_hook_config); - formatter.field("experiment_config", &self.experiment_config); - formatter.field("debug_rule_configurations", &self.debug_rule_configurations); - formatter.field( - "tensor_board_output_config", - &self.tensor_board_output_config, - ); - formatter.field( - "debug_rule_evaluation_statuses", - &self.debug_rule_evaluation_statuses, - ); - formatter.field("profiler_config", &self.profiler_config); - formatter.field( - "profiler_rule_configurations", - &self.profiler_rule_configurations, - ); - formatter.field( - "profiler_rule_evaluation_statuses", - &self.profiler_rule_evaluation_statuses, - ); - formatter.field("profiling_status", &self.profiling_status); - formatter.field("retry_strategy", &self.retry_strategy); - formatter.field("environment", &self.environment); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTransformJobOutputBody { - ///

    The name of the transform job.

    - #[serde(rename = "TransformJobName")] - #[serde(default)] - pub transform_job_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the transform job.

    - #[serde(rename = "TransformJobArn")] - #[serde(default)] - pub transform_job_arn: std::option::Option, - ///

    The - /// status of the transform job. If the transform job failed, the reason - /// is returned in the FailureReason field.

    - #[serde(rename = "TransformJobStatus")] - #[serde(default)] - pub transform_job_status: std::option::Option, - ///

    If the transform job failed, FailureReason describes - /// why - /// it failed. A transform job creates a log file, which includes error - /// messages, and stores it - /// as - /// an Amazon S3 object. For more information, see Log Amazon SageMaker Events with - /// Amazon CloudWatch.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The name of the model used in the transform job.

    - #[serde(rename = "ModelName")] - #[serde(default)] - pub model_name: std::option::Option, - ///

    The - /// maximum number - /// of - /// parallel requests on each instance node - /// that can be launched in a transform job. The default value is 1.

    - #[serde(rename = "MaxConcurrentTransforms")] - #[serde(default)] - pub max_concurrent_transforms: std::option::Option, - ///

    The timeout and maximum number of retries for processing a transform job - /// invocation.

    - #[serde(rename = "ModelClientConfig")] - #[serde(default)] - pub model_client_config: std::option::Option, - ///

    The - /// maximum - /// payload size, in MB, used in the - /// transform job.

    - #[serde(rename = "MaxPayloadInMB")] - #[serde(default)] - pub max_payload_in_mb: std::option::Option, - ///

    Specifies the number of records to include in a mini-batch for an HTTP inference - /// request. - /// A record - /// is a single unit of input data that inference - /// can be made on. For example, a single line in a CSV file is a record.

    - ///

    To enable the batch strategy, you must set SplitType - /// to - /// Line, RecordIO, or - /// TFRecord.

    - #[serde(rename = "BatchStrategy")] - #[serde(default)] - pub batch_strategy: std::option::Option, - ///

    The - /// environment variables to set in the Docker container. We support up to 16 key and values - /// entries in the map.

    - #[serde(rename = "Environment")] - #[serde(default)] - pub environment: - std::option::Option>, - ///

    Describes the dataset to be transformed and the Amazon S3 location where it is - /// stored.

    - #[serde(rename = "TransformInput")] - #[serde(default)] - pub transform_input: std::option::Option, - ///

    Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the - /// transform job.

    - #[serde(rename = "TransformOutput")] - #[serde(default)] - pub transform_output: std::option::Option, - ///

    Describes - /// the resources, including ML instance types and ML instance count, to - /// use for the transform job.

    - #[serde(rename = "TransformResources")] - #[serde(default)] - pub transform_resources: std::option::Option, - ///

    A timestamp that shows when the transform Job was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Indicates when the transform job starts - /// on - /// ML instances. You are billed for the time interval between this time - /// and the value of TransformEndTime.

    - #[serde(rename = "TransformStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub transform_start_time: std::option::Option, - ///

    Indicates when the transform job has been - /// completed, or has stopped or failed. You are billed for the time - /// interval between this time and the value of TransformStartTime.

    - #[serde(rename = "TransformEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub transform_end_time: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job that created the - /// transform or training job.

    - #[serde(rename = "LabelingJobArn")] - #[serde(default)] - pub labeling_job_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AutoML transform job.

    - #[serde(rename = "AutoMLJobArn")] - #[serde(default)] - pub auto_ml_job_arn: std::option::Option, - ///

    The data structure used to specify the data to be used for inference in a batch - /// transform job and to associate the data that is relevant to the prediction results in - /// the output. The input filter provided allows you to exclude input data that is not - /// needed for inference in a batch transform job. The output filter provided allows you to - /// include input data relevant to interpreting the predictions in the output from the job. - /// For more information, see Associate Prediction - /// Results with their Corresponding Input Records.

    - #[serde(rename = "DataProcessing")] - #[serde(default)] - pub data_processing: std::option::Option, - ///

    Associates a SageMaker job as a trial component with an experiment and trial. Specified when - /// you call the following APIs:

    - /// - #[serde(rename = "ExperimentConfig")] - #[serde(default)] - pub experiment_config: std::option::Option, -} -impl std::fmt::Debug for DescribeTransformJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTransformJobOutputBody"); - formatter.field("transform_job_name", &self.transform_job_name); - formatter.field("transform_job_arn", &self.transform_job_arn); - formatter.field("transform_job_status", &self.transform_job_status); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("model_name", &self.model_name); - formatter.field("max_concurrent_transforms", &self.max_concurrent_transforms); - formatter.field("model_client_config", &self.model_client_config); - formatter.field("max_payload_in_mb", &self.max_payload_in_mb); - formatter.field("batch_strategy", &self.batch_strategy); - formatter.field("environment", &self.environment); - formatter.field("transform_input", &self.transform_input); - formatter.field("transform_output", &self.transform_output); - formatter.field("transform_resources", &self.transform_resources); - formatter.field("creation_time", &self.creation_time); - formatter.field("transform_start_time", &self.transform_start_time); - formatter.field("transform_end_time", &self.transform_end_time); - formatter.field("labeling_job_arn", &self.labeling_job_arn); - formatter.field("auto_ml_job_arn", &self.auto_ml_job_arn); - formatter.field("data_processing", &self.data_processing); - formatter.field("experiment_config", &self.experiment_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrialOutputBody { - ///

    The name of the trial.

    - #[serde(rename = "TrialName")] - #[serde(default)] - pub trial_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, - ///

    The name of the trial as displayed. If DisplayName isn't specified, - /// TrialName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] - pub display_name: std::option::Option, - ///

    The name of the experiment the trial is part of.

    - #[serde(rename = "ExperimentName")] - #[serde(default)] - pub experiment_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the source and, optionally, the job type.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    When the trial was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Who created the trial.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the trial was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Who last modified the trial.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] - pub metadata_properties: std::option::Option, -} -impl std::fmt::Debug for DescribeTrialOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrialOutputBody"); - formatter.field("trial_name", &self.trial_name); - formatter.field("trial_arn", &self.trial_arn); - formatter.field("display_name", &self.display_name); - formatter.field("experiment_name", &self.experiment_name); - formatter.field("source", &self.source); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeTrialComponentOutputBody { - ///

    The name of the trial component.

    - #[serde(rename = "TrialComponentName")] - #[serde(default)] - pub trial_component_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, - ///

    The name of the component as displayed. If DisplayName isn't specified, - /// TrialComponentName is displayed.

    - #[serde(rename = "DisplayName")] - #[serde(default)] - pub display_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the source and, optionally, the job type.

    - #[serde(rename = "Source")] - #[serde(default)] - pub source: std::option::Option, - ///

    The status of the component. States include:

    - ///
      - ///
    • - ///

      InProgress

      - ///
    • - ///
    • - ///

      Completed

      - ///
    • - ///
    • - ///

      Failed

      - ///
    • - ///
    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    When the component started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub start_time: std::option::Option, - ///

    When the component ended.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub end_time: std::option::Option, - ///

    When the component was created.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    Who created the component.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] - pub created_by: std::option::Option, - ///

    When the component was last modified.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    Who last modified the component.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] - pub last_modified_by: std::option::Option, - ///

    The hyperparameters of the component.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option< - std::collections::HashMap, - >, - ///

    The input artifacts of the component.

    - #[serde(rename = "InputArtifacts")] - #[serde(default)] - pub input_artifacts: std::option::Option< - std::collections::HashMap, - >, - ///

    The output artifacts of the component.

    - #[serde(rename = "OutputArtifacts")] - #[serde(default)] - pub output_artifacts: std::option::Option< - std::collections::HashMap, - >, - ///

    Metadata properties of the tracking entity, trial, or trial component.

    - #[serde(rename = "MetadataProperties")] - #[serde(default)] - pub metadata_properties: std::option::Option, - ///

    The metrics for the component.

    - #[serde(rename = "Metrics")] - #[serde(default)] - pub metrics: std::option::Option>, -} -impl std::fmt::Debug for DescribeTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeTrialComponentOutputBody"); - formatter.field("trial_component_name", &self.trial_component_name); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.field("display_name", &self.display_name); - formatter.field("source", &self.source); - formatter.field("status", &self.status); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("creation_time", &self.creation_time); - formatter.field("created_by", &self.created_by); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("last_modified_by", &self.last_modified_by); - formatter.field("parameters", &self.parameters); - formatter.field("input_artifacts", &self.input_artifacts); - formatter.field("output_artifacts", &self.output_artifacts); - formatter.field("metadata_properties", &self.metadata_properties); - formatter.field("metrics", &self.metrics); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeUserProfileOutputBody { - ///

    The ID of the domain that contains the profile.

    - #[serde(rename = "DomainId")] - #[serde(default)] - pub domain_id: std::option::Option, - ///

    The user profile Amazon Resource Name (ARN).

    - #[serde(rename = "UserProfileArn")] - #[serde(default)] - pub user_profile_arn: std::option::Option, - ///

    The user profile name.

    - #[serde(rename = "UserProfileName")] - #[serde(default)] - pub user_profile_name: std::option::Option, - ///

    The ID of the user's profile in the Amazon Elastic File System (EFS) volume.

    - #[serde(rename = "HomeEfsFileSystemUid")] - #[serde(default)] - pub home_efs_file_system_uid: std::option::Option, - ///

    The status.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The last modified time.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_modified_time: std::option::Option, - ///

    The creation time.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The failure reason.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    The SSO user identifier.

    - #[serde(rename = "SingleSignOnUserIdentifier")] - #[serde(default)] - pub single_sign_on_user_identifier: std::option::Option, - ///

    The SSO user value.

    - #[serde(rename = "SingleSignOnUserValue")] - #[serde(default)] - pub single_sign_on_user_value: std::option::Option, - ///

    A collection of settings.

    - #[serde(rename = "UserSettings")] - #[serde(default)] - pub user_settings: std::option::Option, -} -impl std::fmt::Debug for DescribeUserProfileOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeUserProfileOutputBody"); - formatter.field("domain_id", &self.domain_id); - formatter.field("user_profile_arn", &self.user_profile_arn); - formatter.field("user_profile_name", &self.user_profile_name); - formatter.field("home_efs_file_system_uid", &self.home_efs_file_system_uid); - formatter.field("status", &self.status); - formatter.field("last_modified_time", &self.last_modified_time); - formatter.field("creation_time", &self.creation_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field( - "single_sign_on_user_identifier", - &self.single_sign_on_user_identifier, - ); - formatter.field("single_sign_on_user_value", &self.single_sign_on_user_value); - formatter.field("user_settings", &self.user_settings); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeWorkforceOutputBody { - ///

    A single private workforce, which is automatically created when you create your first - /// private work team. You can create one private work force in each AWS Region. By default, - /// any workforce-related API operation used in a specific region will apply to the - /// workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.

    - #[serde(rename = "Workforce")] - #[serde(default)] - pub workforce: std::option::Option, -} -impl std::fmt::Debug for DescribeWorkforceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeWorkforceOutputBody"); - formatter.field("workforce", &self.workforce); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeWorkteamOutputBody { - ///

    A Workteam instance that contains information about the work team. - ///

    - #[serde(rename = "Workteam")] - #[serde(default)] - pub workteam: std::option::Option, -} -impl std::fmt::Debug for DescribeWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeWorkteamOutputBody"); - formatter.field("workteam", &self.workteam); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateTrialComponentOutputBody { - ///

    The ARN of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, -} -impl std::fmt::Debug for DisassociateTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateTrialComponentOutputBody"); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.field("trial_arn", &self.trial_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeviceFleetReportOutputBody { - ///

    The Amazon Resource Name (ARN) of the device.

    - #[serde(rename = "DeviceFleetArn")] - #[serde(default)] - pub device_fleet_arn: std::option::Option, - ///

    The name of the fleet.

    - #[serde(rename = "DeviceFleetName")] - #[serde(default)] - pub device_fleet_name: std::option::Option, - ///

    The output configuration for storing sample data collected by the fleet.

    - #[serde(rename = "OutputConfig")] - #[serde(default)] - pub output_config: std::option::Option, - ///

    Description of the fleet.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Timestamp of when the report was generated.

    - #[serde(rename = "ReportGenerated")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub report_generated: std::option::Option, - ///

    Status of devices.

    - #[serde(rename = "DeviceStats")] - #[serde(default)] - pub device_stats: std::option::Option, - ///

    The versions of Edge Manager agent deployed on the fleet.

    - #[serde(rename = "AgentVersions")] - #[serde(default)] - pub agent_versions: std::option::Option>, - ///

    Status of model on device.

    - #[serde(rename = "ModelStats")] - #[serde(default)] - pub model_stats: std::option::Option>, -} -impl std::fmt::Debug for GetDeviceFleetReportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeviceFleetReportOutputBody"); - formatter.field("device_fleet_arn", &self.device_fleet_arn); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.field("output_config", &self.output_config); - formatter.field("description", &self.description); - formatter.field("report_generated", &self.report_generated); - formatter.field("device_stats", &self.device_stats); - formatter.field("agent_versions", &self.agent_versions); - formatter.field("model_stats", &self.model_stats); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetModelPackageGroupPolicyOutputBody { - ///

    The resource policy for the model group.

    - #[serde(rename = "ResourcePolicy")] - #[serde(default)] - pub resource_policy: std::option::Option, -} -impl std::fmt::Debug for GetModelPackageGroupPolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetModelPackageGroupPolicyOutputBody"); - formatter.field("resource_policy", &self.resource_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSagemakerServicecatalogPortfolioStatusOutputBody { - ///

    Whether Service Catalog is enabled or disabled in SageMaker.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, -} -impl std::fmt::Debug for GetSagemakerServicecatalogPortfolioStatusOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSagemakerServicecatalogPortfolioStatusOutputBody"); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSearchSuggestionsOutputBody { - ///

    A list of property names for a Resource that match a - /// SuggestionQuery.

    - #[serde(rename = "PropertyNameSuggestions")] - #[serde(default)] - pub property_name_suggestions: - std::option::Option>, -} -impl std::fmt::Debug for GetSearchSuggestionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSearchSuggestionsOutputBody"); - formatter.field("property_name_suggestions", &self.property_name_suggestions); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListActionsOutputBody { - ///

    A list of actions and their properties.

    - #[serde(rename = "ActionSummaries")] - #[serde(default)] - pub action_summaries: std::option::Option>, - ///

    A token for getting the next set of actions, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListActionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListActionsOutputBody"); - formatter.field("action_summaries", &self.action_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAlgorithmsOutputBody { - ///

    >An array of AlgorithmSummary objects, each of which lists an - /// algorithm.

    - #[serde(rename = "AlgorithmSummaryList")] - #[serde(default)] - pub algorithm_summary_list: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// algorithms, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAlgorithmsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAlgorithmsOutputBody"); - formatter.field("algorithm_summary_list", &self.algorithm_summary_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAppImageConfigsOutputBody { - ///

    A token for getting the next set of AppImageConfigs, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    A list of AppImageConfigs and their properties.

    - #[serde(rename = "AppImageConfigs")] - #[serde(default)] - pub app_image_configs: std::option::Option>, -} -impl std::fmt::Debug for ListAppImageConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAppImageConfigsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("app_image_configs", &self.app_image_configs); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAppsOutputBody { - ///

    The list of apps.

    - #[serde(rename = "Apps")] - #[serde(default)] - pub apps: std::option::Option>, - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAppsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAppsOutputBody"); - formatter.field("apps", &self.apps); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListArtifactsOutputBody { - ///

    A list of artifacts and their properties.

    - #[serde(rename = "ArtifactSummaries")] - #[serde(default)] - pub artifact_summaries: std::option::Option>, - ///

    A token for getting the next set of artifacts, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListArtifactsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListArtifactsOutputBody"); - formatter.field("artifact_summaries", &self.artifact_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationsOutputBody { - ///

    A list of associations and their properties.

    - #[serde(rename = "AssociationSummaries")] - #[serde(default)] - pub association_summaries: std::option::Option>, - ///

    A token for getting the next set of associations, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAssociationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationsOutputBody"); - formatter.field("association_summaries", &self.association_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAutoMLJobsOutputBody { - ///

    Returns a summary list of jobs.

    - #[serde(rename = "AutoMLJobSummaries")] - #[serde(default)] - pub auto_ml_job_summaries: std::option::Option>, - ///

    If the previous response was truncated, you receive this token. Use it in your next - /// request to receive the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAutoMLJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAutoMLJobsOutputBody"); - formatter.field("auto_ml_job_summaries", &self.auto_ml_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCandidatesForAutoMLJobOutputBody { - ///

    Summaries about the AutoMLCandidates.

    - #[serde(rename = "Candidates")] - #[serde(default)] - pub candidates: std::option::Option>, - ///

    If the previous response was truncated, you receive this token. Use it in your next - /// request to receive the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCandidatesForAutoMLJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCandidatesForAutoMLJobOutputBody"); - formatter.field("candidates", &self.candidates); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCodeRepositoriesOutputBody { - ///

    Gets a list of summaries of the Git repositories. Each summary specifies the following - /// values for the repository:

    - ///
      - ///
    • - ///

      Name

      - ///
    • - ///
    • - ///

      Amazon Resource Name (ARN)

      - ///
    • - ///
    • - ///

      Creation time

      - ///
    • - ///
    • - ///

      Last modified time

      - ///
    • - ///
    • - ///

      Configuration information, including the URL location of the repository and - /// the ARN of the AWS Secrets Manager secret that contains the credentials used - /// to access the repository.

      - ///
    • - ///
    - #[serde(rename = "CodeRepositorySummaryList")] - #[serde(default)] - pub code_repository_summary_list: - std::option::Option>, - ///

    If the result of a ListCodeRepositoriesOutput request was truncated, the - /// response includes a NextToken. To get the next set of Git repositories, use - /// the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCodeRepositoriesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCodeRepositoriesOutputBody"); - formatter.field( - "code_repository_summary_list", - &self.code_repository_summary_list, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCompilationJobsOutputBody { - ///

    An array of CompilationJobSummary objects, each describing a model - /// compilation job.

    - #[serde(rename = "CompilationJobSummaries")] - #[serde(default)] - pub compilation_job_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this NextToken. To retrieve - /// the next set of model compilation jobs, use this token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCompilationJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCompilationJobsOutputBody"); - formatter.field("compilation_job_summaries", &self.compilation_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContextsOutputBody { - ///

    A list of contexts and their properties.

    - #[serde(rename = "ContextSummaries")] - #[serde(default)] - pub context_summaries: std::option::Option>, - ///

    A token for getting the next set of contexts, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListContextsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContextsOutputBody"); - formatter.field("context_summaries", &self.context_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDataQualityJobDefinitionsOutputBody { - ///

    A list of data quality monitoring job definitions.

    - #[serde(rename = "JobDefinitionSummaries")] - #[serde(default)] - pub job_definition_summaries: - std::option::Option>, - ///

    If the result of the previous ListDataQualityJobDefinitions request was - /// truncated, the response includes a NextToken. To retrieve the next set of data - /// quality monitoring job definitions, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDataQualityJobDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDataQualityJobDefinitionsOutputBody"); - formatter.field("job_definition_summaries", &self.job_definition_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDeviceFleetsOutputBody { - ///

    Summary of the device fleet.

    - #[serde(rename = "DeviceFleetSummaries")] - #[serde(default)] - pub device_fleet_summaries: - std::option::Option>, - ///

    The response from the last list when returning a list large enough to need tokening.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDeviceFleetsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDeviceFleetsOutputBody"); - formatter.field("device_fleet_summaries", &self.device_fleet_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDevicesOutputBody { - ///

    Summary of devices.

    - #[serde(rename = "DeviceSummaries")] - #[serde(default)] - pub device_summaries: std::option::Option>, - ///

    The response from the last list when returning a list large enough to need tokening.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDevicesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDevicesOutputBody"); - formatter.field("device_summaries", &self.device_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDomainsOutputBody { - ///

    The list of domains.

    - #[serde(rename = "Domains")] - #[serde(default)] - pub domains: std::option::Option>, - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDomainsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDomainsOutputBody"); - formatter.field("domains", &self.domains); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEdgePackagingJobsOutputBody { - ///

    Summaries of edge packaging jobs.

    - #[serde(rename = "EdgePackagingJobSummaries")] - #[serde(default)] - pub edge_packaging_job_summaries: - std::option::Option>, - ///

    Token to use when calling the next page of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListEdgePackagingJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEdgePackagingJobsOutputBody"); - formatter.field( - "edge_packaging_job_summaries", - &self.edge_packaging_job_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEndpointConfigsOutputBody { - ///

    An array of endpoint configurations.

    - #[serde(rename = "EndpointConfigs")] - #[serde(default)] - pub endpoint_configs: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// endpoint configurations, use it in the subsequent request

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListEndpointConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEndpointConfigsOutputBody"); - formatter.field("endpoint_configs", &self.endpoint_configs); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEndpointsOutputBody { - ///

    An array or endpoint objects.

    - #[serde(rename = "Endpoints")] - #[serde(default)] - pub endpoints: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// training jobs, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListEndpointsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEndpointsOutputBody"); - formatter.field("endpoints", &self.endpoints); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListExperimentsOutputBody { - ///

    A list of the summaries of your experiments.

    - #[serde(rename = "ExperimentSummaries")] - #[serde(default)] - pub experiment_summaries: std::option::Option>, - ///

    A token for getting the next set of experiments, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListExperimentsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListExperimentsOutputBody"); - formatter.field("experiment_summaries", &self.experiment_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFeatureGroupsOutputBody { - ///

    A summary of feature groups.

    - #[serde(rename = "FeatureGroupSummaries")] - #[serde(default)] - pub feature_group_summaries: - std::option::Option>, - ///

    A token to resume pagination of ListFeatureGroups results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListFeatureGroupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFeatureGroupsOutputBody"); - formatter.field("feature_group_summaries", &self.feature_group_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListFlowDefinitionsOutputBody { - ///

    An array of objects describing the flow definitions.

    - #[serde(rename = "FlowDefinitionSummaries")] - #[serde(default)] - pub flow_definition_summaries: - std::option::Option>, - ///

    A token to resume pagination.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListFlowDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListFlowDefinitionsOutputBody"); - formatter.field("flow_definition_summaries", &self.flow_definition_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHumanTaskUisOutputBody { - ///

    An array of objects describing the human task user interfaces.

    - #[serde(rename = "HumanTaskUiSummaries")] - #[serde(default)] - pub human_task_ui_summaries: - std::option::Option>, - ///

    A token to resume pagination.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListHumanTaskUisOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHumanTaskUisOutputBody"); - formatter.field("human_task_ui_summaries", &self.human_task_ui_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHyperParameterTuningJobsOutputBody { - ///

    A list of HyperParameterTuningJobSummary objects that - /// describe - /// the tuning jobs that the ListHyperParameterTuningJobs - /// request returned.

    - #[serde(rename = "HyperParameterTuningJobSummaries")] - #[serde(default)] - pub hyper_parameter_tuning_job_summaries: - std::option::Option>, - ///

    If the result of this ListHyperParameterTuningJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of tuning jobs, - /// use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListHyperParameterTuningJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHyperParameterTuningJobsOutputBody"); - formatter.field( - "hyper_parameter_tuning_job_summaries", - &self.hyper_parameter_tuning_job_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImagesOutputBody { - ///

    A list of images and their properties.

    - #[serde(rename = "Images")] - #[serde(default)] - pub images: std::option::Option>, - ///

    A token for getting the next set of images, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListImagesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImagesOutputBody"); - formatter.field("images", &self.images); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImageVersionsOutputBody { - ///

    A list of versions and their properties.

    - #[serde(rename = "ImageVersions")] - #[serde(default)] - pub image_versions: std::option::Option>, - ///

    A token for getting the next set of versions, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListImageVersionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImageVersionsOutputBody"); - formatter.field("image_versions", &self.image_versions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLabelingJobsOutputBody { - ///

    An array of LabelingJobSummary objects, each describing a labeling - /// job.

    - #[serde(rename = "LabelingJobSummaryList")] - #[serde(default)] - pub labeling_job_summary_list: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// labeling jobs, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListLabelingJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLabelingJobsOutputBody"); - formatter.field("labeling_job_summary_list", &self.labeling_job_summary_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListLabelingJobsForWorkteamOutputBody { - ///

    An array of LabelingJobSummary objects, each describing a labeling - /// job.

    - #[serde(rename = "LabelingJobSummaryList")] - #[serde(default)] - pub labeling_job_summary_list: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// labeling jobs, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListLabelingJobsForWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListLabelingJobsForWorkteamOutputBody"); - formatter.field("labeling_job_summary_list", &self.labeling_job_summary_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelBiasJobDefinitionsOutputBody { - ///

    A JSON array in which each element is a summary for a model bias jobs.

    - #[serde(rename = "JobDefinitionSummaries")] - #[serde(default)] - pub job_definition_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, - /// use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelBiasJobDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelBiasJobDefinitionsOutputBody"); - formatter.field("job_definition_summaries", &self.job_definition_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelExplainabilityJobDefinitionsOutputBody { - ///

    A JSON array in which each element is a summary for a explainability bias jobs.

    - #[serde(rename = "JobDefinitionSummaries")] - #[serde(default)] - pub job_definition_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, - /// use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelExplainabilityJobDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelExplainabilityJobDefinitionsOutputBody"); - formatter.field("job_definition_summaries", &self.job_definition_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelPackageGroupsOutputBody { - ///

    A list of summaries of the model groups in your AWS account.

    - #[serde(rename = "ModelPackageGroupSummaryList")] - #[serde(default)] - pub model_package_group_summary_list: - std::option::Option>, - ///

    If the response is truncated, SageMaker returns this token. To retrieve the next set - /// of model groups, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelPackageGroupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelPackageGroupsOutputBody"); - formatter.field( - "model_package_group_summary_list", - &self.model_package_group_summary_list, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelPackagesOutputBody { - ///

    An array of ModelPackageSummary objects, each of which lists a model - /// package.

    - #[serde(rename = "ModelPackageSummaryList")] - #[serde(default)] - pub model_package_summary_list: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// model packages, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelPackagesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelPackagesOutputBody"); - formatter.field( - "model_package_summary_list", - &self.model_package_summary_list, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelQualityJobDefinitionsOutputBody { - ///

    A list of summaries of model quality monitoring job definitions.

    - #[serde(rename = "JobDefinitionSummaries")] - #[serde(default)] - pub job_definition_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of model - /// quality monitoring job definitions, use it in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelQualityJobDefinitionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelQualityJobDefinitionsOutputBody"); - formatter.field("job_definition_summaries", &self.job_definition_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListModelsOutputBody { - ///

    An array of ModelSummary objects, each of which lists a - /// model.

    - #[serde(rename = "Models")] - #[serde(default)] - pub models: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// models, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListModelsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListModelsOutputBody"); - formatter.field("models", &self.models); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMonitoringExecutionsOutputBody { - ///

    A JSON array in which each element is a summary for a monitoring execution.

    - #[serde(rename = "MonitoringExecutionSummaries")] - #[serde(default)] - pub monitoring_execution_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, - /// use it in the subsequent reques

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListMonitoringExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMonitoringExecutionsOutputBody"); - formatter.field( - "monitoring_execution_summaries", - &self.monitoring_execution_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListMonitoringSchedulesOutputBody { - ///

    A JSON array in which each element is a summary for a monitoring schedule.

    - #[serde(rename = "MonitoringScheduleSummaries")] - #[serde(default)] - pub monitoring_schedule_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, - /// use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListMonitoringSchedulesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListMonitoringSchedulesOutputBody"); - formatter.field( - "monitoring_schedule_summaries", - &self.monitoring_schedule_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListNotebookInstanceLifecycleConfigsOutputBody { - ///

    If the response is truncated, Amazon SageMaker returns this token. To get the next set of - /// lifecycle configurations, use it in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    An array of NotebookInstanceLifecycleConfiguration objects, each listing - /// a lifecycle configuration.

    - #[serde(rename = "NotebookInstanceLifecycleConfigs")] - #[serde(default)] - pub notebook_instance_lifecycle_configs: - std::option::Option>, -} -impl std::fmt::Debug for ListNotebookInstanceLifecycleConfigsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListNotebookInstanceLifecycleConfigsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field( - "notebook_instance_lifecycle_configs", - &self.notebook_instance_lifecycle_configs, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListNotebookInstancesOutputBody { - ///

    If the response to the previous ListNotebookInstances request was - /// truncated, Amazon SageMaker returns this token. To retrieve the next set of notebook instances, use - /// the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    An array of NotebookInstanceSummary objects, one for each notebook - /// instance.

    - #[serde(rename = "NotebookInstances")] - #[serde(default)] - pub notebook_instances: - std::option::Option>, -} -impl std::fmt::Debug for ListNotebookInstancesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListNotebookInstancesOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("notebook_instances", &self.notebook_instances); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineExecutionsOutputBody { - ///

    Contains a sorted list of pipeline execution summary objects matching the specified - /// filters. Each run summary includes the Amazon Resource Name (ARN) of the pipeline execution, the run date, - /// and the status. This list can be empty.

    - #[serde(rename = "PipelineExecutionSummaries")] - #[serde(default)] - pub pipeline_execution_summaries: - std::option::Option>, - ///

    If the result of the previous ListPipelineExecutions request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipeline executions, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListPipelineExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineExecutionsOutputBody"); - formatter.field( - "pipeline_execution_summaries", - &self.pipeline_execution_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineExecutionStepsOutputBody { - ///

    A list of PipeLineExecutionStep objects. Each - /// PipeLineExecutionStep consists of StepName, StartTime, EndTime, StepStatus, - /// and Metadata. Metadata is an object with properties for each job that contains relevant - /// information about the job created by the step.

    - #[serde(rename = "PipelineExecutionSteps")] - #[serde(default)] - pub pipeline_execution_steps: - std::option::Option>, - ///

    If the result of the previous ListPipelineExecutionSteps request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipeline execution steps, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListPipelineExecutionStepsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineExecutionStepsOutputBody"); - formatter.field("pipeline_execution_steps", &self.pipeline_execution_steps); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelineParametersForExecutionOutputBody { - ///

    Contains a list of pipeline parameters. This list can be empty.

    - #[serde(rename = "PipelineParameters")] - #[serde(default)] - pub pipeline_parameters: std::option::Option>, - ///

    If the result of the previous ListPipelineParametersForExecution request was truncated, - /// the response includes a NextToken. To retrieve the next set of parameters, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListPipelineParametersForExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelineParametersForExecutionOutputBody"); - formatter.field("pipeline_parameters", &self.pipeline_parameters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListPipelinesOutputBody { - ///

    Contains a sorted list of PipelineSummary objects matching the specified - /// filters. Each PipelineSummary consists of PipelineArn, PipelineName, - /// ExperimentName, PipelineDescription, CreationTime, LastModifiedTime, LastRunTime, and - /// RoleArn. This list can be empty.

    - #[serde(rename = "PipelineSummaries")] - #[serde(default)] - pub pipeline_summaries: std::option::Option>, - ///

    If the result of the previous ListPipelines request was truncated, - /// the response includes a NextToken. To retrieve the next set of pipelines, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListPipelinesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListPipelinesOutputBody"); - formatter.field("pipeline_summaries", &self.pipeline_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListProcessingJobsOutputBody { - ///

    An array of ProcessingJobSummary objects, each listing a processing - /// job.

    - #[serde(rename = "ProcessingJobSummaries")] - #[serde(default)] - pub processing_job_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// processing jobs, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListProcessingJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListProcessingJobsOutputBody"); - formatter.field("processing_job_summaries", &self.processing_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListProjectsOutputBody { - ///

    A list of summaries of projects.

    - #[serde(rename = "ProjectSummaryList")] - #[serde(default)] - pub project_summary_list: std::option::Option>, - ///

    If the result of the previous ListCompilationJobs request was truncated, - /// the response includes a NextToken. To retrieve the next set of model - /// compilation jobs, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListProjectsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListProjectsOutputBody"); - formatter.field("project_summary_list", &self.project_summary_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSubscribedWorkteamsOutputBody { - ///

    An array of Workteam objects, each describing a work team.

    - #[serde(rename = "SubscribedWorkteams")] - #[serde(default)] - pub subscribed_workteams: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// work teams, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListSubscribedWorkteamsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSubscribedWorkteamsOutputBody"); - formatter.field("subscribed_workteams", &self.subscribed_workteams); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsOutputBody { - ///

    An array of Tag objects, each with a tag key and a value.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    If response is truncated, Amazon SageMaker includes a token in the response. You can use this - /// token in your subsequent request to fetch next set of tokens.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTagsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsOutputBody"); - formatter.field("tags", &self.tags); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrainingJobsOutputBody { - ///

    An array of TrainingJobSummary objects, each listing a training - /// job.

    - #[serde(rename = "TrainingJobSummaries")] - #[serde(default)] - pub training_job_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// training jobs, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTrainingJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrainingJobsOutputBody"); - formatter.field("training_job_summaries", &self.training_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrainingJobsForHyperParameterTuningJobOutputBody { - ///

    A list of TrainingJobSummary objects that - /// describe - /// the training jobs that the - /// ListTrainingJobsForHyperParameterTuningJob request returned.

    - #[serde(rename = "TrainingJobSummaries")] - #[serde(default)] - pub training_job_summaries: - std::option::Option>, - ///

    If the result of this ListTrainingJobsForHyperParameterTuningJob request - /// was truncated, the response includes a NextToken. To retrieve the next set - /// of training jobs, use the token in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTrainingJobsForHyperParameterTuningJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrainingJobsForHyperParameterTuningJobOutputBody"); - formatter.field("training_job_summaries", &self.training_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTransformJobsOutputBody { - ///

    An array of - /// TransformJobSummary - /// objects.

    - #[serde(rename = "TransformJobSummaries")] - #[serde(default)] - pub transform_job_summaries: - std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// transform jobs, use it in the next request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTransformJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTransformJobsOutputBody"); - formatter.field("transform_job_summaries", &self.transform_job_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrialComponentsOutputBody { - ///

    A list of the summaries of your trial components.

    - #[serde(rename = "TrialComponentSummaries")] - #[serde(default)] - pub trial_component_summaries: - std::option::Option>, - ///

    A token for getting the next set of components, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTrialComponentsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrialComponentsOutputBody"); - formatter.field("trial_component_summaries", &self.trial_component_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTrialsOutputBody { - ///

    A list of the summaries of your trials.

    - #[serde(rename = "TrialSummaries")] - #[serde(default)] - pub trial_summaries: std::option::Option>, - ///

    A token for getting the next set of trials, if there are any.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListTrialsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTrialsOutputBody"); - formatter.field("trial_summaries", &self.trial_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListUserProfilesOutputBody { - ///

    The list of user profiles.

    - #[serde(rename = "UserProfiles")] - #[serde(default)] - pub user_profiles: std::option::Option>, - ///

    If the previous response was truncated, you will receive this token. - /// Use it in your next request to receive the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListUserProfilesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListUserProfilesOutputBody"); - formatter.field("user_profiles", &self.user_profiles); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListWorkforcesOutputBody { - ///

    A list containing information about your workforce.

    - #[serde(rename = "Workforces")] - #[serde(default)] - pub workforces: std::option::Option>, - ///

    A token to resume pagination.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListWorkforcesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListWorkforcesOutputBody"); - formatter.field("workforces", &self.workforces); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListWorkteamsOutputBody { - ///

    An array of Workteam objects, each describing a work team.

    - #[serde(rename = "Workteams")] - #[serde(default)] - pub workteams: std::option::Option>, - ///

    If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of - /// work teams, use it in the subsequent request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListWorkteamsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListWorkteamsOutputBody"); - formatter.field("workteams", &self.workteams); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutModelPackageGroupPolicyOutputBody { - ///

    The Amazon Resource Name (ARN) of the model package group.

    - #[serde(rename = "ModelPackageGroupArn")] - #[serde(default)] - pub model_package_group_arn: std::option::Option, -} -impl std::fmt::Debug for PutModelPackageGroupPolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutModelPackageGroupPolicyOutputBody"); - formatter.field("model_package_group_arn", &self.model_package_group_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RenderUiTemplateOutputBody { - ///

    A Liquid template that renders the HTML for the worker UI.

    - #[serde(rename = "RenderedContent")] - #[serde(default)] - pub rendered_content: std::option::Option, - ///

    A list of one or more RenderingError objects if any were encountered - /// while rendering the template. If there were no errors, the list is empty.

    - #[serde(rename = "Errors")] - #[serde(default)] - pub errors: std::option::Option>, -} -impl std::fmt::Debug for RenderUiTemplateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RenderUiTemplateOutputBody"); - formatter.field("rendered_content", &self.rendered_content); - formatter.field("errors", &self.errors); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SearchOutputBody { - ///

    A list of SearchRecord objects.

    - #[serde(rename = "Results")] - #[serde(default)] - pub results: std::option::Option>, - ///

    If the result of the previous Search request was truncated, the response - /// includes a NextToken. To retrieve the next set of results, use the token in the next - /// request.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for SearchOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SearchOutputBody"); - formatter.field("results", &self.results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendPipelineExecutionStepFailureOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, -} -impl std::fmt::Debug for SendPipelineExecutionStepFailureOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendPipelineExecutionStepFailureOutputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendPipelineExecutionStepSuccessOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, -} -impl std::fmt::Debug for SendPipelineExecutionStepSuccessOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendPipelineExecutionStepSuccessOutputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartPipelineExecutionOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, -} -impl std::fmt::Debug for StartPipelineExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartPipelineExecutionOutputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopPipelineExecutionOutputBody { - ///

    The Amazon Resource Name (ARN) of the pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, -} -impl std::fmt::Debug for StopPipelineExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopPipelineExecutionOutputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateActionOutputBody { - ///

    The Amazon Resource Name (ARN) of the action.

    - #[serde(rename = "ActionArn")] - #[serde(default)] - pub action_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateActionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateActionOutputBody"); - formatter.field("action_arn", &self.action_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAppImageConfigOutputBody { - ///

    The Amazon Resource Name (ARN) for the AppImageConfig.

    - #[serde(rename = "AppImageConfigArn")] - #[serde(default)] - pub app_image_config_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateAppImageConfigOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAppImageConfigOutputBody"); - formatter.field("app_image_config_arn", &self.app_image_config_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateArtifactOutputBody { - ///

    The Amazon Resource Name (ARN) of the artifact.

    - #[serde(rename = "ArtifactArn")] - #[serde(default)] - pub artifact_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateArtifactOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateArtifactOutputBody"); - formatter.field("artifact_arn", &self.artifact_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCodeRepositoryOutputBody { - ///

    The ARN of the Git repository.

    - #[serde(rename = "CodeRepositoryArn")] - #[serde(default)] - pub code_repository_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateCodeRepositoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCodeRepositoryOutputBody"); - formatter.field("code_repository_arn", &self.code_repository_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContextOutputBody { - ///

    The Amazon Resource Name (ARN) of the context.

    - #[serde(rename = "ContextArn")] - #[serde(default)] - pub context_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateContextOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContextOutputBody"); - formatter.field("context_arn", &self.context_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDomainOutputBody { - ///

    The Amazon Resource Name (ARN) of the domain.

    - #[serde(rename = "DomainArn")] - #[serde(default)] - pub domain_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateDomainOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDomainOutputBody"); - formatter.field("domain_arn", &self.domain_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEndpointOutputBody { - ///

    The Amazon Resource Name (ARN) of the endpoint.

    - #[serde(rename = "EndpointArn")] - #[serde(default)] - pub endpoint_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateEndpointOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEndpointOutputBody"); - formatter.field("endpoint_arn", &self.endpoint_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEndpointWeightsAndCapacitiesOutputBody { - ///

    The Amazon Resource Name (ARN) of the updated endpoint.

    - #[serde(rename = "EndpointArn")] - #[serde(default)] - pub endpoint_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateEndpointWeightsAndCapacitiesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEndpointWeightsAndCapacitiesOutputBody"); - formatter.field("endpoint_arn", &self.endpoint_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateExperimentOutputBody { - ///

    The Amazon Resource Name (ARN) of the experiment.

    - #[serde(rename = "ExperimentArn")] - #[serde(default)] - pub experiment_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateExperimentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateExperimentOutputBody"); - formatter.field("experiment_arn", &self.experiment_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateImageOutputBody { - ///

    The Amazon Resource Name (ARN) of the image.

    - #[serde(rename = "ImageArn")] - #[serde(default)] - pub image_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateImageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateImageOutputBody"); - formatter.field("image_arn", &self.image_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateModelPackageOutputBody { - ///

    The Amazon Resource Name (ARN) of the model.

    - #[serde(rename = "ModelPackageArn")] - #[serde(default)] - pub model_package_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateModelPackageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateModelPackageOutputBody"); - formatter.field("model_package_arn", &self.model_package_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMonitoringScheduleOutputBody { - ///

    The Amazon Resource Name (ARN) of the monitoring schedule.

    - #[serde(rename = "MonitoringScheduleArn")] - #[serde(default)] - pub monitoring_schedule_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateMonitoringScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMonitoringScheduleOutputBody"); - formatter.field("monitoring_schedule_arn", &self.monitoring_schedule_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePipelineOutputBody { - ///

    The Amazon Resource Name (ARN) of the updated pipeline.

    - #[serde(rename = "PipelineArn")] - #[serde(default)] - pub pipeline_arn: std::option::Option, -} -impl std::fmt::Debug for UpdatePipelineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePipelineOutputBody"); - formatter.field("pipeline_arn", &self.pipeline_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePipelineExecutionOutputBody { - ///

    The Amazon Resource Name (ARN) of the updated pipeline execution.

    - #[serde(rename = "PipelineExecutionArn")] - #[serde(default)] - pub pipeline_execution_arn: std::option::Option, -} -impl std::fmt::Debug for UpdatePipelineExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePipelineExecutionOutputBody"); - formatter.field("pipeline_execution_arn", &self.pipeline_execution_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrainingJobOutputBody { - ///

    The Amazon Resource Name (ARN) of the training job.

    - #[serde(rename = "TrainingJobArn")] - #[serde(default)] - pub training_job_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateTrainingJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrainingJobOutputBody"); - formatter.field("training_job_arn", &self.training_job_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrialOutputBody { - ///

    The Amazon Resource Name (ARN) of the trial.

    - #[serde(rename = "TrialArn")] - #[serde(default)] - pub trial_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateTrialOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrialOutputBody"); - formatter.field("trial_arn", &self.trial_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateTrialComponentOutputBody { - ///

    The Amazon Resource Name (ARN) of the trial component.

    - #[serde(rename = "TrialComponentArn")] - #[serde(default)] - pub trial_component_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateTrialComponentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateTrialComponentOutputBody"); - formatter.field("trial_component_arn", &self.trial_component_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateUserProfileOutputBody { - ///

    The user profile Amazon Resource Name (ARN).

    - #[serde(rename = "UserProfileArn")] - #[serde(default)] - pub user_profile_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateUserProfileOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateUserProfileOutputBody"); - formatter.field("user_profile_arn", &self.user_profile_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateWorkforceOutputBody { - ///

    A single private workforce. You can create one private work force in each AWS Region. By default, - /// any workforce-related API operation used in a specific region will apply to the - /// workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.

    - #[serde(rename = "Workforce")] - #[serde(default)] - pub workforce: std::option::Option, -} -impl std::fmt::Debug for UpdateWorkforceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateWorkforceOutputBody"); - formatter.field("workforce", &self.workforce); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateWorkteamOutputBody { - ///

    A Workteam object that describes the updated work team.

    - #[serde(rename = "Workteam")] - #[serde(default)] - pub workteam: std::option::Option, -} -impl std::fmt::Debug for UpdateWorkteamOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateWorkteamOutputBody"); - formatter.field("workteam", &self.workteam); - formatter.finish() - } -} diff --git a/sdk/sagemakera2iruntime/Cargo.toml b/sdk/sagemakera2iruntime/Cargo.toml index d2ae23aaf105..d819a28f703c 100644 --- a/sdk/sagemakera2iruntime/Cargo.toml +++ b/sdk/sagemakera2iruntime/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sagemakera2iruntime" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning\n application. When an AI application can't evaluate data with a high degree of confidence,\n human reviewers can take over. This human review is called a human review workflow. To create\n and start a human review workflow, you need three resources: a worker task\n template, a flow definition, and a human\n loop.

    \n

    For information about these resources and prerequisites for using Amazon A2I, see Get Started with\n Amazon Augmented AI in the Amazon SageMaker Developer Guide.

    \n

    This API reference includes information about API actions and data types that you can use\n to interact with Amazon A2I programmatically. Use this guide to:

    \n
      \n
    • \n

      Start a human loop with the StartHumanLoop operation when using\n Amazon A2I with a custom task type. To learn more about the\n difference between custom and built-in task types, see Use Task Types . To learn\n how to start a human loop using this API, see Create and Start a Human Loop for a Custom Task Type in the\n Amazon SageMaker Developer Guide.

      \n
    • \n
    • \n

      Manage your human loops. You can list all human loops that you have created, describe\n individual human loops, and stop and delete human loops. To learn more, see Monitor and Manage Your Human Loop in the Amazon SageMaker Developer Guide.

      \n
    • \n
    \n

    Amazon A2I integrates APIs from various AWS services to create and start human review\n workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in\n Amazon A2I in the Amazon SageMaker Developer Guide.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/sagemakera2iruntime/src/aws_json_errors.rs b/sdk/sagemakera2iruntime/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sagemakera2iruntime/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sagemakera2iruntime/src/error.rs b/sdk/sagemakera2iruntime/src/error.rs index f4c6b110579c..2a9a54dfb7ab 100644 --- a/sdk/sagemakera2iruntime/src/error.rs +++ b/sdk/sagemakera2iruntime/src/error.rs @@ -8,20 +8,20 @@ pub struct DeleteHumanLoopError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteHumanLoopErrorKind { - InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + InternalServerException(crate::error::InternalServerException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteHumanLoopError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteHumanLoopErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteHumanLoopErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteHumanLoopErrorKind::ThrottlingError(_inner) => _inner.fmt(f), - DeleteHumanLoopErrorKind::ValidationError(_inner) => _inner.fmt(f), + DeleteHumanLoopErrorKind::InternalServerException(_inner) => _inner.fmt(f), + DeleteHumanLoopErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DeleteHumanLoopErrorKind::ThrottlingException(_inner) => _inner.fmt(f), + DeleteHumanLoopErrorKind::ValidationException(_inner) => _inner.fmt(f), DeleteHumanLoopErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -70,29 +70,32 @@ impl DeleteHumanLoopError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_server_error(&self) -> bool { - matches!(&self.kind, DeleteHumanLoopErrorKind::InternalServerError(_)) + pub fn is_internal_server_exception(&self) -> bool { + matches!( + &self.kind, + DeleteHumanLoopErrorKind::InternalServerException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteHumanLoopErrorKind::ResourceNotFoundError(_) + DeleteHumanLoopErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, DeleteHumanLoopErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!(&self.kind, DeleteHumanLoopErrorKind::ThrottlingException(_)) } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, DeleteHumanLoopErrorKind::ValidationError(_)) + pub fn is_validation_exception(&self) -> bool { + matches!(&self.kind, DeleteHumanLoopErrorKind::ValidationException(_)) } } impl std::error::Error for DeleteHumanLoopError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteHumanLoopErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteHumanLoopErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteHumanLoopErrorKind::ThrottlingError(_inner) => Some(_inner), - DeleteHumanLoopErrorKind::ValidationError(_inner) => Some(_inner), + DeleteHumanLoopErrorKind::InternalServerException(_inner) => Some(_inner), + DeleteHumanLoopErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteHumanLoopErrorKind::ThrottlingException(_inner) => Some(_inner), + DeleteHumanLoopErrorKind::ValidationException(_inner) => Some(_inner), DeleteHumanLoopErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -107,20 +110,20 @@ pub struct DescribeHumanLoopError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeHumanLoopErrorKind { - InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + InternalServerException(crate::error::InternalServerException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DescribeHumanLoopError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeHumanLoopErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeHumanLoopErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DescribeHumanLoopErrorKind::ThrottlingError(_inner) => _inner.fmt(f), - DescribeHumanLoopErrorKind::ValidationError(_inner) => _inner.fmt(f), + DescribeHumanLoopErrorKind::InternalServerException(_inner) => _inner.fmt(f), + DescribeHumanLoopErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + DescribeHumanLoopErrorKind::ThrottlingException(_inner) => _inner.fmt(f), + DescribeHumanLoopErrorKind::ValidationException(_inner) => _inner.fmt(f), DescribeHumanLoopErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -169,32 +172,38 @@ impl DescribeHumanLoopError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_server_error(&self) -> bool { + pub fn is_internal_server_exception(&self) -> bool { matches!( &self.kind, - DescribeHumanLoopErrorKind::InternalServerError(_) + DescribeHumanLoopErrorKind::InternalServerException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeHumanLoopErrorKind::ResourceNotFoundError(_) + DescribeHumanLoopErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, DescribeHumanLoopErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!( + &self.kind, + DescribeHumanLoopErrorKind::ThrottlingException(_) + ) } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, DescribeHumanLoopErrorKind::ValidationError(_)) + pub fn is_validation_exception(&self) -> bool { + matches!( + &self.kind, + DescribeHumanLoopErrorKind::ValidationException(_) + ) } } impl std::error::Error for DescribeHumanLoopError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeHumanLoopErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeHumanLoopErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DescribeHumanLoopErrorKind::ThrottlingError(_inner) => Some(_inner), - DescribeHumanLoopErrorKind::ValidationError(_inner) => Some(_inner), + DescribeHumanLoopErrorKind::InternalServerException(_inner) => Some(_inner), + DescribeHumanLoopErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DescribeHumanLoopErrorKind::ThrottlingException(_inner) => Some(_inner), + DescribeHumanLoopErrorKind::ValidationException(_inner) => Some(_inner), DescribeHumanLoopErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -209,20 +218,20 @@ pub struct ListHumanLoopsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListHumanLoopsErrorKind { - InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + InternalServerException(crate::error::InternalServerException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListHumanLoopsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListHumanLoopsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListHumanLoopsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListHumanLoopsErrorKind::ThrottlingError(_inner) => _inner.fmt(f), - ListHumanLoopsErrorKind::ValidationError(_inner) => _inner.fmt(f), + ListHumanLoopsErrorKind::InternalServerException(_inner) => _inner.fmt(f), + ListHumanLoopsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListHumanLoopsErrorKind::ThrottlingException(_inner) => _inner.fmt(f), + ListHumanLoopsErrorKind::ValidationException(_inner) => _inner.fmt(f), ListHumanLoopsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -271,29 +280,32 @@ impl ListHumanLoopsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_server_error(&self) -> bool { - matches!(&self.kind, ListHumanLoopsErrorKind::InternalServerError(_)) + pub fn is_internal_server_exception(&self) -> bool { + matches!( + &self.kind, + ListHumanLoopsErrorKind::InternalServerException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListHumanLoopsErrorKind::ResourceNotFoundError(_) + ListHumanLoopsErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, ListHumanLoopsErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!(&self.kind, ListHumanLoopsErrorKind::ThrottlingException(_)) } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, ListHumanLoopsErrorKind::ValidationError(_)) + pub fn is_validation_exception(&self) -> bool { + matches!(&self.kind, ListHumanLoopsErrorKind::ValidationException(_)) } } impl std::error::Error for ListHumanLoopsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListHumanLoopsErrorKind::InternalServerError(_inner) => Some(_inner), - ListHumanLoopsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListHumanLoopsErrorKind::ThrottlingError(_inner) => Some(_inner), - ListHumanLoopsErrorKind::ValidationError(_inner) => Some(_inner), + ListHumanLoopsErrorKind::InternalServerException(_inner) => Some(_inner), + ListHumanLoopsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListHumanLoopsErrorKind::ThrottlingException(_inner) => Some(_inner), + ListHumanLoopsErrorKind::ValidationException(_inner) => Some(_inner), ListHumanLoopsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -308,22 +320,22 @@ pub struct StartHumanLoopError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartHumanLoopErrorKind { - ConflictError(crate::error::ConflictError), - InternalServerError(crate::error::InternalServerError), - ServiceQuotaExceededError(crate::error::ServiceQuotaExceededError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + ConflictException(crate::error::ConflictException), + InternalServerException(crate::error::InternalServerException), + ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StartHumanLoopError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartHumanLoopErrorKind::ConflictError(_inner) => _inner.fmt(f), - StartHumanLoopErrorKind::InternalServerError(_inner) => _inner.fmt(f), - StartHumanLoopErrorKind::ServiceQuotaExceededError(_inner) => _inner.fmt(f), - StartHumanLoopErrorKind::ThrottlingError(_inner) => _inner.fmt(f), - StartHumanLoopErrorKind::ValidationError(_inner) => _inner.fmt(f), + StartHumanLoopErrorKind::ConflictException(_inner) => _inner.fmt(f), + StartHumanLoopErrorKind::InternalServerException(_inner) => _inner.fmt(f), + StartHumanLoopErrorKind::ServiceQuotaExceededException(_inner) => _inner.fmt(f), + StartHumanLoopErrorKind::ThrottlingException(_inner) => _inner.fmt(f), + StartHumanLoopErrorKind::ValidationException(_inner) => _inner.fmt(f), StartHumanLoopErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -372,33 +384,36 @@ impl StartHumanLoopError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, StartHumanLoopErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, StartHumanLoopErrorKind::ConflictException(_)) } - pub fn is_internal_server_error(&self) -> bool { - matches!(&self.kind, StartHumanLoopErrorKind::InternalServerError(_)) + pub fn is_internal_server_exception(&self) -> bool { + matches!( + &self.kind, + StartHumanLoopErrorKind::InternalServerException(_) + ) } - pub fn is_service_quota_exceeded_error(&self) -> bool { + pub fn is_service_quota_exceeded_exception(&self) -> bool { matches!( &self.kind, - StartHumanLoopErrorKind::ServiceQuotaExceededError(_) + StartHumanLoopErrorKind::ServiceQuotaExceededException(_) ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, StartHumanLoopErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!(&self.kind, StartHumanLoopErrorKind::ThrottlingException(_)) } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, StartHumanLoopErrorKind::ValidationError(_)) + pub fn is_validation_exception(&self) -> bool { + matches!(&self.kind, StartHumanLoopErrorKind::ValidationException(_)) } } impl std::error::Error for StartHumanLoopError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartHumanLoopErrorKind::ConflictError(_inner) => Some(_inner), - StartHumanLoopErrorKind::InternalServerError(_inner) => Some(_inner), - StartHumanLoopErrorKind::ServiceQuotaExceededError(_inner) => Some(_inner), - StartHumanLoopErrorKind::ThrottlingError(_inner) => Some(_inner), - StartHumanLoopErrorKind::ValidationError(_inner) => Some(_inner), + StartHumanLoopErrorKind::ConflictException(_inner) => Some(_inner), + StartHumanLoopErrorKind::InternalServerException(_inner) => Some(_inner), + StartHumanLoopErrorKind::ServiceQuotaExceededException(_inner) => Some(_inner), + StartHumanLoopErrorKind::ThrottlingException(_inner) => Some(_inner), + StartHumanLoopErrorKind::ValidationException(_inner) => Some(_inner), StartHumanLoopErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -413,20 +428,20 @@ pub struct StopHumanLoopError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopHumanLoopErrorKind { - InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + InternalServerException(crate::error::InternalServerException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopHumanLoopError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopHumanLoopErrorKind::InternalServerError(_inner) => _inner.fmt(f), - StopHumanLoopErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - StopHumanLoopErrorKind::ThrottlingError(_inner) => _inner.fmt(f), - StopHumanLoopErrorKind::ValidationError(_inner) => _inner.fmt(f), + StopHumanLoopErrorKind::InternalServerException(_inner) => _inner.fmt(f), + StopHumanLoopErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + StopHumanLoopErrorKind::ThrottlingException(_inner) => _inner.fmt(f), + StopHumanLoopErrorKind::ValidationException(_inner) => _inner.fmt(f), StopHumanLoopErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -475,26 +490,32 @@ impl StopHumanLoopError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_server_error(&self) -> bool { - matches!(&self.kind, StopHumanLoopErrorKind::InternalServerError(_)) + pub fn is_internal_server_exception(&self) -> bool { + matches!( + &self.kind, + StopHumanLoopErrorKind::InternalServerException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, StopHumanLoopErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + StopHumanLoopErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_throttling_error(&self) -> bool { - matches!(&self.kind, StopHumanLoopErrorKind::ThrottlingError(_)) + pub fn is_throttling_exception(&self) -> bool { + matches!(&self.kind, StopHumanLoopErrorKind::ThrottlingException(_)) } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, StopHumanLoopErrorKind::ValidationError(_)) + pub fn is_validation_exception(&self) -> bool { + matches!(&self.kind, StopHumanLoopErrorKind::ValidationException(_)) } } impl std::error::Error for StopHumanLoopError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopHumanLoopErrorKind::InternalServerError(_inner) => Some(_inner), - StopHumanLoopErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - StopHumanLoopErrorKind::ThrottlingError(_inner) => Some(_inner), - StopHumanLoopErrorKind::ValidationError(_inner) => Some(_inner), + StopHumanLoopErrorKind::InternalServerException(_inner) => Some(_inner), + StopHumanLoopErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + StopHumanLoopErrorKind::ThrottlingException(_inner) => Some(_inner), + StopHumanLoopErrorKind::ValidationException(_inner) => Some(_inner), StopHumanLoopErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -503,37 +524,35 @@ impl std::error::Error for StopHumanLoopError { ///

    The /// request isn't valid. Check the syntax and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidationError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ValidationException { pub message: std::option::Option, } -impl std::fmt::Debug for ValidationError { +impl std::fmt::Debug for ValidationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidationError"); + let mut formatter = f.debug_struct("ValidationException"); formatter.field("message", &self.message); formatter.finish() } } -impl ValidationError { +impl ValidationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ValidationError { +impl std::fmt::Display for ValidationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ValidationError [ValidationException]")?; + write!(f, "ValidationException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ValidationError {} -/// See [`ValidationError`](crate::error::ValidationError) -pub mod validation_error { - /// A builder for [`ValidationError`](crate::error::ValidationError) +impl std::error::Error for ValidationException {} +/// See [`ValidationException`](crate::error::ValidationException) +pub mod validation_exception { + /// A builder for [`ValidationException`](crate::error::ValidationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -548,18 +567,18 @@ pub mod validation_error { self.message = input; self } - /// Consumes the builder and constructs a [`ValidationError`](crate::error::ValidationError) - pub fn build(self) -> crate::error::ValidationError { - crate::error::ValidationError { + /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException) + pub fn build(self) -> crate::error::ValidationException { + crate::error::ValidationException { message: self.message, } } } } -impl ValidationError { - /// Creates a new builder-style object to manufacture [`ValidationError`](crate::error::ValidationError) - pub fn builder() -> crate::error::validation_error::Builder { - crate::error::validation_error::Builder::default() +impl ValidationException { + /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException) + pub fn builder() -> crate::error::validation_exception::Builder { + crate::error::validation_exception::Builder::default() } } @@ -567,37 +586,35 @@ impl ValidationError { /// the /// maximum number of requests.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ThrottlingError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ThrottlingException { pub message: std::option::Option, } -impl std::fmt::Debug for ThrottlingError { +impl std::fmt::Debug for ThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ThrottlingError"); + let mut formatter = f.debug_struct("ThrottlingException"); formatter.field("message", &self.message); formatter.finish() } } -impl ThrottlingError { +impl ThrottlingException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ThrottlingError { +impl std::fmt::Display for ThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ThrottlingError [ThrottlingException]")?; + write!(f, "ThrottlingException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ThrottlingError {} -/// See [`ThrottlingError`](crate::error::ThrottlingError) -pub mod throttling_error { - /// A builder for [`ThrottlingError`](crate::error::ThrottlingError) +impl std::error::Error for ThrottlingException {} +/// See [`ThrottlingException`](crate::error::ThrottlingException) +pub mod throttling_exception { + /// A builder for [`ThrottlingException`](crate::error::ThrottlingException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -612,55 +629,53 @@ pub mod throttling_error { self.message = input; self } - /// Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError) - pub fn build(self) -> crate::error::ThrottlingError { - crate::error::ThrottlingError { + /// Consumes the builder and constructs a [`ThrottlingException`](crate::error::ThrottlingException) + pub fn build(self) -> crate::error::ThrottlingException { + crate::error::ThrottlingException { message: self.message, } } } } -impl ThrottlingError { - /// Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError) - pub fn builder() -> crate::error::throttling_error::Builder { - crate::error::throttling_error::Builder::default() +impl ThrottlingException { + /// Creates a new builder-style object to manufacture [`ThrottlingException`](crate::error::ThrottlingException) + pub fn builder() -> crate::error::throttling_exception::Builder { + crate::error::throttling_exception::Builder::default() } } ///

    We couldn't find the requested resource. Check that your resources exists and were created /// in the same AWS Region as your request, and try your request again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -675,55 +690,53 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

    We couldn't process your request because of an issue with the server. Try again /// later.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalServerError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServerException { pub message: std::option::Option, } -impl std::fmt::Debug for InternalServerError { +impl std::fmt::Debug for InternalServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalServerError"); + let mut formatter = f.debug_struct("InternalServerException"); formatter.field("message", &self.message); formatter.finish() } } -impl InternalServerError { +impl InternalServerException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InternalServerError { +impl std::fmt::Display for InternalServerException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalServerError [InternalServerException]")?; + write!(f, "InternalServerException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InternalServerError {} -/// See [`InternalServerError`](crate::error::InternalServerError) -pub mod internal_server_error { - /// A builder for [`InternalServerError`](crate::error::InternalServerError) +impl std::error::Error for InternalServerException {} +/// See [`InternalServerException`](crate::error::InternalServerException) +pub mod internal_server_exception { + /// A builder for [`InternalServerException`](crate::error::InternalServerException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -738,18 +751,18 @@ pub mod internal_server_error { self.message = input; self } - /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError) - pub fn build(self) -> crate::error::InternalServerError { - crate::error::InternalServerError { + /// Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException) + pub fn build(self) -> crate::error::InternalServerException { + crate::error::InternalServerException { message: self.message, } } } } -impl InternalServerError { - /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError) - pub fn builder() -> crate::error::internal_server_error::Builder { - crate::error::internal_server_error::Builder::default() +impl InternalServerException { + /// Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException) + pub fn builder() -> crate::error::internal_server_exception::Builder { + crate::error::internal_server_exception::Builder::default() } } @@ -760,40 +773,35 @@ impl InternalServerError { /// Center. To request an increase, see AWS Service Quotas in the /// AWS General Reference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceQuotaExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ServiceQuotaExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for ServiceQuotaExceededError { +impl std::fmt::Debug for ServiceQuotaExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceQuotaExceededError"); + let mut formatter = f.debug_struct("ServiceQuotaExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ServiceQuotaExceededError { +impl ServiceQuotaExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ServiceQuotaExceededError { +impl std::fmt::Display for ServiceQuotaExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ServiceQuotaExceededError [ServiceQuotaExceededException]" - )?; + write!(f, "ServiceQuotaExceededException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ServiceQuotaExceededError {} -/// See [`ServiceQuotaExceededError`](crate::error::ServiceQuotaExceededError) -pub mod service_quota_exceeded_error { - /// A builder for [`ServiceQuotaExceededError`](crate::error::ServiceQuotaExceededError) +impl std::error::Error for ServiceQuotaExceededException {} +/// See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException) +pub mod service_quota_exceeded_exception { + /// A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -808,55 +816,53 @@ pub mod service_quota_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ServiceQuotaExceededError`](crate::error::ServiceQuotaExceededError) - pub fn build(self) -> crate::error::ServiceQuotaExceededError { - crate::error::ServiceQuotaExceededError { + /// Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException) + pub fn build(self) -> crate::error::ServiceQuotaExceededException { + crate::error::ServiceQuotaExceededException { message: self.message, } } } } -impl ServiceQuotaExceededError { - /// Creates a new builder-style object to manufacture [`ServiceQuotaExceededError`](crate::error::ServiceQuotaExceededError) - pub fn builder() -> crate::error::service_quota_exceeded_error::Builder { - crate::error::service_quota_exceeded_error::Builder::default() +impl ServiceQuotaExceededException { + /// Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException) + pub fn builder() -> crate::error::service_quota_exceeded_exception::Builder { + crate::error::service_quota_exceeded_exception::Builder::default() } } ///

    Your request has the same name as another active human loop but has different input data. You cannot start two /// human loops with the same name and different input data.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConflictError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ConflictError { +impl std::fmt::Debug for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConflictError"); + let mut formatter = f.debug_struct("ConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConflictError { +impl ConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConflictError { +impl std::fmt::Display for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConflictError [ConflictException]")?; + write!(f, "ConflictException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for ConflictError {} -/// See [`ConflictError`](crate::error::ConflictError) -pub mod conflict_error { - /// A builder for [`ConflictError`](crate::error::ConflictError) +impl std::error::Error for ConflictException {} +/// See [`ConflictException`](crate::error::ConflictException) +pub mod conflict_exception { + /// A builder for [`ConflictException`](crate::error::ConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -871,17 +877,17 @@ pub mod conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConflictError`](crate::error::ConflictError) - pub fn build(self) -> crate::error::ConflictError { - crate::error::ConflictError { + /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException) + pub fn build(self) -> crate::error::ConflictException { + crate::error::ConflictException { message: self.message, } } } } -impl ConflictError { - /// Creates a new builder-style object to manufacture [`ConflictError`](crate::error::ConflictError) - pub fn builder() -> crate::error::conflict_error::Builder { - crate::error::conflict_error::Builder::default() +impl ConflictException { + /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException) + pub fn builder() -> crate::error::conflict_exception::Builder { + crate::error::conflict_exception::Builder::default() } } diff --git a/sdk/sagemakera2iruntime/src/error_meta.rs b/sdk/sagemakera2iruntime/src/error_meta.rs index 602c214dace7..fbcad8ed332f 100644 --- a/sdk/sagemakera2iruntime/src/error_meta.rs +++ b/sdk/sagemakera2iruntime/src/error_meta.rs @@ -2,23 +2,23 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ConflictError(crate::error::ConflictError), - InternalServerError(crate::error::InternalServerError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ServiceQuotaExceededError(crate::error::ServiceQuotaExceededError), - ThrottlingError(crate::error::ThrottlingError), - ValidationError(crate::error::ValidationError), + ConflictException(crate::error::ConflictException), + InternalServerException(crate::error::InternalServerException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException), + ThrottlingException(crate::error::ThrottlingException), + ValidationException(crate::error::ValidationException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ConflictError(inner) => inner.fmt(f), - Error::InternalServerError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::ServiceQuotaExceededError(inner) => inner.fmt(f), - Error::ThrottlingError(inner) => inner.fmt(f), - Error::ValidationError(inner) => inner.fmt(f), + Error::ConflictException(inner) => inner.fmt(f), + Error::InternalServerException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::ServiceQuotaExceededException(inner) => inner.fmt(f), + Error::ThrottlingException(inner) => inner.fmt(f), + Error::ValidationException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -27,17 +27,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteHumanLoopErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) + crate::error::DeleteHumanLoopErrorKind::InternalServerException(inner) => { + Error::InternalServerException(inner) } - crate::error::DeleteHumanLoopErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteHumanLoopErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DeleteHumanLoopErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::DeleteHumanLoopErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } - crate::error::DeleteHumanLoopErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::DeleteHumanLoopErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::DeleteHumanLoopErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -49,17 +49,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeHumanLoopErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) + crate::error::DescribeHumanLoopErrorKind::InternalServerException(inner) => { + Error::InternalServerException(inner) } - crate::error::DescribeHumanLoopErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeHumanLoopErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::DescribeHumanLoopErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::DescribeHumanLoopErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } - crate::error::DescribeHumanLoopErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::DescribeHumanLoopErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::DescribeHumanLoopErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -73,17 +73,17 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListHumanLoopsErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) + crate::error::ListHumanLoopsErrorKind::InternalServerException(inner) => { + Error::InternalServerException(inner) } - crate::error::ListHumanLoopsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListHumanLoopsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListHumanLoopsErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::ListHumanLoopsErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } - crate::error::ListHumanLoopsErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::ListHumanLoopsErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::ListHumanLoopsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -95,20 +95,20 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StartHumanLoopErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::StartHumanLoopErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::StartHumanLoopErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) + crate::error::StartHumanLoopErrorKind::InternalServerException(inner) => { + Error::InternalServerException(inner) } - crate::error::StartHumanLoopErrorKind::ServiceQuotaExceededError(inner) => { - Error::ServiceQuotaExceededError(inner) + crate::error::StartHumanLoopErrorKind::ServiceQuotaExceededException(inner) => { + Error::ServiceQuotaExceededException(inner) } - crate::error::StartHumanLoopErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::StartHumanLoopErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } - crate::error::StartHumanLoopErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::StartHumanLoopErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::StartHumanLoopErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -120,17 +120,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::StopHumanLoopErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) + crate::error::StopHumanLoopErrorKind::InternalServerException(inner) => { + Error::InternalServerException(inner) } - crate::error::StopHumanLoopErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StopHumanLoopErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::StopHumanLoopErrorKind::ThrottlingError(inner) => { - Error::ThrottlingError(inner) + crate::error::StopHumanLoopErrorKind::ThrottlingException(inner) => { + Error::ThrottlingException(inner) } - crate::error::StopHumanLoopErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::StopHumanLoopErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::StopHumanLoopErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/sagemakera2iruntime/src/input.rs b/sdk/sagemakera2iruntime/src/input.rs index 181294767a45..c17949bbe92a 100644 --- a/sdk/sagemakera2iruntime/src/input.rs +++ b/sdk/sagemakera2iruntime/src/input.rs @@ -29,7 +29,7 @@ pub mod delete_human_loop_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteHumanLoopInput { - human_loop_name: self.human_loop_name.unwrap_or_default(), + human_loop_name: self.human_loop_name, }) } } @@ -94,13 +94,31 @@ impl DeleteHumanLoopInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let human_loop_name = { + let input = &self.human_loop_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "human_loop_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "human_loop_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/human-loops/{HumanLoopName}", - HumanLoopName = smithy_http::label::fmt_string(&self.human_loop_name, false) + HumanLoopName = human_loop_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -108,7 +126,7 @@ impl DeleteHumanLoopInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -163,7 +181,7 @@ pub mod describe_human_loop_input { smithy_http::operation::BuildError, > { Ok(crate::input::DescribeHumanLoopInput { - human_loop_name: self.human_loop_name.unwrap_or_default(), + human_loop_name: self.human_loop_name, }) } } @@ -228,13 +246,31 @@ impl DescribeHumanLoopInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let human_loop_name = { + let input = &self.human_loop_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "human_loop_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "human_loop_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/human-loops/{HumanLoopName}", - HumanLoopName = smithy_http::label::fmt_string(&self.human_loop_name, false) + HumanLoopName = human_loop_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -242,7 +278,7 @@ impl DescribeHumanLoopInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -429,8 +465,9 @@ impl ListHumanLoopsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/human-loops").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/human-loops").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -474,7 +511,7 @@ impl ListHumanLoopsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -641,8 +678,9 @@ impl StartHumanLoopInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/human-loops").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/human-loops").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -650,7 +688,7 @@ impl StartHumanLoopInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -770,8 +808,9 @@ impl StopHumanLoopInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/human-loops/stop").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/human-loops/stop").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -779,7 +818,7 @@ impl StopHumanLoopInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -880,7 +919,7 @@ impl std::fmt::Debug for ListHumanLoopsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeHumanLoopInput { ///

    The name of the human loop that you want information about.

    - pub human_loop_name: std::string::String, + pub human_loop_name: std::option::Option, } impl std::fmt::Debug for DescribeHumanLoopInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -894,7 +933,7 @@ impl std::fmt::Debug for DescribeHumanLoopInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteHumanLoopInput { ///

    The name of the human loop that you want to delete.

    - pub human_loop_name: std::string::String, + pub human_loop_name: std::option::Option, } impl std::fmt::Debug for DeleteHumanLoopInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/sagemakera2iruntime/src/instant_epoch.rs b/sdk/sagemakera2iruntime/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/sagemakera2iruntime/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/sagemakera2iruntime/src/json_deser.rs b/sdk/sagemakera2iruntime/src/json_deser.rs index 4f7ce8f9091d..db29d28a5b88 100644 --- a/sdk/sagemakera2iruntime/src/json_deser.rs +++ b/sdk/sagemakera2iruntime/src/json_deser.rs @@ -1,162 +1,586 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn internal_server_exception( +pub fn deser_structure_internal_server_exceptionjson_err( input: &[u8], - mut builder: crate::error::internal_server_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalServerError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::internal_server_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_not_found_exception( +pub fn deser_structure_resource_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::resource_not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceNotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn throttling_exception( +pub fn deser_structure_throttling_exceptionjson_err( input: &[u8], - mut builder: crate::error::throttling_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ThrottlingError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::throttling_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn validation_exception( +pub fn deser_structure_validation_exceptionjson_err( input: &[u8], - mut builder: crate::error::validation_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ValidationError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::validation_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_human_loop_deser_operation( +pub fn deser_operation_describe_human_loop( input: &[u8], mut builder: crate::output::describe_human_loop_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeHumanLoopOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_creation_time(parsed_body.creation_time); - builder = builder.set_failure_reason(parsed_body.failure_reason); - builder = builder.set_failure_code(parsed_body.failure_code); - builder = builder.set_human_loop_status(parsed_body.human_loop_status); - builder = builder.set_human_loop_name(parsed_body.human_loop_name); - builder = builder.set_human_loop_arn(parsed_body.human_loop_arn); - builder = builder.set_flow_definition_arn(parsed_body.flow_definition_arn); - builder = builder.set_human_loop_output(parsed_body.human_loop_output); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureCode" => { + builder = builder.set_failure_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionArn" => { + builder = builder.set_flow_definition_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanLoopArn" => { + builder = builder.set_human_loop_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanLoopName" => { + builder = builder.set_human_loop_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanLoopOutput" => { + builder = builder.set_human_loop_output( + crate::json_deser::deser_structure_human_loop_output(tokens)?, + ); + } + "HumanLoopStatus" => { + builder = builder.set_human_loop_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::HumanLoopStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_human_loops_deser_operation( +pub fn deser_operation_list_human_loops( input: &[u8], mut builder: crate::output::list_human_loops_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListHumanLoopsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_human_loop_summaries(parsed_body.human_loop_summaries); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLoopSummaries" => { + builder = builder.set_human_loop_summaries( + crate::json_deser::deser_list_human_loop_summaries(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn conflict_exception( +pub fn deser_structure_conflict_exceptionjson_err( input: &[u8], - mut builder: crate::error::conflict_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ConflictError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_quota_exceeded_exception( +pub fn deser_structure_service_quota_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::service_quota_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceQuotaExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::service_quota_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_human_loop_deser_operation( +pub fn deser_operation_start_human_loop( input: &[u8], mut builder: crate::output::start_human_loop_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartHumanLoopOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_human_loop_arn(parsed_body.human_loop_arn); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLoopArn" => { + builder = builder.set_human_loop_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_human_loop_output<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopOutput::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputS3Uri" => { + builder = builder.set_output_s3_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_human_loop_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_human_loop_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_human_loop_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::HumanLoopSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "HumanLoopName" => { + builder = builder.set_human_loop_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HumanLoopStatus" => { + builder = builder.set_human_loop_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::HumanLoopStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "CreationTime" => { + builder = builder.set_creation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailureReason" => { + builder = builder.set_failure_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FlowDefinitionArn" => { + builder = builder.set_flow_definition_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/sagemakera2iruntime/src/json_errors.rs b/sdk/sagemakera2iruntime/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/sagemakera2iruntime/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/sagemakera2iruntime/src/lib.rs b/sdk/sagemakera2iruntime/src/lib.rs index aa2667340255..fbd25bd700e5 100644 --- a/sdk/sagemakera2iruntime/src/lib.rs +++ b/sdk/sagemakera2iruntime/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning //! application. When an AI application can't evaluate data with a high degree of confidence, //! human reviewers can take over. This human review is called a human review workflow. To create @@ -36,23 +37,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/sagemakera2iruntime/src/model.rs b/sdk/sagemakera2iruntime/src/model.rs index fdef190c6893..b37f43ab3ead 100644 --- a/sdk/sagemakera2iruntime/src/model.rs +++ b/sdk/sagemakera2iruntime/src/model.rs @@ -1,12 +1,10 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Attributes of the data specified by the customer. Use these to describe the data to be labeled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopDataAttributes { ///

    Declares that your content is free of personally identifiable information or adult content.

    ///

    Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can view your task based on this information.

    - #[serde(rename = "ContentClassifiers")] - #[serde(default)] pub content_classifiers: std::option::Option>, } impl std::fmt::Debug for HumanLoopDataAttributes { @@ -87,7 +85,7 @@ impl std::convert::From<&str> for ContentClassifier { impl std::str::FromStr for ContentClassifier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContentClassifier::from(s)) } } @@ -107,23 +105,12 @@ impl AsRef for ContentClassifier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContentClassifier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object containing the human loop input in JSON format.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopInput { ///

    Serialized input from the human loop. The input must be a string representation of a file in JSON format.

    - #[serde(rename = "InputContent")] - #[serde(default)] pub input_content: std::option::Option, } impl std::fmt::Debug for HumanLoopInput { @@ -171,32 +158,19 @@ impl HumanLoopInput { ///

    Summary information about the human loop.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopSummary { ///

    The name of the human loop.

    - #[serde(rename = "HumanLoopName")] - #[serde(default)] pub human_loop_name: std::option::Option, ///

    The status of the human loop.

    - #[serde(rename = "HumanLoopStatus")] - #[serde(default)] pub human_loop_status: std::option::Option, ///

    When Amazon Augmented AI created the human loop.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_time: std::option::Option, ///

    The reason why the human loop failed. A failure reason is returned when the status of the /// human loop is Failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] pub failure_reason: std::option::Option, ///

    The Amazon Resource Name (ARN) of the flow definition used to configure the human /// loop.

    - #[serde(rename = "FlowDefinitionArn")] - #[serde(default)] pub flow_definition_arn: std::option::Option, } impl std::fmt::Debug for HumanLoopSummary { @@ -338,7 +312,7 @@ impl std::convert::From<&str> for HumanLoopStatus { impl std::str::FromStr for HumanLoopStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(HumanLoopStatus::from(s)) } } @@ -359,15 +333,6 @@ impl AsRef for HumanLoopStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for HumanLoopStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -397,7 +362,7 @@ impl std::convert::From<&str> for SortOrder { impl std::str::FromStr for SortOrder { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortOrder::from(s)) } } @@ -415,23 +380,12 @@ impl AsRef for SortOrder { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortOrder { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about where the human output will be stored.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct HumanLoopOutput { ///

    The location of the Amazon S3 object where Amazon Augmented AI stores your human loop output.

    - #[serde(rename = "OutputS3Uri")] - #[serde(default)] pub output_s3_uri: std::option::Option, } impl std::fmt::Debug for HumanLoopOutput { diff --git a/sdk/sagemakera2iruntime/src/operation_deser.rs b/sdk/sagemakera2iruntime/src/operation_deser.rs index 0845bc486aa5..876d9ccd8308 100644 --- a/sdk/sagemakera2iruntime/src/operation_deser.rs +++ b/sdk/sagemakera2iruntime/src/operation_deser.rs @@ -12,23 +12,25 @@ pub fn parse_delete_human_loop_error( Err(match error_code { "InternalServerException" => crate::error::DeleteHumanLoopError { meta: generic, - kind: crate::error::DeleteHumanLoopErrorKind::InternalServerError({ + kind: crate::error::DeleteHumanLoopErrorKind::InternalServerException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error::Builder::default(); + let mut output = crate::error::internal_server_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_server_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_internal_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteHumanLoopError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::DeleteHumanLoopError { meta: generic, - kind: crate::error::DeleteHumanLoopErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteHumanLoopErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -38,23 +40,29 @@ pub fn parse_delete_human_loop_error( }, "ThrottlingException" => crate::error::DeleteHumanLoopError { meta: generic, - kind: crate::error::DeleteHumanLoopErrorKind::ThrottlingError({ + kind: crate::error::DeleteHumanLoopErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::json_deser::throttling_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteHumanLoopError::unhandled)?; output.build() }), }, "ValidationException" => crate::error::DeleteHumanLoopError { meta: generic, - kind: crate::error::DeleteHumanLoopErrorKind::ValidationError({ + kind: crate::error::DeleteHumanLoopErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::json_deser::validation_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteHumanLoopError::unhandled)?; output.build() }), }, @@ -88,23 +96,25 @@ pub fn parse_describe_human_loop_error( Err(match error_code { "InternalServerException" => crate::error::DescribeHumanLoopError { meta: generic, - kind: crate::error::DescribeHumanLoopErrorKind::InternalServerError({ + kind: crate::error::DescribeHumanLoopErrorKind::InternalServerException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error::Builder::default(); + let mut output = crate::error::internal_server_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_server_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_internal_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHumanLoopError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::DescribeHumanLoopError { meta: generic, - kind: crate::error::DescribeHumanLoopErrorKind::ResourceNotFoundError({ + kind: crate::error::DescribeHumanLoopErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -114,23 +124,29 @@ pub fn parse_describe_human_loop_error( }, "ThrottlingException" => crate::error::DescribeHumanLoopError { meta: generic, - kind: crate::error::DescribeHumanLoopErrorKind::ThrottlingError({ + kind: crate::error::DescribeHumanLoopErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::json_deser::throttling_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHumanLoopError::unhandled)?; output.build() }), }, "ValidationException" => crate::error::DescribeHumanLoopError { meta: generic, - kind: crate::error::DescribeHumanLoopErrorKind::ValidationError({ + kind: crate::error::DescribeHumanLoopErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::json_deser::validation_exception(response.body().as_ref(), output) - .map_err(crate::error::DescribeHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeHumanLoopError::unhandled)?; output.build() }), }, @@ -147,7 +163,7 @@ pub fn parse_describe_human_loop_response( #[allow(unused_mut)] let mut output = crate::output::describe_human_loop_output::Builder::default(); let _ = response; - output = crate::json_deser::describe_human_loop_deser_operation( + output = crate::json_deser::deser_operation_describe_human_loop( response.body().as_ref(), output, ) @@ -169,23 +185,25 @@ pub fn parse_list_human_loops_error( Err(match error_code { "InternalServerException" => crate::error::ListHumanLoopsError { meta: generic, - kind: crate::error::ListHumanLoopsErrorKind::InternalServerError({ + kind: crate::error::ListHumanLoopsErrorKind::InternalServerException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error::Builder::default(); + let mut output = crate::error::internal_server_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_server_exception(response.body().as_ref(), output) - .map_err(crate::error::ListHumanLoopsError::unhandled)?; + output = crate::json_deser::deser_structure_internal_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHumanLoopsError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::ListHumanLoopsError { meta: generic, - kind: crate::error::ListHumanLoopsErrorKind::ResourceNotFoundError({ + kind: crate::error::ListHumanLoopsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -195,23 +213,29 @@ pub fn parse_list_human_loops_error( }, "ThrottlingException" => crate::error::ListHumanLoopsError { meta: generic, - kind: crate::error::ListHumanLoopsErrorKind::ThrottlingError({ + kind: crate::error::ListHumanLoopsErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::json_deser::throttling_exception(response.body().as_ref(), output) - .map_err(crate::error::ListHumanLoopsError::unhandled)?; + output = crate::json_deser::deser_structure_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHumanLoopsError::unhandled)?; output.build() }), }, "ValidationException" => crate::error::ListHumanLoopsError { meta: generic, - kind: crate::error::ListHumanLoopsErrorKind::ValidationError({ + kind: crate::error::ListHumanLoopsErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::json_deser::validation_exception(response.body().as_ref(), output) - .map_err(crate::error::ListHumanLoopsError::unhandled)?; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListHumanLoopsError::unhandled)?; output.build() }), }, @@ -228,7 +252,7 @@ pub fn parse_list_human_loops_response( let mut output = crate::output::list_human_loops_output::Builder::default(); let _ = response; output = - crate::json_deser::list_human_loops_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_human_loops(response.body().as_ref(), output) .map_err(crate::error::ListHumanLoopsError::unhandled)?; output.build() }) @@ -247,34 +271,25 @@ pub fn parse_start_human_loop_error( Err(match error_code { "ConflictException" => crate::error::StartHumanLoopError { meta: generic, - kind: crate::error::StartHumanLoopErrorKind::ConflictError({ + kind: crate::error::StartHumanLoopErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::StartHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartHumanLoopError::unhandled)?; output.build() }), }, "InternalServerException" => crate::error::StartHumanLoopError { meta: generic, - kind: crate::error::StartHumanLoopErrorKind::InternalServerError({ + kind: crate::error::StartHumanLoopErrorKind::InternalServerException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error::Builder::default(); + let mut output = crate::error::internal_server_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_server_exception(response.body().as_ref(), output) - .map_err(crate::error::StartHumanLoopError::unhandled)?; - output.build() - }), - }, - "ServiceQuotaExceededException" => crate::error::StartHumanLoopError { - meta: generic, - kind: crate::error::StartHumanLoopErrorKind::ServiceQuotaExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::service_quota_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::service_quota_exceeded_exception( + output = crate::json_deser::deser_structure_internal_server_exceptionjson_err( response.body().as_ref(), output, ) @@ -282,25 +297,44 @@ pub fn parse_start_human_loop_error( output.build() }), }, + "ServiceQuotaExceededException" => { + crate::error::StartHumanLoopError { + meta: generic, + kind: crate::error::StartHumanLoopErrorKind::ServiceQuotaExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::service_quota_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_quota_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartHumanLoopError::unhandled)?; + output.build() + }), + } + } "ThrottlingException" => crate::error::StartHumanLoopError { meta: generic, - kind: crate::error::StartHumanLoopErrorKind::ThrottlingError({ + kind: crate::error::StartHumanLoopErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::json_deser::throttling_exception(response.body().as_ref(), output) - .map_err(crate::error::StartHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartHumanLoopError::unhandled)?; output.build() }), }, "ValidationException" => crate::error::StartHumanLoopError { meta: generic, - kind: crate::error::StartHumanLoopErrorKind::ValidationError({ + kind: crate::error::StartHumanLoopErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::json_deser::validation_exception(response.body().as_ref(), output) - .map_err(crate::error::StartHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartHumanLoopError::unhandled)?; output.build() }), }, @@ -317,7 +351,7 @@ pub fn parse_start_human_loop_response( let mut output = crate::output::start_human_loop_output::Builder::default(); let _ = response; output = - crate::json_deser::start_human_loop_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_start_human_loop(response.body().as_ref(), output) .map_err(crate::error::StartHumanLoopError::unhandled)?; output.build() }) @@ -336,23 +370,25 @@ pub fn parse_stop_human_loop_error( Err(match error_code { "InternalServerException" => crate::error::StopHumanLoopError { meta: generic, - kind: crate::error::StopHumanLoopErrorKind::InternalServerError({ + kind: crate::error::StopHumanLoopErrorKind::InternalServerException({ #[allow(unused_mut)] - let mut output = crate::error::internal_server_error::Builder::default(); + let mut output = crate::error::internal_server_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_server_exception(response.body().as_ref(), output) - .map_err(crate::error::StopHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_internal_server_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopHumanLoopError::unhandled)?; output.build() }), }, "ResourceNotFoundException" => crate::error::StopHumanLoopError { meta: generic, - kind: crate::error::StopHumanLoopErrorKind::ResourceNotFoundError({ + kind: crate::error::StopHumanLoopErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found_exception( + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -362,23 +398,29 @@ pub fn parse_stop_human_loop_error( }, "ThrottlingException" => crate::error::StopHumanLoopError { meta: generic, - kind: crate::error::StopHumanLoopErrorKind::ThrottlingError({ + kind: crate::error::StopHumanLoopErrorKind::ThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::throttling_error::Builder::default(); + let mut output = crate::error::throttling_exception::Builder::default(); let _ = response; - output = crate::json_deser::throttling_exception(response.body().as_ref(), output) - .map_err(crate::error::StopHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_throttling_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopHumanLoopError::unhandled)?; output.build() }), }, "ValidationException" => crate::error::StopHumanLoopError { meta: generic, - kind: crate::error::StopHumanLoopErrorKind::ValidationError({ + kind: crate::error::StopHumanLoopErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::json_deser::validation_exception(response.body().as_ref(), output) - .map_err(crate::error::StopHumanLoopError::unhandled)?; + output = crate::json_deser::deser_structure_validation_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopHumanLoopError::unhandled)?; output.build() }), }, diff --git a/sdk/sagemakera2iruntime/src/operation_ser.rs b/sdk/sagemakera2iruntime/src/operation_ser.rs index 88a8cf397597..2230a645c9c7 100644 --- a/sdk/sagemakera2iruntime/src/operation_ser.rs +++ b/sdk/sagemakera2iruntime/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_start_human_loop( input: &crate::input::StartHumanLoopInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_human_loop_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_start_human_loop( pub fn serialize_operation_stop_human_loop( input: &crate::input::StopHumanLoopInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_human_loop_input(&mut object, input); diff --git a/sdk/sagemakera2iruntime/src/serde_util.rs b/sdk/sagemakera2iruntime/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/sagemakera2iruntime/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/sagemakera2iruntime/src/serializer.rs b/sdk/sagemakera2iruntime/src/serializer.rs deleted file mode 100644 index 0567213795eb..000000000000 --- a/sdk/sagemakera2iruntime/src/serializer.rs +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartHumanLoopInputBody<'a> { - ///

    The name of the human loop.

    - pub human_loop_name: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the flow definition associated with this human - /// loop.

    - pub flow_definition_arn: &'a std::option::Option, - ///

    An object that contains information about the human loop.

    - pub human_loop_input: &'a std::option::Option, - ///

    Attributes of the specified data. Use DataAttributes to specify if your data - /// is free of personally identifiable information and/or free of adult content.

    - pub data_attributes: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartHumanLoopInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartHumanLoopInputBody"); - formatter.field("human_loop_name", &self.human_loop_name); - formatter.field("flow_definition_arn", &self.flow_definition_arn); - formatter.field("human_loop_input", &self.human_loop_input); - formatter.field("data_attributes", &self.data_attributes); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopHumanLoopInputBody<'a> { - ///

    The name of the human loop that you want to stop.

    - pub human_loop_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopHumanLoopInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopHumanLoopInputBody"); - formatter.field("human_loop_name", &self.human_loop_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeHumanLoopOutputBody { - ///

    The creation time when Amazon Augmented AI created the human loop.

    - #[serde(rename = "CreationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub creation_time: std::option::Option, - ///

    The reason why a human loop failed. The failure reason is returned when the status of the - /// human loop is Failed.

    - #[serde(rename = "FailureReason")] - #[serde(default)] - pub failure_reason: std::option::Option, - ///

    A failure code that identifies the type of failure.

    - ///

    Possible values: ValidationError, Expired, - /// InternalError - ///

    - #[serde(rename = "FailureCode")] - #[serde(default)] - pub failure_code: std::option::Option, - ///

    The status of the human loop.

    - #[serde(rename = "HumanLoopStatus")] - #[serde(default)] - pub human_loop_status: std::option::Option, - ///

    The name of the human loop. The name must be lowercase, unique within the Region in your - /// account, and can have up to 63 characters. Valid characters: a-z, 0-9, and - (hyphen).

    - #[serde(rename = "HumanLoopName")] - #[serde(default)] - pub human_loop_name: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the human loop.

    - #[serde(rename = "HumanLoopArn")] - #[serde(default)] - pub human_loop_arn: std::option::Option, - ///

    The Amazon Resource Name (ARN) of the flow definition.

    - #[serde(rename = "FlowDefinitionArn")] - #[serde(default)] - pub flow_definition_arn: std::option::Option, - ///

    An object that contains information about the output of the human loop.

    - #[serde(rename = "HumanLoopOutput")] - #[serde(default)] - pub human_loop_output: std::option::Option, -} -impl std::fmt::Debug for DescribeHumanLoopOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeHumanLoopOutputBody"); - formatter.field("creation_time", &self.creation_time); - formatter.field("failure_reason", &self.failure_reason); - formatter.field("failure_code", &self.failure_code); - formatter.field("human_loop_status", &self.human_loop_status); - formatter.field("human_loop_name", &self.human_loop_name); - formatter.field("human_loop_arn", &self.human_loop_arn); - formatter.field("flow_definition_arn", &self.flow_definition_arn); - formatter.field("human_loop_output", &self.human_loop_output); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListHumanLoopsOutputBody { - ///

    An array of objects that contain information about the human loops.

    - #[serde(rename = "HumanLoopSummaries")] - #[serde(default)] - pub human_loop_summaries: std::option::Option>, - ///

    A token to display the next page of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListHumanLoopsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListHumanLoopsOutputBody"); - formatter.field("human_loop_summaries", &self.human_loop_summaries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartHumanLoopOutputBody { - ///

    The Amazon Resource Name (ARN) of the human loop.

    - #[serde(rename = "HumanLoopArn")] - #[serde(default)] - pub human_loop_arn: std::option::Option, -} -impl std::fmt::Debug for StartHumanLoopOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartHumanLoopOutputBody"); - formatter.field("human_loop_arn", &self.human_loop_arn); - formatter.finish() - } -} diff --git a/sdk/sagemakeredge/Cargo.toml b/sdk/sagemakeredge/Cargo.toml index 5f88c98d5f4a..544482b34e38 100644 --- a/sdk/sagemakeredge/Cargo.toml +++ b/sdk/sagemakeredge/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sagemakeredge" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    SageMaker Edge Manager dataplane service for communicating with active agents.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/sagemakeredge/src/aws_json_errors.rs b/sdk/sagemakeredge/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sagemakeredge/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sagemakeredge/src/error.rs b/sdk/sagemakeredge/src/error.rs index 4804657f3e72..5da43f01fdb9 100644 --- a/sdk/sagemakeredge/src/error.rs +++ b/sdk/sagemakeredge/src/error.rs @@ -8,14 +8,14 @@ pub struct GetDeviceRegistrationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDeviceRegistrationErrorKind { - InternalServiceError(crate::error::InternalServiceError), + InternalServiceException(crate::error::InternalServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDeviceRegistrationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDeviceRegistrationErrorKind::InternalServiceError(_inner) => _inner.fmt(f), + GetDeviceRegistrationErrorKind::InternalServiceException(_inner) => _inner.fmt(f), GetDeviceRegistrationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -64,17 +64,17 @@ impl GetDeviceRegistrationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_service_error(&self) -> bool { + pub fn is_internal_service_exception(&self) -> bool { matches!( &self.kind, - GetDeviceRegistrationErrorKind::InternalServiceError(_) + GetDeviceRegistrationErrorKind::InternalServiceException(_) ) } } impl std::error::Error for GetDeviceRegistrationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDeviceRegistrationErrorKind::InternalServiceError(_inner) => Some(_inner), + GetDeviceRegistrationErrorKind::InternalServiceException(_inner) => Some(_inner), GetDeviceRegistrationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -89,14 +89,14 @@ pub struct SendHeartbeatError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendHeartbeatErrorKind { - InternalServiceError(crate::error::InternalServiceError), + InternalServiceException(crate::error::InternalServiceException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendHeartbeatError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendHeartbeatErrorKind::InternalServiceError(_inner) => _inner.fmt(f), + SendHeartbeatErrorKind::InternalServiceException(_inner) => _inner.fmt(f), SendHeartbeatErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -145,14 +145,17 @@ impl SendHeartbeatError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_internal_service_error(&self) -> bool { - matches!(&self.kind, SendHeartbeatErrorKind::InternalServiceError(_)) + pub fn is_internal_service_exception(&self) -> bool { + matches!( + &self.kind, + SendHeartbeatErrorKind::InternalServiceException(_) + ) } } impl std::error::Error for SendHeartbeatError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendHeartbeatErrorKind::InternalServiceError(_inner) => Some(_inner), + SendHeartbeatErrorKind::InternalServiceException(_inner) => Some(_inner), SendHeartbeatErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -161,37 +164,35 @@ impl std::error::Error for SendHeartbeatError { ///

    An internal failure occurred. Try your request again. If the problem /// persists, contact AWS customer support.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalServiceError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InternalServiceException { pub message: std::option::Option, } -impl std::fmt::Debug for InternalServiceError { +impl std::fmt::Debug for InternalServiceException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalServiceError"); + let mut formatter = f.debug_struct("InternalServiceException"); formatter.field("message", &self.message); formatter.finish() } } -impl InternalServiceError { +impl InternalServiceException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InternalServiceError { +impl std::fmt::Display for InternalServiceException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalServiceError [InternalServiceException]")?; + write!(f, "InternalServiceException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for InternalServiceError {} -/// See [`InternalServiceError`](crate::error::InternalServiceError) -pub mod internal_service_error { - /// A builder for [`InternalServiceError`](crate::error::InternalServiceError) +impl std::error::Error for InternalServiceException {} +/// See [`InternalServiceException`](crate::error::InternalServiceException) +pub mod internal_service_exception { + /// A builder for [`InternalServiceException`](crate::error::InternalServiceException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -206,17 +207,17 @@ pub mod internal_service_error { self.message = input; self } - /// Consumes the builder and constructs a [`InternalServiceError`](crate::error::InternalServiceError) - pub fn build(self) -> crate::error::InternalServiceError { - crate::error::InternalServiceError { + /// Consumes the builder and constructs a [`InternalServiceException`](crate::error::InternalServiceException) + pub fn build(self) -> crate::error::InternalServiceException { + crate::error::InternalServiceException { message: self.message, } } } } -impl InternalServiceError { - /// Creates a new builder-style object to manufacture [`InternalServiceError`](crate::error::InternalServiceError) - pub fn builder() -> crate::error::internal_service_error::Builder { - crate::error::internal_service_error::Builder::default() +impl InternalServiceException { + /// Creates a new builder-style object to manufacture [`InternalServiceException`](crate::error::InternalServiceException) + pub fn builder() -> crate::error::internal_service_exception::Builder { + crate::error::internal_service_exception::Builder::default() } } diff --git a/sdk/sagemakeredge/src/error_meta.rs b/sdk/sagemakeredge/src/error_meta.rs index f8ad00787a59..f07938465b3e 100644 --- a/sdk/sagemakeredge/src/error_meta.rs +++ b/sdk/sagemakeredge/src/error_meta.rs @@ -2,13 +2,13 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - InternalServiceError(crate::error::InternalServiceError), + InternalServiceException(crate::error::InternalServiceException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::InternalServiceError(inner) => inner.fmt(f), + Error::InternalServiceException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -17,8 +17,8 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDeviceRegistrationErrorKind::InternalServiceError(inner) => { - Error::InternalServiceError(inner) + crate::error::GetDeviceRegistrationErrorKind::InternalServiceException(inner) => { + Error::InternalServiceException(inner) } crate::error::GetDeviceRegistrationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -32,8 +32,8 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SendHeartbeatErrorKind::InternalServiceError(inner) => { - Error::InternalServiceError(inner) + crate::error::SendHeartbeatErrorKind::InternalServiceException(inner) => { + Error::InternalServiceException(inner) } crate::error::SendHeartbeatErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/sagemakeredge/src/input.rs b/sdk/sagemakeredge/src/input.rs index 2d57496a9c5f..e432e159f4f3 100644 --- a/sdk/sagemakeredge/src/input.rs +++ b/sdk/sagemakeredge/src/input.rs @@ -108,8 +108,9 @@ impl GetDeviceRegistrationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/GetDeviceRegistration").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/GetDeviceRegistration").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -117,7 +118,7 @@ impl GetDeviceRegistrationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -293,8 +294,9 @@ impl SendHeartbeatInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/SendHeartbeat").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/SendHeartbeat").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -302,7 +304,7 @@ impl SendHeartbeatInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] diff --git a/sdk/sagemakeredge/src/instant_epoch.rs b/sdk/sagemakeredge/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/sagemakeredge/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/sagemakeredge/src/json_deser.rs b/sdk/sagemakeredge/src/json_deser.rs index 7ad56a60f6b8..9b2ce7586915 100644 --- a/sdk/sagemakeredge/src/json_deser.rs +++ b/sdk/sagemakeredge/src/json_deser.rs @@ -1,44 +1,100 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn internal_service_exception( +pub fn deser_structure_internal_service_exceptionjson_err( input: &[u8], - mut builder: crate::error::internal_service_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalServiceError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::internal_service_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_device_registration_deser_operation( +pub fn deser_operation_get_device_registration( input: &[u8], mut builder: crate::output::get_device_registration_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::GetDeviceRegistrationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_device_registration(parsed_body.device_registration); - builder = builder.set_cache_ttl(parsed_body.cache_ttl); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CacheTTL" => { + builder = builder.set_cache_ttl( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeviceRegistration" => { + builder = builder.set_device_registration( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} diff --git a/sdk/sagemakeredge/src/json_errors.rs b/sdk/sagemakeredge/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/sagemakeredge/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/sagemakeredge/src/lib.rs b/sdk/sagemakeredge/src/lib.rs index 82fc1d9bb869..ef321cd230be 100644 --- a/sdk/sagemakeredge/src/lib.rs +++ b/sdk/sagemakeredge/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    SageMaker Edge Manager dataplane service for communicating with active agents.

    // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. @@ -11,23 +12,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/sagemakeredge/src/model.rs b/sdk/sagemakeredge/src/model.rs index 0e07d9b83c10..7978b24917ca 100644 --- a/sdk/sagemakeredge/src/model.rs +++ b/sdk/sagemakeredge/src/model.rs @@ -1,33 +1,17 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Model { ///

    The name of the model.

    - #[serde(rename = "ModelName")] - #[serde(default)] pub model_name: std::option::Option, ///

    The version of the model.

    - #[serde(rename = "ModelVersion")] - #[serde(default)] pub model_version: std::option::Option, ///

    The timestamp of the last data sample taken.

    - #[serde(rename = "LatestSampleTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_sample_time: std::option::Option, ///

    The timestamp of the last inference that was made.

    - #[serde(rename = "LatestInference")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub latest_inference: std::option::Option, ///

    Information required for model metrics.

    - #[serde(rename = "ModelMetrics")] - #[serde(default)] pub model_metrics: std::option::Option>, } impl std::fmt::Debug for Model { @@ -133,26 +117,15 @@ impl Model { ///

    Information required for edge device metrics.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EdgeMetric { ///

    The dimension of metrics published.

    - #[serde(rename = "Dimension")] - #[serde(default)] pub dimension: std::option::Option, ///

    Returns the name of the metric.

    - #[serde(rename = "MetricName")] - #[serde(default)] pub metric_name: std::option::Option, ///

    Returns the value of the metric.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: f64, ///

    Timestamp of when the metric was requested.

    - #[serde(rename = "Timestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub timestamp: std::option::Option, } impl std::fmt::Debug for EdgeMetric { diff --git a/sdk/sagemakeredge/src/operation_deser.rs b/sdk/sagemakeredge/src/operation_deser.rs index 12e0e7558ee6..04c3b04a775f 100644 --- a/sdk/sagemakeredge/src/operation_deser.rs +++ b/sdk/sagemakeredge/src/operation_deser.rs @@ -15,13 +15,15 @@ pub fn parse_get_device_registration_error( Err(match error_code { "InternalServiceException" => crate::error::GetDeviceRegistrationError { meta: generic, - kind: crate::error::GetDeviceRegistrationErrorKind::InternalServiceError({ + kind: crate::error::GetDeviceRegistrationErrorKind::InternalServiceException({ #[allow(unused_mut)] - let mut output = crate::error::internal_service_error::Builder::default(); + let mut output = crate::error::internal_service_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_service_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeviceRegistrationError::unhandled)?; + output = crate::json_deser::deser_structure_internal_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeviceRegistrationError::unhandled)?; output.build() }), }, @@ -40,7 +42,7 @@ pub fn parse_get_device_registration_response( #[allow(unused_mut)] let mut output = crate::output::get_device_registration_output::Builder::default(); let _ = response; - output = crate::json_deser::get_device_registration_deser_operation( + output = crate::json_deser::deser_operation_get_device_registration( response.body().as_ref(), output, ) @@ -62,13 +64,15 @@ pub fn parse_send_heartbeat_error( Err(match error_code { "InternalServiceException" => crate::error::SendHeartbeatError { meta: generic, - kind: crate::error::SendHeartbeatErrorKind::InternalServiceError({ + kind: crate::error::SendHeartbeatErrorKind::InternalServiceException({ #[allow(unused_mut)] - let mut output = crate::error::internal_service_error::Builder::default(); + let mut output = crate::error::internal_service_exception::Builder::default(); let _ = response; - output = - crate::json_deser::internal_service_exception(response.body().as_ref(), output) - .map_err(crate::error::SendHeartbeatError::unhandled)?; + output = crate::json_deser::deser_structure_internal_service_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendHeartbeatError::unhandled)?; output.build() }), }, diff --git a/sdk/sagemakeredge/src/operation_ser.rs b/sdk/sagemakeredge/src/operation_ser.rs index 3290c400b8f7..85a1014e3e8e 100644 --- a/sdk/sagemakeredge/src/operation_ser.rs +++ b/sdk/sagemakeredge/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_get_device_registration( input: &crate::input::GetDeviceRegistrationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_device_registration_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_get_device_registration( pub fn serialize_operation_send_heartbeat( input: &crate::input::SendHeartbeatInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_heartbeat_input(&mut object, input); diff --git a/sdk/sagemakeredge/src/serde_util.rs b/sdk/sagemakeredge/src/serde_util.rs deleted file mode 100644 index df4f10659097..000000000000 --- a/sdk/sagemakeredge/src/serde_util.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/sagemakeredge/src/serializer.rs b/sdk/sagemakeredge/src/serializer.rs deleted file mode 100644 index a70e56da58b4..000000000000 --- a/sdk/sagemakeredge/src/serializer.rs +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeviceRegistrationInputBody<'a> { - ///

    The unique name of the device you want to get the registration status from.

    - pub device_name: &'a std::option::Option, - ///

    The name of the fleet that the device belongs to.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetDeviceRegistrationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeviceRegistrationInputBody"); - formatter.field("device_name", &self.device_name); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendHeartbeatInputBody<'a> { - ///

    For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.

    - pub agent_metrics: &'a std::option::Option>, - ///

    Returns a list of models deployed on the the device.

    - pub models: &'a std::option::Option>, - ///

    Returns the version of the agent.

    - pub agent_version: &'a std::option::Option, - ///

    The unique name of the device.

    - pub device_name: &'a std::option::Option, - ///

    The name of the fleet that the device belongs to.

    - pub device_fleet_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendHeartbeatInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendHeartbeatInputBody"); - formatter.field("agent_metrics", &self.agent_metrics); - formatter.field("models", &self.models); - formatter.field("agent_version", &self.agent_version); - formatter.field("device_name", &self.device_name); - formatter.field("device_fleet_name", &self.device_fleet_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeviceRegistrationOutputBody { - ///

    Describes if the device is currently registered with SageMaker Edge Manager.

    - #[serde(rename = "DeviceRegistration")] - #[serde(default)] - pub device_registration: std::option::Option, - ///

    The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.

    - #[serde(rename = "CacheTTL")] - #[serde(default)] - pub cache_ttl: std::option::Option, -} -impl std::fmt::Debug for GetDeviceRegistrationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeviceRegistrationOutputBody"); - formatter.field("device_registration", &self.device_registration); - formatter.field("cache_ttl", &self.cache_ttl); - formatter.finish() - } -} diff --git a/sdk/sagemakerfeaturestoreruntime/Cargo.toml b/sdk/sagemakerfeaturestoreruntime/Cargo.toml index 045193a954b1..d90ef8e2123b 100644 --- a/sdk/sagemakerfeaturestoreruntime/Cargo.toml +++ b/sdk/sagemakerfeaturestoreruntime/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sagemakerfeaturestoreruntime" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    Contains all data plane API operations and data types for the Amazon SageMaker Feature\n Store. Use this API to put, delete, and retrieve (get) features from a feature\n store.

    \n

    Use the following operations to configure your OnlineStore and\n OfflineStore features, and to create and manage feature groups:

    \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/sagemakerfeaturestoreruntime/src/aws_json_errors.rs b/sdk/sagemakerfeaturestoreruntime/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sagemakerfeaturestoreruntime/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sagemakerfeaturestoreruntime/src/error.rs b/sdk/sagemakerfeaturestoreruntime/src/error.rs index 25ab093ef8dc..f3883f9a615d 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/error.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/error.rs @@ -391,10 +391,8 @@ impl std::error::Error for PutRecordError { ///

    There was an error validating your request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ValidationError { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ValidationError { @@ -453,10 +451,8 @@ impl ValidationError { ///

    The service is currently unavailable.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceUnavailable { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ServiceUnavailable { @@ -516,10 +512,8 @@ impl ServiceUnavailable { ///

    An internal failure occurred. Try your request again. If the problem /// persists, contact AWS customer support.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InternalFailure { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InternalFailure { @@ -578,10 +572,8 @@ impl InternalFailure { ///

    You do not have permission to perform an action.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccessForbidden { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for AccessForbidden { @@ -640,10 +632,8 @@ impl AccessForbidden { ///

    A resource that is required to perform an action was not found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceNotFound { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ResourceNotFound { diff --git a/sdk/sagemakerfeaturestoreruntime/src/input.rs b/sdk/sagemakerfeaturestoreruntime/src/input.rs index b65dc7d86d84..1154f06c68b3 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/input.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/input.rs @@ -101,8 +101,9 @@ impl BatchGetRecordInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/BatchGetRecord").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/BatchGetRecord").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -110,7 +111,7 @@ impl BatchGetRecordInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -191,7 +192,7 @@ pub mod delete_record_input { ) -> std::result::Result { Ok(crate::input::DeleteRecordInput { - feature_group_name: self.feature_group_name.unwrap_or_default(), + feature_group_name: self.feature_group_name, record_identifier_value_as_string: self.record_identifier_value_as_string, event_time: self.event_time, }) @@ -258,13 +259,31 @@ impl DeleteRecordInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let feature_group_name = { + let input = &self.feature_group_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/FeatureGroup/{FeatureGroupName}", - FeatureGroupName = smithy_http::label::fmt_string(&self.feature_group_name, false) + FeatureGroupName = feature_group_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -284,7 +303,7 @@ impl DeleteRecordInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -369,7 +388,7 @@ pub mod get_record_input { ) -> std::result::Result { Ok(crate::input::GetRecordInput { - feature_group_name: self.feature_group_name.unwrap_or_default(), + feature_group_name: self.feature_group_name, record_identifier_value_as_string: self.record_identifier_value_as_string, feature_names: self.feature_names, }) @@ -434,13 +453,31 @@ impl GetRecordInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let feature_group_name = { + let input = &self.feature_group_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/FeatureGroup/{FeatureGroupName}", - FeatureGroupName = smithy_http::label::fmt_string(&self.feature_group_name, false) + FeatureGroupName = feature_group_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -462,7 +499,7 @@ impl GetRecordInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -530,7 +567,7 @@ pub mod put_record_input { ) -> std::result::Result { Ok(crate::input::PutRecordInput { - feature_group_name: self.feature_group_name.unwrap_or_default(), + feature_group_name: self.feature_group_name, record: self.record, }) } @@ -597,13 +634,31 @@ impl PutRecordInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let feature_group_name = { + let input = &self.feature_group_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "feature_group_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/FeatureGroup/{FeatureGroupName}", - FeatureGroupName = smithy_http::label::fmt_string(&self.feature_group_name, false) + FeatureGroupName = feature_group_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -611,7 +666,7 @@ impl PutRecordInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -641,7 +696,7 @@ impl PutRecordInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutRecordInput { ///

    The name of the feature group that you want to insert the record into.

    - pub feature_group_name: std::string::String, + pub feature_group_name: std::option::Option, ///

    List of FeatureValues to be inserted. This will be a full over-write. If you only want /// to update few of the feature values, do the following:

    ///
      @@ -670,7 +725,7 @@ impl std::fmt::Debug for PutRecordInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetRecordInput { ///

      The name of the feature group in which you want to put the records.

      - pub feature_group_name: std::string::String, + pub feature_group_name: std::option::Option, ///

      The value that corresponds to RecordIdentifier type and uniquely identifies /// the record in the FeatureGroup.

      pub record_identifier_value_as_string: std::option::Option, @@ -695,7 +750,7 @@ impl std::fmt::Debug for GetRecordInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteRecordInput { ///

      The name of the feature group to delete the record from.

      - pub feature_group_name: std::string::String, + pub feature_group_name: std::option::Option, ///

      The value for the RecordIdentifier that uniquely identifies the record, in /// string format.

      pub record_identifier_value_as_string: std::option::Option, diff --git a/sdk/sagemakerfeaturestoreruntime/src/json_deser.rs b/sdk/sagemakerfeaturestoreruntime/src/json_deser.rs index 2c41f212fded..22c33d3ac79b 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/json_deser.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/json_deser.rs @@ -1,124 +1,757 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn access_forbidden( +pub fn deser_structure_access_forbiddenjson_err( input: &[u8], mut builder: crate::error::access_forbidden::Builder, -) -> std::result::Result { - let parsed_body: crate::error::AccessForbidden = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn internal_failure( +pub fn deser_structure_internal_failurejson_err( input: &[u8], mut builder: crate::error::internal_failure::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalFailure = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn service_unavailable( +pub fn deser_structure_service_unavailablejson_err( input: &[u8], mut builder: crate::error::service_unavailable::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceUnavailable = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn validation_error( +pub fn deser_structure_validation_errorjson_err( input: &[u8], mut builder: crate::error::validation_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ValidationError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn batch_get_record_deser_operation( +pub fn deser_operation_batch_get_record( input: &[u8], mut builder: crate::output::batch_get_record_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::BatchGetRecordOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_records(parsed_body.records); - builder = builder.set_errors(parsed_body.errors); - builder = builder.set_unprocessed_identifiers(parsed_body.unprocessed_identifiers); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Errors" => { + builder = builder.set_errors( + crate::json_deser::deser_list_batch_get_record_errors(tokens)?, + ); + } + "Records" => { + builder = builder.set_records( + crate::json_deser::deser_list_batch_get_record_result_details(tokens)?, + ); + } + "UnprocessedIdentifiers" => { + builder = builder.set_unprocessed_identifiers( + crate::json_deser::deser_list_unprocessed_identifiers(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resource_not_found( +pub fn deser_structure_resource_not_foundjson_err( input: &[u8], mut builder: crate::error::resource_not_found::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ResourceNotFound = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_record_deser_operation( +pub fn deser_operation_get_record( input: &[u8], mut builder: crate::output::get_record_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRecordOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_record(parsed_body.record); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Record" => { + builder = builder.set_record(crate::json_deser::deser_list_record(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_batch_get_record_errors<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_get_record_error(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_batch_get_record_result_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_get_record_result_detail( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_unprocessed_identifiers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_batch_get_record_identifier(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_record<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_feature_value(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_batch_get_record_error<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchGetRecordError::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RecordIdentifierValueAsString" => { + builder = builder.set_record_identifier_value_as_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_get_record_result_detail<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchGetRecordResultDetail::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RecordIdentifierValueAsString" => { + builder = builder.set_record_identifier_value_as_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Record" => { + builder = builder + .set_record(crate::json_deser::deser_list_record(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_batch_get_record_identifier<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BatchGetRecordIdentifier::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureGroupName" => { + builder = builder.set_feature_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RecordIdentifiersValueAsString" => { + builder = builder.set_record_identifiers_value_as_string( + crate::json_deser::deser_list_record_identifiers(tokens)?, + ); + } + "FeatureNames" => { + builder = builder.set_feature_names( + crate::json_deser::deser_list_feature_names(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_feature_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FeatureValue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FeatureName" => { + builder = builder.set_feature_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ValueAsString" => { + builder = builder.set_value_as_string( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_record_identifiers<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_feature_names<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/sagemakerfeaturestoreruntime/src/json_errors.rs b/sdk/sagemakerfeaturestoreruntime/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/sagemakerfeaturestoreruntime/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/sagemakerfeaturestoreruntime/src/lib.rs b/sdk/sagemakerfeaturestoreruntime/src/lib.rs index 57a3fd5f1f0e..89db064b8b6d 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/lib.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

      Contains all data plane API operations and data types for the Amazon SageMaker Feature //! Store. Use this API to put, delete, and retrieve (get) features from a feature //! store.

      @@ -37,7 +38,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -45,13 +45,13 @@ pub mod error; mod error_meta; pub mod input; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/sagemakerfeaturestoreruntime/src/model.rs b/sdk/sagemakerfeaturestoreruntime/src/model.rs index a72482ac0450..eaabc4a438d5 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/model.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/model.rs @@ -1,16 +1,12 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

      The value associated with a feature.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FeatureValue { ///

      The name of a feature that a feature value corresponds to.

      - #[serde(rename = "FeatureName")] - #[serde(default)] pub feature_name: std::option::Option, ///

      The value associated with a feature, in string format. Note that features types can be /// String, Integral, or Fractional. This value represents all three types as a string.

      - #[serde(rename = "ValueAsString")] - #[serde(default)] pub value_as_string: std::option::Option, } impl std::fmt::Debug for FeatureValue { @@ -71,20 +67,14 @@ impl FeatureValue { ///

      The identifier that identifies the batch of Records you are retrieving in a batch.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchGetRecordIdentifier { ///

      A FeatureGroupName containing Records you are retrieving in a batch.

      - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, ///

      The value for a list of record identifiers in string format.

      - #[serde(rename = "RecordIdentifiersValueAsString")] - #[serde(default)] pub record_identifiers_value_as_string: std::option::Option>, ///

      List of names of Features to be retrieved. If not specified, the latest value for all /// the Features are returned.

      - #[serde(rename = "FeatureNames")] - #[serde(default)] pub feature_names: std::option::Option>, } impl std::fmt::Debug for BatchGetRecordIdentifier { @@ -171,24 +161,16 @@ impl BatchGetRecordIdentifier { ///

      The error that has occurred when attempting to retrieve a batch of Records.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchGetRecordError { ///

      The name of the feature group that the record belongs to.

      - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, ///

      The value for the RecordIdentifier in string format of a Record from a FeatureGroup that is causing /// an error when attempting to be retrieved.

      - #[serde(rename = "RecordIdentifierValueAsString")] - #[serde(default)] pub record_identifier_value_as_string: std::option::Option, ///

      The error code of an error that has occured when attempting to retrieve a batch of Records. For more information on errors, see Errors.

      - #[serde(rename = "ErrorCode")] - #[serde(default)] pub error_code: std::option::Option, ///

      The error message of an error that has occured when attempting to retrieve a record in the batch.

      - #[serde(rename = "ErrorMessage")] - #[serde(default)] pub error_message: std::option::Option, } impl std::fmt::Debug for BatchGetRecordError { @@ -285,19 +267,13 @@ impl BatchGetRecordError { ///

      The output of Records that have been retrieved in a batch.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BatchGetRecordResultDetail { ///

      The FeatureGroupName containing Records you retrieved in a batch.

      - #[serde(rename = "FeatureGroupName")] - #[serde(default)] pub feature_group_name: std::option::Option, ///

      The value of the record identifer in string format.

      - #[serde(rename = "RecordIdentifierValueAsString")] - #[serde(default)] pub record_identifier_value_as_string: std::option::Option, ///

      The Record retrieved.

      - #[serde(rename = "Record")] - #[serde(default)] pub record: std::option::Option>, } impl std::fmt::Debug for BatchGetRecordResultDetail { diff --git a/sdk/sagemakerfeaturestoreruntime/src/operation_deser.rs b/sdk/sagemakerfeaturestoreruntime/src/operation_deser.rs index c5c3fb7be487..5b32ff756f92 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/operation_deser.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/operation_deser.rs @@ -16,8 +16,11 @@ pub fn parse_batch_get_record_error( #[allow(unused_mut)] let mut output = crate::error::access_forbidden::Builder::default(); let _ = response; - output = crate::json_deser::access_forbidden(response.body().as_ref(), output) - .map_err(crate::error::BatchGetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_access_forbiddenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetRecordError::unhandled)?; output.build() }), }, @@ -27,8 +30,11 @@ pub fn parse_batch_get_record_error( #[allow(unused_mut)] let mut output = crate::error::internal_failure::Builder::default(); let _ = response; - output = crate::json_deser::internal_failure(response.body().as_ref(), output) - .map_err(crate::error::BatchGetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_internal_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetRecordError::unhandled)?; output.build() }), }, @@ -38,8 +44,11 @@ pub fn parse_batch_get_record_error( #[allow(unused_mut)] let mut output = crate::error::service_unavailable::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable(response.body().as_ref(), output) - .map_err(crate::error::BatchGetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_service_unavailablejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetRecordError::unhandled)?; output.build() }), }, @@ -49,8 +58,11 @@ pub fn parse_batch_get_record_error( #[allow(unused_mut)] let mut output = crate::error::validation_error::Builder::default(); let _ = response; - output = crate::json_deser::validation_error(response.body().as_ref(), output) - .map_err(crate::error::BatchGetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_validation_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::BatchGetRecordError::unhandled)?; output.build() }), }, @@ -67,7 +79,7 @@ pub fn parse_batch_get_record_response( let mut output = crate::output::batch_get_record_output::Builder::default(); let _ = response; output = - crate::json_deser::batch_get_record_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_batch_get_record(response.body().as_ref(), output) .map_err(crate::error::BatchGetRecordError::unhandled)?; output.build() }) @@ -90,8 +102,11 @@ pub fn parse_delete_record_error( #[allow(unused_mut)] let mut output = crate::error::access_forbidden::Builder::default(); let _ = response; - output = crate::json_deser::access_forbidden(response.body().as_ref(), output) - .map_err(crate::error::DeleteRecordError::unhandled)?; + output = crate::json_deser::deser_structure_access_forbiddenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRecordError::unhandled)?; output.build() }), }, @@ -101,8 +116,11 @@ pub fn parse_delete_record_error( #[allow(unused_mut)] let mut output = crate::error::internal_failure::Builder::default(); let _ = response; - output = crate::json_deser::internal_failure(response.body().as_ref(), output) - .map_err(crate::error::DeleteRecordError::unhandled)?; + output = crate::json_deser::deser_structure_internal_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRecordError::unhandled)?; output.build() }), }, @@ -112,8 +130,11 @@ pub fn parse_delete_record_error( #[allow(unused_mut)] let mut output = crate::error::service_unavailable::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable(response.body().as_ref(), output) - .map_err(crate::error::DeleteRecordError::unhandled)?; + output = crate::json_deser::deser_structure_service_unavailablejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRecordError::unhandled)?; output.build() }), }, @@ -123,8 +144,11 @@ pub fn parse_delete_record_error( #[allow(unused_mut)] let mut output = crate::error::validation_error::Builder::default(); let _ = response; - output = crate::json_deser::validation_error(response.body().as_ref(), output) - .map_err(crate::error::DeleteRecordError::unhandled)?; + output = crate::json_deser::deser_structure_validation_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteRecordError::unhandled)?; output.build() }), }, @@ -161,8 +185,11 @@ pub fn parse_get_record_error( #[allow(unused_mut)] let mut output = crate::error::access_forbidden::Builder::default(); let _ = response; - output = crate::json_deser::access_forbidden(response.body().as_ref(), output) - .map_err(crate::error::GetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_access_forbiddenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordError::unhandled)?; output.build() }), }, @@ -172,8 +199,11 @@ pub fn parse_get_record_error( #[allow(unused_mut)] let mut output = crate::error::internal_failure::Builder::default(); let _ = response; - output = crate::json_deser::internal_failure(response.body().as_ref(), output) - .map_err(crate::error::GetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_internal_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordError::unhandled)?; output.build() }), }, @@ -183,8 +213,11 @@ pub fn parse_get_record_error( #[allow(unused_mut)] let mut output = crate::error::resource_not_found::Builder::default(); let _ = response; - output = crate::json_deser::resource_not_found(response.body().as_ref(), output) - .map_err(crate::error::GetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_resource_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordError::unhandled)?; output.build() }), }, @@ -194,8 +227,11 @@ pub fn parse_get_record_error( #[allow(unused_mut)] let mut output = crate::error::service_unavailable::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable(response.body().as_ref(), output) - .map_err(crate::error::GetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_service_unavailablejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordError::unhandled)?; output.build() }), }, @@ -205,8 +241,11 @@ pub fn parse_get_record_error( #[allow(unused_mut)] let mut output = crate::error::validation_error::Builder::default(); let _ = response; - output = crate::json_deser::validation_error(response.body().as_ref(), output) - .map_err(crate::error::GetRecordError::unhandled)?; + output = crate::json_deser::deser_structure_validation_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRecordError::unhandled)?; output.build() }), }, @@ -222,7 +261,7 @@ pub fn parse_get_record_response( #[allow(unused_mut)] let mut output = crate::output::get_record_output::Builder::default(); let _ = response; - output = crate::json_deser::get_record_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_record(response.body().as_ref(), output) .map_err(crate::error::GetRecordError::unhandled)?; output.build() }) @@ -245,8 +284,11 @@ pub fn parse_put_record_error( #[allow(unused_mut)] let mut output = crate::error::access_forbidden::Builder::default(); let _ = response; - output = crate::json_deser::access_forbidden(response.body().as_ref(), output) - .map_err(crate::error::PutRecordError::unhandled)?; + output = crate::json_deser::deser_structure_access_forbiddenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; output.build() }), }, @@ -256,8 +298,11 @@ pub fn parse_put_record_error( #[allow(unused_mut)] let mut output = crate::error::internal_failure::Builder::default(); let _ = response; - output = crate::json_deser::internal_failure(response.body().as_ref(), output) - .map_err(crate::error::PutRecordError::unhandled)?; + output = crate::json_deser::deser_structure_internal_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; output.build() }), }, @@ -267,8 +312,11 @@ pub fn parse_put_record_error( #[allow(unused_mut)] let mut output = crate::error::service_unavailable::Builder::default(); let _ = response; - output = crate::json_deser::service_unavailable(response.body().as_ref(), output) - .map_err(crate::error::PutRecordError::unhandled)?; + output = crate::json_deser::deser_structure_service_unavailablejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; output.build() }), }, @@ -278,8 +326,11 @@ pub fn parse_put_record_error( #[allow(unused_mut)] let mut output = crate::error::validation_error::Builder::default(); let _ = response; - output = crate::json_deser::validation_error(response.body().as_ref(), output) - .map_err(crate::error::PutRecordError::unhandled)?; + output = crate::json_deser::deser_structure_validation_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutRecordError::unhandled)?; output.build() }), }, diff --git a/sdk/sagemakerfeaturestoreruntime/src/operation_ser.rs b/sdk/sagemakerfeaturestoreruntime/src/operation_ser.rs index d807e6576c7f..ff26e6127d9a 100644 --- a/sdk/sagemakerfeaturestoreruntime/src/operation_ser.rs +++ b/sdk/sagemakerfeaturestoreruntime/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_batch_get_record( input: &crate::input::BatchGetRecordInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_batch_get_record_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_batch_get_record( pub fn serialize_operation_put_record( input: &crate::input::PutRecordInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_record_input(&mut object, input); diff --git a/sdk/sagemakerfeaturestoreruntime/src/serializer.rs b/sdk/sagemakerfeaturestoreruntime/src/serializer.rs deleted file mode 100644 index 03e81197fe95..000000000000 --- a/sdk/sagemakerfeaturestoreruntime/src/serializer.rs +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchGetRecordInputBody<'a> { - ///

      A list of FeatureGroup names, with their corresponding RecordIdentifier value, and Feature name - /// that have been requested to be retrieved in batch.

      - pub identifiers: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for BatchGetRecordInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchGetRecordInputBody"); - formatter.field("identifiers", &self.identifiers); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutRecordInputBody<'a> { - ///

      List of FeatureValues to be inserted. This will be a full over-write. If you only want - /// to update few of the feature values, do the following:

      - ///
        - ///
      • - ///

        Use GetRecord to retrieve the latest record.

        - ///
      • - ///
      • - ///

        Update the record returned from GetRecord.

        - ///
      • - ///
      • - ///

        Use PutRecord to update feature values.

        - ///
      • - ///
      - pub record: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutRecordInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutRecordInputBody"); - formatter.field("record", &self.record); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BatchGetRecordOutputBody { - ///

      A list of Records you requested to be retrieved in batch.

      - #[serde(rename = "Records")] - #[serde(default)] - pub records: std::option::Option>, - ///

      A list of errors that have occured when retrieving a batch of Records.

      - #[serde(rename = "Errors")] - #[serde(default)] - pub errors: std::option::Option>, - ///

      A unprocessed list of FeatureGroup names, with their corresponding RecordIdentifier value, - /// and Feature name.

      - #[serde(rename = "UnprocessedIdentifiers")] - #[serde(default)] - pub unprocessed_identifiers: - std::option::Option>, -} -impl std::fmt::Debug for BatchGetRecordOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BatchGetRecordOutputBody"); - formatter.field("records", &self.records); - formatter.field("errors", &self.errors); - formatter.field("unprocessed_identifiers", &self.unprocessed_identifiers); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRecordOutputBody { - ///

      The record you requested. A list of FeatureValues.

      - #[serde(rename = "Record")] - #[serde(default)] - pub record: std::option::Option>, -} -impl std::fmt::Debug for GetRecordOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRecordOutputBody"); - formatter.field("record", &self.record); - formatter.finish() - } -} diff --git a/sdk/sagemakerruntime/src/aws_json_errors.rs b/sdk/sagemakerruntime/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sagemakerruntime/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sagemakerruntime/src/client.rs b/sdk/sagemakerruntime/src/client.rs deleted file mode 100644 index 07a219ca1369..000000000000 --- a/sdk/sagemakerruntime/src/client.rs +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[derive(std::fmt::Debug)] -pub(crate) struct Handle { - client: aws_hyper::Client, - conf: crate::Config, -} - -#[derive(Clone, std::fmt::Debug)] -pub struct Client { - handle: std::sync::Arc>, -} -impl Client { - pub fn from_conf_conn(conf: crate::Config, conn: C) -> Self { - let client = aws_hyper::Client::new(conn); - Self { - handle: std::sync::Arc::new(Handle { client, conf }), - } - } - - pub fn conf(&self) -> &crate::Config { - &self.handle.conf - } -} -impl Client { - #[cfg(any(feature = "rustls", feature = "native-tls"))] - pub fn from_env() -> Self { - Self::from_conf(crate::Config::builder().build()) - } - - #[cfg(any(feature = "rustls", feature = "native-tls"))] - pub fn from_conf(conf: crate::Config) -> Self { - let client = aws_hyper::Client::https(); - Self { - handle: std::sync::Arc::new(Handle { client, conf }), - } - } -} -impl Client -where - C: aws_hyper::SmithyConnector, -{ - pub fn invoke_endpoint(&self) -> fluent_builders::InvokeEndpoint { - fluent_builders::InvokeEndpoint::new(self.handle.clone()) - } -} -pub mod fluent_builders { - #[derive(std::fmt::Debug)] - pub struct InvokeEndpoint { - handle: std::sync::Arc>, - inner: crate::input::invoke_endpoint_input::Builder, - } - impl InvokeEndpoint { - pub(crate) fn new(handle: std::sync::Arc>) -> Self { - Self { - handle, - inner: Default::default(), - } - } - - pub async fn send( - self, - ) -> std::result::Result< - crate::output::InvokeEndpointOutput, - smithy_http::result::SdkError, - > - where - C: aws_hyper::SmithyConnector, - { - let input = self - .inner - .build() - .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; - let op = input - .make_operation(&self.handle.conf) - .map_err(|err| smithy_http::result::SdkError::ConstructionFailure(err.into()))?; - self.handle.client.call(op).await - } - ///

      The name of the endpoint that you specified when you created the endpoint using the - /// CreateEndpoint API.

      - pub fn endpoint_name(mut self, input: impl Into) -> Self { - self.inner = self.inner.endpoint_name(input); - self - } - pub fn set_endpoint_name( - mut self, - input: std::option::Option, - ) -> Self { - self.inner = self.inner.set_endpoint_name(input); - self - } - ///

      Provides input data, in the format specified in the ContentType - /// request header. Amazon SageMaker passes all of the data in the body to the model.

      - ///

      For information about the format of the request body, see Common Data - /// Formats-Inference.

      - pub fn body(mut self, input: smithy_types::Blob) -> Self { - self.inner = self.inner.body(input); - self - } - pub fn set_body(mut self, input: std::option::Option) -> Self { - self.inner = self.inner.set_body(input); - self - } - ///

      The MIME type of the input data in the request body.

      - pub fn content_type(mut self, input: impl Into) -> Self { - self.inner = self.inner.content_type(input); - self - } - pub fn set_content_type(mut self, input: std::option::Option) -> Self { - self.inner = self.inner.set_content_type(input); - self - } - ///

      The desired MIME type of the inference in the response.

      - pub fn accept(mut self, input: impl Into) -> Self { - self.inner = self.inner.accept(input); - self - } - pub fn set_accept(mut self, input: std::option::Option) -> Self { - self.inner = self.inner.set_accept(input); - self - } - ///

      Provides additional information about a request for an inference submitted to a model - /// hosted at an Amazon SageMaker endpoint. The information is an opaque value that is - /// forwarded verbatim. You could use this value, for example, to provide an ID that you can - /// use to track a request or to provide other metadata that a service endpoint was - /// programmed to process. The value must consist of no more than 1024 visible US-ASCII - /// characters as specified in Section 3.3.6. Field Value - /// Components of the Hypertext Transfer Protocol (HTTP/1.1).

      - ///

      The code in your model is responsible for setting or updating any custom attributes in - /// the response. If your code does not set this value in the response, an empty value is - /// returned. For example, if a custom attribute represents the trace ID, your model can - /// prepend the custom attribute with Trace ID: in your post-processing - /// function.

      - ///

      This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python - /// SDK.

      - pub fn custom_attributes(mut self, input: impl Into) -> Self { - self.inner = self.inner.custom_attributes(input); - self - } - pub fn set_custom_attributes( - mut self, - input: std::option::Option, - ) -> Self { - self.inner = self.inner.set_custom_attributes(input); - self - } - ///

      The model to request for inference when invoking a multi-model endpoint.

      - pub fn target_model(mut self, input: impl Into) -> Self { - self.inner = self.inner.target_model(input); - self - } - pub fn set_target_model(mut self, input: std::option::Option) -> Self { - self.inner = self.inner.set_target_model(input); - self - } - ///

      Specify the production variant to send the inference request to when invoking an - /// endpoint that is running two or more variants. Note that this parameter overrides the - /// default behavior for the endpoint, which is to distribute the invocation traffic based - /// on the variant weights.

      - ///

      For information about how to use variant targeting to perform a/b testing, see Test models in - /// production - ///

      - pub fn target_variant(mut self, input: impl Into) -> Self { - self.inner = self.inner.target_variant(input); - self - } - pub fn set_target_variant( - mut self, - input: std::option::Option, - ) -> Self { - self.inner = self.inner.set_target_variant(input); - self - } - ///

      If the endpoint hosts multiple containers and is configured to use direct invocation, - /// this parameter specifies the host name of the container to invoke.

      - pub fn target_container_hostname(mut self, input: impl Into) -> Self { - self.inner = self.inner.target_container_hostname(input); - self - } - pub fn set_target_container_hostname( - mut self, - input: std::option::Option, - ) -> Self { - self.inner = self.inner.set_target_container_hostname(input); - self - } - ///

      If you provide a value, it is added to the captured data when you enable data capture - /// on the endpoint. For information about data capture, see Capture - /// Data.

      - pub fn inference_id(mut self, input: impl Into) -> Self { - self.inner = self.inner.inference_id(input); - self - } - pub fn set_inference_id(mut self, input: std::option::Option) -> Self { - self.inner = self.inner.set_inference_id(input); - self - } - } -} diff --git a/sdk/sagemakerruntime/src/error.rs b/sdk/sagemakerruntime/src/error.rs deleted file mode 100644 index 9f8ae1bc17ab..000000000000 --- a/sdk/sagemakerruntime/src/error.rs +++ /dev/null @@ -1,399 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::fmt::Debug)] -pub struct InvokeEndpointError { - pub kind: InvokeEndpointErrorKind, - pub(crate) meta: smithy_types::Error, -} -#[non_exhaustive] -#[derive(std::fmt::Debug)] -pub enum InvokeEndpointErrorKind { - InternalFailure(crate::error::InternalFailure), - ModelError(crate::error::ModelError), - ServiceUnavailable(crate::error::ServiceUnavailable), - ValidationError(crate::error::ValidationError), - /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code - Unhandled(Box), -} -impl std::fmt::Display for InvokeEndpointError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match &self.kind { - InvokeEndpointErrorKind::InternalFailure(_inner) => _inner.fmt(f), - InvokeEndpointErrorKind::ModelError(_inner) => _inner.fmt(f), - InvokeEndpointErrorKind::ServiceUnavailable(_inner) => _inner.fmt(f), - InvokeEndpointErrorKind::ValidationError(_inner) => _inner.fmt(f), - InvokeEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), - } - } -} -impl smithy_types::retry::ProvideErrorKind for InvokeEndpointError { - fn code(&self) -> Option<&str> { - InvokeEndpointError::code(self) - } - fn retryable_error_kind(&self) -> Option { - None - } -} -impl InvokeEndpointError { - pub fn new(kind: InvokeEndpointErrorKind, meta: smithy_types::Error) -> Self { - Self { kind, meta } - } - - pub fn unhandled(err: impl Into>) -> Self { - Self { - kind: InvokeEndpointErrorKind::Unhandled(err.into()), - meta: Default::default(), - } - } - - pub fn generic(err: smithy_types::Error) -> Self { - Self { - meta: err.clone(), - kind: InvokeEndpointErrorKind::Unhandled(err.into()), - } - } - - // Consider if this should actually be `Option>`. This would enable us to use display as implemented - // by std::Error to generate a message in that case. - pub fn message(&self) -> Option<&str> { - self.meta.message() - } - - pub fn meta(&self) -> &smithy_types::Error { - &self.meta - } - - pub fn request_id(&self) -> Option<&str> { - self.meta.request_id() - } - - pub fn code(&self) -> Option<&str> { - self.meta.code() - } - pub fn is_internal_failure(&self) -> bool { - matches!(&self.kind, InvokeEndpointErrorKind::InternalFailure(_)) - } - pub fn is_model_error(&self) -> bool { - matches!(&self.kind, InvokeEndpointErrorKind::ModelError(_)) - } - pub fn is_service_unavailable(&self) -> bool { - matches!(&self.kind, InvokeEndpointErrorKind::ServiceUnavailable(_)) - } - pub fn is_validation_error(&self) -> bool { - matches!(&self.kind, InvokeEndpointErrorKind::ValidationError(_)) - } -} -impl std::error::Error for InvokeEndpointError { - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - match &self.kind { - InvokeEndpointErrorKind::InternalFailure(_inner) => Some(_inner), - InvokeEndpointErrorKind::ModelError(_inner) => Some(_inner), - InvokeEndpointErrorKind::ServiceUnavailable(_inner) => Some(_inner), - InvokeEndpointErrorKind::ValidationError(_inner) => Some(_inner), - InvokeEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), - } - } -} - -///

      Inspect your request and try again.

      -#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidationError { - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, -} -impl std::fmt::Debug for ValidationError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidationError"); - formatter.field("message", &self.message); - formatter.finish() - } -} -impl ValidationError { - pub fn message(&self) -> Option<&str> { - self.message.as_deref() - } -} -impl std::fmt::Display for ValidationError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ValidationError")?; - if let Some(inner_1) = &self.message { - write!(f, ": {}", inner_1)?; - } - Ok(()) - } -} -impl std::error::Error for ValidationError {} -/// See [`ValidationError`](crate::error::ValidationError) -pub mod validation_error { - /// A builder for [`ValidationError`](crate::error::ValidationError) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) message: std::option::Option, - } - impl Builder { - pub fn message(mut self, input: impl Into) -> Self { - self.message = Some(input.into()); - self - } - pub fn set_message(mut self, input: std::option::Option) -> Self { - self.message = input; - self - } - /// Consumes the builder and constructs a [`ValidationError`](crate::error::ValidationError) - pub fn build(self) -> crate::error::ValidationError { - crate::error::ValidationError { - message: self.message, - } - } - } -} -impl ValidationError { - /// Creates a new builder-style object to manufacture [`ValidationError`](crate::error::ValidationError) - pub fn builder() -> crate::error::validation_error::Builder { - crate::error::validation_error::Builder::default() - } -} - -///

      The service is unavailable. Try your call again.

      -#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ServiceUnavailable { - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, -} -impl std::fmt::Debug for ServiceUnavailable { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ServiceUnavailable"); - formatter.field("message", &self.message); - formatter.finish() - } -} -impl ServiceUnavailable { - pub fn message(&self) -> Option<&str> { - self.message.as_deref() - } -} -impl std::fmt::Display for ServiceUnavailable { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ServiceUnavailable")?; - if let Some(inner_2) = &self.message { - write!(f, ": {}", inner_2)?; - } - Ok(()) - } -} -impl std::error::Error for ServiceUnavailable {} -/// See [`ServiceUnavailable`](crate::error::ServiceUnavailable) -pub mod service_unavailable { - /// A builder for [`ServiceUnavailable`](crate::error::ServiceUnavailable) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) message: std::option::Option, - } - impl Builder { - pub fn message(mut self, input: impl Into) -> Self { - self.message = Some(input.into()); - self - } - pub fn set_message(mut self, input: std::option::Option) -> Self { - self.message = input; - self - } - /// Consumes the builder and constructs a [`ServiceUnavailable`](crate::error::ServiceUnavailable) - pub fn build(self) -> crate::error::ServiceUnavailable { - crate::error::ServiceUnavailable { - message: self.message, - } - } - } -} -impl ServiceUnavailable { - /// Creates a new builder-style object to manufacture [`ServiceUnavailable`](crate::error::ServiceUnavailable) - pub fn builder() -> crate::error::service_unavailable::Builder { - crate::error::service_unavailable::Builder::default() - } -} - -///

      Model (owned by the customer in the container) returned 4xx or 5xx error code. -///

      -#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ModelError { - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, - ///

      Original status code.

      - #[serde(rename = "OriginalStatusCode")] - #[serde(default)] - pub original_status_code: std::option::Option, - ///

      Original message.

      - #[serde(rename = "OriginalMessage")] - #[serde(default)] - pub original_message: std::option::Option, - ///

      The Amazon Resource Name (ARN) of the log stream.

      - #[serde(rename = "LogStreamArn")] - #[serde(default)] - pub log_stream_arn: std::option::Option, -} -impl std::fmt::Debug for ModelError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModelError"); - formatter.field("message", &self.message); - formatter.field("original_status_code", &self.original_status_code); - formatter.field("original_message", &self.original_message); - formatter.field("log_stream_arn", &self.log_stream_arn); - formatter.finish() - } -} -impl ModelError { - pub fn message(&self) -> Option<&str> { - self.message.as_deref() - } -} -impl std::fmt::Display for ModelError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ModelError")?; - if let Some(inner_3) = &self.message { - write!(f, ": {}", inner_3)?; - } - Ok(()) - } -} -impl std::error::Error for ModelError {} -/// See [`ModelError`](crate::error::ModelError) -pub mod model_error { - /// A builder for [`ModelError`](crate::error::ModelError) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) message: std::option::Option, - pub(crate) original_status_code: std::option::Option, - pub(crate) original_message: std::option::Option, - pub(crate) log_stream_arn: std::option::Option, - } - impl Builder { - pub fn message(mut self, input: impl Into) -> Self { - self.message = Some(input.into()); - self - } - pub fn set_message(mut self, input: std::option::Option) -> Self { - self.message = input; - self - } - ///

      Original status code.

      - pub fn original_status_code(mut self, input: i32) -> Self { - self.original_status_code = Some(input); - self - } - pub fn set_original_status_code(mut self, input: std::option::Option) -> Self { - self.original_status_code = input; - self - } - ///

      Original message.

      - pub fn original_message(mut self, input: impl Into) -> Self { - self.original_message = Some(input.into()); - self - } - pub fn set_original_message( - mut self, - input: std::option::Option, - ) -> Self { - self.original_message = input; - self - } - ///

      The Amazon Resource Name (ARN) of the log stream.

      - pub fn log_stream_arn(mut self, input: impl Into) -> Self { - self.log_stream_arn = Some(input.into()); - self - } - pub fn set_log_stream_arn( - mut self, - input: std::option::Option, - ) -> Self { - self.log_stream_arn = input; - self - } - /// Consumes the builder and constructs a [`ModelError`](crate::error::ModelError) - pub fn build(self) -> crate::error::ModelError { - crate::error::ModelError { - message: self.message, - original_status_code: self.original_status_code, - original_message: self.original_message, - log_stream_arn: self.log_stream_arn, - } - } - } -} -impl ModelError { - /// Creates a new builder-style object to manufacture [`ModelError`](crate::error::ModelError) - pub fn builder() -> crate::error::model_error::Builder { - crate::error::model_error::Builder::default() - } -} - -///

      An internal failure occurred.

      -#[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalFailure { - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, -} -impl std::fmt::Debug for InternalFailure { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalFailure"); - formatter.field("message", &self.message); - formatter.finish() - } -} -impl InternalFailure { - pub fn message(&self) -> Option<&str> { - self.message.as_deref() - } -} -impl std::fmt::Display for InternalFailure { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalFailure")?; - if let Some(inner_4) = &self.message { - write!(f, ": {}", inner_4)?; - } - Ok(()) - } -} -impl std::error::Error for InternalFailure {} -/// See [`InternalFailure`](crate::error::InternalFailure) -pub mod internal_failure { - /// A builder for [`InternalFailure`](crate::error::InternalFailure) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) message: std::option::Option, - } - impl Builder { - pub fn message(mut self, input: impl Into) -> Self { - self.message = Some(input.into()); - self - } - pub fn set_message(mut self, input: std::option::Option) -> Self { - self.message = input; - self - } - /// Consumes the builder and constructs a [`InternalFailure`](crate::error::InternalFailure) - pub fn build(self) -> crate::error::InternalFailure { - crate::error::InternalFailure { - message: self.message, - } - } - } -} -impl InternalFailure { - /// Creates a new builder-style object to manufacture [`InternalFailure`](crate::error::InternalFailure) - pub fn builder() -> crate::error::internal_failure::Builder { - crate::error::internal_failure::Builder::default() - } -} diff --git a/sdk/sagemakerruntime/src/error_meta.rs b/sdk/sagemakerruntime/src/error_meta.rs deleted file mode 100644 index d778a0a081f5..000000000000 --- a/sdk/sagemakerruntime/src/error_meta.rs +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::fmt::Debug)] -pub enum Error { - InternalFailure(crate::error::InternalFailure), - ModelError(crate::error::ModelError), - ServiceUnavailable(crate::error::ServiceUnavailable), - ValidationError(crate::error::ValidationError), - Unhandled(Box), -} -impl std::fmt::Display for Error { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Error::InternalFailure(inner) => inner.fmt(f), - Error::ModelError(inner) => inner.fmt(f), - Error::ServiceUnavailable(inner) => inner.fmt(f), - Error::ValidationError(inner) => inner.fmt(f), - Error::Unhandled(inner) => inner.fmt(f), - } - } -} -impl From> for Error { - fn from(err: smithy_http::result::SdkError) -> Self { - match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::InvokeEndpointErrorKind::InternalFailure(inner) => { - Error::InternalFailure(inner) - } - crate::error::InvokeEndpointErrorKind::ModelError(inner) => { - Error::ModelError(inner) - } - crate::error::InvokeEndpointErrorKind::ServiceUnavailable(inner) => { - Error::ServiceUnavailable(inner) - } - crate::error::InvokeEndpointErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) - } - crate::error::InvokeEndpointErrorKind::Unhandled(inner) => Error::Unhandled(inner), - }, - _ => Error::Unhandled(err.into()), - } - } -} -impl std::error::Error for Error {} diff --git a/sdk/sagemakerruntime/src/http_serde.rs b/sdk/sagemakerruntime/src/http_serde.rs deleted file mode 100644 index 869538a7527d..000000000000 --- a/sdk/sagemakerruntime/src/http_serde.rs +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn deser_payload_invoke_endpoint_body( - body: &[u8], -) -> std::result::Result, crate::error::InvokeEndpointError> -{ - (!body.is_empty()) - .then(|| Ok(smithy_types::Blob::new(body))) - .transpose() -} - -pub fn deser_header_invoke_endpoint_content_type( - header_map: &http::HeaderMap, -) -> std::result::Result, smithy_http::header::ParseError> -{ - let headers = header_map.get_all("Content-Type").iter(); - smithy_http::header::one_or_none(headers) -} - -pub fn deser_header_invoke_endpoint_custom_attributes( - header_map: &http::HeaderMap, -) -> std::result::Result, smithy_http::header::ParseError> -{ - let headers = header_map - .get_all("X-Amzn-SageMaker-Custom-Attributes") - .iter(); - smithy_http::header::one_or_none(headers) -} - -pub fn deser_header_invoke_endpoint_invoked_production_variant( - header_map: &http::HeaderMap, -) -> std::result::Result, smithy_http::header::ParseError> -{ - let headers = header_map - .get_all("x-Amzn-Invoked-Production-Variant") - .iter(); - smithy_http::header::one_or_none(headers) -} diff --git a/sdk/sagemakerruntime/src/input.rs b/sdk/sagemakerruntime/src/input.rs deleted file mode 100644 index 2d6426b24ac9..000000000000 --- a/sdk/sagemakerruntime/src/input.rs +++ /dev/null @@ -1,456 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -use std::fmt::Write; -/// See [`InvokeEndpointInput`](crate::input::InvokeEndpointInput) -pub mod invoke_endpoint_input { - /// A builder for [`InvokeEndpointInput`](crate::input::InvokeEndpointInput) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) endpoint_name: std::option::Option, - pub(crate) body: std::option::Option, - pub(crate) content_type: std::option::Option, - pub(crate) accept: std::option::Option, - pub(crate) custom_attributes: std::option::Option, - pub(crate) target_model: std::option::Option, - pub(crate) target_variant: std::option::Option, - pub(crate) target_container_hostname: std::option::Option, - pub(crate) inference_id: std::option::Option, - } - impl Builder { - ///

      The name of the endpoint that you specified when you created the endpoint using the - /// CreateEndpoint API.

      - pub fn endpoint_name(mut self, input: impl Into) -> Self { - self.endpoint_name = Some(input.into()); - self - } - pub fn set_endpoint_name( - mut self, - input: std::option::Option, - ) -> Self { - self.endpoint_name = input; - self - } - ///

      Provides input data, in the format specified in the ContentType - /// request header. Amazon SageMaker passes all of the data in the body to the model.

      - ///

      For information about the format of the request body, see Common Data - /// Formats-Inference.

      - pub fn body(mut self, input: smithy_types::Blob) -> Self { - self.body = Some(input); - self - } - pub fn set_body(mut self, input: std::option::Option) -> Self { - self.body = input; - self - } - ///

      The MIME type of the input data in the request body.

      - pub fn content_type(mut self, input: impl Into) -> Self { - self.content_type = Some(input.into()); - self - } - pub fn set_content_type(mut self, input: std::option::Option) -> Self { - self.content_type = input; - self - } - ///

      The desired MIME type of the inference in the response.

      - pub fn accept(mut self, input: impl Into) -> Self { - self.accept = Some(input.into()); - self - } - pub fn set_accept(mut self, input: std::option::Option) -> Self { - self.accept = input; - self - } - ///

      Provides additional information about a request for an inference submitted to a model - /// hosted at an Amazon SageMaker endpoint. The information is an opaque value that is - /// forwarded verbatim. You could use this value, for example, to provide an ID that you can - /// use to track a request or to provide other metadata that a service endpoint was - /// programmed to process. The value must consist of no more than 1024 visible US-ASCII - /// characters as specified in Section 3.3.6. Field Value - /// Components of the Hypertext Transfer Protocol (HTTP/1.1).

      - ///

      The code in your model is responsible for setting or updating any custom attributes in - /// the response. If your code does not set this value in the response, an empty value is - /// returned. For example, if a custom attribute represents the trace ID, your model can - /// prepend the custom attribute with Trace ID: in your post-processing - /// function.

      - ///

      This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python - /// SDK.

      - pub fn custom_attributes(mut self, input: impl Into) -> Self { - self.custom_attributes = Some(input.into()); - self - } - pub fn set_custom_attributes( - mut self, - input: std::option::Option, - ) -> Self { - self.custom_attributes = input; - self - } - ///

      The model to request for inference when invoking a multi-model endpoint.

      - pub fn target_model(mut self, input: impl Into) -> Self { - self.target_model = Some(input.into()); - self - } - pub fn set_target_model(mut self, input: std::option::Option) -> Self { - self.target_model = input; - self - } - ///

      Specify the production variant to send the inference request to when invoking an - /// endpoint that is running two or more variants. Note that this parameter overrides the - /// default behavior for the endpoint, which is to distribute the invocation traffic based - /// on the variant weights.

      - ///

      For information about how to use variant targeting to perform a/b testing, see Test models in - /// production - ///

      - pub fn target_variant(mut self, input: impl Into) -> Self { - self.target_variant = Some(input.into()); - self - } - pub fn set_target_variant( - mut self, - input: std::option::Option, - ) -> Self { - self.target_variant = input; - self - } - ///

      If the endpoint hosts multiple containers and is configured to use direct invocation, - /// this parameter specifies the host name of the container to invoke.

      - pub fn target_container_hostname(mut self, input: impl Into) -> Self { - self.target_container_hostname = Some(input.into()); - self - } - pub fn set_target_container_hostname( - mut self, - input: std::option::Option, - ) -> Self { - self.target_container_hostname = input; - self - } - ///

      If you provide a value, it is added to the captured data when you enable data capture - /// on the endpoint. For information about data capture, see Capture - /// Data.

      - pub fn inference_id(mut self, input: impl Into) -> Self { - self.inference_id = Some(input.into()); - self - } - pub fn set_inference_id(mut self, input: std::option::Option) -> Self { - self.inference_id = input; - self - } - /// Consumes the builder and constructs a [`InvokeEndpointInput`](crate::input::InvokeEndpointInput) - pub fn build( - self, - ) -> std::result::Result< - crate::input::InvokeEndpointInput, - smithy_http::operation::BuildError, - > { - Ok(crate::input::InvokeEndpointInput { - endpoint_name: self.endpoint_name.unwrap_or_default(), - body: self.body, - content_type: self.content_type, - accept: self.accept, - custom_attributes: self.custom_attributes, - target_model: self.target_model, - target_variant: self.target_variant, - target_container_hostname: self.target_container_hostname, - inference_id: self.inference_id, - }) - } - } -} -#[doc(hidden)] -pub type InvokeEndpointInputOperationOutputAlias = crate::operation::InvokeEndpoint; -#[doc(hidden)] -pub type InvokeEndpointInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl InvokeEndpointInput { - /// Consumes the builder and constructs an Operation<[`InvokeEndpoint`](crate::operation::InvokeEndpoint)> - #[allow(clippy::let_and_return)] - pub fn make_operation( - self, - _config: &crate::config::Config, - ) -> std::result::Result< - smithy_http::operation::Operation< - crate::operation::InvokeEndpoint, - aws_http::AwsErrorRetryPolicy, - >, - smithy_http::operation::BuildError, - > { - Ok({ - let request = self.request_builder_base()?; - let body = crate::operation_ser::ser_payload_invoke_endpoint_input(self.body)?; - let request = Self::assemble(request, body); - #[allow(unused_mut)] - let mut request = - smithy_http::operation::Request::new(request.map(smithy_http::body::SdkBody::from)); - request - .config_mut() - .insert(aws_http::user_agent::AwsUserAgent::new_from_environment( - crate::API_METADATA.clone(), - )); - #[allow(unused_mut)] - let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config(); - request.config_mut().insert(signing_config); - request - .config_mut() - .insert(aws_types::SigningService::from_static( - _config.signing_service(), - )); - aws_endpoint::set_endpoint_resolver( - &mut request.config_mut(), - _config.endpoint_resolver.clone(), - ); - if let Some(region) = &_config.region { - request.config_mut().insert(region.clone()); - } - aws_auth::set_provider( - &mut request.config_mut(), - _config.credentials_provider.clone(), - ); - let op = smithy_http::operation::Operation::new( - request, - crate::operation::InvokeEndpoint::new(), - ) - .with_metadata(smithy_http::operation::Metadata::new( - "InvokeEndpoint", - "sagemakerruntime", - )); - let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new()); - op - }) - } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/endpoints/{EndpointName}/invocations", - EndpointName = smithy_http::label::fmt_string(&self.endpoint_name, false) - ) - .expect("formatting should succeed") - } - fn add_headers( - &self, - mut builder: http::request::Builder, - ) -> std::result::Result { - if let Some(inner_1) = &self.content_type { - let formatted_2 = AsRef::::as_ref(inner_1); - if !formatted_2.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_2; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "content_type", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = builder.header("Content-Type", header_value); - } - } - if let Some(inner_3) = &self.accept { - let formatted_4 = AsRef::::as_ref(inner_3); - if !formatted_4.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_4; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "accept", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = builder.header("Accept", header_value); - } - } - if let Some(inner_5) = &self.custom_attributes { - let formatted_6 = AsRef::::as_ref(inner_5); - if !formatted_6.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_6; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "custom_attributes", - details: format!( - "`{}` cannot be used as a header value: {}", - &"*** Sensitive Data Redacted ***", err - ), - } - })?; - builder = builder.header("X-Amzn-SageMaker-Custom-Attributes", header_value); - } - } - if let Some(inner_7) = &self.target_model { - let formatted_8 = AsRef::::as_ref(inner_7); - if !formatted_8.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_8; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "target_model", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = builder.header("X-Amzn-SageMaker-Target-Model", header_value); - } - } - if let Some(inner_9) = &self.target_variant { - let formatted_10 = AsRef::::as_ref(inner_9); - if !formatted_10.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_10; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "target_variant", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = builder.header("X-Amzn-SageMaker-Target-Variant", header_value); - } - } - if let Some(inner_11) = &self.target_container_hostname { - let formatted_12 = AsRef::::as_ref(inner_11); - if !formatted_12.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_12; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "target_container_hostname", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = - builder.header("X-Amzn-SageMaker-Target-Container-Hostname", header_value); - } - } - if let Some(inner_13) = &self.inference_id { - let formatted_14 = AsRef::::as_ref(inner_13); - if !formatted_14.is_empty() { - use std::convert::TryFrom; - let header_value = formatted_14; - let header_value = - http::header::HeaderValue::try_from(&*header_value).map_err(|err| { - smithy_http::operation::BuildError::InvalidField { - field: "inference_id", - details: format!( - "`{}` cannot be used as a header value: {}", - &header_value, err - ), - } - })?; - builder = builder.header("X-Amzn-SageMaker-Inference-Id", header_value); - } - } - Ok(builder) - } - #[allow(clippy::unnecessary_wraps)] - fn update_http_builder( - &self, - builder: http::request::Builder, - ) -> std::result::Result { - let mut uri = String::new(); - self.uri_base(&mut uri); - let builder = self.add_headers(builder)?; - Ok(builder.method("POST").uri(uri)) - } - #[allow(clippy::unnecessary_wraps)] - fn request_builder_base( - &self, - ) -> std::result::Result { - let builder = http::request::Builder::new(); - let builder = builder.header("Content-Type", "application/octet-stream"); - self.update_http_builder(builder) - } - fn assemble( - mut builder: http::request::Builder, - body: smithy_http::body::SdkBody, - ) -> http::request::Request { - if let Some(content_length) = body.content_length() { - builder = builder.header(http::header::CONTENT_LENGTH, content_length) - } - builder.body(body).expect("should be valid request") - } - /// Creates a new builder-style object to manufacture [`InvokeEndpointInput`](crate::input::InvokeEndpointInput) - pub fn builder() -> crate::input::invoke_endpoint_input::Builder { - crate::input::invoke_endpoint_input::Builder::default() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvokeEndpointInput { - ///

      The name of the endpoint that you specified when you created the endpoint using the - /// CreateEndpoint API.

      - pub endpoint_name: std::string::String, - ///

      Provides input data, in the format specified in the ContentType - /// request header. Amazon SageMaker passes all of the data in the body to the model.

      - ///

      For information about the format of the request body, see Common Data - /// Formats-Inference.

      - pub body: std::option::Option, - ///

      The MIME type of the input data in the request body.

      - pub content_type: std::option::Option, - ///

      The desired MIME type of the inference in the response.

      - pub accept: std::option::Option, - ///

      Provides additional information about a request for an inference submitted to a model - /// hosted at an Amazon SageMaker endpoint. The information is an opaque value that is - /// forwarded verbatim. You could use this value, for example, to provide an ID that you can - /// use to track a request or to provide other metadata that a service endpoint was - /// programmed to process. The value must consist of no more than 1024 visible US-ASCII - /// characters as specified in Section 3.3.6. Field Value - /// Components of the Hypertext Transfer Protocol (HTTP/1.1).

      - ///

      The code in your model is responsible for setting or updating any custom attributes in - /// the response. If your code does not set this value in the response, an empty value is - /// returned. For example, if a custom attribute represents the trace ID, your model can - /// prepend the custom attribute with Trace ID: in your post-processing - /// function.

      - ///

      This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python - /// SDK.

      - pub custom_attributes: std::option::Option, - ///

      The model to request for inference when invoking a multi-model endpoint.

      - pub target_model: std::option::Option, - ///

      Specify the production variant to send the inference request to when invoking an - /// endpoint that is running two or more variants. Note that this parameter overrides the - /// default behavior for the endpoint, which is to distribute the invocation traffic based - /// on the variant weights.

      - ///

      For information about how to use variant targeting to perform a/b testing, see Test models in - /// production - ///

      - pub target_variant: std::option::Option, - ///

      If the endpoint hosts multiple containers and is configured to use direct invocation, - /// this parameter specifies the host name of the container to invoke.

      - pub target_container_hostname: std::option::Option, - ///

      If you provide a value, it is added to the captured data when you enable data capture - /// on the endpoint. For information about data capture, see Capture - /// Data.

      - pub inference_id: std::option::Option, -} -impl std::fmt::Debug for InvokeEndpointInput { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvokeEndpointInput"); - formatter.field("endpoint_name", &self.endpoint_name); - formatter.field("body", &"*** Sensitive Data Redacted ***"); - formatter.field("content_type", &self.content_type); - formatter.field("accept", &self.accept); - formatter.field("custom_attributes", &"*** Sensitive Data Redacted ***"); - formatter.field("target_model", &self.target_model); - formatter.field("target_variant", &self.target_variant); - formatter.field("target_container_hostname", &self.target_container_hostname); - formatter.field("inference_id", &self.inference_id); - formatter.finish() - } -} diff --git a/sdk/sagemakerruntime/src/json_deser.rs b/sdk/sagemakerruntime/src/json_deser.rs deleted file mode 100644 index 84b0c406d6d8..000000000000 --- a/sdk/sagemakerruntime/src/json_deser.rs +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn parse_generic_error( - response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) -} - -pub fn internal_failure( - input: &[u8], - mut builder: crate::error::internal_failure::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InternalFailure = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - Ok(builder) -} - -pub fn model_error( - input: &[u8], - mut builder: crate::error::model_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ModelError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - builder = builder.set_original_status_code(parsed_body.original_status_code); - builder = builder.set_original_message(parsed_body.original_message); - builder = builder.set_log_stream_arn(parsed_body.log_stream_arn); - Ok(builder) -} - -pub fn service_unavailable( - input: &[u8], - mut builder: crate::error::service_unavailable::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ServiceUnavailable = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - Ok(builder) -} - -pub fn validation_error( - input: &[u8], - mut builder: crate::error::validation_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ValidationError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); - Ok(builder) -} diff --git a/sdk/sagemakerruntime/src/operation.rs b/sdk/sagemakerruntime/src/operation.rs deleted file mode 100644 index 18953b3b4530..000000000000 --- a/sdk/sagemakerruntime/src/operation.rs +++ /dev/null @@ -1,45 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

      After you deploy a model into production using Amazon SageMaker hosting services, your -/// client applications use this API to get inferences from the model hosted at the -/// specified endpoint.

      -///

      For an overview of Amazon SageMaker, see How It Works.

      -///

      Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add -/// additional headers. You should not rely on the behavior of headers outside those -/// enumerated in the request syntax.

      -///

      Calls to InvokeEndpoint are authenticated by using AWS Signature Version -/// 4. For information, see Authenticating -/// Requests (AWS Signature Version 4) in the Amazon S3 API -/// Reference.

      -///

      A customer's model containers must respond to requests within 60 seconds. The model -/// itself can have a maximum processing time of 60 seconds before responding to -/// invocations. If your model is going to take 50-60 seconds of processing time, the SDK -/// socket timeout should be set to be 70 seconds.

      -/// -///

      Endpoints are scoped to an individual account, and are not public. The URL does -/// not contain the account ID, but Amazon SageMaker determines the account ID from the -/// authentication token that is supplied by the caller.

      -///
      -#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)] -pub struct InvokeEndpoint { - _private: (), -} -impl InvokeEndpoint { - /// Creates a new builder-style object to manufacture [`InvokeEndpointInput`](crate::input::InvokeEndpointInput) - pub fn builder() -> crate::input::invoke_endpoint_input::Builder { - crate::input::invoke_endpoint_input::Builder::default() - } - pub fn new() -> Self { - Self { _private: () } - } -} -impl smithy_http::response::ParseStrictResponse for InvokeEndpoint { - type Output = - std::result::Result; - fn parse(&self, response: &http::Response) -> Self::Output { - if !response.status().is_success() && response.status().as_u16() != 200 { - crate::operation_deser::parse_invoke_endpoint_error(response) - } else { - crate::operation_deser::parse_invoke_endpoint_response(response) - } - } -} diff --git a/sdk/sagemakerruntime/src/operation_deser.rs b/sdk/sagemakerruntime/src/operation_deser.rs deleted file mode 100644 index 0c1c7b1b5b85..000000000000 --- a/sdk/sagemakerruntime/src/operation_deser.rs +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[allow(clippy::unnecessary_wraps)] -pub fn parse_invoke_endpoint_error( - response: &http::Response, -) -> std::result::Result { - let generic = crate::json_deser::parse_generic_error(&response) - .map_err(crate::error::InvokeEndpointError::unhandled)?; - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::InvokeEndpointError::unhandled(generic)), - }; - Err(match error_code { - "InternalFailure" => crate::error::InvokeEndpointError { - meta: generic, - kind: crate::error::InvokeEndpointErrorKind::InternalFailure({ - #[allow(unused_mut)] - let mut output = crate::error::internal_failure::Builder::default(); - let _ = response; - output = crate::json_deser::internal_failure(response.body().as_ref(), output) - .map_err(crate::error::InvokeEndpointError::unhandled)?; - output.build() - }), - }, - "ModelError" => crate::error::InvokeEndpointError { - meta: generic, - kind: crate::error::InvokeEndpointErrorKind::ModelError({ - #[allow(unused_mut)] - let mut output = crate::error::model_error::Builder::default(); - let _ = response; - output = crate::json_deser::model_error(response.body().as_ref(), output) - .map_err(crate::error::InvokeEndpointError::unhandled)?; - output.build() - }), - }, - "ServiceUnavailable" => crate::error::InvokeEndpointError { - meta: generic, - kind: crate::error::InvokeEndpointErrorKind::ServiceUnavailable({ - #[allow(unused_mut)] - let mut output = crate::error::service_unavailable::Builder::default(); - let _ = response; - output = crate::json_deser::service_unavailable(response.body().as_ref(), output) - .map_err(crate::error::InvokeEndpointError::unhandled)?; - output.build() - }), - }, - "ValidationError" => crate::error::InvokeEndpointError { - meta: generic, - kind: crate::error::InvokeEndpointErrorKind::ValidationError({ - #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); - let _ = response; - output = crate::json_deser::validation_error(response.body().as_ref(), output) - .map_err(crate::error::InvokeEndpointError::unhandled)?; - output.build() - }), - }, - _ => crate::error::InvokeEndpointError::generic(generic), - }) -} - -#[allow(clippy::unnecessary_wraps)] -pub fn parse_invoke_endpoint_response( - response: &http::Response, -) -> std::result::Result { - Ok({ - #[allow(unused_mut)] - let mut output = crate::output::invoke_endpoint_output::Builder::default(); - let _ = response; - output = output.set_body(crate::http_serde::deser_payload_invoke_endpoint_body( - response.body().as_ref(), - )?); - output = output.set_content_type( - crate::http_serde::deser_header_invoke_endpoint_content_type(response.headers()) - .map_err(|_| { - crate::error::InvokeEndpointError::unhandled( - "Failed to parse ContentType from header `Content-Type", - ) - })?, - ); - output = output.set_custom_attributes( - crate::http_serde::deser_header_invoke_endpoint_custom_attributes(response.headers()) - .map_err(|_|crate::error::InvokeEndpointError::unhandled("Failed to parse CustomAttributes from header `X-Amzn-SageMaker-Custom-Attributes"))? - ); - output = output.set_invoked_production_variant( - crate::http_serde::deser_header_invoke_endpoint_invoked_production_variant(response.headers()) - .map_err(|_|crate::error::InvokeEndpointError::unhandled("Failed to parse InvokedProductionVariant from header `x-Amzn-Invoked-Production-Variant"))? - ); - output.build() - }) -} diff --git a/sdk/sagemakerruntime/src/operation_ser.rs b/sdk/sagemakerruntime/src/operation_ser.rs deleted file mode 100644 index 346b0073fb0e..000000000000 --- a/sdk/sagemakerruntime/src/operation_ser.rs +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn ser_payload_invoke_endpoint_input( - payload: std::option::Option, -) -> std::result::Result { - let payload = match payload { - Some(t) => t, - None => return Ok(smithy_http::body::SdkBody::from("")), - }; - #[allow(clippy::useless_conversion)] - Ok(smithy_http::body::SdkBody::from(payload.into_inner())) -} diff --git a/sdk/sagemakerruntime/src/output.rs b/sdk/sagemakerruntime/src/output.rs deleted file mode 100644 index 9f68818673c1..000000000000 --- a/sdk/sagemakerruntime/src/output.rs +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvokeEndpointOutput { - ///

      Includes the inference provided by the model.

      - ///

      For information about the format of the response body, see Common Data - /// Formats-Inference.

      - pub body: std::option::Option, - ///

      The MIME type of the inference returned in the response body.

      - pub content_type: std::option::Option, - ///

      Identifies the production variant that was invoked.

      - pub invoked_production_variant: std::option::Option, - ///

      Provides additional information in the response about the inference returned by a - /// model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is - /// forwarded verbatim. You could use this value, for example, to return an ID received in - /// the CustomAttributes header of a request or other metadata that a service - /// endpoint was programmed to produce. The value must consist of no more than 1024 visible - /// US-ASCII characters as specified in Section 3.3.6. Field Value - /// Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer - /// wants the custom attribute returned, the model must set the custom attribute to be - /// included on the way back.

      - ///

      The code in your model is responsible for setting or updating any custom attributes in - /// the response. If your code does not set this value in the response, an empty value is - /// returned. For example, if a custom attribute represents the trace ID, your model can - /// prepend the custom attribute with Trace ID: in your post-processing - /// function.

      - ///

      This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python - /// SDK.

      - pub custom_attributes: std::option::Option, -} -impl std::fmt::Debug for InvokeEndpointOutput { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvokeEndpointOutput"); - formatter.field("body", &"*** Sensitive Data Redacted ***"); - formatter.field("content_type", &self.content_type); - formatter.field( - "invoked_production_variant", - &self.invoked_production_variant, - ); - formatter.field("custom_attributes", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} -/// See [`InvokeEndpointOutput`](crate::output::InvokeEndpointOutput) -pub mod invoke_endpoint_output { - /// A builder for [`InvokeEndpointOutput`](crate::output::InvokeEndpointOutput) - #[non_exhaustive] - #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] - pub struct Builder { - pub(crate) body: std::option::Option, - pub(crate) content_type: std::option::Option, - pub(crate) invoked_production_variant: std::option::Option, - pub(crate) custom_attributes: std::option::Option, - } - impl Builder { - ///

      Includes the inference provided by the model.

      - ///

      For information about the format of the response body, see Common Data - /// Formats-Inference.

      - pub fn body(mut self, input: smithy_types::Blob) -> Self { - self.body = Some(input); - self - } - pub fn set_body(mut self, input: std::option::Option) -> Self { - self.body = input; - self - } - ///

      The MIME type of the inference returned in the response body.

      - pub fn content_type(mut self, input: impl Into) -> Self { - self.content_type = Some(input.into()); - self - } - pub fn set_content_type(mut self, input: std::option::Option) -> Self { - self.content_type = input; - self - } - ///

      Identifies the production variant that was invoked.

      - pub fn invoked_production_variant(mut self, input: impl Into) -> Self { - self.invoked_production_variant = Some(input.into()); - self - } - pub fn set_invoked_production_variant( - mut self, - input: std::option::Option, - ) -> Self { - self.invoked_production_variant = input; - self - } - ///

      Provides additional information in the response about the inference returned by a - /// model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is - /// forwarded verbatim. You could use this value, for example, to return an ID received in - /// the CustomAttributes header of a request or other metadata that a service - /// endpoint was programmed to produce. The value must consist of no more than 1024 visible - /// US-ASCII characters as specified in Section 3.3.6. Field Value - /// Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer - /// wants the custom attribute returned, the model must set the custom attribute to be - /// included on the way back.

      - ///

      The code in your model is responsible for setting or updating any custom attributes in - /// the response. If your code does not set this value in the response, an empty value is - /// returned. For example, if a custom attribute represents the trace ID, your model can - /// prepend the custom attribute with Trace ID: in your post-processing - /// function.

      - ///

      This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python - /// SDK.

      - pub fn custom_attributes(mut self, input: impl Into) -> Self { - self.custom_attributes = Some(input.into()); - self - } - pub fn set_custom_attributes( - mut self, - input: std::option::Option, - ) -> Self { - self.custom_attributes = input; - self - } - /// Consumes the builder and constructs a [`InvokeEndpointOutput`](crate::output::InvokeEndpointOutput) - pub fn build(self) -> crate::output::InvokeEndpointOutput { - crate::output::InvokeEndpointOutput { - body: self.body, - content_type: self.content_type, - invoked_production_variant: self.invoked_production_variant, - custom_attributes: self.custom_attributes, - } - } - } -} -impl InvokeEndpointOutput { - /// Creates a new builder-style object to manufacture [`InvokeEndpointOutput`](crate::output::InvokeEndpointOutput) - pub fn builder() -> crate::output::invoke_endpoint_output::Builder { - crate::output::invoke_endpoint_output::Builder::default() - } -} diff --git a/sdk/secretsmanager/Cargo.toml b/sdk/secretsmanager/Cargo.toml index 1be912cf5b80..531d30623525 100644 --- a/sdk/secretsmanager/Cargo.toml +++ b/sdk/secretsmanager/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-secretsmanager" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Secrets Manager API Reference\n

      AWS Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

      \n\n

      This guide provides descriptions of the Secrets Manager API. For more information about using this\n service, see the AWS Secrets Manager User Guide.

      \n\n

      \n API Version\n

      \n\n

      This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

      \n \n

      As an alternative to using the API, you can use one of the AWS SDKs, which consist of\n libraries and sample code for various programming languages and platforms such as Java,\n Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic\n access to AWS Secrets Manager. For example, the SDKs provide cryptographically signing requests,\n managing errors, and retrying requests automatically. For more information about the AWS\n SDKs, including downloading and installing them, see Tools for Amazon Web Services.

      \n
      \n

      We recommend you use the AWS SDKs to make programmatic API calls to Secrets Manager. However, you\n also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn\n more about the Secrets Manager HTTP Query API, see Making Query Requests in the\n AWS Secrets Manager User Guide.

      \n

      Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use\n GET for some actions and POST for others. However, GET requests are subject to the limitation\n size of a URL. Therefore, for operations that require larger sizes, use a POST request.

      \n\n \n\n \n \n \n\n

      \n Support and Feedback for AWS Secrets Manager\n

      \n\n

      We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the AWS Secrets Manager Discussion Forum. For more\n information about the AWS Discussion Forums, see Forums\n Help.

      \n\n

      \n How examples are presented\n

      \n\n

      The JSON that AWS Secrets Manager expects as your request parameters and the service returns as a\n response to HTTP query requests contain single, long strings without line breaks or white\n space formatting. The JSON shown in the examples displays the code formatted with both line\n breaks and white space to improve readability. When example input parameters can also cause\n long strings extending beyond the screen, you can insert line breaks to enhance readability.\n You should always submit the input as a single JSON text string.

      \n\n\n

      \n Logging API Requests\n

      \n

      AWS Secrets Manager supports AWS CloudTrail, a service that records AWS API calls for your AWS\n account and delivers log files to an Amazon S3 bucket. By using information that's collected\n by AWS CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the\n request, when it was made, and so on. For more about AWS Secrets Manager and support for AWS\n CloudTrail, see Logging\n AWS Secrets Manager Events with AWS CloudTrail in the AWS Secrets Manager User Guide.\n To learn more about CloudTrail, including enabling it and find your log files, see the AWS CloudTrail User Guide.

      " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -22,22 +22,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/secretsmanager/src/aws_json_errors.rs b/sdk/secretsmanager/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/secretsmanager/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/secretsmanager/src/blob_serde.rs b/sdk/secretsmanager/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/secretsmanager/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/secretsmanager/src/error.rs b/sdk/secretsmanager/src/error.rs index 199b1dcb90ae..f52e6d10f663 100644 --- a/sdk/secretsmanager/src/error.rs +++ b/sdk/secretsmanager/src/error.rs @@ -9,9 +9,9 @@ pub struct CancelRotateSecretError { #[derive(std::fmt::Debug)] pub enum CancelRotateSecretErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -19,9 +19,9 @@ impl std::fmt::Display for CancelRotateSecretError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CancelRotateSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - CancelRotateSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CancelRotateSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - CancelRotateSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + CancelRotateSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CancelRotateSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + CancelRotateSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), CancelRotateSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -76,22 +76,22 @@ impl CancelRotateSecretError { CancelRotateSecretErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CancelRotateSecretErrorKind::InvalidParameterError(_) + CancelRotateSecretErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - CancelRotateSecretErrorKind::InvalidRequestError(_) + CancelRotateSecretErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - CancelRotateSecretErrorKind::ResourceNotFoundError(_) + CancelRotateSecretErrorKind::ResourceNotFoundException(_) ) } } @@ -99,9 +99,9 @@ impl std::error::Error for CancelRotateSecretError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CancelRotateSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - CancelRotateSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - CancelRotateSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - CancelRotateSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + CancelRotateSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + CancelRotateSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + CancelRotateSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), CancelRotateSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -118,13 +118,13 @@ pub struct CreateSecretError { pub enum CreateSecretErrorKind { EncryptionFailure(crate::error::EncryptionFailure), InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PreconditionNotMetError(crate::error::PreconditionNotMetError), - ResourceExistsError(crate::error::ResourceExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PreconditionNotMetException(crate::error::PreconditionNotMetException), + ResourceExistsException(crate::error::ResourceExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -133,13 +133,13 @@ impl std::fmt::Display for CreateSecretError { match &self.kind { CreateSecretErrorKind::EncryptionFailure(_inner) => _inner.fmt(f), CreateSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::PreconditionNotMetError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::ResourceExistsError(_inner) => _inner.fmt(f), - CreateSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + CreateSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::PreconditionNotMetException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::ResourceExistsException(_inner) => _inner.fmt(f), + CreateSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), CreateSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -194,32 +194,44 @@ impl CreateSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, CreateSecretErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateSecretErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateSecretErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, CreateSecretErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateSecretErrorKind::InvalidRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateSecretErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, CreateSecretErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - CreateSecretErrorKind::MalformedPolicyDocumentError(_) + CreateSecretErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_precondition_not_met_error(&self) -> bool { + pub fn is_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - CreateSecretErrorKind::PreconditionNotMetError(_) + CreateSecretErrorKind::PreconditionNotMetException(_) ) } - pub fn is_resource_exists_error(&self) -> bool { - matches!(&self.kind, CreateSecretErrorKind::ResourceExistsError(_)) + pub fn is_resource_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateSecretErrorKind::ResourceExistsException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, CreateSecretErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateSecretErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for CreateSecretError { @@ -227,13 +239,13 @@ impl std::error::Error for CreateSecretError { match &self.kind { CreateSecretErrorKind::EncryptionFailure(_inner) => Some(_inner), CreateSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - CreateSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - CreateSecretErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateSecretErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - CreateSecretErrorKind::PreconditionNotMetError(_inner) => Some(_inner), - CreateSecretErrorKind::ResourceExistsError(_inner) => Some(_inner), - CreateSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + CreateSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + CreateSecretErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateSecretErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + CreateSecretErrorKind::PreconditionNotMetException(_inner) => Some(_inner), + CreateSecretErrorKind::ResourceExistsException(_inner) => Some(_inner), + CreateSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), CreateSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -249,9 +261,9 @@ pub struct DeleteResourcePolicyError { #[derive(std::fmt::Debug)] pub enum DeleteResourcePolicyErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -259,9 +271,9 @@ impl std::fmt::Display for DeleteResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteResourcePolicyErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - DeleteResourcePolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteResourcePolicyErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DeleteResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -316,22 +328,22 @@ impl DeleteResourcePolicyError { DeleteResourcePolicyErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::InvalidParameterError(_) + DeleteResourcePolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::InvalidRequestError(_) + DeleteResourcePolicyErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_) + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_) ) } } @@ -339,9 +351,9 @@ impl std::error::Error for DeleteResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteResourcePolicyErrorKind::InternalServiceError(_inner) => Some(_inner), - DeleteResourcePolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteResourcePolicyErrorKind::InvalidRequestError(_inner) => Some(_inner), - DeleteResourcePolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::InvalidRequestException(_inner) => Some(_inner), + DeleteResourcePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DeleteResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -357,9 +369,9 @@ pub struct DeleteSecretError { #[derive(std::fmt::Debug)] pub enum DeleteSecretErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -367,9 +379,9 @@ impl std::fmt::Display for DeleteSecretError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - DeleteSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - DeleteSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DeleteSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + DeleteSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DeleteSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -421,23 +433,32 @@ impl DeleteSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, DeleteSecretErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteSecretErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteSecretErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, DeleteSecretErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteSecretErrorKind::InvalidRequestException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteSecretErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteSecretErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for DeleteSecretError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - DeleteSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - DeleteSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DeleteSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + DeleteSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DeleteSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -453,7 +474,7 @@ pub struct DescribeSecretError { #[derive(std::fmt::Debug)] pub enum DescribeSecretErrorKind { InternalServiceError(crate::error::InternalServiceError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -461,7 +482,7 @@ impl std::fmt::Display for DescribeSecretError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - DescribeSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + DescribeSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), DescribeSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -513,10 +534,10 @@ impl DescribeSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, DescribeSecretErrorKind::InternalServiceError(_)) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeSecretErrorKind::ResourceNotFoundError(_) + DescribeSecretErrorKind::ResourceNotFoundException(_) ) } } @@ -524,7 +545,7 @@ impl std::error::Error for DescribeSecretError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - DescribeSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + DescribeSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), DescribeSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -540,8 +561,8 @@ pub struct GetRandomPasswordError { #[derive(std::fmt::Debug)] pub enum GetRandomPasswordErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -549,8 +570,8 @@ impl std::fmt::Display for GetRandomPasswordError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetRandomPasswordErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - GetRandomPasswordErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetRandomPasswordErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), + GetRandomPasswordErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetRandomPasswordErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), GetRandomPasswordErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -605,16 +626,16 @@ impl GetRandomPasswordError { GetRandomPasswordErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetRandomPasswordErrorKind::InvalidParameterError(_) + GetRandomPasswordErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - GetRandomPasswordErrorKind::InvalidRequestError(_) + GetRandomPasswordErrorKind::InvalidRequestException(_) ) } } @@ -622,8 +643,8 @@ impl std::error::Error for GetRandomPasswordError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetRandomPasswordErrorKind::InternalServiceError(_inner) => Some(_inner), - GetRandomPasswordErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetRandomPasswordErrorKind::InvalidRequestError(_inner) => Some(_inner), + GetRandomPasswordErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetRandomPasswordErrorKind::InvalidRequestException(_inner) => Some(_inner), GetRandomPasswordErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -639,8 +660,8 @@ pub struct GetResourcePolicyError { #[derive(std::fmt::Debug)] pub enum GetResourcePolicyErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -648,8 +669,8 @@ impl std::fmt::Display for GetResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetResourcePolicyErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - GetResourcePolicyErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - GetResourcePolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + GetResourcePolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + GetResourcePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), GetResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -704,16 +725,16 @@ impl GetResourcePolicyError { GetResourcePolicyErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - GetResourcePolicyErrorKind::InvalidRequestError(_) + GetResourcePolicyErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetResourcePolicyErrorKind::ResourceNotFoundError(_) + GetResourcePolicyErrorKind::ResourceNotFoundException(_) ) } } @@ -721,8 +742,8 @@ impl std::error::Error for GetResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetResourcePolicyErrorKind::InternalServiceError(_inner) => Some(_inner), - GetResourcePolicyErrorKind::InvalidRequestError(_inner) => Some(_inner), - GetResourcePolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + GetResourcePolicyErrorKind::InvalidRequestException(_inner) => Some(_inner), + GetResourcePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), GetResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -739,9 +760,9 @@ pub struct GetSecretValueError { pub enum GetSecretValueErrorKind { DecryptionFailure(crate::error::DecryptionFailure), InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -750,9 +771,9 @@ impl std::fmt::Display for GetSecretValueError { match &self.kind { GetSecretValueErrorKind::DecryptionFailure(_inner) => _inner.fmt(f), GetSecretValueErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - GetSecretValueErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetSecretValueErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - GetSecretValueErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + GetSecretValueErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetSecretValueErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + GetSecretValueErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), GetSecretValueErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -807,19 +828,22 @@ impl GetSecretValueError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, GetSecretValueErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetSecretValueErrorKind::InvalidParameterError(_) + GetSecretValueErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, GetSecretValueErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + GetSecretValueErrorKind::InvalidRequestException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - GetSecretValueErrorKind::ResourceNotFoundError(_) + GetSecretValueErrorKind::ResourceNotFoundException(_) ) } } @@ -828,9 +852,9 @@ impl std::error::Error for GetSecretValueError { match &self.kind { GetSecretValueErrorKind::DecryptionFailure(_inner) => Some(_inner), GetSecretValueErrorKind::InternalServiceError(_inner) => Some(_inner), - GetSecretValueErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetSecretValueErrorKind::InvalidRequestError(_inner) => Some(_inner), - GetSecretValueErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + GetSecretValueErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetSecretValueErrorKind::InvalidRequestException(_inner) => Some(_inner), + GetSecretValueErrorKind::ResourceNotFoundException(_inner) => Some(_inner), GetSecretValueErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -846,8 +870,8 @@ pub struct ListSecretsError { #[derive(std::fmt::Debug)] pub enum ListSecretsErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - InvalidParameterError(crate::error::InvalidParameterError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -855,8 +879,8 @@ impl std::fmt::Display for ListSecretsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListSecretsErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - ListSecretsErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - ListSecretsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + ListSecretsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + ListSecretsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), ListSecretsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -908,19 +932,25 @@ impl ListSecretsError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, ListSecretsErrorKind::InternalServiceError(_)) } - pub fn is_invalid_next_token_error(&self) -> bool { - matches!(&self.kind, ListSecretsErrorKind::InvalidNextTokenError(_)) + pub fn is_invalid_next_token_exception(&self) -> bool { + matches!( + &self.kind, + ListSecretsErrorKind::InvalidNextTokenException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, ListSecretsErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListSecretsErrorKind::InvalidParameterException(_) + ) } } impl std::error::Error for ListSecretsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListSecretsErrorKind::InternalServiceError(_inner) => Some(_inner), - ListSecretsErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - ListSecretsErrorKind::InvalidParameterError(_inner) => Some(_inner), + ListSecretsErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + ListSecretsErrorKind::InvalidParameterException(_inner) => Some(_inner), ListSecretsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -936,8 +966,8 @@ pub struct ListSecretVersionIdsError { #[derive(std::fmt::Debug)] pub enum ListSecretVersionIdsErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -945,8 +975,8 @@ impl std::fmt::Display for ListSecretVersionIdsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListSecretVersionIdsErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - ListSecretVersionIdsErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - ListSecretVersionIdsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ListSecretVersionIdsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + ListSecretVersionIdsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ListSecretVersionIdsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1001,16 +1031,16 @@ impl ListSecretVersionIdsError { ListSecretVersionIdsErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_next_token_error(&self) -> bool { + pub fn is_invalid_next_token_exception(&self) -> bool { matches!( &self.kind, - ListSecretVersionIdsErrorKind::InvalidNextTokenError(_) + ListSecretVersionIdsErrorKind::InvalidNextTokenException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListSecretVersionIdsErrorKind::ResourceNotFoundError(_) + ListSecretVersionIdsErrorKind::ResourceNotFoundException(_) ) } } @@ -1018,8 +1048,8 @@ impl std::error::Error for ListSecretVersionIdsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListSecretVersionIdsErrorKind::InternalServiceError(_inner) => Some(_inner), - ListSecretVersionIdsErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - ListSecretVersionIdsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ListSecretVersionIdsErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + ListSecretVersionIdsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ListSecretVersionIdsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1035,11 +1065,11 @@ pub struct PutResourcePolicyError { #[derive(std::fmt::Debug)] pub enum PutResourcePolicyErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PublicPolicyError(crate::error::PublicPolicyError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PublicPolicyException(crate::error::PublicPolicyException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1047,11 +1077,11 @@ impl std::fmt::Display for PutResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { PutResourcePolicyErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::PublicPolicyError(_inner) => _inner.fmt(f), - PutResourcePolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::PublicPolicyException(_inner) => _inner.fmt(f), + PutResourcePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), PutResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1106,31 +1136,34 @@ impl PutResourcePolicyError { PutResourcePolicyErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::InvalidParameterError(_) + PutResourcePolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::InvalidRequestError(_) + PutResourcePolicyErrorKind::InvalidRequestException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::MalformedPolicyDocumentError(_) + PutResourcePolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_public_policy_error(&self) -> bool { - matches!(&self.kind, PutResourcePolicyErrorKind::PublicPolicyError(_)) + pub fn is_public_policy_exception(&self) -> bool { + matches!( + &self.kind, + PutResourcePolicyErrorKind::PublicPolicyException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutResourcePolicyErrorKind::ResourceNotFoundError(_) + PutResourcePolicyErrorKind::ResourceNotFoundException(_) ) } } @@ -1138,11 +1171,11 @@ impl std::error::Error for PutResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { PutResourcePolicyErrorKind::InternalServiceError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::InvalidRequestError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::PublicPolicyError(_inner) => Some(_inner), - PutResourcePolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + PutResourcePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::InvalidRequestException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::PublicPolicyException(_inner) => Some(_inner), + PutResourcePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), PutResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1159,11 +1192,11 @@ pub struct PutSecretValueError { pub enum PutSecretValueErrorKind { EncryptionFailure(crate::error::EncryptionFailure), InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - LimitExceededError(crate::error::LimitExceededError), - ResourceExistsError(crate::error::ResourceExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + LimitExceededException(crate::error::LimitExceededException), + ResourceExistsException(crate::error::ResourceExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1172,11 +1205,11 @@ impl std::fmt::Display for PutSecretValueError { match &self.kind { PutSecretValueErrorKind::EncryptionFailure(_inner) => _inner.fmt(f), PutSecretValueErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - PutSecretValueErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PutSecretValueErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - PutSecretValueErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutSecretValueErrorKind::ResourceExistsError(_inner) => _inner.fmt(f), - PutSecretValueErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + PutSecretValueErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PutSecretValueErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + PutSecretValueErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + PutSecretValueErrorKind::ResourceExistsException(_inner) => _inner.fmt(f), + PutSecretValueErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), PutSecretValueErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1231,25 +1264,34 @@ impl PutSecretValueError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, PutSecretValueErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - PutSecretValueErrorKind::InvalidParameterError(_) + PutSecretValueErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, PutSecretValueErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + PutSecretValueErrorKind::InvalidRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, PutSecretValueErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + PutSecretValueErrorKind::LimitExceededException(_) + ) } - pub fn is_resource_exists_error(&self) -> bool { - matches!(&self.kind, PutSecretValueErrorKind::ResourceExistsError(_)) + pub fn is_resource_exists_exception(&self) -> bool { + matches!( + &self.kind, + PutSecretValueErrorKind::ResourceExistsException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - PutSecretValueErrorKind::ResourceNotFoundError(_) + PutSecretValueErrorKind::ResourceNotFoundException(_) ) } } @@ -1258,11 +1300,11 @@ impl std::error::Error for PutSecretValueError { match &self.kind { PutSecretValueErrorKind::EncryptionFailure(_inner) => Some(_inner), PutSecretValueErrorKind::InternalServiceError(_inner) => Some(_inner), - PutSecretValueErrorKind::InvalidParameterError(_inner) => Some(_inner), - PutSecretValueErrorKind::InvalidRequestError(_inner) => Some(_inner), - PutSecretValueErrorKind::LimitExceededError(_inner) => Some(_inner), - PutSecretValueErrorKind::ResourceExistsError(_inner) => Some(_inner), - PutSecretValueErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + PutSecretValueErrorKind::InvalidParameterException(_inner) => Some(_inner), + PutSecretValueErrorKind::InvalidRequestException(_inner) => Some(_inner), + PutSecretValueErrorKind::LimitExceededException(_inner) => Some(_inner), + PutSecretValueErrorKind::ResourceExistsException(_inner) => Some(_inner), + PutSecretValueErrorKind::ResourceNotFoundException(_inner) => Some(_inner), PutSecretValueErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1278,9 +1320,9 @@ pub struct RemoveRegionsFromReplicationError { #[derive(std::fmt::Debug)] pub enum RemoveRegionsFromReplicationErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1288,9 +1330,13 @@ impl std::fmt::Display for RemoveRegionsFromReplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { RemoveRegionsFromReplicationErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - RemoveRegionsFromReplicationErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RemoveRegionsFromReplicationErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - RemoveRegionsFromReplicationErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + RemoveRegionsFromReplicationErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + RemoveRegionsFromReplicationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + RemoveRegionsFromReplicationErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } RemoveRegionsFromReplicationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1345,22 +1391,22 @@ impl RemoveRegionsFromReplicationError { RemoveRegionsFromReplicationErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - RemoveRegionsFromReplicationErrorKind::InvalidParameterError(_) + RemoveRegionsFromReplicationErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - RemoveRegionsFromReplicationErrorKind::InvalidRequestError(_) + RemoveRegionsFromReplicationErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - RemoveRegionsFromReplicationErrorKind::ResourceNotFoundError(_) + RemoveRegionsFromReplicationErrorKind::ResourceNotFoundException(_) ) } } @@ -1368,9 +1414,13 @@ impl std::error::Error for RemoveRegionsFromReplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { RemoveRegionsFromReplicationErrorKind::InternalServiceError(_inner) => Some(_inner), - RemoveRegionsFromReplicationErrorKind::InvalidParameterError(_inner) => Some(_inner), - RemoveRegionsFromReplicationErrorKind::InvalidRequestError(_inner) => Some(_inner), - RemoveRegionsFromReplicationErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + RemoveRegionsFromReplicationErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + RemoveRegionsFromReplicationErrorKind::InvalidRequestException(_inner) => Some(_inner), + RemoveRegionsFromReplicationErrorKind::ResourceNotFoundException(_inner) => { + Some(_inner) + } RemoveRegionsFromReplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1386,9 +1436,9 @@ pub struct ReplicateSecretToRegionsError { #[derive(std::fmt::Debug)] pub enum ReplicateSecretToRegionsErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1396,9 +1446,9 @@ impl std::fmt::Display for ReplicateSecretToRegionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ReplicateSecretToRegionsErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - ReplicateSecretToRegionsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ReplicateSecretToRegionsErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - ReplicateSecretToRegionsErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ReplicateSecretToRegionsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ReplicateSecretToRegionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + ReplicateSecretToRegionsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ReplicateSecretToRegionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1453,22 +1503,22 @@ impl ReplicateSecretToRegionsError { ReplicateSecretToRegionsErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ReplicateSecretToRegionsErrorKind::InvalidParameterError(_) + ReplicateSecretToRegionsErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - ReplicateSecretToRegionsErrorKind::InvalidRequestError(_) + ReplicateSecretToRegionsErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ReplicateSecretToRegionsErrorKind::ResourceNotFoundError(_) + ReplicateSecretToRegionsErrorKind::ResourceNotFoundException(_) ) } } @@ -1476,9 +1526,9 @@ impl std::error::Error for ReplicateSecretToRegionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ReplicateSecretToRegionsErrorKind::InternalServiceError(_inner) => Some(_inner), - ReplicateSecretToRegionsErrorKind::InvalidParameterError(_inner) => Some(_inner), - ReplicateSecretToRegionsErrorKind::InvalidRequestError(_inner) => Some(_inner), - ReplicateSecretToRegionsErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ReplicateSecretToRegionsErrorKind::InvalidParameterException(_inner) => Some(_inner), + ReplicateSecretToRegionsErrorKind::InvalidRequestException(_inner) => Some(_inner), + ReplicateSecretToRegionsErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ReplicateSecretToRegionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1494,9 +1544,9 @@ pub struct RestoreSecretError { #[derive(std::fmt::Debug)] pub enum RestoreSecretErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1504,9 +1554,9 @@ impl std::fmt::Display for RestoreSecretError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { RestoreSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - RestoreSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RestoreSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - RestoreSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + RestoreSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RestoreSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + RestoreSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), RestoreSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1558,23 +1608,32 @@ impl RestoreSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, RestoreSecretErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, RestoreSecretErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + RestoreSecretErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, RestoreSecretErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + RestoreSecretErrorKind::InvalidRequestException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, RestoreSecretErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + RestoreSecretErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for RestoreSecretError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { RestoreSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - RestoreSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - RestoreSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - RestoreSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + RestoreSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + RestoreSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + RestoreSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), RestoreSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1590,9 +1649,9 @@ pub struct RotateSecretError { #[derive(std::fmt::Debug)] pub enum RotateSecretErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1600,9 +1659,9 @@ impl std::fmt::Display for RotateSecretError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { RotateSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - RotateSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RotateSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - RotateSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + RotateSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RotateSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + RotateSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), RotateSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1654,23 +1713,32 @@ impl RotateSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, RotateSecretErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, RotateSecretErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + RotateSecretErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, RotateSecretErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + RotateSecretErrorKind::InvalidRequestException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, RotateSecretErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + RotateSecretErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for RotateSecretError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { RotateSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - RotateSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - RotateSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - RotateSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + RotateSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + RotateSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + RotateSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), RotateSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1686,9 +1754,9 @@ pub struct StopReplicationToReplicaError { #[derive(std::fmt::Debug)] pub enum StopReplicationToReplicaErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1696,9 +1764,9 @@ impl std::fmt::Display for StopReplicationToReplicaError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { StopReplicationToReplicaErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - StopReplicationToReplicaErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - StopReplicationToReplicaErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - StopReplicationToReplicaErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + StopReplicationToReplicaErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + StopReplicationToReplicaErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + StopReplicationToReplicaErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), StopReplicationToReplicaErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1753,22 +1821,22 @@ impl StopReplicationToReplicaError { StopReplicationToReplicaErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - StopReplicationToReplicaErrorKind::InvalidParameterError(_) + StopReplicationToReplicaErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - StopReplicationToReplicaErrorKind::InvalidRequestError(_) + StopReplicationToReplicaErrorKind::InvalidRequestException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - StopReplicationToReplicaErrorKind::ResourceNotFoundError(_) + StopReplicationToReplicaErrorKind::ResourceNotFoundException(_) ) } } @@ -1776,9 +1844,9 @@ impl std::error::Error for StopReplicationToReplicaError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { StopReplicationToReplicaErrorKind::InternalServiceError(_inner) => Some(_inner), - StopReplicationToReplicaErrorKind::InvalidParameterError(_inner) => Some(_inner), - StopReplicationToReplicaErrorKind::InvalidRequestError(_inner) => Some(_inner), - StopReplicationToReplicaErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + StopReplicationToReplicaErrorKind::InvalidParameterException(_inner) => Some(_inner), + StopReplicationToReplicaErrorKind::InvalidRequestException(_inner) => Some(_inner), + StopReplicationToReplicaErrorKind::ResourceNotFoundException(_inner) => Some(_inner), StopReplicationToReplicaErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1794,9 +1862,9 @@ pub struct TagResourceError { #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1804,9 +1872,9 @@ impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { TagResourceErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - TagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TagResourceErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1858,23 +1926,29 @@ impl TagResourceError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, TagResourceErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::InvalidRequestException(_)) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { TagResourceErrorKind::InternalServiceError(_inner) => Some(_inner), - TagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - TagResourceErrorKind::InvalidRequestError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1890,9 +1964,9 @@ pub struct UntagResourceError { #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1900,9 +1974,9 @@ impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UntagResourceErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1954,23 +2028,32 @@ impl UntagResourceError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, UntagResourceErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidRequestException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UntagResourceErrorKind::InternalServiceError(_inner) => Some(_inner), - UntagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - UntagResourceErrorKind::InvalidRequestError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1987,13 +2070,13 @@ pub struct UpdateSecretError { pub enum UpdateSecretErrorKind { EncryptionFailure(crate::error::EncryptionFailure), InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PreconditionNotMetError(crate::error::PreconditionNotMetError), - ResourceExistsError(crate::error::ResourceExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PreconditionNotMetException(crate::error::PreconditionNotMetException), + ResourceExistsException(crate::error::ResourceExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2002,13 +2085,13 @@ impl std::fmt::Display for UpdateSecretError { match &self.kind { UpdateSecretErrorKind::EncryptionFailure(_inner) => _inner.fmt(f), UpdateSecretErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::PreconditionNotMetError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::ResourceExistsError(_inner) => _inner.fmt(f), - UpdateSecretErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::PreconditionNotMetException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::ResourceExistsException(_inner) => _inner.fmt(f), + UpdateSecretErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateSecretErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2063,32 +2146,44 @@ impl UpdateSecretError { pub fn is_internal_service_error(&self) -> bool { matches!(&self.kind, UpdateSecretErrorKind::InternalServiceError(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UpdateSecretErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UpdateSecretErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_request_error(&self) -> bool { - matches!(&self.kind, UpdateSecretErrorKind::InvalidRequestError(_)) + pub fn is_invalid_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateSecretErrorKind::InvalidRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UpdateSecretErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, UpdateSecretErrorKind::LimitExceededException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretErrorKind::MalformedPolicyDocumentError(_) + UpdateSecretErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_precondition_not_met_error(&self) -> bool { + pub fn is_precondition_not_met_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretErrorKind::PreconditionNotMetError(_) + UpdateSecretErrorKind::PreconditionNotMetException(_) ) } - pub fn is_resource_exists_error(&self) -> bool { - matches!(&self.kind, UpdateSecretErrorKind::ResourceExistsError(_)) + pub fn is_resource_exists_exception(&self) -> bool { + matches!( + &self.kind, + UpdateSecretErrorKind::ResourceExistsException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateSecretErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateSecretErrorKind::ResourceNotFoundException(_) + ) } } impl std::error::Error for UpdateSecretError { @@ -2096,13 +2191,13 @@ impl std::error::Error for UpdateSecretError { match &self.kind { UpdateSecretErrorKind::EncryptionFailure(_inner) => Some(_inner), UpdateSecretErrorKind::InternalServiceError(_inner) => Some(_inner), - UpdateSecretErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateSecretErrorKind::InvalidRequestError(_inner) => Some(_inner), - UpdateSecretErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateSecretErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - UpdateSecretErrorKind::PreconditionNotMetError(_inner) => Some(_inner), - UpdateSecretErrorKind::ResourceExistsError(_inner) => Some(_inner), - UpdateSecretErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateSecretErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateSecretErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateSecretErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateSecretErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + UpdateSecretErrorKind::PreconditionNotMetException(_inner) => Some(_inner), + UpdateSecretErrorKind::ResourceExistsException(_inner) => Some(_inner), + UpdateSecretErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateSecretErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2118,10 +2213,10 @@ pub struct UpdateSecretVersionStageError { #[derive(std::fmt::Debug)] pub enum UpdateSecretVersionStageErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - LimitExceededError(crate::error::LimitExceededError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + LimitExceededException(crate::error::LimitExceededException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2129,10 +2224,10 @@ impl std::fmt::Display for UpdateSecretVersionStageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateSecretVersionStageErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - UpdateSecretVersionStageErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UpdateSecretVersionStageErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - UpdateSecretVersionStageErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - UpdateSecretVersionStageErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + UpdateSecretVersionStageErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UpdateSecretVersionStageErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + UpdateSecretVersionStageErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + UpdateSecretVersionStageErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), UpdateSecretVersionStageErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2187,28 +2282,28 @@ impl UpdateSecretVersionStageError { UpdateSecretVersionStageErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretVersionStageErrorKind::InvalidParameterError(_) + UpdateSecretVersionStageErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretVersionStageErrorKind::InvalidRequestError(_) + UpdateSecretVersionStageErrorKind::InvalidRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretVersionStageErrorKind::LimitExceededError(_) + UpdateSecretVersionStageErrorKind::LimitExceededException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateSecretVersionStageErrorKind::ResourceNotFoundError(_) + UpdateSecretVersionStageErrorKind::ResourceNotFoundException(_) ) } } @@ -2216,10 +2311,10 @@ impl std::error::Error for UpdateSecretVersionStageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateSecretVersionStageErrorKind::InternalServiceError(_inner) => Some(_inner), - UpdateSecretVersionStageErrorKind::InvalidParameterError(_inner) => Some(_inner), - UpdateSecretVersionStageErrorKind::InvalidRequestError(_inner) => Some(_inner), - UpdateSecretVersionStageErrorKind::LimitExceededError(_inner) => Some(_inner), - UpdateSecretVersionStageErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + UpdateSecretVersionStageErrorKind::InvalidParameterException(_inner) => Some(_inner), + UpdateSecretVersionStageErrorKind::InvalidRequestException(_inner) => Some(_inner), + UpdateSecretVersionStageErrorKind::LimitExceededException(_inner) => Some(_inner), + UpdateSecretVersionStageErrorKind::ResourceNotFoundException(_inner) => Some(_inner), UpdateSecretVersionStageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2235,10 +2330,10 @@ pub struct ValidateResourcePolicyError { #[derive(std::fmt::Debug)] pub enum ValidateResourcePolicyErrorKind { InternalServiceError(crate::error::InternalServiceError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2246,10 +2341,12 @@ impl std::fmt::Display for ValidateResourcePolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ValidateResourcePolicyErrorKind::InternalServiceError(_inner) => _inner.fmt(f), - ValidateResourcePolicyErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ValidateResourcePolicyErrorKind::InvalidRequestError(_inner) => _inner.fmt(f), - ValidateResourcePolicyErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - ValidateResourcePolicyErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), + ValidateResourcePolicyErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ValidateResourcePolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f), + ValidateResourcePolicyErrorKind::MalformedPolicyDocumentException(_inner) => { + _inner.fmt(f) + } + ValidateResourcePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), ValidateResourcePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2304,28 +2401,28 @@ impl ValidateResourcePolicyError { ValidateResourcePolicyErrorKind::InternalServiceError(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ValidateResourcePolicyErrorKind::InvalidParameterError(_) + ValidateResourcePolicyErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_request_error(&self) -> bool { + pub fn is_invalid_request_exception(&self) -> bool { matches!( &self.kind, - ValidateResourcePolicyErrorKind::InvalidRequestError(_) + ValidateResourcePolicyErrorKind::InvalidRequestException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - ValidateResourcePolicyErrorKind::MalformedPolicyDocumentError(_) + ValidateResourcePolicyErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ValidateResourcePolicyErrorKind::ResourceNotFoundError(_) + ValidateResourcePolicyErrorKind::ResourceNotFoundException(_) ) } } @@ -2333,10 +2430,12 @@ impl std::error::Error for ValidateResourcePolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ValidateResourcePolicyErrorKind::InternalServiceError(_inner) => Some(_inner), - ValidateResourcePolicyErrorKind::InvalidParameterError(_inner) => Some(_inner), - ValidateResourcePolicyErrorKind::InvalidRequestError(_inner) => Some(_inner), - ValidateResourcePolicyErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - ValidateResourcePolicyErrorKind::ResourceNotFoundError(_inner) => Some(_inner), + ValidateResourcePolicyErrorKind::InvalidParameterException(_inner) => Some(_inner), + ValidateResourcePolicyErrorKind::InvalidRequestException(_inner) => Some(_inner), + ValidateResourcePolicyErrorKind::MalformedPolicyDocumentException(_inner) => { + Some(_inner) + } + ValidateResourcePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner), ValidateResourcePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2344,37 +2443,35 @@ impl std::error::Error for ValidateResourcePolicyError { ///

      We can't find the resource that you asked for.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2389,57 +2486,52 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } ///

      You provided a resource-based policy with syntax errors.

      #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedPolicyDocumentError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MalformedPolicyDocumentException { pub message: std::option::Option, } -impl std::fmt::Debug for MalformedPolicyDocumentError { +impl std::fmt::Debug for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedPolicyDocumentError"); + let mut formatter = f.debug_struct("MalformedPolicyDocumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedPolicyDocumentError { +impl MalformedPolicyDocumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedPolicyDocumentError { +impl std::fmt::Display for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MalformedPolicyDocumentError [MalformedPolicyDocumentException]" - )?; + write!(f, "MalformedPolicyDocumentException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for MalformedPolicyDocumentError {} -/// See [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) -pub mod malformed_policy_document_error { - /// A builder for [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) +impl std::error::Error for MalformedPolicyDocumentException {} +/// See [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) +pub mod malformed_policy_document_exception { + /// A builder for [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2454,18 +2546,18 @@ pub mod malformed_policy_document_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn build(self) -> crate::error::MalformedPolicyDocumentError { - crate::error::MalformedPolicyDocumentError { + /// Consumes the builder and constructs a [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn build(self) -> crate::error::MalformedPolicyDocumentException { + crate::error::MalformedPolicyDocumentException { message: self.message, } } } } -impl MalformedPolicyDocumentError { - /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn builder() -> crate::error::malformed_policy_document_error::Builder { - crate::error::malformed_policy_document_error::Builder::default() +impl MalformedPolicyDocumentException { + /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn builder() -> crate::error::malformed_policy_document_exception::Builder { + crate::error::malformed_policy_document_exception::Builder::default() } } @@ -2482,37 +2574,35 @@ impl MalformedPolicyDocumentError { /// ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidRequestError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidRequestException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidRequestError { +impl std::fmt::Debug for InvalidRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidRequestError"); + let mut formatter = f.debug_struct("InvalidRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidRequestError { +impl InvalidRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidRequestError { +impl std::fmt::Display for InvalidRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidRequestError [InvalidRequestException]")?; + write!(f, "InvalidRequestException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for InvalidRequestError {} -/// See [`InvalidRequestError`](crate::error::InvalidRequestError) -pub mod invalid_request_error { - /// A builder for [`InvalidRequestError`](crate::error::InvalidRequestError) +impl std::error::Error for InvalidRequestException {} +/// See [`InvalidRequestException`](crate::error::InvalidRequestException) +pub mod invalid_request_exception { + /// A builder for [`InvalidRequestException`](crate::error::InvalidRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2527,54 +2617,52 @@ pub mod invalid_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidRequestError`](crate::error::InvalidRequestError) - pub fn build(self) -> crate::error::InvalidRequestError { - crate::error::InvalidRequestError { + /// Consumes the builder and constructs a [`InvalidRequestException`](crate::error::InvalidRequestException) + pub fn build(self) -> crate::error::InvalidRequestException { + crate::error::InvalidRequestException { message: self.message, } } } } -impl InvalidRequestError { - /// Creates a new builder-style object to manufacture [`InvalidRequestError`](crate::error::InvalidRequestError) - pub fn builder() -> crate::error::invalid_request_error::Builder { - crate::error::invalid_request_error::Builder::default() +impl InvalidRequestException { + /// Creates a new builder-style object to manufacture [`InvalidRequestException`](crate::error::InvalidRequestException) + pub fn builder() -> crate::error::invalid_request_exception::Builder { + crate::error::invalid_request_exception::Builder::default() } } ///

    You provided an invalid value for a parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidParameterException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterError { +impl std::fmt::Debug for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterError"); + let mut formatter = f.debug_struct("InvalidParameterException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterError { +impl InvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterError { +impl std::fmt::Display for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidParameterError [InvalidParameterException]")?; + write!(f, "InvalidParameterException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidParameterError {} -/// See [`InvalidParameterError`](crate::error::InvalidParameterError) -pub mod invalid_parameter_error { - /// A builder for [`InvalidParameterError`](crate::error::InvalidParameterError) +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2589,27 +2677,25 @@ pub mod invalid_parameter_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn build(self) -> crate::error::InvalidParameterError { - crate::error::InvalidParameterError { + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { message: self.message, } } } } -impl InvalidParameterError { - /// Creates a new builder-style object to manufacture [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn builder() -> crate::error::invalid_parameter_error::Builder { - crate::error::invalid_parameter_error::Builder::default() +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() } } ///

    An error occurred on the server side.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InternalServiceError { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InternalServiceError { @@ -2668,37 +2754,35 @@ impl InternalServiceError { ///

    The request failed because it would exceed one of the Secrets Manager internal limits.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2713,54 +2797,52 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    A resource with the ID you requested already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceExistsError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceExistsError { +impl std::fmt::Debug for ResourceExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceExistsError"); + let mut formatter = f.debug_struct("ResourceExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceExistsError { +impl ResourceExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceExistsError { +impl std::fmt::Display for ResourceExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceExistsError [ResourceExistsException]")?; + write!(f, "ResourceExistsException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for ResourceExistsError {} -/// See [`ResourceExistsError`](crate::error::ResourceExistsError) -pub mod resource_exists_error { - /// A builder for [`ResourceExistsError`](crate::error::ResourceExistsError) +impl std::error::Error for ResourceExistsException {} +/// See [`ResourceExistsException`](crate::error::ResourceExistsException) +pub mod resource_exists_exception { + /// A builder for [`ResourceExistsException`](crate::error::ResourceExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2775,54 +2857,52 @@ pub mod resource_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceExistsError`](crate::error::ResourceExistsError) - pub fn build(self) -> crate::error::ResourceExistsError { - crate::error::ResourceExistsError { + /// Consumes the builder and constructs a [`ResourceExistsException`](crate::error::ResourceExistsException) + pub fn build(self) -> crate::error::ResourceExistsException { + crate::error::ResourceExistsException { message: self.message, } } } } -impl ResourceExistsError { - /// Creates a new builder-style object to manufacture [`ResourceExistsError`](crate::error::ResourceExistsError) - pub fn builder() -> crate::error::resource_exists_error::Builder { - crate::error::resource_exists_error::Builder::default() +impl ResourceExistsException { + /// Creates a new builder-style object to manufacture [`ResourceExistsException`](crate::error::ResourceExistsException) + pub fn builder() -> crate::error::resource_exists_exception::Builder { + crate::error::resource_exists_exception::Builder::default() } } ///

    The request failed because you did not complete all the prerequisite steps.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PreconditionNotMetError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PreconditionNotMetException { pub message: std::option::Option, } -impl std::fmt::Debug for PreconditionNotMetError { +impl std::fmt::Debug for PreconditionNotMetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PreconditionNotMetError"); + let mut formatter = f.debug_struct("PreconditionNotMetException"); formatter.field("message", &self.message); formatter.finish() } } -impl PreconditionNotMetError { +impl PreconditionNotMetException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PreconditionNotMetError { +impl std::fmt::Display for PreconditionNotMetException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PreconditionNotMetError [PreconditionNotMetException]")?; + write!(f, "PreconditionNotMetException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for PreconditionNotMetError {} -/// See [`PreconditionNotMetError`](crate::error::PreconditionNotMetError) -pub mod precondition_not_met_error { - /// A builder for [`PreconditionNotMetError`](crate::error::PreconditionNotMetError) +impl std::error::Error for PreconditionNotMetException {} +/// See [`PreconditionNotMetException`](crate::error::PreconditionNotMetException) +pub mod precondition_not_met_exception { + /// A builder for [`PreconditionNotMetException`](crate::error::PreconditionNotMetException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2837,18 +2917,18 @@ pub mod precondition_not_met_error { self.message = input; self } - /// Consumes the builder and constructs a [`PreconditionNotMetError`](crate::error::PreconditionNotMetError) - pub fn build(self) -> crate::error::PreconditionNotMetError { - crate::error::PreconditionNotMetError { + /// Consumes the builder and constructs a [`PreconditionNotMetException`](crate::error::PreconditionNotMetException) + pub fn build(self) -> crate::error::PreconditionNotMetException { + crate::error::PreconditionNotMetException { message: self.message, } } } } -impl PreconditionNotMetError { - /// Creates a new builder-style object to manufacture [`PreconditionNotMetError`](crate::error::PreconditionNotMetError) - pub fn builder() -> crate::error::precondition_not_met_error::Builder { - crate::error::precondition_not_met_error::Builder::default() +impl PreconditionNotMetException { + /// Creates a new builder-style object to manufacture [`PreconditionNotMetException`](crate::error::PreconditionNotMetException) + pub fn builder() -> crate::error::precondition_not_met_exception::Builder { + crate::error::precondition_not_met_exception::Builder::default() } } @@ -2857,10 +2937,8 @@ impl PreconditionNotMetError { /// information, see How Key State Affects Use of a /// Customer Master Key.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EncryptionFailure { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for EncryptionFailure { @@ -2919,37 +2997,35 @@ impl EncryptionFailure { ///

    The BlockPublicPolicy parameter is set to true and the resource policy did not prevent broad access to the secret.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PublicPolicyError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PublicPolicyException { pub message: std::option::Option, } -impl std::fmt::Debug for PublicPolicyError { +impl std::fmt::Debug for PublicPolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PublicPolicyError"); + let mut formatter = f.debug_struct("PublicPolicyException"); formatter.field("message", &self.message); formatter.finish() } } -impl PublicPolicyError { +impl PublicPolicyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PublicPolicyError { +impl std::fmt::Display for PublicPolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "PublicPolicyError [PublicPolicyException]")?; + write!(f, "PublicPolicyException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for PublicPolicyError {} -/// See [`PublicPolicyError`](crate::error::PublicPolicyError) -pub mod public_policy_error { - /// A builder for [`PublicPolicyError`](crate::error::PublicPolicyError) +impl std::error::Error for PublicPolicyException {} +/// See [`PublicPolicyException`](crate::error::PublicPolicyException) +pub mod public_policy_exception { + /// A builder for [`PublicPolicyException`](crate::error::PublicPolicyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -2964,54 +3040,52 @@ pub mod public_policy_error { self.message = input; self } - /// Consumes the builder and constructs a [`PublicPolicyError`](crate::error::PublicPolicyError) - pub fn build(self) -> crate::error::PublicPolicyError { - crate::error::PublicPolicyError { + /// Consumes the builder and constructs a [`PublicPolicyException`](crate::error::PublicPolicyException) + pub fn build(self) -> crate::error::PublicPolicyException { + crate::error::PublicPolicyException { message: self.message, } } } } -impl PublicPolicyError { - /// Creates a new builder-style object to manufacture [`PublicPolicyError`](crate::error::PublicPolicyError) - pub fn builder() -> crate::error::public_policy_error::Builder { - crate::error::public_policy_error::Builder::default() +impl PublicPolicyException { + /// Creates a new builder-style object to manufacture [`PublicPolicyException`](crate::error::PublicPolicyException) + pub fn builder() -> crate::error::public_policy_exception::Builder { + crate::error::public_policy_exception::Builder::default() } } ///

    You provided an invalid NextToken value.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidNextTokenError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidNextTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidNextTokenError { +impl std::fmt::Debug for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidNextTokenError"); + let mut formatter = f.debug_struct("InvalidNextTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidNextTokenError { +impl InvalidNextTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidNextTokenError { +impl std::fmt::Display for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidNextTokenError [InvalidNextTokenException]")?; + write!(f, "InvalidNextTokenException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for InvalidNextTokenError {} -/// See [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) -pub mod invalid_next_token_error { - /// A builder for [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) +impl std::error::Error for InvalidNextTokenException {} +/// See [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) +pub mod invalid_next_token_exception { + /// A builder for [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3026,27 +3100,25 @@ pub mod invalid_next_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn build(self) -> crate::error::InvalidNextTokenError { - crate::error::InvalidNextTokenError { + /// Consumes the builder and constructs a [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn build(self) -> crate::error::InvalidNextTokenException { + crate::error::InvalidNextTokenException { message: self.message, } } } } -impl InvalidNextTokenError { - /// Creates a new builder-style object to manufacture [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn builder() -> crate::error::invalid_next_token_error::Builder { - crate::error::invalid_next_token_error::Builder::default() +impl InvalidNextTokenException { + /// Creates a new builder-style object to manufacture [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn builder() -> crate::error::invalid_next_token_exception::Builder { + crate::error::invalid_next_token_exception::Builder::default() } } ///

    Secrets Manager can't decrypt the protected secret text using the provided KMS key.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DecryptionFailure { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DecryptionFailure { diff --git a/sdk/secretsmanager/src/error_meta.rs b/sdk/secretsmanager/src/error_meta.rs index ecf9193ba5eb..1a1fff561975 100644 --- a/sdk/secretsmanager/src/error_meta.rs +++ b/sdk/secretsmanager/src/error_meta.rs @@ -5,15 +5,15 @@ pub enum Error { DecryptionFailure(crate::error::DecryptionFailure), EncryptionFailure(crate::error::EncryptionFailure), InternalServiceError(crate::error::InternalServiceError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidRequestError(crate::error::InvalidRequestError), - LimitExceededError(crate::error::LimitExceededError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PreconditionNotMetError(crate::error::PreconditionNotMetError), - PublicPolicyError(crate::error::PublicPolicyError), - ResourceExistsError(crate::error::ResourceExistsError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidRequestException(crate::error::InvalidRequestException), + LimitExceededException(crate::error::LimitExceededException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PreconditionNotMetException(crate::error::PreconditionNotMetException), + PublicPolicyException(crate::error::PublicPolicyException), + ResourceExistsException(crate::error::ResourceExistsException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), Unhandled(Box), } impl std::fmt::Display for Error { @@ -22,15 +22,15 @@ impl std::fmt::Display for Error { Error::DecryptionFailure(inner) => inner.fmt(f), Error::EncryptionFailure(inner) => inner.fmt(f), Error::InternalServiceError(inner) => inner.fmt(f), - Error::InvalidNextTokenError(inner) => inner.fmt(f), - Error::InvalidParameterError(inner) => inner.fmt(f), - Error::InvalidRequestError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MalformedPolicyDocumentError(inner) => inner.fmt(f), - Error::PreconditionNotMetError(inner) => inner.fmt(f), - Error::PublicPolicyError(inner) => inner.fmt(f), - Error::ResourceExistsError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), + Error::InvalidNextTokenException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::InvalidRequestException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MalformedPolicyDocumentException(inner) => inner.fmt(f), + Error::PreconditionNotMetException(inner) => inner.fmt(f), + Error::PublicPolicyException(inner) => inner.fmt(f), + Error::ResourceExistsException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -42,14 +42,14 @@ impl From> crate::error::CancelRotateSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::CancelRotateSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CancelRotateSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CancelRotateSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::CancelRotateSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::CancelRotateSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CancelRotateSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::CancelRotateSecretErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -69,26 +69,26 @@ impl From> for Er crate::error::CreateSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::CreateSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::CreateSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::CreateSecretErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateSecretErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateSecretErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::CreateSecretErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::CreateSecretErrorKind::PreconditionNotMetError(inner) => { - Error::PreconditionNotMetError(inner) + crate::error::CreateSecretErrorKind::PreconditionNotMetException(inner) => { + Error::PreconditionNotMetException(inner) } - crate::error::CreateSecretErrorKind::ResourceExistsError(inner) => { - Error::ResourceExistsError(inner) + crate::error::CreateSecretErrorKind::ResourceExistsException(inner) => { + Error::ResourceExistsException(inner) } - crate::error::CreateSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::CreateSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::CreateSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -103,14 +103,14 @@ impl From crate::error::DeleteResourcePolicyErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::DeleteResourcePolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteResourcePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteResourcePolicyErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::DeleteResourcePolicyErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DeleteResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -127,14 +127,14 @@ impl From> for Er crate::error::DeleteSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::DeleteSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::DeleteSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::DeleteSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DeleteSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DeleteSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -149,8 +149,8 @@ impl From> for crate::error::DescribeSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::DescribeSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::DescribeSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::DescribeSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -165,11 +165,11 @@ impl From> f crate::error::GetRandomPasswordErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::GetRandomPasswordErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetRandomPasswordErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetRandomPasswordErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::GetRandomPasswordErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } crate::error::GetRandomPasswordErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -186,11 +186,11 @@ impl From> f crate::error::GetResourcePolicyErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::GetResourcePolicyErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::GetResourcePolicyErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::GetResourcePolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetResourcePolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::GetResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -210,14 +210,14 @@ impl From> for crate::error::GetSecretValueErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::GetSecretValueErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetSecretValueErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetSecretValueErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::GetSecretValueErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::GetSecretValueErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::GetSecretValueErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::GetSecretValueErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -232,11 +232,11 @@ impl From> for Err crate::error::ListSecretsErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::ListSecretsErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) + crate::error::ListSecretsErrorKind::InvalidNextTokenException(inner) => { + Error::InvalidNextTokenException(inner) } - crate::error::ListSecretsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListSecretsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } crate::error::ListSecretsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -251,11 +251,11 @@ impl From crate::error::ListSecretVersionIdsErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::ListSecretVersionIdsErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) + crate::error::ListSecretVersionIdsErrorKind::InvalidNextTokenException(inner) => { + Error::InvalidNextTokenException(inner) } - crate::error::ListSecretVersionIdsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListSecretVersionIdsErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ListSecretVersionIdsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -272,20 +272,20 @@ impl From> f crate::error::PutResourcePolicyErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::PutResourcePolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutResourcePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutResourcePolicyErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::PutResourcePolicyErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::PutResourcePolicyErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) - } - crate::error::PutResourcePolicyErrorKind::PublicPolicyError(inner) => { - Error::PublicPolicyError(inner) + crate::error::PutResourcePolicyErrorKind::MalformedPolicyDocumentException( + inner, + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::PutResourcePolicyErrorKind::PublicPolicyException(inner) => { + Error::PublicPolicyException(inner) } - crate::error::PutResourcePolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutResourcePolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::PutResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -305,20 +305,20 @@ impl From> for crate::error::PutSecretValueErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::PutSecretValueErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PutSecretValueErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PutSecretValueErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::PutSecretValueErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::PutSecretValueErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::PutSecretValueErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::PutSecretValueErrorKind::ResourceExistsError(inner) => { - Error::ResourceExistsError(inner) + crate::error::PutSecretValueErrorKind::ResourceExistsException(inner) => { + Error::ResourceExistsException(inner) } - crate::error::PutSecretValueErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::PutSecretValueErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::PutSecretValueErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -337,15 +337,15 @@ impl From Error::InternalServiceError(inner), - crate::error::RemoveRegionsFromReplicationErrorKind::InvalidParameterError( + crate::error::RemoveRegionsFromReplicationErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::RemoveRegionsFromReplicationErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) - } - crate::error::RemoveRegionsFromReplicationErrorKind::ResourceNotFoundError( + ) => Error::InvalidParameterException(inner), + crate::error::RemoveRegionsFromReplicationErrorKind::InvalidRequestException( + inner, + ) => Error::InvalidRequestException(inner), + crate::error::RemoveRegionsFromReplicationErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), + ) => Error::ResourceNotFoundException(inner), crate::error::RemoveRegionsFromReplicationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -363,15 +363,15 @@ impl From { Error::InternalServiceError(inner) } - crate::error::ReplicateSecretToRegionsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::ReplicateSecretToRegionsErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) - } - crate::error::ReplicateSecretToRegionsErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ReplicateSecretToRegionsErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ReplicateSecretToRegionsErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } + crate::error::ReplicateSecretToRegionsErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::ReplicateSecretToRegionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -387,14 +387,14 @@ impl From> for E crate::error::RestoreSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::RestoreSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RestoreSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::RestoreSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::RestoreSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::RestoreSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::RestoreSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::RestoreSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -409,14 +409,14 @@ impl From> for Er crate::error::RotateSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::RotateSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RotateSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::RotateSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::RotateSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::RotateSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::RotateSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::RotateSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -433,15 +433,15 @@ impl From { Error::InternalServiceError(inner) } - crate::error::StopReplicationToReplicaErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::StopReplicationToReplicaErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) - } - crate::error::StopReplicationToReplicaErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::StopReplicationToReplicaErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::StopReplicationToReplicaErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } + crate::error::StopReplicationToReplicaErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::StopReplicationToReplicaErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -457,14 +457,14 @@ impl From> for Err crate::error::TagResourceErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::TagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TagResourceErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::TagResourceErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -479,14 +479,14 @@ impl From> for E crate::error::UntagResourceErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::UntagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UntagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UntagResourceErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::UntagResourceErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -504,26 +504,26 @@ impl From> for Er crate::error::UpdateSecretErrorKind::InternalServiceError(inner) => { Error::InternalServiceError(inner) } - crate::error::UpdateSecretErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UpdateSecretErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UpdateSecretErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::UpdateSecretErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::UpdateSecretErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateSecretErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::UpdateSecretErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::UpdateSecretErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::UpdateSecretErrorKind::PreconditionNotMetError(inner) => { - Error::PreconditionNotMetError(inner) + crate::error::UpdateSecretErrorKind::PreconditionNotMetException(inner) => { + Error::PreconditionNotMetException(inner) } - crate::error::UpdateSecretErrorKind::ResourceExistsError(inner) => { - Error::ResourceExistsError(inner) + crate::error::UpdateSecretErrorKind::ResourceExistsException(inner) => { + Error::ResourceExistsException(inner) } - crate::error::UpdateSecretErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateSecretErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::UpdateSecretErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -540,18 +540,18 @@ impl From { Error::InternalServiceError(inner) } - crate::error::UpdateSecretVersionStageErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::UpdateSecretVersionStageErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) - } - crate::error::UpdateSecretVersionStageErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::UpdateSecretVersionStageErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::UpdateSecretVersionStageErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::UpdateSecretVersionStageErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UpdateSecretVersionStageErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } + crate::error::UpdateSecretVersionStageErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), crate::error::UpdateSecretVersionStageErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -567,17 +567,17 @@ impl From { Error::InternalServiceError(inner) } - crate::error::ValidateResourcePolicyErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ValidateResourcePolicyErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ValidateResourcePolicyErrorKind::InvalidRequestError(inner) => { - Error::InvalidRequestError(inner) + crate::error::ValidateResourcePolicyErrorKind::InvalidRequestException(inner) => { + Error::InvalidRequestException(inner) } - crate::error::ValidateResourcePolicyErrorKind::MalformedPolicyDocumentError( + crate::error::ValidateResourcePolicyErrorKind::MalformedPolicyDocumentException( inner, - ) => Error::MalformedPolicyDocumentError(inner), - crate::error::ValidateResourcePolicyErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::ValidateResourcePolicyErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } crate::error::ValidateResourcePolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/secretsmanager/src/input.rs b/sdk/secretsmanager/src/input.rs index 541f029bb6a9..9228910b1b46 100644 --- a/sdk/secretsmanager/src/input.rs +++ b/sdk/secretsmanager/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`CancelRotateSecretInput`](crate::input::CancelRotateSecretInput) pub mod cancel_rotate_secret_input { /// A builder for [`CancelRotateSecretInput`](crate::input::CancelRotateSecretInput) @@ -108,15 +109,27 @@ impl CancelRotateSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.CancelRotateSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.CancelRotateSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -416,15 +429,27 @@ impl CreateSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.CreateSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.CreateSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -550,15 +575,27 @@ impl DeleteResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.DeleteResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.DeleteResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -728,15 +765,27 @@ impl DeleteSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.DeleteSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.DeleteSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -861,15 +910,27 @@ impl DescribeSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.DescribeSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.DescribeSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1077,15 +1138,27 @@ impl GetRandomPasswordInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.GetRandomPassword")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.GetRandomPassword"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1211,15 +1284,27 @@ impl GetResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.GetResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.GetResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1381,15 +1466,27 @@ impl GetSecretValueInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.GetSecretValue")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.GetSecretValue"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1548,15 +1645,27 @@ impl ListSecretsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.ListSecrets")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.ListSecrets"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1727,15 +1836,27 @@ impl ListSecretVersionIdsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.ListSecretVersionIds")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.ListSecretVersionIds"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1891,15 +2012,27 @@ impl PutResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.PutResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.PutResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2133,15 +2266,27 @@ impl PutSecretValueInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.PutSecretValue")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.PutSecretValue"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2269,18 +2414,30 @@ impl RemoveRegionsFromReplicationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "secretsmanager.RemoveRegionsFromReplication", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "secretsmanager.RemoveRegionsFromReplication", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2428,15 +2585,27 @@ impl ReplicateSecretToRegionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.ReplicateSecretToRegions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.ReplicateSecretToRegions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2560,15 +2729,27 @@ impl RestoreSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.RestoreSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.RestoreSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2750,15 +2931,27 @@ impl RotateSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.RotateSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.RotateSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2870,15 +3063,27 @@ impl StopReplicationToReplicaInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.StopReplicationToReplica")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.StopReplicationToReplica"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3017,15 +3222,27 @@ impl TagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.TagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.TagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3164,15 +3381,27 @@ impl UntagResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.UntagResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.UntagResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3424,15 +3653,27 @@ impl UpdateSecretInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.UpdateSecret")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.UpdateSecret"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3609,15 +3850,27 @@ impl UpdateSecretVersionStageInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.UpdateSecretVersionStage")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.UpdateSecretVersionStage"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3762,15 +4015,27 @@ impl ValidateResourcePolicyInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "secretsmanager.ValidateResourcePolicy")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "secretsmanager.ValidateResourcePolicy"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/secretsmanager/src/instant_epoch.rs b/sdk/secretsmanager/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/secretsmanager/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/secretsmanager/src/json_deser.rs b/sdk/secretsmanager/src/json_deser.rs index ec46dd091e40..983b532488dd 100644 --- a/sdk/secretsmanager/src/json_deser.rs +++ b/sdk/secretsmanager/src/json_deser.rs @@ -1,384 +1,2332 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn cancel_rotate_secret_deser_operation( +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_internal_service_errorjson_err( + input: &[u8], + mut builder: crate::error::internal_service_error::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_parameter_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_request_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_cancel_rotate_secret( input: &[u8], mut builder: crate::output::cancel_rotate_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CancelRotateSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_encryption_failurejson_err( + input: &[u8], + mut builder: crate::error::encryption_failure::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_secret_deser_operation( +pub fn deser_structure_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_malformed_policy_document_exceptionjson_err( + input: &[u8], + mut builder: crate::error::malformed_policy_document_exception::Builder, +) -> Result< + crate::error::malformed_policy_document_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_precondition_not_met_exceptionjson_err( + input: &[u8], + mut builder: crate::error::precondition_not_met_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_exists_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_create_secret( input: &[u8], mut builder: crate::output::create_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); - builder = builder.set_replication_status(parsed_body.replication_status); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicationStatus" => { + builder = builder.set_replication_status( + crate::json_deser::deser_list_replication_status_list_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_resource_policy_deser_operation( +pub fn deser_operation_delete_resource_policy( input: &[u8], mut builder: crate::output::delete_resource_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteResourcePolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_secret_deser_operation( +pub fn deser_operation_delete_secret( input: &[u8], mut builder: crate::output::delete_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_deletion_date(parsed_body.deletion_date); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeletionDate" => { + builder = builder.set_deletion_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_secret_deser_operation( +pub fn deser_operation_describe_secret( input: &[u8], mut builder: crate::output::describe_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_kms_key_id(parsed_body.kms_key_id); - builder = builder.set_rotation_enabled(parsed_body.rotation_enabled); - builder = builder.set_rotation_lambda_arn(parsed_body.rotation_lambda_arn); - builder = builder.set_rotation_rules(parsed_body.rotation_rules); - builder = builder.set_last_rotated_date(parsed_body.last_rotated_date); - builder = builder.set_last_changed_date(parsed_body.last_changed_date); - builder = builder.set_last_accessed_date(parsed_body.last_accessed_date); - builder = builder.set_deleted_date(parsed_body.deleted_date); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_version_ids_to_stages(parsed_body.version_ids_to_stages); - builder = builder.set_owning_service(parsed_body.owning_service); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_primary_region(parsed_body.primary_region); - builder = builder.set_replication_status(parsed_body.replication_status); - Ok(builder) -} - -pub fn get_random_password_deser_operation( +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RotationEnabled" => { + builder = builder.set_rotation_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "RotationLambdaARN" => { + builder = builder.set_rotation_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RotationRules" => { + builder = builder.set_rotation_rules( + crate::json_deser::deser_structure_rotation_rules_type(tokens)?, + ); + } + "LastRotatedDate" => { + builder = builder.set_last_rotated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastChangedDate" => { + builder = builder.set_last_changed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastAccessedDate" => { + builder = builder.set_last_accessed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeletedDate" => { + builder = builder.set_deleted_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Tags" => { + builder = + builder.set_tags(crate::json_deser::deser_list_tag_list_type(tokens)?); + } + "VersionIdsToStages" => { + builder = builder.set_version_ids_to_stages( + crate::json_deser::deser_map_secret_versions_to_stages_map_type( + tokens, + )?, + ); + } + "OwningService" => { + builder = builder.set_owning_service( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PrimaryRegion" => { + builder = builder.set_primary_region( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicationStatus" => { + builder = builder.set_replication_status( + crate::json_deser::deser_list_replication_status_list_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_random_password( input: &[u8], mut builder: crate::output::get_random_password_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetRandomPasswordOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_random_password(parsed_body.random_password); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RandomPassword" => { + builder = builder.set_random_password( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_resource_policy_deser_operation( +pub fn deser_operation_get_resource_policy( input: &[u8], mut builder: crate::output::get_resource_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetResourcePolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_resource_policy(parsed_body.resource_policy); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourcePolicy" => { + builder = builder.set_resource_policy( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_decryption_failurejson_err( + input: &[u8], + mut builder: crate::error::decryption_failure::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_secret_value_deser_operation( +pub fn deser_operation_get_secret_value( input: &[u8], mut builder: crate::output::get_secret_value_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetSecretValueOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); - builder = builder.set_secret_binary(parsed_body.secret_binary); - builder = builder.set_secret_string(parsed_body.secret_string); - builder = builder.set_version_stages(parsed_body.version_stages); - builder = builder.set_created_date(parsed_body.created_date); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SecretBinary" => { + builder = builder.set_secret_binary( + smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?, + ); + } + "SecretString" => { + builder = builder.set_secret_string( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionStages" => { + builder = builder.set_version_stages( + crate::json_deser::deser_list_secret_version_stages_type(tokens)?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_next_token_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_next_token_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_secrets_deser_operation( +pub fn deser_operation_list_secrets( input: &[u8], mut builder: crate::output::list_secrets_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListSecretsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_secret_list(parsed_body.secret_list); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SecretList" => { + builder = builder.set_secret_list( + crate::json_deser::deser_list_secret_list_type(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_secret_version_ids_deser_operation( +pub fn deser_operation_list_secret_version_ids( input: &[u8], mut builder: crate::output::list_secret_version_ids_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListSecretVersionIdsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_versions(parsed_body.versions); - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Versions" => { + builder = builder.set_versions( + crate::json_deser::deser_list_secret_versions_list_type(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_public_policy_exceptionjson_err( + input: &[u8], + mut builder: crate::error::public_policy_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_resource_policy_deser_operation( +pub fn deser_operation_put_resource_policy( input: &[u8], mut builder: crate::output::put_resource_policy_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutResourcePolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_secret_value_deser_operation( +pub fn deser_operation_put_secret_value( input: &[u8], mut builder: crate::output::put_secret_value_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutSecretValueOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); - builder = builder.set_version_stages(parsed_body.version_stages); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionStages" => { + builder = builder.set_version_stages( + crate::json_deser::deser_list_secret_version_stages_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn remove_regions_from_replication_deser_operation( +pub fn deser_operation_remove_regions_from_replication( input: &[u8], mut builder: crate::output::remove_regions_from_replication_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::remove_regions_from_replication_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RemoveRegionsFromReplicationOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_replication_status(parsed_body.replication_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicationStatus" => { + builder = builder.set_replication_status( + crate::json_deser::deser_list_replication_status_list_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn replicate_secret_to_regions_deser_operation( +pub fn deser_operation_replicate_secret_to_regions( input: &[u8], mut builder: crate::output::replicate_secret_to_regions_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::replicate_secret_to_regions_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ReplicateSecretToRegionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_replication_status(parsed_body.replication_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReplicationStatus" => { + builder = builder.set_replication_status( + crate::json_deser::deser_list_replication_status_list_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn restore_secret_deser_operation( +pub fn deser_operation_restore_secret( input: &[u8], mut builder: crate::output::restore_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::RestoreSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn rotate_secret_deser_operation( +pub fn deser_operation_rotate_secret( input: &[u8], mut builder: crate::output::rotate_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::RotateSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn stop_replication_to_replica_deser_operation( +pub fn deser_operation_stop_replication_to_replica( input: &[u8], mut builder: crate::output::stop_replication_to_replica_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::stop_replication_to_replica_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::StopReplicationToReplicaOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_secret_deser_operation( +pub fn deser_operation_update_secret( input: &[u8], mut builder: crate::output::update_secret_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateSecretOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); - builder = builder.set_version_id(parsed_body.version_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_secret_version_stage_deser_operation( +pub fn deser_operation_update_secret_version_stage( input: &[u8], mut builder: crate::output::update_secret_version_stage_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::update_secret_version_stage_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateSecretVersionStageOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_arn(parsed_body.arn); - builder = builder.set_name(parsed_body.name); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn validate_resource_policy_deser_operation( +pub fn deser_operation_validate_resource_policy( input: &[u8], mut builder: crate::output::validate_resource_policy_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ValidateResourcePolicyOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policy_validation_passed(Some(parsed_body.policy_validation_passed)); - builder = builder.set_validation_errors(parsed_body.validation_errors); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PolicyValidationPassed" => { + builder = builder.set_policy_validation_passed( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "ValidationErrors" => { + builder = builder.set_validation_errors( + crate::json_deser::deser_list_validation_errors_type(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_replication_status_list_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_replication_status_type(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_rotation_rules_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RotationRulesType::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomaticallyAfterDays" => { + builder = builder.set_automatically_after_days( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_secret_versions_to_stages_map_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_list_secret_version_stages_type(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secret_version_stages_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secret_list_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_secret_list_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_secret_versions_list_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_secret_versions_list_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_validation_errors_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_validation_errors_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_replication_status_type<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReplicationStatusType::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::StatusType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StatusMessage" => { + builder = builder.set_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastAccessedDate" => { + builder = builder.set_last_accessed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_secret_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SecretListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KmsKeyId" => { + builder = builder.set_kms_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RotationEnabled" => { + builder = builder.set_rotation_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "RotationLambdaARN" => { + builder = builder.set_rotation_lambda_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RotationRules" => { + builder = builder.set_rotation_rules( + crate::json_deser::deser_structure_rotation_rules_type(tokens)?, + ); + } + "LastRotatedDate" => { + builder = builder.set_last_rotated_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastChangedDate" => { + builder = builder.set_last_changed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastAccessedDate" => { + builder = builder.set_last_accessed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeletedDate" => { + builder = builder.set_deleted_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list_type(tokens)?); + } + "SecretVersionsToStages" => { + builder = builder.set_secret_versions_to_stages( + crate::json_deser::deser_map_secret_versions_to_stages_map_type(tokens)? + ); + } + "OwningService" => { + builder = builder.set_owning_service( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PrimaryRegion" => { + builder = builder.set_primary_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_secret_versions_list_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SecretVersionsListEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VersionId" => { + builder = builder.set_version_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionStages" => { + builder = builder.set_version_stages( + crate::json_deser::deser_list_secret_version_stages_type( + tokens, + )?, + ); + } + "LastAccessedDate" => { + builder = builder.set_last_accessed_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_validation_errors_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ValidationErrorsEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CheckName" => { + builder = builder.set_check_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/secretsmanager/src/json_errors.rs b/sdk/secretsmanager/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/secretsmanager/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/secretsmanager/src/lib.rs b/sdk/secretsmanager/src/lib.rs index 2b8088e8b487..08e3f2f2e519 100644 --- a/sdk/secretsmanager/src/lib.rs +++ b/sdk/secretsmanager/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Secrets Manager API Reference //!

    AWS Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

    //!

    This guide provides descriptions of the Secrets Manager API. For more information about using this @@ -58,8 +59,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -67,15 +66,14 @@ pub mod error; mod error_meta; mod idempotency_token; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/secretsmanager/src/model.rs b/sdk/secretsmanager/src/model.rs index cb91da4d559f..5cbefc729d54 100644 --- a/sdk/secretsmanager/src/model.rs +++ b/sdk/secretsmanager/src/model.rs @@ -1,15 +1,11 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Displays errors that occurred during validation of the resource policy.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ValidationErrorsEntry { ///

    Checks the name of the policy.

    - #[serde(rename = "CheckName")] - #[serde(default)] pub check_name: std::option::Option, ///

    Displays error messages if validation encounters problems during validation of the resource policy.

    - #[serde(rename = "ErrorMessage")] - #[serde(default)] pub error_message: std::option::Option, } impl std::fmt::Debug for ValidationErrorsEntry { @@ -69,15 +65,11 @@ impl ValidationErrorsEntry { ///

    A structure that contains information about a tag.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    The key identifier, or name, of the tag.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The string value associated with the key of the tag.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -134,7 +126,7 @@ impl Tag { ///

    A structure that defines the rotation configuration for the secret.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RotationRulesType { ///

    Specifies the number of days between automatic scheduled rotations of the secret.

    ///

    Secrets Manager schedules the next rotation when the previous @@ -142,8 +134,6 @@ pub struct RotationRulesType { /// actual date of the last rotation. The service chooses the hour within that 24-hour date window /// randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour /// and influenced by a variety of factors that help distribute load.

    - #[serde(rename = "AutomaticallyAfterDays")] - #[serde(default)] pub automatically_after_days: std::option::Option, } impl std::fmt::Debug for RotationRulesType { @@ -193,31 +183,18 @@ impl RotationRulesType { ///

    A replication object consisting of a RegionReplicationStatus object and includes a Region, KMSKeyId, status, and status message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicationStatusType { ///

    The Region where replication occurs.

    - #[serde(rename = "Region")] - #[serde(default)] pub region: std::option::Option, ///

    Can be an ARN, Key ID, or Alias.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    The status can be InProgress, Failed, or InSync.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Status message such as "Secret with this name already exists in this /// region".

    - #[serde(rename = "StatusMessage")] - #[serde(default)] pub status_message: std::option::Option, ///

    The date that you last accessed the secret in the Region.

    - #[serde(rename = "LastAccessedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_accessed_date: std::option::Option, } impl std::fmt::Debug for ReplicationStatusType { @@ -345,7 +322,7 @@ impl std::convert::From<&str> for StatusType { impl std::str::FromStr for StatusType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StatusType::from(s)) } } @@ -364,27 +341,14 @@ impl AsRef for StatusType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StatusType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    (Optional) Custom type consisting of a Region (required) and the KmsKeyId which can be an ARN, Key ID, or Alias.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplicaRegionType { ///

    Describes a single instance of Region objects.

    - #[serde(rename = "Region")] - #[serde(default)] pub region: std::option::Option, ///

    Can be an ARN, Key ID, or Alias.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, } impl std::fmt::Debug for ReplicaRegionType { @@ -441,31 +405,17 @@ impl ReplicaRegionType { ///

    A structure that contains information about one version of a secret.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SecretVersionsListEntry { ///

    The unique version identifier of this version of the secret.

    - #[serde(rename = "VersionId")] - #[serde(default)] pub version_id: std::option::Option, ///

    An array of staging labels that are currently associated with this version of the /// secret.

    - #[serde(rename = "VersionStages")] - #[serde(default)] pub version_stages: std::option::Option>, ///

    The date that this version of the secret was last accessed. Note that the resolution of /// this field is at the date level and does not include the time.

    - #[serde(rename = "LastAccessedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_accessed_date: std::option::Option, ///

    The date and time this version of the secret was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, } impl std::fmt::Debug for SecretVersionsListEntry { @@ -559,80 +509,44 @@ impl SecretVersionsListEntry { /// SecretString and SecretBinary values. To get those values, use the /// GetSecretValue operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SecretListEntry { ///

    The Amazon Resource Name (ARN) of the secret.

    ///

    For more information about ARNs in Secrets Manager, see Policy Resources in the /// AWS Secrets Manager User Guide.

    - #[serde(rename = "ARN")] - #[serde(default)] pub arn: std::option::Option, ///

    The friendly name of the secret. You can use forward slashes in the name to represent a /// path hierarchy. For example, /prod/databases/dbserver1 could represent the secret /// for a server named dbserver1 in the folder databases in the folder /// prod.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The user-provided description of the secret.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The ARN or alias of the AWS KMS customer master key (CMK) used to encrypt the /// SecretString and SecretBinary fields in each version of the /// secret. If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with /// the default KMS CMK, the key named awssecretsmanager, for this account.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] pub kms_key_id: std::option::Option, ///

    Indicates whether automatic, scheduled rotation is enabled for this secret.

    - #[serde(rename = "RotationEnabled")] - #[serde(default)] pub rotation_enabled: std::option::Option, ///

    The ARN of an AWS Lambda function invoked by Secrets Manager to rotate and expire the /// secret either automatically per the schedule or manually by a call to RotateSecret.

    - #[serde(rename = "RotationLambdaARN")] - #[serde(default)] pub rotation_lambda_arn: std::option::Option, ///

    A structure that defines the rotation configuration for the secret.

    - #[serde(rename = "RotationRules")] - #[serde(default)] pub rotation_rules: std::option::Option, ///

    The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret hasn't ever rotated.

    - #[serde(rename = "LastRotatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_rotated_date: std::option::Option, ///

    The last date and time that this secret was modified in any way.

    - #[serde(rename = "LastChangedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_changed_date: std::option::Option, ///

    The last date that this secret was accessed. This value is truncated to midnight of the /// date and therefore shows only the date, not the time.

    - #[serde(rename = "LastAccessedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_accessed_date: std::option::Option, ///

    The date and time the deletion of the secret occurred. Not present on active secrets. The /// secret can be recovered until the number of days in the recovery window has passed, as /// specified in the RecoveryWindowInDays parameter of the DeleteSecret operation.

    - #[serde(rename = "DeletedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub deleted_date: std::option::Option, ///

    The list of user-defined tags associated with the secret. To add tags to a /// secret, use TagResource. To remove tags, use UntagResource.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    A list of all of the currently assigned SecretVersionStage staging labels and /// the SecretVersionId attached to each one. Staging labels are used to keep @@ -641,25 +555,14 @@ pub struct SecretListEntry { ///

    A version that does not have any SecretVersionStage is considered /// deprecated and subject to deletion. Such versions are not included in this list.

    /// - #[serde(rename = "SecretVersionsToStages")] - #[serde(default)] pub secret_versions_to_stages: std::option::Option< std::collections::HashMap>, >, ///

    Returns the name of the service that created the secret.

    - #[serde(rename = "OwningService")] - #[serde(default)] pub owning_service: std::option::Option, ///

    The date and time when a secret was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The Region where Secrets Manager originated the secret.

    - #[serde(rename = "PrimaryRegion")] - #[serde(default)] pub primary_region: std::option::Option, } impl std::fmt::Debug for SecretListEntry { @@ -965,7 +868,7 @@ impl std::convert::From<&str> for SortOrderType { impl std::str::FromStr for SortOrderType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SortOrderType::from(s)) } } @@ -983,28 +886,15 @@ impl AsRef for SortOrderType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SortOrderType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Allows you to add filters when you use the search function in Secrets Manager.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Filter { ///

    Filters your list of secrets by a specific key.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    Filters your list of secrets by a specific value.

    ///

    You can prefix your search value with an exclamation mark (!) in order to perform negation filters.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for Filter { @@ -1102,7 +992,7 @@ impl std::convert::From<&str> for FilterNameStringType { impl std::str::FromStr for FilterNameStringType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(FilterNameStringType::from(s)) } } @@ -1124,12 +1014,3 @@ impl AsRef for FilterNameStringType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for FilterNameStringType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/secretsmanager/src/operation.rs b/sdk/secretsmanager/src/operation.rs index d8fb56755cd6..36bd09721ac4 100644 --- a/sdk/secretsmanager/src/operation.rs +++ b/sdk/secretsmanager/src/operation.rs @@ -60,68 +60,6 @@ impl CancelRotateSecret { pub fn builder() -> crate::input::cancel_rotate_secret_input::Builder { crate::input::cancel_rotate_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CancelRotateSecretOutput, - crate::error::CancelRotateSecretError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CancelRotateSecretError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelRotateSecretError { - kind: crate::error::CancelRotateSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::CancelRotateSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelRotateSecretError { - kind: crate::error::CancelRotateSecretErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CancelRotateSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelRotateSecretError { - kind: crate::error::CancelRotateSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::CancelRotateSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelRotateSecretError { - kind: crate::error::CancelRotateSecretErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CancelRotateSecretError::unhandled(e), - }, - _ => crate::error::CancelRotateSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::cancel_rotate_secret_output::Builder::default(); - builder = crate::json_deser::cancel_rotate_secret_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CancelRotateSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -132,7 +70,11 @@ impl smithy_http::response::ParseStrictResponse for CancelRotateSecret { crate::error::CancelRotateSecretError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_cancel_rotate_secret_error(response) + } else { + crate::operation_deser::parse_cancel_rotate_secret_response(response) + } } } @@ -233,97 +175,6 @@ impl CreateSecret { pub fn builder() -> crate::input::create_secret_input::Builder { crate::input::create_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateSecretError::unhandled(generic)), - }; - return Err(match error_code { - "EncryptionFailure" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::EncryptionFailure(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::MalformedPolicyDocumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "PreconditionNotMetException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::PreconditionNotMetError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "ResourceExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::ResourceExistsError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateSecretError { - kind: crate::error::CreateSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::CreateSecretError::unhandled(e), - }, - _ => crate::error::CreateSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_secret_output::Builder::default(); - builder = - crate::json_deser::create_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -332,7 +183,11 @@ impl smithy_http::response::ParseStrictResponse for CreateSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_secret_error(response) + } else { + crate::operation_deser::parse_create_secret_response(response) + } } } @@ -369,72 +224,6 @@ impl DeleteResourcePolicy { pub fn builder() -> crate::input::delete_resource_policy_input::Builder { crate::input::delete_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteResourcePolicyOutput, - crate::error::DeleteResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteResourcePolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::InternalServiceError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::InvalidRequestError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourcePolicyError { - kind: crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteResourcePolicyError::unhandled(e), - }, - _ => crate::error::DeleteResourcePolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_resource_policy_output::Builder::default(); - builder = crate::json_deser::delete_resource_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -445,7 +234,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteResourcePolicy { crate::error::DeleteResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_resource_policy_error(response) + } else { + crate::operation_deser::parse_delete_resource_policy_response(response) + } } } @@ -504,60 +297,6 @@ impl DeleteSecret { pub fn builder() -> crate::input::delete_secret_input::Builder { crate::input::delete_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteSecretError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSecretError { - kind: crate::error::DeleteSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSecretError { - kind: crate::error::DeleteSecretErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSecretError { - kind: crate::error::DeleteSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteSecretError { - kind: crate::error::DeleteSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteSecretError::unhandled(e), - }, - _ => crate::error::DeleteSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_secret_output::Builder::default(); - builder = - crate::json_deser::delete_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -566,7 +305,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_secret_error(response) + } else { + crate::operation_deser::parse_delete_secret_response(response) + } } } @@ -607,46 +350,6 @@ impl DescribeSecret { pub fn builder() -> crate::input::describe_secret_input::Builder { crate::input::describe_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeSecretError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSecretError { - kind: crate::error::DescribeSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSecretError { - kind: crate::error::DescribeSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeSecretError::unhandled(e), - }, - _ => crate::error::DescribeSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_secret_output::Builder::default(); - builder = - crate::json_deser::describe_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -655,7 +358,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_secret_error(response) + } else { + crate::operation_deser::parse_describe_secret_response(response) + } } } @@ -681,57 +388,6 @@ impl GetRandomPassword { pub fn builder() -> crate::input::get_random_password_input::Builder { crate::input::get_random_password_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetRandomPasswordOutput, - crate::error::GetRandomPasswordError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetRandomPasswordError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRandomPasswordError { - kind: crate::error::GetRandomPasswordErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::GetRandomPasswordError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRandomPasswordError { - kind: crate::error::GetRandomPasswordErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetRandomPasswordError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetRandomPasswordError { - kind: crate::error::GetRandomPasswordErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::GetRandomPasswordError::unhandled(e), - }, - _ => crate::error::GetRandomPasswordError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_random_password_output::Builder::default(); - builder = crate::json_deser::get_random_password_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetRandomPasswordError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -742,7 +398,11 @@ impl smithy_http::response::ParseStrictResponse for GetRandomPassword { crate::error::GetRandomPasswordError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_random_password_error(response) + } else { + crate::operation_deser::parse_get_random_password_response(response) + } } } @@ -782,57 +442,6 @@ impl GetResourcePolicy { pub fn builder() -> crate::input::get_resource_policy_input::Builder { crate::input::get_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetResourcePolicyOutput, - crate::error::GetResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetResourcePolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetResourcePolicyError { - kind: crate::error::GetResourcePolicyErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::GetResourcePolicyError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetResourcePolicyError { - kind: crate::error::GetResourcePolicyErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::GetResourcePolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetResourcePolicyError { - kind: crate::error::GetResourcePolicyErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetResourcePolicyError::unhandled(e), - }, - _ => crate::error::GetResourcePolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_resource_policy_output::Builder::default(); - builder = crate::json_deser::get_resource_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetResourcePolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -843,7 +452,11 @@ impl smithy_http::response::ParseStrictResponse for GetResourcePolicy { crate::error::GetResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_resource_policy_error(response) + } else { + crate::operation_deser::parse_get_resource_policy_response(response) + } } } @@ -884,67 +497,6 @@ impl GetSecretValue { pub fn builder() -> crate::input::get_secret_value_input::Builder { crate::input::get_secret_value_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetSecretValueError::unhandled(generic)), - }; - return Err(match error_code { - "DecryptionFailure" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetSecretValueError { - kind: crate::error::GetSecretValueErrorKind::DecryptionFailure(body), - meta: generic, - }, - Err(e) => crate::error::GetSecretValueError::unhandled(e), - }, - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetSecretValueError { - kind: crate::error::GetSecretValueErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::GetSecretValueError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetSecretValueError { - kind: crate::error::GetSecretValueErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::GetSecretValueError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetSecretValueError { - kind: crate::error::GetSecretValueErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::GetSecretValueError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetSecretValueError { - kind: crate::error::GetSecretValueErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetSecretValueError::unhandled(e), - }, - _ => crate::error::GetSecretValueError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_secret_value_output::Builder::default(); - builder = - crate::json_deser::get_secret_value_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetSecretValueError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -953,7 +505,11 @@ impl smithy_http::response::ParseStrictResponse for GetSecretValue { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_secret_value_error(response) + } else { + crate::operation_deser::parse_get_secret_value_response(response) + } } } @@ -996,52 +552,6 @@ impl ListSecrets { pub fn builder() -> crate::input::list_secrets_input::Builder { crate::input::list_secrets_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListSecretsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretsError { - kind: crate::error::ListSecretsErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::ListSecretsError::unhandled(e), - }, - "InvalidNextTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretsError { - kind: crate::error::ListSecretsErrorKind::InvalidNextTokenError(body), - meta: generic, - }, - Err(e) => crate::error::ListSecretsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretsError { - kind: crate::error::ListSecretsErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::ListSecretsError::unhandled(e), - }, - _ => crate::error::ListSecretsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_secrets_output::Builder::default(); - builder = - crate::json_deser::list_secrets_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListSecretsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1050,7 +560,11 @@ impl smithy_http::response::ParseStrictResponse for ListSecrets { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_secrets_error(response) + } else { + crate::operation_deser::parse_list_secrets_response(response) + } } } @@ -1092,63 +606,6 @@ impl ListSecretVersionIds { pub fn builder() -> crate::input::list_secret_version_ids_input::Builder { crate::input::list_secret_version_ids_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListSecretVersionIdsOutput, - crate::error::ListSecretVersionIdsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListSecretVersionIdsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretVersionIdsError { - kind: crate::error::ListSecretVersionIdsErrorKind::InternalServiceError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListSecretVersionIdsError::unhandled(e), - }, - "InvalidNextTokenException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretVersionIdsError { - kind: crate::error::ListSecretVersionIdsErrorKind::InvalidNextTokenError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListSecretVersionIdsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListSecretVersionIdsError { - kind: crate::error::ListSecretVersionIdsErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListSecretVersionIdsError::unhandled(e), - }, - _ => crate::error::ListSecretVersionIdsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_secret_version_ids_output::Builder::default(); - builder = crate::json_deser::list_secret_version_ids_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1159,7 +616,11 @@ impl smithy_http::response::ParseStrictResponse for ListSecretVersionIds { crate::error::ListSecretVersionIdsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_secret_version_ids_error(response) + } else { + crate::operation_deser::parse_list_secret_version_ids_response(response) + } } } @@ -1204,81 +665,6 @@ impl PutResourcePolicy { pub fn builder() -> crate::input::put_resource_policy_input::Builder { crate::input::put_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutResourcePolicyOutput, - crate::error::PutResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutResourcePolicyError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: - crate::error::PutResourcePolicyErrorKind::MalformedPolicyDocumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "PublicPolicyException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::PublicPolicyError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutResourcePolicyError { - kind: crate::error::PutResourcePolicyErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutResourcePolicyError::unhandled(e), - }, - _ => crate::error::PutResourcePolicyError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_resource_policy_output::Builder::default(); - builder = crate::json_deser::put_resource_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::PutResourcePolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1289,7 +675,11 @@ impl smithy_http::response::ParseStrictResponse for PutResourcePolicy { crate::error::PutResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_resource_policy_error(response) + } else { + crate::operation_deser::parse_put_resource_policy_response(response) + } } } @@ -1390,81 +780,6 @@ impl PutSecretValue { pub fn builder() -> crate::input::put_secret_value_input::Builder { crate::input::put_secret_value_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutSecretValueError::unhandled(generic)), - }; - return Err(match error_code { - "EncryptionFailure" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::EncryptionFailure(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "ResourceExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::ResourceExistsError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutSecretValueError { - kind: crate::error::PutSecretValueErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::PutSecretValueError::unhandled(e), - }, - _ => crate::error::PutSecretValueError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_secret_value_output::Builder::default(); - builder = - crate::json_deser::put_secret_value_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutSecretValueError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1473,7 +788,11 @@ impl smithy_http::response::ParseStrictResponse for PutSecretValue { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_secret_value_error(response) + } else { + crate::operation_deser::parse_put_secret_value_response(response) + } } } @@ -1487,56 +806,6 @@ impl RemoveRegionsFromReplication { pub fn builder() -> crate::input::remove_regions_from_replication_input::Builder { crate::input::remove_regions_from_replication_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RemoveRegionsFromReplicationOutput, - crate::error::RemoveRegionsFromReplicationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RemoveRegionsFromReplicationError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveRegionsFromReplicationError { kind: crate::error::RemoveRegionsFromReplicationErrorKind::InternalServiceError(body), meta: generic }, - Err(e) => crate::error::RemoveRegionsFromReplicationError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveRegionsFromReplicationError { kind: crate::error::RemoveRegionsFromReplicationErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::RemoveRegionsFromReplicationError::unhandled(e) - } - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveRegionsFromReplicationError { kind: crate::error::RemoveRegionsFromReplicationErrorKind::InvalidRequestError(body), meta: generic }, - Err(e) => crate::error::RemoveRegionsFromReplicationError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveRegionsFromReplicationError { kind: crate::error::RemoveRegionsFromReplicationErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::RemoveRegionsFromReplicationError::unhandled(e) - } - _ => crate::error::RemoveRegionsFromReplicationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::remove_regions_from_replication_output::Builder::default(); - builder = crate::json_deser::remove_regions_from_replication_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1547,7 +816,11 @@ impl smithy_http::response::ParseStrictResponse for RemoveRegionsFromReplication crate::error::RemoveRegionsFromReplicationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_remove_regions_from_replication_error(response) + } else { + crate::operation_deser::parse_remove_regions_from_replication_response(response) + } } } @@ -1562,78 +835,6 @@ impl ReplicateSecretToRegions { pub fn builder() -> crate::input::replicate_secret_to_regions_input::Builder { crate::input::replicate_secret_to_regions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ReplicateSecretToRegionsOutput, - crate::error::ReplicateSecretToRegionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ReplicateSecretToRegionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReplicateSecretToRegionsError { - kind: crate::error::ReplicateSecretToRegionsErrorKind::InternalServiceError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ReplicateSecretToRegionsError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReplicateSecretToRegionsError { - kind: - crate::error::ReplicateSecretToRegionsErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ReplicateSecretToRegionsError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReplicateSecretToRegionsError { - kind: crate::error::ReplicateSecretToRegionsErrorKind::InvalidRequestError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ReplicateSecretToRegionsError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ReplicateSecretToRegionsError { - kind: - crate::error::ReplicateSecretToRegionsErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ReplicateSecretToRegionsError::unhandled(e), - }, - _ => crate::error::ReplicateSecretToRegionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::replicate_secret_to_regions_output::Builder::default(); - builder = crate::json_deser::replicate_secret_to_regions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1644,7 +845,11 @@ impl smithy_http::response::ParseStrictResponse for ReplicateSecretToRegions { crate::error::ReplicateSecretToRegionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_replicate_secret_to_regions_error(response) + } else { + crate::operation_deser::parse_replicate_secret_to_regions_response(response) + } } } @@ -1676,60 +881,6 @@ impl RestoreSecret { pub fn builder() -> crate::input::restore_secret_input::Builder { crate::input::restore_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RestoreSecretError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreSecretError { - kind: crate::error::RestoreSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreSecretError { - kind: crate::error::RestoreSecretErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreSecretError { - kind: crate::error::RestoreSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RestoreSecretError { - kind: crate::error::RestoreSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::RestoreSecretError::unhandled(e), - }, - _ => crate::error::RestoreSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::restore_secret_output::Builder::default(); - builder = - crate::json_deser::restore_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::RestoreSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1738,7 +889,11 @@ impl smithy_http::response::ParseStrictResponse for RestoreSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_restore_secret_error(response) + } else { + crate::operation_deser::parse_restore_secret_response(response) + } } } @@ -1813,60 +968,6 @@ impl RotateSecret { pub fn builder() -> crate::input::rotate_secret_input::Builder { crate::input::rotate_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::RotateSecretError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RotateSecretError { - kind: crate::error::RotateSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::RotateSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RotateSecretError { - kind: crate::error::RotateSecretErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::RotateSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RotateSecretError { - kind: crate::error::RotateSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::RotateSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RotateSecretError { - kind: crate::error::RotateSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::RotateSecretError::unhandled(e), - }, - _ => crate::error::RotateSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::rotate_secret_output::Builder::default(); - builder = - crate::json_deser::rotate_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::RotateSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1875,7 +976,11 @@ impl smithy_http::response::ParseStrictResponse for RotateSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_rotate_secret_error(response) + } else { + crate::operation_deser::parse_rotate_secret_response(response) + } } } @@ -1889,78 +994,6 @@ impl StopReplicationToReplica { pub fn builder() -> crate::input::stop_replication_to_replica_input::Builder { crate::input::stop_replication_to_replica_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopReplicationToReplicaOutput, - crate::error::StopReplicationToReplicaError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StopReplicationToReplicaError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopReplicationToReplicaError { - kind: crate::error::StopReplicationToReplicaErrorKind::InternalServiceError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopReplicationToReplicaError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopReplicationToReplicaError { - kind: - crate::error::StopReplicationToReplicaErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopReplicationToReplicaError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopReplicationToReplicaError { - kind: crate::error::StopReplicationToReplicaErrorKind::InvalidRequestError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopReplicationToReplicaError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopReplicationToReplicaError { - kind: - crate::error::StopReplicationToReplicaErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StopReplicationToReplicaError::unhandled(e), - }, - _ => crate::error::StopReplicationToReplicaError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_replication_to_replica_output::Builder::default(); - builder = crate::json_deser::stop_replication_to_replica_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1971,7 +1004,11 @@ impl smithy_http::response::ParseStrictResponse for StopReplicationToReplica { crate::error::StopReplicationToReplicaError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_replication_to_replica_error(response) + } else { + crate::operation_deser::parse_stop_replication_to_replica_response(response) + } } } @@ -2040,56 +1077,6 @@ impl TagResource { pub fn builder() -> crate::input::tag_resource_input::Builder { crate::input::tag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TagResourceError { - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::TagResourceError::unhandled(e), - }, - _ => crate::error::TagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::tag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2098,7 +1085,11 @@ impl smithy_http::response::ParseStrictResponse for TagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_tag_resource_error(response) + } else { + crate::operation_deser::parse_tag_resource_response(response) + } } } @@ -2140,57 +1131,6 @@ impl UntagResource { pub fn builder() -> crate::input::untag_resource_input::Builder { crate::input::untag_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UntagResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UntagResourceError { - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UntagResourceError::unhandled(e), - }, - _ => crate::error::UntagResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::untag_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2199,7 +1139,11 @@ impl smithy_http::response::ParseStrictResponse for UntagResource { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_untag_resource_error(response) + } else { + crate::operation_deser::parse_untag_resource_response(response) + } } } @@ -2297,97 +1241,6 @@ impl UpdateSecret { pub fn builder() -> crate::input::update_secret_input::Builder { crate::input::update_secret_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateSecretError::unhandled(generic)), - }; - return Err(match error_code { - "EncryptionFailure" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::EncryptionFailure(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::InternalServiceError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::InvalidParameterError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::InvalidRequestError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::LimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::MalformedPolicyDocumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "PreconditionNotMetException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::PreconditionNotMetError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "ResourceExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::ResourceExistsError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretError { - kind: crate::error::UpdateSecretErrorKind::ResourceNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretError::unhandled(e), - }, - _ => crate::error::UpdateSecretError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_secret_output::Builder::default(); - builder = - crate::json_deser::update_secret_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateSecretError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2396,7 +1249,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateSecret { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_secret_error(response) + } else { + crate::operation_deser::parse_update_secret_response(response) + } } } @@ -2446,87 +1303,6 @@ impl UpdateSecretVersionStage { pub fn builder() -> crate::input::update_secret_version_stage_input::Builder { crate::input::update_secret_version_stage_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateSecretVersionStageOutput, - crate::error::UpdateSecretVersionStageError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateSecretVersionStageError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretVersionStageError { - kind: crate::error::UpdateSecretVersionStageErrorKind::InternalServiceError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretVersionStageError::unhandled(e), - }, - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretVersionStageError { - kind: - crate::error::UpdateSecretVersionStageErrorKind::InvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretVersionStageError::unhandled(e), - }, - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretVersionStageError { - kind: crate::error::UpdateSecretVersionStageErrorKind::InvalidRequestError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretVersionStageError::unhandled(e), - }, - "LimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretVersionStageError { - kind: crate::error::UpdateSecretVersionStageErrorKind::LimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretVersionStageError::unhandled(e), - }, - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateSecretVersionStageError { - kind: - crate::error::UpdateSecretVersionStageErrorKind::ResourceNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateSecretVersionStageError::unhandled(e), - }, - _ => crate::error::UpdateSecretVersionStageError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_secret_version_stage_output::Builder::default(); - builder = crate::json_deser::update_secret_version_stage_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2537,7 +1313,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateSecretVersionStage { crate::error::UpdateSecretVersionStageError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_secret_version_stage_error(response) + } else { + crate::operation_deser::parse_update_secret_version_stage_response(response) + } } } @@ -2583,60 +1363,6 @@ impl ValidateResourcePolicy { pub fn builder() -> crate::input::validate_resource_policy_input::Builder { crate::input::validate_resource_policy_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ValidateResourcePolicyOutput, - crate::error::ValidateResourcePolicyError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ValidateResourcePolicyError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServiceError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ValidateResourcePolicyError { kind: crate::error::ValidateResourcePolicyErrorKind::InternalServiceError(body), meta: generic }, - Err(e) => crate::error::ValidateResourcePolicyError::unhandled(e) - } - "InvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ValidateResourcePolicyError { kind: crate::error::ValidateResourcePolicyErrorKind::InvalidParameterError(body), meta: generic }, - Err(e) => crate::error::ValidateResourcePolicyError::unhandled(e) - } - "InvalidRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ValidateResourcePolicyError { kind: crate::error::ValidateResourcePolicyErrorKind::InvalidRequestError(body), meta: generic }, - Err(e) => crate::error::ValidateResourcePolicyError::unhandled(e) - } - "MalformedPolicyDocumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ValidateResourcePolicyError { kind: crate::error::ValidateResourcePolicyErrorKind::MalformedPolicyDocumentError(body), meta: generic }, - Err(e) => crate::error::ValidateResourcePolicyError::unhandled(e) - } - "ResourceNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ValidateResourcePolicyError { kind: crate::error::ValidateResourcePolicyErrorKind::ResourceNotFoundError(body), meta: generic }, - Err(e) => crate::error::ValidateResourcePolicyError::unhandled(e) - } - _ => crate::error::ValidateResourcePolicyError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::validate_resource_policy_output::Builder::default(); - builder = crate::json_deser::validate_resource_policy_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2647,6 +1373,10 @@ impl smithy_http::response::ParseStrictResponse for ValidateResourcePolicy { crate::error::ValidateResourcePolicyError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_validate_resource_policy_error(response) + } else { + crate::operation_deser::parse_validate_resource_policy_response(response) + } } } diff --git a/sdk/secretsmanager/src/operation_deser.rs b/sdk/secretsmanager/src/operation_deser.rs new file mode 100644 index 000000000000..2771a362eeda --- /dev/null +++ b/sdk/secretsmanager/src/operation_deser.rs @@ -0,0 +1,2141 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_rotate_secret_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CancelRotateSecretOutput, + crate::error::CancelRotateSecretError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CancelRotateSecretError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::CancelRotateSecretError { + meta: generic, + kind: crate::error::CancelRotateSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CancelRotateSecretError { + meta: generic, + kind: crate::error::CancelRotateSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::CancelRotateSecretError { + meta: generic, + kind: crate::error::CancelRotateSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::CancelRotateSecretError { + meta: generic, + kind: crate::error::CancelRotateSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CancelRotateSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_rotate_secret_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CancelRotateSecretOutput, + crate::error::CancelRotateSecretError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::cancel_rotate_secret_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_cancel_rotate_secret( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelRotateSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateSecretError::unhandled(generic)), + }; + Err(match error_code { + "EncryptionFailure" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::EncryptionFailure({ + #[allow(unused_mut)] + let mut output = crate::error::encryption_failure::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_encryption_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "InternalServiceError" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => { + crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + } + } + "PreconditionNotMetException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::PreconditionNotMetException({ + #[allow(unused_mut)] + let mut output = crate::error::precondition_not_met_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_precondition_not_met_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceExistsException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::ResourceExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::CreateSecretError { + meta: generic, + kind: crate::error::CreateSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_secret_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_secret(response.body().as_ref(), output) + .map_err(crate::error::CreateSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourcePolicyOutput, + crate::error::DeleteResourcePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteResourcePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteResourcePolicyError { + meta: generic, + kind: crate::error::DeleteResourcePolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourcePolicyOutput, + crate::error::DeleteResourcePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_resource_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_resource_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteResourcePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteSecretError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::DeleteSecretError { + meta: generic, + kind: crate::error::DeleteSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::DeleteSecretError { + meta: generic, + kind: crate::error::DeleteSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::DeleteSecretError { + meta: generic, + kind: crate::error::DeleteSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DeleteSecretError { + meta: generic, + kind: crate::error::DeleteSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_secret_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_secret(response.body().as_ref(), output) + .map_err(crate::error::DeleteSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeSecretError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::DescribeSecretError { + meta: generic, + kind: crate::error::DescribeSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::DescribeSecretError { + meta: generic, + kind: crate::error::DescribeSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_secret_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_secret(response.body().as_ref(), output) + .map_err(crate::error::DescribeSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_random_password_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetRandomPasswordError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetRandomPasswordError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::GetRandomPasswordError { + meta: generic, + kind: crate::error::GetRandomPasswordErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRandomPasswordError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::GetRandomPasswordError { + meta: generic, + kind: crate::error::GetRandomPasswordErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRandomPasswordError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::GetRandomPasswordError { + meta: generic, + kind: crate::error::GetRandomPasswordErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRandomPasswordError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetRandomPasswordError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_random_password_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_random_password_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_random_password( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetRandomPasswordError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_resource_policy_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetResourcePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::GetResourcePolicyError { + meta: generic, + kind: crate::error::GetResourcePolicyErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::GetResourcePolicyError { + meta: generic, + kind: crate::error::GetResourcePolicyErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetResourcePolicyError { + meta: generic, + kind: crate::error::GetResourcePolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_resource_policy_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_resource_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_resource_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetResourcePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_secret_value_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetSecretValueError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetSecretValueError::unhandled(generic)), + }; + Err(match error_code { + "DecryptionFailure" => crate::error::GetSecretValueError { + meta: generic, + kind: crate::error::GetSecretValueErrorKind::DecryptionFailure({ + #[allow(unused_mut)] + let mut output = crate::error::decryption_failure::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_decryption_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }), + }, + "InternalServiceError" => crate::error::GetSecretValueError { + meta: generic, + kind: crate::error::GetSecretValueErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::GetSecretValueError { + meta: generic, + kind: crate::error::GetSecretValueErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::GetSecretValueError { + meta: generic, + kind: crate::error::GetSecretValueErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::GetSecretValueError { + meta: generic, + kind: crate::error::GetSecretValueErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetSecretValueError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_secret_value_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_secret_value_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_secret_value(response.body().as_ref(), output) + .map_err(crate::error::GetSecretValueError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_secrets_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListSecretsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListSecretsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::ListSecretsError { + meta: generic, + kind: crate::error::ListSecretsErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretsError::unhandled)?; + output.build() + }), + }, + "InvalidNextTokenException" => crate::error::ListSecretsError { + meta: generic, + kind: crate::error::ListSecretsErrorKind::InvalidNextTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ListSecretsError { + meta: generic, + kind: crate::error::ListSecretsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListSecretsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_secrets_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_secrets_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_secrets(response.body().as_ref(), output) + .map_err(crate::error::ListSecretsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_secret_version_ids_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListSecretVersionIdsOutput, + crate::error::ListSecretVersionIdsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListSecretVersionIdsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::ListSecretVersionIdsError { + meta: generic, + kind: crate::error::ListSecretVersionIdsErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; + output.build() + }), + }, + "InvalidNextTokenException" => crate::error::ListSecretVersionIdsError { + meta: generic, + kind: crate::error::ListSecretVersionIdsErrorKind::InvalidNextTokenException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ListSecretVersionIdsError { + meta: generic, + kind: crate::error::ListSecretVersionIdsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListSecretVersionIdsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_secret_version_ids_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListSecretVersionIdsOutput, + crate::error::ListSecretVersionIdsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_secret_version_ids_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_secret_version_ids( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSecretVersionIdsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_resource_policy_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutResourcePolicyError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => { + crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + } + } + "PublicPolicyException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::PublicPolicyException({ + #[allow(unused_mut)] + let mut output = crate::error::public_policy_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_public_policy_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutResourcePolicyError { + meta: generic, + kind: crate::error::PutResourcePolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_resource_policy_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_resource_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_resource_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutResourcePolicyError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_secret_value_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutSecretValueError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutSecretValueError::unhandled(generic)), + }; + Err(match error_code { + "EncryptionFailure" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::EncryptionFailure({ + #[allow(unused_mut)] + let mut output = crate::error::encryption_failure::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_encryption_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "InternalServiceError" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "ResourceExistsException" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::ResourceExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::PutSecretValueError { + meta: generic, + kind: crate::error::PutSecretValueErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutSecretValueError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_secret_value_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_secret_value_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_put_secret_value(response.body().as_ref(), output) + .map_err(crate::error::PutSecretValueError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_regions_from_replication_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveRegionsFromReplicationOutput, + crate::error::RemoveRegionsFromReplicationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RemoveRegionsFromReplicationError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceError" => crate::error::RemoveRegionsFromReplicationError { + meta: generic, + kind: crate::error::RemoveRegionsFromReplicationErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RemoveRegionsFromReplicationError { + meta: generic, + kind: crate::error::RemoveRegionsFromReplicationErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::RemoveRegionsFromReplicationError { + meta: generic, + kind: crate::error::RemoveRegionsFromReplicationErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::RemoveRegionsFromReplicationError { + meta: generic, + kind: crate::error::RemoveRegionsFromReplicationErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RemoveRegionsFromReplicationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_regions_from_replication_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveRegionsFromReplicationOutput, + crate::error::RemoveRegionsFromReplicationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::remove_regions_from_replication_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_remove_regions_from_replication( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveRegionsFromReplicationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_replicate_secret_to_regions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ReplicateSecretToRegionsOutput, + crate::error::ReplicateSecretToRegionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ReplicateSecretToRegionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceError" => crate::error::ReplicateSecretToRegionsError { + meta: generic, + kind: crate::error::ReplicateSecretToRegionsErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ReplicateSecretToRegionsError { + meta: generic, + kind: crate::error::ReplicateSecretToRegionsErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::ReplicateSecretToRegionsError { + meta: generic, + kind: crate::error::ReplicateSecretToRegionsErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::ReplicateSecretToRegionsError { + meta: generic, + kind: crate::error::ReplicateSecretToRegionsErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ReplicateSecretToRegionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_replicate_secret_to_regions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ReplicateSecretToRegionsOutput, + crate::error::ReplicateSecretToRegionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::replicate_secret_to_regions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_replicate_secret_to_regions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ReplicateSecretToRegionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RestoreSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RestoreSecretError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::RestoreSecretError { + meta: generic, + kind: crate::error::RestoreSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RestoreSecretError { + meta: generic, + kind: crate::error::RestoreSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::RestoreSecretError { + meta: generic, + kind: crate::error::RestoreSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::RestoreSecretError { + meta: generic, + kind: crate::error::RestoreSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RestoreSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RestoreSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_restore_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::restore_secret_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_restore_secret(response.body().as_ref(), output) + .map_err(crate::error::RestoreSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_rotate_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RotateSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::RotateSecretError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::RotateSecretError { + meta: generic, + kind: crate::error::RotateSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::RotateSecretError { + meta: generic, + kind: crate::error::RotateSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::RotateSecretError { + meta: generic, + kind: crate::error::RotateSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::RotateSecretError { + meta: generic, + kind: crate::error::RotateSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RotateSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RotateSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_rotate_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::rotate_secret_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_rotate_secret(response.body().as_ref(), output) + .map_err(crate::error::RotateSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_replication_to_replica_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopReplicationToReplicaOutput, + crate::error::StopReplicationToReplicaError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StopReplicationToReplicaError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceError" => crate::error::StopReplicationToReplicaError { + meta: generic, + kind: crate::error::StopReplicationToReplicaErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::StopReplicationToReplicaError { + meta: generic, + kind: crate::error::StopReplicationToReplicaErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::StopReplicationToReplicaError { + meta: generic, + kind: crate::error::StopReplicationToReplicaErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::StopReplicationToReplicaError { + meta: generic, + kind: crate::error::StopReplicationToReplicaErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StopReplicationToReplicaError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_replication_to_replica_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopReplicationToReplicaOutput, + crate::error::StopReplicationToReplicaError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_replication_to_replica_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_stop_replication_to_replica( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StopReplicationToReplicaError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_tag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::tag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UntagResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UntagResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServiceError" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_untag_resource_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::untag_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_secret_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateSecretError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateSecretError::unhandled(generic)), + }; + Err(match error_code { + "EncryptionFailure" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::EncryptionFailure({ + #[allow(unused_mut)] + let mut output = crate::error::encryption_failure::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_encryption_failurejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "InternalServiceError" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => { + crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + } + } + "PreconditionNotMetException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::PreconditionNotMetException({ + #[allow(unused_mut)] + let mut output = crate::error::precondition_not_met_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_precondition_not_met_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceExistsException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::ResourceExistsException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateSecretError { + meta: generic, + kind: crate::error::UpdateSecretErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateSecretError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_secret_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_secret_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_secret(response.body().as_ref(), output) + .map_err(crate::error::UpdateSecretError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_secret_version_stage_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateSecretVersionStageOutput, + crate::error::UpdateSecretVersionStageError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateSecretVersionStageError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceError" => crate::error::UpdateSecretVersionStageError { + meta: generic, + kind: crate::error::UpdateSecretVersionStageErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::UpdateSecretVersionStageError { + meta: generic, + kind: crate::error::UpdateSecretVersionStageErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::UpdateSecretVersionStageError { + meta: generic, + kind: crate::error::UpdateSecretVersionStageErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }), + }, + "LimitExceededException" => crate::error::UpdateSecretVersionStageError { + meta: generic, + kind: crate::error::UpdateSecretVersionStageErrorKind::LimitExceededException({ + #[allow(unused_mut)] + let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }), + }, + "ResourceNotFoundException" => crate::error::UpdateSecretVersionStageError { + meta: generic, + kind: crate::error::UpdateSecretVersionStageErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateSecretVersionStageError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_secret_version_stage_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateSecretVersionStageOutput, + crate::error::UpdateSecretVersionStageError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_secret_version_stage_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_secret_version_stage( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateSecretVersionStageError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_validate_resource_policy_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ValidateResourcePolicyOutput, + crate::error::ValidateResourcePolicyError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ValidateResourcePolicyError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServiceError" => crate::error::ValidateResourcePolicyError { + meta: generic, + kind: crate::error::ValidateResourcePolicyErrorKind::InternalServiceError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_service_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_service_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidParameterException" => crate::error::ValidateResourcePolicyError { + meta: generic, + kind: crate::error::ValidateResourcePolicyErrorKind::InvalidParameterException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parameter_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }), + }, + "InvalidRequestException" => crate::error::ValidateResourcePolicyError { + meta: generic, + kind: crate::error::ValidateResourcePolicyErrorKind::InvalidRequestException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }), + }, + "MalformedPolicyDocumentException" => crate::error::ValidateResourcePolicyError { + meta: generic, + kind: crate::error::ValidateResourcePolicyErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_malformed_policy_document_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }, + ), + }, + "ResourceNotFoundException" => crate::error::ValidateResourcePolicyError { + meta: generic, + kind: crate::error::ValidateResourcePolicyErrorKind::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ValidateResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_validate_resource_policy_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ValidateResourcePolicyOutput, + crate::error::ValidateResourcePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::validate_resource_policy_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_validate_resource_policy( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ValidateResourcePolicyError::unhandled)?; + output.build() + }) +} diff --git a/sdk/secretsmanager/src/operation_ser.rs b/sdk/secretsmanager/src/operation_ser.rs index 29e7f793f2b9..362eb04d730c 100644 --- a/sdk/secretsmanager/src/operation_ser.rs +++ b/sdk/secretsmanager/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_cancel_rotate_secret( input: &crate::input::CancelRotateSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_rotate_secret_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_cancel_rotate_secret( pub fn serialize_operation_create_secret( input: &crate::input::CreateSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_secret_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_create_secret( pub fn serialize_operation_delete_resource_policy( input: &crate::input::DeleteResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_resource_policy_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_delete_resource_policy( pub fn serialize_operation_delete_secret( input: &crate::input::DeleteSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_secret_input(&mut object, input); @@ -41,7 +41,7 @@ pub fn serialize_operation_delete_secret( pub fn serialize_operation_describe_secret( input: &crate::input::DescribeSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_secret_input(&mut object, input); @@ -51,7 +51,7 @@ pub fn serialize_operation_describe_secret( pub fn serialize_operation_get_random_password( input: &crate::input::GetRandomPasswordInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_random_password_input(&mut object, input); @@ -61,7 +61,7 @@ pub fn serialize_operation_get_random_password( pub fn serialize_operation_get_resource_policy( input: &crate::input::GetResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_resource_policy_input(&mut object, input); @@ -71,7 +71,7 @@ pub fn serialize_operation_get_resource_policy( pub fn serialize_operation_get_secret_value( input: &crate::input::GetSecretValueInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_secret_value_input(&mut object, input); @@ -81,7 +81,7 @@ pub fn serialize_operation_get_secret_value( pub fn serialize_operation_list_secrets( input: &crate::input::ListSecretsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_secrets_input(&mut object, input); @@ -91,7 +91,7 @@ pub fn serialize_operation_list_secrets( pub fn serialize_operation_list_secret_version_ids( input: &crate::input::ListSecretVersionIdsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_secret_version_ids_input(&mut object, input); @@ -101,7 +101,7 @@ pub fn serialize_operation_list_secret_version_ids( pub fn serialize_operation_put_resource_policy( input: &crate::input::PutResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_resource_policy_input(&mut object, input); @@ -111,7 +111,7 @@ pub fn serialize_operation_put_resource_policy( pub fn serialize_operation_put_secret_value( input: &crate::input::PutSecretValueInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_secret_value_input(&mut object, input); @@ -121,7 +121,7 @@ pub fn serialize_operation_put_secret_value( pub fn serialize_operation_remove_regions_from_replication( input: &crate::input::RemoveRegionsFromReplicationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_remove_regions_from_replication_input(&mut object, input); @@ -131,7 +131,7 @@ pub fn serialize_operation_remove_regions_from_replication( pub fn serialize_operation_replicate_secret_to_regions( input: &crate::input::ReplicateSecretToRegionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_replicate_secret_to_regions_input(&mut object, input); @@ -141,7 +141,7 @@ pub fn serialize_operation_replicate_secret_to_regions( pub fn serialize_operation_restore_secret( input: &crate::input::RestoreSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_restore_secret_input(&mut object, input); @@ -151,7 +151,7 @@ pub fn serialize_operation_restore_secret( pub fn serialize_operation_rotate_secret( input: &crate::input::RotateSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_rotate_secret_input(&mut object, input); @@ -161,7 +161,7 @@ pub fn serialize_operation_rotate_secret( pub fn serialize_operation_stop_replication_to_replica( input: &crate::input::StopReplicationToReplicaInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_replication_to_replica_input(&mut object, input); @@ -171,7 +171,7 @@ pub fn serialize_operation_stop_replication_to_replica( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -181,7 +181,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_untag_resource( input: &crate::input::UntagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_untag_resource_input(&mut object, input); @@ -191,7 +191,7 @@ pub fn serialize_operation_untag_resource( pub fn serialize_operation_update_secret( input: &crate::input::UpdateSecretInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_secret_input(&mut object, input); @@ -201,7 +201,7 @@ pub fn serialize_operation_update_secret( pub fn serialize_operation_update_secret_version_stage( input: &crate::input::UpdateSecretVersionStageInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_secret_version_stage_input(&mut object, input); @@ -211,7 +211,7 @@ pub fn serialize_operation_update_secret_version_stage( pub fn serialize_operation_validate_resource_policy( input: &crate::input::ValidateResourcePolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_validate_resource_policy_input(&mut object, input); diff --git a/sdk/secretsmanager/src/serde_util.rs b/sdk/secretsmanager/src/serde_util.rs deleted file mode 100644 index 52f46e107033..000000000000 --- a/sdk/secretsmanager/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} - -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} diff --git a/sdk/secretsmanager/src/serializer.rs b/sdk/secretsmanager/src/serializer.rs deleted file mode 100644 index 383c77916929..000000000000 --- a/sdk/secretsmanager/src/serializer.rs +++ /dev/null @@ -1,1747 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelRotateSecretInputBody<'a> { - ///

    Specifies the secret to cancel a rotation request. You can specify either the Amazon - /// Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CancelRotateSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelRotateSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSecretInputBody<'a> { - ///

    Specifies the friendly name of the new secret.

    - ///

    The secret name must be ASCII letters, digits, or the following characters : - /// /_+=.@-

    - /// - ///

    Do not end your secret name with a hyphen followed by six characters. If you do so, you - /// risk confusion and unexpected results when searching for a secret by partial ARN. Secrets Manager - /// automatically adds a hyphen and six random characters at the end of the ARN.

    - ///
    - pub name: &'a std::option::Option, - ///

    (Optional) If you include SecretString or SecretBinary, then an - /// initial version is created as part of the secret, and this parameter specifies a unique - /// identifier for the new version.

    - /// - ///

    If you use the AWS CLI or one of the AWS SDK to call this operation, then you can - /// leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it - /// as the value for this parameter in the request. If you don't use the SDK and instead - /// generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a - /// ClientRequestToken yourself for the new version and include the value in the - /// request.

    - ///
    - ///

    This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental - /// creation of duplicate versions if there are failures and retries during a rotation. We - /// recommend that you generate a UUID-type value to - /// ensure uniqueness of your versions within the specified secret.

    - ///
      - ///
    • - ///

      If the ClientRequestToken value isn't already associated with a version - /// of the secret then a new version of the secret is created.

      - ///
    • - ///
    • - ///

      If a version with this value already exists and the version SecretString - /// and SecretBinary values are the same as those in the request, then the - /// request is ignored.

      - ///
    • - ///
    • - ///

      If a version with this value already exists and that version's - /// SecretString and SecretBinary values are different from those - /// in the request, then the request fails because you cannot modify an existing version. - /// Instead, use PutSecretValue to create a new version.

      - ///
    • - ///
    - ///

    This value becomes the VersionId of the new version.

    - pub client_request_token: &'a std::option::Option, - ///

    (Optional) Specifies a user-provided description of the secret.

    - pub description: &'a std::option::Option, - ///

    (Optional) Specifies the ARN, Key ID, or alias of the AWS KMS customer master key (CMK) to - /// be used to encrypt the SecretString or SecretBinary values in the - /// versions stored in this secret.

    - ///

    You can specify any of the supported ways to identify a AWS KMS key ID. If you need to - /// reference a CMK in a different account, you can use only the key ARN or the alias ARN.

    - ///

    If you don't specify this value, then Secrets Manager defaults to using the AWS account's - /// default CMK (the one named aws/secretsmanager). If a AWS KMS CMK with that name doesn't yet - /// exist, then Secrets Manager creates it for you automatically the first time it needs to encrypt a - /// version's SecretString or SecretBinary fields.

    - /// - ///

    You can use the account default CMK to encrypt and decrypt only if you call this - /// operation using credentials from the same account that owns the secret. If the secret - /// resides in a different account, then you must create a custom CMK and specify the ARN in - /// this field.

    - ///
    - pub kms_key_id: &'a std::option::Option, - ///

    (Optional) Specifies binary data that you want to encrypt and store in the new version of - /// the secret. To use this parameter in the command-line tools, we recommend that you store your - /// binary data in a file and then use the appropriate technique for your tool to pass the - /// contents of the file as a parameter.

    - ///

    Either SecretString or SecretBinary must have a value, but not - /// both. They cannot both be empty.

    - ///

    This parameter is not available using the Secrets Manager console. It can be accessed only by - /// using the AWS CLI or one of the AWS SDKs.

    - pub secret_binary: &'a std::option::Option, - ///

    (Optional) Specifies text data that you want to encrypt and store in this new version of - /// the secret.

    - ///

    Either SecretString or SecretBinary must have a value, but not - /// both. They cannot both be empty.

    - ///

    If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected - /// secret text in only the SecretString parameter. The Secrets Manager console stores the - /// information as a JSON structure of key/value pairs that the Lambda rotation function knows how - /// to parse.

    - ///

    For storing multiple values, we recommend that you use a JSON text string argument and - /// specify key/value pairs. For information on how to format a JSON parameter for the various - /// command line tool environments, see Using JSON for - /// Parameters in the AWS CLI User Guide. For example:

    - ///

    - /// {"username":"bob","password":"abc123xyz456"} - ///

    - ///

    If your command-line tool or SDK requires quotation marks around the parameter, you should - /// use single quotes to avoid confusion with the double quotes required in the JSON text.

    - pub secret_string: &'a std::option::Option, - ///

    (Optional) Specifies a list of user-defined tags that are attached to the secret. Each tag - /// is a "Key" and "Value" pair of strings. This operation only appends tags to the existing list - /// of tags. To remove tags, you must use UntagResource.

    - /// - ///
      - ///
    • - ///

      Secrets Manager tag key names are case sensitive. A tag with the key "ABC" is a different tag - /// from one with key "abc".

      - ///
    • - ///
    • - ///

      If you check tags in IAM policy Condition elements as part of your - /// security strategy, then adding or removing a tag can change permissions. If the - /// successful completion of this operation would result in you losing your permissions for - /// this secret, then this operation is blocked and returns an Access Denied - /// error.

      - ///
    • - ///
    - ///
    - ///

    This parameter requires a JSON text string argument. For information on how to format a - /// JSON parameter for the various command line tool environments, see Using JSON for - /// Parameters in the AWS CLI User Guide. For example:

    - ///

    - /// [{"Key":"CostCenter","Value":"12345"},{"Key":"environment","Value":"production"}] - ///

    - ///

    If your command-line tool or SDK requires quotation marks around the parameter, you should - /// use single quotes to avoid confusion with the double quotes required in the JSON text.

    - ///

    The following basic restrictions apply to tags:

    - ///
      - ///
    • - ///

      Maximum number of tags per secret—50

      - ///
    • - ///
    • - ///

      Maximum key length—127 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Maximum value length—255 Unicode characters in UTF-8

      - ///
    • - ///
    • - ///

      Tag keys and values are case sensitive.

      - ///
    • - ///
    • - ///

      Do not use the aws: prefix in your tag names or values because AWS reserves it - /// for AWS use. You can't edit or delete tag names or values with this - /// prefix. Tags with this prefix do not count against your tags per secret limit.

      - ///
    • - ///
    • - ///

      If you use your tagging schema across multiple services and resources, - /// remember other services might have restrictions on allowed characters. Generally - /// allowed characters: letters, spaces, and numbers representable in UTF-8, plus the - /// following special characters: + - = . _ : / @.

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    (Optional) Add a list of regions to replicate secrets. Secrets Manager replicates the KMSKeyID objects to the list of regions specified in - /// the parameter.

    - pub add_replica_regions: - &'a std::option::Option>, - ///

    (Optional) If set, the replication overwrites a secret with the same name in the - /// destination region.

    - pub force_overwrite_replica_secret: &'a bool, -} -impl<'a> std::fmt::Debug for CreateSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSecretInputBody"); - formatter.field("name", &self.name); - formatter.field("client_request_token", &self.client_request_token); - formatter.field("description", &self.description); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("secret_binary", &"*** Sensitive Data Redacted ***"); - formatter.field("secret_string", &"*** Sensitive Data Redacted ***"); - formatter.field("tags", &self.tags); - formatter.field("add_replica_regions", &self.add_replica_regions); - formatter.field( - "force_overwrite_replica_secret", - &self.force_overwrite_replica_secret, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteResourcePolicyInputBody<'a> { - ///

    Specifies the secret that you want to delete the attached resource-based policy for. You - /// can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteResourcePolicyInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSecretInputBody<'a> { - ///

    Specifies the secret to delete. You can specify either the Amazon Resource Name (ARN) or - /// the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    (Optional) Specifies the number of days that Secrets Manager waits before Secrets Manager can delete the - /// secret. You can't use both this parameter and the ForceDeleteWithoutRecovery - /// parameter in the same API call.

    - ///

    This value can range from 7 to 30 days with a default value of 30.

    - pub recovery_window_in_days: &'a std::option::Option, - ///

    (Optional) Specifies that the secret is to be deleted without any recovery window. You - /// can't use both this parameter and the RecoveryWindowInDays parameter in the same - /// API call.

    - ///

    An asynchronous background process performs the actual deletion, so there can be a short - /// delay before the operation completes. If you write code to delete and then immediately - /// recreate a secret with the same name, ensure that your code includes appropriate back off and - /// retry logic.

    - /// - ///

    Use this parameter with caution. This parameter causes the operation to skip the normal - /// waiting period before the permanent deletion that AWS would normally impose with the - /// RecoveryWindowInDays parameter. If you delete a secret with the - /// ForceDeleteWithouRecovery parameter, then you have no opportunity to recover - /// the secret. You lose the secret permanently.

    - ///
    - /// - ///

    If you use this parameter and include a previously deleted or nonexistent secret, the - /// operation does not return the error ResourceNotFoundException in order to - /// correctly handle retries.

    - ///
    - pub force_delete_without_recovery: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("recovery_window_in_days", &self.recovery_window_in_days); - formatter.field( - "force_delete_without_recovery", - &self.force_delete_without_recovery, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSecretInputBody<'a> { - ///

    The identifier of the secret whose details you want to retrieve. You can specify either - /// the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRandomPasswordInputBody<'a> { - ///

    The desired length of the generated password. The default value if you do not include this - /// parameter is 32 characters.

    - pub password_length: &'a std::option::Option, - ///

    A string that includes characters that should not be included in the generated password. - /// The default is that all characters from the included sets can be used.

    - pub exclude_characters: &'a std::option::Option, - ///

    Specifies that the generated password should not include digits. The default if you do not - /// include this switch parameter is that digits can be included.

    - pub exclude_numbers: &'a std::option::Option, - ///

    Specifies that the generated password should not include punctuation characters. The - /// default if you do not include this switch parameter is that punctuation characters can be - /// included.

    - ///

    The following are the punctuation characters that can be included in - /// the generated password if you don't explicitly exclude them with - /// ExcludeCharacters or ExcludePunctuation:

    - ///

    - /// ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } - /// ~ - ///

    - pub exclude_punctuation: &'a std::option::Option, - ///

    Specifies that the generated password should not include uppercase letters. The default if - /// you do not include this switch parameter is that uppercase letters can be included.

    - pub exclude_uppercase: &'a std::option::Option, - ///

    Specifies that the generated password should not include lowercase letters. The default if - /// you do not include this switch parameter is that lowercase letters can be included.

    - pub exclude_lowercase: &'a std::option::Option, - ///

    Specifies that the generated password can include the space character. The default if you - /// do not include this switch parameter is that the space character is not included.

    - pub include_space: &'a std::option::Option, - ///

    A boolean value that specifies whether the generated password must include at least one of - /// every allowed character type. The default value is True and the operation - /// requires at least one of every character type.

    - pub require_each_included_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetRandomPasswordInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRandomPasswordInputBody"); - formatter.field("password_length", &self.password_length); - formatter.field("exclude_characters", &self.exclude_characters); - formatter.field("exclude_numbers", &self.exclude_numbers); - formatter.field("exclude_punctuation", &self.exclude_punctuation); - formatter.field("exclude_uppercase", &self.exclude_uppercase); - formatter.field("exclude_lowercase", &self.exclude_lowercase); - formatter.field("include_space", &self.include_space); - formatter.field( - "require_each_included_type", - &self.require_each_included_type, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetResourcePolicyInputBody<'a> { - ///

    Specifies the secret that you want to retrieve the attached resource-based policy for. You - /// can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetResourcePolicyInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSecretValueInputBody<'a> { - ///

    Specifies the secret containing the version that you want to retrieve. You can specify - /// either the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    Specifies the unique identifier of the version of the secret that you want to retrieve. If - /// you specify both this parameter and VersionStage, the two parameters must refer - /// to the same secret version. If you don't specify either a VersionStage or - /// VersionId then the default is to perform the operation on the version with the - /// VersionStage value of AWSCURRENT.

    - ///

    This value is typically a UUID-type value with - /// 32 hexadecimal digits.

    - pub version_id: &'a std::option::Option, - ///

    Specifies the secret version that you want to retrieve by the staging label attached to - /// the version.

    - ///

    Staging labels are used to keep track of different versions during the rotation process. - /// If you specify both this parameter and VersionId, the two parameters must refer - /// to the same secret version . If you don't specify either a VersionStage or - /// VersionId, then the default is to perform the operation on the version with the - /// VersionStage value of AWSCURRENT.

    - pub version_stage: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetSecretValueInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSecretValueInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("version_id", &self.version_id); - formatter.field("version_stage", &self.version_stage); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSecretsInputBody<'a> { - ///

    (Optional) Limits the number of results you want to include in - /// the response. If you don't include this parameter, it defaults to a value that's - /// specific to the operation. If additional items exist beyond the maximum you specify, the - /// NextToken response element is present and has a value (isn't null). Include - /// that value as the NextToken request parameter in the next call to the operation to - /// get the next part of the results. Note that Secrets Manager might return fewer results than the maximum - /// even when there are more results available. You should check NextToken after every - /// operation to ensure that you receive all of the results.

    - pub max_results: &'a std::option::Option, - ///

    (Optional) Use this parameter in a request if you receive a - /// NextToken response in a previous request indicating there's more - /// output available. In a subsequent call, set it to the value of the previous call - /// NextToken response to indicate where the output should continue from.

    - pub next_token: &'a std::option::Option, - ///

    Lists the secret request filters.

    - pub filters: &'a std::option::Option>, - ///

    Lists secrets in the requested order.

    - pub sort_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListSecretsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSecretsInputBody"); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("filters", &self.filters); - formatter.field("sort_order", &self.sort_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSecretVersionIdsInputBody<'a> { - ///

    The identifier for the secret containing the versions you want to list. You can specify - /// either the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    (Optional) Limits the number of results you want to include in - /// the response. If you don't include this parameter, it defaults to a value that's - /// specific to the operation. If additional items exist beyond the maximum you specify, the - /// NextToken response element is present and has a value (isn't null). Include - /// that value as the NextToken request parameter in the next call to the operation to - /// get the next part of the results. Note that Secrets Manager might return fewer results than the maximum - /// even when there are more results available. You should check NextToken after every - /// operation to ensure that you receive all of the results.

    - pub max_results: &'a std::option::Option, - ///

    (Optional) Use this parameter in a request if you receive a - /// NextToken response in a previous request indicating there's more - /// output available. In a subsequent call, set it to the value of the previous call - /// NextToken response to indicate where the output should continue from.

    - pub next_token: &'a std::option::Option, - ///

    (Optional) Specifies that you want the results to include versions that do not have any - /// staging labels attached to them. Such versions are considered deprecated and are subject to - /// deletion by Secrets Manager as needed.

    - pub include_deprecated: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListSecretVersionIdsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSecretVersionIdsInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("include_deprecated", &self.include_deprecated); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutResourcePolicyInputBody<'a> { - ///

    Specifies the secret that you want to attach the resource-based policy. You can specify - /// either the ARN or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    A JSON-formatted string constructed according to the grammar and syntax for an AWS - /// resource-based policy. The policy in the string identifies who can access or manage this - /// secret and its versions. For information on how to format a JSON parameter for the various - /// command line tool environments, see Using - /// JSON for Parameters in the AWS CLI User Guide.

    - pub resource_policy: &'a std::option::Option, - ///

    (Optional) If you set the parameter, BlockPublicPolicy to true, then you - /// block resource-based policies that allow broad access to the secret.

    - pub block_public_policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutResourcePolicyInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("resource_policy", &self.resource_policy); - formatter.field("block_public_policy", &self.block_public_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutSecretValueInputBody<'a> { - ///

    Specifies the secret to which you want to add a new version. You can specify either the - /// Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already - /// exist.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    (Optional) Specifies a unique identifier for the new version of the secret.

    - /// - ///

    If you use the AWS CLI or one of the AWS SDK to call this operation, then you can - /// leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that - /// in the request. If you don't use the SDK and instead generate a raw HTTP request to the - /// Secrets Manager service endpoint, then you must generate a ClientRequestToken yourself - /// for new versions and include that value in the request.

    - ///
    - ///

    This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental - /// creation of duplicate versions if there are failures and retries during the Lambda rotation - /// function's processing. We recommend that you generate a UUID-type value to - /// ensure uniqueness within the specified secret.

    - ///
      - ///
    • - ///

      If the ClientRequestToken value isn't already associated with a version - /// of the secret then a new version of the secret is created.

      - ///
    • - ///
    • - ///

      If a version with this value already exists and that version's - /// SecretString or SecretBinary values are the same as those in - /// the request then the request is ignored (the operation is idempotent).

      - ///
    • - ///
    • - ///

      If a version with this value already exists and the version of the - /// SecretString and SecretBinary values are different from those - /// in the request then the request fails because you cannot modify an existing secret - /// version. You can only create new versions to store new secret values.

      - ///
    • - ///
    - ///

    This value becomes the VersionId of the new version.

    - pub client_request_token: &'a std::option::Option, - ///

    (Optional) Specifies binary data that you want to encrypt and store in the new version of - /// the secret. To use this parameter in the command-line tools, we recommend that you store your - /// binary data in a file and then use the appropriate technique for your tool to pass the - /// contents of the file as a parameter. Either SecretBinary or - /// SecretString must have a value, but not both. They cannot both be empty.

    - ///

    This parameter is not accessible if the secret using the Secrets Manager console.

    - ///

    - pub secret_binary: &'a std::option::Option, - ///

    (Optional) Specifies text data that you want to encrypt and store in this new version of - /// the secret. Either SecretString or SecretBinary must have a value, - /// but not both. They cannot both be empty.

    - ///

    If you create this secret by using the Secrets Manager console then Secrets Manager puts the - /// protected secret text in only the SecretString parameter. The Secrets Manager console - /// stores the information as a JSON structure of key/value pairs that the default Lambda rotation - /// function knows how to parse.

    - ///

    For storing multiple values, we recommend that you use a JSON text string argument and - /// specify key/value pairs. For information on how to format a JSON parameter for the various - /// command line tool environments, see Using JSON for - /// Parameters in the AWS CLI User Guide.

    - ///

    For example:

    - ///

    - /// [{"username":"bob"},{"password":"abc123xyz456"}] - ///

    - ///

    If your command-line tool or SDK requires quotation marks around the parameter, you should - /// use single quotes to avoid confusion with the double quotes required in the JSON text.

    - pub secret_string: &'a std::option::Option, - ///

    (Optional) Specifies a list of staging labels that are attached to this version of the - /// secret. These staging labels are used to track the versions through the rotation process by - /// the Lambda rotation function.

    - ///

    A staging label must be unique to a single version of the secret. If you specify a staging - /// label that's already associated with a different version of the same secret then that staging - /// label is automatically removed from the other version and attached to this version.

    - ///

    If you do not specify a value for VersionStages then Secrets Manager automatically - /// moves the staging label AWSCURRENT to this new version.

    - pub version_stages: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutSecretValueInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutSecretValueInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("client_request_token", &self.client_request_token); - formatter.field("secret_binary", &"*** Sensitive Data Redacted ***"); - formatter.field("secret_string", &"*** Sensitive Data Redacted ***"); - formatter.field("version_stages", &self.version_stages); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRegionsFromReplicationInputBody<'a> { - ///

    Remove a secret by SecretId from replica Regions.

    - pub secret_id: &'a std::option::Option, - ///

    Remove replication from specific Regions.

    - pub remove_replica_regions: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RemoveRegionsFromReplicationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRegionsFromReplicationInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("remove_replica_regions", &self.remove_replica_regions); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ReplicateSecretToRegionsInputBody<'a> { - ///

    Use the Secret Id to replicate a secret to regions.

    - pub secret_id: &'a std::option::Option, - ///

    Add Regions to replicate the secret.

    - pub add_replica_regions: - &'a std::option::Option>, - ///

    (Optional) If set, Secrets Manager replication overwrites a secret with the same name in the - /// destination region.

    - pub force_overwrite_replica_secret: &'a bool, -} -impl<'a> std::fmt::Debug for ReplicateSecretToRegionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReplicateSecretToRegionsInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("add_replica_regions", &self.add_replica_regions); - formatter.field( - "force_overwrite_replica_secret", - &self.force_overwrite_replica_secret, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreSecretInputBody<'a> { - ///

    Specifies the secret that you want to restore from a previously scheduled deletion. You - /// can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RestoreSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RotateSecretInputBody<'a> { - ///

    Specifies the secret that you want to rotate. You can specify either the Amazon Resource - /// Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    (Optional) Specifies a unique identifier for the new version of the secret that helps - /// ensure idempotency.

    - ///

    If you use the AWS CLI or one of the AWS SDK to call this operation, then you can - /// leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that - /// in the request for this parameter. If you don't use the SDK and instead generate a raw HTTP - /// request to the Secrets Manager service endpoint, then you must generate a - /// ClientRequestToken yourself for new versions and include that value in the - /// request.

    - ///

    You only need to specify your own value if you implement your own retry logic and want to - /// ensure that a given secret is not created twice. We recommend that you generate a UUID-type value to - /// ensure uniqueness within the specified secret.

    - ///

    Secrets Manager uses this value to prevent the accidental creation of duplicate versions if - /// there are failures and retries during the function's processing. This value becomes the - /// VersionId of the new version.

    - pub client_request_token: &'a std::option::Option, - ///

    (Optional) Specifies the ARN of the Lambda function that can rotate the secret.

    - pub rotation_lambda_arn: &'a std::option::Option, - ///

    A structure that defines the rotation configuration for this secret.

    - pub rotation_rules: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RotateSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RotateSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("client_request_token", &self.client_request_token); - formatter.field("rotation_lambda_arn", &self.rotation_lambda_arn); - formatter.field("rotation_rules", &self.rotation_rules); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopReplicationToReplicaInputBody<'a> { - ///

    Response to StopReplicationToReplica of a secret, based on the SecretId.

    - pub secret_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopReplicationToReplicaInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopReplicationToReplicaInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    The identifier for the secret that you want to attach tags to. You can specify either the - /// Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    The tags to attach to the secret. Each element in the list consists of a Key - /// and a Value.

    - ///

    This parameter to the API requires a JSON text string argument. For information on how to - /// format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide. For the - /// AWS CLI, you can also use the syntax: --Tags Key="Key1",Value="Value1" - /// Key="Key2",Value="Value2"[,…] - ///

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UntagResourceInputBody<'a> { - ///

    The identifier for the secret that you want to remove tags from. You can specify either - /// the Amazon Resource Name (ARN) or the friendly name of the secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    A list of tag key names to remove from the secret. You don't specify the value. Both the - /// key and its associated value are removed.

    - ///

    This parameter to the API requires a JSON text string argument. For information on how to - /// format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UntagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UntagResourceInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSecretInputBody<'a> { - ///

    Specifies the secret that you want to modify or to which you want to add a new version. - /// You can specify either the Amazon Resource Name (ARN) or the friendly name of the - /// secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    (Optional) If you want to add a new version to the secret, this parameter specifies a - /// unique identifier for the new version that helps ensure idempotency.

    - ///

    If you use the AWS CLI or one of the AWS SDK to call this operation, then you can - /// leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that - /// in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager - /// service endpoint, then you must generate a ClientRequestToken yourself for new - /// versions and include that value in the request.

    - ///

    You typically only need to interact with this value if you implement your own retry logic - /// and want to ensure that a given secret is not created twice. We recommend that you generate a - /// UUID-type - /// value to ensure uniqueness within the specified secret.

    - ///

    Secrets Manager uses this value to prevent the accidental creation of duplicate versions if - /// there are failures and retries during the Lambda rotation function's processing.

    - ///
      - ///
    • - ///

      If the ClientRequestToken value isn't already associated with a version - /// of the secret then a new version of the secret is created.

      - ///
    • - ///
    • - ///

      If a version with this value already exists and that version's - /// SecretString and SecretBinary values are the same as those in - /// the request then the request is ignored (the operation is idempotent).

      - ///
    • - ///
    • - ///

      If a version with this value already exists and that version's - /// SecretString and SecretBinary values are different from the - /// request then an error occurs because you cannot modify an existing secret value.

      - ///
    • - ///
    - ///

    This value becomes the VersionId of the new version.

    - pub client_request_token: &'a std::option::Option, - ///

    (Optional) Specifies an updated user-provided description of the secret.

    - pub description: &'a std::option::Option, - ///

    (Optional) Specifies an updated ARN or alias of the AWS KMS customer master key (CMK) to be - /// used to encrypt the protected text in new versions of this secret.

    - /// - ///

    You can only use the account's default CMK to encrypt and decrypt if you call this - /// operation using credentials from the same account that owns the secret. If the secret is in - /// a different account, then you must create a custom CMK and provide the ARN of that CMK in - /// this field. The user making the call must have permissions to both the secret and the CMK in - /// their respective accounts.

    - ///
    - pub kms_key_id: &'a std::option::Option, - ///

    (Optional) Specifies updated binary data that you want to encrypt and store in the new - /// version of the secret. To use this parameter in the command-line tools, we recommend that you - /// store your binary data in a file and then use the appropriate technique for your tool to pass - /// the contents of the file as a parameter. Either SecretBinary or - /// SecretString must have a value, but not both. They cannot both be empty.

    - ///

    This parameter is not accessible using the Secrets Manager console.

    - pub secret_binary: &'a std::option::Option, - ///

    (Optional) Specifies updated text data that you want to encrypt and store in this new - /// version of the secret. Either SecretBinary or SecretString must have - /// a value, but not both. They cannot both be empty.

    - ///

    If you create this secret by using the Secrets Manager console then Secrets Manager puts the - /// protected secret text in only the SecretString parameter. The Secrets Manager console - /// stores the information as a JSON structure of key/value pairs that the default Lambda rotation - /// function knows how to parse.

    - ///

    For storing multiple values, we recommend that you use a JSON text string argument and - /// specify key/value pairs. For information on how to format a JSON parameter for the various - /// command line tool environments, see Using JSON for - /// Parameters in the AWS CLI User Guide. For example:

    - ///

    - /// [{"username":"bob"},{"password":"abc123xyz456"}] - ///

    - ///

    If your command-line tool or SDK requires quotation marks around the parameter, you should - /// use single quotes to avoid confusion with the double quotes required in the JSON text. You can - /// also 'escape' the double quote character in the embedded JSON text by prefacing each with a - /// backslash. For example, the following string is surrounded by double-quotes. All of the - /// embedded double quotes are escaped:

    - ///

    - /// "[{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]" - ///

    - pub secret_string: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateSecretInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSecretInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("client_request_token", &self.client_request_token); - formatter.field("description", &self.description); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("secret_binary", &"*** Sensitive Data Redacted ***"); - formatter.field("secret_string", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSecretVersionStageInputBody<'a> { - ///

    Specifies the secret with the version with the list of staging labels you want to modify. - /// You can specify either the Amazon Resource Name (ARN) or the friendly name of the - /// secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    The staging label to add to this version.

    - pub version_stage: &'a std::option::Option, - ///

    Specifies the secret version ID of the version that the staging label is to be removed - /// from. If the staging label you are trying to attach to one version is already attached to a - /// different version, then you must include this parameter and specify the version that the label - /// is to be removed from. If the label is attached and you either do not specify this parameter, - /// or the version ID does not match, then the operation fails.

    - pub remove_from_version_id: &'a std::option::Option, - ///

    (Optional) The secret version ID that you want to add the staging label. If you want to - /// remove a label from a version, then do not specify this parameter.

    - ///

    If the staging label is already attached to a different version of the secret, then you - /// must also specify the RemoveFromVersionId parameter.

    - pub move_to_version_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateSecretVersionStageInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSecretVersionStageInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("version_stage", &self.version_stage); - formatter.field("remove_from_version_id", &self.remove_from_version_id); - formatter.field("move_to_version_id", &self.move_to_version_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidateResourcePolicyInputBody<'a> { - ///

    (Optional) The identifier of the secret with the resource-based policy you want to - /// validate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the - /// secret.

    - /// - ///

    If you specify an ARN, we generally recommend that you specify a complete ARN. You can - /// specify a partial ARN too—for example, if you don’t include the final hyphen and six random - /// characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN - /// match can work as long as it uniquely matches only one secret. However, if your secret has a - /// name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six - /// characters to the ARN) and you try to use that as a partial ARN, then those characters cause - /// Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected - /// results. To avoid this situation, we recommend that you don’t create secret names ending - /// with a hyphen followed by six characters.

    - ///

    If you specify an incomplete ARN without the random suffix, and instead provide the - /// 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, - /// you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.

    - ///
    - pub secret_id: &'a std::option::Option, - ///

    A JSON-formatted string constructed according to the grammar and syntax for an AWS - /// resource-based policy. The policy in the string identifies who can access or manage this - /// secret and its versions. For information on how to format a JSON parameter for the various - /// command line tool environments, see Using - /// JSON for Parameters in the AWS CLI User Guide.publi

    - pub resource_policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ValidateResourcePolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidateResourcePolicyInputBody"); - formatter.field("secret_id", &self.secret_id); - formatter.field("resource_policy", &self.resource_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelRotateSecretOutputBody { - ///

    The ARN of the secret for which rotation was canceled.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret for which rotation was canceled.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The unique identifier of the version of the secret created during the rotation. This - /// version might not be complete, and should be evaluated for possible deletion. At the very - /// least, you should remove the VersionStage value AWSPENDING to enable this - /// version to be deleted. Failing to clean up a cancelled rotation can block you from - /// successfully starting future rotations.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, -} -impl std::fmt::Debug for CancelRotateSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelRotateSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSecretOutputBody { - ///

    The Amazon Resource Name (ARN) of the secret that you just created.

    - /// - ///

    Secrets Manager automatically adds several random characters to the name at the end of the ARN when - /// you initially create a secret. This affects only the ARN and not the actual friendly name. - /// This ensures that if you create a new secret with the same name as an old secret that you - /// previously deleted, then users with access to the old secret don't - /// automatically get access to the new secret because the ARNs are different.

    - ///
    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret that you just created.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The unique identifier associated with the version of the secret you just created.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, - ///

    Describes a list of replication status objects as InProgress, Failed or InSync.

    - #[serde(rename = "ReplicationStatus")] - #[serde(default)] - pub replication_status: std::option::Option>, -} -impl std::fmt::Debug for CreateSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.field("replication_status", &self.replication_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteResourcePolicyOutputBody { - ///

    The ARN of the secret that the resource-based policy was deleted for.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret that the resource-based policy was deleted for.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for DeleteResourcePolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteResourcePolicyOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSecretOutputBody { - ///

    The ARN of the secret that is now scheduled for deletion.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret currently scheduled for deletion.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The date and time after which this secret can be deleted by Secrets Manager and can no longer be - /// restored. This value is the date and time of the delete request plus the number of days - /// specified in RecoveryWindowInDays.

    - #[serde(rename = "DeletionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub deletion_date: std::option::Option, -} -impl std::fmt::Debug for DeleteSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("deletion_date", &self.deletion_date); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSecretOutputBody { - ///

    The ARN of the secret.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The user-provided friendly name of the secret.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The user-provided description of the secret.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the - /// SecretString or SecretBinary fields in each version of the secret. - /// If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with the - /// default AWS KMS CMK (the one named awssecretsmanager) for this account.

    - #[serde(rename = "KmsKeyId")] - #[serde(default)] - pub kms_key_id: std::option::Option, - ///

    Specifies whether automatic rotation is enabled for this secret.

    - ///

    To enable rotation, use RotateSecret with - /// AutomaticallyRotateAfterDays set to a value greater than 0. To disable - /// rotation, use CancelRotateSecret.

    - #[serde(rename = "RotationEnabled")] - #[serde(default)] - pub rotation_enabled: std::option::Option, - ///

    The ARN of a Lambda function that's invoked by Secrets Manager to rotate the - /// secret either automatically per the schedule or manually by a call to - /// RotateSecret.

    - #[serde(rename = "RotationLambdaARN")] - #[serde(default)] - pub rotation_lambda_arn: std::option::Option, - ///

    A structure with the rotation configuration for this secret.

    - #[serde(rename = "RotationRules")] - #[serde(default)] - pub rotation_rules: std::option::Option, - ///

    The last date and time that the rotation process for this secret was invoked.

    - ///

    The most recent date and time that the Secrets Manager rotation process successfully - /// completed. If the secret doesn't rotate, Secrets Manager returns a null value.

    - #[serde(rename = "LastRotatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_rotated_date: std::option::Option, - ///

    The last date and time that this secret was modified in any way.

    - #[serde(rename = "LastChangedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_changed_date: std::option::Option, - ///

    The last date that this secret was accessed. This value is truncated to midnight of the - /// date and therefore shows only the date, not the time.

    - #[serde(rename = "LastAccessedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_accessed_date: std::option::Option, - ///

    This value exists if the secret is scheduled for deletion. Some time after the specified - /// date and time, Secrets Manager deletes the secret and all of its versions.

    - ///

    If a secret is scheduled for deletion, then its details, including the encrypted secret - /// information, is not accessible. To cancel a scheduled deletion and restore access, use RestoreSecret.

    - #[serde(rename = "DeletedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub deleted_date: std::option::Option, - ///

    The list of user-defined tags that are associated with the secret. To add tags to a - /// secret, use TagResource. To remove tags, use UntagResource.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    A list of all of the currently assigned VersionStage staging labels and the - /// VersionId that each is attached to. Staging labels are used to keep track of - /// the different versions during the rotation process.

    - /// - ///

    A version that does not have any staging labels attached is considered deprecated and - /// subject to deletion. Such versions are not included in this list.

    - ///
    - #[serde(rename = "VersionIdsToStages")] - #[serde(default)] - pub version_ids_to_stages: std::option::Option< - std::collections::HashMap>, - >, - ///

    Returns the name of the service that created this secret.

    - #[serde(rename = "OwningService")] - #[serde(default)] - pub owning_service: std::option::Option, - ///

    The date you created the secret.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    Specifies the primary region for secret replication.

    - #[serde(rename = "PrimaryRegion")] - #[serde(default)] - pub primary_region: std::option::Option, - ///

    Describes a list of replication status objects as InProgress, Failed or InSync.P - ///

    - #[serde(rename = "ReplicationStatus")] - #[serde(default)] - pub replication_status: std::option::Option>, -} -impl std::fmt::Debug for DescribeSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("kms_key_id", &self.kms_key_id); - formatter.field("rotation_enabled", &self.rotation_enabled); - formatter.field("rotation_lambda_arn", &self.rotation_lambda_arn); - formatter.field("rotation_rules", &self.rotation_rules); - formatter.field("last_rotated_date", &self.last_rotated_date); - formatter.field("last_changed_date", &self.last_changed_date); - formatter.field("last_accessed_date", &self.last_accessed_date); - formatter.field("deleted_date", &self.deleted_date); - formatter.field("tags", &self.tags); - formatter.field("version_ids_to_stages", &self.version_ids_to_stages); - formatter.field("owning_service", &self.owning_service); - formatter.field("created_date", &self.created_date); - formatter.field("primary_region", &self.primary_region); - formatter.field("replication_status", &self.replication_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetRandomPasswordOutputBody { - ///

    A string with the generated password.

    - #[serde(rename = "RandomPassword")] - #[serde(default)] - pub random_password: std::option::Option, -} -impl std::fmt::Debug for GetRandomPasswordOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetRandomPasswordOutputBody"); - formatter.field("random_password", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetResourcePolicyOutputBody { - ///

    The ARN of the secret that the resource-based policy was retrieved for.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret that the resource-based policy was retrieved for.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    A JSON-formatted string that describes the permissions that are associated with the - /// attached secret. These permissions are combined with any permissions that are associated with - /// the user or role that attempts to access this secret. The combined permissions specify who can - /// access the secret and what actions they can perform. For more information, see Authentication and Access Control for - /// AWS Secrets Manager in the AWS Secrets Manager User Guide.

    - #[serde(rename = "ResourcePolicy")] - #[serde(default)] - pub resource_policy: std::option::Option, -} -impl std::fmt::Debug for GetResourcePolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetResourcePolicyOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("resource_policy", &self.resource_policy); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSecretValueOutputBody { - ///

    The ARN of the secret.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The unique identifier of this version of the secret.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, - ///

    The decrypted part of the protected secret information that was originally provided as - /// binary data in the form of a byte array. The response parameter represents the binary data as - /// a base64-encoded - /// string.

    - ///

    This parameter is not used if the secret is created by the Secrets Manager console.

    - ///

    If you store custom information in this field of the secret, then you must code your - /// Lambda rotation function to parse and interpret whatever you store in the - /// SecretString or SecretBinary fields.

    - #[serde(rename = "SecretBinary")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] - pub secret_binary: std::option::Option, - ///

    The decrypted part of the protected secret information that was originally provided as a - /// string.

    - ///

    If you create this secret by using the Secrets Manager console then only the - /// SecretString parameter contains data. Secrets Manager stores the information as a - /// JSON structure of key/value pairs that the Lambda rotation function knows how to parse.

    - ///

    If you store custom information in the secret by using the CreateSecret, - /// UpdateSecret, or PutSecretValue API operations instead - /// of the Secrets Manager console, or by using the Other secret type in - /// the console, then you must code your Lambda rotation function to parse and interpret those - /// values.

    - #[serde(rename = "SecretString")] - #[serde(default)] - pub secret_string: std::option::Option, - ///

    A list of all of the staging labels currently attached to this version of the - /// secret.

    - #[serde(rename = "VersionStages")] - #[serde(default)] - pub version_stages: std::option::Option>, - ///

    The date and time that this version of the secret was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, -} -impl std::fmt::Debug for GetSecretValueOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSecretValueOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.field("secret_binary", &"*** Sensitive Data Redacted ***"); - formatter.field("secret_string", &"*** Sensitive Data Redacted ***"); - formatter.field("version_stages", &self.version_stages); - formatter.field("created_date", &self.created_date); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSecretsOutputBody { - ///

    A list of the secrets in the account.

    - #[serde(rename = "SecretList")] - #[serde(default)] - pub secret_list: std::option::Option>, - ///

    If present in the response, this value indicates that - /// there's more output available than included in the current response. This can - /// occur even when the response includes no values at all, such as when you ask for a filtered view - /// of a very long list. Use this value in the NextToken request parameter in a - /// subsequent call to the operation to continue processing and get the next part of the output. You - /// should repeat this until the NextToken response element comes back empty (as - /// null).

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListSecretsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSecretsOutputBody"); - formatter.field("secret_list", &self.secret_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSecretVersionIdsOutputBody { - ///

    The list of the currently available versions of the specified secret.

    - #[serde(rename = "Versions")] - #[serde(default)] - pub versions: std::option::Option>, - ///

    If present in the response, this value indicates that - /// there's more output available than included in the current response. This can - /// occur even when the response includes no values at all, such as when you ask for a filtered view - /// of a very long list. Use this value in the NextToken request parameter in a - /// subsequent call to the operation to continue processing and get the next part of the output. You - /// should repeat this until the NextToken response element comes back empty (as - /// null).

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    The Amazon Resource Name (ARN) for the secret.

    - /// - ///

    Secrets Manager automatically adds several random characters to the name at the end of the ARN when - /// you initially create a secret. This affects only the ARN and not the actual friendly name. - /// This ensures that if you create a new secret with the same name as an old secret that you - /// previously deleted, then users with access to the old secret don't - /// automatically get access to the new secret because the ARNs are different.

    - ///
    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for ListSecretVersionIdsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSecretVersionIdsOutputBody"); - formatter.field("versions", &self.versions); - formatter.field("next_token", &self.next_token); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutResourcePolicyOutputBody { - ///

    The ARN of the secret retrieved by the resource-based policy.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret retrieved by the resource-based policy.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for PutResourcePolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutResourcePolicyOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutSecretValueOutputBody { - ///

    The Amazon Resource Name (ARN) for the secret for which you just created a version.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret for which you just created or updated a version.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The unique identifier of the version of the secret you just created or updated.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, - ///

    The list of staging labels that are currently attached to this version of the secret. - /// Staging labels are used to track a version as it progresses through the secret rotation - /// process.

    - #[serde(rename = "VersionStages")] - #[serde(default)] - pub version_stages: std::option::Option>, -} -impl std::fmt::Debug for PutSecretValueOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutSecretValueOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.field("version_stages", &self.version_stages); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveRegionsFromReplicationOutputBody { - ///

    The secret ARN removed from replication regions.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    Describes the remaining replication status after you remove regions from the replication list.

    - #[serde(rename = "ReplicationStatus")] - #[serde(default)] - pub replication_status: std::option::Option>, -} -impl std::fmt::Debug for RemoveRegionsFromReplicationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveRegionsFromReplicationOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("replication_status", &self.replication_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ReplicateSecretToRegionsOutputBody { - ///

    Replicate a secret based on the ReplicaRegionType> consisting of a - /// Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID, or Alias.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    Describes the secret replication status as PENDING, SUCCESS or FAIL.

    - #[serde(rename = "ReplicationStatus")] - #[serde(default)] - pub replication_status: std::option::Option>, -} -impl std::fmt::Debug for ReplicateSecretToRegionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ReplicateSecretToRegionsOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("replication_status", &self.replication_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RestoreSecretOutputBody { - ///

    The ARN of the secret that was restored.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret that was restored.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for RestoreSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RestoreSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RotateSecretOutputBody { - ///

    The ARN of the secret.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The ID of the new version of the secret created by the rotation started by this - /// request.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, -} -impl std::fmt::Debug for RotateSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RotateSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StopReplicationToReplicaOutputBody { - ///

    Response StopReplicationToReplica of a secret, based on the ARN,.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, -} -impl std::fmt::Debug for StopReplicationToReplicaOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopReplicationToReplicaOutputBody"); - formatter.field("arn", &self.arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSecretOutputBody { - ///

    The ARN of the secret that was updated.

    - /// - ///

    Secrets Manager automatically adds several random characters to the name at the end of the ARN when - /// you initially create a secret. This affects only the ARN and not the actual friendly name. - /// This ensures that if you create a new secret with the same name as an old secret that you - /// previously deleted, then users with access to the old secret don't - /// automatically get access to the new secret because the ARNs are different.

    - ///
    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret that was updated.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    If a new version of the secret was created by this operation, then VersionId - /// contains the unique identifier of the new version.

    - #[serde(rename = "VersionId")] - #[serde(default)] - pub version_id: std::option::Option, -} -impl std::fmt::Debug for UpdateSecretOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSecretOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.field("version_id", &self.version_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateSecretVersionStageOutputBody { - ///

    The ARN of the secret with the modified staging label.

    - #[serde(rename = "ARN")] - #[serde(default)] - pub arn: std::option::Option, - ///

    The friendly name of the secret with the modified staging label.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, -} -impl std::fmt::Debug for UpdateSecretVersionStageOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateSecretVersionStageOutputBody"); - formatter.field("arn", &self.arn); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidateResourcePolicyOutputBody { - ///

    Returns a message stating that your Reource Policy passed validation.

    - #[serde(rename = "PolicyValidationPassed")] - #[serde(default)] - pub policy_validation_passed: bool, - ///

    Returns an error message if your policy doesn't pass validatation.

    - #[serde(rename = "ValidationErrors")] - #[serde(default)] - pub validation_errors: std::option::Option>, -} -impl std::fmt::Debug for ValidateResourcePolicyOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidateResourcePolicyOutputBody"); - formatter.field("policy_validation_passed", &self.policy_validation_passed); - formatter.field("validation_errors", &self.validation_errors); - formatter.finish() - } -} diff --git a/sdk/sesv2/Cargo.toml b/sdk/sesv2/Cargo.toml index 3684ec015964..05c51ccc1c5b 100644 --- a/sdk/sesv2/Cargo.toml +++ b/sdk/sesv2/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sesv2" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "Amazon SES API v2\n

    Welcome to the Amazon SES API v2 Reference. This guide provides information about the Amazon SES API v2,\n including supported operations, data types, parameters, and schemas.

    \n

    \n Amazon SES is an AWS service that\n you can use to send email messages to your customers.

    \n

    If you're new to Amazon SES API v2, you might find it helpful to also review the Amazon Simple Email Service Developer\n Guide. The Amazon SES Developer Guide provides information\n and code samples that demonstrate how to use Amazon SES API v2 features programmatically.

    \n

    The Amazon SES API v2 is available in several AWS Regions and it provides an endpoint for each\n of these Regions. For a list of all the Regions and endpoints where the API is currently\n available, see AWS Service Endpoints in the Amazon Web Services General Reference. To\n learn more about AWS Regions, see Managing AWS Regions in the\n Amazon Web Services General Reference.

    \n

    In each Region, AWS maintains multiple Availability Zones. These Availability Zones\n are physically isolated from each other, but are united by private, low-latency,\n high-throughput, and highly redundant network connections. These Availability Zones\n enable us to provide very high levels of availability and redundancy, while also\n minimizing latency. To learn more about the number of Availability Zones that are\n available in each Region, see AWS Global Infrastructure.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -20,9 +20,6 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] @@ -31,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" [features] diff --git a/sdk/sesv2/src/aws_json_errors.rs b/sdk/sesv2/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/sesv2/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/sesv2/src/blob_serde.rs b/sdk/sesv2/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/sesv2/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/sesv2/src/error.rs b/sdk/sesv2/src/error.rs index c8fa86613c0e..8d6e511a90c1 100644 --- a/sdk/sesv2/src/error.rs +++ b/sdk/sesv2/src/error.rs @@ -8,24 +8,26 @@ pub struct CreateConfigurationSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateConfigurationSetErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateConfigurationSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateConfigurationSetErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateConfigurationSetErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateConfigurationSetErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateConfigurationSetErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateConfigurationSetErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateConfigurationSetErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateConfigurationSetErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateConfigurationSetErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateConfigurationSetErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + CreateConfigurationSetErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateConfigurationSetErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateConfigurationSetErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateConfigurationSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -74,52 +76,54 @@ impl CreateConfigurationSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::AlreadyExistsError(_) + CreateConfigurationSetErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::BadRequestError(_) + CreateConfigurationSetErrorKind::BadRequestException(_) ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::ConcurrentModificationError(_) + CreateConfigurationSetErrorKind::ConcurrentModificationException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::LimitExceededError(_) + CreateConfigurationSetErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::NotFoundError(_) + CreateConfigurationSetErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetErrorKind::TooManyRequestsError(_) + CreateConfigurationSetErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateConfigurationSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateConfigurationSetErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateConfigurationSetErrorKind::BadRequestError(_inner) => Some(_inner), - CreateConfigurationSetErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateConfigurationSetErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateConfigurationSetErrorKind::NotFoundError(_inner) => Some(_inner), - CreateConfigurationSetErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateConfigurationSetErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateConfigurationSetErrorKind::BadRequestException(_inner) => Some(_inner), + CreateConfigurationSetErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + CreateConfigurationSetErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateConfigurationSetErrorKind::NotFoundException(_inner) => Some(_inner), + CreateConfigurationSetErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateConfigurationSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -134,28 +138,30 @@ pub struct CreateConfigurationSetEventDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateConfigurationSetEventDestinationErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateConfigurationSetEventDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsException(_inner) => { _inner.fmt(f) } - CreateConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - CreateConfigurationSetEventDestinationErrorKind::LimitExceededError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::LimitExceededException(_inner) => { _inner.fmt(f) } - CreateConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } CreateConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -209,51 +215,53 @@ impl CreateConfigurationSetEventDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsError(_) + CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetEventDestinationErrorKind::BadRequestError(_) + CreateConfigurationSetEventDestinationErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetEventDestinationErrorKind::LimitExceededError(_) + CreateConfigurationSetEventDestinationErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetEventDestinationErrorKind::NotFoundError(_) + CreateConfigurationSetEventDestinationErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_) + CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateConfigurationSetEventDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsException(_inner) => { + Some(_inner) + } + CreateConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { Some(_inner) } - CreateConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::LimitExceededException(_inner) => { Some(_inner) } - CreateConfigurationSetEventDestinationErrorKind::LimitExceededError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { Some(_inner) } - CreateConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => Some(_inner), - CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } CreateConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => { @@ -272,20 +280,20 @@ pub struct CreateContactError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateContactErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateContactError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateContactErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateContactErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateContactErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateContactErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateContactErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateContactErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateContactErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateContactErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateContactErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -334,26 +342,32 @@ impl CreateContactError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { - matches!(&self.kind, CreateContactErrorKind::AlreadyExistsError(_)) + pub fn is_already_exists_exception(&self) -> bool { + matches!( + &self.kind, + CreateContactErrorKind::AlreadyExistsException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateContactErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateContactErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateContactErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, CreateContactErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, CreateContactErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + CreateContactErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for CreateContactError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateContactErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateContactErrorKind::BadRequestError(_inner) => Some(_inner), - CreateContactErrorKind::NotFoundError(_inner) => Some(_inner), - CreateContactErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateContactErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateContactErrorKind::BadRequestException(_inner) => Some(_inner), + CreateContactErrorKind::NotFoundException(_inner) => Some(_inner), + CreateContactErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateContactErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -368,20 +382,20 @@ pub struct CreateContactListError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateContactListErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateContactListError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateContactListErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateContactListErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateContactListErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateContactListErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateContactListErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateContactListErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateContactListErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateContactListErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateContactListErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -430,35 +444,38 @@ impl CreateContactListError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateContactListErrorKind::AlreadyExistsError(_) + CreateContactListErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateContactListErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateContactListErrorKind::BadRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateContactListErrorKind::LimitExceededError(_) + CreateContactListErrorKind::LimitExceededException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateContactListErrorKind::TooManyRequestsError(_) + CreateContactListErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateContactListError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateContactListErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateContactListErrorKind::BadRequestError(_inner) => Some(_inner), - CreateContactListErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateContactListErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateContactListErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateContactListErrorKind::BadRequestException(_inner) => Some(_inner), + CreateContactListErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateContactListErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateContactListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -473,28 +490,30 @@ pub struct CreateCustomVerificationEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateCustomVerificationEmailTemplateErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateCustomVerificationEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsException(_inner) => { _inner.fmt(f) } - CreateCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - CreateCustomVerificationEmailTemplateErrorKind::LimitExceededError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::LimitExceededException(_inner) => { _inner.fmt(f) } - CreateCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } CreateCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -548,49 +567,53 @@ impl CreateCustomVerificationEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsError(_) + CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateCustomVerificationEmailTemplateErrorKind::BadRequestError(_) + CreateCustomVerificationEmailTemplateErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateCustomVerificationEmailTemplateErrorKind::LimitExceededError(_) + CreateCustomVerificationEmailTemplateErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateCustomVerificationEmailTemplateErrorKind::NotFoundError(_) + CreateCustomVerificationEmailTemplateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_) + CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateCustomVerificationEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsException(_inner) => { + Some(_inner) + } + CreateCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + CreateCustomVerificationEmailTemplateErrorKind::LimitExceededException(_inner) => { Some(_inner) } - CreateCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - CreateCustomVerificationEmailTemplateErrorKind::LimitExceededError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { Some(_inner) } - CreateCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } CreateCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => { @@ -609,22 +632,24 @@ pub struct CreateDedicatedIpPoolError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDedicatedIpPoolErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDedicatedIpPoolError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDedicatedIpPoolErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateDedicatedIpPoolErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDedicatedIpPoolErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateDedicatedIpPoolErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateDedicatedIpPoolErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateDedicatedIpPoolErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateDedicatedIpPoolErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDedicatedIpPoolErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + CreateDedicatedIpPoolErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateDedicatedIpPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateDedicatedIpPoolErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -673,45 +698,45 @@ impl CreateDedicatedIpPoolError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateDedicatedIpPoolErrorKind::AlreadyExistsError(_) + CreateDedicatedIpPoolErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateDedicatedIpPoolErrorKind::BadRequestError(_) + CreateDedicatedIpPoolErrorKind::BadRequestException(_) ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateDedicatedIpPoolErrorKind::ConcurrentModificationError(_) + CreateDedicatedIpPoolErrorKind::ConcurrentModificationException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateDedicatedIpPoolErrorKind::LimitExceededError(_) + CreateDedicatedIpPoolErrorKind::LimitExceededException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDedicatedIpPoolErrorKind::TooManyRequestsError(_) + CreateDedicatedIpPoolErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateDedicatedIpPoolError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDedicatedIpPoolErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateDedicatedIpPoolErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDedicatedIpPoolErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateDedicatedIpPoolErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateDedicatedIpPoolErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateDedicatedIpPoolErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateDedicatedIpPoolErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDedicatedIpPoolErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateDedicatedIpPoolErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateDedicatedIpPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateDedicatedIpPoolErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -726,34 +751,42 @@ pub struct CreateDeliverabilityTestReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateDeliverabilityTestReportErrorKind { - AccountSuspendedError(crate::error::AccountSuspendedError), - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - LimitExceededError(crate::error::LimitExceededError), - MailFromDomainNotVerifiedError(crate::error::MailFromDomainNotVerifiedError), + AccountSuspendedException(crate::error::AccountSuspendedException), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + LimitExceededException(crate::error::LimitExceededException), + MailFromDomainNotVerifiedException(crate::error::MailFromDomainNotVerifiedException), MessageRejected(crate::error::MessageRejected), - NotFoundError(crate::error::NotFoundError), - SendingPausedError(crate::error::SendingPausedError), - TooManyRequestsError(crate::error::TooManyRequestsError), + NotFoundException(crate::error::NotFoundException), + SendingPausedException(crate::error::SendingPausedException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateDeliverabilityTestReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateDeliverabilityTestReportErrorKind::AccountSuspendedError(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::ConcurrentModificationError(_inner) => { + CreateDeliverabilityTestReportErrorKind::AccountSuspendedException(_inner) => { + _inner.fmt(f) + } + CreateDeliverabilityTestReportErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateDeliverabilityTestReportErrorKind::ConcurrentModificationException(_inner) => { _inner.fmt(f) } - CreateDeliverabilityTestReportErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedError(_inner) => { + CreateDeliverabilityTestReportErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedException(_inner) => { _inner.fmt(f) } CreateDeliverabilityTestReportErrorKind::MessageRejected(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::SendingPausedError(_inner) => _inner.fmt(f), - CreateDeliverabilityTestReportErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateDeliverabilityTestReportErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateDeliverabilityTestReportErrorKind::SendingPausedException(_inner) => { + _inner.fmt(f) + } + CreateDeliverabilityTestReportErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } CreateDeliverabilityTestReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -802,34 +835,34 @@ impl CreateDeliverabilityTestReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_account_suspended_error(&self) -> bool { + pub fn is_account_suspended_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::AccountSuspendedError(_) + CreateDeliverabilityTestReportErrorKind::AccountSuspendedException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::BadRequestError(_) + CreateDeliverabilityTestReportErrorKind::BadRequestException(_) ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::ConcurrentModificationError(_) + CreateDeliverabilityTestReportErrorKind::ConcurrentModificationException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::LimitExceededError(_) + CreateDeliverabilityTestReportErrorKind::LimitExceededException(_) ) } - pub fn is_mail_from_domain_not_verified_error(&self) -> bool { + pub fn is_mail_from_domain_not_verified_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedError(_) + CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedException(_) ) } pub fn is_message_rejected(&self) -> bool { @@ -838,41 +871,45 @@ impl CreateDeliverabilityTestReportError { CreateDeliverabilityTestReportErrorKind::MessageRejected(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::NotFoundError(_) + CreateDeliverabilityTestReportErrorKind::NotFoundException(_) ) } - pub fn is_sending_paused_error(&self) -> bool { + pub fn is_sending_paused_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::SendingPausedError(_) + CreateDeliverabilityTestReportErrorKind::SendingPausedException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateDeliverabilityTestReportErrorKind::TooManyRequestsError(_) + CreateDeliverabilityTestReportErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateDeliverabilityTestReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateDeliverabilityTestReportErrorKind::AccountSuspendedError(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::BadRequestError(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::ConcurrentModificationError(_inner) => { + CreateDeliverabilityTestReportErrorKind::AccountSuspendedException(_inner) => { + Some(_inner) + } + CreateDeliverabilityTestReportErrorKind::BadRequestException(_inner) => Some(_inner), + CreateDeliverabilityTestReportErrorKind::ConcurrentModificationException(_inner) => { Some(_inner) } - CreateDeliverabilityTestReportErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedError(_inner) => { + CreateDeliverabilityTestReportErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedException(_inner) => { Some(_inner) } CreateDeliverabilityTestReportErrorKind::MessageRejected(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::NotFoundError(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::SendingPausedError(_inner) => Some(_inner), - CreateDeliverabilityTestReportErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateDeliverabilityTestReportErrorKind::NotFoundException(_inner) => Some(_inner), + CreateDeliverabilityTestReportErrorKind::SendingPausedException(_inner) => Some(_inner), + CreateDeliverabilityTestReportErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } CreateDeliverabilityTestReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -887,24 +924,24 @@ pub struct CreateEmailIdentityError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateEmailIdentityErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateEmailIdentityError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateEmailIdentityErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateEmailIdentityErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateEmailIdentityErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - CreateEmailIdentityErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateEmailIdentityErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateEmailIdentityErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateEmailIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateEmailIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -953,46 +990,52 @@ impl CreateEmailIdentityError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityErrorKind::AlreadyExistsError(_) + CreateEmailIdentityErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateEmailIdentityErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateEmailIdentityErrorKind::BadRequestException(_) + ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityErrorKind::ConcurrentModificationError(_) + CreateEmailIdentityErrorKind::ConcurrentModificationException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityErrorKind::LimitExceededError(_) + CreateEmailIdentityErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, CreateEmailIdentityErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + CreateEmailIdentityErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityErrorKind::TooManyRequestsError(_) + CreateEmailIdentityErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateEmailIdentityError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateEmailIdentityErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateEmailIdentityErrorKind::BadRequestError(_inner) => Some(_inner), - CreateEmailIdentityErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - CreateEmailIdentityErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateEmailIdentityErrorKind::NotFoundError(_inner) => Some(_inner), - CreateEmailIdentityErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::BadRequestException(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::NotFoundException(_inner) => Some(_inner), + CreateEmailIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateEmailIdentityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1007,22 +1050,22 @@ pub struct CreateEmailIdentityPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateEmailIdentityPolicyErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateEmailIdentityPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateEmailIdentityPolicyErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateEmailIdentityPolicyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateEmailIdentityPolicyErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateEmailIdentityPolicyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - CreateEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateEmailIdentityPolicyErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateEmailIdentityPolicyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateEmailIdentityPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateEmailIdentityPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + CreateEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateEmailIdentityPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1071,45 +1114,45 @@ impl CreateEmailIdentityPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityPolicyErrorKind::AlreadyExistsError(_) + CreateEmailIdentityPolicyErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityPolicyErrorKind::BadRequestError(_) + CreateEmailIdentityPolicyErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityPolicyErrorKind::LimitExceededError(_) + CreateEmailIdentityPolicyErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityPolicyErrorKind::NotFoundError(_) + CreateEmailIdentityPolicyErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateEmailIdentityPolicyErrorKind::TooManyRequestsError(_) + CreateEmailIdentityPolicyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateEmailIdentityPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateEmailIdentityPolicyErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateEmailIdentityPolicyErrorKind::BadRequestError(_inner) => Some(_inner), - CreateEmailIdentityPolicyErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateEmailIdentityPolicyErrorKind::NotFoundError(_inner) => Some(_inner), - CreateEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateEmailIdentityPolicyErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateEmailIdentityPolicyErrorKind::BadRequestException(_inner) => Some(_inner), + CreateEmailIdentityPolicyErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateEmailIdentityPolicyErrorKind::NotFoundException(_inner) => Some(_inner), + CreateEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateEmailIdentityPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1124,20 +1167,20 @@ pub struct CreateEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateEmailTemplateErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateEmailTemplateErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - CreateEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateEmailTemplateErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateEmailTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateEmailTemplateErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f), + CreateEmailTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateEmailTemplateErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateEmailTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1186,35 +1229,38 @@ impl CreateEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateEmailTemplateErrorKind::AlreadyExistsError(_) + CreateEmailTemplateErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateEmailTemplateErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + CreateEmailTemplateErrorKind::BadRequestException(_) + ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateEmailTemplateErrorKind::LimitExceededError(_) + CreateEmailTemplateErrorKind::LimitExceededException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateEmailTemplateErrorKind::TooManyRequestsError(_) + CreateEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateEmailTemplateErrorKind::AlreadyExistsError(_inner) => Some(_inner), - CreateEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - CreateEmailTemplateErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateEmailTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateEmailTemplateErrorKind::AlreadyExistsException(_inner) => Some(_inner), + CreateEmailTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + CreateEmailTemplateErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateEmailTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1229,18 +1275,18 @@ pub struct CreateImportJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateImportJobErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateImportJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateImportJobErrorKind::BadRequestError(_inner) => _inner.fmt(f), - CreateImportJobErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - CreateImportJobErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + CreateImportJobErrorKind::BadRequestException(_inner) => _inner.fmt(f), + CreateImportJobErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + CreateImportJobErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), CreateImportJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1289,25 +1335,28 @@ impl CreateImportJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, CreateImportJobErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, CreateImportJobErrorKind::BadRequestException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateImportJobErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateImportJobErrorKind::LimitExceededException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - CreateImportJobErrorKind::TooManyRequestsError(_) + CreateImportJobErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for CreateImportJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateImportJobErrorKind::BadRequestError(_inner) => Some(_inner), - CreateImportJobErrorKind::LimitExceededError(_inner) => Some(_inner), - CreateImportJobErrorKind::TooManyRequestsError(_inner) => Some(_inner), + CreateImportJobErrorKind::BadRequestException(_inner) => Some(_inner), + CreateImportJobErrorKind::LimitExceededException(_inner) => Some(_inner), + CreateImportJobErrorKind::TooManyRequestsException(_inner) => Some(_inner), CreateImportJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1322,20 +1371,22 @@ pub struct DeleteConfigurationSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteConfigurationSetErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteConfigurationSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteConfigurationSetErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteConfigurationSetErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteConfigurationSetErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteConfigurationSetErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteConfigurationSetErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteConfigurationSetErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + DeleteConfigurationSetErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteConfigurationSetErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteConfigurationSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1384,38 +1435,40 @@ impl DeleteConfigurationSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetErrorKind::BadRequestError(_) + DeleteConfigurationSetErrorKind::BadRequestException(_) ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetErrorKind::ConcurrentModificationError(_) + DeleteConfigurationSetErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetErrorKind::NotFoundError(_) + DeleteConfigurationSetErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetErrorKind::TooManyRequestsError(_) + DeleteConfigurationSetErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteConfigurationSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteConfigurationSetErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteConfigurationSetErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteConfigurationSetErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteConfigurationSetErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteConfigurationSetErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteConfigurationSetErrorKind::ConcurrentModificationException(_inner) => { + Some(_inner) + } + DeleteConfigurationSetErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteConfigurationSetErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteConfigurationSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1430,20 +1483,22 @@ pub struct DeleteConfigurationSetEventDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteConfigurationSetEventDestinationErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteConfigurationSetEventDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + DeleteConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - DeleteConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + DeleteConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } DeleteConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1497,33 +1552,35 @@ impl DeleteConfigurationSetEventDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetEventDestinationErrorKind::BadRequestError(_) + DeleteConfigurationSetEventDestinationErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetEventDestinationErrorKind::NotFoundError(_) + DeleteConfigurationSetEventDestinationErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_) + DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteConfigurationSetEventDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + DeleteConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { Some(_inner) } - DeleteConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + DeleteConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } DeleteConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => { @@ -1542,18 +1599,18 @@ pub struct DeleteContactError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteContactErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteContactError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteContactErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteContactErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteContactErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteContactErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteContactErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteContactErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteContactErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1602,22 +1659,25 @@ impl DeleteContactError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteContactErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, DeleteContactErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteContactErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteContactErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, DeleteContactErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + DeleteContactErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for DeleteContactError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteContactErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteContactErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteContactErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteContactErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteContactErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteContactErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteContactErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1632,20 +1692,20 @@ pub struct DeleteContactListError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteContactListErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteContactListError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteContactListErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteContactListErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteContactListErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteContactListErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteContactListErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteContactListErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + DeleteContactListErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteContactListErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteContactListErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1694,32 +1754,35 @@ impl DeleteContactListError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteContactListErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteContactListErrorKind::BadRequestException(_) + ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteContactListErrorKind::ConcurrentModificationError(_) + DeleteContactListErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteContactListErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteContactListErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteContactListErrorKind::TooManyRequestsError(_) + DeleteContactListErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteContactListError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteContactListErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteContactListErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteContactListErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteContactListErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteContactListErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteContactListErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + DeleteContactListErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteContactListErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteContactListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1734,20 +1797,22 @@ pub struct DeleteCustomVerificationEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteCustomVerificationEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteCustomVerificationEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => { + DeleteCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + DeleteCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { _inner.fmt(f) } - DeleteCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } DeleteCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -1801,31 +1866,35 @@ impl DeleteCustomVerificationEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomVerificationEmailTemplateErrorKind::BadRequestError(_) + DeleteCustomVerificationEmailTemplateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomVerificationEmailTemplateErrorKind::NotFoundError(_) + DeleteCustomVerificationEmailTemplateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_) + DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteCustomVerificationEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + DeleteCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + DeleteCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } DeleteCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => { @@ -1844,20 +1913,22 @@ pub struct DeleteDedicatedIpPoolError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteDedicatedIpPoolErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteDedicatedIpPoolError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteDedicatedIpPoolErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteDedicatedIpPoolErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteDedicatedIpPoolErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteDedicatedIpPoolErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteDedicatedIpPoolErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteDedicatedIpPoolErrorKind::ConcurrentModificationException(_inner) => { + _inner.fmt(f) + } + DeleteDedicatedIpPoolErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteDedicatedIpPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteDedicatedIpPoolErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1906,35 +1977,38 @@ impl DeleteDedicatedIpPoolError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteDedicatedIpPoolErrorKind::BadRequestError(_) + DeleteDedicatedIpPoolErrorKind::BadRequestException(_) ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteDedicatedIpPoolErrorKind::ConcurrentModificationError(_) + DeleteDedicatedIpPoolErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteDedicatedIpPoolErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteDedicatedIpPoolErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteDedicatedIpPoolErrorKind::TooManyRequestsError(_) + DeleteDedicatedIpPoolErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteDedicatedIpPoolError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteDedicatedIpPoolErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteDedicatedIpPoolErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteDedicatedIpPoolErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteDedicatedIpPoolErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteDedicatedIpPoolErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteDedicatedIpPoolErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + DeleteDedicatedIpPoolErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteDedicatedIpPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteDedicatedIpPoolErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1949,20 +2023,20 @@ pub struct DeleteEmailIdentityError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteEmailIdentityErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteEmailIdentityError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteEmailIdentityErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteEmailIdentityErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - DeleteEmailIdentityErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteEmailIdentityErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteEmailIdentityErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteEmailIdentityErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + DeleteEmailIdentityErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteEmailIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteEmailIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2011,32 +2085,38 @@ impl DeleteEmailIdentityError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteEmailIdentityErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteEmailIdentityErrorKind::BadRequestException(_) + ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailIdentityErrorKind::ConcurrentModificationError(_) + DeleteEmailIdentityErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteEmailIdentityErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteEmailIdentityErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailIdentityErrorKind::TooManyRequestsError(_) + DeleteEmailIdentityErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteEmailIdentityError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteEmailIdentityErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteEmailIdentityErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - DeleteEmailIdentityErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteEmailIdentityErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteEmailIdentityErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteEmailIdentityErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + DeleteEmailIdentityErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteEmailIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteEmailIdentityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2051,18 +2131,18 @@ pub struct DeleteEmailIdentityPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteEmailIdentityPolicyErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteEmailIdentityPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteEmailIdentityPolicyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteEmailIdentityPolicyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteEmailIdentityPolicyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteEmailIdentityPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteEmailIdentityPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2111,31 +2191,31 @@ impl DeleteEmailIdentityPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailIdentityPolicyErrorKind::BadRequestError(_) + DeleteEmailIdentityPolicyErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailIdentityPolicyErrorKind::NotFoundError(_) + DeleteEmailIdentityPolicyErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailIdentityPolicyErrorKind::TooManyRequestsError(_) + DeleteEmailIdentityPolicyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteEmailIdentityPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteEmailIdentityPolicyErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteEmailIdentityPolicyErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteEmailIdentityPolicyErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteEmailIdentityPolicyErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteEmailIdentityPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2150,18 +2230,18 @@ pub struct DeleteEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteEmailTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteEmailTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteEmailTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteEmailTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2210,25 +2290,31 @@ impl DeleteEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, DeleteEmailTemplateErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + DeleteEmailTemplateErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteEmailTemplateErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + DeleteEmailTemplateErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteEmailTemplateErrorKind::TooManyRequestsError(_) + DeleteEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteEmailTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteEmailTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteEmailTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteEmailTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2243,18 +2329,18 @@ pub struct DeleteSuppressedDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSuppressedDestinationErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSuppressedDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSuppressedDestinationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - DeleteSuppressedDestinationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + DeleteSuppressedDestinationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + DeleteSuppressedDestinationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), DeleteSuppressedDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2303,31 +2389,31 @@ impl DeleteSuppressedDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - DeleteSuppressedDestinationErrorKind::BadRequestError(_) + DeleteSuppressedDestinationErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteSuppressedDestinationErrorKind::NotFoundError(_) + DeleteSuppressedDestinationErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - DeleteSuppressedDestinationErrorKind::TooManyRequestsError(_) + DeleteSuppressedDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for DeleteSuppressedDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSuppressedDestinationErrorKind::BadRequestError(_inner) => Some(_inner), - DeleteSuppressedDestinationErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + DeleteSuppressedDestinationErrorKind::BadRequestException(_inner) => Some(_inner), + DeleteSuppressedDestinationErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => Some(_inner), DeleteSuppressedDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2342,16 +2428,16 @@ pub struct GetAccountError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAccountErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetAccountError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAccountErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetAccountErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetAccountErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetAccountErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetAccountErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2400,18 +2486,18 @@ impl GetAccountError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetAccountErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetAccountErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetAccountErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetAccountErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for GetAccountError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAccountErrorKind::BadRequestError(_inner) => Some(_inner), - GetAccountErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetAccountErrorKind::BadRequestException(_inner) => Some(_inner), + GetAccountErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2426,18 +2512,18 @@ pub struct GetBlacklistReportsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetBlacklistReportsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetBlacklistReportsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetBlacklistReportsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetBlacklistReportsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetBlacklistReportsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetBlacklistReportsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetBlacklistReportsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetBlacklistReportsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetBlacklistReportsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2486,25 +2572,31 @@ impl GetBlacklistReportsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetBlacklistReportsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetBlacklistReportsErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetBlacklistReportsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetBlacklistReportsErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetBlacklistReportsErrorKind::TooManyRequestsError(_) + GetBlacklistReportsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetBlacklistReportsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetBlacklistReportsErrorKind::BadRequestError(_inner) => Some(_inner), - GetBlacklistReportsErrorKind::NotFoundError(_inner) => Some(_inner), - GetBlacklistReportsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetBlacklistReportsErrorKind::BadRequestException(_inner) => Some(_inner), + GetBlacklistReportsErrorKind::NotFoundException(_inner) => Some(_inner), + GetBlacklistReportsErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetBlacklistReportsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2519,18 +2611,18 @@ pub struct GetConfigurationSetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetConfigurationSetErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetConfigurationSetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetConfigurationSetErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetConfigurationSetErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetConfigurationSetErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetConfigurationSetErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetConfigurationSetErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetConfigurationSetErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetConfigurationSetErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2579,25 +2671,31 @@ impl GetConfigurationSetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetConfigurationSetErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetConfigurationSetErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetConfigurationSetErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetConfigurationSetErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetConfigurationSetErrorKind::TooManyRequestsError(_) + GetConfigurationSetErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetConfigurationSetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetConfigurationSetErrorKind::BadRequestError(_inner) => Some(_inner), - GetConfigurationSetErrorKind::NotFoundError(_inner) => Some(_inner), - GetConfigurationSetErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetConfigurationSetErrorKind::BadRequestException(_inner) => Some(_inner), + GetConfigurationSetErrorKind::NotFoundException(_inner) => Some(_inner), + GetConfigurationSetErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetConfigurationSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2612,18 +2710,22 @@ pub struct GetConfigurationSetEventDestinationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetConfigurationSetEventDestinationsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetConfigurationSetEventDestinationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetConfigurationSetEventDestinationsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetConfigurationSetEventDestinationsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsError(_inner) => { + GetConfigurationSetEventDestinationsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + GetConfigurationSetEventDestinationsErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } GetConfigurationSetEventDestinationsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2677,31 +2779,35 @@ impl GetConfigurationSetEventDestinationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetConfigurationSetEventDestinationsErrorKind::BadRequestError(_) + GetConfigurationSetEventDestinationsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetConfigurationSetEventDestinationsErrorKind::NotFoundError(_) + GetConfigurationSetEventDestinationsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsError(_) + GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetConfigurationSetEventDestinationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetConfigurationSetEventDestinationsErrorKind::BadRequestError(_inner) => Some(_inner), - GetConfigurationSetEventDestinationsErrorKind::NotFoundError(_inner) => Some(_inner), - GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsError(_inner) => { + GetConfigurationSetEventDestinationsErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + GetConfigurationSetEventDestinationsErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } GetConfigurationSetEventDestinationsErrorKind::Unhandled(_inner) => { @@ -2720,18 +2826,18 @@ pub struct GetContactError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetContactErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetContactError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetContactErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetContactErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetContactErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetContactErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetContactErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetContactErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetContactErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2780,22 +2886,22 @@ impl GetContactError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetContactErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetContactErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetContactErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetContactErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetContactErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, GetContactErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for GetContactError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetContactErrorKind::BadRequestError(_inner) => Some(_inner), - GetContactErrorKind::NotFoundError(_inner) => Some(_inner), - GetContactErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetContactErrorKind::BadRequestException(_inner) => Some(_inner), + GetContactErrorKind::NotFoundException(_inner) => Some(_inner), + GetContactErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetContactErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2810,18 +2916,18 @@ pub struct GetContactListError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetContactListErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetContactListError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetContactListErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetContactListErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetContactListErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetContactListErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetContactListErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetContactListErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetContactListErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2870,22 +2976,25 @@ impl GetContactListError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetContactListErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetContactListErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetContactListErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetContactListErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetContactListErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetContactListErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for GetContactListError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetContactListErrorKind::BadRequestError(_inner) => Some(_inner), - GetContactListErrorKind::NotFoundError(_inner) => Some(_inner), - GetContactListErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetContactListErrorKind::BadRequestException(_inner) => Some(_inner), + GetContactListErrorKind::NotFoundException(_inner) => Some(_inner), + GetContactListErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetContactListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2900,18 +3009,20 @@ pub struct GetCustomVerificationEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetCustomVerificationEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetCustomVerificationEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + GetCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + GetCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } GetCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2965,31 +3076,33 @@ impl GetCustomVerificationEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetCustomVerificationEmailTemplateErrorKind::BadRequestError(_) + GetCustomVerificationEmailTemplateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetCustomVerificationEmailTemplateErrorKind::NotFoundError(_) + GetCustomVerificationEmailTemplateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_) + GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetCustomVerificationEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - GetCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + GetCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + GetCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } GetCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -3006,18 +3119,18 @@ pub struct GetDedicatedIpError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDedicatedIpErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDedicatedIpError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDedicatedIpErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDedicatedIpErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDedicatedIpErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetDedicatedIpErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDedicatedIpErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDedicatedIpErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetDedicatedIpErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3066,22 +3179,25 @@ impl GetDedicatedIpError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetDedicatedIpErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetDedicatedIpErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDedicatedIpErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDedicatedIpErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetDedicatedIpErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetDedicatedIpErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for GetDedicatedIpError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDedicatedIpErrorKind::BadRequestError(_inner) => Some(_inner), - GetDedicatedIpErrorKind::NotFoundError(_inner) => Some(_inner), - GetDedicatedIpErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetDedicatedIpErrorKind::BadRequestException(_inner) => Some(_inner), + GetDedicatedIpErrorKind::NotFoundException(_inner) => Some(_inner), + GetDedicatedIpErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetDedicatedIpErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3096,18 +3212,18 @@ pub struct GetDedicatedIpsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDedicatedIpsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDedicatedIpsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDedicatedIpsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDedicatedIpsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDedicatedIpsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetDedicatedIpsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDedicatedIpsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDedicatedIpsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetDedicatedIpsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3156,25 +3272,25 @@ impl GetDedicatedIpsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetDedicatedIpsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetDedicatedIpsErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetDedicatedIpsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetDedicatedIpsErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDedicatedIpsErrorKind::TooManyRequestsError(_) + GetDedicatedIpsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetDedicatedIpsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDedicatedIpsErrorKind::BadRequestError(_inner) => Some(_inner), - GetDedicatedIpsErrorKind::NotFoundError(_inner) => Some(_inner), - GetDedicatedIpsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetDedicatedIpsErrorKind::BadRequestException(_inner) => Some(_inner), + GetDedicatedIpsErrorKind::NotFoundException(_inner) => Some(_inner), + GetDedicatedIpsErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetDedicatedIpsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3189,18 +3305,22 @@ pub struct GetDeliverabilityDashboardOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDeliverabilityDashboardOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDeliverabilityDashboardOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDeliverabilityDashboardOptionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDeliverabilityDashboardOptionsErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsError(_inner) => { + GetDeliverabilityDashboardOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + GetDeliverabilityDashboardOptionsErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } GetDeliverabilityDashboardOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -3254,31 +3374,33 @@ impl GetDeliverabilityDashboardOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityDashboardOptionsErrorKind::BadRequestError(_) + GetDeliverabilityDashboardOptionsErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityDashboardOptionsErrorKind::LimitExceededError(_) + GetDeliverabilityDashboardOptionsErrorKind::LimitExceededException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsError(_) + GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetDeliverabilityDashboardOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDeliverabilityDashboardOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - GetDeliverabilityDashboardOptionsErrorKind::LimitExceededError(_inner) => Some(_inner), - GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsError(_inner) => { + GetDeliverabilityDashboardOptionsErrorKind::BadRequestException(_inner) => Some(_inner), + GetDeliverabilityDashboardOptionsErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } GetDeliverabilityDashboardOptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -3295,18 +3417,18 @@ pub struct GetDeliverabilityTestReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDeliverabilityTestReportErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDeliverabilityTestReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDeliverabilityTestReportErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDeliverabilityTestReportErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDeliverabilityTestReportErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetDeliverabilityTestReportErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDeliverabilityTestReportErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDeliverabilityTestReportErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetDeliverabilityTestReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3355,31 +3477,31 @@ impl GetDeliverabilityTestReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityTestReportErrorKind::BadRequestError(_) + GetDeliverabilityTestReportErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityTestReportErrorKind::NotFoundError(_) + GetDeliverabilityTestReportErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDeliverabilityTestReportErrorKind::TooManyRequestsError(_) + GetDeliverabilityTestReportErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetDeliverabilityTestReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDeliverabilityTestReportErrorKind::BadRequestError(_inner) => Some(_inner), - GetDeliverabilityTestReportErrorKind::NotFoundError(_inner) => Some(_inner), - GetDeliverabilityTestReportErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetDeliverabilityTestReportErrorKind::BadRequestException(_inner) => Some(_inner), + GetDeliverabilityTestReportErrorKind::NotFoundException(_inner) => Some(_inner), + GetDeliverabilityTestReportErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetDeliverabilityTestReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3394,18 +3516,20 @@ pub struct GetDomainDeliverabilityCampaignError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDomainDeliverabilityCampaignErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDomainDeliverabilityCampaignError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDomainDeliverabilityCampaignErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDomainDeliverabilityCampaignErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetDomainDeliverabilityCampaignErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDomainDeliverabilityCampaignErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } GetDomainDeliverabilityCampaignErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3454,31 +3578,33 @@ impl GetDomainDeliverabilityCampaignError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDomainDeliverabilityCampaignErrorKind::BadRequestError(_) + GetDomainDeliverabilityCampaignErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetDomainDeliverabilityCampaignErrorKind::NotFoundError(_) + GetDomainDeliverabilityCampaignErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsError(_) + GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetDomainDeliverabilityCampaignError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDomainDeliverabilityCampaignErrorKind::BadRequestError(_inner) => Some(_inner), - GetDomainDeliverabilityCampaignErrorKind::NotFoundError(_inner) => Some(_inner), - GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetDomainDeliverabilityCampaignErrorKind::BadRequestException(_inner) => Some(_inner), + GetDomainDeliverabilityCampaignErrorKind::NotFoundException(_inner) => Some(_inner), + GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } GetDomainDeliverabilityCampaignErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3493,18 +3619,18 @@ pub struct GetDomainStatisticsReportError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetDomainStatisticsReportErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetDomainStatisticsReportError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetDomainStatisticsReportErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetDomainStatisticsReportErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetDomainStatisticsReportErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetDomainStatisticsReportErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetDomainStatisticsReportErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetDomainStatisticsReportErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetDomainStatisticsReportErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3553,31 +3679,31 @@ impl GetDomainStatisticsReportError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetDomainStatisticsReportErrorKind::BadRequestError(_) + GetDomainStatisticsReportErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetDomainStatisticsReportErrorKind::NotFoundError(_) + GetDomainStatisticsReportErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetDomainStatisticsReportErrorKind::TooManyRequestsError(_) + GetDomainStatisticsReportErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetDomainStatisticsReportError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetDomainStatisticsReportErrorKind::BadRequestError(_inner) => Some(_inner), - GetDomainStatisticsReportErrorKind::NotFoundError(_inner) => Some(_inner), - GetDomainStatisticsReportErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetDomainStatisticsReportErrorKind::BadRequestException(_inner) => Some(_inner), + GetDomainStatisticsReportErrorKind::NotFoundException(_inner) => Some(_inner), + GetDomainStatisticsReportErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetDomainStatisticsReportErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3592,18 +3718,18 @@ pub struct GetEmailIdentityError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetEmailIdentityErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetEmailIdentityError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetEmailIdentityErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetEmailIdentityErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetEmailIdentityErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetEmailIdentityErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetEmailIdentityErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetEmailIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetEmailIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3652,25 +3778,28 @@ impl GetEmailIdentityError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetEmailIdentityErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetEmailIdentityErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetEmailIdentityErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetEmailIdentityErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetEmailIdentityErrorKind::TooManyRequestsError(_) + GetEmailIdentityErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetEmailIdentityError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetEmailIdentityErrorKind::BadRequestError(_inner) => Some(_inner), - GetEmailIdentityErrorKind::NotFoundError(_inner) => Some(_inner), - GetEmailIdentityErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetEmailIdentityErrorKind::BadRequestException(_inner) => Some(_inner), + GetEmailIdentityErrorKind::NotFoundException(_inner) => Some(_inner), + GetEmailIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetEmailIdentityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3685,18 +3814,18 @@ pub struct GetEmailIdentityPoliciesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetEmailIdentityPoliciesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetEmailIdentityPoliciesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetEmailIdentityPoliciesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetEmailIdentityPoliciesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetEmailIdentityPoliciesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetEmailIdentityPoliciesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetEmailIdentityPoliciesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetEmailIdentityPoliciesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetEmailIdentityPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3745,31 +3874,31 @@ impl GetEmailIdentityPoliciesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetEmailIdentityPoliciesErrorKind::BadRequestError(_) + GetEmailIdentityPoliciesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetEmailIdentityPoliciesErrorKind::NotFoundError(_) + GetEmailIdentityPoliciesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetEmailIdentityPoliciesErrorKind::TooManyRequestsError(_) + GetEmailIdentityPoliciesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetEmailIdentityPoliciesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetEmailIdentityPoliciesErrorKind::BadRequestError(_inner) => Some(_inner), - GetEmailIdentityPoliciesErrorKind::NotFoundError(_inner) => Some(_inner), - GetEmailIdentityPoliciesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetEmailIdentityPoliciesErrorKind::BadRequestException(_inner) => Some(_inner), + GetEmailIdentityPoliciesErrorKind::NotFoundException(_inner) => Some(_inner), + GetEmailIdentityPoliciesErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetEmailIdentityPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3784,18 +3913,18 @@ pub struct GetEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetEmailTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetEmailTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetEmailTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetEmailTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3844,25 +3973,28 @@ impl GetEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetEmailTemplateErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + GetEmailTemplateErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetEmailTemplateErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetEmailTemplateErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetEmailTemplateErrorKind::TooManyRequestsError(_) + GetEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - GetEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - GetEmailTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetEmailTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + GetEmailTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + GetEmailTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3877,18 +4009,18 @@ pub struct GetImportJobError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetImportJobErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetImportJobError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetImportJobErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetImportJobErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetImportJobErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetImportJobErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetImportJobErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetImportJobErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetImportJobErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3937,22 +4069,25 @@ impl GetImportJobError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, GetImportJobErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, GetImportJobErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetImportJobErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, GetImportJobErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, GetImportJobErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + GetImportJobErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for GetImportJobError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetImportJobErrorKind::BadRequestError(_inner) => Some(_inner), - GetImportJobErrorKind::NotFoundError(_inner) => Some(_inner), - GetImportJobErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetImportJobErrorKind::BadRequestException(_inner) => Some(_inner), + GetImportJobErrorKind::NotFoundException(_inner) => Some(_inner), + GetImportJobErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetImportJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3967,18 +4102,18 @@ pub struct GetSuppressedDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSuppressedDestinationErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSuppressedDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSuppressedDestinationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - GetSuppressedDestinationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - GetSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + GetSuppressedDestinationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + GetSuppressedDestinationErrorKind::NotFoundException(_inner) => _inner.fmt(f), + GetSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), GetSuppressedDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4027,31 +4162,31 @@ impl GetSuppressedDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - GetSuppressedDestinationErrorKind::BadRequestError(_) + GetSuppressedDestinationErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetSuppressedDestinationErrorKind::NotFoundError(_) + GetSuppressedDestinationErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - GetSuppressedDestinationErrorKind::TooManyRequestsError(_) + GetSuppressedDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for GetSuppressedDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSuppressedDestinationErrorKind::BadRequestError(_inner) => Some(_inner), - GetSuppressedDestinationErrorKind::NotFoundError(_inner) => Some(_inner), - GetSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + GetSuppressedDestinationErrorKind::BadRequestException(_inner) => Some(_inner), + GetSuppressedDestinationErrorKind::NotFoundException(_inner) => Some(_inner), + GetSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => Some(_inner), GetSuppressedDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4066,16 +4201,16 @@ pub struct ListConfigurationSetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListConfigurationSetsErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListConfigurationSetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListConfigurationSetsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListConfigurationSetsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListConfigurationSetsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListConfigurationSetsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListConfigurationSetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4124,24 +4259,24 @@ impl ListConfigurationSetsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListConfigurationSetsErrorKind::BadRequestError(_) + ListConfigurationSetsErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListConfigurationSetsErrorKind::TooManyRequestsError(_) + ListConfigurationSetsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListConfigurationSetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListConfigurationSetsErrorKind::BadRequestError(_inner) => Some(_inner), - ListConfigurationSetsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListConfigurationSetsErrorKind::BadRequestException(_inner) => Some(_inner), + ListConfigurationSetsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListConfigurationSetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4156,16 +4291,16 @@ pub struct ListContactListsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListContactListsErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListContactListsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListContactListsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListContactListsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListContactListsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListContactListsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListContactListsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4214,21 +4349,24 @@ impl ListContactListsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListContactListsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListContactListsErrorKind::BadRequestException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListContactListsErrorKind::TooManyRequestsError(_) + ListContactListsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListContactListsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListContactListsErrorKind::BadRequestError(_inner) => Some(_inner), - ListContactListsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListContactListsErrorKind::BadRequestException(_inner) => Some(_inner), + ListContactListsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListContactListsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4243,18 +4381,18 @@ pub struct ListContactsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListContactsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListContactsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListContactsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListContactsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListContactsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListContactsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListContactsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListContactsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListContactsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4303,22 +4441,25 @@ impl ListContactsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListContactsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListContactsErrorKind::BadRequestException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListContactsErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, ListContactsErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListContactsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListContactsErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListContactsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListContactsErrorKind::BadRequestError(_inner) => Some(_inner), - ListContactsErrorKind::NotFoundError(_inner) => Some(_inner), - ListContactsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListContactsErrorKind::BadRequestException(_inner) => Some(_inner), + ListContactsErrorKind::NotFoundException(_inner) => Some(_inner), + ListContactsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListContactsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4333,16 +4474,18 @@ pub struct ListCustomVerificationEmailTemplatesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListCustomVerificationEmailTemplatesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListCustomVerificationEmailTemplatesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListCustomVerificationEmailTemplatesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsError(_inner) => { + ListCustomVerificationEmailTemplatesErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } ListCustomVerificationEmailTemplatesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4396,24 +4539,26 @@ impl ListCustomVerificationEmailTemplatesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListCustomVerificationEmailTemplatesErrorKind::BadRequestError(_) + ListCustomVerificationEmailTemplatesErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsError(_) + ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListCustomVerificationEmailTemplatesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListCustomVerificationEmailTemplatesErrorKind::BadRequestError(_inner) => Some(_inner), - ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsError(_inner) => { + ListCustomVerificationEmailTemplatesErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } ListCustomVerificationEmailTemplatesErrorKind::Unhandled(_inner) => { @@ -4432,16 +4577,16 @@ pub struct ListDedicatedIpPoolsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListDedicatedIpPoolsErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListDedicatedIpPoolsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListDedicatedIpPoolsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListDedicatedIpPoolsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListDedicatedIpPoolsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListDedicatedIpPoolsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListDedicatedIpPoolsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4490,24 +4635,24 @@ impl ListDedicatedIpPoolsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListDedicatedIpPoolsErrorKind::BadRequestError(_) + ListDedicatedIpPoolsErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListDedicatedIpPoolsErrorKind::TooManyRequestsError(_) + ListDedicatedIpPoolsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListDedicatedIpPoolsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListDedicatedIpPoolsErrorKind::BadRequestError(_inner) => Some(_inner), - ListDedicatedIpPoolsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListDedicatedIpPoolsErrorKind::BadRequestException(_inner) => Some(_inner), + ListDedicatedIpPoolsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListDedicatedIpPoolsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4522,18 +4667,20 @@ pub struct ListDeliverabilityTestReportsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListDeliverabilityTestReportsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListDeliverabilityTestReportsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListDeliverabilityTestReportsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListDeliverabilityTestReportsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListDeliverabilityTestReportsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListDeliverabilityTestReportsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListDeliverabilityTestReportsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListDeliverabilityTestReportsErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } ListDeliverabilityTestReportsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4582,31 +4729,33 @@ impl ListDeliverabilityTestReportsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListDeliverabilityTestReportsErrorKind::BadRequestError(_) + ListDeliverabilityTestReportsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - ListDeliverabilityTestReportsErrorKind::NotFoundError(_) + ListDeliverabilityTestReportsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListDeliverabilityTestReportsErrorKind::TooManyRequestsError(_) + ListDeliverabilityTestReportsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListDeliverabilityTestReportsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListDeliverabilityTestReportsErrorKind::BadRequestError(_inner) => Some(_inner), - ListDeliverabilityTestReportsErrorKind::NotFoundError(_inner) => Some(_inner), - ListDeliverabilityTestReportsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListDeliverabilityTestReportsErrorKind::BadRequestException(_inner) => Some(_inner), + ListDeliverabilityTestReportsErrorKind::NotFoundException(_inner) => Some(_inner), + ListDeliverabilityTestReportsErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } ListDeliverabilityTestReportsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4621,18 +4770,20 @@ pub struct ListDomainDeliverabilityCampaignsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListDomainDeliverabilityCampaignsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListDomainDeliverabilityCampaignsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListDomainDeliverabilityCampaignsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListDomainDeliverabilityCampaignsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsError(_inner) => { + ListDomainDeliverabilityCampaignsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + ListDomainDeliverabilityCampaignsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } ListDomainDeliverabilityCampaignsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -4686,31 +4837,31 @@ impl ListDomainDeliverabilityCampaignsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListDomainDeliverabilityCampaignsErrorKind::BadRequestError(_) + ListDomainDeliverabilityCampaignsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - ListDomainDeliverabilityCampaignsErrorKind::NotFoundError(_) + ListDomainDeliverabilityCampaignsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsError(_) + ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListDomainDeliverabilityCampaignsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListDomainDeliverabilityCampaignsErrorKind::BadRequestError(_inner) => Some(_inner), - ListDomainDeliverabilityCampaignsErrorKind::NotFoundError(_inner) => Some(_inner), - ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsError(_inner) => { + ListDomainDeliverabilityCampaignsErrorKind::BadRequestException(_inner) => Some(_inner), + ListDomainDeliverabilityCampaignsErrorKind::NotFoundException(_inner) => Some(_inner), + ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } ListDomainDeliverabilityCampaignsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -4727,16 +4878,16 @@ pub struct ListEmailIdentitiesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListEmailIdentitiesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListEmailIdentitiesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListEmailIdentitiesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListEmailIdentitiesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListEmailIdentitiesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListEmailIdentitiesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListEmailIdentitiesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4785,21 +4936,24 @@ impl ListEmailIdentitiesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListEmailIdentitiesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListEmailIdentitiesErrorKind::BadRequestException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListEmailIdentitiesErrorKind::TooManyRequestsError(_) + ListEmailIdentitiesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListEmailIdentitiesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListEmailIdentitiesErrorKind::BadRequestError(_inner) => Some(_inner), - ListEmailIdentitiesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListEmailIdentitiesErrorKind::BadRequestException(_inner) => Some(_inner), + ListEmailIdentitiesErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListEmailIdentitiesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4814,16 +4968,16 @@ pub struct ListEmailTemplatesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListEmailTemplatesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListEmailTemplatesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListEmailTemplatesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListEmailTemplatesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListEmailTemplatesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListEmailTemplatesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListEmailTemplatesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4872,21 +5026,24 @@ impl ListEmailTemplatesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListEmailTemplatesErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListEmailTemplatesErrorKind::BadRequestException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListEmailTemplatesErrorKind::TooManyRequestsError(_) + ListEmailTemplatesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListEmailTemplatesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListEmailTemplatesErrorKind::BadRequestError(_inner) => Some(_inner), - ListEmailTemplatesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListEmailTemplatesErrorKind::BadRequestException(_inner) => Some(_inner), + ListEmailTemplatesErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListEmailTemplatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4901,16 +5058,16 @@ pub struct ListImportJobsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListImportJobsErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListImportJobsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListImportJobsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListImportJobsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListImportJobsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListImportJobsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListImportJobsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4959,18 +5116,21 @@ impl ListImportJobsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListImportJobsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, ListImportJobsErrorKind::BadRequestException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, ListImportJobsErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + ListImportJobsErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for ListImportJobsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListImportJobsErrorKind::BadRequestError(_inner) => Some(_inner), - ListImportJobsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListImportJobsErrorKind::BadRequestException(_inner) => Some(_inner), + ListImportJobsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListImportJobsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4985,18 +5145,18 @@ pub struct ListSuppressedDestinationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSuppressedDestinationsErrorKind { - BadRequestError(crate::error::BadRequestError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSuppressedDestinationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSuppressedDestinationsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListSuppressedDestinationsErrorKind::InvalidNextTokenError(_inner) => _inner.fmt(f), - ListSuppressedDestinationsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListSuppressedDestinationsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListSuppressedDestinationsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f), + ListSuppressedDestinationsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListSuppressedDestinationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5045,31 +5205,31 @@ impl ListSuppressedDestinationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - ListSuppressedDestinationsErrorKind::BadRequestError(_) + ListSuppressedDestinationsErrorKind::BadRequestException(_) ) } - pub fn is_invalid_next_token_error(&self) -> bool { + pub fn is_invalid_next_token_exception(&self) -> bool { matches!( &self.kind, - ListSuppressedDestinationsErrorKind::InvalidNextTokenError(_) + ListSuppressedDestinationsErrorKind::InvalidNextTokenException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListSuppressedDestinationsErrorKind::TooManyRequestsError(_) + ListSuppressedDestinationsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListSuppressedDestinationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSuppressedDestinationsErrorKind::BadRequestError(_inner) => Some(_inner), - ListSuppressedDestinationsErrorKind::InvalidNextTokenError(_inner) => Some(_inner), - ListSuppressedDestinationsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListSuppressedDestinationsErrorKind::BadRequestException(_inner) => Some(_inner), + ListSuppressedDestinationsErrorKind::InvalidNextTokenException(_inner) => Some(_inner), + ListSuppressedDestinationsErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListSuppressedDestinationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5084,18 +5244,18 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5144,25 +5304,31 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::TooManyRequestsError(_) + ListTagsForResourceErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::BadRequestError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::NotFoundError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::BadRequestException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::NotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5177,18 +5343,18 @@ pub struct PutAccountDedicatedIpWarmupAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountDedicatedIpWarmupAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountDedicatedIpWarmupAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestError(_inner) => { + PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_inner) => { + PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutAccountDedicatedIpWarmupAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5242,24 +5408,26 @@ impl PutAccountDedicatedIpWarmupAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestError(_) + PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_) + PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutAccountDedicatedIpWarmupAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_inner) => { + PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutAccountDedicatedIpWarmupAttributesErrorKind::Unhandled(_inner) => { @@ -5278,18 +5446,18 @@ pub struct PutAccountDetailsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountDetailsErrorKind { - BadRequestError(crate::error::BadRequestError), - ConflictError(crate::error::ConflictError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConflictException(crate::error::ConflictException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountDetailsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountDetailsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutAccountDetailsErrorKind::ConflictError(_inner) => _inner.fmt(f), - PutAccountDetailsErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutAccountDetailsErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutAccountDetailsErrorKind::ConflictException(_inner) => _inner.fmt(f), + PutAccountDetailsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PutAccountDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5338,25 +5506,28 @@ impl PutAccountDetailsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, PutAccountDetailsErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + PutAccountDetailsErrorKind::BadRequestException(_) + ) } - pub fn is_conflict_error(&self) -> bool { - matches!(&self.kind, PutAccountDetailsErrorKind::ConflictError(_)) + pub fn is_conflict_exception(&self) -> bool { + matches!(&self.kind, PutAccountDetailsErrorKind::ConflictException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutAccountDetailsErrorKind::TooManyRequestsError(_) + PutAccountDetailsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutAccountDetailsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountDetailsErrorKind::BadRequestError(_inner) => Some(_inner), - PutAccountDetailsErrorKind::ConflictError(_inner) => Some(_inner), - PutAccountDetailsErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutAccountDetailsErrorKind::BadRequestException(_inner) => Some(_inner), + PutAccountDetailsErrorKind::ConflictException(_inner) => Some(_inner), + PutAccountDetailsErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutAccountDetailsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5371,16 +5542,16 @@ pub struct PutAccountSendingAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountSendingAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountSendingAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountSendingAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutAccountSendingAttributesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutAccountSendingAttributesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutAccountSendingAttributesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PutAccountSendingAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5429,24 +5600,24 @@ impl PutAccountSendingAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutAccountSendingAttributesErrorKind::BadRequestError(_) + PutAccountSendingAttributesErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutAccountSendingAttributesErrorKind::TooManyRequestsError(_) + PutAccountSendingAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutAccountSendingAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountSendingAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutAccountSendingAttributesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutAccountSendingAttributesErrorKind::BadRequestException(_inner) => Some(_inner), + PutAccountSendingAttributesErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutAccountSendingAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5461,16 +5632,18 @@ pub struct PutAccountSuppressionAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutAccountSuppressionAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutAccountSuppressionAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutAccountSuppressionAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutAccountSuppressionAttributesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutAccountSuppressionAttributesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutAccountSuppressionAttributesErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } PutAccountSuppressionAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -5519,24 +5692,26 @@ impl PutAccountSuppressionAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutAccountSuppressionAttributesErrorKind::BadRequestError(_) + PutAccountSuppressionAttributesErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutAccountSuppressionAttributesErrorKind::TooManyRequestsError(_) + PutAccountSuppressionAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutAccountSuppressionAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutAccountSuppressionAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutAccountSuppressionAttributesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutAccountSuppressionAttributesErrorKind::BadRequestException(_inner) => Some(_inner), + PutAccountSuppressionAttributesErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } PutAccountSuppressionAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -5551,18 +5726,20 @@ pub struct PutConfigurationSetDeliveryOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutConfigurationSetDeliveryOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutConfigurationSetDeliveryOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutConfigurationSetDeliveryOptionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutConfigurationSetDeliveryOptionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetDeliveryOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetDeliveryOptionsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutConfigurationSetDeliveryOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5616,31 +5793,33 @@ impl PutConfigurationSetDeliveryOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetDeliveryOptionsErrorKind::BadRequestError(_) + PutConfigurationSetDeliveryOptionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetDeliveryOptionsErrorKind::NotFoundError(_) + PutConfigurationSetDeliveryOptionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsError(_) + PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutConfigurationSetDeliveryOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutConfigurationSetDeliveryOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - PutConfigurationSetDeliveryOptionsErrorKind::NotFoundError(_inner) => Some(_inner), - PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetDeliveryOptionsErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutConfigurationSetDeliveryOptionsErrorKind::NotFoundException(_inner) => Some(_inner), + PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutConfigurationSetDeliveryOptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -5657,18 +5836,22 @@ pub struct PutConfigurationSetReputationOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutConfigurationSetReputationOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutConfigurationSetReputationOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutConfigurationSetReputationOptionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutConfigurationSetReputationOptionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetReputationOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetReputationOptionsErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutConfigurationSetReputationOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5722,31 +5905,35 @@ impl PutConfigurationSetReputationOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetReputationOptionsErrorKind::BadRequestError(_) + PutConfigurationSetReputationOptionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetReputationOptionsErrorKind::NotFoundError(_) + PutConfigurationSetReputationOptionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsError(_) + PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutConfigurationSetReputationOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutConfigurationSetReputationOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - PutConfigurationSetReputationOptionsErrorKind::NotFoundError(_inner) => Some(_inner), - PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetReputationOptionsErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutConfigurationSetReputationOptionsErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutConfigurationSetReputationOptionsErrorKind::Unhandled(_inner) => { @@ -5765,18 +5952,20 @@ pub struct PutConfigurationSetSendingOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutConfigurationSetSendingOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutConfigurationSetSendingOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutConfigurationSetSendingOptionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutConfigurationSetSendingOptionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetSendingOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetSendingOptionsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutConfigurationSetSendingOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5830,31 +6019,31 @@ impl PutConfigurationSetSendingOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSendingOptionsErrorKind::BadRequestError(_) + PutConfigurationSetSendingOptionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSendingOptionsErrorKind::NotFoundError(_) + PutConfigurationSetSendingOptionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsError(_) + PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutConfigurationSetSendingOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutConfigurationSetSendingOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - PutConfigurationSetSendingOptionsErrorKind::NotFoundError(_inner) => Some(_inner), - PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetSendingOptionsErrorKind::BadRequestException(_inner) => Some(_inner), + PutConfigurationSetSendingOptionsErrorKind::NotFoundException(_inner) => Some(_inner), + PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutConfigurationSetSendingOptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -5871,20 +6060,22 @@ pub struct PutConfigurationSetSuppressionOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutConfigurationSetSuppressionOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutConfigurationSetSuppressionOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutConfigurationSetSuppressionOptionsErrorKind::BadRequestError(_inner) => { + PutConfigurationSetSuppressionOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetSuppressionOptionsErrorKind::NotFoundException(_inner) => { _inner.fmt(f) } - PutConfigurationSetSuppressionOptionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutConfigurationSetSuppressionOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -5938,31 +6129,35 @@ impl PutConfigurationSetSuppressionOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSuppressionOptionsErrorKind::BadRequestError(_) + PutConfigurationSetSuppressionOptionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSuppressionOptionsErrorKind::NotFoundError(_) + PutConfigurationSetSuppressionOptionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsError(_) + PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutConfigurationSetSuppressionOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutConfigurationSetSuppressionOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - PutConfigurationSetSuppressionOptionsErrorKind::NotFoundError(_inner) => Some(_inner), - PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetSuppressionOptionsErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutConfigurationSetSuppressionOptionsErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutConfigurationSetSuppressionOptionsErrorKind::Unhandled(_inner) => { @@ -5981,18 +6176,20 @@ pub struct PutConfigurationSetTrackingOptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutConfigurationSetTrackingOptionsErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutConfigurationSetTrackingOptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutConfigurationSetTrackingOptionsErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutConfigurationSetTrackingOptionsErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetTrackingOptionsErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutConfigurationSetTrackingOptionsErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutConfigurationSetTrackingOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6046,31 +6243,33 @@ impl PutConfigurationSetTrackingOptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetTrackingOptionsErrorKind::BadRequestError(_) + PutConfigurationSetTrackingOptionsErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetTrackingOptionsErrorKind::NotFoundError(_) + PutConfigurationSetTrackingOptionsErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsError(_) + PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutConfigurationSetTrackingOptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutConfigurationSetTrackingOptionsErrorKind::BadRequestError(_inner) => Some(_inner), - PutConfigurationSetTrackingOptionsErrorKind::NotFoundError(_inner) => Some(_inner), - PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsError(_inner) => { + PutConfigurationSetTrackingOptionsErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutConfigurationSetTrackingOptionsErrorKind::NotFoundException(_inner) => Some(_inner), + PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutConfigurationSetTrackingOptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6087,18 +6286,18 @@ pub struct PutDedicatedIpInPoolError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutDedicatedIpInPoolErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutDedicatedIpInPoolError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutDedicatedIpInPoolErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutDedicatedIpInPoolErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutDedicatedIpInPoolErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutDedicatedIpInPoolErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutDedicatedIpInPoolErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutDedicatedIpInPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PutDedicatedIpInPoolErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6147,28 +6346,31 @@ impl PutDedicatedIpInPoolError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutDedicatedIpInPoolErrorKind::BadRequestError(_) + PutDedicatedIpInPoolErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PutDedicatedIpInPoolErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + PutDedicatedIpInPoolErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutDedicatedIpInPoolErrorKind::TooManyRequestsError(_) + PutDedicatedIpInPoolErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutDedicatedIpInPoolError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutDedicatedIpInPoolErrorKind::BadRequestError(_inner) => Some(_inner), - PutDedicatedIpInPoolErrorKind::NotFoundError(_inner) => Some(_inner), - PutDedicatedIpInPoolErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutDedicatedIpInPoolErrorKind::BadRequestException(_inner) => Some(_inner), + PutDedicatedIpInPoolErrorKind::NotFoundException(_inner) => Some(_inner), + PutDedicatedIpInPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutDedicatedIpInPoolErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6183,18 +6385,20 @@ pub struct PutDedicatedIpWarmupAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutDedicatedIpWarmupAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutDedicatedIpWarmupAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutDedicatedIpWarmupAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutDedicatedIpWarmupAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutDedicatedIpWarmupAttributesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutDedicatedIpWarmupAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } PutDedicatedIpWarmupAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6243,31 +6447,33 @@ impl PutDedicatedIpWarmupAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutDedicatedIpWarmupAttributesErrorKind::BadRequestError(_) + PutDedicatedIpWarmupAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutDedicatedIpWarmupAttributesErrorKind::NotFoundError(_) + PutDedicatedIpWarmupAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_) + PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutDedicatedIpWarmupAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutDedicatedIpWarmupAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutDedicatedIpWarmupAttributesErrorKind::NotFoundError(_inner) => Some(_inner), - PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutDedicatedIpWarmupAttributesErrorKind::BadRequestException(_inner) => Some(_inner), + PutDedicatedIpWarmupAttributesErrorKind::NotFoundException(_inner) => Some(_inner), + PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } PutDedicatedIpWarmupAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6282,22 +6488,26 @@ pub struct PutDeliverabilityDashboardOptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutDeliverabilityDashboardOptionErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutDeliverabilityDashboardOptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsError(_inner) => _inner.fmt(f), - PutDeliverabilityDashboardOptionErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutDeliverabilityDashboardOptionErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - PutDeliverabilityDashboardOptionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsError(_inner) => { + PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsException(_inner) => { + _inner.fmt(f) + } + PutDeliverabilityDashboardOptionErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutDeliverabilityDashboardOptionErrorKind::LimitExceededException(_inner) => { + _inner.fmt(f) + } + PutDeliverabilityDashboardOptionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutDeliverabilityDashboardOptionErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6348,45 +6558,51 @@ impl PutDeliverabilityDashboardOptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsError(_) + PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsException(_) ) } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutDeliverabilityDashboardOptionErrorKind::BadRequestError(_) + PutDeliverabilityDashboardOptionErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutDeliverabilityDashboardOptionErrorKind::LimitExceededError(_) + PutDeliverabilityDashboardOptionErrorKind::LimitExceededException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutDeliverabilityDashboardOptionErrorKind::NotFoundError(_) + PutDeliverabilityDashboardOptionErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsError(_) + PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutDeliverabilityDashboardOptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsError(_inner) => Some(_inner), - PutDeliverabilityDashboardOptionErrorKind::BadRequestError(_inner) => Some(_inner), - PutDeliverabilityDashboardOptionErrorKind::LimitExceededError(_inner) => Some(_inner), - PutDeliverabilityDashboardOptionErrorKind::NotFoundError(_inner) => Some(_inner), - PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsException(_inner) => { + Some(_inner) + } + PutDeliverabilityDashboardOptionErrorKind::BadRequestException(_inner) => Some(_inner), + PutDeliverabilityDashboardOptionErrorKind::LimitExceededException(_inner) => { + Some(_inner) + } + PutDeliverabilityDashboardOptionErrorKind::NotFoundException(_inner) => Some(_inner), + PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } PutDeliverabilityDashboardOptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6401,24 +6617,24 @@ pub struct PutEmailIdentityConfigurationSetAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutEmailIdentityConfigurationSetAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutEmailIdentityConfigurationSetAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestError(_inner) => { - _inner.fmt(f) - } - PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundError(_inner) => { + PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundException(_inner) => { _inner.fmt(f) } + PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsException( + _inner, + ) => _inner.fmt(f), PutEmailIdentityConfigurationSetAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6470,37 +6686,37 @@ impl PutEmailIdentityConfigurationSetAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestError(_) + PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundError(_) + PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsError(_) + PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutEmailIdentityConfigurationSetAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestError(_inner) => { + PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestException(_inner) => { Some(_inner) } - PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundError(_inner) => { - Some(_inner) - } - PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundException(_inner) => { Some(_inner) } + PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsException( + _inner, + ) => Some(_inner), PutEmailIdentityConfigurationSetAttributesErrorKind::Unhandled(_inner) => { Some(_inner.as_ref()) } @@ -6517,18 +6733,20 @@ pub struct PutEmailIdentityDkimAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutEmailIdentityDkimAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutEmailIdentityDkimAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutEmailIdentityDkimAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutEmailIdentityDkimAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutEmailIdentityDkimAttributesErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutEmailIdentityDkimAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsException(_inner) => { + _inner.fmt(f) + } PutEmailIdentityDkimAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6577,31 +6795,33 @@ impl PutEmailIdentityDkimAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimAttributesErrorKind::BadRequestError(_) + PutEmailIdentityDkimAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimAttributesErrorKind::NotFoundError(_) + PutEmailIdentityDkimAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsError(_) + PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutEmailIdentityDkimAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutEmailIdentityDkimAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutEmailIdentityDkimAttributesErrorKind::NotFoundError(_inner) => Some(_inner), - PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutEmailIdentityDkimAttributesErrorKind::BadRequestException(_inner) => Some(_inner), + PutEmailIdentityDkimAttributesErrorKind::NotFoundException(_inner) => Some(_inner), + PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsException(_inner) => { + Some(_inner) + } PutEmailIdentityDkimAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6616,20 +6836,22 @@ pub struct PutEmailIdentityDkimSigningAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutEmailIdentityDkimSigningAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutEmailIdentityDkimSigningAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestError(_inner) => { + PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundException(_inner) => { _inner.fmt(f) } - PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutEmailIdentityDkimSigningAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6683,31 +6905,35 @@ impl PutEmailIdentityDkimSigningAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestError(_) + PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundError(_) + PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsError(_) + PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutEmailIdentityDkimSigningAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundError(_inner) => Some(_inner), - PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutEmailIdentityDkimSigningAttributesErrorKind::Unhandled(_inner) => { @@ -6726,18 +6952,20 @@ pub struct PutEmailIdentityFeedbackAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutEmailIdentityFeedbackAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutEmailIdentityFeedbackAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutEmailIdentityFeedbackAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutEmailIdentityFeedbackAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityFeedbackAttributesErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutEmailIdentityFeedbackAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutEmailIdentityFeedbackAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6791,31 +7019,33 @@ impl PutEmailIdentityFeedbackAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityFeedbackAttributesErrorKind::BadRequestError(_) + PutEmailIdentityFeedbackAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityFeedbackAttributesErrorKind::NotFoundError(_) + PutEmailIdentityFeedbackAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsError(_) + PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutEmailIdentityFeedbackAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutEmailIdentityFeedbackAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutEmailIdentityFeedbackAttributesErrorKind::NotFoundError(_inner) => Some(_inner), - PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityFeedbackAttributesErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutEmailIdentityFeedbackAttributesErrorKind::NotFoundException(_inner) => Some(_inner), + PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutEmailIdentityFeedbackAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6832,18 +7062,20 @@ pub struct PutEmailIdentityMailFromAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutEmailIdentityMailFromAttributesErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutEmailIdentityMailFromAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutEmailIdentityMailFromAttributesErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutEmailIdentityMailFromAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityMailFromAttributesErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + PutEmailIdentityMailFromAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } PutEmailIdentityMailFromAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -6897,31 +7129,33 @@ impl PutEmailIdentityMailFromAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityMailFromAttributesErrorKind::BadRequestError(_) + PutEmailIdentityMailFromAttributesErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityMailFromAttributesErrorKind::NotFoundError(_) + PutEmailIdentityMailFromAttributesErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsError(_) + PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutEmailIdentityMailFromAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutEmailIdentityMailFromAttributesErrorKind::BadRequestError(_inner) => Some(_inner), - PutEmailIdentityMailFromAttributesErrorKind::NotFoundError(_inner) => Some(_inner), - PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsError(_inner) => { + PutEmailIdentityMailFromAttributesErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + PutEmailIdentityMailFromAttributesErrorKind::NotFoundException(_inner) => Some(_inner), + PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } PutEmailIdentityMailFromAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -6938,16 +7172,16 @@ pub struct PutSuppressedDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutSuppressedDestinationErrorKind { - BadRequestError(crate::error::BadRequestError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutSuppressedDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutSuppressedDestinationErrorKind::BadRequestError(_inner) => _inner.fmt(f), - PutSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + PutSuppressedDestinationErrorKind::BadRequestException(_inner) => _inner.fmt(f), + PutSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), PutSuppressedDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6996,24 +7230,24 @@ impl PutSuppressedDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - PutSuppressedDestinationErrorKind::BadRequestError(_) + PutSuppressedDestinationErrorKind::BadRequestException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - PutSuppressedDestinationErrorKind::TooManyRequestsError(_) + PutSuppressedDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for PutSuppressedDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutSuppressedDestinationErrorKind::BadRequestError(_inner) => Some(_inner), - PutSuppressedDestinationErrorKind::TooManyRequestsError(_inner) => Some(_inner), + PutSuppressedDestinationErrorKind::BadRequestException(_inner) => Some(_inner), + PutSuppressedDestinationErrorKind::TooManyRequestsException(_inner) => Some(_inner), PutSuppressedDestinationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7028,28 +7262,28 @@ pub struct SendBulkEmailError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendBulkEmailErrorKind { - AccountSuspendedError(crate::error::AccountSuspendedError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - MailFromDomainNotVerifiedError(crate::error::MailFromDomainNotVerifiedError), + AccountSuspendedException(crate::error::AccountSuspendedException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + MailFromDomainNotVerifiedException(crate::error::MailFromDomainNotVerifiedException), MessageRejected(crate::error::MessageRejected), - NotFoundError(crate::error::NotFoundError), - SendingPausedError(crate::error::SendingPausedError), - TooManyRequestsError(crate::error::TooManyRequestsError), + NotFoundException(crate::error::NotFoundException), + SendingPausedException(crate::error::SendingPausedException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendBulkEmailError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendBulkEmailErrorKind::AccountSuspendedError(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::BadRequestError(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::AccountSuspendedException(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::BadRequestException(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => _inner.fmt(f), SendBulkEmailErrorKind::MessageRejected(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::NotFoundError(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::SendingPausedError(_inner) => _inner.fmt(f), - SendBulkEmailErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::NotFoundException(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::SendingPausedException(_inner) => _inner.fmt(f), + SendBulkEmailErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), SendBulkEmailErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7098,45 +7332,57 @@ impl SendBulkEmailError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_account_suspended_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::AccountSuspendedError(_)) + pub fn is_account_suspended_exception(&self) -> bool { + matches!( + &self.kind, + SendBulkEmailErrorKind::AccountSuspendedException(_) + ) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, SendBulkEmailErrorKind::BadRequestException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + SendBulkEmailErrorKind::LimitExceededException(_) + ) } - pub fn is_mail_from_domain_not_verified_error(&self) -> bool { + pub fn is_mail_from_domain_not_verified_exception(&self) -> bool { matches!( &self.kind, - SendBulkEmailErrorKind::MailFromDomainNotVerifiedError(_) + SendBulkEmailErrorKind::MailFromDomainNotVerifiedException(_) ) } pub fn is_message_rejected(&self) -> bool { matches!(&self.kind, SendBulkEmailErrorKind::MessageRejected(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, SendBulkEmailErrorKind::NotFoundException(_)) } - pub fn is_sending_paused_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::SendingPausedError(_)) + pub fn is_sending_paused_exception(&self) -> bool { + matches!( + &self.kind, + SendBulkEmailErrorKind::SendingPausedException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, SendBulkEmailErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + SendBulkEmailErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for SendBulkEmailError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendBulkEmailErrorKind::AccountSuspendedError(_inner) => Some(_inner), - SendBulkEmailErrorKind::BadRequestError(_inner) => Some(_inner), - SendBulkEmailErrorKind::LimitExceededError(_inner) => Some(_inner), - SendBulkEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => Some(_inner), + SendBulkEmailErrorKind::AccountSuspendedException(_inner) => Some(_inner), + SendBulkEmailErrorKind::BadRequestException(_inner) => Some(_inner), + SendBulkEmailErrorKind::LimitExceededException(_inner) => Some(_inner), + SendBulkEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => Some(_inner), SendBulkEmailErrorKind::MessageRejected(_inner) => Some(_inner), - SendBulkEmailErrorKind::NotFoundError(_inner) => Some(_inner), - SendBulkEmailErrorKind::SendingPausedError(_inner) => Some(_inner), - SendBulkEmailErrorKind::TooManyRequestsError(_inner) => Some(_inner), + SendBulkEmailErrorKind::NotFoundException(_inner) => Some(_inner), + SendBulkEmailErrorKind::SendingPausedException(_inner) => Some(_inner), + SendBulkEmailErrorKind::TooManyRequestsException(_inner) => Some(_inner), SendBulkEmailErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7151,28 +7397,28 @@ pub struct SendCustomVerificationEmailError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendCustomVerificationEmailErrorKind { - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - MailFromDomainNotVerifiedError(crate::error::MailFromDomainNotVerifiedError), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + MailFromDomainNotVerifiedException(crate::error::MailFromDomainNotVerifiedException), MessageRejected(crate::error::MessageRejected), - NotFoundError(crate::error::NotFoundError), - SendingPausedError(crate::error::SendingPausedError), - TooManyRequestsError(crate::error::TooManyRequestsError), + NotFoundException(crate::error::NotFoundException), + SendingPausedException(crate::error::SendingPausedException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendCustomVerificationEmailError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendCustomVerificationEmailErrorKind::BadRequestError(_inner) => _inner.fmt(f), - SendCustomVerificationEmailErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => { + SendCustomVerificationEmailErrorKind::BadRequestException(_inner) => _inner.fmt(f), + SendCustomVerificationEmailErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => { _inner.fmt(f) } SendCustomVerificationEmailErrorKind::MessageRejected(_inner) => _inner.fmt(f), - SendCustomVerificationEmailErrorKind::NotFoundError(_inner) => _inner.fmt(f), - SendCustomVerificationEmailErrorKind::SendingPausedError(_inner) => _inner.fmt(f), - SendCustomVerificationEmailErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + SendCustomVerificationEmailErrorKind::NotFoundException(_inner) => _inner.fmt(f), + SendCustomVerificationEmailErrorKind::SendingPausedException(_inner) => _inner.fmt(f), + SendCustomVerificationEmailErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), SendCustomVerificationEmailErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7221,22 +7467,22 @@ impl SendCustomVerificationEmailError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::BadRequestError(_) + SendCustomVerificationEmailErrorKind::BadRequestException(_) ) } - pub fn is_limit_exceeded_error(&self) -> bool { + pub fn is_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::LimitExceededError(_) + SendCustomVerificationEmailErrorKind::LimitExceededException(_) ) } - pub fn is_mail_from_domain_not_verified_error(&self) -> bool { + pub fn is_mail_from_domain_not_verified_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedError(_) + SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedException(_) ) } pub fn is_message_rejected(&self) -> bool { @@ -7245,37 +7491,37 @@ impl SendCustomVerificationEmailError { SendCustomVerificationEmailErrorKind::MessageRejected(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::NotFoundError(_) + SendCustomVerificationEmailErrorKind::NotFoundException(_) ) } - pub fn is_sending_paused_error(&self) -> bool { + pub fn is_sending_paused_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::SendingPausedError(_) + SendCustomVerificationEmailErrorKind::SendingPausedException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - SendCustomVerificationEmailErrorKind::TooManyRequestsError(_) + SendCustomVerificationEmailErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for SendCustomVerificationEmailError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendCustomVerificationEmailErrorKind::BadRequestError(_inner) => Some(_inner), - SendCustomVerificationEmailErrorKind::LimitExceededError(_inner) => Some(_inner), - SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => { + SendCustomVerificationEmailErrorKind::BadRequestException(_inner) => Some(_inner), + SendCustomVerificationEmailErrorKind::LimitExceededException(_inner) => Some(_inner), + SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => { Some(_inner) } SendCustomVerificationEmailErrorKind::MessageRejected(_inner) => Some(_inner), - SendCustomVerificationEmailErrorKind::NotFoundError(_inner) => Some(_inner), - SendCustomVerificationEmailErrorKind::SendingPausedError(_inner) => Some(_inner), - SendCustomVerificationEmailErrorKind::TooManyRequestsError(_inner) => Some(_inner), + SendCustomVerificationEmailErrorKind::NotFoundException(_inner) => Some(_inner), + SendCustomVerificationEmailErrorKind::SendingPausedException(_inner) => Some(_inner), + SendCustomVerificationEmailErrorKind::TooManyRequestsException(_inner) => Some(_inner), SendCustomVerificationEmailErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7290,28 +7536,28 @@ pub struct SendEmailError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendEmailErrorKind { - AccountSuspendedError(crate::error::AccountSuspendedError), - BadRequestError(crate::error::BadRequestError), - LimitExceededError(crate::error::LimitExceededError), - MailFromDomainNotVerifiedError(crate::error::MailFromDomainNotVerifiedError), + AccountSuspendedException(crate::error::AccountSuspendedException), + BadRequestException(crate::error::BadRequestException), + LimitExceededException(crate::error::LimitExceededException), + MailFromDomainNotVerifiedException(crate::error::MailFromDomainNotVerifiedException), MessageRejected(crate::error::MessageRejected), - NotFoundError(crate::error::NotFoundError), - SendingPausedError(crate::error::SendingPausedError), - TooManyRequestsError(crate::error::TooManyRequestsError), + NotFoundException(crate::error::NotFoundException), + SendingPausedException(crate::error::SendingPausedException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendEmailError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendEmailErrorKind::AccountSuspendedError(_inner) => _inner.fmt(f), - SendEmailErrorKind::BadRequestError(_inner) => _inner.fmt(f), - SendEmailErrorKind::LimitExceededError(_inner) => _inner.fmt(f), - SendEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => _inner.fmt(f), + SendEmailErrorKind::AccountSuspendedException(_inner) => _inner.fmt(f), + SendEmailErrorKind::BadRequestException(_inner) => _inner.fmt(f), + SendEmailErrorKind::LimitExceededException(_inner) => _inner.fmt(f), + SendEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => _inner.fmt(f), SendEmailErrorKind::MessageRejected(_inner) => _inner.fmt(f), - SendEmailErrorKind::NotFoundError(_inner) => _inner.fmt(f), - SendEmailErrorKind::SendingPausedError(_inner) => _inner.fmt(f), - SendEmailErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + SendEmailErrorKind::NotFoundException(_inner) => _inner.fmt(f), + SendEmailErrorKind::SendingPausedException(_inner) => _inner.fmt(f), + SendEmailErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), SendEmailErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7360,45 +7606,45 @@ impl SendEmailError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_account_suspended_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::AccountSuspendedError(_)) + pub fn is_account_suspended_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::AccountSuspendedException(_)) } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::BadRequestException(_)) } - pub fn is_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::LimitExceededError(_)) + pub fn is_limit_exceeded_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::LimitExceededException(_)) } - pub fn is_mail_from_domain_not_verified_error(&self) -> bool { + pub fn is_mail_from_domain_not_verified_exception(&self) -> bool { matches!( &self.kind, - SendEmailErrorKind::MailFromDomainNotVerifiedError(_) + SendEmailErrorKind::MailFromDomainNotVerifiedException(_) ) } pub fn is_message_rejected(&self) -> bool { matches!(&self.kind, SendEmailErrorKind::MessageRejected(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::NotFoundException(_)) } - pub fn is_sending_paused_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::SendingPausedError(_)) + pub fn is_sending_paused_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::SendingPausedException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, SendEmailErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(&self.kind, SendEmailErrorKind::TooManyRequestsException(_)) } } impl std::error::Error for SendEmailError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendEmailErrorKind::AccountSuspendedError(_inner) => Some(_inner), - SendEmailErrorKind::BadRequestError(_inner) => Some(_inner), - SendEmailErrorKind::LimitExceededError(_inner) => Some(_inner), - SendEmailErrorKind::MailFromDomainNotVerifiedError(_inner) => Some(_inner), + SendEmailErrorKind::AccountSuspendedException(_inner) => Some(_inner), + SendEmailErrorKind::BadRequestException(_inner) => Some(_inner), + SendEmailErrorKind::LimitExceededException(_inner) => Some(_inner), + SendEmailErrorKind::MailFromDomainNotVerifiedException(_inner) => Some(_inner), SendEmailErrorKind::MessageRejected(_inner) => Some(_inner), - SendEmailErrorKind::NotFoundError(_inner) => Some(_inner), - SendEmailErrorKind::SendingPausedError(_inner) => Some(_inner), - SendEmailErrorKind::TooManyRequestsError(_inner) => Some(_inner), + SendEmailErrorKind::NotFoundException(_inner) => Some(_inner), + SendEmailErrorKind::SendingPausedException(_inner) => Some(_inner), + SendEmailErrorKind::TooManyRequestsException(_inner) => Some(_inner), SendEmailErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7413,20 +7659,20 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - TagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + TagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + TagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7475,29 +7721,32 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::BadRequestException(_)) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - TagResourceErrorKind::ConcurrentModificationError(_) + TagResourceErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::BadRequestError(_inner) => Some(_inner), - TagResourceErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - TagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + TagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + TagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + TagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7512,18 +7761,18 @@ pub struct TestRenderEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TestRenderEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TestRenderEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TestRenderEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - TestRenderEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - TestRenderEmailTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + TestRenderEmailTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + TestRenderEmailTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + TestRenderEmailTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), TestRenderEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7572,31 +7821,31 @@ impl TestRenderEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - TestRenderEmailTemplateErrorKind::BadRequestError(_) + TestRenderEmailTemplateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - TestRenderEmailTemplateErrorKind::NotFoundError(_) + TestRenderEmailTemplateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - TestRenderEmailTemplateErrorKind::TooManyRequestsError(_) + TestRenderEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for TestRenderEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TestRenderEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - TestRenderEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - TestRenderEmailTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), + TestRenderEmailTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + TestRenderEmailTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + TestRenderEmailTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), TestRenderEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7611,20 +7860,20 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7673,29 +7922,32 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::BadRequestException(_)) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UntagResourceErrorKind::ConcurrentModificationError(_) + UntagResourceErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::BadRequestError(_inner) => Some(_inner), - UntagResourceErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UntagResourceErrorKind::NotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UntagResourceErrorKind::BadRequestException(_inner) => Some(_inner), + UntagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UntagResourceErrorKind::NotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7710,20 +7962,22 @@ pub struct UpdateConfigurationSetEventDestinationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateConfigurationSetEventDestinationErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateConfigurationSetEventDestinationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + UpdateConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { + _inner.fmt(f) + } + UpdateConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { _inner.fmt(f) } - UpdateConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } UpdateConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -7777,33 +8031,35 @@ impl UpdateConfigurationSetEventDestinationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateConfigurationSetEventDestinationErrorKind::BadRequestError(_) + UpdateConfigurationSetEventDestinationErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateConfigurationSetEventDestinationErrorKind::NotFoundError(_) + UpdateConfigurationSetEventDestinationErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_) + UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateConfigurationSetEventDestinationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateConfigurationSetEventDestinationErrorKind::BadRequestError(_inner) => { + UpdateConfigurationSetEventDestinationErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + UpdateConfigurationSetEventDestinationErrorKind::NotFoundException(_inner) => { Some(_inner) } - UpdateConfigurationSetEventDestinationErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(_inner) => { + UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } UpdateConfigurationSetEventDestinationErrorKind::Unhandled(_inner) => { @@ -7822,20 +8078,20 @@ pub struct UpdateContactError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContactErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateContactError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContactErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateContactErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UpdateContactErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateContactErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateContactErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateContactErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UpdateContactErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateContactErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateContactErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7884,29 +8140,32 @@ impl UpdateContactError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateContactErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!(&self.kind, UpdateContactErrorKind::BadRequestException(_)) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UpdateContactErrorKind::ConcurrentModificationError(_) + UpdateContactErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateContactErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateContactErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { - matches!(&self.kind, UpdateContactErrorKind::TooManyRequestsError(_)) + pub fn is_too_many_requests_exception(&self) -> bool { + matches!( + &self.kind, + UpdateContactErrorKind::TooManyRequestsException(_) + ) } } impl std::error::Error for UpdateContactError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContactErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateContactErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UpdateContactErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateContactErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateContactErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateContactErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UpdateContactErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateContactErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateContactErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7921,20 +8180,20 @@ pub struct UpdateContactListError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateContactListErrorKind { - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateContactListError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateContactListErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateContactListErrorKind::ConcurrentModificationError(_inner) => _inner.fmt(f), - UpdateContactListErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateContactListErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateContactListErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateContactListErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f), + UpdateContactListErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateContactListErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateContactListErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7983,32 +8242,35 @@ impl UpdateContactListError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateContactListErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateContactListErrorKind::BadRequestException(_) + ) } - pub fn is_concurrent_modification_error(&self) -> bool { + pub fn is_concurrent_modification_exception(&self) -> bool { matches!( &self.kind, - UpdateContactListErrorKind::ConcurrentModificationError(_) + UpdateContactListErrorKind::ConcurrentModificationException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateContactListErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UpdateContactListErrorKind::NotFoundException(_)) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateContactListErrorKind::TooManyRequestsError(_) + UpdateContactListErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateContactListError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateContactListErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateContactListErrorKind::ConcurrentModificationError(_inner) => Some(_inner), - UpdateContactListErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateContactListErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateContactListErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateContactListErrorKind::ConcurrentModificationException(_inner) => Some(_inner), + UpdateContactListErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateContactListErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateContactListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8023,20 +8285,22 @@ pub struct UpdateCustomVerificationEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateCustomVerificationEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateCustomVerificationEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => { + UpdateCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { _inner.fmt(f) } - UpdateCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + UpdateCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { + _inner.fmt(f) + } + UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { _inner.fmt(f) } UpdateCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -8090,31 +8354,35 @@ impl UpdateCustomVerificationEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomVerificationEmailTemplateErrorKind::BadRequestError(_) + UpdateCustomVerificationEmailTemplateErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomVerificationEmailTemplateErrorKind::NotFoundError(_) + UpdateCustomVerificationEmailTemplateErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_) + UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateCustomVerificationEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateCustomVerificationEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateCustomVerificationEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(_inner) => { + UpdateCustomVerificationEmailTemplateErrorKind::BadRequestException(_inner) => { + Some(_inner) + } + UpdateCustomVerificationEmailTemplateErrorKind::NotFoundException(_inner) => { + Some(_inner) + } + UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(_inner) => { Some(_inner) } UpdateCustomVerificationEmailTemplateErrorKind::Unhandled(_inner) => { @@ -8133,18 +8401,18 @@ pub struct UpdateEmailIdentityPolicyError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateEmailIdentityPolicyErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateEmailIdentityPolicyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateEmailIdentityPolicyErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateEmailIdentityPolicyErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateEmailIdentityPolicyErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateEmailIdentityPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateEmailIdentityPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8193,31 +8461,31 @@ impl UpdateEmailIdentityPolicyError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { + pub fn is_bad_request_exception(&self) -> bool { matches!( &self.kind, - UpdateEmailIdentityPolicyErrorKind::BadRequestError(_) + UpdateEmailIdentityPolicyErrorKind::BadRequestException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateEmailIdentityPolicyErrorKind::NotFoundError(_) + UpdateEmailIdentityPolicyErrorKind::NotFoundException(_) ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateEmailIdentityPolicyErrorKind::TooManyRequestsError(_) + UpdateEmailIdentityPolicyErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateEmailIdentityPolicyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateEmailIdentityPolicyErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateEmailIdentityPolicyErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateEmailIdentityPolicyErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateEmailIdentityPolicyErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateEmailIdentityPolicyErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateEmailIdentityPolicyErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateEmailIdentityPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8232,18 +8500,18 @@ pub struct UpdateEmailTemplateError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateEmailTemplateErrorKind { - BadRequestError(crate::error::BadRequestError), - NotFoundError(crate::error::NotFoundError), - TooManyRequestsError(crate::error::TooManyRequestsError), + BadRequestException(crate::error::BadRequestException), + NotFoundException(crate::error::NotFoundException), + TooManyRequestsException(crate::error::TooManyRequestsException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UpdateEmailTemplateError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateEmailTemplateErrorKind::BadRequestError(_inner) => _inner.fmt(f), - UpdateEmailTemplateErrorKind::NotFoundError(_inner) => _inner.fmt(f), - UpdateEmailTemplateErrorKind::TooManyRequestsError(_inner) => _inner.fmt(f), + UpdateEmailTemplateErrorKind::BadRequestException(_inner) => _inner.fmt(f), + UpdateEmailTemplateErrorKind::NotFoundException(_inner) => _inner.fmt(f), + UpdateEmailTemplateErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f), UpdateEmailTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -8292,25 +8560,31 @@ impl UpdateEmailTemplateError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_bad_request_error(&self) -> bool { - matches!(&self.kind, UpdateEmailTemplateErrorKind::BadRequestError(_)) + pub fn is_bad_request_exception(&self) -> bool { + matches!( + &self.kind, + UpdateEmailTemplateErrorKind::BadRequestException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateEmailTemplateErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateEmailTemplateErrorKind::NotFoundException(_) + ) } - pub fn is_too_many_requests_error(&self) -> bool { + pub fn is_too_many_requests_exception(&self) -> bool { matches!( &self.kind, - UpdateEmailTemplateErrorKind::TooManyRequestsError(_) + UpdateEmailTemplateErrorKind::TooManyRequestsException(_) ) } } impl std::error::Error for UpdateEmailTemplateError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateEmailTemplateErrorKind::BadRequestError(_inner) => Some(_inner), - UpdateEmailTemplateErrorKind::NotFoundError(_inner) => Some(_inner), - UpdateEmailTemplateErrorKind::TooManyRequestsError(_inner) => Some(_inner), + UpdateEmailTemplateErrorKind::BadRequestException(_inner) => Some(_inner), + UpdateEmailTemplateErrorKind::NotFoundException(_inner) => Some(_inner), + UpdateEmailTemplateErrorKind::TooManyRequestsException(_inner) => Some(_inner), UpdateEmailTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8318,37 +8592,35 @@ impl std::error::Error for UpdateEmailTemplateError { ///

    Too many requests have been made to the operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TooManyRequestsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TooManyRequestsException { pub message: std::option::Option, } -impl std::fmt::Debug for TooManyRequestsError { +impl std::fmt::Debug for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TooManyRequestsError"); + let mut formatter = f.debug_struct("TooManyRequestsException"); formatter.field("message", &self.message); formatter.finish() } } -impl TooManyRequestsError { +impl TooManyRequestsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TooManyRequestsError { +impl std::fmt::Display for TooManyRequestsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TooManyRequestsError [TooManyRequestsException]")?; + write!(f, "TooManyRequestsException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for TooManyRequestsError {} -/// See [`TooManyRequestsError`](crate::error::TooManyRequestsError) -pub mod too_many_requests_error { - /// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError) +impl std::error::Error for TooManyRequestsException {} +/// See [`TooManyRequestsException`](crate::error::TooManyRequestsException) +pub mod too_many_requests_exception { + /// A builder for [`TooManyRequestsException`](crate::error::TooManyRequestsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8363,54 +8635,52 @@ pub mod too_many_requests_error { self.message = input; self } - /// Consumes the builder and constructs a [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn build(self) -> crate::error::TooManyRequestsError { - crate::error::TooManyRequestsError { + /// Consumes the builder and constructs a [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn build(self) -> crate::error::TooManyRequestsException { + crate::error::TooManyRequestsException { message: self.message, } } } } -impl TooManyRequestsError { - /// Creates a new builder-style object to manufacture [`TooManyRequestsError`](crate::error::TooManyRequestsError) - pub fn builder() -> crate::error::too_many_requests_error::Builder { - crate::error::too_many_requests_error::Builder::default() +impl TooManyRequestsException { + /// Creates a new builder-style object to manufacture [`TooManyRequestsException`](crate::error::TooManyRequestsException) + pub fn builder() -> crate::error::too_many_requests_exception::Builder { + crate::error::too_many_requests_exception::Builder::default() } } ///

    The resource you attempted to access doesn't exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct NotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8425,54 +8695,52 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } ///

    The input you provided is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct BadRequestError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct BadRequestException { pub message: std::option::Option, } -impl std::fmt::Debug for BadRequestError { +impl std::fmt::Debug for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("BadRequestError"); + let mut formatter = f.debug_struct("BadRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl BadRequestError { +impl BadRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for BadRequestError { +impl std::fmt::Display for BadRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "BadRequestError [BadRequestException]")?; + write!(f, "BadRequestException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for BadRequestError {} -/// See [`BadRequestError`](crate::error::BadRequestError) -pub mod bad_request_error { - /// A builder for [`BadRequestError`](crate::error::BadRequestError) +impl std::error::Error for BadRequestException {} +/// See [`BadRequestException`](crate::error::BadRequestException) +pub mod bad_request_exception { + /// A builder for [`BadRequestException`](crate::error::BadRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8487,57 +8755,52 @@ pub mod bad_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`BadRequestError`](crate::error::BadRequestError) - pub fn build(self) -> crate::error::BadRequestError { - crate::error::BadRequestError { + /// Consumes the builder and constructs a [`BadRequestException`](crate::error::BadRequestException) + pub fn build(self) -> crate::error::BadRequestException { + crate::error::BadRequestException { message: self.message, } } } } -impl BadRequestError { - /// Creates a new builder-style object to manufacture [`BadRequestError`](crate::error::BadRequestError) - pub fn builder() -> crate::error::bad_request_error::Builder { - crate::error::bad_request_error::Builder::default() +impl BadRequestException { + /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::error::BadRequestException) + pub fn builder() -> crate::error::bad_request_exception::Builder { + crate::error::bad_request_exception::Builder::default() } } ///

    The resource is being modified by another operation or thread.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConcurrentModificationError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConcurrentModificationException { pub message: std::option::Option, } -impl std::fmt::Debug for ConcurrentModificationError { +impl std::fmt::Debug for ConcurrentModificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConcurrentModificationError"); + let mut formatter = f.debug_struct("ConcurrentModificationException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConcurrentModificationError { +impl ConcurrentModificationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConcurrentModificationError { +impl std::fmt::Display for ConcurrentModificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ConcurrentModificationError [ConcurrentModificationException]" - )?; + write!(f, "ConcurrentModificationException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ConcurrentModificationError {} -/// See [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) -pub mod concurrent_modification_error { - /// A builder for [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) +impl std::error::Error for ConcurrentModificationException {} +/// See [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) +pub mod concurrent_modification_exception { + /// A builder for [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8552,55 +8815,53 @@ pub mod concurrent_modification_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) - pub fn build(self) -> crate::error::ConcurrentModificationError { - crate::error::ConcurrentModificationError { + /// Consumes the builder and constructs a [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn build(self) -> crate::error::ConcurrentModificationException { + crate::error::ConcurrentModificationException { message: self.message, } } } } -impl ConcurrentModificationError { - /// Creates a new builder-style object to manufacture [`ConcurrentModificationError`](crate::error::ConcurrentModificationError) - pub fn builder() -> crate::error::concurrent_modification_error::Builder { - crate::error::concurrent_modification_error::Builder::default() +impl ConcurrentModificationException { + /// Creates a new builder-style object to manufacture [`ConcurrentModificationException`](crate::error::ConcurrentModificationException) + pub fn builder() -> crate::error::concurrent_modification_exception::Builder { + crate::error::concurrent_modification_exception::Builder::default() } } ///

    The message can't be sent because the account's ability to send email is currently /// paused.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendingPausedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SendingPausedException { pub message: std::option::Option, } -impl std::fmt::Debug for SendingPausedError { +impl std::fmt::Debug for SendingPausedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendingPausedError"); + let mut formatter = f.debug_struct("SendingPausedException"); formatter.field("message", &self.message); formatter.finish() } } -impl SendingPausedError { +impl SendingPausedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SendingPausedError { +impl std::fmt::Display for SendingPausedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "SendingPausedError [SendingPausedException]")?; + write!(f, "SendingPausedException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for SendingPausedError {} -/// See [`SendingPausedError`](crate::error::SendingPausedError) -pub mod sending_paused_error { - /// A builder for [`SendingPausedError`](crate::error::SendingPausedError) +impl std::error::Error for SendingPausedException {} +/// See [`SendingPausedException`](crate::error::SendingPausedException) +pub mod sending_paused_exception { + /// A builder for [`SendingPausedException`](crate::error::SendingPausedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8615,27 +8876,25 @@ pub mod sending_paused_error { self.message = input; self } - /// Consumes the builder and constructs a [`SendingPausedError`](crate::error::SendingPausedError) - pub fn build(self) -> crate::error::SendingPausedError { - crate::error::SendingPausedError { + /// Consumes the builder and constructs a [`SendingPausedException`](crate::error::SendingPausedException) + pub fn build(self) -> crate::error::SendingPausedException { + crate::error::SendingPausedException { message: self.message, } } } } -impl SendingPausedError { - /// Creates a new builder-style object to manufacture [`SendingPausedError`](crate::error::SendingPausedError) - pub fn builder() -> crate::error::sending_paused_error::Builder { - crate::error::sending_paused_error::Builder::default() +impl SendingPausedException { + /// Creates a new builder-style object to manufacture [`SendingPausedException`](crate::error::SendingPausedException) + pub fn builder() -> crate::error::sending_paused_exception::Builder { + crate::error::sending_paused_exception::Builder::default() } } ///

    The message can't be sent because it contains invalid content.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MessageRejected { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for MessageRejected { @@ -8694,40 +8953,35 @@ impl MessageRejected { ///

    The message can't be sent because the sending domain isn't verified.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct MailFromDomainNotVerifiedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct MailFromDomainNotVerifiedException { pub message: std::option::Option, } -impl std::fmt::Debug for MailFromDomainNotVerifiedError { +impl std::fmt::Debug for MailFromDomainNotVerifiedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MailFromDomainNotVerifiedError"); + let mut formatter = f.debug_struct("MailFromDomainNotVerifiedException"); formatter.field("message", &self.message); formatter.finish() } } -impl MailFromDomainNotVerifiedError { +impl MailFromDomainNotVerifiedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MailFromDomainNotVerifiedError { +impl std::fmt::Display for MailFromDomainNotVerifiedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MailFromDomainNotVerifiedError [MailFromDomainNotVerifiedException]" - )?; + write!(f, "MailFromDomainNotVerifiedException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for MailFromDomainNotVerifiedError {} -/// See [`MailFromDomainNotVerifiedError`](crate::error::MailFromDomainNotVerifiedError) -pub mod mail_from_domain_not_verified_error { - /// A builder for [`MailFromDomainNotVerifiedError`](crate::error::MailFromDomainNotVerifiedError) +impl std::error::Error for MailFromDomainNotVerifiedException {} +/// See [`MailFromDomainNotVerifiedException`](crate::error::MailFromDomainNotVerifiedException) +pub mod mail_from_domain_not_verified_exception { + /// A builder for [`MailFromDomainNotVerifiedException`](crate::error::MailFromDomainNotVerifiedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8742,54 +8996,52 @@ pub mod mail_from_domain_not_verified_error { self.message = input; self } - /// Consumes the builder and constructs a [`MailFromDomainNotVerifiedError`](crate::error::MailFromDomainNotVerifiedError) - pub fn build(self) -> crate::error::MailFromDomainNotVerifiedError { - crate::error::MailFromDomainNotVerifiedError { + /// Consumes the builder and constructs a [`MailFromDomainNotVerifiedException`](crate::error::MailFromDomainNotVerifiedException) + pub fn build(self) -> crate::error::MailFromDomainNotVerifiedException { + crate::error::MailFromDomainNotVerifiedException { message: self.message, } } } } -impl MailFromDomainNotVerifiedError { - /// Creates a new builder-style object to manufacture [`MailFromDomainNotVerifiedError`](crate::error::MailFromDomainNotVerifiedError) - pub fn builder() -> crate::error::mail_from_domain_not_verified_error::Builder { - crate::error::mail_from_domain_not_verified_error::Builder::default() +impl MailFromDomainNotVerifiedException { + /// Creates a new builder-style object to manufacture [`MailFromDomainNotVerifiedException`](crate::error::MailFromDomainNotVerifiedException) + pub fn builder() -> crate::error::mail_from_domain_not_verified_exception::Builder { + crate::error::mail_from_domain_not_verified_exception::Builder::default() } } ///

    There are too many instances of the specified resource type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct LimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for LimitExceededError { +impl std::fmt::Debug for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LimitExceededError"); + let mut formatter = f.debug_struct("LimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl LimitExceededError { +impl LimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for LimitExceededError { +impl std::fmt::Display for LimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "LimitExceededError [LimitExceededException]")?; + write!(f, "LimitExceededException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for LimitExceededError {} -/// See [`LimitExceededError`](crate::error::LimitExceededError) -pub mod limit_exceeded_error { - /// A builder for [`LimitExceededError`](crate::error::LimitExceededError) +impl std::error::Error for LimitExceededException {} +/// See [`LimitExceededException`](crate::error::LimitExceededException) +pub mod limit_exceeded_exception { + /// A builder for [`LimitExceededException`](crate::error::LimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8804,55 +9056,53 @@ pub mod limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`LimitExceededError`](crate::error::LimitExceededError) - pub fn build(self) -> crate::error::LimitExceededError { - crate::error::LimitExceededError { + /// Consumes the builder and constructs a [`LimitExceededException`](crate::error::LimitExceededException) + pub fn build(self) -> crate::error::LimitExceededException { + crate::error::LimitExceededException { message: self.message, } } } } -impl LimitExceededError { - /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::error::LimitExceededError) - pub fn builder() -> crate::error::limit_exceeded_error::Builder { - crate::error::limit_exceeded_error::Builder::default() +impl LimitExceededException { + /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::error::LimitExceededException) + pub fn builder() -> crate::error::limit_exceeded_exception::Builder { + crate::error::limit_exceeded_exception::Builder::default() } } ///

    The message can't be sent because the account's ability to send email has been /// permanently restricted.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AccountSuspendedError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AccountSuspendedException { pub message: std::option::Option, } -impl std::fmt::Debug for AccountSuspendedError { +impl std::fmt::Debug for AccountSuspendedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AccountSuspendedError"); + let mut formatter = f.debug_struct("AccountSuspendedException"); formatter.field("message", &self.message); formatter.finish() } } -impl AccountSuspendedError { +impl AccountSuspendedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AccountSuspendedError { +impl std::fmt::Display for AccountSuspendedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AccountSuspendedError [AccountSuspendedException]")?; + write!(f, "AccountSuspendedException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for AccountSuspendedError {} -/// See [`AccountSuspendedError`](crate::error::AccountSuspendedError) -pub mod account_suspended_error { - /// A builder for [`AccountSuspendedError`](crate::error::AccountSuspendedError) +impl std::error::Error for AccountSuspendedException {} +/// See [`AccountSuspendedException`](crate::error::AccountSuspendedException) +pub mod account_suspended_exception { + /// A builder for [`AccountSuspendedException`](crate::error::AccountSuspendedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8867,54 +9117,52 @@ pub mod account_suspended_error { self.message = input; self } - /// Consumes the builder and constructs a [`AccountSuspendedError`](crate::error::AccountSuspendedError) - pub fn build(self) -> crate::error::AccountSuspendedError { - crate::error::AccountSuspendedError { + /// Consumes the builder and constructs a [`AccountSuspendedException`](crate::error::AccountSuspendedException) + pub fn build(self) -> crate::error::AccountSuspendedException { + crate::error::AccountSuspendedException { message: self.message, } } } } -impl AccountSuspendedError { - /// Creates a new builder-style object to manufacture [`AccountSuspendedError`](crate::error::AccountSuspendedError) - pub fn builder() -> crate::error::account_suspended_error::Builder { - crate::error::account_suspended_error::Builder::default() +impl AccountSuspendedException { + /// Creates a new builder-style object to manufacture [`AccountSuspendedException`](crate::error::AccountSuspendedException) + pub fn builder() -> crate::error::account_suspended_exception::Builder { + crate::error::account_suspended_exception::Builder::default() } } ///

    The resource specified in your request already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for AlreadyExistsError { +impl std::fmt::Debug for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AlreadyExistsError"); + let mut formatter = f.debug_struct("AlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl AlreadyExistsError { +impl AlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AlreadyExistsError { +impl std::fmt::Display for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AlreadyExistsError [AlreadyExistsException]")?; + write!(f, "AlreadyExistsException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for AlreadyExistsError {} -/// See [`AlreadyExistsError`](crate::error::AlreadyExistsError) -pub mod already_exists_error { - /// A builder for [`AlreadyExistsError`](crate::error::AlreadyExistsError) +impl std::error::Error for AlreadyExistsException {} +/// See [`AlreadyExistsException`](crate::error::AlreadyExistsException) +pub mod already_exists_exception { + /// A builder for [`AlreadyExistsException`](crate::error::AlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8929,54 +9177,52 @@ pub mod already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn build(self) -> crate::error::AlreadyExistsError { - crate::error::AlreadyExistsError { + /// Consumes the builder and constructs a [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn build(self) -> crate::error::AlreadyExistsException { + crate::error::AlreadyExistsException { message: self.message, } } } } -impl AlreadyExistsError { - /// Creates a new builder-style object to manufacture [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn builder() -> crate::error::already_exists_error::Builder { - crate::error::already_exists_error::Builder::default() +impl AlreadyExistsException { + /// Creates a new builder-style object to manufacture [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn builder() -> crate::error::already_exists_exception::Builder { + crate::error::already_exists_exception::Builder::default() } } ///

    If there is already an ongoing account details update under review.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ConflictError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ConflictError { +impl std::fmt::Debug for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConflictError"); + let mut formatter = f.debug_struct("ConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConflictError { +impl ConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConflictError { +impl std::fmt::Display for ConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConflictError [ConflictException]")?; + write!(f, "ConflictException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for ConflictError {} -/// See [`ConflictError`](crate::error::ConflictError) -pub mod conflict_error { - /// A builder for [`ConflictError`](crate::error::ConflictError) +impl std::error::Error for ConflictException {} +/// See [`ConflictException`](crate::error::ConflictException) +pub mod conflict_exception { + /// A builder for [`ConflictException`](crate::error::ConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -8991,54 +9237,52 @@ pub mod conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConflictError`](crate::error::ConflictError) - pub fn build(self) -> crate::error::ConflictError { - crate::error::ConflictError { + /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException) + pub fn build(self) -> crate::error::ConflictException { + crate::error::ConflictException { message: self.message, } } } } -impl ConflictError { - /// Creates a new builder-style object to manufacture [`ConflictError`](crate::error::ConflictError) - pub fn builder() -> crate::error::conflict_error::Builder { - crate::error::conflict_error::Builder::default() +impl ConflictException { + /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException) + pub fn builder() -> crate::error::conflict_exception::Builder { + crate::error::conflict_exception::Builder::default() } } ///

    The specified request includes an invalid or expired token.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidNextTokenError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidNextTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidNextTokenError { +impl std::fmt::Debug for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidNextTokenError"); + let mut formatter = f.debug_struct("InvalidNextTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidNextTokenError { +impl InvalidNextTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidNextTokenError { +impl std::fmt::Display for InvalidNextTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidNextTokenError [InvalidNextTokenException]")?; + write!(f, "InvalidNextTokenException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for InvalidNextTokenError {} -/// See [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) -pub mod invalid_next_token_error { - /// A builder for [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) +impl std::error::Error for InvalidNextTokenException {} +/// See [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) +pub mod invalid_next_token_exception { + /// A builder for [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -9053,17 +9297,17 @@ pub mod invalid_next_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn build(self) -> crate::error::InvalidNextTokenError { - crate::error::InvalidNextTokenError { + /// Consumes the builder and constructs a [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn build(self) -> crate::error::InvalidNextTokenException { + crate::error::InvalidNextTokenException { message: self.message, } } } } -impl InvalidNextTokenError { - /// Creates a new builder-style object to manufacture [`InvalidNextTokenError`](crate::error::InvalidNextTokenError) - pub fn builder() -> crate::error::invalid_next_token_error::Builder { - crate::error::invalid_next_token_error::Builder::default() +impl InvalidNextTokenException { + /// Creates a new builder-style object to manufacture [`InvalidNextTokenException`](crate::error::InvalidNextTokenException) + pub fn builder() -> crate::error::invalid_next_token_exception::Builder { + crate::error::invalid_next_token_exception::Builder::default() } } diff --git a/sdk/sesv2/src/error_meta.rs b/sdk/sesv2/src/error_meta.rs index e3262b452831..deace806b94f 100644 --- a/sdk/sesv2/src/error_meta.rs +++ b/sdk/sesv2/src/error_meta.rs @@ -2,35 +2,35 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AccountSuspendedError(crate::error::AccountSuspendedError), - AlreadyExistsError(crate::error::AlreadyExistsError), - BadRequestError(crate::error::BadRequestError), - ConcurrentModificationError(crate::error::ConcurrentModificationError), - ConflictError(crate::error::ConflictError), - InvalidNextTokenError(crate::error::InvalidNextTokenError), - LimitExceededError(crate::error::LimitExceededError), - MailFromDomainNotVerifiedError(crate::error::MailFromDomainNotVerifiedError), + AccountSuspendedException(crate::error::AccountSuspendedException), + AlreadyExistsException(crate::error::AlreadyExistsException), + BadRequestException(crate::error::BadRequestException), + ConcurrentModificationException(crate::error::ConcurrentModificationException), + ConflictException(crate::error::ConflictException), + InvalidNextTokenException(crate::error::InvalidNextTokenException), + LimitExceededException(crate::error::LimitExceededException), + MailFromDomainNotVerifiedException(crate::error::MailFromDomainNotVerifiedException), MessageRejected(crate::error::MessageRejected), - NotFoundError(crate::error::NotFoundError), - SendingPausedError(crate::error::SendingPausedError), - TooManyRequestsError(crate::error::TooManyRequestsError), + NotFoundException(crate::error::NotFoundException), + SendingPausedException(crate::error::SendingPausedException), + TooManyRequestsException(crate::error::TooManyRequestsException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AccountSuspendedError(inner) => inner.fmt(f), - Error::AlreadyExistsError(inner) => inner.fmt(f), - Error::BadRequestError(inner) => inner.fmt(f), - Error::ConcurrentModificationError(inner) => inner.fmt(f), - Error::ConflictError(inner) => inner.fmt(f), - Error::InvalidNextTokenError(inner) => inner.fmt(f), - Error::LimitExceededError(inner) => inner.fmt(f), - Error::MailFromDomainNotVerifiedError(inner) => inner.fmt(f), + Error::AccountSuspendedException(inner) => inner.fmt(f), + Error::AlreadyExistsException(inner) => inner.fmt(f), + Error::BadRequestException(inner) => inner.fmt(f), + Error::ConcurrentModificationException(inner) => inner.fmt(f), + Error::ConflictException(inner) => inner.fmt(f), + Error::InvalidNextTokenException(inner) => inner.fmt(f), + Error::LimitExceededException(inner) => inner.fmt(f), + Error::MailFromDomainNotVerifiedException(inner) => inner.fmt(f), Error::MessageRejected(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::SendingPausedError(inner) => inner.fmt(f), - Error::TooManyRequestsError(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::SendingPausedException(inner) => inner.fmt(f), + Error::TooManyRequestsException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -39,23 +39,23 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateConfigurationSetErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateConfigurationSetErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateConfigurationSetErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateConfigurationSetErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateConfigurationSetErrorKind::ConcurrentModificationError( + crate::error::CreateConfigurationSetErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::CreateConfigurationSetErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateConfigurationSetErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateConfigurationSetErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateConfigurationSetErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateConfigurationSetErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateConfigurationSetErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateConfigurationSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -75,11 +75,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsError(inner) => Error::AlreadyExistsError(inner), - crate::error::CreateConfigurationSetEventDestinationErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::CreateConfigurationSetEventDestinationErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::CreateConfigurationSetEventDestinationErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner), + crate::error::CreateConfigurationSetEventDestinationErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::CreateConfigurationSetEventDestinationErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::CreateConfigurationSetEventDestinationErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::CreateConfigurationSetEventDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -90,17 +90,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateContactErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateContactErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateContactErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateContactErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateContactErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateContactErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateContactErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateContactErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateContactErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -112,17 +112,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateContactListErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateContactListErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateContactListErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateContactListErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateContactListErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateContactListErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateContactListErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateContactListErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateContactListErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -142,11 +142,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsError(inner) => Error::AlreadyExistsError(inner), - crate::error::CreateCustomVerificationEmailTemplateErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::CreateCustomVerificationEmailTemplateErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::CreateCustomVerificationEmailTemplateErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner), + crate::error::CreateCustomVerificationEmailTemplateErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::CreateCustomVerificationEmailTemplateErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::CreateCustomVerificationEmailTemplateErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::CreateCustomVerificationEmailTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -157,20 +157,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateDedicatedIpPoolErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateDedicatedIpPoolErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateDedicatedIpPoolErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateDedicatedIpPoolErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateDedicatedIpPoolErrorKind::ConcurrentModificationError( + crate::error::CreateDedicatedIpPoolErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::CreateDedicatedIpPoolErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateDedicatedIpPoolErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateDedicatedIpPoolErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateDedicatedIpPoolErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateDedicatedIpPoolErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -188,15 +188,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::CreateDeliverabilityTestReportErrorKind::AccountSuspendedError(inner) => Error::AccountSuspendedError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::ConcurrentModificationError(inner) => Error::ConcurrentModificationError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedError(inner) => Error::MailFromDomainNotVerifiedError(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::AccountSuspendedException(inner) => Error::AccountSuspendedException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedException(inner) => Error::MailFromDomainNotVerifiedException(inner), crate::error::CreateDeliverabilityTestReportErrorKind::MessageRejected(inner) => Error::MessageRejected(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::SendingPausedError(inner) => Error::SendingPausedError(inner), - crate::error::CreateDeliverabilityTestReportErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::SendingPausedException(inner) => Error::SendingPausedException(inner), + crate::error::CreateDeliverabilityTestReportErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::CreateDeliverabilityTestReportErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -207,23 +207,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateEmailIdentityErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateEmailIdentityErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateEmailIdentityErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateEmailIdentityErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateEmailIdentityErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::CreateEmailIdentityErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateEmailIdentityErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::CreateEmailIdentityErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateEmailIdentityErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateEmailIdentityErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::CreateEmailIdentityErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateEmailIdentityErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateEmailIdentityErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -239,21 +239,21 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateEmailIdentityPolicyErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) - } - crate::error::CreateEmailIdentityPolicyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateEmailIdentityPolicyErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateEmailIdentityPolicyErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateEmailIdentityPolicyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateEmailIdentityPolicyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreateEmailIdentityPolicyErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateEmailIdentityPolicyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateEmailIdentityPolicyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::CreateEmailIdentityPolicyErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::CreateEmailIdentityPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -266,17 +266,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateEmailTemplateErrorKind::AlreadyExistsError(inner) => { - Error::AlreadyExistsError(inner) + crate::error::CreateEmailTemplateErrorKind::AlreadyExistsException(inner) => { + Error::AlreadyExistsException(inner) } - crate::error::CreateEmailTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateEmailTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateEmailTemplateErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateEmailTemplateErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateEmailTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateEmailTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateEmailTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -290,14 +290,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateImportJobErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::CreateImportJobErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::CreateImportJobErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::CreateImportJobErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::CreateImportJobErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::CreateImportJobErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::CreateImportJobErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -309,17 +309,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteConfigurationSetErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteConfigurationSetErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteConfigurationSetErrorKind::ConcurrentModificationError( + crate::error::DeleteConfigurationSetErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::DeleteConfigurationSetErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::DeleteConfigurationSetErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteConfigurationSetErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteConfigurationSetErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteConfigurationSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -339,9 +339,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteConfigurationSetEventDestinationErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::DeleteConfigurationSetEventDestinationErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::DeleteConfigurationSetEventDestinationErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::DeleteConfigurationSetEventDestinationErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::DeleteConfigurationSetEventDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -352,14 +352,14 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteContactErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteContactErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteContactErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteContactErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteContactErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteContactErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteContactErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -371,17 +371,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteContactListErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DeleteContactListErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::DeleteContactListErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteContactListErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteContactListErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::DeleteContactListErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteContactListErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteContactListErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteContactListErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -401,9 +401,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeleteCustomVerificationEmailTemplateErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::DeleteCustomVerificationEmailTemplateErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::DeleteCustomVerificationEmailTemplateErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::DeleteCustomVerificationEmailTemplateErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::DeleteCustomVerificationEmailTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -414,17 +414,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteDedicatedIpPoolErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteDedicatedIpPoolErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteDedicatedIpPoolErrorKind::ConcurrentModificationError( + crate::error::DeleteDedicatedIpPoolErrorKind::ConcurrentModificationException( inner, - ) => Error::ConcurrentModificationError(inner), - crate::error::DeleteDedicatedIpPoolErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + ) => Error::ConcurrentModificationException(inner), + crate::error::DeleteDedicatedIpPoolErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteDedicatedIpPoolErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteDedicatedIpPoolErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteDedicatedIpPoolErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -438,17 +438,17 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteEmailIdentityErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DeleteEmailIdentityErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::DeleteEmailIdentityErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteEmailIdentityErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteEmailIdentityErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::DeleteEmailIdentityErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteEmailIdentityErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteEmailIdentityErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteEmailIdentityErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -464,15 +464,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteEmailIdentityPolicyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DeleteEmailIdentityPolicyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteEmailIdentityPolicyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteEmailIdentityPolicyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteEmailIdentityPolicyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::DeleteEmailIdentityPolicyErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DeleteEmailIdentityPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -485,14 +485,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteEmailTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::DeleteEmailTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteEmailTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteEmailTemplateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteEmailTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteEmailTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::DeleteEmailTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -508,15 +508,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSuppressedDestinationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::DeleteSuppressedDestinationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteSuppressedDestinationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::DeleteSuppressedDestinationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::DeleteSuppressedDestinationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::DeleteSuppressedDestinationErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::DeleteSuppressedDestinationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -529,11 +529,11 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAccountErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetAccountErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetAccountErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetAccountErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetAccountErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -545,14 +545,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetBlacklistReportsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetBlacklistReportsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetBlacklistReportsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetBlacklistReportsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetBlacklistReportsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetBlacklistReportsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetBlacklistReportsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -566,14 +566,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetConfigurationSetErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetConfigurationSetErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetConfigurationSetErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetConfigurationSetErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetConfigurationSetErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetConfigurationSetErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetConfigurationSetErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -591,9 +591,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GetConfigurationSetEventDestinationsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::GetConfigurationSetEventDestinationsErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::GetConfigurationSetEventDestinationsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::GetConfigurationSetEventDestinationsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::GetConfigurationSetEventDestinationsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -604,14 +604,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetContactErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetContactErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetContactErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetContactErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetContactErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetContactErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetContactErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -623,14 +623,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetContactListErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetContactListErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetContactListErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetContactListErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetContactListErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetContactListErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetContactListErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -645,20 +645,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetCustomVerificationEmailTemplateErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::GetCustomVerificationEmailTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::GetCustomVerificationEmailTemplateErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetCustomVerificationEmailTemplateErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::GetCustomVerificationEmailTemplateErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::GetCustomVerificationEmailTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -667,14 +659,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDedicatedIpErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetDedicatedIpErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDedicatedIpErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDedicatedIpErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDedicatedIpErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDedicatedIpErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetDedicatedIpErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -686,14 +678,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDedicatedIpsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetDedicatedIpsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDedicatedIpsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDedicatedIpsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetDedicatedIpsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDedicatedIpsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetDedicatedIpsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -708,20 +700,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDeliverabilityDashboardOptionsErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::GetDeliverabilityDashboardOptionsErrorKind::LimitExceededError( - inner, - ) => Error::LimitExceededError(inner), - crate::error::GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::GetDeliverabilityDashboardOptionsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetDeliverabilityDashboardOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::GetDeliverabilityDashboardOptionsErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::GetDeliverabilityDashboardOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -732,15 +716,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDeliverabilityTestReportErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetDeliverabilityTestReportErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDeliverabilityTestReportErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDeliverabilityTestReportErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDeliverabilityTestReportErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetDeliverabilityTestReportErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::GetDeliverabilityTestReportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -756,20 +740,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDomainDeliverabilityCampaignErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetDomainDeliverabilityCampaignErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::GetDomainDeliverabilityCampaignErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetDomainDeliverabilityCampaignErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::GetDomainDeliverabilityCampaignErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::GetDomainDeliverabilityCampaignErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -780,15 +756,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetDomainStatisticsReportErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetDomainStatisticsReportErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetDomainStatisticsReportErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetDomainStatisticsReportErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetDomainStatisticsReportErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetDomainStatisticsReportErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::GetDomainStatisticsReportErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -801,14 +777,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetEmailIdentityErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetEmailIdentityErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetEmailIdentityErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetEmailIdentityErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetEmailIdentityErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetEmailIdentityErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetEmailIdentityErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -824,15 +800,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetEmailIdentityPoliciesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetEmailIdentityPoliciesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetEmailIdentityPoliciesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetEmailIdentityPoliciesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetEmailIdentityPoliciesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetEmailIdentityPoliciesErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::GetEmailIdentityPoliciesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -845,14 +821,14 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetEmailTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetEmailTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetEmailTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetEmailTemplateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetEmailTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetEmailTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetEmailTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -866,14 +842,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetImportJobErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::GetImportJobErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetImportJobErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetImportJobErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::GetImportJobErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetImportJobErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::GetImportJobErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -887,15 +863,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSuppressedDestinationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::GetSuppressedDestinationErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetSuppressedDestinationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::GetSuppressedDestinationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::GetSuppressedDestinationErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::GetSuppressedDestinationErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::GetSuppressedDestinationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -908,11 +884,11 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListConfigurationSetsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListConfigurationSetsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListConfigurationSetsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListConfigurationSetsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListConfigurationSetsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -926,11 +902,11 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListContactListsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListContactListsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListContactListsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListContactListsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListContactListsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -944,14 +920,14 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListContactsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListContactsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListContactsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListContactsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListContactsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListContactsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListContactsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -967,8 +943,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListCustomVerificationEmailTemplatesErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::ListCustomVerificationEmailTemplatesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::ListCustomVerificationEmailTemplatesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -979,11 +955,11 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListDedicatedIpPoolsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListDedicatedIpPoolsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListDedicatedIpPoolsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListDedicatedIpPoolsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListDedicatedIpPoolsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1001,15 +977,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListDeliverabilityTestReportsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::ListDeliverabilityTestReportsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListDeliverabilityTestReportsErrorKind::BadRequestException( + inner, + ) => Error::BadRequestException(inner), + crate::error::ListDeliverabilityTestReportsErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListDeliverabilityTestReportsErrorKind::TooManyRequestsError( + crate::error::ListDeliverabilityTestReportsErrorKind::TooManyRequestsException( inner, - ) => Error::TooManyRequestsError(inner), + ) => Error::TooManyRequestsException(inner), crate::error::ListDeliverabilityTestReportsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1025,20 +1001,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListDomainDeliverabilityCampaignsErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::ListDomainDeliverabilityCampaignsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::ListDomainDeliverabilityCampaignsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::ListDomainDeliverabilityCampaignsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::ListDomainDeliverabilityCampaignsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::ListDomainDeliverabilityCampaignsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1047,11 +1015,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListEmailIdentitiesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListEmailIdentitiesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListEmailIdentitiesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListEmailIdentitiesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListEmailIdentitiesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1065,11 +1033,11 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListEmailTemplatesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListEmailTemplatesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListEmailTemplatesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListEmailTemplatesErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListEmailTemplatesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1083,11 +1051,11 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListImportJobsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListImportJobsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListImportJobsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListImportJobsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListImportJobsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1101,15 +1069,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSuppressedDestinationsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::ListSuppressedDestinationsErrorKind::InvalidNextTokenError(inner) => { - Error::InvalidNextTokenError(inner) - } - crate::error::ListSuppressedDestinationsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListSuppressedDestinationsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } + crate::error::ListSuppressedDestinationsErrorKind::InvalidNextTokenException( + inner, + ) => Error::InvalidNextTokenException(inner), + crate::error::ListSuppressedDestinationsErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::ListSuppressedDestinationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1122,14 +1090,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::ListTagsForResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::ListTagsForResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListTagsForResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ListTagsForResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::ListTagsForResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1149,8 +1117,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1161,14 +1129,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAccountDetailsErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutAccountDetailsErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutAccountDetailsErrorKind::ConflictError(inner) => { - Error::ConflictError(inner) + crate::error::PutAccountDetailsErrorKind::ConflictException(inner) => { + Error::ConflictException(inner) } - crate::error::PutAccountDetailsErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutAccountDetailsErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PutAccountDetailsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1184,12 +1152,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAccountSendingAttributesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutAccountSendingAttributesErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutAccountSendingAttributesErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } + crate::error::PutAccountSendingAttributesErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::PutAccountSendingAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1205,17 +1173,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutAccountSuppressionAttributesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutAccountSuppressionAttributesErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutAccountSuppressionAttributesErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutAccountSuppressionAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutAccountSuppressionAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutAccountSuppressionAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1227,20 +1189,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutConfigurationSetDeliveryOptionsErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::PutConfigurationSetDeliveryOptionsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutConfigurationSetDeliveryOptionsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutConfigurationSetDeliveryOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutConfigurationSetDeliveryOptionsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutConfigurationSetDeliveryOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1253,9 +1207,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutConfigurationSetReputationOptionsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::PutConfigurationSetReputationOptionsErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutConfigurationSetReputationOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutConfigurationSetReputationOptionsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutConfigurationSetReputationOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1269,20 +1223,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutConfigurationSetSendingOptionsErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::PutConfigurationSetSendingOptionsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutConfigurationSetSendingOptionsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutConfigurationSetSendingOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutConfigurationSetSendingOptionsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutConfigurationSetSendingOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1297,9 +1243,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutConfigurationSetSuppressionOptionsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::PutConfigurationSetSuppressionOptionsErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutConfigurationSetSuppressionOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutConfigurationSetSuppressionOptionsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutConfigurationSetSuppressionOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1313,20 +1259,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutConfigurationSetTrackingOptionsErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::PutConfigurationSetTrackingOptionsErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutConfigurationSetTrackingOptionsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutConfigurationSetTrackingOptionsErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutConfigurationSetTrackingOptionsErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutConfigurationSetTrackingOptionsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1335,14 +1273,14 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutDedicatedIpInPoolErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::PutDedicatedIpInPoolErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::PutDedicatedIpInPoolErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutDedicatedIpInPoolErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutDedicatedIpInPoolErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutDedicatedIpInPoolErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::PutDedicatedIpInPoolErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1360,15 +1298,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutDedicatedIpWarmupAttributesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutDedicatedIpWarmupAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutDedicatedIpWarmupAttributesErrorKind::BadRequestException( + inner, + ) => Error::BadRequestException(inner), + crate::error::PutDedicatedIpWarmupAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError( + crate::error::PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException( inner, - ) => Error::TooManyRequestsError(inner), + ) => Error::TooManyRequestsException(inner), crate::error::PutDedicatedIpWarmupAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1384,26 +1322,14 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsError( - inner, - ) => Error::AlreadyExistsError(inner), - crate::error::PutDeliverabilityDashboardOptionErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutDeliverabilityDashboardOptionErrorKind::LimitExceededError( - inner, - ) => Error::LimitExceededError(inner), - crate::error::PutDeliverabilityDashboardOptionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutDeliverabilityDashboardOptionErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner), + crate::error::PutDeliverabilityDashboardOptionErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutDeliverabilityDashboardOptionErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::PutDeliverabilityDashboardOptionErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutDeliverabilityDashboardOptionErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1422,9 +1348,9 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1439,15 +1365,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutEmailIdentityDkimAttributesErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutEmailIdentityDkimAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::PutEmailIdentityDkimAttributesErrorKind::BadRequestException( + inner, + ) => Error::BadRequestException(inner), + crate::error::PutEmailIdentityDkimAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsError( + crate::error::PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsException( inner, - ) => Error::TooManyRequestsError(inner), + ) => Error::TooManyRequestsException(inner), crate::error::PutEmailIdentityDkimAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1466,9 +1392,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1482,20 +1408,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutEmailIdentityFeedbackAttributesErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::PutEmailIdentityFeedbackAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutEmailIdentityFeedbackAttributesErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutEmailIdentityFeedbackAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutEmailIdentityFeedbackAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutEmailIdentityFeedbackAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1507,20 +1425,12 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutEmailIdentityMailFromAttributesErrorKind::BadRequestError( - inner, - ) => Error::BadRequestError(inner), - crate::error::PutEmailIdentityMailFromAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsError( - inner, - ) => Error::TooManyRequestsError(inner), - crate::error::PutEmailIdentityMailFromAttributesErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::PutEmailIdentityMailFromAttributesErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::PutEmailIdentityMailFromAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::error::PutEmailIdentityMailFromAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1531,12 +1441,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutSuppressedDestinationErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) - } - crate::error::PutSuppressedDestinationErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::PutSuppressedDestinationErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } + crate::error::PutSuppressedDestinationErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::PutSuppressedDestinationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1549,29 +1459,29 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SendBulkEmailErrorKind::AccountSuspendedError(inner) => { - Error::AccountSuspendedError(inner) + crate::error::SendBulkEmailErrorKind::AccountSuspendedException(inner) => { + Error::AccountSuspendedException(inner) } - crate::error::SendBulkEmailErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::SendBulkEmailErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::SendBulkEmailErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::SendBulkEmailErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::SendBulkEmailErrorKind::MailFromDomainNotVerifiedError(inner) => { - Error::MailFromDomainNotVerifiedError(inner) + crate::error::SendBulkEmailErrorKind::MailFromDomainNotVerifiedException(inner) => { + Error::MailFromDomainNotVerifiedException(inner) } crate::error::SendBulkEmailErrorKind::MessageRejected(inner) => { Error::MessageRejected(inner) } - crate::error::SendBulkEmailErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::SendBulkEmailErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::SendBulkEmailErrorKind::SendingPausedError(inner) => { - Error::SendingPausedError(inner) + crate::error::SendBulkEmailErrorKind::SendingPausedException(inner) => { + Error::SendingPausedException(inner) } - crate::error::SendBulkEmailErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::SendBulkEmailErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::SendBulkEmailErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1585,13 +1495,13 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::SendCustomVerificationEmailErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::SendCustomVerificationEmailErrorKind::LimitExceededError(inner) => Error::LimitExceededError(inner), - crate::error::SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedError(inner) => Error::MailFromDomainNotVerifiedError(inner), + crate::error::SendCustomVerificationEmailErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::SendCustomVerificationEmailErrorKind::LimitExceededException(inner) => Error::LimitExceededException(inner), + crate::error::SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedException(inner) => Error::MailFromDomainNotVerifiedException(inner), crate::error::SendCustomVerificationEmailErrorKind::MessageRejected(inner) => Error::MessageRejected(inner), - crate::error::SendCustomVerificationEmailErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::SendCustomVerificationEmailErrorKind::SendingPausedError(inner) => Error::SendingPausedError(inner), - crate::error::SendCustomVerificationEmailErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::SendCustomVerificationEmailErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::SendCustomVerificationEmailErrorKind::SendingPausedException(inner) => Error::SendingPausedException(inner), + crate::error::SendCustomVerificationEmailErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::SendCustomVerificationEmailErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1602,29 +1512,29 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SendEmailErrorKind::AccountSuspendedError(inner) => { - Error::AccountSuspendedError(inner) + crate::error::SendEmailErrorKind::AccountSuspendedException(inner) => { + Error::AccountSuspendedException(inner) } - crate::error::SendEmailErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::SendEmailErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::SendEmailErrorKind::LimitExceededError(inner) => { - Error::LimitExceededError(inner) + crate::error::SendEmailErrorKind::LimitExceededException(inner) => { + Error::LimitExceededException(inner) } - crate::error::SendEmailErrorKind::MailFromDomainNotVerifiedError(inner) => { - Error::MailFromDomainNotVerifiedError(inner) + crate::error::SendEmailErrorKind::MailFromDomainNotVerifiedException(inner) => { + Error::MailFromDomainNotVerifiedException(inner) } crate::error::SendEmailErrorKind::MessageRejected(inner) => { Error::MessageRejected(inner) } - crate::error::SendEmailErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::SendEmailErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::SendEmailErrorKind::SendingPausedError(inner) => { - Error::SendingPausedError(inner) + crate::error::SendEmailErrorKind::SendingPausedException(inner) => { + Error::SendingPausedException(inner) } - crate::error::SendEmailErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::SendEmailErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::SendEmailErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1636,17 +1546,17 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TagResourceErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::TagResourceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::TagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1660,14 +1570,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TestRenderEmailTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::TestRenderEmailTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::TestRenderEmailTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::TestRenderEmailTemplateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::TestRenderEmailTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::TestRenderEmailTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::TestRenderEmailTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1681,17 +1591,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UntagResourceErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UntagResourceErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UntagResourceErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UntagResourceErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UntagResourceErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UntagResourceErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UntagResourceErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1709,9 +1619,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateConfigurationSetEventDestinationErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::UpdateConfigurationSetEventDestinationErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::UpdateConfigurationSetEventDestinationErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::UpdateConfigurationSetEventDestinationErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::UpdateConfigurationSetEventDestinationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1722,17 +1632,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateContactErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateContactErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateContactErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) + crate::error::UpdateContactErrorKind::ConcurrentModificationException(inner) => { + Error::ConcurrentModificationException(inner) } - crate::error::UpdateContactErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateContactErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateContactErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateContactErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateContactErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1744,17 +1654,17 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateContactListErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateContactListErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateContactListErrorKind::ConcurrentModificationError(inner) => { - Error::ConcurrentModificationError(inner) - } - crate::error::UpdateContactListErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateContactListErrorKind::ConcurrentModificationException( + inner, + ) => Error::ConcurrentModificationException(inner), + crate::error::UpdateContactListErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateContactListErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateContactListErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateContactListErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1774,9 +1684,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::UpdateCustomVerificationEmailTemplateErrorKind::BadRequestError(inner) => Error::BadRequestError(inner), - crate::error::UpdateCustomVerificationEmailTemplateErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError(inner) => Error::TooManyRequestsError(inner), + crate::error::UpdateCustomVerificationEmailTemplateErrorKind::BadRequestException(inner) => Error::BadRequestException(inner), + crate::error::UpdateCustomVerificationEmailTemplateErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), + crate::error::UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), crate::error::UpdateCustomVerificationEmailTemplateErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1789,15 +1699,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateEmailIdentityPolicyErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateEmailIdentityPolicyErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateEmailIdentityPolicyErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) - } - crate::error::UpdateEmailIdentityPolicyErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateEmailIdentityPolicyErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } + crate::error::UpdateEmailIdentityPolicyErrorKind::TooManyRequestsException( + inner, + ) => Error::TooManyRequestsException(inner), crate::error::UpdateEmailIdentityPolicyErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -1810,14 +1720,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateEmailTemplateErrorKind::BadRequestError(inner) => { - Error::BadRequestError(inner) + crate::error::UpdateEmailTemplateErrorKind::BadRequestException(inner) => { + Error::BadRequestException(inner) } - crate::error::UpdateEmailTemplateErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UpdateEmailTemplateErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::UpdateEmailTemplateErrorKind::TooManyRequestsError(inner) => { - Error::TooManyRequestsError(inner) + crate::error::UpdateEmailTemplateErrorKind::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) } crate::error::UpdateEmailTemplateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) diff --git a/sdk/sesv2/src/input.rs b/sdk/sesv2/src/input.rs index 0a8b38d3e254..20555d6c6b2c 100644 --- a/sdk/sesv2/src/input.rs +++ b/sdk/sesv2/src/input.rs @@ -187,8 +187,9 @@ impl CreateConfigurationSetInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/configuration-sets").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/configuration-sets").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -196,7 +197,7 @@ impl CreateConfigurationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -280,7 +281,7 @@ pub mod create_configuration_set_event_destination_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateConfigurationSetEventDestinationInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, event_destination_name: self.event_destination_name, event_destination: self.event_destination, }) @@ -351,14 +352,31 @@ impl CreateConfigurationSetEventDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -366,7 +384,7 @@ impl CreateConfigurationSetEventDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -474,7 +492,7 @@ pub mod create_contact_input { ) -> std::result::Result { Ok(crate::input::CreateContactInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), + contact_list_name: self.contact_list_name, email_address: self.email_address, topic_preferences: self.topic_preferences, unsubscribe_all: self.unsubscribe_all.unwrap_or_default(), @@ -546,13 +564,31 @@ impl CreateContactInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}/contacts", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false) + ContactListName = contact_list_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -560,7 +596,7 @@ impl CreateContactInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -724,8 +760,9 @@ impl CreateContactListInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/contact-lists").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/contact-lists").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -733,7 +770,7 @@ impl CreateContactListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -932,9 +969,10 @@ impl CreateCustomVerificationEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/v2/email/custom-verification-email-templates") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -942,7 +980,7 @@ impl CreateCustomVerificationEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1077,8 +1115,9 @@ impl CreateDedicatedIpPoolInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/dedicated-ip-pools").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/dedicated-ip-pools").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1086,7 +1125,7 @@ impl CreateDedicatedIpPoolInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1252,9 +1291,10 @@ impl CreateDeliverabilityTestReportInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/v2/email/deliverability-dashboard/test") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1262,7 +1302,7 @@ impl CreateDeliverabilityTestReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1439,8 +1479,9 @@ impl CreateEmailIdentityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/identities").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/identities").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1448,7 +1489,7 @@ impl CreateEmailIdentityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1527,8 +1568,8 @@ pub mod create_email_identity_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::CreateEmailIdentityPolicyInput { - email_identity: self.email_identity.unwrap_or_default(), - policy_name: self.policy_name.unwrap_or_default(), + email_identity: self.email_identity, + policy_name: self.policy_name, policy: self.policy, }) } @@ -1599,14 +1640,49 @@ impl CreateEmailIdentityPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; + let policy_name = { + let input = &self.policy_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false), - PolicyName = smithy_http::label::fmt_string(&self.policy_name, false) + EmailIdentity = email_identity, + PolicyName = policy_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1614,7 +1690,7 @@ impl CreateEmailIdentityPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1752,8 +1828,9 @@ impl CreateEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/templates").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/templates").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1761,7 +1838,7 @@ impl CreateEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1897,8 +1974,9 @@ impl CreateImportJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/import-jobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/import-jobs").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1906,7 +1984,7 @@ impl CreateImportJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1961,7 +2039,7 @@ pub mod delete_configuration_set_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteConfigurationSetInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, }) } } @@ -2026,14 +2104,31 @@ impl DeleteConfigurationSetInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2041,7 +2136,7 @@ impl DeleteConfigurationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2110,8 +2205,8 @@ pub mod delete_configuration_set_event_destination_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteConfigurationSetEventDestinationInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), - event_destination_name: self.event_destination_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, + event_destination_name: self.event_destination_name, }) } } @@ -2178,8 +2273,43 @@ impl DeleteConfigurationSetEventDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", ConfigurationSetName = smithy_http::label::fmt_string(&self.configuration_set_name, false), EventDestinationName = smithy_http::label::fmt_string(&self.event_destination_name, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let event_destination_name = { + let input = &self.event_destination_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "event_destination_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "event_destination_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", ConfigurationSetName = configuration_set_name, EventDestinationName = event_destination_name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2187,7 +2317,7 @@ impl DeleteConfigurationSetEventDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2253,8 +2383,8 @@ pub mod delete_contact_input { ) -> std::result::Result { Ok(crate::input::DeleteContactInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), - email_address: self.email_address.unwrap_or_default(), + contact_list_name: self.contact_list_name, + email_address: self.email_address, }) } } @@ -2319,14 +2449,49 @@ impl DeleteContactInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let email_address = { + let input = &self.email_address; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false), - EmailAddress = smithy_http::label::fmt_string(&self.email_address, false) + ContactListName = contact_list_name, + EmailAddress = email_address ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2334,7 +2499,7 @@ impl DeleteContactInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2389,7 +2554,7 @@ pub mod delete_contact_list_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteContactListInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), + contact_list_name: self.contact_list_name, }) } } @@ -2454,13 +2619,31 @@ impl DeleteContactListInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false) + ContactListName = contact_list_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2468,7 +2651,7 @@ impl DeleteContactListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2523,7 +2706,7 @@ pub mod delete_custom_verification_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteCustomVerificationEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, }) } } @@ -2590,13 +2773,31 @@ impl DeleteCustomVerificationEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/custom-verification-email-templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2604,7 +2805,7 @@ impl DeleteCustomVerificationEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2656,7 +2857,7 @@ pub mod delete_dedicated_ip_pool_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteDedicatedIpPoolInput { - pool_name: self.pool_name.unwrap_or_default(), + pool_name: self.pool_name, }) } } @@ -2721,13 +2922,31 @@ impl DeleteDedicatedIpPoolInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let pool_name = { + let input = &self.pool_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "pool_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "pool_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/dedicated-ip-pools/{PoolName}", - PoolName = smithy_http::label::fmt_string(&self.pool_name, false) + PoolName = pool_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2735,7 +2954,7 @@ impl DeleteDedicatedIpPoolInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2790,7 +3009,7 @@ pub mod delete_email_identity_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteEmailIdentityInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, }) } } @@ -2855,13 +3074,31 @@ impl DeleteEmailIdentityInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2869,7 +3106,7 @@ impl DeleteEmailIdentityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2936,8 +3173,8 @@ pub mod delete_email_identity_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteEmailIdentityPolicyInput { - email_identity: self.email_identity.unwrap_or_default(), - policy_name: self.policy_name.unwrap_or_default(), + email_identity: self.email_identity, + policy_name: self.policy_name, }) } } @@ -3003,14 +3240,49 @@ impl DeleteEmailIdentityPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; + let policy_name = { + let input = &self.policy_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false), - PolicyName = smithy_http::label::fmt_string(&self.policy_name, false) + EmailIdentity = email_identity, + PolicyName = policy_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3018,7 +3290,7 @@ impl DeleteEmailIdentityPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3073,7 +3345,7 @@ pub mod delete_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, }) } } @@ -3138,13 +3410,31 @@ impl DeleteEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3152,7 +3442,7 @@ impl DeleteEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3207,7 +3497,7 @@ pub mod delete_suppressed_destination_input { smithy_http::operation::BuildError, > { Ok(crate::input::DeleteSuppressedDestinationInput { - email_address: self.email_address.unwrap_or_default(), + email_address: self.email_address, }) } } @@ -3273,13 +3563,31 @@ impl DeleteSuppressedDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_address = { + let input = &self.email_address; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/suppression/addresses/{EmailAddress}", - EmailAddress = smithy_http::label::fmt_string(&self.email_address, false) + EmailAddress = email_address ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3287,7 +3595,7 @@ impl DeleteSuppressedDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("DELETE").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3386,8 +3694,9 @@ impl GetAccountInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/account").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/account").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3395,7 +3704,7 @@ impl GetAccountInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3516,12 +3825,13 @@ impl GetBlacklistReportsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!( output, "/v2/email/deliverability-dashboard/blacklist-report" ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -3540,7 +3850,7 @@ impl GetBlacklistReportsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -3597,7 +3907,7 @@ pub mod get_configuration_set_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetConfigurationSetInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, }) } } @@ -3662,14 +3972,31 @@ impl GetConfigurationSetInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3677,7 +4004,7 @@ impl GetConfigurationSetInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3732,7 +4059,7 @@ pub mod get_configuration_set_event_destinations_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetConfigurationSetEventDestinationsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, }) } } @@ -3799,14 +4126,31 @@ impl GetConfigurationSetEventDestinationsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3814,7 +4158,7 @@ impl GetConfigurationSetEventDestinationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3880,8 +4224,8 @@ pub mod get_contact_input { ) -> std::result::Result { Ok(crate::input::GetContactInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), - email_address: self.email_address.unwrap_or_default(), + contact_list_name: self.contact_list_name, + email_address: self.email_address, }) } } @@ -3943,14 +4287,49 @@ impl GetContactInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let email_address = { + let input = &self.email_address; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false), - EmailAddress = smithy_http::label::fmt_string(&self.email_address, false) + ContactListName = contact_list_name, + EmailAddress = email_address ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3958,7 +4337,7 @@ impl GetContactInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4013,7 +4392,7 @@ pub mod get_contact_list_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetContactListInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), + contact_list_name: self.contact_list_name, }) } } @@ -4078,13 +4457,31 @@ impl GetContactListInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false) + ContactListName = contact_list_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4092,7 +4489,7 @@ impl GetContactListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4147,7 +4544,7 @@ pub mod get_custom_verification_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetCustomVerificationEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, }) } } @@ -4213,13 +4610,31 @@ impl GetCustomVerificationEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/custom-verification-email-templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4227,7 +4642,7 @@ impl GetCustomVerificationEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4279,9 +4694,7 @@ pub mod get_dedicated_ip_input { crate::input::GetDedicatedIpInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetDedicatedIpInput { - ip: self.ip.unwrap_or_default(), - }) + Ok(crate::input::GetDedicatedIpInput { ip: self.ip }) } } } @@ -4345,13 +4758,26 @@ impl GetDedicatedIpInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v2/email/dedicated-ips/{Ip}", - Ip = smithy_http::label::fmt_string(&self.ip, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ip = { + let input = &self.ip; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/dedicated-ips/{Ip}", Ip = ip).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4359,7 +4785,7 @@ impl GetDedicatedIpInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4502,8 +4928,9 @@ impl GetDedicatedIpsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/dedicated-ips").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/dedicated-ips").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -4523,7 +4950,7 @@ impl GetDedicatedIpsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -4629,8 +5056,9 @@ impl GetDeliverabilityDashboardOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/deliverability-dashboard").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/deliverability-dashboard").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4638,7 +5066,7 @@ impl GetDeliverabilityDashboardOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4690,7 +5118,7 @@ pub mod get_deliverability_test_report_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDeliverabilityTestReportInput { - report_id: self.report_id.unwrap_or_default(), + report_id: self.report_id, }) } } @@ -4756,13 +5184,31 @@ impl GetDeliverabilityTestReportInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let report_id = { + let input = &self.report_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "report_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "report_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/deliverability-dashboard/test-reports/{ReportId}", - ReportId = smithy_http::label::fmt_string(&self.report_id, false) + ReportId = report_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4770,7 +5216,7 @@ impl GetDeliverabilityTestReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4823,7 +5269,7 @@ pub mod get_domain_deliverability_campaign_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDomainDeliverabilityCampaignInput { - campaign_id: self.campaign_id.unwrap_or_default(), + campaign_id: self.campaign_id, }) } } @@ -4889,13 +5335,31 @@ impl GetDomainDeliverabilityCampaignInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let campaign_id = { + let input = &self.campaign_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "campaign_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "campaign_id", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/deliverability-dashboard/campaigns/{CampaignId}", - CampaignId = smithy_http::label::fmt_string(&self.campaign_id, false) + CampaignId = campaign_id ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4903,7 +5367,7 @@ impl GetDomainDeliverabilityCampaignInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4978,7 +5442,7 @@ pub mod get_domain_statistics_report_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetDomainStatisticsReportInput { - domain: self.domain.unwrap_or_default(), + domain: self.domain, start_date: self.start_date, end_date: self.end_date, }) @@ -5046,13 +5510,31 @@ impl GetDomainStatisticsReportInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let domain = { + let input = &self.domain; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "domain", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "domain", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/deliverability-dashboard/statistics-report/{Domain}", - Domain = smithy_http::label::fmt_string(&self.domain, false) + Domain = domain ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5081,7 +5563,7 @@ impl GetDomainStatisticsReportInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -5137,7 +5619,7 @@ pub mod get_email_identity_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetEmailIdentityInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, }) } } @@ -5202,13 +5684,31 @@ impl GetEmailIdentityInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5216,7 +5716,7 @@ impl GetEmailIdentityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5271,7 +5771,7 @@ pub mod get_email_identity_policies_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetEmailIdentityPoliciesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, }) } } @@ -5337,13 +5837,31 @@ impl GetEmailIdentityPoliciesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/policies", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5351,7 +5869,7 @@ impl GetEmailIdentityPoliciesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5406,7 +5924,7 @@ pub mod get_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, }) } } @@ -5471,13 +5989,31 @@ impl GetEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5485,7 +6021,7 @@ impl GetEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5535,7 +6071,7 @@ pub mod get_import_job_input { ) -> std::result::Result { Ok(crate::input::GetImportJobInput { - job_id: self.job_id.unwrap_or_default(), + job_id: self.job_id, }) } } @@ -5600,13 +6136,27 @@ impl GetImportJobInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v2/email/import-jobs/{JobId}", - JobId = smithy_http::label::fmt_string(&self.job_id, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let job_id = { + let input = &self.job_id; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "job_id", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "job_id", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/import-jobs/{JobId}", JobId = job_id) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5614,7 +6164,7 @@ impl GetImportJobInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5669,7 +6219,7 @@ pub mod get_suppressed_destination_input { smithy_http::operation::BuildError, > { Ok(crate::input::GetSuppressedDestinationInput { - email_address: self.email_address.unwrap_or_default(), + email_address: self.email_address, }) } } @@ -5735,13 +6285,31 @@ impl GetSuppressedDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_address = { + let input = &self.email_address; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/suppression/addresses/{EmailAddress}", - EmailAddress = smithy_http::label::fmt_string(&self.email_address, false) + EmailAddress = email_address ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5749,7 +6317,7 @@ impl GetSuppressedDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("GET").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5881,8 +6449,9 @@ impl ListConfigurationSetsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/configuration-sets").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/configuration-sets").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -5899,7 +6468,7 @@ impl ListConfigurationSetsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6035,8 +6604,9 @@ impl ListContactListsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/contact-lists").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/contact-lists").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6053,7 +6623,7 @@ impl ListContactListsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6147,7 +6717,7 @@ pub mod list_contacts_input { ) -> std::result::Result { Ok(crate::input::ListContactsInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), + contact_list_name: self.contact_list_name, filter: self.filter, page_size: self.page_size, next_token: self.next_token, @@ -6218,13 +6788,31 @@ impl ListContactsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}/contacts", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false) + ContactListName = contact_list_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6241,7 +6829,7 @@ impl ListContactsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6379,9 +6967,10 @@ impl ListCustomVerificationEmailTemplatesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/v2/email/custom-verification-email-templates") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6398,7 +6987,7 @@ impl ListCustomVerificationEmailTemplatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6531,8 +7120,9 @@ impl ListDedicatedIpPoolsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/dedicated-ip-pools").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/dedicated-ip-pools").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6549,7 +7139,7 @@ impl ListDedicatedIpPoolsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6685,9 +7275,10 @@ impl ListDeliverabilityTestReportsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/v2/email/deliverability-dashboard/test-reports") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6704,7 +7295,7 @@ impl ListDeliverabilityTestReportsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -6811,7 +7402,7 @@ pub mod list_domain_deliverability_campaigns_input { Ok(crate::input::ListDomainDeliverabilityCampaignsInput { start_date: self.start_date, end_date: self.end_date, - subscribed_domain: self.subscribed_domain.unwrap_or_default(), + subscribed_domain: self.subscribed_domain, next_token: self.next_token, page_size: self.page_size, }) @@ -6879,13 +7470,31 @@ impl ListDomainDeliverabilityCampaignsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let subscribed_domain = { + let input = &self.subscribed_domain; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "subscribed_domain", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "subscribed_domain", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns", - SubscribedDomain = smithy_http::label::fmt_string(&self.subscribed_domain, false) + SubscribedDomain = subscribed_domain ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -6920,7 +7529,7 @@ impl ListDomainDeliverabilityCampaignsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7054,8 +7663,9 @@ impl ListEmailIdentitiesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/identities").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/identities").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7072,7 +7682,7 @@ impl ListEmailIdentitiesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7205,8 +7815,9 @@ impl ListEmailTemplatesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/templates").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/templates").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7223,7 +7834,7 @@ impl ListEmailTemplatesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7379,8 +7990,9 @@ impl ListImportJobsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/import-jobs").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/import-jobs").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7397,7 +8009,7 @@ impl ListImportJobsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7573,8 +8185,9 @@ impl ListSuppressedDestinationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/suppression/addresses").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/suppression/addresses").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7614,7 +8227,7 @@ impl ListSuppressedDestinationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7733,8 +8346,9 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/tags").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/tags").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -7748,7 +8362,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("GET").uri(uri)) } @@ -7873,8 +8487,10 @@ impl PutAccountDedicatedIpWarmupAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/account/dedicated-ips/warmup").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/account/dedicated-ips/warmup") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -7882,7 +8498,7 @@ impl PutAccountDedicatedIpWarmupAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8081,8 +8697,9 @@ impl PutAccountDetailsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/account/details").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/account/details").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8090,7 +8707,7 @@ impl PutAccountDetailsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8217,8 +8834,9 @@ impl PutAccountSendingAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/account/sending").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/account/sending").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8226,7 +8844,7 @@ impl PutAccountSendingAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8356,8 +8974,9 @@ impl PutAccountSuppressionAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/account/suppression").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/account/suppression").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8365,7 +8984,7 @@ impl PutAccountSuppressionAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8451,7 +9070,7 @@ pub mod put_configuration_set_delivery_options_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutConfigurationSetDeliveryOptionsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, tls_policy: self.tls_policy, sending_pool_name: self.sending_pool_name, }) @@ -8525,14 +9144,31 @@ impl PutConfigurationSetDeliveryOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8540,7 +9176,7 @@ impl PutConfigurationSetDeliveryOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8608,7 +9244,7 @@ pub mod put_configuration_set_reputation_options_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutConfigurationSetReputationOptionsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, reputation_metrics_enabled: self.reputation_metrics_enabled.unwrap_or_default(), }) } @@ -8682,14 +9318,31 @@ impl PutConfigurationSetReputationOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8697,7 +9350,7 @@ impl PutConfigurationSetReputationOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8764,7 +9417,7 @@ pub mod put_configuration_set_sending_options_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutConfigurationSetSendingOptionsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, sending_enabled: self.sending_enabled.unwrap_or_default(), }) } @@ -8837,14 +9490,31 @@ impl PutConfigurationSetSendingOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/sending", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -8852,7 +9522,7 @@ impl PutConfigurationSetSendingOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -8926,7 +9596,7 @@ pub mod put_configuration_set_suppression_options_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutConfigurationSetSuppressionOptionsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, suppressed_reasons: self.suppressed_reasons, }) } @@ -8996,14 +9666,31 @@ impl PutConfigurationSetSuppressionOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9011,7 +9698,7 @@ impl PutConfigurationSetSuppressionOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9080,7 +9767,7 @@ pub mod put_configuration_set_tracking_options_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutConfigurationSetTrackingOptionsInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, custom_redirect_domain: self.custom_redirect_domain, }) } @@ -9153,14 +9840,31 @@ impl PutConfigurationSetTrackingOptionsInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options", - ConfigurationSetName = - smithy_http::label::fmt_string(&self.configuration_set_name, false) + ConfigurationSetName = configuration_set_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9168,7 +9872,7 @@ impl PutConfigurationSetTrackingOptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9235,7 +9939,7 @@ pub mod put_dedicated_ip_in_pool_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutDedicatedIpInPoolInput { - ip: self.ip.unwrap_or_default(), + ip: self.ip, destination_pool_name: self.destination_pool_name, }) } @@ -9304,13 +10008,27 @@ impl PutDedicatedIpInPoolInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v2/email/dedicated-ips/{Ip}/pool", - Ip = smithy_http::label::fmt_string(&self.ip, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ip = { + let input = &self.ip; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/dedicated-ips/{Ip}/pool", Ip = ip) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9318,7 +10036,7 @@ impl PutDedicatedIpInPoolInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9381,7 +10099,7 @@ pub mod put_dedicated_ip_warmup_attributes_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutDedicatedIpWarmupAttributesInput { - ip: self.ip.unwrap_or_default(), + ip: self.ip, warmup_percentage: self.warmup_percentage, }) } @@ -9452,13 +10170,27 @@ impl PutDedicatedIpWarmupAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!( - output, - "/v2/email/dedicated-ips/{Ip}/warmup", - Ip = smithy_http::label::fmt_string(&self.ip, false) - ) - .expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let ip = { + let input = &self.ip; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "ip", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/dedicated-ips/{Ip}/warmup", Ip = ip) + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9466,7 +10198,7 @@ impl PutDedicatedIpWarmupAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9612,8 +10344,9 @@ impl PutDeliverabilityDashboardOptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/deliverability-dashboard").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/deliverability-dashboard").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9621,7 +10354,7 @@ impl PutDeliverabilityDashboardOptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9690,7 +10423,7 @@ pub mod put_email_identity_configuration_set_attributes_input { > { Ok( crate::input::PutEmailIdentityConfigurationSetAttributesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, configuration_set_name: self.configuration_set_name, }, ) @@ -9761,13 +10494,31 @@ impl PutEmailIdentityConfigurationSetAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/configuration-set", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9775,7 +10526,7 @@ impl PutEmailIdentityConfigurationSetAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -9844,7 +10595,7 @@ pub mod put_email_identity_dkim_attributes_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutEmailIdentityDkimAttributesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, signing_enabled: self.signing_enabled.unwrap_or_default(), }) } @@ -9915,13 +10666,31 @@ impl PutEmailIdentityDkimAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/dkim", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -9929,7 +10698,7 @@ impl PutEmailIdentityDkimAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10029,7 +10798,7 @@ pub mod put_email_identity_dkim_signing_attributes_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutEmailIdentityDkimSigningAttributesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, signing_attributes_origin: self.signing_attributes_origin, signing_attributes: self.signing_attributes, }) @@ -10100,13 +10869,31 @@ impl PutEmailIdentityDkimSigningAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v1/email/identities/{EmailIdentity}/dkim/signing", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10114,7 +10901,7 @@ impl PutEmailIdentityDkimSigningAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10187,7 +10974,7 @@ pub mod put_email_identity_feedback_attributes_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutEmailIdentityFeedbackAttributesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, email_forwarding_enabled: self.email_forwarding_enabled.unwrap_or_default(), }) } @@ -10260,13 +11047,31 @@ impl PutEmailIdentityFeedbackAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/feedback", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10274,7 +11079,7 @@ impl PutEmailIdentityFeedbackAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10377,7 +11182,7 @@ pub mod put_email_identity_mail_from_attributes_input { smithy_http::operation::BuildError, > { Ok(crate::input::PutEmailIdentityMailFromAttributesInput { - email_identity: self.email_identity.unwrap_or_default(), + email_identity: self.email_identity, mail_from_domain: self.mail_from_domain, behavior_on_mx_failure: self.behavior_on_mx_failure, }) @@ -10451,13 +11256,31 @@ impl PutEmailIdentityMailFromAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/mail-from", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false) + EmailIdentity = email_identity ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10465,7 +11288,7 @@ impl PutEmailIdentityMailFromAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10605,8 +11428,9 @@ impl PutSuppressedDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/suppression/addresses").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/suppression/addresses").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10614,7 +11438,7 @@ impl PutSuppressedDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -10887,8 +11711,9 @@ impl SendBulkEmailInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/outbound-bulk-emails").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/outbound-bulk-emails").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -10896,7 +11721,7 @@ impl SendBulkEmailInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11050,9 +11875,10 @@ impl SendCustomVerificationEmailInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { write!(output, "/v2/email/outbound-custom-verification-emails") - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11060,7 +11886,7 @@ impl SendCustomVerificationEmailInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11347,8 +12173,9 @@ impl SendEmailInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/outbound-emails").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/outbound-emails").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11356,7 +12183,7 @@ impl SendEmailInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11490,8 +12317,9 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/tags").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/tags").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11499,7 +12327,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11569,7 +12397,7 @@ pub mod test_render_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::TestRenderEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, template_data: self.template_data, }) } @@ -11639,13 +12467,31 @@ impl TestRenderEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/templates/{TemplateName}/render", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11653,7 +12499,7 @@ impl TestRenderEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -11784,8 +12630,9 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/tags").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/v2/email/tags").expect("formatting should succeed"); + Ok(()) } fn uri_query(&self, mut output: &mut String) { let mut query = smithy_http::query::Writer::new(&mut output); @@ -11804,7 +12651,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; self.uri_query(&mut uri); Ok(builder.method("DELETE").uri(uri)) } @@ -11890,8 +12737,8 @@ pub mod update_configuration_set_event_destination_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateConfigurationSetEventDestinationInput { - configuration_set_name: self.configuration_set_name.unwrap_or_default(), - event_destination_name: self.event_destination_name.unwrap_or_default(), + configuration_set_name: self.configuration_set_name, + event_destination_name: self.event_destination_name, event_destination: self.event_destination, }) } @@ -11961,8 +12808,43 @@ impl UpdateConfigurationSetEventDestinationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", ConfigurationSetName = smithy_http::label::fmt_string(&self.configuration_set_name, false), EventDestinationName = smithy_http::label::fmt_string(&self.event_destination_name, false)).expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let configuration_set_name = { + let input = &self.configuration_set_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "configuration_set_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let event_destination_name = { + let input = &self.event_destination_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "event_destination_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "event_destination_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + write!(output, "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", ConfigurationSetName = configuration_set_name, EventDestinationName = event_destination_name).expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -11970,7 +12852,7 @@ impl UpdateConfigurationSetEventDestinationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12078,8 +12960,8 @@ pub mod update_contact_input { ) -> std::result::Result { Ok(crate::input::UpdateContactInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), - email_address: self.email_address.unwrap_or_default(), + contact_list_name: self.contact_list_name, + email_address: self.email_address, topic_preferences: self.topic_preferences, unsubscribe_all: self.unsubscribe_all.unwrap_or_default(), attributes_data: self.attributes_data, @@ -12150,14 +13032,49 @@ impl UpdateContactInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; + let email_address = { + let input = &self.email_address; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_address", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false), - EmailAddress = smithy_http::label::fmt_string(&self.email_address, false) + ContactListName = contact_list_name, + EmailAddress = email_address ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12165,7 +13082,7 @@ impl UpdateContactInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12244,7 +13161,7 @@ pub mod update_contact_list_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateContactListInput { - contact_list_name: self.contact_list_name.unwrap_or_default(), + contact_list_name: self.contact_list_name, topics: self.topics, description: self.description, }) @@ -12314,13 +13231,31 @@ impl UpdateContactListInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let contact_list_name = { + let input = &self.contact_list_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "contact_list_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/contact-lists/{ContactListName}", - ContactListName = smithy_http::label::fmt_string(&self.contact_list_name, false) + ContactListName = contact_list_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12328,7 +13263,7 @@ impl UpdateContactListInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12453,7 +13388,7 @@ pub mod update_custom_verification_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateCustomVerificationEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, from_email_address: self.from_email_address, template_subject: self.template_subject, template_content: self.template_content, @@ -12527,13 +13462,31 @@ impl UpdateCustomVerificationEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/custom-verification-email-templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12541,7 +13494,7 @@ impl UpdateCustomVerificationEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12620,8 +13573,8 @@ pub mod update_email_identity_policy_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateEmailIdentityPolicyInput { - email_identity: self.email_identity.unwrap_or_default(), - policy_name: self.policy_name.unwrap_or_default(), + email_identity: self.email_identity, + policy_name: self.policy_name, policy: self.policy, }) } @@ -12692,14 +13645,49 @@ impl UpdateEmailIdentityPolicyInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let email_identity = { + let input = &self.email_identity; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "email_identity", + details: "cannot be empty or unset", + }); + } + formatted + }; + let policy_name = { + let input = &self.policy_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "policy_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}", - EmailIdentity = smithy_http::label::fmt_string(&self.email_identity, false), - PolicyName = smithy_http::label::fmt_string(&self.policy_name, false) + EmailIdentity = email_identity, + PolicyName = policy_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12707,7 +13695,7 @@ impl UpdateEmailIdentityPolicyInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12776,7 +13764,7 @@ pub mod update_email_template_input { smithy_http::operation::BuildError, > { Ok(crate::input::UpdateEmailTemplateInput { - template_name: self.template_name.unwrap_or_default(), + template_name: self.template_name, template_content: self.template_content, }) } @@ -12845,13 +13833,31 @@ impl UpdateEmailTemplateInput { op }) } - fn uri_base(&self, output: &mut String) { + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + let template_name = { + let input = &self.template_name; + let input = input + .as_ref() + .ok_or(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + })?; + let formatted = smithy_http::label::fmt_string(input, false); + if formatted.is_empty() { + return Err(smithy_http::operation::BuildError::MissingField { + field: "template_name", + details: "cannot be empty or unset", + }); + } + formatted + }; write!( output, "/v2/email/templates/{TemplateName}", - TemplateName = smithy_http::label::fmt_string(&self.template_name, false) + TemplateName = template_name ) - .expect("formatting should succeed") + .expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -12859,7 +13865,7 @@ impl UpdateEmailTemplateInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("PUT").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -12891,7 +13897,7 @@ impl UpdateEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateEmailTemplateInput { ///

    The name of the template you want to update.

    - pub template_name: std::string::String, + pub template_name: std::option::Option, ///

    The content of the email template, composed of a subject line, an HTML part, and a /// text-only part.

    pub template_content: std::option::Option, @@ -12912,11 +13918,11 @@ impl std::fmt::Debug for UpdateEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateEmailIdentityPolicyInput { ///

    The email identity for which you want to update policy.

    - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

    The name of the policy.

    ///

    The policy name cannot exceed 64 characters and can only include alphanumeric /// characters, dashes, and underscores.

    - pub policy_name: std::string::String, + pub policy_name: std::option::Option, ///

    The text of the policy in JSON format. The policy cannot exceed 4 KB.

    ///

    For information about the syntax of sending authorization policies, see the Amazon SES Developer /// Guide.

    @@ -12937,7 +13943,7 @@ impl std::fmt::Debug for UpdateEmailIdentityPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateCustomVerificationEmailTemplateInput { ///

    The name of the custom verification email template that you want to update.

    - pub template_name: std::string::String, + pub template_name: std::option::Option, ///

    The email address that the custom verification email is sent from.

    pub from_email_address: std::option::Option, ///

    The subject line of the custom verification email.

    @@ -12971,7 +13977,7 @@ impl std::fmt::Debug for UpdateCustomVerificationEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateContactListInput { ///

    The name of the contact list.

    - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

    An interest group, theme, or label within a list. A contact list can have multiple /// topics.

    pub topics: std::option::Option>, @@ -12992,9 +13998,9 @@ impl std::fmt::Debug for UpdateContactListInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UpdateContactInput { ///

    The name of the contact list.

    - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

    The contact's email addres.

    - pub email_address: std::string::String, + pub email_address: std::option::Option, ///

    The contact's preference for being opted-in to or opted-out of a topic.

    pub topic_preferences: std::option::Option>, ///

    A boolean value status noting if the contact is unsubscribed from all contact list @@ -13022,9 +14028,9 @@ impl std::fmt::Debug for UpdateContactInput { pub struct UpdateConfigurationSetEventDestinationInput { ///

    The name of the configuration set that contains the event destination that you want to /// modify.

    - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

    The name of the event destination that you want to modify.

    - pub event_destination_name: std::string::String, + pub event_destination_name: std::option::Option, ///

    An object that defines the event destination.

    pub event_destination: std::option::Option, } @@ -13068,7 +14074,7 @@ impl std::fmt::Debug for UntagResourceInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TestRenderEmailTemplateInput { ///

    The name of the template that you want to render.

    - pub template_name: std::string::String, + pub template_name: std::option::Option, ///

    A list of replacement values to apply to the template. This parameter is a JSON /// object, typically consisting of key-value pairs in which the keys correspond to /// replacement tags in the email template.

    @@ -13313,7 +14319,7 @@ impl std::fmt::Debug for PutSuppressedDestinationInput { pub struct PutEmailIdentityMailFromAttributesInput { ///

    The verified email identity that you want to set up the custom MAIL FROM domain /// for.

    - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

    The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM /// domain must meet the following criteria:

    ///
      @@ -13357,7 +14363,7 @@ impl std::fmt::Debug for PutEmailIdentityMailFromAttributesInput { pub struct PutEmailIdentityFeedbackAttributesInput { ///

      The email identity that you want to configure bounce and complaint feedback forwarding /// for.

      - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

      Sets the feedback forwarding configuration for the identity.

      ///

      If the value is true, you receive email notifications when bounce or /// complaint events occur. These notifications are sent to the address that you specified @@ -13382,7 +14388,7 @@ impl std::fmt::Debug for PutEmailIdentityFeedbackAttributesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutEmailIdentityDkimSigningAttributesInput { ///

      The email identity that you want to configure DKIM for.

      - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

      The method that you want to use to configure DKIM for the identity. There are two /// possible values:

      ///
        @@ -13419,7 +14425,7 @@ impl std::fmt::Debug for PutEmailIdentityDkimSigningAttributesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutEmailIdentityDkimAttributesInput { ///

        The email identity that you want to change the DKIM settings for.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

        Sets the DKIM signing configuration for the identity.

        ///

        When you set this value true, then the messages that are sent from the /// identity are signed using DKIM. If you set this value to false, your @@ -13440,7 +14446,7 @@ impl std::fmt::Debug for PutEmailIdentityDkimAttributesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutEmailIdentityConfigurationSetAttributesInput { ///

        The email address or domain that you want to associate with a configuration set.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

        The configuration set that you want to associate with an email identity.

        pub configuration_set_name: std::option::Option, } @@ -13485,7 +14491,7 @@ impl std::fmt::Debug for PutDeliverabilityDashboardOptionInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PutDedicatedIpWarmupAttributesInput { ///

        The dedicated IP address that you want to update the warm-up attributes for.

        - pub ip: std::string::String, + pub ip: std::option::Option, ///

        The warm-up percentage that you want to associate with the dedicated IP /// address.

        pub warmup_percentage: std::option::Option, @@ -13505,7 +14511,7 @@ impl std::fmt::Debug for PutDedicatedIpWarmupAttributesInput { pub struct PutDedicatedIpInPoolInput { ///

        The IP address that you want to move to the dedicated IP pool. The value you specify /// has to be a dedicated IP address that's associated with your AWS account.

        - pub ip: std::string::String, + pub ip: std::option::Option, ///

        The name of the IP pool that you want to add the dedicated IP address to. You have to /// specify an IP pool that already exists.

        pub destination_pool_name: std::option::Option, @@ -13526,7 +14532,7 @@ impl std::fmt::Debug for PutDedicatedIpInPoolInput { pub struct PutConfigurationSetTrackingOptionsInput { ///

        The name of the configuration set that you want to add a custom tracking domain /// to.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        The domain that you want to use to track open and click events.

        pub custom_redirect_domain: std::option::Option, } @@ -13546,7 +14552,7 @@ impl std::fmt::Debug for PutConfigurationSetTrackingOptionsInput { pub struct PutConfigurationSetSuppressionOptionsInput { ///

        The name of the configuration set that you want to change the suppression list /// preferences for.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        A list that contains the reasons that email addresses are automatically added to the /// suppression list for your account. This list can contain any or all of the /// following:

        @@ -13582,7 +14588,7 @@ impl std::fmt::Debug for PutConfigurationSetSuppressionOptionsInput { pub struct PutConfigurationSetSendingOptionsInput { ///

        The name of the configuration set that you want to enable or disable email sending /// for.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        If true, email sending is enabled for the configuration set. If /// false, email sending is disabled for the configuration set.

        pub sending_enabled: bool, @@ -13603,7 +14609,7 @@ impl std::fmt::Debug for PutConfigurationSetSendingOptionsInput { pub struct PutConfigurationSetReputationOptionsInput { ///

        The name of the configuration set that you want to enable or disable reputation metric /// tracking for.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        If true, tracking of reputation metrics is enabled for the configuration /// set. If false, tracking of reputation metrics is disabled for the /// configuration set.

        @@ -13627,7 +14633,7 @@ impl std::fmt::Debug for PutConfigurationSetReputationOptionsInput { pub struct PutConfigurationSetDeliveryOptionsInput { ///

        The name of the configuration set that you want to associate with a dedicated IP /// pool.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        Specifies whether messages that use the configuration set are required to use /// Transport Layer Security (TLS). If the value is Require, messages are only /// delivered if a TLS connection can be established. If the value is Optional, @@ -13904,7 +14910,7 @@ pub struct ListDomainDeliverabilityCampaignsInput { /// StartDate parameter.

        pub end_date: std::option::Option, ///

        The domain to obtain deliverability data for.

        - pub subscribed_domain: std::string::String, + pub subscribed_domain: std::option::Option, ///

        A token that’s returned from a previous call to the /// ListDomainDeliverabilityCampaigns operation. This token indicates the /// position of a campaign in the list of campaigns.

        @@ -14004,7 +15010,7 @@ impl std::fmt::Debug for ListCustomVerificationEmailTemplatesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListContactsInput { ///

        The name of the contact list.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

        A filter that can be applied to a list of contacts.

        pub filter: std::option::Option, ///

        The number of contacts that may be returned at once, which is dependent on if there @@ -14083,7 +15089,7 @@ impl std::fmt::Debug for ListConfigurationSetsInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetSuppressedDestinationInput { ///

        The email address that's on the account suppression list.

        - pub email_address: std::string::String, + pub email_address: std::option::Option, } impl std::fmt::Debug for GetSuppressedDestinationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14099,7 +15105,7 @@ impl std::fmt::Debug for GetSuppressedDestinationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetImportJobInput { ///

        The ID of the import job.

        - pub job_id: std::string::String, + pub job_id: std::option::Option, } impl std::fmt::Debug for GetImportJobInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14115,7 +15121,7 @@ impl std::fmt::Debug for GetImportJobInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetEmailTemplateInput { ///

        The name of the template you want to retrieve.

        - pub template_name: std::string::String, + pub template_name: std::option::Option, } impl std::fmt::Debug for GetEmailTemplateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14130,7 +15136,7 @@ impl std::fmt::Debug for GetEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetEmailIdentityPoliciesInput { ///

        The email identity that you want to retrieve policies for.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, } impl std::fmt::Debug for GetEmailIdentityPoliciesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14145,7 +15151,7 @@ impl std::fmt::Debug for GetEmailIdentityPoliciesInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetEmailIdentityInput { ///

        The email identity that you want to retrieve details for.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, } impl std::fmt::Debug for GetEmailIdentityInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14160,7 +15166,7 @@ impl std::fmt::Debug for GetEmailIdentityInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDomainStatisticsReportInput { ///

        The domain that you want to obtain deliverability metrics for.

        - pub domain: std::string::String, + pub domain: std::option::Option, ///

        The first day (in Unix time) that you want to obtain domain deliverability metrics /// for.

        pub start_date: std::option::Option, @@ -14188,7 +15194,7 @@ impl std::fmt::Debug for GetDomainStatisticsReportInput { pub struct GetDomainDeliverabilityCampaignInput { ///

        The unique identifier for the campaign. The Deliverability dashboard automatically generates /// and assigns this identifier to a campaign.

        - pub campaign_id: std::string::String, + pub campaign_id: std::option::Option, } impl std::fmt::Debug for GetDomainDeliverabilityCampaignInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14203,7 +15209,7 @@ impl std::fmt::Debug for GetDomainDeliverabilityCampaignInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetDeliverabilityTestReportInput { ///

        A unique string that identifies the predictive inbox placement test.

        - pub report_id: std::string::String, + pub report_id: std::option::Option, } impl std::fmt::Debug for GetDeliverabilityTestReportInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14260,7 +15266,7 @@ impl std::fmt::Debug for GetDedicatedIpsInput { pub struct GetDedicatedIpInput { ///

        The IP address that you want to obtain more information about. The value you specify /// has to be a dedicated IP address that's assocaited with your AWS account.

        - pub ip: std::string::String, + pub ip: std::option::Option, } impl std::fmt::Debug for GetDedicatedIpInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14276,7 +15282,7 @@ impl std::fmt::Debug for GetDedicatedIpInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetCustomVerificationEmailTemplateInput { ///

        The name of the custom verification email template that you want to retrieve.

        - pub template_name: std::string::String, + pub template_name: std::option::Option, } impl std::fmt::Debug for GetCustomVerificationEmailTemplateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14290,7 +15296,7 @@ impl std::fmt::Debug for GetCustomVerificationEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetContactListInput { ///

        The name of the contact list.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, } impl std::fmt::Debug for GetContactListInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14304,9 +15310,9 @@ impl std::fmt::Debug for GetContactListInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetContactInput { ///

        The name of the contact list to which the contact belongs.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

        The contact's email addres.

        - pub email_address: std::string::String, + pub email_address: std::option::Option, } impl std::fmt::Debug for GetContactInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14323,7 +15329,7 @@ impl std::fmt::Debug for GetContactInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct GetConfigurationSetEventDestinationsInput { ///

        The name of the configuration set that contains the event destination.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, } impl std::fmt::Debug for GetConfigurationSetEventDestinationsInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14339,7 +15345,7 @@ impl std::fmt::Debug for GetConfigurationSetEventDestinationsInput { pub struct GetConfigurationSetInput { ///

        The name of the configuration set that you want to obtain more information /// about.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, } impl std::fmt::Debug for GetConfigurationSetInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14385,7 +15391,7 @@ impl std::fmt::Debug for GetAccountInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteSuppressedDestinationInput { ///

        The suppressed email destination to remove from the account suppression list.

        - pub email_address: std::string::String, + pub email_address: std::option::Option, } impl std::fmt::Debug for DeleteSuppressedDestinationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14401,7 +15407,7 @@ impl std::fmt::Debug for DeleteSuppressedDestinationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteEmailTemplateInput { ///

        The name of the template to be deleted.

        - pub template_name: std::string::String, + pub template_name: std::option::Option, } impl std::fmt::Debug for DeleteEmailTemplateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14418,11 +15424,11 @@ impl std::fmt::Debug for DeleteEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteEmailIdentityPolicyInput { ///

        The email identity for which you want to delete a policy.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

        The name of the policy.

        ///

        The policy name cannot exceed 64 characters and can only include alphanumeric /// characters, dashes, and underscores.

        - pub policy_name: std::string::String, + pub policy_name: std::option::Option, } impl std::fmt::Debug for DeleteEmailIdentityPolicyInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14440,7 +15446,7 @@ impl std::fmt::Debug for DeleteEmailIdentityPolicyInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteEmailIdentityInput { ///

        The identity (that is, the email address or domain) that you want to delete.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, } impl std::fmt::Debug for DeleteEmailIdentityInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14455,7 +15461,7 @@ impl std::fmt::Debug for DeleteEmailIdentityInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteDedicatedIpPoolInput { ///

        The name of the dedicated IP pool that you want to delete.

        - pub pool_name: std::string::String, + pub pool_name: std::option::Option, } impl std::fmt::Debug for DeleteDedicatedIpPoolInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14470,7 +15476,7 @@ impl std::fmt::Debug for DeleteDedicatedIpPoolInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteCustomVerificationEmailTemplateInput { ///

        The name of the custom verification email template that you want to delete.

        - pub template_name: std::string::String, + pub template_name: std::option::Option, } impl std::fmt::Debug for DeleteCustomVerificationEmailTemplateInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14484,7 +15490,7 @@ impl std::fmt::Debug for DeleteCustomVerificationEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteContactListInput { ///

        The name of the contact list.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, } impl std::fmt::Debug for DeleteContactListInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14498,9 +15504,9 @@ impl std::fmt::Debug for DeleteContactListInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteContactInput { ///

        The name of the contact list from which the contact should be removed.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

        The contact's email address.

        - pub email_address: std::string::String, + pub email_address: std::option::Option, } impl std::fmt::Debug for DeleteContactInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14517,9 +15523,9 @@ impl std::fmt::Debug for DeleteContactInput { pub struct DeleteConfigurationSetEventDestinationInput { ///

        The name of the configuration set that contains the event destination that you want to /// delete.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        The name of the event destination that you want to delete.

        - pub event_destination_name: std::string::String, + pub event_destination_name: std::option::Option, } impl std::fmt::Debug for DeleteConfigurationSetEventDestinationInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14535,7 +15541,7 @@ impl std::fmt::Debug for DeleteConfigurationSetEventDestinationInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeleteConfigurationSetInput { ///

        The name of the configuration set that you want to delete.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, } impl std::fmt::Debug for DeleteConfigurationSetInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -14591,11 +15597,11 @@ impl std::fmt::Debug for CreateEmailTemplateInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateEmailIdentityPolicyInput { ///

        The email identity for which you want to create a policy.

        - pub email_identity: std::string::String, + pub email_identity: std::option::Option, ///

        The name of the policy.

        ///

        The policy name cannot exceed 64 characters and can only include alphanumeric /// characters, dashes, and underscores.

        - pub policy_name: std::string::String, + pub policy_name: std::option::Option, ///

        The text of the policy in JSON format. The policy cannot exceed 4 KB.

        ///

        For information about the syntax of sending authorization policies, see the Amazon SES Developer /// Guide.

        @@ -14758,7 +15764,7 @@ impl std::fmt::Debug for CreateContactListInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateContactInput { ///

        The name of the contact list to which the contact should be added.

        - pub contact_list_name: std::string::String, + pub contact_list_name: std::option::Option, ///

        The contact's email address.

        pub email_address: std::option::Option, ///

        The contact's preferences for being opted-in to or opted-out of topics.

        @@ -14786,7 +15792,7 @@ impl std::fmt::Debug for CreateContactInput { #[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateConfigurationSetEventDestinationInput { ///

        The name of the configuration set that you want to add an event destination to.

        - pub configuration_set_name: std::string::String, + pub configuration_set_name: std::option::Option, ///

        A name that identifies the event destination within the configuration set.

        pub event_destination_name: std::option::Option, ///

        An object that defines the event destination.

        diff --git a/sdk/sesv2/src/instant_epoch.rs b/sdk/sesv2/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/sesv2/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/sesv2/src/json_deser.rs b/sdk/sesv2/src/json_deser.rs index 0a75b727865f..c28bc9ace7c1 100644 --- a/sdk/sesv2/src/json_deser.rs +++ b/sdk/sesv2/src/json_deser.rs @@ -1,949 +1,6621 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn parse_generic_error( response: &http::Response, -) -> Result { - let body = - serde_json::from_slice(response.body().as_ref()).unwrap_or_else(|_| serde_json::json!({})); - Ok(crate::aws_json_errors::parse_generic_error( - &response, &body, - )) -} - -pub fn already_exists_exception( - input: &[u8], - mut builder: crate::error::already_exists_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::AlreadyExistsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + crate::json_errors::parse_generic_error(response) +} + +pub fn deser_structure_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::already_exists_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn bad_request_exception( +pub fn deser_structure_bad_request_exceptionjson_err( input: &[u8], - mut builder: crate::error::bad_request_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::BadRequestError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::bad_request_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn concurrent_modification_exception( +pub fn deser_structure_concurrent_modification_exceptionjson_err( input: &[u8], - mut builder: crate::error::concurrent_modification_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ConcurrentModificationError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::concurrent_modification_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn limit_exceeded_exception( +pub fn deser_structure_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::error::limit_exceeded_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::LimitExceededError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::limit_exceeded_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn not_found_exception( +pub fn deser_structure_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::NotFoundError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn too_many_requests_exception( +pub fn deser_structure_too_many_requests_exceptionjson_err( input: &[u8], - mut builder: crate::error::too_many_requests_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::TooManyRequestsError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::too_many_requests_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn account_suspended_exception( +pub fn deser_structure_account_suspended_exceptionjson_err( input: &[u8], - mut builder: crate::error::account_suspended_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::AccountSuspendedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::account_suspended_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn mail_from_domain_not_verified_exception( +pub fn deser_structure_mail_from_domain_not_verified_exceptionjson_err( input: &[u8], - mut builder: crate::error::mail_from_domain_not_verified_error::Builder, -) -> std::result::Result< - crate::error::mail_from_domain_not_verified_error::Builder, - serde_json::Error, + mut builder: crate::error::mail_from_domain_not_verified_exception::Builder, +) -> Result< + crate::error::mail_from_domain_not_verified_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::error::MailFromDomainNotVerifiedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn message_rejected( +pub fn deser_structure_message_rejectedjson_err( input: &[u8], mut builder: crate::error::message_rejected::Builder, -) -> std::result::Result { - let parsed_body: crate::error::MessageRejected = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn sending_paused_exception( +pub fn deser_structure_sending_paused_exceptionjson_err( input: &[u8], - mut builder: crate::error::sending_paused_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::SendingPausedError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::sending_paused_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_deliverability_test_report_deser_operation( +pub fn deser_operation_create_deliverability_test_report( input: &[u8], mut builder: crate::output::create_deliverability_test_report_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::create_deliverability_test_report_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::CreateDeliverabilityTestReportOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_report_id(parsed_body.report_id); - builder = builder.set_deliverability_test_status(parsed_body.deliverability_test_status); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeliverabilityTestStatus" => { + builder = builder.set_deliverability_test_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeliverabilityTestStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ReportId" => { + builder = builder.set_report_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_email_identity_deser_operation( +pub fn deser_operation_create_email_identity( input: &[u8], mut builder: crate::output::create_email_identity_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateEmailIdentityOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_identity_type(parsed_body.identity_type); - builder = - builder.set_verified_for_sending_status(Some(parsed_body.verified_for_sending_status)); - builder = builder.set_dkim_attributes(parsed_body.dkim_attributes); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DkimAttributes" => { + builder = builder.set_dkim_attributes( + crate::json_deser::deser_structure_dkim_attributes(tokens)?, + ); + } + "IdentityType" => { + builder = builder.set_identity_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IdentityType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "VerifiedForSendingStatus" => { + builder = builder.set_verified_for_sending_status( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_import_job_deser_operation( +pub fn deser_operation_create_import_job( input: &[u8], mut builder: crate::output::create_import_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateImportJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_id(parsed_body.job_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_account_deser_operation( +pub fn deser_operation_get_account( input: &[u8], mut builder: crate::output::get_account_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetAccountOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_dedicated_ip_auto_warmup_enabled(Some(parsed_body.dedicated_ip_auto_warmup_enabled)); - builder = builder.set_enforcement_status(parsed_body.enforcement_status); - builder = builder.set_production_access_enabled(Some(parsed_body.production_access_enabled)); - builder = builder.set_send_quota(parsed_body.send_quota); - builder = builder.set_sending_enabled(Some(parsed_body.sending_enabled)); - builder = builder.set_suppression_attributes(parsed_body.suppression_attributes); - builder = builder.set_details(parsed_body.details); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DedicatedIpAutoWarmupEnabled" => { + builder = builder.set_dedicated_ip_auto_warmup_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Details" => { + builder = builder.set_details( + crate::json_deser::deser_structure_account_details(tokens)?, + ); + } + "EnforcementStatus" => { + builder = builder.set_enforcement_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductionAccessEnabled" => { + builder = builder.set_production_access_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "SendQuota" => { + builder = builder + .set_send_quota(crate::json_deser::deser_structure_send_quota(tokens)?); + } + "SendingEnabled" => { + builder = builder.set_sending_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "SuppressionAttributes" => { + builder = builder.set_suppression_attributes( + crate::json_deser::deser_structure_suppression_attributes(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_blacklist_reports_deser_operation( +pub fn deser_operation_get_blacklist_reports( input: &[u8], mut builder: crate::output::get_blacklist_reports_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetBlacklistReportsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_blacklist_report(parsed_body.blacklist_report); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BlacklistReport" => { + builder = builder.set_blacklist_report( + crate::json_deser::deser_map_blacklist_report(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_configuration_set_deser_operation( +pub fn deser_operation_get_configuration_set( input: &[u8], mut builder: crate::output::get_configuration_set_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetConfigurationSetOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_configuration_set_name(parsed_body.configuration_set_name); - builder = builder.set_tracking_options(parsed_body.tracking_options); - builder = builder.set_delivery_options(parsed_body.delivery_options); - builder = builder.set_reputation_options(parsed_body.reputation_options); - builder = builder.set_sending_options(parsed_body.sending_options); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_suppression_options(parsed_body.suppression_options); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConfigurationSetName" => { + builder = builder.set_configuration_set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeliveryOptions" => { + builder = builder.set_delivery_options( + crate::json_deser::deser_structure_delivery_options(tokens)?, + ); + } + "ReputationOptions" => { + builder = builder.set_reputation_options( + crate::json_deser::deser_structure_reputation_options(tokens)?, + ); + } + "SendingOptions" => { + builder = builder.set_sending_options( + crate::json_deser::deser_structure_sending_options(tokens)?, + ); + } + "SuppressionOptions" => { + builder = builder.set_suppression_options( + crate::json_deser::deser_structure_suppression_options(tokens)?, + ); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "TrackingOptions" => { + builder = builder.set_tracking_options( + crate::json_deser::deser_structure_tracking_options(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_configuration_set_event_destinations_deser_operation( +pub fn deser_operation_get_configuration_set_event_destinations( input: &[u8], mut builder: crate::output::get_configuration_set_event_destinations_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_configuration_set_event_destinations_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetConfigurationSetEventDestinationsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_event_destinations(parsed_body.event_destinations); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EventDestinations" => { + builder = builder.set_event_destinations( + crate::json_deser::deser_list_event_destinations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_contact_deser_operation( +pub fn deser_operation_get_contact( input: &[u8], mut builder: crate::output::get_contact_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetContactOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_contact_list_name(parsed_body.contact_list_name); - builder = builder.set_email_address(parsed_body.email_address); - builder = builder.set_topic_preferences(parsed_body.topic_preferences); - builder = builder.set_topic_default_preferences(parsed_body.topic_default_preferences); - builder = builder.set_unsubscribe_all(Some(parsed_body.unsubscribe_all)); - builder = builder.set_attributes_data(parsed_body.attributes_data); - builder = builder.set_created_timestamp(parsed_body.created_timestamp); - builder = builder.set_last_updated_timestamp(parsed_body.last_updated_timestamp); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AttributesData" => { + builder = builder.set_attributes_data( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContactListName" => { + builder = builder.set_contact_list_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTimestamp" => { + builder = builder.set_created_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EmailAddress" => { + builder = builder.set_email_address( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdatedTimestamp" => { + builder = builder.set_last_updated_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TopicDefaultPreferences" => { + builder = builder.set_topic_default_preferences( + crate::json_deser::deser_list_topic_preference_list(tokens)?, + ); + } + "TopicPreferences" => { + builder = builder.set_topic_preferences( + crate::json_deser::deser_list_topic_preference_list(tokens)?, + ); + } + "UnsubscribeAll" => { + builder = builder.set_unsubscribe_all( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_contact_list_deser_operation( +pub fn deser_operation_get_contact_list( input: &[u8], mut builder: crate::output::get_contact_list_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetContactListOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_contact_list_name(parsed_body.contact_list_name); - builder = builder.set_topics(parsed_body.topics); - builder = builder.set_description(parsed_body.description); - builder = builder.set_created_timestamp(parsed_body.created_timestamp); - builder = builder.set_last_updated_timestamp(parsed_body.last_updated_timestamp); - builder = builder.set_tags(parsed_body.tags); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContactListName" => { + builder = builder.set_contact_list_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTimestamp" => { + builder = builder.set_created_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdatedTimestamp" => { + builder = builder.set_last_updated_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "Topics" => { + builder = builder.set_topics(crate::json_deser::deser_list_topics(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_custom_verification_email_template_deser_operation( +pub fn deser_operation_get_custom_verification_email_template( input: &[u8], mut builder: crate::output::get_custom_verification_email_template_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_custom_verification_email_template_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetCustomVerificationEmailTemplateOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_template_name(parsed_body.template_name); - builder = builder.set_from_email_address(parsed_body.from_email_address); - builder = builder.set_template_subject(parsed_body.template_subject); - builder = builder.set_template_content(parsed_body.template_content); - builder = builder.set_success_redirection_url(parsed_body.success_redirection_url); - builder = builder.set_failure_redirection_url(parsed_body.failure_redirection_url); - Ok(builder) -} - -pub fn get_dedicated_ip_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FailureRedirectionURL" => { + builder = builder.set_failure_redirection_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FromEmailAddress" => { + builder = builder.set_from_email_address( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SuccessRedirectionURL" => { + builder = builder.set_success_redirection_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TemplateContent" => { + builder = builder.set_template_content( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TemplateName" => { + builder = builder.set_template_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TemplateSubject" => { + builder = builder.set_template_subject( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_dedicated_ip( input: &[u8], mut builder: crate::output::get_dedicated_ip_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDedicatedIpOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_dedicated_ip(parsed_body.dedicated_ip); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DedicatedIp" => { + builder = builder.set_dedicated_ip( + crate::json_deser::deser_structure_dedicated_ip(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_dedicated_ips_deser_operation( +pub fn deser_operation_get_dedicated_ips( input: &[u8], mut builder: crate::output::get_dedicated_ips_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDedicatedIpsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_dedicated_ips(parsed_body.dedicated_ips); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DedicatedIps" => { + builder = builder.set_dedicated_ips( + crate::json_deser::deser_list_dedicated_ip_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_deliverability_dashboard_options_deser_operation( +pub fn deser_operation_get_deliverability_dashboard_options( input: &[u8], mut builder: crate::output::get_deliverability_dashboard_options_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_deliverability_dashboard_options_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetDeliverabilityDashboardOptionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_dashboard_enabled(Some(parsed_body.dashboard_enabled)); - builder = builder.set_subscription_expiry_date(parsed_body.subscription_expiry_date); - builder = builder.set_account_status(parsed_body.account_status); - builder = builder.set_active_subscribed_domains(parsed_body.active_subscribed_domains); - builder = builder.set_pending_expiration_subscribed_domains( - parsed_body.pending_expiration_subscribed_domains, - ); - Ok(builder) -} - -pub fn get_deliverability_test_report_deser_operation( + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AccountStatus" => { + builder = builder.set_account_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeliverabilityDashboardAccountStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ActiveSubscribedDomains" => { + builder = builder.set_active_subscribed_domains( + crate::json_deser::deser_list_domain_deliverability_tracking_options( + tokens, + )?, + ); + } + "DashboardEnabled" => { + builder = builder.set_dashboard_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "PendingExpirationSubscribedDomains" => { + builder = builder.set_pending_expiration_subscribed_domains( + crate::json_deser::deser_list_domain_deliverability_tracking_options( + tokens, + )?, + ); + } + "SubscriptionExpiryDate" => { + builder = builder.set_subscription_expiry_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_deliverability_test_report( input: &[u8], mut builder: crate::output::get_deliverability_test_report_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_deliverability_test_report_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetDeliverabilityTestReportOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deliverability_test_report(parsed_body.deliverability_test_report); - builder = builder.set_overall_placement(parsed_body.overall_placement); - builder = builder.set_isp_placements(parsed_body.isp_placements); - builder = builder.set_message(parsed_body.message); - builder = builder.set_tags(parsed_body.tags); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeliverabilityTestReport" => { + builder = builder.set_deliverability_test_report( + crate::json_deser::deser_structure_deliverability_test_report(tokens)?, + ); + } + "IspPlacements" => { + builder = builder.set_isp_placements( + crate::json_deser::deser_list_isp_placements(tokens)?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OverallPlacement" => { + builder = builder.set_overall_placement( + crate::json_deser::deser_structure_placement_statistics(tokens)?, + ); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_domain_deliverability_campaign_deser_operation( +pub fn deser_operation_get_domain_deliverability_campaign( input: &[u8], mut builder: crate::output::get_domain_deliverability_campaign_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_domain_deliverability_campaign_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetDomainDeliverabilityCampaignOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_domain_deliverability_campaign(parsed_body.domain_deliverability_campaign); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainDeliverabilityCampaign" => { + builder = builder.set_domain_deliverability_campaign( + crate::json_deser::deser_structure_domain_deliverability_campaign( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_domain_statistics_report_deser_operation( +pub fn deser_operation_get_domain_statistics_report( input: &[u8], mut builder: crate::output::get_domain_statistics_report_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_domain_statistics_report_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetDomainStatisticsReportOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_overall_volume(parsed_body.overall_volume); - builder = builder.set_daily_volumes(parsed_body.daily_volumes); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DailyVolumes" => { + builder = builder.set_daily_volumes( + crate::json_deser::deser_list_daily_volumes(tokens)?, + ); + } + "OverallVolume" => { + builder = builder.set_overall_volume( + crate::json_deser::deser_structure_overall_volume(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_email_identity_deser_operation( +pub fn deser_operation_get_email_identity( input: &[u8], mut builder: crate::output::get_email_identity_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetEmailIdentityOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_identity_type(parsed_body.identity_type); - builder = builder.set_feedback_forwarding_status(Some(parsed_body.feedback_forwarding_status)); - builder = - builder.set_verified_for_sending_status(Some(parsed_body.verified_for_sending_status)); - builder = builder.set_dkim_attributes(parsed_body.dkim_attributes); - builder = builder.set_mail_from_attributes(parsed_body.mail_from_attributes); - builder = builder.set_policies(parsed_body.policies); - builder = builder.set_tags(parsed_body.tags); - builder = builder.set_configuration_set_name(parsed_body.configuration_set_name); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConfigurationSetName" => { + builder = builder.set_configuration_set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DkimAttributes" => { + builder = builder.set_dkim_attributes( + crate::json_deser::deser_structure_dkim_attributes(tokens)?, + ); + } + "FeedbackForwardingStatus" => { + builder = builder.set_feedback_forwarding_status( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "IdentityType" => { + builder = builder.set_identity_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IdentityType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "MailFromAttributes" => { + builder = builder.set_mail_from_attributes( + crate::json_deser::deser_structure_mail_from_attributes(tokens)?, + ); + } + "Policies" => { + builder = + builder.set_policies(crate::json_deser::deser_map_policy_map(tokens)?); + } + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "VerifiedForSendingStatus" => { + builder = builder.set_verified_for_sending_status( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_email_identity_policies_deser_operation( +pub fn deser_operation_get_email_identity_policies( input: &[u8], mut builder: crate::output::get_email_identity_policies_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::get_email_identity_policies_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetEmailIdentityPoliciesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_policies(parsed_body.policies); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Policies" => { + builder = + builder.set_policies(crate::json_deser::deser_map_policy_map(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_email_template_deser_operation( +pub fn deser_operation_get_email_template( input: &[u8], mut builder: crate::output::get_email_template_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetEmailTemplateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_template_name(parsed_body.template_name); - builder = builder.set_template_content(parsed_body.template_content); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TemplateContent" => { + builder = builder.set_template_content( + crate::json_deser::deser_structure_email_template_content(tokens)?, + ); + } + "TemplateName" => { + builder = builder.set_template_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_import_job_deser_operation( +pub fn deser_operation_get_import_job( input: &[u8], mut builder: crate::output::get_import_job_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetImportJobOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_job_id(parsed_body.job_id); - builder = builder.set_import_destination(parsed_body.import_destination); - builder = builder.set_import_data_source(parsed_body.import_data_source); - builder = builder.set_failure_info(parsed_body.failure_info); - builder = builder.set_job_status(parsed_body.job_status); - builder = builder.set_created_timestamp(parsed_body.created_timestamp); - builder = builder.set_completed_timestamp(parsed_body.completed_timestamp); - builder = builder.set_processed_records_count(parsed_body.processed_records_count); - builder = builder.set_failed_records_count(parsed_body.failed_records_count); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompletedTimestamp" => { + builder = builder.set_completed_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CreatedTimestamp" => { + builder = builder.set_created_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "FailedRecordsCount" => { + builder = builder.set_failed_records_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "FailureInfo" => { + builder = builder.set_failure_info( + crate::json_deser::deser_structure_failure_info(tokens)?, + ); + } + "ImportDataSource" => { + builder = builder.set_import_data_source( + crate::json_deser::deser_structure_import_data_source(tokens)?, + ); + } + "ImportDestination" => { + builder = builder.set_import_destination( + crate::json_deser::deser_structure_import_destination(tokens)?, + ); + } + "JobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "JobStatus" => { + builder = builder.set_job_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ProcessedRecordsCount" => { + builder = builder.set_processed_records_count( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_suppressed_destination_deser_operation( +pub fn deser_operation_get_suppressed_destination( input: &[u8], mut builder: crate::output::get_suppressed_destination_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::GetSuppressedDestinationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_suppressed_destination(parsed_body.suppressed_destination); +) -> Result< + crate::output::get_suppressed_destination_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SuppressedDestination" => { + builder = builder.set_suppressed_destination( + crate::json_deser::deser_structure_suppressed_destination(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_configuration_sets_deser_operation( +pub fn deser_operation_list_configuration_sets( input: &[u8], mut builder: crate::output::list_configuration_sets_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListConfigurationSetsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_configuration_sets(parsed_body.configuration_sets); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ConfigurationSets" => { + builder = builder.set_configuration_sets( + crate::json_deser::deser_list_configuration_set_name_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_contact_lists_deser_operation( +pub fn deser_operation_list_contact_lists( input: &[u8], mut builder: crate::output::list_contact_lists_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListContactListsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_contact_lists(parsed_body.contact_lists); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContactLists" => { + builder = builder.set_contact_lists( + crate::json_deser::deser_list_list_of_contact_lists(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_contacts_deser_operation( +pub fn deser_operation_list_contacts( input: &[u8], mut builder: crate::output::list_contacts_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListContactsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_contacts(parsed_body.contacts); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Contacts" => { + builder = builder + .set_contacts(crate::json_deser::deser_list_list_of_contacts(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_custom_verification_email_templates_deser_operation( +pub fn deser_operation_list_custom_verification_email_templates( input: &[u8], mut builder: crate::output::list_custom_verification_email_templates_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_custom_verification_email_templates_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListCustomVerificationEmailTemplatesOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_custom_verification_email_templates(parsed_body.custom_verification_email_templates); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CustomVerificationEmailTemplates" => { + builder = builder.set_custom_verification_email_templates( + crate::json_deser::deser_list_custom_verification_email_templates_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_dedicated_ip_pools_deser_operation( +pub fn deser_operation_list_dedicated_ip_pools( input: &[u8], mut builder: crate::output::list_dedicated_ip_pools_output::Builder, -) -> std::result::Result +) -> Result { - let parsed_body: crate::serializer::ListDedicatedIpPoolsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_dedicated_ip_pools(parsed_body.dedicated_ip_pools); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DedicatedIpPools" => { + builder = builder.set_dedicated_ip_pools( + crate::json_deser::deser_list_list_of_dedicated_ip_pools(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_deliverability_test_reports_deser_operation( +pub fn deser_operation_list_deliverability_test_reports( input: &[u8], mut builder: crate::output::list_deliverability_test_reports_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_deliverability_test_reports_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListDeliverabilityTestReportsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deliverability_test_reports(parsed_body.deliverability_test_reports); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeliverabilityTestReports" => { + builder = builder.set_deliverability_test_reports( + crate::json_deser::deser_list_deliverability_test_reports(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_domain_deliverability_campaigns_deser_operation( +pub fn deser_operation_list_domain_deliverability_campaigns( input: &[u8], mut builder: crate::output::list_domain_deliverability_campaigns_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_domain_deliverability_campaigns_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListDomainDeliverabilityCampaignsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_domain_deliverability_campaigns(parsed_body.domain_deliverability_campaigns); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DomainDeliverabilityCampaigns" => { + builder = builder.set_domain_deliverability_campaigns( + crate::json_deser::deser_list_domain_deliverability_campaign_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_email_identities_deser_operation( +pub fn deser_operation_list_email_identities( input: &[u8], mut builder: crate::output::list_email_identities_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListEmailIdentitiesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_email_identities(parsed_body.email_identities); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EmailIdentities" => { + builder = builder.set_email_identities( + crate::json_deser::deser_list_identity_info_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_email_templates_deser_operation( +pub fn deser_operation_list_email_templates( input: &[u8], mut builder: crate::output::list_email_templates_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListEmailTemplatesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_templates_metadata(parsed_body.templates_metadata); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TemplatesMetadata" => { + builder = builder.set_templates_metadata( + crate::json_deser::deser_list_email_template_metadata_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_import_jobs_deser_operation( +pub fn deser_operation_list_import_jobs( input: &[u8], mut builder: crate::output::list_import_jobs_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListImportJobsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_import_jobs(parsed_body.import_jobs); - builder = builder.set_next_token(parsed_body.next_token); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ImportJobs" => { + builder = builder.set_import_jobs( + crate::json_deser::deser_list_import_job_summary_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn invalid_next_token_exception( +pub fn deser_structure_invalid_next_token_exceptionjson_err( input: &[u8], - mut builder: crate::error::invalid_next_token_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::InvalidNextTokenError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::invalid_next_token_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_suppressed_destinations_deser_operation( +pub fn deser_operation_list_suppressed_destinations( input: &[u8], mut builder: crate::output::list_suppressed_destinations_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::list_suppressed_destinations_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListSuppressedDestinationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_suppressed_destination_summaries(parsed_body.suppressed_destination_summaries); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SuppressedDestinationSummaries" => { + builder = builder.set_suppressed_destination_summaries( + crate::json_deser::deser_list_suppressed_destination_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_list_tags_for_resource( input: &[u8], mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tags(parsed_body.tags); +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tags" => { + builder = builder.set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn conflict_exception( +pub fn deser_structure_conflict_exceptionjson_err( input: &[u8], - mut builder: crate::error::conflict_error::Builder, -) -> std::result::Result { - let parsed_body: crate::error::ConflictError = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::error::conflict_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_email_identity_dkim_signing_attributes_deser_operation( +pub fn deser_operation_put_email_identity_dkim_signing_attributes( input: &[u8], mut builder: crate::output::put_email_identity_dkim_signing_attributes_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::put_email_identity_dkim_signing_attributes_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::PutEmailIdentityDkimSigningAttributesOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_dkim_status(parsed_body.dkim_status); - builder = builder.set_dkim_tokens(parsed_body.dkim_tokens); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DkimStatus" => { + builder = builder.set_dkim_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DkimStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "DkimTokens" => { + builder = builder + .set_dkim_tokens(crate::json_deser::deser_list_dns_token_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_bulk_email_deser_operation( +pub fn deser_operation_send_bulk_email( input: &[u8], mut builder: crate::output::send_bulk_email_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SendBulkEmailOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_bulk_email_entry_results(parsed_body.bulk_email_entry_results); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BulkEmailEntryResults" => { + builder = builder.set_bulk_email_entry_results( + crate::json_deser::deser_list_bulk_email_entry_result_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_custom_verification_email_deser_operation( +pub fn deser_operation_send_custom_verification_email( input: &[u8], mut builder: crate::output::send_custom_verification_email_output::Builder, -) -> std::result::Result< +) -> Result< crate::output::send_custom_verification_email_output::Builder, - serde_json::Error, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::SendCustomVerificationEmailOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message_id(parsed_body.message_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MessageId" => { + builder = builder.set_message_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_email_deser_operation( +pub fn deser_operation_send_email( input: &[u8], mut builder: crate::output::send_email_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SendEmailOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message_id(parsed_body.message_id); +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MessageId" => { + builder = builder.set_message_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn test_render_email_template_deser_operation( +pub fn deser_operation_test_render_email_template( input: &[u8], mut builder: crate::output::test_render_email_template_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::TestRenderEmailTemplateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_rendered_template(parsed_body.rendered_template); +) -> Result< + crate::output::test_render_email_template_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RenderedTemplate" => { + builder = builder.set_rendered_template( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +pub fn deser_structure_dkim_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DkimAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SigningEnabled" => { + builder = builder.set_signing_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DkimStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Tokens" => { + builder = builder.set_tokens( + crate::json_deser::deser_list_dns_token_list(tokens)?, + ); + } + "SigningAttributesOrigin" => { + builder = builder.set_signing_attributes_origin( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DkimSigningAttributesOrigin::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_account_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AccountDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MailType" => { + builder = builder.set_mail_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::MailType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "WebsiteURL" => { + builder = builder.set_website_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContactLanguage" => { + builder = builder.set_contact_language( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContactLanguage::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "UseCaseDescription" => { + builder = builder.set_use_case_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdditionalContactEmailAddresses" => { + builder = builder.set_additional_contact_email_addresses( + crate::json_deser::deser_list_additional_contact_email_addresses(tokens)? + ); + } + "ReviewDetails" => { + builder = builder.set_review_details( + crate::json_deser::deser_structure_review_details(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_send_quota<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SendQuota::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Max24HourSend" => { + builder = builder.set_max24_hour_send( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "MaxSendRate" => { + builder = builder.set_max_send_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "SentLast24Hours" => { + builder = builder.set_sent_last24_hours( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_suppression_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressionAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SuppressedReasons" => { + builder = builder.set_suppressed_reasons( + crate::json_deser::deser_list_suppression_list_reasons(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_blacklist_report<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap>, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_blacklist_entries(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_delivery_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeliveryOptions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TlsPolicy" => { + builder = builder.set_tls_policy( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::TlsPolicy::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SendingPoolName" => { + builder = builder.set_sending_pool_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_reputation_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReputationOptions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReputationMetricsEnabled" => { + builder = builder.set_reputation_metrics_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "LastFreshStart" => { + builder = builder.set_last_fresh_start( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sending_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SendingOptions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SendingEnabled" => { + builder = builder.set_sending_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_suppression_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressionOptions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SuppressedReasons" => { + builder = builder.set_suppressed_reasons( + crate::json_deser::deser_list_suppression_list_reasons(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_tracking_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TrackingOptions::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CustomRedirectDomain" => { + builder = builder.set_custom_redirect_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_event_destinations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_event_destination(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_topic_preference_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_topic_preference(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_topics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_topic(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_dedicated_ip<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DedicatedIp::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Ip" => { + builder = builder.set_ip( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WarmupStatus" => { + builder = builder.set_warmup_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::WarmupStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "WarmupPercentage" => { + builder = builder.set_warmup_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "PoolName" => { + builder = builder.set_pool_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_dedicated_ip_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_dedicated_ip(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_domain_deliverability_tracking_options<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_domain_deliverability_tracking_option(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_deliverability_test_report<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DeliverabilityTestReport::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReportId" => { + builder = builder.set_report_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReportName" => { + builder = builder.set_report_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Subject" => { + builder = builder.set_subject( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FromEmailAddress" => { + builder = builder.set_from_email_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreateDate" => { + builder = builder.set_create_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DeliverabilityTestStatus" => { + builder = builder.set_deliverability_test_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DeliverabilityTestStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_isp_placements<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_isp_placement(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_placement_statistics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PlacementStatistics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InboxPercentage" => { + builder = builder.set_inbox_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "SpamPercentage" => { + builder = builder.set_spam_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "MissingPercentage" => { + builder = builder.set_missing_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "SpfPercentage" => { + builder = builder.set_spf_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "DkimPercentage" => { + builder = builder.set_dkim_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_domain_deliverability_campaign<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DomainDeliverabilityCampaign::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CampaignId" => { + builder = builder.set_campaign_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImageUrl" => { + builder = builder.set_image_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Subject" => { + builder = builder.set_subject( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FromAddress" => { + builder = builder.set_from_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SendingIps" => { + builder = builder.set_sending_ips( + crate::json_deser::deser_list_ip_list(tokens)?, + ); + } + "FirstSeenDateTime" => { + builder = builder.set_first_seen_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastSeenDateTime" => { + builder = builder.set_last_seen_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "InboxCount" => { + builder = builder.set_inbox_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SpamCount" => { + builder = builder.set_spam_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ReadRate" => { + builder = builder.set_read_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "DeleteRate" => { + builder = builder.set_delete_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "ReadDeleteRate" => { + builder = builder.set_read_delete_rate( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "ProjectedVolume" => { + builder = builder.set_projected_volume( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Esps" => { + builder = + builder.set_esps(crate::json_deser::deser_list_esps(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_daily_volumes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_daily_volume(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_overall_volume<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OverallVolume::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "VolumeStatistics" => { + builder = builder.set_volume_statistics( + crate::json_deser::deser_structure_volume_statistics(tokens)?, + ); + } + "ReadRatePercent" => { + builder = builder.set_read_rate_percent( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "DomainIspPlacements" => { + builder = builder.set_domain_isp_placements( + crate::json_deser::deser_list_domain_isp_placements(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_mail_from_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MailFromAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MailFromDomain" => { + builder = builder.set_mail_from_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MailFromDomainStatus" => { + builder = builder.set_mail_from_domain_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MailFromDomainStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "BehaviorOnMxFailure" => { + builder = builder.set_behavior_on_mx_failure( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BehaviorOnMxFailure::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_policy_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_email_template_content<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EmailTemplateContent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Subject" => { + builder = builder.set_subject( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Text" => { + builder = builder.set_text( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Html" => { + builder = builder.set_html( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_failure_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailureInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FailedRecordsS3Url" => { + builder = builder.set_failed_records_s3_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorMessage" => { + builder = builder.set_error_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_import_data_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImportDataSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Url" => { + builder = builder.set_s3_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataFormat" => { + builder = builder.set_data_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DataFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_import_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImportDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SuppressionListDestination" => { + builder = builder.set_suppression_list_destination( + crate::json_deser::deser_structure_suppression_list_destination(tokens)? + ); + } + "ContactListDestination" => { + builder = builder.set_contact_list_destination( + crate::json_deser::deser_structure_contact_list_destination( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_suppressed_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressedDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EmailAddress" => { + builder = builder.set_email_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SuppressionListReason::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastUpdateTime" => { + builder = builder.set_last_update_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_structure_suppressed_destination_attributes(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_configuration_set_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_contact_lists<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_contact_list(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_contacts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_contact(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_custom_verification_email_templates_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_custom_verification_email_template_metadata(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_list_of_dedicated_ip_pools<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_deliverability_test_reports<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_deliverability_test_report(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_domain_deliverability_campaign_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_domain_deliverability_campaign( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_identity_info_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_identity_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_email_template_metadata_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_email_template_metadata(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_import_job_summary_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_import_job_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_suppressed_destination_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_suppressed_destination_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_dns_token_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_bulk_email_entry_result_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_bulk_email_entry_result(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_additional_contact_email_addresses<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_review_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReviewDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CaseId" => { + builder = builder.set_case_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_suppression_list_reasons<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SuppressionListReason::from(u.as_ref()) + }) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_blacklist_entries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_blacklist_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_event_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EventDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "MatchingEventTypes" => { + builder = builder.set_matching_event_types( + crate::json_deser::deser_list_event_types(tokens)?, + ); + } + "KinesisFirehoseDestination" => { + builder = builder.set_kinesis_firehose_destination( + crate::json_deser::deser_structure_kinesis_firehose_destination(tokens)? + ); + } + "CloudWatchDestination" => { + builder = builder.set_cloud_watch_destination( + crate::json_deser::deser_structure_cloud_watch_destination( + tokens, + )?, + ); + } + "SnsDestination" => { + builder = builder.set_sns_destination( + crate::json_deser::deser_structure_sns_destination(tokens)?, + ); + } + "PinpointDestination" => { + builder = builder.set_pinpoint_destination( + crate::json_deser::deser_structure_pinpoint_destination( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_topic_preference<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TopicPreference::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TopicName" => { + builder = builder.set_topic_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SubscriptionStatus" => { + builder = builder.set_subscription_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SubscriptionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_topic<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Topic::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TopicName" => { + builder = builder.set_topic_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultSubscriptionStatus" => { + builder = builder.set_default_subscription_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SubscriptionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_domain_deliverability_tracking_option<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DomainDeliverabilityTrackingOption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Domain" => { + builder = builder.set_domain( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SubscriptionStartDate" => { + builder = builder.set_subscription_start_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "InboxPlacementTrackingOption" => { + builder = builder.set_inbox_placement_tracking_option( + crate::json_deser::deser_structure_inbox_placement_tracking_option(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_isp_placement<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IspPlacement::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IspName" => { + builder = builder.set_isp_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PlacementStatistics" => { + builder = builder.set_placement_statistics( + crate::json_deser::deser_structure_placement_statistics( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ip_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_esps<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_daily_volume<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DailyVolume::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StartDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "VolumeStatistics" => { + builder = builder.set_volume_statistics( + crate::json_deser::deser_structure_volume_statistics(tokens)?, + ); + } + "DomainIspPlacements" => { + builder = builder.set_domain_isp_placements( + crate::json_deser::deser_list_domain_isp_placements(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_volume_statistics<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::VolumeStatistics::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InboxRawCount" => { + builder = builder.set_inbox_raw_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SpamRawCount" => { + builder = builder.set_spam_raw_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ProjectedInbox" => { + builder = builder.set_projected_inbox( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "ProjectedSpam" => { + builder = builder.set_projected_spam( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_domain_isp_placements<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_domain_isp_placement(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_suppression_list_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressionListDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SuppressionListImportAction" => { + builder = builder.set_suppression_list_import_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SuppressionListImportAction::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_contact_list_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContactListDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContactListName" => { + builder = builder.set_contact_list_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContactListImportAction" => { + builder = builder.set_contact_list_import_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ContactListImportAction::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_suppressed_destination_attributes<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressedDestinationAttributes::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "MessageId" => { + builder = builder.set_message_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FeedbackId" => { + builder = builder.set_feedback_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_contact_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ContactList::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ContactListName" => { + builder = builder.set_contact_list_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastUpdatedTimestamp" => { + builder = builder.set_last_updated_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_contact<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Contact::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EmailAddress" => { + builder = builder.set_email_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TopicPreferences" => { + builder = builder.set_topic_preferences( + crate::json_deser::deser_list_topic_preference_list(tokens)?, + ); + } + "TopicDefaultPreferences" => { + builder = builder.set_topic_default_preferences( + crate::json_deser::deser_list_topic_preference_list(tokens)?, + ); + } + "UnsubscribeAll" => { + builder = builder.set_unsubscribe_all( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "LastUpdatedTimestamp" => { + builder = builder.set_last_updated_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_custom_verification_email_template_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CustomVerificationEmailTemplateMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TemplateName" => { + builder = builder.set_template_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FromEmailAddress" => { + builder = builder.set_from_email_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TemplateSubject" => { + builder = builder.set_template_subject( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SuccessRedirectionURL" => { + builder = builder.set_success_redirection_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureRedirectionURL" => { + builder = builder.set_failure_redirection_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_identity_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::IdentityInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IdentityType" => { + builder = builder.set_identity_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::IdentityType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "IdentityName" => { + builder = builder.set_identity_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SendingEnabled" => { + builder = builder.set_sending_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_email_template_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EmailTemplateMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TemplateName" => { + builder = builder.set_template_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTimestamp" => { + builder = builder.set_created_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_import_job_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ImportJobSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "JobId" => { + builder = builder.set_job_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ImportDestination" => { + builder = builder.set_import_destination( + crate::json_deser::deser_structure_import_destination(tokens)?, + ); + } + "JobStatus" => { + builder = builder.set_job_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::JobStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreatedTimestamp" => { + builder = builder.set_created_timestamp( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_suppressed_destination_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SuppressedDestinationSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EmailAddress" => { + builder = builder.set_email_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Reason" => { + builder = builder.set_reason( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::SuppressionListReason::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastUpdateTime" => { + builder = builder.set_last_update_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_bulk_email_entry_result<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BulkEmailEntryResult::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::BulkEmailStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Error" => { + builder = builder.set_error( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MessageId" => { + builder = builder.set_message_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_blacklist_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::BlacklistEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RblName" => { + builder = builder.set_rbl_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ListingTime" => { + builder = builder.set_listing_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_event_types<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::EventType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_kinesis_firehose_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::KinesisFirehoseDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IamRoleArn" => { + builder = builder.set_iam_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeliveryStreamArn" => { + builder = builder.set_delivery_stream_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cloud_watch_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CloudWatchDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DimensionConfigurations" => { + builder = builder.set_dimension_configurations( + crate::json_deser::deser_list_cloud_watch_dimension_configurations(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_sns_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SnsDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TopicArn" => { + builder = builder.set_topic_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_pinpoint_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PinpointDestination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ApplicationArn" => { + builder = builder.set_application_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inbox_placement_tracking_option<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InboxPlacementTrackingOption::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Global" => { + builder = builder.set_global( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "TrackedIsps" => { + builder = builder.set_tracked_isps( + crate::json_deser::deser_list_isp_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_domain_isp_placement<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DomainIspPlacement::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "IspName" => { + builder = builder.set_isp_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InboxRawCount" => { + builder = builder.set_inbox_raw_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "SpamRawCount" => { + builder = builder.set_spam_raw_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "InboxPercentage" => { + builder = builder.set_inbox_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + "SpamPercentage" => { + builder = builder.set_spam_percentage( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_f64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_cloud_watch_dimension_configurations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_cloud_watch_dimension_configuration( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_isp_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_cloud_watch_dimension_configuration<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CloudWatchDimensionConfiguration::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DimensionName" => { + builder = builder.set_dimension_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DimensionValueSource" => { + builder = builder.set_dimension_value_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DimensionValueSource::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "DefaultDimensionValue" => { + builder = builder.set_default_dimension_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/sesv2/src/json_errors.rs b/sdk/sesv2/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/sesv2/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/sesv2/src/lib.rs b/sdk/sesv2/src/lib.rs index e51557cd51f8..a616782cd2f7 100644 --- a/sdk/sesv2/src/lib.rs +++ b/sdk/sesv2/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon SES API v2 //!

        Welcome to the Amazon SES API v2 Reference. This guide provides information about the Amazon SES API v2, //! including supported operations, data types, parameters, and schemas.

        @@ -30,24 +31,20 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; pub mod error; mod error_meta; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/sesv2/src/model.rs b/sdk/sesv2/src/model.rs index 5d0b9a88cef7..0c9d936789de 100644 --- a/sdk/sesv2/src/model.rs +++ b/sdk/sesv2/src/model.rs @@ -2,20 +2,14 @@ ///

        The content of the email, composed of a subject line, an HTML part, and a text-only /// part.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmailTemplateContent { ///

        The subject line of the email.

        - #[serde(rename = "Subject")] - #[serde(default)] pub subject: std::option::Option, ///

        The email body that will be visible to recipients whose email clients do not display /// HTML.

        - #[serde(rename = "Text")] - #[serde(default)] pub text: std::option::Option, ///

        The HTML body of the email.

        - #[serde(rename = "Html")] - #[serde(default)] pub html: std::option::Option, } impl std::fmt::Debug for EmailTemplateContent { @@ -86,24 +80,16 @@ impl EmailTemplateContent { ///

        An interest group, theme, or label within a list. Lists can have multiple /// topics.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Topic { ///

        The name of the topic.

        - #[serde(rename = "TopicName")] - #[serde(default)] pub topic_name: std::option::Option, ///

        The name of the topic the contact will see.

        - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

        A description of what the topic is about, which the contact will see.

        - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

        The default subscription status to be applied to a contact if the contact has not /// noted their preference for subscribing to a topic.

        - #[serde(rename = "DefaultSubscriptionStatus")] - #[serde(default)] pub default_subscription_status: std::option::Option, } impl std::fmt::Debug for Topic { @@ -221,7 +207,7 @@ impl std::convert::From<&str> for SubscriptionStatus { impl std::str::FromStr for SubscriptionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SubscriptionStatus::from(s)) } } @@ -239,28 +225,15 @@ impl AsRef for SubscriptionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SubscriptionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

        The contact's preference for being opted-in to or opted-out of a topic.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TopicPreference { ///

        The name of the topic.

        - #[serde(rename = "TopicName")] - #[serde(default)] pub topic_name: std::option::Option, ///

        The contact's subscription status to a topic which is either OPT_IN or /// OPT_OUT.

        - #[serde(rename = "SubscriptionStatus")] - #[serde(default)] pub subscription_status: std::option::Option, } impl std::fmt::Debug for TopicPreference { @@ -324,42 +297,30 @@ impl TopicPreference { /// is associated with. Also defines the types of events that are sent to the event /// destination.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EventDestinationDefinition { ///

        If true, the event destination is enabled. When the event destination is /// enabled, the specified event types are sent to the destinations in this /// EventDestinationDefinition.

        ///

        If false, the event destination is disabled. When the event destination /// is disabled, events aren't sent to the specified destinations.

        - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: bool, ///

        An array that specifies which events the Amazon SES API v2 should send to the destinations in /// this EventDestinationDefinition.

        - #[serde(rename = "MatchingEventTypes")] - #[serde(default)] pub matching_event_types: std::option::Option>, ///

        An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to /// stream data to other services, such as Amazon S3 and Amazon Redshift.

        - #[serde(rename = "KinesisFirehoseDestination")] - #[serde(default)] pub kinesis_firehose_destination: std::option::Option, ///

        An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to /// monitor and gain insights on your email sending metrics.

        - #[serde(rename = "CloudWatchDestination")] - #[serde(default)] pub cloud_watch_destination: std::option::Option, ///

        An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to /// send notification when certain email events occur.

        - #[serde(rename = "SnsDestination")] - #[serde(default)] pub sns_destination: std::option::Option, ///

        An object that defines an Amazon Pinpoint project destination for email events. You can send /// email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging /// dashboards that are built in to Amazon Pinpoint. For more information, see Transactional /// Messaging Charts in the Amazon Pinpoint User Guide.

        - #[serde(rename = "PinpointDestination")] - #[serde(default)] pub pinpoint_destination: std::option::Option, } impl std::fmt::Debug for EventDestinationDefinition { @@ -505,12 +466,10 @@ impl EventDestinationDefinition { /// dashboards that are built in to Amazon Pinpoint. For more information, see Transactional /// Messaging Charts in the Amazon Pinpoint User Guide.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PinpointDestination { ///

        The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want to send email /// events to.

        - #[serde(rename = "ApplicationArn")] - #[serde(default)] pub application_arn: std::option::Option, } impl std::fmt::Debug for PinpointDestination { @@ -560,13 +519,11 @@ impl PinpointDestination { ///

        An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to /// send notification when certain email events occur.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SnsDestination { ///

        The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish email /// events to. For more information about Amazon SNS topics, see the Amazon SNS Developer /// Guide.

        - #[serde(rename = "TopicArn")] - #[serde(default)] pub topic_arn: std::option::Option, } impl std::fmt::Debug for SnsDestination { @@ -614,12 +571,10 @@ impl SnsDestination { ///

        An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to /// monitor and gain insights on your email sending metrics.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CloudWatchDestination { ///

        An array of objects that define the dimensions to use when you send email events to /// Amazon CloudWatch.

        - #[serde(rename = "DimensionConfigurations")] - #[serde(default)] pub dimension_configurations: std::option::Option>, } @@ -676,7 +631,7 @@ impl CloudWatchDestination { ///

        An object that defines the dimension configuration to use when you send email events /// to Amazon CloudWatch.

        #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CloudWatchDimensionConfiguration { ///

        The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to /// meet the following criteria:

        @@ -689,8 +644,6 @@ pub struct CloudWatchDimensionConfiguration { ///

        It can contain no more than 256 characters.

        /// ///
      - #[serde(rename = "DimensionName")] - #[serde(default)] pub dimension_name: std::option::Option, ///

      The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. If /// you want to use the message tags that you specify using an @@ -698,8 +651,6 @@ pub struct CloudWatchDimensionConfiguration { /// or SendRawEmail API, choose messageTag. If you want to use /// your own email headers, choose emailHeader. If you want to use link tags, /// choose linkTags.

      - #[serde(rename = "DimensionValueSource")] - #[serde(default)] pub dimension_value_source: std::option::Option, ///

      The default value of the dimension that is published to Amazon CloudWatch if you don't provide the /// value of the dimension when you send an email. This value has to meet the following @@ -713,8 +664,6 @@ pub struct CloudWatchDimensionConfiguration { ///

      It can contain no more than 256 characters.

      /// ///
    - #[serde(rename = "DefaultDimensionValue")] - #[serde(default)] pub default_dimension_value: std::option::Option, } impl std::fmt::Debug for CloudWatchDimensionConfiguration { @@ -852,7 +801,7 @@ impl std::convert::From<&str> for DimensionValueSource { impl std::str::FromStr for DimensionValueSource { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DimensionValueSource::from(s)) } } @@ -871,30 +820,17 @@ impl AsRef for DimensionValueSource { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DimensionValueSource { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to /// stream data to other services, such as Amazon S3 and Amazon Redshift.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct KinesisFirehoseDestination { ///

    The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email /// events to the Amazon Kinesis Data Firehose stream.

    - #[serde(rename = "IamRoleArn")] - #[serde(default)] pub iam_role_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email /// events to.

    - #[serde(rename = "DeliveryStreamArn")] - #[serde(default)] pub delivery_stream_arn: std::option::Option, } impl std::fmt::Debug for KinesisFirehoseDestination { @@ -1000,7 +936,7 @@ impl std::convert::From<&str> for EventType { impl std::str::FromStr for EventType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(EventType::from(s)) } } @@ -1026,15 +962,6 @@ impl AsRef for EventType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for EventType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that defines the tags that are associated with a resource. /// A tag is a label that you optionally define and associate with @@ -1070,19 +997,15 @@ impl<'de> serde::Deserialize<'de> for EventType { /// /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    One part of a key-value pair that defines a tag. The maximum length of a tag key is /// 128 characters. The minimum length is 1 character.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The optional part of a key-value pair that defines a tag. The maximum length of a tag /// value is 256 characters. The minimum length is 0 characters. If you don't want a /// resource to have a specific tag value, don't specify a value for this parameter. If you /// don't specify a value, Amazon SES sets the value to an empty string.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -1144,15 +1067,11 @@ impl Tag { ///

    An object used to specify a list or topic to which an email belongs, which will be /// used when a contact chooses to unsubscribe.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListManagementOptions { ///

    The name of the contact list.

    - #[serde(rename = "ContactListName")] - #[serde(default)] pub contact_list_name: std::option::Option, ///

    The name of the topic.

    - #[serde(rename = "TopicName")] - #[serde(default)] pub topic_name: std::option::Option, } impl std::fmt::Debug for ListManagementOptions { @@ -1214,7 +1133,7 @@ impl ListManagementOptions { /// tags when you publish email sending events. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MessageTag { ///

    The name of the message tag. The message tag name has to meet the following /// criteria:

    @@ -1227,8 +1146,6 @@ pub struct MessageTag { ///

    It can contain no more than 256 characters.

    /// /// - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The value of the message tag. The message tag value has to meet the following /// criteria:

    @@ -1241,8 +1158,6 @@ pub struct MessageTag { ///

    It can contain no more than 256 characters.

    /// /// - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for MessageTag { @@ -1323,11 +1238,9 @@ impl MessageTag { /// messages, in which you specify a complete MIME-formatted message. Raw messages can /// include attachments and custom headers.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmailContent { ///

    The simple email message. The message consists of a subject and a message body.

    - #[serde(rename = "Simple")] - #[serde(default)] pub simple: std::option::Option, ///

    The raw email message. The message has to meet the following criteria:

    ///
      @@ -1359,12 +1272,8 @@ pub struct EmailContent { /// characters. This restriction is defined in RFC 5321.

      /// ///
    - #[serde(rename = "Raw")] - #[serde(default)] pub raw: std::option::Option, ///

    The template to use for the email message.

    - #[serde(rename = "Template")] - #[serde(default)] pub template: std::option::Option, } impl std::fmt::Debug for EmailContent { @@ -1465,23 +1374,17 @@ impl EmailContent { /// template
    is a type of message template that contains content that you /// want to define, save, and reuse in email messages that you send.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Template { ///

    The name of the template. You will refer to this name when you send email using the /// SendTemplatedEmail or SendBulkTemplatedEmail operations. ///

    - #[serde(rename = "TemplateName")] - #[serde(default)] pub template_name: std::option::Option, ///

    The Amazon Resource Name (ARN) of the template.

    - #[serde(rename = "TemplateArn")] - #[serde(default)] pub template_arn: std::option::Option, ///

    An object that defines the values to use for message variables in the template. This /// object is a set of key-value pairs. Each key defines a message variable in the template. /// The corresponding value defines the value to use for that variable.

    - #[serde(rename = "TemplateData")] - #[serde(default)] pub template_data: std::option::Option, } impl std::fmt::Debug for Template { @@ -1560,7 +1463,7 @@ impl Template { ///

    Represents the raw content of an email message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RawMessage { ///

    The raw email message. The message has to meet the following criteria:

    ///
      @@ -1590,9 +1493,6 @@ pub struct RawMessage { /// characters. This restriction is defined in RFC 5321.

      /// ///
    - #[serde(rename = "Data")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub data: std::option::Option, } impl std::fmt::Debug for RawMessage { @@ -1663,18 +1563,14 @@ impl RawMessage { ///

    Represents the email message that you're sending. The Message object /// consists of a subject line and a message body.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Message { ///

    The subject line of the email. The subject line can only contain 7-bit ASCII /// characters. However, you can specify non-ASCII characters in the subject line by using /// encoded-word syntax, as described in RFC 2047.

    - #[serde(rename = "Subject")] - #[serde(default)] pub subject: std::option::Option, ///

    The body of the message. You can specify an HTML version of the message, a text-only /// version of the message, or both.

    - #[serde(rename = "Body")] - #[serde(default)] pub body: std::option::Option, } impl std::fmt::Debug for Message { @@ -1734,19 +1630,15 @@ impl Message { ///

    Represents the body of the email message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Body { ///

    An object that represents the version of the message that is displayed in email /// clients that don't support HTML, or clients where the recipient has disabled HTML /// rendering.

    - #[serde(rename = "Text")] - #[serde(default)] pub text: std::option::Option, ///

    An object that represents the version of the message that is displayed in email /// clients that support HTML. HTML messages can include formatted text, hyperlinks, images, /// and more.

    - #[serde(rename = "Html")] - #[serde(default)] pub html: std::option::Option, } impl std::fmt::Debug for Body { @@ -1808,18 +1700,14 @@ impl Body { ///

    An object that represents the content of the email, and optionally a character set /// specification.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Content { ///

    The content of the message itself.

    - #[serde(rename = "Data")] - #[serde(default)] pub data: std::option::Option, ///

    The character set for the content. Because of the constraints of the SMTP protocol, /// Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII /// range, you have to specify a character set. For example, you could specify /// UTF-8, ISO-8859-1, or Shift_JIS.

    - #[serde(rename = "Charset")] - #[serde(default)] pub charset: std::option::Option, } impl std::fmt::Debug for Content { @@ -1879,22 +1767,16 @@ impl Content { ///

    An object that describes the recipients for an email.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Destination { ///

    An array that contains the email addresses of the "To" recipients for the /// email.

    - #[serde(rename = "ToAddresses")] - #[serde(default)] pub to_addresses: std::option::Option>, ///

    An array that contains the email addresses of the "CC" (carbon copy) recipients for /// the email.

    - #[serde(rename = "CcAddresses")] - #[serde(default)] pub cc_addresses: std::option::Option>, ///

    An array that contains the email addresses of the "BCC" (blind carbon copy) recipients /// for the email.

    - #[serde(rename = "BccAddresses")] - #[serde(default)] pub bcc_addresses: std::option::Option>, } impl std::fmt::Debug for Destination { @@ -1976,7 +1858,7 @@ impl Destination { ///

    The result of the SendBulkEmail operation of each specified /// BulkEmailEntry.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BulkEmailEntryResult { ///

    The status of a message sent using the SendBulkTemplatedEmail /// operation.

    @@ -2039,18 +1921,12 @@ pub struct BulkEmailEntryResult { /// for additional information.

    /// /// - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A description of an error that prevented a message being sent using the /// SendBulkTemplatedEmail operation.

    - #[serde(rename = "Error")] - #[serde(default)] pub error: std::option::Option, ///

    The unique message identifier returned from the SendBulkTemplatedEmail /// operation.

    - #[serde(rename = "MessageId")] - #[serde(default)] pub message_id: std::option::Option, } impl std::fmt::Debug for BulkEmailEntryResult { @@ -2234,7 +2110,7 @@ impl std::convert::From<&str> for BulkEmailStatus { impl std::str::FromStr for BulkEmailStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BulkEmailStatus::from(s)) } } @@ -2264,18 +2140,9 @@ impl AsRef for BulkEmailStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BulkEmailStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BulkEmailEntry { ///

    Represents the destination of the message, consisting of To:, CC:, and BCC: /// fields.

    @@ -2287,20 +2154,14 @@ pub struct BulkEmailEntry { /// contains non-ASCII characters, they must be encoded using Punycode, as described in /// RFC3492.

    /// - #[serde(rename = "Destination")] - #[serde(default)] pub destination: std::option::Option, ///

    A list of tags, in the form of name/value pairs, to apply to an email that you send /// using the SendBulkTemplatedEmail operation. Tags correspond to /// characteristics of the email that you define, so that you can publish email sending /// events.

    - #[serde(rename = "ReplacementTags")] - #[serde(default)] pub replacement_tags: std::option::Option>, ///

    The ReplacementEmailContent associated with a /// BulkEmailEntry.

    - #[serde(rename = "ReplacementEmailContent")] - #[serde(default)] pub replacement_email_content: std::option::Option, } impl std::fmt::Debug for BulkEmailEntry { @@ -2395,12 +2256,10 @@ impl BulkEmailEntry { /// BulkEmailEntry. The ReplacementTemplate can be specified /// within this object.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplacementEmailContent { ///

    The ReplacementTemplate associated with /// ReplacementEmailContent.

    - #[serde(rename = "ReplacementTemplate")] - #[serde(default)] pub replacement_template: std::option::Option, } impl std::fmt::Debug for ReplacementEmailContent { @@ -2450,13 +2309,11 @@ impl ReplacementEmailContent { ///

    An object which contains ReplacementTemplateData to be used for a /// specific BulkEmailEntry.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReplacementTemplate { ///

    A list of replacement values to apply to the template. This parameter is a JSON /// object, typically consisting of key-value pairs in which the keys correspond to /// replacement tags in the email template.

    - #[serde(rename = "ReplacementTemplateData")] - #[serde(default)] pub replacement_template_data: std::option::Option, } impl std::fmt::Debug for ReplacementTemplate { @@ -2507,11 +2364,9 @@ impl ReplacementTemplate { ///

    An object that contains the body of the message. You can specify a template /// message.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BulkEmailContent { ///

    The template to use for the bulk email message.

    - #[serde(rename = "Template")] - #[serde(default)] pub template: std::option::Option, } impl std::fmt::Debug for BulkEmailContent { @@ -2598,7 +2453,7 @@ impl std::convert::From<&str> for SuppressionListReason { impl std::str::FromStr for SuppressionListReason { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SuppressionListReason::from(s)) } } @@ -2616,15 +2471,6 @@ impl AsRef for SuppressionListReason { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SuppressionListReason { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The action that you want to take if the required MX record can't be found when you /// send an email. When you set this value to UseDefaultValue, the mail is sent @@ -2663,7 +2509,7 @@ impl std::convert::From<&str> for BehaviorOnMxFailure { impl std::str::FromStr for BehaviorOnMxFailure { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(BehaviorOnMxFailure::from(s)) } } @@ -2681,15 +2527,6 @@ impl AsRef for BehaviorOnMxFailure { self.as_str() } } -impl<'de> serde::Deserialize<'de> for BehaviorOnMxFailure { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The DKIM authentication status of the identity. The status can be one of the /// following:

    @@ -2756,7 +2593,7 @@ impl std::convert::From<&str> for DkimStatus { impl std::str::FromStr for DkimStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DkimStatus::from(s)) } } @@ -2777,31 +2614,18 @@ impl AsRef for DkimStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DkimStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains information about the tokens used for setting up Bring Your /// Own DKIM (BYODKIM).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DkimSigningAttributes { ///

    A string that's used to identify a public key in the DNS configuration for a /// domain.

    - #[serde(rename = "DomainSigningSelector")] - #[serde(default)] pub domain_signing_selector: std::option::Option, ///

    A private key that's used to generate a DKIM signature.

    ///

    The private key must use 1024-bit RSA encryption, and must be encoded using base64 /// encoding.

    - #[serde(rename = "DomainSigningPrivateKey")] - #[serde(default)] pub domain_signing_private_key: std::option::Option, } impl std::fmt::Debug for DkimSigningAttributes { @@ -2896,7 +2720,7 @@ impl std::convert::From<&str> for DkimSigningAttributesOrigin { impl std::str::FromStr for DkimSigningAttributesOrigin { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DkimSigningAttributesOrigin::from(s)) } } @@ -2914,40 +2738,22 @@ impl AsRef for DkimSigningAttributesOrigin { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DkimSigningAttributesOrigin { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains information about the Deliverability dashboard subscription for a /// verified domain that you use to send email and currently has an active Deliverability dashboard /// subscription. If a Deliverability dashboard subscription is active for a domain, you gain access /// to reputation, inbox placement, and other metrics for the domain.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DomainDeliverabilityTrackingOption { ///

    A verified domain that’s associated with your AWS account and currently has an /// active Deliverability dashboard subscription.

    - #[serde(rename = "Domain")] - #[serde(default)] pub domain: std::option::Option, ///

    The date, in Unix time format, when you enabled the Deliverability dashboard for the /// domain.

    - #[serde(rename = "SubscriptionStartDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub subscription_start_date: std::option::Option, ///

    An object that contains information about the inbox placement data settings for the /// domain.

    - #[serde(rename = "InboxPlacementTrackingOption")] - #[serde(default)] pub inbox_placement_tracking_option: std::option::Option, } @@ -3035,16 +2841,12 @@ impl DomainDeliverabilityTrackingOption { /// verified domain that’s associated with your AWS account. This data is available only /// if you enabled the Deliverability dashboard for the domain.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InboxPlacementTrackingOption { ///

    Specifies whether inbox placement data is being tracked for the domain.

    - #[serde(rename = "Global")] - #[serde(default)] pub global: bool, ///

    An array of strings, one for each major email provider that the inbox placement data /// applies to.

    - #[serde(rename = "TrackedIsps")] - #[serde(default)] pub tracked_isps: std::option::Option>, } impl std::fmt::Debug for InboxPlacementTrackingOption { @@ -3135,7 +2937,7 @@ impl std::convert::From<&str> for TlsPolicy { impl std::str::FromStr for TlsPolicy { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(TlsPolicy::from(s)) } } @@ -3153,15 +2955,6 @@ impl AsRef for TlsPolicy { self.as_str() } } -impl<'de> serde::Deserialize<'de> for TlsPolicy { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3191,7 +2984,7 @@ impl std::convert::From<&str> for ContactLanguage { impl std::str::FromStr for ContactLanguage { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContactLanguage::from(s)) } } @@ -3209,15 +3002,6 @@ impl AsRef for ContactLanguage { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContactLanguage { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3247,7 +3031,7 @@ impl std::convert::From<&str> for MailType { impl std::str::FromStr for MailType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MailType::from(s)) } } @@ -3265,35 +3049,17 @@ impl AsRef for MailType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MailType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary that describes the suppressed email address.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressedDestinationSummary { ///

    The email address that's on the suppression list for your account.

    - #[serde(rename = "EmailAddress")] - #[serde(default)] pub email_address: std::option::Option, ///

    The reason that the address was added to the suppression list for your account.

    - #[serde(rename = "Reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The date and time when the suppressed destination was last updated, shown in Unix time /// format.

    - #[serde(rename = "LastUpdateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_update_time: std::option::Option, } impl std::fmt::Debug for SuppressedDestinationSummary { @@ -3372,27 +3138,16 @@ impl SuppressedDestinationSummary { ///

    A summary of the import job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImportJobSummary { ///

    A string that represents the import job ID.

    - #[serde(rename = "JobId")] - #[serde(default)] pub job_id: std::option::Option, ///

    An object that contains details about the resource destination the import job is going /// to target.

    - #[serde(rename = "ImportDestination")] - #[serde(default)] pub import_destination: std::option::Option, ///

    The status of the import job.

    - #[serde(rename = "JobStatus")] - #[serde(default)] pub job_status: std::option::Option, ///

    The date and time when the import job was created.

    - #[serde(rename = "CreatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_timestamp: std::option::Option, } impl std::fmt::Debug for ImportJobSummary { @@ -3514,7 +3269,7 @@ impl std::convert::From<&str> for JobStatus { impl std::str::FromStr for JobStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(JobStatus::from(s)) } } @@ -3534,28 +3289,15 @@ impl AsRef for JobStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for JobStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains details about the resource destination the import job is going /// to target.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImportDestination { ///

    An object that contains the action of the import job towards suppression list.

    - #[serde(rename = "SuppressionListDestination")] - #[serde(default)] pub suppression_list_destination: std::option::Option, ///

    An object that contains the action of the import job towards a contact list.

    - #[serde(rename = "ContactListDestination")] - #[serde(default)] pub contact_list_destination: std::option::Option, } impl std::fmt::Debug for ImportDestination { @@ -3629,11 +3371,9 @@ impl ImportDestination { ///

    An object that contains details about the action of a contact list.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContactListDestination { ///

    The name of the contact list.

    - #[serde(rename = "ContactListName")] - #[serde(default)] pub contact_list_name: std::option::Option, ///

    >The type of action that you want to perform on the addresses. Acceptable /// values:

    @@ -3646,8 +3386,6 @@ pub struct ContactListDestination { ///

    DELETE: remove the addresses from the contact list.

    /// /// - #[serde(rename = "ContactListImportAction")] - #[serde(default)] pub contact_list_import_action: std::option::Option, } impl std::fmt::Debug for ContactListDestination { @@ -3753,7 +3491,7 @@ impl std::convert::From<&str> for ContactListImportAction { impl std::str::FromStr for ContactListImportAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ContactListImportAction::from(s)) } } @@ -3771,19 +3509,10 @@ impl AsRef for ContactListImportAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ContactListImportAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains details about the action of suppression list.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressionListDestination { ///

    The type of action that you want to perform on the address. Acceptable values:

    ///
      @@ -3795,8 +3524,6 @@ pub struct SuppressionListDestination { ///

      DELETE: remove the addresses from the suppression list.

      /// ///
    - #[serde(rename = "SuppressionListImportAction")] - #[serde(default)] pub suppression_list_import_action: std::option::Option, } @@ -3896,7 +3623,7 @@ impl std::convert::From<&str> for SuppressionListImportAction { impl std::str::FromStr for SuppressionListImportAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SuppressionListImportAction::from(s)) } } @@ -3914,15 +3641,6 @@ impl AsRef for SuppressionListImportAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SuppressionListImportAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The destination of the import job, which can be used to list import jobs that have a /// certain ImportDestinationType.

    @@ -3954,7 +3672,7 @@ impl std::convert::From<&str> for ImportDestinationType { impl std::str::FromStr for ImportDestinationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ImportDestinationType::from(s)) } } @@ -3972,30 +3690,14 @@ impl AsRef for ImportDestinationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ImportDestinationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about an email template.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EmailTemplateMetadata { ///

    The name of the template.

    - #[serde(rename = "TemplateName")] - #[serde(default)] pub template_name: std::option::Option, ///

    The time and date the template was created.

    - #[serde(rename = "CreatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_timestamp: std::option::Option, } impl std::fmt::Debug for EmailTemplateMetadata { @@ -4058,7 +3760,7 @@ impl EmailTemplateMetadata { ///

    Information about an email identity.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IdentityInfo { ///

    The email identity type. The identity type can be one of the following:

    ///
      @@ -4076,19 +3778,13 @@ pub struct IdentityInfo { /// by AWS.

      /// ///
    - #[serde(rename = "IdentityType")] - #[serde(default)] pub identity_type: std::option::Option, ///

    The address or domain of the identity.

    - #[serde(rename = "IdentityName")] - #[serde(default)] pub identity_name: std::option::Option, ///

    Indicates whether or not you can send email from the identity.

    ///

    An identity is an email address or domain that you send email /// from. Before you can send email from an identity, you have to demostrate that you own /// the identity, and that you authorize Amazon SES to send email from that identity.

    - #[serde(rename = "SendingEnabled")] - #[serde(default)] pub sending_enabled: bool, } impl std::fmt::Debug for IdentityInfo { @@ -4220,7 +3916,7 @@ impl std::convert::From<&str> for IdentityType { impl std::str::FromStr for IdentityType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(IdentityType::from(s)) } } @@ -4239,97 +3935,54 @@ impl AsRef for IdentityType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for IdentityType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains the deliverability data for a specific campaign. This data is /// available for a campaign only if the campaign sent email by using a domain that the /// Deliverability dashboard is enabled for (PutDeliverabilityDashboardOption /// operation).

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DomainDeliverabilityCampaign { ///

    The unique identifier for the campaign. The Deliverability dashboard automatically generates /// and assigns this identifier to a campaign.

    - #[serde(rename = "CampaignId")] - #[serde(default)] pub campaign_id: std::option::Option, ///

    The URL of an image that contains a snapshot of the email message that was /// sent.

    - #[serde(rename = "ImageUrl")] - #[serde(default)] pub image_url: std::option::Option, ///

    The subject line, or title, of the email message.

    - #[serde(rename = "Subject")] - #[serde(default)] pub subject: std::option::Option, ///

    The verified email address that the email message was sent from.

    - #[serde(rename = "FromAddress")] - #[serde(default)] pub from_address: std::option::Option, ///

    The IP addresses that were used to send the email message.

    - #[serde(rename = "SendingIps")] - #[serde(default)] pub sending_ips: std::option::Option>, ///

    The first time, in Unix time format, when the email message was delivered to any /// recipient's inbox. This value can help you determine how long it took for a campaign to /// deliver an email message.

    - #[serde(rename = "FirstSeenDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub first_seen_date_time: std::option::Option, ///

    The last time, in Unix time format, when the email message was delivered to any /// recipient's inbox. This value can help you determine how long it took for a campaign to /// deliver an email message.

    - #[serde(rename = "LastSeenDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_seen_date_time: std::option::Option, ///

    The number of email messages that were delivered to recipients’ inboxes.

    - #[serde(rename = "InboxCount")] - #[serde(default)] pub inbox_count: std::option::Option, ///

    The number of email messages that were delivered to recipients' spam or junk mail /// folders.

    - #[serde(rename = "SpamCount")] - #[serde(default)] pub spam_count: std::option::Option, ///

    The percentage of email messages that were opened by recipients. Due to technical /// limitations, this value only includes recipients who opened the message by using an /// email client that supports images.

    - #[serde(rename = "ReadRate")] - #[serde(default)] pub read_rate: std::option::Option, ///

    The percentage of email messages that were deleted by recipients, without being opened /// first. Due to technical limitations, this value only includes recipients who opened the /// message by using an email client that supports images.

    - #[serde(rename = "DeleteRate")] - #[serde(default)] pub delete_rate: std::option::Option, ///

    The percentage of email messages that were opened and then deleted by recipients. Due /// to technical limitations, this value only includes recipients who opened the message by /// using an email client that supports images.

    - #[serde(rename = "ReadDeleteRate")] - #[serde(default)] pub read_delete_rate: std::option::Option, ///

    The projected number of recipients that the email message was sent to.

    - #[serde(rename = "ProjectedVolume")] - #[serde(default)] pub projected_volume: std::option::Option, ///

    The major email providers who handled the email message.

    - #[serde(rename = "Esps")] - #[serde(default)] pub esps: std::option::Option>, } impl std::fmt::Debug for DomainDeliverabilityCampaign { @@ -4557,37 +4210,22 @@ impl DomainDeliverabilityCampaign { ///

    An object that contains metadata related to a predictive inbox placement test.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeliverabilityTestReport { ///

    A unique string that identifies the predictive inbox placement test.

    - #[serde(rename = "ReportId")] - #[serde(default)] pub report_id: std::option::Option, ///

    A name that helps you identify a predictive inbox placement test report.

    - #[serde(rename = "ReportName")] - #[serde(default)] pub report_name: std::option::Option, ///

    The subject line for an email that you submitted in a predictive inbox placement test.

    - #[serde(rename = "Subject")] - #[serde(default)] pub subject: std::option::Option, ///

    The sender address that you specified for the predictive inbox placement test.

    - #[serde(rename = "FromEmailAddress")] - #[serde(default)] pub from_email_address: std::option::Option, ///

    The date and time when the predictive inbox placement test was created, in Unix time format.

    - #[serde(rename = "CreateDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub create_date: std::option::Option, ///

    The status of the predictive inbox placement test. If the status is IN_PROGRESS, then the predictive inbox placement test /// is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the /// test. If the status is COMPLETE, then the test is finished, and you can use /// the GetDeliverabilityTestReport to view the results of the test.

    - #[serde(rename = "DeliverabilityTestStatus")] - #[serde(default)] pub deliverability_test_status: std::option::Option, } impl std::fmt::Debug for DeliverabilityTestReport { @@ -4742,7 +4380,7 @@ impl std::convert::From<&str> for DeliverabilityTestStatus { impl std::str::FromStr for DeliverabilityTestStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeliverabilityTestStatus::from(s)) } } @@ -4760,41 +4398,22 @@ impl AsRef for DeliverabilityTestStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeliverabilityTestStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about a custom verification email template.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CustomVerificationEmailTemplateMetadata { ///

    The name of the custom verification email template.

    - #[serde(rename = "TemplateName")] - #[serde(default)] pub template_name: std::option::Option, ///

    The email address that the custom verification email is sent from.

    - #[serde(rename = "FromEmailAddress")] - #[serde(default)] pub from_email_address: std::option::Option, ///

    The subject line of the custom verification email.

    - #[serde(rename = "TemplateSubject")] - #[serde(default)] pub template_subject: std::option::Option, ///

    The URL that the recipient of the verification email is sent to if his or her address /// is successfully verified.

    - #[serde(rename = "SuccessRedirectionURL")] - #[serde(default)] pub success_redirection_url: std::option::Option, ///

    The URL that the recipient of the verification email is sent to if his or her address /// is not successfully verified.

    - #[serde(rename = "FailureRedirectionURL")] - #[serde(default)] pub failure_redirection_url: std::option::Option, } impl std::fmt::Debug for CustomVerificationEmailTemplateMetadata { @@ -4904,32 +4523,19 @@ impl CustomVerificationEmailTemplateMetadata { ///

    A contact is the end-user who is receiving the email.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Contact { ///

    The contact's email address.

    - #[serde(rename = "EmailAddress")] - #[serde(default)] pub email_address: std::option::Option, ///

    The contact's preference for being opted-in to or opted-out of a topic.

    - #[serde(rename = "TopicPreferences")] - #[serde(default)] pub topic_preferences: std::option::Option>, ///

    The default topic preferences applied to the contact.

    - #[serde(rename = "TopicDefaultPreferences")] - #[serde(default)] pub topic_default_preferences: std::option::Option>, ///

    A boolean value status noting if the contact is unsubscribed from all contact list /// topics.

    - #[serde(rename = "UnsubscribeAll")] - #[serde(default)] pub unsubscribe_all: bool, ///

    A timestamp noting the last time the contact's information was updated.

    - #[serde(rename = "LastUpdatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_timestamp: std::option::Option, } impl std::fmt::Debug for Contact { @@ -5045,16 +4651,12 @@ impl Contact { ///

    A filter that can be applied to a list of contacts.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ListContactsFilter { ///

    The status by which you are filtering: OPT_IN or /// OPT_OUT.

    - #[serde(rename = "FilteredStatus")] - #[serde(default)] pub filtered_status: std::option::Option, ///

    Used for filtering by a specific topic preference.

    - #[serde(rename = "TopicFilter")] - #[serde(default)] pub topic_filter: std::option::Option, } impl std::fmt::Debug for ListContactsFilter { @@ -5118,16 +4720,12 @@ impl ListContactsFilter { ///

    Used for filtering by a specific topic preference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TopicFilter { ///

    The name of a topic on which you wish to apply the filter.

    - #[serde(rename = "TopicName")] - #[serde(default)] pub topic_name: std::option::Option, ///

    Notes that the default subscription status should be applied to a contact because the /// contact has not noted their preference for subscribing to a topic.

    - #[serde(rename = "UseDefaultIfPreferenceUnavailable")] - #[serde(default)] pub use_default_if_preference_unavailable: bool, } impl std::fmt::Debug for TopicFilter { @@ -5194,18 +4792,11 @@ impl TopicFilter { ///

    A list that contains contacts that have subscribed to a particular topic or /// topics.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ContactList { ///

    The name of the contact list.

    - #[serde(rename = "ContactListName")] - #[serde(default)] pub contact_list_name: std::option::Option, ///

    A timestamp noting the last time the contact list was updated.

    - #[serde(rename = "LastUpdatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_updated_timestamp: std::option::Option, } impl std::fmt::Debug for ContactList { @@ -5269,28 +4860,17 @@ impl ContactList { ///

    An object that contains information about an email address that is on the suppression /// list for your account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressedDestination { ///

    The email address that is on the suppression list for your account.

    - #[serde(rename = "EmailAddress")] - #[serde(default)] pub email_address: std::option::Option, ///

    The reason that the address was added to the suppression list for your account.

    - #[serde(rename = "Reason")] - #[serde(default)] pub reason: std::option::Option, ///

    The date and time when the suppressed destination was last updated, shown in Unix time /// format.

    - #[serde(rename = "LastUpdateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_update_time: std::option::Option, ///

    An optional value that can contain additional information about the reasons that the /// address was added to the suppression list for your account.

    - #[serde(rename = "Attributes")] - #[serde(default)] pub attributes: std::option::Option, } impl std::fmt::Debug for SuppressedDestination { @@ -5386,17 +4966,13 @@ impl SuppressedDestination { ///

    An object that contains additional attributes that are related an email address that /// is on the suppression list for your account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressedDestinationAttributes { ///

    The unique identifier of the email message that caused the email address to be added /// to the suppression list for your account.

    - #[serde(rename = "MessageId")] - #[serde(default)] pub message_id: std::option::Option, ///

    A unique identifier that's generated when an email address is added to the suppression /// list for your account.

    - #[serde(rename = "FeedbackId")] - #[serde(default)] pub feedback_id: std::option::Option, } impl std::fmt::Debug for SuppressedDestinationAttributes { @@ -5455,16 +5031,12 @@ impl SuppressedDestinationAttributes { ///

    An object that contains the failure details about an import job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailureInfo { ///

    An Amazon S3 presigned URL that contains all the failed records and related /// information.

    - #[serde(rename = "FailedRecordsS3Url")] - #[serde(default)] pub failed_records_s3_url: std::option::Option, ///

    A message about why the import job failed.

    - #[serde(rename = "ErrorMessage")] - #[serde(default)] pub error_message: std::option::Option, } impl std::fmt::Debug for FailureInfo { @@ -5528,16 +5100,12 @@ impl FailureInfo { ///

    An object that contains details about the data source of the import job.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ImportDataSource { ///

    An Amazon S3 URL in the format /// s3:///.

    - #[serde(rename = "S3Url")] - #[serde(default)] pub s3_url: std::option::Option, ///

    The data format of the import job's data source.

    - #[serde(rename = "DataFormat")] - #[serde(default)] pub data_format: std::option::Option, } impl std::fmt::Debug for ImportDataSource { @@ -5625,7 +5193,7 @@ impl std::convert::From<&str> for DataFormat { impl std::str::FromStr for DataFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DataFormat::from(s)) } } @@ -5643,23 +5211,12 @@ impl AsRef for DataFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DataFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A list of attributes that are associated with a MAIL FROM domain.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MailFromAttributes { ///

    The name of a domain that an email identity uses as a custom MAIL FROM domain.

    - #[serde(rename = "MailFromDomain")] - #[serde(default)] pub mail_from_domain: std::option::Option, ///

    The status of the MAIL FROM domain. This status can have the following values:

    ///
      @@ -5684,8 +5241,6 @@ pub struct MailFromAttributes { /// prevented Amazon SES from determining the status of the MAIL FROM domain.

      /// ///
    - #[serde(rename = "MailFromDomainStatus")] - #[serde(default)] pub mail_from_domain_status: std::option::Option, ///

    The action that you want to take if the required MX record can't be found when you /// send an email. When you set this value to UseDefaultValue, the mail is sent @@ -5696,8 +5251,6 @@ pub struct MailFromAttributes { ///

    These behaviors are taken when the custom MAIL FROM domain configuration is in the /// Pending, Failed, and TemporaryFailure /// states.

    - #[serde(rename = "BehaviorOnMxFailure")] - #[serde(default)] pub behavior_on_mx_failure: std::option::Option, } impl std::fmt::Debug for MailFromAttributes { @@ -5861,7 +5414,7 @@ impl std::convert::From<&str> for MailFromDomainStatus { impl std::str::FromStr for MailFromDomainStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MailFromDomainStatus::from(s)) } } @@ -5881,15 +5434,6 @@ impl AsRef for MailFromDomainStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MailFromDomainStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains information about the DKIM authentication status for an email /// identity.

    @@ -5901,13 +5445,11 @@ impl<'de> serde::Deserialize<'de> for MailFromDomainStatus { /// TXT record must be a public key that's paired with the private key that you specified in /// the process of creating the identity

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DkimAttributes { ///

    If the value is true, then the messages that you send from the identity /// are signed using DKIM. If the value is false, then the messages that you /// send from the identity aren't DKIM-signed.

    - #[serde(rename = "SigningEnabled")] - #[serde(default)] pub signing_enabled: bool, ///

    Describes whether or not Amazon SES has successfully located the DKIM records in the DNS /// records for the domain. The status can be one of the following:

    @@ -5940,8 +5482,6 @@ pub struct DkimAttributes { /// initiated for the domain.

    /// /// - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    If you used Easy DKIM to configure DKIM authentication for the domain, then this object /// contains a set of unique strings that you use to create a set of CNAME records that you @@ -5952,8 +5492,6 @@ pub struct DkimAttributes { /// key.

    ///

    Regardless of the DKIM authentication method you use, Amazon SES searches for the /// appropriate records in the DNS configuration of the domain for up to 72 hours.

    - #[serde(rename = "Tokens")] - #[serde(default)] pub tokens: std::option::Option>, ///

    A string that indicates how DKIM was configured for the identity. There are two /// possible values:

    @@ -5969,8 +5507,6 @@ pub struct DkimAttributes { /// identity by using Bring Your Own DKIM (BYODKIM).

    /// /// - #[serde(rename = "SigningAttributesOrigin")] - #[serde(default)] pub signing_attributes_origin: std::option::Option, } impl std::fmt::Debug for DkimAttributes { @@ -6108,24 +5644,15 @@ impl DkimAttributes { ///

    An object that contains information about the volume of email sent on each day of the /// analysis period.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DailyVolume { ///

    The date that the DailyVolume metrics apply to, in Unix time.

    - #[serde(rename = "StartDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_date: std::option::Option, ///

    An object that contains inbox placement metrics for a specific day in the analysis /// period.

    - #[serde(rename = "VolumeStatistics")] - #[serde(default)] pub volume_statistics: std::option::Option, ///

    An object that contains inbox placement metrics for a specified day in the analysis /// period, broken out by the recipient's email provider.

    - #[serde(rename = "DomainIspPlacements")] - #[serde(default)] pub domain_isp_placements: std::option::Option>, } impl std::fmt::Debug for DailyVolume { @@ -6207,31 +5734,21 @@ impl DailyVolume { ///

    An object that contains inbox placement data for email sent from one of your email /// domains to a specific email provider.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DomainIspPlacement { ///

    The name of the email provider that the inbox placement data applies to.

    - #[serde(rename = "IspName")] - #[serde(default)] pub isp_name: std::option::Option, ///

    The total number of messages that were sent from the selected domain to the specified /// email provider that arrived in recipients' inboxes.

    - #[serde(rename = "InboxRawCount")] - #[serde(default)] pub inbox_raw_count: std::option::Option, ///

    The total number of messages that were sent from the selected domain to the specified /// email provider that arrived in recipients' spam or junk mail folders.

    - #[serde(rename = "SpamRawCount")] - #[serde(default)] pub spam_raw_count: std::option::Option, ///

    The percentage of messages that were sent from the selected domain to the specified /// email provider that arrived in recipients' inboxes.

    - #[serde(rename = "InboxPercentage")] - #[serde(default)] pub inbox_percentage: std::option::Option, ///

    The percentage of messages that were sent from the selected domain to the specified /// email provider that arrived in recipients' spam or junk mail folders.

    - #[serde(rename = "SpamPercentage")] - #[serde(default)] pub spam_percentage: std::option::Option, } impl std::fmt::Debug for DomainIspPlacement { @@ -6329,26 +5846,18 @@ impl DomainIspPlacement { ///

    An object that contains information about the amount of email that was delivered to /// recipients.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct VolumeStatistics { ///

    The total number of emails that arrived in recipients' inboxes.

    - #[serde(rename = "InboxRawCount")] - #[serde(default)] pub inbox_raw_count: std::option::Option, ///

    The total number of emails that arrived in recipients' spam or junk mail /// folders.

    - #[serde(rename = "SpamRawCount")] - #[serde(default)] pub spam_raw_count: std::option::Option, ///

    An estimate of the percentage of emails sent from the current domain that will arrive /// in recipients' inboxes.

    - #[serde(rename = "ProjectedInbox")] - #[serde(default)] pub projected_inbox: std::option::Option, ///

    An estimate of the percentage of emails sent from the current domain that will arrive /// in recipients' spam or junk mail folders.

    - #[serde(rename = "ProjectedSpam")] - #[serde(default)] pub projected_spam: std::option::Option, } impl std::fmt::Debug for VolumeStatistics { @@ -6433,22 +5942,16 @@ impl VolumeStatistics { ///

    An object that contains information about email that was sent from the selected /// domain.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OverallVolume { ///

    An object that contains information about the numbers of messages that arrived in /// recipients' inboxes and junk mail folders.

    - #[serde(rename = "VolumeStatistics")] - #[serde(default)] pub volume_statistics: std::option::Option, ///

    The percentage of emails that were sent from the domain that were read by their /// recipients.

    - #[serde(rename = "ReadRatePercent")] - #[serde(default)] pub read_rate_percent: std::option::Option, ///

    An object that contains inbox and junk mail placement metrics for individual email /// providers.

    - #[serde(rename = "DomainIspPlacements")] - #[serde(default)] pub domain_isp_placements: std::option::Option>, } impl std::fmt::Debug for OverallVolume { @@ -6531,15 +6034,11 @@ impl OverallVolume { ///

    An object that describes how email sent during the predictive inbox placement test was handled by a certain /// email provider.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IspPlacement { ///

    The name of the email provider that the inbox placement data applies to.

    - #[serde(rename = "IspName")] - #[serde(default)] pub isp_name: std::option::Option, ///

    An object that contains inbox placement metrics for a specific email provider.

    - #[serde(rename = "PlacementStatistics")] - #[serde(default)] pub placement_statistics: std::option::Option, } impl std::fmt::Debug for IspPlacement { @@ -6599,31 +6098,21 @@ impl IspPlacement { ///

    An object that contains inbox placement data for an email provider.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PlacementStatistics { ///

    The percentage of emails that arrived in recipients' inboxes during the predictive inbox placement test.

    - #[serde(rename = "InboxPercentage")] - #[serde(default)] pub inbox_percentage: std::option::Option, ///

    The percentage of emails that arrived in recipients' spam or junk mail folders during /// the predictive inbox placement test.

    - #[serde(rename = "SpamPercentage")] - #[serde(default)] pub spam_percentage: std::option::Option, ///

    The percentage of emails that didn't arrive in recipients' inboxes at all during the /// predictive inbox placement test.

    - #[serde(rename = "MissingPercentage")] - #[serde(default)] pub missing_percentage: std::option::Option, ///

    The percentage of emails that were authenticated by using Sender Policy Framework /// (SPF) during the predictive inbox placement test.

    - #[serde(rename = "SpfPercentage")] - #[serde(default)] pub spf_percentage: std::option::Option, ///

    The percentage of emails that were authenticated by using DomainKeys Identified Mail /// (DKIM) during the predictive inbox placement test.

    - #[serde(rename = "DkimPercentage")] - #[serde(default)] pub dkim_percentage: std::option::Option, } impl std::fmt::Debug for PlacementStatistics { @@ -6751,7 +6240,7 @@ impl std::convert::From<&str> for DeliverabilityDashboardAccountStatus { impl std::str::FromStr for DeliverabilityDashboardAccountStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DeliverabilityDashboardAccountStatus::from(s)) } } @@ -6770,15 +6259,6 @@ impl AsRef for DeliverabilityDashboardAccountStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DeliverabilityDashboardAccountStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Contains information about a dedicated IP address that is associated with your Amazon SES /// account.

    @@ -6786,11 +6266,9 @@ impl<'de> serde::Deserialize<'de> for DeliverabilityDashboardAccountStatus { /// Dedicated IP Addresses in the Amazon SES Developer /// Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DedicatedIp { ///

    An IPv4 address.

    - #[serde(rename = "Ip")] - #[serde(default)] pub ip: std::option::Option, ///

    The warm-up status of a dedicated IP address. The status can have one of the following /// values:

    @@ -6806,17 +6284,11 @@ pub struct DedicatedIp { /// the IP address is ready to use.

    /// /// - #[serde(rename = "WarmupStatus")] - #[serde(default)] pub warmup_status: std::option::Option, ///

    Indicates how complete the dedicated IP warm-up process is. When this value equals 1, /// the address has completed the warm-up process and is ready for use.

    - #[serde(rename = "WarmupPercentage")] - #[serde(default)] pub warmup_percentage: std::option::Option, ///

    The name of the dedicated IP pool that the IP address is associated with.

    - #[serde(rename = "PoolName")] - #[serde(default)] pub pool_name: std::option::Option, } impl std::fmt::Debug for DedicatedIp { @@ -6941,7 +6413,7 @@ impl std::convert::From<&str> for WarmupStatus { impl std::str::FromStr for WarmupStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(WarmupStatus::from(s)) } } @@ -6959,15 +6431,6 @@ impl AsRef for WarmupStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for WarmupStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    In the Amazon SES API v2, events include message sends, deliveries, opens, /// clicks, bounces, complaints and delivery delays. Event destinations are places that @@ -6975,45 +6438,31 @@ impl<'de> serde::Deserialize<'de> for WarmupStatus { /// Amazon SNS to receive notifications when you receive bounces or complaints, or you can use /// Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EventDestination { ///

    A name that identifies the event destination.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    If true, the event destination is enabled. When the event destination is /// enabled, the specified event types are sent to the destinations in this /// EventDestinationDefinition.

    ///

    If false, the event destination is disabled. When the event destination /// is disabled, events aren't sent to the specified destinations.

    - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: bool, ///

    The types of events that Amazon SES sends to the specified event destinations.

    - #[serde(rename = "MatchingEventTypes")] - #[serde(default)] pub matching_event_types: std::option::Option>, ///

    An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to /// stream data to other services, such as Amazon S3 and Amazon Redshift.

    - #[serde(rename = "KinesisFirehoseDestination")] - #[serde(default)] pub kinesis_firehose_destination: std::option::Option, ///

    An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to /// monitor and gain insights on your email sending metrics.

    - #[serde(rename = "CloudWatchDestination")] - #[serde(default)] pub cloud_watch_destination: std::option::Option, ///

    An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to /// send notification when certain email events occur.

    - #[serde(rename = "SnsDestination")] - #[serde(default)] pub sns_destination: std::option::Option, ///

    An object that defines an Amazon Pinpoint project destination for email events. You can send /// email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging /// dashboards that are built in to Amazon Pinpoint. For more information, see Transactional /// Messaging Charts in the Amazon Pinpoint User Guide.

    - #[serde(rename = "PinpointDestination")] - #[serde(default)] pub pinpoint_destination: std::option::Option, } impl std::fmt::Debug for EventDestination { @@ -7169,7 +6618,7 @@ impl EventDestination { ///

    An object that contains information about the suppression list preferences for your /// account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressionOptions { ///

    A list that contains the reasons that email addresses are automatically added to the /// suppression list for your account. This list can contain any or all of the @@ -7188,8 +6637,6 @@ pub struct SuppressionOptions { /// bounce.

    /// /// - #[serde(rename = "SuppressedReasons")] - #[serde(default)] pub suppressed_reasons: std::option::Option>, } impl std::fmt::Debug for SuppressionOptions { @@ -7243,12 +6690,10 @@ impl SuppressionOptions { ///

    Used to enable or disable email sending for messages that use this configuration set /// in the current AWS Region.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SendingOptions { ///

    If true, email sending is enabled for the configuration set. If /// false, email sending is disabled for the configuration set.

    - #[serde(rename = "SendingEnabled")] - #[serde(default)] pub sending_enabled: bool, } impl std::fmt::Debug for SendingOptions { @@ -7295,22 +6740,15 @@ impl SendingOptions { ///

    Enable or disable collection of reputation metrics for emails that you send using this /// configuration set in the current AWS Region.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReputationOptions { ///

    If true, tracking of reputation metrics is enabled for the configuration /// set. If false, tracking of reputation metrics is disabled for the /// configuration set.

    - #[serde(rename = "ReputationMetricsEnabled")] - #[serde(default)] pub reputation_metrics_enabled: bool, ///

    The date and time (in Unix time) when the reputation metrics were last given a fresh /// start. When your account is given a fresh start, your reputation metrics are calculated /// starting from the date of the fresh start.

    - #[serde(rename = "LastFreshStart")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_fresh_start: std::option::Option, } impl std::fmt::Debug for ReputationOptions { @@ -7377,19 +6815,15 @@ impl ReputationOptions { ///

    Used to associate a configuration set with a dedicated IP pool.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DeliveryOptions { ///

    Specifies whether messages that use the configuration set are required to use /// Transport Layer Security (TLS). If the value is Require, messages are only /// delivered if a TLS connection can be established. If the value is Optional, /// messages can be delivered in plain text if a TLS connection can't be established.

    - #[serde(rename = "TlsPolicy")] - #[serde(default)] pub tls_policy: std::option::Option, ///

    The name of the dedicated IP pool that you want to associate with the configuration /// set.

    - #[serde(rename = "SendingPoolName")] - #[serde(default)] pub sending_pool_name: std::option::Option, } impl std::fmt::Debug for DeliveryOptions { @@ -7462,11 +6896,9 @@ impl DeliveryOptions { /// optionally configure the Amazon SES to use a domain that you operate for these images and /// links.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TrackingOptions { ///

    The domain that you want to use for tracking open and click events.

    - #[serde(rename = "CustomRedirectDomain")] - #[serde(default)] pub custom_redirect_domain: std::option::Option, } impl std::fmt::Debug for TrackingOptions { @@ -7515,23 +6947,14 @@ impl TrackingOptions { ///

    An object that contains information about a blacklisting event that impacts one of the /// dedicated IP addresses that is associated with your account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BlacklistEntry { ///

    The name of the blacklist that the IP address appears on.

    - #[serde(rename = "RblName")] - #[serde(default)] pub rbl_name: std::option::Option, ///

    The time when the blacklisting event occurred, shown in Unix time format.

    - #[serde(rename = "ListingTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub listing_time: std::option::Option, ///

    Additional information about the blacklisting event, as provided by the blacklist /// maintainer.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, } impl std::fmt::Debug for BlacklistEntry { @@ -7604,7 +7027,7 @@ impl BlacklistEntry { ///

    An object that contains information about your account details.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccountDetails { ///

    The type of email your account is sending. The mail type can be one of the /// following:

    @@ -7620,31 +7043,19 @@ pub struct AccountDetails { /// communicate during a transaction with a customer.

    /// /// - #[serde(rename = "MailType")] - #[serde(default)] pub mail_type: std::option::Option, ///

    The URL of your website. This information helps us better understand the type of /// content that you plan to send.

    - #[serde(rename = "WebsiteURL")] - #[serde(default)] pub website_url: std::option::Option, ///

    The language you would prefer for the case. The contact language can be one of /// ENGLISH or JAPANESE.

    - #[serde(rename = "ContactLanguage")] - #[serde(default)] pub contact_language: std::option::Option, ///

    A description of the types of email that you plan to send.

    - #[serde(rename = "UseCaseDescription")] - #[serde(default)] pub use_case_description: std::option::Option, ///

    Additional email addresses where updates are sent about your account review /// process.

    - #[serde(rename = "AdditionalContactEmailAddresses")] - #[serde(default)] pub additional_contact_email_addresses: std::option::Option>, ///

    Information about the review of the latest details you submitted.

    - #[serde(rename = "ReviewDetails")] - #[serde(default)] pub review_details: std::option::Option, } impl std::fmt::Debug for AccountDetails { @@ -7784,7 +7195,7 @@ impl AccountDetails { ///

    An object that contains information about your account details review.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReviewDetails { ///

    The status of the latest review of your account. The status can be one of the /// following:

    @@ -7810,12 +7221,8 @@ pub struct ReviewDetails { /// your appeal. You can submit your appeal again.

    /// /// - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The associated support center case ID (if any).

    - #[serde(rename = "CaseId")] - #[serde(default)] pub case_id: std::option::Option, } impl std::fmt::Debug for ReviewDetails { @@ -7928,7 +7335,7 @@ impl std::convert::From<&str> for ReviewStatus { impl std::str::FromStr for ReviewStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReviewStatus::from(s)) } } @@ -7948,20 +7355,11 @@ impl AsRef for ReviewStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReviewStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An object that contains information about the email address suppression preferences /// for your account in the current AWS Region.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SuppressionAttributes { ///

    A list that contains the reasons that email addresses will be automatically added to /// the suppression list for your account. This list can contain any or all of the @@ -7980,8 +7378,6 @@ pub struct SuppressionAttributes { /// bounce.

    /// /// - #[serde(rename = "SuppressedReasons")] - #[serde(default)] pub suppressed_reasons: std::option::Option>, } impl std::fmt::Debug for SuppressionAttributes { @@ -8035,24 +7431,18 @@ impl SuppressionAttributes { ///

    An object that contains information about the per-day and per-second sending limits /// for your Amazon SES account in the current AWS Region.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SendQuota { ///

    The maximum number of emails that you can send in the current AWS Region over a /// 24-hour period. This value is also called your sending /// quota.

    - #[serde(rename = "Max24HourSend")] - #[serde(default)] pub max24_hour_send: f64, ///

    The maximum number of emails that you can send per second in the current AWS Region. /// This value is also called your maximum sending rate or your /// maximum TPS (transactions per second) rate.

    - #[serde(rename = "MaxSendRate")] - #[serde(default)] pub max_send_rate: f64, ///

    The number of emails sent from your Amazon SES account in the current AWS Region over the /// past 24 hours.

    - #[serde(rename = "SentLast24Hours")] - #[serde(default)] pub sent_last24_hours: f64, } impl std::fmt::Debug for SendQuota { diff --git a/sdk/sesv2/src/operation_deser.rs b/sdk/sesv2/src/operation_deser.rs index cced0c707232..6d78e67a18c0 100644 --- a/sdk/sesv2/src/operation_deser.rs +++ b/sdk/sesv2/src/operation_deser.rs @@ -19,34 +19,25 @@ pub fn parse_create_configuration_set_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateConfigurationSetError { meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::AlreadyExistsError({ + kind: crate::error::CreateConfigurationSetErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateConfigurationSetError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateConfigurationSetError { meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateConfigurationSetError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::CreateConfigurationSetError { - meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::ConcurrentModificationError({ + kind: crate::error::CreateConfigurationSetErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -54,36 +45,57 @@ pub fn parse_create_configuration_set_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::CreateConfigurationSetError { + meta: generic, + kind: + crate::error::CreateConfigurationSetErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetError::unhandled)?; + output.build() + }, + ), + } + } "LimitExceededException" => crate::error::CreateConfigurationSetError { meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::LimitExceededError({ + kind: crate::error::CreateConfigurationSetErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateConfigurationSetError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateConfigurationSetError { meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::NotFoundError({ + kind: crate::error::CreateConfigurationSetErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateConfigurationSetError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateConfigurationSetError { meta: generic, - kind: crate::error::CreateConfigurationSetErrorKind::TooManyRequestsError({ + kind: crate::error::CreateConfigurationSetErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -128,88 +140,37 @@ pub fn parse_create_configuration_set_event_destination_error( } }; Err(match error_code { - "AlreadyExistsException" => crate::error::CreateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsError( - { - #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); - let _ = response; - output = crate::json_deser::already_exists_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::CreateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }, - ), - }, - "BadRequestException" => crate::error::CreateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err( - crate::error::CreateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "LimitExceededException" => crate::error::CreateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::LimitExceededError( - { - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::CreateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }, - ), - }, - "NotFoundException" => crate::error::CreateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::CreateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::CreateConfigurationSetEventDestinationError { - meta: generic, - kind: - crate::error::CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::CreateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::CreateConfigurationSetEventDestinationError::generic(generic), + "AlreadyExistsException" => crate::error::CreateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::AlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "BadRequestException" => crate::error::CreateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "LimitExceededException" => crate::error::CreateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::CreateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::CreateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::CreateConfigurationSetEventDestinationErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + _ => crate::error::CreateConfigurationSetEventDestinationError::generic(generic) }) } @@ -242,45 +203,53 @@ pub fn parse_create_contact_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateContactError { meta: generic, - kind: crate::error::CreateContactErrorKind::AlreadyExistsError({ + kind: crate::error::CreateContactErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateContactError { meta: generic, - kind: crate::error::CreateContactErrorKind::BadRequestError({ + kind: crate::error::CreateContactErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateContactError { meta: generic, - kind: crate::error::CreateContactErrorKind::NotFoundError({ + kind: crate::error::CreateContactErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateContactError { meta: generic, - kind: crate::error::CreateContactErrorKind::TooManyRequestsError({ + kind: crate::error::CreateContactErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -318,46 +287,53 @@ pub fn parse_create_contact_list_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateContactListError { meta: generic, - kind: crate::error::CreateContactListErrorKind::AlreadyExistsError({ + kind: crate::error::CreateContactListErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactListError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactListError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateContactListError { meta: generic, - kind: crate::error::CreateContactListErrorKind::BadRequestError({ + kind: crate::error::CreateContactListErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactListError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactListError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateContactListError { meta: generic, - kind: crate::error::CreateContactListErrorKind::LimitExceededError({ + kind: crate::error::CreateContactListErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateContactListError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateContactListError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateContactListError { meta: generic, - kind: crate::error::CreateContactListErrorKind::TooManyRequestsError({ + kind: crate::error::CreateContactListErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -400,82 +376,37 @@ pub fn parse_create_custom_verification_email_template_error( } }; Err(match error_code { - "AlreadyExistsException" => crate::error::CreateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsError( - { - #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); - let _ = response; - output = crate::json_deser::already_exists_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }, - ), - }, - "BadRequestException" => crate::error::CreateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }), - }, - "LimitExceededException" => crate::error::CreateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::LimitExceededError( - { - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::json_deser::limit_exceeded_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }, - ), - }, - "NotFoundException" => crate::error::CreateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::CreateCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::CreateCustomVerificationEmailTemplateError { - meta: generic, - kind: - crate::error::CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::CreateCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::CreateCustomVerificationEmailTemplateError::generic(generic), + "AlreadyExistsException" => crate::error::CreateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::AlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "BadRequestException" => crate::error::CreateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "LimitExceededException" => crate::error::CreateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::CreateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::CreateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::CreateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + _ => crate::error::CreateCustomVerificationEmailTemplateError::generic(generic) }) } @@ -511,34 +442,25 @@ pub fn parse_create_dedicated_ip_pool_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateDedicatedIpPoolError { meta: generic, - kind: crate::error::CreateDedicatedIpPoolErrorKind::AlreadyExistsError({ + kind: crate::error::CreateDedicatedIpPoolErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateDedicatedIpPoolError { meta: generic, - kind: crate::error::CreateDedicatedIpPoolErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::CreateDedicatedIpPoolError { - meta: generic, - kind: crate::error::CreateDedicatedIpPoolErrorKind::ConcurrentModificationError({ + kind: crate::error::CreateDedicatedIpPoolErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -546,25 +468,42 @@ pub fn parse_create_dedicated_ip_pool_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::CreateDedicatedIpPoolError { + meta: generic, + kind: crate::error::CreateDedicatedIpPoolErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; + output.build() + }, + ), + } + } "LimitExceededException" => crate::error::CreateDedicatedIpPoolError { meta: generic, - kind: crate::error::CreateDedicatedIpPoolErrorKind::LimitExceededError({ + kind: crate::error::CreateDedicatedIpPoolErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDedicatedIpPoolError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateDedicatedIpPoolError { meta: generic, - kind: crate::error::CreateDedicatedIpPoolErrorKind::TooManyRequestsError({ + kind: crate::error::CreateDedicatedIpPoolErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -605,58 +544,58 @@ pub fn parse_create_deliverability_test_report_error( None => return Err(crate::error::CreateDeliverabilityTestReportError::unhandled(generic)), }; Err(match error_code { - "AccountSuspendedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::AccountSuspendedError({ - #[allow(unused_mut)]let mut output = crate::error::account_suspended_error::Builder::default(); + "AccountSuspendedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::AccountSuspendedException({ + #[allow(unused_mut)]let mut output = crate::error::account_suspended_exception::Builder::default(); let _ = response; - output = crate::json_deser::account_suspended_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_account_suspended_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "BadRequestException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::BadRequestError({ - #[allow(unused_mut)]let mut output = crate::error::bad_request_error::Builder::default(); + "BadRequestException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "ConcurrentModificationException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)]let mut output = crate::error::concurrent_modification_error::Builder::default(); + "ConcurrentModificationException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)]let mut output = crate::error::concurrent_modification_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "LimitExceededException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::LimitExceededError({ - #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_error::Builder::default(); + "LimitExceededException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "MailFromDomainNotVerifiedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedError({ - #[allow(unused_mut)]let mut output = crate::error::mail_from_domain_not_verified_error::Builder::default(); + "MailFromDomainNotVerifiedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::MailFromDomainNotVerifiedException({ + #[allow(unused_mut)]let mut output = crate::error::mail_from_domain_not_verified_exception::Builder::default(); let _ = response; - output = crate::json_deser::mail_from_domain_not_verified_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_mail_from_domain_not_verified_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, "MessageRejected" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::MessageRejected({ #[allow(unused_mut)]let mut output = crate::error::message_rejected::Builder::default(); let _ = response; - output = crate::json_deser::message_rejected(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_message_rejectedjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "NotFoundException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::NotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::not_found_error::Builder::default(); + "NotFoundException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "SendingPausedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::SendingPausedError({ - #[allow(unused_mut)]let mut output = crate::error::sending_paused_error::Builder::default(); + "SendingPausedException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::SendingPausedException({ + #[allow(unused_mut)]let mut output = crate::error::sending_paused_exception::Builder::default(); let _ = response; - output = crate::json_deser::sending_paused_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_sending_paused_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, - "TooManyRequestsException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::TooManyRequestsError({ - #[allow(unused_mut)]let mut output = crate::error::too_many_requests_error::Builder::default(); + "TooManyRequestsException" => crate::error::CreateDeliverabilityTestReportError { meta: generic, kind: crate::error::CreateDeliverabilityTestReportErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateDeliverabilityTestReportError::unhandled)?; output.build() })}, _ => crate::error::CreateDeliverabilityTestReportError::generic(generic) @@ -675,7 +614,7 @@ pub fn parse_create_deliverability_test_report_response( let mut output = crate::output::create_deliverability_test_report_output::Builder::default(); let _ = response; - output = crate::json_deser::create_deliverability_test_report_deser_operation( + output = crate::json_deser::deser_operation_create_deliverability_test_report( response.body().as_ref(), output, ) @@ -700,34 +639,25 @@ pub fn parse_create_email_identity_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateEmailIdentityError { meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::AlreadyExistsError({ + kind: crate::error::CreateEmailIdentityErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateEmailIdentityError { meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::CreateEmailIdentityError { - meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::ConcurrentModificationError({ + kind: crate::error::CreateEmailIdentityErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -735,36 +665,56 @@ pub fn parse_create_email_identity_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::CreateEmailIdentityError { + meta: generic, + kind: crate::error::CreateEmailIdentityErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateEmailIdentityError::unhandled)?; + output.build() + }, + ), + } + } "LimitExceededException" => crate::error::CreateEmailIdentityError { meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::LimitExceededError({ + kind: crate::error::CreateEmailIdentityErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateEmailIdentityError { meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::NotFoundError({ + kind: crate::error::CreateEmailIdentityErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateEmailIdentityError { meta: generic, - kind: crate::error::CreateEmailIdentityErrorKind::TooManyRequestsError({ + kind: crate::error::CreateEmailIdentityErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -787,7 +737,7 @@ pub fn parse_create_email_identity_response( #[allow(unused_mut)] let mut output = crate::output::create_email_identity_output::Builder::default(); let _ = response; - output = crate::json_deser::create_email_identity_deser_operation( + output = crate::json_deser::deser_operation_create_email_identity( response.body().as_ref(), output, ) @@ -816,57 +766,67 @@ pub fn parse_create_email_identity_policy_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateEmailIdentityPolicyError { meta: generic, - kind: crate::error::CreateEmailIdentityPolicyErrorKind::AlreadyExistsError({ + kind: crate::error::CreateEmailIdentityPolicyErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateEmailIdentityPolicyError { meta: generic, - kind: crate::error::CreateEmailIdentityPolicyErrorKind::BadRequestError({ + kind: crate::error::CreateEmailIdentityPolicyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateEmailIdentityPolicyError { meta: generic, - kind: crate::error::CreateEmailIdentityPolicyErrorKind::LimitExceededError({ + kind: crate::error::CreateEmailIdentityPolicyErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::CreateEmailIdentityPolicyError { meta: generic, - kind: crate::error::CreateEmailIdentityPolicyErrorKind::NotFoundError({ + kind: crate::error::CreateEmailIdentityPolicyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateEmailIdentityPolicyError { meta: generic, - kind: crate::error::CreateEmailIdentityPolicyErrorKind::TooManyRequestsError({ + kind: crate::error::CreateEmailIdentityPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -909,46 +869,53 @@ pub fn parse_create_email_template_error( Err(match error_code { "AlreadyExistsException" => crate::error::CreateEmailTemplateError { meta: generic, - kind: crate::error::CreateEmailTemplateErrorKind::AlreadyExistsError({ + kind: crate::error::CreateEmailTemplateErrorKind::AlreadyExistsException({ #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); + let mut output = crate::error::already_exists_exception::Builder::default(); let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailTemplateError::unhandled)?; output.build() }), }, "BadRequestException" => crate::error::CreateEmailTemplateError { meta: generic, - kind: crate::error::CreateEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::CreateEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailTemplateError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateEmailTemplateError { meta: generic, - kind: crate::error::CreateEmailTemplateErrorKind::LimitExceededError({ + kind: crate::error::CreateEmailTemplateErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateEmailTemplateError { meta: generic, - kind: crate::error::CreateEmailTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::CreateEmailTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -988,34 +955,39 @@ pub fn parse_create_import_job_error( Err(match error_code { "BadRequestException" => crate::error::CreateImportJobError { meta: generic, - kind: crate::error::CreateImportJobErrorKind::BadRequestError({ + kind: crate::error::CreateImportJobErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateImportJobError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImportJobError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::CreateImportJobError { meta: generic, - kind: crate::error::CreateImportJobErrorKind::LimitExceededError({ + kind: crate::error::CreateImportJobErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::CreateImportJobError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateImportJobError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::CreateImportJobError { meta: generic, - kind: crate::error::CreateImportJobErrorKind::TooManyRequestsError({ + kind: crate::error::CreateImportJobErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1036,7 +1008,7 @@ pub fn parse_create_import_job_response( let mut output = crate::output::create_import_job_output::Builder::default(); let _ = response; output = - crate::json_deser::create_import_job_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_create_import_job(response.body().as_ref(), output) .map_err(crate::error::CreateImportJobError::unhandled)?; output.build() }) @@ -1062,22 +1034,11 @@ pub fn parse_delete_configuration_set_error( Err(match error_code { "BadRequestException" => crate::error::DeleteConfigurationSetError { meta: generic, - kind: crate::error::DeleteConfigurationSetErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteConfigurationSetError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::DeleteConfigurationSetError { - meta: generic, - kind: crate::error::DeleteConfigurationSetErrorKind::ConcurrentModificationError({ + kind: crate::error::DeleteConfigurationSetErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -1085,24 +1046,43 @@ pub fn parse_delete_configuration_set_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::DeleteConfigurationSetError { + meta: generic, + kind: + crate::error::DeleteConfigurationSetErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteConfigurationSetError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DeleteConfigurationSetError { meta: generic, - kind: crate::error::DeleteConfigurationSetErrorKind::NotFoundError({ + kind: crate::error::DeleteConfigurationSetErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteConfigurationSetError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteConfigurationSetError { meta: generic, - kind: crate::error::DeleteConfigurationSetErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteConfigurationSetErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1147,52 +1127,25 @@ pub fn parse_delete_configuration_set_event_destination_error( } }; Err(match error_code { - "BadRequestException" => crate::error::DeleteConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::DeleteConfigurationSetEventDestinationErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err( - crate::error::DeleteConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "NotFoundException" => crate::error::DeleteConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::DeleteConfigurationSetEventDestinationErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::DeleteConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::DeleteConfigurationSetEventDestinationError { - meta: generic, - kind: - crate::error::DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::DeleteConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::DeleteConfigurationSetEventDestinationError::generic(generic), + "BadRequestException" => crate::error::DeleteConfigurationSetEventDestinationError { meta: generic, kind: crate::error::DeleteConfigurationSetEventDestinationErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::DeleteConfigurationSetEventDestinationError { meta: generic, kind: crate::error::DeleteConfigurationSetEventDestinationErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::DeleteConfigurationSetEventDestinationError { meta: generic, kind: crate::error::DeleteConfigurationSetEventDestinationErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + _ => crate::error::DeleteConfigurationSetEventDestinationError::generic(generic) }) } @@ -1225,33 +1178,39 @@ pub fn parse_delete_contact_error( Err(match error_code { "BadRequestException" => crate::error::DeleteContactError { meta: generic, - kind: crate::error::DeleteContactErrorKind::BadRequestError({ + kind: crate::error::DeleteContactErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteContactError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteContactError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteContactError { meta: generic, - kind: crate::error::DeleteContactErrorKind::NotFoundError({ + kind: crate::error::DeleteContactErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteContactError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteContactError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteContactError { meta: generic, - kind: crate::error::DeleteContactErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteContactErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1289,22 +1248,11 @@ pub fn parse_delete_contact_list_error( Err(match error_code { "BadRequestException" => crate::error::DeleteContactListError { meta: generic, - kind: crate::error::DeleteContactListErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteContactListError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::DeleteContactListError { - meta: generic, - kind: crate::error::DeleteContactListErrorKind::ConcurrentModificationError({ + kind: crate::error::DeleteContactListErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -1312,24 +1260,40 @@ pub fn parse_delete_contact_list_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::DeleteContactListError { + meta: generic, + kind: crate::error::DeleteContactListErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteContactListError::unhandled)?; + output.build() + }), + } + } "NotFoundException" => crate::error::DeleteContactListError { meta: generic, - kind: crate::error::DeleteContactListErrorKind::NotFoundError({ + kind: crate::error::DeleteContactListErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteContactListError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteContactListError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteContactListError { meta: generic, - kind: crate::error::DeleteContactListErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteContactListErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1372,50 +1336,25 @@ pub fn parse_delete_custom_verification_email_template_error( } }; Err(match error_code { - "BadRequestException" => crate::error::DeleteCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::DeleteCustomVerificationEmailTemplateErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::DeleteCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::DeleteCustomVerificationEmailTemplateErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::DeleteCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::DeleteCustomVerificationEmailTemplateError { - meta: generic, - kind: - crate::error::DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::DeleteCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::DeleteCustomVerificationEmailTemplateError::generic(generic), + "BadRequestException" => crate::error::DeleteCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::DeleteCustomVerificationEmailTemplateErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::DeleteCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::DeleteCustomVerificationEmailTemplateErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::DeleteCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::DeleteCustomVerificationEmailTemplateErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + _ => crate::error::DeleteCustomVerificationEmailTemplateError::generic(generic) }) } @@ -1451,22 +1390,11 @@ pub fn parse_delete_dedicated_ip_pool_error( Err(match error_code { "BadRequestException" => crate::error::DeleteDedicatedIpPoolError { meta: generic, - kind: crate::error::DeleteDedicatedIpPoolErrorKind::BadRequestError({ + kind: crate::error::DeleteDedicatedIpPoolErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDedicatedIpPoolError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::DeleteDedicatedIpPoolError { - meta: generic, - kind: crate::error::DeleteDedicatedIpPoolErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -1474,24 +1402,42 @@ pub fn parse_delete_dedicated_ip_pool_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::DeleteDedicatedIpPoolError { + meta: generic, + kind: crate::error::DeleteDedicatedIpPoolErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteDedicatedIpPoolError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DeleteDedicatedIpPoolError { meta: generic, - kind: crate::error::DeleteDedicatedIpPoolErrorKind::NotFoundError({ + kind: crate::error::DeleteDedicatedIpPoolErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteDedicatedIpPoolError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDedicatedIpPoolError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteDedicatedIpPoolError { meta: generic, - kind: crate::error::DeleteDedicatedIpPoolErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteDedicatedIpPoolErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1534,22 +1480,11 @@ pub fn parse_delete_email_identity_error( Err(match error_code { "BadRequestException" => crate::error::DeleteEmailIdentityError { meta: generic, - kind: crate::error::DeleteEmailIdentityErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailIdentityError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::DeleteEmailIdentityError { - meta: generic, - kind: crate::error::DeleteEmailIdentityErrorKind::ConcurrentModificationError({ + kind: crate::error::DeleteEmailIdentityErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -1557,24 +1492,42 @@ pub fn parse_delete_email_identity_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::DeleteEmailIdentityError { + meta: generic, + kind: crate::error::DeleteEmailIdentityErrorKind::ConcurrentModificationException( + { + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteEmailIdentityError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::DeleteEmailIdentityError { meta: generic, - kind: crate::error::DeleteEmailIdentityErrorKind::NotFoundError({ + kind: crate::error::DeleteEmailIdentityErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEmailIdentityError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteEmailIdentityError { meta: generic, - kind: crate::error::DeleteEmailIdentityErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteEmailIdentityErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1621,33 +1574,39 @@ pub fn parse_delete_email_identity_policy_error( Err(match error_code { "BadRequestException" => crate::error::DeleteEmailIdentityPolicyError { meta: generic, - kind: crate::error::DeleteEmailIdentityPolicyErrorKind::BadRequestError({ + kind: crate::error::DeleteEmailIdentityPolicyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEmailIdentityPolicyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteEmailIdentityPolicyError { meta: generic, - kind: crate::error::DeleteEmailIdentityPolicyErrorKind::NotFoundError({ + kind: crate::error::DeleteEmailIdentityPolicyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEmailIdentityPolicyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteEmailIdentityPolicyError { meta: generic, - kind: crate::error::DeleteEmailIdentityPolicyErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteEmailIdentityPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1690,33 +1649,39 @@ pub fn parse_delete_email_template_error( Err(match error_code { "BadRequestException" => crate::error::DeleteEmailTemplateError { meta: generic, - kind: crate::error::DeleteEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::DeleteEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEmailTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteEmailTemplateError { meta: generic, - kind: crate::error::DeleteEmailTemplateErrorKind::NotFoundError({ + kind: crate::error::DeleteEmailTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteEmailTemplateError { meta: generic, - kind: crate::error::DeleteEmailTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteEmailTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1763,33 +1728,39 @@ pub fn parse_delete_suppressed_destination_error( Err(match error_code { "BadRequestException" => crate::error::DeleteSuppressedDestinationError { meta: generic, - kind: crate::error::DeleteSuppressedDestinationErrorKind::BadRequestError({ + kind: crate::error::DeleteSuppressedDestinationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteSuppressedDestinationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSuppressedDestinationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::DeleteSuppressedDestinationError { meta: generic, - kind: crate::error::DeleteSuppressedDestinationErrorKind::NotFoundError({ + kind: crate::error::DeleteSuppressedDestinationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::DeleteSuppressedDestinationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteSuppressedDestinationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::DeleteSuppressedDestinationError { meta: generic, - kind: crate::error::DeleteSuppressedDestinationErrorKind::TooManyRequestsError({ + kind: crate::error::DeleteSuppressedDestinationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1829,22 +1800,25 @@ pub fn parse_get_account_error( Err(match error_code { "BadRequestException" => crate::error::GetAccountError { meta: generic, - kind: crate::error::GetAccountErrorKind::BadRequestError({ + kind: crate::error::GetAccountErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetAccountError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAccountError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetAccountError { meta: generic, - kind: crate::error::GetAccountErrorKind::TooManyRequestsError({ + kind: crate::error::GetAccountErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1864,7 +1838,7 @@ pub fn parse_get_account_response( #[allow(unused_mut)] let mut output = crate::output::get_account_output::Builder::default(); let _ = response; - output = crate::json_deser::get_account_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_account(response.body().as_ref(), output) .map_err(crate::error::GetAccountError::unhandled)?; output.build() }) @@ -1886,33 +1860,39 @@ pub fn parse_get_blacklist_reports_error( Err(match error_code { "BadRequestException" => crate::error::GetBlacklistReportsError { meta: generic, - kind: crate::error::GetBlacklistReportsErrorKind::BadRequestError({ + kind: crate::error::GetBlacklistReportsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBlacklistReportsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBlacklistReportsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetBlacklistReportsError { meta: generic, - kind: crate::error::GetBlacklistReportsErrorKind::NotFoundError({ + kind: crate::error::GetBlacklistReportsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetBlacklistReportsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetBlacklistReportsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetBlacklistReportsError { meta: generic, - kind: crate::error::GetBlacklistReportsErrorKind::TooManyRequestsError({ + kind: crate::error::GetBlacklistReportsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -1935,7 +1915,7 @@ pub fn parse_get_blacklist_reports_response( #[allow(unused_mut)] let mut output = crate::output::get_blacklist_reports_output::Builder::default(); let _ = response; - output = crate::json_deser::get_blacklist_reports_deser_operation( + output = crate::json_deser::deser_operation_get_blacklist_reports( response.body().as_ref(), output, ) @@ -1960,33 +1940,39 @@ pub fn parse_get_configuration_set_error( Err(match error_code { "BadRequestException" => crate::error::GetConfigurationSetError { meta: generic, - kind: crate::error::GetConfigurationSetErrorKind::BadRequestError({ + kind: crate::error::GetConfigurationSetErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetConfigurationSetError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetConfigurationSetError { meta: generic, - kind: crate::error::GetConfigurationSetErrorKind::NotFoundError({ + kind: crate::error::GetConfigurationSetErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetConfigurationSetError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetConfigurationSetError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetConfigurationSetError { meta: generic, - kind: crate::error::GetConfigurationSetErrorKind::TooManyRequestsError({ + kind: crate::error::GetConfigurationSetErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2009,7 +1995,7 @@ pub fn parse_get_configuration_set_response( #[allow(unused_mut)] let mut output = crate::output::get_configuration_set_output::Builder::default(); let _ = response; - output = crate::json_deser::get_configuration_set_deser_operation( + output = crate::json_deser::deser_operation_get_configuration_set( response.body().as_ref(), output, ) @@ -2034,47 +2020,25 @@ pub fn parse_get_configuration_set_event_destinations_error( } }; Err(match error_code { - "BadRequestException" => crate::error::GetConfigurationSetEventDestinationsError { - meta: generic, - kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetConfigurationSetEventDestinationsError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::GetConfigurationSetEventDestinationsError { - meta: generic, - kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::GetConfigurationSetEventDestinationsError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::GetConfigurationSetEventDestinationsError { - meta: generic, - kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetConfigurationSetEventDestinationsError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::GetConfigurationSetEventDestinationsError::generic(generic), + "BadRequestException" => crate::error::GetConfigurationSetEventDestinationsError { meta: generic, kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetConfigurationSetEventDestinationsError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::GetConfigurationSetEventDestinationsError { meta: generic, kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetConfigurationSetEventDestinationsError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::GetConfigurationSetEventDestinationsError { meta: generic, kind: crate::error::GetConfigurationSetEventDestinationsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetConfigurationSetEventDestinationsError::unhandled)?; + output.build() + })}, + _ => crate::error::GetConfigurationSetEventDestinationsError::generic(generic) }) } @@ -2090,7 +2054,7 @@ pub fn parse_get_configuration_set_event_destinations_response( let mut output = crate::output::get_configuration_set_event_destinations_output::Builder::default(); let _ = response; - output = crate::json_deser::get_configuration_set_event_destinations_deser_operation( + output = crate::json_deser::deser_operation_get_configuration_set_event_destinations( response.body().as_ref(), output, ) @@ -2112,33 +2076,39 @@ pub fn parse_get_contact_error( Err(match error_code { "BadRequestException" => crate::error::GetContactError { meta: generic, - kind: crate::error::GetContactErrorKind::BadRequestError({ + kind: crate::error::GetContactErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetContactError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetContactError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetContactError { meta: generic, - kind: crate::error::GetContactErrorKind::NotFoundError({ + kind: crate::error::GetContactErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetContactError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetContactError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetContactError { meta: generic, - kind: crate::error::GetContactErrorKind::TooManyRequestsError({ + kind: crate::error::GetContactErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2158,7 +2128,7 @@ pub fn parse_get_contact_response( #[allow(unused_mut)] let mut output = crate::output::get_contact_output::Builder::default(); let _ = response; - output = crate::json_deser::get_contact_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_get_contact(response.body().as_ref(), output) .map_err(crate::error::GetContactError::unhandled)?; output.build() }) @@ -2177,33 +2147,39 @@ pub fn parse_get_contact_list_error( Err(match error_code { "BadRequestException" => crate::error::GetContactListError { meta: generic, - kind: crate::error::GetContactListErrorKind::BadRequestError({ + kind: crate::error::GetContactListErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetContactListError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetContactListError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetContactListError { meta: generic, - kind: crate::error::GetContactListErrorKind::NotFoundError({ + kind: crate::error::GetContactListErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetContactListError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetContactListError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetContactListError { meta: generic, - kind: crate::error::GetContactListErrorKind::TooManyRequestsError({ + kind: crate::error::GetContactListErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2224,7 +2200,7 @@ pub fn parse_get_contact_list_response( let mut output = crate::output::get_contact_list_output::Builder::default(); let _ = response; output = - crate::json_deser::get_contact_list_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_contact_list(response.body().as_ref(), output) .map_err(crate::error::GetContactListError::unhandled)?; output.build() }) @@ -2248,43 +2224,52 @@ pub fn parse_get_custom_verification_email_template_error( Err(match error_code { "BadRequestException" => crate::error::GetCustomVerificationEmailTemplateError { meta: generic, - kind: crate::error::GetCustomVerificationEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::GetCustomVerificationEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetCustomVerificationEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCustomVerificationEmailTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetCustomVerificationEmailTemplateError { meta: generic, - kind: crate::error::GetCustomVerificationEmailTemplateErrorKind::NotFoundError({ + kind: crate::error::GetCustomVerificationEmailTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::GetCustomVerificationEmailTemplateError::unhandled, - )?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCustomVerificationEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetCustomVerificationEmailTemplateError { meta: generic, - kind: crate::error::GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::GetCustomVerificationEmailTemplateErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::GetCustomVerificationEmailTemplateError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::GetCustomVerificationEmailTemplateError::generic(generic), }) @@ -2302,7 +2287,7 @@ pub fn parse_get_custom_verification_email_template_response( let mut output = crate::output::get_custom_verification_email_template_output::Builder::default(); let _ = response; - output = crate::json_deser::get_custom_verification_email_template_deser_operation( + output = crate::json_deser::deser_operation_get_custom_verification_email_template( response.body().as_ref(), output, ) @@ -2324,33 +2309,39 @@ pub fn parse_get_dedicated_ip_error( Err(match error_code { "BadRequestException" => crate::error::GetDedicatedIpError { meta: generic, - kind: crate::error::GetDedicatedIpErrorKind::BadRequestError({ + kind: crate::error::GetDedicatedIpErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDedicatedIpError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDedicatedIpError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDedicatedIpError { meta: generic, - kind: crate::error::GetDedicatedIpErrorKind::NotFoundError({ + kind: crate::error::GetDedicatedIpErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDedicatedIpError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDedicatedIpError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDedicatedIpError { meta: generic, - kind: crate::error::GetDedicatedIpErrorKind::TooManyRequestsError({ + kind: crate::error::GetDedicatedIpErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2371,7 +2362,7 @@ pub fn parse_get_dedicated_ip_response( let mut output = crate::output::get_dedicated_ip_output::Builder::default(); let _ = response; output = - crate::json_deser::get_dedicated_ip_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_dedicated_ip(response.body().as_ref(), output) .map_err(crate::error::GetDedicatedIpError::unhandled)?; output.build() }) @@ -2390,33 +2381,39 @@ pub fn parse_get_dedicated_ips_error( Err(match error_code { "BadRequestException" => crate::error::GetDedicatedIpsError { meta: generic, - kind: crate::error::GetDedicatedIpsErrorKind::BadRequestError({ + kind: crate::error::GetDedicatedIpsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDedicatedIpsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDedicatedIpsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDedicatedIpsError { meta: generic, - kind: crate::error::GetDedicatedIpsErrorKind::NotFoundError({ + kind: crate::error::GetDedicatedIpsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDedicatedIpsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDedicatedIpsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDedicatedIpsError { meta: generic, - kind: crate::error::GetDedicatedIpsErrorKind::TooManyRequestsError({ + kind: crate::error::GetDedicatedIpsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2437,7 +2434,7 @@ pub fn parse_get_dedicated_ips_response( let mut output = crate::output::get_dedicated_ips_output::Builder::default(); let _ = response; output = - crate::json_deser::get_dedicated_ips_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_dedicated_ips(response.body().as_ref(), output) .map_err(crate::error::GetDedicatedIpsError::unhandled)?; output.build() }) @@ -2461,34 +2458,11 @@ pub fn parse_get_deliverability_dashboard_options_error( Err(match error_code { "BadRequestException" => crate::error::GetDeliverabilityDashboardOptionsError { meta: generic, - kind: crate::error::GetDeliverabilityDashboardOptionsErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeliverabilityDashboardOptionsError::unhandled)?; - output.build() - }), - }, - "LimitExceededException" => crate::error::GetDeliverabilityDashboardOptionsError { - meta: generic, - kind: crate::error::GetDeliverabilityDashboardOptionsErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeliverabilityDashboardOptionsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::GetDeliverabilityDashboardOptionsError { - meta: generic, - kind: crate::error::GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsError({ + kind: crate::error::GetDeliverabilityDashboardOptionsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -2496,8 +2470,45 @@ pub fn parse_get_deliverability_dashboard_options_error( output.build() }), }, - _ => crate::error::GetDeliverabilityDashboardOptionsError::generic(generic), - }) + "LimitExceededException" => { + crate::error::GetDeliverabilityDashboardOptionsError { + meta: generic, + kind: + crate::error::GetDeliverabilityDashboardOptionsErrorKind::LimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetDeliverabilityDashboardOptionsError::unhandled)?; + output.build() + }, + ), + } + } + "TooManyRequestsException" => crate::error::GetDeliverabilityDashboardOptionsError { + meta: generic, + kind: + crate::error::GetDeliverabilityDashboardOptionsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::GetDeliverabilityDashboardOptionsError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::GetDeliverabilityDashboardOptionsError::generic(generic), + }) } #[allow(clippy::unnecessary_wraps)] @@ -2512,7 +2523,7 @@ pub fn parse_get_deliverability_dashboard_options_response( let mut output = crate::output::get_deliverability_dashboard_options_output::Builder::default(); let _ = response; - output = crate::json_deser::get_deliverability_dashboard_options_deser_operation( + output = crate::json_deser::deser_operation_get_deliverability_dashboard_options( response.body().as_ref(), output, ) @@ -2541,33 +2552,39 @@ pub fn parse_get_deliverability_test_report_error( Err(match error_code { "BadRequestException" => crate::error::GetDeliverabilityTestReportError { meta: generic, - kind: crate::error::GetDeliverabilityTestReportErrorKind::BadRequestError({ + kind: crate::error::GetDeliverabilityTestReportErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeliverabilityTestReportError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDeliverabilityTestReportError { meta: generic, - kind: crate::error::GetDeliverabilityTestReportErrorKind::NotFoundError({ + kind: crate::error::GetDeliverabilityTestReportErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDeliverabilityTestReportError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeliverabilityTestReportError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDeliverabilityTestReportError { meta: generic, - kind: crate::error::GetDeliverabilityTestReportErrorKind::TooManyRequestsError({ + kind: crate::error::GetDeliverabilityTestReportErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2590,7 +2607,7 @@ pub fn parse_get_deliverability_test_report_response( #[allow(unused_mut)] let mut output = crate::output::get_deliverability_test_report_output::Builder::default(); let _ = response; - output = crate::json_deser::get_deliverability_test_report_deser_operation( + output = crate::json_deser::deser_operation_get_deliverability_test_report( response.body().as_ref(), output, ) @@ -2615,33 +2632,25 @@ pub fn parse_get_domain_deliverability_campaign_error( Err(match error_code { "BadRequestException" => crate::error::GetDomainDeliverabilityCampaignError { meta: generic, - kind: crate::error::GetDomainDeliverabilityCampaignErrorKind::BadRequestError({ + kind: crate::error::GetDomainDeliverabilityCampaignErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainDeliverabilityCampaignError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainDeliverabilityCampaignError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDomainDeliverabilityCampaignError { meta: generic, - kind: crate::error::GetDomainDeliverabilityCampaignErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainDeliverabilityCampaignError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::GetDomainDeliverabilityCampaignError { - meta: generic, - kind: crate::error::GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsError({ + kind: crate::error::GetDomainDeliverabilityCampaignErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -2649,6 +2658,22 @@ pub fn parse_get_domain_deliverability_campaign_error( output.build() }), }, + "TooManyRequestsException" => { + crate::error::GetDomainDeliverabilityCampaignError { + meta: generic, + kind: + crate::error::GetDomainDeliverabilityCampaignErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetDomainDeliverabilityCampaignError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::GetDomainDeliverabilityCampaignError::generic(generic), }) } @@ -2665,7 +2690,7 @@ pub fn parse_get_domain_deliverability_campaign_response( let mut output = crate::output::get_domain_deliverability_campaign_output::Builder::default(); let _ = response; - output = crate::json_deser::get_domain_deliverability_campaign_deser_operation( + output = crate::json_deser::deser_operation_get_domain_deliverability_campaign( response.body().as_ref(), output, ) @@ -2694,33 +2719,39 @@ pub fn parse_get_domain_statistics_report_error( Err(match error_code { "BadRequestException" => crate::error::GetDomainStatisticsReportError { meta: generic, - kind: crate::error::GetDomainStatisticsReportErrorKind::BadRequestError({ + kind: crate::error::GetDomainStatisticsReportErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainStatisticsReportError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainStatisticsReportError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetDomainStatisticsReportError { meta: generic, - kind: crate::error::GetDomainStatisticsReportErrorKind::NotFoundError({ + kind: crate::error::GetDomainStatisticsReportErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetDomainStatisticsReportError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDomainStatisticsReportError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetDomainStatisticsReportError { meta: generic, - kind: crate::error::GetDomainStatisticsReportErrorKind::TooManyRequestsError({ + kind: crate::error::GetDomainStatisticsReportErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2743,7 +2774,7 @@ pub fn parse_get_domain_statistics_report_response( #[allow(unused_mut)] let mut output = crate::output::get_domain_statistics_report_output::Builder::default(); let _ = response; - output = crate::json_deser::get_domain_statistics_report_deser_operation( + output = crate::json_deser::deser_operation_get_domain_statistics_report( response.body().as_ref(), output, ) @@ -2766,33 +2797,39 @@ pub fn parse_get_email_identity_error( Err(match error_code { "BadRequestException" => crate::error::GetEmailIdentityError { meta: generic, - kind: crate::error::GetEmailIdentityErrorKind::BadRequestError({ + kind: crate::error::GetEmailIdentityErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailIdentityError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetEmailIdentityError { meta: generic, - kind: crate::error::GetEmailIdentityErrorKind::NotFoundError({ + kind: crate::error::GetEmailIdentityErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailIdentityError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailIdentityError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetEmailIdentityError { meta: generic, - kind: crate::error::GetEmailIdentityErrorKind::TooManyRequestsError({ + kind: crate::error::GetEmailIdentityErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2814,7 +2851,7 @@ pub fn parse_get_email_identity_response( let mut output = crate::output::get_email_identity_output::Builder::default(); let _ = response; output = - crate::json_deser::get_email_identity_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_email_identity(response.body().as_ref(), output) .map_err(crate::error::GetEmailIdentityError::unhandled)?; output.build() }) @@ -2840,33 +2877,39 @@ pub fn parse_get_email_identity_policies_error( Err(match error_code { "BadRequestException" => crate::error::GetEmailIdentityPoliciesError { meta: generic, - kind: crate::error::GetEmailIdentityPoliciesErrorKind::BadRequestError({ + kind: crate::error::GetEmailIdentityPoliciesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailIdentityPoliciesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailIdentityPoliciesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetEmailIdentityPoliciesError { meta: generic, - kind: crate::error::GetEmailIdentityPoliciesErrorKind::NotFoundError({ + kind: crate::error::GetEmailIdentityPoliciesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailIdentityPoliciesError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailIdentityPoliciesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetEmailIdentityPoliciesError { meta: generic, - kind: crate::error::GetEmailIdentityPoliciesErrorKind::TooManyRequestsError({ + kind: crate::error::GetEmailIdentityPoliciesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2889,7 +2932,7 @@ pub fn parse_get_email_identity_policies_response( #[allow(unused_mut)] let mut output = crate::output::get_email_identity_policies_output::Builder::default(); let _ = response; - output = crate::json_deser::get_email_identity_policies_deser_operation( + output = crate::json_deser::deser_operation_get_email_identity_policies( response.body().as_ref(), output, ) @@ -2912,33 +2955,39 @@ pub fn parse_get_email_template_error( Err(match error_code { "BadRequestException" => crate::error::GetEmailTemplateError { meta: generic, - kind: crate::error::GetEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::GetEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetEmailTemplateError { meta: generic, - kind: crate::error::GetEmailTemplateErrorKind::NotFoundError({ + kind: crate::error::GetEmailTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetEmailTemplateError { meta: generic, - kind: crate::error::GetEmailTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::GetEmailTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -2960,7 +3009,7 @@ pub fn parse_get_email_template_response( let mut output = crate::output::get_email_template_output::Builder::default(); let _ = response; output = - crate::json_deser::get_email_template_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_email_template(response.body().as_ref(), output) .map_err(crate::error::GetEmailTemplateError::unhandled)?; output.build() }) @@ -2979,33 +3028,39 @@ pub fn parse_get_import_job_error( Err(match error_code { "BadRequestException" => crate::error::GetImportJobError { meta: generic, - kind: crate::error::GetImportJobErrorKind::BadRequestError({ + kind: crate::error::GetImportJobErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetImportJobError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetImportJobError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetImportJobError { meta: generic, - kind: crate::error::GetImportJobErrorKind::NotFoundError({ + kind: crate::error::GetImportJobErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetImportJobError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetImportJobError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetImportJobError { meta: generic, - kind: crate::error::GetImportJobErrorKind::TooManyRequestsError({ + kind: crate::error::GetImportJobErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3026,7 +3081,7 @@ pub fn parse_get_import_job_response( let mut output = crate::output::get_import_job_output::Builder::default(); let _ = response; output = - crate::json_deser::get_import_job_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_get_import_job(response.body().as_ref(), output) .map_err(crate::error::GetImportJobError::unhandled)?; output.build() }) @@ -3052,33 +3107,39 @@ pub fn parse_get_suppressed_destination_error( Err(match error_code { "BadRequestException" => crate::error::GetSuppressedDestinationError { meta: generic, - kind: crate::error::GetSuppressedDestinationErrorKind::BadRequestError({ + kind: crate::error::GetSuppressedDestinationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSuppressedDestinationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSuppressedDestinationError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::GetSuppressedDestinationError { meta: generic, - kind: crate::error::GetSuppressedDestinationErrorKind::NotFoundError({ + kind: crate::error::GetSuppressedDestinationErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::GetSuppressedDestinationError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetSuppressedDestinationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::GetSuppressedDestinationError { meta: generic, - kind: crate::error::GetSuppressedDestinationErrorKind::TooManyRequestsError({ + kind: crate::error::GetSuppressedDestinationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3101,7 +3162,7 @@ pub fn parse_get_suppressed_destination_response( #[allow(unused_mut)] let mut output = crate::output::get_suppressed_destination_output::Builder::default(); let _ = response; - output = crate::json_deser::get_suppressed_destination_deser_operation( + output = crate::json_deser::deser_operation_get_suppressed_destination( response.body().as_ref(), output, ) @@ -3126,22 +3187,25 @@ pub fn parse_list_configuration_sets_error( Err(match error_code { "BadRequestException" => crate::error::ListConfigurationSetsError { meta: generic, - kind: crate::error::ListConfigurationSetsErrorKind::BadRequestError({ + kind: crate::error::ListConfigurationSetsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListConfigurationSetsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListConfigurationSetsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListConfigurationSetsError { meta: generic, - kind: crate::error::ListConfigurationSetsErrorKind::TooManyRequestsError({ + kind: crate::error::ListConfigurationSetsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3164,7 +3228,7 @@ pub fn parse_list_configuration_sets_response( #[allow(unused_mut)] let mut output = crate::output::list_configuration_sets_output::Builder::default(); let _ = response; - output = crate::json_deser::list_configuration_sets_deser_operation( + output = crate::json_deser::deser_operation_list_configuration_sets( response.body().as_ref(), output, ) @@ -3187,22 +3251,25 @@ pub fn parse_list_contact_lists_error( Err(match error_code { "BadRequestException" => crate::error::ListContactListsError { meta: generic, - kind: crate::error::ListContactListsErrorKind::BadRequestError({ + kind: crate::error::ListContactListsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListContactListsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContactListsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListContactListsError { meta: generic, - kind: crate::error::ListContactListsErrorKind::TooManyRequestsError({ + kind: crate::error::ListContactListsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3224,7 +3291,7 @@ pub fn parse_list_contact_lists_response( let mut output = crate::output::list_contact_lists_output::Builder::default(); let _ = response; output = - crate::json_deser::list_contact_lists_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_contact_lists(response.body().as_ref(), output) .map_err(crate::error::ListContactListsError::unhandled)?; output.build() }) @@ -3243,33 +3310,39 @@ pub fn parse_list_contacts_error( Err(match error_code { "BadRequestException" => crate::error::ListContactsError { meta: generic, - kind: crate::error::ListContactsErrorKind::BadRequestError({ + kind: crate::error::ListContactsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListContactsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContactsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListContactsError { meta: generic, - kind: crate::error::ListContactsErrorKind::NotFoundError({ + kind: crate::error::ListContactsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListContactsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListContactsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListContactsError { meta: generic, - kind: crate::error::ListContactsErrorKind::TooManyRequestsError({ + kind: crate::error::ListContactsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3289,7 +3362,7 @@ pub fn parse_list_contacts_response( #[allow(unused_mut)] let mut output = crate::output::list_contacts_output::Builder::default(); let _ = response; - output = crate::json_deser::list_contacts_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_list_contacts(response.body().as_ref(), output) .map_err(crate::error::ListContactsError::unhandled)?; output.build() }) @@ -3311,34 +3384,19 @@ pub fn parse_list_custom_verification_email_templates_error( } }; Err(match error_code { - "BadRequestException" => crate::error::ListCustomVerificationEmailTemplatesError { - meta: generic, - kind: crate::error::ListCustomVerificationEmailTemplatesErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListCustomVerificationEmailTemplatesError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::ListCustomVerificationEmailTemplatesError { - meta: generic, - kind: crate::error::ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListCustomVerificationEmailTemplatesError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::ListCustomVerificationEmailTemplatesError::generic(generic), + "BadRequestException" => crate::error::ListCustomVerificationEmailTemplatesError { meta: generic, kind: crate::error::ListCustomVerificationEmailTemplatesErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListCustomVerificationEmailTemplatesError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::ListCustomVerificationEmailTemplatesError { meta: generic, kind: crate::error::ListCustomVerificationEmailTemplatesErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListCustomVerificationEmailTemplatesError::unhandled)?; + output.build() + })}, + _ => crate::error::ListCustomVerificationEmailTemplatesError::generic(generic) }) } @@ -3354,7 +3412,7 @@ pub fn parse_list_custom_verification_email_templates_response( let mut output = crate::output::list_custom_verification_email_templates_output::Builder::default(); let _ = response; - output = crate::json_deser::list_custom_verification_email_templates_deser_operation( + output = crate::json_deser::deser_operation_list_custom_verification_email_templates( response.body().as_ref(), output, ) @@ -3379,22 +3437,25 @@ pub fn parse_list_dedicated_ip_pools_error( Err(match error_code { "BadRequestException" => crate::error::ListDedicatedIpPoolsError { meta: generic, - kind: crate::error::ListDedicatedIpPoolsErrorKind::BadRequestError({ + kind: crate::error::ListDedicatedIpPoolsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListDedicatedIpPoolsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDedicatedIpPoolsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListDedicatedIpPoolsError { meta: generic, - kind: crate::error::ListDedicatedIpPoolsErrorKind::TooManyRequestsError({ + kind: crate::error::ListDedicatedIpPoolsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3417,7 +3478,7 @@ pub fn parse_list_dedicated_ip_pools_response( #[allow(unused_mut)] let mut output = crate::output::list_dedicated_ip_pools_output::Builder::default(); let _ = response; - output = crate::json_deser::list_dedicated_ip_pools_deser_operation( + output = crate::json_deser::deser_operation_list_dedicated_ip_pools( response.body().as_ref(), output, ) @@ -3446,33 +3507,39 @@ pub fn parse_list_deliverability_test_reports_error( Err(match error_code { "BadRequestException" => crate::error::ListDeliverabilityTestReportsError { meta: generic, - kind: crate::error::ListDeliverabilityTestReportsErrorKind::BadRequestError({ + kind: crate::error::ListDeliverabilityTestReportsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListDeliverabilityTestReportsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDeliverabilityTestReportsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListDeliverabilityTestReportsError { meta: generic, - kind: crate::error::ListDeliverabilityTestReportsErrorKind::NotFoundError({ + kind: crate::error::ListDeliverabilityTestReportsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListDeliverabilityTestReportsError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDeliverabilityTestReportsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListDeliverabilityTestReportsError { meta: generic, - kind: crate::error::ListDeliverabilityTestReportsErrorKind::TooManyRequestsError({ + kind: crate::error::ListDeliverabilityTestReportsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3495,7 +3562,7 @@ pub fn parse_list_deliverability_test_reports_response( #[allow(unused_mut)] let mut output = crate::output::list_deliverability_test_reports_output::Builder::default(); let _ = response; - output = crate::json_deser::list_deliverability_test_reports_deser_operation( + output = crate::json_deser::deser_operation_list_deliverability_test_reports( response.body().as_ref(), output, ) @@ -3522,34 +3589,25 @@ pub fn parse_list_domain_deliverability_campaigns_error( Err(match error_code { "BadRequestException" => crate::error::ListDomainDeliverabilityCampaignsError { meta: generic, - kind: crate::error::ListDomainDeliverabilityCampaignsErrorKind::BadRequestError({ + kind: crate::error::ListDomainDeliverabilityCampaignsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListDomainDeliverabilityCampaignsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDomainDeliverabilityCampaignsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListDomainDeliverabilityCampaignsError { meta: generic, - kind: crate::error::ListDomainDeliverabilityCampaignsErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = - crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListDomainDeliverabilityCampaignsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::ListDomainDeliverabilityCampaignsError { - meta: generic, - kind: crate::error::ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsError({ + kind: crate::error::ListDomainDeliverabilityCampaignsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -3557,6 +3615,27 @@ pub fn parse_list_domain_deliverability_campaigns_error( output.build() }), }, + "TooManyRequestsException" => crate::error::ListDomainDeliverabilityCampaignsError { + meta: generic, + kind: + crate::error::ListDomainDeliverabilityCampaignsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::ListDomainDeliverabilityCampaignsError::unhandled, + )?; + output.build() + }, + ), + }, _ => crate::error::ListDomainDeliverabilityCampaignsError::generic(generic), }) } @@ -3573,7 +3652,7 @@ pub fn parse_list_domain_deliverability_campaigns_response( let mut output = crate::output::list_domain_deliverability_campaigns_output::Builder::default(); let _ = response; - output = crate::json_deser::list_domain_deliverability_campaigns_deser_operation( + output = crate::json_deser::deser_operation_list_domain_deliverability_campaigns( response.body().as_ref(), output, ) @@ -3598,22 +3677,25 @@ pub fn parse_list_email_identities_error( Err(match error_code { "BadRequestException" => crate::error::ListEmailIdentitiesError { meta: generic, - kind: crate::error::ListEmailIdentitiesErrorKind::BadRequestError({ + kind: crate::error::ListEmailIdentitiesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListEmailIdentitiesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListEmailIdentitiesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListEmailIdentitiesError { meta: generic, - kind: crate::error::ListEmailIdentitiesErrorKind::TooManyRequestsError({ + kind: crate::error::ListEmailIdentitiesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3636,7 +3718,7 @@ pub fn parse_list_email_identities_response( #[allow(unused_mut)] let mut output = crate::output::list_email_identities_output::Builder::default(); let _ = response; - output = crate::json_deser::list_email_identities_deser_operation( + output = crate::json_deser::deser_operation_list_email_identities( response.body().as_ref(), output, ) @@ -3661,22 +3743,25 @@ pub fn parse_list_email_templates_error( Err(match error_code { "BadRequestException" => crate::error::ListEmailTemplatesError { meta: generic, - kind: crate::error::ListEmailTemplatesErrorKind::BadRequestError({ + kind: crate::error::ListEmailTemplatesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListEmailTemplatesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListEmailTemplatesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListEmailTemplatesError { meta: generic, - kind: crate::error::ListEmailTemplatesErrorKind::TooManyRequestsError({ + kind: crate::error::ListEmailTemplatesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3699,7 +3784,7 @@ pub fn parse_list_email_templates_response( #[allow(unused_mut)] let mut output = crate::output::list_email_templates_output::Builder::default(); let _ = response; - output = crate::json_deser::list_email_templates_deser_operation( + output = crate::json_deser::deser_operation_list_email_templates( response.body().as_ref(), output, ) @@ -3721,22 +3806,25 @@ pub fn parse_list_import_jobs_error( Err(match error_code { "BadRequestException" => crate::error::ListImportJobsError { meta: generic, - kind: crate::error::ListImportJobsErrorKind::BadRequestError({ + kind: crate::error::ListImportJobsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListImportJobsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListImportJobsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListImportJobsError { meta: generic, - kind: crate::error::ListImportJobsErrorKind::TooManyRequestsError({ + kind: crate::error::ListImportJobsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3757,7 +3845,7 @@ pub fn parse_list_import_jobs_response( let mut output = crate::output::list_import_jobs_output::Builder::default(); let _ = response; output = - crate::json_deser::list_import_jobs_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_list_import_jobs(response.body().as_ref(), output) .map_err(crate::error::ListImportJobsError::unhandled)?; output.build() }) @@ -3783,22 +3871,25 @@ pub fn parse_list_suppressed_destinations_error( Err(match error_code { "BadRequestException" => crate::error::ListSuppressedDestinationsError { meta: generic, - kind: crate::error::ListSuppressedDestinationsErrorKind::BadRequestError({ + kind: crate::error::ListSuppressedDestinationsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListSuppressedDestinationsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListSuppressedDestinationsError::unhandled)?; output.build() }), }, "InvalidNextTokenException" => crate::error::ListSuppressedDestinationsError { meta: generic, - kind: crate::error::ListSuppressedDestinationsErrorKind::InvalidNextTokenError({ + kind: crate::error::ListSuppressedDestinationsErrorKind::InvalidNextTokenException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_next_token_error::Builder::default(); + let mut output = crate::error::invalid_next_token_exception::Builder::default(); let _ = response; - output = crate::json_deser::invalid_next_token_exception( + output = crate::json_deser::deser_structure_invalid_next_token_exceptionjson_err( response.body().as_ref(), output, ) @@ -3808,11 +3899,11 @@ pub fn parse_list_suppressed_destinations_error( }, "TooManyRequestsException" => crate::error::ListSuppressedDestinationsError { meta: generic, - kind: crate::error::ListSuppressedDestinationsErrorKind::TooManyRequestsError({ + kind: crate::error::ListSuppressedDestinationsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3835,7 +3926,7 @@ pub fn parse_list_suppressed_destinations_response( #[allow(unused_mut)] let mut output = crate::output::list_suppressed_destinations_output::Builder::default(); let _ = response; - output = crate::json_deser::list_suppressed_destinations_deser_operation( + output = crate::json_deser::deser_operation_list_suppressed_destinations( response.body().as_ref(), output, ) @@ -3860,33 +3951,39 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "BadRequestException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::BadRequestError({ + kind: crate::error::ListTagsForResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::NotFoundError({ + kind: crate::error::ListTagsForResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::TooManyRequestsError({ + kind: crate::error::ListTagsForResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -3909,7 +4006,7 @@ pub fn parse_list_tags_for_resource_response( #[allow(unused_mut)] let mut output = crate::output::list_tags_for_resource_output::Builder::default(); let _ = response; - output = crate::json_deser::list_tags_for_resource_deser_operation( + output = crate::json_deser::deser_operation_list_tags_for_resource( response.body().as_ref(), output, ) @@ -3936,37 +4033,19 @@ pub fn parse_put_account_dedicated_ip_warmup_attributes_error( } }; Err(match error_code { - "BadRequestException" => crate::error::PutAccountDedicatedIpWarmupAttributesError { - meta: generic, - kind: crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutAccountDedicatedIpWarmupAttributesError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutAccountDedicatedIpWarmupAttributesError { - meta: generic, - kind: - crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::PutAccountDedicatedIpWarmupAttributesError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::PutAccountDedicatedIpWarmupAttributesError::generic(generic), + "BadRequestException" => crate::error::PutAccountDedicatedIpWarmupAttributesError { meta: generic, kind: crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutAccountDedicatedIpWarmupAttributesError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutAccountDedicatedIpWarmupAttributesError { meta: generic, kind: crate::error::PutAccountDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutAccountDedicatedIpWarmupAttributesError::unhandled)?; + output.build() + })}, + _ => crate::error::PutAccountDedicatedIpWarmupAttributesError::generic(generic) }) } @@ -4000,33 +4079,39 @@ pub fn parse_put_account_details_error( Err(match error_code { "BadRequestException" => crate::error::PutAccountDetailsError { meta: generic, - kind: crate::error::PutAccountDetailsErrorKind::BadRequestError({ + kind: crate::error::PutAccountDetailsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutAccountDetailsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountDetailsError::unhandled)?; output.build() }), }, "ConflictException" => crate::error::PutAccountDetailsError { meta: generic, - kind: crate::error::PutAccountDetailsErrorKind::ConflictError({ + kind: crate::error::PutAccountDetailsErrorKind::ConflictException({ #[allow(unused_mut)] - let mut output = crate::error::conflict_error::Builder::default(); + let mut output = crate::error::conflict_exception::Builder::default(); let _ = response; - output = crate::json_deser::conflict_exception(response.body().as_ref(), output) - .map_err(crate::error::PutAccountDetailsError::unhandled)?; + output = crate::json_deser::deser_structure_conflict_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountDetailsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutAccountDetailsError { meta: generic, - kind: crate::error::PutAccountDetailsErrorKind::TooManyRequestsError({ + kind: crate::error::PutAccountDetailsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4071,22 +4156,25 @@ pub fn parse_put_account_sending_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutAccountSendingAttributesError { meta: generic, - kind: crate::error::PutAccountSendingAttributesErrorKind::BadRequestError({ + kind: crate::error::PutAccountSendingAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutAccountSendingAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutAccountSendingAttributesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutAccountSendingAttributesError { meta: generic, - kind: crate::error::PutAccountSendingAttributesErrorKind::TooManyRequestsError({ + kind: crate::error::PutAccountSendingAttributesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4129,22 +4217,11 @@ pub fn parse_put_account_suppression_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutAccountSuppressionAttributesError { meta: generic, - kind: crate::error::PutAccountSuppressionAttributesErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutAccountSuppressionAttributesError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutAccountSuppressionAttributesError { - meta: generic, - kind: crate::error::PutAccountSuppressionAttributesErrorKind::TooManyRequestsError({ + kind: crate::error::PutAccountSuppressionAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -4152,6 +4229,22 @@ pub fn parse_put_account_suppression_attributes_error( output.build() }), }, + "TooManyRequestsException" => { + crate::error::PutAccountSuppressionAttributesError { + meta: generic, + kind: + crate::error::PutAccountSuppressionAttributesErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutAccountSuppressionAttributesError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::PutAccountSuppressionAttributesError::generic(generic), }) } @@ -4190,43 +4283,52 @@ pub fn parse_put_configuration_set_delivery_options_error( Err(match error_code { "BadRequestException" => crate::error::PutConfigurationSetDeliveryOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetDeliveryOptionsErrorKind::BadRequestError({ + kind: crate::error::PutConfigurationSetDeliveryOptionsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetDeliveryOptionsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutConfigurationSetDeliveryOptionsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutConfigurationSetDeliveryOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetDeliveryOptionsErrorKind::NotFoundError({ + kind: crate::error::PutConfigurationSetDeliveryOptionsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutConfigurationSetDeliveryOptionsError::unhandled, - )?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutConfigurationSetDeliveryOptionsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutConfigurationSetDeliveryOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutConfigurationSetDeliveryOptionsError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::PutConfigurationSetDeliveryOptionsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::PutConfigurationSetDeliveryOptionsError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::PutConfigurationSetDeliveryOptionsError::generic(generic), }) @@ -4264,47 +4366,25 @@ pub fn parse_put_configuration_set_reputation_options_error( } }; Err(match error_code { - "BadRequestException" => crate::error::PutConfigurationSetReputationOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetReputationOptionsError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::PutConfigurationSetReputationOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutConfigurationSetReputationOptionsError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutConfigurationSetReputationOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutConfigurationSetReputationOptionsError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::PutConfigurationSetReputationOptionsError::generic(generic), + "BadRequestException" => crate::error::PutConfigurationSetReputationOptionsError { meta: generic, kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetReputationOptionsError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::PutConfigurationSetReputationOptionsError { meta: generic, kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetReputationOptionsError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutConfigurationSetReputationOptionsError { meta: generic, kind: crate::error::PutConfigurationSetReputationOptionsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetReputationOptionsError::unhandled)?; + output.build() + })}, + _ => crate::error::PutConfigurationSetReputationOptionsError::generic(generic) }) } @@ -4342,34 +4422,25 @@ pub fn parse_put_configuration_set_sending_options_error( Err(match error_code { "BadRequestException" => crate::error::PutConfigurationSetSendingOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetSendingOptionsErrorKind::BadRequestError({ + kind: crate::error::PutConfigurationSetSendingOptionsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetSendingOptionsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutConfigurationSetSendingOptionsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutConfigurationSetSendingOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetSendingOptionsErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = - crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetSendingOptionsError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutConfigurationSetSendingOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsError({ + kind: crate::error::PutConfigurationSetSendingOptionsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4377,6 +4448,27 @@ pub fn parse_put_configuration_set_sending_options_error( output.build() }), }, + "TooManyRequestsException" => crate::error::PutConfigurationSetSendingOptionsError { + meta: generic, + kind: + crate::error::PutConfigurationSetSendingOptionsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::PutConfigurationSetSendingOptionsError::unhandled, + )?; + output.build() + }, + ), + }, _ => crate::error::PutConfigurationSetSendingOptionsError::generic(generic), }) } @@ -4415,50 +4507,25 @@ pub fn parse_put_configuration_set_suppression_options_error( } }; Err(match error_code { - "BadRequestException" => crate::error::PutConfigurationSetSuppressionOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetSuppressionOptionsErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetSuppressionOptionsError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::PutConfigurationSetSuppressionOptionsError { - meta: generic, - kind: crate::error::PutConfigurationSetSuppressionOptionsErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutConfigurationSetSuppressionOptionsError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutConfigurationSetSuppressionOptionsError { - meta: generic, - kind: - crate::error::PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::PutConfigurationSetSuppressionOptionsError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::PutConfigurationSetSuppressionOptionsError::generic(generic), + "BadRequestException" => crate::error::PutConfigurationSetSuppressionOptionsError { meta: generic, kind: crate::error::PutConfigurationSetSuppressionOptionsErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetSuppressionOptionsError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::PutConfigurationSetSuppressionOptionsError { meta: generic, kind: crate::error::PutConfigurationSetSuppressionOptionsErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetSuppressionOptionsError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutConfigurationSetSuppressionOptionsError { meta: generic, kind: crate::error::PutConfigurationSetSuppressionOptionsErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutConfigurationSetSuppressionOptionsError::unhandled)?; + output.build() + })}, + _ => crate::error::PutConfigurationSetSuppressionOptionsError::generic(generic) }) } @@ -4496,43 +4563,52 @@ pub fn parse_put_configuration_set_tracking_options_error( Err(match error_code { "BadRequestException" => crate::error::PutConfigurationSetTrackingOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetTrackingOptionsErrorKind::BadRequestError({ + kind: crate::error::PutConfigurationSetTrackingOptionsErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutConfigurationSetTrackingOptionsError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutConfigurationSetTrackingOptionsError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutConfigurationSetTrackingOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetTrackingOptionsErrorKind::NotFoundError({ + kind: crate::error::PutConfigurationSetTrackingOptionsErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutConfigurationSetTrackingOptionsError::unhandled, - )?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutConfigurationSetTrackingOptionsError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutConfigurationSetTrackingOptionsError { meta: generic, - kind: crate::error::PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutConfigurationSetTrackingOptionsError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::PutConfigurationSetTrackingOptionsErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::PutConfigurationSetTrackingOptionsError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::PutConfigurationSetTrackingOptionsError::generic(generic), }) @@ -4570,33 +4646,39 @@ pub fn parse_put_dedicated_ip_in_pool_error( Err(match error_code { "BadRequestException" => crate::error::PutDedicatedIpInPoolError { meta: generic, - kind: crate::error::PutDedicatedIpInPoolErrorKind::BadRequestError({ + kind: crate::error::PutDedicatedIpInPoolErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDedicatedIpInPoolError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDedicatedIpInPoolError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutDedicatedIpInPoolError { meta: generic, - kind: crate::error::PutDedicatedIpInPoolErrorKind::NotFoundError({ + kind: crate::error::PutDedicatedIpInPoolErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDedicatedIpInPoolError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDedicatedIpInPoolError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutDedicatedIpInPoolError { meta: generic, - kind: crate::error::PutDedicatedIpInPoolErrorKind::TooManyRequestsError({ + kind: crate::error::PutDedicatedIpInPoolErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -4639,33 +4721,25 @@ pub fn parse_put_dedicated_ip_warmup_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutDedicatedIpWarmupAttributesError { meta: generic, - kind: crate::error::PutDedicatedIpWarmupAttributesErrorKind::BadRequestError({ + kind: crate::error::PutDedicatedIpWarmupAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDedicatedIpWarmupAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDedicatedIpWarmupAttributesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutDedicatedIpWarmupAttributesError { meta: generic, - kind: crate::error::PutDedicatedIpWarmupAttributesErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDedicatedIpWarmupAttributesError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutDedicatedIpWarmupAttributesError { - meta: generic, - kind: crate::error::PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsError({ + kind: crate::error::PutDedicatedIpWarmupAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4673,6 +4747,22 @@ pub fn parse_put_dedicated_ip_warmup_attributes_error( output.build() }), }, + "TooManyRequestsException" => { + crate::error::PutDedicatedIpWarmupAttributesError { + meta: generic, + kind: + crate::error::PutDedicatedIpWarmupAttributesErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutDedicatedIpWarmupAttributesError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::PutDedicatedIpWarmupAttributesError::generic(generic), }) } @@ -4709,59 +4799,59 @@ pub fn parse_put_deliverability_dashboard_option_error( } }; Err(match error_code { - "AlreadyExistsException" => crate::error::PutDeliverabilityDashboardOptionError { - meta: generic, - kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsError({ - #[allow(unused_mut)] - let mut output = crate::error::already_exists_error::Builder::default(); - let _ = response; - output = - crate::json_deser::already_exists_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; - output.build() - }), - }, + "AlreadyExistsException" => { + crate::error::PutDeliverabilityDashboardOptionError { + meta: generic, + kind: + crate::error::PutDeliverabilityDashboardOptionErrorKind::AlreadyExistsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; + output.build() + }, + ), + } + } "BadRequestException" => crate::error::PutDeliverabilityDashboardOptionError { meta: generic, - kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; - output.build() - }), - }, - "LimitExceededException" => crate::error::PutDeliverabilityDashboardOptionError { - meta: generic, - kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::LimitExceededError({ + kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; output.build() }), }, + "LimitExceededException" => { + crate::error::PutDeliverabilityDashboardOptionError { + meta: generic, + kind: + crate::error::PutDeliverabilityDashboardOptionErrorKind::LimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; + output.build() + }, + ), + } + } "NotFoundException" => crate::error::PutDeliverabilityDashboardOptionError { meta: generic, - kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::NotFoundError({ + kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutDeliverabilityDashboardOptionError { - meta: generic, - kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4769,6 +4859,23 @@ pub fn parse_put_deliverability_dashboard_option_error( output.build() }), }, + "TooManyRequestsException" => crate::error::PutDeliverabilityDashboardOptionError { + meta: generic, + kind: crate::error::PutDeliverabilityDashboardOptionErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutDeliverabilityDashboardOptionError::unhandled)?; + output.build() + }, + ), + }, _ => crate::error::PutDeliverabilityDashboardOptionError::generic(generic), }) } @@ -4807,22 +4914,22 @@ pub fn parse_put_email_identity_configuration_set_attributes_error( } }; Err(match error_code { - "BadRequestException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestError({ - #[allow(unused_mut)]let mut output = crate::error::bad_request_error::Builder::default(); + "BadRequestException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; output.build() })}, - "NotFoundException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundError({ - #[allow(unused_mut)]let mut output = crate::error::not_found_error::Builder::default(); + "NotFoundException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; output.build() })}, - "TooManyRequestsException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsError({ - #[allow(unused_mut)]let mut output = crate::error::too_many_requests_error::Builder::default(); + "TooManyRequestsException" => crate::error::PutEmailIdentityConfigurationSetAttributesError { meta: generic, kind: crate::error::PutEmailIdentityConfigurationSetAttributesErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityConfigurationSetAttributesError::unhandled)?; output.build() })}, _ => crate::error::PutEmailIdentityConfigurationSetAttributesError::generic(generic) @@ -4862,33 +4969,25 @@ pub fn parse_put_email_identity_dkim_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutEmailIdentityDkimAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityDkimAttributesErrorKind::BadRequestError({ + kind: crate::error::PutEmailIdentityDkimAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutEmailIdentityDkimAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutEmailIdentityDkimAttributesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutEmailIdentityDkimAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityDkimAttributesErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::PutEmailIdentityDkimAttributesError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutEmailIdentityDkimAttributesError { - meta: generic, - kind: crate::error::PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsError({ + kind: crate::error::PutEmailIdentityDkimAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( response.body().as_ref(), output, ) @@ -4896,6 +4995,22 @@ pub fn parse_put_email_identity_dkim_attributes_error( output.build() }), }, + "TooManyRequestsException" => { + crate::error::PutEmailIdentityDkimAttributesError { + meta: generic, + kind: + crate::error::PutEmailIdentityDkimAttributesErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityDkimAttributesError::unhandled)?; + output.build() + }, + ), + } + } _ => crate::error::PutEmailIdentityDkimAttributesError::generic(generic), }) } @@ -4934,50 +5049,25 @@ pub fn parse_put_email_identity_dkim_signing_attributes_error( } }; Err(match error_code { - "BadRequestException" => crate::error::PutEmailIdentityDkimSigningAttributesError { - meta: generic, - kind: crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::PutEmailIdentityDkimSigningAttributesError { - meta: generic, - kind: crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::PutEmailIdentityDkimSigningAttributesError { - meta: generic, - kind: - crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::PutEmailIdentityDkimSigningAttributesError::generic(generic), + "BadRequestException" => crate::error::PutEmailIdentityDkimSigningAttributesError { meta: generic, kind: crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::PutEmailIdentityDkimSigningAttributesError { meta: generic, kind: crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::PutEmailIdentityDkimSigningAttributesError { meta: generic, kind: crate::error::PutEmailIdentityDkimSigningAttributesErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutEmailIdentityDkimSigningAttributesError::unhandled)?; + output.build() + })}, + _ => crate::error::PutEmailIdentityDkimSigningAttributesError::generic(generic) }) } @@ -4993,7 +5083,7 @@ pub fn parse_put_email_identity_dkim_signing_attributes_response( let mut output = crate::output::put_email_identity_dkim_signing_attributes_output::Builder::default(); let _ = response; - output = crate::json_deser::put_email_identity_dkim_signing_attributes_deser_operation( + output = crate::json_deser::deser_operation_put_email_identity_dkim_signing_attributes( response.body().as_ref(), output, ) @@ -5020,43 +5110,52 @@ pub fn parse_put_email_identity_feedback_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutEmailIdentityFeedbackAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityFeedbackAttributesErrorKind::BadRequestError({ + kind: crate::error::PutEmailIdentityFeedbackAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutEmailIdentityFeedbackAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutEmailIdentityFeedbackAttributesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutEmailIdentityFeedbackAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityFeedbackAttributesErrorKind::NotFoundError({ + kind: crate::error::PutEmailIdentityFeedbackAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutEmailIdentityFeedbackAttributesError::unhandled, - )?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutEmailIdentityFeedbackAttributesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutEmailIdentityFeedbackAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutEmailIdentityFeedbackAttributesError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::PutEmailIdentityFeedbackAttributesErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::PutEmailIdentityFeedbackAttributesError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::PutEmailIdentityFeedbackAttributesError::generic(generic), }) @@ -5096,43 +5195,52 @@ pub fn parse_put_email_identity_mail_from_attributes_error( Err(match error_code { "BadRequestException" => crate::error::PutEmailIdentityMailFromAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityMailFromAttributesErrorKind::BadRequestError({ + kind: crate::error::PutEmailIdentityMailFromAttributesErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutEmailIdentityMailFromAttributesError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutEmailIdentityMailFromAttributesError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::PutEmailIdentityMailFromAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityMailFromAttributesErrorKind::NotFoundError({ + kind: crate::error::PutEmailIdentityMailFromAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::PutEmailIdentityMailFromAttributesError::unhandled, - )?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutEmailIdentityMailFromAttributesError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutEmailIdentityMailFromAttributesError { meta: generic, - kind: crate::error::PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PutEmailIdentityMailFromAttributesError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::PutEmailIdentityMailFromAttributesErrorKind::TooManyRequestsException( + { + #[allow(unused_mut)] + let mut output = + crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::PutEmailIdentityMailFromAttributesError::unhandled, + )?; + output.build() + }, + ), }, _ => crate::error::PutEmailIdentityMailFromAttributesError::generic(generic), }) @@ -5174,22 +5282,25 @@ pub fn parse_put_suppressed_destination_error( Err(match error_code { "BadRequestException" => crate::error::PutSuppressedDestinationError { meta: generic, - kind: crate::error::PutSuppressedDestinationErrorKind::BadRequestError({ + kind: crate::error::PutSuppressedDestinationErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::PutSuppressedDestinationError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutSuppressedDestinationError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::PutSuppressedDestinationError { meta: generic, - kind: crate::error::PutSuppressedDestinationErrorKind::TooManyRequestsError({ + kind: crate::error::PutSuppressedDestinationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5229,11 +5340,11 @@ pub fn parse_send_bulk_email_error( Err(match error_code { "AccountSuspendedException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::AccountSuspendedError({ + kind: crate::error::SendBulkEmailErrorKind::AccountSuspendedException({ #[allow(unused_mut)] - let mut output = crate::error::account_suspended_error::Builder::default(); + let mut output = crate::error::account_suspended_exception::Builder::default(); let _ = response; - output = crate::json_deser::account_suspended_exception( + output = crate::json_deser::deser_structure_account_suspended_exceptionjson_err( response.body().as_ref(), output, ) @@ -5243,39 +5354,40 @@ pub fn parse_send_bulk_email_error( }, "BadRequestException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::BadRequestError({ + kind: crate::error::SendBulkEmailErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::LimitExceededError({ + kind: crate::error::SendBulkEmailErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, "MailFromDomainNotVerifiedException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::MailFromDomainNotVerifiedError({ + kind: crate::error::SendBulkEmailErrorKind::MailFromDomainNotVerifiedException({ #[allow(unused_mut)] let mut output = - crate::error::mail_from_domain_not_verified_error::Builder::default(); + crate::error::mail_from_domain_not_verified_exception::Builder::default(); let _ = response; - output = crate::json_deser::mail_from_domain_not_verified_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_mail_from_domain_not_verified_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, @@ -5285,41 +5397,49 @@ pub fn parse_send_bulk_email_error( #[allow(unused_mut)] let mut output = crate::error::message_rejected::Builder::default(); let _ = response; - output = crate::json_deser::message_rejected(response.body().as_ref(), output) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_message_rejectedjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::NotFoundError({ + kind: crate::error::SendBulkEmailErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, "SendingPausedException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::SendingPausedError({ + kind: crate::error::SendBulkEmailErrorKind::SendingPausedException({ #[allow(unused_mut)] - let mut output = crate::error::sending_paused_error::Builder::default(); + let mut output = crate::error::sending_paused_exception::Builder::default(); let _ = response; - output = - crate::json_deser::sending_paused_exception(response.body().as_ref(), output) - .map_err(crate::error::SendBulkEmailError::unhandled)?; + output = crate::json_deser::deser_structure_sending_paused_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::SendBulkEmailError { meta: generic, - kind: crate::error::SendBulkEmailErrorKind::TooManyRequestsError({ + kind: crate::error::SendBulkEmailErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5340,7 +5460,7 @@ pub fn parse_send_bulk_email_response( let mut output = crate::output::send_bulk_email_output::Builder::default(); let _ = response; output = - crate::json_deser::send_bulk_email_deser_operation(response.body().as_ref(), output) + crate::json_deser::deser_operation_send_bulk_email(response.body().as_ref(), output) .map_err(crate::error::SendBulkEmailError::unhandled)?; output.build() }) @@ -5364,96 +5484,49 @@ pub fn parse_send_custom_verification_email_error( } }; Err(match error_code { - "BadRequestException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - "LimitExceededException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::LimitExceededError({ - #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); - let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - "MailFromDomainNotVerifiedException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: - crate::error::SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedError( - { - #[allow(unused_mut)] - let mut output = - crate::error::mail_from_domain_not_verified_error::Builder::default(); - let _ = response; - output = crate::json_deser::mail_from_domain_not_verified_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }, - ), - }, - "MessageRejected" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::MessageRejected({ - #[allow(unused_mut)] - let mut output = crate::error::message_rejected::Builder::default(); - let _ = response; - output = crate::json_deser::message_rejected(response.body().as_ref(), output) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - "SendingPausedException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::SendingPausedError({ - #[allow(unused_mut)] - let mut output = crate::error::sending_paused_error::Builder::default(); - let _ = response; - output = - crate::json_deser::sending_paused_exception(response.body().as_ref(), output) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::SendCustomVerificationEmailError { - meta: generic, - kind: crate::error::SendCustomVerificationEmailErrorKind::TooManyRequestsError({ - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; - output.build() - }), - }, - _ => crate::error::SendCustomVerificationEmailError::generic(generic), + "BadRequestException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "LimitExceededException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::LimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "MailFromDomainNotVerifiedException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::MailFromDomainNotVerifiedException({ + #[allow(unused_mut)]let mut output = crate::error::mail_from_domain_not_verified_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_mail_from_domain_not_verified_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "MessageRejected" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::MessageRejected({ + #[allow(unused_mut)]let mut output = crate::error::message_rejected::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_message_rejectedjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "SendingPausedException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::SendingPausedException({ + #[allow(unused_mut)]let mut output = crate::error::sending_paused_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_sending_paused_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::SendCustomVerificationEmailError { meta: generic, kind: crate::error::SendCustomVerificationEmailErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendCustomVerificationEmailError::unhandled)?; + output.build() + })}, + _ => crate::error::SendCustomVerificationEmailError::generic(generic) }) } @@ -5468,7 +5541,7 @@ pub fn parse_send_custom_verification_email_response( #[allow(unused_mut)] let mut output = crate::output::send_custom_verification_email_output::Builder::default(); let _ = response; - output = crate::json_deser::send_custom_verification_email_deser_operation( + output = crate::json_deser::deser_operation_send_custom_verification_email( response.body().as_ref(), output, ) @@ -5490,11 +5563,11 @@ pub fn parse_send_email_error( Err(match error_code { "AccountSuspendedException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::AccountSuspendedError({ + kind: crate::error::SendEmailErrorKind::AccountSuspendedException({ #[allow(unused_mut)] - let mut output = crate::error::account_suspended_error::Builder::default(); + let mut output = crate::error::account_suspended_exception::Builder::default(); let _ = response; - output = crate::json_deser::account_suspended_exception( + output = crate::json_deser::deser_structure_account_suspended_exceptionjson_err( response.body().as_ref(), output, ) @@ -5504,39 +5577,40 @@ pub fn parse_send_email_error( }, "BadRequestException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::BadRequestError({ + kind: crate::error::SendEmailErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, "LimitExceededException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::LimitExceededError({ + kind: crate::error::SendEmailErrorKind::LimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::limit_exceeded_error::Builder::default(); + let mut output = crate::error::limit_exceeded_exception::Builder::default(); let _ = response; - output = - crate::json_deser::limit_exceeded_exception(response.body().as_ref(), output) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_limit_exceeded_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, "MailFromDomainNotVerifiedException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::MailFromDomainNotVerifiedError({ + kind: crate::error::SendEmailErrorKind::MailFromDomainNotVerifiedException({ #[allow(unused_mut)] let mut output = - crate::error::mail_from_domain_not_verified_error::Builder::default(); + crate::error::mail_from_domain_not_verified_exception::Builder::default(); let _ = response; - output = crate::json_deser::mail_from_domain_not_verified_exception( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_mail_from_domain_not_verified_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, @@ -5546,41 +5620,49 @@ pub fn parse_send_email_error( #[allow(unused_mut)] let mut output = crate::error::message_rejected::Builder::default(); let _ = response; - output = crate::json_deser::message_rejected(response.body().as_ref(), output) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_message_rejectedjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::NotFoundError({ + kind: crate::error::SendEmailErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, "SendingPausedException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::SendingPausedError({ + kind: crate::error::SendEmailErrorKind::SendingPausedException({ #[allow(unused_mut)] - let mut output = crate::error::sending_paused_error::Builder::default(); + let mut output = crate::error::sending_paused_exception::Builder::default(); let _ = response; - output = - crate::json_deser::sending_paused_exception(response.body().as_ref(), output) - .map_err(crate::error::SendEmailError::unhandled)?; + output = crate::json_deser::deser_structure_sending_paused_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendEmailError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::SendEmailError { meta: generic, - kind: crate::error::SendEmailErrorKind::TooManyRequestsError({ + kind: crate::error::SendEmailErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5600,7 +5682,7 @@ pub fn parse_send_email_response( #[allow(unused_mut)] let mut output = crate::output::send_email_output::Builder::default(); let _ = response; - output = crate::json_deser::send_email_deser_operation(response.body().as_ref(), output) + output = crate::json_deser::deser_operation_send_email(response.body().as_ref(), output) .map_err(crate::error::SendEmailError::unhandled)?; output.build() }) @@ -5619,22 +5701,11 @@ pub fn parse_tag_resource_error( Err(match error_code { "BadRequestException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::TagResourceError { - meta: generic, - kind: crate::error::TagResourceErrorKind::ConcurrentModificationError({ + kind: crate::error::TagResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -5642,24 +5713,40 @@ pub fn parse_tag_resource_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::TagResourceError { + meta: generic, + kind: crate::error::TagResourceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; + output.build() + }), + } + } "NotFoundException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::NotFoundError({ + kind: crate::error::TagResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TagResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::TagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5703,33 +5790,39 @@ pub fn parse_test_render_email_template_error( Err(match error_code { "BadRequestException" => crate::error::TestRenderEmailTemplateError { meta: generic, - kind: crate::error::TestRenderEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::TestRenderEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::TestRenderEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestRenderEmailTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::TestRenderEmailTemplateError { meta: generic, - kind: crate::error::TestRenderEmailTemplateErrorKind::NotFoundError({ + kind: crate::error::TestRenderEmailTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::TestRenderEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TestRenderEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::TestRenderEmailTemplateError { meta: generic, - kind: crate::error::TestRenderEmailTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::TestRenderEmailTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5752,7 +5845,7 @@ pub fn parse_test_render_email_template_response( #[allow(unused_mut)] let mut output = crate::output::test_render_email_template_output::Builder::default(); let _ = response; - output = crate::json_deser::test_render_email_template_deser_operation( + output = crate::json_deser::deser_operation_test_render_email_template( response.body().as_ref(), output, ) @@ -5774,22 +5867,11 @@ pub fn parse_untag_resource_error( Err(match error_code { "BadRequestException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::UntagResourceError { - meta: generic, - kind: crate::error::UntagResourceErrorKind::ConcurrentModificationError({ + kind: crate::error::UntagResourceErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -5797,24 +5879,40 @@ pub fn parse_untag_resource_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::UntagResourceError { + meta: generic, + kind: crate::error::UntagResourceErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; + output.build() + }), + } + } "NotFoundException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::NotFoundError({ + kind: crate::error::UntagResourceErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UntagResourceError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::TooManyRequestsError({ + kind: crate::error::UntagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -5856,52 +5954,25 @@ pub fn parse_update_configuration_set_event_destination_error( } }; Err(match error_code { - "BadRequestException" => crate::error::UpdateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::UpdateConfigurationSetEventDestinationErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err( - crate::error::UpdateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "NotFoundException" => crate::error::UpdateConfigurationSetEventDestinationError { - meta: generic, - kind: crate::error::UpdateConfigurationSetEventDestinationErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::UpdateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::UpdateConfigurationSetEventDestinationError { - meta: generic, - kind: - crate::error::UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::UpdateConfigurationSetEventDestinationError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::UpdateConfigurationSetEventDestinationError::generic(generic), + "BadRequestException" => crate::error::UpdateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::UpdateConfigurationSetEventDestinationErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::UpdateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::UpdateConfigurationSetEventDestinationErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::UpdateConfigurationSetEventDestinationError { meta: generic, kind: crate::error::UpdateConfigurationSetEventDestinationErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateConfigurationSetEventDestinationError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateConfigurationSetEventDestinationError::generic(generic) }) } @@ -5934,22 +6005,11 @@ pub fn parse_update_contact_error( Err(match error_code { "BadRequestException" => crate::error::UpdateContactError { meta: generic, - kind: crate::error::UpdateContactErrorKind::BadRequestError({ + kind: crate::error::UpdateContactErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateContactError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::UpdateContactError { - meta: generic, - kind: crate::error::UpdateContactErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -5957,24 +6017,40 @@ pub fn parse_update_contact_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::UpdateContactError { + meta: generic, + kind: crate::error::UpdateContactErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContactError::unhandled)?; + output.build() + }), + } + } "NotFoundException" => crate::error::UpdateContactError { meta: generic, - kind: crate::error::UpdateContactErrorKind::NotFoundError({ + kind: crate::error::UpdateContactErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateContactError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContactError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateContactError { meta: generic, - kind: crate::error::UpdateContactErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateContactErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -6012,22 +6088,11 @@ pub fn parse_update_contact_list_error( Err(match error_code { "BadRequestException" => crate::error::UpdateContactListError { meta: generic, - kind: crate::error::UpdateContactListErrorKind::BadRequestError({ + kind: crate::error::UpdateContactListErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateContactListError::unhandled)?; - output.build() - }), - }, - "ConcurrentModificationException" => crate::error::UpdateContactListError { - meta: generic, - kind: crate::error::UpdateContactListErrorKind::ConcurrentModificationError({ - #[allow(unused_mut)] - let mut output = crate::error::concurrent_modification_error::Builder::default(); - let _ = response; - output = crate::json_deser::concurrent_modification_exception( + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( response.body().as_ref(), output, ) @@ -6035,24 +6100,40 @@ pub fn parse_update_contact_list_error( output.build() }), }, + "ConcurrentModificationException" => { + crate::error::UpdateContactListError { + meta: generic, + kind: crate::error::UpdateContactListErrorKind::ConcurrentModificationException({ + #[allow(unused_mut)] + let mut output = + crate::error::concurrent_modification_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_concurrent_modification_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateContactListError::unhandled)?; + output.build() + }), + } + } "NotFoundException" => crate::error::UpdateContactListError { meta: generic, - kind: crate::error::UpdateContactListErrorKind::NotFoundError({ + kind: crate::error::UpdateContactListErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateContactListError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateContactListError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateContactListError { meta: generic, - kind: crate::error::UpdateContactListErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateContactListErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -6095,50 +6176,25 @@ pub fn parse_update_custom_verification_email_template_error( } }; Err(match error_code { - "BadRequestException" => crate::error::UpdateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::UpdateCustomVerificationEmailTemplateErrorKind::BadRequestError({ - #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); - let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateCustomVerificationEmailTemplateError::unhandled)?; - output.build() - }), - }, - "NotFoundException" => crate::error::UpdateCustomVerificationEmailTemplateError { - meta: generic, - kind: crate::error::UpdateCustomVerificationEmailTemplateErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err( - crate::error::UpdateCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }), - }, - "TooManyRequestsException" => crate::error::UpdateCustomVerificationEmailTemplateError { - meta: generic, - kind: - crate::error::UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsError( - { - #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); - let _ = response; - output = crate::json_deser::too_many_requests_exception( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::UpdateCustomVerificationEmailTemplateError::unhandled, - )?; - output.build() - }, - ), - }, - _ => crate::error::UpdateCustomVerificationEmailTemplateError::generic(generic), + "BadRequestException" => crate::error::UpdateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::UpdateCustomVerificationEmailTemplateErrorKind::BadRequestException({ + #[allow(unused_mut)]let mut output = crate::error::bad_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::UpdateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::UpdateCustomVerificationEmailTemplateErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + "TooManyRequestsException" => crate::error::UpdateCustomVerificationEmailTemplateError { meta: generic, kind: crate::error::UpdateCustomVerificationEmailTemplateErrorKind::TooManyRequestsException({ + #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCustomVerificationEmailTemplateError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateCustomVerificationEmailTemplateError::generic(generic) }) } @@ -6178,33 +6234,39 @@ pub fn parse_update_email_identity_policy_error( Err(match error_code { "BadRequestException" => crate::error::UpdateEmailIdentityPolicyError { meta: generic, - kind: crate::error::UpdateEmailIdentityPolicyErrorKind::BadRequestError({ + kind: crate::error::UpdateEmailIdentityPolicyErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateEmailIdentityPolicyError { meta: generic, - kind: crate::error::UpdateEmailIdentityPolicyErrorKind::NotFoundError({ + kind: crate::error::UpdateEmailIdentityPolicyErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEmailIdentityPolicyError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEmailIdentityPolicyError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateEmailIdentityPolicyError { meta: generic, - kind: crate::error::UpdateEmailIdentityPolicyErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateEmailIdentityPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) @@ -6247,33 +6309,39 @@ pub fn parse_update_email_template_error( Err(match error_code { "BadRequestException" => crate::error::UpdateEmailTemplateError { meta: generic, - kind: crate::error::UpdateEmailTemplateErrorKind::BadRequestError({ + kind: crate::error::UpdateEmailTemplateErrorKind::BadRequestException({ #[allow(unused_mut)] - let mut output = crate::error::bad_request_error::Builder::default(); + let mut output = crate::error::bad_request_exception::Builder::default(); let _ = response; - output = crate::json_deser::bad_request_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_bad_request_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEmailTemplateError::unhandled)?; output.build() }), }, "NotFoundException" => crate::error::UpdateEmailTemplateError { meta: generic, - kind: crate::error::UpdateEmailTemplateErrorKind::NotFoundError({ + kind: crate::error::UpdateEmailTemplateErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::json_deser::not_found_exception(response.body().as_ref(), output) - .map_err(crate::error::UpdateEmailTemplateError::unhandled)?; + output = crate::json_deser::deser_structure_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateEmailTemplateError::unhandled)?; output.build() }), }, "TooManyRequestsException" => crate::error::UpdateEmailTemplateError { meta: generic, - kind: crate::error::UpdateEmailTemplateErrorKind::TooManyRequestsError({ + kind: crate::error::UpdateEmailTemplateErrorKind::TooManyRequestsException({ #[allow(unused_mut)] - let mut output = crate::error::too_many_requests_error::Builder::default(); + let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; - output = crate::json_deser::too_many_requests_exception( + output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) diff --git a/sdk/sesv2/src/operation_ser.rs b/sdk/sesv2/src/operation_ser.rs index 234949ba1fa2..9fe6b948d615 100644 --- a/sdk/sesv2/src/operation_ser.rs +++ b/sdk/sesv2/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_create_configuration_set( input: &crate::input::CreateConfigurationSetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_configuration_set_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_create_configuration_set( pub fn serialize_operation_create_configuration_set_event_destination( input: &crate::input::CreateConfigurationSetEventDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_configuration_set_event_destination_input( @@ -24,7 +24,7 @@ pub fn serialize_operation_create_configuration_set_event_destination( pub fn serialize_operation_create_contact( input: &crate::input::CreateContactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_contact_input(&mut object, input); @@ -34,7 +34,7 @@ pub fn serialize_operation_create_contact( pub fn serialize_operation_create_contact_list( input: &crate::input::CreateContactListInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_contact_list_input(&mut object, input); @@ -44,7 +44,7 @@ pub fn serialize_operation_create_contact_list( pub fn serialize_operation_create_custom_verification_email_template( input: &crate::input::CreateCustomVerificationEmailTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_custom_verification_email_template_input( @@ -57,7 +57,7 @@ pub fn serialize_operation_create_custom_verification_email_template( pub fn serialize_operation_create_dedicated_ip_pool( input: &crate::input::CreateDedicatedIpPoolInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_dedicated_ip_pool_input(&mut object, input); @@ -67,7 +67,7 @@ pub fn serialize_operation_create_dedicated_ip_pool( pub fn serialize_operation_create_deliverability_test_report( input: &crate::input::CreateDeliverabilityTestReportInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_deliverability_test_report_input( @@ -80,7 +80,7 @@ pub fn serialize_operation_create_deliverability_test_report( pub fn serialize_operation_create_email_identity( input: &crate::input::CreateEmailIdentityInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_email_identity_input(&mut object, input); @@ -90,7 +90,7 @@ pub fn serialize_operation_create_email_identity( pub fn serialize_operation_create_email_identity_policy( input: &crate::input::CreateEmailIdentityPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_email_identity_policy_input(&mut object, input); @@ -100,7 +100,7 @@ pub fn serialize_operation_create_email_identity_policy( pub fn serialize_operation_create_email_template( input: &crate::input::CreateEmailTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_email_template_input(&mut object, input); @@ -110,7 +110,7 @@ pub fn serialize_operation_create_email_template( pub fn serialize_operation_create_import_job( input: &crate::input::CreateImportJobInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_import_job_input(&mut object, input); @@ -120,7 +120,7 @@ pub fn serialize_operation_create_import_job( pub fn serialize_operation_list_contacts( input: &crate::input::ListContactsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_contacts_input(&mut object, input); @@ -130,7 +130,7 @@ pub fn serialize_operation_list_contacts( pub fn serialize_operation_list_import_jobs( input: &crate::input::ListImportJobsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_import_jobs_input(&mut object, input); @@ -140,7 +140,7 @@ pub fn serialize_operation_list_import_jobs( pub fn serialize_operation_put_account_dedicated_ip_warmup_attributes( input: &crate::input::PutAccountDedicatedIpWarmupAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_dedicated_ip_warmup_attributes_input( @@ -153,7 +153,7 @@ pub fn serialize_operation_put_account_dedicated_ip_warmup_attributes( pub fn serialize_operation_put_account_details( input: &crate::input::PutAccountDetailsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_details_input(&mut object, input); @@ -163,7 +163,7 @@ pub fn serialize_operation_put_account_details( pub fn serialize_operation_put_account_sending_attributes( input: &crate::input::PutAccountSendingAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_sending_attributes_input(&mut object, input); @@ -173,7 +173,7 @@ pub fn serialize_operation_put_account_sending_attributes( pub fn serialize_operation_put_account_suppression_attributes( input: &crate::input::PutAccountSuppressionAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_account_suppression_attributes_input( @@ -186,7 +186,7 @@ pub fn serialize_operation_put_account_suppression_attributes( pub fn serialize_operation_put_configuration_set_delivery_options( input: &crate::input::PutConfigurationSetDeliveryOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_configuration_set_delivery_options_input( @@ -199,7 +199,7 @@ pub fn serialize_operation_put_configuration_set_delivery_options( pub fn serialize_operation_put_configuration_set_reputation_options( input: &crate::input::PutConfigurationSetReputationOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_configuration_set_reputation_options_input( @@ -212,7 +212,7 @@ pub fn serialize_operation_put_configuration_set_reputation_options( pub fn serialize_operation_put_configuration_set_sending_options( input: &crate::input::PutConfigurationSetSendingOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_configuration_set_sending_options_input( @@ -225,7 +225,7 @@ pub fn serialize_operation_put_configuration_set_sending_options( pub fn serialize_operation_put_configuration_set_suppression_options( input: &crate::input::PutConfigurationSetSuppressionOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_configuration_set_suppression_options_input( @@ -238,7 +238,7 @@ pub fn serialize_operation_put_configuration_set_suppression_options( pub fn serialize_operation_put_configuration_set_tracking_options( input: &crate::input::PutConfigurationSetTrackingOptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_configuration_set_tracking_options_input( @@ -251,7 +251,7 @@ pub fn serialize_operation_put_configuration_set_tracking_options( pub fn serialize_operation_put_dedicated_ip_in_pool( input: &crate::input::PutDedicatedIpInPoolInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_dedicated_ip_in_pool_input(&mut object, input); @@ -261,7 +261,7 @@ pub fn serialize_operation_put_dedicated_ip_in_pool( pub fn serialize_operation_put_dedicated_ip_warmup_attributes( input: &crate::input::PutDedicatedIpWarmupAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_dedicated_ip_warmup_attributes_input( @@ -274,7 +274,7 @@ pub fn serialize_operation_put_dedicated_ip_warmup_attributes( pub fn serialize_operation_put_deliverability_dashboard_option( input: &crate::input::PutDeliverabilityDashboardOptionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_deliverability_dashboard_option_input( @@ -287,7 +287,7 @@ pub fn serialize_operation_put_deliverability_dashboard_option( pub fn serialize_operation_put_email_identity_configuration_set_attributes( input: &crate::input::PutEmailIdentityConfigurationSetAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_email_identity_configuration_set_attributes_input( @@ -300,7 +300,7 @@ pub fn serialize_operation_put_email_identity_configuration_set_attributes( pub fn serialize_operation_put_email_identity_dkim_attributes( input: &crate::input::PutEmailIdentityDkimAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_email_identity_dkim_attributes_input( @@ -313,7 +313,7 @@ pub fn serialize_operation_put_email_identity_dkim_attributes( pub fn serialize_operation_put_email_identity_dkim_signing_attributes( input: &crate::input::PutEmailIdentityDkimSigningAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_email_identity_dkim_signing_attributes_input( @@ -326,7 +326,7 @@ pub fn serialize_operation_put_email_identity_dkim_signing_attributes( pub fn serialize_operation_put_email_identity_feedback_attributes( input: &crate::input::PutEmailIdentityFeedbackAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_email_identity_feedback_attributes_input( @@ -339,7 +339,7 @@ pub fn serialize_operation_put_email_identity_feedback_attributes( pub fn serialize_operation_put_email_identity_mail_from_attributes( input: &crate::input::PutEmailIdentityMailFromAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_email_identity_mail_from_attributes_input( @@ -352,7 +352,7 @@ pub fn serialize_operation_put_email_identity_mail_from_attributes( pub fn serialize_operation_put_suppressed_destination( input: &crate::input::PutSuppressedDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_suppressed_destination_input(&mut object, input); @@ -362,7 +362,7 @@ pub fn serialize_operation_put_suppressed_destination( pub fn serialize_operation_send_bulk_email( input: &crate::input::SendBulkEmailInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_bulk_email_input(&mut object, input); @@ -372,7 +372,7 @@ pub fn serialize_operation_send_bulk_email( pub fn serialize_operation_send_custom_verification_email( input: &crate::input::SendCustomVerificationEmailInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_custom_verification_email_input(&mut object, input); @@ -382,7 +382,7 @@ pub fn serialize_operation_send_custom_verification_email( pub fn serialize_operation_send_email( input: &crate::input::SendEmailInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_email_input(&mut object, input); @@ -392,7 +392,7 @@ pub fn serialize_operation_send_email( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_tag_resource_input(&mut object, input); @@ -402,7 +402,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_test_render_email_template( input: &crate::input::TestRenderEmailTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_test_render_email_template_input(&mut object, input); @@ -412,7 +412,7 @@ pub fn serialize_operation_test_render_email_template( pub fn serialize_operation_update_configuration_set_event_destination( input: &crate::input::UpdateConfigurationSetEventDestinationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_configuration_set_event_destination_input( @@ -425,7 +425,7 @@ pub fn serialize_operation_update_configuration_set_event_destination( pub fn serialize_operation_update_contact( input: &crate::input::UpdateContactInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_contact_input(&mut object, input); @@ -435,7 +435,7 @@ pub fn serialize_operation_update_contact( pub fn serialize_operation_update_contact_list( input: &crate::input::UpdateContactListInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_contact_list_input(&mut object, input); @@ -445,7 +445,7 @@ pub fn serialize_operation_update_contact_list( pub fn serialize_operation_update_custom_verification_email_template( input: &crate::input::UpdateCustomVerificationEmailTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_custom_verification_email_template_input( @@ -458,7 +458,7 @@ pub fn serialize_operation_update_custom_verification_email_template( pub fn serialize_operation_update_email_identity_policy( input: &crate::input::UpdateEmailIdentityPolicyInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_email_identity_policy_input(&mut object, input); @@ -468,7 +468,7 @@ pub fn serialize_operation_update_email_identity_policy( pub fn serialize_operation_update_email_template( input: &crate::input::UpdateEmailTemplateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_email_template_input(&mut object, input); diff --git a/sdk/sesv2/src/serde_util.rs b/sdk/sesv2/src/serde_util.rs deleted file mode 100644 index a8b1bc11744a..000000000000 --- a/sdk/sesv2/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} - -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/sesv2/src/serializer.rs b/sdk/sesv2/src/serializer.rs deleted file mode 100644 index 59cbfcc8946a..000000000000 --- a/sdk/sesv2/src/serializer.rs +++ /dev/null @@ -1,2344 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

    A request to create a configuration set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateConfigurationSetInputBody<'a> { - ///

    The name of the configuration set.

    - pub configuration_set_name: &'a std::option::Option, - ///

    An object that defines the open and click tracking options for emails that you send - /// using the configuration set.

    - pub tracking_options: &'a std::option::Option, - ///

    An object that defines the dedicated IP pool that is used to send emails that you send - /// using the configuration set.

    - pub delivery_options: &'a std::option::Option, - ///

    An object that defines whether or not Amazon SES collects reputation metrics for the emails - /// that you send that use the configuration set.

    - pub reputation_options: &'a std::option::Option, - ///

    An object that defines whether or not Amazon SES can send email that you send using the - /// configuration set.

    - pub sending_options: &'a std::option::Option, - ///

    An array of objects that define the tags (keys and values) that you want to associate - /// with the configuration set.

    - pub tags: &'a std::option::Option>, - ///

    An object that contains information about the suppression list preferences for your - /// account.

    - pub suppression_options: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateConfigurationSetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateConfigurationSetInputBody"); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.field("tracking_options", &self.tracking_options); - formatter.field("delivery_options", &self.delivery_options); - formatter.field("reputation_options", &self.reputation_options); - formatter.field("sending_options", &self.sending_options); - formatter.field("tags", &self.tags); - formatter.field("suppression_options", &self.suppression_options); - formatter.finish() - } -} - -///

    A request to add an event destination to a configuration set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateConfigurationSetEventDestinationInputBody<'a> { - ///

    A name that identifies the event destination within the configuration set.

    - pub event_destination_name: &'a std::option::Option, - ///

    An object that defines the event destination.

    - pub event_destination: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateConfigurationSetEventDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateConfigurationSetEventDestinationInputBody"); - formatter.field("event_destination_name", &self.event_destination_name); - formatter.field("event_destination", &self.event_destination); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateContactInputBody<'a> { - ///

    The contact's email address.

    - pub email_address: &'a std::option::Option, - ///

    The contact's preferences for being opted-in to or opted-out of topics.

    - pub topic_preferences: &'a std::option::Option>, - ///

    A boolean value status noting if the contact is unsubscribed from all contact list - /// topics.

    - pub unsubscribe_all: &'a bool, - ///

    The attribute data attached to a contact.

    - pub attributes_data: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateContactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateContactInputBody"); - formatter.field("email_address", &self.email_address); - formatter.field("topic_preferences", &self.topic_preferences); - formatter.field("unsubscribe_all", &self.unsubscribe_all); - formatter.field("attributes_data", &self.attributes_data); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateContactListInputBody<'a> { - ///

    The name of the contact list.

    - pub contact_list_name: &'a std::option::Option, - ///

    An interest group, theme, or label within a list. A contact list can have multiple - /// topics.

    - pub topics: &'a std::option::Option>, - ///

    A description of what the contact list is about.

    - pub description: &'a std::option::Option, - ///

    The tags associated with a contact list.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateContactListInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateContactListInputBody"); - formatter.field("contact_list_name", &self.contact_list_name); - formatter.field("topics", &self.topics); - formatter.field("description", &self.description); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    Represents a request to create a custom verification email template.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateCustomVerificationEmailTemplateInputBody<'a> { - ///

    The name of the custom verification email template.

    - pub template_name: &'a std::option::Option, - ///

    The email address that the custom verification email is sent from.

    - pub from_email_address: &'a std::option::Option, - ///

    The subject line of the custom verification email.

    - pub template_subject: &'a std::option::Option, - ///

    The content of the custom verification email. The total size of the email must be less - /// than 10 MB. The message body may contain HTML, with some limitations. For more - /// information, see Custom Verification Email Frequently Asked Questions in the Amazon SES - /// Developer Guide.

    - pub template_content: &'a std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is successfully verified.

    - pub success_redirection_url: &'a std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is not successfully verified.

    - pub failure_redirection_url: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateCustomVerificationEmailTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateCustomVerificationEmailTemplateInputBody"); - formatter.field("template_name", &self.template_name); - formatter.field("from_email_address", &self.from_email_address); - formatter.field("template_subject", &self.template_subject); - formatter.field("template_content", &self.template_content); - formatter.field("success_redirection_url", &self.success_redirection_url); - formatter.field("failure_redirection_url", &self.failure_redirection_url); - formatter.finish() - } -} - -///

    A request to create a new dedicated IP pool.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDedicatedIpPoolInputBody<'a> { - ///

    The name of the dedicated IP pool.

    - pub pool_name: &'a std::option::Option, - ///

    An object that defines the tags (keys and values) that you want to associate with the - /// pool.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateDedicatedIpPoolInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDedicatedIpPoolInputBody"); - formatter.field("pool_name", &self.pool_name); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    A request to perform a predictive inbox placement test. Predictive inbox placement tests can help you predict how your messages will -/// be handled by various email providers around the world. When you perform a predictive inbox placement test, you -/// provide a sample message that contains the content that you plan to send to your -/// customers. We send that message to special email addresses spread across several major -/// email providers around the world. The test takes about 24 hours to complete. When the -/// test is complete, you can use the GetDeliverabilityTestReport operation to -/// view the results of the test.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDeliverabilityTestReportInputBody<'a> { - ///

    A unique name that helps you to identify the predictive inbox placement test when you retrieve the - /// results.

    - pub report_name: &'a std::option::Option, - ///

    The email address that the predictive inbox placement test email was sent from.

    - pub from_email_address: &'a std::option::Option, - ///

    The HTML body of the message that you sent when you performed the predictive inbox placement test.

    - pub content: &'a std::option::Option, - ///

    An array of objects that define the tags (keys and values) that you want to associate - /// with the predictive inbox placement test.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateDeliverabilityTestReportInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDeliverabilityTestReportInputBody"); - formatter.field("report_name", &self.report_name); - formatter.field("from_email_address", &self.from_email_address); - formatter.field("content", &self.content); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    A request to begin the verification process for an email identity (an email address or -/// domain).

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEmailIdentityInputBody<'a> { - ///

    The email address or domain that you want to verify.

    - pub email_identity: &'a std::option::Option, - ///

    An array of objects that define the tags (keys and values) that you want to associate - /// with the email identity.

    - pub tags: &'a std::option::Option>, - ///

    If your request includes this object, Amazon SES configures the identity to use Bring Your - /// Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed to the default method, - /// Easy - /// DKIM.

    - ///

    You can only specify this object if the email identity is a domain, as opposed to an - /// address.

    - pub dkim_signing_attributes: &'a std::option::Option, - ///

    The configuration set to use by default when sending from this identity. - /// Note that any configuration set defined in the email sending request takes precedence. - ///

    - pub configuration_set_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateEmailIdentityInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEmailIdentityInputBody"); - formatter.field("email_identity", &self.email_identity); - formatter.field("tags", &self.tags); - formatter.field("dkim_signing_attributes", &self.dkim_signing_attributes); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.finish() - } -} - -///

    Represents a request to create a sending authorization policy for an identity. Sending -/// authorization is an Amazon SES feature that enables you to authorize other senders to use -/// your identities. For information, see the Amazon SES Developer Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEmailIdentityPolicyInputBody<'a> { - ///

    The text of the policy in JSON format. The policy cannot exceed 4 KB.

    - ///

    For information about the syntax of sending authorization policies, see the Amazon SES Developer - /// Guide.

    - pub policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateEmailIdentityPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEmailIdentityPolicyInputBody"); - formatter.field("policy", &self.policy); - formatter.finish() - } -} - -///

    Represents a request to create an email template. For more information, see the Amazon SES -/// Developer Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEmailTemplateInputBody<'a> { - ///

    The name of the template you want to create.

    - pub template_name: &'a std::option::Option, - ///

    The content of the email template, composed of a subject line, an HTML part, and a - /// text-only part.

    - pub template_content: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateEmailTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEmailTemplateInputBody"); - formatter.field("template_name", &self.template_name); - formatter.field("template_content", &self.template_content); - formatter.finish() - } -} - -///

    Represents a request to create an import job from a data source for a data -/// destination.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImportJobInputBody<'a> { - ///

    The destination for the import job.

    - pub import_destination: &'a std::option::Option, - ///

    The data source for the import job.

    - pub import_data_source: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateImportJobInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImportJobInputBody"); - formatter.field("import_destination", &self.import_destination); - formatter.field("import_data_source", &self.import_data_source); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContactsInputBody<'a> { - ///

    A filter that can be applied to a list of contacts.

    - pub filter: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListContactsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContactsInputBody"); - formatter.field("filter", &self.filter); - formatter.finish() - } -} - -///

    Represents a request to list all of the import jobs for a data destination within the -/// specified maximum number of import jobs.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImportJobsInputBody<'a> { - ///

    The destination of the import job, which can be used to list import jobs that have a - /// certain ImportDestinationType.

    - pub import_destination_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListImportJobsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImportJobsInputBody"); - formatter.field("import_destination_type", &self.import_destination_type); - formatter.finish() - } -} - -///

    A request to enable or disable the automatic IP address warm-up feature.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountDedicatedIpWarmupAttributesInputBody<'a> { - ///

    Enables or disables the automatic warm-up feature for dedicated IP addresses that are - /// associated with your Amazon SES account in the current AWS Region. Set to true - /// to enable the automatic warm-up feature, or set to false to disable - /// it.

    - pub auto_warmup_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutAccountDedicatedIpWarmupAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountDedicatedIpWarmupAttributesInputBody"); - formatter.field("auto_warmup_enabled", &self.auto_warmup_enabled); - formatter.finish() - } -} - -///

    A request to submit new account details.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountDetailsInputBody<'a> { - ///

    The type of email your account will send.

    - pub mail_type: &'a std::option::Option, - ///

    The URL of your website. This information helps us better understand the type of - /// content that you plan to send.

    - pub website_url: &'a std::option::Option, - ///

    The language you would prefer to be contacted with.

    - pub contact_language: &'a std::option::Option, - ///

    A description of the types of email that you plan to send.

    - pub use_case_description: &'a std::option::Option, - ///

    Additional email addresses that you would like to be notified regarding Amazon SES - /// matters.

    - pub additional_contact_email_addresses: - &'a std::option::Option>, - ///

    Indicates whether or not your account should have production access in the current - /// AWS Region.

    - ///

    If the value is false, then your account is in the - /// sandbox. When your account is in the sandbox, you can only send - /// email to verified identities. Additionally, the maximum number of emails you can send in - /// a 24-hour period (your sending quota) is 200, and the maximum number of emails you can - /// send per second (your maximum sending rate) is 1.

    - ///

    If the value is true, then your account has production access. When your - /// account has production access, you can send email to any address. The sending quota and - /// maximum sending rate for your account vary based on your specific use case.

    - pub production_access_enabled: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutAccountDetailsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountDetailsInputBody"); - formatter.field("mail_type", &self.mail_type); - formatter.field("website_url", &"*** Sensitive Data Redacted ***"); - formatter.field("contact_language", &self.contact_language); - formatter.field("use_case_description", &"*** Sensitive Data Redacted ***"); - formatter.field( - "additional_contact_email_addresses", - &"*** Sensitive Data Redacted ***", - ); - formatter.field("production_access_enabled", &self.production_access_enabled); - formatter.finish() - } -} - -///

    A request to change the ability of your account to send email.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSendingAttributesInputBody<'a> { - ///

    Enables or disables your account's ability to send email. Set to true to - /// enable email sending, or set to false to disable email sending.

    - /// - ///

    If AWS paused your account's ability to send email, you can't use this operation - /// to resume your account's ability to send email.

    - ///
    - pub sending_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutAccountSendingAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSendingAttributesInputBody"); - formatter.field("sending_enabled", &self.sending_enabled); - formatter.finish() - } -} - -///

    A request to change your account's suppression preferences.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutAccountSuppressionAttributesInputBody<'a> { - ///

    A list that contains the reasons that email addresses will be automatically added to - /// the suppression list for your account. This list can contain any or all of the - /// following:

    - ///
      - ///
    • - ///

      - /// COMPLAINT – Amazon SES adds an email address to the suppression - /// list for your account when a message sent to that address results in a - /// complaint.

      - ///
    • - ///
    • - ///

      - /// BOUNCE – Amazon SES adds an email address to the suppression - /// list for your account when a message sent to that address results in a hard - /// bounce.

      - ///
    • - ///
    - pub suppressed_reasons: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutAccountSuppressionAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutAccountSuppressionAttributesInputBody"); - formatter.field("suppressed_reasons", &self.suppressed_reasons); - formatter.finish() - } -} - -///

    A request to associate a configuration set with a dedicated IP pool.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutConfigurationSetDeliveryOptionsInputBody<'a> { - ///

    Specifies whether messages that use the configuration set are required to use - /// Transport Layer Security (TLS). If the value is Require, messages are only - /// delivered if a TLS connection can be established. If the value is Optional, - /// messages can be delivered in plain text if a TLS connection can't be established.

    - pub tls_policy: &'a std::option::Option, - ///

    The name of the dedicated IP pool that you want to associate with the configuration - /// set.

    - pub sending_pool_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutConfigurationSetDeliveryOptionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutConfigurationSetDeliveryOptionsInputBody"); - formatter.field("tls_policy", &self.tls_policy); - formatter.field("sending_pool_name", &self.sending_pool_name); - formatter.finish() - } -} - -///

    A request to enable or disable tracking of reputation metrics for a configuration -/// set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutConfigurationSetReputationOptionsInputBody<'a> { - ///

    If true, tracking of reputation metrics is enabled for the configuration - /// set. If false, tracking of reputation metrics is disabled for the - /// configuration set.

    - pub reputation_metrics_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutConfigurationSetReputationOptionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutConfigurationSetReputationOptionsInputBody"); - formatter.field( - "reputation_metrics_enabled", - &self.reputation_metrics_enabled, - ); - formatter.finish() - } -} - -///

    A request to enable or disable the ability of Amazon SES to send emails that use a specific -/// configuration set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutConfigurationSetSendingOptionsInputBody<'a> { - ///

    If true, email sending is enabled for the configuration set. If - /// false, email sending is disabled for the configuration set.

    - pub sending_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutConfigurationSetSendingOptionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutConfigurationSetSendingOptionsInputBody"); - formatter.field("sending_enabled", &self.sending_enabled); - formatter.finish() - } -} - -///

    A request to change the account suppression list preferences for a specific -/// configuration set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutConfigurationSetSuppressionOptionsInputBody<'a> { - ///

    A list that contains the reasons that email addresses are automatically added to the - /// suppression list for your account. This list can contain any or all of the - /// following:

    - ///
      - ///
    • - ///

      - /// COMPLAINT – Amazon SES adds an email address to the suppression - /// list for your account when a message sent to that address results in a - /// complaint.

      - ///
    • - ///
    • - ///

      - /// BOUNCE – Amazon SES adds an email address to the suppression - /// list for your account when a message sent to that address results in a - /// hard bounce.

      - ///
    • - ///
    - pub suppressed_reasons: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutConfigurationSetSuppressionOptionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutConfigurationSetSuppressionOptionsInputBody"); - formatter.field("suppressed_reasons", &self.suppressed_reasons); - formatter.finish() - } -} - -///

    A request to add a custom domain for tracking open and click events to a configuration -/// set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutConfigurationSetTrackingOptionsInputBody<'a> { - ///

    The domain that you want to use to track open and click events.

    - pub custom_redirect_domain: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutConfigurationSetTrackingOptionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutConfigurationSetTrackingOptionsInputBody"); - formatter.field("custom_redirect_domain", &self.custom_redirect_domain); - formatter.finish() - } -} - -///

    A request to move a dedicated IP address to a dedicated IP pool.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDedicatedIpInPoolInputBody<'a> { - ///

    The name of the IP pool that you want to add the dedicated IP address to. You have to - /// specify an IP pool that already exists.

    - pub destination_pool_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutDedicatedIpInPoolInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDedicatedIpInPoolInputBody"); - formatter.field("destination_pool_name", &self.destination_pool_name); - formatter.finish() - } -} - -///

    A request to change the warm-up attributes for a dedicated IP address. This operation -/// is useful when you want to resume the warm-up process for an existing IP address.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDedicatedIpWarmupAttributesInputBody<'a> { - ///

    The warm-up percentage that you want to associate with the dedicated IP - /// address.

    - pub warmup_percentage: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutDedicatedIpWarmupAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDedicatedIpWarmupAttributesInputBody"); - formatter.field("warmup_percentage", &self.warmup_percentage); - formatter.finish() - } -} - -///

    Enable or disable the Deliverability dashboard. When you enable the Deliverability dashboard, you gain -/// access to reputation, deliverability, and other metrics for the domains that you use to -/// send email using Amazon SES API v2. You also gain the ability to perform predictive inbox placement tests.

    -///

    When you use the Deliverability dashboard, you pay a monthly subscription charge, in addition -/// to any other fees that you accrue by using Amazon SES and other AWS services. For more -/// information about the features and cost of a Deliverability dashboard subscription, see Amazon Pinpoint Pricing.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutDeliverabilityDashboardOptionInputBody<'a> { - ///

    Specifies whether to enable the Deliverability dashboard. To enable the dashboard, set this - /// value to true.

    - pub dashboard_enabled: &'a bool, - ///

    An array of objects, one for each verified domain that you use to send email and - /// enabled the Deliverability dashboard for.

    - pub subscribed_domains: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutDeliverabilityDashboardOptionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutDeliverabilityDashboardOptionInputBody"); - formatter.field("dashboard_enabled", &self.dashboard_enabled); - formatter.field("subscribed_domains", &self.subscribed_domains); - formatter.finish() - } -} - -///

    A request to associate a configuration set with an email identity.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityConfigurationSetAttributesInputBody<'a> { - ///

    The configuration set that you want to associate with an email identity.

    - pub configuration_set_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutEmailIdentityConfigurationSetAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityConfigurationSetAttributesInputBody"); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.finish() - } -} - -///

    A request to enable or disable DKIM signing of email that you send from an email -/// identity.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityDkimAttributesInputBody<'a> { - ///

    Sets the DKIM signing configuration for the identity.

    - ///

    When you set this value true, then the messages that are sent from the - /// identity are signed using DKIM. If you set this value to false, your - /// messages are sent without DKIM signing.

    - pub signing_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutEmailIdentityDkimAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityDkimAttributesInputBody"); - formatter.field("signing_enabled", &self.signing_enabled); - formatter.finish() - } -} - -///

    A request to change the DKIM attributes for an email identity.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityDkimSigningAttributesInputBody<'a> { - ///

    The method that you want to use to configure DKIM for the identity. There are two - /// possible values:

    - ///
      - ///
    • - ///

      - /// AWS_SES – Configure DKIM for the identity by using Easy - /// DKIM.

      - ///
    • - ///
    • - ///

      - /// EXTERNAL – Configure DKIM for the identity by using Bring - /// Your Own DKIM (BYODKIM).

      - ///
    • - ///
    - pub signing_attributes_origin: - &'a std::option::Option, - ///

    An object that contains information about the private key and selector that you want - /// to use to configure DKIM for the identity. This object is only required if you want to - /// configure Bring Your Own DKIM (BYODKIM) for the identity.

    - pub signing_attributes: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutEmailIdentityDkimSigningAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityDkimSigningAttributesInputBody"); - formatter.field("signing_attributes_origin", &self.signing_attributes_origin); - formatter.field("signing_attributes", &self.signing_attributes); - formatter.finish() - } -} - -///

    A request to set the attributes that control how bounce and complaint events are -/// processed.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityFeedbackAttributesInputBody<'a> { - ///

    Sets the feedback forwarding configuration for the identity.

    - ///

    If the value is true, you receive email notifications when bounce or - /// complaint events occur. These notifications are sent to the address that you specified - /// in the Return-Path header of the original email.

    - ///

    You're required to have a method of tracking bounces and complaints. If you haven't - /// set up another mechanism for receiving bounce or complaint notifications (for example, - /// by setting up an event destination), you receive an email notification when these events - /// occur (even if this setting is disabled).

    - pub email_forwarding_enabled: &'a bool, -} -impl<'a> std::fmt::Debug for PutEmailIdentityFeedbackAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityFeedbackAttributesInputBody"); - formatter.field("email_forwarding_enabled", &self.email_forwarding_enabled); - formatter.finish() - } -} - -///

    A request to configure the custom MAIL FROM domain for a verified identity.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityMailFromAttributesInputBody<'a> { - ///

    The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM - /// domain must meet the following criteria:

    - ///
      - ///
    • - ///

      It has to be a subdomain of the verified identity.

      - ///
    • - ///
    • - ///

      It can't be used to receive email.

      - ///
    • - ///
    • - ///

      It can't be used in a "From" address if the MAIL FROM domain is a destination - /// for feedback forwarding emails.

      - ///
    • - ///
    - pub mail_from_domain: &'a std::option::Option, - ///

    The action that you want to take if the required MX record isn't found when you send - /// an email. When you set this value to UseDefaultValue, the mail is sent - /// using amazonses.com as the MAIL FROM domain. When you set this - /// value to RejectMessage, the Amazon SES API v2 returns a - /// MailFromDomainNotVerified error, and doesn't attempt to deliver the - /// email.

    - ///

    These behaviors are taken when the custom MAIL FROM domain configuration is in the - /// Pending, Failed, and TemporaryFailure - /// states.

    - pub behavior_on_mx_failure: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutEmailIdentityMailFromAttributesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityMailFromAttributesInputBody"); - formatter.field("mail_from_domain", &self.mail_from_domain); - formatter.field("behavior_on_mx_failure", &self.behavior_on_mx_failure); - formatter.finish() - } -} - -///

    A request to add an email destination to the suppression list for your account.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutSuppressedDestinationInputBody<'a> { - ///

    The email address that should be added to the suppression list for your - /// account.

    - pub email_address: &'a std::option::Option, - ///

    The factors that should cause the email address to be added to the suppression list - /// for your account.

    - pub reason: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutSuppressedDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutSuppressedDestinationInputBody"); - formatter.field("email_address", &self.email_address); - formatter.field("reason", &self.reason); - formatter.finish() - } -} - -///

    Represents a request to send email messages to multiple destinations using Amazon SES. For -/// more information, see the Amazon SES Developer -/// Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendBulkEmailInputBody<'a> { - ///

    The email address that you want to use as the "From" address for the email. The - /// address that you specify has to be verified.

    - pub from_email_address: &'a std::option::Option, - ///

    This parameter is used only for sending authorization. It is the ARN of the identity - /// that is associated with the sending authorization policy that permits you to use the - /// email address specified in the FromEmailAddress parameter.

    - ///

    For example, if the owner of example.com (which has ARN - /// arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that - /// authorizes you to use sender@example.com, then you would specify the - /// FromEmailAddressIdentityArn to be - /// arn:aws:ses:us-east-1:123456789012:identity/example.com, and the - /// FromEmailAddress to be sender@example.com.

    - ///

    For more information about sending authorization, see the Amazon SES Developer - /// Guide.

    - pub from_email_address_identity_arn: &'a std::option::Option, - ///

    The "Reply-to" email addresses for the message. When the recipient replies to the - /// message, each Reply-to address receives the reply.

    - pub reply_to_addresses: &'a std::option::Option>, - ///

    The address that you want bounce and complaint notifications to be sent to.

    - pub feedback_forwarding_email_address: &'a std::option::Option, - ///

    This parameter is used only for sending authorization. It is the ARN of the identity - /// that is associated with the sending authorization policy that permits you to use the - /// email address specified in the FeedbackForwardingEmailAddress - /// parameter.

    - ///

    For example, if the owner of example.com (which has ARN - /// arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that - /// authorizes you to use feedback@example.com, then you would specify the - /// FeedbackForwardingEmailAddressIdentityArn to be - /// arn:aws:ses:us-east-1:123456789012:identity/example.com, and the - /// FeedbackForwardingEmailAddress to be feedback@example.com.

    - ///

    For more information about sending authorization, see the Amazon SES Developer - /// Guide.

    - pub feedback_forwarding_email_address_identity_arn: - &'a std::option::Option, - ///

    A list of tags, in the form of name/value pairs, to apply to an email that you send - /// using the SendEmail operation. Tags correspond to characteristics of the - /// email that you define, so that you can publish email sending events.

    - pub default_email_tags: &'a std::option::Option>, - ///

    An object that contains the body of the message. You can specify a template - /// message.

    - pub default_content: &'a std::option::Option, - ///

    The list of bulk email entry objects.

    - pub bulk_email_entries: &'a std::option::Option>, - ///

    The name of the configuration set that you want to use when sending the email.

    - pub configuration_set_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendBulkEmailInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendBulkEmailInputBody"); - formatter.field("from_email_address", &self.from_email_address); - formatter.field( - "from_email_address_identity_arn", - &self.from_email_address_identity_arn, - ); - formatter.field("reply_to_addresses", &self.reply_to_addresses); - formatter.field( - "feedback_forwarding_email_address", - &self.feedback_forwarding_email_address, - ); - formatter.field( - "feedback_forwarding_email_address_identity_arn", - &self.feedback_forwarding_email_address_identity_arn, - ); - formatter.field("default_email_tags", &self.default_email_tags); - formatter.field("default_content", &self.default_content); - formatter.field("bulk_email_entries", &self.bulk_email_entries); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.finish() - } -} - -///

    Represents a request to send a custom verification email to a specified -/// recipient.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCustomVerificationEmailInputBody<'a> { - ///

    The email address to verify.

    - pub email_address: &'a std::option::Option, - ///

    The name of the custom verification email template to use when sending the - /// verification email.

    - pub template_name: &'a std::option::Option, - ///

    Name of a configuration set to use when sending the verification email.

    - pub configuration_set_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendCustomVerificationEmailInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCustomVerificationEmailInputBody"); - formatter.field("email_address", &self.email_address); - formatter.field("template_name", &self.template_name); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.finish() - } -} - -///

    Represents a request to send a single formatted email using Amazon SES. For more -/// information, see the Amazon SES Developer -/// Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendEmailInputBody<'a> { - ///

    The email address that you want to use as the "From" address for the email. The - /// address that you specify has to be verified. - ///

    - pub from_email_address: &'a std::option::Option, - ///

    This parameter is used only for sending authorization. It is the ARN of the identity - /// that is associated with the sending authorization policy that permits you to use the - /// email address specified in the FromEmailAddress parameter.

    - ///

    For example, if the owner of example.com (which has ARN - /// arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that - /// authorizes you to use sender@example.com, then you would specify the - /// FromEmailAddressIdentityArn to be - /// arn:aws:ses:us-east-1:123456789012:identity/example.com, and the - /// FromEmailAddress to be sender@example.com.

    - ///

    For more information about sending authorization, see the Amazon SES Developer - /// Guide.

    - ///

    For Raw emails, the FromEmailAddressIdentityArn value overrides the - /// X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message - /// content.

    - pub from_email_address_identity_arn: &'a std::option::Option, - ///

    An object that contains the recipients of the email message.

    - pub destination: &'a std::option::Option, - ///

    The "Reply-to" email addresses for the message. When the recipient replies to the - /// message, each Reply-to address receives the reply.

    - pub reply_to_addresses: &'a std::option::Option>, - ///

    The address that you want bounce and complaint notifications to be sent to.

    - pub feedback_forwarding_email_address: &'a std::option::Option, - ///

    This parameter is used only for sending authorization. It is the ARN of the identity - /// that is associated with the sending authorization policy that permits you to use the - /// email address specified in the FeedbackForwardingEmailAddress - /// parameter.

    - ///

    For example, if the owner of example.com (which has ARN - /// arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that - /// authorizes you to use feedback@example.com, then you would specify the - /// FeedbackForwardingEmailAddressIdentityArn to be - /// arn:aws:ses:us-east-1:123456789012:identity/example.com, and the - /// FeedbackForwardingEmailAddress to be feedback@example.com.

    - ///

    For more information about sending authorization, see the Amazon SES Developer - /// Guide.

    - pub feedback_forwarding_email_address_identity_arn: - &'a std::option::Option, - ///

    An object that contains the body of the message. You can send either a Simple message - /// Raw message or a template Message.

    - pub content: &'a std::option::Option, - ///

    A list of tags, in the form of name/value pairs, to apply to an email that you send - /// using the SendEmail operation. Tags correspond to characteristics of the - /// email that you define, so that you can publish email sending events.

    - pub email_tags: &'a std::option::Option>, - ///

    The name of the configuration set that you want to use when sending the email.

    - pub configuration_set_name: &'a std::option::Option, - ///

    An object used to specify a list or topic to which an email belongs, which will be - /// used when a contact chooses to unsubscribe.

    - pub list_management_options: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendEmailInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendEmailInputBody"); - formatter.field("from_email_address", &self.from_email_address); - formatter.field( - "from_email_address_identity_arn", - &self.from_email_address_identity_arn, - ); - formatter.field("destination", &self.destination); - formatter.field("reply_to_addresses", &self.reply_to_addresses); - formatter.field( - "feedback_forwarding_email_address", - &self.feedback_forwarding_email_address, - ); - formatter.field( - "feedback_forwarding_email_address_identity_arn", - &self.feedback_forwarding_email_address_identity_arn, - ); - formatter.field("content", &self.content); - formatter.field("email_tags", &self.email_tags); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.field("list_management_options", &self.list_management_options); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagResourceInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the resource that you want to add one or more tags - /// to.

    - pub resource_arn: &'a std::option::Option, - ///

    A list of the tags that you want to add to the resource. A tag consists of a required - /// tag key (Key) and an associated tag value (Value). The maximum - /// length of a tag key is 128 characters. The maximum length of a tag value is 256 - /// characters.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for TagResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagResourceInputBody"); - formatter.field("resource_arn", &self.resource_arn); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    >Represents a request to create a preview of the MIME content of an email when -/// provided with a template and a set of replacement data.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TestRenderEmailTemplateInputBody<'a> { - ///

    A list of replacement values to apply to the template. This parameter is a JSON - /// object, typically consisting of key-value pairs in which the keys correspond to - /// replacement tags in the email template.

    - pub template_data: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TestRenderEmailTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestRenderEmailTemplateInputBody"); - formatter.field("template_data", &self.template_data); - formatter.finish() - } -} - -///

    A request to change the settings for an event destination for a configuration -/// set.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateConfigurationSetEventDestinationInputBody<'a> { - ///

    An object that defines the event destination.

    - pub event_destination: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateConfigurationSetEventDestinationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateConfigurationSetEventDestinationInputBody"); - formatter.field("event_destination", &self.event_destination); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContactInputBody<'a> { - ///

    The contact's preference for being opted-in to or opted-out of a topic.

    - pub topic_preferences: &'a std::option::Option>, - ///

    A boolean value status noting if the contact is unsubscribed from all contact list - /// topics.

    - pub unsubscribe_all: &'a bool, - ///

    The attribute data attached to a contact.

    - pub attributes_data: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContactInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContactInputBody"); - formatter.field("topic_preferences", &self.topic_preferences); - formatter.field("unsubscribe_all", &self.unsubscribe_all); - formatter.field("attributes_data", &self.attributes_data); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateContactListInputBody<'a> { - ///

    An interest group, theme, or label within a list. A contact list can have multiple - /// topics.

    - pub topics: &'a std::option::Option>, - ///

    A description of what the contact list is about.

    - pub description: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateContactListInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateContactListInputBody"); - formatter.field("topics", &self.topics); - formatter.field("description", &self.description); - formatter.finish() - } -} - -///

    Represents a request to update an existing custom verification email template.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateCustomVerificationEmailTemplateInputBody<'a> { - ///

    The email address that the custom verification email is sent from.

    - pub from_email_address: &'a std::option::Option, - ///

    The subject line of the custom verification email.

    - pub template_subject: &'a std::option::Option, - ///

    The content of the custom verification email. The total size of the email must be less - /// than 10 MB. The message body may contain HTML, with some limitations. For more - /// information, see Custom Verification Email Frequently Asked Questions in the Amazon SES - /// Developer Guide.

    - pub template_content: &'a std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is successfully verified.

    - pub success_redirection_url: &'a std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is not successfully verified.

    - pub failure_redirection_url: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateCustomVerificationEmailTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateCustomVerificationEmailTemplateInputBody"); - formatter.field("from_email_address", &self.from_email_address); - formatter.field("template_subject", &self.template_subject); - formatter.field("template_content", &self.template_content); - formatter.field("success_redirection_url", &self.success_redirection_url); - formatter.field("failure_redirection_url", &self.failure_redirection_url); - formatter.finish() - } -} - -///

    Represents a request to update a sending authorization policy for an identity. Sending -/// authorization is an Amazon SES feature that enables you to authorize other senders to use -/// your identities. For information, see the Amazon SES Developer Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEmailIdentityPolicyInputBody<'a> { - ///

    The text of the policy in JSON format. The policy cannot exceed 4 KB.

    - ///

    For information about the syntax of sending authorization policies, see the Amazon SES Developer - /// Guide.

    - pub policy: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateEmailIdentityPolicyInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEmailIdentityPolicyInputBody"); - formatter.field("policy", &self.policy); - formatter.finish() - } -} - -///

    Represents a request to update an email template. For more information, see the Amazon SES -/// Developer Guide.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateEmailTemplateInputBody<'a> { - ///

    The content of the email template, composed of a subject line, an HTML part, and a - /// text-only part.

    - pub template_content: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateEmailTemplateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateEmailTemplateInputBody"); - formatter.field("template_content", &self.template_content); - formatter.finish() - } -} - -///

    Information about the predictive inbox placement test that you created.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDeliverabilityTestReportOutputBody { - ///

    A unique string that identifies the predictive inbox placement test.

    - #[serde(rename = "ReportId")] - #[serde(default)] - pub report_id: std::option::Option, - ///

    The status of the predictive inbox placement test. If the status is IN_PROGRESS, then the predictive inbox placement test - /// is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the - /// test. If the status is COMPLETE, then the test is finished, and you can use - /// the GetDeliverabilityTestReport to view the results of the test.

    - #[serde(rename = "DeliverabilityTestStatus")] - #[serde(default)] - pub deliverability_test_status: std::option::Option, -} -impl std::fmt::Debug for CreateDeliverabilityTestReportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDeliverabilityTestReportOutputBody"); - formatter.field("report_id", &self.report_id); - formatter.field( - "deliverability_test_status", - &self.deliverability_test_status, - ); - formatter.finish() - } -} - -///

    If the email identity is a domain, this object contains information about the DKIM -/// verification status for the domain.

    -///

    If the email identity is an email address, this object is empty.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateEmailIdentityOutputBody { - ///

    The email identity type.

    - #[serde(rename = "IdentityType")] - #[serde(default)] - pub identity_type: std::option::Option, - ///

    Specifies whether or not the identity is verified. You can only send email from - /// verified email addresses or domains. For more information about verifying identities, - /// see the Amazon Pinpoint User Guide.

    - #[serde(rename = "VerifiedForSendingStatus")] - #[serde(default)] - pub verified_for_sending_status: bool, - ///

    An object that contains information about the DKIM attributes for the identity.

    - #[serde(rename = "DkimAttributes")] - #[serde(default)] - pub dkim_attributes: std::option::Option, -} -impl std::fmt::Debug for CreateEmailIdentityOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateEmailIdentityOutputBody"); - formatter.field("identity_type", &self.identity_type); - formatter.field( - "verified_for_sending_status", - &self.verified_for_sending_status, - ); - formatter.field("dkim_attributes", &self.dkim_attributes); - formatter.finish() - } -} - -///

    An HTTP 200 response if the request succeeds, or an error message if the request -/// fails.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateImportJobOutputBody { - ///

    A string that represents the import job ID.

    - #[serde(rename = "JobId")] - #[serde(default)] - pub job_id: std::option::Option, -} -impl std::fmt::Debug for CreateImportJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateImportJobOutputBody"); - formatter.field("job_id", &self.job_id); - formatter.finish() - } -} - -///

    A list of details about the email-sending capabilities of your Amazon SES account in the -/// current AWS Region.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAccountOutputBody { - ///

    Indicates whether or not the automatic warm-up feature is enabled for dedicated IP - /// addresses that are associated with your account.

    - #[serde(rename = "DedicatedIpAutoWarmupEnabled")] - #[serde(default)] - pub dedicated_ip_auto_warmup_enabled: bool, - ///

    The reputation status of your Amazon SES account. The status can be one of the - /// following:

    - ///
      - ///
    • - ///

      - /// HEALTHY – There are no reputation-related issues that - /// currently impact your account.

      - ///
    • - ///
    • - ///

      - /// PROBATION – We've identified potential issues with your - /// Amazon SES account. We're placing your account under review while you work on - /// correcting these issues.

      - ///
    • - ///
    • - ///

      - /// SHUTDOWN – Your account's ability to send email is - /// currently paused because of an issue with the email sent from your account. When - /// you correct the issue, you can contact us and request that your account's - /// ability to send email is resumed.

      - ///
    • - ///
    - #[serde(rename = "EnforcementStatus")] - #[serde(default)] - pub enforcement_status: std::option::Option, - ///

    Indicates whether or not your account has production access in the current AWS - /// Region.

    - ///

    If the value is false, then your account is in the - /// sandbox. When your account is in the sandbox, you can only send - /// email to verified identities. Additionally, the maximum number of emails you can send in - /// a 24-hour period (your sending quota) is 200, and the maximum number of emails you can - /// send per second (your maximum sending rate) is 1.

    - ///

    If the value is true, then your account has production access. When your - /// account has production access, you can send email to any address. The sending quota and - /// maximum sending rate for your account vary based on your specific use case.

    - #[serde(rename = "ProductionAccessEnabled")] - #[serde(default)] - pub production_access_enabled: bool, - ///

    An object that contains information about the per-day and per-second sending limits - /// for your Amazon SES account in the current AWS Region.

    - #[serde(rename = "SendQuota")] - #[serde(default)] - pub send_quota: std::option::Option, - ///

    Indicates whether or not email sending is enabled for your Amazon SES account in the - /// current AWS Region.

    - #[serde(rename = "SendingEnabled")] - #[serde(default)] - pub sending_enabled: bool, - ///

    An object that contains information about the email address suppression preferences - /// for your account in the current AWS Region.

    - #[serde(rename = "SuppressionAttributes")] - #[serde(default)] - pub suppression_attributes: std::option::Option, - ///

    An object that defines your account details.

    - #[serde(rename = "Details")] - #[serde(default)] - pub details: std::option::Option, -} -impl std::fmt::Debug for GetAccountOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAccountOutputBody"); - formatter.field( - "dedicated_ip_auto_warmup_enabled", - &self.dedicated_ip_auto_warmup_enabled, - ); - formatter.field("enforcement_status", &self.enforcement_status); - formatter.field("production_access_enabled", &self.production_access_enabled); - formatter.field("send_quota", &self.send_quota); - formatter.field("sending_enabled", &self.sending_enabled); - formatter.field("suppression_attributes", &self.suppression_attributes); - formatter.field("details", &self.details); - formatter.finish() - } -} - -///

    An object that contains information about blacklist events.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetBlacklistReportsOutputBody { - ///

    An object that contains information about a blacklist that one of your dedicated IP - /// addresses appears on.

    - #[serde(rename = "BlacklistReport")] - #[serde(default)] - pub blacklist_report: std::option::Option< - std::collections::HashMap>, - >, -} -impl std::fmt::Debug for GetBlacklistReportsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetBlacklistReportsOutputBody"); - formatter.field("blacklist_report", &self.blacklist_report); - formatter.finish() - } -} - -///

    Information about a configuration set.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetConfigurationSetOutputBody { - ///

    The name of the configuration set.

    - #[serde(rename = "ConfigurationSetName")] - #[serde(default)] - pub configuration_set_name: std::option::Option, - ///

    An object that defines the open and click tracking options for emails that you send - /// using the configuration set.

    - #[serde(rename = "TrackingOptions")] - #[serde(default)] - pub tracking_options: std::option::Option, - ///

    An object that defines the dedicated IP pool that is used to send emails that you send - /// using the configuration set.

    - #[serde(rename = "DeliveryOptions")] - #[serde(default)] - pub delivery_options: std::option::Option, - ///

    An object that defines whether or not Amazon SES collects reputation metrics for the emails - /// that you send that use the configuration set.

    - #[serde(rename = "ReputationOptions")] - #[serde(default)] - pub reputation_options: std::option::Option, - ///

    An object that defines whether or not Amazon SES can send email that you send using the - /// configuration set.

    - #[serde(rename = "SendingOptions")] - #[serde(default)] - pub sending_options: std::option::Option, - ///

    An array of objects that define the tags (keys and values) that are associated with - /// the configuration set.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    An object that contains information about the suppression list preferences for your - /// account.

    - #[serde(rename = "SuppressionOptions")] - #[serde(default)] - pub suppression_options: std::option::Option, -} -impl std::fmt::Debug for GetConfigurationSetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetConfigurationSetOutputBody"); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.field("tracking_options", &self.tracking_options); - formatter.field("delivery_options", &self.delivery_options); - formatter.field("reputation_options", &self.reputation_options); - formatter.field("sending_options", &self.sending_options); - formatter.field("tags", &self.tags); - formatter.field("suppression_options", &self.suppression_options); - formatter.finish() - } -} - -///

    Information about an event destination for a configuration set.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetConfigurationSetEventDestinationsOutputBody { - ///

    An array that includes all of the events destinations that have been configured for - /// the configuration set.

    - #[serde(rename = "EventDestinations")] - #[serde(default)] - pub event_destinations: std::option::Option>, -} -impl std::fmt::Debug for GetConfigurationSetEventDestinationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetConfigurationSetEventDestinationsOutputBody"); - formatter.field("event_destinations", &self.event_destinations); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetContactOutputBody { - ///

    The name of the contact list to which the contact belongs.

    - #[serde(rename = "ContactListName")] - #[serde(default)] - pub contact_list_name: std::option::Option, - ///

    The contact's email addres.

    - #[serde(rename = "EmailAddress")] - #[serde(default)] - pub email_address: std::option::Option, - ///

    The contact's preference for being opted-in to or opted-out of a topic.>

    - #[serde(rename = "TopicPreferences")] - #[serde(default)] - pub topic_preferences: std::option::Option>, - ///

    The default topic preferences applied to the contact.

    - #[serde(rename = "TopicDefaultPreferences")] - #[serde(default)] - pub topic_default_preferences: - std::option::Option>, - ///

    A boolean value status noting if the contact is unsubscribed from all contact list - /// topics.

    - #[serde(rename = "UnsubscribeAll")] - #[serde(default)] - pub unsubscribe_all: bool, - ///

    The attribute data attached to a contact.

    - #[serde(rename = "AttributesData")] - #[serde(default)] - pub attributes_data: std::option::Option, - ///

    A timestamp noting when the contact was created.

    - #[serde(rename = "CreatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_timestamp: std::option::Option, - ///

    A timestamp noting the last time the contact's information was updated.

    - #[serde(rename = "LastUpdatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_timestamp: std::option::Option, -} -impl std::fmt::Debug for GetContactOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetContactOutputBody"); - formatter.field("contact_list_name", &self.contact_list_name); - formatter.field("email_address", &self.email_address); - formatter.field("topic_preferences", &self.topic_preferences); - formatter.field("topic_default_preferences", &self.topic_default_preferences); - formatter.field("unsubscribe_all", &self.unsubscribe_all); - formatter.field("attributes_data", &self.attributes_data); - formatter.field("created_timestamp", &self.created_timestamp); - formatter.field("last_updated_timestamp", &self.last_updated_timestamp); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetContactListOutputBody { - ///

    The name of the contact list.

    - #[serde(rename = "ContactListName")] - #[serde(default)] - pub contact_list_name: std::option::Option, - ///

    An interest group, theme, or label within a list. A contact list can have multiple - /// topics.

    - #[serde(rename = "Topics")] - #[serde(default)] - pub topics: std::option::Option>, - ///

    A description of what the contact list is about.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    A timestamp noting when the contact list was created.

    - #[serde(rename = "CreatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_timestamp: std::option::Option, - ///

    A timestamp noting the last time the contact list was updated.

    - #[serde(rename = "LastUpdatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub last_updated_timestamp: std::option::Option, - ///

    The tags associated with a contact list.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for GetContactListOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetContactListOutputBody"); - formatter.field("contact_list_name", &self.contact_list_name); - formatter.field("topics", &self.topics); - formatter.field("description", &self.description); - formatter.field("created_timestamp", &self.created_timestamp); - formatter.field("last_updated_timestamp", &self.last_updated_timestamp); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    The following elements are returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCustomVerificationEmailTemplateOutputBody { - ///

    The name of the custom verification email template.

    - #[serde(rename = "TemplateName")] - #[serde(default)] - pub template_name: std::option::Option, - ///

    The email address that the custom verification email is sent from.

    - #[serde(rename = "FromEmailAddress")] - #[serde(default)] - pub from_email_address: std::option::Option, - ///

    The subject line of the custom verification email.

    - #[serde(rename = "TemplateSubject")] - #[serde(default)] - pub template_subject: std::option::Option, - ///

    The content of the custom verification email.

    - #[serde(rename = "TemplateContent")] - #[serde(default)] - pub template_content: std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is successfully verified.

    - #[serde(rename = "SuccessRedirectionURL")] - #[serde(default)] - pub success_redirection_url: std::option::Option, - ///

    The URL that the recipient of the verification email is sent to if his or her address - /// is not successfully verified.

    - #[serde(rename = "FailureRedirectionURL")] - #[serde(default)] - pub failure_redirection_url: std::option::Option, -} -impl std::fmt::Debug for GetCustomVerificationEmailTemplateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCustomVerificationEmailTemplateOutputBody"); - formatter.field("template_name", &self.template_name); - formatter.field("from_email_address", &self.from_email_address); - formatter.field("template_subject", &self.template_subject); - formatter.field("template_content", &self.template_content); - formatter.field("success_redirection_url", &self.success_redirection_url); - formatter.field("failure_redirection_url", &self.failure_redirection_url); - formatter.finish() - } -} - -///

    Information about a dedicated IP address.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDedicatedIpOutputBody { - ///

    An object that contains information about a dedicated IP address.

    - #[serde(rename = "DedicatedIp")] - #[serde(default)] - pub dedicated_ip: std::option::Option, -} -impl std::fmt::Debug for GetDedicatedIpOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDedicatedIpOutputBody"); - formatter.field("dedicated_ip", &self.dedicated_ip); - formatter.finish() - } -} - -///

    Information about the dedicated IP addresses that are associated with your AWS -/// account.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDedicatedIpsOutputBody { - ///

    A list of dedicated IP addresses that are associated with your AWS account.

    - #[serde(rename = "DedicatedIps")] - #[serde(default)] - pub dedicated_ips: std::option::Option>, - ///

    A token that indicates that there are additional dedicated IP addresses to list. To - /// view additional addresses, issue another request to GetDedicatedIps, - /// passing this token in the NextToken parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetDedicatedIpsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDedicatedIpsOutputBody"); - formatter.field("dedicated_ips", &self.dedicated_ips); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    An object that shows the status of the Deliverability dashboard.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeliverabilityDashboardOptionsOutputBody { - ///

    Specifies whether the Deliverability dashboard is enabled. If this value is true, - /// the dashboard is enabled.

    - #[serde(rename = "DashboardEnabled")] - #[serde(default)] - pub dashboard_enabled: bool, - ///

    The date, in Unix time format, when your current subscription to the Deliverability dashboard - /// is scheduled to expire, if your subscription is scheduled to expire at the end of the - /// current calendar month. This value is null if you have an active subscription that isn’t - /// due to expire at the end of the month.

    - #[serde(rename = "SubscriptionExpiryDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub subscription_expiry_date: std::option::Option, - ///

    The current status of your Deliverability dashboard subscription. If this value is - /// PENDING_EXPIRATION, your subscription is scheduled to expire at the end - /// of the current calendar month.

    - #[serde(rename = "AccountStatus")] - #[serde(default)] - pub account_status: std::option::Option, - ///

    An array of objects, one for each verified domain that you use to send email and - /// currently has an active Deliverability dashboard subscription that isn’t scheduled to expire at - /// the end of the current calendar month.

    - #[serde(rename = "ActiveSubscribedDomains")] - #[serde(default)] - pub active_subscribed_domains: - std::option::Option>, - ///

    An array of objects, one for each verified domain that you use to send email and - /// currently has an active Deliverability dashboard subscription that's scheduled to expire at the - /// end of the current calendar month.

    - #[serde(rename = "PendingExpirationSubscribedDomains")] - #[serde(default)] - pub pending_expiration_subscribed_domains: - std::option::Option>, -} -impl std::fmt::Debug for GetDeliverabilityDashboardOptionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeliverabilityDashboardOptionsOutputBody"); - formatter.field("dashboard_enabled", &self.dashboard_enabled); - formatter.field("subscription_expiry_date", &self.subscription_expiry_date); - formatter.field("account_status", &self.account_status); - formatter.field("active_subscribed_domains", &self.active_subscribed_domains); - formatter.field( - "pending_expiration_subscribed_domains", - &self.pending_expiration_subscribed_domains, - ); - formatter.finish() - } -} - -///

    The results of the predictive inbox placement test.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeliverabilityTestReportOutputBody { - ///

    An object that contains the results of the predictive inbox placement test.

    - #[serde(rename = "DeliverabilityTestReport")] - #[serde(default)] - pub deliverability_test_report: std::option::Option, - ///

    An object that specifies how many test messages that were sent during the predictive inbox placement test were - /// delivered to recipients' inboxes, how many were sent to recipients' spam folders, and - /// how many weren't delivered.

    - #[serde(rename = "OverallPlacement")] - #[serde(default)] - pub overall_placement: std::option::Option, - ///

    An object that describes how the test email was handled by several email providers, - /// including Gmail, Hotmail, Yahoo, AOL, and others.

    - #[serde(rename = "IspPlacements")] - #[serde(default)] - pub isp_placements: std::option::Option>, - ///

    An object that contains the message that you sent when you performed this - /// predictive inbox placement test.

    - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, - ///

    An array of objects that define the tags (keys and values) that are associated with - /// the predictive inbox placement test.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for GetDeliverabilityTestReportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeliverabilityTestReportOutputBody"); - formatter.field( - "deliverability_test_report", - &self.deliverability_test_report, - ); - formatter.field("overall_placement", &self.overall_placement); - formatter.field("isp_placements", &self.isp_placements); - formatter.field("message", &self.message); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    An object that contains all the deliverability data for a specific campaign. This data -/// is available for a campaign only if the campaign sent email by using a domain that the -/// Deliverability dashboard is enabled for.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDomainDeliverabilityCampaignOutputBody { - ///

    An object that contains the deliverability data for the campaign.

    - #[serde(rename = "DomainDeliverabilityCampaign")] - #[serde(default)] - pub domain_deliverability_campaign: - std::option::Option, -} -impl std::fmt::Debug for GetDomainDeliverabilityCampaignOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDomainDeliverabilityCampaignOutputBody"); - formatter.field( - "domain_deliverability_campaign", - &self.domain_deliverability_campaign, - ); - formatter.finish() - } -} - -///

    An object that includes statistics that are related to the domain that you -/// specified.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDomainStatisticsReportOutputBody { - ///

    An object that contains deliverability metrics for the domain that you specified. The - /// data in this object is a summary of all of the data that was collected from the - /// StartDate to the EndDate.

    - #[serde(rename = "OverallVolume")] - #[serde(default)] - pub overall_volume: std::option::Option, - ///

    An object that contains deliverability metrics for the domain that you specified. This - /// object contains data for each day, starting on the StartDate and ending on - /// the EndDate.

    - #[serde(rename = "DailyVolumes")] - #[serde(default)] - pub daily_volumes: std::option::Option>, -} -impl std::fmt::Debug for GetDomainStatisticsReportOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDomainStatisticsReportOutputBody"); - formatter.field("overall_volume", &self.overall_volume); - formatter.field("daily_volumes", &self.daily_volumes); - formatter.finish() - } -} - -///

    Details about an email identity.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetEmailIdentityOutputBody { - ///

    The email identity type.

    - #[serde(rename = "IdentityType")] - #[serde(default)] - pub identity_type: std::option::Option, - ///

    The feedback forwarding configuration for the identity.

    - ///

    If the value is true, you receive email notifications when bounce or - /// complaint events occur. These notifications are sent to the address that you specified - /// in the Return-Path header of the original email.

    - ///

    You're required to have a method of tracking bounces and complaints. If you haven't - /// set up another mechanism for receiving bounce or complaint notifications (for example, - /// by setting up an event destination), you receive an email notification when these events - /// occur (even if this setting is disabled).

    - #[serde(rename = "FeedbackForwardingStatus")] - #[serde(default)] - pub feedback_forwarding_status: bool, - ///

    Specifies whether or not the identity is verified. You can only send email from - /// verified email addresses or domains. For more information about verifying identities, - /// see the Amazon Pinpoint User Guide.

    - #[serde(rename = "VerifiedForSendingStatus")] - #[serde(default)] - pub verified_for_sending_status: bool, - ///

    An object that contains information about the DKIM attributes for the identity.

    - #[serde(rename = "DkimAttributes")] - #[serde(default)] - pub dkim_attributes: std::option::Option, - ///

    An object that contains information about the Mail-From attributes for the email - /// identity.

    - #[serde(rename = "MailFromAttributes")] - #[serde(default)] - pub mail_from_attributes: std::option::Option, - ///

    A map of policy names to policies.

    - #[serde(rename = "Policies")] - #[serde(default)] - pub policies: - std::option::Option>, - ///

    An array of objects that define the tags (keys and values) that are associated with - /// the email identity.

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, - ///

    The configuration set used by default when sending from this identity.

    - #[serde(rename = "ConfigurationSetName")] - #[serde(default)] - pub configuration_set_name: std::option::Option, -} -impl std::fmt::Debug for GetEmailIdentityOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetEmailIdentityOutputBody"); - formatter.field("identity_type", &self.identity_type); - formatter.field( - "feedback_forwarding_status", - &self.feedback_forwarding_status, - ); - formatter.field( - "verified_for_sending_status", - &self.verified_for_sending_status, - ); - formatter.field("dkim_attributes", &self.dkim_attributes); - formatter.field("mail_from_attributes", &self.mail_from_attributes); - formatter.field("policies", &self.policies); - formatter.field("tags", &self.tags); - formatter.field("configuration_set_name", &self.configuration_set_name); - formatter.finish() - } -} - -///

    Identity policies associated with email identity.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetEmailIdentityPoliciesOutputBody { - ///

    A map of policy names to policies.

    - #[serde(rename = "Policies")] - #[serde(default)] - pub policies: - std::option::Option>, -} -impl std::fmt::Debug for GetEmailIdentityPoliciesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetEmailIdentityPoliciesOutputBody"); - formatter.field("policies", &self.policies); - formatter.finish() - } -} - -///

    The following element is returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetEmailTemplateOutputBody { - ///

    The name of the template you want to retrieve.

    - #[serde(rename = "TemplateName")] - #[serde(default)] - pub template_name: std::option::Option, - ///

    The content of the email template, composed of a subject line, an HTML part, and a - /// text-only part.

    - #[serde(rename = "TemplateContent")] - #[serde(default)] - pub template_content: std::option::Option, -} -impl std::fmt::Debug for GetEmailTemplateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetEmailTemplateOutputBody"); - formatter.field("template_name", &self.template_name); - formatter.field("template_content", &self.template_content); - formatter.finish() - } -} - -///

    An HTTP 200 response if the request succeeds, or an error message if the request -/// fails.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetImportJobOutputBody { - ///

    A string that represents the import job ID.

    - #[serde(rename = "JobId")] - #[serde(default)] - pub job_id: std::option::Option, - ///

    The destination of the import job.

    - #[serde(rename = "ImportDestination")] - #[serde(default)] - pub import_destination: std::option::Option, - ///

    The data source of the import job.

    - #[serde(rename = "ImportDataSource")] - #[serde(default)] - pub import_data_source: std::option::Option, - ///

    The failure details about an import job.

    - #[serde(rename = "FailureInfo")] - #[serde(default)] - pub failure_info: std::option::Option, - ///

    The status of the import job.

    - #[serde(rename = "JobStatus")] - #[serde(default)] - pub job_status: std::option::Option, - ///

    The time stamp of when the import job was created.

    - #[serde(rename = "CreatedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_timestamp: std::option::Option, - ///

    The time stamp of when the import job was completed.

    - #[serde(rename = "CompletedTimestamp")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub completed_timestamp: std::option::Option, - ///

    The current number of records processed.

    - #[serde(rename = "ProcessedRecordsCount")] - #[serde(default)] - pub processed_records_count: std::option::Option, - ///

    The number of records that failed processing because of invalid input or other - /// reasons.

    - #[serde(rename = "FailedRecordsCount")] - #[serde(default)] - pub failed_records_count: std::option::Option, -} -impl std::fmt::Debug for GetImportJobOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetImportJobOutputBody"); - formatter.field("job_id", &self.job_id); - formatter.field("import_destination", &self.import_destination); - formatter.field("import_data_source", &self.import_data_source); - formatter.field("failure_info", &self.failure_info); - formatter.field("job_status", &self.job_status); - formatter.field("created_timestamp", &self.created_timestamp); - formatter.field("completed_timestamp", &self.completed_timestamp); - formatter.field("processed_records_count", &self.processed_records_count); - formatter.field("failed_records_count", &self.failed_records_count); - formatter.finish() - } -} - -///

    Information about the suppressed email address.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSuppressedDestinationOutputBody { - ///

    An object containing information about the suppressed email address.

    - #[serde(rename = "SuppressedDestination")] - #[serde(default)] - pub suppressed_destination: std::option::Option, -} -impl std::fmt::Debug for GetSuppressedDestinationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSuppressedDestinationOutputBody"); - formatter.field("suppressed_destination", &self.suppressed_destination); - formatter.finish() - } -} - -///

    A list of configuration sets in your Amazon SES account in the current AWS Region.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListConfigurationSetsOutputBody { - ///

    An array that contains all of the configuration sets in your Amazon SES account in the - /// current AWS Region.

    - #[serde(rename = "ConfigurationSets")] - #[serde(default)] - pub configuration_sets: std::option::Option>, - ///

    A token that indicates that there are additional configuration sets to list. To view - /// additional configuration sets, issue another request to - /// ListConfigurationSets, and pass this token in the - /// NextToken parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListConfigurationSetsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListConfigurationSetsOutputBody"); - formatter.field("configuration_sets", &self.configuration_sets); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContactListsOutputBody { - ///

    The available contact lists.

    - #[serde(rename = "ContactLists")] - #[serde(default)] - pub contact_lists: std::option::Option>, - ///

    A string token indicating that there might be additional contact lists available to be - /// listed. Copy this token to a subsequent call to ListContactLists with the - /// same parameters to retrieve the next page of contact lists.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListContactListsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContactListsOutputBody"); - formatter.field("contact_lists", &self.contact_lists); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListContactsOutputBody { - ///

    The contacts present in a specific contact list.

    - #[serde(rename = "Contacts")] - #[serde(default)] - pub contacts: std::option::Option>, - ///

    A string token indicating that there might be additional contacts available to be - /// listed. Copy this token to a subsequent call to ListContacts with the same - /// parameters to retrieve the next page of contacts.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListContactsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListContactsOutputBody"); - formatter.field("contacts", &self.contacts); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    The following elements are returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCustomVerificationEmailTemplatesOutputBody { - ///

    A list of the custom verification email templates that exist in your account.

    - #[serde(rename = "CustomVerificationEmailTemplates")] - #[serde(default)] - pub custom_verification_email_templates: - std::option::Option>, - ///

    A token indicating that there are additional custom verification email templates - /// available to be listed. Pass this token to a subsequent call to - /// ListCustomVerificationEmailTemplates to retrieve the next 50 custom - /// verification email templates.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCustomVerificationEmailTemplatesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCustomVerificationEmailTemplatesOutputBody"); - formatter.field( - "custom_verification_email_templates", - &self.custom_verification_email_templates, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    A list of dedicated IP pools.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDedicatedIpPoolsOutputBody { - ///

    A list of all of the dedicated IP pools that are associated with your AWS account in - /// the current Region.

    - #[serde(rename = "DedicatedIpPools")] - #[serde(default)] - pub dedicated_ip_pools: std::option::Option>, - ///

    A token that indicates that there are additional IP pools to list. To view additional - /// IP pools, issue another request to ListDedicatedIpPools, passing this token - /// in the NextToken parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDedicatedIpPoolsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDedicatedIpPoolsOutputBody"); - formatter.field("dedicated_ip_pools", &self.dedicated_ip_pools); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    A list of the predictive inbox placement test reports that are available for your account, regardless of -/// whether or not those tests are complete.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDeliverabilityTestReportsOutputBody { - ///

    An object that contains a lists of predictive inbox placement tests that you've performed.

    - #[serde(rename = "DeliverabilityTestReports")] - #[serde(default)] - pub deliverability_test_reports: - std::option::Option>, - ///

    A token that indicates that there are additional predictive inbox placement tests to list. To view additional - /// predictive inbox placement tests, issue another request to ListDeliverabilityTestReports, and pass - /// this token in the NextToken parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDeliverabilityTestReportsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDeliverabilityTestReportsOutputBody"); - formatter.field( - "deliverability_test_reports", - &self.deliverability_test_reports, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    An array of objects that provide deliverability data for all the campaigns that used a -/// specific domain to send email during a specified time range. This data is available for -/// a domain only if you enabled the Deliverability dashboard for the domain.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDomainDeliverabilityCampaignsOutputBody { - ///

    An array of responses, one for each campaign that used the domain to send email during - /// the specified time range.

    - #[serde(rename = "DomainDeliverabilityCampaigns")] - #[serde(default)] - pub domain_deliverability_campaigns: - std::option::Option>, - ///

    A token that’s returned from a previous call to the - /// ListDomainDeliverabilityCampaigns operation. This token indicates the - /// position of the campaign in the list of campaigns.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDomainDeliverabilityCampaignsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDomainDeliverabilityCampaignsOutputBody"); - formatter.field( - "domain_deliverability_campaigns", - &self.domain_deliverability_campaigns, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    A list of all of the identities that you've attempted to verify, regardless of whether -/// or not those identities were successfully verified.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEmailIdentitiesOutputBody { - ///

    An array that includes all of the email identities associated with your AWS - /// account.

    - #[serde(rename = "EmailIdentities")] - #[serde(default)] - pub email_identities: std::option::Option>, - ///

    A token that indicates that there are additional configuration sets to list. To view - /// additional configuration sets, issue another request to - /// ListEmailIdentities, and pass this token in the NextToken - /// parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListEmailIdentitiesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEmailIdentitiesOutputBody"); - formatter.field("email_identities", &self.email_identities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    The following elements are returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListEmailTemplatesOutputBody { - ///

    An array the contains the name and creation time stamp for each template in your Amazon SES - /// account.

    - #[serde(rename = "TemplatesMetadata")] - #[serde(default)] - pub templates_metadata: std::option::Option>, - ///

    A token indicating that there are additional email templates available to be listed. - /// Pass this token to a subsequent ListEmailTemplates call to retrieve the - /// next 10 email templates.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListEmailTemplatesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListEmailTemplatesOutputBody"); - formatter.field("templates_metadata", &self.templates_metadata); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    An HTTP 200 response if the request succeeds, or an error message if the request -/// fails.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListImportJobsOutputBody { - ///

    A list of the import job summaries.

    - #[serde(rename = "ImportJobs")] - #[serde(default)] - pub import_jobs: std::option::Option>, - ///

    A string token indicating that there might be additional import jobs available to be - /// listed. Copy this token to a subsequent call to ListImportJobs with the - /// same parameters to retrieve the next page of import jobs.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListImportJobsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListImportJobsOutputBody"); - formatter.field("import_jobs", &self.import_jobs); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -///

    A list of suppressed email addresses.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSuppressedDestinationsOutputBody { - ///

    A list of summaries, each containing a summary for a suppressed email - /// destination.

    - #[serde(rename = "SuppressedDestinationSummaries")] - #[serde(default)] - pub suppressed_destination_summaries: - std::option::Option>, - ///

    A token that indicates that there are additional email addresses on the suppression - /// list for your account. To view additional suppressed addresses, issue another request to - /// ListSuppressedDestinations, and pass this token in the - /// NextToken parameter.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListSuppressedDestinationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSuppressedDestinationsOutputBody"); - formatter.field( - "suppressed_destination_summaries", - &self.suppressed_destination_summaries, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - ///

    An array that lists all the tags that are associated with the resource. Each tag - /// consists of a required tag key (Key) and an associated tag value - /// (Value)

    - #[serde(rename = "Tags")] - #[serde(default)] - pub tags: std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -///

    If the action is successful, the service sends back an HTTP 200 response.

    -///

    The following data is returned in JSON format by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutEmailIdentityDkimSigningAttributesOutputBody { - ///

    The DKIM authentication status of the identity. Amazon SES determines the authentication - /// status by searching for specific records in the DNS configuration for your domain. If - /// you used Easy - /// DKIM to set up DKIM authentication, Amazon SES tries to find three unique CNAME - /// records in the DNS configuration for your domain.

    - ///

    If you provided a public key to perform DKIM authentication, Amazon SES tries to find a TXT - /// record that uses the selector that you specified. The value of the TXT record must be a - /// public key that's paired with the private key that you specified in the process of - /// creating the identity.

    - ///

    The status can be one of the following:

    - ///
      - ///
    • - ///

      - /// PENDING – The verification process was initiated, but Amazon SES - /// hasn't yet detected the DKIM records in the DNS configuration for the - /// domain.

      - ///
    • - ///
    • - ///

      - /// SUCCESS – The verification process completed - /// successfully.

      - ///
    • - ///
    • - ///

      - /// FAILED – The verification process failed. This typically - /// occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the - /// domain.

      - ///
    • - ///
    • - ///

      - /// TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES - /// from determining the DKIM authentication status of the domain.

      - ///
    • - ///
    • - ///

      - /// NOT_STARTED – The DKIM verification process hasn't been - /// initiated for the domain.

      - ///
    • - ///
    - #[serde(rename = "DkimStatus")] - #[serde(default)] - pub dkim_status: std::option::Option, - ///

    If you used Easy DKIM to configure DKIM authentication for the domain, then this object - /// contains a set of unique strings that you use to create a set of CNAME records that you - /// add to the DNS configuration for your domain. When Amazon SES detects these records in the - /// DNS configuration for your domain, the DKIM authentication process is complete.

    - ///

    If you configured DKIM authentication for the domain by providing your own - /// public-private key pair, then this object contains the selector that's associated with - /// your public key.

    - ///

    Regardless of the DKIM authentication method you use, Amazon SES searches for the - /// appropriate records in the DNS configuration of the domain for up to 72 hours.

    - #[serde(rename = "DkimTokens")] - #[serde(default)] - pub dkim_tokens: std::option::Option>, -} -impl std::fmt::Debug for PutEmailIdentityDkimSigningAttributesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutEmailIdentityDkimSigningAttributesOutputBody"); - formatter.field("dkim_status", &self.dkim_status); - formatter.field("dkim_tokens", &self.dkim_tokens); - formatter.finish() - } -} - -///

    The following data is returned in JSON format by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendBulkEmailOutputBody { - ///

    A list of BulkMailEntry objects.

    - #[serde(rename = "BulkEmailEntryResults")] - #[serde(default)] - pub bulk_email_entry_results: - std::option::Option>, -} -impl std::fmt::Debug for SendBulkEmailOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendBulkEmailOutputBody"); - formatter.field("bulk_email_entry_results", &self.bulk_email_entry_results); - formatter.finish() - } -} - -///

    The following element is returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCustomVerificationEmailOutputBody { - ///

    The unique message identifier returned from the - /// SendCustomVerificationEmail operation.

    - #[serde(rename = "MessageId")] - #[serde(default)] - pub message_id: std::option::Option, -} -impl std::fmt::Debug for SendCustomVerificationEmailOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCustomVerificationEmailOutputBody"); - formatter.field("message_id", &self.message_id); - formatter.finish() - } -} - -///

    A unique message ID that you receive when an email is accepted for sending.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendEmailOutputBody { - ///

    A unique identifier for the message that is generated when the message is - /// accepted.

    - /// - ///

    It's possible for Amazon SES to accept a message without sending it. This can happen - /// when the message that you're trying to send has an attachment contains a virus, or - /// when you send a templated email that contains invalid personalization content, for - /// example.

    - ///
    - #[serde(rename = "MessageId")] - #[serde(default)] - pub message_id: std::option::Option, -} -impl std::fmt::Debug for SendEmailOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendEmailOutputBody"); - formatter.field("message_id", &self.message_id); - formatter.finish() - } -} - -///

    The following element is returned by the service.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TestRenderEmailTemplateOutputBody { - ///

    The complete MIME message rendered by applying the data in the - /// TemplateData parameter to the template specified in the TemplateName - /// parameter.

    - #[serde(rename = "RenderedTemplate")] - #[serde(default)] - pub rendered_template: std::option::Option, -} -impl std::fmt::Debug for TestRenderEmailTemplateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TestRenderEmailTemplateOutputBody"); - formatter.field("rendered_template", &self.rendered_template); - formatter.finish() - } -} diff --git a/sdk/smithy-http/src/query.rs b/sdk/smithy-http/src/query.rs index 8100b8b86f29..821376177eb0 100644 --- a/sdk/smithy-http/src/query.rs +++ b/sdk/smithy-http/src/query.rs @@ -53,12 +53,13 @@ impl<'a> Writer<'a> { pub fn push_v(&mut self, v: &str) { self.out.push(self.prefix); self.out.push_str(v); + self.prefix = '&'; } } #[cfg(test)] mod test { - use crate::query::fmt_string; + use crate::query::{fmt_string, Writer}; #[test] fn url_encode() { @@ -70,4 +71,13 @@ mod test { // `:` needs to be encoded, but only for AWS services assert_eq!(fmt_string("a:b"), "a%3Ab") } + + #[test] + fn writer_sets_prefix_properly() { + let mut out = String::new(); + let mut writer = Writer::new(&mut out); + writer.push_v("a"); + writer.push_kv("b", "c"); + assert_eq!(out, "?a&b=c"); + } } diff --git a/sdk/smithy-json/fuzz/fuzz_targets/common.rs b/sdk/smithy-json/fuzz/fuzz_targets/common.rs index 865f8da83d58..bfae664fd16e 100644 --- a/sdk/smithy-json/fuzz/fuzz_targets/common.rs +++ b/sdk/smithy-json/fuzz/fuzz_targets/common.rs @@ -16,13 +16,11 @@ pub fn run_data(data: &[u8]) { // Exercise string unescaping since the later comparison against Serde // reserializes, and thus, loses UTF-16 surrogate pairs. for token in tokens { - if let Token::ValueString(escaped) = token { - if let Ok(unescaped) = escaped.to_unescaped() { - let serde_equiv = serde_json::from_str::(&format!( - "\"{}\"", - escaped.as_escaped_str() - )) - .unwrap(); + if let Token::ValueString { value, .. } = token { + if let Ok(unescaped) = value.to_unescaped() { + let serde_equiv = + serde_json::from_str::(&format!("\"{}\"", value.as_escaped_str())) + .unwrap(); assert_eq!(serde_equiv, unescaped); } } @@ -48,12 +46,12 @@ pub fn run_data(data: &[u8]) { /// Converts a token stream into a Serde [Value] fn convert_tokens<'a, I: Iterator>>(tokens: &mut Peekable) -> Value { match tokens.next().unwrap() { - Token::StartObject => { + Token::StartObject { .. } => { let mut map = Map::new(); loop { match tokens.next() { - Some(Token::EndObject) => break, - Some(Token::ObjectKey(key)) => { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { let key = key.to_unescaped().unwrap().to_string(); let value = convert_tokens(tokens); map.insert(key, value); @@ -64,11 +62,11 @@ fn convert_tokens<'a, I: Iterator>>(tokens: &mut Peekable) - } Value::Object(map) } - Token::StartArray => { + Token::StartArray { .. } => { let mut list = Vec::new(); loop { match tokens.peek() { - Some(Token::EndArray) => { + Some(Token::EndArray { .. }) => { tokens.next(); break; } @@ -80,14 +78,14 @@ fn convert_tokens<'a, I: Iterator>>(tokens: &mut Peekable) - } Value::Array(list) } - Token::ValueNull => Value::Null, - Token::ValueNumber(num) => Value::Number(match num { + Token::ValueNull { .. } => Value::Null, + Token::ValueNumber { value, .. } => Value::Number(match value { Number::NegInt(value) => serde_json::Number::from(value), Number::PosInt(value) => serde_json::Number::from(value), Number::Float(value) => serde_json::Number::from_f64(value).unwrap(), }), - Token::ValueString(string) => Value::String(string.to_unescaped().unwrap().into()), - Token::ValueBool(bool) => Value::Bool(bool), + Token::ValueString { value, .. } => Value::String(value.to_unescaped().unwrap().into()), + Token::ValueBool { value, .. } => Value::Bool(value), _ => unreachable!(), } } diff --git a/sdk/smithy-json/fuzz/show-corpus-coverage.sh b/sdk/smithy-json/fuzz/show-corpus-coverage.sh old mode 100644 new mode 100755 diff --git a/sdk/smithy-json/src/deserialize.rs b/sdk/smithy-json/src/deserialize.rs index 4f2240ce02f7..a6144bbc568f 100644 --- a/sdk/smithy-json/src/deserialize.rs +++ b/sdk/smithy-json/src/deserialize.rs @@ -74,7 +74,7 @@ impl<'a> JsonTokenIterator<'a> { /// Expects there to be another byte coming up, and previews it. /// If there isn't, an `UnexpectedEOS` error is returned. fn peek_expect(&self) -> Result { - self.peek_byte().ok_or_else(|| self.error(UnexpectedEOS)) + self.peek_byte().ok_or_else(|| self.error(UnexpectedEos)) } /// Advances to the next byte in the stream. @@ -94,7 +94,7 @@ impl<'a> JsonTokenIterator<'a> { /// Expects there to be another byte coming up, and returns it while advancing. /// If there isn't, an `UnexpectedEOS` error is returned. fn next_expect(&mut self) -> Result { - self.next_byte().ok_or_else(|| self.error(UnexpectedEOS)) + self.next_byte().ok_or_else(|| self.error(UnexpectedEos)) } /// Creates an error at the given `offset` in the stream. @@ -195,7 +195,7 @@ impl<'a> JsonTokenIterator<'a> { b'\\' | b'/' | b'"' | b'b' | b'f' | b'n' | b'r' | b't' => self.advance(), b'u' => { if self.index + 4 > self.input.len() { - return Err(self.error_at(self.input.len(), UnexpectedEOS)); + return Err(self.error_at(self.input.len(), UnexpectedEos)); } self.index += 4; } @@ -211,7 +211,7 @@ impl<'a> JsonTokenIterator<'a> { fn expect_literal(&mut self, expected: &[u8]) -> Result<(), Error> { let (start, end) = (self.index, self.index + expected.len()); if end > self.input.len() { - return Err(self.error_at(self.input.len(), UnexpectedEOS)); + return Err(self.error_at(self.input.len(), UnexpectedEos)); } if expected != &self.input[start..end] { return Err(self.error_at( @@ -681,7 +681,7 @@ mod tests { assert_eq!(start_array(1), iter.next()); assert_eq!(value_null(2), iter.next()); assert_eq!( - Some(Err(Error::new(ErrorReason::UnexpectedEOS, Some(7)))), + Some(Err(Error::new(ErrorReason::UnexpectedEos, Some(7)))), iter.next() ); } @@ -757,7 +757,7 @@ mod tests { assert_eq!(start_object(1), iter.next()); assert_eq!(object_key(2, "test"), iter.next()); assert_eq!( - Some(Err(Error::new(ErrorReason::UnexpectedEOS, Some(9),))), + Some(Err(Error::new(ErrorReason::UnexpectedEos, Some(9),))), iter.next() ); assert_eq!(None, iter.next()); diff --git a/sdk/smithy-json/src/deserialize/error.rs b/sdk/smithy-json/src/deserialize/error.rs index 22f58b56456e..f5f6d0ce2fca 100644 --- a/sdk/smithy-json/src/deserialize/error.rs +++ b/sdk/smithy-json/src/deserialize/error.rs @@ -17,7 +17,7 @@ pub enum ErrorReason { InvalidUtf8, UnescapeFailed(EscapeError), UnexpectedControlCharacter(u8), - UnexpectedEOS, + UnexpectedEos, UnexpectedToken(char, &'static str), } use ErrorReason::*; @@ -63,7 +63,7 @@ impl fmt::Display for Error { "unexpected token '{}'. Expected one of {}", token, expected ), - UnexpectedEOS => write!(f, "unexpected end of stream"), + UnexpectedEos => write!(f, "unexpected end of stream"), } } } diff --git a/sdk/smithy-json/src/deserialize/token.rs b/sdk/smithy-json/src/deserialize/token.rs index 2011814863aa..626d4b34563e 100644 --- a/sdk/smithy-json/src/deserialize/token.rs +++ b/sdk/smithy-json/src/deserialize/token.rs @@ -6,10 +6,12 @@ use crate::deserialize::error::{Error, ErrorReason}; use crate::escape::unescape_string; use smithy_types::instant::Format; -use smithy_types::{base64, Blob, Instant, Number}; +use smithy_types::{base64, Blob, Document, Instant, Number}; use std::borrow::Cow; pub use crate::escape::Error as EscapeError; +use std::collections::HashMap; +use std::iter::Peekable; /// New-type around `&str` that indicates the string is an escaped JSON string. /// Provides functions for retrieving the string in either form. @@ -28,7 +30,7 @@ impl<'a> EscapedStr<'a> { /// Unescapes the string and returns it. /// If the string doesn't need unescaping, it will be returned directly. - pub fn to_unescaped(&self) -> Result, EscapeError> { + pub fn to_unescaped(self) -> Result, EscapeError> { unescape_string(self.0) } } @@ -152,16 +154,6 @@ expect_value_or_null_fn!(expect_bool_or_null, ValueBool, bool, "Expects a [Token expect_value_or_null_fn!(expect_number_or_null, ValueNumber, Number, "Expects a [Token::ValueNumber] or [Token::ValueNull], and returns the [Number] value if it's not null."); expect_value_or_null_fn!(expect_string_or_null, ValueString, EscapedStr, "Expects a [Token::ValueString] or [Token::ValueNull], and returns the [EscapedStr] value if it's not null."); -/// Expects a [Token::ValueString] or [Token::ValueNull]. If the value is a string, its **unescaped** value will be returned. -pub fn expect_unescaped_string_or_null( - token: Option, Error>>, -) -> Result, Error> { - Ok(match expect_string_or_null(token)? { - Some(value) => Some(value.to_unescaped()?.to_string()), - None => None, - }) -} - /// Expects a [Token::ValueString] or [Token::ValueNull]. If the value is a string, it interprets it as a base64 encoded [Blob] value. pub fn expect_blob_or_null(token: Option, Error>>) -> Result, Error> { Ok(match expect_string_or_null(token)? { @@ -200,6 +192,68 @@ pub fn expect_timestamp_or_null( }) } +/// Expects and parses a complete document value. +pub fn expect_document<'a, I>(tokens: &mut Peekable) -> Result +where + I: Iterator, Error>>, +{ + expect_document_inner(tokens, 0) +} + +const MAX_DOCUMENT_RECURSION: usize = 256; + +fn expect_document_inner<'a, I>(tokens: &mut Peekable, depth: usize) -> Result +where + I: Iterator, Error>>, +{ + if depth >= MAX_DOCUMENT_RECURSION { + return Err(Error::custom( + "exceeded max recursion depth while parsing document", + )); + } + match tokens.next().transpose()? { + Some(Token::ValueNull { .. }) => Ok(Document::Null), + Some(Token::ValueBool { value, .. }) => Ok(Document::Bool(value)), + Some(Token::ValueNumber { value, .. }) => Ok(Document::Number(value)), + Some(Token::ValueString { value, .. }) => { + Ok(Document::String(value.to_unescaped()?.into_owned())) + } + Some(Token::StartObject { .. }) => { + let mut object = HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped()?.into_owned(); + let value = expect_document_inner(tokens, depth + 1)?; + object.insert(key, value); + } + _ => return Err(Error::custom("expected object key or end object")), + } + } + Ok(Document::Object(object)) + } + Some(Token::StartArray { .. }) => { + let mut array = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => array.push(expect_document_inner(tokens, depth + 1)?), + } + } + Ok(Document::Array(array)) + } + Some(Token::EndObject { .. }) | Some(Token::ObjectKey { .. }) => { + unreachable!("end object and object key are handled in start object") + } + Some(Token::EndArray { .. }) => unreachable!("end array is handled in start array"), + None => Err(Error::custom("expected value")), + } +} + /// Skips an entire value in the token stream. Errors if it isn't a value. pub fn skip_value<'a>( tokens: &mut impl Iterator, Error>>, @@ -404,19 +458,6 @@ pub mod test { ); } - #[test] - fn test_expect_unescaped_string_or_null() { - assert_eq!(Ok(None), expect_unescaped_string_or_null(value_null(0))); - assert_eq!( - Ok(Some("test\n".to_string())), - expect_unescaped_string_or_null(value_string(0, "test\\n")) - ); - assert_eq!( - Err(Error::custom("expected ValueString or ValueNull")), - expect_unescaped_string_or_null(value_bool(0, true)) - ); - } - #[test] fn test_expect_number_or_null() { assert_eq!(Ok(None), expect_number_or_null(value_null(0))); @@ -473,4 +514,94 @@ pub mod test { expect_timestamp_or_null(value_number(0, Number::Float(0.0)), Format::DateTime) ); } + + #[test] + fn test_expect_document() { + let test = |value| expect_document(&mut json_token_iter(value).peekable()).unwrap(); + assert_eq!(Document::Null, test(b"null")); + assert_eq!(Document::Bool(true), test(b"true")); + assert_eq!(Document::Number(Number::Float(3.2)), test(b"3.2")); + assert_eq!(Document::String("Foo\nBar".into()), test(b"\"Foo\\nBar\"")); + assert_eq!(Document::Array(Vec::new()), test(b"[]")); + assert_eq!(Document::Object(HashMap::new()), test(b"{}")); + assert_eq!( + Document::Array(vec![ + Document::Number(Number::PosInt(1)), + Document::Bool(false), + Document::String("s".into()), + Document::Array(Vec::new()), + Document::Object(HashMap::new()), + ]), + test(b"[1,false,\"s\",[],{}]") + ); + assert_eq!( + Document::Object( + vec![ + ("num".to_string(), Document::Number(Number::PosInt(1))), + ("bool".to_string(), Document::Bool(true)), + ("string".to_string(), Document::String("s".into())), + ( + "array".to_string(), + Document::Array(vec![ + Document::Object( + vec![("foo".to_string(), Document::Bool(false))] + .into_iter() + .collect(), + ), + Document::Object( + vec![("bar".to_string(), Document::Bool(true))] + .into_iter() + .collect(), + ), + ]) + ), + ( + "nested".to_string(), + Document::Object( + vec![("test".to_string(), Document::Null),] + .into_iter() + .collect() + ) + ), + ] + .into_iter() + .collect() + ), + test( + br#" + { "num": 1, + "bool": true, + "string": "s", + "array": + [{ "foo": false }, + { "bar": true }], + "nested": { "test": null } } + "# + ) + ); + } + + #[test] + fn test_document_recursion_limit() { + let mut value = String::new(); + value.extend(std::iter::repeat('[').take(300)); + value.extend(std::iter::repeat(']').take(300)); + assert_eq!( + Err(Error::custom( + "exceeded max recursion depth while parsing document" + )), + expect_document(&mut json_token_iter(value.as_bytes()).peekable()) + ); + + value = String::new(); + value.extend(std::iter::repeat("{\"t\":").take(300)); + value.push('1'); + value.extend(std::iter::repeat('}').take(300)); + assert_eq!( + Err(Error::custom( + "exceeded max recursion depth while parsing document" + )), + expect_document(&mut json_token_iter(value.as_bytes()).peekable()) + ); + } } diff --git a/sdk/smithy-json/src/escape.rs b/sdk/smithy-json/src/escape.rs index 2caf317b455b..0008810deeff 100644 --- a/sdk/smithy-json/src/escape.rs +++ b/sdk/smithy-json/src/escape.rs @@ -178,11 +178,11 @@ fn read_unicode_escapes(bytes: &[u8], into: &mut Vec) -> Result", "Russell Cohen Amazon SNS product page. For detailed information about Amazon SNS features\n and their associated API calls, see the Amazon SNS Developer Guide.

    \n

    For information on the permissions you need to use this API, see Identity and access management in Amazon SNS in the Amazon SNS Developer\n Guide.\n

    \n

    We also provide SDKs that enable you to access Amazon SNS from your preferred programming\n language. The SDKs contain functionality that automatically takes care of tasks such as:\n cryptographically signing your service requests, retrying requests, and handling error\n responses. For a list of available SDKs, go to Tools for Amazon Web Services.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -26,14 +26,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/sns/src/client.rs b/sdk/sns/src/client.rs index a1c3a7e18a70..5909c70a17ab 100644 --- a/sdk/sns/src/client.rs +++ b/sdk/sns/src/client.rs @@ -534,7 +534,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::CreateSMSSandboxPhoneNumberOutput, + crate::output::CreateSmsSandboxPhoneNumberOutput, smithy_http::result::SdkError, > where @@ -819,7 +819,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::DeleteSMSSandboxPhoneNumberOutput, + crate::output::DeleteSmsSandboxPhoneNumberOutput, smithy_http::result::SdkError, > where @@ -986,7 +986,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetSMSAttributesOutput, + crate::output::GetSmsAttributesOutput, smithy_http::result::SdkError, > where @@ -1033,7 +1033,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::GetSMSSandboxAccountStatusOutput, + crate::output::GetSmsSandboxAccountStatusOutput, smithy_http::result::SdkError, > where @@ -1339,7 +1339,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::ListSMSSandboxPhoneNumbersOutput, + crate::output::ListSmsSandboxPhoneNumbersOutput, smithy_http::result::SdkError, > where @@ -2092,7 +2092,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::SetSMSAttributesOutput, + crate::output::SetSmsAttributesOutput, smithy_http::result::SdkError, > where @@ -2837,7 +2837,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::VerifySMSSandboxPhoneNumberOutput, + crate::output::VerifySmsSandboxPhoneNumberOutput, smithy_http::result::SdkError, > where diff --git a/sdk/sns/src/error.rs b/sdk/sns/src/error.rs index b4cf7d9a5e57..7d115e7efc36 100644 --- a/sdk/sns/src/error.rs +++ b/sdk/sns/src/error.rs @@ -8,20 +8,20 @@ pub struct AddPermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AddPermissionErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AddPermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AddPermissionErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - AddPermissionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + AddPermissionErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + AddPermissionErrorKind::NotFoundException(_inner) => _inner.fmt(f), AddPermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -70,29 +70,35 @@ impl AddPermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - AddPermissionErrorKind::AuthorizationErrorError(_) + AddPermissionErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + AddPermissionErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + AddPermissionErrorKind::InvalidParameterException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, AddPermissionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, AddPermissionErrorKind::NotFoundException(_)) } } impl std::error::Error for AddPermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AddPermissionErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - AddPermissionErrorKind::InternalErrorError(_inner) => Some(_inner), - AddPermissionErrorKind::InvalidParameterError(_inner) => Some(_inner), - AddPermissionErrorKind::NotFoundError(_inner) => Some(_inner), + AddPermissionErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + AddPermissionErrorKind::InternalErrorException(_inner) => Some(_inner), + AddPermissionErrorKind::InvalidParameterException(_inner) => Some(_inner), + AddPermissionErrorKind::NotFoundException(_inner) => Some(_inner), AddPermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -107,20 +113,24 @@ pub struct CheckIfPhoneNumberIsOptedOutError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CheckIfPhoneNumberIsOptedOutErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CheckIfPhoneNumberIsOptedOutError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledError(_inner) => _inner.fmt(f), + CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledException(_inner) => _inner.fmt(f), CheckIfPhoneNumberIsOptedOutErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -169,38 +179,42 @@ impl CheckIfPhoneNumberIsOptedOutError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorError(_) + CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorError(_) + CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterError(_) + CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledError(_) + CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledException(_) ) } } impl std::error::Error for CheckIfPhoneNumberIsOptedOutError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorError(_inner) => Some(_inner), - CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterError(_inner) => Some(_inner), - CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledError(_inner) => Some(_inner), + CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorException(_inner) => Some(_inner), + CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledException(_inner) => Some(_inner), CheckIfPhoneNumberIsOptedOutErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -215,24 +229,28 @@ pub struct ConfirmSubscriptionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ConfirmSubscriptionErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - FilterPolicyLimitExceededError(crate::error::FilterPolicyLimitExceededError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), - SubscriptionLimitExceededError(crate::error::SubscriptionLimitExceededError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + FilterPolicyLimitExceededException(crate::error::FilterPolicyLimitExceededException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), + SubscriptionLimitExceededException(crate::error::SubscriptionLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ConfirmSubscriptionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ConfirmSubscriptionErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededError(_inner) => _inner.fmt(f), - ConfirmSubscriptionErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ConfirmSubscriptionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ConfirmSubscriptionErrorKind::NotFoundError(_inner) => _inner.fmt(f), - ConfirmSubscriptionErrorKind::SubscriptionLimitExceededError(_inner) => _inner.fmt(f), + ConfirmSubscriptionErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededException(_inner) => { + _inner.fmt(f) + } + ConfirmSubscriptionErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ConfirmSubscriptionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ConfirmSubscriptionErrorKind::NotFoundException(_inner) => _inner.fmt(f), + ConfirmSubscriptionErrorKind::SubscriptionLimitExceededException(_inner) => { + _inner.fmt(f) + } ConfirmSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -281,49 +299,56 @@ impl ConfirmSubscriptionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ConfirmSubscriptionErrorKind::AuthorizationErrorError(_) + ConfirmSubscriptionErrorKind::AuthorizationErrorException(_) ) } - pub fn is_filter_policy_limit_exceeded_error(&self) -> bool { + pub fn is_filter_policy_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededError(_) + ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ConfirmSubscriptionErrorKind::InternalErrorError(_) + ConfirmSubscriptionErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ConfirmSubscriptionErrorKind::InvalidParameterError(_) + ConfirmSubscriptionErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, ConfirmSubscriptionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + ConfirmSubscriptionErrorKind::NotFoundException(_) + ) } - pub fn is_subscription_limit_exceeded_error(&self) -> bool { + pub fn is_subscription_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ConfirmSubscriptionErrorKind::SubscriptionLimitExceededError(_) + ConfirmSubscriptionErrorKind::SubscriptionLimitExceededException(_) ) } } impl std::error::Error for ConfirmSubscriptionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ConfirmSubscriptionErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededError(_inner) => Some(_inner), - ConfirmSubscriptionErrorKind::InternalErrorError(_inner) => Some(_inner), - ConfirmSubscriptionErrorKind::InvalidParameterError(_inner) => Some(_inner), - ConfirmSubscriptionErrorKind::NotFoundError(_inner) => Some(_inner), - ConfirmSubscriptionErrorKind::SubscriptionLimitExceededError(_inner) => Some(_inner), + ConfirmSubscriptionErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededException(_inner) => { + Some(_inner) + } + ConfirmSubscriptionErrorKind::InternalErrorException(_inner) => Some(_inner), + ConfirmSubscriptionErrorKind::InvalidParameterException(_inner) => Some(_inner), + ConfirmSubscriptionErrorKind::NotFoundException(_inner) => Some(_inner), + ConfirmSubscriptionErrorKind::SubscriptionLimitExceededException(_inner) => { + Some(_inner) + } ConfirmSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -338,18 +363,20 @@ pub struct CreatePlatformApplicationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreatePlatformApplicationErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreatePlatformApplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreatePlatformApplicationErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - CreatePlatformApplicationErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - CreatePlatformApplicationErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + CreatePlatformApplicationErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + CreatePlatformApplicationErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + CreatePlatformApplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), CreatePlatformApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -398,31 +425,31 @@ impl CreatePlatformApplicationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformApplicationErrorKind::AuthorizationErrorError(_) + CreatePlatformApplicationErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformApplicationErrorKind::InternalErrorError(_) + CreatePlatformApplicationErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformApplicationErrorKind::InvalidParameterError(_) + CreatePlatformApplicationErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for CreatePlatformApplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreatePlatformApplicationErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - CreatePlatformApplicationErrorKind::InternalErrorError(_inner) => Some(_inner), - CreatePlatformApplicationErrorKind::InvalidParameterError(_inner) => Some(_inner), + CreatePlatformApplicationErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + CreatePlatformApplicationErrorKind::InternalErrorException(_inner) => Some(_inner), + CreatePlatformApplicationErrorKind::InvalidParameterException(_inner) => Some(_inner), CreatePlatformApplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -437,20 +464,20 @@ pub struct CreatePlatformEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreatePlatformEndpointErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreatePlatformEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreatePlatformEndpointErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - CreatePlatformEndpointErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - CreatePlatformEndpointErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreatePlatformEndpointErrorKind::NotFoundError(_inner) => _inner.fmt(f), + CreatePlatformEndpointErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + CreatePlatformEndpointErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + CreatePlatformEndpointErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreatePlatformEndpointErrorKind::NotFoundException(_inner) => _inner.fmt(f), CreatePlatformEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -499,38 +526,38 @@ impl CreatePlatformEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformEndpointErrorKind::AuthorizationErrorError(_) + CreatePlatformEndpointErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformEndpointErrorKind::InternalErrorError(_) + CreatePlatformEndpointErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformEndpointErrorKind::InvalidParameterError(_) + CreatePlatformEndpointErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - CreatePlatformEndpointErrorKind::NotFoundError(_) + CreatePlatformEndpointErrorKind::NotFoundException(_) ) } } impl std::error::Error for CreatePlatformEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreatePlatformEndpointErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - CreatePlatformEndpointErrorKind::InternalErrorError(_inner) => Some(_inner), - CreatePlatformEndpointErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreatePlatformEndpointErrorKind::NotFoundError(_inner) => Some(_inner), + CreatePlatformEndpointErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + CreatePlatformEndpointErrorKind::InternalErrorException(_inner) => Some(_inner), + CreatePlatformEndpointErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreatePlatformEndpointErrorKind::NotFoundException(_inner) => Some(_inner), CreatePlatformEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -545,24 +572,28 @@ pub struct CreateSMSSandboxPhoneNumberError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateSMSSandboxPhoneNumberErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - OptedOutError(crate::error::OptedOutError), - ThrottledError(crate::error::ThrottledError), - UserErrorError(crate::error::UserErrorError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + OptedOutException(crate::error::OptedOutException), + ThrottledException(crate::error::ThrottledException), + UserErrorException(crate::error::UserErrorException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateSMSSandboxPhoneNumberError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - CreateSMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateSMSSandboxPhoneNumberErrorKind::OptedOutError(_inner) => _inner.fmt(f), - CreateSMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => _inner.fmt(f), - CreateSMSSandboxPhoneNumberErrorKind::UserErrorError(_inner) => _inner.fmt(f), + CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + CreateSMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + CreateSMSSandboxPhoneNumberErrorKind::OptedOutException(_inner) => _inner.fmt(f), + CreateSMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => _inner.fmt(f), + CreateSMSSandboxPhoneNumberErrorKind::UserErrorException(_inner) => _inner.fmt(f), CreateSMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -611,52 +642,54 @@ impl CreateSMSSandboxPhoneNumberError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_) + CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::InternalErrorError(_) + CreateSMSSandboxPhoneNumberErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_) + CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_) ) } - pub fn is_opted_out_error(&self) -> bool { + pub fn is_opted_out_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::OptedOutError(_) + CreateSMSSandboxPhoneNumberErrorKind::OptedOutException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::ThrottledError(_) + CreateSMSSandboxPhoneNumberErrorKind::ThrottledException(_) ) } - pub fn is_user_error_error(&self) -> bool { + pub fn is_user_error_exception(&self) -> bool { matches!( &self.kind, - CreateSMSSandboxPhoneNumberErrorKind::UserErrorError(_) + CreateSMSSandboxPhoneNumberErrorKind::UserErrorException(_) ) } } impl std::error::Error for CreateSMSSandboxPhoneNumberError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - CreateSMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => Some(_inner), - CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateSMSSandboxPhoneNumberErrorKind::OptedOutError(_inner) => Some(_inner), - CreateSMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => Some(_inner), - CreateSMSSandboxPhoneNumberErrorKind::UserErrorError(_inner) => Some(_inner), + CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + CreateSMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => Some(_inner), + CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateSMSSandboxPhoneNumberErrorKind::OptedOutException(_inner) => Some(_inner), + CreateSMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => Some(_inner), + CreateSMSSandboxPhoneNumberErrorKind::UserErrorException(_inner) => Some(_inner), CreateSMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -671,30 +704,30 @@ pub struct CreateTopicError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CreateTopicErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSecurityError(crate::error::InvalidSecurityError), - StaleTagError(crate::error::StaleTagError), - TagLimitExceededError(crate::error::TagLimitExceededError), - TagPolicyError(crate::error::TagPolicyError), - TopicLimitExceededError(crate::error::TopicLimitExceededError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSecurityException(crate::error::InvalidSecurityException), + StaleTagException(crate::error::StaleTagException), + TagLimitExceededException(crate::error::TagLimitExceededException), + TagPolicyException(crate::error::TagPolicyException), + TopicLimitExceededException(crate::error::TopicLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for CreateTopicError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CreateTopicErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::ConcurrentAccessError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::StaleTagError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::TagLimitExceededError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::TagPolicyError(_inner) => _inner.fmt(f), - CreateTopicErrorKind::TopicLimitExceededError(_inner) => _inner.fmt(f), + CreateTopicErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::ConcurrentAccessException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::StaleTagException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::TagLimitExceededException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::TagPolicyException(_inner) => _inner.fmt(f), + CreateTopicErrorKind::TopicLimitExceededException(_inner) => _inner.fmt(f), CreateTopicErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -743,46 +776,64 @@ impl CreateTopicError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_concurrent_access_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::ConcurrentAccessError(_)) + pub fn is_concurrent_access_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::ConcurrentAccessException(_) + ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, CreateTopicErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_security_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::InvalidSecurityError(_)) + pub fn is_invalid_security_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::InvalidSecurityException(_) + ) } - pub fn is_stale_tag_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::StaleTagError(_)) + pub fn is_stale_tag_exception(&self) -> bool { + matches!(&self.kind, CreateTopicErrorKind::StaleTagException(_)) } - pub fn is_tag_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::TagLimitExceededError(_)) + pub fn is_tag_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::TagLimitExceededException(_) + ) } - pub fn is_tag_policy_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::TagPolicyError(_)) + pub fn is_tag_policy_exception(&self) -> bool { + matches!(&self.kind, CreateTopicErrorKind::TagPolicyException(_)) } - pub fn is_topic_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, CreateTopicErrorKind::TopicLimitExceededError(_)) + pub fn is_topic_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + CreateTopicErrorKind::TopicLimitExceededException(_) + ) } } impl std::error::Error for CreateTopicError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CreateTopicErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - CreateTopicErrorKind::ConcurrentAccessError(_inner) => Some(_inner), - CreateTopicErrorKind::InternalErrorError(_inner) => Some(_inner), - CreateTopicErrorKind::InvalidParameterError(_inner) => Some(_inner), - CreateTopicErrorKind::InvalidSecurityError(_inner) => Some(_inner), - CreateTopicErrorKind::StaleTagError(_inner) => Some(_inner), - CreateTopicErrorKind::TagLimitExceededError(_inner) => Some(_inner), - CreateTopicErrorKind::TagPolicyError(_inner) => Some(_inner), - CreateTopicErrorKind::TopicLimitExceededError(_inner) => Some(_inner), + CreateTopicErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + CreateTopicErrorKind::ConcurrentAccessException(_inner) => Some(_inner), + CreateTopicErrorKind::InternalErrorException(_inner) => Some(_inner), + CreateTopicErrorKind::InvalidParameterException(_inner) => Some(_inner), + CreateTopicErrorKind::InvalidSecurityException(_inner) => Some(_inner), + CreateTopicErrorKind::StaleTagException(_inner) => Some(_inner), + CreateTopicErrorKind::TagLimitExceededException(_inner) => Some(_inner), + CreateTopicErrorKind::TagPolicyException(_inner) => Some(_inner), + CreateTopicErrorKind::TopicLimitExceededException(_inner) => Some(_inner), CreateTopicErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -797,18 +848,18 @@ pub struct DeleteEndpointError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteEndpointErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteEndpointError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteEndpointErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - DeleteEndpointErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - DeleteEndpointErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + DeleteEndpointErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + DeleteEndpointErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + DeleteEndpointErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), DeleteEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -857,28 +908,31 @@ impl DeleteEndpointError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - DeleteEndpointErrorKind::AuthorizationErrorError(_) + DeleteEndpointErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, DeleteEndpointErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + DeleteEndpointErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteEndpointErrorKind::InvalidParameterError(_) + DeleteEndpointErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for DeleteEndpointError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteEndpointErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - DeleteEndpointErrorKind::InternalErrorError(_inner) => Some(_inner), - DeleteEndpointErrorKind::InvalidParameterError(_inner) => Some(_inner), + DeleteEndpointErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + DeleteEndpointErrorKind::InternalErrorException(_inner) => Some(_inner), + DeleteEndpointErrorKind::InvalidParameterException(_inner) => Some(_inner), DeleteEndpointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -893,18 +947,20 @@ pub struct DeletePlatformApplicationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeletePlatformApplicationErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeletePlatformApplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeletePlatformApplicationErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - DeletePlatformApplicationErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - DeletePlatformApplicationErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + DeletePlatformApplicationErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + DeletePlatformApplicationErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + DeletePlatformApplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), DeletePlatformApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -953,31 +1009,31 @@ impl DeletePlatformApplicationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - DeletePlatformApplicationErrorKind::AuthorizationErrorError(_) + DeletePlatformApplicationErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - DeletePlatformApplicationErrorKind::InternalErrorError(_) + DeletePlatformApplicationErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeletePlatformApplicationErrorKind::InvalidParameterError(_) + DeletePlatformApplicationErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for DeletePlatformApplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeletePlatformApplicationErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - DeletePlatformApplicationErrorKind::InternalErrorError(_inner) => Some(_inner), - DeletePlatformApplicationErrorKind::InvalidParameterError(_inner) => Some(_inner), + DeletePlatformApplicationErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + DeletePlatformApplicationErrorKind::InternalErrorException(_inner) => Some(_inner), + DeletePlatformApplicationErrorKind::InvalidParameterException(_inner) => Some(_inner), DeletePlatformApplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -992,24 +1048,30 @@ pub struct DeleteSMSSandboxPhoneNumberError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteSMSSandboxPhoneNumberErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottledError(crate::error::ThrottledError), - UserErrorError(crate::error::UserErrorError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottledException(crate::error::ThrottledException), + UserErrorException(crate::error::UserErrorException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteSMSSandboxPhoneNumberError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - DeleteSMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => _inner.fmt(f), - DeleteSMSSandboxPhoneNumberErrorKind::UserErrorError(_inner) => _inner.fmt(f), + DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + DeleteSMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => _inner.fmt(f), + DeleteSMSSandboxPhoneNumberErrorKind::UserErrorException(_inner) => _inner.fmt(f), DeleteSMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1058,52 +1120,54 @@ impl DeleteSMSSandboxPhoneNumberError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_) + DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorError(_) + DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_) + DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_) + DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::ThrottledError(_) + DeleteSMSSandboxPhoneNumberErrorKind::ThrottledException(_) ) } - pub fn is_user_error_error(&self) -> bool { + pub fn is_user_error_exception(&self) -> bool { matches!( &self.kind, - DeleteSMSSandboxPhoneNumberErrorKind::UserErrorError(_) + DeleteSMSSandboxPhoneNumberErrorKind::UserErrorException(_) ) } } impl std::error::Error for DeleteSMSSandboxPhoneNumberError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => Some(_inner), - DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - DeleteSMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => Some(_inner), - DeleteSMSSandboxPhoneNumberErrorKind::UserErrorError(_inner) => Some(_inner), + DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => Some(_inner), + DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + DeleteSMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => Some(_inner), + DeleteSMSSandboxPhoneNumberErrorKind::UserErrorException(_inner) => Some(_inner), DeleteSMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1118,26 +1182,26 @@ pub struct DeleteTopicError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeleteTopicErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), - StaleTagError(crate::error::StaleTagError), - TagPolicyError(crate::error::TagPolicyError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), + StaleTagException(crate::error::StaleTagException), + TagPolicyException(crate::error::TagPolicyException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeleteTopicError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeleteTopicErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::ConcurrentAccessError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::NotFoundError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::StaleTagError(_inner) => _inner.fmt(f), - DeleteTopicErrorKind::TagPolicyError(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::ConcurrentAccessException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::NotFoundException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::StaleTagException(_inner) => _inner.fmt(f), + DeleteTopicErrorKind::TagPolicyException(_inner) => _inner.fmt(f), DeleteTopicErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1186,38 +1250,47 @@ impl DeleteTopicError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTopicErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_concurrent_access_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::ConcurrentAccessError(_)) + pub fn is_concurrent_access_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTopicErrorKind::ConcurrentAccessException(_) + ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, DeleteTopicErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + DeleteTopicErrorKind::InvalidParameterException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, DeleteTopicErrorKind::NotFoundException(_)) } - pub fn is_stale_tag_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::StaleTagError(_)) + pub fn is_stale_tag_exception(&self) -> bool { + matches!(&self.kind, DeleteTopicErrorKind::StaleTagException(_)) } - pub fn is_tag_policy_error(&self) -> bool { - matches!(&self.kind, DeleteTopicErrorKind::TagPolicyError(_)) + pub fn is_tag_policy_exception(&self) -> bool { + matches!(&self.kind, DeleteTopicErrorKind::TagPolicyException(_)) } } impl std::error::Error for DeleteTopicError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeleteTopicErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - DeleteTopicErrorKind::ConcurrentAccessError(_inner) => Some(_inner), - DeleteTopicErrorKind::InternalErrorError(_inner) => Some(_inner), - DeleteTopicErrorKind::InvalidParameterError(_inner) => Some(_inner), - DeleteTopicErrorKind::NotFoundError(_inner) => Some(_inner), - DeleteTopicErrorKind::StaleTagError(_inner) => Some(_inner), - DeleteTopicErrorKind::TagPolicyError(_inner) => Some(_inner), + DeleteTopicErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + DeleteTopicErrorKind::ConcurrentAccessException(_inner) => Some(_inner), + DeleteTopicErrorKind::InternalErrorException(_inner) => Some(_inner), + DeleteTopicErrorKind::InvalidParameterException(_inner) => Some(_inner), + DeleteTopicErrorKind::NotFoundException(_inner) => Some(_inner), + DeleteTopicErrorKind::StaleTagException(_inner) => Some(_inner), + DeleteTopicErrorKind::TagPolicyException(_inner) => Some(_inner), DeleteTopicErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1232,20 +1305,20 @@ pub struct GetEndpointAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetEndpointAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetEndpointAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetEndpointAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - GetEndpointAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetEndpointAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetEndpointAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GetEndpointAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + GetEndpointAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + GetEndpointAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetEndpointAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), GetEndpointAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1294,35 +1367,38 @@ impl GetEndpointAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetEndpointAttributesErrorKind::AuthorizationErrorError(_) + GetEndpointAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - GetEndpointAttributesErrorKind::InternalErrorError(_) + GetEndpointAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetEndpointAttributesErrorKind::InvalidParameterError(_) + GetEndpointAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetEndpointAttributesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetEndpointAttributesErrorKind::NotFoundException(_) + ) } } impl std::error::Error for GetEndpointAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetEndpointAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - GetEndpointAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - GetEndpointAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetEndpointAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + GetEndpointAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + GetEndpointAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + GetEndpointAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetEndpointAttributesErrorKind::NotFoundException(_inner) => Some(_inner), GetEndpointAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1337,24 +1413,26 @@ pub struct GetPlatformApplicationAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPlatformApplicationAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetPlatformApplicationAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_inner) => { + GetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + GetPlatformApplicationAttributesErrorKind::InternalErrorException(_inner) => { _inner.fmt(f) } - GetPlatformApplicationAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetPlatformApplicationAttributesErrorKind::InvalidParameterError(_inner) => { + GetPlatformApplicationAttributesErrorKind::InvalidParameterException(_inner) => { _inner.fmt(f) } - GetPlatformApplicationAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GetPlatformApplicationAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), GetPlatformApplicationAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1403,42 +1481,44 @@ impl GetPlatformApplicationAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_) + GetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - GetPlatformApplicationAttributesErrorKind::InternalErrorError(_) + GetPlatformApplicationAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetPlatformApplicationAttributesErrorKind::InvalidParameterError(_) + GetPlatformApplicationAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetPlatformApplicationAttributesErrorKind::NotFoundError(_) + GetPlatformApplicationAttributesErrorKind::NotFoundException(_) ) } } impl std::error::Error for GetPlatformApplicationAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_inner) => { + GetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_inner) => { Some(_inner) } - GetPlatformApplicationAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - GetPlatformApplicationAttributesErrorKind::InvalidParameterError(_inner) => { + GetPlatformApplicationAttributesErrorKind::InternalErrorException(_inner) => { Some(_inner) } - GetPlatformApplicationAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + GetPlatformApplicationAttributesErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + GetPlatformApplicationAttributesErrorKind::NotFoundException(_inner) => Some(_inner), GetPlatformApplicationAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1453,20 +1533,20 @@ pub struct GetSMSAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSMSAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSMSAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSMSAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - GetSMSAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetSMSAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetSMSAttributesErrorKind::ThrottledError(_inner) => _inner.fmt(f), + GetSMSAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + GetSMSAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + GetSMSAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetSMSAttributesErrorKind::ThrottledException(_inner) => _inner.fmt(f), GetSMSAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1515,32 +1595,35 @@ impl GetSMSAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetSMSAttributesErrorKind::AuthorizationErrorError(_) + GetSMSAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, GetSMSAttributesErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + GetSMSAttributesErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetSMSAttributesErrorKind::InvalidParameterError(_) + GetSMSAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { - matches!(&self.kind, GetSMSAttributesErrorKind::ThrottledError(_)) + pub fn is_throttled_exception(&self) -> bool { + matches!(&self.kind, GetSMSAttributesErrorKind::ThrottledException(_)) } } impl std::error::Error for GetSMSAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSMSAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - GetSMSAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - GetSMSAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetSMSAttributesErrorKind::ThrottledError(_inner) => Some(_inner), + GetSMSAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + GetSMSAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + GetSMSAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetSMSAttributesErrorKind::ThrottledException(_inner) => Some(_inner), GetSMSAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1555,18 +1638,20 @@ pub struct GetSMSSandboxAccountStatusError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSMSSandboxAccountStatusErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSMSSandboxAccountStatusError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - GetSMSSandboxAccountStatusErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetSMSSandboxAccountStatusErrorKind::ThrottledError(_inner) => _inner.fmt(f), + GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + GetSMSSandboxAccountStatusErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + GetSMSSandboxAccountStatusErrorKind::ThrottledException(_inner) => _inner.fmt(f), GetSMSSandboxAccountStatusErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1615,31 +1700,33 @@ impl GetSMSSandboxAccountStatusError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorError(_) + GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - GetSMSSandboxAccountStatusErrorKind::InternalErrorError(_) + GetSMSSandboxAccountStatusErrorKind::InternalErrorException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - GetSMSSandboxAccountStatusErrorKind::ThrottledError(_) + GetSMSSandboxAccountStatusErrorKind::ThrottledException(_) ) } } impl std::error::Error for GetSMSSandboxAccountStatusError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - GetSMSSandboxAccountStatusErrorKind::InternalErrorError(_inner) => Some(_inner), - GetSMSSandboxAccountStatusErrorKind::ThrottledError(_inner) => Some(_inner), + GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + GetSMSSandboxAccountStatusErrorKind::InternalErrorException(_inner) => Some(_inner), + GetSMSSandboxAccountStatusErrorKind::ThrottledException(_inner) => Some(_inner), GetSMSSandboxAccountStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1654,20 +1741,22 @@ pub struct GetSubscriptionAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSubscriptionAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSubscriptionAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSubscriptionAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - GetSubscriptionAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetSubscriptionAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetSubscriptionAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GetSubscriptionAttributesErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + GetSubscriptionAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + GetSubscriptionAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetSubscriptionAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), GetSubscriptionAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1716,38 +1805,38 @@ impl GetSubscriptionAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetSubscriptionAttributesErrorKind::AuthorizationErrorError(_) + GetSubscriptionAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - GetSubscriptionAttributesErrorKind::InternalErrorError(_) + GetSubscriptionAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetSubscriptionAttributesErrorKind::InvalidParameterError(_) + GetSubscriptionAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - GetSubscriptionAttributesErrorKind::NotFoundError(_) + GetSubscriptionAttributesErrorKind::NotFoundException(_) ) } } impl std::error::Error for GetSubscriptionAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSubscriptionAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - GetSubscriptionAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - GetSubscriptionAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetSubscriptionAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + GetSubscriptionAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + GetSubscriptionAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + GetSubscriptionAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetSubscriptionAttributesErrorKind::NotFoundException(_inner) => Some(_inner), GetSubscriptionAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1762,22 +1851,22 @@ pub struct GetTopicAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetTopicAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSecurityError(crate::error::InvalidSecurityError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSecurityException(crate::error::InvalidSecurityException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetTopicAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetTopicAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - GetTopicAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - GetTopicAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - GetTopicAttributesErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - GetTopicAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + GetTopicAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + GetTopicAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + GetTopicAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + GetTopicAttributesErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + GetTopicAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), GetTopicAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1826,42 +1915,45 @@ impl GetTopicAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - GetTopicAttributesErrorKind::AuthorizationErrorError(_) + GetTopicAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - GetTopicAttributesErrorKind::InternalErrorError(_) + GetTopicAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - GetTopicAttributesErrorKind::InvalidParameterError(_) + GetTopicAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_security_error(&self) -> bool { + pub fn is_invalid_security_exception(&self) -> bool { matches!( &self.kind, - GetTopicAttributesErrorKind::InvalidSecurityError(_) + GetTopicAttributesErrorKind::InvalidSecurityException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, GetTopicAttributesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + GetTopicAttributesErrorKind::NotFoundException(_) + ) } } impl std::error::Error for GetTopicAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetTopicAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - GetTopicAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - GetTopicAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - GetTopicAttributesErrorKind::InvalidSecurityError(_inner) => Some(_inner), - GetTopicAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + GetTopicAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + GetTopicAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + GetTopicAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + GetTopicAttributesErrorKind::InvalidSecurityException(_inner) => Some(_inner), + GetTopicAttributesErrorKind::NotFoundException(_inner) => Some(_inner), GetTopicAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1876,26 +1968,26 @@ pub struct ListEndpointsByPlatformApplicationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListEndpointsByPlatformApplicationErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListEndpointsByPlatformApplicationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorError(_inner) => { + ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorException(_inner) => { _inner.fmt(f) } - ListEndpointsByPlatformApplicationErrorKind::InternalErrorError(_inner) => { + ListEndpointsByPlatformApplicationErrorKind::InternalErrorException(_inner) => { _inner.fmt(f) } - ListEndpointsByPlatformApplicationErrorKind::InvalidParameterError(_inner) => { + ListEndpointsByPlatformApplicationErrorKind::InvalidParameterException(_inner) => { _inner.fmt(f) } - ListEndpointsByPlatformApplicationErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListEndpointsByPlatformApplicationErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListEndpointsByPlatformApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1947,42 +2039,44 @@ impl ListEndpointsByPlatformApplicationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorError(_) + ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListEndpointsByPlatformApplicationErrorKind::InternalErrorError(_) + ListEndpointsByPlatformApplicationErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListEndpointsByPlatformApplicationErrorKind::InvalidParameterError(_) + ListEndpointsByPlatformApplicationErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - ListEndpointsByPlatformApplicationErrorKind::NotFoundError(_) + ListEndpointsByPlatformApplicationErrorKind::NotFoundException(_) ) } } impl std::error::Error for ListEndpointsByPlatformApplicationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorError(_inner) => { + ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorException(_inner) => { Some(_inner) } - ListEndpointsByPlatformApplicationErrorKind::InternalErrorError(_inner) => Some(_inner), - ListEndpointsByPlatformApplicationErrorKind::InvalidParameterError(_inner) => { + ListEndpointsByPlatformApplicationErrorKind::InternalErrorException(_inner) => { Some(_inner) } - ListEndpointsByPlatformApplicationErrorKind::NotFoundError(_inner) => Some(_inner), + ListEndpointsByPlatformApplicationErrorKind::InvalidParameterException(_inner) => { + Some(_inner) + } + ListEndpointsByPlatformApplicationErrorKind::NotFoundException(_inner) => Some(_inner), ListEndpointsByPlatformApplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1997,22 +2091,22 @@ pub struct ListOriginationNumbersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListOriginationNumbersErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), - ValidationError(crate::error::ValidationError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), + ValidationException(crate::error::ValidationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListOriginationNumbersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListOriginationNumbersErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListOriginationNumbersErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListOriginationNumbersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListOriginationNumbersErrorKind::ThrottledError(_inner) => _inner.fmt(f), - ListOriginationNumbersErrorKind::ValidationError(_inner) => _inner.fmt(f), + ListOriginationNumbersErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListOriginationNumbersErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListOriginationNumbersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListOriginationNumbersErrorKind::ThrottledException(_inner) => _inner.fmt(f), + ListOriginationNumbersErrorKind::ValidationException(_inner) => _inner.fmt(f), ListOriginationNumbersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2061,45 +2155,45 @@ impl ListOriginationNumbersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListOriginationNumbersErrorKind::AuthorizationErrorError(_) + ListOriginationNumbersErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListOriginationNumbersErrorKind::InternalErrorError(_) + ListOriginationNumbersErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListOriginationNumbersErrorKind::InvalidParameterError(_) + ListOriginationNumbersErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - ListOriginationNumbersErrorKind::ThrottledError(_) + ListOriginationNumbersErrorKind::ThrottledException(_) ) } - pub fn is_validation_error(&self) -> bool { + pub fn is_validation_exception(&self) -> bool { matches!( &self.kind, - ListOriginationNumbersErrorKind::ValidationError(_) + ListOriginationNumbersErrorKind::ValidationException(_) ) } } impl std::error::Error for ListOriginationNumbersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListOriginationNumbersErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListOriginationNumbersErrorKind::InternalErrorError(_inner) => Some(_inner), - ListOriginationNumbersErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListOriginationNumbersErrorKind::ThrottledError(_inner) => Some(_inner), - ListOriginationNumbersErrorKind::ValidationError(_inner) => Some(_inner), + ListOriginationNumbersErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListOriginationNumbersErrorKind::InternalErrorException(_inner) => Some(_inner), + ListOriginationNumbersErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListOriginationNumbersErrorKind::ThrottledException(_inner) => Some(_inner), + ListOriginationNumbersErrorKind::ValidationException(_inner) => Some(_inner), ListOriginationNumbersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2114,20 +2208,20 @@ pub struct ListPhoneNumbersOptedOutError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPhoneNumbersOptedOutErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPhoneNumbersOptedOutError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListPhoneNumbersOptedOutErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListPhoneNumbersOptedOutErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListPhoneNumbersOptedOutErrorKind::ThrottledError(_inner) => _inner.fmt(f), + ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListPhoneNumbersOptedOutErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListPhoneNumbersOptedOutErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListPhoneNumbersOptedOutErrorKind::ThrottledException(_inner) => _inner.fmt(f), ListPhoneNumbersOptedOutErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2176,38 +2270,38 @@ impl ListPhoneNumbersOptedOutError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorError(_) + ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListPhoneNumbersOptedOutErrorKind::InternalErrorError(_) + ListPhoneNumbersOptedOutErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListPhoneNumbersOptedOutErrorKind::InvalidParameterError(_) + ListPhoneNumbersOptedOutErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - ListPhoneNumbersOptedOutErrorKind::ThrottledError(_) + ListPhoneNumbersOptedOutErrorKind::ThrottledException(_) ) } } impl std::error::Error for ListPhoneNumbersOptedOutError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListPhoneNumbersOptedOutErrorKind::InternalErrorError(_inner) => Some(_inner), - ListPhoneNumbersOptedOutErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListPhoneNumbersOptedOutErrorKind::ThrottledError(_inner) => Some(_inner), + ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListPhoneNumbersOptedOutErrorKind::InternalErrorException(_inner) => Some(_inner), + ListPhoneNumbersOptedOutErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListPhoneNumbersOptedOutErrorKind::ThrottledException(_inner) => Some(_inner), ListPhoneNumbersOptedOutErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2222,18 +2316,18 @@ pub struct ListPlatformApplicationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListPlatformApplicationsErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListPlatformApplicationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListPlatformApplicationsErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListPlatformApplicationsErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListPlatformApplicationsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + ListPlatformApplicationsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListPlatformApplicationsErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListPlatformApplicationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), ListPlatformApplicationsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2282,31 +2376,31 @@ impl ListPlatformApplicationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListPlatformApplicationsErrorKind::AuthorizationErrorError(_) + ListPlatformApplicationsErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListPlatformApplicationsErrorKind::InternalErrorError(_) + ListPlatformApplicationsErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListPlatformApplicationsErrorKind::InvalidParameterError(_) + ListPlatformApplicationsErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for ListPlatformApplicationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListPlatformApplicationsErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListPlatformApplicationsErrorKind::InternalErrorError(_inner) => Some(_inner), - ListPlatformApplicationsErrorKind::InvalidParameterError(_inner) => Some(_inner), + ListPlatformApplicationsErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListPlatformApplicationsErrorKind::InternalErrorException(_inner) => Some(_inner), + ListPlatformApplicationsErrorKind::InvalidParameterException(_inner) => Some(_inner), ListPlatformApplicationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2321,22 +2415,24 @@ pub struct ListSMSSandboxPhoneNumbersError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSMSSandboxPhoneNumbersErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSMSSandboxPhoneNumbersError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListSMSSandboxPhoneNumbersErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListSMSSandboxPhoneNumbersErrorKind::ThrottledError(_inner) => _inner.fmt(f), + ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + ListSMSSandboxPhoneNumbersErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListSMSSandboxPhoneNumbersErrorKind::ThrottledException(_inner) => _inner.fmt(f), ListSMSSandboxPhoneNumbersErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2385,45 +2481,47 @@ impl ListSMSSandboxPhoneNumbersError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorError(_) + ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListSMSSandboxPhoneNumbersErrorKind::InternalErrorError(_) + ListSMSSandboxPhoneNumbersErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterError(_) + ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundError(_) + ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - ListSMSSandboxPhoneNumbersErrorKind::ThrottledError(_) + ListSMSSandboxPhoneNumbersErrorKind::ThrottledException(_) ) } } impl std::error::Error for ListSMSSandboxPhoneNumbersError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListSMSSandboxPhoneNumbersErrorKind::InternalErrorError(_inner) => Some(_inner), - ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListSMSSandboxPhoneNumbersErrorKind::ThrottledError(_inner) => Some(_inner), + ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + ListSMSSandboxPhoneNumbersErrorKind::InternalErrorException(_inner) => Some(_inner), + ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListSMSSandboxPhoneNumbersErrorKind::ThrottledException(_inner) => Some(_inner), ListSMSSandboxPhoneNumbersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2438,18 +2536,18 @@ pub struct ListSubscriptionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSubscriptionsErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSubscriptionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSubscriptionsErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListSubscriptionsErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListSubscriptionsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + ListSubscriptionsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListSubscriptionsErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListSubscriptionsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), ListSubscriptionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2498,31 +2596,31 @@ impl ListSubscriptionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsErrorKind::AuthorizationErrorError(_) + ListSubscriptionsErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsErrorKind::InternalErrorError(_) + ListSubscriptionsErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsErrorKind::InvalidParameterError(_) + ListSubscriptionsErrorKind::InvalidParameterException(_) ) } } impl std::error::Error for ListSubscriptionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSubscriptionsErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListSubscriptionsErrorKind::InternalErrorError(_inner) => Some(_inner), - ListSubscriptionsErrorKind::InvalidParameterError(_inner) => Some(_inner), + ListSubscriptionsErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListSubscriptionsErrorKind::InternalErrorException(_inner) => Some(_inner), + ListSubscriptionsErrorKind::InvalidParameterException(_inner) => Some(_inner), ListSubscriptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2537,20 +2635,20 @@ pub struct ListSubscriptionsByTopicError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListSubscriptionsByTopicErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListSubscriptionsByTopicError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListSubscriptionsByTopicErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListSubscriptionsByTopicErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListSubscriptionsByTopicErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListSubscriptionsByTopicErrorKind::NotFoundError(_inner) => _inner.fmt(f), + ListSubscriptionsByTopicErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListSubscriptionsByTopicErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListSubscriptionsByTopicErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListSubscriptionsByTopicErrorKind::NotFoundException(_inner) => _inner.fmt(f), ListSubscriptionsByTopicErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2599,38 +2697,38 @@ impl ListSubscriptionsByTopicError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsByTopicErrorKind::AuthorizationErrorError(_) + ListSubscriptionsByTopicErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsByTopicErrorKind::InternalErrorError(_) + ListSubscriptionsByTopicErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsByTopicErrorKind::InvalidParameterError(_) + ListSubscriptionsByTopicErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - ListSubscriptionsByTopicErrorKind::NotFoundError(_) + ListSubscriptionsByTopicErrorKind::NotFoundException(_) ) } } impl std::error::Error for ListSubscriptionsByTopicError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListSubscriptionsByTopicErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListSubscriptionsByTopicErrorKind::InternalErrorError(_inner) => Some(_inner), - ListSubscriptionsByTopicErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListSubscriptionsByTopicErrorKind::NotFoundError(_inner) => Some(_inner), + ListSubscriptionsByTopicErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListSubscriptionsByTopicErrorKind::InternalErrorException(_inner) => Some(_inner), + ListSubscriptionsByTopicErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListSubscriptionsByTopicErrorKind::NotFoundException(_inner) => Some(_inner), ListSubscriptionsByTopicErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2645,22 +2743,22 @@ pub struct ListTagsForResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTagsForResourceErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - TagPolicyError(crate::error::TagPolicyError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + TagPolicyException(crate::error::TagPolicyException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTagsForResourceErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ConcurrentAccessError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - ListTagsForResourceErrorKind::TagPolicyError(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ConcurrentAccessException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + ListTagsForResourceErrorKind::TagPolicyException(_inner) => _inner.fmt(f), ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2709,42 +2807,45 @@ impl ListTagsForResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::AuthorizationErrorError(_) + ListTagsForResourceErrorKind::AuthorizationErrorException(_) ) } - pub fn is_concurrent_access_error(&self) -> bool { + pub fn is_concurrent_access_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::ConcurrentAccessError(_) + ListTagsForResourceErrorKind::ConcurrentAccessException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::InvalidParameterError(_) + ListTagsForResourceErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - ListTagsForResourceErrorKind::ResourceNotFoundError(_) + ListTagsForResourceErrorKind::ResourceNotFoundException(_) ) } - pub fn is_tag_policy_error(&self) -> bool { - matches!(&self.kind, ListTagsForResourceErrorKind::TagPolicyError(_)) + pub fn is_tag_policy_exception(&self) -> bool { + matches!( + &self.kind, + ListTagsForResourceErrorKind::TagPolicyException(_) + ) } } impl std::error::Error for ListTagsForResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTagsForResourceErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ConcurrentAccessError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - ListTagsForResourceErrorKind::TagPolicyError(_inner) => Some(_inner), + ListTagsForResourceErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ConcurrentAccessException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + ListTagsForResourceErrorKind::TagPolicyException(_inner) => Some(_inner), ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2759,18 +2860,18 @@ pub struct ListTopicsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ListTopicsErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for ListTopicsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ListTopicsErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - ListTopicsErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - ListTopicsErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), + ListTopicsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + ListTopicsErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + ListTopicsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), ListTopicsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2819,22 +2920,28 @@ impl ListTopicsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, ListTopicsErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + ListTopicsErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, ListTopicsErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, ListTopicsErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, ListTopicsErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + ListTopicsErrorKind::InvalidParameterException(_) + ) } } impl std::error::Error for ListTopicsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ListTopicsErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - ListTopicsErrorKind::InternalErrorError(_inner) => Some(_inner), - ListTopicsErrorKind::InvalidParameterError(_inner) => Some(_inner), + ListTopicsErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + ListTopicsErrorKind::InternalErrorException(_inner) => Some(_inner), + ListTopicsErrorKind::InvalidParameterException(_inner) => Some(_inner), ListTopicsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2849,20 +2956,20 @@ pub struct OptInPhoneNumberError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum OptInPhoneNumberErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for OptInPhoneNumberError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - OptInPhoneNumberErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - OptInPhoneNumberErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - OptInPhoneNumberErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - OptInPhoneNumberErrorKind::ThrottledError(_inner) => _inner.fmt(f), + OptInPhoneNumberErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + OptInPhoneNumberErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + OptInPhoneNumberErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + OptInPhoneNumberErrorKind::ThrottledException(_inner) => _inner.fmt(f), OptInPhoneNumberErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2911,32 +3018,35 @@ impl OptInPhoneNumberError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - OptInPhoneNumberErrorKind::AuthorizationErrorError(_) + OptInPhoneNumberErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, OptInPhoneNumberErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + OptInPhoneNumberErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - OptInPhoneNumberErrorKind::InvalidParameterError(_) + OptInPhoneNumberErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { - matches!(&self.kind, OptInPhoneNumberErrorKind::ThrottledError(_)) + pub fn is_throttled_exception(&self) -> bool { + matches!(&self.kind, OptInPhoneNumberErrorKind::ThrottledException(_)) } } impl std::error::Error for OptInPhoneNumberError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - OptInPhoneNumberErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - OptInPhoneNumberErrorKind::InternalErrorError(_inner) => Some(_inner), - OptInPhoneNumberErrorKind::InvalidParameterError(_inner) => Some(_inner), - OptInPhoneNumberErrorKind::ThrottledError(_inner) => Some(_inner), + OptInPhoneNumberErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + OptInPhoneNumberErrorKind::InternalErrorException(_inner) => Some(_inner), + OptInPhoneNumberErrorKind::InvalidParameterException(_inner) => Some(_inner), + OptInPhoneNumberErrorKind::ThrottledException(_inner) => Some(_inner), OptInPhoneNumberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2951,40 +3061,40 @@ pub struct PublishError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PublishErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - EndpointDisabledError(crate::error::EndpointDisabledError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - InvalidSecurityError(crate::error::InvalidSecurityError), - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - NotFoundError(crate::error::NotFoundError), - PlatformApplicationDisabledError(crate::error::PlatformApplicationDisabledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + EndpointDisabledException(crate::error::EndpointDisabledException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + InvalidSecurityException(crate::error::InvalidSecurityException), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + NotFoundException(crate::error::NotFoundException), + PlatformApplicationDisabledException(crate::error::PlatformApplicationDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PublishError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PublishErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - PublishErrorKind::EndpointDisabledError(_inner) => _inner.fmt(f), - PublishErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - PublishErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - PublishErrorKind::InvalidParameterValueError(_inner) => _inner.fmt(f), - PublishErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - PublishErrorKind::KMSAccessDeniedError(_inner) => _inner.fmt(f), - PublishErrorKind::KMSDisabledError(_inner) => _inner.fmt(f), - PublishErrorKind::KMSInvalidStateError(_inner) => _inner.fmt(f), - PublishErrorKind::KMSNotFoundError(_inner) => _inner.fmt(f), - PublishErrorKind::KMSOptInRequired(_inner) => _inner.fmt(f), - PublishErrorKind::KMSThrottlingError(_inner) => _inner.fmt(f), - PublishErrorKind::NotFoundError(_inner) => _inner.fmt(f), - PublishErrorKind::PlatformApplicationDisabledError(_inner) => _inner.fmt(f), + PublishErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + PublishErrorKind::EndpointDisabledException(_inner) => _inner.fmt(f), + PublishErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + PublishErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + PublishErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f), + PublishErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + PublishErrorKind::KmsAccessDeniedException(_inner) => _inner.fmt(f), + PublishErrorKind::KmsDisabledException(_inner) => _inner.fmt(f), + PublishErrorKind::KmsInvalidStateException(_inner) => _inner.fmt(f), + PublishErrorKind::KmsNotFoundException(_inner) => _inner.fmt(f), + PublishErrorKind::KmsOptInRequired(_inner) => _inner.fmt(f), + PublishErrorKind::KmsThrottlingException(_inner) => _inner.fmt(f), + PublishErrorKind::NotFoundException(_inner) => _inner.fmt(f), + PublishErrorKind::PlatformApplicationDisabledException(_inner) => _inner.fmt(f), PublishErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3033,69 +3143,72 @@ impl PublishError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::AuthorizationErrorException(_)) } - pub fn is_endpoint_disabled_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::EndpointDisabledError(_)) + pub fn is_endpoint_disabled_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::EndpointDisabledException(_)) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::InvalidParameterException(_)) } - pub fn is_invalid_parameter_value_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::InvalidParameterValueError(_)) + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!( + &self.kind, + PublishErrorKind::InvalidParameterValueException(_) + ) } - pub fn is_invalid_security_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::InvalidSecurityError(_)) + pub fn is_invalid_security_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::InvalidSecurityException(_)) } - pub fn is_kms_access_denied_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSAccessDeniedError(_)) + pub fn is_kms_access_denied_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::KmsAccessDeniedException(_)) } - pub fn is_kms_disabled_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSDisabledError(_)) + pub fn is_kms_disabled_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::KmsDisabledException(_)) } - pub fn is_kms_invalid_state_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSInvalidStateError(_)) + pub fn is_kms_invalid_state_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::KmsInvalidStateException(_)) } - pub fn is_kms_not_found_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSNotFoundError(_)) + pub fn is_kms_not_found_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::KmsNotFoundException(_)) } pub fn is_kms_opt_in_required(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSOptInRequired(_)) + matches!(&self.kind, PublishErrorKind::KmsOptInRequired(_)) } - pub fn is_kms_throttling_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::KMSThrottlingError(_)) + pub fn is_kms_throttling_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::KmsThrottlingException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, PublishErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, PublishErrorKind::NotFoundException(_)) } - pub fn is_platform_application_disabled_error(&self) -> bool { + pub fn is_platform_application_disabled_exception(&self) -> bool { matches!( &self.kind, - PublishErrorKind::PlatformApplicationDisabledError(_) + PublishErrorKind::PlatformApplicationDisabledException(_) ) } } impl std::error::Error for PublishError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PublishErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - PublishErrorKind::EndpointDisabledError(_inner) => Some(_inner), - PublishErrorKind::InternalErrorError(_inner) => Some(_inner), - PublishErrorKind::InvalidParameterError(_inner) => Some(_inner), - PublishErrorKind::InvalidParameterValueError(_inner) => Some(_inner), - PublishErrorKind::InvalidSecurityError(_inner) => Some(_inner), - PublishErrorKind::KMSAccessDeniedError(_inner) => Some(_inner), - PublishErrorKind::KMSDisabledError(_inner) => Some(_inner), - PublishErrorKind::KMSInvalidStateError(_inner) => Some(_inner), - PublishErrorKind::KMSNotFoundError(_inner) => Some(_inner), - PublishErrorKind::KMSOptInRequired(_inner) => Some(_inner), - PublishErrorKind::KMSThrottlingError(_inner) => Some(_inner), - PublishErrorKind::NotFoundError(_inner) => Some(_inner), - PublishErrorKind::PlatformApplicationDisabledError(_inner) => Some(_inner), + PublishErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + PublishErrorKind::EndpointDisabledException(_inner) => Some(_inner), + PublishErrorKind::InternalErrorException(_inner) => Some(_inner), + PublishErrorKind::InvalidParameterException(_inner) => Some(_inner), + PublishErrorKind::InvalidParameterValueException(_inner) => Some(_inner), + PublishErrorKind::InvalidSecurityException(_inner) => Some(_inner), + PublishErrorKind::KmsAccessDeniedException(_inner) => Some(_inner), + PublishErrorKind::KmsDisabledException(_inner) => Some(_inner), + PublishErrorKind::KmsInvalidStateException(_inner) => Some(_inner), + PublishErrorKind::KmsNotFoundException(_inner) => Some(_inner), + PublishErrorKind::KmsOptInRequired(_inner) => Some(_inner), + PublishErrorKind::KmsThrottlingException(_inner) => Some(_inner), + PublishErrorKind::NotFoundException(_inner) => Some(_inner), + PublishErrorKind::PlatformApplicationDisabledException(_inner) => Some(_inner), PublishErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3110,20 +3223,20 @@ pub struct RemovePermissionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RemovePermissionErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RemovePermissionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RemovePermissionErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - RemovePermissionErrorKind::NotFoundError(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + RemovePermissionErrorKind::NotFoundException(_inner) => _inner.fmt(f), RemovePermissionErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3172,32 +3285,35 @@ impl RemovePermissionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::AuthorizationErrorError(_) + RemovePermissionErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, RemovePermissionErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + RemovePermissionErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - RemovePermissionErrorKind::InvalidParameterError(_) + RemovePermissionErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, RemovePermissionErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, RemovePermissionErrorKind::NotFoundException(_)) } } impl std::error::Error for RemovePermissionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RemovePermissionErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - RemovePermissionErrorKind::InternalErrorError(_inner) => Some(_inner), - RemovePermissionErrorKind::InvalidParameterError(_inner) => Some(_inner), - RemovePermissionErrorKind::NotFoundError(_inner) => Some(_inner), + RemovePermissionErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + RemovePermissionErrorKind::InternalErrorException(_inner) => Some(_inner), + RemovePermissionErrorKind::InvalidParameterException(_inner) => Some(_inner), + RemovePermissionErrorKind::NotFoundException(_inner) => Some(_inner), RemovePermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3212,20 +3328,20 @@ pub struct SetEndpointAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetEndpointAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetEndpointAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetEndpointAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - SetEndpointAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SetEndpointAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SetEndpointAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + SetEndpointAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + SetEndpointAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + SetEndpointAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SetEndpointAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), SetEndpointAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3274,35 +3390,38 @@ impl SetEndpointAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - SetEndpointAttributesErrorKind::AuthorizationErrorError(_) + SetEndpointAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - SetEndpointAttributesErrorKind::InternalErrorError(_) + SetEndpointAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SetEndpointAttributesErrorKind::InvalidParameterError(_) + SetEndpointAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SetEndpointAttributesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + SetEndpointAttributesErrorKind::NotFoundException(_) + ) } } impl std::error::Error for SetEndpointAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetEndpointAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - SetEndpointAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - SetEndpointAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - SetEndpointAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + SetEndpointAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + SetEndpointAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + SetEndpointAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + SetEndpointAttributesErrorKind::NotFoundException(_inner) => Some(_inner), SetEndpointAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3317,24 +3436,26 @@ pub struct SetPlatformApplicationAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetPlatformApplicationAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetPlatformApplicationAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_inner) => { + SetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + SetPlatformApplicationAttributesErrorKind::InternalErrorException(_inner) => { _inner.fmt(f) } - SetPlatformApplicationAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SetPlatformApplicationAttributesErrorKind::InvalidParameterError(_inner) => { + SetPlatformApplicationAttributesErrorKind::InvalidParameterException(_inner) => { _inner.fmt(f) } - SetPlatformApplicationAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + SetPlatformApplicationAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), SetPlatformApplicationAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3383,42 +3504,44 @@ impl SetPlatformApplicationAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - SetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_) + SetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - SetPlatformApplicationAttributesErrorKind::InternalErrorError(_) + SetPlatformApplicationAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SetPlatformApplicationAttributesErrorKind::InvalidParameterError(_) + SetPlatformApplicationAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - SetPlatformApplicationAttributesErrorKind::NotFoundError(_) + SetPlatformApplicationAttributesErrorKind::NotFoundException(_) ) } } impl std::error::Error for SetPlatformApplicationAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(_inner) => { + SetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + SetPlatformApplicationAttributesErrorKind::InternalErrorException(_inner) => { Some(_inner) } - SetPlatformApplicationAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - SetPlatformApplicationAttributesErrorKind::InvalidParameterError(_inner) => { + SetPlatformApplicationAttributesErrorKind::InvalidParameterException(_inner) => { Some(_inner) } - SetPlatformApplicationAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + SetPlatformApplicationAttributesErrorKind::NotFoundException(_inner) => Some(_inner), SetPlatformApplicationAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3433,20 +3556,20 @@ pub struct SetSMSAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetSMSAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ThrottledError(crate::error::ThrottledError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ThrottledException(crate::error::ThrottledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetSMSAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetSMSAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - SetSMSAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SetSMSAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SetSMSAttributesErrorKind::ThrottledError(_inner) => _inner.fmt(f), + SetSMSAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + SetSMSAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + SetSMSAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SetSMSAttributesErrorKind::ThrottledException(_inner) => _inner.fmt(f), SetSMSAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3495,32 +3618,35 @@ impl SetSMSAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - SetSMSAttributesErrorKind::AuthorizationErrorError(_) + SetSMSAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, SetSMSAttributesErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!( + &self.kind, + SetSMSAttributesErrorKind::InternalErrorException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SetSMSAttributesErrorKind::InvalidParameterError(_) + SetSMSAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_throttled_error(&self) -> bool { - matches!(&self.kind, SetSMSAttributesErrorKind::ThrottledError(_)) + pub fn is_throttled_exception(&self) -> bool { + matches!(&self.kind, SetSMSAttributesErrorKind::ThrottledException(_)) } } impl std::error::Error for SetSMSAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetSMSAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - SetSMSAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - SetSMSAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - SetSMSAttributesErrorKind::ThrottledError(_inner) => Some(_inner), + SetSMSAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + SetSMSAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + SetSMSAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + SetSMSAttributesErrorKind::ThrottledException(_inner) => Some(_inner), SetSMSAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3535,24 +3661,26 @@ pub struct SetSubscriptionAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetSubscriptionAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - FilterPolicyLimitExceededError(crate::error::FilterPolicyLimitExceededError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + FilterPolicyLimitExceededException(crate::error::FilterPolicyLimitExceededException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetSubscriptionAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetSubscriptionAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededError(_inner) => { + SetSubscriptionAttributesErrorKind::AuthorizationErrorException(_inner) => { _inner.fmt(f) } - SetSubscriptionAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SetSubscriptionAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SetSubscriptionAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededException(_inner) => { + _inner.fmt(f) + } + SetSubscriptionAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + SetSubscriptionAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SetSubscriptionAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), SetSubscriptionAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3601,47 +3729,47 @@ impl SetSubscriptionAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - SetSubscriptionAttributesErrorKind::AuthorizationErrorError(_) + SetSubscriptionAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_filter_policy_limit_exceeded_error(&self) -> bool { + pub fn is_filter_policy_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededError(_) + SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - SetSubscriptionAttributesErrorKind::InternalErrorError(_) + SetSubscriptionAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SetSubscriptionAttributesErrorKind::InvalidParameterError(_) + SetSubscriptionAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_not_found_error(&self) -> bool { + pub fn is_not_found_exception(&self) -> bool { matches!( &self.kind, - SetSubscriptionAttributesErrorKind::NotFoundError(_) + SetSubscriptionAttributesErrorKind::NotFoundException(_) ) } } impl std::error::Error for SetSubscriptionAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetSubscriptionAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededError(_inner) => { + SetSubscriptionAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededException(_inner) => { Some(_inner) } - SetSubscriptionAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - SetSubscriptionAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - SetSubscriptionAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + SetSubscriptionAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + SetSubscriptionAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + SetSubscriptionAttributesErrorKind::NotFoundException(_inner) => Some(_inner), SetSubscriptionAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3656,22 +3784,22 @@ pub struct SetTopicAttributesError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SetTopicAttributesErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSecurityError(crate::error::InvalidSecurityError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSecurityException(crate::error::InvalidSecurityException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SetTopicAttributesError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SetTopicAttributesErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - SetTopicAttributesErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SetTopicAttributesErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SetTopicAttributesErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - SetTopicAttributesErrorKind::NotFoundError(_inner) => _inner.fmt(f), + SetTopicAttributesErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + SetTopicAttributesErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + SetTopicAttributesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SetTopicAttributesErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + SetTopicAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f), SetTopicAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3720,42 +3848,45 @@ impl SetTopicAttributesError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - SetTopicAttributesErrorKind::AuthorizationErrorError(_) + SetTopicAttributesErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - SetTopicAttributesErrorKind::InternalErrorError(_) + SetTopicAttributesErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - SetTopicAttributesErrorKind::InvalidParameterError(_) + SetTopicAttributesErrorKind::InvalidParameterException(_) ) } - pub fn is_invalid_security_error(&self) -> bool { + pub fn is_invalid_security_exception(&self) -> bool { matches!( &self.kind, - SetTopicAttributesErrorKind::InvalidSecurityError(_) + SetTopicAttributesErrorKind::InvalidSecurityException(_) ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SetTopicAttributesErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!( + &self.kind, + SetTopicAttributesErrorKind::NotFoundException(_) + ) } } impl std::error::Error for SetTopicAttributesError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SetTopicAttributesErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - SetTopicAttributesErrorKind::InternalErrorError(_inner) => Some(_inner), - SetTopicAttributesErrorKind::InvalidParameterError(_inner) => Some(_inner), - SetTopicAttributesErrorKind::InvalidSecurityError(_inner) => Some(_inner), - SetTopicAttributesErrorKind::NotFoundError(_inner) => Some(_inner), + SetTopicAttributesErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + SetTopicAttributesErrorKind::InternalErrorException(_inner) => Some(_inner), + SetTopicAttributesErrorKind::InvalidParameterException(_inner) => Some(_inner), + SetTopicAttributesErrorKind::InvalidSecurityException(_inner) => Some(_inner), + SetTopicAttributesErrorKind::NotFoundException(_inner) => Some(_inner), SetTopicAttributesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3770,26 +3901,26 @@ pub struct SubscribeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SubscribeErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - FilterPolicyLimitExceededError(crate::error::FilterPolicyLimitExceededError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSecurityError(crate::error::InvalidSecurityError), - NotFoundError(crate::error::NotFoundError), - SubscriptionLimitExceededError(crate::error::SubscriptionLimitExceededError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + FilterPolicyLimitExceededException(crate::error::FilterPolicyLimitExceededException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSecurityException(crate::error::InvalidSecurityException), + NotFoundException(crate::error::NotFoundException), + SubscriptionLimitExceededException(crate::error::SubscriptionLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SubscribeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SubscribeErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - SubscribeErrorKind::FilterPolicyLimitExceededError(_inner) => _inner.fmt(f), - SubscribeErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - SubscribeErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - SubscribeErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - SubscribeErrorKind::NotFoundError(_inner) => _inner.fmt(f), - SubscribeErrorKind::SubscriptionLimitExceededError(_inner) => _inner.fmt(f), + SubscribeErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + SubscribeErrorKind::FilterPolicyLimitExceededException(_inner) => _inner.fmt(f), + SubscribeErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + SubscribeErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + SubscribeErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + SubscribeErrorKind::NotFoundException(_inner) => _inner.fmt(f), + SubscribeErrorKind::SubscriptionLimitExceededException(_inner) => _inner.fmt(f), SubscribeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3838,44 +3969,47 @@ impl SubscribeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, SubscribeErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + SubscribeErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_filter_policy_limit_exceeded_error(&self) -> bool { + pub fn is_filter_policy_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - SubscribeErrorKind::FilterPolicyLimitExceededError(_) + SubscribeErrorKind::FilterPolicyLimitExceededException(_) ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, SubscribeErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, SubscribeErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, SubscribeErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!(&self.kind, SubscribeErrorKind::InvalidParameterException(_)) } - pub fn is_invalid_security_error(&self) -> bool { - matches!(&self.kind, SubscribeErrorKind::InvalidSecurityError(_)) + pub fn is_invalid_security_exception(&self) -> bool { + matches!(&self.kind, SubscribeErrorKind::InvalidSecurityException(_)) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, SubscribeErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, SubscribeErrorKind::NotFoundException(_)) } - pub fn is_subscription_limit_exceeded_error(&self) -> bool { + pub fn is_subscription_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - SubscribeErrorKind::SubscriptionLimitExceededError(_) + SubscribeErrorKind::SubscriptionLimitExceededException(_) ) } } impl std::error::Error for SubscribeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SubscribeErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - SubscribeErrorKind::FilterPolicyLimitExceededError(_inner) => Some(_inner), - SubscribeErrorKind::InternalErrorError(_inner) => Some(_inner), - SubscribeErrorKind::InvalidParameterError(_inner) => Some(_inner), - SubscribeErrorKind::InvalidSecurityError(_inner) => Some(_inner), - SubscribeErrorKind::NotFoundError(_inner) => Some(_inner), - SubscribeErrorKind::SubscriptionLimitExceededError(_inner) => Some(_inner), + SubscribeErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + SubscribeErrorKind::FilterPolicyLimitExceededException(_inner) => Some(_inner), + SubscribeErrorKind::InternalErrorException(_inner) => Some(_inner), + SubscribeErrorKind::InvalidParameterException(_inner) => Some(_inner), + SubscribeErrorKind::InvalidSecurityException(_inner) => Some(_inner), + SubscribeErrorKind::NotFoundException(_inner) => Some(_inner), + SubscribeErrorKind::SubscriptionLimitExceededException(_inner) => Some(_inner), SubscribeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -3890,26 +4024,26 @@ pub struct TagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TagResourceErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - StaleTagError(crate::error::StaleTagError), - TagLimitExceededError(crate::error::TagLimitExceededError), - TagPolicyError(crate::error::TagPolicyError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + StaleTagException(crate::error::StaleTagException), + TagLimitExceededException(crate::error::TagLimitExceededException), + TagPolicyException(crate::error::TagPolicyException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for TagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TagResourceErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ConcurrentAccessError(_inner) => _inner.fmt(f), - TagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - TagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - TagResourceErrorKind::StaleTagError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TagLimitExceededError(_inner) => _inner.fmt(f), - TagResourceErrorKind::TagPolicyError(_inner) => _inner.fmt(f), + TagResourceErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ConcurrentAccessException(_inner) => _inner.fmt(f), + TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + TagResourceErrorKind::StaleTagException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TagLimitExceededException(_inner) => _inner.fmt(f), + TagResourceErrorKind::TagPolicyException(_inner) => _inner.fmt(f), TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -3958,38 +4092,53 @@ impl TagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_concurrent_access_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ConcurrentAccessError(_)) + pub fn is_concurrent_access_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ConcurrentAccessException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_stale_tag_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::StaleTagError(_)) + pub fn is_stale_tag_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::StaleTagException(_)) } - pub fn is_tag_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TagLimitExceededError(_)) + pub fn is_tag_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + TagResourceErrorKind::TagLimitExceededException(_) + ) } - pub fn is_tag_policy_error(&self) -> bool { - matches!(&self.kind, TagResourceErrorKind::TagPolicyError(_)) + pub fn is_tag_policy_exception(&self) -> bool { + matches!(&self.kind, TagResourceErrorKind::TagPolicyException(_)) } } impl std::error::Error for TagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TagResourceErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - TagResourceErrorKind::ConcurrentAccessError(_inner) => Some(_inner), - TagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - TagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - TagResourceErrorKind::StaleTagError(_inner) => Some(_inner), - TagResourceErrorKind::TagLimitExceededError(_inner) => Some(_inner), - TagResourceErrorKind::TagPolicyError(_inner) => Some(_inner), + TagResourceErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + TagResourceErrorKind::ConcurrentAccessException(_inner) => Some(_inner), + TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + TagResourceErrorKind::StaleTagException(_inner) => Some(_inner), + TagResourceErrorKind::TagLimitExceededException(_inner) => Some(_inner), + TagResourceErrorKind::TagPolicyException(_inner) => Some(_inner), TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4004,22 +4153,22 @@ pub struct UnsubscribeError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UnsubscribeErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidSecurityError(crate::error::InvalidSecurityError), - NotFoundError(crate::error::NotFoundError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidSecurityException(crate::error::InvalidSecurityException), + NotFoundException(crate::error::NotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UnsubscribeError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UnsubscribeErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - UnsubscribeErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - UnsubscribeErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UnsubscribeErrorKind::InvalidSecurityError(_inner) => _inner.fmt(f), - UnsubscribeErrorKind::NotFoundError(_inner) => _inner.fmt(f), + UnsubscribeErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + UnsubscribeErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + UnsubscribeErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UnsubscribeErrorKind::InvalidSecurityException(_inner) => _inner.fmt(f), + UnsubscribeErrorKind::NotFoundException(_inner) => _inner.fmt(f), UnsubscribeErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4068,30 +4217,39 @@ impl UnsubscribeError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { - matches!(&self.kind, UnsubscribeErrorKind::AuthorizationErrorError(_)) + pub fn is_authorization_error_exception(&self) -> bool { + matches!( + &self.kind, + UnsubscribeErrorKind::AuthorizationErrorException(_) + ) } - pub fn is_internal_error_error(&self) -> bool { - matches!(&self.kind, UnsubscribeErrorKind::InternalErrorError(_)) + pub fn is_internal_error_exception(&self) -> bool { + matches!(&self.kind, UnsubscribeErrorKind::InternalErrorException(_)) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UnsubscribeErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UnsubscribeErrorKind::InvalidParameterException(_) + ) } - pub fn is_invalid_security_error(&self) -> bool { - matches!(&self.kind, UnsubscribeErrorKind::InvalidSecurityError(_)) + pub fn is_invalid_security_exception(&self) -> bool { + matches!( + &self.kind, + UnsubscribeErrorKind::InvalidSecurityException(_) + ) } - pub fn is_not_found_error(&self) -> bool { - matches!(&self.kind, UnsubscribeErrorKind::NotFoundError(_)) + pub fn is_not_found_exception(&self) -> bool { + matches!(&self.kind, UnsubscribeErrorKind::NotFoundException(_)) } } impl std::error::Error for UnsubscribeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UnsubscribeErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - UnsubscribeErrorKind::InternalErrorError(_inner) => Some(_inner), - UnsubscribeErrorKind::InvalidParameterError(_inner) => Some(_inner), - UnsubscribeErrorKind::InvalidSecurityError(_inner) => Some(_inner), - UnsubscribeErrorKind::NotFoundError(_inner) => Some(_inner), + UnsubscribeErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + UnsubscribeErrorKind::InternalErrorException(_inner) => Some(_inner), + UnsubscribeErrorKind::InvalidParameterException(_inner) => Some(_inner), + UnsubscribeErrorKind::InvalidSecurityException(_inner) => Some(_inner), + UnsubscribeErrorKind::NotFoundException(_inner) => Some(_inner), UnsubscribeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4106,26 +4264,26 @@ pub struct UntagResourceError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UntagResourceErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - StaleTagError(crate::error::StaleTagError), - TagLimitExceededError(crate::error::TagLimitExceededError), - TagPolicyError(crate::error::TagPolicyError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + StaleTagException(crate::error::StaleTagException), + TagLimitExceededException(crate::error::TagLimitExceededException), + TagPolicyException(crate::error::TagPolicyException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for UntagResourceError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UntagResourceErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ConcurrentAccessError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::StaleTagError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TagLimitExceededError(_inner) => _inner.fmt(f), - UntagResourceErrorKind::TagPolicyError(_inner) => _inner.fmt(f), + UntagResourceErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ConcurrentAccessException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::StaleTagException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TagLimitExceededException(_inner) => _inner.fmt(f), + UntagResourceErrorKind::TagPolicyException(_inner) => _inner.fmt(f), UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4174,41 +4332,53 @@ impl UntagResourceError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - UntagResourceErrorKind::AuthorizationErrorError(_) + UntagResourceErrorKind::AuthorizationErrorException(_) ) } - pub fn is_concurrent_access_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ConcurrentAccessError(_)) + pub fn is_concurrent_access_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ConcurrentAccessException(_) + ) } - pub fn is_invalid_parameter_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::InvalidParameterError(_)) + pub fn is_invalid_parameter_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::InvalidParameterException(_) + ) } - pub fn is_resource_not_found_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::ResourceNotFoundError(_)) + pub fn is_resource_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::ResourceNotFoundException(_) + ) } - pub fn is_stale_tag_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::StaleTagError(_)) + pub fn is_stale_tag_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::StaleTagException(_)) } - pub fn is_tag_limit_exceeded_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TagLimitExceededError(_)) + pub fn is_tag_limit_exceeded_exception(&self) -> bool { + matches!( + &self.kind, + UntagResourceErrorKind::TagLimitExceededException(_) + ) } - pub fn is_tag_policy_error(&self) -> bool { - matches!(&self.kind, UntagResourceErrorKind::TagPolicyError(_)) + pub fn is_tag_policy_exception(&self) -> bool { + matches!(&self.kind, UntagResourceErrorKind::TagPolicyException(_)) } } impl std::error::Error for UntagResourceError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UntagResourceErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - UntagResourceErrorKind::ConcurrentAccessError(_inner) => Some(_inner), - UntagResourceErrorKind::InvalidParameterError(_inner) => Some(_inner), - UntagResourceErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - UntagResourceErrorKind::StaleTagError(_inner) => Some(_inner), - UntagResourceErrorKind::TagLimitExceededError(_inner) => Some(_inner), - UntagResourceErrorKind::TagPolicyError(_inner) => Some(_inner), + UntagResourceErrorKind::AuthorizationErrorException(_inner) => Some(_inner), + UntagResourceErrorKind::ConcurrentAccessException(_inner) => Some(_inner), + UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner), + UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + UntagResourceErrorKind::StaleTagException(_inner) => Some(_inner), + UntagResourceErrorKind::TagLimitExceededException(_inner) => Some(_inner), + UntagResourceErrorKind::TagPolicyException(_inner) => Some(_inner), UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4223,24 +4393,30 @@ pub struct VerifySMSSandboxPhoneNumberError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum VerifySMSSandboxPhoneNumberErrorKind { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - ThrottledError(crate::error::ThrottledError), - VerificationError(crate::error::VerificationError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + ThrottledException(crate::error::ThrottledException), + VerificationException(crate::error::VerificationException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for VerifySMSSandboxPhoneNumberError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => _inner.fmt(f), - VerifySMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => _inner.fmt(f), - VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => _inner.fmt(f), - VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_inner) => _inner.fmt(f), - VerifySMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => _inner.fmt(f), - VerifySMSSandboxPhoneNumberErrorKind::VerificationError(_inner) => _inner.fmt(f), + VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + _inner.fmt(f) + } + VerifySMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => _inner.fmt(f), + VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => { + _inner.fmt(f) + } + VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_inner) => { + _inner.fmt(f) + } + VerifySMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => _inner.fmt(f), + VerifySMSSandboxPhoneNumberErrorKind::VerificationException(_inner) => _inner.fmt(f), VerifySMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -4289,52 +4465,54 @@ impl VerifySMSSandboxPhoneNumberError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_authorization_error_error(&self) -> bool { + pub fn is_authorization_error_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_) + VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_) ) } - pub fn is_internal_error_error(&self) -> bool { + pub fn is_internal_error_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::InternalErrorError(_) + VerifySMSSandboxPhoneNumberErrorKind::InternalErrorException(_) ) } - pub fn is_invalid_parameter_error(&self) -> bool { + pub fn is_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterError(_) + VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterException(_) ) } - pub fn is_resource_not_found_error(&self) -> bool { + pub fn is_resource_not_found_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_) + VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_) ) } - pub fn is_throttled_error(&self) -> bool { + pub fn is_throttled_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::ThrottledError(_) + VerifySMSSandboxPhoneNumberErrorKind::ThrottledException(_) ) } - pub fn is_verification_error(&self) -> bool { + pub fn is_verification_exception(&self) -> bool { matches!( &self.kind, - VerifySMSSandboxPhoneNumberErrorKind::VerificationError(_) + VerifySMSSandboxPhoneNumberErrorKind::VerificationException(_) ) } } impl std::error::Error for VerifySMSSandboxPhoneNumberError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorError(_inner) => Some(_inner), - VerifySMSSandboxPhoneNumberErrorKind::InternalErrorError(_inner) => Some(_inner), - VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterError(_inner) => Some(_inner), - VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundError(_inner) => Some(_inner), - VerifySMSSandboxPhoneNumberErrorKind::ThrottledError(_inner) => Some(_inner), - VerifySMSSandboxPhoneNumberErrorKind::VerificationError(_inner) => Some(_inner), + VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorException(_inner) => { + Some(_inner) + } + VerifySMSSandboxPhoneNumberErrorKind::InternalErrorException(_inner) => Some(_inner), + VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterException(_inner) => Some(_inner), + VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundException(_inner) => Some(_inner), + VerifySMSSandboxPhoneNumberErrorKind::ThrottledException(_inner) => Some(_inner), + VerifySMSSandboxPhoneNumberErrorKind::VerificationException(_inner) => Some(_inner), VerifySMSSandboxPhoneNumberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -4343,37 +4521,37 @@ impl std::error::Error for VerifySMSSandboxPhoneNumberError { ///

    Indicates that the one-time password (OTP) used for verification is invalid.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VerificationError { +pub struct VerificationException { pub message: std::option::Option, ///

    The status of the verification error.

    pub status: std::option::Option, } -impl std::fmt::Debug for VerificationError { +impl std::fmt::Debug for VerificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VerificationError"); + let mut formatter = f.debug_struct("VerificationException"); formatter.field("message", &self.message); formatter.field("status", &self.status); formatter.finish() } } -impl VerificationError { +impl VerificationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for VerificationError { +impl std::fmt::Display for VerificationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "VerificationError [VerificationException]")?; + write!(f, "VerificationException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for VerificationError {} -/// See [`VerificationError`](crate::error::VerificationError) -pub mod verification_error { - /// A builder for [`VerificationError`](crate::error::VerificationError) +impl std::error::Error for VerificationException {} +/// See [`VerificationException`](crate::error::VerificationException) +pub mod verification_exception { + /// A builder for [`VerificationException`](crate::error::VerificationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4398,19 +4576,19 @@ pub mod verification_error { self.status = input; self } - /// Consumes the builder and constructs a [`VerificationError`](crate::error::VerificationError) - pub fn build(self) -> crate::error::VerificationError { - crate::error::VerificationError { + /// Consumes the builder and constructs a [`VerificationException`](crate::error::VerificationException) + pub fn build(self) -> crate::error::VerificationException { + crate::error::VerificationException { message: self.message, status: self.status, } } } } -impl VerificationError { - /// Creates a new builder-style object to manufacture [`VerificationError`](crate::error::VerificationError) - pub fn builder() -> crate::error::verification_error::Builder { - crate::error::verification_error::Builder::default() +impl VerificationException { + /// Creates a new builder-style object to manufacture [`VerificationException`](crate::error::VerificationException) + pub fn builder() -> crate::error::verification_exception::Builder { + crate::error::verification_exception::Builder::default() } } @@ -4418,35 +4596,35 @@ impl VerificationError { /// the limit for your account.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ThrottledError { +pub struct ThrottledException { ///

    Throttled request.

    pub message: std::option::Option, } -impl std::fmt::Debug for ThrottledError { +impl std::fmt::Debug for ThrottledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ThrottledError"); + let mut formatter = f.debug_struct("ThrottledException"); formatter.field("message", &self.message); formatter.finish() } } -impl ThrottledError { +impl ThrottledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ThrottledError { +impl std::fmt::Display for ThrottledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ThrottledError [ThrottledException]")?; + write!(f, "ThrottledException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for ThrottledError {} -/// See [`ThrottledError`](crate::error::ThrottledError) -pub mod throttled_error { - /// A builder for [`ThrottledError`](crate::error::ThrottledError) +impl std::error::Error for ThrottledException {} +/// See [`ThrottledException`](crate::error::ThrottledException) +pub mod throttled_exception { + /// A builder for [`ThrottledException`](crate::error::ThrottledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4462,18 +4640,18 @@ pub mod throttled_error { self.message = input; self } - /// Consumes the builder and constructs a [`ThrottledError`](crate::error::ThrottledError) - pub fn build(self) -> crate::error::ThrottledError { - crate::error::ThrottledError { + /// Consumes the builder and constructs a [`ThrottledException`](crate::error::ThrottledException) + pub fn build(self) -> crate::error::ThrottledException { + crate::error::ThrottledException { message: self.message, } } } } -impl ThrottledError { - /// Creates a new builder-style object to manufacture [`ThrottledError`](crate::error::ThrottledError) - pub fn builder() -> crate::error::throttled_error::Builder { - crate::error::throttled_error::Builder::default() +impl ThrottledException { + /// Creates a new builder-style object to manufacture [`ThrottledException`](crate::error::ThrottledException) + pub fn builder() -> crate::error::throttled_exception::Builder { + crate::error::throttled_exception::Builder::default() } } @@ -4481,34 +4659,34 @@ impl ThrottledError { /// exists.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceNotFoundError { +pub struct ResourceNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceNotFoundError { +impl std::fmt::Debug for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceNotFoundError"); + let mut formatter = f.debug_struct("ResourceNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceNotFoundError { +impl ResourceNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceNotFoundError { +impl std::fmt::Display for ResourceNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceNotFoundError [ResourceNotFoundException]")?; + write!(f, "ResourceNotFoundException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for ResourceNotFoundError {} -/// See [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) -pub mod resource_not_found_error { - /// A builder for [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) +impl std::error::Error for ResourceNotFoundException {} +/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) +pub mod resource_not_found_exception { + /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4523,18 +4701,18 @@ pub mod resource_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn build(self) -> crate::error::ResourceNotFoundError { - crate::error::ResourceNotFoundError { + /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn build(self) -> crate::error::ResourceNotFoundException { + crate::error::ResourceNotFoundException { message: self.message, } } } } -impl ResourceNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceNotFoundError`](crate::error::ResourceNotFoundError) - pub fn builder() -> crate::error::resource_not_found_error::Builder { - crate::error::resource_not_found_error::Builder::default() +impl ResourceNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) + pub fn builder() -> crate::error::resource_not_found_exception::Builder { + crate::error::resource_not_found_exception::Builder::default() } } @@ -4542,34 +4720,34 @@ impl ResourceNotFoundError { /// constraints.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterError { +pub struct InvalidParameterException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterError { +impl std::fmt::Debug for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterError"); + let mut formatter = f.debug_struct("InvalidParameterException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterError { +impl InvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterError { +impl std::fmt::Display for InvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidParameterError [InvalidParameterException]")?; + write!(f, "InvalidParameterException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidParameterError {} -/// See [`InvalidParameterError`](crate::error::InvalidParameterError) -pub mod invalid_parameter_error { - /// A builder for [`InvalidParameterError`](crate::error::InvalidParameterError) +impl std::error::Error for InvalidParameterException {} +/// See [`InvalidParameterException`](crate::error::InvalidParameterException) +pub mod invalid_parameter_exception { + /// A builder for [`InvalidParameterException`](crate::error::InvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4584,52 +4762,52 @@ pub mod invalid_parameter_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn build(self) -> crate::error::InvalidParameterError { - crate::error::InvalidParameterError { + /// Consumes the builder and constructs a [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn build(self) -> crate::error::InvalidParameterException { + crate::error::InvalidParameterException { message: self.message, } } } } -impl InvalidParameterError { - /// Creates a new builder-style object to manufacture [`InvalidParameterError`](crate::error::InvalidParameterError) - pub fn builder() -> crate::error::invalid_parameter_error::Builder { - crate::error::invalid_parameter_error::Builder::default() +impl InvalidParameterException { + /// Creates a new builder-style object to manufacture [`InvalidParameterException`](crate::error::InvalidParameterException) + pub fn builder() -> crate::error::invalid_parameter_exception::Builder { + crate::error::invalid_parameter_exception::Builder::default() } } ///

    Indicates an internal service error.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InternalErrorError { +pub struct InternalErrorException { pub message: std::option::Option, } -impl std::fmt::Debug for InternalErrorError { +impl std::fmt::Debug for InternalErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InternalErrorError"); + let mut formatter = f.debug_struct("InternalErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl InternalErrorError { +impl InternalErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InternalErrorError { +impl std::fmt::Display for InternalErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InternalErrorError [InternalErrorException]")?; + write!(f, "InternalErrorException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for InternalErrorError {} -/// See [`InternalErrorError`](crate::error::InternalErrorError) -pub mod internal_error_error { - /// A builder for [`InternalErrorError`](crate::error::InternalErrorError) +impl std::error::Error for InternalErrorException {} +/// See [`InternalErrorException`](crate::error::InternalErrorException) +pub mod internal_error_exception { + /// A builder for [`InternalErrorException`](crate::error::InternalErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4644,52 +4822,52 @@ pub mod internal_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`InternalErrorError`](crate::error::InternalErrorError) - pub fn build(self) -> crate::error::InternalErrorError { - crate::error::InternalErrorError { + /// Consumes the builder and constructs a [`InternalErrorException`](crate::error::InternalErrorException) + pub fn build(self) -> crate::error::InternalErrorException { + crate::error::InternalErrorException { message: self.message, } } } } -impl InternalErrorError { - /// Creates a new builder-style object to manufacture [`InternalErrorError`](crate::error::InternalErrorError) - pub fn builder() -> crate::error::internal_error_error::Builder { - crate::error::internal_error_error::Builder::default() +impl InternalErrorException { + /// Creates a new builder-style object to manufacture [`InternalErrorException`](crate::error::InternalErrorException) + pub fn builder() -> crate::error::internal_error_exception::Builder { + crate::error::internal_error_exception::Builder::default() } } ///

    Indicates that the user has been denied access to the requested resource.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AuthorizationErrorError { +pub struct AuthorizationErrorException { pub message: std::option::Option, } -impl std::fmt::Debug for AuthorizationErrorError { +impl std::fmt::Debug for AuthorizationErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AuthorizationErrorError"); + let mut formatter = f.debug_struct("AuthorizationErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl AuthorizationErrorError { +impl AuthorizationErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AuthorizationErrorError { +impl std::fmt::Display for AuthorizationErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AuthorizationErrorError [AuthorizationErrorException]")?; + write!(f, "AuthorizationErrorException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for AuthorizationErrorError {} -/// See [`AuthorizationErrorError`](crate::error::AuthorizationErrorError) -pub mod authorization_error_error { - /// A builder for [`AuthorizationErrorError`](crate::error::AuthorizationErrorError) +impl std::error::Error for AuthorizationErrorException {} +/// See [`AuthorizationErrorException`](crate::error::AuthorizationErrorException) +pub mod authorization_error_exception { + /// A builder for [`AuthorizationErrorException`](crate::error::AuthorizationErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4704,18 +4882,18 @@ pub mod authorization_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`AuthorizationErrorError`](crate::error::AuthorizationErrorError) - pub fn build(self) -> crate::error::AuthorizationErrorError { - crate::error::AuthorizationErrorError { + /// Consumes the builder and constructs a [`AuthorizationErrorException`](crate::error::AuthorizationErrorException) + pub fn build(self) -> crate::error::AuthorizationErrorException { + crate::error::AuthorizationErrorException { message: self.message, } } } } -impl AuthorizationErrorError { - /// Creates a new builder-style object to manufacture [`AuthorizationErrorError`](crate::error::AuthorizationErrorError) - pub fn builder() -> crate::error::authorization_error_error::Builder { - crate::error::authorization_error_error::Builder::default() +impl AuthorizationErrorException { + /// Creates a new builder-style object to manufacture [`AuthorizationErrorException`](crate::error::AuthorizationErrorException) + pub fn builder() -> crate::error::authorization_error_exception::Builder { + crate::error::authorization_error_exception::Builder::default() } } @@ -4723,34 +4901,34 @@ impl AuthorizationErrorError { /// retry it.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagPolicyError { +pub struct TagPolicyException { pub message: std::option::Option, } -impl std::fmt::Debug for TagPolicyError { +impl std::fmt::Debug for TagPolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagPolicyError"); + let mut formatter = f.debug_struct("TagPolicyException"); formatter.field("message", &self.message); formatter.finish() } } -impl TagPolicyError { +impl TagPolicyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TagPolicyError { +impl std::fmt::Display for TagPolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TagPolicyError [TagPolicyException]")?; + write!(f, "TagPolicyException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for TagPolicyError {} -/// See [`TagPolicyError`](crate::error::TagPolicyError) -pub mod tag_policy_error { - /// A builder for [`TagPolicyError`](crate::error::TagPolicyError) +impl std::error::Error for TagPolicyException {} +/// See [`TagPolicyException`](crate::error::TagPolicyException) +pub mod tag_policy_exception { + /// A builder for [`TagPolicyException`](crate::error::TagPolicyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4765,52 +4943,52 @@ pub mod tag_policy_error { self.message = input; self } - /// Consumes the builder and constructs a [`TagPolicyError`](crate::error::TagPolicyError) - pub fn build(self) -> crate::error::TagPolicyError { - crate::error::TagPolicyError { + /// Consumes the builder and constructs a [`TagPolicyException`](crate::error::TagPolicyException) + pub fn build(self) -> crate::error::TagPolicyException { + crate::error::TagPolicyException { message: self.message, } } } } -impl TagPolicyError { - /// Creates a new builder-style object to manufacture [`TagPolicyError`](crate::error::TagPolicyError) - pub fn builder() -> crate::error::tag_policy_error::Builder { - crate::error::tag_policy_error::Builder::default() +impl TagPolicyException { + /// Creates a new builder-style object to manufacture [`TagPolicyException`](crate::error::TagPolicyException) + pub fn builder() -> crate::error::tag_policy_exception::Builder { + crate::error::tag_policy_exception::Builder::default() } } ///

    Can't add more than 50 tags to a topic.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TagLimitExceededError { +pub struct TagLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for TagLimitExceededError { +impl std::fmt::Debug for TagLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TagLimitExceededError"); + let mut formatter = f.debug_struct("TagLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl TagLimitExceededError { +impl TagLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TagLimitExceededError { +impl std::fmt::Display for TagLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TagLimitExceededError [TagLimitExceededException]")?; + write!(f, "TagLimitExceededException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for TagLimitExceededError {} -/// See [`TagLimitExceededError`](crate::error::TagLimitExceededError) -pub mod tag_limit_exceeded_error { - /// A builder for [`TagLimitExceededError`](crate::error::TagLimitExceededError) +impl std::error::Error for TagLimitExceededException {} +/// See [`TagLimitExceededException`](crate::error::TagLimitExceededException) +pub mod tag_limit_exceeded_exception { + /// A builder for [`TagLimitExceededException`](crate::error::TagLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4825,18 +5003,18 @@ pub mod tag_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`TagLimitExceededError`](crate::error::TagLimitExceededError) - pub fn build(self) -> crate::error::TagLimitExceededError { - crate::error::TagLimitExceededError { + /// Consumes the builder and constructs a [`TagLimitExceededException`](crate::error::TagLimitExceededException) + pub fn build(self) -> crate::error::TagLimitExceededException { + crate::error::TagLimitExceededException { message: self.message, } } } } -impl TagLimitExceededError { - /// Creates a new builder-style object to manufacture [`TagLimitExceededError`](crate::error::TagLimitExceededError) - pub fn builder() -> crate::error::tag_limit_exceeded_error::Builder { - crate::error::tag_limit_exceeded_error::Builder::default() +impl TagLimitExceededException { + /// Creates a new builder-style object to manufacture [`TagLimitExceededException`](crate::error::TagLimitExceededException) + pub fn builder() -> crate::error::tag_limit_exceeded_exception::Builder { + crate::error::tag_limit_exceeded_exception::Builder::default() } } @@ -4844,34 +5022,34 @@ impl TagLimitExceededError { /// short while and then retry the operation.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StaleTagError { +pub struct StaleTagException { pub message: std::option::Option, } -impl std::fmt::Debug for StaleTagError { +impl std::fmt::Debug for StaleTagException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StaleTagError"); + let mut formatter = f.debug_struct("StaleTagException"); formatter.field("message", &self.message); formatter.finish() } } -impl StaleTagError { +impl StaleTagException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for StaleTagError { +impl std::fmt::Display for StaleTagException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "StaleTagError [StaleTagException]")?; + write!(f, "StaleTagException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for StaleTagError {} -/// See [`StaleTagError`](crate::error::StaleTagError) -pub mod stale_tag_error { - /// A builder for [`StaleTagError`](crate::error::StaleTagError) +impl std::error::Error for StaleTagException {} +/// See [`StaleTagException`](crate::error::StaleTagException) +pub mod stale_tag_exception { + /// A builder for [`StaleTagException`](crate::error::StaleTagException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4886,18 +5064,18 @@ pub mod stale_tag_error { self.message = input; self } - /// Consumes the builder and constructs a [`StaleTagError`](crate::error::StaleTagError) - pub fn build(self) -> crate::error::StaleTagError { - crate::error::StaleTagError { + /// Consumes the builder and constructs a [`StaleTagException`](crate::error::StaleTagException) + pub fn build(self) -> crate::error::StaleTagException { + crate::error::StaleTagException { message: self.message, } } } } -impl StaleTagError { - /// Creates a new builder-style object to manufacture [`StaleTagError`](crate::error::StaleTagError) - pub fn builder() -> crate::error::stale_tag_error::Builder { - crate::error::stale_tag_error::Builder::default() +impl StaleTagException { + /// Creates a new builder-style object to manufacture [`StaleTagException`](crate::error::StaleTagException) + pub fn builder() -> crate::error::stale_tag_exception::Builder { + crate::error::stale_tag_exception::Builder::default() } } @@ -4905,34 +5083,34 @@ impl StaleTagError { /// sequentially.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ConcurrentAccessError { +pub struct ConcurrentAccessException { pub message: std::option::Option, } -impl std::fmt::Debug for ConcurrentAccessError { +impl std::fmt::Debug for ConcurrentAccessException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ConcurrentAccessError"); + let mut formatter = f.debug_struct("ConcurrentAccessException"); formatter.field("message", &self.message); formatter.finish() } } -impl ConcurrentAccessError { +impl ConcurrentAccessException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ConcurrentAccessError { +impl std::fmt::Display for ConcurrentAccessException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ConcurrentAccessError [ConcurrentAccessException]")?; + write!(f, "ConcurrentAccessException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for ConcurrentAccessError {} -/// See [`ConcurrentAccessError`](crate::error::ConcurrentAccessError) -pub mod concurrent_access_error { - /// A builder for [`ConcurrentAccessError`](crate::error::ConcurrentAccessError) +impl std::error::Error for ConcurrentAccessException {} +/// See [`ConcurrentAccessException`](crate::error::ConcurrentAccessException) +pub mod concurrent_access_exception { + /// A builder for [`ConcurrentAccessException`](crate::error::ConcurrentAccessException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4947,52 +5125,52 @@ pub mod concurrent_access_error { self.message = input; self } - /// Consumes the builder and constructs a [`ConcurrentAccessError`](crate::error::ConcurrentAccessError) - pub fn build(self) -> crate::error::ConcurrentAccessError { - crate::error::ConcurrentAccessError { + /// Consumes the builder and constructs a [`ConcurrentAccessException`](crate::error::ConcurrentAccessException) + pub fn build(self) -> crate::error::ConcurrentAccessException { + crate::error::ConcurrentAccessException { message: self.message, } } } } -impl ConcurrentAccessError { - /// Creates a new builder-style object to manufacture [`ConcurrentAccessError`](crate::error::ConcurrentAccessError) - pub fn builder() -> crate::error::concurrent_access_error::Builder { - crate::error::concurrent_access_error::Builder::default() +impl ConcurrentAccessException { + /// Creates a new builder-style object to manufacture [`ConcurrentAccessException`](crate::error::ConcurrentAccessException) + pub fn builder() -> crate::error::concurrent_access_exception::Builder { + crate::error::concurrent_access_exception::Builder::default() } } ///

    Indicates that the requested resource does not exist.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct NotFoundError { +pub struct NotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for NotFoundError { +impl std::fmt::Debug for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("NotFoundError"); + let mut formatter = f.debug_struct("NotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl NotFoundError { +impl NotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for NotFoundError { +impl std::fmt::Display for NotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "NotFoundError [NotFoundException]")?; + write!(f, "NotFoundException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for NotFoundError {} -/// See [`NotFoundError`](crate::error::NotFoundError) -pub mod not_found_error { - /// A builder for [`NotFoundError`](crate::error::NotFoundError) +impl std::error::Error for NotFoundException {} +/// See [`NotFoundException`](crate::error::NotFoundException) +pub mod not_found_exception { + /// A builder for [`NotFoundException`](crate::error::NotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5007,18 +5185,18 @@ pub mod not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`NotFoundError`](crate::error::NotFoundError) - pub fn build(self) -> crate::error::NotFoundError { - crate::error::NotFoundError { + /// Consumes the builder and constructs a [`NotFoundException`](crate::error::NotFoundException) + pub fn build(self) -> crate::error::NotFoundException { + crate::error::NotFoundException { message: self.message, } } } } -impl NotFoundError { - /// Creates a new builder-style object to manufacture [`NotFoundError`](crate::error::NotFoundError) - pub fn builder() -> crate::error::not_found_error::Builder { - crate::error::not_found_error::Builder::default() +impl NotFoundException { + /// Creates a new builder-style object to manufacture [`NotFoundException`](crate::error::NotFoundException) + pub fn builder() -> crate::error::not_found_exception::Builder { + crate::error::not_found_exception::Builder::default() } } @@ -5026,34 +5204,34 @@ impl NotFoundError { /// request using Signature Version 4.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidSecurityError { +pub struct InvalidSecurityException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidSecurityError { +impl std::fmt::Debug for InvalidSecurityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidSecurityError"); + let mut formatter = f.debug_struct("InvalidSecurityException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidSecurityError { +impl InvalidSecurityException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidSecurityError { +impl std::fmt::Display for InvalidSecurityException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidSecurityError [InvalidSecurityException]")?; + write!(f, "InvalidSecurityException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for InvalidSecurityError {} -/// See [`InvalidSecurityError`](crate::error::InvalidSecurityError) -pub mod invalid_security_error { - /// A builder for [`InvalidSecurityError`](crate::error::InvalidSecurityError) +impl std::error::Error for InvalidSecurityException {} +/// See [`InvalidSecurityException`](crate::error::InvalidSecurityException) +pub mod invalid_security_exception { + /// A builder for [`InvalidSecurityException`](crate::error::InvalidSecurityException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5068,18 +5246,18 @@ pub mod invalid_security_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidSecurityError`](crate::error::InvalidSecurityError) - pub fn build(self) -> crate::error::InvalidSecurityError { - crate::error::InvalidSecurityError { + /// Consumes the builder and constructs a [`InvalidSecurityException`](crate::error::InvalidSecurityException) + pub fn build(self) -> crate::error::InvalidSecurityException { + crate::error::InvalidSecurityException { message: self.message, } } } } -impl InvalidSecurityError { - /// Creates a new builder-style object to manufacture [`InvalidSecurityError`](crate::error::InvalidSecurityError) - pub fn builder() -> crate::error::invalid_security_error::Builder { - crate::error::invalid_security_error::Builder::default() +impl InvalidSecurityException { + /// Creates a new builder-style object to manufacture [`InvalidSecurityException`](crate::error::InvalidSecurityException) + pub fn builder() -> crate::error::invalid_security_exception::Builder { + crate::error::invalid_security_exception::Builder::default() } } @@ -5087,37 +5265,34 @@ impl InvalidSecurityError { /// subscriptions.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SubscriptionLimitExceededError { +pub struct SubscriptionLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for SubscriptionLimitExceededError { +impl std::fmt::Debug for SubscriptionLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubscriptionLimitExceededError"); + let mut formatter = f.debug_struct("SubscriptionLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl SubscriptionLimitExceededError { +impl SubscriptionLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SubscriptionLimitExceededError { +impl std::fmt::Display for SubscriptionLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "SubscriptionLimitExceededError [SubscriptionLimitExceededException]" - )?; + write!(f, "SubscriptionLimitExceededException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for SubscriptionLimitExceededError {} -/// See [`SubscriptionLimitExceededError`](crate::error::SubscriptionLimitExceededError) -pub mod subscription_limit_exceeded_error { - /// A builder for [`SubscriptionLimitExceededError`](crate::error::SubscriptionLimitExceededError) +impl std::error::Error for SubscriptionLimitExceededException {} +/// See [`SubscriptionLimitExceededException`](crate::error::SubscriptionLimitExceededException) +pub mod subscription_limit_exceeded_exception { + /// A builder for [`SubscriptionLimitExceededException`](crate::error::SubscriptionLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5132,18 +5307,18 @@ pub mod subscription_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`SubscriptionLimitExceededError`](crate::error::SubscriptionLimitExceededError) - pub fn build(self) -> crate::error::SubscriptionLimitExceededError { - crate::error::SubscriptionLimitExceededError { + /// Consumes the builder and constructs a [`SubscriptionLimitExceededException`](crate::error::SubscriptionLimitExceededException) + pub fn build(self) -> crate::error::SubscriptionLimitExceededException { + crate::error::SubscriptionLimitExceededException { message: self.message, } } } } -impl SubscriptionLimitExceededError { - /// Creates a new builder-style object to manufacture [`SubscriptionLimitExceededError`](crate::error::SubscriptionLimitExceededError) - pub fn builder() -> crate::error::subscription_limit_exceeded_error::Builder { - crate::error::subscription_limit_exceeded_error::Builder::default() +impl SubscriptionLimitExceededException { + /// Creates a new builder-style object to manufacture [`SubscriptionLimitExceededException`](crate::error::SubscriptionLimitExceededException) + pub fn builder() -> crate::error::subscription_limit_exceeded_exception::Builder { + crate::error::subscription_limit_exceeded_exception::Builder::default() } } @@ -5152,37 +5327,34 @@ impl SubscriptionLimitExceededError { /// Center.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct FilterPolicyLimitExceededError { +pub struct FilterPolicyLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for FilterPolicyLimitExceededError { +impl std::fmt::Debug for FilterPolicyLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FilterPolicyLimitExceededError"); + let mut formatter = f.debug_struct("FilterPolicyLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl FilterPolicyLimitExceededError { +impl FilterPolicyLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for FilterPolicyLimitExceededError { +impl std::fmt::Display for FilterPolicyLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "FilterPolicyLimitExceededError [FilterPolicyLimitExceededException]" - )?; + write!(f, "FilterPolicyLimitExceededException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for FilterPolicyLimitExceededError {} -/// See [`FilterPolicyLimitExceededError`](crate::error::FilterPolicyLimitExceededError) -pub mod filter_policy_limit_exceeded_error { - /// A builder for [`FilterPolicyLimitExceededError`](crate::error::FilterPolicyLimitExceededError) +impl std::error::Error for FilterPolicyLimitExceededException {} +/// See [`FilterPolicyLimitExceededException`](crate::error::FilterPolicyLimitExceededException) +pub mod filter_policy_limit_exceeded_exception { + /// A builder for [`FilterPolicyLimitExceededException`](crate::error::FilterPolicyLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5197,56 +5369,53 @@ pub mod filter_policy_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`FilterPolicyLimitExceededError`](crate::error::FilterPolicyLimitExceededError) - pub fn build(self) -> crate::error::FilterPolicyLimitExceededError { - crate::error::FilterPolicyLimitExceededError { + /// Consumes the builder and constructs a [`FilterPolicyLimitExceededException`](crate::error::FilterPolicyLimitExceededException) + pub fn build(self) -> crate::error::FilterPolicyLimitExceededException { + crate::error::FilterPolicyLimitExceededException { message: self.message, } } } } -impl FilterPolicyLimitExceededError { - /// Creates a new builder-style object to manufacture [`FilterPolicyLimitExceededError`](crate::error::FilterPolicyLimitExceededError) - pub fn builder() -> crate::error::filter_policy_limit_exceeded_error::Builder { - crate::error::filter_policy_limit_exceeded_error::Builder::default() +impl FilterPolicyLimitExceededException { + /// Creates a new builder-style object to manufacture [`FilterPolicyLimitExceededException`](crate::error::FilterPolicyLimitExceededException) + pub fn builder() -> crate::error::filter_policy_limit_exceeded_exception::Builder { + crate::error::filter_policy_limit_exceeded_exception::Builder::default() } } ///

    Exception error indicating platform application disabled.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PlatformApplicationDisabledError { +pub struct PlatformApplicationDisabledException { ///

    Message for platform application disabled.

    pub message: std::option::Option, } -impl std::fmt::Debug for PlatformApplicationDisabledError { +impl std::fmt::Debug for PlatformApplicationDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PlatformApplicationDisabledError"); + let mut formatter = f.debug_struct("PlatformApplicationDisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl PlatformApplicationDisabledError { +impl PlatformApplicationDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PlatformApplicationDisabledError { +impl std::fmt::Display for PlatformApplicationDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PlatformApplicationDisabledError [PlatformApplicationDisabledException]" - )?; + write!(f, "PlatformApplicationDisabledException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for PlatformApplicationDisabledError {} -/// See [`PlatformApplicationDisabledError`](crate::error::PlatformApplicationDisabledError) -pub mod platform_application_disabled_error { - /// A builder for [`PlatformApplicationDisabledError`](crate::error::PlatformApplicationDisabledError) +impl std::error::Error for PlatformApplicationDisabledException {} +/// See [`PlatformApplicationDisabledException`](crate::error::PlatformApplicationDisabledException) +pub mod platform_application_disabled_exception { + /// A builder for [`PlatformApplicationDisabledException`](crate::error::PlatformApplicationDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5262,18 +5431,18 @@ pub mod platform_application_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`PlatformApplicationDisabledError`](crate::error::PlatformApplicationDisabledError) - pub fn build(self) -> crate::error::PlatformApplicationDisabledError { - crate::error::PlatformApplicationDisabledError { + /// Consumes the builder and constructs a [`PlatformApplicationDisabledException`](crate::error::PlatformApplicationDisabledException) + pub fn build(self) -> crate::error::PlatformApplicationDisabledException { + crate::error::PlatformApplicationDisabledException { message: self.message, } } } } -impl PlatformApplicationDisabledError { - /// Creates a new builder-style object to manufacture [`PlatformApplicationDisabledError`](crate::error::PlatformApplicationDisabledError) - pub fn builder() -> crate::error::platform_application_disabled_error::Builder { - crate::error::platform_application_disabled_error::Builder::default() +impl PlatformApplicationDisabledException { + /// Creates a new builder-style object to manufacture [`PlatformApplicationDisabledException`](crate::error::PlatformApplicationDisabledException) + pub fn builder() -> crate::error::platform_application_disabled_exception::Builder { + crate::error::platform_application_disabled_exception::Builder::default() } } @@ -5283,34 +5452,34 @@ impl PlatformApplicationDisabledError { ///

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSThrottlingError { +pub struct KmsThrottlingException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSThrottlingError { +impl std::fmt::Debug for KmsThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSThrottlingError"); + let mut formatter = f.debug_struct("KmsThrottlingException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSThrottlingError { +impl KmsThrottlingException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSThrottlingError { +impl std::fmt::Display for KmsThrottlingException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSThrottlingError [KMSThrottlingException]")?; + write!(f, "KmsThrottlingException [KMSThrottlingException]")?; if let Some(inner_16) = &self.message { write!(f, ": {}", inner_16)?; } Ok(()) } } -impl std::error::Error for KMSThrottlingError {} -/// See [`KMSThrottlingError`](crate::error::KMSThrottlingError) -pub mod kms_throttling_error { - /// A builder for [`KMSThrottlingError`](crate::error::KMSThrottlingError) +impl std::error::Error for KmsThrottlingException {} +/// See [`KmsThrottlingException`](crate::error::KmsThrottlingException) +pub mod kms_throttling_exception { + /// A builder for [`KmsThrottlingException`](crate::error::KmsThrottlingException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5325,52 +5494,52 @@ pub mod kms_throttling_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSThrottlingError`](crate::error::KMSThrottlingError) - pub fn build(self) -> crate::error::KMSThrottlingError { - crate::error::KMSThrottlingError { + /// Consumes the builder and constructs a [`KmsThrottlingException`](crate::error::KmsThrottlingException) + pub fn build(self) -> crate::error::KmsThrottlingException { + crate::error::KmsThrottlingException { message: self.message, } } } } -impl KMSThrottlingError { - /// Creates a new builder-style object to manufacture [`KMSThrottlingError`](crate::error::KMSThrottlingError) - pub fn builder() -> crate::error::kms_throttling_error::Builder { - crate::error::kms_throttling_error::Builder::default() +impl KmsThrottlingException { + /// Creates a new builder-style object to manufacture [`KmsThrottlingException`](crate::error::KmsThrottlingException) + pub fn builder() -> crate::error::kms_throttling_exception::Builder { + crate::error::kms_throttling_exception::Builder::default() } } ///

    The AWS access key ID needs a subscription for the service.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSOptInRequired { +pub struct KmsOptInRequired { pub message: std::option::Option, } -impl std::fmt::Debug for KMSOptInRequired { +impl std::fmt::Debug for KmsOptInRequired { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSOptInRequired"); + let mut formatter = f.debug_struct("KmsOptInRequired"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSOptInRequired { +impl KmsOptInRequired { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSOptInRequired { +impl std::fmt::Display for KmsOptInRequired { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSOptInRequired")?; + write!(f, "KmsOptInRequired [KMSOptInRequired]")?; if let Some(inner_17) = &self.message { write!(f, ": {}", inner_17)?; } Ok(()) } } -impl std::error::Error for KMSOptInRequired {} -/// See [`KMSOptInRequired`](crate::error::KMSOptInRequired) +impl std::error::Error for KmsOptInRequired {} +/// See [`KmsOptInRequired`](crate::error::KmsOptInRequired) pub mod kms_opt_in_required { - /// A builder for [`KMSOptInRequired`](crate::error::KMSOptInRequired) + /// A builder for [`KmsOptInRequired`](crate::error::KmsOptInRequired) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5385,16 +5554,16 @@ pub mod kms_opt_in_required { self.message = input; self } - /// Consumes the builder and constructs a [`KMSOptInRequired`](crate::error::KMSOptInRequired) - pub fn build(self) -> crate::error::KMSOptInRequired { - crate::error::KMSOptInRequired { + /// Consumes the builder and constructs a [`KmsOptInRequired`](crate::error::KmsOptInRequired) + pub fn build(self) -> crate::error::KmsOptInRequired { + crate::error::KmsOptInRequired { message: self.message, } } } } -impl KMSOptInRequired { - /// Creates a new builder-style object to manufacture [`KMSOptInRequired`](crate::error::KMSOptInRequired) +impl KmsOptInRequired { + /// Creates a new builder-style object to manufacture [`KmsOptInRequired`](crate::error::KmsOptInRequired) pub fn builder() -> crate::error::kms_opt_in_required::Builder { crate::error::kms_opt_in_required::Builder::default() } @@ -5404,34 +5573,34 @@ impl KMSOptInRequired { /// found.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSNotFoundError { +pub struct KmsNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSNotFoundError { +impl std::fmt::Debug for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSNotFoundError"); + let mut formatter = f.debug_struct("KmsNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSNotFoundError { +impl KmsNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSNotFoundError { +impl std::fmt::Display for KmsNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSNotFoundError [KMSNotFoundException]")?; + write!(f, "KmsNotFoundException [KMSNotFoundException]")?; if let Some(inner_18) = &self.message { write!(f, ": {}", inner_18)?; } Ok(()) } } -impl std::error::Error for KMSNotFoundError {} -/// See [`KMSNotFoundError`](crate::error::KMSNotFoundError) -pub mod kms_not_found_error { - /// A builder for [`KMSNotFoundError`](crate::error::KMSNotFoundError) +impl std::error::Error for KmsNotFoundException {} +/// See [`KmsNotFoundException`](crate::error::KmsNotFoundException) +pub mod kms_not_found_exception { + /// A builder for [`KmsNotFoundException`](crate::error::KmsNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5446,18 +5615,18 @@ pub mod kms_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn build(self) -> crate::error::KMSNotFoundError { - crate::error::KMSNotFoundError { + /// Consumes the builder and constructs a [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn build(self) -> crate::error::KmsNotFoundException { + crate::error::KmsNotFoundException { message: self.message, } } } } -impl KMSNotFoundError { - /// Creates a new builder-style object to manufacture [`KMSNotFoundError`](crate::error::KMSNotFoundError) - pub fn builder() -> crate::error::kms_not_found_error::Builder { - crate::error::kms_not_found_error::Builder::default() +impl KmsNotFoundException { + /// Creates a new builder-style object to manufacture [`KmsNotFoundException`](crate::error::KmsNotFoundException) + pub fn builder() -> crate::error::kms_not_found_exception::Builder { + crate::error::kms_not_found_exception::Builder::default() } } @@ -5467,34 +5636,34 @@ impl KMSNotFoundError { /// Guide
    .

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSInvalidStateError { +pub struct KmsInvalidStateException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSInvalidStateError { +impl std::fmt::Debug for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSInvalidStateError"); + let mut formatter = f.debug_struct("KmsInvalidStateException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSInvalidStateError { +impl KmsInvalidStateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSInvalidStateError { +impl std::fmt::Display for KmsInvalidStateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSInvalidStateError [KMSInvalidStateException]")?; + write!(f, "KmsInvalidStateException [KMSInvalidStateException]")?; if let Some(inner_19) = &self.message { write!(f, ": {}", inner_19)?; } Ok(()) } } -impl std::error::Error for KMSInvalidStateError {} -/// See [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) -pub mod kms_invalid_state_error { - /// A builder for [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) +impl std::error::Error for KmsInvalidStateException {} +/// See [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) +pub mod kms_invalid_state_exception { + /// A builder for [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5509,18 +5678,18 @@ pub mod kms_invalid_state_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn build(self) -> crate::error::KMSInvalidStateError { - crate::error::KMSInvalidStateError { + /// Consumes the builder and constructs a [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn build(self) -> crate::error::KmsInvalidStateException { + crate::error::KmsInvalidStateException { message: self.message, } } } } -impl KMSInvalidStateError { - /// Creates a new builder-style object to manufacture [`KMSInvalidStateError`](crate::error::KMSInvalidStateError) - pub fn builder() -> crate::error::kms_invalid_state_error::Builder { - crate::error::kms_invalid_state_error::Builder::default() +impl KmsInvalidStateException { + /// Creates a new builder-style object to manufacture [`KmsInvalidStateException`](crate::error::KmsInvalidStateException) + pub fn builder() -> crate::error::kms_invalid_state_exception::Builder { + crate::error::kms_invalid_state_exception::Builder::default() } } @@ -5528,34 +5697,34 @@ impl KMSInvalidStateError { /// enabled.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSDisabledError { +pub struct KmsDisabledException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSDisabledError { +impl std::fmt::Debug for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSDisabledError"); + let mut formatter = f.debug_struct("KmsDisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSDisabledError { +impl KmsDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSDisabledError { +impl std::fmt::Display for KmsDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSDisabledError [KMSDisabledException]")?; + write!(f, "KmsDisabledException [KMSDisabledException]")?; if let Some(inner_20) = &self.message { write!(f, ": {}", inner_20)?; } Ok(()) } } -impl std::error::Error for KMSDisabledError {} -/// See [`KMSDisabledError`](crate::error::KMSDisabledError) -pub mod kms_disabled_error { - /// A builder for [`KMSDisabledError`](crate::error::KMSDisabledError) +impl std::error::Error for KmsDisabledException {} +/// See [`KmsDisabledException`](crate::error::KmsDisabledException) +pub mod kms_disabled_exception { + /// A builder for [`KmsDisabledException`](crate::error::KmsDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5570,18 +5739,18 @@ pub mod kms_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn build(self) -> crate::error::KMSDisabledError { - crate::error::KMSDisabledError { + /// Consumes the builder and constructs a [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn build(self) -> crate::error::KmsDisabledException { + crate::error::KmsDisabledException { message: self.message, } } } } -impl KMSDisabledError { - /// Creates a new builder-style object to manufacture [`KMSDisabledError`](crate::error::KMSDisabledError) - pub fn builder() -> crate::error::kms_disabled_error::Builder { - crate::error::kms_disabled_error::Builder::default() +impl KmsDisabledException { + /// Creates a new builder-style object to manufacture [`KmsDisabledException`](crate::error::KmsDisabledException) + pub fn builder() -> crate::error::kms_disabled_exception::Builder { + crate::error::kms_disabled_exception::Builder::default() } } @@ -5589,34 +5758,34 @@ impl KMSDisabledError { /// to.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct KMSAccessDeniedError { +pub struct KmsAccessDeniedException { pub message: std::option::Option, } -impl std::fmt::Debug for KMSAccessDeniedError { +impl std::fmt::Debug for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("KMSAccessDeniedError"); + let mut formatter = f.debug_struct("KmsAccessDeniedException"); formatter.field("message", &self.message); formatter.finish() } } -impl KMSAccessDeniedError { +impl KmsAccessDeniedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for KMSAccessDeniedError { +impl std::fmt::Display for KmsAccessDeniedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "KMSAccessDeniedError [KMSAccessDeniedException]")?; + write!(f, "KmsAccessDeniedException [KMSAccessDeniedException]")?; if let Some(inner_21) = &self.message { write!(f, ": {}", inner_21)?; } Ok(()) } } -impl std::error::Error for KMSAccessDeniedError {} -/// See [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) -pub mod kms_access_denied_error { - /// A builder for [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) +impl std::error::Error for KmsAccessDeniedException {} +/// See [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) +pub mod kms_access_denied_exception { + /// A builder for [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5631,18 +5800,18 @@ pub mod kms_access_denied_error { self.message = input; self } - /// Consumes the builder and constructs a [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn build(self) -> crate::error::KMSAccessDeniedError { - crate::error::KMSAccessDeniedError { + /// Consumes the builder and constructs a [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn build(self) -> crate::error::KmsAccessDeniedException { + crate::error::KmsAccessDeniedException { message: self.message, } } } } -impl KMSAccessDeniedError { - /// Creates a new builder-style object to manufacture [`KMSAccessDeniedError`](crate::error::KMSAccessDeniedError) - pub fn builder() -> crate::error::kms_access_denied_error::Builder { - crate::error::kms_access_denied_error::Builder::default() +impl KmsAccessDeniedException { + /// Creates a new builder-style object to manufacture [`KmsAccessDeniedException`](crate::error::KmsAccessDeniedException) + pub fn builder() -> crate::error::kms_access_denied_exception::Builder { + crate::error::kms_access_denied_exception::Builder::default() } } @@ -5650,38 +5819,35 @@ impl KMSAccessDeniedError { /// constraints.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidParameterValueError { +pub struct InvalidParameterValueException { ///

    The parameter value is invalid.

    pub message: std::option::Option, } -impl std::fmt::Debug for InvalidParameterValueError { +impl std::fmt::Debug for InvalidParameterValueException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidParameterValueError"); + let mut formatter = f.debug_struct("InvalidParameterValueException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidParameterValueError { +impl InvalidParameterValueException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidParameterValueError { +impl std::fmt::Display for InvalidParameterValueException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidParameterValueError [InvalidParameterValueException]" - )?; + write!(f, "InvalidParameterValueException")?; if let Some(inner_22) = &self.message { write!(f, ": {}", inner_22)?; } Ok(()) } } -impl std::error::Error for InvalidParameterValueError {} -/// See [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) -pub mod invalid_parameter_value_error { - /// A builder for [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) +impl std::error::Error for InvalidParameterValueException {} +/// See [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) +pub mod invalid_parameter_value_exception { + /// A builder for [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5697,53 +5863,53 @@ pub mod invalid_parameter_value_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) - pub fn build(self) -> crate::error::InvalidParameterValueError { - crate::error::InvalidParameterValueError { + /// Consumes the builder and constructs a [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn build(self) -> crate::error::InvalidParameterValueException { + crate::error::InvalidParameterValueException { message: self.message, } } } } -impl InvalidParameterValueError { - /// Creates a new builder-style object to manufacture [`InvalidParameterValueError`](crate::error::InvalidParameterValueError) - pub fn builder() -> crate::error::invalid_parameter_value_error::Builder { - crate::error::invalid_parameter_value_error::Builder::default() +impl InvalidParameterValueException { + /// Creates a new builder-style object to manufacture [`InvalidParameterValueException`](crate::error::InvalidParameterValueException) + pub fn builder() -> crate::error::invalid_parameter_value_exception::Builder { + crate::error::invalid_parameter_value_exception::Builder::default() } } ///

    Exception error indicating endpoint disabled.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct EndpointDisabledError { +pub struct EndpointDisabledException { ///

    Message for endpoint disabled.

    pub message: std::option::Option, } -impl std::fmt::Debug for EndpointDisabledError { +impl std::fmt::Debug for EndpointDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("EndpointDisabledError"); + let mut formatter = f.debug_struct("EndpointDisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl EndpointDisabledError { +impl EndpointDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for EndpointDisabledError { +impl std::fmt::Display for EndpointDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "EndpointDisabledError [EndpointDisabledException]")?; + write!(f, "EndpointDisabledException")?; if let Some(inner_23) = &self.message { write!(f, ": {}", inner_23)?; } Ok(()) } } -impl std::error::Error for EndpointDisabledError {} -/// See [`EndpointDisabledError`](crate::error::EndpointDisabledError) -pub mod endpoint_disabled_error { - /// A builder for [`EndpointDisabledError`](crate::error::EndpointDisabledError) +impl std::error::Error for EndpointDisabledException {} +/// See [`EndpointDisabledException`](crate::error::EndpointDisabledException) +pub mod endpoint_disabled_exception { + /// A builder for [`EndpointDisabledException`](crate::error::EndpointDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5759,52 +5925,52 @@ pub mod endpoint_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`EndpointDisabledError`](crate::error::EndpointDisabledError) - pub fn build(self) -> crate::error::EndpointDisabledError { - crate::error::EndpointDisabledError { + /// Consumes the builder and constructs a [`EndpointDisabledException`](crate::error::EndpointDisabledException) + pub fn build(self) -> crate::error::EndpointDisabledException { + crate::error::EndpointDisabledException { message: self.message, } } } } -impl EndpointDisabledError { - /// Creates a new builder-style object to manufacture [`EndpointDisabledError`](crate::error::EndpointDisabledError) - pub fn builder() -> crate::error::endpoint_disabled_error::Builder { - crate::error::endpoint_disabled_error::Builder::default() +impl EndpointDisabledException { + /// Creates a new builder-style object to manufacture [`EndpointDisabledException`](crate::error::EndpointDisabledException) + pub fn builder() -> crate::error::endpoint_disabled_exception::Builder { + crate::error::endpoint_disabled_exception::Builder::default() } } ///

    Indicates that a parameter in the request is invalid.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ValidationError { +pub struct ValidationException { pub message: std::option::Option, } -impl std::fmt::Debug for ValidationError { +impl std::fmt::Debug for ValidationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ValidationError"); + let mut formatter = f.debug_struct("ValidationException"); formatter.field("message", &self.message); formatter.finish() } } -impl ValidationError { +impl ValidationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ValidationError { +impl std::fmt::Display for ValidationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ValidationError [ValidationException]")?; + write!(f, "ValidationException")?; if let Some(inner_24) = &self.message { write!(f, ": {}", inner_24)?; } Ok(()) } } -impl std::error::Error for ValidationError {} -/// See [`ValidationError`](crate::error::ValidationError) -pub mod validation_error { - /// A builder for [`ValidationError`](crate::error::ValidationError) +impl std::error::Error for ValidationException {} +/// See [`ValidationException`](crate::error::ValidationException) +pub mod validation_exception { + /// A builder for [`ValidationException`](crate::error::ValidationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5819,18 +5985,18 @@ pub mod validation_error { self.message = input; self } - /// Consumes the builder and constructs a [`ValidationError`](crate::error::ValidationError) - pub fn build(self) -> crate::error::ValidationError { - crate::error::ValidationError { + /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException) + pub fn build(self) -> crate::error::ValidationException { + crate::error::ValidationException { message: self.message, } } } } -impl ValidationError { - /// Creates a new builder-style object to manufacture [`ValidationError`](crate::error::ValidationError) - pub fn builder() -> crate::error::validation_error::Builder { - crate::error::validation_error::Builder::default() +impl ValidationException { + /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException) + pub fn builder() -> crate::error::validation_exception::Builder { + crate::error::validation_exception::Builder::default() } } @@ -5838,34 +6004,34 @@ impl ValidationError { /// constraints.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UserErrorError { +pub struct UserErrorException { pub message: std::option::Option, } -impl std::fmt::Debug for UserErrorError { +impl std::fmt::Debug for UserErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UserErrorError"); + let mut formatter = f.debug_struct("UserErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl UserErrorError { +impl UserErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UserErrorError { +impl std::fmt::Display for UserErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UserErrorError [UserErrorException]")?; + write!(f, "UserErrorException")?; if let Some(inner_25) = &self.message { write!(f, ": {}", inner_25)?; } Ok(()) } } -impl std::error::Error for UserErrorError {} -/// See [`UserErrorError`](crate::error::UserErrorError) -pub mod user_error_error { - /// A builder for [`UserErrorError`](crate::error::UserErrorError) +impl std::error::Error for UserErrorException {} +/// See [`UserErrorException`](crate::error::UserErrorException) +pub mod user_error_exception { + /// A builder for [`UserErrorException`](crate::error::UserErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5880,52 +6046,52 @@ pub mod user_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`UserErrorError`](crate::error::UserErrorError) - pub fn build(self) -> crate::error::UserErrorError { - crate::error::UserErrorError { + /// Consumes the builder and constructs a [`UserErrorException`](crate::error::UserErrorException) + pub fn build(self) -> crate::error::UserErrorException { + crate::error::UserErrorException { message: self.message, } } } } -impl UserErrorError { - /// Creates a new builder-style object to manufacture [`UserErrorError`](crate::error::UserErrorError) - pub fn builder() -> crate::error::user_error_error::Builder { - crate::error::user_error_error::Builder::default() +impl UserErrorException { + /// Creates a new builder-style object to manufacture [`UserErrorException`](crate::error::UserErrorException) + pub fn builder() -> crate::error::user_error_exception::Builder { + crate::error::user_error_exception::Builder::default() } } ///

    Indicates that the customer already owns the maximum allowed number of topics.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TopicLimitExceededError { +pub struct TopicLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for TopicLimitExceededError { +impl std::fmt::Debug for TopicLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TopicLimitExceededError"); + let mut formatter = f.debug_struct("TopicLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl TopicLimitExceededError { +impl TopicLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TopicLimitExceededError { +impl std::fmt::Display for TopicLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TopicLimitExceededError [TopicLimitExceededException]")?; + write!(f, "TopicLimitExceededException")?; if let Some(inner_26) = &self.message { write!(f, ": {}", inner_26)?; } Ok(()) } } -impl std::error::Error for TopicLimitExceededError {} -/// See [`TopicLimitExceededError`](crate::error::TopicLimitExceededError) -pub mod topic_limit_exceeded_error { - /// A builder for [`TopicLimitExceededError`](crate::error::TopicLimitExceededError) +impl std::error::Error for TopicLimitExceededException {} +/// See [`TopicLimitExceededException`](crate::error::TopicLimitExceededException) +pub mod topic_limit_exceeded_exception { + /// A builder for [`TopicLimitExceededException`](crate::error::TopicLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5940,18 +6106,18 @@ pub mod topic_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`TopicLimitExceededError`](crate::error::TopicLimitExceededError) - pub fn build(self) -> crate::error::TopicLimitExceededError { - crate::error::TopicLimitExceededError { + /// Consumes the builder and constructs a [`TopicLimitExceededException`](crate::error::TopicLimitExceededException) + pub fn build(self) -> crate::error::TopicLimitExceededException { + crate::error::TopicLimitExceededException { message: self.message, } } } } -impl TopicLimitExceededError { - /// Creates a new builder-style object to manufacture [`TopicLimitExceededError`](crate::error::TopicLimitExceededError) - pub fn builder() -> crate::error::topic_limit_exceeded_error::Builder { - crate::error::topic_limit_exceeded_error::Builder::default() +impl TopicLimitExceededException { + /// Creates a new builder-style object to manufacture [`TopicLimitExceededException`](crate::error::TopicLimitExceededException) + pub fn builder() -> crate::error::topic_limit_exceeded_exception::Builder { + crate::error::topic_limit_exceeded_exception::Builder::default() } } @@ -5959,34 +6125,34 @@ impl TopicLimitExceededError { /// your AWS account. You can't send SMS messages to phone numbers that opt out.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct OptedOutError { +pub struct OptedOutException { pub message: std::option::Option, } -impl std::fmt::Debug for OptedOutError { +impl std::fmt::Debug for OptedOutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OptedOutError"); + let mut formatter = f.debug_struct("OptedOutException"); formatter.field("message", &self.message); formatter.finish() } } -impl OptedOutError { +impl OptedOutException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OptedOutError { +impl std::fmt::Display for OptedOutException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OptedOutError [OptedOutException]")?; + write!(f, "OptedOutException")?; if let Some(inner_27) = &self.message { write!(f, ": {}", inner_27)?; } Ok(()) } } -impl std::error::Error for OptedOutError {} -/// See [`OptedOutError`](crate::error::OptedOutError) -pub mod opted_out_error { - /// A builder for [`OptedOutError`](crate::error::OptedOutError) +impl std::error::Error for OptedOutException {} +/// See [`OptedOutException`](crate::error::OptedOutException) +pub mod opted_out_exception { + /// A builder for [`OptedOutException`](crate::error::OptedOutException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -6001,17 +6167,17 @@ pub mod opted_out_error { self.message = input; self } - /// Consumes the builder and constructs a [`OptedOutError`](crate::error::OptedOutError) - pub fn build(self) -> crate::error::OptedOutError { - crate::error::OptedOutError { + /// Consumes the builder and constructs a [`OptedOutException`](crate::error::OptedOutException) + pub fn build(self) -> crate::error::OptedOutException { + crate::error::OptedOutException { message: self.message, } } } } -impl OptedOutError { - /// Creates a new builder-style object to manufacture [`OptedOutError`](crate::error::OptedOutError) - pub fn builder() -> crate::error::opted_out_error::Builder { - crate::error::opted_out_error::Builder::default() +impl OptedOutException { + /// Creates a new builder-style object to manufacture [`OptedOutException`](crate::error::OptedOutException) + pub fn builder() -> crate::error::opted_out_exception::Builder { + crate::error::opted_out_exception::Builder::default() } } diff --git a/sdk/sns/src/error_meta.rs b/sdk/sns/src/error_meta.rs index cb864a2194ac..74b4b7344c64 100644 --- a/sdk/sns/src/error_meta.rs +++ b/sdk/sns/src/error_meta.rs @@ -2,65 +2,65 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AuthorizationErrorError(crate::error::AuthorizationErrorError), - ConcurrentAccessError(crate::error::ConcurrentAccessError), - EndpointDisabledError(crate::error::EndpointDisabledError), - FilterPolicyLimitExceededError(crate::error::FilterPolicyLimitExceededError), - InternalErrorError(crate::error::InternalErrorError), - InvalidParameterError(crate::error::InvalidParameterError), - InvalidParameterValueError(crate::error::InvalidParameterValueError), - InvalidSecurityError(crate::error::InvalidSecurityError), - KMSAccessDeniedError(crate::error::KMSAccessDeniedError), - KMSDisabledError(crate::error::KMSDisabledError), - KMSInvalidStateError(crate::error::KMSInvalidStateError), - KMSNotFoundError(crate::error::KMSNotFoundError), - KMSOptInRequired(crate::error::KMSOptInRequired), - KMSThrottlingError(crate::error::KMSThrottlingError), - NotFoundError(crate::error::NotFoundError), - OptedOutError(crate::error::OptedOutError), - PlatformApplicationDisabledError(crate::error::PlatformApplicationDisabledError), - ResourceNotFoundError(crate::error::ResourceNotFoundError), - StaleTagError(crate::error::StaleTagError), - SubscriptionLimitExceededError(crate::error::SubscriptionLimitExceededError), - TagLimitExceededError(crate::error::TagLimitExceededError), - TagPolicyError(crate::error::TagPolicyError), - ThrottledError(crate::error::ThrottledError), - TopicLimitExceededError(crate::error::TopicLimitExceededError), - UserErrorError(crate::error::UserErrorError), - ValidationError(crate::error::ValidationError), - VerificationError(crate::error::VerificationError), + AuthorizationErrorException(crate::error::AuthorizationErrorException), + ConcurrentAccessException(crate::error::ConcurrentAccessException), + EndpointDisabledException(crate::error::EndpointDisabledException), + FilterPolicyLimitExceededException(crate::error::FilterPolicyLimitExceededException), + InternalErrorException(crate::error::InternalErrorException), + InvalidParameterException(crate::error::InvalidParameterException), + InvalidParameterValueException(crate::error::InvalidParameterValueException), + InvalidSecurityException(crate::error::InvalidSecurityException), + KmsAccessDeniedException(crate::error::KmsAccessDeniedException), + KmsDisabledException(crate::error::KmsDisabledException), + KmsInvalidStateException(crate::error::KmsInvalidStateException), + KmsNotFoundException(crate::error::KmsNotFoundException), + KmsOptInRequired(crate::error::KmsOptInRequired), + KmsThrottlingException(crate::error::KmsThrottlingException), + NotFoundException(crate::error::NotFoundException), + OptedOutException(crate::error::OptedOutException), + PlatformApplicationDisabledException(crate::error::PlatformApplicationDisabledException), + ResourceNotFoundException(crate::error::ResourceNotFoundException), + StaleTagException(crate::error::StaleTagException), + SubscriptionLimitExceededException(crate::error::SubscriptionLimitExceededException), + TagLimitExceededException(crate::error::TagLimitExceededException), + TagPolicyException(crate::error::TagPolicyException), + ThrottledException(crate::error::ThrottledException), + TopicLimitExceededException(crate::error::TopicLimitExceededException), + UserErrorException(crate::error::UserErrorException), + ValidationException(crate::error::ValidationException), + VerificationException(crate::error::VerificationException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AuthorizationErrorError(inner) => inner.fmt(f), - Error::ConcurrentAccessError(inner) => inner.fmt(f), - Error::EndpointDisabledError(inner) => inner.fmt(f), - Error::FilterPolicyLimitExceededError(inner) => inner.fmt(f), - Error::InternalErrorError(inner) => inner.fmt(f), - Error::InvalidParameterError(inner) => inner.fmt(f), - Error::InvalidParameterValueError(inner) => inner.fmt(f), - Error::InvalidSecurityError(inner) => inner.fmt(f), - Error::KMSAccessDeniedError(inner) => inner.fmt(f), - Error::KMSDisabledError(inner) => inner.fmt(f), - Error::KMSInvalidStateError(inner) => inner.fmt(f), - Error::KMSNotFoundError(inner) => inner.fmt(f), - Error::KMSOptInRequired(inner) => inner.fmt(f), - Error::KMSThrottlingError(inner) => inner.fmt(f), - Error::NotFoundError(inner) => inner.fmt(f), - Error::OptedOutError(inner) => inner.fmt(f), - Error::PlatformApplicationDisabledError(inner) => inner.fmt(f), - Error::ResourceNotFoundError(inner) => inner.fmt(f), - Error::StaleTagError(inner) => inner.fmt(f), - Error::SubscriptionLimitExceededError(inner) => inner.fmt(f), - Error::TagLimitExceededError(inner) => inner.fmt(f), - Error::TagPolicyError(inner) => inner.fmt(f), - Error::ThrottledError(inner) => inner.fmt(f), - Error::TopicLimitExceededError(inner) => inner.fmt(f), - Error::UserErrorError(inner) => inner.fmt(f), - Error::ValidationError(inner) => inner.fmt(f), - Error::VerificationError(inner) => inner.fmt(f), + Error::AuthorizationErrorException(inner) => inner.fmt(f), + Error::ConcurrentAccessException(inner) => inner.fmt(f), + Error::EndpointDisabledException(inner) => inner.fmt(f), + Error::FilterPolicyLimitExceededException(inner) => inner.fmt(f), + Error::InternalErrorException(inner) => inner.fmt(f), + Error::InvalidParameterException(inner) => inner.fmt(f), + Error::InvalidParameterValueException(inner) => inner.fmt(f), + Error::InvalidSecurityException(inner) => inner.fmt(f), + Error::KmsAccessDeniedException(inner) => inner.fmt(f), + Error::KmsDisabledException(inner) => inner.fmt(f), + Error::KmsInvalidStateException(inner) => inner.fmt(f), + Error::KmsNotFoundException(inner) => inner.fmt(f), + Error::KmsOptInRequired(inner) => inner.fmt(f), + Error::KmsThrottlingException(inner) => inner.fmt(f), + Error::NotFoundException(inner) => inner.fmt(f), + Error::OptedOutException(inner) => inner.fmt(f), + Error::PlatformApplicationDisabledException(inner) => inner.fmt(f), + Error::ResourceNotFoundException(inner) => inner.fmt(f), + Error::StaleTagException(inner) => inner.fmt(f), + Error::SubscriptionLimitExceededException(inner) => inner.fmt(f), + Error::TagLimitExceededException(inner) => inner.fmt(f), + Error::TagPolicyException(inner) => inner.fmt(f), + Error::ThrottledException(inner) => inner.fmt(f), + Error::TopicLimitExceededException(inner) => inner.fmt(f), + Error::UserErrorException(inner) => inner.fmt(f), + Error::ValidationException(inner) => inner.fmt(f), + Error::VerificationException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -69,17 +69,17 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AddPermissionErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::AddPermissionErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::AddPermissionErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::AddPermissionErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::AddPermissionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::AddPermissionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::AddPermissionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::AddPermissionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::AddPermissionErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -94,23 +94,13 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorError( - inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterError( - inner, - ) => Error::InvalidParameterError(inner), - crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) - } - crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorException(inner) => Error::AuthorizationErrorException(inner), + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorException(inner) => Error::InternalErrorException(inner), + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledException(inner) => Error::ThrottledException(inner), + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -119,24 +109,24 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ConfirmSubscriptionErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::ConfirmSubscriptionErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededError( + crate::error::ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededException( inner, - ) => Error::FilterPolicyLimitExceededError(inner), - crate::error::ConfirmSubscriptionErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + ) => Error::FilterPolicyLimitExceededException(inner), + crate::error::ConfirmSubscriptionErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ConfirmSubscriptionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ConfirmSubscriptionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ConfirmSubscriptionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ConfirmSubscriptionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::ConfirmSubscriptionErrorKind::SubscriptionLimitExceededError( + crate::error::ConfirmSubscriptionErrorKind::SubscriptionLimitExceededException( inner, - ) => Error::SubscriptionLimitExceededError(inner), + ) => Error::SubscriptionLimitExceededException(inner), crate::error::ConfirmSubscriptionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -151,15 +141,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreatePlatformApplicationErrorKind::AuthorizationErrorError( + crate::error::CreatePlatformApplicationErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::CreatePlatformApplicationErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::CreatePlatformApplicationErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + ) => Error::AuthorizationErrorException(inner), + crate::error::CreatePlatformApplicationErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } + crate::error::CreatePlatformApplicationErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), crate::error::CreatePlatformApplicationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -172,17 +162,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreatePlatformEndpointErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::CreatePlatformEndpointErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::CreatePlatformEndpointErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::CreatePlatformEndpointErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::CreatePlatformEndpointErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreatePlatformEndpointErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreatePlatformEndpointErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::CreatePlatformEndpointErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::CreatePlatformEndpointErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -198,23 +188,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError( + crate::error::CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::CreateSMSSandboxPhoneNumberErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterError( + ) => Error::AuthorizationErrorException(inner), + crate::error::CreateSMSSandboxPhoneNumberErrorKind::InternalErrorException( + inner, + ) => Error::InternalErrorException(inner), + crate::error::CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::CreateSMSSandboxPhoneNumberErrorKind::OptedOutError(inner) => { - Error::OptedOutError(inner) + ) => Error::InvalidParameterException(inner), + crate::error::CreateSMSSandboxPhoneNumberErrorKind::OptedOutException(inner) => { + Error::OptedOutException(inner) } - crate::error::CreateSMSSandboxPhoneNumberErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::CreateSMSSandboxPhoneNumberErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } - crate::error::CreateSMSSandboxPhoneNumberErrorKind::UserErrorError(inner) => { - Error::UserErrorError(inner) + crate::error::CreateSMSSandboxPhoneNumberErrorKind::UserErrorException(inner) => { + Error::UserErrorException(inner) } crate::error::CreateSMSSandboxPhoneNumberErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -228,32 +218,32 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CreateTopicErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::CreateTopicErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::CreateTopicErrorKind::ConcurrentAccessError(inner) => { - Error::ConcurrentAccessError(inner) + crate::error::CreateTopicErrorKind::ConcurrentAccessException(inner) => { + Error::ConcurrentAccessException(inner) } - crate::error::CreateTopicErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::CreateTopicErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::CreateTopicErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::CreateTopicErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::CreateTopicErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::CreateTopicErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::CreateTopicErrorKind::StaleTagError(inner) => { - Error::StaleTagError(inner) + crate::error::CreateTopicErrorKind::StaleTagException(inner) => { + Error::StaleTagException(inner) } - crate::error::CreateTopicErrorKind::TagLimitExceededError(inner) => { - Error::TagLimitExceededError(inner) + crate::error::CreateTopicErrorKind::TagLimitExceededException(inner) => { + Error::TagLimitExceededException(inner) } - crate::error::CreateTopicErrorKind::TagPolicyError(inner) => { - Error::TagPolicyError(inner) + crate::error::CreateTopicErrorKind::TagPolicyException(inner) => { + Error::TagPolicyException(inner) } - crate::error::CreateTopicErrorKind::TopicLimitExceededError(inner) => { - Error::TopicLimitExceededError(inner) + crate::error::CreateTopicErrorKind::TopicLimitExceededException(inner) => { + Error::TopicLimitExceededException(inner) } crate::error::CreateTopicErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -265,14 +255,14 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteEndpointErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::DeleteEndpointErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::DeleteEndpointErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::DeleteEndpointErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::DeleteEndpointErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteEndpointErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } crate::error::DeleteEndpointErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -286,15 +276,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeletePlatformApplicationErrorKind::AuthorizationErrorError( + crate::error::DeletePlatformApplicationErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::DeletePlatformApplicationErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::DeletePlatformApplicationErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + ) => Error::AuthorizationErrorException(inner), + crate::error::DeletePlatformApplicationErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } + crate::error::DeletePlatformApplicationErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), crate::error::DeletePlatformApplicationErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -309,23 +299,23 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError( + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterError( + ) => Error::AuthorizationErrorException(inner), + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorException( + inner, + ) => Error::InternalErrorException(inner), + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundError( + ) => Error::InvalidParameterException(inner), + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundException( inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + ) => Error::ResourceNotFoundException(inner), + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } - crate::error::DeleteSMSSandboxPhoneNumberErrorKind::UserErrorError(inner) => { - Error::UserErrorError(inner) + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::UserErrorException(inner) => { + Error::UserErrorException(inner) } crate::error::DeleteSMSSandboxPhoneNumberErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -339,26 +329,26 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteTopicErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::DeleteTopicErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::DeleteTopicErrorKind::ConcurrentAccessError(inner) => { - Error::ConcurrentAccessError(inner) + crate::error::DeleteTopicErrorKind::ConcurrentAccessException(inner) => { + Error::ConcurrentAccessException(inner) } - crate::error::DeleteTopicErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::DeleteTopicErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::DeleteTopicErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::DeleteTopicErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::DeleteTopicErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::DeleteTopicErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::DeleteTopicErrorKind::StaleTagError(inner) => { - Error::StaleTagError(inner) + crate::error::DeleteTopicErrorKind::StaleTagException(inner) => { + Error::StaleTagException(inner) } - crate::error::DeleteTopicErrorKind::TagPolicyError(inner) => { - Error::TagPolicyError(inner) + crate::error::DeleteTopicErrorKind::TagPolicyException(inner) => { + Error::TagPolicyException(inner) } crate::error::DeleteTopicErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -370,17 +360,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetEndpointAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::GetEndpointAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::GetEndpointAttributesErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::GetEndpointAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::GetEndpointAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetEndpointAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetEndpointAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetEndpointAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::GetEndpointAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -398,10 +388,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(inner) => Error::AuthorizationErrorError(inner), - crate::error::GetPlatformApplicationAttributesErrorKind::InternalErrorError(inner) => Error::InternalErrorError(inner), - crate::error::GetPlatformApplicationAttributesErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::GetPlatformApplicationAttributesErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), + crate::error::GetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(inner) => Error::AuthorizationErrorException(inner), + crate::error::GetPlatformApplicationAttributesErrorKind::InternalErrorException(inner) => Error::InternalErrorException(inner), + crate::error::GetPlatformApplicationAttributesErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::GetPlatformApplicationAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), crate::error::GetPlatformApplicationAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -412,17 +402,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSMSAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::GetSMSAttributesErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::GetSMSAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::GetSMSAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::GetSMSAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetSMSAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetSMSAttributesErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::GetSMSAttributesErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::GetSMSAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -438,14 +428,14 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorError( + crate::error::GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::GetSMSSandboxAccountStatusErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::GetSMSSandboxAccountStatusErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + ) => Error::AuthorizationErrorException(inner), + crate::error::GetSMSSandboxAccountStatusErrorKind::InternalErrorException( + inner, + ) => Error::InternalErrorException(inner), + crate::error::GetSMSSandboxAccountStatusErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::GetSMSSandboxAccountStatusErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -461,17 +451,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSubscriptionAttributesErrorKind::AuthorizationErrorError( + crate::error::GetSubscriptionAttributesErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::GetSubscriptionAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + ) => Error::AuthorizationErrorException(inner), + crate::error::GetSubscriptionAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::GetSubscriptionAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::GetSubscriptionAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetSubscriptionAttributesErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::GetSubscriptionAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::GetSubscriptionAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -485,20 +475,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetTopicAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::GetTopicAttributesErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::GetTopicAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::GetTopicAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::GetTopicAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::GetTopicAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::GetTopicAttributesErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::GetTopicAttributesErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::GetTopicAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::GetTopicAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::GetTopicAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -516,10 +506,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorError(inner) => Error::AuthorizationErrorError(inner), - crate::error::ListEndpointsByPlatformApplicationErrorKind::InternalErrorError(inner) => Error::InternalErrorError(inner), - crate::error::ListEndpointsByPlatformApplicationErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::ListEndpointsByPlatformApplicationErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), + crate::error::ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorException(inner) => Error::AuthorizationErrorException(inner), + crate::error::ListEndpointsByPlatformApplicationErrorKind::InternalErrorException(inner) => Error::InternalErrorException(inner), + crate::error::ListEndpointsByPlatformApplicationErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::ListEndpointsByPlatformApplicationErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), crate::error::ListEndpointsByPlatformApplicationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -530,20 +520,20 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOriginationNumbersErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::ListOriginationNumbersErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::ListOriginationNumbersErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::ListOriginationNumbersErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ListOriginationNumbersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListOriginationNumbersErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListOriginationNumbersErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::ListOriginationNumbersErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } - crate::error::ListOriginationNumbersErrorKind::ValidationError(inner) => { - Error::ValidationError(inner) + crate::error::ListOriginationNumbersErrorKind::ValidationException(inner) => { + Error::ValidationException(inner) } crate::error::ListOriginationNumbersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -559,17 +549,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::ListPhoneNumbersOptedOutErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::ListPhoneNumbersOptedOutErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::ListPhoneNumbersOptedOutErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ListPhoneNumbersOptedOutErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::ListPhoneNumbersOptedOutErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ListPhoneNumbersOptedOutErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::ListPhoneNumbersOptedOutErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -585,15 +575,15 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListPlatformApplicationsErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::ListPlatformApplicationsErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::ListPlatformApplicationsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListPlatformApplicationsErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::ListPlatformApplicationsErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } + crate::error::ListPlatformApplicationsErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), crate::error::ListPlatformApplicationsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -608,20 +598,20 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorError( + crate::error::ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::ListSMSSandboxPhoneNumbersErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) - } - crate::error::ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) - } - crate::error::ListSMSSandboxPhoneNumbersErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + ) => Error::AuthorizationErrorException(inner), + crate::error::ListSMSSandboxPhoneNumbersErrorKind::InternalErrorException( + inner, + ) => Error::InternalErrorException(inner), + crate::error::ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::ListSMSSandboxPhoneNumbersErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::ListSMSSandboxPhoneNumbersErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -635,14 +625,14 @@ impl From> f fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSubscriptionsErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::ListSubscriptionsErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::ListSubscriptionsErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::ListSubscriptionsErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ListSubscriptionsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListSubscriptionsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } crate::error::ListSubscriptionsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -658,17 +648,17 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListSubscriptionsByTopicErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::ListSubscriptionsByTopicErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::ListSubscriptionsByTopicErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListSubscriptionsByTopicErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::ListSubscriptionsByTopicErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ListSubscriptionsByTopicErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::ListSubscriptionsByTopicErrorKind::InvalidParameterException( + inner, + ) => Error::InvalidParameterException(inner), + crate::error::ListSubscriptionsByTopicErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::ListSubscriptionsByTopicErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -682,20 +672,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTagsForResourceErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::ListTagsForResourceErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::ListTagsForResourceErrorKind::ConcurrentAccessError(inner) => { - Error::ConcurrentAccessError(inner) + crate::error::ListTagsForResourceErrorKind::ConcurrentAccessException(inner) => { + Error::ConcurrentAccessException(inner) } - crate::error::ListTagsForResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTagsForResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::ListTagsForResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::ListTagsForResourceErrorKind::TagPolicyError(inner) => { - Error::TagPolicyError(inner) + crate::error::ListTagsForResourceErrorKind::TagPolicyException(inner) => { + Error::TagPolicyException(inner) } crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -709,14 +699,14 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListTopicsErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::ListTopicsErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::ListTopicsErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::ListTopicsErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::ListTopicsErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::ListTopicsErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } crate::error::ListTopicsErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -728,17 +718,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::OptInPhoneNumberErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::OptInPhoneNumberErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::OptInPhoneNumberErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::OptInPhoneNumberErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::OptInPhoneNumberErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::OptInPhoneNumberErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::OptInPhoneNumberErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::OptInPhoneNumberErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::OptInPhoneNumberErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -752,45 +742,47 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PublishErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::PublishErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) + } + crate::error::PublishErrorKind::EndpointDisabledException(inner) => { + Error::EndpointDisabledException(inner) } - crate::error::PublishErrorKind::EndpointDisabledError(inner) => { - Error::EndpointDisabledError(inner) + crate::error::PublishErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::PublishErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::PublishErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::PublishErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::PublishErrorKind::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) } - crate::error::PublishErrorKind::InvalidParameterValueError(inner) => { - Error::InvalidParameterValueError(inner) + crate::error::PublishErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::PublishErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::PublishErrorKind::KmsAccessDeniedException(inner) => { + Error::KmsAccessDeniedException(inner) } - crate::error::PublishErrorKind::KMSAccessDeniedError(inner) => { - Error::KMSAccessDeniedError(inner) + crate::error::PublishErrorKind::KmsDisabledException(inner) => { + Error::KmsDisabledException(inner) } - crate::error::PublishErrorKind::KMSDisabledError(inner) => { - Error::KMSDisabledError(inner) + crate::error::PublishErrorKind::KmsInvalidStateException(inner) => { + Error::KmsInvalidStateException(inner) } - crate::error::PublishErrorKind::KMSInvalidStateError(inner) => { - Error::KMSInvalidStateError(inner) + crate::error::PublishErrorKind::KmsNotFoundException(inner) => { + Error::KmsNotFoundException(inner) } - crate::error::PublishErrorKind::KMSNotFoundError(inner) => { - Error::KMSNotFoundError(inner) + crate::error::PublishErrorKind::KmsOptInRequired(inner) => { + Error::KmsOptInRequired(inner) } - crate::error::PublishErrorKind::KMSOptInRequired(inner) => { - Error::KMSOptInRequired(inner) + crate::error::PublishErrorKind::KmsThrottlingException(inner) => { + Error::KmsThrottlingException(inner) } - crate::error::PublishErrorKind::KMSThrottlingError(inner) => { - Error::KMSThrottlingError(inner) + crate::error::PublishErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::PublishErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), - crate::error::PublishErrorKind::PlatformApplicationDisabledError(inner) => { - Error::PlatformApplicationDisabledError(inner) + crate::error::PublishErrorKind::PlatformApplicationDisabledException(inner) => { + Error::PlatformApplicationDisabledException(inner) } crate::error::PublishErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -802,17 +794,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RemovePermissionErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::RemovePermissionErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::RemovePermissionErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::RemovePermissionErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::RemovePermissionErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::RemovePermissionErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::RemovePermissionErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::RemovePermissionErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::RemovePermissionErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -826,17 +818,17 @@ impl From) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetEndpointAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) - } - crate::error::SetEndpointAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::SetEndpointAttributesErrorKind::AuthorizationErrorException( + inner, + ) => Error::AuthorizationErrorException(inner), + crate::error::SetEndpointAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::SetEndpointAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::SetEndpointAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::SetEndpointAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::SetEndpointAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::SetEndpointAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -854,10 +846,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::SetPlatformApplicationAttributesErrorKind::AuthorizationErrorError(inner) => Error::AuthorizationErrorError(inner), - crate::error::SetPlatformApplicationAttributesErrorKind::InternalErrorError(inner) => Error::InternalErrorError(inner), - crate::error::SetPlatformApplicationAttributesErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::SetPlatformApplicationAttributesErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), + crate::error::SetPlatformApplicationAttributesErrorKind::AuthorizationErrorException(inner) => Error::AuthorizationErrorException(inner), + crate::error::SetPlatformApplicationAttributesErrorKind::InternalErrorException(inner) => Error::InternalErrorException(inner), + crate::error::SetPlatformApplicationAttributesErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::SetPlatformApplicationAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), crate::error::SetPlatformApplicationAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -868,17 +860,17 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetSMSAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::SetSMSAttributesErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::SetSMSAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::SetSMSAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::SetSMSAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::SetSMSAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::SetSMSAttributesErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) + crate::error::SetSMSAttributesErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } crate::error::SetSMSAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -894,11 +886,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::SetSubscriptionAttributesErrorKind::AuthorizationErrorError(inner) => Error::AuthorizationErrorError(inner), - crate::error::SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededError(inner) => Error::FilterPolicyLimitExceededError(inner), - crate::error::SetSubscriptionAttributesErrorKind::InternalErrorError(inner) => Error::InternalErrorError(inner), - crate::error::SetSubscriptionAttributesErrorKind::InvalidParameterError(inner) => Error::InvalidParameterError(inner), - crate::error::SetSubscriptionAttributesErrorKind::NotFoundError(inner) => Error::NotFoundError(inner), + crate::error::SetSubscriptionAttributesErrorKind::AuthorizationErrorException(inner) => Error::AuthorizationErrorException(inner), + crate::error::SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededException(inner) => Error::FilterPolicyLimitExceededException(inner), + crate::error::SetSubscriptionAttributesErrorKind::InternalErrorException(inner) => Error::InternalErrorException(inner), + crate::error::SetSubscriptionAttributesErrorKind::InvalidParameterException(inner) => Error::InvalidParameterException(inner), + crate::error::SetSubscriptionAttributesErrorKind::NotFoundException(inner) => Error::NotFoundException(inner), crate::error::SetSubscriptionAttributesErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -909,20 +901,20 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SetTopicAttributesErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::SetTopicAttributesErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::SetTopicAttributesErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::SetTopicAttributesErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::SetTopicAttributesErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::SetTopicAttributesErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::SetTopicAttributesErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::SetTopicAttributesErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::SetTopicAttributesErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::SetTopicAttributesErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::SetTopicAttributesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -936,26 +928,26 @@ impl From> for Error fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SubscribeErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::SubscribeErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::SubscribeErrorKind::FilterPolicyLimitExceededError(inner) => { - Error::FilterPolicyLimitExceededError(inner) + crate::error::SubscribeErrorKind::FilterPolicyLimitExceededException(inner) => { + Error::FilterPolicyLimitExceededException(inner) } - crate::error::SubscribeErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::SubscribeErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::SubscribeErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::SubscribeErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::SubscribeErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::SubscribeErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::SubscribeErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::SubscribeErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } - crate::error::SubscribeErrorKind::SubscriptionLimitExceededError(inner) => { - Error::SubscriptionLimitExceededError(inner) + crate::error::SubscribeErrorKind::SubscriptionLimitExceededException(inner) => { + Error::SubscriptionLimitExceededException(inner) } crate::error::SubscribeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -967,26 +959,26 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TagResourceErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::TagResourceErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::TagResourceErrorKind::ConcurrentAccessError(inner) => { - Error::ConcurrentAccessError(inner) + crate::error::TagResourceErrorKind::ConcurrentAccessException(inner) => { + Error::ConcurrentAccessException(inner) } - crate::error::TagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::TagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::TagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::TagResourceErrorKind::StaleTagError(inner) => { - Error::StaleTagError(inner) + crate::error::TagResourceErrorKind::StaleTagException(inner) => { + Error::StaleTagException(inner) } - crate::error::TagResourceErrorKind::TagLimitExceededError(inner) => { - Error::TagLimitExceededError(inner) + crate::error::TagResourceErrorKind::TagLimitExceededException(inner) => { + Error::TagLimitExceededException(inner) } - crate::error::TagResourceErrorKind::TagPolicyError(inner) => { - Error::TagPolicyError(inner) + crate::error::TagResourceErrorKind::TagPolicyException(inner) => { + Error::TagPolicyException(inner) } crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -998,20 +990,20 @@ impl From> for Err fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UnsubscribeErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::UnsubscribeErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::UnsubscribeErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) + crate::error::UnsubscribeErrorKind::InternalErrorException(inner) => { + Error::InternalErrorException(inner) } - crate::error::UnsubscribeErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UnsubscribeErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UnsubscribeErrorKind::InvalidSecurityError(inner) => { - Error::InvalidSecurityError(inner) + crate::error::UnsubscribeErrorKind::InvalidSecurityException(inner) => { + Error::InvalidSecurityException(inner) } - crate::error::UnsubscribeErrorKind::NotFoundError(inner) => { - Error::NotFoundError(inner) + crate::error::UnsubscribeErrorKind::NotFoundException(inner) => { + Error::NotFoundException(inner) } crate::error::UnsubscribeErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1023,26 +1015,26 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UntagResourceErrorKind::AuthorizationErrorError(inner) => { - Error::AuthorizationErrorError(inner) + crate::error::UntagResourceErrorKind::AuthorizationErrorException(inner) => { + Error::AuthorizationErrorException(inner) } - crate::error::UntagResourceErrorKind::ConcurrentAccessError(inner) => { - Error::ConcurrentAccessError(inner) + crate::error::UntagResourceErrorKind::ConcurrentAccessException(inner) => { + Error::ConcurrentAccessException(inner) } - crate::error::UntagResourceErrorKind::InvalidParameterError(inner) => { - Error::InvalidParameterError(inner) + crate::error::UntagResourceErrorKind::InvalidParameterException(inner) => { + Error::InvalidParameterException(inner) } - crate::error::UntagResourceErrorKind::ResourceNotFoundError(inner) => { - Error::ResourceNotFoundError(inner) + crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) } - crate::error::UntagResourceErrorKind::StaleTagError(inner) => { - Error::StaleTagError(inner) + crate::error::UntagResourceErrorKind::StaleTagException(inner) => { + Error::StaleTagException(inner) } - crate::error::UntagResourceErrorKind::TagLimitExceededError(inner) => { - Error::TagLimitExceededError(inner) + crate::error::UntagResourceErrorKind::TagLimitExceededException(inner) => { + Error::TagLimitExceededException(inner) } - crate::error::UntagResourceErrorKind::TagPolicyError(inner) => { - Error::TagPolicyError(inner) + crate::error::UntagResourceErrorKind::TagPolicyException(inner) => { + Error::TagPolicyException(inner) } crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1056,24 +1048,24 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorError( + crate::error::VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( inner, - ) => Error::AuthorizationErrorError(inner), - crate::error::VerifySMSSandboxPhoneNumberErrorKind::InternalErrorError(inner) => { - Error::InternalErrorError(inner) - } - crate::error::VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterError( + ) => Error::AuthorizationErrorException(inner), + crate::error::VerifySMSSandboxPhoneNumberErrorKind::InternalErrorException( inner, - ) => Error::InvalidParameterError(inner), - crate::error::VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundError( + ) => Error::InternalErrorException(inner), + crate::error::VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterException( inner, - ) => Error::ResourceNotFoundError(inner), - crate::error::VerifySMSSandboxPhoneNumberErrorKind::ThrottledError(inner) => { - Error::ThrottledError(inner) - } - crate::error::VerifySMSSandboxPhoneNumberErrorKind::VerificationError(inner) => { - Error::VerificationError(inner) + ) => Error::InvalidParameterException(inner), + crate::error::VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundException( + inner, + ) => Error::ResourceNotFoundException(inner), + crate::error::VerifySMSSandboxPhoneNumberErrorKind::ThrottledException(inner) => { + Error::ThrottledException(inner) } + crate::error::VerifySMSSandboxPhoneNumberErrorKind::VerificationException( + inner, + ) => Error::VerificationException(inner), crate::error::VerifySMSSandboxPhoneNumberErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } diff --git a/sdk/sns/src/input.rs b/sdk/sns/src/input.rs index 7c15b6c62fac..2312e8bda859 100644 --- a/sdk/sns/src/input.rs +++ b/sdk/sns/src/input.rs @@ -133,8 +133,9 @@ impl AddPermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -142,7 +143,7 @@ impl AddPermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -264,8 +265,9 @@ impl CheckIfPhoneNumberIsOptedOutInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -273,7 +275,7 @@ impl CheckIfPhoneNumberIsOptedOutInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -424,8 +426,9 @@ impl ConfirmSubscriptionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -433,7 +436,7 @@ impl ConfirmSubscriptionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -591,8 +594,9 @@ impl CreatePlatformApplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -600,7 +604,7 @@ impl CreatePlatformApplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -777,8 +781,9 @@ impl CreatePlatformEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -786,7 +791,7 @@ impl CreatePlatformEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -812,9 +817,9 @@ impl CreatePlatformEndpointInput { } } -/// See [`CreateSMSSandboxPhoneNumberInput`](crate::input::CreateSMSSandboxPhoneNumberInput) +/// See [`CreateSmsSandboxPhoneNumberInput`](crate::input::CreateSmsSandboxPhoneNumberInput) pub mod create_sms_sandbox_phone_number_input { - /// A builder for [`CreateSMSSandboxPhoneNumberInput`](crate::input::CreateSMSSandboxPhoneNumberInput) + /// A builder for [`CreateSmsSandboxPhoneNumberInput`](crate::input::CreateSmsSandboxPhoneNumberInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -845,14 +850,14 @@ pub mod create_sms_sandbox_phone_number_input { self.language_code = input; self } - /// Consumes the builder and constructs a [`CreateSMSSandboxPhoneNumberInput`](crate::input::CreateSMSSandboxPhoneNumberInput) + /// Consumes the builder and constructs a [`CreateSmsSandboxPhoneNumberInput`](crate::input::CreateSmsSandboxPhoneNumberInput) pub fn build( self, ) -> std::result::Result< - crate::input::CreateSMSSandboxPhoneNumberInput, + crate::input::CreateSmsSandboxPhoneNumberInput, smithy_http::operation::BuildError, > { - Ok(crate::input::CreateSMSSandboxPhoneNumberInput { + Ok(crate::input::CreateSmsSandboxPhoneNumberInput { phone_number: self.phone_number, language_code: self.language_code, }) @@ -864,7 +869,7 @@ pub type CreateSMSSandboxPhoneNumberInputOperationOutputAlias = crate::operation::CreateSMSSandboxPhoneNumber; #[doc(hidden)] pub type CreateSMSSandboxPhoneNumberInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl CreateSMSSandboxPhoneNumberInput { +impl CreateSmsSandboxPhoneNumberInput { /// Consumes the builder and constructs an Operation<[`CreateSMSSandboxPhoneNumber`](crate::operation::CreateSMSSandboxPhoneNumber)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -924,8 +929,9 @@ impl CreateSMSSandboxPhoneNumberInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -933,7 +939,7 @@ impl CreateSMSSandboxPhoneNumberInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -953,7 +959,7 @@ impl CreateSMSSandboxPhoneNumberInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`CreateSMSSandboxPhoneNumberInput`](crate::input::CreateSMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`CreateSmsSandboxPhoneNumberInput`](crate::input::CreateSmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::create_sms_sandbox_phone_number_input::Builder { crate::input::create_sms_sandbox_phone_number_input::Builder::default() } @@ -1091,8 +1097,9 @@ impl CreateTopicInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1100,7 +1107,7 @@ impl CreateTopicInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1219,8 +1226,9 @@ impl DeleteEndpointInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1228,7 +1236,7 @@ impl DeleteEndpointInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1352,8 +1360,9 @@ impl DeletePlatformApplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1361,7 +1370,7 @@ impl DeletePlatformApplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1387,9 +1396,9 @@ impl DeletePlatformApplicationInput { } } -/// See [`DeleteSMSSandboxPhoneNumberInput`](crate::input::DeleteSMSSandboxPhoneNumberInput) +/// See [`DeleteSmsSandboxPhoneNumberInput`](crate::input::DeleteSmsSandboxPhoneNumberInput) pub mod delete_sms_sandbox_phone_number_input { - /// A builder for [`DeleteSMSSandboxPhoneNumberInput`](crate::input::DeleteSMSSandboxPhoneNumberInput) + /// A builder for [`DeleteSmsSandboxPhoneNumberInput`](crate::input::DeleteSmsSandboxPhoneNumberInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1405,14 +1414,14 @@ pub mod delete_sms_sandbox_phone_number_input { self.phone_number = input; self } - /// Consumes the builder and constructs a [`DeleteSMSSandboxPhoneNumberInput`](crate::input::DeleteSMSSandboxPhoneNumberInput) + /// Consumes the builder and constructs a [`DeleteSmsSandboxPhoneNumberInput`](crate::input::DeleteSmsSandboxPhoneNumberInput) pub fn build( self, ) -> std::result::Result< - crate::input::DeleteSMSSandboxPhoneNumberInput, + crate::input::DeleteSmsSandboxPhoneNumberInput, smithy_http::operation::BuildError, > { - Ok(crate::input::DeleteSMSSandboxPhoneNumberInput { + Ok(crate::input::DeleteSmsSandboxPhoneNumberInput { phone_number: self.phone_number, }) } @@ -1423,7 +1432,7 @@ pub type DeleteSMSSandboxPhoneNumberInputOperationOutputAlias = crate::operation::DeleteSMSSandboxPhoneNumber; #[doc(hidden)] pub type DeleteSMSSandboxPhoneNumberInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl DeleteSMSSandboxPhoneNumberInput { +impl DeleteSmsSandboxPhoneNumberInput { /// Consumes the builder and constructs an Operation<[`DeleteSMSSandboxPhoneNumber`](crate::operation::DeleteSMSSandboxPhoneNumber)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -1483,8 +1492,9 @@ impl DeleteSMSSandboxPhoneNumberInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1492,7 +1502,7 @@ impl DeleteSMSSandboxPhoneNumberInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1512,7 +1522,7 @@ impl DeleteSMSSandboxPhoneNumberInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`DeleteSMSSandboxPhoneNumberInput`](crate::input::DeleteSMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`DeleteSmsSandboxPhoneNumberInput`](crate::input::DeleteSmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::delete_sms_sandbox_phone_number_input::Builder { crate::input::delete_sms_sandbox_phone_number_input::Builder::default() } @@ -1607,8 +1617,9 @@ impl DeleteTopicInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1616,7 +1627,7 @@ impl DeleteTopicInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1736,8 +1747,9 @@ impl GetEndpointAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1745,7 +1757,7 @@ impl GetEndpointAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1872,8 +1884,9 @@ impl GetPlatformApplicationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1881,7 +1894,7 @@ impl GetPlatformApplicationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1907,9 +1920,9 @@ impl GetPlatformApplicationAttributesInput { } } -/// See [`GetSMSAttributesInput`](crate::input::GetSMSAttributesInput) +/// See [`GetSmsAttributesInput`](crate::input::GetSmsAttributesInput) pub mod get_sms_attributes_input { - /// A builder for [`GetSMSAttributesInput`](crate::input::GetSMSAttributesInput) + /// A builder for [`GetSmsAttributesInput`](crate::input::GetSmsAttributesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1929,14 +1942,14 @@ pub mod get_sms_attributes_input { self.attributes = input; self } - /// Consumes the builder and constructs a [`GetSMSAttributesInput`](crate::input::GetSMSAttributesInput) + /// Consumes the builder and constructs a [`GetSmsAttributesInput`](crate::input::GetSmsAttributesInput) pub fn build( self, ) -> std::result::Result< - crate::input::GetSMSAttributesInput, + crate::input::GetSmsAttributesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetSMSAttributesInput { + Ok(crate::input::GetSmsAttributesInput { attributes: self.attributes, }) } @@ -1946,7 +1959,7 @@ pub mod get_sms_attributes_input { pub type GetSMSAttributesInputOperationOutputAlias = crate::operation::GetSMSAttributes; #[doc(hidden)] pub type GetSMSAttributesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetSMSAttributesInput { +impl GetSmsAttributesInput { /// Consumes the builder and constructs an Operation<[`GetSMSAttributes`](crate::operation::GetSMSAttributes)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2005,8 +2018,9 @@ impl GetSMSAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2014,7 +2028,7 @@ impl GetSMSAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2034,27 +2048,27 @@ impl GetSMSAttributesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetSMSAttributesInput`](crate::input::GetSMSAttributesInput) + /// Creates a new builder-style object to manufacture [`GetSmsAttributesInput`](crate::input::GetSmsAttributesInput) pub fn builder() -> crate::input::get_sms_attributes_input::Builder { crate::input::get_sms_attributes_input::Builder::default() } } -/// See [`GetSMSSandboxAccountStatusInput`](crate::input::GetSMSSandboxAccountStatusInput) +/// See [`GetSmsSandboxAccountStatusInput`](crate::input::GetSmsSandboxAccountStatusInput) pub mod get_sms_sandbox_account_status_input { - /// A builder for [`GetSMSSandboxAccountStatusInput`](crate::input::GetSMSSandboxAccountStatusInput) + /// A builder for [`GetSmsSandboxAccountStatusInput`](crate::input::GetSmsSandboxAccountStatusInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`GetSMSSandboxAccountStatusInput`](crate::input::GetSMSSandboxAccountStatusInput) + /// Consumes the builder and constructs a [`GetSmsSandboxAccountStatusInput`](crate::input::GetSmsSandboxAccountStatusInput) pub fn build( self, ) -> std::result::Result< - crate::input::GetSMSSandboxAccountStatusInput, + crate::input::GetSmsSandboxAccountStatusInput, smithy_http::operation::BuildError, > { - Ok(crate::input::GetSMSSandboxAccountStatusInput {}) + Ok(crate::input::GetSmsSandboxAccountStatusInput {}) } } } @@ -2063,7 +2077,7 @@ pub type GetSMSSandboxAccountStatusInputOperationOutputAlias = crate::operation::GetSMSSandboxAccountStatus; #[doc(hidden)] pub type GetSMSSandboxAccountStatusInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl GetSMSSandboxAccountStatusInput { +impl GetSmsSandboxAccountStatusInput { /// Consumes the builder and constructs an Operation<[`GetSMSSandboxAccountStatus`](crate::operation::GetSMSSandboxAccountStatus)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -2123,8 +2137,9 @@ impl GetSMSSandboxAccountStatusInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2132,7 +2147,7 @@ impl GetSMSSandboxAccountStatusInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2152,7 +2167,7 @@ impl GetSMSSandboxAccountStatusInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`GetSMSSandboxAccountStatusInput`](crate::input::GetSMSSandboxAccountStatusInput) + /// Creates a new builder-style object to manufacture [`GetSmsSandboxAccountStatusInput`](crate::input::GetSmsSandboxAccountStatusInput) pub fn builder() -> crate::input::get_sms_sandbox_account_status_input::Builder { crate::input::get_sms_sandbox_account_status_input::Builder::default() } @@ -2256,8 +2271,9 @@ impl GetSubscriptionAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2265,7 +2281,7 @@ impl GetSubscriptionAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2385,8 +2401,9 @@ impl GetTopicAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2394,7 +2411,7 @@ impl GetTopicAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2533,8 +2550,9 @@ impl ListEndpointsByPlatformApplicationInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2542,7 +2560,7 @@ impl ListEndpointsByPlatformApplicationInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2673,8 +2691,9 @@ impl ListOriginationNumbersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2682,7 +2701,7 @@ impl ListOriginationNumbersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2806,8 +2825,9 @@ impl ListPhoneNumbersOptedOutInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2815,7 +2835,7 @@ impl ListPhoneNumbersOptedOutInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2937,8 +2957,9 @@ impl ListPlatformApplicationsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2946,7 +2967,7 @@ impl ListPlatformApplicationsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2972,9 +2993,9 @@ impl ListPlatformApplicationsInput { } } -/// See [`ListSMSSandboxPhoneNumbersInput`](crate::input::ListSMSSandboxPhoneNumbersInput) +/// See [`ListSmsSandboxPhoneNumbersInput`](crate::input::ListSmsSandboxPhoneNumbersInput) pub mod list_sms_sandbox_phone_numbers_input { - /// A builder for [`ListSMSSandboxPhoneNumbersInput`](crate::input::ListSMSSandboxPhoneNumbersInput) + /// A builder for [`ListSmsSandboxPhoneNumbersInput`](crate::input::ListSmsSandboxPhoneNumbersInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -3001,14 +3022,14 @@ pub mod list_sms_sandbox_phone_numbers_input { self.max_results = input; self } - /// Consumes the builder and constructs a [`ListSMSSandboxPhoneNumbersInput`](crate::input::ListSMSSandboxPhoneNumbersInput) + /// Consumes the builder and constructs a [`ListSmsSandboxPhoneNumbersInput`](crate::input::ListSmsSandboxPhoneNumbersInput) pub fn build( self, ) -> std::result::Result< - crate::input::ListSMSSandboxPhoneNumbersInput, + crate::input::ListSmsSandboxPhoneNumbersInput, smithy_http::operation::BuildError, > { - Ok(crate::input::ListSMSSandboxPhoneNumbersInput { + Ok(crate::input::ListSmsSandboxPhoneNumbersInput { next_token: self.next_token, max_results: self.max_results, }) @@ -3020,7 +3041,7 @@ pub type ListSMSSandboxPhoneNumbersInputOperationOutputAlias = crate::operation::ListSMSSandboxPhoneNumbers; #[doc(hidden)] pub type ListSMSSandboxPhoneNumbersInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl ListSMSSandboxPhoneNumbersInput { +impl ListSmsSandboxPhoneNumbersInput { /// Consumes the builder and constructs an Operation<[`ListSMSSandboxPhoneNumbers`](crate::operation::ListSMSSandboxPhoneNumbers)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -3080,8 +3101,9 @@ impl ListSMSSandboxPhoneNumbersInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3089,7 +3111,7 @@ impl ListSMSSandboxPhoneNumbersInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3109,7 +3131,7 @@ impl ListSMSSandboxPhoneNumbersInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`ListSMSSandboxPhoneNumbersInput`](crate::input::ListSMSSandboxPhoneNumbersInput) + /// Creates a new builder-style object to manufacture [`ListSmsSandboxPhoneNumbersInput`](crate::input::ListSmsSandboxPhoneNumbersInput) pub fn builder() -> crate::input::list_sms_sandbox_phone_numbers_input::Builder { crate::input::list_sms_sandbox_phone_numbers_input::Builder::default() } @@ -3209,8 +3231,9 @@ impl ListSubscriptionsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3218,7 +3241,7 @@ impl ListSubscriptionsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3350,8 +3373,9 @@ impl ListSubscriptionsByTopicInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3359,7 +3383,7 @@ impl ListSubscriptionsByTopicInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3479,8 +3503,9 @@ impl ListTagsForResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3488,7 +3513,7 @@ impl ListTagsForResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3603,8 +3628,9 @@ impl ListTopicsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3612,7 +3638,7 @@ impl ListTopicsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3732,8 +3758,9 @@ impl OptInPhoneNumberInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3741,7 +3768,7 @@ impl OptInPhoneNumberInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4065,8 +4092,9 @@ impl PublishInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4074,7 +4102,7 @@ impl PublishInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4204,8 +4232,9 @@ impl RemovePermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4213,7 +4242,7 @@ impl RemovePermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4356,8 +4385,9 @@ impl SetEndpointAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4365,7 +4395,7 @@ impl SetEndpointAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4515,8 +4545,9 @@ impl SetPlatformApplicationAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4524,7 +4555,7 @@ impl SetPlatformApplicationAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4550,9 +4581,9 @@ impl SetPlatformApplicationAttributesInput { } } -/// See [`SetSMSAttributesInput`](crate::input::SetSMSAttributesInput) +/// See [`SetSmsAttributesInput`](crate::input::SetSmsAttributesInput) pub mod set_sms_attributes_input { - /// A builder for [`SetSMSAttributesInput`](crate::input::SetSMSAttributesInput) + /// A builder for [`SetSmsAttributesInput`](crate::input::SetSmsAttributesInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -4580,14 +4611,14 @@ pub mod set_sms_attributes_input { self.attributes = input; self } - /// Consumes the builder and constructs a [`SetSMSAttributesInput`](crate::input::SetSMSAttributesInput) + /// Consumes the builder and constructs a [`SetSmsAttributesInput`](crate::input::SetSmsAttributesInput) pub fn build( self, ) -> std::result::Result< - crate::input::SetSMSAttributesInput, + crate::input::SetSmsAttributesInput, smithy_http::operation::BuildError, > { - Ok(crate::input::SetSMSAttributesInput { + Ok(crate::input::SetSmsAttributesInput { attributes: self.attributes, }) } @@ -4597,7 +4628,7 @@ pub mod set_sms_attributes_input { pub type SetSMSAttributesInputOperationOutputAlias = crate::operation::SetSMSAttributes; #[doc(hidden)] pub type SetSMSAttributesInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl SetSMSAttributesInput { +impl SetSmsAttributesInput { /// Consumes the builder and constructs an Operation<[`SetSMSAttributes`](crate::operation::SetSMSAttributes)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -4656,8 +4687,9 @@ impl SetSMSAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4665,7 +4697,7 @@ impl SetSMSAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -4685,7 +4717,7 @@ impl SetSMSAttributesInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`SetSMSAttributesInput`](crate::input::SetSMSAttributesInput) + /// Creates a new builder-style object to manufacture [`SetSmsAttributesInput`](crate::input::SetSmsAttributesInput) pub fn builder() -> crate::input::set_sms_attributes_input::Builder { crate::input::set_sms_attributes_input::Builder::default() } @@ -4864,8 +4896,9 @@ impl SetSubscriptionAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -4873,7 +4906,7 @@ impl SetSubscriptionAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5075,8 +5108,9 @@ impl SetTopicAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5084,7 +5118,7 @@ impl SetTopicAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5345,8 +5379,9 @@ impl SubscribeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5354,7 +5389,7 @@ impl SubscribeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5484,8 +5519,9 @@ impl TagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5493,7 +5529,7 @@ impl TagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5611,8 +5647,9 @@ impl UnsubscribeInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5620,7 +5657,7 @@ impl UnsubscribeInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5753,8 +5790,9 @@ impl UntagResourceInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5762,7 +5800,7 @@ impl UntagResourceInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5788,9 +5826,9 @@ impl UntagResourceInput { } } -/// See [`VerifySMSSandboxPhoneNumberInput`](crate::input::VerifySMSSandboxPhoneNumberInput) +/// See [`VerifySmsSandboxPhoneNumberInput`](crate::input::VerifySmsSandboxPhoneNumberInput) pub mod verify_sms_sandbox_phone_number_input { - /// A builder for [`VerifySMSSandboxPhoneNumberInput`](crate::input::VerifySMSSandboxPhoneNumberInput) + /// A builder for [`VerifySmsSandboxPhoneNumberInput`](crate::input::VerifySmsSandboxPhoneNumberInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -5820,14 +5858,14 @@ pub mod verify_sms_sandbox_phone_number_input { self.one_time_password = input; self } - /// Consumes the builder and constructs a [`VerifySMSSandboxPhoneNumberInput`](crate::input::VerifySMSSandboxPhoneNumberInput) + /// Consumes the builder and constructs a [`VerifySmsSandboxPhoneNumberInput`](crate::input::VerifySmsSandboxPhoneNumberInput) pub fn build( self, ) -> std::result::Result< - crate::input::VerifySMSSandboxPhoneNumberInput, + crate::input::VerifySmsSandboxPhoneNumberInput, smithy_http::operation::BuildError, > { - Ok(crate::input::VerifySMSSandboxPhoneNumberInput { + Ok(crate::input::VerifySmsSandboxPhoneNumberInput { phone_number: self.phone_number, one_time_password: self.one_time_password, }) @@ -5839,7 +5877,7 @@ pub type VerifySMSSandboxPhoneNumberInputOperationOutputAlias = crate::operation::VerifySMSSandboxPhoneNumber; #[doc(hidden)] pub type VerifySMSSandboxPhoneNumberInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl VerifySMSSandboxPhoneNumberInput { +impl VerifySmsSandboxPhoneNumberInput { /// Consumes the builder and constructs an Operation<[`VerifySMSSandboxPhoneNumber`](crate::operation::VerifySMSSandboxPhoneNumber)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -5899,8 +5937,9 @@ impl VerifySMSSandboxPhoneNumberInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -5908,7 +5947,7 @@ impl VerifySMSSandboxPhoneNumberInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -5928,7 +5967,7 @@ impl VerifySMSSandboxPhoneNumberInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`VerifySMSSandboxPhoneNumberInput`](crate::input::VerifySMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`VerifySmsSandboxPhoneNumberInput`](crate::input::VerifySmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::verify_sms_sandbox_phone_number_input::Builder { crate::input::verify_sms_sandbox_phone_number_input::Builder::default() } @@ -5936,16 +5975,16 @@ impl VerifySMSSandboxPhoneNumberInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VerifySMSSandboxPhoneNumberInput { +pub struct VerifySmsSandboxPhoneNumberInput { ///

    The destination phone number to verify.

    pub phone_number: std::option::Option, ///

    The OTP sent to the destination number from the /// CreateSMSSandBoxPhoneNumber call.

    pub one_time_password: std::option::Option, } -impl std::fmt::Debug for VerifySMSSandboxPhoneNumberInput { +impl std::fmt::Debug for VerifySmsSandboxPhoneNumberInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VerifySMSSandboxPhoneNumberInput"); + let mut formatter = f.debug_struct("VerifySmsSandboxPhoneNumberInput"); formatter.field("phone_number", &self.phone_number); formatter.field("one_time_password", &self.one_time_password); formatter.finish() @@ -6315,7 +6354,7 @@ impl std::fmt::Debug for SetSubscriptionAttributesInput { ///

    The input for the SetSMSAttributes action.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SetSMSAttributesInput { +pub struct SetSmsAttributesInput { ///

    The default settings for sending SMS messages from your account. You can set values /// for the following attribute names:

    ///

    @@ -6405,9 +6444,9 @@ pub struct SetSMSAttributesInput { pub attributes: std::option::Option>, } -impl std::fmt::Debug for SetSMSAttributesInput { +impl std::fmt::Debug for SetSmsAttributesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SetSMSAttributesInput"); + let mut formatter = f.debug_struct("SetSmsAttributesInput"); formatter.field("attributes", &self.attributes); formatter.finish() } @@ -6774,16 +6813,16 @@ impl std::fmt::Debug for ListSubscriptionsInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSMSSandboxPhoneNumbersInput { +pub struct ListSmsSandboxPhoneNumbersInput { ///

    Token that the previous ListSMSSandboxPhoneNumbersInput request /// returns.

    pub next_token: std::option::Option, ///

    The maximum number of phone numbers to return.

    pub max_results: std::option::Option, } -impl std::fmt::Debug for ListSMSSandboxPhoneNumbersInput { +impl std::fmt::Debug for ListSmsSandboxPhoneNumbersInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSMSSandboxPhoneNumbersInput"); + let mut formatter = f.debug_struct("ListSmsSandboxPhoneNumbersInput"); formatter.field("next_token", &self.next_token); formatter.field("max_results", &self.max_results); formatter.finish() @@ -6891,10 +6930,10 @@ impl std::fmt::Debug for GetSubscriptionAttributesInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSMSSandboxAccountStatusInput {} -impl std::fmt::Debug for GetSMSSandboxAccountStatusInput { +pub struct GetSmsSandboxAccountStatusInput {} +impl std::fmt::Debug for GetSmsSandboxAccountStatusInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSMSSandboxAccountStatusInput"); + let mut formatter = f.debug_struct("GetSmsSandboxAccountStatusInput"); formatter.finish() } } @@ -6902,16 +6941,16 @@ impl std::fmt::Debug for GetSMSSandboxAccountStatusInput { ///

    The input for the GetSMSAttributes request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSMSAttributesInput { +pub struct GetSmsAttributesInput { ///

    A list of the individual attribute names, such as MonthlySpendLimit, for /// which you want values.

    ///

    For all attribute names, see SetSMSAttributes.

    ///

    If you don't use this parameter, Amazon SNS returns all SMS attributes.

    pub attributes: std::option::Option>, } -impl std::fmt::Debug for GetSMSAttributesInput { +impl std::fmt::Debug for GetSmsAttributesInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSMSAttributesInput"); + let mut formatter = f.debug_struct("GetSmsAttributesInput"); formatter.field("attributes", &self.attributes); formatter.finish() } @@ -6963,13 +7002,13 @@ impl std::fmt::Debug for DeleteTopicInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSMSSandboxPhoneNumberInput { +pub struct DeleteSmsSandboxPhoneNumberInput { ///

    The destination phone number to delete.

    pub phone_number: std::option::Option, } -impl std::fmt::Debug for DeleteSMSSandboxPhoneNumberInput { +impl std::fmt::Debug for DeleteSmsSandboxPhoneNumberInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSMSSandboxPhoneNumberInput"); + let mut formatter = f.debug_struct("DeleteSmsSandboxPhoneNumberInput"); formatter.field("phone_number", &self.phone_number); formatter.finish() } @@ -7103,7 +7142,7 @@ impl std::fmt::Debug for CreateTopicInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSMSSandboxPhoneNumberInput { +pub struct CreateSmsSandboxPhoneNumberInput { ///

    The destination phone number to verify. On verification, Amazon SNS adds this phone number /// to the list of verified phone numbers that you can send SMS messages to.

    pub phone_number: std::option::Option, @@ -7111,9 +7150,9 @@ pub struct CreateSMSSandboxPhoneNumberInput { /// en-US.

    pub language_code: std::option::Option, } -impl std::fmt::Debug for CreateSMSSandboxPhoneNumberInput { +impl std::fmt::Debug for CreateSmsSandboxPhoneNumberInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSMSSandboxPhoneNumberInput"); + let mut formatter = f.debug_struct("CreateSmsSandboxPhoneNumberInput"); formatter.field("phone_number", &self.phone_number); formatter.field("language_code", &self.language_code); formatter.finish() diff --git a/sdk/sns/src/lib.rs b/sdk/sns/src/lib.rs index 80cbe9563d94..9792e599e060 100644 --- a/sdk/sns/src/lib.rs +++ b/sdk/sns/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! Amazon Simple Notification Service //!

    Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build //! distributed web-enabled applications. Applications can use Amazon SNS to easily push diff --git a/sdk/sns/src/model.rs b/sdk/sns/src/model.rs index 229bc5382001..325e33fb0747 100644 --- a/sdk/sns/src/model.rs +++ b/sdk/sns/src/model.rs @@ -317,23 +317,23 @@ impl Subscription { /// the Amazon SNS Developer Guide.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SMSSandboxPhoneNumber { +pub struct SmsSandboxPhoneNumber { ///

    The destination phone number.

    pub phone_number: std::option::Option, ///

    The destination phone number's verification status.

    pub status: std::option::Option, } -impl std::fmt::Debug for SMSSandboxPhoneNumber { +impl std::fmt::Debug for SmsSandboxPhoneNumber { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SMSSandboxPhoneNumber"); + let mut formatter = f.debug_struct("SmsSandboxPhoneNumber"); formatter.field("phone_number", &self.phone_number); formatter.field("status", &self.status); formatter.finish() } } -/// See [`SMSSandboxPhoneNumber`](crate::model::SMSSandboxPhoneNumber) +/// See [`SmsSandboxPhoneNumber`](crate::model::SmsSandboxPhoneNumber) pub mod sms_sandbox_phone_number { - /// A builder for [`SMSSandboxPhoneNumber`](crate::model::SMSSandboxPhoneNumber) + /// A builder for [`SmsSandboxPhoneNumber`](crate::model::SmsSandboxPhoneNumber) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -366,17 +366,17 @@ pub mod sms_sandbox_phone_number { self.status = input; self } - /// Consumes the builder and constructs a [`SMSSandboxPhoneNumber`](crate::model::SMSSandboxPhoneNumber) - pub fn build(self) -> crate::model::SMSSandboxPhoneNumber { - crate::model::SMSSandboxPhoneNumber { + /// Consumes the builder and constructs a [`SmsSandboxPhoneNumber`](crate::model::SmsSandboxPhoneNumber) + pub fn build(self) -> crate::model::SmsSandboxPhoneNumber { + crate::model::SmsSandboxPhoneNumber { phone_number: self.phone_number, status: self.status, } } } } -impl SMSSandboxPhoneNumber { - /// Creates a new builder-style object to manufacture [`SMSSandboxPhoneNumber`](crate::model::SMSSandboxPhoneNumber) +impl SmsSandboxPhoneNumber { + /// Creates a new builder-style object to manufacture [`SmsSandboxPhoneNumber`](crate::model::SmsSandboxPhoneNumber) pub fn builder() -> crate::model::sms_sandbox_phone_number::Builder { crate::model::sms_sandbox_phone_number::Builder::default() } @@ -414,7 +414,7 @@ impl std::convert::From<&str> for SmsSandboxPhoneNumberVerificationStatus { impl std::str::FromStr for SmsSandboxPhoneNumberVerificationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SmsSandboxPhoneNumberVerificationStatus::from(s)) } } @@ -432,15 +432,6 @@ impl AsRef for SmsSandboxPhoneNumberVerificationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SmsSandboxPhoneNumberVerificationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Platform application object.

    #[non_exhaustive] @@ -681,7 +672,7 @@ impl std::convert::From<&str> for NumberCapability { impl std::str::FromStr for NumberCapability { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NumberCapability::from(s)) } } @@ -700,15 +691,6 @@ impl AsRef for NumberCapability { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NumberCapability { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} /// Enum listing out all supported route types. The following enum values are supported. /// 1. Transactional : Non-marketing traffic @@ -744,7 +726,7 @@ impl std::convert::From<&str> for RouteType { impl std::str::FromStr for RouteType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RouteType::from(s)) } } @@ -763,15 +745,6 @@ impl AsRef for RouteType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RouteType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Endpoint for mobile app and device.

    #[non_exhaustive] @@ -898,7 +871,7 @@ impl std::convert::From<&str> for LanguageCodeString { impl std::str::FromStr for LanguageCodeString { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LanguageCodeString::from(s)) } } @@ -927,12 +900,3 @@ impl AsRef for LanguageCodeString { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LanguageCodeString { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} diff --git a/sdk/sns/src/operation.rs b/sdk/sns/src/operation.rs index fc9ba61ac63a..88dc5e172784 100644 --- a/sdk/sns/src/operation.rs +++ b/sdk/sns/src/operation.rs @@ -213,7 +213,7 @@ pub struct CreateSMSSandboxPhoneNumber { _private: (), } impl CreateSMSSandboxPhoneNumber { - /// Creates a new builder-style object to manufacture [`CreateSMSSandboxPhoneNumberInput`](crate::input::CreateSMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`CreateSmsSandboxPhoneNumberInput`](crate::input::CreateSmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::create_sms_sandbox_phone_number_input::Builder { crate::input::create_sms_sandbox_phone_number_input::Builder::default() } @@ -223,7 +223,7 @@ impl CreateSMSSandboxPhoneNumber { } impl smithy_http::response::ParseStrictResponse for CreateSMSSandboxPhoneNumber { type Output = std::result::Result< - crate::output::CreateSMSSandboxPhoneNumberOutput, + crate::output::CreateSmsSandboxPhoneNumberOutput, crate::error::CreateSMSSandboxPhoneNumberError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -339,7 +339,7 @@ pub struct DeleteSMSSandboxPhoneNumber { _private: (), } impl DeleteSMSSandboxPhoneNumber { - /// Creates a new builder-style object to manufacture [`DeleteSMSSandboxPhoneNumberInput`](crate::input::DeleteSMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`DeleteSmsSandboxPhoneNumberInput`](crate::input::DeleteSmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::delete_sms_sandbox_phone_number_input::Builder { crate::input::delete_sms_sandbox_phone_number_input::Builder::default() } @@ -349,7 +349,7 @@ impl DeleteSMSSandboxPhoneNumber { } impl smithy_http::response::ParseStrictResponse for DeleteSMSSandboxPhoneNumber { type Output = std::result::Result< - crate::output::DeleteSMSSandboxPhoneNumberOutput, + crate::output::DeleteSmsSandboxPhoneNumberOutput, crate::error::DeleteSMSSandboxPhoneNumberError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -457,7 +457,7 @@ pub struct GetSMSAttributes { _private: (), } impl GetSMSAttributes { - /// Creates a new builder-style object to manufacture [`GetSMSAttributesInput`](crate::input::GetSMSAttributesInput) + /// Creates a new builder-style object to manufacture [`GetSmsAttributesInput`](crate::input::GetSmsAttributesInput) pub fn builder() -> crate::input::get_sms_attributes_input::Builder { crate::input::get_sms_attributes_input::Builder::default() } @@ -467,7 +467,7 @@ impl GetSMSAttributes { } impl smithy_http::response::ParseStrictResponse for GetSMSAttributes { type Output = std::result::Result< - crate::output::GetSMSAttributesOutput, + crate::output::GetSmsAttributesOutput, crate::error::GetSMSAttributesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -494,7 +494,7 @@ pub struct GetSMSSandboxAccountStatus { _private: (), } impl GetSMSSandboxAccountStatus { - /// Creates a new builder-style object to manufacture [`GetSMSSandboxAccountStatusInput`](crate::input::GetSMSSandboxAccountStatusInput) + /// Creates a new builder-style object to manufacture [`GetSmsSandboxAccountStatusInput`](crate::input::GetSmsSandboxAccountStatusInput) pub fn builder() -> crate::input::get_sms_sandbox_account_status_input::Builder { crate::input::get_sms_sandbox_account_status_input::Builder::default() } @@ -504,7 +504,7 @@ impl GetSMSSandboxAccountStatus { } impl smithy_http::response::ParseStrictResponse for GetSMSSandboxAccountStatus { type Output = std::result::Result< - crate::output::GetSMSSandboxAccountStatusOutput, + crate::output::GetSmsSandboxAccountStatusOutput, crate::error::GetSMSSandboxAccountStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -727,7 +727,7 @@ pub struct ListSMSSandboxPhoneNumbers { _private: (), } impl ListSMSSandboxPhoneNumbers { - /// Creates a new builder-style object to manufacture [`ListSMSSandboxPhoneNumbersInput`](crate::input::ListSMSSandboxPhoneNumbersInput) + /// Creates a new builder-style object to manufacture [`ListSmsSandboxPhoneNumbersInput`](crate::input::ListSmsSandboxPhoneNumbersInput) pub fn builder() -> crate::input::list_sms_sandbox_phone_numbers_input::Builder { crate::input::list_sms_sandbox_phone_numbers_input::Builder::default() } @@ -737,7 +737,7 @@ impl ListSMSSandboxPhoneNumbers { } impl smithy_http::response::ParseStrictResponse for ListSMSSandboxPhoneNumbers { type Output = std::result::Result< - crate::output::ListSMSSandboxPhoneNumbersOutput, + crate::output::ListSmsSandboxPhoneNumbersOutput, crate::error::ListSMSSandboxPhoneNumbersError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1051,7 +1051,7 @@ pub struct SetSMSAttributes { _private: (), } impl SetSMSAttributes { - /// Creates a new builder-style object to manufacture [`SetSMSAttributesInput`](crate::input::SetSMSAttributesInput) + /// Creates a new builder-style object to manufacture [`SetSmsAttributesInput`](crate::input::SetSmsAttributesInput) pub fn builder() -> crate::input::set_sms_attributes_input::Builder { crate::input::set_sms_attributes_input::Builder::default() } @@ -1061,7 +1061,7 @@ impl SetSMSAttributes { } impl smithy_http::response::ParseStrictResponse for SetSMSAttributes { type Output = std::result::Result< - crate::output::SetSMSAttributesOutput, + crate::output::SetSmsAttributesOutput, crate::error::SetSMSAttributesError, >; fn parse(&self, response: &http::Response) -> Self::Output { @@ -1282,7 +1282,7 @@ pub struct VerifySMSSandboxPhoneNumber { _private: (), } impl VerifySMSSandboxPhoneNumber { - /// Creates a new builder-style object to manufacture [`VerifySMSSandboxPhoneNumberInput`](crate::input::VerifySMSSandboxPhoneNumberInput) + /// Creates a new builder-style object to manufacture [`VerifySmsSandboxPhoneNumberInput`](crate::input::VerifySmsSandboxPhoneNumberInput) pub fn builder() -> crate::input::verify_sms_sandbox_phone_number_input::Builder { crate::input::verify_sms_sandbox_phone_number_input::Builder::default() } @@ -1292,7 +1292,7 @@ impl VerifySMSSandboxPhoneNumber { } impl smithy_http::response::ParseStrictResponse for VerifySMSSandboxPhoneNumber { type Output = std::result::Result< - crate::output::VerifySMSSandboxPhoneNumberOutput, + crate::output::VerifySmsSandboxPhoneNumberOutput, crate::error::VerifySMSSandboxPhoneNumberError, >; fn parse(&self, response: &http::Response) -> Self::Output { diff --git a/sdk/sns/src/operation_deser.rs b/sdk/sns/src/operation_deser.rs index 6b8d4e52a21e..d07ccd07ebe2 100644 --- a/sdk/sns/src/operation_deser.rs +++ b/sdk/sns/src/operation_deser.rs @@ -12,11 +12,11 @@ pub fn parse_add_permission_error( Err(match error_code { "AuthorizationErrorException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::AuthorizationErrorError({ + kind: crate::error::AddPermissionErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -26,11 +26,11 @@ pub fn parse_add_permission_error( }, "InternalErrorException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::InternalErrorError({ + kind: crate::error::AddPermissionErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -40,11 +40,11 @@ pub fn parse_add_permission_error( }, "InvalidParameterException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::InvalidParameterError({ + kind: crate::error::AddPermissionErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -54,11 +54,11 @@ pub fn parse_add_permission_error( }, "NotFoundException" => crate::error::AddPermissionError { meta: generic, - kind: crate::error::AddPermissionErrorKind::NotFoundError({ + kind: crate::error::AddPermissionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -100,27 +100,29 @@ pub fn parse_check_if_phone_number_is_opted_out_error( } }; Err(match error_code { - "AuthorizationErrorException" => crate::error::CheckIfPhoneNumberIsOptedOutError { - meta: generic, - kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CheckIfPhoneNumberIsOptedOutError::unhandled)?; - output.build() - }), - }, + "AuthorizationErrorException" => { + crate::error::CheckIfPhoneNumberIsOptedOutError { + meta: generic, + kind: + crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CheckIfPhoneNumberIsOptedOutError::unhandled)?; + output.build() + }, + ), + } + } "InternalErrorException" => crate::error::CheckIfPhoneNumberIsOptedOutError { meta: generic, - kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorError({ + kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -130,11 +132,11 @@ pub fn parse_check_if_phone_number_is_opted_out_error( }, "InvalidParameterException" => crate::error::CheckIfPhoneNumberIsOptedOutError { meta: generic, - kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterError({ + kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -144,11 +146,11 @@ pub fn parse_check_if_phone_number_is_opted_out_error( }, "ThrottledException" => crate::error::CheckIfPhoneNumberIsOptedOutError { meta: generic, - kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledError({ + kind: crate::error::CheckIfPhoneNumberIsOptedOutErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -197,11 +199,11 @@ pub fn parse_confirm_subscription_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ConfirmSubscriptionError { meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::AuthorizationErrorError({ + kind: crate::error::ConfirmSubscriptionErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -209,26 +211,24 @@ pub fn parse_confirm_subscription_error( output.build() }), }, - "FilterPolicyLimitExceededException" => { - crate::error::ConfirmSubscriptionError { - meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededError({ - #[allow(unused_mut)] - let mut output = - crate::error::filter_policy_limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ConfirmSubscriptionError::unhandled)?; - output.build() - }), - } - } + "FilterPolicyLimitExceededException" => crate::error::ConfirmSubscriptionError { + meta: generic, + kind: crate::error::ConfirmSubscriptionErrorKind::FilterPolicyLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::filter_policy_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ConfirmSubscriptionError::unhandled)?; + output.build() + }), + }, "InternalErrorException" => crate::error::ConfirmSubscriptionError { meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::InternalErrorError({ + kind: crate::error::ConfirmSubscriptionErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -238,11 +238,11 @@ pub fn parse_confirm_subscription_error( }, "InvalidParameterException" => crate::error::ConfirmSubscriptionError { meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::InvalidParameterError({ + kind: crate::error::ConfirmSubscriptionErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -252,11 +252,11 @@ pub fn parse_confirm_subscription_error( }, "NotFoundException" => crate::error::ConfirmSubscriptionError { meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::NotFoundError({ + kind: crate::error::ConfirmSubscriptionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -264,19 +264,17 @@ pub fn parse_confirm_subscription_error( output.build() }), }, - "SubscriptionLimitExceededException" => { - crate::error::ConfirmSubscriptionError { - meta: generic, - kind: crate::error::ConfirmSubscriptionErrorKind::SubscriptionLimitExceededError({ - #[allow(unused_mut)] - let mut output = - crate::error::subscription_limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_subscription_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ConfirmSubscriptionError::unhandled)?; - output.build() - }), - } - } + "SubscriptionLimitExceededException" => crate::error::ConfirmSubscriptionError { + meta: generic, + kind: crate::error::ConfirmSubscriptionErrorKind::SubscriptionLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::subscription_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_subscription_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ConfirmSubscriptionError::unhandled)?; + output.build() + }), + }, _ => crate::error::ConfirmSubscriptionError::generic(generic), }) } @@ -321,11 +319,11 @@ pub fn parse_create_platform_application_error( Err(match error_code { "AuthorizationErrorException" => crate::error::CreatePlatformApplicationError { meta: generic, - kind: crate::error::CreatePlatformApplicationErrorKind::AuthorizationErrorError({ + kind: crate::error::CreatePlatformApplicationErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -335,11 +333,11 @@ pub fn parse_create_platform_application_error( }, "InternalErrorException" => crate::error::CreatePlatformApplicationError { meta: generic, - kind: crate::error::CreatePlatformApplicationErrorKind::InternalErrorError({ + kind: crate::error::CreatePlatformApplicationErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -349,11 +347,11 @@ pub fn parse_create_platform_application_error( }, "InvalidParameterException" => crate::error::CreatePlatformApplicationError { meta: generic, - kind: crate::error::CreatePlatformApplicationErrorKind::InvalidParameterError({ + kind: crate::error::CreatePlatformApplicationErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -405,11 +403,11 @@ pub fn parse_create_platform_endpoint_error( Err(match error_code { "AuthorizationErrorException" => crate::error::CreatePlatformEndpointError { meta: generic, - kind: crate::error::CreatePlatformEndpointErrorKind::AuthorizationErrorError({ + kind: crate::error::CreatePlatformEndpointErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -419,11 +417,11 @@ pub fn parse_create_platform_endpoint_error( }, "InternalErrorException" => crate::error::CreatePlatformEndpointError { meta: generic, - kind: crate::error::CreatePlatformEndpointErrorKind::InternalErrorError({ + kind: crate::error::CreatePlatformEndpointErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -433,11 +431,11 @@ pub fn parse_create_platform_endpoint_error( }, "InvalidParameterException" => crate::error::CreatePlatformEndpointError { meta: generic, - kind: crate::error::CreatePlatformEndpointErrorKind::InvalidParameterError({ + kind: crate::error::CreatePlatformEndpointErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -447,11 +445,11 @@ pub fn parse_create_platform_endpoint_error( }, "NotFoundException" => crate::error::CreatePlatformEndpointError { meta: generic, - kind: crate::error::CreatePlatformEndpointErrorKind::NotFoundError({ + kind: crate::error::CreatePlatformEndpointErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -487,7 +485,7 @@ pub fn parse_create_platform_endpoint_response( pub fn parse_create_sms_sandbox_phone_number_error( response: &http::Response, ) -> std::result::Result< - crate::output::CreateSMSSandboxPhoneNumberOutput, + crate::output::CreateSmsSandboxPhoneNumberOutput, crate::error::CreateSMSSandboxPhoneNumberError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -501,27 +499,29 @@ pub fn parse_create_sms_sandbox_phone_number_error( } }; Err(match error_code { - "AuthorizationErrorException" => crate::error::CreateSMSSandboxPhoneNumberError { - meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::CreateSMSSandboxPhoneNumberError::unhandled)?; - output.build() - }), - }, + "AuthorizationErrorException" => { + crate::error::CreateSMSSandboxPhoneNumberError { + meta: generic, + kind: + crate::error::CreateSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateSMSSandboxPhoneNumberError::unhandled)?; + output.build() + }, + ), + } + } "InternalErrorException" => crate::error::CreateSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::InternalErrorError({ + kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -531,11 +531,11 @@ pub fn parse_create_sms_sandbox_phone_number_error( }, "InvalidParameterException" => crate::error::CreateSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterError({ + kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -545,11 +545,11 @@ pub fn parse_create_sms_sandbox_phone_number_error( }, "OptedOutException" => crate::error::CreateSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::OptedOutError({ + kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::OptedOutException({ #[allow(unused_mut)] - let mut output = crate::error::opted_out_error::Builder::default(); + let mut output = crate::error::opted_out_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_opted_out_error_xml_err( + output = crate::xml_deser::deser_structure_opted_out_exception_xml_err( response.body().as_ref(), output, ) @@ -559,11 +559,11 @@ pub fn parse_create_sms_sandbox_phone_number_error( }, "ThrottledException" => crate::error::CreateSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::ThrottledError({ + kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -573,11 +573,11 @@ pub fn parse_create_sms_sandbox_phone_number_error( }, "UserErrorException" => crate::error::CreateSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::UserErrorError({ + kind: crate::error::CreateSMSSandboxPhoneNumberErrorKind::UserErrorException({ #[allow(unused_mut)] - let mut output = crate::error::user_error_error::Builder::default(); + let mut output = crate::error::user_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_user_error_error_xml_err( + output = crate::xml_deser::deser_structure_user_error_exception_xml_err( response.body().as_ref(), output, ) @@ -593,7 +593,7 @@ pub fn parse_create_sms_sandbox_phone_number_error( pub fn parse_create_sms_sandbox_phone_number_response( response: &http::Response, ) -> std::result::Result< - crate::output::CreateSMSSandboxPhoneNumberOutput, + crate::output::CreateSmsSandboxPhoneNumberOutput, crate::error::CreateSMSSandboxPhoneNumberError, > { Ok({ @@ -617,11 +617,11 @@ pub fn parse_create_topic_error( Err(match error_code { "AuthorizationErrorException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::AuthorizationErrorError({ + kind: crate::error::CreateTopicErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -631,11 +631,11 @@ pub fn parse_create_topic_error( }, "ConcurrentAccessException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::ConcurrentAccessError({ + kind: crate::error::CreateTopicErrorKind::ConcurrentAccessException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_access_error::Builder::default(); + let mut output = crate::error::concurrent_access_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_access_error_xml_err( + output = crate::xml_deser::deser_structure_concurrent_access_exception_xml_err( response.body().as_ref(), output, ) @@ -645,11 +645,11 @@ pub fn parse_create_topic_error( }, "InternalErrorException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::InternalErrorError({ + kind: crate::error::CreateTopicErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -659,11 +659,11 @@ pub fn parse_create_topic_error( }, "InvalidParameterException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::InvalidParameterError({ + kind: crate::error::CreateTopicErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -673,11 +673,11 @@ pub fn parse_create_topic_error( }, "InvalidSecurityException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::InvalidSecurityError({ + kind: crate::error::CreateTopicErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -687,11 +687,11 @@ pub fn parse_create_topic_error( }, "StaleTagException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::StaleTagError({ + kind: crate::error::CreateTopicErrorKind::StaleTagException({ #[allow(unused_mut)] - let mut output = crate::error::stale_tag_error::Builder::default(); + let mut output = crate::error::stale_tag_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_tag_error_xml_err( + output = crate::xml_deser::deser_structure_stale_tag_exception_xml_err( response.body().as_ref(), output, ) @@ -701,11 +701,11 @@ pub fn parse_create_topic_error( }, "TagLimitExceededException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::TagLimitExceededError({ + kind: crate::error::CreateTopicErrorKind::TagLimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::tag_limit_exceeded_error::Builder::default(); + let mut output = crate::error::tag_limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_tag_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -715,11 +715,11 @@ pub fn parse_create_topic_error( }, "TagPolicyException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::TagPolicyError({ + kind: crate::error::CreateTopicErrorKind::TagPolicyException({ #[allow(unused_mut)] - let mut output = crate::error::tag_policy_error::Builder::default(); + let mut output = crate::error::tag_policy_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_policy_error_xml_err( + output = crate::xml_deser::deser_structure_tag_policy_exception_xml_err( response.body().as_ref(), output, ) @@ -729,11 +729,11 @@ pub fn parse_create_topic_error( }, "TopicLimitExceededException" => crate::error::CreateTopicError { meta: generic, - kind: crate::error::CreateTopicErrorKind::TopicLimitExceededError({ + kind: crate::error::CreateTopicErrorKind::TopicLimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::topic_limit_exceeded_error::Builder::default(); + let mut output = crate::error::topic_limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_topic_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_topic_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -772,11 +772,11 @@ pub fn parse_delete_endpoint_error( Err(match error_code { "AuthorizationErrorException" => crate::error::DeleteEndpointError { meta: generic, - kind: crate::error::DeleteEndpointErrorKind::AuthorizationErrorError({ + kind: crate::error::DeleteEndpointErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -786,11 +786,11 @@ pub fn parse_delete_endpoint_error( }, "InternalErrorException" => crate::error::DeleteEndpointError { meta: generic, - kind: crate::error::DeleteEndpointErrorKind::InternalErrorError({ + kind: crate::error::DeleteEndpointErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -800,11 +800,11 @@ pub fn parse_delete_endpoint_error( }, "InvalidParameterException" => crate::error::DeleteEndpointError { meta: generic, - kind: crate::error::DeleteEndpointErrorKind::InvalidParameterError({ + kind: crate::error::DeleteEndpointErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -848,11 +848,11 @@ pub fn parse_delete_platform_application_error( Err(match error_code { "AuthorizationErrorException" => crate::error::DeletePlatformApplicationError { meta: generic, - kind: crate::error::DeletePlatformApplicationErrorKind::AuthorizationErrorError({ + kind: crate::error::DeletePlatformApplicationErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -862,11 +862,11 @@ pub fn parse_delete_platform_application_error( }, "InternalErrorException" => crate::error::DeletePlatformApplicationError { meta: generic, - kind: crate::error::DeletePlatformApplicationErrorKind::InternalErrorError({ + kind: crate::error::DeletePlatformApplicationErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -876,11 +876,11 @@ pub fn parse_delete_platform_application_error( }, "InvalidParameterException" => crate::error::DeletePlatformApplicationError { meta: generic, - kind: crate::error::DeletePlatformApplicationErrorKind::InvalidParameterError({ + kind: crate::error::DeletePlatformApplicationErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -911,7 +911,7 @@ pub fn parse_delete_platform_application_response( pub fn parse_delete_sms_sandbox_phone_number_error( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSMSSandboxPhoneNumberOutput, + crate::output::DeleteSmsSandboxPhoneNumberOutput, crate::error::DeleteSMSSandboxPhoneNumberError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -925,27 +925,29 @@ pub fn parse_delete_sms_sandbox_phone_number_error( } }; Err(match error_code { - "AuthorizationErrorException" => crate::error::DeleteSMSSandboxPhoneNumberError { - meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::DeleteSMSSandboxPhoneNumberError::unhandled)?; - output.build() - }), - }, + "AuthorizationErrorException" => { + crate::error::DeleteSMSSandboxPhoneNumberError { + meta: generic, + kind: + crate::error::DeleteSMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DeleteSMSSandboxPhoneNumberError::unhandled)?; + output.build() + }, + ), + } + } "InternalErrorException" => crate::error::DeleteSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorError({ + kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -955,11 +957,11 @@ pub fn parse_delete_sms_sandbox_phone_number_error( }, "InvalidParameterException" => crate::error::DeleteSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterError({ + kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -969,11 +971,11 @@ pub fn parse_delete_sms_sandbox_phone_number_error( }, "ResourceNotFoundException" => crate::error::DeleteSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundError({ + kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -983,11 +985,11 @@ pub fn parse_delete_sms_sandbox_phone_number_error( }, "ThrottledException" => crate::error::DeleteSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ThrottledError({ + kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -997,11 +999,11 @@ pub fn parse_delete_sms_sandbox_phone_number_error( }, "UserErrorException" => crate::error::DeleteSMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::UserErrorError({ + kind: crate::error::DeleteSMSSandboxPhoneNumberErrorKind::UserErrorException({ #[allow(unused_mut)] - let mut output = crate::error::user_error_error::Builder::default(); + let mut output = crate::error::user_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_user_error_error_xml_err( + output = crate::xml_deser::deser_structure_user_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1017,7 +1019,7 @@ pub fn parse_delete_sms_sandbox_phone_number_error( pub fn parse_delete_sms_sandbox_phone_number_response( response: &http::Response, ) -> std::result::Result< - crate::output::DeleteSMSSandboxPhoneNumberOutput, + crate::output::DeleteSmsSandboxPhoneNumberOutput, crate::error::DeleteSMSSandboxPhoneNumberError, > { Ok({ @@ -1041,11 +1043,11 @@ pub fn parse_delete_topic_error( Err(match error_code { "AuthorizationErrorException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::AuthorizationErrorError({ + kind: crate::error::DeleteTopicErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1055,11 +1057,11 @@ pub fn parse_delete_topic_error( }, "ConcurrentAccessException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::ConcurrentAccessError({ + kind: crate::error::DeleteTopicErrorKind::ConcurrentAccessException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_access_error::Builder::default(); + let mut output = crate::error::concurrent_access_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_access_error_xml_err( + output = crate::xml_deser::deser_structure_concurrent_access_exception_xml_err( response.body().as_ref(), output, ) @@ -1069,11 +1071,11 @@ pub fn parse_delete_topic_error( }, "InternalErrorException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::InternalErrorError({ + kind: crate::error::DeleteTopicErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1083,11 +1085,11 @@ pub fn parse_delete_topic_error( }, "InvalidParameterException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::InvalidParameterError({ + kind: crate::error::DeleteTopicErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1097,11 +1099,11 @@ pub fn parse_delete_topic_error( }, "NotFoundException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::NotFoundError({ + kind: crate::error::DeleteTopicErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1111,11 +1113,11 @@ pub fn parse_delete_topic_error( }, "StaleTagException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::StaleTagError({ + kind: crate::error::DeleteTopicErrorKind::StaleTagException({ #[allow(unused_mut)] - let mut output = crate::error::stale_tag_error::Builder::default(); + let mut output = crate::error::stale_tag_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_tag_error_xml_err( + output = crate::xml_deser::deser_structure_stale_tag_exception_xml_err( response.body().as_ref(), output, ) @@ -1125,11 +1127,11 @@ pub fn parse_delete_topic_error( }, "TagPolicyException" => crate::error::DeleteTopicError { meta: generic, - kind: crate::error::DeleteTopicErrorKind::TagPolicyError({ + kind: crate::error::DeleteTopicErrorKind::TagPolicyException({ #[allow(unused_mut)] - let mut output = crate::error::tag_policy_error::Builder::default(); + let mut output = crate::error::tag_policy_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_policy_error_xml_err( + output = crate::xml_deser::deser_structure_tag_policy_exception_xml_err( response.body().as_ref(), output, ) @@ -1169,11 +1171,11 @@ pub fn parse_get_endpoint_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::GetEndpointAttributesError { meta: generic, - kind: crate::error::GetEndpointAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::GetEndpointAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1183,11 +1185,11 @@ pub fn parse_get_endpoint_attributes_error( }, "InternalErrorException" => crate::error::GetEndpointAttributesError { meta: generic, - kind: crate::error::GetEndpointAttributesErrorKind::InternalErrorError({ + kind: crate::error::GetEndpointAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1197,11 +1199,11 @@ pub fn parse_get_endpoint_attributes_error( }, "InvalidParameterException" => crate::error::GetEndpointAttributesError { meta: generic, - kind: crate::error::GetEndpointAttributesErrorKind::InvalidParameterError({ + kind: crate::error::GetEndpointAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1211,11 +1213,11 @@ pub fn parse_get_endpoint_attributes_error( }, "NotFoundException" => crate::error::GetEndpointAttributesError { meta: generic, - kind: crate::error::GetEndpointAttributesErrorKind::NotFoundError({ + kind: crate::error::GetEndpointAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1263,57 +1265,64 @@ pub fn parse_get_platform_application_attributes_error( } }; Err(match error_code { - "AuthorizationErrorException" => { - crate::error::GetPlatformApplicationAttributesError { - meta: generic, - kind: - crate::error::GetPlatformApplicationAttributesErrorKind::AuthorizationErrorError( - { - #[allow(unused_mut)] - let mut output = - crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err(response.body().as_ref(), output).map_err(crate::error::GetPlatformApplicationAttributesError::unhandled)?; - output.build() - }, - ), - } - } + "AuthorizationErrorException" => crate::error::GetPlatformApplicationAttributesError { + meta: generic, + kind: + crate::error::GetPlatformApplicationAttributesErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetPlatformApplicationAttributesError::unhandled)?; + output.build() + }, + ), + }, "InternalErrorException" => crate::error::GetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::GetPlatformApplicationAttributesErrorKind::InternalErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetPlatformApplicationAttributesError::unhandled)?; - output.build() - }), + kind: crate::error::GetPlatformApplicationAttributesErrorKind::InternalErrorException( + { + #[allow(unused_mut)] + let mut output = crate::error::internal_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPlatformApplicationAttributesError::unhandled)?; + output.build() + }, + ), }, "InvalidParameterException" => crate::error::GetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::GetPlatformApplicationAttributesErrorKind::InvalidParameterError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetPlatformApplicationAttributesError::unhandled)?; - output.build() - }), + kind: + crate::error::GetPlatformApplicationAttributesErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::GetPlatformApplicationAttributesError::unhandled, + )?; + output.build() + }, + ), }, "NotFoundException" => crate::error::GetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::GetPlatformApplicationAttributesErrorKind::NotFoundError({ + kind: crate::error::GetPlatformApplicationAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1349,7 +1358,7 @@ pub fn parse_get_platform_application_attributes_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_sms_attributes_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::GetSMSAttributesError::unhandled)?; @@ -1360,11 +1369,11 @@ pub fn parse_get_sms_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::GetSMSAttributesError { meta: generic, - kind: crate::error::GetSMSAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::GetSMSAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1374,11 +1383,11 @@ pub fn parse_get_sms_attributes_error( }, "InternalErrorException" => crate::error::GetSMSAttributesError { meta: generic, - kind: crate::error::GetSMSAttributesErrorKind::InternalErrorError({ + kind: crate::error::GetSMSAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1388,11 +1397,11 @@ pub fn parse_get_sms_attributes_error( }, "InvalidParameterException" => crate::error::GetSMSAttributesError { meta: generic, - kind: crate::error::GetSMSAttributesErrorKind::InvalidParameterError({ + kind: crate::error::GetSMSAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1402,11 +1411,11 @@ pub fn parse_get_sms_attributes_error( }, "ThrottledException" => crate::error::GetSMSAttributesError { meta: generic, - kind: crate::error::GetSMSAttributesErrorKind::ThrottledError({ + kind: crate::error::GetSMSAttributesErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -1421,7 +1430,7 @@ pub fn parse_get_sms_attributes_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_get_sms_attributes_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -1438,7 +1447,7 @@ pub fn parse_get_sms_attributes_response( pub fn parse_get_sms_sandbox_account_status_error( response: &http::Response, ) -> std::result::Result< - crate::output::GetSMSSandboxAccountStatusOutput, + crate::output::GetSmsSandboxAccountStatusOutput, crate::error::GetSMSSandboxAccountStatusError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -1454,11 +1463,11 @@ pub fn parse_get_sms_sandbox_account_status_error( Err(match error_code { "AuthorizationErrorException" => crate::error::GetSMSSandboxAccountStatusError { meta: generic, - kind: crate::error::GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorError({ + kind: crate::error::GetSMSSandboxAccountStatusErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1468,11 +1477,11 @@ pub fn parse_get_sms_sandbox_account_status_error( }, "InternalErrorException" => crate::error::GetSMSSandboxAccountStatusError { meta: generic, - kind: crate::error::GetSMSSandboxAccountStatusErrorKind::InternalErrorError({ + kind: crate::error::GetSMSSandboxAccountStatusErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1482,11 +1491,11 @@ pub fn parse_get_sms_sandbox_account_status_error( }, "ThrottledException" => crate::error::GetSMSSandboxAccountStatusError { meta: generic, - kind: crate::error::GetSMSSandboxAccountStatusErrorKind::ThrottledError({ + kind: crate::error::GetSMSSandboxAccountStatusErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -1502,7 +1511,7 @@ pub fn parse_get_sms_sandbox_account_status_error( pub fn parse_get_sms_sandbox_account_status_response( response: &http::Response, ) -> std::result::Result< - crate::output::GetSMSSandboxAccountStatusOutput, + crate::output::GetSmsSandboxAccountStatusOutput, crate::error::GetSMSSandboxAccountStatusError, > { Ok({ @@ -1538,11 +1547,11 @@ pub fn parse_get_subscription_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::GetSubscriptionAttributesError { meta: generic, - kind: crate::error::GetSubscriptionAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::GetSubscriptionAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1552,11 +1561,11 @@ pub fn parse_get_subscription_attributes_error( }, "InternalErrorException" => crate::error::GetSubscriptionAttributesError { meta: generic, - kind: crate::error::GetSubscriptionAttributesErrorKind::InternalErrorError({ + kind: crate::error::GetSubscriptionAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1566,11 +1575,11 @@ pub fn parse_get_subscription_attributes_error( }, "InvalidParameterException" => crate::error::GetSubscriptionAttributesError { meta: generic, - kind: crate::error::GetSubscriptionAttributesErrorKind::InvalidParameterError({ + kind: crate::error::GetSubscriptionAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1580,11 +1589,11 @@ pub fn parse_get_subscription_attributes_error( }, "NotFoundException" => crate::error::GetSubscriptionAttributesError { meta: generic, - kind: crate::error::GetSubscriptionAttributesErrorKind::NotFoundError({ + kind: crate::error::GetSubscriptionAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1632,11 +1641,11 @@ pub fn parse_get_topic_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::GetTopicAttributesError { meta: generic, - kind: crate::error::GetTopicAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::GetTopicAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1646,11 +1655,11 @@ pub fn parse_get_topic_attributes_error( }, "InternalErrorException" => crate::error::GetTopicAttributesError { meta: generic, - kind: crate::error::GetTopicAttributesErrorKind::InternalErrorError({ + kind: crate::error::GetTopicAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1660,11 +1669,11 @@ pub fn parse_get_topic_attributes_error( }, "InvalidParameterException" => crate::error::GetTopicAttributesError { meta: generic, - kind: crate::error::GetTopicAttributesErrorKind::InvalidParameterError({ + kind: crate::error::GetTopicAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1674,11 +1683,11 @@ pub fn parse_get_topic_attributes_error( }, "InvalidSecurityException" => crate::error::GetTopicAttributesError { meta: generic, - kind: crate::error::GetTopicAttributesErrorKind::InvalidSecurityError({ + kind: crate::error::GetTopicAttributesErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -1688,11 +1697,11 @@ pub fn parse_get_topic_attributes_error( }, "NotFoundException" => crate::error::GetTopicAttributesError { meta: generic, - kind: crate::error::GetTopicAttributesErrorKind::NotFoundError({ + kind: crate::error::GetTopicAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -1740,72 +1749,31 @@ pub fn parse_list_endpoints_by_platform_application_error( } }; Err(match error_code { - "AuthorizationErrorException" => crate::error::ListEndpointsByPlatformApplicationError { - meta: generic, - kind: - crate::error::ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorError( - { - #[allow(unused_mut)] - let mut output = - crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = - crate::xml_deser::deser_structure_authorization_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err( - crate::error::ListEndpointsByPlatformApplicationError::unhandled, - )?; - output.build() - }, - ), - }, - "InternalErrorException" => crate::error::ListEndpointsByPlatformApplicationError { - meta: generic, - kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::InternalErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; - output.build() - }), - }, - "InvalidParameterException" => { - crate::error::ListEndpointsByPlatformApplicationError { - meta: generic, - kind: - crate::error::ListEndpointsByPlatformApplicationErrorKind::InvalidParameterError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_parameter_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err(response.body().as_ref(), output).map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; - output.build() - }, - ), - } - } - "NotFoundException" => crate::error::ListEndpointsByPlatformApplicationError { - meta: generic, - kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::NotFoundError({ - #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; - output.build() - }), - }, - _ => crate::error::ListEndpointsByPlatformApplicationError::generic(generic), + "AuthorizationErrorException" => crate::error::ListEndpointsByPlatformApplicationError { meta: generic, kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::AuthorizationErrorException({ + #[allow(unused_mut)]let mut output = crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; + output.build() + })}, + "InternalErrorException" => crate::error::ListEndpointsByPlatformApplicationError { meta: generic, kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::InternalErrorException({ + #[allow(unused_mut)]let mut output = crate::error::internal_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; + output.build() + })}, + "InvalidParameterException" => crate::error::ListEndpointsByPlatformApplicationError { meta: generic, kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::InvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; + output.build() + })}, + "NotFoundException" => crate::error::ListEndpointsByPlatformApplicationError { meta: generic, kind: crate::error::ListEndpointsByPlatformApplicationErrorKind::NotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::not_found_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_not_found_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::ListEndpointsByPlatformApplicationError::unhandled)?; + output.build() + })}, + _ => crate::error::ListEndpointsByPlatformApplicationError::generic(generic) }) } @@ -1850,11 +1818,11 @@ pub fn parse_list_origination_numbers_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListOriginationNumbersError { meta: generic, - kind: crate::error::ListOriginationNumbersErrorKind::AuthorizationErrorError({ + kind: crate::error::ListOriginationNumbersErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1864,11 +1832,11 @@ pub fn parse_list_origination_numbers_error( }, "InternalErrorException" => crate::error::ListOriginationNumbersError { meta: generic, - kind: crate::error::ListOriginationNumbersErrorKind::InternalErrorError({ + kind: crate::error::ListOriginationNumbersErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1878,11 +1846,11 @@ pub fn parse_list_origination_numbers_error( }, "InvalidParameterException" => crate::error::ListOriginationNumbersError { meta: generic, - kind: crate::error::ListOriginationNumbersErrorKind::InvalidParameterError({ + kind: crate::error::ListOriginationNumbersErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -1892,11 +1860,11 @@ pub fn parse_list_origination_numbers_error( }, "ThrottledException" => crate::error::ListOriginationNumbersError { meta: generic, - kind: crate::error::ListOriginationNumbersErrorKind::ThrottledError({ + kind: crate::error::ListOriginationNumbersErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -1906,11 +1874,11 @@ pub fn parse_list_origination_numbers_error( }, "ValidationException" => crate::error::ListOriginationNumbersError { meta: generic, - kind: crate::error::ListOriginationNumbersErrorKind::ValidationError({ + kind: crate::error::ListOriginationNumbersErrorKind::ValidationException({ #[allow(unused_mut)] - let mut output = crate::error::validation_error::Builder::default(); + let mut output = crate::error::validation_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_validation_error_xml_err( + output = crate::xml_deser::deser_structure_validation_exception_xml_err( response.body().as_ref(), output, ) @@ -1962,11 +1930,11 @@ pub fn parse_list_phone_numbers_opted_out_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListPhoneNumbersOptedOutError { meta: generic, - kind: crate::error::ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorError({ + kind: crate::error::ListPhoneNumbersOptedOutErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1976,11 +1944,11 @@ pub fn parse_list_phone_numbers_opted_out_error( }, "InternalErrorException" => crate::error::ListPhoneNumbersOptedOutError { meta: generic, - kind: crate::error::ListPhoneNumbersOptedOutErrorKind::InternalErrorError({ + kind: crate::error::ListPhoneNumbersOptedOutErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -1990,11 +1958,11 @@ pub fn parse_list_phone_numbers_opted_out_error( }, "InvalidParameterException" => crate::error::ListPhoneNumbersOptedOutError { meta: generic, - kind: crate::error::ListPhoneNumbersOptedOutErrorKind::InvalidParameterError({ + kind: crate::error::ListPhoneNumbersOptedOutErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2004,11 +1972,11 @@ pub fn parse_list_phone_numbers_opted_out_error( }, "ThrottledException" => crate::error::ListPhoneNumbersOptedOutError { meta: generic, - kind: crate::error::ListPhoneNumbersOptedOutErrorKind::ThrottledError({ + kind: crate::error::ListPhoneNumbersOptedOutErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -2060,11 +2028,11 @@ pub fn parse_list_platform_applications_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListPlatformApplicationsError { meta: generic, - kind: crate::error::ListPlatformApplicationsErrorKind::AuthorizationErrorError({ + kind: crate::error::ListPlatformApplicationsErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2074,11 +2042,11 @@ pub fn parse_list_platform_applications_error( }, "InternalErrorException" => crate::error::ListPlatformApplicationsError { meta: generic, - kind: crate::error::ListPlatformApplicationsErrorKind::InternalErrorError({ + kind: crate::error::ListPlatformApplicationsErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2088,11 +2056,11 @@ pub fn parse_list_platform_applications_error( }, "InvalidParameterException" => crate::error::ListPlatformApplicationsError { meta: generic, - kind: crate::error::ListPlatformApplicationsErrorKind::InvalidParameterError({ + kind: crate::error::ListPlatformApplicationsErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2128,7 +2096,7 @@ pub fn parse_list_platform_applications_response( pub fn parse_list_sms_sandbox_phone_numbers_error( response: &http::Response, ) -> std::result::Result< - crate::output::ListSMSSandboxPhoneNumbersOutput, + crate::output::ListSmsSandboxPhoneNumbersOutput, crate::error::ListSMSSandboxPhoneNumbersError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -2144,11 +2112,11 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListSMSSandboxPhoneNumbersError { meta: generic, - kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorError({ + kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2158,11 +2126,11 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( }, "InternalErrorException" => crate::error::ListSMSSandboxPhoneNumbersError { meta: generic, - kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::InternalErrorError({ + kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2172,11 +2140,11 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( }, "InvalidParameterException" => crate::error::ListSMSSandboxPhoneNumbersError { meta: generic, - kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterError({ + kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2186,11 +2154,11 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( }, "ResourceNotFoundException" => crate::error::ListSMSSandboxPhoneNumbersError { meta: generic, - kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundError({ + kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2200,11 +2168,11 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( }, "ThrottledException" => crate::error::ListSMSSandboxPhoneNumbersError { meta: generic, - kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::ThrottledError({ + kind: crate::error::ListSMSSandboxPhoneNumbersErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -2220,7 +2188,7 @@ pub fn parse_list_sms_sandbox_phone_numbers_error( pub fn parse_list_sms_sandbox_phone_numbers_response( response: &http::Response, ) -> std::result::Result< - crate::output::ListSMSSandboxPhoneNumbersOutput, + crate::output::ListSmsSandboxPhoneNumbersOutput, crate::error::ListSMSSandboxPhoneNumbersError, > { Ok({ @@ -2250,11 +2218,11 @@ pub fn parse_list_subscriptions_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListSubscriptionsError { meta: generic, - kind: crate::error::ListSubscriptionsErrorKind::AuthorizationErrorError({ + kind: crate::error::ListSubscriptionsErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2264,11 +2232,11 @@ pub fn parse_list_subscriptions_error( }, "InternalErrorException" => crate::error::ListSubscriptionsError { meta: generic, - kind: crate::error::ListSubscriptionsErrorKind::InternalErrorError({ + kind: crate::error::ListSubscriptionsErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2278,11 +2246,11 @@ pub fn parse_list_subscriptions_error( }, "InvalidParameterException" => crate::error::ListSubscriptionsError { meta: generic, - kind: crate::error::ListSubscriptionsErrorKind::InvalidParameterError({ + kind: crate::error::ListSubscriptionsErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2330,11 +2298,11 @@ pub fn parse_list_subscriptions_by_topic_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListSubscriptionsByTopicError { meta: generic, - kind: crate::error::ListSubscriptionsByTopicErrorKind::AuthorizationErrorError({ + kind: crate::error::ListSubscriptionsByTopicErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2344,11 +2312,11 @@ pub fn parse_list_subscriptions_by_topic_error( }, "InternalErrorException" => crate::error::ListSubscriptionsByTopicError { meta: generic, - kind: crate::error::ListSubscriptionsByTopicErrorKind::InternalErrorError({ + kind: crate::error::ListSubscriptionsByTopicErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2358,11 +2326,11 @@ pub fn parse_list_subscriptions_by_topic_error( }, "InvalidParameterException" => crate::error::ListSubscriptionsByTopicError { meta: generic, - kind: crate::error::ListSubscriptionsByTopicErrorKind::InvalidParameterError({ + kind: crate::error::ListSubscriptionsByTopicErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2372,11 +2340,11 @@ pub fn parse_list_subscriptions_by_topic_error( }, "NotFoundException" => crate::error::ListSubscriptionsByTopicError { meta: generic, - kind: crate::error::ListSubscriptionsByTopicErrorKind::NotFoundError({ + kind: crate::error::ListSubscriptionsByTopicErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2424,11 +2392,11 @@ pub fn parse_list_tags_for_resource_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::AuthorizationErrorError({ + kind: crate::error::ListTagsForResourceErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2438,11 +2406,11 @@ pub fn parse_list_tags_for_resource_error( }, "ConcurrentAccessException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ConcurrentAccessError({ + kind: crate::error::ListTagsForResourceErrorKind::ConcurrentAccessException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_access_error::Builder::default(); + let mut output = crate::error::concurrent_access_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_access_error_xml_err( + output = crate::xml_deser::deser_structure_concurrent_access_exception_xml_err( response.body().as_ref(), output, ) @@ -2452,11 +2420,11 @@ pub fn parse_list_tags_for_resource_error( }, "InvalidParameterException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterError({ + kind: crate::error::ListTagsForResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2466,11 +2434,11 @@ pub fn parse_list_tags_for_resource_error( }, "ResourceNotFoundException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2480,11 +2448,11 @@ pub fn parse_list_tags_for_resource_error( }, "TagPolicyException" => crate::error::ListTagsForResourceError { meta: generic, - kind: crate::error::ListTagsForResourceErrorKind::TagPolicyError({ + kind: crate::error::ListTagsForResourceErrorKind::TagPolicyException({ #[allow(unused_mut)] - let mut output = crate::error::tag_policy_error::Builder::default(); + let mut output = crate::error::tag_policy_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_policy_error_xml_err( + output = crate::xml_deser::deser_structure_tag_policy_exception_xml_err( response.body().as_ref(), output, ) @@ -2529,11 +2497,11 @@ pub fn parse_list_topics_error( Err(match error_code { "AuthorizationErrorException" => crate::error::ListTopicsError { meta: generic, - kind: crate::error::ListTopicsErrorKind::AuthorizationErrorError({ + kind: crate::error::ListTopicsErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2543,11 +2511,11 @@ pub fn parse_list_topics_error( }, "InternalErrorException" => crate::error::ListTopicsError { meta: generic, - kind: crate::error::ListTopicsErrorKind::InternalErrorError({ + kind: crate::error::ListTopicsErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2557,11 +2525,11 @@ pub fn parse_list_topics_error( }, "InvalidParameterException" => crate::error::ListTopicsError { meta: generic, - kind: crate::error::ListTopicsErrorKind::InvalidParameterError({ + kind: crate::error::ListTopicsErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2601,11 +2569,11 @@ pub fn parse_opt_in_phone_number_error( Err(match error_code { "AuthorizationErrorException" => crate::error::OptInPhoneNumberError { meta: generic, - kind: crate::error::OptInPhoneNumberErrorKind::AuthorizationErrorError({ + kind: crate::error::OptInPhoneNumberErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2615,11 +2583,11 @@ pub fn parse_opt_in_phone_number_error( }, "InternalErrorException" => crate::error::OptInPhoneNumberError { meta: generic, - kind: crate::error::OptInPhoneNumberErrorKind::InternalErrorError({ + kind: crate::error::OptInPhoneNumberErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2629,11 +2597,11 @@ pub fn parse_opt_in_phone_number_error( }, "InvalidParameterException" => crate::error::OptInPhoneNumberError { meta: generic, - kind: crate::error::OptInPhoneNumberErrorKind::InvalidParameterError({ + kind: crate::error::OptInPhoneNumberErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2643,11 +2611,11 @@ pub fn parse_opt_in_phone_number_error( }, "ThrottledException" => crate::error::OptInPhoneNumberError { meta: generic, - kind: crate::error::OptInPhoneNumberErrorKind::ThrottledError({ + kind: crate::error::OptInPhoneNumberErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -2685,11 +2653,11 @@ pub fn parse_publish_error( Err(match error_code { "AuthorizationErrorException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::AuthorizationErrorError({ + kind: crate::error::PublishErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2699,11 +2667,11 @@ pub fn parse_publish_error( }, "EndpointDisabledException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::EndpointDisabledError({ + kind: crate::error::PublishErrorKind::EndpointDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::endpoint_disabled_error::Builder::default(); + let mut output = crate::error::endpoint_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_endpoint_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_endpoint_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -2713,11 +2681,11 @@ pub fn parse_publish_error( }, "InternalErrorException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::InternalErrorError({ + kind: crate::error::PublishErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2727,25 +2695,11 @@ pub fn parse_publish_error( }, "InvalidParameterException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::InvalidParameterError({ + kind: crate::error::PublishErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::PublishError::unhandled)?; - output.build() - }), - }, - "InvalidParameterValueException" => crate::error::PublishError { - meta: generic, - kind: crate::error::PublishErrorKind::InvalidParameterValueError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_value_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_value_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2753,13 +2707,26 @@ pub fn parse_publish_error( output.build() }), }, + "InvalidParameterValueException" => { + crate::error::PublishError { + meta: generic, + kind: crate::error::PublishErrorKind::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_value_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PublishError::unhandled)?; + output.build() + }), + } + } "InvalidSecurityException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::InvalidSecurityError({ + kind: crate::error::PublishErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -2769,11 +2736,11 @@ pub fn parse_publish_error( }, "KMSAccessDeniedException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSAccessDeniedError({ + kind: crate::error::PublishErrorKind::KmsAccessDeniedException({ #[allow(unused_mut)] - let mut output = crate::error::kms_access_denied_error::Builder::default(); + let mut output = crate::error::kms_access_denied_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_kms_access_denied_error_xml_err( + output = crate::xml_deser::deser_structure_kms_access_denied_exception_xml_err( response.body().as_ref(), output, ) @@ -2783,11 +2750,11 @@ pub fn parse_publish_error( }, "KMSDisabledException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSDisabledError({ + kind: crate::error::PublishErrorKind::KmsDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::kms_disabled_error::Builder::default(); + let mut output = crate::error::kms_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_kms_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_kms_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -2797,11 +2764,11 @@ pub fn parse_publish_error( }, "KMSInvalidStateException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSInvalidStateError({ + kind: crate::error::PublishErrorKind::KmsInvalidStateException({ #[allow(unused_mut)] - let mut output = crate::error::kms_invalid_state_error::Builder::default(); + let mut output = crate::error::kms_invalid_state_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_kms_invalid_state_error_xml_err( + output = crate::xml_deser::deser_structure_kms_invalid_state_exception_xml_err( response.body().as_ref(), output, ) @@ -2811,11 +2778,11 @@ pub fn parse_publish_error( }, "KMSNotFoundException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSNotFoundError({ + kind: crate::error::PublishErrorKind::KmsNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::kms_not_found_error::Builder::default(); + let mut output = crate::error::kms_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_kms_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_kms_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2825,7 +2792,7 @@ pub fn parse_publish_error( }, "KMSOptInRequired" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSOptInRequired({ + kind: crate::error::PublishErrorKind::KmsOptInRequired({ #[allow(unused_mut)] let mut output = crate::error::kms_opt_in_required::Builder::default(); let _ = response; @@ -2839,11 +2806,11 @@ pub fn parse_publish_error( }, "KMSThrottlingException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::KMSThrottlingError({ + kind: crate::error::PublishErrorKind::KmsThrottlingException({ #[allow(unused_mut)] - let mut output = crate::error::kms_throttling_error::Builder::default(); + let mut output = crate::error::kms_throttling_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_kms_throttling_error_xml_err( + output = crate::xml_deser::deser_structure_kms_throttling_exception_xml_err( response.body().as_ref(), output, ) @@ -2853,11 +2820,11 @@ pub fn parse_publish_error( }, "NotFoundException" => crate::error::PublishError { meta: generic, - kind: crate::error::PublishErrorKind::NotFoundError({ + kind: crate::error::PublishErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2865,19 +2832,17 @@ pub fn parse_publish_error( output.build() }), }, - "PlatformApplicationDisabledException" => { - crate::error::PublishError { - meta: generic, - kind: crate::error::PublishErrorKind::PlatformApplicationDisabledError({ - #[allow(unused_mut)] - let mut output = - crate::error::platform_application_disabled_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_platform_application_disabled_error_xml_err(response.body().as_ref(), output).map_err(crate::error::PublishError::unhandled)?; - output.build() - }), - } - } + "PlatformApplicationDisabledException" => crate::error::PublishError { + meta: generic, + kind: crate::error::PublishErrorKind::PlatformApplicationDisabledException({ + #[allow(unused_mut)] + let mut output = + crate::error::platform_application_disabled_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_platform_application_disabled_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::PublishError::unhandled)?; + output.build() + }), + }, _ => crate::error::PublishError::generic(generic), }) } @@ -2910,11 +2875,11 @@ pub fn parse_remove_permission_error( Err(match error_code { "AuthorizationErrorException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::AuthorizationErrorError({ + kind: crate::error::RemovePermissionErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2924,11 +2889,11 @@ pub fn parse_remove_permission_error( }, "InternalErrorException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::InternalErrorError({ + kind: crate::error::RemovePermissionErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -2938,11 +2903,11 @@ pub fn parse_remove_permission_error( }, "InvalidParameterException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::InvalidParameterError({ + kind: crate::error::RemovePermissionErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -2952,11 +2917,11 @@ pub fn parse_remove_permission_error( }, "NotFoundException" => crate::error::RemovePermissionError { meta: generic, - kind: crate::error::RemovePermissionErrorKind::NotFoundError({ + kind: crate::error::RemovePermissionErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -2997,11 +2962,11 @@ pub fn parse_set_endpoint_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::SetEndpointAttributesError { meta: generic, - kind: crate::error::SetEndpointAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::SetEndpointAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3011,11 +2976,11 @@ pub fn parse_set_endpoint_attributes_error( }, "InternalErrorException" => crate::error::SetEndpointAttributesError { meta: generic, - kind: crate::error::SetEndpointAttributesErrorKind::InternalErrorError({ + kind: crate::error::SetEndpointAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3025,11 +2990,11 @@ pub fn parse_set_endpoint_attributes_error( }, "InvalidParameterException" => crate::error::SetEndpointAttributesError { meta: generic, - kind: crate::error::SetEndpointAttributesErrorKind::InvalidParameterError({ + kind: crate::error::SetEndpointAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3039,11 +3004,11 @@ pub fn parse_set_endpoint_attributes_error( }, "NotFoundException" => crate::error::SetEndpointAttributesError { meta: generic, - kind: crate::error::SetEndpointAttributesErrorKind::NotFoundError({ + kind: crate::error::SetEndpointAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3086,57 +3051,64 @@ pub fn parse_set_platform_application_attributes_error( } }; Err(match error_code { - "AuthorizationErrorException" => { - crate::error::SetPlatformApplicationAttributesError { - meta: generic, - kind: - crate::error::SetPlatformApplicationAttributesErrorKind::AuthorizationErrorError( - { - #[allow(unused_mut)] - let mut output = - crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err(response.body().as_ref(), output).map_err(crate::error::SetPlatformApplicationAttributesError::unhandled)?; - output.build() - }, - ), - } - } + "AuthorizationErrorException" => crate::error::SetPlatformApplicationAttributesError { + meta: generic, + kind: + crate::error::SetPlatformApplicationAttributesErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::SetPlatformApplicationAttributesError::unhandled)?; + output.build() + }, + ), + }, "InternalErrorException" => crate::error::SetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::SetPlatformApplicationAttributesErrorKind::InternalErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SetPlatformApplicationAttributesError::unhandled)?; - output.build() - }), + kind: crate::error::SetPlatformApplicationAttributesErrorKind::InternalErrorException( + { + #[allow(unused_mut)] + let mut output = crate::error::internal_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SetPlatformApplicationAttributesError::unhandled)?; + output.build() + }, + ), }, "InvalidParameterException" => crate::error::SetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::SetPlatformApplicationAttributesErrorKind::InvalidParameterError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::SetPlatformApplicationAttributesError::unhandled)?; - output.build() - }), + kind: + crate::error::SetPlatformApplicationAttributesErrorKind::InvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_parameter_exception::Builder::default(); + let _ = response; + output = + crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::SetPlatformApplicationAttributesError::unhandled, + )?; + output.build() + }, + ), }, "NotFoundException" => crate::error::SetPlatformApplicationAttributesError { meta: generic, - kind: crate::error::SetPlatformApplicationAttributesErrorKind::NotFoundError({ + kind: crate::error::SetPlatformApplicationAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3167,7 +3139,7 @@ pub fn parse_set_platform_application_attributes_response( #[allow(clippy::unnecessary_wraps)] pub fn parse_set_sms_attributes_error( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { let generic = crate::xml_deser::parse_generic_error(&response) .map_err(crate::error::SetSMSAttributesError::unhandled)?; @@ -3178,11 +3150,11 @@ pub fn parse_set_sms_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::SetSMSAttributesError { meta: generic, - kind: crate::error::SetSMSAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::SetSMSAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3192,11 +3164,11 @@ pub fn parse_set_sms_attributes_error( }, "InternalErrorException" => crate::error::SetSMSAttributesError { meta: generic, - kind: crate::error::SetSMSAttributesErrorKind::InternalErrorError({ + kind: crate::error::SetSMSAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3206,11 +3178,11 @@ pub fn parse_set_sms_attributes_error( }, "InvalidParameterException" => crate::error::SetSMSAttributesError { meta: generic, - kind: crate::error::SetSMSAttributesErrorKind::InvalidParameterError({ + kind: crate::error::SetSMSAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3220,11 +3192,11 @@ pub fn parse_set_sms_attributes_error( }, "ThrottledException" => crate::error::SetSMSAttributesError { meta: generic, - kind: crate::error::SetSMSAttributesErrorKind::ThrottledError({ + kind: crate::error::SetSMSAttributesErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -3239,7 +3211,7 @@ pub fn parse_set_sms_attributes_error( #[allow(clippy::unnecessary_wraps)] pub fn parse_set_sms_attributes_response( response: &http::Response, -) -> std::result::Result +) -> std::result::Result { Ok({ #[allow(unused_mut)] @@ -3269,11 +3241,11 @@ pub fn parse_set_subscription_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::SetSubscriptionAttributesError { meta: generic, - kind: crate::error::SetSubscriptionAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::SetSubscriptionAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3283,24 +3255,26 @@ pub fn parse_set_subscription_attributes_error( }, "FilterPolicyLimitExceededException" => crate::error::SetSubscriptionAttributesError { meta: generic, - kind: crate::error::SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededError( - { - #[allow(unused_mut)] - let mut output = - crate::error::filter_policy_limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::SetSubscriptionAttributesError::unhandled)?; - output.build() - }, - ), + kind: + crate::error::SetSubscriptionAttributesErrorKind::FilterPolicyLimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::filter_policy_limit_exceeded_exception::Builder::default( + ); + let _ = response; + output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::SetSubscriptionAttributesError::unhandled)?; + output.build() + }, + ), }, "InternalErrorException" => crate::error::SetSubscriptionAttributesError { meta: generic, - kind: crate::error::SetSubscriptionAttributesErrorKind::InternalErrorError({ + kind: crate::error::SetSubscriptionAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3310,11 +3284,11 @@ pub fn parse_set_subscription_attributes_error( }, "InvalidParameterException" => crate::error::SetSubscriptionAttributesError { meta: generic, - kind: crate::error::SetSubscriptionAttributesErrorKind::InvalidParameterError({ + kind: crate::error::SetSubscriptionAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3324,11 +3298,11 @@ pub fn parse_set_subscription_attributes_error( }, "NotFoundException" => crate::error::SetSubscriptionAttributesError { meta: generic, - kind: crate::error::SetSubscriptionAttributesErrorKind::NotFoundError({ + kind: crate::error::SetSubscriptionAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3371,11 +3345,11 @@ pub fn parse_set_topic_attributes_error( Err(match error_code { "AuthorizationErrorException" => crate::error::SetTopicAttributesError { meta: generic, - kind: crate::error::SetTopicAttributesErrorKind::AuthorizationErrorError({ + kind: crate::error::SetTopicAttributesErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3385,11 +3359,11 @@ pub fn parse_set_topic_attributes_error( }, "InternalErrorException" => crate::error::SetTopicAttributesError { meta: generic, - kind: crate::error::SetTopicAttributesErrorKind::InternalErrorError({ + kind: crate::error::SetTopicAttributesErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3399,11 +3373,11 @@ pub fn parse_set_topic_attributes_error( }, "InvalidParameterException" => crate::error::SetTopicAttributesError { meta: generic, - kind: crate::error::SetTopicAttributesErrorKind::InvalidParameterError({ + kind: crate::error::SetTopicAttributesErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3413,11 +3387,11 @@ pub fn parse_set_topic_attributes_error( }, "InvalidSecurityException" => crate::error::SetTopicAttributesError { meta: generic, - kind: crate::error::SetTopicAttributesErrorKind::InvalidSecurityError({ + kind: crate::error::SetTopicAttributesErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -3427,11 +3401,11 @@ pub fn parse_set_topic_attributes_error( }, "NotFoundException" => crate::error::SetTopicAttributesError { meta: generic, - kind: crate::error::SetTopicAttributesErrorKind::NotFoundError({ + kind: crate::error::SetTopicAttributesErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3471,11 +3445,11 @@ pub fn parse_subscribe_error( Err(match error_code { "AuthorizationErrorException" => crate::error::SubscribeError { meta: generic, - kind: crate::error::SubscribeErrorKind::AuthorizationErrorError({ + kind: crate::error::SubscribeErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3483,26 +3457,24 @@ pub fn parse_subscribe_error( output.build() }), }, - "FilterPolicyLimitExceededException" => { - crate::error::SubscribeError { - meta: generic, - kind: crate::error::SubscribeErrorKind::FilterPolicyLimitExceededError({ - #[allow(unused_mut)] - let mut output = - crate::error::filter_policy_limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::SubscribeError::unhandled)?; - output.build() - }), - } - } + "FilterPolicyLimitExceededException" => crate::error::SubscribeError { + meta: generic, + kind: crate::error::SubscribeErrorKind::FilterPolicyLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::filter_policy_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_filter_policy_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::SubscribeError::unhandled)?; + output.build() + }), + }, "InternalErrorException" => crate::error::SubscribeError { meta: generic, - kind: crate::error::SubscribeErrorKind::InternalErrorError({ + kind: crate::error::SubscribeErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3512,11 +3484,11 @@ pub fn parse_subscribe_error( }, "InvalidParameterException" => crate::error::SubscribeError { meta: generic, - kind: crate::error::SubscribeErrorKind::InvalidParameterError({ + kind: crate::error::SubscribeErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3526,11 +3498,11 @@ pub fn parse_subscribe_error( }, "InvalidSecurityException" => crate::error::SubscribeError { meta: generic, - kind: crate::error::SubscribeErrorKind::InvalidSecurityError({ + kind: crate::error::SubscribeErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -3540,11 +3512,11 @@ pub fn parse_subscribe_error( }, "NotFoundException" => crate::error::SubscribeError { meta: generic, - kind: crate::error::SubscribeErrorKind::NotFoundError({ + kind: crate::error::SubscribeErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3552,19 +3524,17 @@ pub fn parse_subscribe_error( output.build() }), }, - "SubscriptionLimitExceededException" => { - crate::error::SubscribeError { - meta: generic, - kind: crate::error::SubscribeErrorKind::SubscriptionLimitExceededError({ - #[allow(unused_mut)] - let mut output = - crate::error::subscription_limit_exceeded_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_subscription_limit_exceeded_error_xml_err(response.body().as_ref(), output).map_err(crate::error::SubscribeError::unhandled)?; - output.build() - }), - } - } + "SubscriptionLimitExceededException" => crate::error::SubscribeError { + meta: generic, + kind: crate::error::SubscribeErrorKind::SubscriptionLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::subscription_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_subscription_limit_exceeded_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::SubscribeError::unhandled)?; + output.build() + }), + }, _ => crate::error::SubscribeError::generic(generic), }) } @@ -3596,11 +3566,11 @@ pub fn parse_tag_resource_error( Err(match error_code { "AuthorizationErrorException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::AuthorizationErrorError({ + kind: crate::error::TagResourceErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3610,11 +3580,11 @@ pub fn parse_tag_resource_error( }, "ConcurrentAccessException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ConcurrentAccessError({ + kind: crate::error::TagResourceErrorKind::ConcurrentAccessException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_access_error::Builder::default(); + let mut output = crate::error::concurrent_access_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_access_error_xml_err( + output = crate::xml_deser::deser_structure_concurrent_access_exception_xml_err( response.body().as_ref(), output, ) @@ -3624,11 +3594,11 @@ pub fn parse_tag_resource_error( }, "InvalidParameterException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::InvalidParameterError({ + kind: crate::error::TagResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3638,11 +3608,11 @@ pub fn parse_tag_resource_error( }, "ResourceNotFoundException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3652,11 +3622,11 @@ pub fn parse_tag_resource_error( }, "StaleTagException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::StaleTagError({ + kind: crate::error::TagResourceErrorKind::StaleTagException({ #[allow(unused_mut)] - let mut output = crate::error::stale_tag_error::Builder::default(); + let mut output = crate::error::stale_tag_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_tag_error_xml_err( + output = crate::xml_deser::deser_structure_stale_tag_exception_xml_err( response.body().as_ref(), output, ) @@ -3666,11 +3636,11 @@ pub fn parse_tag_resource_error( }, "TagLimitExceededException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::TagLimitExceededError({ + kind: crate::error::TagResourceErrorKind::TagLimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::tag_limit_exceeded_error::Builder::default(); + let mut output = crate::error::tag_limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_tag_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3680,11 +3650,11 @@ pub fn parse_tag_resource_error( }, "TagPolicyException" => crate::error::TagResourceError { meta: generic, - kind: crate::error::TagResourceErrorKind::TagPolicyError({ + kind: crate::error::TagResourceErrorKind::TagPolicyException({ #[allow(unused_mut)] - let mut output = crate::error::tag_policy_error::Builder::default(); + let mut output = crate::error::tag_policy_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_policy_error_xml_err( + output = crate::xml_deser::deser_structure_tag_policy_exception_xml_err( response.body().as_ref(), output, ) @@ -3721,11 +3691,11 @@ pub fn parse_unsubscribe_error( Err(match error_code { "AuthorizationErrorException" => crate::error::UnsubscribeError { meta: generic, - kind: crate::error::UnsubscribeErrorKind::AuthorizationErrorError({ + kind: crate::error::UnsubscribeErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3735,11 +3705,11 @@ pub fn parse_unsubscribe_error( }, "InternalErrorException" => crate::error::UnsubscribeError { meta: generic, - kind: crate::error::UnsubscribeErrorKind::InternalErrorError({ + kind: crate::error::UnsubscribeErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3749,11 +3719,11 @@ pub fn parse_unsubscribe_error( }, "InvalidParameterException" => crate::error::UnsubscribeError { meta: generic, - kind: crate::error::UnsubscribeErrorKind::InvalidParameterError({ + kind: crate::error::UnsubscribeErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3763,11 +3733,11 @@ pub fn parse_unsubscribe_error( }, "InvalidSecurityException" => crate::error::UnsubscribeError { meta: generic, - kind: crate::error::UnsubscribeErrorKind::InvalidSecurityError({ + kind: crate::error::UnsubscribeErrorKind::InvalidSecurityException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_security_error::Builder::default(); + let mut output = crate::error::invalid_security_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_security_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_security_exception_xml_err( response.body().as_ref(), output, ) @@ -3777,11 +3747,11 @@ pub fn parse_unsubscribe_error( }, "NotFoundException" => crate::error::UnsubscribeError { meta: generic, - kind: crate::error::UnsubscribeErrorKind::NotFoundError({ + kind: crate::error::UnsubscribeErrorKind::NotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::not_found_error::Builder::default(); + let mut output = crate::error::not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3818,11 +3788,11 @@ pub fn parse_untag_resource_error( Err(match error_code { "AuthorizationErrorException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::AuthorizationErrorError({ + kind: crate::error::UntagResourceErrorKind::AuthorizationErrorException({ #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); + let mut output = crate::error::authorization_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3832,11 +3802,11 @@ pub fn parse_untag_resource_error( }, "ConcurrentAccessException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ConcurrentAccessError({ + kind: crate::error::UntagResourceErrorKind::ConcurrentAccessException({ #[allow(unused_mut)] - let mut output = crate::error::concurrent_access_error::Builder::default(); + let mut output = crate::error::concurrent_access_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_concurrent_access_error_xml_err( + output = crate::xml_deser::deser_structure_concurrent_access_exception_xml_err( response.body().as_ref(), output, ) @@ -3846,11 +3816,11 @@ pub fn parse_untag_resource_error( }, "InvalidParameterException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::InvalidParameterError({ + kind: crate::error::UntagResourceErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3860,11 +3830,11 @@ pub fn parse_untag_resource_error( }, "ResourceNotFoundException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::ResourceNotFoundError({ + kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -3874,11 +3844,11 @@ pub fn parse_untag_resource_error( }, "StaleTagException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::StaleTagError({ + kind: crate::error::UntagResourceErrorKind::StaleTagException({ #[allow(unused_mut)] - let mut output = crate::error::stale_tag_error::Builder::default(); + let mut output = crate::error::stale_tag_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_stale_tag_error_xml_err( + output = crate::xml_deser::deser_structure_stale_tag_exception_xml_err( response.body().as_ref(), output, ) @@ -3888,11 +3858,11 @@ pub fn parse_untag_resource_error( }, "TagLimitExceededException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::TagLimitExceededError({ + kind: crate::error::UntagResourceErrorKind::TagLimitExceededException({ #[allow(unused_mut)] - let mut output = crate::error::tag_limit_exceeded_error::Builder::default(); + let mut output = crate::error::tag_limit_exceeded_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_limit_exceeded_error_xml_err( + output = crate::xml_deser::deser_structure_tag_limit_exceeded_exception_xml_err( response.body().as_ref(), output, ) @@ -3902,11 +3872,11 @@ pub fn parse_untag_resource_error( }, "TagPolicyException" => crate::error::UntagResourceError { meta: generic, - kind: crate::error::UntagResourceErrorKind::TagPolicyError({ + kind: crate::error::UntagResourceErrorKind::TagPolicyException({ #[allow(unused_mut)] - let mut output = crate::error::tag_policy_error::Builder::default(); + let mut output = crate::error::tag_policy_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_tag_policy_error_xml_err( + output = crate::xml_deser::deser_structure_tag_policy_exception_xml_err( response.body().as_ref(), output, ) @@ -3934,7 +3904,7 @@ pub fn parse_untag_resource_response( pub fn parse_verify_sms_sandbox_phone_number_error( response: &http::Response, ) -> std::result::Result< - crate::output::VerifySMSSandboxPhoneNumberOutput, + crate::output::VerifySmsSandboxPhoneNumberOutput, crate::error::VerifySMSSandboxPhoneNumberError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -3948,27 +3918,29 @@ pub fn parse_verify_sms_sandbox_phone_number_error( } }; Err(match error_code { - "AuthorizationErrorException" => crate::error::VerifySMSSandboxPhoneNumberError { - meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::authorization_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_authorization_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::VerifySMSSandboxPhoneNumberError::unhandled)?; - output.build() - }), - }, + "AuthorizationErrorException" => { + crate::error::VerifySMSSandboxPhoneNumberError { + meta: generic, + kind: + crate::error::VerifySMSSandboxPhoneNumberErrorKind::AuthorizationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::authorization_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_authorization_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::VerifySMSSandboxPhoneNumberError::unhandled)?; + output.build() + }, + ), + } + } "InternalErrorException" => crate::error::VerifySMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::InternalErrorError({ + kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::InternalErrorException({ #[allow(unused_mut)] - let mut output = crate::error::internal_error_error::Builder::default(); + let mut output = crate::error::internal_error_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_internal_error_error_xml_err( + output = crate::xml_deser::deser_structure_internal_error_exception_xml_err( response.body().as_ref(), output, ) @@ -3978,11 +3950,11 @@ pub fn parse_verify_sms_sandbox_phone_number_error( }, "InvalidParameterException" => crate::error::VerifySMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterError({ + kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::InvalidParameterException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_parameter_error::Builder::default(); + let mut output = crate::error::invalid_parameter_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_parameter_error_xml_err( + output = crate::xml_deser::deser_structure_invalid_parameter_exception_xml_err( response.body().as_ref(), output, ) @@ -3992,11 +3964,11 @@ pub fn parse_verify_sms_sandbox_phone_number_error( }, "ResourceNotFoundException" => crate::error::VerifySMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundError({ + kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] - let mut output = crate::error::resource_not_found_error::Builder::default(); + let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_resource_not_found_error_xml_err( + output = crate::xml_deser::deser_structure_resource_not_found_exception_xml_err( response.body().as_ref(), output, ) @@ -4006,11 +3978,11 @@ pub fn parse_verify_sms_sandbox_phone_number_error( }, "ThrottledException" => crate::error::VerifySMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::ThrottledError({ + kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::ThrottledException({ #[allow(unused_mut)] - let mut output = crate::error::throttled_error::Builder::default(); + let mut output = crate::error::throttled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_throttled_error_xml_err( + output = crate::xml_deser::deser_structure_throttled_exception_xml_err( response.body().as_ref(), output, ) @@ -4020,11 +3992,11 @@ pub fn parse_verify_sms_sandbox_phone_number_error( }, "VerificationException" => crate::error::VerifySMSSandboxPhoneNumberError { meta: generic, - kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::VerificationError({ + kind: crate::error::VerifySMSSandboxPhoneNumberErrorKind::VerificationException({ #[allow(unused_mut)] - let mut output = crate::error::verification_error::Builder::default(); + let mut output = crate::error::verification_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_verification_error_xml_err( + output = crate::xml_deser::deser_structure_verification_exception_xml_err( response.body().as_ref(), output, ) @@ -4040,7 +4012,7 @@ pub fn parse_verify_sms_sandbox_phone_number_error( pub fn parse_verify_sms_sandbox_phone_number_response( response: &http::Response, ) -> std::result::Result< - crate::output::VerifySMSSandboxPhoneNumberOutput, + crate::output::VerifySmsSandboxPhoneNumberOutput, crate::error::VerifySMSSandboxPhoneNumberError, > { Ok({ diff --git a/sdk/sns/src/operation_ser.rs b/sdk/sns/src/operation_ser.rs index a1f9226d0dfb..3d26e384ac06 100644 --- a/sdk/sns/src/operation_ser.rs +++ b/sdk/sns/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_permission( input: &crate::input::AddPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddPermission", "2010-03-31"); @@ -43,7 +43,7 @@ pub fn serialize_operation_add_permission( pub fn serialize_operation_check_if_phone_number_is_opted_out( input: &crate::input::CheckIfPhoneNumberIsOptedOutInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -59,7 +59,7 @@ pub fn serialize_operation_check_if_phone_number_is_opted_out( pub fn serialize_operation_confirm_subscription( input: &crate::input::ConfirmSubscriptionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ConfirmSubscription", "2010-03-31"); @@ -84,7 +84,7 @@ pub fn serialize_operation_confirm_subscription( pub fn serialize_operation_create_platform_application( input: &crate::input::CreatePlatformApplicationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -118,7 +118,7 @@ pub fn serialize_operation_create_platform_application( pub fn serialize_operation_create_platform_endpoint( input: &crate::input::CreatePlatformEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -156,8 +156,8 @@ pub fn serialize_operation_create_platform_endpoint( } pub fn serialize_operation_create_sms_sandbox_phone_number( - input: &crate::input::CreateSMSSandboxPhoneNumberInput, -) -> Result { + input: &crate::input::CreateSmsSandboxPhoneNumberInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -178,7 +178,7 @@ pub fn serialize_operation_create_sms_sandbox_phone_number( pub fn serialize_operation_create_topic( input: &crate::input::CreateTopicInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateTopic", "2010-03-31"); @@ -217,7 +217,7 @@ pub fn serialize_operation_create_topic( pub fn serialize_operation_delete_endpoint( input: &crate::input::DeleteEndpointInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteEndpoint", "2010-03-31"); @@ -232,7 +232,7 @@ pub fn serialize_operation_delete_endpoint( pub fn serialize_operation_delete_platform_application( input: &crate::input::DeletePlatformApplicationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -247,8 +247,8 @@ pub fn serialize_operation_delete_platform_application( } pub fn serialize_operation_delete_sms_sandbox_phone_number( - input: &crate::input::DeleteSMSSandboxPhoneNumberInput, -) -> Result { + input: &crate::input::DeleteSmsSandboxPhoneNumberInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -264,7 +264,7 @@ pub fn serialize_operation_delete_sms_sandbox_phone_number( pub fn serialize_operation_delete_topic( input: &crate::input::DeleteTopicInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteTopic", "2010-03-31"); @@ -279,7 +279,7 @@ pub fn serialize_operation_delete_topic( pub fn serialize_operation_get_endpoint_attributes( input: &crate::input::GetEndpointAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -295,7 +295,7 @@ pub fn serialize_operation_get_endpoint_attributes( pub fn serialize_operation_get_platform_application_attributes( input: &crate::input::GetPlatformApplicationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -310,8 +310,8 @@ pub fn serialize_operation_get_platform_application_attributes( } pub fn serialize_operation_get_sms_attributes( - input: &crate::input::GetSMSAttributesInput, -) -> Result { + input: &crate::input::GetSmsAttributesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetSMSAttributes", "2010-03-31"); @@ -331,8 +331,8 @@ pub fn serialize_operation_get_sms_attributes( } pub fn serialize_operation_get_sms_sandbox_account_status( - input: &crate::input::GetSMSSandboxAccountStatusInput, -) -> Result { + input: &crate::input::GetSmsSandboxAccountStatusInput, +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -344,7 +344,7 @@ pub fn serialize_operation_get_sms_sandbox_account_status( pub fn serialize_operation_get_subscription_attributes( input: &crate::input::GetSubscriptionAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -360,7 +360,7 @@ pub fn serialize_operation_get_subscription_attributes( pub fn serialize_operation_get_topic_attributes( input: &crate::input::GetTopicAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetTopicAttributes", "2010-03-31"); @@ -375,7 +375,7 @@ pub fn serialize_operation_get_topic_attributes( pub fn serialize_operation_list_endpoints_by_platform_application( input: &crate::input::ListEndpointsByPlatformApplicationInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new( @@ -399,7 +399,7 @@ pub fn serialize_operation_list_endpoints_by_platform_application( pub fn serialize_operation_list_origination_numbers( input: &crate::input::ListOriginationNumbersInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -423,7 +423,7 @@ pub fn serialize_operation_list_origination_numbers( pub fn serialize_operation_list_phone_numbers_opted_out( input: &crate::input::ListPhoneNumbersOptedOutInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -439,7 +439,7 @@ pub fn serialize_operation_list_phone_numbers_opted_out( pub fn serialize_operation_list_platform_applications( input: &crate::input::ListPlatformApplicationsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -454,8 +454,8 @@ pub fn serialize_operation_list_platform_applications( } pub fn serialize_operation_list_sms_sandbox_phone_numbers( - input: &crate::input::ListSMSSandboxPhoneNumbersInput, -) -> Result { + input: &crate::input::ListSmsSandboxPhoneNumbersInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -479,7 +479,7 @@ pub fn serialize_operation_list_sms_sandbox_phone_numbers( pub fn serialize_operation_list_subscriptions( input: &crate::input::ListSubscriptionsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListSubscriptions", "2010-03-31"); @@ -494,7 +494,7 @@ pub fn serialize_operation_list_subscriptions( pub fn serialize_operation_list_subscriptions_by_topic( input: &crate::input::ListSubscriptionsByTopicInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -515,7 +515,7 @@ pub fn serialize_operation_list_subscriptions_by_topic( pub fn serialize_operation_list_tags_for_resource( input: &crate::input::ListTagsForResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTagsForResource", "2010-03-31"); @@ -530,7 +530,7 @@ pub fn serialize_operation_list_tags_for_resource( pub fn serialize_operation_list_topics( input: &crate::input::ListTopicsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListTopics", "2010-03-31"); @@ -545,7 +545,7 @@ pub fn serialize_operation_list_topics( pub fn serialize_operation_opt_in_phone_number( input: &crate::input::OptInPhoneNumberInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "OptInPhoneNumber", "2010-03-31"); @@ -560,7 +560,7 @@ pub fn serialize_operation_opt_in_phone_number( pub fn serialize_operation_publish( input: &crate::input::PublishInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "Publish", "2010-03-31"); @@ -623,7 +623,7 @@ pub fn serialize_operation_publish( pub fn serialize_operation_remove_permission( input: &crate::input::RemovePermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RemovePermission", "2010-03-31"); @@ -643,7 +643,7 @@ pub fn serialize_operation_remove_permission( pub fn serialize_operation_set_endpoint_attributes( input: &crate::input::SetEndpointAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -672,7 +672,7 @@ pub fn serialize_operation_set_endpoint_attributes( pub fn serialize_operation_set_platform_application_attributes( input: &crate::input::SetPlatformApplicationAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -700,8 +700,8 @@ pub fn serialize_operation_set_platform_application_attributes( } pub fn serialize_operation_set_sms_attributes( - input: &crate::input::SetSMSAttributesInput, -) -> Result { + input: &crate::input::SetSmsAttributesInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SetSMSAttributes", "2010-03-31"); @@ -724,7 +724,7 @@ pub fn serialize_operation_set_sms_attributes( pub fn serialize_operation_set_subscription_attributes( input: &crate::input::SetSubscriptionAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -750,7 +750,7 @@ pub fn serialize_operation_set_subscription_attributes( pub fn serialize_operation_set_topic_attributes( input: &crate::input::SetTopicAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SetTopicAttributes", "2010-03-31"); @@ -775,7 +775,7 @@ pub fn serialize_operation_set_topic_attributes( pub fn serialize_operation_subscribe( input: &crate::input::SubscribeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "Subscribe", "2010-03-31"); @@ -818,7 +818,7 @@ pub fn serialize_operation_subscribe( pub fn serialize_operation_tag_resource( input: &crate::input::TagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagResource", "2010-03-31"); @@ -844,7 +844,7 @@ pub fn serialize_operation_tag_resource( pub fn serialize_operation_unsubscribe( input: &crate::input::UnsubscribeInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "Unsubscribe", "2010-03-31"); @@ -859,7 +859,7 @@ pub fn serialize_operation_unsubscribe( pub fn serialize_operation_untag_resource( input: &crate::input::UntagResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagResource", "2010-03-31"); @@ -884,8 +884,8 @@ pub fn serialize_operation_untag_resource( } pub fn serialize_operation_verify_sms_sandbox_phone_number( - input: &crate::input::VerifySMSSandboxPhoneNumberInput, -) -> Result { + input: &crate::input::VerifySmsSandboxPhoneNumberInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = diff --git a/sdk/sns/src/output.rs b/sdk/sns/src/output.rs index e9ee6308cbba..720e52a835bb 100644 --- a/sdk/sns/src/output.rs +++ b/sdk/sns/src/output.rs @@ -2,28 +2,28 @@ ///

    The destination phone number's verification status.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct VerifySMSSandboxPhoneNumberOutput {} -impl std::fmt::Debug for VerifySMSSandboxPhoneNumberOutput { +pub struct VerifySmsSandboxPhoneNumberOutput {} +impl std::fmt::Debug for VerifySmsSandboxPhoneNumberOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("VerifySMSSandboxPhoneNumberOutput"); + let mut formatter = f.debug_struct("VerifySmsSandboxPhoneNumberOutput"); formatter.finish() } } -/// See [`VerifySMSSandboxPhoneNumberOutput`](crate::output::VerifySMSSandboxPhoneNumberOutput) +/// See [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput) pub mod verify_sms_sandbox_phone_number_output { - /// A builder for [`VerifySMSSandboxPhoneNumberOutput`](crate::output::VerifySMSSandboxPhoneNumberOutput) + /// A builder for [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`VerifySMSSandboxPhoneNumberOutput`](crate::output::VerifySMSSandboxPhoneNumberOutput) - pub fn build(self) -> crate::output::VerifySMSSandboxPhoneNumberOutput { - crate::output::VerifySMSSandboxPhoneNumberOutput {} + /// Consumes the builder and constructs a [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput) + pub fn build(self) -> crate::output::VerifySmsSandboxPhoneNumberOutput { + crate::output::VerifySmsSandboxPhoneNumberOutput {} } } } -impl VerifySMSSandboxPhoneNumberOutput { - /// Creates a new builder-style object to manufacture [`VerifySMSSandboxPhoneNumberOutput`](crate::output::VerifySMSSandboxPhoneNumberOutput) +impl VerifySmsSandboxPhoneNumberOutput { + /// Creates a new builder-style object to manufacture [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput) pub fn builder() -> crate::output::verify_sms_sandbox_phone_number_output::Builder { crate::output::verify_sms_sandbox_phone_number_output::Builder::default() } @@ -233,28 +233,28 @@ impl SetSubscriptionAttributesOutput { ///

    The response for the SetSMSAttributes action.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SetSMSAttributesOutput {} -impl std::fmt::Debug for SetSMSAttributesOutput { +pub struct SetSmsAttributesOutput {} +impl std::fmt::Debug for SetSmsAttributesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SetSMSAttributesOutput"); + let mut formatter = f.debug_struct("SetSmsAttributesOutput"); formatter.finish() } } -/// See [`SetSMSAttributesOutput`](crate::output::SetSMSAttributesOutput) +/// See [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput) pub mod set_sms_attributes_output { - /// A builder for [`SetSMSAttributesOutput`](crate::output::SetSMSAttributesOutput) + /// A builder for [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`SetSMSAttributesOutput`](crate::output::SetSMSAttributesOutput) - pub fn build(self) -> crate::output::SetSMSAttributesOutput { - crate::output::SetSMSAttributesOutput {} + /// Consumes the builder and constructs a [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput) + pub fn build(self) -> crate::output::SetSmsAttributesOutput { + crate::output::SetSmsAttributesOutput {} } } } -impl SetSMSAttributesOutput { - /// Creates a new builder-style object to manufacture [`SetSMSAttributesOutput`](crate::output::SetSMSAttributesOutput) +impl SetSmsAttributesOutput { + /// Creates a new builder-style object to manufacture [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput) pub fn builder() -> crate::output::set_sms_attributes_output::Builder { crate::output::set_sms_attributes_output::Builder::default() } @@ -702,36 +702,36 @@ impl ListSubscriptionsOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListSMSSandboxPhoneNumbersOutput { +pub struct ListSmsSandboxPhoneNumbersOutput { ///

    A list of the calling account's pending and verified phone numbers.

    - pub phone_numbers: std::option::Option>, + pub phone_numbers: std::option::Option>, ///

    A NextToken string is returned when you call the /// ListSMSSandboxPhoneNumbersInput operation if additional pages of /// records are available.

    pub next_token: std::option::Option, } -impl std::fmt::Debug for ListSMSSandboxPhoneNumbersOutput { +impl std::fmt::Debug for ListSmsSandboxPhoneNumbersOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListSMSSandboxPhoneNumbersOutput"); + let mut formatter = f.debug_struct("ListSmsSandboxPhoneNumbersOutput"); formatter.field("phone_numbers", &self.phone_numbers); formatter.field("next_token", &self.next_token); formatter.finish() } } -/// See [`ListSMSSandboxPhoneNumbersOutput`](crate::output::ListSMSSandboxPhoneNumbersOutput) +/// See [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput) pub mod list_sms_sandbox_phone_numbers_output { - /// A builder for [`ListSMSSandboxPhoneNumbersOutput`](crate::output::ListSMSSandboxPhoneNumbersOutput) + /// A builder for [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { pub(crate) phone_numbers: - std::option::Option>, + std::option::Option>, pub(crate) next_token: std::option::Option, } impl Builder { pub fn phone_numbers( mut self, - input: impl Into, + input: impl Into, ) -> Self { let mut v = self.phone_numbers.unwrap_or_default(); v.push(input.into()); @@ -740,7 +740,7 @@ pub mod list_sms_sandbox_phone_numbers_output { } pub fn set_phone_numbers( mut self, - input: std::option::Option>, + input: std::option::Option>, ) -> Self { self.phone_numbers = input; self @@ -756,17 +756,17 @@ pub mod list_sms_sandbox_phone_numbers_output { self.next_token = input; self } - /// Consumes the builder and constructs a [`ListSMSSandboxPhoneNumbersOutput`](crate::output::ListSMSSandboxPhoneNumbersOutput) - pub fn build(self) -> crate::output::ListSMSSandboxPhoneNumbersOutput { - crate::output::ListSMSSandboxPhoneNumbersOutput { + /// Consumes the builder and constructs a [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput) + pub fn build(self) -> crate::output::ListSmsSandboxPhoneNumbersOutput { + crate::output::ListSmsSandboxPhoneNumbersOutput { phone_numbers: self.phone_numbers, next_token: self.next_token, } } } } -impl ListSMSSandboxPhoneNumbersOutput { - /// Creates a new builder-style object to manufacture [`ListSMSSandboxPhoneNumbersOutput`](crate::output::ListSMSSandboxPhoneNumbersOutput) +impl ListSmsSandboxPhoneNumbersOutput { + /// Creates a new builder-style object to manufacture [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput) pub fn builder() -> crate::output::list_sms_sandbox_phone_numbers_output::Builder { crate::output::list_sms_sandbox_phone_numbers_output::Builder::default() } @@ -1336,20 +1336,20 @@ impl GetSubscriptionAttributesOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSMSSandboxAccountStatusOutput { +pub struct GetSmsSandboxAccountStatusOutput { ///

    Indicates whether the calling account is in the SMS sandbox.

    pub is_in_sandbox: bool, } -impl std::fmt::Debug for GetSMSSandboxAccountStatusOutput { +impl std::fmt::Debug for GetSmsSandboxAccountStatusOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSMSSandboxAccountStatusOutput"); + let mut formatter = f.debug_struct("GetSmsSandboxAccountStatusOutput"); formatter.field("is_in_sandbox", &self.is_in_sandbox); formatter.finish() } } -/// See [`GetSMSSandboxAccountStatusOutput`](crate::output::GetSMSSandboxAccountStatusOutput) +/// See [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput) pub mod get_sms_sandbox_account_status_output { - /// A builder for [`GetSMSSandboxAccountStatusOutput`](crate::output::GetSMSSandboxAccountStatusOutput) + /// A builder for [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1365,16 +1365,16 @@ pub mod get_sms_sandbox_account_status_output { self.is_in_sandbox = input; self } - /// Consumes the builder and constructs a [`GetSMSSandboxAccountStatusOutput`](crate::output::GetSMSSandboxAccountStatusOutput) - pub fn build(self) -> crate::output::GetSMSSandboxAccountStatusOutput { - crate::output::GetSMSSandboxAccountStatusOutput { + /// Consumes the builder and constructs a [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput) + pub fn build(self) -> crate::output::GetSmsSandboxAccountStatusOutput { + crate::output::GetSmsSandboxAccountStatusOutput { is_in_sandbox: self.is_in_sandbox.unwrap_or_default(), } } } } -impl GetSMSSandboxAccountStatusOutput { - /// Creates a new builder-style object to manufacture [`GetSMSSandboxAccountStatusOutput`](crate::output::GetSMSSandboxAccountStatusOutput) +impl GetSmsSandboxAccountStatusOutput { + /// Creates a new builder-style object to manufacture [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput) pub fn builder() -> crate::output::get_sms_sandbox_account_status_output::Builder { crate::output::get_sms_sandbox_account_status_output::Builder::default() } @@ -1383,21 +1383,21 @@ impl GetSMSSandboxAccountStatusOutput { ///

    The response from the GetSMSAttributes request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetSMSAttributesOutput { +pub struct GetSmsAttributesOutput { ///

    The SMS attribute names and their values.

    pub attributes: std::option::Option>, } -impl std::fmt::Debug for GetSMSAttributesOutput { +impl std::fmt::Debug for GetSmsAttributesOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetSMSAttributesOutput"); + let mut formatter = f.debug_struct("GetSmsAttributesOutput"); formatter.field("attributes", &self.attributes); formatter.finish() } } -/// See [`GetSMSAttributesOutput`](crate::output::GetSMSAttributesOutput) +/// See [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput) pub mod get_sms_attributes_output { - /// A builder for [`GetSMSAttributesOutput`](crate::output::GetSMSAttributesOutput) + /// A builder for [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1425,16 +1425,16 @@ pub mod get_sms_attributes_output { self.attributes = input; self } - /// Consumes the builder and constructs a [`GetSMSAttributesOutput`](crate::output::GetSMSAttributesOutput) - pub fn build(self) -> crate::output::GetSMSAttributesOutput { - crate::output::GetSMSAttributesOutput { + /// Consumes the builder and constructs a [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput) + pub fn build(self) -> crate::output::GetSmsAttributesOutput { + crate::output::GetSmsAttributesOutput { attributes: self.attributes, } } } } -impl GetSMSAttributesOutput { - /// Creates a new builder-style object to manufacture [`GetSMSAttributesOutput`](crate::output::GetSMSAttributesOutput) +impl GetSmsAttributesOutput { + /// Creates a new builder-style object to manufacture [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput) pub fn builder() -> crate::output::get_sms_attributes_output::Builder { crate::output::get_sms_attributes_output::Builder::default() } @@ -1639,28 +1639,28 @@ impl DeleteTopicOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteSMSSandboxPhoneNumberOutput {} -impl std::fmt::Debug for DeleteSMSSandboxPhoneNumberOutput { +pub struct DeleteSmsSandboxPhoneNumberOutput {} +impl std::fmt::Debug for DeleteSmsSandboxPhoneNumberOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteSMSSandboxPhoneNumberOutput"); + let mut formatter = f.debug_struct("DeleteSmsSandboxPhoneNumberOutput"); formatter.finish() } } -/// See [`DeleteSMSSandboxPhoneNumberOutput`](crate::output::DeleteSMSSandboxPhoneNumberOutput) +/// See [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput) pub mod delete_sms_sandbox_phone_number_output { - /// A builder for [`DeleteSMSSandboxPhoneNumberOutput`](crate::output::DeleteSMSSandboxPhoneNumberOutput) + /// A builder for [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`DeleteSMSSandboxPhoneNumberOutput`](crate::output::DeleteSMSSandboxPhoneNumberOutput) - pub fn build(self) -> crate::output::DeleteSMSSandboxPhoneNumberOutput { - crate::output::DeleteSMSSandboxPhoneNumberOutput {} + /// Consumes the builder and constructs a [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput) + pub fn build(self) -> crate::output::DeleteSmsSandboxPhoneNumberOutput { + crate::output::DeleteSmsSandboxPhoneNumberOutput {} } } } -impl DeleteSMSSandboxPhoneNumberOutput { - /// Creates a new builder-style object to manufacture [`DeleteSMSSandboxPhoneNumberOutput`](crate::output::DeleteSMSSandboxPhoneNumberOutput) +impl DeleteSmsSandboxPhoneNumberOutput { + /// Creates a new builder-style object to manufacture [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput) pub fn builder() -> crate::output::delete_sms_sandbox_phone_number_output::Builder { crate::output::delete_sms_sandbox_phone_number_output::Builder::default() } @@ -1773,28 +1773,28 @@ impl CreateTopicOutput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateSMSSandboxPhoneNumberOutput {} -impl std::fmt::Debug for CreateSMSSandboxPhoneNumberOutput { +pub struct CreateSmsSandboxPhoneNumberOutput {} +impl std::fmt::Debug for CreateSmsSandboxPhoneNumberOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateSMSSandboxPhoneNumberOutput"); + let mut formatter = f.debug_struct("CreateSmsSandboxPhoneNumberOutput"); formatter.finish() } } -/// See [`CreateSMSSandboxPhoneNumberOutput`](crate::output::CreateSMSSandboxPhoneNumberOutput) +/// See [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput) pub mod create_sms_sandbox_phone_number_output { - /// A builder for [`CreateSMSSandboxPhoneNumberOutput`](crate::output::CreateSMSSandboxPhoneNumberOutput) + /// A builder for [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder {} impl Builder { - /// Consumes the builder and constructs a [`CreateSMSSandboxPhoneNumberOutput`](crate::output::CreateSMSSandboxPhoneNumberOutput) - pub fn build(self) -> crate::output::CreateSMSSandboxPhoneNumberOutput { - crate::output::CreateSMSSandboxPhoneNumberOutput {} + /// Consumes the builder and constructs a [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput) + pub fn build(self) -> crate::output::CreateSmsSandboxPhoneNumberOutput { + crate::output::CreateSmsSandboxPhoneNumberOutput {} } } } -impl CreateSMSSandboxPhoneNumberOutput { - /// Creates a new builder-style object to manufacture [`CreateSMSSandboxPhoneNumberOutput`](crate::output::CreateSMSSandboxPhoneNumberOutput) +impl CreateSmsSandboxPhoneNumberOutput { + /// Creates a new builder-style object to manufacture [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput) pub fn builder() -> crate::output::create_sms_sandbox_phone_number_output::Builder { crate::output::create_sms_sandbox_phone_number_output::Builder::default() } diff --git a/sdk/sns/src/xml_deser.rs b/sdk/sns/src/xml_deser.rs index 99141e065b78..9b75bd8df84f 100644 --- a/sdk/sns/src/xml_deser.rs +++ b/sdk/sns/src/xml_deser.rs @@ -6,10 +6,10 @@ pub fn parse_generic_error( } #[allow(unused_mut)] -pub fn deser_structure_authorization_error_error_xml_err( +pub fn deser_structure_authorization_error_exception_xml_err( inp: &[u8], - mut builder: crate::error::authorization_error_error::Builder, -) -> Result { + mut builder: crate::error::authorization_error_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -36,10 +36,10 @@ pub fn deser_structure_authorization_error_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_internal_error_error_xml_err( +pub fn deser_structure_internal_error_exception_xml_err( inp: &[u8], - mut builder: crate::error::internal_error_error::Builder, -) -> Result { + mut builder: crate::error::internal_error_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -66,10 +66,10 @@ pub fn deser_structure_internal_error_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_parameter_error_xml_err( +pub fn deser_structure_invalid_parameter_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_parameter_error::Builder, -) -> Result { + mut builder: crate::error::invalid_parameter_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -96,10 +96,10 @@ pub fn deser_structure_invalid_parameter_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_not_found_error_xml_err( +pub fn deser_structure_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::not_found_error::Builder, -) -> Result { + mut builder: crate::error::not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -126,10 +126,10 @@ pub fn deser_structure_not_found_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_throttled_error_xml_err( +pub fn deser_structure_throttled_exception_xml_err( inp: &[u8], - mut builder: crate::error::throttled_error::Builder, -) -> Result { + mut builder: crate::error::throttled_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -213,11 +213,13 @@ pub fn deser_operation_check_if_phone_number_is_opted_out( } #[allow(unused_mut)] -pub fn deser_structure_filter_policy_limit_exceeded_error_xml_err( +pub fn deser_structure_filter_policy_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::filter_policy_limit_exceeded_error::Builder, -) -> Result -{ + mut builder: crate::error::filter_policy_limit_exceeded_exception::Builder, +) -> Result< + crate::error::filter_policy_limit_exceeded_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -244,11 +246,13 @@ pub fn deser_structure_filter_policy_limit_exceeded_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_subscription_limit_exceeded_error_xml_err( +pub fn deser_structure_subscription_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::subscription_limit_exceeded_error::Builder, -) -> Result -{ + mut builder: crate::error::subscription_limit_exceeded_exception::Builder, +) -> Result< + crate::error::subscription_limit_exceeded_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -429,10 +433,10 @@ pub fn deser_operation_create_platform_endpoint( } #[allow(unused_mut)] -pub fn deser_structure_opted_out_error_xml_err( +pub fn deser_structure_opted_out_exception_xml_err( inp: &[u8], - mut builder: crate::error::opted_out_error::Builder, -) -> Result { + mut builder: crate::error::opted_out_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -459,10 +463,10 @@ pub fn deser_structure_opted_out_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_user_error_error_xml_err( +pub fn deser_structure_user_error_exception_xml_err( inp: &[u8], - mut builder: crate::error::user_error_error::Builder, -) -> Result { + mut builder: crate::error::user_error_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -489,10 +493,10 @@ pub fn deser_structure_user_error_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_concurrent_access_error_xml_err( +pub fn deser_structure_concurrent_access_exception_xml_err( inp: &[u8], - mut builder: crate::error::concurrent_access_error::Builder, -) -> Result { + mut builder: crate::error::concurrent_access_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -519,10 +523,10 @@ pub fn deser_structure_concurrent_access_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_security_error_xml_err( +pub fn deser_structure_invalid_security_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_security_error::Builder, -) -> Result { + mut builder: crate::error::invalid_security_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -549,10 +553,10 @@ pub fn deser_structure_invalid_security_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_stale_tag_error_xml_err( +pub fn deser_structure_stale_tag_exception_xml_err( inp: &[u8], - mut builder: crate::error::stale_tag_error::Builder, -) -> Result { + mut builder: crate::error::stale_tag_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -579,10 +583,10 @@ pub fn deser_structure_stale_tag_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_tag_limit_exceeded_error_xml_err( +pub fn deser_structure_tag_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::tag_limit_exceeded_error::Builder, -) -> Result { + mut builder: crate::error::tag_limit_exceeded_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -609,10 +613,10 @@ pub fn deser_structure_tag_limit_exceeded_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_tag_policy_error_xml_err( +pub fn deser_structure_tag_policy_exception_xml_err( inp: &[u8], - mut builder: crate::error::tag_policy_error::Builder, -) -> Result { + mut builder: crate::error::tag_policy_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -639,10 +643,10 @@ pub fn deser_structure_tag_policy_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_topic_limit_exceeded_error_xml_err( +pub fn deser_structure_topic_limit_exceeded_exception_xml_err( inp: &[u8], - mut builder: crate::error::topic_limit_exceeded_error::Builder, -) -> Result { + mut builder: crate::error::topic_limit_exceeded_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -720,10 +724,10 @@ pub fn deser_operation_create_topic( } #[allow(unused_mut)] -pub fn deser_structure_resource_not_found_error_xml_err( +pub fn deser_structure_resource_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::resource_not_found_error::Builder, -) -> Result { + mut builder: crate::error::resource_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1115,10 +1119,10 @@ pub fn deser_operation_list_endpoints_by_platform_application( } #[allow(unused_mut)] -pub fn deser_structure_validation_error_xml_err( +pub fn deser_structure_validation_exception_xml_err( inp: &[u8], - mut builder: crate::error::validation_error::Builder, -) -> Result { + mut builder: crate::error::validation_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1626,10 +1630,10 @@ pub fn deser_operation_list_topics( } #[allow(unused_mut)] -pub fn deser_structure_endpoint_disabled_error_xml_err( +pub fn deser_structure_endpoint_disabled_exception_xml_err( inp: &[u8], - mut builder: crate::error::endpoint_disabled_error::Builder, -) -> Result { + mut builder: crate::error::endpoint_disabled_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1656,10 +1660,11 @@ pub fn deser_structure_endpoint_disabled_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_parameter_value_error_xml_err( +pub fn deser_structure_invalid_parameter_value_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_parameter_value_error::Builder, -) -> Result { + mut builder: crate::error::invalid_parameter_value_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1686,10 +1691,10 @@ pub fn deser_structure_invalid_parameter_value_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_kms_access_denied_error_xml_err( +pub fn deser_structure_kms_access_denied_exception_xml_err( inp: &[u8], - mut builder: crate::error::kms_access_denied_error::Builder, -) -> Result { + mut builder: crate::error::kms_access_denied_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1716,10 +1721,10 @@ pub fn deser_structure_kms_access_denied_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_kms_disabled_error_xml_err( +pub fn deser_structure_kms_disabled_exception_xml_err( inp: &[u8], - mut builder: crate::error::kms_disabled_error::Builder, -) -> Result { + mut builder: crate::error::kms_disabled_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1746,10 +1751,10 @@ pub fn deser_structure_kms_disabled_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_kms_invalid_state_error_xml_err( +pub fn deser_structure_kms_invalid_state_exception_xml_err( inp: &[u8], - mut builder: crate::error::kms_invalid_state_error::Builder, -) -> Result { + mut builder: crate::error::kms_invalid_state_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1776,10 +1781,10 @@ pub fn deser_structure_kms_invalid_state_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_kms_not_found_error_xml_err( +pub fn deser_structure_kms_not_found_exception_xml_err( inp: &[u8], - mut builder: crate::error::kms_not_found_error::Builder, -) -> Result { + mut builder: crate::error::kms_not_found_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1836,10 +1841,10 @@ pub fn deser_structure_kms_opt_in_required_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_kms_throttling_error_xml_err( +pub fn deser_structure_kms_throttling_exception_xml_err( inp: &[u8], - mut builder: crate::error::kms_throttling_error::Builder, -) -> Result { + mut builder: crate::error::kms_throttling_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -1866,11 +1871,13 @@ pub fn deser_structure_kms_throttling_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_platform_application_disabled_error_xml_err( +pub fn deser_structure_platform_application_disabled_exception_xml_err( inp: &[u8], - mut builder: crate::error::platform_application_disabled_error::Builder, -) -> Result -{ + mut builder: crate::error::platform_application_disabled_exception::Builder, +) -> Result< + crate::error::platform_application_disabled_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -2012,10 +2019,10 @@ pub fn deser_operation_subscribe( } #[allow(unused_mut)] -pub fn deser_structure_verification_error_xml_err( +pub fn deser_structure_verification_exception_xml_err( inp: &[u8], - mut builder: crate::error::verification_error::Builder, -) -> Result { + mut builder: crate::error::verification_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -2189,7 +2196,7 @@ pub fn deser_list_list_of_platform_applications( pub fn deser_list_sms_sandbox_phone_number_list( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result, smithy_xml::decode::XmlError> { +) -> Result, smithy_xml::decode::XmlError> { let mut out = std::vec::Vec::new(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { @@ -2538,9 +2545,9 @@ pub fn deser_structure_platform_application( pub fn deser_structure_sms_sandbox_phone_number( decoder: &mut smithy_xml::decode::ScopedDecoder, -) -> Result { +) -> Result { #[allow(unused_mut)] - let mut builder = crate::model::SMSSandboxPhoneNumber::builder(); + let mut builder = crate::model::SmsSandboxPhoneNumber::builder(); while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("PhoneNumber") /* PhoneNumber com.amazonaws.sns#SMSSandboxPhoneNumber$PhoneNumber */ => { diff --git a/sdk/sqs/Cargo.toml b/sdk/sqs/Cargo.toml index b05b183c4d5f..0539117f7a8b 100644 --- a/sdk/sqs/Cargo.toml +++ b/sdk/sqs/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sqs" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "

    Welcome to the Amazon Simple Queue Service API Reference.

    \n

    Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.

    \n

    For information on the permissions you need to use this API, see\n Identity and\n access management in the Amazon Simple Queue Service Developer Guide.\n

    \n

    You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:

    \n
      \n
    • \n

      Cryptographically sign your service requests

      \n
    • \n
    • \n

      Retry requests

      \n
    • \n
    • \n

      Handle error responses

      \n
    • \n
    \n \n

    \n Additional information\n

    \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -26,14 +26,8 @@ path = "..//aws-http" path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/sqs/src/input.rs b/sdk/sqs/src/input.rs index 0de39c13e536..2477cb10b934 100644 --- a/sdk/sqs/src/input.rs +++ b/sdk/sqs/src/input.rs @@ -134,8 +134,9 @@ impl AddPermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -143,7 +144,7 @@ impl AddPermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -292,8 +293,9 @@ impl ChangeMessageVisibilityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -301,7 +303,7 @@ impl ChangeMessageVisibilityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -446,8 +448,9 @@ impl ChangeMessageVisibilityBatchInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -455,7 +458,7 @@ impl ChangeMessageVisibilityBatchInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -628,8 +631,9 @@ impl CreateQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -637,7 +641,7 @@ impl CreateQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -770,8 +774,9 @@ impl DeleteMessageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -779,7 +784,7 @@ impl DeleteMessageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -919,8 +924,9 @@ impl DeleteMessageBatchInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -928,7 +934,7 @@ impl DeleteMessageBatchInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1044,8 +1050,9 @@ impl DeleteQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1053,7 +1060,7 @@ impl DeleteQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1193,8 +1200,9 @@ impl GetQueueAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1202,7 +1210,7 @@ impl GetQueueAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1332,8 +1340,9 @@ impl GetQueueUrlInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1341,7 +1350,7 @@ impl GetQueueUrlInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1487,8 +1496,9 @@ impl ListDeadLetterSourceQueuesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1496,7 +1506,7 @@ impl ListDeadLetterSourceQueuesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1638,8 +1648,9 @@ impl ListQueuesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1647,7 +1658,7 @@ impl ListQueuesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1764,8 +1775,9 @@ impl ListQueueTagsInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1773,7 +1785,7 @@ impl ListQueueTagsInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1889,8 +1901,9 @@ impl PurgeQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1898,7 +1911,7 @@ impl PurgeQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2149,8 +2162,9 @@ impl ReceiveMessageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2158,7 +2172,7 @@ impl ReceiveMessageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2291,8 +2305,9 @@ impl RemovePermissionInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2300,7 +2315,7 @@ impl RemovePermissionInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2602,8 +2617,9 @@ impl SendMessageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2611,7 +2627,7 @@ impl SendMessageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2751,8 +2767,9 @@ impl SendMessageBatchInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2760,7 +2777,7 @@ impl SendMessageBatchInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -2904,8 +2921,9 @@ impl SetQueueAttributesInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -2913,7 +2931,7 @@ impl SetQueueAttributesInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3049,8 +3067,9 @@ impl TagQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3058,7 +3077,7 @@ impl TagQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -3188,8 +3207,9 @@ impl UntagQueueInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -3197,7 +3217,7 @@ impl UntagQueueInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] diff --git a/sdk/sqs/src/lib.rs b/sdk/sqs/src/lib.rs index ab1992b3deda..734aeceb5302 100644 --- a/sdk/sqs/src/lib.rs +++ b/sdk/sqs/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //!

    Welcome to the Amazon Simple Queue Service API Reference.

    //!

    Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.

    //!

    For information on the permissions you need to use this API, see diff --git a/sdk/sqs/src/model.rs b/sdk/sqs/src/model.rs index a2b09ed04fd1..d04a3e9b29d1 100644 --- a/sdk/sqs/src/model.rs +++ b/sdk/sqs/src/model.rs @@ -67,7 +67,7 @@ impl std::convert::From<&str> for QueueAttributeName { impl std::str::FromStr for QueueAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(QueueAttributeName::from(s)) } } @@ -107,15 +107,6 @@ impl AsRef for QueueAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for QueueAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Gives a detailed description of the result of an action on each entry in the /// request.

    @@ -839,7 +830,7 @@ impl std::convert::From<&str> for MessageSystemAttributeNameForSends { impl std::str::FromStr for MessageSystemAttributeNameForSends { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MessageSystemAttributeNameForSends::from(s)) } } @@ -856,15 +847,6 @@ impl AsRef for MessageSystemAttributeNameForSends { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MessageSystemAttributeNameForSends { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The user-specified message attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see /// SendMessage. @@ -1239,7 +1221,7 @@ impl std::convert::From<&str> for MessageSystemAttributeName { impl std::str::FromStr for MessageSystemAttributeName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MessageSystemAttributeName::from(s)) } } @@ -1265,15 +1247,6 @@ impl AsRef for MessageSystemAttributeName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MessageSystemAttributeName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Encloses the Id of an entry in /// DeleteMessageBatch. diff --git a/sdk/sqs/src/operation_ser.rs b/sdk/sqs/src/operation_ser.rs index c6a8d816dea2..5c8a9ba28332 100644 --- a/sdk/sqs/src/operation_ser.rs +++ b/sdk/sqs/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_permission( input: &crate::input::AddPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AddPermission", "2012-11-05"); @@ -43,7 +43,7 @@ pub fn serialize_operation_add_permission( pub fn serialize_operation_change_message_visibility( input: &crate::input::ChangeMessageVisibilityInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -72,7 +72,7 @@ pub fn serialize_operation_change_message_visibility( pub fn serialize_operation_change_message_visibility_batch( input: &crate::input::ChangeMessageVisibilityBatchInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -101,7 +101,7 @@ pub fn serialize_operation_change_message_visibility_batch( pub fn serialize_operation_create_queue( input: &crate::input::CreateQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "CreateQueue", "2012-11-05"); @@ -142,7 +142,7 @@ pub fn serialize_operation_create_queue( pub fn serialize_operation_delete_message( input: &crate::input::DeleteMessageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteMessage", "2012-11-05"); @@ -162,7 +162,7 @@ pub fn serialize_operation_delete_message( pub fn serialize_operation_delete_message_batch( input: &crate::input::DeleteMessageBatchInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteMessageBatch", "2012-11-05"); @@ -190,7 +190,7 @@ pub fn serialize_operation_delete_message_batch( pub fn serialize_operation_delete_queue( input: &crate::input::DeleteQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "DeleteQueue", "2012-11-05"); @@ -205,7 +205,7 @@ pub fn serialize_operation_delete_queue( pub fn serialize_operation_get_queue_attributes( input: &crate::input::GetQueueAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetQueueAttributes", "2012-11-05"); @@ -231,7 +231,7 @@ pub fn serialize_operation_get_queue_attributes( pub fn serialize_operation_get_queue_url( input: &crate::input::GetQueueUrlInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetQueueUrl", "2012-11-05"); @@ -251,7 +251,7 @@ pub fn serialize_operation_get_queue_url( pub fn serialize_operation_list_dead_letter_source_queues( input: &crate::input::ListDeadLetterSourceQueuesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -280,7 +280,7 @@ pub fn serialize_operation_list_dead_letter_source_queues( pub fn serialize_operation_list_queues( input: &crate::input::ListQueuesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListQueues", "2012-11-05"); @@ -308,7 +308,7 @@ pub fn serialize_operation_list_queues( pub fn serialize_operation_list_queue_tags( input: &crate::input::ListQueueTagsInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ListQueueTags", "2012-11-05"); @@ -323,7 +323,7 @@ pub fn serialize_operation_list_queue_tags( pub fn serialize_operation_purge_queue( input: &crate::input::PurgeQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "PurgeQueue", "2012-11-05"); @@ -338,7 +338,7 @@ pub fn serialize_operation_purge_queue( pub fn serialize_operation_receive_message( input: &crate::input::ReceiveMessageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "ReceiveMessage", "2012-11-05"); @@ -404,7 +404,7 @@ pub fn serialize_operation_receive_message( pub fn serialize_operation_remove_permission( input: &crate::input::RemovePermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "RemovePermission", "2012-11-05"); @@ -424,7 +424,7 @@ pub fn serialize_operation_remove_permission( pub fn serialize_operation_send_message( input: &crate::input::SendMessageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SendMessage", "2012-11-05"); @@ -490,7 +490,7 @@ pub fn serialize_operation_send_message( pub fn serialize_operation_send_message_batch( input: &crate::input::SendMessageBatchInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SendMessageBatch", "2012-11-05"); @@ -518,7 +518,7 @@ pub fn serialize_operation_send_message_batch( pub fn serialize_operation_set_queue_attributes( input: &crate::input::SetQueueAttributesInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "SetQueueAttributes", "2012-11-05"); @@ -546,7 +546,7 @@ pub fn serialize_operation_set_queue_attributes( pub fn serialize_operation_tag_queue( input: &crate::input::TagQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "TagQueue", "2012-11-05"); @@ -574,7 +574,7 @@ pub fn serialize_operation_tag_queue( pub fn serialize_operation_untag_queue( input: &crate::input::UntagQueueInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "UntagQueue", "2012-11-05"); diff --git a/sdk/ssm/Cargo.toml b/sdk/ssm/Cargo.toml index 64c031e1129b..fde81a76e9cd 100644 --- a/sdk/ssm/Cargo.toml +++ b/sdk/ssm/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-ssm" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Systems Manager\n

    AWS Systems Manager is a collection of capabilities that helps you automate management tasks such as\n collecting system inventory, applying operating system (OS) patches, automating the creation of\n Amazon Machine Images (AMIs), and configuring operating systems (OSs) and applications at scale.\n Systems Manager lets you remotely and securely manage the configuration of your managed instances. A\n managed instance is any Amazon Elastic Compute Cloud instance (EC2 instance), or any\n on-premises server or virtual machine (VM) in your hybrid environment that has been configured\n for Systems Manager.

    \n

    This reference is intended to be used with the AWS Systems Manager User Guide.

    \n

    To get started, verify prerequisites and configure managed instances. For more information,\n see Setting up\n AWS Systems Manager in the AWS Systems Manager User Guide.

    \n

    \n Related resources\n

    \n " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -22,22 +22,16 @@ path = "..//aws-types" path = "..//aws-auth" [dependencies.smithy-types] path = "..//smithy-types" -[dependencies.serde] -version = "1" -features = ["derive"] [dependencies.aws-http] path = "..//aws-http" [dependencies.aws-sig-auth] path = "..//aws-sig-auth" [dependencies.http] version = "0.2" -[dependencies.serde_json] +[dependencies.bytes] version = "1" -features = ["float_roundtrip"] [dependencies.smithy-json] path = "..//smithy-json" -[dependencies.bytes] -version = "1" [features] client = ["aws-hyper"] rustls = ["aws-hyper/rustls"] diff --git a/sdk/ssm/src/aws_json_errors.rs b/sdk/ssm/src/aws_json_errors.rs deleted file mode 100644 index d8c9e67c9716..000000000000 --- a/sdk/ssm/src/aws_json_errors.rs +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use http::header::ToStrError; - -// currently only used by AwsJson -#[allow(unused)] -pub fn is_error(response: &http::Response) -> bool { - !response.status().is_success() -} - -fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { - response - .headers() - .get("X-Amzn-Errortype") - .map(|v| v.to_str()) - .transpose() -} - -fn error_type_from_body(body: &serde_json::Value) -> Option<&str> { - body.as_object() - .and_then(|b: &serde_json::Map| { - b.get("code").or_else(|| b.get("__type")) - }) - .and_then(|v| v.as_str()) -} - -fn sanitize_error_code(error_code: &str) -> &str { - // Trim a trailing URL from the error code, beginning with a `:` - let error_code = match error_code.find(':') { - Some(idx) => &error_code[..idx], - None => &error_code, - }; - - // Trim a prefixing namespace from the error code, beginning with a `#` - match error_code.find('#') { - Some(idx) => &error_code[idx + 1..], - None => &error_code, - } -} - -pub fn parse_generic_error( - response: &http::Response, - body: &serde_json::Value, -) -> smithy_types::Error { - let mut err_builder = smithy_types::Error::builder(); - let code = error_type_from_header(&response) - .unwrap_or(Some("header was not valid UTF-8")) - .or_else(|| error_type_from_body(body)) - .map(|s| sanitize_error_code(s)); - if let Some(code) = code { - err_builder.code(code); - } - let message = body - .get("message") - .or_else(|| body.get("Message")) - .or_else(|| body.get("errorMessage")) - .and_then(|v| v.as_str()); - if let Some(message) = message { - err_builder.message(message); - } - let request_id = response - .headers() - .get("X-Amzn-Requestid") - .and_then(|v| v.to_str().ok()); - if let Some(request_id) = request_id { - err_builder.request_id(request_id); - } - err_builder.build() -} - -#[cfg(test)] -mod test { - use crate::aws_json_errors::{error_type_from_body, parse_generic_error, sanitize_error_code}; - use serde_json::json; - use smithy_types::Error; - - #[test] - fn generic_error() { - let response = http::Response::builder() - .header("X-Amzn-Requestid", "1234") - .body(json!({ - "__type": "FooError", - "message": "Go to foo" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("FooError") - .message("Go to foo") - .request_id("1234") - .build() - ) - } - - #[test] - fn error_type() { - let error_body = json!({ - "__type": "FooError" - }); - assert_eq!(error_type_from_body(&error_body), Some("FooError")); - } - - #[test] - fn code_takes_priority() { - let error_body = json!({ - "__type": "FooError", - "code": "BarError" - }); - assert_eq!(error_type_from_body(&error_body), Some("BarError")); - } - - #[test] - fn sanitize_namespace_and_url() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), - "FooError"); - } - - #[test] - fn sanitize_noop() { - assert_eq!(sanitize_error_code("FooError"), "FooError"); - } - - #[test] - fn sanitize_url() { - assert_eq!( - sanitize_error_code( - "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" - ), - "FooError" - ); - } - - #[test] - fn sanitize_namespace() { - assert_eq!( - sanitize_error_code("aws.protocoltests.restjson#FooError"), - "FooError" - ); - } - - // services like lambda use an alternate `Message` instead of `message` - #[test] - fn alternative_error_message_names() { - let response = http::Response::builder() - .header("x-amzn-errortype", "ResourceNotFoundException") - .body(json!({ - "Type": "User", - "Message": "Functions from 'us-west-2' are not reachable from us-east-1" - })) - .unwrap(); - assert_eq!( - parse_generic_error(&response, response.body()), - Error::builder() - .code("ResourceNotFoundException") - .message("Functions from 'us-west-2' are not reachable from us-east-1") - .build() - ); - } -} diff --git a/sdk/ssm/src/blob_serde.rs b/sdk/ssm/src/blob_serde.rs deleted file mode 100644 index ab9325eb675b..000000000000 --- a/sdk/ssm/src/blob_serde.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::de::{Error, Unexpected}; -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::{base64, Blob}; - -pub struct BlobSer<'a>(pub &'a Blob); - -impl Serialize for BlobSer<'_> { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - serializer.serialize_str(base64::encode(self.0.as_ref()).as_str()) - } -} - -pub struct BlobDeser(pub Blob); - -impl<'de> Deserialize<'de> for BlobDeser { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - let bytes = base64::decode(data) - .map_err(|_| D::Error::invalid_value(Unexpected::Str(data), &"valid base64"))?; - Ok(BlobDeser(Blob::new(bytes))) - } -} diff --git a/sdk/ssm/src/error.rs b/sdk/ssm/src/error.rs index 58d5aec8268f..afcdb04fd832 100644 --- a/sdk/ssm/src/error.rs +++ b/sdk/ssm/src/error.rs @@ -117,10 +117,12 @@ pub struct AssociateOpsItemRelatedItemError { #[derive(std::fmt::Debug)] pub enum AssociateOpsItemRelatedItemErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemLimitExceededError(crate::error::OpsItemLimitExceededError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), - OpsItemRelatedItemAlreadyExistsError(crate::error::OpsItemRelatedItemAlreadyExistsError), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemLimitExceededException(crate::error::OpsItemLimitExceededException), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), + OpsItemRelatedItemAlreadyExistsException( + crate::error::OpsItemRelatedItemAlreadyExistsException, + ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -128,16 +130,16 @@ impl std::fmt::Display for AssociateOpsItemRelatedItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { AssociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_inner) => { - _inner.fmt(f) - } - AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededError(_inner) => { + AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_inner) => { _inner.fmt(f) } - AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_inner) => _inner.fmt(f), - AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsError(_inner) => { + AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededException(_inner) => { _inner.fmt(f) } + AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_inner) => _inner.fmt(f), + AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsException( + _inner, + ) => _inner.fmt(f), AssociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -192,28 +194,28 @@ impl AssociateOpsItemRelatedItemError { AssociateOpsItemRelatedItemErrorKind::InternalServerError(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_) + AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_) ) } - pub fn is_ops_item_limit_exceeded_error(&self) -> bool { + pub fn is_ops_item_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededError(_) + AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededException(_) ) } - pub fn is_ops_item_not_found_error(&self) -> bool { + pub fn is_ops_item_not_found_exception(&self) -> bool { matches!( &self.kind, - AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_) + AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_) ) } - pub fn is_ops_item_related_item_already_exists_error(&self) -> bool { + pub fn is_ops_item_related_item_already_exists_exception(&self) -> bool { matches!( &self.kind, - AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsError(_) + AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsException(_) ) } } @@ -221,14 +223,16 @@ impl std::error::Error for AssociateOpsItemRelatedItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { AssociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => Some(_inner), - AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_inner) => { + AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_inner) => { Some(_inner) } - AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededError(_inner) => Some(_inner), - AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_inner) => Some(_inner), - AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsError(_inner) => { + AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededException(_inner) => { Some(_inner) } + AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_inner) => Some(_inner), + AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsException( + _inner, + ) => Some(_inner), AssociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -339,7 +343,7 @@ pub struct CancelMaintenanceWindowExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum CancelMaintenanceWindowExecutionErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -347,7 +351,9 @@ pub enum CancelMaintenanceWindowExecutionErrorKind { impl std::fmt::Display for CancelMaintenanceWindowExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - CancelMaintenanceWindowExecutionErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + CancelMaintenanceWindowExecutionErrorKind::DoesNotExistException(_inner) => { + _inner.fmt(f) + } CancelMaintenanceWindowExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), CancelMaintenanceWindowExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -397,10 +403,10 @@ impl CancelMaintenanceWindowExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - CancelMaintenanceWindowExecutionErrorKind::DoesNotExistError(_) + CancelMaintenanceWindowExecutionErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -413,7 +419,9 @@ impl CancelMaintenanceWindowExecutionError { impl std::error::Error for CancelMaintenanceWindowExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - CancelMaintenanceWindowExecutionErrorKind::DoesNotExistError(_inner) => Some(_inner), + CancelMaintenanceWindowExecutionErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } CancelMaintenanceWindowExecutionErrorKind::InternalServerError(_inner) => Some(_inner), CancelMaintenanceWindowExecutionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -962,7 +970,7 @@ pub struct CreateMaintenanceWindowError { pub enum CreateMaintenanceWindowErrorKind { IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -971,7 +979,9 @@ impl std::fmt::Display for CreateMaintenanceWindowError { match &self.kind { CreateMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => _inner.fmt(f), CreateMaintenanceWindowErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => _inner.fmt(f), + CreateMaintenanceWindowErrorKind::ResourceLimitExceededException(_inner) => { + _inner.fmt(f) + } CreateMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1032,10 +1042,10 @@ impl CreateMaintenanceWindowError { CreateMaintenanceWindowErrorKind::InternalServerError(_) ) } - pub fn is_resource_limit_exceeded_error(&self) -> bool { + pub fn is_resource_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateMaintenanceWindowErrorKind::ResourceLimitExceededError(_) + CreateMaintenanceWindowErrorKind::ResourceLimitExceededException(_) ) } } @@ -1044,7 +1054,9 @@ impl std::error::Error for CreateMaintenanceWindowError { match &self.kind { CreateMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => Some(_inner), CreateMaintenanceWindowErrorKind::InternalServerError(_inner) => Some(_inner), - CreateMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => Some(_inner), + CreateMaintenanceWindowErrorKind::ResourceLimitExceededException(_inner) => { + Some(_inner) + } CreateMaintenanceWindowErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1060,9 +1072,9 @@ pub struct CreateOpsItemError { #[derive(std::fmt::Debug)] pub enum CreateOpsItemErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemAlreadyExistsError(crate::error::OpsItemAlreadyExistsError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemLimitExceededError(crate::error::OpsItemLimitExceededError), + OpsItemAlreadyExistsException(crate::error::OpsItemAlreadyExistsException), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemLimitExceededException(crate::error::OpsItemLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1070,9 +1082,9 @@ impl std::fmt::Display for CreateOpsItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CreateOpsItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateOpsItemErrorKind::OpsItemAlreadyExistsError(_inner) => _inner.fmt(f), - CreateOpsItemErrorKind::OpsItemInvalidParameterError(_inner) => _inner.fmt(f), - CreateOpsItemErrorKind::OpsItemLimitExceededError(_inner) => _inner.fmt(f), + CreateOpsItemErrorKind::OpsItemAlreadyExistsException(_inner) => _inner.fmt(f), + CreateOpsItemErrorKind::OpsItemInvalidParameterException(_inner) => _inner.fmt(f), + CreateOpsItemErrorKind::OpsItemLimitExceededException(_inner) => _inner.fmt(f), CreateOpsItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1124,22 +1136,22 @@ impl CreateOpsItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, CreateOpsItemErrorKind::InternalServerError(_)) } - pub fn is_ops_item_already_exists_error(&self) -> bool { + pub fn is_ops_item_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateOpsItemErrorKind::OpsItemAlreadyExistsError(_) + CreateOpsItemErrorKind::OpsItemAlreadyExistsException(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - CreateOpsItemErrorKind::OpsItemInvalidParameterError(_) + CreateOpsItemErrorKind::OpsItemInvalidParameterException(_) ) } - pub fn is_ops_item_limit_exceeded_error(&self) -> bool { + pub fn is_ops_item_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateOpsItemErrorKind::OpsItemLimitExceededError(_) + CreateOpsItemErrorKind::OpsItemLimitExceededException(_) ) } } @@ -1147,9 +1159,9 @@ impl std::error::Error for CreateOpsItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CreateOpsItemErrorKind::InternalServerError(_inner) => Some(_inner), - CreateOpsItemErrorKind::OpsItemAlreadyExistsError(_inner) => Some(_inner), - CreateOpsItemErrorKind::OpsItemInvalidParameterError(_inner) => Some(_inner), - CreateOpsItemErrorKind::OpsItemLimitExceededError(_inner) => Some(_inner), + CreateOpsItemErrorKind::OpsItemAlreadyExistsException(_inner) => Some(_inner), + CreateOpsItemErrorKind::OpsItemInvalidParameterException(_inner) => Some(_inner), + CreateOpsItemErrorKind::OpsItemLimitExceededException(_inner) => Some(_inner), CreateOpsItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1165,10 +1177,10 @@ pub struct CreateOpsMetadataError { #[derive(std::fmt::Debug)] pub enum CreateOpsMetadataErrorKind { InternalServerError(crate::error::InternalServerError), - OpsMetadataAlreadyExistsError(crate::error::OpsMetadataAlreadyExistsError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), - OpsMetadataLimitExceededError(crate::error::OpsMetadataLimitExceededError), - OpsMetadataTooManyUpdatesError(crate::error::OpsMetadataTooManyUpdatesError), + OpsMetadataAlreadyExistsException(crate::error::OpsMetadataAlreadyExistsException), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), + OpsMetadataLimitExceededException(crate::error::OpsMetadataLimitExceededException), + OpsMetadataTooManyUpdatesException(crate::error::OpsMetadataTooManyUpdatesException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1176,10 +1188,12 @@ impl std::fmt::Display for CreateOpsMetadataError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CreateOpsMetadataErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsError(_inner) => _inner.fmt(f), - CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => _inner.fmt(f), - CreateOpsMetadataErrorKind::OpsMetadataLimitExceededError(_inner) => _inner.fmt(f), - CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_inner) => _inner.fmt(f), + CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsException(_inner) => _inner.fmt(f), + CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => { + _inner.fmt(f) + } + CreateOpsMetadataErrorKind::OpsMetadataLimitExceededException(_inner) => _inner.fmt(f), + CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_inner) => _inner.fmt(f), CreateOpsMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1234,28 +1248,28 @@ impl CreateOpsMetadataError { CreateOpsMetadataErrorKind::InternalServerError(_) ) } - pub fn is_ops_metadata_already_exists_error(&self) -> bool { + pub fn is_ops_metadata_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsError(_) + CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsException(_) ) } - pub fn is_ops_metadata_invalid_argument_error(&self) -> bool { + pub fn is_ops_metadata_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_) + CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_) ) } - pub fn is_ops_metadata_limit_exceeded_error(&self) -> bool { + pub fn is_ops_metadata_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateOpsMetadataErrorKind::OpsMetadataLimitExceededError(_) + CreateOpsMetadataErrorKind::OpsMetadataLimitExceededException(_) ) } - pub fn is_ops_metadata_too_many_updates_error(&self) -> bool { + pub fn is_ops_metadata_too_many_updates_exception(&self) -> bool { matches!( &self.kind, - CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_) + CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_) ) } } @@ -1263,10 +1277,10 @@ impl std::error::Error for CreateOpsMetadataError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CreateOpsMetadataErrorKind::InternalServerError(_inner) => Some(_inner), - CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsError(_inner) => Some(_inner), - CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => Some(_inner), - CreateOpsMetadataErrorKind::OpsMetadataLimitExceededError(_inner) => Some(_inner), - CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_inner) => Some(_inner), + CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsException(_inner) => Some(_inner), + CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => Some(_inner), + CreateOpsMetadataErrorKind::OpsMetadataLimitExceededException(_inner) => Some(_inner), + CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_inner) => Some(_inner), CreateOpsMetadataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1283,7 +1297,7 @@ pub struct CreatePatchBaselineError { pub enum CreatePatchBaselineErrorKind { IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1292,7 +1306,7 @@ impl std::fmt::Display for CreatePatchBaselineError { match &self.kind { CreatePatchBaselineErrorKind::IdempotentParameterMismatch(_inner) => _inner.fmt(f), CreatePatchBaselineErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreatePatchBaselineErrorKind::ResourceLimitExceededError(_inner) => _inner.fmt(f), + CreatePatchBaselineErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f), CreatePatchBaselineErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1353,10 +1367,10 @@ impl CreatePatchBaselineError { CreatePatchBaselineErrorKind::InternalServerError(_) ) } - pub fn is_resource_limit_exceeded_error(&self) -> bool { + pub fn is_resource_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreatePatchBaselineErrorKind::ResourceLimitExceededError(_) + CreatePatchBaselineErrorKind::ResourceLimitExceededException(_) ) } } @@ -1365,7 +1379,7 @@ impl std::error::Error for CreatePatchBaselineError { match &self.kind { CreatePatchBaselineErrorKind::IdempotentParameterMismatch(_inner) => Some(_inner), CreatePatchBaselineErrorKind::InternalServerError(_inner) => Some(_inner), - CreatePatchBaselineErrorKind::ResourceLimitExceededError(_inner) => Some(_inner), + CreatePatchBaselineErrorKind::ResourceLimitExceededException(_inner) => Some(_inner), CreatePatchBaselineErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1381,10 +1395,10 @@ pub struct CreateResourceDataSyncError { #[derive(std::fmt::Debug)] pub enum CreateResourceDataSyncErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceDataSyncAlreadyExistsError(crate::error::ResourceDataSyncAlreadyExistsError), - ResourceDataSyncCountExceededError(crate::error::ResourceDataSyncCountExceededError), - ResourceDataSyncInvalidConfigurationError( - crate::error::ResourceDataSyncInvalidConfigurationError, + ResourceDataSyncAlreadyExistsException(crate::error::ResourceDataSyncAlreadyExistsException), + ResourceDataSyncCountExceededException(crate::error::ResourceDataSyncCountExceededException), + ResourceDataSyncInvalidConfigurationException( + crate::error::ResourceDataSyncInvalidConfigurationException, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -1393,15 +1407,15 @@ impl std::fmt::Display for CreateResourceDataSyncError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { CreateResourceDataSyncErrorKind::InternalServerError(_inner) => _inner.fmt(f), - CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsError(_inner) => { - _inner.fmt(f) - } - CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededError(_inner) => { + CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsException(_inner) => { _inner.fmt(f) } - CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededException(_inner) => { _inner.fmt(f) } + CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => _inner.fmt(f), CreateResourceDataSyncErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1456,22 +1470,22 @@ impl CreateResourceDataSyncError { CreateResourceDataSyncErrorKind::InternalServerError(_) ) } - pub fn is_resource_data_sync_already_exists_error(&self) -> bool { + pub fn is_resource_data_sync_already_exists_exception(&self) -> bool { matches!( &self.kind, - CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsError(_) + CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsException(_) ) } - pub fn is_resource_data_sync_count_exceeded_error(&self) -> bool { + pub fn is_resource_data_sync_count_exceeded_exception(&self) -> bool { matches!( &self.kind, - CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededError(_) + CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededException(_) ) } - pub fn is_resource_data_sync_invalid_configuration_error(&self) -> bool { + pub fn is_resource_data_sync_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_) + CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(_) ) } } @@ -1479,15 +1493,15 @@ impl std::error::Error for CreateResourceDataSyncError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { CreateResourceDataSyncErrorKind::InternalServerError(_inner) => Some(_inner), - CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsError(_inner) => { + CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsException(_inner) => { Some(_inner) } - CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededError(_inner) => { - Some(_inner) - } - CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededException(_inner) => { Some(_inner) } + CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => Some(_inner), CreateResourceDataSyncErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -1812,10 +1826,12 @@ pub struct DeleteInventoryError { #[derive(std::fmt::Debug)] pub enum DeleteInventoryErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidDeleteInventoryParametersError(crate::error::InvalidDeleteInventoryParametersError), - InvalidInventoryRequestError(crate::error::InvalidInventoryRequestError), - InvalidOptionError(crate::error::InvalidOptionError), - InvalidTypeNameError(crate::error::InvalidTypeNameError), + InvalidDeleteInventoryParametersException( + crate::error::InvalidDeleteInventoryParametersException, + ), + InvalidInventoryRequestException(crate::error::InvalidInventoryRequestException), + InvalidOptionException(crate::error::InvalidOptionException), + InvalidTypeNameException(crate::error::InvalidTypeNameException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -1823,12 +1839,12 @@ impl std::fmt::Display for DeleteInventoryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteInventoryErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteInventoryErrorKind::InvalidDeleteInventoryParametersError(_inner) => { + DeleteInventoryErrorKind::InvalidDeleteInventoryParametersException(_inner) => { _inner.fmt(f) } - DeleteInventoryErrorKind::InvalidInventoryRequestError(_inner) => _inner.fmt(f), - DeleteInventoryErrorKind::InvalidOptionError(_inner) => _inner.fmt(f), - DeleteInventoryErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), + DeleteInventoryErrorKind::InvalidInventoryRequestException(_inner) => _inner.fmt(f), + DeleteInventoryErrorKind::InvalidOptionException(_inner) => _inner.fmt(f), + DeleteInventoryErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), DeleteInventoryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -1880,25 +1896,28 @@ impl DeleteInventoryError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, DeleteInventoryErrorKind::InternalServerError(_)) } - pub fn is_invalid_delete_inventory_parameters_error(&self) -> bool { + pub fn is_invalid_delete_inventory_parameters_exception(&self) -> bool { matches!( &self.kind, - DeleteInventoryErrorKind::InvalidDeleteInventoryParametersError(_) + DeleteInventoryErrorKind::InvalidDeleteInventoryParametersException(_) ) } - pub fn is_invalid_inventory_request_error(&self) -> bool { + pub fn is_invalid_inventory_request_exception(&self) -> bool { matches!( &self.kind, - DeleteInventoryErrorKind::InvalidInventoryRequestError(_) + DeleteInventoryErrorKind::InvalidInventoryRequestException(_) ) } - pub fn is_invalid_option_error(&self) -> bool { - matches!(&self.kind, DeleteInventoryErrorKind::InvalidOptionError(_)) + pub fn is_invalid_option_exception(&self) -> bool { + matches!( + &self.kind, + DeleteInventoryErrorKind::InvalidOptionException(_) + ) } - pub fn is_invalid_type_name_error(&self) -> bool { + pub fn is_invalid_type_name_exception(&self) -> bool { matches!( &self.kind, - DeleteInventoryErrorKind::InvalidTypeNameError(_) + DeleteInventoryErrorKind::InvalidTypeNameException(_) ) } } @@ -1906,10 +1925,12 @@ impl std::error::Error for DeleteInventoryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteInventoryErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteInventoryErrorKind::InvalidDeleteInventoryParametersError(_inner) => Some(_inner), - DeleteInventoryErrorKind::InvalidInventoryRequestError(_inner) => Some(_inner), - DeleteInventoryErrorKind::InvalidOptionError(_inner) => Some(_inner), - DeleteInventoryErrorKind::InvalidTypeNameError(_inner) => Some(_inner), + DeleteInventoryErrorKind::InvalidDeleteInventoryParametersException(_inner) => { + Some(_inner) + } + DeleteInventoryErrorKind::InvalidInventoryRequestException(_inner) => Some(_inner), + DeleteInventoryErrorKind::InvalidOptionException(_inner) => Some(_inner), + DeleteInventoryErrorKind::InvalidTypeNameException(_inner) => Some(_inner), DeleteInventoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2006,8 +2027,8 @@ pub struct DeleteOpsMetadataError { #[derive(std::fmt::Debug)] pub enum DeleteOpsMetadataErrorKind { InternalServerError(crate::error::InternalServerError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), - OpsMetadataNotFoundError(crate::error::OpsMetadataNotFoundError), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), + OpsMetadataNotFoundException(crate::error::OpsMetadataNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2015,8 +2036,10 @@ impl std::fmt::Display for DeleteOpsMetadataError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteOpsMetadataErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => _inner.fmt(f), - DeleteOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => _inner.fmt(f), + DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => { + _inner.fmt(f) + } + DeleteOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => _inner.fmt(f), DeleteOpsMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2071,16 +2094,16 @@ impl DeleteOpsMetadataError { DeleteOpsMetadataErrorKind::InternalServerError(_) ) } - pub fn is_ops_metadata_invalid_argument_error(&self) -> bool { + pub fn is_ops_metadata_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_) + DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_) ) } - pub fn is_ops_metadata_not_found_error(&self) -> bool { + pub fn is_ops_metadata_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteOpsMetadataErrorKind::OpsMetadataNotFoundError(_) + DeleteOpsMetadataErrorKind::OpsMetadataNotFoundException(_) ) } } @@ -2088,8 +2111,8 @@ impl std::error::Error for DeleteOpsMetadataError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteOpsMetadataErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => Some(_inner), - DeleteOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => Some(_inner), + DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => Some(_inner), + DeleteOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => Some(_inner), DeleteOpsMetadataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2270,7 +2293,7 @@ pub struct DeletePatchBaselineError { #[derive(std::fmt::Debug)] pub enum DeletePatchBaselineErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceInUseError(crate::error::ResourceInUseError), + ResourceInUseException(crate::error::ResourceInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2278,7 +2301,7 @@ impl std::fmt::Display for DeletePatchBaselineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeletePatchBaselineErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeletePatchBaselineErrorKind::ResourceInUseError(_inner) => _inner.fmt(f), + DeletePatchBaselineErrorKind::ResourceInUseException(_inner) => _inner.fmt(f), DeletePatchBaselineErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2333,10 +2356,10 @@ impl DeletePatchBaselineError { DeletePatchBaselineErrorKind::InternalServerError(_) ) } - pub fn is_resource_in_use_error(&self) -> bool { + pub fn is_resource_in_use_exception(&self) -> bool { matches!( &self.kind, - DeletePatchBaselineErrorKind::ResourceInUseError(_) + DeletePatchBaselineErrorKind::ResourceInUseException(_) ) } } @@ -2344,7 +2367,7 @@ impl std::error::Error for DeletePatchBaselineError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeletePatchBaselineErrorKind::InternalServerError(_inner) => Some(_inner), - DeletePatchBaselineErrorKind::ResourceInUseError(_inner) => Some(_inner), + DeletePatchBaselineErrorKind::ResourceInUseException(_inner) => Some(_inner), DeletePatchBaselineErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2360,10 +2383,10 @@ pub struct DeleteResourceDataSyncError { #[derive(std::fmt::Debug)] pub enum DeleteResourceDataSyncErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceDataSyncInvalidConfigurationError( - crate::error::ResourceDataSyncInvalidConfigurationError, + ResourceDataSyncInvalidConfigurationException( + crate::error::ResourceDataSyncInvalidConfigurationException, ), - ResourceDataSyncNotFoundError(crate::error::ResourceDataSyncNotFoundError), + ResourceDataSyncNotFoundException(crate::error::ResourceDataSyncNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -2371,10 +2394,12 @@ impl std::fmt::Display for DeleteResourceDataSyncError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DeleteResourceDataSyncErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => _inner.fmt(f), + DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_inner) => { _inner.fmt(f) } - DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_inner) => _inner.fmt(f), DeleteResourceDataSyncErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -2429,16 +2454,16 @@ impl DeleteResourceDataSyncError { DeleteResourceDataSyncErrorKind::InternalServerError(_) ) } - pub fn is_resource_data_sync_invalid_configuration_error(&self) -> bool { + pub fn is_resource_data_sync_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_) + DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(_) ) } - pub fn is_resource_data_sync_not_found_error(&self) -> bool { + pub fn is_resource_data_sync_not_found_exception(&self) -> bool { matches!( &self.kind, - DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_) + DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_) ) } } @@ -2446,10 +2471,12 @@ impl std::error::Error for DeleteResourceDataSyncError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DeleteResourceDataSyncErrorKind::InternalServerError(_inner) => Some(_inner), - DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => Some(_inner), + DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_inner) => { Some(_inner) } - DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_inner) => Some(_inner), DeleteResourceDataSyncErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -2657,22 +2684,22 @@ pub struct DeregisterTargetFromMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterTargetFromMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), - TargetInUseError(crate::error::TargetInUseError), + TargetInUseException(crate::error::TargetInUseException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DeregisterTargetFromMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistError(_inner) => { + DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseError(_inner) => { + DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseException(_inner) => { _inner.fmt(f) } DeregisterTargetFromMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -2726,10 +2753,10 @@ impl DeregisterTargetFromMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistError(_) + DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -2738,23 +2765,23 @@ impl DeregisterTargetFromMaintenanceWindowError { DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError(_) ) } - pub fn is_target_in_use_error(&self) -> bool { + pub fn is_target_in_use_exception(&self) -> bool { matches!( &self.kind, - DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseError(_) + DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseException(_) ) } } impl std::error::Error for DeregisterTargetFromMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistError(_inner) => { + DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { Some(_inner) } DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError(_inner) => { Some(_inner) } - DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseError(_inner) => { + DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseException(_inner) => { Some(_inner) } DeregisterTargetFromMaintenanceWindowErrorKind::Unhandled(_inner) => { @@ -2773,7 +2800,7 @@ pub struct DeregisterTaskFromMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DeregisterTaskFromMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -2781,7 +2808,7 @@ pub enum DeregisterTaskFromMaintenanceWindowErrorKind { impl std::fmt::Display for DeregisterTaskFromMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistError(_inner) => { + DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError(_inner) => { @@ -2838,10 +2865,10 @@ impl DeregisterTaskFromMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistError(_) + DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -2854,7 +2881,9 @@ impl DeregisterTaskFromMaintenanceWindowError { impl std::error::Error for DeregisterTaskFromMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistError(_inner) => Some(_inner), + DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError(_inner) => { Some(_inner) } @@ -3418,7 +3447,7 @@ pub struct DescribeAutomationStepExecutionsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeAutomationStepExecutionsErrorKind { - AutomationExecutionNotFoundError(crate::error::AutomationExecutionNotFoundError), + AutomationExecutionNotFoundException(crate::error::AutomationExecutionNotFoundException), InternalServerError(crate::error::InternalServerError), InvalidFilterKey(crate::error::InvalidFilterKey), InvalidFilterValue(crate::error::InvalidFilterValue), @@ -3429,9 +3458,9 @@ pub enum DescribeAutomationStepExecutionsErrorKind { impl std::fmt::Display for DescribeAutomationStepExecutionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundError(_inner) => { - _inner.fmt(f) - } + DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundException( + _inner, + ) => _inner.fmt(f), DescribeAutomationStepExecutionsErrorKind::InternalServerError(_inner) => _inner.fmt(f), DescribeAutomationStepExecutionsErrorKind::InvalidFilterKey(_inner) => _inner.fmt(f), DescribeAutomationStepExecutionsErrorKind::InvalidFilterValue(_inner) => _inner.fmt(f), @@ -3484,10 +3513,10 @@ impl DescribeAutomationStepExecutionsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_execution_not_found_error(&self) -> bool { + pub fn is_automation_execution_not_found_exception(&self) -> bool { matches!( &self.kind, - DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundError(_) + DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -3518,9 +3547,9 @@ impl DescribeAutomationStepExecutionsError { impl std::error::Error for DescribeAutomationStepExecutionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundError(_inner) => { - Some(_inner) - } + DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundException( + _inner, + ) => Some(_inner), DescribeAutomationStepExecutionsErrorKind::InternalServerError(_inner) => Some(_inner), DescribeAutomationStepExecutionsErrorKind::InvalidFilterKey(_inner) => Some(_inner), DescribeAutomationStepExecutionsErrorKind::InvalidFilterValue(_inner) => Some(_inner), @@ -3949,7 +3978,7 @@ pub struct DescribeEffectivePatchesForPatchBaselineError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeEffectivePatchesForPatchBaselineErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), InvalidResourceId(crate::error::InvalidResourceId), UnsupportedOperatingSystem(crate::error::UnsupportedOperatingSystem), @@ -3959,7 +3988,7 @@ pub enum DescribeEffectivePatchesForPatchBaselineErrorKind { impl std::fmt::Display for DescribeEffectivePatchesForPatchBaselineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistError(_inner) => { + DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } DescribeEffectivePatchesForPatchBaselineErrorKind::InternalServerError(_inner) => { @@ -4022,10 +4051,10 @@ impl DescribeEffectivePatchesForPatchBaselineError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistError(_) + DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4050,7 +4079,7 @@ impl DescribeEffectivePatchesForPatchBaselineError { impl std::error::Error for DescribeEffectivePatchesForPatchBaselineError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistError(_inner) => { + DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistException(_inner) => { Some(_inner) } DescribeEffectivePatchesForPatchBaselineErrorKind::InternalServerError(_inner) => { @@ -4620,7 +4649,7 @@ pub struct DescribeInventoryDeletionsError { #[derive(std::fmt::Debug)] pub enum DescribeInventoryDeletionsErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidDeletionIdError(crate::error::InvalidDeletionIdError), + InvalidDeletionIdException(crate::error::InvalidDeletionIdException), InvalidNextToken(crate::error::InvalidNextToken), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -4629,7 +4658,9 @@ impl std::fmt::Display for DescribeInventoryDeletionsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { DescribeInventoryDeletionsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DescribeInventoryDeletionsErrorKind::InvalidDeletionIdError(_inner) => _inner.fmt(f), + DescribeInventoryDeletionsErrorKind::InvalidDeletionIdException(_inner) => { + _inner.fmt(f) + } DescribeInventoryDeletionsErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), DescribeInventoryDeletionsErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -4685,10 +4716,10 @@ impl DescribeInventoryDeletionsError { DescribeInventoryDeletionsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_deletion_id_error(&self) -> bool { + pub fn is_invalid_deletion_id_exception(&self) -> bool { matches!( &self.kind, - DescribeInventoryDeletionsErrorKind::InvalidDeletionIdError(_) + DescribeInventoryDeletionsErrorKind::InvalidDeletionIdException(_) ) } pub fn is_invalid_next_token(&self) -> bool { @@ -4702,7 +4733,7 @@ impl std::error::Error for DescribeInventoryDeletionsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { DescribeInventoryDeletionsErrorKind::InternalServerError(_inner) => Some(_inner), - DescribeInventoryDeletionsErrorKind::InvalidDeletionIdError(_inner) => Some(_inner), + DescribeInventoryDeletionsErrorKind::InvalidDeletionIdException(_inner) => Some(_inner), DescribeInventoryDeletionsErrorKind::InvalidNextToken(_inner) => Some(_inner), DescribeInventoryDeletionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -4808,7 +4839,7 @@ pub struct DescribeMaintenanceWindowExecutionTaskInvocationsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -4816,7 +4847,7 @@ pub enum DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind { impl std::fmt::Display for DescribeMaintenanceWindowExecutionTaskInvocationsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistError( + DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistException( _inner, ) => _inner.fmt(f), DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::InternalServerError( @@ -4877,10 +4908,10 @@ impl DescribeMaintenanceWindowExecutionTaskInvocationsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistError(_) + DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4893,7 +4924,7 @@ impl DescribeMaintenanceWindowExecutionTaskInvocationsError { impl std::error::Error for DescribeMaintenanceWindowExecutionTaskInvocationsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistError( + DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistException( _inner, ) => Some(_inner), DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::InternalServerError( @@ -4915,7 +4946,7 @@ pub struct DescribeMaintenanceWindowExecutionTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMaintenanceWindowExecutionTasksErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -4923,7 +4954,7 @@ pub enum DescribeMaintenanceWindowExecutionTasksErrorKind { impl std::fmt::Display for DescribeMaintenanceWindowExecutionTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistError(_inner) => { + DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } DescribeMaintenanceWindowExecutionTasksErrorKind::InternalServerError(_inner) => { @@ -4980,10 +5011,10 @@ impl DescribeMaintenanceWindowExecutionTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistError(_) + DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -4996,7 +5027,7 @@ impl DescribeMaintenanceWindowExecutionTasksError { impl std::error::Error for DescribeMaintenanceWindowExecutionTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistError(_inner) => { + DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistException(_inner) => { Some(_inner) } DescribeMaintenanceWindowExecutionTasksErrorKind::InternalServerError(_inner) => { @@ -5099,7 +5130,7 @@ pub struct DescribeMaintenanceWindowScheduleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMaintenanceWindowScheduleErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -5107,7 +5138,9 @@ pub enum DescribeMaintenanceWindowScheduleErrorKind { impl std::fmt::Display for DescribeMaintenanceWindowScheduleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistException(_inner) => { + _inner.fmt(f) + } DescribeMaintenanceWindowScheduleErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } @@ -5162,10 +5195,10 @@ impl DescribeMaintenanceWindowScheduleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistError(_) + DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -5178,7 +5211,9 @@ impl DescribeMaintenanceWindowScheduleError { impl std::error::Error for DescribeMaintenanceWindowScheduleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistError(_inner) => Some(_inner), + DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } DescribeMaintenanceWindowScheduleErrorKind::InternalServerError(_inner) => Some(_inner), DescribeMaintenanceWindowScheduleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -5284,7 +5319,7 @@ pub struct DescribeMaintenanceWindowTargetsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMaintenanceWindowTargetsErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -5292,7 +5327,9 @@ pub enum DescribeMaintenanceWindowTargetsErrorKind { impl std::fmt::Display for DescribeMaintenanceWindowTargetsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistException(_inner) => { + _inner.fmt(f) + } DescribeMaintenanceWindowTargetsErrorKind::InternalServerError(_inner) => _inner.fmt(f), DescribeMaintenanceWindowTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -5342,10 +5379,10 @@ impl DescribeMaintenanceWindowTargetsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistError(_) + DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -5358,7 +5395,9 @@ impl DescribeMaintenanceWindowTargetsError { impl std::error::Error for DescribeMaintenanceWindowTargetsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistError(_inner) => Some(_inner), + DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } DescribeMaintenanceWindowTargetsErrorKind::InternalServerError(_inner) => Some(_inner), DescribeMaintenanceWindowTargetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -5374,7 +5413,7 @@ pub struct DescribeMaintenanceWindowTasksError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DescribeMaintenanceWindowTasksErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -5382,7 +5421,7 @@ pub enum DescribeMaintenanceWindowTasksErrorKind { impl std::fmt::Display for DescribeMaintenanceWindowTasksError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DescribeMaintenanceWindowTasksErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + DescribeMaintenanceWindowTasksErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), DescribeMaintenanceWindowTasksErrorKind::InternalServerError(_inner) => _inner.fmt(f), DescribeMaintenanceWindowTasksErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -5432,10 +5471,10 @@ impl DescribeMaintenanceWindowTasksError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - DescribeMaintenanceWindowTasksErrorKind::DoesNotExistError(_) + DescribeMaintenanceWindowTasksErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -5448,7 +5487,7 @@ impl DescribeMaintenanceWindowTasksError { impl std::error::Error for DescribeMaintenanceWindowTasksError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DescribeMaintenanceWindowTasksErrorKind::DoesNotExistError(_inner) => Some(_inner), + DescribeMaintenanceWindowTasksErrorKind::DoesNotExistException(_inner) => Some(_inner), DescribeMaintenanceWindowTasksErrorKind::InternalServerError(_inner) => Some(_inner), DescribeMaintenanceWindowTasksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -6083,10 +6122,10 @@ pub struct DisassociateOpsItemRelatedItemError { #[derive(std::fmt::Debug)] pub enum DisassociateOpsItemRelatedItemErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), - OpsItemRelatedItemAssociationNotFoundError( - crate::error::OpsItemRelatedItemAssociationNotFoundError, + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), + OpsItemRelatedItemAssociationNotFoundException( + crate::error::OpsItemRelatedItemAssociationNotFoundException, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -6094,15 +6133,21 @@ pub enum DisassociateOpsItemRelatedItemErrorKind { impl std::fmt::Display for DisassociateOpsItemRelatedItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DisassociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_inner) => { + DisassociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => + _inner.fmt(f) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_inner) => + _inner.fmt(f) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_inner) => + _inner.fmt(f) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundException(_inner) => + _inner.fmt(f) + , + DisassociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => { _inner.fmt(f) } - DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_inner) => _inner.fmt(f), - DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundError( - _inner, - ) => _inner.fmt(f), - DisassociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } } @@ -6156,37 +6201,45 @@ impl DisassociateOpsItemRelatedItemError { DisassociateOpsItemRelatedItemErrorKind::InternalServerError(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_) + DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_) ) } - pub fn is_ops_item_not_found_error(&self) -> bool { + pub fn is_ops_item_not_found_exception(&self) -> bool { matches!( &self.kind, - DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_) + DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_) ) } - pub fn is_ops_item_related_item_association_not_found_error(&self) -> bool { + pub fn is_ops_item_related_item_association_not_found_exception(&self) -> bool { matches!( &self.kind, - DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundError(_) + DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundException( + _ + ) ) } } impl std::error::Error for DisassociateOpsItemRelatedItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DisassociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => Some(_inner), - DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(_inner) => { - Some(_inner) + DisassociateOpsItemRelatedItemErrorKind::InternalServerError(_inner) => + Some(_inner) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(_inner) => + Some(_inner) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(_inner) => + Some(_inner) + , + DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundException(_inner) => + Some(_inner) + , + DisassociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => { + Some(_inner.as_ref()) } - DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(_inner) => Some(_inner), - DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundError( - _inner, - ) => Some(_inner), - DisassociateOpsItemRelatedItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } } @@ -6200,7 +6253,7 @@ pub struct GetAutomationExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetAutomationExecutionErrorKind { - AutomationExecutionNotFoundError(crate::error::AutomationExecutionNotFoundError), + AutomationExecutionNotFoundException(crate::error::AutomationExecutionNotFoundException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -6208,7 +6261,7 @@ pub enum GetAutomationExecutionErrorKind { impl std::fmt::Display for GetAutomationExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_inner) => { + GetAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_inner) => { _inner.fmt(f) } GetAutomationExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), @@ -6260,10 +6313,10 @@ impl GetAutomationExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_execution_not_found_error(&self) -> bool { + pub fn is_automation_execution_not_found_exception(&self) -> bool { matches!( &self.kind, - GetAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_) + GetAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -6276,7 +6329,7 @@ impl GetAutomationExecutionError { impl std::error::Error for GetAutomationExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_inner) => { + GetAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_inner) => { Some(_inner) } GetAutomationExecutionErrorKind::InternalServerError(_inner) => Some(_inner), @@ -6297,7 +6350,7 @@ pub enum GetCalendarStateErrorKind { InternalServerError(crate::error::InternalServerError), InvalidDocument(crate::error::InvalidDocument), InvalidDocumentType(crate::error::InvalidDocumentType), - UnsupportedCalendarError(crate::error::UnsupportedCalendarError), + UnsupportedCalendarException(crate::error::UnsupportedCalendarException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -6307,7 +6360,7 @@ impl std::fmt::Display for GetCalendarStateError { GetCalendarStateErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetCalendarStateErrorKind::InvalidDocument(_inner) => _inner.fmt(f), GetCalendarStateErrorKind::InvalidDocumentType(_inner) => _inner.fmt(f), - GetCalendarStateErrorKind::UnsupportedCalendarError(_inner) => _inner.fmt(f), + GetCalendarStateErrorKind::UnsupportedCalendarException(_inner) => _inner.fmt(f), GetCalendarStateErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6371,10 +6424,10 @@ impl GetCalendarStateError { GetCalendarStateErrorKind::InvalidDocumentType(_) ) } - pub fn is_unsupported_calendar_error(&self) -> bool { + pub fn is_unsupported_calendar_exception(&self) -> bool { matches!( &self.kind, - GetCalendarStateErrorKind::UnsupportedCalendarError(_) + GetCalendarStateErrorKind::UnsupportedCalendarException(_) ) } } @@ -6384,7 +6437,7 @@ impl std::error::Error for GetCalendarStateError { GetCalendarStateErrorKind::InternalServerError(_inner) => Some(_inner), GetCalendarStateErrorKind::InvalidDocument(_inner) => Some(_inner), GetCalendarStateErrorKind::InvalidDocumentType(_inner) => Some(_inner), - GetCalendarStateErrorKind::UnsupportedCalendarError(_inner) => Some(_inner), + GetCalendarStateErrorKind::UnsupportedCalendarException(_inner) => Some(_inner), GetCalendarStateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -6679,7 +6732,7 @@ pub struct GetDeployablePatchSnapshotForInstanceError { #[derive(std::fmt::Debug)] pub enum GetDeployablePatchSnapshotForInstanceErrorKind { InternalServerError(crate::error::InternalServerError), - UnsupportedFeatureRequiredError(crate::error::UnsupportedFeatureRequiredError), + UnsupportedFeatureRequiredException(crate::error::UnsupportedFeatureRequiredException), UnsupportedOperatingSystem(crate::error::UnsupportedOperatingSystem), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -6690,7 +6743,7 @@ impl std::fmt::Display for GetDeployablePatchSnapshotForInstanceError { GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredError( + GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredException( _inner, ) => _inner.fmt(f), GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedOperatingSystem(_inner) => { @@ -6753,10 +6806,10 @@ impl GetDeployablePatchSnapshotForInstanceError { GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError(_) ) } - pub fn is_unsupported_feature_required_error(&self) -> bool { + pub fn is_unsupported_feature_required_exception(&self) -> bool { matches!( &self.kind, - GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredError(_) + GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredException(_) ) } pub fn is_unsupported_operating_system(&self) -> bool { @@ -6772,7 +6825,7 @@ impl std::error::Error for GetDeployablePatchSnapshotForInstanceError { GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError(_inner) => { Some(_inner) } - GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredError( + GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredException( _inner, ) => Some(_inner), GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedOperatingSystem(_inner) => { @@ -6885,12 +6938,12 @@ pub struct GetInventoryError { #[derive(std::fmt::Debug)] pub enum GetInventoryErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidAggregatorError(crate::error::InvalidAggregatorError), + InvalidAggregatorException(crate::error::InvalidAggregatorException), InvalidFilter(crate::error::InvalidFilter), - InvalidInventoryGroupError(crate::error::InvalidInventoryGroupError), + InvalidInventoryGroupException(crate::error::InvalidInventoryGroupException), InvalidNextToken(crate::error::InvalidNextToken), - InvalidResultAttributeError(crate::error::InvalidResultAttributeError), - InvalidTypeNameError(crate::error::InvalidTypeNameError), + InvalidResultAttributeException(crate::error::InvalidResultAttributeException), + InvalidTypeNameException(crate::error::InvalidTypeNameException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -6898,12 +6951,12 @@ impl std::fmt::Display for GetInventoryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetInventoryErrorKind::InternalServerError(_inner) => _inner.fmt(f), - GetInventoryErrorKind::InvalidAggregatorError(_inner) => _inner.fmt(f), + GetInventoryErrorKind::InvalidAggregatorException(_inner) => _inner.fmt(f), GetInventoryErrorKind::InvalidFilter(_inner) => _inner.fmt(f), - GetInventoryErrorKind::InvalidInventoryGroupError(_inner) => _inner.fmt(f), + GetInventoryErrorKind::InvalidInventoryGroupException(_inner) => _inner.fmt(f), GetInventoryErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), - GetInventoryErrorKind::InvalidResultAttributeError(_inner) => _inner.fmt(f), - GetInventoryErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), + GetInventoryErrorKind::InvalidResultAttributeException(_inner) => _inner.fmt(f), + GetInventoryErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), GetInventoryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -6955,41 +7008,47 @@ impl GetInventoryError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, GetInventoryErrorKind::InternalServerError(_)) } - pub fn is_invalid_aggregator_error(&self) -> bool { - matches!(&self.kind, GetInventoryErrorKind::InvalidAggregatorError(_)) + pub fn is_invalid_aggregator_exception(&self) -> bool { + matches!( + &self.kind, + GetInventoryErrorKind::InvalidAggregatorException(_) + ) } pub fn is_invalid_filter(&self) -> bool { matches!(&self.kind, GetInventoryErrorKind::InvalidFilter(_)) } - pub fn is_invalid_inventory_group_error(&self) -> bool { + pub fn is_invalid_inventory_group_exception(&self) -> bool { matches!( &self.kind, - GetInventoryErrorKind::InvalidInventoryGroupError(_) + GetInventoryErrorKind::InvalidInventoryGroupException(_) ) } pub fn is_invalid_next_token(&self) -> bool { matches!(&self.kind, GetInventoryErrorKind::InvalidNextToken(_)) } - pub fn is_invalid_result_attribute_error(&self) -> bool { + pub fn is_invalid_result_attribute_exception(&self) -> bool { matches!( &self.kind, - GetInventoryErrorKind::InvalidResultAttributeError(_) + GetInventoryErrorKind::InvalidResultAttributeException(_) ) } - pub fn is_invalid_type_name_error(&self) -> bool { - matches!(&self.kind, GetInventoryErrorKind::InvalidTypeNameError(_)) + pub fn is_invalid_type_name_exception(&self) -> bool { + matches!( + &self.kind, + GetInventoryErrorKind::InvalidTypeNameException(_) + ) } } impl std::error::Error for GetInventoryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetInventoryErrorKind::InternalServerError(_inner) => Some(_inner), - GetInventoryErrorKind::InvalidAggregatorError(_inner) => Some(_inner), + GetInventoryErrorKind::InvalidAggregatorException(_inner) => Some(_inner), GetInventoryErrorKind::InvalidFilter(_inner) => Some(_inner), - GetInventoryErrorKind::InvalidInventoryGroupError(_inner) => Some(_inner), + GetInventoryErrorKind::InvalidInventoryGroupException(_inner) => Some(_inner), GetInventoryErrorKind::InvalidNextToken(_inner) => Some(_inner), - GetInventoryErrorKind::InvalidResultAttributeError(_inner) => Some(_inner), - GetInventoryErrorKind::InvalidTypeNameError(_inner) => Some(_inner), + GetInventoryErrorKind::InvalidResultAttributeException(_inner) => Some(_inner), + GetInventoryErrorKind::InvalidTypeNameException(_inner) => Some(_inner), GetInventoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7006,7 +7065,7 @@ pub struct GetInventorySchemaError { pub enum GetInventorySchemaErrorKind { InternalServerError(crate::error::InternalServerError), InvalidNextToken(crate::error::InvalidNextToken), - InvalidTypeNameError(crate::error::InvalidTypeNameError), + InvalidTypeNameException(crate::error::InvalidTypeNameException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -7015,7 +7074,7 @@ impl std::fmt::Display for GetInventorySchemaError { match &self.kind { GetInventorySchemaErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetInventorySchemaErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), - GetInventorySchemaErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), + GetInventorySchemaErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), GetInventorySchemaErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7073,10 +7132,10 @@ impl GetInventorySchemaError { pub fn is_invalid_next_token(&self) -> bool { matches!(&self.kind, GetInventorySchemaErrorKind::InvalidNextToken(_)) } - pub fn is_invalid_type_name_error(&self) -> bool { + pub fn is_invalid_type_name_exception(&self) -> bool { matches!( &self.kind, - GetInventorySchemaErrorKind::InvalidTypeNameError(_) + GetInventorySchemaErrorKind::InvalidTypeNameException(_) ) } } @@ -7085,7 +7144,7 @@ impl std::error::Error for GetInventorySchemaError { match &self.kind { GetInventorySchemaErrorKind::InternalServerError(_inner) => Some(_inner), GetInventorySchemaErrorKind::InvalidNextToken(_inner) => Some(_inner), - GetInventorySchemaErrorKind::InvalidTypeNameError(_inner) => Some(_inner), + GetInventorySchemaErrorKind::InvalidTypeNameException(_inner) => Some(_inner), GetInventorySchemaErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7100,7 +7159,7 @@ pub struct GetMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -7108,7 +7167,7 @@ pub enum GetMaintenanceWindowErrorKind { impl std::fmt::Display for GetMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMaintenanceWindowErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + GetMaintenanceWindowErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), GetMaintenanceWindowErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -7158,10 +7217,10 @@ impl GetMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - GetMaintenanceWindowErrorKind::DoesNotExistError(_) + GetMaintenanceWindowErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -7174,7 +7233,7 @@ impl GetMaintenanceWindowError { impl std::error::Error for GetMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMaintenanceWindowErrorKind::DoesNotExistError(_inner) => Some(_inner), + GetMaintenanceWindowErrorKind::DoesNotExistException(_inner) => Some(_inner), GetMaintenanceWindowErrorKind::InternalServerError(_inner) => Some(_inner), GetMaintenanceWindowErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -7190,7 +7249,7 @@ pub struct GetMaintenanceWindowExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMaintenanceWindowExecutionErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -7198,7 +7257,7 @@ pub enum GetMaintenanceWindowExecutionErrorKind { impl std::fmt::Display for GetMaintenanceWindowExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMaintenanceWindowExecutionErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + GetMaintenanceWindowExecutionErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), GetMaintenanceWindowExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetMaintenanceWindowExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -7248,10 +7307,10 @@ impl GetMaintenanceWindowExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - GetMaintenanceWindowExecutionErrorKind::DoesNotExistError(_) + GetMaintenanceWindowExecutionErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -7264,7 +7323,7 @@ impl GetMaintenanceWindowExecutionError { impl std::error::Error for GetMaintenanceWindowExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMaintenanceWindowExecutionErrorKind::DoesNotExistError(_inner) => Some(_inner), + GetMaintenanceWindowExecutionErrorKind::DoesNotExistException(_inner) => Some(_inner), GetMaintenanceWindowExecutionErrorKind::InternalServerError(_inner) => Some(_inner), GetMaintenanceWindowExecutionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -7280,7 +7339,7 @@ pub struct GetMaintenanceWindowExecutionTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMaintenanceWindowExecutionTaskErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -7288,7 +7347,9 @@ pub enum GetMaintenanceWindowExecutionTaskErrorKind { impl std::fmt::Display for GetMaintenanceWindowExecutionTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistException(_inner) => { + _inner.fmt(f) + } GetMaintenanceWindowExecutionTaskErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } @@ -7343,10 +7404,10 @@ impl GetMaintenanceWindowExecutionTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistError(_) + GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -7359,7 +7420,9 @@ impl GetMaintenanceWindowExecutionTaskError { impl std::error::Error for GetMaintenanceWindowExecutionTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistError(_inner) => Some(_inner), + GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } GetMaintenanceWindowExecutionTaskErrorKind::InternalServerError(_inner) => Some(_inner), GetMaintenanceWindowExecutionTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -7375,7 +7438,7 @@ pub struct GetMaintenanceWindowExecutionTaskInvocationError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMaintenanceWindowExecutionTaskInvocationErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -7383,7 +7446,7 @@ pub enum GetMaintenanceWindowExecutionTaskInvocationErrorKind { impl std::fmt::Display for GetMaintenanceWindowExecutionTaskInvocationError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistError(_inner) => { + GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } GetMaintenanceWindowExecutionTaskInvocationErrorKind::InternalServerError(_inner) => { @@ -7442,10 +7505,10 @@ impl GetMaintenanceWindowExecutionTaskInvocationError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistError(_) + GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -7458,7 +7521,7 @@ impl GetMaintenanceWindowExecutionTaskInvocationError { impl std::error::Error for GetMaintenanceWindowExecutionTaskInvocationError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistError(_inner) => { + GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistException(_inner) => { Some(_inner) } GetMaintenanceWindowExecutionTaskInvocationErrorKind::InternalServerError(_inner) => { @@ -7480,7 +7543,7 @@ pub struct GetMaintenanceWindowTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetMaintenanceWindowTaskErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -7488,7 +7551,7 @@ pub enum GetMaintenanceWindowTaskErrorKind { impl std::fmt::Display for GetMaintenanceWindowTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetMaintenanceWindowTaskErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + GetMaintenanceWindowTaskErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), GetMaintenanceWindowTaskErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetMaintenanceWindowTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -7538,10 +7601,10 @@ impl GetMaintenanceWindowTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - GetMaintenanceWindowTaskErrorKind::DoesNotExistError(_) + GetMaintenanceWindowTaskErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -7554,7 +7617,7 @@ impl GetMaintenanceWindowTaskError { impl std::error::Error for GetMaintenanceWindowTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetMaintenanceWindowTaskErrorKind::DoesNotExistError(_inner) => Some(_inner), + GetMaintenanceWindowTaskErrorKind::DoesNotExistException(_inner) => Some(_inner), GetMaintenanceWindowTaskErrorKind::InternalServerError(_inner) => Some(_inner), GetMaintenanceWindowTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -7571,7 +7634,7 @@ pub struct GetOpsItemError { #[derive(std::fmt::Debug)] pub enum GetOpsItemErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -7579,7 +7642,7 @@ impl std::fmt::Display for GetOpsItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetOpsItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - GetOpsItemErrorKind::OpsItemNotFoundError(_inner) => _inner.fmt(f), + GetOpsItemErrorKind::OpsItemNotFoundException(_inner) => _inner.fmt(f), GetOpsItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7631,15 +7694,15 @@ impl GetOpsItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, GetOpsItemErrorKind::InternalServerError(_)) } - pub fn is_ops_item_not_found_error(&self) -> bool { - matches!(&self.kind, GetOpsItemErrorKind::OpsItemNotFoundError(_)) + pub fn is_ops_item_not_found_exception(&self) -> bool { + matches!(&self.kind, GetOpsItemErrorKind::OpsItemNotFoundException(_)) } } impl std::error::Error for GetOpsItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetOpsItemErrorKind::InternalServerError(_inner) => Some(_inner), - GetOpsItemErrorKind::OpsItemNotFoundError(_inner) => Some(_inner), + GetOpsItemErrorKind::OpsItemNotFoundException(_inner) => Some(_inner), GetOpsItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7655,8 +7718,8 @@ pub struct GetOpsMetadataError { #[derive(std::fmt::Debug)] pub enum GetOpsMetadataErrorKind { InternalServerError(crate::error::InternalServerError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), - OpsMetadataNotFoundError(crate::error::OpsMetadataNotFoundError), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), + OpsMetadataNotFoundException(crate::error::OpsMetadataNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -7664,8 +7727,8 @@ impl std::fmt::Display for GetOpsMetadataError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetOpsMetadataErrorKind::InternalServerError(_inner) => _inner.fmt(f), - GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => _inner.fmt(f), - GetOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => _inner.fmt(f), + GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => _inner.fmt(f), + GetOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => _inner.fmt(f), GetOpsMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7717,16 +7780,16 @@ impl GetOpsMetadataError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, GetOpsMetadataErrorKind::InternalServerError(_)) } - pub fn is_ops_metadata_invalid_argument_error(&self) -> bool { + pub fn is_ops_metadata_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_) + GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_) ) } - pub fn is_ops_metadata_not_found_error(&self) -> bool { + pub fn is_ops_metadata_not_found_exception(&self) -> bool { matches!( &self.kind, - GetOpsMetadataErrorKind::OpsMetadataNotFoundError(_) + GetOpsMetadataErrorKind::OpsMetadataNotFoundException(_) ) } } @@ -7734,8 +7797,8 @@ impl std::error::Error for GetOpsMetadataError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetOpsMetadataErrorKind::InternalServerError(_inner) => Some(_inner), - GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => Some(_inner), - GetOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => Some(_inner), + GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => Some(_inner), + GetOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => Some(_inner), GetOpsMetadataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -7751,11 +7814,11 @@ pub struct GetOpsSummaryError { #[derive(std::fmt::Debug)] pub enum GetOpsSummaryErrorKind { InternalServerError(crate::error::InternalServerError), - InvalidAggregatorError(crate::error::InvalidAggregatorError), + InvalidAggregatorException(crate::error::InvalidAggregatorException), InvalidFilter(crate::error::InvalidFilter), InvalidNextToken(crate::error::InvalidNextToken), - InvalidTypeNameError(crate::error::InvalidTypeNameError), - ResourceDataSyncNotFoundError(crate::error::ResourceDataSyncNotFoundError), + InvalidTypeNameException(crate::error::InvalidTypeNameException), + ResourceDataSyncNotFoundException(crate::error::ResourceDataSyncNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -7763,11 +7826,11 @@ impl std::fmt::Display for GetOpsSummaryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { GetOpsSummaryErrorKind::InternalServerError(_inner) => _inner.fmt(f), - GetOpsSummaryErrorKind::InvalidAggregatorError(_inner) => _inner.fmt(f), + GetOpsSummaryErrorKind::InvalidAggregatorException(_inner) => _inner.fmt(f), GetOpsSummaryErrorKind::InvalidFilter(_inner) => _inner.fmt(f), GetOpsSummaryErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), - GetOpsSummaryErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), - GetOpsSummaryErrorKind::ResourceDataSyncNotFoundError(_inner) => _inner.fmt(f), + GetOpsSummaryErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), + GetOpsSummaryErrorKind::ResourceDataSyncNotFoundException(_inner) => _inner.fmt(f), GetOpsSummaryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -7819,10 +7882,10 @@ impl GetOpsSummaryError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, GetOpsSummaryErrorKind::InternalServerError(_)) } - pub fn is_invalid_aggregator_error(&self) -> bool { + pub fn is_invalid_aggregator_exception(&self) -> bool { matches!( &self.kind, - GetOpsSummaryErrorKind::InvalidAggregatorError(_) + GetOpsSummaryErrorKind::InvalidAggregatorException(_) ) } pub fn is_invalid_filter(&self) -> bool { @@ -7831,13 +7894,16 @@ impl GetOpsSummaryError { pub fn is_invalid_next_token(&self) -> bool { matches!(&self.kind, GetOpsSummaryErrorKind::InvalidNextToken(_)) } - pub fn is_invalid_type_name_error(&self) -> bool { - matches!(&self.kind, GetOpsSummaryErrorKind::InvalidTypeNameError(_)) + pub fn is_invalid_type_name_exception(&self) -> bool { + matches!( + &self.kind, + GetOpsSummaryErrorKind::InvalidTypeNameException(_) + ) } - pub fn is_resource_data_sync_not_found_error(&self) -> bool { + pub fn is_resource_data_sync_not_found_exception(&self) -> bool { matches!( &self.kind, - GetOpsSummaryErrorKind::ResourceDataSyncNotFoundError(_) + GetOpsSummaryErrorKind::ResourceDataSyncNotFoundException(_) ) } } @@ -7845,11 +7911,11 @@ impl std::error::Error for GetOpsSummaryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { GetOpsSummaryErrorKind::InternalServerError(_inner) => Some(_inner), - GetOpsSummaryErrorKind::InvalidAggregatorError(_inner) => Some(_inner), + GetOpsSummaryErrorKind::InvalidAggregatorException(_inner) => Some(_inner), GetOpsSummaryErrorKind::InvalidFilter(_inner) => Some(_inner), GetOpsSummaryErrorKind::InvalidNextToken(_inner) => Some(_inner), - GetOpsSummaryErrorKind::InvalidTypeNameError(_inner) => Some(_inner), - GetOpsSummaryErrorKind::ResourceDataSyncNotFoundError(_inner) => Some(_inner), + GetOpsSummaryErrorKind::InvalidTypeNameException(_inner) => Some(_inner), + GetOpsSummaryErrorKind::ResourceDataSyncNotFoundException(_inner) => Some(_inner), GetOpsSummaryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -8275,7 +8341,7 @@ pub struct GetPatchBaselineError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetPatchBaselineErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), InvalidResourceId(crate::error::InvalidResourceId), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -8284,7 +8350,7 @@ pub enum GetPatchBaselineErrorKind { impl std::fmt::Display for GetPatchBaselineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetPatchBaselineErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + GetPatchBaselineErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), GetPatchBaselineErrorKind::InternalServerError(_inner) => _inner.fmt(f), GetPatchBaselineErrorKind::InvalidResourceId(_inner) => _inner.fmt(f), GetPatchBaselineErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -8335,8 +8401,11 @@ impl GetPatchBaselineError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { - matches!(&self.kind, GetPatchBaselineErrorKind::DoesNotExistError(_)) + pub fn is_does_not_exist_exception(&self) -> bool { + matches!( + &self.kind, + GetPatchBaselineErrorKind::DoesNotExistException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!( @@ -8351,7 +8420,7 @@ impl GetPatchBaselineError { impl std::error::Error for GetPatchBaselineError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetPatchBaselineErrorKind::DoesNotExistError(_inner) => Some(_inner), + GetPatchBaselineErrorKind::DoesNotExistException(_inner) => Some(_inner), GetPatchBaselineErrorKind::InternalServerError(_inner) => Some(_inner), GetPatchBaselineErrorKind::InvalidResourceId(_inner) => Some(_inner), GetPatchBaselineErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -9579,7 +9648,7 @@ pub enum ListInventoryEntriesErrorKind { InvalidFilter(crate::error::InvalidFilter), InvalidInstanceId(crate::error::InvalidInstanceId), InvalidNextToken(crate::error::InvalidNextToken), - InvalidTypeNameError(crate::error::InvalidTypeNameError), + InvalidTypeNameException(crate::error::InvalidTypeNameException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -9590,7 +9659,7 @@ impl std::fmt::Display for ListInventoryEntriesError { ListInventoryEntriesErrorKind::InvalidFilter(_inner) => _inner.fmt(f), ListInventoryEntriesErrorKind::InvalidInstanceId(_inner) => _inner.fmt(f), ListInventoryEntriesErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), - ListInventoryEntriesErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), + ListInventoryEntriesErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), ListInventoryEntriesErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9660,10 +9729,10 @@ impl ListInventoryEntriesError { ListInventoryEntriesErrorKind::InvalidNextToken(_) ) } - pub fn is_invalid_type_name_error(&self) -> bool { + pub fn is_invalid_type_name_exception(&self) -> bool { matches!( &self.kind, - ListInventoryEntriesErrorKind::InvalidTypeNameError(_) + ListInventoryEntriesErrorKind::InvalidTypeNameException(_) ) } } @@ -9674,7 +9743,7 @@ impl std::error::Error for ListInventoryEntriesError { ListInventoryEntriesErrorKind::InvalidFilter(_inner) => Some(_inner), ListInventoryEntriesErrorKind::InvalidInstanceId(_inner) => Some(_inner), ListInventoryEntriesErrorKind::InvalidNextToken(_inner) => Some(_inner), - ListInventoryEntriesErrorKind::InvalidTypeNameError(_inner) => Some(_inner), + ListInventoryEntriesErrorKind::InvalidTypeNameException(_inner) => Some(_inner), ListInventoryEntriesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9690,9 +9759,9 @@ pub struct ListOpsItemEventsError { #[derive(std::fmt::Debug)] pub enum ListOpsItemEventsErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemLimitExceededError(crate::error::OpsItemLimitExceededError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemLimitExceededException(crate::error::OpsItemLimitExceededException), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -9700,9 +9769,9 @@ impl std::fmt::Display for ListOpsItemEventsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListOpsItemEventsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListOpsItemEventsErrorKind::OpsItemInvalidParameterError(_inner) => _inner.fmt(f), - ListOpsItemEventsErrorKind::OpsItemLimitExceededError(_inner) => _inner.fmt(f), - ListOpsItemEventsErrorKind::OpsItemNotFoundError(_inner) => _inner.fmt(f), + ListOpsItemEventsErrorKind::OpsItemInvalidParameterException(_inner) => _inner.fmt(f), + ListOpsItemEventsErrorKind::OpsItemLimitExceededException(_inner) => _inner.fmt(f), + ListOpsItemEventsErrorKind::OpsItemNotFoundException(_inner) => _inner.fmt(f), ListOpsItemEventsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9757,22 +9826,22 @@ impl ListOpsItemEventsError { ListOpsItemEventsErrorKind::InternalServerError(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListOpsItemEventsErrorKind::OpsItemInvalidParameterError(_) + ListOpsItemEventsErrorKind::OpsItemInvalidParameterException(_) ) } - pub fn is_ops_item_limit_exceeded_error(&self) -> bool { + pub fn is_ops_item_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - ListOpsItemEventsErrorKind::OpsItemLimitExceededError(_) + ListOpsItemEventsErrorKind::OpsItemLimitExceededException(_) ) } - pub fn is_ops_item_not_found_error(&self) -> bool { + pub fn is_ops_item_not_found_exception(&self) -> bool { matches!( &self.kind, - ListOpsItemEventsErrorKind::OpsItemNotFoundError(_) + ListOpsItemEventsErrorKind::OpsItemNotFoundException(_) ) } } @@ -9780,9 +9849,9 @@ impl std::error::Error for ListOpsItemEventsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListOpsItemEventsErrorKind::InternalServerError(_inner) => Some(_inner), - ListOpsItemEventsErrorKind::OpsItemInvalidParameterError(_inner) => Some(_inner), - ListOpsItemEventsErrorKind::OpsItemLimitExceededError(_inner) => Some(_inner), - ListOpsItemEventsErrorKind::OpsItemNotFoundError(_inner) => Some(_inner), + ListOpsItemEventsErrorKind::OpsItemInvalidParameterException(_inner) => Some(_inner), + ListOpsItemEventsErrorKind::OpsItemLimitExceededException(_inner) => Some(_inner), + ListOpsItemEventsErrorKind::OpsItemNotFoundException(_inner) => Some(_inner), ListOpsItemEventsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9798,7 +9867,7 @@ pub struct ListOpsItemRelatedItemsError { #[derive(std::fmt::Debug)] pub enum ListOpsItemRelatedItemsErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -9806,7 +9875,9 @@ impl std::fmt::Display for ListOpsItemRelatedItemsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListOpsItemRelatedItemsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterError(_inner) => _inner.fmt(f), + ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterException(_inner) => { + _inner.fmt(f) + } ListOpsItemRelatedItemsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9861,10 +9932,10 @@ impl ListOpsItemRelatedItemsError { ListOpsItemRelatedItemsErrorKind::InternalServerError(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterError(_) + ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterException(_) ) } } @@ -9872,7 +9943,9 @@ impl std::error::Error for ListOpsItemRelatedItemsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListOpsItemRelatedItemsErrorKind::InternalServerError(_inner) => Some(_inner), - ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterError(_inner) => Some(_inner), + ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterException(_inner) => { + Some(_inner) + } ListOpsItemRelatedItemsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -9888,7 +9961,7 @@ pub struct ListOpsMetadataError { #[derive(std::fmt::Debug)] pub enum ListOpsMetadataErrorKind { InternalServerError(crate::error::InternalServerError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -9896,7 +9969,7 @@ impl std::fmt::Display for ListOpsMetadataError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { ListOpsMetadataErrorKind::InternalServerError(_inner) => _inner.fmt(f), - ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => _inner.fmt(f), + ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => _inner.fmt(f), ListOpsMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -9948,10 +10021,10 @@ impl ListOpsMetadataError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ListOpsMetadataErrorKind::InternalServerError(_)) } - pub fn is_ops_metadata_invalid_argument_error(&self) -> bool { + pub fn is_ops_metadata_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_) + ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_) ) } } @@ -9959,7 +10032,7 @@ impl std::error::Error for ListOpsMetadataError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { ListOpsMetadataErrorKind::InternalServerError(_inner) => Some(_inner), - ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => Some(_inner), + ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => Some(_inner), ListOpsMetadataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10075,8 +10148,8 @@ pub struct ListResourceDataSyncError { pub enum ListResourceDataSyncErrorKind { InternalServerError(crate::error::InternalServerError), InvalidNextToken(crate::error::InvalidNextToken), - ResourceDataSyncInvalidConfigurationError( - crate::error::ResourceDataSyncInvalidConfigurationError, + ResourceDataSyncInvalidConfigurationException( + crate::error::ResourceDataSyncInvalidConfigurationException, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -10086,9 +10159,9 @@ impl std::fmt::Display for ListResourceDataSyncError { match &self.kind { ListResourceDataSyncErrorKind::InternalServerError(_inner) => _inner.fmt(f), ListResourceDataSyncErrorKind::InvalidNextToken(_inner) => _inner.fmt(f), - ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { - _inner.fmt(f) - } + ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => _inner.fmt(f), ListResourceDataSyncErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10149,10 +10222,10 @@ impl ListResourceDataSyncError { ListResourceDataSyncErrorKind::InvalidNextToken(_) ) } - pub fn is_resource_data_sync_invalid_configuration_error(&self) -> bool { + pub fn is_resource_data_sync_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_) + ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(_) ) } } @@ -10161,9 +10234,9 @@ impl std::error::Error for ListResourceDataSyncError { match &self.kind { ListResourceDataSyncErrorKind::InternalServerError(_inner) => Some(_inner), ListResourceDataSyncErrorKind::InvalidNextToken(_inner) => Some(_inner), - ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { - Some(_inner) - } + ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => Some(_inner), ListResourceDataSyncErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10394,28 +10467,30 @@ pub struct PutComplianceItemsError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutComplianceItemsErrorKind { - ComplianceTypeCountLimitExceededError(crate::error::ComplianceTypeCountLimitExceededError), + ComplianceTypeCountLimitExceededException( + crate::error::ComplianceTypeCountLimitExceededException, + ), InternalServerError(crate::error::InternalServerError), - InvalidItemContentError(crate::error::InvalidItemContentError), + InvalidItemContentException(crate::error::InvalidItemContentException), InvalidResourceId(crate::error::InvalidResourceId), InvalidResourceType(crate::error::InvalidResourceType), - ItemSizeLimitExceededError(crate::error::ItemSizeLimitExceededError), - TotalSizeLimitExceededError(crate::error::TotalSizeLimitExceededError), + ItemSizeLimitExceededException(crate::error::ItemSizeLimitExceededException), + TotalSizeLimitExceededException(crate::error::TotalSizeLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutComplianceItemsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededError(_inner) => { + PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededException(_inner) => { _inner.fmt(f) } PutComplianceItemsErrorKind::InternalServerError(_inner) => _inner.fmt(f), - PutComplianceItemsErrorKind::InvalidItemContentError(_inner) => _inner.fmt(f), + PutComplianceItemsErrorKind::InvalidItemContentException(_inner) => _inner.fmt(f), PutComplianceItemsErrorKind::InvalidResourceId(_inner) => _inner.fmt(f), PutComplianceItemsErrorKind::InvalidResourceType(_inner) => _inner.fmt(f), - PutComplianceItemsErrorKind::ItemSizeLimitExceededError(_inner) => _inner.fmt(f), - PutComplianceItemsErrorKind::TotalSizeLimitExceededError(_inner) => _inner.fmt(f), + PutComplianceItemsErrorKind::ItemSizeLimitExceededException(_inner) => _inner.fmt(f), + PutComplianceItemsErrorKind::TotalSizeLimitExceededException(_inner) => _inner.fmt(f), PutComplianceItemsErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10464,10 +10539,10 @@ impl PutComplianceItemsError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_compliance_type_count_limit_exceeded_error(&self) -> bool { + pub fn is_compliance_type_count_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededError(_) + PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -10476,10 +10551,10 @@ impl PutComplianceItemsError { PutComplianceItemsErrorKind::InternalServerError(_) ) } - pub fn is_invalid_item_content_error(&self) -> bool { + pub fn is_invalid_item_content_exception(&self) -> bool { matches!( &self.kind, - PutComplianceItemsErrorKind::InvalidItemContentError(_) + PutComplianceItemsErrorKind::InvalidItemContentException(_) ) } pub fn is_invalid_resource_id(&self) -> bool { @@ -10494,31 +10569,31 @@ impl PutComplianceItemsError { PutComplianceItemsErrorKind::InvalidResourceType(_) ) } - pub fn is_item_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutComplianceItemsErrorKind::ItemSizeLimitExceededError(_) + PutComplianceItemsErrorKind::ItemSizeLimitExceededException(_) ) } - pub fn is_total_size_limit_exceeded_error(&self) -> bool { + pub fn is_total_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutComplianceItemsErrorKind::TotalSizeLimitExceededError(_) + PutComplianceItemsErrorKind::TotalSizeLimitExceededException(_) ) } } impl std::error::Error for PutComplianceItemsError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededError(_inner) => { + PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededException(_inner) => { Some(_inner) } PutComplianceItemsErrorKind::InternalServerError(_inner) => Some(_inner), - PutComplianceItemsErrorKind::InvalidItemContentError(_inner) => Some(_inner), + PutComplianceItemsErrorKind::InvalidItemContentException(_inner) => Some(_inner), PutComplianceItemsErrorKind::InvalidResourceId(_inner) => Some(_inner), PutComplianceItemsErrorKind::InvalidResourceType(_inner) => Some(_inner), - PutComplianceItemsErrorKind::ItemSizeLimitExceededError(_inner) => Some(_inner), - PutComplianceItemsErrorKind::TotalSizeLimitExceededError(_inner) => Some(_inner), + PutComplianceItemsErrorKind::ItemSizeLimitExceededException(_inner) => Some(_inner), + PutComplianceItemsErrorKind::TotalSizeLimitExceededException(_inner) => Some(_inner), PutComplianceItemsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10533,36 +10608,44 @@ pub struct PutInventoryError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutInventoryErrorKind { - CustomSchemaCountLimitExceededError(crate::error::CustomSchemaCountLimitExceededError), + CustomSchemaCountLimitExceededException(crate::error::CustomSchemaCountLimitExceededException), InternalServerError(crate::error::InternalServerError), InvalidInstanceId(crate::error::InvalidInstanceId), - InvalidInventoryItemContextError(crate::error::InvalidInventoryItemContextError), - InvalidItemContentError(crate::error::InvalidItemContentError), - InvalidTypeNameError(crate::error::InvalidTypeNameError), - ItemContentMismatchError(crate::error::ItemContentMismatchError), - ItemSizeLimitExceededError(crate::error::ItemSizeLimitExceededError), - SubTypeCountLimitExceededError(crate::error::SubTypeCountLimitExceededError), - TotalSizeLimitExceededError(crate::error::TotalSizeLimitExceededError), - UnsupportedInventoryItemContextError(crate::error::UnsupportedInventoryItemContextError), - UnsupportedInventorySchemaVersionError(crate::error::UnsupportedInventorySchemaVersionError), + InvalidInventoryItemContextException(crate::error::InvalidInventoryItemContextException), + InvalidItemContentException(crate::error::InvalidItemContentException), + InvalidTypeNameException(crate::error::InvalidTypeNameException), + ItemContentMismatchException(crate::error::ItemContentMismatchException), + ItemSizeLimitExceededException(crate::error::ItemSizeLimitExceededException), + SubTypeCountLimitExceededException(crate::error::SubTypeCountLimitExceededException), + TotalSizeLimitExceededException(crate::error::TotalSizeLimitExceededException), + UnsupportedInventoryItemContextException( + crate::error::UnsupportedInventoryItemContextException, + ), + UnsupportedInventorySchemaVersionException( + crate::error::UnsupportedInventorySchemaVersionException, + ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for PutInventoryError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutInventoryErrorKind::CustomSchemaCountLimitExceededError(_inner) => _inner.fmt(f), + PutInventoryErrorKind::CustomSchemaCountLimitExceededException(_inner) => _inner.fmt(f), PutInventoryErrorKind::InternalServerError(_inner) => _inner.fmt(f), PutInventoryErrorKind::InvalidInstanceId(_inner) => _inner.fmt(f), - PutInventoryErrorKind::InvalidInventoryItemContextError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::InvalidItemContentError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::InvalidTypeNameError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::ItemContentMismatchError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::ItemSizeLimitExceededError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::SubTypeCountLimitExceededError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::TotalSizeLimitExceededError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::UnsupportedInventoryItemContextError(_inner) => _inner.fmt(f), - PutInventoryErrorKind::UnsupportedInventorySchemaVersionError(_inner) => _inner.fmt(f), + PutInventoryErrorKind::InvalidInventoryItemContextException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::InvalidItemContentException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::InvalidTypeNameException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::ItemContentMismatchException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::ItemSizeLimitExceededException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::SubTypeCountLimitExceededException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::TotalSizeLimitExceededException(_inner) => _inner.fmt(f), + PutInventoryErrorKind::UnsupportedInventoryItemContextException(_inner) => { + _inner.fmt(f) + } + PutInventoryErrorKind::UnsupportedInventorySchemaVersionException(_inner) => { + _inner.fmt(f) + } PutInventoryErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -10611,10 +10694,10 @@ impl PutInventoryError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_custom_schema_count_limit_exceeded_error(&self) -> bool { + pub fn is_custom_schema_count_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::CustomSchemaCountLimitExceededError(_) + PutInventoryErrorKind::CustomSchemaCountLimitExceededException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -10623,73 +10706,78 @@ impl PutInventoryError { pub fn is_invalid_instance_id(&self) -> bool { matches!(&self.kind, PutInventoryErrorKind::InvalidInstanceId(_)) } - pub fn is_invalid_inventory_item_context_error(&self) -> bool { + pub fn is_invalid_inventory_item_context_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::InvalidInventoryItemContextError(_) + PutInventoryErrorKind::InvalidInventoryItemContextException(_) ) } - pub fn is_invalid_item_content_error(&self) -> bool { + pub fn is_invalid_item_content_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::InvalidItemContentError(_) + PutInventoryErrorKind::InvalidItemContentException(_) ) } - pub fn is_invalid_type_name_error(&self) -> bool { - matches!(&self.kind, PutInventoryErrorKind::InvalidTypeNameError(_)) + pub fn is_invalid_type_name_exception(&self) -> bool { + matches!( + &self.kind, + PutInventoryErrorKind::InvalidTypeNameException(_) + ) } - pub fn is_item_content_mismatch_error(&self) -> bool { + pub fn is_item_content_mismatch_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::ItemContentMismatchError(_) + PutInventoryErrorKind::ItemContentMismatchException(_) ) } - pub fn is_item_size_limit_exceeded_error(&self) -> bool { + pub fn is_item_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::ItemSizeLimitExceededError(_) + PutInventoryErrorKind::ItemSizeLimitExceededException(_) ) } - pub fn is_sub_type_count_limit_exceeded_error(&self) -> bool { + pub fn is_sub_type_count_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::SubTypeCountLimitExceededError(_) + PutInventoryErrorKind::SubTypeCountLimitExceededException(_) ) } - pub fn is_total_size_limit_exceeded_error(&self) -> bool { + pub fn is_total_size_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::TotalSizeLimitExceededError(_) + PutInventoryErrorKind::TotalSizeLimitExceededException(_) ) } - pub fn is_unsupported_inventory_item_context_error(&self) -> bool { + pub fn is_unsupported_inventory_item_context_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::UnsupportedInventoryItemContextError(_) + PutInventoryErrorKind::UnsupportedInventoryItemContextException(_) ) } - pub fn is_unsupported_inventory_schema_version_error(&self) -> bool { + pub fn is_unsupported_inventory_schema_version_exception(&self) -> bool { matches!( &self.kind, - PutInventoryErrorKind::UnsupportedInventorySchemaVersionError(_) + PutInventoryErrorKind::UnsupportedInventorySchemaVersionException(_) ) } } impl std::error::Error for PutInventoryError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutInventoryErrorKind::CustomSchemaCountLimitExceededError(_inner) => Some(_inner), + PutInventoryErrorKind::CustomSchemaCountLimitExceededException(_inner) => Some(_inner), PutInventoryErrorKind::InternalServerError(_inner) => Some(_inner), PutInventoryErrorKind::InvalidInstanceId(_inner) => Some(_inner), - PutInventoryErrorKind::InvalidInventoryItemContextError(_inner) => Some(_inner), - PutInventoryErrorKind::InvalidItemContentError(_inner) => Some(_inner), - PutInventoryErrorKind::InvalidTypeNameError(_inner) => Some(_inner), - PutInventoryErrorKind::ItemContentMismatchError(_inner) => Some(_inner), - PutInventoryErrorKind::ItemSizeLimitExceededError(_inner) => Some(_inner), - PutInventoryErrorKind::SubTypeCountLimitExceededError(_inner) => Some(_inner), - PutInventoryErrorKind::TotalSizeLimitExceededError(_inner) => Some(_inner), - PutInventoryErrorKind::UnsupportedInventoryItemContextError(_inner) => Some(_inner), - PutInventoryErrorKind::UnsupportedInventorySchemaVersionError(_inner) => Some(_inner), + PutInventoryErrorKind::InvalidInventoryItemContextException(_inner) => Some(_inner), + PutInventoryErrorKind::InvalidItemContentException(_inner) => Some(_inner), + PutInventoryErrorKind::InvalidTypeNameException(_inner) => Some(_inner), + PutInventoryErrorKind::ItemContentMismatchException(_inner) => Some(_inner), + PutInventoryErrorKind::ItemSizeLimitExceededException(_inner) => Some(_inner), + PutInventoryErrorKind::SubTypeCountLimitExceededException(_inner) => Some(_inner), + PutInventoryErrorKind::TotalSizeLimitExceededException(_inner) => Some(_inner), + PutInventoryErrorKind::UnsupportedInventoryItemContextException(_inner) => Some(_inner), + PutInventoryErrorKind::UnsupportedInventorySchemaVersionException(_inner) => { + Some(_inner) + } PutInventoryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -10704,19 +10792,19 @@ pub struct PutParameterError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum PutParameterErrorKind { - HierarchyLevelLimitExceededError(crate::error::HierarchyLevelLimitExceededError), - HierarchyTypeMismatchError(crate::error::HierarchyTypeMismatchError), - IncompatiblePolicyError(crate::error::IncompatiblePolicyError), + HierarchyLevelLimitExceededException(crate::error::HierarchyLevelLimitExceededException), + HierarchyTypeMismatchException(crate::error::HierarchyTypeMismatchException), + IncompatiblePolicyException(crate::error::IncompatiblePolicyException), InternalServerError(crate::error::InternalServerError), - InvalidAllowedPatternError(crate::error::InvalidAllowedPatternError), + InvalidAllowedPatternException(crate::error::InvalidAllowedPatternException), InvalidKeyId(crate::error::InvalidKeyId), - InvalidPolicyAttributeError(crate::error::InvalidPolicyAttributeError), - InvalidPolicyTypeError(crate::error::InvalidPolicyTypeError), + InvalidPolicyAttributeException(crate::error::InvalidPolicyAttributeException), + InvalidPolicyTypeException(crate::error::InvalidPolicyTypeException), ParameterAlreadyExists(crate::error::ParameterAlreadyExists), ParameterLimitExceeded(crate::error::ParameterLimitExceeded), ParameterMaxVersionLimitExceeded(crate::error::ParameterMaxVersionLimitExceeded), - ParameterPatternMismatchError(crate::error::ParameterPatternMismatchError), - PoliciesLimitExceededError(crate::error::PoliciesLimitExceededError), + ParameterPatternMismatchException(crate::error::ParameterPatternMismatchException), + PoliciesLimitExceededException(crate::error::PoliciesLimitExceededException), TooManyUpdates(crate::error::TooManyUpdates), UnsupportedParameterType(crate::error::UnsupportedParameterType), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -10725,19 +10813,19 @@ pub enum PutParameterErrorKind { impl std::fmt::Display for PutParameterError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - PutParameterErrorKind::HierarchyLevelLimitExceededError(_inner) => _inner.fmt(f), - PutParameterErrorKind::HierarchyTypeMismatchError(_inner) => _inner.fmt(f), - PutParameterErrorKind::IncompatiblePolicyError(_inner) => _inner.fmt(f), + PutParameterErrorKind::HierarchyLevelLimitExceededException(_inner) => _inner.fmt(f), + PutParameterErrorKind::HierarchyTypeMismatchException(_inner) => _inner.fmt(f), + PutParameterErrorKind::IncompatiblePolicyException(_inner) => _inner.fmt(f), PutParameterErrorKind::InternalServerError(_inner) => _inner.fmt(f), - PutParameterErrorKind::InvalidAllowedPatternError(_inner) => _inner.fmt(f), + PutParameterErrorKind::InvalidAllowedPatternException(_inner) => _inner.fmt(f), PutParameterErrorKind::InvalidKeyId(_inner) => _inner.fmt(f), - PutParameterErrorKind::InvalidPolicyAttributeError(_inner) => _inner.fmt(f), - PutParameterErrorKind::InvalidPolicyTypeError(_inner) => _inner.fmt(f), + PutParameterErrorKind::InvalidPolicyAttributeException(_inner) => _inner.fmt(f), + PutParameterErrorKind::InvalidPolicyTypeException(_inner) => _inner.fmt(f), PutParameterErrorKind::ParameterAlreadyExists(_inner) => _inner.fmt(f), PutParameterErrorKind::ParameterLimitExceeded(_inner) => _inner.fmt(f), PutParameterErrorKind::ParameterMaxVersionLimitExceeded(_inner) => _inner.fmt(f), - PutParameterErrorKind::ParameterPatternMismatchError(_inner) => _inner.fmt(f), - PutParameterErrorKind::PoliciesLimitExceededError(_inner) => _inner.fmt(f), + PutParameterErrorKind::ParameterPatternMismatchException(_inner) => _inner.fmt(f), + PutParameterErrorKind::PoliciesLimitExceededException(_inner) => _inner.fmt(f), PutParameterErrorKind::TooManyUpdates(_inner) => _inner.fmt(f), PutParameterErrorKind::UnsupportedParameterType(_inner) => _inner.fmt(f), PutParameterErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -10788,44 +10876,47 @@ impl PutParameterError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_hierarchy_level_limit_exceeded_error(&self) -> bool { + pub fn is_hierarchy_level_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::HierarchyLevelLimitExceededError(_) + PutParameterErrorKind::HierarchyLevelLimitExceededException(_) ) } - pub fn is_hierarchy_type_mismatch_error(&self) -> bool { + pub fn is_hierarchy_type_mismatch_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::HierarchyTypeMismatchError(_) + PutParameterErrorKind::HierarchyTypeMismatchException(_) ) } - pub fn is_incompatible_policy_error(&self) -> bool { + pub fn is_incompatible_policy_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::IncompatiblePolicyError(_) + PutParameterErrorKind::IncompatiblePolicyException(_) ) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, PutParameterErrorKind::InternalServerError(_)) } - pub fn is_invalid_allowed_pattern_error(&self) -> bool { + pub fn is_invalid_allowed_pattern_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::InvalidAllowedPatternError(_) + PutParameterErrorKind::InvalidAllowedPatternException(_) ) } pub fn is_invalid_key_id(&self) -> bool { matches!(&self.kind, PutParameterErrorKind::InvalidKeyId(_)) } - pub fn is_invalid_policy_attribute_error(&self) -> bool { + pub fn is_invalid_policy_attribute_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::InvalidPolicyAttributeError(_) + PutParameterErrorKind::InvalidPolicyAttributeException(_) ) } - pub fn is_invalid_policy_type_error(&self) -> bool { - matches!(&self.kind, PutParameterErrorKind::InvalidPolicyTypeError(_)) + pub fn is_invalid_policy_type_exception(&self) -> bool { + matches!( + &self.kind, + PutParameterErrorKind::InvalidPolicyTypeException(_) + ) } pub fn is_parameter_already_exists(&self) -> bool { matches!(&self.kind, PutParameterErrorKind::ParameterAlreadyExists(_)) @@ -10839,16 +10930,16 @@ impl PutParameterError { PutParameterErrorKind::ParameterMaxVersionLimitExceeded(_) ) } - pub fn is_parameter_pattern_mismatch_error(&self) -> bool { + pub fn is_parameter_pattern_mismatch_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::ParameterPatternMismatchError(_) + PutParameterErrorKind::ParameterPatternMismatchException(_) ) } - pub fn is_policies_limit_exceeded_error(&self) -> bool { + pub fn is_policies_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - PutParameterErrorKind::PoliciesLimitExceededError(_) + PutParameterErrorKind::PoliciesLimitExceededException(_) ) } pub fn is_too_many_updates(&self) -> bool { @@ -10864,19 +10955,19 @@ impl PutParameterError { impl std::error::Error for PutParameterError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - PutParameterErrorKind::HierarchyLevelLimitExceededError(_inner) => Some(_inner), - PutParameterErrorKind::HierarchyTypeMismatchError(_inner) => Some(_inner), - PutParameterErrorKind::IncompatiblePolicyError(_inner) => Some(_inner), + PutParameterErrorKind::HierarchyLevelLimitExceededException(_inner) => Some(_inner), + PutParameterErrorKind::HierarchyTypeMismatchException(_inner) => Some(_inner), + PutParameterErrorKind::IncompatiblePolicyException(_inner) => Some(_inner), PutParameterErrorKind::InternalServerError(_inner) => Some(_inner), - PutParameterErrorKind::InvalidAllowedPatternError(_inner) => Some(_inner), + PutParameterErrorKind::InvalidAllowedPatternException(_inner) => Some(_inner), PutParameterErrorKind::InvalidKeyId(_inner) => Some(_inner), - PutParameterErrorKind::InvalidPolicyAttributeError(_inner) => Some(_inner), - PutParameterErrorKind::InvalidPolicyTypeError(_inner) => Some(_inner), + PutParameterErrorKind::InvalidPolicyAttributeException(_inner) => Some(_inner), + PutParameterErrorKind::InvalidPolicyTypeException(_inner) => Some(_inner), PutParameterErrorKind::ParameterAlreadyExists(_inner) => Some(_inner), PutParameterErrorKind::ParameterLimitExceeded(_inner) => Some(_inner), PutParameterErrorKind::ParameterMaxVersionLimitExceeded(_inner) => Some(_inner), - PutParameterErrorKind::ParameterPatternMismatchError(_inner) => Some(_inner), - PutParameterErrorKind::PoliciesLimitExceededError(_inner) => Some(_inner), + PutParameterErrorKind::ParameterPatternMismatchException(_inner) => Some(_inner), + PutParameterErrorKind::PoliciesLimitExceededException(_inner) => Some(_inner), PutParameterErrorKind::TooManyUpdates(_inner) => Some(_inner), PutParameterErrorKind::UnsupportedParameterType(_inner) => Some(_inner), PutParameterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10893,7 +10984,7 @@ pub struct RegisterDefaultPatchBaselineError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterDefaultPatchBaselineErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), InvalidResourceId(crate::error::InvalidResourceId), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -10902,7 +10993,7 @@ pub enum RegisterDefaultPatchBaselineErrorKind { impl std::fmt::Display for RegisterDefaultPatchBaselineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterDefaultPatchBaselineErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + RegisterDefaultPatchBaselineErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), RegisterDefaultPatchBaselineErrorKind::InternalServerError(_inner) => _inner.fmt(f), RegisterDefaultPatchBaselineErrorKind::InvalidResourceId(_inner) => _inner.fmt(f), RegisterDefaultPatchBaselineErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -10953,10 +11044,10 @@ impl RegisterDefaultPatchBaselineError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - RegisterDefaultPatchBaselineErrorKind::DoesNotExistError(_) + RegisterDefaultPatchBaselineErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -10975,7 +11066,7 @@ impl RegisterDefaultPatchBaselineError { impl std::error::Error for RegisterDefaultPatchBaselineError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterDefaultPatchBaselineErrorKind::DoesNotExistError(_inner) => Some(_inner), + RegisterDefaultPatchBaselineErrorKind::DoesNotExistException(_inner) => Some(_inner), RegisterDefaultPatchBaselineErrorKind::InternalServerError(_inner) => Some(_inner), RegisterDefaultPatchBaselineErrorKind::InvalidResourceId(_inner) => Some(_inner), RegisterDefaultPatchBaselineErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -10992,26 +11083,28 @@ pub struct RegisterPatchBaselineForPatchGroupError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterPatchBaselineForPatchGroupErrorKind { - AlreadyExistsError(crate::error::AlreadyExistsError), - DoesNotExistError(crate::error::DoesNotExistError), + AlreadyExistsException(crate::error::AlreadyExistsException), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), InvalidResourceId(crate::error::InvalidResourceId), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterPatchBaselineForPatchGroupError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsError(_inner) => { + RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsException(_inner) => { + _inner.fmt(f) + } + RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } - RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), RegisterPatchBaselineForPatchGroupErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(_inner) => _inner.fmt(f), - RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededError(_inner) => { + RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededException(_inner) => { _inner.fmt(f) } RegisterPatchBaselineForPatchGroupErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11065,16 +11158,16 @@ impl RegisterPatchBaselineForPatchGroupError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_already_exists_error(&self) -> bool { + pub fn is_already_exists_exception(&self) -> bool { matches!( &self.kind, - RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsError(_) + RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsException(_) ) } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistError(_) + RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -11089,23 +11182,27 @@ impl RegisterPatchBaselineForPatchGroupError { RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(_) ) } - pub fn is_resource_limit_exceeded_error(&self) -> bool { + pub fn is_resource_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededError(_) + RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededException(_) ) } } impl std::error::Error for RegisterPatchBaselineForPatchGroupError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsError(_inner) => Some(_inner), - RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistError(_inner) => Some(_inner), + RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsException(_inner) => { + Some(_inner) + } + RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } RegisterPatchBaselineForPatchGroupErrorKind::InternalServerError(_inner) => { Some(_inner) } RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(_inner) => Some(_inner), - RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededError(_inner) => { + RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededException(_inner) => { Some(_inner) } RegisterPatchBaselineForPatchGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -11122,17 +11219,17 @@ pub struct RegisterTargetWithMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterTargetWithMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterTargetWithMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistError(_inner) => { + RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { _inner.fmt(f) } RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => { @@ -11141,9 +11238,9 @@ impl std::fmt::Display for RegisterTargetWithMaintenanceWindowError { RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => { - _inner.fmt(f) - } + RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededException( + _inner, + ) => _inner.fmt(f), RegisterTargetWithMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11195,10 +11292,10 @@ impl RegisterTargetWithMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistError(_) + RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistException(_) ) } pub fn is_idempotent_parameter_mismatch(&self) -> bool { @@ -11213,26 +11310,28 @@ impl RegisterTargetWithMaintenanceWindowError { RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(_) ) } - pub fn is_resource_limit_exceeded_error(&self) -> bool { + pub fn is_resource_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_) + RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededException(_) ) } } impl std::error::Error for RegisterTargetWithMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistError(_inner) => Some(_inner), - RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => { + RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { Some(_inner) } - RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(_inner) => { + RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => { Some(_inner) } - RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => { + RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(_inner) => { Some(_inner) } + RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededException( + _inner, + ) => Some(_inner), RegisterTargetWithMaintenanceWindowErrorKind::Unhandled(_inner) => { Some(_inner.as_ref()) } @@ -11249,19 +11348,21 @@ pub struct RegisterTaskWithMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum RegisterTaskWithMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), - FeatureNotAvailableError(crate::error::FeatureNotAvailableError), + DoesNotExistException(crate::error::DoesNotExistException), + FeatureNotAvailableException(crate::error::FeatureNotAvailableException), IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for RegisterTaskWithMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), - RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableError(_inner) => { + RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { + _inner.fmt(f) + } + RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableException(_inner) => { _inner.fmt(f) } RegisterTaskWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => { @@ -11270,7 +11371,7 @@ impl std::fmt::Display for RegisterTaskWithMaintenanceWindowError { RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError(_inner) => { _inner.fmt(f) } - RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => { + RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededException(_inner) => { _inner.fmt(f) } RegisterTaskWithMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -11324,16 +11425,16 @@ impl RegisterTaskWithMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistError(_) + RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistException(_) ) } - pub fn is_feature_not_available_error(&self) -> bool { + pub fn is_feature_not_available_exception(&self) -> bool { matches!( &self.kind, - RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableError(_) + RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableException(_) ) } pub fn is_idempotent_parameter_mismatch(&self) -> bool { @@ -11348,25 +11449,27 @@ impl RegisterTaskWithMaintenanceWindowError { RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError(_) ) } - pub fn is_resource_limit_exceeded_error(&self) -> bool { + pub fn is_resource_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_) + RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededException(_) ) } } impl std::error::Error for RegisterTaskWithMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistError(_inner) => Some(_inner), - RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableError(_inner) => { + RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistException(_inner) => { + Some(_inner) + } + RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableException(_inner) => { Some(_inner) } RegisterTaskWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(_inner) => { Some(_inner) } RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError(_inner) => Some(_inner), - RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededError(_inner) => { + RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededException(_inner) => { Some(_inner) } RegisterTaskWithMaintenanceWindowErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -11587,7 +11690,7 @@ pub struct ResumeSessionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum ResumeSessionErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -11595,7 +11698,7 @@ pub enum ResumeSessionErrorKind { impl std::fmt::Display for ResumeSessionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - ResumeSessionErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + ResumeSessionErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), ResumeSessionErrorKind::InternalServerError(_inner) => _inner.fmt(f), ResumeSessionErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -11645,8 +11748,8 @@ impl ResumeSessionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { - matches!(&self.kind, ResumeSessionErrorKind::DoesNotExistError(_)) + pub fn is_does_not_exist_exception(&self) -> bool { + matches!(&self.kind, ResumeSessionErrorKind::DoesNotExistException(_)) } pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, ResumeSessionErrorKind::InternalServerError(_)) @@ -11655,7 +11758,7 @@ impl ResumeSessionError { impl std::error::Error for ResumeSessionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - ResumeSessionErrorKind::DoesNotExistError(_inner) => Some(_inner), + ResumeSessionErrorKind::DoesNotExistException(_inner) => Some(_inner), ResumeSessionErrorKind::InternalServerError(_inner) => Some(_inner), ResumeSessionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -11671,22 +11774,24 @@ pub struct SendAutomationSignalError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum SendAutomationSignalErrorKind { - AutomationExecutionNotFoundError(crate::error::AutomationExecutionNotFoundError), - AutomationStepNotFoundError(crate::error::AutomationStepNotFoundError), + AutomationExecutionNotFoundException(crate::error::AutomationExecutionNotFoundException), + AutomationStepNotFoundException(crate::error::AutomationStepNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidAutomationSignalError(crate::error::InvalidAutomationSignalError), + InvalidAutomationSignalException(crate::error::InvalidAutomationSignalException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for SendAutomationSignalError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - SendAutomationSignalErrorKind::AutomationExecutionNotFoundError(_inner) => { + SendAutomationSignalErrorKind::AutomationExecutionNotFoundException(_inner) => { _inner.fmt(f) } - SendAutomationSignalErrorKind::AutomationStepNotFoundError(_inner) => _inner.fmt(f), + SendAutomationSignalErrorKind::AutomationStepNotFoundException(_inner) => _inner.fmt(f), SendAutomationSignalErrorKind::InternalServerError(_inner) => _inner.fmt(f), - SendAutomationSignalErrorKind::InvalidAutomationSignalError(_inner) => _inner.fmt(f), + SendAutomationSignalErrorKind::InvalidAutomationSignalException(_inner) => { + _inner.fmt(f) + } SendAutomationSignalErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -11735,16 +11840,16 @@ impl SendAutomationSignalError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_execution_not_found_error(&self) -> bool { + pub fn is_automation_execution_not_found_exception(&self) -> bool { matches!( &self.kind, - SendAutomationSignalErrorKind::AutomationExecutionNotFoundError(_) + SendAutomationSignalErrorKind::AutomationExecutionNotFoundException(_) ) } - pub fn is_automation_step_not_found_error(&self) -> bool { + pub fn is_automation_step_not_found_exception(&self) -> bool { matches!( &self.kind, - SendAutomationSignalErrorKind::AutomationStepNotFoundError(_) + SendAutomationSignalErrorKind::AutomationStepNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -11753,20 +11858,22 @@ impl SendAutomationSignalError { SendAutomationSignalErrorKind::InternalServerError(_) ) } - pub fn is_invalid_automation_signal_error(&self) -> bool { + pub fn is_invalid_automation_signal_exception(&self) -> bool { matches!( &self.kind, - SendAutomationSignalErrorKind::InvalidAutomationSignalError(_) + SendAutomationSignalErrorKind::InvalidAutomationSignalException(_) ) } } impl std::error::Error for SendAutomationSignalError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - SendAutomationSignalErrorKind::AutomationExecutionNotFoundError(_inner) => Some(_inner), - SendAutomationSignalErrorKind::AutomationStepNotFoundError(_inner) => Some(_inner), + SendAutomationSignalErrorKind::AutomationExecutionNotFoundException(_inner) => { + Some(_inner) + } + SendAutomationSignalErrorKind::AutomationStepNotFoundException(_inner) => Some(_inner), SendAutomationSignalErrorKind::InternalServerError(_inner) => Some(_inner), - SendAutomationSignalErrorKind::InvalidAutomationSignalError(_inner) => Some(_inner), + SendAutomationSignalErrorKind::InvalidAutomationSignalException(_inner) => Some(_inner), SendAutomationSignalErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -12012,15 +12119,17 @@ pub struct StartAutomationExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartAutomationExecutionErrorKind { - AutomationDefinitionNotFoundError(crate::error::AutomationDefinitionNotFoundError), - AutomationDefinitionVersionNotFoundError( - crate::error::AutomationDefinitionVersionNotFoundError, + AutomationDefinitionNotFoundException(crate::error::AutomationDefinitionNotFoundException), + AutomationDefinitionVersionNotFoundException( + crate::error::AutomationDefinitionVersionNotFoundException, + ), + AutomationExecutionLimitExceededException( + crate::error::AutomationExecutionLimitExceededException, ), - AutomationExecutionLimitExceededError(crate::error::AutomationExecutionLimitExceededError), IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - InvalidAutomationExecutionParametersError( - crate::error::InvalidAutomationExecutionParametersError, + InvalidAutomationExecutionParametersException( + crate::error::InvalidAutomationExecutionParametersException, ), InvalidTarget(crate::error::InvalidTarget), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code @@ -12029,18 +12138,18 @@ pub enum StartAutomationExecutionErrorKind { impl std::fmt::Display for StartAutomationExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundError(_inner) => { - _inner.fmt(f) - } - StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundError(_inner) => { - _inner.fmt(f) - } - StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededError(_inner) => { + StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundException(_inner) => { _inner.fmt(f) } + StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundException( + _inner, + ) => _inner.fmt(f), + StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededException( + _inner, + ) => _inner.fmt(f), StartAutomationExecutionErrorKind::IdempotentParameterMismatch(_inner) => _inner.fmt(f), StartAutomationExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), - StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersError( + StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersException( _inner, ) => _inner.fmt(f), StartAutomationExecutionErrorKind::InvalidTarget(_inner) => _inner.fmt(f), @@ -12092,22 +12201,22 @@ impl StartAutomationExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_definition_not_found_error(&self) -> bool { + pub fn is_automation_definition_not_found_exception(&self) -> bool { matches!( &self.kind, - StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundError(_) + StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundException(_) ) } - pub fn is_automation_definition_version_not_found_error(&self) -> bool { + pub fn is_automation_definition_version_not_found_exception(&self) -> bool { matches!( &self.kind, - StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundError(_) + StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundException(_) ) } - pub fn is_automation_execution_limit_exceeded_error(&self) -> bool { + pub fn is_automation_execution_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededError(_) + StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededException(_) ) } pub fn is_idempotent_parameter_mismatch(&self) -> bool { @@ -12122,10 +12231,10 @@ impl StartAutomationExecutionError { StartAutomationExecutionErrorKind::InternalServerError(_) ) } - pub fn is_invalid_automation_execution_parameters_error(&self) -> bool { + pub fn is_invalid_automation_execution_parameters_exception(&self) -> bool { matches!( &self.kind, - StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersError(_) + StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersException(_) ) } pub fn is_invalid_target(&self) -> bool { @@ -12138,18 +12247,18 @@ impl StartAutomationExecutionError { impl std::error::Error for StartAutomationExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundError(_inner) => { - Some(_inner) - } - StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundError(_inner) => { - Some(_inner) - } - StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededError(_inner) => { + StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundException(_inner) => { Some(_inner) } + StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundException( + _inner, + ) => Some(_inner), + StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededException( + _inner, + ) => Some(_inner), StartAutomationExecutionErrorKind::IdempotentParameterMismatch(_inner) => Some(_inner), StartAutomationExecutionErrorKind::InternalServerError(_inner) => Some(_inner), - StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersError( + StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersException( _inner, ) => Some(_inner), StartAutomationExecutionErrorKind::InvalidTarget(_inner) => Some(_inner), @@ -12167,16 +12276,20 @@ pub struct StartChangeRequestExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StartChangeRequestExecutionErrorKind { - AutomationDefinitionNotApprovedError(crate::error::AutomationDefinitionNotApprovedError), - AutomationDefinitionNotFoundError(crate::error::AutomationDefinitionNotFoundError), - AutomationDefinitionVersionNotFoundError( - crate::error::AutomationDefinitionVersionNotFoundError, + AutomationDefinitionNotApprovedException( + crate::error::AutomationDefinitionNotApprovedException, + ), + AutomationDefinitionNotFoundException(crate::error::AutomationDefinitionNotFoundException), + AutomationDefinitionVersionNotFoundException( + crate::error::AutomationDefinitionVersionNotFoundException, + ), + AutomationExecutionLimitExceededException( + crate::error::AutomationExecutionLimitExceededException, ), - AutomationExecutionLimitExceededError(crate::error::AutomationExecutionLimitExceededError), IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), InternalServerError(crate::error::InternalServerError), - InvalidAutomationExecutionParametersError( - crate::error::InvalidAutomationExecutionParametersError, + InvalidAutomationExecutionParametersException( + crate::error::InvalidAutomationExecutionParametersException, ), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -12184,23 +12297,23 @@ pub enum StartChangeRequestExecutionErrorKind { impl std::fmt::Display for StartChangeRequestExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedError(_inner) => { - _inner.fmt(f) - } - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundError(_inner) => { - _inner.fmt(f) - } - StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundError( + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException( _inner, ) => _inner.fmt(f), - StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededError(_inner) => { + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException(_inner) => { _inner.fmt(f) } + StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException( + _inner, + ) => _inner.fmt(f), + StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException( + _inner, + ) => _inner.fmt(f), StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch(_inner) => { _inner.fmt(f) } StartChangeRequestExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), - StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersError( + StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException( _inner, ) => _inner.fmt(f), StartChangeRequestExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -12251,28 +12364,28 @@ impl StartChangeRequestExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_definition_not_approved_error(&self) -> bool { + pub fn is_automation_definition_not_approved_exception(&self) -> bool { matches!( &self.kind, - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedError(_) + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException(_) ) } - pub fn is_automation_definition_not_found_error(&self) -> bool { + pub fn is_automation_definition_not_found_exception(&self) -> bool { matches!( &self.kind, - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundError(_) + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException(_) ) } - pub fn is_automation_definition_version_not_found_error(&self) -> bool { + pub fn is_automation_definition_version_not_found_exception(&self) -> bool { matches!( &self.kind, - StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundError(_) + StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException(_) ) } - pub fn is_automation_execution_limit_exceeded_error(&self) -> bool { + pub fn is_automation_execution_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededError(_) + StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException(_) ) } pub fn is_idempotent_parameter_mismatch(&self) -> bool { @@ -12287,33 +12400,33 @@ impl StartChangeRequestExecutionError { StartChangeRequestExecutionErrorKind::InternalServerError(_) ) } - pub fn is_invalid_automation_execution_parameters_error(&self) -> bool { + pub fn is_invalid_automation_execution_parameters_exception(&self) -> bool { matches!( &self.kind, - StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersError(_) + StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException(_) ) } } impl std::error::Error for StartChangeRequestExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedError(_inner) => { - Some(_inner) - } - StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundError(_inner) => { - Some(_inner) - } - StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundError( + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException( _inner, ) => Some(_inner), - StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededError(_inner) => { + StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException(_inner) => { Some(_inner) } + StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException( + _inner, + ) => Some(_inner), + StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException( + _inner, + ) => Some(_inner), StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch(_inner) => { Some(_inner) } StartChangeRequestExecutionErrorKind::InternalServerError(_inner) => Some(_inner), - StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersError( + StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException( _inner, ) => Some(_inner), StartChangeRequestExecutionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -12420,20 +12533,20 @@ pub struct StopAutomationExecutionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum StopAutomationExecutionErrorKind { - AutomationExecutionNotFoundError(crate::error::AutomationExecutionNotFoundError), + AutomationExecutionNotFoundException(crate::error::AutomationExecutionNotFoundException), InternalServerError(crate::error::InternalServerError), - InvalidAutomationStatusUpdateError(crate::error::InvalidAutomationStatusUpdateError), + InvalidAutomationStatusUpdateException(crate::error::InvalidAutomationStatusUpdateException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for StopAutomationExecutionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - StopAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_inner) => { + StopAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_inner) => { _inner.fmt(f) } StopAutomationExecutionErrorKind::InternalServerError(_inner) => _inner.fmt(f), - StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateError(_inner) => { + StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateException(_inner) => { _inner.fmt(f) } StopAutomationExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -12484,10 +12597,10 @@ impl StopAutomationExecutionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_automation_execution_not_found_error(&self) -> bool { + pub fn is_automation_execution_not_found_exception(&self) -> bool { matches!( &self.kind, - StopAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_) + StopAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -12496,21 +12609,21 @@ impl StopAutomationExecutionError { StopAutomationExecutionErrorKind::InternalServerError(_) ) } - pub fn is_invalid_automation_status_update_error(&self) -> bool { + pub fn is_invalid_automation_status_update_exception(&self) -> bool { matches!( &self.kind, - StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateError(_) + StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateException(_) ) } } impl std::error::Error for StopAutomationExecutionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - StopAutomationExecutionErrorKind::AutomationExecutionNotFoundError(_inner) => { + StopAutomationExecutionErrorKind::AutomationExecutionNotFoundException(_inner) => { Some(_inner) } StopAutomationExecutionErrorKind::InternalServerError(_inner) => Some(_inner), - StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateError(_inner) => { + StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateException(_inner) => { Some(_inner) } StopAutomationExecutionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -12527,7 +12640,7 @@ pub struct TerminateSessionError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum TerminateSessionErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -12535,7 +12648,7 @@ pub enum TerminateSessionErrorKind { impl std::fmt::Display for TerminateSessionError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - TerminateSessionErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + TerminateSessionErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), TerminateSessionErrorKind::InternalServerError(_inner) => _inner.fmt(f), TerminateSessionErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -12585,8 +12698,11 @@ impl TerminateSessionError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { - matches!(&self.kind, TerminateSessionErrorKind::DoesNotExistError(_)) + pub fn is_does_not_exist_exception(&self) -> bool { + matches!( + &self.kind, + TerminateSessionErrorKind::DoesNotExistException(_) + ) } pub fn is_internal_server_error(&self) -> bool { matches!( @@ -12598,7 +12714,7 @@ impl TerminateSessionError { impl std::error::Error for TerminateSessionError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - TerminateSessionErrorKind::DoesNotExistError(_inner) => Some(_inner), + TerminateSessionErrorKind::DoesNotExistException(_inner) => Some(_inner), TerminateSessionErrorKind::InternalServerError(_inner) => Some(_inner), TerminateSessionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -13386,7 +13502,7 @@ pub struct UpdateMaintenanceWindowError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMaintenanceWindowErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -13394,7 +13510,7 @@ pub enum UpdateMaintenanceWindowErrorKind { impl std::fmt::Display for UpdateMaintenanceWindowError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMaintenanceWindowErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + UpdateMaintenanceWindowErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), UpdateMaintenanceWindowErrorKind::InternalServerError(_inner) => _inner.fmt(f), UpdateMaintenanceWindowErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -13444,10 +13560,10 @@ impl UpdateMaintenanceWindowError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - UpdateMaintenanceWindowErrorKind::DoesNotExistError(_) + UpdateMaintenanceWindowErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -13460,7 +13576,7 @@ impl UpdateMaintenanceWindowError { impl std::error::Error for UpdateMaintenanceWindowError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMaintenanceWindowErrorKind::DoesNotExistError(_inner) => Some(_inner), + UpdateMaintenanceWindowErrorKind::DoesNotExistException(_inner) => Some(_inner), UpdateMaintenanceWindowErrorKind::InternalServerError(_inner) => Some(_inner), UpdateMaintenanceWindowErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -13476,7 +13592,7 @@ pub struct UpdateMaintenanceWindowTargetError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMaintenanceWindowTargetErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -13484,7 +13600,7 @@ pub enum UpdateMaintenanceWindowTargetErrorKind { impl std::fmt::Display for UpdateMaintenanceWindowTargetError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMaintenanceWindowTargetErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + UpdateMaintenanceWindowTargetErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), UpdateMaintenanceWindowTargetErrorKind::InternalServerError(_inner) => _inner.fmt(f), UpdateMaintenanceWindowTargetErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -13534,10 +13650,10 @@ impl UpdateMaintenanceWindowTargetError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - UpdateMaintenanceWindowTargetErrorKind::DoesNotExistError(_) + UpdateMaintenanceWindowTargetErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -13550,7 +13666,7 @@ impl UpdateMaintenanceWindowTargetError { impl std::error::Error for UpdateMaintenanceWindowTargetError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMaintenanceWindowTargetErrorKind::DoesNotExistError(_inner) => Some(_inner), + UpdateMaintenanceWindowTargetErrorKind::DoesNotExistException(_inner) => Some(_inner), UpdateMaintenanceWindowTargetErrorKind::InternalServerError(_inner) => Some(_inner), UpdateMaintenanceWindowTargetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -13566,7 +13682,7 @@ pub struct UpdateMaintenanceWindowTaskError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdateMaintenanceWindowTaskErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -13574,7 +13690,7 @@ pub enum UpdateMaintenanceWindowTaskErrorKind { impl std::fmt::Display for UpdateMaintenanceWindowTaskError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdateMaintenanceWindowTaskErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + UpdateMaintenanceWindowTaskErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), UpdateMaintenanceWindowTaskErrorKind::InternalServerError(_inner) => _inner.fmt(f), UpdateMaintenanceWindowTaskErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -13624,10 +13740,10 @@ impl UpdateMaintenanceWindowTaskError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - UpdateMaintenanceWindowTaskErrorKind::DoesNotExistError(_) + UpdateMaintenanceWindowTaskErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -13640,7 +13756,7 @@ impl UpdateMaintenanceWindowTaskError { impl std::error::Error for UpdateMaintenanceWindowTaskError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdateMaintenanceWindowTaskErrorKind::DoesNotExistError(_inner) => Some(_inner), + UpdateMaintenanceWindowTaskErrorKind::DoesNotExistException(_inner) => Some(_inner), UpdateMaintenanceWindowTaskErrorKind::InternalServerError(_inner) => Some(_inner), UpdateMaintenanceWindowTaskErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -13747,10 +13863,10 @@ pub struct UpdateOpsItemError { #[derive(std::fmt::Debug)] pub enum UpdateOpsItemErrorKind { InternalServerError(crate::error::InternalServerError), - OpsItemAlreadyExistsError(crate::error::OpsItemAlreadyExistsError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemLimitExceededError(crate::error::OpsItemLimitExceededError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), + OpsItemAlreadyExistsException(crate::error::OpsItemAlreadyExistsException), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemLimitExceededException(crate::error::OpsItemLimitExceededException), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -13758,10 +13874,10 @@ impl std::fmt::Display for UpdateOpsItemError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateOpsItemErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateOpsItemErrorKind::OpsItemAlreadyExistsError(_inner) => _inner.fmt(f), - UpdateOpsItemErrorKind::OpsItemInvalidParameterError(_inner) => _inner.fmt(f), - UpdateOpsItemErrorKind::OpsItemLimitExceededError(_inner) => _inner.fmt(f), - UpdateOpsItemErrorKind::OpsItemNotFoundError(_inner) => _inner.fmt(f), + UpdateOpsItemErrorKind::OpsItemAlreadyExistsException(_inner) => _inner.fmt(f), + UpdateOpsItemErrorKind::OpsItemInvalidParameterException(_inner) => _inner.fmt(f), + UpdateOpsItemErrorKind::OpsItemLimitExceededException(_inner) => _inner.fmt(f), + UpdateOpsItemErrorKind::OpsItemNotFoundException(_inner) => _inner.fmt(f), UpdateOpsItemErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13813,36 +13929,39 @@ impl UpdateOpsItemError { pub fn is_internal_server_error(&self) -> bool { matches!(&self.kind, UpdateOpsItemErrorKind::InternalServerError(_)) } - pub fn is_ops_item_already_exists_error(&self) -> bool { + pub fn is_ops_item_already_exists_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsItemErrorKind::OpsItemAlreadyExistsError(_) + UpdateOpsItemErrorKind::OpsItemAlreadyExistsException(_) ) } - pub fn is_ops_item_invalid_parameter_error(&self) -> bool { + pub fn is_ops_item_invalid_parameter_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsItemErrorKind::OpsItemInvalidParameterError(_) + UpdateOpsItemErrorKind::OpsItemInvalidParameterException(_) ) } - pub fn is_ops_item_limit_exceeded_error(&self) -> bool { + pub fn is_ops_item_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsItemErrorKind::OpsItemLimitExceededError(_) + UpdateOpsItemErrorKind::OpsItemLimitExceededException(_) ) } - pub fn is_ops_item_not_found_error(&self) -> bool { - matches!(&self.kind, UpdateOpsItemErrorKind::OpsItemNotFoundError(_)) + pub fn is_ops_item_not_found_exception(&self) -> bool { + matches!( + &self.kind, + UpdateOpsItemErrorKind::OpsItemNotFoundException(_) + ) } } impl std::error::Error for UpdateOpsItemError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateOpsItemErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateOpsItemErrorKind::OpsItemAlreadyExistsError(_inner) => Some(_inner), - UpdateOpsItemErrorKind::OpsItemInvalidParameterError(_inner) => Some(_inner), - UpdateOpsItemErrorKind::OpsItemLimitExceededError(_inner) => Some(_inner), - UpdateOpsItemErrorKind::OpsItemNotFoundError(_inner) => Some(_inner), + UpdateOpsItemErrorKind::OpsItemAlreadyExistsException(_inner) => Some(_inner), + UpdateOpsItemErrorKind::OpsItemInvalidParameterException(_inner) => Some(_inner), + UpdateOpsItemErrorKind::OpsItemLimitExceededException(_inner) => Some(_inner), + UpdateOpsItemErrorKind::OpsItemNotFoundException(_inner) => Some(_inner), UpdateOpsItemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13858,10 +13977,10 @@ pub struct UpdateOpsMetadataError { #[derive(std::fmt::Debug)] pub enum UpdateOpsMetadataErrorKind { InternalServerError(crate::error::InternalServerError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), - OpsMetadataKeyLimitExceededError(crate::error::OpsMetadataKeyLimitExceededError), - OpsMetadataNotFoundError(crate::error::OpsMetadataNotFoundError), - OpsMetadataTooManyUpdatesError(crate::error::OpsMetadataTooManyUpdatesError), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), + OpsMetadataKeyLimitExceededException(crate::error::OpsMetadataKeyLimitExceededException), + OpsMetadataNotFoundException(crate::error::OpsMetadataNotFoundException), + OpsMetadataTooManyUpdatesException(crate::error::OpsMetadataTooManyUpdatesException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -13869,10 +13988,14 @@ impl std::fmt::Display for UpdateOpsMetadataError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateOpsMetadataErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => _inner.fmt(f), - UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededError(_inner) => _inner.fmt(f), - UpdateOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => _inner.fmt(f), - UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_inner) => _inner.fmt(f), + UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => { + _inner.fmt(f) + } + UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededException(_inner) => { + _inner.fmt(f) + } + UpdateOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => _inner.fmt(f), + UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_inner) => _inner.fmt(f), UpdateOpsMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -13927,28 +14050,28 @@ impl UpdateOpsMetadataError { UpdateOpsMetadataErrorKind::InternalServerError(_) ) } - pub fn is_ops_metadata_invalid_argument_error(&self) -> bool { + pub fn is_ops_metadata_invalid_argument_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_) + UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_) ) } - pub fn is_ops_metadata_key_limit_exceeded_error(&self) -> bool { + pub fn is_ops_metadata_key_limit_exceeded_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededError(_) + UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededException(_) ) } - pub fn is_ops_metadata_not_found_error(&self) -> bool { + pub fn is_ops_metadata_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsMetadataErrorKind::OpsMetadataNotFoundError(_) + UpdateOpsMetadataErrorKind::OpsMetadataNotFoundException(_) ) } - pub fn is_ops_metadata_too_many_updates_error(&self) -> bool { + pub fn is_ops_metadata_too_many_updates_exception(&self) -> bool { matches!( &self.kind, - UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_) + UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_) ) } } @@ -13956,10 +14079,12 @@ impl std::error::Error for UpdateOpsMetadataError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateOpsMetadataErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(_inner) => Some(_inner), - UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededError(_inner) => Some(_inner), - UpdateOpsMetadataErrorKind::OpsMetadataNotFoundError(_inner) => Some(_inner), - UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(_inner) => Some(_inner), + UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException(_inner) => Some(_inner), + UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededException(_inner) => { + Some(_inner) + } + UpdateOpsMetadataErrorKind::OpsMetadataNotFoundException(_inner) => Some(_inner), + UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException(_inner) => Some(_inner), UpdateOpsMetadataErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -13974,7 +14099,7 @@ pub struct UpdatePatchBaselineError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum UpdatePatchBaselineErrorKind { - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), InternalServerError(crate::error::InternalServerError), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), @@ -13982,7 +14107,7 @@ pub enum UpdatePatchBaselineErrorKind { impl std::fmt::Display for UpdatePatchBaselineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - UpdatePatchBaselineErrorKind::DoesNotExistError(_inner) => _inner.fmt(f), + UpdatePatchBaselineErrorKind::DoesNotExistException(_inner) => _inner.fmt(f), UpdatePatchBaselineErrorKind::InternalServerError(_inner) => _inner.fmt(f), UpdatePatchBaselineErrorKind::Unhandled(_inner) => _inner.fmt(f), } @@ -14032,10 +14157,10 @@ impl UpdatePatchBaselineError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_does_not_exist_error(&self) -> bool { + pub fn is_does_not_exist_exception(&self) -> bool { matches!( &self.kind, - UpdatePatchBaselineErrorKind::DoesNotExistError(_) + UpdatePatchBaselineErrorKind::DoesNotExistException(_) ) } pub fn is_internal_server_error(&self) -> bool { @@ -14048,7 +14173,7 @@ impl UpdatePatchBaselineError { impl std::error::Error for UpdatePatchBaselineError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - UpdatePatchBaselineErrorKind::DoesNotExistError(_inner) => Some(_inner), + UpdatePatchBaselineErrorKind::DoesNotExistException(_inner) => Some(_inner), UpdatePatchBaselineErrorKind::InternalServerError(_inner) => Some(_inner), UpdatePatchBaselineErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } @@ -14065,11 +14190,11 @@ pub struct UpdateResourceDataSyncError { #[derive(std::fmt::Debug)] pub enum UpdateResourceDataSyncErrorKind { InternalServerError(crate::error::InternalServerError), - ResourceDataSyncConflictError(crate::error::ResourceDataSyncConflictError), - ResourceDataSyncInvalidConfigurationError( - crate::error::ResourceDataSyncInvalidConfigurationError, + ResourceDataSyncConflictException(crate::error::ResourceDataSyncConflictException), + ResourceDataSyncInvalidConfigurationException( + crate::error::ResourceDataSyncInvalidConfigurationException, ), - ResourceDataSyncNotFoundError(crate::error::ResourceDataSyncNotFoundError), + ResourceDataSyncNotFoundException(crate::error::ResourceDataSyncNotFoundException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } @@ -14077,11 +14202,15 @@ impl std::fmt::Display for UpdateResourceDataSyncError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { UpdateResourceDataSyncErrorKind::InternalServerError(_inner) => _inner.fmt(f), - UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictError(_inner) => _inner.fmt(f), - UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictException(_inner) => { + _inner.fmt(f) + } + UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => _inner.fmt(f), + UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_inner) => { _inner.fmt(f) } - UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_inner) => _inner.fmt(f), UpdateResourceDataSyncErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -14136,22 +14265,22 @@ impl UpdateResourceDataSyncError { UpdateResourceDataSyncErrorKind::InternalServerError(_) ) } - pub fn is_resource_data_sync_conflict_error(&self) -> bool { + pub fn is_resource_data_sync_conflict_exception(&self) -> bool { matches!( &self.kind, - UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictError(_) + UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictException(_) ) } - pub fn is_resource_data_sync_invalid_configuration_error(&self) -> bool { + pub fn is_resource_data_sync_invalid_configuration_exception(&self) -> bool { matches!( &self.kind, - UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_) + UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(_) ) } - pub fn is_resource_data_sync_not_found_error(&self) -> bool { + pub fn is_resource_data_sync_not_found_exception(&self) -> bool { matches!( &self.kind, - UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_) + UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_) ) } } @@ -14159,11 +14288,15 @@ impl std::error::Error for UpdateResourceDataSyncError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { UpdateResourceDataSyncErrorKind::InternalServerError(_inner) => Some(_inner), - UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictError(_inner) => Some(_inner), - UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(_inner) => { + UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictException(_inner) => { + Some(_inner) + } + UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException( + _inner, + ) => Some(_inner), + UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(_inner) => { Some(_inner) } - UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(_inner) => Some(_inner), UpdateResourceDataSyncErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -14267,10 +14400,8 @@ impl std::error::Error for UpdateServiceSettingError { ///

    There are concurrent updates for a resource that supports one update at a time.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TooManyUpdates { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for TooManyUpdates { @@ -14330,10 +14461,8 @@ impl TooManyUpdates { ///

    The specified service setting was not found. Either the service name or the setting has not /// been provisioned by the AWS service team.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceSettingNotFound { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ServiceSettingNotFound { @@ -14392,10 +14521,8 @@ impl ServiceSettingNotFound { ///

    An error occurred on the server side.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InternalServerError { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InternalServerError { @@ -14454,48 +14581,39 @@ impl InternalServerError { ///

    The specified sync name was not found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceDataSyncNotFoundError { - #[serde(rename = "SyncName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceDataSyncNotFoundException { pub sync_name: std::option::Option, - #[serde(rename = "SyncType")] - #[serde(default)] pub sync_type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ResourceDataSyncNotFoundError { +impl std::fmt::Debug for ResourceDataSyncNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceDataSyncNotFoundError"); + let mut formatter = f.debug_struct("ResourceDataSyncNotFoundException"); formatter.field("sync_name", &self.sync_name); formatter.field("sync_type", &self.sync_type); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceDataSyncNotFoundError { +impl ResourceDataSyncNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceDataSyncNotFoundError { +impl std::fmt::Display for ResourceDataSyncNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceDataSyncNotFoundError [ResourceDataSyncNotFoundException]" - )?; + write!(f, "ResourceDataSyncNotFoundException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for ResourceDataSyncNotFoundError {} -/// See [`ResourceDataSyncNotFoundError`](crate::error::ResourceDataSyncNotFoundError) -pub mod resource_data_sync_not_found_error { - /// A builder for [`ResourceDataSyncNotFoundError`](crate::error::ResourceDataSyncNotFoundError) +impl std::error::Error for ResourceDataSyncNotFoundException {} +/// See [`ResourceDataSyncNotFoundException`](crate::error::ResourceDataSyncNotFoundException) +pub mod resource_data_sync_not_found_exception { + /// A builder for [`ResourceDataSyncNotFoundException`](crate::error::ResourceDataSyncNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14528,9 +14646,9 @@ pub mod resource_data_sync_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceDataSyncNotFoundError`](crate::error::ResourceDataSyncNotFoundError) - pub fn build(self) -> crate::error::ResourceDataSyncNotFoundError { - crate::error::ResourceDataSyncNotFoundError { + /// Consumes the builder and constructs a [`ResourceDataSyncNotFoundException`](crate::error::ResourceDataSyncNotFoundException) + pub fn build(self) -> crate::error::ResourceDataSyncNotFoundException { + crate::error::ResourceDataSyncNotFoundException { sync_name: self.sync_name, sync_type: self.sync_type, message: self.message, @@ -14538,46 +14656,44 @@ pub mod resource_data_sync_not_found_error { } } } -impl ResourceDataSyncNotFoundError { - /// Creates a new builder-style object to manufacture [`ResourceDataSyncNotFoundError`](crate::error::ResourceDataSyncNotFoundError) - pub fn builder() -> crate::error::resource_data_sync_not_found_error::Builder { - crate::error::resource_data_sync_not_found_error::Builder::default() +impl ResourceDataSyncNotFoundException { + /// Creates a new builder-style object to manufacture [`ResourceDataSyncNotFoundException`](crate::error::ResourceDataSyncNotFoundException) + pub fn builder() -> crate::error::resource_data_sync_not_found_exception::Builder { + crate::error::resource_data_sync_not_found_exception::Builder::default() } } ///

    The specified sync configuration is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceDataSyncInvalidConfigurationError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceDataSyncInvalidConfigurationException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceDataSyncInvalidConfigurationError { +impl std::fmt::Debug for ResourceDataSyncInvalidConfigurationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceDataSyncInvalidConfigurationError"); + let mut formatter = f.debug_struct("ResourceDataSyncInvalidConfigurationException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceDataSyncInvalidConfigurationError { +impl ResourceDataSyncInvalidConfigurationException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceDataSyncInvalidConfigurationError { +impl std::fmt::Display for ResourceDataSyncInvalidConfigurationException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceDataSyncInvalidConfigurationError [ResourceDataSyncInvalidConfigurationException]")?; + write!(f, "ResourceDataSyncInvalidConfigurationException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for ResourceDataSyncInvalidConfigurationError {} -/// See [`ResourceDataSyncInvalidConfigurationError`](crate::error::ResourceDataSyncInvalidConfigurationError) -pub mod resource_data_sync_invalid_configuration_error { - /// A builder for [`ResourceDataSyncInvalidConfigurationError`](crate::error::ResourceDataSyncInvalidConfigurationError) +impl std::error::Error for ResourceDataSyncInvalidConfigurationException {} +/// See [`ResourceDataSyncInvalidConfigurationException`](crate::error::ResourceDataSyncInvalidConfigurationException) +pub mod resource_data_sync_invalid_configuration_exception { + /// A builder for [`ResourceDataSyncInvalidConfigurationException`](crate::error::ResourceDataSyncInvalidConfigurationException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14592,58 +14708,53 @@ pub mod resource_data_sync_invalid_configuration_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceDataSyncInvalidConfigurationError`](crate::error::ResourceDataSyncInvalidConfigurationError) - pub fn build(self) -> crate::error::ResourceDataSyncInvalidConfigurationError { - crate::error::ResourceDataSyncInvalidConfigurationError { + /// Consumes the builder and constructs a [`ResourceDataSyncInvalidConfigurationException`](crate::error::ResourceDataSyncInvalidConfigurationException) + pub fn build(self) -> crate::error::ResourceDataSyncInvalidConfigurationException { + crate::error::ResourceDataSyncInvalidConfigurationException { message: self.message, } } } } -impl ResourceDataSyncInvalidConfigurationError { - /// Creates a new builder-style object to manufacture [`ResourceDataSyncInvalidConfigurationError`](crate::error::ResourceDataSyncInvalidConfigurationError) - pub fn builder() -> crate::error::resource_data_sync_invalid_configuration_error::Builder { - crate::error::resource_data_sync_invalid_configuration_error::Builder::default() +impl ResourceDataSyncInvalidConfigurationException { + /// Creates a new builder-style object to manufacture [`ResourceDataSyncInvalidConfigurationException`](crate::error::ResourceDataSyncInvalidConfigurationException) + pub fn builder() -> crate::error::resource_data_sync_invalid_configuration_exception::Builder { + crate::error::resource_data_sync_invalid_configuration_exception::Builder::default() } } ///

    Another UpdateResourceDataSync request is being processed. Wait a few minutes /// and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceDataSyncConflictError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceDataSyncConflictException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceDataSyncConflictError { +impl std::fmt::Debug for ResourceDataSyncConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceDataSyncConflictError"); + let mut formatter = f.debug_struct("ResourceDataSyncConflictException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceDataSyncConflictError { +impl ResourceDataSyncConflictException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceDataSyncConflictError { +impl std::fmt::Display for ResourceDataSyncConflictException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceDataSyncConflictError [ResourceDataSyncConflictException]" - )?; + write!(f, "ResourceDataSyncConflictException")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for ResourceDataSyncConflictError {} -/// See [`ResourceDataSyncConflictError`](crate::error::ResourceDataSyncConflictError) -pub mod resource_data_sync_conflict_error { - /// A builder for [`ResourceDataSyncConflictError`](crate::error::ResourceDataSyncConflictError) +impl std::error::Error for ResourceDataSyncConflictException {} +/// See [`ResourceDataSyncConflictException`](crate::error::ResourceDataSyncConflictException) +pub mod resource_data_sync_conflict_exception { + /// A builder for [`ResourceDataSyncConflictException`](crate::error::ResourceDataSyncConflictException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14658,18 +14769,18 @@ pub mod resource_data_sync_conflict_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceDataSyncConflictError`](crate::error::ResourceDataSyncConflictError) - pub fn build(self) -> crate::error::ResourceDataSyncConflictError { - crate::error::ResourceDataSyncConflictError { + /// Consumes the builder and constructs a [`ResourceDataSyncConflictException`](crate::error::ResourceDataSyncConflictException) + pub fn build(self) -> crate::error::ResourceDataSyncConflictException { + crate::error::ResourceDataSyncConflictException { message: self.message, } } } } -impl ResourceDataSyncConflictError { - /// Creates a new builder-style object to manufacture [`ResourceDataSyncConflictError`](crate::error::ResourceDataSyncConflictError) - pub fn builder() -> crate::error::resource_data_sync_conflict_error::Builder { - crate::error::resource_data_sync_conflict_error::Builder::default() +impl ResourceDataSyncConflictException { + /// Creates a new builder-style object to manufacture [`ResourceDataSyncConflictException`](crate::error::ResourceDataSyncConflictException) + pub fn builder() -> crate::error::resource_data_sync_conflict_exception::Builder { + crate::error::resource_data_sync_conflict_exception::Builder::default() } } @@ -14678,37 +14789,35 @@ impl ResourceDataSyncConflictError { ///

    For information about resource quotas in Systems Manager, see Systems Manager service quotas in the /// AWS General Reference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DoesNotExistError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct DoesNotExistException { pub message: std::option::Option, } -impl std::fmt::Debug for DoesNotExistError { +impl std::fmt::Debug for DoesNotExistException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DoesNotExistError"); + let mut formatter = f.debug_struct("DoesNotExistException"); formatter.field("message", &self.message); formatter.finish() } } -impl DoesNotExistError { +impl DoesNotExistException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for DoesNotExistError { +impl std::fmt::Display for DoesNotExistException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DoesNotExistError [DoesNotExistException]")?; + write!(f, "DoesNotExistException")?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; } Ok(()) } } -impl std::error::Error for DoesNotExistError {} -/// See [`DoesNotExistError`](crate::error::DoesNotExistError) -pub mod does_not_exist_error { - /// A builder for [`DoesNotExistError`](crate::error::DoesNotExistError) +impl std::error::Error for DoesNotExistException {} +/// See [`DoesNotExistException`](crate::error::DoesNotExistException) +pub mod does_not_exist_exception { + /// A builder for [`DoesNotExistException`](crate::error::DoesNotExistException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14723,58 +14832,53 @@ pub mod does_not_exist_error { self.message = input; self } - /// Consumes the builder and constructs a [`DoesNotExistError`](crate::error::DoesNotExistError) - pub fn build(self) -> crate::error::DoesNotExistError { - crate::error::DoesNotExistError { + /// Consumes the builder and constructs a [`DoesNotExistException`](crate::error::DoesNotExistException) + pub fn build(self) -> crate::error::DoesNotExistException { + crate::error::DoesNotExistException { message: self.message, } } } } -impl DoesNotExistError { - /// Creates a new builder-style object to manufacture [`DoesNotExistError`](crate::error::DoesNotExistError) - pub fn builder() -> crate::error::does_not_exist_error::Builder { - crate::error::does_not_exist_error::Builder::default() +impl DoesNotExistException { + /// Creates a new builder-style object to manufacture [`DoesNotExistException`](crate::error::DoesNotExistException) + pub fn builder() -> crate::error::does_not_exist_exception::Builder { + crate::error::does_not_exist_exception::Builder::default() } } ///

    The system is processing too many concurrent updates. Wait a few moments and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataTooManyUpdatesError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataTooManyUpdatesException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataTooManyUpdatesError { +impl std::fmt::Debug for OpsMetadataTooManyUpdatesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataTooManyUpdatesError"); + let mut formatter = f.debug_struct("OpsMetadataTooManyUpdatesException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataTooManyUpdatesError { +impl OpsMetadataTooManyUpdatesException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataTooManyUpdatesError { +impl std::fmt::Display for OpsMetadataTooManyUpdatesException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsMetadataTooManyUpdatesError [OpsMetadataTooManyUpdatesException]" - )?; + write!(f, "OpsMetadataTooManyUpdatesException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for OpsMetadataTooManyUpdatesError {} -/// See [`OpsMetadataTooManyUpdatesError`](crate::error::OpsMetadataTooManyUpdatesError) -pub mod ops_metadata_too_many_updates_error { - /// A builder for [`OpsMetadataTooManyUpdatesError`](crate::error::OpsMetadataTooManyUpdatesError) +impl std::error::Error for OpsMetadataTooManyUpdatesException {} +/// See [`OpsMetadataTooManyUpdatesException`](crate::error::OpsMetadataTooManyUpdatesException) +pub mod ops_metadata_too_many_updates_exception { + /// A builder for [`OpsMetadataTooManyUpdatesException`](crate::error::OpsMetadataTooManyUpdatesException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14789,54 +14893,52 @@ pub mod ops_metadata_too_many_updates_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataTooManyUpdatesError`](crate::error::OpsMetadataTooManyUpdatesError) - pub fn build(self) -> crate::error::OpsMetadataTooManyUpdatesError { - crate::error::OpsMetadataTooManyUpdatesError { + /// Consumes the builder and constructs a [`OpsMetadataTooManyUpdatesException`](crate::error::OpsMetadataTooManyUpdatesException) + pub fn build(self) -> crate::error::OpsMetadataTooManyUpdatesException { + crate::error::OpsMetadataTooManyUpdatesException { message: self.message, } } } } -impl OpsMetadataTooManyUpdatesError { - /// Creates a new builder-style object to manufacture [`OpsMetadataTooManyUpdatesError`](crate::error::OpsMetadataTooManyUpdatesError) - pub fn builder() -> crate::error::ops_metadata_too_many_updates_error::Builder { - crate::error::ops_metadata_too_many_updates_error::Builder::default() +impl OpsMetadataTooManyUpdatesException { + /// Creates a new builder-style object to manufacture [`OpsMetadataTooManyUpdatesException`](crate::error::OpsMetadataTooManyUpdatesException) + pub fn builder() -> crate::error::ops_metadata_too_many_updates_exception::Builder { + crate::error::ops_metadata_too_many_updates_exception::Builder::default() } } ///

    The OpsMetadata object does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataNotFoundError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataNotFoundError { +impl std::fmt::Debug for OpsMetadataNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataNotFoundError"); + let mut formatter = f.debug_struct("OpsMetadataNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataNotFoundError { +impl OpsMetadataNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataNotFoundError { +impl std::fmt::Display for OpsMetadataNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OpsMetadataNotFoundError [OpsMetadataNotFoundException]")?; + write!(f, "OpsMetadataNotFoundException")?; if let Some(inner_9) = &self.message { write!(f, ": {}", inner_9)?; } Ok(()) } } -impl std::error::Error for OpsMetadataNotFoundError {} -/// See [`OpsMetadataNotFoundError`](crate::error::OpsMetadataNotFoundError) -pub mod ops_metadata_not_found_error { - /// A builder for [`OpsMetadataNotFoundError`](crate::error::OpsMetadataNotFoundError) +impl std::error::Error for OpsMetadataNotFoundException {} +/// See [`OpsMetadataNotFoundException`](crate::error::OpsMetadataNotFoundException) +pub mod ops_metadata_not_found_exception { + /// A builder for [`OpsMetadataNotFoundException`](crate::error::OpsMetadataNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14851,58 +14953,53 @@ pub mod ops_metadata_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataNotFoundError`](crate::error::OpsMetadataNotFoundError) - pub fn build(self) -> crate::error::OpsMetadataNotFoundError { - crate::error::OpsMetadataNotFoundError { + /// Consumes the builder and constructs a [`OpsMetadataNotFoundException`](crate::error::OpsMetadataNotFoundException) + pub fn build(self) -> crate::error::OpsMetadataNotFoundException { + crate::error::OpsMetadataNotFoundException { message: self.message, } } } } -impl OpsMetadataNotFoundError { - /// Creates a new builder-style object to manufacture [`OpsMetadataNotFoundError`](crate::error::OpsMetadataNotFoundError) - pub fn builder() -> crate::error::ops_metadata_not_found_error::Builder { - crate::error::ops_metadata_not_found_error::Builder::default() +impl OpsMetadataNotFoundException { + /// Creates a new builder-style object to manufacture [`OpsMetadataNotFoundException`](crate::error::OpsMetadataNotFoundException) + pub fn builder() -> crate::error::ops_metadata_not_found_exception::Builder { + crate::error::ops_metadata_not_found_exception::Builder::default() } } ///

    The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to /// an application in Application Manager.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataKeyLimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataKeyLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataKeyLimitExceededError { +impl std::fmt::Debug for OpsMetadataKeyLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataKeyLimitExceededError"); + let mut formatter = f.debug_struct("OpsMetadataKeyLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataKeyLimitExceededError { +impl OpsMetadataKeyLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataKeyLimitExceededError { +impl std::fmt::Display for OpsMetadataKeyLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsMetadataKeyLimitExceededError [OpsMetadataKeyLimitExceededException]" - )?; + write!(f, "OpsMetadataKeyLimitExceededException")?; if let Some(inner_10) = &self.message { write!(f, ": {}", inner_10)?; } Ok(()) } } -impl std::error::Error for OpsMetadataKeyLimitExceededError {} -/// See [`OpsMetadataKeyLimitExceededError`](crate::error::OpsMetadataKeyLimitExceededError) -pub mod ops_metadata_key_limit_exceeded_error { - /// A builder for [`OpsMetadataKeyLimitExceededError`](crate::error::OpsMetadataKeyLimitExceededError) +impl std::error::Error for OpsMetadataKeyLimitExceededException {} +/// See [`OpsMetadataKeyLimitExceededException`](crate::error::OpsMetadataKeyLimitExceededException) +pub mod ops_metadata_key_limit_exceeded_exception { + /// A builder for [`OpsMetadataKeyLimitExceededException`](crate::error::OpsMetadataKeyLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14917,57 +15014,52 @@ pub mod ops_metadata_key_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataKeyLimitExceededError`](crate::error::OpsMetadataKeyLimitExceededError) - pub fn build(self) -> crate::error::OpsMetadataKeyLimitExceededError { - crate::error::OpsMetadataKeyLimitExceededError { + /// Consumes the builder and constructs a [`OpsMetadataKeyLimitExceededException`](crate::error::OpsMetadataKeyLimitExceededException) + pub fn build(self) -> crate::error::OpsMetadataKeyLimitExceededException { + crate::error::OpsMetadataKeyLimitExceededException { message: self.message, } } } } -impl OpsMetadataKeyLimitExceededError { - /// Creates a new builder-style object to manufacture [`OpsMetadataKeyLimitExceededError`](crate::error::OpsMetadataKeyLimitExceededError) - pub fn builder() -> crate::error::ops_metadata_key_limit_exceeded_error::Builder { - crate::error::ops_metadata_key_limit_exceeded_error::Builder::default() +impl OpsMetadataKeyLimitExceededException { + /// Creates a new builder-style object to manufacture [`OpsMetadataKeyLimitExceededException`](crate::error::OpsMetadataKeyLimitExceededException) + pub fn builder() -> crate::error::ops_metadata_key_limit_exceeded_exception::Builder { + crate::error::ops_metadata_key_limit_exceeded_exception::Builder::default() } } ///

    One of the arguments passed is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataInvalidArgumentError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataInvalidArgumentException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataInvalidArgumentError { +impl std::fmt::Debug for OpsMetadataInvalidArgumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataInvalidArgumentError"); + let mut formatter = f.debug_struct("OpsMetadataInvalidArgumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataInvalidArgumentError { +impl OpsMetadataInvalidArgumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataInvalidArgumentError { +impl std::fmt::Display for OpsMetadataInvalidArgumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsMetadataInvalidArgumentError [OpsMetadataInvalidArgumentException]" - )?; + write!(f, "OpsMetadataInvalidArgumentException")?; if let Some(inner_11) = &self.message { write!(f, ": {}", inner_11)?; } Ok(()) } } -impl std::error::Error for OpsMetadataInvalidArgumentError {} -/// See [`OpsMetadataInvalidArgumentError`](crate::error::OpsMetadataInvalidArgumentError) -pub mod ops_metadata_invalid_argument_error { - /// A builder for [`OpsMetadataInvalidArgumentError`](crate::error::OpsMetadataInvalidArgumentError) +impl std::error::Error for OpsMetadataInvalidArgumentException {} +/// See [`OpsMetadataInvalidArgumentException`](crate::error::OpsMetadataInvalidArgumentException) +pub mod ops_metadata_invalid_argument_exception { + /// A builder for [`OpsMetadataInvalidArgumentException`](crate::error::OpsMetadataInvalidArgumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -14982,54 +15074,52 @@ pub mod ops_metadata_invalid_argument_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataInvalidArgumentError`](crate::error::OpsMetadataInvalidArgumentError) - pub fn build(self) -> crate::error::OpsMetadataInvalidArgumentError { - crate::error::OpsMetadataInvalidArgumentError { + /// Consumes the builder and constructs a [`OpsMetadataInvalidArgumentException`](crate::error::OpsMetadataInvalidArgumentException) + pub fn build(self) -> crate::error::OpsMetadataInvalidArgumentException { + crate::error::OpsMetadataInvalidArgumentException { message: self.message, } } } } -impl OpsMetadataInvalidArgumentError { - /// Creates a new builder-style object to manufacture [`OpsMetadataInvalidArgumentError`](crate::error::OpsMetadataInvalidArgumentError) - pub fn builder() -> crate::error::ops_metadata_invalid_argument_error::Builder { - crate::error::ops_metadata_invalid_argument_error::Builder::default() +impl OpsMetadataInvalidArgumentException { + /// Creates a new builder-style object to manufacture [`OpsMetadataInvalidArgumentException`](crate::error::OpsMetadataInvalidArgumentException) + pub fn builder() -> crate::error::ops_metadata_invalid_argument_exception::Builder { + crate::error::ops_metadata_invalid_argument_exception::Builder::default() } } ///

    The specified OpsItem ID doesn't exist. Verify the ID and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsItemNotFoundError { +impl std::fmt::Debug for OpsItemNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemNotFoundError"); + let mut formatter = f.debug_struct("OpsItemNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsItemNotFoundError { +impl OpsItemNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemNotFoundError { +impl std::fmt::Display for OpsItemNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OpsItemNotFoundError [OpsItemNotFoundException]")?; + write!(f, "OpsItemNotFoundException")?; if let Some(inner_12) = &self.message { write!(f, ": {}", inner_12)?; } Ok(()) } } -impl std::error::Error for OpsItemNotFoundError {} -/// See [`OpsItemNotFoundError`](crate::error::OpsItemNotFoundError) -pub mod ops_item_not_found_error { - /// A builder for [`OpsItemNotFoundError`](crate::error::OpsItemNotFoundError) +impl std::error::Error for OpsItemNotFoundException {} +/// See [`OpsItemNotFoundException`](crate::error::OpsItemNotFoundException) +pub mod ops_item_not_found_exception { + /// A builder for [`OpsItemNotFoundException`](crate::error::OpsItemNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15044,42 +15134,34 @@ pub mod ops_item_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsItemNotFoundError`](crate::error::OpsItemNotFoundError) - pub fn build(self) -> crate::error::OpsItemNotFoundError { - crate::error::OpsItemNotFoundError { + /// Consumes the builder and constructs a [`OpsItemNotFoundException`](crate::error::OpsItemNotFoundException) + pub fn build(self) -> crate::error::OpsItemNotFoundException { + crate::error::OpsItemNotFoundException { message: self.message, } } } } -impl OpsItemNotFoundError { - /// Creates a new builder-style object to manufacture [`OpsItemNotFoundError`](crate::error::OpsItemNotFoundError) - pub fn builder() -> crate::error::ops_item_not_found_error::Builder { - crate::error::ops_item_not_found_error::Builder::default() +impl OpsItemNotFoundException { + /// Creates a new builder-style object to manufacture [`OpsItemNotFoundException`](crate::error::OpsItemNotFoundException) + pub fn builder() -> crate::error::ops_item_not_found_exception::Builder { + crate::error::ops_item_not_found_exception::Builder::default() } } ///

    The request caused OpsItems to exceed one or more quotas. For information about OpsItem /// quotas, see What are the resource limits for OpsCenter?.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemLimitExceededError { - #[serde(rename = "ResourceTypes")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemLimitExceededException { pub resource_types: std::option::Option>, - #[serde(rename = "Limit")] - #[serde(default)] pub limit: i32, - #[serde(rename = "LimitType")] - #[serde(default)] pub limit_type: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for OpsItemLimitExceededError { +impl std::fmt::Debug for OpsItemLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemLimitExceededError"); + let mut formatter = f.debug_struct("OpsItemLimitExceededException"); formatter.field("resource_types", &self.resource_types); formatter.field("limit", &self.limit); formatter.field("limit_type", &self.limit_type); @@ -15087,27 +15169,24 @@ impl std::fmt::Debug for OpsItemLimitExceededError { formatter.finish() } } -impl OpsItemLimitExceededError { +impl OpsItemLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemLimitExceededError { +impl std::fmt::Display for OpsItemLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsItemLimitExceededError [OpsItemLimitExceededException]" - )?; + write!(f, "OpsItemLimitExceededException")?; if let Some(inner_13) = &self.message { write!(f, ": {}", inner_13)?; } Ok(()) } } -impl std::error::Error for OpsItemLimitExceededError {} -/// See [`OpsItemLimitExceededError`](crate::error::OpsItemLimitExceededError) -pub mod ops_item_limit_exceeded_error { - /// A builder for [`OpsItemLimitExceededError`](crate::error::OpsItemLimitExceededError) +impl std::error::Error for OpsItemLimitExceededException {} +/// See [`OpsItemLimitExceededException`](crate::error::OpsItemLimitExceededException) +pub mod ops_item_limit_exceeded_exception { + /// A builder for [`OpsItemLimitExceededException`](crate::error::OpsItemLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15154,9 +15233,9 @@ pub mod ops_item_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsItemLimitExceededError`](crate::error::OpsItemLimitExceededError) - pub fn build(self) -> crate::error::OpsItemLimitExceededError { - crate::error::OpsItemLimitExceededError { + /// Consumes the builder and constructs a [`OpsItemLimitExceededException`](crate::error::OpsItemLimitExceededException) + pub fn build(self) -> crate::error::OpsItemLimitExceededException { + crate::error::OpsItemLimitExceededException { resource_types: self.resource_types, limit: self.limit.unwrap_or_default(), limit_type: self.limit_type, @@ -15165,54 +15244,47 @@ pub mod ops_item_limit_exceeded_error { } } } -impl OpsItemLimitExceededError { - /// Creates a new builder-style object to manufacture [`OpsItemLimitExceededError`](crate::error::OpsItemLimitExceededError) - pub fn builder() -> crate::error::ops_item_limit_exceeded_error::Builder { - crate::error::ops_item_limit_exceeded_error::Builder::default() +impl OpsItemLimitExceededException { + /// Creates a new builder-style object to manufacture [`OpsItemLimitExceededException`](crate::error::OpsItemLimitExceededException) + pub fn builder() -> crate::error::ops_item_limit_exceeded_exception::Builder { + crate::error::ops_item_limit_exceeded_exception::Builder::default() } } ///

    A specified parameter argument isn't valid. Verify the available arguments and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemInvalidParameterError { - #[serde(rename = "ParameterNames")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemInvalidParameterException { pub parameter_names: std::option::Option>, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for OpsItemInvalidParameterError { +impl std::fmt::Debug for OpsItemInvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemInvalidParameterError"); + let mut formatter = f.debug_struct("OpsItemInvalidParameterException"); formatter.field("parameter_names", &self.parameter_names); formatter.field("message", &self.message); formatter.finish() } } -impl OpsItemInvalidParameterError { +impl OpsItemInvalidParameterException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemInvalidParameterError { +impl std::fmt::Display for OpsItemInvalidParameterException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsItemInvalidParameterError [OpsItemInvalidParameterException]" - )?; + write!(f, "OpsItemInvalidParameterException")?; if let Some(inner_14) = &self.message { write!(f, ": {}", inner_14)?; } Ok(()) } } -impl std::error::Error for OpsItemInvalidParameterError {} -/// See [`OpsItemInvalidParameterError`](crate::error::OpsItemInvalidParameterError) -pub mod ops_item_invalid_parameter_error { - /// A builder for [`OpsItemInvalidParameterError`](crate::error::OpsItemInvalidParameterError) +impl std::error::Error for OpsItemInvalidParameterException {} +/// See [`OpsItemInvalidParameterException`](crate::error::OpsItemInvalidParameterException) +pub mod ops_item_invalid_parameter_exception { + /// A builder for [`OpsItemInvalidParameterException`](crate::error::OpsItemInvalidParameterException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15241,62 +15313,55 @@ pub mod ops_item_invalid_parameter_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsItemInvalidParameterError`](crate::error::OpsItemInvalidParameterError) - pub fn build(self) -> crate::error::OpsItemInvalidParameterError { - crate::error::OpsItemInvalidParameterError { + /// Consumes the builder and constructs a [`OpsItemInvalidParameterException`](crate::error::OpsItemInvalidParameterException) + pub fn build(self) -> crate::error::OpsItemInvalidParameterException { + crate::error::OpsItemInvalidParameterException { parameter_names: self.parameter_names, message: self.message, } } } } -impl OpsItemInvalidParameterError { - /// Creates a new builder-style object to manufacture [`OpsItemInvalidParameterError`](crate::error::OpsItemInvalidParameterError) - pub fn builder() -> crate::error::ops_item_invalid_parameter_error::Builder { - crate::error::ops_item_invalid_parameter_error::Builder::default() +impl OpsItemInvalidParameterException { + /// Creates a new builder-style object to manufacture [`OpsItemInvalidParameterException`](crate::error::OpsItemInvalidParameterException) + pub fn builder() -> crate::error::ops_item_invalid_parameter_exception::Builder { + crate::error::ops_item_invalid_parameter_exception::Builder::default() } } ///

    The OpsItem already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemAlreadyExistsError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemAlreadyExistsException { pub message: std::option::Option, - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, } -impl std::fmt::Debug for OpsItemAlreadyExistsError { +impl std::fmt::Debug for OpsItemAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemAlreadyExistsError"); + let mut formatter = f.debug_struct("OpsItemAlreadyExistsException"); formatter.field("message", &self.message); formatter.field("ops_item_id", &self.ops_item_id); formatter.finish() } } -impl OpsItemAlreadyExistsError { +impl OpsItemAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemAlreadyExistsError { +impl std::fmt::Display for OpsItemAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsItemAlreadyExistsError [OpsItemAlreadyExistsException]" - )?; + write!(f, "OpsItemAlreadyExistsException")?; if let Some(inner_15) = &self.message { write!(f, ": {}", inner_15)?; } Ok(()) } } -impl std::error::Error for OpsItemAlreadyExistsError {} -/// See [`OpsItemAlreadyExistsError`](crate::error::OpsItemAlreadyExistsError) -pub mod ops_item_already_exists_error { - /// A builder for [`OpsItemAlreadyExistsError`](crate::error::OpsItemAlreadyExistsError) +impl std::error::Error for OpsItemAlreadyExistsException {} +/// See [`OpsItemAlreadyExistsException`](crate::error::OpsItemAlreadyExistsException) +pub mod ops_item_already_exists_exception { + /// A builder for [`OpsItemAlreadyExistsException`](crate::error::OpsItemAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -15320,19 +15385,19 @@ pub mod ops_item_already_exists_error { self.ops_item_id = input; self } - /// Consumes the builder and constructs a [`OpsItemAlreadyExistsError`](crate::error::OpsItemAlreadyExistsError) - pub fn build(self) -> crate::error::OpsItemAlreadyExistsError { - crate::error::OpsItemAlreadyExistsError { + /// Consumes the builder and constructs a [`OpsItemAlreadyExistsException`](crate::error::OpsItemAlreadyExistsException) + pub fn build(self) -> crate::error::OpsItemAlreadyExistsException { + crate::error::OpsItemAlreadyExistsException { message: self.message, ops_item_id: self.ops_item_id, } } } } -impl OpsItemAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`OpsItemAlreadyExistsError`](crate::error::OpsItemAlreadyExistsError) - pub fn builder() -> crate::error::ops_item_already_exists_error::Builder { - crate::error::ops_item_already_exists_error::Builder::default() +impl OpsItemAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`OpsItemAlreadyExistsException`](crate::error::OpsItemAlreadyExistsException) + pub fn builder() -> crate::error::ops_item_already_exists_exception::Builder { + crate::error::ops_item_already_exists_exception::Builder::default() } } @@ -15343,10 +15408,8 @@ impl OpsItemAlreadyExistsError { ///

    The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. /// Invalid states are: Shutting-down and Terminated.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidInstanceId { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidInstanceId { @@ -15405,10 +15468,8 @@ impl InvalidInstanceId { ///

    The document version is not valid or does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocumentVersion { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocumentVersion { @@ -15468,10 +15529,8 @@ impl InvalidDocumentVersion { ///

    You attempted to delete a document while it is still shared. You must stop sharing the /// document before you can delete it.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocumentOperation { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocumentOperation { @@ -15530,14 +15589,12 @@ impl InvalidDocumentOperation { ///

    The specified document does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocument { ///

    The document does not exist or the document is not available to the user. This exception can /// be issued by CreateAssociation, CreateAssociationBatch, DeleteAssociation, DeleteDocument, /// DescribeAssociation, DescribeDocument, GetDocument, SendCommand, or UpdateAssociationStatus. ///

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocument { @@ -15600,10 +15657,8 @@ impl InvalidDocument { ///

    The version of the document schema is not supported.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocumentSchemaVersion { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocumentSchemaVersion { @@ -15662,10 +15717,8 @@ impl InvalidDocumentSchemaVersion { ///

    The size limit of a document is 64 KB.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaxDocumentSizeExceeded { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for MaxDocumentSizeExceeded { @@ -15724,11 +15777,9 @@ impl MaxDocumentSizeExceeded { ///

    The content for the document is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocumentContent { ///

    A description of the validation error.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocumentContent { @@ -15789,10 +15840,8 @@ impl InvalidDocumentContent { ///

    The version name has already been used in this document. Specify a different version name, /// and then try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DuplicateDocumentVersionName { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DuplicateDocumentVersionName { @@ -15852,10 +15901,8 @@ impl DuplicateDocumentVersionName { ///

    The content of the association document matches another document. Change the content of the /// document and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DuplicateDocumentContent { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DuplicateDocumentContent { @@ -15915,10 +15962,8 @@ impl DuplicateDocumentContent { ///

    The document has too many versions. Delete one or more document versions and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentVersionLimitExceeded { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DocumentVersionLimitExceeded { @@ -15977,7 +16022,7 @@ impl DocumentVersionLimitExceeded { ///

    The updated status is the same as the current status.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StatusUnchanged {} impl std::fmt::Debug for StatusUnchanged { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -16019,10 +16064,8 @@ impl StatusUnchanged { ///

    The specified association does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationDoesNotExist { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for AssociationDoesNotExist { @@ -16081,10 +16124,8 @@ impl AssociationDoesNotExist { ///

    The update is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidUpdate { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidUpdate { @@ -16144,10 +16185,8 @@ impl InvalidUpdate { ///

    The target is not valid or does not exist. It might not be configured for Systems Manager or you might /// not have permission to perform the operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidTarget { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidTarget { @@ -16206,10 +16245,8 @@ impl InvalidTarget { ///

    The schedule is invalid. Verify your cron or rate expression and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidSchedule { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidSchedule { @@ -16269,10 +16306,8 @@ impl InvalidSchedule { ///

    You must specify values for all required parameters in the Systems Manager document. You can only /// supply values to parameters defined in the Systems Manager document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidParameters { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidParameters { @@ -16331,7 +16366,7 @@ impl InvalidParameters { ///

    The output location is not valid or does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidOutputLocation {} impl std::fmt::Debug for InvalidOutputLocation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -16375,10 +16410,8 @@ impl InvalidOutputLocation { /// an association according to the association ID. Or, use the $LATEST parameter to /// view the latest version of the association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidAssociationVersion { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidAssociationVersion { @@ -16438,10 +16471,8 @@ impl InvalidAssociationVersion { ///

    You have reached the maximum number versions allowed for an association. Each association /// has a limit of 1,000 versions.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationVersionLimitExceeded { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for AssociationVersionLimitExceeded { @@ -16501,10 +16532,8 @@ impl AssociationVersionLimitExceeded { ///

    The specified parameter version was not found. Verify the parameter name and version, and /// try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterVersionNotFound { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterVersionNotFound { @@ -16563,10 +16592,8 @@ impl ParameterVersionNotFound { ///

    The parameter could not be found. Verify the name and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterNotFound { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterNotFound { @@ -16625,40 +16652,35 @@ impl ParameterNotFound { ///

    The specified update status operation is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAutomationStatusUpdateError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAutomationStatusUpdateException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAutomationStatusUpdateError { +impl std::fmt::Debug for InvalidAutomationStatusUpdateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAutomationStatusUpdateError"); + let mut formatter = f.debug_struct("InvalidAutomationStatusUpdateException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAutomationStatusUpdateError { +impl InvalidAutomationStatusUpdateException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAutomationStatusUpdateError { +impl std::fmt::Display for InvalidAutomationStatusUpdateException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidAutomationStatusUpdateError [InvalidAutomationStatusUpdateException]" - )?; + write!(f, "InvalidAutomationStatusUpdateException")?; if let Some(inner_35) = &self.message { write!(f, ": {}", inner_35)?; } Ok(()) } } -impl std::error::Error for InvalidAutomationStatusUpdateError {} -/// See [`InvalidAutomationStatusUpdateError`](crate::error::InvalidAutomationStatusUpdateError) -pub mod invalid_automation_status_update_error { - /// A builder for [`InvalidAutomationStatusUpdateError`](crate::error::InvalidAutomationStatusUpdateError) +impl std::error::Error for InvalidAutomationStatusUpdateException {} +/// See [`InvalidAutomationStatusUpdateException`](crate::error::InvalidAutomationStatusUpdateException) +pub mod invalid_automation_status_update_exception { + /// A builder for [`InvalidAutomationStatusUpdateException`](crate::error::InvalidAutomationStatusUpdateException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16673,58 +16695,53 @@ pub mod invalid_automation_status_update_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAutomationStatusUpdateError`](crate::error::InvalidAutomationStatusUpdateError) - pub fn build(self) -> crate::error::InvalidAutomationStatusUpdateError { - crate::error::InvalidAutomationStatusUpdateError { + /// Consumes the builder and constructs a [`InvalidAutomationStatusUpdateException`](crate::error::InvalidAutomationStatusUpdateException) + pub fn build(self) -> crate::error::InvalidAutomationStatusUpdateException { + crate::error::InvalidAutomationStatusUpdateException { message: self.message, } } } } -impl InvalidAutomationStatusUpdateError { - /// Creates a new builder-style object to manufacture [`InvalidAutomationStatusUpdateError`](crate::error::InvalidAutomationStatusUpdateError) - pub fn builder() -> crate::error::invalid_automation_status_update_error::Builder { - crate::error::invalid_automation_status_update_error::Builder::default() +impl InvalidAutomationStatusUpdateException { + /// Creates a new builder-style object to manufacture [`InvalidAutomationStatusUpdateException`](crate::error::InvalidAutomationStatusUpdateException) + pub fn builder() -> crate::error::invalid_automation_status_update_exception::Builder { + crate::error::invalid_automation_status_update_exception::Builder::default() } } ///

    There is no automation execution information for the requested automation execution /// ID.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationExecutionNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationExecutionNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationExecutionNotFoundError { +impl std::fmt::Debug for AutomationExecutionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationExecutionNotFoundError"); + let mut formatter = f.debug_struct("AutomationExecutionNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationExecutionNotFoundError { +impl AutomationExecutionNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationExecutionNotFoundError { +impl std::fmt::Display for AutomationExecutionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AutomationExecutionNotFoundError [AutomationExecutionNotFoundException]" - )?; + write!(f, "AutomationExecutionNotFoundException")?; if let Some(inner_36) = &self.message { write!(f, ": {}", inner_36)?; } Ok(()) } } -impl std::error::Error for AutomationExecutionNotFoundError {} -/// See [`AutomationExecutionNotFoundError`](crate::error::AutomationExecutionNotFoundError) -pub mod automation_execution_not_found_error { - /// A builder for [`AutomationExecutionNotFoundError`](crate::error::AutomationExecutionNotFoundError) +impl std::error::Error for AutomationExecutionNotFoundException {} +/// See [`AutomationExecutionNotFoundException`](crate::error::AutomationExecutionNotFoundException) +pub mod automation_execution_not_found_exception { + /// A builder for [`AutomationExecutionNotFoundException`](crate::error::AutomationExecutionNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16739,18 +16756,18 @@ pub mod automation_execution_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationExecutionNotFoundError`](crate::error::AutomationExecutionNotFoundError) - pub fn build(self) -> crate::error::AutomationExecutionNotFoundError { - crate::error::AutomationExecutionNotFoundError { + /// Consumes the builder and constructs a [`AutomationExecutionNotFoundException`](crate::error::AutomationExecutionNotFoundException) + pub fn build(self) -> crate::error::AutomationExecutionNotFoundException { + crate::error::AutomationExecutionNotFoundException { message: self.message, } } } } -impl AutomationExecutionNotFoundError { - /// Creates a new builder-style object to manufacture [`AutomationExecutionNotFoundError`](crate::error::AutomationExecutionNotFoundError) - pub fn builder() -> crate::error::automation_execution_not_found_error::Builder { - crate::error::automation_execution_not_found_error::Builder::default() +impl AutomationExecutionNotFoundException { + /// Creates a new builder-style object to manufacture [`AutomationExecutionNotFoundException`](crate::error::AutomationExecutionNotFoundException) + pub fn builder() -> crate::error::automation_execution_not_found_exception::Builder { + crate::error::automation_execution_not_found_exception::Builder::default() } } @@ -16759,10 +16776,8 @@ impl AutomationExecutionNotFoundError { /// Session Manager in the AWS Systems Manager User Guide. This error is also returned if you /// attempt to start a session on an instance that is located in a different account or Region

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TargetNotConnected { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for TargetNotConnected { @@ -16823,37 +16838,35 @@ impl TargetNotConnected { /// example, they may not match the set of parameters permitted for the specified Automation /// document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAutomationExecutionParametersError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAutomationExecutionParametersException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAutomationExecutionParametersError { +impl std::fmt::Debug for InvalidAutomationExecutionParametersException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAutomationExecutionParametersError"); + let mut formatter = f.debug_struct("InvalidAutomationExecutionParametersException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAutomationExecutionParametersError { +impl InvalidAutomationExecutionParametersException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAutomationExecutionParametersError { +impl std::fmt::Display for InvalidAutomationExecutionParametersException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidAutomationExecutionParametersError [InvalidAutomationExecutionParametersException]")?; + write!(f, "InvalidAutomationExecutionParametersException")?; if let Some(inner_38) = &self.message { write!(f, ": {}", inner_38)?; } Ok(()) } } -impl std::error::Error for InvalidAutomationExecutionParametersError {} -/// See [`InvalidAutomationExecutionParametersError`](crate::error::InvalidAutomationExecutionParametersError) -pub mod invalid_automation_execution_parameters_error { - /// A builder for [`InvalidAutomationExecutionParametersError`](crate::error::InvalidAutomationExecutionParametersError) +impl std::error::Error for InvalidAutomationExecutionParametersException {} +/// See [`InvalidAutomationExecutionParametersException`](crate::error::InvalidAutomationExecutionParametersException) +pub mod invalid_automation_execution_parameters_exception { + /// A builder for [`InvalidAutomationExecutionParametersException`](crate::error::InvalidAutomationExecutionParametersException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16868,28 +16881,26 @@ pub mod invalid_automation_execution_parameters_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAutomationExecutionParametersError`](crate::error::InvalidAutomationExecutionParametersError) - pub fn build(self) -> crate::error::InvalidAutomationExecutionParametersError { - crate::error::InvalidAutomationExecutionParametersError { + /// Consumes the builder and constructs a [`InvalidAutomationExecutionParametersException`](crate::error::InvalidAutomationExecutionParametersException) + pub fn build(self) -> crate::error::InvalidAutomationExecutionParametersException { + crate::error::InvalidAutomationExecutionParametersException { message: self.message, } } } } -impl InvalidAutomationExecutionParametersError { - /// Creates a new builder-style object to manufacture [`InvalidAutomationExecutionParametersError`](crate::error::InvalidAutomationExecutionParametersError) - pub fn builder() -> crate::error::invalid_automation_execution_parameters_error::Builder { - crate::error::invalid_automation_execution_parameters_error::Builder::default() +impl InvalidAutomationExecutionParametersException { + /// Creates a new builder-style object to manufacture [`InvalidAutomationExecutionParametersException`](crate::error::InvalidAutomationExecutionParametersException) + pub fn builder() -> crate::error::invalid_automation_execution_parameters_exception::Builder { + crate::error::invalid_automation_execution_parameters_exception::Builder::default() } } ///

    Error returned when an idempotent operation is retried and the parameters don't match the /// original call to the API with the same idempotency token.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct IdempotentParameterMismatch { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for IdempotentParameterMismatch { @@ -16949,40 +16960,35 @@ impl IdempotentParameterMismatch { ///

    The number of simultaneously running Automation executions exceeded the allowable /// limit.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationExecutionLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationExecutionLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationExecutionLimitExceededError { +impl std::fmt::Debug for AutomationExecutionLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationExecutionLimitExceededError"); + let mut formatter = f.debug_struct("AutomationExecutionLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationExecutionLimitExceededError { +impl AutomationExecutionLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationExecutionLimitExceededError { +impl std::fmt::Display for AutomationExecutionLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AutomationExecutionLimitExceededError [AutomationExecutionLimitExceededException]" - )?; + write!(f, "AutomationExecutionLimitExceededException")?; if let Some(inner_40) = &self.message { write!(f, ": {}", inner_40)?; } Ok(()) } } -impl std::error::Error for AutomationExecutionLimitExceededError {} -/// See [`AutomationExecutionLimitExceededError`](crate::error::AutomationExecutionLimitExceededError) -pub mod automation_execution_limit_exceeded_error { - /// A builder for [`AutomationExecutionLimitExceededError`](crate::error::AutomationExecutionLimitExceededError) +impl std::error::Error for AutomationExecutionLimitExceededException {} +/// See [`AutomationExecutionLimitExceededException`](crate::error::AutomationExecutionLimitExceededException) +pub mod automation_execution_limit_exceeded_exception { + /// A builder for [`AutomationExecutionLimitExceededException`](crate::error::AutomationExecutionLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -16997,54 +17003,52 @@ pub mod automation_execution_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationExecutionLimitExceededError`](crate::error::AutomationExecutionLimitExceededError) - pub fn build(self) -> crate::error::AutomationExecutionLimitExceededError { - crate::error::AutomationExecutionLimitExceededError { + /// Consumes the builder and constructs a [`AutomationExecutionLimitExceededException`](crate::error::AutomationExecutionLimitExceededException) + pub fn build(self) -> crate::error::AutomationExecutionLimitExceededException { + crate::error::AutomationExecutionLimitExceededException { message: self.message, } } } } -impl AutomationExecutionLimitExceededError { - /// Creates a new builder-style object to manufacture [`AutomationExecutionLimitExceededError`](crate::error::AutomationExecutionLimitExceededError) - pub fn builder() -> crate::error::automation_execution_limit_exceeded_error::Builder { - crate::error::automation_execution_limit_exceeded_error::Builder::default() +impl AutomationExecutionLimitExceededException { + /// Creates a new builder-style object to manufacture [`AutomationExecutionLimitExceededException`](crate::error::AutomationExecutionLimitExceededException) + pub fn builder() -> crate::error::automation_execution_limit_exceeded_exception::Builder { + crate::error::automation_execution_limit_exceeded_exception::Builder::default() } } ///

    An Automation document with the specified name and version could not be found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationDefinitionVersionNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationDefinitionVersionNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationDefinitionVersionNotFoundError { +impl std::fmt::Debug for AutomationDefinitionVersionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationDefinitionVersionNotFoundError"); + let mut formatter = f.debug_struct("AutomationDefinitionVersionNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationDefinitionVersionNotFoundError { +impl AutomationDefinitionVersionNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationDefinitionVersionNotFoundError { +impl std::fmt::Display for AutomationDefinitionVersionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AutomationDefinitionVersionNotFoundError [AutomationDefinitionVersionNotFoundException]")?; + write!(f, "AutomationDefinitionVersionNotFoundException")?; if let Some(inner_41) = &self.message { write!(f, ": {}", inner_41)?; } Ok(()) } } -impl std::error::Error for AutomationDefinitionVersionNotFoundError {} -/// See [`AutomationDefinitionVersionNotFoundError`](crate::error::AutomationDefinitionVersionNotFoundError) -pub mod automation_definition_version_not_found_error { - /// A builder for [`AutomationDefinitionVersionNotFoundError`](crate::error::AutomationDefinitionVersionNotFoundError) +impl std::error::Error for AutomationDefinitionVersionNotFoundException {} +/// See [`AutomationDefinitionVersionNotFoundException`](crate::error::AutomationDefinitionVersionNotFoundException) +pub mod automation_definition_version_not_found_exception { + /// A builder for [`AutomationDefinitionVersionNotFoundException`](crate::error::AutomationDefinitionVersionNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17059,57 +17063,52 @@ pub mod automation_definition_version_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationDefinitionVersionNotFoundError`](crate::error::AutomationDefinitionVersionNotFoundError) - pub fn build(self) -> crate::error::AutomationDefinitionVersionNotFoundError { - crate::error::AutomationDefinitionVersionNotFoundError { + /// Consumes the builder and constructs a [`AutomationDefinitionVersionNotFoundException`](crate::error::AutomationDefinitionVersionNotFoundException) + pub fn build(self) -> crate::error::AutomationDefinitionVersionNotFoundException { + crate::error::AutomationDefinitionVersionNotFoundException { message: self.message, } } } } -impl AutomationDefinitionVersionNotFoundError { - /// Creates a new builder-style object to manufacture [`AutomationDefinitionVersionNotFoundError`](crate::error::AutomationDefinitionVersionNotFoundError) - pub fn builder() -> crate::error::automation_definition_version_not_found_error::Builder { - crate::error::automation_definition_version_not_found_error::Builder::default() +impl AutomationDefinitionVersionNotFoundException { + /// Creates a new builder-style object to manufacture [`AutomationDefinitionVersionNotFoundException`](crate::error::AutomationDefinitionVersionNotFoundException) + pub fn builder() -> crate::error::automation_definition_version_not_found_exception::Builder { + crate::error::automation_definition_version_not_found_exception::Builder::default() } } ///

    An Automation document with the specified name could not be found.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationDefinitionNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationDefinitionNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationDefinitionNotFoundError { +impl std::fmt::Debug for AutomationDefinitionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationDefinitionNotFoundError"); + let mut formatter = f.debug_struct("AutomationDefinitionNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationDefinitionNotFoundError { +impl AutomationDefinitionNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationDefinitionNotFoundError { +impl std::fmt::Display for AutomationDefinitionNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AutomationDefinitionNotFoundError [AutomationDefinitionNotFoundException]" - )?; + write!(f, "AutomationDefinitionNotFoundException")?; if let Some(inner_42) = &self.message { write!(f, ": {}", inner_42)?; } Ok(()) } } -impl std::error::Error for AutomationDefinitionNotFoundError {} -/// See [`AutomationDefinitionNotFoundError`](crate::error::AutomationDefinitionNotFoundError) -pub mod automation_definition_not_found_error { - /// A builder for [`AutomationDefinitionNotFoundError`](crate::error::AutomationDefinitionNotFoundError) +impl std::error::Error for AutomationDefinitionNotFoundException {} +/// See [`AutomationDefinitionNotFoundException`](crate::error::AutomationDefinitionNotFoundException) +pub mod automation_definition_not_found_exception { + /// A builder for [`AutomationDefinitionNotFoundException`](crate::error::AutomationDefinitionNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17124,58 +17123,53 @@ pub mod automation_definition_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationDefinitionNotFoundError`](crate::error::AutomationDefinitionNotFoundError) - pub fn build(self) -> crate::error::AutomationDefinitionNotFoundError { - crate::error::AutomationDefinitionNotFoundError { + /// Consumes the builder and constructs a [`AutomationDefinitionNotFoundException`](crate::error::AutomationDefinitionNotFoundException) + pub fn build(self) -> crate::error::AutomationDefinitionNotFoundException { + crate::error::AutomationDefinitionNotFoundException { message: self.message, } } } } -impl AutomationDefinitionNotFoundError { - /// Creates a new builder-style object to manufacture [`AutomationDefinitionNotFoundError`](crate::error::AutomationDefinitionNotFoundError) - pub fn builder() -> crate::error::automation_definition_not_found_error::Builder { - crate::error::automation_definition_not_found_error::Builder::default() +impl AutomationDefinitionNotFoundException { + /// Creates a new builder-style object to manufacture [`AutomationDefinitionNotFoundException`](crate::error::AutomationDefinitionNotFoundException) + pub fn builder() -> crate::error::automation_definition_not_found_exception::Builder { + crate::error::automation_definition_not_found_exception::Builder::default() } } ///

    Indicates that the Change Manager change template used in the change request was rejected or is /// still in a pending state.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationDefinitionNotApprovedError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationDefinitionNotApprovedException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationDefinitionNotApprovedError { +impl std::fmt::Debug for AutomationDefinitionNotApprovedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationDefinitionNotApprovedError"); + let mut formatter = f.debug_struct("AutomationDefinitionNotApprovedException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationDefinitionNotApprovedError { +impl AutomationDefinitionNotApprovedException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationDefinitionNotApprovedError { +impl std::fmt::Display for AutomationDefinitionNotApprovedException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AutomationDefinitionNotApprovedError [AutomationDefinitionNotApprovedException]" - )?; + write!(f, "AutomationDefinitionNotApprovedException")?; if let Some(inner_43) = &self.message { write!(f, ": {}", inner_43)?; } Ok(()) } } -impl std::error::Error for AutomationDefinitionNotApprovedError {} -/// See [`AutomationDefinitionNotApprovedError`](crate::error::AutomationDefinitionNotApprovedError) -pub mod automation_definition_not_approved_error { - /// A builder for [`AutomationDefinitionNotApprovedError`](crate::error::AutomationDefinitionNotApprovedError) +impl std::error::Error for AutomationDefinitionNotApprovedException {} +/// See [`AutomationDefinitionNotApprovedException`](crate::error::AutomationDefinitionNotApprovedException) +pub mod automation_definition_not_approved_exception { + /// A builder for [`AutomationDefinitionNotApprovedException`](crate::error::AutomationDefinitionNotApprovedException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17190,27 +17184,25 @@ pub mod automation_definition_not_approved_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationDefinitionNotApprovedError`](crate::error::AutomationDefinitionNotApprovedError) - pub fn build(self) -> crate::error::AutomationDefinitionNotApprovedError { - crate::error::AutomationDefinitionNotApprovedError { + /// Consumes the builder and constructs a [`AutomationDefinitionNotApprovedException`](crate::error::AutomationDefinitionNotApprovedException) + pub fn build(self) -> crate::error::AutomationDefinitionNotApprovedException { + crate::error::AutomationDefinitionNotApprovedException { message: self.message, } } } } -impl AutomationDefinitionNotApprovedError { - /// Creates a new builder-style object to manufacture [`AutomationDefinitionNotApprovedError`](crate::error::AutomationDefinitionNotApprovedError) - pub fn builder() -> crate::error::automation_definition_not_approved_error::Builder { - crate::error::automation_definition_not_approved_error::Builder::default() +impl AutomationDefinitionNotApprovedException { + /// Creates a new builder-style object to manufacture [`AutomationDefinitionNotApprovedException`](crate::error::AutomationDefinitionNotApprovedException) + pub fn builder() -> crate::error::automation_definition_not_approved_exception::Builder { + crate::error::automation_definition_not_approved_exception::Builder::default() } } ///

    The association is not valid or does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidAssociation { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidAssociation { @@ -17270,10 +17262,8 @@ impl InvalidAssociation { ///

    The document does not support the platform type of the given instance ID(s). For example, /// you sent an document for a Windows instance to a Linux instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UnsupportedPlatformType { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for UnsupportedPlatformType { @@ -17335,10 +17325,8 @@ impl UnsupportedPlatformType { /// IAM role for Run Command notifications, see Configuring Amazon SNS /// Notifications for Run Command in the AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidRole { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidRole { @@ -17397,7 +17385,7 @@ impl InvalidRole { ///

    The S3 bucket does not exist.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidOutputFolder {} impl std::fmt::Debug for InvalidOutputFolder { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -17440,10 +17428,8 @@ impl InvalidOutputFolder { ///

    One or more configuration items is not valid. Verify that a valid Amazon Resource Name (ARN) /// was provided for an Amazon SNS topic.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidNotificationConfig { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidNotificationConfig { @@ -17502,7 +17488,7 @@ impl InvalidNotificationConfig { ///

    You cannot specify an instance ID in more than one association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DuplicateInstanceId {} impl std::fmt::Debug for DuplicateInstanceId { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -17544,40 +17530,35 @@ impl DuplicateInstanceId { ///

    The signal is not valid for the current Automation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAutomationSignalError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAutomationSignalException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAutomationSignalError { +impl std::fmt::Debug for InvalidAutomationSignalException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAutomationSignalError"); + let mut formatter = f.debug_struct("InvalidAutomationSignalException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAutomationSignalError { +impl InvalidAutomationSignalException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAutomationSignalError { +impl std::fmt::Display for InvalidAutomationSignalException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidAutomationSignalError [InvalidAutomationSignalException]" - )?; + write!(f, "InvalidAutomationSignalException")?; if let Some(inner_48) = &self.message { write!(f, ": {}", inner_48)?; } Ok(()) } } -impl std::error::Error for InvalidAutomationSignalError {} -/// See [`InvalidAutomationSignalError`](crate::error::InvalidAutomationSignalError) -pub mod invalid_automation_signal_error { - /// A builder for [`InvalidAutomationSignalError`](crate::error::InvalidAutomationSignalError) +impl std::error::Error for InvalidAutomationSignalException {} +/// See [`InvalidAutomationSignalException`](crate::error::InvalidAutomationSignalException) +pub mod invalid_automation_signal_exception { + /// A builder for [`InvalidAutomationSignalException`](crate::error::InvalidAutomationSignalException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17592,58 +17573,53 @@ pub mod invalid_automation_signal_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAutomationSignalError`](crate::error::InvalidAutomationSignalError) - pub fn build(self) -> crate::error::InvalidAutomationSignalError { - crate::error::InvalidAutomationSignalError { + /// Consumes the builder and constructs a [`InvalidAutomationSignalException`](crate::error::InvalidAutomationSignalException) + pub fn build(self) -> crate::error::InvalidAutomationSignalException { + crate::error::InvalidAutomationSignalException { message: self.message, } } } } -impl InvalidAutomationSignalError { - /// Creates a new builder-style object to manufacture [`InvalidAutomationSignalError`](crate::error::InvalidAutomationSignalError) - pub fn builder() -> crate::error::invalid_automation_signal_error::Builder { - crate::error::invalid_automation_signal_error::Builder::default() +impl InvalidAutomationSignalException { + /// Creates a new builder-style object to manufacture [`InvalidAutomationSignalException`](crate::error::InvalidAutomationSignalException) + pub fn builder() -> crate::error::invalid_automation_signal_exception::Builder { + crate::error::invalid_automation_signal_exception::Builder::default() } } ///

    The specified step name and execution ID don't exist. Verify the information and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AutomationStepNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AutomationStepNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for AutomationStepNotFoundError { +impl std::fmt::Debug for AutomationStepNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AutomationStepNotFoundError"); + let mut formatter = f.debug_struct("AutomationStepNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl AutomationStepNotFoundError { +impl AutomationStepNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AutomationStepNotFoundError { +impl std::fmt::Display for AutomationStepNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "AutomationStepNotFoundError [AutomationStepNotFoundException]" - )?; + write!(f, "AutomationStepNotFoundException")?; if let Some(inner_49) = &self.message { write!(f, ": {}", inner_49)?; } Ok(()) } } -impl std::error::Error for AutomationStepNotFoundError {} -/// See [`AutomationStepNotFoundError`](crate::error::AutomationStepNotFoundError) -pub mod automation_step_not_found_error { - /// A builder for [`AutomationStepNotFoundError`](crate::error::AutomationStepNotFoundError) +impl std::error::Error for AutomationStepNotFoundException {} +/// See [`AutomationStepNotFoundException`](crate::error::AutomationStepNotFoundException) +pub mod automation_step_not_found_exception { + /// A builder for [`AutomationStepNotFoundException`](crate::error::AutomationStepNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17658,25 +17634,25 @@ pub mod automation_step_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`AutomationStepNotFoundError`](crate::error::AutomationStepNotFoundError) - pub fn build(self) -> crate::error::AutomationStepNotFoundError { - crate::error::AutomationStepNotFoundError { + /// Consumes the builder and constructs a [`AutomationStepNotFoundException`](crate::error::AutomationStepNotFoundException) + pub fn build(self) -> crate::error::AutomationStepNotFoundException { + crate::error::AutomationStepNotFoundException { message: self.message, } } } } -impl AutomationStepNotFoundError { - /// Creates a new builder-style object to manufacture [`AutomationStepNotFoundError`](crate::error::AutomationStepNotFoundError) - pub fn builder() -> crate::error::automation_step_not_found_error::Builder { - crate::error::automation_step_not_found_error::Builder::default() +impl AutomationStepNotFoundException { + /// Creates a new builder-style object to manufacture [`AutomationStepNotFoundException`](crate::error::AutomationStepNotFoundException) + pub fn builder() -> crate::error::automation_step_not_found_exception::Builder { + crate::error::automation_step_not_found_exception::Builder::default() } } ///

    The resource type is not valid. For example, if you are attempting to tag an instance, the /// instance must be a registered, managed instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidResourceType {} impl std::fmt::Debug for InvalidResourceType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -17718,7 +17694,7 @@ impl InvalidResourceType { ///

    The resource ID is not valid. Verify that you entered the correct ID and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidResourceId {} impl std::fmt::Debug for InvalidResourceId { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -17763,40 +17739,35 @@ impl InvalidResourceId { ///

    For information about resource quotas in Systems Manager, see Systems Manager service quotas in the /// AWS General Reference.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceLimitExceededError { +impl std::fmt::Debug for ResourceLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceLimitExceededError"); + let mut formatter = f.debug_struct("ResourceLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceLimitExceededError { +impl ResourceLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceLimitExceededError { +impl std::fmt::Display for ResourceLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceLimitExceededError [ResourceLimitExceededException]" - )?; + write!(f, "ResourceLimitExceededException")?; if let Some(inner_50) = &self.message { write!(f, ": {}", inner_50)?; } Ok(()) } } -impl std::error::Error for ResourceLimitExceededError {} -/// See [`ResourceLimitExceededError`](crate::error::ResourceLimitExceededError) -pub mod resource_limit_exceeded_error { - /// A builder for [`ResourceLimitExceededError`](crate::error::ResourceLimitExceededError) +impl std::error::Error for ResourceLimitExceededException {} +/// See [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) +pub mod resource_limit_exceeded_exception { + /// A builder for [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17811,55 +17782,53 @@ pub mod resource_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceLimitExceededError`](crate::error::ResourceLimitExceededError) - pub fn build(self) -> crate::error::ResourceLimitExceededError { - crate::error::ResourceLimitExceededError { + /// Consumes the builder and constructs a [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) + pub fn build(self) -> crate::error::ResourceLimitExceededException { + crate::error::ResourceLimitExceededException { message: self.message, } } } } -impl ResourceLimitExceededError { - /// Creates a new builder-style object to manufacture [`ResourceLimitExceededError`](crate::error::ResourceLimitExceededError) - pub fn builder() -> crate::error::resource_limit_exceeded_error::Builder { - crate::error::resource_limit_exceeded_error::Builder::default() +impl ResourceLimitExceededException { + /// Creates a new builder-style object to manufacture [`ResourceLimitExceededException`](crate::error::ResourceLimitExceededException) + pub fn builder() -> crate::error::resource_limit_exceeded_exception::Builder { + crate::error::resource_limit_exceeded_exception::Builder::default() } } ///

    You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where the /// corresponding service is not available.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct FeatureNotAvailableError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct FeatureNotAvailableException { pub message: std::option::Option, } -impl std::fmt::Debug for FeatureNotAvailableError { +impl std::fmt::Debug for FeatureNotAvailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("FeatureNotAvailableError"); + let mut formatter = f.debug_struct("FeatureNotAvailableException"); formatter.field("message", &self.message); formatter.finish() } } -impl FeatureNotAvailableError { +impl FeatureNotAvailableException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for FeatureNotAvailableError { +impl std::fmt::Display for FeatureNotAvailableException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "FeatureNotAvailableError [FeatureNotAvailableException]")?; + write!(f, "FeatureNotAvailableException")?; if let Some(inner_51) = &self.message { write!(f, ": {}", inner_51)?; } Ok(()) } } -impl std::error::Error for FeatureNotAvailableError {} -/// See [`FeatureNotAvailableError`](crate::error::FeatureNotAvailableError) -pub mod feature_not_available_error { - /// A builder for [`FeatureNotAvailableError`](crate::error::FeatureNotAvailableError) +impl std::error::Error for FeatureNotAvailableException {} +/// See [`FeatureNotAvailableException`](crate::error::FeatureNotAvailableException) +pub mod feature_not_available_exception { + /// A builder for [`FeatureNotAvailableException`](crate::error::FeatureNotAvailableException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17874,55 +17843,53 @@ pub mod feature_not_available_error { self.message = input; self } - /// Consumes the builder and constructs a [`FeatureNotAvailableError`](crate::error::FeatureNotAvailableError) - pub fn build(self) -> crate::error::FeatureNotAvailableError { - crate::error::FeatureNotAvailableError { + /// Consumes the builder and constructs a [`FeatureNotAvailableException`](crate::error::FeatureNotAvailableException) + pub fn build(self) -> crate::error::FeatureNotAvailableException { + crate::error::FeatureNotAvailableException { message: self.message, } } } } -impl FeatureNotAvailableError { - /// Creates a new builder-style object to manufacture [`FeatureNotAvailableError`](crate::error::FeatureNotAvailableError) - pub fn builder() -> crate::error::feature_not_available_error::Builder { - crate::error::feature_not_available_error::Builder::default() +impl FeatureNotAvailableException { + /// Creates a new builder-style object to manufacture [`FeatureNotAvailableException`](crate::error::FeatureNotAvailableException) + pub fn builder() -> crate::error::feature_not_available_exception::Builder { + crate::error::feature_not_available_exception::Builder::default() } } ///

    Error returned if an attempt is made to register a patch group with a patch baseline that is /// already registered with a different patch baseline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AlreadyExistsError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct AlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for AlreadyExistsError { +impl std::fmt::Debug for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AlreadyExistsError"); + let mut formatter = f.debug_struct("AlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl AlreadyExistsError { +impl AlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for AlreadyExistsError { +impl std::fmt::Display for AlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "AlreadyExistsError [AlreadyExistsException]")?; + write!(f, "AlreadyExistsException")?; if let Some(inner_52) = &self.message { write!(f, ": {}", inner_52)?; } Ok(()) } } -impl std::error::Error for AlreadyExistsError {} -/// See [`AlreadyExistsError`](crate::error::AlreadyExistsError) -pub mod already_exists_error { - /// A builder for [`AlreadyExistsError`](crate::error::AlreadyExistsError) +impl std::error::Error for AlreadyExistsException {} +/// See [`AlreadyExistsException`](crate::error::AlreadyExistsException) +pub mod already_exists_exception { + /// A builder for [`AlreadyExistsException`](crate::error::AlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -17937,27 +17904,25 @@ pub mod already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn build(self) -> crate::error::AlreadyExistsError { - crate::error::AlreadyExistsError { + /// Consumes the builder and constructs a [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn build(self) -> crate::error::AlreadyExistsException { + crate::error::AlreadyExistsException { message: self.message, } } } } -impl AlreadyExistsError { - /// Creates a new builder-style object to manufacture [`AlreadyExistsError`](crate::error::AlreadyExistsError) - pub fn builder() -> crate::error::already_exists_error::Builder { - crate::error::already_exists_error::Builder::default() +impl AlreadyExistsException { + /// Creates a new builder-style object to manufacture [`AlreadyExistsException`](crate::error::AlreadyExistsException) + pub fn builder() -> crate::error::already_exists_exception::Builder { + crate::error::already_exists_exception::Builder::default() } } ///

    The parameter type is not supported.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UnsupportedParameterType { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for UnsupportedParameterType { @@ -18017,40 +17982,35 @@ impl UnsupportedParameterType { ///

    You specified more than the maximum number of allowed policies for the parameter. The /// maximum is 10.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PoliciesLimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct PoliciesLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for PoliciesLimitExceededError { +impl std::fmt::Debug for PoliciesLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PoliciesLimitExceededError"); + let mut formatter = f.debug_struct("PoliciesLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl PoliciesLimitExceededError { +impl PoliciesLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PoliciesLimitExceededError { +impl std::fmt::Display for PoliciesLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PoliciesLimitExceededError [PoliciesLimitExceededException]" - )?; + write!(f, "PoliciesLimitExceededException")?; if let Some(inner_54) = &self.message { write!(f, ": {}", inner_54)?; } Ok(()) } } -impl std::error::Error for PoliciesLimitExceededError {} -/// See [`PoliciesLimitExceededError`](crate::error::PoliciesLimitExceededError) -pub mod policies_limit_exceeded_error { - /// A builder for [`PoliciesLimitExceededError`](crate::error::PoliciesLimitExceededError) +impl std::error::Error for PoliciesLimitExceededException {} +/// See [`PoliciesLimitExceededException`](crate::error::PoliciesLimitExceededException) +pub mod policies_limit_exceeded_exception { + /// A builder for [`PoliciesLimitExceededException`](crate::error::PoliciesLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18065,58 +18025,53 @@ pub mod policies_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`PoliciesLimitExceededError`](crate::error::PoliciesLimitExceededError) - pub fn build(self) -> crate::error::PoliciesLimitExceededError { - crate::error::PoliciesLimitExceededError { + /// Consumes the builder and constructs a [`PoliciesLimitExceededException`](crate::error::PoliciesLimitExceededException) + pub fn build(self) -> crate::error::PoliciesLimitExceededException { + crate::error::PoliciesLimitExceededException { message: self.message, } } } } -impl PoliciesLimitExceededError { - /// Creates a new builder-style object to manufacture [`PoliciesLimitExceededError`](crate::error::PoliciesLimitExceededError) - pub fn builder() -> crate::error::policies_limit_exceeded_error::Builder { - crate::error::policies_limit_exceeded_error::Builder::default() +impl PoliciesLimitExceededException { + /// Creates a new builder-style object to manufacture [`PoliciesLimitExceededException`](crate::error::PoliciesLimitExceededException) + pub fn builder() -> crate::error::policies_limit_exceeded_exception::Builder { + crate::error::policies_limit_exceeded_exception::Builder::default() } } ///

    The parameter name is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ParameterPatternMismatchError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ParameterPatternMismatchException { ///

    The parameter name is not valid.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ParameterPatternMismatchError { +impl std::fmt::Debug for ParameterPatternMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ParameterPatternMismatchError"); + let mut formatter = f.debug_struct("ParameterPatternMismatchException"); formatter.field("message", &self.message); formatter.finish() } } -impl ParameterPatternMismatchError { +impl ParameterPatternMismatchException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ParameterPatternMismatchError { +impl std::fmt::Display for ParameterPatternMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ParameterPatternMismatchError [ParameterPatternMismatchException]" - )?; + write!(f, "ParameterPatternMismatchException")?; if let Some(inner_55) = &self.message { write!(f, ": {}", inner_55)?; } Ok(()) } } -impl std::error::Error for ParameterPatternMismatchError {} -/// See [`ParameterPatternMismatchError`](crate::error::ParameterPatternMismatchError) -pub mod parameter_pattern_mismatch_error { - /// A builder for [`ParameterPatternMismatchError`](crate::error::ParameterPatternMismatchError) +impl std::error::Error for ParameterPatternMismatchException {} +/// See [`ParameterPatternMismatchException`](crate::error::ParameterPatternMismatchException) +pub mod parameter_pattern_mismatch_exception { + /// A builder for [`ParameterPatternMismatchException`](crate::error::ParameterPatternMismatchException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18132,18 +18087,18 @@ pub mod parameter_pattern_mismatch_error { self.message = input; self } - /// Consumes the builder and constructs a [`ParameterPatternMismatchError`](crate::error::ParameterPatternMismatchError) - pub fn build(self) -> crate::error::ParameterPatternMismatchError { - crate::error::ParameterPatternMismatchError { + /// Consumes the builder and constructs a [`ParameterPatternMismatchException`](crate::error::ParameterPatternMismatchException) + pub fn build(self) -> crate::error::ParameterPatternMismatchException { + crate::error::ParameterPatternMismatchException { message: self.message, } } } } -impl ParameterPatternMismatchError { - /// Creates a new builder-style object to manufacture [`ParameterPatternMismatchError`](crate::error::ParameterPatternMismatchError) - pub fn builder() -> crate::error::parameter_pattern_mismatch_error::Builder { - crate::error::parameter_pattern_mismatch_error::Builder::default() +impl ParameterPatternMismatchException { + /// Creates a new builder-style object to manufacture [`ParameterPatternMismatchException`](crate::error::ParameterPatternMismatchException) + pub fn builder() -> crate::error::parameter_pattern_mismatch_exception::Builder { + crate::error::parameter_pattern_mismatch_exception::Builder::default() } } @@ -18166,10 +18121,8 @@ impl ParameterPatternMismatchError { /// parameter label (console) or Move a /// parameter label (CLI) in the AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterMaxVersionLimitExceeded { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterMaxVersionLimitExceeded { @@ -18229,10 +18182,8 @@ impl ParameterMaxVersionLimitExceeded { ///

    You have exceeded the number of parameters for this AWS account. Delete one or more /// parameters and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterLimitExceeded { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterLimitExceeded { @@ -18291,10 +18242,8 @@ impl ParameterLimitExceeded { ///

    The parameter already exists. You can't create duplicate parameters.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterAlreadyExists { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterAlreadyExists { @@ -18354,37 +18303,35 @@ impl ParameterAlreadyExists { ///

    The policy type is not supported. Parameter Store supports the following policy types: /// Expiration, ExpirationNotification, and NoChangeNotification.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidPolicyTypeError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidPolicyTypeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidPolicyTypeError { +impl std::fmt::Debug for InvalidPolicyTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidPolicyTypeError"); + let mut formatter = f.debug_struct("InvalidPolicyTypeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidPolicyTypeError { +impl InvalidPolicyTypeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidPolicyTypeError { +impl std::fmt::Display for InvalidPolicyTypeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidPolicyTypeError [InvalidPolicyTypeException]")?; + write!(f, "InvalidPolicyTypeException")?; if let Some(inner_59) = &self.message { write!(f, ": {}", inner_59)?; } Ok(()) } } -impl std::error::Error for InvalidPolicyTypeError {} -/// See [`InvalidPolicyTypeError`](crate::error::InvalidPolicyTypeError) -pub mod invalid_policy_type_error { - /// A builder for [`InvalidPolicyTypeError`](crate::error::InvalidPolicyTypeError) +impl std::error::Error for InvalidPolicyTypeException {} +/// See [`InvalidPolicyTypeException`](crate::error::InvalidPolicyTypeException) +pub mod invalid_policy_type_exception { + /// A builder for [`InvalidPolicyTypeException`](crate::error::InvalidPolicyTypeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18399,57 +18346,52 @@ pub mod invalid_policy_type_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidPolicyTypeError`](crate::error::InvalidPolicyTypeError) - pub fn build(self) -> crate::error::InvalidPolicyTypeError { - crate::error::InvalidPolicyTypeError { + /// Consumes the builder and constructs a [`InvalidPolicyTypeException`](crate::error::InvalidPolicyTypeException) + pub fn build(self) -> crate::error::InvalidPolicyTypeException { + crate::error::InvalidPolicyTypeException { message: self.message, } } } } -impl InvalidPolicyTypeError { - /// Creates a new builder-style object to manufacture [`InvalidPolicyTypeError`](crate::error::InvalidPolicyTypeError) - pub fn builder() -> crate::error::invalid_policy_type_error::Builder { - crate::error::invalid_policy_type_error::Builder::default() +impl InvalidPolicyTypeException { + /// Creates a new builder-style object to manufacture [`InvalidPolicyTypeException`](crate::error::InvalidPolicyTypeException) + pub fn builder() -> crate::error::invalid_policy_type_exception::Builder { + crate::error::invalid_policy_type_exception::Builder::default() } } ///

    A policy attribute or its value is invalid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidPolicyAttributeError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidPolicyAttributeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidPolicyAttributeError { +impl std::fmt::Debug for InvalidPolicyAttributeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidPolicyAttributeError"); + let mut formatter = f.debug_struct("InvalidPolicyAttributeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidPolicyAttributeError { +impl InvalidPolicyAttributeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidPolicyAttributeError { +impl std::fmt::Display for InvalidPolicyAttributeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidPolicyAttributeError [InvalidPolicyAttributeException]" - )?; + write!(f, "InvalidPolicyAttributeException")?; if let Some(inner_60) = &self.message { write!(f, ": {}", inner_60)?; } Ok(()) } } -impl std::error::Error for InvalidPolicyAttributeError {} -/// See [`InvalidPolicyAttributeError`](crate::error::InvalidPolicyAttributeError) -pub mod invalid_policy_attribute_error { - /// A builder for [`InvalidPolicyAttributeError`](crate::error::InvalidPolicyAttributeError) +impl std::error::Error for InvalidPolicyAttributeException {} +/// See [`InvalidPolicyAttributeException`](crate::error::InvalidPolicyAttributeException) +pub mod invalid_policy_attribute_exception { + /// A builder for [`InvalidPolicyAttributeException`](crate::error::InvalidPolicyAttributeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18464,27 +18406,25 @@ pub mod invalid_policy_attribute_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidPolicyAttributeError`](crate::error::InvalidPolicyAttributeError) - pub fn build(self) -> crate::error::InvalidPolicyAttributeError { - crate::error::InvalidPolicyAttributeError { + /// Consumes the builder and constructs a [`InvalidPolicyAttributeException`](crate::error::InvalidPolicyAttributeException) + pub fn build(self) -> crate::error::InvalidPolicyAttributeException { + crate::error::InvalidPolicyAttributeException { message: self.message, } } } } -impl InvalidPolicyAttributeError { - /// Creates a new builder-style object to manufacture [`InvalidPolicyAttributeError`](crate::error::InvalidPolicyAttributeError) - pub fn builder() -> crate::error::invalid_policy_attribute_error::Builder { - crate::error::invalid_policy_attribute_error::Builder::default() +impl InvalidPolicyAttributeException { + /// Creates a new builder-style object to manufacture [`InvalidPolicyAttributeException`](crate::error::InvalidPolicyAttributeException) + pub fn builder() -> crate::error::invalid_policy_attribute_exception::Builder { + crate::error::invalid_policy_attribute_exception::Builder::default() } } ///

    The query key ID is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidKeyId { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidKeyId { @@ -18543,41 +18483,36 @@ impl InvalidKeyId { ///

    The request does not meet the regular expression requirement.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAllowedPatternError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAllowedPatternException { ///

    The request does not meet the regular expression requirement.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAllowedPatternError { +impl std::fmt::Debug for InvalidAllowedPatternException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAllowedPatternError"); + let mut formatter = f.debug_struct("InvalidAllowedPatternException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAllowedPatternError { +impl InvalidAllowedPatternException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAllowedPatternError { +impl std::fmt::Display for InvalidAllowedPatternException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidAllowedPatternError [InvalidAllowedPatternException]" - )?; + write!(f, "InvalidAllowedPatternException")?; if let Some(inner_62) = &self.message { write!(f, ": {}", inner_62)?; } Ok(()) } } -impl std::error::Error for InvalidAllowedPatternError {} -/// See [`InvalidAllowedPatternError`](crate::error::InvalidAllowedPatternError) -pub mod invalid_allowed_pattern_error { - /// A builder for [`InvalidAllowedPatternError`](crate::error::InvalidAllowedPatternError) +impl std::error::Error for InvalidAllowedPatternException {} +/// See [`InvalidAllowedPatternException`](crate::error::InvalidAllowedPatternException) +pub mod invalid_allowed_pattern_exception { + /// A builder for [`InvalidAllowedPatternException`](crate::error::InvalidAllowedPatternException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18593,55 +18528,53 @@ pub mod invalid_allowed_pattern_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAllowedPatternError`](crate::error::InvalidAllowedPatternError) - pub fn build(self) -> crate::error::InvalidAllowedPatternError { - crate::error::InvalidAllowedPatternError { + /// Consumes the builder and constructs a [`InvalidAllowedPatternException`](crate::error::InvalidAllowedPatternException) + pub fn build(self) -> crate::error::InvalidAllowedPatternException { + crate::error::InvalidAllowedPatternException { message: self.message, } } } } -impl InvalidAllowedPatternError { - /// Creates a new builder-style object to manufacture [`InvalidAllowedPatternError`](crate::error::InvalidAllowedPatternError) - pub fn builder() -> crate::error::invalid_allowed_pattern_error::Builder { - crate::error::invalid_allowed_pattern_error::Builder::default() +impl InvalidAllowedPatternException { + /// Creates a new builder-style object to manufacture [`InvalidAllowedPatternException`](crate::error::InvalidAllowedPatternException) + pub fn builder() -> crate::error::invalid_allowed_pattern_exception::Builder { + crate::error::invalid_allowed_pattern_exception::Builder::default() } } ///

    There is a conflict in the policies specified for this parameter. You can't, for example, /// specify two Expiration policies for a parameter. Review your policies, and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct IncompatiblePolicyError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct IncompatiblePolicyException { pub message: std::option::Option, } -impl std::fmt::Debug for IncompatiblePolicyError { +impl std::fmt::Debug for IncompatiblePolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IncompatiblePolicyError"); + let mut formatter = f.debug_struct("IncompatiblePolicyException"); formatter.field("message", &self.message); formatter.finish() } } -impl IncompatiblePolicyError { +impl IncompatiblePolicyException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IncompatiblePolicyError { +impl std::fmt::Display for IncompatiblePolicyException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "IncompatiblePolicyError [IncompatiblePolicyException]")?; + write!(f, "IncompatiblePolicyException")?; if let Some(inner_63) = &self.message { write!(f, ": {}", inner_63)?; } Ok(()) } } -impl std::error::Error for IncompatiblePolicyError {} -/// See [`IncompatiblePolicyError`](crate::error::IncompatiblePolicyError) -pub mod incompatible_policy_error { - /// A builder for [`IncompatiblePolicyError`](crate::error::IncompatiblePolicyError) +impl std::error::Error for IncompatiblePolicyException {} +/// See [`IncompatiblePolicyException`](crate::error::IncompatiblePolicyException) +pub mod incompatible_policy_exception { + /// A builder for [`IncompatiblePolicyException`](crate::error::IncompatiblePolicyException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18656,18 +18589,18 @@ pub mod incompatible_policy_error { self.message = input; self } - /// Consumes the builder and constructs a [`IncompatiblePolicyError`](crate::error::IncompatiblePolicyError) - pub fn build(self) -> crate::error::IncompatiblePolicyError { - crate::error::IncompatiblePolicyError { + /// Consumes the builder and constructs a [`IncompatiblePolicyException`](crate::error::IncompatiblePolicyException) + pub fn build(self) -> crate::error::IncompatiblePolicyException { + crate::error::IncompatiblePolicyException { message: self.message, } } } } -impl IncompatiblePolicyError { - /// Creates a new builder-style object to manufacture [`IncompatiblePolicyError`](crate::error::IncompatiblePolicyError) - pub fn builder() -> crate::error::incompatible_policy_error::Builder { - crate::error::incompatible_policy_error::Builder::default() +impl IncompatiblePolicyException { + /// Creates a new builder-style object to manufacture [`IncompatiblePolicyException`](crate::error::IncompatiblePolicyException) + pub fn builder() -> crate::error::incompatible_policy_exception::Builder { + crate::error::incompatible_policy_exception::Builder::default() } } @@ -18675,43 +18608,38 @@ impl IncompatiblePolicyError { /// can't change a parameter from a String type to a SecureString type. You /// must create a new, unique parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct HierarchyTypeMismatchError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct HierarchyTypeMismatchException { ///

    Parameter Store does not support changing a parameter type in a hierarchy. For example, you /// can't change a parameter from a String type to a SecureString type. You /// must create a new, unique parameter.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for HierarchyTypeMismatchError { +impl std::fmt::Debug for HierarchyTypeMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("HierarchyTypeMismatchError"); + let mut formatter = f.debug_struct("HierarchyTypeMismatchException"); formatter.field("message", &self.message); formatter.finish() } } -impl HierarchyTypeMismatchError { +impl HierarchyTypeMismatchException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for HierarchyTypeMismatchError { +impl std::fmt::Display for HierarchyTypeMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "HierarchyTypeMismatchError [HierarchyTypeMismatchException]" - )?; + write!(f, "HierarchyTypeMismatchException")?; if let Some(inner_64) = &self.message { write!(f, ": {}", inner_64)?; } Ok(()) } } -impl std::error::Error for HierarchyTypeMismatchError {} -/// See [`HierarchyTypeMismatchError`](crate::error::HierarchyTypeMismatchError) -pub mod hierarchy_type_mismatch_error { - /// A builder for [`HierarchyTypeMismatchError`](crate::error::HierarchyTypeMismatchError) +impl std::error::Error for HierarchyTypeMismatchException {} +/// See [`HierarchyTypeMismatchException`](crate::error::HierarchyTypeMismatchException) +pub mod hierarchy_type_mismatch_exception { + /// A builder for [`HierarchyTypeMismatchException`](crate::error::HierarchyTypeMismatchException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18729,60 +18657,55 @@ pub mod hierarchy_type_mismatch_error { self.message = input; self } - /// Consumes the builder and constructs a [`HierarchyTypeMismatchError`](crate::error::HierarchyTypeMismatchError) - pub fn build(self) -> crate::error::HierarchyTypeMismatchError { - crate::error::HierarchyTypeMismatchError { + /// Consumes the builder and constructs a [`HierarchyTypeMismatchException`](crate::error::HierarchyTypeMismatchException) + pub fn build(self) -> crate::error::HierarchyTypeMismatchException { + crate::error::HierarchyTypeMismatchException { message: self.message, } } } } -impl HierarchyTypeMismatchError { - /// Creates a new builder-style object to manufacture [`HierarchyTypeMismatchError`](crate::error::HierarchyTypeMismatchError) - pub fn builder() -> crate::error::hierarchy_type_mismatch_error::Builder { - crate::error::hierarchy_type_mismatch_error::Builder::default() +impl HierarchyTypeMismatchException { + /// Creates a new builder-style object to manufacture [`HierarchyTypeMismatchException`](crate::error::HierarchyTypeMismatchException) + pub fn builder() -> crate::error::hierarchy_type_mismatch_exception::Builder { + crate::error::hierarchy_type_mismatch_exception::Builder::default() } } ///

    A hierarchy can have a maximum of 15 levels. For more information, see Requirements and /// constraints for parameter names in the AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct HierarchyLevelLimitExceededError { +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct HierarchyLevelLimitExceededException { ///

    A hierarchy can have a maximum of 15 levels. For more information, see Requirements and /// constraints for parameter names in the AWS Systems Manager User Guide.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for HierarchyLevelLimitExceededError { +impl std::fmt::Debug for HierarchyLevelLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("HierarchyLevelLimitExceededError"); + let mut formatter = f.debug_struct("HierarchyLevelLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl HierarchyLevelLimitExceededError { +impl HierarchyLevelLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for HierarchyLevelLimitExceededError { +impl std::fmt::Display for HierarchyLevelLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "HierarchyLevelLimitExceededError [HierarchyLevelLimitExceededException]" - )?; + write!(f, "HierarchyLevelLimitExceededException")?; if let Some(inner_65) = &self.message { write!(f, ": {}", inner_65)?; } Ok(()) } } -impl std::error::Error for HierarchyLevelLimitExceededError {} -/// See [`HierarchyLevelLimitExceededError`](crate::error::HierarchyLevelLimitExceededError) -pub mod hierarchy_level_limit_exceeded_error { - /// A builder for [`HierarchyLevelLimitExceededError`](crate::error::HierarchyLevelLimitExceededError) +impl std::error::Error for HierarchyLevelLimitExceededException {} +/// See [`HierarchyLevelLimitExceededException`](crate::error::HierarchyLevelLimitExceededException) +pub mod hierarchy_level_limit_exceeded_exception { + /// A builder for [`HierarchyLevelLimitExceededException`](crate::error::HierarchyLevelLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18799,58 +18722,53 @@ pub mod hierarchy_level_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`HierarchyLevelLimitExceededError`](crate::error::HierarchyLevelLimitExceededError) - pub fn build(self) -> crate::error::HierarchyLevelLimitExceededError { - crate::error::HierarchyLevelLimitExceededError { + /// Consumes the builder and constructs a [`HierarchyLevelLimitExceededException`](crate::error::HierarchyLevelLimitExceededException) + pub fn build(self) -> crate::error::HierarchyLevelLimitExceededException { + crate::error::HierarchyLevelLimitExceededException { message: self.message, } } } } -impl HierarchyLevelLimitExceededError { - /// Creates a new builder-style object to manufacture [`HierarchyLevelLimitExceededError`](crate::error::HierarchyLevelLimitExceededError) - pub fn builder() -> crate::error::hierarchy_level_limit_exceeded_error::Builder { - crate::error::hierarchy_level_limit_exceeded_error::Builder::default() +impl HierarchyLevelLimitExceededException { + /// Creates a new builder-style object to manufacture [`HierarchyLevelLimitExceededException`](crate::error::HierarchyLevelLimitExceededException) + pub fn builder() -> crate::error::hierarchy_level_limit_exceeded_exception::Builder { + crate::error::hierarchy_level_limit_exceeded_exception::Builder::default() } } ///

    Inventory item type schema version has to match supported versions in the service. Check /// output of GetInventorySchema to see the available schema version for each type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedInventorySchemaVersionError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedInventorySchemaVersionException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedInventorySchemaVersionError { +impl std::fmt::Debug for UnsupportedInventorySchemaVersionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedInventorySchemaVersionError"); + let mut formatter = f.debug_struct("UnsupportedInventorySchemaVersionException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedInventorySchemaVersionError { +impl UnsupportedInventorySchemaVersionException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedInventorySchemaVersionError { +impl std::fmt::Display for UnsupportedInventorySchemaVersionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedInventorySchemaVersionError [UnsupportedInventorySchemaVersionException]" - )?; + write!(f, "UnsupportedInventorySchemaVersionException")?; if let Some(inner_66) = &self.message { write!(f, ": {}", inner_66)?; } Ok(()) } } -impl std::error::Error for UnsupportedInventorySchemaVersionError {} -/// See [`UnsupportedInventorySchemaVersionError`](crate::error::UnsupportedInventorySchemaVersionError) -pub mod unsupported_inventory_schema_version_error { - /// A builder for [`UnsupportedInventorySchemaVersionError`](crate::error::UnsupportedInventorySchemaVersionError) +impl std::error::Error for UnsupportedInventorySchemaVersionException {} +/// See [`UnsupportedInventorySchemaVersionException`](crate::error::UnsupportedInventorySchemaVersionException) +pub mod unsupported_inventory_schema_version_exception { + /// A builder for [`UnsupportedInventorySchemaVersionException`](crate::error::UnsupportedInventorySchemaVersionException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18865,18 +18783,18 @@ pub mod unsupported_inventory_schema_version_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedInventorySchemaVersionError`](crate::error::UnsupportedInventorySchemaVersionError) - pub fn build(self) -> crate::error::UnsupportedInventorySchemaVersionError { - crate::error::UnsupportedInventorySchemaVersionError { + /// Consumes the builder and constructs a [`UnsupportedInventorySchemaVersionException`](crate::error::UnsupportedInventorySchemaVersionException) + pub fn build(self) -> crate::error::UnsupportedInventorySchemaVersionException { + crate::error::UnsupportedInventorySchemaVersionException { message: self.message, } } } } -impl UnsupportedInventorySchemaVersionError { - /// Creates a new builder-style object to manufacture [`UnsupportedInventorySchemaVersionError`](crate::error::UnsupportedInventorySchemaVersionError) - pub fn builder() -> crate::error::unsupported_inventory_schema_version_error::Builder { - crate::error::unsupported_inventory_schema_version_error::Builder::default() +impl UnsupportedInventorySchemaVersionException { + /// Creates a new builder-style object to manufacture [`UnsupportedInventorySchemaVersionException`](crate::error::UnsupportedInventorySchemaVersionException) + pub fn builder() -> crate::error::unsupported_inventory_schema_version_exception::Builder { + crate::error::unsupported_inventory_schema_version_exception::Builder::default() } } @@ -18884,44 +18802,37 @@ impl UnsupportedInventorySchemaVersionError { /// not allowed for this inventory type. You can only use the Context attribute with /// inventory types like AWS:ComplianceItem.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedInventoryItemContextError { - #[serde(rename = "TypeName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedInventoryItemContextException { pub type_name: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedInventoryItemContextError { +impl std::fmt::Debug for UnsupportedInventoryItemContextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedInventoryItemContextError"); + let mut formatter = f.debug_struct("UnsupportedInventoryItemContextException"); formatter.field("type_name", &self.type_name); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedInventoryItemContextError { +impl UnsupportedInventoryItemContextException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedInventoryItemContextError { +impl std::fmt::Display for UnsupportedInventoryItemContextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedInventoryItemContextError [UnsupportedInventoryItemContextException]" - )?; + write!(f, "UnsupportedInventoryItemContextException")?; if let Some(inner_67) = &self.message { write!(f, ": {}", inner_67)?; } Ok(()) } } -impl std::error::Error for UnsupportedInventoryItemContextError {} -/// See [`UnsupportedInventoryItemContextError`](crate::error::UnsupportedInventoryItemContextError) -pub mod unsupported_inventory_item_context_error { - /// A builder for [`UnsupportedInventoryItemContextError`](crate::error::UnsupportedInventoryItemContextError) +impl std::error::Error for UnsupportedInventoryItemContextException {} +/// See [`UnsupportedInventoryItemContextException`](crate::error::UnsupportedInventoryItemContextException) +pub mod unsupported_inventory_item_context_exception { + /// A builder for [`UnsupportedInventoryItemContextException`](crate::error::UnsupportedInventoryItemContextException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -18945,58 +18856,53 @@ pub mod unsupported_inventory_item_context_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedInventoryItemContextError`](crate::error::UnsupportedInventoryItemContextError) - pub fn build(self) -> crate::error::UnsupportedInventoryItemContextError { - crate::error::UnsupportedInventoryItemContextError { + /// Consumes the builder and constructs a [`UnsupportedInventoryItemContextException`](crate::error::UnsupportedInventoryItemContextException) + pub fn build(self) -> crate::error::UnsupportedInventoryItemContextException { + crate::error::UnsupportedInventoryItemContextException { type_name: self.type_name, message: self.message, } } } } -impl UnsupportedInventoryItemContextError { - /// Creates a new builder-style object to manufacture [`UnsupportedInventoryItemContextError`](crate::error::UnsupportedInventoryItemContextError) - pub fn builder() -> crate::error::unsupported_inventory_item_context_error::Builder { - crate::error::unsupported_inventory_item_context_error::Builder::default() +impl UnsupportedInventoryItemContextException { + /// Creates a new builder-style object to manufacture [`UnsupportedInventoryItemContextException`](crate::error::UnsupportedInventoryItemContextException) + pub fn builder() -> crate::error::unsupported_inventory_item_context_exception::Builder { + crate::error::unsupported_inventory_item_context_exception::Builder::default() } } ///

    The size of inventory data has exceeded the total size limit for the resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TotalSizeLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TotalSizeLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for TotalSizeLimitExceededError { +impl std::fmt::Debug for TotalSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TotalSizeLimitExceededError"); + let mut formatter = f.debug_struct("TotalSizeLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl TotalSizeLimitExceededError { +impl TotalSizeLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TotalSizeLimitExceededError { +impl std::fmt::Display for TotalSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "TotalSizeLimitExceededError [TotalSizeLimitExceededException]" - )?; + write!(f, "TotalSizeLimitExceededException")?; if let Some(inner_68) = &self.message { write!(f, ": {}", inner_68)?; } Ok(()) } } -impl std::error::Error for TotalSizeLimitExceededError {} -/// See [`TotalSizeLimitExceededError`](crate::error::TotalSizeLimitExceededError) -pub mod total_size_limit_exceeded_error { - /// A builder for [`TotalSizeLimitExceededError`](crate::error::TotalSizeLimitExceededError) +impl std::error::Error for TotalSizeLimitExceededException {} +/// See [`TotalSizeLimitExceededException`](crate::error::TotalSizeLimitExceededException) +pub mod total_size_limit_exceeded_exception { + /// A builder for [`TotalSizeLimitExceededException`](crate::error::TotalSizeLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19011,57 +18917,52 @@ pub mod total_size_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`TotalSizeLimitExceededError`](crate::error::TotalSizeLimitExceededError) - pub fn build(self) -> crate::error::TotalSizeLimitExceededError { - crate::error::TotalSizeLimitExceededError { + /// Consumes the builder and constructs a [`TotalSizeLimitExceededException`](crate::error::TotalSizeLimitExceededException) + pub fn build(self) -> crate::error::TotalSizeLimitExceededException { + crate::error::TotalSizeLimitExceededException { message: self.message, } } } } -impl TotalSizeLimitExceededError { - /// Creates a new builder-style object to manufacture [`TotalSizeLimitExceededError`](crate::error::TotalSizeLimitExceededError) - pub fn builder() -> crate::error::total_size_limit_exceeded_error::Builder { - crate::error::total_size_limit_exceeded_error::Builder::default() +impl TotalSizeLimitExceededException { + /// Creates a new builder-style object to manufacture [`TotalSizeLimitExceededException`](crate::error::TotalSizeLimitExceededException) + pub fn builder() -> crate::error::total_size_limit_exceeded_exception::Builder { + crate::error::total_size_limit_exceeded_exception::Builder::default() } } ///

    The sub-type count exceeded the limit for the inventory type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SubTypeCountLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct SubTypeCountLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for SubTypeCountLimitExceededError { +impl std::fmt::Debug for SubTypeCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SubTypeCountLimitExceededError"); + let mut formatter = f.debug_struct("SubTypeCountLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl SubTypeCountLimitExceededError { +impl SubTypeCountLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for SubTypeCountLimitExceededError { +impl std::fmt::Display for SubTypeCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "SubTypeCountLimitExceededError [SubTypeCountLimitExceededException]" - )?; + write!(f, "SubTypeCountLimitExceededException")?; if let Some(inner_69) = &self.message { write!(f, ": {}", inner_69)?; } Ok(()) } } -impl std::error::Error for SubTypeCountLimitExceededError {} -/// See [`SubTypeCountLimitExceededError`](crate::error::SubTypeCountLimitExceededError) -pub mod sub_type_count_limit_exceeded_error { - /// A builder for [`SubTypeCountLimitExceededError`](crate::error::SubTypeCountLimitExceededError) +impl std::error::Error for SubTypeCountLimitExceededException {} +/// See [`SubTypeCountLimitExceededException`](crate::error::SubTypeCountLimitExceededException) +pub mod sub_type_count_limit_exceeded_exception { + /// A builder for [`SubTypeCountLimitExceededException`](crate::error::SubTypeCountLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19076,61 +18977,54 @@ pub mod sub_type_count_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`SubTypeCountLimitExceededError`](crate::error::SubTypeCountLimitExceededError) - pub fn build(self) -> crate::error::SubTypeCountLimitExceededError { - crate::error::SubTypeCountLimitExceededError { + /// Consumes the builder and constructs a [`SubTypeCountLimitExceededException`](crate::error::SubTypeCountLimitExceededException) + pub fn build(self) -> crate::error::SubTypeCountLimitExceededException { + crate::error::SubTypeCountLimitExceededException { message: self.message, } } } } -impl SubTypeCountLimitExceededError { - /// Creates a new builder-style object to manufacture [`SubTypeCountLimitExceededError`](crate::error::SubTypeCountLimitExceededError) - pub fn builder() -> crate::error::sub_type_count_limit_exceeded_error::Builder { - crate::error::sub_type_count_limit_exceeded_error::Builder::default() +impl SubTypeCountLimitExceededException { + /// Creates a new builder-style object to manufacture [`SubTypeCountLimitExceededException`](crate::error::SubTypeCountLimitExceededException) + pub fn builder() -> crate::error::sub_type_count_limit_exceeded_exception::Builder { + crate::error::sub_type_count_limit_exceeded_exception::Builder::default() } } ///

    The inventory item size has exceeded the size limit.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ItemSizeLimitExceededError { - #[serde(rename = "TypeName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ItemSizeLimitExceededException { pub type_name: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ItemSizeLimitExceededError { +impl std::fmt::Debug for ItemSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ItemSizeLimitExceededError"); + let mut formatter = f.debug_struct("ItemSizeLimitExceededException"); formatter.field("type_name", &self.type_name); formatter.field("message", &self.message); formatter.finish() } } -impl ItemSizeLimitExceededError { +impl ItemSizeLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ItemSizeLimitExceededError { +impl std::fmt::Display for ItemSizeLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ItemSizeLimitExceededError [ItemSizeLimitExceededException]" - )?; + write!(f, "ItemSizeLimitExceededException")?; if let Some(inner_70) = &self.message { write!(f, ": {}", inner_70)?; } Ok(()) } } -impl std::error::Error for ItemSizeLimitExceededError {} -/// See [`ItemSizeLimitExceededError`](crate::error::ItemSizeLimitExceededError) -pub mod item_size_limit_exceeded_error { - /// A builder for [`ItemSizeLimitExceededError`](crate::error::ItemSizeLimitExceededError) +impl std::error::Error for ItemSizeLimitExceededException {} +/// See [`ItemSizeLimitExceededException`](crate::error::ItemSizeLimitExceededException) +pub mod item_size_limit_exceeded_exception { + /// A builder for [`ItemSizeLimitExceededException`](crate::error::ItemSizeLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19154,59 +19048,55 @@ pub mod item_size_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ItemSizeLimitExceededError`](crate::error::ItemSizeLimitExceededError) - pub fn build(self) -> crate::error::ItemSizeLimitExceededError { - crate::error::ItemSizeLimitExceededError { + /// Consumes the builder and constructs a [`ItemSizeLimitExceededException`](crate::error::ItemSizeLimitExceededException) + pub fn build(self) -> crate::error::ItemSizeLimitExceededException { + crate::error::ItemSizeLimitExceededException { type_name: self.type_name, message: self.message, } } } } -impl ItemSizeLimitExceededError { - /// Creates a new builder-style object to manufacture [`ItemSizeLimitExceededError`](crate::error::ItemSizeLimitExceededError) - pub fn builder() -> crate::error::item_size_limit_exceeded_error::Builder { - crate::error::item_size_limit_exceeded_error::Builder::default() +impl ItemSizeLimitExceededException { + /// Creates a new builder-style object to manufacture [`ItemSizeLimitExceededException`](crate::error::ItemSizeLimitExceededException) + pub fn builder() -> crate::error::item_size_limit_exceeded_exception::Builder { + crate::error::item_size_limit_exceeded_exception::Builder::default() } } ///

    The inventory item has invalid content.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ItemContentMismatchError { - #[serde(rename = "TypeName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ItemContentMismatchException { pub type_name: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for ItemContentMismatchError { +impl std::fmt::Debug for ItemContentMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ItemContentMismatchError"); + let mut formatter = f.debug_struct("ItemContentMismatchException"); formatter.field("type_name", &self.type_name); formatter.field("message", &self.message); formatter.finish() } } -impl ItemContentMismatchError { +impl ItemContentMismatchException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ItemContentMismatchError { +impl std::fmt::Display for ItemContentMismatchException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ItemContentMismatchError [ItemContentMismatchException]")?; + write!(f, "ItemContentMismatchException")?; if let Some(inner_71) = &self.message { write!(f, ": {}", inner_71)?; } Ok(()) } } -impl std::error::Error for ItemContentMismatchError {} -/// See [`ItemContentMismatchError`](crate::error::ItemContentMismatchError) -pub mod item_content_mismatch_error { - /// A builder for [`ItemContentMismatchError`](crate::error::ItemContentMismatchError) +impl std::error::Error for ItemContentMismatchException {} +/// See [`ItemContentMismatchException`](crate::error::ItemContentMismatchException) +pub mod item_content_mismatch_exception { + /// A builder for [`ItemContentMismatchException`](crate::error::ItemContentMismatchException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19230,55 +19120,53 @@ pub mod item_content_mismatch_error { self.message = input; self } - /// Consumes the builder and constructs a [`ItemContentMismatchError`](crate::error::ItemContentMismatchError) - pub fn build(self) -> crate::error::ItemContentMismatchError { - crate::error::ItemContentMismatchError { + /// Consumes the builder and constructs a [`ItemContentMismatchException`](crate::error::ItemContentMismatchException) + pub fn build(self) -> crate::error::ItemContentMismatchException { + crate::error::ItemContentMismatchException { type_name: self.type_name, message: self.message, } } } } -impl ItemContentMismatchError { - /// Creates a new builder-style object to manufacture [`ItemContentMismatchError`](crate::error::ItemContentMismatchError) - pub fn builder() -> crate::error::item_content_mismatch_error::Builder { - crate::error::item_content_mismatch_error::Builder::default() +impl ItemContentMismatchException { + /// Creates a new builder-style object to manufacture [`ItemContentMismatchException`](crate::error::ItemContentMismatchException) + pub fn builder() -> crate::error::item_content_mismatch_exception::Builder { + crate::error::item_content_mismatch_exception::Builder::default() } } ///

    The parameter type name is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidTypeNameError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidTypeNameException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidTypeNameError { +impl std::fmt::Debug for InvalidTypeNameException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidTypeNameError"); + let mut formatter = f.debug_struct("InvalidTypeNameException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidTypeNameError { +impl InvalidTypeNameException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidTypeNameError { +impl std::fmt::Display for InvalidTypeNameException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidTypeNameError [InvalidTypeNameException]")?; + write!(f, "InvalidTypeNameException")?; if let Some(inner_72) = &self.message { write!(f, ": {}", inner_72)?; } Ok(()) } } -impl std::error::Error for InvalidTypeNameError {} -/// See [`InvalidTypeNameError`](crate::error::InvalidTypeNameError) -pub mod invalid_type_name_error { - /// A builder for [`InvalidTypeNameError`](crate::error::InvalidTypeNameError) +impl std::error::Error for InvalidTypeNameException {} +/// See [`InvalidTypeNameException`](crate::error::InvalidTypeNameException) +pub mod invalid_type_name_exception { + /// A builder for [`InvalidTypeNameException`](crate::error::InvalidTypeNameException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19293,58 +19181,54 @@ pub mod invalid_type_name_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidTypeNameError`](crate::error::InvalidTypeNameError) - pub fn build(self) -> crate::error::InvalidTypeNameError { - crate::error::InvalidTypeNameError { + /// Consumes the builder and constructs a [`InvalidTypeNameException`](crate::error::InvalidTypeNameException) + pub fn build(self) -> crate::error::InvalidTypeNameException { + crate::error::InvalidTypeNameException { message: self.message, } } } } -impl InvalidTypeNameError { - /// Creates a new builder-style object to manufacture [`InvalidTypeNameError`](crate::error::InvalidTypeNameError) - pub fn builder() -> crate::error::invalid_type_name_error::Builder { - crate::error::invalid_type_name_error::Builder::default() +impl InvalidTypeNameException { + /// Creates a new builder-style object to manufacture [`InvalidTypeNameException`](crate::error::InvalidTypeNameException) + pub fn builder() -> crate::error::invalid_type_name_exception::Builder { + crate::error::invalid_type_name_exception::Builder::default() } } ///

    One or more content items is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidItemContentError { - #[serde(rename = "TypeName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidItemContentException { pub type_name: std::option::Option, - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } -impl std::fmt::Debug for InvalidItemContentError { +impl std::fmt::Debug for InvalidItemContentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidItemContentError"); + let mut formatter = f.debug_struct("InvalidItemContentException"); formatter.field("type_name", &self.type_name); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidItemContentError { +impl InvalidItemContentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidItemContentError { +impl std::fmt::Display for InvalidItemContentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidItemContentError [InvalidItemContentException]")?; + write!(f, "InvalidItemContentException")?; if let Some(inner_73) = &self.message { write!(f, ": {}", inner_73)?; } Ok(()) } } -impl std::error::Error for InvalidItemContentError {} -/// See [`InvalidItemContentError`](crate::error::InvalidItemContentError) -pub mod invalid_item_content_error { - /// A builder for [`InvalidItemContentError`](crate::error::InvalidItemContentError) +impl std::error::Error for InvalidItemContentException {} +/// See [`InvalidItemContentException`](crate::error::InvalidItemContentException) +pub mod invalid_item_content_exception { + /// A builder for [`InvalidItemContentException`](crate::error::InvalidItemContentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19368,59 +19252,54 @@ pub mod invalid_item_content_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidItemContentError`](crate::error::InvalidItemContentError) - pub fn build(self) -> crate::error::InvalidItemContentError { - crate::error::InvalidItemContentError { + /// Consumes the builder and constructs a [`InvalidItemContentException`](crate::error::InvalidItemContentException) + pub fn build(self) -> crate::error::InvalidItemContentException { + crate::error::InvalidItemContentException { type_name: self.type_name, message: self.message, } } } } -impl InvalidItemContentError { - /// Creates a new builder-style object to manufacture [`InvalidItemContentError`](crate::error::InvalidItemContentError) - pub fn builder() -> crate::error::invalid_item_content_error::Builder { - crate::error::invalid_item_content_error::Builder::default() +impl InvalidItemContentException { + /// Creates a new builder-style object to manufacture [`InvalidItemContentException`](crate::error::InvalidItemContentException) + pub fn builder() -> crate::error::invalid_item_content_exception::Builder { + crate::error::invalid_item_content_exception::Builder::default() } } ///

    You specified invalid keys or values in the Context attribute for /// InventoryItem. Verify the keys and values, and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidInventoryItemContextError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidInventoryItemContextException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidInventoryItemContextError { +impl std::fmt::Debug for InvalidInventoryItemContextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidInventoryItemContextError"); + let mut formatter = f.debug_struct("InvalidInventoryItemContextException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidInventoryItemContextError { +impl InvalidInventoryItemContextException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidInventoryItemContextError { +impl std::fmt::Display for InvalidInventoryItemContextException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidInventoryItemContextError [InvalidInventoryItemContextException]" - )?; + write!(f, "InvalidInventoryItemContextException")?; if let Some(inner_74) = &self.message { write!(f, ": {}", inner_74)?; } Ok(()) } } -impl std::error::Error for InvalidInventoryItemContextError {} -/// See [`InvalidInventoryItemContextError`](crate::error::InvalidInventoryItemContextError) -pub mod invalid_inventory_item_context_error { - /// A builder for [`InvalidInventoryItemContextError`](crate::error::InvalidInventoryItemContextError) +impl std::error::Error for InvalidInventoryItemContextException {} +/// See [`InvalidInventoryItemContextException`](crate::error::InvalidInventoryItemContextException) +pub mod invalid_inventory_item_context_exception { + /// A builder for [`InvalidInventoryItemContextException`](crate::error::InvalidInventoryItemContextException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19435,58 +19314,53 @@ pub mod invalid_inventory_item_context_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidInventoryItemContextError`](crate::error::InvalidInventoryItemContextError) - pub fn build(self) -> crate::error::InvalidInventoryItemContextError { - crate::error::InvalidInventoryItemContextError { + /// Consumes the builder and constructs a [`InvalidInventoryItemContextException`](crate::error::InvalidInventoryItemContextException) + pub fn build(self) -> crate::error::InvalidInventoryItemContextException { + crate::error::InvalidInventoryItemContextException { message: self.message, } } } } -impl InvalidInventoryItemContextError { - /// Creates a new builder-style object to manufacture [`InvalidInventoryItemContextError`](crate::error::InvalidInventoryItemContextError) - pub fn builder() -> crate::error::invalid_inventory_item_context_error::Builder { - crate::error::invalid_inventory_item_context_error::Builder::default() +impl InvalidInventoryItemContextException { + /// Creates a new builder-style object to manufacture [`InvalidInventoryItemContextException`](crate::error::InvalidInventoryItemContextException) + pub fn builder() -> crate::error::invalid_inventory_item_context_exception::Builder { + crate::error::invalid_inventory_item_context_exception::Builder::default() } } ///

    You have exceeded the limit for custom schemas. Delete one or more custom schemas and try /// again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CustomSchemaCountLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct CustomSchemaCountLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for CustomSchemaCountLimitExceededError { +impl std::fmt::Debug for CustomSchemaCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CustomSchemaCountLimitExceededError"); + let mut formatter = f.debug_struct("CustomSchemaCountLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl CustomSchemaCountLimitExceededError { +impl CustomSchemaCountLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for CustomSchemaCountLimitExceededError { +impl std::fmt::Display for CustomSchemaCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "CustomSchemaCountLimitExceededError [CustomSchemaCountLimitExceededException]" - )?; + write!(f, "CustomSchemaCountLimitExceededException")?; if let Some(inner_75) = &self.message { write!(f, ": {}", inner_75)?; } Ok(()) } } -impl std::error::Error for CustomSchemaCountLimitExceededError {} -/// See [`CustomSchemaCountLimitExceededError`](crate::error::CustomSchemaCountLimitExceededError) -pub mod custom_schema_count_limit_exceeded_error { - /// A builder for [`CustomSchemaCountLimitExceededError`](crate::error::CustomSchemaCountLimitExceededError) +impl std::error::Error for CustomSchemaCountLimitExceededException {} +/// See [`CustomSchemaCountLimitExceededException`](crate::error::CustomSchemaCountLimitExceededException) +pub mod custom_schema_count_limit_exceeded_exception { + /// A builder for [`CustomSchemaCountLimitExceededException`](crate::error::CustomSchemaCountLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19501,58 +19375,53 @@ pub mod custom_schema_count_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`CustomSchemaCountLimitExceededError`](crate::error::CustomSchemaCountLimitExceededError) - pub fn build(self) -> crate::error::CustomSchemaCountLimitExceededError { - crate::error::CustomSchemaCountLimitExceededError { + /// Consumes the builder and constructs a [`CustomSchemaCountLimitExceededException`](crate::error::CustomSchemaCountLimitExceededException) + pub fn build(self) -> crate::error::CustomSchemaCountLimitExceededException { + crate::error::CustomSchemaCountLimitExceededException { message: self.message, } } } } -impl CustomSchemaCountLimitExceededError { - /// Creates a new builder-style object to manufacture [`CustomSchemaCountLimitExceededError`](crate::error::CustomSchemaCountLimitExceededError) - pub fn builder() -> crate::error::custom_schema_count_limit_exceeded_error::Builder { - crate::error::custom_schema_count_limit_exceeded_error::Builder::default() +impl CustomSchemaCountLimitExceededException { + /// Creates a new builder-style object to manufacture [`CustomSchemaCountLimitExceededException`](crate::error::CustomSchemaCountLimitExceededException) + pub fn builder() -> crate::error::custom_schema_count_limit_exceeded_exception::Builder { + crate::error::custom_schema_count_limit_exceeded_exception::Builder::default() } } ///

    You specified too many custom compliance types. You can specify a maximum of 10 different /// types.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ComplianceTypeCountLimitExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ComplianceTypeCountLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for ComplianceTypeCountLimitExceededError { +impl std::fmt::Debug for ComplianceTypeCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ComplianceTypeCountLimitExceededError"); + let mut formatter = f.debug_struct("ComplianceTypeCountLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ComplianceTypeCountLimitExceededError { +impl ComplianceTypeCountLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ComplianceTypeCountLimitExceededError { +impl std::fmt::Display for ComplianceTypeCountLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ComplianceTypeCountLimitExceededError [ComplianceTypeCountLimitExceededException]" - )?; + write!(f, "ComplianceTypeCountLimitExceededException")?; if let Some(inner_76) = &self.message { write!(f, ": {}", inner_76)?; } Ok(()) } } -impl std::error::Error for ComplianceTypeCountLimitExceededError {} -/// See [`ComplianceTypeCountLimitExceededError`](crate::error::ComplianceTypeCountLimitExceededError) -pub mod compliance_type_count_limit_exceeded_error { - /// A builder for [`ComplianceTypeCountLimitExceededError`](crate::error::ComplianceTypeCountLimitExceededError) +impl std::error::Error for ComplianceTypeCountLimitExceededException {} +/// See [`ComplianceTypeCountLimitExceededException`](crate::error::ComplianceTypeCountLimitExceededException) +pub mod compliance_type_count_limit_exceeded_exception { + /// A builder for [`ComplianceTypeCountLimitExceededException`](crate::error::ComplianceTypeCountLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -19567,28 +19436,26 @@ pub mod compliance_type_count_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ComplianceTypeCountLimitExceededError`](crate::error::ComplianceTypeCountLimitExceededError) - pub fn build(self) -> crate::error::ComplianceTypeCountLimitExceededError { - crate::error::ComplianceTypeCountLimitExceededError { + /// Consumes the builder and constructs a [`ComplianceTypeCountLimitExceededException`](crate::error::ComplianceTypeCountLimitExceededException) + pub fn build(self) -> crate::error::ComplianceTypeCountLimitExceededException { + crate::error::ComplianceTypeCountLimitExceededException { message: self.message, } } } } -impl ComplianceTypeCountLimitExceededError { - /// Creates a new builder-style object to manufacture [`ComplianceTypeCountLimitExceededError`](crate::error::ComplianceTypeCountLimitExceededError) - pub fn builder() -> crate::error::compliance_type_count_limit_exceeded_error::Builder { - crate::error::compliance_type_count_limit_exceeded_error::Builder::default() +impl ComplianceTypeCountLimitExceededException { + /// Creates a new builder-style object to manufacture [`ComplianceTypeCountLimitExceededException`](crate::error::ComplianceTypeCountLimitExceededException) + pub fn builder() -> crate::error::compliance_type_count_limit_exceeded_exception::Builder { + crate::error::compliance_type_count_limit_exceeded_exception::Builder::default() } } ///

    The permission type is not supported. Share is the only supported /// permission type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidPermissionType { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidPermissionType { @@ -19649,10 +19516,8 @@ impl InvalidPermissionType { /// maximum of 20 accounts. You can publicly share up to five documents. If you need to increase this /// limit, contact AWS Support.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentPermissionLimit { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DocumentPermissionLimit { @@ -19711,10 +19576,8 @@ impl DocumentPermissionLimit { ///

    You can have at most 500 active Systems Manager documents.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentLimitExceeded { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DocumentLimitExceeded { @@ -19773,10 +19636,8 @@ impl DocumentLimitExceeded { ///

    The specified token is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidNextToken { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidNextToken { @@ -19835,10 +19696,8 @@ impl InvalidNextToken { ///

    The filter name is not valid. Verify the you entered the correct name and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidFilter { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidFilter { @@ -19897,7 +19756,7 @@ impl InvalidFilter { ///

    The specified key is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidFilterKey {} impl std::fmt::Debug for InvalidFilterKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -19939,7 +19798,7 @@ impl InvalidFilterKey { ///

    The specified command ID is not valid. Verify the ID and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidCommandId {} impl std::fmt::Debug for InvalidCommandId { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -19981,10 +19840,8 @@ impl InvalidCommandId { ///

    A parameter version can have a maximum of ten labels.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterVersionLabelLimitExceeded { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for ParameterVersionLabelLimitExceeded { @@ -20043,10 +19900,8 @@ impl ParameterVersionLabelLimitExceeded { ///

    The filter value is not valid. Verify the value and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidFilterValue { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidFilterValue { @@ -20106,12 +19961,10 @@ impl InvalidFilterValue { ///

    The specified filter option is not valid. Valid options are Equals and BeginsWith. For Path /// filter, valid options are Recursive and OneLevel.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidFilterOption { ///

    The specified filter option is not valid. Valid options are Equals and BeginsWith. For Path /// filter, valid options are Recursive and OneLevel.

    - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidFilterOption { @@ -20174,37 +20027,35 @@ impl InvalidFilterOption { /// a valid inventory type such as AWS:Application or /// AWS:InstanceInformation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAggregatorError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidAggregatorException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAggregatorError { +impl std::fmt::Debug for InvalidAggregatorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAggregatorError"); + let mut formatter = f.debug_struct("InvalidAggregatorException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAggregatorError { +impl InvalidAggregatorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAggregatorError { +impl std::fmt::Display for InvalidAggregatorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidAggregatorError [InvalidAggregatorException]")?; + write!(f, "InvalidAggregatorException")?; if let Some(inner_85) = &self.message { write!(f, ": {}", inner_85)?; } Ok(()) } } -impl std::error::Error for InvalidAggregatorError {} -/// See [`InvalidAggregatorError`](crate::error::InvalidAggregatorError) -pub mod invalid_aggregator_error { - /// A builder for [`InvalidAggregatorError`](crate::error::InvalidAggregatorError) +impl std::error::Error for InvalidAggregatorException {} +/// See [`InvalidAggregatorException`](crate::error::InvalidAggregatorException) +pub mod invalid_aggregator_exception { + /// A builder for [`InvalidAggregatorException`](crate::error::InvalidAggregatorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20219,57 +20070,52 @@ pub mod invalid_aggregator_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAggregatorError`](crate::error::InvalidAggregatorError) - pub fn build(self) -> crate::error::InvalidAggregatorError { - crate::error::InvalidAggregatorError { + /// Consumes the builder and constructs a [`InvalidAggregatorException`](crate::error::InvalidAggregatorException) + pub fn build(self) -> crate::error::InvalidAggregatorException { + crate::error::InvalidAggregatorException { message: self.message, } } } } -impl InvalidAggregatorError { - /// Creates a new builder-style object to manufacture [`InvalidAggregatorError`](crate::error::InvalidAggregatorError) - pub fn builder() -> crate::error::invalid_aggregator_error::Builder { - crate::error::invalid_aggregator_error::Builder::default() +impl InvalidAggregatorException { + /// Creates a new builder-style object to manufacture [`InvalidAggregatorException`](crate::error::InvalidAggregatorException) + pub fn builder() -> crate::error::invalid_aggregator_exception::Builder { + crate::error::invalid_aggregator_exception::Builder::default() } } ///

    The specified inventory item result attribute is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidResultAttributeError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidResultAttributeException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidResultAttributeError { +impl std::fmt::Debug for InvalidResultAttributeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidResultAttributeError"); + let mut formatter = f.debug_struct("InvalidResultAttributeException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidResultAttributeError { +impl InvalidResultAttributeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidResultAttributeError { +impl std::fmt::Display for InvalidResultAttributeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidResultAttributeError [InvalidResultAttributeException]" - )?; + write!(f, "InvalidResultAttributeException")?; if let Some(inner_86) = &self.message { write!(f, ": {}", inner_86)?; } Ok(()) } } -impl std::error::Error for InvalidResultAttributeError {} -/// See [`InvalidResultAttributeError`](crate::error::InvalidResultAttributeError) -pub mod invalid_result_attribute_error { - /// A builder for [`InvalidResultAttributeError`](crate::error::InvalidResultAttributeError) +impl std::error::Error for InvalidResultAttributeException {} +/// See [`InvalidResultAttributeException`](crate::error::InvalidResultAttributeException) +pub mod invalid_result_attribute_exception { + /// A builder for [`InvalidResultAttributeException`](crate::error::InvalidResultAttributeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20284,57 +20130,52 @@ pub mod invalid_result_attribute_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidResultAttributeError`](crate::error::InvalidResultAttributeError) - pub fn build(self) -> crate::error::InvalidResultAttributeError { - crate::error::InvalidResultAttributeError { + /// Consumes the builder and constructs a [`InvalidResultAttributeException`](crate::error::InvalidResultAttributeException) + pub fn build(self) -> crate::error::InvalidResultAttributeException { + crate::error::InvalidResultAttributeException { message: self.message, } } } } -impl InvalidResultAttributeError { - /// Creates a new builder-style object to manufacture [`InvalidResultAttributeError`](crate::error::InvalidResultAttributeError) - pub fn builder() -> crate::error::invalid_result_attribute_error::Builder { - crate::error::invalid_result_attribute_error::Builder::default() +impl InvalidResultAttributeException { + /// Creates a new builder-style object to manufacture [`InvalidResultAttributeException`](crate::error::InvalidResultAttributeException) + pub fn builder() -> crate::error::invalid_result_attribute_exception::Builder { + crate::error::invalid_result_attribute_exception::Builder::default() } } ///

    The specified inventory group is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidInventoryGroupError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidInventoryGroupException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidInventoryGroupError { +impl std::fmt::Debug for InvalidInventoryGroupException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidInventoryGroupError"); + let mut formatter = f.debug_struct("InvalidInventoryGroupException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidInventoryGroupError { +impl InvalidInventoryGroupException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidInventoryGroupError { +impl std::fmt::Display for InvalidInventoryGroupException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidInventoryGroupError [InvalidInventoryGroupException]" - )?; + write!(f, "InvalidInventoryGroupException")?; if let Some(inner_87) = &self.message { write!(f, ": {}", inner_87)?; } Ok(()) } } -impl std::error::Error for InvalidInventoryGroupError {} -/// See [`InvalidInventoryGroupError`](crate::error::InvalidInventoryGroupError) -pub mod invalid_inventory_group_error { - /// A builder for [`InvalidInventoryGroupError`](crate::error::InvalidInventoryGroupError) +impl std::error::Error for InvalidInventoryGroupException {} +/// See [`InvalidInventoryGroupException`](crate::error::InvalidInventoryGroupException) +pub mod invalid_inventory_group_exception { + /// A builder for [`InvalidInventoryGroupException`](crate::error::InvalidInventoryGroupException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20349,28 +20190,26 @@ pub mod invalid_inventory_group_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidInventoryGroupError`](crate::error::InvalidInventoryGroupError) - pub fn build(self) -> crate::error::InvalidInventoryGroupError { - crate::error::InvalidInventoryGroupError { + /// Consumes the builder and constructs a [`InvalidInventoryGroupException`](crate::error::InvalidInventoryGroupException) + pub fn build(self) -> crate::error::InvalidInventoryGroupException { + crate::error::InvalidInventoryGroupException { message: self.message, } } } } -impl InvalidInventoryGroupError { - /// Creates a new builder-style object to manufacture [`InvalidInventoryGroupError`](crate::error::InvalidInventoryGroupError) - pub fn builder() -> crate::error::invalid_inventory_group_error::Builder { - crate::error::invalid_inventory_group_error::Builder::default() +impl InvalidInventoryGroupException { + /// Creates a new builder-style object to manufacture [`InvalidInventoryGroupException`](crate::error::InvalidInventoryGroupException) + pub fn builder() -> crate::error::invalid_inventory_group_exception::Builder { + crate::error::invalid_inventory_group_exception::Builder::default() } } ///

    The operating systems you specified is not supported, or the operation is not supported for /// the operating system.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct UnsupportedOperatingSystem { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for UnsupportedOperatingSystem { @@ -20432,40 +20271,35 @@ impl UnsupportedOperatingSystem { /// For more information, see Using the /// advanced-instances tier in the AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedFeatureRequiredError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedFeatureRequiredException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedFeatureRequiredError { +impl std::fmt::Debug for UnsupportedFeatureRequiredException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedFeatureRequiredError"); + let mut formatter = f.debug_struct("UnsupportedFeatureRequiredException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedFeatureRequiredError { +impl UnsupportedFeatureRequiredException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedFeatureRequiredError { +impl std::fmt::Display for UnsupportedFeatureRequiredException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "UnsupportedFeatureRequiredError [UnsupportedFeatureRequiredException]" - )?; + write!(f, "UnsupportedFeatureRequiredException")?; if let Some(inner_89) = &self.message { write!(f, ": {}", inner_89)?; } Ok(()) } } -impl std::error::Error for UnsupportedFeatureRequiredError {} -/// See [`UnsupportedFeatureRequiredError`](crate::error::UnsupportedFeatureRequiredError) -pub mod unsupported_feature_required_error { - /// A builder for [`UnsupportedFeatureRequiredError`](crate::error::UnsupportedFeatureRequiredError) +impl std::error::Error for UnsupportedFeatureRequiredException {} +/// See [`UnsupportedFeatureRequiredException`](crate::error::UnsupportedFeatureRequiredException) +pub mod unsupported_feature_required_exception { + /// A builder for [`UnsupportedFeatureRequiredException`](crate::error::UnsupportedFeatureRequiredException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20480,25 +20314,25 @@ pub mod unsupported_feature_required_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedFeatureRequiredError`](crate::error::UnsupportedFeatureRequiredError) - pub fn build(self) -> crate::error::UnsupportedFeatureRequiredError { - crate::error::UnsupportedFeatureRequiredError { + /// Consumes the builder and constructs a [`UnsupportedFeatureRequiredException`](crate::error::UnsupportedFeatureRequiredException) + pub fn build(self) -> crate::error::UnsupportedFeatureRequiredException { + crate::error::UnsupportedFeatureRequiredException { message: self.message, } } } } -impl UnsupportedFeatureRequiredError { - /// Creates a new builder-style object to manufacture [`UnsupportedFeatureRequiredError`](crate::error::UnsupportedFeatureRequiredError) - pub fn builder() -> crate::error::unsupported_feature_required_error::Builder { - crate::error::unsupported_feature_required_error::Builder::default() +impl UnsupportedFeatureRequiredException { + /// Creates a new builder-style object to manufacture [`UnsupportedFeatureRequiredException`](crate::error::UnsupportedFeatureRequiredException) + pub fn builder() -> crate::error::unsupported_feature_required_exception::Builder { + crate::error::unsupported_feature_required_exception::Builder::default() } } ///

    The command ID and instance ID you specified did not match any invocations. Verify the /// command ID and the instance ID and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvocationDoesNotExist {} impl std::fmt::Debug for InvocationDoesNotExist { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -20540,7 +20374,7 @@ impl InvocationDoesNotExist { ///

    The plugin name is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidPluginName {} impl std::fmt::Debug for InvalidPluginName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -20582,37 +20416,35 @@ impl InvalidPluginName { ///

    The calendar entry contained in the specified Systems Manager document is not supported.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnsupportedCalendarError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct UnsupportedCalendarException { pub message: std::option::Option, } -impl std::fmt::Debug for UnsupportedCalendarError { +impl std::fmt::Debug for UnsupportedCalendarException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnsupportedCalendarError"); + let mut formatter = f.debug_struct("UnsupportedCalendarException"); formatter.field("message", &self.message); formatter.finish() } } -impl UnsupportedCalendarError { +impl UnsupportedCalendarException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for UnsupportedCalendarError { +impl std::fmt::Display for UnsupportedCalendarException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "UnsupportedCalendarError [UnsupportedCalendarException]")?; + write!(f, "UnsupportedCalendarException")?; if let Some(inner_90) = &self.message { write!(f, ": {}", inner_90)?; } Ok(()) } } -impl std::error::Error for UnsupportedCalendarError {} -/// See [`UnsupportedCalendarError`](crate::error::UnsupportedCalendarError) -pub mod unsupported_calendar_error { - /// A builder for [`UnsupportedCalendarError`](crate::error::UnsupportedCalendarError) +impl std::error::Error for UnsupportedCalendarException {} +/// See [`UnsupportedCalendarException`](crate::error::UnsupportedCalendarException) +pub mod unsupported_calendar_exception { + /// A builder for [`UnsupportedCalendarException`](crate::error::UnsupportedCalendarException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20627,28 +20459,26 @@ pub mod unsupported_calendar_error { self.message = input; self } - /// Consumes the builder and constructs a [`UnsupportedCalendarError`](crate::error::UnsupportedCalendarError) - pub fn build(self) -> crate::error::UnsupportedCalendarError { - crate::error::UnsupportedCalendarError { + /// Consumes the builder and constructs a [`UnsupportedCalendarException`](crate::error::UnsupportedCalendarException) + pub fn build(self) -> crate::error::UnsupportedCalendarException { + crate::error::UnsupportedCalendarException { message: self.message, } } } } -impl UnsupportedCalendarError { - /// Creates a new builder-style object to manufacture [`UnsupportedCalendarError`](crate::error::UnsupportedCalendarError) - pub fn builder() -> crate::error::unsupported_calendar_error::Builder { - crate::error::unsupported_calendar_error::Builder::default() +impl UnsupportedCalendarException { + /// Creates a new builder-style object to manufacture [`UnsupportedCalendarException`](crate::error::UnsupportedCalendarException) + pub fn builder() -> crate::error::unsupported_calendar_exception::Builder { + crate::error::unsupported_calendar_exception::Builder::default() } } ///

    The document type is not valid. Valid document types are described in the /// DocumentType property.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidDocumentType { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidDocumentType { @@ -20708,37 +20538,35 @@ impl InvalidDocumentType { ///

    The association was not found using the parameters you specified in the call. Verify the /// information and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemRelatedItemAssociationNotFoundError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemRelatedItemAssociationNotFoundException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsItemRelatedItemAssociationNotFoundError { +impl std::fmt::Debug for OpsItemRelatedItemAssociationNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemRelatedItemAssociationNotFoundError"); + let mut formatter = f.debug_struct("OpsItemRelatedItemAssociationNotFoundException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsItemRelatedItemAssociationNotFoundError { +impl OpsItemRelatedItemAssociationNotFoundException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemRelatedItemAssociationNotFoundError { +impl std::fmt::Display for OpsItemRelatedItemAssociationNotFoundException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "OpsItemRelatedItemAssociationNotFoundError [OpsItemRelatedItemAssociationNotFoundException]")?; + write!(f, "OpsItemRelatedItemAssociationNotFoundException")?; if let Some(inner_92) = &self.message { write!(f, ": {}", inner_92)?; } Ok(()) } } -impl std::error::Error for OpsItemRelatedItemAssociationNotFoundError {} -/// See [`OpsItemRelatedItemAssociationNotFoundError`](crate::error::OpsItemRelatedItemAssociationNotFoundError) -pub mod ops_item_related_item_association_not_found_error { - /// A builder for [`OpsItemRelatedItemAssociationNotFoundError`](crate::error::OpsItemRelatedItemAssociationNotFoundError) +impl std::error::Error for OpsItemRelatedItemAssociationNotFoundException {} +/// See [`OpsItemRelatedItemAssociationNotFoundException`](crate::error::OpsItemRelatedItemAssociationNotFoundException) +pub mod ops_item_related_item_association_not_found_exception { + /// A builder for [`OpsItemRelatedItemAssociationNotFoundException`](crate::error::OpsItemRelatedItemAssociationNotFoundException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20753,55 +20581,54 @@ pub mod ops_item_related_item_association_not_found_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsItemRelatedItemAssociationNotFoundError`](crate::error::OpsItemRelatedItemAssociationNotFoundError) - pub fn build(self) -> crate::error::OpsItemRelatedItemAssociationNotFoundError { - crate::error::OpsItemRelatedItemAssociationNotFoundError { + /// Consumes the builder and constructs a [`OpsItemRelatedItemAssociationNotFoundException`](crate::error::OpsItemRelatedItemAssociationNotFoundException) + pub fn build(self) -> crate::error::OpsItemRelatedItemAssociationNotFoundException { + crate::error::OpsItemRelatedItemAssociationNotFoundException { message: self.message, } } } } -impl OpsItemRelatedItemAssociationNotFoundError { - /// Creates a new builder-style object to manufacture [`OpsItemRelatedItemAssociationNotFoundError`](crate::error::OpsItemRelatedItemAssociationNotFoundError) - pub fn builder() -> crate::error::ops_item_related_item_association_not_found_error::Builder { - crate::error::ops_item_related_item_association_not_found_error::Builder::default() +impl OpsItemRelatedItemAssociationNotFoundException { + /// Creates a new builder-style object to manufacture [`OpsItemRelatedItemAssociationNotFoundException`](crate::error::OpsItemRelatedItemAssociationNotFoundException) + pub fn builder() -> crate::error::ops_item_related_item_association_not_found_exception::Builder + { + crate::error::ops_item_related_item_association_not_found_exception::Builder::default() } } ///

    The ID specified for the delete operation does not exist or is not valid. Verify the ID and /// try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDeletionIdError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidDeletionIdException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDeletionIdError { +impl std::fmt::Debug for InvalidDeletionIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDeletionIdError"); + let mut formatter = f.debug_struct("InvalidDeletionIdException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDeletionIdError { +impl InvalidDeletionIdException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDeletionIdError { +impl std::fmt::Display for InvalidDeletionIdException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidDeletionIdError [InvalidDeletionIdException]")?; + write!(f, "InvalidDeletionIdException")?; if let Some(inner_93) = &self.message { write!(f, ": {}", inner_93)?; } Ok(()) } } -impl std::error::Error for InvalidDeletionIdError {} -/// See [`InvalidDeletionIdError`](crate::error::InvalidDeletionIdError) -pub mod invalid_deletion_id_error { - /// A builder for [`InvalidDeletionIdError`](crate::error::InvalidDeletionIdError) +impl std::error::Error for InvalidDeletionIdException {} +/// See [`InvalidDeletionIdException`](crate::error::InvalidDeletionIdException) +pub mod invalid_deletion_id_exception { + /// A builder for [`InvalidDeletionIdException`](crate::error::InvalidDeletionIdException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -20816,27 +20643,25 @@ pub mod invalid_deletion_id_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDeletionIdError`](crate::error::InvalidDeletionIdError) - pub fn build(self) -> crate::error::InvalidDeletionIdError { - crate::error::InvalidDeletionIdError { + /// Consumes the builder and constructs a [`InvalidDeletionIdException`](crate::error::InvalidDeletionIdException) + pub fn build(self) -> crate::error::InvalidDeletionIdException { + crate::error::InvalidDeletionIdException { message: self.message, } } } } -impl InvalidDeletionIdError { - /// Creates a new builder-style object to manufacture [`InvalidDeletionIdError`](crate::error::InvalidDeletionIdError) - pub fn builder() -> crate::error::invalid_deletion_id_error::Builder { - crate::error::invalid_deletion_id_error::Builder::default() +impl InvalidDeletionIdException { + /// Creates a new builder-style object to manufacture [`InvalidDeletionIdException`](crate::error::InvalidDeletionIdException) + pub fn builder() -> crate::error::invalid_deletion_id_exception::Builder { + crate::error::invalid_deletion_id_exception::Builder::default() } } ///

    The specified filter value is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidInstanceInformationFilterValue { - #[serde(rename = "message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidInstanceInformationFilterValue { @@ -20895,10 +20720,8 @@ impl InvalidInstanceInformationFilterValue { ///

    The specified execution ID does not exist. Verify the ID number and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationExecutionDoesNotExist { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for AssociationExecutionDoesNotExist { @@ -20958,37 +20781,35 @@ impl AssociationExecutionDoesNotExist { ///

    You specified the Safe option for the DeregisterTargetFromMaintenanceWindow /// operation, but the target is still referenced in a task.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TargetInUseError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct TargetInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for TargetInUseError { +impl std::fmt::Debug for TargetInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TargetInUseError"); + let mut formatter = f.debug_struct("TargetInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl TargetInUseError { +impl TargetInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for TargetInUseError { +impl std::fmt::Display for TargetInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "TargetInUseError [TargetInUseException]")?; + write!(f, "TargetInUseException")?; if let Some(inner_96) = &self.message { write!(f, ": {}", inner_96)?; } Ok(()) } } -impl std::error::Error for TargetInUseError {} -/// See [`TargetInUseError`](crate::error::TargetInUseError) -pub mod target_in_use_error { - /// A builder for [`TargetInUseError`](crate::error::TargetInUseError) +impl std::error::Error for TargetInUseException {} +/// See [`TargetInUseException`](crate::error::TargetInUseException) +pub mod target_in_use_exception { + /// A builder for [`TargetInUseException`](crate::error::TargetInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21003,55 +20824,53 @@ pub mod target_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`TargetInUseError`](crate::error::TargetInUseError) - pub fn build(self) -> crate::error::TargetInUseError { - crate::error::TargetInUseError { + /// Consumes the builder and constructs a [`TargetInUseException`](crate::error::TargetInUseException) + pub fn build(self) -> crate::error::TargetInUseException { + crate::error::TargetInUseException { message: self.message, } } } } -impl TargetInUseError { - /// Creates a new builder-style object to manufacture [`TargetInUseError`](crate::error::TargetInUseError) - pub fn builder() -> crate::error::target_in_use_error::Builder { - crate::error::target_in_use_error::Builder::default() +impl TargetInUseException { + /// Creates a new builder-style object to manufacture [`TargetInUseException`](crate::error::TargetInUseException) + pub fn builder() -> crate::error::target_in_use_exception::Builder { + crate::error::target_in_use_exception::Builder::default() } } ///

    Error returned if an attempt is made to delete a patch baseline that is registered for a /// patch group.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceInUseError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceInUseException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceInUseError { +impl std::fmt::Debug for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceInUseError"); + let mut formatter = f.debug_struct("ResourceInUseException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceInUseError { +impl ResourceInUseException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceInUseError { +impl std::fmt::Display for ResourceInUseException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ResourceInUseError [ResourceInUseException]")?; + write!(f, "ResourceInUseException")?; if let Some(inner_97) = &self.message { write!(f, ": {}", inner_97)?; } Ok(()) } } -impl std::error::Error for ResourceInUseError {} -/// See [`ResourceInUseError`](crate::error::ResourceInUseError) -pub mod resource_in_use_error { - /// A builder for [`ResourceInUseError`](crate::error::ResourceInUseError) +impl std::error::Error for ResourceInUseException {} +/// See [`ResourceInUseException`](crate::error::ResourceInUseException) +pub mod resource_in_use_exception { + /// A builder for [`ResourceInUseException`](crate::error::ResourceInUseException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21066,54 +20885,52 @@ pub mod resource_in_use_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn build(self) -> crate::error::ResourceInUseError { - crate::error::ResourceInUseError { + /// Consumes the builder and constructs a [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn build(self) -> crate::error::ResourceInUseException { + crate::error::ResourceInUseException { message: self.message, } } } } -impl ResourceInUseError { - /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::error::ResourceInUseError) - pub fn builder() -> crate::error::resource_in_use_error::Builder { - crate::error::resource_in_use_error::Builder::default() +impl ResourceInUseException { + /// Creates a new builder-style object to manufacture [`ResourceInUseException`](crate::error::ResourceInUseException) + pub fn builder() -> crate::error::resource_in_use_exception::Builder { + crate::error::resource_in_use_exception::Builder::default() } } ///

    The delete inventory option specified is not valid. Verify the option and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidOptionError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidOptionException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidOptionError { +impl std::fmt::Debug for InvalidOptionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidOptionError"); + let mut formatter = f.debug_struct("InvalidOptionException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidOptionError { +impl InvalidOptionException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidOptionError { +impl std::fmt::Display for InvalidOptionException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InvalidOptionError [InvalidOptionException]")?; + write!(f, "InvalidOptionException")?; if let Some(inner_98) = &self.message { write!(f, ": {}", inner_98)?; } Ok(()) } } -impl std::error::Error for InvalidOptionError {} -/// See [`InvalidOptionError`](crate::error::InvalidOptionError) -pub mod invalid_option_error { - /// A builder for [`InvalidOptionError`](crate::error::InvalidOptionError) +impl std::error::Error for InvalidOptionException {} +/// See [`InvalidOptionException`](crate::error::InvalidOptionException) +pub mod invalid_option_exception { + /// A builder for [`InvalidOptionException`](crate::error::InvalidOptionException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21128,57 +20945,52 @@ pub mod invalid_option_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidOptionError`](crate::error::InvalidOptionError) - pub fn build(self) -> crate::error::InvalidOptionError { - crate::error::InvalidOptionError { + /// Consumes the builder and constructs a [`InvalidOptionException`](crate::error::InvalidOptionException) + pub fn build(self) -> crate::error::InvalidOptionException { + crate::error::InvalidOptionException { message: self.message, } } } } -impl InvalidOptionError { - /// Creates a new builder-style object to manufacture [`InvalidOptionError`](crate::error::InvalidOptionError) - pub fn builder() -> crate::error::invalid_option_error::Builder { - crate::error::invalid_option_error::Builder::default() +impl InvalidOptionException { + /// Creates a new builder-style object to manufacture [`InvalidOptionException`](crate::error::InvalidOptionException) + pub fn builder() -> crate::error::invalid_option_exception::Builder { + crate::error::invalid_option_exception::Builder::default() } } ///

    The request is not valid.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidInventoryRequestError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidInventoryRequestException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidInventoryRequestError { +impl std::fmt::Debug for InvalidInventoryRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidInventoryRequestError"); + let mut formatter = f.debug_struct("InvalidInventoryRequestException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidInventoryRequestError { +impl InvalidInventoryRequestException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidInventoryRequestError { +impl std::fmt::Display for InvalidInventoryRequestException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidInventoryRequestError [InvalidInventoryRequestException]" - )?; + write!(f, "InvalidInventoryRequestException")?; if let Some(inner_99) = &self.message { write!(f, ": {}", inner_99)?; } Ok(()) } } -impl std::error::Error for InvalidInventoryRequestError {} -/// See [`InvalidInventoryRequestError`](crate::error::InvalidInventoryRequestError) -pub mod invalid_inventory_request_error { - /// A builder for [`InvalidInventoryRequestError`](crate::error::InvalidInventoryRequestError) +impl std::error::Error for InvalidInventoryRequestException {} +/// See [`InvalidInventoryRequestException`](crate::error::InvalidInventoryRequestException) +pub mod invalid_inventory_request_exception { + /// A builder for [`InvalidInventoryRequestException`](crate::error::InvalidInventoryRequestException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21193,58 +21005,53 @@ pub mod invalid_inventory_request_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidInventoryRequestError`](crate::error::InvalidInventoryRequestError) - pub fn build(self) -> crate::error::InvalidInventoryRequestError { - crate::error::InvalidInventoryRequestError { + /// Consumes the builder and constructs a [`InvalidInventoryRequestException`](crate::error::InvalidInventoryRequestException) + pub fn build(self) -> crate::error::InvalidInventoryRequestException { + crate::error::InvalidInventoryRequestException { message: self.message, } } } } -impl InvalidInventoryRequestError { - /// Creates a new builder-style object to manufacture [`InvalidInventoryRequestError`](crate::error::InvalidInventoryRequestError) - pub fn builder() -> crate::error::invalid_inventory_request_error::Builder { - crate::error::invalid_inventory_request_error::Builder::default() +impl InvalidInventoryRequestException { + /// Creates a new builder-style object to manufacture [`InvalidInventoryRequestException`](crate::error::InvalidInventoryRequestException) + pub fn builder() -> crate::error::invalid_inventory_request_exception::Builder { + crate::error::invalid_inventory_request_exception::Builder::default() } } ///

    One or more of the parameters specified for the delete operation is not valid. Verify all /// parameters and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidDeleteInventoryParametersError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct InvalidDeleteInventoryParametersException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidDeleteInventoryParametersError { +impl std::fmt::Debug for InvalidDeleteInventoryParametersException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidDeleteInventoryParametersError"); + let mut formatter = f.debug_struct("InvalidDeleteInventoryParametersException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidDeleteInventoryParametersError { +impl InvalidDeleteInventoryParametersException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidDeleteInventoryParametersError { +impl std::fmt::Display for InvalidDeleteInventoryParametersException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidDeleteInventoryParametersError [InvalidDeleteInventoryParametersException]" - )?; + write!(f, "InvalidDeleteInventoryParametersException")?; if let Some(inner_100) = &self.message { write!(f, ": {}", inner_100)?; } Ok(()) } } -impl std::error::Error for InvalidDeleteInventoryParametersError {} -/// See [`InvalidDeleteInventoryParametersError`](crate::error::InvalidDeleteInventoryParametersError) -pub mod invalid_delete_inventory_parameters_error { - /// A builder for [`InvalidDeleteInventoryParametersError`](crate::error::InvalidDeleteInventoryParametersError) +impl std::error::Error for InvalidDeleteInventoryParametersException {} +/// See [`InvalidDeleteInventoryParametersException`](crate::error::InvalidDeleteInventoryParametersException) +pub mod invalid_delete_inventory_parameters_exception { + /// A builder for [`InvalidDeleteInventoryParametersException`](crate::error::InvalidDeleteInventoryParametersException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21259,24 +21066,24 @@ pub mod invalid_delete_inventory_parameters_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidDeleteInventoryParametersError`](crate::error::InvalidDeleteInventoryParametersError) - pub fn build(self) -> crate::error::InvalidDeleteInventoryParametersError { - crate::error::InvalidDeleteInventoryParametersError { + /// Consumes the builder and constructs a [`InvalidDeleteInventoryParametersException`](crate::error::InvalidDeleteInventoryParametersException) + pub fn build(self) -> crate::error::InvalidDeleteInventoryParametersException { + crate::error::InvalidDeleteInventoryParametersException { message: self.message, } } } } -impl InvalidDeleteInventoryParametersError { - /// Creates a new builder-style object to manufacture [`InvalidDeleteInventoryParametersError`](crate::error::InvalidDeleteInventoryParametersError) - pub fn builder() -> crate::error::invalid_delete_inventory_parameters_error::Builder { - crate::error::invalid_delete_inventory_parameters_error::Builder::default() +impl InvalidDeleteInventoryParametersException { + /// Creates a new builder-style object to manufacture [`InvalidDeleteInventoryParametersException`](crate::error::InvalidDeleteInventoryParametersException) + pub fn builder() -> crate::error::invalid_delete_inventory_parameters_exception::Builder { + crate::error::invalid_delete_inventory_parameters_exception::Builder::default() } } ///

    You must disassociate a document from all instances before you can delete it.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociatedInstances {} impl std::fmt::Debug for AssociatedInstances { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21319,10 +21126,8 @@ impl AssociatedInstances { ///

    The activation ID is not valid. Verify the you entered the correct ActivationId or /// ActivationCode and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidActivationId { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidActivationId { @@ -21382,10 +21187,8 @@ impl InvalidActivationId { ///

    The activation is not valid. The activation might have been deleted, or the ActivationId and /// the ActivationCode do not match.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InvalidActivation { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for InvalidActivation { @@ -21444,40 +21247,35 @@ impl InvalidActivation { ///

    You have exceeded the allowed maximum sync configurations.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceDataSyncCountExceededError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceDataSyncCountExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for ResourceDataSyncCountExceededError { +impl std::fmt::Debug for ResourceDataSyncCountExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceDataSyncCountExceededError"); + let mut formatter = f.debug_struct("ResourceDataSyncCountExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl ResourceDataSyncCountExceededError { +impl ResourceDataSyncCountExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ResourceDataSyncCountExceededError { +impl std::fmt::Display for ResourceDataSyncCountExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceDataSyncCountExceededError [ResourceDataSyncCountExceededException]" - )?; + write!(f, "ResourceDataSyncCountExceededException")?; if let Some(inner_103) = &self.message { write!(f, ": {}", inner_103)?; } Ok(()) } } -impl std::error::Error for ResourceDataSyncCountExceededError {} -/// See [`ResourceDataSyncCountExceededError`](crate::error::ResourceDataSyncCountExceededError) -pub mod resource_data_sync_count_exceeded_error { - /// A builder for [`ResourceDataSyncCountExceededError`](crate::error::ResourceDataSyncCountExceededError) +impl std::error::Error for ResourceDataSyncCountExceededException {} +/// See [`ResourceDataSyncCountExceededException`](crate::error::ResourceDataSyncCountExceededException) +pub mod resource_data_sync_count_exceeded_exception { + /// A builder for [`ResourceDataSyncCountExceededException`](crate::error::ResourceDataSyncCountExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21492,54 +21290,49 @@ pub mod resource_data_sync_count_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`ResourceDataSyncCountExceededError`](crate::error::ResourceDataSyncCountExceededError) - pub fn build(self) -> crate::error::ResourceDataSyncCountExceededError { - crate::error::ResourceDataSyncCountExceededError { + /// Consumes the builder and constructs a [`ResourceDataSyncCountExceededException`](crate::error::ResourceDataSyncCountExceededException) + pub fn build(self) -> crate::error::ResourceDataSyncCountExceededException { + crate::error::ResourceDataSyncCountExceededException { message: self.message, } } } } -impl ResourceDataSyncCountExceededError { - /// Creates a new builder-style object to manufacture [`ResourceDataSyncCountExceededError`](crate::error::ResourceDataSyncCountExceededError) - pub fn builder() -> crate::error::resource_data_sync_count_exceeded_error::Builder { - crate::error::resource_data_sync_count_exceeded_error::Builder::default() +impl ResourceDataSyncCountExceededException { + /// Creates a new builder-style object to manufacture [`ResourceDataSyncCountExceededException`](crate::error::ResourceDataSyncCountExceededException) + pub fn builder() -> crate::error::resource_data_sync_count_exceeded_exception::Builder { + crate::error::resource_data_sync_count_exceeded_exception::Builder::default() } } ///

    A sync configuration with the same name already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResourceDataSyncAlreadyExistsError { - #[serde(rename = "SyncName")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct ResourceDataSyncAlreadyExistsException { pub sync_name: std::option::Option, } -impl std::fmt::Debug for ResourceDataSyncAlreadyExistsError { +impl std::fmt::Debug for ResourceDataSyncAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResourceDataSyncAlreadyExistsError"); + let mut formatter = f.debug_struct("ResourceDataSyncAlreadyExistsException"); formatter.field("sync_name", &self.sync_name); formatter.finish() } } -impl ResourceDataSyncAlreadyExistsError { +impl ResourceDataSyncAlreadyExistsException { pub fn message(&self) -> Option<&str> { None } } -impl std::fmt::Display for ResourceDataSyncAlreadyExistsError { +impl std::fmt::Display for ResourceDataSyncAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "ResourceDataSyncAlreadyExistsError [ResourceDataSyncAlreadyExistsException]" - )?; + write!(f, "ResourceDataSyncAlreadyExistsException")?; Ok(()) } } -impl std::error::Error for ResourceDataSyncAlreadyExistsError {} -/// See [`ResourceDataSyncAlreadyExistsError`](crate::error::ResourceDataSyncAlreadyExistsError) -pub mod resource_data_sync_already_exists_error { - /// A builder for [`ResourceDataSyncAlreadyExistsError`](crate::error::ResourceDataSyncAlreadyExistsError) +impl std::error::Error for ResourceDataSyncAlreadyExistsException {} +/// See [`ResourceDataSyncAlreadyExistsException`](crate::error::ResourceDataSyncAlreadyExistsException) +pub mod resource_data_sync_already_exists_exception { + /// A builder for [`ResourceDataSyncAlreadyExistsException`](crate::error::ResourceDataSyncAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21554,58 +21347,53 @@ pub mod resource_data_sync_already_exists_error { self.sync_name = input; self } - /// Consumes the builder and constructs a [`ResourceDataSyncAlreadyExistsError`](crate::error::ResourceDataSyncAlreadyExistsError) - pub fn build(self) -> crate::error::ResourceDataSyncAlreadyExistsError { - crate::error::ResourceDataSyncAlreadyExistsError { + /// Consumes the builder and constructs a [`ResourceDataSyncAlreadyExistsException`](crate::error::ResourceDataSyncAlreadyExistsException) + pub fn build(self) -> crate::error::ResourceDataSyncAlreadyExistsException { + crate::error::ResourceDataSyncAlreadyExistsException { sync_name: self.sync_name, } } } } -impl ResourceDataSyncAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`ResourceDataSyncAlreadyExistsError`](crate::error::ResourceDataSyncAlreadyExistsError) - pub fn builder() -> crate::error::resource_data_sync_already_exists_error::Builder { - crate::error::resource_data_sync_already_exists_error::Builder::default() +impl ResourceDataSyncAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`ResourceDataSyncAlreadyExistsException`](crate::error::ResourceDataSyncAlreadyExistsException) + pub fn builder() -> crate::error::resource_data_sync_already_exists_exception::Builder { + crate::error::resource_data_sync_already_exists_exception::Builder::default() } } ///

    Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The /// maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataLimitExceededError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataLimitExceededException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataLimitExceededError { +impl std::fmt::Debug for OpsMetadataLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataLimitExceededError"); + let mut formatter = f.debug_struct("OpsMetadataLimitExceededException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataLimitExceededError { +impl OpsMetadataLimitExceededException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataLimitExceededError { +impl std::fmt::Display for OpsMetadataLimitExceededException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsMetadataLimitExceededError [OpsMetadataLimitExceededException]" - )?; + write!(f, "OpsMetadataLimitExceededException")?; if let Some(inner_104) = &self.message { write!(f, ": {}", inner_104)?; } Ok(()) } } -impl std::error::Error for OpsMetadataLimitExceededError {} -/// See [`OpsMetadataLimitExceededError`](crate::error::OpsMetadataLimitExceededError) -pub mod ops_metadata_limit_exceeded_error { - /// A builder for [`OpsMetadataLimitExceededError`](crate::error::OpsMetadataLimitExceededError) +impl std::error::Error for OpsMetadataLimitExceededException {} +/// See [`OpsMetadataLimitExceededException`](crate::error::OpsMetadataLimitExceededException) +pub mod ops_metadata_limit_exceeded_exception { + /// A builder for [`OpsMetadataLimitExceededException`](crate::error::OpsMetadataLimitExceededException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21620,57 +21408,52 @@ pub mod ops_metadata_limit_exceeded_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataLimitExceededError`](crate::error::OpsMetadataLimitExceededError) - pub fn build(self) -> crate::error::OpsMetadataLimitExceededError { - crate::error::OpsMetadataLimitExceededError { + /// Consumes the builder and constructs a [`OpsMetadataLimitExceededException`](crate::error::OpsMetadataLimitExceededException) + pub fn build(self) -> crate::error::OpsMetadataLimitExceededException { + crate::error::OpsMetadataLimitExceededException { message: self.message, } } } } -impl OpsMetadataLimitExceededError { - /// Creates a new builder-style object to manufacture [`OpsMetadataLimitExceededError`](crate::error::OpsMetadataLimitExceededError) - pub fn builder() -> crate::error::ops_metadata_limit_exceeded_error::Builder { - crate::error::ops_metadata_limit_exceeded_error::Builder::default() +impl OpsMetadataLimitExceededException { + /// Creates a new builder-style object to manufacture [`OpsMetadataLimitExceededException`](crate::error::OpsMetadataLimitExceededException) + pub fn builder() -> crate::error::ops_metadata_limit_exceeded_exception::Builder { + crate::error::ops_metadata_limit_exceeded_exception::Builder::default() } } ///

    An OpsMetadata object already exists for the selected resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsMetadataAlreadyExistsError { - #[serde(rename = "message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsMetadataAlreadyExistsException { pub message: std::option::Option, } -impl std::fmt::Debug for OpsMetadataAlreadyExistsError { +impl std::fmt::Debug for OpsMetadataAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsMetadataAlreadyExistsError"); + let mut formatter = f.debug_struct("OpsMetadataAlreadyExistsException"); formatter.field("message", &self.message); formatter.finish() } } -impl OpsMetadataAlreadyExistsError { +impl OpsMetadataAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsMetadataAlreadyExistsError { +impl std::fmt::Display for OpsMetadataAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsMetadataAlreadyExistsError [OpsMetadataAlreadyExistsException]" - )?; + write!(f, "OpsMetadataAlreadyExistsException")?; if let Some(inner_105) = &self.message { write!(f, ": {}", inner_105)?; } Ok(()) } } -impl std::error::Error for OpsMetadataAlreadyExistsError {} -/// See [`OpsMetadataAlreadyExistsError`](crate::error::OpsMetadataAlreadyExistsError) -pub mod ops_metadata_already_exists_error { - /// A builder for [`OpsMetadataAlreadyExistsError`](crate::error::OpsMetadataAlreadyExistsError) +impl std::error::Error for OpsMetadataAlreadyExistsException {} +/// See [`OpsMetadataAlreadyExistsException`](crate::error::OpsMetadataAlreadyExistsException) +pub mod ops_metadata_already_exists_exception { + /// A builder for [`OpsMetadataAlreadyExistsException`](crate::error::OpsMetadataAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21685,27 +21468,25 @@ pub mod ops_metadata_already_exists_error { self.message = input; self } - /// Consumes the builder and constructs a [`OpsMetadataAlreadyExistsError`](crate::error::OpsMetadataAlreadyExistsError) - pub fn build(self) -> crate::error::OpsMetadataAlreadyExistsError { - crate::error::OpsMetadataAlreadyExistsError { + /// Consumes the builder and constructs a [`OpsMetadataAlreadyExistsException`](crate::error::OpsMetadataAlreadyExistsException) + pub fn build(self) -> crate::error::OpsMetadataAlreadyExistsException { + crate::error::OpsMetadataAlreadyExistsException { message: self.message, } } } } -impl OpsMetadataAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`OpsMetadataAlreadyExistsError`](crate::error::OpsMetadataAlreadyExistsError) - pub fn builder() -> crate::error::ops_metadata_already_exists_error::Builder { - crate::error::ops_metadata_already_exists_error::Builder::default() +impl OpsMetadataAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`OpsMetadataAlreadyExistsException`](crate::error::OpsMetadataAlreadyExistsException) + pub fn builder() -> crate::error::ops_metadata_already_exists_exception::Builder { + crate::error::ops_metadata_already_exists_exception::Builder::default() } } ///

    The specified document already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentAlreadyExists { - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, } impl std::fmt::Debug for DocumentAlreadyExists { @@ -21764,7 +21545,7 @@ impl DocumentAlreadyExists { ///

    You can have at most 2,000 active associations.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationLimitExceeded {} impl std::fmt::Debug for AssociationLimitExceeded { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21806,7 +21587,7 @@ impl AssociationLimitExceeded { ///

    The specified association already exists.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationAlreadyExists {} impl std::fmt::Debug for AssociationAlreadyExists { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { @@ -21848,48 +21629,39 @@ impl AssociationAlreadyExists { ///

    The Amazon Resource Name (ARN) is already associated with the OpsItem.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct OpsItemRelatedItemAlreadyExistsError { - #[serde(rename = "Message")] - #[serde(default)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] +pub struct OpsItemRelatedItemAlreadyExistsException { pub message: std::option::Option, - #[serde(rename = "ResourceUri")] - #[serde(default)] pub resource_uri: std::option::Option, - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, } -impl std::fmt::Debug for OpsItemRelatedItemAlreadyExistsError { +impl std::fmt::Debug for OpsItemRelatedItemAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("OpsItemRelatedItemAlreadyExistsError"); + let mut formatter = f.debug_struct("OpsItemRelatedItemAlreadyExistsException"); formatter.field("message", &self.message); formatter.field("resource_uri", &self.resource_uri); formatter.field("ops_item_id", &self.ops_item_id); formatter.finish() } } -impl OpsItemRelatedItemAlreadyExistsError { +impl OpsItemRelatedItemAlreadyExistsException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for OpsItemRelatedItemAlreadyExistsError { +impl std::fmt::Display for OpsItemRelatedItemAlreadyExistsException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "OpsItemRelatedItemAlreadyExistsError [OpsItemRelatedItemAlreadyExistsException]" - )?; + write!(f, "OpsItemRelatedItemAlreadyExistsException")?; if let Some(inner_107) = &self.message { write!(f, ": {}", inner_107)?; } Ok(()) } } -impl std::error::Error for OpsItemRelatedItemAlreadyExistsError {} -/// See [`OpsItemRelatedItemAlreadyExistsError`](crate::error::OpsItemRelatedItemAlreadyExistsError) -pub mod ops_item_related_item_already_exists_error { - /// A builder for [`OpsItemRelatedItemAlreadyExistsError`](crate::error::OpsItemRelatedItemAlreadyExistsError) +impl std::error::Error for OpsItemRelatedItemAlreadyExistsException {} +/// See [`OpsItemRelatedItemAlreadyExistsException`](crate::error::OpsItemRelatedItemAlreadyExistsException) +pub mod ops_item_related_item_already_exists_exception { + /// A builder for [`OpsItemRelatedItemAlreadyExistsException`](crate::error::OpsItemRelatedItemAlreadyExistsException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -21922,9 +21694,9 @@ pub mod ops_item_related_item_already_exists_error { self.ops_item_id = input; self } - /// Consumes the builder and constructs a [`OpsItemRelatedItemAlreadyExistsError`](crate::error::OpsItemRelatedItemAlreadyExistsError) - pub fn build(self) -> crate::error::OpsItemRelatedItemAlreadyExistsError { - crate::error::OpsItemRelatedItemAlreadyExistsError { + /// Consumes the builder and constructs a [`OpsItemRelatedItemAlreadyExistsException`](crate::error::OpsItemRelatedItemAlreadyExistsException) + pub fn build(self) -> crate::error::OpsItemRelatedItemAlreadyExistsException { + crate::error::OpsItemRelatedItemAlreadyExistsException { message: self.message, resource_uri: self.resource_uri, ops_item_id: self.ops_item_id, @@ -21932,17 +21704,17 @@ pub mod ops_item_related_item_already_exists_error { } } } -impl OpsItemRelatedItemAlreadyExistsError { - /// Creates a new builder-style object to manufacture [`OpsItemRelatedItemAlreadyExistsError`](crate::error::OpsItemRelatedItemAlreadyExistsError) - pub fn builder() -> crate::error::ops_item_related_item_already_exists_error::Builder { - crate::error::ops_item_related_item_already_exists_error::Builder::default() +impl OpsItemRelatedItemAlreadyExistsException { + /// Creates a new builder-style object to manufacture [`OpsItemRelatedItemAlreadyExistsException`](crate::error::OpsItemRelatedItemAlreadyExistsException) + pub fn builder() -> crate::error::ops_item_related_item_already_exists_exception::Builder { + crate::error::ops_item_related_item_already_exists_exception::Builder::default() } } ///

    The Targets parameter includes too many tags. Remove one or more tags and try /// the command again.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TooManyTagsError {} impl std::fmt::Debug for TooManyTagsError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/sdk/ssm/src/error_meta.rs b/sdk/ssm/src/error_meta.rs index bf1f0c853e78..2751f02cec1b 100644 --- a/sdk/ssm/src/error_meta.rs +++ b/sdk/ssm/src/error_meta.rs @@ -2,51 +2,59 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - AlreadyExistsError(crate::error::AlreadyExistsError), + AlreadyExistsException(crate::error::AlreadyExistsException), AssociatedInstances(crate::error::AssociatedInstances), AssociationAlreadyExists(crate::error::AssociationAlreadyExists), AssociationDoesNotExist(crate::error::AssociationDoesNotExist), AssociationExecutionDoesNotExist(crate::error::AssociationExecutionDoesNotExist), AssociationLimitExceeded(crate::error::AssociationLimitExceeded), AssociationVersionLimitExceeded(crate::error::AssociationVersionLimitExceeded), - AutomationDefinitionNotApprovedError(crate::error::AutomationDefinitionNotApprovedError), - AutomationDefinitionNotFoundError(crate::error::AutomationDefinitionNotFoundError), - AutomationDefinitionVersionNotFoundError( - crate::error::AutomationDefinitionVersionNotFoundError, + AutomationDefinitionNotApprovedException( + crate::error::AutomationDefinitionNotApprovedException, ), - AutomationExecutionLimitExceededError(crate::error::AutomationExecutionLimitExceededError), - AutomationExecutionNotFoundError(crate::error::AutomationExecutionNotFoundError), - AutomationStepNotFoundError(crate::error::AutomationStepNotFoundError), - ComplianceTypeCountLimitExceededError(crate::error::ComplianceTypeCountLimitExceededError), - CustomSchemaCountLimitExceededError(crate::error::CustomSchemaCountLimitExceededError), + AutomationDefinitionNotFoundException(crate::error::AutomationDefinitionNotFoundException), + AutomationDefinitionVersionNotFoundException( + crate::error::AutomationDefinitionVersionNotFoundException, + ), + AutomationExecutionLimitExceededException( + crate::error::AutomationExecutionLimitExceededException, + ), + AutomationExecutionNotFoundException(crate::error::AutomationExecutionNotFoundException), + AutomationStepNotFoundException(crate::error::AutomationStepNotFoundException), + ComplianceTypeCountLimitExceededException( + crate::error::ComplianceTypeCountLimitExceededException, + ), + CustomSchemaCountLimitExceededException(crate::error::CustomSchemaCountLimitExceededException), DocumentAlreadyExists(crate::error::DocumentAlreadyExists), DocumentLimitExceeded(crate::error::DocumentLimitExceeded), DocumentPermissionLimit(crate::error::DocumentPermissionLimit), DocumentVersionLimitExceeded(crate::error::DocumentVersionLimitExceeded), - DoesNotExistError(crate::error::DoesNotExistError), + DoesNotExistException(crate::error::DoesNotExistException), DuplicateDocumentContent(crate::error::DuplicateDocumentContent), DuplicateDocumentVersionName(crate::error::DuplicateDocumentVersionName), DuplicateInstanceId(crate::error::DuplicateInstanceId), - FeatureNotAvailableError(crate::error::FeatureNotAvailableError), - HierarchyLevelLimitExceededError(crate::error::HierarchyLevelLimitExceededError), - HierarchyTypeMismatchError(crate::error::HierarchyTypeMismatchError), + FeatureNotAvailableException(crate::error::FeatureNotAvailableException), + HierarchyLevelLimitExceededException(crate::error::HierarchyLevelLimitExceededException), + HierarchyTypeMismatchException(crate::error::HierarchyTypeMismatchException), IdempotentParameterMismatch(crate::error::IdempotentParameterMismatch), - IncompatiblePolicyError(crate::error::IncompatiblePolicyError), + IncompatiblePolicyException(crate::error::IncompatiblePolicyException), InternalServerError(crate::error::InternalServerError), InvalidActivation(crate::error::InvalidActivation), InvalidActivationId(crate::error::InvalidActivationId), - InvalidAggregatorError(crate::error::InvalidAggregatorError), - InvalidAllowedPatternError(crate::error::InvalidAllowedPatternError), + InvalidAggregatorException(crate::error::InvalidAggregatorException), + InvalidAllowedPatternException(crate::error::InvalidAllowedPatternException), InvalidAssociation(crate::error::InvalidAssociation), InvalidAssociationVersion(crate::error::InvalidAssociationVersion), - InvalidAutomationExecutionParametersError( - crate::error::InvalidAutomationExecutionParametersError, + InvalidAutomationExecutionParametersException( + crate::error::InvalidAutomationExecutionParametersException, ), - InvalidAutomationSignalError(crate::error::InvalidAutomationSignalError), - InvalidAutomationStatusUpdateError(crate::error::InvalidAutomationStatusUpdateError), + InvalidAutomationSignalException(crate::error::InvalidAutomationSignalException), + InvalidAutomationStatusUpdateException(crate::error::InvalidAutomationStatusUpdateException), InvalidCommandId(crate::error::InvalidCommandId), - InvalidDeleteInventoryParametersError(crate::error::InvalidDeleteInventoryParametersError), - InvalidDeletionIdError(crate::error::InvalidDeletionIdError), + InvalidDeleteInventoryParametersException( + crate::error::InvalidDeleteInventoryParametersException, + ), + InvalidDeletionIdException(crate::error::InvalidDeletionIdException), InvalidDocument(crate::error::InvalidDocument), InvalidDocumentContent(crate::error::InvalidDocumentContent), InvalidDocumentOperation(crate::error::InvalidDocumentOperation), @@ -59,76 +67,82 @@ pub enum Error { InvalidFilterValue(crate::error::InvalidFilterValue), InvalidInstanceId(crate::error::InvalidInstanceId), InvalidInstanceInformationFilterValue(crate::error::InvalidInstanceInformationFilterValue), - InvalidInventoryGroupError(crate::error::InvalidInventoryGroupError), - InvalidInventoryItemContextError(crate::error::InvalidInventoryItemContextError), - InvalidInventoryRequestError(crate::error::InvalidInventoryRequestError), - InvalidItemContentError(crate::error::InvalidItemContentError), + InvalidInventoryGroupException(crate::error::InvalidInventoryGroupException), + InvalidInventoryItemContextException(crate::error::InvalidInventoryItemContextException), + InvalidInventoryRequestException(crate::error::InvalidInventoryRequestException), + InvalidItemContentException(crate::error::InvalidItemContentException), InvalidKeyId(crate::error::InvalidKeyId), InvalidNextToken(crate::error::InvalidNextToken), InvalidNotificationConfig(crate::error::InvalidNotificationConfig), - InvalidOptionError(crate::error::InvalidOptionError), + InvalidOptionException(crate::error::InvalidOptionException), InvalidOutputFolder(crate::error::InvalidOutputFolder), InvalidOutputLocation(crate::error::InvalidOutputLocation), InvalidParameters(crate::error::InvalidParameters), InvalidPermissionType(crate::error::InvalidPermissionType), InvalidPluginName(crate::error::InvalidPluginName), - InvalidPolicyAttributeError(crate::error::InvalidPolicyAttributeError), - InvalidPolicyTypeError(crate::error::InvalidPolicyTypeError), + InvalidPolicyAttributeException(crate::error::InvalidPolicyAttributeException), + InvalidPolicyTypeException(crate::error::InvalidPolicyTypeException), InvalidResourceId(crate::error::InvalidResourceId), InvalidResourceType(crate::error::InvalidResourceType), - InvalidResultAttributeError(crate::error::InvalidResultAttributeError), + InvalidResultAttributeException(crate::error::InvalidResultAttributeException), InvalidRole(crate::error::InvalidRole), InvalidSchedule(crate::error::InvalidSchedule), InvalidTarget(crate::error::InvalidTarget), - InvalidTypeNameError(crate::error::InvalidTypeNameError), + InvalidTypeNameException(crate::error::InvalidTypeNameException), InvalidUpdate(crate::error::InvalidUpdate), InvocationDoesNotExist(crate::error::InvocationDoesNotExist), - ItemContentMismatchError(crate::error::ItemContentMismatchError), - ItemSizeLimitExceededError(crate::error::ItemSizeLimitExceededError), + ItemContentMismatchException(crate::error::ItemContentMismatchException), + ItemSizeLimitExceededException(crate::error::ItemSizeLimitExceededException), MaxDocumentSizeExceeded(crate::error::MaxDocumentSizeExceeded), - OpsItemAlreadyExistsError(crate::error::OpsItemAlreadyExistsError), - OpsItemInvalidParameterError(crate::error::OpsItemInvalidParameterError), - OpsItemLimitExceededError(crate::error::OpsItemLimitExceededError), - OpsItemNotFoundError(crate::error::OpsItemNotFoundError), - OpsItemRelatedItemAlreadyExistsError(crate::error::OpsItemRelatedItemAlreadyExistsError), - OpsItemRelatedItemAssociationNotFoundError( - crate::error::OpsItemRelatedItemAssociationNotFoundError, + OpsItemAlreadyExistsException(crate::error::OpsItemAlreadyExistsException), + OpsItemInvalidParameterException(crate::error::OpsItemInvalidParameterException), + OpsItemLimitExceededException(crate::error::OpsItemLimitExceededException), + OpsItemNotFoundException(crate::error::OpsItemNotFoundException), + OpsItemRelatedItemAlreadyExistsException( + crate::error::OpsItemRelatedItemAlreadyExistsException, + ), + OpsItemRelatedItemAssociationNotFoundException( + crate::error::OpsItemRelatedItemAssociationNotFoundException, ), - OpsMetadataAlreadyExistsError(crate::error::OpsMetadataAlreadyExistsError), - OpsMetadataInvalidArgumentError(crate::error::OpsMetadataInvalidArgumentError), - OpsMetadataKeyLimitExceededError(crate::error::OpsMetadataKeyLimitExceededError), - OpsMetadataLimitExceededError(crate::error::OpsMetadataLimitExceededError), - OpsMetadataNotFoundError(crate::error::OpsMetadataNotFoundError), - OpsMetadataTooManyUpdatesError(crate::error::OpsMetadataTooManyUpdatesError), + OpsMetadataAlreadyExistsException(crate::error::OpsMetadataAlreadyExistsException), + OpsMetadataInvalidArgumentException(crate::error::OpsMetadataInvalidArgumentException), + OpsMetadataKeyLimitExceededException(crate::error::OpsMetadataKeyLimitExceededException), + OpsMetadataLimitExceededException(crate::error::OpsMetadataLimitExceededException), + OpsMetadataNotFoundException(crate::error::OpsMetadataNotFoundException), + OpsMetadataTooManyUpdatesException(crate::error::OpsMetadataTooManyUpdatesException), ParameterAlreadyExists(crate::error::ParameterAlreadyExists), ParameterLimitExceeded(crate::error::ParameterLimitExceeded), ParameterMaxVersionLimitExceeded(crate::error::ParameterMaxVersionLimitExceeded), ParameterNotFound(crate::error::ParameterNotFound), - ParameterPatternMismatchError(crate::error::ParameterPatternMismatchError), + ParameterPatternMismatchException(crate::error::ParameterPatternMismatchException), ParameterVersionLabelLimitExceeded(crate::error::ParameterVersionLabelLimitExceeded), ParameterVersionNotFound(crate::error::ParameterVersionNotFound), - PoliciesLimitExceededError(crate::error::PoliciesLimitExceededError), - ResourceDataSyncAlreadyExistsError(crate::error::ResourceDataSyncAlreadyExistsError), - ResourceDataSyncConflictError(crate::error::ResourceDataSyncConflictError), - ResourceDataSyncCountExceededError(crate::error::ResourceDataSyncCountExceededError), - ResourceDataSyncInvalidConfigurationError( - crate::error::ResourceDataSyncInvalidConfigurationError, + PoliciesLimitExceededException(crate::error::PoliciesLimitExceededException), + ResourceDataSyncAlreadyExistsException(crate::error::ResourceDataSyncAlreadyExistsException), + ResourceDataSyncConflictException(crate::error::ResourceDataSyncConflictException), + ResourceDataSyncCountExceededException(crate::error::ResourceDataSyncCountExceededException), + ResourceDataSyncInvalidConfigurationException( + crate::error::ResourceDataSyncInvalidConfigurationException, ), - ResourceDataSyncNotFoundError(crate::error::ResourceDataSyncNotFoundError), - ResourceInUseError(crate::error::ResourceInUseError), - ResourceLimitExceededError(crate::error::ResourceLimitExceededError), + ResourceDataSyncNotFoundException(crate::error::ResourceDataSyncNotFoundException), + ResourceInUseException(crate::error::ResourceInUseException), + ResourceLimitExceededException(crate::error::ResourceLimitExceededException), ServiceSettingNotFound(crate::error::ServiceSettingNotFound), StatusUnchanged(crate::error::StatusUnchanged), - SubTypeCountLimitExceededError(crate::error::SubTypeCountLimitExceededError), - TargetInUseError(crate::error::TargetInUseError), + SubTypeCountLimitExceededException(crate::error::SubTypeCountLimitExceededException), + TargetInUseException(crate::error::TargetInUseException), TargetNotConnected(crate::error::TargetNotConnected), TooManyTagsError(crate::error::TooManyTagsError), TooManyUpdates(crate::error::TooManyUpdates), - TotalSizeLimitExceededError(crate::error::TotalSizeLimitExceededError), - UnsupportedCalendarError(crate::error::UnsupportedCalendarError), - UnsupportedFeatureRequiredError(crate::error::UnsupportedFeatureRequiredError), - UnsupportedInventoryItemContextError(crate::error::UnsupportedInventoryItemContextError), - UnsupportedInventorySchemaVersionError(crate::error::UnsupportedInventorySchemaVersionError), + TotalSizeLimitExceededException(crate::error::TotalSizeLimitExceededException), + UnsupportedCalendarException(crate::error::UnsupportedCalendarException), + UnsupportedFeatureRequiredException(crate::error::UnsupportedFeatureRequiredException), + UnsupportedInventoryItemContextException( + crate::error::UnsupportedInventoryItemContextException, + ), + UnsupportedInventorySchemaVersionException( + crate::error::UnsupportedInventorySchemaVersionException, + ), UnsupportedOperatingSystem(crate::error::UnsupportedOperatingSystem), UnsupportedParameterType(crate::error::UnsupportedParameterType), UnsupportedPlatformType(crate::error::UnsupportedPlatformType), @@ -137,47 +151,47 @@ pub enum Error { impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::AlreadyExistsError(inner) => inner.fmt(f), + Error::AlreadyExistsException(inner) => inner.fmt(f), Error::AssociatedInstances(inner) => inner.fmt(f), Error::AssociationAlreadyExists(inner) => inner.fmt(f), Error::AssociationDoesNotExist(inner) => inner.fmt(f), Error::AssociationExecutionDoesNotExist(inner) => inner.fmt(f), Error::AssociationLimitExceeded(inner) => inner.fmt(f), Error::AssociationVersionLimitExceeded(inner) => inner.fmt(f), - Error::AutomationDefinitionNotApprovedError(inner) => inner.fmt(f), - Error::AutomationDefinitionNotFoundError(inner) => inner.fmt(f), - Error::AutomationDefinitionVersionNotFoundError(inner) => inner.fmt(f), - Error::AutomationExecutionLimitExceededError(inner) => inner.fmt(f), - Error::AutomationExecutionNotFoundError(inner) => inner.fmt(f), - Error::AutomationStepNotFoundError(inner) => inner.fmt(f), - Error::ComplianceTypeCountLimitExceededError(inner) => inner.fmt(f), - Error::CustomSchemaCountLimitExceededError(inner) => inner.fmt(f), + Error::AutomationDefinitionNotApprovedException(inner) => inner.fmt(f), + Error::AutomationDefinitionNotFoundException(inner) => inner.fmt(f), + Error::AutomationDefinitionVersionNotFoundException(inner) => inner.fmt(f), + Error::AutomationExecutionLimitExceededException(inner) => inner.fmt(f), + Error::AutomationExecutionNotFoundException(inner) => inner.fmt(f), + Error::AutomationStepNotFoundException(inner) => inner.fmt(f), + Error::ComplianceTypeCountLimitExceededException(inner) => inner.fmt(f), + Error::CustomSchemaCountLimitExceededException(inner) => inner.fmt(f), Error::DocumentAlreadyExists(inner) => inner.fmt(f), Error::DocumentLimitExceeded(inner) => inner.fmt(f), Error::DocumentPermissionLimit(inner) => inner.fmt(f), Error::DocumentVersionLimitExceeded(inner) => inner.fmt(f), - Error::DoesNotExistError(inner) => inner.fmt(f), + Error::DoesNotExistException(inner) => inner.fmt(f), Error::DuplicateDocumentContent(inner) => inner.fmt(f), Error::DuplicateDocumentVersionName(inner) => inner.fmt(f), Error::DuplicateInstanceId(inner) => inner.fmt(f), - Error::FeatureNotAvailableError(inner) => inner.fmt(f), - Error::HierarchyLevelLimitExceededError(inner) => inner.fmt(f), - Error::HierarchyTypeMismatchError(inner) => inner.fmt(f), + Error::FeatureNotAvailableException(inner) => inner.fmt(f), + Error::HierarchyLevelLimitExceededException(inner) => inner.fmt(f), + Error::HierarchyTypeMismatchException(inner) => inner.fmt(f), Error::IdempotentParameterMismatch(inner) => inner.fmt(f), - Error::IncompatiblePolicyError(inner) => inner.fmt(f), + Error::IncompatiblePolicyException(inner) => inner.fmt(f), Error::InternalServerError(inner) => inner.fmt(f), Error::InvalidActivation(inner) => inner.fmt(f), Error::InvalidActivationId(inner) => inner.fmt(f), - Error::InvalidAggregatorError(inner) => inner.fmt(f), - Error::InvalidAllowedPatternError(inner) => inner.fmt(f), + Error::InvalidAggregatorException(inner) => inner.fmt(f), + Error::InvalidAllowedPatternException(inner) => inner.fmt(f), Error::InvalidAssociation(inner) => inner.fmt(f), Error::InvalidAssociationVersion(inner) => inner.fmt(f), - Error::InvalidAutomationExecutionParametersError(inner) => inner.fmt(f), - Error::InvalidAutomationSignalError(inner) => inner.fmt(f), - Error::InvalidAutomationStatusUpdateError(inner) => inner.fmt(f), + Error::InvalidAutomationExecutionParametersException(inner) => inner.fmt(f), + Error::InvalidAutomationSignalException(inner) => inner.fmt(f), + Error::InvalidAutomationStatusUpdateException(inner) => inner.fmt(f), Error::InvalidCommandId(inner) => inner.fmt(f), - Error::InvalidDeleteInventoryParametersError(inner) => inner.fmt(f), - Error::InvalidDeletionIdError(inner) => inner.fmt(f), + Error::InvalidDeleteInventoryParametersException(inner) => inner.fmt(f), + Error::InvalidDeletionIdException(inner) => inner.fmt(f), Error::InvalidDocument(inner) => inner.fmt(f), Error::InvalidDocumentContent(inner) => inner.fmt(f), Error::InvalidDocumentOperation(inner) => inner.fmt(f), @@ -190,72 +204,72 @@ impl std::fmt::Display for Error { Error::InvalidFilterValue(inner) => inner.fmt(f), Error::InvalidInstanceId(inner) => inner.fmt(f), Error::InvalidInstanceInformationFilterValue(inner) => inner.fmt(f), - Error::InvalidInventoryGroupError(inner) => inner.fmt(f), - Error::InvalidInventoryItemContextError(inner) => inner.fmt(f), - Error::InvalidInventoryRequestError(inner) => inner.fmt(f), - Error::InvalidItemContentError(inner) => inner.fmt(f), + Error::InvalidInventoryGroupException(inner) => inner.fmt(f), + Error::InvalidInventoryItemContextException(inner) => inner.fmt(f), + Error::InvalidInventoryRequestException(inner) => inner.fmt(f), + Error::InvalidItemContentException(inner) => inner.fmt(f), Error::InvalidKeyId(inner) => inner.fmt(f), Error::InvalidNextToken(inner) => inner.fmt(f), Error::InvalidNotificationConfig(inner) => inner.fmt(f), - Error::InvalidOptionError(inner) => inner.fmt(f), + Error::InvalidOptionException(inner) => inner.fmt(f), Error::InvalidOutputFolder(inner) => inner.fmt(f), Error::InvalidOutputLocation(inner) => inner.fmt(f), Error::InvalidParameters(inner) => inner.fmt(f), Error::InvalidPermissionType(inner) => inner.fmt(f), Error::InvalidPluginName(inner) => inner.fmt(f), - Error::InvalidPolicyAttributeError(inner) => inner.fmt(f), - Error::InvalidPolicyTypeError(inner) => inner.fmt(f), + Error::InvalidPolicyAttributeException(inner) => inner.fmt(f), + Error::InvalidPolicyTypeException(inner) => inner.fmt(f), Error::InvalidResourceId(inner) => inner.fmt(f), Error::InvalidResourceType(inner) => inner.fmt(f), - Error::InvalidResultAttributeError(inner) => inner.fmt(f), + Error::InvalidResultAttributeException(inner) => inner.fmt(f), Error::InvalidRole(inner) => inner.fmt(f), Error::InvalidSchedule(inner) => inner.fmt(f), Error::InvalidTarget(inner) => inner.fmt(f), - Error::InvalidTypeNameError(inner) => inner.fmt(f), + Error::InvalidTypeNameException(inner) => inner.fmt(f), Error::InvalidUpdate(inner) => inner.fmt(f), Error::InvocationDoesNotExist(inner) => inner.fmt(f), - Error::ItemContentMismatchError(inner) => inner.fmt(f), - Error::ItemSizeLimitExceededError(inner) => inner.fmt(f), + Error::ItemContentMismatchException(inner) => inner.fmt(f), + Error::ItemSizeLimitExceededException(inner) => inner.fmt(f), Error::MaxDocumentSizeExceeded(inner) => inner.fmt(f), - Error::OpsItemAlreadyExistsError(inner) => inner.fmt(f), - Error::OpsItemInvalidParameterError(inner) => inner.fmt(f), - Error::OpsItemLimitExceededError(inner) => inner.fmt(f), - Error::OpsItemNotFoundError(inner) => inner.fmt(f), - Error::OpsItemRelatedItemAlreadyExistsError(inner) => inner.fmt(f), - Error::OpsItemRelatedItemAssociationNotFoundError(inner) => inner.fmt(f), - Error::OpsMetadataAlreadyExistsError(inner) => inner.fmt(f), - Error::OpsMetadataInvalidArgumentError(inner) => inner.fmt(f), - Error::OpsMetadataKeyLimitExceededError(inner) => inner.fmt(f), - Error::OpsMetadataLimitExceededError(inner) => inner.fmt(f), - Error::OpsMetadataNotFoundError(inner) => inner.fmt(f), - Error::OpsMetadataTooManyUpdatesError(inner) => inner.fmt(f), + Error::OpsItemAlreadyExistsException(inner) => inner.fmt(f), + Error::OpsItemInvalidParameterException(inner) => inner.fmt(f), + Error::OpsItemLimitExceededException(inner) => inner.fmt(f), + Error::OpsItemNotFoundException(inner) => inner.fmt(f), + Error::OpsItemRelatedItemAlreadyExistsException(inner) => inner.fmt(f), + Error::OpsItemRelatedItemAssociationNotFoundException(inner) => inner.fmt(f), + Error::OpsMetadataAlreadyExistsException(inner) => inner.fmt(f), + Error::OpsMetadataInvalidArgumentException(inner) => inner.fmt(f), + Error::OpsMetadataKeyLimitExceededException(inner) => inner.fmt(f), + Error::OpsMetadataLimitExceededException(inner) => inner.fmt(f), + Error::OpsMetadataNotFoundException(inner) => inner.fmt(f), + Error::OpsMetadataTooManyUpdatesException(inner) => inner.fmt(f), Error::ParameterAlreadyExists(inner) => inner.fmt(f), Error::ParameterLimitExceeded(inner) => inner.fmt(f), Error::ParameterMaxVersionLimitExceeded(inner) => inner.fmt(f), Error::ParameterNotFound(inner) => inner.fmt(f), - Error::ParameterPatternMismatchError(inner) => inner.fmt(f), + Error::ParameterPatternMismatchException(inner) => inner.fmt(f), Error::ParameterVersionLabelLimitExceeded(inner) => inner.fmt(f), Error::ParameterVersionNotFound(inner) => inner.fmt(f), - Error::PoliciesLimitExceededError(inner) => inner.fmt(f), - Error::ResourceDataSyncAlreadyExistsError(inner) => inner.fmt(f), - Error::ResourceDataSyncConflictError(inner) => inner.fmt(f), - Error::ResourceDataSyncCountExceededError(inner) => inner.fmt(f), - Error::ResourceDataSyncInvalidConfigurationError(inner) => inner.fmt(f), - Error::ResourceDataSyncNotFoundError(inner) => inner.fmt(f), - Error::ResourceInUseError(inner) => inner.fmt(f), - Error::ResourceLimitExceededError(inner) => inner.fmt(f), + Error::PoliciesLimitExceededException(inner) => inner.fmt(f), + Error::ResourceDataSyncAlreadyExistsException(inner) => inner.fmt(f), + Error::ResourceDataSyncConflictException(inner) => inner.fmt(f), + Error::ResourceDataSyncCountExceededException(inner) => inner.fmt(f), + Error::ResourceDataSyncInvalidConfigurationException(inner) => inner.fmt(f), + Error::ResourceDataSyncNotFoundException(inner) => inner.fmt(f), + Error::ResourceInUseException(inner) => inner.fmt(f), + Error::ResourceLimitExceededException(inner) => inner.fmt(f), Error::ServiceSettingNotFound(inner) => inner.fmt(f), Error::StatusUnchanged(inner) => inner.fmt(f), - Error::SubTypeCountLimitExceededError(inner) => inner.fmt(f), - Error::TargetInUseError(inner) => inner.fmt(f), + Error::SubTypeCountLimitExceededException(inner) => inner.fmt(f), + Error::TargetInUseException(inner) => inner.fmt(f), Error::TargetNotConnected(inner) => inner.fmt(f), Error::TooManyTagsError(inner) => inner.fmt(f), Error::TooManyUpdates(inner) => inner.fmt(f), - Error::TotalSizeLimitExceededError(inner) => inner.fmt(f), - Error::UnsupportedCalendarError(inner) => inner.fmt(f), - Error::UnsupportedFeatureRequiredError(inner) => inner.fmt(f), - Error::UnsupportedInventoryItemContextError(inner) => inner.fmt(f), - Error::UnsupportedInventorySchemaVersionError(inner) => inner.fmt(f), + Error::TotalSizeLimitExceededException(inner) => inner.fmt(f), + Error::UnsupportedCalendarException(inner) => inner.fmt(f), + Error::UnsupportedFeatureRequiredException(inner) => inner.fmt(f), + Error::UnsupportedInventoryItemContextException(inner) => inner.fmt(f), + Error::UnsupportedInventorySchemaVersionException(inner) => inner.fmt(f), Error::UnsupportedOperatingSystem(inner) => inner.fmt(f), Error::UnsupportedParameterType(inner) => inner.fmt(f), Error::UnsupportedPlatformType(inner) => inner.fmt(f), @@ -297,10 +311,10 @@ impl From match err.kind { crate::error::AssociateOpsItemRelatedItemErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(inner) => Error::OpsItemInvalidParameterError(inner), - crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededError(inner) => Error::OpsItemLimitExceededError(inner), - crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(inner) => Error::OpsItemNotFoundError(inner), - crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsError(inner) => Error::OpsItemRelatedItemAlreadyExistsError(inner), + crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(inner) => Error::OpsItemInvalidParameterException(inner), + crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededException(inner) => Error::OpsItemLimitExceededException(inner), + crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(inner) => Error::OpsItemNotFoundException(inner), + crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsException(inner) => Error::OpsItemRelatedItemAlreadyExistsException(inner), crate::error::AssociateOpsItemRelatedItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -337,9 +351,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::CancelMaintenanceWindowExecutionErrorKind::DoesNotExistError( + crate::error::CancelMaintenanceWindowExecutionErrorKind::DoesNotExistException( inner, - ) => Error::DoesNotExistError(inner), + ) => Error::DoesNotExistException(inner), crate::error::CancelMaintenanceWindowExecutionErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -496,9 +510,9 @@ impl From { Error::InternalServerError(inner) } - crate::error::CreateMaintenanceWindowErrorKind::ResourceLimitExceededError( + crate::error::CreateMaintenanceWindowErrorKind::ResourceLimitExceededException( inner, - ) => Error::ResourceLimitExceededError(inner), + ) => Error::ResourceLimitExceededException(inner), crate::error::CreateMaintenanceWindowErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -514,14 +528,14 @@ impl From> for E crate::error::CreateOpsItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreateOpsItemErrorKind::OpsItemAlreadyExistsError(inner) => { - Error::OpsItemAlreadyExistsError(inner) + crate::error::CreateOpsItemErrorKind::OpsItemAlreadyExistsException(inner) => { + Error::OpsItemAlreadyExistsException(inner) } - crate::error::CreateOpsItemErrorKind::OpsItemInvalidParameterError(inner) => { - Error::OpsItemInvalidParameterError(inner) + crate::error::CreateOpsItemErrorKind::OpsItemInvalidParameterException(inner) => { + Error::OpsItemInvalidParameterException(inner) } - crate::error::CreateOpsItemErrorKind::OpsItemLimitExceededError(inner) => { - Error::OpsItemLimitExceededError(inner) + crate::error::CreateOpsItemErrorKind::OpsItemLimitExceededException(inner) => { + Error::OpsItemLimitExceededException(inner) } crate::error::CreateOpsItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -536,18 +550,18 @@ impl From> f crate::error::CreateOpsMetadataErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsError(inner) => { - Error::OpsMetadataAlreadyExistsError(inner) - } - crate::error::CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError( + crate::error::CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsException( inner, - ) => Error::OpsMetadataInvalidArgumentError(inner), - crate::error::CreateOpsMetadataErrorKind::OpsMetadataLimitExceededError(inner) => { - Error::OpsMetadataLimitExceededError(inner) - } - crate::error::CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(inner) => { - Error::OpsMetadataTooManyUpdatesError(inner) - } + ) => Error::OpsMetadataAlreadyExistsException(inner), + crate::error::CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException( + inner, + ) => Error::OpsMetadataInvalidArgumentException(inner), + crate::error::CreateOpsMetadataErrorKind::OpsMetadataLimitExceededException( + inner, + ) => Error::OpsMetadataLimitExceededException(inner), + crate::error::CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException( + inner, + ) => Error::OpsMetadataTooManyUpdatesException(inner), crate::error::CreateOpsMetadataErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -566,9 +580,9 @@ impl From> crate::error::CreatePatchBaselineErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::CreatePatchBaselineErrorKind::ResourceLimitExceededError(inner) => { - Error::ResourceLimitExceededError(inner) - } + crate::error::CreatePatchBaselineErrorKind::ResourceLimitExceededException( + inner, + ) => Error::ResourceLimitExceededException(inner), crate::error::CreatePatchBaselineErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -582,9 +596,9 @@ impl From match err.kind { crate::error::CreateResourceDataSyncErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsError(inner) => Error::ResourceDataSyncAlreadyExistsError(inner), - crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededError(inner) => Error::ResourceDataSyncCountExceededError(inner), - crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(inner) => Error::ResourceDataSyncInvalidConfigurationError(inner), + crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsException(inner) => Error::ResourceDataSyncAlreadyExistsException(inner), + crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededException(inner) => Error::ResourceDataSyncCountExceededException(inner), + crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(inner) => Error::ResourceDataSyncInvalidConfigurationException(inner), crate::error::CreateResourceDataSyncErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -667,24 +681,14 @@ impl From> for impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeleteInventoryErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::DeleteInventoryErrorKind::InvalidDeleteInventoryParametersError( - inner, - ) => Error::InvalidDeleteInventoryParametersError(inner), - crate::error::DeleteInventoryErrorKind::InvalidInventoryRequestError(inner) => { - Error::InvalidInventoryRequestError(inner) - } - crate::error::DeleteInventoryErrorKind::InvalidOptionError(inner) => { - Error::InvalidOptionError(inner) - } - crate::error::DeleteInventoryErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) - } + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeleteInventoryErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::DeleteInventoryErrorKind::InvalidDeleteInventoryParametersException(inner) => Error::InvalidDeleteInventoryParametersException(inner), + crate::error::DeleteInventoryErrorKind::InvalidInventoryRequestException(inner) => Error::InvalidInventoryRequestException(inner), + crate::error::DeleteInventoryErrorKind::InvalidOptionException(inner) => Error::InvalidOptionException(inner), + crate::error::DeleteInventoryErrorKind::InvalidTypeNameException(inner) => Error::InvalidTypeNameException(inner), crate::error::DeleteInventoryErrorKind::Unhandled(inner) => Error::Unhandled(inner), - }, + } _ => Error::Unhandled(err.into()), } } @@ -713,11 +717,11 @@ impl From> f crate::error::DeleteOpsMetadataErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentError( + crate::error::DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentException( inner, - ) => Error::OpsMetadataInvalidArgumentError(inner), - crate::error::DeleteOpsMetadataErrorKind::OpsMetadataNotFoundError(inner) => { - Error::OpsMetadataNotFoundError(inner) + ) => Error::OpsMetadataInvalidArgumentException(inner), + crate::error::DeleteOpsMetadataErrorKind::OpsMetadataNotFoundException(inner) => { + Error::OpsMetadataNotFoundException(inner) } crate::error::DeleteOpsMetadataErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -765,8 +769,8 @@ impl From> crate::error::DeletePatchBaselineErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::DeletePatchBaselineErrorKind::ResourceInUseError(inner) => { - Error::ResourceInUseError(inner) + crate::error::DeletePatchBaselineErrorKind::ResourceInUseException(inner) => { + Error::ResourceInUseException(inner) } crate::error::DeletePatchBaselineErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -781,8 +785,8 @@ impl From match err.kind { crate::error::DeleteResourceDataSyncErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(inner) => Error::ResourceDataSyncInvalidConfigurationError(inner), - crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(inner) => Error::ResourceDataSyncNotFoundError(inner), + crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(inner) => Error::ResourceDataSyncInvalidConfigurationException(inner), + crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(inner) => Error::ResourceDataSyncNotFoundException(inner), crate::error::DeleteResourceDataSyncErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -835,9 +839,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseError(inner) => Error::TargetInUseError(inner), + crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseException(inner) => Error::TargetInUseException(inner), crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -851,17 +855,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistError( - inner, - ) => Error::DoesNotExistError(inner), - crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError( - inner, - ) => Error::InternalServerError(inner), - crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), + crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -993,7 +991,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundError(inner) => Error::AutomationExecutionNotFoundError(inner), + crate::error::DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundException(inner) => Error::AutomationExecutionNotFoundException(inner), crate::error::DescribeAutomationStepExecutionsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterKey(inner) => Error::InvalidFilterKey(inner), crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterValue(inner) => Error::InvalidFilterValue(inner), @@ -1101,7 +1099,7 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InvalidResourceId(inner) => Error::InvalidResourceId(inner), crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::UnsupportedOperatingSystem(inner) => Error::UnsupportedOperatingSystem(inner), @@ -1228,9 +1226,9 @@ impl From { Error::InternalServerError(inner) } - crate::error::DescribeInventoryDeletionsErrorKind::InvalidDeletionIdError( + crate::error::DescribeInventoryDeletionsErrorKind::InvalidDeletionIdException( inner, - ) => Error::InvalidDeletionIdError(inner), + ) => Error::InvalidDeletionIdException(inner), crate::error::DescribeInventoryDeletionsErrorKind::InvalidNextToken(inner) => { Error::InvalidNextToken(inner) } @@ -1275,7 +1273,7 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -1293,7 +1291,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -1326,9 +1324,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistError( + crate::error::DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistException( inner, - ) => Error::DoesNotExistError(inner), + ) => Error::DoesNotExistException(inner), crate::error::DescribeMaintenanceWindowScheduleErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -1367,9 +1365,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistError( + crate::error::DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistException( inner, - ) => Error::DoesNotExistError(inner), + ) => Error::DoesNotExistException(inner), crate::error::DescribeMaintenanceWindowTargetsErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -1389,9 +1387,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::DescribeMaintenanceWindowTasksErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) - } + crate::error::DescribeMaintenanceWindowTasksErrorKind::DoesNotExistException( + inner, + ) => Error::DoesNotExistException(inner), crate::error::DescribeMaintenanceWindowTasksErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -1542,9 +1540,9 @@ impl From match err.kind { crate::error::DisassociateOpsItemRelatedItemErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(inner) => Error::OpsItemInvalidParameterError(inner), - crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(inner) => Error::OpsItemNotFoundError(inner), - crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundError(inner) => Error::OpsItemRelatedItemAssociationNotFoundError(inner), + crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException(inner) => Error::OpsItemInvalidParameterException(inner), + crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException(inner) => Error::OpsItemNotFoundException(inner), + crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundException(inner) => Error::OpsItemRelatedItemAssociationNotFoundException(inner), crate::error::DisassociateOpsItemRelatedItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -1554,17 +1552,11 @@ impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetAutomationExecutionErrorKind::AutomationExecutionNotFoundError( - inner, - ) => Error::AutomationExecutionNotFoundError(inner), - crate::error::GetAutomationExecutionErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::GetAutomationExecutionErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::GetAutomationExecutionErrorKind::AutomationExecutionNotFoundException(inner) => Error::AutomationExecutionNotFoundException(inner), + crate::error::GetAutomationExecutionErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::GetAutomationExecutionErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -1582,8 +1574,8 @@ impl From> fo crate::error::GetCalendarStateErrorKind::InvalidDocumentType(inner) => { Error::InvalidDocumentType(inner) } - crate::error::GetCalendarStateErrorKind::UnsupportedCalendarError(inner) => { - Error::UnsupportedCalendarError(inner) + crate::error::GetCalendarStateErrorKind::UnsupportedCalendarException(inner) => { + Error::UnsupportedCalendarException(inner) } crate::error::GetCalendarStateErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1663,7 +1655,7 @@ impl From match err.kind { crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredError(inner) => Error::UnsupportedFeatureRequiredError(inner), + crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredException(inner) => Error::UnsupportedFeatureRequiredException(inner), crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedOperatingSystem(inner) => Error::UnsupportedOperatingSystem(inner), crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -1697,23 +1689,23 @@ impl From> for Er crate::error::GetInventoryErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::GetInventoryErrorKind::InvalidAggregatorError(inner) => { - Error::InvalidAggregatorError(inner) + crate::error::GetInventoryErrorKind::InvalidAggregatorException(inner) => { + Error::InvalidAggregatorException(inner) } crate::error::GetInventoryErrorKind::InvalidFilter(inner) => { Error::InvalidFilter(inner) } - crate::error::GetInventoryErrorKind::InvalidInventoryGroupError(inner) => { - Error::InvalidInventoryGroupError(inner) + crate::error::GetInventoryErrorKind::InvalidInventoryGroupException(inner) => { + Error::InvalidInventoryGroupException(inner) } crate::error::GetInventoryErrorKind::InvalidNextToken(inner) => { Error::InvalidNextToken(inner) } - crate::error::GetInventoryErrorKind::InvalidResultAttributeError(inner) => { - Error::InvalidResultAttributeError(inner) + crate::error::GetInventoryErrorKind::InvalidResultAttributeException(inner) => { + Error::InvalidResultAttributeException(inner) } - crate::error::GetInventoryErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) + crate::error::GetInventoryErrorKind::InvalidTypeNameException(inner) => { + Error::InvalidTypeNameException(inner) } crate::error::GetInventoryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1731,8 +1723,8 @@ impl From> crate::error::GetInventorySchemaErrorKind::InvalidNextToken(inner) => { Error::InvalidNextToken(inner) } - crate::error::GetInventorySchemaErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) + crate::error::GetInventorySchemaErrorKind::InvalidTypeNameException(inner) => { + Error::InvalidTypeNameException(inner) } crate::error::GetInventorySchemaErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -1746,8 +1738,8 @@ impl From fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMaintenanceWindowErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::GetMaintenanceWindowErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::GetMaintenanceWindowErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -1768,9 +1760,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMaintenanceWindowExecutionErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) - } + crate::error::GetMaintenanceWindowExecutionErrorKind::DoesNotExistException( + inner, + ) => Error::DoesNotExistException(inner), crate::error::GetMaintenanceWindowExecutionErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -1790,9 +1782,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistError( + crate::error::GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistException( inner, - ) => Error::DoesNotExistError(inner), + ) => Error::DoesNotExistException(inner), crate::error::GetMaintenanceWindowExecutionTaskErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -1818,7 +1810,7 @@ impl ) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -1832,8 +1824,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetMaintenanceWindowTaskErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::GetMaintenanceWindowTaskErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::GetMaintenanceWindowTaskErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -1853,8 +1845,8 @@ impl From> for Erro crate::error::GetOpsItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::GetOpsItemErrorKind::OpsItemNotFoundError(inner) => { - Error::OpsItemNotFoundError(inner) + crate::error::GetOpsItemErrorKind::OpsItemNotFoundException(inner) => { + Error::OpsItemNotFoundException(inner) } crate::error::GetOpsItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1869,11 +1861,11 @@ impl From> for crate::error::GetOpsMetadataErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(inner) => { - Error::OpsMetadataInvalidArgumentError(inner) - } - crate::error::GetOpsMetadataErrorKind::OpsMetadataNotFoundError(inner) => { - Error::OpsMetadataNotFoundError(inner) + crate::error::GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentException( + inner, + ) => Error::OpsMetadataInvalidArgumentException(inner), + crate::error::GetOpsMetadataErrorKind::OpsMetadataNotFoundException(inner) => { + Error::OpsMetadataNotFoundException(inner) } crate::error::GetOpsMetadataErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -1888,8 +1880,8 @@ impl From> for E crate::error::GetOpsSummaryErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::GetOpsSummaryErrorKind::InvalidAggregatorError(inner) => { - Error::InvalidAggregatorError(inner) + crate::error::GetOpsSummaryErrorKind::InvalidAggregatorException(inner) => { + Error::InvalidAggregatorException(inner) } crate::error::GetOpsSummaryErrorKind::InvalidFilter(inner) => { Error::InvalidFilter(inner) @@ -1897,11 +1889,11 @@ impl From> for E crate::error::GetOpsSummaryErrorKind::InvalidNextToken(inner) => { Error::InvalidNextToken(inner) } - crate::error::GetOpsSummaryErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) + crate::error::GetOpsSummaryErrorKind::InvalidTypeNameException(inner) => { + Error::InvalidTypeNameException(inner) } - crate::error::GetOpsSummaryErrorKind::ResourceDataSyncNotFoundError(inner) => { - Error::ResourceDataSyncNotFoundError(inner) + crate::error::GetOpsSummaryErrorKind::ResourceDataSyncNotFoundException(inner) => { + Error::ResourceDataSyncNotFoundException(inner) } crate::error::GetOpsSummaryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -2005,8 +1997,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetPatchBaselineErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::GetPatchBaselineErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::GetPatchBaselineErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -2299,8 +2291,8 @@ impl From crate::error::ListInventoryEntriesErrorKind::InvalidNextToken(inner) => { Error::InvalidNextToken(inner) } - crate::error::ListInventoryEntriesErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) + crate::error::ListInventoryEntriesErrorKind::InvalidTypeNameException(inner) => { + Error::InvalidTypeNameException(inner) } crate::error::ListInventoryEntriesErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2317,14 +2309,14 @@ impl From> f crate::error::ListOpsItemEventsErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListOpsItemEventsErrorKind::OpsItemInvalidParameterError(inner) => { - Error::OpsItemInvalidParameterError(inner) - } - crate::error::ListOpsItemEventsErrorKind::OpsItemLimitExceededError(inner) => { - Error::OpsItemLimitExceededError(inner) + crate::error::ListOpsItemEventsErrorKind::OpsItemInvalidParameterException( + inner, + ) => Error::OpsItemInvalidParameterException(inner), + crate::error::ListOpsItemEventsErrorKind::OpsItemLimitExceededException(inner) => { + Error::OpsItemLimitExceededException(inner) } - crate::error::ListOpsItemEventsErrorKind::OpsItemNotFoundError(inner) => { - Error::OpsItemNotFoundError(inner) + crate::error::ListOpsItemEventsErrorKind::OpsItemNotFoundException(inner) => { + Error::OpsItemNotFoundException(inner) } crate::error::ListOpsItemEventsErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -2339,17 +2331,11 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ListOpsItemRelatedItemsErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterError( - inner, - ) => Error::OpsItemInvalidParameterError(inner), - crate::error::ListOpsItemRelatedItemsErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::ListOpsItemRelatedItemsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterException(inner) => Error::OpsItemInvalidParameterException(inner), + crate::error::ListOpsItemRelatedItemsErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2361,9 +2347,9 @@ impl From> for crate::error::ListOpsMetadataErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(inner) => { - Error::OpsMetadataInvalidArgumentError(inner) - } + crate::error::ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentException( + inner, + ) => Error::OpsMetadataInvalidArgumentException(inner), crate::error::ListOpsMetadataErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -2401,7 +2387,7 @@ impl From smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { crate::error::ListResourceDataSyncErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::ListResourceDataSyncErrorKind::InvalidNextToken(inner) => Error::InvalidNextToken(inner), - crate::error::ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(inner) => Error::ResourceDataSyncInvalidConfigurationError(inner), + crate::error::ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(inner) => Error::ResourceDataSyncInvalidConfigurationException(inner), crate::error::ListResourceDataSyncErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2462,13 +2448,13 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededError(inner) => Error::ComplianceTypeCountLimitExceededError(inner), + crate::error::PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededException(inner) => Error::ComplianceTypeCountLimitExceededException(inner), crate::error::PutComplianceItemsErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::PutComplianceItemsErrorKind::InvalidItemContentError(inner) => Error::InvalidItemContentError(inner), + crate::error::PutComplianceItemsErrorKind::InvalidItemContentException(inner) => Error::InvalidItemContentException(inner), crate::error::PutComplianceItemsErrorKind::InvalidResourceId(inner) => Error::InvalidResourceId(inner), crate::error::PutComplianceItemsErrorKind::InvalidResourceType(inner) => Error::InvalidResourceType(inner), - crate::error::PutComplianceItemsErrorKind::ItemSizeLimitExceededError(inner) => Error::ItemSizeLimitExceededError(inner), - crate::error::PutComplianceItemsErrorKind::TotalSizeLimitExceededError(inner) => Error::TotalSizeLimitExceededError(inner), + crate::error::PutComplianceItemsErrorKind::ItemSizeLimitExceededException(inner) => Error::ItemSizeLimitExceededException(inner), + crate::error::PutComplianceItemsErrorKind::TotalSizeLimitExceededException(inner) => Error::TotalSizeLimitExceededException(inner), crate::error::PutComplianceItemsErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2479,42 +2465,42 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutInventoryErrorKind::CustomSchemaCountLimitExceededError(inner) => { - Error::CustomSchemaCountLimitExceededError(inner) - } + crate::error::PutInventoryErrorKind::CustomSchemaCountLimitExceededException( + inner, + ) => Error::CustomSchemaCountLimitExceededException(inner), crate::error::PutInventoryErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } crate::error::PutInventoryErrorKind::InvalidInstanceId(inner) => { Error::InvalidInstanceId(inner) } - crate::error::PutInventoryErrorKind::InvalidInventoryItemContextError(inner) => { - Error::InvalidInventoryItemContextError(inner) - } - crate::error::PutInventoryErrorKind::InvalidItemContentError(inner) => { - Error::InvalidItemContentError(inner) + crate::error::PutInventoryErrorKind::InvalidInventoryItemContextException( + inner, + ) => Error::InvalidInventoryItemContextException(inner), + crate::error::PutInventoryErrorKind::InvalidItemContentException(inner) => { + Error::InvalidItemContentException(inner) } - crate::error::PutInventoryErrorKind::InvalidTypeNameError(inner) => { - Error::InvalidTypeNameError(inner) + crate::error::PutInventoryErrorKind::InvalidTypeNameException(inner) => { + Error::InvalidTypeNameException(inner) } - crate::error::PutInventoryErrorKind::ItemContentMismatchError(inner) => { - Error::ItemContentMismatchError(inner) + crate::error::PutInventoryErrorKind::ItemContentMismatchException(inner) => { + Error::ItemContentMismatchException(inner) } - crate::error::PutInventoryErrorKind::ItemSizeLimitExceededError(inner) => { - Error::ItemSizeLimitExceededError(inner) + crate::error::PutInventoryErrorKind::ItemSizeLimitExceededException(inner) => { + Error::ItemSizeLimitExceededException(inner) } - crate::error::PutInventoryErrorKind::SubTypeCountLimitExceededError(inner) => { - Error::SubTypeCountLimitExceededError(inner) + crate::error::PutInventoryErrorKind::SubTypeCountLimitExceededException(inner) => { + Error::SubTypeCountLimitExceededException(inner) } - crate::error::PutInventoryErrorKind::TotalSizeLimitExceededError(inner) => { - Error::TotalSizeLimitExceededError(inner) + crate::error::PutInventoryErrorKind::TotalSizeLimitExceededException(inner) => { + Error::TotalSizeLimitExceededException(inner) } - crate::error::PutInventoryErrorKind::UnsupportedInventoryItemContextError( + crate::error::PutInventoryErrorKind::UnsupportedInventoryItemContextException( inner, - ) => Error::UnsupportedInventoryItemContextError(inner), - crate::error::PutInventoryErrorKind::UnsupportedInventorySchemaVersionError( + ) => Error::UnsupportedInventoryItemContextException(inner), + crate::error::PutInventoryErrorKind::UnsupportedInventorySchemaVersionException( inner, - ) => Error::UnsupportedInventorySchemaVersionError(inner), + ) => Error::UnsupportedInventorySchemaVersionException(inner), crate::error::PutInventoryErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, _ => Error::Unhandled(err.into()), @@ -2525,29 +2511,29 @@ impl From> for Er fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::PutParameterErrorKind::HierarchyLevelLimitExceededError(inner) => { - Error::HierarchyLevelLimitExceededError(inner) - } - crate::error::PutParameterErrorKind::HierarchyTypeMismatchError(inner) => { - Error::HierarchyTypeMismatchError(inner) + crate::error::PutParameterErrorKind::HierarchyLevelLimitExceededException( + inner, + ) => Error::HierarchyLevelLimitExceededException(inner), + crate::error::PutParameterErrorKind::HierarchyTypeMismatchException(inner) => { + Error::HierarchyTypeMismatchException(inner) } - crate::error::PutParameterErrorKind::IncompatiblePolicyError(inner) => { - Error::IncompatiblePolicyError(inner) + crate::error::PutParameterErrorKind::IncompatiblePolicyException(inner) => { + Error::IncompatiblePolicyException(inner) } crate::error::PutParameterErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::PutParameterErrorKind::InvalidAllowedPatternError(inner) => { - Error::InvalidAllowedPatternError(inner) + crate::error::PutParameterErrorKind::InvalidAllowedPatternException(inner) => { + Error::InvalidAllowedPatternException(inner) } crate::error::PutParameterErrorKind::InvalidKeyId(inner) => { Error::InvalidKeyId(inner) } - crate::error::PutParameterErrorKind::InvalidPolicyAttributeError(inner) => { - Error::InvalidPolicyAttributeError(inner) + crate::error::PutParameterErrorKind::InvalidPolicyAttributeException(inner) => { + Error::InvalidPolicyAttributeException(inner) } - crate::error::PutParameterErrorKind::InvalidPolicyTypeError(inner) => { - Error::InvalidPolicyTypeError(inner) + crate::error::PutParameterErrorKind::InvalidPolicyTypeException(inner) => { + Error::InvalidPolicyTypeException(inner) } crate::error::PutParameterErrorKind::ParameterAlreadyExists(inner) => { Error::ParameterAlreadyExists(inner) @@ -2558,11 +2544,11 @@ impl From> for Er crate::error::PutParameterErrorKind::ParameterMaxVersionLimitExceeded(inner) => { Error::ParameterMaxVersionLimitExceeded(inner) } - crate::error::PutParameterErrorKind::ParameterPatternMismatchError(inner) => { - Error::ParameterPatternMismatchError(inner) + crate::error::PutParameterErrorKind::ParameterPatternMismatchException(inner) => { + Error::ParameterPatternMismatchException(inner) } - crate::error::PutParameterErrorKind::PoliciesLimitExceededError(inner) => { - Error::PoliciesLimitExceededError(inner) + crate::error::PutParameterErrorKind::PoliciesLimitExceededException(inner) => { + Error::PoliciesLimitExceededException(inner) } crate::error::PutParameterErrorKind::TooManyUpdates(inner) => { Error::TooManyUpdates(inner) @@ -2584,9 +2570,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::RegisterDefaultPatchBaselineErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) - } + crate::error::RegisterDefaultPatchBaselineErrorKind::DoesNotExistException( + inner, + ) => Error::DoesNotExistException(inner), crate::error::RegisterDefaultPatchBaselineErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } @@ -2609,11 +2595,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsError(inner) => Error::AlreadyExistsError(inner), - crate::error::RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner), + crate::error::RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(inner) => Error::InvalidResourceId(inner), - crate::error::RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededError(inner) => Error::ResourceLimitExceededError(inner), + crate::error::RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner), crate::error::RegisterPatchBaselineForPatchGroupErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2628,10 +2614,10 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), + crate::error::RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), crate::error::RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(inner) => Error::IdempotentParameterMismatch(inner), crate::error::RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededError(inner) => Error::ResourceLimitExceededError(inner), + crate::error::RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner), crate::error::RegisterTargetWithMaintenanceWindowErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2646,11 +2632,11 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistError(inner) => Error::DoesNotExistError(inner), - crate::error::RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableError(inner) => Error::FeatureNotAvailableError(inner), + crate::error::RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistException(inner) => Error::DoesNotExistException(inner), + crate::error::RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableException(inner) => Error::FeatureNotAvailableException(inner), crate::error::RegisterTaskWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(inner) => Error::IdempotentParameterMismatch(inner), crate::error::RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededError(inner) => Error::ResourceLimitExceededError(inner), + crate::error::RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededException(inner) => Error::ResourceLimitExceededException(inner), crate::error::RegisterTaskWithMaintenanceWindowErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2706,8 +2692,8 @@ impl From> for E fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::ResumeSessionErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::ResumeSessionErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::ResumeSessionErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -2721,23 +2707,13 @@ impl From> for E impl From> for Error { fn from(err: smithy_http::result::SdkError) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::SendAutomationSignalErrorKind::AutomationExecutionNotFoundError( - inner, - ) => Error::AutomationExecutionNotFoundError(inner), - crate::error::SendAutomationSignalErrorKind::AutomationStepNotFoundError(inner) => { - Error::AutomationStepNotFoundError(inner) - } - crate::error::SendAutomationSignalErrorKind::InternalServerError(inner) => { - Error::InternalServerError(inner) - } - crate::error::SendAutomationSignalErrorKind::InvalidAutomationSignalError( - inner, - ) => Error::InvalidAutomationSignalError(inner), - crate::error::SendAutomationSignalErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::SendAutomationSignalErrorKind::AutomationExecutionNotFoundException(inner) => Error::AutomationExecutionNotFoundException(inner), + crate::error::SendAutomationSignalErrorKind::AutomationStepNotFoundException(inner) => Error::AutomationStepNotFoundException(inner), + crate::error::SendAutomationSignalErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), + crate::error::SendAutomationSignalErrorKind::InvalidAutomationSignalException(inner) => Error::InvalidAutomationSignalException(inner), + crate::error::SendAutomationSignalErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -2807,12 +2783,12 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundError(inner) => Error::AutomationDefinitionNotFoundError(inner), - crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundError(inner) => Error::AutomationDefinitionVersionNotFoundError(inner), - crate::error::StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededError(inner) => Error::AutomationExecutionLimitExceededError(inner), + crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundException(inner) => Error::AutomationDefinitionNotFoundException(inner), + crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundException(inner) => Error::AutomationDefinitionVersionNotFoundException(inner), + crate::error::StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededException(inner) => Error::AutomationExecutionLimitExceededException(inner), crate::error::StartAutomationExecutionErrorKind::IdempotentParameterMismatch(inner) => Error::IdempotentParameterMismatch(inner), crate::error::StartAutomationExecutionErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersError(inner) => Error::InvalidAutomationExecutionParametersError(inner), + crate::error::StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersException(inner) => Error::InvalidAutomationExecutionParametersException(inner), crate::error::StartAutomationExecutionErrorKind::InvalidTarget(inner) => Error::InvalidTarget(inner), crate::error::StartAutomationExecutionErrorKind::Unhandled(inner) => Error::Unhandled(inner), } @@ -2826,13 +2802,13 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedError(inner) => Error::AutomationDefinitionNotApprovedError(inner), - crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundError(inner) => Error::AutomationDefinitionNotFoundError(inner), - crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundError(inner) => Error::AutomationDefinitionVersionNotFoundError(inner), - crate::error::StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededError(inner) => Error::AutomationExecutionLimitExceededError(inner), + crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException(inner) => Error::AutomationDefinitionNotApprovedException(inner), + crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException(inner) => Error::AutomationDefinitionNotFoundException(inner), + crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException(inner) => Error::AutomationDefinitionVersionNotFoundException(inner), + crate::error::StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException(inner) => Error::AutomationExecutionLimitExceededException(inner), crate::error::StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch(inner) => Error::IdempotentParameterMismatch(inner), crate::error::StartChangeRequestExecutionErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersError(inner) => Error::InvalidAutomationExecutionParametersError(inner), + crate::error::StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException(inner) => Error::InvalidAutomationExecutionParametersException(inner), crate::error::StartChangeRequestExecutionErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2864,9 +2840,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::StopAutomationExecutionErrorKind::AutomationExecutionNotFoundError(inner) => Error::AutomationExecutionNotFoundError(inner), + crate::error::StopAutomationExecutionErrorKind::AutomationExecutionNotFoundException(inner) => Error::AutomationExecutionNotFoundException(inner), crate::error::StopAutomationExecutionErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateError(inner) => Error::InvalidAutomationStatusUpdateError(inner), + crate::error::StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateException(inner) => Error::InvalidAutomationStatusUpdateException(inner), crate::error::StopAutomationExecutionErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -2877,8 +2853,8 @@ impl From> fo fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::TerminateSessionErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::TerminateSessionErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::TerminateSessionErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -3085,8 +3061,8 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMaintenanceWindowErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::UpdateMaintenanceWindowErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::UpdateMaintenanceWindowErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -3107,9 +3083,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMaintenanceWindowTargetErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) - } + crate::error::UpdateMaintenanceWindowTargetErrorKind::DoesNotExistException( + inner, + ) => Error::DoesNotExistException(inner), crate::error::UpdateMaintenanceWindowTargetErrorKind::InternalServerError( inner, ) => Error::InternalServerError(inner), @@ -3127,9 +3103,9 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdateMaintenanceWindowTaskErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) - } + crate::error::UpdateMaintenanceWindowTaskErrorKind::DoesNotExistException( + inner, + ) => Error::DoesNotExistException(inner), crate::error::UpdateMaintenanceWindowTaskErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } @@ -3168,17 +3144,17 @@ impl From> for E crate::error::UpdateOpsItemErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateOpsItemErrorKind::OpsItemAlreadyExistsError(inner) => { - Error::OpsItemAlreadyExistsError(inner) + crate::error::UpdateOpsItemErrorKind::OpsItemAlreadyExistsException(inner) => { + Error::OpsItemAlreadyExistsException(inner) } - crate::error::UpdateOpsItemErrorKind::OpsItemInvalidParameterError(inner) => { - Error::OpsItemInvalidParameterError(inner) + crate::error::UpdateOpsItemErrorKind::OpsItemInvalidParameterException(inner) => { + Error::OpsItemInvalidParameterException(inner) } - crate::error::UpdateOpsItemErrorKind::OpsItemLimitExceededError(inner) => { - Error::OpsItemLimitExceededError(inner) + crate::error::UpdateOpsItemErrorKind::OpsItemLimitExceededException(inner) => { + Error::OpsItemLimitExceededException(inner) } - crate::error::UpdateOpsItemErrorKind::OpsItemNotFoundError(inner) => { - Error::OpsItemNotFoundError(inner) + crate::error::UpdateOpsItemErrorKind::OpsItemNotFoundException(inner) => { + Error::OpsItemNotFoundException(inner) } crate::error::UpdateOpsItemErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -3193,18 +3169,18 @@ impl From> f crate::error::UpdateOpsMetadataErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) } - crate::error::UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError( + crate::error::UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException( inner, - ) => Error::OpsMetadataInvalidArgumentError(inner), - crate::error::UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededError( + ) => Error::OpsMetadataInvalidArgumentException(inner), + crate::error::UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededException( inner, - ) => Error::OpsMetadataKeyLimitExceededError(inner), - crate::error::UpdateOpsMetadataErrorKind::OpsMetadataNotFoundError(inner) => { - Error::OpsMetadataNotFoundError(inner) - } - crate::error::UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(inner) => { - Error::OpsMetadataTooManyUpdatesError(inner) + ) => Error::OpsMetadataKeyLimitExceededException(inner), + crate::error::UpdateOpsMetadataErrorKind::OpsMetadataNotFoundException(inner) => { + Error::OpsMetadataNotFoundException(inner) } + crate::error::UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException( + inner, + ) => Error::OpsMetadataTooManyUpdatesException(inner), crate::error::UpdateOpsMetadataErrorKind::Unhandled(inner) => { Error::Unhandled(inner) } @@ -3217,8 +3193,8 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::UpdatePatchBaselineErrorKind::DoesNotExistError(inner) => { - Error::DoesNotExistError(inner) + crate::error::UpdatePatchBaselineErrorKind::DoesNotExistException(inner) => { + Error::DoesNotExistException(inner) } crate::error::UpdatePatchBaselineErrorKind::InternalServerError(inner) => { Error::InternalServerError(inner) @@ -3236,9 +3212,9 @@ impl From match err.kind { crate::error::UpdateResourceDataSyncErrorKind::InternalServerError(inner) => Error::InternalServerError(inner), - crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictError(inner) => Error::ResourceDataSyncConflictError(inner), - crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(inner) => Error::ResourceDataSyncInvalidConfigurationError(inner), - crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(inner) => Error::ResourceDataSyncNotFoundError(inner), + crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictException(inner) => Error::ResourceDataSyncConflictException(inner), + crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException(inner) => Error::ResourceDataSyncInvalidConfigurationException(inner), + crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundException(inner) => Error::ResourceDataSyncNotFoundException(inner), crate::error::UpdateResourceDataSyncErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), diff --git a/sdk/ssm/src/input.rs b/sdk/ssm/src/input.rs index 3fb07cac4de8..97fbdfa28caa 100644 --- a/sdk/ssm/src/input.rs +++ b/sdk/ssm/src/input.rs @@ -1,4 +1,5 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +use std::fmt::Write; /// See [`AddTagsToResourceInput`](crate::input::AddTagsToResourceInput) pub mod add_tags_to_resource_input { /// A builder for [`AddTagsToResourceInput`](crate::input::AddTagsToResourceInput) @@ -143,15 +144,27 @@ impl AddTagsToResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.AddTagsToResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.AddTagsToResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -311,15 +324,27 @@ impl AssociateOpsItemRelatedItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.AssociateOpsItemRelatedItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.AssociateOpsItemRelatedItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -443,15 +468,27 @@ impl CancelCommandInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CancelCommand")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CancelCommand"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -569,15 +606,27 @@ impl CancelMaintenanceWindowExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CancelMaintenanceWindowExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CancelMaintenanceWindowExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -765,15 +814,27 @@ impl CreateActivationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateActivation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateActivation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1165,15 +1226,27 @@ impl CreateAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1294,15 +1367,27 @@ impl CreateAssociationBatchInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateAssociationBatch")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateAssociationBatch"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1582,15 +1667,27 @@ impl CreateDocumentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateDocument")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateDocument"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -1854,15 +1951,27 @@ impl CreateMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateMaintenanceWindow")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateMaintenanceWindow"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2176,15 +2285,27 @@ impl CreateOpsItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateOpsItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateOpsItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2333,15 +2454,27 @@ impl CreateOpsMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateOpsMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateOpsMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2647,15 +2780,27 @@ impl CreatePatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreatePatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreatePatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2815,15 +2960,27 @@ impl CreateResourceDataSyncInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.CreateResourceDataSync")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.CreateResourceDataSync"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -2936,15 +3093,27 @@ impl DeleteActivationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteActivation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteActivation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3080,15 +3249,27 @@ impl DeleteAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3239,15 +3420,27 @@ impl DeleteDocumentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteDocument")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteDocument"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3411,15 +3604,27 @@ impl DeleteInventoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteInventory")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteInventory"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3531,15 +3736,27 @@ impl DeleteMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteMaintenanceWindow")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteMaintenanceWindow"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3653,15 +3870,27 @@ impl DeleteOpsMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteOpsMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteOpsMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3769,15 +3998,27 @@ impl DeleteParameterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteParameter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteParameter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -3889,15 +4130,27 @@ impl DeleteParametersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteParameters")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteParameters"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4008,15 +4261,27 @@ impl DeletePatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeletePatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeletePatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4138,15 +4403,27 @@ impl DeleteResourceDataSyncInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeleteResourceDataSync")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeleteResourceDataSync"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4259,15 +4536,27 @@ impl DeregisterManagedInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DeregisterManagedInstance")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DeregisterManagedInstance"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4390,18 +4679,30 @@ impl DeregisterPatchBaselineForPatchGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DeregisterPatchBaselineForPatchGroup", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DeregisterPatchBaselineForPatchGroup", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4540,18 +4841,30 @@ impl DeregisterTargetFromMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DeregisterTargetFromMaintenanceWindow", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DeregisterTargetFromMaintenanceWindow", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4681,18 +4994,30 @@ impl DeregisterTaskFromMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DeregisterTaskFromMaintenanceWindow", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DeregisterTaskFromMaintenanceWindow", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4834,15 +5159,27 @@ impl DescribeActivationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeActivations")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeActivations"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -4995,15 +5332,27 @@ impl DescribeAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5161,15 +5510,27 @@ impl DescribeAssociationExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeAssociationExecutions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeAssociationExecutions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5343,18 +5704,30 @@ impl DescribeAssociationExecutionTargetsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeAssociationExecutionTargets", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeAssociationExecutionTargets", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5499,15 +5872,27 @@ impl DescribeAutomationExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeAutomationExecutions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeAutomationExecutions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5676,15 +6061,27 @@ impl DescribeAutomationStepExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeAutomationStepExecutions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeAutomationStepExecutions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5824,15 +6221,27 @@ impl DescribeAvailablePatchesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeAvailablePatches")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeAvailablePatches"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -5970,15 +6379,27 @@ impl DescribeDocumentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeDocument")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeDocument"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6130,15 +6551,27 @@ impl DescribeDocumentPermissionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeDocumentPermission")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeDocumentPermission"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6278,18 +6711,30 @@ impl DescribeEffectiveInstanceAssociationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeEffectiveInstanceAssociations", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeEffectiveInstanceAssociations", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6426,18 +6871,30 @@ impl DescribeEffectivePatchesForPatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeEffectivePatchesForPatchBaseline", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeEffectivePatchesForPatchBaseline", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6576,18 +7033,30 @@ impl DescribeInstanceAssociationsStatusInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeInstanceAssociationsStatus", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeInstanceAssociationsStatus", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6753,15 +7222,27 @@ impl DescribeInstanceInformationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeInstanceInformation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeInstanceInformation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -6912,15 +7393,27 @@ impl DescribeInstancePatchesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeInstancePatches")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeInstancePatches"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7060,15 +7553,27 @@ impl DescribeInstancePatchStatesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeInstancePatchStates")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeInstancePatchStates"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7222,18 +7727,30 @@ impl DescribeInstancePatchStatesForPatchGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeInstancePatchStatesForPatchGroup", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeInstancePatchStatesForPatchGroup", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7371,15 +7888,27 @@ impl DescribeInventoryDeletionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeInventoryDeletions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeInventoryDeletions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7535,18 +8064,30 @@ impl DescribeMaintenanceWindowExecutionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeMaintenanceWindowExecutions", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeMaintenanceWindowExecutions", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7714,18 +8255,30 @@ impl DescribeMaintenanceWindowExecutionTaskInvocationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -7882,18 +8435,30 @@ impl DescribeMaintenanceWindowExecutionTasksInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeMaintenanceWindowExecutionTasks", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeMaintenanceWindowExecutionTasks", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8035,15 +8600,27 @@ impl DescribeMaintenanceWindowsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeMaintenanceWindows")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindows"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8227,18 +8804,30 @@ impl DescribeMaintenanceWindowScheduleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeMaintenanceWindowSchedule", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeMaintenanceWindowSchedule", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8396,18 +8985,30 @@ impl DescribeMaintenanceWindowsForTargetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.DescribeMaintenanceWindowsForTarget", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.DescribeMaintenanceWindowsForTarget", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8562,15 +9163,27 @@ impl DescribeMaintenanceWindowTargetsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeMaintenanceWindowTargets")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindowTargets"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8723,15 +9336,27 @@ impl DescribeMaintenanceWindowTasksInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeMaintenanceWindowTasks")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindowTasks"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -8870,15 +9495,27 @@ impl DescribeOpsItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeOpsItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeOpsItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9036,15 +9673,27 @@ impl DescribeParametersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeParameters")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeParameters"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9183,15 +9832,27 @@ impl DescribePatchBaselinesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribePatchBaselines")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribePatchBaselines"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9330,15 +9991,27 @@ impl DescribePatchGroupsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribePatchGroups")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribePatchGroups"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9450,15 +10123,27 @@ impl DescribePatchGroupStateInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribePatchGroupState")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribePatchGroupState"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9623,15 +10308,27 @@ impl DescribePatchPropertiesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribePatchProperties")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribePatchProperties"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9780,15 +10477,27 @@ impl DescribeSessionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DescribeSessions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DescribeSessions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -9917,15 +10626,27 @@ impl DisassociateOpsItemRelatedItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.DisassociateOpsItemRelatedItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.DisassociateOpsItemRelatedItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10041,15 +10762,27 @@ impl GetAutomationExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetAutomationExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetAutomationExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10176,15 +10909,27 @@ impl GetCalendarStateInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetCalendarState")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetCalendarState"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10328,15 +11073,27 @@ impl GetCommandInvocationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetCommandInvocation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetCommandInvocation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10447,15 +11204,27 @@ impl GetConnectionStatusInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetConnectionStatus")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetConnectionStatus"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10570,15 +11339,27 @@ impl GetDefaultPatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetDefaultPatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetDefaultPatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10715,18 +11496,30 @@ impl GetDeployablePatchSnapshotForInstanceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.GetDeployablePatchSnapshotForInstance", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.GetDeployablePatchSnapshotForInstance", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -10874,15 +11667,27 @@ impl GetDocumentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetDocument")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetDocument"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11051,15 +11856,27 @@ impl GetInventoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetInventory")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetInventory"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11219,15 +12036,27 @@ impl GetInventorySchemaInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetInventorySchema")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetInventorySchema"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11338,15 +12167,27 @@ impl GetMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetMaintenanceWindow")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetMaintenanceWindow"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11462,15 +12303,27 @@ impl GetMaintenanceWindowExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetMaintenanceWindowExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetMaintenanceWindowExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11600,18 +12453,30 @@ impl GetMaintenanceWindowExecutionTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.GetMaintenanceWindowExecutionTask", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.GetMaintenanceWindowExecutionTask", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11753,18 +12618,30 @@ impl GetMaintenanceWindowExecutionTaskInvocationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -11891,15 +12768,27 @@ impl GetMaintenanceWindowTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetMaintenanceWindowTask")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetMaintenanceWindowTask"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12005,15 +12894,27 @@ impl GetOpsItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetOpsItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetOpsItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12149,15 +13050,27 @@ impl GetOpsMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetOpsMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetOpsMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12337,15 +13250,27 @@ impl GetOpsSummaryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetOpsSummary")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetOpsSummary"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12463,15 +13388,27 @@ impl GetParameterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetParameter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetParameter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12618,15 +13555,27 @@ impl GetParameterHistoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetParameterHistory")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetParameterHistory"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12751,15 +13700,27 @@ impl GetParametersInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetParameters")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetParameters"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -12946,15 +13907,27 @@ impl GetParametersByPathInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetParametersByPath")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetParametersByPath"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13065,15 +14038,27 @@ impl GetPatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetPatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetPatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13200,15 +14185,27 @@ impl GetPatchBaselineForPatchGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetPatchBaselineForPatchGroup")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetPatchBaselineForPatchGroup"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13351,15 +14348,27 @@ impl GetServiceSettingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.GetServiceSetting")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.GetServiceSetting"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13497,15 +14506,27 @@ impl LabelParameterVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.LabelParameterVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.LabelParameterVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13647,15 +14668,27 @@ impl ListAssociationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListAssociations")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListAssociations"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13793,15 +14826,27 @@ impl ListAssociationVersionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListAssociationVersions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListAssociationVersions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -13974,15 +15019,27 @@ impl ListCommandInvocationsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListCommandInvocations")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListCommandInvocations"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14142,15 +15199,27 @@ impl ListCommandsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListCommands")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListCommands"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14319,15 +15388,27 @@ impl ListComplianceItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListComplianceItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListComplianceItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14468,15 +15549,27 @@ impl ListComplianceSummariesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListComplianceSummaries")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListComplianceSummaries"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14642,15 +15735,27 @@ impl ListDocumentMetadataHistoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListDocumentMetadataHistory")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListDocumentMetadataHistory"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14807,15 +15912,27 @@ impl ListDocumentsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListDocuments")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListDocuments"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -14950,15 +16067,27 @@ impl ListDocumentVersionsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListDocumentVersions")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListDocumentVersions"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15119,15 +16248,27 @@ impl ListInventoryEntriesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListInventoryEntries")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListInventoryEntries"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15265,15 +16406,27 @@ impl ListOpsItemEventsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListOpsItemEvents")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListOpsItemEvents"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15428,15 +16581,27 @@ impl ListOpsItemRelatedItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListOpsItemRelatedItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListOpsItemRelatedItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15573,15 +16738,27 @@ impl ListOpsMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListOpsMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListOpsMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15722,15 +16899,27 @@ impl ListResourceComplianceSummariesInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListResourceComplianceSummaries")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListResourceComplianceSummaries"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -15867,15 +17056,27 @@ impl ListResourceDataSyncInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListResourceDataSync")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListResourceDataSync"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16000,15 +17201,27 @@ impl ListTagsForResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ListTagsForResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ListTagsForResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16180,15 +17393,27 @@ impl ModifyDocumentPermissionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ModifyDocumentPermission")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ModifyDocumentPermission"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16402,15 +17627,27 @@ impl PutComplianceItemsInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.PutComplianceItems")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.PutComplianceItems"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16531,15 +17768,27 @@ impl PutInventoryInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.PutInventory")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.PutInventory"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -16934,15 +18183,27 @@ impl PutParameterInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.PutParameter")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.PutParameter"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17055,15 +18316,27 @@ impl RegisterDefaultPatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.RegisterDefaultPatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.RegisterDefaultPatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17189,18 +18462,30 @@ impl RegisterPatchBaselineForPatchGroupInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.RegisterPatchBaselineForPatchGroup", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.RegisterPatchBaselineForPatchGroup", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17396,18 +18681,30 @@ impl RegisterTargetWithMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.RegisterTargetWithMaintenanceWindow", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.RegisterTargetWithMaintenanceWindow", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17747,18 +19044,30 @@ impl RegisterTaskWithMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header( - "X-Amz-Target", - "AmazonSSM.RegisterTaskWithMaintenanceWindow", - )) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header( + "x-amz-target", + "AmazonSSM.RegisterTaskWithMaintenanceWindow", + ); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -17918,15 +19227,27 @@ impl RemoveTagsFromResourceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.RemoveTagsFromResource")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.RemoveTagsFromResource"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18069,15 +19390,27 @@ impl ResetServiceSettingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ResetServiceSetting")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ResetServiceSetting"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18186,15 +19519,27 @@ impl ResumeSessionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.ResumeSession")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.ResumeSession"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18346,15 +19691,27 @@ impl SendAutomationSignalInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.SendAutomationSignal")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.SendAutomationSignal"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18719,15 +20076,27 @@ impl SendCommandInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.SendCommand")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.SendCommand"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -18842,15 +20211,27 @@ impl StartAssociationsOnceInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.StartAssociationsOnce")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.StartAssociationsOnce"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19157,15 +20538,27 @@ impl StartAutomationExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.StartAutomationExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.StartAutomationExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19423,15 +20816,27 @@ impl StartChangeRequestExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.StartChangeRequestExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.StartChangeRequestExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19576,15 +20981,27 @@ impl StartSessionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.StartSession")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.StartSession"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19711,15 +21128,27 @@ impl StopAutomationExecutionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.StopAutomationExecution")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.StopAutomationExecution"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19829,15 +21258,27 @@ impl TerminateSessionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.TerminateSession")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.TerminateSession"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -19976,15 +21417,27 @@ impl UnlabelParameterVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UnlabelParameterVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UnlabelParameterVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20387,15 +21840,27 @@ impl UpdateAssociationInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateAssociation")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateAssociation"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20532,15 +21997,27 @@ impl UpdateAssociationStatusInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateAssociationStatus")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateAssociationStatus"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20744,15 +22221,27 @@ impl UpdateDocumentInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateDocument")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateDocument"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -20879,15 +22368,27 @@ impl UpdateDocumentDefaultVersionInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateDocumentDefaultVersion")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateDocumentDefaultVersion"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21026,15 +22527,27 @@ impl UpdateDocumentMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateDocumentMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateDocumentMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21300,15 +22813,27 @@ impl UpdateMaintenanceWindowInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateMaintenanceWindow")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindow"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21500,15 +23025,27 @@ impl UpdateMaintenanceWindowTargetInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateMaintenanceWindowTarget")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindowTarget"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21858,15 +23395,27 @@ impl UpdateMaintenanceWindowTaskInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateMaintenanceWindowTask")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindowTask"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -21990,15 +23539,27 @@ impl UpdateManagedInstanceRoleInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateManagedInstanceRole")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateManagedInstanceRole"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22311,15 +23872,27 @@ impl UpdateOpsItemInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateOpsItem")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateOpsItem"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22471,15 +24044,27 @@ impl UpdateOpsMetadataInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateOpsMetadata")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateOpsMetadata"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22762,15 +24347,27 @@ impl UpdatePatchBaselineInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdatePatchBaseline")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdatePatchBaseline"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -22907,15 +24504,27 @@ impl UpdateResourceDataSyncInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateResourceDataSync")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateResourceDataSync"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, @@ -23096,15 +24705,27 @@ impl UpdateServiceSettingInput { op }) } + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + &self, + builder: http::request::Builder, + ) -> std::result::Result { + let mut uri = String::new(); + self.uri_base(&mut uri)?; + Ok(builder.method("POST").uri(uri)) + } #[allow(clippy::unnecessary_wraps)] fn request_builder_base( &self, ) -> std::result::Result { let builder = http::request::Builder::new(); - Ok(builder - .method("POST") - .header("Content-Type", "application/x-amz-json-1.1") - .header("X-Amz-Target", "AmazonSSM.UpdateServiceSetting")) + let builder = builder.header("Content-Type", "application/x-amz-json-1.1"); + let builder = builder.header("x-amz-target", "AmazonSSM.UpdateServiceSetting"); + self.update_http_builder(builder) } fn assemble( mut builder: http::request::Builder, diff --git a/sdk/ssm/src/instant_epoch.rs b/sdk/ssm/src/instant_epoch.rs deleted file mode 100644 index 9145f8004d47..000000000000 --- a/sdk/ssm/src/instant_epoch.rs +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use smithy_types::Instant; - -pub struct InstantEpoch(pub Instant); - -impl Serialize for InstantEpoch { - fn serialize(&self, serializer: S) -> Result<::Ok, ::Error> - where - S: Serializer, - { - if self.0.has_nanos() { - serializer.serialize_f64(self.0.epoch_fractional_seconds()) - } else { - serializer.serialize_i64(self.0.epoch_seconds()) - } - } -} - -impl<'de> Deserialize<'de> for InstantEpoch { - fn deserialize(deserializer: D) -> Result>::Error> - where - D: Deserializer<'de>, - { - let ts = f64::deserialize(deserializer)?; - Ok(InstantEpoch(Instant::from_f64(ts))) - } -} diff --git a/sdk/ssm/src/json_deser.rs b/sdk/ssm/src/json_deser.rs index d981605e0bbc..64c5c145d771 100644 --- a/sdk/ssm/src/json_deser.rs +++ b/sdk/ssm/src/json_deser.rs @@ -1,2252 +1,25556 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn associate_ops_item_related_item_deser_operation( - input: &[u8], - mut builder: crate::output::associate_ops_item_related_item_output::Builder, -) -> std::result::Result< - crate::output::associate_ops_item_related_item_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::AssociateOpsItemRelatedItemOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_id(parsed_body.association_id); - Ok(builder) +pub fn parse_generic_error( + response: &http::Response, +) -> Result { + crate::json_errors::parse_generic_error(response) } -pub fn cancel_maintenance_window_execution_deser_operation( +pub fn deser_structure_internal_server_errorjson_err( input: &[u8], - mut builder: crate::output::cancel_maintenance_window_execution_output::Builder, -) -> std::result::Result< - crate::output::cancel_maintenance_window_execution_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::CancelMaintenanceWindowExecutionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_execution_id(parsed_body.window_execution_id); + mut builder: crate::error::internal_server_error::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_activation_deser_operation( +pub fn deser_structure_too_many_updatesjson_err( input: &[u8], - mut builder: crate::output::create_activation_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateActivationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_activation_id(parsed_body.activation_id); - builder = builder.set_activation_code(parsed_body.activation_code); + mut builder: crate::error::too_many_updates::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_association_deser_operation( +pub fn deser_structure_ops_item_invalid_parameter_exceptionjson_err( input: &[u8], - mut builder: crate::output::create_association_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateAssociationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_description(parsed_body.association_description); + mut builder: crate::error::ops_item_invalid_parameter_exception::Builder, +) -> Result< + crate::error::ops_item_invalid_parameter_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ParameterNames" => { + builder = builder.set_parameter_names( + crate::json_deser::deser_list_ops_item_parameter_names_list(tokens)?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_association_batch_deser_operation( +pub fn deser_structure_ops_item_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::output::create_association_batch_output::Builder, -) -> std::result::Result + mut builder: crate::error::ops_item_limit_exceeded_exception::Builder, +) -> Result { - let parsed_body: crate::serializer::CreateAssociationBatchOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_successful(parsed_body.successful); - builder = builder.set_failed(parsed_body.failed); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourceTypes" => { + builder = builder.set_resource_types( + crate::json_deser::deser_list_ops_item_parameter_names_list(tokens)?, + ); + } + "Limit" => { + builder = builder.set_limit( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "LimitType" => { + builder = builder.set_limit_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_document_deser_operation( +pub fn deser_structure_ops_item_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::output::create_document_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateDocumentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_document_description(parsed_body.document_description); + mut builder: crate::error::ops_item_not_found_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_maintenance_window_deser_operation( +pub fn deser_structure_ops_item_related_item_already_exists_exceptionjson_err( input: &[u8], - mut builder: crate::output::create_maintenance_window_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::CreateMaintenanceWindowOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); + mut builder: crate::error::ops_item_related_item_already_exists_exception::Builder, +) -> Result< + crate::error::ops_item_related_item_already_exists_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceUri" => { + builder = builder.set_resource_uri( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_ops_item_deser_operation( +pub fn deser_operation_associate_ops_item_related_item( input: &[u8], - mut builder: crate::output::create_ops_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateOpsItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ops_item_id(parsed_body.ops_item_id); + mut builder: crate::output::associate_ops_item_related_item_output::Builder, +) -> Result< + crate::output::associate_ops_item_related_item_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_ops_metadata_deser_operation( +pub fn deser_structure_invalid_instance_idjson_err( input: &[u8], - mut builder: crate::output::create_ops_metadata_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreateOpsMetadataOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ops_metadata_arn(parsed_body.ops_metadata_arn); + mut builder: crate::error::invalid_instance_id::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn create_patch_baseline_deser_operation( +pub fn deser_structure_does_not_exist_exceptionjson_err( input: &[u8], - mut builder: crate::output::create_patch_baseline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::CreatePatchBaselineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); + mut builder: crate::error::does_not_exist_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_inventory_deser_operation( +pub fn deser_operation_cancel_maintenance_window_execution( input: &[u8], - mut builder: crate::output::delete_inventory_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteInventoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deletion_id(parsed_body.deletion_id); - builder = builder.set_type_name(parsed_body.type_name); - builder = builder.set_deletion_summary(parsed_body.deletion_summary); + mut builder: crate::output::cancel_maintenance_window_execution_output::Builder, +) -> Result< + crate::output::cancel_maintenance_window_execution_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_maintenance_window_deser_operation( +pub fn deser_operation_create_activation( input: &[u8], - mut builder: crate::output::delete_maintenance_window_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DeleteMaintenanceWindowOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); + mut builder: crate::output::create_activation_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActivationId" => { + builder = builder.set_activation_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActivationCode" => { + builder = builder.set_activation_code( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_parameters_deser_operation( +pub fn deser_structure_invalid_documentjson_err( input: &[u8], - mut builder: crate::output::delete_parameters_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeleteParametersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_deleted_parameters(parsed_body.deleted_parameters); - builder = builder.set_invalid_parameters(parsed_body.invalid_parameters); + mut builder: crate::error::invalid_document::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn delete_patch_baseline_deser_operation( +pub fn deser_structure_invalid_document_versionjson_err( input: &[u8], - mut builder: crate::output::delete_patch_baseline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DeletePatchBaselineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); + mut builder: crate::error::invalid_document_version::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn deregister_patch_baseline_for_patch_group_deser_operation( +pub fn deser_structure_invalid_parametersjson_err( input: &[u8], - mut builder: crate::output::deregister_patch_baseline_for_patch_group_output::Builder, -) -> std::result::Result< - crate::output::deregister_patch_baseline_for_patch_group_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DeregisterPatchBaselineForPatchGroupOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_patch_group(parsed_body.patch_group); + mut builder: crate::error::invalid_parameters::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn deregister_target_from_maintenance_window_deser_operation( +pub fn deser_structure_invalid_schedulejson_err( input: &[u8], - mut builder: crate::output::deregister_target_from_maintenance_window_output::Builder, -) -> std::result::Result< - crate::output::deregister_target_from_maintenance_window_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DeregisterTargetFromMaintenanceWindowOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_window_target_id(parsed_body.window_target_id); + mut builder: crate::error::invalid_schedule::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn deregister_task_from_maintenance_window_deser_operation( +pub fn deser_structure_invalid_targetjson_err( input: &[u8], - mut builder: crate::output::deregister_task_from_maintenance_window_output::Builder, -) -> std::result::Result< - crate::output::deregister_task_from_maintenance_window_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DeregisterTaskFromMaintenanceWindowOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_window_task_id(parsed_body.window_task_id); + mut builder: crate::error::invalid_target::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_activations_deser_operation( +pub fn deser_structure_unsupported_platform_typejson_err( input: &[u8], - mut builder: crate::output::describe_activations_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeActivationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_activation_list(parsed_body.activation_list); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::unsupported_platform_type::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_association_deser_operation( +pub fn deser_operation_create_association( input: &[u8], - mut builder: crate::output::describe_association_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeAssociationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_description(parsed_body.association_description); + mut builder: crate::output::create_association_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationDescription" => { + builder = builder.set_association_description( + crate::json_deser::deser_structure_association_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_association_executions_deser_operation( +pub fn deser_operation_create_association_batch( input: &[u8], - mut builder: crate::output::describe_association_executions_output::Builder, -) -> std::result::Result< - crate::output::describe_association_executions_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeAssociationExecutionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_executions(parsed_body.association_executions); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_association_batch_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Successful" => { + builder = builder.set_successful( + crate::json_deser::deser_list_association_description_list(tokens)?, + ); + } + "Failed" => { + builder = builder.set_failed( + crate::json_deser::deser_list_failed_create_association_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_association_execution_targets_deser_operation( +pub fn deser_structure_document_already_existsjson_err( input: &[u8], - mut builder: crate::output::describe_association_execution_targets_output::Builder, -) -> std::result::Result< - crate::output::describe_association_execution_targets_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeAssociationExecutionTargetsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_execution_targets(parsed_body.association_execution_targets); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::document_already_exists::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_automation_executions_deser_operation( +pub fn deser_structure_document_limit_exceededjson_err( input: &[u8], - mut builder: crate::output::describe_automation_executions_output::Builder, -) -> std::result::Result< - crate::output::describe_automation_executions_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeAutomationExecutionsOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_automation_execution_metadata_list(parsed_body.automation_execution_metadata_list); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::document_limit_exceeded::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_automation_step_executions_deser_operation( +pub fn deser_structure_invalid_document_contentjson_err( input: &[u8], - mut builder: crate::output::describe_automation_step_executions_output::Builder, -) -> std::result::Result< - crate::output::describe_automation_step_executions_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeAutomationStepExecutionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_step_executions(parsed_body.step_executions); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_document_content::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_available_patches_deser_operation( +pub fn deser_structure_invalid_document_schema_versionjson_err( input: &[u8], - mut builder: crate::output::describe_available_patches_output::Builder, -) -> std::result::Result + mut builder: crate::error::invalid_document_schema_version::Builder, +) -> Result { - let parsed_body: crate::serializer::DescribeAvailablePatchesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_patches(parsed_body.patches); - builder = builder.set_next_token(parsed_body.next_token); - Ok(builder) -} - -pub fn describe_document_deser_operation( - input: &[u8], - mut builder: crate::output::describe_document_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeDocumentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_document(parsed_body.document); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_document_permission_deser_operation( +pub fn deser_structure_max_document_size_exceededjson_err( input: &[u8], - mut builder: crate::output::describe_document_permission_output::Builder, -) -> std::result::Result< - crate::output::describe_document_permission_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeDocumentPermissionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_account_ids(parsed_body.account_ids); - builder = builder.set_account_sharing_info_list(parsed_body.account_sharing_info_list); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::max_document_size_exceeded::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_effective_instance_associations_deser_operation( +pub fn deser_operation_create_document( input: &[u8], - mut builder: crate::output::describe_effective_instance_associations_output::Builder, -) -> std::result::Result< - crate::output::describe_effective_instance_associations_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeEffectiveInstanceAssociationsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_associations(parsed_body.associations); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_document_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentDescription" => { + builder = builder.set_document_description( + crate::json_deser::deser_structure_document_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_effective_patches_for_patch_baseline_deser_operation( +pub fn deser_structure_idempotent_parameter_mismatchjson_err( input: &[u8], - mut builder: crate::output::describe_effective_patches_for_patch_baseline_output::Builder, -) -> std::result::Result< - crate::output::describe_effective_patches_for_patch_baseline_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeEffectivePatchesForPatchBaselineOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_effective_patches(parsed_body.effective_patches); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::idempotent_parameter_mismatch::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_instance_associations_status_deser_operation( +pub fn deser_structure_resource_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_instance_associations_status_output::Builder, -) -> std::result::Result< - crate::output::describe_instance_associations_status_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeInstanceAssociationsStatusOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_instance_association_status_infos(parsed_body.instance_association_status_infos); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::resource_limit_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_instance_information_deser_operation( +pub fn deser_operation_create_maintenance_window( input: &[u8], - mut builder: crate::output::describe_instance_information_output::Builder, -) -> std::result::Result< - crate::output::describe_instance_information_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeInstanceInformationOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_instance_information_list(parsed_body.instance_information_list); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_maintenance_window_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_instance_patches_deser_operation( +pub fn deser_structure_ops_item_already_exists_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_instance_patches_output::Builder, -) -> std::result::Result + mut builder: crate::error::ops_item_already_exists_exception::Builder, +) -> Result { - let parsed_body: crate::serializer::DescribeInstancePatchesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_patches(parsed_body.patches); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_instance_patch_states_deser_operation( +pub fn deser_operation_create_ops_item( input: &[u8], - mut builder: crate::output::describe_instance_patch_states_output::Builder, -) -> std::result::Result< - crate::output::describe_instance_patch_states_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeInstancePatchStatesOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_instance_patch_states(parsed_body.instance_patch_states); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_ops_item_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_instance_patch_states_for_patch_group_deser_operation( +pub fn deser_structure_ops_metadata_already_exists_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_instance_patch_states_for_patch_group_output::Builder, -) -> std::result::Result< - crate::output::describe_instance_patch_states_for_patch_group_output::Builder, - serde_json::Error, + mut builder: crate::error::ops_metadata_already_exists_exception::Builder, +) -> Result< + crate::error::ops_metadata_already_exists_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeInstancePatchStatesForPatchGroupOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_instance_patch_states(parsed_body.instance_patch_states); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_inventory_deletions_deser_operation( +pub fn deser_structure_ops_metadata_invalid_argument_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_inventory_deletions_output::Builder, -) -> std::result::Result< - crate::output::describe_inventory_deletions_output::Builder, - serde_json::Error, + mut builder: crate::error::ops_metadata_invalid_argument_exception::Builder, +) -> Result< + crate::error::ops_metadata_invalid_argument_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeInventoryDeletionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_inventory_deletions(parsed_body.inventory_deletions); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_executions_deser_operation( +pub fn deser_structure_ops_metadata_limit_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_window_executions_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_executions_output::Builder, - serde_json::Error, + mut builder: crate::error::ops_metadata_limit_exceeded_exception::Builder, +) -> Result< + crate::error::ops_metadata_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMaintenanceWindowExecutionsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_executions(parsed_body.window_executions); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_execution_task_invocations_deser_operation( +pub fn deser_structure_ops_metadata_too_many_updates_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_window_execution_task_invocations_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_execution_task_invocations_output::Builder, - serde_json::Error, + mut builder: crate::error::ops_metadata_too_many_updates_exception::Builder, +) -> Result< + crate::error::ops_metadata_too_many_updates_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMaintenanceWindowExecutionTaskInvocationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_execution_task_invocation_identities( - parsed_body.window_execution_task_invocation_identities, - ); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_execution_tasks_deser_operation( +pub fn deser_operation_create_ops_metadata( input: &[u8], - mut builder: crate::output::describe_maintenance_window_execution_tasks_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_execution_tasks_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeMaintenanceWindowExecutionTasksOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = - builder.set_window_execution_task_identities(parsed_body.window_execution_task_identities); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_ops_metadata_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsMetadataArn" => { + builder = builder.set_ops_metadata_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_windows_deser_operation( +pub fn deser_operation_create_patch_baseline( input: &[u8], - mut builder: crate::output::describe_maintenance_windows_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_windows_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeMaintenanceWindowsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_identities(parsed_body.window_identities); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::create_patch_baseline_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_schedule_deser_operation( +pub fn deser_structure_resource_data_sync_already_exists_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_window_schedule_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_schedule_output::Builder, - serde_json::Error, + mut builder: crate::error::resource_data_sync_already_exists_exception::Builder, +) -> Result< + crate::error::resource_data_sync_already_exists_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMaintenanceWindowScheduleOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_scheduled_window_executions(parsed_body.scheduled_window_executions); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SyncName" => { + builder = builder.set_sync_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_windows_for_target_deser_operation( +pub fn deser_structure_resource_data_sync_count_exceeded_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_windows_for_target_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_windows_for_target_output::Builder, - serde_json::Error, + mut builder: crate::error::resource_data_sync_count_exceeded_exception::Builder, +) -> Result< + crate::error::resource_data_sync_count_exceeded_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMaintenanceWindowsForTargetOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_identities(parsed_body.window_identities); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_targets_deser_operation( +pub fn deser_structure_resource_data_sync_invalid_configuration_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_window_targets_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_targets_output::Builder, - serde_json::Error, + mut builder: crate::error::resource_data_sync_invalid_configuration_exception::Builder, +) -> Result< + crate::error::resource_data_sync_invalid_configuration_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::DescribeMaintenanceWindowTargetsOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_targets(parsed_body.targets); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_maintenance_window_tasks_deser_operation( +pub fn deser_structure_invalid_activationjson_err( input: &[u8], - mut builder: crate::output::describe_maintenance_window_tasks_output::Builder, -) -> std::result::Result< - crate::output::describe_maintenance_window_tasks_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::DescribeMaintenanceWindowTasksOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tasks(parsed_body.tasks); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_activation::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_ops_items_deser_operation( +pub fn deser_structure_invalid_activation_idjson_err( input: &[u8], - mut builder: crate::output::describe_ops_items_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeOpsItemsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_ops_item_summaries(parsed_body.ops_item_summaries); + mut builder: crate::error::invalid_activation_id::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_parameters_deser_operation( +pub fn deser_structure_association_does_not_existjson_err( input: &[u8], - mut builder: crate::output::describe_parameters_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeParametersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::association_does_not_exist::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_patch_baselines_deser_operation( +pub fn deser_structure_invalid_document_operationjson_err( input: &[u8], - mut builder: crate::output::describe_patch_baselines_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribePatchBaselinesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_identities(parsed_body.baseline_identities); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_document_operation::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_patch_groups_deser_operation( +pub fn deser_structure_invalid_delete_inventory_parameters_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_patch_groups_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribePatchGroupsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_mappings(parsed_body.mappings); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_delete_inventory_parameters_exception::Builder, +) -> Result< + crate::error::invalid_delete_inventory_parameters_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_patch_group_state_deser_operation( - input: &[u8], - mut builder: crate::output::describe_patch_group_state_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribePatchGroupStateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_instances(Some(parsed_body.instances)); - builder = builder - .set_instances_with_installed_patches(Some(parsed_body.instances_with_installed_patches)); - builder = builder.set_instances_with_installed_other_patches(Some( - parsed_body.instances_with_installed_other_patches, - )); - builder = builder.set_instances_with_installed_pending_reboot_patches( - parsed_body.instances_with_installed_pending_reboot_patches, - ); - builder = builder.set_instances_with_installed_rejected_patches( - parsed_body.instances_with_installed_rejected_patches, - ); - builder = builder - .set_instances_with_missing_patches(Some(parsed_body.instances_with_missing_patches)); - builder = - builder.set_instances_with_failed_patches(Some(parsed_body.instances_with_failed_patches)); - builder = builder.set_instances_with_not_applicable_patches(Some( - parsed_body.instances_with_not_applicable_patches, - )); - builder = builder.set_instances_with_unreported_not_applicable_patches( - parsed_body.instances_with_unreported_not_applicable_patches, - ); - builder = builder.set_instances_with_critical_non_compliant_patches( - parsed_body.instances_with_critical_non_compliant_patches, - ); - builder = builder.set_instances_with_security_non_compliant_patches( - parsed_body.instances_with_security_non_compliant_patches, - ); - builder = builder.set_instances_with_other_non_compliant_patches( - parsed_body.instances_with_other_non_compliant_patches, - ); - Ok(builder) -} - -pub fn describe_patch_properties_deser_operation( +pub fn deser_structure_invalid_inventory_request_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_patch_properties_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::DescribePatchPropertiesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_properties(parsed_body.properties); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_inventory_request_exception::Builder, +) -> Result< + crate::error::invalid_inventory_request_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn describe_sessions_deser_operation( +pub fn deser_structure_invalid_option_exceptionjson_err( input: &[u8], - mut builder: crate::output::describe_sessions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::DescribeSessionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_sessions(parsed_body.sessions); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_option_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_automation_execution_deser_operation( +pub fn deser_structure_invalid_type_name_exceptionjson_err( input: &[u8], - mut builder: crate::output::get_automation_execution_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::GetAutomationExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_automation_execution(parsed_body.automation_execution); + mut builder: crate::error::invalid_type_name_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_calendar_state_deser_operation( +pub fn deser_operation_delete_inventory( input: &[u8], - mut builder: crate::output::get_calendar_state_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetCalendarStateOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_state(parsed_body.state); - builder = builder.set_at_time(parsed_body.at_time); - builder = builder.set_next_transition_time(parsed_body.next_transition_time); + mut builder: crate::output::delete_inventory_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeletionId" => { + builder = builder.set_deletion_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeletionSummary" => { + builder = builder.set_deletion_summary( + crate::json_deser::deser_structure_inventory_deletion_summary(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_command_invocation_deser_operation( - input: &[u8], - mut builder: crate::output::get_command_invocation_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetCommandInvocationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_command_id(parsed_body.command_id); - builder = builder.set_instance_id(parsed_body.instance_id); - builder = builder.set_comment(parsed_body.comment); - builder = builder.set_document_name(parsed_body.document_name); - builder = builder.set_document_version(parsed_body.document_version); - builder = builder.set_plugin_name(parsed_body.plugin_name); - builder = builder.set_response_code(Some(parsed_body.response_code)); - builder = builder.set_execution_start_date_time(parsed_body.execution_start_date_time); - builder = builder.set_execution_elapsed_time(parsed_body.execution_elapsed_time); - builder = builder.set_execution_end_date_time(parsed_body.execution_end_date_time); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_details(parsed_body.status_details); - builder = builder.set_standard_output_content(parsed_body.standard_output_content); - builder = builder.set_standard_output_url(parsed_body.standard_output_url); - builder = builder.set_standard_error_content(parsed_body.standard_error_content); - builder = builder.set_standard_error_url(parsed_body.standard_error_url); - builder = builder.set_cloud_watch_output_config(parsed_body.cloud_watch_output_config); - Ok(builder) -} - -pub fn get_connection_status_deser_operation( +pub fn deser_operation_delete_maintenance_window( input: &[u8], - mut builder: crate::output::get_connection_status_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetConnectionStatusOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_target(parsed_body.target); - builder = builder.set_status(parsed_body.status); + mut builder: crate::output::delete_maintenance_window_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_default_patch_baseline_deser_operation( +pub fn deser_structure_ops_metadata_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::output::get_default_patch_baseline_output::Builder, -) -> std::result::Result + mut builder: crate::error::ops_metadata_not_found_exception::Builder, +) -> Result { - let parsed_body: crate::serializer::GetDefaultPatchBaselineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_operating_system(parsed_body.operating_system); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_deployable_patch_snapshot_for_instance_deser_operation( +pub fn deser_structure_parameter_not_foundjson_err( input: &[u8], - mut builder: crate::output::get_deployable_patch_snapshot_for_instance_output::Builder, -) -> std::result::Result< - crate::output::get_deployable_patch_snapshot_for_instance_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::GetDeployablePatchSnapshotForInstanceOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_instance_id(parsed_body.instance_id); - builder = builder.set_snapshot_id(parsed_body.snapshot_id); - builder = builder.set_snapshot_download_url(parsed_body.snapshot_download_url); - builder = builder.set_product(parsed_body.product); + mut builder: crate::error::parameter_not_found::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_document_deser_operation( - input: &[u8], - mut builder: crate::output::get_document_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetDocumentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_display_name(parsed_body.display_name); - builder = builder.set_version_name(parsed_body.version_name); - builder = builder.set_document_version(parsed_body.document_version); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_information(parsed_body.status_information); - builder = builder.set_content(parsed_body.content); - builder = builder.set_document_type(parsed_body.document_type); - builder = builder.set_document_format(parsed_body.document_format); - builder = builder.set_requires(parsed_body.requires); - builder = builder.set_attachments_content(parsed_body.attachments_content); - builder = builder.set_review_status(parsed_body.review_status); - Ok(builder) -} - -pub fn get_inventory_deser_operation( +pub fn deser_operation_delete_parameters( input: &[u8], - mut builder: crate::output::get_inventory_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetInventoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_entities(parsed_body.entities); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::delete_parameters_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeletedParameters" => { + builder = builder.set_deleted_parameters( + crate::json_deser::deser_list_parameter_name_list(tokens)?, + ); + } + "InvalidParameters" => { + builder = builder.set_invalid_parameters( + crate::json_deser::deser_list_parameter_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_inventory_schema_deser_operation( +pub fn deser_structure_resource_in_use_exceptionjson_err( input: &[u8], - mut builder: crate::output::get_inventory_schema_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetInventorySchemaOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_schemas(parsed_body.schemas); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::resource_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_maintenance_window_deser_operation( +pub fn deser_operation_delete_patch_baseline( input: &[u8], - mut builder: crate::output::get_maintenance_window_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetMaintenanceWindowOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_start_date(parsed_body.start_date); - builder = builder.set_end_date(parsed_body.end_date); - builder = builder.set_schedule(parsed_body.schedule); - builder = builder.set_schedule_timezone(parsed_body.schedule_timezone); - builder = builder.set_schedule_offset(parsed_body.schedule_offset); - builder = builder.set_next_execution_time(parsed_body.next_execution_time); - builder = builder.set_duration(Some(parsed_body.duration)); - builder = builder.set_cutoff(Some(parsed_body.cutoff)); - builder = builder.set_allow_unassociated_targets(Some(parsed_body.allow_unassociated_targets)); - builder = builder.set_enabled(Some(parsed_body.enabled)); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_modified_date(parsed_body.modified_date); - Ok(builder) -} - -pub fn get_maintenance_window_execution_deser_operation( + mut builder: crate::output::delete_patch_baseline_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_data_sync_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::output::get_maintenance_window_execution_output::Builder, -) -> std::result::Result< - crate::output::get_maintenance_window_execution_output::Builder, - serde_json::Error, + mut builder: crate::error::resource_data_sync_not_found_exception::Builder, +) -> Result< + crate::error::resource_data_sync_not_found_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetMaintenanceWindowExecutionOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_execution_id(parsed_body.window_execution_id); - builder = builder.set_task_ids(parsed_body.task_ids); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_details(parsed_body.status_details); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_end_time(parsed_body.end_time); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SyncName" => { + builder = builder.set_sync_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SyncType" => { + builder = builder.set_sync_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_maintenance_window_execution_task_deser_operation( - input: &[u8], - mut builder: crate::output::get_maintenance_window_execution_task_output::Builder, -) -> std::result::Result< - crate::output::get_maintenance_window_execution_task_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::GetMaintenanceWindowExecutionTaskOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_execution_id(parsed_body.window_execution_id); - builder = builder.set_task_execution_id(parsed_body.task_execution_id); - builder = builder.set_task_arn(parsed_body.task_arn); - builder = builder.set_service_role(parsed_body.service_role); - builder = builder.set_type(parsed_body.r#type); - builder = builder.set_task_parameters(parsed_body.task_parameters); - builder = builder.set_priority(Some(parsed_body.priority)); - builder = builder.set_max_concurrency(parsed_body.max_concurrency); - builder = builder.set_max_errors(parsed_body.max_errors); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_details(parsed_body.status_details); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_end_time(parsed_body.end_time); - Ok(builder) -} - -pub fn get_maintenance_window_execution_task_invocation_deser_operation( - input: &[u8], - mut builder: crate::output::get_maintenance_window_execution_task_invocation_output::Builder, -) -> std::result::Result< - crate::output::get_maintenance_window_execution_task_invocation_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::GetMaintenanceWindowExecutionTaskInvocationOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_execution_id(parsed_body.window_execution_id); - builder = builder.set_task_execution_id(parsed_body.task_execution_id); - builder = builder.set_invocation_id(parsed_body.invocation_id); - builder = builder.set_execution_id(parsed_body.execution_id); - builder = builder.set_task_type(parsed_body.task_type); - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_status(parsed_body.status); - builder = builder.set_status_details(parsed_body.status_details); - builder = builder.set_start_time(parsed_body.start_time); - builder = builder.set_end_time(parsed_body.end_time); - builder = builder.set_owner_information(parsed_body.owner_information); - builder = builder.set_window_target_id(parsed_body.window_target_id); - Ok(builder) -} - -pub fn get_maintenance_window_task_deser_operation( +pub fn deser_operation_deregister_patch_baseline_for_patch_group( input: &[u8], - mut builder: crate::output::get_maintenance_window_task_output::Builder, -) -> std::result::Result< - crate::output::get_maintenance_window_task_output::Builder, - serde_json::Error, + mut builder: crate::output::deregister_patch_baseline_for_patch_group_output::Builder, +) -> Result< + crate::output::deregister_patch_baseline_for_patch_group_output::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::GetMaintenanceWindowTaskOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_window_task_id(parsed_body.window_task_id); - builder = builder.set_targets(parsed_body.targets); - builder = builder.set_task_arn(parsed_body.task_arn); - builder = builder.set_service_role_arn(parsed_body.service_role_arn); - builder = builder.set_task_type(parsed_body.task_type); - builder = builder.set_task_parameters(parsed_body.task_parameters); - builder = builder.set_task_invocation_parameters(parsed_body.task_invocation_parameters); - builder = builder.set_priority(Some(parsed_body.priority)); - builder = builder.set_max_concurrency(parsed_body.max_concurrency); - builder = builder.set_max_errors(parsed_body.max_errors); - builder = builder.set_logging_info(parsed_body.logging_info); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - Ok(builder) -} - -pub fn get_ops_item_deser_operation( - input: &[u8], - mut builder: crate::output::get_ops_item_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetOpsItemOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ops_item(parsed_body.ops_item); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PatchGroup" => { + builder = builder.set_patch_group( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_ops_metadata_deser_operation( +pub fn deser_structure_target_in_use_exceptionjson_err( input: &[u8], - mut builder: crate::output::get_ops_metadata_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetOpsMetadataOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_resource_id(parsed_body.resource_id); - builder = builder.set_metadata(parsed_body.metadata); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::target_in_use_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_ops_summary_deser_operation( +pub fn deser_operation_deregister_target_from_maintenance_window( input: &[u8], - mut builder: crate::output::get_ops_summary_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetOpsSummaryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_entities(parsed_body.entities); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::deregister_target_from_maintenance_window_output::Builder, +) -> Result< + crate::output::deregister_target_from_maintenance_window_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_parameter_deser_operation( +pub fn deser_operation_deregister_task_from_maintenance_window( input: &[u8], - mut builder: crate::output::get_parameter_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetParameterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_parameter(parsed_body.parameter); + mut builder: crate::output::deregister_task_from_maintenance_window_output::Builder, +) -> Result< + crate::output::deregister_task_from_maintenance_window_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTaskId" => { + builder = builder.set_window_task_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_parameter_history_deser_operation( +pub fn deser_structure_invalid_filterjson_err( input: &[u8], - mut builder: crate::output::get_parameter_history_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetParameterHistoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_filter::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_parameters_deser_operation( +pub fn deser_structure_invalid_next_tokenjson_err( input: &[u8], - mut builder: crate::output::get_parameters_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetParametersOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_invalid_parameters(parsed_body.invalid_parameters); + mut builder: crate::error::invalid_next_token::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_parameters_by_path_deser_operation( +pub fn deser_operation_describe_activations( input: &[u8], - mut builder: crate::output::get_parameters_by_path_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetParametersByPathOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_parameters(parsed_body.parameters); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_activations_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActivationList" => { + builder = builder.set_activation_list( + crate::json_deser::deser_list_activation_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_patch_baseline_deser_operation( - input: &[u8], - mut builder: crate::output::get_patch_baseline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetPatchBaselineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_operating_system(parsed_body.operating_system); - builder = builder.set_global_filters(parsed_body.global_filters); - builder = builder.set_approval_rules(parsed_body.approval_rules); - builder = builder.set_approved_patches(parsed_body.approved_patches); - builder = builder - .set_approved_patches_compliance_level(parsed_body.approved_patches_compliance_level); - builder = builder - .set_approved_patches_enable_non_security(parsed_body.approved_patches_enable_non_security); - builder = builder.set_rejected_patches(parsed_body.rejected_patches); - builder = builder.set_rejected_patches_action(parsed_body.rejected_patches_action); - builder = builder.set_patch_groups(parsed_body.patch_groups); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_modified_date(parsed_body.modified_date); - builder = builder.set_description(parsed_body.description); - builder = builder.set_sources(parsed_body.sources); - Ok(builder) -} - -pub fn get_patch_baseline_for_patch_group_deser_operation( +pub fn deser_structure_invalid_association_versionjson_err( input: &[u8], - mut builder: crate::output::get_patch_baseline_for_patch_group_output::Builder, -) -> std::result::Result< - crate::output::get_patch_baseline_for_patch_group_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::GetPatchBaselineForPatchGroupOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_patch_group(parsed_body.patch_group); - builder = builder.set_operating_system(parsed_body.operating_system); + mut builder: crate::error::invalid_association_version::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn get_service_setting_deser_operation( +pub fn deser_operation_describe_association( input: &[u8], - mut builder: crate::output::get_service_setting_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::GetServiceSettingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service_setting(parsed_body.service_setting); + mut builder: crate::output::describe_association_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationDescription" => { + builder = builder.set_association_description( + crate::json_deser::deser_structure_association_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn label_parameter_version_deser_operation( +pub fn deser_operation_describe_association_executions( input: &[u8], - mut builder: crate::output::label_parameter_version_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::LabelParameterVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_invalid_labels(parsed_body.invalid_labels); - builder = builder.set_parameter_version(Some(parsed_body.parameter_version)); + mut builder: crate::output::describe_association_executions_output::Builder, +) -> Result< + crate::output::describe_association_executions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationExecutions" => { + builder = builder.set_association_executions( + crate::json_deser::deser_list_association_executions_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_associations_deser_operation( +pub fn deser_structure_association_execution_does_not_existjson_err( input: &[u8], - mut builder: crate::output::list_associations_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListAssociationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_associations(parsed_body.associations); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::association_execution_does_not_exist::Builder, +) -> Result< + crate::error::association_execution_does_not_exist::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_association_versions_deser_operation( +pub fn deser_operation_describe_association_execution_targets( input: &[u8], - mut builder: crate::output::list_association_versions_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListAssociationVersionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_versions(parsed_body.association_versions); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_association_execution_targets_output::Builder, +) -> Result< + crate::output::describe_association_execution_targets_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationExecutionTargets" => { + builder = builder.set_association_execution_targets( + crate::json_deser::deser_list_association_execution_targets_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_command_invocations_deser_operation( +pub fn deser_structure_invalid_filter_valuejson_err( input: &[u8], - mut builder: crate::output::list_command_invocations_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListCommandInvocationsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_command_invocations(parsed_body.command_invocations); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_filter_value::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_commands_deser_operation( +pub fn deser_operation_describe_automation_executions( input: &[u8], - mut builder: crate::output::list_commands_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListCommandsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_commands(parsed_body.commands); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_automation_executions_output::Builder, +) -> Result< + crate::output::describe_automation_executions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecutionMetadataList" => { + builder = builder.set_automation_execution_metadata_list( + crate::json_deser::deser_list_automation_execution_metadata_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_compliance_items_deser_operation( +pub fn deser_structure_automation_execution_not_found_exceptionjson_err( input: &[u8], - mut builder: crate::output::list_compliance_items_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListComplianceItemsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compliance_items(parsed_body.compliance_items); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::automation_execution_not_found_exception::Builder, +) -> Result< + crate::error::automation_execution_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_compliance_summaries_deser_operation( +pub fn deser_operation_describe_automation_step_executions( input: &[u8], - mut builder: crate::output::list_compliance_summaries_output::Builder, -) -> std::result::Result -{ - let parsed_body: crate::serializer::ListComplianceSummariesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_compliance_summary_items(parsed_body.compliance_summary_items); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_automation_step_executions_output::Builder, +) -> Result< + crate::output::describe_automation_step_executions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StepExecutions" => { + builder = builder.set_step_executions( + crate::json_deser::deser_list_step_execution_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_document_metadata_history_deser_operation( +pub fn deser_operation_describe_available_patches( input: &[u8], - mut builder: crate::output::list_document_metadata_history_output::Builder, -) -> std::result::Result< - crate::output::list_document_metadata_history_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::ListDocumentMetadataHistoryOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_name(parsed_body.name); - builder = builder.set_document_version(parsed_body.document_version); - builder = builder.set_author(parsed_body.author); - builder = builder.set_metadata(parsed_body.metadata); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_available_patches_output::Builder, +) -> Result< + crate::output::describe_available_patches_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Patches" => { + builder = + builder.set_patches(crate::json_deser::deser_list_patch_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_documents_deser_operation( +pub fn deser_operation_describe_document( input: &[u8], - mut builder: crate::output::list_documents_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListDocumentsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_document_identifiers(parsed_body.document_identifiers); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_document_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Document" => { + builder = builder.set_document( + crate::json_deser::deser_structure_document_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_document_versions_deser_operation( +pub fn deser_structure_invalid_permission_typejson_err( input: &[u8], - mut builder: crate::output::list_document_versions_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListDocumentVersionsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_document_versions(parsed_body.document_versions); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::error::invalid_permission_type::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_inventory_entries_deser_operation( +pub fn deser_operation_describe_document_permission( input: &[u8], - mut builder: crate::output::list_inventory_entries_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListInventoryEntriesOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_type_name(parsed_body.type_name); - builder = builder.set_instance_id(parsed_body.instance_id); - builder = builder.set_schema_version(parsed_body.schema_version); - builder = builder.set_capture_time(parsed_body.capture_time); - builder = builder.set_entries(parsed_body.entries); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_document_permission_output::Builder, +) -> Result< + crate::output::describe_document_permission_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AccountIds" => { + builder = builder.set_account_ids( + crate::json_deser::deser_list_account_id_list(tokens)?, + ); + } + "AccountSharingInfoList" => { + builder = builder.set_account_sharing_info_list( + crate::json_deser::deser_list_account_sharing_info_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_ops_item_events_deser_operation( +pub fn deser_operation_describe_effective_instance_associations( input: &[u8], - mut builder: crate::output::list_ops_item_events_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListOpsItemEventsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_summaries(parsed_body.summaries); + mut builder: crate::output::describe_effective_instance_associations_output::Builder, +) -> Result< + crate::output::describe_effective_instance_associations_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Associations" => { + builder = builder.set_associations( + crate::json_deser::deser_list_instance_association_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_ops_item_related_items_deser_operation( +pub fn deser_structure_unsupported_operating_systemjson_err( input: &[u8], - mut builder: crate::output::list_ops_item_related_items_output::Builder, -) -> std::result::Result< - crate::output::list_ops_item_related_items_output::Builder, - serde_json::Error, + mut builder: crate::error::unsupported_operating_system::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_effective_patches_for_patch_baseline( + input: &[u8], + mut builder: crate::output::describe_effective_patches_for_patch_baseline_output::Builder, +) -> Result< + crate::output::describe_effective_patches_for_patch_baseline_output::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListOpsItemRelatedItemsOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_next_token(parsed_body.next_token); - builder = builder.set_summaries(parsed_body.summaries); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "EffectivePatches" => { + builder = builder.set_effective_patches( + crate::json_deser::deser_list_effective_patch_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_ops_metadata_deser_operation( +pub fn deser_operation_describe_instance_associations_status( input: &[u8], - mut builder: crate::output::list_ops_metadata_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListOpsMetadataOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ops_metadata_list(parsed_body.ops_metadata_list); - builder = builder.set_next_token(parsed_body.next_token); + mut builder: crate::output::describe_instance_associations_status_output::Builder, +) -> Result< + crate::output::describe_instance_associations_status_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceAssociationStatusInfos" => { + builder = builder.set_instance_association_status_infos( + crate::json_deser::deser_list_instance_association_status_infos( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_resource_compliance_summaries_deser_operation( +pub fn deser_structure_invalid_instance_information_filter_valuejson_err( input: &[u8], - mut builder: crate::output::list_resource_compliance_summaries_output::Builder, -) -> std::result::Result< - crate::output::list_resource_compliance_summaries_output::Builder, - serde_json::Error, + mut builder: crate::error::invalid_instance_information_filter_value::Builder, +) -> Result< + crate::error::invalid_instance_information_filter_value::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::ListResourceComplianceSummariesOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder - .set_resource_compliance_summary_items(parsed_body.resource_compliance_summary_items); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_resource_data_sync_deser_operation( +pub fn deser_operation_describe_instance_information( input: &[u8], - mut builder: crate::output::list_resource_data_sync_output::Builder, -) -> std::result::Result + mut builder: crate::output::describe_instance_information_output::Builder, +) -> Result< + crate::output::describe_instance_information_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceInformationList" => { + builder = builder.set_instance_information_list( + crate::json_deser::deser_list_instance_information_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_instance_patches( + input: &[u8], + mut builder: crate::output::describe_instance_patches_output::Builder, +) -> Result { - let parsed_body: crate::serializer::ListResourceDataSyncOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_resource_data_sync_items(parsed_body.resource_data_sync_items); - builder = builder.set_next_token(parsed_body.next_token); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Patches" => { + builder = builder.set_patches( + crate::json_deser::deser_list_patch_compliance_data_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn list_tags_for_resource_deser_operation( +pub fn deser_operation_describe_instance_patch_states( input: &[u8], - mut builder: crate::output::list_tags_for_resource_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ListTagsForResourceOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_tag_list(parsed_body.tag_list); + mut builder: crate::output::describe_instance_patch_states_output::Builder, +) -> Result< + crate::output::describe_instance_patch_states_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstancePatchStates" => { + builder = builder.set_instance_patch_states( + crate::json_deser::deser_list_instance_patch_state_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_inventory_deser_operation( +pub fn deser_operation_describe_instance_patch_states_for_patch_group( input: &[u8], - mut builder: crate::output::put_inventory_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutInventoryOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_message(parsed_body.message); + mut builder: crate::output::describe_instance_patch_states_for_patch_group_output::Builder, +) -> Result< + crate::output::describe_instance_patch_states_for_patch_group_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstancePatchStates" => { + builder = builder.set_instance_patch_states( + crate::json_deser::deser_list_instance_patch_states_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn put_parameter_deser_operation( +pub fn deser_structure_invalid_deletion_id_exceptionjson_err( input: &[u8], - mut builder: crate::output::put_parameter_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::PutParameterOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_version(Some(parsed_body.version)); - builder = builder.set_tier(parsed_body.tier); + mut builder: crate::error::invalid_deletion_id_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_default_patch_baseline_deser_operation( +pub fn deser_operation_describe_inventory_deletions( input: &[u8], - mut builder: crate::output::register_default_patch_baseline_output::Builder, -) -> std::result::Result< - crate::output::register_default_patch_baseline_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::RegisterDefaultPatchBaselineOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); + mut builder: crate::output::describe_inventory_deletions_output::Builder, +) -> Result< + crate::output::describe_inventory_deletions_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InventoryDeletions" => { + builder = builder.set_inventory_deletions( + crate::json_deser::deser_list_inventory_deletions_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_patch_baseline_for_patch_group_deser_operation( +pub fn deser_operation_describe_maintenance_window_executions( input: &[u8], - mut builder: crate::output::register_patch_baseline_for_patch_group_output::Builder, -) -> std::result::Result< - crate::output::register_patch_baseline_for_patch_group_output::Builder, - serde_json::Error, + mut builder: crate::output::describe_maintenance_window_executions_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_executions_output::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RegisterPatchBaselineForPatchGroupOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_patch_group(parsed_body.patch_group); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutions" => { + builder = builder.set_window_executions( + crate::json_deser::deser_list_maintenance_window_execution_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_target_with_maintenance_window_deser_operation( +pub fn deser_operation_describe_maintenance_window_execution_task_invocations( input: &[u8], - mut builder: crate::output::register_target_with_maintenance_window_output::Builder, -) -> std::result::Result< - crate::output::register_target_with_maintenance_window_output::Builder, - serde_json::Error, + mut builder: crate::output::describe_maintenance_window_execution_task_invocations_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_execution_task_invocations_output::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RegisterTargetWithMaintenanceWindowOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_target_id(parsed_body.window_target_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionTaskInvocationIdentities" => { + builder = builder.set_window_execution_task_invocation_identities( + crate::json_deser::deser_list_maintenance_window_execution_task_invocation_identity_list(tokens)? + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn register_task_with_maintenance_window_deser_operation( +pub fn deser_operation_describe_maintenance_window_execution_tasks( input: &[u8], - mut builder: crate::output::register_task_with_maintenance_window_output::Builder, -) -> std::result::Result< - crate::output::register_task_with_maintenance_window_output::Builder, - serde_json::Error, + mut builder: crate::output::describe_maintenance_window_execution_tasks_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_execution_tasks_output::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::RegisterTaskWithMaintenanceWindowOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_task_id(parsed_body.window_task_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionTaskIdentities" => { + builder = builder.set_window_execution_task_identities( + crate::json_deser::deser_list_maintenance_window_execution_task_identity_list(tokens)? + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn reset_service_setting_deser_operation( +pub fn deser_operation_describe_maintenance_windows( input: &[u8], - mut builder: crate::output::reset_service_setting_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ResetServiceSettingOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_service_setting(parsed_body.service_setting); + mut builder: crate::output::describe_maintenance_windows_output::Builder, +) -> Result< + crate::output::describe_maintenance_windows_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowIdentities" => { + builder = builder.set_window_identities( + crate::json_deser::deser_list_maintenance_window_identity_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn resume_session_deser_operation( +pub fn deser_operation_describe_maintenance_window_schedule( input: &[u8], - mut builder: crate::output::resume_session_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::ResumeSessionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_session_id(parsed_body.session_id); - builder = builder.set_token_value(parsed_body.token_value); - builder = builder.set_stream_url(parsed_body.stream_url); + mut builder: crate::output::describe_maintenance_window_schedule_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_schedule_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ScheduledWindowExecutions" => { + builder = builder.set_scheduled_window_executions( + crate::json_deser::deser_list_scheduled_window_execution_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn send_command_deser_operation( +pub fn deser_operation_describe_maintenance_windows_for_target( input: &[u8], - mut builder: crate::output::send_command_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::SendCommandOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_command(parsed_body.command); + mut builder: crate::output::describe_maintenance_windows_for_target_output::Builder, +) -> Result< + crate::output::describe_maintenance_windows_for_target_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowIdentities" => { + builder = builder.set_window_identities( + crate::json_deser::deser_list_maintenance_windows_for_target_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_automation_execution_deser_operation( +pub fn deser_operation_describe_maintenance_window_targets( input: &[u8], - mut builder: crate::output::start_automation_execution_output::Builder, -) -> std::result::Result + mut builder: crate::output::describe_maintenance_window_targets_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_targets_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Targets" => { + builder = builder.set_targets( + crate::json_deser::deser_list_maintenance_window_target_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_maintenance_window_tasks( + input: &[u8], + mut builder: crate::output::describe_maintenance_window_tasks_output::Builder, +) -> Result< + crate::output::describe_maintenance_window_tasks_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Tasks" => { + builder = builder.set_tasks( + crate::json_deser::deser_list_maintenance_window_task_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_ops_items( + input: &[u8], + mut builder: crate::output::describe_ops_items_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsItemSummaries" => { + builder = builder.set_ops_item_summaries( + crate::json_deser::deser_list_ops_item_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_filter_optionjson_err( + input: &[u8], + mut builder: crate::error::invalid_filter_option::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_parameters( + input: &[u8], + mut builder: crate::output::describe_parameters_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_list_parameter_metadata_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_describe_patch_baselines( + input: &[u8], + mut builder: crate::output::describe_patch_baselines_output::Builder, +) -> Result { - let parsed_body: crate::serializer::StartAutomationExecutionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_automation_execution_id(parsed_body.automation_execution_id); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineIdentities" => { + builder = builder.set_baseline_identities( + crate::json_deser::deser_list_patch_baseline_identity_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_change_request_execution_deser_operation( +pub fn deser_operation_describe_patch_groups( input: &[u8], - mut builder: crate::output::start_change_request_execution_output::Builder, -) -> std::result::Result< - crate::output::start_change_request_execution_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::StartChangeRequestExecutionOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_automation_execution_id(parsed_body.automation_execution_id); + mut builder: crate::output::describe_patch_groups_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Mappings" => { + builder = builder.set_mappings( + crate::json_deser::deser_list_patch_group_patch_baseline_mapping_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn start_session_deser_operation( +pub fn deser_operation_describe_patch_group_state( input: &[u8], - mut builder: crate::output::start_session_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::StartSessionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_session_id(parsed_body.session_id); - builder = builder.set_token_value(parsed_body.token_value); - builder = builder.set_stream_url(parsed_body.stream_url); + mut builder: crate::output::describe_patch_group_state_output::Builder, +) -> Result< + crate::output::describe_patch_group_state_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Instances" => { + builder = builder.set_instances( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithInstalledPatches" => { + builder = builder.set_instances_with_installed_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithInstalledOtherPatches" => { + builder = builder.set_instances_with_installed_other_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithInstalledPendingRebootPatches" => { + builder = builder.set_instances_with_installed_pending_reboot_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithInstalledRejectedPatches" => { + builder = builder.set_instances_with_installed_rejected_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithMissingPatches" => { + builder = builder.set_instances_with_missing_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithFailedPatches" => { + builder = builder.set_instances_with_failed_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithNotApplicablePatches" => { + builder = builder.set_instances_with_not_applicable_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithUnreportedNotApplicablePatches" => { + builder = builder.set_instances_with_unreported_not_applicable_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithCriticalNonCompliantPatches" => { + builder = builder.set_instances_with_critical_non_compliant_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithSecurityNonCompliantPatches" => { + builder = builder.set_instances_with_security_non_compliant_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "InstancesWithOtherNonCompliantPatches" => { + builder = builder.set_instances_with_other_non_compliant_patches( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn terminate_session_deser_operation( +pub fn deser_operation_describe_patch_properties( input: &[u8], - mut builder: crate::output::terminate_session_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::TerminateSessionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_session_id(parsed_body.session_id); + mut builder: crate::output::describe_patch_properties_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Properties" => { + builder = builder.set_properties( + crate::json_deser::deser_list_patch_properties_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn unlabel_parameter_version_deser_operation( +pub fn deser_operation_describe_sessions( input: &[u8], - mut builder: crate::output::unlabel_parameter_version_output::Builder, -) -> std::result::Result + mut builder: crate::output::describe_sessions_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Sessions" => { + builder = builder + .set_sessions(crate::json_deser::deser_list_session_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_ops_item_related_item_association_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::ops_item_related_item_association_not_found_exception::Builder, +) -> Result< + crate::error::ops_item_related_item_association_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_automation_execution( + input: &[u8], + mut builder: crate::output::get_automation_execution_output::Builder, +) -> Result { - let parsed_body: crate::serializer::UnlabelParameterVersionOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_removed_labels(parsed_body.removed_labels); - builder = builder.set_invalid_labels(parsed_body.invalid_labels); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecution" => { + builder = builder.set_automation_execution( + crate::json_deser::deser_structure_automation_execution(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_association_deser_operation( +pub fn deser_structure_invalid_document_typejson_err( input: &[u8], - mut builder: crate::output::update_association_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateAssociationOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_description(parsed_body.association_description); + mut builder: crate::error::invalid_document_type::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_association_status_deser_operation( +pub fn deser_structure_unsupported_calendar_exceptionjson_err( input: &[u8], - mut builder: crate::output::update_association_status_output::Builder, -) -> std::result::Result + mut builder: crate::error::unsupported_calendar_exception::Builder, +) -> Result { - let parsed_body: crate::serializer::UpdateAssociationStatusOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_association_description(parsed_body.association_description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_document_deser_operation( +pub fn deser_operation_get_calendar_state( input: &[u8], - mut builder: crate::output::update_document_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateDocumentOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_document_description(parsed_body.document_description); + mut builder: crate::output::get_calendar_state_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CalendarState::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AtTime" => { + builder = builder.set_at_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NextTransitionTime" => { + builder = builder.set_next_transition_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_document_default_version_deser_operation( +pub fn deser_operation_get_command_invocation( input: &[u8], - mut builder: crate::output::update_document_default_version_output::Builder, -) -> std::result::Result< - crate::output::update_document_default_version_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::UpdateDocumentDefaultVersionOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_description(parsed_body.description); + mut builder: crate::output::get_command_invocation_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CommandId" => { + builder = builder.set_command_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Comment" => { + builder = builder.set_comment( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PluginName" => { + builder = builder.set_plugin_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResponseCode" => { + builder = builder.set_response_code( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "ExecutionStartDateTime" => { + builder = builder.set_execution_start_date_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionElapsedTime" => { + builder = builder.set_execution_elapsed_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionEndDateTime" => { + builder = builder.set_execution_end_date_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CommandInvocationStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardOutputContent" => { + builder = builder.set_standard_output_content( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardOutputUrl" => { + builder = builder.set_standard_output_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardErrorContent" => { + builder = builder.set_standard_error_content( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardErrorUrl" => { + builder = builder.set_standard_error_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudWatchOutputConfig" => { + builder = builder.set_cloud_watch_output_config( + crate::json_deser::deser_structure_cloud_watch_output_config(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_maintenance_window_deser_operation( +pub fn deser_operation_get_connection_status( input: &[u8], - mut builder: crate::output::update_maintenance_window_output::Builder, -) -> std::result::Result + mut builder: crate::output::get_connection_status_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Target" => { + builder = builder.set_target( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ConnectionStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_default_patch_baseline( + input: &[u8], + mut builder: crate::output::get_default_patch_baseline_output::Builder, +) -> Result< + crate::output::get_default_patch_baseline_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperatingSystem" => { + builder = builder.set_operating_system( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OperatingSystem::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_feature_required_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_feature_required_exception::Builder, +) -> Result< + crate::error::unsupported_feature_required_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_deployable_patch_snapshot_for_instance( + input: &[u8], + mut builder: crate::output::get_deployable_patch_snapshot_for_instance_output::Builder, +) -> Result< + crate::output::get_deployable_patch_snapshot_for_instance_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SnapshotId" => { + builder = builder.set_snapshot_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SnapshotDownloadUrl" => { + builder = builder.set_snapshot_download_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Product" => { + builder = builder.set_product( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_document( + input: &[u8], + mut builder: crate::output::get_document_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionName" => { + builder = builder.set_version_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StatusInformation" => { + builder = builder.set_status_information( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Content" => { + builder = builder.set_content( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentType" => { + builder = builder.set_document_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "DocumentFormat" => { + builder = builder.set_document_format( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Requires" => { + builder = builder.set_requires( + crate::json_deser::deser_list_document_requires_list(tokens)?, + ); + } + "AttachmentsContent" => { + builder = builder.set_attachments_content( + crate::json_deser::deser_list_attachment_content_list(tokens)?, + ); + } + "ReviewStatus" => { + builder = builder.set_review_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_aggregator_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_aggregator_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_inventory_group_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_inventory_group_exception::Builder, +) -> Result { - let parsed_body: crate::serializer::UpdateMaintenanceWindowOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - builder = builder.set_start_date(parsed_body.start_date); - builder = builder.set_end_date(parsed_body.end_date); - builder = builder.set_schedule(parsed_body.schedule); - builder = builder.set_schedule_timezone(parsed_body.schedule_timezone); - builder = builder.set_schedule_offset(parsed_body.schedule_offset); - builder = builder.set_duration(Some(parsed_body.duration)); - builder = builder.set_cutoff(Some(parsed_body.cutoff)); - builder = builder.set_allow_unassociated_targets(Some(parsed_body.allow_unassociated_targets)); - builder = builder.set_enabled(Some(parsed_body.enabled)); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_maintenance_window_target_deser_operation( +pub fn deser_structure_invalid_result_attribute_exceptionjson_err( input: &[u8], - mut builder: crate::output::update_maintenance_window_target_output::Builder, -) -> std::result::Result< - crate::output::update_maintenance_window_target_output::Builder, - serde_json::Error, + mut builder: crate::error::invalid_result_attribute_exception::Builder, +) -> Result< + crate::error::invalid_result_attribute_exception::Builder, + smithy_json::deserialize::Error, > { - let parsed_body: crate::serializer::UpdateMaintenanceWindowTargetOutputBody = - if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_window_target_id(parsed_body.window_target_id); - builder = builder.set_targets(parsed_body.targets); - builder = builder.set_owner_information(parsed_body.owner_information); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_maintenance_window_task_deser_operation( +pub fn deser_operation_get_inventory( input: &[u8], - mut builder: crate::output::update_maintenance_window_task_output::Builder, -) -> std::result::Result< - crate::output::update_maintenance_window_task_output::Builder, - serde_json::Error, -> { - let parsed_body: crate::serializer::UpdateMaintenanceWindowTaskOutputBody = if input.is_empty() - { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_window_id(parsed_body.window_id); - builder = builder.set_window_task_id(parsed_body.window_task_id); - builder = builder.set_targets(parsed_body.targets); - builder = builder.set_task_arn(parsed_body.task_arn); - builder = builder.set_service_role_arn(parsed_body.service_role_arn); - builder = builder.set_task_parameters(parsed_body.task_parameters); - builder = builder.set_task_invocation_parameters(parsed_body.task_invocation_parameters); - builder = builder.set_priority(Some(parsed_body.priority)); - builder = builder.set_max_concurrency(parsed_body.max_concurrency); - builder = builder.set_max_errors(parsed_body.max_errors); - builder = builder.set_logging_info(parsed_body.logging_info); - builder = builder.set_name(parsed_body.name); - builder = builder.set_description(parsed_body.description); - Ok(builder) -} - -pub fn update_ops_metadata_deser_operation( + mut builder: crate::output::get_inventory_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Entities" => { + builder = builder.set_entities( + crate::json_deser::deser_list_inventory_result_entity_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_inventory_schema( input: &[u8], - mut builder: crate::output::update_ops_metadata_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdateOpsMetadataOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_ops_metadata_arn(parsed_body.ops_metadata_arn); + mut builder: crate::output::get_inventory_schema_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Schemas" => { + builder = builder.set_schemas( + crate::json_deser::deser_list_inventory_item_schema_result_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } -pub fn update_patch_baseline_deser_operation( +pub fn deser_operation_get_maintenance_window( input: &[u8], - mut builder: crate::output::update_patch_baseline_output::Builder, -) -> std::result::Result { - let parsed_body: crate::serializer::UpdatePatchBaselineOutputBody = if input.is_empty() { - // To enable JSON parsing to succeed, replace an empty body - // with an empty JSON body. If a member was required, it will fail slightly later - // during the operation construction phase when a required field was missing. - serde_json::from_slice(b"{}")? - } else { - serde_json::from_slice(input)? - }; - builder = builder.set_baseline_id(parsed_body.baseline_id); - builder = builder.set_name(parsed_body.name); - builder = builder.set_operating_system(parsed_body.operating_system); - builder = builder.set_global_filters(parsed_body.global_filters); - builder = builder.set_approval_rules(parsed_body.approval_rules); - builder = builder.set_approved_patches(parsed_body.approved_patches); - builder = builder - .set_approved_patches_compliance_level(parsed_body.approved_patches_compliance_level); - builder = builder - .set_approved_patches_enable_non_security(parsed_body.approved_patches_enable_non_security); - builder = builder.set_rejected_patches(parsed_body.rejected_patches); - builder = builder.set_rejected_patches_action(parsed_body.rejected_patches_action); - builder = builder.set_created_date(parsed_body.created_date); - builder = builder.set_modified_date(parsed_body.modified_date); - builder = builder.set_description(parsed_body.description); - builder = builder.set_sources(parsed_body.sources); + mut builder: crate::output::get_maintenance_window_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Schedule" => { + builder = builder.set_schedule( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleTimezone" => { + builder = builder.set_schedule_timezone( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleOffset" => { + builder = builder.set_schedule_offset( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "NextExecutionTime" => { + builder = builder.set_next_execution_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Cutoff" => { + builder = builder.set_cutoff( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "AllowUnassociatedTargets" => { + builder = builder.set_allow_unassociated_targets( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModifiedDate" => { + builder = builder.set_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_maintenance_window_execution( + input: &[u8], + mut builder: crate::output::get_maintenance_window_execution_output::Builder, +) -> Result< + crate::output::get_maintenance_window_execution_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskIds" => { + builder = builder.set_task_ids( + crate::json_deser::deser_list_maintenance_window_execution_task_id_list(tokens)? + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_maintenance_window_execution_task( + input: &[u8], + mut builder: crate::output::get_maintenance_window_execution_task_output::Builder, +) -> Result< + crate::output::get_maintenance_window_execution_task_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskExecutionId" => { + builder = builder.set_task_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ServiceRole" => { + builder = builder.set_service_role( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "TaskParameters" => { + builder = builder.set_task_parameters( + crate::json_deser::deser_list_maintenance_window_task_parameters_list( + tokens, + )?, + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_maintenance_window_execution_task_invocation( + input: &[u8], + mut builder: crate::output::get_maintenance_window_execution_task_invocation_output::Builder, +) -> Result< + crate::output::get_maintenance_window_execution_task_invocation_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskExecutionId" => { + builder = builder.set_task_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InvocationId" => { + builder = builder.set_invocation_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionId" => { + builder = builder.set_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskType" => { + builder = builder.set_task_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OwnerInformation" => { + builder = builder.set_owner_information( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_maintenance_window_task( + input: &[u8], + mut builder: crate::output::get_maintenance_window_task_output::Builder, +) -> Result< + crate::output::get_maintenance_window_task_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTaskId" => { + builder = builder.set_window_task_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = + builder.set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TaskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ServiceRoleArn" => { + builder = builder.set_service_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskType" => { + builder = builder.set_task_type( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "TaskParameters" => { + builder = builder.set_task_parameters( + crate::json_deser::deser_map_maintenance_window_task_parameters( + tokens, + )?, + ); + } + "TaskInvocationParameters" => { + builder = builder.set_task_invocation_parameters( + crate::json_deser::deser_structure_maintenance_window_task_invocation_parameters(tokens)? + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LoggingInfo" => { + builder = builder.set_logging_info( + crate::json_deser::deser_structure_logging_info(tokens)?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_ops_item( + input: &[u8], + mut builder: crate::output::get_ops_item_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsItem" => { + builder = builder + .set_ops_item(crate::json_deser::deser_structure_ops_item(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_ops_metadata( + input: &[u8], + mut builder: crate::output::get_ops_metadata_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Metadata" => { + builder = builder + .set_metadata(crate::json_deser::deser_map_metadata_map(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_ops_summary( + input: &[u8], + mut builder: crate::output::get_ops_summary_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Entities" => { + builder = builder + .set_entities(crate::json_deser::deser_list_ops_entity_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } Ok(builder) } + +pub fn deser_structure_invalid_key_idjson_err( + input: &[u8], + mut builder: crate::error::invalid_key_id::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_version_not_foundjson_err( + input: &[u8], + mut builder: crate::error::parameter_version_not_found::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_parameter( + input: &[u8], + mut builder: crate::output::get_parameter_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Parameter" => { + builder = builder + .set_parameter(crate::json_deser::deser_structure_parameter(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_parameter_history( + input: &[u8], + mut builder: crate::output::get_parameter_history_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_list_parameter_history_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_parameters( + input: &[u8], + mut builder: crate::output::get_parameters_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Parameters" => { + builder = builder + .set_parameters(crate::json_deser::deser_list_parameter_list(tokens)?); + } + "InvalidParameters" => { + builder = builder.set_invalid_parameters( + crate::json_deser::deser_list_parameter_name_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_parameters_by_path( + input: &[u8], + mut builder: crate::output::get_parameters_by_path_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Parameters" => { + builder = builder + .set_parameters(crate::json_deser::deser_list_parameter_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_patch_baseline( + input: &[u8], + mut builder: crate::output::get_patch_baseline_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperatingSystem" => { + builder = builder.set_operating_system( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OperatingSystem::from(u.as_ref())) + }) + .transpose()?, + ); + } + "GlobalFilters" => { + builder = builder.set_global_filters( + crate::json_deser::deser_structure_patch_filter_group(tokens)?, + ); + } + "ApprovalRules" => { + builder = builder.set_approval_rules( + crate::json_deser::deser_structure_patch_rule_group(tokens)?, + ); + } + "ApprovedPatches" => { + builder = builder.set_approved_patches( + crate::json_deser::deser_list_patch_id_list(tokens)?, + ); + } + "ApprovedPatchesComplianceLevel" => { + builder = builder.set_approved_patches_compliance_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchComplianceLevel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ApprovedPatchesEnableNonSecurity" => { + builder = builder.set_approved_patches_enable_non_security( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "RejectedPatches" => { + builder = builder.set_rejected_patches( + crate::json_deser::deser_list_patch_id_list(tokens)?, + ); + } + "RejectedPatchesAction" => { + builder = builder.set_rejected_patches_action( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PatchAction::from(u.as_ref())) + }) + .transpose()?, + ); + } + "PatchGroups" => { + builder = builder.set_patch_groups( + crate::json_deser::deser_list_patch_group_list(tokens)?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModifiedDate" => { + builder = builder.set_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Sources" => { + builder = builder + .set_sources(crate::json_deser::deser_list_patch_source_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_patch_baseline_for_patch_group( + input: &[u8], + mut builder: crate::output::get_patch_baseline_for_patch_group_output::Builder, +) -> Result< + crate::output::get_patch_baseline_for_patch_group_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PatchGroup" => { + builder = builder.set_patch_group( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperatingSystem" => { + builder = builder.set_operating_system( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OperatingSystem::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_service_setting_not_foundjson_err( + input: &[u8], + mut builder: crate::error::service_setting_not_found::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_get_service_setting( + input: &[u8], + mut builder: crate::output::get_service_setting_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ServiceSetting" => { + builder = builder.set_service_setting( + crate::json_deser::deser_structure_service_setting(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_version_label_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::parameter_version_label_limit_exceeded::Builder, +) -> Result< + crate::error::parameter_version_label_limit_exceeded::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_label_parameter_version( + input: &[u8], + mut builder: crate::output::label_parameter_version_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InvalidLabels" => { + builder = builder.set_invalid_labels( + crate::json_deser::deser_list_parameter_label_list(tokens)?, + ); + } + "ParameterVersion" => { + builder = builder.set_parameter_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_associations( + input: &[u8], + mut builder: crate::output::list_associations_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Associations" => { + builder = builder.set_associations( + crate::json_deser::deser_list_association_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_association_versions( + input: &[u8], + mut builder: crate::output::list_association_versions_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationVersions" => { + builder = builder.set_association_versions( + crate::json_deser::deser_list_association_version_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_command_invocations( + input: &[u8], + mut builder: crate::output::list_command_invocations_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CommandInvocations" => { + builder = builder.set_command_invocations( + crate::json_deser::deser_list_command_invocation_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_commands( + input: &[u8], + mut builder: crate::output::list_commands_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Commands" => { + builder = builder + .set_commands(crate::json_deser::deser_list_command_list(tokens)?); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_compliance_items( + input: &[u8], + mut builder: crate::output::list_compliance_items_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ComplianceItems" => { + builder = builder.set_compliance_items( + crate::json_deser::deser_list_compliance_item_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_compliance_summaries( + input: &[u8], + mut builder: crate::output::list_compliance_summaries_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ComplianceSummaryItems" => { + builder = builder.set_compliance_summary_items( + crate::json_deser::deser_list_compliance_summary_item_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_document_metadata_history( + input: &[u8], + mut builder: crate::output::list_document_metadata_history_output::Builder, +) -> Result< + crate::output::list_document_metadata_history_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Author" => { + builder = builder.set_author( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Metadata" => { + builder = builder.set_metadata( + crate::json_deser::deser_structure_document_metadata_response_info( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_documents( + input: &[u8], + mut builder: crate::output::list_documents_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentIdentifiers" => { + builder = builder.set_document_identifiers( + crate::json_deser::deser_list_document_identifier_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_document_versions( + input: &[u8], + mut builder: crate::output::list_document_versions_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentVersions" => { + builder = builder.set_document_versions( + crate::json_deser::deser_list_document_version_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_inventory_entries( + input: &[u8], + mut builder: crate::output::list_inventory_entries_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SchemaVersion" => { + builder = builder.set_schema_version( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CaptureTime" => { + builder = builder.set_capture_time( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Entries" => { + builder = builder.set_entries( + crate::json_deser::deser_list_inventory_item_entry_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_ops_item_events( + input: &[u8], + mut builder: crate::output::list_ops_item_events_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Summaries" => { + builder = builder.set_summaries( + crate::json_deser::deser_list_ops_item_event_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_ops_item_related_items( + input: &[u8], + mut builder: crate::output::list_ops_item_related_items_output::Builder, +) -> Result< + crate::output::list_ops_item_related_items_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Summaries" => { + builder = builder.set_summaries( + crate::json_deser::deser_list_ops_item_related_item_summaries(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_ops_metadata( + input: &[u8], + mut builder: crate::output::list_ops_metadata_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsMetadataList" => { + builder = builder.set_ops_metadata_list( + crate::json_deser::deser_list_ops_metadata_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_resource_compliance_summaries( + input: &[u8], + mut builder: crate::output::list_resource_compliance_summaries_output::Builder, +) -> Result< + crate::output::list_resource_compliance_summaries_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourceComplianceSummaryItems" => { + builder = builder.set_resource_compliance_summary_items( + crate::json_deser::deser_list_resource_compliance_summary_item_list( + tokens, + )?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_resource_data_sync( + input: &[u8], + mut builder: crate::output::list_resource_data_sync_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourceDataSyncItems" => { + builder = builder.set_resource_data_sync_items( + crate::json_deser::deser_list_resource_data_sync_item_list(tokens)?, + ); + } + "NextToken" => { + builder = builder.set_next_token( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_list_tags_for_resource( + input: &[u8], + mut builder: crate::output::list_tags_for_resource_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TagList" => { + builder = + builder.set_tag_list(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_document_permission_limitjson_err( + input: &[u8], + mut builder: crate::error::document_permission_limit::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_compliance_type_count_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::compliance_type_count_limit_exceeded_exception::Builder, +) -> Result< + crate::error::compliance_type_count_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_item_content_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_item_content_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_item_size_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::item_size_limit_exceeded_exception::Builder, +) -> Result< + crate::error::item_size_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_total_size_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::total_size_limit_exceeded_exception::Builder, +) -> Result< + crate::error::total_size_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_custom_schema_count_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::custom_schema_count_limit_exceeded_exception::Builder, +) -> Result< + crate::error::custom_schema_count_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_inventory_item_context_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_inventory_item_context_exception::Builder, +) -> Result< + crate::error::invalid_inventory_item_context_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_item_content_mismatch_exceptionjson_err( + input: &[u8], + mut builder: crate::error::item_content_mismatch_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_sub_type_count_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::sub_type_count_limit_exceeded_exception::Builder, +) -> Result< + crate::error::sub_type_count_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_inventory_item_context_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_inventory_item_context_exception::Builder, +) -> Result< + crate::error::unsupported_inventory_item_context_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_inventory_schema_version_exceptionjson_err( + input: &[u8], + mut builder: crate::error::unsupported_inventory_schema_version_exception::Builder, +) -> Result< + crate::error::unsupported_inventory_schema_version_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_inventory( + input: &[u8], + mut builder: crate::output::put_inventory_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_hierarchy_level_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::hierarchy_level_limit_exceeded_exception::Builder, +) -> Result< + crate::error::hierarchy_level_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_hierarchy_type_mismatch_exceptionjson_err( + input: &[u8], + mut builder: crate::error::hierarchy_type_mismatch_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_incompatible_policy_exceptionjson_err( + input: &[u8], + mut builder: crate::error::incompatible_policy_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_allowed_pattern_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_allowed_pattern_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_policy_attribute_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_policy_attribute_exception::Builder, +) -> Result< + crate::error::invalid_policy_attribute_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_policy_type_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_policy_type_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_already_existsjson_err( + input: &[u8], + mut builder: crate::error::parameter_already_exists::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::parameter_limit_exceeded::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_max_version_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::parameter_max_version_limit_exceeded::Builder, +) -> Result< + crate::error::parameter_max_version_limit_exceeded::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_parameter_pattern_mismatch_exceptionjson_err( + input: &[u8], + mut builder: crate::error::parameter_pattern_mismatch_exception::Builder, +) -> Result< + crate::error::parameter_pattern_mismatch_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_policies_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::policies_limit_exceeded_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_unsupported_parameter_typejson_err( + input: &[u8], + mut builder: crate::error::unsupported_parameter_type::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_put_parameter( + input: &[u8], + mut builder: crate::output::put_parameter_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i64()), + ); + } + "Tier" => { + builder = builder.set_tier( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterTier::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_register_default_patch_baseline( + input: &[u8], + mut builder: crate::output::register_default_patch_baseline_output::Builder, +) -> Result< + crate::output::register_default_patch_baseline_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_already_exists_exceptionjson_err( + input: &[u8], + mut builder: crate::error::already_exists_exception::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_register_patch_baseline_for_patch_group( + input: &[u8], + mut builder: crate::output::register_patch_baseline_for_patch_group_output::Builder, +) -> Result< + crate::output::register_patch_baseline_for_patch_group_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PatchGroup" => { + builder = builder.set_patch_group( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_register_target_with_maintenance_window( + input: &[u8], + mut builder: crate::output::register_target_with_maintenance_window_output::Builder, +) -> Result< + crate::output::register_target_with_maintenance_window_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_feature_not_available_exceptionjson_err( + input: &[u8], + mut builder: crate::error::feature_not_available_exception::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_register_task_with_maintenance_window( + input: &[u8], + mut builder: crate::output::register_task_with_maintenance_window_output::Builder, +) -> Result< + crate::output::register_task_with_maintenance_window_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowTaskId" => { + builder = builder.set_window_task_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_reset_service_setting( + input: &[u8], + mut builder: crate::output::reset_service_setting_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ServiceSetting" => { + builder = builder.set_service_setting( + crate::json_deser::deser_structure_service_setting(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_resume_session( + input: &[u8], + mut builder: crate::output::resume_session_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SessionId" => { + builder = builder.set_session_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TokenValue" => { + builder = builder.set_token_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamUrl" => { + builder = builder.set_stream_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_automation_step_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::automation_step_not_found_exception::Builder, +) -> Result< + crate::error::automation_step_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_automation_signal_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_automation_signal_exception::Builder, +) -> Result< + crate::error::invalid_automation_signal_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_notification_configjson_err( + input: &[u8], + mut builder: crate::error::invalid_notification_config::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_rolejson_err( + input: &[u8], + mut builder: crate::error::invalid_role::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_send_command( + input: &[u8], + mut builder: crate::output::send_command_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Command" => { + builder = builder + .set_command(crate::json_deser::deser_structure_command(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_associationjson_err( + input: &[u8], + mut builder: crate::error::invalid_association::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_automation_definition_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::automation_definition_not_found_exception::Builder, +) -> Result< + crate::error::automation_definition_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_automation_definition_version_not_found_exceptionjson_err( + input: &[u8], + mut builder: crate::error::automation_definition_version_not_found_exception::Builder, +) -> Result< + crate::error::automation_definition_version_not_found_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_automation_execution_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::automation_execution_limit_exceeded_exception::Builder, +) -> Result< + crate::error::automation_execution_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_automation_execution_parameters_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_automation_execution_parameters_exception::Builder, +) -> Result< + crate::error::invalid_automation_execution_parameters_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_start_automation_execution( + input: &[u8], + mut builder: crate::output::start_automation_execution_output::Builder, +) -> Result< + crate::output::start_automation_execution_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecutionId" => { + builder = builder.set_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_automation_definition_not_approved_exceptionjson_err( + input: &[u8], + mut builder: crate::error::automation_definition_not_approved_exception::Builder, +) -> Result< + crate::error::automation_definition_not_approved_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_start_change_request_execution( + input: &[u8], + mut builder: crate::output::start_change_request_execution_output::Builder, +) -> Result< + crate::output::start_change_request_execution_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecutionId" => { + builder = builder.set_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_target_not_connectedjson_err( + input: &[u8], + mut builder: crate::error::target_not_connected::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_start_session( + input: &[u8], + mut builder: crate::output::start_session_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SessionId" => { + builder = builder.set_session_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TokenValue" => { + builder = builder.set_token_value( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StreamUrl" => { + builder = builder.set_stream_url( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_automation_status_update_exceptionjson_err( + input: &[u8], + mut builder: crate::error::invalid_automation_status_update_exception::Builder, +) -> Result< + crate::error::invalid_automation_status_update_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_terminate_session( + input: &[u8], + mut builder: crate::output::terminate_session_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SessionId" => { + builder = builder.set_session_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_unlabel_parameter_version( + input: &[u8], + mut builder: crate::output::unlabel_parameter_version_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RemovedLabels" => { + builder = builder.set_removed_labels( + crate::json_deser::deser_list_parameter_label_list(tokens)?, + ); + } + "InvalidLabels" => { + builder = builder.set_invalid_labels( + crate::json_deser::deser_list_parameter_label_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_association_version_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::association_version_limit_exceeded::Builder, +) -> Result< + crate::error::association_version_limit_exceeded::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_invalid_updatejson_err( + input: &[u8], + mut builder: crate::error::invalid_update::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_association( + input: &[u8], + mut builder: crate::output::update_association_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationDescription" => { + builder = builder.set_association_description( + crate::json_deser::deser_structure_association_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_association_status( + input: &[u8], + mut builder: crate::output::update_association_status_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationDescription" => { + builder = builder.set_association_description( + crate::json_deser::deser_structure_association_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_document_version_limit_exceededjson_err( + input: &[u8], + mut builder: crate::error::document_version_limit_exceeded::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_duplicate_document_contentjson_err( + input: &[u8], + mut builder: crate::error::duplicate_document_content::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_duplicate_document_version_namejson_err( + input: &[u8], + mut builder: crate::error::duplicate_document_version_name::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_document( + input: &[u8], + mut builder: crate::output::update_document_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentDescription" => { + builder = builder.set_document_description( + crate::json_deser::deser_structure_document_description(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_document_default_version( + input: &[u8], + mut builder: crate::output::update_document_default_version_output::Builder, +) -> Result< + crate::output::update_document_default_version_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Description" => { + builder = builder.set_description( + crate::json_deser::deser_structure_document_default_version_description(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_maintenance_window( + input: &[u8], + mut builder: crate::output::update_maintenance_window_output::Builder, +) -> Result +{ + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EndDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Schedule" => { + builder = builder.set_schedule( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleTimezone" => { + builder = builder.set_schedule_timezone( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleOffset" => { + builder = builder.set_schedule_offset( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "Cutoff" => { + builder = builder.set_cutoff( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "AllowUnassociatedTargets" => { + builder = builder.set_allow_unassociated_targets( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_maintenance_window_target( + input: &[u8], + mut builder: crate::output::update_maintenance_window_target_output::Builder, +) -> Result< + crate::output::update_maintenance_window_target_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = + builder.set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "OwnerInformation" => { + builder = builder.set_owner_information( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_maintenance_window_task( + input: &[u8], + mut builder: crate::output::update_maintenance_window_task_output::Builder, +) -> Result< + crate::output::update_maintenance_window_task_output::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTaskId" => { + builder = builder.set_window_task_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = + builder.set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TaskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ServiceRoleArn" => { + builder = builder.set_service_role_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskParameters" => { + builder = builder.set_task_parameters( + crate::json_deser::deser_map_maintenance_window_task_parameters( + tokens, + )?, + ); + } + "TaskInvocationParameters" => { + builder = builder.set_task_invocation_parameters( + crate::json_deser::deser_structure_maintenance_window_task_invocation_parameters(tokens)? + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()), + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LoggingInfo" => { + builder = builder.set_logging_info( + crate::json_deser::deser_structure_logging_info(tokens)?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_ops_metadata_key_limit_exceeded_exceptionjson_err( + input: &[u8], + mut builder: crate::error::ops_metadata_key_limit_exceeded_exception::Builder, +) -> Result< + crate::error::ops_metadata_key_limit_exceeded_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_ops_metadata( + input: &[u8], + mut builder: crate::output::update_ops_metadata_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsMetadataArn" => { + builder = builder.set_ops_metadata_arn( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_operation_update_patch_baseline( + input: &[u8], + mut builder: crate::output::update_patch_baseline_output::Builder, +) -> Result { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperatingSystem" => { + builder = builder.set_operating_system( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OperatingSystem::from(u.as_ref())) + }) + .transpose()?, + ); + } + "GlobalFilters" => { + builder = builder.set_global_filters( + crate::json_deser::deser_structure_patch_filter_group(tokens)?, + ); + } + "ApprovalRules" => { + builder = builder.set_approval_rules( + crate::json_deser::deser_structure_patch_rule_group(tokens)?, + ); + } + "ApprovedPatches" => { + builder = builder.set_approved_patches( + crate::json_deser::deser_list_patch_id_list(tokens)?, + ); + } + "ApprovedPatchesComplianceLevel" => { + builder = builder.set_approved_patches_compliance_level( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchComplianceLevel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ApprovedPatchesEnableNonSecurity" => { + builder = builder.set_approved_patches_enable_non_security( + smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?, + ); + } + "RejectedPatches" => { + builder = builder.set_rejected_patches( + crate::json_deser::deser_list_patch_id_list(tokens)?, + ); + } + "RejectedPatchesAction" => { + builder = builder.set_rejected_patches_action( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PatchAction::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ModifiedDate" => { + builder = builder.set_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Sources" => { + builder = builder + .set_sources(crate::json_deser::deser_list_patch_source_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn deser_structure_resource_data_sync_conflict_exceptionjson_err( + input: &[u8], + mut builder: crate::error::resource_data_sync_conflict_exception::Builder, +) -> Result< + crate::error::resource_data_sync_conflict_exception::Builder, + smithy_json::deserialize::Error, +> { + let mut tokens_owned = + smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(input)) + .peekable(); + let tokens = &mut tokens_owned; + smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(smithy_json::deserialize::Error::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} + +pub fn or_empty_doc(data: &[u8]) -> &[u8] { + if data.is_empty() { + b"{}" + } else { + data + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_item_parameter_names_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_association_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Date" => { + builder = builder.set_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastUpdateAssociationDate" => { + builder = builder.set_last_update_association_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + crate::json_deser::deser_structure_association_status(tokens)?, + ); + } + "Overview" => { + builder = builder.set_overview( + crate::json_deser::deser_structure_association_overview( + tokens, + )?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutomationTargetParameterName" => { + builder = builder.set_automation_target_parameter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters(tokens)?, + ); + } + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "ScheduleExpression" => { + builder = builder.set_schedule_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputLocation" => { + builder = builder.set_output_location( + crate::json_deser::deser_structure_instance_association_output_location(tokens)? + ); + } + "LastExecutionDate" => { + builder = builder.set_last_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastSuccessfulExecutionDate" => { + builder = builder.set_last_successful_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "AssociationName" => { + builder = builder.set_association_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ComplianceSeverity" => { + builder = builder.set_compliance_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationComplianceSeverity::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "SyncCompliance" => { + builder = builder.set_sync_compliance( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationSyncCompliance::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ApplyOnlyAtCronInterval" => { + builder = builder.set_apply_only_at_cron_interval( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CalendarNames" => { + builder = builder.set_calendar_names( + crate::json_deser::deser_list_calendar_name_or_arn_list( + tokens, + )?, + ); + } + "TargetLocations" => { + builder = builder.set_target_locations( + crate::json_deser::deser_list_target_locations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_description_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_association_description(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_failed_create_association_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_failed_create_association(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_document_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Sha1" => { + builder = builder.set_sha1( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Hash" => { + builder = builder.set_hash( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HashType" => { + builder = builder.set_hash_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DocumentHashType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionName" => { + builder = builder.set_version_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Owner" => { + builder = builder.set_owner( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StatusInformation" => { + builder = builder.set_status_information( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_list_document_parameter_list(tokens)?, + ); + } + "PlatformTypes" => { + builder = builder.set_platform_types( + crate::json_deser::deser_list_platform_type_list(tokens)?, + ); + } + "DocumentType" => { + builder = builder.set_document_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SchemaVersion" => { + builder = builder.set_schema_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LatestVersion" => { + builder = builder.set_latest_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultVersion" => { + builder = builder.set_default_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentFormat" => { + builder = builder.set_document_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "TargetType" => { + builder = builder.set_target_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "AttachmentsInformation" => { + builder = builder.set_attachments_information( + crate::json_deser::deser_list_attachment_information_list( + tokens, + )?, + ); + } + "Requires" => { + builder = builder.set_requires( + crate::json_deser::deser_list_document_requires_list(tokens)?, + ); + } + "Author" => { + builder = builder.set_author( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReviewInformation" => { + builder = builder.set_review_information( + crate::json_deser::deser_list_review_information_list(tokens)?, + ); + } + "ApprovedVersion" => { + builder = builder.set_approved_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PendingReviewVersion" => { + builder = builder.set_pending_review_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReviewStatus" => { + builder = builder.set_review_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_deletion_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryDeletionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TotalCount" => { + builder = builder.set_total_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RemainingCount" => { + builder = builder.set_remaining_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SummaryItems" => { + builder = builder.set_summary_items( + crate::json_deser::deser_list_inventory_deletion_summary_items( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_name_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_activation_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_activation(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_executions_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_association_execution(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_execution_targets_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_association_execution_target( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_automation_execution_metadata_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_automation_execution_metadata( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_step_execution_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_step_execution(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_patch(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_account_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_account_sharing_info_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_account_sharing_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_association_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_instance_association(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_effective_patch_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_effective_patch(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_association_status_infos<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_instance_association_status_info( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_information_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_instance_information(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_compliance_data_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_patch_compliance_data(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_patch_state_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_instance_patch_state(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_patch_states_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_instance_patch_state(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_deletions_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inventory_deletion_status_item( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_execution_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_execution( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_execution_task_invocation_identity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_execution_task_invocation_identity(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_execution_task_identity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_execution_task_identity(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_identity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_identity(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_scheduled_window_execution_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_scheduled_window_execution(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_windows_for_target_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_identity_for_target(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_target_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_target(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_task_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_maintenance_window_task(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_item_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ops_item_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_metadata_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_parameter_metadata(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_baseline_identity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_patch_baseline_identity(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_group_patch_baseline_mapping_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_patch_group_patch_baseline_mapping( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_properties_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_patch_property_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_session_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_session(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_automation_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutomationExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecutionId" => { + builder = builder.set_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionStartTime" => { + builder = builder.set_execution_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExecutionEndTime" => { + builder = builder.set_execution_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "AutomationExecutionStatus" => { + builder = builder.set_automation_execution_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutomationExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StepExecutions" => { + builder = builder.set_step_executions( + crate::json_deser::deser_list_step_execution_list(tokens)?, + ); + } + "StepExecutionsTruncated" => { + builder = builder.set_step_executions_truncated( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "Outputs" => { + builder = builder.set_outputs( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "FailureMessage" => { + builder = builder.set_failure_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExecutionMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ParentAutomationExecutionId" => { + builder = builder.set_parent_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutedBy" => { + builder = builder.set_executed_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentStepName" => { + builder = builder.set_current_step_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentAction" => { + builder = builder.set_current_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetParameterName" => { + builder = builder.set_target_parameter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TargetMaps" => { + builder = builder.set_target_maps( + crate::json_deser::deser_list_target_maps(tokens)?, + ); + } + "ResolvedTargets" => { + builder = builder.set_resolved_targets( + crate::json_deser::deser_structure_resolved_targets(tokens)?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Target" => { + builder = builder.set_target( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetLocations" => { + builder = builder.set_target_locations( + crate::json_deser::deser_list_target_locations(tokens)?, + ); + } + "ProgressCounters" => { + builder = builder.set_progress_counters( + crate::json_deser::deser_structure_progress_counters(tokens)?, + ); + } + "AutomationSubtype" => { + builder = builder.set_automation_subtype( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutomationSubtype::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ScheduledTime" => { + builder = builder.set_scheduled_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Runbooks" => { + builder = builder + .set_runbooks(crate::json_deser::deser_list_runbooks(tokens)?); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ChangeRequestName" => { + builder = builder.set_change_request_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_cloud_watch_output_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CloudWatchOutputConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CloudWatchLogGroupName" => { + builder = builder.set_cloud_watch_log_group_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudWatchOutputEnabled" => { + builder = builder.set_cloud_watch_output_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_requires_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_document_requires(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attachment_content_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_attachment_content(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_result_entity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inventory_result_entity(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_item_schema_result_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inventory_item_schema(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_execution_task_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_task_parameters_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::vec::Vec< + std::collections::HashMap< + std::string::String, + crate::model::MaintenanceWindowTaskParameterValueExpression, + >, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_map_maintenance_window_task_parameters( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_targets<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_target(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_maintenance_window_task_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::collections::HashMap< + std::string::String, + crate::model::MaintenanceWindowTaskParameterValueExpression, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_structure_maintenance_window_task_parameter_value_expression(tokens)? + ; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_task_invocation_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowTaskInvocationParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "RunCommand" => { + builder = builder.set_run_command( + crate::json_deser::deser_structure_maintenance_window_run_command_parameters(tokens)? + ); + } + "Automation" => { + builder = builder.set_automation( + crate::json_deser::deser_structure_maintenance_window_automation_parameters(tokens)? + ); + } + "StepFunctions" => { + builder = builder.set_step_functions( + crate::json_deser::deser_structure_maintenance_window_step_functions_parameters(tokens)? + ); + } + "Lambda" => { + builder = builder.set_lambda( + crate::json_deser::deser_structure_maintenance_window_lambda_parameters(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_logging_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::LoggingInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3BucketName" => { + builder = builder.set_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3KeyPrefix" => { + builder = builder.set_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "S3Region" => { + builder = builder.set_s3_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreatedBy" => { + builder = builder.set_created_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsItemType" => { + builder = builder.set_ops_item_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTime" => { + builder = builder.set_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Notifications" => { + builder = builder.set_notifications( + crate::json_deser::deser_list_ops_item_notifications(tokens)?, + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RelatedOpsItems" => { + builder = builder.set_related_ops_items( + crate::json_deser::deser_list_related_ops_items(tokens)?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OpsItemStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Title" => { + builder = builder.set_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperationalData" => { + builder = builder.set_operational_data( + crate::json_deser::deser_map_ops_item_operational_data(tokens)?, + ); + } + "Category" => { + builder = builder.set_category( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActualStartTime" => { + builder = builder.set_actual_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ActualEndTime" => { + builder = builder.set_actual_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PlannedStartTime" => { + builder = builder.set_planned_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PlannedEndTime" => { + builder = builder.set_planned_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_metadata_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_metadata_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_entity_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ops_entity(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_parameter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Parameter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Selector" => { + builder = builder.set_selector( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SourceResult" => { + builder = builder.set_source_result( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedDate" => { + builder = builder.set_last_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataType" => { + builder = builder.set_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_history_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_parameter_history(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_parameter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_patch_filter_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchFilterGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PatchFilters" => { + builder = builder.set_patch_filters( + crate::json_deser::deser_list_patch_filter_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_rule_group<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchRuleGroup::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PatchRules" => { + builder = builder.set_patch_rules( + crate::json_deser::deser_list_patch_rule_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_group_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_source_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_patch_source(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_service_setting<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ServiceSetting::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SettingId" => { + builder = builder.set_setting_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SettingValue" => { + builder = builder.set_setting_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedDate" => { + builder = builder.set_last_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedUser" => { + builder = builder.set_last_modified_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ARN" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_label_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_association(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_association_version_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_association_version_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_command_invocation_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_command_invocation(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_command_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_command(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compliance_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_compliance_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_compliance_summary_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_compliance_summary_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_document_metadata_response_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentMetadataResponseInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReviewerResponse" => { + builder = builder.set_reviewer_response( + crate::json_deser::deser_list_document_reviewer_response_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_identifier_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_document_identifier(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_version_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_document_version_info(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_item_entry_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_inventory_item_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_item_event_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_ops_item_event_summary(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_item_related_item_summaries<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_ops_item_related_item_summary( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_metadata_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_ops_metadata(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_compliance_summary_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_resource_compliance_summary_item( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_data_sync_item_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_resource_data_sync_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_tag_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_tag(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_command<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Command::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CommandId" => { + builder = builder.set_command_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Comment" => { + builder = builder.set_comment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExpiresAfter" => { + builder = builder.set_expires_after( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters(tokens)?, + ); + } + "InstanceIds" => { + builder = builder.set_instance_ids( + crate::json_deser::deser_list_instance_id_list(tokens)?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "RequestedDateTime" => { + builder = builder.set_requested_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::CommandStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3Region" => { + builder = builder.set_output_s3_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3BucketName" => { + builder = builder.set_output_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3KeyPrefix" => { + builder = builder.set_output_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetCount" => { + builder = builder.set_target_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "CompletedCount" => { + builder = builder.set_completed_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ErrorCount" => { + builder = builder.set_error_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "DeliveryTimedOutCount" => { + builder = builder.set_delivery_timed_out_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ServiceRole" => { + builder = builder.set_service_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotificationConfig" => { + builder = builder.set_notification_config( + crate::json_deser::deser_structure_notification_config(tokens)?, + ); + } + "CloudWatchOutputConfig" => { + builder = builder.set_cloud_watch_output_config( + crate::json_deser::deser_structure_cloud_watch_output_config( + tokens, + )?, + ); + } + "TimeoutSeconds" => { + builder = builder.set_timeout_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_document_default_version_description<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentDefaultVersionDescription::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultVersion" => { + builder = builder.set_default_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultVersionName" => { + builder = builder.set_default_version_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Date" => { + builder = builder.set_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationStatusName::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdditionalInfo" => { + builder = builder.set_additional_info( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_overview<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationOverview::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DetailedStatus" => { + builder = builder.set_detailed_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationStatusAggregatedCount" => { + builder = builder.set_association_status_aggregated_count( + crate::json_deser::deser_map_association_status_aggregated_count(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_parameter_value_list(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_association_output_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceAssociationOutputLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3Location" => { + builder = builder.set_s3_location( + crate::json_deser::deser_structure_s3_output_location(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_calendar_name_or_arn_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_target_locations<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_target_location(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_failed_create_association<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailedCreateAssociation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Entry" => { + builder = builder.set_entry( + crate::json_deser::deser_structure_create_association_batch_request_entry(tokens)? + ); + } + "Message" => { + builder = builder.set_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Fault" => { + builder = builder.set_fault( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::Fault::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_parameter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_document_parameter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_platform_type_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PlatformType::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_attachment_information_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_attachment_information(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_review_information_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_review_information(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_deletion_summary_items<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inventory_deletion_summary_item( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_activation<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Activation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ActivationId" => { + builder = builder.set_activation_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultInstanceName" => { + builder = builder.set_default_instance_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IamRole" => { + builder = builder.set_iam_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RegistrationLimit" => { + builder = builder.set_registration_limit( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RegistrationsCount" => { + builder = builder.set_registrations_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ExpirationDate" => { + builder = builder.set_expiration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Expired" => { + builder = builder.set_expired( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionId" => { + builder = builder.set_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DetailedStatus" => { + builder = builder.set_detailed_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTime" => { + builder = builder.set_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastExecutionDate" => { + builder = builder.set_last_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ResourceCountByStatus" => { + builder = builder.set_resource_count_by_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_execution_target<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationExecutionTarget::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionId" => { + builder = builder.set_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DetailedStatus" => { + builder = builder.set_detailed_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastExecutionDate" => { + builder = builder.set_last_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OutputSource" => { + builder = builder.set_output_source( + crate::json_deser::deser_structure_output_source(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_automation_execution_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AutomationExecutionMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AutomationExecutionId" => { + builder = builder.set_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutomationExecutionStatus" => { + builder = builder.set_automation_execution_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutomationExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ExecutionStartTime" => { + builder = builder.set_execution_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExecutionEndTime" => { + builder = builder.set_execution_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExecutedBy" => { + builder = builder.set_executed_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LogFile" => { + builder = builder.set_log_file( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Outputs" => { + builder = builder.set_outputs( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "Mode" => { + builder = builder.set_mode( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ExecutionMode::from(u.as_ref())) + }) + .transpose()?, + ); + } + "ParentAutomationExecutionId" => { + builder = builder.set_parent_automation_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentStepName" => { + builder = builder.set_current_step_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CurrentAction" => { + builder = builder.set_current_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureMessage" => { + builder = builder.set_failure_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetParameterName" => { + builder = builder.set_target_parameter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TargetMaps" => { + builder = builder.set_target_maps( + crate::json_deser::deser_list_target_maps(tokens)?, + ); + } + "ResolvedTargets" => { + builder = builder.set_resolved_targets( + crate::json_deser::deser_structure_resolved_targets(tokens)?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Target" => { + builder = builder.set_target( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AutomationType" => { + builder = builder.set_automation_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::AutomationType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "AutomationSubtype" => { + builder = builder.set_automation_subtype( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutomationSubtype::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ScheduledTime" => { + builder = builder.set_scheduled_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Runbooks" => { + builder = builder + .set_runbooks(crate::json_deser::deser_list_runbooks(tokens)?); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ChangeRequestName" => { + builder = builder.set_change_request_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_step_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::StepExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "StepName" => { + builder = builder.set_step_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Action" => { + builder = builder.set_action( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TimeoutSeconds" => { + builder = builder.set_timeout_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "OnFailure" => { + builder = builder.set_on_failure( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxAttempts" => { + builder = builder.set_max_attempts( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ExecutionStartTime" => { + builder = builder.set_execution_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExecutionEndTime" => { + builder = builder.set_execution_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "StepStatus" => { + builder = builder.set_step_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AutomationExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ResponseCode" => { + builder = builder.set_response_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Inputs" => { + builder = builder.set_inputs( + crate::json_deser::deser_map_normal_string_map(tokens)?, + ); + } + "Outputs" => { + builder = builder.set_outputs( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "Response" => { + builder = builder.set_response( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureMessage" => { + builder = builder.set_failure_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureDetails" => { + builder = builder.set_failure_details( + crate::json_deser::deser_structure_failure_details(tokens)?, + ); + } + "StepExecutionId" => { + builder = builder.set_step_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OverriddenParameters" => { + builder = builder.set_overridden_parameters( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "IsEnd" => { + builder = builder.set_is_end( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "NextStep" => { + builder = builder.set_next_step( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IsCritical" => { + builder = builder.set_is_critical( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "ValidNextSteps" => { + builder = builder.set_valid_next_steps( + crate::json_deser::deser_list_valid_next_step_list(tokens)?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TargetLocation" => { + builder = builder.set_target_location( + crate::json_deser::deser_structure_target_location(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Patch::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReleaseDate" => { + builder = builder.set_release_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Title" => { + builder = builder.set_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContentUrl" => { + builder = builder.set_content_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Vendor" => { + builder = builder.set_vendor( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ProductFamily" => { + builder = builder.set_product_family( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Product" => { + builder = builder.set_product( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Classification" => { + builder = builder.set_classification( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MsrcSeverity" => { + builder = builder.set_msrc_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KbNumber" => { + builder = builder.set_kb_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MsrcNumber" => { + builder = builder.set_msrc_number( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Language" => { + builder = builder.set_language( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AdvisoryIds" => { + builder = builder.set_advisory_ids( + crate::json_deser::deser_list_patch_advisory_id_list(tokens)?, + ); + } + "BugzillaIds" => { + builder = builder.set_bugzilla_ids( + crate::json_deser::deser_list_patch_bugzilla_id_list(tokens)?, + ); + } + "CVEIds" => { + builder = builder.set_cve_ids( + crate::json_deser::deser_list_patch_cve_id_list(tokens)?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Epoch" => { + builder = builder.set_epoch( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Release" => { + builder = builder.set_release( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Arch" => { + builder = builder.set_arch( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Repository" => { + builder = builder.set_repository( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_account_sharing_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AccountSharingInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AccountId" => { + builder = builder.set_account_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SharedDocumentVersion" => { + builder = builder.set_shared_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_association<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceAssociation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Content" => { + builder = builder.set_content( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_effective_patch<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::EffectivePatch::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Patch" => { + builder = builder + .set_patch(crate::json_deser::deser_structure_patch(tokens)?); + } + "PatchStatus" => { + builder = builder.set_patch_status( + crate::json_deser::deser_structure_patch_status(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_association_status_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceAssociationStatusInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionDate" => { + builder = builder.set_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DetailedStatus" => { + builder = builder.set_detailed_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionSummary" => { + builder = builder.set_execution_summary( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ErrorCode" => { + builder = builder.set_error_code( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputUrl" => { + builder = builder.set_output_url( + crate::json_deser::deser_structure_instance_association_output_url(tokens)? + ); + } + "AssociationName" => { + builder = builder.set_association_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_information<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceInformation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PingStatus" => { + builder = builder.set_ping_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PingStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "LastPingDateTime" => { + builder = builder.set_last_ping_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "AgentVersion" => { + builder = builder.set_agent_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IsLatestVersion" => { + builder = builder.set_is_latest_version( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "PlatformType" => { + builder = builder.set_platform_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PlatformType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "PlatformName" => { + builder = builder.set_platform_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PlatformVersion" => { + builder = builder.set_platform_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActivationId" => { + builder = builder.set_activation_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IamRole" => { + builder = builder.set_iam_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RegistrationDate" => { + builder = builder.set_registration_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ResourceType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "IPAddress" => { + builder = builder.set_ip_address( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ComputerName" => { + builder = builder.set_computer_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationStatus" => { + builder = builder.set_association_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastAssociationExecutionDate" => { + builder = builder.set_last_association_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastSuccessfulAssociationExecutionDate" => { + builder = builder.set_last_successful_association_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "AssociationOverview" => { + builder = builder.set_association_overview( + crate::json_deser::deser_structure_instance_aggregated_association_overview(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_compliance_data<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchComplianceData::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Title" => { + builder = builder.set_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "KBId" => { + builder = builder.set_kb_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Classification" => { + builder = builder.set_classification( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchComplianceDataState::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "InstalledTime" => { + builder = builder.set_installed_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "CVEIds" => { + builder = builder.set_cve_ids( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_patch_state<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstancePatchState::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PatchGroup" => { + builder = builder.set_patch_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SnapshotId" => { + builder = builder.set_snapshot_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstallOverrideList" => { + builder = builder.set_install_override_list( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OwnerInformation" => { + builder = builder.set_owner_information( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstalledCount" => { + builder = builder.set_installed_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstalledOtherCount" => { + builder = builder.set_installed_other_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstalledPendingRebootCount" => { + builder = builder.set_installed_pending_reboot_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InstalledRejectedCount" => { + builder = builder.set_installed_rejected_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MissingCount" => { + builder = builder.set_missing_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "FailedCount" => { + builder = builder.set_failed_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "UnreportedNotApplicableCount" => { + builder = builder.set_unreported_not_applicable_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "NotApplicableCount" => { + builder = builder.set_not_applicable_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "OperationStartTime" => { + builder = builder.set_operation_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OperationEndTime" => { + builder = builder.set_operation_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Operation" => { + builder = builder.set_operation( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchOperationType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastNoRebootInstallOperationTime" => { + builder = builder.set_last_no_reboot_install_operation_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "RebootOption" => { + builder = builder.set_reboot_option( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::RebootOption::from(u.as_ref())) + }) + .transpose()?, + ); + } + "CriticalNonCompliantCount" => { + builder = builder.set_critical_non_compliant_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SecurityNonCompliantCount" => { + builder = builder.set_security_non_compliant_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "OtherNonCompliantCount" => { + builder = builder.set_other_non_compliant_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_deletion_status_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryDeletionStatusItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeletionId" => { + builder = builder.set_deletion_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeletionStartTime" => { + builder = builder.set_deletion_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastStatus" => { + builder = builder.set_last_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InventoryDeletionStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "LastStatusMessage" => { + builder = builder.set_last_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DeletionSummary" => { + builder = builder.set_deletion_summary( + crate::json_deser::deser_structure_inventory_deletion_summary( + tokens, + )?, + ); + } + "LastStatusUpdateTime" => { + builder = builder.set_last_status_update_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_execution_task_invocation_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::MaintenanceWindowExecutionTaskInvocationIdentity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskExecutionId" => { + builder = builder.set_task_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InvocationId" => { + builder = builder.set_invocation_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionId" => { + builder = builder.set_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskType" => { + builder = builder.set_task_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "OwnerInformation" => { + builder = builder.set_owner_information( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_execution_task_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowExecutionTaskIdentity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowExecutionId" => { + builder = builder.set_window_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskExecutionId" => { + builder = builder.set_task_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowExecutionStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartTime" => { + builder = builder.set_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndTime" => { + builder = builder.set_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "TaskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskType" => { + builder = builder.set_task_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowIdentity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Enabled" => { + builder = builder.set_enabled( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "Duration" => { + builder = builder.set_duration( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Cutoff" => { + builder = builder.set_cutoff( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Schedule" => { + builder = builder.set_schedule( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleTimezone" => { + builder = builder.set_schedule_timezone( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ScheduleOffset" => { + builder = builder.set_schedule_offset( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "EndDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StartDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NextExecutionTime" => { + builder = builder.set_next_execution_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_scheduled_window_execution<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ScheduledWindowExecution::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionTime" => { + builder = builder.set_execution_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_identity_for_target<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowIdentityForTarget::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_target<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowTarget::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTargetId" => { + builder = builder.set_window_target_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowResourceType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "OwnerInformation" => { + builder = builder.set_owner_information( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_task<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowTask::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "WindowId" => { + builder = builder.set_window_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "WindowTaskId" => { + builder = builder.set_window_task_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TaskArn" => { + builder = builder.set_task_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::MaintenanceWindowTaskType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "TaskParameters" => { + builder = builder.set_task_parameters( + crate::json_deser::deser_map_maintenance_window_task_parameters(tokens)? + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "LoggingInfo" => { + builder = builder.set_logging_info( + crate::json_deser::deser_structure_logging_info(tokens)?, + ); + } + "ServiceRoleArn" => { + builder = builder.set_service_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreatedBy" => { + builder = builder.set_created_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedTime" => { + builder = builder.set_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Priority" => { + builder = builder.set_priority( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "Source" => { + builder = builder.set_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::OpsItemStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Title" => { + builder = builder.set_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperationalData" => { + builder = builder.set_operational_data( + crate::json_deser::deser_map_ops_item_operational_data(tokens)?, + ); + } + "Category" => { + builder = builder.set_category( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsItemType" => { + builder = builder.set_ops_item_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ActualStartTime" => { + builder = builder.set_actual_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ActualEndTime" => { + builder = builder.set_actual_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PlannedStartTime" => { + builder = builder.set_planned_start_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "PlannedEndTime" => { + builder = builder.set_planned_end_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParameterMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedDate" => { + builder = builder.set_last_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedUser" => { + builder = builder.set_last_modified_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AllowedPattern" => { + builder = builder.set_allowed_pattern( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Tier" => { + builder = builder.set_tier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterTier::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Policies" => { + builder = builder.set_policies( + crate::json_deser::deser_list_parameter_policy_list(tokens)?, + ); + } + "DataType" => { + builder = builder.set_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_baseline_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchBaselineIdentity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BaselineId" => { + builder = builder.set_baseline_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BaselineName" => { + builder = builder.set_baseline_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OperatingSystem" => { + builder = builder.set_operating_system( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OperatingSystem::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "BaselineDescription" => { + builder = builder.set_baseline_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultBaseline" => { + builder = builder.set_default_baseline( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_group_patch_baseline_mapping<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchGroupPatchBaselineMapping::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PatchGroup" => { + builder = builder.set_patch_group( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "BaselineIdentity" => { + builder = builder.set_baseline_identity( + crate::json_deser::deser_structure_patch_baseline_identity( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_patch_property_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_session<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Session::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SessionId" => { + builder = builder.set_session_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Target" => { + builder = builder.set_target( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::SessionStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StartDate" => { + builder = builder.set_start_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "EndDate" => { + builder = builder.set_end_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Owner" => { + builder = builder.set_owner( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Details" => { + builder = builder.set_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputUrl" => { + builder = builder.set_output_url( + crate::json_deser::deser_structure_session_manager_output_url( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_automation_parameter_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_list_automation_parameter_value_list(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_target_maps<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option< + std::vec::Vec< + std::collections::HashMap>, + >, + >, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_target_map(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_resolved_targets<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResolvedTargets::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ParameterValues" => { + builder = builder.set_parameter_values( + crate::json_deser::deser_list_target_parameter_list(tokens)?, + ); + } + "Truncated" => { + builder = builder.set_truncated( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_progress_counters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ProgressCounters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TotalSteps" => { + builder = builder.set_total_steps( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SuccessSteps" => { + builder = builder.set_success_steps( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "FailedSteps" => { + builder = builder.set_failed_steps( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "CancelledSteps" => { + builder = builder.set_cancelled_steps( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "TimedOutSteps" => { + builder = builder.set_timed_out_steps( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_runbooks<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_runbook(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_document_requires<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentRequires::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attachment_content<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AttachmentContent::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Size" => { + builder = builder.set_size( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Hash" => { + builder = builder.set_hash( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "HashType" => { + builder = builder.set_hash_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AttachmentHashType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Url" => { + builder = builder.set_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_result_entity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryResultEntity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Data" => { + builder = builder.set_data( + crate::json_deser::deser_map_inventory_result_item_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_item_schema<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryItemSchema::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Attributes" => { + builder = builder.set_attributes( + crate::json_deser::deser_list_inventory_item_attribute_list( + tokens, + )?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_target<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Target::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_target_values(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_task_parameter_value_expression<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = + crate::model::MaintenanceWindowTaskParameterValueExpression::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_maintenance_window_task_parameter_value_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_run_command_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowRunCommandParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Comment" => { + builder = builder.set_comment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudWatchOutputConfig" => { + builder = builder.set_cloud_watch_output_config( + crate::json_deser::deser_structure_cloud_watch_output_config( + tokens, + )?, + ); + } + "DocumentHash" => { + builder = builder.set_document_hash( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentHashType" => { + builder = builder.set_document_hash_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DocumentHashType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotificationConfig" => { + builder = builder.set_notification_config( + crate::json_deser::deser_structure_notification_config(tokens)?, + ); + } + "OutputS3BucketName" => { + builder = builder.set_output_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3KeyPrefix" => { + builder = builder.set_output_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters(tokens)?, + ); + } + "ServiceRoleArn" => { + builder = builder.set_service_role_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TimeoutSeconds" => { + builder = builder.set_timeout_seconds( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_automation_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowAutomationParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_step_functions_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowStepFunctionsParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Input" => { + builder = builder.set_input( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_maintenance_window_lambda_parameters<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MaintenanceWindowLambdaParameters::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ClientContext" => { + builder = builder.set_client_context( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Qualifier" => { + builder = builder.set_qualifier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Payload" => { + builder = builder.set_payload( + smithy_json::deserialize::token::expect_blob_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_item_notifications<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_ops_item_notification(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_related_ops_items<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_related_ops_item(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_ops_item_operational_data<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_ops_item_data_value(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_metadata_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::MetadataValue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_entity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsEntity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Data" => { + builder = builder.set_data( + crate::json_deser::deser_map_ops_entity_item_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter_history<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParameterHistory::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "KeyId" => { + builder = builder.set_key_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedDate" => { + builder = builder.set_last_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedUser" => { + builder = builder.set_last_modified_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AllowedPattern" => { + builder = builder.set_allowed_pattern( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i64()), + ); + } + "Labels" => { + builder = builder.set_labels( + crate::json_deser::deser_list_parameter_label_list(tokens)?, + ); + } + "Tier" => { + builder = builder.set_tier( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ParameterTier::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Policies" => { + builder = builder.set_policies( + crate::json_deser::deser_list_parameter_policy_list(tokens)?, + ); + } + "DataType" => { + builder = builder.set_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_filter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_patch_filter(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_rule_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_patch_rule(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_patch_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Products" => { + builder = builder.set_products( + crate::json_deser::deser_list_patch_source_product_list( + tokens, + )?, + ); + } + "Configuration" => { + builder = builder.set_configuration( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Association::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "LastExecutionDate" => { + builder = builder.set_last_execution_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Overview" => { + builder = builder.set_overview( + crate::json_deser::deser_structure_association_overview( + tokens, + )?, + ); + } + "ScheduleExpression" => { + builder = builder.set_schedule_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationName" => { + builder = builder.set_association_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_association_version_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AssociationVersionInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationVersion" => { + builder = builder.set_association_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters(tokens)?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "ScheduleExpression" => { + builder = builder.set_schedule_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputLocation" => { + builder = builder.set_output_location( + crate::json_deser::deser_structure_instance_association_output_location(tokens)? + ); + } + "AssociationName" => { + builder = builder.set_association_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ComplianceSeverity" => { + builder = builder.set_compliance_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationComplianceSeverity::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "SyncCompliance" => { + builder = builder.set_sync_compliance( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationSyncCompliance::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ApplyOnlyAtCronInterval" => { + builder = builder.set_apply_only_at_cron_interval( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CalendarNames" => { + builder = builder.set_calendar_names( + crate::json_deser::deser_list_calendar_name_or_arn_list( + tokens, + )?, + ); + } + "TargetLocations" => { + builder = builder.set_target_locations( + crate::json_deser::deser_list_target_locations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_command_invocation<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CommandInvocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CommandId" => { + builder = builder.set_command_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceName" => { + builder = builder.set_instance_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Comment" => { + builder = builder.set_comment( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RequestedDateTime" => { + builder = builder.set_requested_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CommandInvocationStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TraceOutput" => { + builder = builder.set_trace_output( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardOutputUrl" => { + builder = builder.set_standard_output_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardErrorUrl" => { + builder = builder.set_standard_error_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CommandPlugins" => { + builder = builder.set_command_plugins( + crate::json_deser::deser_list_command_plugin_list(tokens)?, + ); + } + "ServiceRole" => { + builder = builder.set_service_role( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotificationConfig" => { + builder = builder.set_notification_config( + crate::json_deser::deser_structure_notification_config(tokens)?, + ); + } + "CloudWatchOutputConfig" => { + builder = builder.set_cloud_watch_output_config( + crate::json_deser::deser_structure_cloud_watch_output_config( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compliance_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComplianceItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ComplianceType" => { + builder = builder.set_compliance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Id" => { + builder = builder.set_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Title" => { + builder = builder.set_title( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ComplianceStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Severity" => { + builder = builder.set_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ComplianceSeverity::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ExecutionSummary" => { + builder = builder.set_execution_summary( + crate::json_deser::deser_structure_compliance_execution_summary(tokens)? + ); + } + "Details" => { + builder = builder.set_details( + crate::json_deser::deser_map_compliance_item_details(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compliance_summary_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComplianceSummaryItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ComplianceType" => { + builder = builder.set_compliance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CompliantSummary" => { + builder = builder.set_compliant_summary( + crate::json_deser::deser_structure_compliant_summary(tokens)?, + ); + } + "NonCompliantSummary" => { + builder = builder.set_non_compliant_summary( + crate::json_deser::deser_structure_non_compliant_summary( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_reviewer_response_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_document_reviewer_response_source( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_document_identifier<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentIdentifier::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Owner" => { + builder = builder.set_owner( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionName" => { + builder = builder.set_version_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PlatformTypes" => { + builder = builder.set_platform_types( + crate::json_deser::deser_list_platform_type_list(tokens)?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentType" => { + builder = builder.set_document_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentType::from(u.as_ref())) + }) + .transpose()?, + ); + } + "SchemaVersion" => { + builder = builder.set_schema_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentFormat" => { + builder = builder.set_document_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "TargetType" => { + builder = builder.set_target_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Tags" => { + builder = builder + .set_tags(crate::json_deser::deser_list_tag_list(tokens)?); + } + "Requires" => { + builder = builder.set_requires( + crate::json_deser::deser_list_document_requires_list(tokens)?, + ); + } + "ReviewStatus" => { + builder = builder.set_review_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Author" => { + builder = builder.set_author( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_document_version_info<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentVersionInfo::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DisplayName" => { + builder = builder.set_display_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "VersionName" => { + builder = builder.set_version_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedDate" => { + builder = builder.set_created_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "IsDefaultVersion" => { + builder = builder.set_is_default_version( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "DocumentFormat" => { + builder = builder.set_document_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentFormat::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::DocumentStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "StatusInformation" => { + builder = builder.set_status_information( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ReviewStatus" => { + builder = builder.set_review_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_inventory_item_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item_event_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemEventSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EventId" => { + builder = builder.set_event_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Source" => { + builder = builder.set_source( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DetailType" => { + builder = builder.set_detail_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Detail" => { + builder = builder.set_detail( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_ops_item_identity(tokens)?, + ); + } + "CreatedTime" => { + builder = builder.set_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item_related_item_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemRelatedItemSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationId" => { + builder = builder.set_association_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AssociationType" => { + builder = builder.set_association_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceUri" => { + builder = builder.set_resource_uri( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreatedBy" => { + builder = builder.set_created_by( + crate::json_deser::deser_structure_ops_item_identity(tokens)?, + ); + } + "CreatedTime" => { + builder = builder.set_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedBy" => { + builder = builder.set_last_modified_by( + crate::json_deser::deser_structure_ops_item_identity(tokens)?, + ); + } + "LastModifiedTime" => { + builder = builder.set_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_metadata<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsMetadata::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ResourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OpsMetadataArn" => { + builder = builder.set_ops_metadata_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "LastModifiedDate" => { + builder = builder.set_last_modified_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastModifiedUser" => { + builder = builder.set_last_modified_user( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CreationDate" => { + builder = builder.set_creation_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_compliance_summary_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceComplianceSummaryItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ComplianceType" => { + builder = builder.set_compliance_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceType" => { + builder = builder.set_resource_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResourceId" => { + builder = builder.set_resource_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ComplianceStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "OverallSeverity" => { + builder = builder.set_overall_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ComplianceSeverity::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ExecutionSummary" => { + builder = builder.set_execution_summary( + crate::json_deser::deser_structure_compliance_execution_summary(tokens)? + ); + } + "CompliantSummary" => { + builder = builder.set_compliant_summary( + crate::json_deser::deser_structure_compliant_summary(tokens)?, + ); + } + "NonCompliantSummary" => { + builder = builder.set_non_compliant_summary( + crate::json_deser::deser_structure_non_compliant_summary( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SyncName" => { + builder = builder.set_sync_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SyncType" => { + builder = builder.set_sync_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SyncSource" => { + builder = builder.set_sync_source( + crate::json_deser::deser_structure_resource_data_sync_source_with_state(tokens)? + ); + } + "S3Destination" => { + builder = builder.set_s3_destination( + crate::json_deser::deser_structure_resource_data_sync_s3_destination(tokens)? + ); + } + "LastSyncTime" => { + builder = builder.set_last_sync_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastSuccessfulSyncTime" => { + builder = builder.set_last_successful_sync_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "SyncLastModifiedTime" => { + builder = builder.set_sync_last_modified_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastStatus" => { + builder = builder.set_last_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::LastResourceDataSyncStatus::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "SyncCreatedTime" => { + builder = builder.set_sync_created_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "LastSyncStatusMessage" => { + builder = builder.set_last_sync_status_message( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_tag<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Tag::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_instance_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_notification_config<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NotificationConfig::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NotificationArn" => { + builder = builder.set_notification_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "NotificationEvents" => { + builder = builder.set_notification_events( + crate::json_deser::deser_list_notification_event_list(tokens)?, + ); + } + "NotificationType" => { + builder = builder.set_notification_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::NotificationType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_association_status_aggregated_count<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()); + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_s3_output_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3OutputLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputS3Region" => { + builder = builder.set_output_s3_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3BucketName" => { + builder = builder.set_output_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3KeyPrefix" => { + builder = builder.set_output_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_target_location<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::TargetLocation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Accounts" => { + builder = builder + .set_accounts(crate::json_deser::deser_list_accounts(tokens)?); + } + "Regions" => { + builder = builder + .set_regions(crate::json_deser::deser_list_regions(tokens)?); + } + "TargetLocationMaxConcurrency" => { + builder = builder.set_target_location_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetLocationMaxErrors" => { + builder = builder.set_target_location_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionRoleName" => { + builder = builder.set_execution_role_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_create_association_batch_request_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CreateAssociationBatchRequestEntry::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceId" => { + builder = builder.set_instance_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_parameters(tokens)?, + ); + } + "AutomationTargetParameterName" => { + builder = builder.set_automation_target_parameter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "ScheduleExpression" => { + builder = builder.set_schedule_expression( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputLocation" => { + builder = builder.set_output_location( + crate::json_deser::deser_structure_instance_association_output_location(tokens)? + ); + } + "AssociationName" => { + builder = builder.set_association_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ComplianceSeverity" => { + builder = builder.set_compliance_severity( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationComplianceSeverity::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "SyncCompliance" => { + builder = builder.set_sync_compliance( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::AssociationSyncCompliance::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "ApplyOnlyAtCronInterval" => { + builder = builder.set_apply_only_at_cron_interval( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "CalendarNames" => { + builder = builder.set_calendar_names( + crate::json_deser::deser_list_calendar_name_or_arn_list( + tokens, + )?, + ); + } + "TargetLocations" => { + builder = builder.set_target_locations( + crate::json_deser::deser_list_target_locations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_document_parameter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentParameter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DocumentParameterType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Description" => { + builder = builder.set_description( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DefaultValue" => { + builder = builder.set_default_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_attachment_information<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::AttachmentInformation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_review_information<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ReviewInformation::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ReviewedTime" => { + builder = builder.set_reviewed_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Reviewer" => { + builder = builder.set_reviewer( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_deletion_summary_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryDeletionSummaryItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Version" => { + builder = builder.set_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Count" => { + builder = builder.set_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "RemainingCount" => { + builder = builder.set_remaining_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_output_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OutputSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputSourceId" => { + builder = builder.set_output_source_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputSourceType" => { + builder = builder.set_output_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_normal_string_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_failure_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::FailureDetails::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "FailureStage" => { + builder = builder.set_failure_stage( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "FailureType" => { + builder = builder.set_failure_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Details" => { + builder = builder.set_details( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_valid_next_step_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_advisory_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_bugzilla_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_cve_id_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_patch_status<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchStatus::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DeploymentStatus" => { + builder = builder.set_deployment_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchDeploymentStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ComplianceLevel" => { + builder = builder.set_compliance_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchComplianceLevel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ApprovalDate" => { + builder = builder.set_approval_date( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_association_output_url<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceAssociationOutputUrl::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputUrl" => { + builder = builder.set_s3_output_url( + crate::json_deser::deser_structure_s3_output_url(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_instance_aggregated_association_overview<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InstanceAggregatedAssociationOverview::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DetailedStatus" => { + builder = builder.set_detailed_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "InstanceAssociationStatusAggregatedCount" => { + builder = builder.set_instance_association_status_aggregated_count( + crate::json_deser::deser_map_instance_association_status_aggregated_count(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_parameter_policy_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_parameter_inline_policy(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_session_manager_output_url<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SessionManagerOutputUrl::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "S3OutputUrl" => { + builder = builder.set_s3_output_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CloudWatchOutputUrl" => { + builder = builder.set_cloud_watch_output_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_automation_parameter_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_target_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_list_target_map_value_list(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_target_parameter_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_runbook<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::Runbook::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DocumentName" => { + builder = builder.set_document_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DocumentVersion" => { + builder = builder.set_document_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Parameters" => { + builder = builder.set_parameters( + crate::json_deser::deser_map_automation_parameter_map(tokens)?, + ); + } + "TargetParameterName" => { + builder = builder.set_target_parameter_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Targets" => { + builder = builder + .set_targets(crate::json_deser::deser_list_targets(tokens)?); + } + "MaxConcurrency" => { + builder = builder.set_max_concurrency( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "MaxErrors" => { + builder = builder.set_max_errors( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetLocations" => { + builder = builder.set_target_locations( + crate::json_deser::deser_list_target_locations(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_inventory_result_item_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + crate::json_deser::deser_structure_inventory_result_item(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_inventory_item_attribute_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_inventory_item_attribute(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_target_values<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_maintenance_window_task_parameter_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_ops_item_notification<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemNotification::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_related_ops_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::RelatedOpsItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OpsItemId" => { + builder = builder.set_ops_item_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item_data_value<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemDataValue::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Value" => { + builder = builder.set_value( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::OpsItemDataType::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_ops_entity_item_map<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = crate::json_deser::deser_structure_ops_entity_item(tokens)?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_filter<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchFilter::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Key" => { + builder = builder.set_key( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::PatchFilterKey::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Values" => { + builder = builder.set_values( + crate::json_deser::deser_list_patch_filter_value_list(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_patch_rule<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::PatchRule::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PatchFilterGroup" => { + builder = builder.set_patch_filter_group( + crate::json_deser::deser_structure_patch_filter_group(tokens)?, + ); + } + "ComplianceLevel" => { + builder = builder.set_compliance_level( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::PatchComplianceLevel::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "ApproveAfterDays" => { + builder = builder.set_approve_after_days( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ApproveUntilDate" => { + builder = builder.set_approve_until_date( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EnableNonSecurity" => { + builder = builder.set_enable_non_security( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_source_product_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_command_plugin_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_structure_command_plugin(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_compliance_execution_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ComplianceExecutionSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "ExecutionTime" => { + builder = builder.set_execution_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ExecutionId" => { + builder = builder.set_execution_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ExecutionType" => { + builder = builder.set_execution_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_compliance_item_details<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_compliant_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CompliantSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CompliantCount" => { + builder = builder.set_compliant_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SeveritySummary" => { + builder = builder.set_severity_summary( + crate::json_deser::deser_structure_severity_summary(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_non_compliant_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::NonCompliantSummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "NonCompliantCount" => { + builder = builder.set_non_compliant_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "SeveritySummary" => { + builder = builder.set_severity_summary( + crate::json_deser::deser_structure_severity_summary(tokens)?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_document_reviewer_response_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentReviewerResponseSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CreateTime" => { + builder = builder.set_create_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "UpdatedTime" => { + builder = builder.set_updated_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ReviewStatus" => { + builder = builder.set_review_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::ReviewStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + "Comment" => { + builder = builder.set_comment( + crate::json_deser::deser_list_document_review_comment_list( + tokens, + )?, + ); + } + "Reviewer" => { + builder = builder.set_reviewer( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_item_identity<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsItemIdentity::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Arn" => { + builder = builder.set_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_source_with_state<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncSourceWithState::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "SourceType" => { + builder = builder.set_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AwsOrganizationsSource" => { + builder = builder.set_aws_organizations_source( + crate::json_deser::deser_structure_resource_data_sync_aws_organizations_source(tokens)? + ); + } + "SourceRegions" => { + builder = builder.set_source_regions( + crate::json_deser::deser_list_resource_data_sync_source_region_list(tokens)? + ); + } + "IncludeFutureRegions" => { + builder = builder.set_include_future_regions( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + "State" => { + builder = builder.set_state( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "EnableAllOpsDataSources" => { + builder = builder.set_enable_all_ops_data_sources( + smithy_json::deserialize::token::expect_bool_or_null( + tokens.next(), + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_s3_destination<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncS3Destination::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "BucketName" => { + builder = builder.set_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Prefix" => { + builder = builder.set_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SyncFormat" => { + builder = builder.set_sync_format( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::ResourceDataSyncS3Format::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "Region" => { + builder = builder.set_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "AWSKMSKeyARN" => { + builder = builder.set_awskms_key_arn( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DestinationDataSharing" => { + builder = builder.set_destination_data_sharing( + crate::json_deser::deser_structure_resource_data_sync_destination_data_sharing(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_notification_event_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::model::NotificationEvent::from(u.as_ref())) + }) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_accounts<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_regions<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_s3_output_url<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::S3OutputUrl::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OutputUrl" => { + builder = builder.set_output_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_instance_association_status_aggregated_count<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(|v| v.to_i32()); + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_parameter_inline_policy<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ParameterInlinePolicy::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "PolicyText" => { + builder = builder.set_policy_text( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PolicyType" => { + builder = builder.set_policy_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "PolicyStatus" => { + builder = builder.set_policy_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_target_map_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_inventory_result_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryResultItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "TypeName" => { + builder = builder.set_type_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "SchemaVersion" => { + builder = builder.set_schema_version( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "CaptureTime" => { + builder = builder.set_capture_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ContentHash" => { + builder = builder.set_content_hash( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Content" => { + builder = builder.set_content( + crate::json_deser::deser_list_inventory_item_entry_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_inventory_item_attribute<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::InventoryItemAttribute::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "DataType" => { + builder = builder.set_data_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::InventoryAttributeDataType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_ops_entity_item<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::OpsEntityItem::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CaptureTime" => { + builder = builder.set_capture_time( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Content" => { + builder = builder.set_content( + crate::json_deser::deser_list_ops_entity_item_entry_list( + tokens, + )?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_patch_filter_value_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_command_plugin<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::CommandPlugin::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Name" => { + builder = builder.set_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Status" => { + builder = builder.set_status( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::CommandPluginStatus::from(u.as_ref()) + }) + }) + .transpose()?, + ); + } + "StatusDetails" => { + builder = builder.set_status_details( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "ResponseCode" => { + builder = builder.set_response_code( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "ResponseStartDateTime" => { + builder = builder.set_response_start_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "ResponseFinishDateTime" => { + builder = builder.set_response_finish_date_time( + smithy_json::deserialize::token::expect_timestamp_or_null( + tokens.next(), + smithy_types::instant::Format::EpochSeconds, + )?, + ); + } + "Output" => { + builder = builder.set_output( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardOutputUrl" => { + builder = builder.set_standard_output_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "StandardErrorUrl" => { + builder = builder.set_standard_error_url( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3Region" => { + builder = builder.set_output_s3_region( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3BucketName" => { + builder = builder.set_output_s3_bucket_name( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OutputS3KeyPrefix" => { + builder = builder.set_output_s3_key_prefix( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_severity_summary<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::SeveritySummary::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "CriticalCount" => { + builder = builder.set_critical_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "HighCount" => { + builder = builder.set_high_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "MediumCount" => { + builder = builder.set_medium_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "LowCount" => { + builder = builder.set_low_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "InformationalCount" => { + builder = builder.set_informational_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + "UnspecifiedCount" => { + builder = builder.set_unspecified_count( + smithy_json::deserialize::token::expect_number_or_null( + tokens.next(), + )? + .map(|v| v.to_i32()), + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_document_review_comment_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_document_review_comment_source( + tokens, + )?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_aws_organizations_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncAwsOrganizationsSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OrganizationSourceType" => { + builder = builder.set_organization_source_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "OrganizationalUnits" => { + builder = builder.set_organizational_units( + crate::json_deser::deser_list_resource_data_sync_organizational_unit_list(tokens)? + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_data_sync_source_region_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result>, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_destination_data_sharing<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncDestinationDataSharing::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "DestinationDataSharingType" => { + builder = builder.set_destination_data_sharing_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_ops_entity_item_entry_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = crate::json_deser::deser_map_ops_entity_item_entry(tokens)?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +pub fn deser_structure_document_review_comment_source<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::DocumentReviewCommentSource::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| { + s.to_unescaped().map(|u| { + crate::model::DocumentReviewCommentType::from( + u.as_ref(), + ) + }) + }) + .transpose()?, + ); + } + "Content" => { + builder = builder.set_content( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_list_resource_data_sync_organizational_unit_list<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = + crate::json_deser::deser_structure_resource_data_sync_organizational_unit(tokens)? + ; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start array or null", + )), + } +} + +#[allow(clippy::type_complexity, non_snake_case)] +pub fn deser_map_ops_entity_item_entry<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result< + Option>, + smithy_json::deserialize::Error, +> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + let mut map = std::collections::HashMap::new(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + let key = key.to_unescaped().map(|u| u.into_owned())?; + let value = + smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + map.insert(key, value); + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(map)) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} + +pub fn deser_structure_resource_data_sync_organizational_unit<'a, I>( + tokens: &mut std::iter::Peekable, +) -> Result, smithy_json::deserialize::Error> +where + I: Iterator< + Item = Result, smithy_json::deserialize::Error>, + >, +{ + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::model::ResourceDataSyncOrganizationalUnit::builder(); + loop { + match tokens.next().transpose()? { + Some(smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(smithy_json::deserialize::Token::ObjectKey { key, .. }) => { + match key.to_unescaped()?.as_ref() { + "OrganizationalUnitId" => { + builder = builder.set_organizational_unit_id( + smithy_json::deserialize::token::expect_string_or_null( + tokens.next(), + )? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => smithy_json::deserialize::token::skip_value(tokens)?, + } + } + _ => { + return Err(smithy_json::deserialize::Error::custom( + "expected object key or end object", + )) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(smithy_json::deserialize::Error::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/ssm/src/json_errors.rs b/sdk/ssm/src/json_errors.rs new file mode 100644 index 000000000000..b8d4287b0c18 --- /dev/null +++ b/sdk/ssm/src/json_errors.rs @@ -0,0 +1,219 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +use bytes::Bytes; +use http::header::ToStrError; +use http::Response; +use smithy_json::deserialize::token::skip_value; +use smithy_json::deserialize::{json_token_iter, Error as DeserializeError, Token}; +use smithy_types::Error as SmithyError; +use std::borrow::Cow; + +// currently only used by AwsJson +#[allow(unused)] +pub fn is_error(response: &http::Response) -> bool { + !response.status().is_success() +} + +fn error_type_from_header(response: &http::Response) -> Result, ToStrError> { + response + .headers() + .get("X-Amzn-Errortype") + .map(|v| v.to_str()) + .transpose() +} + +fn sanitize_error_code(error_code: &str) -> &str { + // Trim a trailing URL from the error code, beginning with a `:` + let error_code = match error_code.find(':') { + Some(idx) => &error_code[..idx], + None => &error_code, + }; + + // Trim a prefixing namespace from the error code, beginning with a `#` + match error_code.find('#') { + Some(idx) => &error_code[idx + 1..], + None => &error_code, + } +} + +fn request_id(response: &Response) -> Option<&str> { + response + .headers() + .get("X-Amzn-Requestid") + .and_then(|v| v.to_str().ok()) +} + +struct ErrorBody<'a> { + code: Option>, + message: Option>, +} + +fn parse_error_body(bytes: &[u8]) -> Result { + let mut tokens = json_token_iter(bytes).peekable(); + let (mut typ, mut code, mut message) = (None, None, None); + if let Some(Token::StartObject { .. }) = tokens.next().transpose()? { + loop { + match tokens.next().transpose()? { + Some(Token::EndObject { .. }) => break, + Some(Token::ObjectKey { key, .. }) => { + if let Some(Ok(Token::ValueString { value, .. })) = tokens.peek() { + match key.as_escaped_str() { + "code" => code = Some(value.to_unescaped()?), + "__type" => typ = Some(value.to_unescaped()?), + "message" | "Message" | "errorMessage" => { + message = Some(value.to_unescaped()?) + } + _ => {} + } + } + skip_value(&mut tokens)?; + } + _ => { + return Err(DeserializeError::custom( + "expected object key or end object", + )) + } + } + } + if tokens.next().is_some() { + return Err(DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + } + Ok(ErrorBody { + code: code.or(typ), + message, + }) +} + +pub fn parse_generic_error(response: &Response) -> Result { + let ErrorBody { code, message } = parse_error_body(response.body().as_ref())?; + + let mut err_builder = SmithyError::builder(); + if let Some(code) = error_type_from_header(response) + .map_err(|_| DeserializeError::custom("X-Amzn-Errortype header was not valid UTF-8"))? + .or_else(|| code.as_deref()) + .map(|c| sanitize_error_code(c)) + { + err_builder.code(code); + } + if let Some(message) = message { + err_builder.message(message); + } + if let Some(request_id) = request_id(response) { + err_builder.request_id(request_id); + } + Ok(err_builder.build()) +} + +#[cfg(test)] +mod test { + use crate::json_errors::{parse_error_body, parse_generic_error, sanitize_error_code}; + use bytes::Bytes; + use smithy_types::Error; + use std::borrow::Cow; + + #[test] + fn generic_error() { + let response = http::Response::builder() + .header("X-Amzn-Requestid", "1234") + .body(Bytes::from_static( + br#"{ "__type": "FooError", "message": "Go to foo" }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("FooError") + .message("Go to foo") + .request_id("1234") + .build() + ) + } + + #[test] + fn error_type() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn code_takes_priority() { + assert_eq!( + Some(Cow::Borrowed("BarError")), + parse_error_body(br#"{ "code": "BarError", "__type": "FooError" }"#) + .unwrap() + .code + ); + } + + #[test] + fn ignore_unrecognized_fields() { + assert_eq!( + Some(Cow::Borrowed("FooError")), + parse_error_body(br#"{ "__type": "FooError", "asdf": 5, "fdsa": {}, "foo": "1" }"#) + .unwrap() + .code + ); + } + + #[test] + fn sanitize_namespace_and_url() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/"), + "FooError"); + } + + #[test] + fn sanitize_noop() { + assert_eq!(sanitize_error_code("FooError"), "FooError"); + } + + #[test] + fn sanitize_url() { + assert_eq!( + sanitize_error_code( + "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" + ), + "FooError" + ); + } + + #[test] + fn sanitize_namespace() { + assert_eq!( + sanitize_error_code("aws.protocoltests.restjson#FooError"), + "FooError" + ); + } + + // services like lambda use an alternate `Message` instead of `message` + #[test] + fn alternative_error_message_names() { + let response = http::Response::builder() + .header("x-amzn-errortype", "ResourceNotFoundException") + .body(Bytes::from_static( + br#"{ + "Type": "User", + "Message": "Functions from 'us-west-2' are not reachable from us-east-1" + }"#, + )) + .unwrap(); + assert_eq!( + parse_generic_error(&response).unwrap(), + Error::builder() + .code("ResourceNotFoundException") + .message("Functions from 'us-west-2' are not reachable from us-east-1") + .build() + ); + } +} diff --git a/sdk/ssm/src/lib.rs b/sdk/ssm/src/lib.rs index 978c06c60bfe..fadaae5cc50c 100644 --- a/sdk/ssm/src/lib.rs +++ b/sdk/ssm/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Systems Manager //!

    AWS Systems Manager is a collection of capabilities that helps you automate management tasks such as //! collecting system inventory, applying operating system (OS) patches, automating the creation of @@ -42,8 +43,6 @@ pub use error_meta::Error; pub use config::Config; mod aws_endpoint; -mod aws_json_errors; -mod blob_serde; #[cfg(feature = "client")] pub mod client; pub mod config; @@ -51,15 +50,14 @@ pub mod error; mod error_meta; mod idempotency_token; pub mod input; -mod instant_epoch; mod json_deser; +mod json_errors; mod json_ser; pub mod model; pub mod operation; +mod operation_deser; mod operation_ser; pub mod output; -mod serde_util; -mod serializer; pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); pub use smithy_http::byte_stream::ByteStream; pub use smithy_http::result::SdkError; diff --git a/sdk/ssm/src/model.rs b/sdk/ssm/src/model.rs index 5d0dd7c5e372..48bd5a502063 100644 --- a/sdk/ssm/src/model.rs +++ b/sdk/ssm/src/model.rs @@ -1,35 +1,25 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

    Information about the source of the data included in the resource data sync.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncSource { ///

    The type of data source for the resource data sync. SourceType is either /// AwsOrganizations (if an organization is present in AWS Organizations) or /// SingleAccountMultiRegions.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, ///

    Information about the AwsOrganizationsSource resource data sync source. A sync source of /// this type can synchronize data from AWS Organizations.

    - #[serde(rename = "AwsOrganizationsSource")] - #[serde(default)] pub aws_organizations_source: std::option::Option, ///

    The SyncSource AWS Regions included in the resource data sync.

    - #[serde(rename = "SourceRegions")] - #[serde(default)] pub source_regions: std::option::Option>, ///

    Whether to automatically synchronize and aggregate data from new AWS Regions when those /// Regions come online.

    - #[serde(rename = "IncludeFutureRegions")] - #[serde(default)] pub include_future_regions: bool, ///

    When you create a resource data sync, if you choose one of the AWS Organizations options, then Systems Manager /// automatically enables all OpsData sources in the selected AWS Regions for all AWS accounts in /// your organization (or in the selected organization units). For more information, see About multiple account and Region resource data syncs in the /// AWS Systems Manager User Guide.

    - #[serde(rename = "EnableAllOpsDataSources")] - #[serde(default)] pub enable_all_ops_data_sources: bool, } impl std::fmt::Debug for ResourceDataSyncSource { @@ -145,18 +135,14 @@ impl ResourceDataSyncSource { /// this type can synchronize data from AWS Organizations or, if an AWS Organization is not present, from /// multiple AWS Regions.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncAwsOrganizationsSource { ///

    If an AWS Organization is present, this is either OrganizationalUnits or /// EntireOrganization. For OrganizationalUnits, the data is aggregated /// from a set of organization units. For EntireOrganization, the data is aggregated /// from the entire AWS Organization.

    - #[serde(rename = "OrganizationSourceType")] - #[serde(default)] pub organization_source_type: std::option::Option, ///

    The AWS Organizations organization units included in the sync.

    - #[serde(rename = "OrganizationalUnits")] - #[serde(default)] pub organizational_units: std::option::Option>, } @@ -230,11 +216,9 @@ impl ResourceDataSyncAwsOrganizationsSource { ///

    The AWS Organizations organizational unit data source for the sync.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncOrganizationalUnit { ///

    The AWS Organization unit ID data source for the sync.

    - #[serde(rename = "OrganizationalUnitId")] - #[serde(default)] pub organizational_unit_id: std::option::Option, } impl std::fmt::Debug for ResourceDataSyncOrganizationalUnit { @@ -283,17 +267,13 @@ impl ResourceDataSyncOrganizationalUnit { ///

    Information about the patches to use to update the instances, including target operating /// systems and source repository. Applies to Linux instances only.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchSource { ///

    The name specified to identify the patch source.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", /// "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product /// values, see PatchFilter.

    - #[serde(rename = "Products")] - #[serde(default)] pub products: std::option::Option>, ///

    The value of the yum repo configuration. For example:

    ///

    @@ -312,8 +292,6 @@ pub struct PatchSource { ///

    For information about other options available for your yum repository configuration, see /// dnf.conf(5).

    /// - #[serde(rename = "Configuration")] - #[serde(default)] pub configuration: std::option::Option, } impl std::fmt::Debug for PatchSource { @@ -431,7 +409,7 @@ impl std::convert::From<&str> for PatchAction { impl std::str::FromStr for PatchAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchAction::from(s)) } } @@ -449,15 +427,6 @@ impl AsRef for PatchAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -495,7 +464,7 @@ impl std::convert::From<&str> for PatchComplianceLevel { impl std::str::FromStr for PatchComplianceLevel { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchComplianceLevel::from(s)) } } @@ -517,23 +486,12 @@ impl AsRef for PatchComplianceLevel { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchComplianceLevel { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A set of rules defining the approval rules for a patch baseline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchRuleGroup { ///

    The rules that make up the rule group.

    - #[serde(rename = "PatchRules")] - #[serde(default)] pub patch_rules: std::option::Option>, } impl std::fmt::Debug for PatchRuleGroup { @@ -582,35 +540,25 @@ impl PatchRuleGroup { ///

    Defines an approval rule for a patch baseline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchRule { ///

    The patch filter group that defines the criteria for the rule.

    - #[serde(rename = "PatchFilterGroup")] - #[serde(default)] pub patch_filter_group: std::option::Option, ///

    A compliance severity level for all approved patches in a patch baseline.

    - #[serde(rename = "ComplianceLevel")] - #[serde(default)] pub compliance_level: std::option::Option, ///

    The number of days after the release date of each patch matched by the rule that the patch /// is marked as approved in the patch baseline. For example, a value of 7 means that /// patches are approved seven days after they are released. Not supported on Debian Server or Ubuntu /// Server.

    - #[serde(rename = "ApproveAfterDays")] - #[serde(default)] pub approve_after_days: std::option::Option, ///

    The cutoff date for auto approval of released patches. Any patches released on or before /// this date are installed automatically. Not supported on Debian Server or Ubuntu Server.

    ///

    Enter dates in the format YYYY-MM-DD. For example, /// 2020-12-31.

    - #[serde(rename = "ApproveUntilDate")] - #[serde(default)] pub approve_until_date: std::option::Option, ///

    For instances identified by the approval rule filters, enables a patch baseline to apply /// non-security updates available in the specified repository. The default value is 'false'. Applies /// to Linux instances only.

    - #[serde(rename = "EnableNonSecurity")] - #[serde(default)] pub enable_non_security: std::option::Option, } impl std::fmt::Debug for PatchRule { @@ -720,11 +668,9 @@ impl PatchRule { ///

    A set of patch filters, typically used for approval rules.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchFilterGroup { ///

    The set of patch filters that make up the group.

    - #[serde(rename = "PatchFilters")] - #[serde(default)] pub patch_filters: std::option::Option>, } impl std::fmt::Debug for PatchFilterGroup { @@ -783,19 +729,15 @@ impl PatchFilterGroup { /// DescribePatchProperties command. For information about which patch properties can /// be used with each major operating system, see DescribePatchProperties.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchFilter { ///

    The key for the filter.

    ///

    Run the DescribePatchProperties command to view lists of valid keys for /// each operating system type.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value for the filter key.

    ///

    Run the DescribePatchProperties command to view lists of valid values for /// each key based on operating system type.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for PatchFilter { @@ -918,7 +860,7 @@ impl std::convert::From<&str> for PatchFilterKey { impl std::str::FromStr for PatchFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchFilterKey::from(s)) } } @@ -953,15 +895,6 @@ impl AsRef for PatchFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -1007,7 +940,7 @@ impl std::convert::From<&str> for OperatingSystem { impl std::str::FromStr for OperatingSystem { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OperatingSystem::from(s)) } } @@ -1033,23 +966,12 @@ impl AsRef for OperatingSystem { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OperatingSystem { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Metadata to assign to an Application Manager application.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MetadataValue { ///

    Metadata value to assign to an Application Manager application.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for MetadataValue { @@ -1150,7 +1072,7 @@ impl std::convert::From<&str> for OpsItemStatus { impl std::str::FromStr for OpsItemStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemStatus::from(s)) } } @@ -1184,25 +1106,14 @@ impl AsRef for OpsItemStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An OpsItems that shares something in common with the current OpsItem. For example, related /// OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for /// the impacted resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct RelatedOpsItem { ///

    The ID of an OpsItem related to the current OpsItem.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, } impl std::fmt::Debug for RelatedOpsItem { @@ -1247,12 +1158,10 @@ impl RelatedOpsItem { ///

    A notification about the OpsItem.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemNotification { ///

    The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this /// OpsItem is edited or changed.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for OpsItemNotification { @@ -1296,16 +1205,12 @@ impl OpsItemNotification { ///

    An object that defines the value of the key and its type in the OperationalData map.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemDataValue { ///

    The value of the OperationalData key.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

    The type of key-value pair. Valid types include SearchableString and /// String.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for OpsItemDataValue { @@ -1392,7 +1297,7 @@ impl std::convert::From<&str> for OpsItemDataType { impl std::str::FromStr for OpsItemDataType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemDataType::from(s)) } } @@ -1410,15 +1315,6 @@ impl AsRef for OpsItemDataType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemDataType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about an S3 bucket to write instance-level logs to.

    /// @@ -1429,19 +1325,13 @@ impl<'de> serde::Deserialize<'de> for OpsItemDataType { /// window task types, see MaintenanceWindowTaskInvocationParameters.

    ///
    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct LoggingInfo { ///

    The name of an S3 bucket where execution logs are stored .

    - #[serde(rename = "S3BucketName")] - #[serde(default)] pub s3_bucket_name: std::option::Option, ///

    (Optional) The S3 bucket subfolder.

    - #[serde(rename = "S3KeyPrefix")] - #[serde(default)] pub s3_key_prefix: std::option::Option, ///

    The Region where the S3 bucket is located.

    - #[serde(rename = "S3Region")] - #[serde(default)] pub s3_region: std::option::Option, } impl std::fmt::Debug for LoggingInfo { @@ -1516,23 +1406,15 @@ impl LoggingInfo { ///

    The parameters for task execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowTaskInvocationParameters { ///

    The parameters for a RUN_COMMAND task type.

    - #[serde(rename = "RunCommand")] - #[serde(default)] pub run_command: std::option::Option, ///

    The parameters for an AUTOMATION task type.

    - #[serde(rename = "Automation")] - #[serde(default)] pub automation: std::option::Option, ///

    The parameters for a STEP_FUNCTIONS task type.

    - #[serde(rename = "StepFunctions")] - #[serde(default)] pub step_functions: std::option::Option, ///

    The parameters for a LAMBDA task type.

    - #[serde(rename = "Lambda")] - #[serde(default)] pub lambda: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowTaskInvocationParameters { @@ -1652,25 +1534,18 @@ impl MaintenanceWindowTaskInvocationParameters { /// LoggingInfo.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowLambdaParameters { ///

    Pass client-specific information to the Lambda function that you are invoking. You can then /// process the client information in your Lambda function as you choose through the context /// variable.

    - #[serde(rename = "ClientContext")] - #[serde(default)] pub client_context: std::option::Option, ///

    (Optional) Specify a Lambda function version or alias name. If you specify a function /// version, the action uses the qualified function ARN to invoke a specific Lambda function. If you /// specify an alias name, the action uses the alias ARN to invoke the Lambda function version to /// which the alias points.

    - #[serde(rename = "Qualifier")] - #[serde(default)] pub qualifier: std::option::Option, ///

    JSON to provide to your Lambda function as input.

    - #[serde(rename = "Payload")] - #[serde(deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesblob_deser")] - #[serde(default)] pub payload: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowLambdaParameters { @@ -1762,15 +1637,11 @@ impl MaintenanceWindowLambdaParameters { /// TaskParameters and LoggingInfo.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowStepFunctionsParameters { ///

    The inputs for the STEP_FUNCTIONS task.

    - #[serde(rename = "Input")] - #[serde(default)] pub input: std::option::Option, ///

    The name of the STEP_FUNCTIONS task.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowStepFunctionsParameters { @@ -1827,11 +1698,9 @@ impl MaintenanceWindowStepFunctionsParameters { ///

    The parameters for an AUTOMATION task type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowAutomationParameters { ///

    The version of an Automation document to use during task execution.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The parameters for the AUTOMATION task.

    ///

    For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.

    @@ -1848,8 +1717,6 @@ pub struct MaintenanceWindowAutomationParameters { /// types, see MaintenanceWindowTaskInvocationParameters.

    ///

    For AUTOMATION task types, Systems Manager ignores any values specified for these parameters.

    /// - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, @@ -1939,24 +1806,16 @@ impl MaintenanceWindowAutomationParameters { /// TaskInvocationParameters.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowRunCommandParameters { ///

    Information about the commands to run.

    - #[serde(rename = "Comment")] - #[serde(default)] pub comment: std::option::Option, ///

    Configuration options for sending command output to CloudWatch Logs.

    - #[serde(rename = "CloudWatchOutputConfig")] - #[serde(default)] pub cloud_watch_output_config: std::option::Option, ///

    The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes /// have been deprecated.

    - #[serde(rename = "DocumentHash")] - #[serde(default)] pub document_hash: std::option::Option, ///

    SHA-256 or SHA-1. SHA-1 hashes have been deprecated.

    - #[serde(rename = "DocumentHashType")] - #[serde(default)] pub document_hash_type: std::option::Option, ///

    The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a /// specific version number. If you run commands by using the AWS CLI, then you must escape the first @@ -1965,37 +1824,23 @@ pub struct MaintenanceWindowRunCommandParameters { ///

    --document-version "\$DEFAULT"

    ///

    --document-version "\$LATEST"

    ///

    --document-version "3"

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    Configurations for sending notifications about command status changes on a per-instance /// basis.

    - #[serde(rename = "NotificationConfig")] - #[serde(default)] pub notification_config: std::option::Option, ///

    The name of the S3 bucket.

    - #[serde(rename = "OutputS3BucketName")] - #[serde(default)] pub output_s3_bucket_name: std::option::Option, ///

    The S3 bucket subfolder.

    - #[serde(rename = "OutputS3KeyPrefix")] - #[serde(default)] pub output_s3_key_prefix: std::option::Option, ///

    The parameters for the RUN_COMMAND task execution.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for /// maintenance window Run Command tasks.

    - #[serde(rename = "ServiceRoleArn")] - #[serde(default)] pub service_role_arn: std::option::Option, ///

    If this time is reached and the command has not already started running, it doesn't /// run.

    - #[serde(rename = "TimeoutSeconds")] - #[serde(default)] pub timeout_seconds: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowRunCommandParameters { @@ -2210,26 +2055,20 @@ impl MaintenanceWindowRunCommandParameters { ///

    Configurations for sending notifications.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NotificationConfig { ///

    An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes /// notifications about command status changes to this topic.

    - #[serde(rename = "NotificationArn")] - #[serde(default)] pub notification_arn: std::option::Option, ///

    The different events for which you can receive notifications. These events include the /// following: All (events), InProgress, Success, TimedOut, Cancelled, Failed. To learn more about /// these events, see Monitoring Systems /// Manager status changes using Amazon SNS notifications in the /// AWS Systems Manager User Guide.

    - #[serde(rename = "NotificationEvents")] - #[serde(default)] pub notification_events: std::option::Option>, ///

    Command: Receive notification when the status of a command changes. Invocation: For commands /// sent to multiple instances, receive notification on a per-instance basis when the status of a /// command changes.

    - #[serde(rename = "NotificationType")] - #[serde(default)] pub notification_type: std::option::Option, } impl std::fmt::Debug for NotificationConfig { @@ -2341,7 +2180,7 @@ impl std::convert::From<&str> for NotificationType { impl std::str::FromStr for NotificationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotificationType::from(s)) } } @@ -2359,15 +2198,6 @@ impl AsRef for NotificationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotificationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2405,7 +2235,7 @@ impl std::convert::From<&str> for NotificationEvent { impl std::str::FromStr for NotificationEvent { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(NotificationEvent::from(s)) } } @@ -2427,15 +2257,6 @@ impl AsRef for NotificationEvent { self.as_str() } } -impl<'de> serde::Deserialize<'de> for NotificationEvent { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -2465,7 +2286,7 @@ impl std::convert::From<&str> for DocumentHashType { impl std::str::FromStr for DocumentHashType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentHashType::from(s)) } } @@ -2483,29 +2304,16 @@ impl AsRef for DocumentHashType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentHashType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Configuration options for sending command output to CloudWatch Logs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CloudWatchOutputConfig { ///

    The name of the CloudWatch log group where you want to send command output. If you don't /// specify a group name, Systems Manager automatically creates a log group for you. The log group uses the /// following naming format: aws/ssm/SystemsManagerDocumentName.

    - #[serde(rename = "CloudWatchLogGroupName")] - #[serde(default)] pub cloud_watch_log_group_name: std::option::Option, ///

    Enables Systems Manager to send command output to CloudWatch Logs.

    - #[serde(rename = "CloudWatchOutputEnabled")] - #[serde(default)] pub cloud_watch_output_enabled: bool, } impl std::fmt::Debug for CloudWatchOutputConfig { @@ -2573,12 +2381,10 @@ impl CloudWatchOutputConfig { ///

    Defines the values for a task parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowTaskParameterValueExpression { ///

    This field contains an array of 0 or more strings, each 1 to 255 characters in /// length.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for MaintenanceWindowTaskParameterValueExpression { @@ -2729,20 +2535,16 @@ impl MaintenanceWindowTaskParameterValueExpression { ///

    For more information about how to send commands that target instances using /// Key,Value parameters, see Targeting multiple instances in the AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Target { ///

    User-defined criteria for sending commands that target instances that meet the /// criteria.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    User-defined criteria that maps to Key. For example, if you specified /// tag:ServerRole, you could specify value:WebServer to run a command on /// instances that include EC2 tags of ServerRole,WebServer.

    ///

    Depending on the type of Target, the maximum number of values for a /// Key might be lower than the global maximum of 50.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for Target { @@ -2804,15 +2606,11 @@ impl Target { ///

    Information about a document approval review.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentReviews { ///

    The action to take on a document approval review request.

    - #[serde(rename = "Action")] - #[serde(default)] pub action: std::option::Option, ///

    A comment entered by a user in your organization about the document review request.

    - #[serde(rename = "Comment")] - #[serde(default)] pub comment: std::option::Option>, } impl std::fmt::Debug for DocumentReviews { @@ -2880,17 +2678,13 @@ impl DocumentReviews { ///

    Information about comments added to a document review request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentReviewCommentSource { ///

    The type of information added to a review request. Currently, only the value /// Comment is supported.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The content of a comment entered by a user who requests a review of a new document version, /// or who reviews the new version.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option, } impl std::fmt::Debug for DocumentReviewCommentSource { @@ -2976,7 +2770,7 @@ impl std::convert::From<&str> for DocumentReviewCommentType { impl std::str::FromStr for DocumentReviewCommentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentReviewCommentType::from(s)) } } @@ -2993,15 +2787,6 @@ impl AsRef for DocumentReviewCommentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentReviewCommentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -3035,7 +2820,7 @@ impl std::convert::From<&str> for DocumentReviewAction { impl std::str::FromStr for DocumentReviewAction { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentReviewAction::from(s)) } } @@ -3055,31 +2840,16 @@ impl AsRef for DocumentReviewAction { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentReviewAction { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A default version of a document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentDefaultVersionDescription { ///

    The name of the document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The default version of the document.

    - #[serde(rename = "DefaultVersion")] - #[serde(default)] pub default_version: std::option::Option, ///

    The default version of the artifact associated with the document.

    - #[serde(rename = "DefaultVersionName")] - #[serde(default)] pub default_version_name: std::option::Option, } impl std::fmt::Debug for DocumentDefaultVersionDescription { @@ -3154,137 +2924,78 @@ impl DocumentDefaultVersionDescription { ///

    Describes a Systems Manager document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentDescription { ///

    The SHA1 hash of the document, which you can use for verification.

    - #[serde(rename = "Sha1")] - #[serde(default)] pub sha1: std::option::Option, ///

    The Sha256 or Sha1 hash created by the system when the document was created.

    /// ///

    Sha1 hashes have been deprecated.

    ///
    - #[serde(rename = "Hash")] - #[serde(default)] pub hash: std::option::Option, ///

    The hash type of the document. Valid values include Sha256 or /// Sha1.

    /// ///

    Sha1 hashes have been deprecated.

    ///
    - #[serde(rename = "HashType")] - #[serde(default)] pub hash_type: std::option::Option, ///

    The name of the Systems Manager document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The friendly name of the Systems Manager document. This value can differ for each version of the /// document. If you want to update this value, see UpdateDocument.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The version of the artifact associated with the document.

    - #[serde(rename = "VersionName")] - #[serde(default)] pub version_name: std::option::Option, ///

    The AWS user account that created the document.

    - #[serde(rename = "Owner")] - #[serde(default)] pub owner: std::option::Option, ///

    The date when the document was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The status of the Systems Manager document.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A message returned by AWS Systems Manager that explains the Status value. For example, a /// Failed status might be explained by the StatusInformation message, /// "The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct."

    - #[serde(rename = "StatusInformation")] - #[serde(default)] pub status_information: std::option::Option, ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    A description of the document.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    A description of the parameters for a document.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option>, ///

    The list of OS platforms compatible with this Systems Manager document.

    - #[serde(rename = "PlatformTypes")] - #[serde(default)] pub platform_types: std::option::Option>, ///

    The type of document.

    - #[serde(rename = "DocumentType")] - #[serde(default)] pub document_type: std::option::Option, ///

    The schema version.

    - #[serde(rename = "SchemaVersion")] - #[serde(default)] pub schema_version: std::option::Option, ///

    The latest version of the document.

    - #[serde(rename = "LatestVersion")] - #[serde(default)] pub latest_version: std::option::Option, ///

    The default version.

    - #[serde(rename = "DefaultVersion")] - #[serde(default)] pub default_version: std::option::Option, ///

    The document format, either JSON or YAML.

    - #[serde(rename = "DocumentFormat")] - #[serde(default)] pub document_format: std::option::Option, ///

    The target type which defines the kinds of resources the document can run on. For example, /// /AWS::EC2::Instance. For a list of valid resource types, see AWS resource and property types /// reference in the AWS CloudFormation User Guide.

    - #[serde(rename = "TargetType")] - #[serde(default)] pub target_type: std::option::Option, ///

    The tags, or metadata, that have been applied to the document.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    Details about the document attachments, including names, locations, sizes, and so on.

    - #[serde(rename = "AttachmentsInformation")] - #[serde(default)] pub attachments_information: std::option::Option>, ///

    A list of SSM documents required by a document. For example, an /// ApplicationConfiguration document requires an /// ApplicationConfigurationSchema document.

    - #[serde(rename = "Requires")] - #[serde(default)] pub requires: std::option::Option>, ///

    The user in your organization who created the document.

    - #[serde(rename = "Author")] - #[serde(default)] pub author: std::option::Option, ///

    Details about the review of a document.

    - #[serde(rename = "ReviewInformation")] - #[serde(default)] pub review_information: std::option::Option>, ///

    The version of the document currently approved for use in the organization.

    - #[serde(rename = "ApprovedVersion")] - #[serde(default)] pub approved_version: std::option::Option, ///

    The version of the document that is currently under review.

    - #[serde(rename = "PendingReviewVersion")] - #[serde(default)] pub pending_review_version: std::option::Option, ///

    The current status of the review.

    - #[serde(rename = "ReviewStatus")] - #[serde(default)] pub review_status: std::option::Option, } impl std::fmt::Debug for DocumentDescription { @@ -3766,7 +3477,7 @@ impl std::convert::From<&str> for ReviewStatus { impl std::str::FromStr for ReviewStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ReviewStatus::from(s)) } } @@ -3786,34 +3497,16 @@ impl AsRef for ReviewStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ReviewStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the result of a document review request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ReviewInformation { ///

    The time that the reviewer took action on the document review request.

    - #[serde(rename = "ReviewedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub reviewed_time: std::option::Option, ///

    The current status of the document review request.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The reviewer assigned to take action on the document review request.

    - #[serde(rename = "Reviewer")] - #[serde(default)] pub reviewer: std::option::Option, } impl std::fmt::Debug for ReviewInformation { @@ -3888,15 +3581,11 @@ impl ReviewInformation { ///

    An SSM document required by the current document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentRequires { ///

    The name of the required SSM document. The name can be an Amazon Resource Name (ARN).

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The document version required by the current document.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, } impl std::fmt::Debug for DocumentRequires { @@ -3953,11 +3642,9 @@ impl DocumentRequires { ///

    An attribute of an attachment, such as the attachment name.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttachmentInformation { ///

    The name of the attachment.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for AttachmentInformation { @@ -4003,15 +3690,11 @@ impl AttachmentInformation { /// to documents, managed instances, maintenance windows, Parameter Store parameters, and patch /// baselines.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Tag { ///

    The name of the tag.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value of the tag.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for Tag { @@ -4096,7 +3779,7 @@ impl std::convert::From<&str> for DocumentFormat { impl std::str::FromStr for DocumentFormat { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentFormat::from(s)) } } @@ -4115,15 +3798,6 @@ impl AsRef for DocumentFormat { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentFormat { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4173,7 +3847,7 @@ impl std::convert::From<&str> for DocumentType { impl std::str::FromStr for DocumentType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentType::from(s)) } } @@ -4201,15 +3875,6 @@ impl AsRef for DocumentType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -4239,7 +3904,7 @@ impl std::convert::From<&str> for PlatformType { impl std::str::FromStr for PlatformType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PlatformType::from(s)) } } @@ -4257,38 +3922,21 @@ impl AsRef for PlatformType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PlatformType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Parameters specified in a System Manager document that run on the server when the command is /// run.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentParameter { ///

    The name of the parameter.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The type of parameter. The type can be either String or StringList.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    A description of what the parameter does, how to use it, the default value, and whether or /// not the parameter is optional.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    If specified, the default values for the parameters. Parameters without a default value are /// required. Parameters with a default value are optional.

    - #[serde(rename = "DefaultValue")] - #[serde(default)] pub default_value: std::option::Option, } impl std::fmt::Debug for DocumentParameter { @@ -4403,7 +4051,7 @@ impl std::convert::From<&str> for DocumentParameterType { impl std::str::FromStr for DocumentParameterType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentParameterType::from(s)) } } @@ -4421,15 +4069,6 @@ impl AsRef for DocumentParameterType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentParameterType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The status of a document.

    #[non_exhaustive] @@ -4466,7 +4105,7 @@ impl std::convert::From<&str> for DocumentStatus { impl std::str::FromStr for DocumentStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentStatus::from(s)) } } @@ -4487,25 +4126,14 @@ impl AsRef for DocumentStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Identifying information about a document attachment, including the file name and a key-value /// pair that identifies the location of an attachment to a document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttachmentsSource { ///

    The key of a key-value pair that identifies the location of an attachment to a /// document.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value of a key-value pair that identifies the location of an attachment to a document. /// The format for Value depends on the type of key you @@ -4541,12 +4169,8 @@ pub struct AttachmentsSource { ///

    /// /// - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The name of the document attachment file.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for AttachmentsSource { @@ -4651,7 +4275,7 @@ impl std::convert::From<&str> for AttachmentsSourceKey { impl std::str::FromStr for AttachmentsSourceKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AttachmentsSourceKey::from(s)) } } @@ -4670,102 +4294,47 @@ impl AsRef for AttachmentsSourceKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AttachmentsSourceKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the parameters for a document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationDescription { ///

    The name of the Systems Manager document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The ID of the instance.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The association version.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The date when the association was made.

    - #[serde(rename = "Date")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub date: std::option::Option, ///

    The date when the association was last updated.

    - #[serde(rename = "LastUpdateAssociationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_update_association_date: std::option::Option, ///

    The association status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Information about the association.

    - #[serde(rename = "Overview")] - #[serde(default)] pub overview: std::option::Option, ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    Specify the target for the association. This target is required for associations that use an /// Automation document and target resources by using rate controls.

    - #[serde(rename = "AutomationTargetParameterName")] - #[serde(default)] pub automation_target_parameter_name: std::option::Option, ///

    A description of the parameters for a document.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The instances targeted by the request.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    A cron expression that specifies a schedule when the association runs.

    - #[serde(rename = "ScheduleExpression")] - #[serde(default)] pub schedule_expression: std::option::Option, ///

    An S3 bucket where you want to store the output details of the request.

    - #[serde(rename = "OutputLocation")] - #[serde(default)] pub output_location: std::option::Option, ///

    The date on which the association was last run.

    - #[serde(rename = "LastExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_execution_date: std::option::Option, ///

    The last date on which the association was successfully run.

    - #[serde(rename = "LastSuccessfulExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_successful_execution_date: std::option::Option, ///

    The association name.

    - #[serde(rename = "AssociationName")] - #[serde(default)] pub association_name: std::option::Option, ///

    The number of errors that are allowed before the system stops sending requests to run the /// association on additional targets. You can specify either an absolute number of errors, for @@ -4778,8 +4347,6 @@ pub struct AssociationDescription { /// complete, but some of these executions may fail as well. If you need to ensure that there won't /// be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one /// at a time.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The maximum number of targets allowed to run the association at the same time. You can /// specify a number, for example 10, or a percentage of the target set, for example 10%. The default @@ -4788,12 +4355,8 @@ pub struct AssociationDescription { /// MaxConcurrency associations, the association is allowed to run. During the next association /// interval, the new instance will process its association within the limit specified for /// MaxConcurrency.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The severity level that is assigned to the association.

    - #[serde(rename = "ComplianceSeverity")] - #[serde(default)] pub compliance_severity: std::option::Option, ///

    The mode for generating association compliance. You can specify AUTO or /// MANUAL. In AUTO mode, the system uses the status of the association @@ -4804,27 +4367,19 @@ pub struct AssociationDescription { /// for the PutComplianceItems API action. In this case, compliance data is not /// managed by State Manager. It is managed by your direct call to the PutComplianceItems API action.

    ///

    By default, all associations use AUTO mode.

    - #[serde(rename = "SyncCompliance")] - #[serde(default)] pub sync_compliance: std::option::Option, ///

    By default, when you create a new associations, the system runs it immediately after it is /// created and then according to the schedule you specified. Specify this option if you don't want /// an association to run immediately after you create it. This parameter is not supported for rate /// expressions.

    - #[serde(rename = "ApplyOnlyAtCronInterval")] - #[serde(default)] pub apply_only_at_cron_interval: bool, ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager Change Calendar type /// documents your associations are gated under. The associations only run when that Change /// Calendar is open. For more information, see /// AWS Systems Manager Change Calendar.

    - #[serde(rename = "CalendarNames")] - #[serde(default)] pub calendar_names: std::option::Option>, ///

    The combination of AWS Regions and AWS accounts where you want to run the /// association.

    - #[serde(rename = "TargetLocations")] - #[serde(default)] pub target_locations: std::option::Option>, } impl std::fmt::Debug for AssociationDescription { @@ -5267,30 +4822,20 @@ impl AssociationDescription { ///

    The combination of AWS Regions and accounts targeted by the current Automation /// execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct TargetLocation { ///

    The AWS accounts targeted by the current Automation execution.

    - #[serde(rename = "Accounts")] - #[serde(default)] pub accounts: std::option::Option>, ///

    The AWS Regions targeted by the current Automation execution.

    - #[serde(rename = "Regions")] - #[serde(default)] pub regions: std::option::Option>, ///

    The maximum number of AWS accounts and AWS regions allowed to run the Automation /// concurrently.

    - #[serde(rename = "TargetLocationMaxConcurrency")] - #[serde(default)] pub target_location_max_concurrency: std::option::Option, ///

    The maximum number of errors allowed before the system stops queueing additional Automation /// executions for the currently running Automation.

    - #[serde(rename = "TargetLocationMaxErrors")] - #[serde(default)] pub target_location_max_errors: std::option::Option, ///

    The Automation execution role used by the currently running Automation. If not specified, /// the default value is AWS-SystemsManager-AutomationExecutionRole.

    - #[serde(rename = "ExecutionRoleName")] - #[serde(default)] pub execution_role_name: std::option::Option, } impl std::fmt::Debug for TargetLocation { @@ -5438,7 +4983,7 @@ impl std::convert::From<&str> for AssociationSyncCompliance { impl std::str::FromStr for AssociationSyncCompliance { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationSyncCompliance::from(s)) } } @@ -5456,15 +5001,6 @@ impl AsRef for AssociationSyncCompliance { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationSyncCompliance { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5500,7 +5036,7 @@ impl std::convert::From<&str> for AssociationComplianceSeverity { impl std::str::FromStr for AssociationComplianceSeverity { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationComplianceSeverity::from(s)) } } @@ -5521,25 +5057,14 @@ impl AsRef for AssociationComplianceSeverity { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationComplianceSeverity { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An S3 bucket where you want to store the results of this request.

    ///

    For the minimal permissions required to enable Amazon S3 output for an association, see Creating /// associations in the Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceAssociationOutputLocation { ///

    An S3 bucket where you want to store the results of this request.

    - #[serde(rename = "S3Location")] - #[serde(default)] pub s3_location: std::option::Option, } impl std::fmt::Debug for InstanceAssociationOutputLocation { @@ -5587,20 +5112,14 @@ impl InstanceAssociationOutputLocation { ///

    An S3 bucket where you want to store the results of this request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3OutputLocation { ///

    (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager /// automatically determines the Region of the S3 bucket.

    - #[serde(rename = "OutputS3Region")] - #[serde(default)] pub output_s3_region: std::option::Option, ///

    The name of the S3 bucket.

    - #[serde(rename = "OutputS3BucketName")] - #[serde(default)] pub output_s3_bucket_name: std::option::Option, ///

    The S3 bucket subfolder.

    - #[serde(rename = "OutputS3KeyPrefix")] - #[serde(default)] pub output_s3_key_prefix: std::option::Option, } impl std::fmt::Debug for S3OutputLocation { @@ -5679,21 +5198,15 @@ impl S3OutputLocation { ///

    Information about the association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationOverview { ///

    The status of the association. Status can be: Pending, Success, or Failed.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A detailed status of the association.

    - #[serde(rename = "DetailedStatus")] - #[serde(default)] pub detailed_status: std::option::Option, ///

    Returns the number of targets for the association status. For example, if you created an /// association with two instances, and one of them was successful, this would return the count of /// instances by status.

    - #[serde(rename = "AssociationStatusAggregatedCount")] - #[serde(default)] pub association_status_aggregated_count: std::option::Option>, } @@ -5778,26 +5291,15 @@ impl AssociationOverview { ///

    Describes an association status.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationStatus { ///

    The date when the status changed.

    - #[serde(rename = "Date")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub date: std::option::Option, ///

    The status.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The reason for the status.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, ///

    A user-defined string.

    - #[serde(rename = "AdditionalInfo")] - #[serde(default)] pub additional_info: std::option::Option, } impl std::fmt::Debug for AssociationStatus { @@ -5912,7 +5414,7 @@ impl std::convert::From<&str> for AssociationStatusName { impl std::str::FromStr for AssociationStatusName { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationStatusName::from(s)) } } @@ -5931,15 +5433,6 @@ impl AsRef for AssociationStatusName { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationStatusName { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -5969,7 +5462,7 @@ impl std::convert::From<&str> for StopType { impl std::str::FromStr for StopType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StopType::from(s)) } } @@ -5987,15 +5480,6 @@ impl AsRef for StopType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StopType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about an Automation runbook (Automation document) used in a runbook workflow in /// Change Manager.

    @@ -6004,50 +5488,34 @@ impl<'de> serde::Deserialize<'de> for StopType { /// approvals for the change request have been received.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Runbook { ///

    The name of the Automation runbook (Automation document) used in a runbook workflow.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The version of the Automation runbook (Automation document) used in a /// runbook workflow.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The key-value map of execution parameters, which were supplied when calling /// StartChangeRequestExecution.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The name of the parameter used as the target resource for the rate-controlled /// runbook workflow. Required if you specify Targets.

    - #[serde(rename = "TargetParameterName")] - #[serde(default)] pub target_parameter_name: std::option::Option, ///

    A key-value mapping to target resources that the Runbook operation performs tasks on. /// Required if you specify TargetParameterName.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The MaxConcurrency value specified by the user when the operation started, /// indicating the maximum number of resources that the runbook operation can run on at the same /// time.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The MaxErrors value specified by the user when the execution started, /// indicating the maximum number of errors that can occur during the operation before the updates /// are stopped or rolled back.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    Information about the AWS Regions and accounts targeted by the current Runbook /// operation.

    - #[serde(rename = "TargetLocations")] - #[serde(default)] pub target_locations: std::option::Option>, } impl std::fmt::Debug for Runbook { @@ -6241,7 +5709,7 @@ impl std::convert::From<&str> for ExecutionMode { impl std::str::FromStr for ExecutionMode { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ExecutionMode::from(s)) } } @@ -6259,70 +5727,35 @@ impl AsRef for ExecutionMode { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ExecutionMode { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes a command request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Command { ///

    A unique identifier for this command.

    - #[serde(rename = "CommandId")] - #[serde(default)] pub command_id: std::option::Option, ///

    The name of the document requested for execution.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The SSM document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    User-specified information about the command, such as a brief description of what the /// command should do.

    - #[serde(rename = "Comment")] - #[serde(default)] pub comment: std::option::Option, ///

    If this time is reached and the command has not already started running, it will not run. /// Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.

    - #[serde(rename = "ExpiresAfter")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub expires_after: std::option::Option, ///

    The parameter values to be inserted in the document when running the command.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The instance IDs against which this command was requested.

    - #[serde(rename = "InstanceIds")] - #[serde(default)] pub instance_ids: std::option::Option>, ///

    An array of search criteria that targets instances using a Key,Value combination that you /// specify. Targets is required if you don't provide one or more instance IDs in the call.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The date and time the command was requested.

    - #[serde(rename = "RequestedDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub requested_date_time: std::option::Option, ///

    The status of the command.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A detailed status of the command execution. StatusDetails includes more information than /// Status because it includes states resulting from error and concurrency control parameters. @@ -6367,72 +5800,44 @@ pub struct Command { /// This is a terminal state.

    /// /// - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager /// automatically determines the Region of the S3 bucket.

    - #[serde(rename = "OutputS3Region")] - #[serde(default)] pub output_s3_region: std::option::Option, ///

    The S3 bucket where the responses to the command executions should be stored. This was /// requested when issuing the command.

    - #[serde(rename = "OutputS3BucketName")] - #[serde(default)] pub output_s3_bucket_name: std::option::Option, ///

    The S3 directory path inside the bucket where the responses to the command executions should /// be stored. This was requested when issuing the command.

    - #[serde(rename = "OutputS3KeyPrefix")] - #[serde(default)] pub output_s3_key_prefix: std::option::Option, ///

    The maximum number of instances that are allowed to run the command at the same time. You /// can specify a number of instances, such as 10, or a percentage of instances, such as 10%. The /// default value is 50. For more information about how to use MaxConcurrency, see Running commands /// using Systems Manager Run Command in the AWS Systems Manager User Guide.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The maximum number of errors allowed before the system stops sending the command to /// additional targets. You can specify a number of errors, such as 10, or a percentage or errors, /// such as 10%. The default value is 0. For more information about how to use MaxErrors, see Running commands /// using Systems Manager Run Command in the AWS Systems Manager User Guide.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The number of targets for the command.

    - #[serde(rename = "TargetCount")] - #[serde(default)] pub target_count: i32, ///

    The number of targets for which the command invocation reached a terminal state. Terminal /// states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, /// Terminated, or Undeliverable.

    - #[serde(rename = "CompletedCount")] - #[serde(default)] pub completed_count: i32, ///

    The number of targets for which the status is Failed or Execution Timed Out.

    - #[serde(rename = "ErrorCount")] - #[serde(default)] pub error_count: i32, ///

    The number of targets for which the status is Delivery Timed Out.

    - #[serde(rename = "DeliveryTimedOutCount")] - #[serde(default)] pub delivery_timed_out_count: i32, ///

    The IAM service role that Run Command uses to act on your behalf when sending notifications /// about command status changes.

    - #[serde(rename = "ServiceRole")] - #[serde(default)] pub service_role: std::option::Option, ///

    Configurations for sending notifications about command status changes.

    - #[serde(rename = "NotificationConfig")] - #[serde(default)] pub notification_config: std::option::Option, ///

    CloudWatch Logs information where you want Systems Manager to send the command output.

    - #[serde(rename = "CloudWatchOutputConfig")] - #[serde(default)] pub cloud_watch_output_config: std::option::Option, ///

    The TimeoutSeconds value specified for a command.

    - #[serde(rename = "TimeoutSeconds")] - #[serde(default)] pub timeout_seconds: i32, } impl std::fmt::Debug for Command { @@ -6905,7 +6310,7 @@ impl std::convert::From<&str> for CommandStatus { impl std::str::FromStr for CommandStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CommandStatus::from(s)) } } @@ -6928,15 +6333,6 @@ impl AsRef for CommandStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CommandStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -6972,7 +6368,7 @@ impl std::convert::From<&str> for SignalType { impl std::str::FromStr for SignalType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SignalType::from(s)) } } @@ -6993,15 +6389,6 @@ impl AsRef for SignalType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SignalType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The service setting data structure.

    ///

    @@ -7017,31 +6404,18 @@ impl<'de> serde::Deserialize<'de> for SignalType { /// the default setting. Or, use the ResetServiceSetting to change the value back /// to the original value defined by the AWS service team.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ServiceSetting { ///

    The ID of the service setting.

    - #[serde(rename = "SettingId")] - #[serde(default)] pub setting_id: std::option::Option, ///

    The value of the service setting.

    - #[serde(rename = "SettingValue")] - #[serde(default)] pub setting_value: std::option::Option, ///

    The last time the service setting was modified.

    - #[serde(rename = "LastModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_date: std::option::Option, ///

    The ARN of the last modified user. This field is populated only if the setting value was /// overwritten.

    - #[serde(rename = "LastModifiedUser")] - #[serde(default)] pub last_modified_user: std::option::Option, ///

    The ARN of the service setting.

    - #[serde(rename = "ARN")] - #[serde(default)] pub arn: std::option::Option, ///

    The status of the service setting. The value can be Default, Customized or /// PendingUpdate.

    @@ -7058,8 +6432,6 @@ pub struct ServiceSetting { /// request is pending approval.

    /// /// - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, } impl std::fmt::Debug for ServiceSetting { @@ -7224,7 +6596,7 @@ impl std::convert::From<&str> for ResourceTypeForTagging { impl std::str::FromStr for ResourceTypeForTagging { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceTypeForTagging::from(s)) } } @@ -7247,15 +6619,6 @@ impl AsRef for ResourceTypeForTagging { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceTypeForTagging { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7289,7 +6652,7 @@ impl std::convert::From<&str> for MaintenanceWindowTaskType { impl std::str::FromStr for MaintenanceWindowTaskType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MaintenanceWindowTaskType::from(s)) } } @@ -7309,15 +6672,6 @@ impl AsRef for MaintenanceWindowTaskType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MaintenanceWindowTaskType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7347,7 +6701,7 @@ impl std::convert::From<&str> for MaintenanceWindowResourceType { impl std::str::FromStr for MaintenanceWindowResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MaintenanceWindowResourceType::from(s)) } } @@ -7365,15 +6719,6 @@ impl AsRef for MaintenanceWindowResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MaintenanceWindowResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7405,7 +6750,7 @@ impl std::convert::From<&str> for ParameterTier { impl std::str::FromStr for ParameterTier { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ParameterTier::from(s)) } } @@ -7424,15 +6769,6 @@ impl AsRef for ParameterTier { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ParameterTier { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7464,7 +6800,7 @@ impl std::convert::From<&str> for ParameterType { impl std::str::FromStr for ParameterType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ParameterType::from(s)) } } @@ -7483,52 +6819,31 @@ impl AsRef for ParameterType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ParameterType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information collected from managed instances based on your inventory policy document

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryItem { ///

    The name of the inventory type. Default inventory item type names start with AWS. Custom /// inventory type names will start with Custom. Default inventory item types include the following: /// AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, AWS:Network, and /// AWS:WindowsUpdate.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, ///

    The schema version for the inventory item.

    - #[serde(rename = "SchemaVersion")] - #[serde(default)] pub schema_version: std::option::Option, ///

    The time the inventory information was collected.

    - #[serde(rename = "CaptureTime")] - #[serde(default)] pub capture_time: std::option::Option, ///

    MD5 hash of the inventory item type contents. The content hash is used to determine whether /// to update inventory information. The PutInventory API does not update the inventory item type /// contents if the MD5 hash has not changed since last update.

    - #[serde(rename = "ContentHash")] - #[serde(default)] pub content_hash: std::option::Option, ///

    The inventory data of the inventory type.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option< std::vec::Vec>, >, ///

    A map of associated properties for a specified inventory type. For example, with this /// attribute, you can specify the ExecutionId, ExecutionType, /// ComplianceType properties of the AWS:ComplianceItem type.

    - #[serde(rename = "Context")] - #[serde(default)] pub context: std::option::Option>, } @@ -7691,7 +7006,7 @@ impl std::convert::From<&str> for ComplianceUploadType { impl std::str::FromStr for ComplianceUploadType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComplianceUploadType::from(s)) } } @@ -7709,43 +7024,24 @@ impl AsRef for ComplianceUploadType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComplianceUploadType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about a compliance item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComplianceItemEntry { ///

    The compliance item ID. For example, if the compliance item is a Windows patch, the ID could /// be the number of the KB article.

    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    The title of the compliance item. For example, if the compliance item is a Windows patch, /// the title could be the title of the KB article for the patch; for example: Security Update for /// Active Directory Federation Services.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    The severity of the compliance status. Severity can be one of the following: Critical, High, /// Medium, Low, Informational, Unspecified.

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A "Key": "Value" tag combination for the compliance item.

    - #[serde(rename = "Details")] - #[serde(default)] pub details: std::option::Option>, } @@ -7887,7 +7183,7 @@ impl std::convert::From<&str> for ComplianceStatus { impl std::str::FromStr for ComplianceStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComplianceStatus::from(s)) } } @@ -7905,15 +7201,6 @@ impl AsRef for ComplianceStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComplianceStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -7951,7 +7238,7 @@ impl std::convert::From<&str> for ComplianceSeverity { impl std::str::FromStr for ComplianceSeverity { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComplianceSeverity::from(s)) } } @@ -7973,38 +7260,20 @@ impl AsRef for ComplianceSeverity { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComplianceSeverity { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of the call execution that includes an execution ID, the type of execution (for /// example, Command), and the date/time of the execution using a datetime object that /// is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComplianceExecutionSummary { ///

    The time the execution ran as a datetime object that is saved in the following format: /// yyyy-MM-dd'T'HH:mm:ss'Z'.

    - #[serde(rename = "ExecutionTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_time: std::option::Option, ///

    An ID created by the system when PutComplianceItems was called. For example, /// CommandID is a valid execution ID. You can use this ID in subsequent calls.

    - #[serde(rename = "ExecutionId")] - #[serde(default)] pub execution_id: std::option::Option, ///

    The type of execution. For example, Command is a valid execution type.

    - #[serde(rename = "ExecutionType")] - #[serde(default)] pub execution_type: std::option::Option, } impl std::fmt::Debug for ComplianceExecutionSummary { @@ -8105,7 +7374,7 @@ impl std::convert::From<&str> for DocumentPermissionType { impl std::str::FromStr for DocumentPermissionType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentPermissionType::from(s)) } } @@ -8122,75 +7391,34 @@ impl AsRef for DocumentPermissionType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentPermissionType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about a Resource Data Sync configuration, including its current status and last /// successful sync.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncItem { ///

    The name of the Resource Data Sync.

    - #[serde(rename = "SyncName")] - #[serde(default)] pub sync_name: std::option::Option, ///

    The type of resource data sync. If SyncType is SyncToDestination, /// then the resource data sync synchronizes data to an S3 bucket. If the SyncType is /// SyncFromSource then the resource data sync synchronizes data from AWS Organizations or from /// multiple AWS Regions.

    - #[serde(rename = "SyncType")] - #[serde(default)] pub sync_type: std::option::Option, ///

    Information about the source where the data was synchronized.

    - #[serde(rename = "SyncSource")] - #[serde(default)] pub sync_source: std::option::Option, ///

    Configuration information for the target S3 bucket.

    - #[serde(rename = "S3Destination")] - #[serde(default)] pub s3_destination: std::option::Option, ///

    The last time the configuration attempted to sync (UTC).

    - #[serde(rename = "LastSyncTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_sync_time: std::option::Option, ///

    The last time the sync operations returned a status of SUCCESSFUL (UTC).

    - #[serde(rename = "LastSuccessfulSyncTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_successful_sync_time: std::option::Option, ///

    The date and time the resource data sync was changed.

    - #[serde(rename = "SyncLastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub sync_last_modified_time: std::option::Option, ///

    The status reported by the last sync.

    - #[serde(rename = "LastStatus")] - #[serde(default)] pub last_status: std::option::Option, ///

    The date and time the configuration was created (UTC).

    - #[serde(rename = "SyncCreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub sync_created_time: std::option::Option, ///

    The status message details reported by the last sync.

    - #[serde(rename = "LastSyncStatusMessage")] - #[serde(default)] pub last_sync_status_message: std::option::Option, } impl std::fmt::Debug for ResourceDataSyncItem { @@ -8401,7 +7629,7 @@ impl std::convert::From<&str> for LastResourceDataSyncStatus { impl std::str::FromStr for LastResourceDataSyncStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(LastResourceDataSyncStatus::from(s)) } } @@ -8420,44 +7648,23 @@ impl AsRef for LastResourceDataSyncStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for LastResourceDataSyncStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the target S3 bucket for the Resource Data Sync.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncS3Destination { ///

    The name of the S3 bucket where the aggregated data is stored.

    - #[serde(rename = "BucketName")] - #[serde(default)] pub bucket_name: std::option::Option, ///

    An Amazon S3 prefix for the bucket.

    - #[serde(rename = "Prefix")] - #[serde(default)] pub prefix: std::option::Option, ///

    A supported sync format. The following format is currently supported: JsonSerDe

    - #[serde(rename = "SyncFormat")] - #[serde(default)] pub sync_format: std::option::Option, ///

    The AWS Region with the S3 bucket targeted by the Resource Data Sync.

    - #[serde(rename = "Region")] - #[serde(default)] pub region: std::option::Option, ///

    The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as /// the destination S3 bucket.

    - #[serde(rename = "AWSKMSKeyARN")] - #[serde(default)] pub awskms_key_arn: std::option::Option, ///

    Enables destination data sharing. By default, this field is null.

    - #[serde(rename = "DestinationDataSharing")] - #[serde(default)] pub destination_data_sharing: std::option::Option, } @@ -8579,11 +7786,9 @@ impl ResourceDataSyncS3Destination { /// a centralized S3 bucket. Data is synchronized to individual key prefixes in the central bucket. /// Each key prefix represents a different AWS account ID.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncDestinationDataSharing { ///

    The sharing data type. Only Organization is supported.

    - #[serde(rename = "DestinationDataSharingType")] - #[serde(default)] pub destination_data_sharing_type: std::option::Option, } impl std::fmt::Debug for ResourceDataSyncDestinationDataSharing { @@ -8661,7 +7866,7 @@ impl std::convert::From<&str> for ResourceDataSyncS3Format { impl std::str::FromStr for ResourceDataSyncS3Format { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceDataSyncS3Format::from(s)) } } @@ -8678,15 +7883,6 @@ impl AsRef for ResourceDataSyncS3Format { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceDataSyncS3Format { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The data type name for including resource data sync state. There are four sync /// states:

    @@ -8702,28 +7898,20 @@ impl<'de> serde::Deserialize<'de> for ResourceDataSyncS3Format { /// TrustedAccessDisabled (You disabled Systems Manager access in the organization in /// AWS Organizations.)

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceDataSyncSourceWithState { ///

    The type of data source for the resource data sync. SourceType is either /// AwsOrganizations (if an organization is present in AWS Organizations) or /// singleAccountMultiRegions.

    - #[serde(rename = "SourceType")] - #[serde(default)] pub source_type: std::option::Option, ///

    The field name in SyncSource for the /// ResourceDataSyncAwsOrganizationsSource type.

    - #[serde(rename = "AwsOrganizationsSource")] - #[serde(default)] pub aws_organizations_source: std::option::Option, ///

    The SyncSource AWS Regions included in the resource data sync.

    - #[serde(rename = "SourceRegions")] - #[serde(default)] pub source_regions: std::option::Option>, ///

    Whether to automatically synchronize and aggregate data from new AWS Regions when those /// Regions come online.

    - #[serde(rename = "IncludeFutureRegions")] - #[serde(default)] pub include_future_regions: bool, ///

    The data type name for including resource data sync state. There are four sync /// states:

    @@ -8738,15 +7926,11 @@ pub struct ResourceDataSyncSourceWithState { ///

    /// TrustedAccessDisabled: You disabled Systems Manager access in the organization in /// AWS Organizations.

    - #[serde(rename = "State")] - #[serde(default)] pub state: std::option::Option, ///

    When you create a resource data sync, if you choose one of the AWS Organizations options, then Systems Manager /// automatically enables all OpsData sources in the selected AWS Regions for all AWS accounts in /// your organization (or in the selected organization units). For more information, see About multiple account and Region resource data syncs in the /// AWS Systems Manager User Guide.

    - #[serde(rename = "EnableAllOpsDataSources")] - #[serde(default)] pub enable_all_ops_data_sources: bool, } impl std::fmt::Debug for ResourceDataSyncSourceWithState { @@ -8884,40 +8068,24 @@ impl ResourceDataSyncSourceWithState { ///

    Compliance summary information for a specific resource.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResourceComplianceSummaryItem { ///

    The compliance type.

    - #[serde(rename = "ComplianceType")] - #[serde(default)] pub compliance_type: std::option::Option, ///

    The resource type.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The resource ID.

    - #[serde(rename = "ResourceId")] - #[serde(default)] pub resource_id: std::option::Option, ///

    The compliance status for the resource.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The highest severity item found for the resource. The resource is compliant for this /// item.

    - #[serde(rename = "OverallSeverity")] - #[serde(default)] pub overall_severity: std::option::Option, ///

    Information about the execution.

    - #[serde(rename = "ExecutionSummary")] - #[serde(default)] pub execution_summary: std::option::Option, ///

    A list of items that are compliant for the resource.

    - #[serde(rename = "CompliantSummary")] - #[serde(default)] pub compliant_summary: std::option::Option, ///

    A list of items that aren't compliant for the resource.

    - #[serde(rename = "NonCompliantSummary")] - #[serde(default)] pub non_compliant_summary: std::option::Option, } impl std::fmt::Debug for ResourceComplianceSummaryItem { @@ -9072,15 +8240,11 @@ impl ResourceComplianceSummaryItem { ///

    A summary of resources that are not compliant. The summary is organized according to /// resource type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct NonCompliantSummary { ///

    The total number of compliance items that are not compliant.

    - #[serde(rename = "NonCompliantCount")] - #[serde(default)] pub non_compliant_count: i32, ///

    A summary of the non-compliance severity by compliance type

    - #[serde(rename = "SeveritySummary")] - #[serde(default)] pub severity_summary: std::option::Option, } impl std::fmt::Debug for NonCompliantSummary { @@ -9141,39 +8305,27 @@ impl NonCompliantSummary { ///

    The number of managed instances found for each patch severity level defined in the request /// filter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SeveritySummary { ///

    The total number of resources or compliance items that have a severity level of critical. /// Critical severity is determined by the organization that published the compliance items.

    - #[serde(rename = "CriticalCount")] - #[serde(default)] pub critical_count: i32, ///

    The total number of resources or compliance items that have a severity level of high. High /// severity is determined by the organization that published the compliance items.

    - #[serde(rename = "HighCount")] - #[serde(default)] pub high_count: i32, ///

    The total number of resources or compliance items that have a severity level of medium. /// Medium severity is determined by the organization that published the compliance items.

    - #[serde(rename = "MediumCount")] - #[serde(default)] pub medium_count: i32, ///

    The total number of resources or compliance items that have a severity level of low. Low /// severity is determined by the organization that published the compliance items.

    - #[serde(rename = "LowCount")] - #[serde(default)] pub low_count: i32, ///

    The total number of resources or compliance items that have a severity level of /// informational. Informational severity is determined by the organization that published the /// compliance items.

    - #[serde(rename = "InformationalCount")] - #[serde(default)] pub informational_count: i32, ///

    The total number of resources or compliance items that have a severity level of unspecified. /// Unspecified severity is determined by the organization that published the compliance /// items.

    - #[serde(rename = "UnspecifiedCount")] - #[serde(default)] pub unspecified_count: i32, } impl std::fmt::Debug for SeveritySummary { @@ -9287,15 +8439,11 @@ impl SeveritySummary { ///

    A summary of resources that are compliant. The summary is organized according to the /// resource count for each compliance type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CompliantSummary { ///

    The total number of resources that are compliant.

    - #[serde(rename = "CompliantCount")] - #[serde(default)] pub compliant_count: i32, ///

    A summary of the compliance severity by compliance type.

    - #[serde(rename = "SeveritySummary")] - #[serde(default)] pub severity_summary: std::option::Option, } impl std::fmt::Debug for CompliantSummary { @@ -9355,20 +8503,14 @@ impl CompliantSummary { ///

    One or more filters. Use a filter to return a more specific list of results.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComplianceStringFilter { ///

    The name of the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value for which to search.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The type of comparison that should be performed for the value: Equal, NotEqual, BeginWith, /// LessThan, or GreaterThan.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for ComplianceStringFilter { @@ -9477,7 +8619,7 @@ impl std::convert::From<&str> for ComplianceQueryOperatorType { impl std::str::FromStr for ComplianceQueryOperatorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ComplianceQueryOperatorType::from(s)) } } @@ -9498,45 +8640,20 @@ impl AsRef for ComplianceQueryOperatorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ComplianceQueryOperatorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Operational metadata for an application in Application Manager.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsMetadata { ///

    The ID of the Application Manager application.

    - #[serde(rename = "ResourceId")] - #[serde(default)] pub resource_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.

    - #[serde(rename = "OpsMetadataArn")] - #[serde(default)] pub ops_metadata_arn: std::option::Option, ///

    The date the OpsMetadata object was last updated.

    - #[serde(rename = "LastModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_date: std::option::Option, ///

    The user name who last updated the OpsMetadata object.

    - #[serde(rename = "LastModifiedUser")] - #[serde(default)] pub last_modified_user: std::option::Option, ///

    The date the OpsMetadata objects was created.

    - #[serde(rename = "CreationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub creation_date: std::option::Option, } impl std::fmt::Debug for OpsMetadata { @@ -9641,15 +8758,11 @@ impl OpsMetadata { ///

    A filter to limit the number of OpsMetadata objects displayed.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsMetadataFilter { ///

    A filter key.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    A filter value.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for OpsMetadataFilter { @@ -9710,49 +8823,25 @@ impl OpsMetadataFilter { ///

    Summary information about related-item resources for an OpsItem.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemRelatedItemSummary { ///

    The OpsItem ID.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The resource type.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The association type.

    - #[serde(rename = "AssociationType")] - #[serde(default)] pub association_type: std::option::Option, ///

    The Amazon Resource Name (ARN) of the related-item resource.

    - #[serde(rename = "ResourceUri")] - #[serde(default)] pub resource_uri: std::option::Option, ///

    Information about the user or resource that created an OpsItem event.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    The time the related-item association was created.

    - #[serde(rename = "CreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_time: std::option::Option, ///

    Information about the user or resource that created an OpsItem event.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

    The time the related-item association was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, } impl std::fmt::Debug for OpsItemRelatedItemSummary { @@ -9914,11 +9003,9 @@ impl OpsItemRelatedItemSummary { ///

    Information about the user or resource that created an OpsItem event.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemIdentity { ///

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem event.

    - #[serde(rename = "Arn")] - #[serde(default)] pub arn: std::option::Option, } impl std::fmt::Debug for OpsItemIdentity { @@ -9961,21 +9048,15 @@ impl OpsItemIdentity { ///

    Describes a filter for a specific list of related-item resources.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemRelatedItemsFilter { ///

    The name of the filter key. Supported values include ResourceUri, /// ResourceType, or AssociationId.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The values for the filter.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The operator used by the filter call. The only supported operator is /// EQUAL.

    - #[serde(rename = "Operator")] - #[serde(default)] pub operator: std::option::Option, } impl std::fmt::Debug for OpsItemRelatedItemsFilter { @@ -10080,7 +9161,7 @@ impl std::convert::From<&str> for OpsItemRelatedItemsFilterOperator { impl std::str::FromStr for OpsItemRelatedItemsFilterOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemRelatedItemsFilterOperator::from(s)) } } @@ -10097,15 +9178,6 @@ impl AsRef for OpsItemRelatedItemsFilterOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemRelatedItemsFilterOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10137,7 +9209,7 @@ impl std::convert::From<&str> for OpsItemRelatedItemsFilterKey { impl std::str::FromStr for OpsItemRelatedItemsFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemRelatedItemsFilterKey::from(s)) } } @@ -10156,51 +9228,25 @@ impl AsRef for OpsItemRelatedItemsFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemRelatedItemsFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Summary information about an OpsItem event or that associated an OpsItem with a related /// item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemEventSummary { ///

    The ID of the OpsItem.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    The ID of the OpsItem event.

    - #[serde(rename = "EventId")] - #[serde(default)] pub event_id: std::option::Option, ///

    The source of the OpsItem event.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The type of information provided as a detail.

    - #[serde(rename = "DetailType")] - #[serde(default)] pub detail_type: std::option::Option, ///

    Specific information about the OpsItem event.

    - #[serde(rename = "Detail")] - #[serde(default)] pub detail: std::option::Option, ///

    Information about the user or resource that created the OpsItem event.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    The date and time the OpsItem event was created.

    - #[serde(rename = "CreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_time: std::option::Option, } impl std::fmt::Debug for OpsItemEventSummary { @@ -10324,21 +9370,15 @@ impl OpsItemEventSummary { ///

    Describes a filter for a specific list of OpsItem events. You can filter event information /// by using tags. You specify tags by using a key-value pair mapping.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemEventFilter { ///

    The name of the filter key. Currently, the only supported value is /// OpsItemId.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The values for the filter, consisting of one or more OpsItem IDs.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The operator used by the filter call. Currently, the only supported value is /// Equal.

    - #[serde(rename = "Operator")] - #[serde(default)] pub operator: std::option::Option, } impl std::fmt::Debug for OpsItemEventFilter { @@ -10443,7 +9483,7 @@ impl std::convert::From<&str> for OpsItemEventFilterOperator { impl std::str::FromStr for OpsItemEventFilterOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemEventFilterOperator::from(s)) } } @@ -10460,15 +9500,6 @@ impl AsRef for OpsItemEventFilterOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemEventFilterOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -10496,7 +9527,7 @@ impl std::convert::From<&str> for OpsItemEventFilterKey { impl std::str::FromStr for OpsItemEventFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemEventFilterKey::from(s)) } } @@ -10513,29 +9544,16 @@ impl AsRef for OpsItemEventFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemEventFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    One or more filters. Use a filter to return a more specific list of results.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryFilter { ///

    The name of the filter key.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    Inventory filter values. Example: inventory filter where instance IDs are specified as /// values Key=AWS:InstanceInformation.InstanceId,Values= i-a12b3c4d5e6g, i-1a2b3c4d5e6,Type=Equal ///

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The type of filter.

    /// @@ -10543,8 +9561,6 @@ pub struct InventoryFilter { /// Aggregating inventory /// data in the AWS Systems Manager User Guide.

    ///
    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for InventoryFilter { @@ -10659,7 +9675,7 @@ impl std::convert::From<&str> for InventoryQueryOperatorType { impl std::str::FromStr for InventoryQueryOperatorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryQueryOperatorType::from(s)) } } @@ -10681,67 +9697,35 @@ impl AsRef for InventoryQueryOperatorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryQueryOperatorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Version information about the document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentVersionInfo { ///

    The document name.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The friendly name of the Systems Manager document. This value can differ for each version of the /// document. If you want to update this value, see UpdateDocument.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The version of the artifact associated with the document. For example, "Release 12, Update /// 6". This value is unique across all versions of a document, and cannot be changed.

    - #[serde(rename = "VersionName")] - #[serde(default)] pub version_name: std::option::Option, ///

    The date the document was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    An identifier for the default version of the document.

    - #[serde(rename = "IsDefaultVersion")] - #[serde(default)] pub is_default_version: bool, ///

    The document format, either JSON or YAML.

    - #[serde(rename = "DocumentFormat")] - #[serde(default)] pub document_format: std::option::Option, ///

    The status of the Systems Manager document, such as Creating, Active, /// Failed, and Deleting.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A message returned by AWS Systems Manager that explains the Status value. For example, a /// Failed status might be explained by the StatusInformation message, /// "The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct."

    - #[serde(rename = "StatusInformation")] - #[serde(default)] pub status_information: std::option::Option, ///

    The current status of the approval review for the latest version of the document.

    - #[serde(rename = "ReviewStatus")] - #[serde(default)] pub review_status: std::option::Option, } impl std::fmt::Debug for DocumentVersionInfo { @@ -10917,77 +9901,44 @@ impl DocumentVersionInfo { ///

    Describes the name of a Systems Manager document.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentIdentifier { ///

    The name of the Systems Manager document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The date the Systems Manager document was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    An optional field where you can specify a friendly name for the Systems Manager document. This value /// can differ for each version of the document. If you want to update this value, see UpdateDocument.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, ///

    The AWS user account that created the document.

    - #[serde(rename = "Owner")] - #[serde(default)] pub owner: std::option::Option, ///

    An optional field specifying the version of the artifact associated with the document. For /// example, "Release 12, Update 6". This value is unique across all versions of a document, and /// cannot be changed.

    - #[serde(rename = "VersionName")] - #[serde(default)] pub version_name: std::option::Option, ///

    The operating system platform.

    - #[serde(rename = "PlatformTypes")] - #[serde(default)] pub platform_types: std::option::Option>, ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The document type.

    - #[serde(rename = "DocumentType")] - #[serde(default)] pub document_type: std::option::Option, ///

    The schema version.

    - #[serde(rename = "SchemaVersion")] - #[serde(default)] pub schema_version: std::option::Option, ///

    The document format, either JSON or YAML.

    - #[serde(rename = "DocumentFormat")] - #[serde(default)] pub document_format: std::option::Option, ///

    The target type which defines the kinds of resources the document can run on. For example, /// /AWS::EC2::Instance. For a list of valid resource types, see AWS resource and property types /// reference in the AWS CloudFormation User Guide.

    - #[serde(rename = "TargetType")] - #[serde(default)] pub target_type: std::option::Option, ///

    The tags, or metadata, that have been applied to the document.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, ///

    A list of SSM documents required by a document. For example, an /// ApplicationConfiguration document requires an /// ApplicationConfigurationSchema document.

    - #[serde(rename = "Requires")] - #[serde(default)] pub requires: std::option::Option>, ///

    The current status of a document review.

    - #[serde(rename = "ReviewStatus")] - #[serde(default)] pub review_status: std::option::Option, ///

    The user in your organization who created the document.

    - #[serde(rename = "Author")] - #[serde(default)] pub author: std::option::Option, } impl std::fmt::Debug for DocumentIdentifier { @@ -11326,15 +10277,11 @@ impl DocumentIdentifier { /// Key=Owner,Values=Self ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentKeyValuesFilter { ///

    The name of the filter key.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value for the filter key.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for DocumentKeyValuesFilter { @@ -11395,15 +10342,11 @@ impl DocumentKeyValuesFilter { ///

    This data type is deprecated. Instead, use DocumentKeyValuesFilter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentFilter { ///

    The name of the filter.

    - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

    The value of the filter.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for DocumentFilter { @@ -11493,7 +10436,7 @@ impl std::convert::From<&str> for DocumentFilterKey { impl std::str::FromStr for DocumentFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentFilterKey::from(s)) } } @@ -11513,23 +10456,12 @@ impl AsRef for DocumentFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about the response to a document review request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentMetadataResponseInfo { ///

    Details about a reviewer's response to a document review request.

    - #[serde(rename = "ReviewerResponse")] - #[serde(default)] pub reviewer_response: std::option::Option>, } @@ -11583,38 +10515,22 @@ impl DocumentMetadataResponseInfo { ///

    Information about a reviewer's response to a document review request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DocumentReviewerResponseSource { ///

    The date and time that a reviewer entered a response to a document review request.

    - #[serde(rename = "CreateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub create_time: std::option::Option, ///

    The date and time that a reviewer last updated a response to a document review /// request.

    - #[serde(rename = "UpdatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub updated_time: std::option::Option, ///

    The current review status of a new custom SSM document created by a member of your /// organization, or of the latest version of an existing SSM document.

    ///

    Only one version of a document can be in the APPROVED state at a time. When a new version is /// approved, the status of the previous version changes to REJECTED.

    ///

    Only one version of a document can be in review, or PENDING, at a time.

    - #[serde(rename = "ReviewStatus")] - #[serde(default)] pub review_status: std::option::Option, ///

    The comment entered by a reviewer as part of their document review response.

    - #[serde(rename = "Comment")] - #[serde(default)] pub comment: std::option::Option>, ///

    The user in your organization assigned to review a document request.

    - #[serde(rename = "Reviewer")] - #[serde(default)] pub reviewer: std::option::Option, } impl std::fmt::Debug for DocumentReviewerResponseSource { @@ -11753,7 +10669,7 @@ impl std::convert::From<&str> for DocumentMetadataEnum { impl std::str::FromStr for DocumentMetadataEnum { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DocumentMetadataEnum::from(s)) } } @@ -11770,32 +10686,17 @@ impl AsRef for DocumentMetadataEnum { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DocumentMetadataEnum { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A summary of compliance information by compliance type.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComplianceSummaryItem { ///

    The type of compliance item. For example, the compliance type can be Association, Patch, or /// Custom:string.

    - #[serde(rename = "ComplianceType")] - #[serde(default)] pub compliance_type: std::option::Option, ///

    A list of COMPLIANT items for the specified compliance type.

    - #[serde(rename = "CompliantSummary")] - #[serde(default)] pub compliant_summary: std::option::Option, ///

    A list of NON_COMPLIANT items for the specified compliance type.

    - #[serde(rename = "NonCompliantSummary")] - #[serde(default)] pub non_compliant_summary: std::option::Option, } impl std::fmt::Debug for ComplianceSummaryItem { @@ -11876,51 +10777,33 @@ impl ComplianceSummaryItem { /// resource type, Items includes information about the PatchSeverity, Classification, /// and so on.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ComplianceItem { ///

    The compliance type. For example, Association (for a State Manager association), Patch, or /// Custom:string are all valid compliance types.

    - #[serde(rename = "ComplianceType")] - #[serde(default)] pub compliance_type: std::option::Option, ///

    The type of resource. ManagedInstance is currently the only supported resource /// type.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    An ID for the resource. For a managed instance, this is the instance ID.

    - #[serde(rename = "ResourceId")] - #[serde(default)] pub resource_id: std::option::Option, ///

    An ID for the compliance item. For example, if the compliance item is a Windows patch, the /// ID could be the number of the KB article; for example: KB4010320.

    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    A title for the compliance item. For example, if the compliance item is a Windows patch, the /// title could be the title of the KB article for the patch; for example: Security Update for Active /// Directory Federation Services.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty /// string (for Windows patches that aren't applicable).

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The severity of the compliance status. Severity can be one of the following: Critical, High, /// Medium, Low, Informational, Unspecified.

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    A summary for the compliance item. The summary includes an execution ID, the execution type /// (for example, command), and the execution time.

    - #[serde(rename = "ExecutionSummary")] - #[serde(default)] pub execution_summary: std::option::Option, ///

    A "Key": "Value" tag combination for the compliance item.

    - #[serde(rename = "Details")] - #[serde(default)] pub details: std::option::Option>, } @@ -12104,11 +10987,9 @@ impl ComplianceItem { /// command hasn't run on the instance yet.

    /// #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CommandFilter { ///

    The name of the filter.

    - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter value. Valid values for each filter key are as follows:

    ///
      @@ -12191,8 +11072,6 @@ pub struct CommandFilter { ///
    /// /// - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for CommandFilter { @@ -12364,7 +11243,7 @@ impl std::convert::From<&str> for CommandFilterKey { impl std::str::FromStr for CommandFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CommandFilterKey::from(s)) } } @@ -12385,15 +11264,6 @@ impl AsRef for CommandFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CommandFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An invocation is copy of a command sent to a specific instance. A command can apply to one /// or more instances. A command invocation applies to one instance. For example, if a user runs @@ -12401,44 +11271,25 @@ impl<'de> serde::Deserialize<'de> for CommandFilterKey { /// instance ID. A command invocation returns status and detail information about a command you ran. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CommandInvocation { ///

    The command against which this invocation was requested.

    - #[serde(rename = "CommandId")] - #[serde(default)] pub command_id: std::option::Option, ///

    The instance ID in which this invocation was requested.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The name of the invocation target. For EC2 instances this is the value for the aws:Name tag. /// For on-premises instances, this is the name of the instance.

    - #[serde(rename = "InstanceName")] - #[serde(default)] pub instance_name: std::option::Option, ///

    User-specified information about the command, such as a brief description of what the /// command should do.

    - #[serde(rename = "Comment")] - #[serde(default)] pub comment: std::option::Option, ///

    The document name that was requested for execution.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The SSM document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The time and date the request was sent to this instance.

    - #[serde(rename = "RequestedDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub requested_date_time: std::option::Option, ///

    Whether or not the invocation succeeded, failed, or is pending.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A detailed status of the command execution for each invocation (each instance targeted by /// the command). StatusDetails includes more information than Status because it includes states @@ -12490,42 +11341,26 @@ pub struct CommandInvocation { /// invocations were canceled by the system. This is a terminal state.

    /// /// - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    Gets the trace output sent by the agent.

    - #[serde(rename = "TraceOutput")] - #[serde(default)] pub trace_output: std::option::Option, ///

    The URL to the plugin's StdOut file in Amazon S3, if the S3 bucket was defined for the parent /// command. For an invocation, StandardOutputUrl is populated if there is just one plugin defined /// for the command, and the S3 bucket was defined for the command.

    - #[serde(rename = "StandardOutputUrl")] - #[serde(default)] pub standard_output_url: std::option::Option, ///

    The URL to the plugin's StdErr file in Amazon S3, if the S3 bucket was defined for the parent /// command. For an invocation, StandardErrorUrl is populated if there is just one plugin defined for /// the command, and the S3 bucket was defined for the command.

    - #[serde(rename = "StandardErrorUrl")] - #[serde(default)] pub standard_error_url: std::option::Option, ///

    Plugins processed by the command.

    - #[serde(rename = "CommandPlugins")] - #[serde(default)] pub command_plugins: std::option::Option>, ///

    The IAM service role that Run Command uses to act on your behalf when sending notifications /// about command status changes on a per instance basis.

    - #[serde(rename = "ServiceRole")] - #[serde(default)] pub service_role: std::option::Option, ///

    Configurations for sending notifications about command status changes on a per instance /// basis.

    - #[serde(rename = "NotificationConfig")] - #[serde(default)] pub notification_config: std::option::Option, ///

    CloudWatch Logs information where you want Systems Manager to send the command output.

    - #[serde(rename = "CloudWatchOutputConfig")] - #[serde(default)] pub cloud_watch_output_config: std::option::Option, } impl std::fmt::Debug for CommandInvocation { @@ -12845,17 +11680,13 @@ impl CommandInvocation { ///

    Describes plugin details.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CommandPlugin { ///

    The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, /// aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, aws:runShellScript, or /// aws:updateSSMAgent.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The status of this plugin. You can run a document with multiple plugins.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    A detailed status of the plugin execution. StatusDetails includes more information than /// Status because it includes states resulting from error and concurrency control parameters. @@ -12906,46 +11737,24 @@ pub struct CommandPlugin { /// invocations were canceled by the system. This is a terminal state.

    /// /// - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    A numeric response code generated after running the plugin.

    - #[serde(rename = "ResponseCode")] - #[serde(default)] pub response_code: i32, ///

    The time the plugin started running.

    - #[serde(rename = "ResponseStartDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub response_start_date_time: std::option::Option, ///

    The time the plugin stopped running. Could stop prematurely if, for example, a cancel /// command was sent.

    - #[serde(rename = "ResponseFinishDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub response_finish_date_time: std::option::Option, ///

    Output of the plugin execution.

    - #[serde(rename = "Output")] - #[serde(default)] pub output: std::option::Option, ///

    The URL for the complete text written by the plugin to stdout in Amazon S3. If the S3 bucket for /// the command was not specified, then this string is empty.

    - #[serde(rename = "StandardOutputUrl")] - #[serde(default)] pub standard_output_url: std::option::Option, ///

    The URL for the complete text written by the plugin to stderr. If execution is not yet /// complete, then this string is empty.

    - #[serde(rename = "StandardErrorUrl")] - #[serde(default)] pub standard_error_url: std::option::Option, ///

    (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager /// automatically determines the S3 bucket region.

    - #[serde(rename = "OutputS3Region")] - #[serde(default)] pub output_s3_region: std::option::Option, ///

    The S3 bucket where the responses to the command executions should be stored. This was /// requested when issuing the command. For example, in the following response:

    @@ -12954,8 +11763,6 @@ pub struct CommandPlugin { ///

    ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

    ///

    i-02573cafcfEXAMPLE is the instance ID;

    ///

    awsrunShellScript is the name of the plugin.

    - #[serde(rename = "OutputS3BucketName")] - #[serde(default)] pub output_s3_bucket_name: std::option::Option, ///

    The S3 directory path inside the bucket where the responses to the command executions should /// be stored. This was requested when issuing the command. For example, in the following @@ -12965,8 +11772,6 @@ pub struct CommandPlugin { ///

    ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

    ///

    i-02573cafcfEXAMPLE is the instance ID;

    ///

    awsrunShellScript is the name of the plugin.

    - #[serde(rename = "OutputS3KeyPrefix")] - #[serde(default)] pub output_s3_key_prefix: std::option::Option, } impl std::fmt::Debug for CommandPlugin { @@ -13271,7 +12076,7 @@ impl std::convert::From<&str> for CommandPluginStatus { impl std::str::FromStr for CommandPluginStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CommandPluginStatus::from(s)) } } @@ -13293,15 +12098,6 @@ impl AsRef for CommandPluginStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CommandPluginStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -13343,7 +12139,7 @@ impl std::convert::From<&str> for CommandInvocationStatus { impl std::str::FromStr for CommandInvocationStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CommandInvocationStatus::from(s)) } } @@ -13367,67 +12163,35 @@ impl AsRef for CommandInvocationStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CommandInvocationStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the association version.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationVersionInfo { ///

    The ID created by the system when the association was created.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The association version.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The date the association version was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    The name specified when the association was created.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The version of a Systems Manager document used when the association version was created.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    Parameters specified when the association version was created.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The targets specified for the association when the association version was created.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The cron or rate schedule specified for the association when the association version was /// created.

    - #[serde(rename = "ScheduleExpression")] - #[serde(default)] pub schedule_expression: std::option::Option, ///

    The location in Amazon S3 specified for the association when the association version was /// created.

    - #[serde(rename = "OutputLocation")] - #[serde(default)] pub output_location: std::option::Option, ///

    The name specified for the association version when the association version was /// created.

    - #[serde(rename = "AssociationName")] - #[serde(default)] pub association_name: std::option::Option, ///

    The number of errors that are allowed before the system stops sending requests to run the /// association on additional targets. You can specify either an absolute number of errors, for @@ -13440,8 +12204,6 @@ pub struct AssociationVersionInfo { /// complete, but some of these executions may fail as well. If you need to ensure that there won't /// be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one /// at a time.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The maximum number of targets allowed to run the association at the same time. You can /// specify a number, for example 10, or a percentage of the target set, for example 10%. The default @@ -13450,12 +12212,8 @@ pub struct AssociationVersionInfo { /// MaxConcurrency associations, the association is allowed to run. During the next association /// interval, the new instance will process its association within the limit specified for /// MaxConcurrency.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The severity level that is assigned to the association.

    - #[serde(rename = "ComplianceSeverity")] - #[serde(default)] pub compliance_severity: std::option::Option, ///

    The mode for generating association compliance. You can specify AUTO or /// MANUAL. In AUTO mode, the system uses the status of the association @@ -13466,27 +12224,19 @@ pub struct AssociationVersionInfo { /// for the PutComplianceItems API action. In this case, compliance data is not /// managed by State Manager. It is managed by your direct call to the PutComplianceItems API action.

    ///

    By default, all associations use AUTO mode.

    - #[serde(rename = "SyncCompliance")] - #[serde(default)] pub sync_compliance: std::option::Option, ///

    By default, when you create a new associations, the system runs it immediately after it is /// created and then according to the schedule you specified. Specify this option if you don't want /// an association to run immediately after you create it. This parameter is not supported for rate /// expressions.

    - #[serde(rename = "ApplyOnlyAtCronInterval")] - #[serde(default)] pub apply_only_at_cron_interval: bool, ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager Change Calendar type /// documents your associations are gated under. The associations for this version only run when /// that Change Calendar is open. For more information, see /// AWS Systems Manager Change Calendar.

    - #[serde(rename = "CalendarNames")] - #[serde(default)] pub calendar_names: std::option::Option>, ///

    The combination of AWS Regions and AWS accounts where you wanted to run the association when /// this association version was created.

    - #[serde(rename = "TargetLocations")] - #[serde(default)] pub target_locations: std::option::Option>, } impl std::fmt::Debug for AssociationVersionInfo { @@ -13819,52 +12569,29 @@ impl AssociationVersionInfo { ///

    Describes an association of a Systems Manager document and an instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Association { ///

    The name of the Systems Manager document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The ID of the instance.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The ID created by the system when you create an association. An association is a binding /// between a document and a set of targets with a schedule.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The association version.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The version of the document used in the association.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The instances targeted by the request to create an association.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The date on which the association was last run.

    - #[serde(rename = "LastExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_execution_date: std::option::Option, ///

    Information about the association.

    - #[serde(rename = "Overview")] - #[serde(default)] pub overview: std::option::Option, ///

    A cron expression that specifies a schedule when the association runs. The schedule runs in /// Coordinated Universal Time (UTC).

    - #[serde(rename = "ScheduleExpression")] - #[serde(default)] pub schedule_expression: std::option::Option, ///

    The association name.

    - #[serde(rename = "AssociationName")] - #[serde(default)] pub association_name: std::option::Option, } impl std::fmt::Debug for Association { @@ -14044,19 +12771,15 @@ impl Association { ///

    Describes a filter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationFilter { ///

    The name of the filter.

    /// ///

    /// InstanceId has been deprecated.

    ///
    - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter value.

    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for AssociationFilter { @@ -14158,7 +12881,7 @@ impl std::convert::From<&str> for AssociationFilterKey { impl std::str::FromStr for AssociationFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationFilterKey::from(s)) } } @@ -14182,64 +12905,34 @@ impl AsRef for AssociationFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An Systems Manager parameter in Parameter Store.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Parameter { ///

    The name of the parameter.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The type of parameter. Valid values include the following: String, /// StringList, and SecureString.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The parameter value.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

    The parameter version.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: i64, ///

    Either the version number or the label used to retrieve the parameter value. Specify /// selectors by using one of the following formats:

    ///

    parameter_name:version

    ///

    parameter_name:label

    - #[serde(rename = "Selector")] - #[serde(default)] pub selector: std::option::Option, ///

    Applies to parameters that reference information in other AWS services. SourceResult is the /// raw result or response from the source.

    - #[serde(rename = "SourceResult")] - #[serde(default)] pub source_result: std::option::Option, ///

    Date the parameter was last changed or updated and the parameter version was created.

    - #[serde(rename = "LastModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_date: std::option::Option, ///

    The Amazon Resource Name (ARN) of the parameter.

    - #[serde(rename = "ARN")] - #[serde(default)] pub arn: std::option::Option, ///

    The data type of the parameter, such as text or aws:ec2:image. The /// default is text.

    - #[serde(rename = "DataType")] - #[serde(default)] pub data_type: std::option::Option, } impl std::fmt::Debug for Parameter { @@ -14392,7 +13085,7 @@ impl Parameter { ///

    One or more filters. Use a filter to return a more specific list of results.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterStringFilter { ///

    The name of the filter.

    /// @@ -14406,8 +13099,6 @@ pub struct ParameterStringFilter { ///

    For examples of CLI commands demonstrating valid parameter filter constructions, see Searching for /// Systems Manager parameters in the AWS Systems Manager User Guide.

    ///
    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    For all filters used with DescribeParameters, valid options include /// Equals and BeginsWith. The Name filter additionally @@ -14417,12 +13108,8 @@ pub struct ParameterStringFilter { ///

    For filters used with GetParametersByPath, valid options include /// Equals and BeginsWith. (Exception: For filters using /// Label as the Key name, the only valid option is Equals.)

    - #[serde(rename = "Option")] - #[serde(default)] pub option: std::option::Option, ///

    The value you want to search for.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for ParameterStringFilter { @@ -14513,67 +13200,38 @@ impl ParameterStringFilter { ///

    Information about parameter usage.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterHistory { ///

    The name of the parameter.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The type of parameter used.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The ID of the query key used for this parameter.

    - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    Date the parameter was last changed or updated.

    - #[serde(rename = "LastModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_date: std::option::Option, ///

    Amazon Resource Name (ARN) of the AWS user who last changed the parameter.

    - #[serde(rename = "LastModifiedUser")] - #[serde(default)] pub last_modified_user: std::option::Option, ///

    Information about the parameter.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The parameter value.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

    Parameter names can include the following letters and symbols.

    ///

    a-zA-Z0-9_.-

    - #[serde(rename = "AllowedPattern")] - #[serde(default)] pub allowed_pattern: std::option::Option, ///

    The parameter version.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: i64, ///

    Labels assigned to the parameter version.

    - #[serde(rename = "Labels")] - #[serde(default)] pub labels: std::option::Option>, ///

    The parameter tier.

    - #[serde(rename = "Tier")] - #[serde(default)] pub tier: std::option::Option, ///

    Information about the policies assigned to a parameter.

    ///

    /// Assigning parameter /// policies in the AWS Systems Manager User Guide.

    - #[serde(rename = "Policies")] - #[serde(default)] pub policies: std::option::Option>, ///

    The data type of the parameter, such as text or aws:ec2:image. The /// default is text.

    - #[serde(rename = "DataType")] - #[serde(default)] pub data_type: std::option::Option, } impl std::fmt::Debug for ParameterHistory { @@ -14782,22 +13440,16 @@ impl ParameterHistory { ///

    One or more policies assigned to a parameter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterInlinePolicy { ///

    The JSON text of the policy.

    - #[serde(rename = "PolicyText")] - #[serde(default)] pub policy_text: std::option::Option, ///

    The type of policy. Parameter Store supports the following policy types: Expiration, /// ExpirationNotification, and NoChangeNotification.

    - #[serde(rename = "PolicyType")] - #[serde(default)] pub policy_type: std::option::Option, ///

    The status of the policy. Policies report the following statuses: Pending (the policy has /// not been enforced or applied yet), Finished (the policy was applied), Failed (the policy was not /// applied), or InProgress (the policy is being applied now).

    - #[serde(rename = "PolicyStatus")] - #[serde(default)] pub policy_status: std::option::Option, } impl std::fmt::Debug for ParameterInlinePolicy { @@ -14872,15 +13524,11 @@ impl ParameterInlinePolicy { ///

    The result of the query.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsEntity { ///

    The query ID.

    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    The data returned by the query.

    - #[serde(rename = "Data")] - #[serde(default)] pub data: std::option::Option< std::collections::HashMap, >, @@ -14951,15 +13599,11 @@ impl OpsEntity { ///

    The OpsItem summaries result item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsEntityItem { ///

    The time OpsItem data was captured.

    - #[serde(rename = "CaptureTime")] - #[serde(default)] pub capture_time: std::option::Option, ///

    The detailed data content for an OpsItem summaries result item.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option< std::vec::Vec>, >, @@ -15029,12 +13673,10 @@ impl OpsEntityItem { ///

    The OpsItem data type to return.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsResultAttribute { ///

    Name of the data type. Valid value: AWS:OpsItem, AWS:EC2InstanceInformation, /// AWS:OpsItemTrendline, or AWS:ComplianceSummary.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, } impl std::fmt::Debug for OpsResultAttribute { @@ -15082,32 +13724,20 @@ impl OpsResultAttribute { /// Source, CreatedTime, or Source and CreatedTime, to name a /// few.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsAggregator { ///

    Either a Range or Count aggregator for limiting an OpsItem summary.

    - #[serde(rename = "AggregatorType")] - #[serde(default)] pub aggregator_type: std::option::Option, ///

    The data type name to use for viewing counts of OpsItems.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, ///

    The name of an OpsItem attribute on which to limit the count of OpsItems.

    - #[serde(rename = "AttributeName")] - #[serde(default)] pub attribute_name: std::option::Option, ///

    The aggregator value.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The aggregator filters.

    - #[serde(rename = "Filters")] - #[serde(default)] pub filters: std::option::Option>, ///

    A nested aggregator for viewing counts of OpsItems.

    - #[serde(rename = "Aggregators")] - #[serde(default)] pub aggregators: std::option::Option>, } impl std::fmt::Debug for OpsAggregator { @@ -15238,19 +13868,13 @@ impl OpsAggregator { ///

    A filter for viewing OpsItem summaries.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsFilter { ///

    The name of the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter value.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The type of filter.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for OpsFilter { @@ -15360,7 +13984,7 @@ impl std::convert::From<&str> for OpsFilterOperatorType { impl std::str::FromStr for OpsFilterOperatorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsFilterOperatorType::from(s)) } } @@ -15382,91 +14006,48 @@ impl AsRef for OpsFilterOperatorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsFilterOperatorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate /// operational issues impacting the performance and health of their AWS resources. For more /// information, see AWS Systems Manager OpsCenter in the /// AWS Systems Manager User Guide.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItem { ///

    The ARN of the AWS account that created the OpsItem.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    The type of OpsItem. Currently, the only valid values are /aws/changerequest /// and /aws/issue.

    - #[serde(rename = "OpsItemType")] - #[serde(default)] pub ops_item_type: std::option::Option, ///

    The date and time the OpsItem was created.

    - #[serde(rename = "CreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_time: std::option::Option, ///

    The OpsItem description.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The ARN of the AWS account that last updated the OpsItem.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

    The date and time the OpsItem was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this /// OpsItem is edited or changed.

    - #[serde(rename = "Notifications")] - #[serde(default)] pub notifications: std::option::Option>, ///

    The importance of this OpsItem in relation to other OpsItems in the system.

    - #[serde(rename = "Priority")] - #[serde(default)] pub priority: std::option::Option, ///

    One or more OpsItems that share something in common with the current OpsItem. For example, /// related OpsItems can include OpsItems with similar error messages, impacted resources, or /// statuses for the impacted resource.

    - #[serde(rename = "RelatedOpsItems")] - #[serde(default)] pub related_ops_items: std::option::Option>, ///

    The OpsItem status. Status can be Open, In Progress, or /// Resolved. For more information, see Editing OpsItem details in the AWS Systems Manager User Guide.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The ID of the OpsItem.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    The version of this OpsItem. Each time the OpsItem is edited the version number increments /// by one.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    A short heading that describes the nature of the OpsItem and the impacted resource.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of /// source.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    Operational data is custom data that provides useful reference details about the OpsItem. /// For example, you can specify log files, error strings, license keys, troubleshooting tips, or @@ -15485,51 +14066,25 @@ pub struct OpsItem { /// the request. Use the /aws/automations key in OperationalData to associate an /// Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see /// Creating OpsItems manually in the AWS Systems Manager User Guide.

    - #[serde(rename = "OperationalData")] - #[serde(default)] pub operational_data: std::option::Option< std::collections::HashMap, >, ///

    An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, /// Security.

    - #[serde(rename = "Category")] - #[serde(default)] pub category: std::option::Option, ///

    The severity of the OpsItem. Severity options range from 1 to 4.

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    The time a runbook workflow started. Currently reported only for the OpsItem type /// /aws/changerequest.

    - #[serde(rename = "ActualStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub actual_start_time: std::option::Option, ///

    The time a runbook workflow ended. Currently reported only for the OpsItem type /// /aws/changerequest.

    - #[serde(rename = "ActualEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub actual_end_time: std::option::Option, ///

    The time specified in a change request for a runbook workflow to start. Currently supported /// only for the OpsItem type /aws/changerequest.

    - #[serde(rename = "PlannedStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub planned_start_time: std::option::Option, ///

    The time specified in a change request for a runbook workflow to end. Currently supported /// only for the OpsItem type /aws/changerequest.

    - #[serde(rename = "PlannedEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub planned_end_time: std::option::Option, } impl std::fmt::Debug for OpsItem { @@ -15913,7 +14468,7 @@ impl std::convert::From<&str> for MaintenanceWindowExecutionStatus { impl std::str::FromStr for MaintenanceWindowExecutionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(MaintenanceWindowExecutionStatus::from(s)) } } @@ -15937,39 +14492,22 @@ impl AsRef for MaintenanceWindowExecutionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for MaintenanceWindowExecutionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The inventory item schema definition. Users can use this to compose inventory query /// filters.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryItemSchema { ///

    The name of the inventory type. Default inventory item type names start with AWS. Custom /// inventory type names will start with Custom. Default inventory item types include the following: /// AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, AWS:Network, and /// AWS:WindowsUpdate.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, ///

    The schema version for the inventory item.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    The schema attributes for inventory. This contains data type and attribute name.

    - #[serde(rename = "Attributes")] - #[serde(default)] pub attributes: std::option::Option>, ///

    The alias name of the inventory type. The alias name is used for display purposes.

    - #[serde(rename = "DisplayName")] - #[serde(default)] pub display_name: std::option::Option, } impl std::fmt::Debug for InventoryItemSchema { @@ -16062,15 +14600,11 @@ impl InventoryItemSchema { ///

    Attributes are the entries within the inventory item content. It contains name and /// value.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryItemAttribute { ///

    Name of the inventory item attribute.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The data type of the inventory item attribute.

    - #[serde(rename = "DataType")] - #[serde(default)] pub data_type: std::option::Option, } impl std::fmt::Debug for InventoryItemAttribute { @@ -16156,7 +14690,7 @@ impl std::convert::From<&str> for InventoryAttributeDataType { impl std::str::FromStr for InventoryAttributeDataType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryAttributeDataType::from(s)) } } @@ -16174,29 +14708,16 @@ impl AsRef for InventoryAttributeDataType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryAttributeDataType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Inventory query results.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryResultEntity { ///

    ID of the inventory result entity. For example, for managed instance inventory the result /// will be the managed instance ID. For EC2 instance inventory, the result will be the instance ID. ///

    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    The data section in the inventory result entity JSON.

    - #[serde(rename = "Data")] - #[serde(default)] pub data: std::option::Option< std::collections::HashMap, >, @@ -16269,30 +14790,20 @@ impl InventoryResultEntity { ///

    The inventory result item.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryResultItem { ///

    The name of the inventory result item type.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, ///

    The schema version for the inventory result item/

    - #[serde(rename = "SchemaVersion")] - #[serde(default)] pub schema_version: std::option::Option, ///

    The time inventory item data was captured.

    - #[serde(rename = "CaptureTime")] - #[serde(default)] pub capture_time: std::option::Option, ///

    MD5 hash of the inventory item type contents. The content hash is used to determine whether /// to update inventory information. The PutInventory API does not update the inventory item type /// contents if the MD5 hash has not changed since last update.

    - #[serde(rename = "ContentHash")] - #[serde(default)] pub content_hash: std::option::Option, ///

    Contains all the inventory data of the item type. Results include attribute names and /// values.

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option< std::vec::Vec>, >, @@ -16403,12 +14914,10 @@ impl InventoryResultItem { ///

    The inventory item result attribute.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResultAttribute { ///

    Name of the inventory item type. Valid value: AWS:InstanceInformation. Default Value: /// AWS:InstanceInformation.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, } impl std::fmt::Debug for ResultAttribute { @@ -16454,20 +14963,14 @@ impl ResultAttribute { ///

    Specifies the inventory type and attribute for the aggregation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryAggregator { ///

    The inventory type and attribute name for aggregation.

    - #[serde(rename = "Expression")] - #[serde(default)] pub expression: std::option::Option, ///

    Nested aggregators to further refine aggregation for an inventory type.

    - #[serde(rename = "Aggregators")] - #[serde(default)] pub aggregators: std::option::Option>, ///

    A user-defined set of one or more filters on which to aggregate inventory data. Groups /// return a count of resources that match and don't match the specified criteria.

    - #[serde(rename = "Groups")] - #[serde(default)] pub groups: std::option::Option>, } impl std::fmt::Debug for InventoryAggregator { @@ -16546,17 +15049,13 @@ impl InventoryAggregator { ///

    A user-defined set of one or more filters on which to aggregate inventory data. Groups /// return a count of resources that match and don't match the specified criteria.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryGroup { ///

    The name of the group.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    Filters define the criteria for the group. The matchingCount field displays the /// number of resources that match the criteria. The notMatchingCount field displays the /// number of resources that don't match the criteria.

    - #[serde(rename = "Filters")] - #[serde(default)] pub filters: std::option::Option>, } impl std::fmt::Debug for InventoryGroup { @@ -16617,27 +15116,17 @@ impl InventoryGroup { ///

    A structure that includes attributes that describe a document attachment.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AttachmentContent { ///

    The name of an attachment.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The size of an attachment in bytes.

    - #[serde(rename = "Size")] - #[serde(default)] pub size: i64, ///

    The cryptographic hash value of the document content.

    - #[serde(rename = "Hash")] - #[serde(default)] pub hash: std::option::Option, ///

    The hash algorithm used to calculate the hash value.

    - #[serde(rename = "HashType")] - #[serde(default)] pub hash_type: std::option::Option, ///

    The URL location of the attachment content.

    - #[serde(rename = "Url")] - #[serde(default)] pub url: std::option::Option, } impl std::fmt::Debug for AttachmentContent { @@ -16757,7 +15246,7 @@ impl std::convert::From<&str> for AttachmentHashType { impl std::str::FromStr for AttachmentHashType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AttachmentHashType::from(s)) } } @@ -16774,66 +15263,39 @@ impl AsRef for AttachmentHashType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AttachmentHashType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Defines the basic information about a patch baseline override.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct BaselineOverride { ///

    The operating system rule used by the patch baseline override.

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] pub operating_system: std::option::Option, ///

    A set of patch filters, typically used for approval rules.

    - #[serde(rename = "GlobalFilters")] - #[serde(default)] pub global_filters: std::option::Option, ///

    A set of rules defining the approval rules for a patch baseline.

    - #[serde(rename = "ApprovalRules")] - #[serde(default)] pub approval_rules: std::option::Option, ///

    A list of explicitly approved patches for the baseline.

    ///

    For information about accepted formats for lists of approved patches and rejected patches, /// see About /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - #[serde(rename = "ApprovedPatches")] - #[serde(default)] pub approved_patches: std::option::Option>, ///

    Defines the compliance level for approved patches. When an approved patch is reported as /// missing, this value describes the severity of the compliance violation.

    - #[serde(rename = "ApprovedPatchesComplianceLevel")] - #[serde(default)] pub approved_patches_compliance_level: std::option::Option, ///

    A list of explicitly rejected patches for the baseline.

    ///

    For information about accepted formats for lists of approved patches and rejected patches, /// see About /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - #[serde(rename = "RejectedPatches")] - #[serde(default)] pub rejected_patches: std::option::Option>, ///

    The action for Patch Manager to take on patches included in the RejectedPackages list. A /// patch can be allowed only if it is a dependency of another package, or blocked entirely along /// with packages that include it as a dependency.

    - #[serde(rename = "RejectedPatchesAction")] - #[serde(default)] pub rejected_patches_action: std::option::Option, ///

    Indicates whether the list of approved patches includes non-security updates that should be /// applied to the instances. The default value is 'false'. Applies to Linux instances only.

    - #[serde(rename = "ApprovedPatchesEnableNonSecurity")] - #[serde(default)] pub approved_patches_enable_non_security: bool, ///

    Information about the patches to use to update the instances, including target operating /// systems and source repositories. Applies to Linux instances only.

    - #[serde(rename = "Sources")] - #[serde(default)] pub sources: std::option::Option>, } impl std::fmt::Debug for BaselineOverride { @@ -17046,7 +15508,7 @@ impl std::convert::From<&str> for ConnectionStatus { impl std::str::FromStr for ConnectionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ConnectionStatus::from(s)) } } @@ -17064,15 +15526,6 @@ impl AsRef for ConnectionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ConnectionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -17102,7 +15555,7 @@ impl std::convert::From<&str> for CalendarState { impl std::str::FromStr for CalendarState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(CalendarState::from(s)) } } @@ -17120,151 +15573,79 @@ impl AsRef for CalendarState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for CalendarState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Detailed information about the current state of an individual Automation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutomationExecution { ///

    The execution ID.

    - #[serde(rename = "AutomationExecutionId")] - #[serde(default)] pub automation_execution_id: std::option::Option, ///

    The name of the Automation document used during the execution.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The version of the document to use during execution.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The time the execution started.

    - #[serde(rename = "ExecutionStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_start_time: std::option::Option, ///

    The time the execution finished.

    - #[serde(rename = "ExecutionEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_end_time: std::option::Option, ///

    The execution status of the Automation.

    - #[serde(rename = "AutomationExecutionStatus")] - #[serde(default)] pub automation_execution_status: std::option::Option, ///

    A list of details about the current state of all steps that comprise an execution. An /// Automation document contains a list of steps that are run in order.

    - #[serde(rename = "StepExecutions")] - #[serde(default)] pub step_executions: std::option::Option>, ///

    A boolean value that indicates if the response contains the full list of the Automation step /// executions. If true, use the DescribeAutomationStepExecutions API action to get the full list of /// step executions.

    - #[serde(rename = "StepExecutionsTruncated")] - #[serde(default)] pub step_executions_truncated: bool, ///

    The key-value map of execution parameters, which were supplied when calling /// StartAutomationExecution.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    The list of execution outputs as defined in the automation document.

    - #[serde(rename = "Outputs")] - #[serde(default)] pub outputs: std::option::Option< std::collections::HashMap>, >, ///

    A message describing why an execution has failed, if the status is set to Failed.

    - #[serde(rename = "FailureMessage")] - #[serde(default)] pub failure_message: std::option::Option, ///

    The automation execution mode.

    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, ///

    The AutomationExecutionId of the parent automation.

    - #[serde(rename = "ParentAutomationExecutionId")] - #[serde(default)] pub parent_automation_execution_id: std::option::Option, ///

    The Amazon Resource Name (ARN) of the user who ran the automation.

    - #[serde(rename = "ExecutedBy")] - #[serde(default)] pub executed_by: std::option::Option, ///

    The name of the step that is currently running.

    - #[serde(rename = "CurrentStepName")] - #[serde(default)] pub current_step_name: std::option::Option, ///

    The action of the step that is currently running.

    - #[serde(rename = "CurrentAction")] - #[serde(default)] pub current_action: std::option::Option, ///

    The parameter name.

    - #[serde(rename = "TargetParameterName")] - #[serde(default)] pub target_parameter_name: std::option::Option, ///

    The specified targets.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The specified key-value mapping of document parameters to target resources.

    - #[serde(rename = "TargetMaps")] - #[serde(default)] pub target_maps: std::option::Option< std::vec::Vec< std::collections::HashMap>, >, >, ///

    A list of resolved targets in the rate control execution.

    - #[serde(rename = "ResolvedTargets")] - #[serde(default)] pub resolved_targets: std::option::Option, ///

    The MaxConcurrency value specified by the user when the execution started.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The MaxErrors value specified by the user when the execution started.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The target of the execution.

    - #[serde(rename = "Target")] - #[serde(default)] pub target: std::option::Option, ///

    The combination of AWS Regions and/or AWS accounts where you want to run the /// Automation.

    - #[serde(rename = "TargetLocations")] - #[serde(default)] pub target_locations: std::option::Option>, ///

    An aggregate of step execution statuses displayed in the AWS Console for a multi-Region and /// multi-account Automation execution.

    - #[serde(rename = "ProgressCounters")] - #[serde(default)] pub progress_counters: std::option::Option, ///

    The subtype of the Automation operation. Currently, the only supported value is /// ChangeRequest.

    - #[serde(rename = "AutomationSubtype")] - #[serde(default)] pub automation_subtype: std::option::Option, ///

    The date and time the Automation operation is scheduled to start.

    - #[serde(rename = "ScheduledTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub scheduled_time: std::option::Option, ///

    Information about the Automation runbooks (Automation documents) that are run as part of a /// runbook workflow.

    @@ -17272,20 +15653,12 @@ pub struct AutomationExecution { ///

    The Automation runbooks specified for the runbook workflow can't run until all required /// approvals for the change request have been received.

    /// - #[serde(rename = "Runbooks")] - #[serde(default)] pub runbooks: std::option::Option>, ///

    The ID of an OpsItem that is created to represent a Change Manager change request.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    The ID of a State Manager association used in the Automation operation.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The name of the Change Manager change request.

    - #[serde(rename = "ChangeRequestName")] - #[serde(default)] pub change_request_name: std::option::Option, } impl std::fmt::Debug for AutomationExecution { @@ -17846,7 +16219,7 @@ impl std::convert::From<&str> for AutomationSubtype { impl std::str::FromStr for AutomationSubtype { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutomationSubtype::from(s)) } } @@ -17863,45 +16236,26 @@ impl AsRef for AutomationSubtype { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutomationSubtype { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An aggregate of step execution statuses displayed in the AWS Console for a multi-Region and /// multi-account Automation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ProgressCounters { ///

    The total number of steps run in all specified AWS Regions and accounts for the current /// Automation execution.

    - #[serde(rename = "TotalSteps")] - #[serde(default)] pub total_steps: i32, ///

    The total number of steps that successfully completed in all specified AWS Regions and /// accounts for the current Automation execution.

    - #[serde(rename = "SuccessSteps")] - #[serde(default)] pub success_steps: i32, ///

    The total number of steps that failed to run in all specified AWS Regions and accounts for /// the current Automation execution.

    - #[serde(rename = "FailedSteps")] - #[serde(default)] pub failed_steps: i32, ///

    The total number of steps that the system cancelled in all specified AWS Regions and /// accounts for the current Automation execution.

    - #[serde(rename = "CancelledSteps")] - #[serde(default)] pub cancelled_steps: i32, ///

    The total number of steps that timed out in all specified AWS Regions and accounts for the /// current Automation execution.

    - #[serde(rename = "TimedOutSteps")] - #[serde(default)] pub timed_out_steps: i32, } impl std::fmt::Debug for ProgressCounters { @@ -17999,16 +16353,12 @@ impl ProgressCounters { ///

    Information about targets that resolved during the Automation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ResolvedTargets { ///

    A list of parameter values sent to targets that resolved during the Automation /// execution.

    - #[serde(rename = "ParameterValues")] - #[serde(default)] pub parameter_values: std::option::Option>, ///

    A boolean value indicating whether the resolved target list is truncated.

    - #[serde(rename = "Truncated")] - #[serde(default)] pub truncated: bool, } impl std::fmt::Debug for ResolvedTargets { @@ -18069,114 +16419,64 @@ impl ResolvedTargets { ///

    Detailed information about an the execution state of an Automation step.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StepExecution { ///

    The name of this execution step.

    - #[serde(rename = "StepName")] - #[serde(default)] pub step_name: std::option::Option, ///

    The action this step performs. The action determines the behavior of the step.

    - #[serde(rename = "Action")] - #[serde(default)] pub action: std::option::Option, ///

    The timeout seconds of the step.

    - #[serde(rename = "TimeoutSeconds")] - #[serde(default)] pub timeout_seconds: std::option::Option, ///

    The action to take if the step fails. The default value is Abort.

    - #[serde(rename = "OnFailure")] - #[serde(default)] pub on_failure: std::option::Option, ///

    The maximum number of tries to run the action of the step. The default value is 1.

    - #[serde(rename = "MaxAttempts")] - #[serde(default)] pub max_attempts: std::option::Option, ///

    If a step has begun execution, this contains the time the step started. If the step is in /// Pending status, this field is not populated.

    - #[serde(rename = "ExecutionStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_start_time: std::option::Option, ///

    If a step has finished execution, this contains the time the execution ended. If the step /// has not yet concluded, this field is not populated.

    - #[serde(rename = "ExecutionEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_end_time: std::option::Option, ///

    The execution status for this step.

    - #[serde(rename = "StepStatus")] - #[serde(default)] pub step_status: std::option::Option, ///

    The response code returned by the execution of the step.

    - #[serde(rename = "ResponseCode")] - #[serde(default)] pub response_code: std::option::Option, ///

    Fully-resolved values passed into the step before execution.

    - #[serde(rename = "Inputs")] - #[serde(default)] pub inputs: std::option::Option>, ///

    Returned values from the execution of the step.

    - #[serde(rename = "Outputs")] - #[serde(default)] pub outputs: std::option::Option< std::collections::HashMap>, >, ///

    A message associated with the response code for an execution.

    - #[serde(rename = "Response")] - #[serde(default)] pub response: std::option::Option, ///

    If a step failed, this message explains why the execution failed.

    - #[serde(rename = "FailureMessage")] - #[serde(default)] pub failure_message: std::option::Option, ///

    Information about the Automation failure.

    - #[serde(rename = "FailureDetails")] - #[serde(default)] pub failure_details: std::option::Option, ///

    The unique ID of a step execution.

    - #[serde(rename = "StepExecutionId")] - #[serde(default)] pub step_execution_id: std::option::Option, ///

    A user-specified list of parameters to override when running a step.

    - #[serde(rename = "OverriddenParameters")] - #[serde(default)] pub overridden_parameters: std::option::Option< std::collections::HashMap>, >, ///

    The flag which can be used to end automation no matter whether the step succeeds or /// fails.

    - #[serde(rename = "IsEnd")] - #[serde(default)] pub is_end: std::option::Option, ///

    The next step after the step succeeds.

    - #[serde(rename = "NextStep")] - #[serde(default)] pub next_step: std::option::Option, ///

    The flag which can be used to help decide whether the failure of current step leads to the /// Automation failure.

    - #[serde(rename = "IsCritical")] - #[serde(default)] pub is_critical: std::option::Option, ///

    Strategies used when step fails, we support Continue and Abort. Abort will fail the /// automation when the step fails. Continue will ignore the failure of current step and allow /// automation to run the next step. With conditional branching, we add step:stepName to support the /// automation to go to another specific step.

    - #[serde(rename = "ValidNextSteps")] - #[serde(default)] pub valid_next_steps: std::option::Option>, ///

    The targets for the step execution.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The combination of AWS Regions and accounts targeted by the current Automation /// execution.

    - #[serde(rename = "TargetLocation")] - #[serde(default)] pub target_location: std::option::Option, } impl std::fmt::Debug for StepExecution { @@ -18546,21 +16846,15 @@ impl StepExecution { ///

    Information about an Automation failure.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailureDetails { ///

    The stage of the Automation execution when the failure occurred. The stages include the /// following: InputValidation, PreVerification, Invocation, PostVerification.

    - #[serde(rename = "FailureStage")] - #[serde(default)] pub failure_stage: std::option::Option, ///

    The type of Automation failure. Failure types include the following: Action, Permission, /// Throttling, Verification, Internal.

    - #[serde(rename = "FailureType")] - #[serde(default)] pub failure_type: std::option::Option, ///

    Detailed information about the Automation step failure.

    - #[serde(rename = "Details")] - #[serde(default)] pub details: std::option::Option< std::collections::HashMap>, >, @@ -18712,7 +17006,7 @@ impl std::convert::From<&str> for AutomationExecutionStatus { impl std::str::FromStr for AutomationExecutionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutomationExecutionStatus::from(s)) } } @@ -18752,62 +17046,29 @@ impl AsRef for AutomationExecutionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutomationExecutionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about a Session Manager connection to an instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Session { ///

    The ID of the session.

    - #[serde(rename = "SessionId")] - #[serde(default)] pub session_id: std::option::Option, ///

    The instance that the Session Manager session connected to.

    - #[serde(rename = "Target")] - #[serde(default)] pub target: std::option::Option, ///

    The status of the session. For example, "Connected" or "Terminated".

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The date and time, in ISO-8601 Extended format, when the session began.

    - #[serde(rename = "StartDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_date: std::option::Option, ///

    The date and time, in ISO-8601 Extended format, when the session was terminated.

    - #[serde(rename = "EndDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_date: std::option::Option, ///

    The name of the Session Manager SSM document used to define the parameters and plugin settings for the /// session. For example, SSM-SessionManagerRunShell.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The ID of the AWS user account that started the session.

    - #[serde(rename = "Owner")] - #[serde(default)] pub owner: std::option::Option, ///

    Reserved for future use.

    - #[serde(rename = "Details")] - #[serde(default)] pub details: std::option::Option, ///

    Reserved for future use.

    - #[serde(rename = "OutputUrl")] - #[serde(default)] pub output_url: std::option::Option, } impl std::fmt::Debug for Session { @@ -18958,15 +17219,11 @@ impl Session { ///

    Reserved for future use.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SessionManagerOutputUrl { ///

    Reserved for future use.

    - #[serde(rename = "S3OutputUrl")] - #[serde(default)] pub s3_output_url: std::option::Option, ///

    Reserved for future use.

    - #[serde(rename = "CloudWatchOutputUrl")] - #[serde(default)] pub cloud_watch_output_url: std::option::Option, } impl std::fmt::Debug for SessionManagerOutputUrl { @@ -19063,7 +17320,7 @@ impl std::convert::From<&str> for SessionStatus { impl std::str::FromStr for SessionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SessionStatus::from(s)) } } @@ -19085,23 +17342,12 @@ impl AsRef for SessionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SessionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes a filter for Session Manager information.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct SessionFilter { ///

    The name of the filter.

    - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter value. Valid values for each filter key are as follows:

    ///
      @@ -19147,8 +17393,6 @@ pub struct SessionFilter { ///

      SessionId: Specify a session ID to return details about the session.

      /// ///
    - #[serde(rename = "value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for SessionFilter { @@ -19285,7 +17529,7 @@ impl std::convert::From<&str> for SessionFilterKey { impl std::str::FromStr for SessionFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SessionFilterKey::from(s)) } } @@ -19307,15 +17551,6 @@ impl AsRef for SessionFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SessionFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19345,7 +17580,7 @@ impl std::convert::From<&str> for SessionState { impl std::str::FromStr for SessionState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(SessionState::from(s)) } } @@ -19363,15 +17598,6 @@ impl AsRef for SessionState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for SessionState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19401,7 +17627,7 @@ impl std::convert::From<&str> for PatchSet { impl std::str::FromStr for PatchSet { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchSet::from(s)) } } @@ -19419,15 +17645,6 @@ impl AsRef for PatchSet { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchSet { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -19465,7 +17682,7 @@ impl std::convert::From<&str> for PatchProperty { impl std::str::FromStr for PatchProperty { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchProperty::from(s)) } } @@ -19487,28 +17704,15 @@ impl AsRef for PatchProperty { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchProperty { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The mapping between a patch group and the patch baseline the patch group is registered /// with.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchGroupPatchBaselineMapping { ///

    The name of the patch group registered with the patch baseline.

    - #[serde(rename = "PatchGroup")] - #[serde(default)] pub patch_group: std::option::Option, ///

    The patch baseline the patch group is registered with.

    - #[serde(rename = "BaselineIdentity")] - #[serde(default)] pub baseline_identity: std::option::Option, } impl std::fmt::Debug for PatchGroupPatchBaselineMapping { @@ -19568,30 +17772,20 @@ impl PatchGroupPatchBaselineMapping { ///

    Defines the basic information about a patch baseline.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchBaselineIdentity { ///

    The ID of the patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] pub baseline_id: std::option::Option, ///

    The name of the patch baseline.

    - #[serde(rename = "BaselineName")] - #[serde(default)] pub baseline_name: std::option::Option, ///

    Defines the operating system the patch baseline applies to. The Default value is WINDOWS. ///

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] pub operating_system: std::option::Option, ///

    The description of the patch baseline.

    - #[serde(rename = "BaselineDescription")] - #[serde(default)] pub baseline_description: std::option::Option, ///

    Whether this is the default baseline. Note that Systems Manager supports creating multiple default /// patch baselines. For example, you can create a default patch baseline for each operating /// system.

    - #[serde(rename = "DefaultBaseline")] - #[serde(default)] pub default_baseline: bool, } impl std::fmt::Debug for PatchBaselineIdentity { @@ -19696,15 +17890,11 @@ impl PatchBaselineIdentity { ///

    Defines a filter used in Patch Manager APIs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchOrchestratorFilter { ///

    The key for the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value for the filter.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for PatchOrchestratorFilter { @@ -19766,57 +17956,32 @@ impl PatchOrchestratorFilter { ///

    Metadata includes information like the ARN of the last user and the date/time the parameter /// was last used.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParameterMetadata { ///

    The parameter name.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The type of parameter. Valid parameter types include the following: String, /// StringList, and SecureString.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The ID of the query key used for this parameter.

    - #[serde(rename = "KeyId")] - #[serde(default)] pub key_id: std::option::Option, ///

    Date the parameter was last changed or updated.

    - #[serde(rename = "LastModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_date: std::option::Option, ///

    Amazon Resource Name (ARN) of the AWS user who last changed the parameter.

    - #[serde(rename = "LastModifiedUser")] - #[serde(default)] pub last_modified_user: std::option::Option, ///

    Description of the parameter actions.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    A parameter name can include only the following letters and symbols.

    ///

    a-zA-Z0-9_.-

    - #[serde(rename = "AllowedPattern")] - #[serde(default)] pub allowed_pattern: std::option::Option, ///

    The parameter version.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: i64, ///

    The parameter tier.

    - #[serde(rename = "Tier")] - #[serde(default)] pub tier: std::option::Option, ///

    A list of policies associated with a parameter.

    - #[serde(rename = "Policies")] - #[serde(default)] pub policies: std::option::Option>, ///

    The data type of the parameter, such as text or aws:ec2:image. The /// default is text.

    - #[serde(rename = "DataType")] - #[serde(default)] pub data_type: std::option::Option, } impl std::fmt::Debug for ParameterMetadata { @@ -19998,15 +18163,11 @@ impl ParameterMetadata { ///

    This data type is deprecated. Instead, use ParameterStringFilter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ParametersFilter { ///

    The name of the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter values.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for ParametersFilter { @@ -20098,7 +18259,7 @@ impl std::convert::From<&str> for ParametersFilterKey { impl std::str::FromStr for ParametersFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ParametersFilterKey::from(s)) } } @@ -20117,114 +18278,53 @@ impl AsRef for ParametersFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ParametersFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A count of OpsItems.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemSummary { ///

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.

    - #[serde(rename = "CreatedBy")] - #[serde(default)] pub created_by: std::option::Option, ///

    The date and time the OpsItem was created.

    - #[serde(rename = "CreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_time: std::option::Option, ///

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.

    - #[serde(rename = "LastModifiedBy")] - #[serde(default)] pub last_modified_by: std::option::Option, ///

    The date and time the OpsItem was last updated.

    - #[serde(rename = "LastModifiedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_modified_time: std::option::Option, ///

    The importance of this OpsItem in relation to other OpsItems in the system.

    - #[serde(rename = "Priority")] - #[serde(default)] pub priority: std::option::Option, ///

    The impacted AWS resource.

    - #[serde(rename = "Source")] - #[serde(default)] pub source: std::option::Option, ///

    The OpsItem status. Status can be Open, In Progress, or /// Resolved.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The ID of the OpsItem.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    A short heading that describes the nature of the OpsItem and the impacted resource.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    Operational data is custom data that provides useful reference details about the OpsItem. ///

    - #[serde(rename = "OperationalData")] - #[serde(default)] pub operational_data: std::option::Option< std::collections::HashMap, >, ///

    A list of OpsItems by category.

    - #[serde(rename = "Category")] - #[serde(default)] pub category: std::option::Option, ///

    A list of OpsItems by severity.

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    The type of OpsItem. Currently, the only valid values are /aws/changerequest /// and /aws/issue.

    - #[serde(rename = "OpsItemType")] - #[serde(default)] pub ops_item_type: std::option::Option, ///

    The time a runbook workflow started. Currently reported only for the OpsItem type /// /aws/changerequest.

    - #[serde(rename = "ActualStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub actual_start_time: std::option::Option, ///

    The time a runbook workflow ended. Currently reported only for the OpsItem type /// /aws/changerequest.

    - #[serde(rename = "ActualEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub actual_end_time: std::option::Option, ///

    The time specified in a change request for a runbook workflow to start. Currently supported /// only for the OpsItem type /aws/changerequest.

    - #[serde(rename = "PlannedStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub planned_start_time: std::option::Option, ///

    The time specified in a change request for a runbook workflow to end. Currently supported /// only for the OpsItem type /aws/changerequest.

    - #[serde(rename = "PlannedEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub planned_end_time: std::option::Option, } impl std::fmt::Debug for OpsItemSummary { @@ -20506,19 +18606,13 @@ impl OpsItemSummary { ///

    Describes an OpsItem filter.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OpsItemFilter { ///

    The name of the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter value.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The operator used by the filter call.

    - #[serde(rename = "Operator")] - #[serde(default)] pub operator: std::option::Option, } impl std::fmt::Debug for OpsItemFilter { @@ -20627,7 +18721,7 @@ impl std::convert::From<&str> for OpsItemFilterOperator { impl std::str::FromStr for OpsItemFilterOperator { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemFilterOperator::from(s)) } } @@ -20647,15 +18741,6 @@ impl AsRef for OpsItemFilterOperator { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemFilterOperator { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -20735,7 +18820,7 @@ impl std::convert::From<&str> for OpsItemFilterKey { impl std::str::FromStr for OpsItemFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(OpsItemFilterKey::from(s)) } } @@ -20779,44 +18864,25 @@ impl AsRef for OpsItemFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for OpsItemFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about a task defined for a maintenance window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowTask { ///

    The ID of the maintenance window where the task is registered.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The task ID.

    - #[serde(rename = "WindowTaskId")] - #[serde(default)] pub window_task_id: std::option::Option, ///

    The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, /// TaskArn is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name /// or ARN. For STEP_FUNCTIONS tasks, it's the state machine ARN.

    - #[serde(rename = "TaskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or /// STEP_FUNCTIONS.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, ///

    The targets (either instances or tags). Instances are specified using /// Key=instanceids,Values=,. Tags are specified using /// Key=,Values=.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The parameters that should be passed to the task when it is run.

    /// @@ -20826,8 +18892,6 @@ pub struct MaintenanceWindowTask { /// about how Systems Manager handles these options for the supported maintenance window task /// types, see MaintenanceWindowTaskInvocationParameters.

    ///
    - #[serde(rename = "TaskParameters")] - #[serde(default)] pub task_parameters: std::option::Option< std::collections::HashMap< std::string::String, @@ -20836,8 +18900,6 @@ pub struct MaintenanceWindowTask { >, ///

    The priority of the task in the maintenance window. The lower the number, the higher the /// priority. Tasks that have the same priority are scheduled in parallel.

    - #[serde(rename = "Priority")] - #[serde(default)] pub priority: i32, ///

    Information about an S3 bucket to write task-level logs to.

    /// @@ -20847,29 +18909,17 @@ pub struct MaintenanceWindowTask { /// For information about how Systems Manager handles these options for the supported maintenance /// window task types, see MaintenanceWindowTaskInvocationParameters.

    ///
    - #[serde(rename = "LoggingInfo")] - #[serde(default)] pub logging_info: std::option::Option, ///

    The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for /// maintenance window Run Command tasks.

    - #[serde(rename = "ServiceRoleArn")] - #[serde(default)] pub service_role_arn: std::option::Option, ///

    The maximum number of targets this task can be run for, in parallel.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The maximum number of errors allowed before this task stops being scheduled.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The task name.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A description of the task.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowTask { @@ -21107,15 +19157,11 @@ impl MaintenanceWindowTask { ///

    Filter used in the request. Supported filter keys are Name and Enabled.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowFilter { ///

    The name of the filter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter values.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for MaintenanceWindowFilter { @@ -21176,19 +19222,13 @@ impl MaintenanceWindowFilter { ///

    The target registered with the maintenance window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowTarget { ///

    The ID of the maintenance window to register the target with.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The ID of the target.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] pub window_target_id: std::option::Option, ///

    The type of target that is being registered with the maintenance window.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The targets, either instances or tags.

    ///

    Specify instances using the following format:

    @@ -21198,21 +19238,13 @@ pub struct MaintenanceWindowTarget { ///

    Tags are specified using the following format:

    ///

    /// Key=,Values=.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    A user-provided value that will be included in any CloudWatch events that are raised while /// running tasks for these targets in this maintenance window.

    - #[serde(rename = "OwnerInformation")] - #[serde(default)] pub owner_information: std::option::Option, ///

    The name for the maintenance window target.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A description for the target.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowTarget { @@ -21343,15 +19375,11 @@ impl MaintenanceWindowTarget { ///

    The maintenance window to which the specified target belongs.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowIdentityForTarget { ///

    The ID of the maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The name of the maintenance window.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowIdentityForTarget { @@ -21408,20 +19436,14 @@ impl MaintenanceWindowIdentityForTarget { ///

    Information about a scheduled execution for a maintenance window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct ScheduledWindowExecution { ///

    The ID of the maintenance window to be run.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The name of the maintenance window to be run.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The time, in ISO-8601 Extended format, that the maintenance window is scheduled to be /// run.

    - #[serde(rename = "ExecutionTime")] - #[serde(default)] pub execution_time: std::option::Option, } impl std::fmt::Debug for ScheduledWindowExecution { @@ -21494,61 +19516,37 @@ impl ScheduledWindowExecution { ///

    Information about the maintenance window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowIdentity { ///

    The ID of the maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The name of the maintenance window.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    A description of the maintenance window.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    Indicates whether the maintenance window is enabled.

    - #[serde(rename = "Enabled")] - #[serde(default)] pub enabled: bool, ///

    The duration of the maintenance window in hours.

    - #[serde(rename = "Duration")] - #[serde(default)] pub duration: i32, ///

    The number of hours before the end of the maintenance window that Systems Manager stops scheduling new /// tasks for execution.

    - #[serde(rename = "Cutoff")] - #[serde(default)] pub cutoff: i32, ///

    The schedule of the maintenance window in the form of a cron or rate expression.

    - #[serde(rename = "Schedule")] - #[serde(default)] pub schedule: std::option::Option, ///

    The time zone that the scheduled maintenance window executions are based on, in Internet /// Assigned Numbers Authority (IANA) format.

    - #[serde(rename = "ScheduleTimezone")] - #[serde(default)] pub schedule_timezone: std::option::Option, ///

    The number of days to wait to run a maintenance window after the scheduled CRON expression /// date and time.

    - #[serde(rename = "ScheduleOffset")] - #[serde(default)] pub schedule_offset: std::option::Option, ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled /// to become inactive.

    - #[serde(rename = "EndDate")] - #[serde(default)] pub end_date: std::option::Option, ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled /// to become active.

    - #[serde(rename = "StartDate")] - #[serde(default)] pub start_date: std::option::Option, ///

    The next time the maintenance window will actually run, taking into account any specified /// times for the maintenance window to become active or inactive.

    - #[serde(rename = "NextExecutionTime")] - #[serde(default)] pub next_execution_time: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowIdentity { @@ -21738,46 +19736,24 @@ impl MaintenanceWindowIdentity { ///

    Information about a task execution performed as part of a maintenance window /// execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowExecutionTaskIdentity { ///

    The ID of the maintenance window execution that ran the task.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] pub window_execution_id: std::option::Option, ///

    The ID of the specific task execution in the maintenance window execution.

    - #[serde(rename = "TaskExecutionId")] - #[serde(default)] pub task_execution_id: std::option::Option, ///

    The status of the task execution.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The details explaining the status of the task execution. Only available for certain status /// values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    The time the task execution started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    The time the task execution finished.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    The ARN of the task that ran.

    - #[serde(rename = "TaskArn")] - #[serde(default)] pub task_arn: std::option::Option, ///

    The type of task that ran.

    - #[serde(rename = "TaskType")] - #[serde(default)] pub task_type: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowExecutionTaskIdentity { @@ -21923,65 +19899,35 @@ impl MaintenanceWindowExecutionTaskIdentity { ///

    Describes the information about a task invocation for a particular target as part of a task /// execution performed as part of a maintenance window execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowExecutionTaskInvocationIdentity { ///

    The ID of the maintenance window execution that ran the task.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] pub window_execution_id: std::option::Option, ///

    The ID of the specific task execution in the maintenance window execution.

    - #[serde(rename = "TaskExecutionId")] - #[serde(default)] pub task_execution_id: std::option::Option, ///

    The ID of the task invocation.

    - #[serde(rename = "InvocationId")] - #[serde(default)] pub invocation_id: std::option::Option, ///

    The ID of the action performed in the service that actually handled the task invocation. If /// the task type is RUN_COMMAND, this value is the command ID.

    - #[serde(rename = "ExecutionId")] - #[serde(default)] pub execution_id: std::option::Option, ///

    The task type.

    - #[serde(rename = "TaskType")] - #[serde(default)] pub task_type: std::option::Option, ///

    The parameters that were provided for the invocation when it was run.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option, ///

    The status of the task invocation.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The details explaining the status of the task invocation. Only available for certain Status /// values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    The time the invocation started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    The time the invocation finished.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, ///

    User-provided value that was specified when the target was registered with the maintenance /// window. This was also included in any CloudWatch events raised during the task invocation.

    - #[serde(rename = "OwnerInformation")] - #[serde(default)] pub owner_information: std::option::Option, ///

    The ID of the target definition in this maintenance window the invocation was performed /// for.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] pub window_target_id: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowExecutionTaskInvocationIdentity { @@ -22187,37 +20133,19 @@ impl MaintenanceWindowExecutionTaskInvocationIdentity { ///

    Describes the information about an execution of a maintenance window.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct MaintenanceWindowExecution { ///

    The ID of the maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] pub window_id: std::option::Option, ///

    The ID of the maintenance window execution.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] pub window_execution_id: std::option::Option, ///

    The status of the execution.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    The details explaining the Status. Only available for certain status values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] pub status_details: std::option::Option, ///

    The time the execution started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub start_time: std::option::Option, ///

    The time the execution finished.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub end_time: std::option::Option, } impl std::fmt::Debug for MaintenanceWindowExecution { @@ -22331,42 +20259,22 @@ impl MaintenanceWindowExecution { ///

    Status information returned by the DeleteInventory action.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryDeletionStatusItem { ///

    The deletion ID returned by the DeleteInventory action.

    - #[serde(rename = "DeletionId")] - #[serde(default)] pub deletion_id: std::option::Option, ///

    The name of the inventory data type.

    - #[serde(rename = "TypeName")] - #[serde(default)] pub type_name: std::option::Option, ///

    The UTC timestamp when the delete operation started.

    - #[serde(rename = "DeletionStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub deletion_start_time: std::option::Option, ///

    The status of the operation. Possible values are InProgress and Complete.

    - #[serde(rename = "LastStatus")] - #[serde(default)] pub last_status: std::option::Option, ///

    Information about the status.

    - #[serde(rename = "LastStatusMessage")] - #[serde(default)] pub last_status_message: std::option::Option, ///

    Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the /// AWS Systems Manager User Guide.

    - #[serde(rename = "DeletionSummary")] - #[serde(default)] pub deletion_summary: std::option::Option, ///

    The UTC timestamp of when the last status report.

    - #[serde(rename = "LastStatusUpdateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_status_update_time: std::option::Option, } impl std::fmt::Debug for InventoryDeletionStatusItem { @@ -22499,20 +20407,14 @@ impl InventoryDeletionStatusItem { ///

    Information about the delete operation.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryDeletionSummary { ///

    The total number of items to delete. This count does not change during the delete /// operation.

    - #[serde(rename = "TotalCount")] - #[serde(default)] pub total_count: i32, ///

    Remaining number of items to delete.

    - #[serde(rename = "RemainingCount")] - #[serde(default)] pub remaining_count: i32, ///

    A list of counts and versions for deleted items.

    - #[serde(rename = "SummaryItems")] - #[serde(default)] pub summary_items: std::option::Option>, } @@ -22591,19 +20493,13 @@ impl InventoryDeletionSummary { ///

    Either a count, remaining count, or a version number in a delete inventory summary.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InventoryDeletionSummaryItem { ///

    The inventory type version.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    A count of the number of deleted items.

    - #[serde(rename = "Count")] - #[serde(default)] pub count: i32, ///

    The remaining number of items to delete.

    - #[serde(rename = "RemainingCount")] - #[serde(default)] pub remaining_count: i32, } impl std::fmt::Debug for InventoryDeletionSummaryItem { @@ -22698,7 +20594,7 @@ impl std::convert::From<&str> for InventoryDeletionStatus { impl std::str::FromStr for InventoryDeletionStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventoryDeletionStatus::from(s)) } } @@ -22716,39 +20612,22 @@ impl AsRef for InventoryDeletionStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventoryDeletionStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Defines the high-level patch compliance state for a managed instance, providing information /// about the number of installed, missing, not applicable, and failed patches along with metadata /// about the operation when this information was gathered for the instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstancePatchState { ///

    The ID of the managed instance the high-level patch compliance information was collected /// for.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The name of the patch group the managed instance belongs to.

    - #[serde(rename = "PatchGroup")] - #[serde(default)] pub patch_group: std::option::Option, ///

    The ID of the patch baseline used to patch the instance.

    - #[serde(rename = "BaselineId")] - #[serde(default)] pub baseline_id: std::option::Option, ///

    The ID of the patch baseline snapshot used during the patching operation when this /// compliance data was collected.

    - #[serde(rename = "SnapshotId")] - #[serde(default)] pub snapshot_id: std::option::Option, ///

    An https URL or an Amazon S3 path-style URL to a list of patches to be installed. This patch /// installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM @@ -22756,27 +20635,17 @@ pub struct InstancePatchState { /// baseline.

    ///

    For more information about the InstallOverrideList parameter, see About the /// SSM document AWS-RunPatchBaseline in the AWS Systems Manager User Guide.

    - #[serde(rename = "InstallOverrideList")] - #[serde(default)] pub install_override_list: std::option::Option, ///

    Placeholder information. This field will always be empty in the current release of the /// service.

    - #[serde(rename = "OwnerInformation")] - #[serde(default)] pub owner_information: std::option::Option, ///

    The number of patches from the patch baseline that are installed on the instance.

    - #[serde(rename = "InstalledCount")] - #[serde(default)] pub installed_count: i32, ///

    The number of patches not specified in the patch baseline that are installed on the /// instance.

    - #[serde(rename = "InstalledOtherCount")] - #[serde(default)] pub installed_other_count: i32, ///

    The number of patches installed by Patch Manager since the last time the instance was /// rebooted.

    - #[serde(rename = "InstalledPendingRebootCount")] - #[serde(default)] pub installed_pending_reboot_count: std::option::Option, ///

    The number of patches installed on an instance that are specified in a /// RejectedPatches list. Patches with a status of @@ -22787,57 +20656,30 @@ pub struct InstancePatchState { /// RejectedPatchesAction, the value of InstalledRejectedCount will /// always be 0 (zero).

    /// - #[serde(rename = "InstalledRejectedCount")] - #[serde(default)] pub installed_rejected_count: std::option::Option, ///

    The number of patches from the patch baseline that are applicable for the instance but /// aren't currently installed.

    - #[serde(rename = "MissingCount")] - #[serde(default)] pub missing_count: i32, ///

    The number of patches from the patch baseline that were attempted to be installed during the /// last patching operation, but failed to install.

    - #[serde(rename = "FailedCount")] - #[serde(default)] pub failed_count: i32, ///

    The number of patches beyond the supported limit of NotApplicableCount that are /// not reported by name to Systems Manager Inventory.

    - #[serde(rename = "UnreportedNotApplicableCount")] - #[serde(default)] pub unreported_not_applicable_count: std::option::Option, ///

    The number of patches from the patch baseline that aren't applicable for the instance and /// therefore aren't installed on the instance. This number may be truncated if the list of patch /// names is very large. The number of patches beyond this limit are reported in /// UnreportedNotApplicableCount.

    - #[serde(rename = "NotApplicableCount")] - #[serde(default)] pub not_applicable_count: i32, ///

    The time the most recent patching operation was started on the instance.

    - #[serde(rename = "OperationStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub operation_start_time: std::option::Option, ///

    The time the most recent patching operation completed on the instance.

    - #[serde(rename = "OperationEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub operation_end_time: std::option::Option, ///

    The type of patching operation that was performed: SCAN (assess patch /// compliance state) or INSTALL (install missing patches).

    - #[serde(rename = "Operation")] - #[serde(default)] pub operation: std::option::Option, ///

    The time of the last attempt to patch the instance with NoReboot specified as /// the reboot option.

    - #[serde(rename = "LastNoRebootInstallOperationTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_no_reboot_install_operation_time: std::option::Option, ///

    Indicates the reboot option specified in the patch baseline.

    /// @@ -22859,28 +20701,20 @@ pub struct InstancePatchState { /// reboot is performed.

    /// /// - #[serde(rename = "RebootOption")] - #[serde(default)] pub reboot_option: std::option::Option, ///

    The number of instances where patches that are specified as "Critical" for compliance /// reporting in the patch baseline are not installed. These patches might be missing, have failed /// installation, were rejected, or were installed but awaiting a required instance reboot. The /// status of these instances is NON_COMPLIANT.

    - #[serde(rename = "CriticalNonCompliantCount")] - #[serde(default)] pub critical_non_compliant_count: std::option::Option, ///

    The number of instances where patches that are specified as "Security" in a patch advisory /// are not installed. These patches might be missing, have failed installation, were rejected, or /// were installed but awaiting a required instance reboot. The status of these instances is /// NON_COMPLIANT.

    - #[serde(rename = "SecurityNonCompliantCount")] - #[serde(default)] pub security_non_compliant_count: std::option::Option, ///

    The number of instances with patches installed that are specified as other than "Critical" /// or "Security" but are not compliant with the patch baseline. The status of these instances is /// NON_COMPLIANT.

    - #[serde(rename = "OtherNonCompliantCount")] - #[serde(default)] pub other_non_compliant_count: std::option::Option, } impl std::fmt::Debug for InstancePatchState { @@ -23302,7 +21136,7 @@ impl std::convert::From<&str> for RebootOption { impl std::str::FromStr for RebootOption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(RebootOption::from(s)) } } @@ -23320,15 +21154,6 @@ impl AsRef for RebootOption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for RebootOption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -23358,7 +21183,7 @@ impl std::convert::From<&str> for PatchOperationType { impl std::str::FromStr for PatchOperationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchOperationType::from(s)) } } @@ -23376,34 +21201,19 @@ impl AsRef for PatchOperationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchOperationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to /// scope down the information returned by the API.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstancePatchStateFilter { ///

    The key for the filter. Supported values are FailedCount, InstalledCount, /// InstalledOtherCount, MissingCount and NotApplicableCount.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value for the filter, must be an integer greater than or equal to 0.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, ///

    The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or /// GreaterThan.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for InstancePatchStateFilter { @@ -23511,7 +21321,7 @@ impl std::convert::From<&str> for InstancePatchStateOperatorType { impl std::str::FromStr for InstancePatchStateOperatorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstancePatchStateOperatorType::from(s)) } } @@ -23531,55 +21341,29 @@ impl AsRef for InstancePatchStateOperatorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstancePatchStateOperatorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Information about the state of a patch on a particular instance as it relates to the patch /// baseline used to patch the instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchComplianceData { ///

    The title of the patch.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    The operating system-specific ID of the patch.

    - #[serde(rename = "KBId")] - #[serde(default)] pub kb_id: std::option::Option, ///

    The classification of the patch (for example, SecurityUpdates, Updates, /// CriticalUpdates).

    - #[serde(rename = "Classification")] - #[serde(default)] pub classification: std::option::Option, ///

    The severity of the patch (for example, Critical, Important, Moderate).

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    The state of the patch on the instance, such as INSTALLED or FAILED.

    ///

    For descriptions of each patch state, see About patch compliance in the AWS Systems Manager User Guide.

    - #[serde(rename = "State")] - #[serde(default)] pub state: std::option::Option, ///

    The date/time the patch was installed on the instance. Note that not all operating systems /// provide this level of information.

    - #[serde(rename = "InstalledTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub installed_time: std::option::Option, ///

    The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by /// the patch.

    - #[serde(rename = "CVEIds")] - #[serde(default)] pub cve_ids: std::option::Option, } impl std::fmt::Debug for PatchComplianceData { @@ -23745,7 +21529,7 @@ impl std::convert::From<&str> for PatchComplianceDataState { impl std::str::FromStr for PatchComplianceDataState { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchComplianceDataState::from(s)) } } @@ -23768,83 +21552,44 @@ impl AsRef for PatchComplianceDataState { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchComplianceDataState { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes a filter for a specific list of instances.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceInformation { ///

    The instance ID.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    Connection status of SSM Agent.

    /// ///

    The status Inactive has been deprecated and is no longer in use.

    ///
    - #[serde(rename = "PingStatus")] - #[serde(default)] pub ping_status: std::option::Option, ///

    The date and time when the agent last pinged the Systems Manager service.

    - #[serde(rename = "LastPingDateTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_ping_date_time: std::option::Option, ///

    The version of SSM Agent running on your Linux instance.

    - #[serde(rename = "AgentVersion")] - #[serde(default)] pub agent_version: std::option::Option, ///

    Indicates whether the latest version of SSM Agent is running on your Linux Managed Instance. /// This field does not indicate whether or not the latest version is installed on Windows managed /// instances, because some older versions of Windows Server use the EC2Config service to process SSM /// requests.

    - #[serde(rename = "IsLatestVersion")] - #[serde(default)] pub is_latest_version: std::option::Option, ///

    The operating system platform type.

    - #[serde(rename = "PlatformType")] - #[serde(default)] pub platform_type: std::option::Option, ///

    The name of the operating system platform running on your instance.

    - #[serde(rename = "PlatformName")] - #[serde(default)] pub platform_name: std::option::Option, ///

    The version of the OS platform running on your instance.

    - #[serde(rename = "PlatformVersion")] - #[serde(default)] pub platform_version: std::option::Option, ///

    The activation ID created by Systems Manager when the server or VM was registered.

    - #[serde(rename = "ActivationId")] - #[serde(default)] pub activation_id: std::option::Option, ///

    The Amazon Identity and Access Management (IAM) role assigned to the on-premises Systems Manager /// managed instance. This call does not return the IAM role for EC2 instances. To retrieve the IAM /// role for an EC2 instance, use the Amazon EC2 DescribeInstances action. For information, /// see DescribeInstances in the /// Amazon EC2 API Reference or describe-instances in the AWS CLI Command Reference.

    - #[serde(rename = "IamRole")] - #[serde(default)] pub iam_role: std::option::Option, ///

    The date the server or VM was registered with AWS as a managed instance.

    - #[serde(rename = "RegistrationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub registration_date: std::option::Option, ///

    The type of instance. Instances are either EC2 instances or managed instances.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The name assigned to an on-premises server or virtual machine (VM) when it is activated as a /// Systems Manager managed instance. The name is specified as the DefaultInstanceName property @@ -23855,38 +21600,18 @@ pub struct InstanceInformation { /// (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 /// DescribeInstances action. For information, see DescribeInstances in the /// Amazon EC2 API Reference or describe-instances in the AWS CLI Command Reference.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The IP address of the managed instance.

    - #[serde(rename = "IPAddress")] - #[serde(default)] pub ip_address: std::option::Option, ///

    The fully qualified host name of the managed instance.

    - #[serde(rename = "ComputerName")] - #[serde(default)] pub computer_name: std::option::Option, ///

    The status of the association.

    - #[serde(rename = "AssociationStatus")] - #[serde(default)] pub association_status: std::option::Option, ///

    The date the association was last run.

    - #[serde(rename = "LastAssociationExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_association_execution_date: std::option::Option, ///

    The last date the association was successfully run.

    - #[serde(rename = "LastSuccessfulAssociationExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_successful_association_execution_date: std::option::Option, ///

    Information about the association.

    - #[serde(rename = "AssociationOverview")] - #[serde(default)] pub association_overview: std::option::Option, } @@ -24223,15 +21948,11 @@ impl InstanceInformation { ///

    Status information about the aggregated associations.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceAggregatedAssociationOverview { ///

    Detailed status information about the aggregated associations.

    - #[serde(rename = "DetailedStatus")] - #[serde(default)] pub detailed_status: std::option::Option, ///

    The number of associations for the instance(s).

    - #[serde(rename = "InstanceAssociationStatusAggregatedCount")] - #[serde(default)] pub instance_association_status_aggregated_count: std::option::Option>, } @@ -24335,7 +22056,7 @@ impl std::convert::From<&str> for ResourceType { impl std::str::FromStr for ResourceType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(ResourceType::from(s)) } } @@ -24354,15 +22075,6 @@ impl AsRef for ResourceType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for ResourceType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -24394,7 +22106,7 @@ impl std::convert::From<&str> for PingStatus { impl std::str::FromStr for PingStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PingStatus::from(s)) } } @@ -24413,19 +22125,10 @@ impl AsRef for PingStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PingStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    The filters to describe or get information about your managed instances.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceInformationStringFilter { ///

    The filter key name to describe your instances. For example:

    ///

    "InstanceIds"|"AgentVersion"|"PingStatus"|"PlatformTypes"|"ActivationIds"|"IamRole"|"ResourceType"|"AssociationStatus"|"Tag @@ -24437,12 +22140,8 @@ pub struct InstanceInformationStringFilter { /// tag:Windows. Here are some invalid examples: tag-keys, Tag Key, tag:, /// tagKey, abc:keyname.

    /// - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter values.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for InstanceInformationStringFilter { @@ -24516,15 +22215,11 @@ impl InstanceInformationStringFilter { /// InstanceInformationFilterList method is a legacy method and does not support tags. ///

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceInformationFilter { ///

    The name of the filter.

    - #[serde(rename = "key")] - #[serde(default)] pub key: std::option::Option, ///

    The filter values.

    - #[serde(rename = "valueSet")] - #[serde(default)] pub value_set: std::option::Option>, } impl std::fmt::Debug for InstanceInformationFilter { @@ -24626,7 +22321,7 @@ impl std::convert::From<&str> for InstanceInformationFilterKey { impl std::str::FromStr for InstanceInformationFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InstanceInformationFilterKey::from(s)) } } @@ -24650,70 +22345,34 @@ impl AsRef for InstanceInformationFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InstanceInformationFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Status information about the instance association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceAssociationStatusInfo { ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The name of the association.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The association document versions.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The version of the association applied to the instance.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The instance ID where the association was created.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The date the instance association ran.

    - #[serde(rename = "ExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_date: std::option::Option, ///

    Status information about the instance association.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Detailed status information about the instance association.

    - #[serde(rename = "DetailedStatus")] - #[serde(default)] pub detailed_status: std::option::Option, ///

    Summary information about association execution.

    - #[serde(rename = "ExecutionSummary")] - #[serde(default)] pub execution_summary: std::option::Option, ///

    An error code returned by the request to create the association.

    - #[serde(rename = "ErrorCode")] - #[serde(default)] pub error_code: std::option::Option, ///

    A URL for an S3 bucket where you want to store the results of this request.

    - #[serde(rename = "OutputUrl")] - #[serde(default)] pub output_url: std::option::Option, ///

    The name of the association applied to the instance.

    - #[serde(rename = "AssociationName")] - #[serde(default)] pub association_name: std::option::Option, } impl std::fmt::Debug for InstanceAssociationStatusInfo { @@ -24914,11 +22573,9 @@ impl InstanceAssociationStatusInfo { ///

    The URL of S3 bucket where you want to store the results of this request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceAssociationOutputUrl { ///

    The URL of S3 bucket where you want to store the results of this request.

    - #[serde(rename = "S3OutputUrl")] - #[serde(default)] pub s3_output_url: std::option::Option, } impl std::fmt::Debug for InstanceAssociationOutputUrl { @@ -24966,11 +22623,9 @@ impl InstanceAssociationOutputUrl { ///

    A URL for the S3 bucket where you want to store the results of this request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct S3OutputUrl { ///

    A URL for an S3 bucket where you want to store the results of this request.

    - #[serde(rename = "OutputUrl")] - #[serde(default)] pub output_url: std::option::Option, } impl std::fmt::Debug for S3OutputUrl { @@ -25018,18 +22673,14 @@ impl S3OutputUrl { /// the patch is currently approved, due to be approved by a rule, explicitly approved, or explicitly /// rejected and the date the patch was or will be approved.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct EffectivePatch { ///

    Provides metadata for a patch, including information such as the KB ID, severity, /// classification and a URL for where more information can be obtained about the patch.

    - #[serde(rename = "Patch")] - #[serde(default)] pub patch: std::option::Option, ///

    The status of the patch in a patch baseline. This includes information about whether the /// patch is currently approved, due to be approved by a rule, explicitly approved, or explicitly /// rejected and the date the patch was or will be approved.

    - #[serde(rename = "PatchStatus")] - #[serde(default)] pub patch_status: std::option::Option, } impl std::fmt::Debug for EffectivePatch { @@ -25092,24 +22743,15 @@ impl EffectivePatch { ///

    Information about the approval status of a patch.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct PatchStatus { ///

    The approval status of a patch (APPROVED, PENDING_APPROVAL, EXPLICIT_APPROVED, /// EXPLICIT_REJECTED).

    - #[serde(rename = "DeploymentStatus")] - #[serde(default)] pub deployment_status: std::option::Option, ///

    The compliance severity level for a patch.

    - #[serde(rename = "ComplianceLevel")] - #[serde(default)] pub compliance_level: std::option::Option, ///

    The date the patch was approved (or will be approved if the status is /// PENDING_APPROVAL).

    - #[serde(rename = "ApprovalDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub approval_date: std::option::Option, } impl std::fmt::Debug for PatchStatus { @@ -25219,7 +22861,7 @@ impl std::convert::From<&str> for PatchDeploymentStatus { impl std::str::FromStr for PatchDeploymentStatus { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(PatchDeploymentStatus::from(s)) } } @@ -25239,136 +22881,78 @@ impl AsRef for PatchDeploymentStatus { self.as_str() } } -impl<'de> serde::Deserialize<'de> for PatchDeploymentStatus { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Represents metadata about a patch.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Patch { ///

    The ID of the patch. Applies to Windows patches only.

    /// ///

    This ID is not the same as the Microsoft Knowledge Base ID.

    ///
    - #[serde(rename = "Id")] - #[serde(default)] pub id: std::option::Option, ///

    The date the patch was released.

    - #[serde(rename = "ReleaseDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub release_date: std::option::Option, ///

    The title of the patch.

    - #[serde(rename = "Title")] - #[serde(default)] pub title: std::option::Option, ///

    The description of the patch.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    The URL where more information can be obtained about the patch.

    - #[serde(rename = "ContentUrl")] - #[serde(default)] pub content_url: std::option::Option, ///

    The name of the vendor providing the patch.

    - #[serde(rename = "Vendor")] - #[serde(default)] pub vendor: std::option::Option, ///

    The product family the patch is applicable for. For example, Windows or /// Amazon Linux 2.

    - #[serde(rename = "ProductFamily")] - #[serde(default)] pub product_family: std::option::Option, ///

    The specific product the patch is applicable for. For example, /// WindowsServer2016 or AmazonLinux2018.03.

    - #[serde(rename = "Product")] - #[serde(default)] pub product: std::option::Option, ///

    The classification of the patch. For example, SecurityUpdates, /// Updates, or CriticalUpdates.

    - #[serde(rename = "Classification")] - #[serde(default)] pub classification: std::option::Option, ///

    The severity of the patch, such as Critical, Important, or /// Moderate. Applies to Windows patches only.

    - #[serde(rename = "MsrcSeverity")] - #[serde(default)] pub msrc_severity: std::option::Option, ///

    The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.

    - #[serde(rename = "KbNumber")] - #[serde(default)] pub kb_number: std::option::Option, ///

    The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. /// For example, MS14-045. Applies to Windows patches only.

    - #[serde(rename = "MsrcNumber")] - #[serde(default)] pub msrc_number: std::option::Option, ///

    The language of the patch if it's language-specific.

    - #[serde(rename = "Language")] - #[serde(default)] pub language: std::option::Option, ///

    The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to /// Linux-based instances only.

    - #[serde(rename = "AdvisoryIds")] - #[serde(default)] pub advisory_ids: std::option::Option>, ///

    The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based /// instances only.

    - #[serde(rename = "BugzillaIds")] - #[serde(default)] pub bugzilla_ids: std::option::Option>, ///

    The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, /// CVE-2011-3192. Applies to Linux-based instances only.

    - #[serde(rename = "CVEIds")] - #[serde(default)] pub cve_ids: std::option::Option>, ///

    The name of the patch. Applies to Linux-based instances only.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The epoch of the patch. For example in /// pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is /// 20180914-2. Applies to Linux-based instances only.

    - #[serde(rename = "Epoch")] - #[serde(default)] pub epoch: i32, ///

    The version number of the patch. For example, in /// example-pkg-1.710.10-2.7.abcd.x86_64, the version number is indicated by /// -1. Applies to Linux-based instances only.

    - #[serde(rename = "Version")] - #[serde(default)] pub version: std::option::Option, ///

    The particular release of a patch. For example, in /// pkg-example-EE-20180914-2.2.amzn1.noarch, the release is 2.amaz1. /// Applies to Linux-based instances only.

    - #[serde(rename = "Release")] - #[serde(default)] pub release: std::option::Option, ///

    The architecture of the patch. For example, in /// example-pkg-0.710.10-2.7.abcd.x86_64, the architecture is indicated by /// x86_64. Applies to Linux-based instances only.

    - #[serde(rename = "Arch")] - #[serde(default)] pub arch: std::option::Option, ///

    The severity level of the patch. For example, CRITICAL or /// MODERATE.

    - #[serde(rename = "Severity")] - #[serde(default)] pub severity: std::option::Option, ///

    The source patch repository for the operating system and version, such as /// trusty-security for Ubuntu Server 14.04 LTE and focal-security for /// Ubuntu Server 20.04 LTE. Applies to Linux-based instances only.

    - #[serde(rename = "Repository")] - #[serde(default)] pub repository: std::option::Option, } impl std::fmt::Debug for Patch { @@ -25720,23 +23304,15 @@ impl Patch { ///

    One or more association documents on the instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct InstanceAssociation { ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The instance ID.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    The content of the association document for the instance(s).

    - #[serde(rename = "Content")] - #[serde(default)] pub content: std::option::Option, ///

    Version information for the association on the instance.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, } impl std::fmt::Debug for InstanceAssociation { @@ -25824,15 +23400,11 @@ impl InstanceAssociation { ///

    Information includes the AWS account ID where the current document is shared and the version /// shared with that account.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AccountSharingInfo { ///

    The AWS account ID where the current document is shared.

    - #[serde(rename = "AccountId")] - #[serde(default)] pub account_id: std::option::Option, ///

    The version of the current document shared with the account.

    - #[serde(rename = "SharedDocumentVersion")] - #[serde(default)] pub shared_document_version: std::option::Option, } impl std::fmt::Debug for AccountSharingInfo { @@ -25892,16 +23464,12 @@ impl AccountSharingInfo { ///

    A filter to limit the amount of step execution information returned by the call.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct StepExecutionFilter { ///

    One or more keys to limit the results. Valid filter keys include the following: StepName, /// Action, StepExecutionId, StepExecutionStatus, StartTimeBefore, StartTimeAfter.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The values of the filter key.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for StepExecutionFilter { @@ -26000,7 +23568,7 @@ impl std::convert::From<&str> for StepExecutionFilterKey { impl std::str::FromStr for StepExecutionFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(StepExecutionFilterKey::from(s)) } } @@ -26022,135 +23590,69 @@ impl AsRef for StepExecutionFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for StepExecutionFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Details about a specific Automation execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutomationExecutionMetadata { ///

    The execution ID.

    - #[serde(rename = "AutomationExecutionId")] - #[serde(default)] pub automation_execution_id: std::option::Option, ///

    The name of the Automation document used during execution.

    - #[serde(rename = "DocumentName")] - #[serde(default)] pub document_name: std::option::Option, ///

    The document version used during the execution.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The status of the execution.

    - #[serde(rename = "AutomationExecutionStatus")] - #[serde(default)] pub automation_execution_status: std::option::Option, ///

    The time the execution started.

    - #[serde(rename = "ExecutionStartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_start_time: std::option::Option, ///

    The time the execution finished. This is not populated if the execution is still in /// progress.

    - #[serde(rename = "ExecutionEndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub execution_end_time: std::option::Option, ///

    The IAM role ARN of the user who ran the Automation.

    - #[serde(rename = "ExecutedBy")] - #[serde(default)] pub executed_by: std::option::Option, ///

    An S3 bucket where execution information is stored.

    - #[serde(rename = "LogFile")] - #[serde(default)] pub log_file: std::option::Option, ///

    The list of execution outputs as defined in the Automation document.

    - #[serde(rename = "Outputs")] - #[serde(default)] pub outputs: std::option::Option< std::collections::HashMap>, >, ///

    The Automation execution mode.

    - #[serde(rename = "Mode")] - #[serde(default)] pub mode: std::option::Option, ///

    The ExecutionId of the parent Automation.

    - #[serde(rename = "ParentAutomationExecutionId")] - #[serde(default)] pub parent_automation_execution_id: std::option::Option, ///

    The name of the step that is currently running.

    - #[serde(rename = "CurrentStepName")] - #[serde(default)] pub current_step_name: std::option::Option, ///

    The action of the step that is currently running.

    - #[serde(rename = "CurrentAction")] - #[serde(default)] pub current_action: std::option::Option, ///

    The list of execution outputs as defined in the Automation document.

    - #[serde(rename = "FailureMessage")] - #[serde(default)] pub failure_message: std::option::Option, ///

    The list of execution outputs as defined in the Automation document.

    - #[serde(rename = "TargetParameterName")] - #[serde(default)] pub target_parameter_name: std::option::Option, ///

    The targets defined by the user when starting the Automation.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    The specified key-value mapping of document parameters to target resources.

    - #[serde(rename = "TargetMaps")] - #[serde(default)] pub target_maps: std::option::Option< std::vec::Vec< std::collections::HashMap>, >, >, ///

    A list of targets that resolved during the execution.

    - #[serde(rename = "ResolvedTargets")] - #[serde(default)] pub resolved_targets: std::option::Option, ///

    The MaxConcurrency value specified by the user when starting the Automation.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The MaxErrors value specified by the user when starting the Automation.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The list of execution outputs as defined in the Automation document.

    - #[serde(rename = "Target")] - #[serde(default)] pub target: std::option::Option, ///

    Use this filter with DescribeAutomationExecutions. Specify either Local or /// CrossAccount. CrossAccount is an Automation that runs in multiple AWS Regions and accounts. For /// more information, see Running Automation workflows in multiple AWS Regions and accounts in the /// AWS Systems Manager User Guide.

    - #[serde(rename = "AutomationType")] - #[serde(default)] pub automation_type: std::option::Option, ///

    The subtype of the Automation operation. Currently, the only supported value is /// ChangeRequest.

    - #[serde(rename = "AutomationSubtype")] - #[serde(default)] pub automation_subtype: std::option::Option, ///

    The date and time the Automation operation is scheduled to start.

    - #[serde(rename = "ScheduledTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub scheduled_time: std::option::Option, ///

    Information about the Automation runbooks (Automation documents) that are run during a /// runbook workflow in Change Manager.

    @@ -26158,20 +23660,12 @@ pub struct AutomationExecutionMetadata { ///

    The Automation runbooks specified for the runbook workflow can't run until all required /// approvals for the change request have been received.

    ///
    - #[serde(rename = "Runbooks")] - #[serde(default)] pub runbooks: std::option::Option>, ///

    The ID of an OpsItem that is created to represent a Change Manager change request.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] pub ops_item_id: std::option::Option, ///

    The ID of a State Manager association used in the Automation operation.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The name of the Change Manager change request.

    - #[serde(rename = "ChangeRequestName")] - #[serde(default)] pub change_request_name: std::option::Option, } impl std::fmt::Debug for AutomationExecutionMetadata { @@ -26678,7 +24172,7 @@ impl std::convert::From<&str> for AutomationType { impl std::str::FromStr for AutomationType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutomationType::from(s)) } } @@ -26696,28 +24190,15 @@ impl AsRef for AutomationType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutomationType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    A filter used to match specific automation executions. This is used to limit the scope of /// Automation execution information returned.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AutomationExecutionFilter { ///

    One or more keys to limit the results.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The values used to limit the execution information associated with the filter's key.

    - #[serde(rename = "Values")] - #[serde(default)] pub values: std::option::Option>, } impl std::fmt::Debug for AutomationExecutionFilter { @@ -26827,7 +24308,7 @@ impl std::convert::From<&str> for AutomationExecutionFilterKey { impl std::str::FromStr for AutomationExecutionFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AutomationExecutionFilterKey::from(s)) } } @@ -26855,58 +24336,28 @@ impl AsRef for AutomationExecutionFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AutomationExecutionFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Includes information about the specified association execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationExecutionTarget { ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The association version.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The execution ID.

    - #[serde(rename = "ExecutionId")] - #[serde(default)] pub execution_id: std::option::Option, ///

    The resource ID, for example, the instance ID where the association ran.

    - #[serde(rename = "ResourceId")] - #[serde(default)] pub resource_id: std::option::Option, ///

    The resource type, for example, instance.

    - #[serde(rename = "ResourceType")] - #[serde(default)] pub resource_type: std::option::Option, ///

    The association execution status.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Detailed information about the execution status.

    - #[serde(rename = "DetailedStatus")] - #[serde(default)] pub detailed_status: std::option::Option, ///

    The date of the last execution.

    - #[serde(rename = "LastExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_execution_date: std::option::Option, ///

    The location where the association details are saved.

    - #[serde(rename = "OutputSource")] - #[serde(default)] pub output_source: std::option::Option, } impl std::fmt::Debug for AssociationExecutionTarget { @@ -27065,16 +24516,12 @@ impl AssociationExecutionTarget { ///

    Information about the source where the association execution details are stored.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct OutputSource { ///

    The ID of the output source, for example the URL of an S3 bucket.

    - #[serde(rename = "OutputSourceId")] - #[serde(default)] pub output_source_id: std::option::Option, ///

    The type of source where the association execution details are stored, for example, /// Amazon S3.

    - #[serde(rename = "OutputSourceType")] - #[serde(default)] pub output_source_type: std::option::Option, } impl std::fmt::Debug for OutputSource { @@ -27138,15 +24585,11 @@ impl OutputSource { ///

    Filters for the association execution.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationExecutionTargetsFilter { ///

    The key value used in the request.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value specified for the key.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, } impl std::fmt::Debug for AssociationExecutionTargetsFilter { @@ -27234,7 +24677,7 @@ impl std::convert::From<&str> for AssociationExecutionTargetsFilterKey { impl std::str::FromStr for AssociationExecutionTargetsFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationExecutionTargetsFilterKey::from(s)) } } @@ -27253,57 +24696,26 @@ impl AsRef for AssociationExecutionTargetsFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationExecutionTargetsFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Includes information about the specified association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationExecution { ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] pub association_id: std::option::Option, ///

    The association version.

    - #[serde(rename = "AssociationVersion")] - #[serde(default)] pub association_version: std::option::Option, ///

    The execution ID for the association.

    - #[serde(rename = "ExecutionId")] - #[serde(default)] pub execution_id: std::option::Option, ///

    The status of the association execution.

    - #[serde(rename = "Status")] - #[serde(default)] pub status: std::option::Option, ///

    Detailed status information about the execution.

    - #[serde(rename = "DetailedStatus")] - #[serde(default)] pub detailed_status: std::option::Option, ///

    The time the execution started.

    - #[serde(rename = "CreatedTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_time: std::option::Option, ///

    The date of the last execution.

    - #[serde(rename = "LastExecutionDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub last_execution_date: std::option::Option, ///

    An aggregate status of the resources in the execution based on the status type.

    - #[serde(rename = "ResourceCountByStatus")] - #[serde(default)] pub resource_count_by_status: std::option::Option, } impl std::fmt::Debug for AssociationExecution { @@ -27450,19 +24862,13 @@ impl AssociationExecution { ///

    Filters used in the request.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct AssociationExecutionFilter { ///

    The key value used in the request.

    - #[serde(rename = "Key")] - #[serde(default)] pub key: std::option::Option, ///

    The value specified for the key.

    - #[serde(rename = "Value")] - #[serde(default)] pub value: std::option::Option, ///

    The filter type specified in the request.

    - #[serde(rename = "Type")] - #[serde(default)] pub r#type: std::option::Option, } impl std::fmt::Debug for AssociationExecutionFilter { @@ -27565,7 +24971,7 @@ impl std::convert::From<&str> for AssociationFilterOperatorType { impl std::str::FromStr for AssociationFilterOperatorType { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationFilterOperatorType::from(s)) } } @@ -27584,15 +24990,6 @@ impl AsRef for AssociationFilterOperatorType { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationFilterOperatorType { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -27624,7 +25021,7 @@ impl std::convert::From<&str> for AssociationExecutionFilterKey { impl std::str::FromStr for AssociationExecutionFilterKey { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(AssociationExecutionFilterKey::from(s)) } } @@ -27643,68 +25040,33 @@ impl AsRef for AssociationExecutionFilterKey { self.as_str() } } -impl<'de> serde::Deserialize<'de> for AssociationExecutionFilterKey { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    An activation registers one or more on-premises servers or virtual machines (VMs) with AWS /// so that you can configure those servers or VMs using Run Command. A server or VM that has been /// registered with AWS is called a managed instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct Activation { ///

    The ID created by Systems Manager when you submitted the activation.

    - #[serde(rename = "ActivationId")] - #[serde(default)] pub activation_id: std::option::Option, ///

    A user defined description of the activation.

    - #[serde(rename = "Description")] - #[serde(default)] pub description: std::option::Option, ///

    A name for the managed instance when it is created.

    - #[serde(rename = "DefaultInstanceName")] - #[serde(default)] pub default_instance_name: std::option::Option, ///

    The Amazon Identity and Access Management (IAM) role to assign to the managed /// instance.

    - #[serde(rename = "IamRole")] - #[serde(default)] pub iam_role: std::option::Option, ///

    The maximum number of managed instances that can be registered using this activation.

    - #[serde(rename = "RegistrationLimit")] - #[serde(default)] pub registration_limit: i32, ///

    The number of managed instances already registered with this activation.

    - #[serde(rename = "RegistrationsCount")] - #[serde(default)] pub registrations_count: i32, ///

    The date when this activation can no longer be used to register managed instances.

    - #[serde(rename = "ExpirationDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub expiration_date: std::option::Option, ///

    Whether or not the activation is expired.

    - #[serde(rename = "Expired")] - #[serde(default)] pub expired: bool, ///

    The date the activation was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] pub created_date: std::option::Option, ///

    Tags assigned to the activation.

    - #[serde(rename = "Tags")] - #[serde(default)] pub tags: std::option::Option>, } impl std::fmt::Debug for Activation { @@ -27874,15 +25236,11 @@ impl Activation { ///

    Filter for the DescribeActivation API.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct DescribeActivationsFilter { ///

    The name of the filter.

    - #[serde(rename = "FilterKey")] - #[serde(default)] pub filter_key: std::option::Option, ///

    The filter values.

    - #[serde(rename = "FilterValues")] - #[serde(default)] pub filter_values: std::option::Option>, } impl std::fmt::Debug for DescribeActivationsFilter { @@ -27974,7 +25332,7 @@ impl std::convert::From<&str> for DescribeActivationsFilterKeys { impl std::str::FromStr for DescribeActivationsFilterKeys { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(DescribeActivationsFilterKeys::from(s)) } } @@ -27993,15 +25351,6 @@ impl AsRef for DescribeActivationsFilterKeys { self.as_str() } } -impl<'de> serde::Deserialize<'de> for DescribeActivationsFilterKeys { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} #[non_exhaustive] #[derive( @@ -28031,7 +25380,7 @@ impl std::convert::From<&str> for InventorySchemaDeleteOption { impl std::str::FromStr for InventorySchemaDeleteOption { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(InventorySchemaDeleteOption::from(s)) } } @@ -28049,31 +25398,16 @@ impl AsRef for InventorySchemaDeleteOption { self.as_str() } } -impl<'de> serde::Deserialize<'de> for InventorySchemaDeleteOption { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes a failed association.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct FailedCreateAssociation { ///

    The association.

    - #[serde(rename = "Entry")] - #[serde(default)] pub entry: std::option::Option, ///

    A description of the failure.

    - #[serde(rename = "Message")] - #[serde(default)] pub message: std::option::Option, ///

    The source of the failure.

    - #[serde(rename = "Fault")] - #[serde(default)] pub fault: std::option::Option, } impl std::fmt::Debug for FailedCreateAssociation { @@ -28175,7 +25509,7 @@ impl std::convert::From<&str> for Fault { impl std::str::FromStr for Fault { type Err = std::convert::Infallible; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> std::result::Result { Ok(Fault::from(s)) } } @@ -28194,19 +25528,10 @@ impl AsRef for Fault { self.as_str() } } -impl<'de> serde::Deserialize<'de> for Fault { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let data = <&str>::deserialize(deserializer)?; - Ok(Self::from(data)) - } -} ///

    Describes the association of a Systems Manager SSM document and an instance.

    #[non_exhaustive] -#[derive(serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] +#[derive(std::clone::Clone, std::cmp::PartialEq)] pub struct CreateAssociationBatchRequestEntry { ///

    The name of the SSM document that contains the configuration information for the instance. /// You can specify Command or Automation documents.

    @@ -28225,43 +25550,25 @@ pub struct CreateAssociationBatchRequestEntry { ///

    For AWS-predefined documents and SSM documents you created in your account, you only need to /// specify the document name. For example, AWS-ApplyPatchBaseline or /// My-Document.

    - #[serde(rename = "Name")] - #[serde(default)] pub name: std::option::Option, ///

    The ID of the instance.

    - #[serde(rename = "InstanceId")] - #[serde(default)] pub instance_id: std::option::Option, ///

    A description of the parameters for a document.

    - #[serde(rename = "Parameters")] - #[serde(default)] pub parameters: std::option::Option< std::collections::HashMap>, >, ///

    Specify the target for the association. This target is required for associations that use an /// Automation document and target resources by using rate controls.

    - #[serde(rename = "AutomationTargetParameterName")] - #[serde(default)] pub automation_target_parameter_name: std::option::Option, ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] pub document_version: std::option::Option, ///

    The instances targeted by the request.

    - #[serde(rename = "Targets")] - #[serde(default)] pub targets: std::option::Option>, ///

    A cron expression that specifies a schedule when the association runs.

    - #[serde(rename = "ScheduleExpression")] - #[serde(default)] pub schedule_expression: std::option::Option, ///

    An S3 bucket where you want to store the results of this request.

    - #[serde(rename = "OutputLocation")] - #[serde(default)] pub output_location: std::option::Option, ///

    Specify a descriptive name for the association.

    - #[serde(rename = "AssociationName")] - #[serde(default)] pub association_name: std::option::Option, ///

    The number of errors that are allowed before the system stops sending requests to run the /// association on additional targets. You can specify either an absolute number of errors, for @@ -28274,8 +25581,6 @@ pub struct CreateAssociationBatchRequestEntry { /// complete, but some of these executions may fail as well. If you need to ensure that there won't /// be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one /// at a time.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] pub max_errors: std::option::Option, ///

    The maximum number of targets allowed to run the association at the same time. You can /// specify a number, for example 10, or a percentage of the target set, for example 10%. The default @@ -28284,12 +25589,8 @@ pub struct CreateAssociationBatchRequestEntry { /// MaxConcurrency associations, the association is allowed to run. During the next association /// interval, the new instance will process its association within the limit specified for /// MaxConcurrency.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] pub max_concurrency: std::option::Option, ///

    The severity level to assign to the association.

    - #[serde(rename = "ComplianceSeverity")] - #[serde(default)] pub compliance_severity: std::option::Option, ///

    The mode for generating association compliance. You can specify AUTO or /// MANUAL. In AUTO mode, the system uses the status of the association @@ -28300,26 +25601,18 @@ pub struct CreateAssociationBatchRequestEntry { /// for the PutComplianceItems API action. In this case, compliance data is not /// managed by State Manager. It is managed by your direct call to the PutComplianceItems API action.

    ///

    By default, all associations use AUTO mode.

    - #[serde(rename = "SyncCompliance")] - #[serde(default)] pub sync_compliance: std::option::Option, ///

    By default, when you create a new associations, the system runs it immediately after it is /// created and then according to the schedule you specified. Specify this option if you don't want /// an association to run immediately after you create it. This parameter is not supported for rate /// expressions.

    - #[serde(rename = "ApplyOnlyAtCronInterval")] - #[serde(default)] pub apply_only_at_cron_interval: bool, ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager Change Calendar type /// documents your associations are gated under. The associations only run when that Change /// Calendar is open. For more information, see /// AWS Systems Manager Change Calendar.

    - #[serde(rename = "CalendarNames")] - #[serde(default)] pub calendar_names: std::option::Option>, ///

    Use this action to create an association in multiple Regions and multiple accounts.

    - #[serde(rename = "TargetLocations")] - #[serde(default)] pub target_locations: std::option::Option>, } impl std::fmt::Debug for CreateAssociationBatchRequestEntry { diff --git a/sdk/ssm/src/operation.rs b/sdk/ssm/src/operation.rs index 0414acc0c196..f9c838a0fc69 100644 --- a/sdk/ssm/src/operation.rs +++ b/sdk/ssm/src/operation.rs @@ -23,66 +23,6 @@ impl AddTagsToResource { pub fn builder() -> crate::input::add_tags_to_resource_input::Builder { crate::input::add_tags_to_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::AddTagsToResourceOutput, - crate::error::AddTagsToResourceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::AddTagsToResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToResourceError { - kind: crate::error::AddTagsToResourceErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToResourceError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToResourceError { - kind: crate::error::AddTagsToResourceErrorKind::InvalidResourceId(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToResourceError::unhandled(e), - }, - "InvalidResourceType" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToResourceError { - kind: crate::error::AddTagsToResourceErrorKind::InvalidResourceType(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToResourceError::unhandled(e), - }, - "TooManyTagsError" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToResourceError { - kind: crate::error::AddTagsToResourceErrorKind::TooManyTagsError(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToResourceError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::AddTagsToResourceError { - kind: crate::error::AddTagsToResourceErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::AddTagsToResourceError::unhandled(e), - }, - _ => crate::error::AddTagsToResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::add_tags_to_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -93,7 +33,11 @@ impl smithy_http::response::ParseStrictResponse for AddTagsToResource { crate::error::AddTagsToResourceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_add_tags_to_resource_error(response) + } else { + crate::operation_deser::parse_add_tags_to_resource_response(response) + } } } @@ -109,60 +53,6 @@ impl AssociateOpsItemRelatedItem { pub fn builder() -> crate::input::associate_ops_item_related_item_input::Builder { crate::input::associate_ops_item_related_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::AssociateOpsItemRelatedItemOutput, - crate::error::AssociateOpsItemRelatedItemError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::AssociateOpsItemRelatedItemError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateOpsItemRelatedItemError { kind: crate::error::AssociateOpsItemRelatedItemErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::AssociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateOpsItemRelatedItemError { kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(body), meta: generic }, - Err(e) => crate::error::AssociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateOpsItemRelatedItemError { kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededError(body), meta: generic }, - Err(e) => crate::error::AssociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateOpsItemRelatedItemError { kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(body), meta: generic }, - Err(e) => crate::error::AssociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemRelatedItemAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::AssociateOpsItemRelatedItemError { kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsError(body), meta: generic }, - Err(e) => crate::error::AssociateOpsItemRelatedItemError::unhandled(e) - } - _ => crate::error::AssociateOpsItemRelatedItemError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::associate_ops_item_related_item_output::Builder::default(); - builder = crate::json_deser::associate_ops_item_related_item_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -173,7 +63,11 @@ impl smithy_http::response::ParseStrictResponse for AssociateOpsItemRelatedItem crate::error::AssociateOpsItemRelatedItemError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_associate_ops_item_related_item_error(response) + } else { + crate::operation_deser::parse_associate_ops_item_related_item_response(response) + } } } @@ -188,57 +82,6 @@ impl CancelCommand { pub fn builder() -> crate::input::cancel_command_input::Builder { crate::input::cancel_command_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CancelCommandError::unhandled(generic)), - }; - return Err(match error_code { - "DuplicateInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelCommandError { - kind: crate::error::CancelCommandErrorKind::DuplicateInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::CancelCommandError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelCommandError { - kind: crate::error::CancelCommandErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CancelCommandError::unhandled(e), - }, - "InvalidCommandId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelCommandError { - kind: crate::error::CancelCommandErrorKind::InvalidCommandId(body), - meta: generic, - }, - Err(e) => crate::error::CancelCommandError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelCommandError { - kind: crate::error::CancelCommandErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::CancelCommandError::unhandled(e), - }, - _ => crate::error::CancelCommandError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::cancel_command_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -247,7 +90,11 @@ impl smithy_http::response::ParseStrictResponse for CancelCommand { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_cancel_command_error(response) + } else { + crate::operation_deser::parse_cancel_command_response(response) + } } } @@ -263,49 +110,6 @@ impl CancelMaintenanceWindowExecution { pub fn builder() -> crate::input::cancel_maintenance_window_execution_input::Builder { crate::input::cancel_maintenance_window_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CancelMaintenanceWindowExecutionOutput, - crate::error::CancelMaintenanceWindowExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::CancelMaintenanceWindowExecutionError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelMaintenanceWindowExecutionError { kind: crate::error::CancelMaintenanceWindowExecutionErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::CancelMaintenanceWindowExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CancelMaintenanceWindowExecutionError { kind: crate::error::CancelMaintenanceWindowExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::CancelMaintenanceWindowExecutionError::unhandled(e) - } - _ => crate::error::CancelMaintenanceWindowExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::cancel_maintenance_window_execution_output::Builder::default(); - builder = crate::json_deser::cancel_maintenance_window_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CancelMaintenanceWindowExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -316,7 +120,11 @@ impl smithy_http::response::ParseStrictResponse for CancelMaintenanceWindowExecu crate::error::CancelMaintenanceWindowExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_cancel_maintenance_window_execution_error(response) + } else { + crate::operation_deser::parse_cancel_maintenance_window_execution_response(response) + } } } @@ -339,41 +147,6 @@ impl CreateActivation { pub fn builder() -> crate::input::create_activation_input::Builder { crate::input::create_activation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateActivationOutput, - crate::error::CreateActivationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateActivationError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateActivationError { - kind: crate::error::CreateActivationErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateActivationError::unhandled(e), - }, - _ => crate::error::CreateActivationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_activation_output::Builder::default(); - builder = - crate::json_deser::create_activation_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateActivationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -384,7 +157,11 @@ impl smithy_http::response::ParseStrictResponse for CreateActivation { crate::error::CreateActivationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_activation_error(response) + } else { + crate::operation_deser::parse_create_activation_response(response) + } } } @@ -407,121 +184,6 @@ impl CreateAssociation { pub fn builder() -> crate::input::create_association_input::Builder { crate::input::create_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateAssociationOutput, - crate::error::CreateAssociationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "AssociationAlreadyExists" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::AssociationAlreadyExists( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "AssociationLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::AssociationLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidDocumentVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidOutputLocation" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidOutputLocation(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidParameters" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidParameters(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidSchedule" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidSchedule(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "InvalidTarget" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::InvalidTarget(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - "UnsupportedPlatformType" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationError { - kind: crate::error::CreateAssociationErrorKind::UnsupportedPlatformType( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationError::unhandled(e), - }, - _ => crate::error::CreateAssociationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_association_output::Builder::default(); - builder = crate::json_deser::create_association_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateAssociationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -532,7 +194,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAssociation { crate::error::CreateAssociationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_association_error(response) + } else { + crate::operation_deser::parse_create_association_response(response) + } } } @@ -551,135 +217,6 @@ impl CreateAssociationBatch { pub fn builder() -> crate::input::create_association_batch_input::Builder { crate::input::create_association_batch_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateAssociationBatchOutput, - crate::error::CreateAssociationBatchError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateAssociationBatchError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AssociationLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: - crate::error::CreateAssociationBatchErrorKind::AssociationLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "DuplicateInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::DuplicateInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidDocumentVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidOutputLocation" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidOutputLocation( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidParameters" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidParameters( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidSchedule" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidSchedule(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "InvalidTarget" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: crate::error::CreateAssociationBatchErrorKind::InvalidTarget(body), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - "UnsupportedPlatformType" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateAssociationBatchError { - kind: - crate::error::CreateAssociationBatchErrorKind::UnsupportedPlatformType( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateAssociationBatchError::unhandled(e), - }, - _ => crate::error::CreateAssociationBatchError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_association_batch_output::Builder::default(); - builder = crate::json_deser::create_association_batch_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateAssociationBatchError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -690,7 +227,11 @@ impl smithy_http::response::ParseStrictResponse for CreateAssociationBatch { crate::error::CreateAssociationBatchError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_association_batch_error(response) + } else { + crate::operation_deser::parse_create_association_batch_response(response) + } } } @@ -707,76 +248,6 @@ impl CreateDocument { pub fn builder() -> crate::input::create_document_input::Builder { crate::input::create_document_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateDocumentError::unhandled(generic)), - }; - return Err(match error_code { - "DocumentAlreadyExists" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::DocumentAlreadyExists(body), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - "DocumentLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::DocumentLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - "InvalidDocumentContent" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::InvalidDocumentContent(body), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - "InvalidDocumentSchemaVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::InvalidDocumentSchemaVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - "MaxDocumentSizeExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateDocumentError { - kind: crate::error::CreateDocumentErrorKind::MaxDocumentSizeExceeded(body), - meta: generic, - }, - Err(e) => crate::error::CreateDocumentError::unhandled(e), - }, - _ => crate::error::CreateDocumentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_document_output::Builder::default(); - builder = - crate::json_deser::create_document_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateDocumentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -785,7 +256,11 @@ impl smithy_http::response::ParseStrictResponse for CreateDocument { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_document_error(response) + } else { + crate::operation_deser::parse_create_document_response(response) + } } } @@ -807,52 +282,6 @@ impl CreateMaintenanceWindow { pub fn builder() -> crate::input::create_maintenance_window_input::Builder { crate::input::create_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateMaintenanceWindowOutput, - crate::error::CreateMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateMaintenanceWindowError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateMaintenanceWindowError { kind: crate::error::CreateMaintenanceWindowErrorKind::IdempotentParameterMismatch(body), meta: generic }, - Err(e) => crate::error::CreateMaintenanceWindowError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateMaintenanceWindowError { kind: crate::error::CreateMaintenanceWindowErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::CreateMaintenanceWindowError::unhandled(e) - } - "ResourceLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateMaintenanceWindowError { kind: crate::error::CreateMaintenanceWindowErrorKind::ResourceLimitExceededError(body), meta: generic }, - Err(e) => crate::error::CreateMaintenanceWindowError::unhandled(e) - } - _ => crate::error::CreateMaintenanceWindowError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_maintenance_window_output::Builder::default(); - builder = crate::json_deser::create_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -863,7 +292,11 @@ impl smithy_http::response::ParseStrictResponse for CreateMaintenanceWindow { crate::error::CreateMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_maintenance_window_error(response) + } else { + crate::operation_deser::parse_create_maintenance_window_response(response) + } } } @@ -883,62 +316,6 @@ impl CreateOpsItem { pub fn builder() -> crate::input::create_ops_item_input::Builder { crate::input::create_ops_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateOpsItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsItemError { - kind: crate::error::CreateOpsItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreateOpsItemError::unhandled(e), - }, - "OpsItemAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsItemError { - kind: crate::error::CreateOpsItemErrorKind::OpsItemAlreadyExistsError(body), - meta: generic, - }, - Err(e) => crate::error::CreateOpsItemError::unhandled(e), - }, - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsItemError { - kind: crate::error::CreateOpsItemErrorKind::OpsItemInvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreateOpsItemError::unhandled(e), - }, - "OpsItemLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsItemError { - kind: crate::error::CreateOpsItemErrorKind::OpsItemLimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::CreateOpsItemError::unhandled(e), - }, - _ => crate::error::CreateOpsItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_ops_item_output::Builder::default(); - builder = - crate::json_deser::create_ops_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::CreateOpsItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -947,7 +324,11 @@ impl smithy_http::response::ParseStrictResponse for CreateOpsItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_ops_item_error(response) + } else { + crate::operation_deser::parse_create_ops_item_response(response) + } } } @@ -962,56 +343,6 @@ impl CreateOpsMetadata { pub fn builder() -> crate::input::create_ops_metadata_input::Builder { crate::input::create_ops_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateOpsMetadataOutput, - crate::error::CreateOpsMetadataError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreateOpsMetadataError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsMetadataError { kind: crate::error::CreateOpsMetadataErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::CreateOpsMetadataError::unhandled(e) - } - "OpsMetadataAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsMetadataError { kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsError(body), meta: generic }, - Err(e) => crate::error::CreateOpsMetadataError::unhandled(e) - } - "OpsMetadataInvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsMetadataError { kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::CreateOpsMetadataError::unhandled(e) - } - "OpsMetadataLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsMetadataError { kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataLimitExceededError(body), meta: generic }, - Err(e) => crate::error::CreateOpsMetadataError::unhandled(e) - } - "OpsMetadataTooManyUpdatesException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateOpsMetadataError { kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(body), meta: generic }, - Err(e) => crate::error::CreateOpsMetadataError::unhandled(e) - } - _ => crate::error::CreateOpsMetadataError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_ops_metadata_output::Builder::default(); - builder = crate::json_deser::create_ops_metadata_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreateOpsMetadataError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1022,7 +353,11 @@ impl smithy_http::response::ParseStrictResponse for CreateOpsMetadata { crate::error::CreateOpsMetadataError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_ops_metadata_error(response) + } else { + crate::operation_deser::parse_create_ops_metadata_response(response) + } } } @@ -1040,63 +375,6 @@ impl CreatePatchBaseline { pub fn builder() -> crate::input::create_patch_baseline_input::Builder { crate::input::create_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreatePatchBaselineOutput, - crate::error::CreatePatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::CreatePatchBaselineError::unhandled(generic)), - }; - return Err(match error_code { - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePatchBaselineError { - kind: - crate::error::CreatePatchBaselineErrorKind::IdempotentParameterMismatch( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreatePatchBaselineError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePatchBaselineError { - kind: crate::error::CreatePatchBaselineErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::CreatePatchBaselineError::unhandled(e), - }, - "ResourceLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreatePatchBaselineError { - kind: - crate::error::CreatePatchBaselineErrorKind::ResourceLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::CreatePatchBaselineError::unhandled(e), - }, - _ => crate::error::CreatePatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_patch_baseline_output::Builder::default(); - builder = crate::json_deser::create_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::CreatePatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1107,7 +385,11 @@ impl smithy_http::response::ParseStrictResponse for CreatePatchBaseline { crate::error::CreatePatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_patch_baseline_error(response) + } else { + crate::operation_deser::parse_create_patch_baseline_response(response) + } } } @@ -1140,51 +422,6 @@ impl CreateResourceDataSync { pub fn builder() -> crate::input::create_resource_data_sync_input::Builder { crate::input::create_resource_data_sync_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::CreateResourceDataSyncOutput, - crate::error::CreateResourceDataSyncError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::CreateResourceDataSyncError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateResourceDataSyncError { kind: crate::error::CreateResourceDataSyncErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::CreateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateResourceDataSyncError { kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsError(body), meta: generic }, - Err(e) => crate::error::CreateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncCountExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateResourceDataSyncError { kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededError(body), meta: generic }, - Err(e) => crate::error::CreateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::CreateResourceDataSyncError { kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::CreateResourceDataSyncError::unhandled(e) - } - _ => crate::error::CreateResourceDataSyncError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::create_resource_data_sync_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1195,7 +432,11 @@ impl smithy_http::response::ParseStrictResponse for CreateResourceDataSync { crate::error::CreateResourceDataSyncError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_create_resource_data_sync_error(response) + } else { + crate::operation_deser::parse_create_resource_data_sync_response(response) + } } } @@ -1212,59 +453,6 @@ impl DeleteActivation { pub fn builder() -> crate::input::delete_activation_input::Builder { crate::input::delete_activation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteActivationOutput, - crate::error::DeleteActivationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteActivationError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteActivationError { - kind: crate::error::DeleteActivationErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteActivationError::unhandled(e), - }, - "InvalidActivation" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteActivationError { - kind: crate::error::DeleteActivationErrorKind::InvalidActivation(body), - meta: generic, - }, - Err(e) => crate::error::DeleteActivationError::unhandled(e), - }, - "InvalidActivationId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteActivationError { - kind: crate::error::DeleteActivationErrorKind::InvalidActivationId(body), - meta: generic, - }, - Err(e) => crate::error::DeleteActivationError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteActivationError { - kind: crate::error::DeleteActivationErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::DeleteActivationError::unhandled(e), - }, - _ => crate::error::DeleteActivationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_activation_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1275,7 +463,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteActivation { crate::error::DeleteActivationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_activation_error(response) + } else { + crate::operation_deser::parse_delete_activation_response(response) + } } } @@ -1293,68 +485,6 @@ impl DeleteAssociation { pub fn builder() -> crate::input::delete_association_input::Builder { crate::input::delete_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteAssociationOutput, - crate::error::DeleteAssociationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::AssociationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteAssociationError { - kind: crate::error::DeleteAssociationErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::DeleteAssociationError::unhandled(e), - }, - _ => crate::error::DeleteAssociationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_association_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1365,7 +495,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteAssociation { crate::error::DeleteAssociationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_association_error(response) + } else { + crate::operation_deser::parse_delete_association_response(response) + } } } @@ -1380,57 +514,6 @@ impl DeleteDocument { pub fn builder() -> crate::input::delete_document_input::Builder { crate::input::delete_document_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteDocumentError::unhandled(generic)), - }; - return Err(match error_code { - "AssociatedInstances" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDocumentError { - kind: crate::error::DeleteDocumentErrorKind::AssociatedInstances(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDocumentError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDocumentError { - kind: crate::error::DeleteDocumentErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDocumentError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDocumentError { - kind: crate::error::DeleteDocumentErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDocumentError::unhandled(e), - }, - "InvalidDocumentOperation" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteDocumentError { - kind: crate::error::DeleteDocumentErrorKind::InvalidDocumentOperation(body), - meta: generic, - }, - Err(e) => crate::error::DeleteDocumentError::unhandled(e), - }, - _ => crate::error::DeleteDocumentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_document_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1439,7 +522,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteDocument { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_document_error(response) + } else { + crate::operation_deser::parse_delete_document_response(response) + } } } @@ -1454,52 +541,6 @@ impl DeleteInventory { pub fn builder() -> crate::input::delete_inventory_input::Builder { crate::input::delete_inventory_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteInventoryError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteInventoryError { kind: crate::error::DeleteInventoryErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeleteInventoryError::unhandled(e) - } - "InvalidDeleteInventoryParametersException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteInventoryError { kind: crate::error::DeleteInventoryErrorKind::InvalidDeleteInventoryParametersError(body), meta: generic }, - Err(e) => crate::error::DeleteInventoryError::unhandled(e) - } - "InvalidInventoryRequestException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteInventoryError { kind: crate::error::DeleteInventoryErrorKind::InvalidInventoryRequestError(body), meta: generic }, - Err(e) => crate::error::DeleteInventoryError::unhandled(e) - } - "InvalidOptionException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteInventoryError { kind: crate::error::DeleteInventoryErrorKind::InvalidOptionError(body), meta: generic }, - Err(e) => crate::error::DeleteInventoryError::unhandled(e) - } - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteInventoryError { kind: crate::error::DeleteInventoryErrorKind::InvalidTypeNameError(body), meta: generic }, - Err(e) => crate::error::DeleteInventoryError::unhandled(e) - } - _ => crate::error::DeleteInventoryError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_inventory_output::Builder::default(); - builder = - crate::json_deser::delete_inventory_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteInventoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1510,7 +551,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteInventory { crate::error::DeleteInventoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_inventory_error(response) + } else { + crate::operation_deser::parse_delete_inventory_response(response) + } } } @@ -1524,49 +569,6 @@ impl DeleteMaintenanceWindow { pub fn builder() -> crate::input::delete_maintenance_window_input::Builder { crate::input::delete_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteMaintenanceWindowOutput, - crate::error::DeleteMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteMaintenanceWindowError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteMaintenanceWindowError { - kind: crate::error::DeleteMaintenanceWindowErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeleteMaintenanceWindowError::unhandled(e), - }, - _ => crate::error::DeleteMaintenanceWindowError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_maintenance_window_output::Builder::default(); - builder = crate::json_deser::delete_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeleteMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1577,7 +579,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteMaintenanceWindow { crate::error::DeleteMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_maintenance_window_error(response) + } else { + crate::operation_deser::parse_delete_maintenance_window_response(response) + } } } @@ -1591,43 +597,6 @@ impl DeleteOpsMetadata { pub fn builder() -> crate::input::delete_ops_metadata_input::Builder { crate::input::delete_ops_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteOpsMetadataOutput, - crate::error::DeleteOpsMetadataError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteOpsMetadataError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteOpsMetadataError { kind: crate::error::DeleteOpsMetadataErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeleteOpsMetadataError::unhandled(e) - } - "OpsMetadataInvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteOpsMetadataError { kind: crate::error::DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::DeleteOpsMetadataError::unhandled(e) - } - "OpsMetadataNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteOpsMetadataError { kind: crate::error::DeleteOpsMetadataErrorKind::OpsMetadataNotFoundError(body), meta: generic }, - Err(e) => crate::error::DeleteOpsMetadataError::unhandled(e) - } - _ => crate::error::DeleteOpsMetadataError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_ops_metadata_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1638,7 +607,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteOpsMetadata { crate::error::DeleteOpsMetadataError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_ops_metadata_error(response) + } else { + crate::operation_deser::parse_delete_ops_metadata_response(response) + } } } @@ -1652,43 +625,6 @@ impl DeleteParameter { pub fn builder() -> crate::input::delete_parameter_input::Builder { crate::input::delete_parameter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteParameterError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteParameterError { - kind: crate::error::DeleteParameterErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteParameterError::unhandled(e), - }, - "ParameterNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteParameterError { - kind: crate::error::DeleteParameterErrorKind::ParameterNotFound(body), - meta: generic, - }, - Err(e) => crate::error::DeleteParameterError::unhandled(e), - }, - _ => crate::error::DeleteParameterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_parameter_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1699,7 +635,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteParameter { crate::error::DeleteParameterError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_parameter_error(response) + } else { + crate::operation_deser::parse_delete_parameter_response(response) + } } } @@ -1713,41 +653,6 @@ impl DeleteParameters { pub fn builder() -> crate::input::delete_parameters_input::Builder { crate::input::delete_parameters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteParametersOutput, - crate::error::DeleteParametersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeleteParametersError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteParametersError { - kind: crate::error::DeleteParametersErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeleteParametersError::unhandled(e), - }, - _ => crate::error::DeleteParametersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_parameters_output::Builder::default(); - builder = - crate::json_deser::delete_parameters_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DeleteParametersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1758,7 +663,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteParameters { crate::error::DeleteParametersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_parameters_error(response) + } else { + crate::operation_deser::parse_delete_parameters_response(response) + } } } @@ -1772,50 +681,6 @@ impl DeletePatchBaseline { pub fn builder() -> crate::input::delete_patch_baseline_input::Builder { crate::input::delete_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeletePatchBaselineOutput, - crate::error::DeletePatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DeletePatchBaselineError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeletePatchBaselineError { - kind: crate::error::DeletePatchBaselineErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DeletePatchBaselineError::unhandled(e), - }, - "ResourceInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeletePatchBaselineError { - kind: crate::error::DeletePatchBaselineErrorKind::ResourceInUseError(body), - meta: generic, - }, - Err(e) => crate::error::DeletePatchBaselineError::unhandled(e), - }, - _ => crate::error::DeletePatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_patch_baseline_output::Builder::default(); - builder = crate::json_deser::delete_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeletePatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1826,7 +691,11 @@ impl smithy_http::response::ParseStrictResponse for DeletePatchBaseline { crate::error::DeletePatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_patch_baseline_error(response) + } else { + crate::operation_deser::parse_delete_patch_baseline_response(response) + } } } @@ -1842,47 +711,6 @@ impl DeleteResourceDataSync { pub fn builder() -> crate::input::delete_resource_data_sync_input::Builder { crate::input::delete_resource_data_sync_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeleteResourceDataSyncOutput, - crate::error::DeleteResourceDataSyncError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeleteResourceDataSyncError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourceDataSyncError { kind: crate::error::DeleteResourceDataSyncErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeleteResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourceDataSyncError { kind: crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::DeleteResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeleteResourceDataSyncError { kind: crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(body), meta: generic }, - Err(e) => crate::error::DeleteResourceDataSyncError::unhandled(e) - } - _ => crate::error::DeleteResourceDataSyncError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::delete_resource_data_sync_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1893,7 +721,11 @@ impl smithy_http::response::ParseStrictResponse for DeleteResourceDataSync { crate::error::DeleteResourceDataSyncError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_delete_resource_data_sync_error(response) + } else { + crate::operation_deser::parse_delete_resource_data_sync_response(response) + } } } @@ -1909,53 +741,6 @@ impl DeregisterManagedInstance { pub fn builder() -> crate::input::deregister_managed_instance_input::Builder { crate::input::deregister_managed_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterManagedInstanceOutput, - crate::error::DeregisterManagedInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DeregisterManagedInstanceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterManagedInstanceError { - kind: crate::error::DeregisterManagedInstanceErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterManagedInstanceError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterManagedInstanceError { - kind: crate::error::DeregisterManagedInstanceErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DeregisterManagedInstanceError::unhandled(e), - }, - _ => crate::error::DeregisterManagedInstanceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::deregister_managed_instance_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -1966,7 +751,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterManagedInstance { crate::error::DeregisterManagedInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_managed_instance_error(response) + } else { + crate::operation_deser::parse_deregister_managed_instance_response(response) + } } } @@ -1980,49 +769,6 @@ impl DeregisterPatchBaselineForPatchGroup { pub fn builder() -> crate::input::deregister_patch_baseline_for_patch_group_input::Builder { crate::input::deregister_patch_baseline_for_patch_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterPatchBaselineForPatchGroupOutput, - crate::error::DeregisterPatchBaselineForPatchGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterPatchBaselineForPatchGroupError { kind: crate::error::DeregisterPatchBaselineForPatchGroupErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled(e) - } - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterPatchBaselineForPatchGroupError { kind: crate::error::DeregisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(body), meta: generic }, - Err(e) => crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled(e) - } - _ => crate::error::DeregisterPatchBaselineForPatchGroupError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::deregister_patch_baseline_for_patch_group_output::Builder::default(); - builder = crate::json_deser::deregister_patch_baseline_for_patch_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2033,7 +779,13 @@ impl smithy_http::response::ParseStrictResponse for DeregisterPatchBaselineForPa crate::error::DeregisterPatchBaselineForPatchGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_patch_baseline_for_patch_group_error(response) + } else { + crate::operation_deser::parse_deregister_patch_baseline_for_patch_group_response( + response, + ) + } } } @@ -2047,55 +799,6 @@ impl DeregisterTargetFromMaintenanceWindow { pub fn builder() -> crate::input::deregister_target_from_maintenance_window_input::Builder { crate::input::deregister_target_from_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterTargetFromMaintenanceWindowOutput, - crate::error::DeregisterTargetFromMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTargetFromMaintenanceWindowError { kind: crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTargetFromMaintenanceWindowError { kind: crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled(e) - } - "TargetInUseException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTargetFromMaintenanceWindowError { kind: crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseError(body), meta: generic }, - Err(e) => crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled(e) - } - _ => crate::error::DeregisterTargetFromMaintenanceWindowError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::deregister_target_from_maintenance_window_output::Builder::default(); - builder = crate::json_deser::deregister_target_from_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2106,7 +809,13 @@ impl smithy_http::response::ParseStrictResponse for DeregisterTargetFromMaintena crate::error::DeregisterTargetFromMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_target_from_maintenance_window_error(response) + } else { + crate::operation_deser::parse_deregister_target_from_maintenance_window_response( + response, + ) + } } } @@ -2120,49 +829,6 @@ impl DeregisterTaskFromMaintenanceWindow { pub fn builder() -> crate::input::deregister_task_from_maintenance_window_input::Builder { crate::input::deregister_task_from_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DeregisterTaskFromMaintenanceWindowOutput, - crate::error::DeregisterTaskFromMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTaskFromMaintenanceWindowError { kind: crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DeregisterTaskFromMaintenanceWindowError { kind: crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled(e) - } - _ => crate::error::DeregisterTaskFromMaintenanceWindowError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::deregister_task_from_maintenance_window_output::Builder::default(); - builder = crate::json_deser::deregister_task_from_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2173,7 +839,11 @@ impl smithy_http::response::ParseStrictResponse for DeregisterTaskFromMaintenanc crate::error::DeregisterTaskFromMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_deregister_task_from_maintenance_window_error(response) + } else { + crate::operation_deser::parse_deregister_task_from_maintenance_window_response(response) + } } } @@ -2189,57 +859,6 @@ impl DescribeActivations { pub fn builder() -> crate::input::describe_activations_input::Builder { crate::input::describe_activations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeActivationsOutput, - crate::error::DescribeActivationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeActivationsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeActivationsError { - kind: crate::error::DescribeActivationsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeActivationsError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeActivationsError { - kind: crate::error::DescribeActivationsErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::DescribeActivationsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeActivationsError { - kind: crate::error::DescribeActivationsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::DescribeActivationsError::unhandled(e), - }, - _ => crate::error::DescribeActivationsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_activations_output::Builder::default(); - builder = crate::json_deser::describe_activations_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeActivationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2250,7 +869,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeActivations { crate::error::DescribeActivationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_activations_error(response) + } else { + crate::operation_deser::parse_describe_activations_response(response) + } } } @@ -2268,75 +891,6 @@ impl DescribeAssociation { pub fn builder() -> crate::input::describe_association_input::Builder { crate::input::describe_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAssociationOutput, - crate::error::DescribeAssociationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationError { - kind: crate::error::DescribeAssociationErrorKind::AssociationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAssociationError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationError { - kind: crate::error::DescribeAssociationErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAssociationError::unhandled(e), - }, - "InvalidAssociationVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationError { - kind: crate::error::DescribeAssociationErrorKind::InvalidAssociationVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAssociationError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationError { - kind: crate::error::DescribeAssociationErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAssociationError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationError { - kind: crate::error::DescribeAssociationErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::DescribeAssociationError::unhandled(e), - }, - _ => crate::error::DescribeAssociationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_association_output::Builder::default(); - builder = crate::json_deser::describe_association_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAssociationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2347,7 +901,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAssociation { crate::error::DescribeAssociationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_association_error(response) + } else { + crate::operation_deser::parse_describe_association_response(response) + } } } @@ -2361,52 +919,6 @@ impl DescribeAssociationExecutions { pub fn builder() -> crate::input::describe_association_executions_input::Builder { crate::input::describe_association_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAssociationExecutionsOutput, - crate::error::DescribeAssociationExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeAssociationExecutionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionsError { kind: crate::error::DescribeAssociationExecutionsErrorKind::AssociationDoesNotExist(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionsError { kind: crate::error::DescribeAssociationExecutionsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionsError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionsError { kind: crate::error::DescribeAssociationExecutionsErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionsError::unhandled(e) - } - _ => crate::error::DescribeAssociationExecutionsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_association_executions_output::Builder::default(); - builder = crate::json_deser::describe_association_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2417,7 +929,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAssociationExecution crate::error::DescribeAssociationExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_association_executions_error(response) + } else { + crate::operation_deser::parse_describe_association_executions_response(response) + } } } @@ -2432,57 +948,6 @@ impl DescribeAssociationExecutionTargets { pub fn builder() -> crate::input::describe_association_execution_targets_input::Builder { crate::input::describe_association_execution_targets_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAssociationExecutionTargetsOutput, - crate::error::DescribeAssociationExecutionTargetsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeAssociationExecutionTargetsError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionTargetsError { kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::AssociationDoesNotExist(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionTargetsError::unhandled(e) - } - "AssociationExecutionDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionTargetsError { kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::AssociationExecutionDoesNotExist(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionTargetsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionTargetsError { kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionTargetsError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAssociationExecutionTargetsError { kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeAssociationExecutionTargetsError::unhandled(e) - } - _ => crate::error::DescribeAssociationExecutionTargetsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_association_execution_targets_output::Builder::default(); - builder = crate::json_deser::describe_association_execution_targets_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2493,7 +958,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAssociationExecution crate::error::DescribeAssociationExecutionTargetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_association_execution_targets_error(response) + } else { + crate::operation_deser::parse_describe_association_execution_targets_response(response) + } } } @@ -2507,78 +976,6 @@ impl DescribeAutomationExecutions { pub fn builder() -> crate::input::describe_automation_executions_input::Builder { crate::input::describe_automation_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAutomationExecutionsOutput, - crate::error::DescribeAutomationExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeAutomationExecutionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationExecutionsError { - kind: - crate::error::DescribeAutomationExecutionsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAutomationExecutionsError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationExecutionsError { - kind: crate::error::DescribeAutomationExecutionsErrorKind::InvalidFilterKey( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAutomationExecutionsError::unhandled(e), - }, - "InvalidFilterValue" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationExecutionsError { - kind: - crate::error::DescribeAutomationExecutionsErrorKind::InvalidFilterValue( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAutomationExecutionsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationExecutionsError { - kind: crate::error::DescribeAutomationExecutionsErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAutomationExecutionsError::unhandled(e), - }, - _ => crate::error::DescribeAutomationExecutionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_automation_executions_output::Builder::default(); - builder = crate::json_deser::describe_automation_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2589,7 +986,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAutomationExecutions crate::error::DescribeAutomationExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_automation_executions_error(response) + } else { + crate::operation_deser::parse_describe_automation_executions_response(response) + } } } @@ -2604,61 +1005,6 @@ impl DescribeAutomationStepExecutions { pub fn builder() -> crate::input::describe_automation_step_executions_input::Builder { crate::input::describe_automation_step_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAutomationStepExecutionsOutput, - crate::error::DescribeAutomationStepExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeAutomationStepExecutionsError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "AutomationExecutionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationStepExecutionsError { kind: crate::error::DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundError(body), meta: generic }, - Err(e) => crate::error::DescribeAutomationStepExecutionsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationStepExecutionsError { kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeAutomationStepExecutionsError::unhandled(e) - } - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationStepExecutionsError { kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterKey(body), meta: generic }, - Err(e) => crate::error::DescribeAutomationStepExecutionsError::unhandled(e) - } - "InvalidFilterValue" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationStepExecutionsError { kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterValue(body), meta: generic }, - Err(e) => crate::error::DescribeAutomationStepExecutionsError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAutomationStepExecutionsError { kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeAutomationStepExecutionsError::unhandled(e) - } - _ => crate::error::DescribeAutomationStepExecutionsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_automation_step_executions_output::Builder::default(); - builder = crate::json_deser::describe_automation_step_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2669,7 +1015,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAutomationStepExecut crate::error::DescribeAutomationStepExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_automation_step_executions_error(response) + } else { + crate::operation_deser::parse_describe_automation_step_executions_response(response) + } } } @@ -2683,49 +1033,6 @@ impl DescribeAvailablePatches { pub fn builder() -> crate::input::describe_available_patches_input::Builder { crate::input::describe_available_patches_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeAvailablePatchesOutput, - crate::error::DescribeAvailablePatchesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeAvailablePatchesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeAvailablePatchesError { - kind: crate::error::DescribeAvailablePatchesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeAvailablePatchesError::unhandled(e), - }, - _ => crate::error::DescribeAvailablePatchesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_available_patches_output::Builder::default(); - builder = crate::json_deser::describe_available_patches_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeAvailablePatchesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2736,7 +1043,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeAvailablePatches { crate::error::DescribeAvailablePatchesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_available_patches_error(response) + } else { + crate::operation_deser::parse_describe_available_patches_response(response) + } } } @@ -2750,55 +1061,6 @@ impl DescribeDocument { pub fn builder() -> crate::input::describe_document_input::Builder { crate::input::describe_document_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeDocumentOutput, - crate::error::DescribeDocumentError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeDocumentError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentError { - kind: crate::error::DescribeDocumentErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDocumentError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentError { - kind: crate::error::DescribeDocumentErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDocumentError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentError { - kind: crate::error::DescribeDocumentErrorKind::InvalidDocumentVersion(body), - meta: generic, - }, - Err(e) => crate::error::DescribeDocumentError::unhandled(e), - }, - _ => crate::error::DescribeDocumentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_document_output::Builder::default(); - builder = - crate::json_deser::describe_document_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeDocumentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2809,7 +1071,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDocument { crate::error::DescribeDocumentError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_document_error(response) + } else { + crate::operation_deser::parse_describe_document_response(response) + } } } @@ -2825,60 +1091,6 @@ impl DescribeDocumentPermission { pub fn builder() -> crate::input::describe_document_permission_input::Builder { crate::input::describe_document_permission_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeDocumentPermissionOutput, - crate::error::DescribeDocumentPermissionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeDocumentPermissionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentPermissionError { kind: crate::error::DescribeDocumentPermissionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeDocumentPermissionError::unhandled(e) - } - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentPermissionError { kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidDocument(body), meta: generic }, - Err(e) => crate::error::DescribeDocumentPermissionError::unhandled(e) - } - "InvalidDocumentOperation" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentPermissionError { kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidDocumentOperation(body), meta: generic }, - Err(e) => crate::error::DescribeDocumentPermissionError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentPermissionError { kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeDocumentPermissionError::unhandled(e) - } - "InvalidPermissionType" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeDocumentPermissionError { kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidPermissionType(body), meta: generic }, - Err(e) => crate::error::DescribeDocumentPermissionError::unhandled(e) - } - _ => crate::error::DescribeDocumentPermissionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_document_permission_output::Builder::default(); - builder = crate::json_deser::describe_document_permission_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2889,7 +1101,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeDocumentPermission { crate::error::DescribeDocumentPermissionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_document_permission_error(response) + } else { + crate::operation_deser::parse_describe_document_permission_response(response) + } } } @@ -2903,55 +1119,6 @@ impl DescribeEffectiveInstanceAssociations { pub fn builder() -> crate::input::describe_effective_instance_associations_input::Builder { crate::input::describe_effective_instance_associations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEffectiveInstanceAssociationsOutput, - crate::error::DescribeEffectiveInstanceAssociationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeEffectiveInstanceAssociationsError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectiveInstanceAssociationsError { kind: crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeEffectiveInstanceAssociationsError::unhandled(e) - } - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectiveInstanceAssociationsError { kind: crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InvalidInstanceId(body), meta: generic }, - Err(e) => crate::error::DescribeEffectiveInstanceAssociationsError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectiveInstanceAssociationsError { kind: crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeEffectiveInstanceAssociationsError::unhandled(e) - } - _ => crate::error::DescribeEffectiveInstanceAssociationsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_effective_instance_associations_output::Builder::default(); - builder = crate::json_deser::describe_effective_instance_associations_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -2962,7 +1129,13 @@ impl smithy_http::response::ParseStrictResponse for DescribeEffectiveInstanceAss crate::error::DescribeEffectiveInstanceAssociationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_effective_instance_associations_error(response) + } else { + crate::operation_deser::parse_describe_effective_instance_associations_response( + response, + ) + } } } @@ -2977,59 +1150,6 @@ impl DescribeEffectivePatchesForPatchBaseline { pub fn builder() -> crate::input::describe_effective_patches_for_patch_baseline_input::Builder { crate::input::describe_effective_patches_for_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeEffectivePatchesForPatchBaselineOutput, - crate::error::DescribeEffectivePatchesForPatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectivePatchesForPatchBaselineError { kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectivePatchesForPatchBaselineError { kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled(e) - } - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectivePatchesForPatchBaselineError { kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InvalidResourceId(body), meta: generic }, - Err(e) => crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled(e) - } - "UnsupportedOperatingSystem" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeEffectivePatchesForPatchBaselineError { kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::UnsupportedOperatingSystem(body), meta: generic }, - Err(e) => crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled(e) - } - _ => crate::error::DescribeEffectivePatchesForPatchBaselineError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_effective_patches_for_patch_baseline_output::Builder::default(); - builder = crate::json_deser::describe_effective_patches_for_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3040,7 +1160,15 @@ impl smithy_http::response::ParseStrictResponse for DescribeEffectivePatchesForP crate::error::DescribeEffectivePatchesForPatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_effective_patches_for_patch_baseline_error( + response, + ) + } else { + crate::operation_deser::parse_describe_effective_patches_for_patch_baseline_response( + response, + ) + } } } @@ -3054,53 +1182,6 @@ impl DescribeInstanceAssociationsStatus { pub fn builder() -> crate::input::describe_instance_associations_status_input::Builder { crate::input::describe_instance_associations_status_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInstanceAssociationsStatusOutput, - crate::error::DescribeInstanceAssociationsStatusError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeInstanceAssociationsStatusError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceAssociationsStatusError { kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceAssociationsStatusError::unhandled(e) - } - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceAssociationsStatusError { kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InvalidInstanceId(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceAssociationsStatusError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceAssociationsStatusError { kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceAssociationsStatusError::unhandled(e) - } - _ => crate::error::DescribeInstanceAssociationsStatusError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_instance_associations_status_output::Builder::default(); - builder = crate::json_deser::describe_instance_associations_status_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3111,7 +1192,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeInstanceAssociations crate::error::DescribeInstanceAssociationsStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_instance_associations_status_error(response) + } else { + crate::operation_deser::parse_describe_instance_associations_status_response(response) + } } } @@ -3134,60 +1219,6 @@ impl DescribeInstanceInformation { pub fn builder() -> crate::input::describe_instance_information_input::Builder { crate::input::describe_instance_information_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInstanceInformationOutput, - crate::error::DescribeInstanceInformationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeInstanceInformationError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceInformationError { kind: crate::error::DescribeInstanceInformationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceInformationError::unhandled(e) - } - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceInformationError { kind: crate::error::DescribeInstanceInformationErrorKind::InvalidFilterKey(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceInformationError::unhandled(e) - } - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceInformationError { kind: crate::error::DescribeInstanceInformationErrorKind::InvalidInstanceId(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceInformationError::unhandled(e) - } - "InvalidInstanceInformationFilterValue" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceInformationError { kind: crate::error::DescribeInstanceInformationErrorKind::InvalidInstanceInformationFilterValue(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceInformationError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstanceInformationError { kind: crate::error::DescribeInstanceInformationErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeInstanceInformationError::unhandled(e) - } - _ => crate::error::DescribeInstanceInformationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_instance_information_output::Builder::default(); - builder = crate::json_deser::describe_instance_information_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInstanceInformationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3198,7 +1229,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeInstanceInformation crate::error::DescribeInstanceInformationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_instance_information_error(response) + } else { + crate::operation_deser::parse_describe_instance_information_response(response) + } } } @@ -3213,74 +1248,6 @@ impl DescribeInstancePatches { pub fn builder() -> crate::input::describe_instance_patches_input::Builder { crate::input::describe_instance_patches_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInstancePatchesOutput, - crate::error::DescribeInstancePatchesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeInstancePatchesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchesError { - kind: crate::error::DescribeInstancePatchesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchesError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchesError { - kind: crate::error::DescribeInstancePatchesErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchesError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchesError { - kind: crate::error::DescribeInstancePatchesErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchesError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchesError { - kind: crate::error::DescribeInstancePatchesErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchesError::unhandled(e), - }, - _ => crate::error::DescribeInstancePatchesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_instance_patches_output::Builder::default(); - builder = crate::json_deser::describe_instance_patches_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3291,7 +1258,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeInstancePatches { crate::error::DescribeInstancePatchesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_instance_patches_error(response) + } else { + crate::operation_deser::parse_describe_instance_patches_response(response) + } } } @@ -3305,59 +1276,6 @@ impl DescribeInstancePatchStates { pub fn builder() -> crate::input::describe_instance_patch_states_input::Builder { crate::input::describe_instance_patch_states_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInstancePatchStatesOutput, - crate::error::DescribeInstancePatchStatesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeInstancePatchStatesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchStatesError { - kind: - crate::error::DescribeInstancePatchStatesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchStatesError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchStatesError { - kind: crate::error::DescribeInstancePatchStatesErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeInstancePatchStatesError::unhandled(e), - }, - _ => crate::error::DescribeInstancePatchStatesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_instance_patch_states_output::Builder::default(); - builder = crate::json_deser::describe_instance_patch_states_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInstancePatchStatesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3368,7 +1286,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeInstancePatchStates crate::error::DescribeInstancePatchStatesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_instance_patch_states_error(response) + } else { + crate::operation_deser::parse_describe_instance_patch_states_response(response) + } } } @@ -3383,57 +1305,6 @@ impl DescribeInstancePatchStatesForPatchGroup { { crate::input::describe_instance_patch_states_for_patch_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInstancePatchStatesForPatchGroupOutput, - crate::error::DescribeInstancePatchStatesForPatchGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchStatesForPatchGroupError { kind: crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled(e) - } - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchStatesForPatchGroupError { kind: crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InvalidFilter(body), meta: generic }, - Err(e) => crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInstancePatchStatesForPatchGroupError { kind: crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled(e) - } - _ => crate::error::DescribeInstancePatchStatesForPatchGroupError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_instance_patch_states_for_patch_group_output::Builder::default( - ); - builder = - crate::json_deser::describe_instance_patch_states_for_patch_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3444,7 +1315,15 @@ impl smithy_http::response::ParseStrictResponse for DescribeInstancePatchStatesF crate::error::DescribeInstancePatchStatesForPatchGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_instance_patch_states_for_patch_group_error( + response, + ) + } else { + crate::operation_deser::parse_describe_instance_patch_states_for_patch_group_response( + response, + ) + } } } @@ -3458,52 +1337,6 @@ impl DescribeInventoryDeletions { pub fn builder() -> crate::input::describe_inventory_deletions_input::Builder { crate::input::describe_inventory_deletions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeInventoryDeletionsOutput, - crate::error::DescribeInventoryDeletionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeInventoryDeletionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInventoryDeletionsError { kind: crate::error::DescribeInventoryDeletionsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeInventoryDeletionsError::unhandled(e) - } - "InvalidDeletionIdException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInventoryDeletionsError { kind: crate::error::DescribeInventoryDeletionsErrorKind::InvalidDeletionIdError(body), meta: generic }, - Err(e) => crate::error::DescribeInventoryDeletionsError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeInventoryDeletionsError { kind: crate::error::DescribeInventoryDeletionsErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::DescribeInventoryDeletionsError::unhandled(e) - } - _ => crate::error::DescribeInventoryDeletionsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_inventory_deletions_output::Builder::default(); - builder = crate::json_deser::describe_inventory_deletions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3514,7 +1347,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeInventoryDeletions { crate::error::DescribeInventoryDeletionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_inventory_deletions_error(response) + } else { + crate::operation_deser::parse_describe_inventory_deletions_response(response) + } } } @@ -3530,45 +1367,6 @@ impl DescribeMaintenanceWindowExecutions { pub fn builder() -> crate::input::describe_maintenance_window_executions_input::Builder { crate::input::describe_maintenance_window_executions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowExecutionsOutput, - crate::error::DescribeMaintenanceWindowExecutionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowExecutionsError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowExecutionsError { kind: crate::error::DescribeMaintenanceWindowExecutionsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowExecutionsError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowExecutionsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_window_executions_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_executions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowExecutionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3579,7 +1377,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowExe crate::error::DescribeMaintenanceWindowExecutionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_executions_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_window_executions_response(response) + } } } @@ -3596,43 +1398,6 @@ impl DescribeMaintenanceWindowExecutionTaskInvocations { crate::input::describe_maintenance_window_execution_task_invocations_input::Builder::default( ) } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowExecutionTaskInvocationsOutput, - crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err( - crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled( - generic, - ), - ), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError { kind: crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError { kind: crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::generic(generic) - }); - } - #[allow(unused_mut)]let mut builder = crate::output::describe_maintenance_window_execution_task_invocations_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_execution_task_invocations_deser_operation(response.body().as_ref(), builder).map_err(crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3645,7 +1410,11 @@ impl smithy_http::response::ParseStrictResponse crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_execution_task_invocations_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_window_execution_task_invocations_response(response) + } } } @@ -3659,51 +1428,6 @@ impl DescribeMaintenanceWindowExecutionTasks { pub fn builder() -> crate::input::describe_maintenance_window_execution_tasks_input::Builder { crate::input::describe_maintenance_window_execution_tasks_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowExecutionTasksOutput, - crate::error::DescribeMaintenanceWindowExecutionTasksError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowExecutionTasksError { kind: crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowExecutionTasksError { kind: crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowExecutionTasksError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_window_execution_tasks_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_execution_tasks_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3714,7 +1438,15 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowExe crate::error::DescribeMaintenanceWindowExecutionTasksError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_execution_tasks_error( + response, + ) + } else { + crate::operation_deser::parse_describe_maintenance_window_execution_tasks_response( + response, + ) + } } } @@ -3728,50 +1460,6 @@ impl DescribeMaintenanceWindows { pub fn builder() -> crate::input::describe_maintenance_windows_input::Builder { crate::input::describe_maintenance_windows_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowsOutput, - crate::error::DescribeMaintenanceWindowsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribeMaintenanceWindowsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowsError { - kind: - crate::error::DescribeMaintenanceWindowsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribeMaintenanceWindowsError::unhandled(e), - }, - _ => crate::error::DescribeMaintenanceWindowsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_maintenance_windows_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_windows_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3782,7 +1470,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindows { crate::error::DescribeMaintenanceWindowsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_windows_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_windows_response(response) + } } } @@ -3796,49 +1488,6 @@ impl DescribeMaintenanceWindowSchedule { pub fn builder() -> crate::input::describe_maintenance_window_schedule_input::Builder { crate::input::describe_maintenance_window_schedule_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowScheduleOutput, - crate::error::DescribeMaintenanceWindowScheduleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowScheduleError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowScheduleError { kind: crate::error::DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowScheduleError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowScheduleError { kind: crate::error::DescribeMaintenanceWindowScheduleErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowScheduleError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowScheduleError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_window_schedule_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_schedule_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3849,7 +1498,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowSch crate::error::DescribeMaintenanceWindowScheduleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_schedule_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_window_schedule_response(response) + } } } @@ -3864,45 +1517,6 @@ impl DescribeMaintenanceWindowsForTarget { pub fn builder() -> crate::input::describe_maintenance_windows_for_target_input::Builder { crate::input::describe_maintenance_windows_for_target_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowsForTargetOutput, - crate::error::DescribeMaintenanceWindowsForTargetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowsForTargetError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowsForTargetError { kind: crate::error::DescribeMaintenanceWindowsForTargetErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowsForTargetError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowsForTargetError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_windows_for_target_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_windows_for_target_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowsForTargetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3913,7 +1527,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowsFo crate::error::DescribeMaintenanceWindowsForTargetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_windows_for_target_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_windows_for_target_response(response) + } } } @@ -3927,49 +1545,6 @@ impl DescribeMaintenanceWindowTargets { pub fn builder() -> crate::input::describe_maintenance_window_targets_input::Builder { crate::input::describe_maintenance_window_targets_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowTargetsOutput, - crate::error::DescribeMaintenanceWindowTargetsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowTargetsError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowTargetsError { kind: crate::error::DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowTargetsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowTargetsError { kind: crate::error::DescribeMaintenanceWindowTargetsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowTargetsError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowTargetsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_window_targets_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_targets_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -3980,7 +1555,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowTar crate::error::DescribeMaintenanceWindowTargetsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_targets_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_window_targets_response(response) + } } } @@ -4000,49 +1579,6 @@ impl DescribeMaintenanceWindowTasks { pub fn builder() -> crate::input::describe_maintenance_window_tasks_input::Builder { crate::input::describe_maintenance_window_tasks_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeMaintenanceWindowTasksOutput, - crate::error::DescribeMaintenanceWindowTasksError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DescribeMaintenanceWindowTasksError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowTasksError { kind: crate::error::DescribeMaintenanceWindowTasksErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowTasksError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeMaintenanceWindowTasksError { kind: crate::error::DescribeMaintenanceWindowTasksErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DescribeMaintenanceWindowTasksError::unhandled(e) - } - _ => crate::error::DescribeMaintenanceWindowTasksError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::describe_maintenance_window_tasks_output::Builder::default(); - builder = crate::json_deser::describe_maintenance_window_tasks_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeMaintenanceWindowTasksError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4053,7 +1589,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeMaintenanceWindowTas crate::error::DescribeMaintenanceWindowTasksError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_maintenance_window_tasks_error(response) + } else { + crate::operation_deser::parse_describe_maintenance_window_tasks_response(response) + } } } @@ -4073,43 +1613,6 @@ impl DescribeOpsItems { pub fn builder() -> crate::input::describe_ops_items_input::Builder { crate::input::describe_ops_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeOpsItemsOutput, - crate::error::DescribeOpsItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeOpsItemsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeOpsItemsError { - kind: crate::error::DescribeOpsItemsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeOpsItemsError::unhandled(e), - }, - _ => crate::error::DescribeOpsItemsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_ops_items_output::Builder::default(); - builder = crate::json_deser::describe_ops_items_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeOpsItemsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4120,7 +1623,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeOpsItems { crate::error::DescribeOpsItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_ops_items_error(response) + } else { + crate::operation_deser::parse_describe_ops_items_response(response) + } } } @@ -4142,71 +1649,6 @@ impl DescribeParameters { pub fn builder() -> crate::input::describe_parameters_input::Builder { crate::input::describe_parameters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeParametersOutput, - crate::error::DescribeParametersError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeParametersError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeParametersError { - kind: crate::error::DescribeParametersErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeParametersError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeParametersError { - kind: crate::error::DescribeParametersErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::DescribeParametersError::unhandled(e), - }, - "InvalidFilterOption" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeParametersError { - kind: crate::error::DescribeParametersErrorKind::InvalidFilterOption(body), - meta: generic, - }, - Err(e) => crate::error::DescribeParametersError::unhandled(e), - }, - "InvalidFilterValue" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeParametersError { - kind: crate::error::DescribeParametersErrorKind::InvalidFilterValue(body), - meta: generic, - }, - Err(e) => crate::error::DescribeParametersError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeParametersError { - kind: crate::error::DescribeParametersErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::DescribeParametersError::unhandled(e), - }, - _ => crate::error::DescribeParametersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_parameters_output::Builder::default(); - builder = crate::json_deser::describe_parameters_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribeParametersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4217,7 +1659,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeParameters { crate::error::DescribeParametersError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_parameters_error(response) + } else { + crate::operation_deser::parse_describe_parameters_response(response) + } } } @@ -4231,49 +1677,6 @@ impl DescribePatchBaselines { pub fn builder() -> crate::input::describe_patch_baselines_input::Builder { crate::input::describe_patch_baselines_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePatchBaselinesOutput, - crate::error::DescribePatchBaselinesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribePatchBaselinesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePatchBaselinesError { - kind: crate::error::DescribePatchBaselinesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribePatchBaselinesError::unhandled(e), - }, - _ => crate::error::DescribePatchBaselinesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_patch_baselines_output::Builder::default(); - builder = crate::json_deser::describe_patch_baselines_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePatchBaselinesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4284,7 +1687,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePatchBaselines { crate::error::DescribePatchBaselinesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_patch_baselines_error(response) + } else { + crate::operation_deser::parse_describe_patch_baselines_response(response) + } } } @@ -4298,43 +1705,6 @@ impl DescribePatchGroups { pub fn builder() -> crate::input::describe_patch_groups_input::Builder { crate::input::describe_patch_groups_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePatchGroupsOutput, - crate::error::DescribePatchGroupsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribePatchGroupsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePatchGroupsError { - kind: crate::error::DescribePatchGroupsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribePatchGroupsError::unhandled(e), - }, - _ => crate::error::DescribePatchGroupsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_patch_groups_output::Builder::default(); - builder = crate::json_deser::describe_patch_groups_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePatchGroupsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4345,7 +1715,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePatchGroups { crate::error::DescribePatchGroupsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_patch_groups_error(response) + } else { + crate::operation_deser::parse_describe_patch_groups_response(response) + } } } @@ -4359,58 +1733,6 @@ impl DescribePatchGroupState { pub fn builder() -> crate::input::describe_patch_group_state_input::Builder { crate::input::describe_patch_group_state_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePatchGroupStateOutput, - crate::error::DescribePatchGroupStateError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribePatchGroupStateError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePatchGroupStateError { - kind: crate::error::DescribePatchGroupStateErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribePatchGroupStateError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePatchGroupStateError { - kind: crate::error::DescribePatchGroupStateErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribePatchGroupStateError::unhandled(e), - }, - _ => crate::error::DescribePatchGroupStateError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_patch_group_state_output::Builder::default(); - builder = crate::json_deser::describe_patch_group_state_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePatchGroupStateError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4421,7 +1743,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePatchGroupState { crate::error::DescribePatchGroupStateError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_patch_group_state_error(response) + } else { + crate::operation_deser::parse_describe_patch_group_state_response(response) + } } } @@ -4481,49 +1807,6 @@ impl DescribePatchProperties { pub fn builder() -> crate::input::describe_patch_properties_input::Builder { crate::input::describe_patch_properties_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribePatchPropertiesOutput, - crate::error::DescribePatchPropertiesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::DescribePatchPropertiesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribePatchPropertiesError { - kind: crate::error::DescribePatchPropertiesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::DescribePatchPropertiesError::unhandled(e), - }, - _ => crate::error::DescribePatchPropertiesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_patch_properties_output::Builder::default(); - builder = crate::json_deser::describe_patch_properties_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::DescribePatchPropertiesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4534,7 +1817,11 @@ impl smithy_http::response::ParseStrictResponse for DescribePatchProperties { crate::error::DescribePatchPropertiesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_patch_properties_error(response) + } else { + crate::operation_deser::parse_describe_patch_properties_response(response) + } } } @@ -4549,55 +1836,6 @@ impl DescribeSessions { pub fn builder() -> crate::input::describe_sessions_input::Builder { crate::input::describe_sessions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DescribeSessionsOutput, - crate::error::DescribeSessionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::DescribeSessionsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSessionsError { - kind: crate::error::DescribeSessionsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::DescribeSessionsError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSessionsError { - kind: crate::error::DescribeSessionsErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::DescribeSessionsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::DescribeSessionsError { - kind: crate::error::DescribeSessionsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::DescribeSessionsError::unhandled(e), - }, - _ => crate::error::DescribeSessionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::describe_sessions_output::Builder::default(); - builder = - crate::json_deser::describe_sessions_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::DescribeSessionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4608,7 +1846,11 @@ impl smithy_http::response::ParseStrictResponse for DescribeSessions { crate::error::DescribeSessionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_describe_sessions_error(response) + } else { + crate::operation_deser::parse_describe_sessions_response(response) + } } } @@ -4624,52 +1866,6 @@ impl DisassociateOpsItemRelatedItem { pub fn builder() -> crate::input::disassociate_ops_item_related_item_input::Builder { crate::input::disassociate_ops_item_related_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::DisassociateOpsItemRelatedItemOutput, - crate::error::DisassociateOpsItemRelatedItemError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::DisassociateOpsItemRelatedItemError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateOpsItemRelatedItemError { kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::DisassociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateOpsItemRelatedItemError { kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterError(body), meta: generic }, - Err(e) => crate::error::DisassociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateOpsItemRelatedItemError { kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundError(body), meta: generic }, - Err(e) => crate::error::DisassociateOpsItemRelatedItemError::unhandled(e) - } - "OpsItemRelatedItemAssociationNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::DisassociateOpsItemRelatedItemError { kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundError(body), meta: generic }, - Err(e) => crate::error::DisassociateOpsItemRelatedItemError::unhandled(e) - } - _ => crate::error::DisassociateOpsItemRelatedItemError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::disassociate_ops_item_related_item_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4680,7 +1876,11 @@ impl smithy_http::response::ParseStrictResponse for DisassociateOpsItemRelatedIt crate::error::DisassociateOpsItemRelatedItemError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_disassociate_ops_item_related_item_error(response) + } else { + crate::operation_deser::parse_disassociate_ops_item_related_item_response(response) + } } } @@ -4694,48 +1894,6 @@ impl GetAutomationExecution { pub fn builder() -> crate::input::get_automation_execution_input::Builder { crate::input::get_automation_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetAutomationExecutionOutput, - crate::error::GetAutomationExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetAutomationExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AutomationExecutionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetAutomationExecutionError { kind: crate::error::GetAutomationExecutionErrorKind::AutomationExecutionNotFoundError(body), meta: generic }, - Err(e) => crate::error::GetAutomationExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetAutomationExecutionError { kind: crate::error::GetAutomationExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetAutomationExecutionError::unhandled(e) - } - _ => crate::error::GetAutomationExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_automation_execution_output::Builder::default(); - builder = crate::json_deser::get_automation_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetAutomationExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4746,7 +1904,11 @@ impl smithy_http::response::ParseStrictResponse for GetAutomationExecution { crate::error::GetAutomationExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_automation_execution_error(response) + } else { + crate::operation_deser::parse_get_automation_execution_response(response) + } } } @@ -4769,66 +1931,6 @@ impl GetCalendarState { pub fn builder() -> crate::input::get_calendar_state_input::Builder { crate::input::get_calendar_state_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetCalendarStateOutput, - crate::error::GetCalendarStateError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetCalendarStateError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCalendarStateError { - kind: crate::error::GetCalendarStateErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetCalendarStateError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCalendarStateError { - kind: crate::error::GetCalendarStateErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::GetCalendarStateError::unhandled(e), - }, - "InvalidDocumentType" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCalendarStateError { - kind: crate::error::GetCalendarStateErrorKind::InvalidDocumentType(body), - meta: generic, - }, - Err(e) => crate::error::GetCalendarStateError::unhandled(e), - }, - "UnsupportedCalendarException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCalendarStateError { - kind: crate::error::GetCalendarStateErrorKind::UnsupportedCalendarError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetCalendarStateError::unhandled(e), - }, - _ => crate::error::GetCalendarStateError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_calendar_state_output::Builder::default(); - builder = crate::json_deser::get_calendar_state_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetCalendarStateError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4839,7 +1941,11 @@ impl smithy_http::response::ParseStrictResponse for GetCalendarState { crate::error::GetCalendarStateError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_calendar_state_error(response) + } else { + crate::operation_deser::parse_get_calendar_state_response(response) + } } } @@ -4857,75 +1963,6 @@ impl GetCommandInvocation { pub fn builder() -> crate::input::get_command_invocation_input::Builder { crate::input::get_command_invocation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetCommandInvocationOutput, - crate::error::GetCommandInvocationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetCommandInvocationError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCommandInvocationError { - kind: crate::error::GetCommandInvocationErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetCommandInvocationError::unhandled(e), - }, - "InvalidCommandId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCommandInvocationError { - kind: crate::error::GetCommandInvocationErrorKind::InvalidCommandId(body), - meta: generic, - }, - Err(e) => crate::error::GetCommandInvocationError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCommandInvocationError { - kind: crate::error::GetCommandInvocationErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::GetCommandInvocationError::unhandled(e), - }, - "InvalidPluginName" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCommandInvocationError { - kind: crate::error::GetCommandInvocationErrorKind::InvalidPluginName(body), - meta: generic, - }, - Err(e) => crate::error::GetCommandInvocationError::unhandled(e), - }, - "InvocationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetCommandInvocationError { - kind: crate::error::GetCommandInvocationErrorKind::InvocationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetCommandInvocationError::unhandled(e), - }, - _ => crate::error::GetCommandInvocationError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_command_invocation_output::Builder::default(); - builder = crate::json_deser::get_command_invocation_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetCommandInvocationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4936,7 +1973,11 @@ impl smithy_http::response::ParseStrictResponse for GetCommandInvocation { crate::error::GetCommandInvocationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_command_invocation_error(response) + } else { + crate::operation_deser::parse_get_command_invocation_response(response) + } } } @@ -4951,43 +1992,6 @@ impl GetConnectionStatus { pub fn builder() -> crate::input::get_connection_status_input::Builder { crate::input::get_connection_status_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetConnectionStatusOutput, - crate::error::GetConnectionStatusError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetConnectionStatusError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetConnectionStatusError { - kind: crate::error::GetConnectionStatusErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetConnectionStatusError::unhandled(e), - }, - _ => crate::error::GetConnectionStatusError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_connection_status_output::Builder::default(); - builder = crate::json_deser::get_connection_status_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetConnectionStatusError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -4998,7 +2002,11 @@ impl smithy_http::response::ParseStrictResponse for GetConnectionStatus { crate::error::GetConnectionStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_connection_status_error(response) + } else { + crate::operation_deser::parse_get_connection_status_response(response) + } } } @@ -5016,49 +2024,6 @@ impl GetDefaultPatchBaseline { pub fn builder() -> crate::input::get_default_patch_baseline_input::Builder { crate::input::get_default_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetDefaultPatchBaselineOutput, - crate::error::GetDefaultPatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetDefaultPatchBaselineError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDefaultPatchBaselineError { - kind: crate::error::GetDefaultPatchBaselineErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetDefaultPatchBaselineError::unhandled(e), - }, - _ => crate::error::GetDefaultPatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_default_patch_baseline_output::Builder::default(); - builder = crate::json_deser::get_default_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetDefaultPatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5069,7 +2034,11 @@ impl smithy_http::response::ParseStrictResponse for GetDefaultPatchBaseline { crate::error::GetDefaultPatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_default_patch_baseline_error(response) + } else { + crate::operation_deser::parse_get_default_patch_baseline_response(response) + } } } @@ -5084,55 +2053,6 @@ impl GetDeployablePatchSnapshotForInstance { pub fn builder() -> crate::input::get_deployable_patch_snapshot_for_instance_input::Builder { crate::input::get_deployable_patch_snapshot_for_instance_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetDeployablePatchSnapshotForInstanceOutput, - crate::error::GetDeployablePatchSnapshotForInstanceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled( - generic, - ), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDeployablePatchSnapshotForInstanceError { kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled(e) - } - "UnsupportedFeatureRequiredException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDeployablePatchSnapshotForInstanceError { kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredError(body), meta: generic }, - Err(e) => crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled(e) - } - "UnsupportedOperatingSystem" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDeployablePatchSnapshotForInstanceError { kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedOperatingSystem(body), meta: generic }, - Err(e) => crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled(e) - } - _ => crate::error::GetDeployablePatchSnapshotForInstanceError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::get_deployable_patch_snapshot_for_instance_output::Builder::default(); - builder = crate::json_deser::get_deployable_patch_snapshot_for_instance_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5143,7 +2063,13 @@ impl smithy_http::response::ParseStrictResponse for GetDeployablePatchSnapshotFo crate::error::GetDeployablePatchSnapshotForInstanceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_deployable_patch_snapshot_for_instance_error(response) + } else { + crate::operation_deser::parse_get_deployable_patch_snapshot_for_instance_response( + response, + ) + } } } @@ -5157,52 +2083,6 @@ impl GetDocument { pub fn builder() -> crate::input::get_document_input::Builder { crate::input::get_document_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetDocumentError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDocumentError { - kind: crate::error::GetDocumentErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetDocumentError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDocumentError { - kind: crate::error::GetDocumentErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::GetDocumentError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetDocumentError { - kind: crate::error::GetDocumentErrorKind::InvalidDocumentVersion(body), - meta: generic, - }, - Err(e) => crate::error::GetDocumentError::unhandled(e), - }, - _ => crate::error::GetDocumentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_document_output::Builder::default(); - builder = - crate::json_deser::get_document_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetDocumentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5211,7 +2091,11 @@ impl smithy_http::response::ParseStrictResponse for GetDocument { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_document_error(response) + } else { + crate::operation_deser::parse_get_document_response(response) + } } } @@ -5225,83 +2109,6 @@ impl GetInventory { pub fn builder() -> crate::input::get_inventory_input::Builder { crate::input::get_inventory_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetInventoryError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidAggregatorException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidAggregatorError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidInventoryGroupException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidInventoryGroupError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidResultAttributeException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidResultAttributeError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventoryError { - kind: crate::error::GetInventoryErrorKind::InvalidTypeNameError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventoryError::unhandled(e), - }, - _ => crate::error::GetInventoryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_inventory_output::Builder::default(); - builder = - crate::json_deser::get_inventory_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetInventoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5310,7 +2117,11 @@ impl smithy_http::response::ParseStrictResponse for GetInventory { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_inventory_error(response) + } else { + crate::operation_deser::parse_get_inventory_response(response) + } } } @@ -5325,57 +2136,6 @@ impl GetInventorySchema { pub fn builder() -> crate::input::get_inventory_schema_input::Builder { crate::input::get_inventory_schema_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetInventorySchemaOutput, - crate::error::GetInventorySchemaError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetInventorySchemaError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventorySchemaError { - kind: crate::error::GetInventorySchemaErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventorySchemaError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventorySchemaError { - kind: crate::error::GetInventorySchemaErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::GetInventorySchemaError::unhandled(e), - }, - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetInventorySchemaError { - kind: crate::error::GetInventorySchemaErrorKind::InvalidTypeNameError(body), - meta: generic, - }, - Err(e) => crate::error::GetInventorySchemaError::unhandled(e), - }, - _ => crate::error::GetInventorySchemaError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_inventory_schema_output::Builder::default(); - builder = crate::json_deser::get_inventory_schema_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetInventorySchemaError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5386,7 +2146,11 @@ impl smithy_http::response::ParseStrictResponse for GetInventorySchema { crate::error::GetInventorySchemaError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_inventory_schema_error(response) + } else { + crate::operation_deser::parse_get_inventory_schema_response(response) + } } } @@ -5400,52 +2164,6 @@ impl GetMaintenanceWindow { pub fn builder() -> crate::input::get_maintenance_window_input::Builder { crate::input::get_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetMaintenanceWindowOutput, - crate::error::GetMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetMaintenanceWindowError::unhandled(generic)), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowError { - kind: crate::error::GetMaintenanceWindowErrorKind::DoesNotExistError(body), - meta: generic, - }, - Err(e) => crate::error::GetMaintenanceWindowError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowError { - kind: crate::error::GetMaintenanceWindowErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetMaintenanceWindowError::unhandled(e), - }, - _ => crate::error::GetMaintenanceWindowError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_maintenance_window_output::Builder::default(); - builder = crate::json_deser::get_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5456,7 +2174,11 @@ impl smithy_http::response::ParseStrictResponse for GetMaintenanceWindow { crate::error::GetMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_maintenance_window_error(response) + } else { + crate::operation_deser::parse_get_maintenance_window_response(response) + } } } @@ -5470,49 +2192,6 @@ impl GetMaintenanceWindowExecution { pub fn builder() -> crate::input::get_maintenance_window_execution_input::Builder { crate::input::get_maintenance_window_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetMaintenanceWindowExecutionOutput, - crate::error::GetMaintenanceWindowExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetMaintenanceWindowExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionError { kind: crate::error::GetMaintenanceWindowExecutionErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionError { kind: crate::error::GetMaintenanceWindowExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionError::unhandled(e) - } - _ => crate::error::GetMaintenanceWindowExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::get_maintenance_window_execution_output::Builder::default(); - builder = crate::json_deser::get_maintenance_window_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetMaintenanceWindowExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5523,7 +2202,11 @@ impl smithy_http::response::ParseStrictResponse for GetMaintenanceWindowExecutio crate::error::GetMaintenanceWindowExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_maintenance_window_execution_error(response) + } else { + crate::operation_deser::parse_get_maintenance_window_execution_response(response) + } } } @@ -5538,49 +2221,6 @@ impl GetMaintenanceWindowExecutionTask { pub fn builder() -> crate::input::get_maintenance_window_execution_task_input::Builder { crate::input::get_maintenance_window_execution_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetMaintenanceWindowExecutionTaskOutput, - crate::error::GetMaintenanceWindowExecutionTaskError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::GetMaintenanceWindowExecutionTaskError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionTaskError { kind: crate::error::GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionTaskError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionTaskError { kind: crate::error::GetMaintenanceWindowExecutionTaskErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionTaskError::unhandled(e) - } - _ => crate::error::GetMaintenanceWindowExecutionTaskError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::get_maintenance_window_execution_task_output::Builder::default(); - builder = crate::json_deser::get_maintenance_window_execution_task_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5591,7 +2231,11 @@ impl smithy_http::response::ParseStrictResponse for GetMaintenanceWindowExecutio crate::error::GetMaintenanceWindowExecutionTaskError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_maintenance_window_execution_task_error(response) + } else { + crate::operation_deser::parse_get_maintenance_window_execution_task_response(response) + } } } @@ -5606,49 +2250,6 @@ impl GetMaintenanceWindowExecutionTaskInvocation { { crate::input::get_maintenance_window_execution_task_invocation_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetMaintenanceWindowExecutionTaskInvocationOutput, - crate::error::GetMaintenanceWindowExecutionTaskInvocationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = - match generic.code() { - Some(code) => code, - None => return Err( - crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled( - generic, - ), - ), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionTaskInvocationError { kind: crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowExecutionTaskInvocationError { kind: crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled(e) - } - _ => crate::error::GetMaintenanceWindowExecutionTaskInvocationError::generic(generic) - }); - } - #[allow(unused_mut)]let mut builder = crate::output::get_maintenance_window_execution_task_invocation_output::Builder::default(); - builder = - crate::json_deser::get_maintenance_window_execution_task_invocation_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5659,7 +2260,15 @@ impl smithy_http::response::ParseStrictResponse for GetMaintenanceWindowExecutio crate::error::GetMaintenanceWindowExecutionTaskInvocationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_maintenance_window_execution_task_invocation_error( + response, + ) + } else { + crate::operation_deser::parse_get_maintenance_window_execution_task_invocation_response( + response, + ) + } } } @@ -5679,58 +2288,6 @@ impl GetMaintenanceWindowTask { pub fn builder() -> crate::input::get_maintenance_window_task_input::Builder { crate::input::get_maintenance_window_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetMaintenanceWindowTaskOutput, - crate::error::GetMaintenanceWindowTaskError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetMaintenanceWindowTaskError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowTaskError { - kind: crate::error::GetMaintenanceWindowTaskErrorKind::DoesNotExistError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetMaintenanceWindowTaskError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetMaintenanceWindowTaskError { - kind: crate::error::GetMaintenanceWindowTaskErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetMaintenanceWindowTaskError::unhandled(e), - }, - _ => crate::error::GetMaintenanceWindowTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_maintenance_window_task_output::Builder::default(); - builder = crate::json_deser::get_maintenance_window_task_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetMaintenanceWindowTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5741,7 +2298,11 @@ impl smithy_http::response::ParseStrictResponse for GetMaintenanceWindowTask { crate::error::GetMaintenanceWindowTaskError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_maintenance_window_task_error(response) + } else { + crate::operation_deser::parse_get_maintenance_window_task_response(response) + } } } @@ -5762,45 +2323,6 @@ impl GetOpsItem { pub fn builder() -> crate::input::get_ops_item_input::Builder { crate::input::get_ops_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetOpsItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsItemError { - kind: crate::error::GetOpsItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsItemError::unhandled(e), - }, - "OpsItemNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsItemError { - kind: crate::error::GetOpsItemErrorKind::OpsItemNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsItemError::unhandled(e), - }, - _ => crate::error::GetOpsItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_ops_item_output::Builder::default(); - builder = - crate::json_deser::get_ops_item_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetOpsItemError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5809,7 +2331,11 @@ impl smithy_http::response::ParseStrictResponse for GetOpsItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_ops_item_error(response) + } else { + crate::operation_deser::parse_get_ops_item_response(response) + } } } @@ -5823,56 +2349,6 @@ impl GetOpsMetadata { pub fn builder() -> crate::input::get_ops_metadata_input::Builder { crate::input::get_ops_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetOpsMetadataError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsMetadataError { - kind: crate::error::GetOpsMetadataErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsMetadataError::unhandled(e), - }, - "OpsMetadataInvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsMetadataError { - kind: - crate::error::GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetOpsMetadataError::unhandled(e), - }, - "OpsMetadataNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsMetadataError { - kind: crate::error::GetOpsMetadataErrorKind::OpsMetadataNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsMetadataError::unhandled(e), - }, - _ => crate::error::GetOpsMetadataError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_ops_metadata_output::Builder::default(); - builder = - crate::json_deser::get_ops_metadata_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetOpsMetadataError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5881,7 +2357,11 @@ impl smithy_http::response::ParseStrictResponse for GetOpsMetadata { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_ops_metadata_error(response) + } else { + crate::operation_deser::parse_get_ops_metadata_response(response) + } } } @@ -5895,76 +2375,6 @@ impl GetOpsSummary { pub fn builder() -> crate::input::get_ops_summary_input::Builder { crate::input::get_ops_summary_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetOpsSummaryError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - "InvalidAggregatorException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::InvalidAggregatorError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::InvalidTypeNameError(body), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - "ResourceDataSyncNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetOpsSummaryError { - kind: crate::error::GetOpsSummaryErrorKind::ResourceDataSyncNotFoundError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetOpsSummaryError::unhandled(e), - }, - _ => crate::error::GetOpsSummaryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_ops_summary_output::Builder::default(); - builder = - crate::json_deser::get_ops_summary_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetOpsSummaryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -5973,7 +2383,11 @@ impl smithy_http::response::ParseStrictResponse for GetOpsSummary { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_ops_summary_error(response) + } else { + crate::operation_deser::parse_get_ops_summary_response(response) + } } } @@ -5988,60 +2402,6 @@ impl GetParameter { pub fn builder() -> crate::input::get_parameter_input::Builder { crate::input::get_parameter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetParameterError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterError { - kind: crate::error::GetParameterErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterError::unhandled(e), - }, - "InvalidKeyId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterError { - kind: crate::error::GetParameterErrorKind::InvalidKeyId(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterError::unhandled(e), - }, - "ParameterNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterError { - kind: crate::error::GetParameterErrorKind::ParameterNotFound(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterError::unhandled(e), - }, - "ParameterVersionNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterError { - kind: crate::error::GetParameterErrorKind::ParameterVersionNotFound(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterError::unhandled(e), - }, - _ => crate::error::GetParameterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_parameter_output::Builder::default(); - builder = - crate::json_deser::get_parameter_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetParameterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6050,7 +2410,11 @@ impl smithy_http::response::ParseStrictResponse for GetParameter { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_parameter_error(response) + } else { + crate::operation_deser::parse_get_parameter_response(response) + } } } @@ -6064,64 +2428,6 @@ impl GetParameterHistory { pub fn builder() -> crate::input::get_parameter_history_input::Builder { crate::input::get_parameter_history_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetParameterHistoryOutput, - crate::error::GetParameterHistoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetParameterHistoryError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterHistoryError { - kind: crate::error::GetParameterHistoryErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterHistoryError::unhandled(e), - }, - "InvalidKeyId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterHistoryError { - kind: crate::error::GetParameterHistoryErrorKind::InvalidKeyId(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterHistoryError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterHistoryError { - kind: crate::error::GetParameterHistoryErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterHistoryError::unhandled(e), - }, - "ParameterNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParameterHistoryError { - kind: crate::error::GetParameterHistoryErrorKind::ParameterNotFound(body), - meta: generic, - }, - Err(e) => crate::error::GetParameterHistoryError::unhandled(e), - }, - _ => crate::error::GetParameterHistoryError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_parameter_history_output::Builder::default(); - builder = crate::json_deser::get_parameter_history_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetParameterHistoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6132,7 +2438,11 @@ impl smithy_http::response::ParseStrictResponse for GetParameterHistory { crate::error::GetParameterHistoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_parameter_history_error(response) + } else { + crate::operation_deser::parse_get_parameter_history_response(response) + } } } @@ -6146,46 +2456,6 @@ impl GetParameters { pub fn builder() -> crate::input::get_parameters_input::Builder { crate::input::get_parameters_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetParametersError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersError { - kind: crate::error::GetParametersErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersError::unhandled(e), - }, - "InvalidKeyId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersError { - kind: crate::error::GetParametersErrorKind::InvalidKeyId(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersError::unhandled(e), - }, - _ => crate::error::GetParametersError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_parameters_output::Builder::default(); - builder = - crate::json_deser::get_parameters_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::GetParametersError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6194,7 +2464,11 @@ impl smithy_http::response::ParseStrictResponse for GetParameters { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_parameters_error(response) + } else { + crate::operation_deser::parse_get_parameters_response(response) + } } } @@ -6216,78 +2490,6 @@ impl GetParametersByPath { pub fn builder() -> crate::input::get_parameters_by_path_input::Builder { crate::input::get_parameters_by_path_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetParametersByPathOutput, - crate::error::GetParametersByPathError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetParametersByPathError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - "InvalidFilterOption" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InvalidFilterOption(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - "InvalidFilterValue" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InvalidFilterValue(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - "InvalidKeyId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InvalidKeyId(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetParametersByPathError { - kind: crate::error::GetParametersByPathErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::GetParametersByPathError::unhandled(e), - }, - _ => crate::error::GetParametersByPathError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_parameters_by_path_output::Builder::default(); - builder = crate::json_deser::get_parameters_by_path_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetParametersByPathError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6298,7 +2500,11 @@ impl smithy_http::response::ParseStrictResponse for GetParametersByPath { crate::error::GetParametersByPathError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_parameters_by_path_error(response) + } else { + crate::operation_deser::parse_get_parameters_by_path_response(response) + } } } @@ -6312,57 +2518,6 @@ impl GetPatchBaseline { pub fn builder() -> crate::input::get_patch_baseline_input::Builder { crate::input::get_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetPatchBaselineOutput, - crate::error::GetPatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetPatchBaselineError::unhandled(generic)), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPatchBaselineError { - kind: crate::error::GetPatchBaselineErrorKind::DoesNotExistError(body), - meta: generic, - }, - Err(e) => crate::error::GetPatchBaselineError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPatchBaselineError { - kind: crate::error::GetPatchBaselineErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetPatchBaselineError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPatchBaselineError { - kind: crate::error::GetPatchBaselineErrorKind::InvalidResourceId(body), - meta: generic, - }, - Err(e) => crate::error::GetPatchBaselineError::unhandled(e), - }, - _ => crate::error::GetPatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_patch_baseline_output::Builder::default(); - builder = crate::json_deser::get_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetPatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6373,7 +2528,11 @@ impl smithy_http::response::ParseStrictResponse for GetPatchBaseline { crate::error::GetPatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_patch_baseline_error(response) + } else { + crate::operation_deser::parse_get_patch_baseline_response(response) + } } } @@ -6387,45 +2546,6 @@ impl GetPatchBaselineForPatchGroup { pub fn builder() -> crate::input::get_patch_baseline_for_patch_group_input::Builder { crate::input::get_patch_baseline_for_patch_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetPatchBaselineForPatchGroupOutput, - crate::error::GetPatchBaselineForPatchGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::GetPatchBaselineForPatchGroupError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetPatchBaselineForPatchGroupError { kind: crate::error::GetPatchBaselineForPatchGroupErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::GetPatchBaselineForPatchGroupError::unhandled(e) - } - _ => crate::error::GetPatchBaselineForPatchGroupError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::get_patch_baseline_for_patch_group_output::Builder::default(); - builder = crate::json_deser::get_patch_baseline_for_patch_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetPatchBaselineForPatchGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6436,7 +2556,11 @@ impl smithy_http::response::ParseStrictResponse for GetPatchBaselineForPatchGrou crate::error::GetPatchBaselineForPatchGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_patch_baseline_for_patch_group_error(response) + } else { + crate::operation_deser::parse_get_patch_baseline_for_patch_group_response(response) + } } } @@ -6462,52 +2586,6 @@ impl GetServiceSetting { pub fn builder() -> crate::input::get_service_setting_input::Builder { crate::input::get_service_setting_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::GetServiceSettingOutput, - crate::error::GetServiceSettingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::GetServiceSettingError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetServiceSettingError { - kind: crate::error::GetServiceSettingErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::GetServiceSettingError::unhandled(e), - }, - "ServiceSettingNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::GetServiceSettingError { - kind: crate::error::GetServiceSettingErrorKind::ServiceSettingNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::GetServiceSettingError::unhandled(e), - }, - _ => crate::error::GetServiceSettingError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::get_service_setting_output::Builder::default(); - builder = crate::json_deser::get_service_setting_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::GetServiceSettingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6518,7 +2596,11 @@ impl smithy_http::response::ParseStrictResponse for GetServiceSetting { crate::error::GetServiceSettingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_get_service_setting_error(response) + } else { + crate::operation_deser::parse_get_service_setting_response(response) + } } } @@ -6568,56 +2650,6 @@ impl LabelParameterVersion { pub fn builder() -> crate::input::label_parameter_version_input::Builder { crate::input::label_parameter_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::LabelParameterVersionOutput, - crate::error::LabelParameterVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::LabelParameterVersionError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::LabelParameterVersionError { kind: crate::error::LabelParameterVersionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::LabelParameterVersionError::unhandled(e) - } - "ParameterNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::LabelParameterVersionError { kind: crate::error::LabelParameterVersionErrorKind::ParameterNotFound(body), meta: generic }, - Err(e) => crate::error::LabelParameterVersionError::unhandled(e) - } - "ParameterVersionLabelLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::LabelParameterVersionError { kind: crate::error::LabelParameterVersionErrorKind::ParameterVersionLabelLimitExceeded(body), meta: generic }, - Err(e) => crate::error::LabelParameterVersionError::unhandled(e) - } - "ParameterVersionNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::LabelParameterVersionError { kind: crate::error::LabelParameterVersionErrorKind::ParameterVersionNotFound(body), meta: generic }, - Err(e) => crate::error::LabelParameterVersionError::unhandled(e) - } - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::LabelParameterVersionError { kind: crate::error::LabelParameterVersionErrorKind::TooManyUpdates(body), meta: generic }, - Err(e) => crate::error::LabelParameterVersionError::unhandled(e) - } - _ => crate::error::LabelParameterVersionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::label_parameter_version_output::Builder::default(); - builder = crate::json_deser::label_parameter_version_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::LabelParameterVersionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6628,7 +2660,11 @@ impl smithy_http::response::ParseStrictResponse for LabelParameterVersion { crate::error::LabelParameterVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_label_parameter_version_error(response) + } else { + crate::operation_deser::parse_label_parameter_version_response(response) + } } } @@ -6644,48 +2680,6 @@ impl ListAssociations { pub fn builder() -> crate::input::list_associations_input::Builder { crate::input::list_associations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListAssociationsOutput, - crate::error::ListAssociationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListAssociationsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationsError { - kind: crate::error::ListAssociationsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListAssociationsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationsError { - kind: crate::error::ListAssociationsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListAssociationsError::unhandled(e), - }, - _ => crate::error::ListAssociationsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_associations_output::Builder::default(); - builder = - crate::json_deser::list_associations_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListAssociationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6696,7 +2690,11 @@ impl smithy_http::response::ParseStrictResponse for ListAssociations { crate::error::ListAssociationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_associations_error(response) + } else { + crate::operation_deser::parse_list_associations_response(response) + } } } @@ -6710,68 +2708,6 @@ impl ListAssociationVersions { pub fn builder() -> crate::input::list_association_versions_input::Builder { crate::input::list_association_versions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListAssociationVersionsOutput, - crate::error::ListAssociationVersionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListAssociationVersionsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationVersionsError { - kind: - crate::error::ListAssociationVersionsErrorKind::AssociationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListAssociationVersionsError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationVersionsError { - kind: crate::error::ListAssociationVersionsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListAssociationVersionsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListAssociationVersionsError { - kind: crate::error::ListAssociationVersionsErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListAssociationVersionsError::unhandled(e), - }, - _ => crate::error::ListAssociationVersionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_association_versions_output::Builder::default(); - builder = crate::json_deser::list_association_versions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListAssociationVersionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6782,7 +2718,11 @@ impl smithy_http::response::ParseStrictResponse for ListAssociationVersions { crate::error::ListAssociationVersionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_association_versions_error(response) + } else { + crate::operation_deser::parse_list_association_versions_response(response) + } } } @@ -6799,79 +2739,6 @@ impl ListCommandInvocations { pub fn builder() -> crate::input::list_command_invocations_input::Builder { crate::input::list_command_invocations_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListCommandInvocationsOutput, - crate::error::ListCommandInvocationsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListCommandInvocationsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandInvocationsError { - kind: crate::error::ListCommandInvocationsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListCommandInvocationsError::unhandled(e), - }, - "InvalidCommandId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandInvocationsError { - kind: crate::error::ListCommandInvocationsErrorKind::InvalidCommandId(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandInvocationsError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandInvocationsError { - kind: crate::error::ListCommandInvocationsErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandInvocationsError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandInvocationsError { - kind: crate::error::ListCommandInvocationsErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListCommandInvocationsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandInvocationsError { - kind: crate::error::ListCommandInvocationsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandInvocationsError::unhandled(e), - }, - _ => crate::error::ListCommandInvocationsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_command_invocations_output::Builder::default(); - builder = crate::json_deser::list_command_invocations_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListCommandInvocationsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6882,7 +2749,11 @@ impl smithy_http::response::ParseStrictResponse for ListCommandInvocations { crate::error::ListCommandInvocationsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_command_invocations_error(response) + } else { + crate::operation_deser::parse_list_command_invocations_response(response) + } } } @@ -6896,67 +2767,6 @@ impl ListCommands { pub fn builder() -> crate::input::list_commands_input::Builder { crate::input::list_commands_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListCommandsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandsError { - kind: crate::error::ListCommandsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandsError::unhandled(e), - }, - "InvalidCommandId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandsError { - kind: crate::error::ListCommandsErrorKind::InvalidCommandId(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandsError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandsError { - kind: crate::error::ListCommandsErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandsError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandsError { - kind: crate::error::ListCommandsErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListCommandsError { - kind: crate::error::ListCommandsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListCommandsError::unhandled(e), - }, - _ => crate::error::ListCommandsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_commands_output::Builder::default(); - builder = - crate::json_deser::list_commands_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListCommandsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -6965,7 +2775,11 @@ impl smithy_http::response::ParseStrictResponse for ListCommands { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_commands_error(response) + } else { + crate::operation_deser::parse_list_commands_response(response) + } } } @@ -6981,71 +2795,6 @@ impl ListComplianceItems { pub fn builder() -> crate::input::list_compliance_items_input::Builder { crate::input::list_compliance_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListComplianceItemsOutput, - crate::error::ListComplianceItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListComplianceItemsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceItemsError { - kind: crate::error::ListComplianceItemsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceItemsError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceItemsError { - kind: crate::error::ListComplianceItemsErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceItemsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceItemsError { - kind: crate::error::ListComplianceItemsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceItemsError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceItemsError { - kind: crate::error::ListComplianceItemsErrorKind::InvalidResourceId(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceItemsError::unhandled(e), - }, - "InvalidResourceType" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceItemsError { - kind: crate::error::ListComplianceItemsErrorKind::InvalidResourceType(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceItemsError::unhandled(e), - }, - _ => crate::error::ListComplianceItemsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_compliance_items_output::Builder::default(); - builder = crate::json_deser::list_compliance_items_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListComplianceItemsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7056,7 +2805,11 @@ impl smithy_http::response::ParseStrictResponse for ListComplianceItems { crate::error::ListComplianceItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_compliance_items_error(response) + } else { + crate::operation_deser::parse_list_compliance_items_response(response) + } } } @@ -7072,65 +2825,6 @@ impl ListComplianceSummaries { pub fn builder() -> crate::input::list_compliance_summaries_input::Builder { crate::input::list_compliance_summaries_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListComplianceSummariesOutput, - crate::error::ListComplianceSummariesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListComplianceSummariesError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceSummariesError { - kind: crate::error::ListComplianceSummariesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListComplianceSummariesError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceSummariesError { - kind: crate::error::ListComplianceSummariesErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::ListComplianceSummariesError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListComplianceSummariesError { - kind: crate::error::ListComplianceSummariesErrorKind::InvalidNextToken( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListComplianceSummariesError::unhandled(e), - }, - _ => crate::error::ListComplianceSummariesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_compliance_summaries_output::Builder::default(); - builder = crate::json_deser::list_compliance_summaries_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListComplianceSummariesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7141,7 +2835,11 @@ impl smithy_http::response::ParseStrictResponse for ListComplianceSummaries { crate::error::ListComplianceSummariesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_compliance_summaries_error(response) + } else { + crate::operation_deser::parse_list_compliance_summaries_response(response) + } } } @@ -7155,56 +2853,6 @@ impl ListDocumentMetadataHistory { pub fn builder() -> crate::input::list_document_metadata_history_input::Builder { crate::input::list_document_metadata_history_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListDocumentMetadataHistoryOutput, - crate::error::ListDocumentMetadataHistoryError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListDocumentMetadataHistoryError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentMetadataHistoryError { kind: crate::error::ListDocumentMetadataHistoryErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ListDocumentMetadataHistoryError::unhandled(e) - } - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentMetadataHistoryError { kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidDocument(body), meta: generic }, - Err(e) => crate::error::ListDocumentMetadataHistoryError::unhandled(e) - } - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentMetadataHistoryError { kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidDocumentVersion(body), meta: generic }, - Err(e) => crate::error::ListDocumentMetadataHistoryError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentMetadataHistoryError { kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::ListDocumentMetadataHistoryError::unhandled(e) - } - _ => crate::error::ListDocumentMetadataHistoryError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_document_metadata_history_output::Builder::default(); - builder = crate::json_deser::list_document_metadata_history_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7215,7 +2863,11 @@ impl smithy_http::response::ParseStrictResponse for ListDocumentMetadataHistory crate::error::ListDocumentMetadataHistoryError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_document_metadata_history_error(response) + } else { + crate::operation_deser::parse_list_document_metadata_history_response(response) + } } } @@ -7230,53 +2882,6 @@ impl ListDocuments { pub fn builder() -> crate::input::list_documents_input::Builder { crate::input::list_documents_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListDocumentsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentsError { - kind: crate::error::ListDocumentsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListDocumentsError::unhandled(e), - }, - "InvalidFilterKey" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentsError { - kind: crate::error::ListDocumentsErrorKind::InvalidFilterKey(body), - meta: generic, - }, - Err(e) => crate::error::ListDocumentsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentsError { - kind: crate::error::ListDocumentsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListDocumentsError::unhandled(e), - }, - _ => crate::error::ListDocumentsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_documents_output::Builder::default(); - builder = - crate::json_deser::list_documents_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListDocumentsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7285,7 +2890,11 @@ impl smithy_http::response::ParseStrictResponse for ListDocuments { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_documents_error(response) + } else { + crate::operation_deser::parse_list_documents_response(response) + } } } @@ -7299,59 +2908,6 @@ impl ListDocumentVersions { pub fn builder() -> crate::input::list_document_versions_input::Builder { crate::input::list_document_versions_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListDocumentVersionsOutput, - crate::error::ListDocumentVersionsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListDocumentVersionsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentVersionsError { - kind: crate::error::ListDocumentVersionsErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListDocumentVersionsError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentVersionsError { - kind: crate::error::ListDocumentVersionsErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::ListDocumentVersionsError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListDocumentVersionsError { - kind: crate::error::ListDocumentVersionsErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListDocumentVersionsError::unhandled(e), - }, - _ => crate::error::ListDocumentVersionsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_document_versions_output::Builder::default(); - builder = crate::json_deser::list_document_versions_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListDocumentVersionsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7362,7 +2918,11 @@ impl smithy_http::response::ParseStrictResponse for ListDocumentVersions { crate::error::ListDocumentVersionsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_document_versions_error(response) + } else { + crate::operation_deser::parse_list_document_versions_response(response) + } } } @@ -7376,75 +2936,6 @@ impl ListInventoryEntries { pub fn builder() -> crate::input::list_inventory_entries_input::Builder { crate::input::list_inventory_entries_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListInventoryEntriesOutput, - crate::error::ListInventoryEntriesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListInventoryEntriesError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListInventoryEntriesError { - kind: crate::error::ListInventoryEntriesErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListInventoryEntriesError::unhandled(e), - }, - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListInventoryEntriesError { - kind: crate::error::ListInventoryEntriesErrorKind::InvalidFilter(body), - meta: generic, - }, - Err(e) => crate::error::ListInventoryEntriesError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListInventoryEntriesError { - kind: crate::error::ListInventoryEntriesErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::ListInventoryEntriesError::unhandled(e), - }, - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListInventoryEntriesError { - kind: crate::error::ListInventoryEntriesErrorKind::InvalidNextToken(body), - meta: generic, - }, - Err(e) => crate::error::ListInventoryEntriesError::unhandled(e), - }, - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListInventoryEntriesError { - kind: crate::error::ListInventoryEntriesErrorKind::InvalidTypeNameError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListInventoryEntriesError::unhandled(e), - }, - _ => crate::error::ListInventoryEntriesError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_inventory_entries_output::Builder::default(); - builder = crate::json_deser::list_inventory_entries_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListInventoryEntriesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7455,7 +2946,11 @@ impl smithy_http::response::ParseStrictResponse for ListInventoryEntries { crate::error::ListInventoryEntriesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_inventory_entries_error(response) + } else { + crate::operation_deser::parse_list_inventory_entries_response(response) + } } } @@ -7470,69 +2965,6 @@ impl ListOpsItemEvents { pub fn builder() -> crate::input::list_ops_item_events_input::Builder { crate::input::list_ops_item_events_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListOpsItemEventsOutput, - crate::error::ListOpsItemEventsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListOpsItemEventsError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemEventsError { - kind: crate::error::ListOpsItemEventsErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListOpsItemEventsError::unhandled(e), - }, - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemEventsError { - kind: - crate::error::ListOpsItemEventsErrorKind::OpsItemInvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListOpsItemEventsError::unhandled(e), - }, - "OpsItemLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemEventsError { - kind: crate::error::ListOpsItemEventsErrorKind::OpsItemLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListOpsItemEventsError::unhandled(e), - }, - "OpsItemNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemEventsError { - kind: crate::error::ListOpsItemEventsErrorKind::OpsItemNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::ListOpsItemEventsError::unhandled(e), - }, - _ => crate::error::ListOpsItemEventsError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_ops_item_events_output::Builder::default(); - builder = crate::json_deser::list_ops_item_events_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListOpsItemEventsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7543,7 +2975,11 @@ impl smithy_http::response::ParseStrictResponse for ListOpsItemEvents { crate::error::ListOpsItemEventsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_ops_item_events_error(response) + } else { + crate::operation_deser::parse_list_ops_item_events_response(response) + } } } @@ -7557,48 +2993,6 @@ impl ListOpsItemRelatedItems { pub fn builder() -> crate::input::list_ops_item_related_items_input::Builder { crate::input::list_ops_item_related_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListOpsItemRelatedItemsOutput, - crate::error::ListOpsItemRelatedItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ListOpsItemRelatedItemsError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemRelatedItemsError { kind: crate::error::ListOpsItemRelatedItemsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ListOpsItemRelatedItemsError::unhandled(e) - } - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsItemRelatedItemsError { kind: crate::error::ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterError(body), meta: generic }, - Err(e) => crate::error::ListOpsItemRelatedItemsError::unhandled(e) - } - _ => crate::error::ListOpsItemRelatedItemsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_ops_item_related_items_output::Builder::default(); - builder = crate::json_deser::list_ops_item_related_items_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListOpsItemRelatedItemsError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7609,7 +3003,11 @@ impl smithy_http::response::ParseStrictResponse for ListOpsItemRelatedItems { crate::error::ListOpsItemRelatedItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_ops_item_related_items_error(response) + } else { + crate::operation_deser::parse_list_ops_item_related_items_response(response) + } } } @@ -7624,49 +3022,6 @@ impl ListOpsMetadata { pub fn builder() -> crate::input::list_ops_metadata_input::Builder { crate::input::list_ops_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListOpsMetadataError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsMetadataError { - kind: crate::error::ListOpsMetadataErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListOpsMetadataError::unhandled(e), - }, - "OpsMetadataInvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListOpsMetadataError { - kind: - crate::error::ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ListOpsMetadataError::unhandled(e), - }, - _ => crate::error::ListOpsMetadataError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_ops_metadata_output::Builder::default(); - builder = - crate::json_deser::list_ops_metadata_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ListOpsMetadataError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7677,7 +3032,11 @@ impl smithy_http::response::ParseStrictResponse for ListOpsMetadata { crate::error::ListOpsMetadataError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_ops_metadata_error(response) + } else { + crate::operation_deser::parse_list_ops_metadata_response(response) + } } } @@ -7693,53 +3052,6 @@ impl ListResourceComplianceSummaries { pub fn builder() -> crate::input::list_resource_compliance_summaries_input::Builder { crate::input::list_resource_compliance_summaries_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListResourceComplianceSummariesOutput, - crate::error::ListResourceComplianceSummariesError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::ListResourceComplianceSummariesError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceComplianceSummariesError { kind: crate::error::ListResourceComplianceSummariesErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ListResourceComplianceSummariesError::unhandled(e) - } - "InvalidFilter" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceComplianceSummariesError { kind: crate::error::ListResourceComplianceSummariesErrorKind::InvalidFilter(body), meta: generic }, - Err(e) => crate::error::ListResourceComplianceSummariesError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceComplianceSummariesError { kind: crate::error::ListResourceComplianceSummariesErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::ListResourceComplianceSummariesError::unhandled(e) - } - _ => crate::error::ListResourceComplianceSummariesError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::list_resource_compliance_summaries_output::Builder::default(); - builder = crate::json_deser::list_resource_compliance_summaries_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7750,7 +3062,11 @@ impl smithy_http::response::ParseStrictResponse for ListResourceComplianceSummar crate::error::ListResourceComplianceSummariesError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_resource_compliance_summaries_error(response) + } else { + crate::operation_deser::parse_list_resource_compliance_summaries_response(response) + } } } @@ -7772,48 +3088,6 @@ impl ListResourceDataSync { pub fn builder() -> crate::input::list_resource_data_sync_input::Builder { crate::input::list_resource_data_sync_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListResourceDataSyncOutput, - crate::error::ListResourceDataSyncError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListResourceDataSyncError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceDataSyncError { kind: crate::error::ListResourceDataSyncErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::ListResourceDataSyncError::unhandled(e) - } - "InvalidNextToken" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceDataSyncError { kind: crate::error::ListResourceDataSyncErrorKind::InvalidNextToken(body), meta: generic }, - Err(e) => crate::error::ListResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListResourceDataSyncError { kind: crate::error::ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::ListResourceDataSyncError::unhandled(e) - } - _ => crate::error::ListResourceDataSyncError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_resource_data_sync_output::Builder::default(); - builder = crate::json_deser::list_resource_data_sync_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListResourceDataSyncError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7824,7 +3098,11 @@ impl smithy_http::response::ParseStrictResponse for ListResourceDataSync { crate::error::ListResourceDataSyncError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_resource_data_sync_error(response) + } else { + crate::operation_deser::parse_list_resource_data_sync_response(response) + } } } @@ -7838,57 +3116,6 @@ impl ListTagsForResource { pub fn builder() -> crate::input::list_tags_for_resource_input::Builder { crate::input::list_tags_for_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ListTagsForResourceOutput, - crate::error::ListTagsForResourceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::InvalidResourceId(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - "InvalidResourceType" => match serde_json::from_value(body) { - Ok(body) => crate::error::ListTagsForResourceError { - kind: crate::error::ListTagsForResourceErrorKind::InvalidResourceType(body), - meta: generic, - }, - Err(e) => crate::error::ListTagsForResourceError::unhandled(e), - }, - _ => crate::error::ListTagsForResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::list_tags_for_resource_output::Builder::default(); - builder = crate::json_deser::list_tags_for_resource_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ListTagsForResourceError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -7899,7 +3126,11 @@ impl smithy_http::response::ParseStrictResponse for ListTagsForResource { crate::error::ListTagsForResourceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_list_tags_for_resource_error(response) + } else { + crate::operation_deser::parse_list_tags_for_resource_response(response) + } } } @@ -7915,83 +3146,6 @@ impl ModifyDocumentPermission { pub fn builder() -> crate::input::modify_document_permission_input::Builder { crate::input::modify_document_permission_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ModifyDocumentPermissionOutput, - crate::error::ModifyDocumentPermissionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::ModifyDocumentPermissionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DocumentLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::ModifyDocumentPermissionError { - kind: - crate::error::ModifyDocumentPermissionErrorKind::DocumentLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ModifyDocumentPermissionError::unhandled(e), - }, - "DocumentPermissionLimit" => match serde_json::from_value(body) { - Ok(body) => crate::error::ModifyDocumentPermissionError { - kind: - crate::error::ModifyDocumentPermissionErrorKind::DocumentPermissionLimit( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ModifyDocumentPermissionError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ModifyDocumentPermissionError { - kind: crate::error::ModifyDocumentPermissionErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ModifyDocumentPermissionError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::ModifyDocumentPermissionError { - kind: crate::error::ModifyDocumentPermissionErrorKind::InvalidDocument( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ModifyDocumentPermissionError::unhandled(e), - }, - "InvalidPermissionType" => match serde_json::from_value(body) { - Ok(body) => crate::error::ModifyDocumentPermissionError { - kind: - crate::error::ModifyDocumentPermissionErrorKind::InvalidPermissionType( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ModifyDocumentPermissionError::unhandled(e), - }, - _ => crate::error::ModifyDocumentPermissionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::modify_document_permission_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8002,7 +3156,11 @@ impl smithy_http::response::ParseStrictResponse for ModifyDocumentPermission { crate::error::ModifyDocumentPermissionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_modify_document_permission_error(response) + } else { + crate::operation_deser::parse_modify_document_permission_response(response) + } } } @@ -8071,59 +3229,6 @@ impl PutComplianceItems { pub fn builder() -> crate::input::put_compliance_items_input::Builder { crate::input::put_compliance_items_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::PutComplianceItemsOutput, - crate::error::PutComplianceItemsError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutComplianceItemsError::unhandled(generic)), - }; - return Err(match error_code { - "ComplianceTypeCountLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "InvalidItemContentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::InvalidItemContentError(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::InvalidResourceId(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "InvalidResourceType" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::InvalidResourceType(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "ItemSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::ItemSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - "TotalSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutComplianceItemsError { kind: crate::error::PutComplianceItemsErrorKind::TotalSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutComplianceItemsError::unhandled(e) - } - _ => crate::error::PutComplianceItemsError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_compliance_items_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8134,7 +3239,11 @@ impl smithy_http::response::ParseStrictResponse for PutComplianceItems { crate::error::PutComplianceItemsError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_compliance_items_error(response) + } else { + crate::operation_deser::parse_put_compliance_items_response(response) + } } } @@ -8149,80 +3258,6 @@ impl PutInventory { pub fn builder() -> crate::input::put_inventory_input::Builder { crate::input::put_inventory_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutInventoryError::unhandled(generic)), - }; - return Err(match error_code { - "CustomSchemaCountLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::CustomSchemaCountLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::InvalidInstanceId(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "InvalidInventoryItemContextException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::InvalidInventoryItemContextError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "InvalidItemContentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::InvalidItemContentError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "InvalidTypeNameException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::InvalidTypeNameError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "ItemContentMismatchException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::ItemContentMismatchError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "ItemSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::ItemSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "SubTypeCountLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::SubTypeCountLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "TotalSizeLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::TotalSizeLimitExceededError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "UnsupportedInventoryItemContextException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::UnsupportedInventoryItemContextError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - "UnsupportedInventorySchemaVersionException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutInventoryError { kind: crate::error::PutInventoryErrorKind::UnsupportedInventorySchemaVersionError(body), meta: generic }, - Err(e) => crate::error::PutInventoryError::unhandled(e) - } - _ => crate::error::PutInventoryError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_inventory_output::Builder::default(); - builder = - crate::json_deser::put_inventory_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutInventoryError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8231,7 +3266,11 @@ impl smithy_http::response::ParseStrictResponse for PutInventory { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_inventory_error(response) + } else { + crate::operation_deser::parse_put_inventory_response(response) + } } } @@ -8245,145 +3284,6 @@ impl PutParameter { pub fn builder() -> crate::input::put_parameter_input::Builder { crate::input::put_parameter_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::PutParameterError::unhandled(generic)), - }; - return Err(match error_code { - "HierarchyLevelLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::HierarchyLevelLimitExceededError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "HierarchyTypeMismatchException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::HierarchyTypeMismatchError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "IncompatiblePolicyException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::IncompatiblePolicyError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "InvalidAllowedPatternException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::InvalidAllowedPatternError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "InvalidKeyId" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::InvalidKeyId(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "InvalidPolicyAttributeException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::InvalidPolicyAttributeError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "InvalidPolicyTypeException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::InvalidPolicyTypeError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "ParameterAlreadyExists" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::ParameterAlreadyExists(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "ParameterLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::ParameterLimitExceeded(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "ParameterMaxVersionLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::ParameterMaxVersionLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "ParameterPatternMismatchException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::ParameterPatternMismatchError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "PoliciesLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::PoliciesLimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - "UnsupportedParameterType" => match serde_json::from_value(body) { - Ok(body) => crate::error::PutParameterError { - kind: crate::error::PutParameterErrorKind::UnsupportedParameterType(body), - meta: generic, - }, - Err(e) => crate::error::PutParameterError::unhandled(e), - }, - _ => crate::error::PutParameterError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::put_parameter_output::Builder::default(); - builder = - crate::json_deser::put_parameter_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::PutParameterError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8392,7 +3292,11 @@ impl smithy_http::response::ParseStrictResponse for PutParameter { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_put_parameter_error(response) + } else { + crate::operation_deser::parse_put_parameter_response(response) + } } } @@ -8410,70 +3314,6 @@ impl RegisterDefaultPatchBaseline { pub fn builder() -> crate::input::register_default_patch_baseline_input::Builder { crate::input::register_default_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterDefaultPatchBaselineOutput, - crate::error::RegisterDefaultPatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RegisterDefaultPatchBaselineError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterDefaultPatchBaselineError { - kind: - crate::error::RegisterDefaultPatchBaselineErrorKind::DoesNotExistError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterDefaultPatchBaselineError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterDefaultPatchBaselineError { - kind: - crate::error::RegisterDefaultPatchBaselineErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterDefaultPatchBaselineError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterDefaultPatchBaselineError { - kind: - crate::error::RegisterDefaultPatchBaselineErrorKind::InvalidResourceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RegisterDefaultPatchBaselineError::unhandled(e), - }, - _ => crate::error::RegisterDefaultPatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::register_default_patch_baseline_output::Builder::default(); - builder = crate::json_deser::register_default_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterDefaultPatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8484,7 +3324,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterDefaultPatchBaseline crate::error::RegisterDefaultPatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_default_patch_baseline_error(response) + } else { + crate::operation_deser::parse_register_default_patch_baseline_response(response) + } } } @@ -8498,61 +3342,6 @@ impl RegisterPatchBaselineForPatchGroup { pub fn builder() -> crate::input::register_patch_baseline_for_patch_group_input::Builder { crate::input::register_patch_baseline_for_patch_group_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterPatchBaselineForPatchGroupOutput, - crate::error::RegisterPatchBaselineForPatchGroupError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "AlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterPatchBaselineForPatchGroupError { kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsError(body), meta: generic }, - Err(e) => crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(e) - } - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterPatchBaselineForPatchGroupError { kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterPatchBaselineForPatchGroupError { kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(e) - } - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterPatchBaselineForPatchGroupError { kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId(body), meta: generic }, - Err(e) => crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(e) - } - "ResourceLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterPatchBaselineForPatchGroupError { kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededError(body), meta: generic }, - Err(e) => crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(e) - } - _ => crate::error::RegisterPatchBaselineForPatchGroupError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::register_patch_baseline_for_patch_group_output::Builder::default(); - builder = crate::json_deser::register_patch_baseline_for_patch_group_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8563,7 +3352,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterPatchBaselineForPatc crate::error::RegisterPatchBaselineForPatchGroupError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_patch_baseline_for_patch_group_error(response) + } else { + crate::operation_deser::parse_register_patch_baseline_for_patch_group_response(response) + } } } @@ -8577,57 +3370,6 @@ impl RegisterTargetWithMaintenanceWindow { pub fn builder() -> crate::input::register_target_with_maintenance_window_input::Builder { crate::input::register_target_with_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterTargetWithMaintenanceWindowOutput, - crate::error::RegisterTargetWithMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTargetWithMaintenanceWindowError { kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(e) - } - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTargetWithMaintenanceWindowError { kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(body), meta: generic }, - Err(e) => crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTargetWithMaintenanceWindowError { kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(e) - } - "ResourceLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTargetWithMaintenanceWindowError { kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededError(body), meta: generic }, - Err(e) => crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(e) - } - _ => crate::error::RegisterTargetWithMaintenanceWindowError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::register_target_with_maintenance_window_output::Builder::default(); - builder = crate::json_deser::register_target_with_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8638,7 +3380,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterTargetWithMaintenanc crate::error::RegisterTargetWithMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_target_with_maintenance_window_error(response) + } else { + crate::operation_deser::parse_register_target_with_maintenance_window_response(response) + } } } @@ -8652,61 +3398,6 @@ impl RegisterTaskWithMaintenanceWindow { pub fn builder() -> crate::input::register_task_with_maintenance_window_input::Builder { crate::input::register_task_with_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RegisterTaskWithMaintenanceWindowOutput, - crate::error::RegisterTaskWithMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err( - crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(generic), - ) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskWithMaintenanceWindowError { kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(e) - } - "FeatureNotAvailableException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskWithMaintenanceWindowError { kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableError(body), meta: generic }, - Err(e) => crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(e) - } - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskWithMaintenanceWindowError { kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::IdempotentParameterMismatch(body), meta: generic }, - Err(e) => crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskWithMaintenanceWindowError { kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(e) - } - "ResourceLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::RegisterTaskWithMaintenanceWindowError { kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededError(body), meta: generic }, - Err(e) => crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(e) - } - _ => crate::error::RegisterTaskWithMaintenanceWindowError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::register_task_with_maintenance_window_output::Builder::default(); - builder = crate::json_deser::register_task_with_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8717,7 +3408,11 @@ impl smithy_http::response::ParseStrictResponse for RegisterTaskWithMaintenanceW crate::error::RegisterTaskWithMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_register_task_with_maintenance_window_error(response) + } else { + crate::operation_deser::parse_register_task_with_maintenance_window_response(response) + } } } @@ -8731,69 +3426,6 @@ impl RemoveTagsFromResource { pub fn builder() -> crate::input::remove_tags_from_resource_input::Builder { crate::input::remove_tags_from_resource_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::RemoveTagsFromResourceOutput, - crate::error::RemoveTagsFromResourceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::RemoveTagsFromResourceError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromResourceError { - kind: crate::error::RemoveTagsFromResourceErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromResourceError::unhandled(e), - }, - "InvalidResourceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromResourceError { - kind: crate::error::RemoveTagsFromResourceErrorKind::InvalidResourceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromResourceError::unhandled(e), - }, - "InvalidResourceType" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromResourceError { - kind: crate::error::RemoveTagsFromResourceErrorKind::InvalidResourceType( - body, - ), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromResourceError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::RemoveTagsFromResourceError { - kind: crate::error::RemoveTagsFromResourceErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::RemoveTagsFromResourceError::unhandled(e), - }, - _ => crate::error::RemoveTagsFromResourceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::remove_tags_from_resource_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8804,7 +3436,11 @@ impl smithy_http::response::ParseStrictResponse for RemoveTagsFromResource { crate::error::RemoveTagsFromResourceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_remove_tags_from_resource_error(response) + } else { + crate::operation_deser::parse_remove_tags_from_resource_response(response) + } } } @@ -8831,59 +3467,6 @@ impl ResetServiceSetting { pub fn builder() -> crate::input::reset_service_setting_input::Builder { crate::input::reset_service_setting_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::ResetServiceSettingOutput, - crate::error::ResetServiceSettingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ResetServiceSettingError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ResetServiceSettingError { - kind: crate::error::ResetServiceSettingErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ResetServiceSettingError::unhandled(e), - }, - "ServiceSettingNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::ResetServiceSettingError { - kind: crate::error::ResetServiceSettingErrorKind::ServiceSettingNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::ResetServiceSettingError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::ResetServiceSettingError { - kind: crate::error::ResetServiceSettingErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::ResetServiceSettingError::unhandled(e), - }, - _ => crate::error::ResetServiceSettingError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::reset_service_setting_output::Builder::default(); - builder = crate::json_deser::reset_service_setting_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::ResetServiceSettingError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8894,7 +3477,11 @@ impl smithy_http::response::ParseStrictResponse for ResetServiceSetting { crate::error::ResetServiceSettingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_reset_service_setting_error(response) + } else { + crate::operation_deser::parse_reset_service_setting_response(response) + } } } @@ -8913,46 +3500,6 @@ impl ResumeSession { pub fn builder() -> crate::input::resume_session_input::Builder { crate::input::resume_session_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::ResumeSessionError::unhandled(generic)), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::ResumeSessionError { - kind: crate::error::ResumeSessionErrorKind::DoesNotExistError(body), - meta: generic, - }, - Err(e) => crate::error::ResumeSessionError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::ResumeSessionError { - kind: crate::error::ResumeSessionErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::ResumeSessionError::unhandled(e), - }, - _ => crate::error::ResumeSessionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::resume_session_output::Builder::default(); - builder = - crate::json_deser::resume_session_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::ResumeSessionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -8961,7 +3508,11 @@ impl smithy_http::response::ParseStrictResponse for ResumeSession { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_resume_session_error(response) + } else { + crate::operation_deser::parse_resume_session_response(response) + } } } @@ -8976,47 +3527,6 @@ impl SendAutomationSignal { pub fn builder() -> crate::input::send_automation_signal_input::Builder { crate::input::send_automation_signal_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::SendAutomationSignalOutput, - crate::error::SendAutomationSignalError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SendAutomationSignalError::unhandled(generic)), - }; - return Err(match error_code { - "AutomationExecutionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendAutomationSignalError { kind: crate::error::SendAutomationSignalErrorKind::AutomationExecutionNotFoundError(body), meta: generic }, - Err(e) => crate::error::SendAutomationSignalError::unhandled(e) - } - "AutomationStepNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendAutomationSignalError { kind: crate::error::SendAutomationSignalErrorKind::AutomationStepNotFoundError(body), meta: generic }, - Err(e) => crate::error::SendAutomationSignalError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendAutomationSignalError { kind: crate::error::SendAutomationSignalErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::SendAutomationSignalError::unhandled(e) - } - "InvalidAutomationSignalException" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendAutomationSignalError { kind: crate::error::SendAutomationSignalErrorKind::InvalidAutomationSignalError(body), meta: generic }, - Err(e) => crate::error::SendAutomationSignalError::unhandled(e) - } - _ => crate::error::SendAutomationSignalError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::send_automation_signal_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9027,7 +3537,11 @@ impl smithy_http::response::ParseStrictResponse for SendAutomationSignal { crate::error::SendAutomationSignalError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_send_automation_signal_error(response) + } else { + crate::operation_deser::parse_send_automation_signal_response(response) + } } } @@ -9041,108 +3555,6 @@ impl SendCommand { pub fn builder() -> crate::input::send_command_input::Builder { crate::input::send_command_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::SendCommandError::unhandled(generic)), - }; - return Err(match error_code { - "DuplicateInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::DuplicateInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidDocumentVersion(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidInstanceId(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidNotificationConfig" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidNotificationConfig(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidOutputFolder" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidOutputFolder(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidParameters" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidParameters(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "InvalidRole" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::InvalidRole(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "MaxDocumentSizeExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::MaxDocumentSizeExceeded(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - "UnsupportedPlatformType" => match serde_json::from_value(body) { - Ok(body) => crate::error::SendCommandError { - kind: crate::error::SendCommandErrorKind::UnsupportedPlatformType(body), - meta: generic, - }, - Err(e) => crate::error::SendCommandError::unhandled(e), - }, - _ => crate::error::SendCommandError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::send_command_output::Builder::default(); - builder = - crate::json_deser::send_command_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::SendCommandError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9151,7 +3563,11 @@ impl smithy_http::response::ParseStrictResponse for SendCommand { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_send_command_error(response) + } else { + crate::operation_deser::parse_send_command_response(response) + } } } @@ -9166,49 +3582,6 @@ impl StartAssociationsOnce { pub fn builder() -> crate::input::start_associations_once_input::Builder { crate::input::start_associations_once_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartAssociationsOnceOutput, - crate::error::StartAssociationsOnceError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartAssociationsOnceError::unhandled(generic)), - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAssociationsOnceError { - kind: crate::error::StartAssociationsOnceErrorKind::AssociationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartAssociationsOnceError::unhandled(e), - }, - "InvalidAssociation" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAssociationsOnceError { - kind: crate::error::StartAssociationsOnceErrorKind::InvalidAssociation( - body, - ), - meta: generic, - }, - Err(e) => crate::error::StartAssociationsOnceError::unhandled(e), - }, - _ => crate::error::StartAssociationsOnceError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_associations_once_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9219,7 +3592,11 @@ impl smithy_http::response::ParseStrictResponse for StartAssociationsOnce { crate::error::StartAssociationsOnceError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_associations_once_error(response) + } else { + crate::operation_deser::parse_start_associations_once_response(response) + } } } @@ -9233,68 +3610,6 @@ impl StartAutomationExecution { pub fn builder() -> crate::input::start_automation_execution_input::Builder { crate::input::start_automation_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartAutomationExecutionOutput, - crate::error::StartAutomationExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StartAutomationExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AutomationDefinitionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundError(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "AutomationDefinitionVersionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundError(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "AutomationExecutionLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededError(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::IdempotentParameterMismatch(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "InvalidAutomationExecutionParametersException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersError(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - "InvalidTarget" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartAutomationExecutionError { kind: crate::error::StartAutomationExecutionErrorKind::InvalidTarget(body), meta: generic }, - Err(e) => crate::error::StartAutomationExecutionError::unhandled(e) - } - _ => crate::error::StartAutomationExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_automation_execution_output::Builder::default(); - builder = crate::json_deser::start_automation_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::StartAutomationExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9305,7 +3620,11 @@ impl smithy_http::response::ParseStrictResponse for StartAutomationExecution { crate::error::StartAutomationExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_automation_execution_error(response) + } else { + crate::operation_deser::parse_start_automation_execution_response(response) + } } } @@ -9321,68 +3640,6 @@ impl StartChangeRequestExecution { pub fn builder() -> crate::input::start_change_request_execution_input::Builder { crate::input::start_change_request_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StartChangeRequestExecutionOutput, - crate::error::StartChangeRequestExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StartChangeRequestExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AutomationDefinitionNotApprovedException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "AutomationDefinitionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "AutomationDefinitionVersionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "AutomationExecutionLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "IdempotentParameterMismatch" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - "InvalidAutomationExecutionParametersException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartChangeRequestExecutionError { kind: crate::error::StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersError(body), meta: generic }, - Err(e) => crate::error::StartChangeRequestExecutionError::unhandled(e) - } - _ => crate::error::StartChangeRequestExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_change_request_execution_output::Builder::default(); - builder = crate::json_deser::start_change_request_execution_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9393,7 +3650,11 @@ impl smithy_http::response::ParseStrictResponse for StartChangeRequestExecution crate::error::StartChangeRequestExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_change_request_execution_error(response) + } else { + crate::operation_deser::parse_start_change_request_execution_response(response) + } } } @@ -9416,53 +3677,6 @@ impl StartSession { pub fn builder() -> crate::input::start_session_input::Builder { crate::input::start_session_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::StartSessionError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartSessionError { - kind: crate::error::StartSessionErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::StartSessionError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartSessionError { - kind: crate::error::StartSessionErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::StartSessionError::unhandled(e), - }, - "TargetNotConnected" => match serde_json::from_value(body) { - Ok(body) => crate::error::StartSessionError { - kind: crate::error::StartSessionErrorKind::TargetNotConnected(body), - meta: generic, - }, - Err(e) => crate::error::StartSessionError::unhandled(e), - }, - _ => crate::error::StartSessionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::start_session_output::Builder::default(); - builder = - crate::json_deser::start_session_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::StartSessionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9471,7 +3685,11 @@ impl smithy_http::response::ParseStrictResponse for StartSession { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_start_session_error(response) + } else { + crate::operation_deser::parse_start_session_response(response) + } } } @@ -9485,47 +3703,6 @@ impl StopAutomationExecution { pub fn builder() -> crate::input::stop_automation_execution_input::Builder { crate::input::stop_automation_execution_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::StopAutomationExecutionOutput, - crate::error::StopAutomationExecutionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::StopAutomationExecutionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AutomationExecutionNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopAutomationExecutionError { kind: crate::error::StopAutomationExecutionErrorKind::AutomationExecutionNotFoundError(body), meta: generic }, - Err(e) => crate::error::StopAutomationExecutionError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopAutomationExecutionError { kind: crate::error::StopAutomationExecutionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::StopAutomationExecutionError::unhandled(e) - } - "InvalidAutomationStatusUpdateException" => match serde_json::from_value(body) { - Ok(body) => crate::error::StopAutomationExecutionError { kind: crate::error::StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateError(body), meta: generic }, - Err(e) => crate::error::StopAutomationExecutionError::unhandled(e) - } - _ => crate::error::StopAutomationExecutionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::stop_automation_execution_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9536,7 +3713,11 @@ impl smithy_http::response::ParseStrictResponse for StopAutomationExecution { crate::error::StopAutomationExecutionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_stop_automation_execution_error(response) + } else { + crate::operation_deser::parse_stop_automation_execution_response(response) + } } } @@ -9551,48 +3732,6 @@ impl TerminateSession { pub fn builder() -> crate::input::terminate_session_input::Builder { crate::input::terminate_session_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::TerminateSessionOutput, - crate::error::TerminateSessionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::TerminateSessionError::unhandled(generic)), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::TerminateSessionError { - kind: crate::error::TerminateSessionErrorKind::DoesNotExistError(body), - meta: generic, - }, - Err(e) => crate::error::TerminateSessionError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::TerminateSessionError { - kind: crate::error::TerminateSessionErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::TerminateSessionError::unhandled(e), - }, - _ => crate::error::TerminateSessionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::terminate_session_output::Builder::default(); - builder = - crate::json_deser::terminate_session_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::TerminateSessionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9603,7 +3742,11 @@ impl smithy_http::response::ParseStrictResponse for TerminateSession { crate::error::TerminateSessionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_terminate_session_error(response) + } else { + crate::operation_deser::parse_terminate_session_response(response) + } } } @@ -9617,75 +3760,6 @@ impl UnlabelParameterVersion { pub fn builder() -> crate::input::unlabel_parameter_version_input::Builder { crate::input::unlabel_parameter_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UnlabelParameterVersionOutput, - crate::error::UnlabelParameterVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UnlabelParameterVersionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UnlabelParameterVersionError { - kind: crate::error::UnlabelParameterVersionErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UnlabelParameterVersionError::unhandled(e), - }, - "ParameterNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UnlabelParameterVersionError { - kind: crate::error::UnlabelParameterVersionErrorKind::ParameterNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UnlabelParameterVersionError::unhandled(e), - }, - "ParameterVersionNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UnlabelParameterVersionError { - kind: - crate::error::UnlabelParameterVersionErrorKind::ParameterVersionNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UnlabelParameterVersionError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::UnlabelParameterVersionError { - kind: crate::error::UnlabelParameterVersionErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::UnlabelParameterVersionError::unhandled(e), - }, - _ => crate::error::UnlabelParameterVersionError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::unlabel_parameter_version_output::Builder::default(); - builder = crate::json_deser::unlabel_parameter_version_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9696,7 +3770,11 @@ impl smithy_http::response::ParseStrictResponse for UnlabelParameterVersion { crate::error::UnlabelParameterVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_unlabel_parameter_version_error(response) + } else { + crate::operation_deser::parse_unlabel_parameter_version_response(response) + } } } @@ -9722,84 +3800,6 @@ impl UpdateAssociation { pub fn builder() -> crate::input::update_association_input::Builder { crate::input::update_association_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateAssociationOutput, - crate::error::UpdateAssociationError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateAssociationError::unhandled(generic)), - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::AssociationDoesNotExist(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "AssociationVersionLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::AssociationVersionLimitExceeded(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidAssociationVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidAssociationVersion(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidDocument(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidDocumentVersion(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidOutputLocation" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidOutputLocation(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidParameters" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidParameters(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidSchedule" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidSchedule(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidTarget" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidTarget(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "InvalidUpdate" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::InvalidUpdate(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationError { kind: crate::error::UpdateAssociationErrorKind::TooManyUpdates(body), meta: generic }, - Err(e) => crate::error::UpdateAssociationError::unhandled(e) - } - _ => crate::error::UpdateAssociationError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_association_output::Builder::default(); - builder = crate::json_deser::update_association_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateAssociationError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9810,7 +3810,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateAssociation { crate::error::UpdateAssociationError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_association_error(response) + } else { + crate::operation_deser::parse_update_association_response(response) + } } } @@ -9824,89 +3828,6 @@ impl UpdateAssociationStatus { pub fn builder() -> crate::input::update_association_status_input::Builder { crate::input::update_association_status_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateAssociationStatusOutput, - crate::error::UpdateAssociationStatusError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateAssociationStatusError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "AssociationDoesNotExist" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: - crate::error::UpdateAssociationStatusErrorKind::AssociationDoesNotExist( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: crate::error::UpdateAssociationStatusErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: crate::error::UpdateAssociationStatusErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: crate::error::UpdateAssociationStatusErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - "StatusUnchanged" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: crate::error::UpdateAssociationStatusErrorKind::StatusUnchanged(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateAssociationStatusError { - kind: crate::error::UpdateAssociationStatusErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::UpdateAssociationStatusError::unhandled(e), - }, - _ => crate::error::UpdateAssociationStatusError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_association_status_output::Builder::default(); - builder = crate::json_deser::update_association_status_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -9917,7 +3838,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateAssociationStatus { crate::error::UpdateAssociationStatusError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_association_status_error(response) + } else { + crate::operation_deser::parse_update_association_status_response(response) + } } } @@ -9931,108 +3856,6 @@ impl UpdateDocument { pub fn builder() -> crate::input::update_document_input::Builder { crate::input::update_document_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateDocumentError::unhandled(generic)), - }; - return Err(match error_code { - "DocumentVersionLimitExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::DocumentVersionLimitExceeded( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "DuplicateDocumentContent" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::DuplicateDocumentContent(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "DuplicateDocumentVersionName" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::DuplicateDocumentVersionName( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InvalidDocumentContent" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentContent(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InvalidDocumentOperation" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentOperation(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InvalidDocumentSchemaVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentSchemaVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentVersion(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - "MaxDocumentSizeExceeded" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentError { - kind: crate::error::UpdateDocumentErrorKind::MaxDocumentSizeExceeded(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentError::unhandled(e), - }, - _ => crate::error::UpdateDocumentError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_document_output::Builder::default(); - builder = - crate::json_deser::update_document_deser_operation(response.body().as_ref(), builder) - .map_err(crate::error::UpdateDocumentError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10041,7 +3864,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDocument { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_document_error(response) + } else { + crate::operation_deser::parse_update_document_response(response) + } } } @@ -10055,56 +3882,6 @@ impl UpdateDocumentDefaultVersion { pub fn builder() -> crate::input::update_document_default_version_input::Builder { crate::input::update_document_default_version_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateDocumentDefaultVersionOutput, - crate::error::UpdateDocumentDefaultVersionError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateDocumentDefaultVersionError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentDefaultVersionError { kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateDocumentDefaultVersionError::unhandled(e) - } - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentDefaultVersionError { kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocument(body), meta: generic }, - Err(e) => crate::error::UpdateDocumentDefaultVersionError::unhandled(e) - } - "InvalidDocumentSchemaVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentDefaultVersionError { kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocumentSchemaVersion(body), meta: generic }, - Err(e) => crate::error::UpdateDocumentDefaultVersionError::unhandled(e) - } - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentDefaultVersionError { kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocumentVersion(body), meta: generic }, - Err(e) => crate::error::UpdateDocumentDefaultVersionError::unhandled(e) - } - _ => crate::error::UpdateDocumentDefaultVersionError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_document_default_version_output::Builder::default(); - builder = crate::json_deser::update_document_default_version_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10115,7 +3892,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDocumentDefaultVersion crate::error::UpdateDocumentDefaultVersionError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_document_default_version_error(response) + } else { + crate::operation_deser::parse_update_document_default_version_response(response) + } } } @@ -10129,70 +3910,6 @@ impl UpdateDocumentMetadata { pub fn builder() -> crate::input::update_document_metadata_input::Builder { crate::input::update_document_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateDocumentMetadataOutput, - crate::error::UpdateDocumentMetadataError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateDocumentMetadataError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentMetadataError { - kind: crate::error::UpdateDocumentMetadataErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentMetadataError::unhandled(e), - }, - "InvalidDocument" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentMetadataError { - kind: crate::error::UpdateDocumentMetadataErrorKind::InvalidDocument(body), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentMetadataError::unhandled(e), - }, - "InvalidDocumentOperation" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentMetadataError { - kind: - crate::error::UpdateDocumentMetadataErrorKind::InvalidDocumentOperation( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentMetadataError::unhandled(e), - }, - "InvalidDocumentVersion" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateDocumentMetadataError { - kind: crate::error::UpdateDocumentMetadataErrorKind::InvalidDocumentVersion( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateDocumentMetadataError::unhandled(e), - }, - _ => crate::error::UpdateDocumentMetadataError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_document_metadata_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10203,7 +3920,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateDocumentMetadata { crate::error::UpdateDocumentMetadataError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_document_metadata_error(response) + } else { + crate::operation_deser::parse_update_document_metadata_response(response) + } } } @@ -10225,58 +3946,6 @@ impl UpdateMaintenanceWindow { pub fn builder() -> crate::input::update_maintenance_window_input::Builder { crate::input::update_maintenance_window_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateMaintenanceWindowOutput, - crate::error::UpdateMaintenanceWindowError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateMaintenanceWindowError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowError { - kind: crate::error::UpdateMaintenanceWindowErrorKind::DoesNotExistError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMaintenanceWindowError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowError { - kind: crate::error::UpdateMaintenanceWindowErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMaintenanceWindowError::unhandled(e), - }, - _ => crate::error::UpdateMaintenanceWindowError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_maintenance_window_output::Builder::default(); - builder = crate::json_deser::update_maintenance_window_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateMaintenanceWindowError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10287,7 +3956,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateMaintenanceWindow { crate::error::UpdateMaintenanceWindowError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_maintenance_window_error(response) + } else { + crate::operation_deser::parse_update_maintenance_window_response(response) + } } } @@ -10326,49 +3999,6 @@ impl UpdateMaintenanceWindowTarget { pub fn builder() -> crate::input::update_maintenance_window_target_input::Builder { crate::input::update_maintenance_window_target_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateMaintenanceWindowTargetOutput, - crate::error::UpdateMaintenanceWindowTargetError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateMaintenanceWindowTargetError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowTargetError { kind: crate::error::UpdateMaintenanceWindowTargetErrorKind::DoesNotExistError(body), meta: generic }, - Err(e) => crate::error::UpdateMaintenanceWindowTargetError::unhandled(e) - } - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowTargetError { kind: crate::error::UpdateMaintenanceWindowTargetErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateMaintenanceWindowTargetError::unhandled(e) - } - _ => crate::error::UpdateMaintenanceWindowTargetError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = - crate::output::update_maintenance_window_target_output::Builder::default(); - builder = crate::json_deser::update_maintenance_window_target_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateMaintenanceWindowTargetError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10379,7 +4009,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateMaintenanceWindowTarge crate::error::UpdateMaintenanceWindowTargetError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_maintenance_window_target_error(response) + } else { + crate::operation_deser::parse_update_maintenance_window_target_response(response) + } } } @@ -10437,59 +4071,6 @@ impl UpdateMaintenanceWindowTask { pub fn builder() -> crate::input::update_maintenance_window_task_input::Builder { crate::input::update_maintenance_window_task_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateMaintenanceWindowTaskOutput, - crate::error::UpdateMaintenanceWindowTaskError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateMaintenanceWindowTaskError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowTaskError { - kind: crate::error::UpdateMaintenanceWindowTaskErrorKind::DoesNotExistError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMaintenanceWindowTaskError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateMaintenanceWindowTaskError { - kind: - crate::error::UpdateMaintenanceWindowTaskErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateMaintenanceWindowTaskError::unhandled(e), - }, - _ => crate::error::UpdateMaintenanceWindowTaskError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_maintenance_window_task_output::Builder::default(); - builder = crate::json_deser::update_maintenance_window_task_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateMaintenanceWindowTaskError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10500,7 +4081,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateMaintenanceWindowTask crate::error::UpdateMaintenanceWindowTaskError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_maintenance_window_task_error(response) + } else { + crate::operation_deser::parse_update_maintenance_window_task_response(response) + } } } @@ -10516,53 +4101,6 @@ impl UpdateManagedInstanceRole { pub fn builder() -> crate::input::update_managed_instance_role_input::Builder { crate::input::update_managed_instance_role_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateManagedInstanceRoleOutput, - crate::error::UpdateManagedInstanceRoleError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateManagedInstanceRoleError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateManagedInstanceRoleError { - kind: crate::error::UpdateManagedInstanceRoleErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateManagedInstanceRoleError::unhandled(e), - }, - "InvalidInstanceId" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateManagedInstanceRoleError { - kind: crate::error::UpdateManagedInstanceRoleErrorKind::InvalidInstanceId( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateManagedInstanceRoleError::unhandled(e), - }, - _ => crate::error::UpdateManagedInstanceRoleError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_managed_instance_role_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10573,7 +4111,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateManagedInstanceRole { crate::error::UpdateManagedInstanceRoleError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_managed_instance_role_error(response) + } else { + crate::operation_deser::parse_update_managed_instance_role_response(response) + } } } @@ -10593,66 +4135,6 @@ impl UpdateOpsItem { pub fn builder() -> crate::input::update_ops_item_input::Builder { crate::input::update_ops_item_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result - { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateOpsItemError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsItemError { - kind: crate::error::UpdateOpsItemErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateOpsItemError::unhandled(e), - }, - "OpsItemAlreadyExistsException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsItemError { - kind: crate::error::UpdateOpsItemErrorKind::OpsItemAlreadyExistsError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateOpsItemError::unhandled(e), - }, - "OpsItemInvalidParameterException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsItemError { - kind: crate::error::UpdateOpsItemErrorKind::OpsItemInvalidParameterError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateOpsItemError::unhandled(e), - }, - "OpsItemLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsItemError { - kind: crate::error::UpdateOpsItemErrorKind::OpsItemLimitExceededError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateOpsItemError::unhandled(e), - }, - "OpsItemNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsItemError { - kind: crate::error::UpdateOpsItemErrorKind::OpsItemNotFoundError(body), - meta: generic, - }, - Err(e) => crate::error::UpdateOpsItemError::unhandled(e), - }, - _ => crate::error::UpdateOpsItemError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_ops_item_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10661,7 +4143,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateOpsItem { type Output = std::result::Result; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_ops_item_error(response) + } else { + crate::operation_deser::parse_update_ops_item_response(response) + } } } @@ -10675,56 +4161,6 @@ impl UpdateOpsMetadata { pub fn builder() -> crate::input::update_ops_metadata_input::Builder { crate::input::update_ops_metadata_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateOpsMetadataOutput, - crate::error::UpdateOpsMetadataError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateOpsMetadataError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsMetadataError { kind: crate::error::UpdateOpsMetadataErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateOpsMetadataError::unhandled(e) - } - "OpsMetadataInvalidArgumentException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsMetadataError { kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentError(body), meta: generic }, - Err(e) => crate::error::UpdateOpsMetadataError::unhandled(e) - } - "OpsMetadataKeyLimitExceededException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsMetadataError { kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededError(body), meta: generic }, - Err(e) => crate::error::UpdateOpsMetadataError::unhandled(e) - } - "OpsMetadataNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsMetadataError { kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateOpsMetadataError::unhandled(e) - } - "OpsMetadataTooManyUpdatesException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateOpsMetadataError { kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesError(body), meta: generic }, - Err(e) => crate::error::UpdateOpsMetadataError::unhandled(e) - } - _ => crate::error::UpdateOpsMetadataError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_ops_metadata_output::Builder::default(); - builder = crate::json_deser::update_ops_metadata_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdateOpsMetadataError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10735,7 +4171,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateOpsMetadata { crate::error::UpdateOpsMetadataError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_ops_metadata_error(response) + } else { + crate::operation_deser::parse_update_ops_metadata_response(response) + } } } @@ -10754,50 +4194,6 @@ impl UpdatePatchBaseline { pub fn builder() -> crate::input::update_patch_baseline_input::Builder { crate::input::update_patch_baseline_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdatePatchBaselineOutput, - crate::error::UpdatePatchBaselineError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdatePatchBaselineError::unhandled(generic)), - }; - return Err(match error_code { - "DoesNotExistException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdatePatchBaselineError { - kind: crate::error::UpdatePatchBaselineErrorKind::DoesNotExistError(body), - meta: generic, - }, - Err(e) => crate::error::UpdatePatchBaselineError::unhandled(e), - }, - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdatePatchBaselineError { - kind: crate::error::UpdatePatchBaselineErrorKind::InternalServerError(body), - meta: generic, - }, - Err(e) => crate::error::UpdatePatchBaselineError::unhandled(e), - }, - _ => crate::error::UpdatePatchBaselineError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_patch_baseline_output::Builder::default(); - builder = crate::json_deser::update_patch_baseline_deser_operation( - response.body().as_ref(), - builder, - ) - .map_err(crate::error::UpdatePatchBaselineError::unhandled)?; - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10808,7 +4204,11 @@ impl smithy_http::response::ParseStrictResponse for UpdatePatchBaseline { crate::error::UpdatePatchBaselineError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_patch_baseline_error(response) + } else { + crate::operation_deser::parse_update_patch_baseline_response(response) + } } } @@ -10830,51 +4230,6 @@ impl UpdateResourceDataSync { pub fn builder() -> crate::input::update_resource_data_sync_input::Builder { crate::input::update_resource_data_sync_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateResourceDataSyncOutput, - crate::error::UpdateResourceDataSyncError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => { - return Err(crate::error::UpdateResourceDataSyncError::unhandled( - generic, - )) - } - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateResourceDataSyncError { kind: crate::error::UpdateResourceDataSyncErrorKind::InternalServerError(body), meta: generic }, - Err(e) => crate::error::UpdateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncConflictException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateResourceDataSyncError { kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictError(body), meta: generic }, - Err(e) => crate::error::UpdateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncInvalidConfigurationException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateResourceDataSyncError { kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationError(body), meta: generic }, - Err(e) => crate::error::UpdateResourceDataSyncError::unhandled(e) - } - "ResourceDataSyncNotFoundException" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateResourceDataSyncError { kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundError(body), meta: generic }, - Err(e) => crate::error::UpdateResourceDataSyncError::unhandled(e) - } - _ => crate::error::UpdateResourceDataSyncError::generic(generic) - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_resource_data_sync_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10885,7 +4240,11 @@ impl smithy_http::response::ParseStrictResponse for UpdateResourceDataSync { crate::error::UpdateResourceDataSyncError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_resource_data_sync_error(response) + } else { + crate::operation_deser::parse_update_resource_data_sync_response(response) + } } } @@ -10911,56 +4270,6 @@ impl UpdateServiceSetting { pub fn builder() -> crate::input::update_service_setting_input::Builder { crate::input::update_service_setting_input::Builder::default() } - #[allow(clippy::unnecessary_wraps)] - #[allow(dead_code)] - fn parse_response( - &self, - response: &http::response::Response, - ) -> std::result::Result< - crate::output::UpdateServiceSettingOutput, - crate::error::UpdateServiceSettingError, - > { - if crate::aws_json_errors::is_error(&response) { - let body = serde_json::from_slice(response.body().as_ref()) - .unwrap_or_else(|_| serde_json::json!({})); - let generic = crate::aws_json_errors::parse_generic_error(&response, &body); - let error_code = match generic.code() { - Some(code) => code, - None => return Err(crate::error::UpdateServiceSettingError::unhandled(generic)), - }; - return Err(match error_code { - "InternalServerError" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceSettingError { - kind: crate::error::UpdateServiceSettingErrorKind::InternalServerError( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateServiceSettingError::unhandled(e), - }, - "ServiceSettingNotFound" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceSettingError { - kind: crate::error::UpdateServiceSettingErrorKind::ServiceSettingNotFound( - body, - ), - meta: generic, - }, - Err(e) => crate::error::UpdateServiceSettingError::unhandled(e), - }, - "TooManyUpdates" => match serde_json::from_value(body) { - Ok(body) => crate::error::UpdateServiceSettingError { - kind: crate::error::UpdateServiceSettingErrorKind::TooManyUpdates(body), - meta: generic, - }, - Err(e) => crate::error::UpdateServiceSettingError::unhandled(e), - }, - _ => crate::error::UpdateServiceSettingError::generic(generic), - }); - } - #[allow(unused_mut)] - let mut builder = crate::output::update_service_setting_output::Builder::default(); - Ok(builder.build()) - } pub fn new() -> Self { Self { _private: () } } @@ -10971,6 +4280,10 @@ impl smithy_http::response::ParseStrictResponse for UpdateServiceSetting { crate::error::UpdateServiceSettingError, >; fn parse(&self, response: &http::Response) -> Self::Output { - self.parse_response(response) + if !response.status().is_success() && response.status().as_u16() != 200 { + crate::operation_deser::parse_update_service_setting_error(response) + } else { + crate::operation_deser::parse_update_service_setting_response(response) + } } } diff --git a/sdk/ssm/src/operation_deser.rs b/sdk/ssm/src/operation_deser.rs new file mode 100644 index 000000000000..86b1e42f000d --- /dev/null +++ b/sdk/ssm/src/operation_deser.rs @@ -0,0 +1,11062 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_to_resource_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AddTagsToResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::AddTagsToResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::AddTagsToResourceError { + meta: generic, + kind: crate::error::AddTagsToResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToResourceError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::AddTagsToResourceError { + meta: generic, + kind: crate::error::AddTagsToResourceErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidResourceType" => crate::error::AddTagsToResourceError { + meta: generic, + kind: crate::error::AddTagsToResourceErrorKind::InvalidResourceType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_type::Builder::default(); + let _ = response; + output.build() + }), + }, + "TooManyTagsError" => crate::error::AddTagsToResourceError { + meta: generic, + kind: crate::error::AddTagsToResourceErrorKind::TooManyTagsError({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_tags_error::Builder::default(); + let _ = response; + output.build() + }), + }, + "TooManyUpdates" => crate::error::AddTagsToResourceError { + meta: generic, + kind: crate::error::AddTagsToResourceErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AddTagsToResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::AddTagsToResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_add_tags_to_resource_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::add_tags_to_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_ops_item_related_item_error( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateOpsItemRelatedItemOutput, + crate::error::AssociateOpsItemRelatedItemError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::AssociateOpsItemRelatedItemError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::AssociateOpsItemRelatedItemError { meta: generic, kind: crate::error::AssociateOpsItemRelatedItemErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemInvalidParameterException" => crate::error::AssociateOpsItemRelatedItemError { meta: generic, kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemLimitExceededException" => crate::error::AssociateOpsItemRelatedItemError { meta: generic, kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemNotFoundException" => crate::error::AssociateOpsItemRelatedItemError { meta: generic, kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemRelatedItemAlreadyExistsException" => crate::error::AssociateOpsItemRelatedItemError { meta: generic, kind: crate::error::AssociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_related_item_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_related_item_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + _ => crate::error::AssociateOpsItemRelatedItemError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_associate_ops_item_related_item_response( + response: &http::Response, +) -> std::result::Result< + crate::output::AssociateOpsItemRelatedItemOutput, + crate::error::AssociateOpsItemRelatedItemError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::associate_ops_item_related_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_associate_ops_item_related_item( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssociateOpsItemRelatedItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_command_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CancelCommandError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CancelCommandError::unhandled(generic)), + }; + Err(match error_code { + "DuplicateInstanceId" => crate::error::CancelCommandError { + meta: generic, + kind: crate::error::CancelCommandErrorKind::DuplicateInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_instance_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InternalServerError" => crate::error::CancelCommandError { + meta: generic, + kind: crate::error::CancelCommandErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelCommandError::unhandled)?; + output.build() + }), + }, + "InvalidCommandId" => crate::error::CancelCommandError { + meta: generic, + kind: crate::error::CancelCommandErrorKind::InvalidCommandId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_command_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::CancelCommandError { + meta: generic, + kind: crate::error::CancelCommandErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelCommandError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CancelCommandError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_command_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::cancel_command_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_maintenance_window_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CancelMaintenanceWindowExecutionOutput, + crate::error::CancelMaintenanceWindowExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CancelMaintenanceWindowExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CancelMaintenanceWindowExecutionError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::CancelMaintenanceWindowExecutionError { + meta: generic, + kind: crate::error::CancelMaintenanceWindowExecutionErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelMaintenanceWindowExecutionError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CancelMaintenanceWindowExecutionError { + meta: generic, + kind: crate::error::CancelMaintenanceWindowExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelMaintenanceWindowExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CancelMaintenanceWindowExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_cancel_maintenance_window_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CancelMaintenanceWindowExecutionOutput, + crate::error::CancelMaintenanceWindowExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::cancel_maintenance_window_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_cancel_maintenance_window_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CancelMaintenanceWindowExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_activation_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateActivationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateActivationError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::CreateActivationError { + meta: generic, + kind: crate::error::CreateActivationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateActivationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateActivationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_activation_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_activation_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_activation(response.body().as_ref(), output) + .map_err(crate::error::CreateActivationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_association_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateAssociationError::unhandled(generic)), + }; + Err(match error_code { + "AssociationAlreadyExists" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::AssociationAlreadyExists({ + #[allow(unused_mut)] + let mut output = crate::error::association_already_exists::Builder::default(); + let _ = response; + output.build() + }), + }, + "AssociationLimitExceeded" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::AssociationLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::association_limit_exceeded::Builder::default(); + let _ = response; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidOutputLocation" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidOutputLocation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_output_location::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidParameters" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidParameters({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameters::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parametersjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidSchedule" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidSchedule({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_schedule::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_schedulejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidTarget" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::InvalidTarget({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_target::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_targetjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + "UnsupportedPlatformType" => crate::error::CreateAssociationError { + meta: generic, + kind: crate::error::CreateAssociationErrorKind::UnsupportedPlatformType({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_platform_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_platform_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_association_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_association_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_association(response.body().as_ref(), output) + .map_err(crate::error::CreateAssociationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_association_batch_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateAssociationBatchOutput, + crate::error::CreateAssociationBatchError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateAssociationBatchError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AssociationLimitExceeded" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::AssociationLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::association_limit_exceeded::Builder::default(); + let _ = response; + output.build() + }), + }, + "DuplicateInstanceId" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::DuplicateInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_instance_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidOutputLocation" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidOutputLocation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_output_location::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidParameters" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidParameters({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameters::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parametersjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidSchedule" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidSchedule({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_schedule::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_schedulejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "InvalidTarget" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::InvalidTarget({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_target::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_targetjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + "UnsupportedPlatformType" => crate::error::CreateAssociationBatchError { + meta: generic, + kind: crate::error::CreateAssociationBatchErrorKind::UnsupportedPlatformType({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_platform_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_platform_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateAssociationBatchError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_association_batch_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateAssociationBatchOutput, + crate::error::CreateAssociationBatchError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_association_batch_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_association_batch( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateAssociationBatchError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_document_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateDocumentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateDocumentError::unhandled(generic)), + }; + Err(match error_code { + "DocumentAlreadyExists" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::DocumentAlreadyExists({ + #[allow(unused_mut)] + let mut output = crate::error::document_already_exists::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_document_already_existsjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + "DocumentLimitExceeded" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::DocumentLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::document_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_document_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentContent" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::InvalidDocumentContent({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_content::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_contentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentSchemaVersion" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::InvalidDocumentSchemaVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_schema_version::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_document_schema_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + "MaxDocumentSizeExceeded" => crate::error::CreateDocumentError { + meta: generic, + kind: crate::error::CreateDocumentErrorKind::MaxDocumentSizeExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::max_document_size_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_max_document_size_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateDocumentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_document_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_document_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_document(response.body().as_ref(), output) + .map_err(crate::error::CreateDocumentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateMaintenanceWindowOutput, + crate::error::CreateMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateMaintenanceWindowError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "IdempotentParameterMismatch" => crate::error::CreateMaintenanceWindowError { + meta: generic, + kind: crate::error::CreateMaintenanceWindowErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)] + let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CreateMaintenanceWindowError { + meta: generic, + kind: crate::error::CreateMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceededException" => { + crate::error::CreateMaintenanceWindowError { + meta: generic, + kind: + crate::error::CreateMaintenanceWindowErrorKind::ResourceLimitExceededException( + { + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::CreateMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateMaintenanceWindowOutput, + crate::error::CreateMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_ops_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateOpsItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateOpsItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::CreateOpsItemError { + meta: generic, + kind: crate::error::CreateOpsItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOpsItemError::unhandled)?; + output.build() + }), + }, + "OpsItemAlreadyExistsException" => { + crate::error::CreateOpsItemError { + meta: generic, + kind: crate::error::CreateOpsItemErrorKind::OpsItemAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsItemError::unhandled)?; + output.build() + }), + } + } + "OpsItemInvalidParameterException" => crate::error::CreateOpsItemError { + meta: generic, + kind: crate::error::CreateOpsItemErrorKind::OpsItemInvalidParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsItemError::unhandled)?; + output.build() + }), + }, + "OpsItemLimitExceededException" => { + crate::error::CreateOpsItemError { + meta: generic, + kind: crate::error::CreateOpsItemErrorKind::OpsItemLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsItemError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::CreateOpsItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_ops_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_ops_item_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_create_ops_item(response.body().as_ref(), output) + .map_err(crate::error::CreateOpsItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_ops_metadata_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateOpsMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreateOpsMetadataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::CreateOpsMetadataError { + meta: generic, + kind: crate::error::CreateOpsMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataAlreadyExistsException" => crate::error::CreateOpsMetadataError { + meta: generic, + kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataInvalidArgumentException" => crate::error::CreateOpsMetadataError { + meta: generic, + kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_invalid_argument_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataLimitExceededException" => crate::error::CreateOpsMetadataError { + meta: generic, + kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataTooManyUpdatesException" => crate::error::CreateOpsMetadataError { + meta: generic, + kind: crate::error::CreateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_too_many_updates_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_too_many_updates_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }), + }, + _ => crate::error::CreateOpsMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_ops_metadata_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_ops_metadata_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_ops_metadata( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreateOpsMetadataError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePatchBaselineOutput, + crate::error::CreatePatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreatePatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::CreatePatchBaselineError::unhandled(generic)), + }; + Err(match error_code { + "IdempotentParameterMismatch" => crate::error::CreatePatchBaselineError { + meta: generic, + kind: crate::error::CreatePatchBaselineErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)] + let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePatchBaselineError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::CreatePatchBaselineError { + meta: generic, + kind: crate::error::CreatePatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePatchBaselineError::unhandled)?; + output.build() + }), + }, + "ResourceLimitExceededException" => { + crate::error::CreatePatchBaselineError { + meta: generic, + kind: crate::error::CreatePatchBaselineErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreatePatchBaselineError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::CreatePatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreatePatchBaselineOutput, + crate::error::CreatePatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_create_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::CreatePatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_resource_data_sync_error( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateResourceDataSyncOutput, + crate::error::CreateResourceDataSyncError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::CreateResourceDataSyncError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::CreateResourceDataSyncError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::CreateResourceDataSyncError { meta: generic, kind: crate::error::CreateResourceDataSyncErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::CreateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncAlreadyExistsException" => crate::error::CreateResourceDataSyncError { meta: generic, kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncAlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncCountExceededException" => crate::error::CreateResourceDataSyncError { meta: generic, kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncCountExceededException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_count_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_count_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncInvalidConfigurationException" => crate::error::CreateResourceDataSyncError { meta: generic, kind: crate::error::CreateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateResourceDataSyncError::unhandled)?; + output.build() + })}, + _ => crate::error::CreateResourceDataSyncError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_create_resource_data_sync_response( + response: &http::Response, +) -> std::result::Result< + crate::output::CreateResourceDataSyncOutput, + crate::error::CreateResourceDataSyncError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::create_resource_data_sync_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_activation_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteActivationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteActivationError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteActivationError { + meta: generic, + kind: crate::error::DeleteActivationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteActivationError::unhandled)?; + output.build() + }), + }, + "InvalidActivation" => crate::error::DeleteActivationError { + meta: generic, + kind: crate::error::DeleteActivationErrorKind::InvalidActivation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_activation::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_activationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteActivationError::unhandled)?; + output.build() + }), + }, + "InvalidActivationId" => crate::error::DeleteActivationError { + meta: generic, + kind: crate::error::DeleteActivationErrorKind::InvalidActivationId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_activation_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_activation_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteActivationError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::DeleteActivationError { + meta: generic, + kind: crate::error::DeleteActivationErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteActivationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteActivationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_activation_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_activation_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_association_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteAssociationError::unhandled(generic)), + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::DeleteAssociationError { + meta: generic, + kind: crate::error::DeleteAssociationErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_association_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_association_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_document_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteDocumentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteDocumentError::unhandled(generic)), + }; + Err(match error_code { + "AssociatedInstances" => crate::error::DeleteDocumentError { + meta: generic, + kind: crate::error::DeleteDocumentErrorKind::AssociatedInstances({ + #[allow(unused_mut)] + let mut output = crate::error::associated_instances::Builder::default(); + let _ = response; + output.build() + }), + }, + "InternalServerError" => crate::error::DeleteDocumentError { + meta: generic, + kind: crate::error::DeleteDocumentErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::DeleteDocumentError { + meta: generic, + kind: crate::error::DeleteDocumentErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentOperation" => crate::error::DeleteDocumentError { + meta: generic, + kind: crate::error::DeleteDocumentErrorKind::InvalidDocumentOperation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_operation::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_operationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteDocumentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteDocumentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_document_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_document_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_inventory_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteInventoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteInventoryError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteInventoryError { + meta: generic, + kind: crate::error::DeleteInventoryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidDeleteInventoryParametersException" => crate::error::DeleteInventoryError { + meta: generic, + kind: crate::error::DeleteInventoryErrorKind::InvalidDeleteInventoryParametersException( + { + #[allow(unused_mut)]let mut output = crate::error::invalid_delete_inventory_parameters_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_delete_inventory_parameters_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }, + ), + }, + "InvalidInventoryRequestException" => { + crate::error::DeleteInventoryError { + meta: generic, + kind: crate::error::DeleteInventoryErrorKind::InvalidInventoryRequestException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_inventory_request_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_inventory_request_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }), + } + } + "InvalidOptionException" => crate::error::DeleteInventoryError { + meta: generic, + kind: crate::error::DeleteInventoryErrorKind::InvalidOptionException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_option_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_option_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidTypeNameException" => crate::error::DeleteInventoryError { + meta: generic, + kind: crate::error::DeleteInventoryErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteInventoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_inventory_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_inventory_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_inventory(response.body().as_ref(), output) + .map_err(crate::error::DeleteInventoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMaintenanceWindowOutput, + crate::error::DeleteMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteMaintenanceWindowError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteMaintenanceWindowError { + meta: generic, + kind: crate::error::DeleteMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteMaintenanceWindowOutput, + crate::error::DeleteMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_ops_metadata_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteOpsMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteOpsMetadataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteOpsMetadataError { + meta: generic, + kind: crate::error::DeleteOpsMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataInvalidArgumentException" => crate::error::DeleteOpsMetadataError { + meta: generic, + kind: crate::error::DeleteOpsMetadataErrorKind::OpsMetadataInvalidArgumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_invalid_argument_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataNotFoundException" => { + crate::error::DeleteOpsMetadataError { + meta: generic, + kind: crate::error::DeleteOpsMetadataErrorKind::OpsMetadataNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteOpsMetadataError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::DeleteOpsMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_ops_metadata_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_ops_metadata_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_parameter_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteParameterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteParameterError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteParameterError { + meta: generic, + kind: crate::error::DeleteParameterErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteParameterError::unhandled)?; + output.build() + }), + }, + "ParameterNotFound" => crate::error::DeleteParameterError { + meta: generic, + kind: crate::error::DeleteParameterErrorKind::ParameterNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteParameterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteParameterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_parameter_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_parameter_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_parameters_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteParametersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeleteParametersError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteParametersError { + meta: generic, + kind: crate::error::DeleteParametersErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeleteParametersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeleteParametersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_parameters_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_parameters_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_delete_parameters(response.body().as_ref(), output) + .map_err(crate::error::DeleteParametersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeletePatchBaselineOutput, + crate::error::DeletePatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeletePatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DeletePatchBaselineError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DeletePatchBaselineError { + meta: generic, + kind: crate::error::DeletePatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeletePatchBaselineError::unhandled)?; + output.build() + }), + }, + "ResourceInUseException" => crate::error::DeletePatchBaselineError { + meta: generic, + kind: crate::error::DeletePatchBaselineErrorKind::ResourceInUseException({ + #[allow(unused_mut)] + let mut output = crate::error::resource_in_use_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeletePatchBaselineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeletePatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeletePatchBaselineOutput, + crate::error::DeletePatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_delete_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeletePatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_data_sync_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourceDataSyncOutput, + crate::error::DeleteResourceDataSyncError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeleteResourceDataSyncError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeleteResourceDataSyncError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DeleteResourceDataSyncError { meta: generic, kind: crate::error::DeleteResourceDataSyncErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncInvalidConfigurationException" => crate::error::DeleteResourceDataSyncError { meta: generic, kind: crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncNotFoundException" => crate::error::DeleteResourceDataSyncError { meta: generic, kind: crate::error::DeleteResourceDataSyncErrorKind::ResourceDataSyncNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteResourceDataSyncError::unhandled)?; + output.build() + })}, + _ => crate::error::DeleteResourceDataSyncError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_delete_resource_data_sync_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeleteResourceDataSyncOutput, + crate::error::DeleteResourceDataSyncError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::delete_resource_data_sync_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_managed_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterManagedInstanceOutput, + crate::error::DeregisterManagedInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterManagedInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterManagedInstanceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DeregisterManagedInstanceError { + meta: generic, + kind: crate::error::DeregisterManagedInstanceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterManagedInstanceError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::DeregisterManagedInstanceError { + meta: generic, + kind: crate::error::DeregisterManagedInstanceErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterManagedInstanceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DeregisterManagedInstanceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_managed_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterManagedInstanceOutput, + crate::error::DeregisterManagedInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::deregister_managed_instance_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_patch_baseline_for_patch_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterPatchBaselineForPatchGroupOutput, + crate::error::DeregisterPatchBaselineForPatchGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => { + crate::error::DeregisterPatchBaselineForPatchGroupError { + meta: generic, + kind: + crate::error::DeregisterPatchBaselineForPatchGroupErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + }, + ), + } + } + "InvalidResourceId" => crate::error::DeregisterPatchBaselineForPatchGroupError { + meta: generic, + kind: crate::error::DeregisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::DeregisterPatchBaselineForPatchGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_patch_baseline_for_patch_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterPatchBaselineForPatchGroupOutput, + crate::error::DeregisterPatchBaselineForPatchGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::deregister_patch_baseline_for_patch_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_deregister_patch_baseline_for_patch_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_target_from_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTargetFromMaintenanceWindowOutput, + crate::error::DeregisterTargetFromMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled(generic), + ) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DeregisterTargetFromMaintenanceWindowError { + meta: generic, + kind: + crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::DoesNotExistException( + { + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled, + )?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::DeregisterTargetFromMaintenanceWindowError { + meta: generic, + kind: crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled)?; + output.build() + }, + ), + }, + "TargetInUseException" => crate::error::DeregisterTargetFromMaintenanceWindowError { + meta: generic, + kind: + crate::error::DeregisterTargetFromMaintenanceWindowErrorKind::TargetInUseException( + { + #[allow(unused_mut)] + let mut output = crate::error::target_in_use_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_target_in_use_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::DeregisterTargetFromMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_target_from_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTargetFromMaintenanceWindowOutput, + crate::error::DeregisterTargetFromMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::deregister_target_from_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_deregister_target_from_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTargetFromMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_task_from_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTaskFromMaintenanceWindowOutput, + crate::error::DeregisterTaskFromMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DeregisterTaskFromMaintenanceWindowError { + meta: generic, + kind: crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::DoesNotExistException( + { + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => { + crate::error::DeregisterTaskFromMaintenanceWindowError { + meta: generic, + kind: + crate::error::DeregisterTaskFromMaintenanceWindowErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DeregisterTaskFromMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_deregister_task_from_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DeregisterTaskFromMaintenanceWindowOutput, + crate::error::DeregisterTaskFromMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::deregister_task_from_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_deregister_task_from_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DeregisterTaskFromMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_activations_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeActivationsOutput, + crate::error::DescribeActivationsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeActivationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeActivationsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeActivationsError { + meta: generic, + kind: crate::error::DescribeActivationsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeActivationsError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::DescribeActivationsError { + meta: generic, + kind: crate::error::DescribeActivationsErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeActivationsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeActivationsError { + meta: generic, + kind: crate::error::DescribeActivationsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeActivationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeActivationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_activations_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeActivationsOutput, + crate::error::DescribeActivationsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_activations_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_activations( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeActivationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationOutput, + crate::error::DescribeAssociationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeAssociationError::unhandled(generic)), + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::DescribeAssociationError { + meta: generic, + kind: crate::error::DescribeAssociationErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeAssociationError { + meta: generic, + kind: crate::error::DescribeAssociationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidAssociationVersion" => crate::error::DescribeAssociationError { + meta: generic, + kind: crate::error::DescribeAssociationErrorKind::InvalidAssociationVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_association_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_association_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::DescribeAssociationError { + meta: generic, + kind: crate::error::DescribeAssociationErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::DescribeAssociationError { + meta: generic, + kind: crate::error::DescribeAssociationErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationOutput, + crate::error::DescribeAssociationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_association_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_association( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationExecutionsOutput, + crate::error::DescribeAssociationExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAssociationExecutionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::DescribeAssociationExecutionsError { + meta: generic, + kind: crate::error::DescribeAssociationExecutionsErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeAssociationExecutionsError { + meta: generic, + kind: crate::error::DescribeAssociationExecutionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeAssociationExecutionsError { + meta: generic, + kind: crate::error::DescribeAssociationExecutionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAssociationExecutionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationExecutionsOutput, + crate::error::DescribeAssociationExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_association_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_association_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_execution_targets_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationExecutionTargetsOutput, + crate::error::DescribeAssociationExecutionTargetsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAssociationExecutionTargetsError::unhandled(generic)) + } + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::DescribeAssociationExecutionTargetsError { meta: generic, kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)]let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + output.build() + })}, + "AssociationExecutionDoesNotExist" => crate::error::DescribeAssociationExecutionTargetsError { meta: generic, kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::AssociationExecutionDoesNotExist({ + #[allow(unused_mut)]let mut output = crate::error::association_execution_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_execution_does_not_existjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::DescribeAssociationExecutionTargetsError { meta: generic, kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + output.build() + })}, + "InvalidNextToken" => crate::error::DescribeAssociationExecutionTargetsError { meta: generic, kind: crate::error::DescribeAssociationExecutionTargetsErrorKind::InvalidNextToken({ + #[allow(unused_mut)]let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeAssociationExecutionTargetsError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_association_execution_targets_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAssociationExecutionTargetsOutput, + crate::error::DescribeAssociationExecutionTargetsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_association_execution_targets_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_association_execution_targets( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAssociationExecutionTargetsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_automation_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAutomationExecutionsOutput, + crate::error::DescribeAutomationExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAutomationExecutionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeAutomationExecutionsError { + meta: generic, + kind: crate::error::DescribeAutomationExecutionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::DescribeAutomationExecutionsError { + meta: generic, + kind: crate::error::DescribeAutomationExecutionsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidFilterValue" => crate::error::DescribeAutomationExecutionsError { + meta: generic, + kind: crate::error::DescribeAutomationExecutionsErrorKind::InvalidFilterValue({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_value::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_valuejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeAutomationExecutionsError { + meta: generic, + kind: crate::error::DescribeAutomationExecutionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAutomationExecutionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_automation_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAutomationExecutionsOutput, + crate::error::DescribeAutomationExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_automation_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_automation_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutomationExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_automation_step_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAutomationStepExecutionsOutput, + crate::error::DescribeAutomationStepExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAutomationStepExecutionsError::unhandled(generic)) + } + }; + Err(match error_code { + "AutomationExecutionNotFoundException" => crate::error::DescribeAutomationStepExecutionsError { meta: generic, kind: crate::error::DescribeAutomationStepExecutionsErrorKind::AutomationExecutionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_execution_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::DescribeAutomationStepExecutionsError { meta: generic, kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + output.build() + })}, + "InvalidFilterKey" => crate::error::DescribeAutomationStepExecutionsError { meta: generic, kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)]let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + })}, + "InvalidFilterValue" => crate::error::DescribeAutomationStepExecutionsError { meta: generic, kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidFilterValue({ + #[allow(unused_mut)]let mut output = crate::error::invalid_filter_value::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_valuejson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + output.build() + })}, + "InvalidNextToken" => crate::error::DescribeAutomationStepExecutionsError { meta: generic, kind: crate::error::DescribeAutomationStepExecutionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)]let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeAutomationStepExecutionsError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_automation_step_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAutomationStepExecutionsOutput, + crate::error::DescribeAutomationStepExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_automation_step_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_automation_step_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAutomationStepExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_available_patches_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAvailablePatchesOutput, + crate::error::DescribeAvailablePatchesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeAvailablePatchesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeAvailablePatchesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeAvailablePatchesError { + meta: generic, + kind: crate::error::DescribeAvailablePatchesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAvailablePatchesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeAvailablePatchesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_available_patches_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeAvailablePatchesOutput, + crate::error::DescribeAvailablePatchesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_available_patches_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_available_patches( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeAvailablePatchesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_document_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDocumentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeDocumentError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeDocumentError { + meta: generic, + kind: crate::error::DescribeDocumentErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::DescribeDocumentError { + meta: generic, + kind: crate::error::DescribeDocumentErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::DescribeDocumentError { + meta: generic, + kind: crate::error::DescribeDocumentErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDocumentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_document_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_document_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_document(response.body().as_ref(), output) + .map_err(crate::error::DescribeDocumentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_document_permission_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDocumentPermissionOutput, + crate::error::DescribeDocumentPermissionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeDocumentPermissionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeDocumentPermissionError { + meta: generic, + kind: crate::error::DescribeDocumentPermissionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::DescribeDocumentPermissionError { + meta: generic, + kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentOperation" => crate::error::DescribeDocumentPermissionError { + meta: generic, + kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidDocumentOperation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_operation::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_operationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeDocumentPermissionError { + meta: generic, + kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidPermissionType" => crate::error::DescribeDocumentPermissionError { + meta: generic, + kind: crate::error::DescribeDocumentPermissionErrorKind::InvalidPermissionType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_permission_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_permission_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeDocumentPermissionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_document_permission_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeDocumentPermissionOutput, + crate::error::DescribeDocumentPermissionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_document_permission_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_document_permission( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeDocumentPermissionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_effective_instance_associations_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEffectiveInstanceAssociationsOutput, + crate::error::DescribeEffectiveInstanceAssociationsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeEffectiveInstanceAssociationsError::unhandled(generic), + ) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeEffectiveInstanceAssociationsError { + meta: generic, + kind: crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; + output.build() + }, + ), + }, + "InvalidInstanceId" => { + crate::error::DescribeEffectiveInstanceAssociationsError { + meta: generic, + kind: + crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InvalidInstanceId( + { + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; + output.build() + }, + ), + } + } + "InvalidNextToken" => crate::error::DescribeEffectiveInstanceAssociationsError { + meta: generic, + kind: crate::error::DescribeEffectiveInstanceAssociationsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeEffectiveInstanceAssociationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_effective_instance_associations_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEffectiveInstanceAssociationsOutput, + crate::error::DescribeEffectiveInstanceAssociationsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_effective_instance_associations_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_effective_instance_associations( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEffectiveInstanceAssociationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_effective_patches_for_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEffectivePatchesForPatchBaselineOutput, + crate::error::DescribeEffectivePatchesForPatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled(generic), + ) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DescribeEffectivePatchesForPatchBaselineError { meta: generic, kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::DescribeEffectivePatchesForPatchBaselineError { meta: generic, kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; + output.build() + })}, + "InvalidResourceId" => crate::error::DescribeEffectivePatchesForPatchBaselineError { meta: generic, kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::InvalidResourceId({ + #[allow(unused_mut)]let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + })}, + "UnsupportedOperatingSystem" => crate::error::DescribeEffectivePatchesForPatchBaselineError { meta: generic, kind: crate::error::DescribeEffectivePatchesForPatchBaselineErrorKind::UnsupportedOperatingSystem({ + #[allow(unused_mut)]let mut output = crate::error::unsupported_operating_system::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_operating_systemjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeEffectivePatchesForPatchBaselineError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_effective_patches_for_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeEffectivePatchesForPatchBaselineOutput, + crate::error::DescribeEffectivePatchesForPatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_effective_patches_for_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_effective_patches_for_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeEffectivePatchesForPatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_associations_status_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstanceAssociationsStatusOutput, + crate::error::DescribeInstanceAssociationsStatusError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeInstanceAssociationsStatusError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInstanceAssociationsStatusError { + meta: generic, + kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::DescribeInstanceAssociationsStatusError { + meta: generic, + kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeInstanceAssociationsStatusError { + meta: generic, + kind: crate::error::DescribeInstanceAssociationsStatusErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeInstanceAssociationsStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_associations_status_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstanceAssociationsStatusOutput, + crate::error::DescribeInstanceAssociationsStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_instance_associations_status_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_instance_associations_status( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstanceAssociationsStatusError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_information_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstanceInformationOutput, + crate::error::DescribeInstanceInformationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeInstanceInformationError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInstanceInformationError { meta: generic, kind: crate::error::DescribeInstanceInformationErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + output.build() + })}, + "InvalidFilterKey" => crate::error::DescribeInstanceInformationError { meta: generic, kind: crate::error::DescribeInstanceInformationErrorKind::InvalidFilterKey({ + #[allow(unused_mut)]let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + })}, + "InvalidInstanceId" => crate::error::DescribeInstanceInformationError { meta: generic, kind: crate::error::DescribeInstanceInformationErrorKind::InvalidInstanceId({ + #[allow(unused_mut)]let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + output.build() + })}, + "InvalidInstanceInformationFilterValue" => crate::error::DescribeInstanceInformationError { meta: generic, kind: crate::error::DescribeInstanceInformationErrorKind::InvalidInstanceInformationFilterValue({ + #[allow(unused_mut)]let mut output = crate::error::invalid_instance_information_filter_value::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_information_filter_valuejson_err(response.body().as_ref(), output).map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + output.build() + })}, + "InvalidNextToken" => crate::error::DescribeInstanceInformationError { meta: generic, kind: crate::error::DescribeInstanceInformationErrorKind::InvalidNextToken({ + #[allow(unused_mut)]let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeInstanceInformationError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_information_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstanceInformationOutput, + crate::error::DescribeInstanceInformationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_instance_information_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_instance_information( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstanceInformationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patches_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchesOutput, + crate::error::DescribeInstancePatchesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeInstancePatchesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInstancePatchesError { + meta: generic, + kind: crate::error::DescribeInstancePatchesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::DescribeInstancePatchesError { + meta: generic, + kind: crate::error::DescribeInstancePatchesErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::DescribeInstancePatchesError { + meta: generic, + kind: crate::error::DescribeInstancePatchesErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeInstancePatchesError { + meta: generic, + kind: crate::error::DescribeInstancePatchesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeInstancePatchesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patches_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchesOutput, + crate::error::DescribeInstancePatchesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_instance_patches_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_instance_patches( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patch_states_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchStatesOutput, + crate::error::DescribeInstancePatchStatesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInstancePatchStatesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeInstancePatchStatesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInstancePatchStatesError { + meta: generic, + kind: crate::error::DescribeInstancePatchStatesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchStatesError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeInstancePatchStatesError { + meta: generic, + kind: crate::error::DescribeInstancePatchStatesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchStatesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeInstancePatchStatesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patch_states_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchStatesOutput, + crate::error::DescribeInstancePatchStatesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_instance_patch_states_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_instance_patch_states( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchStatesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patch_states_for_patch_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchStatesForPatchGroupOutput, + crate::error::DescribeInstancePatchStatesForPatchGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled(generic), + ) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInstancePatchStatesForPatchGroupError { + meta: generic, + kind: + crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled, + )?; + output.build() + }, + ), + }, + "InvalidFilter" => crate::error::DescribeInstancePatchStatesForPatchGroupError { + meta: generic, + kind: crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeInstancePatchStatesForPatchGroupError { + meta: generic, + kind: crate::error::DescribeInstancePatchStatesForPatchGroupErrorKind::InvalidNextToken( + { + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err( + crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled, + )?; + output.build() + }, + ), + }, + _ => crate::error::DescribeInstancePatchStatesForPatchGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_instance_patch_states_for_patch_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInstancePatchStatesForPatchGroupOutput, + crate::error::DescribeInstancePatchStatesForPatchGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_instance_patch_states_for_patch_group_output::Builder::default( + ); + let _ = response; + output = crate::json_deser::deser_operation_describe_instance_patch_states_for_patch_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInstancePatchStatesForPatchGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_inventory_deletions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInventoryDeletionsOutput, + crate::error::DescribeInventoryDeletionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeInventoryDeletionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeInventoryDeletionsError { + meta: generic, + kind: crate::error::DescribeInventoryDeletionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; + output.build() + }), + }, + "InvalidDeletionIdException" => crate::error::DescribeInventoryDeletionsError { + meta: generic, + kind: crate::error::DescribeInventoryDeletionsErrorKind::InvalidDeletionIdException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_deletion_id_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_deletion_id_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeInventoryDeletionsError { + meta: generic, + kind: crate::error::DescribeInventoryDeletionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeInventoryDeletionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_inventory_deletions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeInventoryDeletionsOutput, + crate::error::DescribeInventoryDeletionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_inventory_deletions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_inventory_deletions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeInventoryDeletionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_executions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionsOutput, + crate::error::DescribeMaintenanceWindowExecutionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowExecutionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMaintenanceWindowExecutionsError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => { + crate::error::DescribeMaintenanceWindowExecutionsError { + meta: generic, + kind: + crate::error::DescribeMaintenanceWindowExecutionsErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionsError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DescribeMaintenanceWindowExecutionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_executions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionsOutput, + crate::error::DescribeMaintenanceWindowExecutionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_window_executions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_executions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowExecutionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_execution_task_invocations_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionTaskInvocationsOutput, + crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled( + generic, + ), + ) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError { meta: generic, kind: crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError { meta: generic, kind: crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_execution_task_invocations_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionTaskInvocationsOutput, + crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError, +> { + Ok({ + #[allow(unused_mut)]let mut output = crate::output::describe_maintenance_window_execution_task_invocations_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_execution_task_invocations(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionTaskInvocationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_execution_tasks_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionTasksOutput, + crate::error::DescribeMaintenanceWindowExecutionTasksError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled(generic), + ) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DescribeMaintenanceWindowExecutionTasksError { meta: generic, kind: crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::DescribeMaintenanceWindowExecutionTasksError { meta: generic, kind: crate::error::DescribeMaintenanceWindowExecutionTasksErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled)?; + output.build() + })}, + _ => crate::error::DescribeMaintenanceWindowExecutionTasksError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_execution_tasks_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowExecutionTasksOutput, + crate::error::DescribeMaintenanceWindowExecutionTasksError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_window_execution_tasks_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_execution_tasks( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowExecutionTasksError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_windows_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowsOutput, + crate::error::DescribeMaintenanceWindowsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMaintenanceWindowsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeMaintenanceWindowsError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMaintenanceWindowsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_windows_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowsOutput, + crate::error::DescribeMaintenanceWindowsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_maintenance_windows_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_windows( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_schedule_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowScheduleOutput, + crate::error::DescribeMaintenanceWindowScheduleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => { + crate::error::DescribeMaintenanceWindowScheduleError { + meta: generic, + kind: + crate::error::DescribeMaintenanceWindowScheduleErrorKind::DoesNotExistException( + { + #[allow(unused_mut)] + let mut output = + crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled)?; + output.build() + }, + ), + } + } + "InternalServerError" => crate::error::DescribeMaintenanceWindowScheduleError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowScheduleErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMaintenanceWindowScheduleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_schedule_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowScheduleOutput, + crate::error::DescribeMaintenanceWindowScheduleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_window_schedule_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_schedule( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowScheduleError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_windows_for_target_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowsForTargetOutput, + crate::error::DescribeMaintenanceWindowsForTargetError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowsForTargetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMaintenanceWindowsForTargetError::unhandled(generic)) + } + }; + Err(match error_code { + "InternalServerError" => { + crate::error::DescribeMaintenanceWindowsForTargetError { + meta: generic, + kind: + crate::error::DescribeMaintenanceWindowsForTargetErrorKind::InternalServerError( + { + #[allow(unused_mut)] + let mut output = + crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DescribeMaintenanceWindowsForTargetError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::DescribeMaintenanceWindowsForTargetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_windows_for_target_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowsForTargetOutput, + crate::error::DescribeMaintenanceWindowsForTargetError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_windows_for_target_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_windows_for_target( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowsForTargetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_targets_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowTargetsOutput, + crate::error::DescribeMaintenanceWindowTargetsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DescribeMaintenanceWindowTargetsError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowTargetsErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeMaintenanceWindowTargetsError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowTargetsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMaintenanceWindowTargetsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_targets_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowTargetsOutput, + crate::error::DescribeMaintenanceWindowTargetsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_window_targets_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_targets( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTargetsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_tasks_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowTasksOutput, + crate::error::DescribeMaintenanceWindowTasksError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeMaintenanceWindowTasksError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeMaintenanceWindowTasksError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::DescribeMaintenanceWindowTasksError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowTasksErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTasksError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::DescribeMaintenanceWindowTasksError { + meta: generic, + kind: crate::error::DescribeMaintenanceWindowTasksErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTasksError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeMaintenanceWindowTasksError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_maintenance_window_tasks_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeMaintenanceWindowTasksOutput, + crate::error::DescribeMaintenanceWindowTasksError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::describe_maintenance_window_tasks_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_maintenance_window_tasks( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeMaintenanceWindowTasksError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_ops_items_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeOpsItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeOpsItemsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeOpsItemsError { + meta: generic, + kind: crate::error::DescribeOpsItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeOpsItemsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeOpsItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_ops_items_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_ops_items_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_ops_items(response.body().as_ref(), output) + .map_err(crate::error::DescribeOpsItemsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_parameters_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeParametersOutput, + crate::error::DescribeParametersError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeParametersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeParametersError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeParametersError { + meta: generic, + kind: crate::error::DescribeParametersErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeParametersError::unhandled)?; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::DescribeParametersError { + meta: generic, + kind: crate::error::DescribeParametersErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidFilterOption" => crate::error::DescribeParametersError { + meta: generic, + kind: crate::error::DescribeParametersErrorKind::InvalidFilterOption({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_option::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_optionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeParametersError::unhandled)?; + output.build() + }), + }, + "InvalidFilterValue" => crate::error::DescribeParametersError { + meta: generic, + kind: crate::error::DescribeParametersErrorKind::InvalidFilterValue({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_value::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_valuejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeParametersError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeParametersError { + meta: generic, + kind: crate::error::DescribeParametersErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeParametersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeParametersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_parameters_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribeParametersOutput, + crate::error::DescribeParametersError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_parameters_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_parameters( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeParametersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_baselines_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchBaselinesOutput, + crate::error::DescribePatchBaselinesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePatchBaselinesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribePatchBaselinesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribePatchBaselinesError { + meta: generic, + kind: crate::error::DescribePatchBaselinesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchBaselinesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePatchBaselinesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_baselines_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchBaselinesOutput, + crate::error::DescribePatchBaselinesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_patch_baselines_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_patch_baselines( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchBaselinesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_groups_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchGroupsOutput, + crate::error::DescribePatchGroupsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePatchGroupsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribePatchGroupsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribePatchGroupsError { + meta: generic, + kind: crate::error::DescribePatchGroupsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchGroupsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePatchGroupsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_groups_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchGroupsOutput, + crate::error::DescribePatchGroupsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_patch_groups_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_patch_groups( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchGroupsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_group_state_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchGroupStateOutput, + crate::error::DescribePatchGroupStateError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePatchGroupStateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribePatchGroupStateError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribePatchGroupStateError { + meta: generic, + kind: crate::error::DescribePatchGroupStateErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchGroupStateError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribePatchGroupStateError { + meta: generic, + kind: crate::error::DescribePatchGroupStateErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchGroupStateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePatchGroupStateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_group_state_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchGroupStateOutput, + crate::error::DescribePatchGroupStateError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_patch_group_state_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_patch_group_state( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchGroupStateError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_properties_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchPropertiesOutput, + crate::error::DescribePatchPropertiesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribePatchPropertiesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::DescribePatchPropertiesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribePatchPropertiesError { + meta: generic, + kind: crate::error::DescribePatchPropertiesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchPropertiesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribePatchPropertiesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_patch_properties_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DescribePatchPropertiesOutput, + crate::error::DescribePatchPropertiesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_patch_properties_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_describe_patch_properties( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribePatchPropertiesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_sessions_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DescribeSessionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DescribeSessionsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DescribeSessionsError { + meta: generic, + kind: crate::error::DescribeSessionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSessionsError::unhandled)?; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::DescribeSessionsError { + meta: generic, + kind: crate::error::DescribeSessionsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidNextToken" => crate::error::DescribeSessionsError { + meta: generic, + kind: crate::error::DescribeSessionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::DescribeSessionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::DescribeSessionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_describe_sessions_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::describe_sessions_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_describe_sessions(response.body().as_ref(), output) + .map_err(crate::error::DescribeSessionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_ops_item_related_item_error( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateOpsItemRelatedItemOutput, + crate::error::DisassociateOpsItemRelatedItemError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::DisassociateOpsItemRelatedItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::DisassociateOpsItemRelatedItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::DisassociateOpsItemRelatedItemError { meta: generic, kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::DisassociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemInvalidParameterException" => crate::error::DisassociateOpsItemRelatedItemError { meta: generic, kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemInvalidParameterException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisassociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemNotFoundException" => crate::error::DisassociateOpsItemRelatedItemError { meta: generic, kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisassociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + "OpsItemRelatedItemAssociationNotFoundException" => crate::error::DisassociateOpsItemRelatedItemError { meta: generic, kind: crate::error::DisassociateOpsItemRelatedItemErrorKind::OpsItemRelatedItemAssociationNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::ops_item_related_item_association_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_related_item_association_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DisassociateOpsItemRelatedItemError::unhandled)?; + output.build() + })}, + _ => crate::error::DisassociateOpsItemRelatedItemError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_disassociate_ops_item_related_item_response( + response: &http::Response, +) -> std::result::Result< + crate::output::DisassociateOpsItemRelatedItemOutput, + crate::error::DisassociateOpsItemRelatedItemError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::disassociate_ops_item_related_item_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_automation_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetAutomationExecutionOutput, + crate::error::GetAutomationExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetAutomationExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetAutomationExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AutomationExecutionNotFoundException" => crate::error::GetAutomationExecutionError { + meta: generic, + kind: + crate::error::GetAutomationExecutionErrorKind::AutomationExecutionNotFoundException( + { + #[allow(unused_mut)]let mut output = crate::error::automation_execution_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetAutomationExecutionError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::GetAutomationExecutionError { + meta: generic, + kind: crate::error::GetAutomationExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAutomationExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetAutomationExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_automation_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetAutomationExecutionOutput, + crate::error::GetAutomationExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_automation_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_automation_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetAutomationExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_calendar_state_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetCalendarStateError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetCalendarStateError { + meta: generic, + kind: crate::error::GetCalendarStateErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::GetCalendarStateError { + meta: generic, + kind: crate::error::GetCalendarStateErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentType" => crate::error::GetCalendarStateError { + meta: generic, + kind: crate::error::GetCalendarStateErrorKind::InvalidDocumentType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + output.build() + }), + }, + "UnsupportedCalendarException" => crate::error::GetCalendarStateError { + meta: generic, + kind: crate::error::GetCalendarStateErrorKind::UnsupportedCalendarException({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_calendar_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_calendar_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetCalendarStateError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_calendar_state_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_calendar_state_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_calendar_state(response.body().as_ref(), output) + .map_err(crate::error::GetCalendarStateError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_command_invocation_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetCommandInvocationOutput, + crate::error::GetCommandInvocationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetCommandInvocationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetCommandInvocationError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetCommandInvocationError { + meta: generic, + kind: crate::error::GetCommandInvocationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCommandInvocationError::unhandled)?; + output.build() + }), + }, + "InvalidCommandId" => crate::error::GetCommandInvocationError { + meta: generic, + kind: crate::error::GetCommandInvocationErrorKind::InvalidCommandId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_command_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::GetCommandInvocationError { + meta: generic, + kind: crate::error::GetCommandInvocationErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCommandInvocationError::unhandled)?; + output.build() + }), + }, + "InvalidPluginName" => crate::error::GetCommandInvocationError { + meta: generic, + kind: crate::error::GetCommandInvocationErrorKind::InvalidPluginName({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_plugin_name::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvocationDoesNotExist" => crate::error::GetCommandInvocationError { + meta: generic, + kind: crate::error::GetCommandInvocationErrorKind::InvocationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::invocation_does_not_exist::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::GetCommandInvocationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_command_invocation_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetCommandInvocationOutput, + crate::error::GetCommandInvocationError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_command_invocation_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_command_invocation( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetCommandInvocationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_connection_status_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetConnectionStatusOutput, + crate::error::GetConnectionStatusError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetConnectionStatusError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetConnectionStatusError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetConnectionStatusError { + meta: generic, + kind: crate::error::GetConnectionStatusErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetConnectionStatusError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetConnectionStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_connection_status_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetConnectionStatusOutput, + crate::error::GetConnectionStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_connection_status_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_connection_status( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetConnectionStatusError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_default_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDefaultPatchBaselineOutput, + crate::error::GetDefaultPatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetDefaultPatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetDefaultPatchBaselineError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::GetDefaultPatchBaselineError { + meta: generic, + kind: crate::error::GetDefaultPatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDefaultPatchBaselineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetDefaultPatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_default_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDefaultPatchBaselineOutput, + crate::error::GetDefaultPatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_default_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_default_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDefaultPatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_deployable_patch_snapshot_for_instance_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDeployablePatchSnapshotForInstanceOutput, + crate::error::GetDeployablePatchSnapshotForInstanceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled(generic), + ) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::GetDeployablePatchSnapshotForInstanceError { meta: generic, kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; + output.build() + })}, + "UnsupportedFeatureRequiredException" => crate::error::GetDeployablePatchSnapshotForInstanceError { meta: generic, kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedFeatureRequiredException({ + #[allow(unused_mut)]let mut output = crate::error::unsupported_feature_required_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_feature_required_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; + output.build() + })}, + "UnsupportedOperatingSystem" => crate::error::GetDeployablePatchSnapshotForInstanceError { meta: generic, kind: crate::error::GetDeployablePatchSnapshotForInstanceErrorKind::UnsupportedOperatingSystem({ + #[allow(unused_mut)]let mut output = crate::error::unsupported_operating_system::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_operating_systemjson_err(response.body().as_ref(), output).map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; + output.build() + })}, + _ => crate::error::GetDeployablePatchSnapshotForInstanceError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_deployable_patch_snapshot_for_instance_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetDeployablePatchSnapshotForInstanceOutput, + crate::error::GetDeployablePatchSnapshotForInstanceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::get_deployable_patch_snapshot_for_instance_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_deployable_patch_snapshot_for_instance( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDeployablePatchSnapshotForInstanceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_document_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetDocumentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetDocumentError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetDocumentError { + meta: generic, + kind: crate::error::GetDocumentErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::GetDocumentError { + meta: generic, + kind: crate::error::GetDocumentErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::GetDocumentError { + meta: generic, + kind: crate::error::GetDocumentErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetDocumentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetDocumentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_document_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_document_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_document(response.body().as_ref(), output) + .map_err(crate::error::GetDocumentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_inventory_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetInventoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetInventoryError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidAggregatorException" => crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidAggregatorException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_aggregator_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_aggregator_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidInventoryGroupException" => { + crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidInventoryGroupException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_inventory_group_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_inventory_group_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + } + } + "InvalidNextToken" => crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidResultAttributeException" => { + crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidResultAttributeException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_result_attribute_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_result_attribute_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + } + } + "InvalidTypeNameException" => crate::error::GetInventoryError { + meta: generic, + kind: crate::error::GetInventoryErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetInventoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_inventory_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_inventory_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_inventory(response.body().as_ref(), output) + .map_err(crate::error::GetInventoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_inventory_schema_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetInventorySchemaOutput, + crate::error::GetInventorySchemaError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetInventorySchemaError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetInventorySchemaError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetInventorySchemaError { + meta: generic, + kind: crate::error::GetInventorySchemaErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventorySchemaError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::GetInventorySchemaError { + meta: generic, + kind: crate::error::GetInventorySchemaErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventorySchemaError::unhandled)?; + output.build() + }), + }, + "InvalidTypeNameException" => crate::error::GetInventorySchemaError { + meta: generic, + kind: crate::error::GetInventorySchemaErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventorySchemaError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetInventorySchemaError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_inventory_schema_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetInventorySchemaOutput, + crate::error::GetInventorySchemaError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_inventory_schema_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_inventory_schema( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetInventorySchemaError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowOutput, + crate::error::GetMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetMaintenanceWindowError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::GetMaintenanceWindowError { + meta: generic, + kind: crate::error::GetMaintenanceWindowErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::GetMaintenanceWindowError { + meta: generic, + kind: crate::error::GetMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowOutput, + crate::error::GetMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionOutput, + crate::error::GetMaintenanceWindowExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetMaintenanceWindowExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetMaintenanceWindowExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::GetMaintenanceWindowExecutionError { + meta: generic, + kind: crate::error::GetMaintenanceWindowExecutionErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::GetMaintenanceWindowExecutionError { + meta: generic, + kind: crate::error::GetMaintenanceWindowExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMaintenanceWindowExecutionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionOutput, + crate::error::GetMaintenanceWindowExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_maintenance_window_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_maintenance_window_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_task_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionTaskOutput, + crate::error::GetMaintenanceWindowExecutionTaskError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => { + crate::error::GetMaintenanceWindowExecutionTaskError { + meta: generic, + kind: + crate::error::GetMaintenanceWindowExecutionTaskErrorKind::DoesNotExistException( + { + #[allow(unused_mut)] + let mut output = + crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled)?; + output.build() + }, + ), + } + } + "InternalServerError" => crate::error::GetMaintenanceWindowExecutionTaskError { + meta: generic, + kind: crate::error::GetMaintenanceWindowExecutionTaskErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMaintenanceWindowExecutionTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_task_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionTaskOutput, + crate::error::GetMaintenanceWindowExecutionTaskError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::get_maintenance_window_execution_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_maintenance_window_execution_task( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_task_invocation_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionTaskInvocationOutput, + crate::error::GetMaintenanceWindowExecutionTaskInvocationError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled(generic), + ) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::GetMaintenanceWindowExecutionTaskInvocationError { meta: generic, kind: crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::GetMaintenanceWindowExecutionTaskInvocationError { meta: generic, kind: crate::error::GetMaintenanceWindowExecutionTaskInvocationErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled)?; + output.build() + })}, + _ => crate::error::GetMaintenanceWindowExecutionTaskInvocationError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_execution_task_invocation_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowExecutionTaskInvocationOutput, + crate::error::GetMaintenanceWindowExecutionTaskInvocationError, +> { + Ok({ + #[allow(unused_mut)]let mut output = crate::output::get_maintenance_window_execution_task_invocation_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_maintenance_window_execution_task_invocation( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowExecutionTaskInvocationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_task_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowTaskOutput, + crate::error::GetMaintenanceWindowTaskError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetMaintenanceWindowTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetMaintenanceWindowTaskError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::GetMaintenanceWindowTaskError { + meta: generic, + kind: crate::error::GetMaintenanceWindowTaskErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowTaskError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::GetMaintenanceWindowTaskError { + meta: generic, + kind: crate::error::GetMaintenanceWindowTaskErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetMaintenanceWindowTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_maintenance_window_task_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetMaintenanceWindowTaskOutput, + crate::error::GetMaintenanceWindowTaskError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_maintenance_window_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_maintenance_window_task( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetMaintenanceWindowTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetOpsItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetOpsItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetOpsItemError { + meta: generic, + kind: crate::error::GetOpsItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsItemError::unhandled)?; + output.build() + }), + }, + "OpsItemNotFoundException" => crate::error::GetOpsItemError { + meta: generic, + kind: crate::error::GetOpsItemErrorKind::OpsItemNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::ops_item_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetOpsItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_ops_item_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_ops_item(response.body().as_ref(), output) + .map_err(crate::error::GetOpsItemError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_metadata_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetOpsMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetOpsMetadataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetOpsMetadataError { + meta: generic, + kind: crate::error::GetOpsMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataInvalidArgumentException" => crate::error::GetOpsMetadataError { + meta: generic, + kind: crate::error::GetOpsMetadataErrorKind::OpsMetadataInvalidArgumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_invalid_argument_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataNotFoundException" => { + crate::error::GetOpsMetadataError { + meta: generic, + kind: crate::error::GetOpsMetadataErrorKind::OpsMetadataNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetOpsMetadataError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::GetOpsMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_metadata_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_ops_metadata_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_ops_metadata(response.body().as_ref(), output) + .map_err(crate::error::GetOpsMetadataError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_summary_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetOpsSummaryError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + "InvalidAggregatorException" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::InvalidAggregatorException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_aggregator_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_aggregator_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + "InvalidTypeNameException" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + "ResourceDataSyncNotFoundException" => crate::error::GetOpsSummaryError { + meta: generic, + kind: crate::error::GetOpsSummaryErrorKind::ResourceDataSyncNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::resource_data_sync_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetOpsSummaryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_ops_summary_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_ops_summary_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_ops_summary(response.body().as_ref(), output) + .map_err(crate::error::GetOpsSummaryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameter_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetParameterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetParameterError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetParameterError { + meta: generic, + kind: crate::error::GetParameterErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterError::unhandled)?; + output.build() + }), + }, + "InvalidKeyId" => crate::error::GetParameterError { + meta: generic, + kind: crate::error::GetParameterErrorKind::InvalidKeyId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterError::unhandled)?; + output.build() + }), + }, + "ParameterNotFound" => crate::error::GetParameterError { + meta: generic, + kind: crate::error::GetParameterErrorKind::ParameterNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterError::unhandled)?; + output.build() + }), + }, + "ParameterVersionNotFound" => crate::error::GetParameterError { + meta: generic, + kind: crate::error::GetParameterErrorKind::ParameterVersionNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_version_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_version_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetParameterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameter_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_parameter_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_parameter(response.body().as_ref(), output) + .map_err(crate::error::GetParameterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameter_history_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParameterHistoryOutput, + crate::error::GetParameterHistoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetParameterHistoryError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetParameterHistoryError { + meta: generic, + kind: crate::error::GetParameterHistoryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + output.build() + }), + }, + "InvalidKeyId" => crate::error::GetParameterHistoryError { + meta: generic, + kind: crate::error::GetParameterHistoryErrorKind::InvalidKeyId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::GetParameterHistoryError { + meta: generic, + kind: crate::error::GetParameterHistoryErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + output.build() + }), + }, + "ParameterNotFound" => crate::error::GetParameterHistoryError { + meta: generic, + kind: crate::error::GetParameterHistoryErrorKind::ParameterNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetParameterHistoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameter_history_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParameterHistoryOutput, + crate::error::GetParameterHistoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_parameter_history_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_parameter_history( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParameterHistoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetParametersError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetParametersError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetParametersError { + meta: generic, + kind: crate::error::GetParametersErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersError::unhandled)?; + output.build() + }), + }, + "InvalidKeyId" => crate::error::GetParametersError { + meta: generic, + kind: crate::error::GetParametersErrorKind::InvalidKeyId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetParametersError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_parameters_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_parameters(response.body().as_ref(), output) + .map_err(crate::error::GetParametersError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_by_path_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParametersByPathOutput, + crate::error::GetParametersByPathError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetParametersByPathError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidFilterOption" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InvalidFilterOption({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_option::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_optionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }), + }, + "InvalidFilterValue" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InvalidFilterValue({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_value::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filter_valuejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }), + }, + "InvalidKeyId" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InvalidKeyId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::GetParametersByPathError { + meta: generic, + kind: crate::error::GetParametersByPathErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetParametersByPathError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_parameters_by_path_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetParametersByPathOutput, + crate::error::GetParametersByPathError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_parameters_by_path_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_parameters_by_path( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetParametersByPathError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_patch_baseline_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetPatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetPatchBaselineError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::GetPatchBaselineError { + meta: generic, + kind: crate::error::GetPatchBaselineErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPatchBaselineError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::GetPatchBaselineError { + meta: generic, + kind: crate::error::GetPatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPatchBaselineError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::GetPatchBaselineError { + meta: generic, + kind: crate::error::GetPatchBaselineErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::GetPatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_patch_baseline_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_patch_baseline_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_get_patch_baseline(response.body().as_ref(), output) + .map_err(crate::error::GetPatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_patch_baseline_for_patch_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::GetPatchBaselineForPatchGroupOutput, + crate::error::GetPatchBaselineForPatchGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetPatchBaselineForPatchGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::GetPatchBaselineForPatchGroupError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::GetPatchBaselineForPatchGroupError { + meta: generic, + kind: crate::error::GetPatchBaselineForPatchGroupErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPatchBaselineForPatchGroupError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetPatchBaselineForPatchGroupError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_patch_baseline_for_patch_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::GetPatchBaselineForPatchGroupOutput, + crate::error::GetPatchBaselineForPatchGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::get_patch_baseline_for_patch_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_patch_baseline_for_patch_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetPatchBaselineForPatchGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_service_setting_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::GetServiceSettingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::GetServiceSettingError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::GetServiceSettingError { + meta: generic, + kind: crate::error::GetServiceSettingErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetServiceSettingError::unhandled)?; + output.build() + }), + }, + "ServiceSettingNotFound" => crate::error::GetServiceSettingError { + meta: generic, + kind: crate::error::GetServiceSettingErrorKind::ServiceSettingNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::service_setting_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_setting_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetServiceSettingError::unhandled)?; + output.build() + }), + }, + _ => crate::error::GetServiceSettingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_get_service_setting_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::get_service_setting_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_get_service_setting( + response.body().as_ref(), + output, + ) + .map_err(crate::error::GetServiceSettingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_label_parameter_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::LabelParameterVersionOutput, + crate::error::LabelParameterVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::LabelParameterVersionError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::LabelParameterVersionError { + meta: generic, + kind: crate::error::LabelParameterVersionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "ParameterNotFound" => crate::error::LabelParameterVersionError { + meta: generic, + kind: crate::error::LabelParameterVersionErrorKind::ParameterNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "ParameterVersionLabelLimitExceeded" => crate::error::LabelParameterVersionError { + meta: generic, + kind: crate::error::LabelParameterVersionErrorKind::ParameterVersionLabelLimitExceeded( + { + #[allow(unused_mut)] + let mut output = + crate::error::parameter_version_label_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_version_label_limit_exceededjson_err(response.body().as_ref(), output).map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }, + ), + }, + "ParameterVersionNotFound" => crate::error::LabelParameterVersionError { + meta: generic, + kind: crate::error::LabelParameterVersionErrorKind::ParameterVersionNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_version_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_version_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::LabelParameterVersionError { + meta: generic, + kind: crate::error::LabelParameterVersionErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::LabelParameterVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_label_parameter_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::LabelParameterVersionOutput, + crate::error::LabelParameterVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::label_parameter_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_label_parameter_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::LabelParameterVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_associations_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAssociationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListAssociationsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListAssociationsError { + meta: generic, + kind: crate::error::ListAssociationsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListAssociationsError { + meta: generic, + kind: crate::error::ListAssociationsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAssociationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_associations_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_associations_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_associations(response.body().as_ref(), output) + .map_err(crate::error::ListAssociationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_association_versions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAssociationVersionsOutput, + crate::error::ListAssociationVersionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListAssociationVersionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListAssociationVersionsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::ListAssociationVersionsError { + meta: generic, + kind: crate::error::ListAssociationVersionsErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationVersionsError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::ListAssociationVersionsError { + meta: generic, + kind: crate::error::ListAssociationVersionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationVersionsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListAssociationVersionsError { + meta: generic, + kind: crate::error::ListAssociationVersionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationVersionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListAssociationVersionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_association_versions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListAssociationVersionsOutput, + crate::error::ListAssociationVersionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_association_versions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_association_versions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListAssociationVersionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_command_invocations_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCommandInvocationsOutput, + crate::error::ListCommandInvocationsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListCommandInvocationsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListCommandInvocationsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::ListCommandInvocationsError { + meta: generic, + kind: crate::error::ListCommandInvocationsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandInvocationsError::unhandled)?; + output.build() + }), + }, + "InvalidCommandId" => crate::error::ListCommandInvocationsError { + meta: generic, + kind: crate::error::ListCommandInvocationsErrorKind::InvalidCommandId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_command_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::ListCommandInvocationsError { + meta: generic, + kind: crate::error::ListCommandInvocationsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::ListCommandInvocationsError { + meta: generic, + kind: crate::error::ListCommandInvocationsErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandInvocationsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListCommandInvocationsError { + meta: generic, + kind: crate::error::ListCommandInvocationsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandInvocationsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListCommandInvocationsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_command_invocations_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListCommandInvocationsOutput, + crate::error::ListCommandInvocationsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_command_invocations_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_command_invocations( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandInvocationsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_commands_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListCommandsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListCommandsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListCommandsError { + meta: generic, + kind: crate::error::ListCommandsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandsError::unhandled)?; + output.build() + }), + }, + "InvalidCommandId" => crate::error::ListCommandsError { + meta: generic, + kind: crate::error::ListCommandsErrorKind::InvalidCommandId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_command_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::ListCommandsError { + meta: generic, + kind: crate::error::ListCommandsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::ListCommandsError { + meta: generic, + kind: crate::error::ListCommandsErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListCommandsError { + meta: generic, + kind: crate::error::ListCommandsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListCommandsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListCommandsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_commands_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_commands_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_commands(response.body().as_ref(), output) + .map_err(crate::error::ListCommandsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compliance_items_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListComplianceItemsOutput, + crate::error::ListComplianceItemsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListComplianceItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListComplianceItemsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListComplianceItemsError { + meta: generic, + kind: crate::error::ListComplianceItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceItemsError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::ListComplianceItemsError { + meta: generic, + kind: crate::error::ListComplianceItemsErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceItemsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListComplianceItemsError { + meta: generic, + kind: crate::error::ListComplianceItemsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceItemsError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::ListComplianceItemsError { + meta: generic, + kind: crate::error::ListComplianceItemsErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidResourceType" => crate::error::ListComplianceItemsError { + meta: generic, + kind: crate::error::ListComplianceItemsErrorKind::InvalidResourceType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_type::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::ListComplianceItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compliance_items_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListComplianceItemsOutput, + crate::error::ListComplianceItemsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_compliance_items_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_compliance_items( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceItemsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compliance_summaries_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListComplianceSummariesOutput, + crate::error::ListComplianceSummariesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListComplianceSummariesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListComplianceSummariesError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::ListComplianceSummariesError { + meta: generic, + kind: crate::error::ListComplianceSummariesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceSummariesError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::ListComplianceSummariesError { + meta: generic, + kind: crate::error::ListComplianceSummariesErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceSummariesError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListComplianceSummariesError { + meta: generic, + kind: crate::error::ListComplianceSummariesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceSummariesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListComplianceSummariesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_compliance_summaries_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListComplianceSummariesOutput, + crate::error::ListComplianceSummariesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_compliance_summaries_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_compliance_summaries( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListComplianceSummariesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_document_metadata_history_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDocumentMetadataHistoryOutput, + crate::error::ListDocumentMetadataHistoryError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListDocumentMetadataHistoryError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::ListDocumentMetadataHistoryError { + meta: generic, + kind: crate::error::ListDocumentMetadataHistoryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::ListDocumentMetadataHistoryError { + meta: generic, + kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::ListDocumentMetadataHistoryError { + meta: generic, + kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListDocumentMetadataHistoryError { + meta: generic, + kind: crate::error::ListDocumentMetadataHistoryErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListDocumentMetadataHistoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_document_metadata_history_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDocumentMetadataHistoryOutput, + crate::error::ListDocumentMetadataHistoryError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_document_metadata_history_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_document_metadata_history( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentMetadataHistoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_documents_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDocumentsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListDocumentsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListDocumentsError { + meta: generic, + kind: crate::error::ListDocumentsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentsError::unhandled)?; + output.build() + }), + }, + "InvalidFilterKey" => crate::error::ListDocumentsError { + meta: generic, + kind: crate::error::ListDocumentsErrorKind::InvalidFilterKey({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter_key::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListDocumentsError { + meta: generic, + kind: crate::error::ListDocumentsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListDocumentsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_documents_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_documents_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_documents(response.body().as_ref(), output) + .map_err(crate::error::ListDocumentsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_document_versions_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDocumentVersionsOutput, + crate::error::ListDocumentVersionsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListDocumentVersionsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListDocumentVersionsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListDocumentVersionsError { + meta: generic, + kind: crate::error::ListDocumentVersionsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentVersionsError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::ListDocumentVersionsError { + meta: generic, + kind: crate::error::ListDocumentVersionsErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentVersionsError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListDocumentVersionsError { + meta: generic, + kind: crate::error::ListDocumentVersionsErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentVersionsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListDocumentVersionsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_document_versions_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListDocumentVersionsOutput, + crate::error::ListDocumentVersionsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_document_versions_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_document_versions( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListDocumentVersionsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_inventory_entries_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListInventoryEntriesOutput, + crate::error::ListInventoryEntriesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListInventoryEntriesError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListInventoryEntriesError { + meta: generic, + kind: crate::error::ListInventoryEntriesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::ListInventoryEntriesError { + meta: generic, + kind: crate::error::ListInventoryEntriesErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::ListInventoryEntriesError { + meta: generic, + kind: crate::error::ListInventoryEntriesErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListInventoryEntriesError { + meta: generic, + kind: crate::error::ListInventoryEntriesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }), + }, + "InvalidTypeNameException" => crate::error::ListInventoryEntriesError { + meta: generic, + kind: crate::error::ListInventoryEntriesErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListInventoryEntriesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_inventory_entries_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListInventoryEntriesOutput, + crate::error::ListInventoryEntriesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_inventory_entries_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_inventory_entries( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListInventoryEntriesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_item_events_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListOpsItemEventsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListOpsItemEventsError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListOpsItemEventsError { + meta: generic, + kind: crate::error::ListOpsItemEventsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsItemEventsError::unhandled)?; + output.build() + }), + }, + "OpsItemInvalidParameterException" => crate::error::ListOpsItemEventsError { + meta: generic, + kind: crate::error::ListOpsItemEventsErrorKind::OpsItemInvalidParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListOpsItemEventsError::unhandled)?; + output.build() + }), + }, + "OpsItemLimitExceededException" => { + crate::error::ListOpsItemEventsError { + meta: generic, + kind: crate::error::ListOpsItemEventsErrorKind::OpsItemLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListOpsItemEventsError::unhandled)?; + output.build() + }), + } + } + "OpsItemNotFoundException" => crate::error::ListOpsItemEventsError { + meta: generic, + kind: crate::error::ListOpsItemEventsErrorKind::OpsItemNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::ops_item_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsItemEventsError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListOpsItemEventsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_item_events_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_ops_item_events_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_ops_item_events( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsItemEventsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_item_related_items_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListOpsItemRelatedItemsOutput, + crate::error::ListOpsItemRelatedItemsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListOpsItemRelatedItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ListOpsItemRelatedItemsError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::ListOpsItemRelatedItemsError { + meta: generic, + kind: crate::error::ListOpsItemRelatedItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsItemRelatedItemsError::unhandled)?; + output.build() + }), + }, + "OpsItemInvalidParameterException" => crate::error::ListOpsItemRelatedItemsError { + meta: generic, + kind: crate::error::ListOpsItemRelatedItemsErrorKind::OpsItemInvalidParameterException( + { + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListOpsItemRelatedItemsError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::ListOpsItemRelatedItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_item_related_items_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListOpsItemRelatedItemsOutput, + crate::error::ListOpsItemRelatedItemsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_ops_item_related_items_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_ops_item_related_items( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsItemRelatedItemsError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_metadata_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListOpsMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListOpsMetadataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListOpsMetadataError { + meta: generic, + kind: crate::error::ListOpsMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataInvalidArgumentException" => crate::error::ListOpsMetadataError { + meta: generic, + kind: crate::error::ListOpsMetadataErrorKind::OpsMetadataInvalidArgumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_invalid_argument_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListOpsMetadataError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListOpsMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_ops_metadata_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_ops_metadata_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_list_ops_metadata(response.body().as_ref(), output) + .map_err(crate::error::ListOpsMetadataError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_compliance_summaries_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListResourceComplianceSummariesOutput, + crate::error::ListResourceComplianceSummariesError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListResourceComplianceSummariesError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListResourceComplianceSummariesError { + meta: generic, + kind: crate::error::ListResourceComplianceSummariesErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; + output.build() + }), + }, + "InvalidFilter" => crate::error::ListResourceComplianceSummariesError { + meta: generic, + kind: crate::error::ListResourceComplianceSummariesErrorKind::InvalidFilter({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_filter::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_filterjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; + output.build() + }), + }, + "InvalidNextToken" => crate::error::ListResourceComplianceSummariesError { + meta: generic, + kind: crate::error::ListResourceComplianceSummariesErrorKind::InvalidNextToken({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ListResourceComplianceSummariesError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_compliance_summaries_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListResourceComplianceSummariesOutput, + crate::error::ListResourceComplianceSummariesError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::list_resource_compliance_summaries_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_resource_compliance_summaries( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceComplianceSummariesError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_data_sync_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListResourceDataSyncOutput, + crate::error::ListResourceDataSyncError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListResourceDataSyncError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListResourceDataSyncError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListResourceDataSyncError { meta: generic, kind: crate::error::ListResourceDataSyncErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::ListResourceDataSyncError::unhandled)?; + output.build() + })}, + "InvalidNextToken" => crate::error::ListResourceDataSyncError { meta: generic, kind: crate::error::ListResourceDataSyncErrorKind::InvalidNextToken({ + #[allow(unused_mut)]let mut output = crate::error::invalid_next_token::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_next_tokenjson_err(response.body().as_ref(), output).map_err(crate::error::ListResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncInvalidConfigurationException" => crate::error::ListResourceDataSyncError { meta: generic, kind: crate::error::ListResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListResourceDataSyncError::unhandled)?; + output.build() + })}, + _ => crate::error::ListResourceDataSyncError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_resource_data_sync_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListResourceDataSyncOutput, + crate::error::ListResourceDataSyncError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_resource_data_sync_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_resource_data_sync( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListResourceDataSyncError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ListTagsForResourceError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidResourceType" => crate::error::ListTagsForResourceError { + meta: generic, + kind: crate::error::ListTagsForResourceErrorKind::InvalidResourceType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_type::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_list_tags_for_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ListTagsForResourceOutput, + crate::error::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::list_tags_for_resource_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_list_tags_for_resource( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ListTagsForResourceError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_modify_document_permission_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ModifyDocumentPermissionOutput, + crate::error::ModifyDocumentPermissionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::ModifyDocumentPermissionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DocumentLimitExceeded" => crate::error::ModifyDocumentPermissionError { + meta: generic, + kind: crate::error::ModifyDocumentPermissionErrorKind::DocumentLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::document_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_document_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "DocumentPermissionLimit" => crate::error::ModifyDocumentPermissionError { + meta: generic, + kind: crate::error::ModifyDocumentPermissionErrorKind::DocumentPermissionLimit({ + #[allow(unused_mut)] + let mut output = crate::error::document_permission_limit::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_document_permission_limitjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::ModifyDocumentPermissionError { + meta: generic, + kind: crate::error::ModifyDocumentPermissionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::ModifyDocumentPermissionError { + meta: generic, + kind: crate::error::ModifyDocumentPermissionErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + output.build() + }), + }, + "InvalidPermissionType" => crate::error::ModifyDocumentPermissionError { + meta: generic, + kind: crate::error::ModifyDocumentPermissionErrorKind::InvalidPermissionType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_permission_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_permission_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ModifyDocumentPermissionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ModifyDocumentPermissionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_modify_document_permission_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ModifyDocumentPermissionOutput, + crate::error::ModifyDocumentPermissionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::modify_document_permission_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_compliance_items_error( + response: &http::Response, +) -> std::result::Result< + crate::output::PutComplianceItemsOutput, + crate::error::PutComplianceItemsError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutComplianceItemsError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutComplianceItemsError::unhandled(generic)), + }; + Err(match error_code { + "ComplianceTypeCountLimitExceededException" => crate::error::PutComplianceItemsError { + meta: generic, + kind: + crate::error::PutComplianceItemsErrorKind::ComplianceTypeCountLimitExceededException( + { + #[allow(unused_mut)]let mut output = crate::error::compliance_type_count_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_compliance_type_count_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutComplianceItemsError::unhandled)?; + output.build() + }, + ), + }, + "InternalServerError" => crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutComplianceItemsError::unhandled)?; + output.build() + }), + }, + "InvalidItemContentException" => crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::InvalidItemContentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_item_content_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_item_content_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutComplianceItemsError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidResourceType" => crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::InvalidResourceType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_type::Builder::default(); + let _ = response; + output.build() + }), + }, + "ItemSizeLimitExceededException" => { + crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::ItemSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::item_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutComplianceItemsError::unhandled)?; + output.build() + }), + } + } + "TotalSizeLimitExceededException" => { + crate::error::PutComplianceItemsError { + meta: generic, + kind: crate::error::PutComplianceItemsErrorKind::TotalSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::total_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_total_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutComplianceItemsError::unhandled)?; + output.build() + }), + } + } + _ => crate::error::PutComplianceItemsError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_compliance_items_response( + response: &http::Response, +) -> std::result::Result< + crate::output::PutComplianceItemsOutput, + crate::error::PutComplianceItemsError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_compliance_items_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_inventory_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutInventoryError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutInventoryError::unhandled(generic)), + }; + Err(match error_code { + "CustomSchemaCountLimitExceededException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::CustomSchemaCountLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::custom_schema_count_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_custom_schema_count_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidInventoryItemContextException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::InvalidInventoryItemContextException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_inventory_item_context_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_inventory_item_context_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidItemContentException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::InvalidItemContentException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_item_content_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_item_content_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "InvalidTypeNameException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::InvalidTypeNameException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_type_name_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_type_name_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "ItemContentMismatchException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::ItemContentMismatchException({ + #[allow(unused_mut)] + let mut output = crate::error::item_content_mismatch_exception::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_item_content_mismatch_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "ItemSizeLimitExceededException" => { + crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::ItemSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::item_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_item_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + } + } + "SubTypeCountLimitExceededException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::SubTypeCountLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::sub_type_count_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_sub_type_count_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "TotalSizeLimitExceededException" => { + crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::TotalSizeLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::total_size_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_total_size_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + } + } + "UnsupportedInventoryItemContextException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::UnsupportedInventoryItemContextException({ + #[allow(unused_mut)] + let mut output = + crate::error::unsupported_inventory_item_context_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_inventory_item_context_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }), + }, + "UnsupportedInventorySchemaVersionException" => crate::error::PutInventoryError { + meta: generic, + kind: crate::error::PutInventoryErrorKind::UnsupportedInventorySchemaVersionException( + { + #[allow(unused_mut)]let mut output = crate::error::unsupported_inventory_schema_version_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_inventory_schema_version_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }, + ), + }, + _ => crate::error::PutInventoryError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_inventory_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_inventory_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_inventory(response.body().as_ref(), output) + .map_err(crate::error::PutInventoryError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_parameter_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::PutParameterError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::PutParameterError::unhandled(generic)), + }; + Err(match error_code { + "HierarchyLevelLimitExceededException" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::HierarchyLevelLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::hierarchy_level_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_hierarchy_level_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "HierarchyTypeMismatchException" => { + crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::HierarchyTypeMismatchException({ + #[allow(unused_mut)] + let mut output = + crate::error::hierarchy_type_mismatch_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_hierarchy_type_mismatch_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + } + } + "IncompatiblePolicyException" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::IncompatiblePolicyException({ + #[allow(unused_mut)] + let mut output = crate::error::incompatible_policy_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_incompatible_policy_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "InvalidAllowedPatternException" => { + crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::InvalidAllowedPatternException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_allowed_pattern_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_allowed_pattern_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + } + } + "InvalidKeyId" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::InvalidKeyId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_key_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_key_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "InvalidPolicyAttributeException" => { + crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::InvalidPolicyAttributeException({ + #[allow(unused_mut)] + let mut output = + crate::error::invalid_policy_attribute_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_policy_attribute_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + } + } + "InvalidPolicyTypeException" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::InvalidPolicyTypeException({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_policy_type_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_policy_type_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "ParameterAlreadyExists" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::ParameterAlreadyExists({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_already_exists::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_already_existsjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "ParameterLimitExceeded" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::ParameterLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "ParameterMaxVersionLimitExceeded" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::ParameterMaxVersionLimitExceeded({ + #[allow(unused_mut)] + let mut output = + crate::error::parameter_max_version_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_max_version_limit_exceededjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "ParameterPatternMismatchException" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::ParameterPatternMismatchException({ + #[allow(unused_mut)] + let mut output = + crate::error::parameter_pattern_mismatch_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_pattern_mismatch_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "PoliciesLimitExceededException" => { + crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::PoliciesLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::policies_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_policies_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + } + } + "TooManyUpdates" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + "UnsupportedParameterType" => crate::error::PutParameterError { + meta: generic, + kind: crate::error::PutParameterErrorKind::UnsupportedParameterType({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_parameter_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_parameter_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }), + }, + _ => crate::error::PutParameterError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_put_parameter_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::put_parameter_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_put_parameter(response.body().as_ref(), output) + .map_err(crate::error::PutParameterError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_default_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterDefaultPatchBaselineOutput, + crate::error::RegisterDefaultPatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterDefaultPatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterDefaultPatchBaselineError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::RegisterDefaultPatchBaselineError { + meta: generic, + kind: crate::error::RegisterDefaultPatchBaselineErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterDefaultPatchBaselineError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::RegisterDefaultPatchBaselineError { + meta: generic, + kind: crate::error::RegisterDefaultPatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterDefaultPatchBaselineError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::RegisterDefaultPatchBaselineError { + meta: generic, + kind: crate::error::RegisterDefaultPatchBaselineErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + _ => crate::error::RegisterDefaultPatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_default_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterDefaultPatchBaselineOutput, + crate::error::RegisterDefaultPatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::register_default_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_default_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterDefaultPatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_patch_baseline_for_patch_group_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterPatchBaselineForPatchGroupOutput, + crate::error::RegisterPatchBaselineForPatchGroupError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled(generic)) + } + }; + Err(match error_code { + "AlreadyExistsException" => crate::error::RegisterPatchBaselineForPatchGroupError { meta: generic, kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::AlreadyExistsException({ + #[allow(unused_mut)]let mut output = crate::error::already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + })}, + "DoesNotExistException" => crate::error::RegisterPatchBaselineForPatchGroupError { meta: generic, kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::RegisterPatchBaselineForPatchGroupError { meta: generic, kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + })}, + "InvalidResourceId" => crate::error::RegisterPatchBaselineForPatchGroupError { meta: generic, kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::InvalidResourceId({ + #[allow(unused_mut)]let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + })}, + "ResourceLimitExceededException" => crate::error::RegisterPatchBaselineForPatchGroupError { meta: generic, kind: crate::error::RegisterPatchBaselineForPatchGroupErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + })}, + _ => crate::error::RegisterPatchBaselineForPatchGroupError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_patch_baseline_for_patch_group_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterPatchBaselineForPatchGroupOutput, + crate::error::RegisterPatchBaselineForPatchGroupError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::register_patch_baseline_for_patch_group_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_patch_baseline_for_patch_group( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterPatchBaselineForPatchGroupError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_target_with_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTargetWithMaintenanceWindowOutput, + crate::error::RegisterTargetWithMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::RegisterTargetWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "IdempotentParameterMismatch" => crate::error::RegisterTargetWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)]let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::RegisterTargetWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "ResourceLimitExceededException" => crate::error::RegisterTargetWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTargetWithMaintenanceWindowErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + _ => crate::error::RegisterTargetWithMaintenanceWindowError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_target_with_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTargetWithMaintenanceWindowOutput, + crate::error::RegisterTargetWithMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::register_target_with_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_target_with_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTargetWithMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_task_with_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTaskWithMaintenanceWindowOutput, + crate::error::RegisterTaskWithMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled(generic)) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::RegisterTaskWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::DoesNotExistException({ + #[allow(unused_mut)]let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "FeatureNotAvailableException" => crate::error::RegisterTaskWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::FeatureNotAvailableException({ + #[allow(unused_mut)]let mut output = crate::error::feature_not_available_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_feature_not_available_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "IdempotentParameterMismatch" => crate::error::RegisterTaskWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)]let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::RegisterTaskWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + "ResourceLimitExceededException" => crate::error::RegisterTaskWithMaintenanceWindowError { meta: generic, kind: crate::error::RegisterTaskWithMaintenanceWindowErrorKind::ResourceLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::resource_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + })}, + _ => crate::error::RegisterTaskWithMaintenanceWindowError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_register_task_with_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RegisterTaskWithMaintenanceWindowOutput, + crate::error::RegisterTaskWithMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::output::register_task_with_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_register_task_with_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RegisterTaskWithMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_tags_from_resource_error( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveTagsFromResourceOutput, + crate::error::RemoveTagsFromResourceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::RemoveTagsFromResourceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::RemoveTagsFromResourceError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::RemoveTagsFromResourceError { + meta: generic, + kind: crate::error::RemoveTagsFromResourceErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromResourceError::unhandled)?; + output.build() + }), + }, + "InvalidResourceId" => crate::error::RemoveTagsFromResourceError { + meta: generic, + kind: crate::error::RemoveTagsFromResourceErrorKind::InvalidResourceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidResourceType" => crate::error::RemoveTagsFromResourceError { + meta: generic, + kind: crate::error::RemoveTagsFromResourceErrorKind::InvalidResourceType({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_resource_type::Builder::default(); + let _ = response; + output.build() + }), + }, + "TooManyUpdates" => crate::error::RemoveTagsFromResourceError { + meta: generic, + kind: crate::error::RemoveTagsFromResourceErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::RemoveTagsFromResourceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::RemoveTagsFromResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_remove_tags_from_resource_response( + response: &http::Response, +) -> std::result::Result< + crate::output::RemoveTagsFromResourceOutput, + crate::error::RemoveTagsFromResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::remove_tags_from_resource_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_reset_service_setting_error( + response: &http::Response, +) -> std::result::Result< + crate::output::ResetServiceSettingOutput, + crate::error::ResetServiceSettingError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ResetServiceSettingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ResetServiceSettingError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::ResetServiceSettingError { + meta: generic, + kind: crate::error::ResetServiceSettingErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResetServiceSettingError::unhandled)?; + output.build() + }), + }, + "ServiceSettingNotFound" => crate::error::ResetServiceSettingError { + meta: generic, + kind: crate::error::ResetServiceSettingErrorKind::ServiceSettingNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::service_setting_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_setting_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResetServiceSettingError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::ResetServiceSettingError { + meta: generic, + kind: crate::error::ResetServiceSettingErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResetServiceSettingError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ResetServiceSettingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_reset_service_setting_response( + response: &http::Response, +) -> std::result::Result< + crate::output::ResetServiceSettingOutput, + crate::error::ResetServiceSettingError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::reset_service_setting_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_reset_service_setting( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResetServiceSettingError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_resume_session_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::ResumeSessionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::ResumeSessionError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::ResumeSessionError { + meta: generic, + kind: crate::error::ResumeSessionErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResumeSessionError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::ResumeSessionError { + meta: generic, + kind: crate::error::ResumeSessionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::ResumeSessionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::ResumeSessionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_resume_session_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::resume_session_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_resume_session(response.body().as_ref(), output) + .map_err(crate::error::ResumeSessionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_automation_signal_error( + response: &http::Response, +) -> std::result::Result< + crate::output::SendAutomationSignalOutput, + crate::error::SendAutomationSignalError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SendAutomationSignalError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SendAutomationSignalError::unhandled(generic)), + }; + Err(match error_code { + "AutomationExecutionNotFoundException" => crate::error::SendAutomationSignalError { + meta: generic, + kind: crate::error::SendAutomationSignalErrorKind::AutomationExecutionNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::automation_execution_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendAutomationSignalError::unhandled)?; + output.build() + }, + ), + }, + "AutomationStepNotFoundException" => { + crate::error::SendAutomationSignalError { + meta: generic, + kind: crate::error::SendAutomationSignalErrorKind::AutomationStepNotFoundException( + { + #[allow(unused_mut)] + let mut output = + crate::error::automation_step_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_step_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendAutomationSignalError::unhandled)?; + output.build() + }, + ), + } + } + "InternalServerError" => crate::error::SendAutomationSignalError { + meta: generic, + kind: crate::error::SendAutomationSignalErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendAutomationSignalError::unhandled)?; + output.build() + }), + }, + "InvalidAutomationSignalException" => { + crate::error::SendAutomationSignalError { + meta: generic, + kind: crate::error::SendAutomationSignalErrorKind::InvalidAutomationSignalException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_automation_signal_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_automation_signal_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::SendAutomationSignalError::unhandled)?; + output.build() + }, + ), + } + } + _ => crate::error::SendAutomationSignalError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_automation_signal_response( + response: &http::Response, +) -> std::result::Result< + crate::output::SendAutomationSignalOutput, + crate::error::SendAutomationSignalError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::send_automation_signal_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_command_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::SendCommandError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::SendCommandError::unhandled(generic)), + }; + Err(match error_code { + "DuplicateInstanceId" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::DuplicateInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_instance_id::Builder::default(); + let _ = response; + output.build() + }), + }, + "InternalServerError" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidNotificationConfig" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidNotificationConfig({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_notification_config::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_notification_configjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidOutputFolder" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidOutputFolder({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_output_folder::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidParameters" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidParameters({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameters::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parametersjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "InvalidRole" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::InvalidRole({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_role::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_rolejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "MaxDocumentSizeExceeded" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::MaxDocumentSizeExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::max_document_size_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_max_document_size_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + "UnsupportedPlatformType" => crate::error::SendCommandError { + meta: generic, + kind: crate::error::SendCommandErrorKind::UnsupportedPlatformType({ + #[allow(unused_mut)] + let mut output = crate::error::unsupported_platform_type::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_unsupported_platform_typejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }), + }, + _ => crate::error::SendCommandError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_send_command_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::send_command_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_send_command(response.body().as_ref(), output) + .map_err(crate::error::SendCommandError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_associations_once_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartAssociationsOnceOutput, + crate::error::StartAssociationsOnceError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartAssociationsOnceError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartAssociationsOnceError::unhandled(generic)), + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::StartAssociationsOnceError { + meta: generic, + kind: crate::error::StartAssociationsOnceErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartAssociationsOnceError::unhandled)?; + output.build() + }), + }, + "InvalidAssociation" => crate::error::StartAssociationsOnceError { + meta: generic, + kind: crate::error::StartAssociationsOnceErrorKind::InvalidAssociation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_association::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_associationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartAssociationsOnceError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartAssociationsOnceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_associations_once_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartAssociationsOnceOutput, + crate::error::StartAssociationsOnceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_associations_once_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_automation_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartAutomationExecutionOutput, + crate::error::StartAutomationExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartAutomationExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StartAutomationExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AutomationDefinitionNotFoundException" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_definition_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_definition_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "AutomationDefinitionVersionNotFoundException" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::AutomationDefinitionVersionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_definition_version_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_definition_version_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "AutomationExecutionLimitExceededException" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::AutomationExecutionLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::automation_execution_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "IdempotentParameterMismatch" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)]let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "InvalidAutomationExecutionParametersException" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::InvalidAutomationExecutionParametersException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_automation_execution_parameters_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_automation_execution_parameters_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + "InvalidTarget" => crate::error::StartAutomationExecutionError { meta: generic, kind: crate::error::StartAutomationExecutionErrorKind::InvalidTarget({ + #[allow(unused_mut)]let mut output = crate::error::invalid_target::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_targetjson_err(response.body().as_ref(), output).map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + })}, + _ => crate::error::StartAutomationExecutionError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_automation_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartAutomationExecutionOutput, + crate::error::StartAutomationExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_automation_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_automation_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartAutomationExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_change_request_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StartChangeRequestExecutionOutput, + crate::error::StartChangeRequestExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StartChangeRequestExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AutomationDefinitionNotApprovedException" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException({ + #[allow(unused_mut)]let mut output = crate::error::automation_definition_not_approved_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_definition_not_approved_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "AutomationDefinitionNotFoundException" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_definition_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_definition_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "AutomationDefinitionVersionNotFoundException" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_definition_version_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_definition_version_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "AutomationExecutionLimitExceededException" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException({ + #[allow(unused_mut)]let mut output = crate::error::automation_execution_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "IdempotentParameterMismatch" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch({ + #[allow(unused_mut)]let mut output = crate::error::idempotent_parameter_mismatch::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_idempotent_parameter_mismatchjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + "InvalidAutomationExecutionParametersException" => crate::error::StartChangeRequestExecutionError { meta: generic, kind: crate::error::StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_automation_execution_parameters_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_automation_execution_parameters_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + })}, + _ => crate::error::StartChangeRequestExecutionError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_change_request_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StartChangeRequestExecutionOutput, + crate::error::StartChangeRequestExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_change_request_execution_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_change_request_execution( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartChangeRequestExecutionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_session_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StartSessionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::StartSessionError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::StartSessionError { + meta: generic, + kind: crate::error::StartSessionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartSessionError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::StartSessionError { + meta: generic, + kind: crate::error::StartSessionErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartSessionError::unhandled)?; + output.build() + }), + }, + "TargetNotConnected" => crate::error::StartSessionError { + meta: generic, + kind: crate::error::StartSessionErrorKind::TargetNotConnected({ + #[allow(unused_mut)] + let mut output = crate::error::target_not_connected::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_target_not_connectedjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::StartSessionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::StartSessionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_start_session_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::start_session_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_start_session(response.body().as_ref(), output) + .map_err(crate::error::StartSessionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_automation_execution_error( + response: &http::Response, +) -> std::result::Result< + crate::output::StopAutomationExecutionOutput, + crate::error::StopAutomationExecutionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::StopAutomationExecutionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::StopAutomationExecutionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AutomationExecutionNotFoundException" => crate::error::StopAutomationExecutionError { meta: generic, kind: crate::error::StopAutomationExecutionErrorKind::AutomationExecutionNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::automation_execution_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_automation_execution_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StopAutomationExecutionError::unhandled)?; + output.build() + })}, + "InternalServerError" => crate::error::StopAutomationExecutionError { meta: generic, kind: crate::error::StopAutomationExecutionErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::StopAutomationExecutionError::unhandled)?; + output.build() + })}, + "InvalidAutomationStatusUpdateException" => crate::error::StopAutomationExecutionError { meta: generic, kind: crate::error::StopAutomationExecutionErrorKind::InvalidAutomationStatusUpdateException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_automation_status_update_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_automation_status_update_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::StopAutomationExecutionError::unhandled)?; + output.build() + })}, + _ => crate::error::StopAutomationExecutionError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_stop_automation_execution_response( + response: &http::Response, +) -> std::result::Result< + crate::output::StopAutomationExecutionOutput, + crate::error::StopAutomationExecutionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::stop_automation_execution_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_terminate_session_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::TerminateSessionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::TerminateSessionError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::TerminateSessionError { + meta: generic, + kind: crate::error::TerminateSessionErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TerminateSessionError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::TerminateSessionError { + meta: generic, + kind: crate::error::TerminateSessionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::TerminateSessionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::TerminateSessionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_terminate_session_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::terminate_session_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_terminate_session(response.body().as_ref(), output) + .map_err(crate::error::TerminateSessionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_unlabel_parameter_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UnlabelParameterVersionOutput, + crate::error::UnlabelParameterVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UnlabelParameterVersionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UnlabelParameterVersionError { + meta: generic, + kind: crate::error::UnlabelParameterVersionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "ParameterNotFound" => crate::error::UnlabelParameterVersionError { + meta: generic, + kind: crate::error::UnlabelParameterVersionErrorKind::ParameterNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "ParameterVersionNotFound" => crate::error::UnlabelParameterVersionError { + meta: generic, + kind: crate::error::UnlabelParameterVersionErrorKind::ParameterVersionNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::parameter_version_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_parameter_version_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::UnlabelParameterVersionError { + meta: generic, + kind: crate::error::UnlabelParameterVersionErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UnlabelParameterVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_unlabel_parameter_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UnlabelParameterVersionOutput, + crate::error::UnlabelParameterVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::unlabel_parameter_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_unlabel_parameter_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UnlabelParameterVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_association_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateAssociationError::unhandled(generic)), + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "AssociationVersionLimitExceeded" => { + crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::AssociationVersionLimitExceeded({ + #[allow(unused_mut)] + let mut output = + crate::error::association_version_limit_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_version_limit_exceededjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + } + } + "InternalServerError" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidAssociationVersion" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidAssociationVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_association_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_association_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidOutputLocation" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidOutputLocation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_output_location::Builder::default(); + let _ = response; + output.build() + }), + }, + "InvalidParameters" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidParameters({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_parameters::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_parametersjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidSchedule" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidSchedule({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_schedule::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_schedulejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidTarget" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidTarget({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_target::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_targetjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "InvalidUpdate" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::InvalidUpdate({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_update::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_updatejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::UpdateAssociationError { + meta: generic, + kind: crate::error::UpdateAssociationErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateAssociationError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_association_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_association_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_association(response.body().as_ref(), output) + .map_err(crate::error::UpdateAssociationError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_association_status_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateAssociationStatusOutput, + crate::error::UpdateAssociationStatusError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateAssociationStatusError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "AssociationDoesNotExist" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::AssociationDoesNotExist({ + #[allow(unused_mut)] + let mut output = crate::error::association_does_not_exist::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_association_does_not_existjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }), + }, + "StatusUnchanged" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::StatusUnchanged({ + #[allow(unused_mut)] + let mut output = crate::error::status_unchanged::Builder::default(); + let _ = response; + output.build() + }), + }, + "TooManyUpdates" => crate::error::UpdateAssociationStatusError { + meta: generic, + kind: crate::error::UpdateAssociationStatusErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateAssociationStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_association_status_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateAssociationStatusOutput, + crate::error::UpdateAssociationStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_association_status_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_association_status( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateAssociationStatusError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateDocumentError::unhandled(generic)), + }; + Err(match error_code { + "DocumentVersionLimitExceeded" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::DocumentVersionLimitExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::document_version_limit_exceeded::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_document_version_limit_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "DuplicateDocumentContent" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::DuplicateDocumentContent({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_document_content::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_duplicate_document_contentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "DuplicateDocumentVersionName" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::DuplicateDocumentVersionName({ + #[allow(unused_mut)] + let mut output = crate::error::duplicate_document_version_name::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_duplicate_document_version_namejson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentContent" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentContent({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_content::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_contentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentOperation" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentOperation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_operation::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_operationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentSchemaVersion" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentSchemaVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_schema_version::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_document_schema_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + "MaxDocumentSizeExceeded" => crate::error::UpdateDocumentError { + meta: generic, + kind: crate::error::UpdateDocumentErrorKind::MaxDocumentSizeExceeded({ + #[allow(unused_mut)] + let mut output = crate::error::max_document_size_exceeded::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_max_document_size_exceededjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateDocumentError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_document_output::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_operation_update_document(response.body().as_ref(), output) + .map_err(crate::error::UpdateDocumentError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_default_version_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateDocumentDefaultVersionOutput, + crate::error::UpdateDocumentDefaultVersionError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateDocumentDefaultVersionError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateDocumentDefaultVersionError { + meta: generic, + kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::UpdateDocumentDefaultVersionError { + meta: generic, + kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentSchemaVersion" => crate::error::UpdateDocumentDefaultVersionError { + meta: generic, + kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocumentSchemaVersion( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_document_schema_version::Builder::default(); + let _ = response; + output = + crate::json_deser::deser_structure_invalid_document_schema_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + output.build() + }, + ), + }, + "InvalidDocumentVersion" => crate::error::UpdateDocumentDefaultVersionError { + meta: generic, + kind: crate::error::UpdateDocumentDefaultVersionErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateDocumentDefaultVersionError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_default_version_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateDocumentDefaultVersionOutput, + crate::error::UpdateDocumentDefaultVersionError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_document_default_version_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_document_default_version( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentDefaultVersionError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_metadata_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateDocumentMetadataOutput, + crate::error::UpdateDocumentMetadataError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateDocumentMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateDocumentMetadataError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateDocumentMetadataError { + meta: generic, + kind: crate::error::UpdateDocumentMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentMetadataError::unhandled)?; + output.build() + }), + }, + "InvalidDocument" => crate::error::UpdateDocumentMetadataError { + meta: generic, + kind: crate::error::UpdateDocumentMetadataErrorKind::InvalidDocument({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_documentjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentMetadataError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentOperation" => crate::error::UpdateDocumentMetadataError { + meta: generic, + kind: crate::error::UpdateDocumentMetadataErrorKind::InvalidDocumentOperation({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_operation::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_operationjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentMetadataError::unhandled)?; + output.build() + }), + }, + "InvalidDocumentVersion" => crate::error::UpdateDocumentMetadataError { + meta: generic, + kind: crate::error::UpdateDocumentMetadataErrorKind::InvalidDocumentVersion({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_document_version::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_document_versionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateDocumentMetadataError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateDocumentMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_document_metadata_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateDocumentMetadataOutput, + crate::error::UpdateDocumentMetadataError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_document_metadata_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowOutput, + crate::error::UpdateMaintenanceWindowError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateMaintenanceWindowError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateMaintenanceWindowError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::UpdateMaintenanceWindowError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateMaintenanceWindowError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateMaintenanceWindowError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowOutput, + crate::error::UpdateMaintenanceWindowError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_maintenance_window_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_maintenance_window( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_target_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowTargetOutput, + crate::error::UpdateMaintenanceWindowTargetError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateMaintenanceWindowTargetError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateMaintenanceWindowTargetError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::UpdateMaintenanceWindowTargetError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowTargetErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTargetError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateMaintenanceWindowTargetError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowTargetErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTargetError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateMaintenanceWindowTargetError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_target_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowTargetOutput, + crate::error::UpdateMaintenanceWindowTargetError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_maintenance_window_target_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_maintenance_window_target( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTargetError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_task_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowTaskOutput, + crate::error::UpdateMaintenanceWindowTaskError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateMaintenanceWindowTaskError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateMaintenanceWindowTaskError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "DoesNotExistException" => crate::error::UpdateMaintenanceWindowTaskError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowTaskErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTaskError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdateMaintenanceWindowTaskError { + meta: generic, + kind: crate::error::UpdateMaintenanceWindowTaskErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTaskError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateMaintenanceWindowTaskError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_maintenance_window_task_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateMaintenanceWindowTaskOutput, + crate::error::UpdateMaintenanceWindowTaskError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_maintenance_window_task_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_maintenance_window_task( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateMaintenanceWindowTaskError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_managed_instance_role_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateManagedInstanceRoleOutput, + crate::error::UpdateManagedInstanceRoleError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateManagedInstanceRoleError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateManagedInstanceRoleError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateManagedInstanceRoleError { + meta: generic, + kind: crate::error::UpdateManagedInstanceRoleErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateManagedInstanceRoleError::unhandled)?; + output.build() + }), + }, + "InvalidInstanceId" => crate::error::UpdateManagedInstanceRoleError { + meta: generic, + kind: crate::error::UpdateManagedInstanceRoleErrorKind::InvalidInstanceId({ + #[allow(unused_mut)] + let mut output = crate::error::invalid_instance_id::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_invalid_instance_idjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateManagedInstanceRoleError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateManagedInstanceRoleError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_managed_instance_role_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateManagedInstanceRoleOutput, + crate::error::UpdateManagedInstanceRoleError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_managed_instance_role_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_ops_item_error( + response: &http::Response, +) -> std::result::Result { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateOpsItemError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateOpsItemError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateOpsItemError { + meta: generic, + kind: crate::error::UpdateOpsItemErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOpsItemError::unhandled)?; + output.build() + }), + }, + "OpsItemAlreadyExistsException" => { + crate::error::UpdateOpsItemError { + meta: generic, + kind: crate::error::UpdateOpsItemErrorKind::OpsItemAlreadyExistsException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_already_exists_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_already_exists_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsItemError::unhandled)?; + output.build() + }), + } + } + "OpsItemInvalidParameterException" => crate::error::UpdateOpsItemError { + meta: generic, + kind: crate::error::UpdateOpsItemErrorKind::OpsItemInvalidParameterException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_invalid_parameter_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_invalid_parameter_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsItemError::unhandled)?; + output.build() + }), + }, + "OpsItemLimitExceededException" => { + crate::error::UpdateOpsItemError { + meta: generic, + kind: crate::error::UpdateOpsItemErrorKind::OpsItemLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_item_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsItemError::unhandled)?; + output.build() + }), + } + } + "OpsItemNotFoundException" => crate::error::UpdateOpsItemError { + meta: generic, + kind: crate::error::UpdateOpsItemErrorKind::OpsItemNotFoundException({ + #[allow(unused_mut)] + let mut output = crate::error::ops_item_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_item_not_found_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOpsItemError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateOpsItemError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_ops_item_response( + response: &http::Response, +) -> std::result::Result { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_ops_item_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_ops_metadata_error( + response: &http::Response, +) -> std::result::Result +{ + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateOpsMetadataError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateOpsMetadataError { + meta: generic, + kind: crate::error::UpdateOpsMetadataErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataInvalidArgumentException" => crate::error::UpdateOpsMetadataError { + meta: generic, + kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataInvalidArgumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_invalid_argument_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_invalid_argument_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataKeyLimitExceededException" => crate::error::UpdateOpsMetadataError { + meta: generic, + kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataKeyLimitExceededException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_key_limit_exceeded_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_key_limit_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }), + }, + "OpsMetadataNotFoundException" => { + crate::error::UpdateOpsMetadataError { + meta: generic, + kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataNotFoundException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }), + } + } + "OpsMetadataTooManyUpdatesException" => crate::error::UpdateOpsMetadataError { + meta: generic, + kind: crate::error::UpdateOpsMetadataErrorKind::OpsMetadataTooManyUpdatesException({ + #[allow(unused_mut)] + let mut output = + crate::error::ops_metadata_too_many_updates_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_ops_metadata_too_many_updates_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateOpsMetadataError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_ops_metadata_response( + response: &http::Response, +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_ops_metadata_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_ops_metadata( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateOpsMetadataError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_patch_baseline_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdatePatchBaselineOutput, + crate::error::UpdatePatchBaselineError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdatePatchBaselineError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdatePatchBaselineError::unhandled(generic)), + }; + Err(match error_code { + "DoesNotExistException" => crate::error::UpdatePatchBaselineError { + meta: generic, + kind: crate::error::UpdatePatchBaselineErrorKind::DoesNotExistException({ + #[allow(unused_mut)] + let mut output = crate::error::does_not_exist_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_does_not_exist_exceptionjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePatchBaselineError::unhandled)?; + output.build() + }), + }, + "InternalServerError" => crate::error::UpdatePatchBaselineError { + meta: generic, + kind: crate::error::UpdatePatchBaselineErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePatchBaselineError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdatePatchBaselineError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_patch_baseline_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdatePatchBaselineOutput, + crate::error::UpdatePatchBaselineError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_patch_baseline_output::Builder::default(); + let _ = response; + output = crate::json_deser::deser_operation_update_patch_baseline( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdatePatchBaselineError::unhandled)?; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_resource_data_sync_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateResourceDataSyncOutput, + crate::error::UpdateResourceDataSyncError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateResourceDataSyncError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::error::UpdateResourceDataSyncError::unhandled( + generic, + )) + } + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateResourceDataSyncError { meta: generic, kind: crate::error::UpdateResourceDataSyncErrorKind::InternalServerError({ + #[allow(unused_mut)]let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncConflictException" => crate::error::UpdateResourceDataSyncError { meta: generic, kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncConflictException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_conflict_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncInvalidConfigurationException" => crate::error::UpdateResourceDataSyncError { meta: generic, kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncInvalidConfigurationException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_invalid_configuration_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_invalid_configuration_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateResourceDataSyncError::unhandled)?; + output.build() + })}, + "ResourceDataSyncNotFoundException" => crate::error::UpdateResourceDataSyncError { meta: generic, kind: crate::error::UpdateResourceDataSyncErrorKind::ResourceDataSyncNotFoundException({ + #[allow(unused_mut)]let mut output = crate::error::resource_data_sync_not_found_exception::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_resource_data_sync_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateResourceDataSyncError::unhandled)?; + output.build() + })}, + _ => crate::error::UpdateResourceDataSyncError::generic(generic) + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_resource_data_sync_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateResourceDataSyncOutput, + crate::error::UpdateResourceDataSyncError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_resource_data_sync_output::Builder::default(); + let _ = response; + output.build() + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_setting_error( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateServiceSettingOutput, + crate::error::UpdateServiceSettingError, +> { + let generic = crate::json_deser::parse_generic_error(&response) + .map_err(crate::error::UpdateServiceSettingError::unhandled)?; + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::error::UpdateServiceSettingError::unhandled(generic)), + }; + Err(match error_code { + "InternalServerError" => crate::error::UpdateServiceSettingError { + meta: generic, + kind: crate::error::UpdateServiceSettingErrorKind::InternalServerError({ + #[allow(unused_mut)] + let mut output = crate::error::internal_server_error::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_internal_server_errorjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceSettingError::unhandled)?; + output.build() + }), + }, + "ServiceSettingNotFound" => crate::error::UpdateServiceSettingError { + meta: generic, + kind: crate::error::UpdateServiceSettingErrorKind::ServiceSettingNotFound({ + #[allow(unused_mut)] + let mut output = crate::error::service_setting_not_found::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_service_setting_not_foundjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceSettingError::unhandled)?; + output.build() + }), + }, + "TooManyUpdates" => crate::error::UpdateServiceSettingError { + meta: generic, + kind: crate::error::UpdateServiceSettingErrorKind::TooManyUpdates({ + #[allow(unused_mut)] + let mut output = crate::error::too_many_updates::Builder::default(); + let _ = response; + output = crate::json_deser::deser_structure_too_many_updatesjson_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::UpdateServiceSettingError::unhandled)?; + output.build() + }), + }, + _ => crate::error::UpdateServiceSettingError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn parse_update_service_setting_response( + response: &http::Response, +) -> std::result::Result< + crate::output::UpdateServiceSettingOutput, + crate::error::UpdateServiceSettingError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::output::update_service_setting_output::Builder::default(); + let _ = response; + output.build() + }) +} diff --git a/sdk/ssm/src/operation_ser.rs b/sdk/ssm/src/operation_ser.rs index 0dfc2de11275..3f7727a8dbfd 100644 --- a/sdk/ssm/src/operation_ser.rs +++ b/sdk/ssm/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_add_tags_to_resource( input: &crate::input::AddTagsToResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_add_tags_to_resource_input(&mut object, input); @@ -11,7 +11,7 @@ pub fn serialize_operation_add_tags_to_resource( pub fn serialize_operation_associate_ops_item_related_item( input: &crate::input::AssociateOpsItemRelatedItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_associate_ops_item_related_item_input(&mut object, input); @@ -21,7 +21,7 @@ pub fn serialize_operation_associate_ops_item_related_item( pub fn serialize_operation_cancel_command( input: &crate::input::CancelCommandInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_command_input(&mut object, input); @@ -31,7 +31,7 @@ pub fn serialize_operation_cancel_command( pub fn serialize_operation_cancel_maintenance_window_execution( input: &crate::input::CancelMaintenanceWindowExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_cancel_maintenance_window_execution_input( @@ -44,7 +44,7 @@ pub fn serialize_operation_cancel_maintenance_window_execution( pub fn serialize_operation_create_activation( input: &crate::input::CreateActivationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_activation_input(&mut object, input); @@ -54,7 +54,7 @@ pub fn serialize_operation_create_activation( pub fn serialize_operation_create_association( input: &crate::input::CreateAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_association_input(&mut object, input); @@ -64,7 +64,7 @@ pub fn serialize_operation_create_association( pub fn serialize_operation_create_association_batch( input: &crate::input::CreateAssociationBatchInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_association_batch_input(&mut object, input); @@ -74,7 +74,7 @@ pub fn serialize_operation_create_association_batch( pub fn serialize_operation_create_document( input: &crate::input::CreateDocumentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_document_input(&mut object, input); @@ -84,7 +84,7 @@ pub fn serialize_operation_create_document( pub fn serialize_operation_create_maintenance_window( input: &crate::input::CreateMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_maintenance_window_input(&mut object, input); @@ -94,7 +94,7 @@ pub fn serialize_operation_create_maintenance_window( pub fn serialize_operation_create_ops_item( input: &crate::input::CreateOpsItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_ops_item_input(&mut object, input); @@ -104,7 +104,7 @@ pub fn serialize_operation_create_ops_item( pub fn serialize_operation_create_ops_metadata( input: &crate::input::CreateOpsMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_ops_metadata_input(&mut object, input); @@ -114,7 +114,7 @@ pub fn serialize_operation_create_ops_metadata( pub fn serialize_operation_create_patch_baseline( input: &crate::input::CreatePatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_patch_baseline_input(&mut object, input); @@ -124,7 +124,7 @@ pub fn serialize_operation_create_patch_baseline( pub fn serialize_operation_create_resource_data_sync( input: &crate::input::CreateResourceDataSyncInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_create_resource_data_sync_input(&mut object, input); @@ -134,7 +134,7 @@ pub fn serialize_operation_create_resource_data_sync( pub fn serialize_operation_delete_activation( input: &crate::input::DeleteActivationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_activation_input(&mut object, input); @@ -144,7 +144,7 @@ pub fn serialize_operation_delete_activation( pub fn serialize_operation_delete_association( input: &crate::input::DeleteAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_association_input(&mut object, input); @@ -154,7 +154,7 @@ pub fn serialize_operation_delete_association( pub fn serialize_operation_delete_document( input: &crate::input::DeleteDocumentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_document_input(&mut object, input); @@ -164,7 +164,7 @@ pub fn serialize_operation_delete_document( pub fn serialize_operation_delete_inventory( input: &crate::input::DeleteInventoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_inventory_input(&mut object, input); @@ -174,7 +174,7 @@ pub fn serialize_operation_delete_inventory( pub fn serialize_operation_delete_maintenance_window( input: &crate::input::DeleteMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_maintenance_window_input(&mut object, input); @@ -184,7 +184,7 @@ pub fn serialize_operation_delete_maintenance_window( pub fn serialize_operation_delete_ops_metadata( input: &crate::input::DeleteOpsMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_ops_metadata_input(&mut object, input); @@ -194,7 +194,7 @@ pub fn serialize_operation_delete_ops_metadata( pub fn serialize_operation_delete_parameter( input: &crate::input::DeleteParameterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_parameter_input(&mut object, input); @@ -204,7 +204,7 @@ pub fn serialize_operation_delete_parameter( pub fn serialize_operation_delete_parameters( input: &crate::input::DeleteParametersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_parameters_input(&mut object, input); @@ -214,7 +214,7 @@ pub fn serialize_operation_delete_parameters( pub fn serialize_operation_delete_patch_baseline( input: &crate::input::DeletePatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_patch_baseline_input(&mut object, input); @@ -224,7 +224,7 @@ pub fn serialize_operation_delete_patch_baseline( pub fn serialize_operation_delete_resource_data_sync( input: &crate::input::DeleteResourceDataSyncInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_delete_resource_data_sync_input(&mut object, input); @@ -234,7 +234,7 @@ pub fn serialize_operation_delete_resource_data_sync( pub fn serialize_operation_deregister_managed_instance( input: &crate::input::DeregisterManagedInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_managed_instance_input(&mut object, input); @@ -244,7 +244,7 @@ pub fn serialize_operation_deregister_managed_instance( pub fn serialize_operation_deregister_patch_baseline_for_patch_group( input: &crate::input::DeregisterPatchBaselineForPatchGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_patch_baseline_for_patch_group_input( @@ -257,7 +257,7 @@ pub fn serialize_operation_deregister_patch_baseline_for_patch_group( pub fn serialize_operation_deregister_target_from_maintenance_window( input: &crate::input::DeregisterTargetFromMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_target_from_maintenance_window_input( @@ -270,7 +270,7 @@ pub fn serialize_operation_deregister_target_from_maintenance_window( pub fn serialize_operation_deregister_task_from_maintenance_window( input: &crate::input::DeregisterTaskFromMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_deregister_task_from_maintenance_window_input( @@ -283,7 +283,7 @@ pub fn serialize_operation_deregister_task_from_maintenance_window( pub fn serialize_operation_describe_activations( input: &crate::input::DescribeActivationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_activations_input(&mut object, input); @@ -293,7 +293,7 @@ pub fn serialize_operation_describe_activations( pub fn serialize_operation_describe_association( input: &crate::input::DescribeAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_association_input(&mut object, input); @@ -303,7 +303,7 @@ pub fn serialize_operation_describe_association( pub fn serialize_operation_describe_association_executions( input: &crate::input::DescribeAssociationExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_association_executions_input(&mut object, input); @@ -313,7 +313,7 @@ pub fn serialize_operation_describe_association_executions( pub fn serialize_operation_describe_association_execution_targets( input: &crate::input::DescribeAssociationExecutionTargetsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_association_execution_targets_input( @@ -326,7 +326,7 @@ pub fn serialize_operation_describe_association_execution_targets( pub fn serialize_operation_describe_automation_executions( input: &crate::input::DescribeAutomationExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_automation_executions_input(&mut object, input); @@ -336,7 +336,7 @@ pub fn serialize_operation_describe_automation_executions( pub fn serialize_operation_describe_automation_step_executions( input: &crate::input::DescribeAutomationStepExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_automation_step_executions_input( @@ -349,7 +349,7 @@ pub fn serialize_operation_describe_automation_step_executions( pub fn serialize_operation_describe_available_patches( input: &crate::input::DescribeAvailablePatchesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_available_patches_input(&mut object, input); @@ -359,7 +359,7 @@ pub fn serialize_operation_describe_available_patches( pub fn serialize_operation_describe_document( input: &crate::input::DescribeDocumentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_document_input(&mut object, input); @@ -369,7 +369,7 @@ pub fn serialize_operation_describe_document( pub fn serialize_operation_describe_document_permission( input: &crate::input::DescribeDocumentPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_document_permission_input(&mut object, input); @@ -379,7 +379,7 @@ pub fn serialize_operation_describe_document_permission( pub fn serialize_operation_describe_effective_instance_associations( input: &crate::input::DescribeEffectiveInstanceAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_effective_instance_associations_input( @@ -392,7 +392,7 @@ pub fn serialize_operation_describe_effective_instance_associations( pub fn serialize_operation_describe_effective_patches_for_patch_baseline( input: &crate::input::DescribeEffectivePatchesForPatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_effective_patches_for_patch_baseline_input( @@ -405,7 +405,7 @@ pub fn serialize_operation_describe_effective_patches_for_patch_baseline( pub fn serialize_operation_describe_instance_associations_status( input: &crate::input::DescribeInstanceAssociationsStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_instance_associations_status_input( @@ -418,7 +418,7 @@ pub fn serialize_operation_describe_instance_associations_status( pub fn serialize_operation_describe_instance_information( input: &crate::input::DescribeInstanceInformationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_instance_information_input(&mut object, input); @@ -428,7 +428,7 @@ pub fn serialize_operation_describe_instance_information( pub fn serialize_operation_describe_instance_patches( input: &crate::input::DescribeInstancePatchesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_instance_patches_input(&mut object, input); @@ -438,7 +438,7 @@ pub fn serialize_operation_describe_instance_patches( pub fn serialize_operation_describe_instance_patch_states( input: &crate::input::DescribeInstancePatchStatesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_instance_patch_states_input(&mut object, input); @@ -448,7 +448,7 @@ pub fn serialize_operation_describe_instance_patch_states( pub fn serialize_operation_describe_instance_patch_states_for_patch_group( input: &crate::input::DescribeInstancePatchStatesForPatchGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_instance_patch_states_for_patch_group_input( @@ -461,7 +461,7 @@ pub fn serialize_operation_describe_instance_patch_states_for_patch_group( pub fn serialize_operation_describe_inventory_deletions( input: &crate::input::DescribeInventoryDeletionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_inventory_deletions_input(&mut object, input); @@ -471,7 +471,7 @@ pub fn serialize_operation_describe_inventory_deletions( pub fn serialize_operation_describe_maintenance_window_executions( input: &crate::input::DescribeMaintenanceWindowExecutionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_executions_input( @@ -484,7 +484,7 @@ pub fn serialize_operation_describe_maintenance_window_executions( pub fn serialize_operation_describe_maintenance_window_execution_task_invocations( input: &crate::input::DescribeMaintenanceWindowExecutionTaskInvocationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_execution_task_invocations_input(&mut object, input); @@ -494,7 +494,7 @@ pub fn serialize_operation_describe_maintenance_window_execution_task_invocation pub fn serialize_operation_describe_maintenance_window_execution_tasks( input: &crate::input::DescribeMaintenanceWindowExecutionTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_execution_tasks_input( @@ -507,7 +507,7 @@ pub fn serialize_operation_describe_maintenance_window_execution_tasks( pub fn serialize_operation_describe_maintenance_windows( input: &crate::input::DescribeMaintenanceWindowsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_windows_input(&mut object, input); @@ -517,7 +517,7 @@ pub fn serialize_operation_describe_maintenance_windows( pub fn serialize_operation_describe_maintenance_window_schedule( input: &crate::input::DescribeMaintenanceWindowScheduleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_schedule_input( @@ -530,7 +530,7 @@ pub fn serialize_operation_describe_maintenance_window_schedule( pub fn serialize_operation_describe_maintenance_windows_for_target( input: &crate::input::DescribeMaintenanceWindowsForTargetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_windows_for_target_input( @@ -543,7 +543,7 @@ pub fn serialize_operation_describe_maintenance_windows_for_target( pub fn serialize_operation_describe_maintenance_window_targets( input: &crate::input::DescribeMaintenanceWindowTargetsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_targets_input( @@ -556,7 +556,7 @@ pub fn serialize_operation_describe_maintenance_window_targets( pub fn serialize_operation_describe_maintenance_window_tasks( input: &crate::input::DescribeMaintenanceWindowTasksInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_maintenance_window_tasks_input( @@ -569,7 +569,7 @@ pub fn serialize_operation_describe_maintenance_window_tasks( pub fn serialize_operation_describe_ops_items( input: &crate::input::DescribeOpsItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_ops_items_input(&mut object, input); @@ -579,7 +579,7 @@ pub fn serialize_operation_describe_ops_items( pub fn serialize_operation_describe_parameters( input: &crate::input::DescribeParametersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_parameters_input(&mut object, input); @@ -589,7 +589,7 @@ pub fn serialize_operation_describe_parameters( pub fn serialize_operation_describe_patch_baselines( input: &crate::input::DescribePatchBaselinesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_patch_baselines_input(&mut object, input); @@ -599,7 +599,7 @@ pub fn serialize_operation_describe_patch_baselines( pub fn serialize_operation_describe_patch_groups( input: &crate::input::DescribePatchGroupsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_patch_groups_input(&mut object, input); @@ -609,7 +609,7 @@ pub fn serialize_operation_describe_patch_groups( pub fn serialize_operation_describe_patch_group_state( input: &crate::input::DescribePatchGroupStateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_patch_group_state_input(&mut object, input); @@ -619,7 +619,7 @@ pub fn serialize_operation_describe_patch_group_state( pub fn serialize_operation_describe_patch_properties( input: &crate::input::DescribePatchPropertiesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_patch_properties_input(&mut object, input); @@ -629,7 +629,7 @@ pub fn serialize_operation_describe_patch_properties( pub fn serialize_operation_describe_sessions( input: &crate::input::DescribeSessionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_describe_sessions_input(&mut object, input); @@ -639,7 +639,7 @@ pub fn serialize_operation_describe_sessions( pub fn serialize_operation_disassociate_ops_item_related_item( input: &crate::input::DisassociateOpsItemRelatedItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_disassociate_ops_item_related_item_input( @@ -652,7 +652,7 @@ pub fn serialize_operation_disassociate_ops_item_related_item( pub fn serialize_operation_get_automation_execution( input: &crate::input::GetAutomationExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_automation_execution_input(&mut object, input); @@ -662,7 +662,7 @@ pub fn serialize_operation_get_automation_execution( pub fn serialize_operation_get_calendar_state( input: &crate::input::GetCalendarStateInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_calendar_state_input(&mut object, input); @@ -672,7 +672,7 @@ pub fn serialize_operation_get_calendar_state( pub fn serialize_operation_get_command_invocation( input: &crate::input::GetCommandInvocationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_command_invocation_input(&mut object, input); @@ -682,7 +682,7 @@ pub fn serialize_operation_get_command_invocation( pub fn serialize_operation_get_connection_status( input: &crate::input::GetConnectionStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_connection_status_input(&mut object, input); @@ -692,7 +692,7 @@ pub fn serialize_operation_get_connection_status( pub fn serialize_operation_get_default_patch_baseline( input: &crate::input::GetDefaultPatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_default_patch_baseline_input(&mut object, input); @@ -702,7 +702,7 @@ pub fn serialize_operation_get_default_patch_baseline( pub fn serialize_operation_get_deployable_patch_snapshot_for_instance( input: &crate::input::GetDeployablePatchSnapshotForInstanceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_deployable_patch_snapshot_for_instance_input( @@ -715,7 +715,7 @@ pub fn serialize_operation_get_deployable_patch_snapshot_for_instance( pub fn serialize_operation_get_document( input: &crate::input::GetDocumentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_document_input(&mut object, input); @@ -725,7 +725,7 @@ pub fn serialize_operation_get_document( pub fn serialize_operation_get_inventory( input: &crate::input::GetInventoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_inventory_input(&mut object, input); @@ -735,7 +735,7 @@ pub fn serialize_operation_get_inventory( pub fn serialize_operation_get_inventory_schema( input: &crate::input::GetInventorySchemaInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_inventory_schema_input(&mut object, input); @@ -745,7 +745,7 @@ pub fn serialize_operation_get_inventory_schema( pub fn serialize_operation_get_maintenance_window( input: &crate::input::GetMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_maintenance_window_input(&mut object, input); @@ -755,7 +755,7 @@ pub fn serialize_operation_get_maintenance_window( pub fn serialize_operation_get_maintenance_window_execution( input: &crate::input::GetMaintenanceWindowExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_maintenance_window_execution_input(&mut object, input); @@ -765,7 +765,7 @@ pub fn serialize_operation_get_maintenance_window_execution( pub fn serialize_operation_get_maintenance_window_execution_task( input: &crate::input::GetMaintenanceWindowExecutionTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_maintenance_window_execution_task_input( @@ -778,7 +778,7 @@ pub fn serialize_operation_get_maintenance_window_execution_task( pub fn serialize_operation_get_maintenance_window_execution_task_invocation( input: &crate::input::GetMaintenanceWindowExecutionTaskInvocationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_maintenance_window_execution_task_invocation_input( @@ -791,7 +791,7 @@ pub fn serialize_operation_get_maintenance_window_execution_task_invocation( pub fn serialize_operation_get_maintenance_window_task( input: &crate::input::GetMaintenanceWindowTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_maintenance_window_task_input(&mut object, input); @@ -801,7 +801,7 @@ pub fn serialize_operation_get_maintenance_window_task( pub fn serialize_operation_get_ops_item( input: &crate::input::GetOpsItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_ops_item_input(&mut object, input); @@ -811,7 +811,7 @@ pub fn serialize_operation_get_ops_item( pub fn serialize_operation_get_ops_metadata( input: &crate::input::GetOpsMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_ops_metadata_input(&mut object, input); @@ -821,7 +821,7 @@ pub fn serialize_operation_get_ops_metadata( pub fn serialize_operation_get_ops_summary( input: &crate::input::GetOpsSummaryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_ops_summary_input(&mut object, input); @@ -831,7 +831,7 @@ pub fn serialize_operation_get_ops_summary( pub fn serialize_operation_get_parameter( input: &crate::input::GetParameterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_parameter_input(&mut object, input); @@ -841,7 +841,7 @@ pub fn serialize_operation_get_parameter( pub fn serialize_operation_get_parameter_history( input: &crate::input::GetParameterHistoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_parameter_history_input(&mut object, input); @@ -851,7 +851,7 @@ pub fn serialize_operation_get_parameter_history( pub fn serialize_operation_get_parameters( input: &crate::input::GetParametersInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_parameters_input(&mut object, input); @@ -861,7 +861,7 @@ pub fn serialize_operation_get_parameters( pub fn serialize_operation_get_parameters_by_path( input: &crate::input::GetParametersByPathInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_parameters_by_path_input(&mut object, input); @@ -871,7 +871,7 @@ pub fn serialize_operation_get_parameters_by_path( pub fn serialize_operation_get_patch_baseline( input: &crate::input::GetPatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_patch_baseline_input(&mut object, input); @@ -881,7 +881,7 @@ pub fn serialize_operation_get_patch_baseline( pub fn serialize_operation_get_patch_baseline_for_patch_group( input: &crate::input::GetPatchBaselineForPatchGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_patch_baseline_for_patch_group_input( @@ -894,7 +894,7 @@ pub fn serialize_operation_get_patch_baseline_for_patch_group( pub fn serialize_operation_get_service_setting( input: &crate::input::GetServiceSettingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_get_service_setting_input(&mut object, input); @@ -904,7 +904,7 @@ pub fn serialize_operation_get_service_setting( pub fn serialize_operation_label_parameter_version( input: &crate::input::LabelParameterVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_label_parameter_version_input(&mut object, input); @@ -914,7 +914,7 @@ pub fn serialize_operation_label_parameter_version( pub fn serialize_operation_list_associations( input: &crate::input::ListAssociationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_associations_input(&mut object, input); @@ -924,7 +924,7 @@ pub fn serialize_operation_list_associations( pub fn serialize_operation_list_association_versions( input: &crate::input::ListAssociationVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_association_versions_input(&mut object, input); @@ -934,7 +934,7 @@ pub fn serialize_operation_list_association_versions( pub fn serialize_operation_list_command_invocations( input: &crate::input::ListCommandInvocationsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_command_invocations_input(&mut object, input); @@ -944,7 +944,7 @@ pub fn serialize_operation_list_command_invocations( pub fn serialize_operation_list_commands( input: &crate::input::ListCommandsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_commands_input(&mut object, input); @@ -954,7 +954,7 @@ pub fn serialize_operation_list_commands( pub fn serialize_operation_list_compliance_items( input: &crate::input::ListComplianceItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_compliance_items_input(&mut object, input); @@ -964,7 +964,7 @@ pub fn serialize_operation_list_compliance_items( pub fn serialize_operation_list_compliance_summaries( input: &crate::input::ListComplianceSummariesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_compliance_summaries_input(&mut object, input); @@ -974,7 +974,7 @@ pub fn serialize_operation_list_compliance_summaries( pub fn serialize_operation_list_document_metadata_history( input: &crate::input::ListDocumentMetadataHistoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_document_metadata_history_input(&mut object, input); @@ -984,7 +984,7 @@ pub fn serialize_operation_list_document_metadata_history( pub fn serialize_operation_list_documents( input: &crate::input::ListDocumentsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_documents_input(&mut object, input); @@ -994,7 +994,7 @@ pub fn serialize_operation_list_documents( pub fn serialize_operation_list_document_versions( input: &crate::input::ListDocumentVersionsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_document_versions_input(&mut object, input); @@ -1004,7 +1004,7 @@ pub fn serialize_operation_list_document_versions( pub fn serialize_operation_list_inventory_entries( input: &crate::input::ListInventoryEntriesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_inventory_entries_input(&mut object, input); @@ -1014,7 +1014,7 @@ pub fn serialize_operation_list_inventory_entries( pub fn serialize_operation_list_ops_item_events( input: &crate::input::ListOpsItemEventsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_ops_item_events_input(&mut object, input); @@ -1024,7 +1024,7 @@ pub fn serialize_operation_list_ops_item_events( pub fn serialize_operation_list_ops_item_related_items( input: &crate::input::ListOpsItemRelatedItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_ops_item_related_items_input(&mut object, input); @@ -1034,7 +1034,7 @@ pub fn serialize_operation_list_ops_item_related_items( pub fn serialize_operation_list_ops_metadata( input: &crate::input::ListOpsMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_ops_metadata_input(&mut object, input); @@ -1044,7 +1044,7 @@ pub fn serialize_operation_list_ops_metadata( pub fn serialize_operation_list_resource_compliance_summaries( input: &crate::input::ListResourceComplianceSummariesInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_resource_compliance_summaries_input( @@ -1057,7 +1057,7 @@ pub fn serialize_operation_list_resource_compliance_summaries( pub fn serialize_operation_list_resource_data_sync( input: &crate::input::ListResourceDataSyncInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_resource_data_sync_input(&mut object, input); @@ -1067,7 +1067,7 @@ pub fn serialize_operation_list_resource_data_sync( pub fn serialize_operation_list_tags_for_resource( input: &crate::input::ListTagsForResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_list_tags_for_resource_input(&mut object, input); @@ -1077,7 +1077,7 @@ pub fn serialize_operation_list_tags_for_resource( pub fn serialize_operation_modify_document_permission( input: &crate::input::ModifyDocumentPermissionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_modify_document_permission_input(&mut object, input); @@ -1087,7 +1087,7 @@ pub fn serialize_operation_modify_document_permission( pub fn serialize_operation_put_compliance_items( input: &crate::input::PutComplianceItemsInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_compliance_items_input(&mut object, input); @@ -1097,7 +1097,7 @@ pub fn serialize_operation_put_compliance_items( pub fn serialize_operation_put_inventory( input: &crate::input::PutInventoryInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_inventory_input(&mut object, input); @@ -1107,7 +1107,7 @@ pub fn serialize_operation_put_inventory( pub fn serialize_operation_put_parameter( input: &crate::input::PutParameterInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_put_parameter_input(&mut object, input); @@ -1117,7 +1117,7 @@ pub fn serialize_operation_put_parameter( pub fn serialize_operation_register_default_patch_baseline( input: &crate::input::RegisterDefaultPatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_default_patch_baseline_input(&mut object, input); @@ -1127,7 +1127,7 @@ pub fn serialize_operation_register_default_patch_baseline( pub fn serialize_operation_register_patch_baseline_for_patch_group( input: &crate::input::RegisterPatchBaselineForPatchGroupInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_patch_baseline_for_patch_group_input( @@ -1140,7 +1140,7 @@ pub fn serialize_operation_register_patch_baseline_for_patch_group( pub fn serialize_operation_register_target_with_maintenance_window( input: &crate::input::RegisterTargetWithMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_target_with_maintenance_window_input( @@ -1153,7 +1153,7 @@ pub fn serialize_operation_register_target_with_maintenance_window( pub fn serialize_operation_register_task_with_maintenance_window( input: &crate::input::RegisterTaskWithMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_register_task_with_maintenance_window_input( @@ -1166,7 +1166,7 @@ pub fn serialize_operation_register_task_with_maintenance_window( pub fn serialize_operation_remove_tags_from_resource( input: &crate::input::RemoveTagsFromResourceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_remove_tags_from_resource_input(&mut object, input); @@ -1176,7 +1176,7 @@ pub fn serialize_operation_remove_tags_from_resource( pub fn serialize_operation_reset_service_setting( input: &crate::input::ResetServiceSettingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_reset_service_setting_input(&mut object, input); @@ -1186,7 +1186,7 @@ pub fn serialize_operation_reset_service_setting( pub fn serialize_operation_resume_session( input: &crate::input::ResumeSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_resume_session_input(&mut object, input); @@ -1196,7 +1196,7 @@ pub fn serialize_operation_resume_session( pub fn serialize_operation_send_automation_signal( input: &crate::input::SendAutomationSignalInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_automation_signal_input(&mut object, input); @@ -1206,7 +1206,7 @@ pub fn serialize_operation_send_automation_signal( pub fn serialize_operation_send_command( input: &crate::input::SendCommandInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_send_command_input(&mut object, input); @@ -1216,7 +1216,7 @@ pub fn serialize_operation_send_command( pub fn serialize_operation_start_associations_once( input: &crate::input::StartAssociationsOnceInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_associations_once_input(&mut object, input); @@ -1226,7 +1226,7 @@ pub fn serialize_operation_start_associations_once( pub fn serialize_operation_start_automation_execution( input: &crate::input::StartAutomationExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_automation_execution_input(&mut object, input); @@ -1236,7 +1236,7 @@ pub fn serialize_operation_start_automation_execution( pub fn serialize_operation_start_change_request_execution( input: &crate::input::StartChangeRequestExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_change_request_execution_input(&mut object, input); @@ -1246,7 +1246,7 @@ pub fn serialize_operation_start_change_request_execution( pub fn serialize_operation_start_session( input: &crate::input::StartSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_start_session_input(&mut object, input); @@ -1256,7 +1256,7 @@ pub fn serialize_operation_start_session( pub fn serialize_operation_stop_automation_execution( input: &crate::input::StopAutomationExecutionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_stop_automation_execution_input(&mut object, input); @@ -1266,7 +1266,7 @@ pub fn serialize_operation_stop_automation_execution( pub fn serialize_operation_terminate_session( input: &crate::input::TerminateSessionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_terminate_session_input(&mut object, input); @@ -1276,7 +1276,7 @@ pub fn serialize_operation_terminate_session( pub fn serialize_operation_unlabel_parameter_version( input: &crate::input::UnlabelParameterVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_unlabel_parameter_version_input(&mut object, input); @@ -1286,7 +1286,7 @@ pub fn serialize_operation_unlabel_parameter_version( pub fn serialize_operation_update_association( input: &crate::input::UpdateAssociationInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_association_input(&mut object, input); @@ -1296,7 +1296,7 @@ pub fn serialize_operation_update_association( pub fn serialize_operation_update_association_status( input: &crate::input::UpdateAssociationStatusInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_association_status_input(&mut object, input); @@ -1306,7 +1306,7 @@ pub fn serialize_operation_update_association_status( pub fn serialize_operation_update_document( input: &crate::input::UpdateDocumentInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_document_input(&mut object, input); @@ -1316,7 +1316,7 @@ pub fn serialize_operation_update_document( pub fn serialize_operation_update_document_default_version( input: &crate::input::UpdateDocumentDefaultVersionInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_document_default_version_input(&mut object, input); @@ -1326,7 +1326,7 @@ pub fn serialize_operation_update_document_default_version( pub fn serialize_operation_update_document_metadata( input: &crate::input::UpdateDocumentMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_document_metadata_input(&mut object, input); @@ -1336,7 +1336,7 @@ pub fn serialize_operation_update_document_metadata( pub fn serialize_operation_update_maintenance_window( input: &crate::input::UpdateMaintenanceWindowInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_maintenance_window_input(&mut object, input); @@ -1346,7 +1346,7 @@ pub fn serialize_operation_update_maintenance_window( pub fn serialize_operation_update_maintenance_window_target( input: &crate::input::UpdateMaintenanceWindowTargetInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_maintenance_window_target_input(&mut object, input); @@ -1356,7 +1356,7 @@ pub fn serialize_operation_update_maintenance_window_target( pub fn serialize_operation_update_maintenance_window_task( input: &crate::input::UpdateMaintenanceWindowTaskInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_maintenance_window_task_input(&mut object, input); @@ -1366,7 +1366,7 @@ pub fn serialize_operation_update_maintenance_window_task( pub fn serialize_operation_update_managed_instance_role( input: &crate::input::UpdateManagedInstanceRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_managed_instance_role_input(&mut object, input); @@ -1376,7 +1376,7 @@ pub fn serialize_operation_update_managed_instance_role( pub fn serialize_operation_update_ops_item( input: &crate::input::UpdateOpsItemInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_ops_item_input(&mut object, input); @@ -1386,7 +1386,7 @@ pub fn serialize_operation_update_ops_item( pub fn serialize_operation_update_ops_metadata( input: &crate::input::UpdateOpsMetadataInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_ops_metadata_input(&mut object, input); @@ -1396,7 +1396,7 @@ pub fn serialize_operation_update_ops_metadata( pub fn serialize_operation_update_patch_baseline( input: &crate::input::UpdatePatchBaselineInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_patch_baseline_input(&mut object, input); @@ -1406,7 +1406,7 @@ pub fn serialize_operation_update_patch_baseline( pub fn serialize_operation_update_resource_data_sync( input: &crate::input::UpdateResourceDataSyncInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_resource_data_sync_input(&mut object, input); @@ -1416,7 +1416,7 @@ pub fn serialize_operation_update_resource_data_sync( pub fn serialize_operation_update_service_setting( input: &crate::input::UpdateServiceSettingInput, -) -> Result { +) -> Result { let mut out = String::new(); let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out); crate::json_ser::serialize_structure_update_service_setting_input(&mut object, input); diff --git a/sdk/ssm/src/serde_util.rs b/sdk/ssm/src/serde_util.rs deleted file mode 100644 index a8b1bc11744a..000000000000 --- a/sdk/ssm/src/serde_util.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -pub fn stdoptionoptionsmithytypesblob_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok(std::option::Option::::deserialize(_deser)?.map(|el| el.0)) -} - -pub fn stdoptionoptionsmithytypesinstant_epoch_seconds_deser<'de, D>( - _deser: D, -) -> Result, D::Error> -where - D: serde::Deserializer<'de>, -{ - use serde::Deserialize; - Ok( - std::option::Option::::deserialize(_deser)? - .map(|el| el.0), - ) -} diff --git a/sdk/ssm/src/serializer.rs b/sdk/ssm/src/serializer.rs deleted file mode 100644 index 296cd590073e..000000000000 --- a/sdk/ssm/src/serializer.rs +++ /dev/null @@ -1,8230 +0,0 @@ -// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AddTagsToResourceInputBody<'a> { - ///

    Specifies the type of resource you are tagging.

    - /// - ///

    The ManagedInstance type for this API action is for on-premises managed instances. You must - /// specify the name of the managed instance in the following format: mi-ID_number. For example, - /// mi-1a2b3c4d5e6f.

    - ///
    - pub resource_type: &'a std::option::Option, - ///

    The resource ID you want to tag.

    - ///

    Use the ID of the resource. Here are some examples:

    - ///

    ManagedInstance: mi-012345abcde

    - ///

    MaintenanceWindow: mw-012345abcde

    - ///

    PatchBaseline: pb-012345abcde

    - ///

    OpsMetadata object: ResourceID for tagging is created from the Amazon Resource - /// Name (ARN) for the object. Specifically, ResourceID is created from the strings that - /// come after the word opsmetadata in the ARN. For example, an OpsMetadata object with - /// an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager - /// has a ResourceID of either aws/ssm/MyGroup/appmanager or - /// /aws/ssm/MyGroup/appmanager.

    - ///

    For the Document and Parameter values, use the name of the resource.

    - /// - ///

    The ManagedInstance type for this API action is only for on-premises managed instances. You - /// must specify the name of the managed instance in the following format: mi-ID_number. For - /// example, mi-1a2b3c4d5e6f.

    - ///
    - pub resource_id: &'a std::option::Option, - ///

    One or more tags. The value parameter is required.

    - /// - ///

    Do not enter personally identifiable information in this field.

    - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for AddTagsToResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AddTagsToResourceInputBody"); - formatter.field("resource_type", &self.resource_type); - formatter.field("resource_id", &self.resource_id); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateOpsItemRelatedItemInputBody<'a> { - ///

    The ID of the OpsItem to which you want to associate a resource as a related item.

    - pub ops_item_id: &'a std::option::Option, - ///

    The type of association that you want to create between an OpsItem and a resource. OpsCenter - /// supports IsParentOf and RelatesTo association types.

    - pub association_type: &'a std::option::Option, - ///

    The type of resource that you want to associate with an OpsItem. OpsCenter supports the - /// following types:

    - ///

    - /// AWS::SSMIncidents::IncidentRecord: an Incident Manager incident. Incident - /// Manager is a capability of AWS Systems Manager.

    - ///

    - /// AWS::SSM::Document: a Systems Manager (SSM) document.

    - pub resource_type: &'a std::option::Option, - ///

    The Amazon Resource Name (ARN) of the AWS resource that you want to associate with the - /// OpsItem.

    - pub resource_uri: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for AssociateOpsItemRelatedItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateOpsItemRelatedItemInputBody"); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.field("association_type", &self.association_type); - formatter.field("resource_type", &self.resource_type); - formatter.field("resource_uri", &self.resource_uri); - formatter.finish() - } -} - -///

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelCommandInputBody<'a> { - ///

    The ID of the command you want to cancel.

    - pub command_id: &'a std::option::Option, - ///

    (Optional) A list of instance IDs on which you want to cancel the command. If not provided, - /// the command is canceled on every instance on which it was requested.

    - pub instance_ids: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CancelCommandInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelCommandInputBody"); - formatter.field("command_id", &self.command_id); - formatter.field("instance_ids", &self.instance_ids); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelMaintenanceWindowExecutionInputBody<'a> { - ///

    The ID of the maintenance window execution to stop.

    - pub window_execution_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CancelMaintenanceWindowExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelMaintenanceWindowExecutionInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateActivationInputBody<'a> { - ///

    A user-defined description of the resource that you want to register with Systems Manager.

    - /// - ///

    Do not enter personally identifiable information in this field.

    - ///
    - pub description: &'a std::option::Option, - ///

    The name of the registered, managed instance as it will appear in the Systems Manager console or when - /// you use the AWS command line tools to list Systems Manager resources.

    - /// - ///

    Do not enter personally identifiable information in this field.

    - ///
    - pub default_instance_name: &'a std::option::Option, - ///

    The Amazon Identity and Access Management (IAM) role that you want to assign to the managed - /// instance. This IAM role must provide AssumeRole permissions for the Systems Manager service principal - /// ssm.amazonaws.com. For more information, see Create an IAM service role for a - /// hybrid environment in the AWS Systems Manager User Guide.

    - pub iam_role: &'a std::option::Option, - ///

    Specify the maximum number of managed instances you want to register. The default value is 1 - /// instance.

    - pub registration_limit: &'a std::option::Option, - ///

    The date by which this activation request should expire, in timestamp format, such as - /// "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an - /// expiration date, the activation code expires in 24 hours.

    - pub expiration_date: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - /// different ways, such as by purpose, owner, or environment. For example, you might want to tag an - /// activation to identify which servers or virtual machines (VMs) in your on-premises environment - /// you intend to activate. In this case, you could specify the following key name/value - /// pairs:

    - ///
      - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    • - ///

      - /// Key=Environment,Value=Production - ///

      - ///
    • - ///
    - /// - ///

    When you install SSM Agent on your on-premises servers and VMs, you specify an activation - /// ID and code. When you specify the activation ID and code, tags assigned to the activation are - /// automatically applied to the on-premises servers or VMs.

    - ///
    - ///

    You can't add tags to or delete tags from an existing activation. You can tag your - /// on-premises servers and VMs after they connect to Systems Manager for the first time and are assigned a - /// managed instance ID. This means they are listed in the AWS Systems Manager console with an ID that is - /// prefixed with "mi-". For information about how to add tags to your managed instances, see AddTagsToResource. For information about how to remove tags from your managed - /// instances, see RemoveTagsFromResource.

    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateActivationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateActivationInputBody"); - formatter.field("description", &self.description); - formatter.field("default_instance_name", &self.default_instance_name); - formatter.field("iam_role", &self.iam_role); - formatter.field("registration_limit", &self.registration_limit); - formatter.field("expiration_date", &self.expiration_date); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAssociationInputBody<'a> { - ///

    The name of the SSM document that contains the configuration information for the instance. - /// You can specify Command or Automation documents.

    - ///

    You can specify AWS-predefined documents, documents you created, or a document that is - /// shared with you from another account.

    - ///

    For SSM documents that are shared with you from other AWS accounts, you must specify the - /// complete SSM document ARN, in the following format:

    - ///

    - /// arn:partition:ssm:region:account-id:document/document-name - /// - ///

    - ///

    For example:

    - ///

    - /// arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document - ///

    - ///

    For AWS-predefined documents and SSM documents you created in your account, you only need to - /// specify the document name. For example, AWS-ApplyPatchBaseline or - /// My-Document.

    - pub name: &'a std::option::Option, - ///

    The document version you want to associate with the target(s). Can be a specific version or - /// the default version.

    - pub document_version: &'a std::option::Option, - ///

    The instance ID.

    - /// - ///

    - /// InstanceId has been deprecated. To specify an instance ID for an association, - /// use the Targets parameter. Requests that include the - /// parameter InstanceID with SSM documents that use schema version 2.0 or later will - /// fail. In addition, if you use the parameter InstanceId, you - /// cannot use the parameters AssociationName, DocumentVersion, - /// MaxErrors, MaxConcurrency, OutputLocation, or - /// ScheduleExpression. To use these parameters, you must use the Targets - /// parameter.

    - ///
    - pub instance_id: &'a std::option::Option, - ///

    The parameters for the runtime configuration of the document.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    The targets for the association. You can target instances by using tags, AWS Resource - /// Groups, all instances in an AWS account, or individual instance IDs. For more information about - /// choosing targets for an association, see Using targets and rate controls with State Manager associations in the - /// AWS Systems Manager User Guide.

    - pub targets: &'a std::option::Option>, - ///

    A cron expression when the association will be applied to the target(s).

    - pub schedule_expression: &'a std::option::Option, - ///

    An S3 bucket where you want to store the output details of the request.

    - pub output_location: &'a std::option::Option, - ///

    Specify a descriptive name for the association.

    - pub association_name: &'a std::option::Option, - ///

    Specify the target for the association. This target is required for associations that use an - /// Automation document and target resources by using rate controls.

    - pub automation_target_parameter_name: &'a std::option::Option, - ///

    The number of errors that are allowed before the system stops sending requests to run the - /// association on additional targets. You can specify either an absolute number of errors, for - /// example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - /// the system stops sending requests when the fourth error is received. If you specify 0, then the - /// system stops sending requests after the first error is returned. If you run an association on 50 - /// instances and set MaxError to 10%, then the system stops sending the request when the sixth error - /// is received.

    - ///

    Executions that are already running an association when MaxErrors is reached are allowed to - /// complete, but some of these executions may fail as well. If you need to ensure that there won't - /// be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one - /// at a time.

    - pub max_errors: &'a std::option::Option, - ///

    The maximum number of targets allowed to run the association at the same time. You can - /// specify a number, for example 10, or a percentage of the target set, for example 10%. The default - /// value is 100%, which means all targets run the association at the same time.

    - ///

    If a new instance starts and attempts to run an association while Systems Manager is running - /// MaxConcurrency associations, the association is allowed to run. During the next association - /// interval, the new instance will process its association within the limit specified for - /// MaxConcurrency.

    - pub max_concurrency: &'a std::option::Option, - ///

    The severity level to assign to the association.

    - pub compliance_severity: &'a std::option::Option, - ///

    The mode for generating association compliance. You can specify AUTO or - /// MANUAL. In AUTO mode, the system uses the status of the association - /// execution to determine the compliance status. If the association execution runs successfully, - /// then the association is COMPLIANT. If the association execution doesn't run - /// successfully, the association is NON-COMPLIANT.

    - ///

    In MANUAL mode, you must specify the AssociationId as a parameter - /// for the PutComplianceItems API action. In this case, compliance data is not - /// managed by State Manager. It is managed by your direct call to the PutComplianceItems API action.

    - ///

    By default, all associations use AUTO mode.

    - pub sync_compliance: &'a std::option::Option, - ///

    By default, when you create a new association, the system runs it immediately after it is - /// created and then according to the schedule you specified. Specify this option if you don't want - /// an association to run immediately after you create it. This parameter is not supported for rate - /// expressions.

    - pub apply_only_at_cron_interval: &'a bool, - ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager Change Calendar type - /// documents you want to gate your associations under. The associations only run when that Change - /// Calendar is open. For more information, see AWS Systems Manager Change - /// Calendar.

    - pub calendar_names: &'a std::option::Option>, - ///

    A location is a combination of AWS Regions and AWS accounts where you want to run the - /// association. Use this action to create an association in multiple Regions and multiple - /// accounts.

    - pub target_locations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAssociationInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("instance_id", &self.instance_id); - formatter.field("parameters", &self.parameters); - formatter.field("targets", &self.targets); - formatter.field("schedule_expression", &self.schedule_expression); - formatter.field("output_location", &self.output_location); - formatter.field("association_name", &self.association_name); - formatter.field( - "automation_target_parameter_name", - &self.automation_target_parameter_name, - ); - formatter.field("max_errors", &self.max_errors); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("compliance_severity", &self.compliance_severity); - formatter.field("sync_compliance", &self.sync_compliance); - formatter.field( - "apply_only_at_cron_interval", - &self.apply_only_at_cron_interval, - ); - formatter.field("calendar_names", &self.calendar_names); - formatter.field("target_locations", &self.target_locations); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAssociationBatchInputBody<'a> { - ///

    One or more associations.

    - pub entries: - &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateAssociationBatchInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAssociationBatchInputBody"); - formatter.field("entries", &self.entries); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentInputBody<'a> { - ///

    The content for the new SSM document in JSON or YAML format. We recommend storing the - /// contents for your new document in an external JSON or YAML file and referencing the file in a - /// command.

    - ///

    For examples, see the following topics in the AWS Systems Manager User Guide.

    - /// - pub content: &'a std::option::Option, - ///

    A list of SSM documents required by a document. This parameter is used exclusively by AWS - /// AppConfig. When a user creates an AppConfig configuration in an SSM document, the user must also - /// specify a required document for validation purposes. In this case, an - /// ApplicationConfiguration document requires an - /// ApplicationConfigurationSchema document for validation purposes. For more - /// information, see AWS AppConfig in the - /// AWS Systems Manager User Guide.

    - pub requires: &'a std::option::Option>, - ///

    A list of key and value pairs that describe attachments to a version of a document.

    - pub attachments: &'a std::option::Option>, - ///

    A name for the Systems Manager document.

    - /// - ///

    You can't use the following strings as document name prefixes. These are reserved by AWS - /// for use as document name prefixes:

    - ///
      - ///
    • - ///

      - /// aws- - ///

      - ///
    • - ///
    • - ///

      - /// amazon - ///

      - ///
    • - ///
    • - ///

      - /// amzn - ///

      - ///
    • - ///
    - ///
    - pub name: &'a std::option::Option, - ///

    An optional field where you can specify a friendly name for the Systems Manager document. This value - /// can differ for each version of the document. You can update this value at a later time using the - /// UpdateDocument action.

    - pub display_name: &'a std::option::Option, - ///

    An optional field specifying the version of the artifact you are creating with the document. - /// For example, "Release 12, Update 6". This value is unique across all versions of a document, and - /// cannot be changed.

    - pub version_name: &'a std::option::Option, - ///

    The type of document to create.

    - pub document_type: &'a std::option::Option, - ///

    Specify the document format for the request. The document format can be JSON, YAML, or TEXT. - /// JSON is the default format.

    - pub document_format: &'a std::option::Option, - ///

    Specify a target type to define the kinds of resources the document can run on. For example, - /// to run a document on EC2 instances, specify the following value: /AWS::EC2::Instance. If you - /// specify a value of '/' the document can run on all types of resources. If you don't specify a - /// value, the document can't run on any resources. For a list of valid resource types, see AWS resource and property types - /// reference in the AWS CloudFormation User Guide.

    - pub target_type: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - /// different ways, such as by purpose, owner, or environment. For example, you might want to tag an - /// SSM document to identify the types of targets or the environment where it will run. In this case, - /// you could specify the following key name/value pairs:

    - ///
      - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    • - ///

      - /// Key=Environment,Value=Production - ///

      - ///
    • - ///
    - /// - ///

    To add tags to an existing SSM document, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateDocumentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentInputBody"); - formatter.field("content", &self.content); - formatter.field("requires", &self.requires); - formatter.field("attachments", &self.attachments); - formatter.field("name", &self.name); - formatter.field("display_name", &self.display_name); - formatter.field("version_name", &self.version_name); - formatter.field("document_type", &self.document_type); - formatter.field("document_format", &self.document_format); - formatter.field("target_type", &self.target_type); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMaintenanceWindowInputBody<'a> { - ///

    The name of the maintenance window.

    - pub name: &'a std::option::Option, - ///

    An optional description for the maintenance window. We recommend specifying a description to - /// help you organize your maintenance windows.

    - pub description: &'a std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - /// become active. StartDate allows you to delay activation of the maintenance window until the - /// specified future date.

    - pub start_date: &'a std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - /// become inactive. EndDate allows you to set a date and time in the future when the maintenance - /// window will no longer run.

    - pub end_date: &'a std::option::Option, - ///

    The schedule of the maintenance window in the form of a cron or rate expression.

    - pub schedule: &'a std::option::Option, - ///

    The time zone that the scheduled maintenance window executions are based on, in Internet - /// Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - /// "Asia/Seoul". For more information, see the Time - /// Zone Database on the IANA website.

    - pub schedule_timezone: &'a std::option::Option, - ///

    The number of days to wait after the date and time specified by a CRON expression before - /// running the maintenance window.

    - ///

    For example, the following cron expression schedules a maintenance window to run on the - /// third Tuesday of every month at 11:30 PM.

    - ///

    - /// cron(30 23 ? * TUE#3 *) - ///

    - ///

    If the schedule offset is 2, the maintenance window won't run until two days - /// later.

    - pub schedule_offset: &'a std::option::Option, - ///

    The duration of the maintenance window in hours.

    - pub duration: &'a i32, - ///

    The number of hours before the end of the maintenance window that Systems Manager stops scheduling new - /// tasks for execution.

    - pub cutoff: &'a i32, - ///

    Enables a maintenance window task to run on managed instances, even if you have not - /// registered those instances as targets. If enabled, then you must specify the unregistered - /// instances (by instance ID) when you register a task with the maintenance window.

    - ///

    If you don't enable this option, then you must specify previously-registered targets when - /// you register a task with the maintenance window.

    - pub allow_unassociated_targets: &'a bool, - ///

    User-provided idempotency token.

    - pub client_token: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - /// different ways, such as by purpose, owner, or environment. For example, you might want to tag a - /// maintenance window to identify the type of tasks it will run, the types of targets, and the - /// environment it will run in. In this case, you could specify the following key name/value - /// pairs:

    - ///
      - ///
    • - ///

      - /// Key=TaskType,Value=AgentUpdate - ///

      - ///
    • - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    • - ///

      - /// Key=Environment,Value=Production - ///

      - ///
    • - ///
    - /// - ///

    To add tags to an existing maintenance window, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMaintenanceWindowInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("schedule", &self.schedule); - formatter.field("schedule_timezone", &self.schedule_timezone); - formatter.field("schedule_offset", &self.schedule_offset); - formatter.field("duration", &self.duration); - formatter.field("cutoff", &self.cutoff); - formatter.field( - "allow_unassociated_targets", - &self.allow_unassociated_targets, - ); - formatter.field("client_token", &self.client_token); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpsItemInputBody<'a> { - ///

    Information about the OpsItem.

    - pub description: &'a std::option::Option, - ///

    The type of OpsItem to create. Currently, the only valid values are - /// /aws/changerequest and /aws/issue.

    - pub ops_item_type: &'a std::option::Option, - ///

    Operational data is custom data that provides useful reference details about the OpsItem. - /// For example, you can specify log files, error strings, license keys, troubleshooting tips, or - /// other relevant data. You enter operational data as key-value pairs. The key has a maximum length - /// of 128 characters. The value has a maximum size of 20 KB.

    - /// - ///

    Operational data keys can't begin with the following: amazon, aws, - /// amzn, ssm, /amazon, /aws, /amzn, /ssm.

    - ///
    - ///

    You can choose to make the data searchable by other users in the account or you can restrict - /// search access. Searchable data means that all users with access to the OpsItem Overview page (as - /// provided by the DescribeOpsItems API action) can view and search on the - /// specified data. Operational data that is not searchable is only viewable by users who have access - /// to the OpsItem (as provided by the GetOpsItem API action).

    - ///

    Use the /aws/resources key in OperationalData to specify a related resource in - /// the request. Use the /aws/automations key in OperationalData to associate an - /// Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see - /// Creating OpsItems manually in the AWS Systems Manager User Guide.

    - pub operational_data: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this - /// OpsItem is edited or changed.

    - pub notifications: &'a std::option::Option>, - ///

    The importance of this OpsItem in relation to other OpsItems in the system.

    - pub priority: &'a std::option::Option, - ///

    One or more OpsItems that share something in common with the current OpsItems. For example, - /// related OpsItems can include OpsItems with similar error messages, impacted resources, or - /// statuses for the impacted resource.

    - pub related_ops_items: &'a std::option::Option>, - ///

    The origin of the OpsItem, such as Amazon EC2 or Systems Manager.

    - /// - ///

    The source name can't contain the following strings: aws, amazon, and amzn.

    - ///
    - pub source: &'a std::option::Option, - ///

    A short heading that describes the nature of the OpsItem and the impacted resource.

    - pub title: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. You can restrict access to OpsItems by - /// using an inline IAM policy that specifies tags. For more information, see Getting started with OpsCenter in the AWS Systems Manager User Guide.

    - ///

    Tags use a key-value pair. For example:

    - ///

    - /// Key=Department,Value=Finance - ///

    - /// - ///

    To add tags to an existing OpsItem, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, - ///

    Specify a category to assign to an OpsItem.

    - pub category: &'a std::option::Option, - ///

    Specify a severity to assign to an OpsItem.

    - pub severity: &'a std::option::Option, - ///

    The time a runbook workflow started. Currently reported only for the OpsItem type - /// /aws/changerequest.

    - pub actual_start_time: &'a std::option::Option, - ///

    The time a runbook workflow ended. Currently reported only for the OpsItem type - /// /aws/changerequest.

    - pub actual_end_time: &'a std::option::Option, - ///

    The time specified in a change request for a runbook workflow to start. Currently supported - /// only for the OpsItem type /aws/changerequest.

    - pub planned_start_time: &'a std::option::Option, - ///

    The time specified in a change request for a runbook workflow to end. Currently supported - /// only for the OpsItem type /aws/changerequest.

    - pub planned_end_time: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateOpsItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpsItemInputBody"); - formatter.field("description", &self.description); - formatter.field("ops_item_type", &self.ops_item_type); - formatter.field("operational_data", &self.operational_data); - formatter.field("notifications", &self.notifications); - formatter.field("priority", &self.priority); - formatter.field("related_ops_items", &self.related_ops_items); - formatter.field("source", &self.source); - formatter.field("title", &self.title); - formatter.field("tags", &self.tags); - formatter.field("category", &self.category); - formatter.field("severity", &self.severity); - formatter.field("actual_start_time", &self.actual_start_time); - formatter.field("actual_end_time", &self.actual_end_time); - formatter.field("planned_start_time", &self.planned_start_time); - formatter.field("planned_end_time", &self.planned_end_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpsMetadataInputBody<'a> { - ///

    A resource ID for a new Application Manager application.

    - pub resource_id: &'a std::option::Option, - ///

    Metadata for a new Application Manager application.

    - pub metadata: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for - /// an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by - /// purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to - /// identify an environment or target AWS Region. In this case, you could specify the following - /// key-value pairs:

    - ///
      - ///
    • - ///

      - /// Key=Environment,Value=Production - ///

      - ///
    • - ///
    • - ///

      - /// Key=Region,Value=us-east-2 - ///

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreateOpsMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpsMetadataInputBody"); - formatter.field("resource_id", &self.resource_id); - formatter.field("metadata", &self.metadata); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePatchBaselineInputBody<'a> { - ///

    Defines the operating system the patch baseline applies to. The Default value is - /// WINDOWS.

    - pub operating_system: &'a std::option::Option, - ///

    The name of the patch baseline.

    - pub name: &'a std::option::Option, - ///

    A set of global filters used to include patches in the baseline.

    - pub global_filters: &'a std::option::Option, - ///

    A set of rules used to include patches in the baseline.

    - pub approval_rules: &'a std::option::Option, - ///

    A list of explicitly approved patches for the baseline.

    - ///

    For information about accepted formats for lists of approved patches and rejected patches, - /// see About - /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - pub approved_patches: &'a std::option::Option>, - ///

    Defines the compliance level for approved patches. When an approved patch is reported as - /// missing, this value describes the severity of the compliance violation. The default value is - /// UNSPECIFIED.

    - pub approved_patches_compliance_level: - &'a std::option::Option, - ///

    Indicates whether the list of approved patches includes non-security updates that should be - /// applied to the instances. The default value is 'false'. Applies to Linux instances only.

    - pub approved_patches_enable_non_security: &'a std::option::Option, - ///

    A list of explicitly rejected patches for the baseline.

    - ///

    For information about accepted formats for lists of approved patches and rejected patches, - /// see About - /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - pub rejected_patches: &'a std::option::Option>, - ///

    The action for Patch Manager to take on patches included in the RejectedPackages - /// list.

    - ///
      - ///
    • - ///

      - /// ALLOW_AS_DEPENDENCY: A package in the Rejected patches - /// list is installed only if it is a dependency of another package. It is considered compliant - /// with the patch baseline, and its status is reported as InstalledOther. - /// This is the default action if no option is specified.

      - ///
    • - ///
    • - ///

      - /// BLOCK: Packages in the RejectedPatches list, and packages - /// that include them as dependencies, are not installed under any circumstances. If a package was - /// installed before it was added to the Rejected patches list, it is considered non-compliant with - /// the patch baseline, and its status is reported as - /// InstalledRejected.

      - ///
    • - ///
    - pub rejected_patches_action: &'a std::option::Option, - ///

    A description of the patch baseline.

    - pub description: &'a std::option::Option, - ///

    Information about the patches to use to update the instances, including target operating - /// systems and source repositories. Applies to Linux instances only.

    - pub sources: &'a std::option::Option>, - ///

    User-provided idempotency token.

    - pub client_token: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - /// different ways, such as by purpose, owner, or environment. For example, you might want to tag a - /// patch baseline to identify the severity level of patches it specifies and the operating system - /// family it applies to. In this case, you could specify the following key name/value pairs:

    - ///
      - ///
    • - ///

      - /// Key=PatchSeverity,Value=Critical - ///

      - ///
    • - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    - /// - ///

    To add tags to an existing patch baseline, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for CreatePatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePatchBaselineInputBody"); - formatter.field("operating_system", &self.operating_system); - formatter.field("name", &self.name); - formatter.field("global_filters", &self.global_filters); - formatter.field("approval_rules", &self.approval_rules); - formatter.field("approved_patches", &self.approved_patches); - formatter.field( - "approved_patches_compliance_level", - &self.approved_patches_compliance_level, - ); - formatter.field( - "approved_patches_enable_non_security", - &self.approved_patches_enable_non_security, - ); - formatter.field("rejected_patches", &self.rejected_patches); - formatter.field("rejected_patches_action", &self.rejected_patches_action); - formatter.field("description", &self.description); - formatter.field("sources", &self.sources); - formatter.field("client_token", &self.client_token); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateResourceDataSyncInputBody<'a> { - ///

    A name for the configuration.

    - pub sync_name: &'a std::option::Option, - ///

    Amazon S3 configuration details for the sync. This parameter is required if the - /// SyncType value is SyncToDestination.

    - pub s3_destination: &'a std::option::Option, - ///

    Specify SyncToDestination to create a resource data sync that synchronizes data - /// to an S3 bucket for Inventory. If you specify SyncToDestination, you must provide a - /// value for S3Destination. Specify SyncFromSource to synchronize data - /// from a single account and multiple Regions, or multiple AWS accounts and Regions, as listed in - /// AWS Organizations for Explorer. If you specify SyncFromSource, you must provide a value for - /// SyncSource. The default value is SyncToDestination.

    - pub sync_type: &'a std::option::Option, - ///

    Specify information about the data sources to synchronize. This parameter is required if the - /// SyncType value is SyncFromSource.

    - pub sync_source: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for CreateResourceDataSyncInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateResourceDataSyncInputBody"); - formatter.field("sync_name", &self.sync_name); - formatter.field("s3_destination", &self.s3_destination); - formatter.field("sync_type", &self.sync_type); - formatter.field("sync_source", &self.sync_source); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteActivationInputBody<'a> { - ///

    The ID of the activation that you want to delete.

    - pub activation_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteActivationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteActivationInputBody"); - formatter.field("activation_id", &self.activation_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteAssociationInputBody<'a> { - ///

    The name of the Systems Manager document.

    - pub name: &'a std::option::Option, - ///

    The ID of the instance.

    - pub instance_id: &'a std::option::Option, - ///

    The association ID that you want to delete.

    - pub association_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteAssociationInputBody"); - formatter.field("name", &self.name); - formatter.field("instance_id", &self.instance_id); - formatter.field("association_id", &self.association_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteDocumentInputBody<'a> { - ///

    The name of the document.

    - pub name: &'a std::option::Option, - ///

    The version of the document that you want to delete. If not provided, all versions of the - /// document are deleted.

    - pub document_version: &'a std::option::Option, - ///

    The version name of the document that you want to delete. If not provided, all versions of - /// the document are deleted.

    - pub version_name: &'a std::option::Option, - ///

    Some SSM document types require that you specify a Force flag before you can - /// delete the document. For example, you must specify a Force flag to delete a document - /// of type ApplicationConfigurationSchema. You can restrict access to the - /// Force flag in an AWS Identity and Access Management (IAM) policy.

    - pub force: &'a bool, -} -impl<'a> std::fmt::Debug for DeleteDocumentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteDocumentInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("version_name", &self.version_name); - formatter.field("force", &self.force); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteInventoryInputBody<'a> { - ///

    The name of the custom inventory type for which you want to delete either all previously - /// collected data or the inventory type itself.

    - pub type_name: &'a std::option::Option, - ///

    Use the SchemaDeleteOption to delete a custom inventory type (schema). If you - /// don't choose this option, the system only deletes existing inventory data associated with the - /// custom inventory type. Choose one of the following options:

    - ///

    DisableSchema: If you choose this option, the system ignores all inventory data for the - /// specified version, and any earlier versions. To enable this schema again, you must call the - /// PutInventory action for a version greater than the disabled version.

    - ///

    DeleteSchema: This option deletes the specified custom type from the Inventory service. You - /// can recreate the schema later, if you want.

    - pub schema_delete_option: &'a std::option::Option, - ///

    Use this option to view a summary of the deletion request without deleting any data or the - /// data type. This option is useful when you only want to understand what will be deleted. Once you - /// validate that the data to be deleted is what you intend to delete, you can run the same command - /// without specifying the DryRun option.

    - pub dry_run: &'a bool, - ///

    User-provided idempotency token.

    - pub client_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteInventoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteInventoryInputBody"); - formatter.field("type_name", &self.type_name); - formatter.field("schema_delete_option", &self.schema_delete_option); - formatter.field("dry_run", &self.dry_run); - formatter.field("client_token", &self.client_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window to delete.

    - pub window_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteOpsMetadataInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of an OpsMetadata Object to delete.

    - pub ops_metadata_arn: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteOpsMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteOpsMetadataInputBody"); - formatter.field("ops_metadata_arn", &self.ops_metadata_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteParameterInputBody<'a> { - ///

    The name of the parameter to delete.

    - pub name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteParameterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteParameterInputBody"); - formatter.field("name", &self.name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteParametersInputBody<'a> { - ///

    The names of the parameters to delete.

    - pub names: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DeleteParametersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteParametersInputBody"); - formatter.field("names", &self.names); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeletePatchBaselineInputBody<'a> { - ///

    The ID of the patch baseline to delete.

    - pub baseline_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeletePatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeletePatchBaselineInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteResourceDataSyncInputBody<'a> { - ///

    The name of the configuration to delete.

    - pub sync_name: &'a std::option::Option, - ///

    Specify the type of resource data sync to delete.

    - pub sync_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeleteResourceDataSyncInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteResourceDataSyncInputBody"); - formatter.field("sync_name", &self.sync_name); - formatter.field("sync_type", &self.sync_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterManagedInstanceInputBody<'a> { - ///

    The ID assigned to the managed instance when you registered it using the activation process. - ///

    - pub instance_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterManagedInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterManagedInstanceInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterPatchBaselineForPatchGroupInputBody<'a> { - ///

    The ID of the patch baseline to deregister the patch group from.

    - pub baseline_id: &'a std::option::Option, - ///

    The name of the patch group that should be deregistered from the patch baseline.

    - pub patch_group: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterPatchBaselineForPatchGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterPatchBaselineForPatchGroupInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("patch_group", &self.patch_group); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTargetFromMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window the target should be removed from.

    - pub window_id: &'a std::option::Option, - ///

    The ID of the target definition to remove.

    - pub window_target_id: &'a std::option::Option, - ///

    The system checks if the target is being referenced by a task. If the target is being - /// referenced, the system returns an error and does not deregister the target from the maintenance - /// window.

    - pub safe: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterTargetFromMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTargetFromMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_target_id", &self.window_target_id); - formatter.field("safe", &self.safe); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTaskFromMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window the task should be removed from.

    - pub window_id: &'a std::option::Option, - ///

    The ID of the task to remove from the maintenance window.

    - pub window_task_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DeregisterTaskFromMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTaskFromMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeActivationsInputBody<'a> { - ///

    A filter to view information about your activations.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeActivationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeActivationsInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationInputBody<'a> { - ///

    The name of the Systems Manager document.

    - pub name: &'a std::option::Option, - ///

    The instance ID.

    - pub instance_id: &'a std::option::Option, - ///

    The association ID for which you want information.

    - pub association_id: &'a std::option::Option, - ///

    Specify the association version to retrieve. To view the latest version, either specify - /// $LATEST for this parameter, or omit this parameter. To view a list of all - /// associations for an instance, use ListAssociations. To get a list of versions - /// for a specific association, use ListAssociationVersions.

    - pub association_version: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationInputBody"); - formatter.field("name", &self.name); - formatter.field("instance_id", &self.instance_id); - formatter.field("association_id", &self.association_id); - formatter.field("association_version", &self.association_version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationExecutionsInputBody<'a> { - ///

    The association ID for which you want to view execution history details.

    - pub association_id: &'a std::option::Option, - ///

    Filters for the request. You can specify the following filters and values.

    - ///

    ExecutionId (EQUAL)

    - ///

    Status (EQUAL)

    - ///

    CreatedTime (EQUAL, GREATER_THAN, LESS_THAN)

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAssociationExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationExecutionsInputBody"); - formatter.field("association_id", &self.association_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationExecutionTargetsInputBody<'a> { - ///

    The association ID that includes the execution for which you want to view details.

    - pub association_id: &'a std::option::Option, - ///

    The execution ID for which you want to view details.

    - pub execution_id: &'a std::option::Option, - ///

    Filters for the request. You can specify the following filters and values.

    - ///

    Status (EQUAL)

    - ///

    ResourceId (EQUAL)

    - ///

    ResourceType (EQUAL)

    - pub filters: - &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAssociationExecutionTargetsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationExecutionTargetsInputBody"); - formatter.field("association_id", &self.association_id); - formatter.field("execution_id", &self.execution_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutomationExecutionsInputBody<'a> { - ///

    Filters used to limit the scope of executions that are requested.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAutomationExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutomationExecutionsInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutomationStepExecutionsInputBody<'a> { - ///

    The Automation execution ID for which you want step execution descriptions.

    - pub automation_execution_id: &'a std::option::Option, - ///

    One or more filters to limit the number of step executions returned by the request.

    - pub filters: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    Indicates whether to list step executions in reverse order by start time. The default value - /// is 'false'.

    - pub reverse_order: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAutomationStepExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutomationStepExecutionsInputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("reverse_order", &self.reverse_order); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAvailablePatchesInputBody<'a> { - ///

    Filters used to scope down the returned patches.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of patches to return (per page).

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeAvailablePatchesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAvailablePatchesInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDocumentInputBody<'a> { - ///

    The name of the Systems Manager document.

    - pub name: &'a std::option::Option, - ///

    The document version for which you want information. Can be a specific version or the - /// default version.

    - pub document_version: &'a std::option::Option, - ///

    An optional field specifying the version of the artifact associated with the document. For - /// example, "Release 12, Update 6". This value is unique across all versions of a document, and - /// cannot be changed.

    - pub version_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDocumentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDocumentInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("version_name", &self.version_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDocumentPermissionInputBody<'a> { - ///

    The name of the document for which you are the owner.

    - pub name: &'a std::option::Option, - ///

    The permission type for the document. The permission type can be - /// Share.

    - pub permission_type: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeDocumentPermissionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDocumentPermissionInputBody"); - formatter.field("name", &self.name); - formatter.field("permission_type", &self.permission_type); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEffectiveInstanceAssociationsInputBody<'a> { - ///

    The instance ID for which you want to view all associations.

    - pub instance_id: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeEffectiveInstanceAssociationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEffectiveInstanceAssociationsInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEffectivePatchesForPatchBaselineInputBody<'a> { - ///

    The ID of the patch baseline to retrieve the effective patches for.

    - pub baseline_id: &'a std::option::Option, - ///

    The maximum number of patches to return (per page).

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeEffectivePatchesForPatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEffectivePatchesForPatchBaselineInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstanceAssociationsStatusInputBody<'a> { - ///

    The instance IDs for which you want association status information.

    - pub instance_id: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInstanceAssociationsStatusInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstanceAssociationsStatusInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstanceInformationInputBody<'a> { - ///

    This is a legacy method. We recommend that you don't use this method. Instead, use the - /// Filters data type. Filters enables you to return instance information - /// by filtering based on tags applied to managed instances.

    - /// - ///

    Attempting to use InstanceInformationFilterList and Filters leads - /// to an exception error.

    - ///
    - pub instance_information_filter_list: - &'a std::option::Option>, - ///

    One or more filters. Use a filter to return a more specific list of instances. You can - /// filter based on tags applied to EC2 instances. Use this Filters data type instead of - /// InstanceInformationFilterList, which is deprecated.

    - pub filters: - &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInstanceInformationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstanceInformationInputBody"); - formatter.field( - "instance_information_filter_list", - &self.instance_information_filter_list, - ); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchesInputBody<'a> { - ///

    The ID of the instance whose patch state information should be retrieved.

    - pub instance_id: &'a std::option::Option, - ///

    An array of structures. Each entry in the array is a structure containing a Key, Value - /// combination. Valid values for Key are Classification | KBId | - /// Severity | State.

    - pub filters: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of patches to return (per page).

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInstancePatchesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchesInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchStatesInputBody<'a> { - ///

    The ID of the instance whose patch state information should be retrieved.

    - pub instance_ids: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of instances to return (per page).

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInstancePatchStatesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchStatesInputBody"); - formatter.field("instance_ids", &self.instance_ids); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchStatesForPatchGroupInputBody<'a> { - ///

    The name of the patch group for which the patch state information should be - /// retrieved.

    - pub patch_group: &'a std::option::Option, - ///

    Each entry in the array is a structure containing:

    - ///

    Key (string between 1 and 200 characters)

    - ///

    Values (array containing a single string)

    - ///

    Type (string "Equal", "NotEqual", "LessThan", "GreaterThan")

    - pub filters: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of patches to return (per page).

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInstancePatchStatesForPatchGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchStatesForPatchGroupInputBody"); - formatter.field("patch_group", &self.patch_group); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInventoryDeletionsInputBody<'a> { - ///

    Specify the delete inventory ID for which you want information. This ID was returned by the - /// DeleteInventory action.

    - pub deletion_id: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeInventoryDeletionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInventoryDeletionsInputBody"); - formatter.field("deletion_id", &self.deletion_id); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionsInputBody<'a> { - ///

    The ID of the maintenance window whose executions should be retrieved.

    - pub window_id: &'a std::option::Option, - ///

    Each entry in the array is a structure containing:

    - ///

    Key (string, between 1 and 128 characters)

    - ///

    Values (array of strings, each string is between 1 and 256 characters)

    - ///

    The supported Keys are ExecutedBefore and ExecutedAfter with the value being a date/time - /// string such as 2016-11-04T05:00:00Z.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowExecutionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowExecutionsInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionTaskInvocationsInputBody<'a> { - ///

    The ID of the maintenance window execution the task is part of.

    - pub window_execution_id: &'a std::option::Option, - ///

    The ID of the specific task in the maintenance window task that should be retrieved.

    - pub task_id: &'a std::option::Option, - ///

    Optional filters used to scope down the returned task invocations. The supported filter key - /// is STATUS with the corresponding values PENDING, IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, - /// CANCELLING, and CANCELLED.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowExecutionTaskInvocationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = - f.debug_struct("DescribeMaintenanceWindowExecutionTaskInvocationsInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_id", &self.task_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionTasksInputBody<'a> { - ///

    The ID of the maintenance window execution whose task executions should be retrieved.

    - pub window_execution_id: &'a std::option::Option, - ///

    Optional filters used to scope down the returned tasks. The supported filter key is STATUS - /// with the corresponding values PENDING, IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, CANCELLING, and - /// CANCELLED.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowExecutionTasksInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowExecutionTasksInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowsInputBody<'a> { - ///

    Optional filters used to narrow down the scope of the returned maintenance windows. - /// Supported filter keys are Name and Enabled.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowsInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowScheduleInputBody<'a> { - ///

    The ID of the maintenance window to retrieve information about.

    - pub window_id: &'a std::option::Option, - ///

    The instance ID or key/value pair to retrieve information about.

    - pub targets: &'a std::option::Option>, - ///

    The type of resource you want to retrieve information about. For example, "INSTANCE".

    - pub resource_type: &'a std::option::Option, - ///

    Filters used to limit the range of results. For example, you can limit maintenance window - /// executions to only those scheduled before or after a certain date and time.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowScheduleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowScheduleInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("targets", &self.targets); - formatter.field("resource_type", &self.resource_type); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowsForTargetInputBody<'a> { - ///

    The instance ID or key/value pair to retrieve information about.

    - pub targets: &'a std::option::Option>, - ///

    The type of resource you want to retrieve information about. For example, "INSTANCE".

    - pub resource_type: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowsForTargetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowsForTargetInputBody"); - formatter.field("targets", &self.targets); - formatter.field("resource_type", &self.resource_type); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowTargetsInputBody<'a> { - ///

    The ID of the maintenance window whose targets should be retrieved.

    - pub window_id: &'a std::option::Option, - ///

    Optional filters that can be used to narrow down the scope of the returned window targets. - /// The supported filter keys are Type, WindowTargetId and OwnerInformation.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowTargetsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowTargetsInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowTasksInputBody<'a> { - ///

    The ID of the maintenance window whose tasks should be retrieved.

    - pub window_id: &'a std::option::Option, - ///

    Optional filters used to narrow down the scope of the returned tasks. The supported filter - /// keys are WindowTaskId, TaskArn, Priority, and TaskType.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeMaintenanceWindowTasksInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowTasksInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOpsItemsInputBody<'a> { - ///

    One or more filters to limit the response.

    - ///
      - ///
    • - ///

      Key: CreatedTime

      - ///

      Operations: GreaterThan, LessThan

      - ///
    • - ///
    • - ///

      Key: LastModifiedBy

      - ///

      Operations: Contains, Equals

      - ///
    • - ///
    • - ///

      Key: LastModifiedTime

      - ///

      Operations: GreaterThan, LessThan

      - ///
    • - ///
    • - ///

      Key: Priority

      - ///

      Operations: Equals

      - ///
    • - ///
    • - ///

      Key: Source

      - ///

      Operations: Contains, Equals

      - ///
    • - ///
    • - ///

      Key: Status

      - ///

      Operations: Equals

      - ///
    • - ///
    • - ///

      Key: Title

      - ///

      Operations: Contains

      - ///
    • - ///
    • - ///

      Key: OperationalData*

      - ///

      Operations: Equals

      - ///
    • - ///
    • - ///

      Key: OperationalDataKey

      - ///

      Operations: Equals

      - ///
    • - ///
    • - ///

      Key: OperationalDataValue

      - ///

      Operations: Equals, Contains

      - ///
    • - ///
    • - ///

      Key: OpsItemId

      - ///

      Operations: Equals

      - ///
    • - ///
    • - ///

      Key: ResourceId

      - ///

      Operations: Contains

      - ///
    • - ///
    • - ///

      Key: AutomationId

      - ///

      Operations: Equals

      - ///
    • - ///
    - ///

    *If you filter the response by using the OperationalData operator, specify a key-value pair - /// by using the following JSON format: {"key":"key_name","value":"a_value"}

    - pub ops_item_filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeOpsItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOpsItemsInputBody"); - formatter.field("ops_item_filters", &self.ops_item_filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeParametersInputBody<'a> { - ///

    This data type is deprecated. Instead, use ParameterFilters.

    - pub filters: &'a std::option::Option>, - ///

    Filters to limit the request results.

    - pub parameter_filters: - &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribeParametersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeParametersInputBody"); - formatter.field("filters", &self.filters); - formatter.field("parameter_filters", &self.parameter_filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchBaselinesInputBody<'a> { - ///

    Each element in the array is a structure containing:

    - ///

    Key: (string, "NAME_PREFIX" or "OWNER")

    - ///

    Value: (array of strings, exactly 1 entry, between 1 and 255 characters)

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of patch baselines to return (per page).

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePatchBaselinesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchBaselinesInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchGroupsInputBody<'a> { - ///

    The maximum number of patch groups to return (per page).

    - pub max_results: &'a std::option::Option, - ///

    One or more filters. Use a filter to return a more specific list of results.

    - ///

    For DescribePatchGroups,valid filter keys include the following:

    - ///
      - ///
    • - ///

      - /// NAME_PREFIX: The name of the patch group. Wildcards (*) are accepted.

      - ///
    • - ///
    • - ///

      - /// OPERATING_SYSTEM: The supported operating system type to return results for. - /// For valid operating system values, see GetDefaultPatchBaselineRequest$OperatingSystem in CreatePatchBaseline.

      - ///

      Examples:

      - ///
        - ///
      • - ///

        - /// --filters Key=NAME_PREFIX,Values=MyPatchGroup* - ///

        - ///
      • - ///
      • - ///

        - /// --filters Key=OPERATING_SYSTEM,Values=AMAZON_LINUX_2 - ///

        - ///
      • - ///
      - ///
    • - ///
    - pub filters: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePatchGroupsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchGroupsInputBody"); - formatter.field("max_results", &self.max_results); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchGroupStateInputBody<'a> { - ///

    The name of the patch group whose patch snapshot should be retrieved.

    - pub patch_group: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePatchGroupStateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchGroupStateInputBody"); - formatter.field("patch_group", &self.patch_group); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchPropertiesInputBody<'a> { - ///

    The operating system type for which to list patches.

    - pub operating_system: &'a std::option::Option, - ///

    The patch property for which you want to view patch details.

    - pub property: &'a std::option::Option, - ///

    Indicates whether to list patches for the Windows operating system or for Microsoft - /// applications. Not applicable for the Linux or macOS operating systems.

    - pub patch_set: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DescribePatchPropertiesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchPropertiesInputBody"); - formatter.field("operating_system", &self.operating_system); - formatter.field("property", &self.property); - formatter.field("patch_set", &self.patch_set); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSessionsInputBody<'a> { - ///

    The session status to retrieve a list of sessions for. For example, "Active".

    - pub state: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    One or more filters to limit the type of sessions returned by the request.

    - pub filters: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for DescribeSessionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSessionsInputBody"); - formatter.field("state", &self.state); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("filters", &self.filters); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct DisassociateOpsItemRelatedItemInputBody<'a> { - ///

    The ID of the OpsItem for which you want to delete an association between the OpsItem and a - /// related resource.

    - pub ops_item_id: &'a std::option::Option, - ///

    The ID of the association for which you want to delete an association between the OpsItem - /// and a related resource.

    - pub association_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for DisassociateOpsItemRelatedItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DisassociateOpsItemRelatedItemInputBody"); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.field("association_id", &self.association_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAutomationExecutionInputBody<'a> { - ///

    The unique identifier for an existing automation execution to examine. The execution ID is - /// returned by StartAutomationExecution when the execution of an Automation document is - /// initiated.

    - pub automation_execution_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetAutomationExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAutomationExecutionInputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCalendarStateInputBody<'a> { - ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager documents that represent the calendar - /// entries for which you want to get the state.

    - pub calendar_names: &'a std::option::Option>, - ///

    (Optional) The specific time for which you want to get calendar state information, in ISO 8601 format. If you do not add - /// AtTime, the current time is assumed.

    - pub at_time: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetCalendarStateInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCalendarStateInputBody"); - formatter.field("calendar_names", &self.calendar_names); - formatter.field("at_time", &self.at_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCommandInvocationInputBody<'a> { - ///

    (Required) The parent command ID of the invocation plugin.

    - pub command_id: &'a std::option::Option, - ///

    (Required) The ID of the managed instance targeted by the command. A managed instance can be - /// an Amazon Elastic Compute Cloud (Amazon EC2) instance or an instance in your hybrid environment that is configured for - /// AWS Systems Manager.

    - pub instance_id: &'a std::option::Option, - ///

    The name of the plugin for which you want detailed results. If the document contains only - /// one plugin, you can omit the name and details for that plugin. If the document contains more than - /// one plugin, you must specify the name of the plugin for which you want to view details.

    - ///

    Plugin names are also referred to as step names in Systems Manager documents. For - /// example, aws:RunShellScript is a plugin.

    - ///

    To find the PluginName, check the document content and find the name of the - /// plugin. Alternatively, use ListCommandInvocations with the - /// CommandId and Details parameters. The PluginName is the - /// Name attribute of the CommandPlugin object in the - /// CommandPlugins list.

    - pub plugin_name: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetCommandInvocationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCommandInvocationInputBody"); - formatter.field("command_id", &self.command_id); - formatter.field("instance_id", &self.instance_id); - formatter.field("plugin_name", &self.plugin_name); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetConnectionStatusInputBody<'a> { - ///

    The ID of the instance.

    - pub target: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetConnectionStatusInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetConnectionStatusInputBody"); - formatter.field("target", &self.target); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDefaultPatchBaselineInputBody<'a> { - ///

    Returns the default patch baseline for the specified operating system.

    - pub operating_system: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetDefaultPatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDefaultPatchBaselineInputBody"); - formatter.field("operating_system", &self.operating_system); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeployablePatchSnapshotForInstanceInputBody<'a> { - ///

    The ID of the instance for which the appropriate patch snapshot should be retrieved.

    - pub instance_id: &'a std::option::Option, - ///

    The user-defined snapshot ID.

    - pub snapshot_id: &'a std::option::Option, - ///

    Defines the basic information about a patch baseline override.

    - pub baseline_override: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetDeployablePatchSnapshotForInstanceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeployablePatchSnapshotForInstanceInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("snapshot_id", &self.snapshot_id); - formatter.field("baseline_override", &self.baseline_override); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentInputBody<'a> { - ///

    The name of the Systems Manager document.

    - pub name: &'a std::option::Option, - ///

    An optional field specifying the version of the artifact associated with the document. For - /// example, "Release 12, Update 6". This value is unique across all versions of a document and can't - /// be changed.

    - pub version_name: &'a std::option::Option, - ///

    The document version for which you want information.

    - pub document_version: &'a std::option::Option, - ///

    Returns the document in the specified format. The document format can be either JSON or - /// YAML. JSON is the default format.

    - pub document_format: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetDocumentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentInputBody"); - formatter.field("name", &self.name); - formatter.field("version_name", &self.version_name); - formatter.field("document_version", &self.document_version); - formatter.field("document_format", &self.document_format); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetInventoryInputBody<'a> { - ///

    One or more filters. Use a filter to return a more specific list of results.

    - pub filters: &'a std::option::Option>, - ///

    Returns counts of inventory types based on one or more expressions. For example, if you - /// aggregate by using an expression that uses the AWS:InstanceInformation.PlatformType - /// type, you can see a count of how many Windows and Linux instances exist in your inventoried - /// fleet.

    - pub aggregators: &'a std::option::Option>, - ///

    The list of inventory item types to return.

    - pub result_attributes: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetInventoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetInventoryInputBody"); - formatter.field("filters", &self.filters); - formatter.field("aggregators", &self.aggregators); - formatter.field("result_attributes", &self.result_attributes); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetInventorySchemaInputBody<'a> { - ///

    The type of inventory item to return.

    - pub type_name: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    Returns inventory schemas that support aggregation. For example, this call returns the - /// AWS:InstanceInformation type, because it supports aggregation based on the - /// PlatformName, PlatformType, and PlatformVersion - /// attributes.

    - pub aggregator: &'a bool, - ///

    Returns the sub-type schema for a specified inventory type.

    - pub sub_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetInventorySchemaInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetInventorySchemaInputBody"); - formatter.field("type_name", &self.type_name); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.field("aggregator", &self.aggregator); - formatter.field("sub_type", &self.sub_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window for which you want to retrieve information.

    - pub window_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionInputBody<'a> { - ///

    The ID of the maintenance window execution that includes the task.

    - pub window_execution_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetMaintenanceWindowExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionTaskInputBody<'a> { - ///

    The ID of the maintenance window execution that includes the task.

    - pub window_execution_id: &'a std::option::Option, - ///

    The ID of the specific task execution in the maintenance window task that should be - /// retrieved.

    - pub task_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetMaintenanceWindowExecutionTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_id", &self.task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionTaskInvocationInputBody<'a> { - ///

    The ID of the maintenance window execution for which the task is a part.

    - pub window_execution_id: &'a std::option::Option, - ///

    The ID of the specific task in the maintenance window task that should be retrieved.

    - pub task_id: &'a std::option::Option, - ///

    The invocation ID to retrieve.

    - pub invocation_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetMaintenanceWindowExecutionTaskInvocationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationInputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_id", &self.task_id); - formatter.field("invocation_id", &self.invocation_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowTaskInputBody<'a> { - ///

    The maintenance window ID that includes the task to retrieve.

    - pub window_id: &'a std::option::Option, - ///

    The maintenance window task ID to retrieve.

    - pub window_task_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetMaintenanceWindowTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowTaskInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsItemInputBody<'a> { - ///

    The ID of the OpsItem that you want to get.

    - pub ops_item_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetOpsItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsItemInputBody"); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsMetadataInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of an OpsMetadata Object to view.

    - pub ops_metadata_arn: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetOpsMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsMetadataInputBody"); - formatter.field("ops_metadata_arn", &self.ops_metadata_arn); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsSummaryInputBody<'a> { - ///

    Specify the name of a resource data sync to get.

    - pub sync_name: &'a std::option::Option, - ///

    Optional filters used to scope down the returned OpsItems.

    - pub filters: &'a std::option::Option>, - ///

    Optional aggregators that return counts of OpsItems based on one or more expressions.

    - pub aggregators: &'a std::option::Option>, - ///

    The OpsItem data type to return.

    - pub result_attributes: &'a std::option::Option>, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetOpsSummaryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsSummaryInputBody"); - formatter.field("sync_name", &self.sync_name); - formatter.field("filters", &self.filters); - formatter.field("aggregators", &self.aggregators); - formatter.field("result_attributes", &self.result_attributes); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParameterInputBody<'a> { - ///

    The name of the parameter you want to query.

    - pub name: &'a std::option::Option, - ///

    Return decrypted values for secure string parameters. This flag is ignored for String and - /// StringList parameter types.

    - pub with_decryption: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetParameterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParameterInputBody"); - formatter.field("name", &self.name); - formatter.field("with_decryption", &self.with_decryption); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParameterHistoryInputBody<'a> { - ///

    The name of the parameter for which you want to review history.

    - pub name: &'a std::option::Option, - ///

    Return decrypted values for secure string parameters. This flag is ignored for String and - /// StringList parameter types.

    - pub with_decryption: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetParameterHistoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParameterHistoryInputBody"); - formatter.field("name", &self.name); - formatter.field("with_decryption", &self.with_decryption); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersInputBody<'a> { - ///

    Names of the parameters for which you want to query information.

    - pub names: &'a std::option::Option>, - ///

    Return decrypted secure string value. Return decrypted values for secure string parameters. - /// This flag is ignored for String and StringList parameter types.

    - pub with_decryption: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetParametersInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersInputBody"); - formatter.field("names", &self.names); - formatter.field("with_decryption", &self.with_decryption); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersByPathInputBody<'a> { - ///

    The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierachy is - /// the parameter name except the last part of the parameter. For the API call to succeeed, the last - /// part of the parameter name cannot be in the path. A parameter name hierarchy can have a maximum - /// of 15 levels. Here is an example of a hierarchy: /Finance/Prod/IAD/WinServ2016/license33 - /// - ///

    - pub path: &'a std::option::Option, - ///

    Retrieve all parameters within a hierarchy.

    - /// - ///

    If a user has access to a path, then the user can access all levels of that path. For - /// example, if a user has permission to access path /a, then the user can also access - /// /a/b. Even if a user has explicitly been denied access in IAM for parameter - /// /a/b, they can still call the GetParametersByPath API action recursively for - /// /a and view /a/b.

    - ///
    - pub recursive: &'a std::option::Option, - ///

    Filters to limit the request results.

    - /// - ///

    For GetParametersByPath, the following filter Key names are - /// supported: Type, KeyId, Label, and - /// DataType.

    - ///

    The following Key values are not supported for - /// GetParametersByPath: tag, Name, Path, and - /// Tier.

    - ///
    - pub parameter_filters: - &'a std::option::Option>, - ///

    Retrieve all parameters in a hierarchy with their value decrypted.

    - pub with_decryption: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetParametersByPathInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersByPathInputBody"); - formatter.field("path", &self.path); - formatter.field("recursive", &self.recursive); - formatter.field("parameter_filters", &self.parameter_filters); - formatter.field("with_decryption", &self.with_decryption); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPatchBaselineInputBody<'a> { - ///

    The ID of the patch baseline to retrieve.

    - pub baseline_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetPatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPatchBaselineInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPatchBaselineForPatchGroupInputBody<'a> { - ///

    The name of the patch group whose patch baseline should be retrieved.

    - pub patch_group: &'a std::option::Option, - ///

    Returns he operating system rule specified for patch groups using the patch baseline.

    - pub operating_system: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetPatchBaselineForPatchGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPatchBaselineForPatchGroupInputBody"); - formatter.field("patch_group", &self.patch_group); - formatter.field("operating_system", &self.operating_system); - formatter.finish() - } -} - -///

    The request body of the GetServiceSetting API action.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct GetServiceSettingInputBody<'a> { - ///

    The ID of the service setting to get. The setting ID can be one of the following.

    - ///
      - ///
    • - ///

      - /// /ssm/automation/customer-script-log-destination - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/automation/customer-script-log-group-name - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/documents/console/public-sharing-permission - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/default-parameter-tier - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/high-throughput-enabled - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/managed-instance/activation-tier - ///

      - ///
    • - ///
    - pub setting_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for GetServiceSettingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetServiceSettingInputBody"); - formatter.field("setting_id", &self.setting_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct LabelParameterVersionInputBody<'a> { - ///

    The parameter name on which you want to attach one or more labels.

    - pub name: &'a std::option::Option, - ///

    The specific version of the parameter on which you want to attach one or more labels. If no - /// version is specified, the system attaches the label to the latest version.

    - pub parameter_version: &'a std::option::Option, - ///

    One or more labels to attach to the specified parameter version.

    - pub labels: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for LabelParameterVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LabelParameterVersionInputBody"); - formatter.field("name", &self.name); - formatter.field("parameter_version", &self.parameter_version); - formatter.field("labels", &self.labels); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationsInputBody<'a> { - ///

    One or more filters. Use a filter to return a more specific list of results.

    - /// - ///

    Filtering associations using the InstanceID attribute only returns legacy - /// associations created using the InstanceID attribute. Associations targeting the - /// instance that are part of the Target Attributes ResourceGroup or Tags - /// are not returned.

    - ///
    - pub association_filter_list: - &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAssociationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationsInputBody"); - formatter.field("association_filter_list", &self.association_filter_list); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationVersionsInputBody<'a> { - ///

    The association ID for which you want to view all versions.

    - pub association_id: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListAssociationVersionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationVersionsInputBody"); - formatter.field("association_id", &self.association_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCommandInvocationsInputBody<'a> { - ///

    (Optional) The invocations for a specific command ID.

    - pub command_id: &'a std::option::Option, - ///

    (Optional) The command execution details for a specific instance ID.

    - pub instance_id: &'a std::option::Option, - ///

    (Optional) The maximum number of items to return for this call. The call also returns a - /// token that you can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    (Optional) The token for the next set of items to return. (You received this token from a - /// previous call.)

    - pub next_token: &'a std::option::Option, - ///

    (Optional) One or more filters. Use a filter to return a more specific list of - /// results.

    - pub filters: &'a std::option::Option>, - ///

    (Optional) If set this returns the response of the command executions and any command - /// output. The default value is 'false'.

    - pub details: &'a bool, -} -impl<'a> std::fmt::Debug for ListCommandInvocationsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCommandInvocationsInputBody"); - formatter.field("command_id", &self.command_id); - formatter.field("instance_id", &self.instance_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("filters", &self.filters); - formatter.field("details", &self.details); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCommandsInputBody<'a> { - ///

    (Optional) If provided, lists only the specified command.

    - pub command_id: &'a std::option::Option, - ///

    (Optional) Lists commands issued against this instance ID.

    - /// - ///

    You can't specify an instance ID in the same command that you specify Status = - /// Pending. This is because the command has not reached the instance yet.

    - ///
    - pub instance_id: &'a std::option::Option, - ///

    (Optional) The maximum number of items to return for this call. The call also returns a - /// token that you can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    (Optional) The token for the next set of items to return. (You received this token from a - /// previous call.)

    - pub next_token: &'a std::option::Option, - ///

    (Optional) One or more filters. Use a filter to return a more specific list of results. - ///

    - pub filters: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for ListCommandsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCommandsInputBody"); - formatter.field("command_id", &self.command_id); - formatter.field("instance_id", &self.instance_id); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.field("filters", &self.filters); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListComplianceItemsInputBody<'a> { - ///

    One or more compliance filters. Use a filter to return a more specific list of - /// results.

    - pub filters: &'a std::option::Option>, - ///

    The ID for the resources from which to get compliance information. Currently, you can only - /// specify one resource ID.

    - pub resource_ids: &'a std::option::Option>, - ///

    The type of resource from which to get compliance information. Currently, the only supported - /// resource type is ManagedInstance.

    - pub resource_types: &'a std::option::Option>, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListComplianceItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListComplianceItemsInputBody"); - formatter.field("filters", &self.filters); - formatter.field("resource_ids", &self.resource_ids); - formatter.field("resource_types", &self.resource_types); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListComplianceSummariesInputBody<'a> { - ///

    One or more compliance or inventory filters. Use a filter to return a more specific list of - /// results.

    - pub filters: &'a std::option::Option>, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. Currently, you can specify null or 50. - /// The call also returns a token that you can specify in a subsequent call to get the next set of - /// results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListComplianceSummariesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListComplianceSummariesInputBody"); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentMetadataHistoryInputBody<'a> { - ///

    The name of the document.

    - pub name: &'a std::option::Option, - ///

    The version of the document.

    - pub document_version: &'a std::option::Option, - ///

    The type of data for which details are being requested. Currently, the only supported value - /// is DocumentReviews.

    - pub metadata: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDocumentMetadataHistoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentMetadataHistoryInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("metadata", &self.metadata); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentsInputBody<'a> { - ///

    This data type is deprecated. Instead, use Filters.

    - pub document_filter_list: &'a std::option::Option>, - ///

    One or more DocumentKeyValuesFilter objects. Use a filter to return a more - /// specific list of results. For keys, you can specify one or more key-value pair tags that have - /// been applied to a document. Other valid keys include Owner, Name, - /// PlatformTypes, DocumentType, and TargetType. For example, - /// to return documents you own use Key=Owner,Values=Self. To specify a custom key-value - /// pair, use the format Key=tag:tagName,Values=valueName.

    - /// - ///

    This API action only supports filtering documents by using a single tag key and one or more - /// tag values. For example: Key=tag:tagName,Values=valueName1,valueName2 - ///

    - ///
    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDocumentsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentsInputBody"); - formatter.field("document_filter_list", &self.document_filter_list); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentVersionsInputBody<'a> { - ///

    The name of the document. You can specify an Amazon Resource Name (ARN).

    - pub name: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListDocumentVersionsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentVersionsInputBody"); - formatter.field("name", &self.name); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInventoryEntriesInputBody<'a> { - ///

    The instance ID for which you want inventory information.

    - pub instance_id: &'a std::option::Option, - ///

    The type of inventory item for which you want information.

    - pub type_name: &'a std::option::Option, - ///

    One or more filters. Use a filter to return a more specific list of results.

    - pub filters: &'a std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListInventoryEntriesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInventoryEntriesInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("type_name", &self.type_name); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsItemEventsInputBody<'a> { - ///

    One or more OpsItem filters. Use a filter to return a more specific list of results.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListOpsItemEventsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsItemEventsInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsItemRelatedItemsInputBody<'a> { - ///

    The ID of the OpsItem for which you want to list all related-item resources.

    - pub ops_item_id: &'a std::option::Option, - ///

    One or more OpsItem filters. Use a filter to return a more specific list of results.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListOpsItemRelatedItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsItemRelatedItemsInputBody"); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsMetadataInputBody<'a> { - ///

    One or more filters to limit the number of OpsMetadata objects returned by the call.

    - pub filters: &'a std::option::Option>, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListOpsMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsMetadataInputBody"); - formatter.field("filters", &self.filters); - formatter.field("max_results", &self.max_results); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceComplianceSummariesInputBody<'a> { - ///

    One or more filters. Use a filter to return a more specific list of results.

    - pub filters: &'a std::option::Option>, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListResourceComplianceSummariesInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceComplianceSummariesInputBody"); - formatter.field("filters", &self.filters); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceDataSyncInputBody<'a> { - ///

    View a list of resource data syncs according to the sync type. Specify - /// SyncToDestination to view resource data syncs that synchronize data to an Amazon S3 - /// bucket. Specify SyncFromSource to view resource data syncs from AWS Organizations or from - /// multiple AWS Regions.

    - pub sync_type: &'a std::option::Option, - ///

    A token to start the list. Use this token to get the next set of results.

    - pub next_token: &'a std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - pub max_results: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListResourceDataSyncInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceDataSyncInputBody"); - formatter.field("sync_type", &self.sync_type); - formatter.field("next_token", &self.next_token); - formatter.field("max_results", &self.max_results); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceInputBody<'a> { - ///

    Returns a list of tags for a specific resource type.

    - pub resource_type: &'a std::option::Option, - ///

    The resource ID for which you want to see a list of tags.

    - pub resource_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ListTagsForResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceInputBody"); - formatter.field("resource_type", &self.resource_type); - formatter.field("resource_id", &self.resource_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ModifyDocumentPermissionInputBody<'a> { - ///

    The name of the document that you want to share.

    - pub name: &'a std::option::Option, - ///

    The permission type for the document. The permission type can be - /// Share.

    - pub permission_type: &'a std::option::Option, - ///

    The AWS user accounts that should have access to the document. The account IDs can either be - /// a group of account IDs or All.

    - pub account_ids_to_add: &'a std::option::Option>, - ///

    The AWS user accounts that should no longer have access to the document. The AWS user - /// account can either be a group of account IDs or All. This action has a - /// higher priority than AccountIdsToAdd. If you specify an account ID to add - /// and the same ID to remove, the system removes access to the document.

    - pub account_ids_to_remove: &'a std::option::Option>, - ///

    (Optional) The version of the document to share. If it's not specified, the system choose - /// the Default version to share.

    - pub shared_document_version: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ModifyDocumentPermissionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ModifyDocumentPermissionInputBody"); - formatter.field("name", &self.name); - formatter.field("permission_type", &self.permission_type); - formatter.field("account_ids_to_add", &self.account_ids_to_add); - formatter.field("account_ids_to_remove", &self.account_ids_to_remove); - formatter.field("shared_document_version", &self.shared_document_version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutComplianceItemsInputBody<'a> { - ///

    Specify an ID for this resource. For a managed instance, this is the instance ID.

    - pub resource_id: &'a std::option::Option, - ///

    Specify the type of resource. ManagedInstance is currently the only supported - /// resource type.

    - pub resource_type: &'a std::option::Option, - ///

    Specify the compliance type. For example, specify Association (for a State Manager - /// association), Patch, or Custom:string.

    - pub compliance_type: &'a std::option::Option, - ///

    A summary of the call execution that includes an execution ID, the type of execution (for - /// example, Command), and the date/time of the execution using a datetime object that - /// is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

    - pub execution_summary: &'a std::option::Option, - ///

    Information about the compliance as defined by the resource type. For example, for a patch - /// compliance type, Items includes information about the PatchSeverity, Classification, - /// and so on.

    - pub items: &'a std::option::Option>, - ///

    MD5 or SHA-256 content hash. The content hash is used to determine if existing information - /// should be overwritten or ignored. If the content hashes match, the request to put compliance - /// information is ignored.

    - pub item_content_hash: &'a std::option::Option, - ///

    The mode for uploading compliance items. You can specify COMPLETE or - /// PARTIAL. In COMPLETE mode, the system overwrites all existing - /// compliance information for the resource. You must provide a full list of compliance items each - /// time you send the request.

    - ///

    In PARTIAL mode, the system overwrites compliance information for a specific - /// association. The association must be configured with SyncCompliance set to - /// MANUAL. By default, all requests use COMPLETE mode.

    - /// - ///

    This attribute is only valid for association compliance.

    - ///
    - pub upload_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutComplianceItemsInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutComplianceItemsInputBody"); - formatter.field("resource_id", &self.resource_id); - formatter.field("resource_type", &self.resource_type); - formatter.field("compliance_type", &self.compliance_type); - formatter.field("execution_summary", &self.execution_summary); - formatter.field("items", &self.items); - formatter.field("item_content_hash", &self.item_content_hash); - formatter.field("upload_type", &self.upload_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutInventoryInputBody<'a> { - ///

    An instance ID where you want to add or update inventory items.

    - pub instance_id: &'a std::option::Option, - ///

    The inventory items that you want to add or update on instances.

    - pub items: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for PutInventoryInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutInventoryInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("items", &self.items); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PutParameterInputBody<'a> { - ///

    The fully qualified name of the parameter that you want to add to the system. The fully - /// qualified name includes the complete hierarchy of the parameter path and name. For parameters in - /// a hierarchy, you must include a leading forward slash character (/) when you create or reference - /// a parameter. For example: /Dev/DBServer/MySQL/db-string13 - ///

    - ///

    Naming Constraints:

    - ///
      - ///
    • - ///

      Parameter names are case sensitive.

      - ///
    • - ///
    • - ///

      A parameter name must be unique within an AWS Region

      - ///
    • - ///
    • - ///

      A parameter name can't be prefixed with "aws" or "ssm" (case-insensitive).

      - ///
    • - ///
    • - ///

      Parameter names can include only the following symbols and letters: - /// a-zA-Z0-9_.- - ///

      - ///

      In addition, the slash character ( / ) is used to delineate hierarchies in parameter - /// names. For example: /Dev/Production/East/Project-ABC/MyParameter - ///

      - ///
    • - ///
    • - ///

      A parameter name can't include spaces.

      - ///
    • - ///
    • - ///

      Parameter hierarchies are limited to a maximum depth of fifteen levels.

      - ///
    • - ///
    - ///

    For additional information about valid values for parameter names, see Creating Systems Manager parameters in the AWS Systems Manager User Guide.

    - /// - ///

    The maximum length constraint listed below includes capacity for additional system - /// attributes that are not part of the name. The maximum length for a parameter name, including the - /// full length of the parameter ARN, is 1011 characters. For example, the length of the following - /// parameter name is 65 characters, not 20 characters:

    - ///

    - /// arn:aws:ssm:us-east-2:111122223333:parameter/ExampleParameterName - ///

    - ///
    - pub name: &'a std::option::Option, - ///

    Information about the parameter that you want to add to the system. Optional but - /// recommended.

    - /// - ///

    Do not enter personally identifiable information in this field.

    - ///
    - pub description: &'a std::option::Option, - ///

    The parameter value that you want to add to the system. Standard parameters have a value - /// limit of 4 KB. Advanced parameters have a value limit of 8 KB.

    - /// - ///

    Parameters can't be referenced or nested in the values of other parameters. You can't - /// include {{}} or {{ssm:parameter-name}} in a - /// parameter value.

    - ///
    - pub value: &'a std::option::Option, - ///

    The type of parameter that you want to add to the system.

    - /// - ///

    - /// SecureString is not currently supported for AWS CloudFormation - /// templates.

    - ///
    - ///

    Items in a StringList must be separated by a comma (,). You can't - /// use other punctuation or special character to escape items in the list. If you have a parameter - /// value that requires a comma, then use the String data type.

    - /// - ///

    Specifying a parameter type is not required when updating a parameter. You must specify a - /// parameter type when creating a parameter.

    - ///
    - pub r#type: &'a std::option::Option, - ///

    The KMS Key ID that you want to use to encrypt a parameter. Either the default AWS Key - /// Management Service (AWS KMS) key automatically assigned to your AWS account or a custom key. - /// Required for parameters that use the SecureString data type.

    - ///

    If you don't specify a key ID, the system uses the default key associated with your AWS - /// account.

    - ///
      - ///
    • - ///

      To use your default AWS KMS key, choose the SecureString data - /// type, and do not specify the Key ID when you - /// create the parameter. The system automatically populates Key ID with - /// your default KMS key.

      - ///
    • - ///
    • - ///

      To use a custom KMS key, choose the SecureString data type with - /// the Key ID parameter.

      - ///
    • - ///
    - pub key_id: &'a std::option::Option, - ///

    Overwrite an existing parameter. The default value is 'false'.

    - pub overwrite: &'a std::option::Option, - ///

    A regular expression used to validate the parameter value. For example, for String types - /// with values restricted to numbers, you can specify the following: AllowedPattern=^\d+$

    - pub allowed_pattern: &'a std::option::Option, - ///

    Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - /// different ways, such as by purpose, owner, or environment. For example, you might want to tag a - /// Systems Manager parameter to identify the type of resource to which it applies, the environment, or the - /// type of configuration data referenced by the parameter. In this case, you could specify the - /// following key name/value pairs:

    - ///
      - ///
    • - ///

      - /// Key=Resource,Value=S3bucket - ///

      - ///
    • - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    • - ///

      - /// Key=ParameterType,Value=LicenseKey - ///

      - ///
    • - ///
    - /// - ///

    To add tags to an existing Systems Manager parameter, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, - ///

    The parameter tier to assign to a parameter.

    - ///

    Parameter Store offers a standard tier and an advanced tier for parameters. Standard - /// parameters have a content size limit of 4 KB and can't be configured to use parameter policies. - /// You can create a maximum of 10,000 standard parameters for each Region in an AWS account. - /// Standard parameters are offered at no additional cost.

    - ///

    Advanced parameters have a content size limit of 8 KB and can be configured to use parameter - /// policies. You can create a maximum of 100,000 advanced parameters for each Region in an AWS - /// account. Advanced parameters incur a charge. For more information, see Standard and - /// advanced parameter tiers in the AWS Systems Manager User Guide.

    - ///

    You can change a standard parameter to an advanced parameter any time. But you can't revert - /// an advanced parameter to a standard parameter. Reverting an advanced parameter to a standard - /// parameter would result in data loss because the system would truncate the size of the parameter - /// from 8 KB to 4 KB. Reverting would also remove any policies attached to the parameter. Lastly, - /// advanced parameters use a different form of encryption than standard parameters.

    - ///

    If you no longer need an advanced parameter, or if you no longer want to incur charges for - /// an advanced parameter, you must delete it and recreate it as a new standard parameter.

    - ///

    - /// Using the Default Tier Configuration - ///

    - ///

    In PutParameter requests, you can specify the tier to create the parameter in. - /// Whenever you specify a tier in the request, Parameter Store creates or updates the parameter - /// according to that request. However, if you do not specify a tier in a request, Parameter Store - /// assigns the tier based on the current Parameter Store default tier configuration.

    - ///

    The default tier when you begin using Parameter Store is the standard-parameter tier. If you - /// use the advanced-parameter tier, you can specify one of the following as the default:

    - ///
      - ///
    • - ///

      - /// Advanced: With this option, Parameter Store evaluates all - /// requests as advanced parameters.

      - ///
    • - ///
    • - ///

      - /// Intelligent-Tiering: With this option, Parameter Store - /// evaluates each request to determine if the parameter is standard or advanced.

      - ///

      If the request doesn't include any options that require an advanced parameter, the - /// parameter is created in the standard-parameter tier. If one or more options requiring an - /// advanced parameter are included in the request, Parameter Store create a parameter in the - /// advanced-parameter tier.

      - ///

      This approach helps control your parameter-related costs by always creating standard - /// parameters unless an advanced parameter is necessary.

      - ///
    • - ///
    - ///

    Options that require an advanced parameter include the following:

    - ///
      - ///
    • - ///

      The content size of the parameter is more than 4 KB.

      - ///
    • - ///
    • - ///

      The parameter uses a parameter policy.

      - ///
    • - ///
    • - ///

      More than 10,000 parameters already exist in your AWS account in the current - /// Region.

      - ///
    • - ///
    - ///

    For more information about configuring the default tier option, see Specifying a - /// default parameter tier in the AWS Systems Manager User Guide.

    - pub tier: &'a std::option::Option, - ///

    One or more policies to apply to a parameter. This action takes a JSON array. Parameter - /// Store supports the following policy types:

    - ///

    Expiration: This policy deletes the parameter after it expires. When you create the policy, - /// you specify the expiration date. You can update the expiration date and time by updating the - /// policy. Updating the parameter does not affect the expiration date and time. - /// When the expiration time is reached, Parameter Store deletes the parameter.

    - ///

    ExpirationNotification: This policy triggers an event in Amazon CloudWatch Events that - /// notifies you about the expiration. By using this policy, you can receive notification before or - /// after the expiration time is reached, in units of days or hours.

    - ///

    NoChangeNotification: This policy triggers a CloudWatch event if a parameter has not been - /// modified for a specified period of time. This policy type is useful when, for example, a secret - /// needs to be changed within a period of time, but it has not been changed.

    - ///

    All existing policies are preserved until you send new policies or an empty policy. For more - /// information about parameter policies, see Assigning parameter - /// policies.

    - pub policies: &'a std::option::Option, - ///

    The data type for a String parameter. Supported data types include plain text - /// and Amazon Machine Image IDs.

    - ///

    - /// The following data type values are supported. - ///

    - ///
      - ///
    • - ///

      - /// text - ///

      - ///
    • - ///
    • - ///

      - /// aws:ec2:image - ///

      - ///
    • - ///
    - ///

    When you create a String parameter and specify aws:ec2:image, - /// Systems Manager validates the parameter value is in the required format, such as - /// ami-12345abcdeEXAMPLE, and that the specified AMI is available in your AWS account. - /// For more information, see Native - /// parameter support for Amazon Machine Image IDs in the - /// AWS Systems Manager User Guide.

    - pub data_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for PutParameterInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutParameterInputBody"); - formatter.field("name", &self.name); - formatter.field("description", &self.description); - formatter.field("value", &self.value); - formatter.field("r#type", &self.r#type); - formatter.field("key_id", &self.key_id); - formatter.field("overwrite", &self.overwrite); - formatter.field("allowed_pattern", &self.allowed_pattern); - formatter.field("tags", &self.tags); - formatter.field("tier", &self.tier); - formatter.field("policies", &self.policies); - formatter.field("data_type", &self.data_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterDefaultPatchBaselineInputBody<'a> { - ///

    The ID of the patch baseline that should be the default patch baseline.

    - pub baseline_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterDefaultPatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterDefaultPatchBaselineInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterPatchBaselineForPatchGroupInputBody<'a> { - ///

    The ID of the patch baseline to register the patch group with.

    - pub baseline_id: &'a std::option::Option, - ///

    The name of the patch group that should be registered with the patch baseline.

    - pub patch_group: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterPatchBaselineForPatchGroupInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterPatchBaselineForPatchGroupInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("patch_group", &self.patch_group); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTargetWithMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window the target should be registered with.

    - pub window_id: &'a std::option::Option, - ///

    The type of target being registered with the maintenance window.

    - pub resource_type: &'a std::option::Option, - ///

    The targets to register with the maintenance window. In other words, the instances to run - /// commands on when the maintenance window runs.

    - /// - ///

    If a single maintenance window task is registered with multiple targets, its task - /// invocations occur sequentially and not in parallel. If your task must run on multiple targets at - /// the same time, register a task for each target individually and assign each task the same - /// priority level.

    - ///
    - ///

    You can specify targets using instance IDs, resource group names, or tags that have been - /// applied to instances.

    - ///

    - /// Example 1: Specify instance IDs

    - ///

    - /// Key=InstanceIds,Values=instance-id-1,instance-id-2,instance-id-3 - /// - ///

    - ///

    - /// Example 2: Use tag key-pairs applied to instances

    - ///

    - /// Key=tag:my-tag-key,Values=my-tag-value-1,my-tag-value-2 - /// - ///

    - ///

    - /// Example 3: Use tag-keys applied to instances

    - ///

    - /// Key=tag-key,Values=my-tag-key-1,my-tag-key-2 - /// - ///

    - ///

    - /// Example 4: Use resource group names

    - ///

    - /// Key=resource-groups:Name,Values=resource-group-name - /// - ///

    - ///

    - /// Example 5: Use filters for resource group types

    - ///

    - /// Key=resource-groups:ResourceTypeFilters,Values=resource-type-1,resource-type-2 - /// - ///

    - /// - ///

    For Key=resource-groups:ResourceTypeFilters, specify resource types in the - /// following format

    - ///

    - /// Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC - /// - ///

    - ///
    - ///

    For more information about these examples formats, including the best use case for each one, - /// see Examples: Register - /// targets with a maintenance window in the AWS Systems Manager User Guide.

    - pub targets: &'a std::option::Option>, - ///

    User-provided value that will be included in any CloudWatch events raised while running - /// tasks for these targets in this maintenance window.

    - pub owner_information: &'a std::option::Option, - ///

    An optional name for the target.

    - pub name: &'a std::option::Option, - ///

    An optional description for the target.

    - pub description: &'a std::option::Option, - ///

    User-provided idempotency token.

    - pub client_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterTargetWithMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTargetWithMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("resource_type", &self.resource_type); - formatter.field("targets", &self.targets); - formatter.field("owner_information", &"*** Sensitive Data Redacted ***"); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("client_token", &self.client_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTaskWithMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window the task should be added to.

    - pub window_id: &'a std::option::Option, - ///

    The targets (either instances or maintenance window targets).

    - /// - ///

    One or more targets must be specified for maintenance window Run Command-type tasks. - /// Depending on the task, targets are optional for other maintenance window task types (Automation, - /// AWS Lambda, and AWS Step Functions). For more information about running tasks that do not - /// specify targets, see Registering - /// maintenance window tasks without targets in the - /// AWS Systems Manager User Guide.

    - ///
    - ///

    Specify instances using the following format:

    - ///

    - /// Key=InstanceIds,Values=, - ///

    - ///

    Specify maintenance window targets using the following format:

    - ///

    - /// Key=WindowTargetIds,Values=, - ///

    - pub targets: &'a std::option::Option>, - ///

    The ARN of the task to run.

    - pub task_arn: &'a std::option::Option, - ///

    The ARN of the IAM service role for Systems Manager to assume when running a - /// maintenance window task. If you do not specify a service role ARN, Systems Manager uses your account's - /// service-linked role. If no service-linked role for Systems Manager exists in your account, it is created when you run - /// RegisterTaskWithMaintenanceWindow.

    - ///

    For more information, see the following topics in the in the AWS Systems Manager User Guide:

    - /// - pub service_role_arn: &'a std::option::Option, - ///

    The type of task being registered.

    - pub task_type: &'a std::option::Option, - ///

    The parameters that should be passed to the task when it is run.

    - /// - ///

    - /// TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - /// instead use the Parameters option in the TaskInvocationParameters structure. For information - /// about how Systems Manager handles these options for the supported maintenance window task - /// types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - pub task_parameters: &'a std::option::Option< - std::collections::HashMap< - std::string::String, - crate::model::MaintenanceWindowTaskParameterValueExpression, - >, - >, - ///

    The parameters that the task should use during execution. Populate only the fields that - /// match the task type. All other fields should be empty.

    - pub task_invocation_parameters: - &'a std::option::Option, - ///

    The priority of the task in the maintenance window, the lower the number the higher the - /// priority. Tasks in a maintenance window are scheduled in priority order with tasks that have the - /// same priority scheduled in parallel.

    - pub priority: &'a std::option::Option, - ///

    The maximum number of targets this task can be run for in parallel.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1. This value does not - /// affect the running of your task.

    - ///
    - pub max_concurrency: &'a std::option::Option, - ///

    The maximum number of errors allowed before this task stops being scheduled.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1. This value does not - /// affect the running of your task.

    - ///
    - pub max_errors: &'a std::option::Option, - ///

    A structure containing information about an S3 bucket to write instance-level logs to.

    - /// - ///

    - /// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the - /// OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - /// For information about how Systems Manager handles these options for the supported maintenance - /// window task types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - pub logging_info: &'a std::option::Option, - ///

    An optional name for the task.

    - pub name: &'a std::option::Option, - ///

    An optional description for the task.

    - pub description: &'a std::option::Option, - ///

    User-provided idempotency token.

    - pub client_token: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for RegisterTaskWithMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTaskWithMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("targets", &self.targets); - formatter.field("task_arn", &self.task_arn); - formatter.field("service_role_arn", &self.service_role_arn); - formatter.field("task_type", &self.task_type); - formatter.field("task_parameters", &"*** Sensitive Data Redacted ***"); - formatter.field( - "task_invocation_parameters", - &self.task_invocation_parameters, - ); - formatter.field("priority", &self.priority); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("logging_info", &self.logging_info); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("client_token", &self.client_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RemoveTagsFromResourceInputBody<'a> { - ///

    The type of resource from which you want to remove a tag.

    - /// - ///

    The ManagedInstance type for this API action is only for on-premises managed instances. - /// Specify the name of the managed instance in the following format: mi-ID_number. For example, - /// mi-1a2b3c4d5e6f.

    - ///
    - pub resource_type: &'a std::option::Option, - ///

    The ID of the resource from which you want to remove tags. For example:

    - ///

    ManagedInstance: mi-012345abcde

    - ///

    MaintenanceWindow: mw-012345abcde

    - ///

    PatchBaseline: pb-012345abcde

    - ///

    OpsMetadata object: ResourceID for tagging is created from the Amazon Resource - /// Name (ARN) for the object. Specifically, ResourceID is created from the strings that - /// come after the word opsmetadata in the ARN. For example, an OpsMetadata object with - /// an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager - /// has a ResourceID of either aws/ssm/MyGroup/appmanager or - /// /aws/ssm/MyGroup/appmanager.

    - ///

    For the Document and Parameter values, use the name of the resource.

    - /// - ///

    The ManagedInstance type for this API action is only for on-premises managed instances. - /// Specify the name of the managed instance in the following format: mi-ID_number. For example, - /// mi-1a2b3c4d5e6f.

    - ///
    - pub resource_id: &'a std::option::Option, - ///

    Tag keys that you want to remove from the specified resource.

    - pub tag_keys: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for RemoveTagsFromResourceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RemoveTagsFromResourceInputBody"); - formatter.field("resource_type", &self.resource_type); - formatter.field("resource_id", &self.resource_id); - formatter.field("tag_keys", &self.tag_keys); - formatter.finish() - } -} - -///

    The request body of the ResetServiceSetting API action.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetServiceSettingInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.

    - ///
      - ///
    • - ///

      - /// /ssm/automation/customer-script-log-destination - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/automation/customer-script-log-group-name - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/documents/console/public-sharing-permission - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/default-parameter-tier - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/high-throughput-enabled - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/managed-instance/activation-tier - ///

      - ///
    • - ///
    - pub setting_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ResetServiceSettingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetServiceSettingInputBody"); - formatter.field("setting_id", &self.setting_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ResumeSessionInputBody<'a> { - ///

    The ID of the disconnected session to resume.

    - pub session_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for ResumeSessionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResumeSessionInputBody"); - formatter.field("session_id", &self.session_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendAutomationSignalInputBody<'a> { - ///

    The unique identifier for an existing Automation execution that you want to send the signal - /// to.

    - pub automation_execution_id: &'a std::option::Option, - ///

    The type of signal to send to an Automation execution.

    - pub signal_type: &'a std::option::Option, - ///

    The data sent with the signal. The data schema depends on the type of signal used in the - /// request.

    - ///

    For Approve and Reject signal types, the payload is an optional - /// comment that you can send with the signal type. For example:

    - ///

    - /// Comment="Looks good" - ///

    - ///

    For StartStep and Resume signal types, you must send the name of - /// the Automation step to start or resume as the payload. For example:

    - ///

    - /// StepName="step1" - ///

    - ///

    For the StopStep signal type, you must send the step execution ID as the - /// payload. For example:

    - ///

    - /// StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab" - ///

    - pub payload: &'a std::option::Option< - std::collections::HashMap>, - >, -} -impl<'a> std::fmt::Debug for SendAutomationSignalInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendAutomationSignalInputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.field("signal_type", &self.signal_type); - formatter.field("payload", &self.payload); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCommandInputBody<'a> { - ///

    The IDs of the instances where the command should run. Specifying instance IDs is most - /// useful when you are targeting a limited number of instances, though you can specify up to 50 - /// IDs.

    - ///

    To target a larger number of instances, or if you prefer not to list individual instance - /// IDs, we recommend using the Targets option instead. Using Targets, - /// which accepts tag key-value pairs to identify the instances to send commands to, you can a send - /// command to tens, hundreds, or thousands of instances at once.

    - ///

    For more information about how to use targets, see Using targets and rate - /// controls to send commands to a fleet in the - /// AWS Systems Manager User Guide.

    - pub instance_ids: &'a std::option::Option>, - ///

    An array of search criteria that targets instances using a Key,Value - /// combination that you specify. Specifying targets is most useful when you want to send a command - /// to a large number of instances at once. Using Targets, which accepts tag key-value - /// pairs to identify instances, you can send a command to tens, hundreds, or thousands of instances - /// at once.

    - ///

    To send a command to a smaller number of instances, you can use the InstanceIds - /// option instead.

    - ///

    For more information about how to use targets, see Sending commands to a - /// fleet in the AWS Systems Manager User Guide.

    - pub targets: &'a std::option::Option>, - ///

    The name of the Systems Manager document to run. This can be a public document or a custom document. - /// To run a shared document belonging to another account, specify the document ARN. For more - /// information about how to use shared documents, see Using shared SSM documents - /// in the AWS Systems Manager User Guide.

    - pub document_name: &'a std::option::Option, - ///

    The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a - /// specific version number. If you run commands by using the AWS CLI, then you must escape the first - /// two options by using a backslash. If you specify a version number, then you don't need to use the - /// backslash. For example:

    - ///

    --document-version "\$DEFAULT"

    - ///

    --document-version "\$LATEST"

    - ///

    --document-version "3"

    - pub document_version: &'a std::option::Option, - ///

    The Sha256 or Sha1 hash created by the system when the document was created.

    - /// - ///

    Sha1 hashes have been deprecated.

    - ///
    - pub document_hash: &'a std::option::Option, - ///

    Sha256 or Sha1.

    - /// - ///

    Sha1 hashes have been deprecated.

    - ///
    - pub document_hash_type: &'a std::option::Option, - ///

    If this time is reached and the command has not already started running, it will not - /// run.

    - pub timeout_seconds: &'a std::option::Option, - ///

    User-specified information about the command, such as a brief description of what the - /// command should do.

    - pub comment: &'a std::option::Option, - ///

    The required and optional parameters specified in the document being run.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager - /// automatically determines the Region of the S3 bucket.

    - pub output_s3_region: &'a std::option::Option, - ///

    The name of the S3 bucket where command execution responses should be stored.

    - pub output_s3_bucket_name: &'a std::option::Option, - ///

    The directory structure within the S3 bucket where the responses should be stored.

    - pub output_s3_key_prefix: &'a std::option::Option, - ///

    (Optional) The maximum number of instances that are allowed to run the command at the same - /// time. You can specify a number such as 10 or a percentage such as 10%. The default value is 50. - /// For more information about how to use MaxConcurrency, see Using - /// concurrency controls in the AWS Systems Manager User Guide.

    - pub max_concurrency: &'a std::option::Option, - ///

    The maximum number of errors allowed without the command failing. When the command fails one - /// more time beyond the value of MaxErrors, the systems stops sending the command to additional - /// targets. You can specify a number like 10 or a percentage like 10%. The default value is 0. For - /// more information about how to use MaxErrors, see Using - /// error controls in the AWS Systems Manager User Guide.

    - pub max_errors: &'a std::option::Option, - ///

    The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for Run - /// Command commands.

    - pub service_role_arn: &'a std::option::Option, - ///

    Configurations for sending notifications.

    - pub notification_config: &'a std::option::Option, - ///

    Enables Systems Manager to send Run Command output to Amazon CloudWatch Logs.

    - pub cloud_watch_output_config: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for SendCommandInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCommandInputBody"); - formatter.field("instance_ids", &self.instance_ids); - formatter.field("targets", &self.targets); - formatter.field("document_name", &self.document_name); - formatter.field("document_version", &self.document_version); - formatter.field("document_hash", &self.document_hash); - formatter.field("document_hash_type", &self.document_hash_type); - formatter.field("timeout_seconds", &self.timeout_seconds); - formatter.field("comment", &self.comment); - formatter.field("parameters", &self.parameters); - formatter.field("output_s3_region", &self.output_s3_region); - formatter.field("output_s3_bucket_name", &self.output_s3_bucket_name); - formatter.field("output_s3_key_prefix", &self.output_s3_key_prefix); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("service_role_arn", &self.service_role_arn); - formatter.field("notification_config", &self.notification_config); - formatter.field("cloud_watch_output_config", &self.cloud_watch_output_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartAssociationsOnceInputBody<'a> { - ///

    The association IDs that you want to run immediately and only one time.

    - pub association_ids: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for StartAssociationsOnceInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartAssociationsOnceInputBody"); - formatter.field("association_ids", &self.association_ids); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartAutomationExecutionInputBody<'a> { - ///

    The name of the Systems Manager document to run. This can be a public document or a custom document. - /// To run a shared document belonging to another account, specify the document ARN. For more - /// information about how to use shared documents, see Using shared SSM documents - /// in the AWS Systems Manager User Guide.

    - pub document_name: &'a std::option::Option, - ///

    The version of the Automation document to use for this execution.

    - pub document_version: &'a std::option::Option, - ///

    A key-value map of execution parameters, which match the declared parameters in the - /// Automation document.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    User-provided idempotency token. The token must be unique, is case insensitive, enforces the - /// UUID format, and can't be reused.

    - pub client_token: &'a std::option::Option, - ///

    The execution mode of the automation. Valid modes include the following: Auto and - /// Interactive. The default mode is Auto.

    - pub mode: &'a std::option::Option, - ///

    The name of the parameter used as the target resource for the rate-controlled execution. - /// Required if you specify targets.

    - pub target_parameter_name: &'a std::option::Option, - ///

    A key-value mapping to target resources. Required if you specify TargetParameterName.

    - pub targets: &'a std::option::Option>, - ///

    A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - /// cannot be specified together.

    - pub target_maps: &'a std::option::Option< - std::vec::Vec< - std::collections::HashMap>, - >, - >, - ///

    The maximum number of targets allowed to run this task in parallel. You can specify a - /// number, such as 10, or a percentage, such as 10%. The default value is 10.

    - pub max_concurrency: &'a std::option::Option, - ///

    The number of errors that are allowed before the system stops running the automation on - /// additional targets. You can specify either an absolute number of errors, for example 10, or a - /// percentage of the target set, for example 10%. If you specify 3, for example, the system stops - /// running the automation when the fourth error is received. If you specify 0, then the system stops - /// running the automation on additional targets after the first error result is returned. If you run - /// an automation on 50 resources and set max-errors to 10%, then the system stops running the - /// automation on additional targets when the sixth error is received.

    - ///

    Executions that are already running an automation when max-errors is reached are allowed to - /// complete, but some of these executions may fail as well. If you need to ensure that there won't - /// be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one - /// at a time.

    - pub max_errors: &'a std::option::Option, - ///

    A location is a combination of AWS Regions and/or AWS accounts where you want to run the - /// Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For - /// more information, see Running Automation workflows in multiple AWS Regions and accounts in the - /// AWS Systems Manager User Guide.

    - pub target_locations: &'a std::option::Option>, - ///

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for - /// an automation. Tags enable you to categorize a resource in different ways, such as by purpose, - /// owner, or environment. For example, you might want to tag an automation to identify an - /// environment or operating system. In this case, you could specify the following key name/value - /// pairs:

    - ///
      - ///
    • - ///

      - /// Key=environment,Value=test - ///

      - ///
    • - ///
    • - ///

      - /// Key=OS,Value=Windows - ///

      - ///
    • - ///
    - /// - ///

    To add tags to an existing patch baseline, use the AddTagsToResource - /// action.

    - ///
    - pub tags: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for StartAutomationExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartAutomationExecutionInputBody"); - formatter.field("document_name", &self.document_name); - formatter.field("document_version", &self.document_version); - formatter.field("parameters", &self.parameters); - formatter.field("client_token", &self.client_token); - formatter.field("mode", &self.mode); - formatter.field("target_parameter_name", &self.target_parameter_name); - formatter.field("targets", &self.targets); - formatter.field("target_maps", &self.target_maps); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("target_locations", &self.target_locations); - formatter.field("tags", &self.tags); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartChangeRequestExecutionInputBody<'a> { - ///

    The date and time specified in the change request to run the Automation runbooks.

    - /// - ///

    The Automation runbooks specified for the runbook workflow can't run until all required - /// approvals for the change request have been received.

    - ///
    - pub scheduled_time: &'a std::option::Option, - ///

    The name of the change template document to run during the runbook workflow.

    - pub document_name: &'a std::option::Option, - ///

    The version of the change template document to run during the runbook workflow.

    - pub document_version: &'a std::option::Option, - ///

    A key-value map of parameters that match the declared parameters in the change template - /// document.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    The name of the change request associated with the runbook workflow to be run.

    - pub change_request_name: &'a std::option::Option, - ///

    The user-provided idempotency token. The token must be unique, is case insensitive, enforces - /// the UUID format, and can't be reused.

    - pub client_token: &'a std::option::Option, - ///

    Information about the Automation runbooks (Automation documents) that are run during the - /// runbook workflow.

    - /// - ///

    The Automation runbooks specified for the runbook workflow can't run until all required - /// approvals for the change request have been received.

    - ///
    - pub runbooks: &'a std::option::Option>, - ///

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for - /// a change request. Tags enable you to categorize a resource in different ways, such as by - /// purpose, owner, or environment. For example, you might want to tag a change request to identify - /// an environment or target AWS Region. In this case, you could specify the following key-value - /// pairs:

    - ///
      - ///
    • - ///

      - /// Key=Environment,Value=Production - ///

      - ///
    • - ///
    • - ///

      - /// Key=Region,Value=us-east-2 - ///

      - ///
    • - ///
    - pub tags: &'a std::option::Option>, - ///

    The time that the requester expects the runbook workflow related to the change request to - /// complete. The time is an estimate only that the requester provides for reviewers.

    - pub scheduled_end_time: &'a std::option::Option, - ///

    User-provided details about the change. If no details are provided, content specified in the - /// Template information section of the associated change template - /// is added.

    - pub change_details: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StartChangeRequestExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartChangeRequestExecutionInputBody"); - formatter.field("scheduled_time", &self.scheduled_time); - formatter.field("document_name", &self.document_name); - formatter.field("document_version", &self.document_version); - formatter.field("parameters", &self.parameters); - formatter.field("change_request_name", &self.change_request_name); - formatter.field("client_token", &self.client_token); - formatter.field("runbooks", &self.runbooks); - formatter.field("tags", &self.tags); - formatter.field("scheduled_end_time", &self.scheduled_end_time); - formatter.field("change_details", &self.change_details); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StartSessionInputBody<'a> { - ///

    The instance to connect to for the session.

    - pub target: &'a std::option::Option, - ///

    The name of the SSM document to define the parameters and plugin settings for the session. - /// For example, SSM-SessionManagerRunShell. You can call the GetDocument API to verify the document exists before attempting to start a session. - /// If no document name is provided, a shell to the instance is launched by default.

    - pub document_name: &'a std::option::Option, - ///

    Reserved for future use.

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, -} -impl<'a> std::fmt::Debug for StartSessionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartSessionInputBody"); - formatter.field("target", &self.target); - formatter.field("document_name", &self.document_name); - formatter.field("parameters", &self.parameters); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct StopAutomationExecutionInputBody<'a> { - ///

    The execution ID of the Automation to stop.

    - pub automation_execution_id: &'a std::option::Option, - ///

    The stop request type. Valid types include the following: Cancel and Complete. The default - /// type is Cancel.

    - pub r#type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for StopAutomationExecutionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StopAutomationExecutionInputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.field("r#type", &self.r#type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct TerminateSessionInputBody<'a> { - ///

    The ID of the session to terminate.

    - pub session_id: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for TerminateSessionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TerminateSessionInputBody"); - formatter.field("session_id", &self.session_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UnlabelParameterVersionInputBody<'a> { - ///

    The parameter name of which you want to delete one or more labels.

    - pub name: &'a std::option::Option, - ///

    The specific version of the parameter which you want to delete one or more labels from. If - /// it is not present, the call will fail.

    - pub parameter_version: &'a std::option::Option, - ///

    One or more labels to delete from the specified parameter version.

    - pub labels: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UnlabelParameterVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnlabelParameterVersionInputBody"); - formatter.field("name", &self.name); - formatter.field("parameter_version", &self.parameter_version); - formatter.field("labels", &self.labels); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAssociationInputBody<'a> { - ///

    The ID of the association you want to update.

    - pub association_id: &'a std::option::Option, - ///

    The parameters you want to update for the association. If you create a parameter using - /// Parameter Store, you can reference the parameter using {{ssm:parameter-name}}

    - pub parameters: &'a std::option::Option< - std::collections::HashMap>, - >, - ///

    The document version you want update for the association.

    - pub document_version: &'a std::option::Option, - ///

    The cron expression used to schedule the association that you want to update.

    - pub schedule_expression: &'a std::option::Option, - ///

    An S3 bucket where you want to store the results of this request.

    - pub output_location: &'a std::option::Option, - ///

    The name of the SSM document that contains the configuration information for the instance. - /// You can specify Command or Automation documents.

    - ///

    You can specify AWS-predefined documents, documents you created, or a document that is - /// shared with you from another account.

    - ///

    For SSM documents that are shared with you from other AWS accounts, you must specify the - /// complete SSM document ARN, in the following format:

    - ///

    - /// arn:aws:ssm:region:account-id:document/document-name - /// - ///

    - ///

    For example:

    - ///

    - /// arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document - ///

    - ///

    For AWS-predefined documents and SSM documents you created in your account, you only need to - /// specify the document name. For example, AWS-ApplyPatchBaseline or - /// My-Document.

    - pub name: &'a std::option::Option, - ///

    The targets of the association.

    - pub targets: &'a std::option::Option>, - ///

    The name of the association that you want to update.

    - pub association_name: &'a std::option::Option, - ///

    This parameter is provided for concurrency control purposes. You must specify the latest - /// association version in the service. If you want to ensure that this request succeeds, either - /// specify $LATEST, or omit this parameter.

    - pub association_version: &'a std::option::Option, - ///

    Specify the target for the association. This target is required for associations that use an - /// Automation document and target resources by using rate controls.

    - pub automation_target_parameter_name: &'a std::option::Option, - ///

    The number of errors that are allowed before the system stops sending requests to run the - /// association on additional targets. You can specify either an absolute number of errors, for - /// example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - /// the system stops sending requests when the fourth error is received. If you specify 0, then the - /// system stops sending requests after the first error is returned. If you run an association on 50 - /// instances and set MaxError to 10%, then the system stops sending the request when the sixth error - /// is received.

    - ///

    Executions that are already running an association when MaxErrors is reached are allowed to - /// complete, but some of these executions may fail as well. If you need to ensure that there won't - /// be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one - /// at a time.

    - pub max_errors: &'a std::option::Option, - ///

    The maximum number of targets allowed to run the association at the same time. You can - /// specify a number, for example 10, or a percentage of the target set, for example 10%. The default - /// value is 100%, which means all targets run the association at the same time.

    - ///

    If a new instance starts and attempts to run an association while Systems Manager is running - /// MaxConcurrency associations, the association is allowed to run. During the next association - /// interval, the new instance will process its association within the limit specified for - /// MaxConcurrency.

    - pub max_concurrency: &'a std::option::Option, - ///

    The severity level to assign to the association.

    - pub compliance_severity: &'a std::option::Option, - ///

    The mode for generating association compliance. You can specify AUTO or - /// MANUAL. In AUTO mode, the system uses the status of the association - /// execution to determine the compliance status. If the association execution runs successfully, - /// then the association is COMPLIANT. If the association execution doesn't run - /// successfully, the association is NON-COMPLIANT.

    - ///

    In MANUAL mode, you must specify the AssociationId as a parameter - /// for the PutComplianceItems API action. In this case, compliance data is not - /// managed by State Manager. It is managed by your direct call to the PutComplianceItems API action.

    - ///

    By default, all associations use AUTO mode.

    - pub sync_compliance: &'a std::option::Option, - ///

    By default, when you update an association, the system runs it immediately after it is - /// updated and then according to the schedule you specified. Specify this option if you don't want - /// an association to run immediately after you update it. This parameter is not supported for rate - /// expressions.

    - ///

    Also, if you specified this option when you created the association, you can reset it. To do - /// so, specify the no-apply-only-at-cron-interval parameter when you update the - /// association from the command line. This parameter forces the association to run immediately after - /// updating it and according to the interval specified.

    - pub apply_only_at_cron_interval: &'a bool, - ///

    The names or Amazon Resource Names (ARNs) of the Systems Manager Change Calendar type - /// documents you want to gate your associations under. The associations only run when that Change - /// Calendar is open. For more information, see AWS Systems Manager Change - /// Calendar.

    - pub calendar_names: &'a std::option::Option>, - ///

    A location is a combination of AWS Regions and AWS accounts where you want to run the - /// association. Use this action to update an association in multiple Regions and multiple - /// accounts.

    - pub target_locations: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateAssociationInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAssociationInputBody"); - formatter.field("association_id", &self.association_id); - formatter.field("parameters", &self.parameters); - formatter.field("document_version", &self.document_version); - formatter.field("schedule_expression", &self.schedule_expression); - formatter.field("output_location", &self.output_location); - formatter.field("name", &self.name); - formatter.field("targets", &self.targets); - formatter.field("association_name", &self.association_name); - formatter.field("association_version", &self.association_version); - formatter.field( - "automation_target_parameter_name", - &self.automation_target_parameter_name, - ); - formatter.field("max_errors", &self.max_errors); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("compliance_severity", &self.compliance_severity); - formatter.field("sync_compliance", &self.sync_compliance); - formatter.field( - "apply_only_at_cron_interval", - &self.apply_only_at_cron_interval, - ); - formatter.field("calendar_names", &self.calendar_names); - formatter.field("target_locations", &self.target_locations); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAssociationStatusInputBody<'a> { - ///

    The name of the Systems Manager document.

    - pub name: &'a std::option::Option, - ///

    The ID of the instance.

    - pub instance_id: &'a std::option::Option, - ///

    The association status.

    - pub association_status: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateAssociationStatusInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAssociationStatusInputBody"); - formatter.field("name", &self.name); - formatter.field("instance_id", &self.instance_id); - formatter.field("association_status", &self.association_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentInputBody<'a> { - ///

    A valid JSON or YAML string.

    - pub content: &'a std::option::Option, - ///

    A list of key and value pairs that describe attachments to a version of a document.

    - pub attachments: &'a std::option::Option>, - ///

    The name of the Systems Manager document that you want to update.

    - pub name: &'a std::option::Option, - ///

    The friendly name of the Systems Manager document that you want to update. This value can differ for - /// each version of the document. If you do not specify a value for this parameter in your request, - /// the existing value is applied to the new document version.

    - pub display_name: &'a std::option::Option, - ///

    An optional field specifying the version of the artifact you are updating with the document. - /// For example, "Release 12, Update 6". This value is unique across all versions of a document, and - /// cannot be changed.

    - pub version_name: &'a std::option::Option, - ///

    The version of the document that you want to update. Currently, Systems Manager supports updating only - /// the latest version of the document. You can specify the version number of the latest version or - /// use the $LATEST variable.

    - pub document_version: &'a std::option::Option, - ///

    Specify the document format for the new document version. Systems Manager supports JSON and YAML - /// documents. JSON is the default format.

    - pub document_format: &'a std::option::Option, - ///

    Specify a new target type for the document.

    - pub target_type: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateDocumentInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentInputBody"); - formatter.field("content", &self.content); - formatter.field("attachments", &self.attachments); - formatter.field("name", &self.name); - formatter.field("display_name", &self.display_name); - formatter.field("version_name", &self.version_name); - formatter.field("document_version", &self.document_version); - formatter.field("document_format", &self.document_format); - formatter.field("target_type", &self.target_type); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentDefaultVersionInputBody<'a> { - ///

    The name of a custom document that you want to set as the default version.

    - pub name: &'a std::option::Option, - ///

    The version of a custom document that you want to set as the default version.

    - pub document_version: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateDocumentDefaultVersionInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentDefaultVersionInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentMetadataInputBody<'a> { - ///

    The name of the document for which a version is to be updated.

    - pub name: &'a std::option::Option, - ///

    The version of a document to update.

    - pub document_version: &'a std::option::Option, - ///

    The document review details to update.

    - pub document_reviews: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateDocumentMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentMetadataInputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("document_reviews", &self.document_reviews); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowInputBody<'a> { - ///

    The ID of the maintenance window to update.

    - pub window_id: &'a std::option::Option, - ///

    The name of the maintenance window.

    - pub name: &'a std::option::Option, - ///

    An optional description for the update request.

    - pub description: &'a std::option::Option, - ///

    The time zone that the scheduled maintenance window executions are based on, in Internet - /// Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - /// "Asia/Seoul". For more information, see the Time - /// Zone Database on the IANA website.

    - pub start_date: &'a std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - /// become inactive. EndDate allows you to set a date and time in the future when the maintenance - /// window will no longer run.

    - pub end_date: &'a std::option::Option, - ///

    The schedule of the maintenance window in the form of a cron or rate expression.

    - pub schedule: &'a std::option::Option, - ///

    The time zone that the scheduled maintenance window executions are based on, in Internet - /// Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - /// "Asia/Seoul". For more information, see the Time - /// Zone Database on the IANA website.

    - pub schedule_timezone: &'a std::option::Option, - ///

    The number of days to wait after the date and time specified by a CRON expression before - /// running the maintenance window.

    - ///

    For example, the following cron expression schedules a maintenance window to run the third - /// Tuesday of every month at 11:30 PM.

    - ///

    - /// cron(30 23 ? * TUE#3 *) - ///

    - ///

    If the schedule offset is 2, the maintenance window won't run until two days - /// later.

    - pub schedule_offset: &'a std::option::Option, - ///

    The duration of the maintenance window in hours.

    - pub duration: &'a std::option::Option, - ///

    The number of hours before the end of the maintenance window that Systems Manager stops scheduling new - /// tasks for execution.

    - pub cutoff: &'a std::option::Option, - ///

    Whether targets must be registered with the maintenance window before tasks can be defined - /// for those targets.

    - pub allow_unassociated_targets: &'a std::option::Option, - ///

    Whether the maintenance window is enabled.

    - pub enabled: &'a std::option::Option, - ///

    If True, then all fields that are required by the CreateMaintenanceWindow action are also - /// required for this API request. Optional fields that are not specified are set to null.

    - pub replace: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMaintenanceWindowInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("schedule", &self.schedule); - formatter.field("schedule_timezone", &self.schedule_timezone); - formatter.field("schedule_offset", &self.schedule_offset); - formatter.field("duration", &self.duration); - formatter.field("cutoff", &self.cutoff); - formatter.field( - "allow_unassociated_targets", - &self.allow_unassociated_targets, - ); - formatter.field("enabled", &self.enabled); - formatter.field("replace", &self.replace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowTargetInputBody<'a> { - ///

    The maintenance window ID with which to modify the target.

    - pub window_id: &'a std::option::Option, - ///

    The target ID to modify.

    - pub window_target_id: &'a std::option::Option, - ///

    The targets to add or replace.

    - pub targets: &'a std::option::Option>, - ///

    User-provided value that will be included in any CloudWatch events raised while running - /// tasks for these targets in this maintenance window.

    - pub owner_information: &'a std::option::Option, - ///

    A name for the update.

    - pub name: &'a std::option::Option, - ///

    An optional description for the update.

    - pub description: &'a std::option::Option, - ///

    If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow action - /// are also required for this API request. Optional fields that are not specified are set to - /// null.

    - pub replace: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMaintenanceWindowTargetInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowTargetInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_target_id", &self.window_target_id); - formatter.field("targets", &self.targets); - formatter.field("owner_information", &"*** Sensitive Data Redacted ***"); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("replace", &self.replace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowTaskInputBody<'a> { - ///

    The maintenance window ID that contains the task to modify.

    - pub window_id: &'a std::option::Option, - ///

    The task ID to modify.

    - pub window_task_id: &'a std::option::Option, - ///

    The targets (either instances or tags) to modify. Instances are specified using - /// Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using - /// Key=tag_name,Values=tag_value.

    - /// - ///

    One or more targets must be specified for maintenance window Run Command-type tasks. - /// Depending on the task, targets are optional for other maintenance window task types (Automation, - /// AWS Lambda, and AWS Step Functions). For more information about running tasks that do not - /// specify targets, see Registering - /// maintenance window tasks without targets in the - /// AWS Systems Manager User Guide.

    - ///
    - pub targets: &'a std::option::Option>, - ///

    The task ARN to modify.

    - pub task_arn: &'a std::option::Option, - ///

    The ARN of the IAM service role for Systems Manager to assume when running a - /// maintenance window task. If you do not specify a service role ARN, Systems Manager uses your account's - /// service-linked role. If no service-linked role for Systems Manager exists in your account, it is created when you run - /// RegisterTaskWithMaintenanceWindow.

    - ///

    For more information, see the following topics in the in the AWS Systems Manager User Guide:

    - /// - pub service_role_arn: &'a std::option::Option, - ///

    The parameters to modify.

    - /// - ///

    - /// TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - /// instead use the Parameters option in the TaskInvocationParameters structure. For information - /// about how Systems Manager handles these options for the supported maintenance window task - /// types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - ///

    The map has the following format:

    - ///

    Key: string, between 1 and 255 characters

    - ///

    Value: an array of strings, each string is between 1 and 255 characters

    - pub task_parameters: &'a std::option::Option< - std::collections::HashMap< - std::string::String, - crate::model::MaintenanceWindowTaskParameterValueExpression, - >, - >, - ///

    The parameters that the task should use during execution. Populate only the fields that - /// match the task type. All other fields should be empty.

    - /// - ///

    When you update a maintenance window task that has options specified in - /// TaskInvocationParameters, you must provide again all the - /// TaskInvocationParameters values that you want to retain. The values you do not - /// specify again are removed. For example, suppose that when you registered a Run Command task, you - /// specified TaskInvocationParameters values for Comment, - /// NotificationConfig, and OutputS3BucketName. If you update the - /// maintenance window task and specify only a different OutputS3BucketName value, the - /// values for Comment and NotificationConfig are removed.

    - ///
    - pub task_invocation_parameters: - &'a std::option::Option, - ///

    The new task priority to specify. The lower the number, the higher the priority. Tasks that - /// have the same priority are scheduled in parallel.

    - pub priority: &'a std::option::Option, - ///

    The new MaxConcurrency value you want to specify. MaxConcurrency - /// is the number of targets that are allowed to run this task in parallel.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1, which may be reported - /// in the response to this command. This value does not affect the running of your task and can be - /// ignored.

    - ///
    - pub max_concurrency: &'a std::option::Option, - ///

    The new MaxErrors value to specify. MaxErrors is the maximum - /// number of errors that are allowed before the task stops being scheduled.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1, which may be reported - /// in the response to this command. This value does not affect the running of your task and can be - /// ignored.

    - ///
    - pub max_errors: &'a std::option::Option, - ///

    The new logging location in Amazon S3 to specify.

    - /// - ///

    - /// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the - /// OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - /// For information about how Systems Manager handles these options for the supported maintenance - /// window task types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - pub logging_info: &'a std::option::Option, - ///

    The new task name to specify.

    - pub name: &'a std::option::Option, - ///

    The new task description to specify.

    - pub description: &'a std::option::Option, - ///

    If True, then all fields that are required by the RegisterTaskWithMaintenanceWindow action - /// are also required for this API request. Optional fields that are not specified are set to - /// null.

    - pub replace: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateMaintenanceWindowTaskInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowTaskInputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.field("targets", &self.targets); - formatter.field("task_arn", &self.task_arn); - formatter.field("service_role_arn", &self.service_role_arn); - formatter.field("task_parameters", &"*** Sensitive Data Redacted ***"); - formatter.field( - "task_invocation_parameters", - &self.task_invocation_parameters, - ); - formatter.field("priority", &self.priority); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("logging_info", &self.logging_info); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("replace", &self.replace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateManagedInstanceRoleInputBody<'a> { - ///

    The ID of the managed instance where you want to update the role.

    - pub instance_id: &'a std::option::Option, - ///

    The IAM role you want to assign or change.

    - pub iam_role: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateManagedInstanceRoleInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateManagedInstanceRoleInputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("iam_role", &self.iam_role); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOpsItemInputBody<'a> { - ///

    Update the information about the OpsItem. Provide enough information so that users reading - /// this OpsItem for the first time understand the issue.

    - pub description: &'a std::option::Option, - ///

    Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem - /// object.

    - ///

    Operational data is custom data that provides useful reference details about the OpsItem. - /// For example, you can specify log files, error strings, license keys, troubleshooting tips, or - /// other relevant data. You enter operational data as key-value pairs. The key has a maximum length - /// of 128 characters. The value has a maximum size of 20 KB.

    - /// - ///

    Operational data keys can't begin with the following: amazon, aws, - /// amzn, ssm, /amazon, /aws, /amzn, /ssm.

    - ///
    - ///

    You can choose to make the data searchable by other users in the account or you can restrict - /// search access. Searchable data means that all users with access to the OpsItem Overview page (as - /// provided by the DescribeOpsItems API action) can view and search on the - /// specified data. Operational data that is not searchable is only viewable by users who have access - /// to the OpsItem (as provided by the GetOpsItem API action).

    - ///

    Use the /aws/resources key in OperationalData to specify a related resource in - /// the request. Use the /aws/automations key in OperationalData to associate an - /// Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see - /// Creating OpsItems manually in the AWS Systems Manager User Guide.

    - pub operational_data: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    Keys that you want to remove from the OperationalData map.

    - pub operational_data_to_delete: &'a std::option::Option>, - ///

    The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this - /// OpsItem is edited or changed.

    - pub notifications: &'a std::option::Option>, - ///

    The importance of this OpsItem in relation to other OpsItems in the system.

    - pub priority: &'a std::option::Option, - ///

    One or more OpsItems that share something in common with the current OpsItems. For example, - /// related OpsItems can include OpsItems with similar error messages, impacted resources, or - /// statuses for the impacted resource.

    - pub related_ops_items: &'a std::option::Option>, - ///

    The OpsItem status. Status can be Open, In Progress, or - /// Resolved. For more information, see Editing OpsItem details in the AWS Systems Manager User Guide.

    - pub status: &'a std::option::Option, - ///

    The ID of the OpsItem.

    - pub ops_item_id: &'a std::option::Option, - ///

    A short heading that describes the nature of the OpsItem and the impacted resource.

    - pub title: &'a std::option::Option, - ///

    Specify a new category for an OpsItem.

    - pub category: &'a std::option::Option, - ///

    Specify a new severity for an OpsItem.

    - pub severity: &'a std::option::Option, - ///

    The time a runbook workflow started. Currently reported only for the OpsItem type - /// /aws/changerequest.

    - pub actual_start_time: &'a std::option::Option, - ///

    The time a runbook workflow ended. Currently reported only for the OpsItem type - /// /aws/changerequest.

    - pub actual_end_time: &'a std::option::Option, - ///

    The time specified in a change request for a runbook workflow to start. Currently supported - /// only for the OpsItem type /aws/changerequest.

    - pub planned_start_time: &'a std::option::Option, - ///

    The time specified in a change request for a runbook workflow to end. Currently supported - /// only for the OpsItem type /aws/changerequest.

    - pub planned_end_time: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateOpsItemInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOpsItemInputBody"); - formatter.field("description", &self.description); - formatter.field("operational_data", &self.operational_data); - formatter.field( - "operational_data_to_delete", - &self.operational_data_to_delete, - ); - formatter.field("notifications", &self.notifications); - formatter.field("priority", &self.priority); - formatter.field("related_ops_items", &self.related_ops_items); - formatter.field("status", &self.status); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.field("title", &self.title); - formatter.field("category", &self.category); - formatter.field("severity", &self.severity); - formatter.field("actual_start_time", &self.actual_start_time); - formatter.field("actual_end_time", &self.actual_end_time); - formatter.field("planned_start_time", &self.planned_start_time); - formatter.field("planned_end_time", &self.planned_end_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOpsMetadataInputBody<'a> { - ///

    The Amazon Resoure Name (ARN) of the OpsMetadata Object to update.

    - pub ops_metadata_arn: &'a std::option::Option, - ///

    Metadata to add to an OpsMetadata object.

    - pub metadata_to_update: &'a std::option::Option< - std::collections::HashMap, - >, - ///

    The metadata keys to delete from the OpsMetadata object.

    - pub keys_to_delete: &'a std::option::Option>, -} -impl<'a> std::fmt::Debug for UpdateOpsMetadataInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOpsMetadataInputBody"); - formatter.field("ops_metadata_arn", &self.ops_metadata_arn); - formatter.field("metadata_to_update", &self.metadata_to_update); - formatter.field("keys_to_delete", &self.keys_to_delete); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePatchBaselineInputBody<'a> { - ///

    The ID of the patch baseline to update.

    - pub baseline_id: &'a std::option::Option, - ///

    The name of the patch baseline.

    - pub name: &'a std::option::Option, - ///

    A set of global filters used to include patches in the baseline.

    - pub global_filters: &'a std::option::Option, - ///

    A set of rules used to include patches in the baseline.

    - pub approval_rules: &'a std::option::Option, - ///

    A list of explicitly approved patches for the baseline.

    - ///

    For information about accepted formats for lists of approved patches and rejected patches, - /// see About - /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - pub approved_patches: &'a std::option::Option>, - ///

    Assigns a new compliance severity level to an existing patch baseline.

    - pub approved_patches_compliance_level: - &'a std::option::Option, - ///

    Indicates whether the list of approved patches includes non-security updates that should be - /// applied to the instances. The default value is 'false'. Applies to Linux instances only.

    - pub approved_patches_enable_non_security: &'a std::option::Option, - ///

    A list of explicitly rejected patches for the baseline.

    - ///

    For information about accepted formats for lists of approved patches and rejected patches, - /// see About - /// package name formats for approved and rejected patch lists in the AWS Systems Manager User Guide.

    - pub rejected_patches: &'a std::option::Option>, - ///

    The action for Patch Manager to take on patches included in the RejectedPackages - /// list.

    - ///
      - ///
    • - ///

      - /// ALLOW_AS_DEPENDENCY: A package in the Rejected patches - /// list is installed only if it is a dependency of another package. It is considered compliant - /// with the patch baseline, and its status is reported as InstalledOther. - /// This is the default action if no option is specified.

      - ///
    • - ///
    • - ///

      - /// BLOCK: Packages in the RejectedPatches list, and packages - /// that include them as dependencies, are not installed under any circumstances. If a package was - /// installed before it was added to the Rejected patches list, it is considered non-compliant with - /// the patch baseline, and its status is reported as - /// InstalledRejected.

      - ///
    • - ///
    - pub rejected_patches_action: &'a std::option::Option, - ///

    A description of the patch baseline.

    - pub description: &'a std::option::Option, - ///

    Information about the patches to use to update the instances, including target operating - /// systems and source repositories. Applies to Linux instances only.

    - pub sources: &'a std::option::Option>, - ///

    If True, then all fields that are required by the CreatePatchBaseline action are also - /// required for this API request. Optional fields that are not specified are set to null.

    - pub replace: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdatePatchBaselineInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePatchBaselineInputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("name", &self.name); - formatter.field("global_filters", &self.global_filters); - formatter.field("approval_rules", &self.approval_rules); - formatter.field("approved_patches", &self.approved_patches); - formatter.field( - "approved_patches_compliance_level", - &self.approved_patches_compliance_level, - ); - formatter.field( - "approved_patches_enable_non_security", - &self.approved_patches_enable_non_security, - ); - formatter.field("rejected_patches", &self.rejected_patches); - formatter.field("rejected_patches_action", &self.rejected_patches_action); - formatter.field("description", &self.description); - formatter.field("sources", &self.sources); - formatter.field("replace", &self.replace); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateResourceDataSyncInputBody<'a> { - ///

    The name of the resource data sync you want to update.

    - pub sync_name: &'a std::option::Option, - ///

    The type of resource data sync. The supported SyncType is - /// SyncFromSource.

    - pub sync_type: &'a std::option::Option, - ///

    Specify information about the data sources to synchronize.

    - pub sync_source: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateResourceDataSyncInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateResourceDataSyncInputBody"); - formatter.field("sync_name", &self.sync_name); - formatter.field("sync_type", &self.sync_type); - formatter.field("sync_source", &self.sync_source); - formatter.finish() - } -} - -///

    The request body of the UpdateServiceSetting API action.

    -#[non_exhaustive] -#[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateServiceSettingInputBody<'a> { - ///

    The Amazon Resource Name (ARN) of the service setting to reset. For example, - /// arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. - /// The setting ID can be one of the following.

    - ///
      - ///
    • - ///

      - /// /ssm/automation/customer-script-log-destination - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/automation/customer-script-log-group-name - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/documents/console/public-sharing-permission - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/default-parameter-tier - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/parameter-store/high-throughput-enabled - ///

      - ///
    • - ///
    • - ///

      - /// /ssm/managed-instance/activation-tier - ///

      - ///
    • - ///
    - pub setting_id: &'a std::option::Option, - ///

    The new value to specify for the service setting. For the - /// /ssm/parameter-store/default-parameter-tier setting ID, the setting value can be - /// one of the following.

    - ///
      - ///
    • - ///

      Standard

      - ///
    • - ///
    • - ///

      Advanced

      - ///
    • - ///
    • - ///

      Intelligent-Tiering

      - ///
    • - ///
    - ///

    For the /ssm/parameter-store/high-throughput-enabled, and - /// /ssm/managed-instance/activation-tier setting IDs, the setting value can be true or - /// false.

    - ///

    For the /ssm/automation/customer-script-log-destination setting ID, the setting - /// value can be CloudWatch.

    - ///

    For the /ssm/automation/customer-script-log-group-name setting ID, the setting - /// value can be the name of a CloudWatch Logs log group.

    - ///

    For the /ssm/documents/console/public-sharing-permission setting ID, the setting - /// value can be Enable or Disable.

    - pub setting_value: &'a std::option::Option, -} -impl<'a> std::fmt::Debug for UpdateServiceSettingInputBody<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateServiceSettingInputBody"); - formatter.field("setting_id", &self.setting_id); - formatter.field("setting_value", &self.setting_value); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct AssociateOpsItemRelatedItemOutputBody { - ///

    The association ID.

    - #[serde(rename = "AssociationId")] - #[serde(default)] - pub association_id: std::option::Option, -} -impl std::fmt::Debug for AssociateOpsItemRelatedItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssociateOpsItemRelatedItemOutputBody"); - formatter.field("association_id", &self.association_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CancelMaintenanceWindowExecutionOutputBody { - ///

    The ID of the maintenance window execution that has been stopped.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] - pub window_execution_id: std::option::Option, -} -impl std::fmt::Debug for CancelMaintenanceWindowExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CancelMaintenanceWindowExecutionOutputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateActivationOutputBody { - ///

    The ID number generated by the system when it processed the activation. The activation ID - /// functions like a user name.

    - #[serde(rename = "ActivationId")] - #[serde(default)] - pub activation_id: std::option::Option, - ///

    The code the system generates when it processes the activation. The activation code - /// functions like a password to validate the activation ID.

    - #[serde(rename = "ActivationCode")] - #[serde(default)] - pub activation_code: std::option::Option, -} -impl std::fmt::Debug for CreateActivationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateActivationOutputBody"); - formatter.field("activation_id", &self.activation_id); - formatter.field("activation_code", &self.activation_code); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAssociationOutputBody { - ///

    Information about the association.

    - #[serde(rename = "AssociationDescription")] - #[serde(default)] - pub association_description: std::option::Option, -} -impl std::fmt::Debug for CreateAssociationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAssociationOutputBody"); - formatter.field("association_description", &self.association_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateAssociationBatchOutputBody { - ///

    Information about the associations that succeeded.

    - #[serde(rename = "Successful")] - #[serde(default)] - pub successful: std::option::Option>, - ///

    Information about the associations that failed.

    - #[serde(rename = "Failed")] - #[serde(default)] - pub failed: std::option::Option>, -} -impl std::fmt::Debug for CreateAssociationBatchOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateAssociationBatchOutputBody"); - formatter.field("successful", &self.successful); - formatter.field("failed", &self.failed); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateDocumentOutputBody { - ///

    Information about the Systems Manager document.

    - #[serde(rename = "DocumentDescription")] - #[serde(default)] - pub document_description: std::option::Option, -} -impl std::fmt::Debug for CreateDocumentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateDocumentOutputBody"); - formatter.field("document_description", &self.document_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateMaintenanceWindowOutputBody { - ///

    The ID of the created maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, -} -impl std::fmt::Debug for CreateMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpsItemOutputBody { - ///

    The ID of the OpsItem.

    - #[serde(rename = "OpsItemId")] - #[serde(default)] - pub ops_item_id: std::option::Option, -} -impl std::fmt::Debug for CreateOpsItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpsItemOutputBody"); - formatter.field("ops_item_id", &self.ops_item_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreateOpsMetadataOutputBody { - ///

    The Amazon Resource Name (ARN) of the OpsMetadata Object or blob created by the call.

    - #[serde(rename = "OpsMetadataArn")] - #[serde(default)] - pub ops_metadata_arn: std::option::Option, -} -impl std::fmt::Debug for CreateOpsMetadataOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreateOpsMetadataOutputBody"); - formatter.field("ops_metadata_arn", &self.ops_metadata_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct CreatePatchBaselineOutputBody { - ///

    The ID of the created patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, -} -impl std::fmt::Debug for CreatePatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("CreatePatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteInventoryOutputBody { - ///

    Every DeleteInventory action is assigned a unique ID. This option returns a - /// unique ID. You can use this ID to query the status of a delete operation. This option is useful - /// for ensuring that a delete operation has completed before you begin other actions.

    - #[serde(rename = "DeletionId")] - #[serde(default)] - pub deletion_id: std::option::Option, - ///

    The name of the inventory data type specified in the request.

    - #[serde(rename = "TypeName")] - #[serde(default)] - pub type_name: std::option::Option, - ///

    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the AWS Systems Manager User Guide.

    - #[serde(rename = "DeletionSummary")] - #[serde(default)] - pub deletion_summary: std::option::Option, -} -impl std::fmt::Debug for DeleteInventoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteInventoryOutputBody"); - formatter.field("deletion_id", &self.deletion_id); - formatter.field("type_name", &self.type_name); - formatter.field("deletion_summary", &self.deletion_summary); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteMaintenanceWindowOutputBody { - ///

    The ID of the deleted maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, -} -impl std::fmt::Debug for DeleteMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeleteParametersOutputBody { - ///

    The names of the deleted parameters.

    - #[serde(rename = "DeletedParameters")] - #[serde(default)] - pub deleted_parameters: std::option::Option>, - ///

    The names of parameters that weren't deleted because the parameters are not valid.

    - #[serde(rename = "InvalidParameters")] - #[serde(default)] - pub invalid_parameters: std::option::Option>, -} -impl std::fmt::Debug for DeleteParametersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeleteParametersOutputBody"); - formatter.field("deleted_parameters", &self.deleted_parameters); - formatter.field("invalid_parameters", &self.invalid_parameters); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeletePatchBaselineOutputBody { - ///

    The ID of the deleted patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, -} -impl std::fmt::Debug for DeletePatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeletePatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterPatchBaselineForPatchGroupOutputBody { - ///

    The ID of the patch baseline the patch group was deregistered from.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The name of the patch group deregistered from the patch baseline.

    - #[serde(rename = "PatchGroup")] - #[serde(default)] - pub patch_group: std::option::Option, -} -impl std::fmt::Debug for DeregisterPatchBaselineForPatchGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterPatchBaselineForPatchGroupOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("patch_group", &self.patch_group); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTargetFromMaintenanceWindowOutputBody { - ///

    The ID of the maintenance window the target was removed from.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The ID of the removed target definition.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] - pub window_target_id: std::option::Option, -} -impl std::fmt::Debug for DeregisterTargetFromMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTargetFromMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_target_id", &self.window_target_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DeregisterTaskFromMaintenanceWindowOutputBody { - ///

    The ID of the maintenance window the task was removed from.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The ID of the task removed from the maintenance window.

    - #[serde(rename = "WindowTaskId")] - #[serde(default)] - pub window_task_id: std::option::Option, -} -impl std::fmt::Debug for DeregisterTaskFromMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DeregisterTaskFromMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeActivationsOutputBody { - ///

    A list of activations for your AWS account.

    - #[serde(rename = "ActivationList")] - #[serde(default)] - pub activation_list: std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeActivationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeActivationsOutputBody"); - formatter.field("activation_list", &self.activation_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationOutputBody { - ///

    Information about the association.

    - #[serde(rename = "AssociationDescription")] - #[serde(default)] - pub association_description: std::option::Option, -} -impl std::fmt::Debug for DescribeAssociationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationOutputBody"); - formatter.field("association_description", &self.association_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationExecutionsOutputBody { - ///

    A list of the executions for the specified association ID.

    - #[serde(rename = "AssociationExecutions")] - #[serde(default)] - pub association_executions: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeAssociationExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationExecutionsOutputBody"); - formatter.field("association_executions", &self.association_executions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAssociationExecutionTargetsOutputBody { - ///

    Information about the execution.

    - #[serde(rename = "AssociationExecutionTargets")] - #[serde(default)] - pub association_execution_targets: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeAssociationExecutionTargetsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAssociationExecutionTargetsOutputBody"); - formatter.field( - "association_execution_targets", - &self.association_execution_targets, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutomationExecutionsOutputBody { - ///

    The list of details about each automation execution which has occurred which matches the - /// filter specification, if any.

    - #[serde(rename = "AutomationExecutionMetadataList")] - #[serde(default)] - pub automation_execution_metadata_list: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeAutomationExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutomationExecutionsOutputBody"); - formatter.field( - "automation_execution_metadata_list", - &self.automation_execution_metadata_list, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAutomationStepExecutionsOutputBody { - ///

    A list of details about the current state of all steps that make up an execution.

    - #[serde(rename = "StepExecutions")] - #[serde(default)] - pub step_executions: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeAutomationStepExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAutomationStepExecutionsOutputBody"); - formatter.field("step_executions", &self.step_executions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeAvailablePatchesOutputBody { - ///

    An array of patches. Each entry in the array is a patch structure.

    - #[serde(rename = "Patches")] - #[serde(default)] - pub patches: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeAvailablePatchesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeAvailablePatchesOutputBody"); - formatter.field("patches", &self.patches); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDocumentOutputBody { - ///

    Information about the Systems Manager document.

    - #[serde(rename = "Document")] - #[serde(default)] - pub document: std::option::Option, -} -impl std::fmt::Debug for DescribeDocumentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDocumentOutputBody"); - formatter.field("document", &self.document); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeDocumentPermissionOutputBody { - ///

    The account IDs that have permission to use this document. The ID can be either an AWS - /// account or All.

    - #[serde(rename = "AccountIds")] - #[serde(default)] - pub account_ids: std::option::Option>, - ///

    A list of AWS accounts where the current document is shared and the version shared with each - /// account.

    - #[serde(rename = "AccountSharingInfoList")] - #[serde(default)] - pub account_sharing_info_list: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeDocumentPermissionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeDocumentPermissionOutputBody"); - formatter.field("account_ids", &self.account_ids); - formatter.field("account_sharing_info_list", &self.account_sharing_info_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEffectiveInstanceAssociationsOutputBody { - ///

    The associations for the requested instance.

    - #[serde(rename = "Associations")] - #[serde(default)] - pub associations: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeEffectiveInstanceAssociationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEffectiveInstanceAssociationsOutputBody"); - formatter.field("associations", &self.associations); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeEffectivePatchesForPatchBaselineOutputBody { - ///

    An array of patches and patch status.

    - #[serde(rename = "EffectivePatches")] - #[serde(default)] - pub effective_patches: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeEffectivePatchesForPatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeEffectivePatchesForPatchBaselineOutputBody"); - formatter.field("effective_patches", &self.effective_patches); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstanceAssociationsStatusOutputBody { - ///

    Status information about the association.

    - #[serde(rename = "InstanceAssociationStatusInfos")] - #[serde(default)] - pub instance_association_status_infos: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInstanceAssociationsStatusOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstanceAssociationsStatusOutputBody"); - formatter.field( - "instance_association_status_infos", - &self.instance_association_status_infos, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstanceInformationOutputBody { - ///

    The instance information list.

    - #[serde(rename = "InstanceInformationList")] - #[serde(default)] - pub instance_information_list: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInstanceInformationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstanceInformationOutputBody"); - formatter.field("instance_information_list", &self.instance_information_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchesOutputBody { - ///

    Each entry in the array is a structure containing:

    - ///

    Title (string)

    - ///

    KBId (string)

    - ///

    Classification (string)

    - ///

    Severity (string)

    - ///

    State (string, such as "INSTALLED" or "FAILED")

    - ///

    InstalledTime (DateTime)

    - ///

    InstalledBy (string)

    - #[serde(rename = "Patches")] - #[serde(default)] - pub patches: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInstancePatchesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchesOutputBody"); - formatter.field("patches", &self.patches); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchStatesOutputBody { - ///

    The high-level patch state for the requested instances.

    - #[serde(rename = "InstancePatchStates")] - #[serde(default)] - pub instance_patch_states: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInstancePatchStatesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchStatesOutputBody"); - formatter.field("instance_patch_states", &self.instance_patch_states); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInstancePatchStatesForPatchGroupOutputBody { - ///

    The high-level patch state for the requested instances.

    - #[serde(rename = "InstancePatchStates")] - #[serde(default)] - pub instance_patch_states: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInstancePatchStatesForPatchGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInstancePatchStatesForPatchGroupOutputBody"); - formatter.field("instance_patch_states", &self.instance_patch_states); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeInventoryDeletionsOutputBody { - ///

    A list of status items for deleted inventory.

    - #[serde(rename = "InventoryDeletions")] - #[serde(default)] - pub inventory_deletions: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeInventoryDeletionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeInventoryDeletionsOutputBody"); - formatter.field("inventory_deletions", &self.inventory_deletions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionsOutputBody { - ///

    Information about the maintenance window executions.

    - #[serde(rename = "WindowExecutions")] - #[serde(default)] - pub window_executions: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowExecutionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowExecutionsOutputBody"); - formatter.field("window_executions", &self.window_executions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionTaskInvocationsOutputBody { - ///

    Information about the task invocation results per invocation.

    - #[serde(rename = "WindowExecutionTaskInvocationIdentities")] - #[serde(default)] - pub window_execution_task_invocation_identities: std::option::Option< - std::vec::Vec, - >, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowExecutionTaskInvocationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = - f.debug_struct("DescribeMaintenanceWindowExecutionTaskInvocationsOutputBody"); - formatter.field( - "window_execution_task_invocation_identities", - &self.window_execution_task_invocation_identities, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowExecutionTasksOutputBody { - ///

    Information about the task executions.

    - #[serde(rename = "WindowExecutionTaskIdentities")] - #[serde(default)] - pub window_execution_task_identities: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowExecutionTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowExecutionTasksOutputBody"); - formatter.field( - "window_execution_task_identities", - &self.window_execution_task_identities, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowsOutputBody { - ///

    Information about the maintenance windows.

    - #[serde(rename = "WindowIdentities")] - #[serde(default)] - pub window_identities: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowsOutputBody"); - formatter.field("window_identities", &self.window_identities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowScheduleOutputBody { - ///

    Information about maintenance window executions scheduled for the specified time - /// range.

    - #[serde(rename = "ScheduledWindowExecutions")] - #[serde(default)] - pub scheduled_window_executions: - std::option::Option>, - ///

    The token for the next set of items to return. (You use this token in the next call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowScheduleOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowScheduleOutputBody"); - formatter.field( - "scheduled_window_executions", - &self.scheduled_window_executions, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowsForTargetOutputBody { - ///

    Information about the maintenance window targets and tasks an instance is associated - /// with.

    - #[serde(rename = "WindowIdentities")] - #[serde(default)] - pub window_identities: - std::option::Option>, - ///

    The token for the next set of items to return. (You use this token in the next call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowsForTargetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowsForTargetOutputBody"); - formatter.field("window_identities", &self.window_identities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowTargetsOutputBody { - ///

    Information about the targets in the maintenance window.

    - #[serde(rename = "Targets")] - #[serde(default)] - pub targets: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowTargetsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowTargetsOutputBody"); - formatter.field("targets", &self.targets); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeMaintenanceWindowTasksOutputBody { - ///

    Information about the tasks in the maintenance window.

    - #[serde(rename = "Tasks")] - #[serde(default)] - pub tasks: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeMaintenanceWindowTasksOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeMaintenanceWindowTasksOutputBody"); - formatter.field("tasks", &self.tasks); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeOpsItemsOutputBody { - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    A list of OpsItems.

    - #[serde(rename = "OpsItemSummaries")] - #[serde(default)] - pub ops_item_summaries: std::option::Option>, -} -impl std::fmt::Debug for DescribeOpsItemsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeOpsItemsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("ops_item_summaries", &self.ops_item_summaries); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeParametersOutputBody { - ///

    Parameters returned by the request.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option>, - ///

    The token to use when requesting the next set of items.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeParametersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeParametersOutputBody"); - formatter.field("parameters", &self.parameters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchBaselinesOutputBody { - ///

    An array of PatchBaselineIdentity elements.

    - #[serde(rename = "BaselineIdentities")] - #[serde(default)] - pub baseline_identities: - std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribePatchBaselinesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchBaselinesOutputBody"); - formatter.field("baseline_identities", &self.baseline_identities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchGroupsOutputBody { - ///

    Each entry in the array contains:

    - ///

    PatchGroup: string (between 1 and 256 characters, Regex: - /// ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)

    - ///

    PatchBaselineIdentity: A PatchBaselineIdentity element.

    - #[serde(rename = "Mappings")] - #[serde(default)] - pub mappings: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribePatchGroupsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchGroupsOutputBody"); - formatter.field("mappings", &self.mappings); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchGroupStateOutputBody { - ///

    The number of instances in the patch group.

    - #[serde(rename = "Instances")] - #[serde(default)] - pub instances: i32, - ///

    The number of instances with installed patches.

    - #[serde(rename = "InstancesWithInstalledPatches")] - #[serde(default)] - pub instances_with_installed_patches: i32, - ///

    The number of instances with patches installed that aren't defined in the patch - /// baseline.

    - #[serde(rename = "InstancesWithInstalledOtherPatches")] - #[serde(default)] - pub instances_with_installed_other_patches: i32, - ///

    The number of instances with patches installed by Patch Manager that have not been rebooted - /// after the patch installation. The status of these instances is NON_COMPLIANT.

    - #[serde(rename = "InstancesWithInstalledPendingRebootPatches")] - #[serde(default)] - pub instances_with_installed_pending_reboot_patches: std::option::Option, - ///

    The number of instances with patches installed that are specified in a RejectedPatches list. - /// Patches with a status of INSTALLED_REJECTED were typically installed before - /// they were added to a RejectedPatches list.

    - /// - ///

    If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value of - /// InstancesWithInstalledRejectedPatches will always be 0 (zero).

    - ///
    - #[serde(rename = "InstancesWithInstalledRejectedPatches")] - #[serde(default)] - pub instances_with_installed_rejected_patches: std::option::Option, - ///

    The number of instances with missing patches from the patch baseline.

    - #[serde(rename = "InstancesWithMissingPatches")] - #[serde(default)] - pub instances_with_missing_patches: i32, - ///

    The number of instances with patches from the patch baseline that failed to install.

    - #[serde(rename = "InstancesWithFailedPatches")] - #[serde(default)] - pub instances_with_failed_patches: i32, - ///

    The number of instances with patches that aren't applicable.

    - #[serde(rename = "InstancesWithNotApplicablePatches")] - #[serde(default)] - pub instances_with_not_applicable_patches: i32, - ///

    The number of instances with NotApplicable patches beyond the supported limit, - /// which are not reported by name to Systems Manager Inventory.

    - #[serde(rename = "InstancesWithUnreportedNotApplicablePatches")] - #[serde(default)] - pub instances_with_unreported_not_applicable_patches: std::option::Option, - ///

    The number of instances where patches that are specified as "Critical" for compliance - /// reporting in the patch baseline are not installed. These patches might be missing, have failed - /// installation, were rejected, or were installed but awaiting a required instance reboot. The - /// status of these instances is NON_COMPLIANT.

    - #[serde(rename = "InstancesWithCriticalNonCompliantPatches")] - #[serde(default)] - pub instances_with_critical_non_compliant_patches: std::option::Option, - ///

    The number of instances where patches that are specified as "Security" in a patch advisory - /// are not installed. These patches might be missing, have failed installation, were rejected, or - /// were installed but awaiting a required instance reboot. The status of these instances is - /// NON_COMPLIANT.

    - #[serde(rename = "InstancesWithSecurityNonCompliantPatches")] - #[serde(default)] - pub instances_with_security_non_compliant_patches: std::option::Option, - ///

    The number of instances with patches installed that are specified as other than "Critical" - /// or "Security" but are not compliant with the patch baseline. The status of these instances is - /// NON_COMPLIANT.

    - #[serde(rename = "InstancesWithOtherNonCompliantPatches")] - #[serde(default)] - pub instances_with_other_non_compliant_patches: std::option::Option, -} -impl std::fmt::Debug for DescribePatchGroupStateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchGroupStateOutputBody"); - formatter.field("instances", &self.instances); - formatter.field( - "instances_with_installed_patches", - &self.instances_with_installed_patches, - ); - formatter.field( - "instances_with_installed_other_patches", - &self.instances_with_installed_other_patches, - ); - formatter.field( - "instances_with_installed_pending_reboot_patches", - &self.instances_with_installed_pending_reboot_patches, - ); - formatter.field( - "instances_with_installed_rejected_patches", - &self.instances_with_installed_rejected_patches, - ); - formatter.field( - "instances_with_missing_patches", - &self.instances_with_missing_patches, - ); - formatter.field( - "instances_with_failed_patches", - &self.instances_with_failed_patches, - ); - formatter.field( - "instances_with_not_applicable_patches", - &self.instances_with_not_applicable_patches, - ); - formatter.field( - "instances_with_unreported_not_applicable_patches", - &self.instances_with_unreported_not_applicable_patches, - ); - formatter.field( - "instances_with_critical_non_compliant_patches", - &self.instances_with_critical_non_compliant_patches, - ); - formatter.field( - "instances_with_security_non_compliant_patches", - &self.instances_with_security_non_compliant_patches, - ); - formatter.field( - "instances_with_other_non_compliant_patches", - &self.instances_with_other_non_compliant_patches, - ); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribePatchPropertiesOutputBody { - ///

    A list of the properties for patches matching the filter request parameters.

    - #[serde(rename = "Properties")] - #[serde(default)] - pub properties: std::option::Option< - std::vec::Vec>, - >, - ///

    The token for the next set of items to return. (You use this token in the next call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribePatchPropertiesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribePatchPropertiesOutputBody"); - formatter.field("properties", &self.properties); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct DescribeSessionsOutputBody { - ///

    A list of sessions meeting the request parameters.

    - #[serde(rename = "Sessions")] - #[serde(default)] - pub sessions: std::option::Option>, - ///

    The token for the next set of items to return. (You received this token from a previous - /// call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for DescribeSessionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("DescribeSessionsOutputBody"); - formatter.field("sessions", &self.sessions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetAutomationExecutionOutputBody { - ///

    Detailed information about the current state of an automation execution.

    - #[serde(rename = "AutomationExecution")] - #[serde(default)] - pub automation_execution: std::option::Option, -} -impl std::fmt::Debug for GetAutomationExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetAutomationExecutionOutputBody"); - formatter.field("automation_execution", &self.automation_execution); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCalendarStateOutputBody { - ///

    The state of the calendar. An OPEN calendar indicates that actions are allowed - /// to proceed, and a CLOSED calendar indicates that actions are not allowed to - /// proceed.

    - #[serde(rename = "State")] - #[serde(default)] - pub state: std::option::Option, - ///

    The time, as an ISO 8601 string, - /// that you specified in your command. If you did not specify a time, GetCalendarState - /// uses the current time.

    - #[serde(rename = "AtTime")] - #[serde(default)] - pub at_time: std::option::Option, - ///

    The time, as an ISO 8601 string, - /// that the calendar state will change. If the current calendar state is OPEN, - /// NextTransitionTime indicates when the calendar state changes to - /// CLOSED, and vice-versa.

    - #[serde(rename = "NextTransitionTime")] - #[serde(default)] - pub next_transition_time: std::option::Option, -} -impl std::fmt::Debug for GetCalendarStateOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCalendarStateOutputBody"); - formatter.field("state", &self.state); - formatter.field("at_time", &self.at_time); - formatter.field("next_transition_time", &self.next_transition_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetCommandInvocationOutputBody { - ///

    The parent command ID of the invocation plugin.

    - #[serde(rename = "CommandId")] - #[serde(default)] - pub command_id: std::option::Option, - ///

    The ID of the managed instance targeted by the command. A managed instance can be an EC2 - /// instance or an instance in your hybrid environment that is configured for Systems Manager.

    - #[serde(rename = "InstanceId")] - #[serde(default)] - pub instance_id: std::option::Option, - ///

    The comment text for the command.

    - #[serde(rename = "Comment")] - #[serde(default)] - pub comment: std::option::Option, - ///

    The name of the document that was run. For example, AWS-RunShellScript.

    - #[serde(rename = "DocumentName")] - #[serde(default)] - pub document_name: std::option::Option, - ///

    The SSM document version used in the request.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] - pub document_version: std::option::Option, - ///

    The name of the plugin, or step name, for which details are reported. - /// For example, aws:RunShellScript is a plugin.

    - #[serde(rename = "PluginName")] - #[serde(default)] - pub plugin_name: std::option::Option, - ///

    The error level response code for the plugin script. If the response code is - /// -1, then the command has not started running on the instance, or it was not received - /// by the instance.

    - #[serde(rename = "ResponseCode")] - #[serde(default)] - pub response_code: i32, - ///

    The date and time the plugin started running. Date and time are written in ISO 8601 format. - /// For example, June 7, 2017 is represented as 2017-06-7. The following sample AWS CLI command uses - /// the InvokedBefore filter.

    - ///

    - /// aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z - ///

    - ///

    If the plugin has not started to run, the string is empty.

    - #[serde(rename = "ExecutionStartDateTime")] - #[serde(default)] - pub execution_start_date_time: std::option::Option, - ///

    Duration since ExecutionStartDateTime.

    - #[serde(rename = "ExecutionElapsedTime")] - #[serde(default)] - pub execution_elapsed_time: std::option::Option, - ///

    The date and time the plugin finished running. Date and time are written in ISO 8601 format. - /// For example, June 7, 2017 is represented as 2017-06-7. The following sample AWS CLI command uses - /// the InvokedAfter filter.

    - ///

    - /// aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z - ///

    - ///

    If the plugin has not started to run, the string is empty.

    - #[serde(rename = "ExecutionEndDateTime")] - #[serde(default)] - pub execution_end_date_time: std::option::Option, - ///

    The status of this invocation plugin. This status can be different than - /// StatusDetails.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A detailed status of the command execution for an invocation. StatusDetails - /// includes more information than Status because it includes states resulting from - /// error and concurrency control parameters. StatusDetails can show different results - /// than Status. For more information about these statuses, see Understanding - /// command statuses in the AWS Systems Manager User Guide. - /// StatusDetails can be one of the following values:

    - ///
      - ///
    • - ///

      Pending: The command has not been sent to the instance.

      - ///
    • - ///
    • - ///

      In Progress: The command has been sent to the instance but has not reached a terminal - /// state.

      - ///
    • - ///
    • - ///

      Delayed: The system attempted to send the command to the target, but the target was not - /// available. The instance might not be available because of network issues, because the instance - /// was stopped, or for similar reasons. The system will try to send the command again.

      - ///
    • - ///
    • - ///

      Success: The command or plugin ran successfully. This is a terminal state.

      - ///
    • - ///
    • - ///

      Delivery Timed Out: The command was not delivered to the instance before the delivery - /// timeout expired. Delivery timeouts do not count against the parent command's - /// MaxErrors limit, but they do contribute to whether the parent command status is - /// Success or Incomplete. This is a terminal state.

      - ///
    • - ///
    • - ///

      Execution Timed Out: The command started to run on the instance, but the execution was not - /// complete before the timeout expired. Execution timeouts count against the - /// MaxErrors limit of the parent command. This is a terminal state.

      - ///
    • - ///
    • - ///

      Failed: The command wasn't run successfully on the instance. For a plugin, this indicates - /// that the result code was not zero. For a command invocation, this indicates that the result - /// code for one or more plugins was not zero. Invocation failures count against the - /// MaxErrors limit of the parent command. This is a terminal state.

      - ///
    • - ///
    • - ///

      Canceled: The command was terminated before it was completed. This is a terminal - /// state.

      - ///
    • - ///
    • - ///

      Undeliverable: The command can't be delivered to the instance. The instance might not - /// exist or might not be responding. Undeliverable invocations don't count against the parent - /// command's MaxErrors limit and don't contribute to whether the parent command - /// status is Success or Incomplete. This is a terminal state.

      - ///
    • - ///
    • - ///

      Terminated: The parent command exceeded its MaxErrors limit and subsequent - /// command invocations were canceled by the system. This is a terminal state.

      - ///
    • - ///
    - #[serde(rename = "StatusDetails")] - #[serde(default)] - pub status_details: std::option::Option, - ///

    The first 24,000 characters written by the plugin to stdout. If the command has - /// not finished running, if ExecutionStatus is neither Succeeded nor Failed, then this - /// string is empty.

    - #[serde(rename = "StandardOutputContent")] - #[serde(default)] - pub standard_output_content: std::option::Option, - ///

    The URL for the complete text written by the plugin to stdout in Amazon Simple Storage Service - /// (Amazon S3). If an S3 bucket was not specified, then this string is empty.

    - #[serde(rename = "StandardOutputUrl")] - #[serde(default)] - pub standard_output_url: std::option::Option, - ///

    The first 8,000 characters written by the plugin to stderr. If the command has - /// not finished running, then this string is empty.

    - #[serde(rename = "StandardErrorContent")] - #[serde(default)] - pub standard_error_content: std::option::Option, - ///

    The URL for the complete text written by the plugin to stderr. If the command - /// has not finished running, then this string is empty.

    - #[serde(rename = "StandardErrorUrl")] - #[serde(default)] - pub standard_error_url: std::option::Option, - ///

    CloudWatch Logs information where Systems Manager sent the command output.

    - #[serde(rename = "CloudWatchOutputConfig")] - #[serde(default)] - pub cloud_watch_output_config: std::option::Option, -} -impl std::fmt::Debug for GetCommandInvocationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetCommandInvocationOutputBody"); - formatter.field("command_id", &self.command_id); - formatter.field("instance_id", &self.instance_id); - formatter.field("comment", &self.comment); - formatter.field("document_name", &self.document_name); - formatter.field("document_version", &self.document_version); - formatter.field("plugin_name", &self.plugin_name); - formatter.field("response_code", &self.response_code); - formatter.field("execution_start_date_time", &self.execution_start_date_time); - formatter.field("execution_elapsed_time", &self.execution_elapsed_time); - formatter.field("execution_end_date_time", &self.execution_end_date_time); - formatter.field("status", &self.status); - formatter.field("status_details", &self.status_details); - formatter.field("standard_output_content", &self.standard_output_content); - formatter.field("standard_output_url", &self.standard_output_url); - formatter.field("standard_error_content", &self.standard_error_content); - formatter.field("standard_error_url", &self.standard_error_url); - formatter.field("cloud_watch_output_config", &self.cloud_watch_output_config); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetConnectionStatusOutputBody { - ///

    The ID of the instance to check connection status.

    - #[serde(rename = "Target")] - #[serde(default)] - pub target: std::option::Option, - ///

    The status of the connection to the instance. For example, 'Connected' or 'Not - /// Connected'.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, -} -impl std::fmt::Debug for GetConnectionStatusOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetConnectionStatusOutputBody"); - formatter.field("target", &self.target); - formatter.field("status", &self.status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDefaultPatchBaselineOutputBody { - ///

    The ID of the default patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The operating system for the returned patch baseline.

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] - pub operating_system: std::option::Option, -} -impl std::fmt::Debug for GetDefaultPatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDefaultPatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("operating_system", &self.operating_system); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDeployablePatchSnapshotForInstanceOutputBody { - ///

    The ID of the instance.

    - #[serde(rename = "InstanceId")] - #[serde(default)] - pub instance_id: std::option::Option, - ///

    The user-defined snapshot ID.

    - #[serde(rename = "SnapshotId")] - #[serde(default)] - pub snapshot_id: std::option::Option, - ///

    A pre-signed Amazon S3 URL that can be used to download the patch snapshot.

    - #[serde(rename = "SnapshotDownloadUrl")] - #[serde(default)] - pub snapshot_download_url: std::option::Option, - ///

    Returns the specific operating system (for example Windows Server 2012 or Amazon Linux - /// 2015.09) on the instance for the specified patch snapshot.

    - #[serde(rename = "Product")] - #[serde(default)] - pub product: std::option::Option, -} -impl std::fmt::Debug for GetDeployablePatchSnapshotForInstanceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDeployablePatchSnapshotForInstanceOutputBody"); - formatter.field("instance_id", &self.instance_id); - formatter.field("snapshot_id", &self.snapshot_id); - formatter.field("snapshot_download_url", &self.snapshot_download_url); - formatter.field("product", &self.product); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetDocumentOutputBody { - ///

    The name of the Systems Manager document.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The date the Systems Manager document was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The friendly name of the Systems Manager document. This value can differ for each version of the - /// document. If you want to update this value, see UpdateDocument.

    - #[serde(rename = "DisplayName")] - #[serde(default)] - pub display_name: std::option::Option, - ///

    The version of the artifact associated with the document. For example, "Release 12, Update - /// 6". This value is unique across all versions of a document, and cannot be changed.

    - #[serde(rename = "VersionName")] - #[serde(default)] - pub version_name: std::option::Option, - ///

    The document version.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] - pub document_version: std::option::Option, - ///

    The status of the Systems Manager document, such as Creating, Active, - /// Updating, Failed, and Deleting.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    A message returned by AWS Systems Manager that explains the Status value. For example, a - /// Failed status might be explained by the StatusInformation message, - /// "The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct."

    - #[serde(rename = "StatusInformation")] - #[serde(default)] - pub status_information: std::option::Option, - ///

    The contents of the Systems Manager document.

    - #[serde(rename = "Content")] - #[serde(default)] - pub content: std::option::Option, - ///

    The document type.

    - #[serde(rename = "DocumentType")] - #[serde(default)] - pub document_type: std::option::Option, - ///

    The document format, either JSON or YAML.

    - #[serde(rename = "DocumentFormat")] - #[serde(default)] - pub document_format: std::option::Option, - ///

    A list of SSM documents required by a document. For example, an - /// ApplicationConfiguration document requires an - /// ApplicationConfigurationSchema document.

    - #[serde(rename = "Requires")] - #[serde(default)] - pub requires: std::option::Option>, - ///

    A description of the document attachments, including names, locations, sizes, and so - /// on.

    - #[serde(rename = "AttachmentsContent")] - #[serde(default)] - pub attachments_content: std::option::Option>, - ///

    The current review status of a new custom Systems Manager document (SSM document) created by a member - /// of your organization, or of the latest version of an existing SSM document.

    - ///

    Only one version of an SSM document can be in the APPROVED state at a time. When a new - /// version is approved, the status of the previous version changes to REJECTED.

    - ///

    Only one version of an SSM document can be in review, or PENDING, at a time.

    - #[serde(rename = "ReviewStatus")] - #[serde(default)] - pub review_status: std::option::Option, -} -impl std::fmt::Debug for GetDocumentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetDocumentOutputBody"); - formatter.field("name", &self.name); - formatter.field("created_date", &self.created_date); - formatter.field("display_name", &self.display_name); - formatter.field("version_name", &self.version_name); - formatter.field("document_version", &self.document_version); - formatter.field("status", &self.status); - formatter.field("status_information", &self.status_information); - formatter.field("content", &self.content); - formatter.field("document_type", &self.document_type); - formatter.field("document_format", &self.document_format); - formatter.field("requires", &self.requires); - formatter.field("attachments_content", &self.attachments_content); - formatter.field("review_status", &self.review_status); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetInventoryOutputBody { - ///

    Collection of inventory entities such as a collection of instance inventory.

    - #[serde(rename = "Entities")] - #[serde(default)] - pub entities: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetInventoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetInventoryOutputBody"); - formatter.field("entities", &self.entities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetInventorySchemaOutputBody { - ///

    Inventory schemas returned by the request.

    - #[serde(rename = "Schemas")] - #[serde(default)] - pub schemas: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetInventorySchemaOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetInventorySchemaOutputBody"); - formatter.field("schemas", &self.schemas); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowOutputBody { - ///

    The ID of the created maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The name of the maintenance window.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The description of the maintenance window.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - /// to become active. The maintenance window will not run before this specified time.

    - #[serde(rename = "StartDate")] - #[serde(default)] - pub start_date: std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - /// to become inactive. The maintenance window will not run after this specified time.

    - #[serde(rename = "EndDate")] - #[serde(default)] - pub end_date: std::option::Option, - ///

    The schedule of the maintenance window in the form of a cron or rate expression.

    - #[serde(rename = "Schedule")] - #[serde(default)] - pub schedule: std::option::Option, - ///

    The time zone that the scheduled maintenance window executions are based on, in Internet - /// Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - /// "Asia/Seoul". For more information, see the Time - /// Zone Database on the IANA website.

    - #[serde(rename = "ScheduleTimezone")] - #[serde(default)] - pub schedule_timezone: std::option::Option, - ///

    The number of days to wait to run a maintenance window after the scheduled CRON expression - /// date and time.

    - #[serde(rename = "ScheduleOffset")] - #[serde(default)] - pub schedule_offset: std::option::Option, - ///

    The next time the maintenance window will actually run, taking into account any specified - /// times for the maintenance window to become active or inactive.

    - #[serde(rename = "NextExecutionTime")] - #[serde(default)] - pub next_execution_time: std::option::Option, - ///

    The duration of the maintenance window in hours.

    - #[serde(rename = "Duration")] - #[serde(default)] - pub duration: i32, - ///

    The number of hours before the end of the maintenance window that Systems Manager stops scheduling new - /// tasks for execution.

    - #[serde(rename = "Cutoff")] - #[serde(default)] - pub cutoff: i32, - ///

    Whether targets must be registered with the maintenance window before tasks can be defined - /// for those targets.

    - #[serde(rename = "AllowUnassociatedTargets")] - #[serde(default)] - pub allow_unassociated_targets: bool, - ///

    Indicates whether the maintenance window is enabled.

    - #[serde(rename = "Enabled")] - #[serde(default)] - pub enabled: bool, - ///

    The date the maintenance window was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The date the maintenance window was last modified.

    - #[serde(rename = "ModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub modified_date: std::option::Option, -} -impl std::fmt::Debug for GetMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("schedule", &self.schedule); - formatter.field("schedule_timezone", &self.schedule_timezone); - formatter.field("schedule_offset", &self.schedule_offset); - formatter.field("next_execution_time", &self.next_execution_time); - formatter.field("duration", &self.duration); - formatter.field("cutoff", &self.cutoff); - formatter.field( - "allow_unassociated_targets", - &self.allow_unassociated_targets, - ); - formatter.field("enabled", &self.enabled); - formatter.field("created_date", &self.created_date); - formatter.field("modified_date", &self.modified_date); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionOutputBody { - ///

    The ID of the maintenance window execution.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] - pub window_execution_id: std::option::Option, - ///

    The ID of the task executions from the maintenance window execution.

    - #[serde(rename = "TaskIds")] - #[serde(default)] - pub task_ids: std::option::Option>, - ///

    The status of the maintenance window execution.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The details explaining the Status. Only available for certain status values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] - pub status_details: std::option::Option, - ///

    The time the maintenance window started running.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub start_time: std::option::Option, - ///

    The time the maintenance window finished running.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub end_time: std::option::Option, -} -impl std::fmt::Debug for GetMaintenanceWindowExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionOutputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_ids", &self.task_ids); - formatter.field("status", &self.status); - formatter.field("status_details", &self.status_details); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionTaskOutputBody { - ///

    The ID of the maintenance window execution that includes the task.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] - pub window_execution_id: std::option::Option, - ///

    The ID of the specific task execution in the maintenance window task that was - /// retrieved.

    - #[serde(rename = "TaskExecutionId")] - #[serde(default)] - pub task_execution_id: std::option::Option, - ///

    The ARN of the task that ran.

    - #[serde(rename = "TaskArn")] - #[serde(default)] - pub task_arn: std::option::Option, - ///

    The role that was assumed when running the task.

    - #[serde(rename = "ServiceRole")] - #[serde(default)] - pub service_role: std::option::Option, - ///

    The type of task that was run.

    - #[serde(rename = "Type")] - #[serde(default)] - pub r#type: std::option::Option, - ///

    The parameters passed to the task when it was run.

    - /// - ///

    - /// TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - /// instead use the Parameters option in the TaskInvocationParameters structure. For information - /// about how Systems Manager handles these options for the supported maintenance window task - /// types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - ///

    The map has the following format:

    - ///

    Key: string, between 1 and 255 characters

    - ///

    Value: an array of strings, each string is between 1 and 255 characters

    - #[serde(rename = "TaskParameters")] - #[serde(default)] - pub task_parameters: std::option::Option< - std::vec::Vec< - std::collections::HashMap< - std::string::String, - crate::model::MaintenanceWindowTaskParameterValueExpression, - >, - >, - >, - ///

    The priority of the task.

    - #[serde(rename = "Priority")] - #[serde(default)] - pub priority: i32, - ///

    The defined maximum number of task executions that could be run in parallel.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] - pub max_concurrency: std::option::Option, - ///

    The defined maximum number of task execution errors allowed before scheduling of the task - /// execution would have been stopped.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] - pub max_errors: std::option::Option, - ///

    The status of the task.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The details explaining the Status. Only available for certain status values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] - pub status_details: std::option::Option, - ///

    The time the task execution started.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub start_time: std::option::Option, - ///

    The time the task execution completed.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub end_time: std::option::Option, -} -impl std::fmt::Debug for GetMaintenanceWindowExecutionTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskOutputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_execution_id", &self.task_execution_id); - formatter.field("task_arn", &self.task_arn); - formatter.field("service_role", &self.service_role); - formatter.field("r#type", &self.r#type); - formatter.field("task_parameters", &"*** Sensitive Data Redacted ***"); - formatter.field("priority", &self.priority); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("status", &self.status); - formatter.field("status_details", &self.status_details); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowExecutionTaskInvocationOutputBody { - ///

    The maintenance window execution ID.

    - #[serde(rename = "WindowExecutionId")] - #[serde(default)] - pub window_execution_id: std::option::Option, - ///

    The task execution ID.

    - #[serde(rename = "TaskExecutionId")] - #[serde(default)] - pub task_execution_id: std::option::Option, - ///

    The invocation ID.

    - #[serde(rename = "InvocationId")] - #[serde(default)] - pub invocation_id: std::option::Option, - ///

    The execution ID.

    - #[serde(rename = "ExecutionId")] - #[serde(default)] - pub execution_id: std::option::Option, - ///

    Retrieves the task type for a maintenance window. Task types include the following: LAMBDA, - /// STEP_FUNCTIONS, AUTOMATION, RUN_COMMAND.

    - #[serde(rename = "TaskType")] - #[serde(default)] - pub task_type: std::option::Option, - ///

    The parameters used at the time that the task ran.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option, - ///

    The task status for an invocation.

    - #[serde(rename = "Status")] - #[serde(default)] - pub status: std::option::Option, - ///

    The details explaining the status. Details are only available for certain status - /// values.

    - #[serde(rename = "StatusDetails")] - #[serde(default)] - pub status_details: std::option::Option, - ///

    The time that the task started running on the target.

    - #[serde(rename = "StartTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub start_time: std::option::Option, - ///

    The time that the task finished running on the target.

    - #[serde(rename = "EndTime")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub end_time: std::option::Option, - ///

    User-provided value to be included in any CloudWatch events raised while running tasks for - /// these targets in this maintenance window.

    - #[serde(rename = "OwnerInformation")] - #[serde(default)] - pub owner_information: std::option::Option, - ///

    The maintenance window target ID.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] - pub window_target_id: std::option::Option, -} -impl std::fmt::Debug for GetMaintenanceWindowExecutionTaskInvocationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationOutputBody"); - formatter.field("window_execution_id", &self.window_execution_id); - formatter.field("task_execution_id", &self.task_execution_id); - formatter.field("invocation_id", &self.invocation_id); - formatter.field("execution_id", &self.execution_id); - formatter.field("task_type", &self.task_type); - formatter.field("parameters", &"*** Sensitive Data Redacted ***"); - formatter.field("status", &self.status); - formatter.field("status_details", &self.status_details); - formatter.field("start_time", &self.start_time); - formatter.field("end_time", &self.end_time); - formatter.field("owner_information", &"*** Sensitive Data Redacted ***"); - formatter.field("window_target_id", &self.window_target_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetMaintenanceWindowTaskOutputBody { - ///

    The retrieved maintenance window ID.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The retrieved maintenance window task ID.

    - #[serde(rename = "WindowTaskId")] - #[serde(default)] - pub window_task_id: std::option::Option, - ///

    The targets where the task should run.

    - #[serde(rename = "Targets")] - #[serde(default)] - pub targets: std::option::Option>, - ///

    The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, - /// the TaskArn is the Systems Manager Document name/ARN. For LAMBDA tasks, the value is the function name/ARN. - /// For STEP_FUNCTIONS tasks, the value is the state machine ARN.

    - #[serde(rename = "TaskArn")] - #[serde(default)] - pub task_arn: std::option::Option, - ///

    The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for - /// maintenance window Run Command tasks.

    - #[serde(rename = "ServiceRoleArn")] - #[serde(default)] - pub service_role_arn: std::option::Option, - ///

    The type of task to run.

    - #[serde(rename = "TaskType")] - #[serde(default)] - pub task_type: std::option::Option, - ///

    The parameters to pass to the task when it runs.

    - /// - ///

    - /// TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - /// instead use the Parameters option in the TaskInvocationParameters structure. For information - /// about how Systems Manager handles these options for the supported maintenance window task - /// types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - #[serde(rename = "TaskParameters")] - #[serde(default)] - pub task_parameters: std::option::Option< - std::collections::HashMap< - std::string::String, - crate::model::MaintenanceWindowTaskParameterValueExpression, - >, - >, - ///

    The parameters to pass to the task when it runs.

    - #[serde(rename = "TaskInvocationParameters")] - #[serde(default)] - pub task_invocation_parameters: - std::option::Option, - ///

    The priority of the task when it runs. The lower the number, the higher the priority. Tasks - /// that have the same priority are scheduled in parallel.

    - #[serde(rename = "Priority")] - #[serde(default)] - pub priority: i32, - ///

    The maximum number of targets allowed to run this task in parallel.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1, which may be reported - /// in the response to this command. This value does not affect the running of your task and can be - /// ignored.

    - ///
    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] - pub max_concurrency: std::option::Option, - ///

    The maximum number of errors allowed before the task stops being scheduled.

    - /// - ///

    For maintenance window tasks without a target specified, you cannot supply a value for this - /// option. Instead, the system inserts a placeholder value of 1, which may be reported - /// in the response to this command. This value does not affect the running of your task and can be - /// ignored.

    - ///
    - #[serde(rename = "MaxErrors")] - #[serde(default)] - pub max_errors: std::option::Option, - ///

    The location in Amazon S3 where the task results are logged.

    - /// - ///

    - /// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the - /// OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - /// For information about how Systems Manager handles these options for the supported maintenance - /// window task types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - #[serde(rename = "LoggingInfo")] - #[serde(default)] - pub logging_info: std::option::Option, - ///

    The retrieved task name.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The retrieved task description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for GetMaintenanceWindowTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetMaintenanceWindowTaskOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.field("targets", &self.targets); - formatter.field("task_arn", &self.task_arn); - formatter.field("service_role_arn", &self.service_role_arn); - formatter.field("task_type", &self.task_type); - formatter.field("task_parameters", &"*** Sensitive Data Redacted ***"); - formatter.field( - "task_invocation_parameters", - &self.task_invocation_parameters, - ); - formatter.field("priority", &self.priority); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("logging_info", &self.logging_info); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsItemOutputBody { - ///

    The OpsItem.

    - #[serde(rename = "OpsItem")] - #[serde(default)] - pub ops_item: std::option::Option, -} -impl std::fmt::Debug for GetOpsItemOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsItemOutputBody"); - formatter.field("ops_item", &self.ops_item); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsMetadataOutputBody { - ///

    The resource ID of the Application Manager application.

    - #[serde(rename = "ResourceId")] - #[serde(default)] - pub resource_id: std::option::Option, - ///

    OpsMetadata for an Application Manager application.

    - #[serde(rename = "Metadata")] - #[serde(default)] - pub metadata: std::option::Option< - std::collections::HashMap, - >, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetOpsMetadataOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsMetadataOutputBody"); - formatter.field("resource_id", &self.resource_id); - formatter.field("metadata", &self.metadata); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetOpsSummaryOutputBody { - ///

    The list of aggregated and filtered OpsItems.

    - #[serde(rename = "Entities")] - #[serde(default)] - pub entities: std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetOpsSummaryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetOpsSummaryOutputBody"); - formatter.field("entities", &self.entities); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParameterOutputBody { - ///

    Information about a parameter.

    - #[serde(rename = "Parameter")] - #[serde(default)] - pub parameter: std::option::Option, -} -impl std::fmt::Debug for GetParameterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParameterOutputBody"); - formatter.field("parameter", &self.parameter); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParameterHistoryOutputBody { - ///

    A list of parameters returned by the request.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetParameterHistoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParameterHistoryOutputBody"); - formatter.field("parameters", &self.parameters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersOutputBody { - ///

    A list of details for a parameter.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option>, - ///

    A list of parameters that are not formatted correctly or do not run during an - /// execution.

    - #[serde(rename = "InvalidParameters")] - #[serde(default)] - pub invalid_parameters: std::option::Option>, -} -impl std::fmt::Debug for GetParametersOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersOutputBody"); - formatter.field("parameters", &self.parameters); - formatter.field("invalid_parameters", &self.invalid_parameters); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetParametersByPathOutputBody { - ///

    A list of parameters found in the specified hierarchy.

    - #[serde(rename = "Parameters")] - #[serde(default)] - pub parameters: std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for GetParametersByPathOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetParametersByPathOutputBody"); - formatter.field("parameters", &self.parameters); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPatchBaselineOutputBody { - ///

    The ID of the retrieved patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The name of the patch baseline.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    Returns the operating system specified for the patch baseline.

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] - pub operating_system: std::option::Option, - ///

    A set of global filters used to exclude patches from the baseline.

    - #[serde(rename = "GlobalFilters")] - #[serde(default)] - pub global_filters: std::option::Option, - ///

    A set of rules used to include patches in the baseline.

    - #[serde(rename = "ApprovalRules")] - #[serde(default)] - pub approval_rules: std::option::Option, - ///

    A list of explicitly approved patches for the baseline.

    - #[serde(rename = "ApprovedPatches")] - #[serde(default)] - pub approved_patches: std::option::Option>, - ///

    Returns the specified compliance severity level for approved patches in the patch - /// baseline.

    - #[serde(rename = "ApprovedPatchesComplianceLevel")] - #[serde(default)] - pub approved_patches_compliance_level: std::option::Option, - ///

    Indicates whether the list of approved patches includes non-security updates that should be - /// applied to the instances. The default value is 'false'. Applies to Linux instances only.

    - #[serde(rename = "ApprovedPatchesEnableNonSecurity")] - #[serde(default)] - pub approved_patches_enable_non_security: std::option::Option, - ///

    A list of explicitly rejected patches for the baseline.

    - #[serde(rename = "RejectedPatches")] - #[serde(default)] - pub rejected_patches: std::option::Option>, - ///

    The action specified to take on patches included in the RejectedPatches list. A patch can be - /// allowed only if it is a dependency of another package, or blocked entirely along with packages - /// that include it as a dependency.

    - #[serde(rename = "RejectedPatchesAction")] - #[serde(default)] - pub rejected_patches_action: std::option::Option, - ///

    Patch groups included in the patch baseline.

    - #[serde(rename = "PatchGroups")] - #[serde(default)] - pub patch_groups: std::option::Option>, - ///

    The date the patch baseline was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The date the patch baseline was last modified.

    - #[serde(rename = "ModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub modified_date: std::option::Option, - ///

    A description of the patch baseline.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Information about the patches to use to update the instances, including target operating - /// systems and source repositories. Applies to Linux instances only.

    - #[serde(rename = "Sources")] - #[serde(default)] - pub sources: std::option::Option>, -} -impl std::fmt::Debug for GetPatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("name", &self.name); - formatter.field("operating_system", &self.operating_system); - formatter.field("global_filters", &self.global_filters); - formatter.field("approval_rules", &self.approval_rules); - formatter.field("approved_patches", &self.approved_patches); - formatter.field( - "approved_patches_compliance_level", - &self.approved_patches_compliance_level, - ); - formatter.field( - "approved_patches_enable_non_security", - &self.approved_patches_enable_non_security, - ); - formatter.field("rejected_patches", &self.rejected_patches); - formatter.field("rejected_patches_action", &self.rejected_patches_action); - formatter.field("patch_groups", &self.patch_groups); - formatter.field("created_date", &self.created_date); - formatter.field("modified_date", &self.modified_date); - formatter.field("description", &self.description); - formatter.field("sources", &self.sources); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetPatchBaselineForPatchGroupOutputBody { - ///

    The ID of the patch baseline that should be used for the patch group.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The name of the patch group.

    - #[serde(rename = "PatchGroup")] - #[serde(default)] - pub patch_group: std::option::Option, - ///

    The operating system rule specified for patch groups using the patch baseline.

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] - pub operating_system: std::option::Option, -} -impl std::fmt::Debug for GetPatchBaselineForPatchGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetPatchBaselineForPatchGroupOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("patch_group", &self.patch_group); - formatter.field("operating_system", &self.operating_system); - formatter.finish() - } -} - -///

    The query result body of the GetServiceSetting API action.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct GetServiceSettingOutputBody { - ///

    The query result of the current service setting.

    - #[serde(rename = "ServiceSetting")] - #[serde(default)] - pub service_setting: std::option::Option, -} -impl std::fmt::Debug for GetServiceSettingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("GetServiceSettingOutputBody"); - formatter.field("service_setting", &self.service_setting); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct LabelParameterVersionOutputBody { - ///

    The label does not meet the requirements. For information about parameter label - /// requirements, see Labeling parameters - /// in the AWS Systems Manager User Guide.

    - #[serde(rename = "InvalidLabels")] - #[serde(default)] - pub invalid_labels: std::option::Option>, - ///

    The version of the parameter that has been labeled.

    - #[serde(rename = "ParameterVersion")] - #[serde(default)] - pub parameter_version: i64, -} -impl std::fmt::Debug for LabelParameterVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("LabelParameterVersionOutputBody"); - formatter.field("invalid_labels", &self.invalid_labels); - formatter.field("parameter_version", &self.parameter_version); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationsOutputBody { - ///

    The associations.

    - #[serde(rename = "Associations")] - #[serde(default)] - pub associations: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAssociationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationsOutputBody"); - formatter.field("associations", &self.associations); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListAssociationVersionsOutputBody { - ///

    Information about all versions of the association for the specified association ID.

    - #[serde(rename = "AssociationVersions")] - #[serde(default)] - pub association_versions: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListAssociationVersionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListAssociationVersionsOutputBody"); - formatter.field("association_versions", &self.association_versions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCommandInvocationsOutputBody { - ///

    (Optional) A list of all invocations.

    - #[serde(rename = "CommandInvocations")] - #[serde(default)] - pub command_invocations: std::option::Option>, - ///

    (Optional) The token for the next set of items to return. (You received this token from a - /// previous call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCommandInvocationsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCommandInvocationsOutputBody"); - formatter.field("command_invocations", &self.command_invocations); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListCommandsOutputBody { - ///

    (Optional) The list of commands requested by the user.

    - #[serde(rename = "Commands")] - #[serde(default)] - pub commands: std::option::Option>, - ///

    (Optional) The token for the next set of items to return. (You received this token from a - /// previous call.)

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListCommandsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListCommandsOutputBody"); - formatter.field("commands", &self.commands); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListComplianceItemsOutputBody { - ///

    A list of compliance information for the specified resource ID.

    - #[serde(rename = "ComplianceItems")] - #[serde(default)] - pub compliance_items: std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListComplianceItemsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListComplianceItemsOutputBody"); - formatter.field("compliance_items", &self.compliance_items); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListComplianceSummariesOutputBody { - ///

    A list of compliant and non-compliant summary counts based on compliance types. For example, - /// this call returns State Manager associations, patches, or custom compliance types according to - /// the filter criteria that you specified.

    - #[serde(rename = "ComplianceSummaryItems")] - #[serde(default)] - pub compliance_summary_items: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListComplianceSummariesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListComplianceSummariesOutputBody"); - formatter.field("compliance_summary_items", &self.compliance_summary_items); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentMetadataHistoryOutputBody { - ///

    The name of the document.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The version of the document.

    - #[serde(rename = "DocumentVersion")] - #[serde(default)] - pub document_version: std::option::Option, - ///

    The user ID of the person in the organization who requested the document review.

    - #[serde(rename = "Author")] - #[serde(default)] - pub author: std::option::Option, - ///

    Information about the response to the document approval request.

    - #[serde(rename = "Metadata")] - #[serde(default)] - pub metadata: std::option::Option, - ///

    The maximum number of items to return for this call. The call also returns a token that you - /// can specify in a subsequent call to get the next set of results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDocumentMetadataHistoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentMetadataHistoryOutputBody"); - formatter.field("name", &self.name); - formatter.field("document_version", &self.document_version); - formatter.field("author", &self.author); - formatter.field("metadata", &self.metadata); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentsOutputBody { - ///

    The names of the Systems Manager documents.

    - #[serde(rename = "DocumentIdentifiers")] - #[serde(default)] - pub document_identifiers: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDocumentsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentsOutputBody"); - formatter.field("document_identifiers", &self.document_identifiers); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListDocumentVersionsOutputBody { - ///

    The document versions.

    - #[serde(rename = "DocumentVersions")] - #[serde(default)] - pub document_versions: std::option::Option>, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListDocumentVersionsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListDocumentVersionsOutputBody"); - formatter.field("document_versions", &self.document_versions); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListInventoryEntriesOutputBody { - ///

    The type of inventory item returned by the request.

    - #[serde(rename = "TypeName")] - #[serde(default)] - pub type_name: std::option::Option, - ///

    The instance ID targeted by the request to query inventory information.

    - #[serde(rename = "InstanceId")] - #[serde(default)] - pub instance_id: std::option::Option, - ///

    The inventory schema version used by the instance(s).

    - #[serde(rename = "SchemaVersion")] - #[serde(default)] - pub schema_version: std::option::Option, - ///

    The time that inventory information was collected for the instance(s).

    - #[serde(rename = "CaptureTime")] - #[serde(default)] - pub capture_time: std::option::Option, - ///

    A list of inventory items on the instance(s).

    - #[serde(rename = "Entries")] - #[serde(default)] - pub entries: std::option::Option< - std::vec::Vec>, - >, - ///

    The token to use when requesting the next set of items. If there are no additional items to - /// return, the string is empty.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListInventoryEntriesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListInventoryEntriesOutputBody"); - formatter.field("type_name", &self.type_name); - formatter.field("instance_id", &self.instance_id); - formatter.field("schema_version", &self.schema_version); - formatter.field("capture_time", &self.capture_time); - formatter.field("entries", &self.entries); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsItemEventsOutputBody { - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    A list of event information for the specified OpsItems.

    - #[serde(rename = "Summaries")] - #[serde(default)] - pub summaries: std::option::Option>, -} -impl std::fmt::Debug for ListOpsItemEventsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsItemEventsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("summaries", &self.summaries); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsItemRelatedItemsOutputBody { - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, - ///

    A list of related-item resources for the specified OpsItem.

    - #[serde(rename = "Summaries")] - #[serde(default)] - pub summaries: std::option::Option>, -} -impl std::fmt::Debug for ListOpsItemRelatedItemsOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsItemRelatedItemsOutputBody"); - formatter.field("next_token", &self.next_token); - formatter.field("summaries", &self.summaries); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListOpsMetadataOutputBody { - ///

    Returns a list of OpsMetadata objects.

    - #[serde(rename = "OpsMetadataList")] - #[serde(default)] - pub ops_metadata_list: std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListOpsMetadataOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListOpsMetadataOutputBody"); - formatter.field("ops_metadata_list", &self.ops_metadata_list); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceComplianceSummariesOutputBody { - ///

    A summary count for specified or targeted managed instances. Summary count includes - /// information about compliant and non-compliant State Manager associations, patch status, or custom - /// items according to the filter criteria that you specify.

    - #[serde(rename = "ResourceComplianceSummaryItems")] - #[serde(default)] - pub resource_compliance_summary_items: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListResourceComplianceSummariesOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceComplianceSummariesOutputBody"); - formatter.field( - "resource_compliance_summary_items", - &self.resource_compliance_summary_items, - ); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListResourceDataSyncOutputBody { - ///

    A list of your current Resource Data Sync configurations and their statuses.

    - #[serde(rename = "ResourceDataSyncItems")] - #[serde(default)] - pub resource_data_sync_items: - std::option::Option>, - ///

    The token for the next set of items to return. Use this token to get the next set of - /// results.

    - #[serde(rename = "NextToken")] - #[serde(default)] - pub next_token: std::option::Option, -} -impl std::fmt::Debug for ListResourceDataSyncOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListResourceDataSyncOutputBody"); - formatter.field("resource_data_sync_items", &self.resource_data_sync_items); - formatter.field("next_token", &self.next_token); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ListTagsForResourceOutputBody { - ///

    A list of tags.

    - #[serde(rename = "TagList")] - #[serde(default)] - pub tag_list: std::option::Option>, -} -impl std::fmt::Debug for ListTagsForResourceOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ListTagsForResourceOutputBody"); - formatter.field("tag_list", &self.tag_list); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutInventoryOutputBody { - ///

    Information about the request.

    - #[serde(rename = "Message")] - #[serde(default)] - pub message: std::option::Option, -} -impl std::fmt::Debug for PutInventoryOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutInventoryOutputBody"); - formatter.field("message", &self.message); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct PutParameterOutputBody { - ///

    The new version number of a parameter. If you edit a parameter value, Parameter Store - /// automatically creates a new version and assigns this new version a unique ID. You can reference a - /// parameter version ID in API actions or in Systems Manager documents (SSM documents). By default, if you - /// don't specify a specific version, the system returns the latest parameter value when a parameter - /// is called.

    - #[serde(rename = "Version")] - #[serde(default)] - pub version: i64, - ///

    The tier assigned to the parameter.

    - #[serde(rename = "Tier")] - #[serde(default)] - pub tier: std::option::Option, -} -impl std::fmt::Debug for PutParameterOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PutParameterOutputBody"); - formatter.field("version", &self.version); - formatter.field("tier", &self.tier); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterDefaultPatchBaselineOutputBody { - ///

    The ID of the default patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, -} -impl std::fmt::Debug for RegisterDefaultPatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterDefaultPatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterPatchBaselineForPatchGroupOutputBody { - ///

    The ID of the patch baseline the patch group was registered with.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The name of the patch group registered with the patch baseline.

    - #[serde(rename = "PatchGroup")] - #[serde(default)] - pub patch_group: std::option::Option, -} -impl std::fmt::Debug for RegisterPatchBaselineForPatchGroupOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterPatchBaselineForPatchGroupOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("patch_group", &self.patch_group); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTargetWithMaintenanceWindowOutputBody { - ///

    The ID of the target definition in this maintenance window.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] - pub window_target_id: std::option::Option, -} -impl std::fmt::Debug for RegisterTargetWithMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTargetWithMaintenanceWindowOutputBody"); - formatter.field("window_target_id", &self.window_target_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct RegisterTaskWithMaintenanceWindowOutputBody { - ///

    The ID of the task in the maintenance window.

    - #[serde(rename = "WindowTaskId")] - #[serde(default)] - pub window_task_id: std::option::Option, -} -impl std::fmt::Debug for RegisterTaskWithMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegisterTaskWithMaintenanceWindowOutputBody"); - formatter.field("window_task_id", &self.window_task_id); - formatter.finish() - } -} - -///

    The result body of the ResetServiceSetting API action.

    -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResetServiceSettingOutputBody { - ///

    The current, effective service setting after calling the ResetServiceSetting API - /// action.

    - #[serde(rename = "ServiceSetting")] - #[serde(default)] - pub service_setting: std::option::Option, -} -impl std::fmt::Debug for ResetServiceSettingOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResetServiceSettingOutputBody"); - formatter.field("service_setting", &self.service_setting); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct ResumeSessionOutputBody { - ///

    The ID of the session.

    - #[serde(rename = "SessionId")] - #[serde(default)] - pub session_id: std::option::Option, - ///

    An encrypted token value containing session and caller information. Used to authenticate the - /// connection to the instance.

    - #[serde(rename = "TokenValue")] - #[serde(default)] - pub token_value: std::option::Option, - ///

    A URL back to SSM Agent on the instance that the Session Manager client uses to send commands and - /// receive output from the instance. Format: wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output).

    - ///

    - /// region represents the Region identifier for an - /// AWS Region supported by AWS Systems Manager, such as us-east-2 for the US East (Ohio) Region. - /// For a list of supported region values, see the Region column in Systems Manager service endpoints in the - /// AWS General Reference.

    - ///

    - /// session-id represents the ID of a Session Manager session, such as - /// 1a2b3c4dEXAMPLE.

    - #[serde(rename = "StreamUrl")] - #[serde(default)] - pub stream_url: std::option::Option, -} -impl std::fmt::Debug for ResumeSessionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ResumeSessionOutputBody"); - formatter.field("session_id", &self.session_id); - formatter.field("token_value", &self.token_value); - formatter.field("stream_url", &self.stream_url); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct SendCommandOutputBody { - ///

    The request as it was received by Systems Manager. Also provides the command ID which can be used - /// future references to this request.

    - #[serde(rename = "Command")] - #[serde(default)] - pub command: std::option::Option, -} -impl std::fmt::Debug for SendCommandOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("SendCommandOutputBody"); - formatter.field("command", &self.command); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartAutomationExecutionOutputBody { - ///

    The unique ID of a newly scheduled automation execution.

    - #[serde(rename = "AutomationExecutionId")] - #[serde(default)] - pub automation_execution_id: std::option::Option, -} -impl std::fmt::Debug for StartAutomationExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartAutomationExecutionOutputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartChangeRequestExecutionOutputBody { - ///

    The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation - /// operation.)

    - #[serde(rename = "AutomationExecutionId")] - #[serde(default)] - pub automation_execution_id: std::option::Option, -} -impl std::fmt::Debug for StartChangeRequestExecutionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartChangeRequestExecutionOutputBody"); - formatter.field("automation_execution_id", &self.automation_execution_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct StartSessionOutputBody { - ///

    The ID of the session.

    - #[serde(rename = "SessionId")] - #[serde(default)] - pub session_id: std::option::Option, - ///

    An encrypted token value containing session and caller information. Used to authenticate the - /// connection to the instance.

    - #[serde(rename = "TokenValue")] - #[serde(default)] - pub token_value: std::option::Option, - ///

    A URL back to SSM Agent on the instance that the Session Manager client uses to send commands and - /// receive output from the instance. Format: wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) - ///

    - ///

    - /// region represents the Region identifier for an - /// AWS Region supported by AWS Systems Manager, such as us-east-2 for the US East (Ohio) Region. - /// For a list of supported region values, see the Region column in Systems Manager service endpoints in the - /// AWS General Reference.

    - ///

    - /// session-id represents the ID of a Session Manager session, such as - /// 1a2b3c4dEXAMPLE.

    - #[serde(rename = "StreamUrl")] - #[serde(default)] - pub stream_url: std::option::Option, -} -impl std::fmt::Debug for StartSessionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("StartSessionOutputBody"); - formatter.field("session_id", &self.session_id); - formatter.field("token_value", &self.token_value); - formatter.field("stream_url", &self.stream_url); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct TerminateSessionOutputBody { - ///

    The ID of the session that has been terminated.

    - #[serde(rename = "SessionId")] - #[serde(default)] - pub session_id: std::option::Option, -} -impl std::fmt::Debug for TerminateSessionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("TerminateSessionOutputBody"); - formatter.field("session_id", &self.session_id); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UnlabelParameterVersionOutputBody { - ///

    A list of all labels deleted from the parameter.

    - #[serde(rename = "RemovedLabels")] - #[serde(default)] - pub removed_labels: std::option::Option>, - ///

    The labels that are not attached to the given parameter version.

    - #[serde(rename = "InvalidLabels")] - #[serde(default)] - pub invalid_labels: std::option::Option>, -} -impl std::fmt::Debug for UnlabelParameterVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UnlabelParameterVersionOutputBody"); - formatter.field("removed_labels", &self.removed_labels); - formatter.field("invalid_labels", &self.invalid_labels); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAssociationOutputBody { - ///

    The description of the association that was updated.

    - #[serde(rename = "AssociationDescription")] - #[serde(default)] - pub association_description: std::option::Option, -} -impl std::fmt::Debug for UpdateAssociationOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAssociationOutputBody"); - formatter.field("association_description", &self.association_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateAssociationStatusOutputBody { - ///

    Information about the association.

    - #[serde(rename = "AssociationDescription")] - #[serde(default)] - pub association_description: std::option::Option, -} -impl std::fmt::Debug for UpdateAssociationStatusOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateAssociationStatusOutputBody"); - formatter.field("association_description", &self.association_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentOutputBody { - ///

    A description of the document that was updated.

    - #[serde(rename = "DocumentDescription")] - #[serde(default)] - pub document_description: std::option::Option, -} -impl std::fmt::Debug for UpdateDocumentOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentOutputBody"); - formatter.field("document_description", &self.document_description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateDocumentDefaultVersionOutputBody { - ///

    The description of a custom document that you want to set as the default version.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for UpdateDocumentDefaultVersionOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateDocumentDefaultVersionOutputBody"); - formatter.field("description", &self.description); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowOutputBody { - ///

    The ID of the created maintenance window.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The name of the maintenance window.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    An optional description of the update.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - /// to become active. The maintenance window will not run before this specified time.

    - #[serde(rename = "StartDate")] - #[serde(default)] - pub start_date: std::option::Option, - ///

    The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - /// to become inactive. The maintenance window will not run after this specified time.

    - #[serde(rename = "EndDate")] - #[serde(default)] - pub end_date: std::option::Option, - ///

    The schedule of the maintenance window in the form of a cron or rate expression.

    - #[serde(rename = "Schedule")] - #[serde(default)] - pub schedule: std::option::Option, - ///

    The time zone that the scheduled maintenance window executions are based on, in Internet - /// Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - /// "Asia/Seoul". For more information, see the Time - /// Zone Database on the IANA website.

    - #[serde(rename = "ScheduleTimezone")] - #[serde(default)] - pub schedule_timezone: std::option::Option, - ///

    The number of days to wait to run a maintenance window after the scheduled CRON expression - /// date and time.

    - #[serde(rename = "ScheduleOffset")] - #[serde(default)] - pub schedule_offset: std::option::Option, - ///

    The duration of the maintenance window in hours.

    - #[serde(rename = "Duration")] - #[serde(default)] - pub duration: i32, - ///

    The number of hours before the end of the maintenance window that Systems Manager stops scheduling new - /// tasks for execution.

    - #[serde(rename = "Cutoff")] - #[serde(default)] - pub cutoff: i32, - ///

    Whether targets must be registered with the maintenance window before tasks can be defined - /// for those targets.

    - #[serde(rename = "AllowUnassociatedTargets")] - #[serde(default)] - pub allow_unassociated_targets: bool, - ///

    Whether the maintenance window is enabled.

    - #[serde(rename = "Enabled")] - #[serde(default)] - pub enabled: bool, -} -impl std::fmt::Debug for UpdateMaintenanceWindowOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.field("start_date", &self.start_date); - formatter.field("end_date", &self.end_date); - formatter.field("schedule", &self.schedule); - formatter.field("schedule_timezone", &self.schedule_timezone); - formatter.field("schedule_offset", &self.schedule_offset); - formatter.field("duration", &self.duration); - formatter.field("cutoff", &self.cutoff); - formatter.field( - "allow_unassociated_targets", - &self.allow_unassociated_targets, - ); - formatter.field("enabled", &self.enabled); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowTargetOutputBody { - ///

    The maintenance window ID specified in the update request.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The target ID specified in the update request.

    - #[serde(rename = "WindowTargetId")] - #[serde(default)] - pub window_target_id: std::option::Option, - ///

    The updated targets.

    - #[serde(rename = "Targets")] - #[serde(default)] - pub targets: std::option::Option>, - ///

    The updated owner.

    - #[serde(rename = "OwnerInformation")] - #[serde(default)] - pub owner_information: std::option::Option, - ///

    The updated name.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The updated description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for UpdateMaintenanceWindowTargetOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowTargetOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_target_id", &self.window_target_id); - formatter.field("targets", &self.targets); - formatter.field("owner_information", &"*** Sensitive Data Redacted ***"); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateMaintenanceWindowTaskOutputBody { - ///

    The ID of the maintenance window that was updated.

    - #[serde(rename = "WindowId")] - #[serde(default)] - pub window_id: std::option::Option, - ///

    The task ID of the maintenance window that was updated.

    - #[serde(rename = "WindowTaskId")] - #[serde(default)] - pub window_task_id: std::option::Option, - ///

    The updated target values.

    - #[serde(rename = "Targets")] - #[serde(default)] - pub targets: std::option::Option>, - ///

    The updated task ARN value.

    - #[serde(rename = "TaskArn")] - #[serde(default)] - pub task_arn: std::option::Option, - ///

    The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for - /// maintenance window Run Command tasks.

    - #[serde(rename = "ServiceRoleArn")] - #[serde(default)] - pub service_role_arn: std::option::Option, - ///

    The updated parameter values.

    - /// - ///

    - /// TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - /// instead use the Parameters option in the TaskInvocationParameters structure. For information - /// about how Systems Manager handles these options for the supported maintenance window task - /// types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - #[serde(rename = "TaskParameters")] - #[serde(default)] - pub task_parameters: std::option::Option< - std::collections::HashMap< - std::string::String, - crate::model::MaintenanceWindowTaskParameterValueExpression, - >, - >, - ///

    The updated parameter values.

    - #[serde(rename = "TaskInvocationParameters")] - #[serde(default)] - pub task_invocation_parameters: - std::option::Option, - ///

    The updated priority value.

    - #[serde(rename = "Priority")] - #[serde(default)] - pub priority: i32, - ///

    The updated MaxConcurrency value.

    - #[serde(rename = "MaxConcurrency")] - #[serde(default)] - pub max_concurrency: std::option::Option, - ///

    The updated MaxErrors value.

    - #[serde(rename = "MaxErrors")] - #[serde(default)] - pub max_errors: std::option::Option, - ///

    The updated logging information in Amazon S3.

    - /// - ///

    - /// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the - /// OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - /// For information about how Systems Manager handles these options for the supported maintenance - /// window task types, see MaintenanceWindowTaskInvocationParameters.

    - ///
    - #[serde(rename = "LoggingInfo")] - #[serde(default)] - pub logging_info: std::option::Option, - ///

    The updated task name.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The updated task description.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, -} -impl std::fmt::Debug for UpdateMaintenanceWindowTaskOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateMaintenanceWindowTaskOutputBody"); - formatter.field("window_id", &self.window_id); - formatter.field("window_task_id", &self.window_task_id); - formatter.field("targets", &self.targets); - formatter.field("task_arn", &self.task_arn); - formatter.field("service_role_arn", &self.service_role_arn); - formatter.field("task_parameters", &"*** Sensitive Data Redacted ***"); - formatter.field( - "task_invocation_parameters", - &self.task_invocation_parameters, - ); - formatter.field("priority", &self.priority); - formatter.field("max_concurrency", &self.max_concurrency); - formatter.field("max_errors", &self.max_errors); - formatter.field("logging_info", &self.logging_info); - formatter.field("name", &self.name); - formatter.field("description", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdateOpsMetadataOutputBody { - ///

    The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.

    - #[serde(rename = "OpsMetadataArn")] - #[serde(default)] - pub ops_metadata_arn: std::option::Option, -} -impl std::fmt::Debug for UpdateOpsMetadataOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdateOpsMetadataOutputBody"); - formatter.field("ops_metadata_arn", &self.ops_metadata_arn); - formatter.finish() - } -} - -#[non_exhaustive] -#[derive(std::default::Default, serde::Deserialize, std::clone::Clone, std::cmp::PartialEq)] -pub struct UpdatePatchBaselineOutputBody { - ///

    The ID of the deleted patch baseline.

    - #[serde(rename = "BaselineId")] - #[serde(default)] - pub baseline_id: std::option::Option, - ///

    The name of the patch baseline.

    - #[serde(rename = "Name")] - #[serde(default)] - pub name: std::option::Option, - ///

    The operating system rule used by the updated patch baseline.

    - #[serde(rename = "OperatingSystem")] - #[serde(default)] - pub operating_system: std::option::Option, - ///

    A set of global filters used to exclude patches from the baseline.

    - #[serde(rename = "GlobalFilters")] - #[serde(default)] - pub global_filters: std::option::Option, - ///

    A set of rules used to include patches in the baseline.

    - #[serde(rename = "ApprovalRules")] - #[serde(default)] - pub approval_rules: std::option::Option, - ///

    A list of explicitly approved patches for the baseline.

    - #[serde(rename = "ApprovedPatches")] - #[serde(default)] - pub approved_patches: std::option::Option>, - ///

    The compliance severity level assigned to the patch baseline after the update - /// completed.

    - #[serde(rename = "ApprovedPatchesComplianceLevel")] - #[serde(default)] - pub approved_patches_compliance_level: std::option::Option, - ///

    Indicates whether the list of approved patches includes non-security updates that should be - /// applied to the instances. The default value is 'false'. Applies to Linux instances only.

    - #[serde(rename = "ApprovedPatchesEnableNonSecurity")] - #[serde(default)] - pub approved_patches_enable_non_security: std::option::Option, - ///

    A list of explicitly rejected patches for the baseline.

    - #[serde(rename = "RejectedPatches")] - #[serde(default)] - pub rejected_patches: std::option::Option>, - ///

    The action specified to take on patches included in the RejectedPatches list. A patch can be - /// allowed only if it is a dependency of another package, or blocked entirely along with packages - /// that include it as a dependency.

    - #[serde(rename = "RejectedPatchesAction")] - #[serde(default)] - pub rejected_patches_action: std::option::Option, - ///

    The date when the patch baseline was created.

    - #[serde(rename = "CreatedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub created_date: std::option::Option, - ///

    The date when the patch baseline was last modified.

    - #[serde(rename = "ModifiedDate")] - #[serde( - deserialize_with = "crate::serde_util::stdoptionoptionsmithytypesinstant_epoch_seconds_deser" - )] - #[serde(default)] - pub modified_date: std::option::Option, - ///

    A description of the Patch Baseline.

    - #[serde(rename = "Description")] - #[serde(default)] - pub description: std::option::Option, - ///

    Information about the patches to use to update the instances, including target operating - /// systems and source repositories. Applies to Linux instances only.

    - #[serde(rename = "Sources")] - #[serde(default)] - pub sources: std::option::Option>, -} -impl std::fmt::Debug for UpdatePatchBaselineOutputBody { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("UpdatePatchBaselineOutputBody"); - formatter.field("baseline_id", &self.baseline_id); - formatter.field("name", &self.name); - formatter.field("operating_system", &self.operating_system); - formatter.field("global_filters", &self.global_filters); - formatter.field("approval_rules", &self.approval_rules); - formatter.field("approved_patches", &self.approved_patches); - formatter.field( - "approved_patches_compliance_level", - &self.approved_patches_compliance_level, - ); - formatter.field( - "approved_patches_enable_non_security", - &self.approved_patches_enable_non_security, - ); - formatter.field("rejected_patches", &self.rejected_patches); - formatter.field("rejected_patches_action", &self.rejected_patches_action); - formatter.field("created_date", &self.created_date); - formatter.field("modified_date", &self.modified_date); - formatter.field("description", &self.description); - formatter.field("sources", &self.sources); - formatter.finish() - } -} diff --git a/sdk/sts/Cargo.toml b/sdk/sts/Cargo.toml index daa126e54973..d14040c5c143 100644 --- a/sdk/sts/Cargo.toml +++ b/sdk/sts/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-sts" -version = "0.0.9-alpha" +version = "0.0.10-alpha" description = "AWS Security Token Service\n

    AWS Security Token Service (STS) enables you to request temporary, limited-privilege \n credentials for AWS Identity and Access Management (IAM) users or for users that you \n authenticate (federated users). This guide provides descriptions of the STS API. For \n more information about using this service, see Temporary Security Credentials.

    " authors = ["AWS Rust SDK Team ", "Russell Cohen "] license = "Apache-2.0" @@ -28,9 +28,6 @@ path = "..//aws-sig-auth" version = "0.2" [dependencies.bytes] version = "1" -[dependencies.serde_json] -version = "1" -features = ["float_roundtrip"] [dependencies.smithy-query] path = "..//smithy-query" [dependencies.smithy-xml] diff --git a/sdk/sts/src/client.rs b/sdk/sts/src/client.rs index 85b046c4de14..4b5f19770198 100644 --- a/sdk/sts/src/client.rs +++ b/sdk/sts/src/client.rs @@ -372,7 +372,7 @@ pub mod fluent_builders { pub async fn send( self, ) -> std::result::Result< - crate::output::AssumeRoleWithSAMLOutput, + crate::output::AssumeRoleWithSamlOutput, smithy_http::result::SdkError, > where diff --git a/sdk/sts/src/error.rs b/sdk/sts/src/error.rs index dc1db548fc6c..15cb12ba0615 100644 --- a/sdk/sts/src/error.rs +++ b/sdk/sts/src/error.rs @@ -8,20 +8,20 @@ pub struct AssumeRoleError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AssumeRoleErrorKind { - ExpiredTokenError(crate::error::ExpiredTokenError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PackedPolicyTooLargeError(crate::error::PackedPolicyTooLargeError), - RegionDisabledError(crate::error::RegionDisabledError), + ExpiredTokenException(crate::error::ExpiredTokenException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PackedPolicyTooLargeException(crate::error::PackedPolicyTooLargeException), + RegionDisabledException(crate::error::RegionDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AssumeRoleError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AssumeRoleErrorKind::ExpiredTokenError(_inner) => _inner.fmt(f), - AssumeRoleErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - AssumeRoleErrorKind::PackedPolicyTooLargeError(_inner) => _inner.fmt(f), - AssumeRoleErrorKind::RegionDisabledError(_inner) => _inner.fmt(f), + AssumeRoleErrorKind::ExpiredTokenException(_inner) => _inner.fmt(f), + AssumeRoleErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + AssumeRoleErrorKind::PackedPolicyTooLargeException(_inner) => _inner.fmt(f), + AssumeRoleErrorKind::RegionDisabledException(_inner) => _inner.fmt(f), AssumeRoleErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -70,32 +70,32 @@ impl AssumeRoleError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_expired_token_error(&self) -> bool { - matches!(&self.kind, AssumeRoleErrorKind::ExpiredTokenError(_)) + pub fn is_expired_token_exception(&self) -> bool { + matches!(&self.kind, AssumeRoleErrorKind::ExpiredTokenException(_)) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleErrorKind::MalformedPolicyDocumentError(_) + AssumeRoleErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_packed_policy_too_large_error(&self) -> bool { + pub fn is_packed_policy_too_large_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleErrorKind::PackedPolicyTooLargeError(_) + AssumeRoleErrorKind::PackedPolicyTooLargeException(_) ) } - pub fn is_region_disabled_error(&self) -> bool { - matches!(&self.kind, AssumeRoleErrorKind::RegionDisabledError(_)) + pub fn is_region_disabled_exception(&self) -> bool { + matches!(&self.kind, AssumeRoleErrorKind::RegionDisabledException(_)) } } impl std::error::Error for AssumeRoleError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AssumeRoleErrorKind::ExpiredTokenError(_inner) => Some(_inner), - AssumeRoleErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - AssumeRoleErrorKind::PackedPolicyTooLargeError(_inner) => Some(_inner), - AssumeRoleErrorKind::RegionDisabledError(_inner) => Some(_inner), + AssumeRoleErrorKind::ExpiredTokenException(_inner) => Some(_inner), + AssumeRoleErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + AssumeRoleErrorKind::PackedPolicyTooLargeException(_inner) => Some(_inner), + AssumeRoleErrorKind::RegionDisabledException(_inner) => Some(_inner), AssumeRoleErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -110,24 +110,24 @@ pub struct AssumeRoleWithSAMLError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AssumeRoleWithSAMLErrorKind { - ExpiredTokenError(crate::error::ExpiredTokenError), - IDPRejectedClaimError(crate::error::IDPRejectedClaimError), - InvalidIdentityTokenError(crate::error::InvalidIdentityTokenError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PackedPolicyTooLargeError(crate::error::PackedPolicyTooLargeError), - RegionDisabledError(crate::error::RegionDisabledError), + ExpiredTokenException(crate::error::ExpiredTokenException), + IdpRejectedClaimException(crate::error::IdpRejectedClaimException), + InvalidIdentityTokenException(crate::error::InvalidIdentityTokenException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PackedPolicyTooLargeException(crate::error::PackedPolicyTooLargeException), + RegionDisabledException(crate::error::RegionDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AssumeRoleWithSAMLError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AssumeRoleWithSAMLErrorKind::ExpiredTokenError(_inner) => _inner.fmt(f), - AssumeRoleWithSAMLErrorKind::IDPRejectedClaimError(_inner) => _inner.fmt(f), - AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenError(_inner) => _inner.fmt(f), - AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeError(_inner) => _inner.fmt(f), - AssumeRoleWithSAMLErrorKind::RegionDisabledError(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::ExpiredTokenException(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::IdpRejectedClaimException(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenException(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeException(_inner) => _inner.fmt(f), + AssumeRoleWithSAMLErrorKind::RegionDisabledException(_inner) => _inner.fmt(f), AssumeRoleWithSAMLErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -176,52 +176,52 @@ impl AssumeRoleWithSAMLError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_expired_token_error(&self) -> bool { + pub fn is_expired_token_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::ExpiredTokenError(_) + AssumeRoleWithSAMLErrorKind::ExpiredTokenException(_) ) } - pub fn is_idp_rejected_claim_error(&self) -> bool { + pub fn is_idp_rejected_claim_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::IDPRejectedClaimError(_) + AssumeRoleWithSAMLErrorKind::IdpRejectedClaimException(_) ) } - pub fn is_invalid_identity_token_error(&self) -> bool { + pub fn is_invalid_identity_token_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenError(_) + AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentError(_) + AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_packed_policy_too_large_error(&self) -> bool { + pub fn is_packed_policy_too_large_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeError(_) + AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeException(_) ) } - pub fn is_region_disabled_error(&self) -> bool { + pub fn is_region_disabled_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithSAMLErrorKind::RegionDisabledError(_) + AssumeRoleWithSAMLErrorKind::RegionDisabledException(_) ) } } impl std::error::Error for AssumeRoleWithSAMLError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AssumeRoleWithSAMLErrorKind::ExpiredTokenError(_inner) => Some(_inner), - AssumeRoleWithSAMLErrorKind::IDPRejectedClaimError(_inner) => Some(_inner), - AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenError(_inner) => Some(_inner), - AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeError(_inner) => Some(_inner), - AssumeRoleWithSAMLErrorKind::RegionDisabledError(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::ExpiredTokenException(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::IdpRejectedClaimException(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenException(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeException(_inner) => Some(_inner), + AssumeRoleWithSAMLErrorKind::RegionDisabledException(_inner) => Some(_inner), AssumeRoleWithSAMLErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -236,28 +236,34 @@ pub struct AssumeRoleWithWebIdentityError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum AssumeRoleWithWebIdentityErrorKind { - ExpiredTokenError(crate::error::ExpiredTokenError), - IDPCommunicationErrorError(crate::error::IDPCommunicationErrorError), - IDPRejectedClaimError(crate::error::IDPRejectedClaimError), - InvalidIdentityTokenError(crate::error::InvalidIdentityTokenError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PackedPolicyTooLargeError(crate::error::PackedPolicyTooLargeError), - RegionDisabledError(crate::error::RegionDisabledError), + ExpiredTokenException(crate::error::ExpiredTokenException), + IdpCommunicationErrorException(crate::error::IdpCommunicationErrorException), + IdpRejectedClaimException(crate::error::IdpRejectedClaimException), + InvalidIdentityTokenException(crate::error::InvalidIdentityTokenException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PackedPolicyTooLargeException(crate::error::PackedPolicyTooLargeException), + RegionDisabledException(crate::error::RegionDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for AssumeRoleWithWebIdentityError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - AssumeRoleWithWebIdentityErrorKind::ExpiredTokenError(_inner) => _inner.fmt(f), - AssumeRoleWithWebIdentityErrorKind::IDPCommunicationErrorError(_inner) => _inner.fmt(f), - AssumeRoleWithWebIdentityErrorKind::IDPRejectedClaimError(_inner) => _inner.fmt(f), - AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenError(_inner) => _inner.fmt(f), - AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentError(_inner) => { + AssumeRoleWithWebIdentityErrorKind::ExpiredTokenException(_inner) => _inner.fmt(f), + AssumeRoleWithWebIdentityErrorKind::IdpCommunicationErrorException(_inner) => { _inner.fmt(f) } - AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeError(_inner) => _inner.fmt(f), - AssumeRoleWithWebIdentityErrorKind::RegionDisabledError(_inner) => _inner.fmt(f), + AssumeRoleWithWebIdentityErrorKind::IdpRejectedClaimException(_inner) => _inner.fmt(f), + AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenException(_inner) => { + _inner.fmt(f) + } + AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentException(_inner) => { + _inner.fmt(f) + } + AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeException(_inner) => { + _inner.fmt(f) + } + AssumeRoleWithWebIdentityErrorKind::RegionDisabledException(_inner) => _inner.fmt(f), AssumeRoleWithWebIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -306,61 +312,67 @@ impl AssumeRoleWithWebIdentityError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_expired_token_error(&self) -> bool { + pub fn is_expired_token_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::ExpiredTokenError(_) + AssumeRoleWithWebIdentityErrorKind::ExpiredTokenException(_) ) } - pub fn is_idp_communication_error_error(&self) -> bool { + pub fn is_idp_communication_error_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::IDPCommunicationErrorError(_) + AssumeRoleWithWebIdentityErrorKind::IdpCommunicationErrorException(_) ) } - pub fn is_idp_rejected_claim_error(&self) -> bool { + pub fn is_idp_rejected_claim_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::IDPRejectedClaimError(_) + AssumeRoleWithWebIdentityErrorKind::IdpRejectedClaimException(_) ) } - pub fn is_invalid_identity_token_error(&self) -> bool { + pub fn is_invalid_identity_token_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenError(_) + AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenException(_) ) } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentError(_) + AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_packed_policy_too_large_error(&self) -> bool { + pub fn is_packed_policy_too_large_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeError(_) + AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeException(_) ) } - pub fn is_region_disabled_error(&self) -> bool { + pub fn is_region_disabled_exception(&self) -> bool { matches!( &self.kind, - AssumeRoleWithWebIdentityErrorKind::RegionDisabledError(_) + AssumeRoleWithWebIdentityErrorKind::RegionDisabledException(_) ) } } impl std::error::Error for AssumeRoleWithWebIdentityError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - AssumeRoleWithWebIdentityErrorKind::ExpiredTokenError(_inner) => Some(_inner), - AssumeRoleWithWebIdentityErrorKind::IDPCommunicationErrorError(_inner) => Some(_inner), - AssumeRoleWithWebIdentityErrorKind::IDPRejectedClaimError(_inner) => Some(_inner), - AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenError(_inner) => Some(_inner), - AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentError(_inner) => { + AssumeRoleWithWebIdentityErrorKind::ExpiredTokenException(_inner) => Some(_inner), + AssumeRoleWithWebIdentityErrorKind::IdpCommunicationErrorException(_inner) => { + Some(_inner) + } + AssumeRoleWithWebIdentityErrorKind::IdpRejectedClaimException(_inner) => Some(_inner), + AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenException(_inner) => { + Some(_inner) + } + AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentException(_inner) => { Some(_inner) } - AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeError(_inner) => Some(_inner), - AssumeRoleWithWebIdentityErrorKind::RegionDisabledError(_inner) => Some(_inner), + AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeException(_inner) => { + Some(_inner) + } + AssumeRoleWithWebIdentityErrorKind::RegionDisabledException(_inner) => Some(_inner), AssumeRoleWithWebIdentityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -375,14 +387,14 @@ pub struct DecodeAuthorizationMessageError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum DecodeAuthorizationMessageErrorKind { - InvalidAuthorizationMessageError(crate::error::InvalidAuthorizationMessageError), + InvalidAuthorizationMessageException(crate::error::InvalidAuthorizationMessageException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for DecodeAuthorizationMessageError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageError(_inner) => { + DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageException(_inner) => { _inner.fmt(f) } DecodeAuthorizationMessageErrorKind::Unhandled(_inner) => _inner.fmt(f), @@ -433,17 +445,17 @@ impl DecodeAuthorizationMessageError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_invalid_authorization_message_error(&self) -> bool { + pub fn is_invalid_authorization_message_exception(&self) -> bool { matches!( &self.kind, - DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageError(_) + DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageException(_) ) } } impl std::error::Error for DecodeAuthorizationMessageError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageError(_inner) => { + DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageException(_inner) => { Some(_inner) } DecodeAuthorizationMessageErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), @@ -604,18 +616,18 @@ pub struct GetFederationTokenError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetFederationTokenErrorKind { - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PackedPolicyTooLargeError(crate::error::PackedPolicyTooLargeError), - RegionDisabledError(crate::error::RegionDisabledError), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PackedPolicyTooLargeException(crate::error::PackedPolicyTooLargeException), + RegionDisabledException(crate::error::RegionDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetFederationTokenError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetFederationTokenErrorKind::MalformedPolicyDocumentError(_inner) => _inner.fmt(f), - GetFederationTokenErrorKind::PackedPolicyTooLargeError(_inner) => _inner.fmt(f), - GetFederationTokenErrorKind::RegionDisabledError(_inner) => _inner.fmt(f), + GetFederationTokenErrorKind::MalformedPolicyDocumentException(_inner) => _inner.fmt(f), + GetFederationTokenErrorKind::PackedPolicyTooLargeException(_inner) => _inner.fmt(f), + GetFederationTokenErrorKind::RegionDisabledException(_inner) => _inner.fmt(f), GetFederationTokenErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -664,31 +676,31 @@ impl GetFederationTokenError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_malformed_policy_document_error(&self) -> bool { + pub fn is_malformed_policy_document_exception(&self) -> bool { matches!( &self.kind, - GetFederationTokenErrorKind::MalformedPolicyDocumentError(_) + GetFederationTokenErrorKind::MalformedPolicyDocumentException(_) ) } - pub fn is_packed_policy_too_large_error(&self) -> bool { + pub fn is_packed_policy_too_large_exception(&self) -> bool { matches!( &self.kind, - GetFederationTokenErrorKind::PackedPolicyTooLargeError(_) + GetFederationTokenErrorKind::PackedPolicyTooLargeException(_) ) } - pub fn is_region_disabled_error(&self) -> bool { + pub fn is_region_disabled_exception(&self) -> bool { matches!( &self.kind, - GetFederationTokenErrorKind::RegionDisabledError(_) + GetFederationTokenErrorKind::RegionDisabledException(_) ) } } impl std::error::Error for GetFederationTokenError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetFederationTokenErrorKind::MalformedPolicyDocumentError(_inner) => Some(_inner), - GetFederationTokenErrorKind::PackedPolicyTooLargeError(_inner) => Some(_inner), - GetFederationTokenErrorKind::RegionDisabledError(_inner) => Some(_inner), + GetFederationTokenErrorKind::MalformedPolicyDocumentException(_inner) => Some(_inner), + GetFederationTokenErrorKind::PackedPolicyTooLargeException(_inner) => Some(_inner), + GetFederationTokenErrorKind::RegionDisabledException(_inner) => Some(_inner), GetFederationTokenErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -703,14 +715,14 @@ pub struct GetSessionTokenError { #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum GetSessionTokenErrorKind { - RegionDisabledError(crate::error::RegionDisabledError), + RegionDisabledException(crate::error::RegionDisabledException), /// An unexpected error, eg. invalid JSON returned by the service or an unknown error code Unhandled(Box), } impl std::fmt::Display for GetSessionTokenError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.kind { - GetSessionTokenErrorKind::RegionDisabledError(_inner) => _inner.fmt(f), + GetSessionTokenErrorKind::RegionDisabledException(_inner) => _inner.fmt(f), GetSessionTokenErrorKind::Unhandled(_inner) => _inner.fmt(f), } } @@ -759,14 +771,17 @@ impl GetSessionTokenError { pub fn code(&self) -> Option<&str> { self.meta.code() } - pub fn is_region_disabled_error(&self) -> bool { - matches!(&self.kind, GetSessionTokenErrorKind::RegionDisabledError(_)) + pub fn is_region_disabled_exception(&self) -> bool { + matches!( + &self.kind, + GetSessionTokenErrorKind::RegionDisabledException(_) + ) } } impl std::error::Error for GetSessionTokenError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match &self.kind { - GetSessionTokenErrorKind::RegionDisabledError(_inner) => Some(_inner), + GetSessionTokenErrorKind::RegionDisabledException(_inner) => Some(_inner), GetSessionTokenErrorKind::Unhandled(_inner) => Some(_inner.as_ref()), } } @@ -779,34 +794,34 @@ impl std::error::Error for GetSessionTokenError { /// Guide
    .

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct RegionDisabledError { +pub struct RegionDisabledException { pub message: std::option::Option, } -impl std::fmt::Debug for RegionDisabledError { +impl std::fmt::Debug for RegionDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("RegionDisabledError"); + let mut formatter = f.debug_struct("RegionDisabledException"); formatter.field("message", &self.message); formatter.finish() } } -impl RegionDisabledError { +impl RegionDisabledException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for RegionDisabledError { +impl std::fmt::Display for RegionDisabledException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "RegionDisabledError [RegionDisabledException]")?; + write!(f, "RegionDisabledException")?; if let Some(inner_1) = &self.message { write!(f, ": {}", inner_1)?; } Ok(()) } } -impl std::error::Error for RegionDisabledError {} -/// See [`RegionDisabledError`](crate::error::RegionDisabledError) -pub mod region_disabled_error { - /// A builder for [`RegionDisabledError`](crate::error::RegionDisabledError) +impl std::error::Error for RegionDisabledException {} +/// See [`RegionDisabledException`](crate::error::RegionDisabledException) +pub mod region_disabled_exception { + /// A builder for [`RegionDisabledException`](crate::error::RegionDisabledException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -821,18 +836,18 @@ pub mod region_disabled_error { self.message = input; self } - /// Consumes the builder and constructs a [`RegionDisabledError`](crate::error::RegionDisabledError) - pub fn build(self) -> crate::error::RegionDisabledError { - crate::error::RegionDisabledError { + /// Consumes the builder and constructs a [`RegionDisabledException`](crate::error::RegionDisabledException) + pub fn build(self) -> crate::error::RegionDisabledException { + crate::error::RegionDisabledException { message: self.message, } } } } -impl RegionDisabledError { - /// Creates a new builder-style object to manufacture [`RegionDisabledError`](crate::error::RegionDisabledError) - pub fn builder() -> crate::error::region_disabled_error::Builder { - crate::error::region_disabled_error::Builder::default() +impl RegionDisabledException { + /// Creates a new builder-style object to manufacture [`RegionDisabledException`](crate::error::RegionDisabledException) + pub fn builder() -> crate::error::region_disabled_exception::Builder { + crate::error::region_disabled_exception::Builder::default() } } @@ -847,37 +862,34 @@ impl RegionDisabledError { /// Character Limits in the IAM User Guide.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct PackedPolicyTooLargeError { +pub struct PackedPolicyTooLargeException { pub message: std::option::Option, } -impl std::fmt::Debug for PackedPolicyTooLargeError { +impl std::fmt::Debug for PackedPolicyTooLargeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("PackedPolicyTooLargeError"); + let mut formatter = f.debug_struct("PackedPolicyTooLargeException"); formatter.field("message", &self.message); formatter.finish() } } -impl PackedPolicyTooLargeError { +impl PackedPolicyTooLargeException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for PackedPolicyTooLargeError { +impl std::fmt::Display for PackedPolicyTooLargeException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "PackedPolicyTooLargeError [PackedPolicyTooLargeException]" - )?; + write!(f, "PackedPolicyTooLargeException")?; if let Some(inner_2) = &self.message { write!(f, ": {}", inner_2)?; } Ok(()) } } -impl std::error::Error for PackedPolicyTooLargeError {} -/// See [`PackedPolicyTooLargeError`](crate::error::PackedPolicyTooLargeError) -pub mod packed_policy_too_large_error { - /// A builder for [`PackedPolicyTooLargeError`](crate::error::PackedPolicyTooLargeError) +impl std::error::Error for PackedPolicyTooLargeException {} +/// See [`PackedPolicyTooLargeException`](crate::error::PackedPolicyTooLargeException) +pub mod packed_policy_too_large_exception { + /// A builder for [`PackedPolicyTooLargeException`](crate::error::PackedPolicyTooLargeException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -892,18 +904,18 @@ pub mod packed_policy_too_large_error { self.message = input; self } - /// Consumes the builder and constructs a [`PackedPolicyTooLargeError`](crate::error::PackedPolicyTooLargeError) - pub fn build(self) -> crate::error::PackedPolicyTooLargeError { - crate::error::PackedPolicyTooLargeError { + /// Consumes the builder and constructs a [`PackedPolicyTooLargeException`](crate::error::PackedPolicyTooLargeException) + pub fn build(self) -> crate::error::PackedPolicyTooLargeException { + crate::error::PackedPolicyTooLargeException { message: self.message, } } } } -impl PackedPolicyTooLargeError { - /// Creates a new builder-style object to manufacture [`PackedPolicyTooLargeError`](crate::error::PackedPolicyTooLargeError) - pub fn builder() -> crate::error::packed_policy_too_large_error::Builder { - crate::error::packed_policy_too_large_error::Builder::default() +impl PackedPolicyTooLargeException { + /// Creates a new builder-style object to manufacture [`PackedPolicyTooLargeException`](crate::error::PackedPolicyTooLargeException) + pub fn builder() -> crate::error::packed_policy_too_large_exception::Builder { + crate::error::packed_policy_too_large_exception::Builder::default() } } @@ -911,37 +923,34 @@ impl PackedPolicyTooLargeError { /// describes the specific error.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct MalformedPolicyDocumentError { +pub struct MalformedPolicyDocumentException { pub message: std::option::Option, } -impl std::fmt::Debug for MalformedPolicyDocumentError { +impl std::fmt::Debug for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("MalformedPolicyDocumentError"); + let mut formatter = f.debug_struct("MalformedPolicyDocumentException"); formatter.field("message", &self.message); formatter.finish() } } -impl MalformedPolicyDocumentError { +impl MalformedPolicyDocumentException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for MalformedPolicyDocumentError { +impl std::fmt::Display for MalformedPolicyDocumentException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "MalformedPolicyDocumentError [MalformedPolicyDocumentException]" - )?; + write!(f, "MalformedPolicyDocumentException")?; if let Some(inner_3) = &self.message { write!(f, ": {}", inner_3)?; } Ok(()) } } -impl std::error::Error for MalformedPolicyDocumentError {} -/// See [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) -pub mod malformed_policy_document_error { - /// A builder for [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) +impl std::error::Error for MalformedPolicyDocumentException {} +/// See [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) +pub mod malformed_policy_document_exception { + /// A builder for [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -956,18 +965,18 @@ pub mod malformed_policy_document_error { self.message = input; self } - /// Consumes the builder and constructs a [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn build(self) -> crate::error::MalformedPolicyDocumentError { - crate::error::MalformedPolicyDocumentError { + /// Consumes the builder and constructs a [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn build(self) -> crate::error::MalformedPolicyDocumentException { + crate::error::MalformedPolicyDocumentException { message: self.message, } } } } -impl MalformedPolicyDocumentError { - /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentError`](crate::error::MalformedPolicyDocumentError) - pub fn builder() -> crate::error::malformed_policy_document_error::Builder { - crate::error::malformed_policy_document_error::Builder::default() +impl MalformedPolicyDocumentException { + /// Creates a new builder-style object to manufacture [`MalformedPolicyDocumentException`](crate::error::MalformedPolicyDocumentException) + pub fn builder() -> crate::error::malformed_policy_document_exception::Builder { + crate::error::malformed_policy_document_exception::Builder::default() } } @@ -976,37 +985,34 @@ impl MalformedPolicyDocumentError { /// linebreaks.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidAuthorizationMessageError { +pub struct InvalidAuthorizationMessageException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidAuthorizationMessageError { +impl std::fmt::Debug for InvalidAuthorizationMessageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidAuthorizationMessageError"); + let mut formatter = f.debug_struct("InvalidAuthorizationMessageException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidAuthorizationMessageError { +impl InvalidAuthorizationMessageException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidAuthorizationMessageError { +impl std::fmt::Display for InvalidAuthorizationMessageException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidAuthorizationMessageError [InvalidAuthorizationMessageException]" - )?; + write!(f, "InvalidAuthorizationMessageException")?; if let Some(inner_4) = &self.message { write!(f, ": {}", inner_4)?; } Ok(()) } } -impl std::error::Error for InvalidAuthorizationMessageError {} -/// See [`InvalidAuthorizationMessageError`](crate::error::InvalidAuthorizationMessageError) -pub mod invalid_authorization_message_error { - /// A builder for [`InvalidAuthorizationMessageError`](crate::error::InvalidAuthorizationMessageError) +impl std::error::Error for InvalidAuthorizationMessageException {} +/// See [`InvalidAuthorizationMessageException`](crate::error::InvalidAuthorizationMessageException) +pub mod invalid_authorization_message_exception { + /// A builder for [`InvalidAuthorizationMessageException`](crate::error::InvalidAuthorizationMessageException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1021,18 +1027,18 @@ pub mod invalid_authorization_message_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidAuthorizationMessageError`](crate::error::InvalidAuthorizationMessageError) - pub fn build(self) -> crate::error::InvalidAuthorizationMessageError { - crate::error::InvalidAuthorizationMessageError { + /// Consumes the builder and constructs a [`InvalidAuthorizationMessageException`](crate::error::InvalidAuthorizationMessageException) + pub fn build(self) -> crate::error::InvalidAuthorizationMessageException { + crate::error::InvalidAuthorizationMessageException { message: self.message, } } } } -impl InvalidAuthorizationMessageError { - /// Creates a new builder-style object to manufacture [`InvalidAuthorizationMessageError`](crate::error::InvalidAuthorizationMessageError) - pub fn builder() -> crate::error::invalid_authorization_message_error::Builder { - crate::error::invalid_authorization_message_error::Builder::default() +impl InvalidAuthorizationMessageException { + /// Creates a new builder-style object to manufacture [`InvalidAuthorizationMessageException`](crate::error::InvalidAuthorizationMessageException) + pub fn builder() -> crate::error::invalid_authorization_message_exception::Builder { + crate::error::invalid_authorization_message_exception::Builder::default() } } @@ -1040,37 +1046,34 @@ impl InvalidAuthorizationMessageError { /// identity token from the identity provider and then retry the request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct InvalidIdentityTokenError { +pub struct InvalidIdentityTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for InvalidIdentityTokenError { +impl std::fmt::Debug for InvalidIdentityTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("InvalidIdentityTokenError"); + let mut formatter = f.debug_struct("InvalidIdentityTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl InvalidIdentityTokenError { +impl InvalidIdentityTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for InvalidIdentityTokenError { +impl std::fmt::Display for InvalidIdentityTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "InvalidIdentityTokenError [InvalidIdentityTokenException]" - )?; + write!(f, "InvalidIdentityTokenException")?; if let Some(inner_5) = &self.message { write!(f, ": {}", inner_5)?; } Ok(()) } } -impl std::error::Error for InvalidIdentityTokenError {} -/// See [`InvalidIdentityTokenError`](crate::error::InvalidIdentityTokenError) -pub mod invalid_identity_token_error { - /// A builder for [`InvalidIdentityTokenError`](crate::error::InvalidIdentityTokenError) +impl std::error::Error for InvalidIdentityTokenException {} +/// See [`InvalidIdentityTokenException`](crate::error::InvalidIdentityTokenException) +pub mod invalid_identity_token_exception { + /// A builder for [`InvalidIdentityTokenException`](crate::error::InvalidIdentityTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1085,18 +1088,18 @@ pub mod invalid_identity_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`InvalidIdentityTokenError`](crate::error::InvalidIdentityTokenError) - pub fn build(self) -> crate::error::InvalidIdentityTokenError { - crate::error::InvalidIdentityTokenError { + /// Consumes the builder and constructs a [`InvalidIdentityTokenException`](crate::error::InvalidIdentityTokenException) + pub fn build(self) -> crate::error::InvalidIdentityTokenException { + crate::error::InvalidIdentityTokenException { message: self.message, } } } } -impl InvalidIdentityTokenError { - /// Creates a new builder-style object to manufacture [`InvalidIdentityTokenError`](crate::error::InvalidIdentityTokenError) - pub fn builder() -> crate::error::invalid_identity_token_error::Builder { - crate::error::invalid_identity_token_error::Builder::default() +impl InvalidIdentityTokenException { + /// Creates a new builder-style object to manufacture [`InvalidIdentityTokenException`](crate::error::InvalidIdentityTokenException) + pub fn builder() -> crate::error::invalid_identity_token_exception::Builder { + crate::error::invalid_identity_token_exception::Builder::default() } } @@ -1106,34 +1109,34 @@ impl InvalidIdentityTokenError { /// can also mean that the claim has expired or has been explicitly revoked.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IDPRejectedClaimError { +pub struct IdpRejectedClaimException { pub message: std::option::Option, } -impl std::fmt::Debug for IDPRejectedClaimError { +impl std::fmt::Debug for IdpRejectedClaimException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IDPRejectedClaimError"); + let mut formatter = f.debug_struct("IdpRejectedClaimException"); formatter.field("message", &self.message); formatter.finish() } } -impl IDPRejectedClaimError { +impl IdpRejectedClaimException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IDPRejectedClaimError { +impl std::fmt::Display for IdpRejectedClaimException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "IDPRejectedClaimError [IDPRejectedClaimException]")?; + write!(f, "IdpRejectedClaimException [IDPRejectedClaimException]")?; if let Some(inner_6) = &self.message { write!(f, ": {}", inner_6)?; } Ok(()) } } -impl std::error::Error for IDPRejectedClaimError {} -/// See [`IDPRejectedClaimError`](crate::error::IDPRejectedClaimError) -pub mod idp_rejected_claim_error { - /// A builder for [`IDPRejectedClaimError`](crate::error::IDPRejectedClaimError) +impl std::error::Error for IdpRejectedClaimException {} +/// See [`IdpRejectedClaimException`](crate::error::IdpRejectedClaimException) +pub mod idp_rejected_claim_exception { + /// A builder for [`IdpRejectedClaimException`](crate::error::IdpRejectedClaimException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1148,18 +1151,18 @@ pub mod idp_rejected_claim_error { self.message = input; self } - /// Consumes the builder and constructs a [`IDPRejectedClaimError`](crate::error::IDPRejectedClaimError) - pub fn build(self) -> crate::error::IDPRejectedClaimError { - crate::error::IDPRejectedClaimError { + /// Consumes the builder and constructs a [`IdpRejectedClaimException`](crate::error::IdpRejectedClaimException) + pub fn build(self) -> crate::error::IdpRejectedClaimException { + crate::error::IdpRejectedClaimException { message: self.message, } } } } -impl IDPRejectedClaimError { - /// Creates a new builder-style object to manufacture [`IDPRejectedClaimError`](crate::error::IDPRejectedClaimError) - pub fn builder() -> crate::error::idp_rejected_claim_error::Builder { - crate::error::idp_rejected_claim_error::Builder::default() +impl IdpRejectedClaimException { + /// Creates a new builder-style object to manufacture [`IdpRejectedClaimException`](crate::error::IdpRejectedClaimException) + pub fn builder() -> crate::error::idp_rejected_claim_exception::Builder { + crate::error::idp_rejected_claim_exception::Builder::default() } } @@ -1170,26 +1173,26 @@ impl IDPRejectedClaimError { /// identity provider might be down or not responding.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct IDPCommunicationErrorError { +pub struct IdpCommunicationErrorException { pub message: std::option::Option, } -impl std::fmt::Debug for IDPCommunicationErrorError { +impl std::fmt::Debug for IdpCommunicationErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("IDPCommunicationErrorError"); + let mut formatter = f.debug_struct("IdpCommunicationErrorException"); formatter.field("message", &self.message); formatter.finish() } } -impl IDPCommunicationErrorError { +impl IdpCommunicationErrorException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for IDPCommunicationErrorError { +impl std::fmt::Display for IdpCommunicationErrorException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "IDPCommunicationErrorError [IDPCommunicationErrorException]" + "IdpCommunicationErrorException [IDPCommunicationErrorException]" )?; if let Some(inner_7) = &self.message { write!(f, ": {}", inner_7)?; @@ -1197,10 +1200,10 @@ impl std::fmt::Display for IDPCommunicationErrorError { Ok(()) } } -impl std::error::Error for IDPCommunicationErrorError {} -/// See [`IDPCommunicationErrorError`](crate::error::IDPCommunicationErrorError) -pub mod idp_communication_error_error { - /// A builder for [`IDPCommunicationErrorError`](crate::error::IDPCommunicationErrorError) +impl std::error::Error for IdpCommunicationErrorException {} +/// See [`IdpCommunicationErrorException`](crate::error::IdpCommunicationErrorException) +pub mod idp_communication_error_exception { + /// A builder for [`IdpCommunicationErrorException`](crate::error::IdpCommunicationErrorException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1215,18 +1218,18 @@ pub mod idp_communication_error_error { self.message = input; self } - /// Consumes the builder and constructs a [`IDPCommunicationErrorError`](crate::error::IDPCommunicationErrorError) - pub fn build(self) -> crate::error::IDPCommunicationErrorError { - crate::error::IDPCommunicationErrorError { + /// Consumes the builder and constructs a [`IdpCommunicationErrorException`](crate::error::IdpCommunicationErrorException) + pub fn build(self) -> crate::error::IdpCommunicationErrorException { + crate::error::IdpCommunicationErrorException { message: self.message, } } } } -impl IDPCommunicationErrorError { - /// Creates a new builder-style object to manufacture [`IDPCommunicationErrorError`](crate::error::IDPCommunicationErrorError) - pub fn builder() -> crate::error::idp_communication_error_error::Builder { - crate::error::idp_communication_error_error::Builder::default() +impl IdpCommunicationErrorException { + /// Creates a new builder-style object to manufacture [`IdpCommunicationErrorException`](crate::error::IdpCommunicationErrorException) + pub fn builder() -> crate::error::idp_communication_error_exception::Builder { + crate::error::idp_communication_error_exception::Builder::default() } } @@ -1234,34 +1237,34 @@ impl IDPCommunicationErrorError { /// token from the identity provider and then retry the request.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct ExpiredTokenError { +pub struct ExpiredTokenException { pub message: std::option::Option, } -impl std::fmt::Debug for ExpiredTokenError { +impl std::fmt::Debug for ExpiredTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("ExpiredTokenError"); + let mut formatter = f.debug_struct("ExpiredTokenException"); formatter.field("message", &self.message); formatter.finish() } } -impl ExpiredTokenError { +impl ExpiredTokenException { pub fn message(&self) -> Option<&str> { self.message.as_deref() } } -impl std::fmt::Display for ExpiredTokenError { +impl std::fmt::Display for ExpiredTokenException { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "ExpiredTokenError [ExpiredTokenException]")?; + write!(f, "ExpiredTokenException")?; if let Some(inner_8) = &self.message { write!(f, ": {}", inner_8)?; } Ok(()) } } -impl std::error::Error for ExpiredTokenError {} -/// See [`ExpiredTokenError`](crate::error::ExpiredTokenError) -pub mod expired_token_error { - /// A builder for [`ExpiredTokenError`](crate::error::ExpiredTokenError) +impl std::error::Error for ExpiredTokenException {} +/// See [`ExpiredTokenException`](crate::error::ExpiredTokenException) +pub mod expired_token_exception { + /// A builder for [`ExpiredTokenException`](crate::error::ExpiredTokenException) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -1276,17 +1279,17 @@ pub mod expired_token_error { self.message = input; self } - /// Consumes the builder and constructs a [`ExpiredTokenError`](crate::error::ExpiredTokenError) - pub fn build(self) -> crate::error::ExpiredTokenError { - crate::error::ExpiredTokenError { + /// Consumes the builder and constructs a [`ExpiredTokenException`](crate::error::ExpiredTokenException) + pub fn build(self) -> crate::error::ExpiredTokenException { + crate::error::ExpiredTokenException { message: self.message, } } } } -impl ExpiredTokenError { - /// Creates a new builder-style object to manufacture [`ExpiredTokenError`](crate::error::ExpiredTokenError) - pub fn builder() -> crate::error::expired_token_error::Builder { - crate::error::expired_token_error::Builder::default() +impl ExpiredTokenException { + /// Creates a new builder-style object to manufacture [`ExpiredTokenException`](crate::error::ExpiredTokenException) + pub fn builder() -> crate::error::expired_token_exception::Builder { + crate::error::expired_token_exception::Builder::default() } } diff --git a/sdk/sts/src/error_meta.rs b/sdk/sts/src/error_meta.rs index 68db9fbf3937..6bf2e35ffed7 100644 --- a/sdk/sts/src/error_meta.rs +++ b/sdk/sts/src/error_meta.rs @@ -2,27 +2,27 @@ #[non_exhaustive] #[derive(std::fmt::Debug)] pub enum Error { - ExpiredTokenError(crate::error::ExpiredTokenError), - IDPCommunicationErrorError(crate::error::IDPCommunicationErrorError), - IDPRejectedClaimError(crate::error::IDPRejectedClaimError), - InvalidAuthorizationMessageError(crate::error::InvalidAuthorizationMessageError), - InvalidIdentityTokenError(crate::error::InvalidIdentityTokenError), - MalformedPolicyDocumentError(crate::error::MalformedPolicyDocumentError), - PackedPolicyTooLargeError(crate::error::PackedPolicyTooLargeError), - RegionDisabledError(crate::error::RegionDisabledError), + ExpiredTokenException(crate::error::ExpiredTokenException), + IdpCommunicationErrorException(crate::error::IdpCommunicationErrorException), + IdpRejectedClaimException(crate::error::IdpRejectedClaimException), + InvalidAuthorizationMessageException(crate::error::InvalidAuthorizationMessageException), + InvalidIdentityTokenException(crate::error::InvalidIdentityTokenException), + MalformedPolicyDocumentException(crate::error::MalformedPolicyDocumentException), + PackedPolicyTooLargeException(crate::error::PackedPolicyTooLargeException), + RegionDisabledException(crate::error::RegionDisabledException), Unhandled(Box), } impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Error::ExpiredTokenError(inner) => inner.fmt(f), - Error::IDPCommunicationErrorError(inner) => inner.fmt(f), - Error::IDPRejectedClaimError(inner) => inner.fmt(f), - Error::InvalidAuthorizationMessageError(inner) => inner.fmt(f), - Error::InvalidIdentityTokenError(inner) => inner.fmt(f), - Error::MalformedPolicyDocumentError(inner) => inner.fmt(f), - Error::PackedPolicyTooLargeError(inner) => inner.fmt(f), - Error::RegionDisabledError(inner) => inner.fmt(f), + Error::ExpiredTokenException(inner) => inner.fmt(f), + Error::IdpCommunicationErrorException(inner) => inner.fmt(f), + Error::IdpRejectedClaimException(inner) => inner.fmt(f), + Error::InvalidAuthorizationMessageException(inner) => inner.fmt(f), + Error::InvalidIdentityTokenException(inner) => inner.fmt(f), + Error::MalformedPolicyDocumentException(inner) => inner.fmt(f), + Error::PackedPolicyTooLargeException(inner) => inner.fmt(f), + Error::RegionDisabledException(inner) => inner.fmt(f), Error::Unhandled(inner) => inner.fmt(f), } } @@ -31,17 +31,17 @@ impl From> for Erro fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AssumeRoleErrorKind::ExpiredTokenError(inner) => { - Error::ExpiredTokenError(inner) + crate::error::AssumeRoleErrorKind::ExpiredTokenException(inner) => { + Error::ExpiredTokenException(inner) } - crate::error::AssumeRoleErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) + crate::error::AssumeRoleErrorKind::MalformedPolicyDocumentException(inner) => { + Error::MalformedPolicyDocumentException(inner) } - crate::error::AssumeRoleErrorKind::PackedPolicyTooLargeError(inner) => { - Error::PackedPolicyTooLargeError(inner) + crate::error::AssumeRoleErrorKind::PackedPolicyTooLargeException(inner) => { + Error::PackedPolicyTooLargeException(inner) } - crate::error::AssumeRoleErrorKind::RegionDisabledError(inner) => { - Error::RegionDisabledError(inner) + crate::error::AssumeRoleErrorKind::RegionDisabledException(inner) => { + Error::RegionDisabledException(inner) } crate::error::AssumeRoleErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, @@ -53,23 +53,23 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AssumeRoleWithSAMLErrorKind::ExpiredTokenError(inner) => { - Error::ExpiredTokenError(inner) + crate::error::AssumeRoleWithSAMLErrorKind::ExpiredTokenException(inner) => { + Error::ExpiredTokenException(inner) } - crate::error::AssumeRoleWithSAMLErrorKind::IDPRejectedClaimError(inner) => { - Error::IDPRejectedClaimError(inner) + crate::error::AssumeRoleWithSAMLErrorKind::IdpRejectedClaimException(inner) => { + Error::IdpRejectedClaimException(inner) } - crate::error::AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenError(inner) => { - Error::InvalidIdentityTokenError(inner) + crate::error::AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenException(inner) => { + Error::InvalidIdentityTokenException(inner) } - crate::error::AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) - } - crate::error::AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeError(inner) => { - Error::PackedPolicyTooLargeError(inner) + crate::error::AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentException( + inner, + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeException(inner) => { + Error::PackedPolicyTooLargeException(inner) } - crate::error::AssumeRoleWithSAMLErrorKind::RegionDisabledError(inner) => { - Error::RegionDisabledError(inner) + crate::error::AssumeRoleWithSAMLErrorKind::RegionDisabledException(inner) => { + Error::RegionDisabledException(inner) } crate::error::AssumeRoleWithSAMLErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -84,32 +84,16 @@ impl From, ) -> Self { match err { - smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::AssumeRoleWithWebIdentityErrorKind::ExpiredTokenError(inner) => { - Error::ExpiredTokenError(inner) - } - crate::error::AssumeRoleWithWebIdentityErrorKind::IDPCommunicationErrorError( - inner, - ) => Error::IDPCommunicationErrorError(inner), - crate::error::AssumeRoleWithWebIdentityErrorKind::IDPRejectedClaimError(inner) => { - Error::IDPRejectedClaimError(inner) - } - crate::error::AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenError( - inner, - ) => Error::InvalidIdentityTokenError(inner), - crate::error::AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentError( - inner, - ) => Error::MalformedPolicyDocumentError(inner), - crate::error::AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeError( - inner, - ) => Error::PackedPolicyTooLargeError(inner), - crate::error::AssumeRoleWithWebIdentityErrorKind::RegionDisabledError(inner) => { - Error::RegionDisabledError(inner) - } - crate::error::AssumeRoleWithWebIdentityErrorKind::Unhandled(inner) => { - Error::Unhandled(inner) - } - }, + smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { + crate::error::AssumeRoleWithWebIdentityErrorKind::ExpiredTokenException(inner) => Error::ExpiredTokenException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::IdpCommunicationErrorException(inner) => Error::IdpCommunicationErrorException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::IdpRejectedClaimException(inner) => Error::IdpRejectedClaimException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenException(inner) => Error::InvalidIdentityTokenException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentException(inner) => Error::MalformedPolicyDocumentException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeException(inner) => Error::PackedPolicyTooLargeException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::RegionDisabledException(inner) => Error::RegionDisabledException(inner), + crate::error::AssumeRoleWithWebIdentityErrorKind::Unhandled(inner) => Error::Unhandled(inner), + } _ => Error::Unhandled(err.into()), } } @@ -120,7 +104,7 @@ impl From Self { match err { smithy_http::result::SdkError::ServiceError { err, ..} => match err.kind { - crate::error::DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageError(inner) => Error::InvalidAuthorizationMessageError(inner), + crate::error::DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageException(inner) => Error::InvalidAuthorizationMessageException(inner), crate::error::DecodeAuthorizationMessageErrorKind::Unhandled(inner) => Error::Unhandled(inner), } _ => Error::Unhandled(err.into()), @@ -155,14 +139,14 @@ impl From> fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetFederationTokenErrorKind::MalformedPolicyDocumentError(inner) => { - Error::MalformedPolicyDocumentError(inner) - } - crate::error::GetFederationTokenErrorKind::PackedPolicyTooLargeError(inner) => { - Error::PackedPolicyTooLargeError(inner) + crate::error::GetFederationTokenErrorKind::MalformedPolicyDocumentException( + inner, + ) => Error::MalformedPolicyDocumentException(inner), + crate::error::GetFederationTokenErrorKind::PackedPolicyTooLargeException(inner) => { + Error::PackedPolicyTooLargeException(inner) } - crate::error::GetFederationTokenErrorKind::RegionDisabledError(inner) => { - Error::RegionDisabledError(inner) + crate::error::GetFederationTokenErrorKind::RegionDisabledException(inner) => { + Error::RegionDisabledException(inner) } crate::error::GetFederationTokenErrorKind::Unhandled(inner) => { Error::Unhandled(inner) @@ -176,8 +160,8 @@ impl From> for fn from(err: smithy_http::result::SdkError) -> Self { match err { smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind { - crate::error::GetSessionTokenErrorKind::RegionDisabledError(inner) => { - Error::RegionDisabledError(inner) + crate::error::GetSessionTokenErrorKind::RegionDisabledException(inner) => { + Error::RegionDisabledException(inner) } crate::error::GetSessionTokenErrorKind::Unhandled(inner) => Error::Unhandled(inner), }, diff --git a/sdk/sts/src/input.rs b/sdk/sts/src/input.rs index 5664209cc884..fdf995520e6a 100644 --- a/sdk/sts/src/input.rs +++ b/sdk/sts/src/input.rs @@ -308,8 +308,9 @@ impl AssumeRoleInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -317,7 +318,7 @@ impl AssumeRoleInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -343,9 +344,9 @@ impl AssumeRoleInput { } } -/// See [`AssumeRoleWithSAMLInput`](crate::input::AssumeRoleWithSAMLInput) +/// See [`AssumeRoleWithSamlInput`](crate::input::AssumeRoleWithSamlInput) pub mod assume_role_with_saml_input { - /// A builder for [`AssumeRoleWithSAMLInput`](crate::input::AssumeRoleWithSAMLInput) + /// A builder for [`AssumeRoleWithSamlInput`](crate::input::AssumeRoleWithSamlInput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -466,14 +467,14 @@ pub mod assume_role_with_saml_input { self.duration_seconds = input; self } - /// Consumes the builder and constructs a [`AssumeRoleWithSAMLInput`](crate::input::AssumeRoleWithSAMLInput) + /// Consumes the builder and constructs a [`AssumeRoleWithSamlInput`](crate::input::AssumeRoleWithSamlInput) pub fn build( self, ) -> std::result::Result< - crate::input::AssumeRoleWithSAMLInput, + crate::input::AssumeRoleWithSamlInput, smithy_http::operation::BuildError, > { - Ok(crate::input::AssumeRoleWithSAMLInput { + Ok(crate::input::AssumeRoleWithSamlInput { role_arn: self.role_arn, principal_arn: self.principal_arn, saml_assertion: self.saml_assertion, @@ -488,7 +489,7 @@ pub mod assume_role_with_saml_input { pub type AssumeRoleWithSAMLInputOperationOutputAlias = crate::operation::AssumeRoleWithSAML; #[doc(hidden)] pub type AssumeRoleWithSAMLInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy; -impl AssumeRoleWithSAMLInput { +impl AssumeRoleWithSamlInput { /// Consumes the builder and constructs an Operation<[`AssumeRoleWithSAML`](crate::operation::AssumeRoleWithSAML)> #[allow(clippy::let_and_return)] pub fn make_operation( @@ -547,8 +548,9 @@ impl AssumeRoleWithSAMLInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -556,7 +558,7 @@ impl AssumeRoleWithSAMLInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -576,7 +578,7 @@ impl AssumeRoleWithSAMLInput { } builder.body(body).expect("should be valid request") } - /// Creates a new builder-style object to manufacture [`AssumeRoleWithSAMLInput`](crate::input::AssumeRoleWithSAMLInput) + /// Creates a new builder-style object to manufacture [`AssumeRoleWithSamlInput`](crate::input::AssumeRoleWithSamlInput) pub fn builder() -> crate::input::assume_role_with_saml_input::Builder { crate::input::assume_role_with_saml_input::Builder::default() } @@ -808,8 +810,9 @@ impl AssumeRoleWithWebIdentityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -817,7 +820,7 @@ impl AssumeRoleWithWebIdentityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -942,8 +945,9 @@ impl DecodeAuthorizationMessageInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -951,7 +955,7 @@ impl DecodeAuthorizationMessageInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1076,8 +1080,9 @@ impl GetAccessKeyInfoInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1085,7 +1090,7 @@ impl GetAccessKeyInfoInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1192,8 +1197,9 @@ impl GetCallerIdentityInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1201,7 +1207,7 @@ impl GetCallerIdentityInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1414,8 +1420,9 @@ impl GetFederationTokenInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1423,7 +1430,7 @@ impl GetFederationTokenInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1586,8 +1593,9 @@ impl GetSessionTokenInput { op }) } - fn uri_base(&self, output: &mut String) { - write!(output, "/").expect("formatting should succeed") + fn uri_base(&self, output: &mut String) -> Result<(), smithy_http::operation::BuildError> { + write!(output, "/").expect("formatting should succeed"); + Ok(()) } #[allow(clippy::unnecessary_wraps)] fn update_http_builder( @@ -1595,7 +1603,7 @@ impl GetSessionTokenInput { builder: http::request::Builder, ) -> std::result::Result { let mut uri = String::new(); - self.uri_base(&mut uri); + self.uri_base(&mut uri)?; Ok(builder.method("POST").uri(uri)) } #[allow(clippy::unnecessary_wraps)] @@ -1927,7 +1935,7 @@ impl std::fmt::Debug for AssumeRoleWithWebIdentityInput { #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssumeRoleWithSAMLInput { +pub struct AssumeRoleWithSamlInput { ///

    The Amazon Resource Name (ARN) of the role that the caller is assuming.

    pub role_arn: std::option::Option, ///

    The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the @@ -2006,9 +2014,9 @@ pub struct AssumeRoleWithSAMLInput { /// pub duration_seconds: std::option::Option, } -impl std::fmt::Debug for AssumeRoleWithSAMLInput { +impl std::fmt::Debug for AssumeRoleWithSamlInput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssumeRoleWithSAMLInput"); + let mut formatter = f.debug_struct("AssumeRoleWithSamlInput"); formatter.field("role_arn", &self.role_arn); formatter.field("principal_arn", &self.principal_arn); formatter.field("saml_assertion", &self.saml_assertion); diff --git a/sdk/sts/src/lib.rs b/sdk/sts/src/lib.rs index 05c299d8c1bd..753baeadc32f 100644 --- a/sdk/sts/src/lib.rs +++ b/sdk/sts/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::large_enum_variant)] #![allow(clippy::wrong_self_convention)] #![allow(clippy::should_implement_trait)] +#![allow(clippy::blacklisted_name)] //! AWS Security Token Service //!

    AWS Security Token Service (STS) enables you to request temporary, limited-privilege //! credentials for AWS Identity and Access Management (IAM) users or for users that you diff --git a/sdk/sts/src/operation.rs b/sdk/sts/src/operation.rs index 3e55d1bb774e..d47ac944121d 100644 --- a/sdk/sts/src/operation.rs +++ b/sdk/sts/src/operation.rs @@ -244,7 +244,7 @@ pub struct AssumeRoleWithSAML { _private: (), } impl AssumeRoleWithSAML { - /// Creates a new builder-style object to manufacture [`AssumeRoleWithSAMLInput`](crate::input::AssumeRoleWithSAMLInput) + /// Creates a new builder-style object to manufacture [`AssumeRoleWithSamlInput`](crate::input::AssumeRoleWithSamlInput) pub fn builder() -> crate::input::assume_role_with_saml_input::Builder { crate::input::assume_role_with_saml_input::Builder::default() } @@ -254,7 +254,7 @@ impl AssumeRoleWithSAML { } impl smithy_http::response::ParseStrictResponse for AssumeRoleWithSAML { type Output = std::result::Result< - crate::output::AssumeRoleWithSAMLOutput, + crate::output::AssumeRoleWithSamlOutput, crate::error::AssumeRoleWithSAMLError, >; fn parse(&self, response: &http::Response) -> Self::Output { diff --git a/sdk/sts/src/operation_deser.rs b/sdk/sts/src/operation_deser.rs index e183e6d3bf64..4665472a70f4 100644 --- a/sdk/sts/src/operation_deser.rs +++ b/sdk/sts/src/operation_deser.rs @@ -12,39 +12,11 @@ pub fn parse_assume_role_error( Err(match error_code { "ExpiredTokenException" => crate::error::AssumeRoleError { meta: generic, - kind: crate::error::AssumeRoleErrorKind::ExpiredTokenError({ + kind: crate::error::AssumeRoleErrorKind::ExpiredTokenException({ #[allow(unused_mut)] - let mut output = crate::error::expired_token_error::Builder::default(); + let mut output = crate::error::expired_token_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_expired_token_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::AssumeRoleError { - meta: generic, - kind: crate::error::AssumeRoleErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleError::unhandled)?; - output.build() - }), - }, - "PackedPolicyTooLargeException" => crate::error::AssumeRoleError { - meta: generic, - kind: crate::error::AssumeRoleErrorKind::PackedPolicyTooLargeError({ - #[allow(unused_mut)] - let mut output = crate::error::packed_policy_too_large_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_packed_policy_too_large_error_xml_err( + output = crate::xml_deser::deser_structure_expired_token_exception_xml_err( response.body().as_ref(), output, ) @@ -52,13 +24,39 @@ pub fn parse_assume_role_error( output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::AssumeRoleError { + meta: generic, + kind: crate::error::AssumeRoleErrorKind::MalformedPolicyDocumentException({ + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleError::unhandled)?; + output.build() + }), + } + } + "PackedPolicyTooLargeException" => { + crate::error::AssumeRoleError { + meta: generic, + kind: crate::error::AssumeRoleErrorKind::PackedPolicyTooLargeException({ + #[allow(unused_mut)] + let mut output = + crate::error::packed_policy_too_large_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_packed_policy_too_large_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleError::unhandled)?; + output.build() + }), + } + } "RegionDisabledException" => crate::error::AssumeRoleError { meta: generic, - kind: crate::error::AssumeRoleErrorKind::RegionDisabledError({ + kind: crate::error::AssumeRoleErrorKind::RegionDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::region_disabled_error::Builder::default(); + let mut output = crate::error::region_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_region_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_region_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -88,7 +86,7 @@ pub fn parse_assume_role_response( pub fn parse_assume_role_with_saml_error( response: &http::Response, ) -> std::result::Result< - crate::output::AssumeRoleWithSAMLOutput, + crate::output::AssumeRoleWithSamlOutput, crate::error::AssumeRoleWithSAMLError, > { let generic = crate::xml_deser::parse_generic_error(&response) @@ -100,11 +98,11 @@ pub fn parse_assume_role_with_saml_error( Err(match error_code { "ExpiredTokenException" => crate::error::AssumeRoleWithSAMLError { meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::ExpiredTokenError({ + kind: crate::error::AssumeRoleWithSAMLErrorKind::ExpiredTokenException({ #[allow(unused_mut)] - let mut output = crate::error::expired_token_error::Builder::default(); + let mut output = crate::error::expired_token_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_expired_token_error_xml_err( + output = crate::xml_deser::deser_structure_expired_token_exception_xml_err( response.body().as_ref(), output, ) @@ -114,11 +112,11 @@ pub fn parse_assume_role_with_saml_error( }, "IDPRejectedClaimException" => crate::error::AssumeRoleWithSAMLError { meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::IDPRejectedClaimError({ + kind: crate::error::AssumeRoleWithSAMLErrorKind::IdpRejectedClaimException({ #[allow(unused_mut)] - let mut output = crate::error::idp_rejected_claim_error::Builder::default(); + let mut output = crate::error::idp_rejected_claim_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_idp_rejected_claim_error_xml_err( + output = crate::xml_deser::deser_structure_idp_rejected_claim_exception_xml_err( response.body().as_ref(), output, ) @@ -128,53 +126,54 @@ pub fn parse_assume_role_with_saml_error( }, "InvalidIdentityTokenException" => crate::error::AssumeRoleWithSAMLError { meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenError({ + kind: crate::error::AssumeRoleWithSAMLErrorKind::InvalidIdentityTokenException({ #[allow(unused_mut)] - let mut output = crate::error::invalid_identity_token_error::Builder::default(); + let mut output = crate::error::invalid_identity_token_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_invalid_identity_token_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; - output.build() - }), - }, - "MalformedPolicyDocumentException" => crate::error::AssumeRoleWithSAMLError { - meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; - output.build() - }), - }, - "PackedPolicyTooLargeException" => crate::error::AssumeRoleWithSAMLError { - meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeError({ - #[allow(unused_mut)] - let mut output = crate::error::packed_policy_too_large_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_packed_policy_too_large_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; + output = + crate::xml_deser::deser_structure_invalid_identity_token_exception_xml_err( + response.body().as_ref(), + output, + ) + .map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; output.build() }), }, + "MalformedPolicyDocumentException" => { + crate::error::AssumeRoleWithSAMLError { + meta: generic, + kind: crate::error::AssumeRoleWithSAMLErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; + output.build() + }, + ), + } + } + "PackedPolicyTooLargeException" => { + crate::error::AssumeRoleWithSAMLError { + meta: generic, + kind: crate::error::AssumeRoleWithSAMLErrorKind::PackedPolicyTooLargeException({ + #[allow(unused_mut)] + let mut output = + crate::error::packed_policy_too_large_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_packed_policy_too_large_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithSAMLError::unhandled)?; + output.build() + }), + } + } "RegionDisabledException" => crate::error::AssumeRoleWithSAMLError { meta: generic, - kind: crate::error::AssumeRoleWithSAMLErrorKind::RegionDisabledError({ + kind: crate::error::AssumeRoleWithSAMLErrorKind::RegionDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::region_disabled_error::Builder::default(); + let mut output = crate::error::region_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_region_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_region_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -190,7 +189,7 @@ pub fn parse_assume_role_with_saml_error( pub fn parse_assume_role_with_saml_response( response: &http::Response, ) -> std::result::Result< - crate::output::AssumeRoleWithSAMLOutput, + crate::output::AssumeRoleWithSamlOutput, crate::error::AssumeRoleWithSAMLError, > { Ok({ @@ -226,11 +225,11 @@ pub fn parse_assume_role_with_web_identity_error( Err(match error_code { "ExpiredTokenException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::ExpiredTokenError({ + kind: crate::error::AssumeRoleWithWebIdentityErrorKind::ExpiredTokenException({ #[allow(unused_mut)] - let mut output = crate::error::expired_token_error::Builder::default(); + let mut output = crate::error::expired_token_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_expired_token_error_xml_err( + output = crate::xml_deser::deser_structure_expired_token_exception_xml_err( response.body().as_ref(), output, ) @@ -240,39 +239,24 @@ pub fn parse_assume_role_with_web_identity_error( }, "IDPCommunicationErrorException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::IDPCommunicationErrorError({ - #[allow(unused_mut)] - let mut output = crate::error::idp_communication_error_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_idp_communication_error_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; - output.build() - }), + kind: crate::error::AssumeRoleWithWebIdentityErrorKind::IdpCommunicationErrorException( + { + #[allow(unused_mut)] + let mut output = + crate::error::idp_communication_error_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_idp_communication_error_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; + output.build() + }, + ), }, "IDPRejectedClaimException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::IDPRejectedClaimError({ + kind: crate::error::AssumeRoleWithWebIdentityErrorKind::IdpRejectedClaimException({ #[allow(unused_mut)] - let mut output = crate::error::idp_rejected_claim_error::Builder::default(); + let mut output = crate::error::idp_rejected_claim_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_idp_rejected_claim_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; - output.build() - }), - }, - "InvalidIdentityTokenException" => crate::error::AssumeRoleWithWebIdentityError { - meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenError({ - #[allow(unused_mut)] - let mut output = crate::error::invalid_identity_token_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_identity_token_error_xml_err( + output = crate::xml_deser::deser_structure_idp_rejected_claim_exception_xml_err( response.body().as_ref(), output, ) @@ -280,41 +264,56 @@ pub fn parse_assume_role_with_web_identity_error( output.build() }), }, + "InvalidIdentityTokenException" => { + crate::error::AssumeRoleWithWebIdentityError { + meta: generic, + kind: + crate::error::AssumeRoleWithWebIdentityErrorKind::InvalidIdentityTokenException( + { + #[allow(unused_mut)] + let mut output = + crate::error::invalid_identity_token_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_identity_token_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; + output.build() + }, + ), + } + } "MalformedPolicyDocumentException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; - output.build() - }), + kind: + crate::error::AssumeRoleWithWebIdentityErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; + output.build() + }, + ), }, "PackedPolicyTooLargeException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeError({ - #[allow(unused_mut)] - let mut output = crate::error::packed_policy_too_large_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_packed_policy_too_large_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; - output.build() - }), + kind: crate::error::AssumeRoleWithWebIdentityErrorKind::PackedPolicyTooLargeException( + { + #[allow(unused_mut)] + let mut output = + crate::error::packed_policy_too_large_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_packed_policy_too_large_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::AssumeRoleWithWebIdentityError::unhandled)?; + output.build() + }, + ), }, "RegionDisabledException" => crate::error::AssumeRoleWithWebIdentityError { meta: generic, - kind: crate::error::AssumeRoleWithWebIdentityErrorKind::RegionDisabledError({ + kind: crate::error::AssumeRoleWithWebIdentityErrorKind::RegionDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::region_disabled_error::Builder::default(); + let mut output = crate::error::region_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_region_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_region_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -364,21 +363,13 @@ pub fn parse_decode_authorization_message_error( } }; Err(match error_code { - "InvalidAuthorizationMessageException" => crate::error::DecodeAuthorizationMessageError { - meta: generic, - kind: - crate::error::DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageError( - { - #[allow(unused_mut)] - let mut output = - crate::error::invalid_authorization_message_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_invalid_authorization_message_error_xml_err(response.body().as_ref(), output).map_err(crate::error::DecodeAuthorizationMessageError::unhandled)?; - output.build() - }, - ), - }, - _ => crate::error::DecodeAuthorizationMessageError::generic(generic), + "InvalidAuthorizationMessageException" => crate::error::DecodeAuthorizationMessageError { meta: generic, kind: crate::error::DecodeAuthorizationMessageErrorKind::InvalidAuthorizationMessageException({ + #[allow(unused_mut)]let mut output = crate::error::invalid_authorization_message_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_invalid_authorization_message_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::DecodeAuthorizationMessageError::unhandled)?; + output.build() + })}, + _ => crate::error::DecodeAuthorizationMessageError::generic(generic) }) } @@ -468,41 +459,41 @@ pub fn parse_get_federation_token_error( None => return Err(crate::error::GetFederationTokenError::unhandled(generic)), }; Err(match error_code { - "MalformedPolicyDocumentException" => crate::error::GetFederationTokenError { - meta: generic, - kind: crate::error::GetFederationTokenErrorKind::MalformedPolicyDocumentError({ - #[allow(unused_mut)] - let mut output = crate::error::malformed_policy_document_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_malformed_policy_document_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFederationTokenError::unhandled)?; - output.build() - }), - }, - "PackedPolicyTooLargeException" => crate::error::GetFederationTokenError { - meta: generic, - kind: crate::error::GetFederationTokenErrorKind::PackedPolicyTooLargeError({ - #[allow(unused_mut)] - let mut output = crate::error::packed_policy_too_large_error::Builder::default(); - let _ = response; - output = crate::xml_deser::deser_structure_packed_policy_too_large_error_xml_err( - response.body().as_ref(), - output, - ) - .map_err(crate::error::GetFederationTokenError::unhandled)?; - output.build() - }), - }, + "MalformedPolicyDocumentException" => { + crate::error::GetFederationTokenError { + meta: generic, + kind: crate::error::GetFederationTokenErrorKind::MalformedPolicyDocumentException( + { + #[allow(unused_mut)] + let mut output = + crate::error::malformed_policy_document_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_malformed_policy_document_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetFederationTokenError::unhandled)?; + output.build() + }, + ), + } + } + "PackedPolicyTooLargeException" => { + crate::error::GetFederationTokenError { + meta: generic, + kind: crate::error::GetFederationTokenErrorKind::PackedPolicyTooLargeException({ + #[allow(unused_mut)] + let mut output = + crate::error::packed_policy_too_large_exception::Builder::default(); + let _ = response; + output = crate::xml_deser::deser_structure_packed_policy_too_large_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::GetFederationTokenError::unhandled)?; + output.build() + }), + } + } "RegionDisabledException" => crate::error::GetFederationTokenError { meta: generic, - kind: crate::error::GetFederationTokenErrorKind::RegionDisabledError({ + kind: crate::error::GetFederationTokenErrorKind::RegionDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::region_disabled_error::Builder::default(); + let mut output = crate::error::region_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_region_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_region_disabled_exception_xml_err( response.body().as_ref(), output, ) @@ -547,11 +538,11 @@ pub fn parse_get_session_token_error( Err(match error_code { "RegionDisabledException" => crate::error::GetSessionTokenError { meta: generic, - kind: crate::error::GetSessionTokenErrorKind::RegionDisabledError({ + kind: crate::error::GetSessionTokenErrorKind::RegionDisabledException({ #[allow(unused_mut)] - let mut output = crate::error::region_disabled_error::Builder::default(); + let mut output = crate::error::region_disabled_exception::Builder::default(); let _ = response; - output = crate::xml_deser::deser_structure_region_disabled_error_xml_err( + output = crate::xml_deser::deser_structure_region_disabled_exception_xml_err( response.body().as_ref(), output, ) diff --git a/sdk/sts/src/operation_ser.rs b/sdk/sts/src/operation_ser.rs index 17427f3cf019..d03eba184253 100644 --- a/sdk/sts/src/operation_ser.rs +++ b/sdk/sts/src/operation_ser.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn serialize_operation_assume_role( input: &crate::input::AssumeRoleInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssumeRole", "2011-06-15"); @@ -86,8 +86,8 @@ pub fn serialize_operation_assume_role( } pub fn serialize_operation_assume_role_with_saml( - input: &crate::input::AssumeRoleWithSAMLInput, -) -> Result { + input: &crate::input::AssumeRoleWithSamlInput, +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "AssumeRoleWithSAML", "2011-06-15"); @@ -136,7 +136,7 @@ pub fn serialize_operation_assume_role_with_saml( pub fn serialize_operation_assume_role_with_web_identity( input: &crate::input::AssumeRoleWithWebIdentityInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -191,7 +191,7 @@ pub fn serialize_operation_assume_role_with_web_identity( pub fn serialize_operation_decode_authorization_message( input: &crate::input::DecodeAuthorizationMessageInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = @@ -207,7 +207,7 @@ pub fn serialize_operation_decode_authorization_message( pub fn serialize_operation_get_access_key_info( input: &crate::input::GetAccessKeyInfoInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetAccessKeyInfo", "2011-06-15"); @@ -222,7 +222,7 @@ pub fn serialize_operation_get_access_key_info( pub fn serialize_operation_get_caller_identity( input: &crate::input::GetCallerIdentityInput, -) -> Result { +) -> Result { let _ = input; let mut out = String::new(); #[allow(unused_mut)] @@ -233,7 +233,7 @@ pub fn serialize_operation_get_caller_identity( pub fn serialize_operation_get_federation_token( input: &crate::input::GetFederationTokenInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetFederationToken", "2011-06-15"); @@ -283,7 +283,7 @@ pub fn serialize_operation_get_federation_token( pub fn serialize_operation_get_session_token( input: &crate::input::GetSessionTokenInput, -) -> Result { +) -> Result { let mut out = String::new(); #[allow(unused_mut)] let mut writer = smithy_query::QueryWriter::new(&mut out, "GetSessionToken", "2011-06-15"); diff --git a/sdk/sts/src/output.rs b/sdk/sts/src/output.rs index 6f2cdbd9cc99..7743f6619262 100644 --- a/sdk/sts/src/output.rs +++ b/sdk/sts/src/output.rs @@ -571,7 +571,7 @@ impl AssumeRoleWithWebIdentityOutput { /// including temporary AWS credentials that can be used to make AWS requests.

    #[non_exhaustive] #[derive(std::clone::Clone, std::cmp::PartialEq)] -pub struct AssumeRoleWithSAMLOutput { +pub struct AssumeRoleWithSamlOutput { ///

    The temporary security credentials, which include an access key ID, a secret access key, /// and a security (or session) token.

    /// @@ -639,9 +639,9 @@ pub struct AssumeRoleWithSAMLOutput { /// also include underscores or any of the following characters: =,.@-

    pub source_identity: std::option::Option, } -impl std::fmt::Debug for AssumeRoleWithSAMLOutput { +impl std::fmt::Debug for AssumeRoleWithSamlOutput { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let mut formatter = f.debug_struct("AssumeRoleWithSAMLOutput"); + let mut formatter = f.debug_struct("AssumeRoleWithSamlOutput"); formatter.field("credentials", &self.credentials); formatter.field("assumed_role_user", &self.assumed_role_user); formatter.field("packed_policy_size", &self.packed_policy_size); @@ -654,9 +654,9 @@ impl std::fmt::Debug for AssumeRoleWithSAMLOutput { formatter.finish() } } -/// See [`AssumeRoleWithSAMLOutput`](crate::output::AssumeRoleWithSAMLOutput) +/// See [`AssumeRoleWithSamlOutput`](crate::output::AssumeRoleWithSamlOutput) pub mod assume_role_with_saml_output { - /// A builder for [`AssumeRoleWithSAMLOutput`](crate::output::AssumeRoleWithSAMLOutput) + /// A builder for [`AssumeRoleWithSamlOutput`](crate::output::AssumeRoleWithSamlOutput) #[non_exhaustive] #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)] pub struct Builder { @@ -812,9 +812,9 @@ pub mod assume_role_with_saml_output { self.source_identity = input; self } - /// Consumes the builder and constructs a [`AssumeRoleWithSAMLOutput`](crate::output::AssumeRoleWithSAMLOutput) - pub fn build(self) -> crate::output::AssumeRoleWithSAMLOutput { - crate::output::AssumeRoleWithSAMLOutput { + /// Consumes the builder and constructs a [`AssumeRoleWithSamlOutput`](crate::output::AssumeRoleWithSamlOutput) + pub fn build(self) -> crate::output::AssumeRoleWithSamlOutput { + crate::output::AssumeRoleWithSamlOutput { credentials: self.credentials, assumed_role_user: self.assumed_role_user, packed_policy_size: self.packed_policy_size, @@ -828,8 +828,8 @@ pub mod assume_role_with_saml_output { } } } -impl AssumeRoleWithSAMLOutput { - /// Creates a new builder-style object to manufacture [`AssumeRoleWithSAMLOutput`](crate::output::AssumeRoleWithSAMLOutput) +impl AssumeRoleWithSamlOutput { + /// Creates a new builder-style object to manufacture [`AssumeRoleWithSamlOutput`](crate::output::AssumeRoleWithSamlOutput) pub fn builder() -> crate::output::assume_role_with_saml_output::Builder { crate::output::assume_role_with_saml_output::Builder::default() } diff --git a/sdk/sts/src/xml_deser.rs b/sdk/sts/src/xml_deser.rs index 234ec618e4df..00bee9a3cf10 100644 --- a/sdk/sts/src/xml_deser.rs +++ b/sdk/sts/src/xml_deser.rs @@ -6,10 +6,10 @@ pub fn parse_generic_error( } #[allow(unused_mut)] -pub fn deser_structure_expired_token_error_xml_err( +pub fn deser_structure_expired_token_exception_xml_err( inp: &[u8], - mut builder: crate::error::expired_token_error::Builder, -) -> Result { + mut builder: crate::error::expired_token_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -36,10 +36,11 @@ pub fn deser_structure_expired_token_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_malformed_policy_document_error_xml_err( +pub fn deser_structure_malformed_policy_document_exception_xml_err( inp: &[u8], - mut builder: crate::error::malformed_policy_document_error::Builder, -) -> Result { + mut builder: crate::error::malformed_policy_document_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -66,10 +67,11 @@ pub fn deser_structure_malformed_policy_document_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_packed_policy_too_large_error_xml_err( +pub fn deser_structure_packed_policy_too_large_exception_xml_err( inp: &[u8], - mut builder: crate::error::packed_policy_too_large_error::Builder, -) -> Result { + mut builder: crate::error::packed_policy_too_large_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -96,10 +98,10 @@ pub fn deser_structure_packed_policy_too_large_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_region_disabled_error_xml_err( +pub fn deser_structure_region_disabled_exception_xml_err( inp: &[u8], - mut builder: crate::error::region_disabled_error::Builder, -) -> Result { + mut builder: crate::error::region_disabled_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -213,10 +215,10 @@ pub fn deser_operation_assume_role( } #[allow(unused_mut)] -pub fn deser_structure_idp_rejected_claim_error_xml_err( +pub fn deser_structure_idp_rejected_claim_exception_xml_err( inp: &[u8], - mut builder: crate::error::idp_rejected_claim_error::Builder, -) -> Result { + mut builder: crate::error::idp_rejected_claim_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -243,10 +245,10 @@ pub fn deser_structure_idp_rejected_claim_error_xml_err( } #[allow(unused_mut)] -pub fn deser_structure_invalid_identity_token_error_xml_err( +pub fn deser_structure_invalid_identity_token_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_identity_token_error::Builder, -) -> Result { + mut builder: crate::error::invalid_identity_token_exception::Builder, +) -> Result { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -425,10 +427,11 @@ pub fn deser_operation_assume_role_with_saml( } #[allow(unused_mut)] -pub fn deser_structure_idp_communication_error_error_xml_err( +pub fn deser_structure_idp_communication_error_exception_xml_err( inp: &[u8], - mut builder: crate::error::idp_communication_error_error::Builder, -) -> Result { + mut builder: crate::error::idp_communication_error_exception::Builder, +) -> Result +{ use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)] @@ -584,11 +587,13 @@ pub fn deser_operation_assume_role_with_web_identity( } #[allow(unused_mut)] -pub fn deser_structure_invalid_authorization_message_error_xml_err( +pub fn deser_structure_invalid_authorization_message_exception_xml_err( inp: &[u8], - mut builder: crate::error::invalid_authorization_message_error::Builder, -) -> Result -{ + mut builder: crate::error::invalid_authorization_message_exception::Builder, +) -> Result< + crate::error::invalid_authorization_message_exception::Builder, + smithy_xml::decode::XmlError, +> { use std::convert::TryFrom; let mut document = smithy_xml::decode::Document::try_from(inp)?; #[allow(unused_mut)]

    The Linux capabilities for the container that are added to or dropped from the default /// configuration provided by Docker. For more information on the default capabilities and @@ -15549,7 +14311,7 @@ impl<'de> serde::Deserialize<'de> for DeviceCgroupPermission { /// reference. For more detailed information on these Linux capabilities, see /// the capabilities(7) Linux manual page.